@atproto/oauth-provider 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/account/account-manager.d.ts +2 -2
  3. package/dist/account/account-manager.d.ts.map +1 -1
  4. package/dist/account/account-manager.js.map +1 -1
  5. package/dist/account/account-store.d.ts +19 -6
  6. package/dist/account/account-store.d.ts.map +1 -1
  7. package/dist/account/account-store.js +16 -1
  8. package/dist/account/account-store.js.map +1 -1
  9. package/dist/assets/app/bundle-manifest.json +3 -3
  10. package/dist/assets/app/main.css +1 -1
  11. package/dist/assets/app/main.js +3 -3
  12. package/dist/assets/app/main.js.map +1 -1
  13. package/dist/client/client-auth.d.ts.map +1 -1
  14. package/dist/client/client-auth.js +2 -2
  15. package/dist/client/client-auth.js.map +1 -1
  16. package/dist/client/client-manager.d.ts.map +1 -1
  17. package/dist/client/client-manager.js +3 -1
  18. package/dist/client/client-manager.js.map +1 -1
  19. package/dist/client/client.d.ts.map +1 -1
  20. package/dist/client/client.js +3 -3
  21. package/dist/client/client.js.map +1 -1
  22. package/dist/dpop/dpop-manager.d.ts.map +1 -1
  23. package/dist/dpop/dpop-manager.js +3 -3
  24. package/dist/dpop/dpop-manager.js.map +1 -1
  25. package/dist/errors/invalid-token-error.d.ts.map +1 -1
  26. package/dist/errors/invalid-token-error.js +3 -2
  27. package/dist/errors/invalid-token-error.js.map +1 -1
  28. package/dist/errors/second-authentication-factor-required-error.d.ts +13 -0
  29. package/dist/errors/second-authentication-factor-required-error.d.ts.map +1 -0
  30. package/dist/errors/second-authentication-factor-required-error.js +23 -0
  31. package/dist/errors/second-authentication-factor-required-error.js.map +1 -0
  32. package/dist/lib/util/authorization-header.js +1 -1
  33. package/dist/lib/util/authorization-header.js.map +1 -1
  34. package/dist/metadata/build-metadata.d.ts.map +1 -1
  35. package/dist/metadata/build-metadata.js +2 -0
  36. package/dist/metadata/build-metadata.js.map +1 -1
  37. package/dist/oauth-errors.d.ts +1 -0
  38. package/dist/oauth-errors.d.ts.map +1 -1
  39. package/dist/oauth-errors.js +3 -1
  40. package/dist/oauth-errors.js.map +1 -1
  41. package/dist/oauth-provider.d.ts +101 -4
  42. package/dist/oauth-provider.d.ts.map +1 -1
  43. package/dist/oauth-provider.js +98 -110
  44. package/dist/oauth-provider.js.map +1 -1
  45. package/dist/output/{send-authorize-page.d.ts → build-authorize-data.d.ts} +2 -5
  46. package/dist/output/build-authorize-data.d.ts.map +1 -0
  47. package/dist/output/build-authorize-data.js +22 -0
  48. package/dist/output/build-authorize-data.js.map +1 -0
  49. package/dist/output/build-error-payload.d.ts.map +1 -1
  50. package/dist/output/build-error-payload.js +4 -3
  51. package/dist/output/build-error-payload.js.map +1 -1
  52. package/dist/output/customization.d.ts +2 -12
  53. package/dist/output/customization.d.ts.map +1 -1
  54. package/dist/output/customization.js +59 -32
  55. package/dist/output/customization.js.map +1 -1
  56. package/dist/output/output-manager.d.ts +16 -0
  57. package/dist/output/output-manager.d.ts.map +1 -0
  58. package/dist/output/output-manager.js +69 -0
  59. package/dist/output/output-manager.js.map +1 -0
  60. package/dist/output/send-web-page.d.ts +1 -1
  61. package/dist/output/send-web-page.d.ts.map +1 -1
  62. package/dist/output/send-web-page.js +3 -2
  63. package/dist/output/send-web-page.js.map +1 -1
  64. package/package.json +6 -6
  65. package/src/account/account-manager.ts +2 -2
  66. package/src/account/account-store.ts +12 -6
  67. package/src/assets/app/components/accept-form.tsx +86 -83
  68. package/src/assets/app/components/account-picker.tsx +98 -79
  69. package/src/assets/app/components/button.tsx +34 -0
  70. package/src/assets/app/components/client-identifier.tsx +12 -13
  71. package/src/assets/app/components/fieldset.tsx +26 -0
  72. package/src/assets/app/components/form-card.tsx +47 -0
  73. package/src/assets/app/components/help-card.tsx +1 -1
  74. package/src/assets/app/components/icons/alert-icon.tsx +5 -0
  75. package/src/assets/app/components/icons/at-symbol-icon.tsx +5 -0
  76. package/src/assets/app/components/icons/caret-right-icon.tsx +5 -0
  77. package/src/assets/app/components/icons/lock-icon.tsx +5 -0
  78. package/src/assets/app/components/icons/token-icon.tsx +5 -0
  79. package/src/assets/app/components/icons/util.tsx +17 -0
  80. package/src/assets/app/components/info-card.tsx +45 -0
  81. package/src/assets/app/components/input-checkbox.tsx +47 -0
  82. package/src/assets/app/components/input-container.tsx +37 -0
  83. package/src/assets/app/components/input-layout.tsx +47 -0
  84. package/src/assets/app/components/input-text.tsx +69 -0
  85. package/src/assets/app/components/layout-title-page.tsx +33 -16
  86. package/src/assets/app/components/layout-welcome.tsx +30 -14
  87. package/src/assets/app/components/sign-in-form.tsx +214 -196
  88. package/src/assets/app/components/sign-up-account-form.tsx +101 -117
  89. package/src/assets/app/components/sign-up-disclaimer.tsx +1 -1
  90. package/src/assets/app/hooks/use-api.ts +2 -0
  91. package/src/assets/app/lib/api.ts +49 -14
  92. package/src/assets/app/lib/clsx.ts +6 -1
  93. package/src/assets/app/lib/util.ts +3 -0
  94. package/src/assets/app/main.css +2 -1
  95. package/src/assets/app/views/accept-view.tsx +4 -3
  96. package/src/assets/app/views/authorize-view.tsx +8 -4
  97. package/src/assets/app/views/error-view.tsx +24 -15
  98. package/src/assets/app/views/sign-in-view.tsx +5 -15
  99. package/src/assets/app/views/sign-up-view.tsx +3 -10
  100. package/src/assets/app/views/welcome-view.tsx +11 -18
  101. package/src/client/client-auth.ts +3 -2
  102. package/src/client/client-manager.ts +2 -1
  103. package/src/client/client.ts +3 -1
  104. package/src/dpop/dpop-manager.ts +3 -2
  105. package/src/errors/invalid-token-error.ts +3 -1
  106. package/src/errors/second-authentication-factor-required-error.ts +25 -0
  107. package/src/lib/util/authorization-header.ts +1 -1
  108. package/src/metadata/build-metadata.ts +3 -0
  109. package/src/oauth-errors.ts +1 -0
  110. package/src/oauth-provider.ts +110 -99
  111. package/src/output/{send-authorize-page.ts → build-authorize-data.ts} +3 -43
  112. package/src/output/build-error-payload.ts +3 -1
  113. package/src/output/customization.ts +67 -45
  114. package/src/output/output-manager.ts +87 -0
  115. package/src/output/send-web-page.ts +4 -3
  116. package/tailwind.config.js +14 -1
  117. package/dist/output/send-authorize-page.d.ts.map +0 -1
  118. package/dist/output/send-authorize-page.js +0 -49
  119. package/dist/output/send-authorize-page.js.map +0 -1
  120. package/dist/output/send-error-page.d.ts +0 -5
  121. package/dist/output/send-error-page.d.ts.map +0 -1
  122. package/dist/output/send-error-page.js +0 -31
  123. package/dist/output/send-error-page.js.map +0 -1
  124. package/src/output/send-error-page.ts +0 -41
@@ -1,4 +1,4 @@
1
- !function(){"use strict";var e,t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={exports:{}},r={},a={exports:{}},l={};a.exports=function(){if(e)return l;e=1;var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var w=b.prototype=new v;w.constructor=b,h(w,y.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,n,r){var a,l={},o=null,i=null;if(null!=n)for(a in void 0!==n.ref&&(i=n.ref),void 0!==n.key&&(o=""+n.key),n)k.call(n,a)&&!E.hasOwnProperty(a)&&(l[a]=n[a]);var u=arguments.length-2;if(1===u)l.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];l.children=s}if(e&&e.defaultProps)for(a in u=e.defaultProps)void 0===l[a]&&(l[a]=u[a]);return{$$typeof:t,type:e,key:o,ref:i,props:l,_owner:S.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var N=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,r,a,l,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var u=!1;if(null===e)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case t:case n:u=!0}}if(u)return o=o(u=e),e=""===l?"."+P(u,0):l,x(o)?(a="",null!=e&&(a=e.replace(N,"$&/")+"/"),T(o,r,a,"",(function(e){return e}))):null!=o&&(_(o)&&(o=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(o,a+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(N,"$&/")+"/")+e)),r.push(o)),1;if(u=0,l=""===l?".":l+":",x(e))for(var s=0;s<e.length;s++){var c=l+P(i=e[s],s);u+=T(i,r,a,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(i=e.next()).done;)u+=T(i=i.value,r,a,c=l+P(i,s++),o);else if("object"===i)throw r=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return u}function j(e,t,n){if(null==e)return e;var r=[],a=0;return T(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function z(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},R={transition:null},O={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:R,ReactCurrentOwner:S};function M(){throw Error("act(...) is not supported in production builds of React.")}return l.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},l.Component=y,l.Fragment=r,l.Profiler=o,l.PureComponent=b,l.StrictMode=a,l.Suspense=c,l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,l.act=M,l.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=h({},e.props),l=e.key,o=e.ref,i=e._owner;if(null!=n){if(void 0!==n.ref&&(o=n.ref,i=S.current),void 0!==n.key&&(l=""+n.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in n)k.call(n,s)&&!E.hasOwnProperty(s)&&(a[s]=void 0===n[s]&&void 0!==u?u[s]:n[s])}var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}return{$$typeof:t,type:e.type,key:l,ref:o,props:a,_owner:i}},l.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},l.createElement=C,l.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},l.createRef=function(){return{current:null}},l.forwardRef=function(e){return{$$typeof:s,render:e}},l.isValidElement=_,l.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:z}},l.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},l.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},l.unstable_act=M,l.useCallback=function(e,t){return L.current.useCallback(e,t)},l.useContext=function(e){return L.current.useContext(e)},l.useDebugValue=function(){},l.useDeferredValue=function(e){return L.current.useDeferredValue(e)},l.useEffect=function(e,t){return L.current.useEffect(e,t)},l.useId=function(){return L.current.useId()},l.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},l.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},l.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},l.useMemo=function(e,t){return L.current.useMemo(e,t)},l.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},l.useRef=function(e){return L.current.useRef(e)},l.useState=function(e){return L.current.useState(e)},l.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},l.useTransition=function(){return L.current.useTransition()},l.version="18.3.1",l}();var o,i=a.exports;
1
+ !function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var n,r={exports:{}},a={},o={exports:{}},i={};o.exports=function(){if(n)return i;n=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var _=b.prototype=new v;_.constructor=b,m(_,y.prototype),_.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,x={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var a,o={},i=null,s=null;if(null!=n)for(a in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(i=""+n.key),n)k.call(n,a)&&!S.hasOwnProperty(a)&&(o[a]=n[a]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(t&&t.defaultProps)for(a in l=t.defaultProps)void 0===o[a]&&(o[a]=l[a]);return{$$typeof:e,type:t,key:i,ref:s,props:o,_owner:x.current}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var E=/\/+/g;function z(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function I(n,r,a,o,i){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return i=i(l=n),n=""===o?"."+z(l,0):o,w(i)?(a="",null!=n&&(a=n.replace(E,"$&/")+"/"),I(i,r,a,"",(function(e){return e}))):null!=i&&(T(i)&&(i=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(i,a+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(E,"$&/")+"/")+n)),r.push(i)),1;if(l=0,o=""===o?".":o+":",w(n))for(var u=0;u<n.length;u++){var c=o+z(s=n[u],u);l+=I(s,r,a,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=I(s=s.value,r,a,c=o+z(s,u++),i);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],a=0;return I(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function j(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},O={transition:null},R={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:O,ReactCurrentOwner:x};function Z(){throw Error("act(...) is not supported in production builds of React.")}return i.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},i.Component=y,i.Fragment=r,i.Profiler=o,i.PureComponent=b,i.StrictMode=a,i.Suspense=c,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,i.act=Z,i.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var a=m({},t.props),o=t.key,i=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,s=x.current),void 0!==n.key&&(o=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)k.call(n,u)&&!S.hasOwnProperty(u)&&(a[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];a.children=l}return{$$typeof:e,type:t.type,key:o,ref:i,props:a,_owner:s}},i.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},i.createElement=C,i.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},i.createRef=function(){return{current:null}},i.forwardRef=function(e){return{$$typeof:u,render:e}},i.isValidElement=T,i.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:j}},i.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},i.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},i.unstable_act=Z,i.useCallback=function(e,t){return N.current.useCallback(e,t)},i.useContext=function(e){return N.current.useContext(e)},i.useDebugValue=function(){},i.useDeferredValue=function(e){return N.current.useDeferredValue(e)},i.useEffect=function(e,t){return N.current.useEffect(e,t)},i.useId=function(){return N.current.useId()},i.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},i.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},i.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},i.useMemo=function(e,t){return N.current.useMemo(e,t)},i.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},i.useRef=function(e){return N.current.useRef(e)},i.useState=function(e){return N.current.useState(e)},i.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},i.useTransition=function(){return N.current.useTransition()},i.version="18.3.1",i}();var s,l=o.exports;
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */n.exports=function(){if(o)return r;o=1;var e=i,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var o,i={},s=null,c=null;for(o in void 0!==r&&(s=""+r),void 0!==n.key&&(s=""+n.key),void 0!==n.ref&&(c=n.ref),n)a.call(n,o)&&!u.hasOwnProperty(o)&&(i[o]=n[o]);if(e&&e.defaultProps)for(o in n=e.defaultProps)void 0===i[o]&&(i[o]=n[o]);return{$$typeof:t,type:e,key:s,ref:c,props:i,_owner:l.current}}return r.Fragment=n,r.jsx=s,r.jsxs=s,r}();var u=n.exports;const s=e=>{const t=window[e];return delete window[e],t},c=s("__customizationData"),f=s("__errorData"),d=s("__authorizeData");var p,m,h,g=Object.freeze({__proto__:null,authorizeData:d,customizationData:c,errorData:f}),y={exports:{}},v={},b={exports:{}},w={};function x(){return m||(m=1,b.exports=(p||(p=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,l=e[r];if(!(0<a(l,t)))break e;e[r]=t,e[n]=l,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,l=e.length,o=l>>>1;r<o;){var i=2*(r+1)-1,u=e[i],s=i+1,c=e[s];if(0>a(u,n))s<l&&0>a(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[i]=n,r=i);else{if(!(s<l&&0>a(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,i=o.now();e.unstable_now=function(){return o.now()-i}}var u=[],s=[],c=1,f=null,d=3,p=!1,m=!1,h=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var a=n(s);null!==a;){if(null===a.callback)r(s);else{if(!(a.startTime<=e))break;r(s),a.sortIndex=a.expirationTime,t(u,a)}a=n(s)}}function w(e){if(h=!1,b(e),!m)if(null!==n(u))m=!0,L(x);else{var t=n(s);null!==t&&R(w,t.startTime-e)}}function x(t,a){m=!1,h&&(h=!1,y(C),C=-1),p=!0;var l=d;try{for(b(a),f=n(u);null!==f&&(!(f.expirationTime>a)||t&&!P());){var o=f.callback;if("function"==typeof o){f.callback=null,d=f.priorityLevel;var i=o(f.expirationTime<=a);a=e.unstable_now(),"function"==typeof i?f.callback=i:f===n(u)&&r(u),b(a)}else r(u);f=n(u)}if(null!==f)var c=!0;else{var g=n(s);null!==g&&R(w,g.startTime-a),c=!1}return c}finally{f=null,d=l,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,E=null,C=-1,_=5,N=-1;function P(){return!(e.unstable_now()-N<_)}function T(){if(null!==E){var t=e.unstable_now();N=t;var n=!0;try{n=E(!0,t)}finally{n?k():(S=!1,E=null)}}else S=!1}if("function"==typeof v)k=function(){v(T)};else if("undefined"!=typeof MessageChannel){var j=new MessageChannel,z=j.port2;j.port1.onmessage=T,k=function(){z.postMessage(null)}}else k=function(){g(T,0)};function L(e){E=e,S||(S=!0,k())}function R(t,n){C=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,L(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},e.unstable_scheduleCallback=function(r,a,l){var o=e.unstable_now();switch(l="object"==typeof l&&null!==l&&"number"==typeof(l=l.delay)&&0<l?o+l:o,r){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return r={id:c++,callback:a,priorityLevel:r,startTime:l,expirationTime:i=l+i,sortIndex:-1},l>o?(r.sortIndex=l,t(s,r),null===n(u)&&r===n(s)&&(h?(y(C),C=-1):h=!0,R(w,l-o))):(r.sortIndex=i,t(u,r),m||p||(m=!0,L(x))),r},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}}(w)),w)),b.exports}
10
+ */r.exports=function(){if(s)return a;s=1;var e=l,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function u(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return a.Fragment=n,a.jsx=u,a.jsxs=u,a}();var u=r.exports;const c=e=>{const t=window[e];return delete window[e],t},d=c("__customizationData"),f=c("__errorData"),p=c("__authorizeData");var h,m,g,y=Object.freeze({__proto__:null,authorizeData:p,customizationData:d,errorData:f}),v={exports:{}},b={},_={exports:{}},w={};function k(){return m||(m=1,_.exports=(h||(h=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>a(l,n))u<o&&0>a(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var a=n(u);null!==a;){if(null===a.callback)r(u);else{if(!(a.startTime<=e))break;r(u),a.sortIndex=a.expirationTime,t(l,a)}a=n(u)}}function _(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,N(w);else{var t=n(u);null!==t&&O(_,t.startTime-e)}}function w(t,a){h=!1,m&&(m=!1,y(C),C=-1),p=!0;var o=f;try{for(b(a),d=n(l);null!==d&&(!(d.expirationTime>a)||t&&!z());){var i=d.callback;if("function"==typeof i){d.callback=null,f=d.priorityLevel;var s=i(d.expirationTime<=a);a=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(a)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&O(_,g.startTime-a),c=!1}return c}finally{d=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,x=!1,S=null,C=-1,T=5,E=-1;function z(){return!(e.unstable_now()-E<T)}function I(){if(null!==S){var t=e.unstable_now();E=t;var n=!0;try{n=S(!0,t)}finally{n?k():(x=!1,S=null)}}else x=!1}if("function"==typeof v)k=function(){v(I)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,j=P.port2;P.port1.onmessage=I,k=function(){j.postMessage(null)}}else k=function(){g(I,0)};function N(e){S=e,x||(x=!0,k())}function O(t,n){C=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,N(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,a,o){var i=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?i+o:i,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:a,priorityLevel:r,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>i?(r.sortIndex=o,t(u,r),null===n(l)&&r===n(u)&&(m?(y(C),C=-1):m=!0,O(_,o-i))):(r.sortIndex=s,t(l,r),h||p||(h=!0,N(w))),r},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(w)),w)),_.exports}
11
11
  /**
12
12
  * @license React
13
13
  * react-dom.production.min.js
@@ -16,5 +16,5 @@
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),y.exports=function(){if(h)return v;h=1;var e=i,t=x();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function l(e,t){o(e,t),o(e+"Capture",t)}function o(e,t){for(a[e]=t,e=0;e<t.length;e++)r.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),s=Object.prototype.hasOwnProperty,c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},d={};function p(e,t,n,r,a,l,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new p(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new p(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new p(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new p(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new p(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new p(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var a=m.hasOwnProperty(t)?m[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!s.call(d,e)||!s.call(f,e)&&(c.test(e)?d[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);m[t]=new p(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);m[t]=new p(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);m[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),M=Symbol.iterator;function F(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var D,I=Object.assign;function U(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var A=!1;function B(e,t){if(!e||A)return"";A=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),l=r.stack.split("\n"),o=a.length-1,i=l.length-1;1<=o&&0<=i&&a[o]!==l[i];)i--;for(;1<=o&&0<=i;o--,i--)if(a[o]!==l[i]){if(1!==o||1!==i)do{if(o--,0>--i||a[o]!==l[i]){var u="\n"+a[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=o&&0<=i);break}}}finally{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function $(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case S:return"Portal";case _:return"Profiler";case C:return"StrictMode";case j:return"Suspense";case z:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case N:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,l.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function G(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){G(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:q(r)}}function oe(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ue(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ue(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,fe,de=(fe=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return fe(e,t)}))}:fe);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var me={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||me.hasOwnProperty(e)&&me[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(me).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),me[t]=me[e]}))}));var ve=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ee=null,Ce=null;function _e(e){if(e=ya(e)){if("function"!=typeof Se)throw Error(n(280));var t=e.stateNode;t&&(t=ba(t),Se(e.stateNode,e.type,t))}}function Ne(e){Ee?Ce?Ce.push(e):Ce=[e]:Ee=e}function Pe(){if(Ee){var e=Ee,t=Ce;if(Ce=Ee=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Te(e,t){return e(t)}function je(){}var ze=!1;function Le(e,t,n){if(ze)return e(t,n);ze=!0;try{return Te(e,t,n)}finally{ze=!1,(null!==Ee||null!==Ce)&&(je(),Pe())}}function Re(e,t){var r=e.stateNode;if(null===r)return null;var a=ba(r);if(null===a)return null;r=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Oe=!1;if(u)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(fe){Oe=!1}function Fe(e,t,n,r,a,l,o,i,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var De=!1,Ie=null,Ue=!1,Ae=null,Be={onError:function(e){De=!0,Ie=e}};function $e(e,t,n,r,a,l,o,i,u){De=!1,Ie=null,Fe.apply(Be,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function qe(e){if(He(e)!==e)throw Error(n(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,a=t;;){var l=r.return;if(null===l)break;var o=l.alternate;if(null===o){if(null!==(a=l.return)){r=a;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===r)return qe(l),e;if(o===a)return qe(l),t;o=o.sibling}throw Error(n(188))}if(r.return!==a.return)r=l,a=o;else{for(var i=!1,u=l.child;u;){if(u===r){i=!0,r=l,a=o;break}if(u===a){i=!0,a=l,r=o;break}u=u.sibling}if(!i){for(u=o.child;u;){if(u===r){i=!0,r=o,a=l;break}if(u===a){i=!0,a=o,r=l;break}u=u.sibling}if(!i)throw Error(n(189))}}if(r.alternate!==a)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Qe(e):null}function Qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Qe(e);if(null!==t)return t;e=e.sibling}return null}var Ke=t.unstable_scheduleCallback,Ye=t.unstable_cancelCallback,Je=t.unstable_shouldYield,Xe=t.unstable_requestPaint,Ge=t.unstable_now,Ze=t.unstable_getCurrentPriorityLevel,et=t.unstable_ImmediatePriority,tt=t.unstable_UserBlockingPriority,nt=t.unstable_NormalPriority,rt=t.unstable_LowPriority,at=t.unstable_IdlePriority,lt=null,ot=null,it=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ut(e)/st|0)|0},ut=Math.log,st=Math.LN2,ct=64,ft=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,l=e.pingedLanes,o=268435455&n;if(0!==o){var i=o&~a;0!==i?r=dt(i):0!=(l&=o)&&(r=dt(l))}else 0!=(o=n&~a)?r=dt(o):0!==l&&(r=dt(l));if(0===r)return 0;if(0!==t&&t!==r&&!(t&a)&&((a=r&-r)>=(l=t&-t)||16===a&&4194240&l))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-it(t)),r|=e[n],t&=~a;return r}function mt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var wt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var kt,St,Et,Ct,_t,Nt=!1,Pt=[],Tt=null,jt=null,zt=null,Lt=new Map,Rt=new Map,Ot=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ft(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":zt=null;break;case"pointerover":case"pointerout":Lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Dt(e,t,n,r,a,l){return null===e||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[a]},null!==t&&null!==(t=ya(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function It(e){var t=ga(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void _t(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ut(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ya(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function At(e,t,n){Ut(e)&&n.delete(t)}function Bt(){Nt=!1,null!==Tt&&Ut(Tt)&&(Tt=null),null!==jt&&Ut(jt)&&(jt=null),null!==zt&&Ut(zt)&&(zt=null),Lt.forEach(At),Rt.forEach(At)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,Nt||(Nt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return $t(t,e)}if(0<Pt.length){$t(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&$t(Tt,e),null!==jt&&$t(jt,e),null!==zt&&$t(zt,e),Lt.forEach(t),Rt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)It(n),null===n.blockedOn&&Ot.shift()}var Vt=w.ReactCurrentBatchConfig,qt=!0;function Wt(e,t,n,r){var a=wt,l=Vt.transition;Vt.transition=null;try{wt=1,Kt(e,t,n,r)}finally{wt=a,Vt.transition=l}}function Qt(e,t,n,r){var a=wt,l=Vt.transition;Vt.transition=null;try{wt=4,Kt(e,t,n,r)}finally{wt=a,Vt.transition=l}}function Kt(e,t,n,r){if(qt){var a=Jt(e,t,n,r);if(null===a)$r(e,t,r,Yt,n),Ft(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Tt=Dt(Tt,e,t,n,r,a),!0;case"dragenter":return jt=Dt(jt,e,t,n,r,a),!0;case"mouseover":return zt=Dt(zt,e,t,n,r,a),!0;case"pointerover":var l=a.pointerId;return Lt.set(l,Dt(Lt.get(l)||null,e,t,n,r,a)),!0;case"gotpointercapture":return l=a.pointerId,Rt.set(l,Dt(Rt.get(l)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Ft(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==a;){var l=ya(a);if(null!==l&&kt(l),null===(l=Jt(e,t,n,r))&&$r(e,t,r,Yt,n),l===a)break;a=l}null!==a&&r.stopPropagation()}else $r(e,t,r,null,n)}}var Yt=null;function Jt(e,t,n,r){if(Yt=null,null!==(e=ga(e=ke(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case et:return 1;case tt:return 4;case nt:case rt:return 16;case at:return 536870912;default:return 16}default:return 16}}var Gt=null,Zt=null,en=null;function tn(){if(en)return en;var e,t,n=Zt,r=n.length,a="value"in Gt?Gt.value:Gt.textContent,l=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[l-t];t++);return en=a.slice(e,1<t?1-t:void 0)}function nn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rn(){return!0}function an(){return!1}function ln(e){function t(t,n,r,a,l){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=l,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?rn:an,this.isPropagationStopped=an,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var on,un,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=ln(cn),dn=I({},cn,{view:0,detail:0}),pn=ln(dn),mn=I({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(on=e.screenX-sn.screenX,un=e.screenY-sn.screenY):un=on=0,sn=e),on)},movementY:function(e){return"movementY"in e?e.movementY:un}}),hn=ln(mn),gn=ln(I({},mn,{dataTransfer:0})),yn=ln(I({},dn,{relatedTarget:0})),vn=ln(I({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=ln(I({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=ln(I({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return En}var _n=ln(I({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Nn=ln(I({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(I({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Tn=ln(I({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=ln(I({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),zn=[9,13,27,32],Ln=u&&"CompositionEvent"in window,Rn=null;u&&"documentMode"in document&&(Rn=document.documentMode);var On=u&&"TextEvent"in window&&!Rn,Mn=u&&(!Ln||Rn&&8<Rn&&11>=Rn),Fn=String.fromCharCode(32),Dn=!1;function In(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var An=!1,Bn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function Hn(e,t,n,r){Ne(r),0<(t=Vr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Wn(e){Fr(e,0)}function Qn(e){if(K(va(e)))return e}function Kn(e,t){if("change"===e)return t}var Yn=!1;if(u){var Jn;if(u){var Xn="oninput"in document;if(!Xn){var Gn=document.createElement("div");Gn.setAttribute("oninput","return;"),Xn="function"==typeof Gn.oninput}Jn=Xn}else Jn=!1;Yn=Jn&&(!document.documentMode||9<document.documentMode)}function Zn(){Vn&&(Vn.detachEvent("onpropertychange",er),qn=Vn=null)}function er(e){if("value"===e.propertyName&&Qn(qn)){var t=[];Hn(t,qn,e,ke(e)),Le(Wn,t)}}function tr(e,t,n){"focusin"===e?(Zn(),qn=n,(Vn=t).attachEvent("onpropertychange",er)):"focusout"===e&&Zn()}function nr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(qn)}function rr(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function or(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!s.call(t,a)||!lr(e[a],t[a]))return!1}return!0}function ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=ir(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ir(r)}}function sr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?sr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function dr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,l=Math.min(r.start,a);r=void 0===r.end?l:Math.min(r.end,a),!e.extend&&l>r&&(a=r,r=l,l=a),a=ur(n,l);var o=ur(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,hr=null,gr=null,yr=!1;function vr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==mr||mr!==Y(r)||(r="selectionStart"in(r=mr)&&fr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&or(gr,r)||(gr=r,0<(r=Vr(hr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},xr={},kr={};function Sr(e){if(xr[e])return xr[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return xr[e]=n[t];return e}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Er=Sr("animationend"),Cr=Sr("animationiteration"),_r=Sr("animationstart"),Nr=Sr("transitionend"),Pr=new Map,Tr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jr(e,t){Pr.set(e,t),l(t,[e])}for(var zr=0;zr<Tr.length;zr++){var Lr=Tr[zr];jr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}jr(Er,"onAnimationEnd"),jr(Cr,"onAnimationIteration"),jr(_r,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(Nr,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Or=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function Mr(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,a,l,o,i,u,s){if($e.apply(this,arguments),De){if(!De)throw Error(n(198));var c=Ie;De=!1,Ie=null,Ue||(Ue=!0,Ae=c)}}(a,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var i=r[o],u=i.instance,s=i.currentTarget;if(i=i.listener,u!==l&&a.isPropagationStopped())break e;Mr(a,i,s),l=u}else for(o=0;o<r.length;o++){if(u=(i=r[o]).instance,s=i.currentTarget,i=i.listener,u!==l&&a.isPropagationStopped())break e;Mr(a,i,s),l=u}}}if(Ue)throw e=Ae,Ue=!1,Ae=null,e}function Dr(e,t){var n=t[pa];void 0===n&&(n=t[pa]=new Set);var r=e+"__bubble";n.has(r)||(Br(t,e,2,!1),n.add(r))}function Ir(e,t,n){var r=0;t&&(r|=4),Br(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Ar(e){if(!e[Ur]){e[Ur]=!0,r.forEach((function(t){"selectionchange"!==t&&(Or.has(t)||Ir(t,!1,e),Ir(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,Ir("selectionchange",!1,t))}}function Br(e,t,n,r){switch(Xt(t)){case 1:var a=Wt;break;case 4:a=Qt;break;default:a=Kt}n=a.bind(null,t,n,e),a=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function $r(e,t,n,r,a){var l=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var i=r.stateNode.containerInfo;if(i===a||8===i.nodeType&&i.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===a||8===u.nodeType&&u.parentNode===a))return;o=o.return}for(;null!==i;){if(null===(o=ga(i)))return;if(5===(u=o.tag)||6===u){r=l=o;continue e}i=i.parentNode}}r=r.return}Le((function(){var r=l,a=ke(n),o=[];e:{var i=Pr.get(e);if(void 0!==i){var u=fn,s=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":u=_n;break;case"focusin":s="focus",u=yn;break;case"focusout":s="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Pn;break;case Er:case Cr:case _r:u=vn;break;case Nr:u=Tn;break;case"scroll":u=pn;break;case"wheel":u=jn;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Nn}var c=!!(4&t),f=!c&&"scroll"===e,d=c?null!==i?i+"Capture":null:i;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&null!=(h=Re(m,d))&&c.push(Hr(m,h,p))),f)break;m=m.return}0<c.length&&(i=new u(i,s,null,n,a),o.push({event:i,listeners:c}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||n===xe||!(s=n.relatedTarget||n.fromElement)||!ga(s)&&!s[da])&&(u||i)&&(i=a.window===a?a:(i=a.ownerDocument)?i.defaultView||i.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?ga(s):null)&&(s!==(f=He(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=hn,h="onMouseLeave",d="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nn,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==u?i:va(u),p=null==s?i:va(s),(i=new c(h,m+"leave",u,n,a)).target=f,i.relatedTarget=p,h=null,ga(a)===r&&((c=new c(d,m+"enter",s,n,a)).target=p,c.relatedTarget=f,h=c),f=h,u&&s)e:{for(d=s,m=0,p=c=u;p;p=qr(p))m++;for(p=0,h=d;h;h=qr(h))p++;for(;0<m-p;)c=qr(c),m--;for(;0<p-m;)d=qr(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break e;c=qr(c),d=qr(d)}c=null}else c=null;null!==u&&Wr(o,i,u,c,!1),null!==s&&null!==f&&Wr(o,f,s,c,!0)}if("select"===(u=(i=r?va(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===u&&"file"===i.type)var g=Kn;else if($n(i))if(Yn)g=ar;else{g=nr;var y=tr}else(u=i.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(g=rr);switch(g&&(g=g(e,r))?Hn(o,g,n,a):(y&&y(e,i,r),"focusout"===e&&(y=i._wrapperState)&&y.controlled&&"number"===i.type&&te(i,"number",i.value)),y=r?va(r):window,e){case"focusin":($n(y)||"true"===y.contentEditable)&&(mr=y,hr=r,gr=null);break;case"focusout":gr=hr=mr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,vr(o,n,a);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":vr(o,n,a)}var v;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else An?In(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(An||"onCompositionStart"!==b?"onCompositionEnd"===b&&An&&(v=tn()):(Zt="value"in(Gt=a)?Gt.value:Gt.textContent,An=!0)),0<(y=Vr(r,b)).length&&(b=new wn(b,e,null,n,a),o.push({event:b,listeners:y}),(v||null!==(v=Un(n)))&&(b.data=v))),(v=On?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Dn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Dn?null:e;default:return null}}(e,n):function(e,t){if(An)return"compositionend"===e||!Ln&&In(e,t)?(e=tn(),en=Zt=Gt=null,An=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Vr(r,"onBeforeInput")).length&&(a=new wn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=v)}Fr(o,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,l=a.stateNode;5===a.tag&&null!==l&&(a=l,null!=(l=Re(e,n))&&r.unshift(Hr(e,l,a)),null!=(l=Re(e,t))&&r.push(Hr(e,l,a))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Wr(e,t,n,r,a){for(var l=t._reactName,o=[];null!==n&&n!==r;){var i=n,u=i.alternate,s=i.stateNode;if(null!==u&&u===r)break;5===i.tag&&null!==s&&(i=s,a?null!=(u=Re(n,l))&&o.unshift(Hr(n,u,i)):a||null!=(u=Re(n,l))&&o.push(Hr(n,u,i))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Qr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Kr,"")}function Jr(e,t,r){if(t=Yr(t),Yr(e)!==t&&r)throw Error(n(425))}function Xr(){}var Gr=null,Zr=null;function ea(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ta="function"==typeof setTimeout?setTimeout:void 0,na="function"==typeof clearTimeout?clearTimeout:void 0,ra="function"==typeof Promise?Promise:void 0,aa="function"==typeof queueMicrotask?queueMicrotask:void 0!==ra?function(e){return ra.resolve(null).then(e).catch(la)}:ta;function la(e){setTimeout((function(){throw e}))}function oa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Ht(t)}function ia(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var sa=Math.random().toString(36).slice(2),ca="__reactFiber$"+sa,fa="__reactProps$"+sa,da="__reactContainer$"+sa,pa="__reactEvents$"+sa,ma="__reactListeners$"+sa,ha="__reactHandles$"+sa;function ga(e){var t=e[ca];if(t)return t;for(var n=e.parentNode;n;){if(t=n[da]||n[ca]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ua(e);null!==e;){if(n=e[ca])return n;e=ua(e)}return t}n=(e=n).parentNode}return null}function ya(e){return!(e=e[ca]||e[da])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function va(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function ba(e){return e[fa]||null}var wa=[],xa=-1;function ka(e){return{current:e}}function Sa(e){0>xa||(e.current=wa[xa],wa[xa]=null,xa--)}function Ea(e,t){xa++,wa[xa]=e.current,e.current=t}var Ca={},_a=ka(Ca),Na=ka(!1),Pa=Ca;function Ta(e,t){var n=e.type.contextTypes;if(!n)return Ca;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,l={};for(a in n)l[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function ja(e){return null!=e.childContextTypes}function za(){Sa(Na),Sa(_a)}function La(e,t,r){if(_a.current!==Ca)throw Error(n(168));Ea(_a,t),Ea(Na,r)}function Ra(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,"function"!=typeof a.getChildContext)return r;for(var l in a=a.getChildContext())if(!(l in t))throw Error(n(108,V(e)||"Unknown",l));return I({},r,a)}function Oa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ca,Pa=_a.current,Ea(_a,e),Ea(Na,Na.current),!0}function Ma(e,t,r){var a=e.stateNode;if(!a)throw Error(n(169));r?(e=Ra(e,t,Pa),a.__reactInternalMemoizedMergedChildContext=e,Sa(Na),Sa(_a),Ea(_a,e)):Sa(Na),Ea(Na,r)}var Fa=null,Da=!1,Ia=!1;function Ua(e){null===Fa?Fa=[e]:Fa.push(e)}function Aa(){if(!Ia&&null!==Fa){Ia=!0;var e=0,t=wt;try{var n=Fa;for(wt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fa=null,Da=!1}catch(t){throw null!==Fa&&(Fa=Fa.slice(e+1)),Ke(et,Aa),t}finally{wt=t,Ia=!1}}return null}var Ba=[],$a=0,Ha=null,Va=0,qa=[],Wa=0,Qa=null,Ka=1,Ya="";function Ja(e,t){Ba[$a++]=Va,Ba[$a++]=Ha,Ha=e,Va=t}function Xa(e,t,n){qa[Wa++]=Ka,qa[Wa++]=Ya,qa[Wa++]=Qa,Qa=e;var r=Ka;e=Ya;var a=32-it(r)-1;r&=~(1<<a),n+=1;var l=32-it(t)+a;if(30<l){var o=a-a%5;l=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Ka=1<<32-it(t)+a|n<<a|r,Ya=l+e}else Ka=1<<l|n<<a|r,Ya=e}function Ga(e){null!==e.return&&(Ja(e,1),Xa(e,1,0))}function Za(e){for(;e===Ha;)Ha=Ba[--$a],Ba[$a]=null,Va=Ba[--$a],Ba[$a]=null;for(;e===Qa;)Qa=qa[--Wa],qa[Wa]=null,Ya=qa[--Wa],qa[Wa]=null,Ka=qa[--Wa],qa[Wa]=null}var el=null,tl=null,nl=!1,rl=null;function al(e,t){var n=Ts(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ll(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,el=e,tl=ia(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,el=e,tl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qa?{id:Ka,overflow:Ya}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ts(18,null,null,0)).stateNode=t,n.return=e,e.child=n,el=e,tl=null,!0);default:return!1}}function ol(e){return!(!(1&e.mode)||128&e.flags)}function il(e){if(nl){var t=tl;if(t){var r=t;if(!ll(e,t)){if(ol(e))throw Error(n(418));t=ia(r.nextSibling);var a=el;t&&ll(e,t)?al(a,r):(e.flags=-4097&e.flags|2,nl=!1,el=e)}}else{if(ol(e))throw Error(n(418));e.flags=-4097&e.flags|2,nl=!1,el=e}}}function ul(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;el=e}function sl(e){if(e!==el)return!1;if(!nl)return ul(e),nl=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ea(e.type,e.memoizedProps)),t&&(t=tl)){if(ol(e))throw cl(),Error(n(418));for(;t;)al(e,t),t=ia(t.nextSibling)}if(ul(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){tl=ia(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}tl=null}}else tl=el?ia(e.stateNode.nextSibling):null;return!0}function cl(){for(var e=tl;e;)e=ia(e.nextSibling)}function fl(){tl=el=null,nl=!1}function dl(e){null===rl?rl=[e]:rl.push(e)}var pl=w.ReactCurrentBatchConfig;function ml(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var a=r.stateNode}if(!a)throw Error(n(147,e));var l=a,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=l.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function hl(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function gl(e){return(0,e._init)(e._payload)}function yl(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function l(e,t){return(e=zs(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ms(n,e.mode,r)).return=e,t):((t=l(t,n)).return=e,t)}function s(e,t,n,r){var a=n.type;return a===E?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===R&&gl(a)===t.type)?((r=l(t,n.props)).ref=ml(e,t,n),r.return=e,r):((r=Ls(n.type,n.key,n.props,null,e.mode,r)).ref=ml(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fs(n,e.mode,r)).return=e,t):((t=l(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Rs(n,e.mode,r,a)).return=e,t):((t=l(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ms(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Ls(t.type,t.key,t.props,null,e.mode,n)).ref=ml(e,null,t),n.return=e,n;case S:return(t=Fs(t,e.mode,n)).return=e,t;case R:return d(e,(0,t._init)(t._payload),n)}if(ne(t)||F(t))return(t=Rs(t,e.mode,n,null)).return=e,t;hl(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===a?s(e,t,n,r):null;case S:return n.key===a?c(e,t,n,r):null;case R:return p(e,t,(a=n._init)(n._payload),r)}if(ne(n)||F(n))return null!==a?null:f(e,t,n,r,null);hl(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return s(t,e=e.get(null===r.key?n:r.key)||null,r,a);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case R:return m(e,t,n,(0,r._init)(r._payload),a)}if(ne(r)||F(r))return f(t,e=e.get(n)||null,r,a,null);hl(t,r)}return null}function h(n,l,i,u){for(var s=null,c=null,f=l,h=l=0,g=null;null!==f&&h<i.length;h++){f.index>h?(g=f,f=null):g=f.sibling;var y=p(n,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(n,f),l=o(y,l,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return r(n,f),nl&&Ja(n,h),s;if(null===f){for(;h<i.length;h++)null!==(f=d(n,i[h],u))&&(l=o(f,l,h),null===c?s=f:c.sibling=f,c=f);return nl&&Ja(n,h),s}for(f=a(n,f);h<i.length;h++)null!==(g=m(f,n,h,i[h],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),l=o(g,l,h),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return t(n,e)})),nl&&Ja(n,h),s}function g(l,i,u,s){var c=F(u);if("function"!=typeof c)throw Error(n(150));if(null==(u=c.call(u)))throw Error(n(151));for(var f=c=null,h=i,g=i=0,y=null,v=u.next();null!==h&&!v.done;g++,v=u.next()){h.index>g?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),i=o(b,i,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return r(l,h),nl&&Ja(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(i=o(v,i,g),null===f?c=v:f.sibling=v,f=v);return nl&&Ja(l,g),c}for(h=a(l,h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=o(v,i,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach((function(e){return t(l,e)})),nl&&Ja(l,g),c}return function e(n,a,o,u){if("object"==typeof o&&null!==o&&o.type===E&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case k:e:{for(var s=o.key,c=a;null!==c;){if(c.key===s){if((s=o.type)===E){if(7===c.tag){r(n,c.sibling),(a=l(c,o.props.children)).return=n,n=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===R&&gl(s)===c.type){r(n,c.sibling),(a=l(c,o.props)).ref=ml(n,c,o),a.return=n,n=a;break e}r(n,c);break}t(n,c),c=c.sibling}o.type===E?((a=Rs(o.props.children,n.mode,u,o.key)).return=n,n=a):((u=Ls(o.type,o.key,o.props,null,n.mode,u)).ref=ml(n,a,o),u.return=n,n=u)}return i(n);case S:e:{for(c=o.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){r(n,a.sibling),(a=l(a,o.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Fs(o,n.mode,u)).return=n,n=a}return i(n);case R:return e(n,a,(c=o._init)(o._payload),u)}if(ne(o))return h(n,a,o,u);if(F(o))return g(n,a,o,u);hl(n,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==a&&6===a.tag?(r(n,a.sibling),(a=l(a,o)).return=n,n=a):(r(n,a),(a=Ms(o,n.mode,u)).return=n,n=a),i(n)):r(n,a)}}var vl=yl(!0),bl=yl(!1),wl=ka(null),xl=null,kl=null,Sl=null;function El(){Sl=kl=xl=null}function Cl(e){var t=wl.current;Sa(wl),e._currentValue=t}function _l(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Nl(e,t){xl=e,Sl=kl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yi=!0),e.firstContext=null)}function Pl(e){var t=e._currentValue;if(Sl!==e)if(e={context:e,memoizedValue:t,next:null},null===kl){if(null===xl)throw Error(n(308));kl=e,xl.dependencies={lanes:0,firstContext:e}}else kl=kl.next=e;return t}var Tl=null;function jl(e){null===Tl?Tl=[e]:Tl.push(e)}function zl(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,jl(t)):(n.next=a.next,a.next=n),t.interleaved=n,Ll(e,r)}function Ll(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Rl=!1;function Ol(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ml(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Dl(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&_u){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Ll(e,n)}return null===(a=r.interleaved)?(t.next=t,jl(r)):(t.next=a.next,a.next=t),r.interleaved=t,Ll(e,n)}function Il(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Ul(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,l=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===l?a=l=o:l=l.next=o,n=n.next}while(null!==n);null===l?a=l=t:l=l.next=t}else a=l=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:l,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Al(e,t,n,r){var a=e.updateQueue;Rl=!1;var l=a.firstBaseUpdate,o=a.lastBaseUpdate,i=a.shared.pending;if(null!==i){a.shared.pending=null;var u=i,s=u.next;u.next=null,null===o?l=s:o.next=s,o=u;var c=e.alternate;null!==c&&(i=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===i?c.firstBaseUpdate=s:i.next=s,c.lastBaseUpdate=u)}if(null!==l){var f=a.baseState;for(o=0,c=s=u=null,i=l;;){var d=i.lane,p=i.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,h=i;switch(d=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(p,f,d):m))break e;f=I({},f,d);break e;case 2:Rl=!0}}null!==i.callback&&0!==i.lane&&(e.flags|=64,null===(d=a.effects)?a.effects=[i]:d.push(i))}else p={eventTime:p,lane:d,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===c?(s=c=p,u=f):c=c.next=p,o|=d;if(null===(i=i.next)){if(null===(i=a.shared.pending))break;i=(d=i).next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}if(null===c&&(u=f),a.baseState=u,a.firstBaseUpdate=s,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{o|=a.lane,a=a.next}while(a!==t)}else null===l&&(a.shared.lanes=0);Ou|=o,e.lanes=o,e.memoizedState=f}}function Bl(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var a=e[t],l=a.callback;if(null!==l){if(a.callback=null,a=r,"function"!=typeof l)throw Error(n(191,l));l.call(a)}}}var $l={},Hl=ka($l),Vl=ka($l),ql=ka($l);function Wl(e){if(e===$l)throw Error(n(174));return e}function Ql(e,t){switch(Ea(ql,t),Ea(Vl,e),Ea(Hl,$l),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Sa(Hl),Ea(Hl,t)}function Kl(){Sa(Hl),Sa(Vl),Sa(ql)}function Yl(e){Wl(ql.current);var t=Wl(Hl.current),n=se(t,e.type);t!==n&&(Ea(Vl,e),Ea(Hl,n))}function Jl(e){Vl.current===e&&(Sa(Hl),Sa(Vl))}var Xl=ka(0);function Gl(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zl=[];function eo(){for(var e=0;e<Zl.length;e++)Zl[e]._workInProgressVersionPrimary=null;Zl.length=0}var to=w.ReactCurrentDispatcher,no=w.ReactCurrentBatchConfig,ro=0,ao=null,lo=null,oo=null,io=!1,uo=!1,so=0,co=0;function fo(){throw Error(n(321))}function po(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function mo(e,t,r,a,l,o){if(ro=o,ao=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,to.current=null===e||null===e.memoizedState?Xo:Go,e=r(a,l),uo){o=0;do{if(uo=!1,so=0,25<=o)throw Error(n(301));o+=1,oo=lo=null,t.updateQueue=null,to.current=Zo,e=r(a,l)}while(uo)}if(to.current=Jo,t=null!==lo&&null!==lo.next,ro=0,oo=lo=ao=null,io=!1,t)throw Error(n(300));return e}function ho(){var e=0!==so;return so=0,e}function go(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===oo?ao.memoizedState=oo=e:oo=oo.next=e,oo}function yo(){if(null===lo){var e=ao.alternate;e=null!==e?e.memoizedState:null}else e=lo.next;var t=null===oo?ao.memoizedState:oo.next;if(null!==t)oo=t,lo=e;else{if(null===e)throw Error(n(310));e={memoizedState:(lo=e).memoizedState,baseState:lo.baseState,baseQueue:lo.baseQueue,queue:lo.queue,next:null},null===oo?ao.memoizedState=oo=e:oo=oo.next=e}return oo}function vo(e,t){return"function"==typeof t?t(e):t}function bo(e){var t=yo(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=lo,l=a.baseQueue,o=r.pending;if(null!==o){if(null!==l){var i=l.next;l.next=o.next,o.next=i}a.baseQueue=l=o,r.pending=null}if(null!==l){o=l.next,a=a.baseState;var u=i=null,s=null,c=o;do{var f=c.lane;if((ro&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),a=c.hasEagerState?c.eagerState:e(a,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=d,i=a):s=s.next=d,ao.lanes|=f,Ou|=f}c=c.next}while(null!==c&&c!==o);null===s?i=a:s.next=u,lr(a,t.memoizedState)||(yi=!0),t.memoizedState=a,t.baseState=i,t.baseQueue=s,r.lastRenderedState=a}if(null!==(e=r.interleaved)){l=e;do{o=l.lane,ao.lanes|=o,Ou|=o,l=l.next}while(l!==e)}else null===l&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wo(e){var t=yo(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=r.dispatch,l=r.pending,o=t.memoizedState;if(null!==l){r.pending=null;var i=l=l.next;do{o=e(o,i.action),i=i.next}while(i!==l);lr(o,t.memoizedState)||(yi=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,a]}function xo(){}function ko(e,t){var r=ao,a=yo(),l=t(),o=!lr(a.memoizedState,l);if(o&&(a.memoizedState=l,yi=!0),a=a.queue,Oo(Co.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||null!==oo&&1&oo.memoizedState.tag){if(r.flags|=2048,To(9,Eo.bind(null,r,a,l,t),void 0,null),null===Nu)throw Error(n(349));30&ro||So(r,t,l)}return l}function So(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ao.updateQueue)?(t={lastEffect:null,stores:null},ao.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Eo(e,t,n,r){t.value=n,t.getSnapshot=r,_o(t)&&No(e)}function Co(e,t,n){return n((function(){_o(t)&&No(e)}))}function _o(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function No(e){var t=Ll(e,1);null!==t&&es(t,e,1,-1)}function Po(e){var t=go();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:e},t.queue=e,e=e.dispatch=Wo.bind(null,ao,e),[t.memoizedState,e]}function To(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ao.updateQueue)?(t={lastEffect:null,stores:null},ao.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function jo(){return yo().memoizedState}function zo(e,t,n,r){var a=go();ao.flags|=e,a.memoizedState=To(1|t,n,void 0,void 0===r?null:r)}function Lo(e,t,n,r){var a=yo();r=void 0===r?null:r;var l=void 0;if(null!==lo){var o=lo.memoizedState;if(l=o.destroy,null!==r&&po(r,o.deps))return void(a.memoizedState=To(t,n,l,r))}ao.flags|=e,a.memoizedState=To(1|t,n,l,r)}function Ro(e,t){return zo(8390656,8,e,t)}function Oo(e,t){return Lo(2048,8,e,t)}function Mo(e,t){return Lo(4,2,e,t)}function Fo(e,t){return Lo(4,4,e,t)}function Do(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Io(e,t,n){return n=null!=n?n.concat([e]):null,Lo(4,4,Do.bind(null,t,e),n)}function Uo(){}function Ao(e,t){var n=yo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&po(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Bo(e,t){var n=yo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&po(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $o(e,t,n){return 21&ro?(lr(n,t)||(n=gt(),ao.lanes|=n,Ou|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yi=!0),e.memoizedState=n)}function Ho(e,t){var n=wt;wt=0!==n&&4>n?n:4,e(!0);var r=no.transition;no.transition={};try{e(!1),t()}finally{wt=n,no.transition=r}}function Vo(){return yo().memoizedState}function qo(e,t,n){var r=Zu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qo(e)?Ko(t,n):null!==(n=zl(e,t,n,r))&&(es(n,e,r,Gu()),Yo(n,t,r))}function Wo(e,t,n){var r=Zu(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qo(e))Ko(t,a);else{var l=e.alternate;if(0===e.lanes&&(null===l||0===l.lanes)&&null!==(l=t.lastRenderedReducer))try{var o=t.lastRenderedState,i=l(o,n);if(a.hasEagerState=!0,a.eagerState=i,lr(i,o)){var u=t.interleaved;return null===u?(a.next=a,jl(t)):(a.next=u.next,u.next=a),void(t.interleaved=a)}}catch(e){}null!==(n=zl(e,t,a,r))&&(es(n,e,r,a=Gu()),Yo(n,t,r))}}function Qo(e){var t=e.alternate;return e===ao||null!==t&&t===ao}function Ko(e,t){uo=io=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yo(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Jo={readContext:Pl,useCallback:fo,useContext:fo,useEffect:fo,useImperativeHandle:fo,useInsertionEffect:fo,useLayoutEffect:fo,useMemo:fo,useReducer:fo,useRef:fo,useState:fo,useDebugValue:fo,useDeferredValue:fo,useTransition:fo,useMutableSource:fo,useSyncExternalStore:fo,useId:fo,unstable_isNewReconciler:!1},Xo={readContext:Pl,useCallback:function(e,t){return go().memoizedState=[e,void 0===t?null:t],e},useContext:Pl,useEffect:Ro,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,zo(4194308,4,Do.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return zo(4,2,e,t)},useMemo:function(e,t){var n=go();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=go();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qo.bind(null,ao,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},go().memoizedState=e},useState:Po,useDebugValue:Uo,useDeferredValue:function(e){return go().memoizedState=e},useTransition:function(){var e=Po(!1),t=e[0];return e=Ho.bind(null,e[1]),go().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=ao,l=go();if(nl){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Nu)throw Error(n(349));30&ro||So(a,t,r)}l.memoizedState=r;var o={value:r,getSnapshot:t};return l.queue=o,Ro(Co.bind(null,a,o,e),[e]),a.flags|=2048,To(9,Eo.bind(null,a,o,r,t),void 0,null),r},useId:function(){var e=go(),t=Nu.identifierPrefix;if(nl){var n=Ya;t=":"+t+"R"+(n=(Ka&~(1<<32-it(Ka)-1)).toString(32)+n),0<(n=so++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=co++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Go={readContext:Pl,useCallback:Ao,useContext:Pl,useEffect:Oo,useImperativeHandle:Io,useInsertionEffect:Mo,useLayoutEffect:Fo,useMemo:Bo,useReducer:bo,useRef:jo,useState:function(){return bo(vo)},useDebugValue:Uo,useDeferredValue:function(e){return $o(yo(),lo.memoizedState,e)},useTransition:function(){return[bo(vo)[0],yo().memoizedState]},useMutableSource:xo,useSyncExternalStore:ko,useId:Vo,unstable_isNewReconciler:!1},Zo={readContext:Pl,useCallback:Ao,useContext:Pl,useEffect:Oo,useImperativeHandle:Io,useInsertionEffect:Mo,useLayoutEffect:Fo,useMemo:Bo,useReducer:wo,useRef:jo,useState:function(){return wo(vo)},useDebugValue:Uo,useDeferredValue:function(e){var t=yo();return null===lo?t.memoizedState=e:$o(t,lo.memoizedState,e)},useTransition:function(){return[wo(vo)[0],yo().memoizedState]},useMutableSource:xo,useSyncExternalStore:ko,useId:Vo,unstable_isNewReconciler:!1};function ei(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ti(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ni={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gu(),a=Zu(e),l=Fl(r,a);l.payload=t,null!=n&&(l.callback=n),null!==(t=Dl(e,l,a))&&(es(t,e,a,r),Il(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gu(),a=Zu(e),l=Fl(r,a);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=Dl(e,l,a))&&(es(t,e,a,r),Il(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gu(),r=Zu(e),a=Fl(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Dl(e,a,r))&&(es(t,e,r,n),Il(t,e,r))}};function ri(e,t,n,r,a,l,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,l,o):!(t.prototype&&t.prototype.isPureReactComponent&&or(n,r)&&or(a,l))}function ai(e,t,n){var r=!1,a=Ca,l=t.contextType;return"object"==typeof l&&null!==l?l=Pl(l):(a=ja(t)?Pa:_a.current,l=(r=null!=(r=t.contextTypes))?Ta(e,a):Ca),t=new t(n,l),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ni,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=l),t}function li(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ni.enqueueReplaceState(t,t.state,null)}function oi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},Ol(e);var l=t.contextType;"object"==typeof l&&null!==l?a.context=Pl(l):(l=ja(t)?Pa:_a.current,a.context=Ta(e,l)),a.state=e.memoizedState,"function"==typeof(l=t.getDerivedStateFromProps)&&(ti(e,t,l,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&ni.enqueueReplaceState(a,a.state,null),Al(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function ii(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a,digest:null}}function ui(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function si(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var ci="function"==typeof WeakMap?WeakMap:Map;function fi(e,t,n){(n=Fl(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$u||($u=!0,Hu=r),si(0,t)},n}function di(e,t,n){(n=Fl(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){si(0,t)}}var l=e.stateNode;return null!==l&&"function"==typeof l.componentDidCatch&&(n.callback=function(){si(0,t),"function"!=typeof r&&(null===Vu?Vu=new Set([this]):Vu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function pi(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ci;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Ss.bind(null,e,t,n),t.then(e,e))}function mi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function hi(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fl(-1,1)).tag=2,Dl(n,t,1))),n.lanes|=1),e)}var gi=w.ReactCurrentOwner,yi=!1;function vi(e,t,n,r){t.child=null===e?bl(t,null,n,r):vl(t,e.child,n,r)}function bi(e,t,n,r,a){n=n.render;var l=t.ref;return Nl(t,a),r=mo(e,t,n,r,l,a),n=ho(),null===e||yi?(nl&&n&&Ga(t),t.flags|=1,vi(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$i(e,t,a))}function wi(e,t,n,r,a){if(null===e){var l=n.type;return"function"!=typeof l||js(l)||void 0!==l.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ls(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=l,xi(e,t,l,r,a))}if(l=e.child,!(e.lanes&a)){var o=l.memoizedProps;if((n=null!==(n=n.compare)?n:or)(o,r)&&e.ref===t.ref)return $i(e,t,a)}return t.flags|=1,(e=zs(l,r)).ref=t.ref,e.return=t,t.child=e}function xi(e,t,n,r,a){if(null!==e){var l=e.memoizedProps;if(or(l,r)&&e.ref===t.ref){if(yi=!1,t.pendingProps=r=l,!(e.lanes&a))return t.lanes=e.lanes,$i(e,t,a);131072&e.flags&&(yi=!0)}}return Ei(e,t,n,r,a)}function ki(e,t,n){var r=t.pendingProps,a=r.children,l=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==l?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ea(zu,ju),ju|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==l?l.baseLanes:n,Ea(zu,ju),ju|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ea(zu,ju),ju|=n;else null!==l?(r=l.baseLanes|n,t.memoizedState=null):r=n,Ea(zu,ju),ju|=r;return vi(e,t,a,n),t.child}function Si(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ei(e,t,n,r,a){var l=ja(n)?Pa:_a.current;return l=Ta(t,l),Nl(t,a),n=mo(e,t,n,r,l,a),r=ho(),null===e||yi?(nl&&r&&Ga(t),t.flags|=1,vi(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$i(e,t,a))}function Ci(e,t,n,r,a){if(ja(n)){var l=!0;Oa(t)}else l=!1;if(Nl(t,a),null===t.stateNode)Bi(e,t),ai(t,n,r),oi(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,i=t.memoizedProps;o.props=i;var u=o.context,s=n.contextType;s="object"==typeof s&&null!==s?Pl(s):Ta(t,s=ja(n)?Pa:_a.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==r||u!==s)&&li(t,o,r,s),Rl=!1;var d=t.memoizedState;o.state=d,Al(t,r,o,a),u=t.memoizedState,i!==r||d!==u||Na.current||Rl?("function"==typeof c&&(ti(t,n,c,r),u=t.memoizedState),(i=Rl||ri(t,n,i,r,d,u,s))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=i):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ml(e,t),i=t.memoizedProps,s=t.type===t.elementType?i:ei(t.type,i),o.props=s,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?Pl(u):Ta(t,u=ja(n)?Pa:_a.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==f||d!==u)&&li(t,o,r,u),Rl=!1,d=t.memoizedState,o.state=d,Al(t,r,o,a);var m=t.memoizedState;i!==f||d!==m||Na.current||Rl?("function"==typeof p&&(ti(t,n,p,r),m=t.memoizedState),(s=Rl||ri(t,n,s,r,d,m,u)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,m,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,m,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=u,r=s):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return _i(e,t,n,r,l,a)}function _i(e,t,n,r,a,l){Si(e,t);var o=!!(128&t.flags);if(!r&&!o)return a&&Ma(t,n,!1),$i(e,t,l);r=t.stateNode,gi.current=t;var i=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=vl(t,e.child,null,l),t.child=vl(t,null,i,l)):vi(e,t,i,l),t.memoizedState=r.state,a&&Ma(t,n,!0),t.child}function Ni(e){var t=e.stateNode;t.pendingContext?La(0,t.pendingContext,t.pendingContext!==t.context):t.context&&La(0,t.context,!1),Ql(e,t.containerInfo)}function Pi(e,t,n,r,a){return fl(),dl(a),t.flags|=256,vi(e,t,n,r),t.child}var Ti,ji,zi,Li,Ri={dehydrated:null,treeContext:null,retryLane:0};function Oi(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mi(e,t,r){var a,l=t.pendingProps,o=Xl.current,i=!1,u=!!(128&t.flags);if((a=u)||(a=(null===e||null!==e.memoizedState)&&!!(2&o)),a?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ea(Xl,1&o),null===e)return il(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=l.children,e=l.fallback,i?(l=t.mode,i=t.child,u={mode:"hidden",children:u},1&l||null===i?i=Os(u,l,0,null):(i.childLanes=0,i.pendingProps=u),e=Rs(e,l,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Oi(r),t.memoizedState=Ri,e):Fi(t,u));if(null!==(o=e.memoizedState)&&null!==(a=o.dehydrated))return function(e,t,r,a,l,o,i){if(r)return 256&t.flags?(t.flags&=-257,Di(e,t,i,a=ui(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=a.fallback,l=t.mode,a=Os({mode:"visible",children:a.children},l,0,null),(o=Rs(o,l,i,null)).flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,1&t.mode&&vl(t,e.child,null,i),t.child.memoizedState=Oi(i),t.memoizedState=Ri,o);if(!(1&t.mode))return Di(e,t,i,null);if("$!"===l.data){if(a=l.nextSibling&&l.nextSibling.dataset)var u=a.dgst;return a=u,Di(e,t,i,a=ui(o=Error(n(419)),a,void 0))}if(u=!!(i&e.childLanes),yi||u){if(null!==(a=Nu)){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}0!==(l=l&(a.suspendedLanes|i)?0:l)&&l!==o.retryLane&&(o.retryLane=l,Ll(e,l),es(a,e,l,-1))}return ps(),Di(e,t,i,a=ui(Error(n(421))))}return"$?"===l.data?(t.flags|=128,t.child=e.child,t=Cs.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,tl=ia(l.nextSibling),el=t,nl=!0,rl=null,null!==e&&(qa[Wa++]=Ka,qa[Wa++]=Ya,qa[Wa++]=Qa,Ka=e.id,Ya=e.overflow,Qa=t),(t=Fi(t,a.children)).flags|=4096,t)}(e,t,u,l,a,o,r);if(i){i=l.fallback,u=t.mode,a=(o=e.child).sibling;var s={mode:"hidden",children:l.children};return 1&u||t.child===o?(l=zs(o,s)).subtreeFlags=14680064&o.subtreeFlags:((l=t.child).childLanes=0,l.pendingProps=s,t.deletions=null),null!==a?i=zs(a,i):(i=Rs(i,u,r,null)).flags|=2,i.return=t,l.return=t,l.sibling=i,t.child=l,l=i,i=t.child,u=null===(u=e.child.memoizedState)?Oi(r):{baseLanes:u.baseLanes|r,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~r,t.memoizedState=Ri,l}return e=(i=e.child).sibling,l=zs(i,{mode:"visible",children:l.children}),!(1&t.mode)&&(l.lanes=r),l.return=t,l.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l}function Fi(e,t){return(t=Os({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Di(e,t,n,r){return null!==r&&dl(r),vl(t,e.child,null,n),(e=Fi(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ii(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_l(e.return,t,n)}function Ui(e,t,n,r,a){var l=e.memoizedState;null===l?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=a)}function Ai(e,t,n){var r=t.pendingProps,a=r.revealOrder,l=r.tail;if(vi(e,t,r.children,n),2&(r=Xl.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ii(e,n,t);else if(19===e.tag)Ii(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ea(Xl,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Gl(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ui(t,!1,a,n,l);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Gl(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ui(t,!0,n,null,l);break;case"together":Ui(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bi(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $i(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ou|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=zs(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=zs(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Hi(e,t){if(!nl)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qi(e,t,r){var l=t.pendingProps;switch(Za(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vi(t),null;case 1:case 17:return ja(t.type)&&za(),Vi(t),null;case 3:return l=t.stateNode,Kl(),Sa(Na),Sa(_a),eo(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||(sl(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==rl&&(as(rl),rl=null))),ji(e,t),Vi(t),null;case 5:Jl(t);var o=Wl(ql.current);if(r=t.type,null!==e&&null!=t.stateNode)zi(e,t,r,l,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(null===t.stateNode)throw Error(n(166));return Vi(t),null}if(e=Wl(Hl.current),sl(t)){l=t.stateNode,r=t.type;var i=t.memoizedProps;switch(l[ca]=t,l[fa]=i,e=!!(1&t.mode),r){case"dialog":Dr("cancel",l),Dr("close",l);break;case"iframe":case"object":case"embed":Dr("load",l);break;case"video":case"audio":for(o=0;o<Rr.length;o++)Dr(Rr[o],l);break;case"source":Dr("error",l);break;case"img":case"image":case"link":Dr("error",l),Dr("load",l);break;case"details":Dr("toggle",l);break;case"input":X(l,i),Dr("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!i.multiple},Dr("invalid",l);break;case"textarea":le(l,i),Dr("invalid",l)}for(var u in be(r,i),o=null,i)if(i.hasOwnProperty(u)){var s=i[u];"children"===u?"string"==typeof s?l.textContent!==s&&(!0!==i.suppressHydrationWarning&&Jr(l.textContent,s,e),o=["children",s]):"number"==typeof s&&l.textContent!==""+s&&(!0!==i.suppressHydrationWarning&&Jr(l.textContent,s,e),o=["children",""+s]):a.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&Dr("scroll",l)}switch(r){case"input":Q(l),ee(l,i,!0);break;case"textarea":Q(l),ie(l);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(l.onclick=Xr)}l=o,t.updateQueue=l,null!==l&&(t.flags|=4)}else{u=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ue(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof l.is?e=u.createElement(r,{is:l.is}):(e=u.createElement(r),"select"===r&&(u=e,l.multiple?u.multiple=!0:l.size&&(u.size=l.size))):e=u.createElementNS(e,r),e[ca]=t,e[fa]=l,Ti(e,t,!1,!1),t.stateNode=e;e:{switch(u=we(r,l),r){case"dialog":Dr("cancel",e),Dr("close",e),o=l;break;case"iframe":case"object":case"embed":Dr("load",e),o=l;break;case"video":case"audio":for(o=0;o<Rr.length;o++)Dr(Rr[o],e);o=l;break;case"source":Dr("error",e),o=l;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),o=l;break;case"details":Dr("toggle",e),o=l;break;case"input":X(e,l),o=J(e,l),Dr("invalid",e);break;case"option":default:o=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},o=I({},l,{value:void 0}),Dr("invalid",e);break;case"textarea":le(e,l),o=ae(e,l),Dr("invalid",e)}for(i in be(r,o),s=o)if(s.hasOwnProperty(i)){var c=s[i];"style"===i?ye(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===i?"string"==typeof c?("textarea"!==r||""!==c)&&pe(e,c):"number"==typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(a.hasOwnProperty(i)?null!=c&&"onScroll"===i&&Dr("scroll",e):null!=c&&b(e,i,c,u))}switch(r){case"input":Q(e),ee(e,l,!1);break;case"textarea":Q(e),ie(e);break;case"option":null!=l.value&&e.setAttribute("value",""+q(l.value));break;case"select":e.multiple=!!l.multiple,null!=(i=l.value)?re(e,!!l.multiple,i,!1):null!=l.defaultValue&&re(e,!!l.multiple,l.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Xr)}switch(r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vi(t),null;case 6:if(e&&null!=t.stateNode)Li(e,t,e.memoizedProps,l);else{if("string"!=typeof l&&null===t.stateNode)throw Error(n(166));if(r=Wl(ql.current),Wl(Hl.current),sl(t)){if(l=t.stateNode,r=t.memoizedProps,l[ca]=t,(i=l.nodeValue!==r)&&null!==(e=el))switch(e.tag){case 3:Jr(l.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(l.nodeValue,r,!!(1&e.mode))}i&&(t.flags|=4)}else(l=(9===r.nodeType?r:r.ownerDocument).createTextNode(l))[ca]=t,t.stateNode=l}return Vi(t),null;case 13:if(Sa(Xl),l=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(nl&&null!==tl&&1&t.mode&&!(128&t.flags))cl(),fl(),t.flags|=98560,i=!1;else if(i=sl(t),null!==l&&null!==l.dehydrated){if(null===e){if(!i)throw Error(n(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(n(317));i[ca]=t}else fl(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vi(t),i=!1}else null!==rl&&(as(rl),rl=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((l=null!==l)!=(null!==e&&null!==e.memoizedState)&&l&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Xl.current?0===Lu&&(Lu=3):ps())),null!==t.updateQueue&&(t.flags|=4),Vi(t),null);case 4:return Kl(),ji(e,t),null===e&&Ar(t.stateNode.containerInfo),Vi(t),null;case 10:return Cl(t.type._context),Vi(t),null;case 19:if(Sa(Xl),null===(i=t.memoizedState))return Vi(t),null;if(l=!!(128&t.flags),null===(u=i.rendering))if(l)Hi(i,!1);else{if(0!==Lu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(u=Gl(e))){for(t.flags|=128,Hi(i,!1),null!==(l=u.updateQueue)&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=r,r=t.child;null!==r;)e=l,(i=r).flags&=14680066,null===(u=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,e=u.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ea(Xl,1&Xl.current|2),t.child}e=e.sibling}null!==i.tail&&Ge()>Au&&(t.flags|=128,l=!0,Hi(i,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=Gl(u))){if(t.flags|=128,l=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Hi(i,!0),null===i.tail&&"hidden"===i.tailMode&&!u.alternate&&!nl)return Vi(t),null}else 2*Ge()-i.renderingStartTime>Au&&1073741824!==r&&(t.flags|=128,l=!0,Hi(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=i.last)?r.sibling=u:t.child=u,i.last=u)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ge(),t.sibling=null,r=Xl.current,Ea(Xl,l?1&r|2:1&r),t):(Vi(t),null);case 22:case 23:return ss(),l=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==l&&(t.flags|=8192),l&&1&t.mode?!!(1073741824&ju)&&(Vi(t),6&t.subtreeFlags&&(t.flags|=8192)):Vi(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Wi(e,t){switch(Za(t),t.tag){case 1:return ja(t.type)&&za(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Kl(),Sa(Na),Sa(_a),eo(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Jl(t),null;case 13:if(Sa(Xl),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));fl()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Sa(Xl),null;case 4:return Kl(),null;case 10:return Cl(t.type._context),null;case 22:case 23:return ss(),null;default:return null}}Ti=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ji=function(){},zi=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Wl(Hl.current);var o,i=null;switch(n){case"input":l=J(e,l),r=J(e,r),i=[];break;case"select":l=I({},l,{value:void 0}),r=I({},r,{value:void 0}),i=[];break;case"textarea":l=ae(e,l),r=ae(e,r),i=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(e.onclick=Xr)}for(c in be(n,r),n=null,l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&null!=l[c])if("style"===c){var u=l[c];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=l?l[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(o in u)!u.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&u[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Dr("scroll",e),i||u===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Li=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qi=!1,Ki=!1,Yi="function"==typeof WeakSet?WeakSet:Set,Ji=null;function Xi(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){ks(e,t,n)}else n.current=null}function Gi(e,t,n){try{n()}catch(n){ks(e,t,n)}}var Zi=!1;function eu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var l=a.destroy;a.destroy=void 0,void 0!==l&&Gi(t,n,l)}a=a.next}while(a!==r)}}function tu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ru(e){var t=e.alternate;null!==t&&(e.alternate=null,ru(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ca],delete t[fa],delete t[pa],delete t[ma],delete t[ha]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function au(e){return 5===e.tag||3===e.tag||4===e.tag}function lu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||au(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ou(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(ou(e,t,n),e=e.sibling;null!==e;)ou(e,t,n),e=e.sibling}function iu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(iu(e,t,n),e=e.sibling;null!==e;)iu(e,t,n),e=e.sibling}var uu=null,su=!1;function cu(e,t,n){for(n=n.child;null!==n;)fu(e,t,n),n=n.sibling}function fu(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(lt,n)}catch(e){}switch(n.tag){case 5:Ki||Xi(n,t);case 6:var r=uu,a=su;uu=null,cu(e,t,n),su=a,null!==(uu=r)&&(su?(e=uu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):uu.removeChild(n.stateNode));break;case 18:null!==uu&&(su?(e=uu,n=n.stateNode,8===e.nodeType?oa(e.parentNode,n):1===e.nodeType&&oa(e,n),Ht(e)):oa(uu,n.stateNode));break;case 4:r=uu,a=su,uu=n.stateNode.containerInfo,su=!0,cu(e,t,n),uu=r,su=a;break;case 0:case 11:case 14:case 15:if(!Ki&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){a=r=r.next;do{var l=a,o=l.destroy;l=l.tag,void 0!==o&&(2&l||4&l)&&Gi(n,t,o),a=a.next}while(a!==r)}cu(e,t,n);break;case 1:if(!Ki&&(Xi(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){ks(n,t,e)}cu(e,t,n);break;case 21:cu(e,t,n);break;case 22:1&n.mode?(Ki=(r=Ki)||null!==n.memoizedState,cu(e,t,n),Ki=r):cu(e,t,n);break;default:cu(e,t,n)}}function du(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Yi),t.forEach((function(t){var r=_s.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function pu(e,t){var r=t.deletions;if(null!==r)for(var a=0;a<r.length;a++){var l=r[a];try{var o=e,i=t,u=i;e:for(;null!==u;){switch(u.tag){case 5:uu=u.stateNode,su=!1;break e;case 3:case 4:uu=u.stateNode.containerInfo,su=!0;break e}u=u.return}if(null===uu)throw Error(n(160));fu(o,i,l),uu=null,su=!1;var s=l.alternate;null!==s&&(s.return=null),l.return=null}catch(e){ks(l,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mu(t,e),t=t.sibling}function mu(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pu(t,e),hu(e),4&a){try{eu(3,e,e.return),tu(3,e)}catch(t){ks(e,e.return,t)}try{eu(5,e,e.return)}catch(t){ks(e,e.return,t)}}break;case 1:pu(t,e),hu(e),512&a&&null!==r&&Xi(r,r.return);break;case 5:if(pu(t,e),hu(e),512&a&&null!==r&&Xi(r,r.return),32&e.flags){var l=e.stateNode;try{pe(l,"")}catch(t){ks(e,e.return,t)}}if(4&a&&null!=(l=e.stateNode)){var o=e.memoizedProps,i=null!==r?r.memoizedProps:o,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===o.type&&null!=o.name&&G(l,o),we(u,i);var c=we(u,o);for(i=0;i<s.length;i+=2){var f=s[i],d=s[i+1];"style"===f?ye(l,d):"dangerouslySetInnerHTML"===f?de(l,d):"children"===f?pe(l,d):b(l,f,d,c)}switch(u){case"input":Z(l,o);break;case"textarea":oe(l,o);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var m=o.value;null!=m?re(l,!!o.multiple,m,!1):p!==!!o.multiple&&(null!=o.defaultValue?re(l,!!o.multiple,o.defaultValue,!0):re(l,!!o.multiple,o.multiple?[]:"",!1))}l[fa]=o}catch(t){ks(e,e.return,t)}}break;case 6:if(pu(t,e),hu(e),4&a){if(null===e.stateNode)throw Error(n(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(t){ks(e,e.return,t)}}break;case 3:if(pu(t,e),hu(e),4&a&&null!==r&&r.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){ks(e,e.return,t)}break;case 4:default:pu(t,e),hu(e);break;case 13:pu(t,e),hu(e),8192&(l=e.child).flags&&(o=null!==l.memoizedState,l.stateNode.isHidden=o,!o||null!==l.alternate&&null!==l.alternate.memoizedState||(Uu=Ge())),4&a&&du(e);break;case 22:if(f=null!==r&&null!==r.memoizedState,1&e.mode?(Ki=(c=Ki)||f,pu(t,e),Ki=c):pu(t,e),hu(e),8192&a){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&1&e.mode)for(Ji=e,f=e.child;null!==f;){for(d=Ji=f;null!==Ji;){switch(m=(p=Ji).child,p.tag){case 0:case 11:case 14:case 15:eu(4,p,p.return);break;case 1:Xi(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){a=p,r=p.return;try{t=a,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){ks(a,r,e)}}break;case 5:Xi(p,p.return);break;case 22:if(null!==p.memoizedState){bu(d);continue}}null!==m?(m.return=p,Ji=m):bu(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{l=d.stateNode,c?"function"==typeof(o=l.style).setProperty?o.setProperty("display","none","important"):o.display="none":(u=d.stateNode,i=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,u.style.display=ge("display",i))}catch(t){ks(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){ks(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:pu(t,e),hu(e),4&a&&du(e);case 21:}}function hu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(au(r)){var a=r;break e}r=r.return}throw Error(n(160))}switch(a.tag){case 5:var l=a.stateNode;32&a.flags&&(pe(l,""),a.flags&=-33),iu(e,lu(e),l);break;case 3:case 4:var o=a.stateNode.containerInfo;ou(e,lu(e),o);break;default:throw Error(n(161))}}catch(t){ks(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gu(e,t,n){Ji=e,yu(e)}function yu(e,t,n){for(var r=!!(1&e.mode);null!==Ji;){var a=Ji,l=a.child;if(22===a.tag&&r){var o=null!==a.memoizedState||Qi;if(!o){var i=a.alternate,u=null!==i&&null!==i.memoizedState||Ki;i=Qi;var s=Ki;if(Qi=o,(Ki=u)&&!s)for(Ji=a;null!==Ji;)u=(o=Ji).child,22===o.tag&&null!==o.memoizedState?wu(a):null!==u?(u.return=o,Ji=u):wu(a);for(;null!==l;)Ji=l,yu(l),l=l.sibling;Ji=a,Qi=i,Ki=s}vu(e)}else 8772&a.subtreeFlags&&null!==l?(l.return=a,Ji=l):vu(e)}}function vu(e){for(;null!==Ji;){var t=Ji;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ki||tu(5,t);break;case 1:var a=t.stateNode;if(4&t.flags&&!Ki)if(null===r)a.componentDidMount();else{var l=t.elementType===t.type?r.memoizedProps:ei(t.type,r.memoizedProps);a.componentDidUpdate(l,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Bl(t,o,a);break;case 3:var i=t.updateQueue;if(null!==i){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Bl(t,i,r)}break;case 5:var u=t.stateNode;if(null===r&&4&t.flags){r=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ht(d)}}}break;default:throw Error(n(163))}Ki||512&t.flags&&nu(t)}catch(e){ks(t,t.return,e)}}if(t===e){Ji=null;break}if(null!==(r=t.sibling)){r.return=t.return,Ji=r;break}Ji=t.return}}function bu(e){for(;null!==Ji;){var t=Ji;if(t===e){Ji=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ji=n;break}Ji=t.return}}function wu(e){for(;null!==Ji;){var t=Ji;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{tu(4,t)}catch(e){ks(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(e){ks(t,a,e)}}var l=t.return;try{nu(t)}catch(e){ks(t,l,e)}break;case 5:var o=t.return;try{nu(t)}catch(e){ks(t,o,e)}}}catch(e){ks(t,t.return,e)}if(t===e){Ji=null;break}var i=t.sibling;if(null!==i){i.return=t.return,Ji=i;break}Ji=t.return}}var xu,ku=Math.ceil,Su=w.ReactCurrentDispatcher,Eu=w.ReactCurrentOwner,Cu=w.ReactCurrentBatchConfig,_u=0,Nu=null,Pu=null,Tu=0,ju=0,zu=ka(0),Lu=0,Ru=null,Ou=0,Mu=0,Fu=0,Du=null,Iu=null,Uu=0,Au=1/0,Bu=null,$u=!1,Hu=null,Vu=null,qu=!1,Wu=null,Qu=0,Ku=0,Yu=null,Ju=-1,Xu=0;function Gu(){return 6&_u?Ge():-1!==Ju?Ju:Ju=Ge()}function Zu(e){return 1&e.mode?2&_u&&0!==Tu?Tu&-Tu:null!==pl.transition?(0===Xu&&(Xu=gt()),Xu):0!==(e=wt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function es(e,t,r,a){if(50<Ku)throw Ku=0,Yu=null,Error(n(185));vt(e,r,a),2&_u&&e===Nu||(e===Nu&&(!(2&_u)&&(Mu|=r),4===Lu&&ls(e,Tu)),ts(e,a),1===r&&0===_u&&!(1&t.mode)&&(Au=Ge()+500,Da&&Aa()))}function ts(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-it(l),i=1<<o,u=a[o];-1===u?i&n&&!(i&r)||(a[o]=mt(i,t)):u<=t&&(e.expiredLanes|=i),l&=~i}}(e,t);var r=pt(e,e===Nu?Tu:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Da=!0,Ua(e)}(os.bind(null,e)):Ua(os.bind(null,e)),aa((function(){!(6&_u)&&Aa()})),n=null;else{switch(xt(r)){case 1:n=et;break;case 4:n=tt;break;case 16:default:n=nt;break;case 536870912:n=at}n=Ns(n,ns.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ns(e,t){if(Ju=-1,Xu=0,6&_u)throw Error(n(327));var r=e.callbackNode;if(ws()&&e.callbackNode!==r)return null;var a=pt(e,e===Nu?Tu:0);if(0===a)return null;if(30&a||a&e.expiredLanes||t)t=ms(e,a);else{t=a;var l=_u;_u|=2;var o=ds();for(Nu===e&&Tu===t||(Bu=null,Au=Ge()+500,cs(e,t));;)try{gs();break}catch(t){fs(e,t)}El(),Su.current=o,_u=l,null!==Pu?t=0:(Nu=null,Tu=0,t=Lu)}if(0!==t){if(2===t&&0!==(l=ht(e))&&(a=l,t=rs(e,l)),1===t)throw r=Ru,cs(e,0),ls(e,a),ts(e,Ge()),r;if(6===t)ls(e,a);else{if(l=e.current.alternate,!(30&a||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],l=a.getSnapshot;a=a.value;try{if(!lr(l(),a))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(l)||(t=ms(e,a),2===t&&(o=ht(e),0!==o&&(a=o,t=rs(e,o))),1!==t)))throw r=Ru,cs(e,0),ls(e,a),ts(e,Ge()),r;switch(e.finishedWork=l,e.finishedLanes=a,t){case 0:case 1:throw Error(n(345));case 2:case 5:bs(e,Iu,Bu);break;case 3:if(ls(e,a),(130023424&a)===a&&10<(t=Uu+500-Ge())){if(0!==pt(e,0))break;if(((l=e.suspendedLanes)&a)!==a){Gu(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=ta(bs.bind(null,e,Iu,Bu),t);break}bs(e,Iu,Bu);break;case 4:if(ls(e,a),(4194240&a)===a)break;for(t=e.eventTimes,l=-1;0<a;){var i=31-it(a);o=1<<i,(i=t[i])>l&&(l=i),a&=~o}if(a=l,10<(a=(120>(a=Ge()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*ku(a/1960))-a)){e.timeoutHandle=ta(bs.bind(null,e,Iu,Bu),a);break}bs(e,Iu,Bu);break;default:throw Error(n(329))}}}return ts(e,Ge()),e.callbackNode===r?ns.bind(null,e):null}function rs(e,t){var n=Du;return e.current.memoizedState.isDehydrated&&(cs(e,t).flags|=256),2!==(e=ms(e,t))&&(t=Iu,Iu=n,null!==t&&as(t)),e}function as(e){null===Iu?Iu=e:Iu.push.apply(Iu,e)}function ls(e,t){for(t&=~Fu,t&=~Mu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function os(e){if(6&_u)throw Error(n(327));ws();var t=pt(e,0);if(!(1&t))return ts(e,Ge()),null;var r=ms(e,t);if(0!==e.tag&&2===r){var a=ht(e);0!==a&&(t=a,r=rs(e,a))}if(1===r)throw r=Ru,cs(e,0),ls(e,t),ts(e,Ge()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,bs(e,Iu,Bu),ts(e,Ge()),null}function is(e,t){var n=_u;_u|=1;try{return e(t)}finally{0===(_u=n)&&(Au=Ge()+500,Da&&Aa())}}function us(e){null!==Wu&&0===Wu.tag&&!(6&_u)&&ws();var t=_u;_u|=1;var n=Cu.transition,r=wt;try{if(Cu.transition=null,wt=1,e)return e()}finally{wt=r,Cu.transition=n,!(6&(_u=t))&&Aa()}}function ss(){ju=zu.current,Sa(zu)}function cs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,na(n)),null!==Pu)for(n=Pu.return;null!==n;){var r=n;switch(Za(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&za();break;case 3:Kl(),Sa(Na),Sa(_a),eo();break;case 5:Jl(r);break;case 4:Kl();break;case 13:case 19:Sa(Xl);break;case 10:Cl(r.type._context);break;case 22:case 23:ss()}n=n.return}if(Nu=e,Pu=e=zs(e.current,null),Tu=ju=t,Lu=0,Ru=null,Fu=Mu=Ou=0,Iu=Du=null,null!==Tl){for(t=0;t<Tl.length;t++)if(null!==(r=(n=Tl[t]).interleaved)){n.interleaved=null;var a=r.next,l=n.pending;if(null!==l){var o=l.next;l.next=a,r.next=o}n.pending=r}Tl=null}return e}function fs(e,t){for(;;){var r=Pu;try{if(El(),to.current=Jo,io){for(var a=ao.memoizedState;null!==a;){var l=a.queue;null!==l&&(l.pending=null),a=a.next}io=!1}if(ro=0,oo=lo=ao=null,uo=!1,so=0,Eu.current=null,null===r||null===r.return){Lu=1,Ru=t,Pu=null;break}e:{var o=e,i=r.return,u=r,s=t;if(t=Tu,u.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,f=u,d=f.tag;if(!(1&f.mode||0!==d&&11!==d&&15!==d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=mi(i);if(null!==m){m.flags&=-257,hi(m,i,u,0,t),1&m.mode&&pi(o,c,t),s=c;var h=(t=m).updateQueue;if(null===h){var g=new Set;g.add(s),t.updateQueue=g}else h.add(s);break e}if(!(1&t)){pi(o,c,t),ps();break e}s=Error(n(426))}else if(nl&&1&u.mode){var y=mi(i);if(null!==y){!(65536&y.flags)&&(y.flags|=256),hi(y,i,u,0,t),dl(ii(s,u));break e}}o=s=ii(s,u),4!==Lu&&(Lu=2),null===Du?Du=[o]:Du.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Ul(o,fi(0,s,t));break e;case 1:u=s;var v=o.type,b=o.stateNode;if(!(128&o.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Vu&&Vu.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Ul(o,di(o,u,t));break e}}o=o.return}while(null!==o)}vs(r)}catch(e){t=e,Pu===r&&null!==r&&(Pu=r=r.return);continue}break}}function ds(){var e=Su.current;return Su.current=Jo,null===e?Jo:e}function ps(){0!==Lu&&3!==Lu&&2!==Lu||(Lu=4),null===Nu||!(268435455&Ou)&&!(268435455&Mu)||ls(Nu,Tu)}function ms(e,t){var r=_u;_u|=2;var a=ds();for(Nu===e&&Tu===t||(Bu=null,cs(e,t));;)try{hs();break}catch(t){fs(e,t)}if(El(),_u=r,Su.current=a,null!==Pu)throw Error(n(261));return Nu=null,Tu=0,Lu}function hs(){for(;null!==Pu;)ys(Pu)}function gs(){for(;null!==Pu&&!Je();)ys(Pu)}function ys(e){var t=xu(e.alternate,e,ju);e.memoizedProps=e.pendingProps,null===t?vs(e):Pu=t,Eu.current=null}function vs(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Wi(n,t)))return n.flags&=32767,void(Pu=n);if(null===e)return Lu=6,void(Pu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=qi(n,t,ju)))return void(Pu=n);if(null!==(t=t.sibling))return void(Pu=t);Pu=t=e}while(null!==t);0===Lu&&(Lu=5)}function bs(e,t,r){var a=wt,l=Cu.transition;try{Cu.transition=null,wt=1,function(e,t,r,a){do{ws()}while(null!==Wu);if(6&_u)throw Error(n(327));r=e.finishedWork;var l=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-it(n),l=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~l}}(e,o),e===Nu&&(Pu=Nu=null,Tu=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||qu||(qu=!0,Ns(nt,(function(){return ws(),null}))),o=!!(15990&r.flags),15990&r.subtreeFlags||o){o=Cu.transition,Cu.transition=null;var i=wt;wt=1;var u=_u;_u|=4,Eu.current=null,function(e,t){if(Gr=qt,fr(e=cr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(a&&0!==a.rangeCount){r=a.anchorNode;var l=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{r.nodeType,o.nodeType}catch(e){r=null;break e}var i=0,u=-1,s=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var m;d!==r||0!==l&&3!==d.nodeType||(u=i+l),d!==o||0!==a&&3!==d.nodeType||(s=i+a),3===d.nodeType&&(i+=d.nodeValue.length),null!==(m=d.firstChild);)p=d,d=m;for(;;){if(d===e)break t;if(p===r&&++c===l&&(u=i),p===o&&++f===a&&(s=i),null!==(m=d.nextSibling))break;p=(d=p).parentNode}d=m}r=-1===u||-1===s?null:{start:u,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(Zr={focusedElem:e,selectionRange:r},qt=!1,Ji=t;null!==Ji;)if(e=(t=Ji).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ji=e;else for(;null!==Ji;){t=Ji;try{var h=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,y=h.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ei(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(n(163))}}catch(e){ks(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ji=e;break}Ji=t.return}h=Zi,Zi=!1}(e,r),mu(r,e),dr(Zr),qt=!!Gr,Zr=Gr=null,e.current=r,gu(r),Xe(),_u=u,wt=i,Cu.transition=o}else e.current=r;if(qu&&(qu=!1,Wu=e,Qu=l),0===(o=e.pendingLanes)&&(Vu=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(lt,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),ts(e,Ge()),null!==t)for(a=e.onRecoverableError,r=0;r<t.length;r++)a((l=t[r]).value,{componentStack:l.stack,digest:l.digest});if($u)throw $u=!1,e=Hu,Hu=null,e;!!(1&Qu)&&0!==e.tag&&ws(),1&(o=e.pendingLanes)?e===Yu?Ku++:(Ku=0,Yu=e):Ku=0,Aa()}(e,t,r,a)}finally{Cu.transition=l,wt=a}return null}function ws(){if(null!==Wu){var e=xt(Qu),t=Cu.transition,r=wt;try{if(Cu.transition=null,wt=16>e?16:e,null===Wu)var a=!1;else{if(e=Wu,Wu=null,Qu=0,6&_u)throw Error(n(331));var l=_u;for(_u|=4,Ji=e.current;null!==Ji;){var o=Ji,i=o.child;if(16&Ji.flags){var u=o.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Ji=c;null!==Ji;){var f=Ji;switch(f.tag){case 0:case 11:case 15:eu(8,f,o)}var d=f.child;if(null!==d)d.return=f,Ji=d;else for(;null!==Ji;){var p=(f=Ji).sibling,m=f.return;if(ru(f),f===c){Ji=null;break}if(null!==p){p.return=m,Ji=p;break}Ji=m}}}var h=o.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Ji=o}}if(2064&o.subtreeFlags&&null!==i)i.return=o,Ji=i;else e:for(;null!==Ji;){if(2048&(o=Ji).flags)switch(o.tag){case 0:case 11:case 15:eu(9,o,o.return)}var v=o.sibling;if(null!==v){v.return=o.return,Ji=v;break e}Ji=o.return}}var b=e.current;for(Ji=b;null!==Ji;){var w=(i=Ji).child;if(2064&i.subtreeFlags&&null!==w)w.return=i,Ji=w;else e:for(i=b;null!==Ji;){if(2048&(u=Ji).flags)try{switch(u.tag){case 0:case 11:case 15:tu(9,u)}}catch(e){ks(u,u.return,e)}if(u===i){Ji=null;break e}var x=u.sibling;if(null!==x){x.return=u.return,Ji=x;break e}Ji=u.return}}if(_u=l,Aa(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(lt,e)}catch(e){}a=!0}return a}finally{wt=r,Cu.transition=t}}return!1}function xs(e,t,n){e=Dl(e,t=fi(0,t=ii(n,t),1),1),t=Gu(),null!==e&&(vt(e,1,t),ts(e,t))}function ks(e,t,n){if(3===e.tag)xs(e,e,n);else for(;null!==t;){if(3===t.tag){xs(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vu||!Vu.has(r))){t=Dl(t,e=di(t,e=ii(n,e),1),1),e=Gu(),null!==t&&(vt(t,1,e),ts(t,e));break}}t=t.return}}function Ss(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Gu(),e.pingedLanes|=e.suspendedLanes&n,Nu===e&&(Tu&n)===n&&(4===Lu||3===Lu&&(130023424&Tu)===Tu&&500>Ge()-Uu?cs(e,0):Fu|=n),ts(e,t)}function Es(e,t){0===t&&(1&e.mode?(t=ft,!(130023424&(ft<<=1))&&(ft=4194304)):t=1);var n=Gu();null!==(e=Ll(e,t))&&(vt(e,t,n),ts(e,n))}function Cs(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Es(e,n)}function _s(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,l=e.memoizedState;null!==l&&(r=l.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(n(314))}null!==a&&a.delete(t),Es(e,r)}function Ns(e,t){return Ke(e,t)}function Ps(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ts(e,t,n,r){return new Ps(e,t,n,r)}function js(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zs(e,t){var n=e.alternate;return null===n?((n=Ts(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ls(e,t,r,a,l,o){var i=2;if(a=e,"function"==typeof e)js(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case E:return Rs(r.children,l,o,t);case C:i=8,l|=8;break;case _:return(e=Ts(12,r,t,2|l)).elementType=_,e.lanes=o,e;case j:return(e=Ts(13,r,t,l)).elementType=j,e.lanes=o,e;case z:return(e=Ts(19,r,t,l)).elementType=z,e.lanes=o,e;case O:return Os(r,l,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case N:i=10;break e;case P:i=9;break e;case T:i=11;break e;case L:i=14;break e;case R:i=16,a=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ts(i,r,t,l)).elementType=e,t.type=a,t.lanes=o,t}function Rs(e,t,n,r){return(e=Ts(7,e,r,t)).lanes=n,e}function Os(e,t,n,r){return(e=Ts(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Ms(e,t,n){return(e=Ts(6,e,null,t)).lanes=n,e}function Fs(e,t,n){return(t=Ts(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ds(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Is(e,t,n,r,a,l,o,i,u){return e=new Ds(e,t,n,i,u),1===t?(t=1,!0===l&&(t|=8)):t=0,l=Ts(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ol(l),e}function Us(e){if(!e)return Ca;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ja(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(ja(r))return Ra(e,r,t)}return t}function As(e,t,n,r,a,l,o,i,u){return(e=Is(n,r,!0,e,0,l,0,i,u)).context=Us(null),n=e.current,(l=Fl(r=Gu(),a=Zu(n))).callback=null!=t?t:null,Dl(n,l,a),e.current.lanes=a,vt(e,a,r),ts(e,r),e}function Bs(e,t,n,r){var a=t.current,l=Gu(),o=Zu(a);return n=Us(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fl(l,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Dl(a,t,o))&&(es(e,a,o,l),Il(e,a,o)),o}function $s(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Hs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vs(e,t){Hs(e,t),(e=e.alternate)&&Hs(e,t)}xu=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Na.current)yi=!0;else{if(!(e.lanes&r||128&t.flags))return yi=!1,function(e,t,n){switch(t.tag){case 3:Ni(t),fl();break;case 5:Yl(t);break;case 1:ja(t.type)&&Oa(t);break;case 4:Ql(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Ea(wl,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ea(Xl,1&Xl.current),t.flags|=128,null):n&t.child.childLanes?Mi(e,t,n):(Ea(Xl,1&Xl.current),null!==(e=$i(e,t,n))?e.sibling:null);Ea(Xl,1&Xl.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Ai(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ea(Xl,Xl.current),r)break;return null;case 22:case 23:return t.lanes=0,ki(e,t,n)}return $i(e,t,n)}(e,t,r);yi=!!(131072&e.flags)}else yi=!1,nl&&1048576&t.flags&&Xa(t,Va,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Bi(e,t),e=t.pendingProps;var l=Ta(t,_a.current);Nl(t,r),l=mo(null,t,a,e,l,r);var o=ho();return t.flags|=1,"object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ja(a)?(o=!0,Oa(t)):o=!1,t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,Ol(t),l.updater=ni,t.stateNode=l,l._reactInternals=t,oi(t,a,e,r),t=_i(null,t,a,!0,o,r)):(t.tag=0,nl&&o&&Ga(t),vi(null,t,l,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Bi(e,t),e=t.pendingProps,a=(l=a._init)(a._payload),t.type=a,l=t.tag=function(e){if("function"==typeof e)return js(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===L)return 14}return 2}(a),e=ei(a,e),l){case 0:t=Ei(null,t,a,e,r);break e;case 1:t=Ci(null,t,a,e,r);break e;case 11:t=bi(null,t,a,e,r);break e;case 14:t=wi(null,t,a,ei(a.type,e),r);break e}throw Error(n(306,a,""))}return t;case 0:return a=t.type,l=t.pendingProps,Ei(e,t,a,l=t.elementType===a?l:ei(a,l),r);case 1:return a=t.type,l=t.pendingProps,Ci(e,t,a,l=t.elementType===a?l:ei(a,l),r);case 3:e:{if(Ni(t),null===e)throw Error(n(387));a=t.pendingProps,l=(o=t.memoizedState).element,Ml(e,t),Al(t,a,null,r);var i=t.memoizedState;if(a=i.element,o.isDehydrated){if(o={element:a,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Pi(e,t,a,r,l=ii(Error(n(423)),t));break e}if(a!==l){t=Pi(e,t,a,r,l=ii(Error(n(424)),t));break e}for(tl=ia(t.stateNode.containerInfo.firstChild),el=t,nl=!0,rl=null,r=bl(t,null,a,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(fl(),a===l){t=$i(e,t,r);break e}vi(e,t,a,r)}t=t.child}return t;case 5:return Yl(t),null===e&&il(t),a=t.type,l=t.pendingProps,o=null!==e?e.memoizedProps:null,i=l.children,ea(a,l)?i=null:null!==o&&ea(a,o)&&(t.flags|=32),Si(e,t),vi(e,t,i,r),t.child;case 6:return null===e&&il(t),null;case 13:return Mi(e,t,r);case 4:return Ql(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=vl(t,null,a,r):vi(e,t,a,r),t.child;case 11:return a=t.type,l=t.pendingProps,bi(e,t,a,l=t.elementType===a?l:ei(a,l),r);case 7:return vi(e,t,t.pendingProps,r),t.child;case 8:case 12:return vi(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,Ea(wl,a._currentValue),a._currentValue=i,null!==o)if(lr(o.value,i)){if(o.children===l.children&&!Na.current){t=$i(e,t,r);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var u=o.dependencies;if(null!==u){i=o.child;for(var s=u.firstContext;null!==s;){if(s.context===a){if(1===o.tag){(s=Fl(-1,r&-r)).tag=2;var c=o.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}o.lanes|=r,null!==(s=o.alternate)&&(s.lanes|=r),_l(o.return,r,t),u.lanes|=r;break}s=s.next}}else if(10===o.tag)i=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(i=o.return))throw Error(n(341));i.lanes|=r,null!==(u=i.alternate)&&(u.lanes|=r),_l(i,r,t),i=o.sibling}else i=o.child;if(null!==i)i.return=o;else for(i=o;null!==i;){if(i===t){i=null;break}if(null!==(o=i.sibling)){o.return=i.return,i=o;break}i=i.return}o=i}vi(e,t,l.children,r),t=t.child}return t;case 9:return l=t.type,a=t.pendingProps.children,Nl(t,r),a=a(l=Pl(l)),t.flags|=1,vi(e,t,a,r),t.child;case 14:return l=ei(a=t.type,t.pendingProps),wi(e,t,a,l=ei(a.type,l),r);case 15:return xi(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,l=t.pendingProps,l=t.elementType===a?l:ei(a,l),Bi(e,t),t.tag=1,ja(a)?(e=!0,Oa(t)):e=!1,Nl(t,r),ai(t,a,l),oi(t,a,l,r),_i(null,t,a,!0,e,r);case 19:return Ai(e,t,r);case 22:return ki(e,t,r)}throw Error(n(156,t.tag))};var qs="function"==typeof reportError?reportError:function(e){console.error(e)};function Ws(e){this._internalRoot=e}function Qs(e){this._internalRoot=e}function Ks(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ys(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Js(){}function Xs(e,t,n,r,a){var l=n._reactRootContainer;if(l){var o=l;if("function"==typeof a){var i=a;a=function(){var e=$s(o);i.call(e)}}Bs(t,o,e,a)}else o=function(e,t,n,r,a){if(a){if("function"==typeof r){var l=r;r=function(){var e=$s(o);l.call(e)}}var o=As(t,r,e,0,null,!1,0,"",Js);return e._reactRootContainer=o,e[da]=o.current,Ar(8===e.nodeType?e.parentNode:e),us(),o}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var i=r;r=function(){var e=$s(u);i.call(e)}}var u=Is(e,0,!1,null,0,!1,0,"",Js);return e._reactRootContainer=u,e[da]=u.current,Ar(8===e.nodeType?e.parentNode:e),us((function(){Bs(t,u,n,r)})),u}(n,t,e,a,r);return $s(o)}Qs.prototype.render=Ws.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Bs(e,t,null,null)},Qs.prototype.unmount=Ws.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;us((function(){Bs(null,e,null,null)})),t[da]=null}},Qs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&It(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ts(t,Ge()),!(6&_u)&&(Au=Ge()+500,Aa()))}break;case 13:us((function(){var t=Ll(e,1);if(null!==t){var n=Gu();es(t,e,1,n)}})),Vs(e,1)}},St=function(e){if(13===e.tag){var t=Ll(e,134217728);null!==t&&es(t,e,134217728,Gu()),Vs(e,134217728)}},Et=function(e){if(13===e.tag){var t=Zu(e),n=Ll(e,t);null!==n&&es(n,e,t,Gu()),Vs(e,t)}},Ct=function(){return wt},_t=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},Se=function(e,t,r){switch(t){case"input":if(Z(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var l=ba(a);if(!l)throw Error(n(90));K(a),Z(a,l)}}}break;case"textarea":oe(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Te=is,je=us;var Gs={usingClientEntryPoint:!1,Events:[ya,va,ba,Ne,Pe,is]},Zs={findFiberByHostInstance:ga,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ec={bundleType:Zs.bundleType,version:Zs.version,rendererPackageName:Zs.rendererPackageName,rendererConfig:Zs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:Zs.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tc.isDisabled&&tc.supportsFiber)try{lt=tc.inject(ec),ot=tc}catch(fe){}}return v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gs,v.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ks(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},v.createRoot=function(e,t){if(!Ks(e))throw Error(n(299));var r=!1,a="",l=qs;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=Is(e,1,!1,null,0,r,0,a,l),e[da]=t.current,Ar(8===e.nodeType?e.parentNode:e),new Ws(t)},v.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return null===(e=We(t))?null:e.stateNode},v.flushSync=function(e){return us(e)},v.hydrate=function(e,t,r){if(!Ys(t))throw Error(n(200));return Xs(null,e,t,!0,r)},v.hydrateRoot=function(e,t,r){if(!Ks(e))throw Error(n(405));var a=null!=r&&r.hydratedSources||null,l=!1,o="",i=qs;if(null!=r&&(!0===r.unstable_strictMode&&(l=!0),void 0!==r.identifierPrefix&&(o=r.identifierPrefix),void 0!==r.onRecoverableError&&(i=r.onRecoverableError)),t=As(t,null,e,1,null!=r?r:null,l,0,o,i),e[da]=t.current,Ar(e),a)for(e=0;e<a.length;e++)l=(l=(r=a[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,l]:t.mutableSourceEagerHydrationData.push(r,l);return new Qs(t)},v.render=function(e,t,r){if(!Ys(t))throw Error(n(200));return Xs(null,e,t,!1,r)},v.unmountComponentAtNode=function(e){if(!Ys(e))throw Error(n(40));return!!e._reactRootContainer&&(us((function(){Xs(null,null,e,!1,(function(){e._reactRootContainer=null,e[da]=null}))})),!0)},v.unstable_batchedUpdates=is,v.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Ys(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Xs(e,t,r,!1,a)},v.version="18.3.1-next-f1338f8080-20240426",v}();var k,S=y.exports;function E(e,t){return e&&t?`${e} ${t}`:e||t}function C({children:e,title:t,subtitle:n,...r}){return u.jsxs("div",{...r,className:E(r.className,"flex justify-center items-stretch min-h-screen bg-white text-slate-900 dark:bg-slate-900 dark:text-slate-100"),children:[u.jsxs("div",{className:"w-1/2 hidden p-4 md:grid content-center justify-items-end text-right dark:bg-transparent dark:border-r bg-slate-100 dark:bg-slate-800 dark:border-slate-700",children:[t&&u.jsx("h1",{className:"text-3xl lg:text-5xl mt-4 font-semibold mb-4 text-primary",children:t}),n&&u.jsx("p",{className:"max-w-xs text-slate-500 dark:text-slate-500",children:n})]}),u.jsx("div",{className:"flex items-stretch md:items-center w-full justify-center px-6 md:justify-start md:px-12",children:e})]})}k=S.createRoot,S.hydrateRoot;var _={},N={};Object.defineProperty(N,"__esModule",{value:!0}),N.FetchError=void 0;class P extends Error{constructor(e,t,n){if(null==e||!t){const r=function(e){if("string"==typeof e&&e.length>0)return[500,e];if(!(e instanceof Error))return[500,"Failed to fetch"];const t=e.code;if("string"==typeof t)switch(!0){case"ENOTFOUND"===t:return[400,"Invalid hostname"];case"ECONNREFUSED"===t:return[502,"Connection refused"];case"DEPTH_ZERO_SELF_SIGNED_CERT"===t:return[502,"Self-signed certificate"];case t.startsWith("ERR_TLS"):return[502,"TLS error"];case t.startsWith("ECONN"):return[502,"Connection error"];default:return[500,`${t} error`]}return[500,e.message]}(function(e){if(e instanceof TypeError&&"fetch failed"===e.message&&void 0!==e.cause)return e.cause;return e}(n?.cause));e=e??r[0],t=t||r[1]}super(t,n),Object.defineProperty(this,"statusCode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.statusCode=e}}N.FetchError=P;var T={},j={};function z(e,t){return!t&&e instanceof Request?e:new Request(e,t)}Object.defineProperty(j,"__esModule",{value:!0}),j.asRequest=j.toRequestTransformer=void 0,j.toRequestTransformer=function(e){return function(t,n){return e.call(this,z(t,n))}},j.asRequest=z;var L={};Object.defineProperty(L,"__esModule",{value:!0}),L.stringifyMessage=L.logCancellationError=L.cancelBody=L.padLines=L.MaxBytesTransformStream=L.ifString=L.ifObject=L.isIp=void 0,L.isIp=function(e){return!!e.match(/^\d+\.\d+\.\d+\.\d+$/)||!(!e.startsWith("[")||!e.endsWith("]"))};const R=Object.prototype;L.ifObject=e=>{if("object"==typeof e&&null!=e&&!Array.isArray(e)){const t=Object.getPrototypeOf(e);if(null===t||t===R)return e}};L.ifString=e=>"string"==typeof e?e:void 0;class O extends TransformStream{constructor(e){if(!(e>=0))throw new TypeError("maxBytes must be a non-negative number");let t=0;super({transform:(n,r)=>{(t+=n.length)<=e?r.enqueue(n):r.error(new Error("Response too large"))}})}}L.MaxBytesTransformStream=O;const M=/\r?\n/g;async function F(e,t){!e.body||e.bodyUsed||e.body.locked||"function"!=typeof e.body.cancel||("function"==typeof t?e.body.cancel().catch(t):"log"===t?e.body.cancel().catch(D):await e.body.cancel())}function D(e){console.warn("Failed to cancel response body",e)}L.padLines=function(e,t){return e?t+e.replace(M,`$&${t}`):e},L.cancelBody=F,L.logCancellationError=D,L.stringifyMessage=async function(e){try{const t=function(e){return Array.from(e).map((([e,t])=>`${e}: ${t}`)).join("\n")}(e.headers),n=await async function(e){try{const t=await e.blob();if(t.type?.startsWith("text/")){const e=await t.text();return JSON.stringify(e)}if(/application\/(?:\w+\+)?json/.test(t.type)){const e=await t.text();return e.includes("\n")?JSON.stringify(JSON.parse(e)):e}return`[Body size: ${t.size}, type: ${JSON.stringify(t.type)} ]`}catch{return"[Body could not be read]"}}(e);return t&&n?`${t}\n${n}`:t||n}finally{F(e,"log")}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.forbiddenDomainNameRequestTransform=e.DEFAULT_FORBIDDEN_DOMAIN_NAMES=e.requireHostHeaderTranform=e.protocolCheckRequestTransform=e.FetchRequestError=void 0;const t=N,n=j,r=L;class a extends t.FetchError{constructor(e,t,n,r){super(t,n,r),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:e})}static from(e,t){return t instanceof a?t:new a(e,void 0,void 0,{cause:t})}}e.FetchRequestError=a;const l=e=>"string"==typeof e?new URL(e):e instanceof URL?e:new URL(e.url);e.protocolCheckRequestTransform=function(e){const t=new Set(e);return(e,r)=>{const{protocol:o}=l(e),i=(0,n.asRequest)(e,r);if(!t.has(o))throw new a(i,400,`"${o}" protocol is not allowed`);return i}},e.requireHostHeaderTranform=function(){return(e,t)=>{const{protocol:o,hostname:i}=l(e),u=(0,n.asRequest)(e,t);if("http:"!==o&&"https:"!==o)throw new a(u,400,`"${o}" requests are not allowed`);if(!i||(0,r.isIp)(i))throw new a(u,400,"Invalid hostname");return u}},e.DEFAULT_FORBIDDEN_DOMAIN_NAMES=["example.com","*.example.com","example.org","*.example.org","example.net","*.example.net","googleusercontent.com","*.googleusercontent.com"],e.forbiddenDomainNameRequestTransform=function(t=e.DEFAULT_FORBIDDEN_DOMAIN_NAMES){const r=new Set(t);return 0===r.size?async e=>e:async(e,t)=>{const{hostname:o}=l(e),i=(0,n.asRequest)(e,t);if(r.has(o))throw new a(i,403,"Forbidden hostname");let u=o.indexOf(".");for(;-1!==u;){const e=o.slice(u+1);if(r.has(`*.${e}`))throw new a(i,403,"Forbidden hostname");u=o.indexOf(".",u+1)}return i}}}(T);var I={},U={},A={};function B(e,t){return async n=>t(await e(n))}Object.defineProperty(A,"__esModule",{value:!0}),A.pipeTwo=A.pipe=void 0,A.pipe=function(...e){return e.reduce(B)},A.pipeTwo=B,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.pipeTwo=e.pipe=void 0;var t=A;Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return t.pipe}}),Object.defineProperty(e,"pipeTwo",{enumerable:!0,get:function(){return t.pipeTwo}})}(U);var $,H={},V=t&&t.__classPrivateFieldSet||function(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n},q=t&&t.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Object.defineProperty(H,"__esModule",{value:!0}),H.TransformedResponse=void 0;class W extends Response{constructor(e,t){if(!e.body)throw new TypeError("Response body is not available");if(e.bodyUsed)throw new TypeError("Response body is already used");super(e.body.pipeThrough(t),{status:e.status,statusText:e.statusText,headers:e.headers}),$.set(this,void 0),V(this,$,e,"f")}get url(){return q(this,$,"f").url}get redirected(){return q(this,$,"f").redirected}get type(){return q(this,$,"f").type}get statusText(){return q(this,$,"f").statusText}}H.TransformedResponse=W,$=new WeakMap,Object.defineProperty(I,"__esModule",{value:!0}),I.fetchJsonZodProcessor=I.fetchJsonProcessor=I.fetchResponseJsonTranformer=I.fetchResponseTypeChecker=I.fetchTypeProcessor=I.fetchResponseMaxSizeChecker=I.fetchMaxSizeProcessor=I.fetchOkTransformer=I.fetchOkProcessor=I.cancelBodyOnError=I.extractMime=I.extractLength=I.checkLength=I.peekJson=I.FetchResponseError=void 0;const Q=U,K=N,Y=H,J=L;class X extends K.FetchError{constructor(e,t=e.status,n=e.statusText,r){super(t,n,r),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:e})}static async from(e,t=G,n=e.status,r){const a="string"==typeof t?t:"function"==typeof t?await t(e):void 0;return new X(e,n,a,r)}}I.FetchResponseError=X;const G=async e=>{const t=te(e);if(t)try{if("text/plain"===t)return await e.text();if(/^application\/(?:[^+]+\+)?json$/i.test(t)){const t=await e.json();if("string"==typeof t)return t;const n=(0,J.ifString)((0,J.ifObject)(t)?.error_description);if(n)return n;const r=(0,J.ifString)((0,J.ifObject)(t)?.error);if(r)return r;const a=(0,J.ifString)((0,J.ifObject)(t)?.message);if(a)return a}}catch{}};function Z(e,t){if(!(t>=0))throw new TypeError("maxBytes must be a non-negative number");const n=ee(e);if(null!=n&&n>t)throw new X(e,502,"Response too large");return n}function ee(e){const t=e.headers.get("Content-Length");if(null==t)return;if(!/^\d+$/.test(t))throw new X(e,502,"Invalid Content-Length");const n=Number(t);if(!Number.isSafeInteger(n))throw new X(e,502,"Content-Length too large");return n}function te(e){const t=e.headers.get("Content-Type");if(null!=t)return t.split(";",1)[0].trim()}function ne(e,t=J.logCancellationError){return async n=>{try{return await e(n)}catch(e){throw await(0,J.cancelBody)(n,t??void 0),e}}}async function re(e,t){if(e.ok)return e;throw await X.from(e,t)}function ae(e,t){if(t===1/0)return e;if(Z(e,t),!e.body)return e;const n=new J.MaxBytesTransformStream(t);return new Y.TransformedResponse(e,n)}function le(e,t=!0){const n="string"==typeof e?t=>t===e:e instanceof RegExp?t=>e.test(t):e;return ne((e=>oe(e,n,t)))}async function oe(e,t,n=!0){const r=te(e);if(r){if(!t(r))throw await X.from(e,`Unexpected response Content-Type (${r})`,502)}else if(n)throw await X.from(e,"Missing response Content-Type header",502);return e}async function ie(e){try{const t=await e.json();return{response:e,json:t}}catch(t){throw new X(e,502,"Unable to parse response as JSON",{cause:t})}}I.peekJson=async function(e,t=1/0){if("application/json"!==te(e))return;Z(e,t);const n=e.clone();return(e.body&&t<1/0?new Y.TransformedResponse(n,new J.MaxBytesTransformStream(t)):n).json()},I.checkLength=Z,I.extractLength=ee,I.extractMime=te,I.cancelBodyOnError=ne,I.fetchOkProcessor=function(e){return ne((t=>re(t,e)))},I.fetchOkTransformer=re,I.fetchMaxSizeProcessor=function(e){if(e===1/0)return e=>e;if(!Number.isFinite(e)||e<0)throw new TypeError("maxBytes must be a 0, Infinity or a positive number");return ne((t=>ae(t,e)))},I.fetchResponseMaxSizeChecker=ae,I.fetchTypeProcessor=le,I.fetchResponseTypeChecker=oe,I.fetchResponseJsonTranformer=ie,I.fetchJsonProcessor=function(e=/^application\/(?:[^+]+\+)?json$/,t=!0){return(0,Q.pipe)(le(e,t),ne(ie))},I.fetchJsonZodProcessor=function(e,t){return async n=>e.parseAsync(n.json,t)};var ue={};Object.defineProperty(ue,"__esModule",{value:!0}),ue.bindFetch=ue.timedFetch=ue.loggedFetch=void 0;const se=T,ce=j,fe=H,de=L;ue.loggedFetch=function(e=globalThis.fetch){return(0,ce.toRequestTransformer)((async function(t){const n=await(0,de.stringifyMessage)(t);console.info(`> ${t.method} ${t.url}\n${(0,de.padLines)(n," ")}`);try{const n=await e.call(this,t),r=await(0,de.stringifyMessage)(n.clone());return console.info(`< HTTP/1.1 ${n.status} ${n.statusText}\n${(0,de.padLines)(r," ")}`),n}catch(e){throw console.error("< Error:",e),e}}))};var pe,me,he;ue.timedFetch=(e=6e4,t=globalThis.fetch)=>{if(e===1/0)return t;if(!Number.isFinite(e)||e<=0)throw new TypeError("Timeout must be positive");return(0,ce.toRequestTransformer)((async function(n){const r=new AbortController,a=r.signal,l=()=>{r.abort()},o=()=>{clearTimeout(i),n.signal?.removeEventListener("abort",l)},i=setTimeout(l,e);"object"==typeof i&&i.unref?.(),n.signal?.addEventListener("abort",l),a.addEventListener("abort",o);const u=await t.call(this,n,{signal:a});if(u.body){const e=new TransformStream({flush:o});return new fe.TransformedResponse(u,e)}return o(),u}))},ue.bindFetch=function(e=globalThis.fetch,t=globalThis){return(0,ce.toRequestTransformer)((async n=>{try{return await e.call(t,n)}catch(e){throw se.FetchRequestError.from(n,e)}}))},pe=_,me=t&&t.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),he=t&&t.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||me(t,e,n)},Object.defineProperty(pe,"__esModule",{value:!0}),he(N,pe),he(T,pe),he(I,pe),he(ue,pe),he(j,pe),he(L,pe);class ge{constructor(e,t,n,r){Object.defineProperty(this,"requestUri",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"clientId",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"csrfToken",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"newSessionsRequireConsent",{enumerable:!0,configurable:!0,writable:!0,value:r})}async signIn(e){const{json:t}=await fetch("/oauth/authorize/sign-in",{method:"POST",headers:{"Content-Type":"application/json"},mode:"same-origin",body:JSON.stringify({csrf_token:this.csrfToken,request_uri:this.requestUri,client_id:this.clientId,credentials:e})}).then(_.fetchOkProcessor()).then(_.fetchJsonProcessor());return{account:t.account,selected:!0,loginRequired:!1,consentRequired:this.newSessionsRequireConsent||t.consentRequired}}async accept(e){const t=new URL("/oauth/authorize/accept",window.origin);return t.searchParams.set("request_uri",this.requestUri),t.searchParams.set("account_sub",e.sub),t.searchParams.set("client_id",this.clientId),t.searchParams.set("csrf_token",this.csrfToken),t}async reject(){const e=new URL("/oauth/authorize/reject",window.origin);return e.searchParams.set("request_uri",this.requestUri),e.searchParams.set("client_id",this.clientId),e.searchParams.set("csrf_token",this.csrfToken),e}}const ye=(ve=document.cookie,Object.fromEntries(ve.split(";").filter(Boolean).map((e=>e.split("=",2).map((e=>decodeURIComponent(e.trim())))))));var ve;function be({clientId:e,requestUri:t,csrfCookie:n,sessions:r,newSessionsRequireConsent:a},{onRedirected:l}={}){const o=ye[n]??"<csrf-token-missing>";const[u,s]=i.useState(r),c=i.useCallback((e=>{s((t=>e===(t.find((e=>e.selected))?.account.sub||null)?t:t.map((t=>({...t,selected:t.account.sub===e})))))}),[s]),f=i.useMemo((()=>new ge(t,e,o,a)),[t,e,o,a]),d=i.useCallback((e=>{window.location.href=String(e),l&&setTimeout(l)}),[l]),p=i.useCallback((async e=>{const t=await f.signIn(e),{sub:n}=t.account;s((e=>function(e,t,n){const r=e.findIndex(n);return-1===r?[...e,t]:[...e.slice(0,r),t,...e.slice(r+1)]}(e,t,(e=>e.account.sub===n)).map((e=>e!==t&&e.selected?{...e,selected:!1}:e))))}),[f,d,e,s]);return{sessions:u,setSession:c,doSignIn:p,doSignUp:i.useCallback((e=>{throw new Error("Not implemented")}),[f]),doAccept:i.useCallback((async e=>{d(await f.accept(e))}),[f,d]),doReject:i.useCallback((async()=>{d(await f.reject())}),[f,d])}}function we(e,t){return i.useCallback((()=>e(t)),[e,t])}function xe({account:e,...t}){return u.jsx("b",{...t,children:e.preferred_username||e.email||e.sub})}function ke({url:e,proto:t=!1,host:n=!0,path:r=!1,query:a=!1,hash:l=!1,as:o="span",...s}){const c=i.useMemo((()=>new URL(e)),[e]);return u.jsxs(o,{...s,children:[t&&u.jsx(Se,{value:`${c.protocol}//`,...!0===t?null:t}),n&&u.jsx(Se,{value:c.host,...!0===n?{faded:!1,bold:!0}:n}),r&&u.jsx(Se,{value:c.pathname,...!0===r?null:r}),a&&u.jsx(Se,{value:c.search,...!0===a?null:a}),l&&u.jsx(Se,{value:c.hash,...!0===l?null:l})]})}function Se({value:e,faded:t=!0,bold:n=!1}){const r=n?"b":"span";return u.jsx(r,{className:t?"opacity-50":"",children:e})}function Ee({clientId:e,clientMetadata:t,as:n="span",...r}){return t.client_uri?u.jsx(ke,{as:n,...r,url:t.client_uri,proto:!0,path:!0}):u.jsx(n,{...r,children:e})}function Ce({clientId:e,clientMetadata:t,as:n="span",...r}){return t.client_name?u.jsx(n,{...r,children:t.client_name}):u.jsx(Ee,{clientId:e,clientMetadata:t,as:n,...r})}function _e({account:e,clientId:t,clientMetadata:n,clientTrusted:r,onAccept:a,acceptLabel:l="Accept",onReject:o,rejectLabel:i="Deny access",onBack:s,backLabel:c="Back",...f}){return u.jsxs("div",{...f,className:E("flex flex-col",f.className),children:[r&&n.logo_uri&&u.jsx("div",{className:"flex items-center justify-center mb-4",children:u.jsx("img",{crossOrigin:"anonymous",src:n.logo_uri,alt:n.client_name,className:"w-16 h-16 rounded-full"})}),u.jsx(Ce,{clientId:t,clientMetadata:n,as:"h1",className:"text-2xl font-semibold text-center text-primary"}),u.jsxs("p",{className:"mt-4",children:[u.jsx(Ee,{clientId:t,clientMetadata:n})," ","is asking for permission to access your"," ",u.jsx(xe,{account:e})," account."]}),u.jsxs("p",{className:"mt-4",children:["By clicking ",u.jsx("b",{children:l}),", you allow this application to access your information in accordance to its"," ",u.jsx("a",{href:n.tos_uri,rel:"nofollow noopener",target:"_blank",className:"text-primary underline",children:"terms of service"}),"."]}),u.jsx("div",{className:"flex-auto"}),u.jsxs("div",{className:"p-4 flex flex-wrap items-center justify-between",children:[u.jsx("button",{type:"button",onClick:a,className:"py-2 bg-transparent text-primary rounded-md font-semibold order-last",children:l}),s&&u.jsx("button",{type:"button",onClick:()=>s(),className:"mr-2 py-2 bg-transparent text-primary rounded-md font-light",children:c}),u.jsx("div",{className:"flex-auto"}),u.jsx("button",{type:"button",onClick:o,className:"mr-2 py-2 bg-transparent text-primary rounded-md font-light",children:i})]})]})}function Ne({clientId:e,clientMetadata:t,clientTrusted:n,session:r,onAccept:a,onReject:l,onBack:o}){const{account:i}=r;return u.jsx(C,{title:"Authorize",subtitle:u.jsxs(u.Fragment,{children:["Grant access to your"," ",u.jsx("b",{children:i.preferred_username||i.email||i.sub})," ","account."]}),children:u.jsx(_e,{className:"max-w-lg w-full",clientId:e,clientMetadata:t,clientTrusted:n,account:i,onBack:o,onAccept:a,onReject:l})})}function Pe({accounts:e,onAccount:t,accountAria:n=(e=>`Sign in as ${e.name}`),onOther:r,otherLabel:a="Other account",otherAria:l="Login to account that is not listed",onBack:o,backAria:i,backLabel:s=i,className:c,...f}){return u.jsxs("div",{...f,className:E("flex flex-col",c),children:[u.jsx("p",{className:"font-medium p-4",children:"Sign in as..."}),e.map((e=>{const[r,a]=[e.name,e.preferred_username,e.email,e.sub].filter(Boolean);return u.jsxs("button",{className:"cursor-pointer text-start flex items-center justify-between py-2 px-6 border-t border-b -mb-px hover:bg-slate-100 border-slate-200 dark:border-slate-700 dark:hover:bg-slate-900",onClick:()=>t(e),role:"button","aria-label":n(e),children:[u.jsxs("div",{className:"pr-2 flex items-center justify-start max-w-full overflow-hidden",children:[e.picture&&u.jsx("img",{crossOrigin:"anonymous",src:e.picture,alt:r,className:"w-8 h-8 mr-2 rounded-full"}),u.jsxs("div",{className:"min-w-0 my-2 flex-auto truncate",children:[u.jsx("span",{className:"font-semibold",children:r}),a&&u.jsx("span",{className:"ml-2 text-sm text-neutral-500 dark:text-neutral-400",children:a})]})]}),u.jsx("span",{className:"scale-x-50 font-semibold text-xl",children:">"})]},e.sub)})),r&&u.jsxs("button",{className:"cursor-pointer text-start flex items-center justify-between py-2 px-6 border-t border-b hover:bg-slate-100 border-slate-200 dark:border-slate-700 dark:hover:bg-slate-900",onClick:r,"aria-label":l,role:"button",children:[u.jsx("div",{className:"min-w-0 my-2 flex-auto truncate",children:a}),u.jsx("span",{className:"scale-x-50 font-semibold text-xl",children:">"})]}),u.jsx("div",{className:"flex-auto"}),o&&u.jsx("div",{className:"p-4 flex flex-wrap items-center justify-between",children:u.jsx("button",{type:"button",onClick:()=>o(),className:"py-2 bg-transparent text-primary rounded-md font-light","aria-label":i,children:s})})]})}function Te({message:e,role:t="alert",className:n,...r}){return u.jsxs("div",{...r,className:E("flex items-center rounded bg-error py-1 px-2 text-white dark:text-black shadow-md",n),role:t,children:[u.jsx("svg",{className:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:u.jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z"})}),u.jsx("div",{className:"ml-4",children:u.jsx("p",{children:"string"==typeof e?e:"An unknown error occurred"})})]})}function je({title:e="Sign in",onSubmit:t,submitAria:n="Next",submitLabel:r=n,onCancel:a,cancelAria:l="Cancel",cancelLabel:o=l,usernameDefault:s="",usernameReadonly:c=!1,usernameLabel:f="Email address or handle",usernameAria:d=f,usernamePlaceholder:p=f,usernamePattern:m,usernameTitle:h="Username must not be empty",passwordLabel:g="Password",passwordAria:y=g,passwordPlaceholder:v=g,passwordPattern:b,passwordTitle:w="Password must not be empty",passwordWarning:x=u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"font-bold",children:"Warning"}),u.jsx("p",{className:"text-sm",children:"Please verify the domain name of the website before entering your password. Never enter your password on a domain you do not trust."})]}),rememberVisible:k=!0,rememberDefault:S=!1,rememberLabel:C="Remember this account on this device",rememberAria:_=C,className:N,...P}){const[T,j]=i.useState(!1),[z,L]=i.useState(!1),[R,O]=i.useState(null),M=i.useCallback((async e=>{e.preventDefault();const n={username:e.currentTarget.username.value,password:e.currentTarget.password.value,remember:e.currentTarget.remember?.checked};L(!0),O(null);try{await t(n)}catch(e){O(function(e){if("Invalid credentials"===(console.error("Sign-in failed:",e),e?.message))return"Invalid username or password";return"An unknown error occurred"}(e))}finally{L(!1)}}),[t,O,L]);return u.jsxs("form",{...P,className:E("flex flex-col",N),onSubmit:M,children:[u.jsx("p",{className:"font-medium p-4",children:e}),u.jsxs("fieldset",{className:"rounded-md border border-solid border-slate-200 dark:border-slate-700 text-neutral-700 dark:text-neutral-100",disabled:z,children:[u.jsxs("div",{className:"relative p-1 flex flex-wrap items-center justify-stretch",children:[u.jsx("span",{className:"w-8 text-center text-base leading-[1.6]",children:"@"}),u.jsx("input",{name:"username",type:"text",onChange:()=>O(null),className:"relative m-0 block w-[1px] min-w-0 flex-auto px-3 py-[0.25rem] leading-[1.6] bg-transparent bg-clip-padding text-base text-inherit outline-none dark:placeholder:text-neutral-100 disabled:text-gray-500",placeholder:p,"aria-label":d,autoCapitalize:"none",autoCorrect:"off",autoComplete:"username",spellCheck:"false",dir:"auto",enterKeyHint:"next",required:!0,defaultValue:s,readOnly:c,disabled:c,pattern:m,title:h})]}),u.jsx("hr",{className:"border-slate-200 dark:border-slate-700"}),u.jsxs("div",{className:"relative p-1 flex flex-wrap items-center justify-stretch",children:[u.jsx("span",{className:"w-8 text-center text-2xl leading-[1.6]",children:"*"}),u.jsx("input",{name:"password",type:"password",onChange:()=>O(null),onFocus:()=>j(!0),onBlur:()=>setTimeout(j,100,!1),className:"relative m-0 block w-[1px] min-w-0 flex-auto px-3 py-[0.25rem] leading-[1.6] bg-transparent bg-clip-padding text-base text-inherit outline-none dark:placeholder:text-neutral-100",placeholder:v,"aria-label":y,autoCapitalize:"none",autoCorrect:"off",autoComplete:"current-password",dir:"auto",enterKeyHint:"done",spellCheck:"false",required:!0,pattern:b,title:w})]}),x&&u.jsxs(u.Fragment,{children:[u.jsx("hr",{className:"border-slate-200 dark:border-slate-700 transition-all",style:{borderTopWidth:T?"1px":"0px"}}),u.jsx("div",{className:"bg-slate-100 dark:bg-slate-800 overflow-hidden transition-all",style:{display:"grid",gridTemplateRows:T?"1fr":"0fr"},children:u.jsxs("div",{className:"flex items-center justify-start overflow-hidden",children:[u.jsx("div",{className:"py-1 px-2",children:u.jsx("svg",{className:"fill-current h-4 w-4 text-error",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:u.jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z"})})}),u.jsx("div",{className:"py-2 px-4",children:x})]})})]}),k&&u.jsxs(u.Fragment,{children:[u.jsx("hr",{className:"border-slate-200 dark:border-slate-700"}),u.jsxs("div",{className:"relative p-1 flex flex-wrap items-center justify-stretch",children:[u.jsx("span",{className:"w-8 flex items-center justify-center",children:u.jsx("input",{className:"text-primary",id:"remember",name:"remember",type:"checkbox",defaultChecked:S,"aria-label":_,onChange:()=>O(null)})}),u.jsx("label",{htmlFor:"remember",className:"relative m-0 block w-[1px] min-w-0 flex-auto px-3 py-[0.25rem] leading-[1.6]",children:C})]})]})]}),R&&u.jsx(Te,{className:"mt-4",message:R}),u.jsx("div",{className:"flex-auto"}),u.jsxs("div",{className:"p-4 flex flex-wrap items-center justify-start",children:[u.jsx("button",{className:"py-2 bg-transparent text-primary rounded-md font-semibold order-last",type:"submit",role:"Button","aria-label":n,disabled:z,children:r}),a&&u.jsx("button",{className:"py-2 bg-transparent text-primary rounded-md font-light",type:"button",role:"Button","aria-label":l,onClick:a,children:o}),u.jsx("div",{className:"flex-auto"})]})]})}function ze({loginHint:e,sessions:t,setSession:n,onSignIn:r,onBack:a}){const l=i.useMemo((()=>t.find((e=>e.selected))),[t]),o=i.useCallback((()=>n(null)),[n]),s=i.useMemo((()=>t.map((e=>e.account))),[t]),[c,f]=i.useState(0===t.length);return i.useEffect((()=>{l&&f(!1)}),[l]),l?l.loginRequired?u.jsx(C,{title:"Sign in",subtitle:"Confirm your password to continue",children:u.jsx(je,{className:"max-w-lg w-full",onSubmit:r,onCancel:o,cancelAria:"Back",usernameDefault:l.account.preferred_username,usernameReadonly:!0,rememberDefault:!0})}):null:e?u.jsx(C,{title:"Sign in",subtitle:"Enter your password",children:u.jsx(je,{className:"max-w-lg w-full",onSubmit:r,onCancel:a,cancelAria:"Back",usernameDefault:e,usernameReadonly:!0})}):0===t.length?u.jsx(C,{title:"Sign in",subtitle:"Enter your username and password",children:u.jsx(je,{className:"max-w-lg w-full",onSubmit:r,onCancel:a,cancelAria:"Back"})}):c?u.jsx(C,{title:"Sign in",subtitle:"Enter your username and password",children:u.jsx(je,{className:"max-w-lg w-full",onSubmit:r,onCancel:()=>f(!1),cancelAria:"Back"})}):u.jsx(C,{title:"Sign in as...",subtitle:"Select an account to continue.",children:u.jsx(Pe,{className:"max-w-lg w-full",accounts:s,onAccount:e=>n(e.sub),onOther:()=>f(!0),onBack:a,backAria:"Back"})})}function Le({links:e,className:t,...n}){const r=e?.find((e=>"help"===e.rel));return r?u.jsxs("p",{className:E("text-sm rounded-md bg-slate-100 text-slate-800 dark:bg-slate-800 dark:text-slate-400 p-3",t),...n,children:["Having trouble?"," ",u.jsxs("a",{href:r.href,rel:r.rel,target:"_blank",className:"text-primary",children:["Contact ",r.title]})]}):null}function Re({onSubmit:e,submitAria:t="Next",submitLabel:n=t,onCancel:r,cancelAria:a="Cancel",cancelLabel:l=a,username:o="",usernameLabel:s="Username",usernameAria:c=s,usernamePlaceholder:f=s,usernamePattern:d,usernameTitle:p,passwordLabel:m="Password",passwordAria:h=m,passwordPlaceholder:g=m,passwordPattern:y,passwordTitle:v,className:b,children:w,...x}){const[k,S]=i.useState(!1),[C,_]=i.useState(null),N=i.useCallback((async t=>{t.preventDefault();const n={username:t.currentTarget.username.value,password:t.currentTarget.password.value};S(!0),_(null);try{await e(n)}catch(e){_(function(e){if("Invalid credentials"===e?.message)return"Invalid username or password";return console.error(e),"An unknown error occurred"}(e))}finally{S(!1)}}),[e,_,S]);return u.jsxs("form",{...x,className:E("flex flex-col",b),onSubmit:N,children:[u.jsxs("fieldset",{disabled:k,children:[u.jsx("label",{className:"text-sm font-medium",htmlFor:"username",children:s}),u.jsxs("div",{id:"username",className:"mb-4 relative flex flex-wrap items-center justify-stretch rounded-md border border-solid border-slate-200 dark:border-slate-700 text-neutral-700 dark:text-neutral-100",children:[u.jsx("span",{className:"w-6 ml-1 text-center text-base",children:"@"}),u.jsx("input",{name:"username",type:"text",onChange:()=>_(null),className:"relative m-1 block w-[1px] min-w-0 flex-auto leading-[1.6] bg-transparent bg-clip-padding text-base text-inherit outline-none dark:placeholder:text-neutral-100 disabled:text-gray-500",placeholder:f,"aria-label":c,autoCapitalize:"none",autoCorrect:"off",autoComplete:"username",spellCheck:"false",dir:"auto",enterKeyHint:"next",required:!0,defaultValue:o,pattern:d,title:p})]}),u.jsx("label",{className:"text-sm font-medium",htmlFor:"password",children:m}),u.jsxs("div",{id:"password",className:"mb-4 relative flex flex-wrap items-center justify-stretch rounded-md border border-solid border-slate-200 dark:border-slate-700 text-neutral-700 dark:text-neutral-100",children:[u.jsx("span",{className:"w-6 ml-1 text-center text-2xl font-light -mb-2",children:"*"}),u.jsx("input",{name:"password",type:"password",onChange:()=>_(null),className:"relative m-1 block w-[1px] min-w-0 flex-auto leading-[1.6] bg-transparent bg-clip-padding text-base text-inherit outline-none dark:placeholder:text-neutral-100",placeholder:g,"aria-label":h,autoCapitalize:"none",autoCorrect:"off",autoComplete:"new-password",dir:"auto",enterKeyHint:"done",spellCheck:"false",required:!0,pattern:y,title:v})]})]}),w&&u.jsx("div",{className:"mt-4",children:w}),C&&u.jsx(Te,{className:"mt-2",message:C}),u.jsx("div",{className:"flex-auto"}),u.jsxs("div",{className:"p-4 flex flex-wrap items-center justify-start",children:[u.jsx("button",{className:"py-2 bg-transparent text-primary rounded-md font-semibold order-last",type:"submit",role:"Button","aria-label":t,disabled:k,children:n}),r&&u.jsx("button",{className:"py-2 bg-transparent text-primary rounded-md font-light",type:"button",role:"Button","aria-label":a,onClick:r,children:l}),u.jsx("div",{className:"flex-auto"})]})]})}function Oe({links:e,className:t,...n}){const r=e?.filter((e=>"privacy-policy"===e.rel||"terms-of-service"===e.rel));return u.jsxs("p",{className:E("text-sm text-slate-500",t),...n,children:["By creating an account you agree to the"," ",r&&r.length?r.map(((e,t,n)=>u.jsxs("span",{children:[t>0&&(t<n.length-1?", ":" and "),u.jsx("a",{href:e.href,rel:e.rel,target:"_blank",className:"text-primary underline",children:e.title})]},t))):"Terms of Service and Privacy Policy","."]})}function Me({stepName:e=((e,t)=>`Step ${e} of ${t}`),stepTitle:t=((e,t)=>1===e?"Your account":null),links:n,onSignUp:r,onBack:a}){const[l,o]=i.useState(null),[s,c]=i.useState(1),f=i.useCallback((e=>{o(e),c(2)}),[r,o,c]);return u.jsx(C,{title:"Create Account",subtitle:"We're so excited to have you join us!",children:u.jsxs("div",{className:"max-w-lg w-full flex flex-col",children:[u.jsx("p",{className:"mt-4 text-slate-400 dark:text-slate-600",children:e(s,2)}),u.jsx("h2",{className:"font-medium text-xl mb-4",children:t(s,2)}),1===s&&u.jsx(Re,{className:"flex-grow",onSubmit:f,onCancel:a,cancelLabel:"Back",children:u.jsx(Oe,{links:n})}),2===s&&u.jsx("button",{type:"button",className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-slate-700 bg-slate-100 hover:bg-slate-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",onClick:()=>c(1),children:"Back"}),u.jsx(Le,{className:"mb-4",links:n})]})})}function Fe({name:e,logo:t,logoAlt:n=e||"Logo",links:r,children:a}){return u.jsxs("div",{className:"min-h-screen w-full flex items-center justify-center flex-col bg-white text-slate-900 dark:bg-slate-900 dark:text-slate-100",children:[u.jsxs("div",{className:"w-full max-w-screen-sm overflow-hidden flex-grow flex flex-col items-center justify-center",children:[t&&u.jsx("img",{src:t,alt:n,className:"w-16 h-16 md:w-24 md:h-24 mb-8"}),e&&u.jsx("h1",{className:"text-2xl md:text-4xl mb-8 mx-4 text-center font-bold",children:e}),a]}),null!=r&&r.length>0&&u.jsx("nav",{className:"w-full max-w-screen-sm overflow-hidden mt-4 border-t border-t-slate-200 dark:border-t-slate-700 flex flex-wrap justify-center",children:r.map((e=>u.jsx("a",{href:e.href,rel:e.rel,target:"_blank",className:"m-2 md:m-4 text-xs md:text-sm text-primary hover:underline",children:e.title},e.href)))})]})}function De({onSignUp:e,signUpLabel:t="Create a new account",onSignIn:n,signInLabel:r="Sign in",onCancel:a,cancelLabel:l="Cancel",...o}){return u.jsxs(Fe,{...o,children:[e&&u.jsx("button",{className:E("m-1 w-60 max-w-full text-white py-2 px-4 rounded-full truncate",n?"bg-primary":"bg-slate-400"),onClick:e,children:t}),n&&u.jsx("button",{className:E("m-1 w-60 max-w-full py-2 px-4 rounded-full truncate",e?"bg-slate-100 dark:bg-slate-700":"bg-primary"),onClick:n,children:r}),a&&u.jsx("button",{className:"m-1 w-60 max-w-full bg-transparent text-primary py-2 px-4 rounded-full truncate font-light",onClick:a,children:l})]})}function Ie({authorizeData:e,customizationData:t}){const n=null!=e?.loginHint,[r,a]=i.useState(n?"sign-in":"welcome"),l=we(a,"done"),o=we(a,"sign-in"),s=we(a,"accept"),c=we(a,"welcome"),{sessions:f,setSession:d,doAccept:p,doReject:m,doSignIn:h,doSignUp:g}=be(e,{onRedirected:l}),y=f.find((e=>e.selected&&!e.loginRequired));return i.useEffect((()=>{y&&(y.consentRequired?s():p(y.account))}),[y,p,s]),"welcome"===r?u.jsx(De,{name:t?.name,logo:t?.logo,links:t?.links,onSignIn:o,onCancel:m}):"sign-up"===r?u.jsx(Me,{links:t?.links,onSignUp:g,onBack:c}):"sign-in"===r?u.jsx(ze,{loginHint:e.loginHint,sessions:f,setSession:d,onSignIn:h,onBack:n?m:c}):"accept"===r&&y?u.jsx(Ne,{session:y,clientId:e.clientId,clientMetadata:e.clientMetadata,clientTrusted:e.clientTrusted,onAccept:()=>p(y.account),onReject:m,onBack:()=>{d(null),a(f.length?"sign-in":"welcome")}}):u.jsx(C,{title:"Login complete",children:"You are being redirected..."})}function Ue({errorData:e,customizationData:t}){return u.jsx(Fe,{...t,children:u.jsx(Te,{message:Ae(e)})})}function Ae(e){const t=e?.error_description;switch(t){case"Unknown request_uri":case"This request has expired":return"This sign-in session has expired";default:return t||"An unknown error occurred"}}const{authorizeData:Be}=g;if(Be){const e=new URL(window.location.href);"/oauth/authorize"!==e.pathname||e.searchParams.has("request_uri")||(e.search="",e.searchParams.set("client_id",Be.clientId),e.searchParams.set("request_uri",Be.requestUri),window.history.replaceState(history.state,"",e.pathname+e.search))}k(document.getElementById("root")).render(u.jsx((function({authorizeData:e,customizationData:t,errorData:n}){return e&&!n?u.jsx(Ie,{customizationData:t,authorizeData:e}):u.jsx(Ue,{customizationData:t,errorData:n})}),{...g}))}();
19
+ */!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),v.exports=function(){if(g)return b;g=1;var e=l,t=k();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,a={};function o(e,t){i(e,t),i(e+"Capture",t)}function i(e,t){for(a[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),u=Object.prototype.hasOwnProperty,c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},f={};function p(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var h={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){h[e]=new p(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];h[t]=new p(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){h[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){h[e]=new p(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){h[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){h[e]=new p(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){h[e]=new p(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){h[e]=new p(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){h[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function v(e,t,n,r){var a=h.hasOwnProperty(t)?h[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!u.call(f,e)||!u.call(d,e)&&(c.test(e)?f[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,y);h[t]=new p(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,y);h[t]=new p(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,y);h[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){h[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)})),h.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){h[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),z=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),Z=Symbol.iterator;function A(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Z&&e[Z]||e["@@iterator"])?e:null}var L,D=Object.assign;function M(e){if(void 0===L)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var U=!1;function F(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s]){var l="\n"+a[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function $(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return F(e.type,!1);case 11:return F(e.type.render,!1);case 1:return F(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case x:return"Portal";case T:return"Profiler";case C:return"StrictMode";case P:return"Suspense";case j:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case z:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function B(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function H(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function G(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function X(e,t){G(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:W(r)}}function ie(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de,fe=(de=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return de(e,t)}))}:de);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(he).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function _e(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Se=null,Ce=null;function Te(e){if(e=ya(e)){if("function"!=typeof xe)throw Error(n(280));var t=e.stateNode;t&&(t=ba(t),xe(e.stateNode,e.type,t))}}function Ee(e){Se?Ce?Ce.push(e):Ce=[e]:Se=e}function ze(){if(Se){var e=Se,t=Ce;if(Ce=Se=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Ie(e,t){return e(t)}function Pe(){}var je=!1;function Ne(e,t,n){if(je)return e(t,n);je=!0;try{return Ie(e,t,n)}finally{je=!1,(null!==Se||null!==Ce)&&(Pe(),ze())}}function Oe(e,t){var r=e.stateNode;if(null===r)return null;var a=ba(r);if(null===a)return null;r=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Re=!1;if(s)try{var Ze={};Object.defineProperty(Ze,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Ze,Ze),window.removeEventListener("test",Ze,Ze)}catch(de){Re=!1}function Ae(e,t,n,r,a,o,i,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Le=!1,De=null,Me=!1,Ue=null,Fe={onError:function(e){Le=!0,De=e}};function $e(e,t,n,r,a,o,i,s,l){Le=!1,De=null,Ae.apply(Fe,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Be(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function We(e){if(Ve(e)!==e)throw Error(n(188))}function Ke(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,a=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(a=o.return)){r=a;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return We(o),e;if(i===a)return We(o),t;i=i.sibling}throw Error(n(188))}if(r.return!==a.return)r=o,a=i;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,a=i;break}if(l===a){s=!0,a=o,r=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===r){s=!0,r=i,a=o;break}if(l===a){s=!0,a=i,r=o;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==a)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var He=t.unstable_scheduleCallback,Je=t.unstable_cancelCallback,Qe=t.unstable_shouldYield,Ye=t.unstable_requestPaint,Ge=t.unstable_now,Xe=t.unstable_getCurrentPriorityLevel,et=t.unstable_ImmediatePriority,tt=t.unstable_UserBlockingPriority,nt=t.unstable_NormalPriority,rt=t.unstable_LowPriority,at=t.unstable_IdlePriority,ot=null,it=null,st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2,ct=64,dt=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~a;0!==s?r=ft(s):0!=(o&=i)&&(r=ft(o))}else 0!=(i=n&~a)?r=ft(i):0!==o&&(r=ft(o));if(0===r)return 0;if(0!==t&&t!==r&&!(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-st(t)),r|=e[n],t&=~a;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var _t=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var kt,xt,St,Ct,Tt,Et=!1,zt=[],It=null,Pt=null,jt=null,Nt=new Map,Ot=new Map,Rt=[],Zt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function At(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":jt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Lt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&null!==(t=ya(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Dt(e){var t=ga(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Be(n)))return e.blockedOn=t,void Tt(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ya(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ut(e,t,n){Mt(e)&&n.delete(t)}function Ft(){Et=!1,null!==It&&Mt(It)&&(It=null),null!==Pt&&Mt(Pt)&&(Pt=null),null!==jt&&Mt(jt)&&(jt=null),Nt.forEach(Ut),Ot.forEach(Ut)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,Et||(Et=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ft)))}function Vt(e){function t(t){return $t(t,e)}if(0<zt.length){$t(zt[0],e);for(var n=1;n<zt.length;n++){var r=zt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==It&&$t(It,e),null!==Pt&&$t(Pt,e),null!==jt&&$t(jt,e),Nt.forEach(t),Ot.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Dt(n),null===n.blockedOn&&Rt.shift()}var Bt=_.ReactCurrentBatchConfig,Wt=!0;function Kt(e,t,n,r){var a=_t,o=Bt.transition;Bt.transition=null;try{_t=1,Ht(e,t,n,r)}finally{_t=a,Bt.transition=o}}function qt(e,t,n,r){var a=_t,o=Bt.transition;Bt.transition=null;try{_t=4,Ht(e,t,n,r)}finally{_t=a,Bt.transition=o}}function Ht(e,t,n,r){if(Wt){var a=Qt(e,t,n,r);if(null===a)$r(e,t,r,Jt,n),At(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return It=Lt(It,e,t,n,r,a),!0;case"dragenter":return Pt=Lt(Pt,e,t,n,r,a),!0;case"mouseover":return jt=Lt(jt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Nt.set(o,Lt(Nt.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Ot.set(o,Lt(Ot.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(At(e,r),4&t&&-1<Zt.indexOf(e)){for(;null!==a;){var o=ya(a);if(null!==o&&kt(o),null===(o=Qt(e,t,n,r))&&$r(e,t,r,Jt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else $r(e,t,r,null,n)}}var Jt=null;function Qt(e,t,n,r){if(Jt=null,null!==(e=ga(e=ke(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Be(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Jt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case et:return 1;case tt:return 4;case nt:case rt:return 16;case at:return 536870912;default:return 16}default:return 16}}var Gt=null,Xt=null,en=null;function tn(){if(en)return en;var e,t,n=Xt,r=n.length,a="value"in Gt?Gt.value:Gt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return en=a.slice(e,1<t?1-t:void 0)}function nn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rn(){return!0}function an(){return!1}function on(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?rn:an,this.isPropagationStopped=an,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var sn,ln,un,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=on(cn),fn=D({},cn,{view:0,detail:0}),pn=on(fn),hn=D({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(sn=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=sn=0,un=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=on(hn),gn=on(D({},hn,{dataTransfer:0})),yn=on(D({},fn,{relatedTarget:0})),vn=on(D({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=on(D({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),_n=on(D({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return Sn}var Tn=on(D({},fn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),En=on(D({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),zn=on(D({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),In=on(D({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=on(D({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),jn=[9,13,27,32],Nn=s&&"CompositionEvent"in window,On=null;s&&"documentMode"in document&&(On=document.documentMode);var Rn=s&&"TextEvent"in window&&!On,Zn=s&&(!Nn||On&&8<On&&11>=On),An=String.fromCharCode(32),Ln=!1;function Dn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1,Fn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Vn(e,t,n,r){Ee(r),0<(t=Br(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Bn=null,Wn=null;function Kn(e){Ar(e,0)}function qn(e){if(H(va(e)))return e}function Hn(e,t){if("change"===e)return t}var Jn=!1;if(s){var Qn;if(s){var Yn="oninput"in document;if(!Yn){var Gn=document.createElement("div");Gn.setAttribute("oninput","return;"),Yn="function"==typeof Gn.oninput}Qn=Yn}else Qn=!1;Jn=Qn&&(!document.documentMode||9<document.documentMode)}function Xn(){Bn&&(Bn.detachEvent("onpropertychange",er),Wn=Bn=null)}function er(e){if("value"===e.propertyName&&qn(Wn)){var t=[];Vn(t,Wn,e,ke(e)),Ne(Kn,t)}}function tr(e,t,n){"focusin"===e?(Xn(),Wn=n,(Bn=t).attachEvent("onpropertychange",er)):"focusout"===e&&Xn()}function nr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Wn)}function rr(e,t){if("click"===e)return qn(t)}function ar(e,t){if("input"===e||"change"===e)return qn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ir(e,t){if(or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!u.call(t,a)||!or(e[a],t[a]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=lr(n,o);var i=lr(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pr=s&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,gr=null,yr=!1;function vr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==hr||hr!==J(r)||(r="selectionStart"in(r=hr)&&dr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ir(gr,r)||(gr=r,0<(r=Br(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},wr={},kr={};function xr(e){if(wr[e])return wr[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return wr[e]=n[t];return e}s&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var Sr=xr("animationend"),Cr=xr("animationiteration"),Tr=xr("animationstart"),Er=xr("transitionend"),zr=new Map,Ir="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){zr.set(e,t),o(t,[e])}for(var jr=0;jr<Ir.length;jr++){var Nr=Ir[jr];Pr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Pr(Sr,"onAnimationEnd"),Pr(Cr,"onAnimationIteration"),Pr(Tr,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Er,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Zr(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,a,o,i,s,l,u){if($e.apply(this,arguments),Le){if(!Le)throw Error(n(198));var c=De;Le=!1,De=null,Me||(Me=!0,Ue=c)}}(a,t,void 0,e),e.currentTarget=null}function Ar(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&a.isPropagationStopped())break e;Zr(a,s,u),o=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,u=s.currentTarget,s=s.listener,l!==o&&a.isPropagationStopped())break e;Zr(a,s,u),o=l}}}if(Me)throw e=Ue,Me=!1,Ue=null,e}function Lr(e,t){var n=t[pa];void 0===n&&(n=t[pa]=new Set);var r=e+"__bubble";n.has(r)||(Fr(t,e,2,!1),n.add(r))}function Dr(e,t,n){var r=0;t&&(r|=4),Fr(n,e,r,t)}var Mr="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[Mr]){e[Mr]=!0,r.forEach((function(t){"selectionchange"!==t&&(Rr.has(t)||Dr(t,!1,e),Dr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Mr]||(t[Mr]=!0,Dr("selectionchange",!1,t))}}function Fr(e,t,n,r){switch(Yt(t)){case 1:var a=Kt;break;case 4:a=qt;break;default:a=Ht}n=a.bind(null,t,n,e),a=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function $r(e,t,n,r,a){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ga(s)))return;if(5===(l=i.tag)||6===l){r=o=i;continue e}s=s.parentNode}}r=r.return}Ne((function(){var r=o,a=ke(n),i=[];e:{var s=zr.get(e);if(void 0!==s){var l=dn,u=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=yn;break;case"focusout":u="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=zn;break;case Sr:case Cr:case Tr:l=vn;break;case Er:l=In;break;case"scroll":l=pn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=En}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&null!=(m=Oe(h,f))&&c.push(Vr(h,m,p))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,a),i.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!ga(u)&&!u[fa])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ga(u):null)&&(u!==(d=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=mn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=En,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:va(l),p=null==u?s:va(u),(s=new c(m,h+"leave",l,n,a)).target=d,s.relatedTarget=p,m=null,ga(a)===r&&((c=new c(f,h+"enter",u,n,a)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Wr(p))h++;for(p=0,m=f;m;m=Wr(m))p++;for(;0<h-p;)c=Wr(c),h--;for(;0<p-h;)f=Wr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Wr(c),f=Wr(f)}c=null}else c=null;null!==l&&Kr(i,s,l,c,!1),null!==u&&null!==d&&Kr(i,d,u,c,!0)}if("select"===(l=(s=r?va(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Hn;else if($n(s))if(Jn)g=ar;else{g=nr;var y=tr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=rr);switch(g&&(g=g(e,r))?Vn(i,g,n,a):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&te(s,"number",s.value)),y=r?va(r):window,e){case"focusin":($n(y)||"true"===y.contentEditable)&&(hr=y,mr=r,gr=null);break;case"focusout":gr=mr=hr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,vr(i,n,a);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":vr(i,n,a)}var v;if(Nn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Zn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(v=tn()):(Xt="value"in(Gt=a)?Gt.value:Gt.textContent,Un=!0)),0<(y=Br(r,b)).length&&(b=new _n(b,e,null,n,a),i.push({event:b,listeners:y}),(v||null!==(v=Mn(n)))&&(b.data=v))),(v=Rn?function(e,t){switch(e){case"compositionend":return Mn(t);case"keypress":return 32!==t.which?null:(Ln=!0,An);case"textInput":return(e=t.data)===An&&Ln?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Nn&&Dn(e,t)?(e=tn(),en=Xt=Gt=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Zn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Br(r,"onBeforeInput")).length&&(a=new _n("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=v)}Ar(i,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Br(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Oe(e,n))&&r.unshift(Vr(e,o,a)),null!=(o=Oe(e,t))&&r.push(Vr(e,o,a))),e=e.return}return r}function Wr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,a?null!=(l=Oe(n,o))&&i.unshift(Vr(n,l,s)):a||null!=(l=Oe(n,o))&&i.push(Vr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var qr=/\r\n?/g,Hr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Hr,"")}function Qr(e,t,r){if(t=Jr(t),Jr(e)!==t&&r)throw Error(n(425))}function Yr(){}var Gr=null,Xr=null;function ea(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ta="function"==typeof setTimeout?setTimeout:void 0,na="function"==typeof clearTimeout?clearTimeout:void 0,ra="function"==typeof Promise?Promise:void 0,aa="function"==typeof queueMicrotask?queueMicrotask:void 0!==ra?function(e){return ra.resolve(null).then(e).catch(oa)}:ta;function oa(e){setTimeout((function(){throw e}))}function ia(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Vt(t)}function sa(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function la(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ua=Math.random().toString(36).slice(2),ca="__reactFiber$"+ua,da="__reactProps$"+ua,fa="__reactContainer$"+ua,pa="__reactEvents$"+ua,ha="__reactListeners$"+ua,ma="__reactHandles$"+ua;function ga(e){var t=e[ca];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fa]||n[ca]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=la(e);null!==e;){if(n=e[ca])return n;e=la(e)}return t}n=(e=n).parentNode}return null}function ya(e){return!(e=e[ca]||e[fa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function va(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function ba(e){return e[da]||null}var _a=[],wa=-1;function ka(e){return{current:e}}function xa(e){0>wa||(e.current=_a[wa],_a[wa]=null,wa--)}function Sa(e,t){wa++,_a[wa]=e.current,e.current=t}var Ca={},Ta=ka(Ca),Ea=ka(!1),za=Ca;function Ia(e,t){var n=e.type.contextTypes;if(!n)return Ca;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pa(e){return null!=e.childContextTypes}function ja(){xa(Ea),xa(Ta)}function Na(e,t,r){if(Ta.current!==Ca)throw Error(n(168));Sa(Ta,t),Sa(Ea,r)}function Oa(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,"function"!=typeof a.getChildContext)return r;for(var o in a=a.getChildContext())if(!(o in t))throw Error(n(108,B(e)||"Unknown",o));return D({},r,a)}function Ra(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ca,za=Ta.current,Sa(Ta,e),Sa(Ea,Ea.current),!0}function Za(e,t,r){var a=e.stateNode;if(!a)throw Error(n(169));r?(e=Oa(e,t,za),a.__reactInternalMemoizedMergedChildContext=e,xa(Ea),xa(Ta),Sa(Ta,e)):xa(Ea),Sa(Ea,r)}var Aa=null,La=!1,Da=!1;function Ma(e){null===Aa?Aa=[e]:Aa.push(e)}function Ua(){if(!Da&&null!==Aa){Da=!0;var e=0,t=_t;try{var n=Aa;for(_t=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Aa=null,La=!1}catch(t){throw null!==Aa&&(Aa=Aa.slice(e+1)),He(et,Ua),t}finally{_t=t,Da=!1}}return null}var Fa=[],$a=0,Va=null,Ba=0,Wa=[],Ka=0,qa=null,Ha=1,Ja="";function Qa(e,t){Fa[$a++]=Ba,Fa[$a++]=Va,Va=e,Ba=t}function Ya(e,t,n){Wa[Ka++]=Ha,Wa[Ka++]=Ja,Wa[Ka++]=qa,qa=e;var r=Ha;e=Ja;var a=32-st(r)-1;r&=~(1<<a),n+=1;var o=32-st(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Ha=1<<32-st(t)+a|n<<a|r,Ja=o+e}else Ha=1<<o|n<<a|r,Ja=e}function Ga(e){null!==e.return&&(Qa(e,1),Ya(e,1,0))}function Xa(e){for(;e===Va;)Va=Fa[--$a],Fa[$a]=null,Ba=Fa[--$a],Fa[$a]=null;for(;e===qa;)qa=Wa[--Ka],Wa[Ka]=null,Ja=Wa[--Ka],Wa[Ka]=null,Ha=Wa[--Ka],Wa[Ka]=null}var eo=null,to=null,no=!1,ro=null;function ao(e,t){var n=Iu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function oo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,eo=e,to=sa(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,eo=e,to=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==qa?{id:Ha,overflow:Ja}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Iu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,eo=e,to=null,!0);default:return!1}}function io(e){return!(!(1&e.mode)||128&e.flags)}function so(e){if(no){var t=to;if(t){var r=t;if(!oo(e,t)){if(io(e))throw Error(n(418));t=sa(r.nextSibling);var a=eo;t&&oo(e,t)?ao(a,r):(e.flags=-4097&e.flags|2,no=!1,eo=e)}}else{if(io(e))throw Error(n(418));e.flags=-4097&e.flags|2,no=!1,eo=e}}}function lo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;eo=e}function uo(e){if(e!==eo)return!1;if(!no)return lo(e),no=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ea(e.type,e.memoizedProps)),t&&(t=to)){if(io(e))throw co(),Error(n(418));for(;t;)ao(e,t),t=sa(t.nextSibling)}if(lo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){to=sa(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}to=null}}else to=eo?sa(e.stateNode.nextSibling):null;return!0}function co(){for(var e=to;e;)e=sa(e.nextSibling)}function fo(){to=eo=null,no=!1}function po(e){null===ro?ro=[e]:ro.push(e)}var ho=_.ReactCurrentBatchConfig;function mo(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var a=r.stateNode}if(!a)throw Error(n(147,e));var o=a,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function go(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yo(e){return(0,e._init)(e._payload)}function vo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=ju(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Zu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===O&&yo(a)===t.type)?((r=o(t,n.props)).ref=mo(e,t,n),r.return=e,r):((r=Nu(n.type,n.key,n.props,null,e.mode,r)).ref=mo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Au(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Ou(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Zu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Nu(t.type,t.key,t.props,null,e.mode,n)).ref=mo(e,null,t),n.return=e,n;case x:return(t=Au(t,e.mode,n)).return=e,t;case O:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||A(t))return(t=Ou(t,e.mode,n,null)).return=e,t;go(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===a?u(e,t,n,r):null;case x:return n.key===a?c(e,t,n,r):null;case O:return p(e,t,(a=n._init)(n._payload),r)}if(ne(n)||A(n))return null!==a?null:d(e,t,n,r,null);go(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case O:return h(e,t,n,(0,r._init)(r._payload),a)}if(ne(r)||A(r))return d(t,e=e.get(n)||null,r,a,null);go(t,r)}return null}function m(n,o,s,l){for(var u=null,c=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=p(n,d,s[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(n,d),o=i(y,o,m),null===c?u=y:c.sibling=y,c=y,d=g}if(m===s.length)return r(n,d),no&&Qa(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(n,s[m],l))&&(o=i(d,o,m),null===c?u=d:c.sibling=d,c=d);return no&&Qa(n,m),u}for(d=a(n,d);m<s.length;m++)null!==(g=h(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=i(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(n,e)})),no&&Qa(n,m),u}function g(o,s,l,u){var c=A(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,g=s=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=p(o,m,v.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,g),null===d?c=b:d.sibling=b,d=b,m=y}if(v.done)return r(o,m),no&&Qa(o,g),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=f(o,v.value,u))&&(s=i(v,s,g),null===d?c=v:d.sibling=v,d=v);return no&&Qa(o,g),c}for(m=a(o,m);!v.done;g++,v=l.next())null!==(v=h(m,o,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=i(v,s,g),null===d?c=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(o,e)})),no&&Qa(o,g),c}return function e(n,a,i,l){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var u=i.key,c=a;null!==c;){if(c.key===u){if((u=i.type)===S){if(7===c.tag){r(n,c.sibling),(a=o(c,i.props.children)).return=n,n=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===O&&yo(u)===c.type){r(n,c.sibling),(a=o(c,i.props)).ref=mo(n,c,i),a.return=n,n=a;break e}r(n,c);break}t(n,c),c=c.sibling}i.type===S?((a=Ou(i.props.children,n.mode,l,i.key)).return=n,n=a):((l=Nu(i.type,i.key,i.props,null,n.mode,l)).ref=mo(n,a,i),l.return=n,n=l)}return s(n);case x:e:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){r(n,a.sibling),(a=o(a,i.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Au(i,n.mode,l)).return=n,n=a}return s(n);case O:return e(n,a,(c=i._init)(i._payload),l)}if(ne(i))return m(n,a,i,l);if(A(i))return g(n,a,i,l);go(n,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,i)).return=n,n=a):(r(n,a),(a=Zu(i,n.mode,l)).return=n,n=a),s(n)):r(n,a)}}var bo=vo(!0),_o=vo(!1),wo=ka(null),ko=null,xo=null,So=null;function Co(){So=xo=ko=null}function To(e){var t=wo.current;xa(wo),e._currentValue=t}function Eo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function zo(e,t){ko=e,So=xo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Io(e){var t=e._currentValue;if(So!==e)if(e={context:e,memoizedValue:t,next:null},null===xo){if(null===ko)throw Error(n(308));xo=e,ko.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var Po=null;function jo(e){null===Po?Po=[e]:Po.push(e)}function No(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,jo(t)):(n.next=a.next,a.next=n),t.interleaved=n,Oo(e,r)}function Oo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ro=!1;function Zo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Do(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Tl){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Oo(e,n)}return null===(a=r.interleaved)?(t.next=t,jo(r)):(t.next=a.next,a.next=t),r.interleaved=t,Oo(e,n)}function Mo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Uo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fo(e,t,n,r){var a=e.updateQueue;Ro=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,u=l.next;l.next=null,null===i?o=u:i.next=u,i=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==o){var d=a.baseState;for(i=0,c=u=l=null,s=o;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=D({},d,f);break e;case 2:Ro=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=a.effects)?a.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,i|=f;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(f=s).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}}if(null===c&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Rl|=i,e.lanes=i,e.memoizedState=d}}function $o(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var a=e[t],o=a.callback;if(null!==o){if(a.callback=null,a=r,"function"!=typeof o)throw Error(n(191,o));o.call(a)}}}var Vo={},Bo=ka(Vo),Wo=ka(Vo),Ko=ka(Vo);function qo(e){if(e===Vo)throw Error(n(174));return e}function Ho(e,t){switch(Sa(Ko,t),Sa(Wo,e),Sa(Bo,Vo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xa(Bo),Sa(Bo,t)}function Jo(){xa(Bo),xa(Wo),xa(Ko)}function Qo(e){qo(Ko.current);var t=qo(Bo.current),n=ue(t,e.type);t!==n&&(Sa(Wo,e),Sa(Bo,n))}function Yo(e){Wo.current===e&&(xa(Bo),xa(Wo))}var Go=ka(0);function Xo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ei=[];function ti(){for(var e=0;e<ei.length;e++)ei[e]._workInProgressVersionPrimary=null;ei.length=0}var ni=_.ReactCurrentDispatcher,ri=_.ReactCurrentBatchConfig,ai=0,oi=null,ii=null,si=null,li=!1,ui=!1,ci=0,di=0;function fi(){throw Error(n(321))}function pi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function hi(e,t,r,a,o,i){if(ai=i,oi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ni.current=null===e||null===e.memoizedState?Yi:Gi,e=r(a,o),ui){i=0;do{if(ui=!1,ci=0,25<=i)throw Error(n(301));i+=1,si=ii=null,t.updateQueue=null,ni.current=Xi,e=r(a,o)}while(ui)}if(ni.current=Qi,t=null!==ii&&null!==ii.next,ai=0,si=ii=oi=null,li=!1,t)throw Error(n(300));return e}function mi(){var e=0!==ci;return ci=0,e}function gi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===si?oi.memoizedState=si=e:si=si.next=e,si}function yi(){if(null===ii){var e=oi.alternate;e=null!==e?e.memoizedState:null}else e=ii.next;var t=null===si?oi.memoizedState:si.next;if(null!==t)si=t,ii=e;else{if(null===e)throw Error(n(310));e={memoizedState:(ii=e).memoizedState,baseState:ii.baseState,baseQueue:ii.baseQueue,queue:ii.queue,next:null},null===si?oi.memoizedState=si=e:si=si.next=e}return si}function vi(e,t){return"function"==typeof t?t(e):t}function bi(e){var t=yi(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=ii,o=a.baseQueue,i=r.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}a.baseQueue=o=i,r.pending=null}if(null!==o){i=o.next,a=a.baseState;var l=s=null,u=null,c=i;do{var d=c.lane;if((ai&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),a=c.hasEagerState?c.eagerState:e(a,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=a):u=u.next=f,oi.lanes|=d,Rl|=d}c=c.next}while(null!==c&&c!==i);null===u?s=a:u.next=l,or(a,t.memoizedState)||(ys=!0),t.memoizedState=a,t.baseState=s,t.baseQueue=u,r.lastRenderedState=a}if(null!==(e=r.interleaved)){o=e;do{i=o.lane,oi.lanes|=i,Rl|=i,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function _i(e){var t=yi(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=r.dispatch,o=r.pending,i=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);or(i,t.memoizedState)||(ys=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,a]}function wi(){}function ki(e,t){var r=oi,a=yi(),o=t(),i=!or(a.memoizedState,o);if(i&&(a.memoizedState=o,ys=!0),a=a.queue,Ri(Ci.bind(null,r,a,e),[e]),a.getSnapshot!==t||i||null!==si&&1&si.memoizedState.tag){if(r.flags|=2048,Ii(9,Si.bind(null,r,a,o,t),void 0,null),null===El)throw Error(n(349));30&ai||xi(r,t,o)}return o}function xi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=oi.updateQueue)?(t={lastEffect:null,stores:null},oi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Si(e,t,n,r){t.value=n,t.getSnapshot=r,Ti(t)&&Ei(e)}function Ci(e,t,n){return n((function(){Ti(t)&&Ei(e)}))}function Ti(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!or(e,n)}catch(e){return!0}}function Ei(e){var t=Oo(e,1);null!==t&&eu(t,e,1,-1)}function zi(e){var t=gi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:e},t.queue=e,e=e.dispatch=Ki.bind(null,oi,e),[t.memoizedState,e]}function Ii(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=oi.updateQueue)?(t={lastEffect:null,stores:null},oi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pi(){return yi().memoizedState}function ji(e,t,n,r){var a=gi();oi.flags|=e,a.memoizedState=Ii(1|t,n,void 0,void 0===r?null:r)}function Ni(e,t,n,r){var a=yi();r=void 0===r?null:r;var o=void 0;if(null!==ii){var i=ii.memoizedState;if(o=i.destroy,null!==r&&pi(r,i.deps))return void(a.memoizedState=Ii(t,n,o,r))}oi.flags|=e,a.memoizedState=Ii(1|t,n,o,r)}function Oi(e,t){return ji(8390656,8,e,t)}function Ri(e,t){return Ni(2048,8,e,t)}function Zi(e,t){return Ni(4,2,e,t)}function Ai(e,t){return Ni(4,4,e,t)}function Li(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Di(e,t,n){return n=null!=n?n.concat([e]):null,Ni(4,4,Li.bind(null,t,e),n)}function Mi(){}function Ui(e,t){var n=yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&pi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fi(e,t){var n=yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&pi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $i(e,t,n){return 21&ai?(or(n,t)||(n=gt(),oi.lanes|=n,Rl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n)}function Vi(e,t){var n=_t;_t=0!==n&&4>n?n:4,e(!0);var r=ri.transition;ri.transition={};try{e(!1),t()}finally{_t=n,ri.transition=r}}function Bi(){return yi().memoizedState}function Wi(e,t,n){var r=Xl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qi(e)?Hi(t,n):null!==(n=No(e,t,n,r))&&(eu(n,e,r,Gl()),Ji(n,t,r))}function Ki(e,t,n){var r=Xl(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qi(e))Hi(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,or(s,i)){var l=t.interleaved;return null===l?(a.next=a,jo(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(e){}null!==(n=No(e,t,a,r))&&(eu(n,e,r,a=Gl()),Ji(n,t,r))}}function qi(e){var t=e.alternate;return e===oi||null!==t&&t===oi}function Hi(e,t){ui=li=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ji(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Qi={readContext:Io,useCallback:fi,useContext:fi,useEffect:fi,useImperativeHandle:fi,useInsertionEffect:fi,useLayoutEffect:fi,useMemo:fi,useReducer:fi,useRef:fi,useState:fi,useDebugValue:fi,useDeferredValue:fi,useTransition:fi,useMutableSource:fi,useSyncExternalStore:fi,useId:fi,unstable_isNewReconciler:!1},Yi={readContext:Io,useCallback:function(e,t){return gi().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:Oi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ji(4194308,4,Li.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ji(4194308,4,e,t)},useInsertionEffect:function(e,t){return ji(4,2,e,t)},useMemo:function(e,t){var n=gi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=gi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Wi.bind(null,oi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},gi().memoizedState=e},useState:zi,useDebugValue:Mi,useDeferredValue:function(e){return gi().memoizedState=e},useTransition:function(){var e=zi(!1),t=e[0];return e=Vi.bind(null,e[1]),gi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=oi,o=gi();if(no){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===El)throw Error(n(349));30&ai||xi(a,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Oi(Ci.bind(null,a,i,e),[e]),a.flags|=2048,Ii(9,Si.bind(null,a,i,r,t),void 0,null),r},useId:function(){var e=gi(),t=El.identifierPrefix;if(no){var n=Ja;t=":"+t+"R"+(n=(Ha&~(1<<32-st(Ha)-1)).toString(32)+n),0<(n=ci++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=di++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Gi={readContext:Io,useCallback:Ui,useContext:Io,useEffect:Ri,useImperativeHandle:Di,useInsertionEffect:Zi,useLayoutEffect:Ai,useMemo:Fi,useReducer:bi,useRef:Pi,useState:function(){return bi(vi)},useDebugValue:Mi,useDeferredValue:function(e){return $i(yi(),ii.memoizedState,e)},useTransition:function(){return[bi(vi)[0],yi().memoizedState]},useMutableSource:wi,useSyncExternalStore:ki,useId:Bi,unstable_isNewReconciler:!1},Xi={readContext:Io,useCallback:Ui,useContext:Io,useEffect:Ri,useImperativeHandle:Di,useInsertionEffect:Zi,useLayoutEffect:Ai,useMemo:Fi,useReducer:_i,useRef:Pi,useState:function(){return _i(vi)},useDebugValue:Mi,useDeferredValue:function(e){var t=yi();return null===ii?t.memoizedState=e:$i(t,ii.memoizedState,e)},useTransition:function(){return[_i(vi)[0],yi().memoizedState]},useMutableSource:wi,useSyncExternalStore:ki,useId:Bi,unstable_isNewReconciler:!1};function es(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function ts(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ns={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gl(),a=Xl(e),o=Lo(r,a);o.payload=t,null!=n&&(o.callback=n),null!==(t=Do(e,o,a))&&(eu(t,e,a,r),Mo(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gl(),a=Xl(e),o=Lo(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Do(e,o,a))&&(eu(t,e,a,r),Mo(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gl(),r=Xl(e),a=Lo(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Do(e,a,r))&&(eu(t,e,r,n),Mo(t,e,r))}};function rs(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!(t.prototype&&t.prototype.isPureReactComponent&&ir(n,r)&&ir(a,o))}function as(e,t,n){var r=!1,a=Ca,o=t.contextType;return"object"==typeof o&&null!==o?o=Io(o):(a=Pa(t)?za:Ta.current,o=(r=null!=(r=t.contextTypes))?Ia(e,a):Ca),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ns,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function os(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ns.enqueueReplaceState(t,t.state,null)}function is(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},Zo(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=Io(o):(o=Pa(t)?za:Ta.current,a.context=Ia(e,o)),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(ts(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&ns.enqueueReplaceState(a,a.state,null),Fo(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function ss(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a,digest:null}}function ls(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function us(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var cs="function"==typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=Lo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$l||($l=!0,Vl=r),us(0,t)},n}function fs(e,t,n){(n=Lo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){us(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){us(0,t),"function"!=typeof r&&(null===Bl?Bl=new Set([this]):Bl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ps(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new cs;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=xu.bind(null,e,t,n),t.then(e,e))}function hs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ms(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Lo(-1,1)).tag=2,Do(n,t,1))),n.lanes|=1),e)}var gs=_.ReactCurrentOwner,ys=!1;function vs(e,t,n,r){t.child=null===e?_o(t,null,n,r):bo(t,e.child,n,r)}function bs(e,t,n,r,a){n=n.render;var o=t.ref;return zo(t,a),r=hi(e,t,n,r,o,a),n=mi(),null===e||ys?(no&&n&&Ga(t),t.flags|=1,vs(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$s(e,t,a))}function _s(e,t,n,r,a){if(null===e){var o=n.type;return"function"!=typeof o||Pu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nu(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,ws(e,t,o,r,a))}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:ir)(i,r)&&e.ref===t.ref)return $s(e,t,a)}return t.flags|=1,(e=ju(o,r)).ref=t.ref,e.return=t,t.child=e}function ws(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(ir(o,r)&&e.ref===t.ref){if(ys=!1,t.pendingProps=r=o,!(e.lanes&a))return t.lanes=e.lanes,$s(e,t,a);131072&e.flags&&(ys=!0)}}return Ss(e,t,n,r,a)}function ks(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Sa(jl,Pl),Pl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Sa(jl,Pl),Pl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Sa(jl,Pl),Pl|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Sa(jl,Pl),Pl|=r;return vs(e,t,a,n),t.child}function xs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ss(e,t,n,r,a){var o=Pa(n)?za:Ta.current;return o=Ia(t,o),zo(t,a),n=hi(e,t,n,r,o,a),r=mi(),null===e||ys?(no&&r&&Ga(t),t.flags|=1,vs(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$s(e,t,a))}function Cs(e,t,n,r,a){if(Pa(n)){var o=!0;Ra(t)}else o=!1;if(zo(t,a),null===t.stateNode)Fs(e,t),as(t,n,r),is(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,u=n.contextType;u="object"==typeof u&&null!==u?Io(u):Ia(t,u=Pa(n)?za:Ta.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==r||l!==u)&&os(t,i,r,u),Ro=!1;var f=t.memoizedState;i.state=f,Fo(t,r,i,a),l=t.memoizedState,s!==r||f!==l||Ea.current||Ro?("function"==typeof c&&(ts(t,n,c,r),l=t.memoizedState),(s=Ro||rs(t,n,s,r,f,l,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=u,r=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ao(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:es(t.type,s),i.props=u,d=t.pendingProps,f=i.context,l="object"==typeof(l=n.contextType)&&null!==l?Io(l):Ia(t,l=Pa(n)?za:Ta.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||f!==l)&&os(t,i,r,l),Ro=!1,f=t.memoizedState,i.state=f,Fo(t,r,i,a);var h=t.memoizedState;s!==d||f!==h||Ea.current||Ro?("function"==typeof p&&(ts(t,n,p,r),h=t.memoizedState),(u=Ro||rs(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=l,r=u):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,o,a)}function Ts(e,t,n,r,a,o){xs(e,t);var i=!!(128&t.flags);if(!r&&!i)return a&&Za(t,n,!1),$s(e,t,o);r=t.stateNode,gs.current=t;var s=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=bo(t,e.child,null,o),t.child=bo(t,null,s,o)):vs(e,t,s,o),t.memoizedState=r.state,a&&Za(t,n,!0),t.child}function Es(e){var t=e.stateNode;t.pendingContext?Na(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Na(0,t.context,!1),Ho(e,t.containerInfo)}function zs(e,t,n,r,a){return fo(),po(a),t.flags|=256,vs(e,t,n,r),t.child}var Is,Ps,js,Ns,Os={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zs(e,t,r){var a,o=t.pendingProps,i=Go.current,s=!1,l=!!(128&t.flags);if((a=l)||(a=(null===e||null!==e.memoizedState)&&!!(2&i)),a?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Sa(Go,1&i),null===e)return so(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Ru(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Ou(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rs(r),t.memoizedState=Os,e):As(t,l));if(null!==(i=e.memoizedState)&&null!==(a=i.dehydrated))return function(e,t,r,a,o,i,s){if(r)return 256&t.flags?(t.flags&=-257,Ls(e,t,s,a=ls(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=a.fallback,o=t.mode,a=Ru({mode:"visible",children:a.children},o,0,null),(i=Ou(i,o,s,null)).flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,1&t.mode&&bo(t,e.child,null,s),t.child.memoizedState=Rs(s),t.memoizedState=Os,i);if(!(1&t.mode))return Ls(e,t,s,null);if("$!"===o.data){if(a=o.nextSibling&&o.nextSibling.dataset)var l=a.dgst;return a=l,Ls(e,t,s,a=ls(i=Error(n(419)),a,void 0))}if(l=!!(s&e.childLanes),ys||l){if(null!==(a=El)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(a.suspendedLanes|s)?0:o)&&o!==i.retryLane&&(i.retryLane=o,Oo(e,o),eu(a,e,o,-1))}return pu(),Ls(e,t,s,a=ls(Error(n(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Cu.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,to=sa(o.nextSibling),eo=t,no=!0,ro=null,null!==e&&(Wa[Ka++]=Ha,Wa[Ka++]=Ja,Wa[Ka++]=qa,Ha=e.id,Ja=e.overflow,qa=t),(t=As(t,a.children)).flags|=4096,t)}(e,t,l,o,a,i,r);if(s){s=o.fallback,l=t.mode,a=(i=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===i?(o=ju(i,u)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==a?s=ju(a,s):(s=Ou(s,l,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Rs(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Os,o}return e=(s=e.child).sibling,o=ju(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function As(e,t){return(t=Ru({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ls(e,t,n,r){return null!==r&&po(r),bo(t,e.child,null,n),(e=As(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ds(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function Ms(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Us(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(vs(e,t,r.children,n),2&(r=Go.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ds(e,n,t);else if(19===e.tag)Ds(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Sa(Go,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Xo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ms(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Xo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ms(t,!0,n,null,o);break;case"together":Ms(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Fs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $s(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Rl|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=ju(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=ju(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Vs(e,t){if(!no)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Bs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ws(e,t,r){var o=t.pendingProps;switch(Xa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bs(t),null;case 1:case 17:return Pa(t.type)&&ja(),Bs(t),null;case 3:return o=t.stateNode,Jo(),xa(Ea),xa(Ta),ti(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(uo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ro&&(au(ro),ro=null))),Ps(e,t),Bs(t),null;case 5:Yo(t);var i=qo(Ko.current);if(r=t.type,null!==e&&null!=t.stateNode)js(e,t,r,o,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(n(166));return Bs(t),null}if(e=qo(Bo.current),uo(t)){o=t.stateNode,r=t.type;var s=t.memoizedProps;switch(o[ca]=t,o[da]=s,e=!!(1&t.mode),r){case"dialog":Lr("cancel",o),Lr("close",o);break;case"iframe":case"object":case"embed":Lr("load",o);break;case"video":case"audio":for(i=0;i<Or.length;i++)Lr(Or[i],o);break;case"source":Lr("error",o);break;case"img":case"image":case"link":Lr("error",o),Lr("load",o);break;case"details":Lr("toggle",o);break;case"input":Y(o,s),Lr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Lr("invalid",o);break;case"textarea":oe(o,s),Lr("invalid",o)}for(var l in be(r,s),i=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?o.textContent!==u&&(!0!==s.suppressHydrationWarning&&Qr(o.textContent,u,e),i=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Qr(o.textContent,u,e),i=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Lr("scroll",o)}switch(r){case"input":q(o),ee(o,s,!0);break;case"textarea":q(o),se(o);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(o.onclick=Yr)}o=i,t.updateQueue=o,null!==o&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=l.createElement(r,{is:o.is}):(e=l.createElement(r),"select"===r&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,r),e[ca]=t,e[da]=o,Is(e,t,!1,!1),t.stateNode=e;e:{switch(l=_e(r,o),r){case"dialog":Lr("cancel",e),Lr("close",e),i=o;break;case"iframe":case"object":case"embed":Lr("load",e),i=o;break;case"video":case"audio":for(i=0;i<Or.length;i++)Lr(Or[i],e);i=o;break;case"source":Lr("error",e),i=o;break;case"img":case"image":case"link":Lr("error",e),Lr("load",e),i=o;break;case"details":Lr("toggle",e),i=o;break;case"input":Y(e,o),i=Q(e,o),Lr("invalid",e);break;case"option":default:i=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},i=D({},o,{value:void 0}),Lr("invalid",e);break;case"textarea":oe(e,o),i=ae(e,o),Lr("invalid",e)}for(s in be(r,i),u=i)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ye(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&pe(e,c):"number"==typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Lr("scroll",e):null!=c&&v(e,s,c,l))}switch(r){case"input":q(e),ee(e,o,!1);break;case"textarea":q(e),se(e);break;case"option":null!=o.value&&e.setAttribute("value",""+W(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?re(e,!!o.multiple,s,!1):null!=o.defaultValue&&re(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Yr)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Bs(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(n(166));if(r=qo(Ko.current),qo(Bo.current),uo(t)){if(o=t.stateNode,r=t.memoizedProps,o[ca]=t,(s=o.nodeValue!==r)&&null!==(e=eo))switch(e.tag){case 3:Qr(o.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(o.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(o=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[ca]=t,t.stateNode=o}return Bs(t),null;case 13:if(xa(Go),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(no&&null!==to&&1&t.mode&&!(128&t.flags))co(),fo(),t.flags|=98560,s=!1;else if(s=uo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[ca]=t}else fo(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Bs(t),s=!1}else null!==ro&&(au(ro),ro=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((o=null!==o)!=(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Go.current?0===Nl&&(Nl=3):pu())),null!==t.updateQueue&&(t.flags|=4),Bs(t),null);case 4:return Jo(),Ps(e,t),null===e&&Ur(t.stateNode.containerInfo),Bs(t),null;case 10:return To(t.type._context),Bs(t),null;case 19:if(xa(Go),null===(s=t.memoizedState))return Bs(t),null;if(o=!!(128&t.flags),null===(l=s.rendering))if(o)Vs(s,!1);else{if(0!==Nl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=Xo(e))){for(t.flags|=128,Vs(s,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;null!==r;)e=o,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Sa(Go,1&Go.current|2),t.child}e=e.sibling}null!==s.tail&&Ge()>Ul&&(t.flags|=128,o=!0,Vs(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=Xo(l))){if(t.flags|=128,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Vs(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!no)return Bs(t),null}else 2*Ge()-s.renderingStartTime>Ul&&1073741824!==r&&(t.flags|=128,o=!0,Vs(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ge(),t.sibling=null,r=Go.current,Sa(Go,o?1&r|2:1&r),t):(Bs(t),null);case 22:case 23:return uu(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?!!(1073741824&Pl)&&(Bs(t),6&t.subtreeFlags&&(t.flags|=8192)):Bs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Ks(e,t){switch(Xa(t),t.tag){case 1:return Pa(t.type)&&ja(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Jo(),xa(Ea),xa(Ta),ti(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Yo(t),null;case 13:if(xa(Go),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));fo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xa(Go),null;case 4:return Jo(),null;case 10:return To(t.type._context),null;case 22:case 23:return uu(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(){},js=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,qo(Bo.current);var i,s=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),s=[];break;case"select":o=D({},o,{value:void 0}),r=D({},r,{value:void 0}),s=[];break;case"textarea":o=ae(e,o),r=ae(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Lr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Hs=!1,Js="function"==typeof WeakSet?WeakSet:Set,Qs=null;function Ys(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){ku(e,t,n)}else n.current=null}function Gs(e,t,n){try{n()}catch(n){ku(e,t,n)}}var Xs=!1;function el(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&Gs(t,n,o)}a=a.next}while(a!==r)}}function tl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function nl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function rl(e){var t=e.alternate;null!==t&&(e.alternate=null,rl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ca],delete t[da],delete t[pa],delete t[ha],delete t[ma]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function ol(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function il(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Yr));else if(4!==r&&null!==(e=e.child))for(il(e,t,n),e=e.sibling;null!==e;)il(e,t,n),e=e.sibling}function sl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(sl(e,t,n),e=e.sibling;null!==e;)sl(e,t,n),e=e.sibling}var ll=null,ul=!1;function cl(e,t,n){for(n=n.child;null!==n;)dl(e,t,n),n=n.sibling}function dl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Hs||Ys(n,t);case 6:var r=ll,a=ul;ll=null,cl(e,t,n),ul=a,null!==(ll=r)&&(ul?(e=ll,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ll.removeChild(n.stateNode));break;case 18:null!==ll&&(ul?(e=ll,n=n.stateNode,8===e.nodeType?ia(e.parentNode,n):1===e.nodeType&&ia(e,n),Vt(e)):ia(ll,n.stateNode));break;case 4:r=ll,a=ul,ll=n.stateNode.containerInfo,ul=!0,cl(e,t,n),ll=r,ul=a;break;case 0:case 11:case 14:case 15:if(!Hs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(2&o||4&o)&&Gs(n,t,i),a=a.next}while(a!==r)}cl(e,t,n);break;case 1:if(!Hs&&(Ys(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){ku(n,t,e)}cl(e,t,n);break;case 21:cl(e,t,n);break;case 22:1&n.mode?(Hs=(r=Hs)||null!==n.memoizedState,cl(e,t,n),Hs=r):cl(e,t,n);break;default:cl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Js),t.forEach((function(t){var r=Tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function pl(e,t){var r=t.deletions;if(null!==r)for(var a=0;a<r.length;a++){var o=r[a];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ll=l.stateNode,ul=!1;break e;case 3:case 4:ll=l.stateNode.containerInfo,ul=!0;break e}l=l.return}if(null===ll)throw Error(n(160));dl(i,s,o),ll=null,ul=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){ku(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)hl(t,e),t=t.sibling}function hl(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pl(t,e),ml(e),4&a){try{el(3,e,e.return),tl(3,e)}catch(t){ku(e,e.return,t)}try{el(5,e,e.return)}catch(t){ku(e,e.return,t)}}break;case 1:pl(t,e),ml(e),512&a&&null!==r&&Ys(r,r.return);break;case 5:if(pl(t,e),ml(e),512&a&&null!==r&&Ys(r,r.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(t){ku(e,e.return,t)}}if(4&a&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==r?r.memoizedProps:i,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===i.type&&null!=i.name&&G(o,i),_e(l,s);var c=_e(l,i);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ye(o,f):"dangerouslySetInnerHTML"===d?fe(o,f):"children"===d?pe(o,f):v(o,d,f,c)}switch(l){case"input":X(o,i);break;case"textarea":ie(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?re(o,!!i.multiple,h,!1):p!==!!i.multiple&&(null!=i.defaultValue?re(o,!!i.multiple,i.defaultValue,!0):re(o,!!i.multiple,i.multiple?[]:"",!1))}o[da]=i}catch(t){ku(e,e.return,t)}}break;case 6:if(pl(t,e),ml(e),4&a){if(null===e.stateNode)throw Error(n(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){ku(e,e.return,t)}}break;case 3:if(pl(t,e),ml(e),4&a&&null!==r&&r.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){ku(e,e.return,t)}break;case 4:default:pl(t,e),ml(e);break;case 13:pl(t,e),ml(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Ml=Ge())),4&a&&fl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Hs=(c=Hs)||d,pl(t,e),Hs=c):pl(t,e),ml(e),8192&a){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Qs=e,d=e.child;null!==d;){for(f=Qs=d;null!==Qs;){switch(h=(p=Qs).child,p.tag){case 0:case 11:case 14:case 15:el(4,p,p.return);break;case 1:Ys(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){a=p,r=p.return;try{t=a,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){ku(a,r,e)}}break;case 5:Ys(p,p.return);break;case 22:if(null!==p.memoizedState){bl(f);continue}}null!==h?(h.return=p,Qs=h):bl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=ge("display",s))}catch(t){ku(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){ku(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:pl(t,e),ml(e),4&a&&fl(e);case 21:}}function ml(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var a=r;break e}r=r.return}throw Error(n(160))}switch(a.tag){case 5:var o=a.stateNode;32&a.flags&&(pe(o,""),a.flags&=-33),sl(e,ol(e),o);break;case 3:case 4:var i=a.stateNode.containerInfo;il(e,ol(e),i);break;default:throw Error(n(161))}}catch(t){ku(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gl(e,t,n){Qs=e,yl(e)}function yl(e,t,n){for(var r=!!(1&e.mode);null!==Qs;){var a=Qs,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||qs;if(!i){var s=a.alternate,l=null!==s&&null!==s.memoizedState||Hs;s=qs;var u=Hs;if(qs=i,(Hs=l)&&!u)for(Qs=a;null!==Qs;)l=(i=Qs).child,22===i.tag&&null!==i.memoizedState?_l(a):null!==l?(l.return=i,Qs=l):_l(a);for(;null!==o;)Qs=o,yl(o),o=o.sibling;Qs=a,qs=s,Hs=u}vl(e)}else 8772&a.subtreeFlags&&null!==o?(o.return=a,Qs=o):vl(e)}}function vl(e){for(;null!==Qs;){var t=Qs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Hs||tl(5,t);break;case 1:var a=t.stateNode;if(4&t.flags&&!Hs)if(null===r)a.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:es(t.type,r.memoizedProps);a.componentDidUpdate(o,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&$o(t,i,a);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}$o(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Vt(f)}}}break;default:throw Error(n(163))}Hs||512&t.flags&&nl(t)}catch(e){ku(t,t.return,e)}}if(t===e){Qs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Qs=r;break}Qs=t.return}}function bl(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qs=n;break}Qs=t.return}}function _l(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{tl(4,t)}catch(e){ku(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(e){ku(t,a,e)}}var o=t.return;try{nl(t)}catch(e){ku(t,o,e)}break;case 5:var i=t.return;try{nl(t)}catch(e){ku(t,i,e)}}}catch(e){ku(t,t.return,e)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var wl,kl=Math.ceil,xl=_.ReactCurrentDispatcher,Sl=_.ReactCurrentOwner,Cl=_.ReactCurrentBatchConfig,Tl=0,El=null,zl=null,Il=0,Pl=0,jl=ka(0),Nl=0,Ol=null,Rl=0,Zl=0,Al=0,Ll=null,Dl=null,Ml=0,Ul=1/0,Fl=null,$l=!1,Vl=null,Bl=null,Wl=!1,Kl=null,ql=0,Hl=0,Jl=null,Ql=-1,Yl=0;function Gl(){return 6&Tl?Ge():-1!==Ql?Ql:Ql=Ge()}function Xl(e){return 1&e.mode?2&Tl&&0!==Il?Il&-Il:null!==ho.transition?(0===Yl&&(Yl=gt()),Yl):0!==(e=_t)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function eu(e,t,r,a){if(50<Hl)throw Hl=0,Jl=null,Error(n(185));vt(e,r,a),2&Tl&&e===El||(e===El&&(!(2&Tl)&&(Zl|=r),4===Nl&&ou(e,Il)),tu(e,a),1===r&&0===Tl&&!(1&t.mode)&&(Ul=Ge()+500,La&&Ua()))}function tu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-st(o),s=1<<i,l=a[i];-1===l?s&n&&!(s&r)||(a[i]=ht(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=pt(e,e===El?Il:0);if(0===r)null!==n&&Je(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Je(n),1===t)0===e.tag?function(e){La=!0,Ma(e)}(iu.bind(null,e)):Ma(iu.bind(null,e)),aa((function(){!(6&Tl)&&Ua()})),n=null;else{switch(wt(r)){case 1:n=et;break;case 4:n=tt;break;case 16:default:n=nt;break;case 536870912:n=at}n=Eu(n,nu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function nu(e,t){if(Ql=-1,Yl=0,6&Tl)throw Error(n(327));var r=e.callbackNode;if(_u()&&e.callbackNode!==r)return null;var a=pt(e,e===El?Il:0);if(0===a)return null;if(30&a||a&e.expiredLanes||t)t=hu(e,a);else{t=a;var o=Tl;Tl|=2;var i=fu();for(El===e&&Il===t||(Fl=null,Ul=Ge()+500,cu(e,t));;)try{gu();break}catch(t){du(e,t)}Co(),xl.current=i,Tl=o,null!==zl?t=0:(El=null,Il=0,t=Nl)}if(0!==t){if(2===t&&0!==(o=mt(e))&&(a=o,t=ru(e,o)),1===t)throw r=Ol,cu(e,0),ou(e,a),tu(e,Ge()),r;if(6===t)ou(e,a);else{if(o=e.current.alternate,!(30&a||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!or(o(),a))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=hu(e,a),2===t&&(i=mt(e),0!==i&&(a=i,t=ru(e,i))),1!==t)))throw r=Ol,cu(e,0),ou(e,a),tu(e,Ge()),r;switch(e.finishedWork=o,e.finishedLanes=a,t){case 0:case 1:throw Error(n(345));case 2:case 5:bu(e,Dl,Fl);break;case 3:if(ou(e,a),(130023424&a)===a&&10<(t=Ml+500-Ge())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&a)!==a){Gl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ta(bu.bind(null,e,Dl,Fl),t);break}bu(e,Dl,Fl);break;case 4:if(ou(e,a),(4194240&a)===a)break;for(t=e.eventTimes,o=-1;0<a;){var s=31-st(a);i=1<<s,(s=t[s])>o&&(o=s),a&=~i}if(a=o,10<(a=(120>(a=Ge()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*kl(a/1960))-a)){e.timeoutHandle=ta(bu.bind(null,e,Dl,Fl),a);break}bu(e,Dl,Fl);break;default:throw Error(n(329))}}}return tu(e,Ge()),e.callbackNode===r?nu.bind(null,e):null}function ru(e,t){var n=Ll;return e.current.memoizedState.isDehydrated&&(cu(e,t).flags|=256),2!==(e=hu(e,t))&&(t=Dl,Dl=n,null!==t&&au(t)),e}function au(e){null===Dl?Dl=e:Dl.push.apply(Dl,e)}function ou(e,t){for(t&=~Al,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function iu(e){if(6&Tl)throw Error(n(327));_u();var t=pt(e,0);if(!(1&t))return tu(e,Ge()),null;var r=hu(e,t);if(0!==e.tag&&2===r){var a=mt(e);0!==a&&(t=a,r=ru(e,a))}if(1===r)throw r=Ol,cu(e,0),ou(e,t),tu(e,Ge()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,bu(e,Dl,Fl),tu(e,Ge()),null}function su(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(Ul=Ge()+500,La&&Ua())}}function lu(e){null!==Kl&&0===Kl.tag&&!(6&Tl)&&_u();var t=Tl;Tl|=1;var n=Cl.transition,r=_t;try{if(Cl.transition=null,_t=1,e)return e()}finally{_t=r,Cl.transition=n,!(6&(Tl=t))&&Ua()}}function uu(){Pl=jl.current,xa(jl)}function cu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,na(n)),null!==zl)for(n=zl.return;null!==n;){var r=n;switch(Xa(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&ja();break;case 3:Jo(),xa(Ea),xa(Ta),ti();break;case 5:Yo(r);break;case 4:Jo();break;case 13:case 19:xa(Go);break;case 10:To(r.type._context);break;case 22:case 23:uu()}n=n.return}if(El=e,zl=e=ju(e.current,null),Il=Pl=t,Nl=0,Ol=null,Al=Zl=Rl=0,Dl=Ll=null,null!==Po){for(t=0;t<Po.length;t++)if(null!==(r=(n=Po[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}Po=null}return e}function du(e,t){for(;;){var r=zl;try{if(Co(),ni.current=Qi,li){for(var a=oi.memoizedState;null!==a;){var o=a.queue;null!==o&&(o.pending=null),a=a.next}li=!1}if(ai=0,si=ii=oi=null,ui=!1,ci=0,Sl.current=null,null===r||null===r.return){Nl=1,Ol=t,zl=null;break}e:{var i=e,s=r.return,l=r,u=t;if(t=Il,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=hs(s);if(null!==h){h.flags&=-257,ms(h,s,l,0,t),1&h.mode&&ps(i,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){ps(i,c,t),pu();break e}u=Error(n(426))}else if(no&&1&l.mode){var y=hs(s);if(null!==y){!(65536&y.flags)&&(y.flags|=256),ms(y,s,l,0,t),po(ss(u,l));break e}}i=u=ss(u,l),4!==Nl&&(Nl=2),null===Ll?Ll=[i]:Ll.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Uo(i,ds(0,u,t));break e;case 1:l=u;var v=i.type,b=i.stateNode;if(!(128&i.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Bl&&Bl.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,Uo(i,fs(i,l,t));break e}}i=i.return}while(null!==i)}vu(r)}catch(e){t=e,zl===r&&null!==r&&(zl=r=r.return);continue}break}}function fu(){var e=xl.current;return xl.current=Qi,null===e?Qi:e}function pu(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===El||!(268435455&Rl)&&!(268435455&Zl)||ou(El,Il)}function hu(e,t){var r=Tl;Tl|=2;var a=fu();for(El===e&&Il===t||(Fl=null,cu(e,t));;)try{mu();break}catch(t){du(e,t)}if(Co(),Tl=r,xl.current=a,null!==zl)throw Error(n(261));return El=null,Il=0,Nl}function mu(){for(;null!==zl;)yu(zl)}function gu(){for(;null!==zl&&!Qe();)yu(zl)}function yu(e){var t=wl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?vu(e):zl=t,Sl.current=null}function vu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ks(n,t)))return n.flags&=32767,void(zl=n);if(null===e)return Nl=6,void(zl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ws(n,t,Pl)))return void(zl=n);if(null!==(t=t.sibling))return void(zl=t);zl=t=e}while(null!==t);0===Nl&&(Nl=5)}function bu(e,t,r){var a=_t,o=Cl.transition;try{Cl.transition=null,_t=1,function(e,t,r,a){do{_u()}while(null!==Kl);if(6&Tl)throw Error(n(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-st(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===El&&(zl=El=null,Il=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Wl||(Wl=!0,Eu(nt,(function(){return _u(),null}))),i=!!(15990&r.flags),15990&r.subtreeFlags||i){i=Cl.transition,Cl.transition=null;var s=_t;_t=1;var l=Tl;Tl|=4,Sl.current=null,function(e,t){if(Gr=Wt,dr(e=cr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(a&&0!==a.rangeCount){r=a.anchorNode;var o=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{r.nodeType,i.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==o&&3!==f.nodeType||(l=s+o),f!==i||0!==a&&3!==f.nodeType||(u=s+a),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===o&&(l=s),p===i&&++d===a&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Xr={focusedElem:e,selectionRange:r},Wt=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,y=m.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:es(t.type,g),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(n(163))}}catch(e){ku(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}m=Xs,Xs=!1}(e,r),hl(r,e),fr(Xr),Wt=!!Gr,Xr=Gr=null,e.current=r,gl(r),Ye(),Tl=l,_t=s,Cl.transition=i}else e.current=r;if(Wl&&(Wl=!1,Kl=e,ql=o),0===(i=e.pendingLanes)&&(Bl=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),tu(e,Ge()),null!==t)for(a=e.onRecoverableError,r=0;r<t.length;r++)a((o=t[r]).value,{componentStack:o.stack,digest:o.digest});if($l)throw $l=!1,e=Vl,Vl=null,e;!!(1&ql)&&0!==e.tag&&_u(),1&(i=e.pendingLanes)?e===Jl?Hl++:(Hl=0,Jl=e):Hl=0,Ua()}(e,t,r,a)}finally{Cl.transition=o,_t=a}return null}function _u(){if(null!==Kl){var e=wt(ql),t=Cl.transition,r=_t;try{if(Cl.transition=null,_t=16>e?16:e,null===Kl)var a=!1;else{if(e=Kl,Kl=null,ql=0,6&Tl)throw Error(n(331));var o=Tl;for(Tl|=4,Qs=e.current;null!==Qs;){var i=Qs,s=i.child;if(16&Qs.flags){var l=i.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Qs=c;null!==Qs;){var d=Qs;switch(d.tag){case 0:case 11:case 15:el(8,d,i)}var f=d.child;if(null!==f)f.return=d,Qs=f;else for(;null!==Qs;){var p=(d=Qs).sibling,h=d.return;if(rl(d),d===c){Qs=null;break}if(null!==p){p.return=h,Qs=p;break}Qs=h}}}var m=i.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(null!==g)}}Qs=i}}if(2064&i.subtreeFlags&&null!==s)s.return=i,Qs=s;else e:for(;null!==Qs;){if(2048&(i=Qs).flags)switch(i.tag){case 0:case 11:case 15:el(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Qs=v;break e}Qs=i.return}}var b=e.current;for(Qs=b;null!==Qs;){var _=(s=Qs).child;if(2064&s.subtreeFlags&&null!==_)_.return=s,Qs=_;else e:for(s=b;null!==Qs;){if(2048&(l=Qs).flags)try{switch(l.tag){case 0:case 11:case 15:tl(9,l)}}catch(e){ku(l,l.return,e)}if(l===s){Qs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Qs=w;break e}Qs=l.return}}if(Tl=o,Ua(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}a=!0}return a}finally{_t=r,Cl.transition=t}}return!1}function wu(e,t,n){e=Do(e,t=ds(0,t=ss(n,t),1),1),t=Gl(),null!==e&&(vt(e,1,t),tu(e,t))}function ku(e,t,n){if(3===e.tag)wu(e,e,n);else for(;null!==t;){if(3===t.tag){wu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Bl||!Bl.has(r))){t=Do(t,e=fs(t,e=ss(n,e),1),1),e=Gl(),null!==t&&(vt(t,1,e),tu(t,e));break}}t=t.return}}function xu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Gl(),e.pingedLanes|=e.suspendedLanes&n,El===e&&(Il&n)===n&&(4===Nl||3===Nl&&(130023424&Il)===Il&&500>Ge()-Ml?cu(e,0):Al|=n),tu(e,t)}function Su(e,t){0===t&&(1&e.mode?(t=dt,!(130023424&(dt<<=1))&&(dt=4194304)):t=1);var n=Gl();null!==(e=Oo(e,t))&&(vt(e,t,n),tu(e,n))}function Cu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Su(e,n)}function Tu(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(n(314))}null!==a&&a.delete(t),Su(e,r)}function Eu(e,t){return He(e,t)}function zu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Iu(e,t,n,r){return new zu(e,t,n,r)}function Pu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ju(e,t){var n=e.alternate;return null===n?((n=Iu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nu(e,t,r,a,o,i){var s=2;if(a=e,"function"==typeof e)Pu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Ou(r.children,o,i,t);case C:s=8,o|=8;break;case T:return(e=Iu(12,r,t,2|o)).elementType=T,e.lanes=i,e;case P:return(e=Iu(13,r,t,o)).elementType=P,e.lanes=i,e;case j:return(e=Iu(19,r,t,o)).elementType=j,e.lanes=i,e;case R:return Ru(r,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case z:s=9;break e;case I:s=11;break e;case N:s=14;break e;case O:s=16,a=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Iu(s,r,t,o)).elementType=e,t.type=a,t.lanes=i,t}function Ou(e,t,n,r){return(e=Iu(7,e,r,t)).lanes=n,e}function Ru(e,t,n,r){return(e=Iu(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Zu(e,t,n){return(e=Iu(6,e,null,t)).lanes=n,e}function Au(e,t,n){return(t=Iu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lu(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Du(e,t,n,r,a,o,i,s,l){return e=new Lu(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Iu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zo(o),e}function Mu(e){if(!e)return Ca;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Pa(r))return Oa(e,r,t)}return t}function Uu(e,t,n,r,a,o,i,s,l){return(e=Du(n,r,!0,e,0,o,0,s,l)).context=Mu(null),n=e.current,(o=Lo(r=Gl(),a=Xl(n))).callback=null!=t?t:null,Do(n,o,a),e.current.lanes=a,vt(e,a,r),tu(e,r),e}function Fu(e,t,n,r){var a=t.current,o=Gl(),i=Xl(a);return n=Mu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Lo(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Do(a,t,i))&&(eu(e,a,i,o),Mo(e,a,i)),i}function $u(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Bu(e,t){Vu(e,t),(e=e.alternate)&&Vu(e,t)}wl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ea.current)ys=!0;else{if(!(e.lanes&r||128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Es(t),fo();break;case 5:Qo(t);break;case 1:Pa(t.type)&&Ra(t);break;case 4:Ho(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Sa(wo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Sa(Go,1&Go.current),t.flags|=128,null):n&t.child.childLanes?Zs(e,t,n):(Sa(Go,1&Go.current),null!==(e=$s(e,t,n))?e.sibling:null);Sa(Go,1&Go.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Us(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Sa(Go,Go.current),r)break;return null;case 22:case 23:return t.lanes=0,ks(e,t,n)}return $s(e,t,n)}(e,t,r);ys=!!(131072&e.flags)}else ys=!1,no&&1048576&t.flags&&Ya(t,Ba,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Fs(e,t),e=t.pendingProps;var o=Ia(t,Ta.current);zo(t,r),o=hi(null,t,a,e,o,r);var i=mi();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pa(a)?(i=!0,Ra(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Zo(t),o.updater=ns,t.stateNode=o,o._reactInternals=t,is(t,a,e,r),t=Ts(null,t,a,!0,i,r)):(t.tag=0,no&&i&&Ga(t),vs(null,t,o,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Fs(e,t),e=t.pendingProps,a=(o=a._init)(a._payload),t.type=a,o=t.tag=function(e){if("function"==typeof e)return Pu(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===N)return 14}return 2}(a),e=es(a,e),o){case 0:t=Ss(null,t,a,e,r);break e;case 1:t=Cs(null,t,a,e,r);break e;case 11:t=bs(null,t,a,e,r);break e;case 14:t=_s(null,t,a,es(a.type,e),r);break e}throw Error(n(306,a,""))}return t;case 0:return a=t.type,o=t.pendingProps,Ss(e,t,a,o=t.elementType===a?o:es(a,o),r);case 1:return a=t.type,o=t.pendingProps,Cs(e,t,a,o=t.elementType===a?o:es(a,o),r);case 3:e:{if(Es(t),null===e)throw Error(n(387));a=t.pendingProps,o=(i=t.memoizedState).element,Ao(e,t),Fo(t,a,null,r);var s=t.memoizedState;if(a=s.element,i.isDehydrated){if(i={element:a,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=zs(e,t,a,r,o=ss(Error(n(423)),t));break e}if(a!==o){t=zs(e,t,a,r,o=ss(Error(n(424)),t));break e}for(to=sa(t.stateNode.containerInfo.firstChild),eo=t,no=!0,ro=null,r=_o(t,null,a,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(fo(),a===o){t=$s(e,t,r);break e}vs(e,t,a,r)}t=t.child}return t;case 5:return Qo(t),null===e&&so(t),a=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,ea(a,o)?s=null:null!==i&&ea(a,i)&&(t.flags|=32),xs(e,t),vs(e,t,s,r),t.child;case 6:return null===e&&so(t),null;case 13:return Zs(e,t,r);case 4:return Ho(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=bo(t,null,a,r):vs(e,t,a,r),t.child;case 11:return a=t.type,o=t.pendingProps,bs(e,t,a,o=t.elementType===a?o:es(a,o),r);case 7:return vs(e,t,t.pendingProps,r),t.child;case 8:case 12:return vs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Sa(wo,a._currentValue),a._currentValue=s,null!==i)if(or(i.value,s)){if(i.children===o.children&&!Ea.current){t=$s(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var u=l.firstContext;null!==u;){if(u.context===a){if(1===i.tag){(u=Lo(-1,r&-r)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=r,null!==(u=i.alternate)&&(u.lanes|=r),Eo(i.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Eo(s,r,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}vs(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,a=t.pendingProps.children,zo(t,r),a=a(o=Io(o)),t.flags|=1,vs(e,t,a,r),t.child;case 14:return o=es(a=t.type,t.pendingProps),_s(e,t,a,o=es(a.type,o),r);case 15:return ws(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,o=t.pendingProps,o=t.elementType===a?o:es(a,o),Fs(e,t),t.tag=1,Pa(a)?(e=!0,Ra(t)):e=!1,zo(t,r),as(t,a,o),is(t,a,o,r),Ts(null,t,a,!0,e,r);case 19:return Us(e,t,r);case 22:return ks(e,t,r)}throw Error(n(156,t.tag))};var Wu="function"==typeof reportError?reportError:function(e){console.error(e)};function Ku(e){this._internalRoot=e}function qu(e){this._internalRoot=e}function Hu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qu(){}function Yu(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"==typeof a){var s=a;a=function(){var e=$u(i);s.call(e)}}Fu(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"==typeof r){var o=r;r=function(){var e=$u(i);o.call(e)}}var i=Uu(t,r,e,0,null,!1,0,"",Qu);return e._reactRootContainer=i,e[fa]=i.current,Ur(8===e.nodeType?e.parentNode:e),lu(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var s=r;r=function(){var e=$u(l);s.call(e)}}var l=Du(e,0,!1,null,0,!1,0,"",Qu);return e._reactRootContainer=l,e[fa]=l.current,Ur(8===e.nodeType?e.parentNode:e),lu((function(){Fu(t,l,n,r)})),l}(n,t,e,a,r);return $u(i)}qu.prototype.render=Ku.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Fu(e,t,null,null)},qu.prototype.unmount=Ku.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;lu((function(){Fu(null,e,null,null)})),t[fa]=null}},qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Dt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(bt(t,1|n),tu(t,Ge()),!(6&Tl)&&(Ul=Ge()+500,Ua()))}break;case 13:lu((function(){var t=Oo(e,1);if(null!==t){var n=Gl();eu(t,e,1,n)}})),Bu(e,1)}},xt=function(e){if(13===e.tag){var t=Oo(e,134217728);null!==t&&eu(t,e,134217728,Gl()),Bu(e,134217728)}},St=function(e){if(13===e.tag){var t=Xl(e),n=Oo(e,t);null!==n&&eu(n,e,t,Gl()),Bu(e,t)}},Ct=function(){return _t},Tt=function(e,t){var n=_t;try{return _t=e,t()}finally{_t=n}},xe=function(e,t,r){switch(t){case"input":if(X(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var o=ba(a);if(!o)throw Error(n(90));H(a),X(a,o)}}}break;case"textarea":ie(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ie=su,Pe=lu;var Gu={usingClientEntryPoint:!1,Events:[ya,va,ba,Ee,ze,su]},Xu={findFiberByHostInstance:ga,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ec={bundleType:Xu.bundleType,version:Xu.version,rendererPackageName:Xu.rendererPackageName,rendererConfig:Xu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ke(e))?null:e.stateNode},findFiberByHostInstance:Xu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tc.isDisabled&&tc.supportsFiber)try{ot=tc.inject(ec),it=tc}catch(de){}}return b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gu,b.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Hu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},b.createRoot=function(e,t){if(!Hu(e))throw Error(n(299));var r=!1,a="",o=Wu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Du(e,1,!1,null,0,r,0,a,o),e[fa]=t.current,Ur(8===e.nodeType?e.parentNode:e),new Ku(t)},b.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return null===(e=Ke(t))?null:e.stateNode},b.flushSync=function(e){return lu(e)},b.hydrate=function(e,t,r){if(!Ju(t))throw Error(n(200));return Yu(null,e,t,!0,r)},b.hydrateRoot=function(e,t,r){if(!Hu(e))throw Error(n(405));var a=null!=r&&r.hydratedSources||null,o=!1,i="",s=Wu;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Uu(t,null,e,1,null!=r?r:null,o,0,i,s),e[fa]=t.current,Ur(e),a)for(e=0;e<a.length;e++)o=(o=(r=a[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new qu(t)},b.render=function(e,t,r){if(!Ju(t))throw Error(n(200));return Yu(null,e,t,!1,r)},b.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(n(40));return!!e._reactRootContainer&&(lu((function(){Yu(null,null,e,!1,(function(){e._reactRootContainer=null,e[fa]=null}))})),!0)},b.unstable_batchedUpdates=su,b.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Ju(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Yu(e,t,r,!1,a)},b.version="18.3.1-next-f1338f8080-20240426",b}();var x,S=v.exports;function C(e,...t){if(0===t.length)return e;const n=C(...t);return e&&n?`${e} ${n}`:e||n}function T({children:e,title:t,subtitle:n,className:r,...a}){return u.jsxs("div",{...a,className:C(r,"flex flex-col items-center","md:flex md:flex-row md:justify-stretch md:items-center","min-h-screen min-w-screen","bg-white text-slate-900","dark:bg-slate-900 dark:text-slate-100"),children:[u.jsxs("div",{className:C("px-6 pt-4","md:max-w-lg","md:grid md:content-center md:justify-items-end","md:self-stretch","md:w-1/2 md:max-w-fix md:p-4","md:text-right","md:dark:border-r md:dark:border-slate-700","md:bg-slate-100 md:dark:bg-slate-800"),children:[t&&u.jsx("h1",{className:"text-xl md:text-2xl lg:text-5xl md:mt-4 mb-4 font-semibold text-brand",children:t}),n&&u.jsx("p",{className:"hidden md:block max-w-xs text-slate-500 dark:text-slate-500",children:n})]}),u.jsx("div",{className:"w-full px-6 md:max-w-3xl md:px-12",children:e})]})}x=S.createRoot,S.hydrateRoot;var E={},z={};Object.defineProperty(z,"__esModule",{value:!0}),z.FetchError=void 0;class I extends Error{constructor(e,t,n){if(null==e||!t){const r=function(e){if("string"==typeof e&&e.length>0)return[500,e];if(!(e instanceof Error))return[500,"Failed to fetch"];const t=e.code;if("string"==typeof t)switch(!0){case"ENOTFOUND"===t:return[400,"Invalid hostname"];case"ECONNREFUSED"===t:return[502,"Connection refused"];case"DEPTH_ZERO_SELF_SIGNED_CERT"===t:return[502,"Self-signed certificate"];case t.startsWith("ERR_TLS"):return[502,"TLS error"];case t.startsWith("ECONN"):return[502,"Connection error"];default:return[500,`${t} error`]}return[500,e.message]}(function(e){if(e instanceof TypeError&&"fetch failed"===e.message&&void 0!==e.cause)return e.cause;return e}(n?.cause));e=e??r[0],t=t||r[1]}super(t,n),Object.defineProperty(this,"statusCode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.statusCode=e}}z.FetchError=I;var P={},j={};function N(e,t){return!t&&e instanceof Request?e:new Request(e,t)}Object.defineProperty(j,"__esModule",{value:!0}),j.asRequest=j.toRequestTransformer=void 0,j.toRequestTransformer=function(e){return function(t,n){return e.call(this,N(t,n))}},j.asRequest=N;var O={};Object.defineProperty(O,"__esModule",{value:!0}),O.stringifyMessage=O.logCancellationError=O.cancelBody=O.padLines=O.MaxBytesTransformStream=O.ifString=O.ifObject=O.isIp=void 0,O.isIp=function(e){return!!e.match(/^\d+\.\d+\.\d+\.\d+$/)||!(!e.startsWith("[")||!e.endsWith("]"))};const R=Object.prototype;O.ifObject=e=>{if("object"==typeof e&&null!=e&&!Array.isArray(e)){const t=Object.getPrototypeOf(e);if(null===t||t===R)return e}};O.ifString=e=>"string"==typeof e?e:void 0;class Z extends TransformStream{constructor(e){if(!(e>=0))throw new TypeError("maxBytes must be a non-negative number");let t=0;super({transform:(n,r)=>{(t+=n.length)<=e?r.enqueue(n):r.error(new Error("Response too large"))}})}}O.MaxBytesTransformStream=Z;const A=/\r?\n/g;async function L(e,t){!e.body||e.bodyUsed||e.body.locked||"function"!=typeof e.body.cancel||("function"==typeof t?e.body.cancel().catch(t):"log"===t?e.body.cancel().catch(D):await e.body.cancel())}function D(e){console.warn("Failed to cancel response body",e)}O.padLines=function(e,t){return e?t+e.replace(A,`$&${t}`):e},O.cancelBody=L,O.logCancellationError=D,O.stringifyMessage=async function(e){try{const t=function(e){return Array.from(e).map((([e,t])=>`${e}: ${t}`)).join("\n")}(e.headers),n=await async function(e){try{const t=await e.blob();if(t.type?.startsWith("text/")){const e=await t.text();return JSON.stringify(e)}if(/application\/(?:\w+\+)?json/.test(t.type)){const e=await t.text();return e.includes("\n")?JSON.stringify(JSON.parse(e)):e}return`[Body size: ${t.size}, type: ${JSON.stringify(t.type)} ]`}catch{return"[Body could not be read]"}}(e);return t&&n?`${t}\n${n}`:t||n}finally{L(e,"log")}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.forbiddenDomainNameRequestTransform=e.DEFAULT_FORBIDDEN_DOMAIN_NAMES=e.requireHostHeaderTranform=e.protocolCheckRequestTransform=e.FetchRequestError=void 0;const t=z,n=j,r=O;class a extends t.FetchError{constructor(e,t,n,r){super(t,n,r),Object.defineProperty(this,"request",{enumerable:!0,configurable:!0,writable:!0,value:e})}static from(e,t){return t instanceof a?t:new a(e,void 0,void 0,{cause:t})}}e.FetchRequestError=a;const o=e=>"string"==typeof e?new URL(e):e instanceof URL?e:new URL(e.url);e.protocolCheckRequestTransform=function(e){const t=new Set(e);return(e,r)=>{const{protocol:i}=o(e),s=(0,n.asRequest)(e,r);if(!t.has(i))throw new a(s,400,`"${i}" protocol is not allowed`);return s}},e.requireHostHeaderTranform=function(){return(e,t)=>{const{protocol:i,hostname:s}=o(e),l=(0,n.asRequest)(e,t);if("http:"!==i&&"https:"!==i)throw new a(l,400,`"${i}" requests are not allowed`);if(!s||(0,r.isIp)(s))throw new a(l,400,"Invalid hostname");return l}},e.DEFAULT_FORBIDDEN_DOMAIN_NAMES=["example.com","*.example.com","example.org","*.example.org","example.net","*.example.net","googleusercontent.com","*.googleusercontent.com"],e.forbiddenDomainNameRequestTransform=function(t=e.DEFAULT_FORBIDDEN_DOMAIN_NAMES){const r=new Set(t);return 0===r.size?async e=>e:async(e,t)=>{const{hostname:i}=o(e),s=(0,n.asRequest)(e,t);if(r.has(i))throw new a(s,403,"Forbidden hostname");let l=i.indexOf(".");for(;-1!==l;){const e=i.slice(l+1);if(r.has(`*.${e}`))throw new a(s,403,"Forbidden hostname");l=i.indexOf(".",l+1)}return s}}}(P);var M={},U={},F={};function $(e,t){return async n=>t(await e(n))}Object.defineProperty(F,"__esModule",{value:!0}),F.pipeTwo=F.pipe=void 0,F.pipe=function(...e){return e.reduce($)},F.pipeTwo=$,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.pipeTwo=e.pipe=void 0;var t=F;Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return t.pipe}}),Object.defineProperty(e,"pipeTwo",{enumerable:!0,get:function(){return t.pipeTwo}})}(U);var V,B={},W=e&&e.__classPrivateFieldSet||function(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n},K=e&&e.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Object.defineProperty(B,"__esModule",{value:!0}),B.TransformedResponse=void 0;class q extends Response{constructor(e,t){if(!e.body)throw new TypeError("Response body is not available");if(e.bodyUsed)throw new TypeError("Response body is already used");super(e.body.pipeThrough(t),{status:e.status,statusText:e.statusText,headers:e.headers}),V.set(this,void 0),W(this,V,e,"f")}get url(){return K(this,V,"f").url}get redirected(){return K(this,V,"f").redirected}get type(){return K(this,V,"f").type}get statusText(){return K(this,V,"f").statusText}}B.TransformedResponse=q,V=new WeakMap,Object.defineProperty(M,"__esModule",{value:!0}),M.fetchJsonZodProcessor=M.fetchJsonProcessor=M.fetchResponseJsonTranformer=M.fetchResponseTypeChecker=M.fetchTypeProcessor=M.fetchResponseMaxSizeChecker=M.fetchMaxSizeProcessor=M.fetchOkTransformer=M.fetchOkProcessor=M.cancelBodyOnError=M.extractMime=M.extractLength=M.checkLength=M.peekJson=M.FetchResponseError=void 0;const H=U,J=z,Q=B,Y=O;class G extends J.FetchError{constructor(e,t=e.status,n=e.statusText,r){super(t,n,r),Object.defineProperty(this,"response",{enumerable:!0,configurable:!0,writable:!0,value:e})}static async from(e,t=X,n=e.status,r){const a="string"==typeof t?t:"function"==typeof t?await t(e):void 0;return new G(e,n,a,r)}}M.FetchResponseError=G;const X=async e=>{const t=ne(e);if(t)try{if("text/plain"===t)return await e.text();if(/^application\/(?:[^+]+\+)?json$/i.test(t)){const t=await e.json();if("string"==typeof t)return t;const n=(0,Y.ifString)((0,Y.ifObject)(t)?.error_description);if(n)return n;const r=(0,Y.ifString)((0,Y.ifObject)(t)?.error);if(r)return r;const a=(0,Y.ifString)((0,Y.ifObject)(t)?.message);if(a)return a}}catch{}};function ee(e,t){if(!(t>=0))throw new TypeError("maxBytes must be a non-negative number");const n=te(e);if(null!=n&&n>t)throw new G(e,502,"Response too large");return n}function te(e){const t=e.headers.get("Content-Length");if(null==t)return;if(!/^\d+$/.test(t))throw new G(e,502,"Invalid Content-Length");const n=Number(t);if(!Number.isSafeInteger(n))throw new G(e,502,"Content-Length too large");return n}function ne(e){const t=e.headers.get("Content-Type");if(null!=t)return t.split(";",1)[0].trim()}function re(e,t=Y.logCancellationError){return async n=>{try{return await e(n)}catch(e){throw await(0,Y.cancelBody)(n,t??void 0),e}}}async function ae(e,t){if(e.ok)return e;throw await G.from(e,t)}function oe(e,t){if(t===1/0)return e;if(ee(e,t),!e.body)return e;const n=new Y.MaxBytesTransformStream(t);return new Q.TransformedResponse(e,n)}function ie(e,t=!0){const n="string"==typeof e?t=>t===e:e instanceof RegExp?t=>e.test(t):e;return re((e=>se(e,n,t)))}async function se(e,t,n=!0){const r=ne(e);if(r){if(!t(r))throw await G.from(e,`Unexpected response Content-Type (${r})`,502)}else if(n)throw await G.from(e,"Missing response Content-Type header",502);return e}async function le(e){try{const t=await e.json();return{response:e,json:t}}catch(t){throw new G(e,502,"Unable to parse response as JSON",{cause:t})}}M.peekJson=async function(e,t=1/0){if("application/json"!==ne(e))return;ee(e,t);const n=e.clone();return(e.body&&t<1/0?new Q.TransformedResponse(n,new Y.MaxBytesTransformStream(t)):n).json()},M.checkLength=ee,M.extractLength=te,M.extractMime=ne,M.cancelBodyOnError=re,M.fetchOkProcessor=function(e){return re((t=>ae(t,e)))},M.fetchOkTransformer=ae,M.fetchMaxSizeProcessor=function(e){if(e===1/0)return e=>e;if(!Number.isFinite(e)||e<0)throw new TypeError("maxBytes must be a 0, Infinity or a positive number");return re((t=>oe(t,e)))},M.fetchResponseMaxSizeChecker=oe,M.fetchTypeProcessor=ie,M.fetchResponseTypeChecker=se,M.fetchResponseJsonTranformer=le,M.fetchJsonProcessor=function(e=/^application\/(?:[^+]+\+)?json$/,t=!0){return(0,H.pipe)(ie(e,t),re(le))},M.fetchJsonZodProcessor=function(e,t){return async n=>e.parseAsync(n.json,t)};var ue={};Object.defineProperty(ue,"__esModule",{value:!0}),ue.bindFetch=ue.timedFetch=ue.loggedFetch=void 0;const ce=P,de=j,fe=B,pe=O;ue.loggedFetch=function(e=globalThis.fetch){return(0,de.toRequestTransformer)((async function(t){const n=await(0,pe.stringifyMessage)(t);console.info(`> ${t.method} ${t.url}\n${(0,pe.padLines)(n," ")}`);try{const n=await e.call(this,t),r=await(0,pe.stringifyMessage)(n.clone());return console.info(`< HTTP/1.1 ${n.status} ${n.statusText}\n${(0,pe.padLines)(r," ")}`),n}catch(e){throw console.error("< Error:",e),e}}))};var he,me,ge;ue.timedFetch=(e=6e4,t=globalThis.fetch)=>{if(e===1/0)return t;if(!Number.isFinite(e)||e<=0)throw new TypeError("Timeout must be positive");return(0,de.toRequestTransformer)((async function(n){const r=new AbortController,a=r.signal,o=()=>{r.abort()},i=()=>{clearTimeout(s),n.signal?.removeEventListener("abort",o)},s=setTimeout(o,e);"object"==typeof s&&s.unref?.(),n.signal?.addEventListener("abort",o),a.addEventListener("abort",i);const l=await t.call(this,n,{signal:a});if(l.body){const e=new TransformStream({flush:i});return new fe.TransformedResponse(l,e)}return i(),l}))},ue.bindFetch=function(e=globalThis.fetch,t=globalThis){return(0,de.toRequestTransformer)((async n=>{try{return await e.call(t,n)}catch(e){throw ce.FetchRequestError.from(n,e)}}))},he=E,me=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),ge=e&&e.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||me(t,e,n)},Object.defineProperty(he,"__esModule",{value:!0}),ge(z,he),ge(P,he),ge(M,he),ge(ue,he),ge(j,he),ge(O,he);class ye{constructor(e,t,n,r){Object.defineProperty(this,"requestUri",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"clientId",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"csrfToken",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"newSessionsRequireConsent",{enumerable:!0,configurable:!0,writable:!0,value:r})}async signIn(e){const t=await fetch("/oauth/authorize/sign-in",{method:"POST",headers:{"Content-Type":"application/json"},mode:"same-origin",body:JSON.stringify({csrf_token:this.csrfToken,request_uri:this.requestUri,client_id:this.clientId,credentials:e})}),n=await t.json();if(t.ok){const e=n;return{account:e.account,selected:!0,loginRequired:!1,consentRequired:this.newSessionsRequireConsent||e.consentRequired}}if(400===t.status&&"invalid_request"===n?.error&&"Invalid credentials"===n?.error_description)throw new ve;if(401===t.status&&"second_authentication_factor_required"===n?.error){const e=n;throw new be(e.type,e.hint)}throw new E.FetchResponseError(t)}async accept(e){const t=new URL("/oauth/authorize/accept",window.origin);return t.searchParams.set("request_uri",this.requestUri),t.searchParams.set("account_sub",e.sub),t.searchParams.set("client_id",this.clientId),t.searchParams.set("csrf_token",this.csrfToken),t}async reject(){const e=new URL("/oauth/authorize/reject",window.origin);return e.searchParams.set("request_uri",this.requestUri),e.searchParams.set("client_id",this.clientId),e.searchParams.set("csrf_token",this.csrfToken),e}}class ve extends Error{constructor(){super("Invalid credentials")}}class be extends Error{constructor(e,t){super(`${e} authentication factor required (hint: ${t})`),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"hint",{enumerable:!0,configurable:!0,writable:!0,value:t})}}const _e=(we=document.cookie,Object.fromEntries(we.split(";").filter(Boolean).map((e=>e.split("=",2).map((e=>decodeURIComponent(e.trim())))))));var we;function ke({clientId:e,requestUri:t,csrfCookie:n,sessions:r,newSessionsRequireConsent:a},{onRedirected:o}={}){const i=_e[n]??"<csrf-token-missing>";const[s,u]=l.useState(r),c=l.useCallback((e=>{u((t=>e===(t.find((e=>e.selected))?.account.sub||null)?t:t.map((t=>({...t,selected:t.account.sub===e})))))}),[u]),d=l.useMemo((()=>new ye(t,e,i,a)),[t,e,i,a]),f=l.useCallback((e=>{window.location.href=String(e),o&&setTimeout(o)}),[o]),p=l.useCallback((async e=>{const t=await d.signIn(e),{sub:n}=t.account;u((e=>function(e,t,n){const r=e.findIndex(n);return-1===r?[...e,t]:[...e.slice(0,r),t,...e.slice(r+1)]}(e,t,(e=>e.account.sub===n)).map((e=>e!==t&&e.selected?{...e,selected:!1}:e))))}),[d,f,e,u]);return{sessions:s,setSession:c,doSignIn:p,doSignUp:l.useCallback((e=>{throw new Error("Not implemented")}),[d]),doAccept:l.useCallback((async e=>{f(await d.accept(e))}),[d,f]),doReject:l.useCallback((async()=>{f(await d.reject())}),[d,f])}}function xe(e,t){return l.useCallback((()=>e(t)),[e,t])}function Se({account:e,...t}){return u.jsx("b",{...t,children:e.preferred_username||e.email||e.sub})}function Ce({children:e,className:t,type:n="button",role:r="Button",color:a="grey",disabled:o=!1,loading:i,...s}){return u.jsx("button",{role:r,type:n,disabled:o||!0===i,...s,className:C("py-2 px-6 rounded-lg truncate cursor-pointer touch-manipulation tracking-wide overflow-hidden","brand"===a?"bg-brand text-white":"bg-slate-100 hover:bg-slate-200 text-slate-600 dark:bg-slate-800 dark:hover:bg-slate-700 dark:text-slate-300",t),children:e})}var Te={},Ee={};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.OAUTH_AUTHENTICATED_ENDPOINT_NAMES=Ee.CLIENT_ASSERTION_TYPE_JWT_BEARER=void 0,Ee.CLIENT_ASSERTION_TYPE_JWT_BEARER="urn:ietf:params:oauth:client-assertion-type:jwt-bearer",Ee.OAUTH_AUTHENTICATED_ENDPOINT_NAMES=["token","revocation","introspection","pushed_authorization_request"];var ze={};function Ie(e){return"localhost"===e||"127.0.0.1"===e||"[::1]"===e}Object.defineProperty(ze,"__esModule",{value:!0}),ze.isLoopbackUrl=ze.isLoopbackHost=ze.isIP=void 0,ze.isIP=function(e){return!!e.match(/^\d+\.\d+\.\d+\.\d+$/)||!(!e.startsWith("[")||!e.endsWith("]"))},ze.isLoopbackHost=Ie,ze.isLoopbackUrl=function(e){return Ie(("string"==typeof e?new URL(e):e).hostname)};var Pe={},je={},Ne={},Oe={},Re={},Ze={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.getParsedType=e.ZodParsedType=e.objectUtil=e.util=void 0,function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(t=e.util||(e.util={})),(e.objectUtil||(e.objectUtil={})).mergeShapes=(e,t)=>({...e,...t}),e.ZodParsedType=t.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);e.getParsedType=t=>{switch(typeof t){case"undefined":return e.ZodParsedType.undefined;case"string":return e.ZodParsedType.string;case"number":return isNaN(t)?e.ZodParsedType.nan:e.ZodParsedType.number;case"boolean":return e.ZodParsedType.boolean;case"function":return e.ZodParsedType.function;case"bigint":return e.ZodParsedType.bigint;case"symbol":return e.ZodParsedType.symbol;case"object":return Array.isArray(t)?e.ZodParsedType.array:null===t?e.ZodParsedType.null:t.then&&"function"==typeof t.then&&t.catch&&"function"==typeof t.catch?e.ZodParsedType.promise:"undefined"!=typeof Map&&t instanceof Map?e.ZodParsedType.map:"undefined"!=typeof Set&&t instanceof Set?e.ZodParsedType.set:"undefined"!=typeof Date&&t instanceof Date?e.ZodParsedType.date:e.ZodParsedType.object;default:return e.ZodParsedType.unknown}}}(Ze);var Ae={};Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.ZodError=Ae.quotelessJson=Ae.ZodIssueCode=void 0;const Le=Ze;Ae.ZodIssueCode=Le.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);Ae.quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class De extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(r);else if("invalid_return_type"===a.code)r(a.returnTypeError);else if("invalid_arguments"===a.code)r(a.argumentsError);else if(0===a.path.length)n._errors.push(t(a));else{let e=n,r=0;for(;r<a.path.length;){const n=a.path[r];r===a.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(a))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof De))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Le.util.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=(e=>e.message)){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}Ae.ZodError=De,De.create=e=>new De(e),Object.defineProperty(Re,"__esModule",{value:!0});const Me=Ze,Ue=Ae;Re.default=(e,t)=>{let n;switch(e.code){case Ue.ZodIssueCode.invalid_type:n=e.received===Me.ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Ue.ZodIssueCode.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Me.util.jsonStringifyReplacer)}`;break;case Ue.ZodIssueCode.unrecognized_keys:n=`Unrecognized key(s) in object: ${Me.util.joinValues(e.keys,", ")}`;break;case Ue.ZodIssueCode.invalid_union:n="Invalid input";break;case Ue.ZodIssueCode.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Me.util.joinValues(e.options)}`;break;case Ue.ZodIssueCode.invalid_enum_value:n=`Invalid enum value. Expected ${Me.util.joinValues(e.options)}, received '${e.received}'`;break;case Ue.ZodIssueCode.invalid_arguments:n="Invalid function arguments";break;case Ue.ZodIssueCode.invalid_return_type:n="Invalid function return type";break;case Ue.ZodIssueCode.invalid_date:n="Invalid date";break;case Ue.ZodIssueCode.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Me.util.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Ue.ZodIssueCode.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Ue.ZodIssueCode.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Ue.ZodIssueCode.custom:n="Invalid input";break;case Ue.ZodIssueCode.invalid_intersection_types:n="Intersection results could not be merged";break;case Ue.ZodIssueCode.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ue.ZodIssueCode.not_finite:n="Number must be finite";break;default:n=t.defaultError,Me.util.assertNever(e)}return{message:n}};var Fe=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.getErrorMap=Oe.setErrorMap=Oe.defaultErrorMap=void 0;const $e=Fe(Re);Oe.defaultErrorMap=$e.default;let Ve=$e.default;Oe.setErrorMap=function(e){Ve=e},Oe.getErrorMap=function(){return Ve};var Be={};!function(t){var n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=t.isValid=t.isDirty=t.isAborted=t.OK=t.DIRTY=t.INVALID=t.ParseStatus=t.addIssueToContext=t.EMPTY_PATH=t.makeIssue=void 0;const r=Oe,a=n(Re);t.makeIssue=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,o=[...n,...a.path||[]],i={...a,path:o};if(void 0!==a.message)return{...a,path:o,message:a.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const e of l)s=e(i,{data:t,defaultError:s}).message;return{...a,path:o,message:s}},t.EMPTY_PATH=[],t.addIssueToContext=function(e,n){const o=(0,r.getErrorMap)(),i=(0,t.makeIssue)({issueData:n,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,o,o===a.default?void 0:a.default].filter((e=>!!e))});e.common.issues.push(i)};class o{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const a of n){if("aborted"===a.status)return t.INVALID;"dirty"===a.status&&e.dirty(),r.push(a.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,r=await e.value;n.push({key:t,value:r})}return o.mergeObjectSync(e,n)}static mergeObjectSync(e,n){const r={};for(const a of n){const{key:n,value:o}=a;if("aborted"===n.status)return t.INVALID;if("aborted"===o.status)return t.INVALID;"dirty"===n.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===n.value||void 0===o.value&&!a.alwaysSet||(r[n.value]=o.value)}return{status:e.value,value:r}}}t.ParseStatus=o,t.INVALID=Object.freeze({status:"aborted"});t.DIRTY=e=>({status:"dirty",value:e});t.OK=e=>({status:"valid",value:e});t.isAborted=e=>"aborted"===e.status;t.isDirty=e=>"dirty"===e.status;t.isValid=e=>"valid"===e.status;t.isAsync=e=>"undefined"!=typeof Promise&&e instanceof Promise}(Be);var We={};Object.defineProperty(We,"__esModule",{value:!0});var Ke={},qe={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.errorUtil=void 0,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(e.errorUtil||(e.errorUtil={}))}(qe),function(t){var n,r,a=e&&e.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},o=e&&e.__classPrivateFieldSet||function(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=t.bigint=t.array=t.any=t.coerce=t.ZodFirstPartyTypeKind=t.late=t.ZodSchema=t.Schema=t.custom=t.ZodReadonly=t.ZodPipeline=t.ZodBranded=t.BRAND=t.ZodNaN=t.ZodCatch=t.ZodDefault=t.ZodNullable=t.ZodOptional=t.ZodTransformer=t.ZodEffects=t.ZodPromise=t.ZodNativeEnum=t.ZodEnum=t.ZodLiteral=t.ZodLazy=t.ZodFunction=t.ZodSet=t.ZodMap=t.ZodRecord=t.ZodTuple=t.ZodIntersection=t.ZodDiscriminatedUnion=t.ZodUnion=t.ZodObject=t.ZodArray=t.ZodVoid=t.ZodNever=t.ZodUnknown=t.ZodAny=t.ZodNull=t.ZodUndefined=t.ZodSymbol=t.ZodDate=t.ZodBoolean=t.ZodBigInt=t.ZodNumber=t.ZodString=t.datetimeRegex=t.ZodType=void 0,t.NEVER=t.void=t.unknown=t.union=t.undefined=t.tuple=t.transformer=t.symbol=t.string=t.strictObject=t.set=t.record=t.promise=t.preprocess=t.pipeline=t.ostring=t.optional=t.onumber=t.oboolean=t.object=t.number=t.nullable=t.null=t.never=t.nativeEnum=t.nan=t.map=t.literal=t.lazy=t.intersection=t.instanceof=t.function=t.enum=t.effect=t.discriminatedUnion=t.date=void 0;const i=Oe,s=qe,l=Be,u=Ze,c=Ae;class d{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const f=(e,t)=>{if((0,l.isValid)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new c.ZodError(e.common.issues);return this._error=t,this._error}}};function p(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:a};return{errorMap:(t,a)=>{var o,i;const{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:a.defaultError}:void 0===a.data?{message:null!==(o=null!=s?s:r)&&void 0!==o?o:a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:null!==(i=null!=s?s:n)&&void 0!==i?i:a.defaultError}},description:a}}class h{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,u.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,u.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new l.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,u.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if((0,l.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.getParsedType)(e)},a=this._parseSync({data:e,path:r.path,parent:r});return f(r,a)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,u.getParsedType)(e)},r=this._parse({data:e,path:n.path,parent:n}),a=await((0,l.isAsync)(r)?r:Promise.resolve(r));return f(n,a)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{const a=e(t),o=()=>r.addIssue({code:c.ZodIssueCode.custom,...n(t)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then((e=>!!e||(o(),!1))):!!a||(o(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)))}_refinement(e){return new le({schema:this,typeName:ve.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ue.create(this,this._def)}nullable(){return ce.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return V.create(this,this._def)}promise(){return se.create(this,this._def)}or(e){return K.create([this,e],this._def)}and(e){return Q.create(this,e,this._def)}transform(e){return new le({...p(this._def),schema:this,typeName:ve.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new de({...p(this._def),innerType:this,defaultValue:t,typeName:ve.ZodDefault})}brand(){return new he({typeName:ve.ZodBranded,type:this,...p(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new fe({...p(this._def),innerType:this,catchValue:t,typeName:ve.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return me.create(this,e)}readonly(){return ge.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}t.ZodType=h,t.Schema=h,t.ZodSchema=h;const m=/^c[^\s-]{8,}$/i,g=/^[0-9a-z]+$/,y=/^[0-9A-HJKMNP-TV-Z]{26}$/,v=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,b=/^[a-z0-9_-]{21}$/i,_=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,w=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let k;const x=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,S=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,C=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,T="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",E=new RegExp(`^${T}$`);function z(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function I(e){let t=`${T}T${z(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}t.datetimeRegex=I;class P extends h{_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==u.ZodParsedType.string){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.string,received:t.parsedType}),l.INVALID}const t=new l.ParseStatus;let n;for(const o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("max"===o.kind)e.data.length>o.value&&(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),t.dirty());else if("length"===o.kind){const r=e.data.length>o.value,a=e.data.length<o.value;(r||a)&&(n=this._getOrReturnCtx(e,n),r?(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),t.dirty())}else if("email"===o.kind)w.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{validation:"email",code:c.ZodIssueCode.invalid_string,message:o.message}),t.dirty());else if("emoji"===o.kind)k||(k=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),k.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{validation:"emoji",code:c.ZodIssueCode.invalid_string,message:o.message}),t.dirty());else if("uuid"===o.kind)v.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{validation:"uuid",code:c.ZodIssueCode.invalid_string,message:o.message}),t.dirty());else if("nanoid"===o.kind)b.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{validation:"nanoid",code:c.ZodIssueCode.invalid_string,message:o.message}),t.dirty());else if("cuid"===o.kind)m.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{validation:"cuid",code:c.ZodIssueCode.invalid_string,message:o.message}),t.dirty());else if("cuid2"===o.kind)g.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{validation:"cuid2",code:c.ZodIssueCode.invalid_string,message:o.message}),t.dirty());else if("ulid"===o.kind)y.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{validation:"ulid",code:c.ZodIssueCode.invalid_string,message:o.message}),t.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(r){n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{validation:"url",code:c.ZodIssueCode.invalid_string,message:o.message}),t.dirty()}else if("regex"===o.kind){o.regex.lastIndex=0;o.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{validation:"regex",code:c.ZodIssueCode.invalid_string,message:o.message}),t.dirty())}else if("trim"===o.kind)e.data=e.data.trim();else if("includes"===o.kind)e.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),t.dirty());else if("toLowerCase"===o.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===o.kind)e.data=e.data.toUpperCase();else if("startsWith"===o.kind)e.data.startsWith(o.value)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.invalid_string,validation:{startsWith:o.value},message:o.message}),t.dirty());else if("endsWith"===o.kind)e.data.endsWith(o.value)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.invalid_string,validation:{endsWith:o.value},message:o.message}),t.dirty());else if("datetime"===o.kind){I(o).test(e.data)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.invalid_string,validation:"datetime",message:o.message}),t.dirty())}else if("date"===o.kind){E.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.invalid_string,validation:"date",message:o.message}),t.dirty())}else if("time"===o.kind){new RegExp(`^${z(o)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.invalid_string,validation:"time",message:o.message}),t.dirty())}else"duration"===o.kind?_.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{validation:"duration",code:c.ZodIssueCode.invalid_string,message:o.message}),t.dirty()):"ip"===o.kind?(r=e.data,("v4"!==(a=o.version)&&a||!x.test(r))&&("v6"!==a&&a||!S.test(r))&&(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{validation:"ip",code:c.ZodIssueCode.invalid_string,message:o.message}),t.dirty())):"base64"===o.kind?C.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{validation:"base64",code:c.ZodIssueCode.invalid_string,message:o.message}),t.dirty()):u.util.assertNever(o);var r,a;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:c.ZodIssueCode.invalid_string,...s.errorUtil.errToObj(n)})}_addCheck(e){return new P({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...s.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...s.errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...s.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...s.errorUtil.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...s.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...s.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...s.errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...s.errorUtil.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...s.errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...s.errorUtil.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...s.errorUtil.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...s.errorUtil.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...s.errorUtil.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...s.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...s.errorUtil.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...s.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...s.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...s.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...s.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...s.errorUtil.errToObj(t)})}nonempty(e){return this.min(1,s.errorUtil.errToObj(e))}trim(){return new P({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new P({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new P({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function j(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r;return parseInt(e.toFixed(a).replace(".",""))%parseInt(t.toFixed(a).replace(".",""))/Math.pow(10,a)}t.ZodString=P,P.create=e=>{var t;return new P({checks:[],typeName:ve.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...p(e)})};class N extends h{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==u.ZodParsedType.number){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.number,received:t.parsedType}),l.INVALID}let t;const n=new l.ParseStatus;for(const r of this._def.checks)if("int"===r.kind)u.util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty());else if("min"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else"multipleOf"===r.kind?0!==j(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.not_finite,message:r.message}),n.dirty()):u.util.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,s.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.errorUtil.toString(t))}setLimit(e,t,n,r){return new N({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:s.errorUtil.toString(r)}]})}_addCheck(e){return new N({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:s.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:s.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:s.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:s.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:s.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:s.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:s.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:s.errorUtil.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&u.util.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}t.ZodNumber=N,N.create=e=>new N({checks:[],typeName:ve.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...p(e)});class O extends h{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==u.ZodParsedType.bigint){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.bigint,received:t.parsedType}),l.INVALID}let t;const n=new l.ParseStatus;for(const r of this._def.checks)if("min"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):u.util.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,s.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.errorUtil.toString(t))}setLimit(e,t,n,r){return new O({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:s.errorUtil.toString(r)}]})}_addCheck(e){return new O({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:s.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:s.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:s.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:s.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.errorUtil.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}t.ZodBigInt=O,O.create=e=>{var t;return new O({checks:[],typeName:ve.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...p(e)})};class R extends h{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==u.ZodParsedType.boolean){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.boolean,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}t.ZodBoolean=R,R.create=e=>new R({typeName:ve.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...p(e)});class Z extends h{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==u.ZodParsedType.date){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.date,received:t.parsedType}),l.INVALID}if(isNaN(e.data.getTime())){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_date}),l.INVALID}const t=new l.ParseStatus;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),t.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):u.util.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:s.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:s.errorUtil.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}t.ZodDate=Z,Z.create=e=>new Z({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:ve.ZodDate,...p(e)});class A extends h{_parse(e){if(this._getType(e)!==u.ZodParsedType.symbol){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.symbol,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}t.ZodSymbol=A,A.create=e=>new A({typeName:ve.ZodSymbol,...p(e)});class L extends h{_parse(e){if(this._getType(e)!==u.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.undefined,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}t.ZodUndefined=L,L.create=e=>new L({typeName:ve.ZodUndefined,...p(e)});class D extends h{_parse(e){if(this._getType(e)!==u.ZodParsedType.null){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.null,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}t.ZodNull=D,D.create=e=>new D({typeName:ve.ZodNull,...p(e)});class M extends h{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,l.OK)(e.data)}}t.ZodAny=M,M.create=e=>new M({typeName:ve.ZodAny,...p(e)});class U extends h{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,l.OK)(e.data)}}t.ZodUnknown=U,U.create=e=>new U({typeName:ve.ZodUnknown,...p(e)});class F extends h{_parse(e){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.never,received:t.parsedType}),l.INVALID}}t.ZodNever=F,F.create=e=>new F({typeName:ve.ZodNever,...p(e)});class $ extends h{_parse(e){if(this._getType(e)!==u.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.void,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}t.ZodVoid=$,$.create=e=>new $({typeName:ve.ZodVoid,...p(e)});class V extends h{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==u.ZodParsedType.array)return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.array,received:t.parsedType}),l.INVALID;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,a=t.data.length<r.exactLength.value;(e||a)&&((0,l.addIssueToContext)(t,{code:e?c.ZodIssueCode.too_big:c.ZodIssueCode.too_small,minimum:a?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&((0,l.addIssueToContext)(t,{code:c.ZodIssueCode.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&((0,l.addIssueToContext)(t,{code:c.ZodIssueCode.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new d(t,e,t.path,n))))).then((e=>l.ParseStatus.mergeArray(n,e)));const a=[...t.data].map(((e,n)=>r.type._parseSync(new d(t,e,t.path,n))));return l.ParseStatus.mergeArray(n,a)}get element(){return this._def.type}min(e,t){return new V({...this._def,minLength:{value:e,message:s.errorUtil.toString(t)}})}max(e,t){return new V({...this._def,maxLength:{value:e,message:s.errorUtil.toString(t)}})}length(e,t){return new V({...this._def,exactLength:{value:e,message:s.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}function B(e){if(e instanceof W){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=ue.create(B(r))}return new W({...e._def,shape:()=>t})}return e instanceof V?new V({...e._def,type:B(e.element)}):e instanceof ue?ue.create(B(e.unwrap())):e instanceof ce?ce.create(B(e.unwrap())):e instanceof Y?Y.create(e.items.map((e=>B(e)))):e}t.ZodArray=V,V.create=(e,t)=>new V({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ve.ZodArray,...p(t)});class W extends h{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=u.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==u.ZodParsedType.object){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:t.parsedType}),l.INVALID}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof F&&"strip"===this._def.unknownKeys))for(const e in n.data)a.includes(e)||o.push(e);const i=[];for(const e of a){const t=r[e],a=n.data[e];i.push({key:{status:"valid",value:e},value:t._parse(new d(n,a,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof F){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of o)i.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)o.length>0&&((0,l.addIssueToContext)(n,{code:c.ZodIssueCode.unrecognized_keys,keys:o}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of o){const r=n.data[t];i.push({key:{status:"valid",value:t},value:e._parse(new d(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of i){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>l.ParseStatus.mergeObjectSync(t,e))):l.ParseStatus.mergeObjectSync(t,i)}get shape(){return this._def.shape()}strict(e){return s.errorUtil.errToObj,new W({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,a,o,i;const l=null!==(o=null===(a=(r=this._def).errorMap)||void 0===a?void 0:a.call(r,t,n).message)&&void 0!==o?o:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(i=s.errorUtil.errToObj(e).message)&&void 0!==i?i:l}:{message:l}}}:{}})}strip(){return new W({...this._def,unknownKeys:"strip"})}passthrough(){return new W({...this._def,unknownKeys:"passthrough"})}extend(e){return new W({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new W({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ve.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new W({...this._def,catchall:e})}pick(e){const t={};return u.util.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new W({...this._def,shape:()=>t})}omit(e){const t={};return u.util.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new W({...this._def,shape:()=>t})}deepPartial(){return B(this)}partial(e){const t={};return u.util.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new W({...this._def,shape:()=>t})}required(e){const t={};return u.util.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof ue;)e=e._def.innerType;t[n]=e}})),new W({...this._def,shape:()=>t})}keyof(){return ae(u.util.objectKeys(this.shape))}}t.ZodObject=W,W.create=(e,t)=>new W({shape:()=>e,unknownKeys:"strip",catchall:F.create(),typeName:ve.ZodObject,...p(t)}),W.strictCreate=(e,t)=>new W({shape:()=>e,unknownKeys:"strict",catchall:F.create(),typeName:ve.ZodObject,...p(t)}),W.lazycreate=(e,t)=>new W({shape:e,unknownKeys:"strip",catchall:F.create(),typeName:ve.ZodObject,...p(t)});class K extends h{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new c.ZodError(e.ctx.common.issues)));return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_union,unionErrors:n}),l.INVALID}));{let e;const r=[];for(const a of n){const n={...t,common:{...t.common,issues:[]},parent:null},o=a._parseSync({data:t.data,path:t.path,parent:n});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const a=r.map((e=>new c.ZodError(e)));return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_union,unionErrors:a}),l.INVALID}}get options(){return this._def.options}}t.ZodUnion=K,K.create=(e,t)=>new K({options:e,typeName:ve.ZodUnion,...p(t)});const q=e=>e instanceof ne?q(e.schema):e instanceof le?q(e.innerType()):e instanceof re?[e.value]:e instanceof oe?e.options:e instanceof ie?u.util.objectValues(e.enum):e instanceof de?q(e._def.innerType):e instanceof L?[void 0]:e instanceof D?[null]:e instanceof ue?[void 0,...q(e.unwrap())]:e instanceof ce?[null,...q(e.unwrap())]:e instanceof he||e instanceof ge?q(e.unwrap()):e instanceof fe?q(e._def.innerType):[];class H extends h{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.ZodParsedType.object)return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:t.parsedType}),l.INVALID;const n=this.discriminator,r=t.data[n],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):((0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),l.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const n of t){const t=q(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of t){if(r.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);r.set(a,n)}}return new H({typeName:ve.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...p(n)})}}function J(e,t){const n=(0,u.getParsedType)(e),r=(0,u.getParsedType)(t);if(e===t)return{valid:!0,data:e};if(n===u.ZodParsedType.object&&r===u.ZodParsedType.object){const n=u.util.objectKeys(t),r=u.util.objectKeys(e).filter((e=>-1!==n.indexOf(e))),a={...e,...t};for(const n of r){const r=J(e[n],t[n]);if(!r.valid)return{valid:!1};a[n]=r.data}return{valid:!0,data:a}}if(n===u.ZodParsedType.array&&r===u.ZodParsedType.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const a=J(e[r],t[r]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}return n===u.ZodParsedType.date&&r===u.ZodParsedType.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}t.ZodDiscriminatedUnion=H;class Q extends h{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if((0,l.isAborted)(e)||(0,l.isAborted)(r))return l.INVALID;const a=J(e.value,r.value);return a.valid?(((0,l.isDirty)(e)||(0,l.isDirty)(r))&&t.dirty(),{status:t.value,value:a.data}):((0,l.addIssueToContext)(n,{code:c.ZodIssueCode.invalid_intersection_types}),l.INVALID)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}t.ZodIntersection=Q,Q.create=(e,t,n)=>new Q({left:e,right:t,typeName:ve.ZodIntersection,...p(n)});class Y extends h{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==u.ZodParsedType.array)return(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.array,received:n.parsedType}),l.INVALID;if(n.data.length<this._def.items.length)return(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.INVALID;!this._def.rest&&n.data.length>this._def.items.length&&((0,l.addIssueToContext)(n,{code:c.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new d(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>l.ParseStatus.mergeArray(t,e))):l.ParseStatus.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new Y({...this._def,rest:e})}}t.ZodTuple=Y,Y.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Y({items:e,typeName:ve.ZodTuple,rest:null,...p(t)})};class G extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==u.ZodParsedType.object)return(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.object,received:n.parsedType}),l.INVALID;const r=[],a=this._def.keyType,o=this._def.valueType;for(const e in n.data)r.push({key:a._parse(new d(n,e,n.path,e)),value:o._parse(new d(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?l.ParseStatus.mergeObjectAsync(t,r):l.ParseStatus.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new G(t instanceof h?{keyType:e,valueType:t,typeName:ve.ZodRecord,...p(n)}:{keyType:P.create(),valueType:e,typeName:ve.ZodRecord,...p(t)})}}t.ZodRecord=G;class X extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==u.ZodParsedType.map)return(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.map,received:n.parsedType}),l.INVALID;const r=this._def.keyType,a=this._def.valueType,o=[...n.data.entries()].map((([e,t],o)=>({key:r._parse(new d(n,e,n.path,[o,"key"])),value:a._parse(new d(n,t,n.path,[o,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of o){const r=await n.key,a=await n.value;if("aborted"===r.status||"aborted"===a.status)return l.INVALID;"dirty"!==r.status&&"dirty"!==a.status||t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of o){const r=n.key,a=n.value;if("aborted"===r.status||"aborted"===a.status)return l.INVALID;"dirty"!==r.status&&"dirty"!==a.status||t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}}}t.ZodMap=X,X.create=(e,t,n)=>new X({valueType:t,keyType:e,typeName:ve.ZodMap,...p(n)});class ee extends h{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==u.ZodParsedType.set)return(0,l.addIssueToContext)(n,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.set,received:n.parsedType}),l.INVALID;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&((0,l.addIssueToContext)(n,{code:c.ZodIssueCode.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&((0,l.addIssueToContext)(n,{code:c.ZodIssueCode.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const a=this._def.valueType;function o(e){const n=new Set;for(const r of e){if("aborted"===r.status)return l.INVALID;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const i=[...n.data.values()].map(((e,t)=>a._parse(new d(n,e,n.path,t))));return n.common.async?Promise.all(i).then((e=>o(e))):o(i)}min(e,t){return new ee({...this._def,minSize:{value:e,message:s.errorUtil.toString(t)}})}max(e,t){return new ee({...this._def,maxSize:{value:e,message:s.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}t.ZodSet=ee,ee.create=(e,t)=>new ee({valueType:e,minSize:null,maxSize:null,typeName:ve.ZodSet,...p(t)});class te extends h{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.ZodParsedType.function)return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.function,received:t.parsedType}),l.INVALID;function n(e,n){return(0,l.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,i.getErrorMap)(),i.defaultErrorMap].filter((e=>!!e)),issueData:{code:c.ZodIssueCode.invalid_arguments,argumentsError:n}})}function r(e,n){return(0,l.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,i.getErrorMap)(),i.defaultErrorMap].filter((e=>!!e)),issueData:{code:c.ZodIssueCode.invalid_return_type,returnTypeError:n}})}const a={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof se){const e=this;return(0,l.OK)((async function(...t){const i=new c.ZodError([]),s=await e._def.args.parseAsync(t,a).catch((e=>{throw i.addIssue(n(t,e)),i})),l=await Reflect.apply(o,this,s);return await e._def.returns._def.type.parseAsync(l,a).catch((e=>{throw i.addIssue(r(l,e)),i}))}))}{const e=this;return(0,l.OK)((function(...t){const i=e._def.args.safeParse(t,a);if(!i.success)throw new c.ZodError([n(t,i.error)]);const s=Reflect.apply(o,this,i.data),l=e._def.returns.safeParse(s,a);if(!l.success)throw new c.ZodError([r(s,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new te({...this._def,args:Y.create(e).rest(U.create())})}returns(e){return new te({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new te({args:e||Y.create([]).rest(U.create()),returns:t||U.create(),typeName:ve.ZodFunction,...p(n)})}}t.ZodFunction=te;class ne extends h{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}t.ZodLazy=ne,ne.create=(e,t)=>new ne({getter:e,typeName:ve.ZodLazy,...p(t)});class re extends h{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{received:t.data,code:c.ZodIssueCode.invalid_literal,expected:this._def.value}),l.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ae(e,t){return new oe({values:e,typeName:ve.ZodEnum,...p(t)})}t.ZodLiteral=re,re.create=(e,t)=>new re({value:e,typeName:ve.ZodLiteral,...p(t)});class oe extends h{constructor(){super(...arguments),n.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return(0,l.addIssueToContext)(t,{expected:u.util.joinValues(n),received:t.parsedType,code:c.ZodIssueCode.invalid_type}),l.INVALID}if(a(this,n,"f")||o(this,n,new Set(this._def.values),"f"),!a(this,n,"f").has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return(0,l.addIssueToContext)(t,{received:t.data,code:c.ZodIssueCode.invalid_enum_value,options:n}),l.INVALID}return(0,l.OK)(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return oe.create(e,{...this._def,...t})}exclude(e,t=this._def){return oe.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}t.ZodEnum=oe,n=new WeakMap,oe.create=ae;class ie extends h{constructor(){super(...arguments),r.set(this,void 0)}_parse(e){const t=u.util.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==u.ZodParsedType.string&&n.parsedType!==u.ZodParsedType.number){const e=u.util.objectValues(t);return(0,l.addIssueToContext)(n,{expected:u.util.joinValues(e),received:n.parsedType,code:c.ZodIssueCode.invalid_type}),l.INVALID}if(a(this,r,"f")||o(this,r,new Set(u.util.getValidEnumValues(this._def.values)),"f"),!a(this,r,"f").has(e.data)){const e=u.util.objectValues(t);return(0,l.addIssueToContext)(n,{received:n.data,code:c.ZodIssueCode.invalid_enum_value,options:e}),l.INVALID}return(0,l.OK)(e.data)}get enum(){return this._def.values}}t.ZodNativeEnum=ie,r=new WeakMap,ie.create=(e,t)=>new ie({values:e,typeName:ve.ZodNativeEnum,...p(t)});class se extends h{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.ZodParsedType.promise&&!1===t.common.async)return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.promise,received:t.parsedType}),l.INVALID;const n=t.parsedType===u.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,l.OK)(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}t.ZodPromise=se,se.create=(e,t)=>new se({type:e,typeName:ve.ZodPromise,...p(t)});class le extends h{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ve.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,a={addIssue:e=>{(0,l.addIssueToContext)(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===r.type){const e=r.transform(n.data,a);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return l.INVALID;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?l.INVALID:"dirty"===r.status||"dirty"===t.value?(0,l.DIRTY)(r.value):r}));{if("aborted"===t.value)return l.INVALID;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?l.INVALID:"dirty"===r.status||"dirty"===t.value?(0,l.DIRTY)(r.value):r}}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,a);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?l.INVALID:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?l.INVALID:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!(0,l.isValid)(e))return e;const o=r.transform(e.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>(0,l.isValid)(e)?Promise.resolve(r.transform(e.value,a)).then((e=>({status:t.value,value:e}))):e))}u.util.assertNever(r)}}t.ZodEffects=le,t.ZodTransformer=le,le.create=(e,t,n)=>new le({schema:e,typeName:ve.ZodEffects,effect:t,...p(n)}),le.createWithPreprocess=(e,t,n)=>new le({schema:t,effect:{type:"preprocess",transform:e},typeName:ve.ZodEffects,...p(n)});class ue extends h{_parse(e){return this._getType(e)===u.ZodParsedType.undefined?(0,l.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodOptional=ue,ue.create=(e,t)=>new ue({innerType:e,typeName:ve.ZodOptional,...p(t)});class ce extends h{_parse(e){return this._getType(e)===u.ZodParsedType.null?(0,l.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodNullable=ce,ce.create=(e,t)=>new ce({innerType:e,typeName:ve.ZodNullable,...p(t)});class de extends h{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===u.ZodParsedType.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}t.ZodDefault=de,de.create=(e,t)=>new de({innerType:e,typeName:ve.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...p(t)});class fe extends h{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return(0,l.isAsync)(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new c.ZodError(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new c.ZodError(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}t.ZodCatch=fe,fe.create=(e,t)=>new fe({innerType:e,typeName:ve.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...p(t)});class pe extends h{_parse(e){if(this._getType(e)!==u.ZodParsedType.nan){const t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:c.ZodIssueCode.invalid_type,expected:u.ZodParsedType.nan,received:t.parsedType}),l.INVALID}return{status:"valid",value:e.data}}}t.ZodNaN=pe,pe.create=e=>new pe({typeName:ve.ZodNaN,...p(e)}),t.BRAND=Symbol("zod_brand");class he extends h{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}t.ZodBranded=he;class me extends h{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?l.INVALID:"dirty"===e.status?(t.dirty(),(0,l.DIRTY)(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?l.INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new me({in:e,out:t,typeName:ve.ZodPipeline})}}t.ZodPipeline=me;class ge extends h{_parse(e){const t=this._def.innerType._parse(e),n=e=>((0,l.isValid)(e)&&(e.value=Object.freeze(e.value)),e);return(0,l.isAsync)(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function ye(e,t={},n){return e?M.create().superRefine(((r,a)=>{var o,i;if(!e(r)){const e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(i=null!==(o=e.fatal)&&void 0!==o?o:n)||void 0===i||i,l="string"==typeof e?{message:e}:e;a.addIssue({code:"custom",...l,fatal:s})}})):M.create()}var ve;t.ZodReadonly=ge,ge.create=(e,t)=>new ge({innerType:e,typeName:ve.ZodReadonly,...p(t)}),t.custom=ye,t.late={object:W.lazycreate},function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(ve=t.ZodFirstPartyTypeKind||(t.ZodFirstPartyTypeKind={}));t.instanceof=(e,t={message:`Input not instance of ${e.name}`})=>ye((t=>t instanceof e),t);const be=P.create;t.string=be;const _e=N.create;t.number=_e;const we=pe.create;t.nan=we;const ke=O.create;t.bigint=ke;const xe=R.create;t.boolean=xe;const Se=Z.create;t.date=Se;const Ce=A.create;t.symbol=Ce;const Te=L.create;t.undefined=Te;const Ee=D.create;t.null=Ee;const ze=M.create;t.any=ze;const Ie=U.create;t.unknown=Ie;const Pe=F.create;t.never=Pe;const je=$.create;t.void=je;const Ne=V.create;t.array=Ne;const Re=W.create;t.object=Re;const Le=W.strictCreate;t.strictObject=Le;const De=K.create;t.union=De;const Me=H.create;t.discriminatedUnion=Me;const Ue=Q.create;t.intersection=Ue;const Fe=Y.create;t.tuple=Fe;const $e=G.create;t.record=$e;const Ve=X.create;t.map=Ve;const We=ee.create;t.set=We;const Ke=te.create;t.function=Ke;const He=ne.create;t.lazy=He;const Je=re.create;t.literal=Je;const Qe=oe.create;t.enum=Qe;const Ye=ie.create;t.nativeEnum=Ye;const Ge=se.create;t.promise=Ge;const Xe=le.create;t.effect=Xe,t.transformer=Xe;const et=ue.create;t.optional=et;const tt=ce.create;t.nullable=tt;const nt=le.createWithPreprocess;t.preprocess=nt;const rt=me.create;t.pipeline=rt;t.ostring=()=>be().optional();t.onumber=()=>_e().optional();t.oboolean=()=>xe().optional(),t.coerce={string:e=>P.create({...e,coerce:!0}),number:e=>N.create({...e,coerce:!0}),boolean:e=>R.create({...e,coerce:!0}),bigint:e=>O.create({...e,coerce:!0}),date:e=>Z.create({...e,coerce:!0})},t.NEVER=l.INVALID}(Ke),function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(Oe,t),r(Be,t),r(We,t),r(Ze,t),r(Ke,t),r(Ae,t)}(Ne),function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)"default"!==a&&Object.prototype.hasOwnProperty.call(e,a)&&n(t,e,a);return r(t,e),t},o=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;const i=a(Ne);t.z=i,o(Ne,t),t.default=i}(je),Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.accessTokenSchema=void 0;const He=je;Pe.accessTokenSchema=He.z.string().min(1);var Je={},Qe={},Ye={};Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.parseOAuthClientIdUrl=void 0,Ye.parseOAuthClientIdUrl=function(e){if(e.endsWith("/"))throw new TypeError("ClientID must not end with a trailing slash");const t=new URL(e);if("https:"!==t.protocol&&"http:"!==t.protocol)throw new TypeError('ClientID must use the "https:" or "http:" protocol');t.searchParams.sort();const n="/"===t.pathname?t.origin+t.search:t.href;if(n!==e)throw new TypeError(`ClientID must be in canonical form ("${n}", got "${e}")`);return t},Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.parseOAuthLoopbackClientId=Qe.isOAuthClientIdLoopback=void 0;const Ge=Ye;function Xe(e){const t=(0,Ge.parseOAuthClientIdUrl)(e);if("http:"!==t.protocol)throw new TypeError('Loopback ClientID must use the "http:" protocol');if("localhost"!==t.hostname)throw new TypeError('Loopback ClientID must use the "localhost" hostname');if(t.hash)throw new TypeError("Loopback ClientID must not contain a fragment");if(t.username||t.password)throw new TypeError("Loopback ClientID must not contain credentials");if(t.port)throw new TypeError("Loopback ClientID must not contain a port");if("/"!==t.pathname&&t.pathname.endsWith("/"))throw new TypeError("Loopback ClientID must not end with a trailing slash");if(t.pathname.includes("//"))throw new TypeError("Loopback ClientID must not contain any double slashes in its path");return t}Qe.isOAuthClientIdLoopback=function(e){try{return Xe(e),!0}catch{return!1}},Qe.parseOAuthLoopbackClientId=Xe,Object.defineProperty(Je,"__esModule",{value:!0}),Je.atprotoLoopbackClientMetadata=void 0;const et=Qe,tt=Ye;Je.atprotoLoopbackClientMetadata=function(e){if(!(0,et.isOAuthClientIdLoopback)(e))throw new TypeError(`Invalid loopback client ID ${e}`);const{origin:t,pathname:n,searchParams:r}=(0,tt.parseOAuthClientIdUrl)(e);return{client_id:e,client_name:"Loopback client",response_types:["code id_token","code"],grant_types:["authorization_code","implicit","refresh_token"],scope:"openid profile offline_access",redirect_uris:r.has("redirect_uri")?r.getAll("redirect_uri"):["127.0.0.1","[::1]"].map((e=>Object.assign(new URL(n,t),{hostname:e}).href)),token_endpoint_auth_method:"none",application_type:"native",dpop_bound_access_tokens:!0}};var nt={};Object.defineProperty(nt,"__esModule",{value:!0}),nt.parseOAuthDiscoverableClientId=nt.isOAuthClientIdDiscoverable=void 0;const rt=Ye,at=ze;function ot(e){const t=(0,rt.parseOAuthClientIdUrl)(e);if("localhost"===t.hostname)throw new TypeError("ClientID must not be a loopback hostname");if("https:"!==t.protocol)throw new TypeError('ClientID must use the "https:" protocol');if(t.hash)throw new TypeError("ClientID must not contain a fragment");if(t.username||t.password)throw new TypeError("ClientID must not contain credentials");if("/"===t.pathname)throw new TypeError('ClientID must contain a path (e.g. "/client-metadata")');if("/"!==t.pathname&&t.pathname.endsWith("/"))throw new TypeError("ClientID must not end with a trailing slash");if(t.pathname.includes("//"))throw new TypeError("ClientID must not contain any double slashes in its path");if((0,at.isIP)(t.hostname))throw new TypeError("ClientID must not be an IP address");return t}nt.isOAuthClientIdDiscoverable=function(e){try{return ot(e),!0}catch{return!1}},nt.parseOAuthDiscoverableClientId=ot;var it={},st={},lt={},ut={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.JwtVerifyError=e.JwtCreateError=e.JwkError=e.ERR_JWT_VERIFY=e.ERR_JWT_CREATE=e.ERR_JWT_INVALID=e.ERR_JWK_NOT_FOUND=e.ERR_JWK_INVALID=e.ERR_JWKS_NO_MATCHING_KEY=void 0,e.ERR_JWKS_NO_MATCHING_KEY="ERR_JWKS_NO_MATCHING_KEY",e.ERR_JWK_INVALID="ERR_JWK_INVALID",e.ERR_JWK_NOT_FOUND="ERR_JWK_NOT_FOUND",e.ERR_JWT_INVALID="ERR_JWT_INVALID",e.ERR_JWT_CREATE="ERR_JWT_CREATE",e.ERR_JWT_VERIFY="ERR_JWT_VERIFY";class t extends TypeError{constructor(t="JWK error",n=e.ERR_JWK_INVALID,r){super(t,r),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:n})}}e.JwkError=t;class n extends Error{constructor(t="Unable to create JWT",n=e.ERR_JWT_CREATE,r){super(t,r),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:n})}static from(e,r,a){return e instanceof n?e:new n(a,e instanceof t?e.code:r,{cause:e})}}e.JwtCreateError=n;class r extends Error{constructor(t="Invalid JWT",n=e.ERR_JWT_VERIFY,r){super(t,r),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:n})}static from(e,n,a){return e instanceof r?e:new r(a,e instanceof t?e.code:n,{cause:e})}}e.JwtVerifyError=r}(ut),Object.defineProperty(lt,"__esModule",{value:!0}),lt.jwkAlgorithms=void 0;const ct=ut,{process:dt}=globalThis,ft=void 0!==dt&&"string"==typeof dt?.versions?.node;lt.jwkAlgorithms=function*(e){if(e.alg)yield e.alg;else switch(e.kty){case"EC":if("enc"!==e.use&&void 0!==e.use||(yield"ECDH-ES",yield"ECDH-ES+A128KW",yield"ECDH-ES+A192KW",yield"ECDH-ES+A256KW"),"sig"===e.use||void 0===e.use){const t="crv"in e?e.crv:void 0;switch(t){case"P-256":case"P-384":yield`ES${t.slice(-3)}`;break;case"P-521":yield"ES512";break;case"secp256k1":ft&&(yield"ES256K");break;default:throw new ct.JwkError(`Unsupported crv "${t}"`)}}return;case"OKP":if(!e.use)throw new ct.JwkError('Missing "use" Parameter value');return yield"ECDH-ES",yield"ECDH-ES+A128KW",yield"ECDH-ES+A192KW",void(yield"ECDH-ES+A256KW");case"RSA":return"enc"!==e.use&&void 0!==e.use||(yield"RSA-OAEP",yield"RSA-OAEP-256",yield"RSA-OAEP-384",yield"RSA-OAEP-512",ft&&(yield"RSA1_5")),void("sig"!==e.use&&void 0!==e.use||(yield"PS256",yield"PS384",yield"PS512",yield"RS256",yield"RS384",yield"RS512"));case"oct":return"enc"!==e.use&&void 0!==e.use||(yield"A128GCMKW",yield"A192GCMKW",yield"A256GCMKW",yield"A128KW",yield"A192KW",yield"A256KW"),void("sig"!==e.use&&void 0!==e.use||(yield"HS256",yield"HS384",yield"HS512"));default:throw new ct.JwkError(`Unsupported kty "${e.kty}"`)}};var pt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.jwkPubSchema=e.jwkValidator=e.jwkSchema=e.jwkUnknownKeySchema=e.jwkSymKeySchema=e.jwkOkpKeySchema=e.jwkEcSecp256k1KeySchema=e.jwkEcKeySchema=e.jwkRsaKeySchema=e.jwkBaseSchema=e.keyUsageSchema=void 0;const t=je;e.keyUsageSchema=t.z.enum(["sign","verify","encrypt","decrypt","wrapKey","unwrapKey","deriveKey","deriveBits"]),e.jwkBaseSchema=t.z.object({kty:t.z.string().min(1),alg:t.z.string().min(1).optional(),kid:t.z.string().min(1).optional(),ext:t.z.boolean().optional(),use:t.z.enum(["sig","enc"]).optional(),key_ops:t.z.array(e.keyUsageSchema).optional(),x5c:t.z.array(t.z.string()).optional(),x5t:t.z.string().min(1).optional(),"x5t#S256":t.z.string().min(1).optional(),x5u:t.z.string().url().optional()}),e.jwkRsaKeySchema=e.jwkBaseSchema.extend({kty:t.z.literal("RSA"),alg:t.z.enum(["RS256","RS384","RS512","PS256","PS384","PS512"]).optional(),n:t.z.string().min(1),e:t.z.string().min(1),d:t.z.string().min(1).optional(),p:t.z.string().min(1).optional(),q:t.z.string().min(1).optional(),dp:t.z.string().min(1).optional(),dq:t.z.string().min(1).optional(),qi:t.z.string().min(1).optional(),oth:t.z.array(t.z.object({r:t.z.string().optional(),d:t.z.string().optional(),t:t.z.string().optional()})).nonempty().optional()}),e.jwkEcKeySchema=e.jwkBaseSchema.extend({kty:t.z.literal("EC"),alg:t.z.enum(["ES256","ES384","ES512"]).optional(),crv:t.z.enum(["P-256","P-384","P-521"]),x:t.z.string().min(1),y:t.z.string().min(1),d:t.z.string().min(1).optional()}),e.jwkEcSecp256k1KeySchema=e.jwkBaseSchema.extend({kty:t.z.literal("EC"),alg:t.z.enum(["ES256K"]).optional(),crv:t.z.enum(["secp256k1"]),x:t.z.string().min(1),y:t.z.string().min(1),d:t.z.string().min(1).optional()}),e.jwkOkpKeySchema=e.jwkBaseSchema.extend({kty:t.z.literal("OKP"),alg:t.z.enum(["EdDSA"]).optional(),crv:t.z.enum(["Ed25519","Ed448"]),x:t.z.string().min(1),d:t.z.string().min(1).optional()}),e.jwkSymKeySchema=e.jwkBaseSchema.extend({kty:t.z.literal("oct"),alg:t.z.enum(["HS256","HS384","HS512"]).optional(),k:t.z.string()}),e.jwkUnknownKeySchema=e.jwkBaseSchema.extend({kty:t.z.string().refine((e=>"RSA"!==e&&"EC"!==e&&"OKP"!==e&&"oct"!==e))}),e.jwkSchema=t.z.union([e.jwkUnknownKeySchema,e.jwkRsaKeySchema,e.jwkEcKeySchema,e.jwkEcSecp256k1KeySchema,e.jwkOkpKeySchema,e.jwkSymKeySchema]),e.jwkValidator=e.jwkSchema.refine((e=>null!=e.use||null!=e.key_ops),"use or key_ops required").refine((e=>!e.use||!e.key_ops||e.key_ops.every((t=>"sig"===e.use?"sign"===t||"verify"===t:"encrypt"===t||"decrypt"===t))),"use and key_ops must be consistent"),e.jwkPubSchema=e.jwkValidator.refine((e=>null!=e.kid),"kid is required").refine((e=>!("k"in e)&&!("d"in e)),"private key not allowed")}(pt);var ht={};Object.defineProperty(ht,"__esModule",{value:!0}),ht.jwksPubSchema=ht.jwksSchema=void 0;const mt=je,gt=pt;ht.jwksSchema=mt.z.object({keys:mt.z.array(gt.jwkSchema)}),ht.jwksPubSchema=mt.z.object({keys:mt.z.array(gt.jwkPubSchema)});var yt={},vt={},bt={};class _t{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class wt{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return xt(this,e)}}class kt{constructor(e){this.decoders=e}or(e){return xt(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const xt=(e,t)=>new kt({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class St{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new _t(e,t,n),this.decoder=new wt(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const Ct=({name:e,prefix:t,bitsPerChar:n,alphabet:r})=>(({name:e,prefix:t,encode:n,decode:r})=>new St(e,t,n,r))({prefix:t,name:e,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],a=(1<<n)-1;let o="",i=0,s=0;for(let r=0;r<e.length;++r)for(s=s<<8|e[r],i+=8;i>n;)i-=n,o+=t[a&s>>i];if(i&&(o+=t[a&s<<n-i]),r)for(;o.length*n&7;)o+="=";return o})(e,r,n),decode:t=>((e,t,n,r)=>{const a={};for(let e=0;e<t.length;++e)a[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;const i=new Uint8Array(o*n/8|0);let s=0,l=0,u=0;for(let t=0;t<o;++t){const o=a[e[t]];if(void 0===o)throw new SyntaxError(`Non-${r} character`);l=l<<n|o,s+=n,s>=8&&(s-=8,i[u++]=255&l>>s)}if(s>=n||255&l<<8-s)throw new SyntaxError("Unexpected end of data");return i})(t,r,n,e)}),Tt=Ct({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Et=Ct({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),zt=Ct({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),It=Ct({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Pt=t(Object.freeze({__proto__:null,base64:Tt,base64pad:Et,base64url:zt,base64urlpad:It}));Object.defineProperty(bt,"__esModule",{value:!0}),bt.segmentedStringRefinementFactory=bt.jwtCharsRefinement=bt.parseB64uJson=bt.cachedGetter=bt.matchesAny=bt.preferredOrderCmp=bt.isDefined=void 0;const jt=Pt,Nt=je;bt.isDefined=e=>void 0!==e;bt.preferredOrderCmp=e=>(t,n)=>{const r=e.indexOf(t),a=e.indexOf(n);return r===a?0:-1===r?1:-1===a?-1:r-a},bt.matchesAny=function(e){return null==e?e=>!0:Array.isArray(e)?t=>e.includes(t):t=>t===e};bt.cachedGetter=(e,t)=>function(){const t=e.call(this);return Object.defineProperty(this,e.name,{get:()=>t,enumerable:!0,configurable:!0}),t};const Ot=new TextDecoder;bt.parseB64uJson=function(e){const t=jt.base64url.baseDecode(e),n=Ot.decode(t);return JSON.parse(n)};bt.jwtCharsRefinement=(e,t)=>{let n;for(let r=0;r<e.length;r++)if(n=e.charCodeAt(r),!(65<=n&&n<=90||97<=n&&n<=122||48<=n&&n<=57||45===n||95===n||46===n)){const n=String.fromCodePoint(e.codePointAt(r));return t.addIssue({code:Nt.ZodIssueCode.custom,message:`Invalid character "${n}" in JWT at position ${r}`})}};bt.segmentedStringRefinementFactory=(e,t=2)=>{if(!Number.isFinite(e)||e<1||(0|e)!==e)throw new TypeError(`Count must be a natural number (got ${e})`);const n=e*t+(e-1),r="Invalid JWT format";return(a,o)=>{if(a.length<n)return o.addIssue({code:Nt.ZodIssueCode.custom,message:`${r}: too short`}),!1;let i=0;for(let n=0;n<e-1;n++){const s=a.indexOf(".",i);if(-1===s)return o.addIssue({code:Nt.ZodIssueCode.custom,message:`${r}: expected ${e} segments, got ${n+1}`}),!1;if(s-i<t)return o.addIssue({code:Nt.ZodIssueCode.custom,message:`${r}: segment ${n+1} is too short`}),!1;i=s+1}return-1!==a.indexOf(".",i)?(o.addIssue({code:Nt.ZodIssueCode.custom,message:`${r}: too many segments`}),!1):!(a.length-i<t)||(o.addIssue({code:Nt.ZodIssueCode.custom,message:`${r}: last segment is too short`}),!1)}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.jwtPayloadSchema=e.jwtHeaderSchema=e.isUnsignedJwt=e.unsignedJwtSchema=e.isSignedJwt=e.signedJwtSchema=void 0;const t=je,n=pt,r=bt;e.signedJwtSchema=t.z.string().superRefine(r.jwtCharsRefinement).superRefine((0,r.segmentedStringRefinementFactory)(3));e.isSignedJwt=t=>e.signedJwtSchema.safeParse(t).success,e.unsignedJwtSchema=t.z.string().superRefine(r.jwtCharsRefinement).superRefine((0,r.segmentedStringRefinementFactory)(2));e.isUnsignedJwt=t=>e.unsignedJwtSchema.safeParse(t).success,e.jwtHeaderSchema=t.z.object({alg:t.z.string(),jku:t.z.string().url().optional(),jwk:t.z.object({kty:t.z.string(),crv:t.z.string().optional(),x:t.z.string().optional(),y:t.z.string().optional(),e:t.z.string().optional(),n:t.z.string().optional()}).optional(),kid:t.z.string().optional(),x5u:t.z.string().optional(),x5c:t.z.array(t.z.string()).optional(),x5t:t.z.string().optional(),"x5t#S256":t.z.string().optional(),typ:t.z.string().optional(),cty:t.z.string().optional(),crit:t.z.array(t.z.string()).optional()}),e.jwtPayloadSchema=t.z.object({iss:t.z.string().optional(),aud:t.z.union([t.z.string(),t.z.array(t.z.string()).nonempty()]).optional(),sub:t.z.string().optional(),exp:t.z.number().int().optional(),nbf:t.z.number().int().optional(),iat:t.z.number().int().optional(),jti:t.z.string().optional(),htm:t.z.string().optional(),htu:t.z.string().optional(),ath:t.z.string().optional(),acr:t.z.string().optional(),azp:t.z.string().optional(),amr:t.z.array(t.z.string()).optional(),cnf:t.z.object({kid:t.z.string().optional(),jwk:n.jwkPubSchema.optional(),jwe:t.z.string().optional(),jku:t.z.string().url().optional(),jkt:t.z.string().optional(),"x5t#S256":t.z.string().optional(),osc:t.z.string().optional()}).optional(),client_id:t.z.string().optional(),scope:t.z.string().optional(),nonce:t.z.string().optional(),at_hash:t.z.string().optional(),c_hash:t.z.string().optional(),s_hash:t.z.string().optional(),auth_time:t.z.number().int().optional(),name:t.z.string().optional(),family_name:t.z.string().optional(),given_name:t.z.string().optional(),middle_name:t.z.string().optional(),nickname:t.z.string().optional(),preferred_username:t.z.string().optional(),gender:t.z.string().optional(),picture:t.z.string().url().optional(),profile:t.z.string().url().optional(),website:t.z.string().url().optional(),birthdate:t.z.string().regex(/\d{4}-\d{2}-\d{2}/).optional(),zoneinfo:t.z.string().regex(/^[A-Za-z0-9_/]+$/).optional(),locale:t.z.string().regex(/^[a-z]{2}(-[A-Z]{2})?$/).optional(),updated_at:t.z.number().int().optional(),email:t.z.string().optional(),email_verified:t.z.boolean().optional(),phone_number:t.z.string().optional(),phone_number_verified:t.z.boolean().optional(),address:t.z.object({formatted:t.z.string().optional(),street_address:t.z.string().optional(),locality:t.z.string().optional(),region:t.z.string().optional(),postal_code:t.z.string().optional(),country:t.z.string().optional()}).optional(),authorization_details:t.z.array(t.z.object({type:t.z.string(),locations:t.z.array(t.z.string()).optional(),actions:t.z.array(t.z.string()).optional(),datatypes:t.z.array(t.z.string()).optional(),identifier:t.z.string().optional(),privileges:t.z.array(t.z.string()).optional()}).passthrough()).optional()})}(vt),Object.defineProperty(yt,"__esModule",{value:!0}),yt.unsafeDecodeJwt=void 0;const Rt=ut,Zt=vt,At=bt;yt.unsafeDecodeJwt=function(e){const{0:t,1:n,length:r}=e.split(".");if(r>3||r<2)throw new Rt.JwtVerifyError(void 0,Rt.ERR_JWT_INVALID);const a=Zt.jwtHeaderSchema.parse((0,At.parseB64uJson)(t));if(2===r&&"none"!==a?.alg)throw new Rt.JwtVerifyError(void 0,Rt.ERR_JWT_INVALID);return{header:a,payload:Zt.jwtPayloadSchema.parse((0,At.parseB64uJson)(n))}};var Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});var Dt={},Mt=e&&e.__runInitializers||function(e,t,n){for(var r=arguments.length>2,a=0;a<t.length;a++)n=r?t[a].call(e,n):t[a].call(e);return r?n:void 0},Ut=e&&e.__esDecorate||function(e,t,n,r,a,o){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?r.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(i(e||null))};var g=(0,n[p])("accessor"===l?{get:d.get,set:d.set}:d[u],h);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=i(g.get))&&(d.get=s),(s=i(g.set))&&(d.set=s),(s=i(g.init))&&a.unshift(s)}else(s=i(g))&&("field"===l?a.unshift(s):d[u]=s)}c&&Object.defineProperty(c,r.name,d),f=!0};Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.Key=void 0;const Ft=lt,$t=ut,Vt=pt,Bt=bt;let Wt=(()=>{var e;let t,n,r,a=[];return e=class{constructor(e){if(Object.defineProperty(this,"jwk",{enumerable:!0,configurable:!0,writable:!0,value:(Mt(this,a),e)}),!e.use)throw new $t.JwkError('Missing "use" Parameter value')}get isPrivate(){const{jwk:e}=this;return"d"in e&&void 0!==e.d||"k"in e&&void 0!==e.k}get isSymetric(){const{jwk:e}=this;return"k"in e&&void 0!==e.k}get privateJwk(){return this.isPrivate?this.jwk:void 0}get publicJwk(){if(!this.isSymetric){if(this.isPrivate){const{d:e,...t}=this.jwk;return t}return this.jwk}}get bareJwk(){if(this.isSymetric)return;const{kty:e,crv:t,e:n,n:r,x:a,y:o}=this.jwk;return Vt.jwkSchema.parse({crv:t,e:n,kty:e,n:r,x:a,y:o})}get use(){return this.jwk.use}get alg(){return this.jwk.alg}get kid(){return this.jwk.kid}get crv(){return this.jwk.crv}get algorithms(){return Array.from((0,Ft.jwkAlgorithms)(this.jwk))}},(()=>{const o="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;t=[Bt.cachedGetter],n=[Bt.cachedGetter],r=[Bt.cachedGetter],Ut(e,null,t,{kind:"getter",name:"publicJwk",static:!1,private:!1,access:{has:e=>"publicJwk"in e,get:e=>e.publicJwk},metadata:o},null,a),Ut(e,null,n,{kind:"getter",name:"bareJwk",static:!1,private:!1,access:{has:e=>"bareJwk"in e,get:e=>e.bareJwk},metadata:o},null,a),Ut(e,null,r,{kind:"getter",name:"algorithms",static:!1,private:!1,access:{has:e=>"algorithms"in e,get:e=>e.algorithms},metadata:o},null,a),o&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})})(),e})();Dt.Key=Wt;var Kt={},qt=e&&e.__runInitializers||function(e,t,n){for(var r=arguments.length>2,a=0;a<t.length;a++)n=r?t[a].call(e,n):t[a].call(e);return r?n:void 0},Ht=e&&e.__esDecorate||function(e,t,n,r,a,o){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?r.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(i(e||null))};var g=(0,n[p])("accessor"===l?{get:d.get,set:d.set}:d[u],h);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=i(g.get))&&(d.get=s),(s=i(g.set))&&(d.set=s),(s=i(g.init))&&a.unshift(s)}else(s=i(g))&&("field"===l?a.unshift(s):d[u]=s)}c&&Object.defineProperty(c,r.name,d),f=!0};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.Keyset=void 0;const Jt=ut,Qt=yt,Yt=bt,Gt=e=>e.privateJwk,Xt=e=>e.publicJwk;let en=(()=>{var e;let t,n,r,a=[];return e=class{constructor(t,n=(t instanceof e?[...t.preferredSigningAlgorithms]:["EdDSA","ES256K","ES256","PS256","PS384","PS512","HS256","HS384","HS512"])){Object.defineProperty(this,"preferredSigningAlgorithms",{enumerable:!0,configurable:!0,writable:!0,value:(qt(this,a),n)}),Object.defineProperty(this,"keys",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const r=[],o=new Set;for(const e of t)if(e&&(r.push(e),e.kid)){if(o.has(e.kid))throw new Jt.JwkError(`Duplicate key: ${e.kid}`);o.add(e.kid)}this.keys=Object.freeze(r)}get size(){return this.keys.length}get signAlgorithms(){const e=new Set;for(const t of this)if("sig"===t.use)for(const n of t.algorithms)e.add(n);return Object.freeze([...e].sort((0,Yt.preferredOrderCmp)(this.preferredSigningAlgorithms)))}get publicJwks(){return{keys:Array.from(this,Xt).filter(Yt.isDefined)}}get privateJwks(){return{keys:Array.from(this,Gt).filter(Yt.isDefined)}}has(e){return this.keys.some((t=>t.kid===e))}get(e){for(const t of this.list(e))return t;throw new Jt.JwkError(`Key not found ${e.kid||e.alg||"<unknown>"}`,Jt.ERR_JWK_NOT_FOUND)}*list(e){if(0!==e.kid?.length&&0!==e.alg?.length)for(const t of this)if(!e.use||t.use===e.use){if(Array.isArray(e.kid)){if(!t.kid||!e.kid.includes(t.kid))continue}else if(e.kid&&t.kid!==e.kid)continue;if(Array.isArray(e.alg)){if(!e.alg.some((e=>t.algorithms.includes(e))))continue}else if("string"==typeof e.alg&&!t.algorithms.includes(e.alg))continue;yield t}}findKey({kid:e,alg:t,use:n}){const r=[];for(const a of this.list({kid:e,alg:t,use:n}))if(a.isPrivate){if("string"==typeof t)return[a,t];r.push(a)}const a=(0,Yt.matchesAny)(t),o=r.map((e=>[e,e.algorithms.filter(a)]));for(const e of this.preferredSigningAlgorithms)for(const[t,n]of o)if(n.includes(e))return[t,e];for(const[e,t]of o)for(const n of t)return[e,n];throw new Jt.JwkError(`No singing key found for ${e||t||n||"<unknown>"}`,Jt.ERR_JWK_NOT_FOUND)}[(t=[Yt.cachedGetter],n=[Yt.cachedGetter],r=[Yt.cachedGetter],Symbol.iterator)](){return this.keys.values()}async createJwt({alg:e,kid:t,...n},r){try{const[a,o]=this.findKey({alg:e,kid:t,use:"sig"}),i={...n,alg:o,kid:a.kid};return"function"==typeof r&&(r=await r(i,a)),await a.createJwt(i,r)}catch(e){throw Jt.JwtCreateError.from(e)}}async verifyJwt(e,t){const{header:n}=(0,Qt.unsafeDecodeJwt)(e),{kid:r,alg:a}=n,o=[];for(const n of this.list({kid:r,alg:a}))try{return{...await n.verifyJwt(e,t),key:n}}catch(e){o.push(e)}switch(o.length){case 0:throw new Jt.JwtVerifyError("No key matched",Jt.ERR_JWKS_NO_MATCHING_KEY);case 1:throw Jt.JwtVerifyError.from(o[0],Jt.ERR_JWT_INVALID);default:throw Jt.JwtVerifyError.from(o,Jt.ERR_JWT_INVALID)}}toJSON(){return structuredClone(this.publicJwks)}},(()=>{const o="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;Ht(e,null,t,{kind:"getter",name:"signAlgorithms",static:!1,private:!1,access:{has:e=>"signAlgorithms"in e,get:e=>e.signAlgorithms},metadata:o},null,a),Ht(e,null,n,{kind:"getter",name:"publicJwks",static:!1,private:!1,access:{has:e=>"publicJwks"in e,get:e=>e.publicJwks},metadata:o},null,a),Ht(e,null,r,{kind:"getter",name:"privateJwks",static:!1,private:!1,access:{has:e=>"privateJwks"in e,get:e=>e.privateJwks},metadata:o},null,a),o&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})})(),e})();Kt.Keyset=en,function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(lt,t),r(ut,t),r(pt,t),r(ht,t),r(yt,t),r(Lt,t),r(vt,t),r(Dt,t),r(Kt,t),r(bt,t)}(st);var tn={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.oauthAuthorizationDetailsSchema=e.oauthAuthorizationDetailSchema=void 0;const t=je;e.oauthAuthorizationDetailSchema=t.z.object({type:t.z.string(),locations:t.z.array(t.z.string().url()).optional(),actions:t.z.array(t.z.string()).optional(),datatypes:t.z.array(t.z.string()).optional(),identifier:t.z.string().optional(),privileges:t.z.array(t.z.string()).optional()}),e.oauthAuthorizationDetailsSchema=t.z.array(e.oauthAuthorizationDetailSchema)}(tn);var nn={};Object.defineProperty(nn,"__esModule",{value:!0}),nn.oauthClientIdSchema=void 0;const rn=je;nn.oauthClientIdSchema=rn.z.string().min(1);var an={};Object.defineProperty(an,"__esModule",{value:!0}),an.oidcClaimsParameterSchema=void 0;const on=je;an.oidcClaimsParameterSchema=on.z.enum(["auth_time","nonce","acr","name","family_name","given_name","middle_name","nickname","preferred_username","gender","picture","profile","website","birthdate","zoneinfo","locale","updated_at","email","email_verified","phone_number","phone_number_verified","address"]);var sn={};Object.defineProperty(sn,"__esModule",{value:!0}),sn.oidcClaimsPropertiesSchema=void 0;const ln=je,un=ln.z.union([ln.z.string(),ln.z.number(),ln.z.boolean()]);sn.oidcClaimsPropertiesSchema=ln.z.object({essential:ln.z.boolean().optional(),value:un.optional(),values:ln.z.array(un).optional()});var cn={};Object.defineProperty(cn,"__esModule",{value:!0}),cn.oidcEntityTypeSchema=void 0;const dn=je;cn.oidcEntityTypeSchema=dn.z.enum(["userinfo","id_token"]),Object.defineProperty(it,"__esModule",{value:!0}),it.oauthAuthenticationRequestParametersSchema=void 0;const fn=st,pn=je,hn=tn,mn=nn,gn=an,yn=sn,vn=cn;it.oauthAuthenticationRequestParametersSchema=pn.z.object({client_id:mn.oauthClientIdSchema,state:pn.z.string().optional(),nonce:pn.z.string().optional(),dpop_jkt:pn.z.string().optional(),response_type:pn.z.enum(["code","token","id_token","none","code token","code id_token","id_token token","code id_token token"]),response_mode:pn.z.enum(["query","fragment","form_post"]).optional(),code_challenge:pn.z.string().optional(),code_challenge_method:pn.z.enum(["S256","plain"]).default("S256").optional(),redirect_uri:pn.z.string().url().optional(),scope:pn.z.string().regex(/^[a-zA-Z0-9_]+( [a-zA-Z0-9_]+)*$/).optional(),max_age:pn.z.number().int().min(0).optional(),claims:pn.z.record(vn.oidcEntityTypeSchema,pn.z.record(gn.oidcClaimsParameterSchema,pn.z.union([pn.z.literal(null),yn.oidcClaimsPropertiesSchema]))).optional(),login_hint:pn.z.string().min(1).optional(),ui_locales:pn.z.string().regex(/^[a-z]{2}(-[A-Z]{2})?( [a-z]{2}(-[A-Z]{2})?)*$/).optional(),id_token_hint:fn.signedJwtSchema.optional(),display:pn.z.enum(["page","popup","touch"]).optional(),prompt:pn.z.enum(["none","login","consent","select_account"]).optional(),authorization_details:hn.oauthAuthorizationDetailsSchema.optional()});var bn={},_n={};Object.defineProperty(_n,"__esModule",{value:!0}),_n.oauthIssuerIdentifierSchema=void 0;const wn=je,kn=(()=>{try{const e="production";return"development"===e||"test"===e}catch{return!1}})();_n.oauthIssuerIdentifierSchema=wn.z.string().url().superRefine(((e,t)=>{e.endsWith("/")&&t.addIssue({code:wn.z.ZodIssueCode.custom,message:"Issuer URL must not end with a slash"});const n=new URL(e);"https:"!==n.protocol&&(kn&&"http:"===n.protocol||t.addIssue({code:wn.z.ZodIssueCode.custom,message:"Issuer must be an HTTPS URL"})),(n.username||n.password)&&t.addIssue({code:wn.z.ZodIssueCode.custom,message:"Issuer URL must not contain a username or password"}),(n.hash||n.search)&&t.addIssue({code:wn.z.ZodIssueCode.custom,message:"Issuer URL must not contain a query or fragment"});e!==("/"===n.pathname?n.origin:n.href)&&t.addIssue({code:wn.z.ZodIssueCode.custom,message:"Issuer URL must be in the canonical form"})})),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.oauthAuthorizationServerMetadataValidator=e.oauthAuthorizationServerMetadataSchema=void 0;const t=je,n=_n;e.oauthAuthorizationServerMetadataSchema=t.z.object({issuer:n.oauthIssuerIdentifierSchema,claims_supported:t.z.array(t.z.string()).optional(),claims_locales_supported:t.z.array(t.z.string()).optional(),claims_parameter_supported:t.z.boolean().optional(),request_parameter_supported:t.z.boolean().optional(),request_uri_parameter_supported:t.z.boolean().optional(),require_request_uri_registration:t.z.boolean().optional(),scopes_supported:t.z.array(t.z.string()).optional(),subject_types_supported:t.z.array(t.z.string()).optional(),response_types_supported:t.z.array(t.z.string()).optional(),response_modes_supported:t.z.array(t.z.string()).optional(),grant_types_supported:t.z.array(t.z.string()).optional(),code_challenge_methods_supported:t.z.array(t.z.string()).min(1).optional(),ui_locales_supported:t.z.array(t.z.string()).optional(),id_token_signing_alg_values_supported:t.z.array(t.z.string()).optional(),display_values_supported:t.z.array(t.z.string()).optional(),request_object_signing_alg_values_supported:t.z.array(t.z.string()).optional(),authorization_response_iss_parameter_supported:t.z.boolean().optional(),authorization_details_types_supported:t.z.array(t.z.string()).optional(),request_object_encryption_alg_values_supported:t.z.array(t.z.string()).optional(),request_object_encryption_enc_values_supported:t.z.array(t.z.string()).optional(),jwks_uri:t.z.string().url().optional(),authorization_endpoint:t.z.string().url(),token_endpoint:t.z.string().url(),token_endpoint_auth_methods_supported:t.z.array(t.z.string()).optional(),token_endpoint_auth_signing_alg_values_supported:t.z.array(t.z.string()).optional(),revocation_endpoint:t.z.string().url().optional(),revocation_endpoint_auth_methods_supported:t.z.array(t.z.string()).optional(),revocation_endpoint_auth_signing_alg_values_supported:t.z.array(t.z.string()).optional(),introspection_endpoint:t.z.string().url().optional(),introspection_endpoint_auth_methods_supported:t.z.array(t.z.string()).optional(),introspection_endpoint_auth_signing_alg_values_supported:t.z.array(t.z.string()).optional(),pushed_authorization_request_endpoint:t.z.string().url().optional(),pushed_authorization_request_endpoint_auth_methods_supported:t.z.array(t.z.string()).optional(),pushed_authorization_request_endpoint_auth_signing_alg_values_supported:t.z.array(t.z.string()).optional(),require_pushed_authorization_requests:t.z.boolean().optional(),userinfo_endpoint:t.z.string().url().optional(),end_session_endpoint:t.z.string().url().optional(),registration_endpoint:t.z.string().url().optional(),dpop_signing_alg_values_supported:t.z.array(t.z.string()).optional(),protected_resources:t.z.array(t.z.string().url()).optional(),client_id_metadata_document_supported:t.z.boolean().optional()}),e.oauthAuthorizationServerMetadataValidator=e.oauthAuthorizationServerMetadataSchema.superRefine(((e,n)=>{e.require_pushed_authorization_requests&&!e.pushed_authorization_request_endpoint&&n.addIssue({code:t.z.ZodIssueCode.custom,message:'"pushed_authorization_request_endpoint" required when "require_pushed_authorization_requests" is true'})})).superRefine(((e,n)=>{e.response_types_supported&&(e.response_types_supported.includes("code")||n.addIssue({code:t.z.ZodIssueCode.custom,message:'Response type "code" is required'}))}))}(bn);var xn={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.oauthClientCredentialsSchema=e.oauthClientCredentialsSecretPostSchema=e.oauthClientCredentialsJwtBearerSchema=void 0;const t=je,n=st,r=nn,a=Ee;e.oauthClientCredentialsJwtBearerSchema=t.z.object({client_id:r.oauthClientIdSchema,client_assertion_type:t.z.literal(a.CLIENT_ASSERTION_TYPE_JWT_BEARER),client_assertion:n.signedJwtSchema}),e.oauthClientCredentialsSecretPostSchema=t.z.object({client_id:r.oauthClientIdSchema,client_secret:t.z.string()}),e.oauthClientCredentialsSchema=t.z.union([e.oauthClientCredentialsJwtBearerSchema,e.oauthClientCredentialsSecretPostSchema])}(xn);var Sn={};Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.oauthClientIdentificationSchema=void 0;const Cn=je,Tn=nn,En=xn;Sn.oauthClientIdentificationSchema=Cn.z.union([En.oauthClientCredentialsSchema,Cn.z.object({client_id:Tn.oauthClientIdSchema})]);var zn={},In={};Object.defineProperty(In,"__esModule",{value:!0}),In.oauthEndpointAuthMethod=void 0;const Pn=je;In.oauthEndpointAuthMethod=Pn.z.enum(["client_secret_basic","client_secret_jwt","client_secret_post","none","private_key_jwt","self_signed_tls_client_auth","tls_client_auth"]);var jn={};Object.defineProperty(jn,"__esModule",{value:!0}),jn.oauthGrantTypeSchema=void 0;const Nn=je;jn.oauthGrantTypeSchema=Nn.z.enum(["authorization_code","implicit","refresh_token","password","client_credentials","urn:ietf:params:oauth:grant-type:jwt-bearer","urn:ietf:params:oauth:grant-type:saml2-bearer"]);var On={};Object.defineProperty(On,"__esModule",{value:!0}),On.oauthResponseTypeSchema=void 0;const Rn=je;On.oauthResponseTypeSchema=Rn.z.enum(["code","token","none","code id_token token","code id_token","code token","id_token token","id_token"]),Object.defineProperty(zn,"__esModule",{value:!0}),zn.oauthClientMetadataSchema=void 0;const Zn=st,An=je,Ln=nn,Dn=In,Mn=jn,Un=On;zn.oauthClientMetadataSchema=An.z.object({redirect_uris:An.z.array(An.z.string().url()).nonempty(),response_types:An.z.array(Un.oauthResponseTypeSchema).nonempty().default(["code"]),grant_types:An.z.array(Mn.oauthGrantTypeSchema).nonempty().default(["authorization_code"]),scope:An.z.string().optional(),token_endpoint_auth_method:Dn.oauthEndpointAuthMethod.default("none").optional(),token_endpoint_auth_signing_alg:An.z.string().optional(),introspection_endpoint_auth_method:Dn.oauthEndpointAuthMethod.optional(),introspection_endpoint_auth_signing_alg:An.z.string().optional(),revocation_endpoint_auth_method:Dn.oauthEndpointAuthMethod.optional(),revocation_endpoint_auth_signing_alg:An.z.string().optional(),pushed_authorization_request_endpoint_auth_method:Dn.oauthEndpointAuthMethod.optional(),pushed_authorization_request_endpoint_auth_signing_alg:An.z.string().optional(),userinfo_signed_response_alg:An.z.string().optional(),userinfo_encrypted_response_alg:An.z.string().optional(),jwks_uri:An.z.string().url().optional(),jwks:Zn.jwksPubSchema.optional(),application_type:An.z.enum(["web","native"]).default("web").optional(),subject_type:An.z.enum(["public","pairwise"]).default("public").optional(),request_object_signing_alg:An.z.string().optional(),id_token_signed_response_alg:An.z.string().optional(),authorization_signed_response_alg:An.z.string().default("RS256").optional(),authorization_encrypted_response_enc:An.z.enum(["A128CBC-HS256"]).optional(),authorization_encrypted_response_alg:An.z.string().optional(),client_id:Ln.oauthClientIdSchema.optional(),client_name:An.z.string().optional(),client_uri:An.z.string().url().optional(),policy_uri:An.z.string().url().optional(),tos_uri:An.z.string().url().optional(),logo_uri:An.z.string().url().optional(),default_max_age:An.z.number().optional(),require_auth_time:An.z.boolean().optional(),contacts:An.z.array(An.z.string().email()).optional(),tls_client_certificate_bound_access_tokens:An.z.boolean().optional(),dpop_bound_access_tokens:An.z.boolean().optional(),authorization_details_types:An.z.array(An.z.string()).optional()});var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});var $n={};Object.defineProperty($n,"__esModule",{value:!0}),$n.oauthParResponseSchema=void 0;const Vn=je;$n.oauthParResponseSchema=Vn.z.object({request_uri:Vn.z.string()});var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.oauthProtectedResourceMetadataSchema=void 0;const Wn=je,Kn=_n;Bn.oauthProtectedResourceMetadataSchema=Wn.z.object({resource:Wn.z.string().url(),authorization_servers:Wn.z.array(Kn.oauthIssuerIdentifierSchema).optional(),jwks_uri:Wn.z.string().url().optional(),scopes_supported:Wn.z.array(Wn.z.string()).optional(),bearer_methods_supported:Wn.z.array(Wn.z.enum(["header","body","query"])).optional(),resource_signing_alg_values_supported:Wn.z.array(Wn.z.string()).optional(),resource_documentation:Wn.z.string().url().optional(),resource_policy_uri:Wn.z.string().url().optional(),resource_tos_uri:Wn.z.string().url().optional()});var qn={};Object.defineProperty(qn,"__esModule",{value:!0}),qn.oauthResponseModeSchema=void 0;const Hn=je;qn.oauthResponseModeSchema=Hn.z.enum(["query","fragment","form_post"]);var Jn={},Qn={};Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.oauthTokenTypeSchema=void 0;const Yn=je;Qn.oauthTokenTypeSchema=Yn.z.union([Yn.z.string().regex(/^DPoP$/i).transform((()=>"DPoP")),Yn.z.string().regex(/^Bearer$/i).transform((()=>"Bearer"))]),Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.oauthTokenResponseSchema=void 0;const Gn=st,Xn=je,er=tn,tr=Qn;function nr({url:e,proto:t=!1,host:n=!0,path:r=!1,query:a=!1,hash:o=!1,as:i="span",...s}){const c=l.useMemo((()=>new URL(e)),[e]);return u.jsxs(i,{...s,children:[t&&u.jsx(rr,{value:`${c.protocol}//`,...!0===t?null:t}),n&&u.jsx(rr,{value:c.host,...!0===n?{faded:!1,bold:!0}:n}),r&&u.jsx(rr,{value:c.pathname,...!0===r?null:r}),a&&u.jsx(rr,{value:c.search,...!0===a?null:a}),o&&u.jsx(rr,{value:c.hash,...!0===o?null:o})]})}function rr({value:e,faded:t=!0,bold:n=!1}){const r=n?"b":"span";return u.jsx(r,{className:t?"opacity-50":"",children:e})}function ar({clientId:e,clientMetadata:t,as:n="span",...r}){return Te.isOAuthClientIdLoopback(e)?u.jsx(n,{...r,children:"An application on your device"}):Te.isOAuthClientIdDiscoverable(e)?u.jsx(nr,{as:n,...r,url:e,proto:!0,path:!0}):u.jsx(n,{...r,children:t.client_name||e})}function or({clientId:e,clientMetadata:t,as:n="span",...r}){return t.client_name?u.jsx(n,{...r,children:t.client_name}):u.jsx(ar,{clientId:e,clientMetadata:t,as:n,...r})}Jn.oauthTokenResponseSchema=Xn.z.object({access_token:Xn.z.string(),token_type:tr.oauthTokenTypeSchema,issuer:Xn.z.string().url().optional(),sub:Xn.z.string().optional(),scope:Xn.z.string().optional(),id_token:Gn.signedJwtSchema.optional(),refresh_token:Xn.z.string().optional(),expires_in:Xn.z.number().optional(),authorization_details:er.oauthAuthorizationDetailsSchema.optional()}).passthrough(),function(t){var n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),r(Ee,t),r(ze,t),r(Pe,t),r(Je,t),r(nt,t),r(Qe,t),r(it,t),r(tn,t),r(bn,t),r(xn,t),r(nn,t),r(Sn,t),r(zn,t),r(In,t),r(Fn,t),r(jn,t),r(_n,t),r($n,t),r(Bn,t),r(qn,t),r(On,t),r(Jn,t),r(Qn,t),r(an,t),r(sn,t),r(cn,t)}(Te);const ir=e=>function(t){return u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:e})})},sr=ir("M11.14 4.494a.995.995 0 0 1 1.72 0l7.001 12.008a.996.996 0 0 1-.86 1.498H4.999a.996.996 0 0 1-.86-1.498L11.14 4.494Zm3.447-1.007c-1.155-1.983-4.019-1.983-5.174 0L2.41 15.494C1.247 17.491 2.686 20 4.998 20h14.004c2.312 0 3.751-2.509 2.587-4.506L14.587 3.487ZM13 9.019a1 1 0 1 0-2 0v2.994a1 1 0 1 0 2 0V9.02Zm-1 4.731a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Z"),lr=l.forwardRef((({className:e,icon:t,append:n,children:r,...a},o)=>u.jsxs("div",{ref:o,className:C("pl-1 pr-2","min-h-12","flex items-center justify-stretch","rounded-lg","text-gray-700","dark:text-gray-100",e),...a,children:[u.jsx("div",{className:C("self-start shrink-0 grow-0","w-8 h-12","flex items-center justify-center","text-gray-500"),children:t}),u.jsx("div",{className:"flex-auto relative",children:r}),n&&u.jsx("div",{className:"grow-0 shrink-0",children:n})]})));function ur({children:e,className:t,role:n="alert",...r}){return u.jsx(lr,{className:C("alert"===n?"bg-error":"bg-gray-100 dark:bg-slate-800",t),icon:u.jsx(sr,{className:C("fill-current h-4 w-4","alert"===n?"text-white":"text-brand")}),...r,children:u.jsx("div",{className:C("py-2 overflow-hidden","alert"===n?"text-white":void 0),children:e})})}const cr=l.forwardRef((({actions:e,cancel:t,append:n,className:r,children:a,error:o,...i},s)=>u.jsxs("form",{ref:s,className:C("flex flex-col py-4 space-y-4",r),...i,children:[u.jsx("div",{className:"space-y-4",children:a}),n&&u.jsx("div",{children:n},"append"),o&&u.jsx(ur,{role:"alert",children:o},"error"),(e||t)&&u.jsxs("div",{className:"flex flex-wrap flex-row-reverse items-center justify-end space-x-reverse space-x-2",children:[e,u.jsx("div",{className:"flex-auto"}),t]},"buttons")]}))),dr=l.forwardRef((({title:e,children:t,...n},r)=>u.jsxs("fieldset",{ref:r,...n,children:[e&&u.jsx("p",{className:"mb-1 text-slate-600 dark:text-slate-400 text-sm font-medium",children:e},"title"),u.jsx("div",{className:"flex flex-col space-y-4",children:t})]})));function fr({account:e,clientId:t,clientMetadata:n,clientTrusted:r,onAccept:a,acceptLabel:o="Accept",onReject:i,rejectLabel:s="Deny access",onBack:l,backLabel:c="Back",...d}){return u.jsx(cr,{onSubmit:e=>{e.preventDefault(),a()},cancel:l&&u.jsx(Ce,{onClick:l,children:c}),actions:u.jsxs(u.Fragment,{children:[u.jsx(Ce,{type:"submit",color:"brand",children:o}),u.jsx(Ce,{onClick:i,children:s})]}),...d,children:u.jsxs(dr,{title:u.jsx(or,{clientId:t,clientMetadata:n}),children:[r&&n.logo_uri&&u.jsx("div",{className:"flex items-center justify-center",children:u.jsx("img",{crossOrigin:"anonymous",src:n.logo_uri,alt:n.client_name,className:"w-16 h-16 rounded-full"})},"logo"),u.jsxs("p",{children:[u.jsx(ar,{clientId:t,clientMetadata:n})," ","is asking for permission to access your"," ",u.jsx(Se,{account:e})," account."]}),u.jsxs("p",{children:["By clicking ",u.jsx("b",{children:o}),", you allow this application to access your information in accordance to their"," ",u.jsx("a",{href:n.tos_uri,rel:"nofollow noopener",target:"_blank",className:"text-brand underline",children:"terms of service"})," and ",u.jsx("a",{href:n.policy_uri,rel:"nofollow noopener",target:"_blank",className:"text-brand underline",children:"privacy policy"}),"."]})]})})}function pr({clientId:e,clientMetadata:t,clientTrusted:n,session:r,onAccept:a,onReject:o,onBack:i}){const{account:s}=r;return u.jsx(T,{title:"Authorize",subtitle:u.jsxs(u.Fragment,{children:["Grant access to your"," ",u.jsx("b",{className:"text-black dark:text-white",children:s.preferred_username||s.email||s.sub})," ","account"]}),children:u.jsx(fr,{clientId:e,clientMetadata:t,clientTrusted:n,account:s,onBack:i,onAccept:a,onReject:o})})}const hr=ir("M12 4a8 8 0 1 0 4.21 14.804 1 1 0 0 1 1.054 1.7A9.958 9.958 0 0 1 12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10c0 1.104-.27 2.31-.949 3.243-.716.984-1.849 1.6-3.331 1.465a4.207 4.207 0 0 1-2.93-1.585c-.94 1.21-2.388 1.94-3.985 1.715-2.53-.356-4.04-2.91-3.682-5.458.358-2.547 2.514-4.586 5.044-4.23.905.127 1.68.536 2.286 1.126a1 1 0 0 1 1.964.368l-.515 3.545v.002a2.222 2.222 0 0 0 1.999 2.526c.75.068 1.212-.21 1.533-.65.358-.493.566-1.245.566-2.067a8 8 0 0 0-8-8Zm-.112 5.13c-1.195-.168-2.544.819-2.784 2.529-.24 1.71.784 3.03 1.98 3.198 1.195.168 2.543-.819 2.784-2.529.24-1.71-.784-3.03-1.98-3.198Z"),mr=ir("M8.293 3.293a1 1 0 0 1 1.414 0l8 8a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414-1.414L15.586 12 8.293 4.707a1 1 0 0 1 0-1.414Z"),gr=l.forwardRef((({className:e,onFocus:t,icon:n,onBlur:r,...a},o)=>{const[i,s]=l.useState(!1);return u.jsx(lr,{ref:o,className:C("bg-gray-100 has-[:focus]:bg-slate-200","dark:bg-slate-800 dark:has-[:focus]:bg-slate-700","outline-none","border-solid border-2 border-transparent hover:border-gray-400 has-[:focus]:border-brand hover:has-[:focus]:border-brand","dark:hover:border-gray-500",e),onFocus:e=>{t?.(e),e.defaultPrevented||s(!0)},onBlur:e=>{r?.(e),e.defaultPrevented||s(!1)},icon:u.jsx("div",{className:i?"text-brand":void 0,children:n}),...a})}));function yr({accounts:e,onAccount:t,accountAria:n=(e=>`Sign in as ${e.name}`),onOther:r,otherLabel:a="Another account",otherAria:o="Login to account that is not listed",onBack:i,backAria:s,backLabel:l=s,...c}){return u.jsx(cr,{...c,cancel:i&&u.jsx(Ce,{onClick:i,"aria-label":s,children:l}),children:u.jsxs(dr,{title:"Sign in as...",children:[e.map((e=>{const[r,a]=[e.name,e.preferred_username,e.email,e.sub].filter(Boolean);return u.jsx(gr,{onClick:()=>t(e),role:"button","aria-label":n(e),icon:e.picture?u.jsx("img",{crossOrigin:"anonymous",src:e.picture,alt:r,className:"-ml-1 w-6 h-6 rounded-full"}):u.jsxs("svg",{className:"-ml-1 w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"none",children:[u.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"#0070ff"}),u.jsx("circle",{cx:"12",cy:"9.5",r:"3.5",fill:"#fff"}),u.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",fill:"#fff",d:"M 12.058 22.784 C 9.422 22.784 7.007 21.836 5.137 20.262 C 5.667 17.988 8.534 16.25 11.99 16.25 C 15.494 16.25 18.391 18.036 18.864 20.357 C 17.01 21.874 14.64 22.784 12.058 22.784 Z"})]}),append:u.jsx(mr,{className:"h-4"}),children:u.jsxs("span",{className:"flex flex-wrap items-center",children:[u.jsx("span",{className:"font-medium truncate mr-2",children:r}),a&&u.jsx("span",{className:"text-sm text-neutral-500 dark:text-neutral-400 truncate",children:a})]})},e.sub)})),r&&u.jsx(gr,{onClick:r,"aria-label":o,role:"button",append:u.jsx(mr,{className:"h-4"}),icon:u.jsx(hr,{className:"h-4"}),children:u.jsx("span",{className:"truncate text-gray-700 dark:text-gray-400",children:a})})]})})}const vr=ir("M7 7a5 5 0 0 1 10 0v2h1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h1V7Zm-1 4v9h12v-9H6Zm9-2H9V7a3 3 0 1 1 6 0v2Zm-3 4a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-3a1 1 0 0 1 1-1Z"),br=()=>Math.random().toString(36).slice(2);function _r({id:e,children:t,className:n,...r}){const[a]=l.useState(br),o=l.useRef(null),i=l.useRef(null);return u.jsx(gr,{id:e,ref:o,icon:u.jsx("input",{...r,ref:i,id:a,className:"text-brand outline-none",type:"checkbox"}),className:n,onClick:e=>{e.target!==o.current||e.defaultPrevented||(i.current?.click(),i.current?.focus())},children:u.jsx("label",{htmlFor:a,className:"block w-full leading-[1.6]",children:t})})}const wr=l.forwardRef((({className:e,icon:t,children:n,onFocus:r,onBlur:a,...o},i)=>{const[s,c]=l.useState(!1),d=l.useRef(null);l.useImperativeHandle(i,(()=>d.current),[]);const f=l.useCallback((e=>{d.current!==e.target&&(e.preventDefault(),e.stopPropagation(),d.current?.focus())}),[]),p=l.useCallback((e=>{s&&e.target!==d.current&&(e.preventDefault(),e.stopPropagation())}),[s]);return u.jsxs(gr,{icon:t,className:e,onClick:f,onMouseDown:p,children:[u.jsx("input",{ref:d,className:"w-full bg-transparent bg-clip-padding text-base text-inherit outline-none dark:placeholder-gray-500",onFocus:e=>{c(!0),r?.(e)},onBlur:e=>{c(!1),a?.(e)},...o}),n]})})),kr=ir("M4 5.5a.5.5 0 0 0-.5.5v2.535a.5.5 0 0 0 .25.433A3.498 3.498 0 0 1 5.5 12a3.498 3.498 0 0 1-1.75 3.032.5.5 0 0 0-.25.433V18a.5.5 0 0 0 .5.5h16a.5.5 0 0 0 .5-.5v-2.535a.5.5 0 0 0-.25-.433A3.498 3.498 0 0 1 18.5 12a3.5 3.5 0 0 1 1.75-3.032.5.5 0 0 0 .25-.433V6a.5.5 0 0 0-.5-.5H4ZM2.5 6A1.5 1.5 0 0 1 4 4.5h16A1.5 1.5 0 0 1 21.5 6v3.17a.5.5 0 0 1-.333.472 2.501 2.501 0 0 0 0 4.716.5.5 0 0 1 .333.471V18a1.5 1.5 0 0 1-1.5 1.5H4A1.5 1.5 0 0 1 2.5 18v-3.17a.5.5 0 0 1 .333-.472 2.501 2.501 0 0 0 0-4.716.5.5 0 0 1-.333-.471V6Zm12 2a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Zm0 4a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Zm0 4a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Z");function xr({onSubmit:e,submitAria:t="Next",submitLabel:n=t,onCancel:r,cancelAria:a="Cancel",cancelLabel:o=a,accountSection:i="Account",sessionSection:s="Session",secondFactorSection:c="2FA Confirmation",usernameDefault:d="",usernameReadonly:f=!1,usernameLabel:p="Username or email address",usernameAria:h=p,usernamePlaceholder:m=p,usernamePattern:g,usernameFormat:y="valid email address or username",passwordLabel:v="Password",passwordAria:b=v,passwordPlaceholder:_=v,passwordPattern:w,passwordFormat:k="non empty string",passwordWarning:x=u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"font-bold text-brand leading-8",children:"Warning"}),u.jsx("p",{children:"Please verify the domain name of the website before entering your password. Never enter your password on a domain you do not trust."})]}),secondFactorLabel:S="Confirmation code",secondFactorAria:T=S,secondFactorPlaceholder:E=S,secondFactorPattern:z="^[A-Z0-9]{5}-[A-Z0-9]{5}$",secondFactorFormat:I="XXXXX-XXXXX",secondFactorHint:P="Check your $1 email for a login code and enter it here.",rememberVisible:j=!0,rememberDefault:N=!1,rememberLabel:O="Remember this account on this device",rememberAria:R=O,...Z}){const[A,L]=l.useState(!1),[D,M]=l.useState(!1),[U,F]=l.useState(null),[$,V]=l.useState(null),B=l.useCallback((()=>{F(null),V(null)}),[]),W=null!=U,K=l.useCallback((async t=>{t.preventDefault();const n={username:t.currentTarget.username.value,password:t.currentTarget.password.value,remember:t.currentTarget.remember?.checked};if(U){const e=t.currentTarget.secondFactor;if(!e)throw new Error("Second factor input not found");n[U.type]=e.value}M(!0),V(null);try{await e(n)}catch(e){e instanceof be?F({type:e.type,hint:e.hint}):V(function(e){if(e instanceof ve)return"Invalid username or password";return"An unknown error occurred"}(e))}finally{M(!1)}}),[U,e]);return u.jsxs(cr,{onSubmit:K,error:$,cancel:r&&u.jsx(Ce,{"aria-label":a,onClick:r,children:o}),actions:u.jsx(Ce,{color:"brand",type:"submit","aria-label":t,loading:D,children:n}),...Z,children:[u.jsxs(dr,{title:i,disabled:D,children:[u.jsx(wr,{icon:u.jsx(hr,{className:"w-5"}),name:"username",type:"text",onChange:B,placeholder:m,"aria-label":h,autoCapitalize:"none",autoCorrect:"off",autoComplete:"username",spellCheck:"false",dir:"auto",enterKeyHint:"next",required:!0,defaultValue:d,readOnly:f,disabled:f,pattern:g,title:y}),u.jsx(wr,{icon:u.jsx(vr,{className:"w-5"}),name:"password",type:"password",onChange:B,onFocus:()=>L(!0),onBlur:()=>setTimeout(L,100,!1),placeholder:_,"aria-label":b,autoCapitalize:"none",autoCorrect:"off",autoComplete:"current-password",dir:"auto",enterKeyHint:"done",spellCheck:"false",required:!0,readOnly:W,disabled:W,pattern:w,title:k}),x&&u.jsx("div",{className:C("transition-all delay-300 duration-300 overflow-hidden",A?"max-h-80":"max-h-0 -z-10 !mt-0"),children:u.jsx(ur,{role:"status",children:x})})]}),j&&u.jsx(dr,{title:s,disabled:D,children:u.jsx(_r,{name:"remember",defaultChecked:N,"aria-label":R,children:O})},"remember"),U&&u.jsx(dr,{title:c,disabled:D,children:u.jsxs("div",{children:[u.jsx(wr,{icon:u.jsx(kr,{className:"w-5"}),name:"secondFactor",type:"text",placeholder:E,"aria-label":T,autoCapitalize:"none",autoCorrect:"off",autoComplete:"off",spellCheck:"false",dir:"auto",enterKeyHint:"done",required:!0,pattern:z,title:I,autoFocus:!0}),u.jsx("p",{className:"text-slate-600 dark:text-slate-400 text-sm",children:P.replaceAll("$1",U.hint)})]})},"2fa")]})}function Sr({loginHint:e,sessions:t,setSession:n,onSignIn:r,onBack:a}){const o=l.useMemo((()=>t.find((e=>e.selected))),[t]),i=l.useCallback((()=>n(null)),[n]),s=l.useMemo((()=>t.map((e=>e.account))),[t]),[c,d]=l.useState(0===t.length);return l.useEffect((()=>{o&&d(!1)}),[o]),o?o.loginRequired?u.jsx(T,{title:"Sign in",subtitle:"Confirm your password to continue",children:u.jsx(xr,{onSubmit:r,onCancel:i,cancelAria:"Back",usernameDefault:o.account.preferred_username||o.account.sub,usernameReadonly:!0,rememberDefault:!0})}):null:e?u.jsx(T,{title:"Sign in",subtitle:"Enter your password",children:u.jsx(xr,{onSubmit:r,onCancel:a,cancelAria:"Back",usernameDefault:e,usernameReadonly:!0})}):0===t.length?u.jsx(T,{title:"Sign in",subtitle:"Enter your username and password",children:u.jsx(xr,{onSubmit:r,onCancel:a,cancelAria:"Back"})}):c?u.jsx(T,{title:"Sign in",subtitle:"Enter your username and password",children:u.jsx(xr,{onSubmit:r,onCancel:()=>d(!1),cancelAria:"Back"})}):u.jsx(T,{title:"Sign in",subtitle:"Select from an existing account",children:u.jsx(yr,{accounts:s,onAccount:e=>n(e.sub),onOther:()=>d(!0),onBack:a,backAria:"Back"})})}function Cr({links:e,className:t,...n}){const r=e?.find((e=>"help"===e.rel));return r?u.jsxs("p",{className:C("text-sm rounded-md bg-slate-100 text-slate-800 dark:bg-slate-800 dark:text-slate-400 p-3",t),...n,children:["Having trouble?"," ",u.jsxs("a",{href:r.href,rel:r.rel,target:"_blank",className:"text-brand",children:["Contact ",r.title]})]}):null}function Tr({onSubmit:e,submitAria:t="Next",submitLabel:n=t,onCancel:r,cancelAria:a="Cancel",cancelLabel:o=a,username:i="",usernameLabel:s="Username",usernameAria:c=s,usernamePlaceholder:d=s,usernamePattern:f,usernameTitle:p,passwordLabel:h="Password",passwordAria:m=h,passwordPlaceholder:g=h,passwordPattern:y,passwordTitle:v,children:b,..._}){const[w,k]=l.useState(!1),[x,S]=l.useState(null),C=l.useCallback((async t=>{t.preventDefault();const n={username:t.currentTarget.username.value,password:t.currentTarget.password.value};k(!0),S(null);try{await e(n)}catch(e){S(function(e){if("Invalid credentials"===e?.message)return"Invalid username or password";return console.error(e),"An unknown error occurred"}(e))}finally{k(!1)}}),[e,S,k]);return u.jsx(cr,{append:b,error:x,onSubmit:C,cancel:r&&u.jsx(Ce,{"aria-label":a,onClick:r,children:o}),actions:u.jsx(Ce,{color:"brand",type:"submit","aria-label":t,disabled:w,children:n}),..._,children:u.jsxs(dr,{disabled:w,children:[u.jsxs("label",{className:"text-sm font-medium block",children:[u.jsx("p",{children:s}),u.jsxs("div",{className:"relative flex flex-wrap items-center justify-stretch rounded-md border border-solid border-slate-200 dark:border-slate-700 text-neutral-700 dark:text-neutral-100",children:[u.jsx("span",{className:"w-6 ml-1 text-center text-base",children:"@"}),u.jsx("input",{name:"username",type:"text",onChange:()=>S(null),className:"relative m-1 block w-[1px] min-w-0 flex-auto leading-[1.6] bg-transparent bg-clip-padding text-base text-inherit outline-none dark:placeholder:text-neutral-100 disabled:text-gray-500",placeholder:d,"aria-label":c,autoCapitalize:"none",autoCorrect:"off",autoComplete:"username",spellCheck:"false",dir:"auto",enterKeyHint:"next",required:!0,defaultValue:i,pattern:f,title:p})]})]}),u.jsxs("label",{className:"text-sm font-medium block",children:[u.jsx("p",{children:h}),u.jsxs("div",{className:"relative flex flex-wrap items-center justify-stretch rounded-md border border-solid border-slate-200 dark:border-slate-700 text-neutral-700 dark:text-neutral-100",children:[u.jsx("span",{className:"w-6 ml-1 text-center text-2xl font-light -mb-2",children:"*"}),u.jsx("input",{name:"password",type:"password",onChange:()=>S(null),className:"relative m-1 block w-[1px] min-w-0 flex-auto leading-[1.6] bg-transparent bg-clip-padding text-base text-inherit outline-none dark:placeholder:text-neutral-100",placeholder:g,"aria-label":m,autoCapitalize:"none",autoCorrect:"off",autoComplete:"new-password",dir:"auto",enterKeyHint:"done",spellCheck:"false",required:!0,pattern:y,title:v})]})]})]})})}function Er({links:e,className:t,...n}){const r=e?.filter((e=>"privacy-policy"===e.rel||"terms-of-service"===e.rel));return u.jsxs("p",{className:C("text-sm text-slate-500",t),...n,children:["By creating an account you agree to the"," ",r&&r.length?r.map(((e,t,n)=>u.jsxs("span",{children:[t>0&&(t<n.length-1?", ":" and "),u.jsx("a",{href:e.href,rel:e.rel,target:"_blank",className:"text-brand underline",children:e.title})]},t))):"Terms of Service and Privacy Policy","."]})}function zr({stepName:e=((e,t)=>`Step ${e} of ${t}`),stepTitle:t=((e,t)=>1===e?"Your account":null),links:n,onSignUp:r,onBack:a}){const[o,i]=l.useState(null),[s,c]=l.useState(1),d=l.useCallback((e=>{i(e),c(2)}),[r,i,c]);return u.jsx(T,{title:"Create Account",subtitle:"We're so excited to have you join us!",children:u.jsxs("div",{className:"flex flex-col",children:[u.jsx("p",{className:"mt-4 text-slate-400 dark:text-slate-600",children:e(s,2)}),u.jsx("h2",{className:"font-medium text-xl mb-4",children:t(s,2)}),1===s&&u.jsx(Tr,{className:"flex-grow",onSubmit:d,onCancel:a,cancelLabel:"Back",children:u.jsx(Er,{links:n})}),2===s&&u.jsx(Ce,{onClick:()=>c(1),children:"Back"}),u.jsx(Cr,{className:"mb-4",links:n})]})})}function Ir({name:e,logo:t,logoAlt:n=e||"Logo",links:r,children:a,className:o,...i}){return u.jsxs("div",{className:C("min-h-screen w-full","flex items-center justify-center flex-col","bg-white text-slate-900","dark:bg-slate-900 dark:text-slate-100",o),...i,children:[u.jsxs("div",{className:"w-full max-w-screen-sm overflow-hidden flex-grow flex flex-col items-center justify-center",children:[t&&u.jsx("img",{src:t,alt:n,className:"w-16 h-16 md:w-24 md:h-24 mb-8"}),e&&u.jsx("h1",{className:"text-2xl md:text-4xl mb-8 mx-4 text-center font-bold",children:e}),a]}),null!=r&&r.length>0&&u.jsx("nav",{className:"w-full max-w-screen-sm overflow-hidden mt-4 border-t border-t-slate-200 dark:border-t-slate-700 flex flex-wrap justify-center",children:r.map((e=>u.jsx("a",{href:e.href,rel:e.rel,target:"_blank",className:"m-2 md:m-4 text-xs md:text-sm text-brand hover:underline",children:e.title},e.href)))})]})}function Pr({onSignUp:e,signUpLabel:t="Create a new account",onSignIn:n,signInLabel:r="Sign in",onCancel:a,cancelLabel:o="Cancel",...i}){return u.jsxs(Ir,{...i,children:[e&&u.jsx(Ce,{className:"m-1 w-60 max-w-full",color:n?"brand":void 0,onClick:e,children:t}),n&&u.jsx(Ce,{className:"m-1 w-60 max-w-full",color:e?void 0:"brand",onClick:n,children:r}),a&&u.jsx(Ce,{className:"m-1 w-60 max-w-full",onClick:a,children:o})]})}function jr({authorizeData:e,customizationData:t}){const n=null!=e?.loginHint,[r,a]=l.useState(n?"sign-in":"welcome"),o=xe(a,"done"),i=xe(a,"sign-in"),s=xe(a,"accept"),c=xe(a,"welcome"),{sessions:d,setSession:f,doAccept:p,doReject:h,doSignIn:m,doSignUp:g}=ke(e,{onRedirected:o}),y=d.find((e=>e.selected&&!e.loginRequired));return l.useEffect((()=>{y&&(y.consentRequired?s():p(y.account))}),[y,p,s]),"welcome"===r?u.jsx(Pr,{name:t?.name,logo:t?.logo,links:t?.links,onSignIn:i,onCancel:h}):"sign-up"===r?u.jsx(zr,{links:t?.links,onSignUp:g,onBack:c}):"sign-in"===r?u.jsx(Sr,{loginHint:e.loginHint,sessions:d,setSession:f,onSignIn:m,onBack:n?h:c}):"accept"===r&&y?u.jsx(pr,{session:y,clientId:e.clientId,clientMetadata:e.clientMetadata,clientTrusted:e.clientTrusted,onAccept:()=>p(y.account),onReject:h,onBack:n?void 0:()=>{f(null),a(d.length?"sign-in":"welcome")}}):u.jsx(T,{title:"Login complete",children:"You are being redirected..."})}function Nr({errorData:e,customizationData:t,...n}){return u.jsx(Ir,{...t,...n,children:u.jsx(ur,{role:"alert",children:Or(e)})})}function Or(e){const t=e?.error_description;return"This request has expired"===t||t?.startsWith("Unknown request_uri")?"This sign-in session has expired":t||"An unknown error occurred"}const{authorizeData:Rr}=y;if(Rr){const e=new URL(window.location.href);"/oauth/authorize"!==e.pathname||e.searchParams.has("request_uri")||(e.search="",e.searchParams.set("client_id",Rr.clientId),e.searchParams.set("request_uri",Rr.requestUri),window.history.replaceState(history.state,"",e.pathname+e.search))}x(document.getElementById("root")).render(u.jsx((function({authorizeData:e,customizationData:t,errorData:n}){return e&&!n?u.jsx(jr,{customizationData:t,authorizeData:e}):u.jsx(Nr,{customizationData:t,errorData:n})}),{...y}))}();
20
20
  //# sourceMappingURL=main.js.map