1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="43625ac8-4c89-99de-2377-818b0d9c130d")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,306467,e=>{"use strict";var t=e.i(595323);class r{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}}class n{constructor(e){this.generateIdentifier=e,this.kv=new r}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}}class i extends n{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){"object"==typeof t?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}}function a(e,t){Object.entries(e).forEach(([e,r])=>t(r,e))}function s(e,t){return -1!==e.indexOf(t)}function o(e,t){for(let r=0;r<e.length;r++){let n=e[r];if(t(n))return n}}class l{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return function(e,t){let r=function(e){if("values"in Object)return Object.values(e);let t=[];for(let r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}(e);if("find"in r)return r.find(t);for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}}let u=e=>void 0===e,c=e=>"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype),f=e=>c(e)&&0===Object.keys(e).length,d=e=>Array.isArray(e),p=e=>e instanceof Map,g=e=>e instanceof Set,h=e=>"Symbol"===Object.prototype.toString.call(e).slice(8,-1),y=e=>e instanceof Error,m=e=>"number"==typeof e&&isNaN(e),w=e=>e.replace(/\\/g,"\\\\").replace(/\./g,"\\."),b=e=>e.map(String).map(w).join("."),E=(e,t)=>{let r=[],n="";for(let i=0;i<e.length;i++){let a=e.charAt(i);if(!t&&"\\"===a){let t=e.charAt(i+1);if("\\"===t){n+="\\",i++;continue}if("."!==t)throw Error("invalid path")}if("\\"===a&&"."===e.charAt(i+1)){n+=".",i++;continue}if("."===a){r.push(n),n="";continue}n+=a}let i=n;return r.push(i),r};function v(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}let O=[v(u,"undefined",()=>null,()=>void 0),v(e=>"bigint"==typeof e,"bigint",e=>e.toString(),e=>"u">typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),v(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),v(y,"Error",(e,t)=>{let r={name:e.name,message:e.message};return"cause"in e&&(r.cause=e.cause),t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r},(e,t)=>{let r=Error(e.message,{cause:e.cause});return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r}),v(e=>e instanceof RegExp,"regexp",e=>""+e,e=>new RegExp(e.slice(1,e.lastIndexOf("/")),e.slice(e.lastIndexOf("/")+1))),v(g,"set",e=>[...e.values()],e=>new Set(e)),v(p,"map",e=>[...e.entries()],e=>new Map(e)),v(e=>m(e)||e===1/0||e===-1/0,"number",e=>m(e)?"NaN":e>0?"Infinity":"-Infinity",Number),v(e=>0===e&&1/e==-1/0,"number",()=>"-0",Number),v(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function R(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}let T=R((e,t)=>!!h(e)&&!!t.symbolRegistry.getIdentifier(e),(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,r)=>{let n=r.symbolRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown symbol");return n}),_=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>
2(e[t.name]=t,e),{}),k=R(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let r=_[t[1]];if(!r)throw Error("Trying to deserialize unknown typed array");return new r(e)});function A(e,t){return!!e?.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}let S=R(A,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return{...e};let n={};return r.forEach(t=>{n[t]=e[t]}),n},(e,t,r)=>{let n=r.classRegistry.getValue(t[1]);if(!n)throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(n.prototype),e)}),j=R((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,r)=>{let n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),I=[S,T,j,k],V=(e,t)=>{let r=o(I,r=>r.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};let n=o(O,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation}},P={};O.forEach(e=>{P[e.annotation]=e});let N=(e,t)=>{if(t>e.size)throw Error("index out of bounds");let r=e.keys();for(;t>0;)r.next(),t--;return r.next().value};function C(e){if(s(e,"__proto__"))throw Error("__proto__ is not allowed as a property");if(s(e,"prototype"))throw Error("prototype is not allowed as a property");if(s(e,"constructor"))throw Error("constructor is not allowed as a property")}let z=(e,t,r)=>{if(C(t),0===t.length)return r(e);let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(d(n))n=n[+r];else if(c(n))n=n[r];else if(g(n))n=N(n,+r);else if(p(n)){if(e===t.length-2)break;let i=+r,a=0==+t[++e]?"key":"value",s=N(n,i);switch(a){case"key":n=s;break;case"value":n=n.get(s)}}}let i=t[t.length-1];if(d(n)?n[+i]=r(n[+i]):c(n)&&(n[i]=r(n[i])),g(n)){let e=N(n,+i),t=r(e);e!==t&&(n.delete(e),n.add(t))}if(p(n)){let e=N(n,+t[t.length-2]);switch(0==+i?"key":"value"){case"key":{let t=r(e);n.set(t,n.get(e)),t!==e&&n.delete(e);break}case"value":n.set(e,r(n.get(e)))}}return e},L=(e,t,r,n,i=[],o=[],l=new Map)=>{let m=(e=>"boolean"==typeof e||null===e||u(e)||"number"==typeof e&&!isNaN(e)||"string"==typeof e||h(e))(e);if(!m){let r;(r=t.get(e))?r.push(i):t.set(e,[i]);let a=l.get(e);if(a)return n?{transformedValue:null}:a}if(!(c(e)||d(e)||p(e)||g(e)||y(e)||A(e,r))){let t=V(e,r),n=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return m||l.set(e,n),n}if(s(o,e))return{transformedValue:null};let b=V(e,r),E=b?.value??e,v=d(E)?[]:{},O={};a(E,(s,u)=>{if("__proto__"===u||"constructor"===u||"prototype"===u)throw Error(`Detected property ${u}. This is a prototype pollution risk, please remove it from your object.`);let f=L(s,t,r,n,[...i,u],[...o,e],l);v[u]=f.transformedValue,d(f.annotations)?O[w(u)]=f.annotations:c(f.annotations)&&a(f.annotations,(e,t)=>{O[w(u)+"."+t]=e})});let R=f(O)?{transformedValue:v,annotations:b?[b.type]:void 0}:{transformedValue:v,annotations:b?[b.type,O]:O};return m||l.set(e,R),R};function x(e){return Object.prototype.toString.call(e).slice(8,-1)}function D(e){return"Array"===x(e)}class U{constructor({dedupe:e=!1}={}){this.classRegistry=new i,this.symbolRegistry=new n(e=>e.description??""),this.customTransformerRegistry=new l,this.allowedErrorProps=[],this.dedupe=e}serialize(e){var t;let r,n,i=new Map,a=L(e,i,this,this.dedupe),s={json:a.transformedValue};a.annotations&&(s.meta={...s.meta,values:a.annotations});let o=(t=this.dedupe,r={},(i.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...a]=e;0===i.length?n=a.map(b):r[b(i)]=a.map(b)}),n)?f(r)?[n]:[n,r]:f(r)?void 0:r);return o&&(s.meta={...s.meta,referentialEqualities:o}),s.meta&&(s.meta.v=1),s}deserialize(e,t){var r,n,i,s;let{json:o,meta:l}=e,u=t?.inPlace?o:function e(t,r={}){return D(t)?t.map(t=>e(t,r)):!function(e){if("Object"!==x(e))return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(t)?t:[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)].reduce((n,i)=>{var a;let s;if("__proto__"===i||D(r.props)&&!r.props.includes(i))return n;let o=e(t[i],r);return a=r.nonenumerable,"enumerable"==(s=({}).propertyIsEnumerable.call(t,i)?"enumerable":"nonenumerable")&&(n[i]=o),a&&"nonenumerable"===s&&Object.defineProperty(n,i,{value:o,enumerable:!1,writable:!0,configurable:!0}),n},{})}(o);return l?.values&&(r=u,n=l.values,i=l.v??0,s=this,function e(t,r,n,i=[]){if(!t)return;let s=n<1;if(!d(t))return void a(t,(t,a)=>e(t,r,n,[...i,...E(a,s)]));let[o,l]=t;l&&a(l,(t,a)=>{e(t,r,n,[...i,...E(a,s)])}),r(o,i)}(n,(e,t)=>{r=z(r,t,t=>((e,t,r)=>{if(d(t))switch(t[0]){case"symbol":return T.untransform(e,t,r);case"class":return S.untransform(e,t,r);
2case"custom":return j.untransform(e,t,r);case"typed-array":return k.untransform(e,t,r);default:throw Error("Unknown transformation: "+t)}{let n=P[t];if(!n)throw Error("Unknown transformation: "+t);return n.untransform(e,r)}})(t,e,s))},i),u=r),l?.referentialEqualities&&(u=function(e,t,r){let n=r<1;function i(t,r){let i=((e,t)=>{C(t);for(let r=0;r<t.length;r++){let n=t[r];if(g(e))e=N(e,+n);else if(p(e)){let i=+n,a=0==+t[++r]?"key":"value",s=N(e,i);switch(a){case"key":e=s;break;case"value":e=e.get(s)}}else e=e[n]}return e})(e,E(r,n));t.map(e=>E(e,n)).forEach(t=>{e=z(e,t,()=>i)})}if(d(t)){let[r,s]=t;r.forEach(t=>{e=z(e,E(t,n),()=>e)}),s&&a(s,i)}else a(t,i);return e}(u,l.referentialEqualities,l.v??0)),u}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e),{inPlace:!0})}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}}function M(e){return"object"==typeof e&&null!==e}U.defaultInstance=new U,U.serialize=U.defaultInstance.serialize.bind(U.defaultInstance),U.deserialize=U.defaultInstance.deserialize.bind(U.defaultInstance),U.stringify=U.defaultInstance.stringify.bind(U.defaultInstance),U.parse=U.defaultInstance.parse.bind(U.defaultInstance),U.registerClass=U.defaultInstance.registerClass.bind(U.defaultInstance),U.registerSymbol=U.defaultInstance.registerSymbol.bind(U.defaultInstance),U.registerCustom=U.defaultInstance.registerCustom.bind(U.defaultInstance),U.allowErrorProps=U.defaultInstance.allowErrorProps.bind(U.defaultInstance);U.serialize,U.deserialize,U.stringify,U.parse,U.registerClass,U.registerCustom,U.registerSymbol,U.allowErrorProps;class F extends Error{cause;info;status}class B extends F{constructor(e){super(e),this.name="FetchErrorUnknown"}}class W extends F{constructor(e){super(e),this.name="FetchErrorNotAuthenticated"}}class $ extends F{constructor(e){super(e),this.name="FetchErrorNotAuthorized"}}async function K(e,t){try{return await q(e,t,{disableRedirectUnauthorized:!0})}catch(e){if(e instanceof W)return;throw e}}async function q(e,r,n){let i,a,s={...r?.headers};if(a=(0,t.getRuntimeEnv)(),((0,t.isTest)(a)||(0,t.isE2e)(a)||"4001"===window.location.port)&&"u">typeof document&&e.startsWith("/data-api/")){let e=document.cookie.split(";").find(e=>e.trim().startsWith("premium-user-jwt="))?.split("=")[1];e&&(s.Authorization=`Bearer ${e}`)}let o=await fetch(e,{mode:"cors",credentials:"include",headers:s,...r});try{var l;l=i=await o.json(),i=!function(e){if(!M(e)||!("__superjson"in e))return!1;let t=e.__superjson;return!!M(t)&&"json"in t&&"object"==typeof t.json}(l)?l:U.deserialize(l.__superjson)}catch{}let u=401===o.status||!!i?.notAuthenticated;if(!n?.disableRedirectUnauthorized&&i?.notAuthenticated===!0){let t="https://data-api.baymard.com",r=new URL("/premium/sign-in",t&&e.startsWith(t)?t:window.location.origin);r.searchParams.set("return-url",window.location.href),window.location.assign(r),await new Promise(()=>{})}let c=403===o.status;if(u&&(i=void 0),!o.ok||u||c){let t=u?new W(`Not authenticated for ${e}`):c?new $(`Not authorized for ${e}`):new B(`Unknown error for ${e}`);throw t.info={isNotAuthenticated:u,isNotAuthorized:c,urlPath:e,body:i},t.status=o.status,t}return i}e.s(["FetchErrorNotAuthenticated",0,W,"FetchErrorNotAuthorized",0,$,"fetcher",0,q,"preloadFetcher",0,K],306467)},848033,359394,441240,6337,e=>{"use strict";var t=e.i(449370),r=e.i(115833);e.s(["ERROR_REVALIDATE_EVENT",0,3,"FOCUS_EVENT",0,0,"MUTATE_EVENT",0,2,"RECONNECT_EVENT",0,1],207215);var n=Object.prototype.hasOwnProperty;function i(e,t){var r,a;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((a=e.length)===t.length)for(;a--&&i(e[a],t[a]););return -1===a}if(!r||"object"==typeof e){for(r in a=0,e)if(n.call(e,r)&&++a&&!n.call(t,r)||!(r in t)||!i(e[r],t[r]))return!1;return Object.keys(t).length===a}}return e!=e&&t!=t}e.s(["dequal",0,i],359394);let a=new WeakMap,s=()=>{},o=s(),l=Object,u=e=>e===o,c=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),d=e=>c(e.then),p={},g={},h="undefined",y=typeof window!=h,m=typeof document!=h,w=y&&"Deno"in window,b=(e,t)=>{let r=a.get(e);return[()=>!u(t)&&e.get(t)||p,n=>
2{if(!u(t)){let i=e.get(t);t in g||(g[t]=i),r[5](t,f(i,n),i||p)}},r[6],()=>!u(t)&&t in g?g[t]:!u(t)&&e.get(t)||p]},E=!0,[v,O]=y&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[s,s],R={initFocus:e=>(m&&document.addEventListener("visibilitychange",e),v("focus",e),()=>{m&&document.removeEventListener("visibilitychange",e),O("focus",e)}),initReconnect:e=>{let t=()=>{E=!0,e()},r=()=>{E=!1};return v("online",t),v("offline",r),()=>{O("online",t),O("offline",r)}}},T=!t.default.useId,_=!y||w,k=e=>y&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1),A=_?t.useEffect:t.useLayoutEffect,S="u">typeof navigator&&navigator.connection,j=!_&&S&&(["slow-2g","2g"].includes(S.effectiveType)||S.saveData),I=new WeakMap,V=(e,t)=>e===`[object ${t}]`,P=0,N=e=>{let t,r,n=typeof e,i=l.prototype.toString.call(e),a=V(i,"Date"),s=V(i,"RegExp"),o=V(i,"Object");if(l(e)!==e||a||s)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=I.get(e))return t;if(t=++P+"~",I.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=N(e[r])+",";I.set(e,t)}if(o){t="#";let n=l.keys(e).sort();for(;!u(r=n.pop());)u(e[r])||(t+=r+":"+N(e[r])+",");I.set(e,t)}}return t},C=e=>{if(c(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?N(e):"",t]},z=0,L=()=>++z;async function x(...e){let[t,r,n,i]=e,s=f({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),l=s.populateCache,p=s.rollbackOnError,g=s.optimisticData,h=s.throwOnError;if(c(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(y))}return y(r);async function y(r){let i,[f]=C(r);if(!f)return;let[y,m]=b(t,f),[w,E,v,O]=a.get(t),R=()=>{let e=w[f];return(c(s.revalidate)?s.revalidate(y().data,r):!1!==s.revalidate)&&(delete v[f],delete O[f],e&&e[0])?e[0](2).then(()=>y().data):y().data};if(e.length<3)return R();let T=n,_=!1,k=L();E[f]=[k,0];let A=!u(g),S=y(),j=S.data,I=S._c,V=u(I)?j:I;if(A&&m({data:g=c(g)?g(V,j):g,_c:V}),c(T))try{T=T(V)}catch(e){i=e,_=!0}if(T&&d(T)){let e;if(T=await T.catch(e=>{i=e,_=!0}),k!==E[f][0]){if(_)throw i;return T}_&&A&&(e=i,"function"==typeof p?p(e):!1!==p)&&(l=!0,m({data:V,_c:o}))}if(l&&!_&&(c(l)?m({data:l(T,V),error:o,_c:o}):m({data:T,error:o,_c:o})),E[f][1]=L(),Promise.resolve(R()).then(()=>{m({_c:o})}),_){if(h)throw i;return}return T}}let D=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},U=(e,t)=>{if(!a.has(e)){let r=f(R,t),n=Object.create(null),i=x.bind(o,e),l=s,u=Object.create(null),c=(e,t)=>{let r=u[e]||[];return u[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let i=u[t];if(i)for(let e of i)e(r,n)},p=()=>{if(!a.has(e)&&(a.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,d,c]),!_)){let t=r.initFocus(setTimeout.bind(o,D.bind(o,n,0))),i=r.initReconnect(setTimeout.bind(o,D.bind(o,n,1)));l=()=>{t&&t(),i&&i(),a.delete(e)}}};return p(),[e,i,p,l]}return[e,a.get(e)[4]]},[M,F]=U(new Map),B=f({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,s=i.retryCount,o=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;(u(a)||!(s>a))&&setTimeout(n,o,i)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:j?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:j?5e3:3e3,compare:i,isPaused:()=>!1,cache:M,mutate:F,fallback:{}},{isOnline:()=>E,isVisible:()=>{let e=m&&document.visibilityState;return u(e)||"hidden"!==e}}),W=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:s}=t;n&&a&&(r.use=n.concat(a)),i&&s&&(r.fallback=f(i,s))}return r},$=(0,t.createContext)({}),K=e=>{let{value:r}=e,n=(0,t.useContext)($),i=c(r),a=(0,t.useMemo)(()=>i?r(n):r,[i,n,r]),s=(0,t.useMemo)(()=>i?a:W(n,a),[i,n,a]),l=a&&a.provider,u=(0,t.useRef)(o);l&&!u.current&&(u.current=U(l(s.cache||M),a));let d=u.current;return d&&(s.cache=d[0],s.mutate=d[1]),A(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,t.createElement)($.Provider,f(e,{value:s}))};e.s(["A",0,s,"B",0,d,"I",0,_,"O",0,l,"S",0,$,"U",0,o,"a",0,c,"b",0,a,"c",0,M,"d",0,B,"e",0,u,"f",0,W,"g",0,K,"i",0,y,"j",0,F,"m",0,f,"n",0,x,"o",0,L,"r",0,T,"s",0,C,"t",0,k,"u",0,A,"z",0,b],441240);var q=e.i(207215);let J=y&&window.__SWR_DEVTOOLS_USE__,Y=J?window.__SWR_DEVTOOLS_USE__:[],G=e=>c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],H=()=>{let e=(0,t.useContext)($);return(0,t.useMemo)(()=>f(B,e),[e])},Q=Y.concat(e=>(t,r,n)=>{let i=r&&((...e)=>
2{let[n]=C(t),[,,,i]=a.get(M);if(n.startsWith("$inf$"))return r(...e);let s=i[n];return u(s)?r(...e):(delete i[n],s)});return e(t,i,n)}),X=e=>function(...t){let r=H(),[n,i,a]=G(t),s=W(r,a),o=e,{use:l}=s,u=(l||[]).concat(Q);for(let e=u.length;e--;)o=u[e](o);return o(n,i||s.fetcher||null,s)},Z=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};J&&(window.__SWR_DEVTOOLS_REACT__=t.default),e.s(["preload",0,(e,t)=>{if(_)return;let[r,n]=C(e),[,,,i]=a.get(M);if(i[r])return i[r];let s=t(n);return i[r]=s,s},"subscribeCallback",0,Z,"useSWRConfig",0,H,"withArgs",0,X,"withMiddleware",0,(e,t)=>(...r)=>{let[n,i,a]=G(r),s=(a.use||[]).concat(t);return e(n,i,{...a,use:s})}],6337);let ee=()=>{},et=ee(),er=(new WeakMap,t.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),en={dedupe:!0},ei=Promise.resolve(o),ea=()=>s,es=l.defineProperty(K,"defaultValue",{value:B}),eo=X((e,n,i)=>{let{cache:s,compare:l,suspense:p,fallbackData:g,revalidateOnMount:h,revalidateIfStale:y,refreshInterval:m,refreshWhenHidden:w,refreshWhenOffline:E,keepPreviousData:v,strictServerPrefetchWarning:O}=i,[R,S,j,I]=a.get(s),[V,P]=C(e),N=(0,t.useRef)(!1),z=(0,t.useRef)(!1),D=(0,t.useRef)(V),U=(0,t.useRef)(n),M=(0,t.useRef)(i),F=()=>M.current.isVisible()&&M.current.isOnline(),[B,W,$,K]=b(s,V),J=(0,t.useRef)({}).current,Y=u(g)?u(i.fallback)?o:i.fallback[V]:g,G=(e,t)=>{for(let r in J)if("data"===r){if(!l(e[r],t[r])&&(!u(e[r])||!l(eu,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},H=!N.current,Q=(0,t.useMemo)(()=>{let e=B(),t=K(),r=e=>{let t=f(e);return(delete t._k,(()=>{if(!V||!n||M.current.isPaused())return!1;if(H&&!u(h))return h;let e=u(Y)?t.data:Y;return u(e)||y})())?{isValidating:!0,isLoading:!0,...t}:t},i=r(e),a=e===t?i:r(t),s=i;return[()=>{let e=r(B());return G(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>a]},[s,V]),X=(0,r.useSyncExternalStore)((0,t.useCallback)(e=>$(V,(t,r)=>{G(r,t)||e()}),[s,V]),Q[0],Q[1]),ee=R[V]&&R[V].length>0,et=X.data,es=u(et)?Y&&d(Y)?er(Y):Y:et,eo=X.error,el=(0,t.useRef)(es),eu=v?u(et)?u(el.current)?es:el.current:et:es,ec=V&&u(es),ef=(0,t.useRef)(null);_||(0,r.useSyncExternalStore)(ea,()=>(ef.current=!1,ef),()=>(ef.current=!0,ef));let ed=ef.current;O&&ed&&!p&&ec&&console.warn(`Missing pre-initiated data for serialized key "${V}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let ep=!(!V||!n||M.current.isPaused())&&(!ee||!!u(eo))&&(H&&!u(h)?h:p?!u(es)&&y:u(es)||y),eg=u(X.isValidating)?ep:X.isValidating,eh=u(X.isLoading)?ep:X.isLoading,ey=(0,t.useCallback)(async e=>{let t,r,n=U.current;if(!V||!n||z.current||M.current.isPaused())return!1;let a=!0,s=e||{},f=!j[V]||!s.dedupe,d=()=>T?!z.current&&V===D.current&&N.current:V===D.current,p={isValidating:!1,isLoading:!1},g=()=>{W(p)},h=()=>{let e=j[V];e&&e[1]===r&&delete j[V]},y={isValidating:!0};u(B().data)&&(y.isLoading=!0);try{if(f&&(W(y),i.loadingTimeout&&u(B().data)&&setTimeout(()=>{a&&d()&&M.current.onLoadingSlow(V,i)},i.loadingTimeout),j[V]=[n(P),L()]),[t,r]=j[V],t=await t,f&&setTimeout(h,i.dedupingInterval),!j[V]||j[V][1]!==r)return f&&d()&&M.current.onDiscarded(V),!1;p.error=o;let e=S[V];if(!u(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return g(),f&&d()&&M.current.onDiscarded(V),!1;let s=B().data;p.data=l(s,t)?s:t,f&&d()&&M.current.onSuccess(t,V,i)}catch(r){h();let e=M.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(p.error=r,f&&d()&&(e.onError(r,V,e),(!0===t||c(t)&&t(r))&&(!M.current.revalidateOnFocus||!M.current.revalidateOnReconnect||F())&&e.onErrorRetry(r,V,e,e=>{let t=R[V];t&&t[0]&&t[0](q.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return a=!1,g(),!0},[V,s]),em=(0,t.useCallback)((...e)=>x(s,D.current,...e),[]);if(A(()=>{U.current=n,M.current=i,u(et)||(el.current=et)}),A(()=>{if(!V)return;let e=ey.bind(o,en),t=0;M.current.revalidateOnFocus&&(t=Date.now()+M.current.focusThrottleInterval);let r=Z(V,R,(r,n={})=>
2{if(r==q.FOCUS_EVENT){let r=Date.now();M.current.revalidateOnFocus&&r>t&&F()&&(t=r+M.current.focusThrottleInterval,e())}else if(r==q.RECONNECT_EVENT)M.current.revalidateOnReconnect&&F()&&e();else if(r==q.MUTATE_EVENT)return ey();else if(r==q.ERROR_REVALIDATE_EVENT)return ey(n)});return z.current=!1,D.current=V,N.current=!0,W({_k:P}),ep&&!j[V]&&(u(es)||_?e():k(e)),()=>{z.current=!0,r()}},[V]),A(()=>{let e;function t(){let t=c(m)?m(B().data):m;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!B().error&&(w||M.current.isVisible())&&(E||M.current.isOnline())?ey(en).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[m,w,E,V]),(0,t.useDebugValue)(eu),p){if(!T&&_&&ec)throw Error("Fallback data is required when using Suspense in SSR.");ec&&(U.current=n,M.current=i,z.current=!1);let e=I[V];if(er(!u(e)&&ec?em(e):ei),!u(eo)&&ec)throw eo;let t=ec?ey(en):ei;!u(eu)&&ec&&(t.status="fulfilled",t.value=!0),er(t)}return{mutate:em,get data(){return J.data=!0,eu},get error(){return J.error=!0,eo},get isValidating(){return J.isValidating=!0,eg},get isLoading(){return J.isLoading=!0,eh}}});e.s(["SWRConfig",0,es,"default",0,eo],848033)}]); 3 4//# debugId=43625ac8-4c89-99de-2377-818b0d9c130d 5//# sourceMappingURL=17krzhe6dxnyd.js.map
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.