1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[62782],{257:e=>{e.exports={LoopEeFontSize12:12,LoopEeFontSize16:16,LoopEeFontSize20:20,LoopEeFontSize24:24,LoopEeFontSize28:28,LoopEeFontSize32:32,LoopEeFontSize36:36,LoopEeFontSize40:40,LoopEeFontSize48:48,LoopEeFontSize60:60,LoopEeFontSize64:64,LoopEeFontSize72:72,LoopEeFontSize80:80,LoopEeFontSize96:96,LoopEeFontSize100:100,LoopEeFontSize128:128,LoopEeFontSize56:56,LoopEePageBackgroundLightMode:"#ffffff",LoopEeSurfaceDefaultLightMode:"#ffffff",LoopEeSurfaceFogLightMode:"#f7f7f7",LoopEeSurfaceCoalLightMode:"#2b2b2b",LoopEeSurfaceBlackLightMode:"#000000",LoopEeSurfaceBrandColour01LightMode:"#009ba5",LoopEeSurfaceBrandColour02LightMode:"#057382",LoopEeSurfaceBrandColour03LightMode:"#ebf304",LoopEeSurfaceBrandColour04LightMode:"#93fede",LoopEeSurfaceWarningLightMode:"#fef2de",LoopEeSurfaceCriticalLightMode:"#feeded",LoopEeSurfaceSuccessLightMode:"#e5f6e3",LoopEeBorderSubdued02LightMode:"#667f80",LoopEeBorderSubdued01LightMode:"#cee7e8",LoopEeBorderBrandColour01LightMode:"#057382",LoopEeBorderBrandColour02LightMode:"#ebf304",LoopEeBorderCriticalLightMode:"#d20007",LoopEeBorderWarningLightMode:"#b14d00",LoopEeBorderSuccessLightMode:"#138100",LoopEeInteractiveMonochrome02DefaultLightMode:"#f7f7f7",LoopEeInteractiveMonochrome02HoverLightMode:"#d9d9d9",LoopEeInteractiveMonochrome02PressedLightMode:"#bbbbbb",LoopEeInteractiveMonochrome02DisabledLightMode:"#373737",LoopEeInteractiveMonochrome01DefaultLightMode:"#111111",LoopEeInteractiveMonochrome01HoverLightMode:"#2b2b2b",LoopEeInteractiveMonochrome01PressedLightMode:"#3f3f3f",LoopEeInteractiveMonochrome01DisabledLightMode:"#cfcfcf",LoopEeInteractiveSubduedDefaultLightMode:"#667f80",LoopEeInteractiveSubduedHoverLightMode:"#566f70",LoopEeInteractiveSubduedPressedLightMode:"#455e5f",LoopEeInteractiveSubduedDisabledLightMode:"#d2d2d2",LoopEeInteractiveBrandColour01DefaultLightMode:"#057382",LoopEeInteractiveBrandColour01HoverLightMode:"#035f6e",LoopEeInteractiveBrandColour01PressedLightMode:"#01404c",LoopEeInteractiveBrandColour01DisabledLightMode:"#a5ccd2",LoopEeInteractiveBrandColour02DefaultLightMode:"#ebf304",LoopEeInteractiveBrandColour02HoverLightMode:"#c5cc00",LoopEeInteractiveBrandColour02PressedLightMode:"#abad00",LoopEeInteractiveBrandColour02DisabledLightMode:"#545701",LoopEeInteractiveCriticalDefaultLightMode:"#d20007",LoopEeInteractiveCriticalHoverLightMode:"#aa0006",LoopEeInteractiveCriticalPressedLightMode:"#840106",LoopEeInteractiveCriticalDisabledLightMode:"#eea3a5",LoopEeTextMonochrome01LightMode:"#111111",LoopEeTextMonochrome02LightMode:"#f7f7f7",LoopEeTextSubdued01LightMode:"#686868",LoopEeTextSubdued02LightMode:"#bbbbbb",LoopEeTextWarningLightMode:"#b14d00",LoopEeTextCriticalLightMode:"#d20007",LoopEeTextSuccessLightMode:"#138100",LoopEeTextBrandColour01LightMode:"#057382",LoopEeTextBrandColour02LightMode:"#ebf304",LoopEeIconMonochrome01LightMode:"#111111",LoopEeIconMonochrome02LightMode:"#f7f7f7",LoopEeIconBrandColour01LightMode:"#057382",LoopEeIconBrandColour02LightMode:"#ebf304",LoopEeIconSubdued01LightMode:"#686868",LoopEeIconSubdued02LightMode:"#bbbbbb",LoopEeIconCriticalLightMode:"#d20007",LoopEeIconWarningLightMode:"#b14d00",LoopEeIconSuccessLightMode:"#138100",LoopEeOverlayLightMode:"rgba(0, 0, 0, 0.64)",LoopEeElevation01LightMode:[{blur:24,color:"rgba(0, 0, 0, 0.04)",offsetX:0,offsetY:4,spread:0},{blur:8,color:"rgba(0, 0, 0, 0.08)",offsetX:0,offsetY:4,spread:0}],LoopEeElevation02LightMode:[{blur:24,color:"rgba(0, 0, 0, 0.04)",offsetX:0,offsetY:4,spread:0},{blur:16,color:"rgba(0, 0, 0, 0.08)",offsetX:0,offsetY:8,spread:0}],LoopEeElevation03LightMode:[{blur:24,color:"rgba(0, 0, 0, 0.08)",offsetX:0,offsetY:4,spread:0},{blur:20,color:"rgba(0, 0, 0, 0.08)",offsetX:0,offsetY:12,spread:0}],LoopEeFontFamilyDotteeCondensed:"Dottee-Condensed",LoopEeFontFamilyDotteeExtended:"Dottee-Extended",LoopEeFontFamilyNonDotteeNarrow:"Non-Dottee-Narrow",LoopEeFontFamilyNonDottee:"Non-Dottee",LoopEeFontFamilyDottee:"Dottee",LoopEeLineHeight16:16,LoopEeLineHeight24:24,LoopEeLineHeight28:28,LoopEeLineHeight32:32,LoopEeLineHeight36:36,LoopEeLineHeight40:40,LoopEeLineHeight44:44,LoopEeLineHeight48:48,LoopEeLineHeight52:52,LoopEeLineHeight56:56,LoopEeLineHeight60:60,LoopEeLineHeight64:64,LoopEeLineHeight68:68,LoopEeLineHeight72:72,LoopEeLineHeight76:76,LoopEeLineHeight80:80,LoopEeLineHeight88:88,LoopEeLineHeight96:96,LoopEeLineHeight104:104,LoopEeLineHeight108:108,LoopEeLineHeight116:116,LoopEeLineHeight120:120,LoopEeLineHeight156:156,LoopEeFontWeightNonDotteeRegular:400,LoopEeFontWeightNonDotteeBold:700,LoopEeFontWeightNonDotteeLight:300,LoopEeFontWeightDotteeLight:300,LoopEeFontWeightDotteeRegular:400,LoopEeFontWeightDotteeBold:700,LoopEeIconXxxs:12,LoopEeIconXxs:16,LoopEeIconXs:20,LoopEeIconS:24,LoopEeIconM:28,LoopEeIconL:32,LoopEeIconXl:48,LoopEeIconXxl:64,LoopEeBreakpointXs:320,LoopEeBreakpointS:568,LoopEeBreakpointM:768,LoopEeBreakpointL:1024,LoopEeBreakpointXl:1440,LoopEeGridGutter0:0,LoopEeGridGutter8:8,LoopEeGridGutter16:16,LoopEeGridGutter24:24,LoopEeContainerPadding0:0,LoopEeContainerPadding8:8,L
1oopEeContainerPadding16:16,LoopEeContainerPadding24:24,LoopEePageSection:1318,LoopEeBorderRadius0:0,LoopEeBorderRadius4:4,LoopEeBorderRadius8:8,LoopEeBorderRadius16:16,LoopEeBorderRadius20:20,LoopEeBorderWidth0:0,LoopEeBorderWidth1:1,LoopEeBorderWidth2:2,LoopEeBorderWidth4:4}},3030:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var __dirname="/",process=__webpack_require__(29143),require$$1=__webpack_require__(6029),require$$0=__webpack_require__(55729),ReactDOM=__webpack_require__(56760),NextRouter=__webpack_require__(81278);function _interopNamespaceDefault(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}function _mergeNamespaces(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})}),Object.freeze(e)}var NextRouter__namespace=_interopNamespaceDefault(NextRouter),isClient=function(){return"u">typeof window},__assign=function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function __rest(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function __awaiter(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function __generator(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function __read(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function __spreadArray(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function _extends$2(){return(_extends$2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _object_without_properties_loose(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function _extends$1(){return(_extends$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}"function"==typeof SuppressedError&&SuppressedError;let MANIFEST_EXT=".json",BROWSER_LOG_KEY="FEDERATION_DEBUG",SEPARATOR=":";function isBrowserEnv(){return"u">typeof window&&void 0!==window.document}function isReactNativeEnv(){var e;return"u">typeof navigator&&"ReactNative"===(null==(e=navigator)?void 0:e.product)}function isBrowserDebug(){try{if(isBrowserEnv()&&window.localStorage)return!!localStorage.getItem(BROWSER_LOG_KEY)}catch(e){}return!1}function isDebugMode(){return void 0!==process&&process.env&&process.env.FEDERATION_DEBUG?!!process.env.FEDERATION_DEBUG:!("u"<typeof FEDERATION_DEBUG||!FEDERATION_DEBUG)||isBrowserDebug()}let LOG_CATEGORY$1="[ Federation Runtime ]",composeKeyWithSeparator=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}${SEPARATOR}${t}`:t:e,""):""},getResourceUrl=(e,t)=>{if("getPublicPath"in e){let r;return r=e.getPublicPath.startsWith("function")?Function("return "+e.getPublicPath)()():Function(e.getPublicPath)(),`${r}${t}`}return"publicPath"in e?isBrowserEnv()||isReactNativeEnv()||!("ssrPublicPath"in e)?`${e.publicPath}${t}`:`${e.ssrPublicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")},warn$1=e=>{console.warn(`${LOG_CATEGORY$1}: ${e}`)};function safeToString(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}let simpleJoinRemoteEntry=(e,t)=>{if(!e)return t;let r=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){let t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return r?r.endsWith("/")?`${r}${t}`:`${r}/${t}`:t};function inferAutoPublicPath(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")}function generateSnapshotFromManifest(e,t={}){var r,n,i;let o,{remotes:a={},overrides:s={},version:l}=t,u=()=>"publicPath"in e.metaData?"auto"===e.metaData.publicPath&&l?inferAutoPublicPath(l):e.metaData.publicPath:e.metaData.getPublicPath,c=Object.keys(s),d={};Object.keys(a).length||(d=(null==(i=e.remotes)?void 0:i.reduce((e,t)=>{let r,n=t.federationContainerName;return r=c.includes(n)?s[n]:"version"in t?t.version:t.entry,e[n]={matchedVersion:r},e},{}))||{}),Object.keys(a).forEach(e=>d[e]={matchedVersion:c.includes(e)?s[e]:a[e]});let{remoteEntry:{path:p,name:f,type:h},types:m,buildInfo:{buildVersion:g},globalName:v,ssrRemoteEntry:E}=e.metaData,{exposes:y}=e,b={version:l||"",buildVersion:g,globalName:v,remoteEntry:simpleJoinRemoteEntry(p,f),remoteEntryType:h,remoteTypes:simpleJoinRemoteEntry(m.path,m.name),remoteTypesZip:m.zip||"",remoteTypesAPI:m.api||"",remotesInfo:d,shared:null==e?void 0:e.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version})),modules:null==y?void 0:y.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if((null==(r=e.metaData)?void 0:r.prefetchInterface)&&(b=_extends$1({},b,{prefetchInterface:e.metaData.prefetchInterface})),null==(n=e.metaData)?void 0:n.prefetchEntry){let{path:t,name:r,type:n}=e.metaData.prefetchEntry;b=_extends$1({},b,{prefetchEntry:simpleJoinRemoteEntry(t,r),prefetchEntryType:n})}return o="publicPath"in e.metaData?_extends$1({},b,{publicPath:u(),ssrPublicPath:e.metaData.ssrPublicPath}):_extends$1({},b,{getPublicPath:u()}),E&&(o.ssrRemoteEntry=simpleJoinRemoteEntry(E.path,E.name),o.ssrRemoteEntryType=E.type||"commonjs-module"),o}function isManifestProvider(e){return!(!("remoteEntry"in e)||!e.remoteEntry.includes(MANIFEST_EXT))}let Logger=class{setPrefix(e){this.prefix=e}log(...e){console.log(this.prefix,...e)}warn(...e){console.log(this.prefix,...e)}error(...e){console.log(this.prefix,...e)}success(...e){console.log(this.prefix,...e)}info(...e){console.log(this.prefix,...e)}ready(...e){console.log(this.prefix,...e)}debug(...e){isDebugMode()&&console.log(this.prefix,...e)}constructor(e){this.prefix=e}};function createLogger(e){return new Logger(e)}async function safeWrapper(e,t){try{return await e()}catch(e){return void warn$1(e)}}function isStaticResourcesEqual(e,t){let r=/^(https?:)?\/\//i;return e.replace(r,"").replace(/\/$/,"")===t.replace(r,"").replace(/\/$/,"")}function createScript(e){let t,r=null,n=!0,i=2e4,o=document.getElementsByTagName("script");for(let t=0;t<o.length;t++){let i=o[t],a=i.getAttribute("src");if(a&&isStaticResourcesEqual(a,e.url)){r=i,n=!1;break}}if(!r){let t,n=e.attrs;(r=document.createElement("script")).type="module"===(null==n?void 0:n.type)?"module":"text/javascript",e.createScriptHook&&((t=e.createScriptHook(e.url,e.attrs))instanceof HTMLScriptElement?r=t:"object"==typeof t&&("script"in t&&t.script&&(r=t.script),"timeout"in t&&t.timeout&&(i=t.timeout))),r.src||(r.src=e.url),n&&
1!t&&Object.keys(n).forEach(e=>{r&&("async"===e||"defer"===e?r[e]=n[e]:r.getAttribute(e)||r.setAttribute(e,n[e]))})}let a=async(n,i)=>{clearTimeout(t);let o=()=>{"error"===(null==i?void 0:i.type)?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(i)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(r&&(r.onerror=null,r.onload=null,safeWrapper(()=>{let{needDeleteScript:t=!0}=e;t&&(null==r?void 0:r.parentNode)&&r.parentNode.removeChild(r)}),n&&"function"==typeof n)){let e=n(i);if(e instanceof Promise){let t=await e;return o(),t}return o(),e}o()};return r.onerror=a.bind(null,r.onerror),r.onload=a.bind(null,r.onload),t=setTimeout(()=>{a(null,Error(`Remote script "${e.url}" time-outed.`))},i),{script:r,needAttach:n}}function createLink(e){let t=null,r=!0,n=document.getElementsByTagName("link");for(let i=0;i<n.length;i++){let o=n[i],a=o.getAttribute("href"),s=o.getAttribute("rel");if(a&&isStaticResourcesEqual(a,e.url)&&s===e.attrs.rel){t=o,r=!1;break}}if(!t){let r;(t=document.createElement("link")).setAttribute("href",e.url);let n=e.attrs;e.createLinkHook&&(r=e.createLinkHook(e.url,n))instanceof HTMLLinkElement&&(t=r),n&&!r&&Object.keys(n).forEach(e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,n[e])})}let i=(r,n)=>{let i=()=>{"error"===(null==n?void 0:n.type)?(null==e?void 0:e.onErrorCallback)&&(null==e||e.onErrorCallback(n)):(null==e?void 0:e.cb)&&(null==e||e.cb())};if(t&&(t.onerror=null,t.onload=null,safeWrapper(()=>{let{needDeleteLink:r=!0}=e;r&&(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)}),r)){let e=r(n);return i(),e}i()};return t.onerror=i.bind(null,t.onerror),t.onload=i.bind(null,t.onload),{link:t,needAttach:r}}function loadScript(e,t){let{attrs:r={},createScriptHook:n}=t;return new Promise((t,i)=>{let{script:o,needAttach:a}=createScript({url:e,cb:t,onErrorCallback:i,attrs:_extends$1({fetchpriority:"high"},r),createScriptHook:n,needDeleteScript:!0});a&&document.head.appendChild(o)})}function importNodeModule(e){if(!e)throw Error("import specifier is required");return Function("name","return import(name)")(e).then(e=>e).catch(t=>{throw console.error(`Error importing module ${e}:`,t),t})}let loadNodeFetch=async()=>{let e=await importNodeModule("node-fetch");return e.default||e},lazyLoaderHookFetch=async(e,t,r)=>{let n,i,o=await (n=e,i=t||{},r.lifecycle.fetch.emit(n,i));return o&&o instanceof Response?o:("u"<typeof fetch?await loadNodeFetch():fetch)(e,t||{})},createScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(url,cb,attrs,loaderHook)=>{let urlObj;if(null==loaderHook?void 0:loaderHook.createScriptHook){let e=loaderHook.createScriptHook(url);e&&"object"==typeof e&&"url"in e&&(url=e.url)}try{urlObj=new URL(url)}catch(e){return console.error("Error constructing URL:",e),void cb(Error(`Invalid URL: ${e}`))}let getFetch=async()=>(null==loaderHook?void 0:loaderHook.fetch)?(e,t)=>lazyLoaderHookFetch(e,t,loaderHook):"u"<typeof fetch?loadNodeFetch():fetch,handleScriptFetch=async(f,urlObj)=>{try{var _vm_constants,_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER;let res=await f(urlObj.href),data=await res.text(),[path,vm]=await Promise.all([importNodeModule("path"),importNodeModule("vm")]),scriptContext={exports:{},module:{exports:{}}},urlDirname=urlObj.pathname.split("/").slice(0,-1).join("/"),filename=path.basename(urlObj.pathname),script=new vm.Script(`(function(exports, module, require, __dirname, __filename) {${data} 2})`,{filename:filename,importModuleDynamically:null!=(_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER=null==(_vm_constants=vm.constants)?void 0:_vm_constants.USE_MAIN_CONTEXT_DEFAULT_LOADER)?_vm_constants_USE_MAIN_CONTEXT_DEFAULT_LOADER:importNodeModule});script.runInThisContext()(scriptContext.exports,scriptContext.module,eval("require"),urlDirname,filename);let exportedInterface=scriptContext.module.exports||scriptContext.exports;if(attrs&&exportedInterface&&attrs.globalName){let e=exportedInterface[attrs.globalName]||exportedInterface;return void cb(void 0,e)}cb(void 0,exportedInterface)}catch(e){cb(e instanceof Error?e:Error(`Script execution error: ${e}`))}};getFetch().then(async e=>{if("esm"===(null==attrs?void 0:attrs.type)||"module"===(null==attrs?void 0:attrs.type))return loadModule(urlObj.href,{fetch:e,vm:await importNodeModule("vm")}).then(async e=>{await e.evaluate(),cb(void 0,e.namespace)}).catch(e=>{cb(e instanceof Error?e:Error(`Script execution error: ${e}`))});handleScriptFetch(e,urlObj)}).catch(e=>{cb(e)})}:(e,t,r,n)=>{t(Error("createScriptNode is disabled in non-Node.js environment"))},loadScriptNode="u"<typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise((r,n)=>{createScriptNode(e,(e,i)=>{if(e)n(e);else{var o,a;let e=(null==t||null==(o=t.attrs)?void 0:o.globalName)||`__FEDERATION_${null==t||null==(a=t.attrs)?void 0:a.name}:custom__`;r(globalThis[e]=i)}},t.attrs,t.loaderHook)}):(e,t)=>{throw Error("loadScriptNode is disabled in non-Node.js environment")};async function loadModule(e,t){let{fetch:r,vm:n}=t,i=await r(e),o=await i.text(),a=new n.SourceTextModule(o,{importModuleDynamically:async(r,n)=>loadModule(new URL(r,e).href,t)});return await a.link(async r=>{let n=new URL(r,e).href;
2return await loadModule(n,t)}),a}let RUNTIME_001="RUNTIME-001",RUNTIME_002="RUNTIME-002",RUNTIME_003="RUNTIME-003",RUNTIME_004="RUNTIME-004",RUNTIME_005="RUNTIME-005",RUNTIME_006="RUNTIME-006",RUNTIME_007="RUNTIME-007",RUNTIME_008="RUNTIME-008",TYPE_001="TYPE-001",BUILD_001="BUILD-001",BUILD_002="BUILD-002",getDocsUrl=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}/${e}`,getShortErrorMsg=(e,t,r,n)=>{let i=[`${[t[e]]} #${e}`];return r&&i.push(`args: ${JSON.stringify(r)}`),i.push(getDocsUrl(e)),n&&i.push(`Original Error Message: 3 ${n}`),i.join("\n")};function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}let runtimeDescMap={[RUNTIME_001]:"Failed to get remoteEntry exports.",[RUNTIME_002]:'The remote entry interface does not contain "init"',[RUNTIME_003]:"Failed to get manifest.",[RUNTIME_004]:"Failed to locate remote.",[RUNTIME_005]:"Invalid loadShareSync function call from bundler runtime",[RUNTIME_006]:"Invalid loadShareSync function call from runtime",[RUNTIME_007]:"Failed to get remote snapshot.",[RUNTIME_008]:"Failed to load script resources."},typeDescMap={[TYPE_001]:"Failed to generate type declaration. Execute the below cmd to reproduce and fix the error."},buildDescMap={[BUILD_001]:"Failed to find expose module.",[BUILD_002]:"PublicPath is required in prod mode."};_extends({},runtimeDescMap,typeDescMap,buildDescMap);let LOG_CATEGORY="[ Federation Runtime ]",logger=createLogger(LOG_CATEGORY);function assert(e,t){e||error(t)}function error(e){if(e instanceof Error)throw e.message=`${LOG_CATEGORY}: ${e.message}`,e;throw Error(`${LOG_CATEGORY}: ${e}`)}function warn(e){e instanceof Error&&(e.message=`${LOG_CATEGORY}: ${e.message}`),logger.warn(e)}function addUniqueItem(e,t){return -1===e.findIndex(e=>e===t)&&e.push(t),e}function getFMId(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function isRemoteInfoWithEntry(e){return void 0!==e.entry}function isPureRemoteEntry(e){return!e.entry.includes(".json")}function isObject(e){return e&&"object"==typeof e}let objectToString=Object.prototype.toString;function isPlainObject(e){return"[object Object]"===objectToString.call(e)}function arrayOptions(e){return Array.isArray(e)?e:[e]}function getRemoteEntryInfoFromSnapshot(e){let t={url:"",type:"global",globalName:""};return isBrowserEnv()||isReactNativeEnv()?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t}let processModuleAlias=(e,t)=>{let r;return r=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),r+=t},CurrentGlobal="object"==typeof globalThis?globalThis:window,nativeGlobal=(()=>{try{return document.defaultView}catch(e){return CurrentGlobal}})(),Global=nativeGlobal;function definePropertyGlobalVal(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,writable:!0})}function includeOwnProperty(e,t){return Object.hasOwnProperty.call(e,t)}includeOwnProperty(CurrentGlobal,"__GLOBAL_LOADING_REMOTE_ENTRY__")||definePropertyGlobalVal(CurrentGlobal,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});let globalLoading=CurrentGlobal.__GLOBAL_LOADING_REMOTE_ENTRY__;function setGlobalDefaultVal(e){var t,r,n,i,o,a;includeOwnProperty(e,"__VMOK__")&&!includeOwnProperty(e,"__FEDERATION__")&&definePropertyGlobalVal(e,"__FEDERATION__",e.__VMOK__),includeOwnProperty(e,"__FEDERATION__")||(definePropertyGlobalVal(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),definePropertyGlobalVal(e,"__VMOK__",e.__FEDERATION__)),null!=(t=e.__FEDERATION__).__GLOBAL_PLUGIN__||(t.__GLOBAL_PLUGIN__=[]),null!=(r=e.__FEDERATION__).__INSTANCES__||(r.__INSTANCES__=[]),null!=(n=e.__FEDERATION__).moduleInfo||(n.moduleInfo={}),null!=(i=e.__FEDERATION__).__SHARE__||(i.__SHARE__={}),null!=(o=e.__FEDERATION__).__MANIFEST_LOADING__||(o.__MANIFEST_LOADING__={}),null!=(a=e.__FEDERATION__).__PRELOADED_MAP__||(a.__PRELOADED_MAP__=new Map)}function setGlobalFederationInstance(e){CurrentGlobal.__FEDERATION__.__INSTANCES__.push(e)}function getGlobalFederationConstructor(){return CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function setGlobalFederationConstructor(e,t=isDebugMode()){t&&(CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="0.16.0")}function getInfoWithoutType(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};for(let r of Object.keys(e)){let[n,i]=r.split(":"),o=`${n}:${t}`,a=e[o];if(a)return{value:a,key:o}}return{value:void 0,key:t}}throw Error("key must be string")}setGlobalDefaultVal(CurrentGlobal),setGlobalDefaultVal(nativeGlobal);let getGlobalSnapshot=()=>nativeGlobal.__FEDERATION__.moduleInfo,getTargetSnapshotInfoByModuleInfo=(e,t)=>{let r=getInfoWithoutType(t,getFMId(e)).value;if(r&&!r.version&&"version"in e&&e.version&&(r.version=e.version),r)return r;if("version"in e&&e.version){let{version:t}=e,r=getFMId(_object_without_properties_loose(e,["version"])),n=getInfoWithoutType(nativeGlobal.__FEDERATION__.moduleInfo,r).value;if((null==n?void 0:n.version)===t)return n}},getGlobalSnapshotInfoByModuleInfo=e=>getTargetSnapshotInfoByModuleInfo(e,nativeGlobal.__FEDERATION__.moduleInfo),setGlobalSnapshotInfoByModuleInfo=(e,t)=>{let r=getFMId(e);return nativeGlobal.__FEDERATION__.moduleInfo[r]=t,nativeGlobal.__FEDERATION__.moduleInfo},addGlobalSnapshot=e=>(nativeGlobal.__FEDERATION__.moduleInfo=_extends$2({},nativeGlobal.__FEDERATION__.moduleInfo,e),()=>{for(let t of Object.keys(e))delete nativeGlobal.__FEDERATION__.moduleInfo[t]}),getRemoteEntryExports=(e,t)=>{let r=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:r,entryExports:CurrentGlobal[r]}},getGlobalHostPlugins=()=>nativeGlobal.__FEDERATION__.__GLOBAL_PLUGIN__,getPreloaded=e=>CurrentGlobal.__FEDERATION__.__PRELOADED_MAP__.get(e),setPreloaded=e=>CurrentGlobal.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),DEFAULT_SCOPE="default",DEFAULT_REMOTE_TYPE="global",buildIdentifier="[0-9A-Za-z-]+",build=`(?:\\+(${buildIdentifier}(?:\\.${buildIdentifier})*))`,numericIdentifier="0|[1-9]\\d*",numericIdentifierLoose="[0-9]+",nonNumericIdentifier="\\d*[a-zA-Z-][a-zA-Z0-9-]*",preReleaseIdentifierLoose=`(?:${numericIdentifierLoose}|${nonNumericIdentifier})`,preReleaseLoose=`(?:-?(${preReleaseIdentifierLoose}(?:\\.${preReleaseIdentifierLoose})*))`,preReleaseIdentifier=`(?:${numericIdentifier}|${nonNumericIdentifier})`,preRelease=`(?:-(${preReleaseIdentifier}(?:\\.${preReleaseIdentifier})*))`,xRangeIdentifier=`${numericIdentifier}|x|X|\\*`,xRangePlain=`[v=\\s]*(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:\\.(${xRangeIdentifier})(?:${preRelease})?${build}?)?)?`,hyphenRange=`^\\s*(${xRangePlain})\\s+-\\s+(${xRangePlain})\\s*$`,mainVersionLoose=`(${numericIdentifierLoose})\\.(${numericIdentifierLoose})\\.(${numericIdentifierLoose})`,loosePlain=`[v=\\s]*${mainVersionLoose}${preReleaseLoose}?${build}?`,gtlt="((?:<|>)?=?)",comparatorTrim=`(\\s*)${gtlt}\\s*(${loosePlain}|${xRangePlain})`,loneTilde="(?:~>?)",tildeTrim=`(\\s*)${loneTilde}\\s+`,loneCaret="(?:\\^)",caretTrim=`(\\s*)${loneCaret}\\s+`,star="(<|>)?=?\\s*\\*",caret=`^${loneCaret}${xRangePlain}$`,mainVersion=`(${numericIdentifier})\\.(${numericIdentifier})\\.(${numericIdentifier})`,fullPlain=`v?${mainVersion}${preRelease}?${build}?`,tilde=`^${loneTilde}${xRangePlain}$`,xRange=`^${gtlt}\\s*${xRangePlain}$`,comparator=`^${gtlt}\\s*(${fullPlain})$|^$`,gte0="^\\s*>
3=\\s*0.0.0\\s*$";function parseRegex(e){return new RegExp(e)}function isXVersion(e){return!e||"x"===e.toLowerCase()||"*"===e}function pipe(...e){return t=>e.reduce((e,t)=>t(e),t)}function extractComparator(e){return e.match(parseRegex(comparator))}function combineVersion(e,t,r,n){let i=`${e}.${t}.${r}`;return n?`${i}-${n}`:i}function parseHyphen(e){return e.replace(parseRegex(hyphenRange),(e,t,r,n,i,o,a,s,l,u,c,d)=>`${t=isXVersion(r)?"":isXVersion(n)?`>=${r}.0.0`:isXVersion(i)?`>=${r}.${n}.0`:`>=${t}`} ${s=isXVersion(l)?"":isXVersion(u)?`<${Number(l)+1}.0.0-0`:isXVersion(c)?`<${l}.${Number(u)+1}.0-0`:d?`<=${l}.${u}.${c}-${d}`:`<=${s}`}`.trim())}function parseComparatorTrim(e){return e.replace(parseRegex(comparatorTrim),"$1$2$3")}function parseTildeTrim(e){return e.replace(parseRegex(tildeTrim),"$1~")}function parseCaretTrim(e){return e.replace(parseRegex(caretTrim),"$1^")}function parseCarets(e){return e.trim().split(/\s+/).map(e=>e.replace(parseRegex(caret),(e,t,r,n,i)=>isXVersion(t)?"":isXVersion(r)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:isXVersion(n)?"0"===t?`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.0 <${Number(t)+1}.0.0-0`:i?"0"===t?"0"===r?`>=${t}.${r}.${n}-${i} <${t}.${r}.${Number(n)+1}-0`:`>=${t}.${r}.${n}-${i} <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.${n}-${i} <${Number(t)+1}.0.0-0`:"0"===t?"0"===r?`>=${t}.${r}.${n} <${t}.${r}.${Number(n)+1}-0`:`>=${t}.${r}.${n} <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.${n} <${Number(t)+1}.0.0-0`)).join(" ")}function parseTildes(e){return e.trim().split(/\s+/).map(e=>e.replace(parseRegex(tilde),(e,t,r,n,i)=>isXVersion(t)?"":isXVersion(r)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:isXVersion(n)?`>=${t}.${r}.0 <${t}.${Number(r)+1}.0-0`:i?`>=${t}.${r}.${n}-${i} <${t}.${Number(r)+1}.0-0`:`>=${t}.${r}.${n} <${t}.${Number(r)+1}.0-0`)).join(" ")}function parseXRanges(e){return e.split(/\s+/).map(e=>e.trim().replace(parseRegex(xRange),(e,t,r,n,i,o)=>{let a=isXVersion(r),s=a||isXVersion(n),l=s||isXVersion(i);return"="===t&&l&&(t=""),o="",a?">"===t||"<"===t?"<0.0.0-0":"*":t&&l?(s&&(n=0),i=0,">"===t?(t=">=",s?(r=Number(r)+1,n=0):n=Number(n)+1,i=0):"<="===t&&(t="<",s?r=Number(r)+1:n=Number(n)+1),"<"===t&&(o="-0"),`${t+r}.${n}.${i}${o}`):s?`>=${r}.0.0${o} <${Number(r)+1}.0.0-0`:l?`>=${r}.${n}.0${o} <${r}.${Number(n)+1}.0-0`:e})).join(" ")}function parseStar(e){return e.trim().replace(parseRegex(star),"")}function parseGTE0(e){return e.trim().replace(parseRegex(gte0),"")}function compareAtom(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function comparePreRelease(e,t){let{preRelease:r}=e,{preRelease:n}=t;if(void 0===r&&n)return 1;if(r&&void 0===n)return -1;if(void 0===r&&void 0===n)return 0;for(let e=0,t=r.length;e<=t;e++){let t=r[e],i=n[e];if(t!==i)return void 0===t&&void 0===i?0:t?i?compareAtom(t,i):-1:1}return 0}function compareVersion(e,t){return compareAtom(e.major,t.major)||compareAtom(e.minor,t.minor)||compareAtom(e.patch,t.patch)||comparePreRelease(e,t)}function eq(e,t){return e.version===t.version}function compare(e,t){switch(e.operator){case"":case"=":return eq(e,t);case">":return 0>compareVersion(e,t);case">=":return eq(e,t)||0>compareVersion(e,t);case"<":return compareVersion(e,t)>0;case"<=":return eq(e,t)||compareVersion(e,t)>0;case void 0:return!0;default:return!1}}function parseComparatorString(e){return pipe(parseCarets,parseTildes,parseXRanges,parseStar)(e)}function parseRange(e){return pipe(parseHyphen,parseComparatorTrim,parseTildeTrim,parseCaretTrim)(e.trim()).split(/\s+/).join(" ")}function satisfy(e,t){if(!e)return!1;let r=extractComparator(e);if(!r)return!1;let[,n,,i,o,a,s]=r,l={operator:n,version:combineVersion(i,o,a,s),major:i,minor:o,patch:a,preRelease:null==s?void 0:s.split(".")};for(let e of t.split("||")){let t=e.trim();if(!t||"*"===t||"x"===t)return!0;try{let e=parseRange(t);if(!e.trim())return!0;let r=e.split(" ").map(e=>parseComparatorString(e)).join(" ");if(!r.trim())return!0;let n=r.split(/\s+/).map(e=>parseGTE0(e)).filter(Boolean);if(0===n.length)continue;let i=!0;for(let e of n){let t=extractComparator(e);if(!t){i=!1;break}let[,r,,n,o,a,s]=t;if(!compare({operator:r,version:combineVersion(n,o,a,s),major:n,minor:o,patch:a,preRelease:null==s?void 0:s.split(".")},l)){i=!1;break}}if(i)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}function formatShare(e,t,r,n){var i,o,a;let s;return s="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve(()=>{throw Error(`Can not get shared '${r}'!`)}),_extends$2({deps:[],useIn:[],from:t,loading:null},e,{shareConfig:_extends$2({requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1},e.shareConfig),get:s,loaded:!(!(null==e?void 0:e.loaded)&&!("lib"in e))||void 0,version:null!=(i=e.version)?i:"0",scope:Array.isArray(e.scope)?e.scope:[null!=(o=e.scope)?o:"default"],strategy:(null!=(a=e.strategy)?a:n)||"version-first"})}function formatShareConfigs(e,t){let r=t.shared||{},n=t.name,i=Object.keys(r).reduce((e,i)=>{let o=arrayOptions(r[i]);return e[i]=e[i]||[],o.forEach(r=>{e[i].push(formatShare(r,n,i,t.shareStrategy))}),e},{}),o=_extends$2({},e.shared);
3return Object.keys(i).forEach(e=>{o[e]?i[e].forEach(t=>{o[e].find(e=>e.version===t.version)||o[e].push(t)}):o[e]=i[e]}),{shared:o,shareInfos:i}}function versionLt(e,t){let r=e=>{if(!Number.isNaN(Number(e))){let t=e.split("."),r=e;for(let e=0;e<3-t.length;e++)r+=".0";return r}return e};return!!satisfy(r(e),`<=${r(t)}`)}let findVersion=(e,t)=>{let r=t||function(e,t){return versionLt(e,t)};return Object.keys(e).reduce((e,t)=>e?r(e,t)||"0"===e?t:e:t,0)},isLoaded=e=>!!e.loaded||"function"==typeof e.lib,isLoading=e=>!!e.loading;function findSingletonVersionOrderByVersion(e,t,r){let n=e[t][r];return findVersion(e[t][r],function(e,t){return!isLoaded(n[e])&&versionLt(e,t)})}function findSingletonVersionOrderByLoaded(e,t,r){let n=e[t][r];return findVersion(e[t][r],function(e,t){let r=e=>isLoaded(e)||isLoading(e);return r(n[t])?!r(n[e])||!!versionLt(e,t):!r(n[e])&&versionLt(e,t)})}function getFindShareFunction(e){return"loaded-first"===e?findSingletonVersionOrderByLoaded:findSingletonVersionOrderByVersion}function getRegisteredShare(e,t,r,n){if(!e)return;let{shareConfig:i,scope:o=DEFAULT_SCOPE,strategy:a}=r;for(let s of Array.isArray(o)?o:[o])if(i&&e[s]&&e[s][t]){let{requiredVersion:o}=i,l=getFindShareFunction(a)(e,s,t),u=()=>{if(i.singleton){if("string"==typeof o&&!satisfy(l,o)){let n=`Version ${l} from ${l&&e[s][t][l].from} of shared singleton module ${t} does not satisfy the requirement of ${r.from} which needs ${o})`;i.strictVersion?error(n):warn(n)}return e[s][t][l]}if(!1===o||"*"===o||satisfy(l,o))return e[s][t][l];for(let[r,n]of Object.entries(e[s][t]))if(satisfy(r,o))return n},c={shareScopeMap:e,scope:s,pkgName:t,version:l,GlobalFederation:Global.__FEDERATION__,resolver:u};
3return(n.emit(c)||c).resolver()}}function getGlobalShareScope(){return Global.__FEDERATION__.__SHARE__}function getTargetSharedOptions(e){var t;let{pkgName:r,extraOptions:n,shareInfos:i}=e;return Object.assign({},(null!=(t=null==n?void 0:n.resolver)?t:e=>{if(!e)return;let t={};e.forEach(e=>{t[e.version]=e});let r=findVersion(t,function(e,r){return!isLoaded(t[e])&&versionLt(e,r)});return t[r]})(i[r]),null==n?void 0:n.customShareInfo)}function getBuilderId$1(){return"u">typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:""}function matchRemoteWithNameAndExpose(e,t){for(let r of e){let e=t.startsWith(r.name),n=t.replace(r.name,"");if(e){if(n.startsWith("/"))return n=`.${n}`,{pkgNameOrAlias:r.name,expose:n,remote:r};if(""===n)return{pkgNameOrAlias:r.name,expose:".",remote:r}}let i=r.alias&&t.startsWith(r.alias),o=r.alias&&t.replace(r.alias,"");if(r.alias&&i){if(o&&o.startsWith("/"))return o=`.${o}`,{pkgNameOrAlias:r.alias,expose:o,remote:r};if(""===o)return{pkgNameOrAlias:r.alias,expose:".",remote:r}}}}function matchRemote(e,t){for(let r of e)if(t===r.name||r.alias&&t===r.alias)return r}function registerPlugins(e,t){let r=getGlobalHostPlugins();return r.length>0&&r.forEach(t=>{(null==e?void 0:e.find(e=>e.name!==t.name))&&e.push(t)}),e&&e.length>0&&e.forEach(e=>{t.forEach(t=>{t.applyPlugin(e)})}),e}let importCallback=".then(callbacks[0]).catch(callbacks[1])";async function loadEsmEntry({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):"u">typeof FEDERATION_ALLOW_NEW_FUNCTION?Function("callbacks",`import("${e}")${importCallback}`)([r,n]):__webpack_require__(69997)(e).then(r).catch(n)}catch(e){n(e)}})}async function loadSystemJsEntry({entry:e,remoteEntryExports:t}){return new Promise((r,n)=>{try{t?r(t):Function("callbacks",`System.import("${e}")${importCallback}`)([r,n])}catch(e){n(e)}})}function handleRemoteEntryLoaded(e,t,r){let{remoteEntryKey:n,entryExports:i}=getRemoteEntryExports(e,t);return assert(i,getShortErrorMsg(RUNTIME_001,runtimeDescMap,{remoteName:e,remoteEntryUrl:r,remoteEntryKey:n})),i}async function loadEntryScript({name:e,globalName:t,entry:r,loaderHook:n}){let{entryExports:i}=getRemoteEntryExports(e,t);return i||loadScript(r,{attrs:{},createScriptHook:(e,t)=>{let r=n.lifecycle.createScript.emit({url:e,attrs:t});if(r)return r instanceof HTMLScriptElement||"script"in r||"timeout"in r?r:void 0}}).then(()=>handleRemoteEntryLoaded(e,t,r)).catch(t=>{throw assert(void 0,getShortErrorMsg(RUNTIME_008,runtimeDescMap,{remoteName:e,resourceUrl:r})),t})}async function loadEntryDom({remoteInfo:e,remoteEntryExports:t,loaderHook:r}){let{entry:n,entryGlobalName:i,name:o,type:a}=e;switch(a){case"esm":case"module":return loadEsmEntry({entry:n,remoteEntryExports:t});case"system":return loadSystemJsEntry({entry:n,remoteEntryExports:t});default:return loadEntryScript({entry:n,globalName:i,name:o,loaderHook:r})}}async function loadEntryNode({remoteInfo:e,loaderHook:t}){let{entry:r,entryGlobalName:n,name:i,type:o}=e,{entryExports:a}=getRemoteEntryExports(i,n);return a||loadScriptNode(r,{attrs:{name:i,globalName:n,type:o},loaderHook:{createScriptHook:(e,r={})=>{let n=t.lifecycle.createScript.emit({url:e,attrs:r});if(n)return"url"in n?n:void 0}}}).then(()=>handleRemoteEntryLoaded(i,n,r)).catch(e=>{throw e})}function getRemoteEntryUniqueKey(e){let{entry:t,name:r}=e;return composeKeyWithSeparator(r,t)}async function getRemoteEntry({origin:e,remoteEntryExports:t,remoteInfo:r}){let n=getRemoteEntryUniqueKey(r);if(t)return t;if(!globalLoading[n]){let i=e.remoteHandler.hooks.lifecycle.loadEntry,o=e.loaderHook;globalLoading[n]=i.emit({loaderHook:o,remoteInfo:r,remoteEntryExports:t}).then(e=>e||(("u">typeof ENV_TARGET?"web"===ENV_TARGET:isBrowserEnv())?loadEntryDom({remoteInfo:r,remoteEntryExports:t,loaderHook:o}):loadEntryNode({remoteInfo:r,loaderHook:o})))}return globalLoading[n]}function getRemoteInfo(e){return _extends$2({},e,{entry:"entry"in e?e.entry:"",type:e.type||DEFAULT_REMOTE_TYPE,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||DEFAULT_SCOPE})}let Module=class{async getEntry(){let e;if(this.remoteEntryExports)return this.remoteEntryExports;try{e=await getRemoteEntry({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports})}catch(r){let t=getRemoteEntryUniqueKey(this.remoteInfo);e=await this.host.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:getRemoteEntry,origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,globalLoading:globalLoading,uniqueKey:t})}return assert(e,`remoteEntryExports is undefined 4 ${safeToString(this.remoteInfo)}`),this.remoteEntryExports=e,this.remoteEntryExports}async get(e,t,r,n){let i,{loadFactory:o=!0}=r||{loadFactory:!0},a=await this.getEntry();if(!this.inited){let t=this.host.shareScopeMap,r=Array.isArray(this.remoteInfo.shareScope)?this.remoteInfo.shareScope:[this.remoteInfo.shareScope];
4r.length||r.push("default"),r.forEach(e=>{t[e]||(t[e]={})});let i=t[r[0]],o=[],s={version:this.remoteInfo.version||"",shareScopeKeys:Array.isArray(this.remoteInfo.shareScope)?r:this.remoteInfo.shareScope||"default"};Object.defineProperty(s,"shareScopeMap",{value:t,enumerable:!1});let l=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:i,remoteEntryInitOptions:s,initScope:o,remoteInfo:this.remoteInfo,origin:this.host});void 0===(null==a?void 0:a.init)&&error(getShortErrorMsg(RUNTIME_002,runtimeDescMap,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName})),await a.init(l.shareScope,l.initScope,l.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit(_extends$2({},l,{id:e,remoteSnapshot:n,remoteEntryExports:a}))}this.lib=a,this.inited=!0,(i=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:a,expose:t,moduleInfo:this.remoteInfo}))||(i=await a.get(t)),assert(i,`${getFMId(this.remoteInfo)} remote don't export ${t}.`);let s=processModuleAlias(this.remoteInfo.name,t),l=this.wraperFactory(i,s);return o?await l():l}wraperFactory(e,t){function r(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return e instanceof Promise?async()=>{let n=await e();return r(n,t),n}:()=>{let n=e();return r(n,t),n}}constructor({remoteInfo:e,host:t}){this.inited=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}};class SyncHook{on(e){"function"==typeof e&&this.listeners.add(e)}once(e){let t=this;this.on(function r(...n){return t.remove(r),e.apply(null,n)})}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach(r=>{t=r(...e)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}}class AsyncHook extends SyncHook{emit(...e){let t,r=Array.from(this.listeners);if(r.length>0){let n=0,i=t=>!1!==t&&(n<r.length?Promise.resolve(r[n++].apply(null,e)).then(i):t);t=i()}return Promise.resolve(t)}}function checkReturnData(e,t){if(!isObject(t))return!1;if(e!==t){for(let r in e)if(!(r in t))return!1}return!0}class SyncWaterfallHook extends SyncHook{emit(e){for(let t of(isObject(e)||error(`The data for the "${this.type}" hook should be an object.`),this.listeners))try{let r=t(e);if(!checkReturnData(e,r)){this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}e=r}catch(e){warn(e),this.onerror(e)}return e}constructor(e){super(),this.onerror=error,this.type=e}}class AsyncWaterfallHook extends SyncHook{emit(e){isObject(e)||error(`The response data for the "${this.type}" hook must be an object.`);let t=Array.from(this.listeners);if(t.length>0){let r=0,n=t=>(warn(t),this.onerror(t),e),i=o=>{if(checkReturnData(e,o)){if(e=o,r<t.length)try{return Promise.resolve(t[r++](e)).then(i,n)}catch(e){return n(e)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(i(e))}return Promise.resolve(e)}constructor(e){super(),this.onerror=error,this.type=e}}class PluginSystem{applyPlugin(e){assert(isPlainObject(e),"Plugin configuration is invalid.");let t=e.name;assert(t,"A name must be provided by the plugin."),this.registerPlugins[t]||(this.registerPlugins[t]=e,Object.keys(this.lifecycle).forEach(t=>{let r=e[t];r&&this.lifecycle[t].on(r)}))}removePlugin(e){assert(e,"A name is required.");let t=this.registerPlugins[e];assert(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(e=>{"name"!==e&&this.lifecycle[e].remove(t[e])})}inherit({lifecycle:e,registerPlugins:t}){Object.keys(e).forEach(t=>{assert(!this.lifecycle[t],`The hook "${t}" has a conflict and cannot be inherited.`),this.lifecycle[t]=e[t]}),Object.keys(t).forEach(e=>{assert(!this.registerPlugins[e],`The plugin "${e}" has a conflict and cannot be inherited.`),this.applyPlugin(t[e])})}constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}}function defaultPreloadArgs(e){return _extends$2({resourceCategory:"sync",share:!0,depsRemote:!0,prefetchInterface:!1},e)}function formatPreloadArgs(e,t){return t.map(t=>{let r=matchRemote(e,t.nameOrAlias);return assert(r,`Unable to preload ${t.nameOrAlias} as it is not included in ${!r&&safeToString({remoteInfo:r,remotes:e})}`),{remote:r,preloadConfig:defaultPreloadArgs(t)}})}function normalizePreloadExposes(e){return e?e.map(e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e):[]}function preloadAssets(e,t,r,n=!0){let{cssAssets:i,jsAssetsWithoutEntry:o,entryAssets:a}=r;
4if(t.options.inBrowser){if(a.forEach(r=>{let{moduleInfo:n}=r,i=t.moduleCache.get(e.name);getRemoteEntry(i?{origin:t,remoteInfo:n,remoteEntryExports:i.remoteEntryExports}:{origin:t,remoteInfo:n,remoteEntryExports:void 0})}),n){let e={rel:"preload",as:"style"};i.forEach(r=>{let{link:n,needAttach:i}=createLink({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});i&&document.head.appendChild(n)})}else{let e={rel:"stylesheet",type:"text/css"};i.forEach(r=>{let{link:n,needAttach:i}=createLink({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n},needDeleteLink:!1});i&&document.head.appendChild(n)})}if(n){let e={rel:"preload",as:"script"};o.forEach(r=>{let{link:n,needAttach:i}=createLink({url:r,cb:()=>{},attrs:e,createLinkHook:(e,r)=>{let n=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:r});if(n instanceof HTMLLinkElement)return n}});i&&document.head.appendChild(n)})}else{let r={fetchpriority:"high",type:"module"===(null==e?void 0:e.type)?"module":"text/javascript"};o.forEach(e=>{let{script:n,needAttach:i}=createScript({url:e,cb:()=>{},attrs:r,createScriptHook:(e,r)=>{let n=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:r});if(n instanceof HTMLScriptElement)return n},needDeleteScript:!0});i&&document.head.appendChild(n)})}}}function assignRemoteInfo(e,t){let r=getRemoteEntryInfoFromSnapshot(t);r.url||error(`The attribute remoteEntry of ${e.name} must not be undefined.`);let n=getResourceUrl(t,r.url);isBrowserEnv()||n.startsWith("http")||(n=`https:${n}`),e.type=r.type,e.entryGlobalName=r.globalName,e.entry=n,e.version=t.version,e.buildVersion=t.buildVersion}function snapshotPlugin(){return{name:"snapshot-plugin",async afterResolve(e){let{remote:t,pkgNameOrAlias:r,expose:n,origin:i,remoteInfo:o,id:a}=e;if(!isRemoteInfoWithEntry(t)||!isPureRemoteEntry(t)){let{remoteSnapshot:s,globalSnapshot:l}=await i.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:a});assignRemoteInfo(o,s);let u={remote:t,preloadConfig:{nameOrAlias:r,exposes:[n],resourceCategory:"sync",share:!1,depsRemote:!1}},c=await i.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:i,preloadOptions:u,remoteInfo:o,remote:t,remoteSnapshot:s,globalSnapshot:l});return c&&preloadAssets(o,i,c,!1),_extends$2({},e,{remoteSnapshot:s})}return e}}}function splitId(e){let t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function traverseModuleInfo(e,t,r,n,i={},o){let{value:a}=getInfoWithoutType(e,getFMId(t)),s=o||a;if(s&&!isManifestProvider(s)&&(r(s,t,n),s.remotesInfo))for(let t of Object.keys(s.remotesInfo)){if(i[t])continue;i[t]=!0;let n=splitId(t),o=s.remotesInfo[t];traverseModuleInfo(e,{name:n.name,version:o.matchedVersion},r,!1,i,void 0)}}let isExisted=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function generatePreloadAssets(e,t,r,n,i){let o=[],a=[],s=[],l=new Set,u=new Set,{options:c}=e,{preloadConfig:d}=t,{depsRemote:p}=d;if(traverseModuleInfo(n,r,(t,r,n)=>{var i;let l;if(n)l=d;else if(Array.isArray(p)){let e=p.find(e=>e.nameOrAlias===r.name||e.nameOrAlias===r.alias);if(!e)return;l=defaultPreloadArgs(e)}else{if(!0!==p)return;l=d}let u=getResourceUrl(t,getRemoteEntryInfoFromSnapshot(t).url);u&&s.push({name:r.name,moduleInfo:{name:r.name,entry:u,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:r.name,shareScope:"",version:"version"in t?t.version:void 0},url:u});let c="modules"in t?t.modules:[],f=normalizePreloadExposes(l.exposes);function h(e){let r=e.map(e=>getResourceUrl(t,e));return l.filter?r.filter(l.filter):r}if(f.length&&"modules"in t&&(c=null==t||null==(i=t.modules)?void 0:i.reduce((e,t)=>(-1!==(null==f?void 0:f.indexOf(t.moduleName))&&e.push(t),e),[])),c){let n=c.length;for(let i=0;i<n;i++){let n=c[i],s=`${r.name}/${n.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===n.moduleName?r.name:s,name:r.name,remoteSnapshot:t,preloadConfig:l,remote:r,origin:e}),getPreloaded(s)||("all"===l.resourceCategory?(o.push(...h(n.assets.css.async)),o.push(...h(n.assets.css.sync)),a.push(...h(n.assets.js.async))):(l.resourceCategory="sync",o.push(...h(n.assets.css.sync))),a.push(...h(n.assets.js.sync)),setPreloaded(s))}}},!0,{},i),i.shared){let t=(t,r)=>{let n=getRegisteredShare(e.shareScopeMap,r.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare);
4n&&"function"==typeof n.lib&&(r.assets.js.sync.forEach(e=>{l.add(e)}),r.assets.css.sync.forEach(e=>{u.add(e)}))};i.shared.forEach(e=>{var r;let n=null==(r=c.shared)?void 0:r[e.sharedName];if(!n)return;let i=e.version?n.find(t=>t.version===e.version):n;i&&arrayOptions(i).forEach(r=>{t(r,e)})})}let f=a.filter(e=>!l.has(e)&&!isExisted("script",e));return{cssAssets:o.filter(e=>!u.has(e)&&!isExisted("link",e)),jsAssetsWithoutEntry:f,entryAssets:s.filter(e=>!isExisted("script",e.url))}}let generatePreloadAssetsPlugin=function(){return{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){let{origin:t,preloadOptions:r,remoteInfo:n,remote:i,globalSnapshot:o,remoteSnapshot:a}=e;return isBrowserEnv()?isRemoteInfoWithEntry(i)&&isPureRemoteEntry(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:n.name,entry:i.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(assignRemoteInfo(n,a),generatePreloadAssets(t,r,n,o,a)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}};function getGlobalRemoteInfo(e,t){let r=getGlobalSnapshotInfoByModuleInfo({name:t.name,version:t.options.version}),n=r&&"remotesInfo"in r&&r.remotesInfo&&getInfoWithoutType(r.remotesInfo,e.name).value;return n&&n.matchedVersion?{hostGlobalSnapshot:r,globalSnapshot:getGlobalSnapshot(),remoteSnapshot:getGlobalSnapshotInfoByModuleInfo({name:e.name,version:n.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:getGlobalSnapshot(),remoteSnapshot:getGlobalSnapshotInfoByModuleInfo({name:e.name,version:"version"in e?e.version:void 0})}}class SnapshotHandler{async loadRemoteSnapshotInfo({moduleInfo:e,id:t,expose:r}){let n,i,{options:o}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:o,moduleInfo:e});let a=getGlobalSnapshotInfoByModuleInfo({name:this.HostInstance.options.name,version:this.HostInstance.options.version});a||(a={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},addGlobalSnapshot({[this.HostInstance.options.name]:a})),a&&"remotesInfo"in a&&!getInfoWithoutType(a.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(a.remotesInfo=_extends$2({},null==a?void 0:a.remotesInfo,{[e.name]:{matchedVersion:"version"in e?e.version:e.entry}}));let{hostGlobalSnapshot:s,remoteSnapshot:l,globalSnapshot:u}=this.getGlobalRemoteInfo(e),{remoteSnapshot:c,globalSnapshot:d}=await this.hooks.lifecycle.loadSnapshot.emit({options:o,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:l,globalSnapshot:u});if(c)if(isManifestProvider(c)){let t=isBrowserEnv()?c.remoteEntry:c.ssrRemoteEntry||c.remoteEntry||"",r=await this.getManifestJson(t,e,{});n=r,i=setGlobalSnapshotInfoByModuleInfo(_extends$2({},e,{entry:t}),r)}else{let{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:c,from:"global"});n=t,i=d}else if(isRemoteInfoWithEntry(e)){let t=await this.getManifestJson(e.entry,e,{}),r=setGlobalSnapshotInfoByModuleInfo(e,t),{remoteSnapshot:o}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:t,from:"global"});n=o,i=r}else error(getShortErrorMsg(RUNTIME_007,runtimeDescMap,{hostName:e.name,hostVersion:e.version,globalSnapshot:JSON.stringify(d)}));
4return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:o,moduleInfo:e,remoteSnapshot:n}),{remoteSnapshot:n,globalSnapshot:i}}getGlobalRemoteInfo(e){return getGlobalRemoteInfo(e,this.HostInstance)}async getManifestJson(e,t,r){let n=async()=>{let r=this.manifestCache.get(e);if(r)return r;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{});t&&t instanceof Response||(t=await fetch(e,{})),r=await t.json()}catch(n){(r=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"afterResolve",origin:this.HostInstance}))||(delete this.manifestLoading[e],error(getShortErrorMsg(RUNTIME_003,runtimeDescMap,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${n}`)))}return assert(r.metaData&&r.exposes&&r.shared,`${e} is not a federation manifest`),this.manifestCache.set(e,r),r},i=async()=>{let r=await n(),i=generateSnapshotFromManifest(r,{version:e}),{remoteSnapshot:o}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:r,remoteSnapshot:i,manifestUrl:e,from:"manifest"});return o};return this.manifestLoading[e]||(this.manifestLoading[e]=i().then(e=>e)),this.manifestLoading[e]}constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new PluginSystem({beforeLoadRemoteSnapshot:new AsyncHook("beforeLoadRemoteSnapshot"),loadSnapshot:new AsyncWaterfallHook("loadGlobalSnapshot"),loadRemoteSnapshot:new AsyncWaterfallHook("loadRemoteSnapshot"),afterLoadSnapsh
4ot:new AsyncWaterfallHook("afterLoadSnapshot")}),this.manifestLoading=Global.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}}class SharedHandler{registerShared(e,t){let{shareInfos:r,shared:n}=formatShareConfigs(e,t);return Object.keys(r).forEach(e=>{r[e].forEach(r=>{!getRegisteredShare(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare)&&r&&r.lib&&this.setShared({pkgName:e,lib:r.lib,get:r.get,loaded:!0,shared:r,from:t.name})})}),{shareInfos:r,shared:n}}async loadShare(e,t){let{host:r}=this,n=getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared});(null==n?void 0:n.scope)&&await Promise.all(n.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:n.strategy}))}));let{shareInfo:i}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:n,shared:r.options.shared,origin:r});assert(i,`Cannot find ${e} Share in the ${r.options.name}. Please ensure that the ${e} Share parameters have been injected`);let o=getRegisteredShare(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare),a=e=>{e.useIn||(e.useIn=[]),addUniqueItem(e.useIn,r.options.name)};if(o&&o.lib)return a(o),o.lib;if(o&&o.loading&&!o.loaded){let e=await o.loading;return o.loaded=!0,o.lib||(o.lib=e),a(o),e}if(o){let t=(async()=>{let t=await o.get();i.lib=t,i.loaded=!0,a(i);let r=getRegisteredShare(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare);return r&&(r.lib=t,r.loaded=!0),t})();return this.setShared({pkgName:e,loaded:!1,shared:o,from:r.options.name,lib:null,loading:t}),t}{if(null==t?void 0:t.customShareInfo)return!1;let n=(async()=>{let t=await i.get();i.lib=t,i.loaded=!0,a(i);let r=getRegisteredShare(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare);return r&&(r.lib=t,r.loaded=!0),t})();return this.setShared({pkgName:e,loaded:!1,shared:i,from:r.options.name,lib:null,loading:n}),n}}initializeSharing(e=DEFAULT_SCOPE,t){let{host:r}=this,n=null==t?void 0:t.from,i=null==t?void 0:t.strategy,o=null==t?void 0:t.initScope,a=[];if("build"!==n){let{initTokens:t}=this;o||(o=[]);let r=t[e];if(r||(r=t[e]={from:this.host.name}),o.indexOf(r)>=0)return a;o.push(r)}let s=this.shareScopeMap,l=r.options.name;s[e]||(s[e]={});let u=s[e],c=async t=>{var n;let{module:i}=await r.remoteHandler.getRemoteModuleAndOptions({id:t});if(i.getEntry){let a;try{a=await i.getEntry()}catch(e){a=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:t,error:e,from:"runtime",lifecycle:"beforeLoadShare",origin:r})}i.inited||(await ((n=a)&&n.init&&n.init(s[e],o)),i.inited=!0)}};return Object.keys(r.options.shared).forEach(t=>{r.options.shared[t].forEach(r=>{r.scope.includes(e)&&((e,t)=>{var r;let{version:n,eager:i}=t;u[e]=u[e]||{};let o=u[e],a=o[n],s=!!(a&&(a.eager||(null==(r=a.shareConfig)?void 0:r.eager)));(!a||"loaded-first"!==a.strategy&&!a.loaded&&(!i!=!s?i:l>a.from))&&(o[n]=t)})(t,r)})}),"version-first"!==r.options.shareStrategy&&"version-first"!==i||r.options.remotes.forEach(t=>{t.shareScope===e&&a.push(c(t.name))}),a}loadShareSync(e,t){let{host:r}=this,n=getTargetSharedOptions({pkgName:e,extraOptions:t,shareInfos:r.options.shared});(null==n?void 0:n.scope)&&n.scope.forEach(e=>{this.initializeSharing(e,{strategy:n.strategy})});let i=getRegisteredShare(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare),o=e=>{e.useIn||(e.useIn=[]),addUniqueItem(e.useIn,r.options.name)};if(i){if("function"==typeof i.lib)return o(i),i.loaded||(i.loaded=!0,i.from===r.options.name&&(n.loaded=!0)),i.lib;if("function"==typeof i.get){let t=i.get();if(!(t instanceof Promise))return o(i),this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:t,shared:i}),t}}if(n.lib)return n.loaded||(n.loaded=!0),n.lib;if(n.get){let i=n.get();if(i instanceof Promise)throw Error(getShortErrorMsg("build"===(null==t?void 0:t.from)?RUNTIME_005:RUNTIME_006,runtimeDescMap,{hostName:r.options.name,sharedPkgName:e}));return n.lib=i,this.setShared({pkgName:e,loaded:!0,from:r.options.name,lib:n.lib,shared:n}),n.lib}throw Error(getShortErrorMsg(RUNTIME_006,runtimeDescMap,{hostName:r.options.name,sharedPkgName:e}))}initShareScopeMap(e,t,r={}){let{host:n}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:n.options,origin:n,scopeName:e,hostShareScopeMap:r.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:r,lib:n,loading:i,loaded:o,get:a}){let{version:s,scope:l="default"}=t,u=_object_without_properties_loose(t,["version","scope"]);
4(Array.isArray(l)?l:[l]).forEach(t=>{if(this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][e]||(this.shareScopeMap[t][e]={}),!this.shareScopeMap[t][e][s])return this.shareScopeMap[t][e][s]=_extends$2({version:s,scope:["default"]},u,{lib:n,loaded:o,loading:i}),void(a&&(this.shareScopeMap[t][e][s].get=a));let r=this.shareScopeMap[t][e][s];i&&!r.loading&&(r.loading=i)})}_setGlobalShareScopeMap(e){let t=getGlobalShareScope(),r=e.id||e.name;r&&!t[r]&&(t[r]=this.shareScopeMap)}constructor(e){this.hooks=new PluginSystem({afterResolve:new AsyncWaterfallHook("afterResolve"),beforeLoadShare:new AsyncWaterfallHook("beforeLoadShare"),loadShare:new AsyncHook,resolveShare:new SyncWaterfallHook("resolveShare"),initContainerShareScopeMap:new SyncWaterfallHook("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}}class RemoteHandler{formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){let{remote:r,expose:n}=t,{name:i,alias:o}=r;if(this.idToRemoteMap[e]={name:r.name,expose:n},o&&e.startsWith(i)){let t=e.replace(i,o);this.idToRemoteMap[t]={name:r.name,expose:n}}else if(o&&e.startsWith(o)){let t=e.replace(o,i);this.idToRemoteMap[t]={name:r.name,expose:n}}}async loadRemote(e,t){let{host:r}=this;try{let{loadFactory:n=!0}=t||{loadFactory:!0},{module:i,moduleOptions:o,remoteMatchInfo:a}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:s,remote:l,expose:u,id:c,remoteSnapshot:d}=a,p=await i.get(c,u,t,d),f=await this.hooks.lifecycle.onLoad.emit({id:c,pkgNameOrAlias:s,expose:u,exposeModule:n?p:void 0,exposeModuleFactory:n?void 0:p,remote:l,options:o,moduleInstance:i,origin:r});return this.setIdToRemoteMap(e,a),"function"==typeof f?f:p}catch(o){let{from:n="runtime"}=t||{from:"runtime"},i=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:o,from:n,lifecycle:"onLoad",origin:r});if(!i)throw o;return i}}async preloadRemote(e){let{host:t}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});let r=formatPreloadArgs(t.options.remotes,e);await Promise.all(r.map(async e=>{let{remote:r}=e,n=getRemoteInfo(r),{globalSnapshot:i,remoteSnapshot:o}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:r}),a=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:e,remote:r,remoteInfo:n,globalSnapshot:i,remoteSnapshot:o});a&&preloadAssets(n,t,a)}))}registerRemotes(e,t){let{host:r}=this;e.forEach(e=>{this.registerRemote(e,r.options.remotes,{force:null==t?void 0:t.force})})}async getRemoteModuleAndOptions(e){let t,{host:r}=this,{id:n}=e;try{t=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:r.options,origin:r})}catch(e){if(!(t=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:r.options,origin:r,from:"runtime",error:e,lifecycle:"beforeRequest"})))throw e}let{id:i}=t,o=matchRemoteWithNameAndExpose(r.options.remotes,i);assert(o,getShortErrorMsg(RUNTIME_004,runtimeDescMap,{hostName:r.options.name,requestId:i}));let{remote:a}=o,s=getRemoteInfo(a),l=await r.sharedHandler.hooks.lifecycle.afterResolve.emit(_extends$2({id:i},o,{options:r.options,origin:r,remoteInfo:s})),{remote:u,expose:c}=l;assert(u&&c,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${i}.`);let d=r.moduleCache.get(u.name),p={host:r,remoteInfo:s};return d||(d=new Module(p),r.moduleCache.set(u.name,d)),{module:d,moduleOptions:p,remoteMatchInfo:l}}registerRemote(e,t,r){let{host:n}=this,i=()=>{if(e.alias){let r=t.find(t=>{var r;return e.alias&&(t.name.startsWith(e.alias)||(null==(r=t.alias)?void 0:r.startsWith(e.alias)))});assert(!r,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${r&&r.name} name or alias`)}"entry"in e&&isBrowserEnv()&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=DEFAULT_SCOPE),e.type||(e.type=DEFAULT_REMOTE_TYPE)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});let o=t.find(t=>t.name===e.name);if(o){let a=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];(null==r?void 0:r.force)&&(this.removeRemote(o),i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),warn$1(a.join(" ")))}else i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n})}removeRemote(e){try{let{host:r}=this,{name:n}=e,i=r.options.remotes.findIndex(e=>e.name===n);-1!==i&&r.options.remotes.splice(i,1);
4let o=r.moduleCache.get(e.name);if(o){var t;let n=o.remoteInfo,i=n.entryGlobalName;CurrentGlobal[i]&&((null==(t=Object.getOwnPropertyDescriptor(CurrentGlobal,i))?void 0:t.configurable)?delete CurrentGlobal[i]:CurrentGlobal[i]=void 0);let a=getRemoteEntryUniqueKey(o.remoteInfo);globalLoading[a]&&delete globalLoading[a],r.snapshotHandler.manifestCache.delete(n.entry);let s=n.buildVersion?composeKeyWithSeparator(n.name,n.buildVersion):n.name,l=CurrentGlobal.__FEDERATION__.__INSTANCES__.findIndex(e=>n.buildVersion?e.options.id===s:e.name===s);if(-1!==l){let e=CurrentGlobal.__FEDERATION__.__INSTANCES__[l];s=e.options.id||s;let t=getGlobalShareScope(),r=!0,i=[];Object.keys(t).forEach(e=>{let o=t[e];o&&Object.keys(o).forEach(t=>{let a=o[t];a&&Object.keys(a).forEach(o=>{let s=a[o];s&&Object.keys(s).forEach(a=>{let l=s[a];l&&"object"==typeof l&&l.from===n.name&&(l.loaded||l.loading?(l.useIn=l.useIn.filter(e=>e!==n.name),l.useIn.length?r=!1:i.push([e,t,o,a])):i.push([e,t,o,a]))})})})}),r&&(e.shareScopeMap={},delete t[s]),i.forEac
4h(([e,r,n,i])=>{var o,a,s;null==(s=t[e])||null==(a=s[r])||null==(o=a[n])||delete o[i]}),CurrentGlobal.__FEDERATION__.__INSTANCES__.splice(l,1)}let{hostGlobalSnapshot:u}=getGlobalRemoteInfo(e,r);if(u){let t=u&&"remotesInfo"in u&&u.remotesInfo&&getInfoWithoutType(u.remotesInfo,e.name).key;t&&(delete u.remotesInfo[t],Global.__FEDERATION__.__MANIFEST_LOADING__[t]&&delete Global.__FEDERATION__.__MANIFEST_LOADING__[t])}r.moduleCache.delete(e.name)}}catch(e){logger.log("removeRemote fail: ",e)}}constructor(e){this.hooks=new PluginSystem({beforeRegisterRemote:new SyncWaterfallHook("beforeRegisterRemote"),registerRemote:new SyncWaterfallHook("registerRemote"),beforeRequest:new AsyncWaterfallHook("beforeRequest"),onLoad:new AsyncHook("onLoad"),handlePreloadModule:new SyncHook("handlePreloadModule"),errorLoadRemote:new AsyncHook("errorLoadRemote"),beforePreloadRemote:new AsyncHook("beforePreloadRemote"),generatePreloadAssets:new AsyncHook("generatePreloadAssets"),afterPreloadRemote:new AsyncHook,loadEntry:new AsyncHook}),this.host=e,this.idToRemoteMap={}}}let USE_SNAPSHOT="boolean"!=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN||!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN;class FederationHost{initOptions(e){this.registerPlugins(e.plugins);let t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(e=DEFAULT_SCOPE,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,r){let n=new Module({host:this,remoteInfo:getRemoteInfo({name:e,entry:t})});return n.remoteEntryExports=r,this.moduleCache.set(e,n),n}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,r={}){this.sharedHandler.initShareScopeMap(e,t,r)}formatOptions(e,t){let{shared:r}=formatShareConfigs(e,t),{userOptions:n,options:i}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:r}),o=this.remoteHandler.formatAndRegisterRemote(i,n),{shared:a}=this.sharedHandler.registerShared(i,n),s=[...i.plugins];n.plugins&&n.plugins.forEach(e=>{s.includes(e)||s.push(e)});let l=_extends$2({},e,t,{plugins:s,remotes:o,shared:a});return this.hooks.lifecycle.init.emit({origin:this,options:l}),l}registerPlugins(e){let t=registerPlugins(e,[this.hooks,this.remoteHandler.hooks,this.sharedHandler.hooks,this.snapshotHandler.hooks,this.loaderHook,this.bridgeHook]);this.options.plugins=this.options.plugins.reduce((e,t)=>(t&&e&&!e.find(e=>e.name===t.name)&&e.push(t),e),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}constructor(e){this.hooks=new PluginSystem({beforeInit:new SyncWaterfallHook("beforeInit"),init:new SyncHook,beforeInitContainer:new AsyncWaterfallHook("beforeInitContainer"),initContainer:new AsyncWaterfallHook("initContainer")}),this.version="0.16.0",this.moduleCache=new Map,this.loaderHook=new PluginSystem({getModuleInfo:new SyncHook,createScript:new SyncHook,createLink:new SyncHook,fetch:new AsyncHook,loadEntryError:new AsyncHook,getModuleFactory:new AsyncHook}),this.bridgeHook=new PluginSystem({beforeBridgeRender:new SyncHook,afterBridgeRender:new SyncHook,beforeBridgeDestroy:new SyncHook,afterBridgeDestroy:new SyncHook});const t=USE_SNAPSHOT?[snapshotPlugin(),generatePreloadAssetsPlugin()]:[],r={id:getBuilderId$1(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:isBrowserEnv()};this.name=e.name,this.options=r,this.snapshotHandler=new SnapshotHandler(this),this.sharedHandler=new SharedHandler(this),this.remoteHandler=new RemoteHandler(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...r.plugins,...e.plugins||[]]),this.options=this.formatOptions(r,e)}}function getBuilderId(){return"u">typeof FEDERATION_BUILD_IDENTIFIER?FEDERATION_BUILD_IDENTIFIER:""}function getGlobalFederationInstance(e,t){let r=getBuilderId();return CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!(!r||n.options.id!==getBuilderId())||n.options.name===e&&!n.options.version&&!t||!(n.options.name!==e||!t||n.options.version!==t))}let FederationInstance=null;function init(e){let t=getGlobalFederationInstance(e.name,e.version);return t?(t.initOptions(e),FederationInstance||(FederationInstance=t),t):(setGlobalFederationInstance(FederationInstance=new(getGlobalFederationConstructor()||FederationHost)(e)),FederationInstance)}function loadRemote(...e){return assert(FederationInstance,"Please call init first"),FederationInstance.loadRemote.apply(FederationInstance,e)}
4function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}setGlobalFederationConstructor(FederationHost);var __webpack_unused_export__,factory,js_cookie={exports:{}};factory=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function i(){}function o(t,r,o){if("u">typeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(+new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(r);/^[\{\[]/.test(a)&&(r=a)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,!0!==o[l]&&(s+="="+o[l].split(";")[0]));return document.cookie=t+"="+r+s}}function a(e,r){if("u">typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),l=s.slice(1).join("=");r||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var u=t(s[0]);if(l=(n.read||n)(l,u)||t(l),r)try{l=JSON.parse(l)}catch(e){}if(i[u]=l,e===u)break}catch(e){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,r){o(t,"",e(r,{expires:-1}))},i.defaults={},i.withConverter=r,i}(function(){})},js_cookie.exports=factory();var Cookies=js_cookie.exports,CUSTOM_BASKET_SOURCE_COOKIE="ee-basket-mfe-source",isValidBasketUrl=function(e){try{var t=new URL(e);return"https:"===t.protocol&&t.hostname.endsWith(".ee.co.uk")}catch(e){return!1}},getBasketAppPathFromCookie=process.env.NEXT_PUBLIC_DISABLE_DYNAMIC_MFE_PATH?function(){return null}:function(){if("u"<typeof window||"ee.co.uk"===window.location.hostname)return null;var e=Cookies.get(CUSTOM_BASKET_SOURCE_COOKIE);return"string"==typeof e&&isValidBasketUrl(e)?e:null},link$2={exports:{}},link$1={exports:{}},_interop_require_wildcard$1={};function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interop_require_wildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}_interop_require_wildcard$1._=_interop_require_wildcard;var hasRequiredQuerystring,resolveHref={exports:{}},querystring={};function requireQuerystring(){return hasRequiredQuerystring||(hasRequiredQuerystring=1,function(e){function t(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function r(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function n(e){let t=new URLSearchParams;for(let[n,i]of Object.entries(e))if(Array.isArray(i))for(let e of i)t.append(n,r(e));else t.set(n,r(i));return t}function i(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{assign:function(){return i},searchParamsToUrlQuery:function(){return t},urlQueryToSearchParams:function(){return n}})}(querystring)),querystring}var hasRequiredFormatUrl,formatUrl={};function requireFormatUrl(){return hasRequiredFormatUrl||(hasRequiredFormatUrl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{formatUrl:function(){return n},formatWithValidation:function(){return o},urlObjectKeys:function(){return i}});
4let t=_interop_require_wildcard$1._(requireQuerystring()),r=/https?|ftp|gopher|file/;function n(e){let{auth:n,hostname:i}=e,o=e.protocol||"",a=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",e.host?u=n+e.host:i&&(u=n+(~i.indexOf(":")?`[${i}]`:i),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(t.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||r.test(o))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${o}${u}${a}${c}${s}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function o(e){return n(e)}}(formatUrl)),formatUrl}var hasRequiredOmit,omit={};function requireOmit(){return hasRequiredOmit||(hasRequiredOmit=1,function(e){function t(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return t}})}(omit)),omit}var hasRequiredUtils$1,utils$1={};function requireUtils$1(){return hasRequiredUtils$1||(hasRequiredUtils$1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{DecodeError:function(){return f},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return g},NormalizeError:function(){return h},PageNotFoundError:function(){return m},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return t},execOnce:function(){return r},getDisplayName:function(){return s},getLocationOrigin:function(){return o},getURL:function(){return a},isAbsoluteUrl:function(){return i},isResSent:function(){return l},loadGetInitialProps:function(){return c},normalizeRepeatedSlashes:function(){return u},stringifyError:function(){return E}});let t=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let n=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>n.test(e);function o(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function a(){let{href:e}=window.location,t=o();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function l(e){return e.finished||e.headersSent}function u(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function c(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await c(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&l(r))return n;if(!n)throw Object.defineProperty(Error(`"${s(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let d="u">typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class f extends Error{}
4class h extends Error{}class m extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class g extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}}(utils$1)),utils$1}var hasRequiredRemoveTrailingSlash,normalizeTrailingSlash={exports:{}},removeTrailingSlash={};function requireRemoveTrailingSlash(){return hasRequiredRemoveTrailingSlash||(hasRequiredRemoveTrailingSlash=1,function(e){function t(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}})}(removeTrailingSlash)),removeTrailingSlash}var hasRequiredParsePath,hasRequiredNormalizeTrailingSlash,parsePath={};function requireParsePath(){return hasRequiredParsePath||(hasRequiredParsePath=1,function(e){function t(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}})}(parsePath)),parsePath}function requireNormalizeTrailingSlash(){return hasRequiredNormalizeTrailingSlash||(hasRequiredNormalizeTrailingSlash=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return i}});let r=requireRemoveTrailingSlash(),n=requireParsePath(),i=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:i,hash:o}=(0,n.parsePath)(e);return`${(0,r.removeTrailingSlash)(t)}${i}${o}`};("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)}(normalizeTrailingSlash,normalizeTrailingSlash.exports)),normalizeTrailingSlash.exports}var hasRequiredPathHasPrefix,hasRequiredHasBasePath,hasRequiredIsLocalUrl,isLocalUrl={},hasBasePath={exports:{}},pathHasPrefix={};function requirePathHasPrefix(){return hasRequiredPathHasPrefix||(hasRequiredPathHasPrefix=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});let t=requireParsePath();function r(e,r){if("string"!=typeof e)return!1;let{pathname:n}=(0,t.parsePath)(e);return n===r||n.startsWith(r+"/")}}(pathHasPrefix)),pathHasPrefix}function requireHasBasePath(){return hasRequiredHasBasePath||(hasRequiredHasBasePath=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return i}});let r=requirePathHasPrefix(),n="/exp/homepage";function i(e){return(0,r.pathHasPrefix)(e,n)}("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)}(hasBasePath,hasBasePath.exports)),hasBasePath.exports}function requireIsLocalUrl(){return hasRequiredIsLocalUrl||(hasRequiredIsLocalUrl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isLocalURL",{enumerable:!0,get:function(){return n}});let t=requireUtils$1(),r=requireHasBasePath();function n(e){if(!(0,t.isAbsoluteUrl)(e))return!0;try{let n=(0,t.getLocationOrigin)(),i=new URL(e,n);return i.origin===n&&(0,r.hasBasePath)(i.pathname)}catch(e){return!1}}}(isLocalUrl)),isLocalUrl}var hasRequiredSortedRoutes,utils={},sortedRoutes={};function requireSortedRoutes(){return hasRequiredSortedRoutes||(hasRequiredSortedRoutes=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{getSortedRouteObjects:function(){return n},getSortedRoutes:function(){return r}});
4class t{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e="/"){let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(`${e}${t}/`)).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),r}_insert(e,r,n){if(0===e.length)return void(this.placeholder=!1);if(n)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let i=e[0];if(i.startsWith("[")&&i.endsWith("]")){let t=i.slice(1,-1),a=!1;if(t.startsWith("[")&&t.endsWith("]")&&(t=t.slice(1,-1),a=!0),t.startsWith("…"))throw Object.defineProperty(Error(`Detected a three-dot character ('…') at ('${t}'). Did you mean ('...')?`),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(t.startsWith("...")&&(t=t.substring(3),n=!0),t.startsWith("[")||t.endsWith("]"))throw Object.defineProperty(Error(`Segment names may not start or end with extra brackets ('${t}').`),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(t.startsWith("."))throw Object.defineProperty(Error(`Segment names may not start with erroneous periods ('${t}').`),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function o(e,t){if(null!==e&&e!==t)throw Object.defineProperty(Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${t}').`),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});r.forEach(e=>{if(e===t)throw Object.defineProperty(Error(`You cannot have the same slug name "${t}" repeat within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(e.replace(/\W/g,"")===i.replace(/\W/g,""))throw Object.defineProperty(Error(`You cannot have the slug names "${e}" and "${t}" differ only by non-word symbols within a single dynamic path`),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),r.push(t)}if(n)if(a){if(null!=this.restSlugName)throw Object.defineProperty(Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});o(this.optionalRestSlugName,t),this.optionalRestSlugName=t,i="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});o(this.restSlugName,t),this.restSlugName=t,i="[...]"}else{if(a)throw Object.defineProperty(Error(`Optional route parameters are not yet supported ("${e[0]}").`),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});o(this.slugName,t),this.slugName=t,i="[]"}}this.children.has(i)||this.children.set(i,new t),this.children.get(i)._insert(e.slice(1),r,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let r=new t;return e.forEach(e=>r.insert(e)),r.smoosh()}function n(e,t){let n={},i=[];for(let r=0;r<e.length;r++){let o=t(e[r]);n[o]=r,i[r]=o}return r(i).map(t=>e[n[t]])}}(sortedRoutes)),sortedRoutes}var hasRequiredEnsureLeadingSlash,isDynamic={},interceptionRoutes={},appPaths={},ensureLeadingSlash={};function requireEnsureLeadingSlash(){return hasRequiredEnsureLeadingSlash||(hasRequiredEnsureLeadingSlash=1,function(e){function t(e){return e.startsWith("/")?e:`/${e}`}
4Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ensureLeadingSlash",{enumerable:!0,get:function(){return t}})}(ensureLeadingSlash)),ensureLeadingSlash}var hasRequiredSegment,hasRequiredAppPaths,hasRequiredInterceptionRoutes,hasRequiredIsDynamic,hasRequiredUtils,segment={};function requireSegment(){return hasRequiredSegment||(hasRequiredSegment=1,function(e){function t(e){return Array.isArray(e)?e[1]:e}function r(e){return"("===e[0]&&e.endsWith(")")}function n(e){return e.startsWith("@")&&"@children"!==e}function i(e,t){if(e.includes(s)){let e=JSON.stringify(t);return"{}"!==e?s+"?"+e:s}return e}function o(e,t){if(!e||0===e.length)return null;let r="children"===t?e[0]:e[e.length-1];return r===l?null:r}function a(e,r,n=!0,i=[]){let o;if(n)o=e[1][r];else{let t=e[1];o=t.children??Object.values(t)[0]}if(!o)return i;let l=t(o[0]);return!l||l.startsWith(s)?i:(i.push(l),a(o,r,!1,i))}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{DEFAULT_SEGMENT_KEY:function(){return l},NOT_FOUND_SEGMENT_KEY:function(){return u},PAGE_SEGMENT_KEY:function(){return s},addSearchParamsIfPageSegment:function(){return i},computeSelectedLayoutSegment:function(){return o},getSegmentValue:function(){return t},getSelectedLayoutSegmentPath:function(){return a},isGroupSegment:function(){return r},isParallelRouteSegment:function(){return n}});let s="__PAGE__",l="__DEFAULT__",u="/_not-found"}(segment)),segment}function requireAppPaths(){return hasRequiredAppPaths||(hasRequiredAppPaths=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{normalizeAppPath:function(){return n},normalizeRscURL:function(){return i}});let t=requireEnsureLeadingSlash(),r=requireSegment();function n(e){return(0,t.ensureLeadingSlash)(e.split("/").reduce((e,t,n,i)=>t?(0,r.isGroupSegment)(t)||"@"===t[0]?e:"page"!==t&&"route"!==t||n!==i.length-1?`${e}/${t}`:e:e,""))}function i(e){return e.replace(/\.rsc($|\?)/,"$1")}}(appPaths)),appPaths}function requireInterceptionRoutes(){return hasRequiredInterceptionRoutes||(hasRequiredInterceptionRoutes=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{INTERCEPTION_ROUTE_MARKERS:function(){return r},extractInterceptionRouteInformation:function(){return i},isInterceptionRouteAppPath:function(){return n}});let t=requireAppPaths(),r=["(..)(..)","(.)","(..)","(...)"];function n(e){return void 0!==e.split("/").find(e=>r.find(t=>e.startsWith(t)))}function i(e){let n,i,o;for(let t of e.split("/"))if(i=r.find(e=>t.startsWith(e))){[n,o]=e.split(i,2);break}if(!n||!i||!o)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`),"__NEXT_ERROR_CODE",{value:"E269",enumerable:!1,configurable:!0});switch(n=(0,t.normalizeAppPath)(n),i){case"(.)":o="/"===n?`/${o}`:n+"/"+o;break;case"(..)":if("/"===n)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`),"__NEXT_ERROR_CODE",{value:"E207",enumerable:!1,configurable:!0});o=n.split("/").slice(0,-1).concat(o).join("/");break;case"(...)":o="/"+o;break;case"(..)(..)":let a=n.split("/");if(a.length<=2)throw Object.defineProperty(Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`),"__NEXT_ERROR_CODE",{value:"E486",enumerable:!1,configurable:!0});o=a.slice(0,-2).concat(o).join("/");break;default:throw Object.defineProperty(Error("Invariant: unexpected marker"),"__NEXT_ERROR_CODE",{value:"E112",enumerable:!1,configurable:!0})}return{interceptingRoute:n,interceptedRoute:o}}}(interceptionRoutes)),interceptionRoutes}function requireIsDynamic(){return hasRequiredIsDynamic||(hasRequiredIsDynamic=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let t=requireInterceptionRoutes(),r=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,n=/\/\[[^/]+\](?=\/|$)/;function i(e,o=!0){return(0,t.isInterceptionRouteAppPath)(e)&&(e=(0,t.extractInterceptionRouteInformation)(e).interceptedRoute),o?n.test(e):r.test(e)}}(isDynamic)),isDynamic}function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,function(e){Object.defineProperty(e,"__esMo
4dule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{getSortedRouteObjects:function(){return t.getSortedRouteObjects},getSortedRoutes:function(){return t.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});let t=requireSortedRoutes(),r=requireIsDynamic()}(utils)),utils}var hasRequiredPathToRegexp,interpolateAs={},routeMatcher={},routeMatchUtils={},pathToRegexp={exports:{}};function requirePathToRegexp(){return hasRequiredPathToRegexp||(hasRequiredPathToRegexp=1,(()=>{"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var e={};(()=>{var t=e;function r(e,t){void 0===t&&(t={});for(var r=function(e){for(var t=[],r=0;r<e.length;){var n=e[r];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:r,value:e[r++]});else{var i=1,o="";if("?"===e[s=r+1])throw TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--i){s++;break}}else if("("===e[s]&&(i++,"?"!==e[s+1]))throw TypeError("Capturing groups are not allowed at ".concat(s));o+=e[s++]}else o+=e[s++]+e[s++];if(i)throw TypeError("Unbalanced pattern at ".concat(r));if(!o)throw TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:o}),r=s}else{for(var a="",s=r+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:a}),r=s}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,i=void 0===n?"./":n,a=t.delimiter,s=void 0===a?"/#?":a,l=[],u=0,c=0,d="",p=function(e){if(c<r.length&&r[c].type===e)return r[c++].value},f=function(e){var t=p(e);if(void 0!==t)return t;var n=r[c],i=n.type,o=n.index;throw TypeError("Unexpected ".concat(i," at ").concat(o,", expected ").concat(e))},h=function(){for(var e,t="";e=p("CHAR")||p("ESCAPED_CHAR");)t+=e;return t},m=function(e){var t=l[l.length-1],r=e||(t&&"string"==typeof t?t:"");if(t&&!r)throw TypeError('Must have text between two parameters, missing text after "'.concat(t.name,'"'));return!r||function(e){for(var t=0,r=s;t<r.length;t++){var n=r[t];if(e.indexOf(n)>-1)return!0}return!1}(r)?"[^".concat(o(s),"]+?"):"(?:(?!".concat(o(r),")[^").concat(o(s),"])+?")};c<r.length;){var g=p("CHAR"),v=p("NAME"),E=p("PATTERN");if(v||E){var y=g||"";-1===i.indexOf(y)&&(d+=y,y=""),d&&(l.push(d),d=""),l.push({name:v||u++,prefix:y,suffix:"",pattern:E||m(y),modifier:p("MODIFIER")||""})}else{var b=g||p("ESCAPED_CHAR");if(b)d+=b;else if(d&&(l.push(d),d=""),p("OPEN")){y=h();var _=p("NAME")||"",w=p("PATTERN")||"",S=h();f("CLOSE"),l.push({name:_||(w?u++:""),pattern:_&&!w?m(y):w,prefix:y,suffix:S,modifier:p("MODIFIER")||""})}else f("END")}}return l}function n(e,t){void 0===t&&(t={});var r=a(t),n=t.encode,i=void 0===n?function(e){return e}:n,o=t.validate,s=void 0===o||o,l=e.map(function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),r)});return function(t){for(var r="",n=0;n<e.length;n++){var o=e[n];if("string"!=typeof o){var a=t?t[o.name]:void 0,u="?"===o.modifier||"*"===o.modifier,c="*"===o.modifier||"+"===o.modifier;if(Array.isArray(a)){if(!c)throw TypeError('Expected "'.concat(o.name,'" to not repeat, but got an array'));if(0===a.length){if(u)continue;throw TypeError('Expected "'.concat(o.name,'" to not be empty'))}for(var d=0;d<a.length;d++){var p=i(a[d],o);if(s&&!l[n].test(p))throw TypeError('Expected all "'.concat(o.name,'" to match "').concat(o.pattern,'", but got "').concat(p,'"'));r+=o.prefix+p+o.suffix}}else if("string"!=typeof a&&"number"!=typeof a){if(!u){var f=c?"an array":"a string";throw TypeError('Expected "'.concat(o.name,'" to be ').concat(f))}}else{if(p=i(String(a),o),s&&!l[n].test(p))throw TypeError('Expected "'.concat(o.name,'" to match "').concat(o.pattern,'", but got "').concat(p,'"'));r+=o.prefix+p+o.suffix}}else r+=o}return r}}function i(e,t,r){void 0===r&&(r={});var n=r.decode,i=void 0===n?function(e){return e}:n;return function(r){var n=e.exec(r);if(!n)return!1;for(var o=n[0],a=n.index,s=Object.create(null),l=function(e){if(void 0===n[e])return"continue";var r=t[e-1];"*"===r.modifier||"+"===r.modifier?s[r.name]=n[e].split(r.prefix+r.suffix).map(function(e){return i(e,r)}):s[r.name]=i(n[e],r)},u=1;u<n.length;u++)l(u);return{path:o,index:a,params:s}}}function o(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function s(e,t,r){void 0===r&&(r={});for(var n=r.strict,i=void 0!==n&&n,s=r.start,l=void 0===s||s,u=r.end,c=void 0===u||u,d=r.encode,p=void 0===d?function(e){return e}:d,f=r.delimiter,h=void 0===f?"/#?":f,m=r.endsWith,g="[".concat(o(void 0===m?"":m),"]|$"),v="[".concat(o(h),"]"),E=l?"^":"",y=0,b=e;y<b.length;y++){var _=b[y];if("string"==typeof _)E+=o(p(_));else{var w=o(p(_.prefix)),S=o(p(_.suffix));if(_.pattern)if(t&&t.push(_),w||S)if("+"===_.modifier||"*"===_.modifier){var T="*"===_.modifier?"?":"";E+="(?:".concat(w,"((?:").concat(_.pattern,")(?:").concat(S).concat(w,"(?:").concat(_.pattern,"))*)").concat(S,")").concat(T)}else E+="(?:".concat(w,"(").concat(_.pattern,")").concat(S,")").concat(_.modifier);else{if("+"===_.modifier||"*"===_.modifier)throw TypeError('Can not repeat "'.concat(_.name,'" without a prefix and suffix'));E+="(".concat(_.pattern,")").concat(_.modifier)}
4else E+="(?:".concat(w).concat(S,")").concat(_.modifier)}}if(c)i||(E+="".concat(v,"?")),E+=r.endsWith?"(?=".concat(g,")"):"$";else{var x=e[e.length-1],P="string"==typeof x?v.indexOf(x[x.length-1])>-1:void 0===x;i||(E+="(?:".concat(v,"(?=").concat(g,"))?")),P||(E+="(?=".concat(v,"|").concat(g,")"))}return new RegExp(E,a(r))}function l(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,r){var n=e.map(function(e){return l(e,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),a(r))}(e,t,n):function(e,t,n){return s(r(e,n),t,n)}(e,t,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.pathToRegexp=t.tokensToRegexp=t.regexpToFunction=t.match=t.tokensToFunction=t.compile=t.parse=void 0,t.parse=r,t.compile=function(e,t){return n(r(e,t),t)},t.tokensToFunction=n,t.match=function(e,t){var r=[];return i(l(e,r,t),r,t)},t.regexpToFunction=i,t.tokensToRegexp=s,t.pathToRegexp=l})(),pathToRegexp.exports=e})()),pathToRegexp.exports}var hasRequiredRoutePatternNormalizer,hasRequiredRouteMatchUtils,hasRequiredRouteMatcher,routePatternNormalizer={};function requireRoutePatternNormalizer(){return hasRequiredRoutePatternNormalizer||(hasRequiredRoutePatternNormalizer=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{PARAM_SEPARATOR:function(){return t},hasAdjacentParameterIssues:function(){return r},normalizeAdjacentParameters:function(){return n},normalizeTokensForRegexp:function(){return i},stripNormalizedSeparators:function(){return o},stripParameterSeparators:function(){return a}});let t="_NEXTSEP_";function r(e){return"string"==typeof e&&(!!/\/\(\.{1,3}\):[^/\s]+/.test(e)||!!/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(e))}function n(e){let r=e;return(r=r.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${t}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${t}`)}function i(e){return e.map(e=>"object"==typeof e&&null!==e&&"modifier"in e&&("*"===e.modifier||"+"===e.modifier)&&"prefix"in e&&"suffix"in e&&""===e.prefix&&""===e.suffix?{...e,prefix:"/"}:e)}function o(e){return e.replace(RegExp(`\\)${t}`,"g"),")")}function a(e){let r={};for(let[n,i]of Object.entries(e))"string"==typeof i?r[n]=i.replace(RegExp(`^${t}`),""):Array.isArray(i)?r[n]=i.map(e=>"string"==typeof e?e.replace(RegExp(`^${t}`),""):e):r[n]=i;return r}}(routePatternNormalizer)),routePatternNormalizer}function requireRouteMatchUtils(){return hasRequiredRouteMatchUtils||(hasRequiredRouteMatchUtils=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{safeCompile:function(){return i},safePathToRegexp:function(){return n},safeRegexpToFunction:function(){return o},safeRouteMatcher:function(){return a}});let t=requirePathToRegexp(),r=requireRoutePatternNormalizer();function n(e,n,i){if("string"!=typeof e)return(0,t.pathToRegexp)(e,n,i);let o=(0,r.hasAdjacentParameterIssues)(e),a=o?(0,r.normalizeAdjacentParameters)(e):e;try{return(0,t.pathToRegexp)(a,n,i)}catch(a){if(!o)try{let o=(0,r.normalizeAdjacentParameters)(e);return(0,t.pathToRegexp)(o,n,i)}catch(e){}throw a}}function i(e,n){let i=(0,r.hasAdjacentParameterIssues)(e),o=i?(0,r.normalizeAdjacentParameters)(e):e;try{let e=(0,t.compile)(o,n);return i?t=>(0,r.stripNormalizedSeparators)(e(t)):e}catch(o){if(!i)try{let i=(0,r.normalizeAdjacentParameters)(e),o=(0,t.compile)(i,n);return e=>(0,r.stripNormalizedSeparators)(o(e))}catch(e){}throw o}}function o(e,n){let i=(0,t.regexpToFunction)(e,n||[]);return e=>{let t=i(e);return!!t&&{...t,params:(0,r.stripParameterSeparators)(t.params)}}}function a(e){return t=>{let n=e(t);return!!n&&(0,r.stripParameterSeparators)(n)}}}(routeMatchUtils)),routeMatchUtils}function requireRouteMatcher(){return hasRequiredRouteMatcher||(hasRequiredRouteMatcher=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRouteMatcher",{enumerable:!0,get:function(){return n}});let t=requireUtils$1(),r=requireRouteMatchUtils();function n({re:e,groups:i}){return(0,r.safeRouteMatcher)(r=>{let n=e.exec(r);if(!n)return!1;let o=e=>{try{return decodeURIComponent(e)}catch{throw Object.defineProperty(new t.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,
4configurable:!0})}},a={};for(let[e,t]of Object.entries(i)){let r=n[t.pos];void 0!==r&&(t.repeat?a[e]=r.split("/").map(e=>o(e)):a[e]=o(r))}return a})}}(routeMatcher)),routeMatcher}var hasRequiredConstants,routeRegex={},constants={};function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{ACTION_SUFFIX:function(){return p},APP_DIR_ALIAS:function(){return N},CACHE_ONE_YEAR:function(){return T},DOT_NEXT_ALIAS:function(){return C},ESLINT_DEFAULT_DIRS:function(){return ee},GSP_NO_RETURNED_VALUE:function(){return q},GSSP_COMPONENT_MEMBER_ERROR:function(){return Z},GSSP_NO_RETURNED_VALUE:function(){return Y},HTML_CONTENT_TYPE_HEADER:function(){return r},INFINITE_CACHE:function(){return x},INSTRUMENTATION_HOOK_FILENAME:function(){return I},JSON_CONTENT_TYPE_HEADER:function(){return n},MATCHED_PATH_HEADER:function(){return a},MIDDLEWARE_FILENAME:function(){return P},MIDDLEWARE_LOCATION_REGEXP:function(){return O},NEXT_BODY_SUFFIX:function(){return m},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return S},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return v},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return E},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return w},NEXT_CACHE_TAGS_HEADER:function(){return g},NEXT_CACHE_TAG_MAX_ITEMS:function(){return b},NEXT_CACHE_TAG_MAX_LENGTH:function(){return _},NEXT_DATA_SUFFIX:function(){return f},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return o},NEXT_META_SUFFIX:function(){return h},NEXT_QUERY_PARAM_PREFIX:function(){return i},NEXT_RESUME_HEADER:function(){return y},NON_STANDARD_NODE_ENV:function(){return J},PAGES_DIR_ALIAS:function(){return L},PRERENDER_REVALIDATE_HEADER:function(){return s},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return l},PROXY_FILENAME:function(){return M},PROXY_LOCATION_REGEXP:function(){return R},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return z},ROOT_DIR_ALIAS:function(){return A},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return H},RSC_ACTION_ENCRYPTION_ALIAS:function(){return B},RSC_ACTION_PROXY_ALIAS:function(){return D},RSC_ACTION_VALIDATE_ALIAS:function(){return $},RSC_CACHE_WRAPPER_ALIAS:function(){return j},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return F},RSC_MOD_REF_PROXY_ALIAS:function(){return k},RSC_SEGMENTS_DIR_SUFFIX:function(){return u},RSC_SEGMENT_SUFFIX:function(){return c},RSC_SUFFIX:function(){return d},SERVER_PROPS_EXPORT_ERROR:function(){return X},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return V},SERVER_PROPS_SSG_CONFLICT:function(){return W},SERVER_RUNTIME:function(){return et},SSG_FALLBACK_EXPORT_ERROR:function(){return Q},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return G},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return U},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return t},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return K},WEBPACK_LAYERS:function(){return ei},WEBPACK_RESOURCE_QUERIES:function(){return eo},WEB_SOCKET_MAX_RECONNECTIONS:function(){return er}});let t="text/plain",r="text/html; charset=utf-8",n="application/json; charset=utf-8",i="nxtP",o="nxtI",a="x-matched-path",s="x-prerender-revalidate",l="x-prerender-revalidate-if-generated",u=".segments",c=".segment.rsc",d=".rsc",p=".action",f=".json",h=".meta",m=".body",g="x-next-cache-tags",v="x-next-revalidated-tags",E="x-next-revalidate-tag-token",y="next-resume",b=128,_=256,w=1024,S="_N_T_",T=31536e3,x=0xfffffffe,P="middleware",O=`(?:src/)?${P}`,M="proxy",R=`(?:src/)?${M}`,I="instrumentation",L="private-next-pages",C="private-dot-next",A="private-next-root-dir",N="private-next-app-dir",k="private-next-rsc-mod-ref-proxy",$="private-next-rsc-action-validate",D="private-next-rsc-server-reference",j="private-next-rsc-cache-wrapper",F="private-next-rsc-track-dynamic-import",B="private-next-rsc-action-encryption",H="private-next-rsc-action-client-wrapper",z="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",G="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",V="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",W="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",U="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",X="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",q="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",Y="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",K="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",Z="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",J='You are using a non-standard "NODE_ENV" value in y
4our environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Q="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",ee=["app","pages","components","lib","src"],et={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},er=12,en={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},ei={...en,GROUP:{builtinReact:[en.reactServerComponents,en.actionBrowser],serverOnly:[en.reactServerComponents,en.actionBrowser,en.instrument,en.middleware],neutralTarget:[en.apiNode,en.apiEdge],clientOnly:[en.serverSideRendering,en.appPagesBrowser],bundled:[en.reactServerComponents,en.actionBrowser,en.serverSideRendering,en.appPagesBrowser,en.shared,en.instrument,en.middleware],appPages:[en.reactServerComponents,en.serverSideRendering,en.appPagesBrowser,en.actionBrowser]}},eo={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}}(constants)),constants}var hasRequiredEscapeRegexp,escapeRegexp={};function requireEscapeRegexp(){return hasRequiredEscapeRegexp||(hasRequiredEscapeRegexp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"escapeStringRegexp",{enumerable:!0,get:function(){return n}});let t=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function n(e){return t.test(e)?e.replace(r,"\\$&"):e}}(escapeRegexp)),escapeRegexp}var hasRequiredInvariantError,getDynamicParam={},invariantError={};function requireInvariantError(){return hasRequiredInvariantError||(hasRequiredInvariantError=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"InvariantError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(e,t){super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`,t),this.name="InvariantError"}}}(invariantError)),invariantError}var hasRequiredParseLoaderTree,parseLoaderTree={};function requireParseLoaderTree(){return hasRequiredParseLoaderTree||(hasRequiredParseLoaderTree=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parseLoaderTree",{enumerable:!0,get:function(){return r}});let t=requireSegment();function r(e){let[r,n,i]=e,{layout:o,template:a}=i,{page:s}=i;return{page:s=r===t.DEFAULT_SEGMENT_KEY?i.defaultPage:s,segment:r,modules:i,conventionPath:o?.[1]||a?.[1]||s?.[1],parallelRoutes:n}}}(parseLoaderTree)),parseLoaderTree}var hasRequiredGetSegmentParam,hasRequiredApp,app={},getSegmentParam={};function requireGetSegmentParam(){return hasRequiredGetSegmentParam||(hasRequiredGetSegmentParam=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{getParamProperties:function(){return i},getSegmentParam:function(){return r},isCatchAll:function(){return n}});let t=requireInterceptionRoutes();function r(e){let r=t.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return r&&(e=e.slice(r.length)),e.startsWith("[[...")&&e.endsWith("]]")?{paramType:"optional-catchall",paramName:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{paramType:r?`catchall-intercepted-${r}`:"catchall",paramName:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{paramType:r?`dynamic-intercepted-${r}`:"dynamic",paramName:e.slice(1,-1)}:null}function n(e){return"catchall"===e||"catchall-intercepted-(..)(..)"===e||"catchall-intercepted-(.)"===e||"catchall-intercepted-(..)"===e||"catchall-intercepted-(...)"===e||"optional-catchall"===e}function i(e){let t=!1,r=!1;switch(e){case"catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":t=!0;break;case"optional-catchall":t=!0,r=!0}return{repeat:t,optional:r}}}(getSegmentParam)),getSegmentParam}function requireApp(){return hasRequiredApp||(hasRequiredApp=1,function(e){Object.defineProperty(e,"__esMo
4dule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{isInterceptionAppRoute:function(){return a},isNormalizedAppRoute:function(){return o},parseAppRoute:function(){return s},parseAppRouteSegment:function(){return i}});let t=requireInvariantError(),r=requireGetSegmentParam(),n=requireInterceptionRoutes();function i(e){if(""===e)return null;let t=n.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=(0,r.getSegmentParam)(e);return i?{type:"dynamic",name:e,param:i,interceptionMarker:t}:e.startsWith("(")&&e.endsWith(")")?{type:"route-group",name:e,interceptionMarker:t}:e.startsWith("@")?{type:"parallel-route",name:e,interceptionMarker:t}:{type:"static",name:e,interceptionMarker:t}}function o(e){return e.normalized}function a(e){return void 0!==e.interceptionMarker&&void 0!==e.interceptingRoute&&void 0!==e.interceptedRoute}function s(e,r){let n,o,a,l=e.split("/").filter(Boolean),u=[];for(let c of l){let l=i(c);if(l){if(r&&("route-group"===l.type||"parallel-route"===l.type))throw Object.defineProperty(new t.InvariantError(`${e} is being parsed as a normalized route, but it has a route group or parallel route segment.`),"__NEXT_ERROR_CODE",{value:"E923",enumerable:!1,configurable:!0});if(u.push(l),l.interceptionMarker){let t=e.split(l.interceptionMarker);if(2!==t.length)throw Object.defineProperty(Error(`Invalid interception route: ${e}`),"__NEXT_ERROR_CODE",{value:"E924",enumerable:!1,configurable:!0});o=s(t[0],!!r),a=s(t[1],!!r),n=l.interceptionMarker}}}let c=u.filter(e=>"dynamic"===e.type);return{normalized:r,pathname:e,segments:u,dynamicSegments:c,interceptionMarker:n,interceptingRoute:o,interceptedRoute:a}}}(app)),app}var hasRequiredInterceptionPrefixFromParamType,hasRequiredResolveParamValue,hasRequiredGetDynamicParam,hasRequiredRouteRegex,hasRequiredInterpolateAs,hasRequiredResolveHref,resolveParamValue={},interceptionPrefixFromParamType={};function requireInterceptionPrefixFromParamType(){return hasRequiredInterceptionPrefixFromParamType||(hasRequiredInterceptionPrefixFromParamType=1,function(e){function t(e){switch(e){case"catchall-intercepted-(..)(..)":case"dynamic-intercepted-(..)(..)":return"(..)(..)";case"catchall-intercepted-(.)":case"dynamic-intercepted-(.)":return"(.)";case"catchall-intercepted-(..)":case"dynamic-intercepted-(..)":return"(..)";case"catchall-intercepted-(...)":case"dynamic-intercepted-(...)":return"(...)";default:return null}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interceptionPrefixFromParamType",{enumerable:!0,get:function(){return t}})}(interceptionPrefixFromParamType)),interceptionPrefixFromParamType}function requireResolveParamValue(){return hasRequiredResolveParamValue||(hasRequiredResolveParamValue=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveParamValue",{enumerable:!0,get:function(){return n}});let t=requireInvariantError(),r=requireInterceptionPrefixFromParamType();function n(e,n,i,o,a){switch(n){case"catchall":case"optional-catchall":case"catchall-intercepted-(..)(..)":case"catchall-intercepted-(.)":case"catchall-intercepted-(..)":case"catchall-intercepted-(...)":let s=[];for(let e=i;e<o.segments.length;e++){let t=o.segments[e];if("static"===t.type){let o=t.name,a=(0,r.interceptionPrefixFromParamType)(n);a&&e===i&&a===t.interceptionMarker&&(o=o.replace(t.interceptionMarker,"")),s.push(o)}else{if(!a.hasOwnProperty(t.param.paramName)){if("optional-catchall"===t.param.paramType)break;return}let e=a[t.param.paramName];Array.isArray(e)?s.push(...e):s.push(e)}}if(s.length>0)return s;if("optional-catchall"===n)return;throw Object.defineProperty(new t.InvariantError(`Unexpected empty path segments match for a route "${o.pathname}" with param "${e}" of type "${n}"`),"__NEXT_ERROR_CODE",{value:"E931",enumerable:!1,configurable:!0});case"dynamic":case"dynamic-intercepted-(..)(..)":case"dynamic-intercepted-(.)":case"dynamic-intercepted-(..)":case"dynamic-intercepted-(...)":if(i<o.segments.length){let e=o.segments[i];if("dynamic"===e.type&&!a.hasOwnProperty(e.param.paramName))return;return function(e,t,n){return"dynamic"===e.type?t[e.param.paramName]:(0,r.interceptionPrefixFromParamType)(n)===e.interceptionMarker?e.name.replace(e.interceptionMarker,""):e.name}(e,a,n)}return}}}(resolveParamValue)),resolveParamValue}function requireGetDynamicParam(){return hasRequiredGetDynamicParam||(hasRequiredGetDynamicParam=1,function(e){Object.defineProperty(e,"__esMo
4dule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{PARAMETER_PATTERN:function(){return s},getDynamicParam:function(){return a},interpolateParallelRouteParams:function(){return o},parseMatchedParameter:function(){return u},parseParameter:function(){return l}});let t=requireInvariantError(),r=requireParseLoaderTree(),n=requireApp(),i=requireResolveParamValue();function o(e,o,a,s){let l=structuredClone(o),u=[{tree:e,depth:0}],c=(0,n.parseAppRoute)(a,!0);for(;u.length>0;){let{tree:e,depth:o}=u.pop(),{segment:a,parallelRoutes:d}=(0,r.parseLoaderTree)(e),p=(0,n.parseAppRouteSegment)(a);if("dynamic"===p?.type&&!l.hasOwnProperty(p.param.paramName)&&!s?.has(p.param.paramName)){let{paramName:e,paramType:r}=p.param,n=(0,i.resolveParamValue)(e,r,o,c,l);if(void 0!==n)l[e]=n;else if("optional-catchall"!==r)throw Object.defineProperty(new t.InvariantError(`Could not resolve param value for segment: ${e}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let f=o;for(let e of(p&&"route-group"!==p.type&&"parallel-route"!==p.type&&f++,Object.values(d)))u.push({tree:e,depth:f})}return l}function a(e,r,n,i){let o=function(e,t,r){let n=e[t];if(r?.has(t)){let[e]=r.get(t);n=e}else Array.isArray(n)?n=n.map(e=>encodeURIComponent(e)):"string"==typeof n&&(n=encodeURIComponent(n));return n}(e,r,i);if(!o||0===o.length){if("oc"===n)return{param:r,value:null,type:n,treeSegment:[r,"",n]};throw Object.defineProperty(new t.InvariantError(`Missing value for segment key: "${r}" with dynamic param type: ${n}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}return{param:r,value:o,treeSegment:[r,Array.isArray(o)?o.join("/"):o,n],type:n}}let s=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function l(e){let t=e.match(s);return u(t?t[2]:e)}function u(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}}(getDynamicParam)),getDynamicParam}function requireRouteRegex(){return hasRequiredRouteRegex||(hasRequiredRouteRegex=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(e,{getNamedMiddlewareRegex:function(){return d},getNamedRouteRegex:function(){return c},getRouteRegex:function(){return s}});let t=requireConstants(),r=requireInterceptionRoutes(),n=requireEscapeRegexp(),i=requireRemoveTrailingSlash(),o=requireGetDynamicParam();function a(e,t,a){let s={},l=1,u=[];for(let c of(0,i.removeTrailingSlash)(e).slice(1).split("/")){let e=r.INTERCEPTION_ROUTE_MARKERS.find(e=>c.startsWith(e)),i=c.match(o.PARAMETER_PATTERN);if(e&&i&&i[2]){let{key:t,optional:r,repeat:a}=(0,o.parseMatchedParameter)(i[2]);s[t]={pos:l++,repeat:a,optional:r},u.push(`/${(0,n.escapeStringRegexp)(e)}([^/]+?)`)}else if(i&&i[2]){let{key:e,repeat:t,optional:r}=(0,o.parseMatchedParameter)(i[2]);s[e]={pos:l++,repeat:t,optional:r},a&&i[1]&&u.push(`/${(0,n.escapeStringRegexp)(i[1])}`);let c=t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";a&&i[1]&&(c=c.substring(1)),u.push(c)}else u.push(`/${(0,n.escapeStringRegexp)(c)}`);t&&i&&i[3]&&u.push((0,n.escapeStringRegexp)(i[3]))}return{parameterizedRoute:u.join(""),groups:s}}function s(e,{includeSuffix:t=!1,includePrefix:r=!1,excludeOptionalTrailingSlash:n=!1}={}){let{parameterizedRoute:i,groups:o}=a(e,t,r),l=i;return n||(l+="(?:/)?"),{re:RegExp(`^${l}$`),groups:o}}function l({interceptionMarker:e,getSafeRouteKey:t,segment:r,routeKeys:i,keyPrefix:a,backreferenceDuplicateKeys:s}){let u,{key:c,optional:d,repeat:p}=(0,o.parseMatchedParameter)(r),f=c.replace(/\W/g,"");a&&(f=`${a}${f}`);let h=!1;(0===f.length||f.length>30)&&(h=!0),isNaN(parseInt(f.slice(0,1)))||(h=!0),h&&(f=t());let m=f in i;i[f]=a?`${a}${c}`:c;let g=e?(0,n.escapeStringRegexp)(e):"";return u=m&&s?`\\k<${f}>`:p?`(?<${f}>.+?)`:`(?<${f}>[^/]+?)`,{key:c,pattern:d?`(?:/${g}${u})?`:`/${g}${u}`,cleanedKey:f,optional:d,repeat:p}}function u(e,a,s,c,d,p={names:{},intercepted:{}}){let f=function(){let e=0;return()=>{let t="",r=++e;for(;r>0;)t+=String.fromCharCode(97+(r-1)%26),r=Math.floor((r-1)/26);return t}}(),h={},m=[],g=[];for(let u of(p=structuredClone(p),(0,i.removeTrailingSlash)(e).slice(1).split("/"))){let e,i=r.INTERCEPTION_ROUTE_MARKERS.some(e=>u.startsWith(e)),v=u.match(o.PARAMETER_PATTERN),E=i?v?.[1]:void 0;if(E&&v?.[2]?(e=a?t.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,p.intercepted[v[2]]=E):e=v?.[2]&&p.intercepted[v[2]]?a?t.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:a?t.NEXT_QUERY_PARAM_PREFIX:void 0,E&&v&&v[2]){let{key:t,pattern:r,cleanedKey:n,repeat:i,optional:o}=l({getSafeRouteKey:f,interceptionMarker:E,segment:v[2],routeKeys:h,keyPrefix:e,backreferenceDuplicateKeys:d});m.push(r),g.push(`/${v[1]}:${p.names[t]??n}${i?o?"*":"+":""}`),p.names[t]??=n}else if(v&&v[2]){c&&v[1]&&(m.push(`/${(0,n.escapeStringRegexp)(v[1])}`),g.push(`/${v[1]}`));let{key:t,pattern:r,cleanedKey:i,repeat:o,optional:a}=l({getSafeRouteKey:f,segment:v[2],routeKeys:h,keyPrefix:e,backreferenceDuplicateKeys:d}),s=r;c&&v[1]&&(s=s.substring(1)),m.push(s),g.push(`/:${p.names[t]??i}${o?a?"*":"+":""}`),p.names[t]??=i}else m.push(`/${(0,n.escapeStringRegexp)(u)}`),g.push(`/${u}`);
4s&&v&&v[3]&&(m.push((0,n.escapeStringRegexp)(v[3])),g.push(v[3]))}return{namedParameterizedRoute:m.join(""),routeKeys:h,pathToRegexpPattern:g.join(""),reference:p}}function c(e,t){let r=u(e,t.prefixRouteKeys,t.includeSuffix??!1,t.includePrefix??!1,t.backreferenceDuplicateKeys??!1,t.reference),n=r.namedParameterizedRoute;return t.excludeOptionalTrailingSlash||(n+="(?:/)?"),{...s(e,t),namedRegex:`^${n}$`,routeKeys:r.routeKeys,pathToRegexpPattern:r.pathToRegexpPattern,reference:r.reference}}function d(e,t){let{parameterizedRoute:r}=a(e,!1,!1),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:`^/${n?".*":""}$`};let{namedParameterizedRoute:i}=u(e,!1,!1,!1,!1,void 0);return{namedRegex:`^${i}${n?"(?:(/.*)?)":""}$`}}}(routeRegex)),routeRegex}function requireInterpolateAs(){return hasRequiredInterpolateAs||(hasRequiredInterpolateAs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"interpolateAs",{enumerable:!0,get:function(){return n}});let t=requireRouteMatcher(),r=requireRouteRegex();function n(e,n,i){let o="",a=(0,r.getRouteRegex)(e),s=a.groups,l=(n!==e?(0,t.getRouteMatcher)(a)(n):"")||i;o=e;let u=Object.keys(s);return u.every(e=>{let t=l[e]||"",{repeat:r,optional:n}=s[e],i=`[${r?"...":""}${e}]`;return n&&(i=`${t?"":"/"}[${i}]`),r&&!Array.isArray(t)&&(t=[t]),(n||e in l)&&(o=o.replace(i,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(o=""),{params:u,result:o}}}(interpolateAs)),interpolateAs}function requireResolveHref(){return hasRequiredResolveHref||(hasRequiredResolveHref=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return p}});let r=requireQuerystring(),n=requireFormatUrl(),i=requireOmit(),o=requireUtils$1(),a=requireNormalizeTrailingSlash(),s=requireIsLocalUrl(),l=requireUtils(),u=requireInterpolateAs(),c=requireRouteRegex(),d=requireRouteMatcher();function p(e,t,p){let f,h="string"==typeof t?t:(0,n.formatWithValidation)(t),m=h.match(/^[a-z][a-z0-9+.-]*:\/\//i),g=m?h.slice(m[0].length):h;if((g.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href '${h}' passed to next/router in page: '${e.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let t=(0,o.normalizeRepeatedSlashes)(g);h=(m?m[0]:"")+t}if(!(0,s.isLocalURL)(h))return p?[h]:h;try{let t=h.startsWith("#")?e.asPath:e.pathname;if(h.startsWith("?")&&(t=e.asPath,(0,l.isDynamicRoute)(e.pathname))){t=e.pathname;let r=(0,c.getRouteRegex)(e.pathname);(0,d.getRouteMatcher)(r)(e.asPath)||(t=e.asPath)}f=new URL(t,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(h,f);e.pathname=(0,a.normalizePathTrailingSlash)(e.pathname);let t="";if((0,l.isDynamicRoute)(e.pathname)&&e.searchParams&&p){let o=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:s}=(0,u.interpolateAs)(e.pathname,e.pathname,o);a&&(t=(0,n.formatWithValidation)({pathname:a,hash:e.hash,query:(0,i.omit)(o,s)}))}let o=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return p?[o,t||o]:o}catch(e){return p?[h]:h}}("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)}(resolveHref,resolveHref.exports)),resolveHref.exports}var hasRequiredAddPathPrefix,hasRequiredAddLocale$1,hasRequiredAddLocale,addLocale$1={exports:{}},addLocale={},addPathPrefix={};function requireAddPathPrefix(){return hasRequiredAddPathPrefix||(hasRequiredAddPathPrefix=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});let t=requireParsePath();function r(e,r){if(!e.startsWith("/")||!r)return e;let{pathname:n,query:i,hash:o}=(0,t.parsePath)(e);return`${r}${n}${i}${o}`}}(addPathPrefix)),addPathPrefix}function requireAddLocale$1(){return hasRequiredAddLocale$1||(hasRequiredAddLocale$1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return n}});let t=requireAddPathPrefix(),r=requirePathHasPrefix();function n(e,n,i,o){if(!n||n===i)return e;let a=e.toLowerCase();return!o&&((0,r.pathHasPrefix)(a,"/api")||(0,r.pathHasPrefix)(a,`/${n.toLowerCase()}`))?e:(0,t.addPathPrefix)(e,`/${n}`)}}(addLocale)),addLocale}function requireAddLocale(){return hasRequiredAddLocale||(hasRequiredAddLocale=1,function(e,t){Object.defineProperty(t,"__esMo
4dule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),requireNormalizeTrailingSlash();let r=(e,...t)=>e;("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)}(addLocale$1,addLocale$1.exports)),addLocale$1.exports}var hasRequiredRouterContext_sharedRuntime,routerContext_sharedRuntime={},_interop_require_default$1={};function _interop_require_default(e){return e&&e.__esModule?e:{default:e}}function requireRouterContext_sharedRuntime(){return hasRequiredRouterContext_sharedRuntime||(hasRequiredRouterContext_sharedRuntime=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"RouterContext",{enumerable:!0,get:function(){return t}});let t=_interop_require_default$1._(require$$0).default.createContext(null)}(routerContext_sharedRuntime)),routerContext_sharedRuntime}_interop_require_default$1._=_interop_require_default;var hasRequiredRequestIdleCallback,hasRequiredUseIntersection,useIntersection={exports:{}},requestIdleCallback={exports:{}};function requireRequestIdleCallback(){return hasRequiredRequestIdleCallback||(hasRequiredRequestIdleCallback=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return n},requestIdleCallback:function(){return r}});let r="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("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)}(requestIdleCallback,requestIdleCallback.exports)),requestIdleCallback.exports}function requireUseIntersection(){return hasRequiredUseIntersection||(hasRequiredUseIntersection=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=require$$0,n=requireRequestIdleCallback(),i="function"==typeof IntersectionObserver,o=new Map,a=[];function s(e,t,r){let{id:n,observer:i,elements:s}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=a.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=o.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},a.push(r),o.set(r,t),t}(r);return s.set(e,t),i.observe(e),function(){if(s.delete(e),i.unobserve(e),0===s.size){i.disconnect(),o.delete(n);let e=a.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&a.splice(e,1)}}}function l({rootRef:e,rootMargin:t,disabled:o}){let a=o||!i,[u,c]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(a||u)return;let r=d.current;if(r&&r.tagName)return s(r,e=>e&&c(e),{root:e?.current,rootMargin:t})}else if(!u){let e=(0,n.requestIdleCallback)(()=>c(!0));return()=>(0,n.cancelIdleCallback)(e)}},[a,t,e,u,d.current]),[p,u,(0,r.useCallback)(()=>{c(!1)},[])]}("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)}(useIntersection,useIntersection.exports)),useIntersection.exports}var hasRequiredNormalizeLocalePath$1,hasRequiredNormalizeLocalePath,getDomainLocale={exports:{}},normalizeLocalePath$1={exports:{}},normalizeLocalePath={};function requireNormalizeLocalePath$1(){return hasRequiredNormalizeLocalePath$1||(hasRequiredNormalizeLocalePath$1=1,function(e){Object.defineProperty(e,"__esMo
4dule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});let t=new WeakMap;function r(e,r){if(!r)return{pathname:e};let n,i=t.get(r);i||(i=r.map(e=>e.toLowerCase()),t.set(r,i));let o=e.split("/",2);if(!o[1])return{pathname:e};let a=o[1].toLowerCase(),s=i.indexOf(a);return s<0?{pathname:e}:(n=r[s],{pathname:e=e.slice(n.length+1)||"/",detectedLocale:n})}}(normalizeLocalePath)),normalizeLocalePath}function requireNormalizeLocalePath(){return hasRequiredNormalizeLocalePath||(hasRequiredNormalizeLocalePath=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});let r=(e,t)=>({pathname:e,detectedLocale:void 0});("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)}(normalizeLocalePath$1,normalizeLocalePath$1.exports)),normalizeLocalePath$1.exports}var hasRequiredDetectDomainLocale$1,hasRequiredDetectDomainLocale,hasRequiredGetDomainLocale,detectDomainLocale$1={exports:{}},detectDomainLocale={};function requireDetectDomainLocale$1(){return hasRequiredDetectDomainLocale$1||(hasRequiredDetectDomainLocale$1=1,function(e){function t(e,t,r){if(e){for(let n of(r&&(r=r.toLowerCase()),e))if(t===n.domain?.split(":",1)[0].toLowerCase()||r===n.defaultLocale.toLowerCase()||n.locales?.some(e=>e.toLowerCase()===r))return n}}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}})}(detectDomainLocale)),detectDomainLocale}function requireDetectDomainLocale(){return hasRequiredDetectDomainLocale||(hasRequiredDetectDomainLocale=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}});let r=(...e)=>{};("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)}(detectDomainLocale$1,detectDomainLocale$1.exports)),detectDomainLocale$1.exports}function requireGetDomainLocale(){return hasRequiredGetDomainLocale||(hasRequiredGetDomainLocale=1,function(e,t){function r(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),requireNormalizeTrailingSlash(),("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)}(getDomainLocale,getDomainLocale.exports)),getDomainLocale.exports}var hasRequiredAddBasePath,addBasePath={exports:{}};function requireAddBasePath(){return hasRequiredAddBasePath||(hasRequiredAddBasePath=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return o}});let r=requireAddPathPrefix(),n=requireNormalizeTrailingSlash(),i="/exp/homepage";function o(e,t){return(0,n.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,i))}("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)}(addBasePath,addBasePath.exports)),addBasePath.exports}var hasRequiredUseMergedRef,useMergedRef={exports:{}};function requireUseMergedRef(){return hasRequiredUseMergedRef||(hasRequiredUseMergedRef=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return n}});let r=require$$0;function n(e,t){let n=(0,r.useRef)(null),o=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(n.current=i(e,r)),t&&(o.current=i(t,r))},[e,t])}function i(e,t){if("function"==typeof e){let r=e(t);return"function"==typeof r?r:()=>e(null)}return e.current=t,()=>{e.current=null}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
4dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}(useMergedRef,useMergedRef.exports)),useMergedRef.exports}var hasRequiredErrorOnce,errorOnce={};function requireErrorOnce(){return hasRequiredErrorOnce||(hasRequiredErrorOnce=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"errorOnce",{enumerable:!0,get:function(){return t}});let t=e=>{}}(errorOnce)),errorOnce}!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return b},useLinkStatus:function(){return y}});let r=require$$1,n=_interop_require_wildcard$1._(require$$0),i=requireResolveHref(),o=requireIsLocalUrl(),a=requireFormatUrl(),s=requireUtils$1(),l=requireAddLocale(),u=requireRouterContext_sharedRuntime(),c=requireUseIntersection(),d=requireGetDomainLocale(),p=requireAddBasePath(),f=requireUseMergedRef(),h=(requireErrorOnce(),new Set);function m(e,t,r,n){if("u">typeof window&&(0,o.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(h.has(i))return;h.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function g(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}let v=n.default.forwardRef(function(e,t){let a,h,{href:v,as:E,children:y,prefetch:b=null,passHref:_,replace:w,shallow:S,scroll:T,locale:x,onClick:P,onNavigate:O,onMouseEnter:M,onTouchStart:R,legacyBehavior:I=!1,...L}=e;a=y,I&&("string"==typeof a||"number"==typeof a)&&(a=(0,r.jsx)("a",{children:a}));let C=n.default.useContext(u.RouterContext),A=!1!==b,{href:N,as:k}=n.default.useMemo(()=>{if(!C){let e=g(v);return{href:e,as:E?g(E):e}}let[e,t]=(0,i.resolveHref)(C,v,!0);return{href:e,as:E?(0,i.resolveHref)(C,E):t||e}},[C,v,E]),$=n.default.useRef(N),D=n.default.useRef(k);I&&(h=n.default.Children.only(a));let j=I?h&&"object"==typeof h&&h.ref:t,[F,B,H]=(0,c.useIntersection)({rootMargin:"200px"}),z=n.default.useCallback(e=>{D.current===k&&$.current===N||(H(),D.current=k,$.current=N),F(e)},[k,N,H,F]),G=(0,f.useMergedRef)(z,j);n.default.useEffect(()=>{C&&B&&A&&m(C,N,k,{locale:x})},[k,N,B,x,A,C?.locale,C]);let V={ref:G,onClick(e){I||"function"!=typeof P||P(e),I&&h.props&&"function"==typeof h.props.onClick&&h.props.onClick(e),C&&(e.defaultPrevented||function(e,t,r,n,i,a,s,l,u){let{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,o.isLocalURL)(r))return i&&(e.preventDefault(),location.replace(r));e.preventDefault(),(()=>{if(u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let e=s??!0;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,locale:l,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})()}}(e,C,N,k,w,S,T,x,O))},onMouseEnter(e){I||"function"!=typeof M||M(e),I&&h.props&&"function"==typeof h.props.onMouseEnter&&h.props.onMouseEnter(e),C&&m(C,N,k,{locale:x,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){I||"function"!=typeof R||R(e),I&&h.props&&"function"==typeof h.props.onTouchStart&&h.props.onTouchStart(e),C&&m(C,N,k,{locale:x,priority:!0,bypassPrefetchedCheck:!0})}};if((0,s.isAbsoluteUrl)(k))V.href=k;else if(!I||_||"a"===h.type&&!("href"in h.props)){let e=void 0!==x?x:C?.locale;V.href=C?.isLocaleDomain&&(0,d.getDomainLocale)(k,e,C?.locales,C?.domainLocales)||(0,p.addBasePath)((0,l.addLocale)(k,e,C?.defaultLocale))}return I?n.default.cloneElement(h,V):(0,r.jsx)("a",{...L,...V,children:a})}),E=(0,n.createContext)({pending:!1}),y=()=>(0,n.useContext)(E),b=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)}(link$1,link$1.exports),link$2.exports=link$1.exports;var _a,link=getDefaultExportFromCjs(link$2.exports),NextLink=_mergeNamespaces({__proto__:null,default:link},[link$2.exports]),initPromise=null,initMfe=function(e){return __awaiter(void 0,void 0,void 0,function(){return __generator(this,function(t){return initPromise||(initPromise=__awaiter(void 0,void 0,void 0,function(){var t,r;return __generator(this,function(n){try{t=null!=(r=process.env.NEXT_PUBLIC_MFE_PATH)?r:"/_next/static/chunks/",init({name:"host",remotes:[{name:"basket",entry:"".concat(e).concat(t,"basketMfe.remoteEntry.modern-2.0.js?cb=").concat((new Date).getTime())}],shared:{react:{lib:function(){return require$$0},shareConfig:{singleton:!0,requiredVersion:!1}},"react-dom":{lib:function(){return ReactDOM},shareConfig:{singleton:!0,requiredVersion:!1}},"next/router":{lib:function(){return NextRouter__namespace},shareConfig:{singleton:!0,requiredVersion:!1}},"next/link":{lib:function(){return NextLink},shareConfig:{singleton:!0,requiredVersion:!1}}}})}catch(e){throw initPromise=null,e}return[2]})})),[2,initPromise]})})},DEFAULT_BASKET_PATH="https://ee.co.uk/exp/basket",loadFederatedModule=function(e,t){return __awaiter(void 0,void 0,void 0,function(){var r,n,i;return __generator(this,function(o){switch(o.label){case 0:return[4,initMfe(null!=(n=getBasketAppPathFromCookie())?n:t)];case 1:return o.sent(),[4,loadRemote(e)];case 2:return[2,null!=(i=(r=o.sent()).default)?i:r]}})})},useFederatedModule=function(e,t){var r=__read(require$$0.useState(null),2),n=r[0],i=r[1];return require$$0.useEffect(function(){loadFederatedModule(e,t).then(function(e){return i(function(){return e})})},[e,t]),n},createFederatedComponent=function(e){return function(t){var r=t.basketPath,n=void 0===r?DEFAULT_BASKET_PATH:r,i=__rest(t,["basketPath"]),o=useFederatedModule(e,n);return o?require$$1.jsx(o,__assign({},i)):null}};isClient()&&"u">typeof window&&(window.basketConfig=window.basketConfig||{},(null==(_a=window.basketConfig)?void 0:_a.basketClickCallback)||(window.basketConfig.basketClickCallback=function(){window.basketConfig&&(window.basketConfig.pen
4dingOpen=!0)}));var BasketModal=createFederatedComponent("basket/BasketModal"),BasketPanel=createFederatedComponent("basket/BasketPanel"),callMfe=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=window.basketMfe;return"u">typeof window&&(null==n?void 0:n[e])?n[e].apply(void 0,__spreadArray([],__read(t),!1)):Promise.reject(Error("basketMfe not available"))},addItem=function(e){return callMfe("addItem",e)},addItems=function(e){return callMfe("addItems",e)},addAddToPlanItem=function(e){return callMfe("addAddToPlanItem",e)},saveDOB=function(e){return callMfe("saveDOB",e)},addTradeInItem=function(e){return callMfe("addTradeInItem",e)},openBasket=function(){callMfe("openBasket")},closeBasket=function(){callMfe("closeBasket")},updateNavigationCount=function(){callMfe("updateNavigationCount")},getBaseConvergedCheckoutUrl=function(){return callMfe("getBaseConvergedCheckoutUrl")},refetchConvergedCart=function(){return callMfe("refetchConvergedCart")},PERSONAL_DETAILS_MISSING_DOB_ERROR_CODE="MISSING_DOB",ELIGIBILITY_ERROR_CODE=5315,getFailureInfoFromError=function(e){var t,r,n=null,i=null,o=null;if(e&&Array.isArray(e.graphQLErrors)&&e.graphQLErrors.length&&(n=Number(null==(t=e.graphQLErrors[0].extensions)?void 0:t["error-code"])),e.errorCode===PERSONAL_DETAILS_MISSING_DOB_ERROR_CODE&&(n=e.errorCode,i=e.errorMessage,o=e),n===ELIGIBILITY_ERROR_CODE){var a=null==(r=e.graphQLErrors[0].extensions)?void 0:r["eligibility-details"];i=null==a?void 0:a[0].message,o=a}return{isSuccess:!1,actionErrorCode:n,actionErrorDescription:i,details:o}},useAddItems=function(){var e=__read(require$$0.useState(!1),2),t=e[0],r=e[1],n=__read(require$$0.useState(null),2),i=n[0],o=n[1];return{addItems:require$$0.useCallback(function(e){return __awaiter(void 0,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:r(!0),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,addItems(e)];case 2:return(t=n.sent())&&o(t),[3,4];case 3:return o(getFailureInfoFromError(n.sent())),[3,4];case 4:return r(!1),[2]}})})},[]),isLoading:t,hasError:i&&!i.isSuccess,actionResult:i}},useAddToPlan=function(){var e=__read(require$$0.useState(!1),2),t=e[0],r=e[1],n=__read(require$$0.useState(null),2),i=n[0],o=n[1];return{addAddToPlanItem:require$$0.useCallback(function(e){return __awaiter(void 0,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:r(!0),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,addAddToPlanItem(e)];case 2:return(t=n.sent())&&o(t),[3,4];case 3:return o(getFailureInfoFromError(n.sent())),[3,4];case 4:return r(!1),[2]}})})},[]),isLoading:t,hasError:i&&!i.isSuccess,actionResult:i}},useSaveDOB=function(){var e=__read(require$$0.useState(!1),2),t=e[0],r=e[1],n=__read(require$$0.useState(null),2),i=n[0],o=n[1];return{saveDOB:require$$0.useCallback(function(e){return __awaiter(void 0,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:r(!0),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,saveDOB(e)];case 2:return(t=n.sent())&&o(t),[3,4];case 3:return o(n.sent()),[3,4];case 4:return r(!1),[2]}})})},[]),isLoading:t,hasError:i&&!i.isSuccess,actionResult:i}},useTradeIn=function(){var e=__read(require$$0.useState(!1),2),t=e[0],r=e[1],n=__read(require$$0.useState(null),2),i=n[0],o=n[1];return{addTradeInItem:require$$0.useCallback(function(e){return __awaiter(void 0,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:r(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,addTradeInItem(e)];case 2:return(t=n.sent())&&o(t),[3,5];case 3:return o(getFailureInfoFromError(n.sent())),[3,5];case 4:return r(!1),[7];case 5:return[2]}})})},[]),isLoading:t,hasError:!t&&i&&!i.isSuccess,actionResult:i}},useMFEBasketLoaded=function(){var e=__read(require$$0.useState(!1),2),t=e[0],r=e[1];return require$$0.useEffect(function(){if("u">typeof window){var e;return e=setInterval(function(){var t;(null==(t=null==window?void 0:window.basketMfe)?void 0:t.isReady)&&(r(!0),clearInterval(e))},100),function(){clearInterval(e)}}},[]),{isReady:t}};exports.bK=void 0,(exports.bK||(exports.bK={})).CONVERGED_CART_UPDATED="converged_cart_updated",exports.on=BasketModal,__webpack_unused_export__=BasketPanel,__webpack_unused_export__=PERSONAL_DETAILS_MISSING_DOB_ERROR_CODE,__webpack_unused_export__=addAddToPlanItem,__webpack_unused_export__=addItem,__webpack_unused_export__=addItems,__webpack_unused_export__=addTradeInItem,__webpack_unused_export__=closeBasket,__webpack_unused_export__=getBaseConvergedCheckoutUrl,__webpack_unused_export__=openBasket,__webpack_unused_export__=refetchConvergedCart,__webpack_unused_export__=saveDOB,__webpack_unused_export__=updateNavigationCount,__webpack_unused_export__=useAddItems,__webpack_unused_export__=useAddToPlan,__webpack_unused_export__=useMFEBasketLoaded,__webpack_unused_export__=useSaveDOB,__webpack_unused_export__=useTradeIn},32667:(e,t,r)=>{"use strict";r.d(t,{d:()=>s});var n=r(257),i=r(55729),o=r(81196);let a=e=>e>=n.LoopEeBreakpointXs&&e<n.LoopEeBreakpointS?"xs":e>=n.LoopEeBreakpointS&&e<n.LoopEeBreakpointM?"s":e>=n.LoopEeBreakpointM&&e<n.LoopEeBreakpointL?"m":e>=n.LoopEeBreakpointL&&e<n.LoopEeBreakpointXl?"l":e>=n.LoopEeBreakpointXl?"xl":"xs",s=e=>{let[t,r]=(0,i.useState)(()=>e||"xs");return(0,i.useEffect)(()=>{r(a(window.innerWidth));let e=(0,o.s)(()=>{r(a(window.innerWidth))},200);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}},[]),t}},40785:(e,t,r)=>{"use strict";r.d(t,{t:()=>O});var n=r(99352),i=r(74003),o=r(81599),a=r(27831),s=r(55729),l=r(97305),u=r(3102),c=r(562),d=r(75841),p=r(22836),f=r(15584),h=r(60825),m=r(49273);let g=(e,t,r,n,i,o,u)=>{let c=e===n,d={"lc-TabsEE-button":!0,[`lc-TabsEE-button--kind${t&&(0,l.B)(t)}`]:t,[`lc-TabsEE-button--margin${o}`]:0===o||o},p=()=>{let e=s.createElement(h.D,{size:"s"},i),n=s.createElement("span",{className:"lc-TabsEE-slot"},u),o=e;if(r)switch(t){case"iconOnly":o=s.createElement(m.I,{source:r});break;case"leadingIcon":o=s.createElement(s.Fragment,null,s.createElement(m.I,{size:"xs",source:r}),e);break;case"trailingIcon":o=s.createElement(s.Fragment,null,e,s.createElement(m.I,{size:"xs",source:r}));break;case"stacked":o=s.createElement(s.Fragment,null,s.createElement(m.I,{source:r}),s.createElement("br",null),e)}if(u)switch(t){case"slotOnly":o=n;break;
4case"trailingSlot":o=s.createElement(s.Fragment,null,e,n);break;case"leadingSlot":o=s.createElement(s.Fragment,null,n,e);break;case"stacked":o=s.createElement(s.Fragment,null,n,s.createElement("br",null),e)}return s.createElement("span",{className:"lc-TabsEE-listItemInner"},o)},f=()=>e||0!==n?c?0:-1:0;return{classes:(0,a.A)(d),getTabIndex:f,isActive:c,tabKind:p}},v=(0,s.forwardRef)(({activeTabIndex:e,"aria-controls":t,id:r,index:n,kind:i,onSelectTab:o,setFocusedTabIndex:a,tabPanelProps:l},u)=>{let{"data-analytics-link":c,icon:d,label:p,margin:h=4,slot:m}=l,{classes:v,getTabIndex:E,isActive:y,tabKind:b}=g(e,i,d,n,p,h,m),_=s.createElement("button",{"aria-controls":t,"aria-label":"iconOnly"===i?p:void 0,"aria-selected":y,className:v,"data-analytics-link":c,id:r,onClick:()=>o(n),onFocus:()=>a(n),ref:u,role:"tab",tabIndex:E(),type:"button"},b());return"iconOnly"===i&&d?s.createElement(f.m,{role:"presentation",text:p},_):_});var E=r(27014);let y=(0,s.forwardRef)((e,t)=>{var{"data-analytics-link":r,href:n,icon:i,label:o,margin:a=4,onBlur:l,onClick:u,onFocus:c,onMouseEnter:d,onMouseLeave:p,rel:h,slot:m,target:v="_self"}=e;let{activeTabIndex:y,id:b,index:_,kind:w,setFocusedTabIndex:S,tabItemRef:T}=(0,E.T)(e,["data-analytics-link","href","icon","label","margin","onBlur","onClick","onFocus","onMouseEnter","onMouseLeave","rel","slot","target"]);(0,s.useImperativeHandle)(t,()=>T.current,[T]);let{classes:x,getTabIndex:P,isActive:O,tabKind:M}=g(y,w,i,_,o,a,m),R=(0,s.useCallback)(e=>{c&&c(e),S(_)},[_,c,S]),I=s.createElement("a",{"aria-label":"iconOnly"===w?o:void 0,"aria-selected":O,className:x,"data-analytics-link":r,href:n,id:b,onBlur:l,onClick:u,onFocus:R,onMouseEnter:d,onMouseLeave:p,ref:T,rel:h,role:"tab",tabIndex:P(),target:v},M());return"iconOnly"===w&&i?s.createElement(f.m,{text:o},I):I}),b=(0,s.forwardRef)((e,t)=>{let r=e,{children:n,icon:i,label:o,margin:a,slot:l,tabItemRef:u}=r,c=(0,E.T)(r,["children","icon","label","margin","slot","tabItemRef"]),d=(0,s.useRef)(null);return(0,s.useImperativeHandle)(t,()=>({tabButton:(null==u?void 0:u.current)||null,tabPanel:d.current}),[u]),s.createElement("div",Object.assign({className:"lc-TabsEE-panel",role:"tabpanel",tabIndex:0},c,{ref:d}),n)});var _=r(49411),w=r(81196);let S=48,T=8,x=0,P=(e,t)=>{let[r,n]=(0,s.useState)(!1),[i,o]=(0,s.useState)(t),[a,l]=(0,s.useState)(t||0),[u,c]=(0,s.useState)({toLeft:!1,toRight:!1}),d=(0,s.useRef)(null),[p,f]=(0,s.useState)(0),[h,m]=(0,s.useState)(0),[g,v]=(0,s.useState)(x),E=(0,s.useMemo)(()=>s.Children.map(e,()=>(0,s.createRef)())||[],[e]);return(0,s.useEffect)(()=>{E&&m(E.reduce((e,t)=>e+(0,_.RG)(t)+T,-T))},[E]),(0,s.useEffect)(()=>{!r&&d.current&&f((0,_.RG)(d))},[r]),(0,s.useEffect)(()=>{if(!r&&i){let e=(0,_.f1)(E[i]),t=(0,_.f1)(d);e>t&&v(g-(e-t)-S),n(!0)}},[a,i,r,E,d,g]),(0,s.useEffect)(()=>{let e=h+g>p,t=(0,_._R)(d);c({toLeft:(0,_._R)(d)+g<t,toRight:e})},[d,g,h,p]),(0,s.useEffect)(()=>{let e=(0,w.s)(()=>{f((0,_.RG)(d));let e=(0,_.f1)(E[i||a]),t=(0,_.f1)(d);e>t&&v(g-(e-t)-S),t>h&&v(x)},500);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}},[i,a,E,h,g]),{activeTabIndex:i,handleKeyPress:e=>{let{key:t}=e;if(!["ArrowLeft","ArrowRight","End","Home"].includes(t))return;e.stopPropagation(),e.preventDefault();let r="ArrowRight"===t,n="ArrowLeft"===t,i=E.length-1,o=E[a+(r?1:-1)];if((n&&0===a||"End"===t)&&(o=E[i]),(r&&a===i||"Home"===t)&&([o]=E),o&&o.current){if(r){let e=(0,_.f1)(o),t=(0,_.f1)(d);e>t?v(g-(e-t)-S):o===E[0]&&v(x)}else if(n){let e=(0,_._R)(o),t=(0,_._R)(d);e<t?o===E[0]?v(x):v(g-e+S):o===E[i]&&u.toRight&&v(-1*((0,_._R)(o)-t)+S)}o.current.focus()}},handlePageLeft:e=>{e.preventDefault(),v(Math.min(g+Math.min(p/3,h-(0,_._R)(d)),x))},handlePageRight:e=>{e.preventDefault();let t=-1*h+p;v(Math.max(g-p/3,t))},listRef:d,overflows:u,setActiveTabIndex:o,setFocusedTabIndex:l,tabItemRefs:E,xOffset:g}},O=Object.assign((0,s.forwardRef)(({children:e,controlledIndex:t,"data-testid":r,defaultIndex:f,hasDivider:h=!0,id:m,isEqualWidth:g=!1,justify:E="start",kind:b="labelOnly",onChange:_},w)=>{(0,c.q)("iconOnly"===b,"kind='iconOnly'","kind='slotOnly'"),(0,c.q)("leadingIcon"===b,"kind='leadingIcon'","kind='leadingSlot'"),(0,c.q)("trailingIcon"===b,"kind='trailingIcon'","kind='trailingSlot'");
4let{surfaceBackground:S}=(0,s.useContext)(p.B),T=(0,o.B)(m),x=`tab-item-${T}-`,O=`tab-panel-${T}-`,{activeTabIndex:M,handleKeyPress:R,handlePageLeft:I,handlePageRight:L,listRef:C,overflows:A,setActiveTabIndex:N,setFocusedTabIndex:k,tabItemRefs:$,xOffset:D}=P(e,f),j=(0,s.useMemo)(()=>Object.values(A).includes(!0)?"start":E,[E,A]),F=null!=t?t:M,B=(0,s.useCallback)(e=>{_&&_(e),N(e)},[_,N]),H={"lc-TabsEE":!0,"lc-TabsEE--isEqualWidth":g,[`lc-TabsEE--justify${E&&(0,l.B)(j)}`]:E,"lc-TabsEE--onDarkBackground":u.wg.includes(S),[`lc-TabsEE--on${(0,l.B)(S)}Surface`]:S},z={backdrop:"transparent",elementType:"button",size:"s",styleVariant:"secondary"};return s.createElement("div",{className:(0,a.A)(H),"data-testid":r,ref:w},s.createElement("div",{className:"lc-TabsEE-overflow-container"},A.toLeft&&!g&&s.createElement("div",{className:"lc-TabsEE-left-button"},s.createElement(d.K,Object.assign({},z,{icon:n.g,label:"Previous",onClick:e=>I(e)}))),s.createElement("div",{className:"lc-TabsEE-list-container",ref:C},s.createElement("ul",{className:"lc-TabsEE-list",onKeyDown:R,role:"tablist",style:g?{}:{transform:`translateX(${D}px)`}},s.Children.map(e,(e,t)=>{if(!(0,s.isValidElement)(e))return null;let r=x+t,n=O+t,i=()=>(0,s.isValidElement)(e)&&e.type===y?(0,s.cloneElement)(e,{activeTabIndex:F,id:r,index:t,kind:b,setFocusedTabIndex:k,tabItemRef:$[t]}):s.createElement(v,{activeTabIndex:F,"aria-controls":n,id:r,index:t,kind:b,onSelectTab:B,ref:$[t],setFocusedTabIndex:k,tabPanelProps:e.props});return s.createElement("li",{className:"lc-TabsEE-listItem",role:"presentation"},i())}))),A.toRight&&!g&&s.createElement("div",{className:"lc-TabsEE-right-button"},s.createElement(d.K,Object.assign({},z,{icon:i.V,label:"Next",onClick:e=>L(e)})))),h&&s.createElement("hr",{className:"lc-TabsEE-divider"}),s.Children.map(e,(e,t)=>{if(!(0,s.isValidElement)(e)||e.type===y)return null;let r=x+t,n=O+t;return(0,s.cloneElement)(e,{"aria-hidden":F!==t,"aria-labelledby":r,id:n,tabItemRef:$[t]})}))}),{TabLink:y,TabPanel:b})},74003:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,V:()=>o});var n=r(55729),i=r(62448);let o=(0,n.forwardRef)((e,t)=>((0,i.q)(!1,"IconChevronRight"),n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",ref:t},e),n.createElement("path",{d:"M13.678 9.264a.9.9 0 0 0-1.272 0l-.142.142a.9.9 0 0 0 0 1.272L17.586 16l-5.322 5.322a.9.9 0 0 0 0 1.272l.142.142a.9.9 0 0 0 1.272 0l6.03-6.03a1 1 0 0 0 0-1.414l-6.03-6.03z"}))));o.displayName="LoopChevronRight"},88629:(e,t,r)=>{"use strict";let n,i,o;r.d(t,{F:()=>tc});var a=r(27014),s=r(27831),l=r(55729);function u(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function c(e={},t={}){let r=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>r.indexOf(e)).forEach(r=>{void 0===e[r]?e[r]=t[r]:u(t[r])&&u(e[r])&&Object.keys(t[r]).length>0&&c(e[r],t[r])})}let d={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function p(){let e="u">typeof document?document:{};return c(e,d),e}let f={document:d,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"u"<typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"u">typeof setTimeout&&clearTimeout(e)}};function h(){let e="u">typeof window?window:{};return c(e,f),e}function m(e=""){return e.trim().split(" ").filter(e=>!!e.trim())}function g(e){let t=e;
4Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}function v(e,t=0){return setTimeout(e,t)}function E(){return Date.now()}function y(e){let t,r=h();return r.getComputedStyle&&(t=r.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}function b(e,t="x"){let r,n,i,o=h(),a=y(e);return o.WebKitCSSMatrix?((n=a.transform||a.webkitTransform).split(",").length>6&&(n=n.split(", ").map(e=>e.replace(",",".")).join(", ")),i=new o.WebKitCSSMatrix("none"===n?"":n)):r=(i=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(n=o.WebKitCSSMatrix?i.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(n=o.WebKitCSSMatrix?i.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),n||0}function _(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function w(e){return"u">typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function S(...e){let t=Object(e[0]);for(let r=1;r<e.length;r+=1){let n=e[r];if(null!=n&&!w(n)){let e=Object.keys(Object(n)).filter(e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e);for(let r=0,i=e.length;r<i;r+=1){let i=e[r],o=Object.getOwnPropertyDescriptor(n,i);void 0!==o&&o.enumerable&&(_(t[i])&&_(n[i])?n[i].__swiper__?t[i]=n[i]:S(t[i],n[i]):!_(t[i])&&_(n[i])?(t[i]={},n[i].__swiper__?t[i]=n[i]:S(t[i],n[i])):t[i]=n[i])}}}return t}function T(e,t,r){e.style.setProperty(t,r)}function x({swiper:e,targetPosition:t,side:r}){let n,i=h(),o=-e.translate,a=null,s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);let l=t>o?"next":"prev",u=(e,t)=>"next"===l&&e>=t||"prev"===l&&e<=t,c=()=>{n=new Date().getTime(),null===a&&(a=n);let l=o+(.5-Math.cos(Math.max(Math.min((n-a)/s,1),0)*Math.PI)/2)*(t-o);if(u(l,t)&&(l=t),e.wrapperEl.scrollTo({[r]:l}),u(l,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:l})}),i.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=i.requestAnimationFrame(c)};c()}function P(e,t=""){let r=h(),n=[...e.children];return(r.HTMLSlotElement&&e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t)?n.filter(e=>e.matches(t)):n}function O(e,t){let r=[t];for(;r.length>0;){let t=r.shift();if(e===t)return!0;r.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}function M(e,t){let r=h(),n=t.contains(e);return!n&&r.HTMLSlotElement&&t instanceof HTMLSlotElement&&((n=[...t.assignedElements()].includes(e))||(n=O(e,t))),n}function R(e){try{console.warn(e);return}catch(e){}}function I(e,t=[]){let r=document.createElement(e);return r.classList.add(...Array.isArray(t)?t:m(t)),r}function L(e){let t=h(),r=p(),n=e.getBoundingClientRect(),i=r.body,o=e.clientTop||i.clientTop||0,a=e.clientLeft||i.clientLeft||0,s=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:n.top+s-o,left:n.left+l-a}}function C(e,t){let r=[];for(;e.previousElementSibling;){let n=e.previousElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function A(e,t){let r=[];for(;e.nextElementSibling;){let n=e.nextElementSibling;t?n.matches(t)&&r.push(n):r.push(n),e=n}return r}function N(e,t){return h().getComputedStyle(e,null).getPropertyValue(t)}function k(e){let t,r=e;if(r){for(t=0;null!==(r=r.previousSibling);)1===r.nodeType&&(t+=1);return t}}function $(e,t){let r=[],n=e.parentElement;for(;n;)t?n.matches(t)&&r.push(n):r.push(n),n=n.parentElement;return r}function D(e,t){function r(n){n.target===e&&(t.call(e,n),e.removeEventListener("transitionend",r))}t&&e.addEventListener("transitionend",r)}function j(e,t,r){let n=h();return r?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function F(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function B(e,t=""){"u">typeof trustedTypes?e.innerHTML=trustedTypes.createPolicy("html",{createHTML:e=>e}).createHTML(t):e.innerHTML=t}function H({swiper:e,extendParams:t,on:r,emit:n}){let i;t({virtual:{enabled:!1,slides:[],cache:!0,slidesPerViewAutoSlideSize:320,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let o=p();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};let a=o.createElement("div");function s(t,r){let n,i=e.params.virtual;return i.cache&&e.virtual.cache[r]?e.virtual.cache[r]:(i.renderSlide?"string"==typeof(n=i.renderSlide.call(e,t,r))&&(B(a,n),n=a.children[0]):n=e.isElement?I("swiper-slide"):I("div",e.params.slideClass),n.setAttribute("data-swiper-slide-index",r),i.renderSlide||B(n,t),i.cache&&(e.virtual.cache[r]=n),n)}function l(t,r,i){let o,a,l,u,{slidesPerGroup:c,centeredSlides:d,slidesPerView:p,loop:f,initialSlide:h}=e.params;if(r&&!f&&h>0)return;let{addSlidesBefore:m,addSlidesAfter:g,slidesPerViewAutoSlideSize:v}
4=e.params.virtual,{from:E,to:y,slides:b,slidesGrid:_,offset:w}=e.virtual;e.params.cssMode||e.updateActiveIndex();let S=void 0===i?e.activeIndex||0:i;if(o=e.rtlTranslate?"right":e.isHorizontal()?"left":"top","auto"===p)if(v){let t=e.size;t||(t=e.isHorizontal()?e.el.getBoundingClientRect().width:e.el.getBoundingClientRect().height),a=Math.max(1,Math.ceil(t/v))}else a=1;else a=p;d?(l=Math.floor(a/2)+c+g,u=Math.floor(a/2)+c+m):(l=a+(c-1)+g,u=(f?a:c)+m);let T=S-u,x=S+l;f||(T=Math.max(T,0),x=Math.min(x,b.length-1));let O=(e.slidesGrid[T]||0)-(e.slidesGrid[0]||0);function M(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n("virtualUpdate")}if(f&&S>=u?(T-=u,d||(O+=e.slidesGrid[0])):f&&S<u&&(T=-u,d&&(O+=e.slidesGrid[0])),Object.assign(e.virtual,{from:T,to:x,offset:O,slidesGrid:e.slidesGrid,slidesBefore:u,slidesAfter:l}),E===T&&y===x&&!t){e.slidesGrid!==_&&O!==w&&e.slides.forEach(t=>{t.style[o]=`${O-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),n("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:O,from:T,to:x,slides:function(){let e=[];for(let t=T;t<=x;t+=1)e.push(b[t]);return e}()}),e.params.virtual.renderExternalUpdate?M():n("virtualUpdate");return}let R=[],I=[],L=e=>{let t=e;return e<0?t=b.length+e:t>=b.length&&(t-=b.length),t};if(t)e.slides.filter(t=>t.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(e=>{e.remove()});else for(let t=E;t<=y;t+=1)if(t<T||t>x){let r=L(t);e.slides.filter(t=>t.matches(`.${e.params.slideClass}[data-swiper-slide-index="${r}"], swiper-slide[data-swiper-slide-index="${r}"]`)).forEach(e=>{e.remove()})}let C=f?-b.length:0,A=f?2*b.length:b.length;for(let e=C;e<A;e+=1)if(e>=T&&e<=x){let r=L(e);void 0===y||t?I.push(r):(e>y&&I.push(r),e<E&&R.push(r))}if(I.forEach(t=>{e.slidesEl.append(s(b[t],t))}),f)for(let t=R.length-1;t>=0;t-=1){let r=R[t];e.slidesEl.prepend(s(b[r],r))}else R.sort((e,t)=>t-e),R.forEach(t=>{e.slidesEl.prepend(s(b[t],t))});P(e.slidesEl,".swiper-slide, swiper-slide").forEach(t=>{t.style[o]=`${O-Math.abs(e.cssOverflowAdjustment())}px`}),M()}function u(t){if("object"==typeof t&&"length"in t)for(let r=0;r<t.length;r+=1)t[r]&&e.virtual.slides.push(t[r]);else e.virtual.slides.push(t);l(!0)}function c(t){let r=e.activeIndex,n=r+1,i=1;if(Array.isArray(t)){for(let r=0;r<t.length;r+=1)t[r]&&e.virtual.slides.unshift(t[r]);n=r+t.length,i=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){let t=e.virtual.cache,r={};Object.keys(t).forEach(e=>{let n=t[e],o=n.getAttribute("data-swiper-slide-index");o&&n.setAttribute("data-swiper-slide-index",parseInt(o,10)+i),r[parseInt(e,10)+i]=n}),e.virtual.cache=r}l(!0),e.slideTo(n,0)}function d(t){if(null==t)return;let r=e.activeIndex;if(Array.isArray(t))for(let n=t.length-1;n>=0;n-=1)e.params.virtual.cache&&(delete e.virtual.cache[t[n]],Object.keys(e.virtual.cache).forEach(r=>{r>t&&(e.virtual.cache[r-1]=e.virtual.cache[r],e.virtual.cache[r-1].setAttribute("data-swiper-slide-index",r-1),delete e.virtual.cache[r])})),e.virtual.slides.splice(t[n],1),t[n]<r&&(r-=1),r=Math.max(r,0);else e.params.virtual.cache&&(delete e.virtual.cache[t],Object.keys(e.virtual.cache).forEach(r=>{r>t&&(e.virtual.cache[r-1]=e.virtual.cache[r],e.virtual.cache[r-1].setAttribute("data-swiper-slide-index",r-1),delete e.virtual.cache[r])})),e.virtual.slides.splice(t,1),t<r&&(r-=1),r=Math.max(r,0);l(!0),e.slideTo(r,0)}function f(){e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),l(!0),e.slideTo(0,0)}r("beforeInit",()=>{let t;if(e.params.virtual.enabled){if(void 0===e.passedParams.virtual.slides){let r=[...e.slidesEl.children].filter(t=>t.matches(`.${e.params.slideClass}, swiper-slide`));r&&r.length&&(e.virtual.slides=[...r],t=!0,r.forEach((t,r)=>{t.setAttribute("data-swiper-slide-index",r),e.virtual.cache[r]=t,t.remove()}))}t||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,l(!1,!0)}}),r("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(i),i=setTimeout(()=>{l()},100)):l())}),r("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&T(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:u,prependSlide:c,removeSlide:d,removeAllSlides:f,update:l})}function z({swiper:e,extendParams:t,on:r,emit:n}){let i=p(),o=h();function a(t){if(!e.enabled)return;let{rtlTranslate:r}=e,a=t;a.originalEvent&&(a=a.originalEvent);let s=a.keyCode||a.charCode,l=e.params.keyboard.pageUpDown,u=l&&33===s,c=l&&34===s,d=37===s,p=39===s,f=38===s,h=40===s;if(!e.allowSlideNext&&(e.isHorizontal()&&p||e.isVertical()&&h||c)||!e.allowSlidePrev&&(e.isHorizontal()&&d||e.isVertical()&&f||u))return!1;
vendor: 4,454 bytes, line 4
4if(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||i.activeElement&&(i.activeElement.isContentEditable||i.activeElement.nodeName&&("input"===i.activeElement.nodeName.toLowerCase()||"textarea"===i.activeElement.nodeName.toLowerCase())))return;if(e.params.keyboard.onlyInViewport&&(u||c||d||p||f||h)){let t=!1;if($(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&0===$(e.el,`.${e.params.slideActiveClass}`).length)return;let n=e.el,i=n.clientWidth,a=n.clientHeight,s=o.innerWidth,l=o.innerHeight,u=L(n);r&&(u.left-=n.scrollLeft);let c=[[u.left,u.top],[u.left+i,u.top],[u.left,u.top+a],[u.left+i,u.top+a]];for(let e=0;e<c.length;e+=1){let r=c[e];if(r[0]>=0&&r[0]<=s&&r[1]>=0&&r[1]<=l){if(0===r[0]&&0===r[1])continue;t=!0}}if(!t)return}let m=e.params.keyboard.speed;e.isHorizontal()?((u||c||d||p)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),((c||p)&&!r||(u||d)&&r)&&e.slideNext(m),((u||d)&&!r||(c||p)&&r)&&e.slidePrev(m)):((u||c||f||h)&&(a.preventDefault?a.preventDefault():a.returnValue=!1),(c||h)&&e.slideNext(m),(u||f)&&e.slidePrev(m)),n("keyPress",s)}function s(){e.keyboard.enabled||(i.addEventListener("keydown",a),e.keyboard.enabled=!0)}function l(){e.keyboard.enabled&&(i.removeEventListener("keydown",a),e.keyboard.enabled=!1)}e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}}),r("init",()=>{e.params.keyboard.enabled&&s()}),r("destroy",()=>{e.keyboard.enabled&&l()}),Object.assign(e.keyboard,{enable:s,disable:l})}function G(e=""){return`.${e.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function V({swiper:e,extendParams:t,on:r}){let n,i;t({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),e.a11y={clicked:!1};let o=null,a=new Date().getTime();function s(e){let t=o;0!==t.length&&B(t,e)}function l(e=16){let t=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(e).replace(/x/g,t)}function u(e){(e=F(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function c(e){(e=F(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function d(e,t){(e=F(e)).forEach(e=>{e.setAttribute("role",t)})}function f(e,t){(e=F(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function h(e,t){(e=F(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}function m(e,t){(e=F(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function g(e,t){(e=F(e)).forEach(e=>{e.setAttribute("id",t)})}function v(e,t){(e=F(e)).forEach(e=>{e.setAttribute("aria-live",t)})}function E(e){(e=F(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function y(e){(e=F(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function b(t){if(13!==t.keyCode&&32!==t.keyCode)return;let r=e.params.a11y,n=t.target;if(!(e.pagination&&e.pagination.el&&(n===e.pagination.el||e.pagination.el.contains(t.target)))||t.target.matches(G(e.params.pagination.bulletClass))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){let t=F(e.navigation.prevEl);F(e.navigation.nextEl).includes(n)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(r.lastSlideMessage):s(r.nextSlideMessage)),t.includes(n)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(r.firstSlideMessage):s(r.prevSlideMessage))}e.pagination&&n.matches(G(e.params.pagination.bulletClass))&&n.click()}}function _(){if(e.params.loop||e.params.rewind||!e.navigation)return;let{nextEl:t,prevEl:r}=e.navigation;r&&(e.isBeginning?(E(r),c(r)):(y(r),u(r))),t&&(e.isEnd?(E(t),c(t)):(y(t),u(t)))}function w(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function S(){return w()&&e.params.pagination.clickable}function T(){let t=e.params.a11y;w()&&e.pagination.bullets.forEach(r=>{e.params.pagination.clickable&&(u(r),e.params.pagination.renderBullet||(d(r,"button"),m(r,t.paginationBulletMessage.replace(/\{\{index\}\}/,k(r)+1)))),r.matches(G(e.params.pagination.bulletActiveClass))?r.setAttribute("aria-current","true"):r.removeAttribute("aria-current")})}let x=(e,t,r)=>{u(e),"BUTTON"!==e.tagName&&(d(e,"button"),e.addEventListener("keydown",b)),m(e,r),h(e,t)},P=t=>
4{i&&i!==t.target&&!i.contains(t.target)&&(n=!0),e.a11y.clicked=!0},O=()=>{n=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},M=e=>{a=new Date().getTime()},R=t=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus||new Date().getTime()-a<100)return;let r=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!r||!e.slides.includes(r))return;i=r;let o=e.virtual&&e.params.virtual.enabled,s=(o?parseInt(r.getAttribute("data-swiper-slide-index"),10):e.slides.indexOf(r))===e.activeIndex,l=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(r);s||l||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{n||(e.params.loop?e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(r.getAttribute("data-swiper-slide-index"))),0):o?e.slideTo(e.getSlideIndexWhenGrid(parseInt(r.getAttribute("data-swiper-slide-index"),10)),0):e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(r)),0),n=!1)}))},L=()=>{let t=e.params.a11y;t.itemRoleDescriptionMessage&&f(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&d(e.slides,t.slideRole);let r=e.slides.length;t.slideLabelMessage&&e.slides.forEach((n,i)=>{let o=e.params.loop?parseInt(n.getAttribute("data-swiper-slide-index"),10):i;m(n,t.slideLabelMessage.replace(/\{\{index\}\}/,o+1).replace(/\{\{slidesLength\}\}/,r))})},C=()=>{let t=e.params.a11y;e.el.append(o);let r=e.el;t.containerRoleDescriptionMessage&&f(r,t.containerRoleDescriptionMessage),t.containerMessage&&m(r,t.containerMessage),t.containerRole&&d(r,t.containerRole);let n=e.wrapperEl,i=t.id||n.getAttribute("id")||`swiper-wrapper-${l(16)}`;g(n,i),t.wrapperLiveRegion&&v(n,e.params.autoplay&&e.params.autoplay.enabled?"off":"polite"),L();let{nextEl:a,prevEl:s}=e.navigation?e.navigation:{};a=F(a),s=F(s),a&&a.forEach(e=>x(e,i,t.nextSlideMessage)),s&&s.forEach(e=>x(e,i,t.prevSlideMessage)),S()&&F(e.pagination.el).forEach(e=>{e.addEventListener("keydown",b)}),p().addEventListener("visibilitychange",M),e.el.addEventListener("focus",R,!0),e.el.addEventListener("pointerdown",P,!0),e.el.addEventListener("pointerup",O,!0)};function A(){o&&o.remove();let{nextEl:t,prevEl:r}=e.navigation?e.navigation:{};t=F(t),r=F(r),t&&t.forEach(e=>e.removeEventListener("keydown",b)),r&&r.forEach(e=>e.removeEventListener("keydown",b)),S()&&F(e.pagination.el).forEach(e=>{e.removeEventListener("keydown",b)}),p().removeEventListener("visibilitychange",M),e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("focus",R,!0),e.el.removeEventListener("pointerdown",P,!0),e.el.removeEventListener("pointerup",O,!0))}r("beforeInit",()=>{(o=I("span",e.params.a11y.notificationClass)).setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),r("afterInit",()=>{e.params.a11y.enabled&&C()}),r("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&L()}),r("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&_()}),r("paginationUpdate",()=>{e.params.a11y.enabled&&T()}),r("destroy",()=>{e.params.a11y.enabled&&A()})}function W({swiper:e,extendParams:t,on:r,emit:n,params:i}){let o,a,s,l,u,c,d,f,h;e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let m=i&&i.autoplay?i.autoplay.delay:3e3,g=i&&i.autoplay?i.autoplay.delay:3e3,v=new Date().getTime();function E(t){!e||e.destroyed||!e.wrapperEl||t.target!==e.wrapperEl||(e.wrapperEl.removeEventListener("transitionend",E),h||t.detail&&t.detail.bySwiperTouchMove||P())}let y=()=>
4{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?l=!0:l&&(g=s,l=!1);let t=e.autoplay.paused?s:v+g-new Date().getTime();e.autoplay.timeLeft=t,n("autoplayTimeLeft",t,t/m),a=requestAnimationFrame(()=>{y()})},b=()=>{let t;if(t=e.virtual&&e.params.virtual.enabled?e.slides.find(e=>e.classList.contains("swiper-slide-active")):e.slides[e.activeIndex])return parseInt(t.getAttribute("data-swiper-autoplay"),10)},_=()=>{let t=e.params.autoplay.delay,r=b();return!Number.isNaN(r)&&r>0&&(t=r),t},w=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(a),y();let r=t;void 0===r&&(m=r=_(),g=r),s=r;let i=e.params.speed,l=()=>{e&&!e.destroyed&&(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(i,!0,!0),n("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,i,!0,!0),n("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(i,!0,!0),n("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,i,!0,!0),n("autoplay")),e.params.cssMode&&(v=new Date().getTime(),requestAnimationFrame(()=>{w()})))};return r>0?(clearTimeout(o),o=setTimeout(()=>{l()},r)):requestAnimationFrame(()=>{l()}),r},S=()=>{v=new Date().getTime(),e.autoplay.running=!0,w(),n("autoplayStart")},T=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),n("autoplayStop")},x=(t,r)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),t||(f=!0);let i=()=>{n("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",E):P()};(e.autoplay.paused=!0,r)?i():(s=(s||e.params.autoplay.delay)-(new Date().getTime()-v),e.isEnd&&s<0&&!e.params.loop||(s<0&&(s=0),i()))},P=()=>{e.isEnd&&s<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(v=new Date().getTime(),f?(f=!1,w(s)):w(),e.autoplay.paused=!1,n("autoplayResume"))},O=()=>{if(e.destroyed||!e.autoplay.running)return;let t=p();"hidden"===t.visibilityState&&(f=!0,x(!0)),"visible"===t.visibilityState&&P()},M=t=>{"mouse"!==t.pointerType||(f=!0,h=!0,e.animating||e.autoplay.paused||x(!0))},R=t=>{"mouse"===t.pointerType&&(h=!1,e.autoplay.paused&&P())},I=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",M),e.el.addEventListener("pointerleave",R))},L=()=>{e.el&&"string"!=typeof e.el&&(e.el.removeEventListener("pointerenter",M),e.el.removeEventListener("pointerleave",R))},C=()=>{p().addEventListener("visibilitychange",O)},A=()=>{p().removeEventListener("visibilitychange",O)};r("init",()=>{e.params.autoplay.enabled&&(I(),C(),S())}),r("destroy",()=>{L(),A(),e.autoplay.running&&T()}),r("_freeModeStaticRelease",()=>{(c||f)&&P()}),r("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?T():x(!0,!0)}),r("beforeTransitionStart",(t,r,n)=>{!e.destroyed&&e.autoplay.running&&(n||!e.params.autoplay.disableOnInteraction?x(!0,!0):T())}),r("sliderFirstMove",()=>{if(!e.destroyed&&e.autoplay.running){if(e.params.autoplay.disableOnInteraction)return void T();u=!0,c=!1,f=!1,d=setTimeout(()=>{f=!0,c=!0,x(!0)},200)}}),r("touchEnd",()=>{if(!e.destroyed&&e.autoplay.running&&u){if(clearTimeout(d),clearTimeout(o),e.params.autoplay.disableOnInteraction){c=!1,u=!1;return}c&&e.params.cssMode&&P(),c=!1,u=!1}}),r("slideChange",()=>{!e.destroyed&&e.autoplay.running&&e.autoplay.paused&&(s=_(),m=_())}),Object.assign(e.autoplay,{start:S,stop:T,pause:x,resume:P})}function U({swiper:e,extendParams:t,emit:r,once:n}){function i(){if(e.params.cssMode)return;let t=e.getTranslate();e.setTranslate(t),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function o(){if(e.params.cssMode)return;let{touchEventsData:t,touches:r}=e;0===t.velocities.length&&t.velocities.push({position:r[e.isHorizontal()?"startX":"startY"],time:t.touchStartTime}),t.velocities.push({position:r[e.isHorizontal()?"currentX":"currentY"],time:E()})}function a({currentPos:t}){if(e.params.cssMode)return;let{params:i,wrapperEl:o,rtlTranslate:s,snapGrid:l,touchEventsData:u}=e,c=E()-u.touchStartTime;if(t<-e.minTranslate())return void e.slideTo(e.activeIndex);if(t>-e.maxTranslate())return void(e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1));if(i.freeMode.momentum){let t,a;if(u.velocities.length>1){let t=u.velocities.pop(),r=u.velocities.pop(),n=t.position-r.position,o=t.time-r.time;e.velocity=n/o,e.velocity/=2,Math.abs(e.velocity)<i.freeMode.minimumVelocity&&(e.velocity=0),(o>150||E()-t.time>300)&&(e.velocity=0)}else e.velocity=0;
4e.velocity*=i.freeMode.momentumVelocityRatio,u.velocities.length=0;let c=1e3*i.freeMode.momentumRatio,d=e.velocity*c,p=e.translate+d;s&&(p=-p);let f=!1,h=20*Math.abs(e.velocity)*i.freeMode.momentumBounceRatio;if(p<e.maxTranslate())i.freeMode.momentumBounce?(p+e.maxTranslate()<-h&&(p=e.maxTranslate()-h),t=e.maxTranslate(),f=!0,u.allowMomentumBounce=!0):p=e.maxTranslate(),i.loop&&i.centeredSlides&&(a=!0);else if(p>e.minTranslate())i.freeMode.momentumBounce?(p-e.minTranslate()>h&&(p=e.minTranslate()+h),t=e.minTranslate(),f=!0,u.allowMomentumBounce=!0):p=e.minTranslate(),i.loop&&i.centeredSlides&&(a=!0);else if(i.freeMode.sticky){let t;for(let e=0;e<l.length;e+=1)if(l[e]>-p){t=e;break}p=-(p=Math.abs(l[t]-p)<Math.abs(l[t-1]-p)||"next"===e.swipeDirection?l[t]:l[t-1])}if(a&&n("transitionEnd",()=>{e.loopFix()}),0!==e.velocity){if(c=s?Math.abs((-p-e.translate)/e.velocity):Math.abs((p-e.translate)/e.velocity),i.freeMode.sticky){let t=Math.abs((s?-p:p)-e.translate),r=e.slidesSizesGrid[e.activeIndex];c=t<r?i.speed:t<2*r?1.5*i.speed:2.5*i.speed}}else if(i.freeMode.sticky)return void e.slideToClosest();i.freeMode.momentumBounce&&f?(e.updateProgress(t),e.setTransition(c),e.setTranslate(p),e.transitionStart(!0,e.swipeDirection),e.animating=!0,D(o,()=>{e&&!e.destroyed&&u.allowMomentumBounce&&(r("momentumBounce"),e.setTransition(i.speed),setTimeout(()=>{e.setTranslate(t),D(o,()=>{e&&!e.destroyed&&e.transitionEnd()})},0))})):e.velocity?(r("_freeModeNoMomentumRelease"),e.updateProgress(p),e.setTransition(c),e.setTranslate(p),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,D(o,()=>{e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(p),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(i.freeMode.sticky)return void e.slideToClosest();i.freeMode&&r("_freeModeNoMomentumRelease")}(!i.freeMode.momentum||c>=i.longSwipesMs)&&(r("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(e,{freeMode:{onTouchStart:i,onTouchMove:o,onTouchEnd:a}})}var X=r(97305);function q(){let e=h(),t=p();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Y(){return n||(n=q()),n}function K({userAgent:e}={}){let t=Y(),r=h(),n=r.navigator.platform,i=e||r.navigator.userAgent,o={ios:!1,android:!1},a=r.screen.width,s=r.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/),u=i.match(/(iPad)(?!\1).*OS\s([\d_]+)/),c=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!u&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===n,f="MacIntel"===n,m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&f&&t.touch&&m.indexOf(`${a}x${s}`)>=0&&((u=i.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),f=!1),l&&!p&&(o.os="android",o.android=!0),(u||d||c)&&
4(o.os="ios",o.ios=!0),o}function Z(e={}){return i||(i=K(e)),i}function J(){let e=h(),t=Z(),r=!1;function n(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&0>t.indexOf("chrome")&&0>t.indexOf("android")}if(n()){let t=String(e.navigator.userAgent);if(t.includes("Version/")){let[e,n]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));r=e<16||16===e&&n<2}}let i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),o=n(),a=o||i&&t.ios;return{isSafari:r||o,needPerspectiveFix:r,need3dFix:a,isWebView:i}}function Q(){return o||(o=J()),o}function ee({swiper:e,on:t,emit:r}){let n=h(),i=null,o=null,a=()=>{e&&!e.destroyed&&e.initialized&&(r("beforeResize"),r("resize"))},s=()=>{e&&!e.destroyed&&e.initialized&&(i=new ResizeObserver(t=>{o=n.requestAnimationFrame(()=>{let{width:r,height:n}=e,i=r,o=n;t.forEach(({contentBoxSize:t,contentRect:r,target:n})=>{n&&n!==e.el||(i=r?r.width:(t[0]||t).inlineSize,o=r?r.height:(t[0]||t).blockSize)}),(i!==r||o!==n)&&a()})})).observe(e.el)},l=()=>{o&&n.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},u=()=>{e&&!e.destroyed&&e.initialized&&r("orientationchange")};t("init",()=>{e.params.resizeObserver&&void 0!==n.ResizeObserver?s():(n.addEventListener("resize",a),n.addEventListener("orientationchange",u))}),t("destroy",()=>{l(),n.removeEventListener("resize",a),n.removeEventListener("orientationchange",u)})}function et({swiper:e,extendParams:t,on:r,emit:n}){let i=[],o=h(),a=(t,r={})=>{let a=new(o.MutationObserver||o.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void n("observerUpdate",t[0]);let r=function(){n("observerUpdate",t[0])};o.requestAnimationFrame?o.requestAnimationFrame(r):o.setTimeout(r,0)});a.observe(t,{attributes:void 0===r.attributes||r.attributes,childList:e.isElement||(void 0===r.childList||r).childList,characterData:void 0===r.characterData||r.characterData}),i.push(a)},s=()=>
4{if(e.params.observer){if(e.params.observeParents){let t=$(e.hostEl);for(let e=0;e<t.length;e+=1)a(t[e])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}},l=()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",s),r("destroy",l)}var er={on(e,t,r){let n=this;if(!n.eventsListeners||n.destroyed||"function"!=typeof t)return n;let i=r?"unshift":"push";return e.split(" ").forEach(e=>{n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][i](t)}),n},once(e,t,r){let n=this;if(!n.eventsListeners||n.destroyed||"function"!=typeof t)return n;function i(...r){n.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(n,r)}return i.__emitterProxy=t,n.on(e,i,r)},onAny(e,t){let r=this;if(!r.eventsListeners||r.destroyed||"function"!=typeof e)return r;let n=t?"unshift":"push";return 0>r.eventsAnyListeners.indexOf(e)&&r.eventsAnyListeners[n](e),r},offAny(e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;let r=t.eventsAnyListeners.indexOf(e);return r>=0&&t.eventsAnyListeners.splice(r,1),t},off(e,t){let r=this;return r.eventsListeners&&!r.destroyed&&r.eventsListeners&&e.split(" ").forEach(e=>{void 0===t?r.eventsListeners[e]=[]:r.eventsListeners[e]&&r.eventsListeners[e].forEach((n,i)=>{(n===t||n.__emitterProxy&&n.__emitterProxy===t)&&r.eventsListeners[e].splice(i,1)})}),r},emit(...e){let t,r,n,i=this;return i.eventsListeners&&!i.destroyed&&i.eventsListeners&&("string"==typeof e[0]||Array.isArray(e[0])?(t=e[0],r=e.slice(1,e.length),n=i):(t=e[0].events,r=e[0].data,n=e[0].context||i),r.unshift(n),(Array.isArray(t)?t:t.split(" ")).forEach(e=>{i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach(t=>{t.apply(n,[e,...r])}),i.eventsListeners&&i.eventsListeners[e]&&i.eventsListeners[e].forEach(e=>{e.apply(n,r)})})),i}};let en=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)},ei=(e,t,r)=>{t&&!e.classList.contains(r)?e.classList.add(r):!t&&e.classList.contains(r)&&e.classList.remove(r)},eo=(e,t)=>{if(!e||e.destroyed||!e.params)return;let r=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,n=t.closest(r());if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`))&&!t.lazyPreloaderManaged&&t.remove()})),t&&!t.lazyPreloaderManaged&&t.remove()}},ea=(e,t)=>{if(!e.slides[t])return;let r=e.slides[t].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},es=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,r=e.slides.length;if(!r||!t||t<0)return;t=Math.min(t,r);let n="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let r=i,o=[r-t];o.push(...Array.from({length:t}).map((e,t)=>r+n+t)),e.slides.forEach((t,r)=>{o.includes(t.column)&&ea(e,r)});return}let o=i+n-1;if(e.params.rewind||e.params.loop)for(let n=i-t;n<=o+t;n+=1){let t=(n%r+r)%r;(t<i||t>o)&&ea(e,t)}else for(let n=Math.max(i-t,0);n<=Math.min(o+t,r-1);n+=1)n!==i&&(n>o||n<i)&&ea(e,n)};function el(e){let t,{slidesGrid:r,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;for(let e=0;e<r.length;e+=1)void 0!==r[e+1]?i>=r[e]&&i<r[e+1]-(r[e+1]-r[e])/2?t=e:i>=r[e]&&i<r[e+1]&&(t=e+1):i>=r[e]&&(t=e);return n.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}function eu({swiper:e,runCallbacks:t,direction:r,step:n}){let{activeIndex:i,previousIndex:o}=e,a=r;a||(a=i>o?"next":i<o?"prev":"reset"),e.emit(`transition${n}`),t&&"reset"===a?e.emit(`slideResetTransition${n}`):t&&i!==o&&(e.emit(`slideChangeTransition${n}`),"next"===a?e.emit(`slideNextTransition${n}`):e.emit(`slidePrevTransition${n}`))}function ec(e,t=this){function r(t){if(!t||t===p()||t===h())return null;t.assignedSlot&&(t=t.assignedSlot);let n=t.closest(e);return n||t.getRootNode?n||r(t.getRootNode().host):null}return r(t)}function ed(e,t,r){let n=h(),{params:i}=e,o=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return!o||!(r<=a)&&!(r>=n.innerWidth-a)||"prevent"===o&&(t.preventDefault(),!0)}function ep(e){let t=this,r=p(),n=e;n.originalEvent&&(n=n.originalEvent);let i=t.touchEventsData;if("pointerdown"===n.type){if(null!==i.pointerId&&i.pointerId!==n.pointerId)return;i.pointerId=n.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(i.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void ed(t,n,n.targetTouches[0].pageX);let{params:o,touches:a,enabled:s}=t;if(!s||!o.simulateTouch&&"mouse"===n.pointerType||t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=n.target;if("wrapper"===o.touchEventsTarget&&!M(l,t.wrapperEl)||"which"in n&&3===n.which||"button"in n&&n.button>0||i.isTouched&&i.isMoved)return;let u=!!o.noSwipingClass&&""!==o.noSwipingClass,c=n.composedPath?n.composedPath():n.path;u&&n.target&&n.target.shadowRoot&&c&&(l=c[0]);let d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(o.noSwiping&&(f?ec(d,l):l.closest(d))){t.allowClick=!0;return}if(o.swipeHandler&&!l.closest(o.swipeHandler))return;a.currentX=n.pageX,a.currentY=n.pageY;let h=a.currentX,m=a.currentY;if(!ed(t,n,h))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=h,a.startY=m,i.touchStartTime=E(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let g=!0;l.matches(i.focusableElements)&&(g=!1,"SELECT"===l.nodeName&&(i.isTouched=!1)),r.activeElement&&r.activeElement.matches(i.focusableElements)&&r.activeElement!==l&&("mouse"===n.pointerType||"mouse"!==n.pointerType&&!l.matches(i.focusableElements))&&r.activeElement.blur();let v=g&&t.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||v)&&!l.isContentEditable&&n.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}function ef(e){let t,r,n=p(),i=this,o=i.touchEventsData,{params:a,touches:s,rtlTranslate:l,enabled:u}=i;if(!u||!a.simulateTouch&&"mouse"===e.pointerType)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type&&(null!==o.touchId||c.pointerId!==o.pointerId))return;if("touchmove"===c.type){if(!(t=[...c.changedTouches].find(e=>e.identifier===o.touchId))||t.identifier!==o.touchId)return}else t=c;if(!o.isTouched){o.startMoving&&o.isScrolling&&i.emit("touchMoveOpposite",c);return}let d=t.pageX,f=t.pageY;if(c.preventedByNestedSwiper){s.startX=d,s.startY=f;return}if(!i.allowTouchMove){c.target.matches(o.focusableElements)||(i.allowClick=!1),o.isTouched&&(Object.assign(s,{startX:d,startY:f,currentX:d,currentY:f}),o.touchStartTime=E());return}if(a.touchReleaseOnEdges&&!a.loop){if(i.isVertical()){if(f<s.startY&&i.translate<=i.maxTranslate()||f>s.startY&&i.translate>=i.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(l&&(d>s.startX&&-i.translate<=i.maxTranslate()||d<s.startX&&-i.translate>=i.minTranslate()))return;else if(!l&&(d<s.startX&&i.translate<=i.maxTranslate()||d>s.startX&&i.translate>=i.minTranslate()))return}if(n.activeElement&&n.activeElement.matches(o.focusableElements)&&n.activeElement!==c.target&&"mouse"!==c.pointerType&&n.activeElement.blur(),n.activeElement&&c.target===n.activeElement&&c.target.matches(o.focusableElements)){o.isMoved=!0,i.allowClick=!1;return}o.allowTouchCallbacks&&i.emit("touchMove",c),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=f;let h=s.currentX-s.startX,m=s.currentY-s.startY;if(i.params.threshold&&Math.sqrt(h**2+m**2)<i.params.threshold)return;if(void 0===o.isScrolling){let e;i.isHorizontal()&&s.currentY===s.startY||i.isVertical()&&s.currentX===s.startX?o.isScrolling=!1:h*h+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(h))/Math.PI,o.isScrolling=i.isHorizontal()?e>a.touchAngle:90-e>a.touchAngle)}if(o.isScrolling&&i.emit("touchMoveOpposite",c),void 0===o.startMoving&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(o.startMoving=!0),o.isScrolling||"touchmove"===c.type&&o.preventTouchMoveFromPointerMove){o.isTouched=!1;return}if(!o.startMoving)return;i.allowClick=!1,!a.cssMode&&c.cancelable&&c.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&c.stopPropagation();let g=i.isHorizontal()?h:m,v=i.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;a.oneWayMovement&&(g=Math.abs(g)*(l?1:-1),v=Math.abs(v)*(l?1:-1)),s.diff=g,g*=a.touchRatio,l&&(g=-g,v=-v);let y=i.touchesDirection;i.swipeDirection=g>0?"prev":"next",i.touchesDirection=v>0?"prev":"next";let b=i.params.loop&&!a.cssMode,_="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!o.isMoved){if(b&&_&&i.loopFix({direction:i.swipeDirection}),o.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){let e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
4i.wrapperEl.dispatchEvent(e)}o.allowMomentumBounce=!1,a.grabCursor&&(!0===i.allowSlideNext||!0===i.allowSlidePrev)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",c)}if(new Date().getTime(),!1!==a._loopSwapReset&&o.isMoved&&o.allowThresholdMove&&y!==i.touchesDirection&&b&&_&&Math.abs(g)>=1){Object.assign(s,{startX:d,startY:f,currentX:d,currentY:f,startTranslate:o.currentTranslate}),o.loopSwapReset=!0,o.startTranslate=o.currentTranslate;return}i.emit("sliderMove",c),o.isMoved=!0,o.currentTranslate=g+o.startTranslate;let w=!0,S=a.resistanceRatio;if(a.touchReleaseOnEdges&&(S=0),g>0?(b&&_&&!r&&o.allowThresholdMove&&o.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-("auto"!==a.slidesPerView&&i.slides.length-a.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>i.minTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+o.startTranslate+g)**S))):g<0&&(b&&_&&!r&&o.allowThresholdMove&&o.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+("auto"!==a.slidesPerView&&i.slides.length-a.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===a.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslate<i.maxTranslate()&&(w=!1,a.resistance&&(o.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-o.startTranslate-g)**S))),w&&(c.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&o.currentTranslate<o.startTranslate&&(o.currentTranslate=o.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&o.currentTranslate>o.startTranslate&&(o.currentTranslate=o.startTranslate),i.allowSlidePrev||i.allowSlideNext||(o.currentTranslate=o.startTranslate),a.threshold>0)if(Math.abs(g)>a.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,o.currentTranslate=o.startTranslate,s.diff=i.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{o.currentTranslate=o.startTranslate;return}a.followFinger&&!a.cssMode&&((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(o.currentTranslate),i.setTranslate(o.currentTranslate))}function eh(e){let t,r,n=this,i=n.touchEventsData,o=e;if(o.originalEvent&&(o=o.originalEvent),"touchend"===o.type||"touchcancel"===o.type){if(!(t=[...o.changedTouches].find(e=>e.identifier===i.touchId))||t.identifier!==i.touchId)return}else{if(null!==i.touchId||o.pointerId!==i.pointerId)return;t=o}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(o.type)&&!(["pointercancel","contextmenu"].includes(o.type)&&(n.browser.isSafari||n.browser.isWebView)))return;i.pointerId=null,i.touchId=null;let{params:a,touches:s,rtlTranslate:l,slidesGrid:u,enabled:c}=n;if(!c||!a.simulateTouch&&"mouse"===o.pointerType)return;if(i.allowTouchCallbacks&&n.emit("touchEnd",o),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&a.grabCursor&&n.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}a.grabCursor&&i.isMoved&&i.isTouched&&(!0===n.allowSlideNext||!0===n.allowSlidePrev)&&n.setGrabCursor(!1);let d=E(),p=d-i.touchStartTime;if(n.allowClick){let e=o.path||o.composedPath&&o.composedPath();n.updateClickedSlide(e&&e[0]||o.target,e),n.emit("tap click",o),p<300&&d-i.lastClickTime<300&&n.emit("doubleTap doubleClick",o)}if(i.lastClickTime=E(),v(()=>{n.destroyed||(n.allowClick=!0)}),!i.isTouched||!i.isMoved||!n.swipeDirection||0===s.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,r=a.followFinger?l?n.translate:-n.translate:-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled)return void n.freeMode.onTouchEnd({currentPos:r});let f=r>=-n.maxTranslate()&&!n.params.loop,h=0,m=n.slidesSizesGrid[0];for(let e=0;e<u.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){let t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==u[e+t]?(f||r>=u[e]&&r<u[e+t])&&(h=e,m=u[e+t]-u[e]):(f||r>=u[e])&&(h=e,m=u[u.length-1]-u[u.length-2])}let g=null,y=null;a.rewind&&(n.isBeginning?y=a.virtual&&a.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1:n.isEnd&&(g=0));let b=(r-u[h])/m,_=h<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(p>a.longSwipesMs){if(!a.longSwipes)return void n.slideTo(n.activeIndex);"next"===n.swipeDirection&&(b>=a.longSwipesRatio?n.slideTo(a.rewind&&n.isEnd?g:h+_):n.slideTo(h)),"prev"===n.swipeDirection&&(b>1-a.longSwipesRatio?n.slideTo(h+_):null!==y&&b<0&&Math.abs(b)>a.longSwipesRatio?n.slideTo(y):n.slideTo(h))}else{if(!a.shortSwipes)return void n.slideTo(n.activeIndex);n.navigation&&(o.target===n.navigation.nextEl||o.target===n.navigation.prevEl)?o.target===n.navigation.nextEl?n.slideTo(h+_):n.slideTo(h):("next"===n.swipeDirection&&n.slideTo(null!==g?g:h+_),"prev"===n.swipeDirection&&n.slideTo(null!==y?y:h))}}function em(){let e=this,{params:t,el:r}=e;if(r&&0===r.offsetWidth)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:n,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let s=a&&t.loop;"auto"!==t.slidesPerView&&!(t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=n,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function eg(e){let t=this;t.enabled&&!t.allowClick&&(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function ev(){let e,t=this,{wrapperEl:r,rtlTranslate:n,enabled:i}=t;if(!i)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-r.scrollLeft:t.translate=-r.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let o=t.maxTranslate()-t.minTranslate();(e=0===o?0:(t.translate-t.minTranslate())/o)!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function eE(e){let t=this;eo(t,e.target),!t.params.cssMode&&("auto"===t.params.slidesPerView||t.params.autoHeight)&&t.update(
4)}function ey(){let e=this;!e.documentTouchHandlerProceeded&&(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}let eb=(e,t)=>{let r=p(),{params:n,el:i,wrapperEl:o,device:a}=e,s=!!n.nested,l="on"===t?"addEventListener":"removeEventListener",u=t;i&&"string"!=typeof i&&(r[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),i[l]("touchstart",e.onTouchStart,{passive:!1}),i[l]("pointerdown",e.onTouchStart,{passive:!1}),r[l]("touchmove",e.onTouchMove,{passive:!1,capture:s}),r[l]("pointermove",e.onTouchMove,{passive:!1,capture:s}),r[l]("touchend",e.onTouchEnd,{passive:!0}),r[l]("pointerup",e.onTouchEnd,{passive:!0}),r[l]("pointercancel",e.onTouchEnd,{passive:!0}),r[l]("touchcancel",e.onTouchEnd,{passive:!0}),r[l]("pointerout",e.onTouchEnd,{passive:!0}),r[l]("pointerleave",e.onTouchEnd,{passive:!0}),r[l]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[l]("click",e.onClick,!0),n.cssMode&&o[l]("scroll",e.onScroll),n.updateOnWindowResize?e[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",em,!0):e[u]("observerUpdate",em,!0),i[l]("load",e.onLoad,{capture:!0}))},e_=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function ew(e,t){let r=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(n=>{e[n]&&r.push(t+n)}):"string"==typeof e&&r.push(t+e)}),r}var eS={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function eT(e,t){return function(r={}){let n=Object.keys(r)[0],i=r[n];"object"!=typeof i||null===i||(!0===e[n]&&(e[n]={enabled:!0}),"navigation"===n&&e[n]&&e[n].enabled&&!e[n].prevEl&&!e[n].nextEl&&(e[n].auto=!0),["pagination","scrollbar"].indexOf(n)>=0&&e[n]&&e[n].enabled&&!e[n].el&&(e[n].auto=!0),n in e&&"enabled"in i&&("object"!=typeof e[n]||"enabled"in e[n]||(e[n].enabled=!0),e[n]||(e[n]={enabled:!1}))),S(t,r)}}let ex={eventsEmitter:er,update:{updateSize:function(){let e,t,r=this,n=r.el;e=void 0!==r.params.width&&null!==r.params.width?r.params.width:n.clientWidth,t=void 0!==r.params.height&&null!==r.params.height?r.params.height:n.clientHeight,0===e&&r.isHorizontal()||0===t&&r.isVertical()||(e=e-parseInt(N(n,"padding-left")||0,10)-parseInt(N(n,"padding-right")||0,10),t=t-parseInt(N(n,"padding-top")||0,10)-parseInt(N(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(r,{width:e,height:t,size:r.isH
4orizontal()?e:t}))},updateSlides:function(){let e,t=this;function r(e,r){return parseFloat(e.getPropertyValue(t.getDirectionLabel(r))||0)}let n=t.params,{wrapperEl:i,slidesEl:o,rtlTranslate:a,wrongRTL:s}=t,l=t.virtual&&n.virtual.enabled,u=l?t.virtual.slides.length:t.slides.length,c=P(o,`.${t.params.slideClass}, swiper-slide`),d=l?t.virtual.slides.length:c.length,p=[],f=[],h=[],m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(t));let g=n.slidesOffsetAfter;"function"==typeof g&&(g=n.slidesOffsetAfter.call(t));let v=t.snapGrid.length,E=t.slidesGrid.length,y=t.size-m-g,b=n.spaceBetween,_=-m,w=0,S=0;if(void 0===y)return;"string"==typeof b&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*y:"string"==typeof b&&(b=parseFloat(b)),t.virtualSize=-b-m-g,c.forEach(e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(T(i,"--swiper-centered-offset-before",""),T(i,"--swiper-centered-offset-after","")),n.cssMode&&(T(i,"--swiper-slides-offset-before",`${m}px`),T(i,"--swiper-slides-offset-after",`${g}px`));let x=n.grid&&n.grid.rows>1&&t.grid;x?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let O="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let i=0;i<d;i+=1){e=0;let o=c[i];if(!o||(x&&t.grid.updateSlide(i,o,c),"none"!==N(o,"display"))){if(l&&"auto"===n.slidesPerView)n.virtual.slidesPerViewAutoSlideSize&&(e=n.virtual.slidesPerViewAutoSlideSize),e&&o&&(n.roundLengths&&(e=Math.floor(e)),o.style[t.getDirectionLabel("width")]=`${e}px`);else if("auto"===n.slidesPerView){O&&(o.style[t.getDirectionLabel("width")]="");let i=getComputedStyle(o),a=o.style.transform,s=o.style.webkitTransform;if(a&&(o.style.transform="none"),s&&(o.style.webkitTransform="none"),n.roundLengths)e=t.isHorizontal()?j(o,"width",!0):j(o,"height",!0);else{let t=r(i,"width"),n=r(i,"padding-left"),a=r(i,"padding-right"),s=r(i,"margin-left"),l=r(i,"margin-right"),u=i.getPropertyValue("box-sizing");if(u&&"border-box"===u)e=t+s+l;else{let{clientWidth:r,offsetWidth:i}=o;e=t+n+a+s+l+(i-r)}}a&&(o.style.transform=a),s&&(o.style.webkitTransform=s),n.roundLengths&&(e=Math.floor(e))}else e=(y-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(e=Math.floor(e)),o&&(o.style[t.getDirectionLabel("width")]=`${e}px`);o&&(o.swiperSlideSize=e),h.push(e),n.centeredSlides?(_=_+e/2+w/2+b,0===w&&0!==i&&(_=_-y/2-b),0===i&&(_=_-y/2-b),.001>Math.abs(_)&&(_=0),n.roundLengths&&(_=Math.floor(_)),S%n.slidesPerGroup==0&&p.push(_),f.push(_)):(n.roundLengths&&(_=Math.floor(_)),(S-Math.min(t.params.slidesPerGroupSkip,S))%t.params.slidesPerGroup==0&&p.push(_),f.push(_),_=_+e+b),t.virtualSize+=e+b,w=e,S+=1}}if(t.virtualSize=Math.max(t.virtualSize,y)+g,a&&s&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${t.virtualSize+b}px`),n.setWrapperSize&&(i.style[t.getDirectionLabel("width")]=`${t.virtualSize+b}px`),x&&t.grid.updateWrapperSize(e,p),!n.centeredSlides){let e="auto"!==n.slidesPerView&&n.slidesPerView%1!=0,r=n.snapToSlideEdge&&!n.loop&&("auto"===n.slidesPerView||e),i=p.length;if(r){let e;if("auto"===n.slidesPerView){e=1;let t=0;for(let r=h.length-1;r>=0;r-=1)if((t+=h[r]+(r<h.length-1?b:0))<=y)e=h.length-r;else break}else e=Math.floor(n.slidesPerView);i=Math.max(d-e,0)}let o=[];for(let e=0;e<p.length;e+=1){let a=p[e];n.roundLengths&&(a=Math.floor(a)),r?e<=i&&o.push(a):p[e]<=t.virtualSize-y&&o.push(a)}p=o,Math.floor(t.virtualSize-y)-Math.floor(p[p.length-1])>1&&!r&&p.push(t.virtualSize-y)}if(l&&n.loop){let e=h[0]+b;if(n.slidesPerGroup>1){let r=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/n.slidesPerGroup),i=e*n.slidesPerGroup;for(let e=0;e<r;e+=1)p.push(p[p.length-1]+i)}for(let r=0;r<t.virtual.slidesBefore+t.virtual.slidesAfter;r+=1)1===n.slidesPerGroup&&p.push(p[p.length-1]+e),f.push(f[f.length-1]+e),t.virtualSize+=e}if(0===p.length&&(p=[0]),0!==b){let e=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");c.filter((e,t)=>!n.cssMode||!!n.loop||t!==c.length-1).forEach(t=>{t.style[e]=`${b}px`})}
4if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;h.forEach(t=>{e+=t+(b||0)});let t=(e-=b)>y?e-y:0;p=p.map(e=>e<=0?-m:e>t?t+g:e)}if(n.centerInsufficientSlides){let e=0;if(h.forEach(t=>{e+=t+(b||0)}),(e-=b)<y){let t=(y-e)/2;p.forEach((e,r)=>{p[r]=e-t}),f.forEach((e,r)=>{f[r]=e+t})}}if(Object.assign(t,{slides:c,snapGrid:p,slidesGrid:f,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){T(i,"--swiper-centered-offset-before",`${-p[0]}px`),T(i,"--swiper-centered-offset-after",`${t.size/2-h[h.length-1]/2}px`);let e=-t.snapGrid[0],r=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(e=>e+r)}if(d!==u&&t.emit("slidesLengthChange"),p.length!==v&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==E&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!n.cssMode&&("slide"===n.effect||"fade"===n.effect)){let e=`${n.containerModifierClass}backface-hidden`,r=t.el.classList.contains(e);d<=n.maxBackfaceHiddenSlides?r||t.el.classList.add(e):r&&t.el.classList.remove(e)}},updateAutoHeight:function(e){let t,r=this,n=[],i=r.virtual&&r.params.virtual.enabled,o=0;"number"==typeof e?r.setTransition(e):!0===e&&r.setTransition(r.params.speed);let a=e=>i?r.slides[r.getSlideIndexByData(e)]:r.slides[e];if("auto"!==r.params.slidesPerView&&r.params.slidesPerView>1)if(r.params.centeredSlides)(r.visibleSlides||[]).forEach(e=>{n.push(e)});else for(t=0;t<Math.ceil(r.params.slidesPerView);t+=1){let e=r.activeIndex+t;if(e>r.slides.length&&!i)break;n.push(a(e))}else n.push(a(r.activeIndex));for(t=0;t<n.length;t+=1)if(void 0!==n[t]){let e=n[t].offsetHeight;o=e>o?e:o}(o||0===o)&&(r.wrapperEl.style.height=`${o}px`)},updateSlidesOffset:function(){let e=this,t=e.slides,r=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let n=0;n<t.length;n+=1)t[n].swiperSlideOffset=(e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop)-r-e.cssOverflowAdjustment()},updateSlidesProgress:function(e=this&&this.translate||0){let t=this,r=t.params,{slides:n,rtlTranslate:i,snapGrid:o}=t;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();let a=-e;i&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=r.spaceBetween;"string"==typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:"string"==typeof s&&(s=parseFloat(s));for(let e=0;e<n.length;e+=1){let l=n[e],u=l.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(u-=n[0].swiperSlideOffset);let c=(a+(r.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+s),d=(a-o[0]+(r.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+s),p=-(a-u),f=p+t.slidesSizesGrid[e],h=p>=0&&p<=t.size-t.slidesSizesGrid[e],m=p>=0&&p<t.size-1||f>1&&f<=t.size||p<=0&&f>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),en(l,m,r.slideVisibleClass),en(l,h,r.slideFullyVisibleClass),l.progress=i?-c:c,l.originalProgress=i?-d:d}},updateProgress:function(e){let t=this;if(void 0===e){let r=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*r||0}let r=t.params,n=t.maxTranslate()-t.minTranslate(),{progress:i,isBeginning:o,isEnd:a,progressLoop:s}=t,l=o,u=a;if(0===n)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/n;let r=1>Math.abs(e-t.minTranslate()),s=1>Math.abs(e-t.maxTranslate());o=r||i<=0,a=s||i>=1,r&&(i=0),s&&(i=1)}if(r.loop){let r=t.getSlideIndexByData(0),n=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[r],o=t.slidesGrid[n],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);(s=l>=i?(l-i)/a:(l+a-o)/a)>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:o,isEnd:a}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!u&&t.emit("reachEnd toEdge"),(l&&!o||u&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){let e,t,r,n=this,{slides:i,params:o,slidesEl:a,activeIndex:s}=n,l=n.virtual&&o.virtual.enabled,u=n.grid&&o.grid&&o.grid.rows>1,c=e=>P(a,`.${o.slideClass}${e}, swiper-slide${e}`)[0];if(l)if(o.loop){let t=s-n.virtual.slidesBefore;t<0&&(t=n.virtual.slides.length+t),t>=n.virtual.slides.length&&(t-=n.virtual.slides.length),e=c(`[data-swiper-slide-index="${t}"]`)}else e=c(`[data-swiper-slide-index="${s}"]`);else u?(e=i.find(e=>e.column===s),r=i.find(e=>e.column===s+1),t=i.find(e=>e.column===s-1)):e=i[s];e&&!u&&(r=A(e,`.${o.slideClass}, swiper-slide`)[0],o.loop&&!r&&(r=i[0]),t=C(e,`.${o.slideClass}
4, swiper-slide`)[0],o.loop),i.forEach(n=>{ei(n,n===e,o.slideActiveClass),ei(n,n===r,o.slideNextClass),ei(n,n===t,o.slidePrevClass)}),n.emitSlidesClasses()},updateActiveIndex:function(e){let t,r,n=this,i=n.rtlTranslate?n.translate:-n.translate,{snapGrid:o,params:a,activeIndex:s,realIndex:l,snapIndex:u}=n,c=e,d=e=>{let t=e-n.virtual.slidesBefore;return t<0&&(t=n.virtual.slides.length+t),t>=n.virtual.slides.length&&(t-=n.virtual.slides.length),t};if(void 0===c&&(c=el(n)),o.indexOf(i)>=0)t=o.indexOf(i);else{let e=Math.min(a.slidesPerGroupSkip,c);t=e+Math.floor((c-e)/a.slidesPerGroup)}if(t>=o.length&&(t=o.length-1),c===s&&!n.params.loop){t!==u&&(n.snapIndex=t,n.emit("snapIndexChange"));return}if(c===s&&n.params.loop&&n.virtual&&n.params.virtual.enabled){n.realIndex=d(c);return}let p=n.grid&&a.grid&&a.grid.rows>1;if(n.virtual&&a.virtual.enabled)r=a.loop?d(c):c;else if(p){let e=n.slides.find(e=>e.column===c),t=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(t)&&(t=Math.max(n.slides.indexOf(e),0)),r=Math.floor(t/a.grid.rows)}else if(n.slides[c]){let e=n.slides[c].getAttribute("data-swiper-slide-index");r=e?parseInt(e,10):c}else r=c;Object.assign(n,{previousSnapIndex:u,snapIndex:t,previousRealIndex:l,realIndex:r,previousIndex:s,activeIndex:c}),n.initialized&&es(n),n.emit("activeIndexChange"),n.emit("snapIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&(l!==r&&n.emit("realIndexChange"),n.emit("slideChange"))},updateClickedSlide:function(e,t){let r,n=this,i=n.params,o=e.closest(`.${i.slideClass}, swiper-slide`);!o&&n.isElement&&t&&t.length>
41&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!o&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(o=e)});let a=!1;if(o){for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===o){a=!0,r=e;break}}if(o&&a)n.clickedSlide=o,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(o.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=r;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},translate:{getTranslate:function(e=this.isHorizontal()?"x":"y"){let t=this,{params:r,rtlTranslate:n,translate:i,wrapperEl:o}=t;if(r.virtualTranslate)return n?-i:i;if(r.cssMode)return i;let a=b(o,e);return a+=t.cssOverflowAdjustment(),n&&(a=-a),a||0},setTranslate:function(e,t){let r,n=this,{rtlTranslate:i,params:o,wrapperEl:a,progress:s}=n,l=0,u=0,c=0;n.isHorizontal()?l=i?-e:e:u=e,o.roundLengths&&(l=Math.floor(l),u=Math.floor(u)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:u,o.cssMode?a[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-u:o.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():u-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${l}px, ${u}px, ${c}px)`);let d=n.maxTranslate()-n.minTranslate();(r=0===d?0:(e-n.minTranslate())/d)!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,r=!0,n=!0,i){let o,a=this,{params:s,wrapperEl:l}=a;if(a.animating&&s.preventInteractionOnTransition)return!1;let u=a.minTranslate(),c=a.maxTranslate();if(o=n&&e>u?u:n&&e<c?c:e,a.updateProgress(o),s.cssMode){let e=a.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-o;else{if(!a.support.smoothScroll)return x({swiper:a,targetPosition:-o,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-o,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(o),r&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(o),r&&(a.emit("beforeTransitionStart",t,i),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,r&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){let r=this;r.params.cssMode||(r.wrapperEl.style.transitionDuration=`${e}ms`,r.wrapperEl.style.transitionDelay=0===e?"0ms":""),r.emit("setTransition",e,t)},transitionStart:function(e=!0,t){let r=this,{params:n}=r;n.cssMode||(n.autoHeight&&r.updateAutoHeight(),eu({swiper:r,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e=!0,t){let r=this,{params:n}=r;r.animating=!1,n.cssMode||(r.setTransition(0),eu({swiper:r,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e=0,t,r=!0,n,i){let o;"string"==typeof e&&(e=parseInt(e,10));let a=this,s=e;s<0&&(s=0);let{params:l,snapGrid:u,slidesGrid:c,previousIndex:d,activeIndex:p,rtlTranslate:f,wrapperEl:h,enabled:m}=a;if(!m&&!n&&!i||a.destroyed||a.animating&&l.preventInteractionOnTransition)return!1;void 0===t&&(t=a.params.speed);let g=Math.min(a.params.slidesPerGroupSkip,s),v=g+Math.floor((s-g)/a.params.slidesPerGroup);v>=u.length&&(v=u.length-1);let E=-u[v];if(l.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){let t=-Math.floor(100*E),r=Math.floor(100*c[e]),n=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=r&&t<n-(n-r)/2?s=e:t>=r&&t<n&&(s=e+1):t>=r&&(s=e)}if(a.initialized&&s!==p&&(!a.allowSlideNext&&(f?E>a.translate&&E>a.minTranslate():E<a.translate&&E<a.minTranslate())||!a.allowSlidePrev&&E>a.translate&&E>a.maxTranslate()&&(p||0)!==s))return!1;s!==(d||0)&&r&&a.emit("beforeSlideChangeStart"),a.updateProgress(E),o=s>p?"next":s<p?"prev":"reset";let y=a.virtual&&a.params.virtual.enabled;if(!(y&&i)&&(f&&-E===a.translate||!f&&E===a.translate))return a.updateActiveIndex(s),l.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==l.effect&&a.setTranslate(E),"reset"!==o&&(a.transitionStart(r,o),a.transitionEnd(r,o)),!1;if(l.cssMode){let e=a.isHorizontal(),r=f?E:-E;if(0===t)y&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),y&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[e?"scrollLeft":"scrollTop"]=r})):h[e?"scrollLeft":"scrollTop"]=r,y&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return x({swiper:a,targetPosition:r,side:e?"left"
4:"top"}),!0;h.scrollTo({[e?"left":"top"]:r,behavior:"smooth"})}return!0}let b=Q().isSafari;return y&&!i&&b&&a.isElement&&a.virtual.update(!1,!1,s),a.setTransition(t),a.setTranslate(E),a.updateActiveIndex(s),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,n),a.transitionStart(r,o),0===t?a.transitionEnd(r,o):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(r,o))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e=0,t,r=!0,n){"string"==typeof e&&(e=parseInt(e,10));let i=this;if(i.destroyed)return;void 0===t&&(t=i.params.speed);let o=i.grid&&i.params.grid&&i.params.grid.rows>1,a=e;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a+=i.virtual.slidesBefore;else{let e;if(o){let t=a*i.params.grid.rows;e=i.slides.find(e=>+e.getAttribute("data-swiper-slide-index")===t).column}else e=i.getSlideIndexByData(a);let t=o?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:r,slidesOffsetBefore:s,slidesOffsetAfter:l}=i.params,u=r||!!s||!!l,c=i.params.slidesPerView;"auto"===c?c=i.slidesPerViewDynamic():(c=Math.ceil(parseFloat(i.params.slidesPerView,10)),u&&c%2==0&&(c+=1));let d=t-e<c;if(u&&(d=d||e<Math.ceil(c/2)),n&&u&&"auto"!==i.params.slidesPerView&&!o&&(d=!1),d){let r=u?e<i.activeIndex?"prev":"next":e-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:r,slideTo:!0,activeSlideIndex:"next"===r?e+1:e-t+1,slideRealIndex:"next"===r?i.realIndex:void 0})}if(o){let e=a*i.params.grid.rows;a=i.slides.find(t=>+t.getAttribute("data-swiper-slide-index")===e).column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame(()=>{i.slideTo(a,t,r,n)}),i},slideNext:function(e,t=!0,r){let n=this,{enabled:i,params:o,animating:a}=n;if(!i||n.destroyed)return n;void 0===e&&(e=n.params.speed);let s=o.slidesPerGroup;"auto"===o.slidesPerView&&1===o.slidesPerGroup&&o.slidesPerGroupAuto&&(s=Math.max(n.slidesPerViewDynamic("current",!0),1));let l=n.activeIndex<o.slidesPerGroupSkip?1:s,u=n.virtual&&o.virtual.enabled;if(o.loop){if(a&&!u&&o.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&o.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+l,e,t,r)}),!0}return o.rewind&&n.isEnd?n.slideTo(0,e,t,r):n.slideTo(n.activeIndex+l,e,t,r)},slidePrev:function(e,t=!0,r){let n=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:u}=n;if(!l||n.destroyed)return n;void 0===e&&(e=n.params.speed);let c=n.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let p=d(s?n.translate:-n.translate),f=o.map(e=>d(e)),h=i.freeMode&&i.freeMode.enabled,m=o[f.indexOf(p)-1];if(void 0===m&&(i.cssMode||h)){let e;o.forEach((t,r)=>{p>=t&&(e=r)}),void 0!==e&&(m=h?o[e]:o[e>0?e-1:e])}let g=0;if(void 0!==m&&((g=a.indexOf(m))<0&&(g=n.activeIndex-1),"auto"===i.slidesPerView&&1===i.slidesPerGroup&&i.slidesPerGroupAuto&&(g=Math.max(g=g-n.slidesPerViewDynamic("previous",!0)+1,0))),i.rewind&&n.isBeginning){let i=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(i,e,t,r)}return i.loop&&0===n.activeIndex&&i.cssMode?(requestAnimationFrame(()=>{n.slideTo(g,e,t,r)}),!0):n.slideTo(g,e,t,r)},slideReset:function(e,t=!0,r){let n=this;if(!n.destroyed)return void 0===e&&(e=n.params.speed),n.slideTo(n.activeIndex,e,t,r)},slideToClosest:function(e,t=!0,r,n=.5){let i=this;if(i.destroyed)return;void 0===e&&(e=i.params.speed);let o=i.activeIndex,a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){let e=i.snapGrid[s];l-e>(i.snapGrid[s+1]-e)*n&&(o+=i.params.slidesPerGroup)}else{let e=i.snapGrid[s-1];l-e<=(i.snapGrid[s]-e)*n&&(o-=i.params.slidesPerGroup)}return o=Math.min(o=Math.max(o,0),i.slidesGrid.length-1),i.slideTo(o,e,t,r)},slideToClickedSlide:function(){let e,t=this;if(t.destroyed)return;let{params:r,slidesEl:n}=t,i="auto"===r.slidesPerView?t.slidesPerViewDynamic():r.slidesPerView,o=t.getSlideIndexWhenGrid(t.clickedIndex),a=t.isElement?"swiper-slide":`.${r.slideClass}`,s=t.grid&&t.params.grid&&t.params.grid.rows>1;if(r.loop){if(t.animating)return;e=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),r.centeredSlides?t.slideToLoop(e):o>(s?(t.slides.length-i)/2-(t.params.grid.rows-1):t.slides.length-i)?(t.loopFix(),o=t.getSlideIndex(P(n,`${a}[data-swiper-slide-index="${e}"]`)[0]),v(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}},loop:{loopCreate:function(e,t){let r=this,{params:n,slidesEl:i}=r;if(!n.loop||r.virtual&&r.params.virtual.enabled)return;let o=()=>{P(i,`.${n.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},a=()=>{let e=P(i,`.${n.slideBlankClass}`);
4e.forEach(e=>{e.remove()}),e.length>0&&(r.recalcSlides(),r.updateSlides())},s=r.grid&&n.grid&&n.grid.rows>1;n.loopAddBlankSlides&&(n.slidesPerGroup>1||s)&&a();let l=n.slidesPerGroup*(s?n.grid.rows:1),u=r.slides.length%l!=0,c=s&&r.slides.length%n.grid.rows!=0,d=e=>{for(let t=0;t<e;t+=1){let e=r.isElement?I("swiper-slide",[n.slideBlankClass]):I("div",[n.slideClass,n.slideBlankClass]);r.slidesEl.append(e)}};u?n.loopAddBlankSlides?(d(l-r.slides.length%l),r.recalcSlides(),r.updateSlides()):R("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"):c&&(n.loopAddBlankSlides?(d(n.grid.rows-r.slides.length%n.grid.rows),r.recalcSlides(),r.updateSlides()):R("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")),o();let p=n.centeredSlides||!!n.slidesOffsetBefore||!!n.slidesOffsetAfter;r.loopFix({slideRealIndex:e,direction:p?void 0:"next",initial:t})},loopFix:function({slideRealIndex:e,slideTo:t=!0,direction:r,setTranslate:n,activeSlideIndex:i,initial:o,byController:a,byMousewheel:s}={}){let l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");let{slides:u,allowSlidePrev:c,allowSlideNext:d,slidesEl:p,params:f}=l,{centeredSlides:h,slidesOffsetBefore:m,slidesOffsetAfter:g,initialSlide:v}=f,E=h||!!m||!!g;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&f.virtual.enabled){t&&(E||0!==l.snapIndex?E&&l.snapIndex<f.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=c,l.allowSlideNext=d,l.emit("loopFix");return}let y=f.slidesPerView;"auto"===y?y=l.slidesPerViewDynamic():(y=Math.ceil(parseFloat(f.slidesPerView,10)),E&&y%2==0&&(y+=1));let b=f.slidesPerGroupAuto?y:f.slidesPerGroup,_=E?Math.max(b,Math.ceil(y/2)):b;_%b!=0&&(_+=b-_%b),l.loopedSlides=_+=f.loopAdditionalSlides;let w=l.grid&&f.grid&&f.grid.rows>1;u.length<y+_||"cards"===l.params.effect&&u.length<y+2*_?R("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):w&&"row"===f.grid.fill&&R("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let S=[],T=[],x=w?Math.ceil(u.length/f.grid.rows):u.length,P=o&&x-v<y&&!E,O=P?v:l.activeIndex;void 0===i?i=l.getSlideIndex(u.find(e=>e.classList.contains(f.slideActiveClass))):O=i;let M="next"===r||!r,I="prev"===r||!r,L=0,C=0,A=(w?u[i].column:i)+(E&&void 0===n?-y/2+.5:0);if(A<_){L=Math.max(_-A,b);for(let e=0;e<_-A;e+=1){let t=e-Math.floor(e/x)*x;if(w){let e=x-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&S.push(t)}else S.push(x-t-1)}}else if(A+y>x-_){C=Math.max(A-(x-2*_),b),P&&(C=Math.max(C,y-x+v+1));for(let e=0;e<C;e+=1){let t=e-Math.floor(e/x)*x;w?u.forEach((e,r)=>{e.column===t&&T.push(r)}):T.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),"cards"===l.params.effect&&u.length<y+2*_&&(T.includes(i)&&T.splice(T.indexOf(i),1),S.includes(i)&&S.splice(S.indexOf(i),1)),I&&S.forEac
4h(e=>{u[e].swiperLoopMoveDOM=!0,p.prepend(u[e]),u[e].swiperLoopMoveDOM=!1}),M&&T.forEach(e=>{u[e].swiperLoopMoveDOM=!0,p.append(u[e]),u[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===f.slidesPerView?l.updateSlides():w&&(S.length>0&&I||T.length>0&&M)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),f.watchSlidesProgress&&l.updateSlidesOffset(),t){if(S.length>0&&I){if(void 0===e){let e=l.slidesGrid[O],t=l.slidesGrid[O+L]-e;s?l.setTranslate(l.translate-t):(l.slideTo(O+Math.ceil(L),0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(n){let e=w?S.length/f.grid.rows:S.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(T.length>0&&M)if(void 0===e){let e=l.slidesGrid[O],t=l.slidesGrid[O-C]-e;s?l.setTranslate(l.translate-t):(l.slideTo(O-C,0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{let e=w?T.length/f.grid.rows:T.length;l.slideTo(l.activeIndex-e,0,!1,!0)}}if(l.allowSlidePrev=c,l.allowSlideNext=d,l.controller&&l.controller.control&&!a){let o={slideRealIndex:e,direction:r,setTranslate:n,activeSlideIndex:i,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...o,slideTo:e.params.slidesPerView===f.slidesPerView&&t})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...o,slideTo:l.controller.control.params.slidesPerView===f.slidesPerView&&t})}l.emit("loopFix")},loopDestroy:function(){let e=this,{params:t,slidesEl:r}=e;if(!t.loop||!r||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();let n=[];e.slides.forEach(e=>{n[void 0===e.swiperSlideIndex?+e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),n.forEach(e=>{r.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}},grabCursor:{setGrabCursor:function(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let r="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){let e=this,{params:t}=e;e.onTouchStart=ep.bind(e),e.onTouchMove=ef.bind(e),e.onTouchEnd=eh.bind(e),e.onDocumentTouchStart=ey.bind(e),t.cssMode&&(e.onScroll=ev.bind(e)),e.onClick=eg.bind(e),e.onLoad=eE.bind(e),eb(e,"on")},detachEvents:function(){let e=this;eb(e,"off")}},breakpoints:{setBreakpoint:function(){let e=this,{realIndex:t,initialized:r,params:n,el:i}=e,o=n.breakpoints;if(!o||o&&0===Object.keys(o).length)return;let a=p(),s="window"!==n.breakpointsBase&&n.breakpointsBase?"container":n.breakpointsBase,l=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?e.el:a.querySelector(n.breakpointsBase),u=e.getBreakpoint(o,s,l);if(!u||e.currentBreakpoint===u)return;let c=(u in o?o[u]:void 0)||e.originalParams,d=e_(e,n),f=e_(e,c),h=e.params.grabCursor,m=c.grabCursor,g=n.enabled;d&&!f?(i.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&f&&(i.classList.add(`${n.containerModifierClass}grid`),(c.grid.fill&&"column"===c.grid.fill||!c.grid.fill&&"column"===n.grid.fill)&&i.classList.add(`${n.containerModifierClass}grid-column`),e.emitContainerClasses()),h&&!m?e.unsetGrabCursor():!h&&m&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===c[t])return;let r=n[t]&&n[t].enabled,i=c[t]&&c[t].enabled;r&&!i&&e[t].disable(),!r&&i&&e[t].enable()});let v=c.direction&&c.direction!==n.direction,E=n.loop&&(c.slidesPerView!==n.slidesPerView||v),y=n.loop;v&&r&&e.changeDirection(),S(e.params,c);let b=e.params.enabled,_=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),g&&!b?e.disable():!g&&b&&e.enable(),e.currentBreakpoint=u,e.emit("_beforeBreakpoint",c),r&&(E?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&_?(e.loopCreate(t),e.updateSlides()):y&&!_&&e.loopDestroy()),e.emit("breakpoint",c)}
4,getBreakpoint:function(e,t="window",r){if(!e||"container"===t&&!r)return;let n=!1,i=h(),o="window"===t?i.innerHeight:r.clientHeight,a=Object.keys(e).map(e=>"string"==typeof e&&0===e.indexOf("@")?{value:o*parseFloat(e.substr(1)),point:e}:{value:e,point:e});a.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<a.length;e+=1){let{point:o,value:s}=a[e];"window"===t?i.matchMedia(`(min-width: ${s}px)`).matches&&(n=o):s<=r.clientWidth&&(n=o)}return n||"max"}},checkOverflow:{checkOverflow:function(){let e=this,{isLocked:t,params:r}=e,{slidesOffsetBefore:n}=r;if(n){let t=e.slides.length-1,r=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*n;e.isLocked=e.size>r}else e.isLocked=1===e.snapGrid.length;!0===r.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===r.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){let e=this,{classNames:t,params:r,rtl:n,el:i,device:o}=e,a=ew(["initialized",r.direction,{"free-mode":e.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&"column"===r.grid.fill},{android:o.android},{ios:o.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){let e=this,{el:t,classNames:r}=e;t&&"string"!=typeof t&&(t.classList.remove(...r),e.emitContainerClasses())}}},eP={};class eO{constructor(...e){let t,r;1===e.length&&e[0].constructor&&"Object"===Object.prototype.toString.call(e[0]).slice(8,-1)?r=e[0]:[t,r]=e,r||(r={}),r=S({},r),t&&!r.el&&(r.el=t);const n=p();if(r.el&&"string"==typeof r.el&&n.querySelectorAll(r.el).length>1){const e=[];return n.querySelectorAll(r.el).forEach(t=>{let n=S({},r,{el:t});e.push(new eO(n))}),e}const i=this;i.__swiper__=!0,i.support=Y(),i.device=Z({userAgent:r.userAgent}),i.browser=Q(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],r.modules&&Array.isArray(r.modules)&&r.modules.forEach(e=>{"function"==typeof e&&0>i.modules.indexOf(e)&&i.modules.push(e)});const o={};i.modules.forEach(e=>{e({params:r,swiper:i,extendParams:eT(r,o),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const a=S({},eS,o);return i.params=S({},a,eP,r),i.originalParams=S({},i.params),i.passedParams=S({}
4,r),i.params&&i.params.on&&Object.keys(i.params.on).forEach(e=>{i.on(e,i.params.on[e])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===i.params.direction,isVertical:()=>"vertical"===i.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return 8388608*Math.trunc(this.translate/8388608)},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(e){return this.isHorizontal()?e:({width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"})[e]}getSlideIndex(e){let{slidesEl:t,params:r}=this,n=k(P(t,`.${r.slideClass}, swiper-slide`)[0]);return k(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>+t.getAttribute("data-swiper-slide-index")===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?e=Math.floor(e/this.params.grid.rows):"row"===this.params.grid.fill&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){let e=this,{slidesEl:t,params:r}=e;e.slides=P(t,`.${r.slideClass}, swiper-slide`)}enable(){let e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){let e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){let r=this;e=Math.min(Math.max(e,0),1);let n=r.minTranslate(),i=(r.maxTranslate()-n)*e+n;r.translateTo(i,void 0===t?0:t),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){let t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(r=>{let n=e.getSlideClasses(r);t.push({slideEl:r,classNames:n}),e.emit("_slideClass",r,n)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e="current",t=!1){let r=this,{params:n,slides:i,slidesGrid:o,slidesSizesGrid:a,size:s,activeIndex:l}=r,u=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=i[l]?Math.ceil(i[l].swiperSlideSize):0;for(let r=l+1;r<i.length;r+=1)i[r]&&!e&&(t+=Math.ceil(i[r].swiperSlideSize),u+=1,t>s&&(e=!0));for(let r=l-1;r>=0;r-=1)i[r]&&!e&&(t+=i[r].swiperSlideSize,u+=1,t>s&&(e=!0))}else if("current"===e)for(let e=l+1;e<i.length;e+=1)(t?o[e]+a[e]-o[l]<s:o[e]-o[l]<s)&&(u+=1);else for(let e=l-1;e>=0;e-=1)o[l]-o[e]<s&&(u+=1);return u}update(){let e,t=this;if(!t||t.destroyed)return;let{snapGrid:r,params:n}=t;function i(){let e=Math.min(Math.max(t.rtlTranslate?-1*t.translate:t.translate,t.maxTranslate()),t.minTranslate());t.setTranslate(e),t.updateActiveIndex(),t.updateSlidesClasses()}if(n.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete&&eo(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&t.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&t.isEnd&&!n.centeredSlides){let r=t.virtual&&n.virtual.enabled?t.virtual.slides:t.slides;
4e=t.slideTo(r.length-1,0,!1,!0)}else e=t.slideTo(t.activeIndex,0,!1,!0);e||i()}n.watchOverflow&&r!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(e,t=!0){let r=this,n=r.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(r.el.classList.remove(`${r.params.containerModifierClass}${n}`),r.el.classList.add(`${r.params.containerModifierClass}${e}`),r.emitContainerClasses(),r.params.direction=e,r.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),r.emit("changeDirection"),t&&r.update()),r}changeLanguageDirection(e){let t=this;(!t.rtl||"rtl"!==e)&&(t.rtl||"ltr"!==e)&&(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){let t=this;if(t.mounted)return!0;let r=e||t.params.el;if("string"==typeof r&&(r=document.querySelector(r)),!r)return!1;r.swiper=t,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let n=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`,i=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(n()):P(r,n())[0];return!i&&t.params.createElements&&(i=I("div",t.params.wrapperClass),r.append(i),P(r,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:r,wrapperEl:i,slidesEl:t.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:i,hostEl:t.isElement?r.parentNode.host:r,mounted:!0,rtl:"rtl"===r.dir.toLowerCase()||"rtl"===N(r,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===N(r,"direction")),wrongRTL:"-webkit-box"===N(i,"display")}),!0}init(e){let t=this;if(t.initialized||!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();let r=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&r.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(e=>{e.complete?eo(t,e):e.addEventListener("load",e=>{eo(t,e.target)})}),es(t),t.initialized=!0,es(t),t.emit("init"),t.emit("afterInit"),t}destroy(e=!0,t=!0){let r=this,{params:n,el:i,wrapperEl:o,slides:a}=r;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),n.loop&&r.loopDestroy(),t&&(r.removeClasses(),i&&"string"!=typeof i&&i.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(e=>{e.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(e=>{r.off(e)}),!1!==e&&(r.el&&"string"!=typeof r.el&&(r.el.swiper=null),g(r)),r.destroyed=!0),null}static extendDefaults(e){S(eP,e)}static get extendedDefaults(){return eP}static get defaults(){return eS}static installModule(e){eO.prototype.__modules__||(eO.prototype.__modules__=[]);let t=eO.prototype.__modules__;"function"==typeof e&&0>t.indexOf(e)&&t.push(e)}static use(e){return Array.isArray(e)?e.forEach(e=>eO.installModule(e)):eO.installModule(e),eO}}
4Object.keys(ex).forEach(e=>{Object.keys(ex[e]).forEach(t=>{eO.prototype[t]=ex[e][t]})}),eO.use([ee,et]);let eM=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_snapToSlideEdge","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function eR(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function eI(e,t){let r=["__proto__","constructor","prototype"];Object.keys(t).filter(e=>0>r.indexOf(e)).forEach(r=>{void 0===e[r]?e[r]=t[r]:eR(t[r])&&eR(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:eI(e[r],t[r]):e[r]=t[r]})}function eL(e={}){return e.navigation&&void 0===e.navigation.nextEl&&void 0===e.navigation.prevEl}function eC(e={}){return e.pagination&&void 0===e.pagination.el}function eA(e={}){return e.scrollbar&&void 0===e.scrollbar.el}function eN(e=""){let t=e.split(" ").map(e=>e.trim()).filter(e=>!!e),r=[];return t.forEach(e=>{0>r.indexOf(e)&&r.push(e)}),r.join(" ")}function ek(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function e$({swiper:e,slides:t,passedParams:r,changedParams:n,nextEl:i,prevEl:o,scrollbarEl:a,paginationEl:s}){let l,u,c,d,p,f,h,m,g=n.filter(e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e),{params:v,pagination:E,navigation:y,scrollbar:b,virtual:_,thumbs:w}=e;n.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&!r.thumbs.swiper.destroyed&&v.thumbs&&(!v.thumbs.swiper||v.thumbs.swiper.destroyed)&&(l=!0),n.includes("controller")&&r.controller&&r.controller.control&&v.controller&&!v.controller.control&&(u=!0),n.includes("pagination")&&r.pagination&&(r.pagination.el||s)&&(v.pagination||!1===v.pagination)&&E&&!E.el&&(c=!0),n.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||a)&&(v.scrollbar||!1===v.scrollbar)&&b&&!b.el&&(d=!0),n.includes("navigation")&&r.navigation&&(r.navigation.prevEl||o)&&(r.navigation.nextEl||i)&&(v.navigation||!1===v.navigation)&&y&&!y.prevEl&&!y.nextEl&&(p=!0);let S=t=>{e[t]&&(e[t].destroy(),"navigation"===t?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),v[t].prevEl=void 0,v[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),v[t].el=void 0,e[t].el=void 0))};n.includes("loop")&&e.isElement&&(v.loop&&!r.loop?f=!0:!v.loop&&r.loop?h=!0:m=!0),g.forEach(e
4=>{if(eR(v[e])&&eR(r[e]))Object.assign(v[e],r[e]),("navigation"===e||"pagination"===e||"scrollbar"===e)&&"enabled"in r[e]&&!r[e].enabled&&S(e);else{let t=r[e];(!0===t||!1===t)&&("navigation"===e||"pagination"===e||"scrollbar"===e)?!1===t&&S(e):v[e]=r[e]}}),g.includes("controller")&&!u&&e.controller&&e.controller.control&&v.controller&&v.controller.control&&(e.controller.control=v.controller.control),n.includes("children")&&t&&_&&v.virtual.enabled?(_.slides=t,_.update(!0)):n.includes("virtual")&&_&&v.virtual.enabled&&(t&&(_.slides=t),_.update(!0)),n.includes("children")&&t&&v.loop&&(m=!0),l&&w.init()&&w.update(!0),u&&(e.controller.control=v.controller.control),c&&(e.isElement&&(!s||"string"==typeof s)&&((s=document.createElement("div")).classList.add("swiper-pagination"),s.part.add("pagination"),e.el.appendChild(s)),s&&(v.pagination.el=s),E.init(),E.render(),E.update()),d&&(e.isElement&&(!a||"string"==typeof a)&&((a=document.createElement("div")).classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(v.scrollbar.el=a),b.init(),b.updateSize(),b.setTranslate()),p&&(e.isElement&&(i&&"string"!=typeof i||((i=document.createElement("div")).classList.add("swiper-button-next"),B(i,e.navigation.arrowSvg),i.part.add("button-next"),e.el.appendChild(i)),o&&"string"!=typeof o||((o=document.createElement("div")).classList.add("swiper-button-prev"),B(o,e.navigation.arrowSvg),o.part.add("button-prev"),e.el.appendChild(o))),i&&(v.navigation.nextEl=i),o&&(v.navigation.prevEl=o),y.init(),y.update()),n.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),n.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),n.includes("direction")&&e.changeDirection(r.direction,!1),(f||m)&&e.loopDestroy(),(h||m)&&e.loopCreate(),e.update()}function eD(e={},t=!0){let r={on:{}},n={},i={};eI(r,eS),r._emitClasses=!0,r.init=!1;let o={},a=eM.map(e=>e.replace(/_/,""));return Object.keys(Object.assign({},e)).forEach(s=>{void 0!==e[s]&&(a.indexOf(s)>=0?eR(e[s])?(r[s]={},i[s]={},eI(r[s],e[s]),eI(i[s],e[s])):(r[s]=e[s],i[s]=e[s]):0===s.search(/on[A-Z]/)&&"function"==typeof e[s]?t?n[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:r.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:o[s]=e[s])}),["navigation","pagination","scrollbar"].forEach(e=>{!0===r[e]&&(r[e]={}),!1===r[e]&&delete r[e]}),{params:r,passedParams:i,rest:o,events:n}}function ej({el:e,nextEl:t,prevEl:r,paginationEl:n,scrollbarEl:i,swiper:o},a){eL(a)&&t&&r&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=r,o.originalParams.navigation.prevEl=r),eC(a)&&n&&(o.params.pagination.el=n,o.originalParams.pagination.el=n),eA(a)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}function eF(e,t,r,n,i){let o=[];if(!t)return o;let a=e=>{0>o.indexOf(e)&&o.push(e)};if(r&&n){let e=n.map(i),t=r.map(i);e.join("")!==t.join("")&&a("children"),n.length!==r.length&&a("children")}return eM.filter(e=>"_"===e[0]).map(e=>e.replace(/_/,"")).forEach(r=>{if(r in e&&r in t)if(eR(e[r])&&eR(t[r])){let n=Object.keys(e[r]),i=Object.keys(t[r]);n.length!==i.length?a(r):(n.forEach(n=>{e[r][n]!==t[r][n]&&a(r)}),i.forEach(n=>{e[r][n]!==t[r][n]&&a(r)}))}else e[r]!==t[r]&&a(r)}),o}let eB=e=>{e&&!e.destroyed&&e.params.virtual&&(!e.params.virtual||e.params.virtual.enabled)&&(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit("_virtualUpdated"),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function eH(){return(eH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ez(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function eG(e){let t=[];return l.Children.toArray(e).forEach(e=>{ez(e)?t.push(e):e.props&&e.props.children&&eG(e.props.children).forEach(e=>t.push(e))}),t}function eV(e){let t=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};
4return l.Children.toArray(e).forEach(e=>{if(ez(e))t.push(e);else if(e.props&&e.props.slot&&r[e.props.slot])r[e.props.slot].push(e);else if(e.props&&e.props.children){let n=eG(e.props.children);n.length>0?n.forEach(e=>t.push(e)):r["container-end"].push(e)}else r["container-end"].push(e)}),{slides:t,slots:r}}function eW(e,t,r){if(!r)return null;let n=e=>{let r=e;return e<0?r=t.length+e:r>=t.length&&(r-=t.length),r},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${r.offset}px`}:{top:`${r.offset}px`},{from:o,to:a}=r,s=e.params.loop?-t.length:0,u=e.params.loop?2*t.length:t.length,c=[];for(let e=s;e<u;e+=1)e>=o&&e<=a&&c.push(t[n(e)]);return c.map((t,r)=>l.cloneElement(t,{swiper:e,style:i,key:t.props.virtualIndex||t.key||`slide-${r}`}))}function eU(e,t){return"u"<typeof window?(0,l.useEffect)(e,t):(0,l.useLayoutEffect)(e,t)}let eX=(0,l.createContext)(null),eq=(0,l.createContext)(null),eY=()=>(0,l.useContext)(eq),eK=(0,l.forwardRef)(({className:e,tag:t="div",wrapperTag:r="div",children:n,onSwiper:i,...o}={},a)=>{let s=!1,[u,c]=(0,l.useState)("swiper"),[d,p]=(0,l.useState)(null),[f,h]=(0,l.useState)(!1),m=(0,l.useRef)(!1),g=(0,l.useRef)(null),v=(0,l.useRef)(null),E=(0,l.useRef)(null),y=(0,l.useRef)(null),b=(0,l.useRef)(null),_=(0,l.useRef)(null),w=(0,l.useRef)(null),S=(0,l.useRef)(null),{params:T,passedParams:x,rest:P,events:O}=eD(o),{slides:M,slots:R}=eV(n),I=()=>{h(!f)};Object.assign(T.on,{_containerClasses(e,t){c(t)}});let L=()=>{Object.assign(T.on,O),s=!0;let e={...T};if(delete e.wrapperClass,v.current=new eO(e),v.current.virtual&&v.current.params.virtual.enabled){v.current.virtual.slides=M;let e={cache:!1,slides:M,renderExternal:p,renderExternalUpdate:!1};eI(v.current.params.virtual,e),eI(v.current.originalParams.virtual,e)}};g.current||L(),v.current&&v.current.on("_beforeBreakpoint",I);let C=()=>{!s&&O&&v.current&&Object.keys(O).forEach(e=>{v.current.on(e,O[e])})},A=()=>{O&&v.current&&Object.keys(O).forEach(e=>{v.current.off(e,O[e])})};function N(){return T.virtual?eW(v.current,M,d):M.map((e,t)=>l.cloneElement(e,{swiper:v.current,swiperSlideIndex:t}))}return(0,l.useEffect)(()=>()=>{v.current&&v.current.off("_beforeBreakpoint",I)}),(0,l.useEffect)(()=>{!m.current&&v.current&&(v.current.emitSlidesClasses(),m.current=!0)}),eU(()=>{if(a&&(a.current=g.current),g.current)return v.current.destroyed&&L(),ej({el:g.current,nextEl:b.current,prevEl:_.current,paginationEl:w.current,scrollbarEl:S.current,swiper:v.current},T),i&&!v.current.destroyed&&i(v.current),()=>{v.current&&!v.current.destroyed&&v.current.destroy(!0,!1)}},[]),eU(()=>{C();let e=eF(x,E.current,M,y.current,e=>e.key);return E.current=x,y.current=M,e.length&&v.current&&!v.current.destroyed&&e$({swiper:v.current,slides:M,passedParams:x,changedParams:e,nextEl:b.current,prevEl:_.current,scrollbarEl:S.current,paginationEl:w.current}),()=>{A()}}),eU(()=>{eB(v.current)},[d]),l.createElement(t,eH({ref:g,className:eN(`${u}${e?` ${e}`:""}`)},P),l.createElement(eq.Provider,{value:v.current},R["container-start"],l.createElement(r,{className:ek(T.wrapperClass)},R["wrapper-start"],N(),R["wrapper-end"]),eL(T)&&l.createElement(l.Fragment,null,l.createElement("div",{ref:_,className:"swiper-button-prev"}),l.createElement("div",{ref:b,className:"swiper-button-next"})),eA(T)&&l.createElement("div",{ref:S,className:"swiper-scrollbar"}),eC(T)&&l.createElement("div",{ref:w,className:"swiper-pagination"}),R["container-end"]))});eK.displayName="Swiper";let eZ=(0,l.forwardRef)(({tag:e="div",children:t,className:r="",swiper:n,zoom:i,lazy:o,virtualIndex:a,swiperSlideIndex:s,...u}={},c)=>{let d=(0,l.useRef)(null),[p,f]=(0,l.useState)("swiper-slide"),[h,m]=(0,l.useState)(!1);function g(e,t,r){t===d.current&&f(r)}eU(()=>{if(void 0!==s&&(d.current.swiperSlideIndex=s),c&&(c.current=d.current),d.current&&n){if(n.destroyed){"swiper-slide"!==p&&f("swiper-slide");return}return n.on("_slideClass",g),()=>{n&&n.off("_slideClass",g)}}}),eU(()=>{n&&d.current&&!n.destroyed&&f(n.getSlideClasses(d.current))},[n]);let v={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},E=()=>"function"==typeof t?t(v):t,y=()=>{m(!0)};return l.createElement(e,eH({ref:d,className:eN(`${p}${r?` ${r}`:""}`),"data-swiper-slide-index":a,onLoad:y},u),i&&l.createElement(eX.Provider,{value:v},l.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":"number"==typeof i?i:void 0},E(),o&&!h&&l.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}}))),!i&&l.createElement(eX.Provider,{value:v},E(),o&&!h&&l.createElement("div",{className:"swiper-lazy-preloader",ref:e=>{e&&(e.lazyPreloaderManaged=!0)}})))});eZ.displayName="SwiperSlide";let eJ=(0,l.forwardRef)((e,t)=>null),eQ=(0,l.forwardRef)((e,t)=>null),e0=(0,l.forwardRef)((e,t)=>null),e1=(0,l.forwardRef)((e,t)=>null),e2=Object.assign((0,l.forwardRef)((e,t)=>{var{children:r,className:n,modules:i,slidesPerView:o}=e,u=(0,a.T)(e,["children","className","modules","slidesPerView"]);let c=(0,l.useRef)(null),d=n||"lc-Scroll",p=d.split(" ")[0];(0,l.useImperativeHandle)(t,()=>c.current,[]);let f={[`${d}`]:d},h=()=>{let e=e=>(0,l.isValidElement)(e)&&(e.type===eJ||e.type===e0||e.type===eQ),t=l.Children.toArray(r).filter(e).length,n=0;return l.Children.map(r,r=>{if(!(0,l.isValidElement)(r))return l.createElement(l.Fragment,null);if(e(r)){n+=1;let e=r.props,{children:i}=e,o=(0,a.T)(e,["children"]),s=o["aria-label"]||o["aria-describedby"]||o["aria-labelledby"];return l.createElement(eZ,Object.assign({className:`${p}-item ${p}-item--slidesPerViewAuto`,virtualIndex:o.virtualIndex||n},o,{"aria-label":s?o["aria-label"]:`Slide ${n} of ${t}`,key:r.key}),i)}return r})};return l.createElement(eK,Object.assign({a11y:{firstSlideMessage:"Previous",lastSlideMessage:"Next",nextSlideMessage:"Next",prevSlideMessage:"Previous",slideLabelMessage:void 0},className:(0,s.A)(f),keyboard:!0,modules:[...i||[],V,z,H],ref:c,slidesPerView:o},u),h())}),{Item:e1});var e3=r(99352),e4=r(62448);let e6=(0,l.forwardRef)((e,t)=>((0,e4.q)(!1,"IconPause"),l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",ref:t},e),l.createElement("path",{d:"M14 9h-4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V10a1 1 0 0 0-1-1m-1 12h-2V11h2zM22 9h-4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V10a1 1 0 0 0-1-1m-1 12h-2V11h2z"}))));e6.displayName="LoopPause";let e8=(0,l.forwardRef)((e,t)=>((0,e4.q)(!1,"IconPlay"),l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",ref:t},e),l.createElement("path",{d:"m23.448 15.106-12-6a1.001 1.001 0 0 0-1.446.894v12a1 1 0 0 0 1.448.894l12-6a1.002 1.002 0 0 0 0-1.788zM12 20.382v-8.764L20.764 16z"}))));e8.displayName="LoopPlay";var e5=r(74003),e7=r(3102),e9=r(60825),te=r(75841),tt=r(94353),tr=r(22836);let tn=e=>{let t=eY(),[,r]=(0,l.useState)({}),n=()=>r({});return(0,l.useEffect)(()=>{n();
4let e=["observerUpdate","progress","autoplayStop","autoplayStart"];return e.forEach(e=>{t.on(e,n)}),n(),()=>{e.forEach(e=>{t.off(e,n)})}},[e,t]),t},ti="lc-Carousel-navigation",to=`${ti}Container`,ta=`${ti}Content`,ts=({autoplay:e=!1,controls:t,id:r,overrideControlsPosition:n})=>{var i;let o=tn(e),{surfaceBackground:a}=(0,l.useContext)(tr.B),u=(0,l.useRef)(null),c=(0,l.useRef)(null),d=(0,l.useRef)(null),[p,f]=(0,l.useState)(""),h=l.useCallback(()=>{o.el&&u.current&&o.el.firstChild!==u.current&&o.el.prepend(u.current)},[o.el,u]);(0,l.useEffect)(()=>{let e=null;o.el&&(e=new MutationObserver(()=>{h()})).observe(o.el,{childList:!0});let t=()=>h();return window.addEventListener("resize",t),h(),()=>{e&&e.disconnect(),window.removeEventListener("resize",t)}},[o.el,u,h]);let[m,g]=(null==(i=null==t?void 0:t.position)?void 0:i.split(/(?=[A-Z])/))||[],v=!!n||(null==t?void 0:t.position)==="overlay",E=n?Object.assign({position:"absolute"},n):void 0,y=(null==t?void 0:t.kind)==="numerical",b=e&&o.autoplay.running,_={[to]:!0,[`${to}--position${(0,X.B)(m)}`]:m,[`${to}--position${(0,X.B)(g)}`]:g},w={[ti]:!0,[`${ti}--kindNumerical`]:y,[`${ti}--autoplay`]:e,[`${ti}--onDarkBackground`]:e7.wg.includes(a)},S=e=>{let{originalParams:t}=o,{a11y:r}=t||{},{firstSlideMessage:n="Previous",lastSlideMessage:i="Next",nextSlideMessage:a="Next",prevSlideMessage:s="Previous"}=r||{};return"prev"===e?o.isBeginning?n:s:o.isEnd?i:a},T={"aria-controls":r,backdrop:y?"":"transparent",elementType:"button",size:y?"s":"m",styleVariant:"secondary"},x=()=>b?o.autoplay.stop():o.autoplay.start(),P=o.snapIndex+1,O=o.snapGrid.length,M=()=>{var e;let t=o.activeIndex+1,r=null==(e=o.slides)?void 0:e.length;f(`Primary item: ${t} of ${r}`)},R=(null==t?void 0:t.slot)?l.createElement("div",{className:ta,role:"note"},t.slot):null;if(!o||o.isEnd&&o.isBeginning)return l.createElement(l.Fragment,null,R&&l.createElement("div",{className:(0,s.A)(_),ref:u},R));let I=()=>{o.slidePrev(),M()},L=()=>{o.slideNext(),M()},C=e=>{var t;("Spacebar"===e.key||" "===e.key)&&(e.preventDefault(),I(),o.isBeginning&&(null==(t=d.current)||t.focus()))},A=e=>{var t;("Spacebar"===e.key||" "===e.key)&&(e.preventDefault(),L(),o.isEnd&&(null==(t=c.current)||t.focus()))},N=l.createElement(l.Fragment,null,l.createElement(te.K,Object.assign({},T,{icon:e3.A,isDisabled:o.isBeginning,label:S("prev"),onClick:I,onKeyDown:e=>C(e),ref:c})),y&&l.createElement("span",{"aria-label":`${P} of ${O}`},l.createElement(e9.D,{weight:"bold"},P," / ",O)),e&&l.createElement(te.K,{elementType:"button",icon:b?e6:e8,label:b?"Pause":"Play",onClick:x,size:"s",styleVariant:"secondary"}),l.createElement(te.K,Object.assign({},T,{icon:e5.A,isDisabled:o.isEnd,label:S("next"),onClick:L,onKeyDown:e=>A(e),ref:d})));return l.createElement(l.Fragment,null,l.createElement("div",{"aria-live":"polite",className:`${to}-srOnly`,tabIndex:-1},p),l.createElement("div",{"aria-label":"Carousel controls",className:(0,s.A)(_),ref:u,role:"group",style:E},l.createElement("div",{className:(0,s.A)(w)},v?l.createElement(tt.u,{background:v?"black":void 0},N):N),R))},tl="lc-Carousel",tu={kind:"default",position:"bottomCentre",slot:void 0},tc=Object.assign((0,l.forwardRef)((e,t)=>{let r;var n,{autoplay:i=!1,children:o,controls:u=tu,id:c,overflow:d="hidden"}=e,p=(0,a.T)(e,["autoplay","children","controls","id","overflow"]);let f=Object.assign(Object.assign({},tu),u),h={[tl]:!0,[`${tl}--overflow${(0,X.B)(d)}`]:d,[`${tl}--navigationBottom`]:null==(n=null==f?void 0:f.position)?void 0:n.includes("bottom")},m=[U];return i&&(r={delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},m=[...m,W]),l.createElement(e2,Object.assign({"aria-roledescription":"carousel",autoplay:r,className:(0,s.A)(h),grabCursor:!0,id:c,modules:m,ref:t,slidesPerView:"auto",spaceBetween:24,tag:"section",watchOverflow:!0},p),o,l.createElement(ts,{autoplay:i,controls:f,id:c,overrideControlsPosition:p.overrideControlsPosition}))}),{Item:eJ});tc.displayName="Carousel",tc.Item.displayName="Carousel.Item"},99352:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,g:()=>o});var n=r(55729),i=r(62448);let o=(0,n.forwardRef)((e,t)=>((0,i.q)(!1,"IconChevronLeft"),n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",ref:t},e),n.createElement("path",{d:"M18.323 22.736a.9.9 0 0 0 1.271 0l.142-.142a.9.9 0 0 0 0-1.272L14.416 16l5.322-5.322a.9.9 0 0 0 0-1.272l-.142
4-.142a.9.9 0 0 0-1.272 0l-6.03 6.03a1 1 0 0 0 0 1.414l6.03 6.03z"}))));o.displayName="LoopChevronLeft"}}]);
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.