vendor: 9,874 bytes, lines 1-17
1var cr=Object.defineProperty;var fr=(e,t,r)=>t in e?cr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var V=(e,t,r)=>fr(e,typeof t!="symbol"?t+"":t,r);function Se(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Le={exports:{}},T={};/** 2 * @license React 3 * react.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var ct;function dr(){if(ct)return T;ct=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),i=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),m=Symbol.iterator;function g(c){return c===null||typeof c!="object"?null:(c=m&&c[m]||c["@@iterator"],typeof c=="function"?c:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,v={};function y(c,h,w){this.props=c,this.context=h,this.refs=v,this.updater=w||R}y.prototype.isReactComponent={},y.prototype.setState=function(c,h){if(typeof c!="object"&&typeof c!="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,h,"setState")},y.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};function S(){}S.prototype=y.prototype;function b(c,h,w){this.props=c,this.context=h,this.refs=v,this.updater=w||R}var $=b.prototype=new S;$.constructor=b,E($,y.prototype),$.isPureReactComponent=!0;var L=Array.isArray;function D(){}var x={H:null,A:null,T:null,S:null},z=Object.prototype.hasOwnProperty;function K(c,h,w){var C=w.ref;return{$$typeof:e,type:c,key:h,ref:C!==void 0?C:null,props:w}}function le(c,h){return K(c.type,h,c.props)}function ue(c){return typeof c=="object"&&c!==null&&c.$$typeof===e}function Oe(c){var h={"=":"=0",":":"=2"};return"$"+c.replace(/[=:]/g,function(w){return h[w]})}var ce=/\/+/g;function Q(c,h){return typeof c=="object"&&c!==null&&c.key!=null?Oe(""+c.key):h.toString(36)}function q(c){switch(c.status){case"fulfilled":return c.value;case"rejected":throw c.reason;default:switch(typeof c.status=="string"?c.then(D,D):(c.status="pending",c.then(function(h){c.status==="pending"&&(c.status="fulfilled",c.value=h)},function(h){c.status==="pending"&&(c.status="rejected",c.reason=h)})),c.status){case"fulfilled":return c.value;case"rejected":throw c.reason}}throw c}function ee(c,h,w,C,_){var A=typeof c;(A==="undefined"||A==="boolean")&&(c=null);var P=!1;if(c===null)P=!0;else switch(A){case"bigint":case"string":case"number":P=!0;break;case"object":switch(c.$$typeof){case e:case t:P=!0;break;case f:return P=c._init,ee(P(c._payload),h,w,C,_)}}if(P)return _=_(c),P=C===""?"."+Q(c,0):C,L(_)?(w="",P!=null&&(w=P.replace(ce,"$&/")+"/"),ee(_,h,w,"",function(ur){return ur})):_!=null&&(ue(_)&&(_=le(_,w+(_.key==null||c&&c.key===_.key?"":(""+_.key).replace(ce,"$&/")+"/")+P)),h.push(_)),1;P=0;var W=C===""?".":C+":";if(L(c))for(var H=0;H<c.length;H++)C=c[H],A=W+Q(C,H),P+=ee(C,h,w,A,_);else if(H=g(c),typeof H=="function")for(c=H.call(c),H=0;!(C=c.next()).done;)C=C.value,A=W+Q(C,H++),P+=ee(C,h,w,A,_);else if(A==="object"){if(typeof c.then=="function")return ee(q(c),h,w,C,_);throw h=String(c),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.")}return P}function ye(c,h,w){if(c==null)return c;var C=[],_=0;return ee(c,C,"","",function(A){return h.call(w,A,_++)}),C}function sr(c){if(c._status===-1){var h=c._result;h=h(),h.then(function(w){(c._status===0||c._status===-1)&&(c._status=1,c._result=w)},function(w){(c._status===0||c._status===-1)&&(c._status=2,c._result=w)}),c._status===-1&&(c._status=0,c._result=h)}if(c._status===1)return c._result.default;throw c._result}var ut=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var h=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(h))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)},lr={map:ye,forEach:function(c,h,w){ye(c,function(){h.apply(this,arguments)},w)},count:function(c){var h=0;return ye(c,function(){h++}),h},toArray:function(c){return ye(c,function(h){return h})||[]},only:function(c){if(!ue(c))throw Error("React.Children.only expected to receive a single React element child.");return c}};return T.Activity=p,T.Children=lr,T.Component=y,T.Fragment=r,T.Profiler=a,T.PureComponent=b,T.StrictMode=n,T.Suspense=s,T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,T.__COMPILER_RUNTIME={__proto__:null,c:function(c){return x.H.useMemoCache(c)}},T.cache=function(c){return function(){return c.apply(null,arguments)}},T.cacheSignal=function(){return null},T.cloneElement=function(c,h,w){if(c==null)throw Error("The argument must be a React element, but you passed "+c+".");var C=E({},c.props),_=c.key;if(h!=null)for(A in h.key!==void 0&&(_=""+h.key),h)!z.call(h,A)||A==="key"||A==="__self"||A==="__source"||A==="ref"&&h.ref===void 0||(C[A]=h[A]);var A=arguments.length-2;if(A===1)C.children=w;else if(1<A){for(var P=Array(A),W=0;W<A;W++)P[W]=arguments[W+2];C.children=P}return K(c.type,_,C)},T.createContext=function(c){return c={$$typeof:l,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:o,_context:c},c},T.createElement=function(c,h,w){var C,_={},A=null;if(h!=null)for(C in h.key!==void 0&&(A=""+h.key),h)z.call(h,C)&&C!=="key"&&C!=="__self"&&C!=="__source"&&(_[C]=h[C]);var P=arguments.length-2;if(P===1)_.children=w;else if(1<P){for(var W=Array(P),H=0;H<P;H++)W[H]=arguments[H+2];_.children=W}if(c&&c.defaultProps)for(C in P=c.defaultProps,P)_[C]===void 0&&(_[C]=P[C]);return K(c,A,_)},T.createRef=function(){return{current:null}},T.forwardRef=function(c){return{$$typeof:u,render:c}},T.isValidElement=ue,T.lazy=function(c){return{$$typeof:f,_payload:{_status:-1,_result:c},_init:sr}},T.memo=function(c,h){return{$$typeof:i,type:c,compare:h===void 0?null:h}},T.startTransition=function(c){var h=x.T,w={};x.T=w;try{var C=c(),_=x.S;_!==null&&_(w,C),typeof C=="object"&&C!==null&&typeof C.then=="function"&&C.then(D,ut)}catch(A){ut(A)}finally{h!==null&&w.types!==null&&(h.types=w.types),x.T=h}},T.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},T.use=function(c){return x.H.use(c)},T.useActionState=function(c,h,w){return x.H.useActionState(c,h,w)},T.useCallback=function(c,h){return x.H.useCallback(c,h)},T.useContext=function(c){return x.H.useContext(c)},T.useDebugValue=function(){},T.useDeferredValue=function(c,h){return x.H.useDeferredValue(c,h)},T.useEffect=function(c,h){return x.H.useEffect(c,h)},T.useEffectEvent=function(c){return x.H.useEffectEvent(c)},T.useId=function(){return x.H.useId()},T.useImperativeHandle=function(c,h,w){return x.H.useImperativeHandle(c,h,w)},T.useInsertionEffect=function(c,h){return x.H.useInsertionEffect(c,h)},T.useLayoutEffect=function(c,h){return x.H.useLayoutEffect(c,h)},T.useMemo=function(c,h){return x.H.useMemo(c,h)},T.useOptimistic=function(c,h){return x.H.useOptimistic(c,h)},T.useReducer=function(c,h,w){return x.H.useReducer(c,h,w)},T.useRef=function(c){return x.H.useRef(c)},T.useState=function(c){return x.H.useState(c)},T.useSyncExternalStore=function(c,h,w){return x.H.useSyncExternalStore(c,h,w)},T.useTransition=function(){return x.H.useTransition()},T.version="19.2.8",T}var ft;function kt(){return ft||(ft=1,Le.exports=dr()),Le.exports}var d=kt();const k=Se(d);var ke={exports:{}},I={};/** 10 * @license React 11 * react-dom.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var dt;function pr(){if(dt)return I;dt=1;var e=kt();function t(s){var i="https://react.dev/errors/"+s;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)i+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+s+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(s,i,f){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:s,containerInfo:i,implementation:f}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(s,i){if(s==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}return I.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,I.createPortal=function(s,i){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)throw Error(t(299));return o(s,i,null,f)},I.flushSync=function(s){var i=l.T,f=n.p;try{if(l.T=null,n.p=2,s)return s()}finally{l.T=i,n.p=f,n.d.f()}},I.preconnect=function(s,i){typeof s=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,n.d.C(s,i))},I.prefetchDNS=function(s){typeof s=="string"&&n.d.D(s)}
17,I.preinit=function(s,i){if(typeof s=="string"&&i&&typeof i.as=="string"){var f=i.as,p=u(f,i.crossOrigin),m=typeof i.integrity=="string"?i.integrity:void 0,g=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;f==="style"?n.d.S(s,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:p,integrity:m,fetchPriority:g}):f==="script"&&n.d.X(s,{crossOrigin:p,integrity:m,fetchPriority:g,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},I.preinitModule=function(s,i){if(typeof s=="string")if(typeof i=="object"&&i!==null){if(i.as==null||i.as==="script"){var f=u(i.as,i.crossOrigin);n.d.M(s,{crossOrigin:f,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})}}else i==null&&n.d.M(s)},I.preload=function(s,i){if(typeof s=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){var f=i.as,p=u(f,i.crossOrigin);n.d.L(s,f,{crossOrigin:p,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0,type:typeof i.type=="string"?i.type:void 0,fetchPriority:typeof i.fetchPriority=="string"?i.fetchPriority:void 0,referrerPolicy:typeof i.referrerPolicy=="string"?i.referrerPolicy:void 0,imageSrcSet:typeof i.imageSrcSet=="string"?i.imageSrcSet:void 0,imageSizes:typeof i.imageSizes=="string"?i.imageSizes:void 0,media:typeof i.media=="string"?i.media:void 0})}},I.preloadModule=function(s,i){if(typeof s=="string")if(i){var f=u(i.as,i.crossOrigin);n.d.m(s,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:f,integrity:typeof i.integrity=="string"?i.integrity:void 0})}else n.d.m(s)},I.requestFormReset=function(s){n.d.r(s)},I.unstable_batchedUpdates=function(s,i){return s(i)},I.useFormState=function(s,i,f){return l.H.useFormState(s,i,f)},I.useFormStatus=function(){return l.H.useHostTransitionStatus()},I.version="19.2.8",I}var pt;function Sa(){if(pt)return ke.exports;pt=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ke.exports=pr(),ke.exports}/** 18 * react-router v7.18.3 19 * 20 * Copyright (c) Remix Software Inc. 21 * 22 * This source code is licensed under the MIT license found in the 23 * LICENSE.md file in the root directory of this source tree. 24 * 25 * @license MIT 26 */var Ze=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,$t=/^[\\/]{2}/;function hr(e,t){return t+e.replace(/\\/g,"/")}var ht="popstate";function mt(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function mr(e={}){function t(n,a){var i;let o=(i=a.state)==null?void 0:i.masked,{pathname:l,search:u,hash:s}=o||n.location;return Ye("",{pathname:l,search:u,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default",o?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}function r(n,a){return typeof a=="string"?a:Z(a)}return gr(t,r,null,e)}function O(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function B(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function yr(){return Math.random().toString(36).substring(2,10)}function yt(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Ye(e,t,r=null,n,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?oe(t):t,state:r,key:t&&t.key||n||yr(),mask:a}}function Z({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 oe(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 gr(e,t,r,n={}){let{window:a=document.defaultView,v5Compat:o=!1}=n,l=a.history,u="POP",s=null,i=f();i==null&&(i=0,l.replaceState({...l.state,idx:i},""));function f(){return(l.state||{idx:null}).idx}function p(){u="POP";let v=f(),y=v==null?null:v-i;i=v,s&&s({action:u,location:E.location,delta:y})}function m(v,y){u="PUSH";let S=mt(v)?v:Ye(E.location,v,y);i=f()+1;let b=yt(S,i),$=E.createHref(S.mask||S);try{l.pushState(b,"",$)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;a.location.assign($)}o&&s&&s({action:u,location:E.location,delta:1})}function g(v,y){u="REPLACE";let S=mt(v)?v:Ye(E.location,v,y);i=f();let b=yt(S,i),$=E.createHref(S.mask||S);l.replaceState(b,"",$),o&&s&&s({action:u,location:E.location,delta:0})}function R(v){return vr(a,v)}let E={get action(){return u},get location(){return e(a,l)},listen(v){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(ht,p),s=v,()=>{a.removeEventListener(ht,p),s=null}},createHref(v){return t(a,v)},createURL:R,encodeLocation(v){let y=R(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:g,go(v){return l.go(v)}};return E}function vr(e,t,r=!1){let n="http://localhost";e&&(n=e.location.origin!=="null"?e.location.origin:e.location.href),O(n,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:Z(t);return a=a.replace(/ $/,"%20"),!r&&$t.test(a)&&(a=n+a),new URL(a,n)}function It(e,t,r="/"){return Er(e,t,r,!1)}function Er(e,t,r,n,a){let o=typeof t=="string"?oe(t):t,l=G(o.pathname||"/",r);if(l==null)return null;
vendor: 2,326 bytes, line 26
26let u=Rr(e),s=null,i=Lr(l);for(let f=0;s==null&&f<u.length;++f)s=Or(u[f],i,n);return s}function Rr(e){let t=Dt(e);return Tr(t),t}function Dt(e,t=[],r=[],n="",a=!1){let o=(l,u,s=a,i)=>{let f={relativePath:i===void 0?l.path||"":i,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(n)&&s)return;O(f.relativePath.startsWith(n),`Absolute route path "${f.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(n.length)}let p=F([n,f.relativePath]),m=r.concat(f);l.children&&l.children.length>0&&(O(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Dt(l.children,t,m,p,s)),!(l.path==null&&!l.index)&&t.push({path:p,score:Ar(p,l.index),routesMeta:m.map((g,R)=>{let[E,v]=Nt(g.relativePath,g.caseSensitive,R===m.length-1);return{...g,matcher:E,compiledParams:v}})})};return e.forEach((l,u)=>{var s;if(l.path===""||!((s=l.path)!=null&&s.includes("?")))o(l,u);else for(let i of Ht(l.path))o(l,u,!0,i)}),t}function Ht(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let l=Ht(n.join("/")),u=[];return u.push(...l.map(s=>s===""?o:[o,s].join("/"))),a&&u.push(...l),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function Tr(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Pr(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Cr=/^:[\w-]+$/,wr=3,Sr=2,br=1,xr=10,_r=-2,gt=e=>e==="*";function Ar(e,t){let r=e.split("/"),n=r.length;return r.some(gt)&&(n+=_r),t&&(n+=Sr),r.filter(a=>!gt(a)).reduce((a,o)=>a+(Cr.test(o)?wr:o===""?br:xr),n)}function Pr(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function Or(e,t,r=!1){let{routesMeta:n}=e,a={},o="/",l=[];for(let u=0;u<n.length;++u){let s=n[u],i=u===n.length-1,f=o==="/"?t:t.slice(o.length)||"/",p={path:s.relativePath,caseSensitive:s.caseSensitive,end:i},m=s.matcher&&s.compiledParams?Mt(p,f,s.matcher,s.compiledParams):we(p,f),g=s.route;if(!m&&i&&r&&!n[n.length-1].route.index&&(m=we({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},f)),!m)return null;
26Object.assign(a,m.params),l.push({params:a,pathname:F([o,m.pathname]),pathnameBase:Ir(F([o,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(o=F([o,m.pathnameBase]))}return l}function we(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Nt(e.path,e.caseSensitive,e.end);return Mt(e,t,r,n)}function Mt(e,t,r,n){let a=t.match(r);if(!a)return null;let o=a[0],l=ae(o,1),u=a.slice(1);return{params:n.reduce((i,{paramName:f,isOptional:p},m)=>{if(f==="*"){let R=u[m]||"";l=ae(o.slice(0,o.length-R.length),1)}const g=u[m];return p&&!g?i[f]=void 0:i[f]=(g||"").replace(/%2F/g,"/"),i},{}),pathname:o,pathnameBase:l,pattern:e}}function Nt(e,t=!1,r=!0){B(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,(l,u,s,i,f)=>{if(n.push({paramName:u,isOptional:s!=null}),s){let p=f.charAt(i+l.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).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]}function Lr(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return B(!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 G(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function kr(e,t="/"){let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?oe(e):e,o;return r?(r=Ut(r),r.startsWith("/")||r.startsWith("\\")?o=vt(r.substring(1),"/"):o=vt(r,t)):o=t,{pathname:o,search:Dr(n),hash:Hr(a)}}function vt(e,t){let r=ae(t).split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function $e(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 $r(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Qe(e){let t=$r(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function be(e,t,r,n=!1){let a;typeof e=="string"?a=oe(e):(a={...e},O(!a.pathname||!a.pathname.includes("?"),$e("?","pathname","search",a)),O(!a.pathname||!a.pathname.includes("#"),$e("#","pathname","hash",a)),O(!a.search||!a.search.includes("#"),$e("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,u;if(l==null)u=r;else{let p=t.length-1;if(!n&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),p-=1;a.pathname=m.join("/")}u=p>=0?t[p]:"/"}let s=kr(a,u),i=l&&l!=="/"&&l.endsWith("/"),f=(o||l===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(i||f)&&(s.pathname+="/"),s}var Ut=e=>e.replace(/[\\/]{2,}/g,"/"),F=e=>Ut(e.join("/"));function ae(e,t=0){let r=e.length;for(;r>t&&e.charCodeAt(r-1)===47;)r--;return r===e.length?e:e.slice(0,r)}var Ir=e=>ae(e).replace(/^\/*/,"/"),Dr=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Hr=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Mr=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 Nr(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Ur(e){let t=e.map(r=>r.route.path).filter(Boolean);return F(t)||"/"}var jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ft(e,t){let r=e;if(typeof r!="string"||!Ze.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,a=!1;if(jt)try{let o=new URL(window.location.href),l=$t.test(r)?new URL(hr(r,o.protocol)):new URL(r),u=G(l.pathname,t);l.origin===o.origin&&u!=null?r=u+l.search+l.hash:a=!0}catch{B(!1,`<Link to="${r}">
26 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:a,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Et=new URL("http://localhost");function et(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),Et)}catch{return Et}}function Ie(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}function jr(e,t){if(e.startsWith("//"))return!0;let r=t.protocol.toLowerCase();return e.toLowerCase().startsWith(r)?t.host===""||e.slice(r.length).startsWith("//"):!1}function tt(e,t,r,n){let a=null;try{a=e==null?null:new URL(e,r)}catch{}let o=new URL(t,r),l=a!=null&&!Ie(a,r),u=!Ie(o,r);if(n==="reject"){if(l||u)throw new Error("External navigation is not allowed")}else if(u&&(a==null||!jr(e,a)||!Ie(a,o)))throw new Error("External navigation is not allowed")}var Bt=["POST","PUT","PATCH","DELETE"];new Set(Bt);var Fr=["GET",...Bt];new Set(Fr);var Br=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function qr(e){try{return Br.includes(new URL(e).protocol)}catch{return!1}}var ie=d.createContext(null);ie.displayName="DataRouter";var xe=d.createContext(null);xe.displayName="DataRouterState";var qt=d.createContext(!1);function Wr(){return d.useContext(qt)}var Wt=d.createContext({isTransitioning:!1});Wt.displayName="ViewTransition";var Yr=d.createContext(new Map);Yr.displayName="Fetchers";var zr=d.createContext(null);zr.displayName="Await";var M=d.createContext(null);M.displayName="Navigation";var he=d.createContext(null);he.displayName="Location";var U=d.createContext({outlet:null,matches:[],isDataRoute:!1});U.displayName="Route";var rt=d.createContext(null);rt.displayName="RouteError";var Yt="REACT_ROUTER_ERROR",Kr="REDIRECT",Vr="ROUTE_ERROR_RESPONSE";function Gr(e){if(e.startsWith(`${Yt}:${Kr}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Jr(e){if(e.startsWith(`${Yt}:${Vr}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Mr(t.status,t.statusText,t.data)}catch{}}function Xr(e,{relative:t}={}){O(se(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=d.useContext(M),{hash:a,pathname:o,search:l}=me(e,{relative:t}),u=o;return r!=="/"&&(u=o==="/"?r:F([r,o])),n.createHref({pathname:u,search:l,hash:a})}function se(){return d.useContext(he)!=null}function Y(){return O(se(),"useLocation() may be used only in the context of a <Router> component."),d.useContext(he).location}var zt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Kt(e){d.useContext(M).static||d.useLayoutEffect(e)}function Vt(){let{isDataRoute:e}=d.useContext(U);return e?pn():Zr()}function Zr(){O(se(),"useNavigate() may be used only in the context of a <Router> component.");let e=d.useContext(ie),{basename:t,navigator:r}=d.useContext(M),{matches:n}=d.useContext(U),{pathname:a}=Y(),o=JSON.stringify(Qe(n)),l=d.useRef(!1);return Kt(()=>{l.current=!0}),d.useCallback((s,i={})=>{if(B(l.current,zt),!l.current)return;if(typeof s=="number"){r.go(s);return}let f=be(s,JSON.parse(o),a,i.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:F([t,f.pathname])),tt(typeof s=="string"?s:Z(s),r.createHref(f),et(r),"reject"),(i.replace?r.replace:r.push)(f,i.state,i)},[t,r,o,a,e])}var Qr=d.createContext(null);function en(e){let t=d.useContext(U).outlet;return d.useMemo(()=>t&&d.createElement(Qr.Provider,{value:e},t),[t,e])}function ba(){let{matches:e}=d.useContext(U),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function me(e,{relative:t}={}){let{matches:r}=d.useContext(U),{pathname:n}=Y(),a=JSON.stringify(Qe(r));return d.useMemo(()=>be(e,JSON.parse(a),n,t==="path"),[e,a,n,t])}function tn(e,t){return Gt(e,t)}function Gt(e,t,r){var v;O(se(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=d.useContext(M),{matches:a}=d.useContext(U),o=a[a.length-1],l=o?o.params:{},u=o?o.pathname:"/",s=o?o.pathnameBase:"/",i=o&&o.route;{let y=i&&i.path||"";Xt(u,!i||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${y}">) 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. 27 28Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let f=Y(),p;if(t){let y=typeof t=="string"?oe(t):t;O(s==="/"||((v=y.pathname)==null?void 0:v.startsWith(s)),`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 "${s}" but pathname "${y.pathname}" was given in the \`location\` prop.`),p=y}else p=f;let m=p.pathname||"/",g=m;if(s!=="/"){let y=s.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(y.length).join("/")}let R=r&&r.state.matches.length?r.state.matches.map(y=>Object.assign(y,{route:r.manifest[y.route.id]||y.route})):It(e,{pathname:g});B(i||R!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),B(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.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 E=sn(R&&R.map(y=>Object.assign({},y,{params:Object.assign({},l,y.params),pathname:F([s,n.encodeLocation?n.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:F([s,n.encodeLocation?n.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),a,r);return t&&E?d.createElement(he.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},E):E}function rn(){let e=dn(),t=Nr(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:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=d.createElement(d.Fragment,null,d.createElement("p",null,"ð¿ Hey developer ð"),d.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",d.createElement("code",{style:o},"ErrorBoundary")," or"," ",d.createElement("code",{style:o},"errorElement")," prop on your route.")),d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application
28Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:a},r):null,l)}var nn=d.createElement(rn,null),Jt=class extends d.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||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?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&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=Jr(e.digest);r&&(e=r)}let t=e!==void 0?d.createElement(U.Provider,{value:this.props.routeContext},d.createElement(rt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?d.createElement(an,{error:e},t):t}};Jt.contextType=qt;var De=new WeakMap;function an({children:e,error:t}){let{basename:r,navigator:n}=d.useContext(M);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=Gr(t.digest);if(a){let o=De.get(t);if(o)throw o;let l=Ft(a.location,r),u=l.absoluteURL||l.to;if(tt(a.location,u,et(n),"allow-explicit"),qr(u))throw new Error("Invalid redirect location");if(jt&&!De.get(t))if(l.isExternal||a.reloadDocument)window.location.href=u;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:a.replace}));throw De.set(t,s),s}return d.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u}`})}}return e}function on({routeContext:e,match:t,children:r}){let n=d.useContext(ie);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),d.createElement(U.Provider,{value:e},r)}function sn(e,t=[],r){let n=r==null?void 0:r.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n==null?void 0:n.errors;if(o!=null){let f=a.findIndex(p=>p.route.id&&(o==null?void 0:o[p.route.id])!==void 0);O(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let l=!1,u=-1;if(r&&n){l=n.renderFallback;for(let f=0;f<a.length;f++){let p=a[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=f),p.route.id){let{loaderData:m,errors:g}=n,R=p.route.loader&&!m.hasOwnProperty(p.route.id)&&(!g||g[p.route.id]===void 0);if(p.route.lazy||R){r.isStatic&&(l=!0),u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}}let s=r==null?void 0:r.onError,i=n&&s?(f,p)=>{var m,g;s(f,{location:n.location,params:((g=(m=n.matches)==null?void 0:m[0])==null?void 0:g.params)??{},pattern:Ur(n.matches),errorInfo:p})}:void 0;return a.reduceRight((f,p,m)=>{let g,R=!1,E=null,v=null;n&&(g=o&&p.route.id?o[p.route.id]:void 0,E=p.route.errorElement||nn,l&&(u<0&&m===0?(Xt("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,v=null):u===m&&(R=!0,v=p.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,m+1)),S=()=>{let b;return g?b=E:R?b=v:p.route.Component?b=d.createElement(p.route.Component,null):p.route.element?b=p.route.element:b=f,d.createElement(on,{match:p,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:b})};return n&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?d.createElement(Jt,{location:n.location,revalidation:n.revalidation,component:E,error:g,children:S(),routeC
28ontext:{outlet:null,matches:y,isDataRoute:!0},onError:i}):S()},null)}function nt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ln(e){let t=d.useContext(ie);return O(t,nt(e)),t}function un(e){let t=d.useContext(xe);return O(t,nt(e)),t}function cn(e){let t=d.useContext(U);return O(t,nt(e)),t}function at(e){let t=cn(e),r=t.matches[t.matches.length-1];return O(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function fn(){return at("useRouteId")}function dn(){var n;let e=d.useContext(rt),t=un("useRouteError"),r=at("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function pn(){let{router:e}=ln("useNavigate"),t=at("useNavigate"),r=d.useRef(!1);return Kt(()=>{r.current=!0}),d.useCallback(async(a,o={})=>{B(r.current,zt),r.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var Rt={};function Xt(e,t,r){!t&&!Rt[e]&&(Rt[e]=!0,B(!1,r))}d.memo(hn);function hn({routes:e,manifest:t,future:r,state:n,isStatic:a,onError:o}){return Gt(e,void 0,{manifest:t,state:n,isStatic:a,onError:o})}function xa({to:e,replace:t,state:r,relative:n}){O(se(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a,navigator:o}=d.useContext(M);B(!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:l}=d.useContext(U),{pathname:u}=Y(),s=Vt(),i=be(e,Qe(l),u,n==="path");tt(typeof e=="string"?e:Z(e),o.createHref(i),et(o),"reject");let f=JSON.stringify(i);return d.useEffect(()=>{s(JSON.parse(f),{replace:t,state:r,relative:n})},[s,f,n,t,r]),null}function _a(e){return en(e.context)}function mn(e){O(!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 yn({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:a,static:o=!1,useTransitions:l}){O(!se(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),s=d.useMemo(()=>({basename:u,navigator:a,static:o,useTransitions:l,future:{}}),[u,a,o,l]);typeof r=="string"&&(r=oe(r));let{pathname:i="/",search:f="",hash:p="",state:m=null,key:g="default",mask:R}=r,E=d.useMemo(()=>{let v=G(i,u);return v==null?null:{location:{pathname:v,search:f,hash:p,state:m,key:g,mask:R},navigationType:n}},[u,i,f,p,m,g,n,R]);return B(E!=null,`<Router basename="${u}"> is not able to match the URL "${i}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:d.createElement(M.Provider,{value:s},d.createElement(he.Provider,{children:t,value:E}))}function Aa({children:e,location:t}){return tn(ze(e),t)}function ze(e,t=[]){let r=[];return d.Children.forEach(e,(n,a)=>{if(!d.isValidElement(n))return;let o=[...t,a];if(n.type===d.Fragment){r.push.apply(r,ze(n.props.children,o));return}O(n.type===mn,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),O(!n.props.index||!n.props.children,"An index route cannot have child routes.");let l={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=ze(n.props.children,o)),r.push(l)}),r}var Ee="get",Re="application/x-www-form-urlencoded";function _e(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function gn(e){return _e(e)&&e.tagName.toLowerCase()==="button"}function vn(e){return _e(e)&&e.tagName.toLowerCase()==="form"}function En(e){return _e(e)&&e.tagName.toLowerCase()==="input"}function Rn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Tn(e,t){return e.button===0&&(!t||t==="_self")&&!Rn(e)}var ge=null;function Cn(){if(ge===null)try{new FormData(document.createElement("form"),0),ge=!1}catch{ge=!0}return ge}var wn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function He(e){return e!=null&&!wn.has(e)?(B(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Re}"`),null):e}function Sn(e,t){let r,n,a,o,l;if(vn(e)){let u=e.getAttribute("action");n=u?G(u,t):null,r=e.getAttribute("method")||Ee,a=He(e.getAttribute("enctype"))||Re,o=new FormData(e)}else if(gn(e)||En(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||u.getAttribute("action");if(n=s?G(s,t):null,r=e.getAttribute("formmethod")||u.getAttribute("method")||Ee,a=He(e.getAttribute("formenctype"))||He(u.getAttribute("enctype"))||Re,o=new FormData(u,e),!Cn()){let{name:i,type:f,value:p}=e;if(f==="image"){let m=i?`${i}.`:"";o.append(`${m}x`,"0"),o.append(`${m}y`,"0")}
28else i&&o.append(i,p)}}else{if(_e(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ee,n=null,a=Re,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ot(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Zt(e,t,r,n){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${n}`:a.pathname=`${a.pathname}.${n}`:a.pathname==="/"?a.pathname=`_root.${n}`:t&&G(a.pathname,t)==="/"?a.pathname=`${ae(t)}/_root.${n}`:a.pathname=`${ae(a.pathname)}.${n}`,a}async function bn(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(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function xn(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function _n(e,t,r){let n=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await bn(o,r);return l.links?l.links():[]}return[]}));return Ln(n.flat(1).filter(xn).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Tt(e,t,r,n,a,o){let l=(s,i)=>r[i]?s.route.id!==r[i].route.id:!0,u=(s,i)=>{var f;return r[i].pathname!==s.pathname||((f=r[i].route.path)==null?void 0:f.endsWith("*"))&&r[i].params["*"]!==s.params["*"]};return o==="assets"?t.filter((s,i)=>l(s,i)||u(s,i)):o==="data"?t.filter((s,i)=>{var p;let f=n.routes[s.route.id];if(!f||!f.hasLoader)return!1;if(l(s,i)||u(s,i))return!0;
28if(s.route.shouldRevalidate){let m=s.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((p=r[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function An(e,t,{includeHydrateFallback:r}={}){return Pn(e.map(n=>{let a=t.routes[n.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),r&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function Pn(e){return[...new Set(e)]}function On(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function Ln(e,t){let r=new Set;return new Set(t),e.reduce((n,a)=>{let o=JSON.stringify(On(a));return r.has(o)||(r.add(o),n.push({key:o,link:a})),n},[])}function it(){let e=d.useContext(ie);return ot(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function kn(){let e=d.useContext(xe);return ot(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var st=d.createContext(void 0);st.displayName="FrameworkContext";function Ae(){let e=d.useContext(st);return ot(e,"You must render this element inside a <HydratedRouter> element"),e}function $n(e,t){let r=d.useContext(st),[n,a]=d.useState(!1),[o,l]=d.useState(!1),{onFocus:u,onBlur:s,onMouseEnter:i,onMouseLeave:f,onTouchStart:p}=t,m=d.useRef(null);d.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let E=y=>{y.forEach(S=>{l(S.isIntersecting)})},v=new IntersectionObserver(E,{threshold:.5});return m.current&&v.observe(m.current),()=>{v.disconnect()}}},[e]),d.useEffect(()=>{if(n){let E=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(E)}}},[n]);let g=()=>{a(!0)},R=()=>{a(!1),l(!1)};return r?e!=="intent"?[o,m,{}]:[o,m,{onFocus:fe(u,g),onBlur:fe(s,R),onMouseEnter:fe(i,g),onMouseLeave:fe(f,R),onTouchStart:fe(p,g)}]:[!1,m,{}]}function fe(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function In({page:e,...t}){let r=Wr(),{nonce:n}=Ae(),{router:a}=it(),o=d.useMemo(()=>It(a.routes,e,a.basename),[a.routes,e,a.basename]);return o?(t.nonce==null&&n&&(t={...t,nonce:n}),r?d.createElement(Hn,{page:e,matches:o,...t}):d.createElement(Mn,{page:e,matches:o,...t})):null}function Dn(e){let{manifest:t,routeModules:r}=Ae(),[n,a]=d.useState([]);return d.useEffect(()=>{let o=!1;return _n(e,t,r).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,r]),n}function Hn({page:e,matches:t,...r}){let n=Y(),{future:a}=Ae(),{basename:o}=it(),l=d.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let u=Zt(e,o,a.v8_trailingSlashAwareDataRequests,"rsc"),s=!1,i=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?s=!0:i.push(f.route.id);return s&&i.length>0&&u.searchParams.set("_routes",i.join(",")),[u.pathname+u.search]},[o,a.v8_trailingSlashAwareDataRequests,e,n,t]);return d.createElement(d.Fragment,null,l.map(u=>d.createElement("link",{key:u,rel:"prefetch",as:"fetch",href:u,...r})))}function Mn({page:e,matches:t,...r}){let n=Y(),{future:a,manifest:o,routeModules:l}=Ae(),{basename:u}=it(),{loaderData:s,matches:i}=kn(),f=d.useMemo(()=>Tt(e,t,i,o,n,"data"),[e,t,i,o,n]),p=d.useMemo(()=>Tt(e,t,i,o,n,"assets"),[e,t,i,o,n]),m=d.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let E=new Set,v=!1;if(t.forEach(S=>{var $;let b=o.routes[S.route.id];!b||!b.hasLoader||(!f.some(L=>L.route.id===S.route.id)&&S.route.id in s&&(($=l[S.route.id])!=null&&$.shouldRevalidate)||b.hasClientLoader?v=!0:E.add(S.route.id))}),E.size===0)return[];let y=Zt(e,u,a.v8_trailingSlashAwareDataRequests,"data");return v&&E.size>0&&y.searchParams.set("_routes",t.filter(S=>E.has(S.route.id)).map(S=>S.route.id).join(",")),[y.pathname+y.search]},[u,a.v8_trailingSlashAwareDataRequests,s,n,o,f,t,e,l]),g=d.useMemo(()=>An(p,o),[p,o]),R=Dn(p);return d.createElement(d.Fragment,null,m.map(E=>d.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),g.map(E=>d.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),R.map(({key:E,link:v})=>d.createElement("link",{key:E,nonce:r.nonce,...v,crossOrigin:v.crossOrigin??r.crossOrigin})))}function Nn(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Un=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Un&&(window.__reactRouterVersion="7.18.3")}catch{}
vendor: 4,185 bytes, line 28
28function Pa({basename:e,children:t,useTransitions:r,window:n}){let a=d.useRef();a.current==null&&(a.current=mr({window:n,v5Compat:!0}));let o=a.current,[l,u]=d.useState({action:o.action,location:o.location}),s=d.useCallback(i=>{r===!1?u(i):d.startTransition(()=>u(i))},[r]);return d.useLayoutEffect(()=>o.listen(s),[o,s]),d.createElement(yn,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:o,useTransitions:r})}var Qt=d.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:a,reloadDocument:o,replace:l,mask:u,state:s,target:i,to:f,preventScrollReset:p,viewTransition:m,defaultShouldRevalidate:g,...R},E){let{basename:v,navigator:y,useTransitions:S}=d.useContext(M),b=typeof f=="string"&&Ze.test(f),$=Ft(f,v);f=$.to;let L=Xr(f,{relative:a}),D=Y(),x=null;if(u){let q=be(u,[],D.mask?D.mask.pathname:"/",!0);v!=="/"&&(q.pathname=q.pathname==="/"?v:F([v,q.pathname])),x=y.createHref(q)}let[z,K,le]=$n(n,R),ue=qn(f,{replace:l,mask:u,state:s,target:i,preventScrollReset:p,relative:a,viewTransition:m,defaultShouldRevalidate:g,useTransitions:S});function Oe(q){t&&t(q),q.defaultPrevented||ue(q)}let ce=!($.isExternal||o),Q=d.createElement("a",{...R,...le,href:(ce?x:void 0)||$.absoluteURL||L,onClick:ce?Oe:t,ref:Nn(E,K),target:i,"data-discover":!b&&r==="render"?"true":void 0});return z&&!b?d.createElement(d.Fragment,null,Q,d.createElement(In,{page:L})):Q});Qt.displayName="Link";var jn=d.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:a=!1,style:o,to:l,viewTransition:u,children:s,...i},f){let p=me(l,{relative:i.relative}),m=Y(),g=d.useContext(xe),{navigator:R,basename:E}=d.useContext(M),v=g!=null&&Vn(p)&&u===!0,y=R.encodeLocation?R.encodeLocation(p).pathname:p.pathname,S=m.pathname,b=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(S=S.toLowerCase(),b=b?b.toLowerCase():null,y=y.toLowerCase()),b&&E&&(b=G(b,E)||b);const $=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let L=S===y||!a&&S.startsWith(y)&&S.charAt($)==="/",D=b!=null&&(b===y||!a&&b.startsWith(y)&&b.charAt(y.length)==="/"),x={isActive:L,isPending:D,isTransitioning:v},z=L?t:void 0,K;typeof n=="function"?K=n(x):K=[n,L?"active":null,D?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let le=typeof o=="function"?o(x):o;return d.createElement(Qt,{...i,"aria-current":z,className:K,ref:f,style:le,to:l,viewTransition:u},typeof s=="function"?s(x):s)});jn.displayName="NavLink";var Fn=d.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:a,state:o,method:l=Ee,action:u,onSubmit:s,relative:i,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:m,...g},R)=>{let{useTransitions:E}=d.useContext(M),v=zn(),y=Kn(u,{relative:i}),S=l.toLowerCase()==="get"?"get":"post",b=typeof u=="string"&&Ze.test(u),$=L=>{if(s&&s(L),L.defaultPrevented)return;L.preventDefault();let D=L.nativeEvent.submitter,x=(D==null?void 0:D.getAttribute("formmethod"))||l,z=()=>v(D||L.currentTarget,{fetcherKey:t,method:x,navigate:r,replace:a,state:o,relative:i,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:m});E&&r!==!1?d.startTransition(()=>z()):z()};return d.createElement("form",{ref:R,method:S,action:y,onSubmit:n?s:$,...g,"data-discover":!b&&e==="render"?"true":void 0})});Fn.displayName="Form";function Bn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function er(e){let t=d.useContext(ie);return O(t,Bn(e)),t}function qn(e,{target:t,replace:r,mask:n,state:a,preventScrollReset:o,relative:l,viewTransition:u,defaultShouldRevalidate:s,useTransitions:i}={}){let f=Vt(),p=Y(),m=me(e,{relative:l});return d.useCallback(g=>{if(Tn(g,t)){g.preventDefault();let R=r!==void 0?r:Z(p)===Z(m),E=()=>f(e,{replace:R,mask:n,state:a,preventScrollReset:o,relative:l,viewTransition:u,defaultShouldRevalidate:s});i?d.startTransition(()=>E()):E()}},[p,f,m,r,n,a,t,e,o,l,u,s,i])}var Wn=0,Yn=()=>`__${String(++Wn)}__`;function zn(){let{router:e}=er("useSubmit"),{basename:t}=d.useContext(M),r=fn(),n=e.fetch,a=e.navigate;return d.useCallback(async(o,l={})=>{let{action:u,method:s,encType:i,formData:f,body:p}=Sn(o,t);
28if(l.navigate===!1){let m=l.fetcherKey||Yn();await n(m,r,l.action||u,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:f,body:p,formMethod:l.method||s,formEncType:l.encType||i,flushSync:l.flushSync})}else await a(l.action||u,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:f,body:p,formMethod:l.method||s,formEncType:l.encType||i,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[n,a,t,r])}function Kn(e,{relative:t}={}){let{basename:r}=d.useContext(M),n=d.useContext(U);O(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),o={...me(e||".",{relative:t})},l=Y();if(e==null){o.search=l.search;let u=new URLSearchParams(o.search),s=u.getAll("index");if(s.some(f=>f==="")){u.delete("index"),s.filter(p=>p).forEach(p=>u.append("index",p));let f=u.toString();o.search=f?`?${f}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:F([r,o.pathname])),Z(o)}function Vn(e,{relative:t}={}){let r=d.useContext(Wt);O(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=er("useViewTransitionState"),a=me(e,{relative:t});if(!r.isTransitioning)return!1;let o=G(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=G(r.nextLocation.pathname,n)||r.nextLocation.pathname;return we(a.pathname,l)!=null||we(a.pathname,o)!=null}var Me,Ct;function Gn(){if(Ct)return Me;Ct=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(o,l){if(o===l)return!0;if(o&&l&&typeof o=="object"&&typeof l=="object"){if(o.constructor!==l.constructor)return!1;var u,s,i;if(Array.isArray(o)){if(u=o.length,u!=l.length)return!1;for(s=u;s--!==0;)if(!a(o[s],l[s]))return!1;return!0}var f;if(t&&o instanceof Map&&l instanceof Map){if(o.size!==l.size)return!1;for(f=o.entries();!(s=f.next()).done;)if(!l.has(s.value[0]))return!1;for(f=o.entries();!(s=f.next()).done;)if(!a(s.value[1],l.get(s.value[0])))return!1;return!0}if(r&&o instanceof Set&&l instanceof Set){if(o.size!==l.size)return!1;for(f=o.entries();!(s=f.next()).done;)if(!l.has(s.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(l)){if(u=o.length,u!=l.length)return!1;for(s=u;s--!==0;)if(o[s]!==l[s])return!1;return!0}if(o.constructor===RegExp)return o.source===l.source&&o.flags===l.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof l.valueOf=="function")return o.valueOf()===l.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof l.toString=="function")return o.toString()===l.toString();if(i=Object.keys(o),u=i.length,u!==Object.keys(l).length)return!1;for(s=u;s--!==0;)if(!Object.prototype.hasOwnProperty.call(l,i[s]))return!1;if(e&&o instanceof Element)return!1;for(s=u;s--!==0;)if(!((i[s]==="_owner"||i[s]==="__v"||i[s]==="__o")&&o.$$typeof)&&!a(o[i[s]],l[i[s]]))return!1;return!0}return o!==o&&l!==l}return Me=function(l,u){try{return a(l,u)}catch(s){if((s.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw s}},Me}var Jn=Gn();const Xn=Se(Jn);var Ne,wt;function Zn(){if(wt)return Ne;wt=1;var e=function(t,r,n,a,o,l,u,s){if(!t){var i;if(r===void 0)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,a,o,l,u,s],p=0;i=new Error(r.replace(/%s/g,function(){return f[p++]})),i.name="Invariant Violation"}throw i.framesToPop=1,i}};return Ne=e,Ne}var Qn=Zn();const St=Se(Qn);var Ue,bt;function ea(){return bt||(bt=1,Ue=function(t,r,n,a){var o=n?n.call(a,t,r):void 0;if(o!==void 0)return!!o;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var l=Object.keys(t),u=Object.keys(r);if(l.length!==u.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(r),i=0;i<l.length;i++){var f=l[i];if(!s(f))return!1;var p=t[f],m=r[f];if(o=n?n.call(a,p,m,f):void 0,o===!1||o===void 0&&p!==m)return!1}return!0}),Ue}var ta=ea();const ra=Se(ta);var tr=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(tr||{}),je={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]}
28,meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},xt=Object.values(tr),Pe={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},rr=Object.entries(Pe).reduce((e,[t,r])=>(e[r]=t,e),{}),j="data-rh",re={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ne=(e,t)=>{for(let r=e.length-1;r>=0;r-=1){const n=e[r];if(Object.prototype.hasOwnProperty.call(n,t))return n[t]}return null},na=e=>{let t=ne(e,"title");const r=ne(e,re.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),r&&t)return r.replace(/%s/g,()=>t);const n=ne(e,re.DEFAULT_TITLE);return t||n||void 0},aa=e=>ne(e,re.ON_CHANGE_CLIENT_STATE)||(()=>{}),Fe=(e,t)=>t.filter(r=>typeof r[e]<"u").map(r=>r[e]).reduce((r,n)=>({...r,...n}),{}),oa=(e,t)=>t.filter(r=>typeof r.base<"u").map(r=>r.base).reverse().reduce((r,n)=>{if(!r.length){const a=Object.keys(n);for(let o=0;o<a.length;o+=1){const u=a[o].toLowerCase();if(e.indexOf(u)!==-1&&n[u])return r.concat(n)}}return r},[]),ia=e=>console&&typeof console.warn=="function"&&console.warn(e),de=(e,t,r)=>{const n={};return r.filter(a=>Array.isArray(a[e])?!0:(typeof a[e]<"u"&&ia(`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`),!1)).map(a=>a[e]).reverse().reduce((a,o)=>{const l={};o.filter(s=>{let i;const f=Object.keys(s);for(let m=0;m<f.length;m+=1){const g=f[m],R=g.toLowerCase();t.indexOf(R)!==-1&&!(i==="rel"&&s[i].toLowerCase()==="canonical")&&!(R==="rel"&&s[R].toLowerCase()==="stylesheet")&&(i=R),t.indexOf(g)!==-1&&(g==="innerHTML"||g==="cssText"||g==="itemprop")&&(i=g)}if(!i||!s[i])return!1;const p=s[i].toLowerCase();return n[i]||(n[i]={}),l[i]||(l[i]={}),n[i][p]?!1:(l[i][p]=!0,!0)}).reverse().forEach(s=>a.push(s));const u=Object.keys(l);for(let s=0;s<u.length;s+=1){const i=u[s],f={...n[i],...l[i]};n[i]=f}return a},[]).reverse()},sa=(e,t)=>{if(Array.isArray(e)&&e.length){for(let r=0;r<e.length;r+=1)if(e[r][t])return!0}return!1},la=e=>({baseTag:oa(["href"],e),bodyAttributes:Fe("bodyAttributes",e),defer:ne(e,re.DEFER),encode:ne(e,re.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Fe("htmlAttributes",e),linkTags:de("link",["rel","href"],e),metaTags:de("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:de("noscript",["innerHTML"],e),onChangeClientState:aa(e),scriptTags:de("script",["src","innerHTML"],e),styleTags:de("style",["cssText"],e),title:na(e),titleAttributes:Fe("titleAttributes",e),prioritizeSeoTags:sa(e,re.PRIORITIZE_SEO_TAGS)}),nr=e=>Array.isArray(e)?e.join(""):e,ua=(e,t)=>{const r=Object.keys(e);for(let n=0;n<r.length;n+=1)if(t[r[n]]&&t[r[n]].includes(e[r[n]]))return!0;return!1},Be=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(ua(n,t)?r.priority.push(n):r.default.push(n),r),{priority:[],default:[]}):{default:e,priority:[]},_t=(e,t)=>({...e,[t]:void 0}),ca=["noscript","script","style"],Ke=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),ar=e=>Object.keys(e).reduce((t,r)=>{const n=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${n}`:n},""),fa=(e,t,r,n)=>{const a=ar(r),o=nr(t);return a?`<${e} ${j}="true" ${a}>${Ke(o,n)}</${e}>`:`<${e} ${j}="true">${Ke(o,n)}</${e}>`},da=(e,t,r=!0)=>t.reduce((n,a)=>{const o=a,l=Object.keys(o).filter(i=>!(i==="innerHTML"||i==="cssText")).reduce((i,f)=>{const p=typeof o[f]>"u"?f:`${f}="${Ke(o[f],r)}"`;return i?`${i} ${p}`:p},""),u=o.innerHTML||o.cssText||"",s=ca.indexOf(e)===-1;return`${n}<${e} ${j}="true" ${l}${s?"/>":`>${u}</${e}>`}`},""),or=(e,t={})=>Object.keys(e).reduce((r,n)=>{const a=Pe[n];return r[a||n]=e[n],r},t),pa=(e,t,r)=>{const n={key:t,[j]:!0},a=or(r,n);return[k.createElement("title",a,t)]},Te=(e,t)=>
28t.map((r,n)=>{const a={key:n,[j]:!0};return Object.keys(r).forEach(o=>{const u=Pe[o]||o;if(u==="innerHTML"||u==="cssText"){const s=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:s}}else a[u]=r[o]}),k.createElement(e,a)}),N=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>pa(e,t.title,t.titleAttributes),toString:()=>fa(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>or(t),toString:()=>ar(t)};default:return{toComponent:()=>Te(e,t),toString:()=>da(e,t,r)}}},ha=({metaTags:e,linkTags:t,scriptTags:r,encode:n})=>{const a=Be(e,je.meta),o=Be(t,je.link),l=Be(r,je.script);return{priorityMethods:{toComponent:()=>[...Te("meta",a.priority),...Te("link",o.priority),...Te("script",l.priority)],toString:()=>`${N("meta",a.priority,n)} ${N("link",o.priority,n)} ${N("script",l.priority,n)}`},metaTags:a.default,linkTags:o.default,scriptTags:l.default}},ma=e=>{const{baseTag:t,bodyAttributes:r,encode:n=!0,htmlAttributes:a,noscriptTags:o,styleTags:l,title:u="",titleAttributes:s,prioritizeSeoTags:i}=e;let{linkTags:f,metaTags:p,scriptTags:m}=e,g={toComponent:()=>[],toString:()=>""};return i&&({priorityMethods:g,linkTags:f,metaTags:p,scriptTags:m}=ha(e)),{priority:g,base:N("base",t,n),bodyAttributes:N("bodyAttributes",r,n),htmlAttributes:N("htmlAttributes",a,n),link:N("link",f,n),meta:N("meta",p,n),noscript:N("noscript",o,n),script:N("script",m,n),style:N("style",l,n),title:N("title",{title:u,titleAttributes:s},n)}},Ve=ma,ve=[],lt=!!(typeof window<"u"&&window.document&&window.document.createElement),Ge=class{constructor(e,t){V(this,"instances",[]);V(this,"canUseDOM",lt);V(this,"context");V(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?ve:this.instances,add:e=>{(this.canUseDOM?ve:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?ve:this.instances).indexOf(e);(this.canUseDOM?ve:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Ve({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},ya=parseInt(k.version.split(".")[0],10),Je=ya>=19,ga={},ir=k.createContext(ga),X,va=(X=class extends d.Component{constructor(r){super(r);V(this,"helmetData");Je?this.helmetData=null:this.helmetData=new Ge(this.props.context||{},X.canUseDOM)}render(){return Je?k.createElement(k.Fragment,null,this.props.children):k.createElement(ir.Provider,{value:this.helmetData.value},this.props.children)}},V(X,"canUseDOM",lt),X),te=(e,t)=>{const r=document.head||document.querySelector("head"),n=r.querySelectorAll(`${e}[${j}]`),a=[].slice.call(n),o=[];let l;return t&&t.length&&t.forEach(u=>{const s=document.createElement(e);for(const i in u)if(Object.prototype.hasOwnProperty.call(u,i))if(i==="innerHTML")s.innerHTML=u.innerHTML;else if(i==="cssText"){const f=u.cssText;s.appendChild(document.createTextNode(f))}else{const f=i,p=typeof u[f]>"u"?"":u[f];s.setAttribute(i,p)}s.setAttribute(j,"true"),a.some((i,f)=>(l=f,s.isEqualNode(i)))?a.splice(l,1):o.push(s)}),a.forEach(u=>{var s;return(s=u.parentNode)==null?void 0:s.removeChild(u)}),o.forEach(u=>r.appendChild(u)),{oldTags:a,newTags:o}},Xe=(e,t)=>{const r=document.getElementsByTagName(e)[0];if(!r)return;const n=r.getAttribute(j),a=n?n.split(","):[],o=[...a],l=Object.keys(t);for(const u of l){const s=t[u]||"";r.getAttribute(u)!==s&&r.setAttribute(u,s),a.indexOf(u)===-1&&a.push(u);const i=o.indexOf(u);i!==-1&&o.splice(i,1)}for(let u=o.length-1;u>=0;u-=1)r.removeAttribute(o[u]);a.length===o.length?r.removeAttribute(j):r.getAttribute(j)!==l.join(",")&&r.setAttribute(j,l.join(","))},Ea=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=nr(e)),Xe("title",t)},At=(e,t)=>{const{baseTag:r,bodyAttributes:n,htmlAttributes:a,linkTags:o,metaTags:l,noscriptTags:u,onChangeClientState:s,scriptTags:i,styleTags:f,title:p,titleAttributes:m}=e;Xe("body",n),Xe("html",a),Ea(p,m);const g={baseTag:te("base",r),linkTags:te("link",o),metaTags:te("meta",l),noscriptTags:te("noscript",u),scriptTags:te("script",i),styleTags:te("style",f)},R={},E={};Object.keys(g).forEach(v=>{const{newTags:y,oldTags:S}=g[v];y.length&&(R[v]=y),S.length&&(E[v]=g[v].oldTags)}),t&&t(),s(e,R,E)},pe=null,Ra=e=>{pe&&cancelAnimationFrame(pe),e.defer?pe=requestAnimationFrame(()=>{At(e,()=>{pe=null})}):(At(e),pe=null)},Ta=Ra,Pt=class extends d.Component{constructor(){super(...arguments);V(this,"rendered",!1)}shouldComponentUpdate(t){return!ra(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:r}=this.props.context;let n=null;const a=la(t.get().map(o=>{const{context:l,...u}=o.props;return u}));va.canUseDOM?Ta(a):Ve&&(n=Ve(a)),r(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Ce=[],Ot=e=>{const t={};for(const r of Object.keys(e))t[rr[r]||r]=e[r];return t},J=e=>{const t={};for(const r of Object.keys(e)){const n=Pe[r];t[n||r]=e[r]}return t},Lt=(e,t)=>
28{if(!lt)return;const r=document.getElementsByTagName(e)[0];if(!r)return;const n="data-rh-managed",a=r.getAttribute(n),o=a?a.split(","):[],l=Object.keys(t);for(const u of o)l.includes(u)||r.removeAttribute(u);for(const u of l){const s=t[u];s==null||s===!1?r.removeAttribute(u):s===!0?r.setAttribute(u,""):r.setAttribute(u,String(s))}l.length>0?r.setAttribute(n,l.join(",")):r.removeAttribute(n)},qe=()=>{const e={},t={};for(const r of Ce){const{htmlAttributes:n,bodyAttributes:a}=r.props;n&&Object.assign(e,Ot(n)),a&&Object.assign(t,Ot(a))}Lt("html",e),Lt("body",t)},Ca=class extends d.Component{componentDidMount(){Ce.push(this),qe()}componentDidUpdate(){qe()}componentWillUnmount(){const e=Ce.indexOf(this);e!==-1&&Ce.splice(e,1),qe()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:r}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||r||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return k.createElement("title",J(t),e)}renderBase(){const{base:e}=this.props;return e?k.createElement("base",J(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>k.createElement("meta",{key:r,...J(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>k.createElement("link",{key:r,...J(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>{const{innerHTML:n,...a}=t,o=J(a);return n&&(o.dangerouslySetInnerHTML={__html:n}),k.createElement("script",{key:r,...o})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>{const{cssText:n,...a}=t,o=J(a);return n&&(o.dangerouslySetInnerHTML={__html:n}),k.createElement("style",{key:r,...o})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,r)=>{const{innerHTML:n,...a}=t,o=J(a);return n&&(o.dangerouslySetInnerHTML={__html:n}),k.createElement("noscript",{key:r,...o})})}render(){return k.createElement(k.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},We,Oa=(We=class extends d.Component{shouldComponentUpdate(e){return!Xn(_t(this.props,"helmetData"),_t(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,r,n){return{...t,[e.type]:[...t[e.type]||[],{...r,...this.mapNestedChildrenToProps(e,n)}]}}mapObjectTypeChildren(e,t,r,n){switch(e.type){case"title":return{...t,[e.type]:n,titleAttributes:{...r}};case"body":return{...t,bodyAttributes:{...r}};case"html":return{...t,htmlAttributes:{...r}};default:return{...t,[e.type]:{...r}}}}mapArrayTypeChildrenToProps(e,t){let r={...t};return Object.keys(e).forEach(n=>{r={...r,[n]:e[n]}}),r}warnOnInvalidChildren(e,t){return St(xt.some(r=>e.type===r),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${xt.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),St(!t||typeof t=="string"||Array.isArray(t)&&!t.some(r=>typeof r!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let r={};return k.Children.forEach(e,n=>{if(!n||!n.props)return;const{children:a,...o}=n.props,l=Object.keys(o).reduce((s,i)=>(s[rr[i]||i]=o[i],s),{});let{type:u}=n;
28switch(typeof u=="symbol"?u=u.toString():this.warnOnInvalidChildren(n,a),u){case"Symbol(react.fragment)":t=this.mapChildrenToProps(a,t);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(n,r,l,a);break;default:t=this.mapObjectTypeChildren(n,t,l,a);break}}),this.mapArrayTypeChildrenToProps(r,t)}render(){const{children:e,...t}=this.props;let r={...t},{helmetData:n}=t;if(e&&(r=this.mapChildrenToProps(e,r)),n&&!(n instanceof Ge)){const a=n;n=new Ge(a.context,!0),delete r.helmetData}return Je?k.createElement(Ca,{...r}):n?k.createElement(Pt,{...r,context:n.value}):k.createElement(ir.Consumer,null,a=>k.createElement(Pt,{...r,context:a}))}},V(We,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),We);export{Pa as B,Oa as H,Qt as L,xa as N,_a as O,k as R,kt as a,Sa as b,Aa as c,mn as d,va as e,ba as f,Se as g,Vt as h,jn as i,d as r,Y as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.