@pulzr/perses-timeseries-panel 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/README.md +2 -1
  2. package/__mf/js/{PulzrTimeSeriesChart.8f5010ba5c.js → PulzrTimeSeriesChart.8af05eb298.js} +2 -2
  3. package/__mf/js/async/{0.1f67a94360.js → 0.97d9b1e0c4.js} +2 -2
  4. package/__mf/js/async/{07.36ac3671c5.js → 07.f2f50f0b10.js} +2 -2
  5. package/__mf/js/async/{0p.58ba51c3d8.js → 0p.4e1d1fe39a.js} +2 -2
  6. package/__mf/js/async/{1.73bde7147c.js → 1.aceea72600.js} +2 -2
  7. package/__mf/js/async/{2.965b5a081a.js → 2.d99477aed1.js} +2 -2
  8. package/__mf/js/async/{24.c20b9c5a17.js → 24.317de98277.js} +1 -1
  9. package/__mf/js/async/{3.364f359293.js → 3.7d1614f6e7.js} +1 -1
  10. package/__mf/js/async/4.b3b501a5a4.js +1 -0
  11. package/__mf/js/async/{5.f4b8ab81b7.js → 5.900dc50d56.js} +1 -1
  12. package/__mf/js/async/{6.1c072abe87.js → 6.91e38df626.js} +1 -1
  13. package/__mf/js/async/{6x.3c32d29a25.js → 6x.fd1c612797.js} +1 -1
  14. package/__mf/js/async/{7.15f564c6f3.js → 7.dcc88aa9b6.js} +2 -2
  15. package/__mf/js/async/{9.f03162afcc.js → 9.c3bada9a67.js} +1 -1
  16. package/__mf/js/async/{__federation_expose_PulzrTimeSeriesChart.872d907273.js → __federation_expose_PulzrTimeSeriesChart.cde156b788.js} +1 -1
  17. package/__mf/js/async/{aw.c62047d59e.js → aw.70e118cbc9.js} +1 -1
  18. package/__mf/js/async/b.71a696a6e8.js +1 -0
  19. package/__mf/js/async/{c.db5f03155c.js → c.2d6088333b.js} +1 -1
  20. package/__mf/js/async/{f.629bfc34cd.js → f.96d3bb04bb.js} +2 -2
  21. package/__mf/js/async/{f6.a297b4c3b5.js → f6.89ff65957d.js} +1 -1
  22. package/__mf/js/async/{g.8f186fee46.js → g.692bd4d1a6.js} +1 -1
  23. package/__mf/js/async/{i.20d8c95685.js → i.e37122ab8c.js} +1 -1
  24. package/__mf/js/async/{k.9353f82963.js → k.6b0ad1bfcf.js} +2 -2
  25. package/__mf/js/async/kk.2c9a7e0b39.js +1 -0
  26. package/__mf/js/async/{m.8322f15461.js → m.4678fdbb11.js} +2 -2
  27. package/__mf/js/async/{n.07b91c8f3b.js → n.0f1729eb57.js} +1 -1
  28. package/__mf/js/async/{o.f00502c3dc.js → o.0d3a98da9a.js} +1 -1
  29. package/__mf/js/async/{o8.0d0f7ae8dd.js → o8.c61bd6ac39.js} +1 -1
  30. package/__mf/js/async/{os.48ffc14283.js → os.ad10d51845.js} +2 -2
  31. package/__mf/js/async/{p.f622a2635a.js → p.318393ba38.js} +2 -2
  32. package/__mf/js/async/{pj.dd52375d06.js → pj.99233c78ca.js} +1 -1
  33. package/__mf/js/async/{s.4d1c08522b.js → s.d7727bb096.js} +1 -1
  34. package/__mf/js/async/{s9.14445ad382.js → s9.fb2e5e8a04.js} +1 -1
  35. package/__mf/js/async/{se.3e1054cb2e.js → se.5e663361de.js} +2 -2
  36. package/__mf/js/async/{sp.823f3e93e8.js → sp.0f633853b4.js} +1 -1
  37. package/__mf/js/async/{sr.52e9bae874.js → sr.19b889668c.js} +1 -1
  38. package/__mf/js/async/{t.94a8ce332d.js → t.d2b9f3a9ba.js} +1 -1
  39. package/__mf/js/async/{tl.d9749e7d1e.js → tl.924f906110.js} +1 -1
  40. package/__mf/js/async/{uz.53202eb429.js → uz.0d07cc3f87.js} +1 -1
  41. package/__mf/js/async/{x.57044cf1d5.js → x.d9c364c1d4.js} +1 -1
  42. package/__mf/js/async/{xr.6ee20d6a04.js → xr.87b81c2efb.js} +1 -1
  43. package/__mf/js/async/{y.2d4e8c2b2e.js → y.cc71ee1d51.js} +1 -1
  44. package/__mf/js/async/{yk.d357453890.js → yk.b74f365b85.js} +2 -2
  45. package/__mf/js/{main.5302f40bb7.js → main.ad2fd370ef.js} +2 -2
  46. package/lib/time-series-chart-model.d.ts +2 -0
  47. package/lib/time-series-chart-model.d.ts.map +1 -1
  48. package/lib/time-series-chart-model.js.map +1 -1
  49. package/lib/utils/data-transform.d.ts.map +1 -1
  50. package/lib/utils/data-transform.js +3 -0
  51. package/lib/utils/data-transform.js.map +1 -1
  52. package/mf-manifest.json +42 -42
  53. package/mf-stats.json +42 -42
  54. package/package.json +1 -1
  55. package/__mf/js/async/4.21994aea94.js +0 -1
  56. package/__mf/js/async/b.d9e335c512.js +0 -1
  57. package/__mf/js/async/kk.54ddbdccb1.js +0 -1
  58. /package/__mf/js/async/{0.1f67a94360.js.LICENSE.txt → 0.97d9b1e0c4.js.LICENSE.txt} +0 -0
  59. /package/__mf/js/async/{07.36ac3671c5.js.LICENSE.txt → 07.f2f50f0b10.js.LICENSE.txt} +0 -0
  60. /package/__mf/js/async/{0p.58ba51c3d8.js.LICENSE.txt → 0p.4e1d1fe39a.js.LICENSE.txt} +0 -0
  61. /package/__mf/js/async/{1.73bde7147c.js.LICENSE.txt → 1.aceea72600.js.LICENSE.txt} +0 -0
  62. /package/__mf/js/async/{2.965b5a081a.js.LICENSE.txt → 2.d99477aed1.js.LICENSE.txt} +0 -0
  63. /package/__mf/js/async/{7.15f564c6f3.js.LICENSE.txt → 7.dcc88aa9b6.js.LICENSE.txt} +0 -0
  64. /package/__mf/js/async/{f.629bfc34cd.js.LICENSE.txt → f.96d3bb04bb.js.LICENSE.txt} +0 -0
  65. /package/__mf/js/async/{k.9353f82963.js.LICENSE.txt → k.6b0ad1bfcf.js.LICENSE.txt} +0 -0
  66. /package/__mf/js/async/{m.8322f15461.js.LICENSE.txt → m.4678fdbb11.js.LICENSE.txt} +0 -0
  67. /package/__mf/js/async/{os.48ffc14283.js.LICENSE.txt → os.ad10d51845.js.LICENSE.txt} +0 -0
  68. /package/__mf/js/async/{p.f622a2635a.js.LICENSE.txt → p.318393ba38.js.LICENSE.txt} +0 -0
  69. /package/__mf/js/async/{se.3e1054cb2e.js.LICENSE.txt → se.5e663361de.js.LICENSE.txt} +0 -0
  70. /package/__mf/js/async/{yk.d357453890.js.LICENSE.txt → yk.b74f365b85.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- /*! LICENSE: 0.1f67a94360.js.LICENSE.txt */
2
- "use strict";(self.chunk_PulzrTimeSeriesChart_0_1_2=self.chunk_PulzrTimeSeriesChart_0_1_2||[]).push([[0],{Hj(e,t){var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,h={};function m(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}function b(){}function v(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}m.prototype.isReactComponent={},m.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")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var S=v.prototype=new b;S.constructor=v,_(S,m.prototype),S.isPureReactComponent=!0;var E=Array.isArray,k=Object.prototype.hasOwnProperty,$={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,o)&&!w.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var f=Array(i),s=0;s<i;s++)f[s]=arguments[s+2];u.children=f}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:a,ref:c,props:u,_owner:$.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var j=/\/+/g;function g(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function P(e,t,o){if(null==e)return e;var u=[],a=0;return!function e(t,o,u,a,c){var i,f,s,l=typeof t;("undefined"===l||"boolean"===l)&&(t=null);var p=!1;if(null===t)p=!0;else switch(l){case"string":case"number":p=!0;break;case"object":switch(t.$$typeof){case r:case n:p=!0}}if(p)return c=c(p=t),t=""===a?"."+g(p,0):a,E(c)?(u="",null!=t&&(u=t.replace(j,"$&/")+"/"),e(c,o,u,"",function(e){return e})):null!=c&&(C(c)&&(i=c,f=u+(!c.key||p&&p.key===c.key?"":(""+c.key).replace(j,"$&/")+"/")+t,c={$$typeof:r,type:i.type,key:f,ref:i.ref,props:i.props,_owner:i._owner}),o.push(c)),1;if(p=0,a=""===a?".":a+":",E(t))for(var d=0;d<t.length;d++){var _=a+g(l=t[d],d);p+=e(l,o,u,_,c)}else if("function"==typeof(_=null===(s=t)||"object"!=typeof s?null:"function"==typeof(s=y&&s[y]||s["@@iterator"])?s:null))for(t=_.call(t),d=0;!(l=t.next()).done;)_=a+g(l=l.value,d++),p+=e(l,o,u,_,c);else if("object"===l)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(o=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return p}(e,u,"","",function(e){return t.call(o,e,a++)}),u}function O(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 x={current:null},I={transition:null};function T(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,r){P(e,function(){t.apply(this,arguments)},r)},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(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:I,ReactCurrentOwner:$},t.act=T,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=_({},e.props),u=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=$.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(f in t)k.call(t,f)&&!w.hasOwnProperty(f)&&(o[f]=void 0===t[f]&&void 0!==i?i[f]:t[f])}var f=arguments.length-2;if(1===f)o.children=n;else if(1<f){i=Array(f);for(var s=0;s<f;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=T,t.useCallback=function(e,t){return x.current.useCallback(e,t)},t.useContext=function(e){return x.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return x.current.useDeferredValue(e)},t.useEffect=function(e,t){return x.current.useEffect(e,t)},t.useId=function(){return x.current.useId()},t.useImperativeHandle=function(e,t,r){return x.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return x.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return x.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return x.current.useMemo(e,t)},t.useReducer=function(e,t,r){return x.current.useReducer(e,t,r)},t.useRef=function(e){return x.current.useRef(e)},t.useState=function(e){return x.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return x.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return x.current.useTransition()},t.version="18.3.1"},uz(e,t,r){e.exports=r("Hj")}}]);
1
+ /*! LICENSE: 0.97d9b1e0c4.js.LICENSE.txt */
2
+ "use strict";(self.chunk_PulzrTimeSeriesChart_0_1_3=self.chunk_PulzrTimeSeriesChart_0_1_3||[]).push([[0],{Hj(e,t){var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,h={};function m(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}function b(){}function v(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||d}m.prototype.isReactComponent={},m.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")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var S=v.prototype=new b;S.constructor=v,_(S,m.prototype),S.isPureReactComponent=!0;var E=Array.isArray,k=Object.prototype.hasOwnProperty,$={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,o)&&!w.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var f=Array(i),s=0;s<i;s++)f[s]=arguments[s+2];u.children=f}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:a,ref:c,props:u,_owner:$.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var j=/\/+/g;function g(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function P(e,t,o){if(null==e)return e;var u=[],a=0;return!function e(t,o,u,a,c){var i,f,s,l=typeof t;("undefined"===l||"boolean"===l)&&(t=null);var p=!1;if(null===t)p=!0;else switch(l){case"string":case"number":p=!0;break;case"object":switch(t.$$typeof){case r:case n:p=!0}}if(p)return c=c(p=t),t=""===a?"."+g(p,0):a,E(c)?(u="",null!=t&&(u=t.replace(j,"$&/")+"/"),e(c,o,u,"",function(e){return e})):null!=c&&(C(c)&&(i=c,f=u+(!c.key||p&&p.key===c.key?"":(""+c.key).replace(j,"$&/")+"/")+t,c={$$typeof:r,type:i.type,key:f,ref:i.ref,props:i.props,_owner:i._owner}),o.push(c)),1;if(p=0,a=""===a?".":a+":",E(t))for(var d=0;d<t.length;d++){var _=a+g(l=t[d],d);p+=e(l,o,u,_,c)}else if("function"==typeof(_=null===(s=t)||"object"!=typeof s?null:"function"==typeof(s=y&&s[y]||s["@@iterator"])?s:null))for(t=_.call(t),d=0;!(l=t.next()).done;)_=a+g(l=l.value,d++),p+=e(l,o,u,_,c);else if("object"===l)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(o=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return p}(e,u,"","",function(e){return t.call(o,e,a++)}),u}function O(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 x={current:null},I={transition:null};function T(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,r){P(e,function(){t.apply(this,arguments)},r)},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(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:x,ReactCurrentBatchConfig:I,ReactCurrentOwner:$},t.act=T,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=_({},e.props),u=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=$.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(f in t)k.call(t,f)&&!w.hasOwnProperty(f)&&(o[f]=void 0===t[f]&&void 0!==i?i[f]:t[f])}var f=arguments.length-2;if(1===f)o.children=n;else if(1<f){i=Array(f);for(var s=0;s<f;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=T,t.useCallback=function(e,t){return x.current.useCallback(e,t)},t.useContext=function(e){return x.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return x.current.useDeferredValue(e)},t.useEffect=function(e,t){return x.current.useEffect(e,t)},t.useId=function(){return x.current.useId()},t.useImperativeHandle=function(e,t,r){return x.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return x.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return x.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return x.current.useMemo(e,t)},t.useReducer=function(e,t,r){return x.current.useReducer(e,t,r)},t.useRef=function(e){return x.current.useRef(e)},t.useState=function(e){return x.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return x.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return x.current.useTransition()},t.version="18.3.1"},uz(e,t,r){e.exports=r("Hj")}}]);
@@ -1,2 +1,2 @@
1
- /*! LICENSE: 07.36ac3671c5.js.LICENSE.txt */
2
- "use strict";(self.chunk_PulzrTimeSeriesChart_0_1_2=self.chunk_PulzrTimeSeriesChart_0_1_2||[]).push([["07"],{iHa(e,t,r){r.r(t),r.d(t,{AbortedDeferredError:()=>Z,Await:()=>tz,BrowserRouter:()=>ru,Form:()=>rv,HashRouter:()=>rc,Link:()=>rp,MemoryRouter:()=>tM,NavLink:()=>rm,Navigate:()=>tO,NavigationType:()=>c,Outlet:()=>tF,Route:()=>tN,Router:()=>tB,RouterProvider:()=>rl,Routes:()=>tI,ScrollRestoration:()=>ry,UNSAFE_DataRouterContext:()=>e0,UNSAFE_DataRouterStateContext:()=>e1,UNSAFE_ErrorResponseImpl:()=>eo,UNSAFE_FetchersContext:()=>rt,UNSAFE_LocationContext:()=>e2,UNSAFE_NavigationContext:()=>e4,UNSAFE_RouteContext:()=>e3,UNSAFE_ViewTransitionContext:()=>re,UNSAFE_useRouteId:()=>tb,UNSAFE_useScrollRestoration:()=>r_,createBrowserRouter:()=>t8,createHashRouter:()=>t6,createMemoryRouter:()=>tq,createPath:()=>D,createRoutesFromChildren:()=>tJ,createRoutesFromElements:()=>tJ,createSearchParams:()=>t0,defer:()=>et,generatePath:()=>F,isRouteErrorResponse:()=>ei,json:()=>Q,matchPath:()=>N,matchRoutes:()=>U,parsePath:()=>L,redirect:()=>er,redirectDocument:()=>en,renderMatches:()=>tK,replace:()=>ea,resolvePath:()=>z,unstable_HistoryRouter:()=>rd,unstable_usePrompt:()=>rU,useActionData:()=>tP,useAsyncError:()=>tk,useAsyncValue:()=>tL,useBeforeUnload:()=>rA,useBlocker:()=>tA,useFetcher:()=>rP,useFetchers:()=>rD,useFormAction:()=>rC,useHref:()=>e8,useInRouterContext:()=>e6,useLinkClickHandler:()=>rb,useLoaderData:()=>tx,useLocation:()=>e9,useMatch:()=>tt,useMatches:()=>tR,useNavigate:()=>tn,useNavigation:()=>tE,useNavigationType:()=>te,useOutlet:()=>ti,useOutletContext:()=>to,useParams:()=>tl,useResolvedPath:()=>ts,useRevalidator:()=>tS,useRouteError:()=>tD,useRouteLoaderData:()=>tC,useRoutes:()=>tu,useSearchParams:()=>rE,useSubmit:()=>rx,useViewTransitionState:()=>rT});var n,a,o,i,l,s,u,c,d,h,f,p=r("IF"),m=r.t(p,2),v=r("th"),y=r.t(v,2);function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}(n=c||(c={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE";let w="popstate";function b(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:n,v5Compat:a=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let o=s(null==n?t.length-1:n),i=c.Pop,l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(e,r,n){void 0===r&&(r=null);let a=P(t?t[o].pathname:"/",e,r,n);return x("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:D(e)}return{get index(){return o},get action(){return i},get location(){return t[o]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?L(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){i=c.Push;let n=u(e,r);o+=1,t.splice(o,t.length,n),a&&l&&l({action:i,location:n,delta:1})},replace(e,r){i=c.Replace;let n=u(e,r);t[o]=n,a&&l&&l({action:i,location:n,delta:0})},go(e){i=c.Pop;let r=s(o+e),n=t[r];o=r,l&&l({action:i,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}function E(e){return void 0===e&&(e={}),k(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return P("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:D(t)},null,e)}function S(e){return void 0===e&&(e={}),k(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=L(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),P("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:D(t))},function(e,t){x("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function R(e,t){if(!1===e||null==e)throw Error(t)}function x(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function C(e,t){return{usr:e.state,key:e.key,idx:t}}function P(e,t,r,n){return void 0===r&&(r=null),g({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?L(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function D(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function L(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function k(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=c.Pop,s=null,u=d();function d(){return(i.state||{idx:null}).idx}function h(){l=c.Pop;let e=d(),t=null==e?null:e-u;u=e,s&&s({action:l,location:p.location,delta:t})}function f(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:D(e);return R(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==u&&(u=0,i.replaceState(g({},i.state,{idx:u}),""));let p={get action(){return l},get location(){return e(a,i)},listen(e){if(s)throw Error("A history only accepts one active listener");return a.addEventListener(w,h),s=e,()=>{a.removeEventListener(w,h),s=null}},createHref:e=>t(a,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=c.Push;let n=P(p.location,e,t);r&&r(n,e);let h=C(n,u=d()+1),f=p.createHref(n);try{i.pushState(h,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(f)}o&&s&&s({action:l,location:p.location,delta:1})},replace:function(e,t){l=c.Replace;let n=P(p.location,e,t);r&&r(n,e);let a=C(n,u=d()),h=p.createHref(n);i.replaceState(a,"",h),o&&s&&s({action:l,location:p.location,delta:0})},go:e=>i.go(e)};return p}(a=d||(d={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";let _=new Set(["lazy","caseSensitive","path","id","index","children"]);function A(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(R(!0!==e.index||!e.children,"Cannot specify children on an index route"),R(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=g({},e,t(e),{id:i});return n[i]=r,r}{let r=g({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=A(e.children,t,o,n)),r}})}function U(e,t,r){return void 0===r&&(r="/"),T(e,t,r,!1)}function T(e,t,r,n){let a=I(("string"==typeof t?L(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,d={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};d.relativePath.startsWith("/")&&(R(d.relativePath.startsWith(a),'Absolute route path "'+d.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),d.relativePath=d.relativePath.slice(a.length));let h=Y([a,d.relativePath]),f=n.concat(d);t.children&&t.children.length>0&&(R(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+h+'".'),e(t.children,r,f,h)),(null!=t.path||t.index)&&r.push({path:h,score:(l=h,s=t.index,c=(u=l.split("/")).length,u.some(O)&&(c+=-2),s&&(c+=2),u.filter(e=>!O(e)).reduce((e,t)=>e+(M.test(t)?3:""===t?1:10),c)),routesMeta:f})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null,l=B(a);for(let e=0;null==i&&e<o.length;++e)i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=N({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=N({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:Y([o,c.pathname]),pathnameBase:q(Y([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=Y([o,c.pathnameBase]))}return i}(o[e],l,n);return i}function j(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let M=/^:[\w-]+$/,O=e=>"*"===e;function F(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(x(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return R("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function N(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),x("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=h[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=h[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function B(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return x(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function z(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"==typeof e?L(e):e;return{pathname:r?(r=K(r)).startsWith("/")?H(r.substring(1),"/"):H(r,t):t,search:X(n),hash:G(a)}}function H(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function W(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function $(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function V(e,t){let r=$(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function J(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=L(e):(R(!(a=g({},e)).pathname||!a.pathname.includes("?"),W("?","pathname","search",a)),R(!a.pathname||!a.pathname.includes("#"),W("#","pathname","hash",a)),R(!a.search||!a.search.includes("#"),W("#","search","hash",a)));let i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=z(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}let K=e=>e.replace(/\/\/+/g,"/"),Y=e=>K(e.join("/")),q=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),X=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",G=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",Q=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),g({},r,{headers:n}))};class Z extends Error{}class ee{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],R(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new Z("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof Z)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return R(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:function(e){if(!(e instanceof Promise&&!0===e._tracked))return e;if(e._error)throw e._error;return e._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}let et=function(e,t){return void 0===t&&(t={}),new ee(e,"number"==typeof t?{status:t}:t)},er=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,g({},r,{headers:n}))},en=(e,t)=>{let r=er(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},ea=(e,t)=>{let r=er(e,t);return r.headers.set("X-Remix-Replace","true"),r};class eo{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ei(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let el=["post","put","patch","delete"],es=new Set(el),eu=new Set(["get",...el]),ec=new Set([301,302,303,307,308]),ed=new Set([307,308]),eh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ef={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ep={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},em=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ev=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ey="remix-router-transitions";function eg(e){let t,r,n,a,o,i,l=e.window?e.window:"u">typeof window?window:void 0,s=void 0!==l&&void 0!==l.document&&void 0!==l.document.createElement,u=!s;if(R(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=ev;let h={},f=A(e.routes,t,void 0,h),p=e.basename||"/",m=e.dataStrategy||eD,v=e.patchRoutesOnNavigation,y=g({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),w=null,b=new Set,E=null,S=null,C=null,D=null!=e.hydrationData,L=U(f,e.history.location,p),k=!1,M=null;if(null==L&&!v){let t=eF(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eO(f);L=r,M={[n.id]:t}}if(L&&!e.hydrationData&&te(L,f,e.history.location.pathname).active&&(L=null),L)if(L.some(e=>e.route.lazy))n=!1;else if(L.some(e=>e.route.loader))if(y.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=L.findIndex(e=>void 0!==r[e.route.id]);n=L.slice(0,e+1).every(e=>!eR(e.route,t,r))}else n=L.every(e=>!eR(e.route,t,r))}else n=null!=e.hydrationData;else n=!0;else if(n=!1,L=[],y.v7_partialHydration){let t=te(null,f,e.history.location.pathname);t.active&&t.matches&&(k=!0,L=t.matches)}let O={historyAction:e.history.action,location:e.history.location,matches:L,initialized:n,navigation:eh,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||M,fetchers:new Map,blockers:new Map},F=c.Pop,N=!1,B=!1,z=new Map,H=null,W=!1,$=!1,V=[],J=new Set,K=new Map,Y=0,q=-1,X=new Map,G=new Set,Q=new Map,Z=new Map,ee=new Set,et=new Map,er=new Map;function en(e,t){void 0===t&&(t={}),O=g({},O,e);let r=[],n=[];y.v7_fetcherPersist&&O.fetchers.forEach((e,t)=>{"idle"===e.state&&(ee.has(t)?n.push(t):r.push(t))}),ee.forEach(e=>{O.fetchers.has(e)||K.has(e)||n.push(e)}),[...b].forEach(e=>e(O,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),y.v7_fetcherPersist?(r.forEach(e=>O.fetchers.delete(e)),n.forEach(e=>eK(e))):n.forEach(e=>ee.delete(e))}function ea(t,n,a){var o,i;let l,s,{flushSync:u}=void 0===a?{}:a,d=null!=O.actionData&&null!=O.navigation.formMethod&&eV(O.navigation.formMethod)&&"loading"===O.navigation.state&&(null==(o=t.state)?void 0:o._isRedirect)!==!0;l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:d?O.actionData:null;let h=n.loaderData?eT(O.loaderData,n.loaderData,n.matches||[],n.errors):O.loaderData,p=O.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,ep));let m=!0===N||null!=O.navigation.formMethod&&eV(O.navigation.formMethod)&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;if(r&&(f=r,r=void 0),W||F===c.Pop||(F===c.Push?e.history.push(t,t.state):F===c.Replace&&e.history.replace(t,t.state)),F===c.Pop){let e=z.get(O.location.pathname);e&&e.has(t.pathname)?s={currentLocation:O.location,nextLocation:t}:z.has(t.pathname)&&(s={currentLocation:t,nextLocation:O.location})}else if(B){let e=z.get(O.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),z.set(O.location.pathname,e)),s={currentLocation:O.location,nextLocation:t}}en(g({},n,{actionData:l,loaderData:h,historyAction:F,location:t,initialized:!0,navigation:eh,revalidation:"idle",restoreScrollPosition:e9(t,n.matches||O.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:s,flushSync:!0===u}),F=c.Pop,N=!1,B=!1,W=!1,$=!1,V=[]}async function el(t,n,a){var i,l,s,u;let h;o&&o.abort(),o=null,F=t,W=!0===(a&&a.startUninterruptedRevalidation),i=O.location,l=O.matches,E&&C&&(E[e6(i,l)]=C()),N=!0===(a&&a.preventScrollReset),B=!0===(a&&a.enableViewTransition);let m=r||f,v=a&&a.overrideNavigation,w=null!=a&&a.initialHydration&&O.matches&&O.matches.length>0&&!k?O.matches:U(m,n,p),b=!0===(a&&a.flushSync);if(w&&O.initialized&&!$&&(s=O.location,u=n,s.pathname===u.pathname&&s.search===u.search&&(""===s.hash?""!==u.hash:s.hash===u.hash||""!==u.hash||!1))&&!(a&&a.submission&&eV(a.submission.formMethod)))return void ea(n,{matches:w},{flushSync:b});let S=te(w,m,n.pathname);if(S.active&&S.matches&&(w=S.matches),!w){let{error:e,notFoundMatches:t,route:r}=e5(n.pathname);ea(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:b});return}o=new AbortController;let R=ek(e.history,n,o.signal,a&&a.submission);if(a&&a.pendingError)h=[eM(w).route.id,{type:d.error,error:a.pendingError}];else if(a&&a.submission&&eV(a.submission.formMethod)){let t=await async function(t,r,n,a,o,i){var l;let s;if(void 0===i&&(i={}),eC(),en({navigation:{state:"submitting",location:r,formMethod:(l=n).formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text}},{flushSync:!0===i.flushSync}),o){let e=await tt(a,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eM(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:d.error,error:e.error}]}}if(e.matches)a=e.matches;else{let{notFoundMatches:e,error:t,route:n}=e5(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:d.error,error:t}]}}}let u=eY(a,r);if(u.route.action||u.route.lazy){if(s=(await eg("action",O,t,[u],a,null))[u.route.id],t.signal.aborted)return{shortCircuited:!0}}else s={type:d.error,error:eF(405,{method:t.method,pathname:r.pathname,routeId:u.route.id})};if(eH(s)){let r;return r=i&&null!=i.replace?i.replace:eL(s.response.headers.get("Location"),new URL(t.url),p,e.history)===O.location.pathname+O.location.search,await eu(t,s,!0,{submission:n,replace:r}),{shortCircuited:!0}}if(eI(s))throw eF(400,{type:"defer-action"});if(ez(s)){let e=eM(a,u.route.id);return!0!==(i&&i.replace)&&(F=c.Push),{matches:a,pendingActionResult:[e.route.id,s]}}return{matches:a,pendingActionResult:[u.route.id,s]}}(R,n,a.submission,w,S.active,{replace:a.replace,flushSync:b});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ez(r)&&ei(r.error)&&404===r.error.status){o=null,ea(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}w=t.matches||w,h=t.pendingActionResult,v=eX(n,a.submission),b=!1,S.active=!1,R=ek(e.history,R.url,R.signal)}let{shortCircuited:x,matches:P,loaderData:D,errors:L}=await async function(t,n,a,i,l,s,u,c,d,h,m){let v=l||eX(n,s),w=s||u||eq(v),b=!W&&(!y.v7_partialHydration||!d);if(i){if(b){let e=es(m);en(g({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await tt(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eM(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=e5(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let E=r||f,[S,R]=eS(e.history,O,a,w,n,y.v7_partialHydration&&!0===d,y.v7_skipActionErrorRevalidation,$,V,J,ee,Q,G,E,p,m);if(e8(e=>!(a&&a.some(t=>t.route.id===e))||S&&S.some(t=>t.route.id===e)),q=++Y,0===S.length&&0===R.length){let e=e1();return ea(n,g({matches:a,loaderData:{},errors:m&&ez(m[1])?{[m[0]]:m[1].error}:null},ej(m),e?{fetchers:new Map(O.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(b){let e={};if(!i){e.navigation=v;let t=es(m);void 0!==t&&(e.actionData=t)}R.length>0&&(R.forEach(e=>{let t=O.fetchers.get(e.key),r=eG(void 0,t?t.data:void 0);O.fetchers.set(e.key,r)}),e.fetchers=new Map(O.fetchers)),en(e,{flushSync:h})}R.forEach(e=>{eZ(e.key),e.controller&&K.set(e.key,e.controller)});let x=()=>R.forEach(e=>eZ(e.key));o&&o.signal.addEventListener("abort",x);let{loaderResults:C,fetcherResults:P}=await eE(O,a,S,R,t);if(t.signal.aborted)return{shortCircuited:!0};o&&o.signal.removeEventListener("abort",x),R.forEach(e=>K.delete(e.key));let D=eN(C);if(D)return await eu(t,D.result,!0,{replace:c}),{shortCircuited:!0};if(D=eN(P))return G.add(D.key),await eu(t,D.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:L,errors:k}=eU(O,a,C,m,R,P,et);et.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&et.delete(t)})}),y.v7_partialHydration&&d&&O.errors&&(k=g({},O.errors,k));let _=e1(),A=e7(q),U=_||A||R.length>0;return g({matches:a,loaderData:L,errors:k},U?{fetchers:new Map(O.fetchers)}:{})}(R,n,w,S.active,v,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,b,h);x||(o=null,ea(n,g({matches:P||w},ej(h),{loaderData:D,errors:L})))}function es(e){if(e&&!ez(e[1]))return{[e[0]]:e[1].data};if(O.actionData)if(0===Object.keys(O.actionData).length)return null;else return O.actionData}async function eu(t,r,n,a){let{submission:i,fetcherSubmission:u,preventScrollReset:d,replace:h}=void 0===a?{}:a;r.response.headers.has("X-Remix-Revalidate")&&($=!0);let f=r.response.headers.get("Location");R(f,"Expected a Location header on the redirect Response"),f=eL(f,new URL(t.url),p,e.history);let m=P(O.location,f,{_isRedirect:!0});if(s){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(em.test(f)){let r=e.history.createURL(f);t=r.origin!==l.location.origin||null==I(r.pathname,p)}if(t)return void(h?l.location.replace(f):l.location.assign(f))}o=null;let v=!0===h||r.response.headers.has("X-Remix-Replace")?c.Replace:c.Push,{formMethod:y,formAction:w,formEncType:b}=O.navigation;!i&&!u&&y&&w&&b&&(i=eq(O.navigation));let E=i||u;if(ed.has(r.response.status)&&E&&eV(E.formMethod))await el(v,m,{submission:g({},E,{formAction:f}),preventScrollReset:d||N,enableViewTransition:n?B:void 0});else{let e=eX(m,i);await el(v,m,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:d||N,enableViewTransition:n?B:void 0})}}async function eg(e,r,n,a,o,i){let l,s={};try{l=await async function(e,t,r,n,a,o,i,l){let s=a.map(e=>e.route.lazy?async function(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];R(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;x(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||_.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,g({},t(a),{lazy:void 0}))}(e.route,l,i):void 0),u=a.map((e,a)=>{let o=s[a],i=n.some(t=>t.route.id===e.route.id);return g({},e,{shouldLoad:i,resolve:async n=>(n&&"GET"===r.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?async function(e,t,r,n,a,o){let i,l,s=n=>{let i,s=new Promise((e,t)=>i=t);l=()=>i(),t.signal.addEventListener("abort",l);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:o},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (a?a(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),s])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([s(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else if(await n,a=r.route[e])i=await s(a);else{if("action"!==e)return{type:d.data,result:void 0};let n=new URL(t.url),a=n.pathname+n.search;throw eF(405,{method:t.method,pathname:a,routeId:r.route.id})}else if(a)i=await s(a);else{let e=new URL(t.url),r=e.pathname+e.search;throw eF(404,{pathname:r})}R(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:d.error,result:e}}finally{l&&t.signal.removeEventListener("abort",l)}return i}(t,r,e,o,n,void 0):Promise.resolve({type:d.data,result:void 0}))})}),c=await e({matches:u,request:r,params:a[0].params,fetcherKey:o,context:void 0});try{await Promise.all(s)}catch(e){}return c}(m,e,n,a,o,i,h,t)}catch(e){return a.forEach(t=>{s[t.route.id]={type:d.error,error:e}}),s}for(let[e,t]of Object.entries(l)){var u;if(e$((u=t).result)&&ec.has(u.result.status)){let r=t.result;s[e]={type:d.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(R(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!em.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=ew(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,o,p,y.v7_relativeSplatPath)}}else s[e]=await async function(e){var t,r,n,a,o,i,l,s,u;let{result:c,type:h}=e;if(e$(c)){let e;try{let t=c.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==c.body?null:await c.json():await c.text()}catch(e){return{type:d.error,error:e}}return h===d.error?{type:d.error,error:new eo(c.status,c.statusText,e),statusCode:c.status,headers:c.headers}:{type:d.data,data:e,statusCode:c.status,headers:c.headers}}if(h===d.error)return eW(c)?c.data instanceof Error?{type:d.error,error:c.data,statusCode:null==(n=c.init)?void 0:n.status,headers:null!=(a=c.init)&&a.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:new eo((null==(t=c.init)?void 0:t.status)||500,void 0,c.data),statusCode:ei(c)?c.status:void 0,headers:null!=(r=c.init)&&r.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:c,statusCode:ei(c)?c.status:void 0};return(u=c)&&"object"==typeof u&&"object"==typeof u.data&&"function"==typeof u.subscribe&&"function"==typeof u.cancel&&"function"==typeof u.resolveData?{type:d.deferred,deferredData:c,statusCode:null==(o=c.init)?void 0:o.status,headers:(null==(i=c.init)?void 0:i.headers)&&new Headers(c.init.headers)}:eW(c)?{type:d.data,data:c.data,statusCode:null==(l=c.init)?void 0:l.status,headers:null!=(s=c.init)&&s.headers?new Headers(c.init.headers):void 0}:{type:d.data,data:c}}(t)}return s}async function eE(t,r,n,a,o){let i=t.matches,l=eg("loader",t,o,n,r,null),s=Promise.all(a.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:d.error,error:eF(404,{pathname:r.path})}});{let n=(await eg("loader",t,ek(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),u=await l,c=(await s).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([async function(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!ex(c,u)&&(a&&a[u.route.id])!==void 0;eI(s)&&d&&await eJ(s,r,!1).then(e=>{e&&(t[l]=e)})}}(r,u,o.signal,i,t.loaderData),async function(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&eI(l)&&(R(i,"Expected an AbortController for revalidating fetcher deferred result"),await eJ(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}(r,c,a)]),{loaderResults:u,fetcherResults:c}}function eC(){$=!0,V.push(...e8()),Q.forEach((e,t)=>{K.has(t)&&J.add(t),eZ(t)})}function e_(e,t,r){void 0===r&&(r={}),O.fetchers.set(e,t),en({fetchers:new Map(O.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eA(e,t,r,n){void 0===n&&(n={});let a=eM(O.matches,t);eK(e),en({errors:{[a.route.id]:r},fetchers:new Map(O.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function eB(e){return Z.set(e,(Z.get(e)||0)+1),ee.has(e)&&ee.delete(e),O.fetchers.get(e)||ef}function eK(e){let t=O.fetchers.get(e);K.has(e)&&!(t&&"loading"===t.state&&X.has(e))&&eZ(e),Q.delete(e),X.delete(e),G.delete(e),y.v7_fetcherPersist&&ee.delete(e),J.delete(e),O.fetchers.delete(e)}function eZ(e){let t=K.get(e);t&&(t.abort(),K.delete(e))}function e0(e){for(let t of e){let e=eQ(eB(t).data);O.fetchers.set(t,e)}}function e1(){let e=[],t=!1;for(let r of G){let n=O.fetchers.get(r);R(n,"Expected fetcher: "+r),"loading"===n.state&&(G.delete(r),e.push(r),t=!0)}return e0(e),t}function e7(e){let t=[];for(let[r,n]of X)if(n<e){let e=O.fetchers.get(r);R(e,"Expected fetcher: "+r),"loading"===e.state&&(eZ(r),X.delete(r),t.push(r))}return e0(t),t.length>0}function e4(e){O.blockers.delete(e),er.delete(e)}function e2(e,t){let r=O.blockers.get(e)||ep;R("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(O.blockers);n.set(e,t),en({blockers:n})}function e3(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===er.size)return;er.size>1&&x(!1,"A router only supports one blocker at a time");let a=Array.from(er.entries()),[o,i]=a[a.length-1],l=O.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function e5(e){let t=eF(404,{pathname:e}),{matches:n,route:a}=eO(r||f);return e8(),{notFoundMatches:n,route:a,error:t}}function e8(e){let t=[];return et.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),et.delete(n))}),t}function e6(e,t){return S&&S(e,t.map(e=>j(e,O.loaderData)))||e.key}function e9(e,t){if(E){let r=E[e6(e,t)];if("number"==typeof r)return r}return null}function te(e,t,r){if(v){if(!e)return{active:!0,matches:T(t,r,p,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:T(t,r,p,!0)}}return{active:!1,matches:null}}async function tt(e,n,a,o){if(!v)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||f,s=h;try{await v({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||eP(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(f=[...f])}if(a.aborted)return{type:"aborted"};let u=U(l,n,p);if(u)return{type:"success",matches:u};let c=T(l,n,p,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return a={get basename(){return p},get future(){return y},get state(){return O},get routes(){return f},get window(){return l},initialize:function(){if(w=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(i){i(),i=void 0;return}x(0===er.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=e3({currentLocation:O.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{i=e});e.history.go(-1*a),e2(o,{state:"blocked",location:n,proceed(){e2(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(O.blockers);e.set(o,ep),en({blockers:e})}});return}return el(r,n)}),s){var t=l,r=z;try{let e=t.sessionStorage.getItem(ey);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ey,JSON.stringify(r))}catch(e){x(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(l,z);l.addEventListener("pagehide",e),H=()=>l.removeEventListener("pagehide",e)}return O.initialized||el(c.Pop,O.location,{initialHydration:!0}),a},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,r){if(E=e,C=t,S=r||null,!D&&O.navigation===eh){D=!0;let e=e9(O.location,O.matches);null!=e&&en({restoreScrollPosition:e})}return()=>{E=null,C=null,S=null}},navigate:async function t(r,n){if("number"==typeof r)return void e.history.go(r);let a=ew(O.location,O.matches,p,y.v7_prependBasename,r,y.v7_relativeSplatPath,null==n?void 0:n.fromRouteId,null==n?void 0:n.relative),{path:o,submission:i,error:l}=eb(y.v7_normalizeFormMethod,!1,a,n),s=O.location,u=P(O.location,o,n&&n.state);u=g({},u,e.history.encodeLocation(u));let d=n&&null!=n.replace?n.replace:void 0,h=c.Push;!0===d?h=c.Replace:!1===d||null!=i&&eV(i.formMethod)&&i.formAction===O.location.pathname+O.location.search&&(h=c.Replace);let f=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,m=!0===(n&&n.flushSync),v=e3({currentLocation:s,nextLocation:u,historyAction:h});return v?void e2(v,{state:"blocked",location:u,proceed(){e2(v,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),t(r,n)},reset(){let e=new Map(O.blockers);e.set(v,ep),en({blockers:e})}}):await el(h,u,{submission:i,pendingError:l,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:m})},fetch:function(t,n,a,i){if(u)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");eZ(t);let l=!0===(i&&i.flushSync),s=r||f,c=ew(O.location,O.matches,p,y.v7_prependBasename,a,y.v7_relativeSplatPath,n,null==i?void 0:i.relative),d=U(s,c,p),h=te(d,s,c);if(h.active&&h.matches&&(d=h.matches),!d)return void eA(t,n,eF(404,{pathname:c}),{flushSync:l});let{path:m,submission:v,error:g}=eb(y.v7_normalizeFormMethod,!0,c,i);if(g)return void eA(t,n,g,{flushSync:l});let w=eY(d,m),b=!0===(i&&i.preventScrollReset);v&&eV(v.formMethod)?async function(t,n,a,i,l,s,u,c,d){var h,m;function v(e){if(!e.route.action&&!e.route.lazy){let e=eF(405,{method:d.formMethod,pathname:a,routeId:n});return eA(t,n,e,{flushSync:u}),!0}return!1}if(eC(),Q.delete(t),!s&&v(i))return;let g=O.fetchers.get(t);e_(t,(h=d,m=g,{state:"submitting",formMethod:h.formMethod,formAction:h.formAction,formEncType:h.formEncType,formData:h.formData,json:h.json,text:h.text,data:m?m.data:void 0}),{flushSync:u});let w=new AbortController,b=ek(e.history,a,w.signal,d);if(s){let e=await tt(l,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eA(t,n,e.error,{flushSync:u});if(!e.matches)return void eA(t,n,eF(404,{pathname:a}),{flushSync:u});if(v(i=eY(l=e.matches,a)))return}K.set(t,w);let E=Y,S=(await eg("action",O,b,[i],l,t))[i.route.id];if(b.signal.aborted){K.get(t)===w&&K.delete(t);return}if(y.v7_fetcherPersist&&ee.has(t)){if(eH(S)||ez(S))return void e_(t,eQ(void 0))}else{if(eH(S))return(K.delete(t),q>E)?void e_(t,eQ(void 0)):(G.add(t),e_(t,eG(d)),eu(b,S,!1,{fetcherSubmission:d,preventScrollReset:c}));if(ez(S))return void eA(t,n,S.error)}if(eI(S))throw eF(400,{type:"defer-action"});let x=O.navigation.location||O.location,C=ek(e.history,x,w.signal),P=r||f,D="idle"!==O.navigation.state?U(P,O.navigation.location,p):O.matches;R(D,"Didn't find any matches after fetcher action");let L=++Y;X.set(t,L);let k=eG(d,S.data);O.fetchers.set(t,k);let[_,A]=eS(e.history,O,D,d,x,!1,y.v7_skipActionErrorRevalidation,$,V,J,ee,Q,G,P,p,[i.route.id,S]);A.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=O.fetchers.get(t),n=eG(void 0,r?r.data:void 0);O.fetchers.set(t,n),eZ(t),e.controller&&K.set(t,e.controller)}),en({fetchers:new Map(O.fetchers)});let T=()=>A.forEach(e=>eZ(e.key));w.signal.addEventListener("abort",T);let{loaderResults:j,fetcherResults:M}=await eE(O,D,_,A,C);if(w.signal.aborted)return;w.signal.removeEventListener("abort",T),X.delete(t),K.delete(t),A.forEach(e=>K.delete(e.key));let N=eN(j);if(N)return eu(C,N.result,!1,{preventScrollReset:c});if(N=eN(M))return G.add(N.key),eu(C,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:I}=eU(O,D,j,void 0,A,M,et);if(O.fetchers.has(t)){let e=eQ(S.data);O.fetchers.set(t,e)}e7(L),"loading"===O.navigation.state&&L>q?(R(F,"Expected pending action"),o&&o.abort(),ea(O.navigation.location,{matches:D,loaderData:B,errors:I,fetchers:new Map(O.fetchers)})):(en({errors:I,loaderData:eT(O.loaderData,B,D,I),fetchers:new Map(O.fetchers)}),$=!1)}(t,n,m,w,d,h.active,l,b,v):(Q.set(t,{routeId:n,path:m}),async function(t,r,n,a,o,i,l,s,u){let c=O.fetchers.get(t);e_(t,eG(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,h=ek(e.history,n,d.signal);if(i){let e=await tt(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eA(t,r,e.error,{flushSync:l});if(!e.matches)return void eA(t,r,eF(404,{pathname:n}),{flushSync:l});a=eY(o=e.matches,n)}K.set(t,d);let f=Y,p=(await eg("loader",O,h,[a],o,t))[a.route.id];if(eI(p)&&(p=await eJ(p,h.signal,!0)||p),K.get(t)===d&&K.delete(t),!h.signal.aborted){if(ee.has(t))return void e_(t,eQ(void 0));if(eH(p))if(q>f)return void e_(t,eQ(void 0));else{G.add(t),await eu(h,p,!1,{preventScrollReset:s});return}if(ez(p))return void eA(t,r,p.error);R(!eI(p),"Unhandled fetcher deferred data"),e_(t,eQ(p.data))}}(t,n,m,w,d,h.active,l,b,v))},revalidate:function(){if(eC(),en({revalidation:"loading"}),"submitting"!==O.navigation.state){if("idle"===O.navigation.state)return void el(O.historyAction,O.location,{startUninterruptedRevalidation:!0});el(F||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:!0===B})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eB,deleteFetcher:function(e){let t=(Z.get(e)||0)-1;t<=0?(Z.delete(e),ee.add(e),y.v7_fetcherPersist||eK(e)):Z.set(e,t),en({fetchers:new Map(O.fetchers)})},dispose:function(){w&&w(),H&&H(),b.clear(),o&&o.abort(),O.fetchers.forEach((e,t)=>eK(t)),O.blockers.forEach((e,t)=>e4(t))},getBlocker:function(e,t){let r=O.blockers.get(e)||ep;return er.get(e)!==t&&er.set(e,t),r},deleteBlocker:e4,patchRoutes:function(e,n){let a=null==r;eP(e,n,r||f,h,t),a&&(f=[...f],en({}))},_internalFetchControllers:K,_internalActiveDeferreds:et,_internalSetRoutes:function(e){r=A(e,t,void 0,h={})}}}function ew(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=J(a||".",V(s,o),I(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=eK(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:Y([r,c.pathname])),D(c)}function eb(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!eu.has(a.toLowerCase())))return{path:r,error:eF(405,{method:n.formMethod})};let l=()=>({path:r,error:eF(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eB(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eV(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eV(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(R("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=e_(n.formData),i=n.formData;else if(n.body instanceof FormData)o=e_(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eA(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eA(o)}catch(e){return l()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eV(d.formMethod))return{path:r,submission:d};let h=L(r);return t&&h.search&&eK(h.search)&&o.append("index",""),h.search="?"+o,{path:D(h),submission:d}}function eE(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function eS(e,t,r,n,a,o,i,l,s,u,c,d,h,f,p,m){let v=m?ez(m[1])?m[1].error:m[1].data:void 0,y=e.createURL(t.location),w=e.createURL(a),b=r;o&&t.errors?b=eE(r,Object.keys(t.errors)[0],!0):m&&ez(m[1])&&(b=eE(r,m[0]));let E=m?m[1].statusCode:void 0,S=i&&E&&E>=400,R=b.filter((e,r)=>{var a,i,u;let c,d,{route:h}=e;if(h.lazy)return!0;if(null==h.loader)return!1;if(o)return eR(h,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],u=e,c=!i||u.route.id!==i.route.id,d=void 0===a[u.route.id],c||d||s.some(t=>t===e.route.id))return!0;let f=t.matches[r];return eC(e,g({currentUrl:y,currentParams:f.params,nextUrl:w,nextParams:e.params},n,{actionResult:v,actionStatus:E,defaultShouldRevalidate:!S&&(l||y.pathname+y.search===w.pathname+w.search||y.search!==w.search||ex(f,e))}))}),x=[];return d.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let i=U(f,e.path,p);if(!i)return void x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let s=t.fetchers.get(a),d=eY(i,e.path),m=!1;h.has(a)?m=!1:u.has(a)?(u.delete(a),m=!0):m=s&&"idle"!==s.state&&void 0===s.data?l:eC(d,g({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:v,actionStatus:E,defaultShouldRevalidate:!S&&l})),m&&x.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:d,controller:new AbortController})}),[R,x]}function eR(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function ex(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function eC(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function eP(e,t,r,n,a){var o;let i;if(e){let t=n[e];R(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=A(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function eD(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}function eL(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(em.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e);if(a.includes(n.protocol))throw Error("Invalid redirect location");let o=null!=I(n.pathname,r);if(n.origin===t.origin&&o)return K(n.pathname)+n.search+n.hash}try{let t=n.createURL(e);if(a.includes(t.protocol))throw Error("Invalid redirect location")}catch(e){}return e}function ek(e,t,r,n){let a=e.createURL(eB(t)).toString(),o={signal:r};if(n&&eV(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=e_(n.formData):o.body=n.formData}return new Request(a,o)}function e_(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eA(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eU(e,t,r,n,a,o,i){let l,s,u,c,d,h,{loaderData:f,errors:p}=(s={},u=null,c=!1,d={},h=n&&ez(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(R(!eH(a),"Cannot handle redirect results in processLoaderData"),ez(a)){let e=a.error;void 0!==h&&(e=h,h=void 0),u=u||{},1;{let r=eM(t,n);null==u[r.route.id]&&(u[r.route.id]=e)}s[n]=void 0,c||(c=!0,l=ei(a.error)?a.error.status:500),a.headers&&(d[n]=a.headers)}else eI(a)?(i.set(n,a.deferredData),s[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||c||(l=a.statusCode)):(s[n]=a.data,a.statusCode&&200!==a.statusCode&&!c&&(l=a.statusCode)),a.headers&&(d[n]=a.headers)}),void 0!==h&&n&&(u={[n[0]]:h},s[n[0]]=void 0),{loaderData:s,errors:u,statusCode:l||200,loaderHeaders:d});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(R(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(ez(i)){let t=eM(e.matches,null==n?void 0:n.route.id);p&&p[t.route.id]||(p=g({},p,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eH(i))R(!1,"Unhandled fetcher revalidation redirect");else if(eI(i))R(!1,"Unhandled fetcher deferred data");else{let t=eQ(i.data);e.fetchers.set(r,t)}}),{loaderData:f,errors:p}}function eT(e,t,r,n){let a=g({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function ej(e){return e?ez(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eM(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eO(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eF(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new eo(e||500,l,Error(s),!0)}function eN(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eH(n))return{key:r,result:n}}}function eB(e){let t="string"==typeof e?L(e):e;return D(g({},t,{hash:""}))}function eI(e){return e.type===d.deferred}function ez(e){return e.type===d.error}function eH(e){return(e&&e.type)===d.redirect}function eW(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function e$(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eV(e){return es.has(e.toLowerCase())}async function eJ(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:d.data,data:e.deferredData.unwrappedData}}catch(e){return{type:d.error,error:e}}return{type:d.data,data:e.deferredData.data}}}function eK(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eY(e,t){let r="string"==typeof t?L(t).search:t.search;if(e[e.length-1].route.index&&eK(r||""))return e[e.length-1];let n=$(e);return n[n.length-1]}function eq(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eX(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eG(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eQ(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function eZ(){return(eZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}Symbol("deferred");let e0=p.createContext(null),e1=p.createContext(null),e7=p.createContext(null),e4=p.createContext(null),e2=p.createContext(null),e3=p.createContext({outlet:null,matches:[],isDataRoute:!1}),e5=p.createContext(null);function e8(e,t){let{relative:r}=void 0===t?{}:t;e6()||R(!1);let{basename:n,navigator:a}=p.useContext(e4),{hash:o,pathname:i,search:l}=ts(e,{relative:r}),s=i;return"/"!==n&&(s="/"===i?n:Y([n,i])),a.createHref({pathname:s,search:l,hash:o})}function e6(){return null!=p.useContext(e2)}function e9(){return e6()||R(!1),p.useContext(e2).location}function te(){return p.useContext(e2).navigationType}function tt(e){e6()||R(!1);let{pathname:t}=e9();return p.useMemo(()=>N(e,B(t)),[t,e])}function tr(e){p.useContext(e4).static||p.useLayoutEffect(e)}function tn(){let{isDataRoute:e}=p.useContext(e3);return e?function(){let{router:e}=ty(tm.UseNavigateStable),t=tw(tv.UseNavigateStable),r=p.useRef(!1);return tr(()=>{r.current=!0}),p.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,eZ({fromRouteId:t},a)))},[e,t])}():function(){e6()||R(!1);let e=p.useContext(e0),{basename:t,future:r,navigator:n}=p.useContext(e4),{matches:a}=p.useContext(e3),{pathname:o}=e9(),i=JSON.stringify(V(a,r.v7_relativeSplatPath)),l=p.useRef(!1);return tr(()=>{l.current=!0}),p.useCallback(function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof r)return void n.go(r);let s=J(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:Y([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)},[t,n,i,o,e])}()}let ta=p.createContext(null);function to(){return p.useContext(ta)}function ti(e){let t=p.useContext(e3).outlet;return t?p.createElement(ta.Provider,{value:e},t):t}function tl(){let{matches:e}=p.useContext(e3),t=e[e.length-1];return t?t.params:{}}function ts(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=p.useContext(e4),{matches:a}=p.useContext(e3),{pathname:o}=e9(),i=JSON.stringify(V(a,n.v7_relativeSplatPath));return p.useMemo(()=>J(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function tu(e,t){return tc(e,t)}function tc(e,t,r,n){let a;e6()||R(!1);let{navigator:o}=p.useContext(e4),{matches:i}=p.useContext(e3),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let d=e9();if(t){var h;let e="string"==typeof t?L(t):t;"/"===u||(null==(h=e.pathname)?void 0:h.startsWith(u))||R(!1),a=e}else a=d;let f=a.pathname||"/",m=f;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=U(e,{pathname:m}),y=tp(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Y([u,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:Y([u,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&y?p.createElement(e2.Provider,{value:{location:eZ({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:c.Pop}},y):y}let td=p.createElement(function(){let e=tD(),t=ei(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class th extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?p.createElement(e3.Provider,{value:this.props.routeContext},p.createElement(e5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tf(e){let{routeContext:t,match:r,children:n}=e,a=p.useContext(e0);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(e3.Provider,{value:t},n)}function tp(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,l=null==(a=r)?void 0:a.errors;if(null!=l){let e=i.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id])!==void 0);e>=0||R(!1),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){s=!0,i=u>=0?i.slice(0,u+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{var o;let c,d=!1,h=null,f=null;r&&(c=l&&n.route.id?l[n.route.id]:void 0,h=n.route.errorElement||td,s&&(u<0&&0===a?(o="route-fallback",tU[o]||(tU[o]=!0),d=!0,f=null):u===a&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=c?h:d?f:n.route.Component?p.createElement(n.route.Component,null):n.route.element?n.route.element:e,p.createElement(tf,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?p.createElement(th,{location:r.location,revalidation:r.revalidation,component:h,error:c,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var tm=((o=tm||{}).UseBlocker="useBlocker",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o),tv=((i=tv||{}).UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i);function ty(e){let t=p.useContext(e0);return t||R(!1),t}function tg(e){let t=p.useContext(e1);return t||R(!1),t}function tw(e){let t,r=((t=p.useContext(e3))||R(!1),t),n=r.matches[r.matches.length-1];return n.route.id||R(!1),n.route.id}function tb(){return tw(tv.UseRouteId)}function tE(){return tg(tv.UseNavigation).navigation}function tS(){let e=ty(tm.UseRevalidator),t=tg(tv.UseRevalidator);return p.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function tR(){let{matches:e,loaderData:t}=tg(tv.UseMatches);return p.useMemo(()=>e.map(e=>j(e,t)),[e,t])}function tx(){let e=tg(tv.UseLoaderData),t=tw(tv.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function tC(e){return tg(tv.UseRouteLoaderData).loaderData[e]}function tP(){let e=tg(tv.UseActionData),t=tw(tv.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function tD(){var e;let t=p.useContext(e5),r=tg(tv.UseRouteError),n=tw(tv.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function tL(){let e=p.useContext(e7);return null==e?void 0:e._data}function tk(){let e=p.useContext(e7);return null==e?void 0:e._error}let t_=0;function tA(e){let{router:t,basename:r}=ty(tm.UseBlocker),n=tg(tv.UseBlocker),[a,o]=p.useState(""),i=p.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:eZ({},n,{pathname:I(n.pathname,r)||n.pathname}),nextLocation:eZ({},a,{pathname:I(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return p.useEffect(()=>{let e=String(++t_);return o(e),()=>t.deleteBlocker(e)},[t]),p.useEffect(()=>{""!==a&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):ep}let tU={};function tT(e,t){(null==e||e.v7_startTransition,(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&void 0!==t.v7_relativeSplatPath,t)&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}let tj=m.startTransition;function tM(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=p.useRef();null==i.current&&(i.current=b({initialEntries:n,initialIndex:a,v5Compat:!0}));let l=i.current,[s,u]=p.useState({action:l.action,location:l.location}),{v7_startTransition:c}=o||{},d=p.useCallback(e=>{c&&tj?tj(()=>u(e)):u(e)},[u,c]);return p.useLayoutEffect(()=>l.listen(d),[l,d]),p.useEffect(()=>tT(o),[o]),p.createElement(tB,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:o})}function tO(e){let{to:t,replace:r,state:n,relative:a}=e;e6()||R(!1);let{future:o,static:i}=p.useContext(e4),{matches:l}=p.useContext(e3),{pathname:s}=e9(),u=tn(),c=JSON.stringify(J(t,V(l,o.v7_relativeSplatPath),s,"path"===a));return p.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:a}),[u,c,a,r,n]),null}function tF(e){return ti(e.context)}function tN(e){R(!1)}function tB(e){let{basename:t="/",children:r=null,location:n,navigationType:a=c.Pop,navigator:o,static:i=!1,future:l}=e;e6()&&R(!1);let s=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:s,navigator:o,static:i,future:eZ({v7_relativeSplatPath:!1},l)}),[s,l,o,i]);"string"==typeof n&&(n=L(n));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:v="default"}=n,y=p.useMemo(()=>{let e=I(d,s);return null==e?null:{location:{pathname:e,search:h,hash:f,state:m,key:v},navigationType:a}},[s,d,h,f,m,v,a]);return null==y?null:p.createElement(e4.Provider,{value:u},p.createElement(e2.Provider,{children:r,value:y}))}function tI(e){let{children:t,location:r}=e;return tc(tJ(t),r)}function tz(e){let{children:t,errorElement:r,resolve:n}=e;return p.createElement(t$,{resolve:n,errorElement:r},p.createElement(tV,null,t))}var tH=((l=tH||{})[l.pending=0]="pending",l[l.success=1]="success",l[l.error=2]="error",l);let tW=new Promise(()=>{});class t$ extends p.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=tH.pending;if(r instanceof Promise)if(this.state.error){a=tH.error;let e=this.state.error;Object.defineProperty(n=Promise.reject().catch(()=>{}),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?a="_error"in(n=r)?tH.error:"_data"in n?tH.success:tH.pending:(a=tH.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else a=tH.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===tH.error&&n._error instanceof Z)throw tW;if(a===tH.error&&!t)throw n._error;if(a===tH.error)return p.createElement(e7.Provider,{value:n,children:t});if(a===tH.success)return p.createElement(e7.Provider,{value:n,children:e});throw n}}function tV(e){let{children:t}=e,r=tL(),n="function"==typeof t?t(r):t;return p.createElement(p.Fragment,null,n)}function tJ(e,t){void 0===t&&(t=[]);let r=[];return p.Children.forEach(e,(e,n)=>{if(!p.isValidElement(e))return;let a=[...t,n];if(e.type===p.Fragment)return void r.push.apply(r,tJ(e.props.children,a));e.type!==tN&&R(!1),e.props.index&&e.props.children&&R(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=tJ(e.props.children,a)),r.push(o)}),r}function tK(e){return tp(e)}function tY(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function tq(e,t){return eg({basename:null==t?void 0:t.basename,future:eZ({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:b({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:tY,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}function tX(){return(tX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function tG(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}let tQ="application/x-www-form-urlencoded";function tZ(e){return null!=e&&"string"==typeof e.tagName}function t0(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let t1=null,t7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t4(e){return null==e||t7.has(e)?e:null}let t2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],t3=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],t5=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function t8(e,t){return eg({basename:null==t?void 0:t.basename,future:tX({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:E({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||t9(),routes:e,mapRouteProperties:tY,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function t6(e,t){return eg({basename:null==t?void 0:t.basename,future:tX({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:S({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||t9(),routes:e,mapRouteProperties:tY,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function t9(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=tX({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new eo(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let re=p.createContext({isTransitioning:!1}),rt=p.createContext(new Map),rr=m.startTransition,rn=y.flushSync,ra=m.useId;function ro(e){rn?rn(e):e()}class ri{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function rl(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=p.useState(r.state),[i,l]=p.useState(),[s,u]=p.useState({isTransitioning:!1}),[c,d]=p.useState(),[h,f]=p.useState(),[m,v]=p.useState(),y=p.useRef(new Map),{v7_startTransition:g}=n||{},w=p.useCallback(e=>{if(g)rr?rr(e):e();else e()},[g]),b=p.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),n.forEach(e=>y.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?ro(()=>o(e)):w(()=>o(e)));if(a){ro(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{ro(()=>o(e))});t.finished.finally(()=>{ro(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})})}),ro(()=>f(t));return}h?(c&&c.resolve(),h.skipTransition(),v({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),u({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,h,c,y,w]);p.useLayoutEffect(()=>r.subscribe(b),[r,b]),p.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new ri)},[s]),p.useEffect(()=>{if(c&&i&&r.window){let e=c.promise,t=r.window.document.startViewTransition(async()=>{w(()=>o(i)),await e});t.finished.finally(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})}),f(t)}},[w,i,c,r.window]),p.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,h,a.location,i]),p.useEffect(()=>{!s.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[s.isTransitioning,m]),p.useEffect(()=>{},[]);let E=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),S=r.basename||"/",R=p.useMemo(()=>({router:r,navigator:E,static:!1,basename:S}),[r,E,S]),x=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.useEffect(()=>tT(n,r.future),[n,r.future]),p.createElement(p.Fragment,null,p.createElement(e0.Provider,{value:R},p.createElement(e1.Provider,{value:a},p.createElement(rt.Provider,{value:y.current},p.createElement(re.Provider,{value:s},p.createElement(tB,{basename:S,location:a.location,navigationType:a.historyAction,navigator:E,future:x},a.initialized||r.future.v7_partialHydration?p.createElement(rs,{routes:r.routes,future:r.future,state:a}):t))))),null)}let rs=p.memo(function(e){let{routes:t,future:r,state:n}=e;return tc(t,void 0,n,r)});function ru(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=E({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&rr?rr(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tT(n),[n]),p.createElement(tB,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rc(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=S({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&rr?rr(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tT(n),[n]),p.createElement(tB,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rd(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=p.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},s=p.useCallback(e=>{l&&rr?rr(()=>i(e)):i(e)},[i,l]);return p.useLayoutEffect(()=>a.listen(s),[a,s]),p.useEffect(()=>tT(n),[n]),p.createElement(tB,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let rh="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,rf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rp=p.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:u,preventScrollReset:c,viewTransition:d}=e,h=tG(e,t2),{basename:f}=p.useContext(e4),m=!1;if("string"==typeof u&&rf.test(u)&&(r=u,rh))try{let e=new URL(window.location.href),t=new URL(u.startsWith("//")?e.protocol+u:u),r=I(t.pathname,f);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(e){}let v=e8(u,{relative:a}),y=rb(u,{replace:i,state:l,target:s,preventScrollReset:c,relative:a,viewTransition:d});return p.createElement("a",tX({},h,{href:r||v,onClick:m||o?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:s}))}),rm=p.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:l,to:s,viewTransition:u,children:c}=e,d=tG(e,t3),h=ts(s,{relative:d.relative}),f=e9(),m=p.useContext(e1),{navigator:v,basename:y}=p.useContext(e4),g=null!=m&&rT(h)&&!0===u,w=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,b=f.pathname,E=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;a||(b=b.toLowerCase(),E=E?E.toLowerCase():null,w=w.toLowerCase()),E&&y&&(E=I(E,y)||E);let S="/"!==w&&w.endsWith("/")?w.length-1:w.length,R=b===w||!i&&b.startsWith(w)&&"/"===b.charAt(S),x=null!=E&&(E===w||!i&&E.startsWith(w)&&"/"===E.charAt(w.length)),C={isActive:R,isPending:x,isTransitioning:g},P=R?n:void 0;r="function"==typeof o?o(C):[o,R?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let D="function"==typeof l?l(C):l;return p.createElement(rp,tX({},d,{"aria-current":P,className:r,ref:t,style:D,to:s,viewTransition:u}),"function"==typeof c?c(C):c)}),rv=p.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:l="get",action:s,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:h}=e,f=tG(e,t5),m=rx(),v=rC(s,{relative:c}),y="get"===l.toLowerCase()?"get":"post";return p.createElement("form",tX({ref:t,method:y,action:v,onSubmit:a?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:h})}},f))});function ry(e){let{getKey:t,storageKey:r}=e;return r_({getKey:t,storageKey:r}),null}function rg(e){let t=p.useContext(e0);return t||R(!1),t}function rw(e){let t=p.useContext(e1);return t||R(!1),t}function rb(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,s=tn(),u=e9(),c=ts(e,{relative:i});return p.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==n?n:D(u)===D(c),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[u,s,c,n,a,r,e,o,i,l])}function rE(e){let t=p.useRef(t0(e)),r=p.useRef(!1),n=e9(),a=p.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=t0(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=tn(),i=p.useCallback((e,t)=>{let n=t0("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(s=h||(h={})).UseScrollRestoration="useScrollRestoration",s.UseSubmit="useSubmit",s.UseSubmitFetcher="useSubmitFetcher",s.UseFetcher="useFetcher",s.useViewTransitionState="useViewTransitionState",(u=f||(f={})).UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration";let rS=0,rR=()=>"__"+String(++rS)+"__";function rx(){let{router:e}=rg(h.UseSubmit),{basename:t}=p.useContext(e4),r=tb();return p.useCallback(function(n,a){if(void 0===a&&(a={}),"u"<typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:o,method:i,encType:l,formData:s,body:u}=function(e,t){let r,n,a,o,i;if(tZ(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?I(i,t):null,r=e.getAttribute("method")||"get",a=t4(e.getAttribute("enctype"))||tQ,o=new FormData(e)}else if(tZ(e)&&"button"===e.tagName.toLowerCase()||tZ(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?I(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=t4(e.getAttribute("formenctype"))||t4(i.getAttribute("enctype"))||tQ,o=new FormData(i,e),!function(){if(null===t1)try{new FormData(document.createElement("form"),0),t1=!1}catch(e){t1=!0}return t1}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else if(tZ(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=tQ,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||rR();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function rC(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=p.useContext(e4),a=p.useContext(e3);a||R(!1);let[o]=a.matches.slice(-1),i=tX({},ts(e||".",{relative:r})),l=e9();if(null==e){i.search=l.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?"?"+r:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:Y([n,i.pathname])),D(i)}function rP(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=rg(h.UseFetcher),a=rw(f.UseFetcher),o=p.useContext(rt),i=p.useContext(e3),l=null==(t=i.matches[i.matches.length-1])?void 0:t.route.id;o||R(!1),i||R(!1),null==l&&R(!1);let s=ra?ra():"",[u,c]=p.useState(r||s);r&&r!==u?c(r):u||c(rR()),p.useEffect(()=>(n.getFetcher(u),()=>{n.deleteFetcher(u)}),[n,u]);let d=p.useCallback((e,t)=>{l||R(!1),n.fetch(u,l,e,t)},[u,l,n]),m=rx(),v=p.useCallback((e,t)=>{m(e,tX({},t,{navigate:!1,fetcherKey:u}))},[u,m]),y=p.useMemo(()=>p.forwardRef((e,t)=>p.createElement(rv,tX({},e,{navigate:!1,fetcherKey:u,ref:t}))),[u]),g=a.fetchers.get(u)||ef,w=o.get(u);return p.useMemo(()=>tX({Form:y,submit:v,load:d},g,{data:w}),[y,v,d,g,w])}function rD(){return Array.from(rw(f.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return tX({},r,{key:t})})}let rL="react-router-scroll-positions",rk={};function r_(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=rg(h.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:o}=rw(f.UseScrollRestoration),{basename:i}=p.useContext(e4),l=e9(),s=tR(),u=tE();p.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e){let{capture:t}={};p.useEffect(()=>{let r=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,t])}(p.useCallback(()=>{"idle"===u.state&&(rk[(t?t(l,s):null)||l.key]=window.scrollY);try{sessionStorage.setItem(r||rL,JSON.stringify(rk))}catch(e){}window.history.scrollRestoration="auto"},[r,t,u.state,l,s])),"u">typeof document&&(p.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||rL);e&&(rk=JSON.parse(e))}catch(e){}},[r]),p.useLayoutEffect(()=>{let e=t&&"/"!==i?(e,r)=>t(tX({},e,{pathname:I(e.pathname,i)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(rk,()=>window.scrollY,e);return()=>r&&r()},[n,i,t]),p.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==o&&window.scrollTo(0,0)}},[l,a,o]))}function rA(e,t){let{capture:r}=t||{};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function rU(e){let{when:t,message:r}=e,n=tA(t);p.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),p.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function rT(e,t){void 0===t&&(t={});let r=p.useContext(re);null==r&&R(!1);let{basename:n}=rg(h.useViewTransitionState),a=ts(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=I(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=I(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=N(a.pathname,i)||null!=N(a.pathname,o)}}}]);
1
+ /*! LICENSE: 07.f2f50f0b10.js.LICENSE.txt */
2
+ "use strict";(self.chunk_PulzrTimeSeriesChart_0_1_3=self.chunk_PulzrTimeSeriesChart_0_1_3||[]).push([["07"],{iHa(e,t,r){r.r(t),r.d(t,{AbortedDeferredError:()=>Z,Await:()=>tz,BrowserRouter:()=>ru,Form:()=>rv,HashRouter:()=>rc,Link:()=>rp,MemoryRouter:()=>tM,NavLink:()=>rm,Navigate:()=>tO,NavigationType:()=>c,Outlet:()=>tF,Route:()=>tN,Router:()=>tB,RouterProvider:()=>rl,Routes:()=>tI,ScrollRestoration:()=>ry,UNSAFE_DataRouterContext:()=>e0,UNSAFE_DataRouterStateContext:()=>e1,UNSAFE_ErrorResponseImpl:()=>eo,UNSAFE_FetchersContext:()=>rt,UNSAFE_LocationContext:()=>e2,UNSAFE_NavigationContext:()=>e4,UNSAFE_RouteContext:()=>e3,UNSAFE_ViewTransitionContext:()=>re,UNSAFE_useRouteId:()=>tb,UNSAFE_useScrollRestoration:()=>r_,createBrowserRouter:()=>t8,createHashRouter:()=>t6,createMemoryRouter:()=>tq,createPath:()=>D,createRoutesFromChildren:()=>tJ,createRoutesFromElements:()=>tJ,createSearchParams:()=>t0,defer:()=>et,generatePath:()=>F,isRouteErrorResponse:()=>ei,json:()=>Q,matchPath:()=>N,matchRoutes:()=>U,parsePath:()=>L,redirect:()=>er,redirectDocument:()=>en,renderMatches:()=>tK,replace:()=>ea,resolvePath:()=>z,unstable_HistoryRouter:()=>rd,unstable_usePrompt:()=>rU,useActionData:()=>tP,useAsyncError:()=>tk,useAsyncValue:()=>tL,useBeforeUnload:()=>rA,useBlocker:()=>tA,useFetcher:()=>rP,useFetchers:()=>rD,useFormAction:()=>rC,useHref:()=>e8,useInRouterContext:()=>e6,useLinkClickHandler:()=>rb,useLoaderData:()=>tx,useLocation:()=>e9,useMatch:()=>tt,useMatches:()=>tR,useNavigate:()=>tn,useNavigation:()=>tE,useNavigationType:()=>te,useOutlet:()=>ti,useOutletContext:()=>to,useParams:()=>tl,useResolvedPath:()=>ts,useRevalidator:()=>tS,useRouteError:()=>tD,useRouteLoaderData:()=>tC,useRoutes:()=>tu,useSearchParams:()=>rE,useSubmit:()=>rx,useViewTransitionState:()=>rT});var n,a,o,i,l,s,u,c,d,h,f,p=r("IF"),m=r.t(p,2),v=r("th"),y=r.t(v,2);function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}(n=c||(c={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE";let w="popstate";function b(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:n,v5Compat:a=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let o=s(null==n?t.length-1:n),i=c.Pop,l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(e,r,n){void 0===r&&(r=null);let a=P(t?t[o].pathname:"/",e,r,n);return x("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:D(e)}return{get index(){return o},get action(){return i},get location(){return t[o]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?L(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){i=c.Push;let n=u(e,r);o+=1,t.splice(o,t.length,n),a&&l&&l({action:i,location:n,delta:1})},replace(e,r){i=c.Replace;let n=u(e,r);t[o]=n,a&&l&&l({action:i,location:n,delta:0})},go(e){i=c.Pop;let r=s(o+e),n=t[r];o=r,l&&l({action:i,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}function E(e){return void 0===e&&(e={}),k(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return P("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:D(t)},null,e)}function S(e){return void 0===e&&(e={}),k(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=L(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),P("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:D(t))},function(e,t){x("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function R(e,t){if(!1===e||null==e)throw Error(t)}function x(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function C(e,t){return{usr:e.state,key:e.key,idx:t}}function P(e,t,r,n){return void 0===r&&(r=null),g({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?L(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function D(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function L(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function k(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=c.Pop,s=null,u=d();function d(){return(i.state||{idx:null}).idx}function h(){l=c.Pop;let e=d(),t=null==e?null:e-u;u=e,s&&s({action:l,location:p.location,delta:t})}function f(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:D(e);return R(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==u&&(u=0,i.replaceState(g({},i.state,{idx:u}),""));let p={get action(){return l},get location(){return e(a,i)},listen(e){if(s)throw Error("A history only accepts one active listener");return a.addEventListener(w,h),s=e,()=>{a.removeEventListener(w,h),s=null}},createHref:e=>t(a,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=c.Push;let n=P(p.location,e,t);r&&r(n,e);let h=C(n,u=d()+1),f=p.createHref(n);try{i.pushState(h,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(f)}o&&s&&s({action:l,location:p.location,delta:1})},replace:function(e,t){l=c.Replace;let n=P(p.location,e,t);r&&r(n,e);let a=C(n,u=d()),h=p.createHref(n);i.replaceState(a,"",h),o&&s&&s({action:l,location:p.location,delta:0})},go:e=>i.go(e)};return p}(a=d||(d={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";let _=new Set(["lazy","caseSensitive","path","id","index","children"]);function A(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(R(!0!==e.index||!e.children,"Cannot specify children on an index route"),R(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=g({},e,t(e),{id:i});return n[i]=r,r}{let r=g({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=A(e.children,t,o,n)),r}})}function U(e,t,r){return void 0===r&&(r="/"),T(e,t,r,!1)}function T(e,t,r,n){let a=I(("string"==typeof t?L(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,d={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};d.relativePath.startsWith("/")&&(R(d.relativePath.startsWith(a),'Absolute route path "'+d.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),d.relativePath=d.relativePath.slice(a.length));let h=Y([a,d.relativePath]),f=n.concat(d);t.children&&t.children.length>0&&(R(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+h+'".'),e(t.children,r,f,h)),(null!=t.path||t.index)&&r.push({path:h,score:(l=h,s=t.index,c=(u=l.split("/")).length,u.some(O)&&(c+=-2),s&&(c+=2),u.filter(e=>!O(e)).reduce((e,t)=>e+(M.test(t)?3:""===t?1:10),c)),routesMeta:f})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null,l=B(a);for(let e=0;null==i&&e<o.length;++e)i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=N({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=N({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:Y([o,c.pathname]),pathnameBase:q(Y([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=Y([o,c.pathnameBase]))}return i}(o[e],l,n);return i}function j(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let M=/^:[\w-]+$/,O=e=>"*"===e;function F(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(x(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return R("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function N(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),x("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=h[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=h[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function B(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return x(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function z(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"==typeof e?L(e):e;return{pathname:r?(r=K(r)).startsWith("/")?H(r.substring(1),"/"):H(r,t):t,search:X(n),hash:G(a)}}function H(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function W(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function $(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function V(e,t){let r=$(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function J(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=L(e):(R(!(a=g({},e)).pathname||!a.pathname.includes("?"),W("?","pathname","search",a)),R(!a.pathname||!a.pathname.includes("#"),W("#","pathname","hash",a)),R(!a.search||!a.search.includes("#"),W("#","search","hash",a)));let i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=z(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}let K=e=>e.replace(/\/\/+/g,"/"),Y=e=>K(e.join("/")),q=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),X=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",G=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",Q=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),g({},r,{headers:n}))};class Z extends Error{}class ee{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],R(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new Z("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof Z)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return R(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:function(e){if(!(e instanceof Promise&&!0===e._tracked))return e;if(e._error)throw e._error;return e._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}let et=function(e,t){return void 0===t&&(t={}),new ee(e,"number"==typeof t?{status:t}:t)},er=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,g({},r,{headers:n}))},en=(e,t)=>{let r=er(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},ea=(e,t)=>{let r=er(e,t);return r.headers.set("X-Remix-Replace","true"),r};class eo{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function ei(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let el=["post","put","patch","delete"],es=new Set(el),eu=new Set(["get",...el]),ec=new Set([301,302,303,307,308]),ed=new Set([307,308]),eh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ef={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ep={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},em=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ev=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ey="remix-router-transitions";function eg(e){let t,r,n,a,o,i,l=e.window?e.window:"u">typeof window?window:void 0,s=void 0!==l&&void 0!==l.document&&void 0!==l.document.createElement,u=!s;if(R(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=ev;let h={},f=A(e.routes,t,void 0,h),p=e.basename||"/",m=e.dataStrategy||eD,v=e.patchRoutesOnNavigation,y=g({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),w=null,b=new Set,E=null,S=null,C=null,D=null!=e.hydrationData,L=U(f,e.history.location,p),k=!1,M=null;if(null==L&&!v){let t=eF(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eO(f);L=r,M={[n.id]:t}}if(L&&!e.hydrationData&&te(L,f,e.history.location.pathname).active&&(L=null),L)if(L.some(e=>e.route.lazy))n=!1;else if(L.some(e=>e.route.loader))if(y.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=L.findIndex(e=>void 0!==r[e.route.id]);n=L.slice(0,e+1).every(e=>!eR(e.route,t,r))}else n=L.every(e=>!eR(e.route,t,r))}else n=null!=e.hydrationData;else n=!0;else if(n=!1,L=[],y.v7_partialHydration){let t=te(null,f,e.history.location.pathname);t.active&&t.matches&&(k=!0,L=t.matches)}let O={historyAction:e.history.action,location:e.history.location,matches:L,initialized:n,navigation:eh,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||M,fetchers:new Map,blockers:new Map},F=c.Pop,N=!1,B=!1,z=new Map,H=null,W=!1,$=!1,V=[],J=new Set,K=new Map,Y=0,q=-1,X=new Map,G=new Set,Q=new Map,Z=new Map,ee=new Set,et=new Map,er=new Map;function en(e,t){void 0===t&&(t={}),O=g({},O,e);let r=[],n=[];y.v7_fetcherPersist&&O.fetchers.forEach((e,t)=>{"idle"===e.state&&(ee.has(t)?n.push(t):r.push(t))}),ee.forEach(e=>{O.fetchers.has(e)||K.has(e)||n.push(e)}),[...b].forEach(e=>e(O,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),y.v7_fetcherPersist?(r.forEach(e=>O.fetchers.delete(e)),n.forEach(e=>eK(e))):n.forEach(e=>ee.delete(e))}function ea(t,n,a){var o,i;let l,s,{flushSync:u}=void 0===a?{}:a,d=null!=O.actionData&&null!=O.navigation.formMethod&&eV(O.navigation.formMethod)&&"loading"===O.navigation.state&&(null==(o=t.state)?void 0:o._isRedirect)!==!0;l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:d?O.actionData:null;let h=n.loaderData?eT(O.loaderData,n.loaderData,n.matches||[],n.errors):O.loaderData,p=O.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,ep));let m=!0===N||null!=O.navigation.formMethod&&eV(O.navigation.formMethod)&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;if(r&&(f=r,r=void 0),W||F===c.Pop||(F===c.Push?e.history.push(t,t.state):F===c.Replace&&e.history.replace(t,t.state)),F===c.Pop){let e=z.get(O.location.pathname);e&&e.has(t.pathname)?s={currentLocation:O.location,nextLocation:t}:z.has(t.pathname)&&(s={currentLocation:t,nextLocation:O.location})}else if(B){let e=z.get(O.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),z.set(O.location.pathname,e)),s={currentLocation:O.location,nextLocation:t}}en(g({},n,{actionData:l,loaderData:h,historyAction:F,location:t,initialized:!0,navigation:eh,revalidation:"idle",restoreScrollPosition:e9(t,n.matches||O.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:s,flushSync:!0===u}),F=c.Pop,N=!1,B=!1,W=!1,$=!1,V=[]}async function el(t,n,a){var i,l,s,u;let h;o&&o.abort(),o=null,F=t,W=!0===(a&&a.startUninterruptedRevalidation),i=O.location,l=O.matches,E&&C&&(E[e6(i,l)]=C()),N=!0===(a&&a.preventScrollReset),B=!0===(a&&a.enableViewTransition);let m=r||f,v=a&&a.overrideNavigation,w=null!=a&&a.initialHydration&&O.matches&&O.matches.length>0&&!k?O.matches:U(m,n,p),b=!0===(a&&a.flushSync);if(w&&O.initialized&&!$&&(s=O.location,u=n,s.pathname===u.pathname&&s.search===u.search&&(""===s.hash?""!==u.hash:s.hash===u.hash||""!==u.hash||!1))&&!(a&&a.submission&&eV(a.submission.formMethod)))return void ea(n,{matches:w},{flushSync:b});let S=te(w,m,n.pathname);if(S.active&&S.matches&&(w=S.matches),!w){let{error:e,notFoundMatches:t,route:r}=e5(n.pathname);ea(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:b});return}o=new AbortController;let R=ek(e.history,n,o.signal,a&&a.submission);if(a&&a.pendingError)h=[eM(w).route.id,{type:d.error,error:a.pendingError}];else if(a&&a.submission&&eV(a.submission.formMethod)){let t=await async function(t,r,n,a,o,i){var l;let s;if(void 0===i&&(i={}),eC(),en({navigation:{state:"submitting",location:r,formMethod:(l=n).formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text}},{flushSync:!0===i.flushSync}),o){let e=await tt(a,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eM(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:d.error,error:e.error}]}}if(e.matches)a=e.matches;else{let{notFoundMatches:e,error:t,route:n}=e5(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:d.error,error:t}]}}}let u=eY(a,r);if(u.route.action||u.route.lazy){if(s=(await eg("action",O,t,[u],a,null))[u.route.id],t.signal.aborted)return{shortCircuited:!0}}else s={type:d.error,error:eF(405,{method:t.method,pathname:r.pathname,routeId:u.route.id})};if(eH(s)){let r;return r=i&&null!=i.replace?i.replace:eL(s.response.headers.get("Location"),new URL(t.url),p,e.history)===O.location.pathname+O.location.search,await eu(t,s,!0,{submission:n,replace:r}),{shortCircuited:!0}}if(eI(s))throw eF(400,{type:"defer-action"});if(ez(s)){let e=eM(a,u.route.id);return!0!==(i&&i.replace)&&(F=c.Push),{matches:a,pendingActionResult:[e.route.id,s]}}return{matches:a,pendingActionResult:[u.route.id,s]}}(R,n,a.submission,w,S.active,{replace:a.replace,flushSync:b});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ez(r)&&ei(r.error)&&404===r.error.status){o=null,ea(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}w=t.matches||w,h=t.pendingActionResult,v=eX(n,a.submission),b=!1,S.active=!1,R=ek(e.history,R.url,R.signal)}let{shortCircuited:x,matches:P,loaderData:D,errors:L}=await async function(t,n,a,i,l,s,u,c,d,h,m){let v=l||eX(n,s),w=s||u||eq(v),b=!W&&(!y.v7_partialHydration||!d);if(i){if(b){let e=es(m);en(g({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await tt(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eM(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=e5(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let E=r||f,[S,R]=eS(e.history,O,a,w,n,y.v7_partialHydration&&!0===d,y.v7_skipActionErrorRevalidation,$,V,J,ee,Q,G,E,p,m);if(e8(e=>!(a&&a.some(t=>t.route.id===e))||S&&S.some(t=>t.route.id===e)),q=++Y,0===S.length&&0===R.length){let e=e1();return ea(n,g({matches:a,loaderData:{},errors:m&&ez(m[1])?{[m[0]]:m[1].error}:null},ej(m),e?{fetchers:new Map(O.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(b){let e={};if(!i){e.navigation=v;let t=es(m);void 0!==t&&(e.actionData=t)}R.length>0&&(R.forEach(e=>{let t=O.fetchers.get(e.key),r=eG(void 0,t?t.data:void 0);O.fetchers.set(e.key,r)}),e.fetchers=new Map(O.fetchers)),en(e,{flushSync:h})}R.forEach(e=>{eZ(e.key),e.controller&&K.set(e.key,e.controller)});let x=()=>R.forEach(e=>eZ(e.key));o&&o.signal.addEventListener("abort",x);let{loaderResults:C,fetcherResults:P}=await eE(O,a,S,R,t);if(t.signal.aborted)return{shortCircuited:!0};o&&o.signal.removeEventListener("abort",x),R.forEach(e=>K.delete(e.key));let D=eN(C);if(D)return await eu(t,D.result,!0,{replace:c}),{shortCircuited:!0};if(D=eN(P))return G.add(D.key),await eu(t,D.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:L,errors:k}=eU(O,a,C,m,R,P,et);et.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&et.delete(t)})}),y.v7_partialHydration&&d&&O.errors&&(k=g({},O.errors,k));let _=e1(),A=e7(q),U=_||A||R.length>0;return g({matches:a,loaderData:L,errors:k},U?{fetchers:new Map(O.fetchers)}:{})}(R,n,w,S.active,v,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,b,h);x||(o=null,ea(n,g({matches:P||w},ej(h),{loaderData:D,errors:L})))}function es(e){if(e&&!ez(e[1]))return{[e[0]]:e[1].data};if(O.actionData)if(0===Object.keys(O.actionData).length)return null;else return O.actionData}async function eu(t,r,n,a){let{submission:i,fetcherSubmission:u,preventScrollReset:d,replace:h}=void 0===a?{}:a;r.response.headers.has("X-Remix-Revalidate")&&($=!0);let f=r.response.headers.get("Location");R(f,"Expected a Location header on the redirect Response"),f=eL(f,new URL(t.url),p,e.history);let m=P(O.location,f,{_isRedirect:!0});if(s){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(em.test(f)){let r=e.history.createURL(f);t=r.origin!==l.location.origin||null==I(r.pathname,p)}if(t)return void(h?l.location.replace(f):l.location.assign(f))}o=null;let v=!0===h||r.response.headers.has("X-Remix-Replace")?c.Replace:c.Push,{formMethod:y,formAction:w,formEncType:b}=O.navigation;!i&&!u&&y&&w&&b&&(i=eq(O.navigation));let E=i||u;if(ed.has(r.response.status)&&E&&eV(E.formMethod))await el(v,m,{submission:g({},E,{formAction:f}),preventScrollReset:d||N,enableViewTransition:n?B:void 0});else{let e=eX(m,i);await el(v,m,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:d||N,enableViewTransition:n?B:void 0})}}async function eg(e,r,n,a,o,i){let l,s={};try{l=await async function(e,t,r,n,a,o,i,l){let s=a.map(e=>e.route.lazy?async function(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];R(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;x(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||_.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,g({},t(a),{lazy:void 0}))}(e.route,l,i):void 0),u=a.map((e,a)=>{let o=s[a],i=n.some(t=>t.route.id===e.route.id);return g({},e,{shouldLoad:i,resolve:async n=>(n&&"GET"===r.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?async function(e,t,r,n,a,o){let i,l,s=n=>{let i,s=new Promise((e,t)=>i=t);l=()=>i(),t.signal.addEventListener("abort",l);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:o},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (a?a(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),s])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([s(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else if(await n,a=r.route[e])i=await s(a);else{if("action"!==e)return{type:d.data,result:void 0};let n=new URL(t.url),a=n.pathname+n.search;throw eF(405,{method:t.method,pathname:a,routeId:r.route.id})}else if(a)i=await s(a);else{let e=new URL(t.url),r=e.pathname+e.search;throw eF(404,{pathname:r})}R(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:d.error,result:e}}finally{l&&t.signal.removeEventListener("abort",l)}return i}(t,r,e,o,n,void 0):Promise.resolve({type:d.data,result:void 0}))})}),c=await e({matches:u,request:r,params:a[0].params,fetcherKey:o,context:void 0});try{await Promise.all(s)}catch(e){}return c}(m,e,n,a,o,i,h,t)}catch(e){return a.forEach(t=>{s[t.route.id]={type:d.error,error:e}}),s}for(let[e,t]of Object.entries(l)){var u;if(e$((u=t).result)&&ec.has(u.result.status)){let r=t.result;s[e]={type:d.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(R(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!em.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=ew(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,o,p,y.v7_relativeSplatPath)}}else s[e]=await async function(e){var t,r,n,a,o,i,l,s,u;let{result:c,type:h}=e;if(e$(c)){let e;try{let t=c.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==c.body?null:await c.json():await c.text()}catch(e){return{type:d.error,error:e}}return h===d.error?{type:d.error,error:new eo(c.status,c.statusText,e),statusCode:c.status,headers:c.headers}:{type:d.data,data:e,statusCode:c.status,headers:c.headers}}if(h===d.error)return eW(c)?c.data instanceof Error?{type:d.error,error:c.data,statusCode:null==(n=c.init)?void 0:n.status,headers:null!=(a=c.init)&&a.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:new eo((null==(t=c.init)?void 0:t.status)||500,void 0,c.data),statusCode:ei(c)?c.status:void 0,headers:null!=(r=c.init)&&r.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:c,statusCode:ei(c)?c.status:void 0};return(u=c)&&"object"==typeof u&&"object"==typeof u.data&&"function"==typeof u.subscribe&&"function"==typeof u.cancel&&"function"==typeof u.resolveData?{type:d.deferred,deferredData:c,statusCode:null==(o=c.init)?void 0:o.status,headers:(null==(i=c.init)?void 0:i.headers)&&new Headers(c.init.headers)}:eW(c)?{type:d.data,data:c.data,statusCode:null==(l=c.init)?void 0:l.status,headers:null!=(s=c.init)&&s.headers?new Headers(c.init.headers):void 0}:{type:d.data,data:c}}(t)}return s}async function eE(t,r,n,a,o){let i=t.matches,l=eg("loader",t,o,n,r,null),s=Promise.all(a.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:d.error,error:eF(404,{pathname:r.path})}});{let n=(await eg("loader",t,ek(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),u=await l,c=(await s).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([async function(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!ex(c,u)&&(a&&a[u.route.id])!==void 0;eI(s)&&d&&await eJ(s,r,!1).then(e=>{e&&(t[l]=e)})}}(r,u,o.signal,i,t.loaderData),async function(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&eI(l)&&(R(i,"Expected an AbortController for revalidating fetcher deferred result"),await eJ(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}(r,c,a)]),{loaderResults:u,fetcherResults:c}}function eC(){$=!0,V.push(...e8()),Q.forEach((e,t)=>{K.has(t)&&J.add(t),eZ(t)})}function e_(e,t,r){void 0===r&&(r={}),O.fetchers.set(e,t),en({fetchers:new Map(O.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eA(e,t,r,n){void 0===n&&(n={});let a=eM(O.matches,t);eK(e),en({errors:{[a.route.id]:r},fetchers:new Map(O.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function eB(e){return Z.set(e,(Z.get(e)||0)+1),ee.has(e)&&ee.delete(e),O.fetchers.get(e)||ef}function eK(e){let t=O.fetchers.get(e);K.has(e)&&!(t&&"loading"===t.state&&X.has(e))&&eZ(e),Q.delete(e),X.delete(e),G.delete(e),y.v7_fetcherPersist&&ee.delete(e),J.delete(e),O.fetchers.delete(e)}function eZ(e){let t=K.get(e);t&&(t.abort(),K.delete(e))}function e0(e){for(let t of e){let e=eQ(eB(t).data);O.fetchers.set(t,e)}}function e1(){let e=[],t=!1;for(let r of G){let n=O.fetchers.get(r);R(n,"Expected fetcher: "+r),"loading"===n.state&&(G.delete(r),e.push(r),t=!0)}return e0(e),t}function e7(e){let t=[];for(let[r,n]of X)if(n<e){let e=O.fetchers.get(r);R(e,"Expected fetcher: "+r),"loading"===e.state&&(eZ(r),X.delete(r),t.push(r))}return e0(t),t.length>0}function e4(e){O.blockers.delete(e),er.delete(e)}function e2(e,t){let r=O.blockers.get(e)||ep;R("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(O.blockers);n.set(e,t),en({blockers:n})}function e3(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===er.size)return;er.size>1&&x(!1,"A router only supports one blocker at a time");let a=Array.from(er.entries()),[o,i]=a[a.length-1],l=O.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function e5(e){let t=eF(404,{pathname:e}),{matches:n,route:a}=eO(r||f);return e8(),{notFoundMatches:n,route:a,error:t}}function e8(e){let t=[];return et.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),et.delete(n))}),t}function e6(e,t){return S&&S(e,t.map(e=>j(e,O.loaderData)))||e.key}function e9(e,t){if(E){let r=E[e6(e,t)];if("number"==typeof r)return r}return null}function te(e,t,r){if(v){if(!e)return{active:!0,matches:T(t,r,p,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:T(t,r,p,!0)}}return{active:!1,matches:null}}async function tt(e,n,a,o){if(!v)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||f,s=h;try{await v({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||eP(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(f=[...f])}if(a.aborted)return{type:"aborted"};let u=U(l,n,p);if(u)return{type:"success",matches:u};let c=T(l,n,p,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return a={get basename(){return p},get future(){return y},get state(){return O},get routes(){return f},get window(){return l},initialize:function(){if(w=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(i){i(),i=void 0;return}x(0===er.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=e3({currentLocation:O.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{i=e});e.history.go(-1*a),e2(o,{state:"blocked",location:n,proceed(){e2(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(O.blockers);e.set(o,ep),en({blockers:e})}});return}return el(r,n)}),s){var t=l,r=z;try{let e=t.sessionStorage.getItem(ey);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ey,JSON.stringify(r))}catch(e){x(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(l,z);l.addEventListener("pagehide",e),H=()=>l.removeEventListener("pagehide",e)}return O.initialized||el(c.Pop,O.location,{initialHydration:!0}),a},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,r){if(E=e,C=t,S=r||null,!D&&O.navigation===eh){D=!0;let e=e9(O.location,O.matches);null!=e&&en({restoreScrollPosition:e})}return()=>{E=null,C=null,S=null}},navigate:async function t(r,n){if("number"==typeof r)return void e.history.go(r);let a=ew(O.location,O.matches,p,y.v7_prependBasename,r,y.v7_relativeSplatPath,null==n?void 0:n.fromRouteId,null==n?void 0:n.relative),{path:o,submission:i,error:l}=eb(y.v7_normalizeFormMethod,!1,a,n),s=O.location,u=P(O.location,o,n&&n.state);u=g({},u,e.history.encodeLocation(u));let d=n&&null!=n.replace?n.replace:void 0,h=c.Push;!0===d?h=c.Replace:!1===d||null!=i&&eV(i.formMethod)&&i.formAction===O.location.pathname+O.location.search&&(h=c.Replace);let f=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,m=!0===(n&&n.flushSync),v=e3({currentLocation:s,nextLocation:u,historyAction:h});return v?void e2(v,{state:"blocked",location:u,proceed(){e2(v,{state:"proceeding",proceed:void 0,reset:void 0,location:u}),t(r,n)},reset(){let e=new Map(O.blockers);e.set(v,ep),en({blockers:e})}}):await el(h,u,{submission:i,pendingError:l,preventScrollReset:f,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:m})},fetch:function(t,n,a,i){if(u)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");eZ(t);let l=!0===(i&&i.flushSync),s=r||f,c=ew(O.location,O.matches,p,y.v7_prependBasename,a,y.v7_relativeSplatPath,n,null==i?void 0:i.relative),d=U(s,c,p),h=te(d,s,c);if(h.active&&h.matches&&(d=h.matches),!d)return void eA(t,n,eF(404,{pathname:c}),{flushSync:l});let{path:m,submission:v,error:g}=eb(y.v7_normalizeFormMethod,!0,c,i);if(g)return void eA(t,n,g,{flushSync:l});let w=eY(d,m),b=!0===(i&&i.preventScrollReset);v&&eV(v.formMethod)?async function(t,n,a,i,l,s,u,c,d){var h,m;function v(e){if(!e.route.action&&!e.route.lazy){let e=eF(405,{method:d.formMethod,pathname:a,routeId:n});return eA(t,n,e,{flushSync:u}),!0}return!1}if(eC(),Q.delete(t),!s&&v(i))return;let g=O.fetchers.get(t);e_(t,(h=d,m=g,{state:"submitting",formMethod:h.formMethod,formAction:h.formAction,formEncType:h.formEncType,formData:h.formData,json:h.json,text:h.text,data:m?m.data:void 0}),{flushSync:u});let w=new AbortController,b=ek(e.history,a,w.signal,d);if(s){let e=await tt(l,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eA(t,n,e.error,{flushSync:u});if(!e.matches)return void eA(t,n,eF(404,{pathname:a}),{flushSync:u});if(v(i=eY(l=e.matches,a)))return}K.set(t,w);let E=Y,S=(await eg("action",O,b,[i],l,t))[i.route.id];if(b.signal.aborted){K.get(t)===w&&K.delete(t);return}if(y.v7_fetcherPersist&&ee.has(t)){if(eH(S)||ez(S))return void e_(t,eQ(void 0))}else{if(eH(S))return(K.delete(t),q>E)?void e_(t,eQ(void 0)):(G.add(t),e_(t,eG(d)),eu(b,S,!1,{fetcherSubmission:d,preventScrollReset:c}));if(ez(S))return void eA(t,n,S.error)}if(eI(S))throw eF(400,{type:"defer-action"});let x=O.navigation.location||O.location,C=ek(e.history,x,w.signal),P=r||f,D="idle"!==O.navigation.state?U(P,O.navigation.location,p):O.matches;R(D,"Didn't find any matches after fetcher action");let L=++Y;X.set(t,L);let k=eG(d,S.data);O.fetchers.set(t,k);let[_,A]=eS(e.history,O,D,d,x,!1,y.v7_skipActionErrorRevalidation,$,V,J,ee,Q,G,P,p,[i.route.id,S]);A.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=O.fetchers.get(t),n=eG(void 0,r?r.data:void 0);O.fetchers.set(t,n),eZ(t),e.controller&&K.set(t,e.controller)}),en({fetchers:new Map(O.fetchers)});let T=()=>A.forEach(e=>eZ(e.key));w.signal.addEventListener("abort",T);let{loaderResults:j,fetcherResults:M}=await eE(O,D,_,A,C);if(w.signal.aborted)return;w.signal.removeEventListener("abort",T),X.delete(t),K.delete(t),A.forEach(e=>K.delete(e.key));let N=eN(j);if(N)return eu(C,N.result,!1,{preventScrollReset:c});if(N=eN(M))return G.add(N.key),eu(C,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:I}=eU(O,D,j,void 0,A,M,et);if(O.fetchers.has(t)){let e=eQ(S.data);O.fetchers.set(t,e)}e7(L),"loading"===O.navigation.state&&L>q?(R(F,"Expected pending action"),o&&o.abort(),ea(O.navigation.location,{matches:D,loaderData:B,errors:I,fetchers:new Map(O.fetchers)})):(en({errors:I,loaderData:eT(O.loaderData,B,D,I),fetchers:new Map(O.fetchers)}),$=!1)}(t,n,m,w,d,h.active,l,b,v):(Q.set(t,{routeId:n,path:m}),async function(t,r,n,a,o,i,l,s,u){let c=O.fetchers.get(t);e_(t,eG(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,h=ek(e.history,n,d.signal);if(i){let e=await tt(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eA(t,r,e.error,{flushSync:l});if(!e.matches)return void eA(t,r,eF(404,{pathname:n}),{flushSync:l});a=eY(o=e.matches,n)}K.set(t,d);let f=Y,p=(await eg("loader",O,h,[a],o,t))[a.route.id];if(eI(p)&&(p=await eJ(p,h.signal,!0)||p),K.get(t)===d&&K.delete(t),!h.signal.aborted){if(ee.has(t))return void e_(t,eQ(void 0));if(eH(p))if(q>f)return void e_(t,eQ(void 0));else{G.add(t),await eu(h,p,!1,{preventScrollReset:s});return}if(ez(p))return void eA(t,r,p.error);R(!eI(p),"Unhandled fetcher deferred data"),e_(t,eQ(p.data))}}(t,n,m,w,d,h.active,l,b,v))},revalidate:function(){if(eC(),en({revalidation:"loading"}),"submitting"!==O.navigation.state){if("idle"===O.navigation.state)return void el(O.historyAction,O.location,{startUninterruptedRevalidation:!0});el(F||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:!0===B})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eB,deleteFetcher:function(e){let t=(Z.get(e)||0)-1;t<=0?(Z.delete(e),ee.add(e),y.v7_fetcherPersist||eK(e)):Z.set(e,t),en({fetchers:new Map(O.fetchers)})},dispose:function(){w&&w(),H&&H(),b.clear(),o&&o.abort(),O.fetchers.forEach((e,t)=>eK(t)),O.blockers.forEach((e,t)=>e4(t))},getBlocker:function(e,t){let r=O.blockers.get(e)||ep;return er.get(e)!==t&&er.set(e,t),r},deleteBlocker:e4,patchRoutes:function(e,n){let a=null==r;eP(e,n,r||f,h,t),a&&(f=[...f],en({}))},_internalFetchControllers:K,_internalActiveDeferreds:et,_internalSetRoutes:function(e){r=A(e,t,void 0,h={})}}}function ew(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=J(a||".",V(s,o),I(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=eK(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:Y([r,c.pathname])),D(c)}function eb(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!eu.has(a.toLowerCase())))return{path:r,error:eF(405,{method:n.formMethod})};let l=()=>({path:r,error:eF(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eB(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eV(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eV(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(R("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=e_(n.formData),i=n.formData;else if(n.body instanceof FormData)o=e_(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eA(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eA(o)}catch(e){return l()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eV(d.formMethod))return{path:r,submission:d};let h=L(r);return t&&h.search&&eK(h.search)&&o.append("index",""),h.search="?"+o,{path:D(h),submission:d}}function eE(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function eS(e,t,r,n,a,o,i,l,s,u,c,d,h,f,p,m){let v=m?ez(m[1])?m[1].error:m[1].data:void 0,y=e.createURL(t.location),w=e.createURL(a),b=r;o&&t.errors?b=eE(r,Object.keys(t.errors)[0],!0):m&&ez(m[1])&&(b=eE(r,m[0]));let E=m?m[1].statusCode:void 0,S=i&&E&&E>=400,R=b.filter((e,r)=>{var a,i,u;let c,d,{route:h}=e;if(h.lazy)return!0;if(null==h.loader)return!1;if(o)return eR(h,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],u=e,c=!i||u.route.id!==i.route.id,d=void 0===a[u.route.id],c||d||s.some(t=>t===e.route.id))return!0;let f=t.matches[r];return eC(e,g({currentUrl:y,currentParams:f.params,nextUrl:w,nextParams:e.params},n,{actionResult:v,actionStatus:E,defaultShouldRevalidate:!S&&(l||y.pathname+y.search===w.pathname+w.search||y.search!==w.search||ex(f,e))}))}),x=[];return d.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let i=U(f,e.path,p);if(!i)return void x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let s=t.fetchers.get(a),d=eY(i,e.path),m=!1;h.has(a)?m=!1:u.has(a)?(u.delete(a),m=!0):m=s&&"idle"!==s.state&&void 0===s.data?l:eC(d,g({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:v,actionStatus:E,defaultShouldRevalidate:!S&&l})),m&&x.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:d,controller:new AbortController})}),[R,x]}function eR(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function ex(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function eC(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function eP(e,t,r,n,a){var o;let i;if(e){let t=n[e];R(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=A(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function eD(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}function eL(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(em.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e);if(a.includes(n.protocol))throw Error("Invalid redirect location");let o=null!=I(n.pathname,r);if(n.origin===t.origin&&o)return K(n.pathname)+n.search+n.hash}try{let t=n.createURL(e);if(a.includes(t.protocol))throw Error("Invalid redirect location")}catch(e){}return e}function ek(e,t,r,n){let a=e.createURL(eB(t)).toString(),o={signal:r};if(n&&eV(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=e_(n.formData):o.body=n.formData}return new Request(a,o)}function e_(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eA(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eU(e,t,r,n,a,o,i){let l,s,u,c,d,h,{loaderData:f,errors:p}=(s={},u=null,c=!1,d={},h=n&&ez(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(R(!eH(a),"Cannot handle redirect results in processLoaderData"),ez(a)){let e=a.error;void 0!==h&&(e=h,h=void 0),u=u||{},1;{let r=eM(t,n);null==u[r.route.id]&&(u[r.route.id]=e)}s[n]=void 0,c||(c=!0,l=ei(a.error)?a.error.status:500),a.headers&&(d[n]=a.headers)}else eI(a)?(i.set(n,a.deferredData),s[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||c||(l=a.statusCode)):(s[n]=a.data,a.statusCode&&200!==a.statusCode&&!c&&(l=a.statusCode)),a.headers&&(d[n]=a.headers)}),void 0!==h&&n&&(u={[n[0]]:h},s[n[0]]=void 0),{loaderData:s,errors:u,statusCode:l||200,loaderHeaders:d});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(R(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(ez(i)){let t=eM(e.matches,null==n?void 0:n.route.id);p&&p[t.route.id]||(p=g({},p,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eH(i))R(!1,"Unhandled fetcher revalidation redirect");else if(eI(i))R(!1,"Unhandled fetcher deferred data");else{let t=eQ(i.data);e.fetchers.set(r,t)}}),{loaderData:f,errors:p}}function eT(e,t,r,n){let a=g({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function ej(e){return e?ez(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eM(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eO(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eF(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new eo(e||500,l,Error(s),!0)}function eN(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eH(n))return{key:r,result:n}}}function eB(e){let t="string"==typeof e?L(e):e;return D(g({},t,{hash:""}))}function eI(e){return e.type===d.deferred}function ez(e){return e.type===d.error}function eH(e){return(e&&e.type)===d.redirect}function eW(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function e$(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eV(e){return es.has(e.toLowerCase())}async function eJ(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:d.data,data:e.deferredData.unwrappedData}}catch(e){return{type:d.error,error:e}}return{type:d.data,data:e.deferredData.data}}}function eK(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eY(e,t){let r="string"==typeof t?L(t).search:t.search;if(e[e.length-1].route.index&&eK(r||""))return e[e.length-1];let n=$(e);return n[n.length-1]}function eq(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eX(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eG(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eQ(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function eZ(){return(eZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}Symbol("deferred");let e0=p.createContext(null),e1=p.createContext(null),e7=p.createContext(null),e4=p.createContext(null),e2=p.createContext(null),e3=p.createContext({outlet:null,matches:[],isDataRoute:!1}),e5=p.createContext(null);function e8(e,t){let{relative:r}=void 0===t?{}:t;e6()||R(!1);let{basename:n,navigator:a}=p.useContext(e4),{hash:o,pathname:i,search:l}=ts(e,{relative:r}),s=i;return"/"!==n&&(s="/"===i?n:Y([n,i])),a.createHref({pathname:s,search:l,hash:o})}function e6(){return null!=p.useContext(e2)}function e9(){return e6()||R(!1),p.useContext(e2).location}function te(){return p.useContext(e2).navigationType}function tt(e){e6()||R(!1);let{pathname:t}=e9();return p.useMemo(()=>N(e,B(t)),[t,e])}function tr(e){p.useContext(e4).static||p.useLayoutEffect(e)}function tn(){let{isDataRoute:e}=p.useContext(e3);return e?function(){let{router:e}=ty(tm.UseNavigateStable),t=tw(tv.UseNavigateStable),r=p.useRef(!1);return tr(()=>{r.current=!0}),p.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,eZ({fromRouteId:t},a)))},[e,t])}():function(){e6()||R(!1);let e=p.useContext(e0),{basename:t,future:r,navigator:n}=p.useContext(e4),{matches:a}=p.useContext(e3),{pathname:o}=e9(),i=JSON.stringify(V(a,r.v7_relativeSplatPath)),l=p.useRef(!1);return tr(()=>{l.current=!0}),p.useCallback(function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof r)return void n.go(r);let s=J(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:Y([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)},[t,n,i,o,e])}()}let ta=p.createContext(null);function to(){return p.useContext(ta)}function ti(e){let t=p.useContext(e3).outlet;return t?p.createElement(ta.Provider,{value:e},t):t}function tl(){let{matches:e}=p.useContext(e3),t=e[e.length-1];return t?t.params:{}}function ts(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=p.useContext(e4),{matches:a}=p.useContext(e3),{pathname:o}=e9(),i=JSON.stringify(V(a,n.v7_relativeSplatPath));return p.useMemo(()=>J(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function tu(e,t){return tc(e,t)}function tc(e,t,r,n){let a;e6()||R(!1);let{navigator:o}=p.useContext(e4),{matches:i}=p.useContext(e3),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let d=e9();if(t){var h;let e="string"==typeof t?L(t):t;"/"===u||(null==(h=e.pathname)?void 0:h.startsWith(u))||R(!1),a=e}else a=d;let f=a.pathname||"/",m=f;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=U(e,{pathname:m}),y=tp(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Y([u,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:Y([u,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&y?p.createElement(e2.Provider,{value:{location:eZ({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:c.Pop}},y):y}let td=p.createElement(function(){let e=tD(),t=ei(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class th extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?p.createElement(e3.Provider,{value:this.props.routeContext},p.createElement(e5.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tf(e){let{routeContext:t,match:r,children:n}=e,a=p.useContext(e0);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(e3.Provider,{value:t},n)}function tp(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,l=null==(a=r)?void 0:a.errors;if(null!=l){let e=i.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id])!==void 0);e>=0||R(!1),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){s=!0,i=u>=0?i.slice(0,u+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{var o;let c,d=!1,h=null,f=null;r&&(c=l&&n.route.id?l[n.route.id]:void 0,h=n.route.errorElement||td,s&&(u<0&&0===a?(o="route-fallback",tU[o]||(tU[o]=!0),d=!0,f=null):u===a&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=c?h:d?f:n.route.Component?p.createElement(n.route.Component,null):n.route.element?n.route.element:e,p.createElement(tf,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?p.createElement(th,{location:r.location,revalidation:r.revalidation,component:h,error:c,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var tm=((o=tm||{}).UseBlocker="useBlocker",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o),tv=((i=tv||{}).UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i);function ty(e){let t=p.useContext(e0);return t||R(!1),t}function tg(e){let t=p.useContext(e1);return t||R(!1),t}function tw(e){let t,r=((t=p.useContext(e3))||R(!1),t),n=r.matches[r.matches.length-1];return n.route.id||R(!1),n.route.id}function tb(){return tw(tv.UseRouteId)}function tE(){return tg(tv.UseNavigation).navigation}function tS(){let e=ty(tm.UseRevalidator),t=tg(tv.UseRevalidator);return p.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function tR(){let{matches:e,loaderData:t}=tg(tv.UseMatches);return p.useMemo(()=>e.map(e=>j(e,t)),[e,t])}function tx(){let e=tg(tv.UseLoaderData),t=tw(tv.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function tC(e){return tg(tv.UseRouteLoaderData).loaderData[e]}function tP(){let e=tg(tv.UseActionData),t=tw(tv.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function tD(){var e;let t=p.useContext(e5),r=tg(tv.UseRouteError),n=tw(tv.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function tL(){let e=p.useContext(e7);return null==e?void 0:e._data}function tk(){let e=p.useContext(e7);return null==e?void 0:e._error}let t_=0;function tA(e){let{router:t,basename:r}=ty(tm.UseBlocker),n=tg(tv.UseBlocker),[a,o]=p.useState(""),i=p.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:eZ({},n,{pathname:I(n.pathname,r)||n.pathname}),nextLocation:eZ({},a,{pathname:I(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return p.useEffect(()=>{let e=String(++t_);return o(e),()=>t.deleteBlocker(e)},[t]),p.useEffect(()=>{""!==a&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):ep}let tU={};function tT(e,t){(null==e||e.v7_startTransition,(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&void 0!==t.v7_relativeSplatPath,t)&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}let tj=m.startTransition;function tM(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=p.useRef();null==i.current&&(i.current=b({initialEntries:n,initialIndex:a,v5Compat:!0}));let l=i.current,[s,u]=p.useState({action:l.action,location:l.location}),{v7_startTransition:c}=o||{},d=p.useCallback(e=>{c&&tj?tj(()=>u(e)):u(e)},[u,c]);return p.useLayoutEffect(()=>l.listen(d),[l,d]),p.useEffect(()=>tT(o),[o]),p.createElement(tB,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:o})}function tO(e){let{to:t,replace:r,state:n,relative:a}=e;e6()||R(!1);let{future:o,static:i}=p.useContext(e4),{matches:l}=p.useContext(e3),{pathname:s}=e9(),u=tn(),c=JSON.stringify(J(t,V(l,o.v7_relativeSplatPath),s,"path"===a));return p.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:a}),[u,c,a,r,n]),null}function tF(e){return ti(e.context)}function tN(e){R(!1)}function tB(e){let{basename:t="/",children:r=null,location:n,navigationType:a=c.Pop,navigator:o,static:i=!1,future:l}=e;e6()&&R(!1);let s=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:s,navigator:o,static:i,future:eZ({v7_relativeSplatPath:!1},l)}),[s,l,o,i]);"string"==typeof n&&(n=L(n));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:v="default"}=n,y=p.useMemo(()=>{let e=I(d,s);return null==e?null:{location:{pathname:e,search:h,hash:f,state:m,key:v},navigationType:a}},[s,d,h,f,m,v,a]);return null==y?null:p.createElement(e4.Provider,{value:u},p.createElement(e2.Provider,{children:r,value:y}))}function tI(e){let{children:t,location:r}=e;return tc(tJ(t),r)}function tz(e){let{children:t,errorElement:r,resolve:n}=e;return p.createElement(t$,{resolve:n,errorElement:r},p.createElement(tV,null,t))}var tH=((l=tH||{})[l.pending=0]="pending",l[l.success=1]="success",l[l.error=2]="error",l);let tW=new Promise(()=>{});class t$ extends p.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=tH.pending;if(r instanceof Promise)if(this.state.error){a=tH.error;let e=this.state.error;Object.defineProperty(n=Promise.reject().catch(()=>{}),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?a="_error"in(n=r)?tH.error:"_data"in n?tH.success:tH.pending:(a=tH.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else a=tH.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===tH.error&&n._error instanceof Z)throw tW;if(a===tH.error&&!t)throw n._error;if(a===tH.error)return p.createElement(e7.Provider,{value:n,children:t});if(a===tH.success)return p.createElement(e7.Provider,{value:n,children:e});throw n}}function tV(e){let{children:t}=e,r=tL(),n="function"==typeof t?t(r):t;return p.createElement(p.Fragment,null,n)}function tJ(e,t){void 0===t&&(t=[]);let r=[];return p.Children.forEach(e,(e,n)=>{if(!p.isValidElement(e))return;let a=[...t,n];if(e.type===p.Fragment)return void r.push.apply(r,tJ(e.props.children,a));e.type!==tN&&R(!1),e.props.index&&e.props.children&&R(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=tJ(e.props.children,a)),r.push(o)}),r}function tK(e){return tp(e)}function tY(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function tq(e,t){return eg({basename:null==t?void 0:t.basename,future:eZ({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:b({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:tY,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}function tX(){return(tX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function tG(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}let tQ="application/x-www-form-urlencoded";function tZ(e){return null!=e&&"string"==typeof e.tagName}function t0(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let t1=null,t7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t4(e){return null==e||t7.has(e)?e:null}let t2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],t3=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],t5=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function t8(e,t){return eg({basename:null==t?void 0:t.basename,future:tX({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:E({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||t9(),routes:e,mapRouteProperties:tY,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function t6(e,t){return eg({basename:null==t?void 0:t.basename,future:tX({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:S({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||t9(),routes:e,mapRouteProperties:tY,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function t9(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=tX({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new eo(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let re=p.createContext({isTransitioning:!1}),rt=p.createContext(new Map),rr=m.startTransition,rn=y.flushSync,ra=m.useId;function ro(e){rn?rn(e):e()}class ri{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function rl(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=p.useState(r.state),[i,l]=p.useState(),[s,u]=p.useState({isTransitioning:!1}),[c,d]=p.useState(),[h,f]=p.useState(),[m,v]=p.useState(),y=p.useRef(new Map),{v7_startTransition:g}=n||{},w=p.useCallback(e=>{if(g)rr?rr(e):e();else e()},[g]),b=p.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),n.forEach(e=>y.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?ro(()=>o(e)):w(()=>o(e)));if(a){ro(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{ro(()=>o(e))});t.finished.finally(()=>{ro(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})})}),ro(()=>f(t));return}h?(c&&c.resolve(),h.skipTransition(),v({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),u({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,h,c,y,w]);p.useLayoutEffect(()=>r.subscribe(b),[r,b]),p.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new ri)},[s]),p.useEffect(()=>{if(c&&i&&r.window){let e=c.promise,t=r.window.document.startViewTransition(async()=>{w(()=>o(i)),await e});t.finished.finally(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})}),f(t)}},[w,i,c,r.window]),p.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,h,a.location,i]),p.useEffect(()=>{!s.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[s.isTransitioning,m]),p.useEffect(()=>{},[]);let E=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),S=r.basename||"/",R=p.useMemo(()=>({router:r,navigator:E,static:!1,basename:S}),[r,E,S]),x=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.useEffect(()=>tT(n,r.future),[n,r.future]),p.createElement(p.Fragment,null,p.createElement(e0.Provider,{value:R},p.createElement(e1.Provider,{value:a},p.createElement(rt.Provider,{value:y.current},p.createElement(re.Provider,{value:s},p.createElement(tB,{basename:S,location:a.location,navigationType:a.historyAction,navigator:E,future:x},a.initialized||r.future.v7_partialHydration?p.createElement(rs,{routes:r.routes,future:r.future,state:a}):t))))),null)}let rs=p.memo(function(e){let{routes:t,future:r,state:n}=e;return tc(t,void 0,n,r)});function ru(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=E({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&rr?rr(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tT(n),[n]),p.createElement(tB,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rc(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=S({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&rr?rr(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tT(n),[n]),p.createElement(tB,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rd(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=p.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},s=p.useCallback(e=>{l&&rr?rr(()=>i(e)):i(e)},[i,l]);return p.useLayoutEffect(()=>a.listen(s),[a,s]),p.useEffect(()=>tT(n),[n]),p.createElement(tB,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let rh="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,rf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rp=p.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:u,preventScrollReset:c,viewTransition:d}=e,h=tG(e,t2),{basename:f}=p.useContext(e4),m=!1;if("string"==typeof u&&rf.test(u)&&(r=u,rh))try{let e=new URL(window.location.href),t=new URL(u.startsWith("//")?e.protocol+u:u),r=I(t.pathname,f);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(e){}let v=e8(u,{relative:a}),y=rb(u,{replace:i,state:l,target:s,preventScrollReset:c,relative:a,viewTransition:d});return p.createElement("a",tX({},h,{href:r||v,onClick:m||o?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:s}))}),rm=p.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:l,to:s,viewTransition:u,children:c}=e,d=tG(e,t3),h=ts(s,{relative:d.relative}),f=e9(),m=p.useContext(e1),{navigator:v,basename:y}=p.useContext(e4),g=null!=m&&rT(h)&&!0===u,w=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,b=f.pathname,E=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;a||(b=b.toLowerCase(),E=E?E.toLowerCase():null,w=w.toLowerCase()),E&&y&&(E=I(E,y)||E);let S="/"!==w&&w.endsWith("/")?w.length-1:w.length,R=b===w||!i&&b.startsWith(w)&&"/"===b.charAt(S),x=null!=E&&(E===w||!i&&E.startsWith(w)&&"/"===E.charAt(w.length)),C={isActive:R,isPending:x,isTransitioning:g},P=R?n:void 0;r="function"==typeof o?o(C):[o,R?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let D="function"==typeof l?l(C):l;return p.createElement(rp,tX({},d,{"aria-current":P,className:r,ref:t,style:D,to:s,viewTransition:u}),"function"==typeof c?c(C):c)}),rv=p.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:l="get",action:s,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:h}=e,f=tG(e,t5),m=rx(),v=rC(s,{relative:c}),y="get"===l.toLowerCase()?"get":"post";return p.createElement("form",tX({ref:t,method:y,action:v,onSubmit:a?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:h})}},f))});function ry(e){let{getKey:t,storageKey:r}=e;return r_({getKey:t,storageKey:r}),null}function rg(e){let t=p.useContext(e0);return t||R(!1),t}function rw(e){let t=p.useContext(e1);return t||R(!1),t}function rb(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,s=tn(),u=e9(),c=ts(e,{relative:i});return p.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==n?n:D(u)===D(c),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[u,s,c,n,a,r,e,o,i,l])}function rE(e){let t=p.useRef(t0(e)),r=p.useRef(!1),n=e9(),a=p.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=t0(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=tn(),i=p.useCallback((e,t)=>{let n=t0("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(s=h||(h={})).UseScrollRestoration="useScrollRestoration",s.UseSubmit="useSubmit",s.UseSubmitFetcher="useSubmitFetcher",s.UseFetcher="useFetcher",s.useViewTransitionState="useViewTransitionState",(u=f||(f={})).UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration";let rS=0,rR=()=>"__"+String(++rS)+"__";function rx(){let{router:e}=rg(h.UseSubmit),{basename:t}=p.useContext(e4),r=tb();return p.useCallback(function(n,a){if(void 0===a&&(a={}),"u"<typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:o,method:i,encType:l,formData:s,body:u}=function(e,t){let r,n,a,o,i;if(tZ(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?I(i,t):null,r=e.getAttribute("method")||"get",a=t4(e.getAttribute("enctype"))||tQ,o=new FormData(e)}else if(tZ(e)&&"button"===e.tagName.toLowerCase()||tZ(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?I(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=t4(e.getAttribute("formenctype"))||t4(i.getAttribute("enctype"))||tQ,o=new FormData(i,e),!function(){if(null===t1)try{new FormData(document.createElement("form"),0),t1=!1}catch(e){t1=!0}return t1}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else if(tZ(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=tQ,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||rR();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function rC(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=p.useContext(e4),a=p.useContext(e3);a||R(!1);let[o]=a.matches.slice(-1),i=tX({},ts(e||".",{relative:r})),l=e9();if(null==e){i.search=l.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?"?"+r:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:Y([n,i.pathname])),D(i)}function rP(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=rg(h.UseFetcher),a=rw(f.UseFetcher),o=p.useContext(rt),i=p.useContext(e3),l=null==(t=i.matches[i.matches.length-1])?void 0:t.route.id;o||R(!1),i||R(!1),null==l&&R(!1);let s=ra?ra():"",[u,c]=p.useState(r||s);r&&r!==u?c(r):u||c(rR()),p.useEffect(()=>(n.getFetcher(u),()=>{n.deleteFetcher(u)}),[n,u]);let d=p.useCallback((e,t)=>{l||R(!1),n.fetch(u,l,e,t)},[u,l,n]),m=rx(),v=p.useCallback((e,t)=>{m(e,tX({},t,{navigate:!1,fetcherKey:u}))},[u,m]),y=p.useMemo(()=>p.forwardRef((e,t)=>p.createElement(rv,tX({},e,{navigate:!1,fetcherKey:u,ref:t}))),[u]),g=a.fetchers.get(u)||ef,w=o.get(u);return p.useMemo(()=>tX({Form:y,submit:v,load:d},g,{data:w}),[y,v,d,g,w])}function rD(){return Array.from(rw(f.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return tX({},r,{key:t})})}let rL="react-router-scroll-positions",rk={};function r_(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=rg(h.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:o}=rw(f.UseScrollRestoration),{basename:i}=p.useContext(e4),l=e9(),s=tR(),u=tE();p.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e){let{capture:t}={};p.useEffect(()=>{let r=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,t])}(p.useCallback(()=>{"idle"===u.state&&(rk[(t?t(l,s):null)||l.key]=window.scrollY);try{sessionStorage.setItem(r||rL,JSON.stringify(rk))}catch(e){}window.history.scrollRestoration="auto"},[r,t,u.state,l,s])),"u">typeof document&&(p.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||rL);e&&(rk=JSON.parse(e))}catch(e){}},[r]),p.useLayoutEffect(()=>{let e=t&&"/"!==i?(e,r)=>t(tX({},e,{pathname:I(e.pathname,i)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(rk,()=>window.scrollY,e);return()=>r&&r()},[n,i,t]),p.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==o&&window.scrollTo(0,0)}},[l,a,o]))}function rA(e,t){let{capture:r}=t||{};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function rU(e){let{when:t,message:r}=e,n=tA(t);p.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),p.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function rT(e,t){void 0===t&&(t={});let r=p.useContext(re);null==r&&R(!1);let{basename:n}=rg(h.useViewTransitionState),a=ts(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=I(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=I(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=N(a.pathname,i)||null!=N(a.pathname,o)}}}]);
@@ -1,2 +1,2 @@
1
- /*! LICENSE: 0p.58ba51c3d8.js.LICENSE.txt */
2
- "use strict";(self.chunk_PulzrTimeSeriesChart_0_1_2=self.chunk_PulzrTimeSeriesChart_0_1_2||[]).push([["0p"],{qp(e,t,r){r.r(t),r.d(t,{CacheProvider:()=>et,ClassNames:()=>e$,Global:()=>ey,ThemeContext:()=>ea,ThemeProvider:()=>eo,__unsafe_useEmotionCache:()=>er,createElement:()=>ed,css:()=>em,jsx:()=>ed,keyframes:()=>ev,useTheme:()=>es,withEmotionCache:()=>en,withTheme:()=>ei});var n,a,s=r("IF"),c=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,u=Object.assign;function l(e,t,r){return e.replace(t,r)}function f(e,t){return e.indexOf(t)}function p(e,t){return 0|e.charCodeAt(t)}function h(e,t,r){return e.slice(t,r)}function d(e){return e.length}function y(e,t){return t.push(e),e}var m=1,v=1,g=0,b=0,$=0,k="";function S(e,t,r,n,a,s,c){return{value:e,root:t,parent:r,type:n,props:a,children:s,line:m,column:v,length:c,return:""}}function w(e,t){return u(S("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return $=b<g?p(k,b++):0,v++,10===$&&(v=1,m++),$}function C(){return p(k,b)}function E(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _(e){return m=v=1,g=d(k=e),b=0,[]}function P(e){var t,r;return(t=b-1,r=function e(t){for(;x();)switch($){case t:return b;case 34:case 39:34!==t&&39!==t&&e($);break;case 40:41===t&&e(t);break;case 92:x()}return b}(91===e?e+2:40===e?e+1:e),h(k,t,r)).trim()}var A="-ms-",T="-moz-",O="-webkit-",N="comm",M="rule",j="decl",F="@keyframes";function z(e,t){for(var r="",n=e.length,a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function R(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case j:return e.return=e.return||e.value;case N:return"";case F:return e.return=e.value+"{"+z(e.children,n)+"}";case M:e.value=e.props.join(",")}return d(r=z(e.children,n))?e.return=e.value+"{"+r+"}":""}function I(e,t,r,n,a,s,c,i,u,f,p){for(var d=a-1,y=0===a?s:[""],m=y.length,v=0,g=0,b=0;v<n;++v)for(var $=0,k=h(e,d+1,d=o(g=c[v])),w=e;$<m;++$)(w=(g>0?y[$]+" "+k:l(k,/&\f/g,y[$])).trim())&&(u[b++]=w);return S(e,t,r,0===a?M:i,u,f,p)}function J(e,t,r,n){return S(e,t,r,j,h(e,0,n),h(e,n+1,-1),n)}var D=function(e,t,r){for(var n=0,a=0;n=a,a=C(),38===n&&12===a&&(t[r]=1),!E(a);)x();return h(k,e,b)},L=function(e,t){var r=-1,n=44;do switch(E(n)){case 0:38===n&&12===C()&&(t[r]=1),e[r]+=D(b-1,t,r);break;case 2:e[r]+=P(n);break;case 4:if(44===n){e[++r]=58===C()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}while(n=x())return e},q=function(e,t){var r;return r=L(_(e),t),k="",r},H=new WeakMap,W=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||H.get(r))&&!n){H.set(e,!0);for(var a=[],s=q(t,a),c=r.props,o=0,i=0;o<s.length;o++)for(var u=0;u<c.length;u++,i++)e.props[i]=a[o]?s[o].replace(/&\f/g,c[u]):c[u]+" "+s[o]}}},B=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},X=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case j:e.return=function e(t,r){switch(45^p(t,0)?(((r<<2^p(t,0))<<2^p(t,1))<<2^p(t,2))<<2^p(t,3):0){case 5103:return O+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return O+t+T+t+A+t+t;case 6828:case 4268:return O+t+A+t+t;case 6165:return O+t+A+"flex-"+t+t;case 5187:return O+t+l(t,/(\w+).+(:[^]+)/,O+"box-$1$2"+A+"flex-$1$2")+t;case 5443:return O+t+A+"flex-item-"+l(t,/flex-|-self/,"")+t;case 4675:return O+t+A+"flex-line-pack"+l(t,/align-content|flex-|-self/,"")+t;case 5548:return O+t+A+l(t,"shrink","negative")+t;case 5292:return O+t+A+l(t,"basis","preferred-size")+t;case 6060:return O+"box-"+l(t,"-grow","")+O+t+A+l(t,"grow","positive")+t;case 4554:return O+l(t,/([^-])(transform)/g,"$1"+O+"$2")+t;case 6187:return l(l(l(t,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),t,"")+t;case 5495:case 3959:return l(t,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return l(l(t,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+A+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+t+t;case 4095:case 3583:case 4068:case 2532:return l(t,/(.+)-inline(.+)/,O+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-r>6)switch(p(t,r+1)){case 109:if(45!==p(t,r+4))break;case 102:return l(t,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+T+(108==p(t,r+3)?"$3":"$2-$3"))+t;case 115:return~f(t,"stretch")?e(l(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==p(t,r+1))break;case 6444:switch(p(t,d(t)-3-(~f(t,"!important")&&10))){case 107:return l(t,":",":"+O)+t;case 101:return l(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(45===p(t,14)?"inline-":"")+"box$3$1"+O+"$2$3$1"+A+"$2box$3")+t}break;case 5936:switch(p(t,r+11)){case 114:return O+t+A+l(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return O+t+A+l(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return O+t+A+l(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return O+t+A+t+t}return t}(e.value,e.length);break;case F:return z([w(e,{value:l(e.value,"@","@"+O)})],n);case M:if(e.length){var a,s;return a=e.props,s=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return z([w(e,{props:[l(t,/:(read-\w+)/,":"+T+"$1")]})],n);case"::placeholder":return z([w(e,{props:[l(t,/:(plac\w+)/,":"+O+"input-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,":"+T+"$1")]}),w(e,{props:[l(t,/:(plac\w+)/,A+"input-$1")]})],n)}return""},a.map(s).join("")}}}],Y=r("IY"),G=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},U=r("A"),V=r.n(U),K=r("o"),Q=r("Bv"),Z=r("Hk"),ee=s.createContext("u">typeof HTMLElement?function(e){var t,r,n,a,s,o=e.key;if("css"===o){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var g=e.stylisPlugins||X,w={},A=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)w[t[r]]=!0;A.push(e)});var T=(r=(t=[W,B].concat(g,[R,(n=function(e){s.insert(e)},function(e){!e.root&&(e=e.return)&&n(e)})])).length,function(e,n,a,s){for(var c="",o=0;o<r;o++)c+=t[o](e,n,a,s)||"";return c}),O=function(e){var t,r;return z((r=function e(t,r,n,a,s,c,o,u,g){for(var w,_=0,A=0,T=o,O=0,M=0,j=0,F=1,z=1,R=1,D=0,L="",q=s,H=c,W=a,B=L;z;)switch(j=D,D=x()){case 40:if(108!=j&&58==p(B,T-1)){-1!=f(B+=l(P(D),"&","&\f"),"&\f")&&(R=-1);break}case 34:case 39:case 91:B+=P(D);break;case 9:case 10:case 13:case 32:B+=function(e){for(;$=C();)if($<33)x();else break;return E(e)>2||E($)>3?"":" "}(j);break;case 92:B+=function(e,t){for(var r;--t&&x()&&!($<48)&&!($>102)&&(!($>57)||!($<65))&&(!($>70)||!($<97)););return r=b+(t<6&&32==C()&&32==x()),h(k,e,r)}(b-1,7);continue;case 47:switch(C()){case 42:case 47:y((w=function(e,t){for(;x();)if(e+$===57)break;else if(e+$===84&&47===C())break;return"/*"+h(k,t,b-1)+"*"+i(47===e?e:x())}(x(),b),S(w,r,n,N,i($),h(w,2,-2),0)),g);break;default:B+="/"}break;case 123*F:u[_++]=d(B)*R;case 125*F:case 59:case 0:switch(D){case 0:case 125:z=0;case 59+A:-1==R&&(B=l(B,/\f/g,"")),M>0&&d(B)-T&&y(M>32?J(B+";",a,n,T-1):J(l(B," ","")+";",a,n,T-2),g);break;case 59:B+=";";default:if(y(W=I(B,r,n,_,A,s,u,L,q=[],H=[],T),c),123===D)if(0===A)e(B,r,W,W,q,c,T,u,H);else switch(99===O&&110===p(B,3)?100:O){case 100:case 108:case 109:case 115:e(t,W,W,a&&y(I(t,W,W,0,0,s,u,L,s,q=[],T),H),s,H,T,u,a?q:H);break;default:e(B,W,W,W,[""],H,0,u,H)}}_=A=M=0,F=R=1,L=B="",T=o;break;case 58:T=1+d(B),M=j;default:if(F<1){if(123==D)--F;else if(125==D&&0==F++&&125==($=b>0?p(k,--b):0,v--,10===$&&(v=1,m--),$))continue}switch(B+=i(D),D*F){case 38:R=A>0?1:(B+="\f",-1);break;case 44:u[_++]=(d(B)-1)*R,R=1;break;case 64:45===C()&&(B+=P(x())),O=C(),A=T=d(L=B+=function(e){for(;!E(C());)x();return h(k,e,b)}(b)),D++;break;case 45:45===j&&2==d(B)&&(F=0)}}return c}("",null,null,null,[""],t=_(t=e),0,[0],t),k="",r),T)},M={key:o,sheet:new c({key:o,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:w,registered:{},insert:function(e,t,r,n){s=r,O(e?e+"{"+t.styles+"}":t.styles),n&&(M.inserted[t.name]=!0)}};return M.sheet.hydrate(A),M}({key:"css"}):null),et=ee.Provider,er=function(){return(0,s.useContext)(ee)},en=function(e){return(0,s.forwardRef)(function(t,r){return e(t,(0,s.useContext)(ee),r)})},ea=s.createContext({}),es=function(){return s.useContext(ea)},ec=G(function(e){return G(function(t){return"function"==typeof t?t(e):(0,Y.A)({},e,t)})}),eo=function(e){var t=s.useContext(ea);return e.theme!==t&&(t=ec(t)(e.theme)),s.createElement(ea.Provider,{value:t},e.children)};function ei(e){var t=e.displayName||e.name||"Component",r=s.forwardRef(function(t,r){var n=s.useContext(ea);return s.createElement(e,(0,Y.A)({theme:n,ref:r},t))});return r.displayName="WithTheme("+t+")",V()(r,e)}var eu={}.hasOwnProperty,el="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ef=function(e,t){var r={};for(var n in t)eu.call(t,n)&&(r[n]=t[n]);return r[el]=e,r},ep=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,K.SF)(t,r,n),(0,Z.s)(function(){return(0,K.sk)(t,r,n)}),null},eh=en(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var a=e[el],c=[n],o="";"string"==typeof e.className?o=(0,K.Rk)(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var i=(0,Q.J)(c,void 0,s.useContext(ea));o+=t.key+"-"+i.name;var u={};for(var l in e)eu.call(e,l)&&"css"!==l&&l!==el&&(u[l]=e[l]);return u.className=o,r&&(u.ref=r),s.createElement(s.Fragment,null,s.createElement(ep,{cache:t,serialized:i,isStringTag:"string"==typeof a}),s.createElement(a,u))}),ed=function(e,t){var r=arguments;if(null==t||!eu.call(t,"css"))return s.createElement.apply(void 0,r);var n=r.length,a=Array(n);a[0]=eh,a[1]=ef(e,t);for(var c=2;c<n;c++)a[c]=r[c];return s.createElement.apply(null,a)};n=ed||(ed={}),a||(a=n.JSX||(n.JSX={}));var ey=en(function(e,t){var r=e.styles,n=(0,Q.J)([r],void 0,s.useContext(ea)),a=s.useRef();return(0,Z.i)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==c&&(s=!0,c.setAttribute("data-emotion",e),r.hydrate([c])),a.current=[r,s],function(){r.flush()}},[t]),(0,Z.i)(function(){var e=a.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==n.next&&(0,K.sk)(t,n.next,!0),r.tags.length){var s=r.tags[r.tags.length-1].nextElementSibling;r.before=s,r.flush()}t.insert("",n,r,!1)},[t,n.name]),null});function em(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,Q.J)(t)}function ev(){var e=em.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var eg=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var s=t[n];if(null!=s){var c=void 0;switch(typeof s){case"boolean":break;case"object":if(Array.isArray(s))c=e(s);else for(var o in c="",s)s[o]&&o&&(c&&(c+=" "),c+=o);break;default:c=s}c&&(a&&(a+=" "),a+=c)}}return a},eb=function(e){var t=e.cache,r=e.serializedArr;return(0,Z.s)(function(){for(var e=0;e<r.length;e++)(0,K.sk)(t,r[e],!1)}),null},e$=en(function(e,t){var r=!1,n=[],a=function(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];var s=(0,Q.J)(r,t.registered);return n.push(s),(0,K.SF)(t,s,!1),t.key+"-"+s.name},c={css:a,cx:function(){for(var e,r,n,s,c=arguments.length,o=Array(c),i=0;i<c;i++)o[i]=arguments[i];return e=t.registered,r=eg(o),n=[],s=(0,K.Rk)(e,n,r),n.length<2?r:s+a(n)},theme:s.useContext(ea)},o=e.children(c);return r=!0,s.createElement(s.Fragment,null,s.createElement(eb,{cache:t,serializedArr:n}),o)})},Hk(e,t,r){var n,a=r("IF"),s=!!(n||(n=r.t(a,2))).useInsertionEffect&&(n||(n=r.t(a,2))).useInsertionEffect,c=s||function(e){return e()},o=s||a.useLayoutEffect;r.d(t,{},{i:o,s:c})},o(e,t,r){var n=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)};r.d(t,{},{Rk:function(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n},SF:n,sk:function(e,t,r){n(e,t,r);var a=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var s=t;do e.insert(t===s?"."+a:"",s,e.sheet,!0),s=s.next;while(void 0!==s)}}})},A(e,t,r){var n=r("t9"),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(e){return n.isMemo(e)?c:o[e.$$typeof]||a}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=c;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var a=h(r);a&&a!==d&&e(t,a,n)}var c=l(r);f&&(c=c.concat(f(r)));for(var o=i(t),y=i(r),m=0;m<c.length;++m){var v=c[m];if(!s[v]&&!(n&&n[v])&&!(y&&y[v])&&!(o&&o[v])){var g=p(r,v);try{u(t,v,g)}catch(e){}}}}return t}},r0(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,$=r?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case s:case o:case c:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case m:case y:case i:return e;default:return t}}case a:return t}}}function S(e){return k(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=i,t.Element=n,t.ForwardRef=p,t.Fragment=s,t.Lazy=m,t.Memo=y,t.Portal=a,t.Profiler=o,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||k(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===i},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===s},t.isLazy=function(e){return k(e)===m},t.isMemo=function(e){return k(e)===y},t.isPortal=function(e){return k(e)===a},t.isProfiler=function(e){return k(e)===o},t.isStrictMode=function(e){return k(e)===c},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===f||e===o||e===c||e===h||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===i||e.$$typeof===u||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===$||e.$$typeof===v)},t.typeOf=k},t9(e,t,r){e.exports=r("r0")}}]);
1
+ /*! LICENSE: 0p.4e1d1fe39a.js.LICENSE.txt */
2
+ "use strict";(self.chunk_PulzrTimeSeriesChart_0_1_3=self.chunk_PulzrTimeSeriesChart_0_1_3||[]).push([["0p"],{qp(e,t,r){r.r(t),r.d(t,{CacheProvider:()=>et,ClassNames:()=>e$,Global:()=>ey,ThemeContext:()=>ea,ThemeProvider:()=>eo,__unsafe_useEmotionCache:()=>er,createElement:()=>ed,css:()=>em,jsx:()=>ed,keyframes:()=>ev,useTheme:()=>es,withEmotionCache:()=>en,withTheme:()=>ei});var n,a,s=r("IF"),c=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,u=Object.assign;function l(e,t,r){return e.replace(t,r)}function f(e,t){return e.indexOf(t)}function p(e,t){return 0|e.charCodeAt(t)}function h(e,t,r){return e.slice(t,r)}function d(e){return e.length}function y(e,t){return t.push(e),e}var m=1,v=1,g=0,b=0,$=0,k="";function S(e,t,r,n,a,s,c){return{value:e,root:t,parent:r,type:n,props:a,children:s,line:m,column:v,length:c,return:""}}function w(e,t){return u(S("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return $=b<g?p(k,b++):0,v++,10===$&&(v=1,m++),$}function C(){return p(k,b)}function E(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _(e){return m=v=1,g=d(k=e),b=0,[]}function P(e){var t,r;return(t=b-1,r=function e(t){for(;x();)switch($){case t:return b;case 34:case 39:34!==t&&39!==t&&e($);break;case 40:41===t&&e(t);break;case 92:x()}return b}(91===e?e+2:40===e?e+1:e),h(k,t,r)).trim()}var A="-ms-",T="-moz-",O="-webkit-",N="comm",M="rule",j="decl",F="@keyframes";function z(e,t){for(var r="",n=e.length,a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function R(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case j:return e.return=e.return||e.value;case N:return"";case F:return e.return=e.value+"{"+z(e.children,n)+"}";case M:e.value=e.props.join(",")}return d(r=z(e.children,n))?e.return=e.value+"{"+r+"}":""}function I(e,t,r,n,a,s,c,i,u,f,p){for(var d=a-1,y=0===a?s:[""],m=y.length,v=0,g=0,b=0;v<n;++v)for(var $=0,k=h(e,d+1,d=o(g=c[v])),w=e;$<m;++$)(w=(g>0?y[$]+" "+k:l(k,/&\f/g,y[$])).trim())&&(u[b++]=w);return S(e,t,r,0===a?M:i,u,f,p)}function J(e,t,r,n){return S(e,t,r,j,h(e,0,n),h(e,n+1,-1),n)}var D=function(e,t,r){for(var n=0,a=0;n=a,a=C(),38===n&&12===a&&(t[r]=1),!E(a);)x();return h(k,e,b)},L=function(e,t){var r=-1,n=44;do switch(E(n)){case 0:38===n&&12===C()&&(t[r]=1),e[r]+=D(b-1,t,r);break;case 2:e[r]+=P(n);break;case 4:if(44===n){e[++r]=58===C()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}while(n=x())return e},q=function(e,t){var r;return r=L(_(e),t),k="",r},H=new WeakMap,W=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||H.get(r))&&!n){H.set(e,!0);for(var a=[],s=q(t,a),c=r.props,o=0,i=0;o<s.length;o++)for(var u=0;u<c.length;u++,i++)e.props[i]=a[o]?s[o].replace(/&\f/g,c[u]):c[u]+" "+s[o]}}},B=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},X=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case j:e.return=function e(t,r){switch(45^p(t,0)?(((r<<2^p(t,0))<<2^p(t,1))<<2^p(t,2))<<2^p(t,3):0){case 5103:return O+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return O+t+T+t+A+t+t;case 6828:case 4268:return O+t+A+t+t;case 6165:return O+t+A+"flex-"+t+t;case 5187:return O+t+l(t,/(\w+).+(:[^]+)/,O+"box-$1$2"+A+"flex-$1$2")+t;case 5443:return O+t+A+"flex-item-"+l(t,/flex-|-self/,"")+t;case 4675:return O+t+A+"flex-line-pack"+l(t,/align-content|flex-|-self/,"")+t;case 5548:return O+t+A+l(t,"shrink","negative")+t;case 5292:return O+t+A+l(t,"basis","preferred-size")+t;case 6060:return O+"box-"+l(t,"-grow","")+O+t+A+l(t,"grow","positive")+t;case 4554:return O+l(t,/([^-])(transform)/g,"$1"+O+"$2")+t;case 6187:return l(l(l(t,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),t,"")+t;case 5495:case 3959:return l(t,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return l(l(t,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+A+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+t+t;case 4095:case 3583:case 4068:case 2532:return l(t,/(.+)-inline(.+)/,O+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-r>6)switch(p(t,r+1)){case 109:if(45!==p(t,r+4))break;case 102:return l(t,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+T+(108==p(t,r+3)?"$3":"$2-$3"))+t;case 115:return~f(t,"stretch")?e(l(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==p(t,r+1))break;case 6444:switch(p(t,d(t)-3-(~f(t,"!important")&&10))){case 107:return l(t,":",":"+O)+t;case 101:return l(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(45===p(t,14)?"inline-":"")+"box$3$1"+O+"$2$3$1"+A+"$2box$3")+t}break;case 5936:switch(p(t,r+11)){case 114:return O+t+A+l(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return O+t+A+l(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return O+t+A+l(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return O+t+A+t+t}return t}(e.value,e.length);break;case F:return z([w(e,{value:l(e.value,"@","@"+O)})],n);case M:if(e.length){var a,s;return a=e.props,s=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return z([w(e,{props:[l(t,/:(read-\w+)/,":"+T+"$1")]})],n);case"::placeholder":return z([w(e,{props:[l(t,/:(plac\w+)/,":"+O+"input-$1")]}),w(e,{props:[l(t,/:(plac\w+)/,":"+T+"$1")]}),w(e,{props:[l(t,/:(plac\w+)/,A+"input-$1")]})],n)}return""},a.map(s).join("")}}}],Y=r("IY"),G=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},U=r("A"),V=r.n(U),K=r("o"),Q=r("Bv"),Z=r("Hk"),ee=s.createContext("u">typeof HTMLElement?function(e){var t,r,n,a,s,o=e.key;if("css"===o){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var g=e.stylisPlugins||X,w={},A=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)w[t[r]]=!0;A.push(e)});var T=(r=(t=[W,B].concat(g,[R,(n=function(e){s.insert(e)},function(e){!e.root&&(e=e.return)&&n(e)})])).length,function(e,n,a,s){for(var c="",o=0;o<r;o++)c+=t[o](e,n,a,s)||"";return c}),O=function(e){var t,r;return z((r=function e(t,r,n,a,s,c,o,u,g){for(var w,_=0,A=0,T=o,O=0,M=0,j=0,F=1,z=1,R=1,D=0,L="",q=s,H=c,W=a,B=L;z;)switch(j=D,D=x()){case 40:if(108!=j&&58==p(B,T-1)){-1!=f(B+=l(P(D),"&","&\f"),"&\f")&&(R=-1);break}case 34:case 39:case 91:B+=P(D);break;case 9:case 10:case 13:case 32:B+=function(e){for(;$=C();)if($<33)x();else break;return E(e)>2||E($)>3?"":" "}(j);break;case 92:B+=function(e,t){for(var r;--t&&x()&&!($<48)&&!($>102)&&(!($>57)||!($<65))&&(!($>70)||!($<97)););return r=b+(t<6&&32==C()&&32==x()),h(k,e,r)}(b-1,7);continue;case 47:switch(C()){case 42:case 47:y((w=function(e,t){for(;x();)if(e+$===57)break;else if(e+$===84&&47===C())break;return"/*"+h(k,t,b-1)+"*"+i(47===e?e:x())}(x(),b),S(w,r,n,N,i($),h(w,2,-2),0)),g);break;default:B+="/"}break;case 123*F:u[_++]=d(B)*R;case 125*F:case 59:case 0:switch(D){case 0:case 125:z=0;case 59+A:-1==R&&(B=l(B,/\f/g,"")),M>0&&d(B)-T&&y(M>32?J(B+";",a,n,T-1):J(l(B," ","")+";",a,n,T-2),g);break;case 59:B+=";";default:if(y(W=I(B,r,n,_,A,s,u,L,q=[],H=[],T),c),123===D)if(0===A)e(B,r,W,W,q,c,T,u,H);else switch(99===O&&110===p(B,3)?100:O){case 100:case 108:case 109:case 115:e(t,W,W,a&&y(I(t,W,W,0,0,s,u,L,s,q=[],T),H),s,H,T,u,a?q:H);break;default:e(B,W,W,W,[""],H,0,u,H)}}_=A=M=0,F=R=1,L=B="",T=o;break;case 58:T=1+d(B),M=j;default:if(F<1){if(123==D)--F;else if(125==D&&0==F++&&125==($=b>0?p(k,--b):0,v--,10===$&&(v=1,m--),$))continue}switch(B+=i(D),D*F){case 38:R=A>0?1:(B+="\f",-1);break;case 44:u[_++]=(d(B)-1)*R,R=1;break;case 64:45===C()&&(B+=P(x())),O=C(),A=T=d(L=B+=function(e){for(;!E(C());)x();return h(k,e,b)}(b)),D++;break;case 45:45===j&&2==d(B)&&(F=0)}}return c}("",null,null,null,[""],t=_(t=e),0,[0],t),k="",r),T)},M={key:o,sheet:new c({key:o,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:w,registered:{},insert:function(e,t,r,n){s=r,O(e?e+"{"+t.styles+"}":t.styles),n&&(M.inserted[t.name]=!0)}};return M.sheet.hydrate(A),M}({key:"css"}):null),et=ee.Provider,er=function(){return(0,s.useContext)(ee)},en=function(e){return(0,s.forwardRef)(function(t,r){return e(t,(0,s.useContext)(ee),r)})},ea=s.createContext({}),es=function(){return s.useContext(ea)},ec=G(function(e){return G(function(t){return"function"==typeof t?t(e):(0,Y.A)({},e,t)})}),eo=function(e){var t=s.useContext(ea);return e.theme!==t&&(t=ec(t)(e.theme)),s.createElement(ea.Provider,{value:t},e.children)};function ei(e){var t=e.displayName||e.name||"Component",r=s.forwardRef(function(t,r){var n=s.useContext(ea);return s.createElement(e,(0,Y.A)({theme:n,ref:r},t))});return r.displayName="WithTheme("+t+")",V()(r,e)}var eu={}.hasOwnProperty,el="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ef=function(e,t){var r={};for(var n in t)eu.call(t,n)&&(r[n]=t[n]);return r[el]=e,r},ep=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,K.SF)(t,r,n),(0,Z.s)(function(){return(0,K.sk)(t,r,n)}),null},eh=en(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var a=e[el],c=[n],o="";"string"==typeof e.className?o=(0,K.Rk)(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var i=(0,Q.J)(c,void 0,s.useContext(ea));o+=t.key+"-"+i.name;var u={};for(var l in e)eu.call(e,l)&&"css"!==l&&l!==el&&(u[l]=e[l]);return u.className=o,r&&(u.ref=r),s.createElement(s.Fragment,null,s.createElement(ep,{cache:t,serialized:i,isStringTag:"string"==typeof a}),s.createElement(a,u))}),ed=function(e,t){var r=arguments;if(null==t||!eu.call(t,"css"))return s.createElement.apply(void 0,r);var n=r.length,a=Array(n);a[0]=eh,a[1]=ef(e,t);for(var c=2;c<n;c++)a[c]=r[c];return s.createElement.apply(null,a)};n=ed||(ed={}),a||(a=n.JSX||(n.JSX={}));var ey=en(function(e,t){var r=e.styles,n=(0,Q.J)([r],void 0,s.useContext(ea)),a=s.useRef();return(0,Z.i)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==c&&(s=!0,c.setAttribute("data-emotion",e),r.hydrate([c])),a.current=[r,s],function(){r.flush()}},[t]),(0,Z.i)(function(){var e=a.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==n.next&&(0,K.sk)(t,n.next,!0),r.tags.length){var s=r.tags[r.tags.length-1].nextElementSibling;r.before=s,r.flush()}t.insert("",n,r,!1)},[t,n.name]),null});function em(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,Q.J)(t)}function ev(){var e=em.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var eg=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var s=t[n];if(null!=s){var c=void 0;switch(typeof s){case"boolean":break;case"object":if(Array.isArray(s))c=e(s);else for(var o in c="",s)s[o]&&o&&(c&&(c+=" "),c+=o);break;default:c=s}c&&(a&&(a+=" "),a+=c)}}return a},eb=function(e){var t=e.cache,r=e.serializedArr;return(0,Z.s)(function(){for(var e=0;e<r.length;e++)(0,K.sk)(t,r[e],!1)}),null},e$=en(function(e,t){var r=!1,n=[],a=function(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];var s=(0,Q.J)(r,t.registered);return n.push(s),(0,K.SF)(t,s,!1),t.key+"-"+s.name},c={css:a,cx:function(){for(var e,r,n,s,c=arguments.length,o=Array(c),i=0;i<c;i++)o[i]=arguments[i];return e=t.registered,r=eg(o),n=[],s=(0,K.Rk)(e,n,r),n.length<2?r:s+a(n)},theme:s.useContext(ea)},o=e.children(c);return r=!0,s.createElement(s.Fragment,null,s.createElement(eb,{cache:t,serializedArr:n}),o)})},Hk(e,t,r){var n,a=r("IF"),s=!!(n||(n=r.t(a,2))).useInsertionEffect&&(n||(n=r.t(a,2))).useInsertionEffect,c=s||function(e){return e()},o=s||a.useLayoutEffect;r.d(t,{},{i:o,s:c})},o(e,t,r){var n=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)};r.d(t,{},{Rk:function(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n},SF:n,sk:function(e,t,r){n(e,t,r);var a=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var s=t;do e.insert(t===s?"."+a:"",s,e.sheet,!0),s=s.next;while(void 0!==s)}}})},A(e,t,r){var n=r("t9"),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(e){return n.isMemo(e)?c:o[e.$$typeof]||a}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=c;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var a=h(r);a&&a!==d&&e(t,a,n)}var c=l(r);f&&(c=c.concat(f(r)));for(var o=i(t),y=i(r),m=0;m<c.length;++m){var v=c[m];if(!s[v]&&!(n&&n[v])&&!(y&&y[v])&&!(o&&o[v])){var g=p(r,v);try{u(t,v,g)}catch(e){}}}}return t}},r0(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,$=r?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case f:case s:case o:case c:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case m:case y:case i:return e;default:return t}}case a:return t}}}function S(e){return k(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=i,t.Element=n,t.ForwardRef=p,t.Fragment=s,t.Lazy=m,t.Memo=y,t.Portal=a,t.Profiler=o,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||k(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===i},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===s},t.isLazy=function(e){return k(e)===m},t.isMemo=function(e){return k(e)===y},t.isPortal=function(e){return k(e)===a},t.isProfiler=function(e){return k(e)===o},t.isStrictMode=function(e){return k(e)===c},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===f||e===o||e===c||e===h||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===i||e.$$typeof===u||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===$||e.$$typeof===v)},t.typeOf=k},t9(e,t,r){e.exports=r("r0")}}]);