summaryrefslogtreecommitdiff
path: root/assets/outbox/Release v0.54.0 · hyprwm_Hyprland_files/react-core-5860ae2cdde78efe.js
blob: eff6450989cdd4d338c0c1c97e2fc6c74cd0c838 (plain)
1
2
3
4
5
6
7
performance.mark("js-parse-end:react-core-5860ae2cdde78efe.js");
"use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["90225"],{43581(e,t,r){r.d(t,{A:()=>i,T:()=>o});var n=r(49236),a={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};a.bgImage=a.backgroundImage,a.bgSize=a.backgroundSize,a.bgPosition=a.backgroundPosition,a.bgRepeat=a.backgroundRepeat;var o=(0,n.qU)(a);let i=o},84995(e,t,r){r.d(t,{A:()=>i,P:()=>o});var n=r(49236),a={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"}};a.borderTopWidth={property:"borderTopWidth",scale:"borderWidths"},a.borderTopColor={property:"borderTopColor",scale:"colors"},a.borderTopStyle={property:"borderTopStyle",scale:"borderStyles"},a.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},a.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},a.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},a.borderBottomColor={property:"borderBottomColor",scale:"colors"},a.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},a.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},a.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},a.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},a.borderLeftColor={property:"borderLeftColor",scale:"colors"},a.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},a.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},a.borderRightColor={property:"borderRightColor",scale:"colors"},a.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var o=(0,n.qU)(a);let i=o},77638(e,t,r){r.d(t,{A:()=>i,y:()=>o});var n=r(49236),a={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};a.bg=a.backgroundColor;var o=(0,n.qU)(a);let i=o},49236(e,t,r){r.d(t,{Cp:()=>d,Jt:()=>c,Zz:()=>y,qU:()=>m});var n=r(45228),a=r.n(n),o=function(e,t){var r,n=a()({},e,t);for(var o in e)e[o]&&"object"==typeof t[o]&&a()(n,((r={})[o]=a()(e[o],t[o]),r));return n},i=function(e){var t={};return Object.keys(e).sort(function(e,t){return e.localeCompare(t,void 0,{numeric:!0,sensitivity:"base"})}).forEach(function(r){t[r]=e[r]}),t},s={breakpoints:[40,52,64].map(function(e){return e+"em"})},l=function(e){return"@media screen and (min-width: "+e+")"},u=function(e,t){return c(t,e,e)},c=function(e,t,r,n,a){for(n=0,t=t&&t.split?t.split("."):[t];n<t.length;n++)e=e?e[t[n]]:a;return e===a?r:e},d=function e(t){var r={},n=function(e){var n={},u=!1,d=e.theme&&e.theme.disableStyledSystemCache;for(var f in e)if(t[f]){var m=t[f],y=e[f],g=c(e.theme,m.scale,m.defaults);if("object"==typeof y){if(r.breakpoints=!d&&r.breakpoints||c(e.theme,"breakpoints",s.breakpoints),Array.isArray(y)){r.media=!d&&r.media||[null].concat(r.breakpoints.map(l)),n=o(n,h(r.media,m,g,y,e));continue}null!==y&&(n=o(n,p(r.breakpoints,m,g,y,e)),u=!0);continue}a()(n,m(y,g,e))}return u&&(n=i(n)),n};n.config=t,n.propNames=Object.keys(t),n.cache=r;var u=Object.keys(t).filter(function(e){return"config"!==e});return u.length>1&&u.forEach(function(r){var a;n[r]=e(((a={})[r]=t[r],a))}),n},h=function(e,t,r,n,o){var i={};return n.slice(0,e.length).forEach(function(n,s){var l,u=e[s],c=t(n,r,o);u?a()(i,((l={})[u]=a()({},i[u],c),l)):a()(i,c)}),i},p=function(e,t,r,n,o){var i={};for(var s in n){var u=e[s],c=t(n[s],r,o);if(u){var d,h=l(u);a()(i,((d={})[h]=a()({},i[h],c),d))}else a()(i,c)}return i},f=function(e){var t=e.properties,r=e.property,n=e.scale,a=e.transform,o=void 0===a?u:a,i=e.defaultScale;t=t||[r];var s=function(e,r,n){var a={},i=o(e,r,n);if(null!==i)return t.forEach(function(e){a[e]=i}),a};return s.scale=n,s.defaults=i,s},m=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach(function(r){var n=e[r];if(!0===n){t[r]=f({property:r,scale:r});return}if("function"==typeof n){t[r]=n;return}t[r]=f(n)}),d(t)},y=function(){for(var e={},t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){t&&t.config&&a()(e,t.config)}),d(e)}},50402(e,t,r){function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Ay:()=>h});var a=function(e,t,r,n,a){for(n=0,t=t&&t.split?t.split("."):[t];n<t.length;n++)e=e?e[t[n]]:a;return e===a?r:e},o=[40,52,64].map(function(e){return e+"em"}),i={space:[0,4,8,16,32,64,128,256,512],fontSizes:[12,14,16,20,24,32,48,64,72]},s={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},l={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},u={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},c=function(e,t){if("number"!=typeof t||t>=0)return a(e,t,t);var r=Math.abs(t),n=a(e,r,r);return"string"==typeof n?"-"+n:-1*n},d=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce(function(e,t){var r;return n({},e,((r={})[t]=c,r))},{});let h=function e(t){return function(r){void 0===r&&(r={});var c,h=n({},i,{},r.theme||r),p={},f=(c="function"==typeof t?t(h):t,function(e){var t={},r=[null].concat(a(e,"breakpoints",o).map(function(e){return"@media screen and (min-width: "+e+")"}));for(var n in c){var i="function"==typeof c[n]?c[n](e):c[n];if(null!=i){if(!Array.isArray(i)){t[n]=i;continue}for(var s=0;s<i.slice(0,r.length).length;s++){var l=r[s];if(!l){t[n]=i[s];continue}t[l]=t[l]||{},null!=i[s]&&(t[l][n]=i[s])}}}return t})(h);for(var m in f){var y=f[m],g="function"==typeof y?y(h):y;if("variant"===m){var v=e(a(h,g))(h);p=n({},p,{},v);continue}if(g&&"object"==typeof g){p[m]=e(g)(h);continue}var b=a(s,m,m),w=a(u,b),R=a(h,w,a(h,b,{})),E=a(d,b,a)(R,g,g);if(l[b])for(var S=l[b],x=0;x<S.length;x++)p[S[x]]=E;else p[b]=E}return p}}},58523(e,t,r){r.d(t,{A:()=>a,p:()=>n});var n=(0,r(49236).qU)({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0});let a=n},96069(e,t,r){r.d(t,{A:()=>i,V:()=>o});var n=r(49236),a=[0,4,8,16,32,64,128,256,512],o=(0,n.qU)({gridGap:{property:"gridGap",scale:"space",defaultScale:a},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:a},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:a},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0});let i=o},75447(e,t,r){r.d(t,{A:()=>o,Z:()=>a});var n=r(49236),a=(0,n.qU)({width:{property:"width",scale:"sizes",transform:function(e,t){return(0,n.Jt)(t,e,!("number"==typeof e&&!isNaN(e))||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0});let o=a},59756(e,t,r){r.d(t,{A:()=>i,G:()=>o});var n=r(49236),a=[0,4,8,16,32,64,128,256,512],o=(0,n.qU)({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:a},right:{property:"right",scale:"space",defaultScale:a},bottom:{property:"bottom",scale:"space",defaultScale:a},left:{property:"left",scale:"space",defaultScale:a}});let i=o},42049(e,t,r){r.d(t,{r:()=>n});var n=(0,r(49236).qU)({boxShadow:{property:"boxShadow",scale:"shadows"},textShadow:{property:"textShadow",scale:"shadows"}})},89165(e,t,r){r.d(t,{xe:()=>c});var n=r(49236),a=[0,4,8,16,32,64,128,256,512],o=function(e){return"number"==typeof e&&!isNaN(e)},i=function(e,t){if(!o(e))return(0,n.Jt)(t,e,e);var r=e<0,a=Math.abs(e),i=(0,n.Jt)(t,a,a);return o(i)?i*(r?-1:1):r?"-"+i:i},s={};s.margin={margin:{property:"margin",scale:"space",transform:i,defaultScale:a},marginTop:{property:"marginTop",scale:"space",transform:i,defaultScale:a},marginRight:{property:"marginRight",scale:"space",transform:i,defaultScale:a},marginBottom:{property:"marginBottom",scale:"space",transform:i,defaultScale:a},marginLeft:{property:"marginLeft",scale:"space",transform:i,defaultScale:a},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:i,defaultScale:a},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:i,defaultScale:a}},s.margin.m=s.margin.margin,s.margin.mt=s.margin.marginTop,s.margin.mr=s.margin.marginRight,s.margin.mb=s.margin.marginBottom,s.margin.ml=s.margin.marginLeft,s.margin.mx=s.margin.marginX,s.margin.my=s.margin.marginY,s.padding={padding:{property:"padding",scale:"space",defaultScale:a},paddingTop:{property:"paddingTop",scale:"space",defaultScale:a},paddingRight:{property:"paddingRight",scale:"space",defaultScale:a},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:a},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:a},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:a},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:a}},s.padding.p=s.padding.padding,s.padding.pt=s.padding.paddingTop,s.padding.pr=s.padding.paddingRight,s.padding.pb=s.padding.paddingBottom,s.padding.pl=s.padding.paddingLeft,s.padding.px=s.padding.paddingX,s.padding.py=s.padding.paddingY;var l=(0,n.qU)(s.margin),u=(0,n.qU)(s.padding),c=(0,n.Zz)(l,u)},57227(e,t,r){r.d(t,{y:()=>a});var n=r(49236),a=function(e,t){return void 0===t&&(t=null),function(r){return(0,n.Jt)(r.theme,e,t)}}},3962(e,t,r){r.d(t,{A:()=>a,I:()=>n});var n=(0,r(49236).qU)({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0});let a=n},38144(e,t,r){var n=r(49236),a=r(50402),o=function(e){var t,r,o=e.scale,i=e.prop,s=e.variants,l=void 0===s?{}:s,u=e.key;(r=Object.keys(l).length?function(e,t,r){return(0,a.Ay)((0,n.Jt)(t,e,null))(r.theme)}:function(e,t){return(0,n.Jt)(t,e,null)}).scale=o||u,r.defaults=l;var c=((t={})[void 0===i?"variant":i]=r,t);return(0,n.Cp)(c)};o({key:"buttons"}),o({key:"textStyles",prop:"textStyle"}),o({key:"colorStyles",prop:"colors"})},38267(e,t,r){r.d(t,{Ay:()=>eL,DU:()=>eP,NP:()=>eC,i7:()=>eT});var n,a=r(54405),o=r(96540),i=r(2833),s=r.n(i),l=r(8887),u=r(17103),c=r(16869),d=r(4146),h=r.n(d);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var f=function(e,t){for(var r=[e[0]],n=0,a=t.length;n<a;n+=1)r.push(t[n],e[n+1]);return r},m=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,a.typeOf)(e)},y=Object.freeze([]),g=Object.freeze({});function v(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var R="u">typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",E="u">typeof window&&"HTMLElement"in window,S={};function x(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(r.length>0?" Args: "+r.join(", "):""))}var C=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,a=n;e>=a;)(a<<=1)<0&&x(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var o=n;o<a;o++)this.groupSizes[o]=0}for(var i=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var a=r;a<n;a++)this.tag.deleteRule(r)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),a=n+r,o=n;o<a;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),k=new Map,N=new Map,A=1,P=function(e){if(k.has(e))return k.get(e);for(;N.has(A);)A++;var t=A++;return k.set(e,t),N.set(t,e),t},T=function(e,t){t>=A&&(A=t+1),k.set(e,t),N.set(t,e)},L="style["+R+'][data-styled-version="5.3.11"]',_=RegExp("^"+R+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),j=function(e,t,r){for(var n,a=r.split(","),o=0,i=a.length;o<i;o++)(n=a[o])&&e.registerName(t,n)},D=function(e,t){for(var r=(t.textContent||"").split("/*!sc*/\n"),n=[],a=0,o=r.length;a<o;a++){var i=r[a].trim();if(i){var s=i.match(_);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(T(u,l),j(e,u,s[3]),e.getTag().insertRules(l,n)),n.length=0}else n.push(i)}}},O=function(){return r.nc},I=function(e){var t=document.head,r=e||t,n=document.createElement("style"),a=function(e){for(var t=e.childNodes,r=t.length;r>=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(R))return n}}(r),o=void 0!==a?a.nextSibling:null;n.setAttribute(R,"active"),n.setAttribute("data-styled-version","5.3.11");var i=O();return i&&n.setAttribute("nonce",i),r.insertBefore(n,o),n},$=function(){function e(e){var t=this.element=I(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var a=t[r];if(a.ownerNode===e)return a}x(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),M=function(){function e(e){var t=this.element=I(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),z=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=E,F={isServer:!E,useCSSOMInjection:!0},W=function(){function e(e,t,r){void 0===e&&(e=g),void 0===t&&(t={}),this.options=p({},F,{},e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&E&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(L),r=0,n=t.length;r<n;r++){var a=t[r];a&&"active"!==a.getAttribute(R)&&(D(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return P(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(p({},this.options,{},t),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){var e,t,r,n;return this.tag||(this.tag=(t=(e=this.options).isServer,r=e.useCSSOMInjection,n=e.target,new C(t?new z(n):r?new $(n):new M(n))))},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(P(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},t.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(P(e),r)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(P(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),r=t.length,n="",a=0;a<r;a++){var o,i=(o=a,N.get(o));if(void 0!==i){var s=e.names.get(i),l=t.getGroup(a);if(s&&l&&s.size){var u=R+".g"+a+'[id="'+i+'"]',c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+=e+",")}),n+=""+l+u+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),B=/(a)(d)/gi,H=function(e){return String.fromCharCode(e+(e>25?39:97))};function q(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=H(t%52)+r;return(H(t%52)+r).replace(B,"$1-$2")}var Y=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},V=function(e){return Y(5381,e)};function G(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(v(r)&&!w(r))return!1}return!0}var J=V("5.3.11"),K=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&G(e),this.componentId=t,this.baseHash=Y(J,t),this.baseStyle=r,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(n,this.staticRulesId))a.push(this.staticRulesId);else{var o=ef(this.rules,e,t,r).join(""),i=q(Y(this.baseHash,o)>>>0);if(!t.hasNameForId(n,i)){var s=r(o,"."+i,void 0,n);t.insertRules(n,i,s)}a.push(i),this.staticRulesId=i}else{for(var l=this.rules.length,u=Y(this.baseHash,r.hash),c="",d=0;d<l;d++){var h=this.rules[d];if("string"==typeof h)c+=h;else if(h){var p=ef(h,e,t,r),f=Array.isArray(p)?p.join(""):p;u=Y(u,f+d),c+=f}}if(c){var m=q(u>>>0);if(!t.hasNameForId(n,m)){var y=r(c,"."+m,void 0,n);t.insertRules(n,m,y)}a.push(m)}}return a.join(" ")},e}(),X=/^\s*\/\/.*$/gm,Q=[":","[",".","#"];function Z(e){var t,r,n,a,o=void 0===e?g:e,i=o.options,s=void 0===i?g:i,u=o.plugins,c=void 0===u?y:u,d=new l.A(s),h=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,a,o,i,s,l,u,c,d){switch(r){case 1:if(0===c&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(a[0]+n),"";default:return n+(0===d?"/*|*/":"")}case -2:n.split("/*|*/}").forEach(t)}}}(function(e){h.push(e)}),f=function(e,n,o){return 0===n&&-1!==Q.indexOf(o[r.length])||o.match(a)?e:"."+t};function m(e,o,i,s){void 0===s&&(s="&");var l=e.replace(X,""),u=o&&i?i+" "+o+" { "+l+" }":l;return t=s,n=RegExp("\\"+(r=o)+"\\b","g"),a=RegExp("(\\"+r+"\\b){2,}"),d(i||!o?"":o,u)}return d.use([].concat(c,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(r)>0&&(a[0]=a[0].replace(n,f))},p,function(e){if(-2===e){var t=h;return h=[],t}}])),m.hash=c.length?c.reduce(function(e,t){return t.name||x(15),Y(e,t.name)},5381).toString():"",m}var ee=o.createContext(),et=(ee.Consumer,o.createContext()),er=(et.Consumer,new W),en=Z();function ea(){return(0,o.useContext)(ee)||er}function eo(){return(0,o.useContext)(et)||en}function ei(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],a=ea(),i=(0,o.useMemo)(function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target]),l=(0,o.useMemo)(function(){return Z({options:{prefix:!e.disableVendorPrefixes},plugins:r})},[e.disableVendorPrefixes,r]);return(0,o.useEffect)(function(){s()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]),o.createElement(ee.Provider,{value:i},o.createElement(et.Provider,{value:l},e.children))}var es=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=en);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return x(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=en),this.name+e.hash},e}(),el=/([A-Z])/,eu=/([A-Z])/g,ec=/^ms-/,ed=function(e){return"-"+e.toLowerCase()};function eh(e){return el.test(e)?e.replace(eu,ed).replace(ec,"-ms-"):e}var ep=function(e){return null==e||!1===e||""===e};function ef(e,t,r,n){if(Array.isArray(e)){for(var a,o=[],i=0,s=e.length;i<s;i+=1)""!==(a=ef(e[i],t,r,n))&&(Array.isArray(a)?o.push.apply(o,a):o.push(a));return o}return ep(e)?"":w(e)?"."+e.styledComponentId:v(e)?"function"!=typeof e||e.prototype&&e.prototype.isReactComponent||!t?e:ef(e(t),t,r,n):e instanceof es?r?(e.inject(r,n),e.getName(n)):e:m(e)?function e(t,r){var n,a=[];for(var o in t)t.hasOwnProperty(o)&&!ep(t[o])&&(Array.isArray(t[o])&&t[o].isCss||v(t[o])?a.push(eh(o)+":",t[o],";"):m(t[o])?a.push.apply(a,e(t[o],o)):a.push(eh(o)+": "+(null==(n=t[o])||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||o in u.A||o.startsWith("--")?String(n).trim():n+"px")+";"));return r?[r+" {"].concat(a,["}"]):a}(e):e.toString()}var em=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ey(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return v(e)||m(e)?em(ef(f(y,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:em(ef(f(e,r)))}var eg=function(e,t,r){return void 0===r&&(r=g),e.theme!==r.theme&&e.theme||t||r.theme},ev=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eb=/(^-|-$)/g;function ew(e){return e.replace(ev,"-").replace(eb,"")}var eR=function(e){return q(V(e)>>>0)};function eE(e){return"string"==typeof e}var eS=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ex=o.createContext();function eC(e){var t=(0,o.useContext)(ex),r=(0,o.useMemo)(function(){var r;return r=e.theme,r?v(r)?r(t):Array.isArray(r)||"object"!=typeof r?x(8):t?p({},t,{},r):r:x(14)},[e.theme,t]);return e.children?o.createElement(ex.Provider,{value:r},e.children):null}ex.Consumer;var ek={},eN=function(e){return function e(t,r,n){if(void 0===n&&(n=g),!(0,a.isValidElementType)(r))return x(1,String(r));var o=function(){return t(r,n,ey.apply(void 0,arguments))};return o.withConfig=function(a){return e(t,r,p({},n,{},a))},o.attrs=function(a){return e(t,r,p({},n,{attrs:Array.prototype.concat(n.attrs,a).filter(Boolean)}))},o}(function e(t,r,n){var a=w(t),i=!eE(t),s=r.attrs,l=void 0===s?y:s,u=r.componentId,d=void 0===u?(x=r.displayName,C=r.parentComponentId,ek[k="string"!=typeof x?"sc":ew(x)]=(ek[k]||0)+1,N=k+"-"+eR("5.3.11"+k+ek[k]),C?C+"-"+N:N):u,f=r.displayName,m=void 0===f?eE(t)?"styled."+t:"Styled("+b(t)+")":f,R=r.displayName&&r.componentId?ew(r.displayName)+"-"+r.componentId:r.componentId||d,E=a&&t.attrs?Array.prototype.concat(t.attrs,l).filter(Boolean):l,S=r.shouldForwardProp;a&&t.shouldForwardProp&&(S=r.shouldForwardProp?function(e,n,a){return t.shouldForwardProp(e,n,a)&&r.shouldForwardProp(e,n,a)}:t.shouldForwardProp);var x,C,k,N,A,P=new K(n,R,a?t.componentStyle:void 0),T=P.isStatic&&0===l.length,L=function(e,t){return function(e,t,r,n){var a,i,s,l,u,d=e.attrs,h=e.componentStyle,f=e.defaultProps,m=e.foldedComponentIds,y=e.shouldForwardProp,b=e.styledComponentId,w=e.target,R=(a=eg(t,(0,o.useContext)(ex),f)||g,void 0===a&&(a=g),i=p({},t,{theme:a}),s={},d.forEach(function(e){var t,r,n,a=e;for(t in v(a)&&(a=a(i)),a)i[t]=s[t]="className"===t?(r=s[t],n=a[t],r&&n?r+" "+n:r||n):a[t]}),[i,s]),E=R[0],S=R[1],x=(l=ea(),u=eo(),n?h.generateAndInjectStyles(g,l,u):h.generateAndInjectStyles(E,l,u)),C=S.$as||t.$as||S.as||t.as||w,k=eE(C),N=S!==t?p({},t,{},S):t,A={};for(var P in N)"$"!==P[0]&&"as"!==P&&("forwardedAs"===P?A.as=N[P]:(y?y(P,c.A,C):!k||(0,c.A)(P))&&(A[P]=N[P]));return t.style&&S.style!==t.style&&(A.style=p({},t.style,{},S.style)),A.className=Array.prototype.concat(m,b,x!==b?x:null,t.className,S.className).filter(Boolean).join(" "),A.ref=r,(0,o.createElement)(C,A)}(A,e,t,T)};return L.displayName=m,(A=o.forwardRef(L)).attrs=E,A.componentStyle=P,A.displayName=m,A.shouldForwardProp=S,A.foldedComponentIds=a?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):y,A.styledComponentId=R,A.target=a?t.target:t,A.withComponent=function(t){var a=r.componentId,o=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(a[r]=e[r]);return a}(r,["componentId"]),i=a&&a+"-"+(eE(t)?t:ew(b(t)));return e(t,p({},o,{attrs:E,componentId:i}),n)},Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];for(var o=0;o<n.length;o++){var i=n[o];if(eS(i))for(var s in i)"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&function(t,r,n){var a=t[n];eS(r)&&eS(a)?e(a,r):t[n]=r}(t,i[s],s)}return t}({},t.defaultProps,e):e}}),Object.defineProperty(A,"toString",{value:function(){return"."+A.styledComponentId}}),i&&h()(A,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),A},e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){eN[e]=eN(e)});var eA=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=G(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var a=n(ef(this.rules,t,r,n).join(""),""),o=this.componentId+e;r.insertRules(o,o,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function eP(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=ey.apply(void 0,[e].concat(r)),i="sc-global-"+eR(JSON.stringify(a)),s=new eA(a,i);function l(e){var t=ea(),r=eo(),n=(0,o.useContext)(ex),a=(0,o.useRef)(t.allocateGSInstance(i)).current;return t.server&&u(a,e,t,n,r),(0,o.useLayoutEffect)(function(){if(!t.server)return u(a,e,t,n,r),function(){return s.removeStyles(a,t)}},[a,e,t,n,r]),null}function u(e,t,r,n,a){if(s.isStatic)s.renderStyles(e,S,r,a);else{var o=p({},t,{theme:eg(t,n,l.defaultProps)});s.renderStyles(e,o,r,a)}}return o.memo(l)}function eT(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=ey.apply(void 0,[e].concat(r)).join("");return new es(eR(a),a)}(n=(function(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var r=O();return"<style "+[r&&'nonce="'+r+'"',R+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?x(2):e._emitSheetCSS()},this.getStyleElement=function(){if(e.sealed)return x(2);var t,r=((t={})[R]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=O();return n&&(r.nonce=n),[o.createElement("style",p({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(e){return this.sealed?x(2):o.createElement(ei,{sheet:this.instance},e)},n.interleaveWithNodeStream=function(e){return x(3)};let eL=eN},34005(e,t,r){r.d(t,{U:()=>m});var n=r(74848),a=r(16522),o=r(95136),i=r(40914),s=r(94709),l=r(97665),u=r(51862),c=r(39367),d=r(62538),h=r(49472),p=r(58846);let f={};function m(e){let t,r,m,y,g,v,b=(0,a.c)(17),{appName:w,children:R,dataRouterEnabled:E}=e,{colorMode:S,dayScheme:x,nightScheme:C}=(0,p.A)();b[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,h.SX)(),b[0]=t):t=b[0];let k=t;return b[1]!==R?(r=(0,n.jsx)(i.k6,{children:R}),b[1]=R,b[2]=r):r=b[2],b[3]!==w||b[4]!==r?(m=(0,n.jsx)(c.V,{appName:w,children:r}),b[3]=w,b[4]=r,b[5]=m):m=b[5],b[6]!==E||b[7]!==m?(y=(0,n.jsx)(u.v,{enabled:E,children:m}),b[6]=E,b[7]=m,b[8]=y):y=b[8],b[9]!==S||b[10]!==x||b[11]!==C||b[12]!==y?(g=(0,n.jsx)(d.n,{children:(0,n.jsx)(s.NP,{colorMode:S,dayScheme:x,nightScheme:C,preventSSRMismatch:!0,children:y})}),b[9]=S,b[10]=x,b[11]=C,b[12]=y,b[13]=g):g=b[13],b[14]!==w||b[15]!==g?(v=(0,n.jsx)(l.Ht,{client:k,children:(0,n.jsx)(o.y,{appName:w,category:"",metadata:f,children:g})}),b[14]=w,b[15]=g,b[16]=v):v=b[16],v}m.displayName="BaseProviders"},56175(e,t,r){r.d(t,{h:()=>c});var n=r(74848),a=r(16522),o=r(70247),i=r(40914),s=r(96540),l=r(9534);function u({ssrError:e}){let{addToast:t}=(0,i.Y6)(),r=l.z[e.textContent||""];return(0,s.useEffect)(()=>{r||t({type:"error",message:"SSR failed, see console for error details (Staff Only)"})},[]),null}function c(e){let t,r,i,s=(0,a.c)(5),{ssrError:l}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(o.V,{}),s[0]=t):t=s[0],s[1]!==l?(r=l&&(0,n.jsx)(u,{ssrError:l}),s[1]=l,s[2]=r):r=s[2],s[3]!==r?(i=(0,n.jsxs)(n.Fragment,{children:[t,r]}),s[3]=r,s[4]=i):i=s[4],i}u.displayName="SSRErrorToast",c.displayName="CommonElements"},36010(e,t,r){r.d(t,{g:()=>l,t:()=>c});var n=r(74848),a=r(16522),o=r(8470),i=r(96540),s=r(84156);let l=Symbol.for("errorBoundaryMetadata");class u extends i.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){let t={critical:this.props.critical||!1,reactAppName:this.props.appName,reactErrorBoundaryName:this.props.boundaryName},r={critical:this.props.critical,boundaryName:this.props.boundaryName,hasCustomHandler:"function"==typeof this.props.onError};e[l]=r,"function"==typeof this.props.onError&&this.props.onError(e,t)}render(){return this.state.error?void 0===this.props.fallback?(0,n.jsx)(s.M,{type:"httpError"}):this.props.fallback:this.props.children}}function c(e){let t,r=(0,a.c)(3),s=i.use(o.I),l=e.appName||s?.appName;return r[0]!==l||r[1]!==e?(t=(0,n.jsx)(u,{...e,appName:l}),r[0]=l,r[1]=e,r[2]=t):t=r[2],t}c.displayName="ErrorBoundary"},84156(e,t,r){r.d(t,{M:()=>s});var n=r(74848),a=r(16522),o=r(46249);let i={404:"Didn\u2019t find anything here!",500:"Looks like something went wrong!"};function s(e){let t,r,s,l=(0,a.c)(7),{httpStatus:u,type:c}=e,d="fetchError"===c?"Looks like network is down!":i[u||500];return l[0]!==u?(t=u?(0,n.jsx)("div",{className:"ErrorPage-module__Status__qiBNt",children:u}):null,l[0]=u,l[1]=t):t=l[1],l[2]!==d?(r=(0,n.jsx)("div",{className:"ErrorPage-module__Message__zz8Qu",children:d}),l[2]=d,l[3]=r):r=l[3],l[4]!==t||l[5]!==r?(s=(0,n.jsxs)(o.A,{as:"h1",tabIndex:-1,className:"ErrorPage-module__Heading__seAzU",children:["Error",t,r]}),l[4]=t,l[5]=r,l[6]=s):s=l[6],s}s.displayName="ErrorPage"},12833(e,t,r){r.d(t,{s:()=>i});var n=r(74848),a=r(16522),o=r(50964);let i=e=>{let t,r,i=(0,a.c)(5),{children:s,features:l}=e;i[0]!==l?(t={enabled_features:l},i[0]=l,i[1]=t):t=i[1];let u=t;return i[2]!==s||i[3]!==u?(r=(0,n.jsx)(o.z,{value:u,children:s}),i[2]=s,i[3]=u,i[4]=r):r=i[4],r};i.displayName="FeatureFlagProvider"},31199(e,t,r){r.d(t,{a:()=>o});var n=r(5045),a=r(41763);function o({path:e,Component:t,shouldNavigateOnError:r,transitionType:o,children:i}){return{path:e,Component:t,coreLoader:async function e({location:e}){let t;try{let r=`${e.pathname}${e.search}`;t=await window.fetch(r,{headers:{Accept:"application/json",...(0,n.kt)(),"X-GitHub-Target":"dotcom","X-React-Router":"json",...(0,n.jC)("navigator")}});let o=t?.headers?.get("X-Github-Request-Id");o&&(0,a.Ex)(o)}catch{return{type:r?"route-handled-error":"error",error:{type:"fetchError"}}}if(t.redirected)return{type:"redirect",url:t.url};if(!t.ok)return{type:r?"route-handled-error":"error",error:{type:"httpError",httpStatus:t.status}};try{let e=await t.json();return{type:"loaded",data:e,title:e.title}}catch{return{type:r?"route-handled-error":"error",error:{type:"badResponseError"}}}},loadFromEmbeddedData:function({embeddedData:e}){return{data:e,title:e.title}},transitionType:o,children:i}}},77236(e,t,r){r.d(t,{N:()=>n.cD,k:()=>n.Zm});var n=r(88015)},47398(e,t,r){r.d(t,{C:()=>c,l:()=>d});var n=r(74848),a=r(16522),o=r(96540),i=r(84156),s=r(70842),l=r(83194),u=r(50964);let c=(0,o.createContext)(null);function d(e){let t,r,o=(0,a.c)(9),{appPayload:d,children:h,error:p,navigateOnError:f,routes:m,routeStateMap:y}=e;return o[0]!==d||o[1]!==h||o[2]!==p||o[3]!==f||o[4]!==y?(t=p&&!f?(0,n.jsx)(i.M,{...p}):(0,n.jsx)(u.z,{value:d,children:(0,n.jsx)(c,{value:p,children:(0,n.jsx)(s.Y,{value:y,children:h})})}),o[0]=d,o[1]=h,o[2]=p,o[3]=f,o[4]=y,o[5]=t):t=o[5],o[6]!==m||o[7]!==t?(r=(0,n.jsx)(l.d,{routes:m,children:t}),o[6]=m,o[7]=t,o[8]=r):r=o[8],r}c.displayName="NavigationErrorContext",d.displayName="NavigatorRouter"},66653(e,t,r){r.d(t,{c:()=>c});var n=r(74848),a=r(16522),o=r(34005),i=r(56175),s=r(36010),l=r(83194);let u=[];function c(e){let t,r,c,d,h=(0,a.c)(11),{partialName:p,onError:f,children:m,ssrError:y}=e;return h[0]!==y?(t=(0,n.jsx)(i.h,{ssrError:y}),h[0]=y,h[1]=t):t=h[1],h[2]!==m||h[3]!==t?(r=(0,n.jsxs)(l.d,{routes:u,children:[m,t]}),h[2]=m,h[3]=t,h[4]=r):r=h[4],h[5]!==f||h[6]!==r?(c=(0,n.jsx)(s.t,{onError:f,children:r}),h[5]=f,h[6]=r,h[7]=c):c=h[7],h[8]!==p||h[9]!==c?(d=(0,n.jsx)(o.U,{appName:p,dataRouterEnabled:!1,children:c}),h[8]=p,h[9]=c,h[10]=d):d=h[10],d}c.displayName="PartialEntry"},23234(e,t,r){r.d(t,{p:()=>l});var n=r(74848),a=r(16522),o=r(25649),i=r(88015),s=r(96540);function l(e){let t,r,l,u=(0,a.c)(8),{children:c,partialName:d}=e,h=(0,i.Ri)();if(u[0]!==h||u[1]!==d?(t=()=>{h&&(0,o.N7)(Error(`PartialRouter used inside another Router in partial "${d}"`))},r=[h,d],u[0]=h,u[1]=d,u[2]=t,u[3]=r):(t=u[2],r=u[3]),(0,s.useEffect)(t,r),h){let e;return u[4]!==c?(e=(0,n.jsx)(n.Fragment,{children:c}),u[4]=c,u[5]=e):e=u[5],e}return u[6]!==c?(l=(0,n.jsx)(i.Kd,{children:c}),u[6]=c,u[7]=l):l=u[7],l}l.displayName="PartialRouter"},62538(e,t,r){r.d(t,{n:()=>s});var n=r(74848),a=r(16522),o=r(73537),i=r(50279);function s(e){let t,r,s=(0,a.c)(3),{children:l}=e;if(s[0]===Symbol.for("react.memo_cache_sentinel")){for(let e of(t={},(0,o.fQ)()))e.startsWith("primer_react_")&&(t[e]=!0);s[0]=t}else t=s[0];let u=t;return s[1]!==l?(r=(0,n.jsx)(i.g,{flags:u,children:l}),s[1]=l,s[2]=r):r=s[2],r}r(96540),s.displayName="PrimerFeatureFlags"},42089(e,t,r){r.d(t,{VM:()=>E,JP:()=>S,fD:()=>w});var n=r(74848),a=r(16522),o=r(52111),i=r(96540),s=r(51189),l=r(19236);let u={actualDuration:"BROWSER_REACT_PROFILER_APP_ACTUAL_DURATION",baseDuration:"BROWSER_REACT_PROFILER_APP_BASE_DURATION",commitLag:"BROWSER_REACT_PROFILER_APP_COMMIT_LAG",renderEfficiency:"BROWSER_REACT_PROFILER_APP_RENDER_EFFICIENCY"},c={actualDuration:"BROWSER_REACT_PROFILER_ROUTE_ACTUAL_DURATION",baseDuration:"BROWSER_REACT_PROFILER_ROUTE_BASE_DURATION",commitLag:"BROWSER_REACT_PROFILER_ROUTE_COMMIT_LAG",renderEfficiency:"BROWSER_REACT_PROFILER_ROUTE_RENDER_EFFICIENCY"},d={mount:.2,update:.02,"nested-update":.2},h={mount:50,update:32,"nested-update":16};function p(e,t,r,n){return t>(h[e]??50)||r>50||n<d[e]}function f(e,t,r,n,a){let o=window.location.href;(0,s.au)({name:e.actualDuration,value:r,tags:t,requestUrl:o},!1,1),(0,s.au)({name:e.baseDuration,value:n,tags:t,requestUrl:o},!1,1),(0,s.au)({name:e.commitLag,value:a,tags:t,requestUrl:o},!1,1),n>0&&(0,s.au)({name:e.renderEfficiency,value:r/n,tags:t,requestUrl:o},!1,1)}let m=null;function y(){return"u"<typeof window?1:(null===m&&(m=Math.random()),m)}let g=()=>{},v={onAppRender:g,onRouteRender:g,isEnabled:!1},b=(0,i.createContext)(null);b.displayName="ProfilerContext";let w=(0,i.memo)(function(e){let t,r,o=(0,a.c)(6),{isDataRouterEnabled:s,appName:d,children:h}=e;o[0]!==d||o[1]!==s?(t={appName:d,isDataRouterEnabled:s},o[0]=d,o[1]=s,o[2]=t):t=o[2];let m=function(e){let t,r=(0,a.c)(9),{appName:n,isDataRouterEnabled:o}=e;e:{let e,a,s;if(!(0,l.I)()){t=v;break e}r[0]!==n||r[1]!==o?(e=(e,t,r,a,s,l)=>{requestIdleCallback(()=>{let e=l-s;p(t,r,e,y())&&function({actualDuration:e,baseDuration:t,commitLag:r,phase:n,appName:a,isDataRouterEnabled:o}){f(u,{phase:n,appName:a,isDataRouterEnabled:String(o),reactVersion:i.version},e,t,r)}({actualDuration:r,baseDuration:a,commitLag:e,phase:t,appName:n,isDataRouterEnabled:o})},{timeout:2e3})},r[0]=n,r[1]=o,r[2]=e):e=r[2];let d=e;r[3]!==n||r[4]!==o?(a=(e,t,r,a,s,l)=>{requestIdleCallback(()=>{let u=l-s;p(t,r,u,y())&&function({actualDuration:e,baseDuration:t,commitLag:r,phase:n,appName:a,isDataRouterEnabled:o,routeId:s}){f(c,{phase:n,appName:a,routeId:s,isDataRouterEnabled:String(o),reactVersion:i.version},e,t,r)}({actualDuration:r,baseDuration:a,commitLag:u,phase:t,appName:n,isDataRouterEnabled:o,routeId:e})},{timeout:2e3})},r[3]=n,r[4]=o,r[5]=a):a=r[5];let h=a;r[6]!==d||r[7]!==h?(s={onAppRender:d,onRouteRender:h,isEnabled:!0},r[6]=d,r[7]=h,r[8]=s):s=r[8],t=s}return t}(t);return o[3]!==h||o[4]!==m?(r=(0,n.jsx)(b,{value:m,children:h}),o[3]=h,o[4]=m,o[5]=r):r=o[5],r});w.displayName="ProfilerProvider";let R=(0,i.memo)(function(e){let t,r,s=(0,a.c)(4),{id:l,children:u,profilerType:c}=e,d=(r=(0,i.use)(b))?"app"===c?r.onAppRender:r.onRouteRender:o.l;return s[0]!==u||s[1]!==l||s[2]!==d?(t=(0,n.jsx)(i.Profiler,{id:l,onRender:d,children:u}),s[0]=u,s[1]=l,s[2]=d,s[3]=t):t=s[3],t});R.displayName="Profiler";let E=(0,i.memo)(function(e){let t,r=(0,a.c)(3),{id:o,children:i}=e;return r[0]!==i||r[1]!==o?(t=(0,n.jsx)(R,{id:o,profilerType:"app",children:i}),r[0]=i,r[1]=o,r[2]=t):t=r[2],t});E.displayName="AppProfiler";let S=(0,i.memo)(function(e){let t,r=(0,a.c)(3),{id:o,children:i}=e;return r[0]!==i||r[1]!==o?(t=(0,n.jsx)(R,{id:o,profilerType:"route",children:i}),r[0]=i,r[1]=o,r[2]=t):t=r[2],t});S.displayName="RouteProfiler"},44410(e,t,r){r.d(t,{H:()=>w});var n=r(31635),a=r(74848),o=r(94571),i=r(25649),s=r(73537),l=r(52111),u=r(5384),c=r(26316),d=r(51189),h=r(96540),p=r(5338),f=r(9534),m=r(80180),y=r(19236),g=r(87003);let v=/Minified React error #(?<invariant>\d+)/,b=["419","421"];class w extends HTMLElement{#e;#t;#r;get name(){return this.getAttribute(this.nameAttribute)}get #n(){let e=this.embeddedData?.textContent;if(!e)throw Error(`No embedded data provided for react element ${this.name}`);return e}get hasSSRContent(){return"true"===this.getAttribute("data-ssr")}get attemptedSSR(){return"true"===this.getAttribute("data-attempted-ssr")}connectedCallback(){("app-name"===this.nameAttribute||"repos-overview"===this.name)&&(0,d.UR)(this.name,this.hasSSRContent),this.embeddedDataJSON=JSON.parse(this.#n),this.#a()}disconnectedCallback(){if(this.#e?.unmount(),this.#e=void 0,this.#t&&this.#r){let e=this.#t,t=this.#r;requestIdleCallback(()=>{for(let r of e)r.parentElement&&"true"===r.getAttribute("data-styled")&&r.getAttribute("data-react-root-id")===t&&r.remove()}),this.#t=void 0,this.#r=void 0}}#o(){let e=this.classList,t=({children:t})=>((0,h.useEffect)(()=>{let t,r=window.requestAnimationFrame(()=>{t=window.requestIdleCallback(()=>{e.add("loaded")})});return()=>{cancelAnimationFrame(r),void 0!==t&&cancelIdleCallback(t)}},[]),t);return t.displayName=`${this.tagName}(${this.name})`,t}#i({requestUrl:e,duration:t}){(0,d.au)({requestUrl:e,name:"BROWSER_REACT_HYDRATION_DURATION",value:t,tags:{appName:this.name,reactVersion:h.version,renderType:this.hasSSRContent?"hydrateRoot":"createRoot"}})}#s(){try{let e=window.performance.now(),t=window.location.href;return()=>{let r=window.performance.now()-e;this.#i({requestUrl:t,duration:r})}}catch{return l.l}}async #a(){if(!this.reactRoot)throw Error("No react root provided");let e={createRoot:p.createRoot,hydrateRoot:p.hydrateRoot};(0,y.I)()&&(e=await this.#l());let t=this.#s(),r=!1,n=(e,t={})=>{r=!0;let n={critical:!0,reactAppName:this.name,...t};setTimeout(()=>{(0,i.N7)(e,n)})},o=this.embeddedDataJSON,l=this.ssrError?.textContent;(0,s.G7)("issues_service_worker")&&navigator.serviceWorker?.controller&&c.cg&&await (0,u.X7)(c.cg?.location.href||"");let f=await this.getReactNode(o,n),w=this.#o(),R=(0,a.jsx)(h.StrictMode,{children:(0,a.jsx)(w,{children:f})});if(l&&this.#u(l),this.hasSSRContent){let t=[...this.querySelectorAll('style[data-styled="true"]')],n=[...this.querySelectorAll('link[data-remove-after-hydration="true"]')],a=crypto.randomUUID();for(let e of t)e.setAttribute("data-react-root-id",a),document.head.appendChild(e);for(let e of(this.#t=t,this.#r=a,n))document.head.appendChild(e);this.#e=e.hydrateRoot(this.reactRoot,R,{...(0,g.xx)({appName:this.name}),onRecoverableError:(e,t)=>{if(!(e instanceof Error)){(0,d.iv)({incrementKey:"REACT_HYDRATION_ERROR",incrementTags:{appName:this.name,invariant:"non-error"},requestUrl:window.location.href}),(0,m.G)()&&console.warn(`\u{26A0}\u{FE0F} Recoverable hydration error (non-Error value) - ${this.name}:`,e),r=!0;return}let n=v.exec(e.message),a=String(n?.groups?.invariant),o=b.includes(a);o||(r=!0),(0,d.iv)({incrementKey:"REACT_HYDRATION_ERROR",incrementTags:{appName:this.name,invariant:a},requestUrl:window.location.href}),(0,m.G)()&&(console.groupCollapsed(`%c${o?"\u2139\uFE0F":"\u26A0\uFE0F"} Recoverable hydration error - ${this.name} - ${e.message}`,o?"background: rgba(100, 149, 237, 0.2); font-weight: bold; padding: 4px; border: 1px solid rgba(100, 149, 237, 0.5); border-radius: 4px;":"background: rgba(255, 193, 7, 0.2); font-weight: bold; padding: 4px; border: 1px solid rgba(255, 193, 7, 0.5); border-radius: 4px;",o?"This is an expected hydration mismatch and will not be reported as an error.":"This is only visible to staff users and is safe to ignore. Reach out to #react for help understanding and fixing these hydration errors"),e.cause&&console.warn("cause",e.cause),t.componentStack&&console.warn("componentStack",t.componentStack),console.groupEnd())}}),n.length>0&&requestIdleCallback(()=>{for(let e of n)e.parentElement?.removeChild(e)}),(0,d.iv)({incrementKey:"REACT_RENDER",incrementTags:{appName:this.name,csr:!1,error:r,ssr:!0,ssrError:!1}})}else this.#e=e.createRoot(this.reactRoot,(0,g.xx)({appName:this.name})),this.#e.render(R),(0,d.iv)({incrementKey:"REACT_RENDER",incrementTags:{appName:this.name,csr:!0,error:r,ssr:this.attemptedSSR,ssrError:!!this.ssrError}});t()}#l(){return r.e("93262").then(r.t.bind(r,87335,19))}#u(e){if((0,m.G)()){if(f.z[e])return console.error("SSR failed with an expected error:",f.z[e]);try{let t=JSON.parse(e),r=function(e){if(!e.stacktrace)return"";let t="\n ";return e.stacktrace.map(e=>{let{function:r,filename:n,lineno:a,colno:o}=e,i=`${t} at ${r} (${n}:${a}:${o})`;return t=" ",i}).join("\n")}(t);console.error("Error During Alloy SSR:",`${this.tagName.toLowerCase()}[${this.name}]`,`${t.type}: ${t.value}
`,t,r)}catch{console.error("Error During Alloy SSR:",`${this.tagName.toLowerCase()}[${this.name}]`,e,"unable to parse as json")}}}}(0,n.Cg)([o.aC],w.prototype,"embeddedData",void 0),(0,n.Cg)([o.aC],w.prototype,"ssrError",void 0),(0,n.Cg)([o.aC],w.prototype,"reactRoot",void 0)},83194(e,t,r){r.d(t,{d:()=>i});var n=r(74848),a=r(16522),o=r(88015);function i(e){let t,r,i=(0,a.c)(5),{routes:s,children:l}=e;i[0]!==s?(t={routes:s},i[0]=s,i[1]=t):t=i[1];let u=t;return i[2]!==u||i[3]!==l?(r=(0,n.jsx)(o.kq,{value:u,children:l}),i[2]=u,i[3]=l,i[4]=r):r=i[4],r}i.displayName="RoutesContextProvider"},90062(e,t,r){r.d(t,{E:()=>n});let n={FETCH_THEN_TRANSITION:"fetch-then-transition",TRANSITION_WHILE_FETCHING:"transition-while-fetch",TRANSITION_WITHOUT_FETCH:"transition-without-fetch"}},20547(e,t,r){r.d(t,{R:()=>n});class n{#c=new Map;register(e,t){let r=this.#c.get(e);if(r)r.resolve(t);else{let r=Promise.withResolvers();r.resolve(t),this.#c.set(e,r)}}getRegistration(e){let t=this.#c.get(e);if(t)return t;let r=Promise.withResolvers();return this.#c.set(e,r),r}}},9534(e,t,r){r.d(t,{z:()=>n});let n={"Workers not ready":"Alloy is warming its workers. This is expected during deploys and should resolve shortly."}},51862(e,t,r){r.d(t,{e:()=>o,v:()=>i});var n=r(74848),a=r(16522);let o=(0,r(96540).createContext)(!1);function i(e){let t,r=(0,a.c)(3),{enabled:i,children:s}=e;return r[0]!==s||r[1]!==i?(t=(0,n.jsx)(o,{value:i,children:s}),r[0]=s,r[1]=i,r[2]=t):t=r[2],t}o.displayName="IsDataRouterEnabledContext",i.displayName="IsDataRouterEnabledContextProvider"},39367(e,t,r){r.d(t,{V:()=>u,l:()=>c});var n=r(74848),a=r(16522),o=r(25649),i=r(96540),s=r(29749);let l=(0,i.createContext)(null);l.displayName="ReportErrorContext";let u=(0,i.memo)(function(e){let t,r,u,c,d=(0,a.c)(9),{appName:h,children:p,critical:f}=e;d[0]!==f||d[1]!==h?(t={reactAppName:h,critical:f},d[0]=f,d[1]=h,d[2]=t):t=d[2];let m=(0,i.useRef)(t);d[3]!==f||d[4]!==h?(r=()=>{m.current={reactAppName:h,critical:f}},d[3]=f,d[4]=h,d[5]=r):r=d[5],(0,i.useEffect)(r),d[6]===Symbol.for("react.memo_cache_sentinel")?(u=(e,t)=>{if(e)return(0,s.km)(e,e=>{(0,o.N7)(e,{critical:m.current.critical,reactAppName:m.current.reactAppName,...t})})},d[6]=u):u=d[6];let y=u;return d[7]!==p?(c=(0,n.jsx)(l,{value:y,children:p}),d[7]=p,d[8]=c):c=d[8],c});function c(){let e=(0,i.use)(l);if(null==e)throw Error("useReportErrorContext must be used within a ReportErrorContextProvider");return e}u.displayName="ReportErrorContextProvider"},29749(e,t,r){r.d(t,{km:()=>h,Ly:()=>m,hw:()=>p});var n=r(74848),a=r(16522),o=r(25649),i=r(88015),s=r(70944),l=r(96540),u=r(81098),c=r(13705);let d=new WeakSet;function h(e,t){d.has(e)||(d.add(e),t(e))}let p=e=>{let t,r=(0,a.c)(3),{appName:o}=e,s=(0,i.r5)();return(0,i.pX)(s)&&404===s.status?null:(r[0]!==o||r[1]!==s?(t=(0,n.jsx)(f,{appName:o,routeError:s}),r[0]=o,r[1]=s,r[2]=t):t=r[2],t)};function f(e){let t,r,i,u,c=(0,a.c)(6),{appName:d,routeError:p}=e,f=(0,l.useRef)(d);return c[0]!==d?(t=()=>{f.current=d},c[0]=d,c[1]=t):t=c[1],(0,l.useEffect)(t),c[2]!==p?(r=()=>{p&&h(p,e=>{(0,o.N7)(e,{critical:!0,reactAppName:f.current})})},i=[p],c[2]=p,c[3]=r,c[4]=i):(r=c[3],i=c[4]),(0,l.useEffect)(r,i),c[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,n.jsxs)(s.E,{border:!1,spacious:!1,children:[(0,n.jsx)(s.E.Heading,{children:"Unable to load page."}),(0,n.jsx)(s.E.Description,{children:"Please reload page and try again"})]}),c[5]=u):u=c[5],u}p.displayName="UnhandledRouteError",f.displayName="BaseRouteErrorBoundary";let m=e=>{let t,r=(0,a.c)(6),{appName:o}=e,s=(0,i.r5)();if((0,u.c)(s)){let e;return r[0]!==o||r[1]!==s?(e=(0,n.jsx)(y,{appName:o,responseError:s}),r[0]=o,r[1]=s,r[2]=e):e=r[2],e}return r[3]!==o||r[4]!==s?(t=(0,n.jsx)(f,{routeError:s,appName:o}),r[3]=o,r[4]=s,r[5]=t):t=r[5],t};function y(e){let t,r,i,u,d,p,f,m,y,g,v,b=(0,a.c)(11),{appName:w,responseError:R}=e;g=(0,a.c)(3),v=R.response.status,g[0]!==v?(m=()=>{var e;let t,r=(t=404===(e=v)?"404 Page not found":500===e?"500 Internal server error":`Error ${e}`,(0,c.Y)(t));(0,c.D)(r)},y=[v],g[0]=v,g[1]=m,g[2]=y):(m=g[1],y=g[2]),(0,l.useEffect)(m,y);let E=(0,l.useRef)(w);b[0]!==w?(t=()=>{E.current=w},b[0]=w,b[1]=t):t=b[1],(0,l.useEffect)(t),b[2]!==R?(r=()=>{h(R,e=>{(0,o.N7)(e,{critical:!0,reactAppName:E.current})})},i=[R],b[2]=R,b[3]=r,b[4]=i):(r=b[3],i=b[4]),(0,l.useEffect)(r,i),b[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,n.jsx)(s.E.Heading,{children:"Unable to load page."}),b[5]=u):u=b[5];let S=`Status: ${R.response.status} Message: ${R.message}`;return b[6]!==S?(d=(0,n.jsx)(s.E.Description,{children:S}),b[6]=S,b[7]=d):d=b[7],b[8]===Symbol.for("react.memo_cache_sentinel")?(p=(0,n.jsx)(s.E.Description,{children:"Please reload page and try again"}),b[8]=p):p=b[8],b[9]!==d?(f=(0,n.jsxs)(s.E,{border:!1,spacious:!1,children:[u,d,p]}),b[9]=d,b[10]=f):f=b[10],f}m.displayName="RootAppRouteErrorElement",y.displayName="ResponseErrorElement"},12643(e,t,r){r.d(t,{e:()=>i,f:()=>s});var n=r(88015),a=r(96540),o=r(81103);let i=(0,a.memo)(function(){let e=(0,n.zy)(),t=!!(0,n.cq)().location;return(0,o.n)(e,t,null),null});i.displayName="SoftNavLifecycleListener";let s=(0,a.memo)(function(){let e=(0,n.zy)();return(0,o.n)(e,!1,null),null});s.displayName="SoftNavLifecycleListenerLegacy"},30874(e,t,r){r.d(t,{T:()=>l});var n,a=r(73502),o=n||(n={});function i(e){var t=e.pathname;t=void 0===t?"/":t;var r=e.search;return r=void 0===r?"":r,e=void 0===(e=e.hash)?"":e,r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),e&&"#"!==e&&(t+="#"===e.charAt(0)?e:"#"+e),t}o.Pop="POP",o.Push="PUSH",o.Replace="REPLACE";let s=["_features","_tracing"];function l(e){return new Proxy(e,{get:(e,t,r)=>"navigate"===t?function(t,r){var n,o;if("number"==typeof t)return e.navigate(t);let l=e.state.location,c="string"==typeof t?function(e){var t={};if(e){var r=e.indexOf("#");0<=r&&(t.hash=e.substr(r),e=e.substr(0,r)),0<=(r=e.indexOf("?"))&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}(t):t,d=function(e){if(!e)return null;let t=new URLSearchParams(window.location.search),r=new URLSearchParams(e.search||""),n=!1;for(let e of s){let a=t.get(e);a&&!r.has(e)&&(r.set(e,a),n=!0)}if(!n)return e;let a=r.toString();return i({...e,search:a?`?${a}`:""})}(c);if(d&&function(e,t,r){try{var n,a;return!!(e.state?.loaderData?.codeViewLayoutRoute&&r?.pathname&&(n=t.pathname,a=r.pathname,n.split("/",3).join("/")!==a.split("/",3).join("/")))}catch{return!0}}(e,l,c)){let e="string"==typeof d?d:i(d);return u.hardNavigate(e),Promise.resolve()}let h=(n=l,!!(o=c)&&(void 0===o.pathname||o.pathname===n.pathname)&&(void 0===o.search||o.search===n.search)&&void 0!==o.hash&&o.hash!==n.hash);h||(0,a.SC)("react");let p=!r?.replace,f=r?.state?.skipTurbo;return e.navigate(d,{...r,preventScrollReset:!!h||r?.preventScrollReset,state:{...r?.state,skipTurbo:p?f??!0:f}})}:Reflect.get(e,t,r)})}let u={hardNavigate(e){window.location.href=e}}},2501(e,t,r){r.d(t,{$h:()=>o});var n=r(32420);class a{name;#d;embeddedData;constructor(e,t){this.name=e,this.#d=t,this.registration=this.registration.bind(this)}registration(e){return this.embeddedData=e?.embeddedData,{routes:this.#h()}}#h(){if("function"==typeof this.#d){let e=e=>{let t=this.embeddedData?.appPayload?.enabled_features;if(t&&e in t)return t[e]};return this.#d({isEnabled:e})}return this.#d}}class o{static create(e){return new o(e)}name;#p;constructor(e){this.name=e}getEmbeddedData=()=>{if(!this.#p)throw Error("getEmbeddedData should only be called after createDataRouterAppFromRoutes");return this.#p.embeddedData};createDataRouterAppFromRoutes(e){return this.#p=new a(this.name,e),this.#p}createQueryRouteConfig(e,{path:t,index:r,queries:a=[],shouldRevalidate:o}){var u,c;let d;return function(e){if(e.length>8)throw new s(e.length)}(a),function(e){if(!/^[a-z][a-zA-Z0-9]*$/.test(e))throw new l(e)}(e),new n.Wy({appName:this.name,id:e,path:t,queries:(u=a,c=e,d=new Set,Object.fromEntries(u.map(e=>{let{queryName:t,...r}="function"==typeof e?e(c):e;if(d.has(t))throw new i(t);return d.add(t),[t,r]}))),index:r??!1,getEmbeddedData:this.getEmbeddedData,shouldRevalidate:o})}}class i extends Error{constructor(e){super(`query names cannot be duplicated: \`${e}\` has already been defined for this route.`),this.name="DuplicateRouteQueryNameError"}}class s extends Error{constructor(e){super(`Invalid number of query configs error. ${e} queries supplied of a max 8 queries allowed.`),this.name="InvalidNumberOfQueryConfigsError"}}class l extends Error{constructor(e){super(`\`${e}\` must be camel cased`),this.name="InvalidIdentifierError"}}},43326(e,t,r){r.d(t,{g:()=>n});let n={Blocking:"Blocking",Deferred:"Deferred"}},24222(e,t,r){r.d(t,{Y:()=>i});var n=r(5045),a=r(43326),o=r(40604);function i({...e}={}){return{queryName:"mainQuery",queryDeps:({pathname:e})=>({pathname:e}),queryFn:e.queryFn??(async({routeId:t,queryDeps:r})=>{let a=(0,n.jC)("dataRouter"),i={...r,init:{...r?.init,headers:{...a,...r?.init?.headers}}};var s=await (0,o.X)({queryDeps:i},{encodePath:e.encodeFetchPath??!1}),l=t;let u=s.payload?.[l];if(!u)throw Error(`Unable to find payload for route Id: ${l}`);return{meta:s.meta,payload:u}}),type:a.g.Blocking,select:s,...e}}function s(e){return e.payload}},40604(e,t,r){r.d(t,{X:()=>l,i:()=>u});var n=r(7749),a=r(13759),o=r(78597),i=r(46943),s=r(81098);async function l({queryDeps:{pathname:e,searchParams:t,init:r}},{encodePath:n}={}){let u=c(n?e.split("/").map(encodeURIComponent).join("/"):e,t),d=await (0,o.Sr)(u,r);if(i.z.checkResponse(d),!d.ok)throw new s.o(d.statusText,d);let h=await d.json();return(0,a.Av)(h),h}async function u({queryDeps:{pathname:e,searchParams:t,init:r}}){let l=c(e,t),u=await (0,o.Sr)(l,r);if(i.z.checkResponse(u),!u.ok)throw new s.o(u.statusText,u);(0,n.A)((0,n.K)(document),u,!0);let d=await u.json();return(0,a.Av)(d),d}function c(e,t){let r=[e],n=(function(e){if(e instanceof URLSearchParams)return e;if("string"==typeof e)return new URLSearchParams(e);let t=new URLSearchParams;if(null==e)return t;for(let[r,n]of Array.isArray(e)?e:Object.entries(e))null!=n&&t.append(r,n);return t})(t).toString();return n&&r.push(n.toString()),r.join("?")}},32420(e,t,r){r.d(t,{yT:()=>h,Wy:()=>m});var n=r(88015),a=r(26316),o=r(37337),i=r(31993),s=r(49472),l=r(43326),u=r(74848),c=r(16522),d=r(42089);function h(){return(0,n.FE)()}let p={refetchOnWindowFocus:!1,retry:!1,networkMode:"always",staleTime:864e5},f=200;class m{#f;#m;#y;id;path;queries;index;constructor(e){this.#f=e.appName,this.id=e.id,this.path=e.path,this.queries=this.#g(e.queries),this.index=e.index,this.#m=e.getEmbeddedData,this.#y=e.shouldRevalidate}#g(e){return Object.fromEntries(y(e).map(([e,t])=>{let r=t=>(function({appName:e,routeId:t,routePath:r,queryName:n,queryDeps:a}){return[e,t,r,n,a]})({appName:this.#f,routeId:this.id,routePath:this.path,queryName:e.toString(),queryDeps:t??{}});return[e,{...t,makeQueryKey:r}]}))}isSameRoute(e){return!!("object"==typeof e&&e&&"id"in e&&"string"==typeof e.id&&e.id===this.id)}generatePath(e,t){return(0,n.AO)({pathname:(0,n.tW)(this.path,e),search:t?.search?new URLSearchParams(t.search).toString():void 0,hash:t?.hash})}#v({queryName:e,queryKey:t}){let r=(0,s.SX)(),n=this.#m(),a=n?.payload,o=this.#b({embeddedData:n,queryName:e});o&&("mainQuery"===e?delete a?.[this.id]:(delete a?.[String(e)],delete a?.[this.id]?.[e]),r.setQueryData(t,o))}#w=async({request:e,params:t})=>{var r,u;let c=[],{searchParams:d}=new URL(e.url,a.fV.origin),h=(r=this.path,u=t,(0,n.tW)(r,Object.fromEntries(y(u).map(([e,t])=>[e,void 0===t?null:t])))),m=(0,s.SX)(),g=y(this.queries).map(([e,{queryFn:r,queryDeps:n,makeQueryKey:a,type:s=l.g.Deferred,staleTimeForNavigation:u=f,navigationBehavior:y="stale-while-revalidate",...g}])=>{let v=a(n?.({pathname:h,params:t,searchParams:d})??{}),b=(0,i.j)({...p,queryKey:v,queryFn:({signal:e,meta:t})=>r({appName:v[0],routeId:v[1],routePath:v[2],queryName:v[3],queryDeps:v[4]},{signal:e,meta:t}),...g});if(this.#v({queryName:e,queryKey:b.queryKey}),o.KJ){let e={...b,staleTime:u};switch(s){case l.g.Deferred:m.prefetchQuery(e);break;case l.g.Blocking:{let t=m.getQueryState(e.queryKey);t&&"pending"!==t.status&&"error"!==t.status&&"fetching"!==t.fetchStatus?Date.now()-t.dataUpdatedAt>=u&&(m.invalidateQueries({queryKey:e.queryKey}),"network-first"===y&&c.push(m.fetchQuery(e))):c.push(m.fetchQuery(e));break}default:throw Error(`Invalid QueryRouteQueryType defined, \`${s}\`. Valid QueryRouteQueryTypes are ${JSON.stringify(Object.keys(l.g))}`)}}return[e,{queryConfig:b,type:s}]});return await Promise.all(c),{route:this,queries:Object.fromEntries(g)}};toRoute=({Component:e,element:t,...r})=>{let n=function(e,{element:t,Component:r}){if(!t&&!r)return;let n=()=>{let n,a=(0,c.c)(3),o=null;if(void 0!==t){let e;a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,u.jsx)(u.Fragment,{children:t}),a[0]=e):e=a[0],o=e}else if(r){let e;a[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,u.jsx)(r,{}),a[1]=e):e=a[1],o=e}return o?(a[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,u.jsx)(d.JP,{id:e,children:o}),a[2]=n):n=a[2],n):null};return n.displayName="ProfilerWrapper",r?.preload&&(n.preload=r.preload),r?.ssr!==void 0&&(n.ssr=r.ssr),n}(this.id,{element:t,Component:e}),a=this.#y;return this.index?{...r,id:this.id,children:void 0,path:this.path,index:this.index,loader:this.#w,shouldRevalidate:a,Component:n}:{...r,id:this.id,path:this.path,index:this.index,loader:this.#w,shouldRevalidate:a,Component:n}};#b({embeddedData:e,queryName:t}){let r,n=e?.payload;if(!(r="mainQuery"===t?n?.[this.id]:n?.[String(t)]||n?.[this.id]?.[t]))return;if("mainQuery"!==t)return r;let a=e?.title||e?.meta?.title;return{meta:a?{title:a}:void 0,payload:r}}}let y=e=>Object.entries(e)},38412(e,t,r){r.d(t,{D:()=>o});var n=r(43326),a=r(40604);function o({partialName:e,queryDeps:t,type:r,navigationBehavior:o,...i}){return s=>{let l=`${s}.${e||"RailsPartial"}`;return{queryName:l,queryDeps:t||(({pathname:e})=>({pathname:`${e}/partial`})),queryFn:async e=>{let t=await (0,a.i)(e),r=t.payload?.[l];if(null==r)throw Error(`Unable to find payload for query: ${l}`);return r},type:r||n.g.Blocking,navigationBehavior:o||"network-first",...i}}}},81098(e,t,r){r.d(t,{c:()=>a,o:()=>n});class n extends Error{response;constructor(e,t){super(e),this.response=t,this.name="ResponseError"}}function a(e){return e instanceof n}},53035(e,t,r){r.d(t,{E:()=>o});var n=r(96540),a=r(51862);function o(){return(0,n.use)(a.e)}},45577(e,t,r){r.d(t,{n:()=>o});var n=r(16522),a=r(32420);function o(e){let t,r=(0,n.c)(5),o=(0,a.yT)();if(r[0]!==e||r[1]!==o){let n;r[3]!==e?(n=t=>t.id===e.id,r[3]=e,r[4]=n):n=r[4],t=o.find(n),r[0]=e,r[1]=o,r[2]=t}else t=r[2];return!!t}},22234(e,t,r){r.d(t,{L:()=>o});var n=r(16522),a=r(32420);function o(e){let t,r=(0,n.c)(5),o=(0,a.yT)();if(r[0]!==o||r[1]!==e){let n;r[3]!==e?(n=t=>t.id===e.id,r[3]=e,r[4]=n):n=r[4],t=o.find(n),r[0]=o,r[1]=e,r[2]=t}else t=r[2];let s=t;if(!s){let t=o.map(i).join(", ");throw Error(`Cannot read params from unmounted route with ID "${e.id}". Mounted route IDs are: "${t}"`)}return s.params}function i(e){return e.id}},26941(e,t,r){r.d(t,{B1:()=>l,V3:()=>p,ks:()=>d,pw:()=>f,xX:()=>h});var n=r(16522),a=r(88015),o=r(97286),i=r(65510),s=r(32420);function l(e,t){let{allowReadFromChildRoutes:r}=void 0===t?{}:t,n=(0,s.yT)(),o=n.findIndex(t=>t.id===e.id);if(-1===o){let t=n.map(c).join(", ");throw Error(`Cannot read data from unmounted route with ID "${e.id}". Mounted route IDs are: ${t}`)}let{route:i}=(0,a.LG)(),{queries:l}=(0,a.Ew)(e.id),d=n.findIndex(e=>e.id===i.id);if(!r&&o>d){let t=n.map(u).join(", ");throw Error(`Cannot read data from child route with ID "${e.id}" from parent route "${i.id}". Use { allowReadFromChildRoutes: true } option to enable this.  Mounted route IDs are: ${t}`)}return l}function u(e){return e.id}function c(e){return e.id}function d(e,t,r){return l(e,r)[t]}function h(e,t,r){let a,i,s=(0,n.c)(6),{queryConfig:l}=d(e,t);s[0]!==l||s[1]!==r?(a={...l,...r},s[0]=l,s[1]=r,s[2]=a):a=s[2];let u=(0,o.I)(a);return s[3]!==l.queryKey||s[4]!==u?(i={...u,queryKey:l.queryKey},s[3]=l.queryKey,s[4]=u,s[5]=i):i=s[5],i}function p(e,t,r){let a,o,s=(0,n.c)(6),{queryConfig:l}=d(e,t);s[0]!==l||s[1]!==r?(a={...l,...r},s[0]=l,s[1]=r,s[2]=a):a=s[2];let u=(0,i.U)(a);return s[3]!==l.queryKey||s[4]!==u?(o={...u,queryKey:l.queryKey},s[3]=l.queryKey,s[4]=u,s[5]=o):o=s[5],o}function f(e,t,r){let a,i,s,l=(0,n.c)(7);l[0]===Symbol.for("react.memo_cache_sentinel")?(a={allowReadFromChildRoutes:!0},l[0]=a):a=l[0];let{queryConfig:u}=d(e,t,a);l[1]!==u||l[2]!==r?(i={...u,...r},l[1]=u,l[2]=r,l[3]=i):i=l[3];let c=(0,o.I)(i);return l[4]!==u.queryKey||l[5]!==c?(s={...c,queryKey:u.queryKey},l[4]=u.queryKey,l[5]=c,l[6]=s):s=l[6],s}},80180(e,t,r){r.d(t,{G:()=>a});var n=r(51189);function a(){return(0,n.Xl)()}},94875(e,t,r){r.d(t,{Y:()=>a});var n=r(96540);function a(e){return Object.assign((0,n.lazy)(e),{preload:async()=>{await e()}})}},19236(e,t,r){r.d(t,{I:()=>a});var n=r(58418);function a(){return n.A.isEnabled()}},49472(e,t,r){r.d(t,{SX:()=>s});var n=r(65490);function a(e){return"[object Object]"===Object.prototype.toString.call(e)}let o=null,i={defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1,networkMode:"always",queryKeyHashFn:function(e){return JSON.stringify(e,(e,t)=>!function(e){if(!a(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!a(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}(t)?t instanceof URLSearchParams?new URLSearchParams([...t.entries()].sort(([e],[t])=>e.localeCompare(t))).toString():"bigint"==typeof t?`$bigint:${t}`:t instanceof Set?Array.from(t).sort():t instanceof Map?Array.from(t.entries()).sort(([e],[t])=>e.localeCompare(t)).reduce((e,[t,r])=>(e[t]=r,e),{}):t:Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}))}},mutations:{networkMode:"always"}}};function s(){return o??=new n.E({...i,...void 0})}},1496(e,t,r){r.d(t,{Mm:()=>i,QJ:()=>s,b3:()=>o});var n=r(16522),a=r(96540);function o(e){let t=e?.anchor;if(!t)return{};let r=t.getAttribute("data-inital-disabled")?.toLowerCase()==="true";return"disabled"in t&&(t.disabled=r),t.classList.remove("cursor-wait"),{reactPartialAnchor:{__wrapperElement:e}}}function i(e){let t,r,o,i,l=(0,n.c)(7),u=(0,a.useRef)(e.__wrapperElement.anchor||null),[c,d]=(0,a.useState)(!1);l[0]!==c?(t=()=>{d(!c)},l[0]=c,l[1]=t):t=l[1];let h=t;return l[2]!==c?(r=()=>{u.current&&(u.current.setAttribute("aria-expanded",c.toString()),u.current.setAttribute("aria-haspopup","true"))},o=[u,c],l[2]=c,l[3]=r,l[4]=o):(r=l[3],o=l[4]),(0,a.useEffect)(r,o),s(e,h),l[5]!==c?(i={ref:u,open:c,setOpen:d},l[5]=c,l[6]=i):i=l[6],i}function s(e,t){let r,o,i=(0,n.c)(3),s=(0,a.useRef)(e.__wrapperElement.anchor);i[0]!==t?(r=()=>{let e=s.current;if(e)return e.addEventListener("click",t),()=>e.removeEventListener("click",t)},o=[s,t],i[0]=t,i[1]=r,i[2]=o):(r=i[1],o=i[2]),(0,a.useEffect)(r,o)}},87003(e,t,r){r.d(t,{xx:()=>o});var n=r(25649),a=r(36010);function o(e){return{onCaughtError:function(e){let{appName:t}=e;return(e,r)=>{let o=r.errorBoundary?.props,i=e[a.g],s=o?.critical??i?.critical??!1,l=o?.boundaryName??i?.boundaryName??r.errorBoundary?.constructor?.name,u="function"==typeof o?.onError;e&&"object"==typeof e&&"shouldSkipReport"in e&&e.shouldSkipReport||u||(0,n.N7)(e,{critical:s,reactAppName:t,reactErrorBoundaryName:l})}}(e),onUncaughtError:function(e){let{appName:t}=e;return(e,r)=>{(0,n.N7)(e,{critical:!0,reactAppName:t})}}(e)}}},27527(e,t,r){r.d(t,{w:()=>eA,o:()=>eN});var n=r(31635),a=r(74848),o=r(94571),i=r(87253),s=r(73537),l=r(56341),u=r(88015),c=r(30874),d=r(20547);let h=new d.R;async function p(e){return h.getRegistration(e).promise}var f=r(34005),m=r(56175),y=r(16522),g=r(96540),v=r(53035),b=r(36425);let w=[],R=[],E=(0,g.memo)(function(e){let t=(0,y.c)(4),{routes:r}=e;if((0,v.E)()){let e;return t[0]!==r?(e=(0,a.jsx)(x,{routes:r}),t[0]=r,t[1]=e):e=t[1],e}{let e;return t[2]!==r?(e=(0,a.jsx)(S,{routes:r}),t[2]=r,t[3]=e):e=t[3],e}});E.displayName="RouterDevTools";let S=(0,g.memo)(function(e){let t,r,n,a=(0,y.c)(9),{routes:o}=e,i="u"<typeof document,s=(0,u.zy)();a[0]!==s||a[1]!==o?(t=i?w:(0,u.ue)(o,s)?.map(A)??w,a[0]=s,a[1]=o,a[2]=t):t=a[2];let l=t;e:{let e;if(i){r=R;break e}a[3]!==o?(e=N(o),a[3]=o,a[4]=e):e=a[4],r=e}let c=r;return a[5]!==s||a[6]!==l||a[7]!==c?(n={location:s,matches:l,routes:c},a[5]=s,a[6]=l,a[7]=c,a[8]=n):n=a[8],C(n),null});S.displayName="NavigatorRouterDevTools";let x=(0,g.memo)(function(e){let t,r,n=(0,y.c)(6),{routes:a}=e,o="u"<typeof document,i=(0,u.zy)(),s=(0,u.FE)(),l=o?w:s;e:{let e;if(o){t=R;break e}n[0]!==a?(e=N(a),n[0]=a,n[1]=e):e=n[1],t=e}let c=t;return n[2]!==i||n[3]!==l||n[4]!==c?(r={location:i,matches:l,routes:c},n[2]=i,n[3]=l,n[4]=c,n[5]=r):r=n[5],C(r),null});function C(e){let t,r,n,a,o=(0,y.c)(10),{location:i,matches:s,routes:l}=e;o[0]!==i||o[1]!==s||o[2]!==l?(t=()=>{let e=new AbortController;return document.addEventListener("turbo:load",()=>{(0,b.n)().setState({location:i,matches:s,routes:l})},{signal:e.signal}),()=>{e.abort()}},r=[i,l,s],o[0]=i,o[1]=s,o[2]=l,o[3]=t,o[4]=r):(t=o[3],r=o[4]),(0,g.useEffect)(t,r),o[5]!==i||o[6]!==s||o[7]!==l?(n=()=>((0,b.n)().setState({location:i,matches:s,routes:l}),k),a=[i,l,s],o[5]=i,o[6]=s,o[7]=l,o[8]=n,o[9]=a):(n=o[8],a=o[9]),(0,g.useEffect)(n,a)}function k(){(0,b.n)().setState(null)}function N(e,t=""){let r=[];for(let o of e){let e,i=!0===o.index,s=o.path??"";if(i)e=t.startsWith("/")&&!t.endsWith("/")?t.endsWith("/")?t:`${t}/`:t||"/";else{var n,a;e=s.startsWith("/")?s:(n=t,a=s,n?a?`${n.replace(/\/+$/,"")}/${a.replace(/^\/+/,"")}`:n:a)}let l="id"in o&&"string"==typeof o.id?o.id:e||"/";r.push({id:l,pathname:e||"/",route:o,loaderData:void 0}),o.children&&r.push(...N(o.children,e))}return r}function A(e){return function({pathname:e,route:t,params:r}){return{id:t.id??t.path??e,pathname:e,params:r,loaderData:void 0,data:void 0,handle:t.handle}}(e)}x.displayName="DataRouterDevTools";var P=r(83194),T=r(50964);function L(e,t,r){let n,a,o,i=(0,y.c)(8),s=(0,g.useRef)(void 0),l=(0,g.useRef)(t.state);i[0]!==t.state?(n=()=>{l.current=t.state},i[0]=t.state,i[1]=n):n=i[1],(0,g.useEffect)(n),i[2]!==r||i[3]!==e||i[4]!==t.pathname||i[5]!==t.search?(a=()=>{if("POP"===r)return;let n=t.pathname+t.search;if(void 0===s.current)s.current=n;else if(s.current!==n&&!e){var a;if(!("object"==typeof(a=l.current)&&null!==a&&u.Vn in a&&!0===a[u.Vn])){let e=document.querySelector("[data-react-autofocus]");!e&&(e=document.querySelector("react-app h1"))&&!e.hasAttribute("tabindex")&&e.setAttribute("tabindex","-1"),e?.focus()}s.current=n}},o=[e,t.pathname,t.search,r],i[2]=r,i[3]=e,i[4]=t.pathname,i[5]=t.search,i[6]=a,i[7]=o):(a=i[6],o=i[7]),(0,g.useEffect)(a,o)}function _(){return L(!1,(0,u.zy)(),(0,u.wQ)()),null}_.displayName="NavigationFocusListener";var j=r(97665),D=r(19598),O=r(40109),I=r(43326),$=r(32420);let M=O.z.INITIAL;function z(){let e,t,r,n,a=(0,y.c)(10),o=(0,T.X)(),i=(0,$.yT)(),s=(0,j.jE)();return a[0]!==o||a[1]!==i||a[2]!==s?(e=()=>{let e=U(i,s);document.dispatchEvent(new D.gh({payload:e,appPayload:o}))},t=[i,o,s],a[0]=o,a[1]=i,a[2]=s,a[3]=e,a[4]=t):(e=a[3],t=a[4]),(0,g.useEffect)(e,t),a[5]!==o||a[6]!==i||a[7]!==s?(r=()=>{let e=function(){let e=U(i,s);document.dispatchEvent(new D.gh({payload:e,appPayload:o}))};return document.addEventListener(M,e),()=>{document.removeEventListener(M,e)}},n=[i,o,s],a[5]=o,a[6]=i,a[7]=s,a[8]=r,a[9]=n):(r=a[8],n=a[9]),(0,g.useEffect)(r,n),null}function U(e,t){let r={};for(let n of e){if(!n.data)continue;let e=n.data.route.id;for(let a of Object.values(n.data.queries))a.type===I.g.Blocking&&(r[e]=t.getQueryData(a.queryConfig.queryKey))}return r}z.displayName="PublishPayload";var F=r(29749),W=r(52111),B=r(26316);let H=new Map,q=!1,Y=B.fV.href;async function V(){let{session:e}=await r.e("26533").then(r.bind(r,7332));document.addEventListener("turbo:click",e=>{Y=e.detail.url}),window.addEventListener("popstate",()=>{let{scrollPosition:t}=e.history.getRestorationDataForIdentifier(e.history.restorationIdentifier)||{};t&&H.set(window.location.href,t)})}async function G(){B.cg&&(q||(await V(),q=!0))}function J(){let e=window.location.href;if(e===Y&&e.includes("#")||function(e,t){try{let r=new URL(e,window.location.origin),n=new URL(t,window.location.origin);return r.pathname===n.pathname&&r.search===n.search&&""!==r.hash&&""!==n.hash&&r.hash!==n.hash}catch{return!1}}(Y,e)){Y=e;return}Y=e;let t=H.get(e);if(!t)return;let r=requestAnimationFrame(()=>{window.scrollTo(t.x,t.y)});return()=>{cancelAnimationFrame(r)}}let K=B.cg?function(){(0,g.useLayoutEffect)(J)}:W.l;function X(){let e,t=(0,y.c)(1);return(K(),"u">typeof jest)?null:(t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(u.OA,{getKey:Q}),t[0]=e):e=t[0],e)}G(),X.displayName="CombinedScrollRestoration";let Q=e=>e.pathname+e.search+e.hash;var Z=r(12643),ee=r(13705),et=r(80180);function er(){let e,t,r=(0,y.c)(4),n=(0,$.yT)(),a=(0,j.jE)();return r[0]!==n||r[1]!==a?(e=()=>{for(let e of[...n].reverse()){if(!e.data?.route)continue;let t=e.data?.queries.mainQuery;if(!t)continue;let r=function(e,t){let r=e.getQueryData(t.queryKey);if(r){if("title"in r&&r.title)return r.title;else if("meta"in r&&r.meta)return r.meta.title}else{(0,et.G)()&&console.error("Unexpected attempt to read title for a query that is not in the query client. If you encounter this error in your application, please reach out to #react to help diagnose the issue.");return}}(a,t.queryConfig);if(r){(0,ee.D)((0,ee.Y)(r));break}}},t=[n,a],r[0]=n,r[1]=a,r[2]=e,r[3]=t):(e=r[2],t=r[3]),(0,g.useEffect)(e,t),null}async function en(e,t){let{routes:r}=(await p("app-shell")).registration({embeddedData:t});if(1!==r.length)throw Error("Expected app shell routes to have a single entry");let[n]=r;return[{...n,children:e,index:!1}]}er.displayName="TitleManager";let ea=new d.R;async function eo(e){return ea.getRegistration(e).promise}var ei=r(65594);function es(e){let t,r,n,o,i,s,l,c,d=(0,y.c)(2),{App:h}=e;return s=(0,y.c)(8),l=(0,ei.B)(),c=(0,T.X)(),s[0]!==c||s[1]!==l?(r=()=>{let e=new AbortController;return document.addEventListener(O.z.INITIAL,function(){document.dispatchEvent(new D.gh({payload:l,appPayload:c}))},{signal:e.signal}),()=>{e.abort()}},n=[c,l],s[0]=c,s[1]=l,s[2]=r,s[3]=n):(r=s[2],n=s[3]),(0,g.useEffect)(r,n),s[4]!==c||s[5]!==l?(o=()=>{document.dispatchEvent(new D.gh({payload:l,appPayload:c}))},i=[c,l],s[4]=c,s[5]=l,s[6]=o,s[7]=i):(o=s[6],i=s[7]),(0,g.useEffect)(o,i),d[0]!==h?(t=h?(0,a.jsx)(h,{children:(0,a.jsx)(u.sv,{})}):(0,a.jsx)(u.sv,{}),d[0]=h,d[1]=t):t=d[1],t}es.displayName="AppWrapper";var el=r(36010),eu=r(47398),ec=r(73502),ed=r(90062);let eh=(e,t)=>null!==e&&null!==t&&e.pathname===t.pathname&&e.search===t.search&&!!t.hash;class ep{state;#R;#E;initialEmbeddedData;constructor(e,t,r,n){this.#R=n;const a=this.matchLocation(e);if(!a)throw Error(`No route found for initial location: ${e.pathname} in [${this.#S()}]`);const{data:o,title:i,isValid:s}=a.route.loadFromEmbeddedData({embeddedData:t,location:e,pathParams:a.params});this.initialEmbeddedData=t,this.#E=a.route,this.state={location:e,routeStateMap:{[e.key]:{type:"loaded",data:o,title:i,isValid:s}},appPayload:r,pendingNavigation:null,error:null,navigateOnError:!1,turboCount:(0,l.JV)().turboCount||0}}update(e){this.state=Object.assign({},this.state,e);let t=this.getAppNavigationState();this.#x?.(t)}#C=[];subscribe(e){let t=this.#C.push(e);return()=>{this.#C[t]=null}}#x(e){for(let t of this.#C)t?.(e)}#k=new WeakMap;getAppNavigationState=()=>{let e=this.#k.get(this.state);if(e)return e;let{location:t,error:r,navigateOnError:n,routeStateMap:a,appPayload:o,pendingNavigation:i}=this.state,s={location:t,error:r,navigateOnError:n,routeStateMap:a,appPayload:o,isLoading:!!i};return this.#k.set(this.state,s),s};async handleHistoryUpdate(e){if("POP"===e.action&&(0,l.JV)().turboCount!==this.state.turboCount)return;if(this.isHashNavigation(e))return void this.navigateWithCurrentPayload(e);"POP"!==e.action&&(0,ec.SC)("react");let t=this.state.routeStateMap[e.location.key],r=void 0!==t;if(t&&t.isValid&&(r=t.isValid()),r)this.navigateFromHistory(e);else{let t=this.matchLocation(e.location);if(!t)throw Error("handleHistoryUpdate should only be called for matching routes");if(t.route.transitionType===ed.E.TRANSITION_WHILE_FETCHING&&this.navigateWithoutPayload(e),t.route.transitionType===ed.E.TRANSITION_WITHOUT_FETCH)return void this.navigateWithoutPayload(e);let r=(0,l.JV)().usr?.__prefetched_data;if(r)return void this.leaveLoadingStateWithRouteData(e,r,r.title);this.enterLoadingState(e);let n=await t.route.coreLoader({location:e.location,pathParams:t.params,embeddedData:t.route===this.#E?this.initialEmbeddedData:void 0});if(e.location!==this.state.pendingNavigation?.update.location)return;switch(n.type){case"loaded":this.leaveLoadingStateWithRouteData(e,n.data,n.title,n.isValid);break;case"error":this.leaveLoadingStateWithError(e,n.error,!1);break;case"redirect":window.location.replace(n.url+location.hash);break;case"route-handled-error":this.leaveLoadingStateWithError(e,n.error,!0);break;default:throw Error(`Unexpected loader result type: ${n.type}`)}}}matchLocation(e){return ef(this.#R,e)}isHashNavigation(e){return eh(this.state.location,e.location)}navigateFromHistory(e){this.update({location:e.location,pendingNavigation:null,error:null})}enterLoadingState(e){this.update({pendingNavigation:{update:e}})}leaveLoadingStateWithError(e,t,r){this.update({location:e.location,error:t,pendingNavigation:null,navigateOnError:r})}navigateWithoutPayload(e){this.update({location:e.location,error:null})}navigateWithCurrentPayload(e){let t=this.state.location.key,r=t+e.location.hash,n={...e.location,key:r},a={...this.state.routeStateMap,[r]:this.state.routeStateMap[t]};this.update({...e,location:n,routeStateMap:a,error:null})}leaveLoadingStateWithRouteData(e,t,r,n){this.update({location:e.location,pendingNavigation:null,routeStateMap:t?{...this.state.routeStateMap,[e.location.key]:{type:"loaded",data:t,title:r,isValid:n}}:this.state.routeStateMap,error:null})}#S(){return this.#R.map(e=>e.path).join(", ")}}function ef(e,t){return(0,u.ue)(e,t.pathname)?.[0]}var em=r(81103);function ey(e){var t;let r,n,o,i,s,l,c,d,h,p,v,b,w,R=(0,y.c)(32),{appName:E,initialLocation:S,history:x,embeddedData:C,routes:k,App:N,ssrError:A,onError:P}=e;R[0]!==E||R[1]!==C||R[2]!==S||R[3]!==k?(r={initialLocation:S,appName:E,embeddedData:C,routes:k},R[0]=E,R[1]=C,R[2]=S,R[3]=k,R[4]=r):r=R[4];let[T,_]=function(e){let t,r,n,a,o,i=(0,y.c)(13),{initialLocation:s,embeddedData:l,routes:u}=e;i[0]!==l||i[1]!==s||i[2]!==u?(t=()=>{let{appPayload:e,...t}=l;return new ep(s,{...t,enabled_features:e?.enabled_features?e.enabled_features:{}},e,u)},i[0]=l,i[1]=s,i[2]=u,i[3]=t):t=i[3];let[c]=(0,g.useState)(t);i[4]!==c?(r=e=>{let t=c.subscribe(e);return()=>{t()}},i[4]=c,i[5]=r):r=i[5];let d=(0,g.useSyncExternalStore)(r,c.getAppNavigationState,c.getAppNavigationState);i[6]!==c?(n=e=>{(0,g.startTransition)(()=>{c.handleHistoryUpdate(e)})},i[6]=c,i[7]=n):n=i[7];let h=n;return i[8]!==h?(a={handleHistoryUpdate:h},i[8]=h,i[9]=a):a=i[9],i[10]!==d||i[11]!==a?(o=[d,a],i[10]=d,i[11]=a,i[12]=o):o=i[12],o}(r),{location:j,error:D,routeStateMap:O,appPayload:I,navigateOnError:$,isLoading:M}=T,{handleHistoryUpdate:z}=_;return L(M,j),(0,em.n)(j,M,D),t=O[j.key],b=(0,y.c)(5),w=(0,g.useRef)(null),b[0]!==t||b[1]!==D||b[2]!==j?(p=()=>{if(w.current||(w.current=j),!eh(w.current,j)&&(D||t))if(D){var e;let t,r=(t=404===(e=D).httpStatus?"404 Page not found":500===e.httpStatus?"500 Internal server error":e.httpStatus?`Error ${e.httpStatus}`:"Error",(0,ee.Y)(t));(0,ee.D)(r)}else t?.type==="loaded"&&t.title&&(0,ee.D)((0,ee.Y)(t.title));w.current?.key!==j.key&&(w.current=j)},v=[D,t,j],b[0]=t,b[1]=D,b[2]=j,b[3]=p,b[4]=v):(p=b[3],v=b[4]),(0,g.useEffect)(p,v),K(),R[5]!==z||R[6]!==x?(n=()=>x.listen(z),o=[x,z],R[5]=z,R[6]=x,R[7]=n,R[8]=o):(n=R[7],o=R[8]),(0,g.useLayoutEffect)(n,o),R[9]!==N||R[10]!==k?(i=(0,a.jsx)(eg,{routes:k,App:N}),R[9]=N,R[10]=k,R[11]=i):i=R[11],R[12]!==x||R[13]!==j||R[14]!==i?(s=(0,a.jsx)(u.Ix,{location:j,navigator:x,children:i}),R[12]=x,R[13]=j,R[14]=i,R[15]=s):s=R[15],R[16]!==A?(l=(0,a.jsx)(m.h,{ssrError:A}),R[16]=A,R[17]=l):l=R[17],R[18]!==I||R[19]!==D||R[20]!==$||R[21]!==O||R[22]!==k||R[23]!==s||R[24]!==l?(c=(0,a.jsxs)(eu.l,{appPayload:I,error:D,navigateOnError:$,routes:k,routeStateMap:O,children:[s,l]}),R[18]=I,R[19]=D,R[20]=$,R[21]=O,R[22]=k,R[23]=s,R[24]=l,R[25]=c):c=R[25],R[26]!==P||R[27]!==c?(d=(0,a.jsx)(el.t,{onError:P,critical:!0,children:c}),R[26]=P,R[27]=c,R[28]=d):d=R[28],R[29]!==E||R[30]!==d?(h=(0,a.jsx)(f.U,{appName:E,dataRouterEnabled:!1,children:d}),R[29]=E,R[30]=d,R[31]=h):h=R[31],h}function eg(e){let t,r,n,o,i=(0,y.c)(10),{App:s,routes:l}=e;return i[0]!==s?(t=(0,a.jsx)(es,{App:s}),i[0]=s,i[1]=t):t=i[1],i[2]!==l?(r=(0,a.jsx)(E,{routes:l}),i[2]=l,i[3]=r):r=i[3],i[4]!==t||i[5]!==r?(n=(0,a.jsxs)(a.Fragment,{children:[t,r]}),i[4]=t,i[5]=r,i[6]=n):n=i[6],i[7]!==l||i[8]!==n?(o=[{element:n,children:l}],i[7]=l,i[8]=n,i[9]=o):o=i[9],(0,u.Ye)(o)}function ev(e){"scheduler"in window&&window.scheduler?.postTask?window.scheduler.postTask(e,{priority:"background"}):window.requestIdleCallback(e,{timeout:5e3})}function eb(e,t=4){if("u"<typeof window)return;let r=function e(t){let r=[];for(let n of t){let t=n.Component;t?.preload&&r.push(t),"children"in n&&n.children&&r.push(...e(n.children))}return r}(e);if(0===r.length)return;let n=0,a=async()=>{let e=r.slice(n,n+t);n+=t,await Promise.allSettled(e.map(e=>e.preload?.())),n<r.length&&ev(a)};ev(a)}async function ew(e){try{await e.preload?.()}catch{}}async function eR(e,t){let r=ef(e,t);if(!r)return;let n=function e(t){return t.flatMap(t=>{let r=t.Component;return[...r?.preload&&!1!==r.ssr?[ew(r)]:[],...t.children?e(t.children):[]]})}([r.route]);await Promise.allSettled(n)}async function eE(e,t){let r=(0,u.ue)(e,t);if(!r||0===r.length)return;let n=function e(t){return t.flatMap(t=>{let r=t.Component;return[...r?.preload&&!1!==r.ssr?[ew(r)]:[],...t.children?e(t.children):[]]})}(r.map(e=>e.route));await Promise.allSettled(n)}G(),ey.displayName="NavigatorClientEntry",eg.displayName="AppRoutes";var eS=r(42089),ex=r(49472),eC=r(44410);class ek extends eC.H{nameAttribute="app-name";appRoutes=[];get enabledFeatures(){if(!this.embeddedDataJSON)return[];let e=this.embeddedDataJSON.appPayload?.enabled_features||{};return Object.keys(e).filter(t=>e[t])}get routes(){return this.appRoutes||this.routerOrHistory?.routes||[]}get navigate(){return"push"in this.routerOrHistory?this.routerOrHistory.push:"navigate"in this.routerOrHistory?this.routerOrHistory.navigate:void 0}connectedCallback(){super.connectedCallback(),this.uuid=(0,i._S)(),(0,i.cW)(this.uuid),window.addEventListener("popstate",this.popStateListener,!0)}popStateListener=e=>{e.state&&this.uuid!==(0,l.JV)().appId&&this.routerOrHistory?.dispose()};disconnectedCallback(){window.removeEventListener("popstate",this.popStateListener,!0),this.routerOrHistory?.dispose(),super.disconnectedCallback()}get isDataRouterEnabled(){return"true"===this.getAttribute("data-data-router-enabled")}get includeAppShell(){return"true"===this.getAttribute("data-app-shell")}async getReactNode(e,t){if(this.isDataRouterEnabled){let r=await p(this.name);return this.#N(e,t,r.registration)}let r=await eo(this.name);return this.#A(e,t,r.registration)}async #N(e,t,r){e&&(this.#P(e),(0,ex.SX)().removeQueries({queryKey:[this.name]}));let{routes:n}=r({embeddedData:e});return this.includeAppShell&&(n=await en(n,e)),this.routerOrHistory=(0,c.T)((0,u.Ys)(function(e,{ssrError:t,appName:r,children:n,HydrateFallback:o,dataRouterEnabled:i,appPayload:s}){return[{id:"__DATA_ROUTER_ROOT__",errorElement:(0,a.jsx)(F.hw,{appName:r}),HydrateFallback:o,element:(0,a.jsx)(f.U,{appName:r,dataRouterEnabled:i,children:(0,a.jsx)(T.z,{value:s,children:(0,a.jsxs)(P.d,{routes:e,children:[(0,a.jsx)(u.sv,{}),n,(0,a.jsx)(m.h,{ssrError:t}),(0,a.jsx)(Z.e,{}),(0,a.jsx)(_,{}),(0,a.jsx)(X,{}),(0,a.jsx)(z,{}),(0,a.jsx)(er,{}),(0,a.jsx)(E,{routes:e})]})})}),children:[{id:"__DATA_ROUTER_APPLICATION_ROUTES__",errorElement:(0,a.jsx)(F.Ly,{appName:r}),children:e}]}]}(n,{appPayload:e.appPayload,ssrError:this.ssrError,appName:this.name,dataRouterEnabled:!0}))),await eE(this.routerOrHistory.routes,this.routerOrHistory.state.location.pathname),(0,s.G7)("react_preload_all_routes")&&eb(n),(0,a.jsx)(eS.fD,{appName:this.name,isDataRouterEnabled:!0,children:(0,a.jsx)(eS.VM,{id:this.name,children:(0,a.jsx)(u.pg,{router:this.routerOrHistory})})})}async #A(e,t,r){let{App:n,routes:o}=r(),i=this.getAttribute("initial-path");if(this.isLazy){let t=await fetch(i,{mode:"no-cors",cache:"no-cache",credentials:"include"}),{payload:r}=await t.json();e.payload=r}let c=globalThis.window,{pathname:d,search:h,hash:p}=new URL(`${i}${c?.location.hash??""}`,c?.location.href??"https://github.com");(0,l.C3)({key:Math.random().toString(36).substr(2,8)});let f=function(e={}){let t,r=(0,u.aA)({...e,v5Compat:!0}),n=[],a=!1;function o(e){if(n.length>0)for(let t of n)t({retry(){e()}});else e()}return{get action(){return r.action},get location(){return r.location},createHref:e=>r.createHref(e),createURL:e=>r.createURL(e),encodeLocation:e=>r.encodeLocation(e),push(e,t){o(()=>r.push(e,t))},replace(e,t){o(()=>r.replace(e,t))},go(e){o(()=>r.go(e))},listen(e){if(t)throw Error("A history only accepts one active listener");return t=e,()=>{t=void 0}},dispose:r.listen(e=>{if(a){a=!1;return}if(e.action===u.bi.Pop&&n.length&&null!==e.delta&&n.length>0){let t=e.delta;for(let e of(a=!0,r.go(-1*t),n))e({retry(){r.go(t)}})}else t?.(e)}),block:e=>(n.push(e),()=>{n=n.filter(t=>t!==e)})}}({window:c});this.routerOrHistory=f,this.appRoutes=o;let{key:m,state:y}=f.location,g={pathname:d,search:h,hash:p,key:m,state:y};return await eR(o,g),(0,s.G7)("react_preload_all_routes")&&eb(o),(0,a.jsx)(eS.fD,{appName:this.name,isDataRouterEnabled:!1,children:(0,a.jsx)(eS.VM,{id:this.name,children:(0,a.jsx)(ey,{appName:this.name,initialLocation:g,history:f,embeddedData:e,routes:o,App:n,ssrError:this.ssrError,onError:t})})})}#P(e){if(e.payload)for(let t of this.querySelectorAll("rails-partial")){let r=t.getAttribute("data-partial-name");r&&(e.payload[r]=t.innerHTML)}}get isLazy(){return"true"===this.getAttribute("data-lazy")}}function eN(e,t){ea.register(e,{type:"NavigatorApp",registration:t})}function eA(e){h.register(e.name,{type:"DataRouterApp",registration:e.registration})}(0,n.Cg)([(0,o.p_)("react-app")],ek)},5468(e,t,r){r.d(t,{k:()=>f});var n=r(31635),a=r(74848),o=r(94571),i=r(88015),s=r(66653),l=r(23234),u=r(42089),c=r(1496);let d=new(r(20547)).R;var h=r(44410);class p extends h.H{nameAttribute="partial-name";async getReactNode(e,t){var r;let{Component:n}=await (r=this.name,d.getRegistration(r).promise),o=this.closest("react-partial-anchor"),h=(0,c.b3)(o),p={...e,props:{...e.props,...h}},f=(0,a.jsx)(i.BV,{children:(0,a.jsx)(i.qh,{path:"*",element:(0,a.jsx)(n,{...p.props})})});return(0,a.jsx)(u.fD,{appName:this.name,isDataRouterEnabled:!1,children:(0,a.jsx)(u.VM,{id:this.name,children:(0,a.jsx)(s.c,{partialName:this.name,onError:t,ssrError:this.ssrError,children:(0,a.jsx)(l.p,{partialName:this.name,children:f})})})})}}function f(e,t){return d.register(e,t)}(0,n.Cg)([(0,o.p_)("react-partial")],p)},70842(e,t,r){r.d(t,{Y:()=>n});let n=(0,r(96540).createContext)({});n.displayName="RouteStateMapContext"},36425(e,t,r){r.d(t,{n:()=>i});let n="@github-ui/react-core/router:state-update";class a extends Event{constructor(){super(n)}}class o extends EventTarget{static #T;#L=null;constructor(){super()}static getInstance(){return o.#T||(o.#T=new o),o.#T}getState(){return this.#L}setState(e){this.#L=e,this.dispatchEvent(new a)}subscribe(e){let t=new AbortController;return this.addEventListener(n,()=>{e(this.#L)},{signal:t.signal}),e(this.#L),()=>{t.abort()}}}function i(){return o.getInstance()}},50964(e,t,r){r.d(t,{X:()=>o,z:()=>a});var n=r(96540);let a=(0,n.createContext)(void 0);function o(){return(0,n.use)(a)}a.displayName="AppPayloadContext",a.displayName="AppPayloadContext"},58846(e,t,r){let n;r.d(t,{A:()=>d});var a=r(16522),o=r(26316),i=r(96540);function s(e){return{colorMode:function(e){switch(e){case"light":return"day";case"dark":return"night";default:return"auto"}}(e.colorMode),dayScheme:e.lightTheme,nightScheme:e.darkTheme}}let l=new Set(["light_colorblind_high_contrast","light_tritanopia_high_contrast","dark_colorblind_high_contrast","dark_tritanopia_high_contrast","dark_dimmed_high_contrast"]),u={light_colorblind_high_contrast:"light_high_contrast",light_tritanopia_high_contrast:"light_high_contrast",dark_colorblind_high_contrast:"dark_high_contrast",dark_tritanopia_high_contrast:"dark_high_contrast",dark_dimmed_high_contrast:"dark_high_contrast"};function c(e){var t;return void 0!==e&&(t=e,l.has(t))?u[e]:e}let d=o.XC?function(){let e,t,r,n,l,u,d=(0,a.c)(11),{documentElement:h}=o.XC;d[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>s(h.dataset),d[0]=e):e=d[0];let[p,f]=(0,i.useState)(e);return d[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=new MutationObserver(()=>f(s(h.dataset)));return e.observe(h,{attributes:!0,attributeFilter:["data-color-mode","data-light-theme","data-dark-theme"]}),()=>e.disconnect()},r=[h],d[1]=t,d[2]=r):(t=d[1],r=d[2]),(0,i.useEffect)(t,r),d[3]!==p.dayScheme?(n=c(p.dayScheme),d[3]=p.dayScheme,d[4]=n):n=d[4],d[5]!==p.nightScheme?(l=c(p.nightScheme),d[5]=p.nightScheme,d[6]=l):l=d[6],d[7]!==p||d[8]!==n||d[9]!==l?(u={...p,dayScheme:n,nightScheme:l},d[7]=p,d[8]=n,d[9]=l,d[10]=u):u=d[10],u}:function(){return s(n||{})}},4605(e,t,r){r.d(t,{N:()=>i});var n=r(88015),a=r(96540),o=r(70842);function i(){return(0,a.use)(o.Y)[(0,n.zy)().key]}},6877(e,t,r){r.d(t,{h:()=>a,u:()=>o});var n=r(50964);let a=()=>(0,n.X)()?.enabled_features??{},o=e=>!!a()[e]},24275(e,t,r){r.d(t,{q:()=>o});var n=r(96540),a=r(47398);function o(){return(0,n.use)(a.C)}},65594(e,t,r){r.d(t,{B:()=>a});var n=r(4605);function a(){let e=(0,n.N)(),t=e&&"loaded"===e.type?e.data:void 0;return t?.payload}},81103(e,t,r){r.d(t,{n:()=>c});var n=r(16522),a=r(73502),o=r(40109),i=r(97398),s=r(26316),l=r(51189),u=r(96540);let c=(e,t,r)=>{let a,l,c=(0,n.c)(6),p=(0,u.useRef)(void 0);c[0]!==r||c[1]!==t||c[2]!==e.key||c[3]!==e.pathname?(a=()=>{t||void 0!==p.current&&p.current===e.key||((0,i.LM)()?(d(r),function(e){let t=s.XC?.querySelector("meta[name=visitor-payload]");if(!t)return;let r=JSON.parse(atob(t.content));r.referrer=new URL(e,s.fV.origin).href,t.content=btoa(JSON.stringify(r))}(e.pathname)):h(r),document.dispatchEvent(new CustomEvent(o.z.REACT_DONE,{detail:{error:r}})),p.current=e.key)},l=[e.key,e.pathname,t,r],c[0]=r,c[1]=t,c[2]=e.key,c[3]=e.pathname,c[4]=a,c[5]=l):(a=c[4],l=c[5]),(0,u.useEffect)(a,l)},d=e=>{e?(0,a.o4)():((0,a.rZ)(),(0,a.iS)())},h=e=>{let t;if(e)return;let r=(window.performance.measure(p),(t=window.performance.getEntriesByName(p).pop())?t.duration:null);r&&(0,l.iv)({requestUrl:window.location.href,distributionKey:"REACT_NAV_DURATION",distributionValue:Math.round(r),distributionTags:["REACT_NAV_HARD"]})},p="react_nav_duration"},88015(e,t,r){r.d(t,{B6:()=>T,wQ:()=>tl,rE:()=>th,Ri:()=>ti,FE:()=>tA,Vn:()=>rk,Kd:()=>rh,KP:()=>tj,cq:()=>tN,kq:()=>rP,o1:()=>D,OA:()=>ry,g:()=>tf,x$:()=>tm,bi:()=>u,K:()=>rC,ok:()=>r_,pg:()=>tB,Zg:()=>rj,Ew:()=>tT,Gy:()=>rb,Zp:()=>rT,RQ:()=>tu,Ys:()=>rd,N_:()=>rf,k2:()=>rm,tW:()=>P,cD:()=>rI,aA:()=>d,LG:()=>tP,r5:()=>tL,ue:()=>x,Zm:()=>r$,C5:()=>tY,sv:()=>tV,BV:()=>tK,Ix:()=>tJ,AO:()=>y,qh:()=>tG,pX:()=>q,zy:()=>ts,Ye:()=>ty,IO:()=>rw});var n,a,o=r(96540),i=r.t(o,2),s=e=>{throw TypeError(e)},l=(e,t,r)=>(t.has(e)||s("Cannot read from private field"),r?r.call(e):t.get(e)),u=((n=u||{}).Pop="POP",n.Push="PUSH",n.Replace="REPLACE",n),c="popstate";function d(e={}){return function(e,t,r,n={}){let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s="POP",l=null,u=d();function d(){return(i.state||{idx:null}).idx}function h(){s="POP";let e=d(),t=null==e?null:e-u;u=e,l&&l({action:s,location:p.location,delta:t})}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let p={get action(){return s},get location(){return e(a,i)},listen(e){if(l)throw Error("A history only accepts one active listener");return a.addEventListener(c,h),l=e,()=>{a.removeEventListener(c,h),l=null}},createHref:e=>t(a,e),createURL:function(e){return v(e)},encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=m(p.location,e,t);let n=f(r,u=d()+1),c=p.createHref(r);try{i.pushState(n,"",c)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(c)}o&&l&&l({action:s,location:p.location,delta:1})},replace:function(e,t){s="REPLACE";let r=m(p.location,e,t);let n=f(r,u=d()),a=p.createHref(r);i.replaceState(n,"",a),o&&l&&l({action:s,location:p.location,delta:0})},go:e=>i.go(e)};return p}(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return m("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:y(t)},null,e)}function h(e,t){if(!1===e||null==e)throw Error(t)}function p(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,r=null,n){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?g(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10)}}function y({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function g(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function v(e,t=!1){let r="http://localhost";"u">typeof window&&(r="null"!==window.location.origin?window.location.origin:window.location.href),h(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:y(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}var b=class{constructor(e){if(((e,t,r)=>t.has(e)?s("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r))(this,a,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(l(this,a).has(e))return l(this,a).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw Error("No value found for context")}set(e,t){l(this,a).set(e,t)}};a=new WeakMap;var w=new Set(["lazy","caseSensitive","path","id","index","children"]),R=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function E(e,t,r=[],n={},a=!1){return e.map((e,o)=>{let i=[...r,String(o)],s="string"==typeof e.id?e.id:i.join("-");if(h(!0!==e.index||!e.children,"Cannot specify children on an index route"),h(a||!n[s],`Found a route id collision on id "${s}".  Route id's must be globally unique within Data Router usages`),!0===e.index){let r={...e,id:s};return n[s]=S(r,t(r)),r}{let r={...e,id:s,children:void 0};return n[s]=S(r,t(r)),e.children&&(r.children=E(e.children,t,i,n,a)),r}})}function S(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function x(e,t,r="/"){return C(e,t,r,!1)}function C(e,t,r,n){let a=_(("string"==typeof t?g(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r=[],n=[],a="",o=!1){let i=(t,i,s=o,l)=>{var u,c;let d,p,f={relativePath:void 0===l?t.path||"":l,caseSensitive:!0===t.caseSensitive,childrenIndex:i,route:t};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(a)&&s)return;h(f.relativePath.startsWith(a),`Absolute route path "${f.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(a.length)}let m=U([a,f.relativePath]),y=n.concat(f);t.children&&t.children.length>0&&(h(!0!==t.index,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),e(t.children,r,y,m,s)),(null!=t.path||t.index)&&r.push({path:m,score:(u=m,c=t.index,p=(d=u.split("/")).length,d.some(A)&&(p+=-2),c&&(p+=2),d.filter(e=>!A(e)).reduce((e,t)=>e+(N.test(t)?3:""===t?1:10),p)),routesMeta:y})};return t.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let s=e(a.join("/")),l=[];return l.push(...s.map(e=>""===e?i:[i,e].join("/"))),o&&l.push(...s),l.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))i(e,t,!0,r);else i(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null;for(let e=0;null==i&&e<o.length;++e){let t=L(a);i=function(e,t,r=!1){let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=T({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u),d=s.route;if(!c&&l&&r&&!n[n.length-1].route.index&&(c=T({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:U([o,c.pathname]),pathnameBase:F(U([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=U([o,c.pathnameBase]))}return i}(o[e],t,n)}return i}function k(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],loaderData:t[r.id],handle:r.handle}}var N=/^:[\w-]+$/,A=e=>"*"===e;function P(e,t={}){let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(p(!1,`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)(.*)/);if(o){let[,e,r,n]=o,i=t[e];return h("?"===r||null!=i,`Missing ":${e}" param`),encodeURIComponent(a(i))+n}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function T(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t=!1,r=!0){p("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=s[n]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}let a=s[n];return r&&!a?e[t]=void 0:e[t]=(a||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function L(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return p(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function _(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}var j=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function D(e,t="/"){let r,{pathname:n,search:a="",hash:o=""}="string"==typeof e?g(e):e;if(n){let e;if(e=n,j.test(e))r=n;else{if(n.includes("//")){let e=n;n=n.replace(/\/\/+/g,"/"),p(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${n}`)}r=n.startsWith("/")?O(n.substring(1),"/"):O(n,t)}}else r=t;return{pathname:r,search:W(a),hash:B(o)}}function O(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function I(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function $(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function M(e){let t=$(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function z(e,t,r,n=!1){let a,o;"string"==typeof e?a=g(e):(h(!(a={...e}).pathname||!a.pathname.includes("?"),I("?","pathname","search",a)),h(!a.pathname||!a.pathname.includes("#"),I("#","pathname","hash",a)),h(!a.search||!a.search.includes("#"),I("#","search","hash",a)));let i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=D(a,o),u=s&&"/"!==s&&s.endsWith("/"),c=(i||"."===s)&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var U=e=>e.join("/").replace(/\/\/+/g,"/"),F=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),W=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",B=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",H=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function q(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function Y(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var V="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function G(e,t){let r=e;if("string"!=typeof r||!j.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,a=!1;if(V)try{let e=new URL(window.location.href),n=new URL(r.startsWith("//")?e.protocol+r:r),o=_(n.pathname,t);n.origin===e.origin&&null!=o?r=o+n.search+n.hash:a=!0}catch(e){p(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:a,to:r}}var J=Symbol("Uninstrumented");function K(e,t,r){return 0===e.length?null:async(...n)=>{let a=await X(e,r(...n),()=>t(...n),e.length-1);if("error"===a.type)throw a.value;return a.value}}async function X(e,t,r,n){let a,o=e[n];if(o){let i,s=async()=>(i?console.error("You cannot call instrumented handlers more than once"):i=X(e,t,r,n-1),h(a=await i,"Expected a result"),"error"===a.type&&a.value instanceof Error)?{status:"error",error:a.value}:{status:"success",error:void 0};try{await o(s,t)}catch(e){console.error("An instrumentation function threw an error:",e)}i||await s(),await i}else try{let e=await r();a={type:"success",value:e}}catch(e){a={type:"error",value:e}}return a||{type:"error",value:Error("No result assigned in instrumentation chain.")}}function Q(e){var t;let{request:r,context:n,params:a,unstable_pattern:o}=e;return{request:{method:(t=r).method,url:t.url,headers:{get:(...e)=>t.headers.get(...e)}},params:{...a},unstable_pattern:o,context:function(e){if(!function(e){if(null===e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===ee}(e))return{get:t=>e.get(t)};{let t={...e};return Object.freeze(t),t}}(n)}}function Z(e,t){return{currentUrl:y(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}var ee=Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),et=["POST","PUT","PATCH","DELETE"],er=new Set(et),en=new Set(["GET",...et]),ea=new Set([301,302,303,307,308]),eo=new Set([307,308]),ei={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},es={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},el={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},eu=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ec="remix-router-transitions",ed=Symbol("ResetLoaderData");function eh(e,t,r,n,a,o){let i,s;if(a){for(let e of(i=[],t))if(i.push(e),e.route.id===a){s=e;break}}else i=t,s=t[t.length-1];let l=z(n||".",M(i),_(e.pathname,r)||e.pathname,"path"===o);if(null==n&&(l.search=e.search,l.hash=e.hash),(null==n||""===n||"."===n)&&s){let e=eQ(l.search);if(s.route.index&&!e)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&e){let e=new URLSearchParams(l.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();l.search=r?`?${r}`:""}}return"/"!==r&&(l.pathname=function({basename:e,pathname:t}){return"/"===t?e:U([e,t])}({basename:r,pathname:l.pathname})),y(l)}function ep(e,t,r){var n;let a,o;if(!r||!(null!=r&&("formData"in r&&null!=r.formData||"body"in r&&void 0!==r.body)))return{path:t};if(r.formMethod&&(n=r.formMethod,!en.has(n.toUpperCase())))return{path:t,error:eB(405,{method:r.formMethod})};let i=()=>({path:t,error:eB(400,{type:"invalid-body"})}),s=(r.formMethod||"get").toUpperCase(),l=eq(t);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!eX(s))return i();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,[t,r])=>`${e}${t}=${r}
`,""):String(r.body);return{path:t,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===r.formEncType){if(!eX(s))return i();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(h("function"==typeof FormData,"FormData is not available in this environment"),r.formData)a=eI(r.formData),o=r.formData;else if(r.body instanceof FormData)a=eI(r.body),o=r.body;else if(r.body instanceof URLSearchParams)o=e$(a=r.body);else if(null==r.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(r.body),o=e$(a)}catch(e){return i()}let u={formMethod:s,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(eX(u.formMethod))return{path:t,submission:u};let c=g(t);return e&&c.search&&eQ(c.search)&&a.append("index",""),c.search=`?${a}`,{path:y(c),submission:u}}function ef(e,t,r,n,a,o,i,s,l,u,c,d,h,p,f,m,y,g,v,b,w){let R,E=b?eV(b[1])?b[1].error:b[1].data:void 0,S=a.createURL(o.location),C=a.createURL(l);if(c&&o.errors){let e=Object.keys(o.errors)[0];R=i.findIndex(t=>t.route.id===e)}else if(b&&eV(b[1])){let e=b[0];R=i.findIndex(t=>t.route.id===e)-1}let k=b?b[1].statusCode:void 0,N=k&&k>=400,A={currentUrl:S,currentParams:o.matches[0]?.params||{},nextUrl:C,nextParams:i[0].params,...s,actionResult:E,actionStatus:k},P=Y(i),T=i.map((a,i)=>{var s,l,h,p,f;let m,y,g,{route:v}=a,b=null;if(null!=R&&i>R?b=!1:v.lazy?b=!0:em(v)?c?b=ey(v,o.loaderData,o.errors):(s=o.loaderData,l=o.matches[i],h=a,m=!l||h.route.id!==l.route.id,y=!s.hasOwnProperty(h.route.id),(m||y)&&(b=!0)):b=!1,null!==b)return eA(r,n,e,P,a,u,t,b);let E=!1;"boolean"==typeof w?E=w:N?E=!1:d||S.pathname+S.search===C.pathname+C.search||S.search!==C.search?E=!0:(p=o.matches[i],f=a,g=p.route.path,(p.pathname!==f.pathname||null!=g&&g.endsWith("*")&&p.params["*"]!==f.params["*"])&&(E=!0));let x={...A,defaultShouldRevalidate:E},k=eg(a,x);return eA(r,n,e,P,a,u,t,k,x,w)}),L=[];return f.forEach((e,s)=>{if(c||!i.some(t=>t.route.id===e.routeId)||p.has(s))return;let l=o.fetchers.get(s),f=l&&"idle"!==l.state&&void 0===l.data,b=x(y,e.path,g);if(!b){if(v&&f)return;L.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(m.has(s))return;let R=eZ(b,e.path),E=new AbortController,S=eO(a,e.path,E.signal),C=null;if(h.has(s))h.delete(s),C=eP(r,n,S,b,R,u,t);else if(f)d&&(C=eP(r,n,S,b,R,u,t));else{let e={...A,defaultShouldRevalidate:"boolean"==typeof w?w:!N&&d};eg(R,e)&&(C=eP(r,n,S,b,R,u,t,e))}C&&L.push({key:s,routeId:e.routeId,path:e.path,matches:C,match:R,request:S,controller:E})}),{dsMatches:T,revalidatingFetchers:L}}function em(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function ey(e,t,r){if(e.lazy)return!0;if(!em(e))return!1;let n=null!=t&&e.id in t,a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function eg(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function ev(e,t,r,n,a,o){let i;if(e){let t=n[e];h(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),i=t.children}else i=r;let s=[],l=[];if(t.forEach(e=>{let t=i.find(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>r.children?.some(r=>e(t,r))))})(e,t));t?l.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=E(s,a,[e||"_","patch",String(i?.length||"0")],n);i.push(...t)}if(o&&l.length>0)for(let e=0;e<l.length;e++){let{existingRoute:t,newRoute:r}=l[e],[n]=E([r],a,[],{},!0);Object.assign(t,{element:n.element?n.element:t.element,errorElement:n.errorElement?n.errorElement:t.errorElement,hydrateFallbackElement:n.hydrateFallbackElement?n.hydrateFallbackElement:t.hydrateFallbackElement})}}var eb=new WeakMap,ew=({key:e,route:t,manifest:r,mapRouteProperties:n})=>{let a=r[t.id];if(h(a,"No route found in manifest"),!a.lazy||"object"!=typeof a.lazy)return;let o=a.lazy[e];if(!o)return;let i=eb.get(a);i||(i={},eb.set(a,i));let s=i[e];if(s)return s;let l=(async()=>{let t=w.has(e),r=void 0!==a[e]&&"hasErrorBoundary"!==e;if(t)p(!t,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(r)p(!1,`Route "${a.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await o();null!=t&&(Object.assign(a,{[e]:t}),Object.assign(a,n(a)))}"object"==typeof a.lazy&&(a.lazy[e]=void 0,Object.values(a.lazy).every(e=>void 0===e)&&(a.lazy=void 0))})();return i[e]=l,l},eR=new WeakMap;async function eE(e){let t=e.matches.filter(e=>e.shouldLoad),r={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,n)=>{r[t[n].route.id]=e}),r}async function eS(e){return e.matches.some(e=>e.route.middleware)?ex(e,()=>eE(e)):eE(e)}function ex(e,t){return eC(e,t,e=>{var t,r;if(eK(t=e)&&(r=t.status,ea.has(r))&&t.headers.has("Location"))throw e;return e},eY,function(t,r,n){if(n)return Promise.resolve(Object.assign(n.value,{[r]:{type:"error",result:t}}));{let{matches:n}=e,a=Math.min(Math.max(n.findIndex(e=>e.route.id===r),0),Math.max(n.findIndex(e=>e.shouldCallHandler()),0));return Promise.resolve({[eF(n,n[a].route.id).route.id]:{type:"error",result:t}})}})}async function eC(e,t,r,n,a){let{matches:o,request:i,params:s,context:l,unstable_pattern:u}=e,c=o.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]);return await ek({request:i,params:s,context:l,unstable_pattern:u},c,t,r,n,a)}async function ek(e,t,r,n,a,o,i=0){let s,{request:l}=e;if(l.signal.aborted)throw l.signal.reason??Error(`Request aborted: ${l.method} ${l.url}`);let u=t[i];if(!u)return await r();let[c,d]=u,h=async()=>{if(s)throw Error("You may only call `next()` once per middleware");try{return(s={value:await ek(e,t,r,n,a,o,i+1)}).value}catch(e){return(s={value:await o(e,c,s)}).value}};try{let t=await d(e,h),r=null!=t?n(t):void 0;if(a(r))return r;if(s)return r??s.value;return(s={value:await h()}).value}catch(e){return await o(e,c,s)}}function eN(e,t,r,n,a){let o=ew({key:"middleware",route:n.route,manifest:t,mapRouteProperties:e}),i=function(e,t,r,n,a){let o,i=r[e.id];if(h(i,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=eR.get(i);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let r=(async()=>{h("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),r={};for(let e in t){let n=t[e];if(void 0===n)continue;let a=R.has(e),o=void 0!==i[e]&&"hasErrorBoundary"!==e;a?p(!a,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):o?p(!o,`Route "${i.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):r[e]=n}Object.assign(i,r),Object.assign(i,{...n(i),lazy:void 0})})();return eR.set(i,r),r.catch(()=>{}),{lazyRoutePromise:r,lazyHandlerPromise:r}}let s=Object.keys(e.lazy),l=[];for(let i of s){if(a&&a.includes(i))continue;let s=ew({key:i,route:e,manifest:r,mapRouteProperties:n});s&&(l.push(s),i===t&&(o=s))}let u=l.length>0?Promise.all(l).then(()=>{}):void 0;return u?.catch(()=>{}),o?.catch(()=>{}),{lazyRoutePromise:u,lazyHandlerPromise:o}}(n.route,eX(r.method)?"action":"loader",t,e,a);return{middleware:o,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function eA(e,t,r,n,a,o,i,s,l=null,u){let c=!1,d=eN(e,t,r,a,o);return{...a,_lazyPromises:d,shouldLoad:s,shouldRevalidateArgs:l,shouldCallHandler:e=>(c=!0,l)?"boolean"==typeof u?eg(a,{...l,defaultShouldRevalidate:u}):"boolean"==typeof e?eg(a,{...l,defaultShouldRevalidate:e}):eg(a,l):s,resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=c||s||e&&!eX(r.method)&&(t||o),h=l&&l.length>0&&!o&&!t;return u&&(eX(r.method)||!h)?eL({request:r,unstable_pattern:n,match:a,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:e,scopedContext:i}):Promise.resolve({type:"data",result:void 0})}}}function eP(e,t,r,n,a,o,i,s=null){return n.map(l=>l.route.id!==a.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:s,shouldCallHandler:()=>!1,_lazyPromises:eN(e,t,r,l,o),resolve:()=>Promise.resolve({type:"data",result:void 0})}:eA(e,t,r,Y(n),l,o,i,!0,s))}async function eT(e,t,r,n,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let i={request:t,unstable_pattern:Y(r),params:r[0].params,context:a,matches:r},s=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response.  You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>ex(i,()=>e({...i,fetcherKey:n,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}})),l=await e({...i,fetcherKey:n,runClientMiddleware:s});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch(e){}return l}async function eL({request:e,unstable_pattern:t,match:r,lazyHandlerPromise:n,lazyRoutePromise:a,handlerOverride:o,scopedContext:i}){let s,l,u=eX(e.method),c=u?"action":"loader",d=n=>{let a,s=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener("abort",l);let u=a=>"function"!=typeof n?Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${c}" [routeId: ${r.route.id}]`)):n({request:e,unstable_pattern:t,params:r.params,context:i},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (o?o(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),s])};try{let t=u?r.route.action:r.route.loader;if(n||a)if(t){let e,[r]=await Promise.all([d(t).catch(t=>{e=t}),n,a]);if(void 0!==e)throw e;s=r}else{await n;let t=u?r.route.action:r.route.loader;if(t)[s]=await Promise.all([d(t),a]);else{if("action"!==c)return{type:"data",result:void 0};let t=new URL(e.url),n=t.pathname+t.search;throw eB(405,{method:e.method,pathname:n,routeId:r.route.id})}}else if(t)s=await d(t);else{let t=new URL(e.url),r=t.pathname+t.search;throw eB(404,{pathname:r})}}catch(e){return{type:"error",result:e}}finally{l&&e.signal.removeEventListener("abort",l)}return s}async function e_(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?null==e.body?null:e.json():e.text()}async function ej(e){let{result:t,type:r}=e;if(eK(t)){let e;try{e=await e_(t)}catch(e){return{type:"error",error:e}}return"error"===r?{type:"error",error:new H(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:"data",data:e,statusCode:t.status,headers:t.headers}}if("error"===r){if(eJ(t)){var n;return t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:(n=t,new H(n.init?.status??500,n.init?.statusText??"Internal Server Error",n.data)),statusCode:q(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}}return{type:"error",error:t,statusCode:q(t)?t.status:void 0}}return eJ(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function eD(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(j.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e);if(a.includes(n.protocol))throw Error("Invalid redirect location");let o=null!=_(n.pathname,r);if(n.origin===t.origin&&o)return n.pathname+n.search+n.hash}try{let t=n.createURL(e);if(a.includes(t.protocol))throw Error("Invalid redirect location")}catch(e){}return e}function eO(e,t,r,n){let a=e.createURL(eq(t)).toString(),o={signal:r};if(n&&eX(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=eI(n.formData):o.body=n.formData}return new Request(a,o)}function eI(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function e$(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eM(e,t,r,n,a,o){let{loaderData:i,errors:s}=function(e,t,r,n=!1,a=!1){let o,i={},s=null,l=!1,u={},c=r&&eV(r[1])?r[1].error:void 0;return e.forEach(r=>{if(!(r.route.id in t))return;let d=r.route.id,p=t[d];if(h(!eG(p),"Cannot handle redirect results in processLoaderData"),eV(p)){let t=p.error;if(void 0!==c&&(t=c,c=void 0),s=s||{},a)s[d]=t;else{let r=eF(e,d);null==s[r.route.id]&&(s[r.route.id]=t)}n||(i[d]=ed),l||(l=!0,o=q(p.error)?p.error.status:500),p.headers&&(u[d]=p.headers)}else i[d]=p.data,p.statusCode&&200!==p.statusCode&&!l&&(o=p.statusCode),p.headers&&(u[d]=p.headers)}),void 0!==c&&r&&(s={[r[0]]:c},r[2]&&(i[r[2]]=void 0)),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:u}}(t,r,n);return a.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:r,match:n,controller:a}=t;if(a&&a.signal.aborted)return;let i=o[r];if(h(i,"Did not find corresponding fetcher result"),eV(i)){let t=eF(e.matches,n?.route.id);s&&s[t.route.id]||(s={...s,[t.route.id]:i.error}),e.fetchers.delete(r)}else if(eG(i))h(!1,"Unhandled fetcher revalidation redirect");else{let t=e4(i.data);e.fetchers.set(r,t)}}),{loaderData:i,errors:s}}function ez(e,t,r,n){let a=Object.entries(t).filter(([,e])=>e!==ed).reduce((e,[t,r])=>(e[t]=r,e),{});for(let o of r){let r=o.route.id;if(!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function eU(e){return e?eV(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eF(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eW(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eB(e,{pathname:t,routeId:r,method:n,type:a,message:o}={}){let i="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(i="Bad Request",n&&t&&r?s=`You made a ${n} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:"invalid-body"===a&&(s="Unable to encode submission body")):403===e?(i="Forbidden",s=`Route "${r}" does not match URL "${t}"`):404===e?(i="Not Found",s=`No route matches URL "${t}"`):405===e&&(i="Method Not Allowed",n&&t&&r?s=`You made a ${n.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:n&&(s=`Invalid request method "${n.toUpperCase()}"`)),new H(e||500,i,Error(s),!0)}function eH(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eG(n))return{key:r,result:n}}}function eq(e){return y({..."string"==typeof e?g(e):e,hash:""})}function eY(e){return null!=e&&"object"==typeof e&&Object.entries(e).every(([e,t])=>{var r;return"string"==typeof e&&null!=(r=t)&&"object"==typeof r&&"type"in r&&"result"in r&&("data"===r.type||"error"===r.type)})}function eV(e){return"error"===e.type}function eG(e){return"redirect"===(e&&e.type)}function eJ(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eK(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eX(e){return er.has(e.toUpperCase())}function eQ(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eZ(e,t){let r="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&eQ(r||""))return e[e.length-1];let n=$(e);return n[n.length-1]}function e0(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function e1(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function e2(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function e4(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function e5(){let e,t,r=new Promise((n,a)=>{e=async e=>{n(e);try{await r}catch(e){}},t=async e=>{a(e);try{await r}catch(e){}}});return{promise:r,resolve:e,reject:t}}var e3=o.createContext(null);e3.displayName="DataRouter";var e6=o.createContext(null);e6.displayName="DataRouterState";var e8=o.createContext(!1);function e9(){return o.useContext(e8)}var e7=o.createContext({isTransitioning:!1});e7.displayName="ViewTransition";var te=o.createContext(new Map);te.displayName="Fetchers",o.createContext(null).displayName="Await";var tt=o.createContext(null);tt.displayName="Navigation";var tr=o.createContext(null);tr.displayName="Location";var tn=o.createContext({outlet:null,matches:[],isDataRoute:!1});tn.displayName="Route";var ta=o.createContext(null);ta.displayName="RouteError";var to="REACT_ROUTER_ERROR";function ti(){return null!=o.useContext(tr)}function ts(){return h(ti(),"useLocation() may be used only in the context of a <Router> component."),o.useContext(tr).location}function tl(){return o.useContext(tr).navigationType}function tu(e){h(ti(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=ts();return o.useMemo(()=>T(e,L(t)),[t,e])}var tc="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function td(e){o.useContext(tt).static||o.useLayoutEffect(e)}function th(){let{isDataRoute:e}=o.useContext(tn);return e?function(){let{router:e}=tx("useNavigate"),t=tk("useNavigate"),r=o.useRef(!1);return td(()=>{r.current=!0}),o.useCallback(async(n,a={})=>{p(r.current,tc),r.current&&("number"==typeof n?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...a}))},[e,t])}():function(){h(ti(),"useNavigate() may be used only in the context of a <Router> component.");let e=o.useContext(e3),{basename:t,navigator:r}=o.useContext(tt),{matches:n}=o.useContext(tn),{pathname:a}=ts(),i=JSON.stringify(M(n)),s=o.useRef(!1);return td(()=>{s.current=!0}),o.useCallback((n,o={})=>{if(p(s.current,tc),!s.current)return;if("number"==typeof n)return void r.go(n);let l=z(n,JSON.parse(i),a,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:U([t,l.pathname])),(o.replace?r.replace:r.push)(l,o.state,o)},[t,r,i,a,e])}()}var tp=o.createContext(null);function tf(){let{matches:e}=o.useContext(tn),t=e[e.length-1];return t?t.params:{}}function tm(e,{relative:t}={}){let{matches:r}=o.useContext(tn),{pathname:n}=ts(),a=JSON.stringify(M(r));return o.useMemo(()=>z(e,JSON.parse(a),n,"path"===t),[e,a,n,t])}function ty(e,t){return tg(e,t)}function tg(e,t,r,n,a){let i;h(ti(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=o.useContext(tt),{matches:l}=o.useContext(tn),u=l[l.length-1],c=u?u.params:{},d=u?u.pathname:"/",f=u?u.pathnameBase:"/",m=u&&u.route;{let e=m&&m.path||"";tO(d,!m||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${e}">) 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.

Please change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let y=ts();if(t){let e="string"==typeof t?g(t):t;h("/"===f||e.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),i=e}else i=y;let v=i.pathname||"/",b=v;if("/"!==f){let e=f.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let w=x(e,{pathname:b});p(m||null!=w,`No routes matched location "${i.pathname}${i.search}${i.hash}" `),p(null==w||void 0!==w[w.length-1].route.element||void 0!==w[w.length-1].route.Component||void 0!==w[w.length-1].route.lazy,`Matched leaf route at location "${i.pathname}${i.search}${i.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.`);let R=function(e,t=[],r=null,n=null,a=null){if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,s=r?.errors;if(null!=s){let e=i.findIndex(e=>e.route.id&&s?.[e.route.id]!==void 0);h(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let l=!1,u=-1;if(r)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){l=!0,i=u>=0?i.slice(0,u+1):[i[0]];break}}}let c=r&&n?(e,t)=>{n(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Y(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,a)=>{let d,h=!1,p=null,f=null;r&&(d=s&&n.route.id?s[n.route.id]:void 0,p=n.route.errorElement||tv,l&&(u<0&&0===a?(tO("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,f=null):u===a&&(h=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),y=()=>{let t;return t=d?p:h?f:n.route.Component?o.createElement(n.route.Component,null):n.route.element?n.route.element:e,o.createElement(tE,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?o.createElement(tb,{location:r.location,revalidation:r.revalidation,component:p,error:d,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:c}):y()},null)}(w&&w.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:U([f,s.encodeLocation?s.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:U([f,s.encodeLocation?s.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),l,r,n,a);return t&&R?o.createElement(tr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...i},navigationType:"POP"}},R):R}var tv=o.createElement(function(){let e=tL(),t=q(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"2px 4px",backgroundColor:n},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=o.createElement(o.Fragment,null,o.createElement("p",null,"\uD83D\uDCBF Hey developer \uD83D\uDC4B"),o.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",o.createElement("code",{style:a},"ErrorBoundary")," or"," ",o.createElement("code",{style:a},"errorElement")," prop on your route.")),o.createElement(o.Fragment,null,o.createElement("h2",null,"Unexpected Application Error!"),o.createElement("h3",{style:{fontStyle:"italic"}},t),r?o.createElement("pre",{style:{padding:"0.5rem",backgroundColor:n}},r):null,i)},null),tb=class extends o.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){let t=function(e){if(e.startsWith(`${to}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new H(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?o.createElement(tn.Provider,{value:this.props.routeContext},o.createElement(ta.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?o.createElement(tR,{error:e},t):t}};tb.contextType=e8;var tw=new WeakMap;function tR({children:e,error:t}){let{basename:r}=o.useContext(tt);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${to}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let n=tw.get(t);if(n)throw n;let a=G(e.location,r);if(V&&!tw.get(t))if(a.isExternal||e.reloadDocument)window.location.href=a.absoluteURL||a.to;else{let r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw tw.set(t,r),r}return o.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function tE({routeContext:e,match:t,children:r}){let n=o.useContext(e3);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),o.createElement(tn.Provider,{value:e},r)}function tS(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function tx(e){let t=o.useContext(e3);return h(t,tS(e)),t}function tC(e){let t=o.useContext(e6);return h(t,tS(e)),t}function tk(e){let t,r=(h(t=o.useContext(tn),tS(e)),t),n=r.matches[r.matches.length-1];return h(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function tN(){return tC("useNavigation").navigation}function tA(){let{matches:e,loaderData:t}=tC("useMatches");return o.useMemo(()=>e.map(e=>k(e,t)),[e,t])}function tP(){let e=tC("useLoaderData"),t=tk("useLoaderData");return e.loaderData[t]}function tT(e){return tC("useRouteLoaderData").loaderData[e]}function tL(){let e=o.useContext(ta),t=tC("useRouteError"),r=tk("useRouteError");return void 0!==e?e:t.errors?.[r]}var t_=0;function tj(e){let{router:t,basename:r}=tx("useBlocker"),n=tC("useBlocker"),[a,i]=o.useState(""),s=o.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:{...n,pathname:_(n.pathname,r)||n.pathname},nextLocation:{...a,pathname:_(a.pathname,r)||a.pathname},historyAction:o})},[r,e]);return o.useEffect(()=>{let e=String(++t_);return i(e),()=>t.deleteBlocker(e)},[t]),o.useEffect(()=>{""!==a&&t.getBlocker(a,s)},[t,a,s]),a&&n.blockers.has(a)?n.blockers.get(a):el}var tD={};function tO(e,t,r){t||tD[e]||(tD[e]=!0,p(!1,r))}var tI={};function t$(e,t){e||tI[t]||(tI[t]=!0,console.warn(t))}var tM=i.useOptimistic,tz=()=>void 0;function tU(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(e.element&&p(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:o.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&p(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:o.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&p(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:o.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var tF=["HydrateFallback","hydrateFallbackElement"],tW=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}};function tB({router:e,flushSync:t,onError:r,unstable_useTransitions:n}){n=e9()||n;let[a,i]=o.useState(e.state),[s,l]=tM?tM(a):[a,tz],[u,c]=o.useState(),[d,h]=o.useState({isTransitioning:!1}),[p,f]=o.useState(),[m,y]=o.useState(),[g,v]=o.useState(),b=o.useRef(new Map),w=o.useCallback((a,{deletedFetchers:s,newErrors:u,flushSync:d,viewTransitionOpts:g})=>{u&&r&&Object.values(u).forEach(e=>r(e,{location:a.location,params:a.matches[0]?.params??{},unstable_pattern:Y(a.matches)})),a.fetchers.forEach((e,t)=>{void 0!==e.data&&b.current.set(t,e.data)}),s.forEach(e=>b.current.delete(e)),t$(!1===d||null!=t,'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 w=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(t$(null==g||w,"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."),!g||!w)return void(t&&d?t(()=>i(a)):!1===n?i(a):o.startTransition(()=>{!0===n&&l(e=>tH(e,a)),i(a)}));if(t&&d){t(()=>{m&&(p?.resolve(),m.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let r=e.window.document.startViewTransition(()=>{t(()=>i(a))});r.finished.finally(()=>{t(()=>{f(void 0),y(void 0),c(void 0),h({isTransitioning:!1})})}),t(()=>y(r));return}m?(p?.resolve(),m.skipTransition(),v({state:a,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(c(a),h({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,m,p,n,l,r]);o.useLayoutEffect(()=>e.subscribe(w),[e,w]),o.useEffect(()=>{d.isTransitioning&&!d.flushSync&&f(new tW)},[d]),o.useEffect(()=>{if(p&&u&&e.window){let t=p.promise,r=e.window.document.startViewTransition(async()=>{!1===n?i(u):o.startTransition(()=>{!0===n&&l(e=>tH(e,u)),i(u)}),await t});r.finished.finally(()=>{f(void 0),y(void 0),c(void 0),h({isTransitioning:!1})}),y(r)}},[u,p,e.window,n,l]),o.useEffect(()=>{p&&u&&s.location.key===u.location.key&&p.resolve()},[p,m,s.location,u]),o.useEffect(()=>{!d.isTransitioning&&g&&(c(g.state),h({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),v(void 0))},[d.isTransitioning,g]);let R=o.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,r,n)=>e.navigate(t,{state:r,preventScrollReset:n?.preventScrollReset}),replace:(t,r,n)=>e.navigate(t,{replace:!0,state:r,preventScrollReset:n?.preventScrollReset})}),[e]),E=e.basename||"/",S=o.useMemo(()=>({router:e,navigator:R,static:!1,basename:E,onError:r}),[e,R,E,r]);return o.createElement(o.Fragment,null,o.createElement(e3.Provider,{value:S},o.createElement(e6.Provider,{value:s},o.createElement(te.Provider,{value:b.current},o.createElement(e7.Provider,{value:d},o.createElement(tJ,{basename:E,location:s.location,navigationType:s.historyAction,navigator:R,unstable_useTransitions:n},o.createElement(tq,{routes:e.routes,future:e.future,state:s,onError:r})))))),null)}function tH(e,t){return{...e,navigation:"idle"!==t.navigation.state?t.navigation:e.navigation,revalidation:"idle"!==t.revalidation?t.revalidation:e.revalidation,actionData:"submitting"!==t.navigation.state?t.actionData:e.actionData,fetchers:t.fetchers}}var tq=o.memo(function({routes:e,future:t,state:r,onError:n}){return tg(e,void 0,r,n,t)});function tY({to:e,replace:t,state:r,relative:n}){h(ti(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=o.useContext(tt);p(!a,"<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:i}=o.useContext(tn),{pathname:s}=ts(),l=th(),u=JSON.stringify(z(e,M(i),s,"path"===n));return o.useEffect(()=>{l(JSON.parse(u),{replace:t,state:r,relative:n})},[l,u,n,t,r]),null}function tV(e){var t;let r;return t=e.context,r=o.useContext(tn).outlet,o.useMemo(()=>r&&o.createElement(tp.Provider,{value:t},r),[r,t])}function tG(e){h(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function tJ({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:a,static:i=!1,unstable_useTransitions:s}){h(!ti(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=o.useMemo(()=>({basename:l,navigator:a,static:i,unstable_useTransitions:s,future:{}}),[l,a,i,s]);"string"==typeof r&&(r=g(r));let{pathname:c="/",search:d="",hash:f="",state:m=null,key:y="default"}=r,v=o.useMemo(()=>{let e=_(c,l);return null==e?null:{location:{pathname:e,search:d,hash:f,state:m,key:y},navigationType:n}},[l,c,d,f,m,y,n]);return(p(null!=v,`<Router basename="${l}"> is not able to match the URL "${c}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==v)?null:o.createElement(tt.Provider,{value:u},o.createElement(tr.Provider,{children:t,value:v}))}function tK({children:e,location:t}){return tg(function e(t,r=[]){let n=[];return o.Children.forEach(t,(t,a)=>{if(!o.isValidElement(t))return;let i=[...r,a];if(t.type===o.Fragment)return void n.push.apply(n,e(t.props.children,i));h(t.type===tG,`[${"string"==typeof t.type?t.type:t.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),h(!t.props.index||!t.props.children,"An index route cannot have child routes.");let s={id:t.props.id||i.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,middleware:t.props.middleware,loader:t.props.loader,action:t.props.action,hydrateFallbackElement:t.props.hydrateFallbackElement,HydrateFallback:t.props.HydrateFallback,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:!0===t.props.hasErrorBoundary||null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(s.children=e(t.props.children,i)),n.push(s)}),n}(e),t)}o.Component;var tX="get",tQ="application/x-www-form-urlencoded";function tZ(e){return"u">typeof HTMLElement&&e instanceof HTMLElement}function t0(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}var t1=null,t2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t4(e){return null==e||t2.has(e)?e:(p(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${tQ}"`),null)}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"u">typeof window&&window;var t5={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},t3=/[&><\u2028\u2029]/g;function t6(e){return e.replace(t3,e=>t5[e])}function t8(e,t){if(!1===e||null==e)throw Error(t)}async function t9(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function t7(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function re(e,t,r){var n;let a,o;return n=(await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await t9(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(t7).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}),a=new Set,o=new Set(void 0),n.reduce((e,t)=>{!1;let r=JSON.stringify(function(e){let t={};for(let r of Object.keys(e).sort())t[r]=e[r];return t}(t));return a.has(r)||(a.add(r),e.push({key:r,link:t})),e},[])}function rt(e,t,r,n,a,o){let i=(e,t)=>!r[t]||e.route.id!==r[t].route.id,s=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>i(e,t)||s(e,t)):"data"===o?t.filter((t,o)=>{let l=n.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(i(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function rr(e,t,{includeHydrateFallback:r}={}){return[...new Set(e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let a=[n.module];return n.clientActionModule&&(a=a.concat(n.clientActionModule)),n.clientLoaderModule&&(a=a.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(a=a.concat(n.hydrateFallbackModule)),n.imports&&(a=a.concat(n.imports)),a}).flat(1))]}function rn(){let e=o.useContext(e3);return t8(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ra(){let e=o.useContext(e6);return t8(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Symbol("SingleFetchRedirect");var ro=o.createContext(void 0);function ri(){let e=o.useContext(ro);return t8(e,"You must render this element inside a <HydratedRouter> element"),e}function rs(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function rl({page:e,...t}){let{router:r}=rn(),n=o.useMemo(()=>x(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?o.createElement(ru,{page:e,matches:n,...t}):null}function ru({page:e,matches:t,...r}){let n=ts(),{future:a,manifest:i,routeModules:s}=ri(),{basename:l}=rn(),{loaderData:u,matches:c}=ra(),d=o.useMemo(()=>rt(e,t,c,i,n,"data"),[e,t,c,i,n]),h=o.useMemo(()=>rt(e,t,c,i,n,"assets"),[e,t,c,i,n]),p=o.useMemo(()=>{var r,o;let c;if(e===n.pathname+n.search+n.hash)return[];let h=new Set,p=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in u&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?p=!0:h.add(e.route.id))}),0===h.size)return[];let f=(r=a.unstable_trailingSlashAwareDataRequests,o="data",c="string"==typeof e?new URL(e,"u"<typeof window?"server://singlefetch/":window.location.origin):e,r?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${o}`:c.pathname=`${c.pathname}.${o}`:"/"===c.pathname?c.pathname=`_root.${o}`:l&&"/"===_(c.pathname,l)?c.pathname=`${l.replace(/\/$/,"")}/_root.${o}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${o}`,c);return p&&h.size>0&&f.searchParams.set("_routes",t.filter(e=>h.has(e.route.id)).map(e=>e.route.id).join(",")),[f.pathname+f.search]},[l,a.unstable_trailingSlashAwareDataRequests,u,n,i,d,t,e,s]),f=o.useMemo(()=>rr(h,i),[h,i]),m=function(e){let{manifest:t,routeModules:r}=ri(),[n,a]=o.useState([]);return o.useEffect(()=>{let n=!1;return re(e,t,r).then(e=>{n||a(e)}),()=>{n=!0}},[e,t,r]),n}(h);return o.createElement(o.Fragment,null,p.map(e=>o.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),f.map(e=>o.createElement("link",{key:e,rel:"modulepreload",href:e,...r})),m.map(({key:e,link:t})=>o.createElement("link",{key:e,nonce:r.nonce,...t})))}ro.displayName="FrameworkContext";o.Component;var rc="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{rc&&(window.__reactRouterVersion="7.12.0")}catch(e){}function rd(e,t){let r;return(function(e){let t,r,n,a,o,i=e.window?e.window:"u">typeof window?window:void 0,s=void 0!==i&&void 0!==i.document&&void 0!==i.document.createElement;h(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let l=e.hydrationRouteProperties||[],u=e.mapRouteProperties||eu,c=u;if(e.unstable_instrumentations){let t=e.unstable_instrumentations;c=e=>({...u(e),...function(e,t){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){for(let t of Object.keys(r))e[t]&&r[t].push(e[t])}}));let n={};if("function"==typeof t.lazy&&r.lazy.length>0){let e=K(r.lazy,t.lazy,()=>void 0);e&&(n.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach(t=>{let a=e[t],o=r[`lazy.${t}`];if("function"==typeof a&&o.length>0){let e=K(o,a,()=>void 0);e&&(n.lazy=Object.assign(n.lazy||{},{[t]:e}))}})}return["loader","action"].forEach(e=>{let a=t[e];if("function"==typeof a&&r[e].length>0){let t=a[J]??a,o=K(r[e],t,(...e)=>Q(e[0]));o&&("loader"===e&&!0===t.hydrate&&(o.hydrate=!0),o[J]=t,n[e]=o)}}),t.middleware&&t.middleware.length>0&&r.middleware.length>0&&(n.middleware=t.middleware.map(e=>{let t=e[J]??e,n=K(r.middleware,t,(...e)=>Q(e[0]));return n?(n[J]=t,n):e})),n}(t.map(e=>e.route).filter(Boolean),e)})}let d={},f=E(e.routes,c,void 0,d),g=e.basename||"/";g.startsWith("/")||(g=`/${g}`);let w=e.dataStrategy||eS,R={...e.future},S=null,N=new Set,A=null,P=null,T=null,L=null!=e.hydrationData,D=x(f,e.history.location,g),O=!1,I=null;if(null!=D||e.patchRoutesOnNavigation)if(D&&!e.hydrationData&&ts(D,f,e.history.location.pathname).active&&(D=null),D)if(D.some(e=>e.route.lazy))r=!1;else if(D.some(e=>em(e.route))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=D.findIndex(e=>void 0!==n[e.route.id]);r=D.slice(0,e+1).every(e=>!ey(e.route,t,n))}else r=D.every(e=>!ey(e.route,t,n))}else r=!0;else{r=!1,D=[];let t=ts(null,f,e.history.location.pathname);t.active&&t.matches&&(O=!0,D=t.matches)}else{let t=eB(404,{pathname:e.history.location.pathname}),{matches:n,route:a}=eW(f);r=!0,D=n,I={[a.id]:t}}let $={historyAction:e.history.action,location:e.history.location,matches:D,initialized:r,navigation:ei,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||I,fetchers:new Map,blockers:new Map},M="POP",z=null,U=!1,F=!1,W=new Map,B=null,H=!1,Y=!1,V=new Set,G=new Map,X=0,ee=-1,et=new Map,er=new Set,en=new Map,ed=new Map,eg=new Set,eb=new Map,ew=null;function eR(e,t={}){e.matches&&(e.matches=e.matches.map(e=>{let t=d[e.route.id],r=e.route;return r.element!==t.element||r.errorElement!==t.errorElement||r.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}));let r=[],n=[];($={...$,...e}).fetchers.forEach((e,t)=>{"idle"===e.state&&(eg.has(t)?r.push(t):n.push(t))}),eg.forEach(e=>{$.fetchers.has(e)||G.has(e)||r.push(e)}),[...N].forEach(n=>n($,{deletedFetchers:r,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),r.forEach(e=>e6(e)),n.forEach(e=>$.fetchers.delete(e))}function eE(r,n,{flushSync:a}={}){let o,i,s=null!=$.actionData&&null!=$.navigation.formMethod&&eX($.navigation.formMethod)&&"loading"===$.navigation.state&&r.state?._isRedirect!==!0;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:s?$.actionData:null;let l=n.loaderData?ez($.loaderData,n.loaderData,n.matches||[],n.errors):$.loaderData,u=$.blockers;u.size>0&&(u=new Map(u)).forEach((e,t)=>u.set(t,el));let c=!H&&ti(r,n.matches||$.matches),d=!0===U||null!=$.navigation.formMethod&&eX($.navigation.formMethod)&&r.state?._isRedirect!==!0;if(t&&(f=t,t=void 0),H||"POP"===M||("PUSH"===M?e.history.push(r,r.state):"REPLACE"===M&&e.history.replace(r,r.state)),"POP"===M){let e=W.get($.location.pathname);e&&e.has(r.pathname)?i={currentLocation:$.location,nextLocation:r}:W.has(r.pathname)&&(i={currentLocation:r,nextLocation:$.location})}else if(F){let e=W.get($.location.pathname);e?e.add(r.pathname):(e=new Set([r.pathname]),W.set($.location.pathname,e)),i={currentLocation:$.location,nextLocation:r}}eR({...n,actionData:o,loaderData:l,historyAction:M,location:r,initialized:!0,navigation:ei,revalidation:"idle",restoreScrollPosition:c,preventScrollReset:d,blockers:u},{viewTransitionOpts:i,flushSync:!0===a}),M="POP",U=!1,F=!1,H=!1,Y=!1,z?.resolve(),z=null,ew?.resolve(),ew=null}async function ex(t,r){if(z?.resolve(),z=null,"number"==typeof t){z||(z=e5());let r=z.promise;return e.history.go(t),r}let{path:n,submission:a,error:o}=ep(!1,eh($.location,$.matches,g,t,r?.fromRouteId,r?.relative),r),i=$.location,s=m($.location,n,r&&r.state);s={...s,...e.history.encodeLocation(s)};let l=r&&null!=r.replace?r.replace:void 0,u="PUSH";!0===l?u="REPLACE":!1===l||null!=a&&eX(a.formMethod)&&a.formAction===$.location.pathname+$.location.search&&(u="REPLACE");let c=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,d=!0===(r&&r.flushSync),h=tn({currentLocation:i,nextLocation:s,historyAction:u});h?tr(h,{state:"blocked",location:s,proceed(){tr(h,{state:"proceeding",proceed:void 0,reset:void 0,location:s}),ex(t,r)},reset(){let e=new Map($.blockers);e.set(h,el),eR({blockers:e})}}):await eC(u,s,{submission:a,pendingError:o,preventScrollReset:c,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:d,callSiteDefaultShouldRevalidate:r&&r.unstable_defaultShouldRevalidate})}async function eC(r,n,o){var i,s,l,u;let c;a&&a.abort(),a=null,M=r,H=!0===(o&&o.startUninterruptedRevalidation),i=$.location,s=$.matches,A&&T&&(A[to(i,s)]=T()),U=!0===(o&&o.preventScrollReset),F=!0===(o&&o.enableViewTransition);let d=t||f,h=o&&o.overrideNavigation,p=o?.initialHydration&&$.matches&&$.matches.length>0&&!O?$.matches:x(d,n,g),m=!0===(o&&o.flushSync);if(p&&$.initialized&&!Y&&(l=$.location,u=n,l.pathname===u.pathname&&l.search===u.search&&(""===l.hash?""!==u.hash:l.hash===u.hash||""!==u.hash||!1))&&!(o&&o.submission&&eX(o.submission.formMethod)))return void eE(n,{matches:p},{flushSync:m});let y=ts(p,d,n.pathname);if(y.active&&y.matches&&(p=y.matches),!p){let{error:e,notFoundMatches:t,route:r}=ta(n.pathname);eE(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:m});return}a=new AbortController;let v=eO(e.history,n,a.signal,o&&o.submission),w=e.getContext?await e.getContext():new b;if(o&&o.pendingError)c=[eF(p).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&eX(o.submission.formMethod)){let t=await ek(v,n,o.submission,p,w,y.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:m});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(eV(r)&&q(r.error)&&404===r.error.status){a=null,eE(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}p=t.matches||p,c=t.pendingActionResult,h=e1(n,o.submission),m=!1,y.active=!1,v=eO(e.history,v.url,v.signal)}let{shortCircuited:R,matches:E,loaderData:S,errors:C}=await eN(v,n,p,w,y.active,h,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,m,c,o&&o.callSiteDefaultShouldRevalidate);R||(a=null,eE(n,{matches:E||p,...eU(c),loaderData:S,errors:C}))}async function ek(t,r,n,a,o,i,s,u={}){var h;let p;if(eY(),eR({navigation:{state:"submitting",location:r,formMethod:(h=n).formMethod,formAction:h.formAction,formEncType:h.formEncType,formData:h.formData,json:h.json,text:h.text}},{flushSync:!0===u.flushSync}),i){let e=await tl(a,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:r}=eW(f);return{matches:t,pendingActionResult:[r.id,{type:"error",error:e.error}]}}let t=eF(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:"error",error:e.error}]}}if(e.matches)a=e.matches;else{let{notFoundMatches:e,error:t,route:n}=ta(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:"error",error:t}]}}}let m=eZ(a,r);if(m.route.action||m.route.lazy){let e=eP(c,d,t,a,m,s?[]:l,o),r=await e$(t,e,o,null);if(!(p=r[m.route.id])){for(let e of a)if(r[e.route.id]){p=r[e.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}else p={type:"error",error:eB(405,{method:t.method,pathname:r.pathname,routeId:m.route.id})};if(eG(p)){let r;return r=u&&null!=u.replace?u.replace:eD(p.response.headers.get("Location"),new URL(t.url),g,e.history)===$.location.pathname+$.location.search,await eI(t,p,!0,{submission:n,replace:r}),{shortCircuited:!0}}if(eV(p)){let e=eF(a,m.route.id);return!0!==(u&&u.replace)&&(M="PUSH"),{matches:a,pendingActionResult:[e.route.id,p,m.route.id]}}return{matches:a,pendingActionResult:[m.route.id,p]}}async function eN(r,n,o,i,s,u,h,p,m,y,v,b,w){let R=u||e1(n,h),E=h||p||e0(R),S=!H&&!y;if(s){if(S){let e=eA(b);eR({navigation:R,...void 0!==e?{actionData:e}:{}},{flushSync:v})}let e=await tl(o,n.pathname,r.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:r}=eW(f);return{matches:t,loaderData:{},errors:{[r.id]:e.error}}}let t=eF(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)o=e.matches;else{let{error:e,notFoundMatches:t,route:r}=ta(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let x=t||f,{dsMatches:C,revalidatingFetchers:k}=ef(r,i,c,d,e.history,$,o,E,n,y?[]:l,!0===y,Y,V,eg,en,er,x,g,null!=e.patchRoutesOnNavigation,b,w);if(ee=++X,!e.dataStrategy&&!C.some(e=>e.shouldLoad)&&!C.some(e=>e.route.middleware&&e.route.middleware.length>0)&&0===k.length){let e=e7();return eE(n,{matches:o,loaderData:{},errors:b&&eV(b[1])?{[b[0]]:b[1].error}:null,...eU(b),...e?{fetchers:new Map($.fetchers)}:{}},{flushSync:v}),{shortCircuited:!0}}if(S){let e={};if(!s){e.navigation=R;let t=eA(b);void 0!==t&&(e.actionData=t)}k.length>0&&(k.forEach(e=>{let t=$.fetchers.get(e.key),r=e2(void 0,t?t.data:void 0);$.fetchers.set(e.key,r)}),e.fetchers=new Map($.fetchers)),eR(e,{flushSync:v})}k.forEach(e=>{e8(e.key),e.controller&&G.set(e.key,e.controller)});let N=()=>k.forEach(e=>e8(e.key));a&&a.signal.addEventListener("abort",N);let{loaderResults:A,fetcherResults:P}=await eq(C,k,r,i);if(r.signal.aborted)return{shortCircuited:!0};a&&a.signal.removeEventListener("abort",N),k.forEach(e=>G.delete(e.key));let T=eH(A);if(T)return await eI(r,T.result,!0,{replace:m}),{shortCircuited:!0};if(T=eH(P))return er.add(T.key),await eI(r,T.result,!0,{replace:m}),{shortCircuited:!0};let{loaderData:L,errors:_}=eM($,o,A,b,k,P);y&&$.errors&&(_={...$.errors,..._});let j=e7(),D=te(ee);return{matches:o,loaderData:L,errors:_,...j||D||k.length>0?{fetchers:new Map($.fetchers)}:{}}}function eA(e){if(e&&!eV(e[1]))return{[e[0]]:e[1].data};if($.actionData)if(0===Object.keys($.actionData).length)return null;else return $.actionData}async function eL(r,n,o,i,s,u,p,m,y,v){var b,w;eY(),en.delete(r);let R=$.fetchers.get(r);eJ(r,(b=y,w=R,{state:"submitting",formMethod:b.formMethod,formAction:b.formAction,formEncType:b.formEncType,formData:b.formData,json:b.json,text:b.text,data:w?w.data:void 0}),{flushSync:p});let E=new AbortController,S=eO(e.history,o,E.signal,y);if(u){let e=await tl(i,new URL(S.url).pathname,S.signal,r);if("aborted"===e.type)return;if("error"===e.type)return void eQ(r,n,e.error,{flushSync:p});if(!e.matches)return void eQ(r,n,eB(404,{pathname:o}),{flushSync:p});i=e.matches}let C=eZ(i,o);if(!C.route.action&&!C.route.lazy){let e=eB(405,{method:y.formMethod,pathname:o,routeId:n});eQ(r,n,e,{flushSync:p});return}G.set(r,E);let k=X,N=eP(c,d,S,i,C,l,s),A=await e$(S,N,s,r),P=A[C.route.id];if(!P){for(let e of N)if(A[e.route.id]){P=A[e.route.id];break}}if(S.signal.aborted){G.get(r)===E&&G.delete(r);return}if(eg.has(r)){if(eG(P)||eV(P))return void eJ(r,e4(void 0))}else{if(eG(P))return(G.delete(r),ee>k)?void eJ(r,e4(void 0)):(er.add(r),eJ(r,e2(y)),eI(S,P,!1,{fetcherSubmission:y,preventScrollReset:m}));if(eV(P))return void eQ(r,n,P.error)}let T=$.navigation.location||$.location,L=eO(e.history,T,E.signal),_=t||f,j="idle"!==$.navigation.state?x(_,$.navigation.location,g):$.matches;h(j,"Didn't find any matches after fetcher action");let D=++X;et.set(r,D);let O=e2(y,P.data);$.fetchers.set(r,O);let{dsMatches:I,revalidatingFetchers:z}=ef(L,s,c,d,e.history,$,j,y,T,l,!1,Y,V,eg,en,er,_,g,null!=e.patchRoutesOnNavigation,[C.route.id,P],v);z.filter(e=>e.key!==r).forEach(e=>{let t=e.key,r=$.fetchers.get(t),n=e2(void 0,r?r.data:void 0);$.fetchers.set(t,n),e8(t),e.controller&&G.set(t,e.controller)}),eR({fetchers:new Map($.fetchers)});let U=()=>z.forEach(e=>e8(e.key));E.signal.addEventListener("abort",U);let{loaderResults:F,fetcherResults:W}=await eq(I,z,L,s);if(E.signal.aborted)return;if(E.signal.removeEventListener("abort",U),et.delete(r),G.delete(r),z.forEach(e=>G.delete(e.key)),$.fetchers.has(r)){let e=e4(P.data);$.fetchers.set(r,e)}let B=eH(F);if(B)return eI(L,B.result,!1,{preventScrollReset:m});if(B=eH(W))return er.add(B.key),eI(L,B.result,!1,{preventScrollReset:m});let{loaderData:H,errors:q}=eM($,j,F,void 0,z,W);te(D),"loading"===$.navigation.state&&D>ee?(h(M,"Expected pending action"),a&&a.abort(),eE($.navigation.location,{matches:j,loaderData:H,errors:q,fetchers:new Map($.fetchers)})):(eR({errors:q,loaderData:ez($.loaderData,H,j,q),fetchers:new Map($.fetchers)}),Y=!1)}async function e_(t,r,n,a,o,i,s,u,h){let p=$.fetchers.get(t);eJ(t,e2(h,p?p.data:void 0),{flushSync:s});let f=new AbortController,m=eO(e.history,n,f.signal);if(i){let e=await tl(a,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eQ(t,r,e.error,{flushSync:s});if(!e.matches)return void eQ(t,r,eB(404,{pathname:n}),{flushSync:s});a=e.matches}let y=eZ(a,n);G.set(t,f);let g=X,v=eP(c,d,m,a,y,l,o),b=(await e$(m,v,o,t))[y.route.id];if(G.get(t)===f&&G.delete(t),!m.signal.aborted){if(eg.has(t))return void eJ(t,e4(void 0));if(eG(b))if(ee>g)return void eJ(t,e4(void 0));else{er.add(t),await eI(m,b,!1,{preventScrollReset:u});return}if(eV(b))return void eQ(t,r,b.error);eJ(t,e4(b.data))}}async function eI(t,r,n,{submission:o,fetcherSubmission:l,preventScrollReset:u,replace:c}={}){n||(z?.resolve(),z=null),r.response.headers.has("X-Remix-Revalidate")&&(Y=!0);let d=r.response.headers.get("Location");h(d,"Expected a Location header on the redirect Response"),d=eD(d,new URL(t.url),g,e.history);let p=m($.location,d,{_isRedirect:!0});if(s){let e=!1;if(r.response.headers.has("X-Remix-Reload-Document"))e=!0;else{let t;if(t=d,j.test(t)){let t=v(d,!0);e=t.origin!==i.location.origin||null==_(t.pathname,g)}}if(e)return void(c?i.location.replace(d):i.location.assign(d))}a=null;let f=!0===c||r.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:y,formAction:b,formEncType:w}=$.navigation;!o&&!l&&y&&b&&w&&(o=e0($.navigation));let R=o||l;if(eo.has(r.response.status)&&R&&eX(R.formMethod))await eC(f,p,{submission:{...R,formAction:d},preventScrollReset:u||U,enableViewTransition:n?F:void 0});else{let e=e1(p,o);await eC(f,p,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:u||U,enableViewTransition:n?F:void 0})}}async function e$(e,t,r,n){let a,o={};try{a=await eT(w,e,t,n,r,!1)}catch(e){return t.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:"error",error:e}}),o}if(e.signal.aborted)return o;if(!eX(e.method))for(let e of t){if(a[e.route.id]?.type==="error")break;!a.hasOwnProperty(e.route.id)&&!$.loaderData.hasOwnProperty(e.route.id)&&(!$.errors||!$.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:"error",result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[r,n]of Object.entries(a)){var i;if(eK((i=n).result)&&ea.has(i.result.status)){let a=n.result;o[r]={type:"redirect",response:function(e,t,r,n,a){let o,i=e.headers.get("Location");if(h(i,"Redirects returned/thrown from loaders/actions must have a Location header"),o=i,!j.test(o)){let o=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=eh(new URL(t.url),o,a,i),e.headers.set("Location",i)}return e}(a,e,r,t,g)}}else o[r]=await ej(n)}return o}async function eq(e,t,r,n){let a=e$(r,e,n,null),o=Promise.all(t.map(async e=>{if(!e.matches||!e.match||!e.request||!e.controller)return Promise.resolve({[e.key]:{type:"error",error:eB(404,{pathname:e.path})}});{let t=(await e$(e.request,e.matches,n,e.key))[e.match.route.id];return{[e.key]:t}}}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function eY(){Y=!0,en.forEach((e,t)=>{G.has(t)&&V.add(t),e8(t)})}function eJ(e,t,r={}){$.fetchers.set(e,t),eR({fetchers:new Map($.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eQ(e,t,r,n={}){let a=eF($.matches,t);e6(e),eR({errors:{[a.route.id]:r},fetchers:new Map($.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e3(e){return ed.set(e,(ed.get(e)||0)+1),eg.has(e)&&eg.delete(e),$.fetchers.get(e)||es}function e6(e){let t=$.fetchers.get(e);G.has(e)&&!(t&&"loading"===t.state&&et.has(e))&&e8(e),en.delete(e),et.delete(e),er.delete(e),eg.delete(e),V.delete(e),$.fetchers.delete(e)}function e8(e,t){let r=G.get(e);r&&(r.abort(t),G.delete(e))}function e9(e){for(let t of e){let e=e4(e3(t).data);$.fetchers.set(t,e)}}function e7(){let e=[],t=!1;for(let r of er){let n=$.fetchers.get(r);h(n,`Expected fetcher: ${r}`),"loading"===n.state&&(er.delete(r),e.push(r),t=!0)}return e9(e),t}function te(e){let t=[];for(let[r,n]of et)if(n<e){let e=$.fetchers.get(r);h(e,`Expected fetcher: ${r}`),"loading"===e.state&&(e8(r),et.delete(r),t.push(r))}return e9(t),t.length>0}function tt(e){$.blockers.delete(e),eb.delete(e)}function tr(e,t){let r=$.blockers.get(e)||el;h("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,`Invalid blocker state transition: ${r.state} -> ${t.state}`);let n=new Map($.blockers);n.set(e,t),eR({blockers:n})}function tn({currentLocation:e,nextLocation:t,historyAction:r}){if(0===eb.size)return;eb.size>1&&p(!1,"A router only supports one blocker at a time");let n=Array.from(eb.entries()),[a,o]=n[n.length-1],i=$.blockers.get(a);if((!i||"proceeding"!==i.state)&&o({currentLocation:e,nextLocation:t,historyAction:r}))return a}function ta(e){let r=eB(404,{pathname:e}),{matches:n,route:a}=eW(t||f);return{notFoundMatches:n,route:a,error:r}}function to(e,t){return P&&P(e,t.map(e=>k(e,$.loaderData)))||e.key}function ti(e,t){if(A){let r=A[to(e,t)];if("number"==typeof r)return r}return null}function ts(t,r,n){if(e.patchRoutesOnNavigation){if(!t)return{active:!0,matches:C(r,n,g,!0)||[]};else if(Object.keys(t[0].params).length>0)return{active:!0,matches:C(r,n,g,!0)}}return{active:!1,matches:null}}async function tl(r,n,a,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:r};let i=r;for(;;){let r=null==t,s=t||f,l=d;try{await e.patchRoutesOnNavigation({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,t)=>{a.aborted||ev(e,t,s,l,c,!1)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{r&&!a.aborted&&(f=[...f])}if(a.aborted)return{type:"aborted"};let u=x(s,n,g),h=null;if(u){if(0===Object.keys(u[0].params).length)return{type:"success",matches:u};else if(!((h=C(s,n,g,!0))&&i.length<h.length&&tu(i,h.slice(0,i.length))))return{type:"success",matches:u}}if(h||(h=C(s,n,g,!0)),!h||tu(i,h))return{type:"success",matches:null};i=h}}function tu(e,t){return e.length===t.length&&e.every((e,r)=>e.route.id===t[r].route.id)}return n={get basename(){return g},get future(){return R},get state(){return $},get routes(){return f},get window(){return i},initialize:function(){if(S=e.history.listen(({action:t,location:r,delta:n})=>{if(o){o(),o=void 0;return}p(0===eb.size||null!=n,"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 a=tn({currentLocation:$.location,nextLocation:r,historyAction:t});if(a&&null!=n){let t=new Promise(e=>{o=e});e.history.go(-1*n),tr(a,{state:"blocked",location:r,proceed(){tr(a,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(n))},reset(){let e=new Map($.blockers);e.set(a,el),eR({blockers:e})}}),z?.resolve(),z=null;return}return eC(t,r)}),s){var t=i,r=W;try{let e=t.sessionStorage.getItem(ec);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ec,JSON.stringify(r))}catch(e){p(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}})(i,W);i.addEventListener("pagehide",e),B=()=>i.removeEventListener("pagehide",e)}return $.initialized||eC("POP",$.location,{initialHydration:!0}),n},subscribe:function(e){return N.add(e),()=>N.delete(e)},enableScrollRestoration:function(e,t,r){if(A=e,T=t,P=r||null,!L&&$.navigation===ei){L=!0;let e=ti($.location,$.matches);null!=e&&eR({restoreScrollPosition:e})}return()=>{A=null,T=null,P=null}},navigate:ex,fetch:async function r(r,n,a,o){e8(r);let i=!0===(o&&o.flushSync),s=t||f,l=eh($.location,$.matches,g,a,n,o?.relative),u=x(s,l,g),c=ts(u,s,l);if(c.active&&c.matches&&(u=c.matches),!u)return void eQ(r,n,eB(404,{pathname:l}),{flushSync:i});let{path:d,submission:h,error:p}=ep(!0,l,o);if(p)return void eQ(r,n,p,{flushSync:i});let m=e.getContext?await e.getContext():new b,y=!0===(o&&o.preventScrollReset);h&&eX(h.formMethod)?await eL(r,n,d,u,m,c.active,i,y,h,o&&o.unstable_defaultShouldRevalidate):(en.set(r,{routeId:n,path:d}),await e_(r,n,d,u,m,c.active,i,y,h))},revalidate:function(){ew||(ew=e5()),eY(),eR({revalidation:"loading"});let e=ew.promise;return"submitting"===$.navigation.state||("idle"===$.navigation.state?eC($.historyAction,$.location,{startUninterruptedRevalidation:!0}):eC(M||$.historyAction,$.navigation.location,{overrideNavigation:$.navigation,enableViewTransition:!0===F})),e},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e3,resetFetcher:function(e,t){e8(e,t?.reason),eJ(e,e4(null))},deleteFetcher:function(e){let t=(ed.get(e)||0)-1;t<=0?(ed.delete(e),eg.add(e)):ed.set(e,t),eR({fetchers:new Map($.fetchers)})},dispose:function(){S&&S(),B&&B(),N.clear(),a&&a.abort(),$.fetchers.forEach((e,t)=>e6(t)),$.blockers.forEach((e,t)=>tt(t))},getBlocker:function(e,t){let r=$.blockers.get(e)||el;return eb.get(e)!==t&&eb.set(e,t),r},deleteBlocker:tt,patchRoutes:function(e,r,n=!1){let a=null==t;ev(e,r,t||f,d,c,n),a&&(f=[...f],eR({}))},_internalFetchControllers:G,_internalSetRoutes:function(e){t=E(e,c,void 0,d={})},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){eR(e)}},e.unstable_instrumentations&&(n=function(e,t){let r={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){for(let t of Object.keys(e))e[t]&&r[t].push(e[t])}})),r.navigate.length>0){let t=e.navigate[J]??e.navigate,n=K(r.navigate,t,(...t)=>{let[r,n]=t;return{to:"number"==typeof r||"string"==typeof r?r:r?y(r):".",...Z(e,n??{})}});n&&(n[J]=t,e.navigate=n)}if(r.fetch.length>0){let t=e.fetch[J]??e.fetch,n=K(r.fetch,t,(...t)=>{let[r,,n,a]=t;return{href:n??".",fetcherKey:r,...Z(e,a??{})}});n&&(n[J]=t,e.fetch=n)}return e}(n,e.unstable_instrumentations.map(e=>e.router).filter(Boolean))),n})({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:d({window:t?.window}),hydrationData:t?.hydrationData||((r=window?.__staticRouterHydrationData)&&r.errors&&(r={...r,errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new H(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(r.errors)}),r),routes:e,mapRouteProperties:tU,hydrationRouteProperties:tF,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,unstable_instrumentations:t?.unstable_instrumentations}).initialize()}function rh({basename:e,children:t,unstable_useTransitions:r,window:n}){let a=o.useRef();null==a.current&&(a.current=d({window:n,v5Compat:!0}));let i=a.current,[s,l]=o.useState({action:i.action,location:i.location}),u=o.useCallback(e=>{!1===r?l(e):o.startTransition(()=>l(e))},[r]);return o.useLayoutEffect(()=>i.listen(u),[i,u]),o.createElement(tJ,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,unstable_useTransitions:r})}var rp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rf=o.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:n,reloadDocument:a,replace:i,state:s,target:l,to:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:p,...f},m){let{basename:y,unstable_useTransitions:g}=o.useContext(tt),v="string"==typeof u&&rp.test(u),b=G(u,y),w=function(e,{relative:t}={}){h(ti(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=o.useContext(tt),{hash:a,pathname:i,search:s}=tm(e,{relative:t}),l=i;return"/"!==r&&(l="/"===i?r:U([r,i])),n.createHref({pathname:l,search:s,hash:a})}(u=b.to,{relative:n}),[R,E,S]=function(e,t){let r=o.useContext(ro),[n,a]=o.useState(!1),[i,s]=o.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:c,onMouseLeave:d,onTouchStart:h}=t,p=o.useRef(null);o.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),o.useEffect(()=>{if(n){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[n]);let f=()=>{a(!0)},m=()=>{a(!1),s(!1)};return r?"intent"!==e?[i,p,{}]:[i,p,{onFocus:rs(l,f),onBlur:rs(u,m),onMouseEnter:rs(c,f),onMouseLeave:rs(d,m),onTouchStart:rs(h,f)}]:[!1,p,{}]}(r,f),x=rb(u,{replace:i,state:s,target:l,preventScrollReset:c,relative:n,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}),C=o.createElement("a",{...f,...S,href:b.absoluteURL||w,onClick:b.isExternal||a?e:function(t){e&&e(t),t.defaultPrevented||x(t)},ref:function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(m,E),target:l,"data-discover":v||"render"!==t?void 0:"true"});return R&&!v?o.createElement(o.Fragment,null,C,o.createElement(rl,{page:w})):C});rf.displayName="Link";var rm=o.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:n=!1,style:a,to:i,viewTransition:s,children:l,...u},c){let d,p=tm(i,{relative:u.relative}),f=ts(),m=o.useContext(e6),{navigator:y,basename:g}=o.useContext(tt),v=null!=m&&function(e,{relative:t}={}){let r=o.useContext(e7);h(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=rv("useViewTransitionState"),a=tm(e,{relative:t});if(!r.isTransitioning)return!1;let i=_(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=_(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=T(a.pathname,s)||null!=T(a.pathname,i)}(p)&&!0===s,b=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,w=f.pathname,R=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(w=w.toLowerCase(),R=R?R.toLowerCase():null,b=b.toLowerCase()),R&&g&&(R=_(R,g)||R);let E="/"!==b&&b.endsWith("/")?b.length-1:b.length,S=w===b||!n&&w.startsWith(b)&&"/"===w.charAt(E),x=null!=R&&(R===b||!n&&R.startsWith(b)&&"/"===R.charAt(b.length)),C={isActive:S,isPending:x,isTransitioning:v},k=S?e:void 0;d="function"==typeof r?r(C):[r,S?"active":null,x?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let N="function"==typeof a?a(C):a;return o.createElement(rf,{...u,"aria-current":k,className:d,ref:c,style:N,to:i,viewTransition:s},"function"==typeof l?l(C):l)});function ry({getKey:e,storageKey:t,...r}){let n=o.useContext(ro),{basename:a}=o.useContext(tt),i=ts(),s=tA();!function({getKey:e,storageKey:t}={}){let r,{router:n}=rv("useScrollRestoration"),{restoreScrollPosition:a,preventScrollReset:i}=(h(r=o.useContext(e6),rg("useScrollRestoration")),r),{basename:s}=o.useContext(tt),l=ts(),u=tA(),c=tN();o.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:r}={};o.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,r])}(o.useCallback(()=>{"idle"===c.state&&(rS[rx(l,u,s,e)]=window.scrollY);try{sessionStorage.setItem(t||rE,JSON.stringify(rS))}catch(e){p(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration="auto"},[c.state,e,s,l,u,t])),"u">typeof document&&(o.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||rE);e&&(rS=JSON.parse(e))}catch(e){}},[t]),o.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(rS,()=>window.scrollY,e?(t,r)=>rx(t,r,s,e):void 0);return()=>t&&t()},[n,s,e]),o.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);try{if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}}catch{p(!1,`"${l.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}!0!==i&&window.scrollTo(0,0)}},[l,a,i]))}({getKey:e,storageKey:t});let l=o.useMemo(()=>{if(!n||!e)return null;let t=rx(i,s,a,e);return t!==i.key?t:null},[]);if(!n||n.isSpaMode)return null;let u=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},"")}try{let r=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof r&&window.scrollTo(0,r)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return o.createElement("script",{...r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${u})(${t6(JSON.stringify(t||rE))}, ${t6(JSON.stringify(l))})`}})}function rg(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function rv(e){let t=o.useContext(e3);return h(t,rg(e)),t}function rb(e,{target:t,replace:r,state:n,preventScrollReset:a,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:u}={}){let c=th(),d=ts(),h=tm(e,{relative:i});return o.useCallback(p=>{if(0===p.button&&(!t||"_self"===t)&&!(p.metaKey||p.altKey||p.ctrlKey||p.shiftKey)){p.preventDefault();let t=void 0!==r?r:y(d)===y(h),f=()=>c(e,{replace:t,state:n,preventScrollReset:a,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:l});u?o.startTransition(()=>f()):f()}},[d,c,h,r,n,t,e,a,i,s,l,u])}function rw(e){p("u">typeof URLSearchParams,"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 t=o.useRef(t0(e)),r=o.useRef(!1),n=ts(),a=o.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=t0(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),i=th(),s=o.useCallback((e,t)=>{let n=t0("function"==typeof e?e(new URLSearchParams(a)):e);r.current=!0,i("?"+n,t)},[i,a]);return[a,s]}rm.displayName="NavLink",o.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:a,state:i,method:s=tX,action:l,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:f,...m},g)=>{let{unstable_useTransitions:v}=o.useContext(tt),b=function(){let{router:e}=rv("useSubmit"),{basename:t}=o.useContext(tt),r=tk("useRouteId"),n=e.fetch,a=e.navigate;return o.useCallback(async(e,o={})=>{let{action:i,method:s,encType:l,formData:u,body:c}=function(e,t){let r,n,a,o,i;if(tZ(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?_(i,t):null,r=e.getAttribute("method")||tX,a=t4(e.getAttribute("enctype"))||tQ,o=new FormData(e)}else if(tZ(e)&&"button"===e.tagName.toLowerCase()||tZ(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(n=s?_(s,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||tX,a=t4(e.getAttribute("formenctype"))||t4(i.getAttribute("enctype"))||tQ,o=new FormData(i,e),!function(){if(null===t1)try{new FormData(document.createElement("form"),0),t1=!1}catch(e){t1=!0}return t1}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,n)}}else if(tZ(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r=tX,n=null,a=tQ,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(e,t);if(!1===o.navigate){let e=o.fetcherKey||`__${String(++rR)}__`;await n(e,r,o.action||i,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:u,body:c,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await a(o.action||i,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:u,body:c,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,a,t,r])}(),w=function(e,{relative:t}={}){let{basename:r}=o.useContext(tt),n=o.useContext(tn);h(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),i={...tm(e||".",{relative:t})},s=ts();if(null==e){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?`?${r}`:""}}return(!e||"."===e)&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==r&&(i.pathname="/"===i.pathname?r:U([r,i.pathname])),y(i)}(l,{relative:c}),R="get"===s.toLowerCase()?"get":"post",E="string"==typeof l&&rp.test(l);return o.createElement("form",{ref:g,method:R,action:w,onSubmit:n?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let n=e.nativeEvent.submitter,l=n?.getAttribute("formmethod")||s,h=()=>b(n||e.currentTarget,{fetcherKey:t,method:l,navigate:r,replace:a,state:i,relative:c,preventScrollReset:d,viewTransition:p,unstable_defaultShouldRevalidate:f});v&&!1!==r?o.startTransition(()=>h()):h()},...m,"data-discover":E||"render"!==e?void 0:"true"})}).displayName="Form",ry.displayName="ScrollRestoration";var rR=0,rE="react-router-scroll-positions",rS={};function rx(e,t,r,n){let a=null;return n&&(a=n("/"!==r?{...e,pathname:_(e.pathname,r)||e.pathname}:e,t)),null==a&&(a=e.key),a}function rC(e,t){let{capture:r}=t||{};o.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}let rk="__gh__react-core-preventAutofocus";var rN=r(40367),rA=r(73502);let rP=(0,o.createContext)({routes:[]});rP.displayName="RoutesContext";let rT=()=>{let{routes:e}=(0,o.use)(rP),t=th();return(0,o.useCallback)((n,a={})=>{if(!x(e,D(n).pathname)||a.reloadDocument){let e="string"==typeof n?n:y(n);a.preventTurbo?window.location.href=e:(async()=>{let{softNavigate:t}=await Promise.all([r.e("26533"),r.e("71686")]).then(r.bind(r,39749));t(e)})()}else{(0,rN.A)(location.href,n.toString())||(0,rA.SC)("react");let{preventAutofocus:e,...r}=a;t(n,e?{...r,state:{[rk]:!0,...r.state}}:r)}},[t,e])};var rL=r(16522);let r_=()=>{let e,t,r=(0,rL.c)(7),[n]=rw(),a=rT(),{pathname:o}=ts();r[0]!==a||r[1]!==o||r[2]!==n?(e=(e,t)=>{a({pathname:o,search:t0("function"==typeof e?e(n):e).toString()},void 0===t?{}:t)},r[0]=a,r[1]=o,r[2]=n,r[3]=e):e=r[3];let i=e;return r[4]!==n||r[5]!==i?(t=[n,i],r[4]=n,r[5]=i,r[6]=t):t=r[6],t};function rj(e,t,r){let n,a,i=(0,rL.c)(6),s=void 0===r||r,{navigator:l}=(0,o.use)(tt),u=(0,o.useRef)(void 0),c=(0,o.useRef)(null);i[0]!==e||i[1]!==t||i[2]!==l||i[3]!==s?(n=()=>{let r=function(){u.current?.(),u.current=void 0,window.onbeforeunload=c.current,c.current=null};if(!s)return void r();if(!u.current){if(!l.hasOwnProperty("block"))return;u.current=l.block(t=>{e({...t,retry(){u.current?.(),t.retry()}})}),c.current=window.onbeforeunload,window.onbeforeunload=()=>t}return r},a=[l,e,t,s],i[0]=e,i[1]=t,i[2]=l,i[3]=s,i[4]=n,i[5]=a):(n=i[4],a=i[5]),(0,o.useEffect)(n,a)}var rD=r(74848),rO=r(26316);let rI=e=>{let t,r,n,a,i,s,l,u=(0,rL.c)(17);u[0]!==e?({to:a,reloadDocument:n,preventAutofocus:t,...r}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=a):(t=u[1],r=u[2],n=u[3],a=u[4]);let{routes:c}=(0,o.use)(rP);if(u[5]!==n||u[6]!==c||u[7]!==a){let e=D(a,rO.fV.pathname).pathname;i=n??!x(c,e),u[5]=n,u[6]=c,u[7]=a,u[8]=i}else i=u[8];return n=i,u[9]!==t||u[10]!==r.state?(s=t?{[rk]:!0,...r.state}:r.state,u[9]=t,u[10]=r.state,u[11]=s):s=u[11],u[12]!==r||u[13]!==n||u[14]!==s||u[15]!==a?(l=(0,rD.jsx)(rf,{to:a,...r,state:s,reloadDocument:n}),u[12]=r,u[13]=n,u[14]=s,u[15]=a,u[16]=l):l=u[16],l};function r$(e){let t,r,n,a,i,s,l,u=(0,rL.c)(17);u[0]!==e?({to:a,reloadDocument:n,preventAutofocus:t,...r}=e,u[0]=e,u[1]=t,u[2]=r,u[3]=n,u[4]=a):(t=u[1],r=u[2],n=u[3],a=u[4]);let{routes:c}=(0,o.use)(rP);if(u[5]!==n||u[6]!==c||u[7]!==a){let e=D(a,rO.fV.pathname).pathname;i=n??!x(c,e),u[5]=n,u[6]=c,u[7]=a,u[8]=i}else i=u[8];return n=i,u[9]!==t||u[10]!==r.state?(s=t?{[rk]:!0,...r.state}:r.state,u[9]=t,u[10]=r.state,u[11]=s):s=u[11],u[12]!==r||u[13]!==n||u[14]!==s||u[15]!==a?(l=(0,rD.jsx)(rm,{to:a,...r,state:s,reloadDocument:n}),u[12]=r,u[13]=n,u[14]=s,u[15]=a,u[16]=l):l=u[16],l}rI.displayName="ExtendedLink",r$.displayName="ExtendedNavLink"}}]);
//# sourceMappingURL=react-core-5860ae2cdde78efe-b9323d604f861505.js.map