1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{7377:function(t,e,n){"use strict";var r=n(1163),i=n(7294),s=/(?:[\0-"\$->@-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+/;e.NextAdapterPages=function(t){var e=t.children,n=t.shallow,a=void 0===n||n,o=r.useRouter(),u=o.asPath.match(s),c=u?u[0]:o.asPath,l=i.useMemo(function(){return"undefined"!=typeof window?o.isReady?window.location:{search:""}:{search:o.asPath.replace(s,"")}},[o.asPath,o.isReady]);return e(i.useMemo(function(){function t(t){return function(e){var n=e.hash,r=e.search;t({pathname:o.pathname,search:r,hash:n},{pathname:c,search:r,hash:n},{shallow:a,scroll:!1})}}return{push:t(o.push),replace:t(o.replace),location:l}},[l,c,o,a]))}},2551:function(t,e,n){"use strict";var r=n(7377);n(1163),n(7294),e.Mm=r.NextAdapterPages,r.NextAdapterPages},6840:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(9395)}])},9395:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return k}});var r=n(5893),i=n(7294),s=n(8584),a=n.n(s),o=n(9008),u=n.n(o);n(6185),n(4695),n(1915),n(1595),n(9640),n(4854);var c=n(4139),l=n(6888),h=n(7037),f=n(7506),d=class extends f.l{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,e,n){let r=e.queryKey,i=e.queryHash??(0,c.Rm)(r,e),s=this.get(i);return s||(s=new l.A({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(s)),s}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let e=this.#t.get(t.queryHash);
1e&&(t.destroy(),e===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){h.V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,c._x)(e,t))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(e=>(0,c._x)(t,e)):e}notify(t){h.V.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){h.V.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){h.V.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},p=n(8907),y=n(2008),m=class extends p.F{#e;#n;#r;constructor(t){super(),this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#e=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(t){this.#r=(0,y.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#i({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let e="pending"===this.state.status,n=!this.#r.canStart();try{if(!e){this.#i({type:"pending",variables:t,isPaused:n}),await this.#n.config.onMutate?.(t,this);let e=await this.options.onMutate?.(t);e!==this.state.context&&this.#i({type:"pending",context:e,variables:t,isPaused:n})}let r=await this.#r.start();return await this.#n.config.onSuccess?.(r,t,this.state.context,this),await this.options.onSuccess?.(r,t,this.state.context),await this.#n.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,t,this.state.context),this.#i({type:"success",data:r}),r}catch(e){try{throw await this.#n.config.onError?.(e,t,this.state.context,this),await this.options.onError?.(e,t,this.state.context),await this.#n.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,e,t,this.state.context),e}finally{this.#i({type:"error",error:e})}}finally{this.#n.runNext(this)}}#i(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),h.V.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}},g=class extends f.l{constructor(t={}){super(),this.config=t,this.#s=new Set,this.#a=new Map,this.#o=0}#s;#a;#o;build(t,e,n){let r=new m({mutationCache:this,mutationId:++this.#o,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){this.#s.add(t);let e=v(t);if("string"==typeof e){let n=this.#a.get(e);n?n.push(t):this.#a.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#s.delete(t)){let e=v(t);if("string"==typeof e){let n=this.#a.get(e);if(n){if(n.length>1){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}else n[0]===t&&this.#a.delete(e)}}}this.notify({type:"removed",mutation:t})}canRun(t){let e=v(t);if("string"!=typeof e)return!0;{let n=this.#a.get(e),r=n?.find(t=>"pending"===t.state.status);return!r||r===t}}runNext(t){let e=v(t);if("string"!=typeof e)return Promise.resolve();{let n=this.#a.get(e)?.find(e=>
1e!==t&&e.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){h.V.batch(()=>{this.#s.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#s.clear(),this.#a.clear()})}getAll(){return Array.from(this.#s)}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,c.X7)(e,t))}findAll(t={}){return this.getAll().filter(e=>(0,c.X7)(t,e))}notify(t){h.V.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return h.V.batch(()=>Promise.all(t.map(t=>t.continue().catch(c.ZT))))}};function v(t){return t.options.scope?.id}var b=n(6474),w=n(4304),C=n(4948),O=class{#u;#n;#c;#l;#h;#f;#d;#p;constructor(t={}){this.#u=t.queryCache||new d,this.#n=t.mutationCache||new g,this.#c=t.defaultOptions||{},this.#l=new Map,this.#h=new Map,this.#f=0}mount(){this.#f++,1===this.#f&&(this.#d=b.j.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#u.onFocus())}),this.#p=w.N.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#u.onOnline())}))}unmount(){this.#f--,0===this.#f&&(this.#d?.(),this.#d=void 0,this.#p?.(),this.#p=void 0)}isFetching(t){return this.#u.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#n.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#u.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),n=this.#u.build(this,e),r=n.state.data;return void 0===r?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime((0,c.KC)(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#u.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,n){let r=this.defaultQueryOptions({queryKey:t}),i=this.#u.get(r.queryHash),s=i?.state.data,a=(0,c.SE)(e,s);if(void 0!==a)return this.#u.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(t,e,n){return h.V.batch(()=>this.#u.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,n)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#u.get(e.queryHash)?.state}removeQueries(t){let e=this.#u;h.V.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let n=this.#u;return h.V.batch(()=>(n.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){let n={revert:!0,...e};return Promise.all(h.V.batch(()=>this.#u.findAll(t).map(t=>t.cancel(n)))).then(c.ZT).catch(c.ZT)}invalidateQueries(t,e={}){return h.V.batch(()=>(this.#u.findAll(t).forEach(t=>{t.invalidate()}),t?.refetchType==="none")?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e))}refetchQueries(t,e={}){let n={...e,cancelRefetch:e.cancelRefetch??!0};return Promise.all(h.V.batch(()=>this.#u.findAll(t).filter(t=>!t.isDisabled()).map(t=>{let e=t.fetch(void 0,n);return n.throwOnError||(e=e.catch(c.ZT)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(c.ZT)}fetchQuery(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let n=this.#u.build(this,e);return n.isStaleByTime((0,c.KC)(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(c.ZT).catch(c.ZT)}fetchInfiniteQuery(t){return t.behavior=(0,C.Gm)(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(c.ZT).catch(c.ZT)}ensureInfiniteQueryData(t){return t.behavior=(0,C.Gm)(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return w.N.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#u}getMutationCache(){return this.#n}getDefaultOptions(){return this.#c}setDefaultOptions(t){this.#c=t}setQueryDefaults(t,e){this.#l.set((0,c.Ym)(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#l.values()],n={};return e.forEach(e=>{(0,c.to)(t,e.queryKey)&&Object.assign(n,e.defaultOptions)}),n}setMutationDefaults(t,e){this.#h.set((0,c.Ym)(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#h.values()],n={};return e.forEach(e=>{(0,c.to)(t,e.mutationKey)&&Object.assign(n,e.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#c.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=(0,c.Rm)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===c.CN&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#c.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#u.clear(),this.#n.clear()}},P=n(202),j=n(4298),S=n.n(j);let F=()=>null;var q=n(1163);let D=()=>{let t=(0,q.useRouter)();return(0,i.useEffect)(()=>{let e=(t,e)=>{let{shallow:n}=e;if(!n&&window.OneTrust){let t=document.getElementsByClassName("ot-sdk-show-settings");for(let e=0;e<t.length;e++){let n=t[e];n&&(n.onclick=function(t){t.stopImmediatePropagation(),window.OneTrust.ToggleInfoDisplay()})}}};return t.events.on("routeChangeComplete",e),()=>{t.events.off("routeChangeComplete",e)}},[t]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(S(),{type:"text/javascript",src:"https://cdn.cookielaw.org/consent/".concat("0197849c-1266-72dd-9aab-02aacb859ca8","/OtAutoBlock.js"),strategy:"beforeInteractive"}),(0,r.jsx)(S(),{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",type:"text/javascript","data-language":t.locale,"data-domain-script":"".concat("0197849c-1266-72dd-9aab-02aacb859ca8"),strategy:"beforeInteractive"}),(0,r.jsx)(S(),{id:"cookie-pro",type:"text/javascript",strategy:"beforeInteractive",children:"function OptanonWrapper() { }"})]})},E=()=>(0,r.jsx)(S(),{id:"google-tag-manager-ga4",strategy:"afterInteractive",children:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\nnew Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\nj=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;
1j.src=\n'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n})(window,document,'script','dataLayer','".concat("GTM-ML99TRN","');")}),x=()=>(0,r.jsx)(S(),{id:"incite-response-pixel",strategy:"afterInteractive",className:"optanon-category-C0004",children:"(function(e,t,o,n,p,r,i){e.visitorGlobalObjectAlias=n;e[e.visitorGlobalObjectAlias]=e[e.visitorGlobalObjectAlias]||function(){(e[e.visitorGlobalObjectAlias].q=e[e.visitorGlobalObjectAlias].q||[]).push(arguments)};e[e.visitorGlobalObjectAlias].l=(new Date).getTime();r=t.createElement(\"script\");r.src=o;r.async=true;i=t.getElementsByTagName(\"script\")[0];i.parentNode.insertBefore(r,i)})(window,document,\"https://diffuser-cdn.app-us1.com/diffuser/diffuser.js\",\"vgo\");\nvgo('setAccount', '252610859');\nvgo('setTrackByDefault', true);\nvgo('process');"}),A=()=>{let t=(0,q.useRouter)();(0,i.useEffect)(()=>{let e=t=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"page_view",page:t})};return t.events.on("routeChangeComplete",e),()=>{t.events.off("routeChangeComplete",e)}},[t.events])};var M=n(3272),T=n(2551),k=function(t){let{Component:e,pageProps:n,router:s}=t,[o]=(0,i.useState)(()=>new O);return A(),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u(),{children:[(0,r.jsx)("title",{children:"Welcome to Black Desert Resort!"}),(0,r.jsx)("link",{rel:"shortcut icon",href:"/_next/static/media/favicon.876f9c61.jpg"})]}),(0,r.jsx)(F,{}),(0,r.jsx)(D,{}),(0,r.jsx)(E,{}),(0,r.jsx)(x,{}),(0,r.jsx)(P.aH,{client:o,children:(0,r.jsx)(M.QueryParamProvider,{adapter:T.Mm,children:(0,r.jsx)("div",{className:"".concat(a().variable," font-avenir text-gray2"),children:(0,i.createElement)(e,{...n,key:s.asPath.replace(/#.*/,"")})})})})]})}},1595:function(){},1915:function(){},4695:function(){},6185:function(){},9640:function(){},4854:function(){},8584:function(t){t.exports={style:{fontFamily:"'__fontAvenir_94f1ea', '__fontAvenir_Fallback_94f1ea'"},className:"__className_94f1ea",variable:"__variable_94f1ea"}},9008:function(t,e,n){t.exports=n(7828)},1163:function(t,e,n){t.exports=n(9090)},4298:function(t,e,n){t.exports=n(2892)},3272:function(t,e,n){"use strict";let r,i,s;n.d(e,{QueryParamProvider:function(){return O},StringParam:function(){return a},useQueryParam:function(){return q}});let a={encode:function(t){return null==t?t:String(t)},decode:function(t){let e=function(t,e){if(null==t)return t;if(0===t.length&&(!e||e&&""!==t))return null;let n=t instanceof Array?t[0]:t;return null==n?n:e||""!==n?n:null}(t,!0);return null==e?e:String(e)}};'{}[],":'.split("").map(t=>[t,encodeURIComponent(t)]);var o=n(7294);class u{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(t,e,n,r){this.paramsMap.set(t,{stringified:e,decoded:n,decode:r})}has(t,e,n){if(!this.paramsMap.has(t))return!1;let r=this.paramsMap.get(t);return!!r&&r.stringified===e&&(null==n||r.decode===n)}get(t){var e;if(this.paramsMap.has(t))return null==(e=this.paramsMap.get(t))?void 0:e.decoded}registerParams(t){for(let e of t){let t=this.registeredParams.get(e)||0;this.registeredParams.set(e,t+1)}}unregisterParams(t){for(let e of t){let t=(this.registeredParams.get(e)||0)-1;t<=0?(this.registeredParams.delete(e),this.paramsMap.has(e)&&this.paramsMap.delete(e)):this.registeredParams.set(e,t)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}}let c=new u;function l(t,e,n,r){var i;if(!n||!e.length)return t;let s={...t},a=!1;for(let t of e)Object.prototype.hasOwnProperty.call(s,t)||(s[t]=null!=(i=n[t])?i:r,a=!0);return a?s:t}let h=Object.prototype.hasOwnProperty;function f(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function d(t,e,n){var r,i;if(f(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;let s=Object.keys(t),a=Object.keys(e);if(s.length!==a.length)return!1;for(let a=0;a<s.length;a++){let o=null!=(i=null==(r=null==n?void 0:n[s[a]])?void 0:r.equals)?i:f;if(!h.call(e,s[a])||!o(t[s[a]],e[s[a]]))return!1}return!0}function p(t,e,n){let r={};for(let i of Object.keys(e)){let s;let a=e[i],o=t[i];if(n.has(i,o,a.decode))s=n.get(i);else{if(s=a.decode(o),a.equals&&n.has(i,o)){let t=n.get(i);a.equals(s,t)&&(s=t)}void 0!==s&&n.set(i,o,s,a.decode)}void 0===s&&void 0!==a.default&&(s=a.default),r[i]=s}return r}function y(){let t;return function(e,n,r){let i=p(e,n,r);return null!=t&&d(t,i)?t:(t=i,i)}}let m={},g=(t,e,n)=>{if(r===e&&s===t&&i===n)return m;r=e,s=t;let a=t(null!=e?e:"");i=n;let o=function(t){if(t)return Object.fromEntries(t.split("\n").map(t=>t.split("\0")))}(n);for(let[t,e]of Object.entries(a)){(null==o?void 0:o[t])&&(delete a[t],a[t=o[t]]=e);let n=m[t];d(e,n)&&(a[t]=n)}return m=a,a};function v(t,e){null==e&&(e={});let n={...t,...e};return e.params&&t.params&&(n.params={...t.params,...e.params}),n}let b={adapter:{},options:{searchStringToObject:function(t){let e=new URLSearchParams(t),n={};for(let[t,r]of e)Object.prototype.hasOwnProperty.call(n,t)?Array.isArray(n[t])?n[t].push(r):n[t]=[n[t],r]:n[t]=r;return n},objectToSearchString:function(t){let e=new URLSearchParams;for(let[n,r]of Object.entries(t))if(null!=r){if(Array.isArray(r))for(let t of r)e.append(n,null!=t?t:"");else e.append(n,r)}return e.toString()},updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0}},w=o.createContext(b);function C({children:t,adapter:e,options:n}){let{adapter:r,options:i}=o.useContext(w),s=o.useMemo(()=>({adapter:null!=e?e:r,options:v(i,n)}),[e,n,r,i]);return o.createElement(w.Provider,{value:s},t)}function O({children:t,adapter:e,options:n}){return e?o.createElement(e,null,e=>o.createElement(C,{adapter:e,options:n},t)):o.createElement(C,{options:n},t)}let P=t=>t(),j=t=>setTimeout(()=>t(),0),S=[];var F=function(t,e){var n,r;let i;let{adapter:s,options:u}
1=function(){let t=o.useContext(w);if(void 0===t||t===b)throw Error("useQueryParams must be used within a QueryParamProvider");return t}(),[h]=(0,o.useState)(y),{paramConfigMap:f,options:d}=(n=t,r=e,{paramConfigMap:void 0===n?{}:Array.isArray(n)?Object.fromEntries(n.map(t=>[t,"inherit"])):n,options:r}),m=(0,o.useMemo)(()=>v(u,d),[u,d]),C=function(t,e){var n,r,i;let s={},o=!1,u=Object.keys(t);if(e.includeKnownParams||!1!==e.includeKnownParams&&0===u.length){let t=Object.keys(null!=(n=e.params)?n:{});u.push(...t)}for(let n of u){let u=t[n];if(null!=u&&"object"==typeof u){s[n]=u;continue}o=!0,s[n]=null!=(i=null==(r=e.params)?void 0:r[n])?i:a}return o?s:t}(f,m),O=g(m.searchStringToObject,s.location.search,function(t){let e;for(let n in t)if(t[n].urlName){let r=t[n].urlName,i=`${r}\0${n}`;e?e.push(i):e=[i]}return e?e.join("\n"):void 0}(C));m.includeAllParams&&(C=l(C,Object.keys(O),m.params,a));let F=h(O,C,c),q=Object.keys(C).join("\0");(0,o.useEffect)(()=>{let t=q.split("\0");return c.registerParams(t),()=>{c.unregisterParams(t)}},[q]);let D={adapter:s,paramConfigMap:C,options:m},E=(0,o.useRef)(D);null==E.current&&(E.current=D),(0,o.useEffect)(()=>{E.current.adapter=s,E.current.paramConfigMap=C,E.current.options=m},[s,C,m]);let[x]=(0,o.useState)(()=>(t,e)=>{let{adapter:n,paramConfigMap:r,options:i}=E.current;null==e&&(e=i.updateType),function(t,{immediate:e}={}){S.push(t),1===S.length&&(e?P:j)(()=>{let e;let n=S.slice();S.length=0;let r=n[0].currentSearchString;for(let t=0;t<n.length;++t)e=function({changes:t,updateType:e,currentSearchString:n,paramConfigMap:r,options:i}){let s,a,o;let{searchStringToObject:u,objectToSearchString:h}=i;null==e&&(e=i.updateType);let f=g(u,n),d=l(r,Object.keys(t),i.params);return a="function"==typeof t?t(p(f,d,c)):t,s=function(t,e){let n={};for(let r of Object.keys(e)){let i=e[r];t[r]?n[r]=t[r].encode(e[r]):n[r]=null==i?i:String(i)}return n}(d,a),i.removeDefaultsFromUrl&&function(t,e){var n;for(let r in t)(null==(n=e[r])?void 0:n.default)!==void 0&&void 0!==t[r]&&e[r].encode(e[r].default)===t[r]&&(t[r]=void 0)}(s,d),s=function(t,e){var n;let r={};for(let i in t)(null==(n=e[i])?void 0:n.urlName)!=null?r[e[i].urlName]=t[i]:r[i]=t[i];return r}(s,d),(null==(o=h("push"===e||"replace"===e?s:{...f,...s}))?void 0:o.length)&&"?"!==o[0]&&(o=`?${o}`),null!=o?o:""}(0===t?n[t]:{...n[t],currentSearchString:e});t.options.skipUpdateWhenNoChange&&e===r||function({searchString:t,adapter:e,navigate:n,updateType:r}){let i={...e.location,search:t};n&&("string"==typeof r&&r.startsWith("replace")?e.replace(i):e.push(i))}({searchString:null!=e?e:"",adapter:n[n.length-1].adapter,navigate:!0,updateType:n[n.length-1].updateType})})}({changes:t,updateType:e,currentSearchString:n.location.search,paramConfigMap:r,options:i,adapter:n},{immediate:!i.enableBatching})});return[F,x]};let q=(t,e,n)=>{let[r,i]=F((0,o.useMemo)(()=>({[t]:null!=e?e:"inherit"}),[t,e]),n);return[r[t],(0,o.useCallback)((e,n)=>"function"==typeof e?i(n=>{let r=e(n[t]);return{[t]:r}},n):i({[t]:e},n),[t,i])]}},6474:function(t,e,n){"use strict";n.d(e,{j:function(){return s}});var r=n(7506),i=n(4139),s=new class extends r.l{#y;#m;#g;constructor(){super(),this.#g=t=>{if(!i.sk&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#m||this.setEventListener(this.#g)}onUnsubscribe(){this.hasListeners()||(this.#m?.(),this.#m=void 0)}setEventListener(t){this.#g=t,this.#m?.(),this.#m=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.#y!==t&&(this.#y=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#y?this.#y:globalThis.document?.visibilityState!=="hidden"}}},4948:function(t,e,n){"use strict";n.d(e,{Gm:function(){return i},Qy:function(){return o},ZF:function(){return u}});var r=n(4139);function i(t){return{onFetch:(e,n)=>{let i=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,u=e.state.data?.pages||[],c=e.state.data?.pageParams||[],l={pages:[],pageParams:[]},h=0,f=async()=>{let n=!1,f=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e.signal.aborted?n=!0:e.signal.addEventListener("abort",()=>{n=!0}),e.signal)}
1)},d=(0,r.cG)(e.options,e.fetchOptions),p=async(t,i,s)=>{if(n)return Promise.reject();if(null==i&&t.pages.length)return Promise.resolve(t);let a={client:e.client,queryKey:e.queryKey,pageParam:i,direction:s?"backward":"forward",meta:e.options.meta};f(a);let o=await d(a),{maxPages:u}=e.options,c=s?r.Ht:r.VX;return{pages:c(t.pages,o,u),pageParams:c(t.pageParams,i,u)}};if(o&&u.length){let t="backward"===o,e={pages:u,pageParams:c},n=(t?a:s)(i,e);l=await p(e,n,t)}else{let e=t??u.length;do{let t=0===h?c[0]??i.initialPageParam:s(i,l);if(h>0&&null==t)break;l=await p(l,t),h++}while(h<e)}return l};e.options.persister?e.fetchFn=()=>e.options.persister?.(f,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=f}}}function s(t,{pages:e,pageParams:n}){let r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function a(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}function o(t,e){return!!e&&null!=s(t,e)}function u(t,e){return!!e&&!!t.getPreviousPageParam&&null!=a(t,e)}},7037:function(t,e,n){"use strict";n.d(e,{V:function(){return r}});var r=function(){let t=[],e=0,n=t=>{t()},r=t=>{t()},i=t=>setTimeout(t,0),s=r=>{e?t.push(r):i(()=>{n(r)})},a=()=>{let e=t;t=[],e.length&&i(()=>{r(()=>{e.forEach(t=>{n(t)})})})};return{batch:t=>{let n;e++;try{n=t()}finally{--e||a()}return n},batchCalls:t=>(...e)=>{s(()=>{t(...e)})},schedule:s,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{r=t},setScheduler:t=>{i=t}}}()},4304:function(t,e,n){"use strict";n.d(e,{N:function(){return s}});var r=n(7506),i=n(4139),s=new class extends r.l{#v=!0;#m;#g;constructor(){super(),this.#g=t=>{if(!i.sk&&window.addEventListener){let e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#m||this.setEventListener(this.#g)}onUnsubscribe(){this.hasListeners()||(this.#m?.(),this.#m=void 0)}setEventListener(t){this.#g=t,this.#m?.(),this.#m=t(this.setOnline.bind(this))}setOnline(t){this.#v!==t&&(this.#v=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#v}}},6888:function(t,e,n){"use strict";n.d(e,{A:function(){return o},z:function(){return u}});var r=n(4139),i=n(7037),s=n(2008),a=n(8907),o=class extends a.F{#b;#w;#C;#O;#r;#c;#P;constructor(t){super(),this.#P=!1,this.#c=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#O=t.client,this.#C=this.#O.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#b=function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==e,r=n?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=t.state??this.#b,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(t){this.options={...this.#c,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#C.remove(this)}setData(t,e){let n=(0,r.oE)(this.state.data,t,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t,e){this.#i({type:"setState",state:t,setStateOptions:e})}cancel(t){let e=this.#r?.promise;return this.#r?.cancel(t),e?e.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#b)}isActive(){return this.observers.some(t=>!1!==(0,r.Nc)(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r.CN||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(t=0){return this.state.isInvalidated||void 0===this.state.data||!(0,r.Kp)(this.state.dataUpdatedAt,t)}onFocus(){let t=this.observers.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){let t=this.observers.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#C.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#r&&(this.#P?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#C.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(t,e){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let n=new AbortController,i=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#P=!0,n.signal)}
1)},a={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#O,state:this.state,fetchFn:()=>{let t=(0,r.cG)(this.options,e),n={client:this.#O,queryKey:this.queryKey,meta:this.meta};return(i(n),this.#P=!1,this.options.persister)?this.options.persister(t,n,this):t(n)}};i(a),this.options.behavior?.onFetch(a,this),this.#w=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#i({type:"fetch",meta:a.fetchOptions?.meta});let o=t=>{(0,s.DV)(t)&&t.silent||this.#i({type:"error",error:t}),(0,s.DV)(t)||(this.#C.config.onError?.(t,this),this.#C.config.onSettled?.(this.state.data,t,this)),this.scheduleGc()};return this.#r=(0,s.Mz)({initialPromise:e?.initialPromise,fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:t=>{if(void 0===t){o(Error(`${this.queryHash} data is undefined`));return}try{this.setData(t)}catch(t){o(t);return}this.#C.config.onSuccess?.(t,this),this.#C.config.onSettled?.(t,this.state.error,this),this.scheduleGc()},onError:o,onFail:(t,e)=>{this.#i({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#r.start()}#i(t){this.state=(e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...u(e.data,this.options),fetchMeta:t.meta??null};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=t.error;if((0,s.DV)(n)&&n.revert&&this.#w)return{...this.#w,fetchStatus:"idle"};return{...e,error:n,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#C.notify({query:this,type:"updated",action:t})})}};function u(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.Kw)(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}},8907:function(t,e,n){"use strict";n.d(e,{F:function(){return i}});var r=n(4139),i=class{#j;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.gcTime)&&(this.#j=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(r.sk?1/0:3e5))}clearGcTimeout(){this.#j&&(clearTimeout(this.#j),this.#j=void 0)}}},2008:function(t,e,n){"use strict";n.d(e,{DV:function(){return l},Kw:function(){return u},Mz:function(){return h}});var r=n(6474),i=n(4304),s=n(3820),a=n(4139);function o(t){return Math.min(1e3*2**t,3e4)}function u(t){return(t??"online")!=="online"||i.N.isOnline()}var c=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function l(t){return t instanceof c}function h(t){let e,n=!1,l=0,h=!1,f=(0,s.O)(),d=()=>r.j.isFocused()&&("always"===t.networkMode||i.N.isOnline())&&t.canRun(),p=()=>u(t.networkMode)&&t.canRun(),y=n=>{h||(h=!0,t.onSuccess?.(n),e?.(),f.resolve(n))},m=n=>{h||(h=!0,t.onError?.(n),e?.(),f.reject(n))},g=()=>new Promise(n=>{e=t=>{(h||d())&&n(t)},t.onPause?.()}).then(()=>{e=void 0,h||t.onContinue?.()}),v=()=>{let e;if(h)return;let r=0===l?t.initialPromise:void 0;try{e=r??t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(y).catch(e=>{if(h)return;let r=t.retry??(a.sk?0:3),i=t.retryDelay??o,s="function"==typeof i?i(l,e):i,u=!0===r||"number"==typeof r&&l<r||"function"==typeof r&&r(l,e);if(n||!u){m(e);return}l++,t.onFail?.(l,e),(0,a._v)(s).then(()=>d()?void 0:g()).then(()=>{n?m(e):v()})})};return{promise:f,cancel:e=>{h||(m(new c(e)),t.abort?.())},continue:()=>(e?.(),f),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:p,start:()=>(p()?v():g().then(v),f)}}},7506:function(t,e,n){"use strict";n.d(e,{l:function(){return r}});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},3820:function(t,e,n){"use strict";function r(){let t,e;let n=new Promise((n,r)=>{t=n,e=r});function r(t){Object.assign(n,t),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=e=>{r({status:"fulfilled",value:e}),t(e)},n.reject=t=>{r({status:"rejected",reason:t}),e(t)},n}n.d(e,{O:function(){return r}})},4139:function(t,e,n){"use strict";n.d(e,{CN:function(){return P},Ht:function(){return O},KC:function(){return u},Kp:function(){return o},Nc:function(){return c},PN:function(){return a},Rm:function(){return f},SE:function(){return s},VS:function(){return y},VX:function(){return C},X7:function(){return h},Ym:function(){return d},ZT:function(){return i},_v:function(){return b},_x:function(){return l},cG:function(){return j},oE:function(){return w},sk:function(){return r},to:function(){return p}});var r="undefined"==typeof window||"Deno"in globalThis;function i(){}function s(t,e){return"function"==typeof t?t(e):t}function a(t){return"number"==typeof t&&t>=0&&t!==1/0}function o(t,e){return Math.max(t+(e||0)-Date.now(),0)}function u(t,e){return"function"==typeof t?t(e):t}function c(t,e){return"function"==typeof t?t(e):t}function l(t,e){let{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:a,stale:o}=t;if(a){if(r){if(e.queryHash!==f(a,e.options))return!1}else if(!p(e.queryKey,a))return!1}if("all"!==n){let t=e.isActive();if("active"===n&&!t||"inactive"===n&&t)return!1}return("boolean"!=typeof o||e.isStale()===o)&&(!i||i===e.state.fetchStatus)&&(!s||!!s(e))}function h(t,e){let{exact:n,status:r,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(d(e.options.mutationKey)!==d(s))return!1}else if(!p(e.options.mutationKey,s))return!1}return(!r||e.state.status===r)&&(!i||!!i(e))}function f(t,e){return(e?.queryKeyHashFn||d)(t)}function d(t){return JSON.stringify(t,(t,e)=>g(e)?Object.keys(e).sort().reduce((t,n)=>(t[n]=e[n],t),{}):e)}function p(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(n=>!p(t[n],e[n]))}function y(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let n in t)if(t[n]!==e[n])return!1;return!0}function m(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function g(t){if(!v(t))return!1;let e=t.constructor;if(void 0===e)return!0;let n=e.prototype;return!!(v(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(t)===Object.prototype}function v(t){return"[object Object]"===Object.prototype.toString.call(t)}function b(t){return new Promise(e=>{setTimeout(e,t)})}function w(t,e,n){return"function"==typeof n.structuralSharing?n.structuralSharing(t,e):!1!==n.structuralSharing?function t(e,n){if(e===n)return e;let r=m(e)&&m(n);if(r||g(e)&&g(n)){let i=r?e:Object.keys(e),s=i.length,a=r?n:Object.keys(n),o=a.length,u=r?[]:{},c=0;for(let s=0;s<o;s++){let o=r?s:a[s];(!r&&i.includes(o)||r)&&void 0===e[o]&&void 0===n[o]?(u[o]=void 0,c++):(u[o]=t(e[o],n[o]),u[o]===e[o]&&void 0!==e[o]&&c++)}return s===o&&c===s?e:u}return n}(t,e):e}function C(t,e,n=0){let r=[...t,e];return n&&r.length>n?r.slice(1):r}function O(t,e,n=0){let r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var P=Symbol();function j(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:t.queryFn&&t.queryFn!==P?t.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.queryHash}'`))}},202:function(t,e,n){"use strict";n.d(e,{NL:function(){return a},aH:function(){return o}});var r=n(7294),i=n(5893),s=r.createContext(void 0),a=t=>{let e=r.useContext(s);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},o=({client:t,children:e})=>(r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(s.Provider,{value:t,children:e}))}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[774,179],function(){return e(6840),e(9090)}),_N_E=t.O()}]);
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.