forked from WebKit/Speedometer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path401-1a95f4bbfa539a6d.js
More file actions
32 lines (32 loc) · 30.4 KB
/
401-1a95f4bbfa539a6d.js
File metadata and controls
32 lines (32 loc) · 30.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[401],{2599:function(e,t,n){"use strict";var r,o,a,i;/**
* @remix-run/router v1.6.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,{Ep:function(){return h},J0:function(){return c},RQ:function(){return C},WK:function(){return P},Zn:function(){return b},Zq:function(){return E},aU:function(){return r},cP:function(){return m},fp:function(){return g},pC:function(){return x},q_:function(){return s}}),(a=r||(r={})).Pop="POP",a.Push="PUSH",a.Replace="REPLACE";let u="popstate";function s(e){return void 0===e&&(e={}),function(e,t,n,o){void 0===o&&(o={});let{window:a=document.defaultView,v5Compat:i=!1}=o,s=a.history,d=r.Pop,m=null,g=v();function v(){return(s.state||{idx:null}).idx}function y(){d=r.Pop;let e=v(),t=null==e?null:e-g;g=e,m&&m({action:d,location:w.location,delta:t})}function b(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,n="string"==typeof e?e:h(e);return c(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,s.replaceState(l({},s.state,{idx:g}),""));let w={get action(){return d},get location(){return e(a,s)},listen(e){if(m)throw Error("A history only accepts one active listener");return a.addEventListener(u,y),m=e,()=>{a.removeEventListener(u,y),m=null}},createHref:e=>t(a,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){d=r.Push;let o=p(w.location,e,t);n&&n(o,e);let l=f(o,g=v()+1),u=w.createHref(o);try{s.pushState(l,"",u)}catch(e){a.location.assign(u)}i&&m&&m({action:d,location:w.location,delta:1})},replace:function(e,t){d=r.Replace;let o=p(w.location,e,t);n&&n(o,e);let a=f(o,g=v()),l=w.createHref(o);s.replaceState(a,"",l),i&&m&&m({action:d,location:w.location,delta:0})},go:e=>s.go(e)};return w}(function(e,t){let{pathname:n="/",search:r="",hash:o=""}=m(e.location.hash.substr(1));return p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:h(t))},function(e,t){d("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function c(e,t){if(!1===e||null==e)throw Error(t)}function d(e,t){if(!e){"undefined"!=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 p(e,t,n,r){return void 0===n&&(n=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?m(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function g(e,t,n){void 0===n&&(n="/");let r=b(("string"==typeof t?m(t):t).pathname||"/",n);if(null==r)return null;let o=function e(t,n,r,o){void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===o&&(o="");let a=(t,a,i)=>{let l={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:a,route:t};l.relativePath.startsWith("/")&&(c(l.relativePath.startsWith(o),'Absolute route path "'+l.relativePath+'" nested under path "'+o+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),l.relativePath=l.relativePath.slice(o.length));let u=C([o,l.relativePath]),s=r.concat(l);if(t.children&&t.children.length>0&&(c(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),e(t.children,n,s,u)),null!=t.path||t.index){var d;let e,r;n.push({path:u,score:(d=t.index,r=(e=u.split("/")).length,e.some(y)&&(r+=-2),d&&(r+=2),e.filter(e=>!y(e)).reduce((e,t)=>e+(v.test(t)?3:""===t?1:10),r)),routesMeta:s})}};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[r,...o]=n,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===o.length)return a?[i,""]:[i];let l=e(o.join("/")),u=[];return u.push(...l.map(e=>""===e?i:[i,e].join("/"))),a&&u.push(...l),u.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))a(e,t,n);else a(e,t)}),n}(e);!function(e){e.sort((e,t)=>{var n,r;return e.score!==t.score?t.score-e.score:(n=e.routesMeta.map(e=>e.childrenIndex),r=t.routesMeta.map(e=>e.childrenIndex),n.length===r.length&&n.slice(0,-1).every((e,t)=>e===r[t])?n[n.length-1]-r[r.length-1]:0)})}(o);let a=null;for(let e=0;null==a&&e<o.length;++e)a=function(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let e=0;e<n.length;++e){let i=n[e],l=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",s=function(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),d("*"===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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>(r.push(t),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((e,t,n)=>{if("*"===t){let e=l[n]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return d(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(l[n]||"",t),e},{}),pathname:a,pathnameBase:i,pattern:e}}({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},u);if(!s)return null;Object.assign(r,s.params);let c=i.route;a.push({params:r,pathname:C([o,s.pathname]),pathnameBase:S(C([o,s.pathnameBase])),route:c}),"/"!==s.pathnameBase&&(o=C([o,s.pathnameBase]))}return a}(o[e],function(e){try{return decodeURI(e)}catch(t){return d(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}(r));return a}(i=o||(o={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let v=/^:\w+$/,y=e=>"*"===e;function b(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function w(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t)+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function E(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function x(e,t,n,r){let o,a;void 0===r&&(r=!1),"string"==typeof e?o=m(e):(c(!(o=l({},e)).pathname||!o.pathname.includes("?"),w("?","pathname","search",o)),c(!o.pathname||!o.pathname.includes("#"),w("#","pathname","hash",o)),c(!o.search||!o.search.includes("#"),w("#","search","hash",o)));let i=""===e||""===o.pathname,u=i?"/":o.pathname;if(r||null==u)a=n;else{let e=t.length-1;if(u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let s=function(e,t){let n;void 0===t&&(t="/");let{pathname:r,search:o="",hash:a=""}="string"==typeof e?m(e):e;return{pathname:r?r.startsWith("/")?r:(n=t.replace(/\/+$/,"").split("/"),r.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"):t,search:R(o),hash:O(a)}}(o,a),d=u&&"/"!==u&&u.endsWith("/"),f=(i||"."===u)&&n.endsWith("/");return!s.pathname.endsWith("/")&&(d||f)&&(s.pathname+="/"),s}let C=e=>e.join("/").replace(/\/\/+/g,"/"),S=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),R=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",O=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function P(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,Symbol("deferred")},4184:function(e,t){var n;/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0!==(n=(function(){return o}).apply(t,[]))&&(e.exports=n)}()},3740:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(8754),o=n(1757),a=o._(n(7294)),i=r._(n(2636)),l=n(7757),u=n(3735),s=n(3341);n(4210);let c=r._(n(7746)),d={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function f(e){return void 0!==e.default}function p(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function h(e,t,n,r,o,a,i){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&a(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,o=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==o?void 0:o.current)&&o.current(e)}})}function m(e){let[t,n]=a.version.split("."),r=parseInt(t,10),o=parseInt(n,10);return r>18||18===r&&o>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,a.forwardRef)((e,t)=>{let{imgAttributes:n,heightInt:r,widthInt:o,qualityInt:i,className:l,imgStyle:u,blurStyle:s,isLazy:c,fetchPriority:d,fill:f,placeholder:p,loading:g,srcString:v,config:y,unoptimized:b,loader:w,onLoadRef:E,onLoadingCompleteRef:x,setBlurComplete:C,setShowAltText:S,onLoad:R,onError:O,...P}=e;return g=c?"lazy":g,a.default.createElement(a.default.Fragment,null,a.default.createElement("img",{...P,...m(d),loading:g,width:o,height:r,decoding:"async","data-nimg":f?"fill":"1",className:l,style:{...u,...s},...n,ref:(0,a.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(O&&(e.src=e.src),e.complete&&h(e,v,p,E,x,C,b))},[v,p,E,x,C,O,b,t]),onLoad:e=>{let t=e.currentTarget;h(t,v,p,E,x,C,b)},onError:e=>{S(!0),"blur"===p&&C(!0),O&&O(e)}}))}),v=(0,a.forwardRef)((e,t)=>{var n;let r,o,{src:h,sizes:v,unoptimized:y=!1,priority:b=!1,loading:w,className:E,quality:x,width:C,height:S,fill:R,style:O,onLoad:P,onLoadingComplete:j,placeholder:U="empty",blurDataURL:A,fetchPriority:k,layout:L,objectFit:I,objectPosition:N,lazyBoundary:_,lazyRoot:W,...B}=e,T=(0,a.useContext)(s.ImageConfigContext),J=(0,a.useMemo)(()=>{let e=d||T||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[T]),M=B.loader||c.default;delete B.loader;let D="__next_img_default"in M;if(D){if("custom"===J.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=M;M=t=>{let{config:n,...r}=t;return e(r)}}if(L){"fill"===L&&(R=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[L];e&&(O={...O,...e});let t={responsive:"100vw",fill:"100vw"}[L];t&&!v&&(v=t)}let z="",F=p(C),$=p(S);if("object"==typeof(n=h)&&(f(n)||void 0!==n.src)){let e=f(h)?h.default:h;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,o=e.blurHeight,A=A||e.blurDataURL,z=e.src,!R){if(F||$){if(F&&!$){let t=F/e.width;$=Math.round(e.height*t)}else if(!F&&$){let t=$/e.height;F=Math.round(e.width*t)}}else F=e.width,$=e.height}}let K=!b&&("lazy"===w||void 0===w);(!(h="string"==typeof h?h:z)||h.startsWith("data:")||h.startsWith("blob:"))&&(y=!0,K=!1),J.unoptimized&&(y=!0),D&&h.endsWith(".svg")&&!J.dangerouslyAllowSVG&&(y=!0),b&&(k="high");let[H,q]=(0,a.useState)(!1),[Q,V]=(0,a.useState)(!1),Z=p(x),G=Object.assign(R?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:I,objectPosition:N}:{},Q?{}:{color:"transparent"},O),Y="blur"===U&&A&&!H?{backgroundSize:G.objectFit||"cover",backgroundPosition:G.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,l.getImageBlurSvg)({widthInt:F,heightInt:$,blurWidth:r,blurHeight:o,blurDataURL:A,objectFit:G.objectFit})+'")'}:{},X=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:a,sizes:i,loader:l}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:u,kind:s}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let a=[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))];return{widths:a,kind:"x"}}(t,o,i),c=u.length-1;return{sizes:i||"w"!==s?i:"100vw",srcSet:u.map((e,r)=>l({config:t,src:n,quality:a,width:e})+" "+("w"===s?e:r+1)+s).join(", "),src:l({config:t,src:n,quality:a,width:u[c]})}}({config:J,src:h,unoptimized:y,width:F,quality:Z,sizes:v,loader:M}),ee=h,et=(0,a.useRef)(P);(0,a.useEffect)(()=>{et.current=P},[P]);let en=(0,a.useRef)(j);(0,a.useEffect)(()=>{en.current=j},[j]);let er={isLazy:K,imgAttributes:X,heightInt:$,widthInt:F,qualityInt:Z,className:E,imgStyle:G,blurStyle:Y,loading:w,config:J,fetchPriority:k,fill:R,unoptimized:y,placeholder:U,loader:M,srcString:ee,onLoadRef:et,onLoadingCompleteRef:en,setBlurComplete:q,setShowAltText:V,...B};return a.default.createElement(a.default.Fragment,null,a.default.createElement(g,{...er,ref:t}),b?a.default.createElement(i.default,null,a.default.createElement("link",{key:"__nimg-"+X.src+X.srcSet+X.sizes,rel:"preload",as:"image",href:X.srcSet?void 0:X.src,imageSrcSet:X.srcSet,imageSizes:X.sizes,crossOrigin:B.crossOrigin,...m(k)})):null)}),y=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7757:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:a,objectFit:i}=e,l=r||t,u=o||n,s=a.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return l&&u?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+l+" "+u+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&o?"1":"20")+"'/%3E"+s+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+a+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===i?"xMidYMid":"cover"===i?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+a+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},7746:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:o}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(o||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},9008:function(e,t,n){e.exports=n(2636)},5675:function(e,t,n){e.exports=n(3740)},9655:function(e,t,n){"use strict";n.d(t,{OL:function(){return y},UT:function(){return h},rU:function(){return v}});var r,o,a,i,l=n(7294),u=n(9250),s=n(2599);/**
* React Router DOM v6.11.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}let f=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],p=["aria-current","caseSensitive","className","end","style","to","children"];function h(e){let{basename:t,children:n,window:r}=e,o=l.useRef();null==o.current&&(o.current=(0,s.q_)({window:r,v5Compat:!0}));let a=o.current,[i,c]=l.useState({action:a.action,location:a.location});return l.useLayoutEffect(()=>a.listen(c),[a]),l.createElement(u.F0,{basename:t,children:n,location:i.location,navigationType:i.action,navigator:a})}let m="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,g=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,v=l.forwardRef(function(e,t){let n,{onClick:r,relative:o,reloadDocument:a,replace:i,state:p,target:h,to:v,preventScrollReset:y}=e,b=d(e,f),{basename:w}=l.useContext(u.Us),E=!1;if("string"==typeof v&&g.test(v)&&(n=v,m))try{let e=new URL(window.location.href),t=new URL(v.startsWith("//")?e.protocol+v:v),n=(0,s.Zn)(t.pathname,w);t.origin===e.origin&&null!=n?v=n+t.search+t.hash:E=!0}catch(e){}let x=(0,u.oQ)(v,{relative:o}),C=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i}=void 0===t?{}:t,c=(0,u.s0)(),d=(0,u.TH)(),f=(0,u.WU)(e,{relative:i});return l.useCallback(t=>{if(0===t.button&&(!n||"_self"===n)&&!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)){t.preventDefault();let n=void 0!==r?r:(0,s.Ep)(d)===(0,s.Ep)(f);c(e,{replace:n,state:o,preventScrollReset:a,relative:i})}},[d,c,f,r,o,n,e,a,i])}(v,{replace:i,state:p,target:h,preventScrollReset:y,relative:o});return l.createElement("a",c({},b,{href:n||x,onClick:E||a?r:function(e){r&&r(e),e.defaultPrevented||C(e)},ref:t,target:h}))}),y=l.forwardRef(function(e,t){let n,{"aria-current":r="page",caseSensitive:o=!1,className:a="",end:i=!1,style:s,to:f,children:h}=e,m=d(e,p),g=(0,u.WU)(f,{relative:m.relative}),y=(0,u.TH)(),b=l.useContext(u.FR),{navigator:w}=l.useContext(u.Us),E=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,x=y.pathname,C=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;o||(x=x.toLowerCase(),C=C?C.toLowerCase():null,E=E.toLowerCase());let S=x===E||!i&&x.startsWith(E)&&"/"===x.charAt(E.length),R=null!=C&&(C===E||!i&&C.startsWith(E)&&"/"===C.charAt(E.length));n="function"==typeof a?a({isActive:S,isPending:R}):[a,S?"active":null,R?"pending":null].filter(Boolean).join(" ");let O="function"==typeof s?s({isActive:S,isPending:R}):s;return l.createElement(v,c({},m,{"aria-current":S?r:void 0,className:n,ref:t,style:O,to:f}),"function"==typeof h?h({isActive:S,isPending:R}):h)});(r=a||(a={})).UseScrollRestoration="useScrollRestoration",r.UseSubmitImpl="useSubmitImpl",r.UseFetcher="useFetcher",(o=i||(i={})).UseFetchers="useFetchers",o.UseScrollRestoration="useScrollRestoration"},2582:function(e,t,n){"use strict";n.d(t,{fO:function(){return h}});var r=n(7294),o=n(9655),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i="",l=null,u=null,s=null;function c(){i="",null!==l&&l.disconnect(),null!==u&&(window.clearTimeout(u),u=null)}function d(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)&&!e.hasAttribute("disabled")||["A","AREA"].includes(e.tagName)&&e.hasAttribute("href")}function f(){var e=null;if("#"===i)e=document.body;else{var t=i.replace("#","");null===(e=document.getElementById(t))&&"#top"===i&&(e=document.body)}if(null!==e){s(e);var n=e.getAttribute("tabindex");return null!==n||d(e)||e.setAttribute("tabindex",-1),e.focus({preventScroll:!0}),null!==n||d(e)||(e.blur(),e.removeAttribute("tabindex")),c(),!0}return!1}function p(e){return r.forwardRef(function(t,n){var d="";"string"==typeof t.to&&t.to.includes("#")?d="#"+t.to.split("#").slice(1).join("#"):"object"==typeof t.to&&"string"==typeof t.to.hash&&(d=t.to.hash);var p={};e===o.OL&&(p.isActive=function(e,t){return e&&e.isExact&&t.hash===d});var h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}(t,["scroll","smooth","timeout","elementId"]);return r.createElement(e,a({},p,h,{onClick:function(e){if(c(),i=t.elementId?"#"+t.elementId:d,t.onClick&&t.onClick(e),""!==i&&!e.defaultPrevented&&0===e.button&&(!t.target||"_self"===t.target)&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)){var n;s=t.scroll||function(e){return t.smooth?e.scrollIntoView({behavior:"smooth"}):e.scrollIntoView()},n=t.timeout,window.setTimeout(function(){!1===f()&&(null===l&&(l=new MutationObserver(f)),l.observe(document,{attributes:!0,childList:!0,subtree:!0}),u=window.setTimeout(function(){c()},n||1e4))},0)}},ref:n}),t.children)})}var h=p(o.rU);p(o.OL)},9250:function(e,t,n){"use strict";n.d(t,{AW:function(){return j},F0:function(){return U},FR:function(){return p},TH:function(){return w},Us:function(){return h},WU:function(){return C},Z5:function(){return A},oQ:function(){return y},s0:function(){return x}});var r,o,a,i,l,u,s=n(7294),c=n(2599);/**
* React Router v6.11.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let f=s.createContext(null),p=s.createContext(null),h=s.createContext(null),m=s.createContext(null),g=s.createContext({outlet:null,matches:[],isDataRoute:!1}),v=s.createContext(null);function y(e,t){let{relative:n}=void 0===t?{}:t;b()||(0,c.J0)(!1);let{basename:r,navigator:o}=s.useContext(h),{hash:a,pathname:i,search:l}=C(e,{relative:n}),u=i;return"/"!==r&&(u="/"===i?r:(0,c.RQ)([r,i])),o.createHref({pathname:u,search:l,hash:a})}function b(){return null!=s.useContext(m)}function w(){return b()||(0,c.J0)(!1),s.useContext(m).location}function E(e){s.useContext(h).static||s.useLayoutEffect(e)}function x(){let{isDataRoute:e}=s.useContext(g);return e?function(){let e;let{router:t}=(i.UseNavigateStable,(e=s.useContext(f))||(0,c.J0)(!1),e),n=P(l.UseNavigateStable),r=s.useRef(!1);return E(()=>{r.current=!0}),s.useCallback(function(e,o){void 0===o&&(o={}),r.current&&("number"==typeof e?t.navigate(e):t.navigate(e,d({fromRouteId:n},o)))},[t,n])}():function(){b()||(0,c.J0)(!1);let{basename:e,navigator:t}=s.useContext(h),{matches:n}=s.useContext(g),{pathname:r}=w(),o=JSON.stringify((0,c.Zq)(n).map(e=>e.pathnameBase)),a=s.useRef(!1);return E(()=>{a.current=!0}),s.useCallback(function(n,i){if(void 0===i&&(i={}),!a.current)return;if("number"==typeof n){t.go(n);return}let l=(0,c.pC)(n,JSON.parse(o),r,"path"===i.relative);"/"!==e&&(l.pathname="/"===l.pathname?e:(0,c.RQ)([e,l.pathname])),(i.replace?t.replace:t.push)(l,i.state,i)},[e,t,o,r])}()}function C(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=s.useContext(g),{pathname:o}=w(),a=JSON.stringify((0,c.Zq)(r).map(e=>e.pathnameBase));return s.useMemo(()=>(0,c.pC)(e,JSON.parse(a),o,"path"===n),[e,a,o,n])}let S=s.createElement(function(){var e;let t,n,r;let o=(n=s.useContext(v),l.UseRouteError,(t=s.useContext(p))||(0,c.J0)(!1),r=P(l.UseRouteError),n||(null==(e=t.errors)?void 0:e[r])),a=(0,c.WK)(o)?o.status+" "+o.statusText:o instanceof Error?o.message:JSON.stringify(o),i=o instanceof Error?o.stack:null;return s.createElement(s.Fragment,null,s.createElement("h2",null,"Unexpected Application Error!"),s.createElement("h3",{style:{fontStyle:"italic"}},a),i?s.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},i):null,null)},null);class R extends s.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:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?s.createElement(g.Provider,{value:this.props.routeContext},s.createElement(v.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function O(e){let{routeContext:t,match:n,children:r}=e,o=s.useContext(f);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),s.createElement(g.Provider,{value:t},r)}function P(e){let t;let n=((t=s.useContext(g))||(0,c.J0)(!1),t),r=n.matches[n.matches.length-1];return r.route.id||(0,c.J0)(!1),r.route.id}function j(e){(0,c.J0)(!1)}function U(e){let{basename:t="/",children:n=null,location:r,navigationType:o=c.aU.Pop,navigator:a,static:i=!1}=e;b()&&(0,c.J0)(!1);let l=t.replace(/^\/*/,"/"),u=s.useMemo(()=>({basename:l,navigator:a,static:i}),[l,a,i]);"string"==typeof r&&(r=(0,c.cP)(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:v="default"}=r,y=s.useMemo(()=>{let e=(0,c.Zn)(d,l);return null==e?null:{location:{pathname:e,search:f,hash:p,state:g,key:v},navigationType:o}},[l,d,f,p,g,v,o]);return null==y?null:s.createElement(h.Provider,{value:u},s.createElement(m.Provider,{children:n,value:y}))}function A(e){let{children:t,location:n}=e;return function(e,t,n){let r;b()||(0,c.J0)(!1);let{navigator:o}=s.useContext(h),{matches:a}=s.useContext(g),i=a[a.length-1],l=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let f=w();if(t){var p;let e="string"==typeof t?(0,c.cP)(t):t;"/"===u||(null==(p=e.pathname)?void 0:p.startsWith(u))||(0,c.J0)(!1),r=e}else r=f;let v=r.pathname||"/",y="/"===u?v:v.slice(u.length)||"/",E=(0,c.fp)(e,{pathname:y}),x=function(e,t,n){var r,o;if(void 0===t&&(t=[]),void 0===n&&(n=null),null==e){if(null==(o=n)||!o.errors)return null;e=n.matches}let a=e,i=null==(r=n)?void 0:r.errors;if(null!=i){let e=a.findIndex(e=>e.route.id&&(null==i?void 0:i[e.route.id]));e>=0||(0,c.J0)(!1),a=a.slice(0,Math.min(a.length,e+1))}return a.reduceRight((e,r,o)=>{let l=r.route.id?null==i?void 0:i[r.route.id]:null,u=null;n&&(u=r.route.errorElement||S);let c=t.concat(a.slice(0,o+1)),d=()=>{let t;return t=l?u:r.route.Component?s.createElement(r.route.Component,null):r.route.element?r.route.element:e,s.createElement(O,{match:r,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?s.createElement(R,{location:n.location,revalidation:n.revalidation,component:u,error:l,children:d(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):d()},null)}(E&&E.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:(0,c.RQ)([u,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:(0,c.RQ)([u,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),a,void 0);return t&&x?s.createElement(m.Provider,{value:{location:d({pathname:"/",search:"",hash:"",state:null,key:"default"},r),navigationType:c.aU.Pop}},x):x}(function e(t,n){void 0===n&&(n=[]);let r=[];return s.Children.forEach(t,(t,o)=>{if(!s.isValidElement(t))return;let a=[...n,o];if(t.type===s.Fragment){r.push.apply(r,e(t.props.children,a));return}t.type!==j&&(0,c.J0)(!1),t.props.index&&t.props.children&&(0,c.J0)(!1);let i={id:t.props.id||a.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(i.children=e(t.props.children,a)),r.push(i)}),r}(t),n)}(r=i||(i={})).UseBlocker="useBlocker",r.UseRevalidator="useRevalidator",r.UseNavigateStable="useNavigate",(o=l||(l={})).UseBlocker="useBlocker",o.UseLoaderData="useLoaderData",o.UseActionData="useActionData",o.UseRouteError="useRouteError",o.UseNavigation="useNavigation",o.UseRouteLoaderData="useRouteLoaderData",o.UseMatches="useMatches",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o.UseRouteId="useRouteId",(a=u||(u={}))[a.pending=0]="pending",a[a.success=1]="success",a[a.error=2]="error",new Promise(()=>{})}}]);