@testver/testver 1.4.1 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/bin/testver.js +1 -1
- package/dist/index.js +1943 -1190
- package/package.json +2 -1
- package/src/ui/static/assets/AIPanel-KQFq4c0Q.js +32 -0
- package/src/ui/static/assets/AIRecordPanel-CAs8fXyS.js +40 -0
- package/src/ui/static/assets/AIStreamUI-p_sMTEDQ.js +9 -0
- package/src/ui/static/assets/{AITestGenPage-Cg21-P1W.js → AITestGenPage-CHaHfmu4.js} +5 -5
- package/src/ui/static/assets/APITestingPage-BSGJY_hd.js +19 -0
- package/src/ui/static/assets/{AboutPage-yJLCr2_q.js → AboutPage-CDa24SCJ.js} +1 -1
- package/src/ui/static/assets/AdvancedPage-BqXP0FLg.js +3 -0
- package/src/ui/static/assets/{AnalyticsPage-gTPFsiLZ.js → AnalyticsPage-Lm8noJqC.js} +1 -1
- package/src/ui/static/assets/{AuditLogPage-DE45E_PV.js → AuditLogPage-BvldSIik.js} +1 -1
- package/src/ui/static/assets/ChangesSummary-Cu0_4Ucf.js +3 -0
- package/src/ui/static/assets/{CodeMapPage-DgU6ZYBO.js → CodeMapPage-uEjuo3fk.js} +3 -3
- package/src/ui/static/assets/{ConfirmDialog-DNU3qoAP.js → ConfirmDialog-DtotgVmI.js} +1 -1
- package/src/ui/static/assets/{CoveragePage-BpTjgcdV.js → CoveragePage-jNkQJA1P.js} +2 -2
- package/src/ui/static/assets/{CronBuilder-DsnX-vRr.js → CronBuilder-D2fERHt9.js} +1 -1
- package/src/ui/static/assets/Dashboard-BaIj_IdQ.js +1 -0
- package/src/ui/static/assets/{DefectsPage-BtMNbq6Z.js → DefectsPage-DH0njYFG.js} +3 -3
- package/src/ui/static/assets/{EmptyState-BH_aDO0P.js → EmptyState-utxlJ0fu.js} +1 -1
- package/src/ui/static/assets/{ExportButton-Ce_MxnM1.js → ExportButton-ouKqn9CU.js} +1 -1
- package/src/ui/static/assets/{FileViewer-iYL0lxyY.js → FileViewer-mU3JloJ6.js} +5 -5
- package/src/ui/static/assets/{GitPage-CQqV8JBC.js → GitPage-TrX-RqNC.js} +5 -5
- package/src/ui/static/assets/{ImportExportPage-DXk7Koaq.js → ImportExportPage-CIhK_raX.js} +1 -1
- package/src/ui/static/assets/{JiraPushDialog-CqftoLh8.js → JiraPushDialog-DgEZS-0u.js} +1 -1
- package/src/ui/static/assets/KpiTile-BHLE3HVj.js +1 -0
- package/src/ui/static/assets/{LiveExecutionView-BD0wE8sz.js → LiveExecutionView-CaIf7Jux.js} +1 -1
- package/src/ui/static/assets/{ManagePage-B8iG6Q0B.js → ManagePage-SvRQ6L19.js} +1 -1
- package/src/ui/static/assets/{MediaModal-DiSINwmh.js → MediaModal-DNM45Uz2.js} +1 -1
- package/src/ui/static/assets/{MobileRunPicker-BNs2lZFf.js → MobileRunPicker-DFKm6_nU.js} +1 -1
- package/src/ui/static/assets/{MobileRunTarget-D2Nqcj10.js → MobileRunTarget-DHDoDZ_F.js} +3 -3
- package/src/ui/static/assets/{ModuleExplorer-BmkoQrHb.js → ModuleExplorer-rni7JbsL.js} +1 -1
- package/src/ui/static/assets/{OutputPage-Dcsr7cmr.js → OutputPage-Cn2WCpJ6.js} +1 -1
- package/src/ui/static/assets/PipelinesPanel-D6zWcLtD.js +1 -0
- package/src/ui/static/assets/{ProfilePage-ByshrcwC.js → ProfilePage-BKNdkSnx.js} +1 -1
- package/src/ui/static/assets/{ProjectExplorer-B9B___ij.js → ProjectExplorer-5e7J8t-o.js} +1 -1
- package/src/ui/static/assets/{RemoteFileStrip-DbPnaZ-v.js → RemoteFileStrip-C1S2aclP.js} +1 -1
- package/src/ui/static/assets/ReportCard-D4EElEe9.js +2 -0
- package/src/ui/static/assets/ReportFullView-2w2ysKRg.js +1 -0
- package/src/ui/static/assets/ReportsPage-9Fx-IEwV.js +48 -0
- package/src/ui/static/assets/ResultsPage-DPkfGh-K.js +115 -0
- package/src/ui/static/assets/RunState-CRuS_bC2.js +1 -0
- package/src/ui/static/assets/{RunTargets-C7Vqd4TU.js → RunTargets-CPKBrefj.js} +1 -1
- package/src/ui/static/assets/{ScriptMappingPage-BrANeHv0.js → ScriptMappingPage-C3K_uyf0.js} +1 -1
- package/src/ui/static/assets/{SearchableDevicePicker-CFJ_DUAA.js → SearchableDevicePicker-DubIldKj.js} +1 -1
- package/src/ui/static/assets/{SettingsPage-BwOiebKG.js → SettingsPage-BuZrrlW2.js} +1 -1
- package/src/ui/static/assets/SharedReportView-ig5hECRk.js +1 -0
- package/src/ui/static/assets/{SourcesPage-C_QVQwiA.js → SourcesPage-BPkqRqkC.js} +1 -1
- package/src/ui/static/assets/TestExplorerPage-C_jl93GR.js +7 -0
- package/src/ui/static/assets/{TestManagementPage-Ch4PthuU.js → TestManagementPage-DJiWpCne.js} +1 -1
- package/src/ui/static/assets/TestPlansPage-G1lvK1C0.js +5 -0
- package/src/ui/static/assets/{TestverCreditsDetail-cSW0SpNx.js → TestverCreditsDetail-BKpt4oLW.js} +1 -1
- package/src/ui/static/assets/{TestverCreditsRing-CUsMGEe3.js → TestverCreditsRing-CEBSy3w3.js} +1 -1
- package/src/ui/static/assets/{UncommittedDiffViewer-B5HSURk8.js → UncommittedDiffViewer-FKvUZcRi.js} +2 -2
- package/src/ui/static/assets/{UserManagementPage-BjY3ftxf.js → UserManagementPage-gDGhaHE4.js} +3 -3
- package/src/ui/static/assets/{WorkflowsPage-BUu-LjZ8.js → WorkflowsPage-BACdnU-1.js} +17 -17
- package/src/ui/static/assets/{hiddenLlmProviders-setxgY_B.js → hiddenLlmProviders-DzwaR-b9.js} +1 -1
- package/src/ui/static/assets/index-D6sQYc_0.js +47 -0
- package/src/ui/static/assets/{index-DpQhqcHv.js → index-DLmlY2Ol.js} +1 -1
- package/src/ui/static/assets/index-aInN0yoR.css +1 -0
- package/src/ui/static/assets/reportMeta-3kxT7BIT.js +1 -0
- package/src/ui/static/assets/{useChartTheme-BFz2QcND.js → useChartTheme-CTIe6M63.js} +1 -1
- package/src/ui/static/assets/{useDebouncedValue-BsHptIvX.js → useDebouncedValue-C9odz7b2.js} +1 -1
- package/src/ui/static/assets/{useFeatureFlags-DqhngqgG.js → useFeatureFlags-DrhvBp0C.js} +1 -1
- package/src/ui/static/assets/{useJiraConnector-TM1Rfj1s.js → useJiraConnector-Dwj69Rfh.js} +1 -1
- package/src/ui/static/assets/useOwnership-C1CmzcvJ.js +1 -0
- package/src/ui/static/assets/useSuites-V0AxZYex.js +1 -0
- package/src/ui/static/assets/{useTabParam-ChbOedP1.js → useTabParam-CyYAP90W.js} +1 -1
- package/src/ui/static/assets/{useTestExplorer-HqvURJAc.js → useTestExplorer-CUqC18DV.js} +1 -1
- package/src/ui/static/assets/{useTestLifecycle-CL7-zz0Q.js → useTestLifecycle-C2S_vaX2.js} +1 -1
- package/src/ui/static/assets/{useTestManagement-ZTA1_VUm.js → useTestManagement-DW6AW2mt.js} +2 -2
- package/src/ui/static/assets/useTestResults-yjH1aUy-.js +1 -0
- package/src/ui/static/assets/{vendor-charts-DWFQlmCz.js → vendor-charts-By5uZ93z.js} +1 -1
- package/src/ui/static/assets/{vendor-flow-YGpC9U9I.js → vendor-flow-B61ZV-pm.js} +1 -1
- package/src/ui/static/assets/{vendor-icons-B0wLOBoh.js → vendor-icons-D_Dmmj8d.js} +277 -282
- package/src/ui/static/assets/vendor-query-DkZSMtfn.js +1 -0
- package/src/ui/static/assets/{vendor-quill-W-RoQfb6.js → vendor-quill-xJF2Jvjc.js} +1 -1
- package/src/ui/static/assets/{vendor-react-CTbHBddL.js → vendor-react-DOVfxdUy.js} +1 -1
- package/src/ui/static/index.html +5 -5
- package/src/ui/static/assets/AIPanel-D09Ni3a4.js +0 -32
- package/src/ui/static/assets/AIRecordPanel-DZtUZnRe.js +0 -40
- package/src/ui/static/assets/AIStreamUI-BsxKziYG.js +0 -9
- package/src/ui/static/assets/APITestingPage-Cdc8EZz2.js +0 -19
- package/src/ui/static/assets/AdvancedPage-DB-6sJ6s.js +0 -3
- package/src/ui/static/assets/ChangesSummary-C-7oi_sx.js +0 -2
- package/src/ui/static/assets/Dashboard-DRWbVyTb.js +0 -1
- package/src/ui/static/assets/DiffViewer-DPglzjPH.js +0 -2
- package/src/ui/static/assets/PipelinesPanel-CMMXCSda.js +0 -1
- package/src/ui/static/assets/ReportCard-BbNfk85h.js +0 -2
- package/src/ui/static/assets/ReportFullView-Cg1rggho.js +0 -1
- package/src/ui/static/assets/ReportsPage-CFv3OAhe.js +0 -48
- package/src/ui/static/assets/ResultsPage-B4LwZH-R.js +0 -115
- package/src/ui/static/assets/SharedReportView-BAbW1WOs.js +0 -1
- package/src/ui/static/assets/TestExplorerPage-BRRWtwde.js +0 -7
- package/src/ui/static/assets/TestPlansPage-Bno2vpGd.js +0 -5
- package/src/ui/static/assets/index-B0klHYbO.css +0 -1
- package/src/ui/static/assets/index-DtBWNlVD.js +0 -47
- package/src/ui/static/assets/useOwnership-eW6Egd7X.js +0 -1
- package/src/ui/static/assets/useSuites-CvtMGakZ.js +0 -1
- package/src/ui/static/assets/useTestResults-Bm-JyMhB.js +0 -1
- package/src/ui/static/assets/vendor-query-BrzmPFT3.js +0 -1
|
@@ -58,4 +58,4 @@ Error generating stack: `+a.message+`
|
|
|
58
58
|
*/var Oy=i=>{throw TypeError(i)},_y=(i,r,o)=>r.has(i)||Oy("Cannot "+o),Rl=(i,r,o)=>(_y(i,r,"read from private field"),o?o.call(i):r.get(i)),Di=(i,r,o)=>r.has(i)?Oy("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,o),la=(i,r,o,c)=>(_y(i,r,"write to private field"),r.set(i,o),o),Sf=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Ef=/^[\\/]{2}/;function Dy(i,r){return r+i.replace(/\\/g,"/")}var Fv="popstate";function $v(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function nS(i={}){function r(c,s){var b;let d=(b=s.state)==null?void 0:b.masked,{pathname:m,search:y,hash:g}=d||c.location;return Ai("",{pathname:m,search:y,hash:g},s.state&&s.state.usr||null,s.state&&s.state.key||"default",d?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function o(c,s){return typeof s=="string"?s:Jt(s)}return iS(r,o,null,i)}function De(i,r){if(i===!1||i===null||typeof i>"u")throw new Error(r)}function mt(i,r){if(!i){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function uS(){return Math.random().toString(36).substring(2,10)}function Wv(i,r){return{usr:i.state,key:i.key,idx:r,masked:i.mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Ai(i,r,o=null,c,s){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof r=="string"?na(r):r,state:o,key:r&&r.key||c||uS(),mask:s}}function Jt({pathname:i="/",search:r="",hash:o=""}){return r&&r!=="?"&&(i+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(i+=o.charAt(0)==="#"?o:"#"+o),i}function na(i){let r={};if(i){let o=i.indexOf("#");o>=0&&(r.hash=i.substring(o),i=i.substring(0,o));let c=i.indexOf("?");c>=0&&(r.search=i.substring(c),i=i.substring(0,c)),i&&(r.pathname=i)}return r}function iS(i,r,o,c={}){let{window:s=document.defaultView,v5Compat:d=!1}=c,m=s.history,y="POP",g=null,b=p();b==null&&(b=0,m.replaceState({...m.state,idx:b},""));function p(){return(m.state||{idx:null}).idx}function v(){y="POP";let L=p(),te=L==null?null:L-b;b=L,g&&g({action:y,location:X.location,delta:te})}function C(L,te){y="PUSH";let J=$v(L)?L:Ai(X.location,L,te);b=p()+1;let se=Wv(J,b),pe=X.createHref(J.mask||J);try{m.pushState(se,"",pe)}catch(de){if(de instanceof DOMException&&de.name==="DataCloneError")throw de;s.location.assign(pe)}d&&g&&g({action:y,location:X.location,delta:1})}function x(L,te){y="REPLACE";let J=$v(L)?L:Ai(X.location,L,te);b=p();let se=Wv(J,b),pe=X.createHref(J.mask||J);m.replaceState(se,"",pe),d&&g&&g({action:y,location:X.location,delta:0})}function q(L){return My(s,L)}let X={get action(){return y},get location(){return i(s,m)},listen(L){if(g)throw new Error("A history only accepts one active listener");return s.addEventListener(Fv,v),g=L,()=>{s.removeEventListener(Fv,v),g=null}},createHref(L){return r(s,L)},createURL:q,encodeLocation(L){let te=q(L);return{pathname:te.pathname,search:te.search,hash:te.hash}},push:C,replace:x,go(L){return m.go(L)}};return X}function My(i,r,o=!1){let c="http://localhost";i&&(c=i.location.origin!=="null"?i.location.origin:i.location.href),De(c,"No window.location.(origin|href) available to create URL");let s=typeof r=="string"?r:Jt(r);return s=s.replace(/ $/,"%20"),!o&&Ef.test(s)&&(s=c+s),new URL(s,c)}var Mi,kv=class{constructor(i){if(Di(this,Mi,new Map),i)for(let[r,o]of i)this.set(r,o)}get(i){if(Rl(this,Mi).has(i))return Rl(this,Mi).get(i);if(i.defaultValue!==void 0)return i.defaultValue;throw new Error("No value found for context")}set(i,r){Rl(this,Mi).set(i,r)}};Mi=new WeakMap;var rS=new Set(["lazy","caseSensitive","path","id","index","children"]);function fS(i){return rS.has(i)}var cS=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function oS(i){return cS.has(i)}function sS(i){return i.index===!0}function Ni(i,r,o=[],c={},s=!1){return i.map((d,m)=>{let y=[...o,String(m)],g=typeof d.id=="string"?d.id:y.join("-");if(De(d.index!==!0||!d.children,"Cannot specify children on an index route"),De(s||!c[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),sS(d)){let b={...d,id:g};return c[g]=Iv(b,r(b)),b}else{let b={...d,id:g,children:void 0};return c[g]=Iv(b,r(b)),d.children&&(b.children=Ni(d.children,r,y,c,s)),b}})}function Iv(i,r){return Object.assign(i,{...r,...typeof r.lazy=="object"&&r.lazy!=null?{lazy:{...i.lazy,...r.lazy}}:{}})}function Cy(i,r,o="/"){return xl(i,r,o,!1)}function xl(i,r,o,c,s){let d=typeof r=="string"?na(r):r,m=Pt(d.pathname||"/",o);if(m==null)return null;let y=s??hf(i),g=null,b=RS(m);for(let p=0;g==null&&p<y.length;++p)g=TS(y[p],b,c);return g}function dS(i,r){let{route:o,pathname:c,params:s}=i;return{id:o.id,pathname:c,params:s,data:r[o.id],loaderData:r[o.id],handle:o.handle}}function hf(i){let r=Ay(i);return hS(r),r}function Ay(i,r=[],o=[],c="",s=!1){let d=(m,y,g=s,b)=>{let p={relativePath:b===void 0?m.path||"":b,caseSensitive:m.caseSensitive===!0,childrenIndex:y,route:m};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(c)&&g)return;De(p.relativePath.startsWith(c),`Absolute route path "${p.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(c.length)}let v=Ol([c,p.relativePath]),C=o.concat(p);m.children&&m.children.length>0&&(De(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Ay(m.children,r,C,v,g)),!(m.path==null&&!m.index)&&r.push({path:v,score:bS(v,m.index),routesMeta:C.map((x,q)=>{let[X,L]=wy(x.relativePath,x.caseSensitive,q===C.length-1);return{...x,matcher:X,compiledParams:L}})})};return i.forEach((m,y)=>{var g;if(m.path===""||!((g=m.path)!=null&&g.includes("?")))d(m,y);else for(let b of Ny(m.path))d(m,y,!0,b)}),r}function Ny(i){let r=i.split("/");if(r.length===0)return[];let[o,...c]=r,s=o.endsWith("?"),d=o.replace(/\?$/,"");if(c.length===0)return s?[d,""]:[d];let m=Ny(c.join("/")),y=[];return y.push(...m.map(g=>g===""?d:[d,g].join("/"))),s&&y.push(...m),y.map(g=>i.startsWith("/")&&g===""?"/":g)}function hS(i){i.sort((r,o)=>r.score!==o.score?o.score-r.score:pS(r.routesMeta.map(c=>c.childrenIndex),o.routesMeta.map(c=>c.childrenIndex)))}var mS=/^:[\w-]+$/,vS=3,yS=2,gS=1,SS=10,ES=-2,Pv=i=>i==="*";function bS(i,r){let o=i.split("/"),c=o.length;return o.some(Pv)&&(c+=ES),r&&(c+=yS),o.filter(s=>!Pv(s)).reduce((s,d)=>s+(mS.test(d)?vS:d===""?gS:SS),c)}function pS(i,r){return i.length===r.length&&i.slice(0,-1).every((c,s)=>c===r[s])?i[i.length-1]-r[r.length-1]:0}function TS(i,r,o=!1){let{routesMeta:c}=i,s={},d="/",m=[];for(let y=0;y<c.length;++y){let g=c[y],b=y===c.length-1,p=d==="/"?r:r.slice(d.length)||"/",v={path:g.relativePath,caseSensitive:g.caseSensitive,end:b},C=g.matcher&&g.compiledParams?Uy(v,p,g.matcher,g.compiledParams):gf(v,p),x=g.route;if(!C&&b&&o&&!c[c.length-1].route.index&&(C=gf({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},p)),!C)return null;Object.assign(s,C.params),m.push({params:s,pathname:Ol([d,C.pathname]),pathnameBase:_S(Ol([d,C.pathnameBase])),route:x}),C.pathnameBase!=="/"&&(d=Ol([d,C.pathnameBase]))}return m}function gf(i,r){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[o,c]=wy(i.path,i.caseSensitive,i.end);return Uy(i,r,o,c)}function Uy(i,r,o,c){let s=r.match(o);if(!s)return null;let d=s[0],m=Mu(d,1),y=s.slice(1);return{params:c.reduce((b,{paramName:p,isOptional:v},C)=>{if(p==="*"){let q=y[C]||"";m=Mu(d.slice(0,d.length-q.length),1)}const x=y[C];return v&&!x?b[p]=void 0:b[p]=(x||"").replace(/%2F/g,"/"),b},{}),pathname:d,pathnameBase:m,pattern:i}}function wy(i,r=!1,o=!0){mt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let c=[],s="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,y,g,b,p)=>{if(c.push({paramName:y,isOptional:g!=null}),g){let v=p.charAt(b+m.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(c.push({paramName:"*"}),s+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?s+="\\/*$":i!==""&&i!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,r?void 0:"i"),c]}function RS(i){try{return i.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return mt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),i}}function Pt(i,r){if(r==="/")return i;if(!i.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,c=i.charAt(o);return c&&c!=="/"?null:i.slice(o)||"/"}function zS({basename:i,pathname:r}){return r==="/"?i:Ol([i,r])}var gs=i=>Sf.test(i);function OS(i,r="/"){let{pathname:o,search:c="",hash:s=""}=typeof i=="string"?na(i):i,d;return o?(o=Ss(o),o.startsWith("/")||o.startsWith("\\")?d=ey(o.substring(1),"/"):d=ey(o,r)):d=r,{pathname:d,search:DS(c),hash:MS(s)}}function ey(i,r){let o=Mu(r).split("/");return i.split("/").forEach(s=>{s===".."?o.length>1&&o.pop():s!=="."&&o.push(s)}),o.length>1?o.join("/"):"/"}function us(i,r,o,c){return`Cannot include a '${i}' character in a manually specified \`to.${r}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Hy(i){return i.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function bf(i){let r=Hy(i);return r.map((o,c)=>c===r.length-1?o.pathname:o.pathnameBase)}function wi(i,r,o,c=!1){let s;typeof i=="string"?s=na(i):(s={...i},De(!s.pathname||!s.pathname.includes("?"),us("?","pathname","search",s)),De(!s.pathname||!s.pathname.includes("#"),us("#","pathname","hash",s)),De(!s.search||!s.search.includes("#"),us("#","search","hash",s)));let d=i===""||s.pathname==="",m=d?"/":s.pathname,y;if(m==null)y=o;else{let v=r.length-1;if(!c&&m.startsWith("..")){let C=m.split("/");for(;C[0]==="..";)C.shift(),v-=1;s.pathname=C.join("/")}y=v>=0?r[v]:"/"}let g=OS(s,y),b=m&&m!=="/"&&m.endsWith("/"),p=(d||m===".")&&o.endsWith("/");return!g.pathname.endsWith("/")&&(b||p)&&(g.pathname+="/"),g}var Ss=i=>i.replace(/[\\/]{2,}/g,"/"),Ol=i=>Ss(i.join("/"));function Mu(i,r=0){let o=i.length;for(;o>r&&i.charCodeAt(o-1)===47;)o--;return o===i.length?i:i.slice(0,o)}var _S=i=>Mu(i).replace(/^\/*/,"/"),DS=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,MS=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,CS=["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Hi=class{constructor(i,r,o,c=!1){this.status=i,this.statusText=r||"",this.internal=c,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function Ui(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function xi(i){let r=i.map(o=>o.route.path).filter(Boolean);return Ol(r)||"/"}var xy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ly(i,r){let o=i;if(typeof o!="string"||!Sf.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let c=o,s=!1;if(xy)try{let d=new URL(window.location.href),m=Ef.test(o)?new URL(Dy(o,d.protocol)):new URL(o),y=Pt(m.pathname,r);m.origin===d.origin&&y!=null?o=y+m.search+m.hash:s=!0}catch{mt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:s,to:o}}var Pa=Symbol("Uninstrumented");function AS(i,r){let o={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};i.forEach(s=>s({id:r.id,index:r.index,path:r.path,instrument(d){let m=Object.keys(o);for(let y of m)d[y]&&o[y].push(d[y])}}));let c={};if(typeof r.lazy=="function"&&o.lazy.length>0){let s=Ou(o.lazy,r.lazy,()=>{});s&&(c.lazy=s)}if(typeof r.lazy=="object"){let s=r.lazy;["middleware","loader","action"].forEach(d=>{let m=s[d],y=o[`lazy.${d}`];if(typeof m=="function"&&y.length>0){let g=Ou(y,m,()=>{});g&&(c.lazy=Object.assign(c.lazy||{},{[d]:g}))}})}return["loader","action"].forEach(s=>{let d=r[s];if(typeof d=="function"&&o[s].length>0){let m=d[Pa]??d,y=Ou(o[s],m,(...g)=>ty(g[0]));y&&(s==="loader"&&m.hydrate===!0&&(y.hydrate=!0),y[Pa]=m,c[s]=y)}}),r.middleware&&r.middleware.length>0&&o.middleware.length>0&&(c.middleware=r.middleware.map(s=>{let d=s[Pa]??s,m=Ou(o.middleware,d,(...y)=>ty(y[0]));return m?(m[Pa]=d,m):s})),c}function NS(i,r){let o={navigate:[],fetch:[]};if(r.forEach(c=>c({instrument(s){let d=Object.keys(s);for(let m of d)s[m]&&o[m].push(s[m])}})),o.navigate.length>0){let c=i.navigate[Pa]??i.navigate,s=Ou(o.navigate,c,(...d)=>{let[m,y]=d;return{to:typeof m=="number"||typeof m=="string"?m:m?Jt(m):".",...ly(i,y??{})}});s&&(s[Pa]=c,i.navigate=s)}if(o.fetch.length>0){let c=i.fetch[Pa]??i.fetch,s=Ou(o.fetch,c,(...d)=>{let[m,,y,g]=d;return{href:y??".",fetcherKey:m,...ly(i,g??{})}});s&&(s[Pa]=c,i.fetch=s)}return i}function Ou(i,r,o){return i.length===0?null:async(...c)=>{let s=await By(i,o(...c),()=>r(...c),i.length-1);if(s.type==="error")throw s.value;return s.value}}async function By(i,r,o,c){let s=i[c],d;if(s){let m,y=async()=>(m?console.error("You cannot call instrumented handlers more than once"):m=By(i,r,o,c-1),d=await m,De(d,"Expected a result"),d.type==="error"&&d.value instanceof Error?{status:"error",error:d.value}:{status:"success",error:void 0});try{await s(y,r)}catch(g){console.error("An instrumentation function threw an error:",g)}m||await y(),await m}else try{d={type:"success",value:await o()}}catch(m){d={type:"error",value:m}}return d||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function ty(i){let{request:r,context:o,params:c,pattern:s}=i;return{request:US(r),params:{...c},pattern:s,context:wS(o)}}function ly(i,r){return{currentUrl:Jt(i.state.location),..."formMethod"in r?{formMethod:r.formMethod}:{},..."formEncType"in r?{formEncType:r.formEncType}:{},..."formData"in r?{formData:r.formData}:{},..."body"in r?{body:r.body}:{}}}function US(i){return{method:i.method,url:i.url,headers:{get:(...r)=>i.headers.get(...r)}}}function wS(i){if(xS(i)){let r={...i};return Object.freeze(r),r}else return{get:r=>i.get(r)}}var HS=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function xS(i){if(i===null||typeof i!="object")return!1;const r=Object.getPrototypeOf(i);return r===Object.prototype||r===null||Object.getOwnPropertyNames(r).sort().join("\0")===HS}var ay=new URL("http://localhost");function Es(i){if(i.createURL)return i.createURL("/");try{return new URL(i.createHref("/"),ay)}catch{return ay}}function is(i,r){return i.origin===r.origin&&(i.origin!=="null"||i.protocol===r.protocol&&i.host===r.host)}function LS(i,r){if(i.startsWith("//"))return!0;let o=r.protocol.toLowerCase();return i.toLowerCase().startsWith(o)?r.host===""||i.slice(o.length).startsWith("//"):!1}function _u(i,r,o,c){let s=null;try{s=i==null?null:new URL(i,o)}catch{}let d=new URL(r,o),m=s!=null&&!is(s,o),y=!is(d,o);if(c==="reject"){if(m||y)throw new Error("External navigation is not allowed")}else if(y&&(s==null||!LS(i,s)||!is(s,d)))throw new Error("External navigation is not allowed")}var jy=["POST","PUT","PATCH","DELETE"],BS=new Set(jy),jS=["GET",...jy],YS=new Set(jS),Yy=new Set([301,302,303,307,308]),qS=new Set([307,308]),rs={state:"idle",location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},GS={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},VS=i=>({hasErrorBoundary:!!i.hasErrorBoundary}),qy="remix-router-transitions",Gy=Symbol("ResetLoaderData"),zn,Tu,ka,Ru,XS=class{constructor(i){Di(this,zn),Di(this,Tu),Di(this,ka),Di(this,Ru),la(this,zn,i),la(this,Tu,hf(i))}get stableRoutes(){return Rl(this,zn)}get activeRoutes(){return Rl(this,ka)??Rl(this,zn)}get branches(){return Rl(this,Ru)??Rl(this,Tu)}get hasHMRRoutes(){return Rl(this,ka)!=null}setRoutes(i){la(this,zn,i),la(this,Tu,hf(i))}setHmrRoutes(i){la(this,ka,i),la(this,Ru,hf(i))}commitHmrRoutes(){Rl(this,ka)&&(la(this,zn,Rl(this,ka)),la(this,Tu,Rl(this,Ru)),la(this,ka,void 0),la(this,Ru,void 0))}};zn=new WeakMap;Tu=new WeakMap;ka=new WeakMap;Ru=new WeakMap;function QS(i){const r=i.window?i.window:typeof window<"u"?window:void 0,o=typeof r<"u"&&typeof r.document<"u"&&typeof r.document.createElement<"u";De(i.routes.length>0,"You must provide a non-empty routes array to createRouter");let c=i.hydrationRouteProperties||[],s=i.mapRouteProperties||VS,d=s;if(i.instrumentations){let E=i.instrumentations;d=z=>({...s(z),...AS(E.map(U=>U.route).filter(Boolean),z)})}let m={},y=new XS(Ni(i.routes,d,void 0,m)),g=i.basename||"/";g.startsWith("/")||(g=`/${g}`);let b=i.dataStrategy||$S,p={...i.future},v=null,C=new Set,x=null,q=null,X=null,L=null,te=i.hydrationData!=null,J=xl(y.activeRoutes,i.history.location,g,!1,y.branches),se=!1,pe=null,de,Me;if(J==null&&!i.patchRoutesOnNavigation){let E=zl(404,{pathname:i.history.location.pathname}),{matches:z,route:U}=of(y.activeRoutes);de=!0,Me=!de,J=z,pe={[U.id]:E}}else if(J&&!i.hydrationData&&ql(J,y.activeRoutes,i.history.location.pathname).active&&(J=null),J)if(J.some(E=>E.route.lazy))de=!1,Me=!de;else if(!J.some(E=>bs(E.route)))de=!0,Me=!de;else{let E=i.hydrationData?i.hydrationData.loaderData:null,z=i.hydrationData?i.hydrationData.errors:null,U=J;if(z){let Y=J.findIndex(V=>z[V.route.id]!==void 0);U=U.slice(0,Y+1)}Me=!1,de=!0,U.forEach(Y=>{let V=Vy(Y.route,E,z);Me=Me||V.renderFallback,de=de&&!V.shouldLoad})}else{de=!1,Me=!de,J=[];let E=ql(null,y.activeRoutes,i.history.location.pathname);E.active&&E.matches&&(se=!0,J=E.matches)}let ue,M={historyAction:i.history.action,location:i.history.location,matches:J,initialized:de,renderFallback:Me,navigation:rs,restoreScrollPosition:i.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:i.hydrationData&&i.hydrationData.loaderData||{},actionData:i.hydrationData&&i.hydrationData.actionData||null,errors:i.hydrationData&&i.hydrationData.errors||pe,fetchers:new Map,blockers:new Map},ze="POP",fe=null,Je=!1,Ee,ut=!1,Ve=new Map,Oe=null,Q=!1,K=!1,W=new Set,ce=new Map,ge=0,Xe=-1,at=new Map,ot=new Set,R=new Map,G=new Map,F=new Set,P=new Map,Ne,_e=null;function Ye(){if(v=i.history.listen(({action:E,location:z,delta:U})=>{if(Ne){Ne(),Ne=void 0;return}mt(P.size===0||U!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Y=Uu({currentLocation:M.location,nextLocation:z,historyAction:E});if(Y&&U!=null){let V=new Promise(ee=>{Ne=ee});i.history.go(U*-1),en(Y,{state:"blocked",location:z,proceed(){en(Y,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),V.then(()=>i.history.go(U))},reset(){let ee=new Map(M.blockers);ee.set(Y,pu),et({blockers:ee})}}),fe==null||fe.resolve(),fe=null;return}return nt(E,z)}),o){mE(r,Ve);let E=()=>vE(r,Ve);r.addEventListener("pagehide",E),Oe=()=>r.removeEventListener("pagehide",E)}return M.initialized||nt("POP",M.location,{initialHydration:!0}),ue}function ae(){v&&v(),Oe&&Oe(),C.clear(),Ee&&Ee.abort(),M.fetchers.forEach((E,z)=>Nn(M.fetchers,z)),M.blockers.forEach((E,z)=>qi(z))}function ve(E){if(C.add(E),x){let{newErrors:z}=x;x=null,E(M,{deletedFetchers:[],newErrors:z,viewTransitionOpts:void 0,flushSync:!1})}return()=>C.delete(E)}function et(E,z={}){E.matches&&(E.matches=E.matches.map(V=>{let ee=m[V.route.id],I=V.route;return I.element!==ee.element||I.errorElement!==ee.errorElement||I.hydrateFallbackElement!==ee.hydrateFallbackElement?{...V,route:ee}:V})),M={...M,...E};let U=[],Y=[];M.fetchers.forEach((V,ee)=>{V.state==="idle"&&(F.has(ee)?U.push(ee):Y.push(ee))}),F.forEach(V=>{!M.fetchers.has(V)&&!ce.has(V)&&U.push(V)}),C.size===0&&(x={newErrors:E.errors??null}),[...C].forEach(V=>V(M,{deletedFetchers:U,newErrors:E.errors??null,viewTransitionOpts:z.viewTransitionOpts,flushSync:z.flushSync===!0})),U.forEach(V=>Nn(M.fetchers,V)),Y.forEach(V=>M.fetchers.delete(V))}function Bl(E,z,{flushSync:U}={}){var oe,ye;let Y=M.actionData!=null&&M.navigation.formMethod!=null&&qt(M.navigation.formMethod)&&M.navigation.state==="loading"&&((oe=E.state)==null?void 0:oe._isRedirect)!==!0,V;z.actionData?Object.keys(z.actionData).length>0?V=z.actionData:V=null:Y?V=M.actionData:V=null;let ee=z.loaderData?hy(M.loaderData,z.loaderData,z.matches||[],z.errors):M.loaderData,I=M.blockers;I.size>0&&(I=new Map(I),I.forEach((ne,Le)=>I.set(Le,pu)));let he=Q?!1:Gi(E,z.matches||M.matches),$=Je===!0||M.navigation.formMethod!=null&&qt(M.navigation.formMethod)&&((ye=E.state)==null?void 0:ye._isRedirect)!==!0;y.commitHmrRoutes(),Q||ze==="POP"||(ze==="PUSH"?i.history.push(E,E.state):ze==="REPLACE"&&i.history.replace(E,E.state));let ie;if(ze==="POP"&&!Q&&E!==M.location){let ne=Ve.get(M.location.pathname);ne&&ne.has(E.pathname)?ie={currentLocation:M.location,nextLocation:E}:Ve.has(E.pathname)&&(ie={currentLocation:E,nextLocation:M.location})}else if(ut){let ne=Ve.get(M.location.pathname);ne?ne.add(E.pathname):(ne=new Set([E.pathname]),Ve.set(M.location.pathname,ne)),ie={currentLocation:M.location,nextLocation:E}}et({...z,actionData:V,loaderData:ee,historyAction:ze,location:E,initialized:!0,renderFallback:!1,navigation:rs,revalidation:"idle",restoreScrollPosition:he,preventScrollReset:$,blockers:I},{viewTransitionOpts:ie,flushSync:U===!0}),ze="POP",Je=!1,ut=!1,Q=!1,K=!1,fe==null||fe.resolve(),fe=null,_e==null||_e.resolve(),_e=null}async function ua(E,z){if(fe==null||fe.resolve(),fe=null,typeof E=="number"){fe||(fe=gy());let Ze=fe.promise;return i.history.go(E),Ze}let U=ss(M.location,M.matches,g,E,z==null?void 0:z.fromRouteId,z==null?void 0:z.relative),{path:Y,submission:V,error:ee}=ny(!1,U,z),I;if(z!=null&&z.mask){let Ze=typeof z.mask=="string"?na(z.mask):{...M.location.mask,...z.mask};if(I={pathname:Ze.pathname??"",search:Ze.search??"",hash:Ze.hash??""},Ef.test(I.pathname))throw new Error("External navigation is not allowed");I.pathname.startsWith("\\")&&(I.pathname=I.pathname.replace(/^\\+/,"/")),_u(typeof z.mask=="string"?z.mask:Jt(z.mask),Jt(I),i.history.createURL("/"),"reject")}let he=M.location,$=Ai(he,Y,z&&z.state,void 0,I);$={...$,...i.history.encodeLocation($)},_u(E==null?i.history.createHref(M.location):typeof E=="string"?E:Jt(E),i.history.createHref($.mask||$),i.history.createURL("/"),"reject");let ie=z&&z.replace!=null?z.replace:void 0,oe="PUSH";ie===!0?oe="REPLACE":ie===!1||V!=null&&qt(V.formMethod)&&V.formAction===M.location.pathname+M.location.search&&(oe="REPLACE");let ye=z&&"preventScrollReset"in z?z.preventScrollReset===!0:void 0,ne=(z&&z.flushSync)===!0,Le=Uu({currentLocation:he,nextLocation:$,historyAction:oe});if(Le){en(Le,{state:"blocked",location:$,proceed(){en(Le,{state:"proceeding",proceed:void 0,reset:void 0,location:$}),ua(E,z)},reset(){let Ze=new Map(M.blockers);Ze.set(Le,pu),et({blockers:Ze})}});return}await nt(oe,$,{submission:V,pendingError:ee,preventScrollReset:ye,replace:z&&z.replace,enableViewTransition:z&&z.viewTransition,flushSync:ne,callSiteDefaultShouldRevalidate:z&&z.defaultShouldRevalidate})}function dl(){_e||(_e=gy()),An(),et({revalidation:"loading"});let E=_e.promise;return M.navigation.state==="submitting"?E:M.navigation.state==="idle"?(nt(M.historyAction,M.location,{startUninterruptedRevalidation:!0}),E):(nt(ze||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:ut===!0}),E)}async function nt(E,z,U){Ee&&Ee.abort(),Ee=null,ze=E,Q=(U&&U.startUninterruptedRevalidation)===!0,_f(M.location,M.matches),Je=(U&&U.preventScrollReset)===!0,ut=(U&&U.enableViewTransition)===!0;let Y=y.activeRoutes,V=U!=null&&U.initialHydration&&M.matches&&M.matches.length>0&&!se?M.matches:xl(Y,z,g,!1,y.branches),ee=(U&&U.flushSync)===!0;if(V&&M.initialized&&!K&&nE(M.location,z)&&!(U&&U.submission&&qt(U.submission.formMethod))){Bl(z,{matches:V},{flushSync:ee});return}let I=ql(V,Y,z.pathname);if(I.active&&I.matches&&(V=I.matches),!V){let{error:qe,notFoundMatches:Be,route:zt}=Ta(z.pathname);Bl(z,{matches:Be,loaderData:{},errors:{[zt.id]:qe}},{flushSync:ee});return}let he=U&&U.overrideNavigation?{...U.overrideNavigation,matches:V,historyAction:E}:void 0;Ee=new AbortController;let $=zu(i.history,z,Ee.signal,U&&U.submission),ie=i.getContext?await i.getContext():new kv,oe;if(U&&U.pendingError)oe=[Ia(V).route.id,{type:"error",error:U.pendingError}];else if(U&&U.submission&&qt(U.submission.formMethod)){let qe=await ke($,z,U.submission,V,E,ie,I.active,U&&U.initialHydration===!0,{replace:U.replace,flushSync:ee});if(qe.shortCircuited)return;if(qe.pendingActionResult){let[Be,zt]=qe.pendingActionResult;if(ol(zt)&&Ui(zt.error)&&zt.error.status===404){Ee=null,Bl(z,{matches:qe.matches,loaderData:{},errors:{[Be]:zt.error}});return}}V=qe.matches||V,oe=qe.pendingActionResult,he=fs(z,V,E,U.submission),ee=!1,I.active=!1,$=zu(i.history,$.url,$.signal)}let{shortCircuited:ye,matches:ne,loaderData:Le,errors:Ze,workingFetchers:st}=await hl($,z,V,E,ie,I.active,he,U&&U.submission,U&&U.fetcherSubmission,U&&U.replace,U&&U.initialHydration===!0,ee,oe,U&&U.callSiteDefaultShouldRevalidate);ye||(Ee=null,Bl(z,{matches:ne||V,...my(oe),loaderData:Le,errors:Ze,...st?{fetchers:st}:{}}))}async function ke(E,z,U,Y,V,ee,I,he,$={}){An();let ie=dE(z,Y,V,U);if(et({navigation:ie},{flushSync:$.flushSync===!0}),I){let ne=await Rt(Y,z.pathname,E.signal);if(ne.type==="aborted")return{shortCircuited:!0};if(ne.type==="error"){if(ne.partialMatches.length===0){let{matches:Ze,route:st}=of(y.activeRoutes);return{matches:Ze,pendingActionResult:[st.id,{type:"error",error:ne.error}]}}let Le=Ia(ne.partialMatches).route.id;return{matches:ne.partialMatches,pendingActionResult:[Le,{type:"error",error:ne.error}]}}else if(ne.matches)Y=ne.matches;else{let{notFoundMatches:Le,error:Ze,route:st}=Ta(z.pathname);return{matches:Le,pendingActionResult:[st.id,{type:"error",error:Ze}]}}}let oe,ye=mf(Y,z);if(!ye.route.action&&!ye.route.lazy)oe={type:"error",error:zl(405,{method:E.method,pathname:z.pathname,routeId:ye.route.id})};else{let ne=Du(d,m,E,z,Y,ye,he?[]:c,ee),Le=await Yl(E,z,ne,ee,null);if(oe=Le[ye.route.id],!oe){for(let Ze of Y)if(Le[Ze.route.id]){oe=Le[Ze.route.id];break}}if(E.signal.aborted)return{shortCircuited:!0}}if(On(oe)){let ne;return $&&$.replace!=null?ne=$.replace:ne=oy(oe.response.headers.get("Location"),new URL(E.url),g,i.history)===M.location.pathname+M.location.search,await Dl(E,oe,!0,{submission:U,replace:ne}),{shortCircuited:!0}}if(ol(oe)){let ne=Ia(Y,ye.route.id);return($&&$.replace)!==!0&&(ze="PUSH"),{matches:Y,pendingActionResult:[ne.route.id,oe,ye.route.id]}}return{matches:Y,pendingActionResult:[ye.route.id,oe]}}async function hl(E,z,U,Y,V,ee,I,he,$,ie,oe,ye,ne,Le){let Ze=I||fs(z,U,Y,he),st=he||$||yy(Ze),qe=!Q&&!oe;if(ee){if(qe){let bt=ba(ne);et({navigation:Ze,...bt!==void 0?{actionData:bt}:{}},{flushSync:ye})}let Ce=await Rt(U,z.pathname,E.signal);if(Ce.type==="aborted")return{shortCircuited:!0};if(Ce.type==="error"){if(Ce.partialMatches.length===0){let{matches:_t,route:jt}=of(y.activeRoutes);return{matches:_t,loaderData:{},errors:{[jt.id]:Ce.error}}}let bt=Ia(Ce.partialMatches).route.id;return{matches:Ce.partialMatches,loaderData:{},errors:{[bt]:Ce.error}}}else if(Ce.matches)U=Ce.matches;else{let{error:bt,notFoundMatches:_t,route:jt}=Ta(z.pathname);return{matches:_t,loaderData:{},errors:{[jt.id]:bt}}}}let Be=y.activeRoutes,{dsMatches:zt,revalidatingFetchers:At}=uy(E,V,d,m,i.history,M,U,st,z,oe?[]:c,oe===!0,K,W,F,R,ot,Be,g,i.patchRoutesOnNavigation!=null,y.branches,ne,Le);if(Xe=++ge,!i.dataStrategy&&!zt.some(Ce=>Ce.shouldLoad)&&!zt.some(Ce=>Ce.route.middleware&&Ce.route.middleware.length>0)&&At.length===0){let Ce=new Map(M.fetchers),bt=ji(Ce);return Bl(z,{matches:U,loaderData:{},errors:ne&&ol(ne[1])?{[ne[0]]:ne[1].error}:null,...my(ne),...bt?{fetchers:Ce}:{}},{flushSync:ye}),{shortCircuited:!0}}if(qe){let Ce={};if(!ee){Ce.navigation=Ze;let bt=ba(ne);bt!==void 0&&(Ce.actionData=bt)}At.length>0&&(Ce.fetchers=jl(At)),et(Ce,{flushSync:ye})}At.forEach(Ce=>{tl(Ce.key),Ce.controller&&ce.set(Ce.key,Ce.controller)});let Ra=()=>At.forEach(Ce=>tl(Ce.key));Ee&&Ee.signal.addEventListener("abort",Ra);let{loaderResults:Ot,fetcherResults:it}=await Cn(zt,At,E,z,V);if(E.signal.aborted)return{shortCircuited:!0};Ee&&Ee.signal.removeEventListener("abort",Ra),At.forEach(Ce=>ce.delete(Ce.key));let ft=sf(Ot);if(ft)return await Dl(E,ft.result,!0,{replace:ie}),{shortCircuited:!0};if(ft=sf(it),ft)return ot.add(ft.key),await Dl(E,ft.result,!0,{replace:ie}),{shortCircuited:!0};let Nt=new Map(M.fetchers),{loaderData:wn,errors:Gl}=dy(M,U,Ot,ne,At,it,Nt);oe&&M.errors&&(Gl={...M.errors,...Gl});let Hn=ji(Nt),tn=Yi(Xe,Nt),Vl=Hn||tn||At.length>0;return{matches:U,loaderData:wn,errors:Gl,...Vl?{workingFetchers:Nt}:{}}}function ba(E){if(E&&!ol(E[1]))return{[E[0]]:E[1].data};if(M.actionData)return Object.keys(M.actionData).length===0?null:M.actionData}function jl(E){let z=new Map(M.fetchers);return E.forEach(U=>{let Y=z.get(U.key),V=Oi(void 0,Y?Y.data:void 0);z.set(U.key,V)}),z}async function Dn(E,z,U,Y){tl(E);let V=(Y&&Y.flushSync)===!0,ee=y.activeRoutes,I=ss(M.location,M.matches,g,U,z,Y==null?void 0:Y.relative),he=xl(ee,I,g,!1,y.branches),$=ql(he,ee,I);if($.active&&$.matches&&(he=$.matches),!he){el(E,z,zl(404,{pathname:I}),{flushSync:V});return}let{path:ie,submission:oe,error:ye}=ny(!0,I,Y);if(ye){el(E,z,ye,{flushSync:V});return}let ne=i.getContext?await i.getContext():new kv,Le=(Y&&Y.preventScrollReset)===!0;if(oe&&qt(oe.formMethod)){await Mn(E,z,ie,he,ne,$.active,V,Le,oe,Y&&Y.defaultShouldRevalidate);return}R.set(E,{routeId:z,path:ie}),await pa(E,z,ie,he,ne,$.active,V,Le,oe)}async function Mn(E,z,U,Y,V,ee,I,he,$,ie){An(),R.delete(E);let oe=M.fetchers.get(E);Tt(E,hE($,oe),{flushSync:I});let ye=new AbortController,ne=zu(i.history,U,ye.signal,$);if(ee){let be=await Rt(Y,new URL(ne.url).pathname,ne.signal,E);if(be.type==="aborted")return;if(be.type==="error"){el(E,z,be.error,{flushSync:I});return}else if(be.matches)Y=be.matches;else{el(E,z,zl(404,{pathname:U}),{flushSync:I});return}}let Le=mf(Y,U);if(!Le.route.action&&!Le.route.lazy){let be=zl(405,{method:$.formMethod,pathname:U,routeId:z});el(E,z,be,{flushSync:I});return}ce.set(E,ye);let Ze=ge,st=Du(d,m,ne,U,Y,Le,c,V),qe=await Yl(ne,U,st,V,E),Be=qe[Le.route.id];if(!Be){for(let be of st)if(qe[be.route.id]){Be=qe[be.route.id];break}}if(ne.signal.aborted){ce.get(E)===ye&&ce.delete(E);return}if(F.has(E)){if(On(Be)||ol(Be)){Tt(E,aa(void 0));return}}else{if(On(Be))if(ce.delete(E),Xe>Ze){Tt(E,aa(void 0));return}else return ot.add(E),Tt(E,Oi($)),Dl(ne,Be,!1,{fetcherSubmission:$,preventScrollReset:he});if(ol(Be)){el(E,z,Be.error);return}}let zt=M.navigation.location||M.location,At=zu(i.history,zt,ye.signal),Ra=y.activeRoutes,Ot=M.navigation.state!=="idle"?xl(Ra,M.navigation.location,g,!1,y.branches):M.matches;De(Ot,"Didn't find any matches after fetcher action");let it=++ge;at.set(E,it);let{dsMatches:ft,revalidatingFetchers:Nt}=uy(At,V,d,m,i.history,M,Ot,$,zt,c,!1,K,W,F,R,ot,Ra,g,i.patchRoutesOnNavigation!=null,y.branches,[Le.route.id,Be],ie),wn=Oi($,Be.data),Gl=new Map(M.fetchers);Gl.set(E,wn),Nt.filter(be=>be.key!==E).forEach(be=>{let Ql=be.key,Hu=Gl.get(Ql),Vi=Oi(void 0,Hu?Hu.data:void 0);Gl.set(Ql,Vi),tl(Ql),be.controller&&ce.set(Ql,be.controller)}),et({fetchers:Gl});let Hn=()=>Nt.forEach(be=>tl(be.key));ye.signal.addEventListener("abort",Hn);let{loaderResults:tn,fetcherResults:Vl}=await Cn(ft,Nt,At,zt,V);if(ye.signal.aborted)return;ye.signal.removeEventListener("abort",Hn),at.delete(E),ce.delete(E),Nt.forEach(be=>ce.delete(be.key));let Ce=M.fetchers.has(E),bt=be=>{if(!Ce)return be;let Ql=new Map(be.fetchers);return Ql.set(E,aa(Be.data)),{...be,fetchers:Ql}},_t=sf(tn);if(_t)return M=bt(M),Dl(At,_t.result,!1,{preventScrollReset:he});if(_t=sf(Vl),_t)return ot.add(_t.key),M=bt(M),Dl(At,_t.result,!1,{preventScrollReset:he});let jt=new Map(M.fetchers);Ce&&jt.set(E,aa(Be.data));let{loaderData:za,errors:Xl}=dy(M,Ot,tn,void 0,Nt,Vl,jt);Yi(it,jt),M.navigation.state==="loading"&&it>Xe?(De(ze,"Expected pending action"),Ee&&Ee.abort(),Bl(M.navigation.location,{matches:Ot,loaderData:za,errors:Xl,fetchers:jt})):(et({errors:Xl,loaderData:hy(M.loaderData,za,Ot,Xl),fetchers:jt}),K=!1)}async function pa(E,z,U,Y,V,ee,I,he,$){let ie=M.fetchers.get(E);Tt(E,Oi($,ie?ie.data:void 0),{flushSync:I});let oe=new AbortController,ye=zu(i.history,U,oe.signal);if(ee){let Be=await Rt(Y,new URL(ye.url).pathname,ye.signal,E);if(Be.type==="aborted")return;if(Be.type==="error"){el(E,z,Be.error,{flushSync:I});return}else if(Be.matches)Y=Be.matches;else{el(E,z,zl(404,{pathname:U}),{flushSync:I});return}}let ne=mf(Y,U);ce.set(E,oe);let Le=ge,Ze=Du(d,m,ye,U,Y,ne,c,V),st=await Yl(ye,U,Ze,V,E),qe=st[ne.route.id];if(!qe){for(let Be of Y)if(st[Be.route.id]){qe=st[Be.route.id];break}}if(ce.get(E)===oe&&ce.delete(E),!ye.signal.aborted){if(F.has(E)){Tt(E,aa(void 0));return}if(On(qe))if(Xe>Le){Tt(E,aa(void 0));return}else{ot.add(E),await Dl(ye,qe,!1,{preventScrollReset:he});return}if(ol(qe)){el(E,z,qe.error);return}Tt(E,aa(qe.data))}}async function Dl(E,z,U,{submission:Y,fetcherSubmission:V,preventScrollReset:ee,replace:I}={}){U||(fe==null||fe.resolve(),fe=null),z.response.headers.has("X-Remix-Revalidate")&&(K=!0);let he=z.response.headers.get("Location");De(he,"Expected a Location header on the redirect Response");let $=he,ie=new URL(E.url);he=oy(he,ie,g,i.history),_u($,he,ie,"allow-explicit");let oe=Ai(M.location,he,{_isRedirect:!0});if(o){let qe=!1;if(z.response.headers.has("X-Remix-Reload-Document"))qe=!0;else if(gs(he)){const Be=My(r,he,!0);qe=Be.origin!==r.location.origin||Pt(Be.pathname,g)==null}if(qe){I?r.location.replace(he):r.location.assign(he);return}}Ee=null;let ye=I===!0||z.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ne,formAction:Le,formEncType:Ze}=M.navigation;!Y&&!V&&ne&&Le&&Ze&&(Y=yy(M.navigation));let st=Y||V;if(qS.has(z.response.status)&&st&&qt(st.formMethod))await nt(ye,oe,{submission:{...st,formAction:he},preventScrollReset:ee||Je,enableViewTransition:U?ut:void 0});else{let qe=fs(oe,[],ye,Y);await nt(ye,oe,{overrideNavigation:qe,fetcherSubmission:V,preventScrollReset:ee||Je,enableViewTransition:U?ut:void 0})}}async function Yl(E,z,U,Y,V){var he;let ee,I={};try{ee=await kS(b,E,z,U,V,Y,!1)}catch($){return U.filter(ie=>ie.shouldLoad).forEach(ie=>{I[ie.route.id]={type:"error",error:$}}),I}if(E.signal.aborted)return I;if(!qt(E.method))for(let $ of U){if(((he=ee[$.route.id])==null?void 0:he.type)==="error")break;!ee.hasOwnProperty($.route.id)&&!M.loaderData.hasOwnProperty($.route.id)&&(!M.errors||!M.errors.hasOwnProperty($.route.id))&&$.shouldCallHandler()&&(ee[$.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${$.route.id}`)})}for(let[$,ie]of Object.entries(ee))if(fE(ie)){let oe=ie.result;I[$]={type:"redirect",response:tE(oe,E,$,U,g)}}else I[$]=await eE(ie);return I}async function Cn(E,z,U,Y,V){let ee=Yl(U,Y,E,V,null),I=Promise.all(z.map(async ie=>{if(ie.matches&&ie.match&&ie.request&&ie.controller){let ye=(await Yl(ie.request,ie.path,ie.matches,V,ie.key))[ie.match.route.id];return{[ie.key]:ye}}else return Promise.resolve({[ie.key]:{type:"error",error:zl(404,{pathname:ie.path})}})})),he=await ee,$=(await I).reduce((ie,oe)=>Object.assign(ie,oe),{});return{loaderResults:he,fetcherResults:$}}function An(){K=!0,R.forEach((E,z)=>{ce.has(z)&&W.add(z),tl(z)})}function Tt(E,z,U={}){let Y=new Map(M.fetchers);Y.set(E,z),et({fetchers:Y},{flushSync:(U&&U.flushSync)===!0})}function el(E,z,U,Y={}){let V=Ia(M.matches,z),ee=new Map(M.fetchers);Nn(ee,E),et({errors:{[V.route.id]:U},fetchers:ee},{flushSync:(Y&&Y.flushSync)===!0})}function Au(E){return G.set(E,(G.get(E)||0)+1),F.has(E)&&F.delete(E),M.fetchers.get(E)||GS}function zf(E,z){tl(E,z==null?void 0:z.reason),Tt(E,aa(null))}function Nn(E,z){let U=M.fetchers.get(z);ce.has(z)&&!(U&&U.state==="loading"&&at.has(z))&&tl(z),R.delete(z),at.delete(z),ot.delete(z),F.delete(z),W.delete(z),E.delete(z)}function Nu(E){let z=(G.get(E)||0)-1;z<=0?(G.delete(E),F.add(E)):G.set(E,z),et({fetchers:new Map(M.fetchers)})}function tl(E,z){let U=ce.get(E);U&&(U.abort(z),ce.delete(E))}function Un(E,z){for(let U of E){let Y=z.get(U);De(Y,`Expected fetcher: ${U}`);let V=aa(Y.data);z.set(U,V)}}function ji(E){let z=[],U=!1;for(let Y of ot){let V=E.get(Y);De(V,`Expected fetcher: ${Y}`),V.state==="loading"&&(ot.delete(Y),z.push(Y),U=!0)}return Un(z,E),U}function Yi(E,z){let U=[];for(let[Y,V]of at)if(V<E){let ee=z.get(Y);De(ee,`Expected fetcher: ${Y}`),ee.state==="loading"&&(tl(Y),at.delete(Y),U.push(Y))}return Un(U,z),U.length>0}function Gt(E,z){let U=M.blockers.get(E)||pu;return P.get(E)!==z&&P.set(E,z),U}function qi(E){M.blockers.delete(E),P.delete(E)}function en(E,z){let U=M.blockers.get(E)||pu;De(U.state==="unblocked"&&z.state==="blocked"||U.state==="blocked"&&z.state==="blocked"||U.state==="blocked"&&z.state==="proceeding"||U.state==="blocked"&&z.state==="unblocked"||U.state==="proceeding"&&z.state==="unblocked",`Invalid blocker state transition: ${U.state} -> ${z.state}`);let Y=new Map(M.blockers);Y.set(E,z),et({blockers:Y})}function Uu({currentLocation:E,nextLocation:z,historyAction:U}){if(P.size===0)return;P.size>1&&mt(!1,"A router only supports one blocker at a time");let Y=Array.from(P.entries()),[V,ee]=Y[Y.length-1],I=M.blockers.get(V);if(!(I&&I.state==="proceeding")&&ee({currentLocation:E,nextLocation:z,historyAction:U}))return V}function Ta(E){let z=zl(404,{pathname:E}),U=y.activeRoutes,{matches:Y,route:V}=of(U);return{notFoundMatches:Y,route:V,error:z}}function Of(E,z,U){if(q=E,L=z,X=U||null,!te&&M.navigation===rs){te=!0;let Y=Gi(M.location,M.matches);Y!=null&&et({restoreScrollPosition:Y})}return()=>{q=null,L=null,X=null}}function wu(E,z){return X&&X(E,z.map(Y=>dS(Y,M.loaderData)))||E.key}function _f(E,z){if(q&&L){let U=wu(E,z);q[U]=L()}}function Gi(E,z){if(q){let U=wu(E,z),Y=q[U];if(typeof Y=="number")return Y}return null}function ql(E,z,U){if(i.patchRoutesOnNavigation){let Y=y.branches;if(E){if(Object.keys(E[0].params).length>0)return{active:!0,matches:xl(z,U,g,!0,Y)}}else return{active:!0,matches:xl(z,U,g,!0,Y)||[]}}return{active:!1,matches:null}}async function Rt(E,z,U,Y){if(!i.patchRoutesOnNavigation)return{type:"success",matches:E};let V=E;for(;;){let ee=m;try{await i.patchRoutesOnNavigation({signal:U,path:z,matches:V,fetcherKey:Y,patch:(ie,oe)=>{U.aborted||iy(ie,oe,y,ee,d,!1)}})}catch(ie){return{type:"error",error:ie,partialMatches:V}}if(U.aborted)return{type:"aborted"};let I=y.branches,he=xl(y.activeRoutes,z,g,!1,I),$=null;if(he){if(Object.keys(he[0].params).length===0)return{type:"success",matches:he};if($=xl(y.activeRoutes,z,g,!0,I),!($&&V.length<$.length&&Ml(V,$.slice(0,V.length))))return{type:"success",matches:he}}if($||($=xl(y.activeRoutes,z,g,!0,I)),!$||Ml(V,$))return{type:"success",matches:null};V=$}}function Ml(E,z){return E.length===z.length&&E.every((U,Y)=>U.route.id===z[Y].route.id)}function Vt(E){m={},y.setHmrRoutes(Ni(E,d,void 0,m))}function Df(E,z,U=!1){iy(E,z,y,m,d,U),y.hasHMRRoutes||et({})}return ue={get basename(){return g},get future(){return p},get state(){return M},get routes(){return y.stableRoutes},get branches(){return y.branches},get manifest(){return m},get window(){return r},initialize:Ye,subscribe:ve,enableScrollRestoration:Of,navigate:ua,fetch:Dn,revalidate:dl,createHref:E=>i.history.createHref(E),createURL:E=>i.history.createURL(E),encodeLocation:E=>i.history.encodeLocation(E),getFetcher:Au,resetFetcher:zf,deleteFetcher:Nu,dispose:ae,getBlocker:Gt,deleteBlocker:qi,patchRoutes:Df,_internalFetchControllers:ce,_internalSetRoutes:Vt,_internalSetStateDoNotUseOrYouWillBreakYourApp(E){et(E)}},i.instrumentations&&(ue=NS(ue,i.instrumentations.map(E=>E.router).filter(Boolean))),ue}function ZS(i){return i!=null&&("formData"in i&&i.formData!=null||"body"in i&&i.body!==void 0)}function ss(i,r,o,c,s,d){let m,y;if(s){m=[];for(let b of r)if(m.push(b),b.route.id===s){y=b;break}}else m=r,y=r[r.length-1];let g=wi(c||".",bf(m),Pt(i.pathname,o)||i.pathname,d==="path");if(c==null&&(g.search=i.search,g.hash=i.hash),(c==null||c===""||c===".")&&y){let b=Ts(g.search);if(y.route.index&&!b)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!y.route.index&&b){let p=new URLSearchParams(g.search),v=p.getAll("index");p.delete("index"),v.filter(x=>x).forEach(x=>p.append("index",x));let C=p.toString();g.search=C?`?${C}`:""}}return o!=="/"&&(g.pathname=zS({basename:o,pathname:g.pathname})),Jt(g)}function ny(i,r,o){if(!o||!ZS(o))return{path:r};if(o.formMethod&&!sE(o.formMethod))return{path:r,error:zl(405,{method:o.formMethod})};let c=()=>({path:r,error:zl(400,{type:"invalid-body"})}),d=(o.formMethod||"get").toUpperCase(),m=$y(r);if(o.body!==void 0){if(o.formEncType==="text/plain"){if(!qt(d))return c();let v=typeof o.body=="string"?o.body:o.body instanceof FormData||o.body instanceof URLSearchParams?Array.from(o.body.entries()).reduce((C,[x,q])=>`${C}${x}=${q}
|
|
59
59
|
`,""):String(o.body);return{path:r,submission:{formMethod:d,formAction:m,formEncType:o.formEncType,formData:void 0,json:void 0,text:v}}}else if(o.formEncType==="application/json"){if(!qt(d))return c();try{let v=typeof o.body=="string"?JSON.parse(o.body):o.body;return{path:r,submission:{formMethod:d,formAction:m,formEncType:o.formEncType,formData:void 0,json:v,text:void 0}}}catch{return c()}}}De(typeof FormData=="function","FormData is not available in this environment");let y,g;if(o.formData)y=ms(o.formData),g=o.formData;else if(o.body instanceof FormData)y=ms(o.body),g=o.body;else if(o.body instanceof URLSearchParams)y=o.body,g=sy(y);else if(o.body==null)y=new URLSearchParams,g=new FormData;else try{y=new URLSearchParams(o.body),g=sy(y)}catch{return c()}let b={formMethod:d,formAction:m,formEncType:o&&o.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(qt(b.formMethod))return{path:r,submission:b};let p=na(r);return i&&p.search&&Ts(p.search)&&y.append("index",""),p.search=`?${y}`,{path:Jt(p),submission:b}}function uy(i,r,o,c,s,d,m,y,g,b,p,v,C,x,q,X,L,te,J,se,pe,de){var Q;let Me=pe?ol(pe[1])?pe[1].error:pe[1].data:void 0,ue=s.createURL(d.location),M=s.createURL(g),ze;if(p&&d.errors){let K=Object.keys(d.errors)[0];ze=m.findIndex(W=>W.route.id===K)}else if(pe&&ol(pe[1])){let K=pe[0];ze=m.findIndex(W=>W.route.id===K)-1}let fe=pe?pe[1].statusCode:void 0,Je=fe&&fe>=400,Ee={currentUrl:ue,currentParams:((Q=d.matches[0])==null?void 0:Q.params)||{},nextUrl:M,nextParams:m[0].params,...y,actionResult:Me,actionStatus:fe},ut=xi(m),Ve=m.map((K,W)=>{let{route:ce}=K,ge=null;if(ze!=null&&W>ze)ge=!1;else if(ce.lazy)ge=!0;else if(!bs(ce))ge=!1;else if(p){let{shouldLoad:R}=Vy(ce,d.loaderData,d.errors);ge=R}else KS(d.loaderData,d.matches[W],K)&&(ge=!0);if(ge!==null)return ds(o,c,i,g,ut,K,b,r,ge);let Xe=!1;typeof de=="boolean"?Xe=de:Je?Xe=!1:(v||ue.pathname+ue.search===M.pathname+M.search||ue.search!==M.search||JS(d.matches[W],K))&&(Xe=!0);let at={...Ee,defaultShouldRevalidate:Xe},ot=Ci(K,at);return ds(o,c,i,g,ut,K,b,r,ot,at,de)}),Oe=[];return q.forEach((K,W)=>{if(p||!m.some(F=>F.route.id===K.routeId)||x.has(W))return;let ce=d.fetchers.get(W),ge=ce&&ce.state!=="idle"&&ce.data===void 0,Xe=xl(L,K.path,te??"/",!1,se);if(!Xe){if(J&&ge)return;Oe.push({key:W,routeId:K.routeId,path:K.path,matches:null,match:null,request:null,controller:null});return}if(X.has(W))return;let at=mf(Xe,K.path),ot=new AbortController,R=zu(s,K.path,ot.signal),G=null;if(C.has(W))C.delete(W),G=Du(o,c,R,K.path,Xe,at,b,r);else if(ge)v&&(G=Du(o,c,R,K.path,Xe,at,b,r));else{let F;typeof de=="boolean"?F=de:Je?F=!1:F=v;let P={...Ee,defaultShouldRevalidate:F};Ci(at,P)&&(G=Du(o,c,R,K.path,Xe,at,b,r,P))}G&&Oe.push({key:W,routeId:K.routeId,path:K.path,matches:G,match:at,request:R,controller:ot})}),{dsMatches:Ve,revalidatingFetchers:Oe}}function bs(i){return i.loader!=null||i.middleware!=null&&i.middleware.length>0}function Vy(i,r,o){if(i.lazy)return{shouldLoad:!0,renderFallback:!0};if(!bs(i))return{shouldLoad:!1,renderFallback:!1};let c=r!=null&&i.id in r,s=o!=null&&o[i.id]!==void 0;if(!c&&s)return{shouldLoad:!1,renderFallback:!1};if(typeof i.loader=="function"&&i.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!c};let d=!c&&!s;return{shouldLoad:d,renderFallback:d}}function KS(i,r,o){let c=!r||o.route.id!==r.route.id,s=!i.hasOwnProperty(o.route.id);return c||s}function JS(i,r){let o=i.route.path;return i.pathname!==r.pathname||o!=null&&o.endsWith("*")&&i.params["*"]!==r.params["*"]}function Ci(i,r){if(i.route.shouldRevalidate){let o=i.route.shouldRevalidate(r);if(typeof o=="boolean")return o}return r.defaultShouldRevalidate}function iy(i,r,o,c,s,d){let m;if(i){let b=c[i];De(b,`No route found to patch children into: routeId = ${i}`),b.children||(b.children=[]),m=b.children}else m=o.activeRoutes;let y=[],g=[];if(r.forEach(b=>{let p=m.find(v=>Xy(b,v));p?g.push({existingRoute:p,newRoute:b}):y.push(b)}),y.length>0){let b=Ni(y,s,[i||"_","patch",String((m==null?void 0:m.length)||"0")],c);m.push(...b)}if(d&&g.length>0)for(let b=0;b<g.length;b++){let{existingRoute:p,newRoute:v}=g[b],C=p,[x]=Ni([v],s,[],{},!0);Object.assign(C,{element:x.element?x.element:C.element,errorElement:x.errorElement?x.errorElement:C.errorElement,hydrateFallbackElement:x.hydrateFallbackElement?x.hydrateFallbackElement:C.hydrateFallbackElement})}o.hasHMRRoutes||o.setRoutes([...o.activeRoutes])}function Xy(i,r){var o;return"id"in i&&"id"in r&&i.id===r.id?!0:i.index===r.index&&i.path===r.path&&i.caseSensitive===r.caseSensitive?(!i.children||i.children.length===0)&&(!r.children||r.children.length===0)?!0:((o=i.children)==null?void 0:o.every((c,s)=>{var d;return(d=r.children)==null?void 0:d.some(m=>Xy(c,m))}))??!1:!1}var ry=new WeakMap,Qy=({key:i,route:r,manifest:o,mapRouteProperties:c})=>{let s=o[r.id];if(De(s,"No route found in manifest"),!s.lazy||typeof s.lazy!="object")return;let d=s.lazy[i];if(!d)return;let m=ry.get(s);m||(m={},ry.set(s,m));let y=m[i];if(y)return y;let g=(async()=>{let b=fS(i),v=s[i]!==void 0&&i!=="hasErrorBoundary";if(b)mt(!b,"Route property "+i+" is not a supported lazy route property. This property will be ignored."),m[i]=Promise.resolve();else if(v)mt(!1,`Route "${s.id}" has a static property "${i}" defined. The lazy property will be ignored.`);else{let C=await d();C!=null&&(Object.assign(s,{[i]:C}),Object.assign(s,c(s)))}typeof s.lazy=="object"&&(s.lazy[i]=void 0,Object.values(s.lazy).every(C=>C===void 0)&&(s.lazy=void 0))})();return m[i]=g,g},fy=new WeakMap;function FS(i,r,o,c,s){let d=o[i.id];if(De(d,"No route found in manifest"),!i.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof i.lazy=="function"){let p=fy.get(d);if(p)return{lazyRoutePromise:p,lazyHandlerPromise:p};let v=(async()=>{De(typeof i.lazy=="function","No lazy route function found");let C=await i.lazy(),x={};for(let q in C){let X=C[q];if(X===void 0)continue;let L=oS(q),J=d[q]!==void 0&&q!=="hasErrorBoundary";L?mt(!L,"Route property "+q+" is not a supported property to be returned from a lazy route function. This property will be ignored."):J?mt(!J,`Route "${d.id}" has a static property "${q}" defined but its lazy function is also returning a value for this property. The lazy route property "${q}" will be ignored.`):x[q]=X}Object.assign(d,x),Object.assign(d,{...c(d),lazy:void 0})})();return fy.set(d,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let m=Object.keys(i.lazy),y=[],g;for(let p of m){if(s&&s.includes(p))continue;let v=Qy({key:p,route:i,manifest:o,mapRouteProperties:c});v&&(y.push(v),p===r&&(g=v))}let b=y.length>0?Promise.all(y).then(()=>{}):void 0;return b==null||b.catch(()=>{}),g==null||g.catch(()=>{}),{lazyRoutePromise:b,lazyHandlerPromise:g}}async function cy(i){let r=i.matches.filter(s=>s.shouldLoad),o={};return(await Promise.all(r.map(s=>s.resolve()))).forEach((s,d)=>{o[r[d].route.id]=s}),o}async function $S(i){return i.matches.some(r=>r.route.middleware)?Zy(i,()=>cy(i)):cy(i)}function Zy(i,r){return WS(i,r,c=>{if(oE(c))throw c;return c},iE,o);function o(c,s,d){if(d)return Promise.resolve(Object.assign(d.value,{[s]:{type:"error",result:c}}));{let{matches:m}=i,y=Math.min(Math.max(m.findIndex(b=>b.route.id===s),0),Math.max(m.findIndex(b=>b.shouldCallHandler()),0)),g=Ia(m,m[y].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:c}})}}}async function WS(i,r,o,c,s){let{matches:d,...m}=i,y=d.flatMap(b=>b.route.middleware?b.route.middleware.map(p=>[b.route.id,p]):[]);return await Ky(m,y,r,o,c,s)}async function Ky(i,r,o,c,s,d,m=0){let{request:y}=i;if(y.signal.aborted)throw y.signal.reason??new Error(`Request aborted: ${y.method} ${y.url}`);let g=r[m];if(!g)return await o();let[b,p]=g,v,C=async()=>{if(v)throw new Error("You may only call `next()` once per middleware");try{return v={value:await Ky(i,r,o,c,s,d,m+1)},v.value}catch(x){return v={value:await d(x,b,v)},v.value}};try{let x=await p(i,C),q=x!=null?c(x):void 0;return s(q)?q:v?q??v.value:(v={value:await C()},v.value)}catch(x){return await d(x,b,v)}}function Jy(i,r,o,c,s){let d=Qy({key:"middleware",route:c.route,manifest:r,mapRouteProperties:i}),m=FS(c.route,qt(o.method)?"action":"loader",r,i,s);return{middleware:d,route:m.lazyRoutePromise,handler:m.lazyHandlerPromise}}function ds(i,r,o,c,s,d,m,y,g,b=null,p){let v=!1,C=Jy(i,r,o,d,m);return{...d,_lazyPromises:C,shouldLoad:g,shouldRevalidateArgs:b,shouldCallHandler(x){return v=!0,b?typeof p=="boolean"?Ci(d,{...b,defaultShouldRevalidate:p}):typeof x=="boolean"?Ci(d,{...b,defaultShouldRevalidate:x}):Ci(d,b):g},resolve(x){let{lazy:q,loader:X,middleware:L}=d.route,te=v||g||x&&!qt(o.method)&&(q||X),J=L&&L.length>0&&!X&&!q;return te&&(qt(o.method)||!J)?IS({request:o,path:c,pattern:s,match:d,lazyHandlerPromise:C==null?void 0:C.handler,lazyRoutePromise:C==null?void 0:C.route,handlerOverride:x,scopedContext:y}):Promise.resolve({type:"data",result:void 0})}}}function Du(i,r,o,c,s,d,m,y,g=null){return s.map(b=>b.route.id!==d.route.id?{...b,shouldLoad:!1,shouldRevalidateArgs:g,shouldCallHandler:()=>!1,_lazyPromises:Jy(i,r,o,b,m),resolve:()=>Promise.resolve({type:"data",result:void 0})}:ds(i,r,o,c,xi(s),b,m,y,!0,g))}async function kS(i,r,o,c,s,d,m){c.some(p=>{var v;return(v=p._lazyPromises)==null?void 0:v.middleware})&&await Promise.all(c.map(p=>{var v;return(v=p._lazyPromises)==null?void 0:v.middleware}));let y={request:r,url:Fy(r,o),pattern:xi(c),params:c[0].params,context:d,matches:c},b=await i({...y,fetcherKey:s,runClientMiddleware:p=>{let v=y;return Zy(v,()=>p({...v,fetcherKey:s,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(c.flatMap(p=>{var v,C;return[(v=p._lazyPromises)==null?void 0:v.handler,(C=p._lazyPromises)==null?void 0:C.route]}))}catch{}return b}async function IS({request:i,path:r,pattern:o,match:c,lazyHandlerPromise:s,lazyRoutePromise:d,handlerOverride:m,scopedContext:y}){let g,b,p=qt(i.method),v=p?"action":"loader",C=x=>{let q,X=new Promise((J,se)=>q=se);b=()=>q(),i.signal.addEventListener("abort",b);let L=J=>typeof x!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${v}" [routeId: ${c.route.id}]`)):x({request:i,url:Fy(i,r),pattern:o,params:c.params,context:y},...J!==void 0?[J]:[]),te=(async()=>{try{return{type:"data",result:await(m?m(se=>L(se)):L())}}catch(J){return{type:"error",result:J}}})();return Promise.race([te,X])};try{let x=p?c.route.action:c.route.loader;if(s||d)if(x){let q,[X]=await Promise.all([C(x).catch(L=>{q=L}),s,d]);if(q!==void 0)throw q;g=X}else{await s;let q=p?c.route.action:c.route.loader;if(q)[g]=await Promise.all([C(q),d]);else if(v==="action"){let X=new URL(i.url),L=X.pathname+X.search;throw zl(405,{method:i.method,pathname:L,routeId:c.route.id})}else return{type:"data",result:void 0}}else if(x)g=await C(x);else{let q=new URL(i.url),X=q.pathname+q.search;throw zl(404,{pathname:X})}}catch(x){return{type:"error",result:x}}finally{b&&i.signal.removeEventListener("abort",b)}return g}async function PS(i){let r=i.headers.get("Content-Type");return r&&/\bapplication\/json\b/.test(r)?i.body==null?null:i.json():i.text()}async function eE(i){var c,s,d,m,y;let{result:r,type:o}=i;if(ps(r)){let g;try{g=await PS(r)}catch(b){return{type:"error",error:b}}return o==="error"?{type:"error",error:new Hi(r.status,r.statusText,g),statusCode:r.status,headers:r.headers}:{type:"data",data:g,statusCode:r.status,headers:r.headers}}return o==="error"?vy(r)?r.data instanceof Error?{type:"error",error:r.data,statusCode:(c=r.init)==null?void 0:c.status,headers:(s=r.init)!=null&&s.headers?new Headers(r.init.headers):void 0}:{type:"error",error:uE(r),statusCode:Ui(r)?r.status:void 0,headers:(d=r.init)!=null&&d.headers?new Headers(r.init.headers):void 0}:{type:"error",error:r,statusCode:Ui(r)?r.status:void 0}:vy(r)?{type:"data",data:r.data,statusCode:(m=r.init)==null?void 0:m.status,headers:(y=r.init)!=null&&y.headers?new Headers(r.init.headers):void 0}:{type:"data",data:r}}function tE(i,r,o,c,s){let d=i.headers.get("Location");if(De(d,"Redirects returned/thrown from loaders/actions must have a Location header"),!gs(d)){let m=c.slice(0,c.findIndex(y=>y.route.id===o)+1);d=ss(new URL(r.url),m,s,d),i.headers.set("Location",d)}return i}var lE=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function hs(i){try{return lE.includes(new URL(i).protocol)}catch{return!1}}function oy(i,r,o,c){if(gs(i)){let s=i,d=Ef.test(s)?new URL(Dy(s,r.protocol)):new URL(s);if(hs(d.toString()))throw new Error("Invalid redirect location");let m=Pt(d.pathname,o)!=null;if(d.origin===r.origin&&m)return Ss(d.pathname)+d.search+d.hash}try{let s=c.createURL(i);if(hs(s.toString()))throw new Error("Invalid redirect location")}catch{}return i}function zu(i,r,o,c){let s=i.createURL($y(r)).toString(),d={signal:o};if(c&&qt(c.formMethod)){let{formMethod:m,formEncType:y}=c;d.method=m.toUpperCase(),y==="application/json"?(d.headers=new Headers({"Content-Type":y}),d.body=JSON.stringify(c.json)):y==="text/plain"?d.body=c.text:y==="application/x-www-form-urlencoded"&&c.formData?d.body=ms(c.formData):d.body=c.formData}return new Request(s,d)}function Fy(i,r){let o=new URL(i.url),c=typeof r=="string"?na(r):r;if(o.pathname=c.pathname||"/",c.search){let s=new URLSearchParams(c.search),d=s.getAll("index");s.delete("index");for(let m of d.filter(Boolean))s.append("index",m);o.search=s.size?`?${s.toString()}`:""}else o.search="";return o.hash=c.hash||"",o}function ms(i){let r=new URLSearchParams;for(let[o,c]of i.entries())r.append(o,typeof c=="string"?c:c.name);return r}function sy(i){let r=new FormData;for(let[o,c]of i.entries())r.append(o,c);return r}function aE(i,r,o,c=!1,s=!1){let d={},m=null,y,g=!1,b={},p=o&&ol(o[1])?o[1].error:void 0;return i.forEach(v=>{if(!(v.route.id in r))return;let C=v.route.id,x=r[C];if(De(!On(x),"Cannot handle redirect results in processLoaderData"),ol(x)){let q=x.error;if(p!==void 0&&(q=p,p=void 0),m=m||{},s)m[C]=q;else{let X=Ia(i,C);m[X.route.id]==null&&(m[X.route.id]=q)}c||(d[C]=Gy),g||(g=!0,y=Ui(x.error)?x.error.status:500),x.headers&&(b[C]=x.headers)}else d[C]=x.data,x.statusCode&&x.statusCode!==200&&!g&&(y=x.statusCode),x.headers&&(b[C]=x.headers)}),p!==void 0&&o&&(m={[o[0]]:p},o[2]&&(d[o[2]]=void 0)),{loaderData:d,errors:m,statusCode:y||200,loaderHeaders:b}}function dy(i,r,o,c,s,d,m){let{loaderData:y,errors:g}=aE(r,o,c);return s.filter(b=>!b.matches||b.matches.some(p=>p.shouldLoad)).forEach(b=>{let{key:p,match:v,controller:C}=b;if(C&&C.signal.aborted)return;let x=d[p];if(De(x,"Did not find corresponding fetcher result"),ol(x)){let q=Ia(i.matches,v==null?void 0:v.route.id);g&&g[q.route.id]||(g={...g,[q.route.id]:x.error}),m.delete(p)}else if(On(x))De(!1,"Unhandled fetcher revalidation redirect");else{let q=aa(x.data);m.set(p,q)}}),{loaderData:y,errors:g}}function hy(i,r,o,c){let s=Object.entries(r).filter(([,d])=>d!==Gy).reduce((d,[m,y])=>(d[m]=y,d),{});for(let d of o){let m=d.route.id;if(!r.hasOwnProperty(m)&&i.hasOwnProperty(m)&&d.route.loader&&(s[m]=i[m]),c&&c.hasOwnProperty(m))break}return s}function my(i){return i?ol(i[1])?{actionData:{}}:{actionData:{[i[0]]:i[1].data}}:{}}function Ia(i,r){return(r?i.slice(0,i.findIndex(c=>c.route.id===r)+1):[...i]).reverse().find(c=>c.route.hasErrorBoundary===!0)||i[0]}function of(i){let r=i.length===1?i[0]:i.find(o=>o.index||!o.path||o.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:r}],route:r}}function zl(i,{pathname:r,routeId:o,method:c,type:s,message:d}={}){let m="Unknown Server Error",y="Unknown @remix-run/router error";return i===400?(m="Bad Request",c&&r&&o?y=`You made a ${c} request to "${r}" but did not provide a \`loader\` for route "${o}", so there is no way to handle the request.`:s==="invalid-body"&&(y="Unable to encode submission body")):i===403?(m="Forbidden",y=`Route "${o}" does not match URL "${r}"`):i===404?(m="Not Found",y=`No route matches URL "${r}"`):i===405&&(m="Method Not Allowed",c&&r&&o?y=`You made a ${c.toUpperCase()} request to "${r}" but did not provide an \`action\` for route "${o}", so there is no way to handle the request.`:c&&(y=`Invalid request method "${c.toUpperCase()}"`)),new Hi(i||500,m,new Error(y),!0)}function sf(i){let r=Object.entries(i);for(let o=r.length-1;o>=0;o--){let[c,s]=r[o];if(On(s))return{key:c,result:s}}}function $y(i){let r=typeof i=="string"?na(i):i;return Jt({...r,hash:""})}function nE(i,r){return i.pathname!==r.pathname||i.search!==r.search?!1:i.hash===""?r.hash!=="":i.hash===r.hash?!0:r.hash!==""}function uE(i){var r,o;return new Hi(((r=i.init)==null?void 0:r.status)??500,((o=i.init)==null?void 0:o.statusText)??"Internal Server Error",i.data)}function iE(i){return i!=null&&typeof i=="object"&&Object.entries(i).every(([r,o])=>typeof r=="string"&&rE(o))}function rE(i){return i!=null&&typeof i=="object"&&"type"in i&&"result"in i&&(i.type==="data"||i.type==="error")}function fE(i){return ps(i.result)&&Yy.has(i.result.status)}function ol(i){return i.type==="error"}function On(i){return(i&&i.type)==="redirect"}function vy(i){return typeof i=="object"&&i!=null&&"type"in i&&"data"in i&&"init"in i&&i.type==="DataWithResponseInit"}function ps(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.headers=="object"&&typeof i.body<"u"}function cE(i){return Yy.has(i)}function oE(i){return ps(i)&&cE(i.status)&&i.headers.has("Location")}function sE(i){return YS.has(i.toUpperCase())}function qt(i){return BS.has(i.toUpperCase())}function Ts(i){return new URLSearchParams(i).getAll("index").some(r=>r==="")}function mf(i,r){let o=typeof r=="string"?na(r).search:r.search;if(i[i.length-1].route.index&&Ts(o||""))return i[i.length-1];let c=Hy(i);return c[c.length-1]}function yy(i){let{formMethod:r,formAction:o,formEncType:c,text:s,formData:d,json:m}=i;if(!(!r||!o||!c)){if(s!=null)return{formMethod:r,formAction:o,formEncType:c,formData:void 0,json:void 0,text:s};if(d!=null)return{formMethod:r,formAction:o,formEncType:c,formData:d,json:void 0,text:void 0};if(m!==void 0)return{formMethod:r,formAction:o,formEncType:c,formData:void 0,json:m,text:void 0}}}function fs(i,r,o,c){return c?{state:"loading",location:i,matches:r,historyAction:o,formMethod:c.formMethod,formAction:c.formAction,formEncType:c.formEncType,formData:c.formData,json:c.json,text:c.text}:{state:"loading",location:i,matches:r,historyAction:o,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function dE(i,r,o,c){return{state:"submitting",location:i,matches:r,historyAction:o,formMethod:c.formMethod,formAction:c.formAction,formEncType:c.formEncType,formData:c.formData,json:c.json,text:c.text}}function Oi(i,r){return i?{state:"loading",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:r}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:r}}function hE(i,r){return{state:"submitting",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:r?r.data:void 0}}function aa(i){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i}}function mE(i,r){try{let o=i.sessionStorage.getItem(qy);if(o){let c=JSON.parse(o);for(let[s,d]of Object.entries(c||{}))d&&Array.isArray(d)&&r.set(s,new Set(d||[]))}}catch{}}function vE(i,r){if(r.size>0){let o={};for(let[c,s]of r)o[c]=[...s];try{i.sessionStorage.setItem(qy,JSON.stringify(o))}catch(c){mt(!1,`Failed to save applied view transitions in sessionStorage (${c}).`)}}}function gy(){let i,r,o=new Promise((c,s)=>{i=async d=>{c(d);try{await o}catch{}},r=async d=>{s(d);try{await o}catch{}}});return{promise:o,resolve:i,reject:r}}var _n=w.createContext(null);_n.displayName="DataRouter";var Li=w.createContext(null);Li.displayName="DataRouterState";var Wy=w.createContext(!1);function ky(){return w.useContext(Wy)}var Rs=w.createContext({isTransitioning:!1});Rs.displayName="ViewTransition";var Iy=w.createContext(new Map);Iy.displayName="Fetchers";var yE=w.createContext(null);yE.displayName="Await";var sl=w.createContext(null);sl.displayName="Navigation";var pf=w.createContext(null);pf.displayName="Location";var _l=w.createContext({outlet:null,matches:[],isDataRoute:!1});_l.displayName="Route";var zs=w.createContext(null);zs.displayName="RouteError";var Py="REACT_ROUTER_ERROR",gE="REDIRECT",SE="ROUTE_ERROR_RESPONSE";function EE(i){if(i.startsWith(`${Py}:${gE}:{`))try{let r=JSON.parse(i.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function bE(i){if(i.startsWith(`${Py}:${SE}:{`))try{let r=JSON.parse(i.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new Hi(r.status,r.statusText,r.data)}catch{}}function pE(i,{relative:r}={}){De(Cu(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:c}=w.useContext(sl),{hash:s,pathname:d,search:m}=Bi(i,{relative:r}),y=d;return o!=="/"&&(y=d==="/"?o:Ol([o,d])),c.createHref({pathname:y,search:m,hash:s})}function Cu(){return w.useContext(pf)!=null}function Ll(){return De(Cu(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(pf).location}var e0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function t0(i){w.useContext(sl).static||w.useLayoutEffect(i)}function Os(){let{isDataRoute:i}=w.useContext(_l);return i?HE():TE()}function TE(){De(Cu(),"useNavigate() may be used only in the context of a <Router> component.");let i=w.useContext(_n),{basename:r,navigator:o}=w.useContext(sl),{matches:c}=w.useContext(_l),{pathname:s}=Ll(),d=JSON.stringify(bf(c)),m=w.useRef(!1);return t0(()=>{m.current=!0}),w.useCallback((g,b={})=>{if(mt(m.current,e0),!m.current)return;if(typeof g=="number"){o.go(g);return}let p=wi(g,JSON.parse(d),s,b.relative==="path");i==null&&r!=="/"&&(p.pathname=p.pathname==="/"?r:Ol([r,p.pathname])),_u(typeof g=="string"?g:Jt(g),o.createHref(p),Es(o),"reject"),(b.replace?o.replace:o.push)(p,b.state,b)},[r,o,d,s,i])}var l0=w.createContext(null);function Ab(){return w.useContext(l0)}function RE(i){let r=w.useContext(_l).outlet;return w.useMemo(()=>r&&w.createElement(l0.Provider,{value:i},r),[r,i])}function Nb(){let{matches:i}=w.useContext(_l),r=i[i.length-1];return(r==null?void 0:r.params)??{}}function Bi(i,{relative:r}={}){let{matches:o}=w.useContext(_l),{pathname:c}=Ll(),s=JSON.stringify(bf(o));return w.useMemo(()=>wi(i,JSON.parse(s),c,r==="path"),[i,s,c,r])}function zE(i,r,o){De(Cu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=w.useContext(sl),{matches:s}=w.useContext(_l),d=s[s.length-1],m=d?d.params:{},y=d?d.pathname:"/",g=d?d.pathnameBase:"/",b=d&&d.route;{let L=b&&b.path||"";i0(y,!b||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${L}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
60
60
|
|
|
61
|
-
Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let p=Ll(),v;v=p;let C=v.pathname||"/",x=C;if(g!=="/"){let L=g.replace(/^\//,"").split("/");x="/"+C.replace(/^\//,"").split("/").slice(L.length).join("/")}let q=o&&o.state.matches.length?o.state.matches.map(L=>Object.assign(L,{route:o.manifest[L.route.id]||L.route})):Cy(i,{pathname:x});return mt(b||q!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),mt(q==null||q[q.length-1].route.element!==void 0||q[q.length-1].route.Component!==void 0||q[q.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),CE(q&&q.map(L=>Object.assign({},L,{params:Object.assign({},m,L.params),pathname:Ol([g,c.encodeLocation?c.encodeLocation(L.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?g:Ol([g,c.encodeLocation?c.encodeLocation(L.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),s,o)}function OE(){let i=UE(),r=Ui(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,c="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:c},d={padding:"2px 4px",backgroundColor:c},m=null;return console.error("Error handled by React Router default ErrorBoundary:",i),m=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:d},"ErrorBoundary")," or"," ",w.createElement("code",{style:d},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},r),o?w.createElement("pre",{style:s},o):null,m)}var _E=w.createElement(OE,null),a0=class extends w.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,r){return r.location!==i.location||r.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:r.error,location:r.location,revalidation:i.revalidation||r.revalidation}}componentDidCatch(i,r){this.props.onError?this.props.onError(i,r):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const o=bE(i.digest);o&&(i=o)}let r=i!==void 0?w.createElement(_l.Provider,{value:this.props.routeContext},w.createElement(zs.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?w.createElement(DE,{error:i},r):r}};a0.contextType=Wy;var cs=new WeakMap;function DE({children:i,error:r}){let{basename:o,navigator:c}=w.useContext(sl);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let s=EE(r.digest);if(s){let d=cs.get(r);if(d)throw d;let m=Ly(s.location,o),y=m.absoluteURL||m.to;if(_u(s.location,y,Es(c),"allow-explicit"),hs(y))throw new Error("Invalid redirect location");if(xy&&!cs.get(r))if(m.isExternal||s.reloadDocument)window.location.href=y;else{const g=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:s.replace}));throw cs.set(r,g),g}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${y}`})}}return i}function ME({routeContext:i,match:r,children:o}){let c=w.useContext(_n);return c&&c.static&&c.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(_l.Provider,{value:i},o)}function CE(i,r=[],o){let c=o==null?void 0:o.state;if(i==null){if(!c)return null;if(c.errors)i=c.matches;else if(r.length===0&&!c.initialized&&c.matches.length>0)i=c.matches;else return null}let s=i,d=c==null?void 0:c.errors;if(d!=null){let p=s.findIndex(v=>v.route.id&&(d==null?void 0:d[v.route.id])!==void 0);De(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let m=!1,y=-1;if(o&&c){m=c.renderFallback;for(let p=0;p<s.length;p++){let v=s[p];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(y=p),v.route.id){let{loaderData:C,errors:x}=c,q=v.route.loader&&!C.hasOwnProperty(v.route.id)&&(!x||x[v.route.id]===void 0);if(v.route.lazy||q){o.isStatic&&(m=!0),y>=0?s=s.slice(0,y+1):s=[s[0]];break}}}}let g=o==null?void 0:o.onError,b=c&&g?(p,v)=>{var C,x;g(p,{location:c.location,params:((x=(C=c.matches)==null?void 0:C[0])==null?void 0:x.params)??{},pattern:xi(c.matches),errorInfo:v})}:void 0;return s.reduceRight((p,v,C)=>{let x,q=!1,X=null,L=null;c&&(x=d&&v.route.id?d[v.route.id]:void 0,X=v.route.errorElement||_E,m&&(y<0&&C===0?(i0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),q=!0,L=null):y===C&&(q=!0,L=v.route.hydrateFallbackElement||null)));let te=r.concat(s.slice(0,C+1)),J=()=>{let se;return x?se=X:q?se=L:v.route.Component?se=w.createElement(v.route.Component,null):v.route.element?se=v.route.element:se=p,w.createElement(ME,{match:v,routeContext:{outlet:p,matches:te,isDataRoute:c!=null},children:se})};return c&&(v.route.ErrorBoundary||v.route.errorElement||C===0)?w.createElement(a0,{location:c.location,revalidation:c.revalidation,component:X,error:x,children:J(),routeContext:{outlet:null,matches:te,isDataRoute:!0},onError:b}):J()},null)}function _s(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n0(i){let r=w.useContext(_n);return De(r,_s(i)),r}function u0(i){let r=w.useContext(Li);return De(r,_s(i)),r}function AE(i){let r=w.useContext(_l);return De(r,_s(i)),r}function Ds(i){let r=AE(i),o=r.matches[r.matches.length-1];return De(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function NE(){return Ds("useRouteId")}function UE(){var c;let i=w.useContext(zs),r=u0("useRouteError"),o=Ds("useRouteError");return i!==void 0?i:(c=r.errors)==null?void 0:c[o]}var wE=0;function Ub(i){let{router:r,basename:o}=n0("useBlocker"),c=u0("useBlocker"),[s,d]=w.useState(""),m=w.useCallback(y=>{if(typeof i!="function")return!!i;if(o==="/")return i(y);let{currentLocation:g,nextLocation:b,historyAction:p}=y;return i({currentLocation:{...g,pathname:Pt(g.pathname,o)||g.pathname},nextLocation:{...b,pathname:Pt(b.pathname,o)||b.pathname},historyAction:p})},[o,i]);return w.useEffect(()=>{let y=String(++wE);return d(y),()=>r.deleteBlocker(y)},[r]),w.useEffect(()=>{s!==""&&r.getBlocker(s,m)},[r,s,m]),s&&c.blockers.has(s)?c.blockers.get(s):pu}function HE(){let{router:i}=n0("useNavigate"),r=Ds("useNavigate"),o=w.useRef(!1);return t0(()=>{o.current=!0}),w.useCallback(async(s,d={})=>{mt(o.current,e0),o.current&&(typeof s=="number"?await i.navigate(s):await i.navigate(s,{fromRouteId:r,...d}))},[i,r])}var Sy={};function i0(i,r,o){!r&&!Sy[i]&&(Sy[i]=!0,mt(!1,o))}var Ey={};function by(i,r){!i&&!Ey[r]&&(Ey[r]=!0,console.warn(r))}var xE="useOptimistic",py=I1[xE],LE=()=>{};function BE(i){return py?py(i):[i,LE]}function jE(i){let r={hasErrorBoundary:i.hasErrorBoundary||i.ErrorBoundary!=null||i.errorElement!=null};return i.Component&&(i.element&&mt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(r,{element:w.createElement(i.Component),Component:void 0})),i.HydrateFallback&&(i.hydrateFallbackElement&&mt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(r,{hydrateFallbackElement:w.createElement(i.HydrateFallback),HydrateFallback:void 0})),i.ErrorBoundary&&(i.errorElement&&mt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(r,{errorElement:w.createElement(i.ErrorBoundary),ErrorBoundary:void 0})),r}var YE=["HydrateFallback","hydrateFallbackElement"],qE=class{constructor(){this.status="pending",this.promise=new Promise((i,r)=>{this.resolve=o=>{this.status==="pending"&&(this.status="resolved",i(o))},this.reject=o=>{this.status==="pending"&&(this.status="rejected",r(o))}})}};function GE({router:i,flushSync:r,onError:o,useTransitions:c}){c=ky()||c;let[d,m]=w.useState(i.state),[y,g]=BE(d),[b,p]=w.useState(),[v,C]=w.useState({isTransitioning:!1}),[x,q]=w.useState(),[X,L]=w.useState(),[te,J]=w.useState(),se=w.useRef(new Map),pe=w.useCallback((M,{deletedFetchers:ze,newErrors:fe,flushSync:Je,viewTransitionOpts:Ee})=>{fe&&o&&Object.values(fe).forEach(Ve=>{var Oe;return o(Ve,{location:M.location,params:((Oe=M.matches[0])==null?void 0:Oe.params)??{},pattern:xi(M.matches)})}),M.fetchers.forEach((Ve,Oe)=>{Ve.data!==void 0&&se.current.set(Oe,Ve.data)}),ze.forEach(Ve=>se.current.delete(Ve)),by(Je===!1||r!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let ut=i.window!=null&&i.window.document!=null&&typeof i.window.document.startViewTransition=="function";if(by(Ee==null||ut,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!Ee||!ut){r&&Je?r(()=>m(M)):c===!1?m(M):w.startTransition(()=>{c===!0&&g(Ve=>Ty(Ve,M)),m(M)});return}if(r&&Je){r(()=>{X&&(x==null||x.resolve(),X.skipTransition()),C({isTransitioning:!0,flushSync:!0,currentLocation:Ee.currentLocation,nextLocation:Ee.nextLocation})});let Ve=i.window.document.startViewTransition(()=>{r(()=>m(M))});Ve.finished.finally(()=>{r(()=>{q(void 0),L(void 0),p(void 0),C({isTransitioning:!1})})}),r(()=>L(Ve));return}X?(x==null||x.resolve(),X.skipTransition(),J({state:M,currentLocation:Ee.currentLocation,nextLocation:Ee.nextLocation})):(p(M),C({isTransitioning:!0,flushSync:!1,currentLocation:Ee.currentLocation,nextLocation:Ee.nextLocation}))},[i.window,r,X,x,c,g,o]);w.useLayoutEffect(()=>i.subscribe(pe),[i,pe]),w.useEffect(()=>{v.isTransitioning&&!v.flushSync&&q(new qE)},[v]),w.useEffect(()=>{if(x&&b&&i.window){let M=b,ze=x.promise,fe=i.window.document.startViewTransition(async()=>{c===!1?m(M):w.startTransition(()=>{c===!0&&g(Je=>Ty(Je,M)),m(M)}),await ze});fe.finished.finally(()=>{q(void 0),L(void 0),p(void 0),C({isTransitioning:!1})}),L(fe)}},[b,x,i.window,c,g]),w.useEffect(()=>{x&&b&&y.location.key===b.location.key&&x.resolve()},[x,X,y.location,b]),w.useEffect(()=>{!v.isTransitioning&&te&&(p(te.state),C({isTransitioning:!0,flushSync:!1,currentLocation:te.currentLocation,nextLocation:te.nextLocation}),J(void 0))},[v.isTransitioning,te]);let de=w.useMemo(()=>({createHref:i.createHref,createURL:i.createURL,encodeLocation:i.encodeLocation,go:M=>i.navigate(M),push:(M,ze,fe)=>i.navigate(M,{state:ze,preventScrollReset:fe==null?void 0:fe.preventScrollReset}),replace:(M,ze,fe)=>i.navigate(M,{replace:!0,state:ze,preventScrollReset:fe==null?void 0:fe.preventScrollReset})}),[i]),Me=i.basename||"/",ue=w.useMemo(()=>({router:i,navigator:de,static:!1,basename:Me,onError:o}),[i,de,Me,o]);return w.createElement(w.Fragment,null,w.createElement(_n.Provider,{value:ue},w.createElement(Li.Provider,{value:y},w.createElement(Iy.Provider,{value:se.current},w.createElement(Rs.Provider,{value:v},w.createElement(QE,{basename:Me,location:y.location,navigationType:y.historyAction,navigator:de,useTransitions:c},w.createElement(VE,{routes:i.routes,manifest:i.manifest,future:i.future,state:y,isStatic:!1,onError:o})))))),null)}function Ty(i,r){return{...i,navigation:r.navigation.state!=="idle"?r.navigation:i.navigation,revalidation:r.revalidation!=="idle"?r.revalidation:i.revalidation,actionData:r.navigation.state!=="submitting"?r.actionData:i.actionData,fetchers:r.fetchers}}var VE=w.memo(XE);function XE({routes:i,manifest:r,future:o,state:c,isStatic:s,onError:d}){return zE(i,void 0,{manifest:r,state:c,isStatic:s,onError:d})}function wb({to:i,replace:r,state:o,relative:c}){De(Cu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s,navigator:d}=w.useContext(sl);mt(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=w.useContext(_l),{pathname:y}=Ll(),g=Os(),b=wi(i,bf(m),y,c==="path");_u(typeof i=="string"?i:Jt(i),d.createHref(b),Es(d),"reject");let p=JSON.stringify(b);return w.useEffect(()=>{g(JSON.parse(p),{replace:r,state:o,relative:c})},[g,p,c,r,o]),null}function Hb(i){return RE(i.context)}function QE({basename:i="/",children:r=null,location:o,navigationType:c="POP",navigator:s,static:d=!1,useTransitions:m}){De(!Cu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let y=i.replace(/^\/*/,"/"),g=w.useMemo(()=>({basename:y,navigator:s,static:d,useTransitions:m,future:{}}),[y,s,d,m]);typeof o=="string"&&(o=na(o));let{pathname:b="/",search:p="",hash:v="",state:C=null,key:x="default",mask:q}=o,X=w.useMemo(()=>{let L=Pt(b,y);return L==null?null:{location:{pathname:L,search:p,hash:v,state:C,key:x,mask:q},navigationType:c}},[y,b,p,v,C,x,c,q]);return mt(X!=null,`<Router basename="${y}"> is not able to match the URL "${b}${p}${v}" because it does not start with the basename, so the <Router> won't render anything.`),X==null?null:w.createElement(sl.Provider,{value:g},w.createElement(pf.Provider,{children:r,value:X}))}var vf="get",yf="application/x-www-form-urlencoded";function Tf(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function ZE(i){return Tf(i)&&i.tagName.toLowerCase()==="button"}function KE(i){return Tf(i)&&i.tagName.toLowerCase()==="form"}function JE(i){return Tf(i)&&i.tagName.toLowerCase()==="input"}function FE(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function $E(i,r){return i.button===0&&(!r||r==="_self")&&!FE(i)}function vs(i=""){return new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((r,o)=>{let c=i[o];return r.concat(Array.isArray(c)?c.map(s=>[o,s]):[[o,c]])},[]))}function WE(i,r){let o=vs(i);return r&&r.forEach((c,s)=>{o.has(s)||r.getAll(s).forEach(d=>{o.append(s,d)})}),o}var df=null;function kE(){if(df===null)try{new FormData(document.createElement("form"),0),df=!1}catch{df=!0}return df}var IE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function os(i){return i!=null&&!IE.has(i)?(mt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yf}"`),null):i}function PE(i,r){let o,c,s,d,m;if(KE(i)){let y=i.getAttribute("action");c=y?Pt(y,r):null,o=i.getAttribute("method")||vf,s=os(i.getAttribute("enctype"))||yf,d=new FormData(i)}else if(ZE(i)||JE(i)&&(i.type==="submit"||i.type==="image")){let y=i.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||y.getAttribute("action");if(c=g?Pt(g,r):null,o=i.getAttribute("formmethod")||y.getAttribute("method")||vf,s=os(i.getAttribute("formenctype"))||os(y.getAttribute("enctype"))||yf,d=new FormData(y,i),!kE()){let{name:b,type:p,value:v}=i;if(p==="image"){let C=b?`${b}.`:"";d.append(`${C}x`,"0"),d.append(`${C}y`,"0")}else b&&d.append(b,v)}}else{if(Tf(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=vf,c=null,s=yf,m=i}return d&&s==="text/plain"&&(m=d,d=void 0),{action:c,method:o.toLowerCase(),encType:s,formData:d,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ms(i,r){if(i===!1||i===null||typeof i>"u")throw new Error(r)}function r0(i,r,o,c){let s=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return o?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${c}`:s.pathname=`${s.pathname}.${c}`:s.pathname==="/"?s.pathname=`_root.${c}`:r&&Pt(s.pathname,r)==="/"?s.pathname=`${Mu(r)}/_root.${c}`:s.pathname=`${Mu(s.pathname)}.${c}`,s}async function eb(i,r){if(i.id in r)return r[i.id];try{let o=await import(i.module);return r[i.id]=o,o}catch(o){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function tb(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function lb(i,r,o){let c=await Promise.all(i.map(async s=>{let d=r.routes[s.route.id];if(d){let m=await eb(d,o);return m.links?m.links():[]}return[]}));return ib(c.flat(1).filter(tb).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Ry(i,r,o,c,s,d){let m=(g,b)=>o[b]?g.route.id!==o[b].route.id:!0,y=(g,b)=>{var p;return o[b].pathname!==g.pathname||((p=o[b].route.path)==null?void 0:p.endsWith("*"))&&o[b].params["*"]!==g.params["*"]};return d==="assets"?r.filter((g,b)=>m(g,b)||y(g,b)):d==="data"?r.filter((g,b)=>{var v;let p=c.routes[g.route.id];if(!p||!p.hasLoader)return!1;if(m(g,b)||y(g,b))return!0;if(g.route.shouldRevalidate){let C=g.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((v=o[0])==null?void 0:v.params)||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function ab(i,r,{includeHydrateFallback:o}={}){return nb(i.map(c=>{let s=r.routes[c.route.id];if(!s)return[];let d=[s.module];return s.clientActionModule&&(d=d.concat(s.clientActionModule)),s.clientLoaderModule&&(d=d.concat(s.clientLoaderModule)),o&&s.hydrateFallbackModule&&(d=d.concat(s.hydrateFallbackModule)),s.imports&&(d=d.concat(s.imports)),d}).flat(1))}function nb(i){return[...new Set(i)]}function ub(i){let r={},o=Object.keys(i).sort();for(let c of o)r[c]=i[c];return r}function ib(i,r){let o=new Set;return new Set(r),i.reduce((c,s)=>{let d=JSON.stringify(ub(s));return o.has(d)||(o.add(d),c.push({key:d,link:s})),c},[])}function Cs(){let i=w.useContext(_n);return Ms(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function rb(){let i=w.useContext(Li);return Ms(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var As=w.createContext(void 0);As.displayName="FrameworkContext";function Rf(){let i=w.useContext(As);return Ms(i,"You must render this element inside a <HydratedRouter> element"),i}function fb(i,r){let o=w.useContext(As),[c,s]=w.useState(!1),[d,m]=w.useState(!1),{onFocus:y,onBlur:g,onMouseEnter:b,onMouseLeave:p,onTouchStart:v}=r,C=w.useRef(null);w.useEffect(()=>{if(i==="render"&&m(!0),i==="viewport"){let X=te=>{te.forEach(J=>{m(J.isIntersecting)})},L=new IntersectionObserver(X,{threshold:.5});return C.current&&L.observe(C.current),()=>{L.disconnect()}}},[i]),w.useEffect(()=>{if(c){let X=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(X)}}},[c]);let x=()=>{s(!0)},q=()=>{s(!1),m(!1)};return o?i!=="intent"?[d,C,{}]:[d,C,{onFocus:_i(y,x),onBlur:_i(g,q),onMouseEnter:_i(b,x),onMouseLeave:_i(p,q),onTouchStart:_i(v,x)}]:[!1,C,{}]}function _i(i,r){return o=>{i&&i(o),o.defaultPrevented||r(o)}}function cb({page:i,...r}){let o=ky(),{nonce:c}=Rf(),{router:s}=Cs(),d=w.useMemo(()=>Cy(s.routes,i,s.basename),[s.routes,i,s.basename]);return d?(r.nonce==null&&c&&(r={...r,nonce:c}),o?w.createElement(sb,{page:i,matches:d,...r}):w.createElement(db,{page:i,matches:d,...r})):null}function ob(i){let{manifest:r,routeModules:o}=Rf(),[c,s]=w.useState([]);return w.useEffect(()=>{let d=!1;return lb(i,r,o).then(m=>{d||s(m)}),()=>{d=!0}},[i,r,o]),c}function sb({page:i,matches:r,...o}){let c=Ll(),{future:s}=Rf(),{basename:d}=Cs(),m=w.useMemo(()=>{if(i===c.pathname+c.search+c.hash)return[];let y=r0(i,d,s.v8_trailingSlashAwareDataRequests,"rsc"),g=!1,b=[];for(let p of r)typeof p.route.shouldRevalidate=="function"?g=!0:b.push(p.route.id);return g&&b.length>0&&y.searchParams.set("_routes",b.join(",")),[y.pathname+y.search]},[d,s.v8_trailingSlashAwareDataRequests,i,c,r]);return w.createElement(w.Fragment,null,m.map(y=>w.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...o})))}function db({page:i,matches:r,...o}){let c=Ll(),{future:s,manifest:d,routeModules:m}=Rf(),{basename:y}=Cs(),{loaderData:g,matches:b}=rb(),p=w.useMemo(()=>Ry(i,r,b,d,c,"data"),[i,r,b,d,c]),v=w.useMemo(()=>Ry(i,r,b,d,c,"assets"),[i,r,b,d,c]),C=w.useMemo(()=>{if(i===c.pathname+c.search+c.hash)return[];let X=new Set,L=!1;if(r.forEach(J=>{var pe;let se=d.routes[J.route.id];!se||!se.hasLoader||(!p.some(de=>de.route.id===J.route.id)&&J.route.id in g&&((pe=m[J.route.id])!=null&&pe.shouldRevalidate)||se.hasClientLoader?L=!0:X.add(J.route.id))}),X.size===0)return[];let te=r0(i,y,s.v8_trailingSlashAwareDataRequests,"data");return L&&X.size>0&&te.searchParams.set("_routes",r.filter(J=>X.has(J.route.id)).map(J=>J.route.id).join(",")),[te.pathname+te.search]},[y,s.v8_trailingSlashAwareDataRequests,g,c,d,p,r,i,m]),x=w.useMemo(()=>ab(v,d),[v,d]),q=ob(v);return w.createElement(w.Fragment,null,C.map(X=>w.createElement("link",{key:X,rel:"prefetch",as:"fetch",href:X,...o})),x.map(X=>w.createElement("link",{key:X,rel:"modulepreload",href:X,...o})),q.map(({key:X,link:L})=>w.createElement("link",{key:X,nonce:o.nonce,...L,crossOrigin:L.crossOrigin??o.crossOrigin})))}function hb(...i){return r=>{i.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var mb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{mb&&(window.__reactRouterVersion="7.18.4")}catch{}function xb(i,r){return QS({basename:r==null?void 0:r.basename,getContext:r==null?void 0:r.getContext,future:r==null?void 0:r.future,history:nS({window:r==null?void 0:r.window}),hydrationData:vb(),routes:i,mapRouteProperties:jE,hydrationRouteProperties:YE,dataStrategy:r==null?void 0:r.dataStrategy,patchRoutesOnNavigation:r==null?void 0:r.patchRoutesOnNavigation,window:r==null?void 0:r.window,instrumentations:r==null?void 0:r.instrumentations}).initialize()}function vb(){let i=window==null?void 0:window.__staticRouterHydrationData;return i&&i.errors&&(i={...i,errors:yb(i.errors)}),i}function yb(i){if(!i)return null;let r=Object.entries(i),o={};for(let[c,s]of r)if(s&&s.__type==="RouteErrorResponse")o[c]=new Hi(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(typeof s.__subType=="string"&&CS.includes(s.__subType)){let d=window[s.__subType];if(typeof d=="function")try{let m=new d(s.message);m.stack="",o[c]=m}catch{}}if(o[c]==null){let d=new Error(s.message);d.stack="",o[c]=d}}else o[c]=s;return o}var f0=w.forwardRef(function({onClick:r,discover:o="render",prefetch:c="none",relative:s,reloadDocument:d,replace:m,mask:y,state:g,target:b,to:p,preventScrollReset:v,viewTransition:C,defaultShouldRevalidate:x,...q},X){let{basename:L,navigator:te,useTransitions:J}=w.useContext(sl),se=typeof p=="string"&&Sf.test(p),pe=Ly(p,L);p=pe.to;let de=pE(p,{relative:s}),Me=Ll(),ue=null;if(y){let Oe=wi(y,[],Me.mask?Me.mask.pathname:"/",!0);L!=="/"&&(Oe.pathname=Oe.pathname==="/"?L:Ol([L,Oe.pathname])),ue=te.createHref(Oe)}let[M,ze,fe]=fb(c,q),Je=bb(p,{replace:m,mask:y,state:g,target:b,preventScrollReset:v,relative:s,viewTransition:C,defaultShouldRevalidate:x,useTransitions:J});function Ee(Oe){r&&r(Oe),Oe.defaultPrevented||Je(Oe)}let ut=!(pe.isExternal||d),Ve=w.createElement("a",{...q,...fe,href:(ut?ue:void 0)||pe.absoluteURL||de,onClick:ut?Ee:r,ref:hb(X,ze),target:b,"data-discover":!se&&o==="render"?"true":void 0});return M&&!se?w.createElement(w.Fragment,null,Ve,w.createElement(cb,{page:de})):Ve});f0.displayName="Link";var gb=w.forwardRef(function({"aria-current":r="page",caseSensitive:o=!1,className:c="",end:s=!1,style:d,to:m,viewTransition:y,children:g,...b},p){let v=Bi(m,{relative:b.relative}),C=Ll(),x=w.useContext(Li),{navigator:q,basename:X}=w.useContext(sl),L=x!=null&&Ob(v)&&y===!0,te=q.encodeLocation?q.encodeLocation(v).pathname:v.pathname,J=C.pathname,se=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;o||(J=J.toLowerCase(),se=se?se.toLowerCase():null,te=te.toLowerCase()),se&&X&&(se=Pt(se,X)||se);const pe=te!=="/"&&te.endsWith("/")?te.length-1:te.length;let de=J===te||!s&&J.startsWith(te)&&J.charAt(pe)==="/",Me=se!=null&&(se===te||!s&&se.startsWith(te)&&se.charAt(te.length)==="/"),ue={isActive:de,isPending:Me,isTransitioning:L},M=de?r:void 0,ze;typeof c=="function"?ze=c(ue):ze=[c,de?"active":null,Me?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let fe=typeof d=="function"?d(ue):d;return w.createElement(f0,{...b,"aria-current":M,className:ze,ref:p,style:fe,to:m,viewTransition:y},typeof g=="function"?g(ue):g)});gb.displayName="NavLink";var Sb=w.forwardRef(({discover:i="render",fetcherKey:r,navigate:o,reloadDocument:c,replace:s,state:d,method:m=vf,action:y,onSubmit:g,relative:b,preventScrollReset:p,viewTransition:v,defaultShouldRevalidate:C,...x},q)=>{let{useTransitions:X}=w.useContext(sl),L=Rb(),te=zb(y,{relative:b}),J=m.toLowerCase()==="get"?"get":"post",se=typeof y=="string"&&Sf.test(y),pe=de=>{if(g&&g(de),de.defaultPrevented)return;de.preventDefault();let Me=de.nativeEvent.submitter,ue=(Me==null?void 0:Me.getAttribute("formmethod"))||m,M=()=>L(Me||de.currentTarget,{fetcherKey:r,method:ue,navigate:o,replace:s,state:d,relative:b,preventScrollReset:p,viewTransition:v,defaultShouldRevalidate:C});X&&o!==!1?w.startTransition(()=>M()):M()};return w.createElement("form",{ref:q,method:J,action:te,onSubmit:c?g:pe,...x,"data-discover":!se&&i==="render"?"true":void 0})});Sb.displayName="Form";function Eb(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function c0(i){let r=w.useContext(_n);return De(r,Eb(i)),r}function bb(i,{target:r,replace:o,mask:c,state:s,preventScrollReset:d,relative:m,viewTransition:y,defaultShouldRevalidate:g,useTransitions:b}={}){let p=Os(),v=Ll(),C=Bi(i,{relative:m});return w.useCallback(x=>{if($E(x,r)){x.preventDefault();let q=o!==void 0?o:Jt(v)===Jt(C),X=()=>p(i,{replace:q,mask:c,state:s,preventScrollReset:d,relative:m,viewTransition:y,defaultShouldRevalidate:g});b?w.startTransition(()=>X()):X()}},[v,p,C,o,c,s,r,i,d,m,y,g,b])}function Lb(i){mt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let r=w.useRef(vs(i)),o=w.useRef(!1),c=Ll(),s=w.useMemo(()=>WE(c.search,o.current?null:r.current),[c.search]),d=Os(),m=w.useCallback((y,g)=>{const b=vs(typeof y=="function"?y(new URLSearchParams(s)):y);o.current=!0,d("?"+b,g)},[d,s]);return[s,m]}var pb=0,Tb=()=>`__${String(++pb)}__`;function Rb(){let{router:i}=c0("useSubmit"),{basename:r}=w.useContext(sl),o=NE(),c=i.fetch,s=i.navigate;return w.useCallback(async(d,m={})=>{let{action:y,method:g,encType:b,formData:p,body:v}=PE(d,r);if(m.navigate===!1){let C=m.fetcherKey||Tb();await c(C,o,m.action||y,{defaultShouldRevalidate:m.defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:p,body:v,formMethod:m.method||g,formEncType:m.encType||b,flushSync:m.flushSync})}else await s(m.action||y,{defaultShouldRevalidate:m.defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:p,body:v,formMethod:m.method||g,formEncType:m.encType||b,replace:m.replace,state:m.state,fromRouteId:o,flushSync:m.flushSync,viewTransition:m.viewTransition})},[c,s,r,o])}function zb(i,{relative:r}={}){let{basename:o}=w.useContext(sl),c=w.useContext(_l);De(c,"useFormAction must be used inside a RouteContext");let[s]=c.matches.slice(-1),d={...Bi(i||".",{relative:r})},m=Ll();if(i==null){d.search=m.search;let y=new URLSearchParams(d.search),g=y.getAll("index");if(g.some(p=>p==="")){y.delete("index"),g.filter(v=>v).forEach(v=>y.append("index",v));let p=y.toString();d.search=p?`?${p}`:""}}return(!i||i===".")&&s.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:Ol([o,d.pathname])),Jt(d)}function Ob(i,{relative:r}={}){let o=w.useContext(Rs);De(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=c0("useViewTransitionState"),s=Bi(i,{relative:r});if(!o.isTransitioning)return!1;let d=Pt(o.currentLocation.pathname,c)||o.currentLocation.pathname,m=Pt(o.nextLocation.pathname,c)||o.nextLocation.pathname;return gf(s.pathname,m)!=null||gf(s.pathname,d)!=null}var _b=zy();function Bb(i){return w.createElement(GE,{flushSync:_b.flushSync,...i})}export{f0 as L,gb as N,Hb as O,k1 as R,ys as a,_b as b,Db as c,Ll as d,Lb as e,UE as f,J1 as g,xb as h,Ui as i,Mb as j,Bb as k,wb as l,Cb as m,Ab as n,Nb as o,Ub as p,w as r,Os as u};
|
|
61
|
+
Please change the parent <Route path="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let p=Ll(),v;v=p;let C=v.pathname||"/",x=C;if(g!=="/"){let L=g.replace(/^\//,"").split("/");x="/"+C.replace(/^\//,"").split("/").slice(L.length).join("/")}let q=o&&o.state.matches.length?o.state.matches.map(L=>Object.assign(L,{route:o.manifest[L.route.id]||L.route})):Cy(i,{pathname:x});return mt(b||q!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),mt(q==null||q[q.length-1].route.element!==void 0||q[q.length-1].route.Component!==void 0||q[q.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),CE(q&&q.map(L=>Object.assign({},L,{params:Object.assign({},m,L.params),pathname:Ol([g,c.encodeLocation?c.encodeLocation(L.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?g:Ol([g,c.encodeLocation?c.encodeLocation(L.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),s,o)}function OE(){let i=UE(),r=Ui(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,c="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:c},d={padding:"2px 4px",backgroundColor:c},m=null;return console.error("Error handled by React Router default ErrorBoundary:",i),m=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:d},"ErrorBoundary")," or"," ",w.createElement("code",{style:d},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},r),o?w.createElement("pre",{style:s},o):null,m)}var _E=w.createElement(OE,null),a0=class extends w.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,r){return r.location!==i.location||r.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:r.error,location:r.location,revalidation:i.revalidation||r.revalidation}}componentDidCatch(i,r){this.props.onError?this.props.onError(i,r):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const o=bE(i.digest);o&&(i=o)}let r=i!==void 0?w.createElement(_l.Provider,{value:this.props.routeContext},w.createElement(zs.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?w.createElement(DE,{error:i},r):r}};a0.contextType=Wy;var cs=new WeakMap;function DE({children:i,error:r}){let{basename:o,navigator:c}=w.useContext(sl);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let s=EE(r.digest);if(s){let d=cs.get(r);if(d)throw d;let m=Ly(s.location,o),y=m.absoluteURL||m.to;if(_u(s.location,y,Es(c),"allow-explicit"),hs(y))throw new Error("Invalid redirect location");if(xy&&!cs.get(r))if(m.isExternal||s.reloadDocument)window.location.href=y;else{const g=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:s.replace}));throw cs.set(r,g),g}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${y}`})}}return i}function ME({routeContext:i,match:r,children:o}){let c=w.useContext(_n);return c&&c.static&&c.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(_l.Provider,{value:i},o)}function CE(i,r=[],o){let c=o==null?void 0:o.state;if(i==null){if(!c)return null;if(c.errors)i=c.matches;else if(r.length===0&&!c.initialized&&c.matches.length>0)i=c.matches;else return null}let s=i,d=c==null?void 0:c.errors;if(d!=null){let p=s.findIndex(v=>v.route.id&&(d==null?void 0:d[v.route.id])!==void 0);De(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let m=!1,y=-1;if(o&&c){m=c.renderFallback;for(let p=0;p<s.length;p++){let v=s[p];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(y=p),v.route.id){let{loaderData:C,errors:x}=c,q=v.route.loader&&!C.hasOwnProperty(v.route.id)&&(!x||x[v.route.id]===void 0);if(v.route.lazy||q){o.isStatic&&(m=!0),y>=0?s=s.slice(0,y+1):s=[s[0]];break}}}}let g=o==null?void 0:o.onError,b=c&&g?(p,v)=>{var C,x;g(p,{location:c.location,params:((x=(C=c.matches)==null?void 0:C[0])==null?void 0:x.params)??{},pattern:xi(c.matches),errorInfo:v})}:void 0;return s.reduceRight((p,v,C)=>{let x,q=!1,X=null,L=null;c&&(x=d&&v.route.id?d[v.route.id]:void 0,X=v.route.errorElement||_E,m&&(y<0&&C===0?(i0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),q=!0,L=null):y===C&&(q=!0,L=v.route.hydrateFallbackElement||null)));let te=r.concat(s.slice(0,C+1)),J=()=>{let se;return x?se=X:q?se=L:v.route.Component?se=w.createElement(v.route.Component,null):v.route.element?se=v.route.element:se=p,w.createElement(ME,{match:v,routeContext:{outlet:p,matches:te,isDataRoute:c!=null},children:se})};return c&&(v.route.ErrorBoundary||v.route.errorElement||C===0)?w.createElement(a0,{location:c.location,revalidation:c.revalidation,component:X,error:x,children:J(),routeContext:{outlet:null,matches:te,isDataRoute:!0},onError:b}):J()},null)}function _s(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function n0(i){let r=w.useContext(_n);return De(r,_s(i)),r}function u0(i){let r=w.useContext(Li);return De(r,_s(i)),r}function AE(i){let r=w.useContext(_l);return De(r,_s(i)),r}function Ds(i){let r=AE(i),o=r.matches[r.matches.length-1];return De(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function NE(){return Ds("useRouteId")}function UE(){var c;let i=w.useContext(zs),r=u0("useRouteError"),o=Ds("useRouteError");return i!==void 0?i:(c=r.errors)==null?void 0:c[o]}var wE=0;function Ub(i){let{router:r,basename:o}=n0("useBlocker"),c=u0("useBlocker"),[s,d]=w.useState(""),m=w.useCallback(y=>{if(typeof i!="function")return!!i;if(o==="/")return i(y);let{currentLocation:g,nextLocation:b,historyAction:p}=y;return i({currentLocation:{...g,pathname:Pt(g.pathname,o)||g.pathname},nextLocation:{...b,pathname:Pt(b.pathname,o)||b.pathname},historyAction:p})},[o,i]);return w.useEffect(()=>{let y=String(++wE);return d(y),()=>r.deleteBlocker(y)},[r]),w.useEffect(()=>{s!==""&&r.getBlocker(s,m)},[r,s,m]),s&&c.blockers.has(s)?c.blockers.get(s):pu}function HE(){let{router:i}=n0("useNavigate"),r=Ds("useNavigate"),o=w.useRef(!1);return t0(()=>{o.current=!0}),w.useCallback(async(s,d={})=>{mt(o.current,e0),o.current&&(typeof s=="number"?await i.navigate(s):await i.navigate(s,{fromRouteId:r,...d}))},[i,r])}var Sy={};function i0(i,r,o){!r&&!Sy[i]&&(Sy[i]=!0,mt(!1,o))}var Ey={};function by(i,r){!i&&!Ey[r]&&(Ey[r]=!0,console.warn(r))}var xE="useOptimistic",py=I1[xE],LE=()=>{};function BE(i){return py?py(i):[i,LE]}function jE(i){let r={hasErrorBoundary:i.hasErrorBoundary||i.ErrorBoundary!=null||i.errorElement!=null};return i.Component&&(i.element&&mt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(r,{element:w.createElement(i.Component),Component:void 0})),i.HydrateFallback&&(i.hydrateFallbackElement&&mt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(r,{hydrateFallbackElement:w.createElement(i.HydrateFallback),HydrateFallback:void 0})),i.ErrorBoundary&&(i.errorElement&&mt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(r,{errorElement:w.createElement(i.ErrorBoundary),ErrorBoundary:void 0})),r}var YE=["HydrateFallback","hydrateFallbackElement"],qE=class{constructor(){this.status="pending",this.promise=new Promise((i,r)=>{this.resolve=o=>{this.status==="pending"&&(this.status="resolved",i(o))},this.reject=o=>{this.status==="pending"&&(this.status="rejected",r(o))}})}};function GE({router:i,flushSync:r,onError:o,useTransitions:c}){c=ky()||c;let[d,m]=w.useState(i.state),[y,g]=BE(d),[b,p]=w.useState(),[v,C]=w.useState({isTransitioning:!1}),[x,q]=w.useState(),[X,L]=w.useState(),[te,J]=w.useState(),se=w.useRef(new Map),pe=w.useCallback((M,{deletedFetchers:ze,newErrors:fe,flushSync:Je,viewTransitionOpts:Ee})=>{fe&&o&&Object.values(fe).forEach(Ve=>{var Oe;return o(Ve,{location:M.location,params:((Oe=M.matches[0])==null?void 0:Oe.params)??{},pattern:xi(M.matches)})}),M.fetchers.forEach((Ve,Oe)=>{Ve.data!==void 0&&se.current.set(Oe,Ve.data)}),ze.forEach(Ve=>se.current.delete(Ve)),by(Je===!1||r!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let ut=i.window!=null&&i.window.document!=null&&typeof i.window.document.startViewTransition=="function";if(by(Ee==null||ut,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!Ee||!ut){r&&Je?r(()=>m(M)):c===!1?m(M):w.startTransition(()=>{c===!0&&g(Ve=>Ty(Ve,M)),m(M)});return}if(r&&Je){r(()=>{X&&(x==null||x.resolve(),X.skipTransition()),C({isTransitioning:!0,flushSync:!0,currentLocation:Ee.currentLocation,nextLocation:Ee.nextLocation})});let Ve=i.window.document.startViewTransition(()=>{r(()=>m(M))});Ve.finished.finally(()=>{r(()=>{q(void 0),L(void 0),p(void 0),C({isTransitioning:!1})})}),r(()=>L(Ve));return}X?(x==null||x.resolve(),X.skipTransition(),J({state:M,currentLocation:Ee.currentLocation,nextLocation:Ee.nextLocation})):(p(M),C({isTransitioning:!0,flushSync:!1,currentLocation:Ee.currentLocation,nextLocation:Ee.nextLocation}))},[i.window,r,X,x,c,g,o]);w.useLayoutEffect(()=>i.subscribe(pe),[i,pe]),w.useEffect(()=>{v.isTransitioning&&!v.flushSync&&q(new qE)},[v]),w.useEffect(()=>{if(x&&b&&i.window){let M=b,ze=x.promise,fe=i.window.document.startViewTransition(async()=>{c===!1?m(M):w.startTransition(()=>{c===!0&&g(Je=>Ty(Je,M)),m(M)}),await ze});fe.finished.finally(()=>{q(void 0),L(void 0),p(void 0),C({isTransitioning:!1})}),L(fe)}},[b,x,i.window,c,g]),w.useEffect(()=>{x&&b&&y.location.key===b.location.key&&x.resolve()},[x,X,y.location,b]),w.useEffect(()=>{!v.isTransitioning&&te&&(p(te.state),C({isTransitioning:!0,flushSync:!1,currentLocation:te.currentLocation,nextLocation:te.nextLocation}),J(void 0))},[v.isTransitioning,te]);let de=w.useMemo(()=>({createHref:i.createHref,createURL:i.createURL,encodeLocation:i.encodeLocation,go:M=>i.navigate(M),push:(M,ze,fe)=>i.navigate(M,{state:ze,preventScrollReset:fe==null?void 0:fe.preventScrollReset}),replace:(M,ze,fe)=>i.navigate(M,{replace:!0,state:ze,preventScrollReset:fe==null?void 0:fe.preventScrollReset})}),[i]),Me=i.basename||"/",ue=w.useMemo(()=>({router:i,navigator:de,static:!1,basename:Me,onError:o}),[i,de,Me,o]);return w.createElement(w.Fragment,null,w.createElement(_n.Provider,{value:ue},w.createElement(Li.Provider,{value:y},w.createElement(Iy.Provider,{value:se.current},w.createElement(Rs.Provider,{value:v},w.createElement(QE,{basename:Me,location:y.location,navigationType:y.historyAction,navigator:de,useTransitions:c},w.createElement(VE,{routes:i.routes,manifest:i.manifest,future:i.future,state:y,isStatic:!1,onError:o})))))),null)}function Ty(i,r){return{...i,navigation:r.navigation.state!=="idle"?r.navigation:i.navigation,revalidation:r.revalidation!=="idle"?r.revalidation:i.revalidation,actionData:r.navigation.state!=="submitting"?r.actionData:i.actionData,fetchers:r.fetchers}}var VE=w.memo(XE);function XE({routes:i,manifest:r,future:o,state:c,isStatic:s,onError:d}){return zE(i,void 0,{manifest:r,state:c,isStatic:s,onError:d})}function wb({to:i,replace:r,state:o,relative:c}){De(Cu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s,navigator:d}=w.useContext(sl);mt(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=w.useContext(_l),{pathname:y}=Ll(),g=Os(),b=wi(i,bf(m),y,c==="path");_u(typeof i=="string"?i:Jt(i),d.createHref(b),Es(d),"reject");let p=JSON.stringify(b);return w.useEffect(()=>{g(JSON.parse(p),{replace:r,state:o,relative:c})},[g,p,c,r,o]),null}function Hb(i){return RE(i.context)}function QE({basename:i="/",children:r=null,location:o,navigationType:c="POP",navigator:s,static:d=!1,useTransitions:m}){De(!Cu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let y=i.replace(/^\/*/,"/"),g=w.useMemo(()=>({basename:y,navigator:s,static:d,useTransitions:m,future:{}}),[y,s,d,m]);typeof o=="string"&&(o=na(o));let{pathname:b="/",search:p="",hash:v="",state:C=null,key:x="default",mask:q}=o,X=w.useMemo(()=>{let L=Pt(b,y);return L==null?null:{location:{pathname:L,search:p,hash:v,state:C,key:x,mask:q},navigationType:c}},[y,b,p,v,C,x,c,q]);return mt(X!=null,`<Router basename="${y}"> is not able to match the URL "${b}${p}${v}" because it does not start with the basename, so the <Router> won't render anything.`),X==null?null:w.createElement(sl.Provider,{value:g},w.createElement(pf.Provider,{children:r,value:X}))}var vf="get",yf="application/x-www-form-urlencoded";function Tf(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function ZE(i){return Tf(i)&&i.tagName.toLowerCase()==="button"}function KE(i){return Tf(i)&&i.tagName.toLowerCase()==="form"}function JE(i){return Tf(i)&&i.tagName.toLowerCase()==="input"}function FE(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function $E(i,r){return i.button===0&&(!r||r==="_self")&&!FE(i)}function vs(i=""){return new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((r,o)=>{let c=i[o];return r.concat(Array.isArray(c)?c.map(s=>[o,s]):[[o,c]])},[]))}function WE(i,r){let o=vs(i);return r&&r.forEach((c,s)=>{o.has(s)||r.getAll(s).forEach(d=>{o.append(s,d)})}),o}var df=null;function kE(){if(df===null)try{new FormData(document.createElement("form"),0),df=!1}catch{df=!0}return df}var IE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function os(i){return i!=null&&!IE.has(i)?(mt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yf}"`),null):i}function PE(i,r){let o,c,s,d,m;if(KE(i)){let y=i.getAttribute("action");c=y?Pt(y,r):null,o=i.getAttribute("method")||vf,s=os(i.getAttribute("enctype"))||yf,d=new FormData(i)}else if(ZE(i)||JE(i)&&(i.type==="submit"||i.type==="image")){let y=i.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||y.getAttribute("action");if(c=g?Pt(g,r):null,o=i.getAttribute("formmethod")||y.getAttribute("method")||vf,s=os(i.getAttribute("formenctype"))||os(y.getAttribute("enctype"))||yf,d=new FormData(y,i),!kE()){let{name:b,type:p,value:v}=i;if(p==="image"){let C=b?`${b}.`:"";d.append(`${C}x`,"0"),d.append(`${C}y`,"0")}else b&&d.append(b,v)}}else{if(Tf(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=vf,c=null,s=yf,m=i}return d&&s==="text/plain"&&(m=d,d=void 0),{action:c,method:o.toLowerCase(),encType:s,formData:d,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ms(i,r){if(i===!1||i===null||typeof i>"u")throw new Error(r)}function r0(i,r,o,c){let s=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return o?s.pathname.endsWith("/")?s.pathname=`${s.pathname}_.${c}`:s.pathname=`${s.pathname}.${c}`:s.pathname==="/"?s.pathname=`_root.${c}`:r&&Pt(s.pathname,r)==="/"?s.pathname=`${Mu(r)}/_root.${c}`:s.pathname=`${Mu(s.pathname)}.${c}`,s}async function eb(i,r){if(i.id in r)return r[i.id];try{let o=await import(i.module);return r[i.id]=o,o}catch(o){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function tb(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function lb(i,r,o){let c=await Promise.all(i.map(async s=>{let d=r.routes[s.route.id];if(d){let m=await eb(d,o);return m.links?m.links():[]}return[]}));return ib(c.flat(1).filter(tb).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Ry(i,r,o,c,s,d){let m=(g,b)=>o[b]?g.route.id!==o[b].route.id:!0,y=(g,b)=>{var p;return o[b].pathname!==g.pathname||((p=o[b].route.path)==null?void 0:p.endsWith("*"))&&o[b].params["*"]!==g.params["*"]};return d==="assets"?r.filter((g,b)=>m(g,b)||y(g,b)):d==="data"?r.filter((g,b)=>{var v;let p=c.routes[g.route.id];if(!p||!p.hasLoader)return!1;if(m(g,b)||y(g,b))return!0;if(g.route.shouldRevalidate){let C=g.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((v=o[0])==null?void 0:v.params)||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function ab(i,r,{includeHydrateFallback:o}={}){return nb(i.map(c=>{let s=r.routes[c.route.id];if(!s)return[];let d=[s.module];return s.clientActionModule&&(d=d.concat(s.clientActionModule)),s.clientLoaderModule&&(d=d.concat(s.clientLoaderModule)),o&&s.hydrateFallbackModule&&(d=d.concat(s.hydrateFallbackModule)),s.imports&&(d=d.concat(s.imports)),d}).flat(1))}function nb(i){return[...new Set(i)]}function ub(i){let r={},o=Object.keys(i).sort();for(let c of o)r[c]=i[c];return r}function ib(i,r){let o=new Set;return new Set(r),i.reduce((c,s)=>{let d=JSON.stringify(ub(s));return o.has(d)||(o.add(d),c.push({key:d,link:s})),c},[])}function Cs(){let i=w.useContext(_n);return Ms(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function rb(){let i=w.useContext(Li);return Ms(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var As=w.createContext(void 0);As.displayName="FrameworkContext";function Rf(){let i=w.useContext(As);return Ms(i,"You must render this element inside a <HydratedRouter> element"),i}function fb(i,r){let o=w.useContext(As),[c,s]=w.useState(!1),[d,m]=w.useState(!1),{onFocus:y,onBlur:g,onMouseEnter:b,onMouseLeave:p,onTouchStart:v}=r,C=w.useRef(null);w.useEffect(()=>{if(i==="render"&&m(!0),i==="viewport"){let X=te=>{te.forEach(J=>{m(J.isIntersecting)})},L=new IntersectionObserver(X,{threshold:.5});return C.current&&L.observe(C.current),()=>{L.disconnect()}}},[i]),w.useEffect(()=>{if(c){let X=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(X)}}},[c]);let x=()=>{s(!0)},q=()=>{s(!1),m(!1)};return o?i!=="intent"?[d,C,{}]:[d,C,{onFocus:_i(y,x),onBlur:_i(g,q),onMouseEnter:_i(b,x),onMouseLeave:_i(p,q),onTouchStart:_i(v,x)}]:[!1,C,{}]}function _i(i,r){return o=>{i&&i(o),o.defaultPrevented||r(o)}}function cb({page:i,...r}){let o=ky(),{nonce:c}=Rf(),{router:s}=Cs(),d=w.useMemo(()=>Cy(s.routes,i,s.basename),[s.routes,i,s.basename]);return d?(r.nonce==null&&c&&(r={...r,nonce:c}),o?w.createElement(sb,{page:i,matches:d,...r}):w.createElement(db,{page:i,matches:d,...r})):null}function ob(i){let{manifest:r,routeModules:o}=Rf(),[c,s]=w.useState([]);return w.useEffect(()=>{let d=!1;return lb(i,r,o).then(m=>{d||s(m)}),()=>{d=!0}},[i,r,o]),c}function sb({page:i,matches:r,...o}){let c=Ll(),{future:s}=Rf(),{basename:d}=Cs(),m=w.useMemo(()=>{if(i===c.pathname+c.search+c.hash)return[];let y=r0(i,d,s.v8_trailingSlashAwareDataRequests,"rsc"),g=!1,b=[];for(let p of r)typeof p.route.shouldRevalidate=="function"?g=!0:b.push(p.route.id);return g&&b.length>0&&y.searchParams.set("_routes",b.join(",")),[y.pathname+y.search]},[d,s.v8_trailingSlashAwareDataRequests,i,c,r]);return w.createElement(w.Fragment,null,m.map(y=>w.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...o})))}function db({page:i,matches:r,...o}){let c=Ll(),{future:s,manifest:d,routeModules:m}=Rf(),{basename:y}=Cs(),{loaderData:g,matches:b}=rb(),p=w.useMemo(()=>Ry(i,r,b,d,c,"data"),[i,r,b,d,c]),v=w.useMemo(()=>Ry(i,r,b,d,c,"assets"),[i,r,b,d,c]),C=w.useMemo(()=>{if(i===c.pathname+c.search+c.hash)return[];let X=new Set,L=!1;if(r.forEach(J=>{var pe;let se=d.routes[J.route.id];!se||!se.hasLoader||(!p.some(de=>de.route.id===J.route.id)&&J.route.id in g&&((pe=m[J.route.id])!=null&&pe.shouldRevalidate)||se.hasClientLoader?L=!0:X.add(J.route.id))}),X.size===0)return[];let te=r0(i,y,s.v8_trailingSlashAwareDataRequests,"data");return L&&X.size>0&&te.searchParams.set("_routes",r.filter(J=>X.has(J.route.id)).map(J=>J.route.id).join(",")),[te.pathname+te.search]},[y,s.v8_trailingSlashAwareDataRequests,g,c,d,p,r,i,m]),x=w.useMemo(()=>ab(v,d),[v,d]),q=ob(v);return w.createElement(w.Fragment,null,C.map(X=>w.createElement("link",{key:X,rel:"prefetch",as:"fetch",href:X,...o})),x.map(X=>w.createElement("link",{key:X,rel:"modulepreload",href:X,...o})),q.map(({key:X,link:L})=>w.createElement("link",{key:X,nonce:o.nonce,...L,crossOrigin:L.crossOrigin??o.crossOrigin})))}function hb(...i){return r=>{i.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var mb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{mb&&(window.__reactRouterVersion="7.18.4")}catch{}function xb(i,r){return QS({basename:r==null?void 0:r.basename,getContext:r==null?void 0:r.getContext,future:r==null?void 0:r.future,history:nS({window:r==null?void 0:r.window}),hydrationData:vb(),routes:i,mapRouteProperties:jE,hydrationRouteProperties:YE,dataStrategy:r==null?void 0:r.dataStrategy,patchRoutesOnNavigation:r==null?void 0:r.patchRoutesOnNavigation,window:r==null?void 0:r.window,instrumentations:r==null?void 0:r.instrumentations}).initialize()}function vb(){let i=window==null?void 0:window.__staticRouterHydrationData;return i&&i.errors&&(i={...i,errors:yb(i.errors)}),i}function yb(i){if(!i)return null;let r=Object.entries(i),o={};for(let[c,s]of r)if(s&&s.__type==="RouteErrorResponse")o[c]=new Hi(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(typeof s.__subType=="string"&&CS.includes(s.__subType)){let d=window[s.__subType];if(typeof d=="function")try{let m=new d(s.message);m.stack="",o[c]=m}catch{}}if(o[c]==null){let d=new Error(s.message);d.stack="",o[c]=d}}else o[c]=s;return o}var f0=w.forwardRef(function({onClick:r,discover:o="render",prefetch:c="none",relative:s,reloadDocument:d,replace:m,mask:y,state:g,target:b,to:p,preventScrollReset:v,viewTransition:C,defaultShouldRevalidate:x,...q},X){let{basename:L,navigator:te,useTransitions:J}=w.useContext(sl),se=typeof p=="string"&&Sf.test(p),pe=Ly(p,L);p=pe.to;let de=pE(p,{relative:s}),Me=Ll(),ue=null;if(y){let Oe=wi(y,[],Me.mask?Me.mask.pathname:"/",!0);L!=="/"&&(Oe.pathname=Oe.pathname==="/"?L:Ol([L,Oe.pathname])),ue=te.createHref(Oe)}let[M,ze,fe]=fb(c,q),Je=bb(p,{replace:m,mask:y,state:g,target:b,preventScrollReset:v,relative:s,viewTransition:C,defaultShouldRevalidate:x,useTransitions:J});function Ee(Oe){r&&r(Oe),Oe.defaultPrevented||Je(Oe)}let ut=!(pe.isExternal||d),Ve=w.createElement("a",{...q,...fe,href:(ut?ue:void 0)||pe.absoluteURL||de,onClick:ut?Ee:r,ref:hb(X,ze),target:b,"data-discover":!se&&o==="render"?"true":void 0});return M&&!se?w.createElement(w.Fragment,null,Ve,w.createElement(cb,{page:de})):Ve});f0.displayName="Link";var gb=w.forwardRef(function({"aria-current":r="page",caseSensitive:o=!1,className:c="",end:s=!1,style:d,to:m,viewTransition:y,children:g,...b},p){let v=Bi(m,{relative:b.relative}),C=Ll(),x=w.useContext(Li),{navigator:q,basename:X}=w.useContext(sl),L=x!=null&&Ob(v)&&y===!0,te=q.encodeLocation?q.encodeLocation(v).pathname:v.pathname,J=C.pathname,se=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;o||(J=J.toLowerCase(),se=se?se.toLowerCase():null,te=te.toLowerCase()),se&&X&&(se=Pt(se,X)||se);const pe=te!=="/"&&te.endsWith("/")?te.length-1:te.length;let de=J===te||!s&&J.startsWith(te)&&J.charAt(pe)==="/",Me=se!=null&&(se===te||!s&&se.startsWith(te)&&se.charAt(te.length)==="/"),ue={isActive:de,isPending:Me,isTransitioning:L},M=de?r:void 0,ze;typeof c=="function"?ze=c(ue):ze=[c,de?"active":null,Me?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let fe=typeof d=="function"?d(ue):d;return w.createElement(f0,{...b,"aria-current":M,className:ze,ref:p,style:fe,to:m,viewTransition:y},typeof g=="function"?g(ue):g)});gb.displayName="NavLink";var Sb=w.forwardRef(({discover:i="render",fetcherKey:r,navigate:o,reloadDocument:c,replace:s,state:d,method:m=vf,action:y,onSubmit:g,relative:b,preventScrollReset:p,viewTransition:v,defaultShouldRevalidate:C,...x},q)=>{let{useTransitions:X}=w.useContext(sl),L=Rb(),te=zb(y,{relative:b}),J=m.toLowerCase()==="get"?"get":"post",se=typeof y=="string"&&Sf.test(y),pe=de=>{if(g&&g(de),de.defaultPrevented)return;de.preventDefault();let Me=de.nativeEvent.submitter,ue=(Me==null?void 0:Me.getAttribute("formmethod"))||m,M=()=>L(Me||de.currentTarget,{fetcherKey:r,method:ue,navigate:o,replace:s,state:d,relative:b,preventScrollReset:p,viewTransition:v,defaultShouldRevalidate:C});X&&o!==!1?w.startTransition(()=>M()):M()};return w.createElement("form",{ref:q,method:J,action:te,onSubmit:c?g:pe,...x,"data-discover":!se&&i==="render"?"true":void 0})});Sb.displayName="Form";function Eb(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function c0(i){let r=w.useContext(_n);return De(r,Eb(i)),r}function bb(i,{target:r,replace:o,mask:c,state:s,preventScrollReset:d,relative:m,viewTransition:y,defaultShouldRevalidate:g,useTransitions:b}={}){let p=Os(),v=Ll(),C=Bi(i,{relative:m});return w.useCallback(x=>{if($E(x,r)){x.preventDefault();let q=o!==void 0?o:Jt(v)===Jt(C),X=()=>p(i,{replace:q,mask:c,state:s,preventScrollReset:d,relative:m,viewTransition:y,defaultShouldRevalidate:g});b?w.startTransition(()=>X()):X()}},[v,p,C,o,c,s,r,i,d,m,y,g,b])}function Lb(i){mt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let r=w.useRef(vs(i)),o=w.useRef(!1),c=Ll(),s=w.useMemo(()=>WE(c.search,o.current?null:r.current),[c.search]),d=Os(),m=w.useCallback((y,g)=>{const b=vs(typeof y=="function"?y(new URLSearchParams(s)):y);o.current=!0,d("?"+b,g)},[d,s]);return[s,m]}var pb=0,Tb=()=>`__${String(++pb)}__`;function Rb(){let{router:i}=c0("useSubmit"),{basename:r}=w.useContext(sl),o=NE(),c=i.fetch,s=i.navigate;return w.useCallback(async(d,m={})=>{let{action:y,method:g,encType:b,formData:p,body:v}=PE(d,r);if(m.navigate===!1){let C=m.fetcherKey||Tb();await c(C,o,m.action||y,{defaultShouldRevalidate:m.defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:p,body:v,formMethod:m.method||g,formEncType:m.encType||b,flushSync:m.flushSync})}else await s(m.action||y,{defaultShouldRevalidate:m.defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:p,body:v,formMethod:m.method||g,formEncType:m.encType||b,replace:m.replace,state:m.state,fromRouteId:o,flushSync:m.flushSync,viewTransition:m.viewTransition})},[c,s,r,o])}function zb(i,{relative:r}={}){let{basename:o}=w.useContext(sl),c=w.useContext(_l);De(c,"useFormAction must be used inside a RouteContext");let[s]=c.matches.slice(-1),d={...Bi(i||".",{relative:r})},m=Ll();if(i==null){d.search=m.search;let y=new URLSearchParams(d.search),g=y.getAll("index");if(g.some(p=>p==="")){y.delete("index"),g.filter(v=>v).forEach(v=>y.append("index",v));let p=y.toString();d.search=p?`?${p}`:""}}return(!i||i===".")&&s.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:Ol([o,d.pathname])),Jt(d)}function Ob(i,{relative:r}={}){let o=w.useContext(Rs);De(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=c0("useViewTransitionState"),s=Bi(i,{relative:r});if(!o.isTransitioning)return!1;let d=Pt(o.currentLocation.pathname,c)||o.currentLocation.pathname,m=Pt(o.nextLocation.pathname,c)||o.nextLocation.pathname;return gf(s.pathname,m)!=null||gf(s.pathname,d)!=null}var _b=zy();function Bb(i){return w.createElement(GE,{flushSync:_b.flushSync,...i})}export{f0 as L,gb as N,Hb as O,k1 as R,ys as a,Ll as b,Db as c,_b as d,Lb as e,UE as f,J1 as g,xb as h,Ui as i,Mb as j,Bb as k,wb as l,Cb as m,Ab as n,Nb as o,Ub as p,w as r,Os as u};
|
package/src/ui/static/index.html
CHANGED
|
@@ -365,11 +365,11 @@
|
|
|
365
365
|
82.5%, 100% { background: var(--boot-accent); width: 22px; }
|
|
366
366
|
}
|
|
367
367
|
</style>
|
|
368
|
-
<script type="module" crossorigin src="/assets/index-
|
|
369
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-react-
|
|
370
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-query-
|
|
371
|
-
<link rel="modulepreload" crossorigin href="/assets/vendor-icons-
|
|
372
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
368
|
+
<script type="module" crossorigin src="/assets/index-D6sQYc_0.js"></script>
|
|
369
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-react-DOVfxdUy.js">
|
|
370
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-query-DkZSMtfn.js">
|
|
371
|
+
<link rel="modulepreload" crossorigin href="/assets/vendor-icons-D_Dmmj8d.js">
|
|
372
|
+
<link rel="stylesheet" crossorigin href="/assets/index-aInN0yoR.css">
|
|
373
373
|
</head>
|
|
374
374
|
<body class="bg-surface-0 text-gray-100 antialiased">
|
|
375
375
|
<div id="root">
|