@techdocs/cli 1.8.24-next.2 → 1.8.25-next.0
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.
- package/CHANGELOG.md +22 -0
- package/dist/embedded-app/.config-schema.json +983 -2315
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/index.html.tmpl +1 -1
- package/dist/embedded-app/static/2177.8343b97e.chunk.js +4 -0
- package/dist/embedded-app/static/2177.8343b97e.chunk.js.map +1 -0
- package/dist/embedded-app/static/3720.646b3e89.chunk.js +11 -0
- package/dist/embedded-app/static/3720.646b3e89.chunk.js.map +1 -0
- package/dist/embedded-app/static/4487.f04b8beb.chunk.js +3 -0
- package/dist/embedded-app/static/4487.f04b8beb.chunk.js.map +1 -0
- package/dist/embedded-app/static/{5788.ae686304.chunk.js → 5788.b8d84f8c.chunk.js} +2 -2
- package/dist/embedded-app/static/5788.b8d84f8c.chunk.js.map +1 -0
- package/dist/embedded-app/static/8803.2d9f247d.chunk.js +11 -0
- package/dist/embedded-app/static/{8803.428ea2da.chunk.js.map → 8803.2d9f247d.chunk.js.map} +1 -1
- package/dist/embedded-app/static/main.a90fd85d.js +553 -0
- package/dist/embedded-app/static/main.a90fd85d.js.map +1 -0
- package/dist/embedded-app/static/{runtime.379a4fa3.js → runtime.a90fd85d.js} +2 -2
- package/dist/embedded-app/static/{runtime.379a4fa3.js.map → runtime.a90fd85d.js.map} +1 -1
- package/dist/embedded-app/static/{vendor.379a4fa3.js → vendor.a90fd85d.js} +4 -4
- package/dist/embedded-app/static/vendor.a90fd85d.js.map +1 -0
- package/dist/package.json.cjs.js +1 -1
- package/package.json +6 -6
- package/dist/embedded-app/static/2177.ccfa8e42.chunk.js +0 -4
- package/dist/embedded-app/static/2177.ccfa8e42.chunk.js.map +0 -1
- package/dist/embedded-app/static/3720.68bd02ba.chunk.js +0 -11
- package/dist/embedded-app/static/3720.68bd02ba.chunk.js.map +0 -1
- package/dist/embedded-app/static/4487.bd329be6.chunk.js +0 -3
- package/dist/embedded-app/static/4487.bd329be6.chunk.js.map +0 -1
- package/dist/embedded-app/static/5788.ae686304.chunk.js.map +0 -1
- package/dist/embedded-app/static/8803.428ea2da.chunk.js +0 -11
- package/dist/embedded-app/static/main.379a4fa3.js +0 -553
- package/dist/embedded-app/static/main.379a4fa3.js.map +0 -1
- package/dist/embedded-app/static/vendor.379a4fa3.js.map +0 -1
|
@@ -88,7 +88,7 @@ The error may be correlated with this previous error:
|
|
|
88
88
|
`+he.current.stack+`
|
|
89
89
|
|
|
90
90
|
`),N}return useIsomorphicLayoutEffect(function(){ge.current=R,ne.current=Y,ae.current=J,he.current=void 0}),useIsomorphicLayoutEffect(function(){function N(){try{var r=q.getState();if(r===ne.current)return;var i=ge.current(r);if($(i,ae.current))return;ae.current=i,ne.current=r}catch(n){he.current=n}Me()}return Fe.onStateChange=N,Fe.trySubscribe(),N(),function(){return Fe.tryUnsubscribe()}},[q,Fe]),J}function F(R){R===void 0&&(R=ReactReduxContext);var $=R===ReactReduxContext?useDefaultReduxContext:function(){return useContext(R)};return function(j,_){_===void 0&&(_=ze);var Me=$(),Fe=Me.store,he=Me.subscription,ge=Ye(j,_,Fe,he);return useDebugValue(ge),ge}}var a=null,m=e(43144);v(m.unstable_batchedUpdates)},73657:(V,D,e)=>{"use strict";var p,o;e.d(D,{Kd:()=>Z,N_:()=>Ne});var f=e(14041),c=e(43144),u=e(18690),v=e(21613);/**
|
|
91
|
-
* React Router DOM v6.28.
|
|
91
|
+
* React Router DOM v6.28.1
|
|
92
92
|
*
|
|
93
93
|
* Copyright (c) Remix Software Inc.
|
|
94
94
|
*
|
|
@@ -97,7 +97,7 @@ The error may be correlated with this previous error:
|
|
|
97
97
|
*
|
|
98
98
|
* @license MIT
|
|
99
99
|
*/function A(){return A=Object.assign?Object.assign.bind():function(ne){for(var ae=1;ae<arguments.length;ae++){var Y=arguments[ae];for(var J in Y)Object.prototype.hasOwnProperty.call(Y,J)&&(ne[J]=Y[J])}return ne},A.apply(this,arguments)}function h(ne,ae){if(ne==null)return{};var Y={},J=Object.keys(ne),le,N;for(N=0;N<J.length;N++)le=J[N],!(ae.indexOf(le)>=0)&&(Y[le]=ne[le]);return Y}const b="get",C="application/x-www-form-urlencoded";function d(ne){return ne!=null&&typeof ne.tagName=="string"}function W(ne){return d(ne)&&ne.tagName.toLowerCase()==="button"}function g(ne){return d(ne)&&ne.tagName.toLowerCase()==="form"}function E(ne){return d(ne)&&ne.tagName.toLowerCase()==="input"}function x(ne){return!!(ne.metaKey||ne.altKey||ne.ctrlKey||ne.shiftKey)}function S(ne,ae){return ne.button===0&&(!ae||ae==="_self")&&!x(ne)}function O(ne){return ne===void 0&&(ne=""),new URLSearchParams(typeof ne=="string"||Array.isArray(ne)||ne instanceof URLSearchParams?ne:Object.keys(ne).reduce((ae,Y)=>{let J=ne[Y];return ae.concat(Array.isArray(J)?J.map(le=>[Y,le]):[[Y,J]])},[]))}function P(ne,ae){let Y=O(ne);return ae&&ae.forEach((J,le)=>{Y.has(le)||ae.getAll(le).forEach(N=>{Y.append(le,N)})}),Y}let L=null;function K(){if(L===null)try{new FormData(document.createElement("form"),0),L=!1}catch{L=!0}return L}const k=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function H(ne){return ne!=null&&!k.has(ne)?null:ne}function Q(ne,ae){let Y,J,le,N,r;if(g(ne)){let i=ne.getAttribute("action");J=i?stripBasename(i,ae):null,Y=ne.getAttribute("method")||b,le=H(ne.getAttribute("enctype"))||C,N=new FormData(ne)}else if(W(ne)||E(ne)&&(ne.type==="submit"||ne.type==="image")){let i=ne.form;if(i==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let n=ne.getAttribute("formaction")||i.getAttribute("action");if(J=n?stripBasename(n,ae):null,Y=ne.getAttribute("formmethod")||i.getAttribute("method")||b,le=H(ne.getAttribute("formenctype"))||H(i.getAttribute("enctype"))||C,N=new FormData(i,ne),!K()){let{name:s,type:T,value:I}=ne;if(T==="image"){let G=s?s+".":"";N.append(G+"x","0"),N.append(G+"y","0")}else s&&N.append(s,I)}}else{if(d(ne))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');Y=b,J=null,le=C,r=ne}return N&&le==="text/plain"&&(r=N,N=void 0),{action:J,method:Y.toLowerCase(),encType:le,formData:N,body:r}}const Ce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Ke=null,Qe=null,nt="6";try{window.__reactRouterVersion=nt}catch{}function xt(ne,ae){return createRouter({basename:ae?.basename,future:A({},ae?.future,{v7_prependBasename:!0}),history:createBrowserHistory({window:ae?.window}),hydrationData:ae?.hydrationData||lt(),routes:ne,mapRouteProperties:UNSAFE_mapRouteProperties,dataStrategy:ae?.dataStrategy,patchRoutesOnNavigation:ae?.patchRoutesOnNavigation,window:ae?.window}).initialize()}function Ze(ne,ae){return createRouter({basename:ae?.basename,future:A({},ae?.future,{v7_prependBasename:!0}),history:createHashHistory({window:ae?.window}),hydrationData:ae?.hydrationData||lt(),routes:ne,mapRouteProperties:UNSAFE_mapRouteProperties,dataStrategy:ae?.dataStrategy,patchRoutesOnNavigation:ae?.patchRoutesOnNavigation,window:ae?.window}).initialize()}function lt(){var ne;let ae=(ne=window)==null?void 0:ne.__staticRouterHydrationData;return ae&&ae.errors&&(ae=A({},ae,{errors:ve(ae.errors)})),ae}function ve(ne){if(!ne)return null;let ae=Object.entries(ne),Y={};for(let[J,le]of ae)if(le&&le.__type==="RouteErrorResponse")Y[J]=new UNSAFE_ErrorResponseImpl(le.status,le.statusText,le.data,le.internal===!0);else if(le&&le.__type==="Error"){if(le.__subType){let N=window[le.__subType];if(typeof N=="function")try{let r=new N(le.message);r.stack="",Y[J]=r}catch{}}if(Y[J]==null){let N=new Error(le.message);N.stack="",Y[J]=N}}else Y[J]=le;return Y}const Ue=f.createContext({isTransitioning:!1}),ct=f.createContext(new Map),pe=(p||(p=e.t(f,2)))["startTransition"],de=(o||(o=e.t(c,2)))["flushSync"],te=(p||(p=e.t(f,2)))["useId"];function fe(ne){pe?pe(ne):ne()}function oe(ne){de?de(ne):ne()}class ie{constructor(){this.status="pending",this.promise=new Promise((ae,Y)=>{this.resolve=J=>{this.status==="pending"&&(this.status="resolved",ae(J))},this.reject=J=>{this.status==="pending"&&(this.status="rejected",Y(J))}})}}function xe(ne){let{fallbackElement:ae,router:Y,future:J}=ne,[le,N]=React.useState(Y.state),[r,i]=React.useState(),[n,s]=React.useState({isTransitioning:!1}),[T,I]=React.useState(),[G,se]=React.useState(),[Ee,Te]=React.useState(),Xe=React.useRef(new Map),{v7_startTransition:rt}=J||{},yt=React.useCallback(Dt=>{rt?fe(Dt):Dt()},[rt]),et=React.useCallback((Dt,Ht)=>{let{deletedFetchers:$t,flushSync:sn,viewTransitionOpts:ln}=Ht;$t.forEach(en=>Xe.current.delete(en)),Dt.fetchers.forEach((en,Kt)=>{en.data!==void 0&&Xe.current.set(Kt,en.data)});let mn=Y.window==null||Y.window.document==null||typeof Y.window.document.startViewTransition!="function";if(!ln||mn){sn?oe(()=>N(Dt)):yt(()=>N(Dt));return}if(sn){oe(()=>{G&&(T&&T.resolve(),G.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:ln.currentLocation,nextLocation:ln.nextLocation})});let en=Y.window.document.startViewTransition(()=>{oe(()=>N(Dt))});en.finished.finally(()=>{oe(()=>{I(void 0),se(void 0),i(void 0),s({isTransitioning:!1})})}),oe(()=>se(en));return}G?(T&&T.resolve(),G.skipTransition(),Te({state:Dt,currentLocation:ln.currentLocation,nextLocation:ln.nextLocation})):(i(Dt),s({isTransitioning:!0,flushSync:!1,currentLocation:ln.currentLocation,nextLocation:ln.nextLocation}))},[Y.window,G,T,Xe,yt]);React.useLayoutEffect(()=>Y.subscribe(et),[Y,et]),React.useEffect(()=>{n.isTransitioning&&!n.flushSync&&I(new ie)},[n]),React.useEffect(()=>{if(T&&r&&Y.window){let Dt=r,Ht=T.promise,$t=Y.window.document.startViewTransition(async()=>{yt(()=>N(Dt)),await Ht});$t.finished.finally(()=>{I(void 0),se(void 0),i(void 0),s({isTransitioning:!1})}),se($t)}},[yt,r,T,Y.window]),React.useEffect(()=>{T&&r&&le.location.key===r.location.key&&T.resolve()},[T,G,le.location,r]),React.useEffect(()=>{!n.isTransitioning&&Ee&&(i(Ee.state),s({isTransitioning:!0,flushSync:!1,currentLocation:Ee.currentLocation,nextLocation:Ee.nextLocation}),Te(void 0))},[n.isTransitioning,Ee]),React.useEffect(()=>{},[]);let vt=React.useMemo(()=>({createHref:Y.createHref,encodeLocation:Y.encodeLocation,go:Dt=>Y.navigate(Dt),push:(Dt,Ht,$t)=>Y.navigate(Dt,{state:Ht,preventScrollReset:$t?.preventScrollReset}),replace:(Dt,Ht,$t)=>Y.navigate(Dt,{replace:!0,state:Ht,preventScrollReset:$t?.preventScrollReset})}),[Y]),Lt=Y.basename||"/",Wt=React.useMemo(()=>({router:Y,navigator:vt,static:!1,basename:Lt}),[Y,vt,Lt]),zt=React.useMemo(()=>({v7_relativeSplatPath:Y.future.v7_relativeSplatPath}),[Y.future.v7_relativeSplatPath]);return React.useEffect(()=>UNSAFE_logV6DeprecationWarnings(J,Y.future),[J,Y.future]),React.createElement(React.Fragment,null,React.createElement(UNSAFE_DataRouterContext.Provider,{value:Wt},React.createElement(UNSAFE_DataRouterStateContext.Provider,{value:le},React.createElement(ct.Provider,{value:Xe.current},React.createElement(Ue.Provider,{value:n},React.createElement(Router,{basename:Lt,location:le.location,navigationType:le.historyAction,navigator:vt,future:zt},le.initialized||Y.future.v7_partialHydration?React.createElement(We,{routes:Y.routes,future:Y.future,state:le}):ae))))),null)}const We=null;function _e(ne){let{routes:ae,future:Y,state:J}=ne;return UNSAFE_useRoutesImpl(ae,void 0,J,Y)}function Z(ne){let{basename:ae,children:Y,future:J,window:le}=ne,N=f.useRef();N.current==null&&(N.current=(0,v.zR)({window:le,v5Compat:!0}));let r=N.current,[i,n]=f.useState({action:r.action,location:r.location}),{v7_startTransition:s}=J||{},T=f.useCallback(I=>{s&&pe?pe(()=>n(I)):n(I)},[n,s]);return f.useLayoutEffect(()=>r.listen(T),[r,T]),f.useEffect(()=>(0,u.V8)(J),[J]),f.createElement(u.Ix,{basename:ae,children:Y,location:i.location,navigationType:i.action,navigator:r,future:J})}function ut(ne){let{basename:ae,children:Y,future:J,window:le}=ne,N=React.useRef();N.current==null&&(N.current=createHashHistory({window:le,v5Compat:!0}));let r=N.current,[i,n]=React.useState({action:r.action,location:r.location}),{v7_startTransition:s}=J||{},T=React.useCallback(I=>{s&&pe?pe(()=>n(I)):n(I)},[n,s]);return React.useLayoutEffect(()=>r.listen(T),[r,T]),React.useEffect(()=>UNSAFE_logV6DeprecationWarnings(J),[J]),React.createElement(Router,{basename:ae,children:Y,location:i.location,navigationType:i.action,navigator:r,future:J})}function It(ne){let{basename:ae,children:Y,future:J,history:le}=ne,[N,r]=React.useState({action:le.action,location:le.location}),{v7_startTransition:i}=J||{},n=React.useCallback(s=>{i&&pe?pe(()=>r(s)):r(s)},[r,i]);return React.useLayoutEffect(()=>le.listen(n),[le,n]),React.useEffect(()=>UNSAFE_logV6DeprecationWarnings(J),[J]),React.createElement(Router,{basename:ae,children:Y,location:N.location,navigationType:N.action,navigator:le,future:J})}const U=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ke=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ne=f.forwardRef(function(ae,Y){let{onClick:J,relative:le,reloadDocument:N,replace:r,state:i,target:n,to:s,preventScrollReset:T,viewTransition:I}=ae,G=h(ae,Ce),{basename:se}=f.useContext(u.jb),Ee,Te=!1;if(typeof s=="string"&&ke.test(s)&&(Ee=s,U))try{let et=new URL(window.location.href),vt=s.startsWith("//")?new URL(et.protocol+s):new URL(s),Lt=(0,v.pb)(vt.pathname,se);vt.origin===et.origin&&Lt!=null?s=Lt+vt.search+vt.hash:Te=!0}catch{}let Xe=(0,u.$P)(s,{relative:le}),rt=Ve(s,{replace:r,state:i,target:n,preventScrollReset:T,relative:le,viewTransition:I});function yt(et){J&&J(et),et.defaultPrevented||rt(et)}return f.createElement("a",A({},G,{href:Ee||Xe,onClick:Te||N?J:yt,ref:Y,target:n}))}),ue=null,mt=null;function it(ne){let{getKey:ae,storageKey:Y}=ne;return _({getKey:ae,storageKey:Y}),null}var $e;(function(ne){ne.UseScrollRestoration="useScrollRestoration",ne.UseSubmit="useSubmit",ne.UseSubmitFetcher="useSubmitFetcher",ne.UseFetcher="useFetcher",ne.useViewTransitionState="useViewTransitionState"})($e||($e={}));var Le;(function(ne){ne.UseFetcher="useFetcher",ne.UseFetchers="useFetchers",ne.UseScrollRestoration="useScrollRestoration"})(Le||(Le={}));function Oe(ne){return ne+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Ge(ne){let ae=React.useContext(UNSAFE_DataRouterContext);return ae||UNSAFE_invariant(!1),ae}function gt(ne){let ae=React.useContext(UNSAFE_DataRouterStateContext);return ae||UNSAFE_invariant(!1),ae}function Ve(ne,ae){let{target:Y,replace:J,state:le,preventScrollReset:N,relative:r,viewTransition:i}=ae===void 0?{}:ae,n=(0,u.Zp)(),s=(0,u.zy)(),T=(0,u.x$)(ne,{relative:r});return f.useCallback(I=>{if(S(I,Y)){I.preventDefault();let G=J!==void 0?J:(0,v.AO)(s)===(0,v.AO)(T);n(ne,{replace:G,state:le,preventScrollReset:N,relative:r,viewTransition:i})}},[s,n,T,J,le,Y,ne,N,r,i])}function ye(ne){let ae=React.useRef(O(ne)),Y=React.useRef(!1),J=useLocation(),le=React.useMemo(()=>P(J.search,Y.current?null:ae.current),[J.search]),N=useNavigate(),r=React.useCallback((i,n)=>{const s=O(typeof i=="function"?i(le):i);Y.current=!0,N("?"+s,n)},[N,le]);return[le,r]}function ze(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Ye=0,F=()=>"__"+String(++Ye)+"__";function a(){let{router:ne}=Ge($e.UseSubmit),{basename:ae}=React.useContext(UNSAFE_NavigationContext),Y=UNSAFE_useRouteId();return React.useCallback(function(J,le){le===void 0&&(le={}),ze();let{action:N,method:r,encType:i,formData:n,body:s}=Q(J,ae);if(le.navigate===!1){let T=le.fetcherKey||F();ne.fetch(T,Y,le.action||N,{preventScrollReset:le.preventScrollReset,formData:n,body:s,formMethod:le.method||r,formEncType:le.encType||i,flushSync:le.flushSync})}else ne.navigate(le.action||N,{preventScrollReset:le.preventScrollReset,formData:n,body:s,formMethod:le.method||r,formEncType:le.encType||i,replace:le.replace,state:le.state,fromRouteId:Y,flushSync:le.flushSync,viewTransition:le.viewTransition})},[ne,ae,Y])}function m(ne,ae){let{relative:Y}=ae===void 0?{}:ae,{basename:J}=React.useContext(UNSAFE_NavigationContext),le=React.useContext(UNSAFE_RouteContext);le||UNSAFE_invariant(!1);let[N]=le.matches.slice(-1),r=A({},useResolvedPath(ne||".",{relative:Y})),i=useLocation();if(ne==null){r.search=i.search;let n=new URLSearchParams(r.search),s=n.getAll("index");if(s.some(I=>I==="")){n.delete("index"),s.filter(G=>G).forEach(G=>n.append("index",G));let I=n.toString();r.search=I?"?"+I:""}}return(!ne||ne===".")&&N.route.index&&(r.search=r.search?r.search.replace(/^\?/,"?index&"):"?index"),J!=="/"&&(r.pathname=r.pathname==="/"?J:joinPaths([J,r.pathname])),createPath(r)}function R(ne){var ae;let{key:Y}=ne===void 0?{}:ne,{router:J}=Ge($e.UseFetcher),le=gt(Le.UseFetcher),N=React.useContext(ct),r=React.useContext(UNSAFE_RouteContext),i=(ae=r.matches[r.matches.length-1])==null?void 0:ae.route.id;N||UNSAFE_invariant(!1),r||UNSAFE_invariant(!1),i==null&&UNSAFE_invariant(!1);let n=te?te():"",[s,T]=React.useState(Y||n);Y&&Y!==s?T(Y):s||T(F()),React.useEffect(()=>(J.getFetcher(s),()=>{J.deleteFetcher(s)}),[J,s]);let I=React.useCallback((yt,et)=>{i||UNSAFE_invariant(!1),J.fetch(s,i,yt,et)},[s,i,J]),G=a(),se=React.useCallback((yt,et)=>{G(yt,A({},et,{navigate:!1,fetcherKey:s}))},[s,G]),Ee=React.useMemo(()=>React.forwardRef((et,vt)=>React.createElement(mt,A({},et,{navigate:!1,fetcherKey:s,ref:vt}))),[s]),Te=le.fetchers.get(s)||IDLE_FETCHER,Xe=N.get(s);return React.useMemo(()=>A({Form:Ee,submit:se,load:I},Te,{data:Xe}),[Ee,se,I,Te,Xe])}function $(){let ne=gt(Le.UseFetchers);return Array.from(ne.fetchers.entries()).map(ae=>{let[Y,J]=ae;return A({},J,{key:Y})})}const q="react-router-scroll-positions";let j={};function _(ne){let{getKey:ae,storageKey:Y}=ne===void 0?{}:ne,{router:J}=Ge($e.UseScrollRestoration),{restoreScrollPosition:le,preventScrollReset:N}=gt(Le.UseScrollRestoration),{basename:r}=React.useContext(UNSAFE_NavigationContext),i=useLocation(),n=useMatches(),s=useNavigation();React.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Fe(React.useCallback(()=>{if(s.state==="idle"){let T=(ae?ae(i,n):null)||i.key;j[T]=window.scrollY}try{sessionStorage.setItem(Y||q,JSON.stringify(j))}catch{}window.history.scrollRestoration="auto"},[Y,ae,s.state,i,n])),typeof document<"u"&&(React.useLayoutEffect(()=>{try{let T=sessionStorage.getItem(Y||q);T&&(j=JSON.parse(T))}catch{}},[Y]),React.useLayoutEffect(()=>{let T=ae&&r!=="/"?(G,se)=>ae(A({},G,{pathname:stripBasename(G.pathname,r)||G.pathname}),se):ae,I=J?.enableScrollRestoration(j,()=>window.scrollY,T);return()=>I&&I()},[J,r,ae]),React.useLayoutEffect(()=>{if(le!==!1){if(typeof le=="number"){window.scrollTo(0,le);return}if(i.hash){let T=document.getElementById(decodeURIComponent(i.hash.slice(1)));if(T){T.scrollIntoView();return}}N!==!0&&window.scrollTo(0,0)}},[i,le,N]))}function Me(ne,ae){let{capture:Y}=ae||{};React.useEffect(()=>{let J=Y!=null?{capture:Y}:void 0;return window.addEventListener("beforeunload",ne,J),()=>{window.removeEventListener("beforeunload",ne,J)}},[ne,Y])}function Fe(ne,ae){let{capture:Y}=ae||{};React.useEffect(()=>{let J=Y!=null?{capture:Y}:void 0;return window.addEventListener("pagehide",ne,J),()=>{window.removeEventListener("pagehide",ne,J)}},[ne,Y])}function he(ne){let{when:ae,message:Y}=ne,J=useBlocker(ae);React.useEffect(()=>{J.state==="blocked"&&(window.confirm(Y)?setTimeout(J.proceed,0):J.reset())},[J,Y]),React.useEffect(()=>{J.state==="blocked"&&!ae&&J.reset()},[J,ae])}function ge(ne,ae){ae===void 0&&(ae={});let Y=React.useContext(Ue);Y==null&&UNSAFE_invariant(!1);let{basename:J}=Ge($e.useViewTransitionState),le=useResolvedPath(ne,{relative:ae.relative});if(!Y.isTransitioning)return!1;let N=stripBasename(Y.currentLocation.pathname,J)||Y.currentLocation.pathname,r=stripBasename(Y.nextLocation.pathname,J)||Y.nextLocation.pathname;return matchPath(le.pathname,r)!=null||matchPath(le.pathname,N)!=null}},18690:(V,D,e)=>{"use strict";var p;e.d(D,{$P:()=>W,AV:()=>he,BV:()=>$,C5:()=>F,Ix:()=>R,P1:()=>Q,Ri:()=>g,V8:()=>Ge,Ye:()=>Qe,Zp:()=>L,fS:()=>Ye,g:()=>Ce,jb:()=>h,qh:()=>m,sv:()=>a,x$:()=>Ke,zy:()=>E});var o=e(14041),f=e(21613);/**
|
|
100
|
-
* React Router v6.28.
|
|
100
|
+
* React Router v6.28.1
|
|
101
101
|
*
|
|
102
102
|
* Copyright (c) Remix Software Inc.
|
|
103
103
|
*
|
|
@@ -105,7 +105,7 @@ The error may be correlated with this previous error:
|
|
|
105
105
|
* LICENSE.md file in the root directory of this source tree.
|
|
106
106
|
*
|
|
107
107
|
* @license MIT
|
|
108
|
-
*/function c(){return c=Object.assign?Object.assign.bind():function(Y){for(var J=1;J<arguments.length;J++){var le=arguments[J];for(var N in le)Object.prototype.hasOwnProperty.call(le,N)&&(Y[N]=le[N])}return Y},c.apply(this,arguments)}const u=o.createContext(null),v=o.createContext(null),A=o.createContext(null),h=o.createContext(null),b=o.createContext(null),C=o.createContext({outlet:null,matches:[],isDataRoute:!1}),d=o.createContext(null);function W(Y,J){let{relative:le}=J===void 0?{}:J;g()||(0,f.Oi)(!1);let{basename:N,navigator:r}=o.useContext(h),{hash:i,pathname:n,search:s}=Ke(Y,{relative:le}),T=n;return N!=="/"&&(T=n==="/"?N:(0,f.HS)([N,n])),r.createHref({pathname:T,search:s,hash:i})}function g(){return o.useContext(b)!=null}function E(){return g()||(0,f.Oi)(!1),o.useContext(b).location}function x(){return React.useContext(b).navigationType}function S(Y){g()||UNSAFE_invariant(!1);let{pathname:J}=E();return React.useMemo(()=>matchPath(Y,UNSAFE_decodePath(J)),[J,Y])}const O=null;function P(Y){o.useContext(h).static||o.useLayoutEffect(Y)}function L(){let{isDataRoute:Y}=o.useContext(C);return Y?ue():K()}function K(){g()||(0,f.Oi)(!1);let Y=o.useContext(u),{basename:J,future:le,navigator:N}=o.useContext(h),{matches:r}=o.useContext(C),{pathname:i}=E(),n=JSON.stringify((0,f.yD)(r,le.v7_relativeSplatPath)),s=o.useRef(!1);return P(()=>{s.current=!0}),o.useCallback(function(I,G){if(G===void 0&&(G={}),!s.current)return;if(typeof I=="number"){N.go(I);return}let se=(0,f.Gh)(I,JSON.parse(n),i,G.relative==="path");Y==null&&J!=="/"&&(se.pathname=se.pathname==="/"?J:(0,f.HS)([J,se.pathname])),(G.replace?N.replace:N.push)(se,G.state,G)},[J,N,n,i,Y])}const k=o.createContext(null);function H(){return React.useContext(k)}function Q(Y){let J=o.useContext(C).outlet;return J&&o.createElement(k.Provider,{value:Y},J)}function Ce(){let{matches:Y}=o.useContext(C),J=Y[Y.length-1];return J?J.params:{}}function Ke(Y,J){let{relative:le}=J===void 0?{}:J,{future:N}=o.useContext(h),{matches:r}=o.useContext(C),{pathname:i}=E(),n=JSON.stringify((0,f.yD)(r,N.v7_relativeSplatPath));return o.useMemo(()=>(0,f.Gh)(Y,JSON.parse(n),i,le==="path"),[Y,n,i,le])}function Qe(Y,J){return nt(Y,J)}function nt(Y,J,le,N){g()||(0,f.Oi)(!1);let{navigator:r}=o.useContext(h),{matches:i}=o.useContext(C),n=i[i.length-1],s=n?n.params:{},T=n?n.pathname:"/",I=n?n.pathnameBase:"/",G=n&&n.route,se=E(),Ee;if(J){var Te;let vt=typeof J=="string"?(0,f.Rr)(J):J;I==="/"||(Te=vt.pathname)!=null&&Te.startsWith(I)||(0,f.Oi)(!1),Ee=vt}else Ee=se;let Xe=Ee.pathname||"/",rt=Xe;if(I!=="/"){let vt=I.replace(/^\//,"").split("/");rt="/"+Xe.replace(/^\//,"").split("/").slice(vt.length).join("/")}let yt=(0,f.ue)(Y,{pathname:rt}),et=Ue(yt&&yt.map(vt=>Object.assign({},vt,{params:Object.assign({},s,vt.params),pathname:(0,f.HS)([I,r.encodeLocation?r.encodeLocation(vt.pathname).pathname:vt.pathname]),pathnameBase:vt.pathnameBase==="/"?I:(0,f.HS)([I,r.encodeLocation?r.encodeLocation(vt.pathnameBase).pathname:vt.pathnameBase])})),i,le,N);return J&&et?o.createElement(b.Provider,{value:{location:c({pathname:"/",search:"",hash:"",state:null,key:"default"},Ee),navigationType:f.rc.Pop}},et):et}function xt(){let Y=ut(),J=(0,f.pX)(Y)?Y.status+" "+Y.statusText:Y instanceof Error?Y.message:JSON.stringify(Y),le=Y instanceof Error?Y.stack:null,N="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:N},i={padding:"2px 4px",backgroundColor:N};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},J),le?o.createElement("pre",{style:r},le):null,null)}const Ze=o.createElement(xt,null);class lt extends o.Component{constructor(J){super(J),this.state={location:J.location,revalidation:J.revalidation,error:J.error}}static getDerivedStateFromError(J){return{error:J}}static getDerivedStateFromProps(J,le){return le.location!==J.location||le.revalidation!=="idle"&&J.revalidation==="idle"?{error:J.error,location:J.location,revalidation:J.revalidation}:{error:J.error!==void 0?J.error:le.error,location:le.location,revalidation:J.revalidation||le.revalidation}}componentDidCatch(J,le){console.error("React Router caught the following error during render",J,le)}render(){return this.state.error!==void 0?o.createElement(C.Provider,{value:this.props.routeContext},o.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ve(Y){let{routeContext:J,match:le,children:N}=Y,r=o.useContext(u);return r&&r.static&&r.staticContext&&(le.route.errorElement||le.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=le.route.id),o.createElement(C.Provider,{value:J},N)}function Ue(Y,J,le,N){var r;if(J===void 0&&(J=[]),le===void 0&&(le=null),N===void 0&&(N=null),Y==null){var i;if(!le)return null;if(le.errors)Y=le.matches;else if((i=N)!=null&&i.v7_partialHydration&&J.length===0&&!le.initialized&&le.matches.length>0)Y=le.matches;else return null}let n=Y,s=(r=le)==null?void 0:r.errors;if(s!=null){let G=n.findIndex(se=>se.route.id&&s?.[se.route.id]!==void 0);G>=0||(0,f.Oi)(!1),n=n.slice(0,Math.min(n.length,G+1))}let T=!1,I=-1;if(le&&N&&N.v7_partialHydration)for(let G=0;G<n.length;G++){let se=n[G];if((se.route.HydrateFallback||se.route.hydrateFallbackElement)&&(I=G),se.route.id){let{loaderData:Ee,errors:Te}=le,Xe=se.route.loader&&Ee[se.route.id]===void 0&&(!Te||Te[se.route.id]===void 0);if(se.route.lazy||Xe){T=!0,I>=0?n=n.slice(0,I+1):n=[n[0]];break}}}return n.reduceRight((G,se,Ee)=>{let Te,Xe=!1,rt=null,yt=null;le&&(Te=s&&se.route.id?s[se.route.id]:void 0,rt=se.route.errorElement||Ze,T&&(I<0&&Ee===0?(it("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Xe=!0,yt=null):I===Ee&&(Xe=!0,yt=se.route.hydrateFallbackElement||null)));let et=J.concat(n.slice(0,Ee+1)),vt=()=>{let Lt;return Te?Lt=rt:Xe?Lt=yt:se.route.Component?Lt=o.createElement(se.route.Component,null):se.route.element?Lt=se.route.element:Lt=G,o.createElement(ve,{match:se,routeContext:{outlet:G,matches:et,isDataRoute:le!=null},children:Lt})};return le&&(se.route.ErrorBoundary||se.route.errorElement||Ee===0)?o.createElement(lt,{location:le.location,revalidation:le.revalidation,component:rt,error:Te,children:vt(),routeContext:{outlet:null,matches:et,isDataRoute:!0}}):vt()},null)}var ct=function(Y){return Y.UseBlocker="useBlocker",Y.UseRevalidator="useRevalidator",Y.UseNavigateStable="useNavigate",Y}(ct||{}),He=function(Y){return Y.UseBlocker="useBlocker",Y.UseLoaderData="useLoaderData",Y.UseActionData="useActionData",Y.UseRouteError="useRouteError",Y.UseNavigation="useNavigation",Y.UseRouteLoaderData="useRouteLoaderData",Y.UseMatches="useMatches",Y.UseRevalidator="useRevalidator",Y.UseNavigateStable="useNavigate",Y.UseRouteId="useRouteId",Y}(He||{});function pe(Y){return Y+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function je(Y){let J=o.useContext(u);return J||(0,f.Oi)(!1),J}function de(Y){let J=o.useContext(v);return J||(0,f.Oi)(!1),J}function ee(Y){let J=o.useContext(C);return J||(0,f.Oi)(!1),J}function te(Y){let J=ee(Y),le=J.matches[J.matches.length-1];return le.route.id||(0,f.Oi)(!1),le.route.id}function fe(){return te(He.UseRouteId)}function oe(){return de(He.UseNavigation).navigation}function ie(){let Y=je(ct.UseRevalidator),J=de(He.UseRevalidator);return React.useMemo(()=>({revalidate:Y.router.revalidate,state:J.revalidation}),[Y.router.revalidate,J.revalidation])}function xe(){let{matches:Y,loaderData:J}=de(He.UseMatches);return React.useMemo(()=>Y.map(le=>UNSAFE_convertRouteMatchToUiMatch(le,J)),[Y,J])}function We(){let Y=de(He.UseLoaderData),J=te(He.UseLoaderData);if(Y.errors&&Y.errors[J]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+J+")");return}return Y.loaderData[J]}function _e(Y){return de(He.UseRouteLoaderData).loaderData[Y]}function Z(){let Y=de(He.UseActionData),J=te(He.UseLoaderData);return Y.actionData?Y.actionData[J]:void 0}function ut(){var Y;let J=o.useContext(d),le=de(He.UseRouteError),N=te(He.UseRouteError);return J!==void 0?J:(Y=le.errors)==null?void 0:Y[N]}function It(){let Y=React.useContext(A);return Y?._data}function U(){let Y=React.useContext(A);return Y?._error}let ke=0;function Ne(Y){let{router:J,basename:le}=je(ct.UseBlocker),N=de(He.UseBlocker),[r,i]=React.useState(""),n=React.useCallback(s=>{if(typeof Y!="function")return!!Y;if(le==="/")return Y(s);let{currentLocation:T,nextLocation:I,historyAction:G}=s;return Y({currentLocation:c({},T,{pathname:stripBasename(T.pathname,le)||T.pathname}),nextLocation:c({},I,{pathname:stripBasename(I.pathname,le)||I.pathname}),historyAction:G})},[le,Y]);return React.useEffect(()=>{let s=String(++ke);return i(s),()=>J.deleteBlocker(s)},[J]),React.useEffect(()=>{r!==""&&J.getBlocker(r,n)},[J,r,n]),r&&N.blockers.has(r)?N.blockers.get(r):IDLE_BLOCKER}function ue(){let{router:Y}=je(ct.UseNavigateStable),J=te(He.UseNavigateStable),le=o.useRef(!1);return P(()=>{le.current=!0}),o.useCallback(function(r,i){i===void 0&&(i={}),le.current&&(typeof r=="number"?Y.navigate(r):Y.navigate(r,c({fromRouteId:J},i)))},[Y,J])}const mt={};function it(Y,J,le){!J&&!mt[Y]&&(mt[Y]=!0)}const $e={};function Le(Y,J){$e[J]||($e[J]=!0,console.warn(J))}const Oe=(Y,J,le)=>Le(Y,"\u26A0\uFE0F React Router Future Flag Warning: "+J+". "+("You can use the `"+Y+"` future flag to opt-in early. ")+("For more information, see "+le+"."));function Ge(Y,J){Y!=null&&Y.v7_startTransition||Oe("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(Y!=null&&Y.v7_relativeSplatPath)&&(!J||!J.v7_relativeSplatPath)&&Oe("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),J&&(J.v7_fetcherPersist||Oe("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),J.v7_normalizeFormMethod||Oe("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),J.v7_partialHydration||Oe("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),J.v7_skipActionErrorRevalidation||Oe("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}const Ve=(p||(p=e.t(o,2)))["startTransition"];function ye(Y){let{fallbackElement:J,router:le,future:N}=Y,[r,i]=React.useState(le.state),{v7_startTransition:n}=N||{},s=React.useCallback(se=>{n&&Ve?Ve(()=>i(se)):i(se)},[i,n]);React.useLayoutEffect(()=>le.subscribe(s),[le,s]),React.useEffect(()=>{},[]);let T=React.useMemo(()=>({createHref:le.createHref,encodeLocation:le.encodeLocation,go:se=>le.navigate(se),push:(se,Ee,Te)=>le.navigate(se,{state:Ee,preventScrollReset:Te?.preventScrollReset}),replace:(se,Ee,Te)=>le.navigate(se,{replace:!0,state:Ee,preventScrollReset:Te?.preventScrollReset})}),[le]),I=le.basename||"/",G=React.useMemo(()=>({router:le,navigator:T,static:!1,basename:I}),[le,T,I]);return React.useEffect(()=>Ge(N,le.future),[le,N]),React.createElement(React.Fragment,null,React.createElement(u.Provider,{value:G},React.createElement(v.Provider,{value:r},React.createElement(R,{basename:I,location:r.location,navigationType:r.historyAction,navigator:T,future:{v7_relativeSplatPath:le.future.v7_relativeSplatPath}},r.initialized||le.future.v7_partialHydration?React.createElement(ze,{routes:le.routes,future:le.future,state:r}):J))),null)}function ze(Y){let{routes:J,future:le,state:N}=Y;return nt(J,void 0,N,le)}function Ye(Y){let{basename:J,children:le,initialEntries:N,initialIndex:r,future:i}=Y,n=o.useRef();n.current==null&&(n.current=(0,f.sC)({initialEntries:N,initialIndex:r,v5Compat:!0}));let s=n.current,[T,I]=o.useState({action:s.action,location:s.location}),{v7_startTransition:G}=i||{},se=o.useCallback(Ee=>{G&&Ve?Ve(()=>I(Ee)):I(Ee)},[I,G]);return o.useLayoutEffect(()=>s.listen(se),[s,se]),o.useEffect(()=>Ge(i),[i]),o.createElement(R,{basename:J,children:le,location:T.location,navigationType:T.action,navigator:s,future:i})}function F(Y){let{to:J,replace:le,state:N,relative:r}=Y;g()||(0,f.Oi)(!1);let{future:i,static:n}=o.useContext(h),{matches:s}=o.useContext(C),{pathname:T}=E(),I=L(),G=(0,f.Gh)(J,(0,f.yD)(s,i.v7_relativeSplatPath),T,r==="path"),se=JSON.stringify(G);return o.useEffect(()=>I(JSON.parse(se),{replace:le,state:N,relative:r}),[I,se,r,le,N]),null}function a(Y){return Q(Y.context)}function m(Y){(0,f.Oi)(!1)}function R(Y){let{basename:J="/",children:le=null,location:N,navigationType:r=f.rc.Pop,navigator:i,static:n=!1,future:s}=Y;g()&&(0,f.Oi)(!1);let T=J.replace(/^\/*/,"/"),I=o.useMemo(()=>({basename:T,navigator:i,static:n,future:c({v7_relativeSplatPath:!1},s)}),[T,s,i,n]);typeof N=="string"&&(N=(0,f.Rr)(N));let{pathname:G="/",search:se="",hash:Ee="",state:Te=null,key:Xe="default"}=N,rt=o.useMemo(()=>{let yt=(0,f.pb)(G,T);return yt==null?null:{location:{pathname:yt,search:se,hash:Ee,state:Te,key:Xe},navigationType:r}},[T,G,se,Ee,Te,Xe,r]);return rt==null?null:o.createElement(h.Provider,{value:I},o.createElement(b.Provider,{children:le,value:rt}))}function $(Y){let{children:J,location:le}=Y;return Qe(he(J),le)}function q(Y){let{children:J,errorElement:le,resolve:N}=Y;return React.createElement(Me,{resolve:N,errorElement:le},React.createElement(Fe,null,J))}var j=function(Y){return Y[Y.pending=0]="pending",Y[Y.success=1]="success",Y[Y.error=2]="error",Y}(j||{});const _=new Promise(()=>{});class Me extends o.Component{constructor(J){super(J),this.state={error:null}}static getDerivedStateFromError(J){return{error:J}}componentDidCatch(J,le){console.error("<Await> caught the following error during render",J,le)}render(){let{children:J,errorElement:le,resolve:N}=this.props,r=null,i=j.pending;if(!(N instanceof Promise))i=j.success,r=Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>N});else if(this.state.error){i=j.error;let n=this.state.error;r=Promise.reject().catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>n})}else N._tracked?(r=N,i="_error"in r?j.error:"_data"in r?j.success:j.pending):(i=j.pending,Object.defineProperty(N,"_tracked",{get:()=>!0}),r=N.then(n=>Object.defineProperty(N,"_data",{get:()=>n}),n=>Object.defineProperty(N,"_error",{get:()=>n})));if(i===j.error&&r._error instanceof f.tH)throw _;if(i===j.error&&!le)throw r._error;if(i===j.error)return o.createElement(A.Provider,{value:r,children:le});if(i===j.success)return o.createElement(A.Provider,{value:r,children:J});throw r}}function Fe(Y){let{children:J}=Y,le=It(),N=typeof J=="function"?J(le):J;return React.createElement(React.Fragment,null,N)}function he(Y,J){J===void 0&&(J=[]);let le=[];return o.Children.forEach(Y,(N,r)=>{if(!o.isValidElement(N))return;let i=[...J,r];if(N.type===o.Fragment){le.push.apply(le,he(N.props.children,i));return}N.type!==m&&(0,f.Oi)(!1),!N.props.index||!N.props.children||(0,f.Oi)(!1);let n={id:N.props.id||i.join("-"),caseSensitive:N.props.caseSensitive,element:N.props.element,Component:N.props.Component,index:N.props.index,path:N.props.path,loader:N.props.loader,action:N.props.action,errorElement:N.props.errorElement,ErrorBoundary:N.props.ErrorBoundary,hasErrorBoundary:N.props.ErrorBoundary!=null||N.props.errorElement!=null,shouldRevalidate:N.props.shouldRevalidate,handle:N.props.handle,lazy:N.props.lazy};N.props.children&&(n.children=he(N.props.children,i)),le.push(n)}),le}function ge(Y){return Ue(Y)}function ne(Y){let J={hasErrorBoundary:Y.ErrorBoundary!=null||Y.errorElement!=null};return Y.Component&&Object.assign(J,{element:React.createElement(Y.Component),Component:void 0}),Y.HydrateFallback&&Object.assign(J,{hydrateFallbackElement:React.createElement(Y.HydrateFallback),HydrateFallback:void 0}),Y.ErrorBoundary&&Object.assign(J,{errorElement:React.createElement(Y.ErrorBoundary),ErrorBoundary:void 0}),J}function ae(Y,J){return createRouter({basename:J?.basename,future:c({},J?.future,{v7_prependBasename:!0}),history:createMemoryHistory({initialEntries:J?.initialEntries,initialIndex:J?.initialIndex}),hydrationData:J?.hydrationData,routes:Y,mapRouteProperties:ne,dataStrategy:J?.dataStrategy,patchRoutesOnNavigation:J?.patchRoutesOnNavigation}).initialize()}},86399:(V,D,e)=>{"use strict";function p(h){return h&&typeof h=="object"&&"default"in h?h.default:h}var o=e(14041),f=p(o);function c(h,b,C){return b in h?Object.defineProperty(h,b,{value:C,enumerable:!0,configurable:!0,writable:!0}):h[b]=C,h}function u(h,b){h.prototype=Object.create(b.prototype),h.prototype.constructor=h,h.__proto__=b}var v=!!(typeof window<"u"&&window.document&&window.document.createElement);function A(h,b,C){if(typeof h!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof b!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof C<"u"&&typeof C!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function d(W){return W.displayName||W.name||"Component"}return function(g){if(typeof g!="function")throw new Error("Expected WrappedComponent to be a React component.");var E=[],x;function S(){x=h(E.map(function(P){return P.props})),O.canUseDOM?b(x):C&&(x=C(x))}var O=function(P){u(L,P);function L(){return P.apply(this,arguments)||this}L.peek=function(){return x},L.rewind=function(){if(L.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var H=x;return x=void 0,E=[],H};var K=L.prototype;return K.UNSAFE_componentWillMount=function(){E.push(this),S()},K.componentDidUpdate=function(){S()},K.componentWillUnmount=function(){var H=E.indexOf(this);E.splice(H,1),S()},K.render=function(){return f.createElement(g,this.props)},L}(o.PureComponent);return c(O,"displayName","SideEffect("+d(g)+")"),c(O,"canUseDOM",v),O}}V.exports=A},69578:(V,D,e)=>{"use strict";e.d(D,{A:()=>It});var p=e(17545);function o(U,ke,Ne,ue,mt,it,$e){try{var Le=U[it]($e),Oe=Le.value}catch(Ge){return void Ne(Ge)}Le.done?ke(Oe):Promise.resolve(Oe).then(ue,mt)}function f(U){return function(){var ke=this,Ne=arguments;return new Promise(function(ue,mt){var it=U.apply(ke,Ne);function $e(Oe){o(it,ue,mt,$e,Le,"next",Oe)}function Le(Oe){o(it,ue,mt,$e,Le,"throw",Oe)}$e(void 0)})}}var c=e(89575),u=e(55152),v=e(30414),A=e(95309),h=e(72715),b=e(29296),C=e(24586),d=e(14041),W=e(39850),g=e(83705);function E(U,ke){var Ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(U);ke&&(ue=ue.filter(function(mt){return Object.getOwnPropertyDescriptor(U,mt).enumerable})),Ne.push.apply(Ne,ue)}return Ne}function x(U){for(var ke=1;ke<arguments.length;ke++){var Ne=arguments[ke]!=null?arguments[ke]:{};ke%2?E(Object(Ne),!0).forEach(function(ue){(0,C.A)(U,ue,Ne[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(Ne)):E(Object(Ne)).forEach(function(ue){Object.defineProperty(U,ue,Object.getOwnPropertyDescriptor(Ne,ue))})}return U}function S(U){var ke=U.length;if(ke===0||ke===1)return U;if(ke===2)return[U[0],U[1],"".concat(U[0],".").concat(U[1]),"".concat(U[1],".").concat(U[0])];if(ke===3)return[U[0],U[1],U[2],"".concat(U[0],".").concat(U[1]),"".concat(U[0],".").concat(U[2]),"".concat(U[1],".").concat(U[0]),"".concat(U[1],".").concat(U[2]),"".concat(U[2],".").concat(U[0]),"".concat(U[2],".").concat(U[1]),"".concat(U[0],".").concat(U[1],".").concat(U[2]),"".concat(U[0],".").concat(U[2],".").concat(U[1]),"".concat(U[1],".").concat(U[0],".").concat(U[2]),"".concat(U[1],".").concat(U[2],".").concat(U[0]),"".concat(U[2],".").concat(U[0],".").concat(U[1]),"".concat(U[2],".").concat(U[1],".").concat(U[0])];if(ke>=4)return[U[0],U[1],U[2],U[3],"".concat(U[0],".").concat(U[1]),"".concat(U[0],".").concat(U[2]),"".concat(U[0],".").concat(U[3]),"".concat(U[1],".").concat(U[0]),"".concat(U[1],".").concat(U[2]),"".concat(U[1],".").concat(U[3]),"".concat(U[2],".").concat(U[0]),"".concat(U[2],".").concat(U[1]),"".concat(U[2],".").concat(U[3]),"".concat(U[3],".").concat(U[0]),"".concat(U[3],".").concat(U[1]),"".concat(U[3],".").concat(U[2]),"".concat(U[0],".").concat(U[1],".").concat(U[2]),"".concat(U[0],".").concat(U[1],".").concat(U[3]),"".concat(U[0],".").concat(U[2],".").concat(U[1]),"".concat(U[0],".").concat(U[2],".").concat(U[3]),"".concat(U[0],".").concat(U[3],".").concat(U[1]),"".concat(U[0],".").concat(U[3],".").concat(U[2]),"".concat(U[1],".").concat(U[0],".").concat(U[2]),"".concat(U[1],".").concat(U[0],".").concat(U[3]),"".concat(U[1],".").concat(U[2],".").concat(U[0]),"".concat(U[1],".").concat(U[2],".").concat(U[3]),"".concat(U[1],".").concat(U[3],".").concat(U[0]),"".concat(U[1],".").concat(U[3],".").concat(U[2]),"".concat(U[2],".").concat(U[0],".").concat(U[1]),"".concat(U[2],".").concat(U[0],".").concat(U[3]),"".concat(U[2],".").concat(U[1],".").concat(U[0]),"".concat(U[2],".").concat(U[1],".").concat(U[3]),"".concat(U[2],".").concat(U[3],".").concat(U[0]),"".concat(U[2],".").concat(U[3],".").concat(U[1]),"".concat(U[3],".").concat(U[0],".").concat(U[1]),"".concat(U[3],".").concat(U[0],".").concat(U[2]),"".concat(U[3],".").concat(U[1],".").concat(U[0]),"".concat(U[3],".").concat(U[1],".").concat(U[2]),"".concat(U[3],".").concat(U[2],".").concat(U[0]),"".concat(U[3],".").concat(U[2],".").concat(U[1]),"".concat(U[0],".").concat(U[1],".").concat(U[2],".").concat(U[3]),"".concat(U[0],".").concat(U[1],".").concat(U[3],".").concat(U[2]),"".concat(U[0],".").concat(U[2],".").concat(U[1],".").concat(U[3]),"".concat(U[0],".").concat(U[2],".").concat(U[3],".").concat(U[1]),"".concat(U[0],".").concat(U[3],".").concat(U[1],".").concat(U[2]),"".concat(U[0],".").concat(U[3],".").concat(U[2],".").concat(U[1]),"".concat(U[1],".").concat(U[0],".").concat(U[2],".").concat(U[3]),"".concat(U[1],".").concat(U[0],".").concat(U[3],".").concat(U[2]),"".concat(U[1],".").concat(U[2],".").concat(U[0],".").concat(U[3]),"".concat(U[1],".").concat(U[2],".").concat(U[3],".").concat(U[0]),"".concat(U[1],".").concat(U[3],".").concat(U[0],".").concat(U[2]),"".concat(U[1],".").concat(U[3],".").concat(U[2],".").concat(U[0]),"".concat(U[2],".").concat(U[0],".").concat(U[1],".").concat(U[3]),"".concat(U[2],".").concat(U[0],".").concat(U[3],".").concat(U[1]),"".concat(U[2],".").concat(U[1],".").concat(U[0],".").concat(U[3]),"".concat(U[2],".").concat(U[1],".").concat(U[3],".").concat(U[0]),"".concat(U[2],".").concat(U[3],".").concat(U[0],".").concat(U[1]),"".concat(U[2],".").concat(U[3],".").concat(U[1],".").concat(U[0]),"".concat(U[3],".").concat(U[0],".").concat(U[1],".").concat(U[2]),"".concat(U[3],".").concat(U[0],".").concat(U[2],".").concat(U[1]),"".concat(U[3],".").concat(U[1],".").concat(U[0],".").concat(U[2]),"".concat(U[3],".").concat(U[1],".").concat(U[2],".").concat(U[0]),"".concat(U[3],".").concat(U[2],".").concat(U[0],".").concat(U[1]),"".concat(U[3],".").concat(U[2],".").concat(U[1],".").concat(U[0])]}var O={};function P(U){if(U.length===0||U.length===1)return U;var ke=U.join(".");return O[ke]||(O[ke]=S(U)),O[ke]}function L(U){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ne=arguments.length>2?arguments[2]:void 0,ue=U.filter(function(it){return it!=="token"}),mt=P(ue);return mt.reduce(function(it,$e){return x(x({},it),Ne[$e])},ke)}function K(U){return U.join(" ")}function k(U,ke){var Ne=0;return function(ue){return Ne+=1,ue.map(function(mt,it){return H({node:mt,stylesheet:U,useInlineStyles:ke,key:"code-segment-".concat(Ne,"-").concat(it)})})}}function H(U){var ke=U.node,Ne=U.stylesheet,ue=U.style,mt=ue===void 0?{}:ue,it=U.useInlineStyles,$e=U.key,Le=ke.properties,Oe=ke.type,Ge=ke.tagName,gt=ke.value;if(Oe==="text")return gt;if(Ge){var Ve=k(Ne,it),ye;if(!it)ye=x(x({},Le),{},{className:K(Le.className)});else{var ze=Object.keys(Ne).reduce(function(m,R){return R.split(".").forEach(function($){m.includes($)||m.push($)}),m},[]),Ye=Le.className&&Le.className.includes("token")?["token"]:[],F=Le.className&&Ye.concat(Le.className.filter(function(m){return!ze.includes(m)}));ye=x(x({},Le),{},{className:K(F)||void 0,style:L(Le.className,Object.assign({},Le.style,mt),Ne)})}var a=Ve(ke.children);return d.createElement(Ge,(0,c.A)({key:$e},ye),a)}}const Q=function(U,ke){var Ne=U.listLanguages();return Ne.indexOf(ke)!==-1};var Ce=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Ke(U,ke){var Ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(U);ke&&(ue=ue.filter(function(mt){return Object.getOwnPropertyDescriptor(U,mt).enumerable})),Ne.push.apply(Ne,ue)}return Ne}function Qe(U){for(var ke=1;ke<arguments.length;ke++){var Ne=arguments[ke]!=null?arguments[ke]:{};ke%2?Ke(Object(Ne),!0).forEach(function(ue){(0,C.A)(U,ue,Ne[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(Ne)):Ke(Object(Ne)).forEach(function(ue){Object.defineProperty(U,ue,Object.getOwnPropertyDescriptor(Ne,ue))})}return U}var nt=/\n/g;function xt(U){return U.match(nt)}function Ze(U){var ke=U.lines,Ne=U.startingLineNumber,ue=U.style;return ke.map(function(mt,it){var $e=it+Ne;return d.createElement("span",{key:"line-".concat(it),className:"react-syntax-highlighter-line-number",style:typeof ue=="function"?ue($e):ue},"".concat($e,`
|
|
108
|
+
*/function c(){return c=Object.assign?Object.assign.bind():function(Y){for(var J=1;J<arguments.length;J++){var le=arguments[J];for(var N in le)Object.prototype.hasOwnProperty.call(le,N)&&(Y[N]=le[N])}return Y},c.apply(this,arguments)}const u=o.createContext(null),v=o.createContext(null),A=o.createContext(null),h=o.createContext(null),b=o.createContext(null),C=o.createContext({outlet:null,matches:[],isDataRoute:!1}),d=o.createContext(null);function W(Y,J){let{relative:le}=J===void 0?{}:J;g()||(0,f.Oi)(!1);let{basename:N,navigator:r}=o.useContext(h),{hash:i,pathname:n,search:s}=Ke(Y,{relative:le}),T=n;return N!=="/"&&(T=n==="/"?N:(0,f.HS)([N,n])),r.createHref({pathname:T,search:s,hash:i})}function g(){return o.useContext(b)!=null}function E(){return g()||(0,f.Oi)(!1),o.useContext(b).location}function x(){return React.useContext(b).navigationType}function S(Y){g()||UNSAFE_invariant(!1);let{pathname:J}=E();return React.useMemo(()=>matchPath(Y,UNSAFE_decodePath(J)),[J,Y])}const O=null;function P(Y){o.useContext(h).static||o.useLayoutEffect(Y)}function L(){let{isDataRoute:Y}=o.useContext(C);return Y?ue():K()}function K(){g()||(0,f.Oi)(!1);let Y=o.useContext(u),{basename:J,future:le,navigator:N}=o.useContext(h),{matches:r}=o.useContext(C),{pathname:i}=E(),n=JSON.stringify((0,f.yD)(r,le.v7_relativeSplatPath)),s=o.useRef(!1);return P(()=>{s.current=!0}),o.useCallback(function(I,G){if(G===void 0&&(G={}),!s.current)return;if(typeof I=="number"){N.go(I);return}let se=(0,f.Gh)(I,JSON.parse(n),i,G.relative==="path");Y==null&&J!=="/"&&(se.pathname=se.pathname==="/"?J:(0,f.HS)([J,se.pathname])),(G.replace?N.replace:N.push)(se,G.state,G)},[J,N,n,i,Y])}const k=o.createContext(null);function H(){return React.useContext(k)}function Q(Y){let J=o.useContext(C).outlet;return J&&o.createElement(k.Provider,{value:Y},J)}function Ce(){let{matches:Y}=o.useContext(C),J=Y[Y.length-1];return J?J.params:{}}function Ke(Y,J){let{relative:le}=J===void 0?{}:J,{future:N}=o.useContext(h),{matches:r}=o.useContext(C),{pathname:i}=E(),n=JSON.stringify((0,f.yD)(r,N.v7_relativeSplatPath));return o.useMemo(()=>(0,f.Gh)(Y,JSON.parse(n),i,le==="path"),[Y,n,i,le])}function Qe(Y,J){return nt(Y,J)}function nt(Y,J,le,N){g()||(0,f.Oi)(!1);let{navigator:r}=o.useContext(h),{matches:i}=o.useContext(C),n=i[i.length-1],s=n?n.params:{},T=n?n.pathname:"/",I=n?n.pathnameBase:"/",G=n&&n.route,se=E(),Ee;if(J){var Te;let vt=typeof J=="string"?(0,f.Rr)(J):J;I==="/"||(Te=vt.pathname)!=null&&Te.startsWith(I)||(0,f.Oi)(!1),Ee=vt}else Ee=se;let Xe=Ee.pathname||"/",rt=Xe;if(I!=="/"){let vt=I.replace(/^\//,"").split("/");rt="/"+Xe.replace(/^\//,"").split("/").slice(vt.length).join("/")}let yt=(0,f.ue)(Y,{pathname:rt}),et=Ue(yt&&yt.map(vt=>Object.assign({},vt,{params:Object.assign({},s,vt.params),pathname:(0,f.HS)([I,r.encodeLocation?r.encodeLocation(vt.pathname).pathname:vt.pathname]),pathnameBase:vt.pathnameBase==="/"?I:(0,f.HS)([I,r.encodeLocation?r.encodeLocation(vt.pathnameBase).pathname:vt.pathnameBase])})),i,le,N);return J&&et?o.createElement(b.Provider,{value:{location:c({pathname:"/",search:"",hash:"",state:null,key:"default"},Ee),navigationType:f.rc.Pop}},et):et}function xt(){let Y=ut(),J=(0,f.pX)(Y)?Y.status+" "+Y.statusText:Y instanceof Error?Y.message:JSON.stringify(Y),le=Y instanceof Error?Y.stack:null,N="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:N},i={padding:"2px 4px",backgroundColor:N};return o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},J),le?o.createElement("pre",{style:r},le):null,null)}const Ze=o.createElement(xt,null);class lt extends o.Component{constructor(J){super(J),this.state={location:J.location,revalidation:J.revalidation,error:J.error}}static getDerivedStateFromError(J){return{error:J}}static getDerivedStateFromProps(J,le){return le.location!==J.location||le.revalidation!=="idle"&&J.revalidation==="idle"?{error:J.error,location:J.location,revalidation:J.revalidation}:{error:J.error!==void 0?J.error:le.error,location:le.location,revalidation:J.revalidation||le.revalidation}}componentDidCatch(J,le){console.error("React Router caught the following error during render",J,le)}render(){return this.state.error!==void 0?o.createElement(C.Provider,{value:this.props.routeContext},o.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ve(Y){let{routeContext:J,match:le,children:N}=Y,r=o.useContext(u);return r&&r.static&&r.staticContext&&(le.route.errorElement||le.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=le.route.id),o.createElement(C.Provider,{value:J},N)}function Ue(Y,J,le,N){var r;if(J===void 0&&(J=[]),le===void 0&&(le=null),N===void 0&&(N=null),Y==null){var i;if(!le)return null;if(le.errors)Y=le.matches;else if((i=N)!=null&&i.v7_partialHydration&&J.length===0&&!le.initialized&&le.matches.length>0)Y=le.matches;else return null}let n=Y,s=(r=le)==null?void 0:r.errors;if(s!=null){let G=n.findIndex(se=>se.route.id&&s?.[se.route.id]!==void 0);G>=0||(0,f.Oi)(!1),n=n.slice(0,Math.min(n.length,G+1))}let T=!1,I=-1;if(le&&N&&N.v7_partialHydration)for(let G=0;G<n.length;G++){let se=n[G];if((se.route.HydrateFallback||se.route.hydrateFallbackElement)&&(I=G),se.route.id){let{loaderData:Ee,errors:Te}=le,Xe=se.route.loader&&Ee[se.route.id]===void 0&&(!Te||Te[se.route.id]===void 0);if(se.route.lazy||Xe){T=!0,I>=0?n=n.slice(0,I+1):n=[n[0]];break}}}return n.reduceRight((G,se,Ee)=>{let Te,Xe=!1,rt=null,yt=null;le&&(Te=s&&se.route.id?s[se.route.id]:void 0,rt=se.route.errorElement||Ze,T&&(I<0&&Ee===0?(it("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Xe=!0,yt=null):I===Ee&&(Xe=!0,yt=se.route.hydrateFallbackElement||null)));let et=J.concat(n.slice(0,Ee+1)),vt=()=>{let Lt;return Te?Lt=rt:Xe?Lt=yt:se.route.Component?Lt=o.createElement(se.route.Component,null):se.route.element?Lt=se.route.element:Lt=G,o.createElement(ve,{match:se,routeContext:{outlet:G,matches:et,isDataRoute:le!=null},children:Lt})};return le&&(se.route.ErrorBoundary||se.route.errorElement||Ee===0)?o.createElement(lt,{location:le.location,revalidation:le.revalidation,component:rt,error:Te,children:vt(),routeContext:{outlet:null,matches:et,isDataRoute:!0}}):vt()},null)}var ct=function(Y){return Y.UseBlocker="useBlocker",Y.UseRevalidator="useRevalidator",Y.UseNavigateStable="useNavigate",Y}(ct||{}),He=function(Y){return Y.UseBlocker="useBlocker",Y.UseLoaderData="useLoaderData",Y.UseActionData="useActionData",Y.UseRouteError="useRouteError",Y.UseNavigation="useNavigation",Y.UseRouteLoaderData="useRouteLoaderData",Y.UseMatches="useMatches",Y.UseRevalidator="useRevalidator",Y.UseNavigateStable="useNavigate",Y.UseRouteId="useRouteId",Y}(He||{});function pe(Y){return Y+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function je(Y){let J=o.useContext(u);return J||(0,f.Oi)(!1),J}function de(Y){let J=o.useContext(v);return J||(0,f.Oi)(!1),J}function ee(Y){let J=o.useContext(C);return J||(0,f.Oi)(!1),J}function te(Y){let J=ee(Y),le=J.matches[J.matches.length-1];return le.route.id||(0,f.Oi)(!1),le.route.id}function fe(){return te(He.UseRouteId)}function oe(){return de(He.UseNavigation).navigation}function ie(){let Y=je(ct.UseRevalidator),J=de(He.UseRevalidator);return React.useMemo(()=>({revalidate:Y.router.revalidate,state:J.revalidation}),[Y.router.revalidate,J.revalidation])}function xe(){let{matches:Y,loaderData:J}=de(He.UseMatches);return React.useMemo(()=>Y.map(le=>UNSAFE_convertRouteMatchToUiMatch(le,J)),[Y,J])}function We(){let Y=de(He.UseLoaderData),J=te(He.UseLoaderData);if(Y.errors&&Y.errors[J]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+J+")");return}return Y.loaderData[J]}function _e(Y){return de(He.UseRouteLoaderData).loaderData[Y]}function Z(){let Y=de(He.UseActionData),J=te(He.UseLoaderData);return Y.actionData?Y.actionData[J]:void 0}function ut(){var Y;let J=o.useContext(d),le=de(He.UseRouteError),N=te(He.UseRouteError);return J!==void 0?J:(Y=le.errors)==null?void 0:Y[N]}function It(){let Y=React.useContext(A);return Y?._data}function U(){let Y=React.useContext(A);return Y?._error}let ke=0;function Ne(Y){let{router:J,basename:le}=je(ct.UseBlocker),N=de(He.UseBlocker),[r,i]=React.useState(""),n=React.useCallback(s=>{if(typeof Y!="function")return!!Y;if(le==="/")return Y(s);let{currentLocation:T,nextLocation:I,historyAction:G}=s;return Y({currentLocation:c({},T,{pathname:stripBasename(T.pathname,le)||T.pathname}),nextLocation:c({},I,{pathname:stripBasename(I.pathname,le)||I.pathname}),historyAction:G})},[le,Y]);return React.useEffect(()=>{let s=String(++ke);return i(s),()=>J.deleteBlocker(s)},[J]),React.useEffect(()=>{r!==""&&J.getBlocker(r,n)},[J,r,n]),r&&N.blockers.has(r)?N.blockers.get(r):IDLE_BLOCKER}function ue(){let{router:Y}=je(ct.UseNavigateStable),J=te(He.UseNavigateStable),le=o.useRef(!1);return P(()=>{le.current=!0}),o.useCallback(function(r,i){i===void 0&&(i={}),le.current&&(typeof r=="number"?Y.navigate(r):Y.navigate(r,c({fromRouteId:J},i)))},[Y,J])}const mt={};function it(Y,J,le){!J&&!mt[Y]&&(mt[Y]=!0)}const $e={};function Le(Y,J){$e[J]||($e[J]=!0,console.warn(J))}const Oe=(Y,J,le)=>Le(Y,"\u26A0\uFE0F React Router Future Flag Warning: "+J+". "+("You can use the `"+Y+"` future flag to opt-in early. ")+("For more information, see "+le+"."));function Ge(Y,J){Y?.v7_startTransition===void 0&&Oe("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),Y?.v7_relativeSplatPath===void 0&&(!J||!J.v7_relativeSplatPath)&&Oe("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),J&&(J.v7_fetcherPersist===void 0&&Oe("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),J.v7_normalizeFormMethod===void 0&&Oe("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),J.v7_partialHydration===void 0&&Oe("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),J.v7_skipActionErrorRevalidation===void 0&&Oe("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}const Ve=(p||(p=e.t(o,2)))["startTransition"];function ye(Y){let{fallbackElement:J,router:le,future:N}=Y,[r,i]=React.useState(le.state),{v7_startTransition:n}=N||{},s=React.useCallback(se=>{n&&Ve?Ve(()=>i(se)):i(se)},[i,n]);React.useLayoutEffect(()=>le.subscribe(s),[le,s]),React.useEffect(()=>{},[]);let T=React.useMemo(()=>({createHref:le.createHref,encodeLocation:le.encodeLocation,go:se=>le.navigate(se),push:(se,Ee,Te)=>le.navigate(se,{state:Ee,preventScrollReset:Te?.preventScrollReset}),replace:(se,Ee,Te)=>le.navigate(se,{replace:!0,state:Ee,preventScrollReset:Te?.preventScrollReset})}),[le]),I=le.basename||"/",G=React.useMemo(()=>({router:le,navigator:T,static:!1,basename:I}),[le,T,I]);return React.useEffect(()=>Ge(N,le.future),[le,N]),React.createElement(React.Fragment,null,React.createElement(u.Provider,{value:G},React.createElement(v.Provider,{value:r},React.createElement(R,{basename:I,location:r.location,navigationType:r.historyAction,navigator:T,future:{v7_relativeSplatPath:le.future.v7_relativeSplatPath}},r.initialized||le.future.v7_partialHydration?React.createElement(ze,{routes:le.routes,future:le.future,state:r}):J))),null)}function ze(Y){let{routes:J,future:le,state:N}=Y;return nt(J,void 0,N,le)}function Ye(Y){let{basename:J,children:le,initialEntries:N,initialIndex:r,future:i}=Y,n=o.useRef();n.current==null&&(n.current=(0,f.sC)({initialEntries:N,initialIndex:r,v5Compat:!0}));let s=n.current,[T,I]=o.useState({action:s.action,location:s.location}),{v7_startTransition:G}=i||{},se=o.useCallback(Ee=>{G&&Ve?Ve(()=>I(Ee)):I(Ee)},[I,G]);return o.useLayoutEffect(()=>s.listen(se),[s,se]),o.useEffect(()=>Ge(i),[i]),o.createElement(R,{basename:J,children:le,location:T.location,navigationType:T.action,navigator:s,future:i})}function F(Y){let{to:J,replace:le,state:N,relative:r}=Y;g()||(0,f.Oi)(!1);let{future:i,static:n}=o.useContext(h),{matches:s}=o.useContext(C),{pathname:T}=E(),I=L(),G=(0,f.Gh)(J,(0,f.yD)(s,i.v7_relativeSplatPath),T,r==="path"),se=JSON.stringify(G);return o.useEffect(()=>I(JSON.parse(se),{replace:le,state:N,relative:r}),[I,se,r,le,N]),null}function a(Y){return Q(Y.context)}function m(Y){(0,f.Oi)(!1)}function R(Y){let{basename:J="/",children:le=null,location:N,navigationType:r=f.rc.Pop,navigator:i,static:n=!1,future:s}=Y;g()&&(0,f.Oi)(!1);let T=J.replace(/^\/*/,"/"),I=o.useMemo(()=>({basename:T,navigator:i,static:n,future:c({v7_relativeSplatPath:!1},s)}),[T,s,i,n]);typeof N=="string"&&(N=(0,f.Rr)(N));let{pathname:G="/",search:se="",hash:Ee="",state:Te=null,key:Xe="default"}=N,rt=o.useMemo(()=>{let yt=(0,f.pb)(G,T);return yt==null?null:{location:{pathname:yt,search:se,hash:Ee,state:Te,key:Xe},navigationType:r}},[T,G,se,Ee,Te,Xe,r]);return rt==null?null:o.createElement(h.Provider,{value:I},o.createElement(b.Provider,{children:le,value:rt}))}function $(Y){let{children:J,location:le}=Y;return Qe(he(J),le)}function q(Y){let{children:J,errorElement:le,resolve:N}=Y;return React.createElement(Me,{resolve:N,errorElement:le},React.createElement(Fe,null,J))}var j=function(Y){return Y[Y.pending=0]="pending",Y[Y.success=1]="success",Y[Y.error=2]="error",Y}(j||{});const _=new Promise(()=>{});class Me extends o.Component{constructor(J){super(J),this.state={error:null}}static getDerivedStateFromError(J){return{error:J}}componentDidCatch(J,le){console.error("<Await> caught the following error during render",J,le)}render(){let{children:J,errorElement:le,resolve:N}=this.props,r=null,i=j.pending;if(!(N instanceof Promise))i=j.success,r=Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>N});else if(this.state.error){i=j.error;let n=this.state.error;r=Promise.reject().catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>n})}else N._tracked?(r=N,i="_error"in r?j.error:"_data"in r?j.success:j.pending):(i=j.pending,Object.defineProperty(N,"_tracked",{get:()=>!0}),r=N.then(n=>Object.defineProperty(N,"_data",{get:()=>n}),n=>Object.defineProperty(N,"_error",{get:()=>n})));if(i===j.error&&r._error instanceof f.tH)throw _;if(i===j.error&&!le)throw r._error;if(i===j.error)return o.createElement(A.Provider,{value:r,children:le});if(i===j.success)return o.createElement(A.Provider,{value:r,children:J});throw r}}function Fe(Y){let{children:J}=Y,le=It(),N=typeof J=="function"?J(le):J;return React.createElement(React.Fragment,null,N)}function he(Y,J){J===void 0&&(J=[]);let le=[];return o.Children.forEach(Y,(N,r)=>{if(!o.isValidElement(N))return;let i=[...J,r];if(N.type===o.Fragment){le.push.apply(le,he(N.props.children,i));return}N.type!==m&&(0,f.Oi)(!1),!N.props.index||!N.props.children||(0,f.Oi)(!1);let n={id:N.props.id||i.join("-"),caseSensitive:N.props.caseSensitive,element:N.props.element,Component:N.props.Component,index:N.props.index,path:N.props.path,loader:N.props.loader,action:N.props.action,errorElement:N.props.errorElement,ErrorBoundary:N.props.ErrorBoundary,hasErrorBoundary:N.props.ErrorBoundary!=null||N.props.errorElement!=null,shouldRevalidate:N.props.shouldRevalidate,handle:N.props.handle,lazy:N.props.lazy};N.props.children&&(n.children=he(N.props.children,i)),le.push(n)}),le}function ge(Y){return Ue(Y)}function ne(Y){let J={hasErrorBoundary:Y.ErrorBoundary!=null||Y.errorElement!=null};return Y.Component&&Object.assign(J,{element:React.createElement(Y.Component),Component:void 0}),Y.HydrateFallback&&Object.assign(J,{hydrateFallbackElement:React.createElement(Y.HydrateFallback),HydrateFallback:void 0}),Y.ErrorBoundary&&Object.assign(J,{errorElement:React.createElement(Y.ErrorBoundary),ErrorBoundary:void 0}),J}function ae(Y,J){return createRouter({basename:J?.basename,future:c({},J?.future,{v7_prependBasename:!0}),history:createMemoryHistory({initialEntries:J?.initialEntries,initialIndex:J?.initialIndex}),hydrationData:J?.hydrationData,routes:Y,mapRouteProperties:ne,dataStrategy:J?.dataStrategy,patchRoutesOnNavigation:J?.patchRoutesOnNavigation}).initialize()}},86399:(V,D,e)=>{"use strict";function p(h){return h&&typeof h=="object"&&"default"in h?h.default:h}var o=e(14041),f=p(o);function c(h,b,C){return b in h?Object.defineProperty(h,b,{value:C,enumerable:!0,configurable:!0,writable:!0}):h[b]=C,h}function u(h,b){h.prototype=Object.create(b.prototype),h.prototype.constructor=h,h.__proto__=b}var v=!!(typeof window<"u"&&window.document&&window.document.createElement);function A(h,b,C){if(typeof h!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof b!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof C<"u"&&typeof C!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function d(W){return W.displayName||W.name||"Component"}return function(g){if(typeof g!="function")throw new Error("Expected WrappedComponent to be a React component.");var E=[],x;function S(){x=h(E.map(function(P){return P.props})),O.canUseDOM?b(x):C&&(x=C(x))}var O=function(P){u(L,P);function L(){return P.apply(this,arguments)||this}L.peek=function(){return x},L.rewind=function(){if(L.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var H=x;return x=void 0,E=[],H};var K=L.prototype;return K.UNSAFE_componentWillMount=function(){E.push(this),S()},K.componentDidUpdate=function(){S()},K.componentWillUnmount=function(){var H=E.indexOf(this);E.splice(H,1),S()},K.render=function(){return f.createElement(g,this.props)},L}(o.PureComponent);return c(O,"displayName","SideEffect("+d(g)+")"),c(O,"canUseDOM",v),O}}V.exports=A},69578:(V,D,e)=>{"use strict";e.d(D,{A:()=>It});var p=e(17545);function o(U,ke,Ne,ue,mt,it,$e){try{var Le=U[it]($e),Oe=Le.value}catch(Ge){return void Ne(Ge)}Le.done?ke(Oe):Promise.resolve(Oe).then(ue,mt)}function f(U){return function(){var ke=this,Ne=arguments;return new Promise(function(ue,mt){var it=U.apply(ke,Ne);function $e(Oe){o(it,ue,mt,$e,Le,"next",Oe)}function Le(Oe){o(it,ue,mt,$e,Le,"throw",Oe)}$e(void 0)})}}var c=e(89575),u=e(55152),v=e(30414),A=e(95309),h=e(72715),b=e(29296),C=e(24586),d=e(14041),W=e(39850),g=e(83705);function E(U,ke){var Ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(U);ke&&(ue=ue.filter(function(mt){return Object.getOwnPropertyDescriptor(U,mt).enumerable})),Ne.push.apply(Ne,ue)}return Ne}function x(U){for(var ke=1;ke<arguments.length;ke++){var Ne=arguments[ke]!=null?arguments[ke]:{};ke%2?E(Object(Ne),!0).forEach(function(ue){(0,C.A)(U,ue,Ne[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(Ne)):E(Object(Ne)).forEach(function(ue){Object.defineProperty(U,ue,Object.getOwnPropertyDescriptor(Ne,ue))})}return U}function S(U){var ke=U.length;if(ke===0||ke===1)return U;if(ke===2)return[U[0],U[1],"".concat(U[0],".").concat(U[1]),"".concat(U[1],".").concat(U[0])];if(ke===3)return[U[0],U[1],U[2],"".concat(U[0],".").concat(U[1]),"".concat(U[0],".").concat(U[2]),"".concat(U[1],".").concat(U[0]),"".concat(U[1],".").concat(U[2]),"".concat(U[2],".").concat(U[0]),"".concat(U[2],".").concat(U[1]),"".concat(U[0],".").concat(U[1],".").concat(U[2]),"".concat(U[0],".").concat(U[2],".").concat(U[1]),"".concat(U[1],".").concat(U[0],".").concat(U[2]),"".concat(U[1],".").concat(U[2],".").concat(U[0]),"".concat(U[2],".").concat(U[0],".").concat(U[1]),"".concat(U[2],".").concat(U[1],".").concat(U[0])];if(ke>=4)return[U[0],U[1],U[2],U[3],"".concat(U[0],".").concat(U[1]),"".concat(U[0],".").concat(U[2]),"".concat(U[0],".").concat(U[3]),"".concat(U[1],".").concat(U[0]),"".concat(U[1],".").concat(U[2]),"".concat(U[1],".").concat(U[3]),"".concat(U[2],".").concat(U[0]),"".concat(U[2],".").concat(U[1]),"".concat(U[2],".").concat(U[3]),"".concat(U[3],".").concat(U[0]),"".concat(U[3],".").concat(U[1]),"".concat(U[3],".").concat(U[2]),"".concat(U[0],".").concat(U[1],".").concat(U[2]),"".concat(U[0],".").concat(U[1],".").concat(U[3]),"".concat(U[0],".").concat(U[2],".").concat(U[1]),"".concat(U[0],".").concat(U[2],".").concat(U[3]),"".concat(U[0],".").concat(U[3],".").concat(U[1]),"".concat(U[0],".").concat(U[3],".").concat(U[2]),"".concat(U[1],".").concat(U[0],".").concat(U[2]),"".concat(U[1],".").concat(U[0],".").concat(U[3]),"".concat(U[1],".").concat(U[2],".").concat(U[0]),"".concat(U[1],".").concat(U[2],".").concat(U[3]),"".concat(U[1],".").concat(U[3],".").concat(U[0]),"".concat(U[1],".").concat(U[3],".").concat(U[2]),"".concat(U[2],".").concat(U[0],".").concat(U[1]),"".concat(U[2],".").concat(U[0],".").concat(U[3]),"".concat(U[2],".").concat(U[1],".").concat(U[0]),"".concat(U[2],".").concat(U[1],".").concat(U[3]),"".concat(U[2],".").concat(U[3],".").concat(U[0]),"".concat(U[2],".").concat(U[3],".").concat(U[1]),"".concat(U[3],".").concat(U[0],".").concat(U[1]),"".concat(U[3],".").concat(U[0],".").concat(U[2]),"".concat(U[3],".").concat(U[1],".").concat(U[0]),"".concat(U[3],".").concat(U[1],".").concat(U[2]),"".concat(U[3],".").concat(U[2],".").concat(U[0]),"".concat(U[3],".").concat(U[2],".").concat(U[1]),"".concat(U[0],".").concat(U[1],".").concat(U[2],".").concat(U[3]),"".concat(U[0],".").concat(U[1],".").concat(U[3],".").concat(U[2]),"".concat(U[0],".").concat(U[2],".").concat(U[1],".").concat(U[3]),"".concat(U[0],".").concat(U[2],".").concat(U[3],".").concat(U[1]),"".concat(U[0],".").concat(U[3],".").concat(U[1],".").concat(U[2]),"".concat(U[0],".").concat(U[3],".").concat(U[2],".").concat(U[1]),"".concat(U[1],".").concat(U[0],".").concat(U[2],".").concat(U[3]),"".concat(U[1],".").concat(U[0],".").concat(U[3],".").concat(U[2]),"".concat(U[1],".").concat(U[2],".").concat(U[0],".").concat(U[3]),"".concat(U[1],".").concat(U[2],".").concat(U[3],".").concat(U[0]),"".concat(U[1],".").concat(U[3],".").concat(U[0],".").concat(U[2]),"".concat(U[1],".").concat(U[3],".").concat(U[2],".").concat(U[0]),"".concat(U[2],".").concat(U[0],".").concat(U[1],".").concat(U[3]),"".concat(U[2],".").concat(U[0],".").concat(U[3],".").concat(U[1]),"".concat(U[2],".").concat(U[1],".").concat(U[0],".").concat(U[3]),"".concat(U[2],".").concat(U[1],".").concat(U[3],".").concat(U[0]),"".concat(U[2],".").concat(U[3],".").concat(U[0],".").concat(U[1]),"".concat(U[2],".").concat(U[3],".").concat(U[1],".").concat(U[0]),"".concat(U[3],".").concat(U[0],".").concat(U[1],".").concat(U[2]),"".concat(U[3],".").concat(U[0],".").concat(U[2],".").concat(U[1]),"".concat(U[3],".").concat(U[1],".").concat(U[0],".").concat(U[2]),"".concat(U[3],".").concat(U[1],".").concat(U[2],".").concat(U[0]),"".concat(U[3],".").concat(U[2],".").concat(U[0],".").concat(U[1]),"".concat(U[3],".").concat(U[2],".").concat(U[1],".").concat(U[0])]}var O={};function P(U){if(U.length===0||U.length===1)return U;var ke=U.join(".");return O[ke]||(O[ke]=S(U)),O[ke]}function L(U){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ne=arguments.length>2?arguments[2]:void 0,ue=U.filter(function(it){return it!=="token"}),mt=P(ue);return mt.reduce(function(it,$e){return x(x({},it),Ne[$e])},ke)}function K(U){return U.join(" ")}function k(U,ke){var Ne=0;return function(ue){return Ne+=1,ue.map(function(mt,it){return H({node:mt,stylesheet:U,useInlineStyles:ke,key:"code-segment-".concat(Ne,"-").concat(it)})})}}function H(U){var ke=U.node,Ne=U.stylesheet,ue=U.style,mt=ue===void 0?{}:ue,it=U.useInlineStyles,$e=U.key,Le=ke.properties,Oe=ke.type,Ge=ke.tagName,gt=ke.value;if(Oe==="text")return gt;if(Ge){var Ve=k(Ne,it),ye;if(!it)ye=x(x({},Le),{},{className:K(Le.className)});else{var ze=Object.keys(Ne).reduce(function(m,R){return R.split(".").forEach(function($){m.includes($)||m.push($)}),m},[]),Ye=Le.className&&Le.className.includes("token")?["token"]:[],F=Le.className&&Ye.concat(Le.className.filter(function(m){return!ze.includes(m)}));ye=x(x({},Le),{},{className:K(F)||void 0,style:L(Le.className,Object.assign({},Le.style,mt),Ne)})}var a=Ve(ke.children);return d.createElement(Ge,(0,c.A)({key:$e},ye),a)}}const Q=function(U,ke){var Ne=U.listLanguages();return Ne.indexOf(ke)!==-1};var Ce=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Ke(U,ke){var Ne=Object.keys(U);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(U);ke&&(ue=ue.filter(function(mt){return Object.getOwnPropertyDescriptor(U,mt).enumerable})),Ne.push.apply(Ne,ue)}return Ne}function Qe(U){for(var ke=1;ke<arguments.length;ke++){var Ne=arguments[ke]!=null?arguments[ke]:{};ke%2?Ke(Object(Ne),!0).forEach(function(ue){(0,C.A)(U,ue,Ne[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(Ne)):Ke(Object(Ne)).forEach(function(ue){Object.defineProperty(U,ue,Object.getOwnPropertyDescriptor(Ne,ue))})}return U}var nt=/\n/g;function xt(U){return U.match(nt)}function Ze(U){var ke=U.lines,Ne=U.startingLineNumber,ue=U.style;return ke.map(function(mt,it){var $e=it+Ne;return d.createElement("span",{key:"line-".concat(it),className:"react-syntax-highlighter-line-number",style:typeof ue=="function"?ue($e):ue},"".concat($e,`
|
|
109
109
|
`))})}function lt(U){var ke=U.codeString,Ne=U.codeStyle,ue=U.containerStyle,mt=ue===void 0?{float:"left",paddingRight:"10px"}:ue,it=U.numberStyle,$e=it===void 0?{}:it,Le=U.startingLineNumber;return d.createElement("code",{style:Object.assign({},Ne,mt)},Ze({lines:ke.replace(/\n$/,"").split(`
|
|
110
110
|
`),style:$e,startingLineNumber:Le}))}function ve(U){return"".concat(U.toString().length,".25em")}function Ue(U,ke){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(U),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:ke},children:[{type:"text",value:U}]}}function ct(U,ke,Ne){var ue={display:"inline-block",minWidth:ve(Ne),paddingRight:"1em",textAlign:"right",userSelect:"none"},mt=typeof U=="function"?U(ke):U,it=Qe(Qe({},ue),mt);return it}function He(U){var ke=U.children,Ne=U.lineNumber,ue=U.lineNumberStyle,mt=U.largestLineNumber,it=U.showInlineLineNumbers,$e=U.lineProps,Le=$e===void 0?{}:$e,Oe=U.className,Ge=Oe===void 0?[]:Oe,gt=U.showLineNumbers,Ve=U.wrapLongLines,ye=U.wrapLines,ze=ye===void 0?!1:ye,Ye=ze?Qe({},typeof Le=="function"?Le(Ne):Le):{};if(Ye.className=Ye.className?[].concat((0,g.A)(Ye.className.trim().split(/\s+/)),(0,g.A)(Ge)):Ge,Ne&&it){var F=ct(ue,Ne,mt);ke.unshift(Ue(Ne,F))}return Ve>&&(Ye.style=Qe({display:"flex"},Ye.style)),{type:"element",tagName:"span",properties:Ye,children:ke}}function pe(U){for(var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],ue=0;ue<U.length;ue++){var mt=U[ue];if(mt.type==="text")Ne.push(He({children:[mt],className:(0,g.A)(new Set(ke))}));else if(mt.children){var it=ke.concat(mt.properties.className);pe(mt.children,it).forEach(function($e){return Ne.push($e)})}}return Ne}function je(U,ke,Ne,ue,mt,it,$e,Le,Oe){var Ge,gt=pe(U.value),Ve=[],ye=-1,ze=0;function Ye(j,_){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return He({children:j,lineNumber:_,lineNumberStyle:Le,largestLineNumber:$e,showInlineLineNumbers:mt,lineProps:Ne,className:Me,showLineNumbers:ue,wrapLongLines:Oe,wrapLines:ke})}function F(j,_){if(ue&&_&&mt){var Me=ct(Le,_,$e);j.unshift(Ue(_,Me))}return j}function a(j,_){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return ke||Me.length>0?Ye(j,_,Me):F(j,_)}for(var m=function(){var _=gt[ze],Me=_.children[0].value,Fe=xt(Me);if(Fe){var he=Me.split(`
|
|
111
111
|
`);he.forEach(function(ge,ne){var ae=ue&&Ve.length+it,Y={type:"text",value:"".concat(ge,`
|
|
@@ -167,4 +167,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
167
167
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:Pe,tableRow:ot,tableCell:qe,inlineCode:Ot}};function Pe(wt,bt,Pt){return Mt(ft(wt,Pt),wt.align)}function ot(wt,bt,Pt){const Vt=Ct(wt,Pt),Qt=Mt([Vt]);return Qt.slice(0,Qt.indexOf(`
|
|
168
168
|
`))}function qe(wt,bt,Pt){const Vt=Pt.enter("tableCell"),Qt=Pt.enter("phrasing"),on=Dt(wt,Pt,{before:Ie,after:Ie});return Qt(),Vt(),on}function Mt(wt,bt){return In(wt,{align:bt,alignDelimiters:Be,padding:me,stringLength:Je})}function ft(wt,bt){const Pt=wt.children;let Vt=-1;const Qt=[],on=bt.enter("table");for(;++Vt<Pt.length;)Qt[Vt]=Ct(Pt[Vt],bt);return on(),Qt}function Ct(wt,bt){const Pt=wt.children;let Vt=-1;const Qt=[],on=bt.enter("tableRow");for(;++Vt<Pt.length;)Qt[Vt]=qe(Pt[Vt],wt,bt);return on(),Qt}function Ot(wt,bt,Pt){let Vt=Kt(wt,bt,Pt);return Pt.stack.includes("tableCell")&&(Vt=Vt.replace(/\|/g,"\\$&")),Vt}}function Kn(M){const be=M.options.bullet||"*";if(be!=="*"&&be!=="+"&&be!=="-")throw new Error("Cannot serialize items with `"+be+"` for `options.bullet`, expected `*`, `+`, or `-`");return be}function Gn(M){const be=M.options.listItemIndent||"tab";if(be===1||be==="1")return"one";if(be!=="tab"&&be!=="one"&&be!=="mixed")throw new Error("Cannot serialize items with `"+be+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return be}function Tn(M,be,me){const Be=Gn(me);let Je=me.bulletCurrent||Kn(me);be&&be.type==="list"&&be.ordered&&(Je=(typeof be.start=="number"&&be.start>-1?be.start:1)+(me.options.incrementListMarker===!1?0:be.children.indexOf(M))+Je);let Ie=Je.length+1;(Be==="tab"||Be==="mixed"&&(be&&be.type==="list"&&be.spread||M.spread))&&(Ie=Math.ceil(Ie/4)*4);const Pe=me.enter("listItem"),ot=I(s(M,me),qe);return Pe(),ot;function qe(Mt,ft,Ct){return ft?(Ct?"":" ".repeat(Ie))+Mt:(Ct?Je:Je+" ".repeat(Ie-Je.length))+Mt}}const Yn={exit:{taskListCheckValueChecked:Xn,taskListCheckValueUnchecked:Xn,paragraph:pr}},Fn={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:or}};function Xn(M){this.stack[this.stack.length-2].checked=M.type==="taskListCheckValueChecked"}function pr(M){const be=this.stack[this.stack.length-2],me=this.stack[this.stack.length-1],Be=be.children,Je=me.children[0];let Ie=-1,Pe;if(be&&be.type==="listItem"&&typeof be.checked=="boolean"&&Je&&Je.type==="text"){for(;++Ie<Be.length;){const ot=Be[Ie];if(ot.type==="paragraph"){Pe=ot;break}}Pe===me&&(Je.value=Je.value.slice(1),Je.value.length===0?me.children.shift():(Je.position.start.column++,Je.position.start.offset++,me.position.start=Object.assign({},Je.position.start)))}this.exit(M)}function or(M,be,me){const Be=M.children[0];let Je=Tn(M,be,me);return typeof M.checked=="boolean"&&Be&&Be.type==="paragraph"&&(Je=Je.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,Ie)),Je;function Ie(Pe){return Pe+"["+(M.checked?"x":" ")+"] "}}function dr(){return[q,Wt(),Ht,er,Yn]}function Sr(M){return{extensions:[j,zt(),$t,Zn(M),Fn]}}function yn(M={}){const be=this.data();me("micromarkExtensions",Le(M)),me("fromMarkdownExtensions",dr()),me("toMarkdownExtensions",Sr(M));function me(Be,Je){(be[Be]?be[Be]:be[Be]=[]).push(Je)}}},85608:(V,D,e)=>{"use strict";e.r(D),e.d(D,{__addDisposableResource:()=>ct,__assign:()=>f,__asyncDelegator:()=>Q,__asyncGenerator:()=>H,__asyncValues:()=>Ce,__await:()=>k,__awaiter:()=>W,__classPrivateFieldGet:()=>lt,__classPrivateFieldIn:()=>Ue,__classPrivateFieldSet:()=>ve,__createBinding:()=>E,__decorate:()=>u,__disposeResources:()=>pe,__esDecorate:()=>A,__exportStar:()=>x,__extends:()=>o,__generator:()=>g,__importDefault:()=>Ze,__importStar:()=>xt,__makeTemplateObject:()=>Ke,__metadata:()=>d,__param:()=>v,__propKey:()=>b,__read:()=>O,__rest:()=>c,__rewriteRelativeImportExtension:()=>je,__runInitializers:()=>h,__setFunctionName:()=>C,__spread:()=>P,__spreadArray:()=>K,__spreadArrays:()=>L,__values:()=>S,default:()=>de});var p=function(ee,te){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,oe){fe.__proto__=oe}||function(fe,oe){for(var ie in oe)Object.prototype.hasOwnProperty.call(oe,ie)&&(fe[ie]=oe[ie])},p(ee,te)};function o(ee,te){if(typeof te!="function"&&te!==null)throw new TypeError("Class extends value "+String(te)+" is not a constructor or null");p(ee,te);function fe(){this.constructor=ee}ee.prototype=te===null?Object.create(te):(fe.prototype=te.prototype,new fe)}var f=function(){return f=Object.assign||function(te){for(var fe,oe=1,ie=arguments.length;oe<ie;oe++){fe=arguments[oe];for(var xe in fe)Object.prototype.hasOwnProperty.call(fe,xe)&&(te[xe]=fe[xe])}return te},f.apply(this,arguments)};function c(ee,te){var fe={};for(var oe in ee)Object.prototype.hasOwnProperty.call(ee,oe)&&te.indexOf(oe)<0&&(fe[oe]=ee[oe]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,oe=Object.getOwnPropertySymbols(ee);ie<oe.length;ie++)te.indexOf(oe[ie])<0&&Object.prototype.propertyIsEnumerable.call(ee,oe[ie])&&(fe[oe[ie]]=ee[oe[ie]]);return fe}function u(ee,te,fe,oe){var ie=arguments.length,xe=ie<3?te:oe===null?oe=Object.getOwnPropertyDescriptor(te,fe):oe,We;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")xe=Reflect.decorate(ee,te,fe,oe);else for(var _e=ee.length-1;_e>=0;_e--)(We=ee[_e])&&(xe=(ie<3?We(xe):ie>3?We(te,fe,xe):We(te,fe))||xe);return ie>3&&xe&&Object.defineProperty(te,fe,xe),xe}function v(ee,te){return function(fe,oe){te(fe,oe,ee)}}function A(ee,te,fe,oe,ie,xe){function We($e){if($e!==void 0&&typeof $e!="function")throw new TypeError("Function expected");return $e}for(var _e=oe.kind,Z=_e==="getter"?"get":_e==="setter"?"set":"value",ut=!te&&ee?oe.static?ee:ee.prototype:null,It=te||(ut?Object.getOwnPropertyDescriptor(ut,oe.name):{}),U,ke=!1,Ne=fe.length-1;Ne>=0;Ne--){var ue={};for(var mt in oe)ue[mt]=mt==="access"?{}:oe[mt];for(var mt in oe.access)ue.access[mt]=oe.access[mt];ue.addInitializer=function($e){if(ke)throw new TypeError("Cannot add initializers after decoration has completed");xe.push(We($e||null))};var it=(0,fe[Ne])(_e==="accessor"?{get:It.get,set:It.set}:It[Z],ue);if(_e==="accessor"){if(it===void 0)continue;if(it===null||typeof it!="object")throw new TypeError("Object expected");(U=We(it.get))&&(It.get=U),(U=We(it.set))&&(It.set=U),(U=We(it.init))&&ie.unshift(U)}else(U=We(it))&&(_e==="field"?ie.unshift(U):It[Z]=U)}ut&&Object.defineProperty(ut,oe.name,It),ke=!0}function h(ee,te,fe){for(var oe=arguments.length>2,ie=0;ie<te.length;ie++)fe=oe?te[ie].call(ee,fe):te[ie].call(ee);return oe?fe:void 0}function b(ee){return typeof ee=="symbol"?ee:"".concat(ee)}function C(ee,te,fe){return typeof te=="symbol"&&(te=te.description?"[".concat(te.description,"]"):""),Object.defineProperty(ee,"name",{configurable:!0,value:fe?"".concat(fe," ",te):te})}function d(ee,te){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(ee,te)}function W(ee,te,fe,oe){function ie(xe){return xe instanceof fe?xe:new fe(function(We){We(xe)})}return new(fe||(fe=Promise))(function(xe,We){function _e(It){try{ut(oe.next(It))}catch(U){We(U)}}function Z(It){try{ut(oe.throw(It))}catch(U){We(U)}}function ut(It){It.done?xe(It.value):ie(It.value).then(_e,Z)}ut((oe=oe.apply(ee,te||[])).next())})}function g(ee,te){var fe={label:0,sent:function(){if(xe[0]&1)throw xe[1];return xe[1]},trys:[],ops:[]},oe,ie,xe,We=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return We.next=_e(0),We.throw=_e(1),We.return=_e(2),typeof Symbol=="function"&&(We[Symbol.iterator]=function(){return this}),We;function _e(ut){return function(It){return Z([ut,It])}}function Z(ut){if(oe)throw new TypeError("Generator is already executing.");for(;We&&(We=0,ut[0]&&(fe=0)),fe;)try{if(oe=1,ie&&(xe=ut[0]&2?ie.return:ut[0]?ie.throw||((xe=ie.return)&&xe.call(ie),0):ie.next)&&!(xe=xe.call(ie,ut[1])).done)return xe;switch(ie=0,xe&&(ut=[ut[0]&2,xe.value]),ut[0]){case 0:case 1:xe=ut;break;case 4:return fe.label++,{value:ut[1],done:!1};case 5:fe.label++,ie=ut[1],ut=[0];continue;case 7:ut=fe.ops.pop(),fe.trys.pop();continue;default:if(xe=fe.trys,!(xe=xe.length>0&&xe[xe.length-1])&&(ut[0]===6||ut[0]===2)){fe=0;continue}if(ut[0]===3&&(!xe||ut[1]>xe[0]&&ut[1]<xe[3])){fe.label=ut[1];break}if(ut[0]===6&&fe.label<xe[1]){fe.label=xe[1],xe=ut;break}if(xe&&fe.label<xe[2]){fe.label=xe[2],fe.ops.push(ut);break}xe[2]&&fe.ops.pop(),fe.trys.pop();continue}ut=te.call(ee,fe)}catch(It){ut=[6,It],ie=0}finally{oe=xe=0}if(ut[0]&5)throw ut[1];return{value:ut[0]?ut[1]:void 0,done:!0}}}var E=Object.create?function(ee,te,fe,oe){oe===void 0&&(oe=fe);var ie=Object.getOwnPropertyDescriptor(te,fe);(!ie||("get"in ie?!te.__esModule:ie.writable||ie.configurable))&&(ie={enumerable:!0,get:function(){return te[fe]}}),Object.defineProperty(ee,oe,ie)}:function(ee,te,fe,oe){oe===void 0&&(oe=fe),ee[oe]=te[fe]};function x(ee,te){for(var fe in ee)fe!=="default"&&!Object.prototype.hasOwnProperty.call(te,fe)&&E(te,ee,fe)}function S(ee){var te=typeof Symbol=="function"&&Symbol.iterator,fe=te&&ee[te],oe=0;if(fe)return fe.call(ee);if(ee&&typeof ee.length=="number")return{next:function(){return ee&&oe>=ee.length&&(ee=void 0),{value:ee&&ee[oe++],done:!ee}}};throw new TypeError(te?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(ee,te){var fe=typeof Symbol=="function"&&ee[Symbol.iterator];if(!fe)return ee;var oe=fe.call(ee),ie,xe=[],We;try{for(;(te===void 0||te-- >0)&&!(ie=oe.next()).done;)xe.push(ie.value)}catch(_e){We={error:_e}}finally{try{ie&&!ie.done&&(fe=oe.return)&&fe.call(oe)}finally{if(We)throw We.error}}return xe}function P(){for(var ee=[],te=0;te<arguments.length;te++)ee=ee.concat(O(arguments[te]));return ee}function L(){for(var ee=0,te=0,fe=arguments.length;te<fe;te++)ee+=arguments[te].length;for(var oe=Array(ee),ie=0,te=0;te<fe;te++)for(var xe=arguments[te],We=0,_e=xe.length;We<_e;We++,ie++)oe[ie]=xe[We];return oe}function K(ee,te,fe){if(fe||arguments.length===2)for(var oe=0,ie=te.length,xe;oe<ie;oe++)(xe||!(oe in te))&&(xe||(xe=Array.prototype.slice.call(te,0,oe)),xe[oe]=te[oe]);return ee.concat(xe||Array.prototype.slice.call(te))}function k(ee){return this instanceof k?(this.v=ee,this):new k(ee)}function H(ee,te,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var oe=fe.apply(ee,te||[]),ie,xe=[];return ie=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),_e("next"),_e("throw"),_e("return",We),ie[Symbol.asyncIterator]=function(){return this},ie;function We(Ne){return function(ue){return Promise.resolve(ue).then(Ne,U)}}function _e(Ne,ue){oe[Ne]&&(ie[Ne]=function(mt){return new Promise(function(it,$e){xe.push([Ne,mt,it,$e])>1||Z(Ne,mt)})},ue&&(ie[Ne]=ue(ie[Ne])))}function Z(Ne,ue){try{ut(oe[Ne](ue))}catch(mt){ke(xe[0][3],mt)}}function ut(Ne){Ne.value instanceof k?Promise.resolve(Ne.value.v).then(It,U):ke(xe[0][2],Ne)}function It(Ne){Z("next",Ne)}function U(Ne){Z("throw",Ne)}function ke(Ne,ue){Ne(ue),xe.shift(),xe.length&&Z(xe[0][0],xe[0][1])}}function Q(ee){var te,fe;return te={},oe("next"),oe("throw",function(ie){throw ie}),oe("return"),te[Symbol.iterator]=function(){return this},te;function oe(ie,xe){te[ie]=ee[ie]?function(We){return(fe=!fe)?{value:k(ee[ie](We)),done:!1}:xe?xe(We):We}:xe}}function Ce(ee){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var te=ee[Symbol.asyncIterator],fe;return te?te.call(ee):(ee=typeof S=="function"?S(ee):ee[Symbol.iterator](),fe={},oe("next"),oe("throw"),oe("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function oe(xe){fe[xe]=ee[xe]&&function(We){return new Promise(function(_e,Z){We=ee[xe](We),ie(_e,Z,We.done,We.value)})}}function ie(xe,We,_e,Z){Promise.resolve(Z).then(function(ut){xe({value:ut,done:_e})},We)}}function Ke(ee,te){return Object.defineProperty?Object.defineProperty(ee,"raw",{value:te}):ee.raw=te,ee}var Qe=Object.create?function(ee,te){Object.defineProperty(ee,"default",{enumerable:!0,value:te})}:function(ee,te){ee.default=te},nt=function(ee){return nt=Object.getOwnPropertyNames||function(te){var fe=[];for(var oe in te)Object.prototype.hasOwnProperty.call(te,oe)&&(fe[fe.length]=oe);return fe},nt(ee)};function xt(ee){if(ee&&ee.__esModule)return ee;var te={};if(ee!=null)for(var fe=nt(ee),oe=0;oe<fe.length;oe++)fe[oe]!=="default"&&E(te,ee,fe[oe]);return Qe(te,ee),te}function Ze(ee){return ee&&ee.__esModule?ee:{default:ee}}function lt(ee,te,fe,oe){if(fe==="a"&&!oe)throw new TypeError("Private accessor was defined without a getter");if(typeof te=="function"?ee!==te||!oe:!te.has(ee))throw new TypeError("Cannot read private member from an object whose class did not declare it");return fe==="m"?oe:fe==="a"?oe.call(ee):oe?oe.value:te.get(ee)}function ve(ee,te,fe,oe,ie){if(oe==="m")throw new TypeError("Private method is not writable");if(oe==="a"&&!ie)throw new TypeError("Private accessor was defined without a setter");if(typeof te=="function"?ee!==te||!ie:!te.has(ee))throw new TypeError("Cannot write private member to an object whose class did not declare it");return oe==="a"?ie.call(ee,fe):ie?ie.value=fe:te.set(ee,fe),fe}function Ue(ee,te){if(te===null||typeof te!="object"&&typeof te!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof ee=="function"?te===ee:ee.has(te)}function ct(ee,te,fe){if(te!=null){if(typeof te!="object"&&typeof te!="function")throw new TypeError("Object expected.");var oe,ie;if(fe){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");oe=te[Symbol.asyncDispose]}if(oe===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");oe=te[Symbol.dispose],fe&&(ie=oe)}if(typeof oe!="function")throw new TypeError("Object not disposable.");ie&&(oe=function(){try{ie.call(this)}catch(xe){return Promise.reject(xe)}}),ee.stack.push({value:te,dispose:oe,async:fe})}else fe&&ee.stack.push({async:!0});return te}var He=typeof SuppressedError=="function"?SuppressedError:function(ee,te,fe){var oe=new Error(fe);return oe.name="SuppressedError",oe.error=ee,oe.suppressed=te,oe};function pe(ee){function te(xe){ee.error=ee.hasError?new He(xe,ee.error,"An error was suppressed during disposal."):xe,ee.hasError=!0}var fe,oe=0;function ie(){for(;fe=ee.stack.pop();)try{if(!fe.async&&oe===1)return oe=0,ee.stack.push(fe),Promise.resolve().then(ie);if(fe.dispose){var xe=fe.dispose.call(fe.value);if(fe.async)return oe|=2,Promise.resolve(xe).then(ie,function(We){return te(We),ie()})}else oe|=1}catch(We){te(We)}if(oe===1)return ee.hasError?Promise.reject(ee.error):Promise.resolve();if(ee.hasError)throw ee.error}return ie()}function je(ee,te){return typeof ee=="string"&&/^\.\.?\//.test(ee)?ee.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(fe,oe,ie,xe,We){return oe?te?".jsx":".js":ie&&(!xe||!We)?fe:ie+xe+"."+We.toLowerCase()+"js"}):ee}const de={__extends:o,__assign:f,__rest:c,__decorate:u,__param:v,__esDecorate:A,__runInitializers:h,__propKey:b,__setFunctionName:C,__metadata:d,__awaiter:W,__generator:g,__createBinding:E,__exportStar:x,__values:S,__read:O,__spread:P,__spreadArrays:L,__spreadArray:K,__await:k,__asyncGenerator:H,__asyncDelegator:Q,__asyncValues:Ce,__makeTemplateObject:Ke,__importStar:xt,__importDefault:Ze,__classPrivateFieldGet:lt,__classPrivateFieldSet:ve,__classPrivateFieldIn:Ue,__addDisposableResource:ct,__disposeResources:pe,__rewriteRelativeImportExtension:je}},44046:(V,D,e)=>{"use strict";e.d(D,{C:()=>o});const p=function h(b,C,d,W,g){const E=o(C);if(d!=null&&(typeof d!="number"||d<0||d===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(W!=null&&(!h(W)||!W.children))throw new Error("Expected parent node");if(W==null!=(d==null))throw new Error("Expected both parent and index");return b&&b.type&&typeof b.type=="string"?!!E.call(g,b,d,W):!1},o=function(h){if(h==null)return A;if(typeof h=="string")return u(h);if(typeof h=="object")return Array.isArray(h)?f(h):c(h);if(typeof h=="function")return v(h);throw new Error("Expected function, string, or object as test")};function f(h){const b=[];let C=-1;for(;++C<h.length;)b[C]=o(h[C]);return v(d);function d(...W){let g=-1;for(;++g<b.length;)if(b[g].call(this,...W))return!0;return!1}}function c(h){return v(b);function b(C){let d;for(d in h)if(C[d]!==h[d])return!1;return!0}}function u(h){return v(b);function b(C){return C&&C.type===h}}function v(h){return b;function b(...C){return!!h.call(this,...C)}}function A(){return!0}},17609:(V,D,e)=>{"use strict";e.d(D,{VG:()=>v});var p=e(44046);function o(h){return h}const f=!0,c="skip",u=!1,v=function(h,b,C,d){typeof b=="function"&&typeof C!="function"&&(d=C,C=b,b=null);var W=(0,p.C)(b),g=d?-1:1;E(h,null,[])();function E(x,S,O){var P=typeof x=="object"&&x!==null?x:{},L;return typeof P.type=="string"&&(L=typeof P.tagName=="string"?P.tagName:typeof P.name=="string"?P.name:void 0,Object.defineProperty(K,"name",{value:"node ("+(P.type+(L?"<"+L+">":""))+")"})),K;function K(){var k=[],H,Q,Ce;if((!b||W(x,S,O[O.length-1]||null))&&(k=A(C(x,O)),k[0]===u))return k;if(x.children&&k[0]!==c)for(Q=(d?x.children.length:-1)+g,Ce=O.concat(x);Q>-1&&Q<x.children.length;){if(H=E(x.children[Q],Q,Ce)(),H[0]===u)return H;Q=typeof H[1]=="number"?H[1]:Q+g}return k}}};function A(h){return Array.isArray(h)?h:typeof h=="number"?[f,h]:[h]}},6437:(V,D,e)=>{"use strict";e.d(D,{YR:()=>o});var p=e(19119);const o=function(f,c,u,v){typeof c=="function"&&typeof u!="function"&&(v=u,u=c,c=null),(0,p.VG)(f,c,A,v);function A(h,b){const C=b[b.length-1];return u(h,C?C.children.indexOf(h):null,C)}}},19119:(V,D,e)=>{"use strict";e.d(D,{dc:()=>u,VG:()=>v});var p=e(44046);function o(h){return h}const f=!0,c="skip",u=!1,v=function(h,b,C,d){typeof b=="function"&&typeof C!="function"&&(d=C,C=b,b=null);const W=(0,p.C)(b),g=d?-1:1;E(h,null,[])();function E(x,S,O){const P=typeof x=="object"&&x!==null?x:{};let L;return typeof P.type=="string"&&(L=typeof P.tagName=="string"?P.tagName:typeof P.name=="string"?P.name:void 0,Object.defineProperty(K,"name",{value:"node ("+(P.type+(L?"<"+L+">":""))+")"})),K;function K(){let k=[],H,Q,Ce;if((!b||W(x,S,O[O.length-1]||null))&&(k=A(C(x,O)),k[0]===u))return k;if(x.children&&k[0]!==c)for(Q=(d?x.children.length:-1)+g,Ce=O.concat(x);Q>-1&&Q<x.children.length;){if(H=E(x.children[Q],Q,Ce)(),H[0]===u)return H;Q=typeof H[1]=="number"?H[1]:Q+g}return k}}};function A(h){return Array.isArray(h)?h:typeof h=="number"?[f,h]:[h]}},20938:(V,D,e)=>{"use strict";e.d(D,{A:()=>d});const o={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let f;const c=new Uint8Array(16);function u(){if(!f){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");f=crypto.getRandomValues.bind(crypto)}return f(c)}const v=[];for(let W=0;W<256;++W)v.push((W+256).toString(16).slice(1));function A(W,g=0){return(v[W[g+0]]+v[W[g+1]]+v[W[g+2]]+v[W[g+3]]+"-"+v[W[g+4]]+v[W[g+5]]+"-"+v[W[g+6]]+v[W[g+7]]+"-"+v[W[g+8]]+v[W[g+9]]+"-"+v[W[g+10]]+v[W[g+11]]+v[W[g+12]]+v[W[g+13]]+v[W[g+14]]+v[W[g+15]]).toLowerCase()}function h(W,g=0){const E=A(W,g);if(!validate(E))throw TypeError("Stringified UUID is invalid");return E}const b=null;function C(W,g,E){if(o.randomUUID&&!g&&!W)return o.randomUUID();W=W||{};const x=W.random||(W.rng||u)();if(x[6]=x[6]&15|64,x[8]=x[8]&63|128,g){E=E||0;for(let S=0;S<16;++S)g[E+S]=x[S];return g}return A(x)}const d=C}}]);})();
|
|
169
169
|
|
|
170
|
-
//# sourceMappingURL=vendor.
|
|
170
|
+
//# sourceMappingURL=vendor.a90fd85d.js.map
|