From ac3817770b088fef7dcb7889ddc235528aaf855f Mon Sep 17 00:00:00 2001 From: Sadanand Pai Date: Thu, 2 Nov 2023 03:00:06 +0000 Subject: [PATCH] react build files - github action --- .../{index-0695c887.js => index-cd89e72a.js} | 88 +++++++++++++------ ...{index-6ab056c4.css => index-dfcfb331.css} | 2 +- react/dist/index.html | 4 +- 3 files changed, 66 insertions(+), 28 deletions(-) rename react/dist/assets/{index-0695c887.js => index-cd89e72a.js} (83%) rename react/dist/assets/{index-6ab056c4.css => index-dfcfb331.css} (80%) diff --git a/react/dist/assets/index-0695c887.js b/react/dist/assets/index-cd89e72a.js similarity index 83% rename from react/dist/assets/index-0695c887.js rename to react/dist/assets/index-cd89e72a.js index 29cb156c0..88ef0884a 100644 --- a/react/dist/assets/index-0695c887.js +++ b/react/dist/assets/index-cd89e72a.js @@ -1,4 +1,4 @@ -var Lr=Object.defineProperty;var Dr=(i,e,s)=>e in i?Lr(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var kr=(i,e,s)=>(Dr(i,typeof e!="symbol"?e+"":e,s),s);function _mergeNamespaces(i,e){for(var s=0;so[a]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const c of a)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function s(a){const c={};return a.integrity&&(c.integrity=a.integrity),a.referrerPolicy&&(c.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?c.credentials="include":a.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(a){if(a.ep)return;a.ep=!0;const c=s(a);fetch(a.href,c)}})();function getDefaultExportFromCjs(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** +var Ln=Object.defineProperty;var Dn=(i,e,s)=>e in i?Ln(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var kn=(i,e,s)=>(Dn(i,typeof e!="symbol"?e+"":e,s),s);function _mergeNamespaces(i,e){for(var s=0;so[a]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const c of a)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function s(a){const c={};return a.integrity&&(c.integrity=a.integrity),a.referrerPolicy&&(c.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?c.credentials="include":a.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(a){if(a.ep)return;a.ep=!0;const c=s(a);fetch(a.href,c)}})();function getDefaultExportFromCjs(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** * @license React * react.production.min.js * @@ -23,8 +23,8 @@ var Lr=Object.defineProperty;var Dr=(i,e,s)=>e in i?Lr(i,e,{enumerable:!0,config * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(i){for(var e=1;e"u")throw new Error(e)}function warning$1(i,e){if(!i){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(i,e){return{usr:i.state,key:i.key,idx:e}}function createLocation(i,e,s,o){return s===void 0&&(s=null),_extends$2({pathname:typeof i=="string"?i:i.pathname,search:"",hash:""},typeof e=="string"?parsePath(e):e,{state:s,key:e&&e.key||o||createKey()})}function createPath(i){let{pathname:e="/",search:s="",hash:o=""}=i;return s&&s!=="?"&&(e+=s.charAt(0)==="?"?s:"?"+s),o&&o!=="#"&&(e+=o.charAt(0)==="#"?o:"#"+o),e}function parsePath(i){let e={};if(i){let s=i.indexOf("#");s>=0&&(e.hash=i.substr(s),i=i.substr(0,s));let o=i.indexOf("?");o>=0&&(e.search=i.substr(o),i=i.substr(0,o)),i&&(e.pathname=i)}return e}function getUrlBasedHistory(i,e,s,o){o===void 0&&(o={});let{window:a=document.defaultView,v5Compat:c=!1}=o,h=a.history,g=Action.Pop,d=null,b=_();b==null&&(b=0,h.replaceState(_extends$2({},h.state,{idx:b}),""));function _(){return(h.state||{idx:null}).idx}function j(){g=Action.Pop;let st=_(),rt=st==null?null:st-b;b=st,d&&d({action:g,location:tt.location,delta:rt})}function $(st,rt){g=Action.Push;let nt=createLocation(tt.location,st,rt);s&&s(nt,st),b=_()+1;let it=getHistoryState(nt,b),ot=tt.createHref(nt);try{h.pushState(it,"",ot)}catch(ut){if(ut instanceof DOMException&&ut.name==="DataCloneError")throw ut;a.location.assign(ot)}c&&d&&d({action:g,location:tt.location,delta:1})}function _e(st,rt){g=Action.Replace;let nt=createLocation(tt.location,st,rt);s&&s(nt,st),b=_();let it=getHistoryState(nt,b),ot=tt.createHref(nt);h.replaceState(it,"",ot),c&&d&&d({action:g,location:tt.location,delta:0})}function et(st){let rt=a.location.origin!=="null"?a.location.origin:a.location.href,nt=typeof st=="string"?st:createPath(st);return invariant(rt,"No window.location.(origin|href) available to create URL for href: "+nt),new URL(nt,rt)}let tt={get action(){return g},get location(){return i(a,h)},listen(st){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(PopStateEventType,j),d=st,()=>{a.removeEventListener(PopStateEventType,j),d=null}},createHref(st){return e(a,st)},createURL:et,encodeLocation(st){let rt=et(st);return{pathname:rt.pathname,search:rt.search,hash:rt.hash}},push:$,replace:_e,go(st){return h.go(st)}};return tt}var ResultType;(function(i){i.data="data",i.deferred="deferred",i.redirect="redirect",i.error="error"})(ResultType||(ResultType={}));const immutableRouteKeys=new Set(["lazy","caseSensitive","path","id","index","children"]);function isIndexRoute(i){return i.index===!0}function convertRoutesToDataRoutes(i,e,s,o){return s===void 0&&(s=[]),o===void 0&&(o={}),i.map((a,c)=>{let h=[...s,c],g=typeof a.id=="string"?a.id:h.join("-");if(invariant(a.index!==!0||!a.children,"Cannot specify children on an index route"),invariant(!o[g],'Found a route id collision on id "'+g+`". Route id's must be globally unique within Data Router usages`),isIndexRoute(a)){let d=_extends$2({},a,e(a),{id:g});return o[g]=d,d}else{let d=_extends$2({},a,e(a),{id:g,children:void 0});return o[g]=d,a.children&&(d.children=convertRoutesToDataRoutes(a.children,e,h,o)),d}})}function matchRoutes(i,e,s){s===void 0&&(s="/");let o=typeof e=="string"?parsePath(e):e,a=stripBasename(o.pathname||"/",s);if(a==null)return null;let c=flattenRoutes(i);rankRouteBranches(c);let h=null;for(let g=0;h==null&&g{let d={relativePath:g===void 0?c.path||"":g,caseSensitive:c.caseSensitive===!0,childrenIndex:h,route:c};d.relativePath.startsWith("/")&&(invariant(d.relativePath.startsWith(o),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(o.length));let b=joinPaths([o,d.relativePath]),_=s.concat(d);c.children&&c.children.length>0&&(invariant(c.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+b+'".')),flattenRoutes(c.children,e,_,b)),!(c.path==null&&!c.index)&&e.push({path:b,score:computeScore(b,c.index),routesMeta:_})};return i.forEach((c,h)=>{var g;if(c.path===""||!((g=c.path)!=null&&g.includes("?")))a(c,h);else for(let d of explodeOptionalSegments(c.path))a(c,h,d)}),e}function explodeOptionalSegments(i){let e=i.split("/");if(e.length===0)return[];let[s,...o]=e,a=s.endsWith("?"),c=s.replace(/\?$/,"");if(o.length===0)return a?[c,""]:[c];let h=explodeOptionalSegments(o.join("/")),g=[];return g.push(...h.map(d=>d===""?c:[c,d].join("/"))),a&&g.push(...h),g.map(d=>i.startsWith("/")&&d===""?"/":d)}function rankRouteBranches(i){i.sort((e,s)=>e.score!==s.score?s.score-e.score:compareIndexes(e.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}const paramRe=/^:\w+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=i=>i==="*";function computeScore(i,e){let s=i.split("/"),o=s.length;return s.some(isSplat)&&(o+=splatPenalty),e&&(o+=indexRouteValue),s.filter(a=>!isSplat(a)).reduce((a,c)=>a+(paramRe.test(c)?dynamicSegmentValue:c===""?emptySegmentValue:staticSegmentValue),o)}function compareIndexes(i,e){return i.length===e.length&&i.slice(0,-1).every((o,a)=>o===e[a])?i[i.length-1]-e[e.length-1]:0}function matchRouteBranch(i,e){let{routesMeta:s}=i,o={},a="/",c=[];for(let h=0;h{if(_==="*"){let $=g[j]||"";h=c.slice(0,c.length-$.length).replace(/(.)\/+$/,"$1")}return b[_]=safelyDecodeURIComponent(g[j]||"",_),b},{}),pathname:c,pathnameBase:h,pattern:i}}function compilePath(i,e,s){e===void 0&&(e=!1),s===void 0&&(s=!0),warning$1(i==="*"||!i.endsWith("*")||i.endsWith("/*"),'Route path "'+i+'" will be treated as if it were '+('"'+i.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+i.replace(/\*$/,"/*")+'".'));let o=[],a="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(h,g)=>(o.push(g),"/([^\\/]+)"));return i.endsWith("*")?(o.push("*"),a+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?a+="\\/*$":i!==""&&i!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),o]}function safelyDecodeURI(i){try{return decodeURI(i)}catch(e){return warning$1(!1,'The URL path "'+i+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),i}}function safelyDecodeURIComponent(i,e){try{return decodeURIComponent(i)}catch(s){return warning$1(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+i+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+s+").")),i}}function stripBasename(i,e){if(e==="/")return i;if(!i.toLowerCase().startsWith(e.toLowerCase()))return null;let s=e.endsWith("/")?e.length-1:e.length,o=i.charAt(s);return o&&o!=="/"?null:i.slice(s)||"/"}function resolvePath(i,e){e===void 0&&(e="/");let{pathname:s,search:o="",hash:a=""}=typeof i=="string"?parsePath(i):i;return{pathname:s?s.startsWith("/")?s:resolvePathname(s,e):e,search:normalizeSearch(o),hash:normalizeHash(a)}}function resolvePathname(i,e){let s=e.replace(/\/+$/,"").split("/");return i.split("/").forEach(a=>{a===".."?s.length>1&&s.pop():a!=="."&&s.push(a)}),s.length>1?s.join("/"):"/"}function getInvalidPathError(i,e,s,o){return"Cannot include a '"+i+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+s+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(i){return i.filter((e,s)=>s===0||e.route.path&&e.route.path.length>0)}function resolveTo(i,e,s,o){o===void 0&&(o=!1);let a;typeof i=="string"?a=parsePath(i):(a=_extends$2({},i),invariant(!a.pathname||!a.pathname.includes("?"),getInvalidPathError("?","pathname","search",a)),invariant(!a.pathname||!a.pathname.includes("#"),getInvalidPathError("#","pathname","hash",a)),invariant(!a.search||!a.search.includes("#"),getInvalidPathError("#","search","hash",a)));let c=i===""||a.pathname==="",h=c?"/":a.pathname,g;if(o||h==null)g=s;else{let j=e.length-1;if(h.startsWith("..")){let $=h.split("/");for(;$[0]==="..";)$.shift(),j-=1;a.pathname=$.join("/")}g=j>=0?e[j]:"/"}let d=resolvePath(a,g),b=h&&h!=="/"&&h.endsWith("/"),_=(c||h===".")&&s.endsWith("/");return!d.pathname.endsWith("/")&&(b||_)&&(d.pathname+="/"),d}const joinPaths=i=>i.join("/").replace(/\/\/+/g,"/"),normalizePathname=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,normalizeHash=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;class ErrorResponse{constructor(e,s,o,a){a===void 0&&(a=!1),this.status=e,this.statusText=s||"",this.internal=a,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}}function isRouteErrorResponse(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}const validMutationMethodsArr=["post","put","patch","delete"],validMutationMethods=new Set(validMutationMethodsArr),validRequestMethodsArr=["get",...validMutationMethodsArr],validRequestMethods=new Set(validRequestMethodsArr),redirectStatusCodes=new Set([301,302,303,307,308]),redirectPreserveMethodStatusCodes=new Set([307,308]),IDLE_NAVIGATION={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_FETCHER={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_BLOCKER={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ABSOLUTE_URL_REGEX$1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,defaultMapRouteProperties=i=>({hasErrorBoundary:!!i.hasErrorBoundary});function createRouter(i){const e=i.window?i.window:typeof window<"u"?window:void 0,s=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",o=!s;invariant(i.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(i.mapRouteProperties)a=i.mapRouteProperties;else if(i.detectErrorBoundary){let St=i.detectErrorBoundary;a=_t=>({hasErrorBoundary:St(_t)})}else a=defaultMapRouteProperties;let c={},h=convertRoutesToDataRoutes(i.routes,a,void 0,c),g,d=i.basename||"/",b=_extends$2({v7_normalizeFormMethod:!1,v7_prependBasename:!1},i.future),_=null,j=new Set,$=null,_e=null,et=null,tt=i.hydrationData!=null,st=matchRoutes(h,i.history.location,d),rt=null;if(st==null){let St=getInternalRouterError(404,{pathname:i.history.location.pathname}),{matches:_t,route:Tt}=getShortCircuitMatches(h);st=_t,rt={[Tt.id]:St}}let nt=!st.some(St=>St.route.lazy)&&(!st.some(St=>St.route.loader)||i.hydrationData!=null),it,ot={historyAction:i.history.action,location:i.history.location,matches:st,initialized:nt,navigation:IDLE_NAVIGATION,restoreScrollPosition:i.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:i.hydrationData&&i.hydrationData.loaderData||{},actionData:i.hydrationData&&i.hydrationData.actionData||null,errors:i.hydrationData&&i.hydrationData.errors||rt,fetchers:new Map,blockers:new Map},ut=Action.Pop,ht=!1,pt,yt=!1,gt=!1,xt=[],wt=[],vt=new Map,ft=0,lt=-1,dt=new Map,bt=new Set,at=new Map,ct=new Map,mt=new Map,Et=!1;function jt(){return _=i.history.listen(St=>{let{action:_t,location:Tt,delta:Pt}=St;if(Et){Et=!1;return}warning$1(mt.size===0||Pt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Nt=jr({currentLocation:ot.location,nextLocation:Tt,historyAction:_t});if(Nt&&Pt!=null){Et=!0,i.history.go(Pt*-1),dr(Nt,{state:"blocked",location:Tt,proceed(){dr(Nt,{state:"proceeding",proceed:void 0,reset:void 0,location:Tt}),i.history.go(Pt)},reset(){let Lt=new Map(ot.blockers);Lt.set(Nt,IDLE_BLOCKER),Rt({blockers:Lt})}});return}return Ht(_t,Tt)}),ot.initialized||Ht(Action.Pop,ot.location),it}function kt(){_&&_(),j.clear(),pt&&pt.abort(),ot.fetchers.forEach((St,_t)=>ir(_t)),ot.blockers.forEach((St,_t)=>_r(_t))}function Ct(St){return j.add(St),()=>j.delete(St)}function Rt(St){ot=_extends$2({},ot,St),j.forEach(_t=>_t(ot))}function At(St,_t){var Tt,Pt;let Nt=ot.actionData!=null&&ot.navigation.formMethod!=null&&isMutationMethod(ot.navigation.formMethod)&&ot.navigation.state==="loading"&&((Tt=St.state)==null?void 0:Tt._isRedirect)!==!0,Lt;_t.actionData?Object.keys(_t.actionData).length>0?Lt=_t.actionData:Lt=null:Nt?Lt=ot.actionData:Lt=null;let Dt=_t.loaderData?mergeLoaderData(ot.loaderData,_t.loaderData,_t.matches||[],_t.errors):ot.loaderData,Ot=ot.blockers;Ot.size>0&&(Ot=new Map(Ot),Ot.forEach((Ut,Ft)=>Ot.set(Ft,IDLE_BLOCKER)));let Mt=ht===!0||ot.navigation.formMethod!=null&&isMutationMethod(ot.navigation.formMethod)&&((Pt=St.state)==null?void 0:Pt._isRedirect)!==!0;g&&(h=g,g=void 0),yt||ut===Action.Pop||(ut===Action.Push?i.history.push(St,St.state):ut===Action.Replace&&i.history.replace(St,St.state)),Rt(_extends$2({},_t,{actionData:Lt,loaderData:Dt,historyAction:ut,location:St,initialized:!0,navigation:IDLE_NAVIGATION,revalidation:"idle",restoreScrollPosition:Cr(St,_t.matches||ot.matches),preventScrollReset:Mt,blockers:Ot})),ut=Action.Pop,ht=!1,yt=!1,gt=!1,xt=[],wt=[]}async function It(St,_t){if(typeof St=="number"){i.history.go(St);return}let Tt=normalizeTo(ot.location,ot.matches,d,b.v7_prependBasename,St,_t==null?void 0:_t.fromRouteId,_t==null?void 0:_t.relative),{path:Pt,submission:Nt,error:Lt}=normalizeNavigateOptions(b.v7_normalizeFormMethod,!1,Tt,_t),Dt=ot.location,Ot=createLocation(ot.location,Pt,_t&&_t.state);Ot=_extends$2({},Ot,i.history.encodeLocation(Ot));let Mt=_t&&_t.replace!=null?_t.replace:void 0,Ut=Action.Push;Mt===!0?Ut=Action.Replace:Mt===!1||Nt!=null&&isMutationMethod(Nt.formMethod)&&Nt.formAction===ot.location.pathname+ot.location.search&&(Ut=Action.Replace);let Ft=_t&&"preventScrollReset"in _t?_t.preventScrollReset===!0:void 0,Jt=jr({currentLocation:Dt,nextLocation:Ot,historyAction:Ut});if(Jt){dr(Jt,{state:"blocked",location:Ot,proceed(){dr(Jt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ot}),It(St,_t)},reset(){let qt=new Map(ot.blockers);qt.set(Jt,IDLE_BLOCKER),Rt({blockers:qt})}});return}return await Ht(Ut,Ot,{submission:Nt,pendingError:Lt,preventScrollReset:Ft,replace:_t&&_t.replace})}function zt(){if(tr(),Rt({revalidation:"loading"}),ot.navigation.state!=="submitting"){if(ot.navigation.state==="idle"){Ht(ot.historyAction,ot.location,{startUninterruptedRevalidation:!0});return}Ht(ut||ot.historyAction,ot.navigation.location,{overrideNavigation:ot.navigation})}}async function Ht(St,_t,Tt){pt&&pt.abort(),pt=null,ut=St,yt=(Tt&&Tt.startUninterruptedRevalidation)===!0,Ar(ot.location,ot.matches),ht=(Tt&&Tt.preventScrollReset)===!0;let Pt=g||h,Nt=Tt&&Tt.overrideNavigation,Lt=matchRoutes(Pt,_t,d);if(!Lt){let qt=getInternalRouterError(404,{pathname:_t.pathname}),{matches:Qt,route:nr}=getShortCircuitMatches(Pt);gr(),At(_t,{matches:Qt,loaderData:{},errors:{[nr.id]:qt}});return}if(ot.initialized&&!gt&&isHashChangeOnly(ot.location,_t)&&!(Tt&&Tt.submission&&isMutationMethod(Tt.submission.formMethod))){At(_t,{matches:Lt});return}pt=new AbortController;let Dt=createClientSideRequest(i.history,_t,pt.signal,Tt&&Tt.submission),Ot,Mt;if(Tt&&Tt.pendingError)Mt={[findNearestBoundary(Lt).route.id]:Tt.pendingError};else if(Tt&&Tt.submission&&isMutationMethod(Tt.submission.formMethod)){let qt=await $t(Dt,_t,Tt.submission,Lt,{replace:Tt.replace});if(qt.shortCircuited)return;Ot=qt.pendingActionData,Mt=qt.pendingActionError,Nt=getLoadingNavigation(_t,Tt.submission),Dt=new Request(Dt.url,{signal:Dt.signal})}let{shortCircuited:Ut,loaderData:Ft,errors:Jt}=await Bt(Dt,_t,Lt,Nt,Tt&&Tt.submission,Tt&&Tt.fetcherSubmission,Tt&&Tt.replace,Ot,Mt);Ut||(pt=null,At(_t,_extends$2({matches:Lt},Ot?{actionData:Ot}:{},{loaderData:Ft,errors:Jt})))}async function $t(St,_t,Tt,Pt,Nt){Nt===void 0&&(Nt={}),tr();let Lt=getSubmittingNavigation(_t,Tt);Rt({navigation:Lt});let Dt,Ot=getTargetMatch(Pt,_t);if(!Ot.route.action&&!Ot.route.lazy)Dt={type:ResultType.error,error:getInternalRouterError(405,{method:St.method,pathname:_t.pathname,routeId:Ot.route.id})};else if(Dt=await callLoaderOrAction("action",St,Ot,Pt,c,a,d),St.signal.aborted)return{shortCircuited:!0};if(isRedirectResult(Dt)){let Mt;return Nt&&Nt.replace!=null?Mt=Nt.replace:Mt=Dt.location===ot.location.pathname+ot.location.search,await Yt(ot,Dt,{submission:Tt,replace:Mt}),{shortCircuited:!0}}if(isErrorResult(Dt)){let Mt=findNearestBoundary(Pt,Ot.route.id);return(Nt&&Nt.replace)!==!0&&(ut=Action.Push),{pendingActionData:{},pendingActionError:{[Mt.route.id]:Dt.error}}}if(isDeferredResult(Dt))throw getInternalRouterError(400,{type:"defer-action"});return{pendingActionData:{[Ot.route.id]:Dt.data}}}async function Bt(St,_t,Tt,Pt,Nt,Lt,Dt,Ot,Mt){let Ut=Pt||getLoadingNavigation(_t,Nt),Ft=Nt||Lt||getSubmissionFromNavigation(Ut),Jt=g||h,[qt,Qt]=getMatchesToLoad(i.history,ot,Tt,Ft,_t,gt,xt,wt,at,bt,Jt,d,Ot,Mt);if(gr(Vt=>!(Tt&&Tt.some(er=>er.route.id===Vt))||qt&&qt.some(er=>er.route.id===Vt)),qt.length===0&&Qt.length===0){let Vt=Er();return At(_t,_extends$2({matches:Tt,loaderData:{},errors:Mt||null},Ot?{actionData:Ot}:{},Vt?{fetchers:new Map(ot.fetchers)}:{})),{shortCircuited:!0}}if(!yt){Qt.forEach(er=>{let lr=ot.fetchers.get(er.key),Xt=getLoadingFetcher(void 0,lr?lr.data:void 0);ot.fetchers.set(er.key,Xt)});let Vt=Ot||ot.actionData;Rt(_extends$2({navigation:Ut},Vt?Object.keys(Vt).length===0?{actionData:null}:{actionData:Vt}:{},Qt.length>0?{fetchers:new Map(ot.fetchers)}:{}))}lt=++ft,Qt.forEach(Vt=>{vt.has(Vt.key)&&ar(Vt.key),Vt.controller&&vt.set(Vt.key,Vt.controller)});let nr=()=>Qt.forEach(Vt=>ar(Vt.key));pt&&pt.signal.addEventListener("abort",nr);let{results:ur,loaderResults:yr,fetcherResults:pr}=await or(ot.matches,Tt,qt,Qt,St);if(St.signal.aborted)return{shortCircuited:!0};pt&&pt.signal.removeEventListener("abort",nr),Qt.forEach(Vt=>vt.delete(Vt.key));let sr=findRedirect(ur);if(sr)return await Yt(ot,sr,{replace:Dt}),{shortCircuited:!0};let{loaderData:fr,errors:vr}=processLoaderData(ot,Tt,qt,yr,Mt,Qt,pr,ct);ct.forEach((Vt,er)=>{Vt.subscribe(lr=>{(lr||Vt.done)&&ct.delete(er)})});let xr=Er(),wr=Sr(lt),mr=xr||wr||Qt.length>0;return _extends$2({loaderData:fr,errors:vr},mr?{fetchers:new Map(ot.fetchers)}:{})}function Wt(St){return ot.fetchers.get(St)||IDLE_FETCHER}function Gt(St,_t,Tt,Pt){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");vt.has(St)&&ar(St);let Nt=g||h,Lt=normalizeTo(ot.location,ot.matches,d,b.v7_prependBasename,Tt,_t,Pt==null?void 0:Pt.relative),Dt=matchRoutes(Nt,Lt,d);if(!Dt){rr(St,_t,getInternalRouterError(404,{pathname:Lt}));return}let{path:Ot,submission:Mt,error:Ut}=normalizeNavigateOptions(b.v7_normalizeFormMethod,!0,Lt,Pt);if(Ut){rr(St,_t,Ut);return}let Ft=getTargetMatch(Dt,Ot);if(ht=(Pt&&Pt.preventScrollReset)===!0,Mt&&isMutationMethod(Mt.formMethod)){Kt(St,_t,Ot,Ft,Dt,Mt);return}at.set(St,{routeId:_t,path:Ot}),Zt(St,_t,Ot,Ft,Dt,Mt)}async function Kt(St,_t,Tt,Pt,Nt,Lt){if(tr(),at.delete(St),!Pt.route.action&&!Pt.route.lazy){let Xt=getInternalRouterError(405,{method:Lt.formMethod,pathname:Tt,routeId:_t});rr(St,_t,Xt);return}let Dt=ot.fetchers.get(St),Ot=getSubmittingFetcher(Lt,Dt);ot.fetchers.set(St,Ot),Rt({fetchers:new Map(ot.fetchers)});let Mt=new AbortController,Ut=createClientSideRequest(i.history,Tt,Mt.signal,Lt);vt.set(St,Mt);let Ft=await callLoaderOrAction("action",Ut,Pt,Nt,c,a,d);if(Ut.signal.aborted){vt.get(St)===Mt&&vt.delete(St);return}if(isRedirectResult(Ft)){vt.delete(St),bt.add(St);let Xt=getLoadingFetcher(Lt);return ot.fetchers.set(St,Xt),Rt({fetchers:new Map(ot.fetchers)}),Yt(ot,Ft,{submission:Lt,isFetchActionRedirect:!0})}if(isErrorResult(Ft)){rr(St,_t,Ft.error);return}if(isDeferredResult(Ft))throw getInternalRouterError(400,{type:"defer-action"});let Jt=ot.navigation.location||ot.location,qt=createClientSideRequest(i.history,Jt,Mt.signal),Qt=g||h,nr=ot.navigation.state!=="idle"?matchRoutes(Qt,ot.navigation.location,d):ot.matches;invariant(nr,"Didn't find any matches after fetcher action");let ur=++ft;dt.set(St,ur);let yr=getLoadingFetcher(Lt,Ft.data);ot.fetchers.set(St,yr);let[pr,sr]=getMatchesToLoad(i.history,ot,nr,Lt,Jt,gt,xt,wt,at,bt,Qt,d,{[Pt.route.id]:Ft.data},void 0);sr.filter(Xt=>Xt.key!==St).forEach(Xt=>{let cr=Xt.key,Tr=ot.fetchers.get(cr),Ir=getLoadingFetcher(void 0,Tr?Tr.data:void 0);ot.fetchers.set(cr,Ir),vt.has(cr)&&ar(cr),Xt.controller&&vt.set(cr,Xt.controller)}),Rt({fetchers:new Map(ot.fetchers)});let fr=()=>sr.forEach(Xt=>ar(Xt.key));Mt.signal.addEventListener("abort",fr);let{results:vr,loaderResults:xr,fetcherResults:wr}=await or(ot.matches,nr,pr,sr,qt);if(Mt.signal.aborted)return;Mt.signal.removeEventListener("abort",fr),dt.delete(St),vt.delete(St),sr.forEach(Xt=>vt.delete(Xt.key));let mr=findRedirect(vr);if(mr)return Yt(ot,mr);let{loaderData:Vt,errors:er}=processLoaderData(ot,ot.matches,pr,xr,void 0,sr,wr,ct);if(ot.fetchers.has(St)){let Xt=getDoneFetcher(Ft.data);ot.fetchers.set(St,Xt)}let lr=Sr(ur);ot.navigation.state==="loading"&&ur>lt?(invariant(ut,"Expected pending action"),pt&&pt.abort(),At(ot.navigation.location,{matches:nr,loaderData:Vt,errors:er,fetchers:new Map(ot.fetchers)})):(Rt(_extends$2({errors:er,loaderData:mergeLoaderData(ot.loaderData,Vt,nr,er)},lr||sr.length>0?{fetchers:new Map(ot.fetchers)}:{})),gt=!1)}async function Zt(St,_t,Tt,Pt,Nt,Lt){let Dt=ot.fetchers.get(St),Ot=getLoadingFetcher(Lt,Dt?Dt.data:void 0);ot.fetchers.set(St,Ot),Rt({fetchers:new Map(ot.fetchers)});let Mt=new AbortController,Ut=createClientSideRequest(i.history,Tt,Mt.signal);vt.set(St,Mt);let Ft=await callLoaderOrAction("loader",Ut,Pt,Nt,c,a,d);if(isDeferredResult(Ft)&&(Ft=await resolveDeferredData(Ft,Ut.signal,!0)||Ft),vt.get(St)===Mt&&vt.delete(St),Ut.signal.aborted)return;if(isRedirectResult(Ft)){bt.add(St),await Yt(ot,Ft);return}if(isErrorResult(Ft)){let qt=findNearestBoundary(ot.matches,_t);ot.fetchers.delete(St),Rt({fetchers:new Map(ot.fetchers),errors:{[qt.route.id]:Ft.error}});return}invariant(!isDeferredResult(Ft),"Unhandled fetcher deferred data");let Jt=getDoneFetcher(Ft.data);ot.fetchers.set(St,Jt),Rt({fetchers:new Map(ot.fetchers)})}async function Yt(St,_t,Tt){let{submission:Pt,replace:Nt,isFetchActionRedirect:Lt}=Tt===void 0?{}:Tt;_t.revalidate&&(gt=!0);let Dt=createLocation(St.location,_t.location,_extends$2({_isRedirect:!0},Lt?{_isFetchActionRedirect:!0}:{}));if(invariant(Dt,"Expected a location on the redirect navigation"),ABSOLUTE_URL_REGEX$1.test(_t.location)&&s){let Ut=i.history.createURL(_t.location),Ft=stripBasename(Ut.pathname,d)==null;if(e.location.origin!==Ut.origin||Ft){Nt?e.location.replace(_t.location):e.location.assign(_t.location);return}}pt=null;let Ot=Nt===!0?Action.Replace:Action.Push,Mt=Pt||getSubmissionFromNavigation(St.navigation);if(redirectPreserveMethodStatusCodes.has(_t.status)&&Mt&&isMutationMethod(Mt.formMethod))await Ht(Ot,Dt,{submission:_extends$2({},Mt,{formAction:_t.location}),preventScrollReset:ht});else if(Lt)await Ht(Ot,Dt,{overrideNavigation:getLoadingNavigation(Dt),fetcherSubmission:Mt,preventScrollReset:ht});else{let Ut=getLoadingNavigation(Dt,Mt);await Ht(Ot,Dt,{overrideNavigation:Ut,preventScrollReset:ht})}}async function or(St,_t,Tt,Pt,Nt){let Lt=await Promise.all([...Tt.map(Mt=>callLoaderOrAction("loader",Nt,Mt,_t,c,a,d)),...Pt.map(Mt=>Mt.matches&&Mt.match&&Mt.controller?callLoaderOrAction("loader",createClientSideRequest(i.history,Mt.path,Mt.controller.signal),Mt.match,Mt.matches,c,a,d):{type:ResultType.error,error:getInternalRouterError(404,{pathname:Mt.path})})]),Dt=Lt.slice(0,Tt.length),Ot=Lt.slice(Tt.length);return await Promise.all([resolveDeferredResults(St,Tt,Dt,Dt.map(()=>Nt.signal),!1,ot.loaderData),resolveDeferredResults(St,Pt.map(Mt=>Mt.match),Ot,Pt.map(Mt=>Mt.controller?Mt.controller.signal:null),!0)]),{results:Lt,loaderResults:Dt,fetcherResults:Ot}}function tr(){gt=!0,xt.push(...gr()),at.forEach((St,_t)=>{vt.has(_t)&&(wt.push(_t),ar(_t))})}function rr(St,_t,Tt){let Pt=findNearestBoundary(ot.matches,_t);ir(St),Rt({errors:{[Pt.route.id]:Tt},fetchers:new Map(ot.fetchers)})}function ir(St){let _t=ot.fetchers.get(St);vt.has(St)&&!(_t&&_t.state==="loading"&&dt.has(St))&&ar(St),at.delete(St),dt.delete(St),bt.delete(St),ot.fetchers.delete(St)}function ar(St){let _t=vt.get(St);invariant(_t,"Expected fetch controller: "+St),_t.abort(),vt.delete(St)}function br(St){for(let _t of St){let Tt=Wt(_t),Pt=getDoneFetcher(Tt.data);ot.fetchers.set(_t,Pt)}}function Er(){let St=[],_t=!1;for(let Tt of bt){let Pt=ot.fetchers.get(Tt);invariant(Pt,"Expected fetcher: "+Tt),Pt.state==="loading"&&(bt.delete(Tt),St.push(Tt),_t=!0)}return br(St),_t}function Sr(St){let _t=[];for(let[Tt,Pt]of dt)if(Pt0}function Pr(St,_t){let Tt=ot.blockers.get(St)||IDLE_BLOCKER;return mt.get(St)!==_t&&mt.set(St,_t),Tt}function _r(St){ot.blockers.delete(St),mt.delete(St)}function dr(St,_t){let Tt=ot.blockers.get(St)||IDLE_BLOCKER;invariant(Tt.state==="unblocked"&&_t.state==="blocked"||Tt.state==="blocked"&&_t.state==="blocked"||Tt.state==="blocked"&&_t.state==="proceeding"||Tt.state==="blocked"&&_t.state==="unblocked"||Tt.state==="proceeding"&&_t.state==="unblocked","Invalid blocker state transition: "+Tt.state+" -> "+_t.state);let Pt=new Map(ot.blockers);Pt.set(St,_t),Rt({blockers:Pt})}function jr(St){let{currentLocation:_t,nextLocation:Tt,historyAction:Pt}=St;if(mt.size===0)return;mt.size>1&&warning$1(!1,"A router only supports one blocker at a time");let Nt=Array.from(mt.entries()),[Lt,Dt]=Nt[Nt.length-1],Ot=ot.blockers.get(Lt);if(!(Ot&&Ot.state==="proceeding")&&Dt({currentLocation:_t,nextLocation:Tt,historyAction:Pt}))return Lt}function gr(St){let _t=[];return ct.forEach((Tt,Pt)=>{(!St||St(Pt))&&(Tt.cancel(),_t.push(Pt),ct.delete(Pt))}),_t}function Mr(St,_t,Tt){if($=St,et=_t,_e=Tt||null,!tt&&ot.navigation===IDLE_NAVIGATION){tt=!0;let Pt=Cr(ot.location,ot.matches);Pt!=null&&Rt({restoreScrollPosition:Pt})}return()=>{$=null,et=null,_e=null}}function Rr(St,_t){return _e&&_e(St,_t.map(Pt=>createUseMatchesMatch(Pt,ot.loaderData)))||St.key}function Ar(St,_t){if($&&et){let Tt=Rr(St,_t);$[Tt]=et()}}function Cr(St,_t){if($){let Tt=Rr(St,_t),Pt=$[Tt];if(typeof Pt=="number")return Pt}return null}function Or(St){c={},g=convertRoutesToDataRoutes(St,a,void 0,c)}return it={get basename(){return d},get state(){return ot},get routes(){return h},initialize:jt,subscribe:Ct,enableScrollRestoration:Mr,navigate:It,fetch:Gt,revalidate:zt,createHref:St=>i.history.createHref(St),encodeLocation:St=>i.history.encodeLocation(St),getFetcher:Wt,deleteFetcher:ir,dispose:kt,getBlocker:Pr,deleteBlocker:_r,_internalFetchControllers:vt,_internalActiveDeferreds:ct,_internalSetRoutes:Or},it}function isSubmissionNavigation(i){return i!=null&&("formData"in i&&i.formData!=null||"body"in i&&i.body!==void 0)}function normalizeTo(i,e,s,o,a,c,h){let g,d;if(c!=null&&h!=="path"){g=[];for(let _ of e)if(g.push(_),_.route.id===c){d=_;break}}else g=e,d=e[e.length-1];let b=resolveTo(a||".",getPathContributingMatches(g).map(_=>_.pathnameBase),stripBasename(i.pathname,s)||i.pathname,h==="path");return a==null&&(b.search=i.search,b.hash=i.hash),(a==null||a===""||a===".")&&d&&d.route.index&&!hasNakedIndexQuery(b.search)&&(b.search=b.search?b.search.replace(/^\?/,"?index&"):"?index"),o&&s!=="/"&&(b.pathname=b.pathname==="/"?s:joinPaths([s,b.pathname])),createPath(b)}function normalizeNavigateOptions(i,e,s,o){if(!o||!isSubmissionNavigation(o))return{path:s};if(o.formMethod&&!isValidMethod(o.formMethod))return{path:s,error:getInternalRouterError(405,{method:o.formMethod})};let a=()=>({path:s,error:getInternalRouterError(400,{type:"invalid-body"})}),c=o.formMethod||"get",h=i?c.toUpperCase():c.toLowerCase(),g=stripHashFromPath(s);if(o.body!==void 0){if(o.formEncType==="text/plain"){if(!isMutationMethod(h))return a();let $=typeof o.body=="string"?o.body:o.body instanceof FormData||o.body instanceof URLSearchParams?Array.from(o.body.entries()).reduce((_e,et)=>{let[tt,st]=et;return""+_e+tt+"="+st+` -`},""):String(o.body);return{path:s,submission:{formMethod:h,formAction:g,formEncType:o.formEncType,formData:void 0,json:void 0,text:$}}}else if(o.formEncType==="application/json"){if(!isMutationMethod(h))return a();try{let $=typeof o.body=="string"?JSON.parse(o.body):o.body;return{path:s,submission:{formMethod:h,formAction:g,formEncType:o.formEncType,formData:void 0,json:$,text:void 0}}}catch{return a()}}}invariant(typeof FormData=="function","FormData is not available in this environment");let d,b;if(o.formData)d=convertFormDataToSearchParams(o.formData),b=o.formData;else if(o.body instanceof FormData)d=convertFormDataToSearchParams(o.body),b=o.body;else if(o.body instanceof URLSearchParams)d=o.body,b=convertSearchParamsToFormData(d);else if(o.body==null)d=new URLSearchParams,b=new FormData;else try{d=new URLSearchParams(o.body),b=convertSearchParamsToFormData(d)}catch{return a()}let _={formMethod:h,formAction:g,formEncType:o&&o.formEncType||"application/x-www-form-urlencoded",formData:b,json:void 0,text:void 0};if(isMutationMethod(_.formMethod))return{path:s,submission:_};let j=parsePath(s);return e&&j.search&&hasNakedIndexQuery(j.search)&&d.append("index",""),j.search="?"+d,{path:createPath(j),submission:_}}function getLoaderMatchesUntilBoundary(i,e){let s=i;if(e){let o=i.findIndex(a=>a.route.id===e);o>=0&&(s=i.slice(0,o))}return s}function getMatchesToLoad(i,e,s,o,a,c,h,g,d,b,_,j,$,_e){let et=_e?Object.values(_e)[0]:$?Object.values($)[0]:void 0,tt=i.createURL(e.location),st=i.createURL(a),rt=_e?Object.keys(_e)[0]:void 0,it=getLoaderMatchesUntilBoundary(s,rt).filter((ut,ht)=>{if(ut.route.lazy)return!0;if(ut.route.loader==null)return!1;if(isNewLoader(e.loaderData,e.matches[ht],ut)||h.some(gt=>gt===ut.route.id))return!0;let pt=e.matches[ht],yt=ut;return shouldRevalidateLoader(ut,_extends$2({currentUrl:tt,currentParams:pt.params,nextUrl:st,nextParams:yt.params},o,{actionResult:et,defaultShouldRevalidate:c||tt.pathname+tt.search===st.pathname+st.search||tt.search!==st.search||isNewRouteInstance(pt,yt)}))}),ot=[];return d.forEach((ut,ht)=>{if(!s.some(vt=>vt.route.id===ut.routeId))return;let pt=matchRoutes(_,ut.path,j);if(!pt){ot.push({key:ht,routeId:ut.routeId,path:ut.path,matches:null,match:null,controller:null});return}let yt=e.fetchers.get(ht),gt=yt&&yt.state!=="idle"&&yt.data===void 0&&!b.has(ht),xt=getTargetMatch(pt,ut.path);(g.includes(ht)||gt||shouldRevalidateLoader(xt,_extends$2({currentUrl:tt,currentParams:e.matches[e.matches.length-1].params,nextUrl:st,nextParams:s[s.length-1].params},o,{actionResult:et,defaultShouldRevalidate:c})))&&ot.push({key:ht,routeId:ut.routeId,path:ut.path,matches:pt,match:xt,controller:new AbortController})}),[it,ot]}function isNewLoader(i,e,s){let o=!e||s.route.id!==e.route.id,a=i[s.route.id]===void 0;return o||a}function isNewRouteInstance(i,e){let s=i.route.path;return i.pathname!==e.pathname||s!=null&&s.endsWith("*")&&i.params["*"]!==e.params["*"]}function shouldRevalidateLoader(i,e){if(i.route.shouldRevalidate){let s=i.route.shouldRevalidate(e);if(typeof s=="boolean")return s}return e.defaultShouldRevalidate}async function loadLazyRouteModule(i,e,s){if(!i.lazy)return;let o=await i.lazy();if(!i.lazy)return;let a=s[i.id];invariant(a,"No route found in manifest");let c={};for(let h in o){let d=a[h]!==void 0&&h!=="hasErrorBoundary";warning$1(!d,'Route "'+a.id+'" has a static property "'+h+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+h+'" will be ignored.')),!d&&!immutableRouteKeys.has(h)&&(c[h]=o[h])}Object.assign(a,c),Object.assign(a,_extends$2({},e(a),{lazy:void 0}))}async function callLoaderOrAction(i,e,s,o,a,c,h,g){g===void 0&&(g={});let d,b,_,j=et=>{let tt,st=new Promise((rt,nt)=>tt=nt);return _=()=>tt(),e.signal.addEventListener("abort",_),Promise.race([et({request:e,params:s.params,context:g.requestContext}),st])};try{let et=s.route[i];if(s.route.lazy)if(et)b=(await Promise.all([j(et),loadLazyRouteModule(s.route,c,a)]))[0];else if(await loadLazyRouteModule(s.route,c,a),et=s.route[i],et)b=await j(et);else if(i==="action"){let tt=new URL(e.url),st=tt.pathname+tt.search;throw getInternalRouterError(405,{method:e.method,pathname:st,routeId:s.route.id})}else return{type:ResultType.data,data:void 0};else if(et)b=await j(et);else{let tt=new URL(e.url),st=tt.pathname+tt.search;throw getInternalRouterError(404,{pathname:st})}invariant(b!==void 0,"You defined "+(i==="action"?"an action":"a loader")+" for route "+('"'+s.route.id+"\" but didn't return anything from your `"+i+"` ")+"function. Please return a value or `null`.")}catch(et){d=ResultType.error,b=et}finally{_&&e.signal.removeEventListener("abort",_)}if(isResponse(b)){let et=b.status;if(redirectStatusCodes.has(et)){let rt=b.headers.get("Location");if(invariant(rt,"Redirects returned/thrown from loaders/actions must have a Location header"),!ABSOLUTE_URL_REGEX$1.test(rt))rt=normalizeTo(new URL(e.url),o.slice(0,o.indexOf(s)+1),h,!0,rt);else if(!g.isStaticRequest){let nt=new URL(e.url),it=rt.startsWith("//")?new URL(nt.protocol+rt):new URL(rt),ot=stripBasename(it.pathname,h)!=null;it.origin===nt.origin&&ot&&(rt=it.pathname+it.search+it.hash)}if(g.isStaticRequest)throw b.headers.set("Location",rt),b;return{type:ResultType.redirect,status:et,location:rt,revalidate:b.headers.get("X-Remix-Revalidate")!==null}}if(g.isRouteRequest)throw{type:d||ResultType.data,response:b};let tt,st=b.headers.get("Content-Type");return st&&/\bapplication\/json\b/.test(st)?tt=await b.json():tt=await b.text(),d===ResultType.error?{type:d,error:new ErrorResponse(et,b.statusText,tt),headers:b.headers}:{type:ResultType.data,data:tt,statusCode:b.status,headers:b.headers}}if(d===ResultType.error)return{type:d,error:b};if(isDeferredData(b)){var $,_e;return{type:ResultType.deferred,deferredData:b,statusCode:($=b.init)==null?void 0:$.status,headers:((_e=b.init)==null?void 0:_e.headers)&&new Headers(b.init.headers)}}return{type:ResultType.data,data:b}}function createClientSideRequest(i,e,s,o){let a=i.createURL(stripHashFromPath(e)).toString(),c={signal:s};if(o&&isMutationMethod(o.formMethod)){let{formMethod:h,formEncType:g}=o;c.method=h.toUpperCase(),g==="application/json"?(c.headers=new Headers({"Content-Type":g}),c.body=JSON.stringify(o.json)):g==="text/plain"?c.body=o.text:g==="application/x-www-form-urlencoded"&&o.formData?c.body=convertFormDataToSearchParams(o.formData):c.body=o.formData}return new Request(a,c)}function convertFormDataToSearchParams(i){let e=new URLSearchParams;for(let[s,o]of i.entries())e.append(s,typeof o=="string"?o:o.name);return e}function convertSearchParamsToFormData(i){let e=new FormData;for(let[s,o]of i.entries())e.append(s,o);return e}function processRouteLoaderData(i,e,s,o,a){let c={},h=null,g,d=!1,b={};return s.forEach((_,j)=>{let $=e[j].route.id;if(invariant(!isRedirectResult(_),"Cannot handle redirect results in processLoaderData"),isErrorResult(_)){let _e=findNearestBoundary(i,$),et=_.error;o&&(et=Object.values(o)[0],o=void 0),h=h||{},h[_e.route.id]==null&&(h[_e.route.id]=et),c[$]=void 0,d||(d=!0,g=isRouteErrorResponse(_.error)?_.error.status:500),_.headers&&(b[$]=_.headers)}else isDeferredResult(_)?(a.set($,_.deferredData),c[$]=_.deferredData.data):c[$]=_.data,_.statusCode!=null&&_.statusCode!==200&&!d&&(g=_.statusCode),_.headers&&(b[$]=_.headers)}),o&&(h=o,c[Object.keys(o)[0]]=void 0),{loaderData:c,errors:h,statusCode:g||200,loaderHeaders:b}}function processLoaderData(i,e,s,o,a,c,h,g){let{loaderData:d,errors:b}=processRouteLoaderData(e,s,o,a,g);for(let _=0;_o.route.id===e)+1):[...i]).reverse().find(o=>o.route.hasErrorBoundary===!0)||i[0]}function getShortCircuitMatches(i){let e=i.find(s=>s.index||!s.path||s.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function getInternalRouterError(i,e){let{pathname:s,routeId:o,method:a,type:c}=e===void 0?{}:e,h="Unknown Server Error",g="Unknown @remix-run/router error";return i===400?(h="Bad Request",a&&s&&o?g="You made a "+a+' request to "'+s+'" but '+('did not provide a `loader` for route "'+o+'", ')+"so there is no way to handle the request.":c==="defer-action"?g="defer() is not supported in actions":c==="invalid-body"&&(g="Unable to encode submission body")):i===403?(h="Forbidden",g='Route "'+o+'" does not match URL "'+s+'"'):i===404?(h="Not Found",g='No route matches URL "'+s+'"'):i===405&&(h="Method Not Allowed",a&&s&&o?g="You made a "+a.toUpperCase()+' request to "'+s+'" but '+('did not provide an `action` for route "'+o+'", ')+"so there is no way to handle the request.":a&&(g='Invalid request method "'+a.toUpperCase()+'"')),new ErrorResponse(i||500,h,new Error(g),!0)}function findRedirect(i){for(let e=i.length-1;e>=0;e--){let s=i[e];if(isRedirectResult(s))return s}}function stripHashFromPath(i){let e=typeof i=="string"?parsePath(i):i;return createPath(_extends$2({},e,{hash:""}))}function isHashChangeOnly(i,e){return i.pathname!==e.pathname||i.search!==e.search?!1:i.hash===""?e.hash!=="":i.hash===e.hash?!0:e.hash!==""}function isDeferredResult(i){return i.type===ResultType.deferred}function isErrorResult(i){return i.type===ResultType.error}function isRedirectResult(i){return(i&&i.type)===ResultType.redirect}function isDeferredData(i){let e=i;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function isResponse(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.headers=="object"&&typeof i.body<"u"}function isValidMethod(i){return validRequestMethods.has(i.toLowerCase())}function isMutationMethod(i){return validMutationMethods.has(i.toLowerCase())}async function resolveDeferredResults(i,e,s,o,a,c){for(let h=0;hj.route.id===d.route.id),_=b!=null&&!isNewRouteInstance(b,d)&&(c&&c[d.route.id])!==void 0;if(isDeferredResult(g)&&(a||_)){let j=o[h];invariant(j,"Expected an AbortSignal for revalidating fetcher deferred result"),await resolveDeferredData(g,j,a).then($=>{$&&(s[h]=$||s[h])})}}}async function resolveDeferredData(i,e,s){if(s===void 0&&(s=!1),!await i.deferredData.resolveData(e)){if(s)try{return{type:ResultType.data,data:i.deferredData.unwrappedData}}catch(a){return{type:ResultType.error,error:a}}return{type:ResultType.data,data:i.deferredData.data}}}function hasNakedIndexQuery(i){return new URLSearchParams(i).getAll("index").some(e=>e==="")}function createUseMatchesMatch(i,e){let{route:s,pathname:o,params:a}=i;return{id:s.id,pathname:o,params:a,data:e[s.id],handle:s.handle}}function getTargetMatch(i,e){let s=typeof e=="string"?parsePath(e).search:e.search;if(i[i.length-1].route.index&&hasNakedIndexQuery(s||""))return i[i.length-1];let o=getPathContributingMatches(i);return o[o.length-1]}function getSubmissionFromNavigation(i){let{formMethod:e,formAction:s,formEncType:o,text:a,formData:c,json:h}=i;if(!(!e||!s||!o)){if(a!=null)return{formMethod:e,formAction:s,formEncType:o,formData:void 0,json:void 0,text:a};if(c!=null)return{formMethod:e,formAction:s,formEncType:o,formData:c,json:void 0,text:void 0};if(h!==void 0)return{formMethod:e,formAction:s,formEncType:o,formData:void 0,json:h,text:void 0}}}function getLoadingNavigation(i,e){return e?{state:"loading",location:i,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:i,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function getSubmittingNavigation(i,e){return{state:"submitting",location:i,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function getLoadingFetcher(i,e){return i?{state:"loading",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:e," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}function getSubmittingFetcher(i,e){return{state:"submitting",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:e?e.data:void 0," _hasFetcherDoneAnything ":!0}}function getDoneFetcher(i){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i," _hasFetcherDoneAnything ":!0}}/** + */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(i){for(var e=1;e"u")throw new Error(e)}function warning$1(i,e){if(!i){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(i,e){return{usr:i.state,key:i.key,idx:e}}function createLocation(i,e,s,o){return s===void 0&&(s=null),_extends$2({pathname:typeof i=="string"?i:i.pathname,search:"",hash:""},typeof e=="string"?parsePath(e):e,{state:s,key:e&&e.key||o||createKey()})}function createPath(i){let{pathname:e="/",search:s="",hash:o=""}=i;return s&&s!=="?"&&(e+=s.charAt(0)==="?"?s:"?"+s),o&&o!=="#"&&(e+=o.charAt(0)==="#"?o:"#"+o),e}function parsePath(i){let e={};if(i){let s=i.indexOf("#");s>=0&&(e.hash=i.substr(s),i=i.substr(0,s));let o=i.indexOf("?");o>=0&&(e.search=i.substr(o),i=i.substr(0,o)),i&&(e.pathname=i)}return e}function getUrlBasedHistory(i,e,s,o){o===void 0&&(o={});let{window:a=document.defaultView,v5Compat:c=!1}=o,h=a.history,g=Action.Pop,d=null,b=_();b==null&&(b=0,h.replaceState(_extends$2({},h.state,{idx:b}),""));function _(){return(h.state||{idx:null}).idx}function j(){g=Action.Pop;let st=_(),nt=st==null?null:st-b;b=st,d&&d({action:g,location:tt.location,delta:nt})}function $(st,nt){g=Action.Push;let rt=createLocation(tt.location,st,nt);s&&s(rt,st),b=_()+1;let it=getHistoryState(rt,b),ot=tt.createHref(rt);try{h.pushState(it,"",ot)}catch(ut){if(ut instanceof DOMException&&ut.name==="DataCloneError")throw ut;a.location.assign(ot)}c&&d&&d({action:g,location:tt.location,delta:1})}function _e(st,nt){g=Action.Replace;let rt=createLocation(tt.location,st,nt);s&&s(rt,st),b=_();let it=getHistoryState(rt,b),ot=tt.createHref(rt);h.replaceState(it,"",ot),c&&d&&d({action:g,location:tt.location,delta:0})}function et(st){let nt=a.location.origin!=="null"?a.location.origin:a.location.href,rt=typeof st=="string"?st:createPath(st);return invariant(nt,"No window.location.(origin|href) available to create URL for href: "+rt),new URL(rt,nt)}let tt={get action(){return g},get location(){return i(a,h)},listen(st){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(PopStateEventType,j),d=st,()=>{a.removeEventListener(PopStateEventType,j),d=null}},createHref(st){return e(a,st)},createURL:et,encodeLocation(st){let nt=et(st);return{pathname:nt.pathname,search:nt.search,hash:nt.hash}},push:$,replace:_e,go(st){return h.go(st)}};return tt}var ResultType;(function(i){i.data="data",i.deferred="deferred",i.redirect="redirect",i.error="error"})(ResultType||(ResultType={}));const immutableRouteKeys=new Set(["lazy","caseSensitive","path","id","index","children"]);function isIndexRoute(i){return i.index===!0}function convertRoutesToDataRoutes(i,e,s,o){return s===void 0&&(s=[]),o===void 0&&(o={}),i.map((a,c)=>{let h=[...s,c],g=typeof a.id=="string"?a.id:h.join("-");if(invariant(a.index!==!0||!a.children,"Cannot specify children on an index route"),invariant(!o[g],'Found a route id collision on id "'+g+`". Route id's must be globally unique within Data Router usages`),isIndexRoute(a)){let d=_extends$2({},a,e(a),{id:g});return o[g]=d,d}else{let d=_extends$2({},a,e(a),{id:g,children:void 0});return o[g]=d,a.children&&(d.children=convertRoutesToDataRoutes(a.children,e,h,o)),d}})}function matchRoutes(i,e,s){s===void 0&&(s="/");let o=typeof e=="string"?parsePath(e):e,a=stripBasename(o.pathname||"/",s);if(a==null)return null;let c=flattenRoutes(i);rankRouteBranches(c);let h=null;for(let g=0;h==null&&g{let d={relativePath:g===void 0?c.path||"":g,caseSensitive:c.caseSensitive===!0,childrenIndex:h,route:c};d.relativePath.startsWith("/")&&(invariant(d.relativePath.startsWith(o),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(o.length));let b=joinPaths([o,d.relativePath]),_=s.concat(d);c.children&&c.children.length>0&&(invariant(c.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+b+'".')),flattenRoutes(c.children,e,_,b)),!(c.path==null&&!c.index)&&e.push({path:b,score:computeScore(b,c.index),routesMeta:_})};return i.forEach((c,h)=>{var g;if(c.path===""||!((g=c.path)!=null&&g.includes("?")))a(c,h);else for(let d of explodeOptionalSegments(c.path))a(c,h,d)}),e}function explodeOptionalSegments(i){let e=i.split("/");if(e.length===0)return[];let[s,...o]=e,a=s.endsWith("?"),c=s.replace(/\?$/,"");if(o.length===0)return a?[c,""]:[c];let h=explodeOptionalSegments(o.join("/")),g=[];return g.push(...h.map(d=>d===""?c:[c,d].join("/"))),a&&g.push(...h),g.map(d=>i.startsWith("/")&&d===""?"/":d)}function rankRouteBranches(i){i.sort((e,s)=>e.score!==s.score?s.score-e.score:compareIndexes(e.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}const paramRe=/^:\w+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=i=>i==="*";function computeScore(i,e){let s=i.split("/"),o=s.length;return s.some(isSplat)&&(o+=splatPenalty),e&&(o+=indexRouteValue),s.filter(a=>!isSplat(a)).reduce((a,c)=>a+(paramRe.test(c)?dynamicSegmentValue:c===""?emptySegmentValue:staticSegmentValue),o)}function compareIndexes(i,e){return i.length===e.length&&i.slice(0,-1).every((o,a)=>o===e[a])?i[i.length-1]-e[e.length-1]:0}function matchRouteBranch(i,e){let{routesMeta:s}=i,o={},a="/",c=[];for(let h=0;h{if(_==="*"){let $=g[j]||"";h=c.slice(0,c.length-$.length).replace(/(.)\/+$/,"$1")}return b[_]=safelyDecodeURIComponent(g[j]||"",_),b},{}),pathname:c,pathnameBase:h,pattern:i}}function compilePath(i,e,s){e===void 0&&(e=!1),s===void 0&&(s=!0),warning$1(i==="*"||!i.endsWith("*")||i.endsWith("/*"),'Route path "'+i+'" will be treated as if it were '+('"'+i.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+i.replace(/\*$/,"/*")+'".'));let o=[],a="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(h,g)=>(o.push(g),"/([^\\/]+)"));return i.endsWith("*")?(o.push("*"),a+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?a+="\\/*$":i!==""&&i!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),o]}function safelyDecodeURI(i){try{return decodeURI(i)}catch(e){return warning$1(!1,'The URL path "'+i+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),i}}function safelyDecodeURIComponent(i,e){try{return decodeURIComponent(i)}catch(s){return warning$1(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+i+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+s+").")),i}}function stripBasename(i,e){if(e==="/")return i;if(!i.toLowerCase().startsWith(e.toLowerCase()))return null;let s=e.endsWith("/")?e.length-1:e.length,o=i.charAt(s);return o&&o!=="/"?null:i.slice(s)||"/"}function resolvePath(i,e){e===void 0&&(e="/");let{pathname:s,search:o="",hash:a=""}=typeof i=="string"?parsePath(i):i;return{pathname:s?s.startsWith("/")?s:resolvePathname(s,e):e,search:normalizeSearch(o),hash:normalizeHash(a)}}function resolvePathname(i,e){let s=e.replace(/\/+$/,"").split("/");return i.split("/").forEach(a=>{a===".."?s.length>1&&s.pop():a!=="."&&s.push(a)}),s.length>1?s.join("/"):"/"}function getInvalidPathError(i,e,s,o){return"Cannot include a '"+i+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+s+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(i){return i.filter((e,s)=>s===0||e.route.path&&e.route.path.length>0)}function resolveTo(i,e,s,o){o===void 0&&(o=!1);let a;typeof i=="string"?a=parsePath(i):(a=_extends$2({},i),invariant(!a.pathname||!a.pathname.includes("?"),getInvalidPathError("?","pathname","search",a)),invariant(!a.pathname||!a.pathname.includes("#"),getInvalidPathError("#","pathname","hash",a)),invariant(!a.search||!a.search.includes("#"),getInvalidPathError("#","search","hash",a)));let c=i===""||a.pathname==="",h=c?"/":a.pathname,g;if(o||h==null)g=s;else{let j=e.length-1;if(h.startsWith("..")){let $=h.split("/");for(;$[0]==="..";)$.shift(),j-=1;a.pathname=$.join("/")}g=j>=0?e[j]:"/"}let d=resolvePath(a,g),b=h&&h!=="/"&&h.endsWith("/"),_=(c||h===".")&&s.endsWith("/");return!d.pathname.endsWith("/")&&(b||_)&&(d.pathname+="/"),d}const joinPaths=i=>i.join("/").replace(/\/\/+/g,"/"),normalizePathname=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,normalizeHash=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;class ErrorResponse{constructor(e,s,o,a){a===void 0&&(a=!1),this.status=e,this.statusText=s||"",this.internal=a,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}}function isRouteErrorResponse(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}const validMutationMethodsArr=["post","put","patch","delete"],validMutationMethods=new Set(validMutationMethodsArr),validRequestMethodsArr=["get",...validMutationMethodsArr],validRequestMethods=new Set(validRequestMethodsArr),redirectStatusCodes=new Set([301,302,303,307,308]),redirectPreserveMethodStatusCodes=new Set([307,308]),IDLE_NAVIGATION={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_FETCHER={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IDLE_BLOCKER={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ABSOLUTE_URL_REGEX$1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,defaultMapRouteProperties=i=>({hasErrorBoundary:!!i.hasErrorBoundary});function createRouter(i){const e=i.window?i.window:typeof window<"u"?window:void 0,s=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",o=!s;invariant(i.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(i.mapRouteProperties)a=i.mapRouteProperties;else if(i.detectErrorBoundary){let St=i.detectErrorBoundary;a=_t=>({hasErrorBoundary:St(_t)})}else a=defaultMapRouteProperties;let c={},h=convertRoutesToDataRoutes(i.routes,a,void 0,c),g,d=i.basename||"/",b=_extends$2({v7_normalizeFormMethod:!1,v7_prependBasename:!1},i.future),_=null,j=new Set,$=null,_e=null,et=null,tt=i.hydrationData!=null,st=matchRoutes(h,i.history.location,d),nt=null;if(st==null){let St=getInternalRouterError(404,{pathname:i.history.location.pathname}),{matches:_t,route:Tt}=getShortCircuitMatches(h);st=_t,nt={[Tt.id]:St}}let rt=!st.some(St=>St.route.lazy)&&(!st.some(St=>St.route.loader)||i.hydrationData!=null),it,ot={historyAction:i.history.action,location:i.history.location,matches:st,initialized:rt,navigation:IDLE_NAVIGATION,restoreScrollPosition:i.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:i.hydrationData&&i.hydrationData.loaderData||{},actionData:i.hydrationData&&i.hydrationData.actionData||null,errors:i.hydrationData&&i.hydrationData.errors||nt,fetchers:new Map,blockers:new Map},ut=Action.Pop,ht=!1,pt,yt=!1,gt=!1,xt=[],wt=[],vt=new Map,ft=0,lt=-1,dt=new Map,bt=new Set,at=new Map,ct=new Map,mt=new Map,Et=!1;function jt(){return _=i.history.listen(St=>{let{action:_t,location:Tt,delta:Pt}=St;if(Et){Et=!1;return}warning$1(mt.size===0||Pt!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Nt=jn({currentLocation:ot.location,nextLocation:Tt,historyAction:_t});if(Nt&&Pt!=null){Et=!0,i.history.go(Pt*-1),pn(Nt,{state:"blocked",location:Tt,proceed(){pn(Nt,{state:"proceeding",proceed:void 0,reset:void 0,location:Tt}),i.history.go(Pt)},reset(){let Lt=new Map(ot.blockers);Lt.set(Nt,IDLE_BLOCKER),Rt({blockers:Lt})}});return}return Ht(_t,Tt)}),ot.initialized||Ht(Action.Pop,ot.location),it}function kt(){_&&_(),j.clear(),pt&&pt.abort(),ot.fetchers.forEach((St,_t)=>sn(_t)),ot.blockers.forEach((St,_t)=>_n(_t))}function Ct(St){return j.add(St),()=>j.delete(St)}function Rt(St){ot=_extends$2({},ot,St),j.forEach(_t=>_t(ot))}function At(St,_t){var Tt,Pt;let Nt=ot.actionData!=null&&ot.navigation.formMethod!=null&&isMutationMethod(ot.navigation.formMethod)&&ot.navigation.state==="loading"&&((Tt=St.state)==null?void 0:Tt._isRedirect)!==!0,Lt;_t.actionData?Object.keys(_t.actionData).length>0?Lt=_t.actionData:Lt=null:Nt?Lt=ot.actionData:Lt=null;let Dt=_t.loaderData?mergeLoaderData(ot.loaderData,_t.loaderData,_t.matches||[],_t.errors):ot.loaderData,Ot=ot.blockers;Ot.size>0&&(Ot=new Map(Ot),Ot.forEach((Ut,Ft)=>Ot.set(Ft,IDLE_BLOCKER)));let Mt=ht===!0||ot.navigation.formMethod!=null&&isMutationMethod(ot.navigation.formMethod)&&((Pt=St.state)==null?void 0:Pt._isRedirect)!==!0;g&&(h=g,g=void 0),yt||ut===Action.Pop||(ut===Action.Push?i.history.push(St,St.state):ut===Action.Replace&&i.history.replace(St,St.state)),Rt(_extends$2({},_t,{actionData:Lt,loaderData:Dt,historyAction:ut,location:St,initialized:!0,navigation:IDLE_NAVIGATION,revalidation:"idle",restoreScrollPosition:Cn(St,_t.matches||ot.matches),preventScrollReset:Mt,blockers:Ot})),ut=Action.Pop,ht=!1,yt=!1,gt=!1,xt=[],wt=[]}async function It(St,_t){if(typeof St=="number"){i.history.go(St);return}let Tt=normalizeTo(ot.location,ot.matches,d,b.v7_prependBasename,St,_t==null?void 0:_t.fromRouteId,_t==null?void 0:_t.relative),{path:Pt,submission:Nt,error:Lt}=normalizeNavigateOptions(b.v7_normalizeFormMethod,!1,Tt,_t),Dt=ot.location,Ot=createLocation(ot.location,Pt,_t&&_t.state);Ot=_extends$2({},Ot,i.history.encodeLocation(Ot));let Mt=_t&&_t.replace!=null?_t.replace:void 0,Ut=Action.Push;Mt===!0?Ut=Action.Replace:Mt===!1||Nt!=null&&isMutationMethod(Nt.formMethod)&&Nt.formAction===ot.location.pathname+ot.location.search&&(Ut=Action.Replace);let Ft=_t&&"preventScrollReset"in _t?_t.preventScrollReset===!0:void 0,Jt=jn({currentLocation:Dt,nextLocation:Ot,historyAction:Ut});if(Jt){pn(Jt,{state:"blocked",location:Ot,proceed(){pn(Jt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ot}),It(St,_t)},reset(){let qt=new Map(ot.blockers);qt.set(Jt,IDLE_BLOCKER),Rt({blockers:qt})}});return}return await Ht(Ut,Ot,{submission:Nt,pendingError:Lt,preventScrollReset:Ft,replace:_t&&_t.replace})}function zt(){if(tn(),Rt({revalidation:"loading"}),ot.navigation.state!=="submitting"){if(ot.navigation.state==="idle"){Ht(ot.historyAction,ot.location,{startUninterruptedRevalidation:!0});return}Ht(ut||ot.historyAction,ot.navigation.location,{overrideNavigation:ot.navigation})}}async function Ht(St,_t,Tt){pt&&pt.abort(),pt=null,ut=St,yt=(Tt&&Tt.startUninterruptedRevalidation)===!0,An(ot.location,ot.matches),ht=(Tt&&Tt.preventScrollReset)===!0;let Pt=g||h,Nt=Tt&&Tt.overrideNavigation,Lt=matchRoutes(Pt,_t,d);if(!Lt){let qt=getInternalRouterError(404,{pathname:_t.pathname}),{matches:Qt,route:rn}=getShortCircuitMatches(Pt);gn(),At(_t,{matches:Qt,loaderData:{},errors:{[rn.id]:qt}});return}if(ot.initialized&&!gt&&isHashChangeOnly(ot.location,_t)&&!(Tt&&Tt.submission&&isMutationMethod(Tt.submission.formMethod))){At(_t,{matches:Lt});return}pt=new AbortController;let Dt=createClientSideRequest(i.history,_t,pt.signal,Tt&&Tt.submission),Ot,Mt;if(Tt&&Tt.pendingError)Mt={[findNearestBoundary(Lt).route.id]:Tt.pendingError};else if(Tt&&Tt.submission&&isMutationMethod(Tt.submission.formMethod)){let qt=await $t(Dt,_t,Tt.submission,Lt,{replace:Tt.replace});if(qt.shortCircuited)return;Ot=qt.pendingActionData,Mt=qt.pendingActionError,Nt=getLoadingNavigation(_t,Tt.submission),Dt=new Request(Dt.url,{signal:Dt.signal})}let{shortCircuited:Ut,loaderData:Ft,errors:Jt}=await Bt(Dt,_t,Lt,Nt,Tt&&Tt.submission,Tt&&Tt.fetcherSubmission,Tt&&Tt.replace,Ot,Mt);Ut||(pt=null,At(_t,_extends$2({matches:Lt},Ot?{actionData:Ot}:{},{loaderData:Ft,errors:Jt})))}async function $t(St,_t,Tt,Pt,Nt){Nt===void 0&&(Nt={}),tn();let Lt=getSubmittingNavigation(_t,Tt);Rt({navigation:Lt});let Dt,Ot=getTargetMatch(Pt,_t);if(!Ot.route.action&&!Ot.route.lazy)Dt={type:ResultType.error,error:getInternalRouterError(405,{method:St.method,pathname:_t.pathname,routeId:Ot.route.id})};else if(Dt=await callLoaderOrAction("action",St,Ot,Pt,c,a,d),St.signal.aborted)return{shortCircuited:!0};if(isRedirectResult(Dt)){let Mt;return Nt&&Nt.replace!=null?Mt=Nt.replace:Mt=Dt.location===ot.location.pathname+ot.location.search,await Yt(ot,Dt,{submission:Tt,replace:Mt}),{shortCircuited:!0}}if(isErrorResult(Dt)){let Mt=findNearestBoundary(Pt,Ot.route.id);return(Nt&&Nt.replace)!==!0&&(ut=Action.Push),{pendingActionData:{},pendingActionError:{[Mt.route.id]:Dt.error}}}if(isDeferredResult(Dt))throw getInternalRouterError(400,{type:"defer-action"});return{pendingActionData:{[Ot.route.id]:Dt.data}}}async function Bt(St,_t,Tt,Pt,Nt,Lt,Dt,Ot,Mt){let Ut=Pt||getLoadingNavigation(_t,Nt),Ft=Nt||Lt||getSubmissionFromNavigation(Ut),Jt=g||h,[qt,Qt]=getMatchesToLoad(i.history,ot,Tt,Ft,_t,gt,xt,wt,at,bt,Jt,d,Ot,Mt);if(gn(Vt=>!(Tt&&Tt.some(en=>en.route.id===Vt))||qt&&qt.some(en=>en.route.id===Vt)),qt.length===0&&Qt.length===0){let Vt=En();return At(_t,_extends$2({matches:Tt,loaderData:{},errors:Mt||null},Ot?{actionData:Ot}:{},Vt?{fetchers:new Map(ot.fetchers)}:{})),{shortCircuited:!0}}if(!yt){Qt.forEach(en=>{let un=ot.fetchers.get(en.key),Xt=getLoadingFetcher(void 0,un?un.data:void 0);ot.fetchers.set(en.key,Xt)});let Vt=Ot||ot.actionData;Rt(_extends$2({navigation:Ut},Vt?Object.keys(Vt).length===0?{actionData:null}:{actionData:Vt}:{},Qt.length>0?{fetchers:new Map(ot.fetchers)}:{}))}lt=++ft,Qt.forEach(Vt=>{vt.has(Vt.key)&&ln(Vt.key),Vt.controller&&vt.set(Vt.key,Vt.controller)});let rn=()=>Qt.forEach(Vt=>ln(Vt.key));pt&&pt.signal.addEventListener("abort",rn);let{results:cn,loaderResults:yn,fetcherResults:fn}=await an(ot.matches,Tt,qt,Qt,St);if(St.signal.aborted)return{shortCircuited:!0};pt&&pt.signal.removeEventListener("abort",rn),Qt.forEach(Vt=>vt.delete(Vt.key));let on=findRedirect(cn);if(on)return await Yt(ot,on,{replace:Dt}),{shortCircuited:!0};let{loaderData:hn,errors:vn}=processLoaderData(ot,Tt,qt,yn,Mt,Qt,fn,ct);ct.forEach((Vt,en)=>{Vt.subscribe(un=>{(un||Vt.done)&&ct.delete(en)})});let xn=En(),wn=Sn(lt),mn=xn||wn||Qt.length>0;return _extends$2({loaderData:hn,errors:vn},mn?{fetchers:new Map(ot.fetchers)}:{})}function Wt(St){return ot.fetchers.get(St)||IDLE_FETCHER}function Gt(St,_t,Tt,Pt){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");vt.has(St)&&ln(St);let Nt=g||h,Lt=normalizeTo(ot.location,ot.matches,d,b.v7_prependBasename,Tt,_t,Pt==null?void 0:Pt.relative),Dt=matchRoutes(Nt,Lt,d);if(!Dt){nn(St,_t,getInternalRouterError(404,{pathname:Lt}));return}let{path:Ot,submission:Mt,error:Ut}=normalizeNavigateOptions(b.v7_normalizeFormMethod,!0,Lt,Pt);if(Ut){nn(St,_t,Ut);return}let Ft=getTargetMatch(Dt,Ot);if(ht=(Pt&&Pt.preventScrollReset)===!0,Mt&&isMutationMethod(Mt.formMethod)){Kt(St,_t,Ot,Ft,Dt,Mt);return}at.set(St,{routeId:_t,path:Ot}),Zt(St,_t,Ot,Ft,Dt,Mt)}async function Kt(St,_t,Tt,Pt,Nt,Lt){if(tn(),at.delete(St),!Pt.route.action&&!Pt.route.lazy){let Xt=getInternalRouterError(405,{method:Lt.formMethod,pathname:Tt,routeId:_t});nn(St,_t,Xt);return}let Dt=ot.fetchers.get(St),Ot=getSubmittingFetcher(Lt,Dt);ot.fetchers.set(St,Ot),Rt({fetchers:new Map(ot.fetchers)});let Mt=new AbortController,Ut=createClientSideRequest(i.history,Tt,Mt.signal,Lt);vt.set(St,Mt);let Ft=await callLoaderOrAction("action",Ut,Pt,Nt,c,a,d);if(Ut.signal.aborted){vt.get(St)===Mt&&vt.delete(St);return}if(isRedirectResult(Ft)){vt.delete(St),bt.add(St);let Xt=getLoadingFetcher(Lt);return ot.fetchers.set(St,Xt),Rt({fetchers:new Map(ot.fetchers)}),Yt(ot,Ft,{submission:Lt,isFetchActionRedirect:!0})}if(isErrorResult(Ft)){nn(St,_t,Ft.error);return}if(isDeferredResult(Ft))throw getInternalRouterError(400,{type:"defer-action"});let Jt=ot.navigation.location||ot.location,qt=createClientSideRequest(i.history,Jt,Mt.signal),Qt=g||h,rn=ot.navigation.state!=="idle"?matchRoutes(Qt,ot.navigation.location,d):ot.matches;invariant(rn,"Didn't find any matches after fetcher action");let cn=++ft;dt.set(St,cn);let yn=getLoadingFetcher(Lt,Ft.data);ot.fetchers.set(St,yn);let[fn,on]=getMatchesToLoad(i.history,ot,rn,Lt,Jt,gt,xt,wt,at,bt,Qt,d,{[Pt.route.id]:Ft.data},void 0);on.filter(Xt=>Xt.key!==St).forEach(Xt=>{let dn=Xt.key,Tn=ot.fetchers.get(dn),In=getLoadingFetcher(void 0,Tn?Tn.data:void 0);ot.fetchers.set(dn,In),vt.has(dn)&&ln(dn),Xt.controller&&vt.set(dn,Xt.controller)}),Rt({fetchers:new Map(ot.fetchers)});let hn=()=>on.forEach(Xt=>ln(Xt.key));Mt.signal.addEventListener("abort",hn);let{results:vn,loaderResults:xn,fetcherResults:wn}=await an(ot.matches,rn,fn,on,qt);if(Mt.signal.aborted)return;Mt.signal.removeEventListener("abort",hn),dt.delete(St),vt.delete(St),on.forEach(Xt=>vt.delete(Xt.key));let mn=findRedirect(vn);if(mn)return Yt(ot,mn);let{loaderData:Vt,errors:en}=processLoaderData(ot,ot.matches,fn,xn,void 0,on,wn,ct);if(ot.fetchers.has(St)){let Xt=getDoneFetcher(Ft.data);ot.fetchers.set(St,Xt)}let un=Sn(cn);ot.navigation.state==="loading"&&cn>lt?(invariant(ut,"Expected pending action"),pt&&pt.abort(),At(ot.navigation.location,{matches:rn,loaderData:Vt,errors:en,fetchers:new Map(ot.fetchers)})):(Rt(_extends$2({errors:en,loaderData:mergeLoaderData(ot.loaderData,Vt,rn,en)},un||on.length>0?{fetchers:new Map(ot.fetchers)}:{})),gt=!1)}async function Zt(St,_t,Tt,Pt,Nt,Lt){let Dt=ot.fetchers.get(St),Ot=getLoadingFetcher(Lt,Dt?Dt.data:void 0);ot.fetchers.set(St,Ot),Rt({fetchers:new Map(ot.fetchers)});let Mt=new AbortController,Ut=createClientSideRequest(i.history,Tt,Mt.signal);vt.set(St,Mt);let Ft=await callLoaderOrAction("loader",Ut,Pt,Nt,c,a,d);if(isDeferredResult(Ft)&&(Ft=await resolveDeferredData(Ft,Ut.signal,!0)||Ft),vt.get(St)===Mt&&vt.delete(St),Ut.signal.aborted)return;if(isRedirectResult(Ft)){bt.add(St),await Yt(ot,Ft);return}if(isErrorResult(Ft)){let qt=findNearestBoundary(ot.matches,_t);ot.fetchers.delete(St),Rt({fetchers:new Map(ot.fetchers),errors:{[qt.route.id]:Ft.error}});return}invariant(!isDeferredResult(Ft),"Unhandled fetcher deferred data");let Jt=getDoneFetcher(Ft.data);ot.fetchers.set(St,Jt),Rt({fetchers:new Map(ot.fetchers)})}async function Yt(St,_t,Tt){let{submission:Pt,replace:Nt,isFetchActionRedirect:Lt}=Tt===void 0?{}:Tt;_t.revalidate&&(gt=!0);let Dt=createLocation(St.location,_t.location,_extends$2({_isRedirect:!0},Lt?{_isFetchActionRedirect:!0}:{}));if(invariant(Dt,"Expected a location on the redirect navigation"),ABSOLUTE_URL_REGEX$1.test(_t.location)&&s){let Ut=i.history.createURL(_t.location),Ft=stripBasename(Ut.pathname,d)==null;if(e.location.origin!==Ut.origin||Ft){Nt?e.location.replace(_t.location):e.location.assign(_t.location);return}}pt=null;let Ot=Nt===!0?Action.Replace:Action.Push,Mt=Pt||getSubmissionFromNavigation(St.navigation);if(redirectPreserveMethodStatusCodes.has(_t.status)&&Mt&&isMutationMethod(Mt.formMethod))await Ht(Ot,Dt,{submission:_extends$2({},Mt,{formAction:_t.location}),preventScrollReset:ht});else if(Lt)await Ht(Ot,Dt,{overrideNavigation:getLoadingNavigation(Dt),fetcherSubmission:Mt,preventScrollReset:ht});else{let Ut=getLoadingNavigation(Dt,Mt);await Ht(Ot,Dt,{overrideNavigation:Ut,preventScrollReset:ht})}}async function an(St,_t,Tt,Pt,Nt){let Lt=await Promise.all([...Tt.map(Mt=>callLoaderOrAction("loader",Nt,Mt,_t,c,a,d)),...Pt.map(Mt=>Mt.matches&&Mt.match&&Mt.controller?callLoaderOrAction("loader",createClientSideRequest(i.history,Mt.path,Mt.controller.signal),Mt.match,Mt.matches,c,a,d):{type:ResultType.error,error:getInternalRouterError(404,{pathname:Mt.path})})]),Dt=Lt.slice(0,Tt.length),Ot=Lt.slice(Tt.length);return await Promise.all([resolveDeferredResults(St,Tt,Dt,Dt.map(()=>Nt.signal),!1,ot.loaderData),resolveDeferredResults(St,Pt.map(Mt=>Mt.match),Ot,Pt.map(Mt=>Mt.controller?Mt.controller.signal:null),!0)]),{results:Lt,loaderResults:Dt,fetcherResults:Ot}}function tn(){gt=!0,xt.push(...gn()),at.forEach((St,_t)=>{vt.has(_t)&&(wt.push(_t),ln(_t))})}function nn(St,_t,Tt){let Pt=findNearestBoundary(ot.matches,_t);sn(St),Rt({errors:{[Pt.route.id]:Tt},fetchers:new Map(ot.fetchers)})}function sn(St){let _t=ot.fetchers.get(St);vt.has(St)&&!(_t&&_t.state==="loading"&&dt.has(St))&&ln(St),at.delete(St),dt.delete(St),bt.delete(St),ot.fetchers.delete(St)}function ln(St){let _t=vt.get(St);invariant(_t,"Expected fetch controller: "+St),_t.abort(),vt.delete(St)}function bn(St){for(let _t of St){let Tt=Wt(_t),Pt=getDoneFetcher(Tt.data);ot.fetchers.set(_t,Pt)}}function En(){let St=[],_t=!1;for(let Tt of bt){let Pt=ot.fetchers.get(Tt);invariant(Pt,"Expected fetcher: "+Tt),Pt.state==="loading"&&(bt.delete(Tt),St.push(Tt),_t=!0)}return bn(St),_t}function Sn(St){let _t=[];for(let[Tt,Pt]of dt)if(Pt0}function Pn(St,_t){let Tt=ot.blockers.get(St)||IDLE_BLOCKER;return mt.get(St)!==_t&&mt.set(St,_t),Tt}function _n(St){ot.blockers.delete(St),mt.delete(St)}function pn(St,_t){let Tt=ot.blockers.get(St)||IDLE_BLOCKER;invariant(Tt.state==="unblocked"&&_t.state==="blocked"||Tt.state==="blocked"&&_t.state==="blocked"||Tt.state==="blocked"&&_t.state==="proceeding"||Tt.state==="blocked"&&_t.state==="unblocked"||Tt.state==="proceeding"&&_t.state==="unblocked","Invalid blocker state transition: "+Tt.state+" -> "+_t.state);let Pt=new Map(ot.blockers);Pt.set(St,_t),Rt({blockers:Pt})}function jn(St){let{currentLocation:_t,nextLocation:Tt,historyAction:Pt}=St;if(mt.size===0)return;mt.size>1&&warning$1(!1,"A router only supports one blocker at a time");let Nt=Array.from(mt.entries()),[Lt,Dt]=Nt[Nt.length-1],Ot=ot.blockers.get(Lt);if(!(Ot&&Ot.state==="proceeding")&&Dt({currentLocation:_t,nextLocation:Tt,historyAction:Pt}))return Lt}function gn(St){let _t=[];return ct.forEach((Tt,Pt)=>{(!St||St(Pt))&&(Tt.cancel(),_t.push(Pt),ct.delete(Pt))}),_t}function Mn(St,_t,Tt){if($=St,et=_t,_e=Tt||null,!tt&&ot.navigation===IDLE_NAVIGATION){tt=!0;let Pt=Cn(ot.location,ot.matches);Pt!=null&&Rt({restoreScrollPosition:Pt})}return()=>{$=null,et=null,_e=null}}function Rn(St,_t){return _e&&_e(St,_t.map(Pt=>createUseMatchesMatch(Pt,ot.loaderData)))||St.key}function An(St,_t){if($&&et){let Tt=Rn(St,_t);$[Tt]=et()}}function Cn(St,_t){if($){let Tt=Rn(St,_t),Pt=$[Tt];if(typeof Pt=="number")return Pt}return null}function On(St){c={},g=convertRoutesToDataRoutes(St,a,void 0,c)}return it={get basename(){return d},get state(){return ot},get routes(){return h},initialize:jt,subscribe:Ct,enableScrollRestoration:Mn,navigate:It,fetch:Gt,revalidate:zt,createHref:St=>i.history.createHref(St),encodeLocation:St=>i.history.encodeLocation(St),getFetcher:Wt,deleteFetcher:sn,dispose:kt,getBlocker:Pn,deleteBlocker:_n,_internalFetchControllers:vt,_internalActiveDeferreds:ct,_internalSetRoutes:On},it}function isSubmissionNavigation(i){return i!=null&&("formData"in i&&i.formData!=null||"body"in i&&i.body!==void 0)}function normalizeTo(i,e,s,o,a,c,h){let g,d;if(c!=null&&h!=="path"){g=[];for(let _ of e)if(g.push(_),_.route.id===c){d=_;break}}else g=e,d=e[e.length-1];let b=resolveTo(a||".",getPathContributingMatches(g).map(_=>_.pathnameBase),stripBasename(i.pathname,s)||i.pathname,h==="path");return a==null&&(b.search=i.search,b.hash=i.hash),(a==null||a===""||a===".")&&d&&d.route.index&&!hasNakedIndexQuery(b.search)&&(b.search=b.search?b.search.replace(/^\?/,"?index&"):"?index"),o&&s!=="/"&&(b.pathname=b.pathname==="/"?s:joinPaths([s,b.pathname])),createPath(b)}function normalizeNavigateOptions(i,e,s,o){if(!o||!isSubmissionNavigation(o))return{path:s};if(o.formMethod&&!isValidMethod(o.formMethod))return{path:s,error:getInternalRouterError(405,{method:o.formMethod})};let a=()=>({path:s,error:getInternalRouterError(400,{type:"invalid-body"})}),c=o.formMethod||"get",h=i?c.toUpperCase():c.toLowerCase(),g=stripHashFromPath(s);if(o.body!==void 0){if(o.formEncType==="text/plain"){if(!isMutationMethod(h))return a();let $=typeof o.body=="string"?o.body:o.body instanceof FormData||o.body instanceof URLSearchParams?Array.from(o.body.entries()).reduce((_e,et)=>{let[tt,st]=et;return""+_e+tt+"="+st+` +`},""):String(o.body);return{path:s,submission:{formMethod:h,formAction:g,formEncType:o.formEncType,formData:void 0,json:void 0,text:$}}}else if(o.formEncType==="application/json"){if(!isMutationMethod(h))return a();try{let $=typeof o.body=="string"?JSON.parse(o.body):o.body;return{path:s,submission:{formMethod:h,formAction:g,formEncType:o.formEncType,formData:void 0,json:$,text:void 0}}}catch{return a()}}}invariant(typeof FormData=="function","FormData is not available in this environment");let d,b;if(o.formData)d=convertFormDataToSearchParams(o.formData),b=o.formData;else if(o.body instanceof FormData)d=convertFormDataToSearchParams(o.body),b=o.body;else if(o.body instanceof URLSearchParams)d=o.body,b=convertSearchParamsToFormData(d);else if(o.body==null)d=new URLSearchParams,b=new FormData;else try{d=new URLSearchParams(o.body),b=convertSearchParamsToFormData(d)}catch{return a()}let _={formMethod:h,formAction:g,formEncType:o&&o.formEncType||"application/x-www-form-urlencoded",formData:b,json:void 0,text:void 0};if(isMutationMethod(_.formMethod))return{path:s,submission:_};let j=parsePath(s);return e&&j.search&&hasNakedIndexQuery(j.search)&&d.append("index",""),j.search="?"+d,{path:createPath(j),submission:_}}function getLoaderMatchesUntilBoundary(i,e){let s=i;if(e){let o=i.findIndex(a=>a.route.id===e);o>=0&&(s=i.slice(0,o))}return s}function getMatchesToLoad(i,e,s,o,a,c,h,g,d,b,_,j,$,_e){let et=_e?Object.values(_e)[0]:$?Object.values($)[0]:void 0,tt=i.createURL(e.location),st=i.createURL(a),nt=_e?Object.keys(_e)[0]:void 0,it=getLoaderMatchesUntilBoundary(s,nt).filter((ut,ht)=>{if(ut.route.lazy)return!0;if(ut.route.loader==null)return!1;if(isNewLoader(e.loaderData,e.matches[ht],ut)||h.some(gt=>gt===ut.route.id))return!0;let pt=e.matches[ht],yt=ut;return shouldRevalidateLoader(ut,_extends$2({currentUrl:tt,currentParams:pt.params,nextUrl:st,nextParams:yt.params},o,{actionResult:et,defaultShouldRevalidate:c||tt.pathname+tt.search===st.pathname+st.search||tt.search!==st.search||isNewRouteInstance(pt,yt)}))}),ot=[];return d.forEach((ut,ht)=>{if(!s.some(vt=>vt.route.id===ut.routeId))return;let pt=matchRoutes(_,ut.path,j);if(!pt){ot.push({key:ht,routeId:ut.routeId,path:ut.path,matches:null,match:null,controller:null});return}let yt=e.fetchers.get(ht),gt=yt&&yt.state!=="idle"&&yt.data===void 0&&!b.has(ht),xt=getTargetMatch(pt,ut.path);(g.includes(ht)||gt||shouldRevalidateLoader(xt,_extends$2({currentUrl:tt,currentParams:e.matches[e.matches.length-1].params,nextUrl:st,nextParams:s[s.length-1].params},o,{actionResult:et,defaultShouldRevalidate:c})))&&ot.push({key:ht,routeId:ut.routeId,path:ut.path,matches:pt,match:xt,controller:new AbortController})}),[it,ot]}function isNewLoader(i,e,s){let o=!e||s.route.id!==e.route.id,a=i[s.route.id]===void 0;return o||a}function isNewRouteInstance(i,e){let s=i.route.path;return i.pathname!==e.pathname||s!=null&&s.endsWith("*")&&i.params["*"]!==e.params["*"]}function shouldRevalidateLoader(i,e){if(i.route.shouldRevalidate){let s=i.route.shouldRevalidate(e);if(typeof s=="boolean")return s}return e.defaultShouldRevalidate}async function loadLazyRouteModule(i,e,s){if(!i.lazy)return;let o=await i.lazy();if(!i.lazy)return;let a=s[i.id];invariant(a,"No route found in manifest");let c={};for(let h in o){let d=a[h]!==void 0&&h!=="hasErrorBoundary";warning$1(!d,'Route "'+a.id+'" has a static property "'+h+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+h+'" will be ignored.')),!d&&!immutableRouteKeys.has(h)&&(c[h]=o[h])}Object.assign(a,c),Object.assign(a,_extends$2({},e(a),{lazy:void 0}))}async function callLoaderOrAction(i,e,s,o,a,c,h,g){g===void 0&&(g={});let d,b,_,j=et=>{let tt,st=new Promise((nt,rt)=>tt=rt);return _=()=>tt(),e.signal.addEventListener("abort",_),Promise.race([et({request:e,params:s.params,context:g.requestContext}),st])};try{let et=s.route[i];if(s.route.lazy)if(et)b=(await Promise.all([j(et),loadLazyRouteModule(s.route,c,a)]))[0];else if(await loadLazyRouteModule(s.route,c,a),et=s.route[i],et)b=await j(et);else if(i==="action"){let tt=new URL(e.url),st=tt.pathname+tt.search;throw getInternalRouterError(405,{method:e.method,pathname:st,routeId:s.route.id})}else return{type:ResultType.data,data:void 0};else if(et)b=await j(et);else{let tt=new URL(e.url),st=tt.pathname+tt.search;throw getInternalRouterError(404,{pathname:st})}invariant(b!==void 0,"You defined "+(i==="action"?"an action":"a loader")+" for route "+('"'+s.route.id+"\" but didn't return anything from your `"+i+"` ")+"function. Please return a value or `null`.")}catch(et){d=ResultType.error,b=et}finally{_&&e.signal.removeEventListener("abort",_)}if(isResponse(b)){let et=b.status;if(redirectStatusCodes.has(et)){let nt=b.headers.get("Location");if(invariant(nt,"Redirects returned/thrown from loaders/actions must have a Location header"),!ABSOLUTE_URL_REGEX$1.test(nt))nt=normalizeTo(new URL(e.url),o.slice(0,o.indexOf(s)+1),h,!0,nt);else if(!g.isStaticRequest){let rt=new URL(e.url),it=nt.startsWith("//")?new URL(rt.protocol+nt):new URL(nt),ot=stripBasename(it.pathname,h)!=null;it.origin===rt.origin&&ot&&(nt=it.pathname+it.search+it.hash)}if(g.isStaticRequest)throw b.headers.set("Location",nt),b;return{type:ResultType.redirect,status:et,location:nt,revalidate:b.headers.get("X-Remix-Revalidate")!==null}}if(g.isRouteRequest)throw{type:d||ResultType.data,response:b};let tt,st=b.headers.get("Content-Type");return st&&/\bapplication\/json\b/.test(st)?tt=await b.json():tt=await b.text(),d===ResultType.error?{type:d,error:new ErrorResponse(et,b.statusText,tt),headers:b.headers}:{type:ResultType.data,data:tt,statusCode:b.status,headers:b.headers}}if(d===ResultType.error)return{type:d,error:b};if(isDeferredData(b)){var $,_e;return{type:ResultType.deferred,deferredData:b,statusCode:($=b.init)==null?void 0:$.status,headers:((_e=b.init)==null?void 0:_e.headers)&&new Headers(b.init.headers)}}return{type:ResultType.data,data:b}}function createClientSideRequest(i,e,s,o){let a=i.createURL(stripHashFromPath(e)).toString(),c={signal:s};if(o&&isMutationMethod(o.formMethod)){let{formMethod:h,formEncType:g}=o;c.method=h.toUpperCase(),g==="application/json"?(c.headers=new Headers({"Content-Type":g}),c.body=JSON.stringify(o.json)):g==="text/plain"?c.body=o.text:g==="application/x-www-form-urlencoded"&&o.formData?c.body=convertFormDataToSearchParams(o.formData):c.body=o.formData}return new Request(a,c)}function convertFormDataToSearchParams(i){let e=new URLSearchParams;for(let[s,o]of i.entries())e.append(s,typeof o=="string"?o:o.name);return e}function convertSearchParamsToFormData(i){let e=new FormData;for(let[s,o]of i.entries())e.append(s,o);return e}function processRouteLoaderData(i,e,s,o,a){let c={},h=null,g,d=!1,b={};return s.forEach((_,j)=>{let $=e[j].route.id;if(invariant(!isRedirectResult(_),"Cannot handle redirect results in processLoaderData"),isErrorResult(_)){let _e=findNearestBoundary(i,$),et=_.error;o&&(et=Object.values(o)[0],o=void 0),h=h||{},h[_e.route.id]==null&&(h[_e.route.id]=et),c[$]=void 0,d||(d=!0,g=isRouteErrorResponse(_.error)?_.error.status:500),_.headers&&(b[$]=_.headers)}else isDeferredResult(_)?(a.set($,_.deferredData),c[$]=_.deferredData.data):c[$]=_.data,_.statusCode!=null&&_.statusCode!==200&&!d&&(g=_.statusCode),_.headers&&(b[$]=_.headers)}),o&&(h=o,c[Object.keys(o)[0]]=void 0),{loaderData:c,errors:h,statusCode:g||200,loaderHeaders:b}}function processLoaderData(i,e,s,o,a,c,h,g){let{loaderData:d,errors:b}=processRouteLoaderData(e,s,o,a,g);for(let _=0;_o.route.id===e)+1):[...i]).reverse().find(o=>o.route.hasErrorBoundary===!0)||i[0]}function getShortCircuitMatches(i){let e=i.find(s=>s.index||!s.path||s.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function getInternalRouterError(i,e){let{pathname:s,routeId:o,method:a,type:c}=e===void 0?{}:e,h="Unknown Server Error",g="Unknown @remix-run/router error";return i===400?(h="Bad Request",a&&s&&o?g="You made a "+a+' request to "'+s+'" but '+('did not provide a `loader` for route "'+o+'", ')+"so there is no way to handle the request.":c==="defer-action"?g="defer() is not supported in actions":c==="invalid-body"&&(g="Unable to encode submission body")):i===403?(h="Forbidden",g='Route "'+o+'" does not match URL "'+s+'"'):i===404?(h="Not Found",g='No route matches URL "'+s+'"'):i===405&&(h="Method Not Allowed",a&&s&&o?g="You made a "+a.toUpperCase()+' request to "'+s+'" but '+('did not provide an `action` for route "'+o+'", ')+"so there is no way to handle the request.":a&&(g='Invalid request method "'+a.toUpperCase()+'"')),new ErrorResponse(i||500,h,new Error(g),!0)}function findRedirect(i){for(let e=i.length-1;e>=0;e--){let s=i[e];if(isRedirectResult(s))return s}}function stripHashFromPath(i){let e=typeof i=="string"?parsePath(i):i;return createPath(_extends$2({},e,{hash:""}))}function isHashChangeOnly(i,e){return i.pathname!==e.pathname||i.search!==e.search?!1:i.hash===""?e.hash!=="":i.hash===e.hash?!0:e.hash!==""}function isDeferredResult(i){return i.type===ResultType.deferred}function isErrorResult(i){return i.type===ResultType.error}function isRedirectResult(i){return(i&&i.type)===ResultType.redirect}function isDeferredData(i){let e=i;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function isResponse(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.headers=="object"&&typeof i.body<"u"}function isValidMethod(i){return validRequestMethods.has(i.toLowerCase())}function isMutationMethod(i){return validMutationMethods.has(i.toLowerCase())}async function resolveDeferredResults(i,e,s,o,a,c){for(let h=0;hj.route.id===d.route.id),_=b!=null&&!isNewRouteInstance(b,d)&&(c&&c[d.route.id])!==void 0;if(isDeferredResult(g)&&(a||_)){let j=o[h];invariant(j,"Expected an AbortSignal for revalidating fetcher deferred result"),await resolveDeferredData(g,j,a).then($=>{$&&(s[h]=$||s[h])})}}}async function resolveDeferredData(i,e,s){if(s===void 0&&(s=!1),!await i.deferredData.resolveData(e)){if(s)try{return{type:ResultType.data,data:i.deferredData.unwrappedData}}catch(a){return{type:ResultType.error,error:a}}return{type:ResultType.data,data:i.deferredData.data}}}function hasNakedIndexQuery(i){return new URLSearchParams(i).getAll("index").some(e=>e==="")}function createUseMatchesMatch(i,e){let{route:s,pathname:o,params:a}=i;return{id:s.id,pathname:o,params:a,data:e[s.id],handle:s.handle}}function getTargetMatch(i,e){let s=typeof e=="string"?parsePath(e).search:e.search;if(i[i.length-1].route.index&&hasNakedIndexQuery(s||""))return i[i.length-1];let o=getPathContributingMatches(i);return o[o.length-1]}function getSubmissionFromNavigation(i){let{formMethod:e,formAction:s,formEncType:o,text:a,formData:c,json:h}=i;if(!(!e||!s||!o)){if(a!=null)return{formMethod:e,formAction:s,formEncType:o,formData:void 0,json:void 0,text:a};if(c!=null)return{formMethod:e,formAction:s,formEncType:o,formData:c,json:void 0,text:void 0};if(h!==void 0)return{formMethod:e,formAction:s,formEncType:o,formData:void 0,json:h,text:void 0}}}function getLoadingNavigation(i,e){return e?{state:"loading",location:i,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:i,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function getSubmittingNavigation(i,e){return{state:"submitting",location:i,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function getLoadingFetcher(i,e){return i?{state:"loading",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:e," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}function getSubmittingFetcher(i,e){return{state:"submitting",formMethod:i.formMethod,formAction:i.formAction,formEncType:i.formEncType,formData:i.formData,json:i.json,text:i.text,data:e?e.data:void 0," _hasFetcherDoneAnything ":!0}}function getDoneFetcher(i){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:i," _hasFetcherDoneAnything ":!0}}/** * React Router v6.14.1 * * Copyright (c) Remix Software Inc. @@ -42,41 +42,41 @@ var Lr=Object.defineProperty;var Dr=(i,e,s)=>e in i?Lr(i,e,{enumerable:!0,config * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _extends(){return _extends=Object.assign?Object.assign.bind():function(i){for(var e=1;e=0)&&(s[a]=i[a]);return s}function isModifiedEvent(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function shouldProcessLinkClick(i,e){return i.button===0&&(!e||e==="_self")&&!isModifiedEvent(i)}const _excluded=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],_excluded2=["aria-current","caseSensitive","className","end","style","to","children"];function createHashRouter(i,e){return createRouter({basename:e==null?void 0:e.basename,future:_extends({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:createHashHistory({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||parseHydrationData(),routes:i,mapRouteProperties}).initialize()}function parseHydrationData(){var i;let e=(i=window)==null?void 0:i.__staticRouterHydrationData;return e&&e.errors&&(e=_extends({},e,{errors:deserializeErrors(e.errors)})),e}function deserializeErrors(i){if(!i)return null;let e=Object.entries(i),s={};for(let[o,a]of e)if(a&&a.__type==="RouteErrorResponse")s[o]=new ErrorResponse(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){let c=new Error(a.message);c.stack="",s[o]=c}else s[o]=a;return s}const isBrowser=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function(e,s){let{onClick:o,relative:a,reloadDocument:c,replace:h,state:g,target:d,to:b,preventScrollReset:_}=e,j=_objectWithoutPropertiesLoose(e,_excluded),{basename:$}=reactExports.useContext(NavigationContext),_e,et=!1;if(typeof b=="string"&&ABSOLUTE_URL_REGEX.test(b)&&(_e=b,isBrowser))try{let nt=new URL(window.location.href),it=b.startsWith("//")?new URL(nt.protocol+b):new URL(b),ot=stripBasename(it.pathname,$);it.origin===nt.origin&&ot!=null?b=ot+it.search+it.hash:et=!0}catch{}let tt=useHref(b,{relative:a}),st=useLinkClickHandler(b,{replace:h,state:g,target:d,preventScrollReset:_,relative:a});function rt(nt){o&&o(nt),nt.defaultPrevented||st(nt)}return reactExports.createElement("a",_extends({},j,{href:_e||tt,onClick:et||c?o:rt,ref:s,target:d}))}),NavLink=reactExports.forwardRef(function(e,s){let{"aria-current":o="page",caseSensitive:a=!1,className:c="",end:h=!1,style:g,to:d,children:b}=e,_=_objectWithoutPropertiesLoose(e,_excluded2),j=useResolvedPath(d,{relative:_.relative}),$=useLocation(),_e=reactExports.useContext(DataRouterStateContext),{navigator:et}=reactExports.useContext(NavigationContext),tt=et.encodeLocation?et.encodeLocation(j).pathname:j.pathname,st=$.pathname,rt=_e&&_e.navigation&&_e.navigation.location?_e.navigation.location.pathname:null;a||(st=st.toLowerCase(),rt=rt?rt.toLowerCase():null,tt=tt.toLowerCase());let nt=st===tt||!h&&st.startsWith(tt)&&st.charAt(tt.length)==="/",it=rt!=null&&(rt===tt||!h&&rt.startsWith(tt)&&rt.charAt(tt.length)==="/"),ot=nt?o:void 0,ut;typeof c=="function"?ut=c({isActive:nt,isPending:it}):ut=[c,nt?"active":null,it?"pending":null].filter(Boolean).join(" ");let ht=typeof g=="function"?g({isActive:nt,isPending:it}):g;return reactExports.createElement(Link,_extends({},_,{"aria-current":ot,className:ut,ref:s,style:ht,to:d}),typeof b=="function"?b({isActive:nt,isPending:it}):b)});var DataRouterHook;(function(i){i.UseScrollRestoration="useScrollRestoration",i.UseSubmit="useSubmit",i.UseSubmitFetcher="useSubmitFetcher",i.UseFetcher="useFetcher"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(i){i.UseFetchers="useFetchers",i.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(i,e){let{target:s,replace:o,state:a,preventScrollReset:c,relative:h}=e===void 0?{}:e,g=useNavigate(),d=useLocation(),b=useResolvedPath(i,{relative:h});return reactExports.useCallback(_=>{if(shouldProcessLinkClick(_,s)){_.preventDefault();let j=o!==void 0?o:createPath(d)===createPath(b);g(i,{replace:j,state:a,preventScrollReset:c,relative:h})}},[d,g,b,o,a,s,i,c,h])}var lib={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(module,exports){(function(i,e){module.exports=e()})(self,()=>(()=>{var __webpack_modules__={7496:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},7431:function(i,e,s){var o=this&&this.__createBinding||(Object.create?function(c,h,g,d){d===void 0&&(d=g);var b=Object.getOwnPropertyDescriptor(h,g);b&&!("get"in b?!h.__esModule:b.writable||b.configurable)||(b={enumerable:!0,get:function(){return h[g]}}),Object.defineProperty(c,d,b)}:function(c,h,g,d){d===void 0&&(d=g),c[d]=h[g]}),a=this&&this.__exportStar||function(c,h){for(var g in c)g==="default"||Object.prototype.hasOwnProperty.call(h,g)||o(h,c,g)};Object.defineProperty(e,"__esModule",{value:!0}),a(s(7496),e),a(s(8704),e),a(s(4596),e),a(s(8836),e),a(s(6758),e),a(s(2922),e),a(s(8287),e),a(s(5484),e),a(s(9929),e)},8704:(i,e)=>{var s;Object.defineProperty(e,"__esModule",{value:!0}),e.LOG_LEVELS=e.LogLevel=void 0,function(o){o[o.Debug=0]="Debug",o[o.Warning=1]="Warning",o[o.Error=2]="Error",o[o.Trace=3]="Trace",o[o.Info=4]="Info",o[o.Fatal=5]="Fatal"}(s=e.LogLevel||(e.LogLevel={})),e.LOG_LEVELS=[s.Debug,s.Warning,s.Error,s.Trace,s.Info,s.Fatal]},4596:function(i,e){var s=this&&this.__assign||function(){return s=Object.assign||function(a){for(var c,h=1,g=arguments.length;h{Object.defineProperty(e,"__esModule",{value:!0}),e.PrintToConsole=void 0;var o=s(9539),a=s(8704),c=function(){function h(g){this.console=g,this.printToConsole=!1}return h.prototype.init=function(g){this.printToConsole=g},h.prototype.error=function(){for(var g,d=[],b=0;b{Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterErrorHandler=void 0;var s=function(){function o(a){this.window=a,this.rejectionsMap=new Map}return o.prototype.init=function(a){var c=this;this.bugfender=a,this.window.addEventListener("error",function(h){var g=h.message,d=h.lineno,b=h.filename,_=h.error;c.logError(g,b,d,_)}),this.window.addEventListener("unhandledrejection",function(h){var g=setTimeout(function(){c.logError("Potentially unhandled promise",void 0,void 0,h.reason)},1);c.rejectionsMap.set(h.promise,g),h.preventDefault()}),this.window.addEventListener("rejectionhandled",function(h){clearTimeout(c.rejectionsMap.get(h.promise)),c.rejectionsMap.delete(h.promise)})},o.prototype.logError=function(a,c,h,g){var d;g&&g.stack&&(d=g.stack),typeof a=="string"&&this.bugfender.sendCrash(a,["Error: ".concat(a),"URL: ".concat(c??"N/A"),"Line: ".concat(h??"N/A"),"Stack: ".concat(d??"N/A")].join(` -`))},o}();e.RegisterErrorHandler=s},2922:function(i,e,s){var o=this&&this.__spreadArray||function(g,d,b){if(b||arguments.length===2)for(var _,j=0,$=d.length;j<$;j++)!_&&j in d||(_||(_=Array.prototype.slice.call(d,0,j)),_[j]=d[j]);return g.concat(_||Array.prototype.slice.call(d))};Object.defineProperty(e,"__esModule",{value:!0}),e.formatLogEntryText=e.format=void 0;var a=s(9539),c=s(8287);function h(g){var d=g.slice(1),b=g[0];try{b=(0,c.mapToString)(b)}catch{b=(0,a.format)(b)}return d.length>0?a.format.apply(void 0,o([b],d,!1)):b}e.format=h,e.formatLogEntryText=function(g){return typeof g=="string"?g:function(d){return Array.isArray(d)}(g)?h(g):""}},8287:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mapToString=e.mapToNumber=void 0,e.mapToNumber=function(s){var o=Number(s);if(isNaN(o))throw new Error("Can't be casted to number");return o},e.mapToString=function(s){if(["string","symbol","bigint","function"].includes(typeof s)||s instanceof Error)try{return String(s)}catch{return JSON.stringify(s)}else try{return JSON.stringify(s)}catch{return String(s)}}},9929:function(i,e){var s=this&&this.__assign||function(){return s=Object.assign||function(c){for(var h,g=1,d=arguments.length;g{Object.defineProperty(e,"__esModule",{value:!0})},6177:function(i,e,s){i=s.nmd(i),(function(){var o,a,c,h;for(c=(i!==null?i.exports:void 0)||(window.Base58={}),o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",a={},h=0;h>8,d[j]&=255,++j;for(;_;)d.push(255&_),_>>=8;h++}for(h=0;g[h]==="1"&&h0&&b[1]||""},h.getSecondMatch=function(g,d){var b=d.match(g);return b&&b.length>1&&b[2]||""},h.matchAndReturnConst=function(g,d,b){if(g.test(d))return b},h.getWindowsVersionName=function(g){switch(g){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},h.getMacOSVersionName=function(g){var d=g.split(".").splice(0,2).map(function(b){return parseInt(b,10)||0});if(d.push(0),d[0]===10)switch(d[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},h.getAndroidVersionName=function(g){var d=g.split(".").splice(0,2).map(function(b){return parseInt(b,10)||0});if(d.push(0),!(d[0]===1&&d[1]<5))return d[0]===1&&d[1]<6?"Cupcake":d[0]===1&&d[1]>=6?"Donut":d[0]===2&&d[1]<2?"Eclair":d[0]===2&&d[1]===2?"Froyo":d[0]===2&&d[1]>2?"Gingerbread":d[0]===3?"Honeycomb":d[0]===4&&d[1]<1?"Ice Cream Sandwich":d[0]===4&&d[1]<4?"Jelly Bean":d[0]===4&&d[1]>=4?"KitKat":d[0]===5?"Lollipop":d[0]===6?"Marshmallow":d[0]===7?"Nougat":d[0]===8?"Oreo":d[0]===9?"Pie":void 0},h.getVersionPrecision=function(g){return g.split(".").length},h.compareVersions=function(g,d,b){b===void 0&&(b=!1);var _=h.getVersionPrecision(g),j=h.getVersionPrecision(d),$=Math.max(_,j),_e=0,et=h.map([g,d],function(tt){var st=$-h.getVersionPrecision(tt),rt=tt+new Array(st+1).join(".0");return h.map(rt.split("."),function(nt){return new Array(20-nt.length).join("0")+nt}).reverse()});for(b&&(_e=$-Math.min(_,j)),$-=1;$>=_e;){if(et[0][$]>et[1][$])return 1;if(et[0][$]===et[1][$]){if($===_e)return 0;$-=1}else if(et[0][$]1?j-1:0),_e=1;_e0){var it=Object.keys(tt),ot=d.default.find(it,function(xt){return et.isOS(xt)});if(ot){var ut=this.satisfies(tt[ot]);if(ut!==void 0)return ut}var ht=d.default.find(it,function(xt){return et.isPlatform(xt)});if(ht){var pt=this.satisfies(tt[ht]);if(pt!==void 0)return pt}}if(nt>0){var yt=Object.keys(rt),gt=d.default.find(yt,function(xt){return et.isBrowser(xt,!0)});if(gt!==void 0)return this.compareVersion(rt[gt])}},$.isBrowser=function(_e,et){et===void 0&&(et=!1);var tt=this.getBrowserName().toLowerCase(),st=_e.toLowerCase(),rt=d.default.getBrowserTypeByAlias(st);return et&&rt&&(st=rt.toLowerCase()),st===tt},$.compareVersion=function(_e){var et=[0],tt=_e,st=!1,rt=this.getBrowserVersion();if(typeof rt=="string")return _e[0]===">"||_e[0]==="<"?(tt=_e.substr(1),_e[1]==="="?(st=!0,tt=_e.substr(2)):et=[],_e[0]===">"?et.push(1):et.push(-1)):_e[0]==="="?tt=_e.substr(1):_e[0]==="~"&&(st=!0,tt=_e.substr(1)),et.indexOf(d.default.compareVersions(rt,tt,st))>-1},$.isOS=function(_e){return this.getOSName(!0)===String(_e).toLowerCase()},$.isPlatform=function(_e){return this.getPlatformType(!0)===String(_e).toLowerCase()},$.isEngine=function(_e){return this.getEngineName(!0)===String(_e).toLowerCase()},$.is=function(_e,et){return et===void 0&&(et=!1),this.isBrowser(_e,et)||this.isOS(_e)||this.isPlatform(_e)},$.some=function(_e){var et=this;return _e===void 0&&(_e=[]),_e.some(function(tt){return et.is(tt)})},j}();s.default=_,e.exports=s.default},92:function(e,s,o){s.__esModule=!0,s.default=void 0;var a,c=(a=o(17))&&a.__esModule?a:{default:a},h=/version\/(\d+(\.?_?\d+)+)/i,g=[{test:[/googlebot/i],describe:function(d){var b={name:"Googlebot"},_=c.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/opera/i],describe:function(d){var b={name:"Opera"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/opr\/|opios/i],describe:function(d){var b={name:"Opera"},_=c.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/SamsungBrowser/i],describe:function(d){var b={name:"Samsung Internet for Android"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/Whale/i],describe:function(d){var b={name:"NAVER Whale Browser"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/MZBrowser/i],describe:function(d){var b={name:"MZ Browser"},_=c.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/focus/i],describe:function(d){var b={name:"Focus"},_=c.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/swing/i],describe:function(d){var b={name:"Swing"},_=c.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/coast/i],describe:function(d){var b={name:"Opera Coast"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(d){var b={name:"Opera Touch"},_=c.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/yabrowser/i],describe:function(d){var b={name:"Yandex Browser"},_=c.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/ucbrowser/i],describe:function(d){var b={name:"UC Browser"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/Maxthon|mxios/i],describe:function(d){var b={name:"Maxthon"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/epiphany/i],describe:function(d){var b={name:"Epiphany"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/puffin/i],describe:function(d){var b={name:"Puffin"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/sleipnir/i],describe:function(d){var b={name:"Sleipnir"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/k-meleon/i],describe:function(d){var b={name:"K-Meleon"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/micromessenger/i],describe:function(d){var b={name:"WeChat"},_=c.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/qqbrowser/i],describe:function(d){var b={name:/qqbrowserlite/i.test(d)?"QQ Browser Lite":"QQ Browser"},_=c.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/msie|trident/i],describe:function(d){var b={name:"Internet Explorer"},_=c.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/\sedg\//i],describe:function(d){var b={name:"Microsoft Edge"},_=c.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/edg([ea]|ios)/i],describe:function(d){var b={name:"Microsoft Edge"},_=c.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/vivaldi/i],describe:function(d){var b={name:"Vivaldi"},_=c.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/seamonkey/i],describe:function(d){var b={name:"SeaMonkey"},_=c.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/sailfish/i],describe:function(d){var b={name:"Sailfish"},_=c.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,d);return _&&(b.version=_),b}},{test:[/silk/i],describe:function(d){var b={name:"Amazon Silk"},_=c.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/phantom/i],describe:function(d){var b={name:"PhantomJS"},_=c.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/slimerjs/i],describe:function(d){var b={name:"SlimerJS"},_=c.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(d){var b={name:"BlackBerry"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/(web|hpw)[o0]s/i],describe:function(d){var b={name:"WebOS Browser"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/bada/i],describe:function(d){var b={name:"Bada"},_=c.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/tizen/i],describe:function(d){var b={name:"Tizen"},_=c.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/qupzilla/i],describe:function(d){var b={name:"QupZilla"},_=c.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/firefox|iceweasel|fxios/i],describe:function(d){var b={name:"Firefox"},_=c.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/electron/i],describe:function(d){var b={name:"Electron"},_=c.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/MiuiBrowser/i],describe:function(d){var b={name:"Miui"},_=c.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/chromium/i],describe:function(d){var b={name:"Chromium"},_=c.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/chrome|crios|crmo/i],describe:function(d){var b={name:"Chrome"},_=c.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/GSA/i],describe:function(d){var b={name:"Google Search"},_=c.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:function(d){var b=!d.test(/like android/i),_=d.test(/android/i);return b&&_},describe:function(d){var b={name:"Android Browser"},_=c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/playstation 4/i],describe:function(d){var b={name:"PlayStation 4"},_=c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/safari|applewebkit/i],describe:function(d){var b={name:"Safari"},_=c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/.*/i],describe:function(d){var b=d.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:c.default.getFirstMatch(b,d),version:c.default.getSecondMatch(b,d)}}}];s.default=g,e.exports=s.default},93:function(e,s,o){s.__esModule=!0,s.default=void 0;var a,c=(a=o(17))&&a.__esModule?a:{default:a},h=o(18),g=[{test:[/Roku\/DVP/],describe:function(d){var b=c.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,d);return{name:h.OS_MAP.Roku,version:b}}},{test:[/windows phone/i],describe:function(d){var b=c.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,d);return{name:h.OS_MAP.WindowsPhone,version:b}}},{test:[/windows /i],describe:function(d){var b=c.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,d),_=c.default.getWindowsVersionName(b);return{name:h.OS_MAP.Windows,version:b,versionName:_}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(d){var b={name:h.OS_MAP.iOS},_=c.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,d);return _&&(b.version=_),b}},{test:[/macintosh/i],describe:function(d){var b=c.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,d).replace(/[_\s]/g,"."),_=c.default.getMacOSVersionName(b),j={name:h.OS_MAP.MacOS,version:b};return _&&(j.versionName=_),j}},{test:[/(ipod|iphone|ipad)/i],describe:function(d){var b=c.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,d).replace(/[_\s]/g,".");return{name:h.OS_MAP.iOS,version:b}}},{test:function(d){var b=!d.test(/like android/i),_=d.test(/android/i);return b&&_},describe:function(d){var b=c.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,d),_=c.default.getAndroidVersionName(b),j={name:h.OS_MAP.Android,version:b};return _&&(j.versionName=_),j}},{test:[/(web|hpw)[o0]s/i],describe:function(d){var b=c.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,d),_={name:h.OS_MAP.WebOS};return b&&b.length&&(_.version=b),_}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(d){var b=c.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,d)||c.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,d)||c.default.getFirstMatch(/\bbb(\d+)/i,d);return{name:h.OS_MAP.BlackBerry,version:b}}},{test:[/bada/i],describe:function(d){var b=c.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,d);return{name:h.OS_MAP.Bada,version:b}}},{test:[/tizen/i],describe:function(d){var b=c.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,d);return{name:h.OS_MAP.Tizen,version:b}}},{test:[/linux/i],describe:function(){return{name:h.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:h.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(d){var b=c.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,d);return{name:h.OS_MAP.PlayStation4,version:b}}}];s.default=g,e.exports=s.default},94:function(e,s,o){s.__esModule=!0,s.default=void 0;var a,c=(a=o(17))&&a.__esModule?a:{default:a},h=o(18),g=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(d){var b=c.default.getFirstMatch(/(can-l01)/i,d)&&"Nova",_={type:h.PLATFORMS_MAP.mobile,vendor:"Huawei"};return b&&(_.model=b),_}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet}}},{test:function(d){var b=d.test(/ipod|iphone/i),_=d.test(/like (ipod|iphone)/i);return b&&!_},describe:function(d){var b=c.default.getFirstMatch(/(ipod|iphone)/i,d);return{type:h.PLATFORMS_MAP.mobile,vendor:"Apple",model:b}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:function(d){return d.getBrowserName(!0)==="blackberry"},describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(d){return d.getBrowserName(!0)==="bada"},describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:function(d){return d.getBrowserName()==="windows phone"},describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(d){var b=Number(String(d.getOSVersion()).split(".")[0]);return d.getOSName(!0)==="android"&&b>=3},describe:function(){return{type:h.PLATFORMS_MAP.tablet}}},{test:function(d){return d.getOSName(!0)==="android"},describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:function(d){return d.getOSName(!0)==="macos"},describe:function(){return{type:h.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(d){return d.getOSName(!0)==="windows"},describe:function(){return{type:h.PLATFORMS_MAP.desktop}}},{test:function(d){return d.getOSName(!0)==="linux"},describe:function(){return{type:h.PLATFORMS_MAP.desktop}}},{test:function(d){return d.getOSName(!0)==="playstation 4"},describe:function(){return{type:h.PLATFORMS_MAP.tv}}},{test:function(d){return d.getOSName(!0)==="roku"},describe:function(){return{type:h.PLATFORMS_MAP.tv}}}];s.default=g,e.exports=s.default},95:function(e,s,o){s.__esModule=!0,s.default=void 0;var a,c=(a=o(17))&&a.__esModule?a:{default:a},h=o(18),g=[{test:function(d){return d.getBrowserName(!0)==="microsoft edge"},describe:function(d){if(/\sedg\//i.test(d))return{name:h.ENGINE_MAP.Blink};var b=c.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,d);return{name:h.ENGINE_MAP.EdgeHTML,version:b}}},{test:[/trident/i],describe:function(d){var b={name:h.ENGINE_MAP.Trident},_=c.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:function(d){return d.test(/presto/i)},describe:function(d){var b={name:h.ENGINE_MAP.Presto},_=c.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:function(d){var b=d.test(/gecko/i),_=d.test(/like gecko/i);return b&&!_},describe:function(d){var b={name:h.ENGINE_MAP.Gecko},_=c.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:h.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(d){var b={name:h.ENGINE_MAP.WebKit},_=c.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}}];s.default=g,e.exports=s.default}})},8991:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.OPEN_BROADCAST_CHANNELS=e.BroadcastChannel=void 0,e.clearNodeFolder=function(et){et=(0,c.fillOptionsWithDefaults)(et);var tt=(0,a.chooseMethod)(et);return tt.type==="node"?tt.clearNodeFolder().then(function(){return!0}):o.PROMISE_RESOLVED_FALSE},e.enforceOptions=function(et){g=et};var o=s(6202),a=s(4632),c=s(423),h=new Set;e.OPEN_BROADCAST_CHANNELS=h;var g,d=0,b=function(et,tt){var st,rt;this.id=d++,h.add(this),this.name=et,g&&(tt=g),this.options=(0,c.fillOptionsWithDefaults)(tt),this.method=(0,a.chooseMethod)(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,rt=(st=this).method.create(st.name,st.options),(0,o.isPromise)(rt)?(st._prepP=rt,rt.then(function(nt){st._state=nt})):st._state=rt};function _(et,tt,st){var rt={time:et.method.microSeconds(),type:tt,data:st};return(et._prepP?et._prepP:o.PROMISE_RESOLVED_VOID).then(function(){var nt=et.method.postMessage(et._state,rt);return et._uMP.add(nt),nt.catch().then(function(){return et._uMP.delete(nt)}),nt})}function j(et){return et._addEL.message.length>0||et._addEL.internal.length>0}function $(et,tt,st){et._addEL[tt].push(st),function(rt){if(!rt._iL&&j(rt)){var nt=function(ot){rt._addEL[ot.type].forEach(function(ut){var ht=ut.time-1e5;ot.time>=ht&&ut.fn(ot.data)})},it=rt.method.microSeconds();rt._prepP?rt._prepP.then(function(){rt._iL=!0,rt.method.onMessage(rt._state,nt,it)}):(rt._iL=!0,rt.method.onMessage(rt._state,nt,it))}}(et)}function _e(et,tt,st){et._addEL[tt]=et._addEL[tt].filter(function(rt){return rt!==st}),function(rt){if(rt._iL&&!j(rt)){rt._iL=!1;var nt=rt.method.microSeconds();rt.method.onMessage(rt._state,null,nt)}}(et)}e.BroadcastChannel=b,b._pubkey=!0,b.prototype={postMessage:function(et){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(et));return _(this,"message",et)},postInternal:function(et){return _(this,"internal",et)},set onmessage(et){var tt={time:this.method.microSeconds(),fn:et};_e(this,"message",this._onML),et&&typeof et=="function"?(this._onML=tt,$(this,"message",tt)):this._onML=null},addEventListener:function(et,tt){$(this,et,{time:this.method.microSeconds(),fn:tt})},removeEventListener:function(et,tt){_e(this,et,this._addEL[et].find(function(st){return st.fn===tt}))},close:function(){var et=this;if(!this.closed){h.delete(this),this.closed=!0;var tt=this._prepP?this._prepP:o.PROMISE_RESOLVED_VOID;return this._onML=null,this._addEL.message=[],tt.then(function(){return Promise.all(Array.from(et._uMP))}).then(function(){return Promise.all(et._befC.map(function(st){return st()}))}).then(function(){return et.method.close(et._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}}},8437:(i,e,s)=>{var o=s(5585);i.exports={BroadcastChannel:o.BroadcastChannel,createLeaderElection:o.createLeaderElection,clearNodeFolder:o.clearNodeFolder,enforceOptions:o.enforceOptions,beLeader:o.beLeader}},5585:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BroadcastChannel",{enumerable:!0,get:function(){return o.BroadcastChannel}}),Object.defineProperty(e,"OPEN_BROADCAST_CHANNELS",{enumerable:!0,get:function(){return o.OPEN_BROADCAST_CHANNELS}}),Object.defineProperty(e,"beLeader",{enumerable:!0,get:function(){return a.beLeader}}),Object.defineProperty(e,"clearNodeFolder",{enumerable:!0,get:function(){return o.clearNodeFolder}}),Object.defineProperty(e,"createLeaderElection",{enumerable:!0,get:function(){return a.createLeaderElection}}),Object.defineProperty(e,"enforceOptions",{enumerable:!0,get:function(){return o.enforceOptions}});var o=s(8991),a=s(6550)},6550:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.beLeader=g,e.createLeaderElection=function(d,b){if(d._leaderElector)throw new Error("BroadcastChannel already has a leader-elector");b=function(j,$){return j||(j={}),(j=JSON.parse(JSON.stringify(j))).fallbackInterval||(j.fallbackInterval=3e3),j.responseTime||(j.responseTime=$.method.averageResponseTime($.options)),j}(b,d);var _=new c(d,b);return d._befC.push(function(){return _.die()}),d._leaderElector=_,_};var o=s(6202),a=s(4810),c=function(d,b){var _=this;this.broadcastChannel=d,this._options=b,this.isLeader=!1,this.hasLeader=!1,this.isDead=!1,this.token=(0,o.randomToken)(),this._aplQ=o.PROMISE_RESOLVED_VOID,this._aplQC=0,this._unl=[],this._lstns=[],this._dpL=function(){},this._dpLC=!1;var j=function($){$.context==="leader"&&($.action==="death"&&(_.hasLeader=!1),$.action==="tell"&&(_.hasLeader=!0))};this.broadcastChannel.addEventListener("internal",j),this._lstns.push(j)};function h(d,b){var _={context:"leader",action:b,token:d.token};return d.broadcastChannel.postInternal(_)}function g(d){d.isLeader=!0,d.hasLeader=!0;var b=(0,a.add)(function(){return d.die()});d._unl.push(b);var _=function(j){j.context==="leader"&&j.action==="apply"&&h(d,"tell"),j.context!=="leader"||j.action!=="tell"||d._dpLC||(d._dpLC=!0,d._dpL(),h(d,"tell"))};return d.broadcastChannel.addEventListener("internal",_),d._lstns.push(_),h(d,"tell")}c.prototype={applyOnce:function(d){var b=this;return this.isLeader?(0,o.sleep)(0,!0):this.isDead?(0,o.sleep)(0,!1):this._aplQC>1?this._aplQ:(this._aplQC=this._aplQC+1,this._aplQ=this._aplQ.then(function(){return function(){if(b.isLeader)return o.PROMISE_RESOLVED_TRUE;var _,j=!1,$=new Promise(function(tt){_=function(){j=!0,tt()}}),_e=function(tt){tt.context==="leader"&&tt.token!=b.token&&(tt.action==="apply"&&tt.token>b.token&&_(),tt.action==="tell"&&(_(),b.hasLeader=!0))};b.broadcastChannel.addEventListener("internal",_e);var et=d?4*b._options.responseTime:b._options.responseTime;return h(b,"apply").then(function(){return Promise.race([(0,o.sleep)(et),$.then(function(){return Promise.reject(new Error)})])}).then(function(){return h(b,"apply")}).then(function(){return Promise.race([(0,o.sleep)(et),$.then(function(){return Promise.reject(new Error)})])}).catch(function(){}).then(function(){return b.broadcastChannel.removeEventListener("internal",_e),!j&&g(b).then(function(){return!0})})}()}).then(function(){b._aplQC=b._aplQC-1}),this._aplQ.then(function(){return b.isLeader}))},awaitLeadership:function(){return this._aLP||(this._aLP=(d=this).isLeader?o.PROMISE_RESOLVED_VOID:new Promise(function(b){var _=!1;function j(){_||(_=!0,d.broadcastChannel.removeEventListener("internal",$),b(!0))}d.applyOnce().then(function(){d.isLeader&&j()}),function _e(){return(0,o.sleep)(d._options.fallbackInterval).then(function(){if(!d.isDead&&!_)return d.isLeader?void j():d.applyOnce(!0).then(function(){d.isLeader?j():_e()})})}();var $=function(_e){_e.context==="leader"&&_e.action==="death"&&(d.hasLeader=!1,d.applyOnce().then(function(){d.isLeader&&j()}))};d.broadcastChannel.addEventListener("internal",$),d._lstns.push($)})),this._aLP;var d},set onduplicate(d){this._dpL=d},die:function(){var d=this;return this._lstns.forEach(function(b){return d.broadcastChannel.removeEventListener("internal",b)}),this._lstns=[],this._unl.forEach(function(b){return b.remove()}),this._unl=[],this.isLeader&&(this.hasLeader=!1,this.isLeader=!1),this.isDead=!0,h(this,"death")}}},4632:(i,e,s)=>{s(8698),Object.defineProperty(e,"__esModule",{value:!0}),e.chooseMethod=function(d){var b=[].concat(d.methods,g).filter(Boolean);if(d.type){if(d.type==="simulate")return h.SimulateMethod;var _=b.find(function($){return $.type===d.type});if(_)return _;throw new Error("method-type "+d.type+" not found")}d.webWorkerSupport||(b=b.filter(function($){return $.type!=="idb"}));var j=b.find(function($){return $.canBeUsed()});if(j)return j;throw new Error("No usable method found in "+JSON.stringify(g.map(function($){return $.type})))};var o=s(6115),a=s(9122),c=s(4924),h=s(1574),g=[o.NativeMethod,a.IndexedDBMethod,c.LocalstorageMethod]},9122:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TRANSACTION_SETTINGS=e.IndexedDBMethod=void 0,e.averageResponseTime=yt,e.canBeUsed=pt,e.cleanOldMessages=st,e.close=ot,e.commitIndexedDBTransaction=_,e.create=rt,e.createDatabase=j,e.getAllMessages=function(xt){var wt=xt.transaction(g,"readonly",d),vt=wt.objectStore(g),ft=[];return new Promise(function(lt){vt.openCursor().onsuccess=function(dt){var bt=dt.target.result;bt?(ft.push(bt.value),bt.continue()):(_(wt),lt(ft))}})},e.getIdb=b,e.getMessagesHigherThan=_e,e.getOldMessages=tt,e.microSeconds=void 0,e.onMessage=ht,e.postMessage=ut,e.removeMessagesById=et,e.type=void 0,e.writeMessage=$;var o=s(6202),a=s(2151),c=s(423),h=o.microSeconds;e.microSeconds=h;var g="messages",d={durability:"relaxed"};function b(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(window.mozIndexedDB!==void 0)return window.mozIndexedDB;if(window.webkitIndexedDB!==void 0)return window.webkitIndexedDB;if(window.msIndexedDB!==void 0)return window.msIndexedDB}return!1}function _(xt){xt.commit&&xt.commit()}function j(xt){var wt="pubkey.broadcast-channel-0-"+xt,vt=b().open(wt);return vt.onupgradeneeded=function(ft){ft.target.result.createObjectStore(g,{keyPath:"id",autoIncrement:!0})},new Promise(function(ft,lt){vt.onerror=function(dt){return lt(dt)},vt.onsuccess=function(){ft(vt.result)}})}function $(xt,wt,vt){var ft={uuid:wt,time:new Date().getTime(),data:vt},lt=xt.transaction([g],"readwrite",d);return new Promise(function(dt,bt){lt.oncomplete=function(){return dt()},lt.onerror=function(at){return bt(at)},lt.objectStore(g).add(ft),_(lt)})}function _e(xt,wt){var vt=xt.transaction(g,"readonly",d),ft=vt.objectStore(g),lt=[],dt=IDBKeyRange.bound(wt+1,1/0);if(ft.getAll){var bt=ft.getAll(dt);return new Promise(function(at,ct){bt.onerror=function(mt){return ct(mt)},bt.onsuccess=function(mt){at(mt.target.result)}})}return new Promise(function(at,ct){var mt=function(){try{return dt=IDBKeyRange.bound(wt+1,1/0),ft.openCursor(dt)}catch{return ft.openCursor()}}();mt.onerror=function(Et){return ct(Et)},mt.onsuccess=function(Et){var jt=Et.target.result;jt?jt.value.idxt.lastCursorId&&(xt.lastCursorId=ft.id),ft}).filter(function(ft){return function(lt,dt){return!(lt.uuid===dt.uuid||dt.eMIs.has(lt.id)||lt.data.time{Object.defineProperty(e,"__esModule",{value:!0}),e.LocalstorageMethod=void 0,e.addStorageEventListener=j,e.averageResponseTime=rt,e.canBeUsed=st,e.close=et,e.create=_e,e.getLocalStorage=d,e.microSeconds=void 0,e.onMessage=tt,e.postMessage=_,e.removeStorageEventListener=$,e.storageKey=b,e.type=void 0;var o=s(2151),a=s(423),c=s(6202),h=c.microSeconds;e.microSeconds=h;var g="localstorage";function d(){var it;if(typeof window>"u")return null;try{it=window.localStorage,it=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return it}function b(it){return"pubkey.broadcastChannel-"+it}function _(it,ot){return new Promise(function(ut){(0,c.sleep)().then(function(){var ht=b(it.channelName),pt={token:(0,c.randomToken)(),time:new Date().getTime(),data:ot,uuid:it.uuid},yt=JSON.stringify(pt);d().setItem(ht,yt);var gt=document.createEvent("Event");gt.initEvent("storage",!0,!0),gt.key=ht,gt.newValue=yt,window.dispatchEvent(gt),ut()})})}function j(it,ot){var ut=b(it),ht=function(pt){pt.key===ut&&ot(JSON.parse(pt.newValue))};return window.addEventListener("storage",ht),ht}function $(it){window.removeEventListener("storage",it)}function _e(it,ot){if(ot=(0,a.fillOptionsWithDefaults)(ot),!st())throw new Error("BroadcastChannel: localstorage cannot be used");var ut=(0,c.randomToken)(),ht=new o.ObliviousSet(ot.localstorage.removeTimeout),pt={channelName:it,uuid:ut,eMIs:ht};return pt.listener=j(it,function(yt){pt.messagesCallback&&yt.uuid!==ut&&yt.token&&!ht.has(yt.token)&&(yt.data.time&&yt.data.time{Object.defineProperty(e,"__esModule",{value:!0}),e.NativeMethod=void 0,e.averageResponseTime=j,e.canBeUsed=_,e.close=g,e.create=h,e.microSeconds=void 0,e.onMessage=b,e.postMessage=d,e.type=void 0;var o=s(6202),a=o.microSeconds;e.microSeconds=a;var c="native";function h(_e){var et={messagesCallback:null,bc:new BroadcastChannel(_e),subFns:[]};return et.bc.onmessage=function(tt){et.messagesCallback&&et.messagesCallback(tt.data)},et}function g(_e){_e.bc.close(),_e.subFns=[]}function d(_e,et){try{return _e.bc.postMessage(et,!1),o.PROMISE_RESOLVED_VOID}catch(tt){return Promise.reject(tt)}}function b(_e,et){_e.messagesCallback=et}function _(){if(typeof window>"u")return!1;if(typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}return!1}function j(){return 150}e.type=c;var $={create:h,close:g,onMessage:b,postMessage:d,canBeUsed:_,type:c,averageResponseTime:j,microSeconds:a};e.NativeMethod=$},1574:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SimulateMethod=void 0,e.averageResponseTime=j,e.canBeUsed=_,e.close=g,e.create=h,e.microSeconds=void 0,e.onMessage=b,e.postMessage=d,e.type=void 0;var o=s(6202).microSeconds;e.microSeconds=o;var a="simulate";e.type=a;var c=new Set;function h(_e){var et={name:_e,messagesCallback:null};return c.add(et),et}function g(_e){c.delete(_e)}function d(_e,et){return new Promise(function(tt){return setTimeout(function(){Array.from(c).filter(function(st){return st.name===_e.name}).filter(function(st){return st!==_e}).filter(function(st){return!!st.messagesCallback}).forEach(function(st){return st.messagesCallback(et)}),tt()},5)})}function b(_e,et){_e.messagesCallback=et}function _(){return!0}function j(){return 5}var $={create:h,close:g,onMessage:b,postMessage:d,canBeUsed:_,type:a,averageResponseTime:j,microSeconds:o};e.SimulateMethod=$},423:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fillOptionsWithDefaults=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=JSON.parse(JSON.stringify(s));return o.webWorkerSupport===void 0&&(o.webWorkerSupport=!0),o.idb||(o.idb={}),o.idb.ttl||(o.idb.ttl=45e3),o.idb.fallbackInterval||(o.idb.fallbackInterval=150),s.idb&&typeof s.idb.onclose=="function"&&(o.idb.onclose=s.idb.onclose),o.localstorage||(o.localstorage={}),o.localstorage.removeTimeout||(o.localstorage.removeTimeout=6e4),s.methods&&(o.methods=s.methods),o.node||(o.node={}),o.node.ttl||(o.node.ttl=12e4),o.node.maxParallelWrites||(o.node.maxParallelWrites=2048),o.node.useFastPath===void 0&&(o.node.useFastPath=!0),o}},6202:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PROMISE_RESOLVED_VOID=e.PROMISE_RESOLVED_TRUE=e.PROMISE_RESOLVED_FALSE=void 0,e.isPromise=function(g){return g&&typeof g.then=="function"},e.microSeconds=function(){var g=new Date().getTime();return g===c?1e3*g+ ++h:(c=g,h=0,1e3*g)},e.randomInt=function(g,d){return Math.floor(Math.random()*(d-g+1)+g)},e.randomToken=function(){return Math.random().toString(36).substring(2)},e.sleep=function(g,d){return g||(g=0),new Promise(function(b){return setTimeout(function(){return b(d)},g)})};var s=Promise.resolve(!1);e.PROMISE_RESOLVED_FALSE=s;var o=Promise.resolve(!0);e.PROMISE_RESOLVED_TRUE=o;var a=Promise.resolve();e.PROMISE_RESOLVED_VOID=a;var c=0,h=0},1924:(i,e,s)=>{var o=s(210),a=s(5559),c=a(o("String.prototype.indexOf"));i.exports=function(h,g){var d=o(h,!!g);return typeof d=="function"&&c(h,".prototype.")>-1?a(d):d}},5559:(i,e,s)=>{var o=s(8612),a=s(210),c=a("%Function.prototype.apply%"),h=a("%Function.prototype.call%"),g=a("%Reflect.apply%",!0)||o.call(h,c),d=a("%Object.getOwnPropertyDescriptor%",!0),b=a("%Object.defineProperty%",!0),_=a("%Math.max%");if(b)try{b({},"a",{value:1})}catch{b=null}i.exports=function($){var _e=g(o,h,arguments);if(d&&b){var et=d(_e,"length");et.configurable&&b(_e,"length",{value:1+_(0,$.length-(arguments.length-1))})}return _e};var j=function(){return g(o,c,arguments)};b?b(i.exports,"apply",{value:j}):i.exports.apply=j},5415:(i,e,s)=>{s.r(e),s.d(e,{default:()=>g});var o=s(8081),a=s.n(o),c=s(3645),h=s.n(c)()(a());h.push([i.id,'*{box-sizing:border-box}.bf-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;z-index:var(--bf-z-index, 9999);background:var(--bf-backdrop-bg, rgba(0, 0, 0, 0.5))}.bf-modal{position:fixed;left:50%;top:50%;z-index:calc(var(--bf-z-index, 9999) + 1);width:500px;max-width:calc(100% - 32px);height:400px;max-height:calc(100% - 64px);transform:translate(-50%, -50%);box-shadow:var(--bf-modal-shadow, 0px 4px 12px 0px rgba(0, 0, 0, 0.25));border-radius:var(--bf-border-radius, 4px);background:#fff}.bf-modal *{font-family:var(--bf-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");outline:none;font-weight:normal;color:var(--bf-color, #222)}.bf-modal__title{margin:0 0 16px;width:calc(100% - 24px);font-weight:bold;line-height:1.3;font-family:var(--bf-font-heading, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:18px}.bf-modal__hint{margin:-8px 0 20px;line-height:1.25}.bf-modal__hint--hidden{display:none}.bf-modal__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-y:auto;display:flex;flex-direction:column;padding:24px}.bf-modal__close{position:absolute;z-index:1;top:0px;right:0px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:0;background:none;padding:0;font-size:20px;cursor:pointer}.bf-modal__close:active{transform:scale(0.85)}.bf-modal__subject,.bf-modal__feedback{margin-bottom:16px;font-size:16px;padding:8px;border:var(--bf-input-border, 1px solid #ccc);border-radius:var(--bf-border-radius, 4px)}.bf-modal__subject::placeholder,.bf-modal__feedback::placeholder{color:var(--bf-placeholder-color, #757575)}.bf-modal__subject{min-height:32px}.bf-modal__feedback{flex-grow:1;resize:none;min-height:64px}.bf-modal__submit{width:100%;background-color:var(--bf-submit-bg, #ff5060);box-shadow:var(--bf-submit-shadow, 0 2px 0 0 #a93e48);border:0;border-radius:var(--bf-border-radius, 4px);padding:8px 0;color:var(--bf-submit-color, #fff);font-size:18px;cursor:pointer}.bf-modal__submit:active{transform:translateY(2px);box-shadow:none}',""]);const g=h},3645:i=>{i.exports=function(e){var s=[];return s.toString=function(){return this.map(function(o){var a="",c=o[5]!==void 0;return o[4]&&(a+="@supports (".concat(o[4],") {")),o[2]&&(a+="@media ".concat(o[2]," {")),c&&(a+="@layer".concat(o[5].length>0?" ".concat(o[5]):""," {")),a+=e(o),c&&(a+="}"),o[2]&&(a+="}"),o[4]&&(a+="}"),a}).join("")},s.i=function(o,a,c,h,g){typeof o=="string"&&(o=[[null,o,void 0]]);var d={};if(c)for(var b=0;b0?" ".concat($[5]):""," {").concat($[1],"}")),$[5]=g),a&&($[2]&&($[1]="@media ".concat($[2]," {").concat($[1],"}")),$[2]=a),h&&($[4]?($[1]="@supports (".concat($[4],") {").concat($[1],"}"),$[4]=h):$[4]="".concat(h)),s.push($))}},s}},8081:i=>{i.exports=function(e){return e[1]}},9180:function(i,e,s){var o,a,c;(function(h,g){a=[s(9829)],(c=typeof(o=function(d){var b=/(^|@)\S+:\d+/,_=/^\s*at .*(\S+:\d+|\(native\))/m,j=/^(eval@)?(\[native code])?$/;return{parse:function($){if($.stacktrace!==void 0||$["opera#sourceloc"]!==void 0)return this.parseOpera($);if($.stack&&$.stack.match(_))return this.parseV8OrIE($);if($.stack)return this.parseFFOrSafari($);throw new Error("Cannot parse given Error object")},extractLocation:function($){if($.indexOf(":")===-1)return[$];var _e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec($.replace(/[()]/g,""));return[_e[1],_e[2]||void 0,_e[3]||void 0]},parseV8OrIE:function($){return $.stack.split(` -`).filter(function(_e){return!!_e.match(_)},this).map(function(_e){_e.indexOf("(eval ")>-1&&(_e=_e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var et=_e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),tt=et.match(/ (\(.+\)$)/);et=tt?et.replace(tt[0],""):et;var st=this.extractLocation(tt?tt[1]:et),rt=tt&&et||void 0,nt=["eval",""].indexOf(st[0])>-1?void 0:st[0];return new d({functionName:rt,fileName:nt,lineNumber:st[1],columnNumber:st[2],source:_e})},this)},parseFFOrSafari:function($){return $.stack.split(` -`).filter(function(_e){return!_e.match(j)},this).map(function(_e){if(_e.indexOf(" > eval")>-1&&(_e=_e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),_e.indexOf("@")===-1&&_e.indexOf(":")===-1)return new d({functionName:_e});var et=/((.*".+"[^@]*)?[^@]*)(?:@)/,tt=_e.match(et),st=tt&&tt[1]?tt[1]:void 0,rt=this.extractLocation(_e.replace(et,""));return new d({functionName:st,fileName:rt[0],lineNumber:rt[1],columnNumber:rt[2],source:_e})},this)},parseOpera:function($){return!$.stacktrace||$.message.indexOf(` + */function _extends(){return _extends=Object.assign?Object.assign.bind():function(i){for(var e=1;e=0)&&(s[a]=i[a]);return s}function isModifiedEvent(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function shouldProcessLinkClick(i,e){return i.button===0&&(!e||e==="_self")&&!isModifiedEvent(i)}const _excluded=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],_excluded2=["aria-current","caseSensitive","className","end","style","to","children"];function createHashRouter(i,e){return createRouter({basename:e==null?void 0:e.basename,future:_extends({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:createHashHistory({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||parseHydrationData(),routes:i,mapRouteProperties}).initialize()}function parseHydrationData(){var i;let e=(i=window)==null?void 0:i.__staticRouterHydrationData;return e&&e.errors&&(e=_extends({},e,{errors:deserializeErrors(e.errors)})),e}function deserializeErrors(i){if(!i)return null;let e=Object.entries(i),s={};for(let[o,a]of e)if(a&&a.__type==="RouteErrorResponse")s[o]=new ErrorResponse(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){let c=new Error(a.message);c.stack="",s[o]=c}else s[o]=a;return s}const isBrowser=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function(e,s){let{onClick:o,relative:a,reloadDocument:c,replace:h,state:g,target:d,to:b,preventScrollReset:_}=e,j=_objectWithoutPropertiesLoose(e,_excluded),{basename:$}=reactExports.useContext(NavigationContext),_e,et=!1;if(typeof b=="string"&&ABSOLUTE_URL_REGEX.test(b)&&(_e=b,isBrowser))try{let rt=new URL(window.location.href),it=b.startsWith("//")?new URL(rt.protocol+b):new URL(b),ot=stripBasename(it.pathname,$);it.origin===rt.origin&&ot!=null?b=ot+it.search+it.hash:et=!0}catch{}let tt=useHref(b,{relative:a}),st=useLinkClickHandler(b,{replace:h,state:g,target:d,preventScrollReset:_,relative:a});function nt(rt){o&&o(rt),rt.defaultPrevented||st(rt)}return reactExports.createElement("a",_extends({},j,{href:_e||tt,onClick:et||c?o:nt,ref:s,target:d}))}),NavLink=reactExports.forwardRef(function(e,s){let{"aria-current":o="page",caseSensitive:a=!1,className:c="",end:h=!1,style:g,to:d,children:b}=e,_=_objectWithoutPropertiesLoose(e,_excluded2),j=useResolvedPath(d,{relative:_.relative}),$=useLocation(),_e=reactExports.useContext(DataRouterStateContext),{navigator:et}=reactExports.useContext(NavigationContext),tt=et.encodeLocation?et.encodeLocation(j).pathname:j.pathname,st=$.pathname,nt=_e&&_e.navigation&&_e.navigation.location?_e.navigation.location.pathname:null;a||(st=st.toLowerCase(),nt=nt?nt.toLowerCase():null,tt=tt.toLowerCase());let rt=st===tt||!h&&st.startsWith(tt)&&st.charAt(tt.length)==="/",it=nt!=null&&(nt===tt||!h&&nt.startsWith(tt)&&nt.charAt(tt.length)==="/"),ot=rt?o:void 0,ut;typeof c=="function"?ut=c({isActive:rt,isPending:it}):ut=[c,rt?"active":null,it?"pending":null].filter(Boolean).join(" ");let ht=typeof g=="function"?g({isActive:rt,isPending:it}):g;return reactExports.createElement(Link,_extends({},_,{"aria-current":ot,className:ut,ref:s,style:ht,to:d}),typeof b=="function"?b({isActive:rt,isPending:it}):b)});var DataRouterHook;(function(i){i.UseScrollRestoration="useScrollRestoration",i.UseSubmit="useSubmit",i.UseSubmitFetcher="useSubmitFetcher",i.UseFetcher="useFetcher"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(i){i.UseFetchers="useFetchers",i.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(i,e){let{target:s,replace:o,state:a,preventScrollReset:c,relative:h}=e===void 0?{}:e,g=useNavigate(),d=useLocation(),b=useResolvedPath(i,{relative:h});return reactExports.useCallback(_=>{if(shouldProcessLinkClick(_,s)){_.preventDefault();let j=o!==void 0?o:createPath(d)===createPath(b);g(i,{replace:j,state:a,preventScrollReset:c,relative:h})}},[d,g,b,o,a,s,i,c,h])}var lib={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(module,exports){(function(i,e){module.exports=e()})(self,()=>(()=>{var __webpack_modules__={7496:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},7431:function(i,e,s){var o=this&&this.__createBinding||(Object.create?function(c,h,g,d){d===void 0&&(d=g);var b=Object.getOwnPropertyDescriptor(h,g);b&&!("get"in b?!h.__esModule:b.writable||b.configurable)||(b={enumerable:!0,get:function(){return h[g]}}),Object.defineProperty(c,d,b)}:function(c,h,g,d){d===void 0&&(d=g),c[d]=h[g]}),a=this&&this.__exportStar||function(c,h){for(var g in c)g==="default"||Object.prototype.hasOwnProperty.call(h,g)||o(h,c,g)};Object.defineProperty(e,"__esModule",{value:!0}),a(s(7496),e),a(s(8704),e),a(s(4596),e),a(s(8836),e),a(s(6758),e),a(s(2922),e),a(s(8287),e),a(s(5484),e),a(s(9929),e)},8704:(i,e)=>{var s;Object.defineProperty(e,"__esModule",{value:!0}),e.LOG_LEVELS=e.LogLevel=void 0,function(o){o[o.Debug=0]="Debug",o[o.Warning=1]="Warning",o[o.Error=2]="Error",o[o.Trace=3]="Trace",o[o.Info=4]="Info",o[o.Fatal=5]="Fatal"}(s=e.LogLevel||(e.LogLevel={})),e.LOG_LEVELS=[s.Debug,s.Warning,s.Error,s.Trace,s.Info,s.Fatal]},4596:function(i,e){var s=this&&this.__assign||function(){return s=Object.assign||function(a){for(var c,h=1,g=arguments.length;h{Object.defineProperty(e,"__esModule",{value:!0}),e.PrintToConsole=void 0;var o=s(9539),a=s(8704),c=function(){function h(g){this.console=g,this.printToConsole=!1}return h.prototype.init=function(g){this.printToConsole=g},h.prototype.error=function(){for(var g,d=[],b=0;b{Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterErrorHandler=void 0;var s=function(){function o(a){this.window=a,this.rejectionsMap=new Map}return o.prototype.init=function(a){var c=this;this.bugfender=a,this.window.addEventListener("error",function(h){var g=h.message,d=h.lineno,b=h.filename,_=h.error;c.logError(g,b,d,_)}),this.window.addEventListener("unhandledrejection",function(h){var g=setTimeout(function(){c.logError("Potentially unhandled promise",void 0,void 0,h.reason)},1);c.rejectionsMap.set(h.promise,g),h.preventDefault()}),this.window.addEventListener("rejectionhandled",function(h){clearTimeout(c.rejectionsMap.get(h.promise)),c.rejectionsMap.delete(h.promise)})},o.prototype.logError=function(a,c,h,g){var d;g&&g.stack&&(d=g.stack),typeof a=="string"&&this.bugfender.sendCrash(a,["Error: ".concat(a),"URL: ".concat(c??"N/A"),"Line: ".concat(h??"N/A"),"Stack: ".concat(d??"N/A")].join(` +`))},o}();e.RegisterErrorHandler=s},2922:function(i,e,s){var o=this&&this.__spreadArray||function(g,d,b){if(b||arguments.length===2)for(var _,j=0,$=d.length;j<$;j++)!_&&j in d||(_||(_=Array.prototype.slice.call(d,0,j)),_[j]=d[j]);return g.concat(_||Array.prototype.slice.call(d))};Object.defineProperty(e,"__esModule",{value:!0}),e.formatLogEntryText=e.format=void 0;var a=s(9539),c=s(8287);function h(g){var d=g.slice(1),b=g[0];try{b=(0,c.mapToString)(b)}catch{b=(0,a.format)(b)}return d.length>0?a.format.apply(void 0,o([b],d,!1)):b}e.format=h,e.formatLogEntryText=function(g){return typeof g=="string"?g:function(d){return Array.isArray(d)}(g)?h(g):""}},8287:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mapToString=e.mapToNumber=void 0,e.mapToNumber=function(s){var o=Number(s);if(isNaN(o))throw new Error("Can't be casted to number");return o},e.mapToString=function(s){if(["string","symbol","bigint","function"].includes(typeof s)||s instanceof Error)try{return String(s)}catch{return JSON.stringify(s)}else try{return JSON.stringify(s)}catch{return String(s)}}},9929:function(i,e){var s=this&&this.__assign||function(){return s=Object.assign||function(c){for(var h,g=1,d=arguments.length;g{Object.defineProperty(e,"__esModule",{value:!0})},6177:function(i,e,s){i=s.nmd(i),(function(){var o,a,c,h;for(c=(i!==null?i.exports:void 0)||(window.Base58={}),o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",a={},h=0;h>8,d[j]&=255,++j;for(;_;)d.push(255&_),_>>=8;h++}for(h=0;g[h]==="1"&&h0&&b[1]||""},h.getSecondMatch=function(g,d){var b=d.match(g);return b&&b.length>1&&b[2]||""},h.matchAndReturnConst=function(g,d,b){if(g.test(d))return b},h.getWindowsVersionName=function(g){switch(g){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},h.getMacOSVersionName=function(g){var d=g.split(".").splice(0,2).map(function(b){return parseInt(b,10)||0});if(d.push(0),d[0]===10)switch(d[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},h.getAndroidVersionName=function(g){var d=g.split(".").splice(0,2).map(function(b){return parseInt(b,10)||0});if(d.push(0),!(d[0]===1&&d[1]<5))return d[0]===1&&d[1]<6?"Cupcake":d[0]===1&&d[1]>=6?"Donut":d[0]===2&&d[1]<2?"Eclair":d[0]===2&&d[1]===2?"Froyo":d[0]===2&&d[1]>2?"Gingerbread":d[0]===3?"Honeycomb":d[0]===4&&d[1]<1?"Ice Cream Sandwich":d[0]===4&&d[1]<4?"Jelly Bean":d[0]===4&&d[1]>=4?"KitKat":d[0]===5?"Lollipop":d[0]===6?"Marshmallow":d[0]===7?"Nougat":d[0]===8?"Oreo":d[0]===9?"Pie":void 0},h.getVersionPrecision=function(g){return g.split(".").length},h.compareVersions=function(g,d,b){b===void 0&&(b=!1);var _=h.getVersionPrecision(g),j=h.getVersionPrecision(d),$=Math.max(_,j),_e=0,et=h.map([g,d],function(tt){var st=$-h.getVersionPrecision(tt),nt=tt+new Array(st+1).join(".0");return h.map(nt.split("."),function(rt){return new Array(20-rt.length).join("0")+rt}).reverse()});for(b&&(_e=$-Math.min(_,j)),$-=1;$>=_e;){if(et[0][$]>et[1][$])return 1;if(et[0][$]===et[1][$]){if($===_e)return 0;$-=1}else if(et[0][$]1?j-1:0),_e=1;_e0){var it=Object.keys(tt),ot=d.default.find(it,function(xt){return et.isOS(xt)});if(ot){var ut=this.satisfies(tt[ot]);if(ut!==void 0)return ut}var ht=d.default.find(it,function(xt){return et.isPlatform(xt)});if(ht){var pt=this.satisfies(tt[ht]);if(pt!==void 0)return pt}}if(rt>0){var yt=Object.keys(nt),gt=d.default.find(yt,function(xt){return et.isBrowser(xt,!0)});if(gt!==void 0)return this.compareVersion(nt[gt])}},$.isBrowser=function(_e,et){et===void 0&&(et=!1);var tt=this.getBrowserName().toLowerCase(),st=_e.toLowerCase(),nt=d.default.getBrowserTypeByAlias(st);return et&&nt&&(st=nt.toLowerCase()),st===tt},$.compareVersion=function(_e){var et=[0],tt=_e,st=!1,nt=this.getBrowserVersion();if(typeof nt=="string")return _e[0]===">"||_e[0]==="<"?(tt=_e.substr(1),_e[1]==="="?(st=!0,tt=_e.substr(2)):et=[],_e[0]===">"?et.push(1):et.push(-1)):_e[0]==="="?tt=_e.substr(1):_e[0]==="~"&&(st=!0,tt=_e.substr(1)),et.indexOf(d.default.compareVersions(nt,tt,st))>-1},$.isOS=function(_e){return this.getOSName(!0)===String(_e).toLowerCase()},$.isPlatform=function(_e){return this.getPlatformType(!0)===String(_e).toLowerCase()},$.isEngine=function(_e){return this.getEngineName(!0)===String(_e).toLowerCase()},$.is=function(_e,et){return et===void 0&&(et=!1),this.isBrowser(_e,et)||this.isOS(_e)||this.isPlatform(_e)},$.some=function(_e){var et=this;return _e===void 0&&(_e=[]),_e.some(function(tt){return et.is(tt)})},j}();s.default=_,e.exports=s.default},92:function(e,s,o){s.__esModule=!0,s.default=void 0;var a,c=(a=o(17))&&a.__esModule?a:{default:a},h=/version\/(\d+(\.?_?\d+)+)/i,g=[{test:[/googlebot/i],describe:function(d){var b={name:"Googlebot"},_=c.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/opera/i],describe:function(d){var b={name:"Opera"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/opr\/|opios/i],describe:function(d){var b={name:"Opera"},_=c.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/SamsungBrowser/i],describe:function(d){var b={name:"Samsung Internet for Android"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/Whale/i],describe:function(d){var b={name:"NAVER Whale Browser"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/MZBrowser/i],describe:function(d){var b={name:"MZ Browser"},_=c.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/focus/i],describe:function(d){var b={name:"Focus"},_=c.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/swing/i],describe:function(d){var b={name:"Swing"},_=c.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/coast/i],describe:function(d){var b={name:"Opera Coast"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(d){var b={name:"Opera Touch"},_=c.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/yabrowser/i],describe:function(d){var b={name:"Yandex Browser"},_=c.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/ucbrowser/i],describe:function(d){var b={name:"UC Browser"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/Maxthon|mxios/i],describe:function(d){var b={name:"Maxthon"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/epiphany/i],describe:function(d){var b={name:"Epiphany"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/puffin/i],describe:function(d){var b={name:"Puffin"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/sleipnir/i],describe:function(d){var b={name:"Sleipnir"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/k-meleon/i],describe:function(d){var b={name:"K-Meleon"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/micromessenger/i],describe:function(d){var b={name:"WeChat"},_=c.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/qqbrowser/i],describe:function(d){var b={name:/qqbrowserlite/i.test(d)?"QQ Browser Lite":"QQ Browser"},_=c.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/msie|trident/i],describe:function(d){var b={name:"Internet Explorer"},_=c.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/\sedg\//i],describe:function(d){var b={name:"Microsoft Edge"},_=c.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/edg([ea]|ios)/i],describe:function(d){var b={name:"Microsoft Edge"},_=c.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/vivaldi/i],describe:function(d){var b={name:"Vivaldi"},_=c.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/seamonkey/i],describe:function(d){var b={name:"SeaMonkey"},_=c.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/sailfish/i],describe:function(d){var b={name:"Sailfish"},_=c.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,d);return _&&(b.version=_),b}},{test:[/silk/i],describe:function(d){var b={name:"Amazon Silk"},_=c.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/phantom/i],describe:function(d){var b={name:"PhantomJS"},_=c.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/slimerjs/i],describe:function(d){var b={name:"SlimerJS"},_=c.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(d){var b={name:"BlackBerry"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/(web|hpw)[o0]s/i],describe:function(d){var b={name:"WebOS Browser"},_=c.default.getFirstMatch(h,d)||c.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/bada/i],describe:function(d){var b={name:"Bada"},_=c.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/tizen/i],describe:function(d){var b={name:"Tizen"},_=c.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/qupzilla/i],describe:function(d){var b={name:"QupZilla"},_=c.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/firefox|iceweasel|fxios/i],describe:function(d){var b={name:"Firefox"},_=c.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/electron/i],describe:function(d){var b={name:"Electron"},_=c.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/MiuiBrowser/i],describe:function(d){var b={name:"Miui"},_=c.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/chromium/i],describe:function(d){var b={name:"Chromium"},_=c.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,d)||c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/chrome|crios|crmo/i],describe:function(d){var b={name:"Chrome"},_=c.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/GSA/i],describe:function(d){var b={name:"Google Search"},_=c.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:function(d){var b=!d.test(/like android/i),_=d.test(/android/i);return b&&_},describe:function(d){var b={name:"Android Browser"},_=c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/playstation 4/i],describe:function(d){var b={name:"PlayStation 4"},_=c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/safari|applewebkit/i],describe:function(d){var b={name:"Safari"},_=c.default.getFirstMatch(h,d);return _&&(b.version=_),b}},{test:[/.*/i],describe:function(d){var b=d.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:c.default.getFirstMatch(b,d),version:c.default.getSecondMatch(b,d)}}}];s.default=g,e.exports=s.default},93:function(e,s,o){s.__esModule=!0,s.default=void 0;var a,c=(a=o(17))&&a.__esModule?a:{default:a},h=o(18),g=[{test:[/Roku\/DVP/],describe:function(d){var b=c.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,d);return{name:h.OS_MAP.Roku,version:b}}},{test:[/windows phone/i],describe:function(d){var b=c.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,d);return{name:h.OS_MAP.WindowsPhone,version:b}}},{test:[/windows /i],describe:function(d){var b=c.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,d),_=c.default.getWindowsVersionName(b);return{name:h.OS_MAP.Windows,version:b,versionName:_}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(d){var b={name:h.OS_MAP.iOS},_=c.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,d);return _&&(b.version=_),b}},{test:[/macintosh/i],describe:function(d){var b=c.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,d).replace(/[_\s]/g,"."),_=c.default.getMacOSVersionName(b),j={name:h.OS_MAP.MacOS,version:b};return _&&(j.versionName=_),j}},{test:[/(ipod|iphone|ipad)/i],describe:function(d){var b=c.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,d).replace(/[_\s]/g,".");return{name:h.OS_MAP.iOS,version:b}}},{test:function(d){var b=!d.test(/like android/i),_=d.test(/android/i);return b&&_},describe:function(d){var b=c.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,d),_=c.default.getAndroidVersionName(b),j={name:h.OS_MAP.Android,version:b};return _&&(j.versionName=_),j}},{test:[/(web|hpw)[o0]s/i],describe:function(d){var b=c.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,d),_={name:h.OS_MAP.WebOS};return b&&b.length&&(_.version=b),_}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(d){var b=c.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,d)||c.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,d)||c.default.getFirstMatch(/\bbb(\d+)/i,d);return{name:h.OS_MAP.BlackBerry,version:b}}},{test:[/bada/i],describe:function(d){var b=c.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,d);return{name:h.OS_MAP.Bada,version:b}}},{test:[/tizen/i],describe:function(d){var b=c.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,d);return{name:h.OS_MAP.Tizen,version:b}}},{test:[/linux/i],describe:function(){return{name:h.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:h.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(d){var b=c.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,d);return{name:h.OS_MAP.PlayStation4,version:b}}}];s.default=g,e.exports=s.default},94:function(e,s,o){s.__esModule=!0,s.default=void 0;var a,c=(a=o(17))&&a.__esModule?a:{default:a},h=o(18),g=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(d){var b=c.default.getFirstMatch(/(can-l01)/i,d)&&"Nova",_={type:h.PLATFORMS_MAP.mobile,vendor:"Huawei"};return b&&(_.model=b),_}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:h.PLATFORMS_MAP.tablet}}},{test:function(d){var b=d.test(/ipod|iphone/i),_=d.test(/like (ipod|iphone)/i);return b&&!_},describe:function(d){var b=c.default.getFirstMatch(/(ipod|iphone)/i,d);return{type:h.PLATFORMS_MAP.mobile,vendor:"Apple",model:b}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:function(d){return d.getBrowserName(!0)==="blackberry"},describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(d){return d.getBrowserName(!0)==="bada"},describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:function(d){return d.getBrowserName()==="windows phone"},describe:function(){return{type:h.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(d){var b=Number(String(d.getOSVersion()).split(".")[0]);return d.getOSName(!0)==="android"&&b>=3},describe:function(){return{type:h.PLATFORMS_MAP.tablet}}},{test:function(d){return d.getOSName(!0)==="android"},describe:function(){return{type:h.PLATFORMS_MAP.mobile}}},{test:function(d){return d.getOSName(!0)==="macos"},describe:function(){return{type:h.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(d){return d.getOSName(!0)==="windows"},describe:function(){return{type:h.PLATFORMS_MAP.desktop}}},{test:function(d){return d.getOSName(!0)==="linux"},describe:function(){return{type:h.PLATFORMS_MAP.desktop}}},{test:function(d){return d.getOSName(!0)==="playstation 4"},describe:function(){return{type:h.PLATFORMS_MAP.tv}}},{test:function(d){return d.getOSName(!0)==="roku"},describe:function(){return{type:h.PLATFORMS_MAP.tv}}}];s.default=g,e.exports=s.default},95:function(e,s,o){s.__esModule=!0,s.default=void 0;var a,c=(a=o(17))&&a.__esModule?a:{default:a},h=o(18),g=[{test:function(d){return d.getBrowserName(!0)==="microsoft edge"},describe:function(d){if(/\sedg\//i.test(d))return{name:h.ENGINE_MAP.Blink};var b=c.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,d);return{name:h.ENGINE_MAP.EdgeHTML,version:b}}},{test:[/trident/i],describe:function(d){var b={name:h.ENGINE_MAP.Trident},_=c.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:function(d){return d.test(/presto/i)},describe:function(d){var b={name:h.ENGINE_MAP.Presto},_=c.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:function(d){var b=d.test(/gecko/i),_=d.test(/like gecko/i);return b&&!_},describe:function(d){var b={name:h.ENGINE_MAP.Gecko},_=c.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:h.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(d){var b={name:h.ENGINE_MAP.WebKit},_=c.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,d);return _&&(b.version=_),b}}];s.default=g,e.exports=s.default}})},8991:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.OPEN_BROADCAST_CHANNELS=e.BroadcastChannel=void 0,e.clearNodeFolder=function(et){et=(0,c.fillOptionsWithDefaults)(et);var tt=(0,a.chooseMethod)(et);return tt.type==="node"?tt.clearNodeFolder().then(function(){return!0}):o.PROMISE_RESOLVED_FALSE},e.enforceOptions=function(et){g=et};var o=s(6202),a=s(4632),c=s(423),h=new Set;e.OPEN_BROADCAST_CHANNELS=h;var g,d=0,b=function(et,tt){var st,nt;this.id=d++,h.add(this),this.name=et,g&&(tt=g),this.options=(0,c.fillOptionsWithDefaults)(tt),this.method=(0,a.chooseMethod)(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,nt=(st=this).method.create(st.name,st.options),(0,o.isPromise)(nt)?(st._prepP=nt,nt.then(function(rt){st._state=rt})):st._state=nt};function _(et,tt,st){var nt={time:et.method.microSeconds(),type:tt,data:st};return(et._prepP?et._prepP:o.PROMISE_RESOLVED_VOID).then(function(){var rt=et.method.postMessage(et._state,nt);return et._uMP.add(rt),rt.catch().then(function(){return et._uMP.delete(rt)}),rt})}function j(et){return et._addEL.message.length>0||et._addEL.internal.length>0}function $(et,tt,st){et._addEL[tt].push(st),function(nt){if(!nt._iL&&j(nt)){var rt=function(ot){nt._addEL[ot.type].forEach(function(ut){var ht=ut.time-1e5;ot.time>=ht&&ut.fn(ot.data)})},it=nt.method.microSeconds();nt._prepP?nt._prepP.then(function(){nt._iL=!0,nt.method.onMessage(nt._state,rt,it)}):(nt._iL=!0,nt.method.onMessage(nt._state,rt,it))}}(et)}function _e(et,tt,st){et._addEL[tt]=et._addEL[tt].filter(function(nt){return nt!==st}),function(nt){if(nt._iL&&!j(nt)){nt._iL=!1;var rt=nt.method.microSeconds();nt.method.onMessage(nt._state,null,rt)}}(et)}e.BroadcastChannel=b,b._pubkey=!0,b.prototype={postMessage:function(et){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(et));return _(this,"message",et)},postInternal:function(et){return _(this,"internal",et)},set onmessage(et){var tt={time:this.method.microSeconds(),fn:et};_e(this,"message",this._onML),et&&typeof et=="function"?(this._onML=tt,$(this,"message",tt)):this._onML=null},addEventListener:function(et,tt){$(this,et,{time:this.method.microSeconds(),fn:tt})},removeEventListener:function(et,tt){_e(this,et,this._addEL[et].find(function(st){return st.fn===tt}))},close:function(){var et=this;if(!this.closed){h.delete(this),this.closed=!0;var tt=this._prepP?this._prepP:o.PROMISE_RESOLVED_VOID;return this._onML=null,this._addEL.message=[],tt.then(function(){return Promise.all(Array.from(et._uMP))}).then(function(){return Promise.all(et._befC.map(function(st){return st()}))}).then(function(){return et.method.close(et._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}}},8437:(i,e,s)=>{var o=s(5585);i.exports={BroadcastChannel:o.BroadcastChannel,createLeaderElection:o.createLeaderElection,clearNodeFolder:o.clearNodeFolder,enforceOptions:o.enforceOptions,beLeader:o.beLeader}},5585:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BroadcastChannel",{enumerable:!0,get:function(){return o.BroadcastChannel}}),Object.defineProperty(e,"OPEN_BROADCAST_CHANNELS",{enumerable:!0,get:function(){return o.OPEN_BROADCAST_CHANNELS}}),Object.defineProperty(e,"beLeader",{enumerable:!0,get:function(){return a.beLeader}}),Object.defineProperty(e,"clearNodeFolder",{enumerable:!0,get:function(){return o.clearNodeFolder}}),Object.defineProperty(e,"createLeaderElection",{enumerable:!0,get:function(){return a.createLeaderElection}}),Object.defineProperty(e,"enforceOptions",{enumerable:!0,get:function(){return o.enforceOptions}});var o=s(8991),a=s(6550)},6550:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.beLeader=g,e.createLeaderElection=function(d,b){if(d._leaderElector)throw new Error("BroadcastChannel already has a leader-elector");b=function(j,$){return j||(j={}),(j=JSON.parse(JSON.stringify(j))).fallbackInterval||(j.fallbackInterval=3e3),j.responseTime||(j.responseTime=$.method.averageResponseTime($.options)),j}(b,d);var _=new c(d,b);return d._befC.push(function(){return _.die()}),d._leaderElector=_,_};var o=s(6202),a=s(4810),c=function(d,b){var _=this;this.broadcastChannel=d,this._options=b,this.isLeader=!1,this.hasLeader=!1,this.isDead=!1,this.token=(0,o.randomToken)(),this._aplQ=o.PROMISE_RESOLVED_VOID,this._aplQC=0,this._unl=[],this._lstns=[],this._dpL=function(){},this._dpLC=!1;var j=function($){$.context==="leader"&&($.action==="death"&&(_.hasLeader=!1),$.action==="tell"&&(_.hasLeader=!0))};this.broadcastChannel.addEventListener("internal",j),this._lstns.push(j)};function h(d,b){var _={context:"leader",action:b,token:d.token};return d.broadcastChannel.postInternal(_)}function g(d){d.isLeader=!0,d.hasLeader=!0;var b=(0,a.add)(function(){return d.die()});d._unl.push(b);var _=function(j){j.context==="leader"&&j.action==="apply"&&h(d,"tell"),j.context!=="leader"||j.action!=="tell"||d._dpLC||(d._dpLC=!0,d._dpL(),h(d,"tell"))};return d.broadcastChannel.addEventListener("internal",_),d._lstns.push(_),h(d,"tell")}c.prototype={applyOnce:function(d){var b=this;return this.isLeader?(0,o.sleep)(0,!0):this.isDead?(0,o.sleep)(0,!1):this._aplQC>1?this._aplQ:(this._aplQC=this._aplQC+1,this._aplQ=this._aplQ.then(function(){return function(){if(b.isLeader)return o.PROMISE_RESOLVED_TRUE;var _,j=!1,$=new Promise(function(tt){_=function(){j=!0,tt()}}),_e=function(tt){tt.context==="leader"&&tt.token!=b.token&&(tt.action==="apply"&&tt.token>b.token&&_(),tt.action==="tell"&&(_(),b.hasLeader=!0))};b.broadcastChannel.addEventListener("internal",_e);var et=d?4*b._options.responseTime:b._options.responseTime;return h(b,"apply").then(function(){return Promise.race([(0,o.sleep)(et),$.then(function(){return Promise.reject(new Error)})])}).then(function(){return h(b,"apply")}).then(function(){return Promise.race([(0,o.sleep)(et),$.then(function(){return Promise.reject(new Error)})])}).catch(function(){}).then(function(){return b.broadcastChannel.removeEventListener("internal",_e),!j&&g(b).then(function(){return!0})})}()}).then(function(){b._aplQC=b._aplQC-1}),this._aplQ.then(function(){return b.isLeader}))},awaitLeadership:function(){return this._aLP||(this._aLP=(d=this).isLeader?o.PROMISE_RESOLVED_VOID:new Promise(function(b){var _=!1;function j(){_||(_=!0,d.broadcastChannel.removeEventListener("internal",$),b(!0))}d.applyOnce().then(function(){d.isLeader&&j()}),function _e(){return(0,o.sleep)(d._options.fallbackInterval).then(function(){if(!d.isDead&&!_)return d.isLeader?void j():d.applyOnce(!0).then(function(){d.isLeader?j():_e()})})}();var $=function(_e){_e.context==="leader"&&_e.action==="death"&&(d.hasLeader=!1,d.applyOnce().then(function(){d.isLeader&&j()}))};d.broadcastChannel.addEventListener("internal",$),d._lstns.push($)})),this._aLP;var d},set onduplicate(d){this._dpL=d},die:function(){var d=this;return this._lstns.forEach(function(b){return d.broadcastChannel.removeEventListener("internal",b)}),this._lstns=[],this._unl.forEach(function(b){return b.remove()}),this._unl=[],this.isLeader&&(this.hasLeader=!1,this.isLeader=!1),this.isDead=!0,h(this,"death")}}},4632:(i,e,s)=>{s(8698),Object.defineProperty(e,"__esModule",{value:!0}),e.chooseMethod=function(d){var b=[].concat(d.methods,g).filter(Boolean);if(d.type){if(d.type==="simulate")return h.SimulateMethod;var _=b.find(function($){return $.type===d.type});if(_)return _;throw new Error("method-type "+d.type+" not found")}d.webWorkerSupport||(b=b.filter(function($){return $.type!=="idb"}));var j=b.find(function($){return $.canBeUsed()});if(j)return j;throw new Error("No usable method found in "+JSON.stringify(g.map(function($){return $.type})))};var o=s(6115),a=s(9122),c=s(4924),h=s(1574),g=[o.NativeMethod,a.IndexedDBMethod,c.LocalstorageMethod]},9122:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TRANSACTION_SETTINGS=e.IndexedDBMethod=void 0,e.averageResponseTime=yt,e.canBeUsed=pt,e.cleanOldMessages=st,e.close=ot,e.commitIndexedDBTransaction=_,e.create=nt,e.createDatabase=j,e.getAllMessages=function(xt){var wt=xt.transaction(g,"readonly",d),vt=wt.objectStore(g),ft=[];return new Promise(function(lt){vt.openCursor().onsuccess=function(dt){var bt=dt.target.result;bt?(ft.push(bt.value),bt.continue()):(_(wt),lt(ft))}})},e.getIdb=b,e.getMessagesHigherThan=_e,e.getOldMessages=tt,e.microSeconds=void 0,e.onMessage=ht,e.postMessage=ut,e.removeMessagesById=et,e.type=void 0,e.writeMessage=$;var o=s(6202),a=s(2151),c=s(423),h=o.microSeconds;e.microSeconds=h;var g="messages",d={durability:"relaxed"};function b(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(window.mozIndexedDB!==void 0)return window.mozIndexedDB;if(window.webkitIndexedDB!==void 0)return window.webkitIndexedDB;if(window.msIndexedDB!==void 0)return window.msIndexedDB}return!1}function _(xt){xt.commit&&xt.commit()}function j(xt){var wt="pubkey.broadcast-channel-0-"+xt,vt=b().open(wt);return vt.onupgradeneeded=function(ft){ft.target.result.createObjectStore(g,{keyPath:"id",autoIncrement:!0})},new Promise(function(ft,lt){vt.onerror=function(dt){return lt(dt)},vt.onsuccess=function(){ft(vt.result)}})}function $(xt,wt,vt){var ft={uuid:wt,time:new Date().getTime(),data:vt},lt=xt.transaction([g],"readwrite",d);return new Promise(function(dt,bt){lt.oncomplete=function(){return dt()},lt.onerror=function(at){return bt(at)},lt.objectStore(g).add(ft),_(lt)})}function _e(xt,wt){var vt=xt.transaction(g,"readonly",d),ft=vt.objectStore(g),lt=[],dt=IDBKeyRange.bound(wt+1,1/0);if(ft.getAll){var bt=ft.getAll(dt);return new Promise(function(at,ct){bt.onerror=function(mt){return ct(mt)},bt.onsuccess=function(mt){at(mt.target.result)}})}return new Promise(function(at,ct){var mt=function(){try{return dt=IDBKeyRange.bound(wt+1,1/0),ft.openCursor(dt)}catch{return ft.openCursor()}}();mt.onerror=function(Et){return ct(Et)},mt.onsuccess=function(Et){var jt=Et.target.result;jt?jt.value.idxt.lastCursorId&&(xt.lastCursorId=ft.id),ft}).filter(function(ft){return function(lt,dt){return!(lt.uuid===dt.uuid||dt.eMIs.has(lt.id)||lt.data.time{Object.defineProperty(e,"__esModule",{value:!0}),e.LocalstorageMethod=void 0,e.addStorageEventListener=j,e.averageResponseTime=nt,e.canBeUsed=st,e.close=et,e.create=_e,e.getLocalStorage=d,e.microSeconds=void 0,e.onMessage=tt,e.postMessage=_,e.removeStorageEventListener=$,e.storageKey=b,e.type=void 0;var o=s(2151),a=s(423),c=s(6202),h=c.microSeconds;e.microSeconds=h;var g="localstorage";function d(){var it;if(typeof window>"u")return null;try{it=window.localStorage,it=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return it}function b(it){return"pubkey.broadcastChannel-"+it}function _(it,ot){return new Promise(function(ut){(0,c.sleep)().then(function(){var ht=b(it.channelName),pt={token:(0,c.randomToken)(),time:new Date().getTime(),data:ot,uuid:it.uuid},yt=JSON.stringify(pt);d().setItem(ht,yt);var gt=document.createEvent("Event");gt.initEvent("storage",!0,!0),gt.key=ht,gt.newValue=yt,window.dispatchEvent(gt),ut()})})}function j(it,ot){var ut=b(it),ht=function(pt){pt.key===ut&&ot(JSON.parse(pt.newValue))};return window.addEventListener("storage",ht),ht}function $(it){window.removeEventListener("storage",it)}function _e(it,ot){if(ot=(0,a.fillOptionsWithDefaults)(ot),!st())throw new Error("BroadcastChannel: localstorage cannot be used");var ut=(0,c.randomToken)(),ht=new o.ObliviousSet(ot.localstorage.removeTimeout),pt={channelName:it,uuid:ut,eMIs:ht};return pt.listener=j(it,function(yt){pt.messagesCallback&&yt.uuid!==ut&&yt.token&&!ht.has(yt.token)&&(yt.data.time&&yt.data.time{Object.defineProperty(e,"__esModule",{value:!0}),e.NativeMethod=void 0,e.averageResponseTime=j,e.canBeUsed=_,e.close=g,e.create=h,e.microSeconds=void 0,e.onMessage=b,e.postMessage=d,e.type=void 0;var o=s(6202),a=o.microSeconds;e.microSeconds=a;var c="native";function h(_e){var et={messagesCallback:null,bc:new BroadcastChannel(_e),subFns:[]};return et.bc.onmessage=function(tt){et.messagesCallback&&et.messagesCallback(tt.data)},et}function g(_e){_e.bc.close(),_e.subFns=[]}function d(_e,et){try{return _e.bc.postMessage(et,!1),o.PROMISE_RESOLVED_VOID}catch(tt){return Promise.reject(tt)}}function b(_e,et){_e.messagesCallback=et}function _(){if(typeof window>"u")return!1;if(typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}return!1}function j(){return 150}e.type=c;var $={create:h,close:g,onMessage:b,postMessage:d,canBeUsed:_,type:c,averageResponseTime:j,microSeconds:a};e.NativeMethod=$},1574:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SimulateMethod=void 0,e.averageResponseTime=j,e.canBeUsed=_,e.close=g,e.create=h,e.microSeconds=void 0,e.onMessage=b,e.postMessage=d,e.type=void 0;var o=s(6202).microSeconds;e.microSeconds=o;var a="simulate";e.type=a;var c=new Set;function h(_e){var et={name:_e,messagesCallback:null};return c.add(et),et}function g(_e){c.delete(_e)}function d(_e,et){return new Promise(function(tt){return setTimeout(function(){Array.from(c).filter(function(st){return st.name===_e.name}).filter(function(st){return st!==_e}).filter(function(st){return!!st.messagesCallback}).forEach(function(st){return st.messagesCallback(et)}),tt()},5)})}function b(_e,et){_e.messagesCallback=et}function _(){return!0}function j(){return 5}var $={create:h,close:g,onMessage:b,postMessage:d,canBeUsed:_,type:a,averageResponseTime:j,microSeconds:o};e.SimulateMethod=$},423:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fillOptionsWithDefaults=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=JSON.parse(JSON.stringify(s));return o.webWorkerSupport===void 0&&(o.webWorkerSupport=!0),o.idb||(o.idb={}),o.idb.ttl||(o.idb.ttl=45e3),o.idb.fallbackInterval||(o.idb.fallbackInterval=150),s.idb&&typeof s.idb.onclose=="function"&&(o.idb.onclose=s.idb.onclose),o.localstorage||(o.localstorage={}),o.localstorage.removeTimeout||(o.localstorage.removeTimeout=6e4),s.methods&&(o.methods=s.methods),o.node||(o.node={}),o.node.ttl||(o.node.ttl=12e4),o.node.maxParallelWrites||(o.node.maxParallelWrites=2048),o.node.useFastPath===void 0&&(o.node.useFastPath=!0),o}},6202:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PROMISE_RESOLVED_VOID=e.PROMISE_RESOLVED_TRUE=e.PROMISE_RESOLVED_FALSE=void 0,e.isPromise=function(g){return g&&typeof g.then=="function"},e.microSeconds=function(){var g=new Date().getTime();return g===c?1e3*g+ ++h:(c=g,h=0,1e3*g)},e.randomInt=function(g,d){return Math.floor(Math.random()*(d-g+1)+g)},e.randomToken=function(){return Math.random().toString(36).substring(2)},e.sleep=function(g,d){return g||(g=0),new Promise(function(b){return setTimeout(function(){return b(d)},g)})};var s=Promise.resolve(!1);e.PROMISE_RESOLVED_FALSE=s;var o=Promise.resolve(!0);e.PROMISE_RESOLVED_TRUE=o;var a=Promise.resolve();e.PROMISE_RESOLVED_VOID=a;var c=0,h=0},1924:(i,e,s)=>{var o=s(210),a=s(5559),c=a(o("String.prototype.indexOf"));i.exports=function(h,g){var d=o(h,!!g);return typeof d=="function"&&c(h,".prototype.")>-1?a(d):d}},5559:(i,e,s)=>{var o=s(8612),a=s(210),c=a("%Function.prototype.apply%"),h=a("%Function.prototype.call%"),g=a("%Reflect.apply%",!0)||o.call(h,c),d=a("%Object.getOwnPropertyDescriptor%",!0),b=a("%Object.defineProperty%",!0),_=a("%Math.max%");if(b)try{b({},"a",{value:1})}catch{b=null}i.exports=function($){var _e=g(o,h,arguments);if(d&&b){var et=d(_e,"length");et.configurable&&b(_e,"length",{value:1+_(0,$.length-(arguments.length-1))})}return _e};var j=function(){return g(o,c,arguments)};b?b(i.exports,"apply",{value:j}):i.exports.apply=j},5415:(i,e,s)=>{s.r(e),s.d(e,{default:()=>g});var o=s(8081),a=s.n(o),c=s(3645),h=s.n(c)()(a());h.push([i.id,'*{box-sizing:border-box}.bf-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;z-index:var(--bf-z-index, 9999);background:var(--bf-backdrop-bg, rgba(0, 0, 0, 0.5))}.bf-modal{position:fixed;left:50%;top:50%;z-index:calc(var(--bf-z-index, 9999) + 1);width:500px;max-width:calc(100% - 32px);height:400px;max-height:calc(100% - 64px);transform:translate(-50%, -50%);box-shadow:var(--bf-modal-shadow, 0px 4px 12px 0px rgba(0, 0, 0, 0.25));border-radius:var(--bf-border-radius, 4px);background:#fff}.bf-modal *{font-family:var(--bf-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");outline:none;font-weight:normal;color:var(--bf-color, #222)}.bf-modal__title{margin:0 0 16px;width:calc(100% - 24px);font-weight:bold;line-height:1.3;font-family:var(--bf-font-heading, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol");font-size:18px}.bf-modal__hint{margin:-8px 0 20px;line-height:1.25}.bf-modal__hint--hidden{display:none}.bf-modal__content{position:absolute;top:0;bottom:0;left:0;right:0;overflow-y:auto;display:flex;flex-direction:column;padding:24px}.bf-modal__close{position:absolute;z-index:1;top:0px;right:0px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:0;background:none;padding:0;font-size:20px;cursor:pointer}.bf-modal__close:active{transform:scale(0.85)}.bf-modal__subject,.bf-modal__feedback{margin-bottom:16px;font-size:16px;padding:8px;border:var(--bf-input-border, 1px solid #ccc);border-radius:var(--bf-border-radius, 4px)}.bf-modal__subject::placeholder,.bf-modal__feedback::placeholder{color:var(--bf-placeholder-color, #757575)}.bf-modal__subject{min-height:32px}.bf-modal__feedback{flex-grow:1;resize:none;min-height:64px}.bf-modal__submit{width:100%;background-color:var(--bf-submit-bg, #ff5060);box-shadow:var(--bf-submit-shadow, 0 2px 0 0 #a93e48);border:0;border-radius:var(--bf-border-radius, 4px);padding:8px 0;color:var(--bf-submit-color, #fff);font-size:18px;cursor:pointer}.bf-modal__submit:active{transform:translateY(2px);box-shadow:none}',""]);const g=h},3645:i=>{i.exports=function(e){var s=[];return s.toString=function(){return this.map(function(o){var a="",c=o[5]!==void 0;return o[4]&&(a+="@supports (".concat(o[4],") {")),o[2]&&(a+="@media ".concat(o[2]," {")),c&&(a+="@layer".concat(o[5].length>0?" ".concat(o[5]):""," {")),a+=e(o),c&&(a+="}"),o[2]&&(a+="}"),o[4]&&(a+="}"),a}).join("")},s.i=function(o,a,c,h,g){typeof o=="string"&&(o=[[null,o,void 0]]);var d={};if(c)for(var b=0;b0?" ".concat($[5]):""," {").concat($[1],"}")),$[5]=g),a&&($[2]&&($[1]="@media ".concat($[2]," {").concat($[1],"}")),$[2]=a),h&&($[4]?($[1]="@supports (".concat($[4],") {").concat($[1],"}"),$[4]=h):$[4]="".concat(h)),s.push($))}},s}},8081:i=>{i.exports=function(e){return e[1]}},9180:function(i,e,s){var o,a,c;(function(h,g){a=[s(9829)],(c=typeof(o=function(d){var b=/(^|@)\S+:\d+/,_=/^\s*at .*(\S+:\d+|\(native\))/m,j=/^(eval@)?(\[native code])?$/;return{parse:function($){if($.stacktrace!==void 0||$["opera#sourceloc"]!==void 0)return this.parseOpera($);if($.stack&&$.stack.match(_))return this.parseV8OrIE($);if($.stack)return this.parseFFOrSafari($);throw new Error("Cannot parse given Error object")},extractLocation:function($){if($.indexOf(":")===-1)return[$];var _e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec($.replace(/[()]/g,""));return[_e[1],_e[2]||void 0,_e[3]||void 0]},parseV8OrIE:function($){return $.stack.split(` +`).filter(function(_e){return!!_e.match(_)},this).map(function(_e){_e.indexOf("(eval ")>-1&&(_e=_e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var et=_e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),tt=et.match(/ (\(.+\)$)/);et=tt?et.replace(tt[0],""):et;var st=this.extractLocation(tt?tt[1]:et),nt=tt&&et||void 0,rt=["eval",""].indexOf(st[0])>-1?void 0:st[0];return new d({functionName:nt,fileName:rt,lineNumber:st[1],columnNumber:st[2],source:_e})},this)},parseFFOrSafari:function($){return $.stack.split(` +`).filter(function(_e){return!_e.match(j)},this).map(function(_e){if(_e.indexOf(" > eval")>-1&&(_e=_e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),_e.indexOf("@")===-1&&_e.indexOf(":")===-1)return new d({functionName:_e});var et=/((.*".+"[^@]*)?[^@]*)(?:@)/,tt=_e.match(et),st=tt&&tt[1]?tt[1]:void 0,nt=this.extractLocation(_e.replace(et,""));return new d({functionName:st,fileName:nt[0],lineNumber:nt[1],columnNumber:nt[2],source:_e})},this)},parseOpera:function($){return!$.stacktrace||$.message.indexOf(` `)>-1&&$.message.split(` `).length>$.stacktrace.split(` `).length?this.parseOpera9($):$.stack?this.parseOpera11($):this.parseOpera10($)},parseOpera9:function($){for(var _e=/Line (\d+).*script (?:in )?(\S+)/i,et=$.message.split(` -`),tt=[],st=2,rt=et.length;st/,"$2").replace(/\([^)]*\)/g,"")||void 0;rt.match(/\(([^)]*)\)/)&&(et=rt.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var it=et===void 0||et==="[arguments not available]"?void 0:et.split(",");return new d({functionName:nt,args:it,fileName:st[0],lineNumber:st[1],columnNumber:st[2],source:_e})},this)}}})=="function"?o.apply(e,a):o)===void 0||(i.exports=c)})()},9804:i=>{var e=Object.prototype.hasOwnProperty,s=Object.prototype.toString;i.exports=function(o,a,c){if(s.call(a)!=="[object Function]")throw new TypeError("iterator must be a function");var h=o.length;if(h===+h)for(var g=0;g{var e="Function.prototype.bind called on incompatible ",s=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";i.exports=function(c){var h=this;if(typeof h!="function"||o.call(h)!==a)throw new TypeError(e+h);for(var g,d=s.call(arguments,1),b=function(){if(this instanceof g){var et=h.apply(this,d.concat(s.call(arguments)));return Object(et)===et?et:this}return h.apply(c,d.concat(s.call(arguments)))},_=Math.max(0,h.length-d.length),j=[],$=0;$<_;$++)j.push("$"+$);if(g=Function("binder","return function ("+j.join(",")+"){ return binder.apply(this,arguments); }")(b),h.prototype){var _e=function(){};_e.prototype=h.prototype,g.prototype=new _e,_e.prototype=null}return g}},8612:(i,e,s)=>{var o=s(7648);i.exports=Function.prototype.bind||o},210:(i,e,s)=>{var o,a=SyntaxError,c=Function,h=TypeError,g=function(vt){try{return c('"use strict"; return ('+vt+").constructor;")()}catch{}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch{d=null}var b=function(){throw new h},_=d?function(){try{return b}catch{try{return d(arguments,"callee").get}catch{return b}}}():b,j=s(1405)(),$=Object.getPrototypeOf||function(vt){return vt.__proto__},_e={},et=typeof Uint8Array>"u"?o:$(Uint8Array),tt={"%AggregateError%":typeof AggregateError>"u"?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?o:ArrayBuffer,"%ArrayIteratorPrototype%":j?$([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":_e,"%AsyncGenerator%":_e,"%AsyncGeneratorFunction%":_e,"%AsyncIteratorPrototype%":_e,"%Atomics%":typeof Atomics>"u"?o:Atomics,"%BigInt%":typeof BigInt>"u"?o:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?o:Float32Array,"%Float64Array%":typeof Float64Array>"u"?o:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?o:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":_e,"%Int8Array%":typeof Int8Array>"u"?o:Int8Array,"%Int16Array%":typeof Int16Array>"u"?o:Int16Array,"%Int32Array%":typeof Int32Array>"u"?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j?$($([][Symbol.iterator]())):o,"%JSON%":typeof JSON=="object"?JSON:o,"%Map%":typeof Map>"u"?o:Map,"%MapIteratorPrototype%":typeof Map<"u"&&j?$(new Map()[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?o:Promise,"%Proxy%":typeof Proxy>"u"?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?o:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?o:Set,"%SetIteratorPrototype%":typeof Set<"u"&&j?$(new Set()[Symbol.iterator]()):o,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j?$(""[Symbol.iterator]()):o,"%Symbol%":j?Symbol:o,"%SyntaxError%":a,"%ThrowTypeError%":_,"%TypedArray%":et,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array>"u"?o:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?o:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?o:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?o:WeakMap,"%WeakRef%":typeof WeakRef>"u"?o:WeakRef,"%WeakSet%":typeof WeakSet>"u"?o:WeakSet},st=function vt(ft){var lt;if(ft==="%AsyncFunction%")lt=g("async function () {}");else if(ft==="%GeneratorFunction%")lt=g("function* () {}");else if(ft==="%AsyncGeneratorFunction%")lt=g("async function* () {}");else if(ft==="%AsyncGenerator%"){var dt=vt("%AsyncGeneratorFunction%");dt&&(lt=dt.prototype)}else if(ft==="%AsyncIteratorPrototype%"){var bt=vt("%AsyncGenerator%");bt&&(lt=$(bt.prototype))}return tt[ft]=lt,lt},rt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},nt=s(8612),it=s(7642),ot=nt.call(Function.call,Array.prototype.concat),ut=nt.call(Function.apply,Array.prototype.splice),ht=nt.call(Function.call,String.prototype.replace),pt=nt.call(Function.call,String.prototype.slice),yt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,gt=/\\(\\)?/g,xt=function(vt){var ft=pt(vt,0,1),lt=pt(vt,-1);if(ft==="%"&<!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(lt==="%"&&ft!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var dt=[];return ht(vt,yt,function(bt,at,ct,mt){dt[dt.length]=ct?ht(mt,gt,"$1"):at||bt}),dt},wt=function(vt,ft){var lt,dt=vt;if(it(rt,dt)&&(dt="%"+(lt=rt[dt])[0]+"%"),it(tt,dt)){var bt=tt[dt];if(bt===_e&&(bt=st(dt)),bt===void 0&&!ft)throw new h("intrinsic "+vt+" exists, but is not available. Please file an issue!");return{alias:lt,name:dt,value:bt}}throw new a("intrinsic "+vt+" does not exist!")};i.exports=function(vt,ft){if(typeof vt!="string"||vt.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ft!="boolean")throw new h('"allowMissing" argument must be a boolean');var lt=xt(vt),dt=lt.length>0?lt[0]:"",bt=wt("%"+dt+"%",ft),at=bt.name,ct=bt.value,mt=!1,Et=bt.alias;Et&&(dt=Et[0],ut(lt,ot([0,1],Et)));for(var jt=1,kt=!0;jt=lt.length){var It=d(ct,Ct);ct=(kt=!!It)&&"get"in It&&!("originalValue"in It.get)?It.get:ct[Ct]}else kt=it(ct,Ct),ct=ct[Ct];kt&&!mt&&(tt[at]=ct)}}return ct}},1405:(i,e,s)=>{var o=s.g.Symbol,a=s(5419);i.exports=function(){return typeof o=="function"&&typeof Symbol=="function"&&typeof o("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&a()}},5419:i=>{i.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},s=Symbol("test"),o=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;for(s in e[s]=42,e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==s||!Object.prototype.propertyIsEnumerable.call(e,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(e,s);if(c.value!==42||c.enumerable!==!0)return!1}return!0}},9608:i=>{i.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},s=Symbol("test"),o=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;for(s in e[s]=42,e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==s||!Object.prototype.propertyIsEnumerable.call(e,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(e,s);if(c.value!==42||c.enumerable!==!0)return!1}return!0}},6410:(i,e,s)=>{var o=s(9608);i.exports=function(){return o()&&!!Symbol.toStringTag}},7642:(i,e,s)=>{var o=s(8612);i.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},3584:(i,e,s)=>{s.r(e),s.d(e,{default:()=>o});const o='

'},5717:i=>{typeof Object.create=="function"?i.exports=function(e,s){s&&(e.super_=s,e.prototype=Object.create(s.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:i.exports=function(e,s){if(s){e.super_=s;var o=function(){};o.prototype=s.prototype,e.prototype=new o,e.prototype.constructor=e}}},2584:(i,e,s)=>{var o=s(6410)(),a=s(1924)("Object.prototype.toString"),c=function(d){return!(o&&d&&typeof d=="object"&&Symbol.toStringTag in d)&&a(d)==="[object Arguments]"},h=function(d){return!!c(d)||d!==null&&typeof d=="object"&&typeof d.length=="number"&&d.length>=0&&a(d)!=="[object Array]"&&a(d.callee)==="[object Function]"},g=function(){return c(arguments)}();c.isLegacyArguments=h,i.exports=g?c:h},8662:(i,e,s)=>{var o,a=Object.prototype.toString,c=Function.prototype.toString,h=/^\s*(?:function)?\*/,g=s(6410)(),d=Object.getPrototypeOf;i.exports=function(b){if(typeof b!="function")return!1;if(h.test(c.call(b)))return!0;if(!g)return a.call(b)==="[object GeneratorFunction]";if(!d)return!1;if(o===void 0){var _=function(){if(!g)return!1;try{return Function("return function*() {}")()}catch{}}();o=!!_&&d(_)}return d(b)===o}},5692:(i,e,s)=>{var o=s(9804),a=s(3083),c=s(1924),h=c("Object.prototype.toString"),g=s(6410)(),d=typeof globalThis>"u"?s.g:globalThis,b=a(),_=c("Array.prototype.indexOf",!0)||function(tt,st){for(var rt=0;rt-1}return!!_e&&function(rt){var nt=!1;return o($,function(it,ot){if(!nt)try{nt=it.call(rt)===ot}catch{}}),nt}(tt)}},2023:(module,exports,__webpack_require__)=>{var process=__webpack_require__(4155),__WEBPACK_AMD_DEFINE_RESULT__;(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(i){return Object.prototype.toString.call(i)==="[object Array]"}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(i){return typeof i=="object"&&i.buffer&&i.buffer.constructor===ArrayBuffer});var createOutputMethod=function(i,e){return function(s){return new Sha256(e,!0).update(s)[i]()}},createMethod=function(i){var e=createOutputMethod("hex",i);NODE_JS&&(e=nodeWrap(e,i)),e.create=function(){return new Sha256(i)},e.update=function(a){return e.create().update(a)};for(var s=0;s>6,h[d++]=128|63&c):c<55296||c>=57344?(h[d++]=224|c>>12,h[d++]=128|c>>6&63,h[d++]=128|63&c):(c=65536+((1023&c)<<10|1023&i.charCodeAt(++o)),h[d++]=240|c>>18,h[d++]=128|c>>12&63,h[d++]=128|c>>6&63,h[d++]=128|63&c);i=h}else{if(a!=="object")throw new Error(ERROR);if(i===null)throw new Error(ERROR);if(ARRAY_BUFFER&&i.constructor===ArrayBuffer)i=new Uint8Array(i);else if(!(Array.isArray(i)||ARRAY_BUFFER&&ArrayBuffer.isView(i)))throw new Error(ERROR)}i.length>64&&(i=new Sha256(e,!0).update(i).array());var b=[],_=[];for(o=0;o<64;++o){var j=i[o]||0;b[o]=92^j,_[o]=54^j}Sha256.call(this,e,s),this.update(_),this.oKeyPad=b,this.inner=!0,this.sharedMemory=s}Sha256.prototype.update=function(i){if(!this.finalized){var e,s=typeof i;if(s!=="string"){if(s!=="object")throw new Error(ERROR);if(i===null)throw new Error(ERROR);if(ARRAY_BUFFER&&i.constructor===ArrayBuffer)i=new Uint8Array(i);else if(!(Array.isArray(i)||ARRAY_BUFFER&&ArrayBuffer.isView(i)))throw new Error(ERROR);e=!0}for(var o,a,c=0,h=i.length,g=this.blocks;c>2]|=i[c]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(g[a>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=64?(this.block=g[16],this.start=a-64,this.hash(),this.hashed=!0):this.start=a}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var i=this.blocks,e=this.lastByteIndex;i[16]=this.block,i[e>>2]|=EXTRA[3&e],this.block=i[16],e>=56&&(this.hashed||this.hash(),i[0]=this.block,i[16]=i[1]=i[2]=i[3]=i[4]=i[5]=i[6]=i[7]=i[8]=i[9]=i[10]=i[11]=i[12]=i[13]=i[14]=i[15]=0),i[14]=this.hBytes<<3|this.bytes>>>29,i[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var i,e,s,o,a,c,h,g,d,b=this.h0,_=this.h1,j=this.h2,$=this.h3,_e=this.h4,et=this.h5,tt=this.h6,st=this.h7,rt=this.blocks;for(i=16;i<64;++i)e=((a=rt[i-15])>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,s=((a=rt[i-2])>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,rt[i]=rt[i-16]+e+rt[i-7]+s<<0;for(d=_&j,i=0;i<64;i+=4)this.first?(this.is224?(c=300032,st=(a=rt[0]-1413257819)-150054599<<0,$=a+24177077<<0):(c=704751109,st=(a=rt[0]-210244248)-1521486534<<0,$=a+143694565<<0),this.first=!1):(e=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),o=(c=b&_)^b&j^d,st=$+(a=st+(s=(_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&et^~_e&tt)+K[i]+rt[i])<<0,$=a+(e+o)<<0),e=($>>>2|$<<30)^($>>>13|$<<19)^($>>>22|$<<10),o=(h=$&b)^$&_^c,tt=j+(a=tt+(s=(st>>>6|st<<26)^(st>>>11|st<<21)^(st>>>25|st<<7))+(st&_e^~st&et)+K[i+1]+rt[i+1])<<0,e=((j=a+(e+o)<<0)>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10),o=(g=j&$)^j&b^h,et=_+(a=et+(s=(tt>>>6|tt<<26)^(tt>>>11|tt<<21)^(tt>>>25|tt<<7))+(tt&st^~tt&_e)+K[i+2]+rt[i+2])<<0,e=((_=a+(e+o)<<0)>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10),o=(d=_&j)^_&$^g,_e=b+(a=_e+(s=(et>>>6|et<<26)^(et>>>11|et<<21)^(et>>>25|et<<7))+(et&tt^~et&st)+K[i+3]+rt[i+3])<<0,b=a+(e+o)<<0;this.h0=this.h0+b<<0,this.h1=this.h1+_<<0,this.h2=this.h2+j<<0,this.h3=this.h3+$<<0,this.h4=this.h4+_e<<0,this.h5=this.h5+et<<0,this.h6=this.h6+tt<<0,this.h7=this.h7+st<<0},Sha256.prototype.hex=function(){this.finalize();var i=this.h0,e=this.h1,s=this.h2,o=this.h3,a=this.h4,c=this.h5,h=this.h6,g=this.h7,d=HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]+HEX_CHARS[c>>28&15]+HEX_CHARS[c>>24&15]+HEX_CHARS[c>>20&15]+HEX_CHARS[c>>16&15]+HEX_CHARS[c>>12&15]+HEX_CHARS[c>>8&15]+HEX_CHARS[c>>4&15]+HEX_CHARS[15&c]+HEX_CHARS[h>>28&15]+HEX_CHARS[h>>24&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[15&h];return this.is224||(d+=HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[15&g]),d},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var i=this.h0,e=this.h1,s=this.h2,o=this.h3,a=this.h4,c=this.h5,h=this.h6,g=this.h7,d=[i>>24&255,i>>16&255,i>>8&255,255&i,e>>24&255,e>>16&255,e>>8&255,255&e,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a,c>>24&255,c>>16&255,c>>8&255,255&c,h>>24&255,h>>16&255,h>>8&255,255&h];return this.is224||d.push(g>>24&255,g>>16&255,g>>8&255,255&g),d},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var i=new ArrayBuffer(this.is224?28:32),e=new DataView(i);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),i},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var i=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(i),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=(function(){return exports}).call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__===void 0||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},2151:(i,e,s)=>{s.r(e),s.d(e,{ObliviousSet:()=>o,now:()=>c,removeTooOldValues:()=>a});var o=function(){function h(g){this.ttl=g,this.map=new Map,this._to=!1}return h.prototype.has=function(g){return this.map.has(g)},h.prototype.add=function(g){var d=this;this.map.set(g,c()),this._to||(this._to=!0,setTimeout(function(){d._to=!1,a(d)},0))},h.prototype.clear=function(){this.map.clear()},h}();function a(h){for(var g=c()-h.ttl,d=h.map[Symbol.iterator]();;){var b=d.next().value;if(!b)return;var _=b[0];if(!(b[1]{var e,s,o=i.exports={};function a(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function h(tt){if(e===setTimeout)return setTimeout(tt,0);if((e===a||!e)&&setTimeout)return e=setTimeout,setTimeout(tt,0);try{return e(tt,0)}catch{try{return e.call(null,tt,0)}catch{return e.call(this,tt,0)}}}(function(){try{e=typeof setTimeout=="function"?setTimeout:a}catch{e=a}try{s=typeof clearTimeout=="function"?clearTimeout:c}catch{s=c}})();var g,d=[],b=!1,_=-1;function j(){b&&g&&(b=!1,g.length?d=g.concat(d):_=-1,d.length&&$())}function $(){if(!b){var tt=h(j);b=!0;for(var st=d.length;st;){for(g=d,d=[];++_1)for(var rt=1;rt{Object.defineProperty(e,"__esModule",{value:!0}),e.ApiClient=void 0,e.ApiClient=class{constructor(s,o){this.appKey=s,this.http=o}getDeviceStatus(s){const o={app_token:this.appKey,device:s};return this.http.post("/app/device-status",o).then(a=>{const c=a.error!==void 0,h=!c||c&&a.error.code!==-1004;return{isDeviceEnabled:a.logger_enabled!==void 0&&a.logger_enabled,isAppValid:h}})}sendSession(s){return this.http.post("/session",s)}sendLogs(s,o){return this.http.post("/log/batch",{session_id:s,logs:o})}sendIssue(s,o,a,c,h,g){const d={uid:s,title:a,text:c,app:{key:this.appKey},type:h,session_id:g};return this.http.post("/issue",d).then(()=>({uuid:s,issueURL:o}))}setDeviceKey(s,o,a){return this.http.post("/device/keyvalue",{app_key:this.appKey,device_id:s,key:o,value:a})}}},4319:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EventPrinter=void 0;const o=s(8593);e.EventPrinter=class{constructor(a,c){this.console=a,this.printToConsole=c,this.styles={bold:"font-weight:bold",icon:"color:#ff5060",italic:"font-style:italic",neutral:"color:#999",regular:"color:#222"}}print(a,c,h,g){if(!this.printToConsole)return;const d=`%c${a}%c ${c}`;g=[this.styles.icon,this.styles.regular,...g??[]],h?this.console.info(d,...g,(0,o.getElByXPath)(h)):this.console.info(d,...g)}printDeviceKey(a,c){c===null?this.print("◆",`Device key %c"${a}"%c removed`,void 0,[this.styles.italic,this.styles.bold]):this.print("◆",`Device key %c"${a}" %cset%c to %c"${c}"`,void 0,[this.styles.italic,this.styles.bold,this.styles.regular,this.styles.italic])}printJsEvent(a){const c=JSON.parse(a.text);switch(c.event){case"DOMContentLoaded":this.print("●","DOM content %cloaded",void 0,[this.styles.bold]);break;case"PageLoaded":this.print("●","Page %cloaded",void 0,[this.styles.bold]);break;case"hashchange":this.print("#",`URL %chash changed%c to %c"${c.hash}"`,void 0,[this.styles.bold,this.styles.regular,this.styles.italic]);break;case"blur":case"click":case"focus":case"keyup":{const h=c.event==="click"?"⊙":"▭",g=c.text&&c.event==="keyup"?` value=${this.truncate(c.text)}`:"",d={blur:"blurred",click:"clicked",focus:"focused",keyup:"keyup"};this.print(h,`Element %c${d[c.event]}%c${g}%c:`,c.xpath,[this.styles.bold,this.styles.neutral,this.styles.regular]);break}case"submit":this.print("↑","Form %csubmited",c.xpath,[this.styles.bold]);break;case"popstate":case"pushstate":this.print("↦","Navigation %cstate changed",void 0,[this.styles.bold]);break;default:throw new o.UnreachableCaseError(c)}}truncate(a){return a.length>15?`${a.substring(0,15)}… [${a.length}]`:a}}},2329:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.OverrideConsoleMethods=void 0;const o=s(7431);e.OverrideConsoleMethods=class{constructor(a,c){this.commands=a,this.window=c}init(a){const c=this,h={log:o.LogLevel.Debug,trace:o.LogLevel.Trace,info:o.LogLevel.Info,warn:o.LogLevel.Warning,error:o.LogLevel.Error};this.window.console=function(g){return Object.assign(Object.assign({},g),Object.fromEntries(Object.keys(h).map(d=>[d,function(...b){c.commands.addLogMessage(h[d],b),a||g[d](...b)}])))}(this.window.console)}}},277:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterBrowserEventsHandler=void 0;const o=s(7725);class a extends o.RegisterEventsHandlerBase{constructor(h,g){super(h,g),this.commands=h,this.window=g}init(){if(!this.window.document.addEventListener)return;const h=!this.supportsPassiveEvents()||{passive:!0,capture:!0};this.window.addEventListener("load",()=>{this.addJsEventLogEntry({event:"PageLoaded",performance:this.window.performance})},h),this.window.addEventListener("DOMContentLoaded",()=>{this.addJsEventLogEntry({event:"DOMContentLoaded"})},h),this.window.addEventListener("popstate",d=>{this.addJsEventLogEntry({event:"popstate",location:this.window.location.href,state:JSON.stringify(d.state)})},h),this.window.addEventListener("hashchange",()=>{this.addJsEventLogEntry({event:"hashchange",hash:this.window.location.hash})},h);const g=d=>{const b=this;return function(..._){const j=_.length>2?_[2]:void 0;return j&&b.addJsEventLogEntry({event:"pushstate",to:String(j),state:_.length>1?JSON.stringify(_[1]):null}),d.apply(this,_)}};this.override(this.window.history,"pushState",g),this.override(this.window.history,"replaceState",g)}override(h,g,d){if(!(g in h))return;const b=d(h[g]);h[g]=b}}e.RegisterBrowserEventsHandler=a},7725:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterEventsHandlerBase=void 0,e.RegisterEventsHandlerBase=class{constructor(s,o){this.commands=s,this.window=o}addJsEventLogEntry(s){const o={tag:"js_event",text:JSON.stringify(s),url:this.getURL()};this.commands.addLogEntry(o)}getURL(){return this.window?this.window.location.href:""}supportsPassiveEvents(){let s=!1;try{const o=()=>{},a={get passive(){return s=!0,!1}};this.window.addEventListener("offline",o,a),this.window.removeEventListener("offline",o,!1)}catch{s=!1}return s}}},5881:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterUIEventsHandler=void 0;const o=s(8593),a=s(7725);class c extends a.RegisterEventsHandlerBase{constructor(g,d){super(g,d),this.commands=g,this.window=d}init(){if(!this.window.document.addEventListener)return;const g=!this.supportsPassiveEvents()||{passive:!0,capture:!0};document.addEventListener("click",_=>{_.target instanceof Element&&this.addJsEventLogEntry(this.getEventData(_.target,"click"))},g),document.addEventListener("focusin",_=>{_.target instanceof Element&&this.addJsEventLogEntry(this.getEventData(_.target,"focus"))},g),document.addEventListener("focusout",_=>{_.target instanceof Element&&this.addJsEventLogEntry(this.getEventData(_.target,"blur"))},g),this.window.addEventListener("submit",_=>{_.target instanceof Element&&this.addJsEventLogEntry(this.getEventData(_.target,"submit"))},g);const d=new o.DebounceByElement(400),b=["Tab","Meta","MetaLeft","MetaRight","Alt","AltLeft","AltRight","Control","ControlLeft","ControlRight","Shift","ShiftLeft","ShiftRight","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","PageDown","PageUp","Home","End","CapsLock"];this.window.addEventListener("keyup",_=>{if(!(_.target instanceof HTMLInputElement||_.target instanceof HTMLTextAreaElement)||!_.composedPath||b.includes(_.code))return;const j=_.target,$=_.composedPath();d.run(j,()=>{this.sendKeyupLog(j,$)})},g)}sendKeyupLog(g,d){var b;const _=((b=g.getAttribute("type"))!==null&&b!==void 0?b:"").toLowerCase()==="password",j=d.filter(_e=>_e instanceof HTMLElement).some(_e=>"bfIgnoreKeypress"in _e.dataset),$=_||j;this.addJsEventLogEntry(Object.assign(Object.assign({},this.getEventData(g,"keyup")),{text:$?void 0:g.value}))}getEventData(g,d){const b=g.childElementCount<=1?g.textContent:void 0,_=g.tagName==="FORM"?g:null;return{event:d,url:this.window?this.window.location.href:"",xpath:(0,o.getXPath)(g),tag:g.tagName,id:g.id,text:b??void 0,action:_&&_.action?_.action:""}}}e.RegisterUIEventsHandler=c},7722:function(i,e,s){var o=this&&this.__createBinding||(Object.create?function(g,d,b,_){_===void 0&&(_=b);var j=Object.getOwnPropertyDescriptor(d,b);j&&!("get"in j?!d.__esModule:j.writable||j.configurable)||(j={enumerable:!0,get:function(){return d[b]}}),Object.defineProperty(g,_,j)}:function(g,d,b,_){_===void 0&&(_=b),g[_]=d[b]}),a=this&&this.__setModuleDefault||(Object.create?function(g,d){Object.defineProperty(g,"default",{enumerable:!0,value:d})}:function(g,d){g.default=d}),c=this&&this.__importStar||function(g){if(g&&g.__esModule)return g;var d={};if(g!=null)for(var b in g)b!=="default"&&Object.prototype.hasOwnProperty.call(g,b)&&o(d,g,b);return a(d,g),d};Object.defineProperty(e,"__esModule",{value:!0}),e.Browser=void 0;const h=c(s(1206));e.Browser=class{constructor(g){this.window=g,this.browser=h.getParser(this.window.navigator.userAgent)}getDeviceName(){return`${this.browser.getBrowserName()} ${this.browser.getBrowserVersion()} on ${this.browser.getOSName()} ${this.browser.getOSVersion()}`}getLanguage(){var g;return(g=this.window.navigator.language)!==null&&g!==void 0?g:this.window.navigator.userLanguage}getName(){return this.browser.getBrowserName()}getOSVersion(){return this.browser.getOSVersion()}}},2853:function(i,e,s){var o=this&&this.__awaiter||function(b,_,j,$){return new(j||(j=Promise))(function(_e,et){function tt(nt){try{rt($.next(nt))}catch(it){et(it)}}function st(nt){try{rt($.throw(nt))}catch(it){et(it)}}function rt(nt){var it;nt.done?_e(nt.value):(it=nt.value,it instanceof j?it:new j(function(ot){ot(it)})).then(tt,st)}rt(($=$.apply(b,_||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Bugfender=void 0;const a=s(7431),c=s(2607),h=s(7935),g=s(8593);class d{constructor(_,j,$){this.preInitProvider=_,this.sdkUserAgent=j,this.version=$,this.LogLevel=a.LogLevel,this.initDeferred=(0,g.createDeferred)(),this.commands=this.preInitProvider.provideCommandsQueue()}init(_){return o(this,void 0,void 0,function*(){const j=this.preInitProvider.provideOperationModes(),$=this.preInitProvider.provideSDKOptionsValidator();if(this.options=$.init(_),this.provider=new h.MainProvider(this.options,this.preInitProvider,this.sdkUserAgent,this.version),this.processor=yield this.provider.getStorageProcessor(),this.options.debug){const st=this.preInitProvider.provideAPIFeatureDetection();this.provider.getLogger(d.name).log("DEBUG",{debug:this.options.debug,operation:{mode:yield j.getMode(),isMultiTab:yield j.isMultiTab(),isMultiThread:yield j.isMultiThread()},features:{broadcastChannel:yield st.isBroadcastChannelSupported(),indexedDB:yield st.isIndexedDBSupported(),localStorage:st.isLocalStorageSupported(),sessionStorage:st.isSessionStorageSupported(),worker:st.isWorkerSupported()}})}yield(yield this.provider.getResetStorage()).resetIfAppChanged(this.options.appID);const et=yield this.provider.getStorageWriterHub();et.init(this.options),this.options.logBrowserEvents&&this.provider.getRegisterBrowserEventsHandler().init(),this.options.logUIEvents&&this.provider.getRegisterUIEventsHandler().init(),this.options.registerErrorHandler&&this.provider.getRegisterErrorHandler().init(this),this.options.overrideConsoleMethods&&this.provider.getOverrideConsoleMethods().init(this.options.printToConsole),this.provider.getPrintToConsole().init(this.options.printToConsole),window.addEventListener("beforeunload",()=>o(this,void 0,void 0,function*(){this.processor.run()})),this.commands.init(et);const tt=this.preInitProvider.provideBrowser();this.setDeviceKey("$browser",tt.getName()),this.initDeferred.resolve()})}forceSendOnce(){this.commands.forceSendOnce()}getDeviceURL(){return o(this,void 0,void 0,function*(){yield this.initDeferred.promise;const _=yield this.provider.getDevice();return`${this.options.baseURL}/intent/${this.options.appID}/device/${_.getUDID()}`})}getSessionURL(){return o(this,void 0,void 0,function*(){yield this.initDeferred.promise;const _=yield this.provider.getCurrentSession();return`${this.options.baseURL}/intent/${this.options.appID}/session/${_.getUUID()}`})}getUserFeedback(_){return o(this,void 0,void 0,function*(){return this.preInitProvider.provideUserFeedback().show(_)})}log(..._){this.commands.addLogMessage(a.LogLevel.Debug,[..._])}warn(..._){this.commands.addLogMessage(a.LogLevel.Warning,[..._])}error(..._){this.commands.addLogMessage(a.LogLevel.Error,[..._])}trace(..._){this.commands.addLogMessage(a.LogLevel.Trace,[..._])}info(..._){this.commands.addLogMessage(a.LogLevel.Info,[..._])}fatal(..._){this.commands.addLogMessage(a.LogLevel.Fatal,[..._])}removeDeviceKey(_){this.commands.setDeviceKey(_,null)}sendLog(_){this.commands.addLogEntry(_)}sendIssue(_,j){return o(this,void 0,void 0,function*(){return this.commands.addIssue(c.IssueType.Issue,_,j)})}sendCrash(_,j){return o(this,void 0,void 0,function*(){return this.commands.addIssue(c.IssueType.Crash,_,j)})}sendUserFeedback(_,j){return o(this,void 0,void 0,function*(){return this.commands.addIssue(c.IssueType.Feedback,_,j)})}setDeviceKey(_,j){this.commands.setDeviceKey(_,j)}setForceEnabled(_){this.initDeferred.promise.then(()=>{this.provider.getStorageGuard().setDeviceForceEnabled(_)})}}e.Bugfender=d},1667:function(i,e,s){var o=this&&this.__createBinding||(Object.create?function(d,b,_,j){j===void 0&&(j=_);var $=Object.getOwnPropertyDescriptor(b,_);$&&!("get"in $?!b.__esModule:$.writable||$.configurable)||($={enumerable:!0,get:function(){return b[_]}}),Object.defineProperty(d,j,$)}:function(d,b,_,j){j===void 0&&(j=_),d[j]=b[_]}),a=this&&this.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),c=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&o(b,d,_);return a(b,d),b};Object.defineProperty(e,"__esModule",{value:!0}),e.CallInfoFactory=void 0;const h=c(s(9180)),g=c(s(4595));e.CallInfoFactory=class{create(){try{throw new Error}catch(d){return this.getCallInfo(d)}}getCallInfo(d){try{const b=this.getStackTraceSync(d),_=b[b.length-1];return{file:"/"+_.fileName.substring(_.fileName.lastIndexOf("/")+1),line:_.lineNumber,method:_.functionName}}catch{return{file:void 0,line:void 0,method:void 0}}}getStackTraceSync(d){return d.stack||d["opera#sourceloc"]?h.parse(d):g.backtrace()}}},6110:function(i,e,s){var o=this&&this.__awaiter||function(h,g,d,b){return new(d||(d=Promise))(function(_,j){function $(tt){try{et(b.next(tt))}catch(st){j(st)}}function _e(tt){try{et(b.throw(tt))}catch(st){j(st)}}function et(tt){var st;tt.done?_(tt.value):(st=tt.value,st instanceof d?st:new d(function(rt){rt(st)})).then($,_e)}et((b=b.apply(h,g||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MonoChannel=e.Channel=e.createBroadcastChannel=e.MessageType=void 0;const a=s(8437);var c;(function(h){h.ForceSend="force-send",h.Ping="ping",h.Pong="pong"})(c=e.MessageType||(e.MessageType={})),e.createBroadcastChannel=function(){return new a.BroadcastChannel("bf-sdk")},e.Channel=class{constructor(h,g){this.channel=h,this.logger=g,this.leader=!1,this.onForceSendCb=()=>{},this.sessionsStatus={},this.channel.onmessage=d=>this.handleMessage(d),this.elector=(0,a.createLeaderElection)(this.channel,{fallbackInterval:2e3,responseTime:1e3}),this.leaderPromise=this.elector.awaitLeadership(),this.leaderPromise.then(()=>{this.logger.log("Now I'm the leader. 💪"),this.leader=!0})}setCurrentSession(h){this.session=h}handleMessage(h){var g,d;switch(h.type){case c.ForceSend:this.leader&&this.onForceSendCb();break;case c.Ping:h.toSessionUUID===((g=this.session)===null||g===void 0?void 0:g.getUUID())&&this.channel.postMessage({type:c.Pong,fromSessionUUID:h.toSessionUUID,toSessionUUID:h.fromSessionUUID});break;case c.Pong:h.toSessionUUID===((d=this.session)===null||d===void 0?void 0:d.getUUID())&&(this.sessionsStatus[h.fromSessionUUID]=!0)}}isLeader(){return this.leader}notifyForceSend(){this.leader?this.onForceSendCb():this.channel.postMessage({type:c.ForceSend})}onForceSend(h){this.onForceSendCb=h}onHasBecomeLeader(){return this.leaderPromise}isSessionActive(h){return o(this,void 0,void 0,function*(){const g=!!this.session;return!(g&&(!g||this.session.getUUID()!==h))||new Promise(d=>{this.sessionsStatus[h]=!1,this.channel.postMessage({type:c.Ping,fromSessionUUID:this.session.getUUID(),toSessionUUID:h}),setTimeout(()=>d(this.sessionsStatus[h]),250)})})}},e.MonoChannel=class{constructor(){this.onForceSendCb=()=>{},this.leaderPromise=Promise.resolve()}setCurrentSession(h){this.session=h}isLeader(){return!0}isSessionActive(h){return o(this,void 0,void 0,function*(){const g=!!this.session;return!this.session||g&&this.session.getUUID()===h})}notifyForceSend(){this.onForceSendCb()}onForceSend(h){this.onForceSendCb=h}onHasBecomeLeader(){return this.leaderPromise}}},7442:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CommandsQueue=void 0;const o=s(5049),a=s(8593);e.CommandsQueue=class{constructor(c,h,g){this.callInfoFactory=c,this.timer=h,this.uuidFactory=g,this.queue=[],this.storageDeferred=(0,a.createDeferred)()}init(c){this.storageDeferred.resolve(c),this.queue.forEach(h=>{this.handleCommand(h)})}handleCommand(c){if(this.storageDeferred.isResolved)switch(c.type){case o.CommandType.AddIssue:this.storageDeferred.value.addIssue(c);break;case o.CommandType.AddLogEntry:this.storageDeferred.value.addLogEntry(c);break;case o.CommandType.AddLogMessage:this.storageDeferred.value.addLogMessage(c);break;case o.CommandType.ForceSendOnce:this.storageDeferred.value.forceSendOnce();break;case o.CommandType.SetDeviceKey:this.storageDeferred.value.addDeviceKey(c);break;default:throw new a.UnreachableCaseError(c)}}add(c){this.storageDeferred.isFulfilled?this.handleCommand(c):this.queue.push(c)}addIssue(c,h,g){const d=(0,a.createDeferred)();return this.add({type:o.CommandType.AddIssue,issueType:c,title:h,text:g,uuid:this.uuidFactory.create(),callInfo:this.callInfoFactory.create(),url:d,time:this.timer.getTime()}),d.promise}addLogEntry(c){this.add({type:o.CommandType.AddLogEntry,log:c,callInfo:this.callInfoFactory.create(),time:this.timer.getTime()})}addLogMessage(c,h){this.add({type:o.CommandType.AddLogMessage,level:c,parameters:h,callInfo:this.callInfoFactory.create(),time:this.timer.getTime()})}forceSendOnce(){this.add({type:o.CommandType.ForceSendOnce})}setDeviceKey(c,h){this.add({type:o.CommandType.SetDeviceKey,key:c,value:h,callInfo:this.callInfoFactory.create(),time:this.timer.getTime()})}}},5049:(i,e)=>{var s;Object.defineProperty(e,"__esModule",{value:!0}),e.CommandType=void 0,(s=e.CommandType||(e.CommandType={})).AddIssue="add-issue",s.AddLogEntry="add-log-entry",s.AddLogMessage="add-log-message",s.ForceSendOnce="force-send-once",s.SetDeviceKey="set-device-key"},6871:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Connection=void 0,e.Connection=class{constructor(s){this.window=s}isOnline(){return this.window.navigator.onLine}}},3256:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CurrentSession=void 0;const o=s(8177);e.CurrentSession=class{constructor(a,c,h,g,d){this.device=a,this.logger=c,this.sessionStorage=h,this.sessionsTable=g,this.uuidFactory=d,this.reset()}getUUID(){return this.uuid}initSession(){const a=this.device.getUDID();this.logger.log("Init session"),this.uuid=this.uuidFactory.create(),this.sessionStorage.setItem(o.SessionStorageKey.SessionUUID,this.uuid),this.sessionStorage.setItem(o.SessionStorageKey.SessionUDID,a)}reset(){const a=this.sessionStorage.getItem(o.SessionStorageKey.SessionUUID);a===null?(this.logger.log("Session not available"),this.initSession()):(this.uuid=a,this.sessionStorage.getItem(o.SessionStorageKey.SessionUDID)!==this.device.getUDID()?(this.logger.log("Session Device UDID changed"),this.initSession()):this.logger.log(`Session UUID: ${this.uuid}`)),this.sessionsTable.addIfMissing({uuid:this.uuid,udid:this.device.getUDID()})}}},6422:function(i,e,s){var o=this&&this.__awaiter||function(d,b,_,j){return new(_||(_=Promise))(function($,_e){function et(rt){try{st(j.next(rt))}catch(nt){_e(nt)}}function tt(rt){try{st(j.throw(rt))}catch(nt){_e(nt)}}function st(rt){var nt;rt.done?$(rt.value):(nt=rt.value,nt instanceof _?nt:new _(function(it){it(nt)})).then(et,tt)}st((j=j.apply(d,b||[])).next())})},a=this&&this.__asyncValues||function(d){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b,_=d[Symbol.asyncIterator];return _?_.call(d):(d=typeof __values=="function"?__values(d):d[Symbol.iterator](),b={},j("next"),j("throw"),j("return"),b[Symbol.asyncIterator]=function(){return this},b);function j($){b[$]=d[$]&&function(_e){return new Promise(function(et,tt){(function(st,rt,nt,it){Promise.resolve(it).then(function(ot){st({value:ot,done:nt})},rt)})(et,tt,(_e=d[$](_e)).done,_e.value)})}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Database=void 0;const c=s(2998),h=s(8593);var g;(function(d){d[d.New=0]="New",d[d.V1=10]="V1",d[d.V2=20]="V2"})(g||(g={})),e.Database=class{constructor(d){this.db=(0,h.createDeferred)(),this.name=d??"bf_sdk",this.init()}init(){return o(this,void 0,void 0,function*(){const d=yield(0,c.openDB)(this.name,g.V2,{upgrade(b,_,j,$){var _e,et,tt,st;return o(this,void 0,void 0,function*(){if(_===g.New&&(b.createObjectStore("devicekeys",{keyPath:"id",autoIncrement:!0}).createIndex("sessionUUID","sessionUUID"),b.createObjectStore("issues",{keyPath:"id",autoIncrement:!0}).createIndex("sessionUUID","sessionUUID"),b.createObjectStore("logs",{keyPath:"id",autoIncrement:!0}).createIndex("sessionUUID","sessionUUID"),b.createObjectStore("sessions",{keyPath:"uuid"})),_===g.V1){const ot=$.objectStore("issues");try{for(var rt,nt=!0,it=a(ot);rt=yield it.next(),!(_e=rt.done);){st=rt.value,nt=!1;try{const ut=st,ht=Object.assign({},ut.value);ht.data.text=ht.data.markdown,delete ht.data.markdown,ut.update(ht)}finally{nt=!0}}}catch(ut){et={error:ut}}finally{try{nt||_e||!(tt=it.return)||(yield tt.call(it))}finally{if(et)throw et.error}}}})}});this.db.resolve(d)})}get(){return this.db.promise}}},1177:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryDeviceKeysTable=e.IDBDeviceKeysTable=void 0,e.IDBDeviceKeysTable=class{constructor(o){this.table=o}add(o){return this.table.add(o)}count(o){return this.table.countBy("sessionUUID",o)}deleteBatch(o){return this.table.deleteBatch(0,o)}getAll(){return this.table.getAll()}},e.InMemoryDeviceKeysTable=class{constructor(){this.data=[],this.idCounter=0}getNextID(){return this.idCounter++}add(o){return s(this,void 0,void 0,function*(){const a=this.getNextID();this.data.push(Object.assign(Object.assign({},o),{id:a}))})}count(o){return s(this,void 0,void 0,function*(){return this.data.filter(a=>a.sessionUUID===o).length})}deleteBatch(o){return s(this,void 0,void 0,function*(){this.data.splice(0,o)})}getAll(){return s(this,void 0,void 0,function*(){return[...this.data]})}}},8808:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryStorage=void 0,e.InMemoryStorage=class{constructor(){this.inMemoryStorage={}}clear(){this.inMemoryStorage={}}getItem(s){return Object.prototype.hasOwnProperty.call(this.inMemoryStorage,s)?this.inMemoryStorage[s]:null}key(s){var o;return(o=Object.keys(this.inMemoryStorage)[s])!==null&&o!==void 0?o:null}removeItem(s){delete this.inMemoryStorage[s]}setItem(s,o){this.inMemoryStorage[s]=String(o)}get length(){return Object.keys(this.inMemoryStorage).length}}},7941:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryIssuesTable=e.IDBIssuesTable=void 0,e.IDBIssuesTable=class{constructor(o){this.table=o}add(o){return this.table.add(o)}count(o){return this.table.countBy("sessionUUID",o)}deleteById(o){return this.table.deleteByIdx(o)}getBatch(o,a){return this.table.getBatch(o,a)}},e.InMemoryIssuesTable=class{constructor(){this.data=[],this.idCounter=0}getNextID(){return this.idCounter++}add(o){return s(this,void 0,void 0,function*(){const a=this.getNextID();this.data.push(Object.assign(Object.assign({},o),{id:a}))})}count(o){return s(this,void 0,void 0,function*(){return this.data.filter(a=>a.sessionUUID===o).length})}deleteById(o){return s(this,void 0,void 0,function*(){const a=this.data.findIndex(c=>c.id===o);a!==-1&&this.data.splice(a,1)})}getBatch(o,a){return s(this,void 0,void 0,function*(){return this.data.filter(c=>c.sessionUUID===o).slice(0,a)})}}},3856:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryLogsTable=e.IDBLogsTable=void 0,e.IDBLogsTable=class{constructor(o,a){this.table=o,this.logFactory=a}add(o){return this.table.add(o)}count(o){return this.table.countBy("sessionUUID",o)}deleteBatch(o,a){return this.table.deleteBatch(0,a,["sessionUUID",o])}deleteOldLogs(o,a=10){return s(this,void 0,void 0,function*(){const c=yield this.table.getBatch(o,a);if(c.length<=1)return;const h={sessionUUID:o,data:this.logFactory.createGapLog(c.map(g=>g.data))};yield Promise.all([this.table.patchByIdx(c[0].id,h),this.table.deleteBatch(1,a-1,["sessionUUID",o])])})}getBatch(o,a){return this.table.getBatch(o,a)}},e.InMemoryLogsTable=class{constructor(o,a){this.logFactory=o,this.storageLimit=a,this.data=[],this.idCounter=0}getNextID(){return this.idCounter++}add(o){return s(this,void 0,void 0,function*(){if(this.data.length>=this.storageLimit){const c=new Error("InMemory storage quota exceeded");throw c.name="QuotaExceededError",c}const a=this.getNextID();this.data.push(Object.assign(Object.assign({},o),{id:a}))})}count(o){return s(this,void 0,void 0,function*(){return this.data.filter(a=>a.sessionUUID===o).length})}deleteBatch(o,a){return s(this,void 0,void 0,function*(){const c=[];let h=0;for(let g=0;gc.data)),this.data.splice(1,9))})}getBatch(o,a){return s(this,void 0,void 0,function*(){return this.data.filter(c=>c.sessionUUID===o).slice(0,a)})}}},253:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.InMemorySessionsTable=e.IDBSessionsTable=void 0,e.IDBSessionsTable=class{constructor(o){this.table=o}addIfMissing(o){return s(this,void 0,void 0,function*(){if((yield this.table.countBy("uuid",o.uuid))===0)return this.table.add(o)})}delete(o){return this.table.deleteByIdx(o)}getAll(){return this.table.getAll()}update(o,a){return this.table.patchByIdx(o,a)}},e.InMemorySessionsTable=class{constructor(){this.data=[]}addIfMissing(o){return s(this,void 0,void 0,function*(){this.data.some(a=>a.uuid===o.uuid)||this.data.push(o)})}delete(o){return s(this,void 0,void 0,function*(){const a=this.data.findIndex(c=>c.uuid===o);a!==-1&&this.data.splice(a,1)})}getAll(){return s(this,void 0,void 0,function*(){return[...this.data]})}update(o,a){return s(this,void 0,void 0,function*(){const c=this.data.findIndex(h=>h.uuid===o);c!==-1&&(this.data[c]=Object.assign(Object.assign({},this.data[c]),a))})}}},7967:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Table=void 0,e.Table=class{constructor(o,a){this.dbPromise=o,this.store=a}add(o){return s(this,void 0,void 0,function*(){yield(yield this.dbPromise).add(this.store,o)})}clear(){return s(this,void 0,void 0,function*(){yield(yield this.dbPromise).clear(this.store)})}countBy(o,a){return s(this,void 0,void 0,function*(){const c=(yield this.dbPromise).transaction(this.store,"readonly");let h,g=0;if(o!==c.store.keyPath){const d=c.store.index(o),b=IDBKeyRange.only(a);h=yield d.openCursor(b)}else h=yield c.store.openCursor(IDBKeyRange.only(a));for(;h;)g++,h=yield h.continue();return g})}deleteBatch(o,a,c){return s(this,void 0,void 0,function*(){const h=(yield this.dbPromise).transaction(this.store,"readwrite");let g,d=0;if(c)if(c[0]!==h.store.keyPath){const b=h.store.index(c[0]),_=IDBKeyRange.only(c[1]);g=yield b.openCursor(_)}else g=yield h.store.openCursor(IDBKeyRange.only(c[1]));else g=yield h.store.openCursor();for(;g&&(d>=o&&g.delete(),d++,d!==o+a);)g=yield g.continue()})}deleteByIdx(o){return s(this,void 0,void 0,function*(){return(yield this.dbPromise).delete(this.store,o)})}getAll(){return s(this,void 0,void 0,function*(){return(yield this.dbPromise).getAll(this.store)})}getBatch(o,a){return s(this,void 0,void 0,function*(){const c=(yield this.dbPromise).transaction(this.store,"readonly").store.index("sessionUUID"),h=IDBKeyRange.only(o);let g=yield c.openCursor(h);const d=[];let b=0;for(;g&&(d.push(g.value),b++,b!==a);)g=yield g.continue();return d})}patchByIdx(o,a){return s(this,void 0,void 0,function*(){const c=(yield this.dbPromise).transaction(this.store,"readwrite"),h=yield c.store.get(o);yield c.store.put(Object.assign(Object.assign({},h),a))})}}},8955:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Device=void 0;const o=s(8177);e.Device=class{constructor(a,c,h,g){this.browser=a,this.localStorage=c,this.sdkVersion=h,this.uuidFactory=g}getDeviceData(){let a=this.localStorage.getItem(o.LocalStorageKey.DeviceData);return a===null&&(a="{}"),JSON.parse(a)}getInfo(a){return{udid:this.getUDID(),name:a.deviceName,device_type:"",firebase_test_lab:!1,key_values:this.getDeviceData(),language:this.browser.getLanguage(),os_version:this.browser.getOSVersion(),sdk_type:"web",sdk_version:this.sdkVersion.toString(),build:a.build,version:a.version}}getUDID(){let a=this.localStorage.getItem(o.LocalStorageKey.DeviceUDID);return a===null&&(a=this.uuidFactory.create(),this.localStorage.setItem(o.LocalStorageKey.DeviceUDID,a)),a}setDeviceKey(a,c){const h=this.getDeviceData();c===null?delete h[a]:h[a]=c,this.localStorage.setItem(o.LocalStorageKey.DeviceData,JSON.stringify(h))}}},2485:function(i,e,s){var o=this&&this.__decorate||function(_,j,$,_e){var et,tt=arguments.length,st=tt<3?j:_e===null?_e=Object.getOwnPropertyDescriptor(j,$):_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")st=Reflect.decorate(_,j,$,_e);else for(var rt=_.length-1;rt>=0;rt--)(et=_[rt])&&(st=(tt<3?et(st):tt>3?et(j,$,st):et(j,$))||st);return tt>3&&st&&Object.defineProperty(j,$,st),st},a=this&&this.__metadata||function(_,j){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(_,j)},c=this&&this.__awaiter||function(_,j,$,_e){return new($||($=Promise))(function(et,tt){function st(it){try{nt(_e.next(it))}catch(ot){tt(ot)}}function rt(it){try{nt(_e.throw(it))}catch(ot){tt(ot)}}function nt(it){var ot;it.done?et(it.value):(ot=it.value,ot instanceof $?ot:new $(function(ut){ut(ot)})).then(st,rt)}nt((_e=_e.apply(_,j||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.APIFeatureDetection=void 0;const h=s(8593),g=new Map,d=(0,h.CacheDecoratorFactory)(g);class b{constructor(j,$,_e,et,tt){this.indexedDB=j,this.localStorage=$,this.sessionStorage=_e,this.broadcastChannel=et,this.worker=tt}isBroadcastChannelSupported(){return c(this,void 0,void 0,function*(){return typeof this.broadcastChannel=="function"||(yield this.isIndexedDBSupported())||this.isLocalStorageSupported()})}isIndexedDBSupported(){return new Promise((j,$)=>{const _e=this.indexedDB.open("bf_sdk_test");_e.onerror=()=>j(!1),_e.onsuccess=()=>{j(!0),_e.result.close()}})}isLocalStorageSupported(){return this.isStorageSupported(this.localStorage)}isSessionStorageSupported(){return this.isStorageSupported(this.sessionStorage)}isWorkerSupported(){return!!this.worker}isStorageSupported(j){try{const $="Bf8taM%GhLkg";return j.setItem($,$),j.removeItem($),!0}catch{return!1}}}o([d(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],b.prototype,"isBroadcastChannelSupported",null),o([d(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],b.prototype,"isIndexedDBSupported",null),o([d(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Boolean)],b.prototype,"isLocalStorageSupported",null),o([d(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Boolean)],b.prototype,"isSessionStorageSupported",null),o([d(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Boolean)],b.prototype,"isWorkerSupported",null),e.APIFeatureDetection=b},3095:function(i,e){var s,o=this&&this.__awaiter||function(a,c,h,g){return new(h||(h=Promise))(function(d,b){function _(_e){try{$(g.next(_e))}catch(et){b(et)}}function j(_e){try{$(g.throw(_e))}catch(et){b(et)}}function $(_e){var et;_e.done?d(_e.value):(et=_e.value,et instanceof h?et:new h(function(tt){tt(et)})).then(_,j)}$((g=g.apply(a,c||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.OperationModes=e.OperationMode=void 0,function(a){a.A="A",a.B="B",a.C="C"}(s=e.OperationMode||(e.OperationMode={})),e.OperationModes=class{constructor(a){this.apiFeatures=a}hasLeaderElection(){return this.apiFeatures.isBroadcastChannelSupported()}hasSharedDB(){return this.apiFeatures.isIndexedDBSupported()}hasSharedDeviceInfo(){return this.apiFeatures.isLocalStorageSupported()}getMode(){return o(this,void 0,void 0,function*(){const[a,c]=yield Promise.all([this.isMultiTab(),this.isMultiThread()]);return a?c?s.A:s.B:s.C})}isMultiTab(){return o(this,void 0,void 0,function*(){return(yield this.hasLeaderElection())&&(yield this.hasSharedDB())&&this.hasSharedDeviceInfo()})}isMultiThread(){return o(this,void 0,void 0,function*(){return(yield this.hasSharedDB())&&this.apiFeatures.isWorkerSupported()})}}},9075:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.HttpClient=void 0,e.HttpClient=class{constructor(s,o,a){this.apiURL=s,this.appKey=o,this.sdkUserAgent=a}post(s,o){const a=new XMLHttpRequest;return a.open("POST",this.apiURL+s),a.setRequestHeader("Content-Type","application/json;charset=UTF-8"),a.setRequestHeader("X-User-Agent",this.sdkUserAgent),a.setRequestHeader("X-App-Token",this.appKey),new Promise((c,h)=>{a.onreadystatechange=()=>{a.readyState===4&&(a.status!==200&&a.status!==304?h():c(JSON.parse(a.responseText)))},a.send(JSON.stringify(o))})}}},8572:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LogFactory=void 0;const o=s(7431);e.LogFactory=class{constructor(a=32e3){this.maxLogLength=a}createFromDeviceKey(a,c,h,g){return this.createFromEntry({tag:"bf_key_value",text:`Set device data "${a}"="${c}"`},h,g)}createFromEntry(a,c,h){var g,d,b,_,j,$,_e,et,tt,st;let rt=(g=a.text)!==null&&g!==void 0?g:"";return rt.length>=this.maxLogLength&&(rt=rt.substring(0,this.maxLogLength)+"…"),{x:h.iso,t:rt,m:(b=(d=a.method)!==null&&d!==void 0?d:c.method)!==null&&b!==void 0?b:"",at:h.epoch,tg:(_=a.tag)!==null&&_!==void 0?_:"",f:($=(j=a.file)!==null&&j!==void 0?j:c.file)!==null&&$!==void 0?$:"",l:(et=(_e=a.line)!==null&&_e!==void 0?_e:c.line)!==null&&et!==void 0?et:0,ll:(tt=a.level)!==null&&tt!==void 0?tt:o.LogLevel.Debug,u:(st=a.url)!==null&&st!==void 0?st:""}}createFromIssue(a,c,h){return this.createFromEntry({level:o.LogLevel.Error,tag:"bf_issue",text:a},c,h)}createGapLog(a){const c=JSON.stringify({bf_start_date:a[0].at,bf_end_date:a[a.length-1].at});return{x:a[0].x,t:c,m:"",at:a[0].at,tg:"bf_gap_log",f:"",l:0,ll:0,u:a[0].u}}}},5473:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NoopLogger=e.ConsoleLogger=void 0;class s{constructor(c,h){this.console=c,this.tag=h}error(c,h){c=`[BF-SDK]${this.tag?`[${this.tag}] `:""}${c}`,h?this.console.log(c,h):this.console.log(c)}getTagged(c){return new s(this.console,c)}log(c,h){c=`[BF-SDK]${this.tag?`[${this.tag}] `:""}${c}`,h?this.console.log(c,h):this.console.log(c)}}e.ConsoleLogger=s;class o{error(){}getTagged(){return new o}log(){}}e.NoopLogger=o},7935:function(i,e,s){var o=this&&this.__decorate||function(Ct,Rt,At,It){var zt,Ht=arguments.length,$t=Ht<3?Rt:It===null?It=Object.getOwnPropertyDescriptor(Rt,At):It;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$t=Reflect.decorate(Ct,Rt,At,It);else for(var Bt=Ct.length-1;Bt>=0;Bt--)(zt=Ct[Bt])&&($t=(Ht<3?zt($t):Ht>3?zt(Rt,At,$t):zt(Rt,At))||$t);return Ht>3&&$t&&Object.defineProperty(Rt,At,$t),$t},a=this&&this.__metadata||function(Ct,Rt){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Ct,Rt)},c=this&&this.__awaiter||function(Ct,Rt,At,It){return new(At||(At=Promise))(function(zt,Ht){function $t(Gt){try{Wt(It.next(Gt))}catch(Kt){Ht(Kt)}}function Bt(Gt){try{Wt(It.throw(Gt))}catch(Kt){Ht(Kt)}}function Wt(Gt){var Kt;Gt.done?zt(Gt.value):(Kt=Gt.value,Kt instanceof At?Kt:new At(function(Zt){Zt(Kt)})).then($t,Bt)}Wt((It=It.apply(Ct,Rt||[])).next())})},h=this&&this.__importDefault||function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}};Object.defineProperty(e,"__esModule",{value:!0}),e.MainProvider=void 0;const g=s(7431),d=s(1562),b=s(2329),_=s(277),j=s(5881),$=s(6110),_e=s(6871),et=s(3256),tt=s(6422),st=s(7967),rt=s(1177),nt=s(8808),it=s(7941),ot=s(3856),ut=s(253),ht=s(8955),pt=s(9075),yt=s(8572),gt=s(5473),xt=s(6105),wt=s(7273),vt=s(1310),ft=s(3103),lt=s(5041),dt=s(6693),bt=s(84),at=s(8593),ct=h(s(4657)),mt=s(4319),Et=new Map,jt=(0,at.CacheDecoratorFactory)(Et);class kt{constructor(Rt,At,It,zt){this.options=Rt,this.preInitProvider=At,this.sdkUserAgent=It,this.version=zt,this.apiFeatures=this.preInitProvider.provideAPIFeatureDetection(),this.commandsQueue=this.preInitProvider.provideCommandsQueue(),this.console=this.preInitProvider.provideWindow().console,this.operationModes=this.preInitProvider.provideOperationModes(),this.uuidFactory=this.preInitProvider.provideUUIDFactory(),this.window=this.preInitProvider.provideWindow()}getApiClient(){const Rt=new pt.HttpClient(this.options.apiURL,this.options.appKey,this.sdkUserAgent);return new d.ApiClient(this.options.appKey,Rt)}getChannel(){return c(this,void 0,void 0,function*(){let Rt;return Rt=(yield this.operationModes.isMultiTab())?new $.Channel((0,$.createBroadcastChannel)(),this.getLogger("Channel")):new $.MonoChannel,this.getCurrentSession().then(At=>{Rt.setCurrentSession(At)}),Rt})}getConnection(){return new _e.Connection(this.window)}getCurrentSession(){return c(this,void 0,void 0,function*(){return new et.CurrentSession(this.getDevice(),this.getLogger("CurrentSession"),this.getSessionStorage(),yield this.getSessionsTable(),this.uuidFactory)})}getDatabase(){return new tt.Database}getDevice(){return new ht.Device(this.preInitProvider.provideBrowser(),this.getLocalStorage(),this.version,this.uuidFactory)}getInitDeferred(){return(0,at.createDeferred)()}getDeviceKeysTable(){return c(this,void 0,void 0,function*(){return(yield this.operationModes.isMultiTab())?new rt.IDBDeviceKeysTable(new st.Table(this.getDatabase().get(),"devicekeys")):new rt.InMemoryDeviceKeysTable})}getIssuesTable(){return c(this,void 0,void 0,function*(){return(yield this.operationModes.isMultiTab())?new it.IDBIssuesTable(new st.Table(this.getDatabase().get(),"issues")):new it.InMemoryIssuesTable})}getLogger(Rt){return this.options.debug?new gt.ConsoleLogger(this.console,Rt):new gt.NoopLogger}getLogsTable(){return c(this,void 0,void 0,function*(){return(yield this.operationModes.isMultiTab())?new ot.IDBLogsTable(new st.Table(this.getDatabase().get(),"logs"),new yt.LogFactory):new ot.InMemoryLogsTable(new yt.LogFactory,3e3)})}getOverrideConsoleMethods(){return new b.OverrideConsoleMethods(this.commandsQueue,this.window)}getPrintToConsole(){return new g.PrintToConsole(this.console)}getRegisterBrowserEventsHandler(){return new _.RegisterBrowserEventsHandler(this.commandsQueue,this.window)}getRegisterErrorHandler(){return new g.RegisterErrorHandler(this.window)}getRegisterUIEventsHandler(){return new j.RegisterUIEventsHandler(this.commandsQueue,this.window)}getResetStorage(){return c(this,void 0,void 0,function*(){return new xt.ResetStorage(this.apiFeatures,yield this.getCurrentSession(),this.getDatabase(),this.getLocalStorage(),this.getSessionStorage())})}getStorageGuard(){return new vt.StorageGuard(this.getApiClient(),this.getDevice(),this.getLogger("StorageGuard"),this.options)}getStorageProcessor(){return c(this,void 0,void 0,function*(){const Rt=new wt.SessionFactory(this.getDevice(),this.version,this.window);return new ft.StorageProcessor(this.getApiClient(),yield this.getChannel(),this.getConnection(),this.getLogger("StorageProcessor"),this.getDevice(),yield this.getDeviceKeysTable(),yield this.getIssuesTable(),yield this.getLogsTable(),this.options,Rt,yield this.getSessionsTable(),yield this.getStorageGuard())})}getStorageWriterHub(){return c(this,void 0,void 0,function*(){let Rt;return Rt=(yield this.operationModes.isMultiThread())?new ct.default:new dt.MainThreadStorageWriterHandler(new lt.StorageWriter(yield this.getDeviceKeysTable(),yield this.getIssuesTable(),new yt.LogFactory,yield this.getLogsTable())),new bt.StorageWriterHub(yield this.getChannel(),this.getDevice(),Rt,new mt.EventPrinter(this.console,this.options.printToConsole),this.options,this.getPrintToConsole(),yield this.getCurrentSession(),yield this.getStorageGuard(),this.uuidFactory,this.window)})}getLocalStorage(){return this.apiFeatures.isLocalStorageSupported()?this.window.localStorage:new nt.InMemoryStorage}getSessionStorage(){return this.apiFeatures.isSessionStorageSupported()?this.window.sessionStorage:new nt.InMemoryStorage}getSessionsTable(){return c(this,void 0,void 0,function*(){return(yield this.operationModes.isMultiTab())?new ut.IDBSessionsTable(new st.Table(this.getDatabase().get(),"sessions")):new ut.InMemorySessionsTable})}}o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Object)],kt.prototype,"getApiClient",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getChannel",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",_e.Connection)],kt.prototype,"getConnection",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getCurrentSession",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",tt.Database)],kt.prototype,"getDatabase",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Object)],kt.prototype,"getDevice",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Object)],kt.prototype,"getInitDeferred",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getDeviceKeysTable",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getIssuesTable",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getLogsTable",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",b.OverrideConsoleMethods)],kt.prototype,"getOverrideConsoleMethods",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",g.PrintToConsole)],kt.prototype,"getPrintToConsole",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",_.RegisterBrowserEventsHandler)],kt.prototype,"getRegisterBrowserEventsHandler",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",g.RegisterErrorHandler)],kt.prototype,"getRegisterErrorHandler",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",j.RegisterUIEventsHandler)],kt.prototype,"getRegisterUIEventsHandler",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getResetStorage",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Object)],kt.prototype,"getStorageGuard",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getStorageProcessor",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getStorageWriterHub",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Storage)],kt.prototype,"getLocalStorage",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Storage)],kt.prototype,"getSessionStorage",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getSessionsTable",null),e.MainProvider=kt},3758:function(i,e,s){var o=this&&this.__decorate||function(nt,it,ot,ut){var ht,pt=arguments.length,yt=pt<3?it:ut===null?ut=Object.getOwnPropertyDescriptor(it,ot):ut;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")yt=Reflect.decorate(nt,it,ot,ut);else for(var gt=nt.length-1;gt>=0;gt--)(ht=nt[gt])&&(yt=(pt<3?ht(yt):pt>3?ht(it,ot,yt):ht(it,ot))||yt);return pt>3&&yt&&Object.defineProperty(it,ot,yt),yt},a=this&&this.__metadata||function(nt,it){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(nt,it)};Object.defineProperty(e,"__esModule",{value:!0}),e.PreInitProvider=void 0;const c=s(7722),h=s(1667),g=s(7442),d=s(2485),b=s(3095),_=s(7998),j=s(5925),$=s(7075),_e=s(8593),et=s(6884),tt=new Map,st=(0,_e.CacheDecoratorFactory)(tt);class rt{constructor(it){this.window=it}provideAPIFeatureDetection(){return new d.APIFeatureDetection(this.window.indexedDB,this.window.localStorage,this.window.sessionStorage,this.window.BroadcastChannel,this.window.Worker)}provideBrowser(){return new c.Browser(this.window)}provideCommandsQueue(){return new g.CommandsQueue(new h.CallInfoFactory,new j.Timer,this.provideUUIDFactory())}provideOperationModes(){return new b.OperationModes(this.provideAPIFeatureDetection())}provideSDKOptionsValidator(){return new _.SDKOptionsValidator(this.provideBrowser())}provideUserFeedback(){return new $.UserFeedback(this.provideCommandsQueue())}provideUUIDFactory(){return new et.UUIDFactory}provideWindow(){return this.window}}o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",d.APIFeatureDetection)],rt.prototype,"provideAPIFeatureDetection",null),o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Object)],rt.prototype,"provideBrowser",null),o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",g.CommandsQueue)],rt.prototype,"provideCommandsQueue",null),o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",b.OperationModes)],rt.prototype,"provideOperationModes",null),o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",_.SDKOptionsValidator)],rt.prototype,"provideSDKOptionsValidator",null),o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",$.UserFeedback)],rt.prototype,"provideUserFeedback",null),o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Object)],rt.prototype,"provideUUIDFactory",null),e.PreInitProvider=rt},6105:function(i,e,s){var o=this&&this.__awaiter||function(c,h,g,d){return new(g||(g=Promise))(function(b,_){function j(et){try{_e(d.next(et))}catch(tt){_(tt)}}function $(et){try{_e(d.throw(et))}catch(tt){_(tt)}}function _e(et){var tt;et.done?b(et.value):(tt=et.value,tt instanceof g?tt:new g(function(st){st(tt)})).then(j,$)}_e((d=d.apply(c,h||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ResetStorage=void 0;const a=s(8177);e.ResetStorage=class{constructor(c,h,g,d,b){this.apiFeatures=c,this.session=h,this.database=g,this.localStorage=d,this.sessionStorage=b}resetIfAppChanged(c){return o(this,void 0,void 0,function*(){const h=this.localStorage.getItem(a.LocalStorageKey.AppID);if(h!==null&&h!==c){const g=[a.LocalStorageKey.AppID,a.LocalStorageKey.DeviceData,a.LocalStorageKey.DeviceUDID],d=[a.SessionStorageKey.SessionUDID,a.SessionStorageKey.SessionUUID];if(g.forEach(b=>this.localStorage.removeItem(b)),d.forEach(b=>this.sessionStorage.removeItem(b)),this.session.reset(),yield this.apiFeatures.isIndexedDBSupported()){const b=yield this.database.get();yield Promise.all([b.clear("devicekeys"),b.clear("issues"),b.clear("logs"),b.clear("sessions")])}}this.localStorage.setItem(a.LocalStorageKey.AppID,c)})}}},7998:function(i,e,s){var o=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.SDKOptionsValidator=void 0;const a=o(s(6177)),c=s(2023),h=s(7431);e.SDKOptionsValidator=class{constructor(g){this.browser=g,this.rules={appKey:["required","string"],apiURL:["string","url"],build:["string"],baseURL:["string","url"],debug:["boolean"],deviceName:["string"],overrideConsoleMethods:["boolean"],printToConsole:["boolean"],logBrowserEvents:["boolean"],logUIEvents:["boolean"],registerErrorHandler:["boolean"],version:["string"]}}init(g){return g=(0,h.prepareOptions)(g),(0,h.validate)(g,this.rules),Object.assign({appID:a.default.encode(c.sha256.array(g.appKey)).substring(0,10),apiURL:"https://api.bugfender.com",baseURL:"https://dashboard.bugfender.com",debug:!1,deviceName:this.browser.getDeviceName(),overrideConsoleMethods:!0,printToConsole:!0,logBrowserEvents:!0,logUIEvents:!0,registerErrorHandler:!0,version:"0.0.0",build:"0"},g)}}},7273:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SessionFactory=void 0,e.SessionFactory=class{constructor(s,o,a){this.device=s,this.sdkVersion=o,this.window=a}create(s,o){return{device:this.device.getInfo(o),orientation:0,batteryLevel:-1,ram_total:0,ram_free:0,ram_used:0,language:this.window.navigator.language,time:new Date().toISOString(),sdk_type:"web",sdk_version:this.sdkVersion,session_uid:s,app_version:{app:{key:o.appKey},version:o.version,build:o.build}}}}},1310:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StorageGuard=void 0,e.StorageGuard=class{constructor(s,o,a,c){this.api=s,this.device=o,this.logger=a,this.options=c,this.deviceForceEnabled=!1,this.isAppValid=!0,this.isDeviceEnabled=!1,this.checkIsDeviceEnabled(),setInterval(this.checkIsDeviceEnabled.bind(this),3e5)}canProcess(){return this.logger.log("canProcess",{isAppValid:this.isAppValid,isDeviceEnabled:this.isDeviceEnabled,deviceForceEnabled:this.deviceForceEnabled}),this.isAppValid&&(this.isDeviceEnabled||this.deviceForceEnabled)}canWrite(){return this.isAppValid}checkIsDeviceEnabled(){const s=this.device.getInfo(this.options);return this.api.getDeviceStatus(s).then(o=>{this.isAppValid=o.isAppValid,this.isDeviceEnabled=o.isDeviceEnabled},()=>{})}setDeviceForceEnabled(s){this.deviceForceEnabled=s}}},8177:(i,e)=>{var s,o;Object.defineProperty(e,"__esModule",{value:!0}),e.SessionStorageKey=e.LocalStorageKey=void 0,(o=e.LocalStorageKey||(e.LocalStorageKey={})).AppID="bf_app_id",o.DeviceData="bf_device_data",o.DeviceUDID="bf_device_udid",(s=e.SessionStorageKey||(e.SessionStorageKey={})).SessionUDID="bf_session_udid",s.SessionUUID="bf_session_uuid"},3103:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.StorageProcessor=void 0,e.StorageProcessor=class{constructor(o,a,c,h,g,d,b,_,j,$,_e,et){this.api=o,this.channel=a,this.connection=c,this.logger=h,this.device=g,this.deviceKeysTable=d,this.issuesTable=b,this.logsTable=_,this.options=j,this.sessionFactory=$,this.sessionsTable=_e,this.storageGuard=et,this.BATCH_SIZE=500,this.runIntervalMs=15e3,this.forceSend=!1,this.isRunning=!1,setInterval(this.run.bind(this),this.runIntervalMs),this.channel.onHasBecomeLeader().then(()=>{this.run()}),this.channel.onForceSend(()=>{this.forceSend=!0})}cleanupSessions(o){return s(this,void 0,void 0,function*(){for(const a of o){const c=yield this.channel.isSessionActive(a.uuid),h=yield this.hasData(a);if(!c&&!h)try{yield this.sessionsTable.delete(a.uuid)}catch{}}})}hasData(o){return s(this,void 0,void 0,function*(){try{const[a,c,h]=yield Promise.all([this.logsTable.count(o.uuid),this.issuesTable.count(o.uuid),this.deviceKeysTable.count(o.uuid)]);return a>0||c>0||h>0}catch{return!0}})}registerSession(o){return s(this,void 0,void 0,function*(){if(!o.id){const a=this.sessionFactory.create(o.uuid,this.options),{id:c}=yield this.api.sendSession(a);o.id=c,this.sessionsTable.update(o.uuid,{id:c})}return o})}canRun(){return this.connection.isOnline()&&this.channel.isLeader()&&!this.isRunning}run(){return s(this,void 0,void 0,function*(){const o=this.canRun();if(this.logger.log("Processing...",{forceSend:this.forceSend,isRunning:this.isRunning,isLeader:this.channel.isLeader(),isOnline:this.connection.isOnline(),canRun:o}),!o)return void this.logger.log("Aborted.");this.isRunning=!0;const a=this.forceSend,c=yield this.sessionsTable.getAll(),h=[],g=this.storageGuard.canProcess()||this.forceSend;let d=!1;this.logger.log("Should process device: "+(g?"Yes":"No")),this.logger.log(`${c.length} session/s found`),c.sort((b,_)=>+!!_.id-+!!b.id);for(const b of c){const _=yield this.registerSession(b),j=yield this.sendIssues(_);d=d||j,j||g?(h.push(this.sendLogs(_)),this.logger.log(`Session processed. ID: ${_.id}`,{sessionHasIssues:j})):this.logger.log(`Session skipped. ID: ${_.id}`)}(d||g)&&h.push(this.sendDeviceData()),yield Promise.all(h),yield this.cleanupSessions(c),this.isRunning=!1,a&&(this.forceSend=!1),this.logger.log("Done")})}sendDeviceData(){return s(this,void 0,void 0,function*(){try{const o={},a=yield this.deviceKeysTable.getAll();a.forEach(c=>{o[c.data.key]=c.data.value}),a.length&&(yield Promise.all(Object.entries(o).map(([c,h])=>this.api.setDeviceKey(this.device.getUDID(),c,h))),yield this.deviceKeysTable.deleteBatch(a.length))}catch(o){this.logger.error("sendDeviceData error",o)}})}sendIssues(o){return s(this,void 0,void 0,function*(){try{const a=yield this.issuesTable.getBatch(o.uuid,this.BATCH_SIZE);for(const c of a){const h=c.data,g=`${this.options.baseURL}/intent/${this.options.appID}/issue/${h.uuid}`;yield this.api.sendIssue(h.uuid,g,h.title,h.text,h.type,o.id),yield this.issuesTable.deleteById(c.id)}return a.length>0}catch(a){return this.logger.error("sendIssues error",a),!1}})}sendLogs(o){return s(this,void 0,void 0,function*(){try{const a=(yield this.logsTable.getBatch(o.uuid,this.BATCH_SIZE)).map(c=>c.data);a.length&&(yield this.api.sendLogs(o.id,a),yield this.logsTable.deleteBatch(o.uuid,a.length))}catch(a){this.logger.error("sendLogs error",a)}})}}},6693:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MainThreadStorageWriterHandler=void 0,e.MainThreadStorageWriterHandler=class{constructor(s){this.storageWriter=s}postMessage(s){this.storageWriter.handleMessage(s)}}},84:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StorageWriterHub=void 0;const o=s(7431),a=s(3817),c=s(5049),h=s(2607);e.StorageWriterHub=class{constructor(g,d,b,_,j,$,_e,et,tt,st){this.channel=g,this.device=d,this.handler=b,this.eventPrinter=_,this.options=j,this.printToConsole=$,this.session=_e,this.storageGuard=et,this.uuidFactory=tt,this.window=st,this.sanitizer=new a.StorageWriterSanitizer}init(g){const d=this.session.getUUID();this.options=g,this.postMessage({type:"init",data:{options:g,sessionUUID:d}},!1)}postMessage(g,d=!0){if(!d||this.storageGuard.canWrite())try{this.handler.postMessage(this.sanitizer.sanitize(g))}catch{}}addDeviceKey(g){if(typeof g.key!="string")throw new Error("The device-key 'key' must be a string.");this.device.setDeviceKey(g.key,g.value),this.postMessage({type:"device-key",data:{key:g.key,value:g.value,callInfo:g.callInfo,time:g.time}}),this.eventPrinter.printDeviceKey(g.key,g.value)}addLogEntry(g,d=!0){var b;g.log.url=((b=g.log.url)!==null&&b!==void 0?b:this.window)?this.window.location.href:"";const _=this.mapToLogEntryText(g.log);this.postMessage({type:"log-entry",data:{log:_,callInfo:g.callInfo,time:g.time}}),d&&(this.isJsEventLogEntry(_)?this.eventPrinter.printJsEvent(_):this.printToConsole.printLog(_))}isJsEventLogEntry(g){return g.tag==="js_event"&&typeof g.text=="string"&&typeof g.url=="string"}mapToLogEntryText(g){return g.text&&(g.text=(0,o.formatLogEntryText)(g.text)),g}addLogMessage(g){const d={};switch(d.level=g.level,d.text=(0,o.format)(g.parameters),d.url=this.window?this.window.location.href:void 0,this.addLogEntry({type:c.CommandType.AddLogEntry,log:d,callInfo:g.callInfo,time:g.time},!1),g.level){case o.LogLevel.Debug:this.printToConsole.log(...g.parameters);break;case o.LogLevel.Warning:this.printToConsole.warn(...g.parameters);break;case o.LogLevel.Error:this.printToConsole.error(...g.parameters);break;case o.LogLevel.Trace:this.printToConsole.trace(...g.parameters);break;case o.LogLevel.Info:this.printToConsole.info(...g.parameters);break;case o.LogLevel.Fatal:this.printToConsole.error(...g.parameters)}}addIssue(g){if(typeof g.title!="string")throw new Error("The crash/issue/feedback 'title' must be a string.");switch(this.postMessage({type:"issue",data:{type:g.issueType,title:g.title,uuid:g.uuid,text:g.text,callInfo:g.callInfo,time:g.time}}),this.forceSendOnce(),g.url.resolve(`${this.options.baseURL}/intent/${this.options.appID}/issue/${g.uuid}`),g.issueType){case h.IssueType.Issue:this.printToConsole.warn(`Issue: ${g.title}. +`),tt=[],st=2,nt=et.length;st/,"$2").replace(/\([^)]*\)/g,"")||void 0;nt.match(/\(([^)]*)\)/)&&(et=nt.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var it=et===void 0||et==="[arguments not available]"?void 0:et.split(",");return new d({functionName:rt,args:it,fileName:st[0],lineNumber:st[1],columnNumber:st[2],source:_e})},this)}}})=="function"?o.apply(e,a):o)===void 0||(i.exports=c)})()},9804:i=>{var e=Object.prototype.hasOwnProperty,s=Object.prototype.toString;i.exports=function(o,a,c){if(s.call(a)!=="[object Function]")throw new TypeError("iterator must be a function");var h=o.length;if(h===+h)for(var g=0;g{var e="Function.prototype.bind called on incompatible ",s=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";i.exports=function(c){var h=this;if(typeof h!="function"||o.call(h)!==a)throw new TypeError(e+h);for(var g,d=s.call(arguments,1),b=function(){if(this instanceof g){var et=h.apply(this,d.concat(s.call(arguments)));return Object(et)===et?et:this}return h.apply(c,d.concat(s.call(arguments)))},_=Math.max(0,h.length-d.length),j=[],$=0;$<_;$++)j.push("$"+$);if(g=Function("binder","return function ("+j.join(",")+"){ return binder.apply(this,arguments); }")(b),h.prototype){var _e=function(){};_e.prototype=h.prototype,g.prototype=new _e,_e.prototype=null}return g}},8612:(i,e,s)=>{var o=s(7648);i.exports=Function.prototype.bind||o},210:(i,e,s)=>{var o,a=SyntaxError,c=Function,h=TypeError,g=function(vt){try{return c('"use strict"; return ('+vt+").constructor;")()}catch{}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch{d=null}var b=function(){throw new h},_=d?function(){try{return b}catch{try{return d(arguments,"callee").get}catch{return b}}}():b,j=s(1405)(),$=Object.getPrototypeOf||function(vt){return vt.__proto__},_e={},et=typeof Uint8Array>"u"?o:$(Uint8Array),tt={"%AggregateError%":typeof AggregateError>"u"?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?o:ArrayBuffer,"%ArrayIteratorPrototype%":j?$([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":_e,"%AsyncGenerator%":_e,"%AsyncGeneratorFunction%":_e,"%AsyncIteratorPrototype%":_e,"%Atomics%":typeof Atomics>"u"?o:Atomics,"%BigInt%":typeof BigInt>"u"?o:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?o:Float32Array,"%Float64Array%":typeof Float64Array>"u"?o:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?o:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":_e,"%Int8Array%":typeof Int8Array>"u"?o:Int8Array,"%Int16Array%":typeof Int16Array>"u"?o:Int16Array,"%Int32Array%":typeof Int32Array>"u"?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j?$($([][Symbol.iterator]())):o,"%JSON%":typeof JSON=="object"?JSON:o,"%Map%":typeof Map>"u"?o:Map,"%MapIteratorPrototype%":typeof Map<"u"&&j?$(new Map()[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?o:Promise,"%Proxy%":typeof Proxy>"u"?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?o:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?o:Set,"%SetIteratorPrototype%":typeof Set<"u"&&j?$(new Set()[Symbol.iterator]()):o,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j?$(""[Symbol.iterator]()):o,"%Symbol%":j?Symbol:o,"%SyntaxError%":a,"%ThrowTypeError%":_,"%TypedArray%":et,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array>"u"?o:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?o:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?o:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?o:WeakMap,"%WeakRef%":typeof WeakRef>"u"?o:WeakRef,"%WeakSet%":typeof WeakSet>"u"?o:WeakSet},st=function vt(ft){var lt;if(ft==="%AsyncFunction%")lt=g("async function () {}");else if(ft==="%GeneratorFunction%")lt=g("function* () {}");else if(ft==="%AsyncGeneratorFunction%")lt=g("async function* () {}");else if(ft==="%AsyncGenerator%"){var dt=vt("%AsyncGeneratorFunction%");dt&&(lt=dt.prototype)}else if(ft==="%AsyncIteratorPrototype%"){var bt=vt("%AsyncGenerator%");bt&&(lt=$(bt.prototype))}return tt[ft]=lt,lt},nt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},rt=s(8612),it=s(7642),ot=rt.call(Function.call,Array.prototype.concat),ut=rt.call(Function.apply,Array.prototype.splice),ht=rt.call(Function.call,String.prototype.replace),pt=rt.call(Function.call,String.prototype.slice),yt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,gt=/\\(\\)?/g,xt=function(vt){var ft=pt(vt,0,1),lt=pt(vt,-1);if(ft==="%"&<!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(lt==="%"&&ft!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var dt=[];return ht(vt,yt,function(bt,at,ct,mt){dt[dt.length]=ct?ht(mt,gt,"$1"):at||bt}),dt},wt=function(vt,ft){var lt,dt=vt;if(it(nt,dt)&&(dt="%"+(lt=nt[dt])[0]+"%"),it(tt,dt)){var bt=tt[dt];if(bt===_e&&(bt=st(dt)),bt===void 0&&!ft)throw new h("intrinsic "+vt+" exists, but is not available. Please file an issue!");return{alias:lt,name:dt,value:bt}}throw new a("intrinsic "+vt+" does not exist!")};i.exports=function(vt,ft){if(typeof vt!="string"||vt.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ft!="boolean")throw new h('"allowMissing" argument must be a boolean');var lt=xt(vt),dt=lt.length>0?lt[0]:"",bt=wt("%"+dt+"%",ft),at=bt.name,ct=bt.value,mt=!1,Et=bt.alias;Et&&(dt=Et[0],ut(lt,ot([0,1],Et)));for(var jt=1,kt=!0;jt=lt.length){var It=d(ct,Ct);ct=(kt=!!It)&&"get"in It&&!("originalValue"in It.get)?It.get:ct[Ct]}else kt=it(ct,Ct),ct=ct[Ct];kt&&!mt&&(tt[at]=ct)}}return ct}},1405:(i,e,s)=>{var o=s.g.Symbol,a=s(5419);i.exports=function(){return typeof o=="function"&&typeof Symbol=="function"&&typeof o("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&a()}},5419:i=>{i.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},s=Symbol("test"),o=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;for(s in e[s]=42,e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==s||!Object.prototype.propertyIsEnumerable.call(e,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(e,s);if(c.value!==42||c.enumerable!==!0)return!1}return!0}},9608:i=>{i.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},s=Symbol("test"),o=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;for(s in e[s]=42,e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==s||!Object.prototype.propertyIsEnumerable.call(e,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(e,s);if(c.value!==42||c.enumerable!==!0)return!1}return!0}},6410:(i,e,s)=>{var o=s(9608);i.exports=function(){return o()&&!!Symbol.toStringTag}},7642:(i,e,s)=>{var o=s(8612);i.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},3584:(i,e,s)=>{s.r(e),s.d(e,{default:()=>o});const o='

'},5717:i=>{typeof Object.create=="function"?i.exports=function(e,s){s&&(e.super_=s,e.prototype=Object.create(s.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:i.exports=function(e,s){if(s){e.super_=s;var o=function(){};o.prototype=s.prototype,e.prototype=new o,e.prototype.constructor=e}}},2584:(i,e,s)=>{var o=s(6410)(),a=s(1924)("Object.prototype.toString"),c=function(d){return!(o&&d&&typeof d=="object"&&Symbol.toStringTag in d)&&a(d)==="[object Arguments]"},h=function(d){return!!c(d)||d!==null&&typeof d=="object"&&typeof d.length=="number"&&d.length>=0&&a(d)!=="[object Array]"&&a(d.callee)==="[object Function]"},g=function(){return c(arguments)}();c.isLegacyArguments=h,i.exports=g?c:h},8662:(i,e,s)=>{var o,a=Object.prototype.toString,c=Function.prototype.toString,h=/^\s*(?:function)?\*/,g=s(6410)(),d=Object.getPrototypeOf;i.exports=function(b){if(typeof b!="function")return!1;if(h.test(c.call(b)))return!0;if(!g)return a.call(b)==="[object GeneratorFunction]";if(!d)return!1;if(o===void 0){var _=function(){if(!g)return!1;try{return Function("return function*() {}")()}catch{}}();o=!!_&&d(_)}return d(b)===o}},5692:(i,e,s)=>{var o=s(9804),a=s(3083),c=s(1924),h=c("Object.prototype.toString"),g=s(6410)(),d=typeof globalThis>"u"?s.g:globalThis,b=a(),_=c("Array.prototype.indexOf",!0)||function(tt,st){for(var nt=0;nt-1}return!!_e&&function(nt){var rt=!1;return o($,function(it,ot){if(!rt)try{rt=it.call(nt)===ot}catch{}}),rt}(tt)}},2023:(module,exports,__webpack_require__)=>{var process=__webpack_require__(4155),__WEBPACK_AMD_DEFINE_RESULT__;(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(i){return Object.prototype.toString.call(i)==="[object Array]"}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(i){return typeof i=="object"&&i.buffer&&i.buffer.constructor===ArrayBuffer});var createOutputMethod=function(i,e){return function(s){return new Sha256(e,!0).update(s)[i]()}},createMethod=function(i){var e=createOutputMethod("hex",i);NODE_JS&&(e=nodeWrap(e,i)),e.create=function(){return new Sha256(i)},e.update=function(a){return e.create().update(a)};for(var s=0;s>6,h[d++]=128|63&c):c<55296||c>=57344?(h[d++]=224|c>>12,h[d++]=128|c>>6&63,h[d++]=128|63&c):(c=65536+((1023&c)<<10|1023&i.charCodeAt(++o)),h[d++]=240|c>>18,h[d++]=128|c>>12&63,h[d++]=128|c>>6&63,h[d++]=128|63&c);i=h}else{if(a!=="object")throw new Error(ERROR);if(i===null)throw new Error(ERROR);if(ARRAY_BUFFER&&i.constructor===ArrayBuffer)i=new Uint8Array(i);else if(!(Array.isArray(i)||ARRAY_BUFFER&&ArrayBuffer.isView(i)))throw new Error(ERROR)}i.length>64&&(i=new Sha256(e,!0).update(i).array());var b=[],_=[];for(o=0;o<64;++o){var j=i[o]||0;b[o]=92^j,_[o]=54^j}Sha256.call(this,e,s),this.update(_),this.oKeyPad=b,this.inner=!0,this.sharedMemory=s}Sha256.prototype.update=function(i){if(!this.finalized){var e,s=typeof i;if(s!=="string"){if(s!=="object")throw new Error(ERROR);if(i===null)throw new Error(ERROR);if(ARRAY_BUFFER&&i.constructor===ArrayBuffer)i=new Uint8Array(i);else if(!(Array.isArray(i)||ARRAY_BUFFER&&ArrayBuffer.isView(i)))throw new Error(ERROR);e=!0}for(var o,a,c=0,h=i.length,g=this.blocks;c>2]|=i[c]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(g[a>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=64?(this.block=g[16],this.start=a-64,this.hash(),this.hashed=!0):this.start=a}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var i=this.blocks,e=this.lastByteIndex;i[16]=this.block,i[e>>2]|=EXTRA[3&e],this.block=i[16],e>=56&&(this.hashed||this.hash(),i[0]=this.block,i[16]=i[1]=i[2]=i[3]=i[4]=i[5]=i[6]=i[7]=i[8]=i[9]=i[10]=i[11]=i[12]=i[13]=i[14]=i[15]=0),i[14]=this.hBytes<<3|this.bytes>>>29,i[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var i,e,s,o,a,c,h,g,d,b=this.h0,_=this.h1,j=this.h2,$=this.h3,_e=this.h4,et=this.h5,tt=this.h6,st=this.h7,nt=this.blocks;for(i=16;i<64;++i)e=((a=nt[i-15])>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,s=((a=nt[i-2])>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,nt[i]=nt[i-16]+e+nt[i-7]+s<<0;for(d=_&j,i=0;i<64;i+=4)this.first?(this.is224?(c=300032,st=(a=nt[0]-1413257819)-150054599<<0,$=a+24177077<<0):(c=704751109,st=(a=nt[0]-210244248)-1521486534<<0,$=a+143694565<<0),this.first=!1):(e=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),o=(c=b&_)^b&j^d,st=$+(a=st+(s=(_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&et^~_e&tt)+K[i]+nt[i])<<0,$=a+(e+o)<<0),e=($>>>2|$<<30)^($>>>13|$<<19)^($>>>22|$<<10),o=(h=$&b)^$&_^c,tt=j+(a=tt+(s=(st>>>6|st<<26)^(st>>>11|st<<21)^(st>>>25|st<<7))+(st&_e^~st&et)+K[i+1]+nt[i+1])<<0,e=((j=a+(e+o)<<0)>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10),o=(g=j&$)^j&b^h,et=_+(a=et+(s=(tt>>>6|tt<<26)^(tt>>>11|tt<<21)^(tt>>>25|tt<<7))+(tt&st^~tt&_e)+K[i+2]+nt[i+2])<<0,e=((_=a+(e+o)<<0)>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10),o=(d=_&j)^_&$^g,_e=b+(a=_e+(s=(et>>>6|et<<26)^(et>>>11|et<<21)^(et>>>25|et<<7))+(et&tt^~et&st)+K[i+3]+nt[i+3])<<0,b=a+(e+o)<<0;this.h0=this.h0+b<<0,this.h1=this.h1+_<<0,this.h2=this.h2+j<<0,this.h3=this.h3+$<<0,this.h4=this.h4+_e<<0,this.h5=this.h5+et<<0,this.h6=this.h6+tt<<0,this.h7=this.h7+st<<0},Sha256.prototype.hex=function(){this.finalize();var i=this.h0,e=this.h1,s=this.h2,o=this.h3,a=this.h4,c=this.h5,h=this.h6,g=this.h7,d=HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]+HEX_CHARS[c>>28&15]+HEX_CHARS[c>>24&15]+HEX_CHARS[c>>20&15]+HEX_CHARS[c>>16&15]+HEX_CHARS[c>>12&15]+HEX_CHARS[c>>8&15]+HEX_CHARS[c>>4&15]+HEX_CHARS[15&c]+HEX_CHARS[h>>28&15]+HEX_CHARS[h>>24&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[15&h];return this.is224||(d+=HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[15&g]),d},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var i=this.h0,e=this.h1,s=this.h2,o=this.h3,a=this.h4,c=this.h5,h=this.h6,g=this.h7,d=[i>>24&255,i>>16&255,i>>8&255,255&i,e>>24&255,e>>16&255,e>>8&255,255&e,s>>24&255,s>>16&255,s>>8&255,255&s,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a,c>>24&255,c>>16&255,c>>8&255,255&c,h>>24&255,h>>16&255,h>>8&255,255&h];return this.is224||d.push(g>>24&255,g>>16&255,g>>8&255,255&g),d},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var i=new ArrayBuffer(this.is224?28:32),e=new DataView(i);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),i},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var i=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(i),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=(function(){return exports}).call(exports,__webpack_require__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__===void 0||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},2151:(i,e,s)=>{s.r(e),s.d(e,{ObliviousSet:()=>o,now:()=>c,removeTooOldValues:()=>a});var o=function(){function h(g){this.ttl=g,this.map=new Map,this._to=!1}return h.prototype.has=function(g){return this.map.has(g)},h.prototype.add=function(g){var d=this;this.map.set(g,c()),this._to||(this._to=!0,setTimeout(function(){d._to=!1,a(d)},0))},h.prototype.clear=function(){this.map.clear()},h}();function a(h){for(var g=c()-h.ttl,d=h.map[Symbol.iterator]();;){var b=d.next().value;if(!b)return;var _=b[0];if(!(b[1]{var e,s,o=i.exports={};function a(){throw new Error("setTimeout has not been defined")}function c(){throw new Error("clearTimeout has not been defined")}function h(tt){if(e===setTimeout)return setTimeout(tt,0);if((e===a||!e)&&setTimeout)return e=setTimeout,setTimeout(tt,0);try{return e(tt,0)}catch{try{return e.call(null,tt,0)}catch{return e.call(this,tt,0)}}}(function(){try{e=typeof setTimeout=="function"?setTimeout:a}catch{e=a}try{s=typeof clearTimeout=="function"?clearTimeout:c}catch{s=c}})();var g,d=[],b=!1,_=-1;function j(){b&&g&&(b=!1,g.length?d=g.concat(d):_=-1,d.length&&$())}function $(){if(!b){var tt=h(j);b=!0;for(var st=d.length;st;){for(g=d,d=[];++_1)for(var nt=1;nt{Object.defineProperty(e,"__esModule",{value:!0}),e.ApiClient=void 0,e.ApiClient=class{constructor(s,o){this.appKey=s,this.http=o}getDeviceStatus(s){const o={app_token:this.appKey,device:s};return this.http.post("/app/device-status",o).then(a=>{const c=a.error!==void 0,h=!c||c&&a.error.code!==-1004;return{isDeviceEnabled:a.logger_enabled!==void 0&&a.logger_enabled,isAppValid:h}})}sendSession(s){return this.http.post("/session",s)}sendLogs(s,o){return this.http.post("/log/batch",{session_id:s,logs:o})}sendIssue(s,o,a,c,h,g){const d={uid:s,title:a,text:c,app:{key:this.appKey},type:h,session_id:g};return this.http.post("/issue",d).then(()=>({uuid:s,issueURL:o}))}setDeviceKey(s,o,a){return this.http.post("/device/keyvalue",{app_key:this.appKey,device_id:s,key:o,value:a})}}},4319:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EventPrinter=void 0;const o=s(8593);e.EventPrinter=class{constructor(a,c){this.console=a,this.printToConsole=c,this.styles={bold:"font-weight:bold",icon:"color:#ff5060",italic:"font-style:italic",neutral:"color:#999",regular:"color:#222"}}print(a,c,h,g){if(!this.printToConsole)return;const d=`%c${a}%c ${c}`;g=[this.styles.icon,this.styles.regular,...g??[]],h?this.console.info(d,...g,(0,o.getElByXPath)(h)):this.console.info(d,...g)}printDeviceKey(a,c){c===null?this.print("◆",`Device key %c"${a}"%c removed`,void 0,[this.styles.italic,this.styles.bold]):this.print("◆",`Device key %c"${a}" %cset%c to %c"${c}"`,void 0,[this.styles.italic,this.styles.bold,this.styles.regular,this.styles.italic])}printJsEvent(a){const c=JSON.parse(a.text);switch(c.event){case"DOMContentLoaded":this.print("●","DOM content %cloaded",void 0,[this.styles.bold]);break;case"PageLoaded":this.print("●","Page %cloaded",void 0,[this.styles.bold]);break;case"hashchange":this.print("#",`URL %chash changed%c to %c"${c.hash}"`,void 0,[this.styles.bold,this.styles.regular,this.styles.italic]);break;case"blur":case"click":case"focus":case"keyup":{const h=c.event==="click"?"⊙":"▭",g=c.text&&c.event==="keyup"?` value=${this.truncate(c.text)}`:"",d={blur:"blurred",click:"clicked",focus:"focused",keyup:"keyup"};this.print(h,`Element %c${d[c.event]}%c${g}%c:`,c.xpath,[this.styles.bold,this.styles.neutral,this.styles.regular]);break}case"submit":this.print("↑","Form %csubmited",c.xpath,[this.styles.bold]);break;case"popstate":case"pushstate":this.print("↦","Navigation %cstate changed",void 0,[this.styles.bold]);break;default:throw new o.UnreachableCaseError(c)}}truncate(a){return a.length>15?`${a.substring(0,15)}… [${a.length}]`:a}}},2329:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.OverrideConsoleMethods=void 0;const o=s(7431);e.OverrideConsoleMethods=class{constructor(a,c){this.commands=a,this.window=c}init(a){const c=this,h={log:o.LogLevel.Debug,trace:o.LogLevel.Trace,info:o.LogLevel.Info,warn:o.LogLevel.Warning,error:o.LogLevel.Error};this.window.console=function(g){return Object.assign(Object.assign({},g),Object.fromEntries(Object.keys(h).map(d=>[d,function(...b){c.commands.addLogMessage(h[d],b),a||g[d](...b)}])))}(this.window.console)}}},277:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterBrowserEventsHandler=void 0;const o=s(7725);class a extends o.RegisterEventsHandlerBase{constructor(h,g){super(h,g),this.commands=h,this.window=g}init(){if(!this.window.document.addEventListener)return;const h=!this.supportsPassiveEvents()||{passive:!0,capture:!0};this.window.addEventListener("load",()=>{this.addJsEventLogEntry({event:"PageLoaded",performance:this.window.performance})},h),this.window.addEventListener("DOMContentLoaded",()=>{this.addJsEventLogEntry({event:"DOMContentLoaded"})},h),this.window.addEventListener("popstate",d=>{this.addJsEventLogEntry({event:"popstate",location:this.window.location.href,state:JSON.stringify(d.state)})},h),this.window.addEventListener("hashchange",()=>{this.addJsEventLogEntry({event:"hashchange",hash:this.window.location.hash})},h);const g=d=>{const b=this;return function(..._){const j=_.length>2?_[2]:void 0;return j&&b.addJsEventLogEntry({event:"pushstate",to:String(j),state:_.length>1?JSON.stringify(_[1]):null}),d.apply(this,_)}};this.override(this.window.history,"pushState",g),this.override(this.window.history,"replaceState",g)}override(h,g,d){if(!(g in h))return;const b=d(h[g]);h[g]=b}}e.RegisterBrowserEventsHandler=a},7725:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterEventsHandlerBase=void 0,e.RegisterEventsHandlerBase=class{constructor(s,o){this.commands=s,this.window=o}addJsEventLogEntry(s){const o={tag:"js_event",text:JSON.stringify(s),url:this.getURL()};this.commands.addLogEntry(o)}getURL(){return this.window?this.window.location.href:""}supportsPassiveEvents(){let s=!1;try{const o=()=>{},a={get passive(){return s=!0,!1}};this.window.addEventListener("offline",o,a),this.window.removeEventListener("offline",o,!1)}catch{s=!1}return s}}},5881:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterUIEventsHandler=void 0;const o=s(8593),a=s(7725);class c extends a.RegisterEventsHandlerBase{constructor(g,d){super(g,d),this.commands=g,this.window=d}init(){if(!this.window.document.addEventListener)return;const g=!this.supportsPassiveEvents()||{passive:!0,capture:!0};document.addEventListener("click",_=>{_.target instanceof Element&&this.addJsEventLogEntry(this.getEventData(_.target,"click"))},g),document.addEventListener("focusin",_=>{_.target instanceof Element&&this.addJsEventLogEntry(this.getEventData(_.target,"focus"))},g),document.addEventListener("focusout",_=>{_.target instanceof Element&&this.addJsEventLogEntry(this.getEventData(_.target,"blur"))},g),this.window.addEventListener("submit",_=>{_.target instanceof Element&&this.addJsEventLogEntry(this.getEventData(_.target,"submit"))},g);const d=new o.DebounceByElement(400),b=["Tab","Meta","MetaLeft","MetaRight","Alt","AltLeft","AltRight","Control","ControlLeft","ControlRight","Shift","ShiftLeft","ShiftRight","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","PageDown","PageUp","Home","End","CapsLock"];this.window.addEventListener("keyup",_=>{if(!(_.target instanceof HTMLInputElement||_.target instanceof HTMLTextAreaElement)||!_.composedPath||b.includes(_.code))return;const j=_.target,$=_.composedPath();d.run(j,()=>{this.sendKeyupLog(j,$)})},g)}sendKeyupLog(g,d){var b;const _=((b=g.getAttribute("type"))!==null&&b!==void 0?b:"").toLowerCase()==="password",j=d.filter(_e=>_e instanceof HTMLElement).some(_e=>"bfIgnoreKeypress"in _e.dataset),$=_||j;this.addJsEventLogEntry(Object.assign(Object.assign({},this.getEventData(g,"keyup")),{text:$?void 0:g.value}))}getEventData(g,d){const b=g.childElementCount<=1?g.textContent:void 0,_=g.tagName==="FORM"?g:null;return{event:d,url:this.window?this.window.location.href:"",xpath:(0,o.getXPath)(g),tag:g.tagName,id:g.id,text:b??void 0,action:_&&_.action?_.action:""}}}e.RegisterUIEventsHandler=c},7722:function(i,e,s){var o=this&&this.__createBinding||(Object.create?function(g,d,b,_){_===void 0&&(_=b);var j=Object.getOwnPropertyDescriptor(d,b);j&&!("get"in j?!d.__esModule:j.writable||j.configurable)||(j={enumerable:!0,get:function(){return d[b]}}),Object.defineProperty(g,_,j)}:function(g,d,b,_){_===void 0&&(_=b),g[_]=d[b]}),a=this&&this.__setModuleDefault||(Object.create?function(g,d){Object.defineProperty(g,"default",{enumerable:!0,value:d})}:function(g,d){g.default=d}),c=this&&this.__importStar||function(g){if(g&&g.__esModule)return g;var d={};if(g!=null)for(var b in g)b!=="default"&&Object.prototype.hasOwnProperty.call(g,b)&&o(d,g,b);return a(d,g),d};Object.defineProperty(e,"__esModule",{value:!0}),e.Browser=void 0;const h=c(s(1206));e.Browser=class{constructor(g){this.window=g,this.browser=h.getParser(this.window.navigator.userAgent)}getDeviceName(){return`${this.browser.getBrowserName()} ${this.browser.getBrowserVersion()} on ${this.browser.getOSName()} ${this.browser.getOSVersion()}`}getLanguage(){var g;return(g=this.window.navigator.language)!==null&&g!==void 0?g:this.window.navigator.userLanguage}getName(){return this.browser.getBrowserName()}getOSVersion(){return this.browser.getOSVersion()}}},2853:function(i,e,s){var o=this&&this.__awaiter||function(b,_,j,$){return new(j||(j=Promise))(function(_e,et){function tt(rt){try{nt($.next(rt))}catch(it){et(it)}}function st(rt){try{nt($.throw(rt))}catch(it){et(it)}}function nt(rt){var it;rt.done?_e(rt.value):(it=rt.value,it instanceof j?it:new j(function(ot){ot(it)})).then(tt,st)}nt(($=$.apply(b,_||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Bugfender=void 0;const a=s(7431),c=s(2607),h=s(7935),g=s(8593);class d{constructor(_,j,$){this.preInitProvider=_,this.sdkUserAgent=j,this.version=$,this.LogLevel=a.LogLevel,this.initDeferred=(0,g.createDeferred)(),this.commands=this.preInitProvider.provideCommandsQueue()}init(_){return o(this,void 0,void 0,function*(){const j=this.preInitProvider.provideOperationModes(),$=this.preInitProvider.provideSDKOptionsValidator();if(this.options=$.init(_),this.provider=new h.MainProvider(this.options,this.preInitProvider,this.sdkUserAgent,this.version),this.processor=yield this.provider.getStorageProcessor(),this.options.debug){const st=this.preInitProvider.provideAPIFeatureDetection();this.provider.getLogger(d.name).log("DEBUG",{debug:this.options.debug,operation:{mode:yield j.getMode(),isMultiTab:yield j.isMultiTab(),isMultiThread:yield j.isMultiThread()},features:{broadcastChannel:yield st.isBroadcastChannelSupported(),indexedDB:yield st.isIndexedDBSupported(),localStorage:st.isLocalStorageSupported(),sessionStorage:st.isSessionStorageSupported(),worker:st.isWorkerSupported()}})}yield(yield this.provider.getResetStorage()).resetIfAppChanged(this.options.appID);const et=yield this.provider.getStorageWriterHub();et.init(this.options),this.options.logBrowserEvents&&this.provider.getRegisterBrowserEventsHandler().init(),this.options.logUIEvents&&this.provider.getRegisterUIEventsHandler().init(),this.options.registerErrorHandler&&this.provider.getRegisterErrorHandler().init(this),this.options.overrideConsoleMethods&&this.provider.getOverrideConsoleMethods().init(this.options.printToConsole),this.provider.getPrintToConsole().init(this.options.printToConsole),window.addEventListener("beforeunload",()=>o(this,void 0,void 0,function*(){this.processor.run()})),this.commands.init(et);const tt=this.preInitProvider.provideBrowser();this.setDeviceKey("$browser",tt.getName()),this.initDeferred.resolve()})}forceSendOnce(){this.commands.forceSendOnce()}getDeviceURL(){return o(this,void 0,void 0,function*(){yield this.initDeferred.promise;const _=yield this.provider.getDevice();return`${this.options.baseURL}/intent/${this.options.appID}/device/${_.getUDID()}`})}getSessionURL(){return o(this,void 0,void 0,function*(){yield this.initDeferred.promise;const _=yield this.provider.getCurrentSession();return`${this.options.baseURL}/intent/${this.options.appID}/session/${_.getUUID()}`})}getUserFeedback(_){return o(this,void 0,void 0,function*(){return this.preInitProvider.provideUserFeedback().show(_)})}log(..._){this.commands.addLogMessage(a.LogLevel.Debug,[..._])}warn(..._){this.commands.addLogMessage(a.LogLevel.Warning,[..._])}error(..._){this.commands.addLogMessage(a.LogLevel.Error,[..._])}trace(..._){this.commands.addLogMessage(a.LogLevel.Trace,[..._])}info(..._){this.commands.addLogMessage(a.LogLevel.Info,[..._])}fatal(..._){this.commands.addLogMessage(a.LogLevel.Fatal,[..._])}removeDeviceKey(_){this.commands.setDeviceKey(_,null)}sendLog(_){this.commands.addLogEntry(_)}sendIssue(_,j){return o(this,void 0,void 0,function*(){return this.commands.addIssue(c.IssueType.Issue,_,j)})}sendCrash(_,j){return o(this,void 0,void 0,function*(){return this.commands.addIssue(c.IssueType.Crash,_,j)})}sendUserFeedback(_,j){return o(this,void 0,void 0,function*(){return this.commands.addIssue(c.IssueType.Feedback,_,j)})}setDeviceKey(_,j){this.commands.setDeviceKey(_,j)}setForceEnabled(_){this.initDeferred.promise.then(()=>{this.provider.getStorageGuard().setDeviceForceEnabled(_)})}}e.Bugfender=d},1667:function(i,e,s){var o=this&&this.__createBinding||(Object.create?function(d,b,_,j){j===void 0&&(j=_);var $=Object.getOwnPropertyDescriptor(b,_);$&&!("get"in $?!b.__esModule:$.writable||$.configurable)||($={enumerable:!0,get:function(){return b[_]}}),Object.defineProperty(d,j,$)}:function(d,b,_,j){j===void 0&&(j=_),d[j]=b[_]}),a=this&&this.__setModuleDefault||(Object.create?function(d,b){Object.defineProperty(d,"default",{enumerable:!0,value:b})}:function(d,b){d.default=b}),c=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var b={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&o(b,d,_);return a(b,d),b};Object.defineProperty(e,"__esModule",{value:!0}),e.CallInfoFactory=void 0;const h=c(s(9180)),g=c(s(4595));e.CallInfoFactory=class{create(){try{throw new Error}catch(d){return this.getCallInfo(d)}}getCallInfo(d){try{const b=this.getStackTraceSync(d),_=b[b.length-1];return{file:"/"+_.fileName.substring(_.fileName.lastIndexOf("/")+1),line:_.lineNumber,method:_.functionName}}catch{return{file:void 0,line:void 0,method:void 0}}}getStackTraceSync(d){return d.stack||d["opera#sourceloc"]?h.parse(d):g.backtrace()}}},6110:function(i,e,s){var o=this&&this.__awaiter||function(h,g,d,b){return new(d||(d=Promise))(function(_,j){function $(tt){try{et(b.next(tt))}catch(st){j(st)}}function _e(tt){try{et(b.throw(tt))}catch(st){j(st)}}function et(tt){var st;tt.done?_(tt.value):(st=tt.value,st instanceof d?st:new d(function(nt){nt(st)})).then($,_e)}et((b=b.apply(h,g||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MonoChannel=e.Channel=e.createBroadcastChannel=e.MessageType=void 0;const a=s(8437);var c;(function(h){h.ForceSend="force-send",h.Ping="ping",h.Pong="pong"})(c=e.MessageType||(e.MessageType={})),e.createBroadcastChannel=function(){return new a.BroadcastChannel("bf-sdk")},e.Channel=class{constructor(h,g){this.channel=h,this.logger=g,this.leader=!1,this.onForceSendCb=()=>{},this.sessionsStatus={},this.channel.onmessage=d=>this.handleMessage(d),this.elector=(0,a.createLeaderElection)(this.channel,{fallbackInterval:2e3,responseTime:1e3}),this.leaderPromise=this.elector.awaitLeadership(),this.leaderPromise.then(()=>{this.logger.log("Now I'm the leader. 💪"),this.leader=!0})}setCurrentSession(h){this.session=h}handleMessage(h){var g,d;switch(h.type){case c.ForceSend:this.leader&&this.onForceSendCb();break;case c.Ping:h.toSessionUUID===((g=this.session)===null||g===void 0?void 0:g.getUUID())&&this.channel.postMessage({type:c.Pong,fromSessionUUID:h.toSessionUUID,toSessionUUID:h.fromSessionUUID});break;case c.Pong:h.toSessionUUID===((d=this.session)===null||d===void 0?void 0:d.getUUID())&&(this.sessionsStatus[h.fromSessionUUID]=!0)}}isLeader(){return this.leader}notifyForceSend(){this.leader?this.onForceSendCb():this.channel.postMessage({type:c.ForceSend})}onForceSend(h){this.onForceSendCb=h}onHasBecomeLeader(){return this.leaderPromise}isSessionActive(h){return o(this,void 0,void 0,function*(){const g=!!this.session;return!(g&&(!g||this.session.getUUID()!==h))||new Promise(d=>{this.sessionsStatus[h]=!1,this.channel.postMessage({type:c.Ping,fromSessionUUID:this.session.getUUID(),toSessionUUID:h}),setTimeout(()=>d(this.sessionsStatus[h]),250)})})}},e.MonoChannel=class{constructor(){this.onForceSendCb=()=>{},this.leaderPromise=Promise.resolve()}setCurrentSession(h){this.session=h}isLeader(){return!0}isSessionActive(h){return o(this,void 0,void 0,function*(){const g=!!this.session;return!this.session||g&&this.session.getUUID()===h})}notifyForceSend(){this.onForceSendCb()}onForceSend(h){this.onForceSendCb=h}onHasBecomeLeader(){return this.leaderPromise}}},7442:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CommandsQueue=void 0;const o=s(5049),a=s(8593);e.CommandsQueue=class{constructor(c,h,g){this.callInfoFactory=c,this.timer=h,this.uuidFactory=g,this.queue=[],this.storageDeferred=(0,a.createDeferred)()}init(c){this.storageDeferred.resolve(c),this.queue.forEach(h=>{this.handleCommand(h)})}handleCommand(c){if(this.storageDeferred.isResolved)switch(c.type){case o.CommandType.AddIssue:this.storageDeferred.value.addIssue(c);break;case o.CommandType.AddLogEntry:this.storageDeferred.value.addLogEntry(c);break;case o.CommandType.AddLogMessage:this.storageDeferred.value.addLogMessage(c);break;case o.CommandType.ForceSendOnce:this.storageDeferred.value.forceSendOnce();break;case o.CommandType.SetDeviceKey:this.storageDeferred.value.addDeviceKey(c);break;default:throw new a.UnreachableCaseError(c)}}add(c){this.storageDeferred.isFulfilled?this.handleCommand(c):this.queue.push(c)}addIssue(c,h,g){const d=(0,a.createDeferred)();return this.add({type:o.CommandType.AddIssue,issueType:c,title:h,text:g,uuid:this.uuidFactory.create(),callInfo:this.callInfoFactory.create(),url:d,time:this.timer.getTime()}),d.promise}addLogEntry(c){this.add({type:o.CommandType.AddLogEntry,log:c,callInfo:this.callInfoFactory.create(),time:this.timer.getTime()})}addLogMessage(c,h){this.add({type:o.CommandType.AddLogMessage,level:c,parameters:h,callInfo:this.callInfoFactory.create(),time:this.timer.getTime()})}forceSendOnce(){this.add({type:o.CommandType.ForceSendOnce})}setDeviceKey(c,h){this.add({type:o.CommandType.SetDeviceKey,key:c,value:h,callInfo:this.callInfoFactory.create(),time:this.timer.getTime()})}}},5049:(i,e)=>{var s;Object.defineProperty(e,"__esModule",{value:!0}),e.CommandType=void 0,(s=e.CommandType||(e.CommandType={})).AddIssue="add-issue",s.AddLogEntry="add-log-entry",s.AddLogMessage="add-log-message",s.ForceSendOnce="force-send-once",s.SetDeviceKey="set-device-key"},6871:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Connection=void 0,e.Connection=class{constructor(s){this.window=s}isOnline(){return this.window.navigator.onLine}}},3256:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CurrentSession=void 0;const o=s(8177);e.CurrentSession=class{constructor(a,c,h,g,d){this.device=a,this.logger=c,this.sessionStorage=h,this.sessionsTable=g,this.uuidFactory=d,this.reset()}getUUID(){return this.uuid}initSession(){const a=this.device.getUDID();this.logger.log("Init session"),this.uuid=this.uuidFactory.create(),this.sessionStorage.setItem(o.SessionStorageKey.SessionUUID,this.uuid),this.sessionStorage.setItem(o.SessionStorageKey.SessionUDID,a)}reset(){const a=this.sessionStorage.getItem(o.SessionStorageKey.SessionUUID);a===null?(this.logger.log("Session not available"),this.initSession()):(this.uuid=a,this.sessionStorage.getItem(o.SessionStorageKey.SessionUDID)!==this.device.getUDID()?(this.logger.log("Session Device UDID changed"),this.initSession()):this.logger.log(`Session UUID: ${this.uuid}`)),this.sessionsTable.addIfMissing({uuid:this.uuid,udid:this.device.getUDID()})}}},6422:function(i,e,s){var o=this&&this.__awaiter||function(d,b,_,j){return new(_||(_=Promise))(function($,_e){function et(nt){try{st(j.next(nt))}catch(rt){_e(rt)}}function tt(nt){try{st(j.throw(nt))}catch(rt){_e(rt)}}function st(nt){var rt;nt.done?$(nt.value):(rt=nt.value,rt instanceof _?rt:new _(function(it){it(rt)})).then(et,tt)}st((j=j.apply(d,b||[])).next())})},a=this&&this.__asyncValues||function(d){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b,_=d[Symbol.asyncIterator];return _?_.call(d):(d=typeof __values=="function"?__values(d):d[Symbol.iterator](),b={},j("next"),j("throw"),j("return"),b[Symbol.asyncIterator]=function(){return this},b);function j($){b[$]=d[$]&&function(_e){return new Promise(function(et,tt){(function(st,nt,rt,it){Promise.resolve(it).then(function(ot){st({value:ot,done:rt})},nt)})(et,tt,(_e=d[$](_e)).done,_e.value)})}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Database=void 0;const c=s(2998),h=s(8593);var g;(function(d){d[d.New=0]="New",d[d.V1=10]="V1",d[d.V2=20]="V2"})(g||(g={})),e.Database=class{constructor(d){this.db=(0,h.createDeferred)(),this.name=d??"bf_sdk",this.init()}init(){return o(this,void 0,void 0,function*(){const d=yield(0,c.openDB)(this.name,g.V2,{upgrade(b,_,j,$){var _e,et,tt,st;return o(this,void 0,void 0,function*(){if(_===g.New&&(b.createObjectStore("devicekeys",{keyPath:"id",autoIncrement:!0}).createIndex("sessionUUID","sessionUUID"),b.createObjectStore("issues",{keyPath:"id",autoIncrement:!0}).createIndex("sessionUUID","sessionUUID"),b.createObjectStore("logs",{keyPath:"id",autoIncrement:!0}).createIndex("sessionUUID","sessionUUID"),b.createObjectStore("sessions",{keyPath:"uuid"})),_===g.V1){const ot=$.objectStore("issues");try{for(var nt,rt=!0,it=a(ot);nt=yield it.next(),!(_e=nt.done);){st=nt.value,rt=!1;try{const ut=st,ht=Object.assign({},ut.value);ht.data.text=ht.data.markdown,delete ht.data.markdown,ut.update(ht)}finally{rt=!0}}}catch(ut){et={error:ut}}finally{try{rt||_e||!(tt=it.return)||(yield tt.call(it))}finally{if(et)throw et.error}}}})}});this.db.resolve(d)})}get(){return this.db.promise}}},1177:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryDeviceKeysTable=e.IDBDeviceKeysTable=void 0,e.IDBDeviceKeysTable=class{constructor(o){this.table=o}add(o){return this.table.add(o)}count(o){return this.table.countBy("sessionUUID",o)}deleteBatch(o){return this.table.deleteBatch(0,o)}getAll(){return this.table.getAll()}},e.InMemoryDeviceKeysTable=class{constructor(){this.data=[],this.idCounter=0}getNextID(){return this.idCounter++}add(o){return s(this,void 0,void 0,function*(){const a=this.getNextID();this.data.push(Object.assign(Object.assign({},o),{id:a}))})}count(o){return s(this,void 0,void 0,function*(){return this.data.filter(a=>a.sessionUUID===o).length})}deleteBatch(o){return s(this,void 0,void 0,function*(){this.data.splice(0,o)})}getAll(){return s(this,void 0,void 0,function*(){return[...this.data]})}}},8808:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryStorage=void 0,e.InMemoryStorage=class{constructor(){this.inMemoryStorage={}}clear(){this.inMemoryStorage={}}getItem(s){return Object.prototype.hasOwnProperty.call(this.inMemoryStorage,s)?this.inMemoryStorage[s]:null}key(s){var o;return(o=Object.keys(this.inMemoryStorage)[s])!==null&&o!==void 0?o:null}removeItem(s){delete this.inMemoryStorage[s]}setItem(s,o){this.inMemoryStorage[s]=String(o)}get length(){return Object.keys(this.inMemoryStorage).length}}},7941:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryIssuesTable=e.IDBIssuesTable=void 0,e.IDBIssuesTable=class{constructor(o){this.table=o}add(o){return this.table.add(o)}count(o){return this.table.countBy("sessionUUID",o)}deleteById(o){return this.table.deleteByIdx(o)}getBatch(o,a){return this.table.getBatch(o,a)}},e.InMemoryIssuesTable=class{constructor(){this.data=[],this.idCounter=0}getNextID(){return this.idCounter++}add(o){return s(this,void 0,void 0,function*(){const a=this.getNextID();this.data.push(Object.assign(Object.assign({},o),{id:a}))})}count(o){return s(this,void 0,void 0,function*(){return this.data.filter(a=>a.sessionUUID===o).length})}deleteById(o){return s(this,void 0,void 0,function*(){const a=this.data.findIndex(c=>c.id===o);a!==-1&&this.data.splice(a,1)})}getBatch(o,a){return s(this,void 0,void 0,function*(){return this.data.filter(c=>c.sessionUUID===o).slice(0,a)})}}},3856:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryLogsTable=e.IDBLogsTable=void 0,e.IDBLogsTable=class{constructor(o,a){this.table=o,this.logFactory=a}add(o){return this.table.add(o)}count(o){return this.table.countBy("sessionUUID",o)}deleteBatch(o,a){return this.table.deleteBatch(0,a,["sessionUUID",o])}deleteOldLogs(o,a=10){return s(this,void 0,void 0,function*(){const c=yield this.table.getBatch(o,a);if(c.length<=1)return;const h={sessionUUID:o,data:this.logFactory.createGapLog(c.map(g=>g.data))};yield Promise.all([this.table.patchByIdx(c[0].id,h),this.table.deleteBatch(1,a-1,["sessionUUID",o])])})}getBatch(o,a){return this.table.getBatch(o,a)}},e.InMemoryLogsTable=class{constructor(o,a){this.logFactory=o,this.storageLimit=a,this.data=[],this.idCounter=0}getNextID(){return this.idCounter++}add(o){return s(this,void 0,void 0,function*(){if(this.data.length>=this.storageLimit){const c=new Error("InMemory storage quota exceeded");throw c.name="QuotaExceededError",c}const a=this.getNextID();this.data.push(Object.assign(Object.assign({},o),{id:a}))})}count(o){return s(this,void 0,void 0,function*(){return this.data.filter(a=>a.sessionUUID===o).length})}deleteBatch(o,a){return s(this,void 0,void 0,function*(){const c=[];let h=0;for(let g=0;gc.data)),this.data.splice(1,9))})}getBatch(o,a){return s(this,void 0,void 0,function*(){return this.data.filter(c=>c.sessionUUID===o).slice(0,a)})}}},253:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.InMemorySessionsTable=e.IDBSessionsTable=void 0,e.IDBSessionsTable=class{constructor(o){this.table=o}addIfMissing(o){return s(this,void 0,void 0,function*(){if((yield this.table.countBy("uuid",o.uuid))===0)return this.table.add(o)})}delete(o){return this.table.deleteByIdx(o)}getAll(){return this.table.getAll()}update(o,a){return this.table.patchByIdx(o,a)}},e.InMemorySessionsTable=class{constructor(){this.data=[]}addIfMissing(o){return s(this,void 0,void 0,function*(){this.data.some(a=>a.uuid===o.uuid)||this.data.push(o)})}delete(o){return s(this,void 0,void 0,function*(){const a=this.data.findIndex(c=>c.uuid===o);a!==-1&&this.data.splice(a,1)})}getAll(){return s(this,void 0,void 0,function*(){return[...this.data]})}update(o,a){return s(this,void 0,void 0,function*(){const c=this.data.findIndex(h=>h.uuid===o);c!==-1&&(this.data[c]=Object.assign(Object.assign({},this.data[c]),a))})}}},7967:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Table=void 0,e.Table=class{constructor(o,a){this.dbPromise=o,this.store=a}add(o){return s(this,void 0,void 0,function*(){yield(yield this.dbPromise).add(this.store,o)})}clear(){return s(this,void 0,void 0,function*(){yield(yield this.dbPromise).clear(this.store)})}countBy(o,a){return s(this,void 0,void 0,function*(){const c=(yield this.dbPromise).transaction(this.store,"readonly");let h,g=0;if(o!==c.store.keyPath){const d=c.store.index(o),b=IDBKeyRange.only(a);h=yield d.openCursor(b)}else h=yield c.store.openCursor(IDBKeyRange.only(a));for(;h;)g++,h=yield h.continue();return g})}deleteBatch(o,a,c){return s(this,void 0,void 0,function*(){const h=(yield this.dbPromise).transaction(this.store,"readwrite");let g,d=0;if(c)if(c[0]!==h.store.keyPath){const b=h.store.index(c[0]),_=IDBKeyRange.only(c[1]);g=yield b.openCursor(_)}else g=yield h.store.openCursor(IDBKeyRange.only(c[1]));else g=yield h.store.openCursor();for(;g&&(d>=o&&g.delete(),d++,d!==o+a);)g=yield g.continue()})}deleteByIdx(o){return s(this,void 0,void 0,function*(){return(yield this.dbPromise).delete(this.store,o)})}getAll(){return s(this,void 0,void 0,function*(){return(yield this.dbPromise).getAll(this.store)})}getBatch(o,a){return s(this,void 0,void 0,function*(){const c=(yield this.dbPromise).transaction(this.store,"readonly").store.index("sessionUUID"),h=IDBKeyRange.only(o);let g=yield c.openCursor(h);const d=[];let b=0;for(;g&&(d.push(g.value),b++,b!==a);)g=yield g.continue();return d})}patchByIdx(o,a){return s(this,void 0,void 0,function*(){const c=(yield this.dbPromise).transaction(this.store,"readwrite"),h=yield c.store.get(o);yield c.store.put(Object.assign(Object.assign({},h),a))})}}},8955:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Device=void 0;const o=s(8177);e.Device=class{constructor(a,c,h,g){this.browser=a,this.localStorage=c,this.sdkVersion=h,this.uuidFactory=g}getDeviceData(){let a=this.localStorage.getItem(o.LocalStorageKey.DeviceData);return a===null&&(a="{}"),JSON.parse(a)}getInfo(a){return{udid:this.getUDID(),name:a.deviceName,device_type:"",firebase_test_lab:!1,key_values:this.getDeviceData(),language:this.browser.getLanguage(),os_version:this.browser.getOSVersion(),sdk_type:"web",sdk_version:this.sdkVersion.toString(),build:a.build,version:a.version}}getUDID(){let a=this.localStorage.getItem(o.LocalStorageKey.DeviceUDID);return a===null&&(a=this.uuidFactory.create(),this.localStorage.setItem(o.LocalStorageKey.DeviceUDID,a)),a}setDeviceKey(a,c){const h=this.getDeviceData();c===null?delete h[a]:h[a]=c,this.localStorage.setItem(o.LocalStorageKey.DeviceData,JSON.stringify(h))}}},2485:function(i,e,s){var o=this&&this.__decorate||function(_,j,$,_e){var et,tt=arguments.length,st=tt<3?j:_e===null?_e=Object.getOwnPropertyDescriptor(j,$):_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")st=Reflect.decorate(_,j,$,_e);else for(var nt=_.length-1;nt>=0;nt--)(et=_[nt])&&(st=(tt<3?et(st):tt>3?et(j,$,st):et(j,$))||st);return tt>3&&st&&Object.defineProperty(j,$,st),st},a=this&&this.__metadata||function(_,j){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(_,j)},c=this&&this.__awaiter||function(_,j,$,_e){return new($||($=Promise))(function(et,tt){function st(it){try{rt(_e.next(it))}catch(ot){tt(ot)}}function nt(it){try{rt(_e.throw(it))}catch(ot){tt(ot)}}function rt(it){var ot;it.done?et(it.value):(ot=it.value,ot instanceof $?ot:new $(function(ut){ut(ot)})).then(st,nt)}rt((_e=_e.apply(_,j||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.APIFeatureDetection=void 0;const h=s(8593),g=new Map,d=(0,h.CacheDecoratorFactory)(g);class b{constructor(j,$,_e,et,tt){this.indexedDB=j,this.localStorage=$,this.sessionStorage=_e,this.broadcastChannel=et,this.worker=tt}isBroadcastChannelSupported(){return c(this,void 0,void 0,function*(){return typeof this.broadcastChannel=="function"||(yield this.isIndexedDBSupported())||this.isLocalStorageSupported()})}isIndexedDBSupported(){return new Promise((j,$)=>{const _e=this.indexedDB.open("bf_sdk_test");_e.onerror=()=>j(!1),_e.onsuccess=()=>{j(!0),_e.result.close()}})}isLocalStorageSupported(){return this.isStorageSupported(this.localStorage)}isSessionStorageSupported(){return this.isStorageSupported(this.sessionStorage)}isWorkerSupported(){return!!this.worker}isStorageSupported(j){try{const $="Bf8taM%GhLkg";return j.setItem($,$),j.removeItem($),!0}catch{return!1}}}o([d(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],b.prototype,"isBroadcastChannelSupported",null),o([d(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],b.prototype,"isIndexedDBSupported",null),o([d(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Boolean)],b.prototype,"isLocalStorageSupported",null),o([d(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Boolean)],b.prototype,"isSessionStorageSupported",null),o([d(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Boolean)],b.prototype,"isWorkerSupported",null),e.APIFeatureDetection=b},3095:function(i,e){var s,o=this&&this.__awaiter||function(a,c,h,g){return new(h||(h=Promise))(function(d,b){function _(_e){try{$(g.next(_e))}catch(et){b(et)}}function j(_e){try{$(g.throw(_e))}catch(et){b(et)}}function $(_e){var et;_e.done?d(_e.value):(et=_e.value,et instanceof h?et:new h(function(tt){tt(et)})).then(_,j)}$((g=g.apply(a,c||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.OperationModes=e.OperationMode=void 0,function(a){a.A="A",a.B="B",a.C="C"}(s=e.OperationMode||(e.OperationMode={})),e.OperationModes=class{constructor(a){this.apiFeatures=a}hasLeaderElection(){return this.apiFeatures.isBroadcastChannelSupported()}hasSharedDB(){return this.apiFeatures.isIndexedDBSupported()}hasSharedDeviceInfo(){return this.apiFeatures.isLocalStorageSupported()}getMode(){return o(this,void 0,void 0,function*(){const[a,c]=yield Promise.all([this.isMultiTab(),this.isMultiThread()]);return a?c?s.A:s.B:s.C})}isMultiTab(){return o(this,void 0,void 0,function*(){return(yield this.hasLeaderElection())&&(yield this.hasSharedDB())&&this.hasSharedDeviceInfo()})}isMultiThread(){return o(this,void 0,void 0,function*(){return(yield this.hasSharedDB())&&this.apiFeatures.isWorkerSupported()})}}},9075:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.HttpClient=void 0,e.HttpClient=class{constructor(s,o,a){this.apiURL=s,this.appKey=o,this.sdkUserAgent=a}post(s,o){const a=new XMLHttpRequest;return a.open("POST",this.apiURL+s),a.setRequestHeader("Content-Type","application/json;charset=UTF-8"),a.setRequestHeader("X-User-Agent",this.sdkUserAgent),a.setRequestHeader("X-App-Token",this.appKey),new Promise((c,h)=>{a.onreadystatechange=()=>{a.readyState===4&&(a.status!==200&&a.status!==304?h():c(JSON.parse(a.responseText)))},a.send(JSON.stringify(o))})}}},8572:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LogFactory=void 0;const o=s(7431);e.LogFactory=class{constructor(a=32e3){this.maxLogLength=a}createFromDeviceKey(a,c,h,g){return this.createFromEntry({tag:"bf_key_value",text:`Set device data "${a}"="${c}"`},h,g)}createFromEntry(a,c,h){var g,d,b,_,j,$,_e,et,tt,st;let nt=(g=a.text)!==null&&g!==void 0?g:"";return nt.length>=this.maxLogLength&&(nt=nt.substring(0,this.maxLogLength)+"…"),{x:h.iso,t:nt,m:(b=(d=a.method)!==null&&d!==void 0?d:c.method)!==null&&b!==void 0?b:"",at:h.epoch,tg:(_=a.tag)!==null&&_!==void 0?_:"",f:($=(j=a.file)!==null&&j!==void 0?j:c.file)!==null&&$!==void 0?$:"",l:(et=(_e=a.line)!==null&&_e!==void 0?_e:c.line)!==null&&et!==void 0?et:0,ll:(tt=a.level)!==null&&tt!==void 0?tt:o.LogLevel.Debug,u:(st=a.url)!==null&&st!==void 0?st:""}}createFromIssue(a,c,h){return this.createFromEntry({level:o.LogLevel.Error,tag:"bf_issue",text:a},c,h)}createGapLog(a){const c=JSON.stringify({bf_start_date:a[0].at,bf_end_date:a[a.length-1].at});return{x:a[0].x,t:c,m:"",at:a[0].at,tg:"bf_gap_log",f:"",l:0,ll:0,u:a[0].u}}}},5473:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NoopLogger=e.ConsoleLogger=void 0;class s{constructor(c,h){this.console=c,this.tag=h}error(c,h){c=`[BF-SDK]${this.tag?`[${this.tag}] `:""}${c}`,h?this.console.log(c,h):this.console.log(c)}getTagged(c){return new s(this.console,c)}log(c,h){c=`[BF-SDK]${this.tag?`[${this.tag}] `:""}${c}`,h?this.console.log(c,h):this.console.log(c)}}e.ConsoleLogger=s;class o{error(){}getTagged(){return new o}log(){}}e.NoopLogger=o},7935:function(i,e,s){var o=this&&this.__decorate||function(Ct,Rt,At,It){var zt,Ht=arguments.length,$t=Ht<3?Rt:It===null?It=Object.getOwnPropertyDescriptor(Rt,At):It;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$t=Reflect.decorate(Ct,Rt,At,It);else for(var Bt=Ct.length-1;Bt>=0;Bt--)(zt=Ct[Bt])&&($t=(Ht<3?zt($t):Ht>3?zt(Rt,At,$t):zt(Rt,At))||$t);return Ht>3&&$t&&Object.defineProperty(Rt,At,$t),$t},a=this&&this.__metadata||function(Ct,Rt){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Ct,Rt)},c=this&&this.__awaiter||function(Ct,Rt,At,It){return new(At||(At=Promise))(function(zt,Ht){function $t(Gt){try{Wt(It.next(Gt))}catch(Kt){Ht(Kt)}}function Bt(Gt){try{Wt(It.throw(Gt))}catch(Kt){Ht(Kt)}}function Wt(Gt){var Kt;Gt.done?zt(Gt.value):(Kt=Gt.value,Kt instanceof At?Kt:new At(function(Zt){Zt(Kt)})).then($t,Bt)}Wt((It=It.apply(Ct,Rt||[])).next())})},h=this&&this.__importDefault||function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}};Object.defineProperty(e,"__esModule",{value:!0}),e.MainProvider=void 0;const g=s(7431),d=s(1562),b=s(2329),_=s(277),j=s(5881),$=s(6110),_e=s(6871),et=s(3256),tt=s(6422),st=s(7967),nt=s(1177),rt=s(8808),it=s(7941),ot=s(3856),ut=s(253),ht=s(8955),pt=s(9075),yt=s(8572),gt=s(5473),xt=s(6105),wt=s(7273),vt=s(1310),ft=s(3103),lt=s(5041),dt=s(6693),bt=s(84),at=s(8593),ct=h(s(4657)),mt=s(4319),Et=new Map,jt=(0,at.CacheDecoratorFactory)(Et);class kt{constructor(Rt,At,It,zt){this.options=Rt,this.preInitProvider=At,this.sdkUserAgent=It,this.version=zt,this.apiFeatures=this.preInitProvider.provideAPIFeatureDetection(),this.commandsQueue=this.preInitProvider.provideCommandsQueue(),this.console=this.preInitProvider.provideWindow().console,this.operationModes=this.preInitProvider.provideOperationModes(),this.uuidFactory=this.preInitProvider.provideUUIDFactory(),this.window=this.preInitProvider.provideWindow()}getApiClient(){const Rt=new pt.HttpClient(this.options.apiURL,this.options.appKey,this.sdkUserAgent);return new d.ApiClient(this.options.appKey,Rt)}getChannel(){return c(this,void 0,void 0,function*(){let Rt;return Rt=(yield this.operationModes.isMultiTab())?new $.Channel((0,$.createBroadcastChannel)(),this.getLogger("Channel")):new $.MonoChannel,this.getCurrentSession().then(At=>{Rt.setCurrentSession(At)}),Rt})}getConnection(){return new _e.Connection(this.window)}getCurrentSession(){return c(this,void 0,void 0,function*(){return new et.CurrentSession(this.getDevice(),this.getLogger("CurrentSession"),this.getSessionStorage(),yield this.getSessionsTable(),this.uuidFactory)})}getDatabase(){return new tt.Database}getDevice(){return new ht.Device(this.preInitProvider.provideBrowser(),this.getLocalStorage(),this.version,this.uuidFactory)}getInitDeferred(){return(0,at.createDeferred)()}getDeviceKeysTable(){return c(this,void 0,void 0,function*(){return(yield this.operationModes.isMultiTab())?new nt.IDBDeviceKeysTable(new st.Table(this.getDatabase().get(),"devicekeys")):new nt.InMemoryDeviceKeysTable})}getIssuesTable(){return c(this,void 0,void 0,function*(){return(yield this.operationModes.isMultiTab())?new it.IDBIssuesTable(new st.Table(this.getDatabase().get(),"issues")):new it.InMemoryIssuesTable})}getLogger(Rt){return this.options.debug?new gt.ConsoleLogger(this.console,Rt):new gt.NoopLogger}getLogsTable(){return c(this,void 0,void 0,function*(){return(yield this.operationModes.isMultiTab())?new ot.IDBLogsTable(new st.Table(this.getDatabase().get(),"logs"),new yt.LogFactory):new ot.InMemoryLogsTable(new yt.LogFactory,3e3)})}getOverrideConsoleMethods(){return new b.OverrideConsoleMethods(this.commandsQueue,this.window)}getPrintToConsole(){return new g.PrintToConsole(this.console)}getRegisterBrowserEventsHandler(){return new _.RegisterBrowserEventsHandler(this.commandsQueue,this.window)}getRegisterErrorHandler(){return new g.RegisterErrorHandler(this.window)}getRegisterUIEventsHandler(){return new j.RegisterUIEventsHandler(this.commandsQueue,this.window)}getResetStorage(){return c(this,void 0,void 0,function*(){return new xt.ResetStorage(this.apiFeatures,yield this.getCurrentSession(),this.getDatabase(),this.getLocalStorage(),this.getSessionStorage())})}getStorageGuard(){return new vt.StorageGuard(this.getApiClient(),this.getDevice(),this.getLogger("StorageGuard"),this.options)}getStorageProcessor(){return c(this,void 0,void 0,function*(){const Rt=new wt.SessionFactory(this.getDevice(),this.version,this.window);return new ft.StorageProcessor(this.getApiClient(),yield this.getChannel(),this.getConnection(),this.getLogger("StorageProcessor"),this.getDevice(),yield this.getDeviceKeysTable(),yield this.getIssuesTable(),yield this.getLogsTable(),this.options,Rt,yield this.getSessionsTable(),yield this.getStorageGuard())})}getStorageWriterHub(){return c(this,void 0,void 0,function*(){let Rt;return Rt=(yield this.operationModes.isMultiThread())?new ct.default:new dt.MainThreadStorageWriterHandler(new lt.StorageWriter(yield this.getDeviceKeysTable(),yield this.getIssuesTable(),new yt.LogFactory,yield this.getLogsTable())),new bt.StorageWriterHub(yield this.getChannel(),this.getDevice(),Rt,new mt.EventPrinter(this.console,this.options.printToConsole),this.options,this.getPrintToConsole(),yield this.getCurrentSession(),yield this.getStorageGuard(),this.uuidFactory,this.window)})}getLocalStorage(){return this.apiFeatures.isLocalStorageSupported()?this.window.localStorage:new rt.InMemoryStorage}getSessionStorage(){return this.apiFeatures.isSessionStorageSupported()?this.window.sessionStorage:new rt.InMemoryStorage}getSessionsTable(){return c(this,void 0,void 0,function*(){return(yield this.operationModes.isMultiTab())?new ut.IDBSessionsTable(new st.Table(this.getDatabase().get(),"sessions")):new ut.InMemorySessionsTable})}}o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Object)],kt.prototype,"getApiClient",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getChannel",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",_e.Connection)],kt.prototype,"getConnection",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getCurrentSession",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",tt.Database)],kt.prototype,"getDatabase",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Object)],kt.prototype,"getDevice",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Object)],kt.prototype,"getInitDeferred",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getDeviceKeysTable",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getIssuesTable",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getLogsTable",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",b.OverrideConsoleMethods)],kt.prototype,"getOverrideConsoleMethods",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",g.PrintToConsole)],kt.prototype,"getPrintToConsole",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",_.RegisterBrowserEventsHandler)],kt.prototype,"getRegisterBrowserEventsHandler",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",g.RegisterErrorHandler)],kt.prototype,"getRegisterErrorHandler",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",j.RegisterUIEventsHandler)],kt.prototype,"getRegisterUIEventsHandler",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getResetStorage",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Object)],kt.prototype,"getStorageGuard",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getStorageProcessor",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getStorageWriterHub",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Storage)],kt.prototype,"getLocalStorage",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Storage)],kt.prototype,"getSessionStorage",null),o([jt(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Promise)],kt.prototype,"getSessionsTable",null),e.MainProvider=kt},3758:function(i,e,s){var o=this&&this.__decorate||function(rt,it,ot,ut){var ht,pt=arguments.length,yt=pt<3?it:ut===null?ut=Object.getOwnPropertyDescriptor(it,ot):ut;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")yt=Reflect.decorate(rt,it,ot,ut);else for(var gt=rt.length-1;gt>=0;gt--)(ht=rt[gt])&&(yt=(pt<3?ht(yt):pt>3?ht(it,ot,yt):ht(it,ot))||yt);return pt>3&&yt&&Object.defineProperty(it,ot,yt),yt},a=this&&this.__metadata||function(rt,it){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(rt,it)};Object.defineProperty(e,"__esModule",{value:!0}),e.PreInitProvider=void 0;const c=s(7722),h=s(1667),g=s(7442),d=s(2485),b=s(3095),_=s(7998),j=s(5925),$=s(7075),_e=s(8593),et=s(6884),tt=new Map,st=(0,_e.CacheDecoratorFactory)(tt);class nt{constructor(it){this.window=it}provideAPIFeatureDetection(){return new d.APIFeatureDetection(this.window.indexedDB,this.window.localStorage,this.window.sessionStorage,this.window.BroadcastChannel,this.window.Worker)}provideBrowser(){return new c.Browser(this.window)}provideCommandsQueue(){return new g.CommandsQueue(new h.CallInfoFactory,new j.Timer,this.provideUUIDFactory())}provideOperationModes(){return new b.OperationModes(this.provideAPIFeatureDetection())}provideSDKOptionsValidator(){return new _.SDKOptionsValidator(this.provideBrowser())}provideUserFeedback(){return new $.UserFeedback(this.provideCommandsQueue())}provideUUIDFactory(){return new et.UUIDFactory}provideWindow(){return this.window}}o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",d.APIFeatureDetection)],nt.prototype,"provideAPIFeatureDetection",null),o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Object)],nt.prototype,"provideBrowser",null),o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",g.CommandsQueue)],nt.prototype,"provideCommandsQueue",null),o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",b.OperationModes)],nt.prototype,"provideOperationModes",null),o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",_.SDKOptionsValidator)],nt.prototype,"provideSDKOptionsValidator",null),o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",$.UserFeedback)],nt.prototype,"provideUserFeedback",null),o([st(),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",Object)],nt.prototype,"provideUUIDFactory",null),e.PreInitProvider=nt},6105:function(i,e,s){var o=this&&this.__awaiter||function(c,h,g,d){return new(g||(g=Promise))(function(b,_){function j(et){try{_e(d.next(et))}catch(tt){_(tt)}}function $(et){try{_e(d.throw(et))}catch(tt){_(tt)}}function _e(et){var tt;et.done?b(et.value):(tt=et.value,tt instanceof g?tt:new g(function(st){st(tt)})).then(j,$)}_e((d=d.apply(c,h||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ResetStorage=void 0;const a=s(8177);e.ResetStorage=class{constructor(c,h,g,d,b){this.apiFeatures=c,this.session=h,this.database=g,this.localStorage=d,this.sessionStorage=b}resetIfAppChanged(c){return o(this,void 0,void 0,function*(){const h=this.localStorage.getItem(a.LocalStorageKey.AppID);if(h!==null&&h!==c){const g=[a.LocalStorageKey.AppID,a.LocalStorageKey.DeviceData,a.LocalStorageKey.DeviceUDID],d=[a.SessionStorageKey.SessionUDID,a.SessionStorageKey.SessionUUID];if(g.forEach(b=>this.localStorage.removeItem(b)),d.forEach(b=>this.sessionStorage.removeItem(b)),this.session.reset(),yield this.apiFeatures.isIndexedDBSupported()){const b=yield this.database.get();yield Promise.all([b.clear("devicekeys"),b.clear("issues"),b.clear("logs"),b.clear("sessions")])}}this.localStorage.setItem(a.LocalStorageKey.AppID,c)})}}},7998:function(i,e,s){var o=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.SDKOptionsValidator=void 0;const a=o(s(6177)),c=s(2023),h=s(7431);e.SDKOptionsValidator=class{constructor(g){this.browser=g,this.rules={appKey:["required","string"],apiURL:["string","url"],build:["string"],baseURL:["string","url"],debug:["boolean"],deviceName:["string"],overrideConsoleMethods:["boolean"],printToConsole:["boolean"],logBrowserEvents:["boolean"],logUIEvents:["boolean"],registerErrorHandler:["boolean"],version:["string"]}}init(g){return g=(0,h.prepareOptions)(g),(0,h.validate)(g,this.rules),Object.assign({appID:a.default.encode(c.sha256.array(g.appKey)).substring(0,10),apiURL:"https://api.bugfender.com",baseURL:"https://dashboard.bugfender.com",debug:!1,deviceName:this.browser.getDeviceName(),overrideConsoleMethods:!0,printToConsole:!0,logBrowserEvents:!0,logUIEvents:!0,registerErrorHandler:!0,version:"0.0.0",build:"0"},g)}}},7273:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SessionFactory=void 0,e.SessionFactory=class{constructor(s,o,a){this.device=s,this.sdkVersion=o,this.window=a}create(s,o){return{device:this.device.getInfo(o),orientation:0,batteryLevel:-1,ram_total:0,ram_free:0,ram_used:0,language:this.window.navigator.language,time:new Date().toISOString(),sdk_type:"web",sdk_version:this.sdkVersion,session_uid:s,app_version:{app:{key:o.appKey},version:o.version,build:o.build}}}}},1310:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StorageGuard=void 0,e.StorageGuard=class{constructor(s,o,a,c){this.api=s,this.device=o,this.logger=a,this.options=c,this.deviceForceEnabled=!1,this.isAppValid=!0,this.isDeviceEnabled=!1,this.checkIsDeviceEnabled(),setInterval(this.checkIsDeviceEnabled.bind(this),3e5)}canProcess(){return this.logger.log("canProcess",{isAppValid:this.isAppValid,isDeviceEnabled:this.isDeviceEnabled,deviceForceEnabled:this.deviceForceEnabled}),this.isAppValid&&(this.isDeviceEnabled||this.deviceForceEnabled)}canWrite(){return this.isAppValid}checkIsDeviceEnabled(){const s=this.device.getInfo(this.options);return this.api.getDeviceStatus(s).then(o=>{this.isAppValid=o.isAppValid,this.isDeviceEnabled=o.isDeviceEnabled},()=>{})}setDeviceForceEnabled(s){this.deviceForceEnabled=s}}},8177:(i,e)=>{var s,o;Object.defineProperty(e,"__esModule",{value:!0}),e.SessionStorageKey=e.LocalStorageKey=void 0,(o=e.LocalStorageKey||(e.LocalStorageKey={})).AppID="bf_app_id",o.DeviceData="bf_device_data",o.DeviceUDID="bf_device_udid",(s=e.SessionStorageKey||(e.SessionStorageKey={})).SessionUDID="bf_session_udid",s.SessionUUID="bf_session_uuid"},3103:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.StorageProcessor=void 0,e.StorageProcessor=class{constructor(o,a,c,h,g,d,b,_,j,$,_e,et){this.api=o,this.channel=a,this.connection=c,this.logger=h,this.device=g,this.deviceKeysTable=d,this.issuesTable=b,this.logsTable=_,this.options=j,this.sessionFactory=$,this.sessionsTable=_e,this.storageGuard=et,this.BATCH_SIZE=500,this.runIntervalMs=15e3,this.forceSend=!1,this.isRunning=!1,setInterval(this.run.bind(this),this.runIntervalMs),this.channel.onHasBecomeLeader().then(()=>{this.run()}),this.channel.onForceSend(()=>{this.forceSend=!0})}cleanupSessions(o){return s(this,void 0,void 0,function*(){for(const a of o){const c=yield this.channel.isSessionActive(a.uuid),h=yield this.hasData(a);if(!c&&!h)try{yield this.sessionsTable.delete(a.uuid)}catch{}}})}hasData(o){return s(this,void 0,void 0,function*(){try{const[a,c,h]=yield Promise.all([this.logsTable.count(o.uuid),this.issuesTable.count(o.uuid),this.deviceKeysTable.count(o.uuid)]);return a>0||c>0||h>0}catch{return!0}})}registerSession(o){return s(this,void 0,void 0,function*(){if(!o.id){const a=this.sessionFactory.create(o.uuid,this.options),{id:c}=yield this.api.sendSession(a);o.id=c,this.sessionsTable.update(o.uuid,{id:c})}return o})}canRun(){return this.connection.isOnline()&&this.channel.isLeader()&&!this.isRunning}run(){return s(this,void 0,void 0,function*(){const o=this.canRun();if(this.logger.log("Processing...",{forceSend:this.forceSend,isRunning:this.isRunning,isLeader:this.channel.isLeader(),isOnline:this.connection.isOnline(),canRun:o}),!o)return void this.logger.log("Aborted.");this.isRunning=!0;const a=this.forceSend,c=yield this.sessionsTable.getAll(),h=[],g=this.storageGuard.canProcess()||this.forceSend;let d=!1;this.logger.log("Should process device: "+(g?"Yes":"No")),this.logger.log(`${c.length} session/s found`),c.sort((b,_)=>+!!_.id-+!!b.id);for(const b of c){const _=yield this.registerSession(b),j=yield this.sendIssues(_);d=d||j,j||g?(h.push(this.sendLogs(_)),this.logger.log(`Session processed. ID: ${_.id}`,{sessionHasIssues:j})):this.logger.log(`Session skipped. ID: ${_.id}`)}(d||g)&&h.push(this.sendDeviceData()),yield Promise.all(h),yield this.cleanupSessions(c),this.isRunning=!1,a&&(this.forceSend=!1),this.logger.log("Done")})}sendDeviceData(){return s(this,void 0,void 0,function*(){try{const o={},a=yield this.deviceKeysTable.getAll();a.forEach(c=>{o[c.data.key]=c.data.value}),a.length&&(yield Promise.all(Object.entries(o).map(([c,h])=>this.api.setDeviceKey(this.device.getUDID(),c,h))),yield this.deviceKeysTable.deleteBatch(a.length))}catch(o){this.logger.error("sendDeviceData error",o)}})}sendIssues(o){return s(this,void 0,void 0,function*(){try{const a=yield this.issuesTable.getBatch(o.uuid,this.BATCH_SIZE);for(const c of a){const h=c.data,g=`${this.options.baseURL}/intent/${this.options.appID}/issue/${h.uuid}`;yield this.api.sendIssue(h.uuid,g,h.title,h.text,h.type,o.id),yield this.issuesTable.deleteById(c.id)}return a.length>0}catch(a){return this.logger.error("sendIssues error",a),!1}})}sendLogs(o){return s(this,void 0,void 0,function*(){try{const a=(yield this.logsTable.getBatch(o.uuid,this.BATCH_SIZE)).map(c=>c.data);a.length&&(yield this.api.sendLogs(o.id,a),yield this.logsTable.deleteBatch(o.uuid,a.length))}catch(a){this.logger.error("sendLogs error",a)}})}}},6693:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MainThreadStorageWriterHandler=void 0,e.MainThreadStorageWriterHandler=class{constructor(s){this.storageWriter=s}postMessage(s){this.storageWriter.handleMessage(s)}}},84:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StorageWriterHub=void 0;const o=s(7431),a=s(3817),c=s(5049),h=s(2607);e.StorageWriterHub=class{constructor(g,d,b,_,j,$,_e,et,tt,st){this.channel=g,this.device=d,this.handler=b,this.eventPrinter=_,this.options=j,this.printToConsole=$,this.session=_e,this.storageGuard=et,this.uuidFactory=tt,this.window=st,this.sanitizer=new a.StorageWriterSanitizer}init(g){const d=this.session.getUUID();this.options=g,this.postMessage({type:"init",data:{options:g,sessionUUID:d}},!1)}postMessage(g,d=!0){if(!d||this.storageGuard.canWrite())try{this.handler.postMessage(this.sanitizer.sanitize(g))}catch{}}addDeviceKey(g){if(typeof g.key!="string")throw new Error("The device-key 'key' must be a string.");this.device.setDeviceKey(g.key,g.value),this.postMessage({type:"device-key",data:{key:g.key,value:g.value,callInfo:g.callInfo,time:g.time}}),this.eventPrinter.printDeviceKey(g.key,g.value)}addLogEntry(g,d=!0){var b;g.log.url=((b=g.log.url)!==null&&b!==void 0?b:this.window)?this.window.location.href:"";const _=this.mapToLogEntryText(g.log);this.postMessage({type:"log-entry",data:{log:_,callInfo:g.callInfo,time:g.time}}),d&&(this.isJsEventLogEntry(_)?this.eventPrinter.printJsEvent(_):this.printToConsole.printLog(_))}isJsEventLogEntry(g){return g.tag==="js_event"&&typeof g.text=="string"&&typeof g.url=="string"}mapToLogEntryText(g){return g.text&&(g.text=(0,o.formatLogEntryText)(g.text)),g}addLogMessage(g){const d={};switch(d.level=g.level,d.text=(0,o.format)(g.parameters),d.url=this.window?this.window.location.href:void 0,this.addLogEntry({type:c.CommandType.AddLogEntry,log:d,callInfo:g.callInfo,time:g.time},!1),g.level){case o.LogLevel.Debug:this.printToConsole.log(...g.parameters);break;case o.LogLevel.Warning:this.printToConsole.warn(...g.parameters);break;case o.LogLevel.Error:this.printToConsole.error(...g.parameters);break;case o.LogLevel.Trace:this.printToConsole.trace(...g.parameters);break;case o.LogLevel.Info:this.printToConsole.info(...g.parameters);break;case o.LogLevel.Fatal:this.printToConsole.error(...g.parameters)}}addIssue(g){if(typeof g.title!="string")throw new Error("The crash/issue/feedback 'title' must be a string.");switch(this.postMessage({type:"issue",data:{type:g.issueType,title:g.title,uuid:g.uuid,text:g.text,callInfo:g.callInfo,time:g.time}}),this.forceSendOnce(),g.url.resolve(`${this.options.baseURL}/intent/${this.options.appID}/issue/${g.uuid}`),g.issueType){case h.IssueType.Issue:this.printToConsole.warn(`Issue: ${g.title}. ${g.text}`);break;case h.IssueType.Crash:this.printToConsole.error(`Crash: ${g.title}. ${g.text}`);break;case h.IssueType.Feedback:this.printToConsole.info(`User Feedback: ${g.title}. -${g.text}`)}}forceSendOnce(){this.channel.notifyForceSend()}}},3817:(i,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StorageWriterSanitizer=void 0;const o=s(7431);e.StorageWriterSanitizer=class{sanitize(a){switch(a.type){case"device-key":{const c=["boolean","number","string"].includes(typeof a.data.value);a.data.key=(0,o.mapToString)(a.data.key),c||(a.data.value=(0,o.mapToString)(a.data.value));break}case"issue":a.data.title=(0,o.mapToString)(a.data.title),a.data.text=(0,o.mapToString)(a.data.text);break;case"log-entry":{const c=["tag","method","file","text","url"],h="line"in a.data.log&&a.data.log.line!==void 0,g=h&&typeof a.data.log.line=="number",d="level"in a.data.log&&a.data.log.level!==void 0,b=d&&o.LOG_LEVELS.includes(a.data.log.level);if(c.forEach(_=>{if(_ in a.data.log&&a.data.log[_]!==void 0)try{a.data.log[_]=(0,o.mapToString)(a.data.log[_])}catch{delete a.data.log[_]}}),h&&!g)try{a.data.log.line=(0,o.mapToNumber)(a.data.log.line)}catch{delete a.data.log.line}if(d&&!b)try{a.data.log.level=(0,o.mapToNumber)(a.data.log.level),o.LOG_LEVELS.includes(a.data.log.level)||delete a.data.log.level}catch{delete a.data.log.level}break}}return a}}},5041:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.StorageWriter=void 0,e.StorageWriter=class{constructor(o,a,c,h){this.deviceKeysTable=o,this.issuesTable=a,this.logFactory=c,this.logsTable=h,this.isClearingSpace=!1,this.logsQueue=[]}handleMessage(o){return s(this,void 0,void 0,function*(){switch(o.type){case"device-key":return this.addDeviceKey(o.data.key,o.data.value,o.data.callInfo,o.data.time);case"init":this.options=o.data.options,this.sessionUUID=o.data.sessionUUID;break;case"issue":return this.addIssue(o.data.type,o.data.title,o.data.text,o.data.uuid,o.data.callInfo,o.data.time);case"log-entry":return this.addLogEntry(o.data.log,o.data.callInfo,o.data.time)}})}addDeviceKey(o,a,c,h){this.deviceKeysTable.add({sessionUUID:this.sessionUUID,data:{key:o,value:a}}),this.addLog(this.logFactory.createFromDeviceKey(o,a,c,h))}addLog(o){return s(this,void 0,void 0,function*(){const a={sessionUUID:this.sessionUUID,data:o};if(this.isClearingSpace)this.logsQueue.push(a);else try{yield this.logsTable.add(a)}catch(c){this.isQuotaExceededError(c)&&(this.logsQueue.push(a),this.isClearingSpace=!0,yield this.logsTable.deleteOldLogs(this.sessionUUID),yield this.processLogsQueue(),this.isClearingSpace=!1)}})}addLogEntry(o,a,c){this.addLog(this.logFactory.createFromEntry(o,a,c))}addIssue(o,a,c,h,g,d){this.issuesTable.add({sessionUUID:this.sessionUUID,data:{title:a,text:c,type:o,uuid:h}}),this.addLog(this.logFactory.createFromIssue(h,g,d))}isQuotaExceededError(o){var a;return o.name==="QuotaExceededError"||((a=o.inner)===null||a===void 0?void 0:a.name)==="QuotaExceededError"}processLogsQueue(){return s(this,void 0,void 0,function*(){for(;this.logsQueue.length>0;){const o=this.logsQueue[0];try{yield this.logsTable.add(o),this.logsQueue.shift()}catch(a){this.isQuotaExceededError(a)&&(yield this.logsTable.deleteOldLogs(this.sessionUUID))}}})}}},5925:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0,e.Timer=class{constructor(s=()=>new Date){this.getNow=s,this.lastAbsoluteTime=0}getTime(){const s=this.getNow();let o=s.getTime();return o<=this.lastAbsoluteTime&&(o=this.lastAbsoluteTime+1),this.lastAbsoluteTime=o,{iso:s.toISOString(),epoch:o}}}},2607:(i,e)=>{var s;Object.defineProperty(e,"__esModule",{value:!0}),e.IssueType=void 0,(s=e.IssueType||(e.IssueType={})).Issue="issue",s.Crash="crash",s.Feedback="user-feedback"},7075:function(i,e,s){var o=this&&this.__awaiter||function(j,$,_e,et){return new(_e||(_e=Promise))(function(tt,st){function rt(ot){try{it(et.next(ot))}catch(ut){st(ut)}}function nt(ot){try{it(et.throw(ot))}catch(ut){st(ut)}}function it(ot){var ut;ot.done?tt(ot.value):(ut=ot.value,ut instanceof _e?ut:new _e(function(ht){ht(ut)})).then(rt,nt)}it((et=et.apply(j,$||[])).next())})},a=this&&this.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(e,"__esModule",{value:!0}),e.UserFeedback=void 0;const c=s(7431),h=s(8593),g=s(2607),d=a(s(5415)),b=a(s(3584));class _{constructor($,_e,et){this.options=$,this.onClose=_e,this.onSubmit=et,this.wrapperEl=document.createElement("div"),this.shadow=this.wrapperEl.attachShadow({mode:"closed"}),this.shadow.innerHTML=b.default,this.titleEl=this.querySelector("[data-bf-title]"),this.titleEl.innerText=this.options.title,this.hintEl=this.querySelector("[data-bf-hint]"),this.options.hint&&(this.hintEl.innerText=this.options.hint,this.hintEl.classList.remove("bf-modal__hint--hidden")),this.subjectEl=this.querySelector("[data-bf-subject]"),this.subjectEl.setAttribute("placeholder",this.options.subjectPlaceholder),this.feedbackEl=this.querySelector("[data-bf-feedback]"),this.feedbackEl.setAttribute("placeholder",this.options.feedbackPlaceholder),this.submitEl=this.querySelector("[data-bf-submit]"),this.submitEl.innerText=this.options.submitLabel,this.backdropEl=this.querySelector("[data-bf-backdrop]"),this.backdropEl.addEventListener("click",this.onClose),this.closeEl=this.querySelector("[data-bf-close]"),this.closeEl.addEventListener("click",this.onClose),this.formEl=this.querySelector("[data-bf-form]"),this.submitCb=rt=>{rt.preventDefault(),rt.stopPropagation(),this.onSubmit(this.subjectEl.value,this.feedbackEl.value)},this.formEl.addEventListener("submit",this.submitCb);const tt=document.querySelector("body");tt&&tt.appendChild(this.wrapperEl);const st=document.createElement("style");st.textContent=d.default.toString(),this.shadow.append(st)}querySelector($){const _e=this.shadow.querySelector($);if(_e)return _e;throw new Error(`Element for selector "${$}" not found.`)}drop(){this.backdropEl.removeEventListener("click",this.onClose),this.closeEl.removeEventListener("click",this.onClose),this.formEl.removeEventListener("submit",this.submitCb),this.backdropEl.remove(),this.closeEl.remove(),this.feedbackEl.remove(),this.formEl.remove(),this.subjectEl.remove(),this.submitEl.remove(),this.titleEl.remove(),this.shadow.innerHTML="",this.wrapperEl.innerHTML="",this.wrapperEl.remove()}}e.UserFeedback=class{constructor(j){this.commands=j,this.optionsValidator=new c.UserFeedbackOptionsValidator}cancel(){this.resolve({isSent:!1}),this.drop()}drop(){var j;(j=this.modal)===null||j===void 0||j.drop(),this.modal=void 0}resolve(j){var $;($=this.deferred)===null||$===void 0||$.resolve(j),this.deferred=void 0}show(j){return o(this,void 0,void 0,function*(){return this.deferred||(this.deferred=(0,h.createDeferred)(),this.modal=new _(this.optionsValidator.init(j),()=>this.cancel(),($,_e)=>this.submit($,_e))),this.deferred.promise})}submit(j,$){return o(this,void 0,void 0,function*(){try{const _e=yield this.commands.addIssue(g.IssueType.Feedback,j,$);this.resolve({isSent:!0,feedbackURL:_e})}catch{this.resolve({isSent:!1})}this.drop()})}}},8593:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getElByXPath=e.getXPath=e.DebounceByElement=e.UnreachableCaseError=e.CacheDecoratorFactory=e.createDeferred=void 0,e.createDeferred=function(){const o={isFulfilled:!1,isRejected:!1,isResolved:!1};return o.promise=new Promise((a,c)=>{o.resolve=h=>{const g=o;g.isFulfilled=!0,g.isRejected=!1,g.isResolved=!0,g.value=h,a(h)},o.reject=h=>{const g=o;g.isFulfilled=!0,g.isRejected=!0,g.isResolved=!1,g.err=h,c(h)}}),o},e.CacheDecoratorFactory=function(o){return function(){return function(a,c,h){const g=h.value;h.value=function(){return o.has(c)||o.set(c,g.apply(this)),o.get(c)}}}};class s extends Error{constructor(a){super(`Unreachable case: ${JSON.stringify(a)}`)}}e.UnreachableCaseError=s,e.DebounceByElement=class{constructor(o){this.wait=o,this.timers=new Map}run(o,a){this.timers.has(o)&&clearTimeout(this.timers.get(o)),this.timers.set(o,setTimeout(()=>{a(),this.timers.delete(o)},this.wait))}},e.getXPath=function(o){let a=o;if(a instanceof Element&&a.id)return'//*[@id="'+a.id+'"]';const c=[];for(;a&&a instanceof Element;){const h=a;let g=0,d=!1,b=h.previousSibling;for(;b;)b.nodeType!==Node.DOCUMENT_TYPE_NODE&&b.nodeName===h.nodeName&&g++,b=b.previousSibling;for(b=h.nextSibling;b;){if(b.nodeName===h.nodeName){d=!0;break}b=b.nextSibling}const _=h.prefix?h.prefix+":":"",j=g||d?`[${g+1}]`:"";c.push(_+h.localName+j),a=h.parentNode}return c.length?"/"+c.reverse().join("/"):""},e.getElByXPath=function(o){var a;return(a=document.evaluate(o,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue)!==null&&a!==void 0?a:void 0}},6884:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UUIDFactory=void 0,e.UUIDFactory=class{create(){const s=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1);return s()+s()+"-"+s()+"-"+s()+"-"+s()+"-"+s()+s()+s()}}},4810:(i,e,s)=>{s.r(e),s.d(e,{add:()=>d,getSize:()=>j,removeAll:()=>_,runAll:()=>b});var o=s(4155),a=s(4155),c=Object.prototype.toString.call(a!==void 0?a:0)==="[object process]"?function($){o.on("exit",function(){return $()}),o.on("beforeExit",function(){return $().then(function(){return o.exit()})}),o.on("SIGINT",function(){return $().then(function(){return o.exit()})}),o.on("uncaughtException",function(_e){return $().then(function(){console.trace(_e),o.exit(101)})})}:function($){if(typeof WorkerGlobalScope=="function"&&self instanceof WorkerGlobalScope){var _e=self.close.bind(self);self.close=function(){return $(),_e()}}else{if(typeof window.addEventListener!="function")return;window.addEventListener("beforeunload",function(){$()},!0),window.addEventListener("unload",function(){$()},!0)}},h=new Set,g=!1;function d($){if(g||(g=!0,c(b)),typeof $!="function")throw new Error("Listener is no function");return h.add($),{remove:function(){return h.delete($)},run:function(){return h.delete($),$()}}}function b(){var $=[];return h.forEach(function(_e){$.push(_e()),h.delete(_e)}),Promise.all($)}function _(){h.clear()}function j(){return h.size}},384:i=>{i.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}},5955:(i,e,s)=>{var o=s(2584),a=s(8662),c=s(6430),h=s(5692);function g(at){return at.call.bind(at)}var d=typeof BigInt<"u",b=typeof Symbol<"u",_=g(Object.prototype.toString),j=g(Number.prototype.valueOf),$=g(String.prototype.valueOf),_e=g(Boolean.prototype.valueOf);if(d)var et=g(BigInt.prototype.valueOf);if(b)var tt=g(Symbol.prototype.valueOf);function st(at,ct){if(typeof at!="object")return!1;try{return ct(at),!0}catch{return!1}}function rt(at){return _(at)==="[object Map]"}function nt(at){return _(at)==="[object Set]"}function it(at){return _(at)==="[object WeakMap]"}function ot(at){return _(at)==="[object WeakSet]"}function ut(at){return _(at)==="[object ArrayBuffer]"}function ht(at){return typeof ArrayBuffer<"u"&&(ut.working?ut(at):at instanceof ArrayBuffer)}function pt(at){return _(at)==="[object DataView]"}function yt(at){return typeof DataView<"u"&&(pt.working?pt(at):at instanceof DataView)}e.isArgumentsObject=o,e.isGeneratorFunction=a,e.isTypedArray=h,e.isPromise=function(at){return typeof Promise<"u"&&at instanceof Promise||at!==null&&typeof at=="object"&&typeof at.then=="function"&&typeof at.catch=="function"},e.isArrayBufferView=function(at){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(at):h(at)||yt(at)},e.isUint8Array=function(at){return c(at)==="Uint8Array"},e.isUint8ClampedArray=function(at){return c(at)==="Uint8ClampedArray"},e.isUint16Array=function(at){return c(at)==="Uint16Array"},e.isUint32Array=function(at){return c(at)==="Uint32Array"},e.isInt8Array=function(at){return c(at)==="Int8Array"},e.isInt16Array=function(at){return c(at)==="Int16Array"},e.isInt32Array=function(at){return c(at)==="Int32Array"},e.isFloat32Array=function(at){return c(at)==="Float32Array"},e.isFloat64Array=function(at){return c(at)==="Float64Array"},e.isBigInt64Array=function(at){return c(at)==="BigInt64Array"},e.isBigUint64Array=function(at){return c(at)==="BigUint64Array"},rt.working=typeof Map<"u"&&rt(new Map),e.isMap=function(at){return typeof Map<"u"&&(rt.working?rt(at):at instanceof Map)},nt.working=typeof Set<"u"&&nt(new Set),e.isSet=function(at){return typeof Set<"u"&&(nt.working?nt(at):at instanceof Set)},it.working=typeof WeakMap<"u"&&it(new WeakMap),e.isWeakMap=function(at){return typeof WeakMap<"u"&&(it.working?it(at):at instanceof WeakMap)},ot.working=typeof WeakSet<"u"&&ot(new WeakSet),e.isWeakSet=function(at){return ot(at)},ut.working=typeof ArrayBuffer<"u"&&ut(new ArrayBuffer),e.isArrayBuffer=ht,pt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&pt(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=yt;var gt=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function xt(at){return _(at)==="[object SharedArrayBuffer]"}function wt(at){return gt!==void 0&&(xt.working===void 0&&(xt.working=xt(new gt)),xt.working?xt(at):at instanceof gt)}function vt(at){return st(at,j)}function ft(at){return st(at,$)}function lt(at){return st(at,_e)}function dt(at){return d&&st(at,et)}function bt(at){return b&&st(at,tt)}e.isSharedArrayBuffer=wt,e.isAsyncFunction=function(at){return _(at)==="[object AsyncFunction]"},e.isMapIterator=function(at){return _(at)==="[object Map Iterator]"},e.isSetIterator=function(at){return _(at)==="[object Set Iterator]"},e.isGeneratorObject=function(at){return _(at)==="[object Generator]"},e.isWebAssemblyCompiledModule=function(at){return _(at)==="[object WebAssembly.Module]"},e.isNumberObject=vt,e.isStringObject=ft,e.isBooleanObject=lt,e.isBigIntObject=dt,e.isSymbolObject=bt,e.isBoxedPrimitive=function(at){return vt(at)||ft(at)||lt(at)||dt(at)||bt(at)},e.isAnyArrayBuffer=function(at){return typeof Uint8Array<"u"&&(ht(at)||wt(at))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(at){Object.defineProperty(e,at,{enumerable:!1,value:function(){throw new Error(at+" is not supported in userland")}})})},9539:(i,e,s)=>{var o=s(4155),a=Object.getOwnPropertyDescriptors||function(at){for(var ct=Object.keys(at),mt={},Et=0;Et=jt)return Rt;switch(Rt){case"%s":return String(Et[mt++]);case"%d":return Number(Et[mt++]);case"%j":try{return JSON.stringify(Et[mt++])}catch{return"[Circular]"}default:return Rt}}),Ct=Et[mt];mt=3&&(mt.depth=arguments[2]),arguments.length>=4&&(mt.colors=arguments[3]),st(ct)?mt.showHidden=ct:ct&&e._extend(mt,ct),ot(mt.showHidden)&&(mt.showHidden=!1),ot(mt.depth)&&(mt.depth=2),ot(mt.colors)&&(mt.colors=!1),ot(mt.customInspect)&&(mt.customInspect=!0),mt.colors&&(mt.stylize=_),$(mt,at,mt.depth)}function _(at,ct){var mt=b.styles[ct];return mt?"\x1B["+b.colors[mt][0]+"m"+at+"\x1B["+b.colors[mt][1]+"m":at}function j(at,ct){return at}function $(at,ct,mt){if(at.customInspect&&ct&>(ct.inspect)&&ct.inspect!==e.inspect&&(!ct.constructor||ct.constructor.prototype!==ct)){var Et=ct.inspect(mt,at);return it(Et)||(Et=$(at,Et,mt)),Et}var jt=function($t,Bt){if(ot(Bt))return $t.stylize("undefined","undefined");if(it(Bt)){var Wt="'"+JSON.stringify(Bt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return $t.stylize(Wt,"string")}return nt(Bt)?$t.stylize(""+Bt,"number"):st(Bt)?$t.stylize(""+Bt,"boolean"):rt(Bt)?$t.stylize("null","null"):void 0}(at,ct);if(jt)return jt;var kt=Object.keys(ct),Ct=function($t){var Bt={};return $t.forEach(function(Wt,Gt){Bt[Wt]=!0}),Bt}(kt);if(at.showHidden&&(kt=Object.getOwnPropertyNames(ct)),yt(ct)&&(kt.indexOf("message")>=0||kt.indexOf("description")>=0))return _e(ct);if(kt.length===0){if(gt(ct)){var Rt=ct.name?": "+ct.name:"";return at.stylize("[Function"+Rt+"]","special")}if(ut(ct))return at.stylize(RegExp.prototype.toString.call(ct),"regexp");if(pt(ct))return at.stylize(Date.prototype.toString.call(ct),"date");if(yt(ct))return _e(ct)}var At,It="",zt=!1,Ht=["{","}"];return tt(ct)&&(zt=!0,Ht=["[","]"]),gt(ct)&&(It=" [Function"+(ct.name?": "+ct.name:"")+"]"),ut(ct)&&(It=" "+RegExp.prototype.toString.call(ct)),pt(ct)&&(It=" "+Date.prototype.toUTCString.call(ct)),yt(ct)&&(It=" "+_e(ct)),kt.length!==0||zt&&ct.length!=0?mt<0?ut(ct)?at.stylize(RegExp.prototype.toString.call(ct),"regexp"):at.stylize("[Object]","special"):(at.seen.push(ct),At=zt?function($t,Bt,Wt,Gt,Kt){for(var Zt=[],Yt=0,or=Bt.length;Yt{Object.defineProperty(e,"__esModule",{value:!0}),e.StorageWriterSanitizer=void 0;const o=s(7431);e.StorageWriterSanitizer=class{sanitize(a){switch(a.type){case"device-key":{const c=["boolean","number","string"].includes(typeof a.data.value);a.data.key=(0,o.mapToString)(a.data.key),c||(a.data.value=(0,o.mapToString)(a.data.value));break}case"issue":a.data.title=(0,o.mapToString)(a.data.title),a.data.text=(0,o.mapToString)(a.data.text);break;case"log-entry":{const c=["tag","method","file","text","url"],h="line"in a.data.log&&a.data.log.line!==void 0,g=h&&typeof a.data.log.line=="number",d="level"in a.data.log&&a.data.log.level!==void 0,b=d&&o.LOG_LEVELS.includes(a.data.log.level);if(c.forEach(_=>{if(_ in a.data.log&&a.data.log[_]!==void 0)try{a.data.log[_]=(0,o.mapToString)(a.data.log[_])}catch{delete a.data.log[_]}}),h&&!g)try{a.data.log.line=(0,o.mapToNumber)(a.data.log.line)}catch{delete a.data.log.line}if(d&&!b)try{a.data.log.level=(0,o.mapToNumber)(a.data.log.level),o.LOG_LEVELS.includes(a.data.log.level)||delete a.data.log.level}catch{delete a.data.log.level}break}}return a}}},5041:function(i,e){var s=this&&this.__awaiter||function(o,a,c,h){return new(c||(c=Promise))(function(g,d){function b($){try{j(h.next($))}catch(_e){d(_e)}}function _($){try{j(h.throw($))}catch(_e){d(_e)}}function j($){var _e;$.done?g($.value):(_e=$.value,_e instanceof c?_e:new c(function(et){et(_e)})).then(b,_)}j((h=h.apply(o,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.StorageWriter=void 0,e.StorageWriter=class{constructor(o,a,c,h){this.deviceKeysTable=o,this.issuesTable=a,this.logFactory=c,this.logsTable=h,this.isClearingSpace=!1,this.logsQueue=[]}handleMessage(o){return s(this,void 0,void 0,function*(){switch(o.type){case"device-key":return this.addDeviceKey(o.data.key,o.data.value,o.data.callInfo,o.data.time);case"init":this.options=o.data.options,this.sessionUUID=o.data.sessionUUID;break;case"issue":return this.addIssue(o.data.type,o.data.title,o.data.text,o.data.uuid,o.data.callInfo,o.data.time);case"log-entry":return this.addLogEntry(o.data.log,o.data.callInfo,o.data.time)}})}addDeviceKey(o,a,c,h){this.deviceKeysTable.add({sessionUUID:this.sessionUUID,data:{key:o,value:a}}),this.addLog(this.logFactory.createFromDeviceKey(o,a,c,h))}addLog(o){return s(this,void 0,void 0,function*(){const a={sessionUUID:this.sessionUUID,data:o};if(this.isClearingSpace)this.logsQueue.push(a);else try{yield this.logsTable.add(a)}catch(c){this.isQuotaExceededError(c)&&(this.logsQueue.push(a),this.isClearingSpace=!0,yield this.logsTable.deleteOldLogs(this.sessionUUID),yield this.processLogsQueue(),this.isClearingSpace=!1)}})}addLogEntry(o,a,c){this.addLog(this.logFactory.createFromEntry(o,a,c))}addIssue(o,a,c,h,g,d){this.issuesTable.add({sessionUUID:this.sessionUUID,data:{title:a,text:c,type:o,uuid:h}}),this.addLog(this.logFactory.createFromIssue(h,g,d))}isQuotaExceededError(o){var a;return o.name==="QuotaExceededError"||((a=o.inner)===null||a===void 0?void 0:a.name)==="QuotaExceededError"}processLogsQueue(){return s(this,void 0,void 0,function*(){for(;this.logsQueue.length>0;){const o=this.logsQueue[0];try{yield this.logsTable.add(o),this.logsQueue.shift()}catch(a){this.isQuotaExceededError(a)&&(yield this.logsTable.deleteOldLogs(this.sessionUUID))}}})}}},5925:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0,e.Timer=class{constructor(s=()=>new Date){this.getNow=s,this.lastAbsoluteTime=0}getTime(){const s=this.getNow();let o=s.getTime();return o<=this.lastAbsoluteTime&&(o=this.lastAbsoluteTime+1),this.lastAbsoluteTime=o,{iso:s.toISOString(),epoch:o}}}},2607:(i,e)=>{var s;Object.defineProperty(e,"__esModule",{value:!0}),e.IssueType=void 0,(s=e.IssueType||(e.IssueType={})).Issue="issue",s.Crash="crash",s.Feedback="user-feedback"},7075:function(i,e,s){var o=this&&this.__awaiter||function(j,$,_e,et){return new(_e||(_e=Promise))(function(tt,st){function nt(ot){try{it(et.next(ot))}catch(ut){st(ut)}}function rt(ot){try{it(et.throw(ot))}catch(ut){st(ut)}}function it(ot){var ut;ot.done?tt(ot.value):(ut=ot.value,ut instanceof _e?ut:new _e(function(ht){ht(ut)})).then(nt,rt)}it((et=et.apply(j,$||[])).next())})},a=this&&this.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(e,"__esModule",{value:!0}),e.UserFeedback=void 0;const c=s(7431),h=s(8593),g=s(2607),d=a(s(5415)),b=a(s(3584));class _{constructor($,_e,et){this.options=$,this.onClose=_e,this.onSubmit=et,this.wrapperEl=document.createElement("div"),this.shadow=this.wrapperEl.attachShadow({mode:"closed"}),this.shadow.innerHTML=b.default,this.titleEl=this.querySelector("[data-bf-title]"),this.titleEl.innerText=this.options.title,this.hintEl=this.querySelector("[data-bf-hint]"),this.options.hint&&(this.hintEl.innerText=this.options.hint,this.hintEl.classList.remove("bf-modal__hint--hidden")),this.subjectEl=this.querySelector("[data-bf-subject]"),this.subjectEl.setAttribute("placeholder",this.options.subjectPlaceholder),this.feedbackEl=this.querySelector("[data-bf-feedback]"),this.feedbackEl.setAttribute("placeholder",this.options.feedbackPlaceholder),this.submitEl=this.querySelector("[data-bf-submit]"),this.submitEl.innerText=this.options.submitLabel,this.backdropEl=this.querySelector("[data-bf-backdrop]"),this.backdropEl.addEventListener("click",this.onClose),this.closeEl=this.querySelector("[data-bf-close]"),this.closeEl.addEventListener("click",this.onClose),this.formEl=this.querySelector("[data-bf-form]"),this.submitCb=nt=>{nt.preventDefault(),nt.stopPropagation(),this.onSubmit(this.subjectEl.value,this.feedbackEl.value)},this.formEl.addEventListener("submit",this.submitCb);const tt=document.querySelector("body");tt&&tt.appendChild(this.wrapperEl);const st=document.createElement("style");st.textContent=d.default.toString(),this.shadow.append(st)}querySelector($){const _e=this.shadow.querySelector($);if(_e)return _e;throw new Error(`Element for selector "${$}" not found.`)}drop(){this.backdropEl.removeEventListener("click",this.onClose),this.closeEl.removeEventListener("click",this.onClose),this.formEl.removeEventListener("submit",this.submitCb),this.backdropEl.remove(),this.closeEl.remove(),this.feedbackEl.remove(),this.formEl.remove(),this.subjectEl.remove(),this.submitEl.remove(),this.titleEl.remove(),this.shadow.innerHTML="",this.wrapperEl.innerHTML="",this.wrapperEl.remove()}}e.UserFeedback=class{constructor(j){this.commands=j,this.optionsValidator=new c.UserFeedbackOptionsValidator}cancel(){this.resolve({isSent:!1}),this.drop()}drop(){var j;(j=this.modal)===null||j===void 0||j.drop(),this.modal=void 0}resolve(j){var $;($=this.deferred)===null||$===void 0||$.resolve(j),this.deferred=void 0}show(j){return o(this,void 0,void 0,function*(){return this.deferred||(this.deferred=(0,h.createDeferred)(),this.modal=new _(this.optionsValidator.init(j),()=>this.cancel(),($,_e)=>this.submit($,_e))),this.deferred.promise})}submit(j,$){return o(this,void 0,void 0,function*(){try{const _e=yield this.commands.addIssue(g.IssueType.Feedback,j,$);this.resolve({isSent:!0,feedbackURL:_e})}catch{this.resolve({isSent:!1})}this.drop()})}}},8593:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getElByXPath=e.getXPath=e.DebounceByElement=e.UnreachableCaseError=e.CacheDecoratorFactory=e.createDeferred=void 0,e.createDeferred=function(){const o={isFulfilled:!1,isRejected:!1,isResolved:!1};return o.promise=new Promise((a,c)=>{o.resolve=h=>{const g=o;g.isFulfilled=!0,g.isRejected=!1,g.isResolved=!0,g.value=h,a(h)},o.reject=h=>{const g=o;g.isFulfilled=!0,g.isRejected=!0,g.isResolved=!1,g.err=h,c(h)}}),o},e.CacheDecoratorFactory=function(o){return function(){return function(a,c,h){const g=h.value;h.value=function(){return o.has(c)||o.set(c,g.apply(this)),o.get(c)}}}};class s extends Error{constructor(a){super(`Unreachable case: ${JSON.stringify(a)}`)}}e.UnreachableCaseError=s,e.DebounceByElement=class{constructor(o){this.wait=o,this.timers=new Map}run(o,a){this.timers.has(o)&&clearTimeout(this.timers.get(o)),this.timers.set(o,setTimeout(()=>{a(),this.timers.delete(o)},this.wait))}},e.getXPath=function(o){let a=o;if(a instanceof Element&&a.id)return'//*[@id="'+a.id+'"]';const c=[];for(;a&&a instanceof Element;){const h=a;let g=0,d=!1,b=h.previousSibling;for(;b;)b.nodeType!==Node.DOCUMENT_TYPE_NODE&&b.nodeName===h.nodeName&&g++,b=b.previousSibling;for(b=h.nextSibling;b;){if(b.nodeName===h.nodeName){d=!0;break}b=b.nextSibling}const _=h.prefix?h.prefix+":":"",j=g||d?`[${g+1}]`:"";c.push(_+h.localName+j),a=h.parentNode}return c.length?"/"+c.reverse().join("/"):""},e.getElByXPath=function(o){var a;return(a=document.evaluate(o,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue)!==null&&a!==void 0?a:void 0}},6884:(i,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UUIDFactory=void 0,e.UUIDFactory=class{create(){const s=()=>Math.floor(65536*(1+Math.random())).toString(16).substring(1);return s()+s()+"-"+s()+"-"+s()+"-"+s()+"-"+s()+s()+s()}}},4810:(i,e,s)=>{s.r(e),s.d(e,{add:()=>d,getSize:()=>j,removeAll:()=>_,runAll:()=>b});var o=s(4155),a=s(4155),c=Object.prototype.toString.call(a!==void 0?a:0)==="[object process]"?function($){o.on("exit",function(){return $()}),o.on("beforeExit",function(){return $().then(function(){return o.exit()})}),o.on("SIGINT",function(){return $().then(function(){return o.exit()})}),o.on("uncaughtException",function(_e){return $().then(function(){console.trace(_e),o.exit(101)})})}:function($){if(typeof WorkerGlobalScope=="function"&&self instanceof WorkerGlobalScope){var _e=self.close.bind(self);self.close=function(){return $(),_e()}}else{if(typeof window.addEventListener!="function")return;window.addEventListener("beforeunload",function(){$()},!0),window.addEventListener("unload",function(){$()},!0)}},h=new Set,g=!1;function d($){if(g||(g=!0,c(b)),typeof $!="function")throw new Error("Listener is no function");return h.add($),{remove:function(){return h.delete($)},run:function(){return h.delete($),$()}}}function b(){var $=[];return h.forEach(function(_e){$.push(_e()),h.delete(_e)}),Promise.all($)}function _(){h.clear()}function j(){return h.size}},384:i=>{i.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}},5955:(i,e,s)=>{var o=s(2584),a=s(8662),c=s(6430),h=s(5692);function g(at){return at.call.bind(at)}var d=typeof BigInt<"u",b=typeof Symbol<"u",_=g(Object.prototype.toString),j=g(Number.prototype.valueOf),$=g(String.prototype.valueOf),_e=g(Boolean.prototype.valueOf);if(d)var et=g(BigInt.prototype.valueOf);if(b)var tt=g(Symbol.prototype.valueOf);function st(at,ct){if(typeof at!="object")return!1;try{return ct(at),!0}catch{return!1}}function nt(at){return _(at)==="[object Map]"}function rt(at){return _(at)==="[object Set]"}function it(at){return _(at)==="[object WeakMap]"}function ot(at){return _(at)==="[object WeakSet]"}function ut(at){return _(at)==="[object ArrayBuffer]"}function ht(at){return typeof ArrayBuffer<"u"&&(ut.working?ut(at):at instanceof ArrayBuffer)}function pt(at){return _(at)==="[object DataView]"}function yt(at){return typeof DataView<"u"&&(pt.working?pt(at):at instanceof DataView)}e.isArgumentsObject=o,e.isGeneratorFunction=a,e.isTypedArray=h,e.isPromise=function(at){return typeof Promise<"u"&&at instanceof Promise||at!==null&&typeof at=="object"&&typeof at.then=="function"&&typeof at.catch=="function"},e.isArrayBufferView=function(at){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(at):h(at)||yt(at)},e.isUint8Array=function(at){return c(at)==="Uint8Array"},e.isUint8ClampedArray=function(at){return c(at)==="Uint8ClampedArray"},e.isUint16Array=function(at){return c(at)==="Uint16Array"},e.isUint32Array=function(at){return c(at)==="Uint32Array"},e.isInt8Array=function(at){return c(at)==="Int8Array"},e.isInt16Array=function(at){return c(at)==="Int16Array"},e.isInt32Array=function(at){return c(at)==="Int32Array"},e.isFloat32Array=function(at){return c(at)==="Float32Array"},e.isFloat64Array=function(at){return c(at)==="Float64Array"},e.isBigInt64Array=function(at){return c(at)==="BigInt64Array"},e.isBigUint64Array=function(at){return c(at)==="BigUint64Array"},nt.working=typeof Map<"u"&&nt(new Map),e.isMap=function(at){return typeof Map<"u"&&(nt.working?nt(at):at instanceof Map)},rt.working=typeof Set<"u"&&rt(new Set),e.isSet=function(at){return typeof Set<"u"&&(rt.working?rt(at):at instanceof Set)},it.working=typeof WeakMap<"u"&&it(new WeakMap),e.isWeakMap=function(at){return typeof WeakMap<"u"&&(it.working?it(at):at instanceof WeakMap)},ot.working=typeof WeakSet<"u"&&ot(new WeakSet),e.isWeakSet=function(at){return ot(at)},ut.working=typeof ArrayBuffer<"u"&&ut(new ArrayBuffer),e.isArrayBuffer=ht,pt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&pt(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=yt;var gt=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function xt(at){return _(at)==="[object SharedArrayBuffer]"}function wt(at){return gt!==void 0&&(xt.working===void 0&&(xt.working=xt(new gt)),xt.working?xt(at):at instanceof gt)}function vt(at){return st(at,j)}function ft(at){return st(at,$)}function lt(at){return st(at,_e)}function dt(at){return d&&st(at,et)}function bt(at){return b&&st(at,tt)}e.isSharedArrayBuffer=wt,e.isAsyncFunction=function(at){return _(at)==="[object AsyncFunction]"},e.isMapIterator=function(at){return _(at)==="[object Map Iterator]"},e.isSetIterator=function(at){return _(at)==="[object Set Iterator]"},e.isGeneratorObject=function(at){return _(at)==="[object Generator]"},e.isWebAssemblyCompiledModule=function(at){return _(at)==="[object WebAssembly.Module]"},e.isNumberObject=vt,e.isStringObject=ft,e.isBooleanObject=lt,e.isBigIntObject=dt,e.isSymbolObject=bt,e.isBoxedPrimitive=function(at){return vt(at)||ft(at)||lt(at)||dt(at)||bt(at)},e.isAnyArrayBuffer=function(at){return typeof Uint8Array<"u"&&(ht(at)||wt(at))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(at){Object.defineProperty(e,at,{enumerable:!1,value:function(){throw new Error(at+" is not supported in userland")}})})},9539:(i,e,s)=>{var o=s(4155),a=Object.getOwnPropertyDescriptors||function(at){for(var ct=Object.keys(at),mt={},Et=0;Et=jt)return Rt;switch(Rt){case"%s":return String(Et[mt++]);case"%d":return Number(Et[mt++]);case"%j":try{return JSON.stringify(Et[mt++])}catch{return"[Circular]"}default:return Rt}}),Ct=Et[mt];mt=3&&(mt.depth=arguments[2]),arguments.length>=4&&(mt.colors=arguments[3]),st(ct)?mt.showHidden=ct:ct&&e._extend(mt,ct),ot(mt.showHidden)&&(mt.showHidden=!1),ot(mt.depth)&&(mt.depth=2),ot(mt.colors)&&(mt.colors=!1),ot(mt.customInspect)&&(mt.customInspect=!0),mt.colors&&(mt.stylize=_),$(mt,at,mt.depth)}function _(at,ct){var mt=b.styles[ct];return mt?"\x1B["+b.colors[mt][0]+"m"+at+"\x1B["+b.colors[mt][1]+"m":at}function j(at,ct){return at}function $(at,ct,mt){if(at.customInspect&&ct&>(ct.inspect)&&ct.inspect!==e.inspect&&(!ct.constructor||ct.constructor.prototype!==ct)){var Et=ct.inspect(mt,at);return it(Et)||(Et=$(at,Et,mt)),Et}var jt=function($t,Bt){if(ot(Bt))return $t.stylize("undefined","undefined");if(it(Bt)){var Wt="'"+JSON.stringify(Bt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return $t.stylize(Wt,"string")}return rt(Bt)?$t.stylize(""+Bt,"number"):st(Bt)?$t.stylize(""+Bt,"boolean"):nt(Bt)?$t.stylize("null","null"):void 0}(at,ct);if(jt)return jt;var kt=Object.keys(ct),Ct=function($t){var Bt={};return $t.forEach(function(Wt,Gt){Bt[Wt]=!0}),Bt}(kt);if(at.showHidden&&(kt=Object.getOwnPropertyNames(ct)),yt(ct)&&(kt.indexOf("message")>=0||kt.indexOf("description")>=0))return _e(ct);if(kt.length===0){if(gt(ct)){var Rt=ct.name?": "+ct.name:"";return at.stylize("[Function"+Rt+"]","special")}if(ut(ct))return at.stylize(RegExp.prototype.toString.call(ct),"regexp");if(pt(ct))return at.stylize(Date.prototype.toString.call(ct),"date");if(yt(ct))return _e(ct)}var At,It="",zt=!1,Ht=["{","}"];return tt(ct)&&(zt=!0,Ht=["[","]"]),gt(ct)&&(It=" [Function"+(ct.name?": "+ct.name:"")+"]"),ut(ct)&&(It=" "+RegExp.prototype.toString.call(ct)),pt(ct)&&(It=" "+Date.prototype.toUTCString.call(ct)),yt(ct)&&(It=" "+_e(ct)),kt.length!==0||zt&&ct.length!=0?mt<0?ut(ct)?at.stylize(RegExp.prototype.toString.call(ct),"regexp"):at.stylize("[Object]","special"):(at.seen.push(ct),At=zt?function($t,Bt,Wt,Gt,Kt){for(var Zt=[],Yt=0,an=Bt.length;Yt60?Wt[0]+(Bt===""?"":Bt+` `)+" "+$t.join(`, - `)+" "+Wt[1]:Wt[0]+Bt+" "+$t.join(", ")+" "+Wt[1]}(At,It,Ht)):Ht[0]+It+Ht[1]}function _e(at){return"["+Error.prototype.toString.call(at)+"]"}function et(at,ct,mt,Et,jt,kt){var Ct,Rt,At;if((At=Object.getOwnPropertyDescriptor(ct,jt)||{value:ct[jt]}).get?Rt=At.set?at.stylize("[Getter/Setter]","special"):at.stylize("[Getter]","special"):At.set&&(Rt=at.stylize("[Setter]","special")),lt(Et,jt)||(Ct="["+jt+"]"),Rt||(at.seen.indexOf(At.value)<0?(Rt=rt(mt)?$(at,At.value,null):$(at,At.value,mt-1)).indexOf(` + `)+" "+Wt[1]:Wt[0]+Bt+" "+$t.join(", ")+" "+Wt[1]}(At,It,Ht)):Ht[0]+It+Ht[1]}function _e(at){return"["+Error.prototype.toString.call(at)+"]"}function et(at,ct,mt,Et,jt,kt){var Ct,Rt,At;if((At=Object.getOwnPropertyDescriptor(ct,jt)||{value:ct[jt]}).get?Rt=At.set?at.stylize("[Getter/Setter]","special"):at.stylize("[Getter]","special"):At.set&&(Rt=at.stylize("[Setter]","special")),lt(Et,jt)||(Ct="["+jt+"]"),Rt||(at.seen.indexOf(At.value)<0?(Rt=nt(mt)?$(at,At.value,null):$(at,At.value,mt-1)).indexOf(` `)>-1&&(Rt=kt?Rt.split(` `).map(function(It){return" "+It}).join(` `).slice(2):` `+Rt.split(` `).map(function(It){return" "+It}).join(` -`)):Rt=at.stylize("[Circular]","special")),ot(Ct)){if(kt&&jt.match(/^\d+$/))return Rt;(Ct=JSON.stringify(""+jt)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ct=Ct.slice(1,-1),Ct=at.stylize(Ct,"name")):(Ct=Ct.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ct=at.stylize(Ct,"string"))}return Ct+": "+Rt}function tt(at){return Array.isArray(at)}function st(at){return typeof at=="boolean"}function rt(at){return at===null}function nt(at){return typeof at=="number"}function it(at){return typeof at=="string"}function ot(at){return at===void 0}function ut(at){return ht(at)&&xt(at)==="[object RegExp]"}function ht(at){return typeof at=="object"&&at!==null}function pt(at){return ht(at)&&xt(at)==="[object Date]"}function yt(at){return ht(at)&&(xt(at)==="[object Error]"||at instanceof Error)}function gt(at){return typeof at=="function"}function xt(at){return Object.prototype.toString.call(at)}function wt(at){return at<10?"0"+at.toString(10):at.toString(10)}e.debuglog=function(at){if(at=at.toUpperCase(),!h[at])if(g.test(at)){var ct=o.pid;h[at]=function(){var mt=e.format.apply(e,arguments);console.error("%s %d: %s",at,ct,mt)}}else h[at]=function(){};return h[at]},e.inspect=b,b.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},b.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=s(5955),e.isArray=tt,e.isBoolean=st,e.isNull=rt,e.isNullOrUndefined=function(at){return at==null},e.isNumber=nt,e.isString=it,e.isSymbol=function(at){return typeof at=="symbol"},e.isUndefined=ot,e.isRegExp=ut,e.types.isRegExp=ut,e.isObject=ht,e.isDate=pt,e.types.isDate=pt,e.isError=yt,e.types.isNativeError=yt,e.isFunction=gt,e.isPrimitive=function(at){return at===null||typeof at=="boolean"||typeof at=="number"||typeof at=="string"||typeof at=="symbol"||at===void 0},e.isBuffer=s(384);var vt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ft(){var at=new Date,ct=[wt(at.getHours()),wt(at.getMinutes()),wt(at.getSeconds())].join(":");return[at.getDate(),vt[at.getMonth()],ct].join(" ")}function lt(at,ct){return Object.prototype.hasOwnProperty.call(at,ct)}e.log=function(){console.log("%s - %s",ft(),e.format.apply(e,arguments))},e.inherits=s(5717),e._extend=function(at,ct){if(!ct||!ht(ct))return at;for(var mt=Object.keys(ct),Et=mt.length;Et--;)at[mt[Et]]=ct[mt[Et]];return at};var dt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function bt(at,ct){if(!at){var mt=new Error("Promise was rejected with a falsy value");mt.reason=at,at=mt}return ct(at)}e.promisify=function(at){if(typeof at!="function")throw new TypeError('The "original" argument must be of type Function');if(dt&&at[dt]){var ct;if(typeof(ct=at[dt])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ct,dt,{value:ct,enumerable:!1,writable:!1,configurable:!0}),ct}function ct(){for(var mt,Et,jt=new Promise(function(Rt,At){mt=Rt,Et=At}),kt=[],Ct=0;Ct{var o=s(9804),a=s(3083),c=s(1924),h=c("Object.prototype.toString"),g=s(6410)(),d=typeof globalThis>"u"?s.g:globalThis,b=a(),_=c("String.prototype.slice"),j={},$=s(882),_e=Object.getPrototypeOf;g&&$&&_e&&o(b,function(tt){if(typeof d[tt]=="function"){var st=new d[tt];if(Symbol.toStringTag in st){var rt=_e(st),nt=$(rt,Symbol.toStringTag);if(!nt){var it=_e(rt);nt=$(it,Symbol.toStringTag)}j[tt]=nt.get}}});var et=s(5692);i.exports=function(tt){return!!et(tt)&&(g&&Symbol.toStringTag in tt?function(st){var rt=!1;return o(j,function(nt,it){if(!rt)try{var ot=nt.call(st);ot===it&&(rt=ot)}catch{}}),rt}(tt):_(h(tt),8,-1))}},4657:(i,e,s)=>{s.r(e),s.d(e,{default:()=>c});var o=s(477),a=s.n(o);function c(){return a()(`/*! For license information please see storage-writer.worker.worker.js.LICENSE.txt */ +`)):Rt=at.stylize("[Circular]","special")),ot(Ct)){if(kt&&jt.match(/^\d+$/))return Rt;(Ct=JSON.stringify(""+jt)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ct=Ct.slice(1,-1),Ct=at.stylize(Ct,"name")):(Ct=Ct.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ct=at.stylize(Ct,"string"))}return Ct+": "+Rt}function tt(at){return Array.isArray(at)}function st(at){return typeof at=="boolean"}function nt(at){return at===null}function rt(at){return typeof at=="number"}function it(at){return typeof at=="string"}function ot(at){return at===void 0}function ut(at){return ht(at)&&xt(at)==="[object RegExp]"}function ht(at){return typeof at=="object"&&at!==null}function pt(at){return ht(at)&&xt(at)==="[object Date]"}function yt(at){return ht(at)&&(xt(at)==="[object Error]"||at instanceof Error)}function gt(at){return typeof at=="function"}function xt(at){return Object.prototype.toString.call(at)}function wt(at){return at<10?"0"+at.toString(10):at.toString(10)}e.debuglog=function(at){if(at=at.toUpperCase(),!h[at])if(g.test(at)){var ct=o.pid;h[at]=function(){var mt=e.format.apply(e,arguments);console.error("%s %d: %s",at,ct,mt)}}else h[at]=function(){};return h[at]},e.inspect=b,b.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},b.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=s(5955),e.isArray=tt,e.isBoolean=st,e.isNull=nt,e.isNullOrUndefined=function(at){return at==null},e.isNumber=rt,e.isString=it,e.isSymbol=function(at){return typeof at=="symbol"},e.isUndefined=ot,e.isRegExp=ut,e.types.isRegExp=ut,e.isObject=ht,e.isDate=pt,e.types.isDate=pt,e.isError=yt,e.types.isNativeError=yt,e.isFunction=gt,e.isPrimitive=function(at){return at===null||typeof at=="boolean"||typeof at=="number"||typeof at=="string"||typeof at=="symbol"||at===void 0},e.isBuffer=s(384);var vt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ft(){var at=new Date,ct=[wt(at.getHours()),wt(at.getMinutes()),wt(at.getSeconds())].join(":");return[at.getDate(),vt[at.getMonth()],ct].join(" ")}function lt(at,ct){return Object.prototype.hasOwnProperty.call(at,ct)}e.log=function(){console.log("%s - %s",ft(),e.format.apply(e,arguments))},e.inherits=s(5717),e._extend=function(at,ct){if(!ct||!ht(ct))return at;for(var mt=Object.keys(ct),Et=mt.length;Et--;)at[mt[Et]]=ct[mt[Et]];return at};var dt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function bt(at,ct){if(!at){var mt=new Error("Promise was rejected with a falsy value");mt.reason=at,at=mt}return ct(at)}e.promisify=function(at){if(typeof at!="function")throw new TypeError('The "original" argument must be of type Function');if(dt&&at[dt]){var ct;if(typeof(ct=at[dt])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ct,dt,{value:ct,enumerable:!1,writable:!1,configurable:!0}),ct}function ct(){for(var mt,Et,jt=new Promise(function(Rt,At){mt=Rt,Et=At}),kt=[],Ct=0;Ct{var o=s(9804),a=s(3083),c=s(1924),h=c("Object.prototype.toString"),g=s(6410)(),d=typeof globalThis>"u"?s.g:globalThis,b=a(),_=c("String.prototype.slice"),j={},$=s(882),_e=Object.getPrototypeOf;g&&$&&_e&&o(b,function(tt){if(typeof d[tt]=="function"){var st=new d[tt];if(Symbol.toStringTag in st){var nt=_e(st),rt=$(nt,Symbol.toStringTag);if(!rt){var it=_e(nt);rt=$(it,Symbol.toStringTag)}j[tt]=rt.get}}});var et=s(5692);i.exports=function(tt){return!!et(tt)&&(g&&Symbol.toStringTag in tt?function(st){var nt=!1;return o(j,function(rt,it){if(!nt)try{var ot=rt.call(st);ot===it&&(nt=ot)}catch{}}),nt}(tt):_(h(tt),8,-1))}},4657:(i,e,s)=>{s.r(e),s.d(e,{default:()=>c});var o=s(477),a=s.n(o);function c(){return a()(`/*! For license information please see storage-writer.worker.worker.js.LICENSE.txt */ (()=>{var e={496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},431:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(496),t),o(r(704),t),o(r(596),t),o(r(836),t),o(r(758),t),o(r(922),t),o(r(287),t),o(r(484),t),o(r(929),t)},704:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LOG_LEVELS=t.LogLevel=void 0,function(e){e[e.Debug=0]="Debug",e[e.Warning=1]="Warning",e[e.Error=2]="Error",e[e.Trace=3]="Trace",e[e.Info=4]="Info",e[e.Fatal=5]="Fatal"}(r=t.LogLevel||(t.LogLevel={})),t.LOG_LEVELS=[r.Debug,r.Warning,r.Error,r.Trace,r.Info,r.Fatal]},596:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PrintToConsole=void 0;var n=r(539),o=r(704),i=function(){function e(e){this.console=e,this.printToConsole=!1}return e.prototype.init=function(e){this.printToConsole=e},e.prototype.error=function(){for(var e,t=[],r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegisterErrorHandler=void 0;var r=function(){function e(e){this.window=e,this.rejectionsMap=new Map}return e.prototype.init=function(e){var t=this;this.bugfender=e,this.window.addEventListener("error",(function(e){var r=e.message,n=e.lineno,o=e.filename,i=e.error;t.logError(r,o,n,i)})),this.window.addEventListener("unhandledrejection",(function(e){var r=setTimeout((function(){t.logError("Potentially unhandled promise",void 0,void 0,e.reason)}),1);t.rejectionsMap.set(e.promise,r),e.preventDefault()})),this.window.addEventListener("rejectionhandled",(function(e){clearTimeout(t.rejectionsMap.get(e.promise)),t.rejectionsMap.delete(e.promise)}))},e.prototype.logError=function(e,t,r,n){var o;n&&n.stack&&(o=n.stack),"string"==typeof e&&this.bugfender.sendCrash(e,["Error: ".concat(e),"URL: ".concat(null!=t?t:"N/A"),"Line: ".concat(null!=r?r:"N/A"),"Stack: ".concat(null!=o?o:"N/A")].join("\\n"))},e}();t.RegisterErrorHandler=r},922:function(e,t,r){"use strict";var n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o0?o.format.apply(void 0,n([r],t,!1)):r}t.format=a,t.formatLogEntryText=function(e){return"string"==typeof e?e:function(e){return Array.isArray(e)}(e)?a(e):""}},287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToString=t.mapToNumber=void 0,t.mapToNumber=function(e){var t=Number(e);if(isNaN(t))throw new Error("Can't be casted to number");return t},t.mapToString=function(e){if(["string","symbol","bigint","function"].includes(typeof e)||e instanceof Error)try{return String(e)}catch(t){return JSON.stringify(e)}else try{return JSON.stringify(e)}catch(t){return String(e)}}},929:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},924:(e,t,r)=>{"use strict";var n=r(210),o=r(559),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},559:(e,t,r)=>{"use strict";var n=r(612),o=r(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(n,a,arguments);if(c&&u){var r=c(t,"length");r.configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var f=function(){return s(n,i,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},804:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,o){if("[object Function]"!==r.call(n))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var a=0;a{"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i=this;if("function"!=typeof i||n.call(i)!==o)throw new TypeError(t+i);for(var a,s=r.call(arguments,1),c=function(){if(this instanceof a){var t=i.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this}return i.apply(e,s.concat(r.call(arguments)))},u=Math.max(0,i.length-s.length),l=[],f=0;f{"use strict";var n=r(648);e.exports=Function.prototype.bind||n},210:(e,t,r)=>{"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var u=function(){throw new a},l=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(e){return u}}}():u,f=r(405)(),p=Object.getPrototypeOf||function(e){return e.__proto__},y={},d="undefined"==typeof Uint8Array?n:p(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=p(o.prototype))}return h[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(612),m=r(642),w=v.call(Function.call,Array.prototype.concat),O=v.call(Function.apply,Array.prototype.splice),S=v.call(Function.call,String.prototype.replace),j=v.call(Function.call,String.prototype.slice),P=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,A=/\\\\(\\\\)?/g,I=function(e){var t=j(e,0,1),r=j(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing \`%\`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening \`%\`");var n=[];return S(e,P,(function(e,t,r,o){n[n.length]=r?S(o,A,"$1"):t||e})),n},E=function(e,t){var r,n=e;if(m(b,n)&&(n="%"+(r=b[n])[0]+"%"),m(h,n)){var i=h[n];if(i===y&&(i=g(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var r=I(e),n=r.length>0?r[0]:"",i=E("%"+n+"%",t),s=i.name,u=i.value,l=!1,f=i.alias;f&&(n=f[0],O(r,w([0,1],f)));for(var p=1,y=!0;p=r.length){var v=c(u,d);u=(y=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[d]}else y=m(u,d),u=u[d];y&&!l&&(h[s]=u)}}return u}},405:(e,t,r)=>{"use strict";var n=r.g.Symbol,o=r(419);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},608:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},410:(e,t,r)=>{"use strict";var n=r(608);e.exports=function(){return n()&&!!Symbol.toStringTag}},642:(e,t,r)=>{"use strict";var n=r(612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},584:(e,t,r)=>{"use strict";var n=r(410)(),o=r(924)("Object.prototype.toString"),i=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},662:(e,t,r)=>{"use strict";var n,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\\s*(?:function)?\\*/,s=r(410)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(i.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===o.call(e);if(!c)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&c(t)}return c(e)===n}},692:(e,t,r)=>{"use strict";var n=r(804),o=r(83),i=r(924),a=i("Object.prototype.toString"),s=r(410)(),c="undefined"==typeof globalThis?r.g:globalThis,u=o(),l=i("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1}return!!y&&function(e){var t=!1;return n(p,(function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}})),t}(e)}},155:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,c=[],u=!1,l=-1;function f(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&p())}function p(){if(!u){var e=a(f);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l1)for(var r=1;rt.sessionUUID===e)).length}))}deleteBatch(e){return r(this,void 0,void 0,(function*(){this.data.splice(0,e)}))}getAll(){return r(this,void 0,void 0,(function*(){return[...this.data]}))}}},941:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryIssuesTable=t.IDBIssuesTable=void 0,t.IDBIssuesTable=class{constructor(e){this.table=e}add(e){return this.table.add(e)}count(e){return this.table.countBy("sessionUUID",e)}deleteById(e){return this.table.deleteByIdx(e)}getBatch(e,t){return this.table.getBatch(e,t)}},t.InMemoryIssuesTable=class{constructor(){this.data=[],this.idCounter=0}getNextID(){return this.idCounter++}add(e){return r(this,void 0,void 0,(function*(){const t=this.getNextID();this.data.push(Object.assign(Object.assign({},e),{id:t}))}))}count(e){return r(this,void 0,void 0,(function*(){return this.data.filter((t=>t.sessionUUID===e)).length}))}deleteById(e){return r(this,void 0,void 0,(function*(){const t=this.data.findIndex((t=>t.id===e));-1!==t&&this.data.splice(t,1)}))}getBatch(e,t){return r(this,void 0,void 0,(function*(){return this.data.filter((t=>t.sessionUUID===e)).slice(0,t)}))}}},856:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.InMemoryLogsTable=t.IDBLogsTable=void 0,t.IDBLogsTable=class{constructor(e,t){this.table=e,this.logFactory=t}add(e){return this.table.add(e)}count(e){return this.table.countBy("sessionUUID",e)}deleteBatch(e,t){return this.table.deleteBatch(0,t,["sessionUUID",e])}deleteOldLogs(e,t=10){return r(this,void 0,void 0,(function*(){const r=yield this.table.getBatch(e,t);if(r.length<=1)return;const n={sessionUUID:e,data:this.logFactory.createGapLog(r.map((e=>e.data)))};yield Promise.all([this.table.patchByIdx(r[0].id,n),this.table.deleteBatch(1,t-1,["sessionUUID",e])])}))}getBatch(e,t){return this.table.getBatch(e,t)}},t.InMemoryLogsTable=class{constructor(e,t){this.logFactory=e,this.storageLimit=t,this.data=[],this.idCounter=0}getNextID(){return this.idCounter++}add(e){return r(this,void 0,void 0,(function*(){if(this.data.length>=this.storageLimit){const e=new Error("InMemory storage quota exceeded");throw e.name="QuotaExceededError",e}const t=this.getNextID();this.data.push(Object.assign(Object.assign({},e),{id:t}))}))}count(e){return r(this,void 0,void 0,(function*(){return this.data.filter((t=>t.sessionUUID===e)).length}))}deleteBatch(e,t){return r(this,void 0,void 0,(function*(){const r=[];let n=0;for(let o=0;oe.data))),this.data.splice(1,9))}))}getBatch(e,t){return r(this,void 0,void 0,(function*(){return this.data.filter((t=>t.sessionUUID===e)).slice(0,t)}))}}},967:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Table=void 0,t.Table=class{constructor(e,t){this.dbPromise=e,this.store=t}add(e){return r(this,void 0,void 0,(function*(){yield(yield this.dbPromise).add(this.store,e)}))}clear(){return r(this,void 0,void 0,(function*(){yield(yield this.dbPromise).clear(this.store)}))}countBy(e,t){return r(this,void 0,void 0,(function*(){const r=(yield this.dbPromise).transaction(this.store,"readonly");let n,o=0;if(e!==r.store.keyPath){const o=r.store.index(e),i=IDBKeyRange.only(t);n=yield o.openCursor(i)}else n=yield r.store.openCursor(IDBKeyRange.only(t));for(;n;)o++,n=yield n.continue();return o}))}deleteBatch(e,t,n){return r(this,void 0,void 0,(function*(){const r=(yield this.dbPromise).transaction(this.store,"readwrite");let o,i=0;if(n)if(n[0]!==r.store.keyPath){const e=r.store.index(n[0]),t=IDBKeyRange.only(n[1]);o=yield e.openCursor(t)}else o=yield r.store.openCursor(IDBKeyRange.only(n[1]));else o=yield r.store.openCursor();for(;o&&(i>=e&&o.delete(),i++,i!==e+t);)o=yield o.continue()}))}deleteByIdx(e){return r(this,void 0,void 0,(function*(){return(yield this.dbPromise).delete(this.store,e)}))}getAll(){return r(this,void 0,void 0,(function*(){return(yield this.dbPromise).getAll(this.store)}))}getBatch(e,t){return r(this,void 0,void 0,(function*(){const r=(yield this.dbPromise).transaction(this.store,"readonly").store.index("sessionUUID"),n=IDBKeyRange.only(e);let o=yield r.openCursor(n);const i=[];let a=0;for(;o&&(i.push(o.value),a++,a!==t);)o=yield o.continue();return i}))}patchByIdx(e,t){return r(this,void 0,void 0,(function*(){const r=(yield this.dbPromise).transaction(this.store,"readwrite"),n=yield r.store.get(e);yield r.store.put(Object.assign(Object.assign({},n),t))}))}}},572:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogFactory=void 0;const n=r(431);t.LogFactory=class{constructor(e=32e3){this.maxLogLength=e}createFromDeviceKey(e,t,r,n){return this.createFromEntry({tag:"bf_key_value",text:\`Set device data "\${e}"="\${t}"\`},r,n)}createFromEntry(e,t,r){var o,i,a,s,c,u,l,f,p,y;let d=null!==(o=e.text)&&void 0!==o?o:"";return d.length>=this.maxLogLength&&(d=d.substring(0,this.maxLogLength)+"…"),{x:r.iso,t:d,m:null!==(a=null!==(i=e.method)&&void 0!==i?i:t.method)&&void 0!==a?a:"",at:r.epoch,tg:null!==(s=e.tag)&&void 0!==s?s:"",f:null!==(u=null!==(c=e.file)&&void 0!==c?c:t.file)&&void 0!==u?u:"",l:null!==(f=null!==(l=e.line)&&void 0!==l?l:t.line)&&void 0!==f?f:0,ll:null!==(p=e.level)&&void 0!==p?p:n.LogLevel.Debug,u:null!==(y=e.url)&&void 0!==y?y:""}}createFromIssue(e,t,r){return this.createFromEntry({level:n.LogLevel.Error,tag:"bf_issue",text:e},t,r)}createGapLog(e){const t=JSON.stringify({bf_start_date:e[0].at,bf_end_date:e[e.length-1].at});return{x:e[0].x,t,m:"",at:e[0].at,tg:"bf_gap_log",f:"",l:0,ll:0,u:e[0].u}}}},41:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.StorageWriter=void 0,t.StorageWriter=class{constructor(e,t,r,n){this.deviceKeysTable=e,this.issuesTable=t,this.logFactory=r,this.logsTable=n,this.isClearingSpace=!1,this.logsQueue=[]}handleMessage(e){return r(this,void 0,void 0,(function*(){switch(e.type){case"device-key":return this.addDeviceKey(e.data.key,e.data.value,e.data.callInfo,e.data.time);case"init":this.options=e.data.options,this.sessionUUID=e.data.sessionUUID;break;case"issue":return this.addIssue(e.data.type,e.data.title,e.data.text,e.data.uuid,e.data.callInfo,e.data.time);case"log-entry":return this.addLogEntry(e.data.log,e.data.callInfo,e.data.time)}}))}addDeviceKey(e,t,r,n){this.deviceKeysTable.add({sessionUUID:this.sessionUUID,data:{key:e,value:t}}),this.addLog(this.logFactory.createFromDeviceKey(e,t,r,n))}addLog(e){return r(this,void 0,void 0,(function*(){const t={sessionUUID:this.sessionUUID,data:e};if(this.isClearingSpace)this.logsQueue.push(t);else try{yield this.logsTable.add(t)}catch(e){this.isQuotaExceededError(e)&&(this.logsQueue.push(t),this.isClearingSpace=!0,yield this.logsTable.deleteOldLogs(this.sessionUUID),yield this.processLogsQueue(),this.isClearingSpace=!1)}}))}addLogEntry(e,t,r){this.addLog(this.logFactory.createFromEntry(e,t,r))}addIssue(e,t,r,n,o,i){this.issuesTable.add({sessionUUID:this.sessionUUID,data:{title:t,text:r,type:e,uuid:n}}),this.addLog(this.logFactory.createFromIssue(n,o,i))}isQuotaExceededError(e){var t;return"QuotaExceededError"===e.name||"QuotaExceededError"===(null===(t=e.inner)||void 0===t?void 0:t.name)}processLogsQueue(){return r(this,void 0,void 0,(function*(){for(;this.logsQueue.length>0;){const e=this.logsQueue[0];try{yield this.logsTable.add(e),this.logsQueue.shift()}catch(e){this.isQuotaExceededError(e)&&(yield this.logsTable.deleteOldLogs(this.sessionUUID))}}}))}}},593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElByXPath=t.getXPath=t.DebounceByElement=t.UnreachableCaseError=t.CacheDecoratorFactory=t.createDeferred=void 0,t.createDeferred=function(){const e={isFulfilled:!1,isRejected:!1,isResolved:!1};return e.promise=new Promise(((t,r)=>{e.resolve=r=>{const n=e;n.isFulfilled=!0,n.isRejected=!1,n.isResolved=!0,n.value=r,t(r)},e.reject=t=>{const n=e;n.isFulfilled=!0,n.isRejected=!0,n.isResolved=!1,n.err=t,r(t)}})),e},t.CacheDecoratorFactory=function(e){return function(){return function(t,r,n){const o=n.value;n.value=function(){return e.has(r)||e.set(r,o.apply(this)),e.get(r)}}}};class r extends Error{constructor(e){super(\`Unreachable case: \${JSON.stringify(e)}\`)}}t.UnreachableCaseError=r,t.DebounceByElement=class{constructor(e){this.wait=e,this.timers=new Map}run(e,t){this.timers.has(e)&&clearTimeout(this.timers.get(e)),this.timers.set(e,setTimeout((()=>{t(),this.timers.delete(e)}),this.wait))}},t.getXPath=function(e){let t=e;if(t instanceof Element&&t.id)return'//*[@id="'+t.id+'"]';const r=[];for(;t&&t instanceof Element;){const e=t;let n=0,o=!1,i=e.previousSibling;for(;i;)i.nodeType!==Node.DOCUMENT_TYPE_NODE&&i.nodeName===e.nodeName&&n++,i=i.previousSibling;for(i=e.nextSibling;i;){if(i.nodeName===e.nodeName){o=!0;break}i=i.nextSibling}const a=e.prefix?e.prefix+":":"",s=n||o?\`[\${n+1}]\`:"";r.push(a+e.localName+s),t=e.parentNode}return r.length?"/"+r.reverse().join("/"):""},t.getElByXPath=function(e){var t;return null!==(t=document.evaluate(e,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue)&&void 0!==t?t:void 0}},384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},955:(e,t,r)=>{"use strict";var n=r(584),o=r(662),i=r(430),a=r(692);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),y=s(Boolean.prototype.valueOf);if(c)var d=s(BigInt.prototype.valueOf);if(u)var h=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function b(e){return"[object Map]"===l(e)}function v(e){return"[object Set]"===l(e)}function m(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function O(e){return"[object ArrayBuffer]"===l(e)}function S(e){return"undefined"!=typeof ArrayBuffer&&(O.working?O(e):e instanceof ArrayBuffer)}function j(e){return"[object DataView]"===l(e)}function P(e){return"undefined"!=typeof DataView&&(j.working?j(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||P(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},b.working="undefined"!=typeof Map&&b(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(b.working?b(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},m.working="undefined"!=typeof WeakMap&&m(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(m.working?m(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},O.working="undefined"!=typeof ArrayBuffer&&O(new ArrayBuffer),t.isArrayBuffer=S,j.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&j(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=P;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function I(e){return"[object SharedArrayBuffer]"===l(e)}function E(e){return void 0!==A&&(void 0===I.working&&(I.working=I(new A)),I.working?I(e):e instanceof A)}function D(e){return g(e,f)}function x(e){return g(e,p)}function U(e){return g(e,y)}function B(e){return c&&g(e,d)}function T(e){return u&&g(e,h)}t.isSharedArrayBuffer=E,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=D,t.isStringObject=x,t.isBooleanObject=U,t.isBigIntObject=B,t.isSymbolObject=T,t.isBoxedPrimitive=function(e){return D(e)||x(e)||U(e)||B(e)||T(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(S(e)||E(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},539:(e,t,r)=>{var n=r(155),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),p(n,e,n.depth)}function l(e,t){var r=u.styles[t];return r?"\x1B["+u.colors[r][0]+"m"+e+"\x1B["+u.colors[r][1]+"m":e}function f(e,t){return e}function p(e,r,n){if(e.customInspect&&r&&A(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return m(o)||(o=p(e,o,n)),o}var i=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(m(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\\\'").replace(/\\\\"/g,'"')+"'";return e.stylize(r,"string")}return v(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}(e,r);if(i)return i;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),P(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return y(r);if(0===a.length){if(A(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(O(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(j(r))return e.stylize(Date.prototype.toString.call(r),"date");if(P(r))return y(r)}var u,l="",f=!1,S=["{","}"];return h(r)&&(f=!0,S=["[","]"]),A(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),O(r)&&(l=" "+RegExp.prototype.toString.call(r)),j(r)&&(l=" "+Date.prototype.toUTCString.call(r)),P(r)&&(l=" "+y(r)),0!==a.length||f&&0!=r.length?n<0?O(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=f?function(e,t,r,n,o){for(var i=[],a=0,s=t.length;a60?r[0]+(""===t?"":t+"\\n ")+" "+e.join(",\\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(u,l,S)):S[0]+l+S[1]}function y(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,o,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),U(n,o)||(a="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=b(r)?p(e,c.value,null):p(e,c.value,r-1)).indexOf("\\n")>-1&&(s=i?s.split("\\n").map((function(e){return" "+e})).join("\\n").slice(2):"\\n"+s.split("\\n").map((function(e){return" "+e})).join("\\n")):s=e.stylize("[Circular]","special")),w(a)){if(i&&o.match(/^\\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\\\'").replace(/\\\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function b(e){return null===e}function v(e){return"number"==typeof e}function m(e){return"string"==typeof e}function w(e){return void 0===e}function O(e){return S(e)&&"[object RegExp]"===I(e)}function S(e){return"object"==typeof e&&null!==e}function j(e){return S(e)&&"[object Date]"===I(e)}function P(e){return S(e)&&("[object Error]"===I(e)||e instanceof Error)}function A(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(955),t.isArray=h,t.isBoolean=g,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=m,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=O,t.types.isRegExp=O,t.isObject=S,t.isDate=j,t.types.isDate=j,t.isError=P,t.types.isNativeError=P,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(384);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function U(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",x(),t.format.apply(t,arguments))},t.inherits=r(717),t._extend=function(e,t){if(!t||!S(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(B&&e[B]){var t;if("function"!=typeof(t=e[B]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,B,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),o=[],i=0;i{"use strict";var n=r(804),o=r(83),i=r(924),a=i("Object.prototype.toString"),s=r(410)(),c="undefined"==typeof globalThis?r.g:globalThis,u=o(),l=i("String.prototype.slice"),f={},p=r(882),y=Object.getPrototypeOf;s&&p&&y&&n(u,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var r=y(t),n=p(r,Symbol.toStringTag);if(!n){var o=y(r);n=p(o,Symbol.toStringTag)}f[e]=n.get}}}));var d=r(692);e.exports=function(e){return!!d(e)&&(s&&Symbol.toStringTag in e?function(e){var t=!1;return n(f,(function(r,n){if(!t)try{var o=r.call(e);o===n&&(t=o)}catch(e){}})),t}(e):l(a(e),8,-1))}},83:(e,t,r)=>{"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t{"use strict";var n=r(210)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},998:(e,t,r)=>{"use strict";r.r(t),r.d(t,{deleteDB:()=>b,openDB:()=>g,unwrap:()=>h,wrap:()=>d});const n=(e,t)=>t.some((t=>e instanceof t));let o,i;const a=new WeakMap,s=new WeakMap,c=new WeakMap,u=new WeakMap,l=new WeakMap;let f={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return s.get(e);if("objectStoreNames"===t)return e.objectStoreNames||c.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return d(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function p(e){f=e(f)}function y(e){return"function"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(h(this),e),d(a.get(this))}:function(...e){return d(t.apply(h(this),e))}:function(e,...r){const n=t.call(h(this),e,...r);return c.set(n,e.sort?e.sort():[e]),d(n)}:(e instanceof IDBTransaction&&function(e){if(s.has(e))return;const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),n()},i=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)}));s.set(e,t)}(e),n(e,o||(o=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,f):e);var t}function d(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(d(e.result)),n()},i=()=>{r(e.error),n()};e.addEventListener("success",o),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&a.set(t,e)})).catch((()=>{})),l.set(t,e),t}(e);if(u.has(e))return u.get(e);const t=y(e);return t!==e&&(u.set(e,t),l.set(t,e)),t}const h=e=>l.get(e);function g(e,t,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){const a=indexedDB.open(e,t),s=d(a);return n&&a.addEventListener("upgradeneeded",(e=>{n(d(a.result),e.oldVersion,e.newVersion,d(a.transaction),e)})),r&&a.addEventListener("blocked",(e=>r(e.oldVersion,e.newVersion,e))),s.then((e=>{i&&e.addEventListener("close",(()=>i())),o&&e.addEventListener("versionchange",(e=>o(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}function b(e,{blocked:t}={}){const r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",(e=>t(e.oldVersion,e))),d(r).then((()=>{}))}const v=["get","getKey","getAll","getAllKeys","count"],m=["put","add","delete","clear"],w=new Map;function O(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(w.get(t))return w.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,o=m.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!o&&!v.includes(r))return;const i=async function(e,...t){const i=this.transaction(e,o?"readwrite":"readonly");let a=i.store;return n&&(a=a.index(t.shift())),(await Promise.all([a[r](...t),o&&i.done]))[0]};return w.set(t,i),i}p((e=>({...e,get:(t,r,n)=>O(t,r)||e.get(t,r,n),has:(t,r)=>!!O(t,r)||e.has(t,r)})));const S=["continue","continuePrimaryKey","advance"],j={},P=new WeakMap,A=new WeakMap,I={get(e,t){if(!S.includes(t))return e[t];let r=j[t];return r||(r=j[t]=function(...e){P.set(this,A.get(this)[t](...e))}),r}};async function*E(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;const r=new Proxy(t,I);for(A.set(r,t),l.set(r,h(t));t;)yield r,t=await(P.get(r)||t.continue()),P.delete(r)}function D(e,t){return t===Symbol.asyncIterator&&n(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&n(e,[IDBIndex,IDBObjectStore])}p((e=>({...e,get:(t,r,n)=>D(t,r)?E:e.get(t,r,n),has:(t,r)=>D(t,r)||e.has(t,r)})))}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";const e=r(422),t=r(967),n=r(572),o=r(177),i=r(941),a=r(856),s=r(41),c=new e.Database,u=new n.LogFactory,l=new o.IDBDeviceKeysTable(new t.Table(c.get(),"devicekeys")),f=new i.IDBIssuesTable(new t.Table(c.get(),"issues")),p=new a.IDBLogsTable(new t.Table(c.get(),"logs"),u),y=new s.StorageWriter(l,f,u,p);self.addEventListener("message",(e=>{y.handleMessage(e.data)}))})()})(); -`,"Worker",void 0,void 0)}},477:i=>{i.exports=function(e,s,o,a){var c=self||window;try{try{var h;try{h=new c.Blob([e])}catch{(h=new(c.BlobBuilder||c.WebKitBlobBuilder||c.MozBlobBuilder||c.MSBlobBuilder)).append(e),h=h.getBlob()}var g=c.URL||c.webkitURL,d=g.createObjectURL(h),b=new c[s](d,o);return g.revokeObjectURL(d),b}catch{return new c[s]("data:application/javascript,".concat(encodeURIComponent(e)),o)}}catch{if(!a)throw Error("Inline worker is not supported");return new c[s](a,o)}}},8698:i=>{function e(s){return i.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i.exports.__esModule=!0,i.exports.default=i.exports,e(s)}i.exports=e,i.exports.__esModule=!0,i.exports.default=i.exports},3083:(i,e,s)=>{var o=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a=typeof globalThis>"u"?s.g:globalThis;i.exports=function(){for(var c=[],h=0;h{var o=s(210)("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch{o=null}i.exports=o},2998:(i,e,s)=>{s.r(e),s.d(e,{deleteDB:()=>rt,openDB:()=>st,unwrap:()=>tt,wrap:()=>et});const o=(ft,lt)=>lt.some(dt=>ft instanceof dt);let a,c;const h=new WeakMap,g=new WeakMap,d=new WeakMap,b=new WeakMap,_=new WeakMap;let j={get(ft,lt,dt){if(ft instanceof IDBTransaction){if(lt==="done")return g.get(ft);if(lt==="objectStoreNames")return ft.objectStoreNames||d.get(ft);if(lt==="store")return dt.objectStoreNames[1]?void 0:dt.objectStore(dt.objectStoreNames[0])}return et(ft[lt])},set:(ft,lt,dt)=>(ft[lt]=dt,!0),has:(ft,lt)=>ft instanceof IDBTransaction&&(lt==="done"||lt==="store")||lt in ft};function $(ft){j=ft(j)}function _e(ft){return typeof ft=="function"?(lt=ft)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(c||(c=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(lt)?function(...dt){return lt.apply(tt(this),dt),et(h.get(this))}:function(...dt){return et(lt.apply(tt(this),dt))}:function(dt,...bt){const at=lt.call(tt(this),dt,...bt);return d.set(at,dt.sort?dt.sort():[dt]),et(at)}:(ft instanceof IDBTransaction&&function(dt){if(g.has(dt))return;const bt=new Promise((at,ct)=>{const mt=()=>{dt.removeEventListener("complete",Et),dt.removeEventListener("error",jt),dt.removeEventListener("abort",jt)},Et=()=>{at(),mt()},jt=()=>{ct(dt.error||new DOMException("AbortError","AbortError")),mt()};dt.addEventListener("complete",Et),dt.addEventListener("error",jt),dt.addEventListener("abort",jt)});g.set(dt,bt)}(ft),o(ft,a||(a=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(ft,j):ft);var lt}function et(ft){if(ft instanceof IDBRequest)return function(dt){const bt=new Promise((at,ct)=>{const mt=()=>{dt.removeEventListener("success",Et),dt.removeEventListener("error",jt)},Et=()=>{at(et(dt.result)),mt()},jt=()=>{ct(dt.error),mt()};dt.addEventListener("success",Et),dt.addEventListener("error",jt)});return bt.then(at=>{at instanceof IDBCursor&&h.set(at,dt)}).catch(()=>{}),_.set(bt,dt),bt}(ft);if(b.has(ft))return b.get(ft);const lt=_e(ft);return lt!==ft&&(b.set(ft,lt),_.set(lt,ft)),lt}const tt=ft=>_.get(ft);function st(ft,lt,{blocked:dt,upgrade:bt,blocking:at,terminated:ct}={}){const mt=indexedDB.open(ft,lt),Et=et(mt);return bt&&mt.addEventListener("upgradeneeded",jt=>{bt(et(mt.result),jt.oldVersion,jt.newVersion,et(mt.transaction),jt)}),dt&&mt.addEventListener("blocked",jt=>dt(jt.oldVersion,jt.newVersion,jt)),Et.then(jt=>{ct&&jt.addEventListener("close",()=>ct()),at&&jt.addEventListener("versionchange",kt=>at(kt.oldVersion,kt.newVersion,kt))}).catch(()=>{}),Et}function rt(ft,{blocked:lt}={}){const dt=indexedDB.deleteDatabase(ft);return lt&&dt.addEventListener("blocked",bt=>lt(bt.oldVersion,bt)),et(dt).then(()=>{})}const nt=["get","getKey","getAll","getAllKeys","count"],it=["put","add","delete","clear"],ot=new Map;function ut(ft,lt){if(!(ft instanceof IDBDatabase)||lt in ft||typeof lt!="string")return;if(ot.get(lt))return ot.get(lt);const dt=lt.replace(/FromIndex$/,""),bt=lt!==dt,at=it.includes(dt);if(!(dt in(bt?IDBIndex:IDBObjectStore).prototype)||!at&&!nt.includes(dt))return;const ct=async function(mt,...Et){const jt=this.transaction(mt,at?"readwrite":"readonly");let kt=jt.store;return bt&&(kt=kt.index(Et.shift())),(await Promise.all([kt[dt](...Et),at&&jt.done]))[0]};return ot.set(lt,ct),ct}$(ft=>({...ft,get:(lt,dt,bt)=>ut(lt,dt)||ft.get(lt,dt,bt),has:(lt,dt)=>!!ut(lt,dt)||ft.has(lt,dt)}));const ht=["continue","continuePrimaryKey","advance"],pt={},yt=new WeakMap,gt=new WeakMap,xt={get(ft,lt){if(!ht.includes(lt))return ft[lt];let dt=pt[lt];return dt||(dt=pt[lt]=function(...bt){yt.set(this,gt.get(this)[lt](...bt))}),dt}};async function*wt(...ft){let lt=this;if(lt instanceof IDBCursor||(lt=await lt.openCursor(...ft)),!lt)return;const dt=new Proxy(lt,xt);for(gt.set(dt,lt),_.set(dt,tt(lt));lt;)yield dt,lt=await(yt.get(dt)||lt.continue()),yt.delete(dt)}function vt(ft,lt){return lt===Symbol.asyncIterator&&o(ft,[IDBIndex,IDBObjectStore,IDBCursor])||lt==="iterate"&&o(ft,[IDBIndex,IDBObjectStore])}$(ft=>({...ft,get:(lt,dt,bt)=>vt(lt,dt)?wt:ft.get(lt,dt,bt),has:(lt,dt)=>vt(lt,dt)||ft.has(lt,dt)}))}},__webpack_module_cache__={};function __webpack_require__(i){var e=__webpack_module_cache__[i];if(e!==void 0)return e.exports;var s=__webpack_module_cache__[i]={id:i,loaded:!1,exports:{}};return __webpack_modules__[i].call(s.exports,s,s.exports,__webpack_require__),s.loaded=!0,s.exports}__webpack_require__.amdO={},__webpack_require__.n=i=>{var e=i&&i.__esModule?()=>i.default:()=>i;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(i,e)=>{for(var s in e)__webpack_require__.o(e,s)&&!__webpack_require__.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:e[s]})},__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),__webpack_require__.o=(i,e)=>Object.prototype.hasOwnProperty.call(i,e),__webpack_require__.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},__webpack_require__.nmd=i=>(i.paths=[],i.children||(i.children=[]),i);var __webpack_exports__={};return(()=>{var i=__webpack_exports__;Object.defineProperty(i,"__esModule",{value:!0}),i.LogLevel=i.BugfenderClass=i.Bugfender=void 0;const e=__webpack_require__(7431);Object.defineProperty(i,"LogLevel",{enumerable:!0,get:function(){return e.LogLevel}});const s=__webpack_require__(2853);Object.defineProperty(i,"BugfenderClass",{enumerable:!0,get:function(){return s.Bugfender}});const o=new(__webpack_require__(3758)).PreInitProvider(window),a=new s.Bugfender(o,"bugfender-web/20230309 (v2.2.4-bd29575-lib)",20230309);i.Bugfender=a})(),__webpack_exports__})())})(lib);var libExports=lib.exports;const App$q="_App_150vf_1",accordion="_accordion_150vf_6",styles$M={App:App$q,accordion,"accordion-title":"_accordion-title_150vf_14","accordion-icon":"_accordion-icon_150vf_20"},Accordion=({title:i,info:e,id:s,openAccordionId:o,setIdOfOpenAccordion:a})=>{const[c,h]=reactExports.useState(!1),g=()=>{h(d=>!d),a(s)};return reactExports.useEffect(()=>{o&&h(o===s)},[s,o]),jsxRuntimeExports.jsxs("div",{className:styles$M.accordion,children:[jsxRuntimeExports.jsxs("div",{className:styles$M["accordion-title"],children:[jsxRuntimeExports.jsx("h3",{children:i}),jsxRuntimeExports.jsx("button",{onClick:g,className:styles$M["accordion-icon"],children:c?"-":"+"})]}),c&&jsxRuntimeExports.jsx("p",{children:e})]},s)},questions$1=[{id:1,title:"Do I have to allow the use of cookies?",info:"Unicorn vinyl poutine brooklyn, next level direct trade iceland. Shaman copper mug church-key coloring book, whatever poutine normcore fixie cred kickstarter post-ironic street art."},{id:2,title:"How do I change my My Page password?",info:"Coloring book forage photo booth gentrify lumbersexual. Migas chillwave poutine synth shoreditch, enamel pin thundercats fashion axe roof party polaroid chartreuse."},{id:3,title:"What is BankID?",info:"Enamel pin fam sustainable woke whatever venmo. Authentic asymmetrical put a bird on it, lumbersexual activated charcoal kinfolk banjo cred pickled sartorial."},{id:4,title:"Whose birth number can I use?",info:"Edison bulb direct trade gentrify beard lo-fi seitan sustainable roof party franzen occupy squid. Knausgaard cronut succulents, scenester readymade shabby chic lyft. Copper mug meh vegan gentrify."},{id:5,title:"When do I recieve a password ordered by letter?",info:"Locavore franzen fashion axe live-edge neutra irony synth af tilde shabby chic man braid chillwave waistcoat copper mug messenger bag. Banjo snackwave blog, microdosing thundercats migas vaporware viral lo-fi seitan "}];function App$p(){const[i,e]=reactExports.useState(!0),[s,o]=reactExports.useState(null),a=(h=null)=>{o(i?null:h)},c=()=>{i&&o(-1),e(!i)};return jsxRuntimeExports.jsxs("div",{className:styles$M.App,children:[jsxRuntimeExports.jsxs("h4",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"max-open",children:"Is multiple open accordion allowed?"}),jsxRuntimeExports.jsx("input",{type:"checkbox",id:"max-open",checked:i,onChange:c})]}),jsxRuntimeExports.jsx("div",{children:questions$1.map(h=>jsxRuntimeExports.jsx(Accordion,{multiple:i,openAccordionId:s,setIdOfOpenAccordion:a,...h},h.id))})]})}class Trie{constructor(e=[]){kr(this,"trie");this.trie={},this.addWordsToTrie(e)}addWordsToTrie(e){for(let s of e){let o=this.trie;s=s.toLowerCase();for(const a of s)o.hasOwnProperty(a)||(o[a]={}),o=o[a];o.end=!0}}getWordsFromTrie(e,s){e=e.toLowerCase();let o=this.trie;for(const a of e)if(o=o[a],!o)return[];return this.getWordsByDFS(o,s,e)}getWordsByDFS(e,s=1/0,o="",a=[]){if(e.end&&(a.push(o),a.length===s))return a;for(const c in e)if(e.hasOwnProperty(c)&&(this.getWordsByDFS(e[c],s,o+c,a),a.length===s))break;return a}}const useAutoComplete=i=>{const[s,o]=reactExports.useState(""),[a,c]=reactExports.useState([]),[h,g]=reactExports.useState(null),d=reactExports.useRef(new Trie(i)),b=_e=>{const et=_e.target.value;o(_e.target.value),c(et?d.current.getWordsFromTrie(et,5):[]),g(null)};return reactExports.useEffect(()=>{if(h!==null){const _e=a[h];o(_e)}},[h,a]),[s,b,h,a,_e=>{if(_e.key==="Enter"&&h!==null){const et=a[h];o(et),c([]),g(null)}_e.key==="ArrowDown"&&(_e.preventDefault(),g(et=>et===null||et===a.length-1?0:et+1)),_e.key==="ArrowUp"&&(_e.preventDefault(),g(et=>et===null||et===0?a.length-1:et-1))},_e=>{o(_e),c([]),g(null)},_e=>{g(_e)}]},suggestionsList=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],main$6="_main_nknv7_1",suggestions="_suggestions_nknv7_12",highlight$1="_highlight_nknv7_27",loader$1="_loader_nknv7_37",styles$L={main:main$6,suggestions,highlight:highlight$1,loader:loader$1},Autocomplete=()=>{const[i,e,s,o,a,c,h]=useAutoComplete(suggestionsList),g=reactExports.useRef(null);return jsxRuntimeExports.jsxs("div",{className:styles$L.main,children:[jsxRuntimeExports.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),jsxRuntimeExports.jsx("input",{type:"search",ref:g,autoComplete:"off",spellCheck:"false",placeholder:"Search for Country","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:i,onChange:e,onKeyDown:a}),jsxRuntimeExports.jsx("ul",{className:styles$L.suggestions,children:o.map((d,b)=>jsxRuntimeExports.jsx("li",{className:s===b?`${styles$L.highlight}`:"",onClick:()=>c(d),onMouseOver:()=>h(b),onMouseLeave:()=>h(null),children:d},b))})]})};function debounce(i,e=500){let s=null;return function(...a){s&&(clearTimeout(s),s=null),s=setTimeout(i,e,...a)}}const suggestionLength=5;async function makeAPIRequest(i){try{return(await(await fetch(`https://api.github.com/search/users?per_page=${suggestionLength}&q=${i}`)).json()).items.map(o=>o.login)}catch{return[]}}function useAutocompleteOnline(){const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState([]),[a,c]=reactExports.useState(null),[h,g]=reactExports.useState(!1),[d,b]=reactExports.useState(""),_=reactExports.useCallback(debounce(async st=>{g(!0);try{const rt=await makeAPIRequest(st);rt.length>0?(o(rt),b("")):(o([]),b("No results found"))}catch{o([]),b("Error occurred while fetching suggestions")}g(!1)},300),[makeAPIRequest]),j=()=>{o([]),c(null),b("")},$=st=>{if(st.key==="Enter"&&a!==null){const rt=s[a];e(rt),j()}st.key==="ArrowDown"&&(st.preventDefault(),c(rt=>rt===null||rt===s.length-1?0:rt+1)),st.key==="ArrowUp"&&(st.preventDefault(),c(rt=>rt===null||rt===0?s.length-1:rt-1))},_e=st=>{const rt=st.target.value;e(rt),rt.length>0?_(rt):j()},et=st=>{e(st),j()};return reactExports.useEffect(()=>{if(a!==null){const st=s[a];e(st)}},[a,s]),{userText:i,suggestions:s,isLoading:h,suggestionFocus:a,errorMessage:d,handleInputChange:_e,handleSuggestionClick:et,handleKeyDown:$,handleSuggestionFocus:st=>{c(st)}}}function AutocompleteOnline(){const{userText:i,suggestions:e,isLoading:s,suggestionFocus:o,errorMessage:a,handleInputChange:c,handleSuggestionClick:h,handleKeyDown:g,handleSuggestionFocus:d}=useAutocompleteOnline();return jsxRuntimeExports.jsxs("div",{className:styles$L.main,children:[jsxRuntimeExports.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),jsxRuntimeExports.jsx("input",{type:"search",id:"userInput",autoComplete:"off",spellCheck:"false",placeholder:"Search for GitHub username","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:i,onKeyDown:g,onChange:c}),s&&jsxRuntimeExports.jsx("div",{id:"loader",className:styles$L.loader}),a&&jsxRuntimeExports.jsx("div",{id:"info",children:a}),jsxRuntimeExports.jsx("ul",{className:styles$L.suggestions,children:e.map((b,_)=>jsxRuntimeExports.jsx("li",{className:o===_?`${styles$L.highlight}`:"",onClick:()=>h(b),onMouseOver:()=>d(_),onMouseLeave:()=>d(null),children:b},_))})]})}const App$o="_App_7yaca_1",container$a="_container_7yaca_1",input$1="_input_7yaca_7",calculateButton="_calculateButton_7yaca_21",card$1="_card_7yaca_30",ranges="_ranges_7yaca_41",style$1={App:App$o,container:container$a,input:input$1,calculateButton,card:card$1,ranges},BMICard=({BMI:i,category:e})=>{const s=["Less than 18.5 = Underweight","Between 18.5 - 24.9 = Healthy Weight","Between 25 - 29.9 = Overweight","Over 30 = Obese"];return jsxRuntimeExports.jsxs("div",{className:style$1.card,children:[jsxRuntimeExports.jsxs("h1",{children:["BMI = ",i]}),jsxRuntimeExports.jsx("h3",{children:e}),jsxRuntimeExports.jsx("p",{className:style$1.ranges,children:"BMI weight ranges"}),s.map(o=>jsxRuntimeExports.jsx("p",{children:o},o))]})},BMICalculator=({handleHeightChange:i,handleWeightChange:e,BMI:s,calculateBMI:o,category:a})=>jsxRuntimeExports.jsxs("div",{className:style$1.container,children:[jsxRuntimeExports.jsxs("div",{className:style$1.input,children:[jsxRuntimeExports.jsxs("label",{htmlFor:"height",children:["Height ",jsxRuntimeExports.jsx("span",{children:"(in cm)"})]}),jsxRuntimeExports.jsx("input",{type:"text",name:"height",onChange:i}),jsxRuntimeExports.jsxs("label",{htmlFor:"weight",children:["Weight ",jsxRuntimeExports.jsx("span",{children:"(in kg)"})]}),jsxRuntimeExports.jsx("input",{type:"text",name:"weight",onChange:e}),jsxRuntimeExports.jsx("button",{className:style$1.calculateButton,onClick:o,children:"Calculate"})]}),jsxRuntimeExports.jsx(BMICard,{BMI:s,category:a})]}),App$n=()=>{const[i,e]=reactExports.useState(null),[s,o]=reactExports.useState(null),[a,c]=reactExports.useState(null),[h,g]=reactExports.useState(null);reactExports.useEffect(()=>{if(a){let j=a<18.5?"Underweight":a<24.9?"Healthy Weight":a<29.9?"Overweight":"Obese";g(()=>j)}},[a]);const d=j=>{try{const $=parseFloat(j.target.value).toFixed(2);$>10&&e(()=>$)}catch($){console.log($,"Enter numeric values only"),e(0)}},b=j=>{try{const $=parseFloat(j.target.value).toFixed(2);$>10&&o(()=>$)}catch($){console.log($,"Enter numeric values only"),e(0)}},_=()=>{if(i&&s){const j=(s/(i*i/1e4)).toFixed(2);c(()=>j)}};return jsxRuntimeExports.jsx("div",{className:style$1.App,children:jsxRuntimeExports.jsx(BMICalculator,{height:i,weight:s,handleHeightChange:d,handleWeightChange:b,BMI:a,calculateBMI:_,category:h})})},navbar$1="_navbar_6f1bq_1",left="_left_6f1bq_11",back="_back_6f1bq_17",logo$1="_logo_6f1bq_25",right="_right_6f1bq_43",github$1="_github_6f1bq_47",styles$K={navbar:navbar$1,left,back,logo:logo$1,right,github:github$1};function ChallengeNavbar({title:i}){return jsxRuntimeExports.jsxs("nav",{className:styles$K.navbar,children:[jsxRuntimeExports.jsxs("div",{className:styles$K.left,children:[jsxRuntimeExports.jsx("a",{href:"#/challenges",className:styles$K.back,children:"<"}),jsxRuntimeExports.jsx("a",{className:styles$K.logo,href:"/frontend-mini-challenges/",children:jsxRuntimeExports.jsx("img",{src:"/frontend-mini-challenges/react/dist/logo.png",alt:"logo"})})]}),jsxRuntimeExports.jsx("h1",{children:i}),jsxRuntimeExports.jsx("div",{className:styles$K.right,children:jsxRuntimeExports.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",children:jsxRuntimeExports.jsx("img",{src:"https://cdn-icons-png.flaticon.com/512/25/25231.png",alt:"github repo",className:styles$K.github})})})]})}const container$9="_container_10e68_1",button$3="_button_10e68_7",styles$J={container:container$9,button:button$3},getRandomColor=i=>{if(!i){const e="0123456789ABCDEF";i="#";for(let s=0;s<6;s++)i+=e[Math.floor(Math.random()*16)]}return i},BackgroundChanger=()=>{const i=e=>{document.body.style.backgroundColor=e};return reactExports.useEffect(()=>()=>i("unset"),[]),jsxRuntimeExports.jsx("div",{className:styles$J.container,children:jsxRuntimeExports.jsx("button",{type:"button",className:styles$J.button,onClick:()=>i(getRandomColor()),children:"Change Color!! 😎"})})},styles$I={"color-mixer-container":"_color-mixer-container_oo1rc_1","color-box-top":"_color-box-top_oo1rc_13","color-inputs":"_color-inputs_oo1rc_30","color-input":"_color-input_oo1rc_30","mix-button":"_mix-button_oo1rc_57"};function mixColors(i,e){const s=parseInt(i.slice(1,3),16),o=parseInt(i.slice(3,5),16),a=parseInt(i.slice(5,7),16),c=parseInt(e.slice(1,3),16),h=parseInt(e.slice(3,5),16),g=parseInt(e.slice(5,7),16);return`#${Math.round((s+c)/2).toString(16)}${Math.round((o+h)/2).toString(16)}${Math.round((a+g)/2).toString(16)}`}function ColorMixer(){const[i,e]=reactExports.useState("#FF5733"),[s,o]=reactExports.useState("#33FF57"),a=h=>{const{name:g,value:d}=h.target;g==="color1"?e(d):o(d)},c=()=>{e("#FF5733"),o("#33FF57")};return jsxRuntimeExports.jsxs("div",{className:styles$I["color-mixing-container"],children:[jsxRuntimeExports.jsx("div",{className:styles$I["color-box-top"],style:{backgroundColor:mixColors(i,s)},children:jsxRuntimeExports.jsx("p",{style:{textAlign:"center"},children:"Mixed Color"})}),jsxRuntimeExports.jsxs("div",{className:styles$I["color-inputs"],children:[jsxRuntimeExports.jsxs("div",{className:styles$I["color-input"],children:[jsxRuntimeExports.jsx("label",{htmlFor:"color1",children:"Color 1"}),jsxRuntimeExports.jsx("input",{type:"color",name:"color1",value:i,onChange:a})]}),jsxRuntimeExports.jsxs("div",{className:styles$I["color-input"],children:[jsxRuntimeExports.jsx("label",{htmlFor:"color2",children:"Color 2"}),jsxRuntimeExports.jsx("input",{type:"color",name:"color2",value:s,onChange:a})]}),jsxRuntimeExports.jsx("button",{className:styles$I["mix-button"],onClick:c,style:{marginTop:"1rem"},children:"Reset"})]})]})}const main$5="_main_pfcqp_1",size$2="_size_pfcqp_5",grid$1="_grid_pfcqp_13",cell="_cell_pfcqp_17",styles$H={main:main$5,size:size$2,grid:grid$1,cell};function MyTable({columns:i,values:e}){return jsxRuntimeExports.jsx("table",{className:styles$H.grid,style:{gridTemplateColumns:`repeat(${i}, 50px)`},children:jsxRuntimeExports.jsx("tbody",{children:e.map((s,o)=>jsxRuntimeExports.jsx("tr",{children:s.map(a=>jsxRuntimeExports.jsx("td",{className:styles$H.cell,children:a},a))},o))})})}function Size({rows:i,setRows:e,columns:s,setColumns:o}){return jsxRuntimeExports.jsxs("section",{className:styles$H.size,children:[jsxRuntimeExports.jsxs("label",{htmlFor:"rows",children:["Rows :: ",i]}),jsxRuntimeExports.jsx("input",{type:"range",name:"rows",id:"rows",min:"2",max:"8",value:i,onChange:a=>e(+a.target.value)}),jsxRuntimeExports.jsxs("label",{htmlFor:"columns",children:["Columns :: ",s]}),jsxRuntimeExports.jsx("input",{type:"range",name:"columns",id:"columns",min:"2",max:"8",value:s,onChange:a=>o(+a.target.value)})]})}function createMatrix(i,e){const s=Array.from(Array(i),()=>[]);let o=1,a=1,c=0,h=0;for(;h=0;)s[c][h]=o++,c+=a;a*=-1,c+=a,h+=1}return s}function ColumnTable(){const[i,e]=reactExports.useState(2),[s,o]=reactExports.useState(2),a=createMatrix(i,s);return jsxRuntimeExports.jsxs("main",{className:styles$H.main,children:[jsxRuntimeExports.jsx(Size,{rows:i,columns:s,setRows:e,setColumns:o}),jsxRuntimeExports.jsx(MyTable,{columns:s,values:a})]})}const main$4="_main_1cx3l_1",styles$G={main:main$4};function Counter(){const[i,e]=reactExports.useState(0),s=reactExports.useRef(1),o=g=>{s.current=g},a=()=>{e(g=>g+s.current)},c=()=>{e(g=>g-s.current)},h=()=>{e(0)};return jsxRuntimeExports.jsxs("main",{className:styles$G.main,children:[jsxRuntimeExports.jsx("h2",{children:i}),jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsx("button",{onClick:c,"aria-label":"Decrement",children:"-"}),jsxRuntimeExports.jsx("button",{onClick:a,"aria-label":"Increment",children:"+"})]}),jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"step",children:"Increment/Decrement by"}),jsxRuntimeExports.jsx("input",{type:"number",id:"step",defaultValue:s.current,onChange:g=>o(g.target.valueAsNumber),title:"Step value"})]}),jsxRuntimeExports.jsx("section",{children:jsxRuntimeExports.jsx("button",{onClick:h,children:"Reset"})})]})}const initialData={name:"John Doe",companyName:"TwitX",effectiveDate:"",lastDate:"",position:"",contactNumber:""},select$1="_select_17qmd_1",form$3="_form_17qmd_6",formField="_formField_17qmd_13",formInput="_formInput_17qmd_17",styles$F={select:select$1,form:form$3,formField,formInput};function Fields({fields:i,dispatch:e}){return jsxRuntimeExports.jsxs("form",{className:styles$F.form,children:[jsxRuntimeExports.jsxs("div",{className:styles$F.formField,children:[jsxRuntimeExports.jsx("label",{htmlFor:"name",children:"Name: "}),jsxRuntimeExports.jsx("input",{className:styles$F.formInput,type:"text",id:"name",value:i.name,onChange:s=>e({name:s.target.value})})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"companyName",children:"Company Name: "}),jsxRuntimeExports.jsx("input",{className:styles$F.formInput,type:"text",id:"companyName",value:i.companyName,onChange:s=>e({companyName:s.target.value})})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"lastDate",children:"Effective date: "}),jsxRuntimeExports.jsx("input",{className:styles$F.formInput,type:"date",id:"effectiveDate",value:i.effectiveDate,onChange:s=>e({effectiveDate:s.target.value})})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"lastDate",children:"Last date: "}),jsxRuntimeExports.jsx("input",{className:styles$F.formInput,type:"date",id:"lastDate",value:i.lastDate,onChange:s=>e({lastDate:s.target.value})})]})]})}function Resignation({name:i,companyName:e,effectiveDate:s,lastDate:o}){return console.log(s),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{children:"Hi,"}),jsxRuntimeExports.jsxs("p",{children:["Please accept this email as my formal resignation from ",e,". I have taken this decision as I have got a different/better work opportunity and would like to pursue my career in the same."]}),jsxRuntimeExports.jsxs("p",{children:["Request you to consider my letter of resignation effective from ",s,". I understand that as per the policy I am required to serve a notice period of ",60," days and my last working day accordingly shall be"," ",o,"."]}),jsxRuntimeExports.jsxs("p",{children:["I would request you to consider if an early release is possible. I am grateful to ",e," and looking forward to your support."]}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsxs("p",{children:["Thanks and Regards,",jsxRuntimeExports.jsx("br",{}),i]})]})}function TemplateSelector({template:i,setTemplate:e}){const s=o=>{e(o.target.value)};return jsxRuntimeExports.jsxs("form",{className:"text-center",children:[jsxRuntimeExports.jsx("label",{htmlFor:"template",children:"Template: "}),jsxRuntimeExports.jsx("select",{id:"template",value:i,onChange:s,className:styles$F.select,children:jsxRuntimeExports.jsx("option",{value:"resignation",children:"Resignation"})})]})}function EmailTemplates(){const[i,e]=reactExports.useState("jobApplication"),[s,o]=reactExports.useReducer((a,c)=>({...a,...c}),initialData);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TemplateSelector,{template:i,setTemplate:e}),jsxRuntimeExports.jsx(Fields,{fields:s,dispatch:o}),jsxRuntimeExports.jsx("hr",{}),jsxRuntimeExports.jsx(Resignation,{...s})]})}const form$2="_form_1ufkd_2",styles$E={form:form$2};function ExpenseForm({onAddExpense:i}){const[e,s]=reactExports.useState(""),[o,a]=reactExports.useState(""),[c,h]=reactExports.useState(""),g=d=>{d.preventDefault(),i({id:Date.now(),date:e,amount:parseFloat(o),category:c}),s(""),a(""),h("")};return jsxRuntimeExports.jsxs("form",{onSubmit:g,className:styles$E.form,children:[jsxRuntimeExports.jsx("input",{type:"date",value:e,onChange:d=>s(d.target.value),required:!0}),jsxRuntimeExports.jsx("input",{type:"number",value:o,placeholder:"Please Enter Amount",onChange:d=>a(d.target.value),required:!0}),jsxRuntimeExports.jsxs("select",{value:c,onChange:d=>h(d.target.value),children:[jsxRuntimeExports.jsx("option",{value:"",children:"Select Category"}),jsxRuntimeExports.jsx("option",{value:"Food",children:"Food"}),jsxRuntimeExports.jsx("option",{value:"Transport",children:"Transport"}),jsxRuntimeExports.jsx("option",{value:"Entertainment",children:"Entertainment"}),jsxRuntimeExports.jsx("option",{value:"Other",children:"Other"})]}),jsxRuntimeExports.jsx("button",{type:"submit",children:"Add Expense"})]})}const mainContainer="_mainContainer_1ynr6_2",btnRed="_btnRed_1ynr6_32",styles$D={mainContainer,btnRed};function ExpenseSummary({expenses:i}){const e=i.reduce((s,o)=>s+o.amount,0);return jsxRuntimeExports.jsxs("div",{className:styles$D.mainContainer,children:[jsxRuntimeExports.jsx("h2",{children:"Summary"}),jsxRuntimeExports.jsxs("p",{children:["Total Expenses: $",e.toFixed(2)]})]})}function ExpensesList({expenses:i,onDeleteExpense:e}){return jsxRuntimeExports.jsxs("div",{className:styles$D.mainContainer,children:[jsxRuntimeExports.jsx("h2",{children:"Expenses"}),jsxRuntimeExports.jsx("ul",{children:i.map(s=>jsxRuntimeExports.jsxs("li",{children:[s.date," - $",s.amount," - ",s.category,jsxRuntimeExports.jsx("button",{className:styles$D.btnRed,onClick:()=>e(s.id),children:"Delete"})]},s.id))})]})}function App$m(){const[i,e]=reactExports.useState([]),s=a=>{e(c=>[a,...c])},o=a=>{e(c=>c.filter(h=>h.id!==a))};return jsxRuntimeExports.jsxs("div",{className:"App",children:[jsxRuntimeExports.jsx("h1",{}),jsxRuntimeExports.jsx(ExpenseForm,{onAddExpense:s}),jsxRuntimeExports.jsx(ExpensesList,{expenses:i,onDeleteExpense:o}),jsxRuntimeExports.jsx(ExpenseSummary,{expenses:i})]})}const app$1="_app_1o28y_1",list="_list_1o28y_6",editList="_editList_1o28y_22",editableInputContainer="_editableInputContainer_1o28y_30",editableInputError="_editableInputError_1o28y_34",indent="_indent_1o28y_48",controls$2="_controls_1o28y_52",styles$C={app:app$1,list,editList,editableInputContainer,editableInputError,indent,controls:controls$2};function Input({onComplete:i,validateNode:e,defaultValue:s=""}){const[o,a]=reactExports.useState(s),[c,h]=reactExports.useState(null),g=_=>{const j=_.target.value;a(j),j===""?h("File or folder name cannot be empty"):e(j)?h(null):h("A file or folder already exists with that name")},d=()=>{i(o)},b=_=>{_.key==="Enter"&&d()};return jsxRuntimeExports.jsxs("div",{className:styles$C.editableInputContainer,children:[jsxRuntimeExports.jsx("input",{type:"text",autoFocus:!0,onBlur:d,onKeyUp:b,value:o,onChange:g}),c&&jsxRuntimeExports.jsx("div",{className:styles$C.editableInputError,children:jsxRuntimeExports.jsx("p",{children:c})})]})}function File({node:i,parent:e,onNodeDeletion:s,onNodeUpdate:o,validateNode:a}){const[c,h]=reactExports.useState(!1),g=b=>a(e,i,b),d=b=>{g(b)&&o(e,i,b),h(!1)};return c?jsxRuntimeExports.jsxs("li",{className:`${styles$C.list} ${styles$C.editList}`,children:["📄 ",jsxRuntimeExports.jsx(Input,{defaultValue:i.name,onComplete:d,validateNode:g})]}):jsxRuntimeExports.jsxs("li",{className:styles$C.list,children:[jsxRuntimeExports.jsxs("button",{className:styles$C.button,children:["📄 ",i.name]}),jsxRuntimeExports.jsxs("div",{className:styles$C.controls,children:[jsxRuntimeExports.jsx("button",{onClick:()=>h(!0),children:"✏️"}),jsxRuntimeExports.jsx("button",{onClick:()=>s(e,i),children:"🗑️"})]})]})}function Folder({expanded:i,toggleExpand:e,parent:s,node:o,onNodeDeletion:a,onNodeUpdate:c,onNew:h,validateNode:g}){const[d,b]=reactExports.useState(!1),_=$=>g(s,o,$),j=$=>{s&&(_($)&&c(s,o,$),b(!1))};return d?jsxRuntimeExports.jsxs("li",{className:`${styles$C.list} ${styles$C.editList}`,children:[i?"📂":"📁"," ",jsxRuntimeExports.jsx(Input,{defaultValue:o==null?void 0:o.name,onComplete:j,validateNode:_})]}):jsxRuntimeExports.jsxs("li",{className:styles$C.list,"data-root":s===null,children:[jsxRuntimeExports.jsxs("button",{onClick:e,children:[i?"📂":"📁"," ",o==null?void 0:o.name]}),jsxRuntimeExports.jsxs("div",{className:styles$C.controls,children:[jsxRuntimeExports.jsx("button",{className:"edit",onClick:()=>b(!0),children:"✏️"}),jsxRuntimeExports.jsx("button",{className:"new-file",onClick:()=>h(!1),children:"📄"}),jsxRuntimeExports.jsx("button",{className:"new-folder",onClick:()=>h(!0),children:"🗂"}),jsxRuntimeExports.jsx("button",{className:"delete",onClick:()=>a(s,o),children:"🗑️"})]})]})}function Tree({node:i,parent:e,onNodeAddition:s,onNodeDeletion:o,onNodeUpdate:a,validateNode:c}){var tt;const[h,g]=reactExports.useState(!1),[d,b]=reactExports.useState(!1),_=reactExports.useRef(!1),j=st=>{st.stopPropagation(),g(!h)},$=st=>{_.current=st,b(!d),g(!0)},_e=st=>c(i,null,st),et=st=>{st&&_e(st)&&s(i,{name:st,id:new Date().getTime().toString(),isFolder:_.current}),b(!1)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Folder,{expanded:h,toggleExpand:j,parent:e,node:i,onNodeDeletion:o,onNodeUpdate:a,onNew:$,validateNode:c}),h&&jsxRuntimeExports.jsxs("div",{className:styles$C.indent,children:[(tt=i.nodes)==null?void 0:tt.map(st=>st.isFolder?jsxRuntimeExports.jsx(Tree,{node:st,parent:i,onNodeAddition:s,onNodeDeletion:o,onNodeUpdate:a,validateNode:c},st.id):jsxRuntimeExports.jsx(File,{node:st,parent:i,onNodeDeletion:o,onNodeUpdate:a,validateNode:c},st.id)),d&&jsxRuntimeExports.jsxs("li",{className:`${styles$C.list} ${styles$C.editList}`,children:[_.current?"📁":"📄"," ",jsxRuntimeExports.jsx(Input,{onComplete:et,validateNode:_e})]})]})]})}const fileExplorerData={id:"root",name:"root",isFolder:!0,nodes:[{id:"1",name:"public",isFolder:!0,nodes:[{id:"11",name:"images",isFolder:!0,nodes:[{id:"111",name:"cover.png"},{id:"112",name:"icons",isFolder:!0,nodes:[{id:"1121",name:"arrow.svg"}]}]},{id:"12",name:"public_nested_file"}]},{id:"2",name:"src",isFolder:!0,nodes:[{id:"21",name:"components",isFolder:!0,nodes:[{id:"21",name:"index.js"},{id:"22",name:"index.html"},{id:"23",name:"index.css"}]},{id:"22",name:"main.jsx"},{id:"23",name:"App.jsx"},{id:"24",name:"app.module.css"}]},{id:"3",name:"dist",isFolder:!0,nodes:[{id:"31",name:"index.js"},{id:"32",name:"index.html"},{id:"33",name:"index.css"}]},{id:"4",name:"package.json",nodes:[]},{id:"5",name:"package-lock.json",nodes:[]}]};function App$l(){const[i,e]=reactExports.useState(fileExplorerData),s=(h,g)=>{const d={...i},b=[...h.nodes??[]];b.push({...g,nodes:[]}),h.id==="root"?d.nodes=b:h.nodes=b,e(d)},o=(h,g)=>{var _;const d={...i},b=(_=h.nodes)==null?void 0:_.filter(j=>j.id!==g.id);h.id==="root"?d.nodes=b:h.nodes=b,e(d)},a=(h,g,d)=>{var $;const b={...i},_=(($=h.nodes)==null?void 0:$.map(_e=>_e))??[],j=_.findIndex(_e=>_e.id===g.id);_[j]={..._[j],name:d},h.id==="root"?b.nodes=_:h.nodes=_,e(b)},c=(h,g,d)=>{var _;return h===null||typeof h.nodes>"u"?!0:d===""?!1:((_=h.nodes)==null?void 0:_.findIndex(j=>j.id!==(g==null?void 0:g.id)&&j.name===d))===-1};return jsxRuntimeExports.jsx("div",{className:styles$C.app,children:jsxRuntimeExports.jsx(Tree,{node:i,parent:null,onNodeAddition:s,onNodeDeletion:o,onNodeUpdate:a,validateNode:c})})}const App$k="_App_fw4tl_7",meal_container="_meal_container_fw4tl_17",meal_name="_meal_name_fw4tl_29",meal_img="_meal_img_fw4tl_34",tags_container="_tags_container_fw4tl_39",modal_tags_container="_modal_tags_container_fw4tl_40",tag="_tag_fw4tl_39",modal_tag="_modal_tag_fw4tl_40",modal_meal_img="_modal_meal_img_fw4tl_69",modal_instruction="_modal_instruction_fw4tl_74",foodBtn="_foodBtn_fw4tl_79",openBtn="_openBtn_fw4tl_80",closeBtn="_closeBtn_fw4tl_105",recipe_table="_recipe_table_fw4tl_128",styles$B={App:App$k,meal_container,meal_name,meal_img,tags_container,modal_tags_container,tag,modal_tag,modal_meal_img,modal_instruction,foodBtn,openBtn,closeBtn,recipe_table};function TagsList({data:i}){const{strCategory:e,strArea:s,strTags:o}=i;return jsxRuntimeExports.jsxs("ul",{className:styles$B.modal_tags_container,children:[e&&jsxRuntimeExports.jsx("li",{className:styles$B.modal_tag,children:e}),s&&jsxRuntimeExports.jsx("li",{className:styles$B.modal_tag,children:s}),o&&o.split(",").map((a,c)=>jsxRuntimeExports.jsx("li",{className:styles$B.modal_tag,children:a},c))]})}TagsList.propTypes;function Food({data:i,handleOpenDialog:e}){const{strMeal:s,strMealThumb:o}=i;return jsxRuntimeExports.jsxs("div",{className:styles$B.meal_container,children:[jsxRuntimeExports.jsx("h2",{className:styles$B.meal_name,children:s}),jsxRuntimeExports.jsx("img",{className:styles$B.meal_img,src:o,alt:s}),jsxRuntimeExports.jsx(TagsList,{data:i}),jsxRuntimeExports.jsx("button",{className:styles$B.openBtn,onClick:e,children:"detail recipe"})]})}Food.propTypes;function Table$1({data:i}){const e=s=>{const o=[];for(let a=1;a<=20;a++){const c=s[`strIngredient${a}`],h=s[`strMeasure${a}`];c&&h&&o.push({ingredient:c,measure:h})}return o};return jsxRuntimeExports.jsxs("table",{className:styles$B.recipe_table,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{children:"No."}),jsxRuntimeExports.jsx("th",{children:"Ingredient"}),jsxRuntimeExports.jsx("th",{children:"Measure"})]})}),jsxRuntimeExports.jsx("tbody",{children:e(i).map((s,o)=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{children:o+1}),jsxRuntimeExports.jsx("td",{children:s.ingredient}),jsxRuntimeExports.jsx("td",{children:s.measure})]},o))})]})}Table$1.propTypes;function Dialog({data:i,handleCloseDialog:e}){const{strMeal:s,strMealThumb:o,strInstructions:a,strYoutube:c}=i;return jsxRuntimeExports.jsx("dialog",{open:!0,onClose:e,children:jsxRuntimeExports.jsxs("div",{className:styles$B.modal_meal_container,children:[jsxRuntimeExports.jsx("button",{className:styles$B.closeBtn,onClick:e,children:"×"}),jsxRuntimeExports.jsx("h2",{className:styles$B.modal_meal_name,children:s}),jsxRuntimeExports.jsx("img",{className:styles$B.modal_meal_img,src:o,alt:s}),jsxRuntimeExports.jsx(TagsList,{data:i}),jsxRuntimeExports.jsx(Table$1,{data:i}),jsxRuntimeExports.jsx("h2",{children:"Instruction 📜"}),jsxRuntimeExports.jsx("p",{className:styles$B.modal_instruction,children:a}),c&&jsxRuntimeExports.jsxs("a",{href:c,rel:"noopener noreferrer",target:"_blank",children:["YouTube link for ",s]})]})})}Dialog.propTypes;function App$j(){const[i,e]=reactExports.useState(null),[s,o]=reactExports.useState(!1);reactExports.useEffect(()=>{a()},[]);const a=async()=>{try{const d=await fetch("https://www.themealdb.com/api/json/v1/1/random.php");if(!d.ok)throw new Error("Network response was not ok! Something wrong");const b=await d.json();e(b.meals[0])}catch(d){console.error("Error on fetching data: ",d)}},c=()=>{a()},h=()=>{o(!0)},g=()=>{o(!1)};return jsxRuntimeExports.jsxs("div",{className:styles$B.App,children:[jsxRuntimeExports.jsx("h1",{children:"Are you hungry 😋"}),jsxRuntimeExports.jsx("button",{className:styles$B.foodBtn,onClick:c,children:"Another food 🍛"}),s&&jsxRuntimeExports.jsx(Dialog,{data:i,handleCloseDialog:g}),i&&jsxRuntimeExports.jsx(Food,{data:i,handleOpenDialog:h})]})}const app="_app_j2t5p_1",widget="_widget_j2t5p_14",text="_text_j2t5p_21",styles$A={app,widget,text};function App$i(){const[i,e]=reactExports.useState(),[s,o]=reactExports.useState(!1),[a,c]=reactExports.useState(1),[h,g]=reactExports.useState(!1),[d,b]=reactExports.useState(!1),[_,j]=reactExports.useState(!1);reactExports.useEffect(()=>{e(Math.round(100*Math.random()))},[]);const $=et=>{et.preventDefault(),ai?(b(!0),g(!1)):(j(!0),g(!1),b(!1),o(!0))},_e=()=>{e(Math.round(100*Math.random())),j(!1),g(!1),b(!1),o(!1),c(1)};return jsxRuntimeExports.jsxs("div",{className:styles$A.app,children:[jsxRuntimeExports.jsxs("form",{onSubmit:$,children:[jsxRuntimeExports.jsx("label",{htmlFor:"input",children:"Guess a Number between 0 and 100"}),jsxRuntimeExports.jsx("input",{id:"input",type:"number",value:a,min:"0",max:"100",placeholder:"Guess-Number",onChange:et=>c(Number(et.target.value))}),jsxRuntimeExports.jsxs("div",{className:styles$A.widget,children:[jsxRuntimeExports.jsx("button",{type:"reset",onClick:_e,children:"Reset"}),jsxRuntimeExports.jsx("button",{type:"submit",disabled:s,children:"Check"})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$A.text,children:[h&&jsxRuntimeExports.jsxs("p",{children:["Your guess is ",jsxRuntimeExports.jsx("b",{children:"Less"})," than the actual number"]}),d&&jsxRuntimeExports.jsxs("p",{children:["Your guess is ",jsxRuntimeExports.jsx("b",{children:"Higher"})," than the actual number"]}),_&&jsxRuntimeExports.jsxs("p",{children:["Your guess is ",jsxRuntimeExports.jsx("b",{children:"right"})]})]})]})}const styles$z={"image-gallery-container":"_image-gallery-container_3b420_2","gallery-para":"_gallery-para_3b420_7","image-container":"_image-container_3b420_11","image-wrapper":"_image-wrapper_3b420_18","gallery-image":"_gallery-image_3b420_27","selected-image":"_selected-image_3b420_36","selected-heading":"_selected-heading_3b420_41","selected-img":"_selected-img_3b420_46"},images=["https://imgs.search.brave.com/bAdI7a7qnuuOIJphttt3DfbzLnCU7ZDMtnkejXq6UII/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9zdDIu/ZGVwb3NpdHBob3Rv/cy5jb20vMTAwMDkz/OC81NDk5L2kvNDUw/L2RlcG9zaXRwaG90/b3NfNTQ5OTg2MTMt/c3RvY2stcGhvdG8t/Z2luZ2VyLWNhdC5q/cGc","https://imgs.search.brave.com/YzG9FgYN5qLWsiYyJ4dUEvxav9e98dBH0loR8YPRA1E/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9tZWRp/YS5pc3RvY2twaG90/by5jb20vaWQvMTc0/ODc3NTY1L3Bob3Rv/L3BvcnRyYWl0LW9m/LWEtYnJvd24tY2F0/LWFnYWluc3QtYS1n/cmF5LWJhY2tncm91/bmQuanBnP3M9NjEy/eDYxMiZ3PTAmaz0y/MCZjPWlGcFFNSzlF/aTIzVm9XcExLa2Zh/TFVtdXN5Y3VaWllV/OWtWMjNzT2F6YzQ9","https://imgs.search.brave.com/lZtf1S7JKFcaZs2lhxTpAtaJzTk_V35Xt8ys4htuVBU/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9idXJz/dC5zaG9waWZ5Y2Ru/LmNvbS9waG90b3Mv/Y2F0LXBvc2VzLXBl/cmZlY3RseS5qcGc_/d2lkdGg9MTAwMCZm/b3JtYXQ9cGpwZyZl/eGlmPTAmaXB0Yz0w","https://imgs.search.brave.com/t6Nv0DwxoIACRxxtX2h7yt31ux5SCXHWgHVpoGh1diw/rs:fit:500:0:0/g:ce/aHR0cHM6Ly90My5m/dGNkbi5uZXQvanBn/LzAyLzM2Lzk5LzIy/LzM2MF9GXzIzNjk5/MjI4M19zTk94Q1ZR/ZUZMZDVwZHFhS0do/OERSR01aeTdQNFhL/bS5qcGc"];function ImageGallery(){const[i,e]=reactExports.useState(null),s=o=>{e(o)};return jsxRuntimeExports.jsxs("div",{className:styles$z["image-gallery-container"],children:[jsxRuntimeExports.jsx("p",{className:styles$z["gallery-para"],children:"Click on an image!"}),jsxRuntimeExports.jsx("div",{className:styles$z["image-container"],children:images.map((o,a)=>jsxRuntimeExports.jsx("div",{className:styles$z["image-wrapper"],onClick:()=>s(o),children:jsxRuntimeExports.jsx("img",{src:o,alt:`Image ${a+1}`,className:styles$z["gallery-image"]})},a))}),i&&jsxRuntimeExports.jsxs("div",{className:styles$z["selected-image"],children:[jsxRuntimeExports.jsx("h2",{className:styles$z["selected-heading"],children:"Selected Image"}),jsxRuntimeExports.jsx("img",{src:i,alt:"Selected",className:styles$z["selected-img"]})]})]})}const loader="_loader_1hfl7_1",spin="_spin_1hfl7_1",styles$y={loader,spin,"book-title":"_book-title_1hfl7_21"};function bind(i,e){return function(){return i.apply(e,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(i=>e=>{const s=toString.call(e);return i[s]||(i[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=i=>(i=i.toLowerCase(),e=>kindOf(e)===i),typeOfTest=i=>e=>typeof e===i,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(i){return i!==null&&!isUndefined(i)&&i.constructor!==null&&!isUndefined(i.constructor)&&isFunction(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(i){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(i):e=i&&i.buffer&&isArrayBuffer(i.buffer),e}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject$3=i=>i!==null&&typeof i=="object",isBoolean=i=>i===!0||i===!1,isPlainObject=i=>{if(kindOf(i)!=="object")return!1;const e=getPrototypeOf(i);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in i)&&!(Symbol.iterator in i)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=i=>isObject$3(i)&&isFunction(i.pipe),isFormData=i=>{let e;return i&&(typeof FormData=="function"&&i instanceof FormData||isFunction(i.append)&&((e=kindOf(i))==="formdata"||e==="object"&&isFunction(i.toString)&&i.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$1(i,e,{allOwnKeys:s=!1}={}){if(i===null||typeof i>"u")return;let o,a;if(typeof i!="object"&&(i=[i]),isArray(i))for(o=0,a=i.length;o0;)if(a=s[o],e===a.toLowerCase())return a;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=i=>!isUndefined(i)&&i!==_global;function merge(){const{caseless:i}=isContextDefined(this)&&this||{},e={},s=(o,a)=>{const c=i&&findKey(e,a)||a;isPlainObject(e[c])&&isPlainObject(o)?e[c]=merge(e[c],o):isPlainObject(o)?e[c]=merge({},o):isArray(o)?e[c]=o.slice():e[c]=o};for(let o=0,a=arguments.length;o(forEach$1(e,(a,c)=>{s&&isFunction(a)?i[c]=bind(a,s):i[c]=a},{allOwnKeys:o}),i),stripBOM=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),inherits=(i,e,s,o)=>{i.prototype=Object.create(e.prototype,o),i.prototype.constructor=i,Object.defineProperty(i,"super",{value:e.prototype}),s&&Object.assign(i.prototype,s)},toFlatObject=(i,e,s,o)=>{let a,c,h;const g={};if(e=e||{},i==null)return e;do{for(a=Object.getOwnPropertyNames(i),c=a.length;c-- >0;)h=a[c],(!o||o(h,i,e))&&!g[h]&&(e[h]=i[h],g[h]=!0);i=s!==!1&&getPrototypeOf(i)}while(i&&(!s||s(i,e))&&i!==Object.prototype);return e},endsWith=(i,e,s)=>{i=String(i),(s===void 0||s>i.length)&&(s=i.length),s-=e.length;const o=i.indexOf(e,s);return o!==-1&&o===s},toArray=i=>{if(!i)return null;if(isArray(i))return i;let e=i.length;if(!isNumber(e))return null;const s=new Array(e);for(;e-- >0;)s[e]=i[e];return s},isTypedArray=(i=>e=>i&&e instanceof i)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(i,e)=>{const o=(i&&i[Symbol.iterator]).call(i);let a;for(;(a=o.next())&&!a.done;){const c=a.value;e.call(i,c[0],c[1])}},matchAll=(i,e)=>{let s;const o=[];for(;(s=i.exec(e))!==null;)o.push(s);return o},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,o,a){return o.toUpperCase()+a}),hasOwnProperty=(({hasOwnProperty:i})=>(e,s)=>i.call(e,s))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(i,e)=>{const s=Object.getOwnPropertyDescriptors(i),o={};forEach$1(s,(a,c)=>{e(a,c,i)!==!1&&(o[c]=a)}),Object.defineProperties(i,o)},freezeMethods=i=>{reduceDescriptors(i,(e,s)=>{if(isFunction(i)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const o=i[s];if(isFunction(o)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},toObjectSet=(i,e)=>{const s={},o=a=>{a.forEach(c=>{s[c]=!0})};return isArray(i)?o(i):o(String(i).split(e)),s},noop=()=>{},toFiniteNumber=(i,e)=>(i=+i,Number.isFinite(i)?i:e),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(i=16,e=ALPHABET.ALPHA_DIGIT)=>{let s="";const{length:o}=e;for(;i--;)s+=e[Math.random()*o|0];return s};function isSpecCompliantForm(i){return!!(i&&isFunction(i.append)&&i[Symbol.toStringTag]==="FormData"&&i[Symbol.iterator])}const toJSONObject=i=>{const e=new Array(10),s=(o,a)=>{if(isObject$3(o)){if(e.indexOf(o)>=0)return;if(!("toJSON"in o)){e[a]=o;const c=isArray(o)?[]:{};return forEach$1(o,(h,g)=>{const d=s(h,a+1);!isUndefined(d)&&(c[g]=d)}),e[a]=void 0,c}}return o};return s(i,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=i=>i&&(isObject$3(i)||isFunction(i))&&isFunction(i.then)&&isFunction(i.catch),utils={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject:isObject$3,isPlainObject,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach:forEach$1,merge,extend:extend$3,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(i,e,s,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=i,this.name="AxiosError",e&&(this.code=e),s&&(this.config=s),o&&(this.request=o),a&&(this.response=a)}utils.inherits(AxiosError,Error,{toJSON:function i(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(i=>{descriptors[i]={value:i}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(i,e,s,o,a,c)=>{const h=Object.create(prototype$1);return utils.toFlatObject(i,h,function(d){return d!==Error.prototype},g=>g!=="isAxiosError"),AxiosError.call(h,i.message,e,s,o,a),h.cause=i,h.name=i.name,c&&Object.assign(h,c),h};const httpAdapter=null;function isVisitable(i){return utils.isPlainObject(i)||utils.isArray(i)}function removeBrackets(i){return utils.endsWith(i,"[]")?i.slice(0,-2):i}function renderKey(i,e,s){return i?i.concat(e).map(function(a,c){return a=removeBrackets(a),!s&&c?"["+a+"]":a}).join(s?".":""):e}function isFlatArray(i){return utils.isArray(i)&&!i.some(isVisitable)}const predicates=utils.toFlatObject(utils,{},null,function i(e){return/^is[A-Z]/.test(e)});function toFormData(i,e,s){if(!utils.isObject(i))throw new TypeError("target must be an object");e=e||new FormData,s=utils.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(tt,st){return!utils.isUndefined(st[tt])});const o=s.metaTokens,a=s.visitor||_,c=s.dots,h=s.indexes,d=(s.Blob||typeof Blob<"u"&&Blob)&&utils.isSpecCompliantForm(e);if(!utils.isFunction(a))throw new TypeError("visitor must be a function");function b(et){if(et===null)return"";if(utils.isDate(et))return et.toISOString();if(!d&&utils.isBlob(et))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils.isArrayBuffer(et)||utils.isTypedArray(et)?d&&typeof Blob=="function"?new Blob([et]):Buffer.from(et):et}function _(et,tt,st){let rt=et;if(et&&!st&&typeof et=="object"){if(utils.endsWith(tt,"{}"))tt=o?tt:tt.slice(0,-2),et=JSON.stringify(et);else if(utils.isArray(et)&&isFlatArray(et)||(utils.isFileList(et)||utils.endsWith(tt,"[]"))&&(rt=utils.toArray(et)))return tt=removeBrackets(tt),rt.forEach(function(it,ot){!(utils.isUndefined(it)||it===null)&&e.append(h===!0?renderKey([tt],ot,c):h===null?tt:tt+"[]",b(it))}),!1}return isVisitable(et)?!0:(e.append(renderKey(st,tt,c),b(et)),!1)}const j=[],$=Object.assign(predicates,{defaultVisitor:_,convertValue:b,isVisitable});function _e(et,tt){if(!utils.isUndefined(et)){if(j.indexOf(et)!==-1)throw Error("Circular reference detected in "+tt.join("."));j.push(et),utils.forEach(et,function(rt,nt){(!(utils.isUndefined(rt)||rt===null)&&a.call(e,rt,utils.isString(nt)?nt.trim():nt,tt,$))===!0&&_e(rt,tt?tt.concat(nt):[nt])}),j.pop()}}if(!utils.isObject(i))throw new TypeError("data must be an object");return _e(i),e}function encode$1(i){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(o){return e[o]})}function AxiosURLSearchParams(i,e){this._pairs=[],i&&toFormData(i,this,e)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function i(e,s){this._pairs.push([e,s])};prototype.toString=function i(e){const s=e?function(o){return e.call(this,o,encode$1)}:encode$1;return this._pairs.map(function(a){return s(a[0])+"="+s(a[1])},"").join("&")};function encode(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(i,e,s){if(!e)return i;const o=s&&s.encode||encode,a=s&&s.serialize;let c;if(a?c=a(e,s):c=utils.isURLSearchParams(e)?e.toString():new AxiosURLSearchParams(e,s).toString(o),c){const h=i.indexOf("#");h!==-1&&(i=i.slice(0,h)),i+=(i.indexOf("?")===-1?"?":"&")+c}return i}class InterceptorManager{constructor(){this.handlers=[]}use(e,s,o){return this.handlers.push({fulfilled:e,rejected:s,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils.forEach(this.handlers,function(o){o!==null&&e(o)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,isStandardBrowserEnv=(()=>{let i;return typeof navigator<"u"&&((i=navigator.product)==="ReactNative"||i==="NativeScript"||i==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),isStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),platform={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},isStandardBrowserEnv,isStandardBrowserWebWorkerEnv,protocols:["http","https","file","blob","url","data"]};function toURLEncodedForm(i,e){return toFormData(i,new platform.classes.URLSearchParams,Object.assign({visitor:function(s,o,a,c){return platform.isNode&&utils.isBuffer(s)?(this.append(o,s.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},e))}function parsePropPath(i){return utils.matchAll(/\w+|\[(\w*)]/g,i).map(e=>e[0]==="[]"?"":e[1]||e[0])}function arrayToObject(i){const e={},s=Object.keys(i);let o;const a=s.length;let c;for(o=0;o=s.length;return h=!h&&utils.isArray(a)?a.length:h,d?(utils.hasOwnProp(a,h)?a[h]=[a[h],o]:a[h]=o,!g):((!a[h]||!utils.isObject(a[h]))&&(a[h]=[]),e(s,o,a[h],c)&&utils.isArray(a[h])&&(a[h]=arrayToObject(a[h])),!g)}if(utils.isFormData(i)&&utils.isFunction(i.entries)){const s={};return utils.forEachEntry(i,(o,a)=>{e(parsePropPath(o),a,s,0)}),s}return null}const DEFAULT_CONTENT_TYPE={"Content-Type":void 0};function stringifySafely(i,e,s){if(utils.isString(i))try{return(e||JSON.parse)(i),utils.trim(i)}catch(o){if(o.name!=="SyntaxError")throw o}return(s||JSON.stringify)(i)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function i(e,s){const o=s.getContentType()||"",a=o.indexOf("application/json")>-1,c=utils.isObject(e);if(c&&utils.isHTMLForm(e)&&(e=new FormData(e)),utils.isFormData(e))return a&&a?JSON.stringify(formDataToJSON(e)):e;if(utils.isArrayBuffer(e)||utils.isBuffer(e)||utils.isStream(e)||utils.isFile(e)||utils.isBlob(e))return e;if(utils.isArrayBufferView(e))return e.buffer;if(utils.isURLSearchParams(e))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let g;if(c){if(o.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((g=utils.isFileList(e))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return toFormData(g?{"files[]":e}:e,d&&new d,this.formSerializer)}}return c||a?(s.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function i(e){const s=this.transitional||defaults$1.transitional,o=s&&s.forcedJSONParsing,a=this.responseType==="json";if(e&&utils.isString(e)&&(o&&!this.responseType||a)){const h=!(s&&s.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(g){if(h)throw g.name==="SyntaxError"?AxiosError.from(g,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):g}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function i(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils.forEach(["delete","get","head"],function i(e){defaults$1.headers[e]={}});utils.forEach(["post","put","patch"],function i(e){defaults$1.headers[e]=utils.merge(DEFAULT_CONTENT_TYPE)});const defaults$2=defaults$1,ignoreDuplicateOf=utils.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=i=>{const e={};let s,o,a;return i&&i.split(` +`,"Worker",void 0,void 0)}},477:i=>{i.exports=function(e,s,o,a){var c=self||window;try{try{var h;try{h=new c.Blob([e])}catch{(h=new(c.BlobBuilder||c.WebKitBlobBuilder||c.MozBlobBuilder||c.MSBlobBuilder)).append(e),h=h.getBlob()}var g=c.URL||c.webkitURL,d=g.createObjectURL(h),b=new c[s](d,o);return g.revokeObjectURL(d),b}catch{return new c[s]("data:application/javascript,".concat(encodeURIComponent(e)),o)}}catch{if(!a)throw Error("Inline worker is not supported");return new c[s](a,o)}}},8698:i=>{function e(s){return i.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i.exports.__esModule=!0,i.exports.default=i.exports,e(s)}i.exports=e,i.exports.__esModule=!0,i.exports.default=i.exports},3083:(i,e,s)=>{var o=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a=typeof globalThis>"u"?s.g:globalThis;i.exports=function(){for(var c=[],h=0;h{var o=s(210)("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch{o=null}i.exports=o},2998:(i,e,s)=>{s.r(e),s.d(e,{deleteDB:()=>nt,openDB:()=>st,unwrap:()=>tt,wrap:()=>et});const o=(ft,lt)=>lt.some(dt=>ft instanceof dt);let a,c;const h=new WeakMap,g=new WeakMap,d=new WeakMap,b=new WeakMap,_=new WeakMap;let j={get(ft,lt,dt){if(ft instanceof IDBTransaction){if(lt==="done")return g.get(ft);if(lt==="objectStoreNames")return ft.objectStoreNames||d.get(ft);if(lt==="store")return dt.objectStoreNames[1]?void 0:dt.objectStore(dt.objectStoreNames[0])}return et(ft[lt])},set:(ft,lt,dt)=>(ft[lt]=dt,!0),has:(ft,lt)=>ft instanceof IDBTransaction&&(lt==="done"||lt==="store")||lt in ft};function $(ft){j=ft(j)}function _e(ft){return typeof ft=="function"?(lt=ft)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(c||(c=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(lt)?function(...dt){return lt.apply(tt(this),dt),et(h.get(this))}:function(...dt){return et(lt.apply(tt(this),dt))}:function(dt,...bt){const at=lt.call(tt(this),dt,...bt);return d.set(at,dt.sort?dt.sort():[dt]),et(at)}:(ft instanceof IDBTransaction&&function(dt){if(g.has(dt))return;const bt=new Promise((at,ct)=>{const mt=()=>{dt.removeEventListener("complete",Et),dt.removeEventListener("error",jt),dt.removeEventListener("abort",jt)},Et=()=>{at(),mt()},jt=()=>{ct(dt.error||new DOMException("AbortError","AbortError")),mt()};dt.addEventListener("complete",Et),dt.addEventListener("error",jt),dt.addEventListener("abort",jt)});g.set(dt,bt)}(ft),o(ft,a||(a=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(ft,j):ft);var lt}function et(ft){if(ft instanceof IDBRequest)return function(dt){const bt=new Promise((at,ct)=>{const mt=()=>{dt.removeEventListener("success",Et),dt.removeEventListener("error",jt)},Et=()=>{at(et(dt.result)),mt()},jt=()=>{ct(dt.error),mt()};dt.addEventListener("success",Et),dt.addEventListener("error",jt)});return bt.then(at=>{at instanceof IDBCursor&&h.set(at,dt)}).catch(()=>{}),_.set(bt,dt),bt}(ft);if(b.has(ft))return b.get(ft);const lt=_e(ft);return lt!==ft&&(b.set(ft,lt),_.set(lt,ft)),lt}const tt=ft=>_.get(ft);function st(ft,lt,{blocked:dt,upgrade:bt,blocking:at,terminated:ct}={}){const mt=indexedDB.open(ft,lt),Et=et(mt);return bt&&mt.addEventListener("upgradeneeded",jt=>{bt(et(mt.result),jt.oldVersion,jt.newVersion,et(mt.transaction),jt)}),dt&&mt.addEventListener("blocked",jt=>dt(jt.oldVersion,jt.newVersion,jt)),Et.then(jt=>{ct&&jt.addEventListener("close",()=>ct()),at&&jt.addEventListener("versionchange",kt=>at(kt.oldVersion,kt.newVersion,kt))}).catch(()=>{}),Et}function nt(ft,{blocked:lt}={}){const dt=indexedDB.deleteDatabase(ft);return lt&&dt.addEventListener("blocked",bt=>lt(bt.oldVersion,bt)),et(dt).then(()=>{})}const rt=["get","getKey","getAll","getAllKeys","count"],it=["put","add","delete","clear"],ot=new Map;function ut(ft,lt){if(!(ft instanceof IDBDatabase)||lt in ft||typeof lt!="string")return;if(ot.get(lt))return ot.get(lt);const dt=lt.replace(/FromIndex$/,""),bt=lt!==dt,at=it.includes(dt);if(!(dt in(bt?IDBIndex:IDBObjectStore).prototype)||!at&&!rt.includes(dt))return;const ct=async function(mt,...Et){const jt=this.transaction(mt,at?"readwrite":"readonly");let kt=jt.store;return bt&&(kt=kt.index(Et.shift())),(await Promise.all([kt[dt](...Et),at&&jt.done]))[0]};return ot.set(lt,ct),ct}$(ft=>({...ft,get:(lt,dt,bt)=>ut(lt,dt)||ft.get(lt,dt,bt),has:(lt,dt)=>!!ut(lt,dt)||ft.has(lt,dt)}));const ht=["continue","continuePrimaryKey","advance"],pt={},yt=new WeakMap,gt=new WeakMap,xt={get(ft,lt){if(!ht.includes(lt))return ft[lt];let dt=pt[lt];return dt||(dt=pt[lt]=function(...bt){yt.set(this,gt.get(this)[lt](...bt))}),dt}};async function*wt(...ft){let lt=this;if(lt instanceof IDBCursor||(lt=await lt.openCursor(...ft)),!lt)return;const dt=new Proxy(lt,xt);for(gt.set(dt,lt),_.set(dt,tt(lt));lt;)yield dt,lt=await(yt.get(dt)||lt.continue()),yt.delete(dt)}function vt(ft,lt){return lt===Symbol.asyncIterator&&o(ft,[IDBIndex,IDBObjectStore,IDBCursor])||lt==="iterate"&&o(ft,[IDBIndex,IDBObjectStore])}$(ft=>({...ft,get:(lt,dt,bt)=>vt(lt,dt)?wt:ft.get(lt,dt,bt),has:(lt,dt)=>vt(lt,dt)||ft.has(lt,dt)}))}},__webpack_module_cache__={};function __webpack_require__(i){var e=__webpack_module_cache__[i];if(e!==void 0)return e.exports;var s=__webpack_module_cache__[i]={id:i,loaded:!1,exports:{}};return __webpack_modules__[i].call(s.exports,s,s.exports,__webpack_require__),s.loaded=!0,s.exports}__webpack_require__.amdO={},__webpack_require__.n=i=>{var e=i&&i.__esModule?()=>i.default:()=>i;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(i,e)=>{for(var s in e)__webpack_require__.o(e,s)&&!__webpack_require__.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:e[s]})},__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),__webpack_require__.o=(i,e)=>Object.prototype.hasOwnProperty.call(i,e),__webpack_require__.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},__webpack_require__.nmd=i=>(i.paths=[],i.children||(i.children=[]),i);var __webpack_exports__={};return(()=>{var i=__webpack_exports__;Object.defineProperty(i,"__esModule",{value:!0}),i.LogLevel=i.BugfenderClass=i.Bugfender=void 0;const e=__webpack_require__(7431);Object.defineProperty(i,"LogLevel",{enumerable:!0,get:function(){return e.LogLevel}});const s=__webpack_require__(2853);Object.defineProperty(i,"BugfenderClass",{enumerable:!0,get:function(){return s.Bugfender}});const o=new(__webpack_require__(3758)).PreInitProvider(window),a=new s.Bugfender(o,"bugfender-web/20230309 (v2.2.4-bd29575-lib)",20230309);i.Bugfender=a})(),__webpack_exports__})())})(lib);var libExports=lib.exports;const App$r="_App_150vf_1",accordion="_accordion_150vf_6",styles$N={App:App$r,accordion,"accordion-title":"_accordion-title_150vf_14","accordion-icon":"_accordion-icon_150vf_20"},Accordion=({title:i,info:e,id:s,openAccordionId:o,setIdOfOpenAccordion:a})=>{const[c,h]=reactExports.useState(!1),g=()=>{h(d=>!d),a(s)};return reactExports.useEffect(()=>{o&&h(o===s)},[s,o]),jsxRuntimeExports.jsxs("div",{className:styles$N.accordion,children:[jsxRuntimeExports.jsxs("div",{className:styles$N["accordion-title"],children:[jsxRuntimeExports.jsx("h3",{children:i}),jsxRuntimeExports.jsx("button",{onClick:g,className:styles$N["accordion-icon"],children:c?"-":"+"})]}),c&&jsxRuntimeExports.jsx("p",{children:e})]},s)},questions$1=[{id:1,title:"Do I have to allow the use of cookies?",info:"Unicorn vinyl poutine brooklyn, next level direct trade iceland. Shaman copper mug church-key coloring book, whatever poutine normcore fixie cred kickstarter post-ironic street art."},{id:2,title:"How do I change my My Page password?",info:"Coloring book forage photo booth gentrify lumbersexual. Migas chillwave poutine synth shoreditch, enamel pin thundercats fashion axe roof party polaroid chartreuse."},{id:3,title:"What is BankID?",info:"Enamel pin fam sustainable woke whatever venmo. Authentic asymmetrical put a bird on it, lumbersexual activated charcoal kinfolk banjo cred pickled sartorial."},{id:4,title:"Whose birth number can I use?",info:"Edison bulb direct trade gentrify beard lo-fi seitan sustainable roof party franzen occupy squid. Knausgaard cronut succulents, scenester readymade shabby chic lyft. Copper mug meh vegan gentrify."},{id:5,title:"When do I recieve a password ordered by letter?",info:"Locavore franzen fashion axe live-edge neutra irony synth af tilde shabby chic man braid chillwave waistcoat copper mug messenger bag. Banjo snackwave blog, microdosing thundercats migas vaporware viral lo-fi seitan "}];function App$q(){const[i,e]=reactExports.useState(!0),[s,o]=reactExports.useState(null),a=(h=null)=>{o(i?null:h)},c=()=>{i&&o(-1),e(!i)};return jsxRuntimeExports.jsxs("div",{className:styles$N.App,children:[jsxRuntimeExports.jsxs("h4",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"max-open",children:"Is multiple open accordion allowed?"}),jsxRuntimeExports.jsx("input",{type:"checkbox",id:"max-open",checked:i,onChange:c})]}),jsxRuntimeExports.jsx("div",{children:questions$1.map(h=>jsxRuntimeExports.jsx(Accordion,{multiple:i,openAccordionId:s,setIdOfOpenAccordion:a,...h},h.id))})]})}class Trie{constructor(e=[]){kn(this,"trie");this.trie={},this.addWordsToTrie(e)}addWordsToTrie(e){for(let s of e){let o=this.trie;s=s.toLowerCase();for(const a of s)o.hasOwnProperty(a)||(o[a]={}),o=o[a];o.end=!0}}getWordsFromTrie(e,s){e=e.toLowerCase();let o=this.trie;for(const a of e)if(o=o[a],!o)return[];return this.getWordsByDFS(o,s,e)}getWordsByDFS(e,s=1/0,o="",a=[]){if(e.end&&(a.push(o),a.length===s))return a;for(const c in e)if(e.hasOwnProperty(c)&&(this.getWordsByDFS(e[c],s,o+c,a),a.length===s))break;return a}}const useAutoComplete=i=>{const[s,o]=reactExports.useState(""),[a,c]=reactExports.useState([]),[h,g]=reactExports.useState(null),d=reactExports.useRef(new Trie(i)),b=_e=>{const et=_e.target.value;o(_e.target.value),c(et?d.current.getWordsFromTrie(et,5):[]),g(null)};return reactExports.useEffect(()=>{if(h!==null){const _e=a[h];o(_e)}},[h,a]),[s,b,h,a,_e=>{if(_e.key==="Enter"&&h!==null){const et=a[h];o(et),c([]),g(null)}_e.key==="ArrowDown"&&(_e.preventDefault(),g(et=>et===null||et===a.length-1?0:et+1)),_e.key==="ArrowUp"&&(_e.preventDefault(),g(et=>et===null||et===0?a.length-1:et-1))},_e=>{o(_e),c([]),g(null)},_e=>{g(_e)}]},suggestionsList=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],main$7="_main_nknv7_1",suggestions="_suggestions_nknv7_12",highlight$1="_highlight_nknv7_27",loader$2="_loader_nknv7_37",styles$M={main:main$7,suggestions,highlight:highlight$1,loader:loader$2},Autocomplete=()=>{const[i,e,s,o,a,c,h]=useAutoComplete(suggestionsList),g=reactExports.useRef(null);return jsxRuntimeExports.jsxs("div",{className:styles$M.main,children:[jsxRuntimeExports.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),jsxRuntimeExports.jsx("input",{type:"search",ref:g,autoComplete:"off",spellCheck:"false",placeholder:"Search for Country","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:i,onChange:e,onKeyDown:a}),jsxRuntimeExports.jsx("ul",{className:styles$M.suggestions,children:o.map((d,b)=>jsxRuntimeExports.jsx("li",{className:s===b?`${styles$M.highlight}`:"",onClick:()=>c(d),onMouseOver:()=>h(b),onMouseLeave:()=>h(null),children:d},b))})]})};function debounce(i,e=500){let s=null;return function(...a){s&&(clearTimeout(s),s=null),s=setTimeout(i,e,...a)}}const suggestionLength=5;async function makeAPIRequest(i){try{return(await(await fetch(`https://api.github.com/search/users?per_page=${suggestionLength}&q=${i}`)).json()).items.map(o=>o.login)}catch{return[]}}function useAutocompleteOnline(){const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState([]),[a,c]=reactExports.useState(null),[h,g]=reactExports.useState(!1),[d,b]=reactExports.useState(""),_=reactExports.useCallback(debounce(async st=>{g(!0);try{const nt=await makeAPIRequest(st);nt.length>0?(o(nt),b("")):(o([]),b("No results found"))}catch{o([]),b("Error occurred while fetching suggestions")}g(!1)},300),[makeAPIRequest]),j=()=>{o([]),c(null),b("")},$=st=>{if(st.key==="Enter"&&a!==null){const nt=s[a];e(nt),j()}st.key==="ArrowDown"&&(st.preventDefault(),c(nt=>nt===null||nt===s.length-1?0:nt+1)),st.key==="ArrowUp"&&(st.preventDefault(),c(nt=>nt===null||nt===0?s.length-1:nt-1))},_e=st=>{const nt=st.target.value;e(nt),nt.length>0?_(nt):j()},et=st=>{e(st),j()};return reactExports.useEffect(()=>{if(a!==null){const st=s[a];e(st)}},[a,s]),{userText:i,suggestions:s,isLoading:h,suggestionFocus:a,errorMessage:d,handleInputChange:_e,handleSuggestionClick:et,handleKeyDown:$,handleSuggestionFocus:st=>{c(st)}}}function AutocompleteOnline(){const{userText:i,suggestions:e,isLoading:s,suggestionFocus:o,errorMessage:a,handleInputChange:c,handleSuggestionClick:h,handleKeyDown:g,handleSuggestionFocus:d}=useAutocompleteOnline();return jsxRuntimeExports.jsxs("div",{className:styles$M.main,children:[jsxRuntimeExports.jsx("p",{children:"Use up & down arrows to navigate suggestions"}),jsxRuntimeExports.jsx("input",{type:"search",id:"userInput",autoComplete:"off",spellCheck:"false",placeholder:"Search for GitHub username","aria-label":"Search",role:"combobox","aria-autocomplete":"list",value:i,onKeyDown:g,onChange:c}),s&&jsxRuntimeExports.jsx("div",{id:"loader",className:styles$M.loader}),a&&jsxRuntimeExports.jsx("div",{id:"info",children:a}),jsxRuntimeExports.jsx("ul",{className:styles$M.suggestions,children:e.map((b,_)=>jsxRuntimeExports.jsx("li",{className:o===_?`${styles$M.highlight}`:"",onClick:()=>h(b),onMouseOver:()=>d(_),onMouseLeave:()=>d(null),children:b},_))})]})}const App$p="_App_7yaca_1",container$b="_container_7yaca_1",input$1="_input_7yaca_7",calculateButton="_calculateButton_7yaca_21",card$1="_card_7yaca_30",ranges="_ranges_7yaca_41",style$1={App:App$p,container:container$b,input:input$1,calculateButton,card:card$1,ranges},BMICard=({BMI:i,category:e})=>{const s=["Less than 18.5 = Underweight","Between 18.5 - 24.9 = Healthy Weight","Between 25 - 29.9 = Overweight","Over 30 = Obese"];return jsxRuntimeExports.jsxs("div",{className:style$1.card,children:[jsxRuntimeExports.jsxs("h1",{children:["BMI = ",i]}),jsxRuntimeExports.jsx("h3",{children:e}),jsxRuntimeExports.jsx("p",{className:style$1.ranges,children:"BMI weight ranges"}),s.map(o=>jsxRuntimeExports.jsx("p",{children:o},o))]})},BMICalculator=({handleHeightChange:i,handleWeightChange:e,BMI:s,calculateBMI:o,category:a})=>jsxRuntimeExports.jsxs("div",{className:style$1.container,children:[jsxRuntimeExports.jsxs("div",{className:style$1.input,children:[jsxRuntimeExports.jsxs("label",{htmlFor:"height",children:["Height ",jsxRuntimeExports.jsx("span",{children:"(in cm)"})]}),jsxRuntimeExports.jsx("input",{type:"text",name:"height",onChange:i}),jsxRuntimeExports.jsxs("label",{htmlFor:"weight",children:["Weight ",jsxRuntimeExports.jsx("span",{children:"(in kg)"})]}),jsxRuntimeExports.jsx("input",{type:"text",name:"weight",onChange:e}),jsxRuntimeExports.jsx("button",{className:style$1.calculateButton,onClick:o,children:"Calculate"})]}),jsxRuntimeExports.jsx(BMICard,{BMI:s,category:a})]}),App$o=()=>{const[i,e]=reactExports.useState(null),[s,o]=reactExports.useState(null),[a,c]=reactExports.useState(null),[h,g]=reactExports.useState(null);reactExports.useEffect(()=>{if(a){let j=a<18.5?"Underweight":a<24.9?"Healthy Weight":a<29.9?"Overweight":"Obese";g(()=>j)}},[a]);const d=j=>{try{const $=parseFloat(j.target.value).toFixed(2);$>10&&e(()=>$)}catch($){console.log($,"Enter numeric values only"),e(0)}},b=j=>{try{const $=parseFloat(j.target.value).toFixed(2);$>10&&o(()=>$)}catch($){console.log($,"Enter numeric values only"),e(0)}},_=()=>{if(i&&s){const j=(s/(i*i/1e4)).toFixed(2);c(()=>j)}};return jsxRuntimeExports.jsx("div",{className:style$1.App,children:jsxRuntimeExports.jsx(BMICalculator,{height:i,weight:s,handleHeightChange:d,handleWeightChange:b,BMI:a,calculateBMI:_,category:h})})},navbar$1="_navbar_6f1bq_1",left="_left_6f1bq_11",back="_back_6f1bq_17",logo$1="_logo_6f1bq_25",right="_right_6f1bq_43",github$1="_github_6f1bq_47",styles$L={navbar:navbar$1,left,back,logo:logo$1,right,github:github$1};function ChallengeNavbar({title:i}){return jsxRuntimeExports.jsxs("nav",{className:styles$L.navbar,children:[jsxRuntimeExports.jsxs("div",{className:styles$L.left,children:[jsxRuntimeExports.jsx("a",{href:"#/challenges",className:styles$L.back,children:"<"}),jsxRuntimeExports.jsx("a",{className:styles$L.logo,href:"/frontend-mini-challenges/",children:jsxRuntimeExports.jsx("img",{src:"/frontend-mini-challenges/react/dist/logo.png",alt:"logo"})})]}),jsxRuntimeExports.jsx("h1",{children:i}),jsxRuntimeExports.jsx("div",{className:styles$L.right,children:jsxRuntimeExports.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",children:jsxRuntimeExports.jsx("img",{src:"https://cdn-icons-png.flaticon.com/512/25/25231.png",alt:"github repo",className:styles$L.github})})})]})}const container$a="_container_10e68_1",button$3="_button_10e68_7",styles$K={container:container$a,button:button$3},getRandomColor=i=>{if(!i){const e="0123456789ABCDEF";i="#";for(let s=0;s<6;s++)i+=e[Math.floor(Math.random()*16)]}return i},BackgroundChanger=()=>{const i=e=>{document.body.style.backgroundColor=e};return reactExports.useEffect(()=>()=>i("unset"),[]),jsxRuntimeExports.jsx("div",{className:styles$K.container,children:jsxRuntimeExports.jsx("button",{type:"button",className:styles$K.button,onClick:()=>i(getRandomColor()),children:"Change Color!! 😎"})})},styles$J={"color-mixer-container":"_color-mixer-container_oo1rc_1","color-box-top":"_color-box-top_oo1rc_13","color-inputs":"_color-inputs_oo1rc_30","color-input":"_color-input_oo1rc_30","mix-button":"_mix-button_oo1rc_57"};function mixColors(i,e){const s=parseInt(i.slice(1,3),16),o=parseInt(i.slice(3,5),16),a=parseInt(i.slice(5,7),16),c=parseInt(e.slice(1,3),16),h=parseInt(e.slice(3,5),16),g=parseInt(e.slice(5,7),16);return`#${Math.round((s+c)/2).toString(16)}${Math.round((o+h)/2).toString(16)}${Math.round((a+g)/2).toString(16)}`}function ColorMixer(){const[i,e]=reactExports.useState("#FF5733"),[s,o]=reactExports.useState("#33FF57"),a=h=>{const{name:g,value:d}=h.target;g==="color1"?e(d):o(d)},c=()=>{e("#FF5733"),o("#33FF57")};return jsxRuntimeExports.jsxs("div",{className:styles$J["color-mixing-container"],children:[jsxRuntimeExports.jsx("div",{className:styles$J["color-box-top"],style:{backgroundColor:mixColors(i,s)},children:jsxRuntimeExports.jsx("p",{style:{textAlign:"center"},children:"Mixed Color"})}),jsxRuntimeExports.jsxs("div",{className:styles$J["color-inputs"],children:[jsxRuntimeExports.jsxs("div",{className:styles$J["color-input"],children:[jsxRuntimeExports.jsx("label",{htmlFor:"color1",children:"Color 1"}),jsxRuntimeExports.jsx("input",{type:"color",name:"color1",value:i,onChange:a})]}),jsxRuntimeExports.jsxs("div",{className:styles$J["color-input"],children:[jsxRuntimeExports.jsx("label",{htmlFor:"color2",children:"Color 2"}),jsxRuntimeExports.jsx("input",{type:"color",name:"color2",value:s,onChange:a})]}),jsxRuntimeExports.jsx("button",{className:styles$J["mix-button"],onClick:c,style:{marginTop:"1rem"},children:"Reset"})]})]})}const main$6="_main_pfcqp_1",size$2="_size_pfcqp_5",grid$1="_grid_pfcqp_13",cell="_cell_pfcqp_17",styles$I={main:main$6,size:size$2,grid:grid$1,cell};function MyTable({columns:i,values:e}){return jsxRuntimeExports.jsx("table",{className:styles$I.grid,style:{gridTemplateColumns:`repeat(${i}, 50px)`},children:jsxRuntimeExports.jsx("tbody",{children:e.map((s,o)=>jsxRuntimeExports.jsx("tr",{children:s.map(a=>jsxRuntimeExports.jsx("td",{className:styles$I.cell,children:a},a))},o))})})}function Size({rows:i,setRows:e,columns:s,setColumns:o}){return jsxRuntimeExports.jsxs("section",{className:styles$I.size,children:[jsxRuntimeExports.jsxs("label",{htmlFor:"rows",children:["Rows :: ",i]}),jsxRuntimeExports.jsx("input",{type:"range",name:"rows",id:"rows",min:"2",max:"8",value:i,onChange:a=>e(+a.target.value)}),jsxRuntimeExports.jsxs("label",{htmlFor:"columns",children:["Columns :: ",s]}),jsxRuntimeExports.jsx("input",{type:"range",name:"columns",id:"columns",min:"2",max:"8",value:s,onChange:a=>o(+a.target.value)})]})}function createMatrix(i,e){const s=Array.from(Array(i),()=>[]);let o=1,a=1,c=0,h=0;for(;h=0;)s[c][h]=o++,c+=a;a*=-1,c+=a,h+=1}return s}function ColumnTable(){const[i,e]=reactExports.useState(2),[s,o]=reactExports.useState(2),a=createMatrix(i,s);return jsxRuntimeExports.jsxs("main",{className:styles$I.main,children:[jsxRuntimeExports.jsx(Size,{rows:i,columns:s,setRows:e,setColumns:o}),jsxRuntimeExports.jsx(MyTable,{columns:s,values:a})]})}const main$5="_main_1cx3l_1",styles$H={main:main$5};function Counter(){const[i,e]=reactExports.useState(0),s=reactExports.useRef(1),o=g=>{s.current=g},a=()=>{e(g=>g+s.current)},c=()=>{e(g=>g-s.current)},h=()=>{e(0)};return jsxRuntimeExports.jsxs("main",{className:styles$H.main,children:[jsxRuntimeExports.jsx("h2",{children:i}),jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsx("button",{onClick:c,"aria-label":"Decrement",children:"-"}),jsxRuntimeExports.jsx("button",{onClick:a,"aria-label":"Increment",children:"+"})]}),jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"step",children:"Increment/Decrement by"}),jsxRuntimeExports.jsx("input",{type:"number",id:"step",defaultValue:s.current,onChange:g=>o(g.target.valueAsNumber),title:"Step value"})]}),jsxRuntimeExports.jsx("section",{children:jsxRuntimeExports.jsx("button",{onClick:h,children:"Reset"})})]})}const initialData={name:"John Doe",companyName:"TwitX",effectiveDate:"",lastDate:"",position:"",contactNumber:""},select$2="_select_17qmd_1",form$3="_form_17qmd_6",formField="_formField_17qmd_13",formInput="_formInput_17qmd_17",styles$G={select:select$2,form:form$3,formField,formInput};function Fields({fields:i,dispatch:e}){return jsxRuntimeExports.jsxs("form",{className:styles$G.form,children:[jsxRuntimeExports.jsxs("div",{className:styles$G.formField,children:[jsxRuntimeExports.jsx("label",{htmlFor:"name",children:"Name: "}),jsxRuntimeExports.jsx("input",{className:styles$G.formInput,type:"text",id:"name",value:i.name,onChange:s=>e({name:s.target.value})})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"companyName",children:"Company Name: "}),jsxRuntimeExports.jsx("input",{className:styles$G.formInput,type:"text",id:"companyName",value:i.companyName,onChange:s=>e({companyName:s.target.value})})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"lastDate",children:"Effective date: "}),jsxRuntimeExports.jsx("input",{className:styles$G.formInput,type:"date",id:"effectiveDate",value:i.effectiveDate,onChange:s=>e({effectiveDate:s.target.value})})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"lastDate",children:"Last date: "}),jsxRuntimeExports.jsx("input",{className:styles$G.formInput,type:"date",id:"lastDate",value:i.lastDate,onChange:s=>e({lastDate:s.target.value})})]})]})}function Resignation({name:i,companyName:e,effectiveDate:s,lastDate:o}){return console.log(s),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{children:"Hi,"}),jsxRuntimeExports.jsxs("p",{children:["Please accept this email as my formal resignation from ",e,". I have taken this decision as I have got a different/better work opportunity and would like to pursue my career in the same."]}),jsxRuntimeExports.jsxs("p",{children:["Request you to consider my letter of resignation effective from ",s,". I understand that as per the policy I am required to serve a notice period of ",60," days and my last working day accordingly shall be"," ",o,"."]}),jsxRuntimeExports.jsxs("p",{children:["I would request you to consider if an early release is possible. I am grateful to ",e," and looking forward to your support."]}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsxs("p",{children:["Thanks and Regards,",jsxRuntimeExports.jsx("br",{}),i]})]})}function TemplateSelector({template:i,setTemplate:e}){const s=o=>{e(o.target.value)};return jsxRuntimeExports.jsxs("form",{className:"text-center",children:[jsxRuntimeExports.jsx("label",{htmlFor:"template",children:"Template: "}),jsxRuntimeExports.jsx("select",{id:"template",value:i,onChange:s,className:styles$G.select,children:jsxRuntimeExports.jsx("option",{value:"resignation",children:"Resignation"})})]})}function EmailTemplates(){const[i,e]=reactExports.useState("jobApplication"),[s,o]=reactExports.useReducer((a,c)=>({...a,...c}),initialData);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TemplateSelector,{template:i,setTemplate:e}),jsxRuntimeExports.jsx(Fields,{fields:s,dispatch:o}),jsxRuntimeExports.jsx("hr",{}),jsxRuntimeExports.jsx(Resignation,{...s})]})}const form$2="_form_1ufkd_2",styles$F={form:form$2};function ExpenseForm({onAddExpense:i}){const[e,s]=reactExports.useState(""),[o,a]=reactExports.useState(""),[c,h]=reactExports.useState(""),g=d=>{d.preventDefault(),i({id:Date.now(),date:e,amount:parseFloat(o),category:c}),s(""),a(""),h("")};return jsxRuntimeExports.jsxs("form",{onSubmit:g,className:styles$F.form,children:[jsxRuntimeExports.jsx("input",{type:"date",value:e,onChange:d=>s(d.target.value),required:!0}),jsxRuntimeExports.jsx("input",{type:"number",value:o,placeholder:"Please Enter Amount",onChange:d=>a(d.target.value),required:!0}),jsxRuntimeExports.jsxs("select",{value:c,onChange:d=>h(d.target.value),children:[jsxRuntimeExports.jsx("option",{value:"",children:"Select Category"}),jsxRuntimeExports.jsx("option",{value:"Food",children:"Food"}),jsxRuntimeExports.jsx("option",{value:"Transport",children:"Transport"}),jsxRuntimeExports.jsx("option",{value:"Entertainment",children:"Entertainment"}),jsxRuntimeExports.jsx("option",{value:"Other",children:"Other"})]}),jsxRuntimeExports.jsx("button",{type:"submit",children:"Add Expense"})]})}const mainContainer="_mainContainer_1ynr6_2",btnRed="_btnRed_1ynr6_32",styles$E={mainContainer,btnRed};function ExpenseSummary({expenses:i}){const e=i.reduce((s,o)=>s+o.amount,0);return jsxRuntimeExports.jsxs("div",{className:styles$E.mainContainer,children:[jsxRuntimeExports.jsx("h2",{children:"Summary"}),jsxRuntimeExports.jsxs("p",{children:["Total Expenses: $",e.toFixed(2)]})]})}function ExpensesList({expenses:i,onDeleteExpense:e}){return jsxRuntimeExports.jsxs("div",{className:styles$E.mainContainer,children:[jsxRuntimeExports.jsx("h2",{children:"Expenses"}),jsxRuntimeExports.jsx("ul",{children:i.map(s=>jsxRuntimeExports.jsxs("li",{children:[s.date," - $",s.amount," - ",s.category,jsxRuntimeExports.jsx("button",{className:styles$E.btnRed,onClick:()=>e(s.id),children:"Delete"})]},s.id))})]})}function App$n(){const[i,e]=reactExports.useState([]),s=a=>{e(c=>[a,...c])},o=a=>{e(c=>c.filter(h=>h.id!==a))};return jsxRuntimeExports.jsxs("div",{className:"App",children:[jsxRuntimeExports.jsx("h1",{}),jsxRuntimeExports.jsx(ExpenseForm,{onAddExpense:s}),jsxRuntimeExports.jsx(ExpensesList,{expenses:i,onDeleteExpense:o}),jsxRuntimeExports.jsx(ExpenseSummary,{expenses:i})]})}const app$1="_app_1o28y_1",list="_list_1o28y_6",editList="_editList_1o28y_22",editableInputContainer="_editableInputContainer_1o28y_30",editableInputError="_editableInputError_1o28y_34",indent="_indent_1o28y_48",controls$2="_controls_1o28y_52",styles$D={app:app$1,list,editList,editableInputContainer,editableInputError,indent,controls:controls$2};function Input({onComplete:i,validateNode:e,defaultValue:s=""}){const[o,a]=reactExports.useState(s),[c,h]=reactExports.useState(null),g=_=>{const j=_.target.value;a(j),j===""?h("File or folder name cannot be empty"):e(j)?h(null):h("A file or folder already exists with that name")},d=()=>{i(o)},b=_=>{_.key==="Enter"&&d()};return jsxRuntimeExports.jsxs("div",{className:styles$D.editableInputContainer,children:[jsxRuntimeExports.jsx("input",{type:"text",autoFocus:!0,onBlur:d,onKeyUp:b,value:o,onChange:g}),c&&jsxRuntimeExports.jsx("div",{className:styles$D.editableInputError,children:jsxRuntimeExports.jsx("p",{children:c})})]})}function File({node:i,parent:e,onNodeDeletion:s,onNodeUpdate:o,validateNode:a}){const[c,h]=reactExports.useState(!1),g=b=>a(e,i,b),d=b=>{g(b)&&o(e,i,b),h(!1)};return c?jsxRuntimeExports.jsxs("li",{className:`${styles$D.list} ${styles$D.editList}`,children:["📄 ",jsxRuntimeExports.jsx(Input,{defaultValue:i.name,onComplete:d,validateNode:g})]}):jsxRuntimeExports.jsxs("li",{className:styles$D.list,children:[jsxRuntimeExports.jsxs("button",{className:styles$D.button,children:["📄 ",i.name]}),jsxRuntimeExports.jsxs("div",{className:styles$D.controls,children:[jsxRuntimeExports.jsx("button",{onClick:()=>h(!0),children:"✏️"}),jsxRuntimeExports.jsx("button",{onClick:()=>s(e,i),children:"🗑️"})]})]})}function Folder({expanded:i,toggleExpand:e,parent:s,node:o,onNodeDeletion:a,onNodeUpdate:c,onNew:h,validateNode:g}){const[d,b]=reactExports.useState(!1),_=$=>g(s,o,$),j=$=>{s&&(_($)&&c(s,o,$),b(!1))};return d?jsxRuntimeExports.jsxs("li",{className:`${styles$D.list} ${styles$D.editList}`,children:[i?"📂":"📁"," ",jsxRuntimeExports.jsx(Input,{defaultValue:o==null?void 0:o.name,onComplete:j,validateNode:_})]}):jsxRuntimeExports.jsxs("li",{className:styles$D.list,"data-root":s===null,children:[jsxRuntimeExports.jsxs("button",{onClick:e,children:[i?"📂":"📁"," ",o==null?void 0:o.name]}),jsxRuntimeExports.jsxs("div",{className:styles$D.controls,children:[jsxRuntimeExports.jsx("button",{className:"edit",onClick:()=>b(!0),children:"✏️"}),jsxRuntimeExports.jsx("button",{className:"new-file",onClick:()=>h(!1),children:"📄"}),jsxRuntimeExports.jsx("button",{className:"new-folder",onClick:()=>h(!0),children:"🗂"}),jsxRuntimeExports.jsx("button",{className:"delete",onClick:()=>a(s,o),children:"🗑️"})]})]})}function Tree({node:i,parent:e,onNodeAddition:s,onNodeDeletion:o,onNodeUpdate:a,validateNode:c}){var tt;const[h,g]=reactExports.useState(!1),[d,b]=reactExports.useState(!1),_=reactExports.useRef(!1),j=st=>{st.stopPropagation(),g(!h)},$=st=>{_.current=st,b(!d),g(!0)},_e=st=>c(i,null,st),et=st=>{st&&_e(st)&&s(i,{name:st,id:new Date().getTime().toString(),isFolder:_.current}),b(!1)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Folder,{expanded:h,toggleExpand:j,parent:e,node:i,onNodeDeletion:o,onNodeUpdate:a,onNew:$,validateNode:c}),h&&jsxRuntimeExports.jsxs("div",{className:styles$D.indent,children:[(tt=i.nodes)==null?void 0:tt.map(st=>st.isFolder?jsxRuntimeExports.jsx(Tree,{node:st,parent:i,onNodeAddition:s,onNodeDeletion:o,onNodeUpdate:a,validateNode:c},st.id):jsxRuntimeExports.jsx(File,{node:st,parent:i,onNodeDeletion:o,onNodeUpdate:a,validateNode:c},st.id)),d&&jsxRuntimeExports.jsxs("li",{className:`${styles$D.list} ${styles$D.editList}`,children:[_.current?"📁":"📄"," ",jsxRuntimeExports.jsx(Input,{onComplete:et,validateNode:_e})]})]})]})}const fileExplorerData={id:"root",name:"root",isFolder:!0,nodes:[{id:"1",name:"public",isFolder:!0,nodes:[{id:"11",name:"images",isFolder:!0,nodes:[{id:"111",name:"cover.png"},{id:"112",name:"icons",isFolder:!0,nodes:[{id:"1121",name:"arrow.svg"}]}]},{id:"12",name:"public_nested_file"}]},{id:"2",name:"src",isFolder:!0,nodes:[{id:"21",name:"components",isFolder:!0,nodes:[{id:"21",name:"index.js"},{id:"22",name:"index.html"},{id:"23",name:"index.css"}]},{id:"22",name:"main.jsx"},{id:"23",name:"App.jsx"},{id:"24",name:"app.module.css"}]},{id:"3",name:"dist",isFolder:!0,nodes:[{id:"31",name:"index.js"},{id:"32",name:"index.html"},{id:"33",name:"index.css"}]},{id:"4",name:"package.json",nodes:[]},{id:"5",name:"package-lock.json",nodes:[]}]};function App$m(){const[i,e]=reactExports.useState(fileExplorerData),s=(h,g)=>{const d={...i},b=[...h.nodes??[]];b.push({...g,nodes:[]}),h.id==="root"?d.nodes=b:h.nodes=b,e(d)},o=(h,g)=>{var _;const d={...i},b=(_=h.nodes)==null?void 0:_.filter(j=>j.id!==g.id);h.id==="root"?d.nodes=b:h.nodes=b,e(d)},a=(h,g,d)=>{var $;const b={...i},_=(($=h.nodes)==null?void 0:$.map(_e=>_e))??[],j=_.findIndex(_e=>_e.id===g.id);_[j]={..._[j],name:d},h.id==="root"?b.nodes=_:h.nodes=_,e(b)},c=(h,g,d)=>{var _;return h===null||typeof h.nodes>"u"?!0:d===""?!1:((_=h.nodes)==null?void 0:_.findIndex(j=>j.id!==(g==null?void 0:g.id)&&j.name===d))===-1};return jsxRuntimeExports.jsx("div",{className:styles$D.app,children:jsxRuntimeExports.jsx(Tree,{node:i,parent:null,onNodeAddition:s,onNodeDeletion:o,onNodeUpdate:a,validateNode:c})})}const App$l="_App_fw4tl_7",meal_container="_meal_container_fw4tl_17",meal_name="_meal_name_fw4tl_29",meal_img="_meal_img_fw4tl_34",tags_container="_tags_container_fw4tl_39",modal_tags_container="_modal_tags_container_fw4tl_40",tag="_tag_fw4tl_39",modal_tag="_modal_tag_fw4tl_40",modal_meal_img="_modal_meal_img_fw4tl_69",modal_instruction="_modal_instruction_fw4tl_74",foodBtn="_foodBtn_fw4tl_79",openBtn="_openBtn_fw4tl_80",closeBtn="_closeBtn_fw4tl_105",recipe_table="_recipe_table_fw4tl_128",styles$C={App:App$l,meal_container,meal_name,meal_img,tags_container,modal_tags_container,tag,modal_tag,modal_meal_img,modal_instruction,foodBtn,openBtn,closeBtn,recipe_table};function TagsList({data:i}){const{strCategory:e,strArea:s,strTags:o}=i;return jsxRuntimeExports.jsxs("ul",{className:styles$C.modal_tags_container,children:[e&&jsxRuntimeExports.jsx("li",{className:styles$C.modal_tag,children:e}),s&&jsxRuntimeExports.jsx("li",{className:styles$C.modal_tag,children:s}),o&&o.split(",").map((a,c)=>jsxRuntimeExports.jsx("li",{className:styles$C.modal_tag,children:a},c))]})}TagsList.propTypes;function Food({data:i,handleOpenDialog:e}){const{strMeal:s,strMealThumb:o}=i;return jsxRuntimeExports.jsxs("div",{className:styles$C.meal_container,children:[jsxRuntimeExports.jsx("h2",{className:styles$C.meal_name,children:s}),jsxRuntimeExports.jsx("img",{className:styles$C.meal_img,src:o,alt:s}),jsxRuntimeExports.jsx(TagsList,{data:i}),jsxRuntimeExports.jsx("button",{className:styles$C.openBtn,onClick:e,children:"detail recipe"})]})}Food.propTypes;function Table$1({data:i}){const e=s=>{const o=[];for(let a=1;a<=20;a++){const c=s[`strIngredient${a}`],h=s[`strMeasure${a}`];c&&h&&o.push({ingredient:c,measure:h})}return o};return jsxRuntimeExports.jsxs("table",{className:styles$C.recipe_table,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{children:"No."}),jsxRuntimeExports.jsx("th",{children:"Ingredient"}),jsxRuntimeExports.jsx("th",{children:"Measure"})]})}),jsxRuntimeExports.jsx("tbody",{children:e(i).map((s,o)=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{children:o+1}),jsxRuntimeExports.jsx("td",{children:s.ingredient}),jsxRuntimeExports.jsx("td",{children:s.measure})]},o))})]})}Table$1.propTypes;function Dialog({data:i,handleCloseDialog:e}){const{strMeal:s,strMealThumb:o,strInstructions:a,strYoutube:c}=i;return jsxRuntimeExports.jsx("dialog",{open:!0,onClose:e,children:jsxRuntimeExports.jsxs("div",{className:styles$C.modal_meal_container,children:[jsxRuntimeExports.jsx("button",{className:styles$C.closeBtn,onClick:e,children:"×"}),jsxRuntimeExports.jsx("h2",{className:styles$C.modal_meal_name,children:s}),jsxRuntimeExports.jsx("img",{className:styles$C.modal_meal_img,src:o,alt:s}),jsxRuntimeExports.jsx(TagsList,{data:i}),jsxRuntimeExports.jsx(Table$1,{data:i}),jsxRuntimeExports.jsx("h2",{children:"Instruction 📜"}),jsxRuntimeExports.jsx("p",{className:styles$C.modal_instruction,children:a}),c&&jsxRuntimeExports.jsxs("a",{href:c,rel:"noopener noreferrer",target:"_blank",children:["YouTube link for ",s]})]})})}Dialog.propTypes;function App$k(){const[i,e]=reactExports.useState(null),[s,o]=reactExports.useState(!1);reactExports.useEffect(()=>{a()},[]);const a=async()=>{try{const d=await fetch("https://www.themealdb.com/api/json/v1/1/random.php");if(!d.ok)throw new Error("Network response was not ok! Something wrong");const b=await d.json();e(b.meals[0])}catch(d){console.error("Error on fetching data: ",d)}},c=()=>{a()},h=()=>{o(!0)},g=()=>{o(!1)};return jsxRuntimeExports.jsxs("div",{className:styles$C.App,children:[jsxRuntimeExports.jsx("h1",{children:"Are you hungry 😋"}),jsxRuntimeExports.jsx("button",{className:styles$C.foodBtn,onClick:c,children:"Another food 🍛"}),s&&jsxRuntimeExports.jsx(Dialog,{data:i,handleCloseDialog:g}),i&&jsxRuntimeExports.jsx(Food,{data:i,handleOpenDialog:h})]})}const app="_app_j2t5p_1",widget="_widget_j2t5p_14",text="_text_j2t5p_21",styles$B={app,widget,text};function App$j(){const[i,e]=reactExports.useState(),[s,o]=reactExports.useState(!1),[a,c]=reactExports.useState(1),[h,g]=reactExports.useState(!1),[d,b]=reactExports.useState(!1),[_,j]=reactExports.useState(!1);reactExports.useEffect(()=>{e(Math.round(100*Math.random()))},[]);const $=et=>{et.preventDefault(),ai?(b(!0),g(!1)):(j(!0),g(!1),b(!1),o(!0))},_e=()=>{e(Math.round(100*Math.random())),j(!1),g(!1),b(!1),o(!1),c(1)};return jsxRuntimeExports.jsxs("div",{className:styles$B.app,children:[jsxRuntimeExports.jsxs("form",{onSubmit:$,children:[jsxRuntimeExports.jsx("label",{htmlFor:"input",children:"Guess a Number between 0 and 100"}),jsxRuntimeExports.jsx("input",{id:"input",type:"number",value:a,min:"0",max:"100",placeholder:"Guess-Number",onChange:et=>c(Number(et.target.value))}),jsxRuntimeExports.jsxs("div",{className:styles$B.widget,children:[jsxRuntimeExports.jsx("button",{type:"reset",onClick:_e,children:"Reset"}),jsxRuntimeExports.jsx("button",{type:"submit",disabled:s,children:"Check"})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$B.text,children:[h&&jsxRuntimeExports.jsxs("p",{children:["Your guess is ",jsxRuntimeExports.jsx("b",{children:"Less"})," than the actual number"]}),d&&jsxRuntimeExports.jsxs("p",{children:["Your guess is ",jsxRuntimeExports.jsx("b",{children:"Higher"})," than the actual number"]}),_&&jsxRuntimeExports.jsxs("p",{children:["Your guess is ",jsxRuntimeExports.jsx("b",{children:"right"})]})]})]})}const styles$A={"image-gallery-container":"_image-gallery-container_3b420_2","gallery-para":"_gallery-para_3b420_7","image-container":"_image-container_3b420_11","image-wrapper":"_image-wrapper_3b420_18","gallery-image":"_gallery-image_3b420_27","selected-image":"_selected-image_3b420_36","selected-heading":"_selected-heading_3b420_41","selected-img":"_selected-img_3b420_46"},images=["https://imgs.search.brave.com/bAdI7a7qnuuOIJphttt3DfbzLnCU7ZDMtnkejXq6UII/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9zdDIu/ZGVwb3NpdHBob3Rv/cy5jb20vMTAwMDkz/OC81NDk5L2kvNDUw/L2RlcG9zaXRwaG90/b3NfNTQ5OTg2MTMt/c3RvY2stcGhvdG8t/Z2luZ2VyLWNhdC5q/cGc","https://imgs.search.brave.com/YzG9FgYN5qLWsiYyJ4dUEvxav9e98dBH0loR8YPRA1E/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9tZWRp/YS5pc3RvY2twaG90/by5jb20vaWQvMTc0/ODc3NTY1L3Bob3Rv/L3BvcnRyYWl0LW9m/LWEtYnJvd24tY2F0/LWFnYWluc3QtYS1n/cmF5LWJhY2tncm91/bmQuanBnP3M9NjEy/eDYxMiZ3PTAmaz0y/MCZjPWlGcFFNSzlF/aTIzVm9XcExLa2Zh/TFVtdXN5Y3VaWllV/OWtWMjNzT2F6YzQ9","https://imgs.search.brave.com/lZtf1S7JKFcaZs2lhxTpAtaJzTk_V35Xt8ys4htuVBU/rs:fit:500:0:0/g:ce/aHR0cHM6Ly9idXJz/dC5zaG9waWZ5Y2Ru/LmNvbS9waG90b3Mv/Y2F0LXBvc2VzLXBl/cmZlY3RseS5qcGc_/d2lkdGg9MTAwMCZm/b3JtYXQ9cGpwZyZl/eGlmPTAmaXB0Yz0w","https://imgs.search.brave.com/t6Nv0DwxoIACRxxtX2h7yt31ux5SCXHWgHVpoGh1diw/rs:fit:500:0:0/g:ce/aHR0cHM6Ly90My5m/dGNkbi5uZXQvanBn/LzAyLzM2Lzk5LzIy/LzM2MF9GXzIzNjk5/MjI4M19zTk94Q1ZR/ZUZMZDVwZHFhS0do/OERSR01aeTdQNFhL/bS5qcGc"];function ImageGallery(){const[i,e]=reactExports.useState(null),s=o=>{e(o)};return jsxRuntimeExports.jsxs("div",{className:styles$A["image-gallery-container"],children:[jsxRuntimeExports.jsx("p",{className:styles$A["gallery-para"],children:"Click on an image!"}),jsxRuntimeExports.jsx("div",{className:styles$A["image-container"],children:images.map((o,a)=>jsxRuntimeExports.jsx("div",{className:styles$A["image-wrapper"],onClick:()=>s(o),children:jsxRuntimeExports.jsx("img",{src:o,alt:`Image ${a+1}`,className:styles$A["gallery-image"]})},a))}),i&&jsxRuntimeExports.jsxs("div",{className:styles$A["selected-image"],children:[jsxRuntimeExports.jsx("h2",{className:styles$A["selected-heading"],children:"Selected Image"}),jsxRuntimeExports.jsx("img",{src:i,alt:"Selected",className:styles$A["selected-img"]})]})]})}const loader$1="_loader_1hfl7_1",spin$1="_spin_1hfl7_1",styles$z={loader:loader$1,spin:spin$1,"book-title":"_book-title_1hfl7_21"};function bind(i,e){return function(){return i.apply(e,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(i=>e=>{const s=toString.call(e);return i[s]||(i[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=i=>(i=i.toLowerCase(),e=>kindOf(e)===i),typeOfTest=i=>e=>typeof e===i,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(i){return i!==null&&!isUndefined(i)&&i.constructor!==null&&!isUndefined(i.constructor)&&isFunction(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(i){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(i):e=i&&i.buffer&&isArrayBuffer(i.buffer),e}const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject$3=i=>i!==null&&typeof i=="object",isBoolean=i=>i===!0||i===!1,isPlainObject=i=>{if(kindOf(i)!=="object")return!1;const e=getPrototypeOf(i);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in i)&&!(Symbol.iterator in i)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=i=>isObject$3(i)&&isFunction(i.pipe),isFormData=i=>{let e;return i&&(typeof FormData=="function"&&i instanceof FormData||isFunction(i.append)&&((e=kindOf(i))==="formdata"||e==="object"&&isFunction(i.toString)&&i.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$1(i,e,{allOwnKeys:s=!1}={}){if(i===null||typeof i>"u")return;let o,a;if(typeof i!="object"&&(i=[i]),isArray(i))for(o=0,a=i.length;o0;)if(a=s[o],e===a.toLowerCase())return a;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=i=>!isUndefined(i)&&i!==_global;function merge(){const{caseless:i}=isContextDefined(this)&&this||{},e={},s=(o,a)=>{const c=i&&findKey(e,a)||a;isPlainObject(e[c])&&isPlainObject(o)?e[c]=merge(e[c],o):isPlainObject(o)?e[c]=merge({},o):isArray(o)?e[c]=o.slice():e[c]=o};for(let o=0,a=arguments.length;o(forEach$1(e,(a,c)=>{s&&isFunction(a)?i[c]=bind(a,s):i[c]=a},{allOwnKeys:o}),i),stripBOM=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),inherits=(i,e,s,o)=>{i.prototype=Object.create(e.prototype,o),i.prototype.constructor=i,Object.defineProperty(i,"super",{value:e.prototype}),s&&Object.assign(i.prototype,s)},toFlatObject=(i,e,s,o)=>{let a,c,h;const g={};if(e=e||{},i==null)return e;do{for(a=Object.getOwnPropertyNames(i),c=a.length;c-- >0;)h=a[c],(!o||o(h,i,e))&&!g[h]&&(e[h]=i[h],g[h]=!0);i=s!==!1&&getPrototypeOf(i)}while(i&&(!s||s(i,e))&&i!==Object.prototype);return e},endsWith=(i,e,s)=>{i=String(i),(s===void 0||s>i.length)&&(s=i.length),s-=e.length;const o=i.indexOf(e,s);return o!==-1&&o===s},toArray=i=>{if(!i)return null;if(isArray(i))return i;let e=i.length;if(!isNumber(e))return null;const s=new Array(e);for(;e-- >0;)s[e]=i[e];return s},isTypedArray=(i=>e=>i&&e instanceof i)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(i,e)=>{const o=(i&&i[Symbol.iterator]).call(i);let a;for(;(a=o.next())&&!a.done;){const c=a.value;e.call(i,c[0],c[1])}},matchAll=(i,e)=>{let s;const o=[];for(;(s=i.exec(e))!==null;)o.push(s);return o},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,o,a){return o.toUpperCase()+a}),hasOwnProperty=(({hasOwnProperty:i})=>(e,s)=>i.call(e,s))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(i,e)=>{const s=Object.getOwnPropertyDescriptors(i),o={};forEach$1(s,(a,c)=>{e(a,c,i)!==!1&&(o[c]=a)}),Object.defineProperties(i,o)},freezeMethods=i=>{reduceDescriptors(i,(e,s)=>{if(isFunction(i)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const o=i[s];if(isFunction(o)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},toObjectSet=(i,e)=>{const s={},o=a=>{a.forEach(c=>{s[c]=!0})};return isArray(i)?o(i):o(String(i).split(e)),s},noop=()=>{},toFiniteNumber=(i,e)=>(i=+i,Number.isFinite(i)?i:e),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(i=16,e=ALPHABET.ALPHA_DIGIT)=>{let s="";const{length:o}=e;for(;i--;)s+=e[Math.random()*o|0];return s};function isSpecCompliantForm(i){return!!(i&&isFunction(i.append)&&i[Symbol.toStringTag]==="FormData"&&i[Symbol.iterator])}const toJSONObject=i=>{const e=new Array(10),s=(o,a)=>{if(isObject$3(o)){if(e.indexOf(o)>=0)return;if(!("toJSON"in o)){e[a]=o;const c=isArray(o)?[]:{};return forEach$1(o,(h,g)=>{const d=s(h,a+1);!isUndefined(d)&&(c[g]=d)}),e[a]=void 0,c}}return o};return s(i,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=i=>i&&(isObject$3(i)||isFunction(i))&&isFunction(i.then)&&isFunction(i.catch),utils={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject:isObject$3,isPlainObject,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach:forEach$1,merge,extend:extend$3,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(i,e,s,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=i,this.name="AxiosError",e&&(this.code=e),s&&(this.config=s),o&&(this.request=o),a&&(this.response=a)}utils.inherits(AxiosError,Error,{toJSON:function i(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(i=>{descriptors[i]={value:i}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(i,e,s,o,a,c)=>{const h=Object.create(prototype$1);return utils.toFlatObject(i,h,function(d){return d!==Error.prototype},g=>g!=="isAxiosError"),AxiosError.call(h,i.message,e,s,o,a),h.cause=i,h.name=i.name,c&&Object.assign(h,c),h};const httpAdapter=null;function isVisitable(i){return utils.isPlainObject(i)||utils.isArray(i)}function removeBrackets(i){return utils.endsWith(i,"[]")?i.slice(0,-2):i}function renderKey(i,e,s){return i?i.concat(e).map(function(a,c){return a=removeBrackets(a),!s&&c?"["+a+"]":a}).join(s?".":""):e}function isFlatArray(i){return utils.isArray(i)&&!i.some(isVisitable)}const predicates=utils.toFlatObject(utils,{},null,function i(e){return/^is[A-Z]/.test(e)});function toFormData(i,e,s){if(!utils.isObject(i))throw new TypeError("target must be an object");e=e||new FormData,s=utils.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(tt,st){return!utils.isUndefined(st[tt])});const o=s.metaTokens,a=s.visitor||_,c=s.dots,h=s.indexes,d=(s.Blob||typeof Blob<"u"&&Blob)&&utils.isSpecCompliantForm(e);if(!utils.isFunction(a))throw new TypeError("visitor must be a function");function b(et){if(et===null)return"";if(utils.isDate(et))return et.toISOString();if(!d&&utils.isBlob(et))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils.isArrayBuffer(et)||utils.isTypedArray(et)?d&&typeof Blob=="function"?new Blob([et]):Buffer.from(et):et}function _(et,tt,st){let nt=et;if(et&&!st&&typeof et=="object"){if(utils.endsWith(tt,"{}"))tt=o?tt:tt.slice(0,-2),et=JSON.stringify(et);else if(utils.isArray(et)&&isFlatArray(et)||(utils.isFileList(et)||utils.endsWith(tt,"[]"))&&(nt=utils.toArray(et)))return tt=removeBrackets(tt),nt.forEach(function(it,ot){!(utils.isUndefined(it)||it===null)&&e.append(h===!0?renderKey([tt],ot,c):h===null?tt:tt+"[]",b(it))}),!1}return isVisitable(et)?!0:(e.append(renderKey(st,tt,c),b(et)),!1)}const j=[],$=Object.assign(predicates,{defaultVisitor:_,convertValue:b,isVisitable});function _e(et,tt){if(!utils.isUndefined(et)){if(j.indexOf(et)!==-1)throw Error("Circular reference detected in "+tt.join("."));j.push(et),utils.forEach(et,function(nt,rt){(!(utils.isUndefined(nt)||nt===null)&&a.call(e,nt,utils.isString(rt)?rt.trim():rt,tt,$))===!0&&_e(nt,tt?tt.concat(rt):[rt])}),j.pop()}}if(!utils.isObject(i))throw new TypeError("data must be an object");return _e(i),e}function encode$1(i){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(o){return e[o]})}function AxiosURLSearchParams(i,e){this._pairs=[],i&&toFormData(i,this,e)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function i(e,s){this._pairs.push([e,s])};prototype.toString=function i(e){const s=e?function(o){return e.call(this,o,encode$1)}:encode$1;return this._pairs.map(function(a){return s(a[0])+"="+s(a[1])},"").join("&")};function encode(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(i,e,s){if(!e)return i;const o=s&&s.encode||encode,a=s&&s.serialize;let c;if(a?c=a(e,s):c=utils.isURLSearchParams(e)?e.toString():new AxiosURLSearchParams(e,s).toString(o),c){const h=i.indexOf("#");h!==-1&&(i=i.slice(0,h)),i+=(i.indexOf("?")===-1?"?":"&")+c}return i}class InterceptorManager{constructor(){this.handlers=[]}use(e,s,o){return this.handlers.push({fulfilled:e,rejected:s,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){utils.forEach(this.handlers,function(o){o!==null&&e(o)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,isStandardBrowserEnv=(()=>{let i;return typeof navigator<"u"&&((i=navigator.product)==="ReactNative"||i==="NativeScript"||i==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),isStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),platform={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},isStandardBrowserEnv,isStandardBrowserWebWorkerEnv,protocols:["http","https","file","blob","url","data"]};function toURLEncodedForm(i,e){return toFormData(i,new platform.classes.URLSearchParams,Object.assign({visitor:function(s,o,a,c){return platform.isNode&&utils.isBuffer(s)?(this.append(o,s.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},e))}function parsePropPath(i){return utils.matchAll(/\w+|\[(\w*)]/g,i).map(e=>e[0]==="[]"?"":e[1]||e[0])}function arrayToObject(i){const e={},s=Object.keys(i);let o;const a=s.length;let c;for(o=0;o=s.length;return h=!h&&utils.isArray(a)?a.length:h,d?(utils.hasOwnProp(a,h)?a[h]=[a[h],o]:a[h]=o,!g):((!a[h]||!utils.isObject(a[h]))&&(a[h]=[]),e(s,o,a[h],c)&&utils.isArray(a[h])&&(a[h]=arrayToObject(a[h])),!g)}if(utils.isFormData(i)&&utils.isFunction(i.entries)){const s={};return utils.forEachEntry(i,(o,a)=>{e(parsePropPath(o),a,s,0)}),s}return null}const DEFAULT_CONTENT_TYPE={"Content-Type":void 0};function stringifySafely(i,e,s){if(utils.isString(i))try{return(e||JSON.parse)(i),utils.trim(i)}catch(o){if(o.name!=="SyntaxError")throw o}return(s||JSON.stringify)(i)}const defaults$1={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function i(e,s){const o=s.getContentType()||"",a=o.indexOf("application/json")>-1,c=utils.isObject(e);if(c&&utils.isHTMLForm(e)&&(e=new FormData(e)),utils.isFormData(e))return a&&a?JSON.stringify(formDataToJSON(e)):e;if(utils.isArrayBuffer(e)||utils.isBuffer(e)||utils.isStream(e)||utils.isFile(e)||utils.isBlob(e))return e;if(utils.isArrayBufferView(e))return e.buffer;if(utils.isURLSearchParams(e))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let g;if(c){if(o.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((g=utils.isFileList(e))||o.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return toFormData(g?{"files[]":e}:e,d&&new d,this.formSerializer)}}return c||a?(s.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function i(e){const s=this.transitional||defaults$1.transitional,o=s&&s.forcedJSONParsing,a=this.responseType==="json";if(e&&utils.isString(e)&&(o&&!this.responseType||a)){const h=!(s&&s.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(g){if(h)throw g.name==="SyntaxError"?AxiosError.from(g,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):g}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function i(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils.forEach(["delete","get","head"],function i(e){defaults$1.headers[e]={}});utils.forEach(["post","put","patch"],function i(e){defaults$1.headers[e]=utils.merge(DEFAULT_CONTENT_TYPE)});const defaults$2=defaults$1,ignoreDuplicateOf=utils.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=i=>{const e={};let s,o,a;return i&&i.split(` `).forEach(function(h){a=h.indexOf(":"),s=h.substring(0,a).trim().toLowerCase(),o=h.substring(a+1).trim(),!(!s||e[s]&&ignoreDuplicateOf[s])&&(s==="set-cookie"?e[s]?e[s].push(o):e[s]=[o]:e[s]=e[s]?e[s]+", "+o:o)}),e},$internals=Symbol("internals");function normalizeHeader(i){return i&&String(i).trim().toLowerCase()}function normalizeValue(i){return i===!1||i==null?i:utils.isArray(i)?i.map(normalizeValue):String(i)}function parseTokens(i){const e=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=s.exec(i);)e[o[1]]=o[2];return e}const isValidHeaderName=i=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());function matchHeaderValue(i,e,s,o,a){if(utils.isFunction(o))return o.call(this,e,s);if(a&&(e=s),!!utils.isString(e)){if(utils.isString(o))return e.indexOf(o)!==-1;if(utils.isRegExp(o))return o.test(e)}}function formatHeader(i){return i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,s,o)=>s.toUpperCase()+o)}function buildAccessors(i,e){const s=utils.toCamelCase(" "+e);["get","set","has"].forEach(o=>{Object.defineProperty(i,o+s,{value:function(a,c,h){return this[o].call(this,e,a,c,h)},configurable:!0})})}class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,s,o){const a=this;function c(g,d,b){const _=normalizeHeader(d);if(!_)throw new Error("header name must be a non-empty string");const j=utils.findKey(a,_);(!j||a[j]===void 0||b===!0||b===void 0&&a[j]!==!1)&&(a[j||d]=normalizeValue(g))}const h=(g,d)=>utils.forEach(g,(b,_)=>c(b,_,d));return utils.isPlainObject(e)||e instanceof this.constructor?h(e,s):utils.isString(e)&&(e=e.trim())&&!isValidHeaderName(e)?h(parseHeaders(e),s):e!=null&&c(s,e,o),this}get(e,s){if(e=normalizeHeader(e),e){const o=utils.findKey(this,e);if(o){const a=this[o];if(!s)return a;if(s===!0)return parseTokens(a);if(utils.isFunction(s))return s.call(this,a,o);if(utils.isRegExp(s))return s.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,s){if(e=normalizeHeader(e),e){const o=utils.findKey(this,e);return!!(o&&this[o]!==void 0&&(!s||matchHeaderValue(this,this[o],o,s)))}return!1}delete(e,s){const o=this;let a=!1;function c(h){if(h=normalizeHeader(h),h){const g=utils.findKey(o,h);g&&(!s||matchHeaderValue(o,o[g],g,s))&&(delete o[g],a=!0)}}return utils.isArray(e)?e.forEach(c):c(e),a}clear(e){const s=Object.keys(this);let o=s.length,a=!1;for(;o--;){const c=s[o];(!e||matchHeaderValue(this,this[c],c,e,!0))&&(delete this[c],a=!0)}return a}normalize(e){const s=this,o={};return utils.forEach(this,(a,c)=>{const h=utils.findKey(o,c);if(h){s[h]=normalizeValue(a),delete s[c];return}const g=e?formatHeader(c):String(c).trim();g!==c&&delete s[c],s[g]=normalizeValue(a),o[g]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const s=Object.create(null);return utils.forEach(this,(o,a)=>{o!=null&&o!==!1&&(s[a]=e&&utils.isArray(o)?o.join(", "):o)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,s])=>e+": "+s).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...s){const o=new this(e);return s.forEach(a=>o.set(a)),o}static accessor(e){const o=(this[$internals]=this[$internals]={accessors:{}}).accessors,a=this.prototype;function c(h){const g=normalizeHeader(h);o[g]||(buildAccessors(a,h),o[g]=!0)}return utils.isArray(e)?e.forEach(c):c(e),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils.freezeMethods(AxiosHeaders.prototype);utils.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(i,e){const s=this||defaults$2,o=e||s,a=AxiosHeaders$1.from(o.headers);let c=o.data;return utils.forEach(i,function(g){c=g.call(s,c,a.normalize(),e?e.status:void 0)}),a.normalize(),c}function isCancel(i){return!!(i&&i.__CANCEL__)}function CanceledError(i,e,s){AxiosError.call(this,i??"canceled",AxiosError.ERR_CANCELED,e,s),this.name="CanceledError"}utils.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(i,e,s){const o=s.config.validateStatus;!s.status||!o||o(s.status)?i(s):e(new AxiosError("Request failed with status code "+s.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}const cookies=platform.isStandardBrowserEnv?function i(){return{write:function(s,o,a,c,h,g){const d=[];d.push(s+"="+encodeURIComponent(o)),utils.isNumber(a)&&d.push("expires="+new Date(a).toGMTString()),utils.isString(c)&&d.push("path="+c),utils.isString(h)&&d.push("domain="+h),g===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(s){const o=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function i(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL(i){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function combineURLs(i,e){return e?i.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):i}function buildFullPath(i,e){return i&&!isAbsoluteURL(e)?combineURLs(i,e):e}const isURLSameOrigin=platform.isStandardBrowserEnv?function i(){const e=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");let o;function a(c){let h=c;return e&&(s.setAttribute("href",h),h=s.href),s.setAttribute("href",h),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return o=a(window.location.href),function(h){const g=utils.isString(h)?a(h):h;return g.protocol===o.protocol&&g.host===o.host}}():function i(){return function(){return!0}}();function parseProtocol(i){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return e&&e[1]||""}function speedometer(i,e){i=i||10;const s=new Array(i),o=new Array(i);let a=0,c=0,h;return e=e!==void 0?e:1e3,function(d){const b=Date.now(),_=o[c];h||(h=b),s[a]=d,o[a]=b;let j=c,$=0;for(;j!==a;)$+=s[j++],j=j%i;if(a=(a+1)%i,a===c&&(c=(c+1)%i),b-h{const c=a.loaded,h=a.lengthComputable?a.total:void 0,g=c-s,d=o(g),b=c<=h;s=c;const _={loaded:c,total:h,progress:h?c/h:void 0,bytes:g,rate:d||void 0,estimated:d&&h&&b?(h-c)/d:void 0,event:a};_[e?"download":"upload"]=!0,i(_)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(i){return new Promise(function(s,o){let a=i.data;const c=AxiosHeaders$1.from(i.headers).normalize(),h=i.responseType;let g;function d(){i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}utils.isFormData(a)&&(platform.isStandardBrowserEnv||platform.isStandardBrowserWebWorkerEnv?c.setContentType(!1):c.setContentType("multipart/form-data;",!1));let b=new XMLHttpRequest;if(i.auth){const _e=i.auth.username||"",et=i.auth.password?unescape(encodeURIComponent(i.auth.password)):"";c.set("Authorization","Basic "+btoa(_e+":"+et))}const _=buildFullPath(i.baseURL,i.url);b.open(i.method.toUpperCase(),buildURL(_,i.params,i.paramsSerializer),!0),b.timeout=i.timeout;function j(){if(!b)return;const _e=AxiosHeaders$1.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),tt={data:!h||h==="text"||h==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:_e,config:i,request:b};settle(function(rt){s(rt),d()},function(rt){o(rt),d()},tt),b=null}if("onloadend"in b?b.onloadend=j:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(j)},b.onabort=function(){b&&(o(new AxiosError("Request aborted",AxiosError.ECONNABORTED,i,b)),b=null)},b.onerror=function(){o(new AxiosError("Network Error",AxiosError.ERR_NETWORK,i,b)),b=null},b.ontimeout=function(){let et=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const tt=i.transitional||transitionalDefaults;i.timeoutErrorMessage&&(et=i.timeoutErrorMessage),o(new AxiosError(et,tt.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,i,b)),b=null},platform.isStandardBrowserEnv){const _e=(i.withCredentials||isURLSameOrigin(_))&&i.xsrfCookieName&&cookies.read(i.xsrfCookieName);_e&&c.set(i.xsrfHeaderName,_e)}a===void 0&&c.setContentType(null),"setRequestHeader"in b&&utils.forEach(c.toJSON(),function(et,tt){b.setRequestHeader(tt,et)}),utils.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),h&&h!=="json"&&(b.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&b.addEventListener("progress",progressEventReducer(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&b.upload&&b.upload.addEventListener("progress",progressEventReducer(i.onUploadProgress)),(i.cancelToken||i.signal)&&(g=_e=>{b&&(o(!_e||_e.type?new CanceledError(null,i,b):_e),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const $=parseProtocol(_);if($&&platform.protocols.indexOf($)===-1){o(new AxiosError("Unsupported protocol "+$+":",AxiosError.ERR_BAD_REQUEST,i));return}b.send(a||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils.forEach(knownAdapters,(i,e)=>{if(i){try{Object.defineProperty(i,"name",{value:e})}catch{}Object.defineProperty(i,"adapterName",{value:e})}});const adapters={getAdapter:i=>{i=utils.isArray(i)?i:[i];const{length:e}=i;let s,o;for(let a=0;ai instanceof AxiosHeaders$1?i.toJSON():i;function mergeConfig(i,e){e=e||{};const s={};function o(b,_,j){return utils.isPlainObject(b)&&utils.isPlainObject(_)?utils.merge.call({caseless:j},b,_):utils.isPlainObject(_)?utils.merge({},_):utils.isArray(_)?_.slice():_}function a(b,_,j){if(utils.isUndefined(_)){if(!utils.isUndefined(b))return o(void 0,b,j)}else return o(b,_,j)}function c(b,_){if(!utils.isUndefined(_))return o(void 0,_)}function h(b,_){if(utils.isUndefined(_)){if(!utils.isUndefined(b))return o(void 0,b)}else return o(void 0,_)}function g(b,_,j){if(j in e)return o(b,_);if(j in i)return o(void 0,b)}const d={url:c,method:c,data:c,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:g,headers:(b,_)=>a(headersToObject(b),headersToObject(_),!0)};return utils.forEach(Object.keys(Object.assign({},i,e)),function(_){const j=d[_]||a,$=j(i[_],e[_],_);utils.isUndefined($)&&j!==g||(s[_]=$)}),s}const VERSION="1.4.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach((i,e)=>{validators$1[i]=function(o){return typeof o===i||"a"+(e<1?"n ":" ")+i}});const deprecatedWarnings={};validators$1.transitional=function i(e,s,o){function a(c,h){return"[Axios v"+VERSION+"] Transitional option '"+c+"'"+h+(o?". "+o:"")}return(c,h,g)=>{if(e===!1)throw new AxiosError(a(h," has been removed"+(s?" in "+s:"")),AxiosError.ERR_DEPRECATED);return s&&!deprecatedWarnings[h]&&(deprecatedWarnings[h]=!0,console.warn(a(h," has been deprecated since v"+s+" and will be removed in the near future"))),e?e(c,h,g):!0}};function assertOptions(i,e,s){if(typeof i!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const o=Object.keys(i);let a=o.length;for(;a-- >0;){const c=o[a],h=e[c];if(h){const g=i[c],d=g===void 0||h(g,c,i);if(d!==!0)throw new AxiosError("option "+c+" must be "+d,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new AxiosError("Unknown option "+c,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(e){this.defaults=e,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(e,s){typeof e=="string"?(s=s||{},s.url=e):s=e||{},s=mergeConfig(this.defaults,s);const{transitional:o,paramsSerializer:a,headers:c}=s;o!==void 0&&validator.assertOptions(o,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),a!=null&&(utils.isFunction(a)?s.paramsSerializer={serialize:a}:validator.assertOptions(a,{encode:validators.function,serialize:validators.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let h;h=c&&utils.merge(c.common,c[s.method]),h&&utils.forEach(["delete","get","head","post","put","patch","common"],et=>{delete c[et]}),s.headers=AxiosHeaders$1.concat(h,c);const g=[];let d=!0;this.interceptors.request.forEach(function(tt){typeof tt.runWhen=="function"&&tt.runWhen(s)===!1||(d=d&&tt.synchronous,g.unshift(tt.fulfilled,tt.rejected))});const b=[];this.interceptors.response.forEach(function(tt){b.push(tt.fulfilled,tt.rejected)});let _,j=0,$;if(!d){const et=[dispatchRequest.bind(this),void 0];for(et.unshift.apply(et,g),et.push.apply(et,b),$=et.length,_=Promise.resolve(s);j<$;)_=_.then(et[j++],et[j++]);return _}$=g.length;let _e=s;for(j=0;j<$;){const et=g[j++],tt=g[j++];try{_e=et(_e)}catch(st){tt.call(this,st);break}}try{_=dispatchRequest.call(this,_e)}catch(et){return Promise.reject(et)}for(j=0,$=b.length;j<$;)_=_.then(b[j++],b[j++]);return _}getUri(e){e=mergeConfig(this.defaults,e);const s=buildFullPath(e.baseURL,e.url);return buildURL(s,e.params,e.paramsSerializer)}}utils.forEach(["delete","get","head","options"],function i(e){Axios.prototype[e]=function(s,o){return this.request(mergeConfig(o||{},{method:e,url:s,data:(o||{}).data}))}});utils.forEach(["post","put","patch"],function i(e){function s(o){return function(c,h,g){return this.request(mergeConfig(g||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:c,data:h}))}}Axios.prototype[e]=s(),Axios.prototype[e+"Form"]=s(!0)});const Axios$1=Axios;class CancelToken{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(c){s=c});const o=this;this.promise.then(a=>{if(!o._listeners)return;let c=o._listeners.length;for(;c-- >0;)o._listeners[c](a);o._listeners=null}),this.promise.then=a=>{let c;const h=new Promise(g=>{o.subscribe(g),c=g}).then(a);return h.cancel=function(){o.unsubscribe(c)},h},e(function(c,h,g){o.reason||(o.reason=new CanceledError(c,h,g),s(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const s=this._listeners.indexOf(e);s!==-1&&this._listeners.splice(s,1)}static source(){let e;return{token:new CancelToken(function(a){e=a}),cancel:e}}}const CancelToken$1=CancelToken;function spread(i){return function(s){return i.apply(null,s)}}function isAxiosError(i){return utils.isObject(i)&&i.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([i,e])=>{HttpStatusCode[e]=i});const HttpStatusCode$1=HttpStatusCode;function createInstance(i){const e=new Axios$1(i),s=bind(Axios$1.prototype.request,e);return utils.extend(s,Axios$1.prototype,e,{allOwnKeys:!0}),utils.extend(s,e,null,{allOwnKeys:!0}),s.create=function(a){return createInstance(mergeConfig(i,a))},s}const axios=createInstance(defaults$2);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function i(e){return Promise.all(e)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=i=>formDataToJSON(utils.isHTMLForm(i)?new FormData(i):i);axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios;function useSearch(i){const[e,s]=reactExports.useState(!0),[o,a]=reactExports.useState(!1),[c,h]=reactExports.useState([]),[g,d]=reactExports.useState(!1);return reactExports.useEffect(()=>{s(!0),a(!1);let b;return axios$1({method:"GET",url:"https://jsonplaceholder.typicode.com/photos",params:{_page:i,_limit:10},cancelToken:new axios$1.CancelToken(_=>b=_)}).then(_=>{var j;h($=>[...new Set([...$,..._.data.map(_e=>_e.title)])]),d(!(((j=_.data.at(-1))==null?void 0:j.id)===5e3||_.data.length===0)),s(!1)}).catch(_=>{axios$1.isCancel(_)||a(!0)}),()=>b()},[i]),{loading:e,error:o,items:c,hasMore:g}}function App$h(){const[i,e]=reactExports.useState(1),{items:s,hasMore:o,loading:a,error:c}=useSearch(i),h=reactExports.useRef(),g=reactExports.useCallback(d=>{a||(h.current&&h.current.disconnect(),h.current=new IntersectionObserver(b=>{b[0].isIntersecting&&o&&e(_=>_+1)}),d&&h.current.observe(d))},[a,o]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[s==null?void 0:s.map((d,b)=>s.length===b+1?jsxRuntimeExports.jsx("div",{className:`${styles$y["book-title"]}`,ref:g,children:d},d):jsxRuntimeExports.jsx("div",{className:`${styles$y["book-title"]}`,children:d},d)),a&&jsxRuntimeExports.jsx("div",{className:styles$y.loader}),jsxRuntimeExports.jsx("div",{children:c&&"Error"})]})}const result="_result_1y6k8_1",classes$2={result},formatter=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}),ResultsTable=i=>jsxRuntimeExports.jsxs("table",{className:classes$2.result,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{children:"Year"}),jsxRuntimeExports.jsx("th",{children:"Total Savings"}),jsxRuntimeExports.jsx("th",{children:"Interest (Year)"}),jsxRuntimeExports.jsx("th",{children:"Total Interest"}),jsxRuntimeExports.jsx("th",{children:"Invested Capital"})]})}),jsxRuntimeExports.jsx("tbody",{children:i.data.map(e=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{children:e.year}),jsxRuntimeExports.jsx("td",{children:formatter.format(e.savingsEndOfYear)}),jsxRuntimeExports.jsx("td",{children:formatter.format(e.yearlyInterest)}),jsxRuntimeExports.jsx("td",{children:formatter.format(e.savingsEndOfYear-i.inInvest-e.yearlyContribution*e.year)}),jsxRuntimeExports.jsx("td",{children:formatter.format(parseInt(i.inInvest)+e.yearlyContribution*e.year)})]},e.year))})]}),form$1="_form_1schc_1",actions="_actions_1schc_63",button$2="_button_1schc_75",buttonAlt="_buttonAlt_1schc_93",classes$1={form:form$1,"input-group":"_input-group_1schc_17",actions,button:button$2,buttonAlt},initialUserInput={"current-savings":1e4,"yearly-contribution":1200,"expected-return":7,duration:10},UserInput=i=>{const[e,s]=reactExports.useState(initialUserInput),o=h=>{h.preventDefault(),i.onCalculate(e)},a=()=>{s(initialUserInput),i.onCalculate(null)},c=(h,g)=>{s(d=>({...d,[h]:g}))};return jsxRuntimeExports.jsxs("form",{onSubmit:o,className:classes$1.form,children:[jsxRuntimeExports.jsxs("div",{className:classes$1["input-group"],children:[jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"current-savings",children:"Current Savings ($)"}),jsxRuntimeExports.jsx("input",{onChange:h=>c("current-savings",h.target.value),value:e["current-savings"],type:"number",id:"current-savings"})]}),jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"yearly-contribution",children:"Yearly Savings ($)"}),jsxRuntimeExports.jsx("input",{onChange:h=>c("yearly-contribution",h.target.value),value:e["yearly-contribution"],type:"number",id:"yearly-contribution"})]})]}),jsxRuntimeExports.jsxs("div",{className:classes$1["input-group"],children:[jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"expected-return",children:"Expected Interest (%, per year)"}),jsxRuntimeExports.jsx("input",{onChange:h=>c("expected-return",h.target.value),value:e["expected-return"],type:"number",id:"expected-return"})]}),jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"duration",children:"Investment Duration (years)"}),jsxRuntimeExports.jsx("input",{onChange:h=>c("duration",h.target.value),value:e.duration,type:"number",id:"duration"})]})]}),jsxRuntimeExports.jsxs("p",{className:classes$1.actions,children:[jsxRuntimeExports.jsx("button",{onClick:a,type:"reset",className:classes$1.buttonAlt,children:"Reset"}),jsxRuntimeExports.jsx("button",{type:"submit",className:classes$1.button,children:"Calculate"})]})]})},main$3="_main_kxpla_1",styles$x={main:main$3};function App$g(){const[i,e]=reactExports.useState(null),s=a=>{e(a)},o=[];if(i){let a=+i["current-savings"];const c=+i["yearly-contribution"],h=+i["expected-return"]/100,g=+i.duration;for(let d=0;d{const[i,e]=reactExports.useState("");return reactExports.useEffect(()=>{const o=localStorage.getItem("theme");o&&e(o)},[]),reactExports.useEffect(()=>{localStorage.setItem("theme",i)},[i]),{theme:i,toggleTheme:()=>{e(i==="dark-theme"?"light-theme":"dark-theme")}}};function App$f(){const{theme:i,toggleTheme:e}=useTheme();return jsxRuntimeExports.jsxs("main",{className:`${styles$w.main} ${i==="dark-theme"?styles$w.darkTheme:styles$w.lightTheme}`,children:[jsxRuntimeExports.jsx("h1",{children:"Try to toggle the theme and see the change !!!"}),jsxRuntimeExports.jsx("button",{onClick:e,children:"Toggle Theme"})]})}const layout="_layout_1dsxo_1",button$1="_button_1dsxo_14",grid="_grid_1dsxo_18",tile="_tile_1dsxo_23",frontface="_frontface_1dsxo_27",backface="_backface_1dsxo_28",styles$v={layout,button:button$1,grid,tile,frontface,backface};function Tile({tile:i,onTileClick:e,idx:s}){const o=reactExports.useRef(null),a=reactExports.useRef(null);return reactExports.useEffect(()=>{o.current&&a.current&&(i.isOpen?(o.current.style.transform="rotateY(180deg)",a.current.style.transform="rotateY(0deg)"):(o.current.style.transform="rotateY(0deg)",a.current.style.transform="rotateY(180deg)"))},[i.isOpen]),jsxRuntimeExports.jsxs("div",{className:styles$v.tile,onClick:()=>{e(s)},children:[jsxRuntimeExports.jsx("div",{className:styles$v.frontface+" "+styles$v.tile,ref:o}),jsxRuntimeExports.jsx("div",{className:styles$v.backface+" "+styles$v.tile,ref:a,children:i.symbol})]})}function Grid$1({size:i,tiles:e,onTileClick:s}){return jsxRuntimeExports.jsx("div",{className:styles$v.grid,style:{gridTemplateRows:`repeat(${i}, min(${80/i}vmin, 6rem))`,gridTemplateColumns:`repeat(${i}, min(${80/i}vmin, 6rem))`,gap:`${10/i}vmin`},children:e.map((o,a)=>jsxRuntimeExports.jsx(Tile,{tile:o,onTileClick:s,idx:a},a))})}const symbols=["🍇","🍉","🚗","🍌","🏠","🥭","🍎","🐯","🍒","🍓","🐵","🥝","🍿","🏀","🎱","🐻","🍜","🍢","🎓","🍤","🦀","🍦","🍩","🎂","🍫","🍭","🍼","🪔","🍺","🐱","🐶"],getRandomSymbols=(i=8,e=!1)=>{const s=[],o=new Set;for(let a=0;a{const e=i.length;for(let s=0;s{const s=getRandomSymbols(i,e),o=s.concat(s);return shuffleArrayRandomly(o)},size$1=4,matchLength=2,getTiles=i=>getShuffledSymbols(i*i/matchLength,!0).map(e=>({symbol:e,isOpen:!1}));function MatchPair(){const[i,e]=reactExports.useState(()=>getTiles(size$1)),[s,o]=reactExports.useState([]),a=reactExports.useRef(),c=reactExports.useRef(0),h=reactExports.useRef(0),g=reactExports.useRef(!1),d=()=>{a.current=void 0,c.current=0,h.current=0,g.current=!0,e(j=>j.map($=>({symbol:$.symbol,isOpen:!1}))),setTimeout(()=>{e(getTiles(size$1)),g.current=!1},500)},b=()=>{if(s.length{const et=[..._e];return et[j]={symbol:_e[j].symbol,isOpen:!1},et[$]={symbol:_e[$].symbol,isOpen:!1},o(s.slice(matchLength)),et})},_=j=>{i[j].isOpen||g.current||(c.current++,o([...s,j]),e($=>{const _e=[...$];return _e[j]={..._e[j],isOpen:!0},_e}))};return reactExports.useEffect(()=>{s.length===matchLength&&(i[s[0]].symbol===i[s[1]].symbol?(o([]),h.current+=matchLength):a.current=window.setTimeout(()=>{b()},3e3)),s.length===matchLength+1&&(window.clearTimeout(a.current),b())},[i]),jsxRuntimeExports.jsxs("div",{className:styles$v.layout,children:[jsxRuntimeExports.jsx(Grid$1,{size:size$1,tiles:i,onTileClick:_}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("button",{className:styles$v.button,onClick:d,children:"Reset"})}),jsxRuntimeExports.jsxs("output",{children:[jsxRuntimeExports.jsxs("p",{children:["Attempts : ",c.current]}),jsxRuntimeExports.jsx("p",{children:h.current===size$1*size$1&&"Congratulations"})]})]})}const FOODS=[{id:1,name:"Pizza",price:10},{id:2,name:"Burger",price:20},{id:3,name:"Fries",price:30},{id:4,name:"Pasta",price:15},{id:5,name:"Salad",price:30},{id:6,name:"Soup",price:20},{id:7,name:"Marshmallows",price:10},{id:8,name:"Ice cream",price:20},{id:9,name:"Cake",price:30},{id:10,name:"Donut",price:5},{id:11,name:"Sushi",price:25},{id:12,name:"Taco",price:12},{id:13,name:"Steak",price:35},{id:14,name:"Chicken Wings",price:18},{id:15,name:"Lasagna",price:22},{id:16,name:"Burrito",price:15},{id:17,name:"Sushi Roll",price:27},{id:18,name:"Grilled Cheese Sandwich",price:10},{id:19,name:"Hot Dog",price:8},{id:20,name:"Nachos",price:12},{id:21,name:"Ramen",price:14},{id:22,name:"Pho",price:16},{id:23,name:"Gyros",price:18},{id:24,name:"Ceviche",price:20},{id:25,name:"Miso Soup",price:8},{id:26,name:"Crispy Tofu",price:12},{id:27,name:"Paella",price:28},{id:28,name:"Fish and Chips",price:17},{id:29,name:"Shrimp Scampi",price:24},{id:30,name:"Cannoli",price:10},{id:31,name:"Churros",price:7},{id:32,name:"Baklava",price:9},{id:33,name:"Tiramisu",price:12},{id:34,name:"Cheesecake",price:18},{id:35,name:"Chocolate Fondue",price:20}],pagination="_pagination_1mnjc_1",styles$u={pagination},Pagination$1=({currentPage:i,totalPages:e,onPageChange:s})=>jsxRuntimeExports.jsxs("div",{className:styles$u.pagination,children:[jsxRuntimeExports.jsx("button",{onClick:()=>s(i-1),disabled:i===1,children:"Previous"}),jsxRuntimeExports.jsxs("span",{children:["Page ",i," of ",e]}),jsxRuntimeExports.jsx("button",{onClick:()=>s(i+1),disabled:i===e,children:"Next"})]}),container_for_table="_container_for_table_1pb6f_1",table="_table_1pb6f_5",thead="_thead_1pb6f_10",tbody="_tbody_1pb6f_19",styles$t={container_for_table,table,thead,tbody},Table=({data:i,currentPage:e,totalPages:s,onPageChange:o})=>jsxRuntimeExports.jsxs("div",{className:styles$t.container_for_table,children:[jsxRuntimeExports.jsx(Pagination$1,{currentPage:e,totalPages:s,onPageChange:o}),jsxRuntimeExports.jsxs("table",{className:styles$t.table,children:[jsxRuntimeExports.jsx("thead",{className:styles$t.thead,children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{children:"#"}),jsxRuntimeExports.jsx("th",{children:"Food"}),jsxRuntimeExports.jsx("th",{children:"Price"})]})}),jsxRuntimeExports.jsx("tbody",{className:styles$t.tbody,children:i.map((a,c)=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{children:a.id}),jsxRuntimeExports.jsx("td",{children:a.name}),jsxRuntimeExports.jsxs("td",{children:[a.price,"$"]})]},c))})]})]}),pagination_container="_pagination_container_13fvi_1",title="_title_13fvi_10",styles$s={pagination_container,title},App$e=()=>{const[e,s]=reactExports.useState(1),o=g=>{s(g)},a=(e-1)*10,c=a+10,h=FOODS.slice(a,c);return jsxRuntimeExports.jsx("div",{className:styles$s.pagination_container,children:jsxRuntimeExports.jsx(Table,{data:h,currentPage:e,totalPages:Math.ceil(FOODS.length/10),onPageChange:o})})},ALPHABET_WORDS={a:"apple",b:"banana",c:"cat",d:"dog",e:"elephant",f:"fox",g:"grape",h:"horse",i:"ice cream",j:"jellyfish",k:"kiwi",l:"lion",m:"monkey",n:"nest",o:"orange",p:"pear",q:"queen",r:"rabbit",s:"snake",t:"tiger",u:"umbrella",v:"vase",w:"watermelon",x:"xylophone",y:"yak",z:"zebra",A:"Astronaut",B:"Bicycle",C:"Camera",D:"Dolphin",E:"Eagle",F:"Fireworks",G:"Globe",H:"Helicopter",I:"Island",J:"Jellyfish",K:"Kangaroo",L:"Lightning",M:"Mountain",N:"Nightingale",O:"Octopus",P:"Penguin",Q:"Quokka",R:"River",S:"Starfish",T:"Telescope",U:"Unicorn",V:"Volcano",W:"Waterfall",X:"X-ray",Y:"Yacht",Z:"Zipline"},App$d="_App_6bcv0_1",main_section="_main_section_6bcv0_10",main_header="_main_header_6bcv0_15",password_form="_password_form_6bcv0_22",second_section="_second_section_6bcv0_28",inputText="_inputText_6bcv0_38",fifth_section="_fifth_section_6bcv0_39",btn="_btn_6bcv0_46",fourth_section="_fourth_section_6bcv0_47",third_section="_third_section_6bcv0_72",sixth_section="_sixth_section_6bcv0_91",second_header="_second_header_6bcv0_97",styles$r={App:App$d,main_section,main_header,password_form,second_section,inputText,fifth_section,btn,fourth_section,third_section,sixth_section,second_header,"password-table":"_password-table_6bcv0_105"};function Form({passwordLength:i,setPasswordLength:e,isChecked:s,handleChange:o}){return jsxRuntimeExports.jsxs("form",{className:styles$r.password_form,children:[jsxRuntimeExports.jsxs("div",{children:["password length: ",i]}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("input",{type:"range",min:"6",max:"30",value:i,onChange:a=>e(a.target.value)})}),jsxRuntimeExports.jsx("div",{children:"Include Lowercase character:"}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:s.isCheckedLowerCha,onChange:o("isCheckedLowerCha")}),"Lowercase character (e.g. abcdefg)"]})}),jsxRuntimeExports.jsx("div",{children:"Include Uppercase character:"}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:s.isCheckedUpperCha,onChange:o("isCheckedUpperCha")}),"Uppercase character (e.g. ABCDEFG)"]})}),jsxRuntimeExports.jsx("div",{children:"Include Number:"}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:s.isCheckedNumber,onChange:o("isCheckedNumber")}),"Number (e.g. 12345)"]})}),jsxRuntimeExports.jsx("div",{children:"Include Symbols:"}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:s.isCheckedSymbols,onChange:o("isCheckedSymbols")}),"Symbols (e.g. !@#$%)"]})})]})}Form.propTypes;function GeneratePass({generatedPassword:i,handleCopyText:e,showTextNotification:s,notificationMessage:o}){return jsxRuntimeExports.jsxs("div",{className:styles$r.second_section,children:[jsxRuntimeExports.jsx("label",{children:"Your generated password: "}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("input",{className:styles$r.inputText,type:"text",placeholder:"Your generated password will appear here",value:i,readOnly:!0}),jsxRuntimeExports.jsx("button",{className:styles$r.btn,title:"copy password",onClick:a=>{e(a),s("copied2")},children:"copy"}),o==="copied2"&&jsxRuntimeExports.jsx("span",{children:o.slice(0,6)})]})]})}GeneratePass.propTypes;function GeneratePassAndCopyBtn({isChecked:i,passwordLength:e,randomPassword:s,PasswordToRemember:o,ALPHABET_WORDS:a,passwordGenerate:c,handleCopyText:h,showTextNotification:g,notificationMessage:d}){return jsxRuntimeExports.jsxs("div",{className:styles$r.fourth_section,children:[jsxRuntimeExports.jsx("button",{className:styles$r.btn,title:"generate password",onClick:c({...i},e,s,o,a),children:"generate password"}),jsxRuntimeExports.jsx("button",{className:styles$r.btn,title:"copy password",onClick:b=>{h(b),g("copied1")},children:"copy"}),d==="copied1"&&jsxRuntimeExports.jsx("span",{children:d.slice(0,6)})]})}GeneratePassAndCopyBtn.propTypes;function PasswordTable({saveNameAndPass:i}){return jsxRuntimeExports.jsxs("table",{className:styles$r["password-table"],children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{children:"Name of password"}),jsxRuntimeExports.jsx("th",{children:"Password"})]})}),jsxRuntimeExports.jsx("tbody",{children:i.map((e,s)=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{children:e.name}),jsxRuntimeExports.jsx("td",{children:e.pass})]},s))})]})}PasswordTable.propTypes;function SavePassword({generatedPassword:i,handleSavePasswordAndName:e,saveNameAndPass:s,setLocalStorage:o,checkPasswordNameExit:a,showTextNotification:c,notificationMessage:h}){const[g,d]=reactExports.useState(!1),[b,_]=reactExports.useState("");return jsxRuntimeExports.jsxs("div",{className:styles$r.fifth_section,children:[jsxRuntimeExports.jsx("label",{title:"save your password",htmlFor:"checkToSave",children:"Save password:"}),jsxRuntimeExports.jsx("input",{id:"checkToSave",type:"checkbox",checked:g,onChange:()=>d(!g),disabled:i==""}),g&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("input",{className:styles$r.inputText,type:"text",placeholder:"name your password",value:b,onChange:j=>_(j.target.value)}),jsxRuntimeExports.jsx("button",{className:styles$r.btn,title:"save password",onClick:e(b,i,s,o,a,c),children:"save"}),h==="cannot save without name!"&&jsxRuntimeExports.jsx("span",{children:h})||h==="name already taken!"&&jsxRuntimeExports.jsx("span",{children:h})]})]})}SavePassword.propTypes;function App$c(){const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState("There is no password to remember! Please generate one"),[a,c]=reactExports.useState({isCheckedLowerCha:!0,isCheckedUpperCha:!0,isCheckedNumber:!0,isCheckedSymbols:!1}),[h,g]=reactExports.useState(6),[d,b]=reactExports.useState([]),[_,j]=reactExports.useState("");reactExports.useEffect(()=>{const pt=_e("PASS");pt&&b(pt)},[]);const $=(pt,yt)=>{localStorage.setItem(pt,JSON.stringify(yt))},_e=pt=>{const yt=localStorage.getItem(pt);if(yt!==null)return JSON.parse(yt)},et=(pt,yt)=>pt.filter(gt=>gt.name===yt),tt=(pt,yt,gt,xt,wt,vt)=>()=>{const ft=wt(gt,pt);if(pt.length!==0){if(ft.length>0){vt("name already taken!");return}b(lt=>{const dt=[...lt,{name:pt,pass:yt}];return console.log(dt),xt("PASS",dt),dt})}else{vt("cannot save without name!");return}},st=pt=>yt=>{c(gt=>({...gt,[pt]:yt.target.checked}))},rt={lower:()=>String.fromCharCode(Math.floor(Math.random()*26)+97),upper:()=>String.fromCharCode(Math.floor(Math.random()*26)+65),number:()=>Math.floor(Math.random()*10),symbolCha:()=>{const pt=["!","@","#","$","%","^","&","*","(",")","_","+","-","=","/","|"],yt=Math.floor(Math.random()*pt.length);return pt[yt]}},nt=pt=>{const yt=pt.split("");for(let gt=yt.length-1;gt>0;gt--){const xt=Math.floor(Math.random()*gt+1);[yt[gt],yt[xt]]=[yt[xt],yt[gt]]}return yt.join("")},it=(pt,yt)=>{const gt=pt.split("");let xt="";gt.map(wt=>{yt[wt]?xt+=` ${yt[wt]}`:xt+=` ${wt}`}),o(xt.trim())},ot=(pt,yt,gt,xt,wt)=>()=>{let vt="";const{isCheckedLowerCha:ft,isCheckedUpperCha:lt,isCheckedNumber:dt,isCheckedSymbols:bt}=pt,at=ft+lt+dt+bt,ct=[{lower:ft},{upper:lt},{number:dt},{symbolCha:bt}].filter(mt=>Object.values(mt)[0]===!0);if(at===0)return"";for(let mt=0;mt{const jt=Object.keys(Et)[0];vt+=gt[jt]()});vt=nt(vt).slice(0,yt),e(vt),xt(vt,wt)},ut=pt=>{pt.preventDefault(),i!==""&&navigator.clipboard.writeText(i)},ht=pt=>{j(pt),setTimeout(()=>{j("")},1e3)};return jsxRuntimeExports.jsxs("div",{className:styles$r.App,children:[jsxRuntimeExports.jsxs("div",{className:styles$r.main_section,children:[jsxRuntimeExports.jsx(Form,{handleChange:st,isChecked:a,passwordLength:h,setPasswordLength:g}),jsxRuntimeExports.jsx(GeneratePass,{generatedPassword:i,handleCopyText:ut,notificationMessage:_,showTextNotification:ht}),jsxRuntimeExports.jsxs("div",{className:styles$r.third_section,children:[jsxRuntimeExports.jsx("label",{children:"Password remember shortcut: "}),jsxRuntimeExports.jsx("p",{children:s})]}),jsxRuntimeExports.jsx(GeneratePassAndCopyBtn,{ALPHABET_WORDS,PasswordToRemember:it,handleCopyText:ut,isChecked:a,notificationMessage:_,passwordGenerate:ot,passwordLength:h,randomPassword:rt,showTextNotification:ht}),jsxRuntimeExports.jsx(SavePassword,{checkPasswordNameExit:et,generatedPassword:i,handleSavePasswordAndName:tt,notificationMessage:_,saveNameAndPass:d,setLocalStorage:$,showTextNotification:ht})]}),jsxRuntimeExports.jsxs("div",{className:styles$r.sixth_section,children:[jsxRuntimeExports.jsx("h2",{className:styles$r.second_header,children:"All your saved password"}),jsxRuntimeExports.jsx(PasswordTable,{saveNameAndPass:d})]})]})}const main$1="_main_3eouk_1",indicators="_indicators_3eouk_6",active="_active_3eouk_14",progressContainer="_progressContainer_3eouk_17",progressBar="_progressBar_3eouk_25",styles$q={main:main$1,indicators,active,progressContainer,progressBar},usePasswordStrength=()=>{const[i,e]=reactExports.useState(""),s=/\d/,o=/[A-Z]/,a=/[a-z]/,c=/[^A-Za-z0-9]/,h=$=>$>8?"Strong":$>5?"Medium":"Weak",g=$=>{let _e=0;return $.length>3&&(_e=Math.min(6,Math.floor($.length/3)),_e+=+s.test($)+ +o.test($)+ +a.test($)+ +c.test($)),_e},d=$=>{const _e=$.target.value;e(_e)},b=g(i),_=h(b),j={lc:a.test(i),uc:o.test(i),num:s.test(i),sym:c.test(i)};return[i,_,b,j,d]},PasswordStrength=()=>{const[i,e,s,o,a]=usePasswordStrength();return jsxRuntimeExports.jsxs("div",{className:styles$q.main,children:[jsxRuntimeExports.jsx("input",{type:"text",id:"password",min:"8",max:"32",autoFocus:!0,autoComplete:"off",placeholder:"Enter the password",value:i,onChange:a}),jsxRuntimeExports.jsxs("div",{className:styles$q.indicators,children:[jsxRuntimeExports.jsx("span",{className:o.lc?styles$q.active:"",children:"Lowercase"}),jsxRuntimeExports.jsx("span",{className:o.uc?styles$q.active:"",children:"Uppercase"}),jsxRuntimeExports.jsx("span",{className:o.num?styles$q.active:"",children:"Number"}),jsxRuntimeExports.jsx("span",{className:o.sym?styles$q.active:"",children:"Symbols"})]}),jsxRuntimeExports.jsx("div",{className:styles$q.progressContainer,children:jsxRuntimeExports.jsx("div",{className:styles$q.progressBar,style:{width:`${s*10}%`,backgroundColor:s>5?s>8?"green":"orange":"red"}})}),jsxRuntimeExports.jsxs("p",{children:["Password has ",jsxRuntimeExports.jsx("strong",{children:i.length})," chars"]}),jsxRuntimeExports.jsxs("p",{children:["Your password is ",jsxRuntimeExports.jsx("strong",{children:e})]})]})},App$b="_App_wgvvi_1",controls$1="_controls_wgvvi_26",slidecontainer="_slidecontainer_wgvvi_47",styles$p={App:App$b,"bg-progress":"_bg-progress_wgvvi_9","fg-progress":"_fg-progress_wgvvi_18",controls:controls$1,slidecontainer},Controls=({startProgress:i,pauseProgress:e,stopProgress:s,handleSliderChange:o,speed:a})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:styles$p.controls,children:[jsxRuntimeExports.jsx("button",{onClick:i,children:"Start"}),jsxRuntimeExports.jsx("button",{onClick:e,children:"Pause"}),jsxRuntimeExports.jsx("button",{onClick:s,children:"Reset"})]}),jsxRuntimeExports.jsxs("div",{className:styles$p.slidecontainer,children:[jsxRuntimeExports.jsx("input",{type:"range",min:a.min,max:a.max,defaultValue:a.min,className:"slider",id:"myRange",onChange:o}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("label",{htmlFor:"myRange",children:jsxRuntimeExports.jsxs("small",{children:["Speed: ",a.value," "]})})})]})]}),totalTime=10*1e3,timeInterval=1e3,totalCycles=totalTime/timeInterval,ProgressBar=()=>{const[i,e]=reactExports.useState(0),[s,o]=reactExports.useState({max:10,min:1,value:1,label:"speed"}),a=reactExports.useRef(null),c=()=>{clearInterval(a.current),i>=totalCycles&&e(0),a.current=setInterval(()=>{e(_=>_>=totalCycles?(clearInterval(a),_):_+1)},timeInterval/s.value)};reactExports.useEffect(()=>{c()},[s.value]);const h=()=>{clearInterval(a.current)},g=()=>{h(),e(0)},d=_=>{o(j=>({...j,value:_.target.value}))},b=()=>i/totalCycles*100;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:styles$p["bg-progress"],children:jsxRuntimeExports.jsx("div",{className:styles$p["fg-progress"],style:{transform:`translateX(${-100+b()}%)`}})}),jsxRuntimeExports.jsx(Controls,{startProgress:c,stopProgress:g,pauseProgress:h,speed:s,handleSliderChange:d})]})},App$a=()=>jsxRuntimeExports.jsx("div",{className:styles$p.App,children:jsxRuntimeExports.jsx(ProgressBar,{})});var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(i,e,s)=>e in i?__defProp(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s,__spreadValues=(i,e)=>{for(var s in e||(e={}))__hasOwnProp.call(e,s)&&__defNormalProp(i,s,e[s]);if(__getOwnPropSymbols)for(var s of __getOwnPropSymbols(e))__propIsEnum.call(e,s)&&__defNormalProp(i,s,e[s]);return i},__objRest=(i,e)=>{var s={};for(var o in i)__hasOwnProp.call(i,o)&&e.indexOf(o)<0&&(s[o]=i[o]);if(i!=null&&__getOwnPropSymbols)for(var o of __getOwnPropSymbols(i))e.indexOf(o)<0&&__propIsEnum.call(i,o)&&(s[o]=i[o]);return s};/** +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...s){const o=new this(e);return s.forEach(a=>o.set(a)),o}static accessor(e){const o=(this[$internals]=this[$internals]={accessors:{}}).accessors,a=this.prototype;function c(h){const g=normalizeHeader(h);o[g]||(buildAccessors(a,h),o[g]=!0)}return utils.isArray(e)?e.forEach(c):c(e),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils.freezeMethods(AxiosHeaders.prototype);utils.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(i,e){const s=this||defaults$2,o=e||s,a=AxiosHeaders$1.from(o.headers);let c=o.data;return utils.forEach(i,function(g){c=g.call(s,c,a.normalize(),e?e.status:void 0)}),a.normalize(),c}function isCancel(i){return!!(i&&i.__CANCEL__)}function CanceledError(i,e,s){AxiosError.call(this,i??"canceled",AxiosError.ERR_CANCELED,e,s),this.name="CanceledError"}utils.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(i,e,s){const o=s.config.validateStatus;!s.status||!o||o(s.status)?i(s):e(new AxiosError("Request failed with status code "+s.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}const cookies=platform.isStandardBrowserEnv?function i(){return{write:function(s,o,a,c,h,g){const d=[];d.push(s+"="+encodeURIComponent(o)),utils.isNumber(a)&&d.push("expires="+new Date(a).toGMTString()),utils.isString(c)&&d.push("path="+c),utils.isString(h)&&d.push("domain="+h),g===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(s){const o=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(s){this.write(s,"",Date.now()-864e5)}}}():function i(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL(i){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function combineURLs(i,e){return e?i.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):i}function buildFullPath(i,e){return i&&!isAbsoluteURL(e)?combineURLs(i,e):e}const isURLSameOrigin=platform.isStandardBrowserEnv?function i(){const e=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");let o;function a(c){let h=c;return e&&(s.setAttribute("href",h),h=s.href),s.setAttribute("href",h),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return o=a(window.location.href),function(h){const g=utils.isString(h)?a(h):h;return g.protocol===o.protocol&&g.host===o.host}}():function i(){return function(){return!0}}();function parseProtocol(i){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return e&&e[1]||""}function speedometer(i,e){i=i||10;const s=new Array(i),o=new Array(i);let a=0,c=0,h;return e=e!==void 0?e:1e3,function(d){const b=Date.now(),_=o[c];h||(h=b),s[a]=d,o[a]=b;let j=c,$=0;for(;j!==a;)$+=s[j++],j=j%i;if(a=(a+1)%i,a===c&&(c=(c+1)%i),b-h{const c=a.loaded,h=a.lengthComputable?a.total:void 0,g=c-s,d=o(g),b=c<=h;s=c;const _={loaded:c,total:h,progress:h?c/h:void 0,bytes:g,rate:d||void 0,estimated:d&&h&&b?(h-c)/d:void 0,event:a};_[e?"download":"upload"]=!0,i(_)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(i){return new Promise(function(s,o){let a=i.data;const c=AxiosHeaders$1.from(i.headers).normalize(),h=i.responseType;let g;function d(){i.cancelToken&&i.cancelToken.unsubscribe(g),i.signal&&i.signal.removeEventListener("abort",g)}utils.isFormData(a)&&(platform.isStandardBrowserEnv||platform.isStandardBrowserWebWorkerEnv?c.setContentType(!1):c.setContentType("multipart/form-data;",!1));let b=new XMLHttpRequest;if(i.auth){const _e=i.auth.username||"",et=i.auth.password?unescape(encodeURIComponent(i.auth.password)):"";c.set("Authorization","Basic "+btoa(_e+":"+et))}const _=buildFullPath(i.baseURL,i.url);b.open(i.method.toUpperCase(),buildURL(_,i.params,i.paramsSerializer),!0),b.timeout=i.timeout;function j(){if(!b)return;const _e=AxiosHeaders$1.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),tt={data:!h||h==="text"||h==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:_e,config:i,request:b};settle(function(nt){s(nt),d()},function(nt){o(nt),d()},tt),b=null}if("onloadend"in b?b.onloadend=j:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(j)},b.onabort=function(){b&&(o(new AxiosError("Request aborted",AxiosError.ECONNABORTED,i,b)),b=null)},b.onerror=function(){o(new AxiosError("Network Error",AxiosError.ERR_NETWORK,i,b)),b=null},b.ontimeout=function(){let et=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const tt=i.transitional||transitionalDefaults;i.timeoutErrorMessage&&(et=i.timeoutErrorMessage),o(new AxiosError(et,tt.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,i,b)),b=null},platform.isStandardBrowserEnv){const _e=(i.withCredentials||isURLSameOrigin(_))&&i.xsrfCookieName&&cookies.read(i.xsrfCookieName);_e&&c.set(i.xsrfHeaderName,_e)}a===void 0&&c.setContentType(null),"setRequestHeader"in b&&utils.forEach(c.toJSON(),function(et,tt){b.setRequestHeader(tt,et)}),utils.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),h&&h!=="json"&&(b.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&b.addEventListener("progress",progressEventReducer(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&b.upload&&b.upload.addEventListener("progress",progressEventReducer(i.onUploadProgress)),(i.cancelToken||i.signal)&&(g=_e=>{b&&(o(!_e||_e.type?new CanceledError(null,i,b):_e),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(g),i.signal&&(i.signal.aborted?g():i.signal.addEventListener("abort",g)));const $=parseProtocol(_);if($&&platform.protocols.indexOf($)===-1){o(new AxiosError("Unsupported protocol "+$+":",AxiosError.ERR_BAD_REQUEST,i));return}b.send(a||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils.forEach(knownAdapters,(i,e)=>{if(i){try{Object.defineProperty(i,"name",{value:e})}catch{}Object.defineProperty(i,"adapterName",{value:e})}});const adapters={getAdapter:i=>{i=utils.isArray(i)?i:[i];const{length:e}=i;let s,o;for(let a=0;ai instanceof AxiosHeaders$1?i.toJSON():i;function mergeConfig(i,e){e=e||{};const s={};function o(b,_,j){return utils.isPlainObject(b)&&utils.isPlainObject(_)?utils.merge.call({caseless:j},b,_):utils.isPlainObject(_)?utils.merge({},_):utils.isArray(_)?_.slice():_}function a(b,_,j){if(utils.isUndefined(_)){if(!utils.isUndefined(b))return o(void 0,b,j)}else return o(b,_,j)}function c(b,_){if(!utils.isUndefined(_))return o(void 0,_)}function h(b,_){if(utils.isUndefined(_)){if(!utils.isUndefined(b))return o(void 0,b)}else return o(void 0,_)}function g(b,_,j){if(j in e)return o(b,_);if(j in i)return o(void 0,b)}const d={url:c,method:c,data:c,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:g,headers:(b,_)=>a(headersToObject(b),headersToObject(_),!0)};return utils.forEach(Object.keys(Object.assign({},i,e)),function(_){const j=d[_]||a,$=j(i[_],e[_],_);utils.isUndefined($)&&j!==g||(s[_]=$)}),s}const VERSION="1.4.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach((i,e)=>{validators$1[i]=function(o){return typeof o===i||"a"+(e<1?"n ":" ")+i}});const deprecatedWarnings={};validators$1.transitional=function i(e,s,o){function a(c,h){return"[Axios v"+VERSION+"] Transitional option '"+c+"'"+h+(o?". "+o:"")}return(c,h,g)=>{if(e===!1)throw new AxiosError(a(h," has been removed"+(s?" in "+s:"")),AxiosError.ERR_DEPRECATED);return s&&!deprecatedWarnings[h]&&(deprecatedWarnings[h]=!0,console.warn(a(h," has been deprecated since v"+s+" and will be removed in the near future"))),e?e(c,h,g):!0}};function assertOptions(i,e,s){if(typeof i!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const o=Object.keys(i);let a=o.length;for(;a-- >0;){const c=o[a],h=e[c];if(h){const g=i[c],d=g===void 0||h(g,c,i);if(d!==!0)throw new AxiosError("option "+c+" must be "+d,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new AxiosError("Unknown option "+c,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(e){this.defaults=e,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(e,s){typeof e=="string"?(s=s||{},s.url=e):s=e||{},s=mergeConfig(this.defaults,s);const{transitional:o,paramsSerializer:a,headers:c}=s;o!==void 0&&validator.assertOptions(o,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),a!=null&&(utils.isFunction(a)?s.paramsSerializer={serialize:a}:validator.assertOptions(a,{encode:validators.function,serialize:validators.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let h;h=c&&utils.merge(c.common,c[s.method]),h&&utils.forEach(["delete","get","head","post","put","patch","common"],et=>{delete c[et]}),s.headers=AxiosHeaders$1.concat(h,c);const g=[];let d=!0;this.interceptors.request.forEach(function(tt){typeof tt.runWhen=="function"&&tt.runWhen(s)===!1||(d=d&&tt.synchronous,g.unshift(tt.fulfilled,tt.rejected))});const b=[];this.interceptors.response.forEach(function(tt){b.push(tt.fulfilled,tt.rejected)});let _,j=0,$;if(!d){const et=[dispatchRequest.bind(this),void 0];for(et.unshift.apply(et,g),et.push.apply(et,b),$=et.length,_=Promise.resolve(s);j<$;)_=_.then(et[j++],et[j++]);return _}$=g.length;let _e=s;for(j=0;j<$;){const et=g[j++],tt=g[j++];try{_e=et(_e)}catch(st){tt.call(this,st);break}}try{_=dispatchRequest.call(this,_e)}catch(et){return Promise.reject(et)}for(j=0,$=b.length;j<$;)_=_.then(b[j++],b[j++]);return _}getUri(e){e=mergeConfig(this.defaults,e);const s=buildFullPath(e.baseURL,e.url);return buildURL(s,e.params,e.paramsSerializer)}}utils.forEach(["delete","get","head","options"],function i(e){Axios.prototype[e]=function(s,o){return this.request(mergeConfig(o||{},{method:e,url:s,data:(o||{}).data}))}});utils.forEach(["post","put","patch"],function i(e){function s(o){return function(c,h,g){return this.request(mergeConfig(g||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:c,data:h}))}}Axios.prototype[e]=s(),Axios.prototype[e+"Form"]=s(!0)});const Axios$1=Axios;class CancelToken{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(c){s=c});const o=this;this.promise.then(a=>{if(!o._listeners)return;let c=o._listeners.length;for(;c-- >0;)o._listeners[c](a);o._listeners=null}),this.promise.then=a=>{let c;const h=new Promise(g=>{o.subscribe(g),c=g}).then(a);return h.cancel=function(){o.unsubscribe(c)},h},e(function(c,h,g){o.reason||(o.reason=new CanceledError(c,h,g),s(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const s=this._listeners.indexOf(e);s!==-1&&this._listeners.splice(s,1)}static source(){let e;return{token:new CancelToken(function(a){e=a}),cancel:e}}}const CancelToken$1=CancelToken;function spread(i){return function(s){return i.apply(null,s)}}function isAxiosError(i){return utils.isObject(i)&&i.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([i,e])=>{HttpStatusCode[e]=i});const HttpStatusCode$1=HttpStatusCode;function createInstance(i){const e=new Axios$1(i),s=bind(Axios$1.prototype.request,e);return utils.extend(s,Axios$1.prototype,e,{allOwnKeys:!0}),utils.extend(s,e,null,{allOwnKeys:!0}),s.create=function(a){return createInstance(mergeConfig(i,a))},s}const axios=createInstance(defaults$2);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function i(e){return Promise.all(e)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=i=>formDataToJSON(utils.isHTMLForm(i)?new FormData(i):i);axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios;function useSearch(i){const[e,s]=reactExports.useState(!0),[o,a]=reactExports.useState(!1),[c,h]=reactExports.useState([]),[g,d]=reactExports.useState(!1);return reactExports.useEffect(()=>{s(!0),a(!1);let b;return axios$1({method:"GET",url:"https://jsonplaceholder.typicode.com/photos",params:{_page:i,_limit:10},cancelToken:new axios$1.CancelToken(_=>b=_)}).then(_=>{var j;h($=>[...new Set([...$,..._.data.map(_e=>_e.title)])]),d(!(((j=_.data.at(-1))==null?void 0:j.id)===5e3||_.data.length===0)),s(!1)}).catch(_=>{axios$1.isCancel(_)||a(!0)}),()=>b()},[i]),{loading:e,error:o,items:c,hasMore:g}}function App$i(){const[i,e]=reactExports.useState(1),{items:s,hasMore:o,loading:a,error:c}=useSearch(i),h=reactExports.useRef(),g=reactExports.useCallback(d=>{a||(h.current&&h.current.disconnect(),h.current=new IntersectionObserver(b=>{b[0].isIntersecting&&o&&e(_=>_+1)}),d&&h.current.observe(d))},[a,o]);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[s==null?void 0:s.map((d,b)=>s.length===b+1?jsxRuntimeExports.jsx("div",{className:`${styles$z["book-title"]}`,ref:g,children:d},d):jsxRuntimeExports.jsx("div",{className:`${styles$z["book-title"]}`,children:d},d)),a&&jsxRuntimeExports.jsx("div",{className:styles$z.loader}),jsxRuntimeExports.jsx("div",{children:c&&"Error"})]})}const result="_result_1y6k8_1",classes$2={result},formatter=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}),ResultsTable=i=>jsxRuntimeExports.jsxs("table",{className:classes$2.result,children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{children:"Year"}),jsxRuntimeExports.jsx("th",{children:"Total Savings"}),jsxRuntimeExports.jsx("th",{children:"Interest (Year)"}),jsxRuntimeExports.jsx("th",{children:"Total Interest"}),jsxRuntimeExports.jsx("th",{children:"Invested Capital"})]})}),jsxRuntimeExports.jsx("tbody",{children:i.data.map(e=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{children:e.year}),jsxRuntimeExports.jsx("td",{children:formatter.format(e.savingsEndOfYear)}),jsxRuntimeExports.jsx("td",{children:formatter.format(e.yearlyInterest)}),jsxRuntimeExports.jsx("td",{children:formatter.format(e.savingsEndOfYear-i.inInvest-e.yearlyContribution*e.year)}),jsxRuntimeExports.jsx("td",{children:formatter.format(parseInt(i.inInvest)+e.yearlyContribution*e.year)})]},e.year))})]}),form$1="_form_1schc_1",actions="_actions_1schc_63",button$2="_button_1schc_75",buttonAlt="_buttonAlt_1schc_93",classes$1={form:form$1,"input-group":"_input-group_1schc_17",actions,button:button$2,buttonAlt},initialUserInput={"current-savings":1e4,"yearly-contribution":1200,"expected-return":7,duration:10},UserInput=i=>{const[e,s]=reactExports.useState(initialUserInput),o=h=>{h.preventDefault(),i.onCalculate(e)},a=()=>{s(initialUserInput),i.onCalculate(null)},c=(h,g)=>{s(d=>({...d,[h]:g}))};return jsxRuntimeExports.jsxs("form",{onSubmit:o,className:classes$1.form,children:[jsxRuntimeExports.jsxs("div",{className:classes$1["input-group"],children:[jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"current-savings",children:"Current Savings ($)"}),jsxRuntimeExports.jsx("input",{onChange:h=>c("current-savings",h.target.value),value:e["current-savings"],type:"number",id:"current-savings"})]}),jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"yearly-contribution",children:"Yearly Savings ($)"}),jsxRuntimeExports.jsx("input",{onChange:h=>c("yearly-contribution",h.target.value),value:e["yearly-contribution"],type:"number",id:"yearly-contribution"})]})]}),jsxRuntimeExports.jsxs("div",{className:classes$1["input-group"],children:[jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"expected-return",children:"Expected Interest (%, per year)"}),jsxRuntimeExports.jsx("input",{onChange:h=>c("expected-return",h.target.value),value:e["expected-return"],type:"number",id:"expected-return"})]}),jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("label",{htmlFor:"duration",children:"Investment Duration (years)"}),jsxRuntimeExports.jsx("input",{onChange:h=>c("duration",h.target.value),value:e.duration,type:"number",id:"duration"})]})]}),jsxRuntimeExports.jsxs("p",{className:classes$1.actions,children:[jsxRuntimeExports.jsx("button",{onClick:a,type:"reset",className:classes$1.buttonAlt,children:"Reset"}),jsxRuntimeExports.jsx("button",{type:"submit",className:classes$1.button,children:"Calculate"})]})]})},main$4="_main_kxpla_1",styles$y={main:main$4};function App$h(){const[i,e]=reactExports.useState(null),s=a=>{e(a)},o=[];if(i){let a=+i["current-savings"];const c=+i["yearly-contribution"],h=+i["expected-return"]/100,g=+i.duration;for(let d=0;d{const[i,e]=reactExports.useState("");return reactExports.useEffect(()=>{const o=localStorage.getItem("theme");o&&e(o)},[]),reactExports.useEffect(()=>{localStorage.setItem("theme",i)},[i]),{theme:i,toggleTheme:()=>{e(i==="dark-theme"?"light-theme":"dark-theme")}}};function App$g(){const{theme:i,toggleTheme:e}=useTheme();return jsxRuntimeExports.jsxs("main",{className:`${styles$x.main} ${i==="dark-theme"?styles$x.darkTheme:styles$x.lightTheme}`,children:[jsxRuntimeExports.jsx("h1",{children:"Try to toggle the theme and see the change !!!"}),jsxRuntimeExports.jsx("button",{onClick:e,children:"Toggle Theme"})]})}const layout="_layout_1dsxo_1",button$1="_button_1dsxo_14",grid="_grid_1dsxo_18",tile="_tile_1dsxo_23",frontface="_frontface_1dsxo_27",backface="_backface_1dsxo_28",styles$w={layout,button:button$1,grid,tile,frontface,backface};function Tile({tile:i,onTileClick:e,idx:s}){const o=reactExports.useRef(null),a=reactExports.useRef(null);return reactExports.useEffect(()=>{o.current&&a.current&&(i.isOpen?(o.current.style.transform="rotateY(180deg)",a.current.style.transform="rotateY(0deg)"):(o.current.style.transform="rotateY(0deg)",a.current.style.transform="rotateY(180deg)"))},[i.isOpen]),jsxRuntimeExports.jsxs("div",{className:styles$w.tile,onClick:()=>{e(s)},children:[jsxRuntimeExports.jsx("div",{className:styles$w.frontface+" "+styles$w.tile,ref:o}),jsxRuntimeExports.jsx("div",{className:styles$w.backface+" "+styles$w.tile,ref:a,children:i.symbol})]})}function Grid$1({size:i,tiles:e,onTileClick:s}){return jsxRuntimeExports.jsx("div",{className:styles$w.grid,style:{gridTemplateRows:`repeat(${i}, min(${80/i}vmin, 6rem))`,gridTemplateColumns:`repeat(${i}, min(${80/i}vmin, 6rem))`,gap:`${10/i}vmin`},children:e.map((o,a)=>jsxRuntimeExports.jsx(Tile,{tile:o,onTileClick:s,idx:a},a))})}const symbols=["🍇","🍉","🚗","🍌","🏠","🥭","🍎","🐯","🍒","🍓","🐵","🥝","🍿","🏀","🎱","🐻","🍜","🍢","🎓","🍤","🦀","🍦","🍩","🎂","🍫","🍭","🍼","🪔","🍺","🐱","🐶"],getRandomSymbols=(i=8,e=!1)=>{const s=[],o=new Set;for(let a=0;a{const e=i.length;for(let s=0;s{const s=getRandomSymbols(i,e),o=s.concat(s);return shuffleArrayRandomly(o)},size$1=4,matchLength=2,getTiles=i=>getShuffledSymbols(i*i/matchLength,!0).map(e=>({symbol:e,isOpen:!1}));function MatchPair(){const[i,e]=reactExports.useState(()=>getTiles(size$1)),[s,o]=reactExports.useState([]),a=reactExports.useRef(),c=reactExports.useRef(0),h=reactExports.useRef(0),g=reactExports.useRef(!1),d=()=>{a.current=void 0,c.current=0,h.current=0,g.current=!0,e(j=>j.map($=>({symbol:$.symbol,isOpen:!1}))),setTimeout(()=>{e(getTiles(size$1)),g.current=!1},500)},b=()=>{if(s.length{const et=[..._e];return et[j]={symbol:_e[j].symbol,isOpen:!1},et[$]={symbol:_e[$].symbol,isOpen:!1},o(s.slice(matchLength)),et})},_=j=>{i[j].isOpen||g.current||(c.current++,o([...s,j]),e($=>{const _e=[...$];return _e[j]={..._e[j],isOpen:!0},_e}))};return reactExports.useEffect(()=>{s.length===matchLength&&(i[s[0]].symbol===i[s[1]].symbol?(o([]),h.current+=matchLength):a.current=window.setTimeout(()=>{b()},3e3)),s.length===matchLength+1&&(window.clearTimeout(a.current),b())},[i]),jsxRuntimeExports.jsxs("div",{className:styles$w.layout,children:[jsxRuntimeExports.jsx(Grid$1,{size:size$1,tiles:i,onTileClick:_}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("button",{className:styles$w.button,onClick:d,children:"Reset"})}),jsxRuntimeExports.jsxs("output",{children:[jsxRuntimeExports.jsxs("p",{children:["Attempts : ",c.current]}),jsxRuntimeExports.jsx("p",{children:h.current===size$1*size$1&&"Congratulations"})]})]})}const FOODS=[{id:1,name:"Pizza",price:10},{id:2,name:"Burger",price:20},{id:3,name:"Fries",price:30},{id:4,name:"Pasta",price:15},{id:5,name:"Salad",price:30},{id:6,name:"Soup",price:20},{id:7,name:"Marshmallows",price:10},{id:8,name:"Ice cream",price:20},{id:9,name:"Cake",price:30},{id:10,name:"Donut",price:5},{id:11,name:"Sushi",price:25},{id:12,name:"Taco",price:12},{id:13,name:"Steak",price:35},{id:14,name:"Chicken Wings",price:18},{id:15,name:"Lasagna",price:22},{id:16,name:"Burrito",price:15},{id:17,name:"Sushi Roll",price:27},{id:18,name:"Grilled Cheese Sandwich",price:10},{id:19,name:"Hot Dog",price:8},{id:20,name:"Nachos",price:12},{id:21,name:"Ramen",price:14},{id:22,name:"Pho",price:16},{id:23,name:"Gyros",price:18},{id:24,name:"Ceviche",price:20},{id:25,name:"Miso Soup",price:8},{id:26,name:"Crispy Tofu",price:12},{id:27,name:"Paella",price:28},{id:28,name:"Fish and Chips",price:17},{id:29,name:"Shrimp Scampi",price:24},{id:30,name:"Cannoli",price:10},{id:31,name:"Churros",price:7},{id:32,name:"Baklava",price:9},{id:33,name:"Tiramisu",price:12},{id:34,name:"Cheesecake",price:18},{id:35,name:"Chocolate Fondue",price:20}],pagination="_pagination_1mnjc_1",styles$v={pagination},Pagination$1=({currentPage:i,totalPages:e,onPageChange:s})=>jsxRuntimeExports.jsxs("div",{className:styles$v.pagination,children:[jsxRuntimeExports.jsx("button",{onClick:()=>s(i-1),disabled:i===1,children:"Previous"}),jsxRuntimeExports.jsxs("span",{children:["Page ",i," of ",e]}),jsxRuntimeExports.jsx("button",{onClick:()=>s(i+1),disabled:i===e,children:"Next"})]}),container_for_table="_container_for_table_1pb6f_1",table="_table_1pb6f_5",thead="_thead_1pb6f_10",tbody="_tbody_1pb6f_19",styles$u={container_for_table,table,thead,tbody},Table=({data:i,currentPage:e,totalPages:s,onPageChange:o})=>jsxRuntimeExports.jsxs("div",{className:styles$u.container_for_table,children:[jsxRuntimeExports.jsx(Pagination$1,{currentPage:e,totalPages:s,onPageChange:o}),jsxRuntimeExports.jsxs("table",{className:styles$u.table,children:[jsxRuntimeExports.jsx("thead",{className:styles$u.thead,children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{children:"#"}),jsxRuntimeExports.jsx("th",{children:"Food"}),jsxRuntimeExports.jsx("th",{children:"Price"})]})}),jsxRuntimeExports.jsx("tbody",{className:styles$u.tbody,children:i.map((a,c)=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{children:a.id}),jsxRuntimeExports.jsx("td",{children:a.name}),jsxRuntimeExports.jsxs("td",{children:[a.price,"$"]})]},c))})]})]}),pagination_container="_pagination_container_13fvi_1",title="_title_13fvi_10",styles$t={pagination_container,title},App$f=()=>{const[e,s]=reactExports.useState(1),o=g=>{s(g)},a=(e-1)*10,c=a+10,h=FOODS.slice(a,c);return jsxRuntimeExports.jsx("div",{className:styles$t.pagination_container,children:jsxRuntimeExports.jsx(Table,{data:h,currentPage:e,totalPages:Math.ceil(FOODS.length/10),onPageChange:o})})},ALPHABET_WORDS={a:"apple",b:"banana",c:"cat",d:"dog",e:"elephant",f:"fox",g:"grape",h:"horse",i:"ice cream",j:"jellyfish",k:"kiwi",l:"lion",m:"monkey",n:"nest",o:"orange",p:"pear",q:"queen",r:"rabbit",s:"snake",t:"tiger",u:"umbrella",v:"vase",w:"watermelon",x:"xylophone",y:"yak",z:"zebra",A:"Astronaut",B:"Bicycle",C:"Camera",D:"Dolphin",E:"Eagle",F:"Fireworks",G:"Globe",H:"Helicopter",I:"Island",J:"Jellyfish",K:"Kangaroo",L:"Lightning",M:"Mountain",N:"Nightingale",O:"Octopus",P:"Penguin",Q:"Quokka",R:"River",S:"Starfish",T:"Telescope",U:"Unicorn",V:"Volcano",W:"Waterfall",X:"X-ray",Y:"Yacht",Z:"Zipline"},App$e="_App_6bcv0_1",main_section="_main_section_6bcv0_10",main_header="_main_header_6bcv0_15",password_form="_password_form_6bcv0_22",second_section="_second_section_6bcv0_28",inputText="_inputText_6bcv0_38",fifth_section="_fifth_section_6bcv0_39",btn="_btn_6bcv0_46",fourth_section="_fourth_section_6bcv0_47",third_section="_third_section_6bcv0_72",sixth_section="_sixth_section_6bcv0_91",second_header="_second_header_6bcv0_97",styles$s={App:App$e,main_section,main_header,password_form,second_section,inputText,fifth_section,btn,fourth_section,third_section,sixth_section,second_header,"password-table":"_password-table_6bcv0_105"};function Form({passwordLength:i,setPasswordLength:e,isChecked:s,handleChange:o}){return jsxRuntimeExports.jsxs("form",{className:styles$s.password_form,children:[jsxRuntimeExports.jsxs("div",{children:["password length: ",i]}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("input",{type:"range",min:"6",max:"30",value:i,onChange:a=>e(a.target.value)})}),jsxRuntimeExports.jsx("div",{children:"Include Lowercase character:"}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:s.isCheckedLowerCha,onChange:o("isCheckedLowerCha")}),"Lowercase character (e.g. abcdefg)"]})}),jsxRuntimeExports.jsx("div",{children:"Include Uppercase character:"}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:s.isCheckedUpperCha,onChange:o("isCheckedUpperCha")}),"Uppercase character (e.g. ABCDEFG)"]})}),jsxRuntimeExports.jsx("div",{children:"Include Number:"}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:s.isCheckedNumber,onChange:o("isCheckedNumber")}),"Number (e.g. 12345)"]})}),jsxRuntimeExports.jsx("div",{children:"Include Symbols:"}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{type:"checkbox",checked:s.isCheckedSymbols,onChange:o("isCheckedSymbols")}),"Symbols (e.g. !@#$%)"]})})]})}Form.propTypes;function GeneratePass({generatedPassword:i,handleCopyText:e,showTextNotification:s,notificationMessage:o}){return jsxRuntimeExports.jsxs("div",{className:styles$s.second_section,children:[jsxRuntimeExports.jsx("label",{children:"Your generated password: "}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("input",{className:styles$s.inputText,type:"text",placeholder:"Your generated password will appear here",value:i,readOnly:!0}),jsxRuntimeExports.jsx("button",{className:styles$s.btn,title:"copy password",onClick:a=>{e(a),s("copied2")},children:"copy"}),o==="copied2"&&jsxRuntimeExports.jsx("span",{children:o.slice(0,6)})]})]})}GeneratePass.propTypes;function GeneratePassAndCopyBtn({isChecked:i,passwordLength:e,randomPassword:s,PasswordToRemember:o,ALPHABET_WORDS:a,passwordGenerate:c,handleCopyText:h,showTextNotification:g,notificationMessage:d}){return jsxRuntimeExports.jsxs("div",{className:styles$s.fourth_section,children:[jsxRuntimeExports.jsx("button",{className:styles$s.btn,title:"generate password",onClick:c({...i},e,s,o,a),children:"generate password"}),jsxRuntimeExports.jsx("button",{className:styles$s.btn,title:"copy password",onClick:b=>{h(b),g("copied1")},children:"copy"}),d==="copied1"&&jsxRuntimeExports.jsx("span",{children:d.slice(0,6)})]})}GeneratePassAndCopyBtn.propTypes;function PasswordTable({saveNameAndPass:i}){return jsxRuntimeExports.jsxs("table",{className:styles$s["password-table"],children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{children:"Name of password"}),jsxRuntimeExports.jsx("th",{children:"Password"})]})}),jsxRuntimeExports.jsx("tbody",{children:i.map((e,s)=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{children:e.name}),jsxRuntimeExports.jsx("td",{children:e.pass})]},s))})]})}PasswordTable.propTypes;function SavePassword({generatedPassword:i,handleSavePasswordAndName:e,saveNameAndPass:s,setLocalStorage:o,checkPasswordNameExit:a,showTextNotification:c,notificationMessage:h}){const[g,d]=reactExports.useState(!1),[b,_]=reactExports.useState("");return jsxRuntimeExports.jsxs("div",{className:styles$s.fifth_section,children:[jsxRuntimeExports.jsx("label",{title:"save your password",htmlFor:"checkToSave",children:"Save password:"}),jsxRuntimeExports.jsx("input",{id:"checkToSave",type:"checkbox",checked:g,onChange:()=>d(!g),disabled:i==""}),g&&jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("input",{className:styles$s.inputText,type:"text",placeholder:"name your password",value:b,onChange:j=>_(j.target.value)}),jsxRuntimeExports.jsx("button",{className:styles$s.btn,title:"save password",onClick:e(b,i,s,o,a,c),children:"save"}),h==="cannot save without name!"&&jsxRuntimeExports.jsx("span",{children:h})||h==="name already taken!"&&jsxRuntimeExports.jsx("span",{children:h})]})]})}SavePassword.propTypes;function App$d(){const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState("There is no password to remember! Please generate one"),[a,c]=reactExports.useState({isCheckedLowerCha:!0,isCheckedUpperCha:!0,isCheckedNumber:!0,isCheckedSymbols:!1}),[h,g]=reactExports.useState(6),[d,b]=reactExports.useState([]),[_,j]=reactExports.useState("");reactExports.useEffect(()=>{const pt=_e("PASS");pt&&b(pt)},[]);const $=(pt,yt)=>{localStorage.setItem(pt,JSON.stringify(yt))},_e=pt=>{const yt=localStorage.getItem(pt);if(yt!==null)return JSON.parse(yt)},et=(pt,yt)=>pt.filter(gt=>gt.name===yt),tt=(pt,yt,gt,xt,wt,vt)=>()=>{const ft=wt(gt,pt);if(pt.length!==0){if(ft.length>0){vt("name already taken!");return}b(lt=>{const dt=[...lt,{name:pt,pass:yt}];return console.log(dt),xt("PASS",dt),dt})}else{vt("cannot save without name!");return}},st=pt=>yt=>{c(gt=>({...gt,[pt]:yt.target.checked}))},nt={lower:()=>String.fromCharCode(Math.floor(Math.random()*26)+97),upper:()=>String.fromCharCode(Math.floor(Math.random()*26)+65),number:()=>Math.floor(Math.random()*10),symbolCha:()=>{const pt=["!","@","#","$","%","^","&","*","(",")","_","+","-","=","/","|"],yt=Math.floor(Math.random()*pt.length);return pt[yt]}},rt=pt=>{const yt=pt.split("");for(let gt=yt.length-1;gt>0;gt--){const xt=Math.floor(Math.random()*gt+1);[yt[gt],yt[xt]]=[yt[xt],yt[gt]]}return yt.join("")},it=(pt,yt)=>{const gt=pt.split("");let xt="";gt.map(wt=>{yt[wt]?xt+=` ${yt[wt]}`:xt+=` ${wt}`}),o(xt.trim())},ot=(pt,yt,gt,xt,wt)=>()=>{let vt="";const{isCheckedLowerCha:ft,isCheckedUpperCha:lt,isCheckedNumber:dt,isCheckedSymbols:bt}=pt,at=ft+lt+dt+bt,ct=[{lower:ft},{upper:lt},{number:dt},{symbolCha:bt}].filter(mt=>Object.values(mt)[0]===!0);if(at===0)return"";for(let mt=0;mt{const jt=Object.keys(Et)[0];vt+=gt[jt]()});vt=rt(vt).slice(0,yt),e(vt),xt(vt,wt)},ut=pt=>{pt.preventDefault(),i!==""&&navigator.clipboard.writeText(i)},ht=pt=>{j(pt),setTimeout(()=>{j("")},1e3)};return jsxRuntimeExports.jsxs("div",{className:styles$s.App,children:[jsxRuntimeExports.jsxs("div",{className:styles$s.main_section,children:[jsxRuntimeExports.jsx(Form,{handleChange:st,isChecked:a,passwordLength:h,setPasswordLength:g}),jsxRuntimeExports.jsx(GeneratePass,{generatedPassword:i,handleCopyText:ut,notificationMessage:_,showTextNotification:ht}),jsxRuntimeExports.jsxs("div",{className:styles$s.third_section,children:[jsxRuntimeExports.jsx("label",{children:"Password remember shortcut: "}),jsxRuntimeExports.jsx("p",{children:s})]}),jsxRuntimeExports.jsx(GeneratePassAndCopyBtn,{ALPHABET_WORDS,PasswordToRemember:it,handleCopyText:ut,isChecked:a,notificationMessage:_,passwordGenerate:ot,passwordLength:h,randomPassword:nt,showTextNotification:ht}),jsxRuntimeExports.jsx(SavePassword,{checkPasswordNameExit:et,generatedPassword:i,handleSavePasswordAndName:tt,notificationMessage:_,saveNameAndPass:d,setLocalStorage:$,showTextNotification:ht})]}),jsxRuntimeExports.jsxs("div",{className:styles$s.sixth_section,children:[jsxRuntimeExports.jsx("h2",{className:styles$s.second_header,children:"All your saved password"}),jsxRuntimeExports.jsx(PasswordTable,{saveNameAndPass:d})]})]})}const main$2="_main_3eouk_1",indicators="_indicators_3eouk_6",active="_active_3eouk_14",progressContainer="_progressContainer_3eouk_17",progressBar="_progressBar_3eouk_25",styles$r={main:main$2,indicators,active,progressContainer,progressBar},usePasswordStrength=()=>{const[i,e]=reactExports.useState(""),s=/\d/,o=/[A-Z]/,a=/[a-z]/,c=/[^A-Za-z0-9]/,h=$=>$>8?"Strong":$>5?"Medium":"Weak",g=$=>{let _e=0;return $.length>3&&(_e=Math.min(6,Math.floor($.length/3)),_e+=+s.test($)+ +o.test($)+ +a.test($)+ +c.test($)),_e},d=$=>{const _e=$.target.value;e(_e)},b=g(i),_=h(b),j={lc:a.test(i),uc:o.test(i),num:s.test(i),sym:c.test(i)};return[i,_,b,j,d]},PasswordStrength=()=>{const[i,e,s,o,a]=usePasswordStrength();return jsxRuntimeExports.jsxs("div",{className:styles$r.main,children:[jsxRuntimeExports.jsx("input",{type:"text",id:"password",min:"8",max:"32",autoFocus:!0,autoComplete:"off",placeholder:"Enter the password",value:i,onChange:a}),jsxRuntimeExports.jsxs("div",{className:styles$r.indicators,children:[jsxRuntimeExports.jsx("span",{className:o.lc?styles$r.active:"",children:"Lowercase"}),jsxRuntimeExports.jsx("span",{className:o.uc?styles$r.active:"",children:"Uppercase"}),jsxRuntimeExports.jsx("span",{className:o.num?styles$r.active:"",children:"Number"}),jsxRuntimeExports.jsx("span",{className:o.sym?styles$r.active:"",children:"Symbols"})]}),jsxRuntimeExports.jsx("div",{className:styles$r.progressContainer,children:jsxRuntimeExports.jsx("div",{className:styles$r.progressBar,style:{width:`${s*10}%`,backgroundColor:s>5?s>8?"green":"orange":"red"}})}),jsxRuntimeExports.jsxs("p",{children:["Password has ",jsxRuntimeExports.jsx("strong",{children:i.length})," chars"]}),jsxRuntimeExports.jsxs("p",{children:["Your password is ",jsxRuntimeExports.jsx("strong",{children:e})]})]})},App$c="_App_wgvvi_1",controls$1="_controls_wgvvi_26",slidecontainer="_slidecontainer_wgvvi_47",styles$q={App:App$c,"bg-progress":"_bg-progress_wgvvi_9","fg-progress":"_fg-progress_wgvvi_18",controls:controls$1,slidecontainer},Controls=({startProgress:i,pauseProgress:e,stopProgress:s,handleSliderChange:o,speed:a})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:styles$q.controls,children:[jsxRuntimeExports.jsx("button",{onClick:i,children:"Start"}),jsxRuntimeExports.jsx("button",{onClick:e,children:"Pause"}),jsxRuntimeExports.jsx("button",{onClick:s,children:"Reset"})]}),jsxRuntimeExports.jsxs("div",{className:styles$q.slidecontainer,children:[jsxRuntimeExports.jsx("input",{type:"range",min:a.min,max:a.max,defaultValue:a.min,className:"slider",id:"myRange",onChange:o}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("label",{htmlFor:"myRange",children:jsxRuntimeExports.jsxs("small",{children:["Speed: ",a.value," "]})})})]})]}),totalTime=10*1e3,timeInterval=1e3,totalCycles=totalTime/timeInterval,ProgressBar=()=>{const[i,e]=reactExports.useState(0),[s,o]=reactExports.useState({max:10,min:1,value:1,label:"speed"}),a=reactExports.useRef(null),c=()=>{clearInterval(a.current),i>=totalCycles&&e(0),a.current=setInterval(()=>{e(_=>_>=totalCycles?(clearInterval(a),_):_+1)},timeInterval/s.value)};reactExports.useEffect(()=>{c()},[s.value]);const h=()=>{clearInterval(a.current)},g=()=>{h(),e(0)},d=_=>{o(j=>({...j,value:_.target.value}))},b=()=>i/totalCycles*100;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:styles$q["bg-progress"],children:jsxRuntimeExports.jsx("div",{className:styles$q["fg-progress"],style:{transform:`translateX(${-100+b()}%)`}})}),jsxRuntimeExports.jsx(Controls,{startProgress:c,stopProgress:g,pauseProgress:h,speed:s,handleSliderChange:d})]})},App$b=()=>jsxRuntimeExports.jsx("div",{className:styles$q.App,children:jsxRuntimeExports.jsx(ProgressBar,{})});var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(i,e,s)=>e in i?__defProp(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s,__spreadValues=(i,e)=>{for(var s in e||(e={}))__hasOwnProp.call(e,s)&&__defNormalProp(i,s,e[s]);if(__getOwnPropSymbols)for(var s of __getOwnPropSymbols(e))__propIsEnum.call(e,s)&&__defNormalProp(i,s,e[s]);return i},__objRest=(i,e)=>{var s={};for(var o in i)__hasOwnProp.call(i,o)&&e.indexOf(o)<0&&(s[o]=i[o]);if(i!=null&&__getOwnPropSymbols)for(var o of __getOwnPropSymbols(i))e.indexOf(o)<0&&__propIsEnum.call(i,o)&&(s[o]=i[o]);return s};/** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT - */var qrcodegen;(i=>{const e=class{constructor(d,b,_,j){if(this.version=d,this.errorCorrectionLevel=b,this.modules=[],this.isFunction=[],de.MAX_VERSION)throw new RangeError("Version value out of range");if(j<-1||j>7)throw new RangeError("Mask value out of range");this.size=d*4+17;let $=[];for(let et=0;et7)throw new RangeError("Invalid value");let et,tt;for(et=_;;et++){const it=e.getNumDataCodewords(et,b)*8,ot=g.getTotalBits(d,et);if(ot<=it){tt=ot;break}if(et>=j)throw new RangeError("Data too long")}for(const it of[e.Ecc.MEDIUM,e.Ecc.QUARTILE,e.Ecc.HIGH])_e&&tt<=e.getNumDataCodewords(et,it)*8&&(b=it);let st=[];for(const it of d){o(it.mode.modeBits,4,st),o(it.numChars,it.mode.numCharCountBits(et),st);for(const ot of it.getData())st.push(ot)}c(st.length==tt);const rt=e.getNumDataCodewords(et,b)*8;c(st.length<=rt),o(0,Math.min(4,rt-st.length),st),o(0,(8-st.length%8)%8,st),c(st.length%8==0);for(let it=236;st.lengthnt[ot>>>3]|=it<<7-(ot&7)),new e(et,b,nt,$)}getModule(d,b){return 0<=d&&d>>9)*1335;const j=(b<<10|_)^21522;c(j>>>15==0);for(let $=0;$<=5;$++)this.setFunctionModule(8,$,a(j,$));this.setFunctionModule(8,7,a(j,6)),this.setFunctionModule(8,8,a(j,7)),this.setFunctionModule(7,8,a(j,8));for(let $=9;$<15;$++)this.setFunctionModule(14-$,8,a(j,$));for(let $=0;$<8;$++)this.setFunctionModule(this.size-1-$,8,a(j,$));for(let $=8;$<15;$++)this.setFunctionModule(8,this.size-15+$,a(j,$));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let d=this.version;for(let _=0;_<12;_++)d=d<<1^(d>>>11)*7973;const b=this.version<<12|d;c(b>>>18==0);for(let _=0;_<18;_++){const j=a(b,_),$=this.size-11+_%3,_e=Math.floor(_/3);this.setFunctionModule($,_e,j),this.setFunctionModule(_e,$,j)}}drawFinderPattern(d,b){for(let _=-4;_<=4;_++)for(let j=-4;j<=4;j++){const $=Math.max(Math.abs(j),Math.abs(_)),_e=d+j,et=b+_;0<=_e&&_e{(it!=tt-$||ut>=et)&&nt.push(ot[it])});return c(nt.length==_e),nt}drawCodewords(d){if(d.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let b=0;for(let _=this.size-1;_>=1;_-=2){_==6&&(_=5);for(let j=0;j>>3],7-(b&7)),b++)}}c(b==d.length*8)}applyMask(d){if(d<0||d>7)throw new RangeError("Mask value out of range");for(let b=0;b5&&d++):(this.finderPenaltyAddHistory(et,tt),_e||(d+=this.finderPenaltyCountPatterns(tt)*e.PENALTY_N3),_e=this.modules[$][st],et=1);d+=this.finderPenaltyTerminateAndCount(_e,et,tt)*e.PENALTY_N3}for(let $=0;$5&&d++):(this.finderPenaltyAddHistory(et,tt),_e||(d+=this.finderPenaltyCountPatterns(tt)*e.PENALTY_N3),_e=this.modules[st][$],et=1);d+=this.finderPenaltyTerminateAndCount(_e,et,tt)*e.PENALTY_N3}for(let $=0;$_e+(et?1:0),b);const _=this.size*this.size,j=Math.ceil(Math.abs(b*20-_*10)/_)-1;return c(0<=j&&j<=9),d+=j*e.PENALTY_N4,c(0<=d&&d<=2568888),d}getAlignmentPatternPositions(){if(this.version==1)return[];{const d=Math.floor(this.version/7)+2,b=this.version==32?26:Math.ceil((this.version*4+4)/(d*2-2))*2;let _=[6];for(let j=this.size-7;_.lengthe.MAX_VERSION)throw new RangeError("Version number out of range");let b=(16*d+128)*d+64;if(d>=2){const _=Math.floor(d/7)+2;b-=(25*_-10)*_-55,d>=7&&(b-=36)}return c(208<=b&&b<=29648),b}static getNumDataCodewords(d,b){return Math.floor(e.getNumRawDataModules(d)/8)-e.ECC_CODEWORDS_PER_BLOCK[b.ordinal][d]*e.NUM_ERROR_CORRECTION_BLOCKS[b.ordinal][d]}static reedSolomonComputeDivisor(d){if(d<1||d>255)throw new RangeError("Degree out of range");let b=[];for(let j=0;j0);for(const j of d){const $=j^_.shift();_.push(0),b.forEach((_e,et)=>_[et]^=e.reedSolomonMultiply(_e,$))}return _}static reedSolomonMultiply(d,b){if(d>>>8||b>>>8)throw new RangeError("Byte out of range");let _=0;for(let j=7;j>=0;j--)_=_<<1^(_>>>7)*285,_^=(b>>>j&1)*d;return c(_>>>8==0),_}finderPenaltyCountPatterns(d){const b=d[1];c(b<=this.size*3);const _=b>0&&d[2]==b&&d[3]==b*3&&d[4]==b&&d[5]==b;return(_&&d[0]>=b*4&&d[6]>=b?1:0)+(_&&d[6]>=b*4&&d[0]>=b?1:0)}finderPenaltyTerminateAndCount(d,b,_){return d&&(this.finderPenaltyAddHistory(b,_),b=0),b+=this.size,this.finderPenaltyAddHistory(b,_),this.finderPenaltyCountPatterns(_)}finderPenaltyAddHistory(d,b){b[0]==0&&(d+=this.size),b.pop(),b.unshift(d)}};let s=e;s.MIN_VERSION=1,s.MAX_VERSION=40,s.PENALTY_N1=3,s.PENALTY_N2=3,s.PENALTY_N3=40,s.PENALTY_N4=10,s.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],s.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],i.QrCode=s;function o(d,b,_){if(b<0||b>31||d>>>b)throw new RangeError("Value out of range");for(let j=b-1;j>=0;j--)_.push(d>>>j&1)}function a(d,b){return(d>>>b&1)!=0}function c(d){if(!d)throw new Error("Assertion error")}const h=class{constructor(d,b,_){if(this.mode=d,this.numChars=b,this.bitData=_,b<0)throw new RangeError("Invalid argument");this.bitData=_.slice()}static makeBytes(d){let b=[];for(const _ of d)o(_,8,b);return new h(h.Mode.BYTE,d.length,b)}static makeNumeric(d){if(!h.isNumeric(d))throw new RangeError("String contains non-numeric characters");let b=[];for(let _=0;_=1<<$)return 1/0;_+=4+$+j.bitData.length}return _}static toUtf8ByteArray(d){d=encodeURI(d);let b=[];for(let _=0;_{(e=>{const s=class{constructor(a,c){this.ordinal=a,this.formatBits=c}};let o=s;o.LOW=new s(0,1),o.MEDIUM=new s(1,0),o.QUARTILE=new s(2,3),o.HIGH=new s(3,2),e.Ecc=o})(i.QrCode||(i.QrCode={}))})(qrcodegen||(qrcodegen={}));(i=>{(e=>{const s=class{constructor(a,c){this.modeBits=a,this.numBitsCharCount=c}numCharCountBits(a){return this.numBitsCharCount[Math.floor((a+7)/17)]}};let o=s;o.NUMERIC=new s(1,[10,12,14]),o.ALPHANUMERIC=new s(2,[9,11,13]),o.BYTE=new s(4,[8,16,16]),o.KANJI=new s(8,[8,10,12]),o.ECI=new s(7,[0,0,0]),e.Mode=o})(i.QrSegment||(i.QrSegment={}))})(qrcodegen||(qrcodegen={}));var qrcodegen_default=qrcodegen;/** + */var qrcodegen;(i=>{const e=class{constructor(d,b,_,j){if(this.version=d,this.errorCorrectionLevel=b,this.modules=[],this.isFunction=[],de.MAX_VERSION)throw new RangeError("Version value out of range");if(j<-1||j>7)throw new RangeError("Mask value out of range");this.size=d*4+17;let $=[];for(let et=0;et7)throw new RangeError("Invalid value");let et,tt;for(et=_;;et++){const it=e.getNumDataCodewords(et,b)*8,ot=g.getTotalBits(d,et);if(ot<=it){tt=ot;break}if(et>=j)throw new RangeError("Data too long")}for(const it of[e.Ecc.MEDIUM,e.Ecc.QUARTILE,e.Ecc.HIGH])_e&&tt<=e.getNumDataCodewords(et,it)*8&&(b=it);let st=[];for(const it of d){o(it.mode.modeBits,4,st),o(it.numChars,it.mode.numCharCountBits(et),st);for(const ot of it.getData())st.push(ot)}c(st.length==tt);const nt=e.getNumDataCodewords(et,b)*8;c(st.length<=nt),o(0,Math.min(4,nt-st.length),st),o(0,(8-st.length%8)%8,st),c(st.length%8==0);for(let it=236;st.lengthrt[ot>>>3]|=it<<7-(ot&7)),new e(et,b,rt,$)}getModule(d,b){return 0<=d&&d>>9)*1335;const j=(b<<10|_)^21522;c(j>>>15==0);for(let $=0;$<=5;$++)this.setFunctionModule(8,$,a(j,$));this.setFunctionModule(8,7,a(j,6)),this.setFunctionModule(8,8,a(j,7)),this.setFunctionModule(7,8,a(j,8));for(let $=9;$<15;$++)this.setFunctionModule(14-$,8,a(j,$));for(let $=0;$<8;$++)this.setFunctionModule(this.size-1-$,8,a(j,$));for(let $=8;$<15;$++)this.setFunctionModule(8,this.size-15+$,a(j,$));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let d=this.version;for(let _=0;_<12;_++)d=d<<1^(d>>>11)*7973;const b=this.version<<12|d;c(b>>>18==0);for(let _=0;_<18;_++){const j=a(b,_),$=this.size-11+_%3,_e=Math.floor(_/3);this.setFunctionModule($,_e,j),this.setFunctionModule(_e,$,j)}}drawFinderPattern(d,b){for(let _=-4;_<=4;_++)for(let j=-4;j<=4;j++){const $=Math.max(Math.abs(j),Math.abs(_)),_e=d+j,et=b+_;0<=_e&&_e{(it!=tt-$||ut>=et)&&rt.push(ot[it])});return c(rt.length==_e),rt}drawCodewords(d){if(d.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let b=0;for(let _=this.size-1;_>=1;_-=2){_==6&&(_=5);for(let j=0;j>>3],7-(b&7)),b++)}}c(b==d.length*8)}applyMask(d){if(d<0||d>7)throw new RangeError("Mask value out of range");for(let b=0;b5&&d++):(this.finderPenaltyAddHistory(et,tt),_e||(d+=this.finderPenaltyCountPatterns(tt)*e.PENALTY_N3),_e=this.modules[$][st],et=1);d+=this.finderPenaltyTerminateAndCount(_e,et,tt)*e.PENALTY_N3}for(let $=0;$5&&d++):(this.finderPenaltyAddHistory(et,tt),_e||(d+=this.finderPenaltyCountPatterns(tt)*e.PENALTY_N3),_e=this.modules[st][$],et=1);d+=this.finderPenaltyTerminateAndCount(_e,et,tt)*e.PENALTY_N3}for(let $=0;$_e+(et?1:0),b);const _=this.size*this.size,j=Math.ceil(Math.abs(b*20-_*10)/_)-1;return c(0<=j&&j<=9),d+=j*e.PENALTY_N4,c(0<=d&&d<=2568888),d}getAlignmentPatternPositions(){if(this.version==1)return[];{const d=Math.floor(this.version/7)+2,b=this.version==32?26:Math.ceil((this.version*4+4)/(d*2-2))*2;let _=[6];for(let j=this.size-7;_.lengthe.MAX_VERSION)throw new RangeError("Version number out of range");let b=(16*d+128)*d+64;if(d>=2){const _=Math.floor(d/7)+2;b-=(25*_-10)*_-55,d>=7&&(b-=36)}return c(208<=b&&b<=29648),b}static getNumDataCodewords(d,b){return Math.floor(e.getNumRawDataModules(d)/8)-e.ECC_CODEWORDS_PER_BLOCK[b.ordinal][d]*e.NUM_ERROR_CORRECTION_BLOCKS[b.ordinal][d]}static reedSolomonComputeDivisor(d){if(d<1||d>255)throw new RangeError("Degree out of range");let b=[];for(let j=0;j0);for(const j of d){const $=j^_.shift();_.push(0),b.forEach((_e,et)=>_[et]^=e.reedSolomonMultiply(_e,$))}return _}static reedSolomonMultiply(d,b){if(d>>>8||b>>>8)throw new RangeError("Byte out of range");let _=0;for(let j=7;j>=0;j--)_=_<<1^(_>>>7)*285,_^=(b>>>j&1)*d;return c(_>>>8==0),_}finderPenaltyCountPatterns(d){const b=d[1];c(b<=this.size*3);const _=b>0&&d[2]==b&&d[3]==b*3&&d[4]==b&&d[5]==b;return(_&&d[0]>=b*4&&d[6]>=b?1:0)+(_&&d[6]>=b*4&&d[0]>=b?1:0)}finderPenaltyTerminateAndCount(d,b,_){return d&&(this.finderPenaltyAddHistory(b,_),b=0),b+=this.size,this.finderPenaltyAddHistory(b,_),this.finderPenaltyCountPatterns(_)}finderPenaltyAddHistory(d,b){b[0]==0&&(d+=this.size),b.pop(),b.unshift(d)}};let s=e;s.MIN_VERSION=1,s.MAX_VERSION=40,s.PENALTY_N1=3,s.PENALTY_N2=3,s.PENALTY_N3=40,s.PENALTY_N4=10,s.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],s.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],i.QrCode=s;function o(d,b,_){if(b<0||b>31||d>>>b)throw new RangeError("Value out of range");for(let j=b-1;j>=0;j--)_.push(d>>>j&1)}function a(d,b){return(d>>>b&1)!=0}function c(d){if(!d)throw new Error("Assertion error")}const h=class{constructor(d,b,_){if(this.mode=d,this.numChars=b,this.bitData=_,b<0)throw new RangeError("Invalid argument");this.bitData=_.slice()}static makeBytes(d){let b=[];for(const _ of d)o(_,8,b);return new h(h.Mode.BYTE,d.length,b)}static makeNumeric(d){if(!h.isNumeric(d))throw new RangeError("String contains non-numeric characters");let b=[];for(let _=0;_=1<<$)return 1/0;_+=4+$+j.bitData.length}return _}static toUtf8ByteArray(d){d=encodeURI(d);let b=[];for(let _=0;_{(e=>{const s=class{constructor(a,c){this.ordinal=a,this.formatBits=c}};let o=s;o.LOW=new s(0,1),o.MEDIUM=new s(1,0),o.QUARTILE=new s(2,3),o.HIGH=new s(3,2),e.Ecc=o})(i.QrCode||(i.QrCode={}))})(qrcodegen||(qrcodegen={}));(i=>{(e=>{const s=class{constructor(a,c){this.modeBits=a,this.numBitsCharCount=c}numCharCountBits(a){return this.numBitsCharCount[Math.floor((a+7)/17)]}};let o=s;o.NUMERIC=new s(1,[10,12,14]),o.ALPHANUMERIC=new s(2,[9,11,13]),o.BYTE=new s(4,[8,16,16]),o.KANJI=new s(8,[8,10,12]),o.ECI=new s(7,[0,0,0]),e.Mode=o})(i.QrSegment||(i.QrSegment={}))})(qrcodegen||(qrcodegen={}));var qrcodegen_default=qrcodegen;/** * @license qrcode.react * Copyright (c) Paul O'Shannessy * SPDX-License-Identifier: ISC - */var ERROR_LEVEL_MAP={L:qrcodegen_default.QrCode.Ecc.LOW,M:qrcodegen_default.QrCode.Ecc.MEDIUM,Q:qrcodegen_default.QrCode.Ecc.QUARTILE,H:qrcodegen_default.QrCode.Ecc.HIGH},DEFAULT_SIZE=128,DEFAULT_LEVEL="L",DEFAULT_BGCOLOR="#FFFFFF",DEFAULT_FGCOLOR="#000000",DEFAULT_INCLUDEMARGIN=!1,MARGIN_SIZE=4,DEFAULT_IMG_SCALE=.1;function generatePath(i,e=0){const s=[];return i.forEach(function(o,a){let c=null;o.forEach(function(h,g){if(!h&&c!==null){s.push(`M${c+e} ${a+e}h${g-c}v1H${c+e}z`),c=null;return}if(g===o.length-1){if(!h)return;c===null?s.push(`M${g+e},${a+e} h1v1H${g+e}z`):s.push(`M${c+e},${a+e} h${g+1-c}v1H${c+e}z`);return}h&&c===null&&(c=g)})}),s.join("")}function excavateModules(i,e){return i.slice().map((s,o)=>o=e.y+e.h?s:s.map((a,c)=>c=e.x+e.w?a:!1))}function getImageSettings(i,e,s,o){if(o==null)return null;const a=s?MARGIN_SIZE:0,c=i.length+a*2,h=Math.floor(e*DEFAULT_IMG_SCALE),g=c/e,d=(o.width||h)*g,b=(o.height||h)*g,_=o.x==null?i.length/2-d/2:o.x*g,j=o.y==null?i.length/2-b/2:o.y*g;let $=null;if(o.excavate){let _e=Math.floor(_),et=Math.floor(j),tt=Math.ceil(d+_-_e),st=Math.ceil(b+j-et);$={x:_e,y:et,w:tt,h:st}}return{x:_,y:j,h:b,w:d,excavation:$}}var SUPPORTS_PATH2D=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function QRCodeCanvas(i){const e=i,{value:s,size:o=DEFAULT_SIZE,level:a=DEFAULT_LEVEL,bgColor:c=DEFAULT_BGCOLOR,fgColor:h=DEFAULT_FGCOLOR,includeMargin:g=DEFAULT_INCLUDEMARGIN,style:d,imageSettings:b}=e,_=__objRest(e,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),j=b==null?void 0:b.src,$=reactExports.useRef(null),_e=reactExports.useRef(null),[et,tt]=reactExports.useState(!1);reactExports.useEffect(()=>{if($.current!=null){const nt=$.current,it=nt.getContext("2d");if(!it)return;let ot=qrcodegen_default.QrCode.encodeText(s,ERROR_LEVEL_MAP[a]).getModules();const ut=g?MARGIN_SIZE:0,ht=ot.length+ut*2,pt=getImageSettings(ot,o,g,b),yt=_e.current,gt=pt!=null&&yt!==null&&yt.complete&&yt.naturalHeight!==0&&yt.naturalWidth!==0;gt&&pt.excavation!=null&&(ot=excavateModules(ot,pt.excavation));const xt=window.devicePixelRatio||1;nt.height=nt.width=o*xt;const wt=o/ht*xt;it.scale(wt,wt),it.fillStyle=c,it.fillRect(0,0,ht,ht),it.fillStyle=h,SUPPORTS_PATH2D?it.fill(new Path2D(generatePath(ot,ut))):ot.forEach(function(vt,ft){vt.forEach(function(lt,dt){lt&&it.fillRect(dt+ut,ft+ut,1,1)})}),gt&&it.drawImage(yt,pt.x+ut,pt.y+ut,pt.w,pt.h)}}),reactExports.useEffect(()=>{tt(!1)},[j]);const st=__spreadValues({height:o,width:o},d);let rt=null;return j!=null&&(rt=React.createElement("img",{src:j,key:j,style:{display:"none"},onLoad:()=>{tt(!0)},ref:_e})),React.createElement(React.Fragment,null,React.createElement("canvas",__spreadValues({style:st,height:o,width:o,ref:$},_)),rt)}function QRCodeSVG(i){const e=i,{value:s,size:o=DEFAULT_SIZE,level:a=DEFAULT_LEVEL,bgColor:c=DEFAULT_BGCOLOR,fgColor:h=DEFAULT_FGCOLOR,includeMargin:g=DEFAULT_INCLUDEMARGIN,imageSettings:d}=e,b=__objRest(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let _=qrcodegen_default.QrCode.encodeText(s,ERROR_LEVEL_MAP[a]).getModules();const j=g?MARGIN_SIZE:0,$=_.length+j*2,_e=getImageSettings(_,o,g,d);let et=null;d!=null&&_e!=null&&(_e.excavation!=null&&(_=excavateModules(_,_e.excavation)),et=React.createElement("image",{xlinkHref:d.src,height:_e.h,width:_e.w,x:_e.x+j,y:_e.y+j,preserveAspectRatio:"none"}));const tt=generatePath(_,j);return React.createElement("svg",__spreadValues({height:o,width:o,viewBox:`0 0 ${$} ${$}`},b),React.createElement("path",{fill:c,d:`M0,0 h${$}v${$}H0z`,shapeRendering:"crispEdges"}),React.createElement("path",{fill:h,d:tt,shapeRendering:"crispEdges"}),et)}var QRCode=i=>{const e=i,{renderAs:s}=e,o=__objRest(e,["renderAs"]);return s==="svg"?React.createElement(QRCodeSVG,__spreadValues({},o)):React.createElement(QRCodeCanvas,__spreadValues({},o))};const QRCodeGenerator$1="_QRCodeGenerator_a1hdg_2",qrcode="_qrcode_a1hdg_32",styles$o={QRCodeGenerator:QRCodeGenerator$1,"input-field":"_input-field_a1hdg_9","generate-button":"_generate-button_a1hdg_18",qrcode};function QRCodeGenerator(){const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState(""),a=h=>{e(h.target.value)},c=()=>{o(i)};return jsxRuntimeExports.jsxs("div",{className:styles$o.QRCodeGenerator,children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Enter text",onChange:a,className:styles$o["input-field"]}),jsxRuntimeExports.jsx("button",{onClick:c,className:styles$o["generate-button"],children:"Generate QR Code"}),s&&jsxRuntimeExports.jsx(QRCode,{value:s,className:styles$o.qrcode,size:256})]})}function App$9(){return jsxRuntimeExports.jsx("div",{className:"App",children:jsxRuntimeExports.jsx(QRCodeGenerator,{})})}const container$8="_container_1400s_1",quote="_quote_1400s_14",author="_author_1400s_20",styles$n={container:container$8,"input-field":"_input-field_1400s_10",quote,author,"generate-button":"_generate-button_1400s_26"},App$8=()=>{const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState(null),[a,c]=reactExports.useState(null);reactExports.useEffect(()=>{h()},[]);const h=async g=>{g&&g.preventDefault();try{const d=await axios$1.get("https://api.quotable.io/quotes/random?tags="+i);if(d.data&&d.data.length>0){const b=d.data[0].content,_=d.data[0].author;o(b),c(`- ${_}`)}else o("Sorry No Quotes Found Related to the given tags"),c(null)}catch(d){console.log(d)}};return s?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:styles$n.container,children:[jsxRuntimeExports.jsx("div",{className:styles$n.quote,children:s}),jsxRuntimeExports.jsx("div",{className:styles$n.author,children:a}),jsxRuntimeExports.jsxs("form",{onSubmit:h,children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("label",{children:"Tags: "}),jsxRuntimeExports.jsx("input",{className:styles$n["input-field"],onChange:g=>e(g.target.value),placeholder:"eg. inspiratoinal, history, technology"})]})}),jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx("button",{className:styles$n["generate-button"],type:"submit",children:"Generate"})})]})]})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Loading...."})},stack="_stack_u1sn7_1",btn_root="_btn_root_u1sn7_25",stackElement="_stackElement_u1sn7_62",styles$m={stack,"slide-in":"_slide-in_u1sn7_1",btn_root,stackElement},Stack=()=>{const[i,e]=reactExports.useState([]),[s,o]=reactExports.useState(""),[a,c]=reactExports.useState(""),h=$=>{o($.target.value)},g=()=>{if(s==""){c("Enter a value");return}if(i.length===10){c("Stack is Full");return}e([...i,s]),c(`${s} is pushed into the Stack`),o("")},d=()=>{if(!i.length){c("Stack is empty");return}e(i.slice(0,-1)),c(`${i[i.length-1]} is popped from the Stack `)},b=()=>{if(!i.length)c("Stack is empty");else{const $=i[i.length-1];c(`Last element is ${$}`)}},_=()=>{i.length===0?c("Stack is empty"):c("Stack is not empty")},j=()=>{i.length===10?c("Stack is Full"):c("Stack is not full")};return jsxRuntimeExports.jsx("div",{className:styles$m.container,children:jsxRuntimeExports.jsxs("div",{className:styles$m.stack,children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Enter a value",value:s,onChange:h,required:!0}),jsxRuntimeExports.jsxs("div",{className:styles$m.btn_root,children:[jsxRuntimeExports.jsx("button",{onClick:g,children:"Push"}),jsxRuntimeExports.jsx("button",{onClick:d,children:"Pop"}),jsxRuntimeExports.jsx("button",{onClick:b,children:"Peek"}),jsxRuntimeExports.jsx("button",{onClick:_,children:"IsEmpty"}),jsxRuntimeExports.jsx("button",{onClick:j,children:"IsFull"})]}),jsxRuntimeExports.jsx("hr",{}),jsxRuntimeExports.jsx("h3",{children:a}),i.slice().reverse().map(($,_e)=>jsxRuntimeExports.jsx("div",{className:styles$m.stackElement,children:jsxRuntimeExports.jsx("p",{children:$})},_e))]})})},App$7="_App_33mq4_1",star="_star_33mq4_6",styles$l={App:App$7,star},Star=({marked:i,starId:e})=>jsxRuntimeExports.jsx("span",{"data-star-id":e,className:styles$l.star,role:"button",children:i?"★":"☆"}),StarRating=({value:i,total:e})=>{const[s,o]=reactExports.useState(i||0),[a,c]=reactExports.useState(0),h=reactExports.useMemo(()=>Array.from({length:e}),[e]),g=_=>{var j;c(((j=_.target.dataset)==null?void 0:j.starId)??0)},d=()=>{c(0)},b=_=>{var j;o(((j=_.target.dataset)==null?void 0:j.starId)??s)};return jsxRuntimeExports.jsx("div",{onMouseLeave:d,onMouseOver:g,onClick:b,children:h.map((_,j)=>jsxRuntimeExports.jsx(Star,{marked:(a||s)>j,starId:j+1},`star_${j+1}`))})};function App$6(){return jsxRuntimeExports.jsx("div",{className:styles$l.App,children:jsxRuntimeExports.jsx(StarRating,{value:2,total:5})})}const watch="_watch_g783o_1",style={"watch-container":"_watch-container_g783o_1",watch,"watch-heading":"_watch-heading_g783o_24","watch-timer":"_watch-timer_g783o_30","watch-btn":"_watch-btn_g783o_36"},App$5=()=>{let i=reactExports.useRef(0);const e=reactExports.useRef(Date.now()),[s,o]=reactExports.useState(["00","00","00"]),[a,c]=reactExports.useState(!1),h=()=>{c(!0),i.current=requestAnimationFrame(b)},g=()=>{c(!1),cancelAnimationFrame(i.current)},d=()=>{c(!1),o(["00","00","00"]),cancelAnimationFrame(i.current),e.current=Date.now()},b=()=>{const _=Date.now()-e.current,j=Math.floor(_/1e3),$=Math.floor(j/60),_e=(_%1e3).toString().padStart(3,"0"),et=(j%60).toString().padStart(2,"0"),tt=$.toString().padStart(2,"0");o([tt,et,_e]),i.current=requestAnimationFrame(b)};return reactExports.useEffect(()=>cancelAnimationFrame(i.current),[]),jsxRuntimeExports.jsx("div",{className:style.test,children:jsxRuntimeExports.jsx("div",{className:style["watch-container"],children:jsxRuntimeExports.jsxs("div",{className:style.watch,children:[jsxRuntimeExports.jsx("div",{className:style["watch-heading"],children:"Stopwatch"}),jsxRuntimeExports.jsx("div",{className:style["watch-timer"],children:`${s[0]}:${s[1]}:${s[2]}`}),jsxRuntimeExports.jsxs("div",{className:style["watch-btn__container"],children:[jsxRuntimeExports.jsx("button",{disabled:a,onClick:h,className:style["watch-btn"],children:"Start"}),jsxRuntimeExports.jsx("button",{onClick:g,disabled:!a,className:style["watch-btn"],children:"Stop"}),jsxRuntimeExports.jsx("button",{onClick:d,disabled:!a,className:style["watch-btn"],children:"Reset"})]})]})})})},App$4="_App_1hyma_1",textarea="_textarea_1hyma_6",buttonBox="_buttonBox_1hyma_12",output="_output_1hyma_22",styles$k={App:App$4,textarea,buttonBox,output};function StringTransformers(){const[i,e]=reactExports.useState("hello world"),[s,o]=reactExports.useState(i),a=$=>{e($.target.value)},c=()=>{o(i.toLowerCase())},h=()=>{o(i.toUpperCase())},g=()=>{const _e=i.split(" ").map((et,tt)=>tt===0?et.toLowerCase():et.charAt(0).toUpperCase()+et.slice(1).toLowerCase()).join("");o(_e)},d=()=>{const _e=i.split(" ").map(et=>et.charAt(0).toUpperCase()+et.slice(1).toLowerCase()).join("");o(_e)},b=()=>{const $=i.replace(/\s+/g,"_").toLowerCase();o($)},_=()=>{const $=i.replace(/\s+/g,"-").toLowerCase();o($)},j=()=>{o(i.trim())};return jsxRuntimeExports.jsx("main",{children:jsxRuntimeExports.jsxs("div",{className:styles$k.App,children:[jsxRuntimeExports.jsx("textarea",{rows:4,className:styles$k.textarea,placeholder:"Enter a sentence...",value:i,onChange:a}),jsxRuntimeExports.jsxs("div",{className:styles$k.buttonBox,children:[jsxRuntimeExports.jsx("button",{onClick:c,children:"Lower Case"}),jsxRuntimeExports.jsx("button",{onClick:h,children:"Upper Case"}),jsxRuntimeExports.jsx("button",{onClick:g,children:"Camel Case"}),jsxRuntimeExports.jsx("button",{onClick:d,children:"Pascal Case"}),jsxRuntimeExports.jsx("button",{onClick:b,children:"Snake Case"}),jsxRuntimeExports.jsx("button",{onClick:_,children:"Kebab Case"}),jsxRuntimeExports.jsx("button",{onClick:j,children:"Trim"})]}),jsxRuntimeExports.jsxs("div",{className:styles$k.output,children:[jsxRuntimeExports.jsx("strong",{children:"Transformed String:"}),jsxRuntimeExports.jsx("p",{children:s})]})]})})}const color="_color_1bdox_1",form="_form_1bdox_9",containers="_containers_1bdox_17",container$7="_container_1bdox_17",containerColor="_containerColor_1bdox_33",numberInput="_numberInput_1bdox_42",styles$j={color,form,containers,container:container$7,containerColor,numberInput},length=9,numberList=Array.from(new Array(length),(i,e)=>e),TableColorizer=()=>{const[i,e]=reactExports.useState([]),s=reactExports.useRef(),o=a=>{a.preventDefault(),(parseInt(s.current.value)>9||parseInt(s.current.value)<0)&&alert("enter Valid Number"),i.indexOf(parseInt(s.current.value))===-1&&e(c=>[...c,parseInt(s.current.value)])};return jsxRuntimeExports.jsxs("div",{className:styles$j.color,children:[jsxRuntimeExports.jsxs("form",{className:styles$j.form,children:[jsxRuntimeExports.jsx("input",{type:"number",className:styles$j.numberInput,ref:s}),jsxRuntimeExports.jsxs("div",{className:"buttons",children:[jsxRuntimeExports.jsx("input",{type:"submit",value:"Color Me",onClick:o}),jsxRuntimeExports.jsx("button",{className:styles$j.clearBtn,onClick:()=>e([]),children:"Clear Me"})]})]}),jsxRuntimeExports.jsx("div",{className:styles$j.containers,children:numberList.map((a,c)=>jsxRuntimeExports.jsx("div",{className:i.indexOf(a+1)!==-1?styles$j.containerColor:styles$j.container,children:a+1},c))})]})};function TelephoneFormatter(){const[i,e]=reactExports.useState(""),s=a=>[...a].filter(c=>Number.isInteger(+c)&&c!==" ").join(""),o=a=>{const c=s(a.target.value);e(c.length>3?"+("+c.substring(0,3)+") - "+c.substring(3):c)};return jsxRuntimeExports.jsxs("div",{className:"container text-center",children:[jsxRuntimeExports.jsx("input",{type:"tel",id:"phone",maxLength:16,placeholder:"Mobile number",autoComplete:"off",style:{fontSize:"1.5rem",marginBottom:"1rem"},value:i,onChange:o}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("label",{htmlFor:"phone",children:"+(123) - 4567890"})})]})}const container$6="_container_12wso_1",card="_card_12wso_7",cardTitle="_cardTitle_12wso_15",formGroup="_formGroup_12wso_19",inputGroup="_inputGroup_12wso_23",input="_input_12wso_23",select="_select_12wso_33",convertButton="_convertButton_12wso_38",outputGroup="_outputGroup_12wso_42",styles$i={container:container$6,card,cardTitle,formGroup,inputGroup,input,select,convertButton,outputGroup};function TemperatureConverter(){const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState(""),[a,c]=reactExports.useState("celsius"),[h,g]=reactExports.useState("fahrenheit"),d=()=>{const b=parseFloat(i);if(isNaN(b)){o("Invalid input");return}if(a===h){o(b);return}if(a==="celsius"&&h==="fahrenheit"){let _=b*9/5+32;_%1!==0&&(_=_.toFixed(2)),o(_)}else if(a==="fahrenheit"&&h==="celsius"){let _=(b-32)*5/9;_%1!==0&&(_=_.toFixed(2)),o(_)}};return jsxRuntimeExports.jsx("div",{className:styles$i.container,children:jsxRuntimeExports.jsxs("div",{className:styles$i.card,children:[jsxRuntimeExports.jsxs("div",{className:styles$i.formGroup,children:[jsxRuntimeExports.jsx("label",{children:"Enter Temperature"}),jsxRuntimeExports.jsxs("div",{className:styles$i.inputGroup,children:[jsxRuntimeExports.jsx("input",{type:"number",className:`form-control ${styles$i.input}`,placeholder:"Enter temperature",value:i,onChange:b=>e(b.target.value)}),jsxRuntimeExports.jsxs("select",{className:`form-control ${styles$i.select}`,value:a,onChange:b=>c(b.target.value),children:[jsxRuntimeExports.jsx("option",{value:"celsius",children:"Celsius"}),jsxRuntimeExports.jsx("option",{value:"fahrenheit",children:"Fahrenheit"})]})]})]}),jsxRuntimeExports.jsx("button",{className:`btn btn-primary btn-block ${styles$i.convertButton}`,onClick:d,children:"Convert"}),jsxRuntimeExports.jsxs("div",{className:styles$i.outputGroup,children:[jsxRuntimeExports.jsxs("p",{children:["Converted Temperature: ",jsxRuntimeExports.jsx("strong",{children:s})]}),jsxRuntimeExports.jsxs("select",{className:`form-control ${styles$i.select}`,value:h,onChange:b=>g(b.target.value),children:[jsxRuntimeExports.jsx("option",{value:"celsius",children:"Celsius"}),jsxRuntimeExports.jsx("option",{value:"fahrenheit",children:"Fahrenheit"})]})]})]})})}const size=3,winningCombos=[...Array.from(new Array(size),(i,e)=>Array.from(new Array(size),(s,o)=>e*size+o)),...Array.from(new Array(size),(i,e)=>Array.from(new Array(size),(s,o)=>o*size+e)),Array.from(new Array(size),(i,e)=>e*size+e),Array.from(new Array(size),(i,e)=>e*size+size-e-1)],initialArray=Array(size*size).fill(null),container$5="_container_1rajw_1",styles$h={container:container$5,"mx-5":"_mx-5_1rajw_10","grid-container":"_grid-container_1rajw_14","grid-item":"_grid-item_1rajw_23"},App$3=()=>{const[i,e]=reactExports.useState(initialArray),[s,o]=reactExports.useState(!1),[a,c]=reactExports.useState(null),[[h,g,d],b]=reactExports.useState([0,0,0]);reactExports.useEffect(()=>{_()},[i]),reactExports.useEffect(()=>{a==="X"?b([h+1,g,d]):a==="O"?b([h,g+1,d]):a===null&&i.filter(_e=>_e===null).length===0&&b([h,g,d+1])},[a,i]);const _=()=>{o(!s);for(const _e of winningCombos){const[et,tt,st]=_e;if(i[et]!==null&&i[et]===i[tt]&&i[et]===i[st]){c(i[et]===1?"X":"O");return}}},j=_e=>{i[_e]===null&&a===null&&e(et=>{const tt=[...et];return tt[_e]=s?1:0,tt})},$=()=>{e(initialArray),c(null)};return jsxRuntimeExports.jsx("div",{className:styles$h.container,children:jsxRuntimeExports.jsxs("div",{children:["Status: ",a?`Winner ${a}`:"Playing",jsxRuntimeExports.jsxs("div",{className:styles$h.container,children:[jsxRuntimeExports.jsxs("div",{className:styles$h["mx-5"],children:[jsxRuntimeExports.jsx("div",{children:"X"}),jsxRuntimeExports.jsxs("div",{children:[h," Wins"]})]}),jsxRuntimeExports.jsxs("div",{className:styles$h["mx-5"],children:[jsxRuntimeExports.jsx("div",{children:"O"}),jsxRuntimeExports.jsxs("div",{children:[g," Wins"]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{children:"="}),jsxRuntimeExports.jsxs("div",{children:[d," Draws"]})]})]}),jsxRuntimeExports.jsx("div",{className:styles$h["grid-container"],children:i.map((_e,et)=>jsxRuntimeExports.jsx(Squares,{iTh:et,value:_e,onEntry:j},et))}),jsxRuntimeExports.jsx("button",{onClick:$,children:"Rematch"})]})})},Squares=({value:i,iTh:e,onEntry:s})=>{reactExports.useEffect(()=>{console.log({value:i})},[]);const o=()=>{s(e)};return jsxRuntimeExports.jsx("div",{className:styles$h["grid-item"],onClick:o,children:jsxRuntimeExports.jsx("div",{style:{opacity:i!==null?1:0,transition:"all .1s ease-in-out"},children:i!==null?i===1?"X":"O":"X"})})};var ToastType=(i=>(i.SUCCESS="success",i.ERROR="error",i.WARNING="warning",i.INFO="info",i))(ToastType||{}),VerticalAlignment=(i=>(i.TOP="Top",i.BOTTOM="Bottom",i))(VerticalAlignment||{}),HorizontalAlignment=(i=>(i.LEFT="Left",i.RIGHT="Right",i))(HorizontalAlignment||{});const useToast=()=>{const[i,e]=reactExports.useState(HorizontalAlignment.LEFT),[s,o]=reactExports.useState(VerticalAlignment.TOP),[a,c]=reactExports.useState(ToastType.SUCCESS),[h,g]=reactExports.useState("This is a toast message!"),[d,b]=reactExports.useState(5),[_,j]=reactExports.useState([]),$=[];return reactExports.useEffect(()=>()=>{$.forEach(tt=>clearTimeout(tt))},[]),{horizontalPosition:i,verticalPosition:s,type:a,message:h,duration:d,toastMessages:_,setHorizontalPosition:e,setVerticalPosition:o,setType:c,setMessage:g,setDuration:b,showToast:()=>{const tt={id:Date.now(),message:h,type:a};j(rt=>[...rt,tt]);const st=setTimeout(()=>{j(rt=>rt.filter(nt=>nt.id!==tt.id))},d*1e3);$.push(st)},removeToast:tt=>{j(st=>st.filter(rt=>rt.id!==tt))}}},main="_main_21evc_2",message="_message_21evc_1",toastContainer="_toastContainer_21evc_28",toast="_toast_21evc_28",success="_success_21evc_40",error="_error_21evc_43",warning="_warning_21evc_46",info$1="_info_21evc_49",remove$1="_remove_21evc_70",tcLeftTop="_tcLeftTop_21evc_75",tcLeftBottom="_tcLeftBottom_21evc_79",tcRightTop="_tcRightTop_21evc_83",tcRightBottom="_tcRightBottom_21evc_87",styles$g={main,message,toastContainer,toast,success,error,warning,info:info$1,remove:remove$1,tcLeftTop,tcLeftBottom,tcRightTop,tcRightBottom,"appear-from-left":"_appear-from-left_21evc_1","fade-out-left":"_fade-out-left_21evc_95","fade-out-to-left":"_fade-out-to-left_21evc_1","appear-from-right":"_appear-from-right_21evc_1","fade-out-right":"_fade-out-right_21evc_119"},ToastItem=({id:i,message:e,type:s,removeToast:o})=>jsxRuntimeExports.jsxs("div",{className:`${styles$g.toast} ${styles$g[s]}`,children:[jsxRuntimeExports.jsx("span",{className:"toast-message",children:e}),jsxRuntimeExports.jsx("button",{className:styles$g.remove,onClick:()=>o(i),children:"✕"})]}),Toast=()=>{const{horizontalPosition:i,verticalPosition:e,type:s,message:o,duration:a,toastMessages:c,setHorizontalPosition:h,setVerticalPosition:g,setType:d,setMessage:b,setDuration:_,showToast:j,removeToast:$}=useToast(),_e=`tc${i}${e}`;return jsxRuntimeExports.jsxs("div",{className:styles$g.main,children:[jsxRuntimeExports.jsxs("form",{children:[jsxRuntimeExports.jsxs("select",{name:"position",id:"horizontal-position",value:i,onChange:et=>h(et.target.value),children:[jsxRuntimeExports.jsx("option",{value:HorizontalAlignment.LEFT,children:"Left"}),jsxRuntimeExports.jsx("option",{value:HorizontalAlignment.RIGHT,children:"Right"})]}),jsxRuntimeExports.jsxs("select",{name:"position",id:"vertical-position",value:e,onChange:et=>g(et.target.value),children:[jsxRuntimeExports.jsx("option",{value:VerticalAlignment.TOP,children:"Top"}),jsxRuntimeExports.jsx("option",{value:VerticalAlignment.BOTTOM,children:"Bottom"})]}),jsxRuntimeExports.jsxs("select",{name:"type",id:"type",value:s,onChange:et=>d(et.target.value),children:[jsxRuntimeExports.jsx("option",{value:ToastType.SUCCESS,children:"Success"}),jsxRuntimeExports.jsx("option",{value:ToastType.ERROR,children:"Error"}),jsxRuntimeExports.jsx("option",{value:ToastType.WARNING,children:"Warning"}),jsxRuntimeExports.jsx("option",{value:ToastType.INFO,children:"Info"})]}),jsxRuntimeExports.jsx("input",{type:"text",name:"message",id:"message",placeholder:"Message",value:o,onChange:et=>b(et.target.value)}),jsxRuntimeExports.jsxs("label",{htmlFor:"duration",className:"flex",children:["Duration"," ",jsxRuntimeExports.jsx("input",{type:"range",name:"duration",id:"duration",min:"3",max:"10",value:a,onChange:et=>_(Number(et.target.value))})]}),jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary",onClick:j,children:"Show Toast"})]}),c.length>0&&jsxRuntimeExports.jsx("div",{className:`${styles$g.toastContainer} ${styles$g[_e]}`,children:c.map(et=>jsxRuntimeExports.jsx(ToastItem,{...et,removeToast:$},et.id))})]})},App$2="_App_nex6d_1",item="_item_nex6d_27",editBtn="_editBtn_nex6d_33",deleteBtn="_deleteBtn_nex6d_36",completed="_completed_nex6d_40",styles$f={App:App$2,item,editBtn,deleteBtn,completed};function List({items:i,handleEditClick:e,handleDeleteClick:s,handleCompleteClick:o}){return i.map((a,c)=>jsxRuntimeExports.jsxs("li",{className:styles$f.item,title:"Double click to mark completed",onDoubleClick:()=>o(a),children:[jsxRuntimeExports.jsx("span",{className:a.isDone?styles$f.completed:"",children:a.value}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("button",{className:styles$f.editBtn,onClick:()=>e(a),children:"Edit"}),jsxRuntimeExports.jsx("button",{className:styles$f.deleteBtn,onClick:()=>s(c),children:"Delete"})]})]},a.id))}const Todo=()=>{const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState([]),[a,c]=reactExports.useState(null),h=_e=>{o(et=>[...et,{value:_e,id:new Date().getTime(),isDone:!1}])},g=_e=>{o(et=>et.map(tt=>tt.id===a.id?{...tt,value:_e}:tt)),c(null)},d=_e=>{o(et=>et.map(tt=>tt.id===_e?{...tt,isDone:!tt.isDone}:tt))},b=({id:_e,value:et})=>{e(et),c({id:_e,value:et})},_=_e=>{(a==null?void 0:a.id)===_e&&(e(""),c(null)),o(et=>et.filter(tt=>tt.id!==_e))},j=_e=>{_e.preventDefault(),a?g(i):h(i),e("")},$=()=>{e(""),c(null)};return jsxRuntimeExports.jsxs("div",{className:styles$f.App,children:[jsxRuntimeExports.jsxs("form",{onSubmit:j,children:[jsxRuntimeExports.jsx("input",{type:"text",value:i,placeholder:"Enter your todo",onChange:_e=>e(_e.target.value)}),jsxRuntimeExports.jsx("button",{type:"submit",disabled:!i,children:a?"Update":"Submit"}),jsxRuntimeExports.jsx("button",{type:"reset",onClick:$,disabled:!(i||a),children:"Cancel"})]}),jsxRuntimeExports.jsx(List,{items:s,handleEditClick:b,handleDeleteClick:_,handleCompleteClick:d})]})},container$4="_container_10vfd_1",clockWrapper="_clockWrapper_10vfd_14",timeSection="_timeSection_10vfd_22",timeAdjustment="_timeAdjustment_10vfd_39",timeAdjustmentButton="_timeAdjustmentButton_10vfd_45",timerDisplay="_timerDisplay_10vfd_51",buttonGroup="_buttonGroup_10vfd_69",lastMinute="_lastMinute_10vfd_87",styles$e={container:container$4,clockWrapper,timeSection,timeAdjustment,timeAdjustmentButton,timerDisplay,buttonGroup,lastMinute};var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React.createContext&&React.createContext(DefaultContext),__assign$1=globalThis&&globalThis.__assign||function(){return __assign$1=Object.assign||function(i){for(var e,s=1,o=arguments.length;sst(),1e3))}function tt(){clearInterval(_),o(!1)}function st(){b(ot=>{const[ut,ht]=ot;return ht===0?ut===0?i==="session"?(e("break"),[a.time-1,59]):(e("session"),[h.time-1,59]):[ut-1,59]:[ut,ht-1]})}function rt(){s||(e("session"),c({time:5,range:[2,25]}),g({time:25,range:[5,60]}),b([25,0]))}function nt(ot){return ot>9?ot:`0${ot}`}function it(ot){const{target:ut,direction:ht}=ot.currentTarget.dataset,pt=ht==="up"?1:-1;function yt(gt,xt){const{time:wt,range:vt}=xt,ft=wt+pt;if(ft>=vt[0]&&ft<=vt[1]){const lt=ut===gt?ft:wt;return b([lt,0]),{time:lt,range:vt}}return xt}ut==="break"?c(gt=>yt("break",gt)):g(gt=>yt("session",gt))}return jsxRuntimeExports.jsx("div",{className:styles$e.container,children:jsxRuntimeExports.jsxs("div",{className:styles$e.clockWrapper,children:[jsxRuntimeExports.jsxs("div",{className:styles$e.timeSection,children:[jsxRuntimeExports.jsxs("div",{className:styles$e.timeAdjustment,children:[jsxRuntimeExports.jsx("p",{children:a.time}),jsxRuntimeExports.jsxs("div",{className:styles$e.timeAdjustmentButton,children:[jsxRuntimeExports.jsx("button",{onClick:it,"data-target":"break","data-direction":"up",children:jsxRuntimeExports.jsx(HiChevronUp,{})}),jsxRuntimeExports.jsx("button",{onClick:it,"data-target":"break","data-direction":"down",children:jsxRuntimeExports.jsx(HiChevronDown,{})})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$e.timeAdjustment,children:[jsxRuntimeExports.jsx("p",{children:h.time}),jsxRuntimeExports.jsxs("div",{className:styles$e.timeAdjustmentButton,children:[jsxRuntimeExports.jsx("button",{onClick:it,"data-target":"session","data-direction":"up",children:jsxRuntimeExports.jsx(HiChevronUp,{})}),jsxRuntimeExports.jsx("button",{onClick:it,"data-target":"session","data-direction":"down",children:jsxRuntimeExports.jsx(HiChevronDown,{})})]})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$e.timerDisplay,children:[jsxRuntimeExports.jsx("p",{children:i}),jsxRuntimeExports.jsxs("p",{className:$?styles$e.lastMinute:"",children:[jsxRuntimeExports.jsx("span",{children:nt(d[0])}),":",jsxRuntimeExports.jsx("span",{children:nt(d[1])})]}),jsxRuntimeExports.jsxs("div",{className:styles$e.buttonGroup,children:[s?jsxRuntimeExports.jsx("button",{onClick:tt,children:jsxRuntimeExports.jsx(HiPause,{size:32})}):jsxRuntimeExports.jsx("button",{onClick:et,children:jsxRuntimeExports.jsx(HiPlay,{size:32})}),jsxRuntimeExports.jsx("button",{onClick:rt,children:jsxRuntimeExports.jsx(HiRefresh,{size:32})})]})]})]})})}const container$3="_container_1twmk_2",controls="_controls_1twmk_23",highlight="_highlight_1twmk_44",highlighted="_highlighted_1twmk_61",styles$d={container:container$3,controls,"char-limit":"_char-limit_1twmk_1",highlight,"highlight-button":"_highlight-button_1twmk_54",highlighted},saveData=({text:i,wordCount:e,charCount:s,paraCount:o})=>{localStorage.setItem("text",i),localStorage.setItem("words",e),localStorage.setItem("chars",s),localStorage.setItem("paras",o)};function WordCounter(){const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState(0),[a,c]=reactExports.useState(0),[h,g]=reactExports.useState(0),d=reactExports.useRef(!0);reactExports.useEffect(()=>{j()},[]),reactExports.useEffect(()=>{if(d.current){d.current=!1;return}saveData({text:i,wordCount:s,charCount:a,paraCount:h})},[i,s,a,h]);const b=()=>{const $=i.split(/\s+/).filter(tt=>tt!==""),_e=i.length,et=i.split(` -`).filter(tt=>tt.trim()!=="").length;o($.length),c(_e),g(et)},_=()=>{e(""),o(0),c(0),g(0)},j=()=>{e(localStorage.getItem("text")||""),o(localStorage.getItem("words")||0),c(localStorage.getItem("chars")||0),g(localStorage.getItem("paras")||0)};return jsxRuntimeExports.jsxs("div",{className:styles$d.container,children:[jsxRuntimeExports.jsx("textarea",{id:"text-input",placeholder:"Enter your text here...",value:i,onChange:$=>e($.target.value)}),jsxRuntimeExports.jsxs("div",{className:styles$d.controls,children:[jsxRuntimeExports.jsxs("div",{id:"word-count",children:["Words: ",s]}),jsxRuntimeExports.jsxs("div",{id:"char-count",children:["Chars: ",a]}),jsxRuntimeExports.jsxs("div",{id:"para-count",children:["Paras: ",h]}),jsxRuntimeExports.jsx("button",{id:"count-button",onClick:b,children:"Count"}),jsxRuntimeExports.jsx("button",{id:"clear-button",onClick:_,children:"Clear"})]})]})}const sport="_sport_1g70d_1",container$2="_container_1g70d_7",header="_header_1g70d_15",question="_question_1g70d_20",answers="_answers_1g70d_26",button="_button_1g70d_33",buttonStartOver="_buttonStartOver_1g70d_48",styles$c={sport,container:container$2,header,question,answers,button,buttonStartOver},questions=["Do you enjoy team sports?","Do you like running or endurance activities?","Are you interested in individual sports?","Do you prefer indoor or outdoor sports?","Are you a fan of water sports?","Do you like racket sports?"],YourSport=()=>{const[i,e]=reactExports.useState(0),[s,o]=reactExports.useState(Array(questions.length).fill(null)),a=h=>{const g=[...s];if(g[i]=h,ih[0]==="Yes"&&h[1]==="Yes"?"Soccer":h[2]==="Yes"&&h[3]==="Indoor"?"Table Tennis":h[4]==="Yes"?"Swimming":h[5]==="Yes"?"Tennis":"Running";return jsxRuntimeExports.jsx("div",{className:styles$c.sport,children:jsxRuntimeExports.jsxs("div",{className:styles$c.container,children:[jsxRuntimeExports.jsx("h1",{className:styles$c.header,children:"Discover Your Natural Sport"}),jsxRuntimeExports.jsx("div",{className:styles$c.question,children:ia("Yes"),children:"Yes"}),jsxRuntimeExports.jsx("button",{className:styles$c.button,onClick:()=>a("No"),children:"No"})]}):jsxRuntimeExports.jsx("button",{onClick:()=>e(0),className:styles$c.buttonStartOver,children:"Start Over"})})]})})};var reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/** + */var ERROR_LEVEL_MAP={L:qrcodegen_default.QrCode.Ecc.LOW,M:qrcodegen_default.QrCode.Ecc.MEDIUM,Q:qrcodegen_default.QrCode.Ecc.QUARTILE,H:qrcodegen_default.QrCode.Ecc.HIGH},DEFAULT_SIZE=128,DEFAULT_LEVEL="L",DEFAULT_BGCOLOR="#FFFFFF",DEFAULT_FGCOLOR="#000000",DEFAULT_INCLUDEMARGIN=!1,MARGIN_SIZE=4,DEFAULT_IMG_SCALE=.1;function generatePath(i,e=0){const s=[];return i.forEach(function(o,a){let c=null;o.forEach(function(h,g){if(!h&&c!==null){s.push(`M${c+e} ${a+e}h${g-c}v1H${c+e}z`),c=null;return}if(g===o.length-1){if(!h)return;c===null?s.push(`M${g+e},${a+e} h1v1H${g+e}z`):s.push(`M${c+e},${a+e} h${g+1-c}v1H${c+e}z`);return}h&&c===null&&(c=g)})}),s.join("")}function excavateModules(i,e){return i.slice().map((s,o)=>o=e.y+e.h?s:s.map((a,c)=>c=e.x+e.w?a:!1))}function getImageSettings(i,e,s,o){if(o==null)return null;const a=s?MARGIN_SIZE:0,c=i.length+a*2,h=Math.floor(e*DEFAULT_IMG_SCALE),g=c/e,d=(o.width||h)*g,b=(o.height||h)*g,_=o.x==null?i.length/2-d/2:o.x*g,j=o.y==null?i.length/2-b/2:o.y*g;let $=null;if(o.excavate){let _e=Math.floor(_),et=Math.floor(j),tt=Math.ceil(d+_-_e),st=Math.ceil(b+j-et);$={x:_e,y:et,w:tt,h:st}}return{x:_,y:j,h:b,w:d,excavation:$}}var SUPPORTS_PATH2D=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function QRCodeCanvas(i){const e=i,{value:s,size:o=DEFAULT_SIZE,level:a=DEFAULT_LEVEL,bgColor:c=DEFAULT_BGCOLOR,fgColor:h=DEFAULT_FGCOLOR,includeMargin:g=DEFAULT_INCLUDEMARGIN,style:d,imageSettings:b}=e,_=__objRest(e,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),j=b==null?void 0:b.src,$=reactExports.useRef(null),_e=reactExports.useRef(null),[et,tt]=reactExports.useState(!1);reactExports.useEffect(()=>{if($.current!=null){const rt=$.current,it=rt.getContext("2d");if(!it)return;let ot=qrcodegen_default.QrCode.encodeText(s,ERROR_LEVEL_MAP[a]).getModules();const ut=g?MARGIN_SIZE:0,ht=ot.length+ut*2,pt=getImageSettings(ot,o,g,b),yt=_e.current,gt=pt!=null&&yt!==null&&yt.complete&&yt.naturalHeight!==0&&yt.naturalWidth!==0;gt&&pt.excavation!=null&&(ot=excavateModules(ot,pt.excavation));const xt=window.devicePixelRatio||1;rt.height=rt.width=o*xt;const wt=o/ht*xt;it.scale(wt,wt),it.fillStyle=c,it.fillRect(0,0,ht,ht),it.fillStyle=h,SUPPORTS_PATH2D?it.fill(new Path2D(generatePath(ot,ut))):ot.forEach(function(vt,ft){vt.forEach(function(lt,dt){lt&&it.fillRect(dt+ut,ft+ut,1,1)})}),gt&&it.drawImage(yt,pt.x+ut,pt.y+ut,pt.w,pt.h)}}),reactExports.useEffect(()=>{tt(!1)},[j]);const st=__spreadValues({height:o,width:o},d);let nt=null;return j!=null&&(nt=React.createElement("img",{src:j,key:j,style:{display:"none"},onLoad:()=>{tt(!0)},ref:_e})),React.createElement(React.Fragment,null,React.createElement("canvas",__spreadValues({style:st,height:o,width:o,ref:$},_)),nt)}function QRCodeSVG(i){const e=i,{value:s,size:o=DEFAULT_SIZE,level:a=DEFAULT_LEVEL,bgColor:c=DEFAULT_BGCOLOR,fgColor:h=DEFAULT_FGCOLOR,includeMargin:g=DEFAULT_INCLUDEMARGIN,imageSettings:d}=e,b=__objRest(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let _=qrcodegen_default.QrCode.encodeText(s,ERROR_LEVEL_MAP[a]).getModules();const j=g?MARGIN_SIZE:0,$=_.length+j*2,_e=getImageSettings(_,o,g,d);let et=null;d!=null&&_e!=null&&(_e.excavation!=null&&(_=excavateModules(_,_e.excavation)),et=React.createElement("image",{xlinkHref:d.src,height:_e.h,width:_e.w,x:_e.x+j,y:_e.y+j,preserveAspectRatio:"none"}));const tt=generatePath(_,j);return React.createElement("svg",__spreadValues({height:o,width:o,viewBox:`0 0 ${$} ${$}`},b),React.createElement("path",{fill:c,d:`M0,0 h${$}v${$}H0z`,shapeRendering:"crispEdges"}),React.createElement("path",{fill:h,d:tt,shapeRendering:"crispEdges"}),et)}var QRCode=i=>{const e=i,{renderAs:s}=e,o=__objRest(e,["renderAs"]);return s==="svg"?React.createElement(QRCodeSVG,__spreadValues({},o)):React.createElement(QRCodeCanvas,__spreadValues({},o))};const QRCodeGenerator$1="_QRCodeGenerator_a1hdg_2",qrcode="_qrcode_a1hdg_32",styles$p={QRCodeGenerator:QRCodeGenerator$1,"input-field":"_input-field_a1hdg_9","generate-button":"_generate-button_a1hdg_18",qrcode};function QRCodeGenerator(){const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState(""),a=h=>{e(h.target.value)},c=()=>{o(i)};return jsxRuntimeExports.jsxs("div",{className:styles$p.QRCodeGenerator,children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Enter text",onChange:a,className:styles$p["input-field"]}),jsxRuntimeExports.jsx("button",{onClick:c,className:styles$p["generate-button"],children:"Generate QR Code"}),s&&jsxRuntimeExports.jsx(QRCode,{value:s,className:styles$p.qrcode,size:256})]})}function App$a(){return jsxRuntimeExports.jsx("div",{className:"App",children:jsxRuntimeExports.jsx(QRCodeGenerator,{})})}const container$9="_container_1400s_1",quote="_quote_1400s_14",author="_author_1400s_20",styles$o={container:container$9,"input-field":"_input-field_1400s_10",quote,author,"generate-button":"_generate-button_1400s_26"},App$9=()=>{const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState(null),[a,c]=reactExports.useState(null);reactExports.useEffect(()=>{h()},[]);const h=async g=>{g&&g.preventDefault();try{const d=await axios$1.get("https://api.quotable.io/quotes/random?tags="+i);if(d.data&&d.data.length>0){const b=d.data[0].content,_=d.data[0].author;o(b),c(`- ${_}`)}else o("Sorry No Quotes Found Related to the given tags"),c(null)}catch(d){console.log(d)}};return s?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:styles$o.container,children:[jsxRuntimeExports.jsx("div",{className:styles$o.quote,children:s}),jsxRuntimeExports.jsx("div",{className:styles$o.author,children:a}),jsxRuntimeExports.jsxs("form",{onSubmit:h,children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("label",{children:"Tags: "}),jsxRuntimeExports.jsx("input",{className:styles$o["input-field"],onChange:g=>e(g.target.value),placeholder:"eg. inspiratoinal, history, technology"})]})}),jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx("button",{className:styles$o["generate-button"],type:"submit",children:"Generate"})})]})]})}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:"Loading...."})},stack="_stack_u1sn7_1",btn_root="_btn_root_u1sn7_25",stackElement="_stackElement_u1sn7_62",styles$n={stack,"slide-in":"_slide-in_u1sn7_1",btn_root,stackElement},Stack=()=>{const[i,e]=reactExports.useState([]),[s,o]=reactExports.useState(""),[a,c]=reactExports.useState(""),h=$=>{o($.target.value)},g=()=>{if(s==""){c("Enter a value");return}if(i.length===10){c("Stack is Full");return}e([...i,s]),c(`${s} is pushed into the Stack`),o("")},d=()=>{if(!i.length){c("Stack is empty");return}e(i.slice(0,-1)),c(`${i[i.length-1]} is popped from the Stack `)},b=()=>{if(!i.length)c("Stack is empty");else{const $=i[i.length-1];c(`Last element is ${$}`)}},_=()=>{i.length===0?c("Stack is empty"):c("Stack is not empty")},j=()=>{i.length===10?c("Stack is Full"):c("Stack is not full")};return jsxRuntimeExports.jsx("div",{className:styles$n.container,children:jsxRuntimeExports.jsxs("div",{className:styles$n.stack,children:[jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Enter a value",value:s,onChange:h,required:!0}),jsxRuntimeExports.jsxs("div",{className:styles$n.btn_root,children:[jsxRuntimeExports.jsx("button",{onClick:g,children:"Push"}),jsxRuntimeExports.jsx("button",{onClick:d,children:"Pop"}),jsxRuntimeExports.jsx("button",{onClick:b,children:"Peek"}),jsxRuntimeExports.jsx("button",{onClick:_,children:"IsEmpty"}),jsxRuntimeExports.jsx("button",{onClick:j,children:"IsFull"})]}),jsxRuntimeExports.jsx("hr",{}),jsxRuntimeExports.jsx("h3",{children:a}),i.slice().reverse().map(($,_e)=>jsxRuntimeExports.jsx("div",{className:styles$n.stackElement,children:jsxRuntimeExports.jsx("p",{children:$})},_e))]})})},App$8="_App_33mq4_1",star="_star_33mq4_6",styles$m={App:App$8,star},Star=({marked:i,starId:e})=>jsxRuntimeExports.jsx("span",{"data-star-id":e,className:styles$m.star,role:"button",children:i?"★":"☆"}),StarRating=({value:i,total:e})=>{const[s,o]=reactExports.useState(i||0),[a,c]=reactExports.useState(0),h=reactExports.useMemo(()=>Array.from({length:e}),[e]),g=_=>{var j;c(((j=_.target.dataset)==null?void 0:j.starId)??0)},d=()=>{c(0)},b=_=>{var j;o(((j=_.target.dataset)==null?void 0:j.starId)??s)};return jsxRuntimeExports.jsx("div",{onMouseLeave:d,onMouseOver:g,onClick:b,children:h.map((_,j)=>jsxRuntimeExports.jsx(Star,{marked:(a||s)>j,starId:j+1},`star_${j+1}`))})};function App$7(){return jsxRuntimeExports.jsx("div",{className:styles$m.App,children:jsxRuntimeExports.jsx(StarRating,{value:2,total:5})})}const watch="_watch_g783o_1",style={"watch-container":"_watch-container_g783o_1",watch,"watch-heading":"_watch-heading_g783o_24","watch-timer":"_watch-timer_g783o_30","watch-btn":"_watch-btn_g783o_36"},App$6=()=>{let i=reactExports.useRef(0);const e=reactExports.useRef(Date.now()),[s,o]=reactExports.useState(["00","00","00"]),[a,c]=reactExports.useState(!1),h=()=>{c(!0),i.current=requestAnimationFrame(b)},g=()=>{c(!1),cancelAnimationFrame(i.current)},d=()=>{c(!1),o(["00","00","00"]),cancelAnimationFrame(i.current),e.current=Date.now()},b=()=>{const _=Date.now()-e.current,j=Math.floor(_/1e3),$=Math.floor(j/60),_e=(_%1e3).toString().padStart(3,"0"),et=(j%60).toString().padStart(2,"0"),tt=$.toString().padStart(2,"0");o([tt,et,_e]),i.current=requestAnimationFrame(b)};return reactExports.useEffect(()=>cancelAnimationFrame(i.current),[]),jsxRuntimeExports.jsx("div",{className:style.test,children:jsxRuntimeExports.jsx("div",{className:style["watch-container"],children:jsxRuntimeExports.jsxs("div",{className:style.watch,children:[jsxRuntimeExports.jsx("div",{className:style["watch-heading"],children:"Stopwatch"}),jsxRuntimeExports.jsx("div",{className:style["watch-timer"],children:`${s[0]}:${s[1]}:${s[2]}`}),jsxRuntimeExports.jsxs("div",{className:style["watch-btn__container"],children:[jsxRuntimeExports.jsx("button",{disabled:a,onClick:h,className:style["watch-btn"],children:"Start"}),jsxRuntimeExports.jsx("button",{onClick:g,disabled:!a,className:style["watch-btn"],children:"Stop"}),jsxRuntimeExports.jsx("button",{onClick:d,disabled:!a,className:style["watch-btn"],children:"Reset"})]})]})})})},App$5="_App_1hyma_1",textarea="_textarea_1hyma_6",buttonBox="_buttonBox_1hyma_12",output="_output_1hyma_22",styles$l={App:App$5,textarea,buttonBox,output};function StringTransformers(){const[i,e]=reactExports.useState("hello world"),[s,o]=reactExports.useState(i),a=$=>{e($.target.value)},c=()=>{o(i.toLowerCase())},h=()=>{o(i.toUpperCase())},g=()=>{const _e=i.split(" ").map((et,tt)=>tt===0?et.toLowerCase():et.charAt(0).toUpperCase()+et.slice(1).toLowerCase()).join("");o(_e)},d=()=>{const _e=i.split(" ").map(et=>et.charAt(0).toUpperCase()+et.slice(1).toLowerCase()).join("");o(_e)},b=()=>{const $=i.replace(/\s+/g,"_").toLowerCase();o($)},_=()=>{const $=i.replace(/\s+/g,"-").toLowerCase();o($)},j=()=>{o(i.trim())};return jsxRuntimeExports.jsx("main",{children:jsxRuntimeExports.jsxs("div",{className:styles$l.App,children:[jsxRuntimeExports.jsx("textarea",{rows:4,className:styles$l.textarea,placeholder:"Enter a sentence...",value:i,onChange:a}),jsxRuntimeExports.jsxs("div",{className:styles$l.buttonBox,children:[jsxRuntimeExports.jsx("button",{onClick:c,children:"Lower Case"}),jsxRuntimeExports.jsx("button",{onClick:h,children:"Upper Case"}),jsxRuntimeExports.jsx("button",{onClick:g,children:"Camel Case"}),jsxRuntimeExports.jsx("button",{onClick:d,children:"Pascal Case"}),jsxRuntimeExports.jsx("button",{onClick:b,children:"Snake Case"}),jsxRuntimeExports.jsx("button",{onClick:_,children:"Kebab Case"}),jsxRuntimeExports.jsx("button",{onClick:j,children:"Trim"})]}),jsxRuntimeExports.jsxs("div",{className:styles$l.output,children:[jsxRuntimeExports.jsx("strong",{children:"Transformed String:"}),jsxRuntimeExports.jsx("p",{children:s})]})]})})}const color="_color_1bdox_1",form="_form_1bdox_9",containers="_containers_1bdox_17",container$8="_container_1bdox_17",containerColor="_containerColor_1bdox_33",numberInput="_numberInput_1bdox_42",styles$k={color,form,containers,container:container$8,containerColor,numberInput},length=9,numberList=Array.from(new Array(length),(i,e)=>e),TableColorizer=()=>{const[i,e]=reactExports.useState([]),s=reactExports.useRef(),o=a=>{a.preventDefault(),(parseInt(s.current.value)>9||parseInt(s.current.value)<0)&&alert("enter Valid Number"),i.indexOf(parseInt(s.current.value))===-1&&e(c=>[...c,parseInt(s.current.value)])};return jsxRuntimeExports.jsxs("div",{className:styles$k.color,children:[jsxRuntimeExports.jsxs("form",{className:styles$k.form,children:[jsxRuntimeExports.jsx("input",{type:"number",className:styles$k.numberInput,ref:s}),jsxRuntimeExports.jsxs("div",{className:"buttons",children:[jsxRuntimeExports.jsx("input",{type:"submit",value:"Color Me",onClick:o}),jsxRuntimeExports.jsx("button",{className:styles$k.clearBtn,onClick:()=>e([]),children:"Clear Me"})]})]}),jsxRuntimeExports.jsx("div",{className:styles$k.containers,children:numberList.map((a,c)=>jsxRuntimeExports.jsx("div",{className:i.indexOf(a+1)!==-1?styles$k.containerColor:styles$k.container,children:a+1},c))})]})};function TelephoneFormatter(){const[i,e]=reactExports.useState(""),s=a=>[...a].filter(c=>Number.isInteger(+c)&&c!==" ").join(""),o=a=>{const c=s(a.target.value);e(c.length>3?"+("+c.substring(0,3)+") - "+c.substring(3):c)};return jsxRuntimeExports.jsxs("div",{className:"container text-center",children:[jsxRuntimeExports.jsx("input",{type:"tel",id:"phone",maxLength:16,placeholder:"Mobile number",autoComplete:"off",style:{fontSize:"1.5rem",marginBottom:"1rem"},value:i,onChange:o}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("label",{htmlFor:"phone",children:"+(123) - 4567890"})})]})}const container$7="_container_12wso_1",card="_card_12wso_7",cardTitle="_cardTitle_12wso_15",formGroup="_formGroup_12wso_19",inputGroup="_inputGroup_12wso_23",input="_input_12wso_23",select$1="_select_12wso_33",convertButton="_convertButton_12wso_38",outputGroup="_outputGroup_12wso_42",styles$j={container:container$7,card,cardTitle,formGroup,inputGroup,input,select:select$1,convertButton,outputGroup};function TemperatureConverter(){const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState(""),[a,c]=reactExports.useState("celsius"),[h,g]=reactExports.useState("fahrenheit"),d=()=>{const b=parseFloat(i);if(isNaN(b)){o("Invalid input");return}if(a===h){o(b);return}if(a==="celsius"&&h==="fahrenheit"){let _=b*9/5+32;_%1!==0&&(_=_.toFixed(2)),o(_)}else if(a==="fahrenheit"&&h==="celsius"){let _=(b-32)*5/9;_%1!==0&&(_=_.toFixed(2)),o(_)}};return jsxRuntimeExports.jsx("div",{className:styles$j.container,children:jsxRuntimeExports.jsxs("div",{className:styles$j.card,children:[jsxRuntimeExports.jsxs("div",{className:styles$j.formGroup,children:[jsxRuntimeExports.jsx("label",{children:"Enter Temperature"}),jsxRuntimeExports.jsxs("div",{className:styles$j.inputGroup,children:[jsxRuntimeExports.jsx("input",{type:"number",className:`form-control ${styles$j.input}`,placeholder:"Enter temperature",value:i,onChange:b=>e(b.target.value)}),jsxRuntimeExports.jsxs("select",{className:`form-control ${styles$j.select}`,value:a,onChange:b=>c(b.target.value),children:[jsxRuntimeExports.jsx("option",{value:"celsius",children:"Celsius"}),jsxRuntimeExports.jsx("option",{value:"fahrenheit",children:"Fahrenheit"})]})]})]}),jsxRuntimeExports.jsx("button",{className:`btn btn-primary btn-block ${styles$j.convertButton}`,onClick:d,children:"Convert"}),jsxRuntimeExports.jsxs("div",{className:styles$j.outputGroup,children:[jsxRuntimeExports.jsxs("p",{children:["Converted Temperature: ",jsxRuntimeExports.jsx("strong",{children:s})]}),jsxRuntimeExports.jsxs("select",{className:`form-control ${styles$j.select}`,value:h,onChange:b=>g(b.target.value),children:[jsxRuntimeExports.jsx("option",{value:"celsius",children:"Celsius"}),jsxRuntimeExports.jsx("option",{value:"fahrenheit",children:"Fahrenheit"})]})]})]})})}const size=3,winningCombos=[...Array.from(new Array(size),(i,e)=>Array.from(new Array(size),(s,o)=>e*size+o)),...Array.from(new Array(size),(i,e)=>Array.from(new Array(size),(s,o)=>o*size+e)),Array.from(new Array(size),(i,e)=>e*size+e),Array.from(new Array(size),(i,e)=>e*size+size-e-1)],initialArray=Array(size*size).fill(null),container$6="_container_1rajw_1",styles$i={container:container$6,"mx-5":"_mx-5_1rajw_10","grid-container":"_grid-container_1rajw_14","grid-item":"_grid-item_1rajw_23"},App$4=()=>{const[i,e]=reactExports.useState(initialArray),[s,o]=reactExports.useState(!1),[a,c]=reactExports.useState(null),[[h,g,d],b]=reactExports.useState([0,0,0]);reactExports.useEffect(()=>{_()},[i]),reactExports.useEffect(()=>{a==="X"?b([h+1,g,d]):a==="O"?b([h,g+1,d]):a===null&&i.filter(_e=>_e===null).length===0&&b([h,g,d+1])},[a,i]);const _=()=>{o(!s);for(const _e of winningCombos){const[et,tt,st]=_e;if(i[et]!==null&&i[et]===i[tt]&&i[et]===i[st]){c(i[et]===1?"X":"O");return}}},j=_e=>{i[_e]===null&&a===null&&e(et=>{const tt=[...et];return tt[_e]=s?1:0,tt})},$=()=>{e(initialArray),c(null)};return jsxRuntimeExports.jsx("div",{className:styles$i.container,children:jsxRuntimeExports.jsxs("div",{children:["Status: ",a?`Winner ${a}`:"Playing",jsxRuntimeExports.jsxs("div",{className:styles$i.container,children:[jsxRuntimeExports.jsxs("div",{className:styles$i["mx-5"],children:[jsxRuntimeExports.jsx("div",{children:"X"}),jsxRuntimeExports.jsxs("div",{children:[h," Wins"]})]}),jsxRuntimeExports.jsxs("div",{className:styles$i["mx-5"],children:[jsxRuntimeExports.jsx("div",{children:"O"}),jsxRuntimeExports.jsxs("div",{children:[g," Wins"]})]}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{children:"="}),jsxRuntimeExports.jsxs("div",{children:[d," Draws"]})]})]}),jsxRuntimeExports.jsx("div",{className:styles$i["grid-container"],children:i.map((_e,et)=>jsxRuntimeExports.jsx(Squares,{iTh:et,value:_e,onEntry:j},et))}),jsxRuntimeExports.jsx("button",{onClick:$,children:"Rematch"})]})})},Squares=({value:i,iTh:e,onEntry:s})=>{reactExports.useEffect(()=>{console.log({value:i})},[]);const o=()=>{s(e)};return jsxRuntimeExports.jsx("div",{className:styles$i["grid-item"],onClick:o,children:jsxRuntimeExports.jsx("div",{style:{opacity:i!==null?1:0,transition:"all .1s ease-in-out"},children:i!==null?i===1?"X":"O":"X"})})};var ToastType=(i=>(i.SUCCESS="success",i.ERROR="error",i.WARNING="warning",i.INFO="info",i))(ToastType||{}),VerticalAlignment=(i=>(i.TOP="Top",i.BOTTOM="Bottom",i))(VerticalAlignment||{}),HorizontalAlignment=(i=>(i.LEFT="Left",i.RIGHT="Right",i))(HorizontalAlignment||{});const useToast=()=>{const[i,e]=reactExports.useState(HorizontalAlignment.LEFT),[s,o]=reactExports.useState(VerticalAlignment.TOP),[a,c]=reactExports.useState(ToastType.SUCCESS),[h,g]=reactExports.useState("This is a toast message!"),[d,b]=reactExports.useState(5),[_,j]=reactExports.useState([]),$=[];return reactExports.useEffect(()=>()=>{$.forEach(tt=>clearTimeout(tt))},[]),{horizontalPosition:i,verticalPosition:s,type:a,message:h,duration:d,toastMessages:_,setHorizontalPosition:e,setVerticalPosition:o,setType:c,setMessage:g,setDuration:b,showToast:()=>{const tt={id:Date.now(),message:h,type:a};j(nt=>[...nt,tt]);const st=setTimeout(()=>{j(nt=>nt.filter(rt=>rt.id!==tt.id))},d*1e3);$.push(st)},removeToast:tt=>{j(st=>st.filter(nt=>nt.id!==tt))}}},main$1="_main_21evc_2",message="_message_21evc_1",toastContainer="_toastContainer_21evc_28",toast$1="_toast_21evc_28",success="_success_21evc_40",error="_error_21evc_43",warning="_warning_21evc_46",info$1="_info_21evc_49",remove$1="_remove_21evc_70",tcLeftTop="_tcLeftTop_21evc_75",tcLeftBottom="_tcLeftBottom_21evc_79",tcRightTop="_tcRightTop_21evc_83",tcRightBottom="_tcRightBottom_21evc_87",styles$h={main:main$1,message,toastContainer,toast:toast$1,success,error,warning,info:info$1,remove:remove$1,tcLeftTop,tcLeftBottom,tcRightTop,tcRightBottom,"appear-from-left":"_appear-from-left_21evc_1","fade-out-left":"_fade-out-left_21evc_95","fade-out-to-left":"_fade-out-to-left_21evc_1","appear-from-right":"_appear-from-right_21evc_1","fade-out-right":"_fade-out-right_21evc_119"},ToastItem=({id:i,message:e,type:s,removeToast:o})=>jsxRuntimeExports.jsxs("div",{className:`${styles$h.toast} ${styles$h[s]}`,children:[jsxRuntimeExports.jsx("span",{className:"toast-message",children:e}),jsxRuntimeExports.jsx("button",{className:styles$h.remove,onClick:()=>o(i),children:"✕"})]}),Toast=()=>{const{horizontalPosition:i,verticalPosition:e,type:s,message:o,duration:a,toastMessages:c,setHorizontalPosition:h,setVerticalPosition:g,setType:d,setMessage:b,setDuration:_,showToast:j,removeToast:$}=useToast(),_e=`tc${i}${e}`;return jsxRuntimeExports.jsxs("div",{className:styles$h.main,children:[jsxRuntimeExports.jsxs("form",{children:[jsxRuntimeExports.jsxs("select",{name:"position",id:"horizontal-position",value:i,onChange:et=>h(et.target.value),children:[jsxRuntimeExports.jsx("option",{value:HorizontalAlignment.LEFT,children:"Left"}),jsxRuntimeExports.jsx("option",{value:HorizontalAlignment.RIGHT,children:"Right"})]}),jsxRuntimeExports.jsxs("select",{name:"position",id:"vertical-position",value:e,onChange:et=>g(et.target.value),children:[jsxRuntimeExports.jsx("option",{value:VerticalAlignment.TOP,children:"Top"}),jsxRuntimeExports.jsx("option",{value:VerticalAlignment.BOTTOM,children:"Bottom"})]}),jsxRuntimeExports.jsxs("select",{name:"type",id:"type",value:s,onChange:et=>d(et.target.value),children:[jsxRuntimeExports.jsx("option",{value:ToastType.SUCCESS,children:"Success"}),jsxRuntimeExports.jsx("option",{value:ToastType.ERROR,children:"Error"}),jsxRuntimeExports.jsx("option",{value:ToastType.WARNING,children:"Warning"}),jsxRuntimeExports.jsx("option",{value:ToastType.INFO,children:"Info"})]}),jsxRuntimeExports.jsx("input",{type:"text",name:"message",id:"message",placeholder:"Message",value:o,onChange:et=>b(et.target.value)}),jsxRuntimeExports.jsxs("label",{htmlFor:"duration",className:"flex",children:["Duration"," ",jsxRuntimeExports.jsx("input",{type:"range",name:"duration",id:"duration",min:"3",max:"10",value:a,onChange:et=>_(Number(et.target.value))})]}),jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary",onClick:j,children:"Show Toast"})]}),c.length>0&&jsxRuntimeExports.jsx("div",{className:`${styles$h.toastContainer} ${styles$h[_e]}`,children:c.map(et=>jsxRuntimeExports.jsx(ToastItem,{...et,removeToast:$},et.id))})]})},App$3="_App_nex6d_1",item="_item_nex6d_27",editBtn="_editBtn_nex6d_33",deleteBtn="_deleteBtn_nex6d_36",completed="_completed_nex6d_40",styles$g={App:App$3,item,editBtn,deleteBtn,completed};function List({items:i,handleEditClick:e,handleDeleteClick:s,handleCompleteClick:o}){return i.map((a,c)=>jsxRuntimeExports.jsxs("li",{className:styles$g.item,title:"Double click to mark completed",onDoubleClick:()=>o(a),children:[jsxRuntimeExports.jsx("span",{className:a.isDone?styles$g.completed:"",children:a.value}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("button",{className:styles$g.editBtn,onClick:()=>e(a),children:"Edit"}),jsxRuntimeExports.jsx("button",{className:styles$g.deleteBtn,onClick:()=>s(c),children:"Delete"})]})]},a.id))}const Todo=()=>{const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState([]),[a,c]=reactExports.useState(null),h=_e=>{o(et=>[...et,{value:_e,id:new Date().getTime(),isDone:!1}])},g=_e=>{o(et=>et.map(tt=>tt.id===a.id?{...tt,value:_e}:tt)),c(null)},d=_e=>{o(et=>et.map(tt=>tt.id===_e?{...tt,isDone:!tt.isDone}:tt))},b=({id:_e,value:et})=>{e(et),c({id:_e,value:et})},_=_e=>{(a==null?void 0:a.id)===_e&&(e(""),c(null)),o(et=>et.filter(tt=>tt.id!==_e))},j=_e=>{_e.preventDefault(),a?g(i):h(i),e("")},$=()=>{e(""),c(null)};return jsxRuntimeExports.jsxs("div",{className:styles$g.App,children:[jsxRuntimeExports.jsxs("form",{onSubmit:j,children:[jsxRuntimeExports.jsx("input",{type:"text",value:i,placeholder:"Enter your todo",onChange:_e=>e(_e.target.value)}),jsxRuntimeExports.jsx("button",{type:"submit",disabled:!i,children:a?"Update":"Submit"}),jsxRuntimeExports.jsx("button",{type:"reset",onClick:$,disabled:!(i||a),children:"Cancel"})]}),jsxRuntimeExports.jsx(List,{items:s,handleEditClick:b,handleDeleteClick:_,handleCompleteClick:d})]})},container$5="_container_10vfd_1",clockWrapper="_clockWrapper_10vfd_14",timeSection="_timeSection_10vfd_22",timeAdjustment="_timeAdjustment_10vfd_39",timeAdjustmentButton="_timeAdjustmentButton_10vfd_45",timerDisplay="_timerDisplay_10vfd_51",buttonGroup="_buttonGroup_10vfd_69",lastMinute="_lastMinute_10vfd_87",styles$f={container:container$5,clockWrapper,timeSection,timeAdjustment,timeAdjustmentButton,timerDisplay,buttonGroup,lastMinute};var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React.createContext&&React.createContext(DefaultContext),__assign$1=globalThis&&globalThis.__assign||function(){return __assign$1=Object.assign||function(i){for(var e,s=1,o=arguments.length;sst(),1e3))}function tt(){clearInterval(_),o(!1)}function st(){b(ot=>{const[ut,ht]=ot;return ht===0?ut===0?i==="session"?(e("break"),[a.time-1,59]):(e("session"),[h.time-1,59]):[ut-1,59]:[ut,ht-1]})}function nt(){s||(e("session"),c({time:5,range:[2,25]}),g({time:25,range:[5,60]}),b([25,0]))}function rt(ot){return ot>9?ot:`0${ot}`}function it(ot){const{target:ut,direction:ht}=ot.currentTarget.dataset,pt=ht==="up"?1:-1;function yt(gt,xt){const{time:wt,range:vt}=xt,ft=wt+pt;if(ft>=vt[0]&&ft<=vt[1]){const lt=ut===gt?ft:wt;return b([lt,0]),{time:lt,range:vt}}return xt}ut==="break"?c(gt=>yt("break",gt)):g(gt=>yt("session",gt))}return jsxRuntimeExports.jsx("div",{className:styles$f.container,children:jsxRuntimeExports.jsxs("div",{className:styles$f.clockWrapper,children:[jsxRuntimeExports.jsxs("div",{className:styles$f.timeSection,children:[jsxRuntimeExports.jsxs("div",{className:styles$f.timeAdjustment,children:[jsxRuntimeExports.jsx("p",{children:a.time}),jsxRuntimeExports.jsxs("div",{className:styles$f.timeAdjustmentButton,children:[jsxRuntimeExports.jsx("button",{onClick:it,"data-target":"break","data-direction":"up",children:jsxRuntimeExports.jsx(HiChevronUp,{})}),jsxRuntimeExports.jsx("button",{onClick:it,"data-target":"break","data-direction":"down",children:jsxRuntimeExports.jsx(HiChevronDown,{})})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$f.timeAdjustment,children:[jsxRuntimeExports.jsx("p",{children:h.time}),jsxRuntimeExports.jsxs("div",{className:styles$f.timeAdjustmentButton,children:[jsxRuntimeExports.jsx("button",{onClick:it,"data-target":"session","data-direction":"up",children:jsxRuntimeExports.jsx(HiChevronUp,{})}),jsxRuntimeExports.jsx("button",{onClick:it,"data-target":"session","data-direction":"down",children:jsxRuntimeExports.jsx(HiChevronDown,{})})]})]})]}),jsxRuntimeExports.jsxs("div",{className:styles$f.timerDisplay,children:[jsxRuntimeExports.jsx("p",{children:i}),jsxRuntimeExports.jsxs("p",{className:$?styles$f.lastMinute:"",children:[jsxRuntimeExports.jsx("span",{children:rt(d[0])}),":",jsxRuntimeExports.jsx("span",{children:rt(d[1])})]}),jsxRuntimeExports.jsxs("div",{className:styles$f.buttonGroup,children:[s?jsxRuntimeExports.jsx("button",{onClick:tt,children:jsxRuntimeExports.jsx(HiPause,{size:32})}):jsxRuntimeExports.jsx("button",{onClick:et,children:jsxRuntimeExports.jsx(HiPlay,{size:32})}),jsxRuntimeExports.jsx("button",{onClick:nt,children:jsxRuntimeExports.jsx(HiRefresh,{size:32})})]})]})]})})}const container$4="_container_1twmk_2",controls="_controls_1twmk_23",highlight="_highlight_1twmk_44",highlighted="_highlighted_1twmk_61",styles$e={container:container$4,controls,"char-limit":"_char-limit_1twmk_1",highlight,"highlight-button":"_highlight-button_1twmk_54",highlighted},saveData=({text:i,wordCount:e,charCount:s,paraCount:o})=>{localStorage.setItem("text",i),localStorage.setItem("words",e),localStorage.setItem("chars",s),localStorage.setItem("paras",o)};function WordCounter(){const[i,e]=reactExports.useState(""),[s,o]=reactExports.useState(0),[a,c]=reactExports.useState(0),[h,g]=reactExports.useState(0),d=reactExports.useRef(!0);reactExports.useEffect(()=>{j()},[]),reactExports.useEffect(()=>{if(d.current){d.current=!1;return}saveData({text:i,wordCount:s,charCount:a,paraCount:h})},[i,s,a,h]);const b=()=>{const $=i.split(/\s+/).filter(tt=>tt!==""),_e=i.length,et=i.split(` +`).filter(tt=>tt.trim()!=="").length;o($.length),c(_e),g(et)},_=()=>{e(""),o(0),c(0),g(0)},j=()=>{e(localStorage.getItem("text")||""),o(localStorage.getItem("words")||0),c(localStorage.getItem("chars")||0),g(localStorage.getItem("paras")||0)};return jsxRuntimeExports.jsxs("div",{className:styles$e.container,children:[jsxRuntimeExports.jsx("textarea",{id:"text-input",placeholder:"Enter your text here...",value:i,onChange:$=>e($.target.value)}),jsxRuntimeExports.jsxs("div",{className:styles$e.controls,children:[jsxRuntimeExports.jsxs("div",{id:"word-count",children:["Words: ",s]}),jsxRuntimeExports.jsxs("div",{id:"char-count",children:["Chars: ",a]}),jsxRuntimeExports.jsxs("div",{id:"para-count",children:["Paras: ",h]}),jsxRuntimeExports.jsx("button",{id:"count-button",onClick:b,children:"Count"}),jsxRuntimeExports.jsx("button",{id:"clear-button",onClick:_,children:"Clear"})]})]})}const sport="_sport_1g70d_1",container$3="_container_1g70d_7",header="_header_1g70d_15",question="_question_1g70d_20",answers="_answers_1g70d_26",button="_button_1g70d_33",buttonStartOver="_buttonStartOver_1g70d_48",styles$d={sport,container:container$3,header,question,answers,button,buttonStartOver},questions=["Do you enjoy team sports?","Do you like running or endurance activities?","Are you interested in individual sports?","Do you prefer indoor or outdoor sports?","Are you a fan of water sports?","Do you like racket sports?"],YourSport=()=>{const[i,e]=reactExports.useState(0),[s,o]=reactExports.useState(Array(questions.length).fill(null)),a=h=>{const g=[...s];if(g[i]=h,ih[0]==="Yes"&&h[1]==="Yes"?"Soccer":h[2]==="Yes"&&h[3]==="Indoor"?"Table Tennis":h[4]==="Yes"?"Swimming":h[5]==="Yes"?"Tennis":"Running";return jsxRuntimeExports.jsx("div",{className:styles$d.sport,children:jsxRuntimeExports.jsxs("div",{className:styles$d.container,children:[jsxRuntimeExports.jsx("h1",{className:styles$d.header,children:"Discover Your Natural Sport"}),jsxRuntimeExports.jsx("div",{className:styles$d.question,children:ia("Yes"),children:"Yes"}),jsxRuntimeExports.jsx("button",{className:styles$d.button,onClick:()=>a("No"),children:"No"})]}):jsxRuntimeExports.jsx("button",{onClick:()=>e(0),className:styles$d.buttonStartOver,children:"Start Over"})})]})})};var reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/** * @license React * scheduler.production.min.js * @@ -84,7 +84,7 @@ ${g.text}`)}}forceSendOnce(){this.channel.notifyForceSend()}}},3817:(i,e,s)=>{Ob * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(i){function e(ct,mt){var Et=ct.length;ct.push(mt);e:for(;0>>1,kt=ct[jt];if(0>>1;jta(At,Et))Ita(zt,At)?(ct[jt]=zt,ct[It]=Et,jt=It):(ct[jt]=At,ct[Rt]=Et,jt=Rt);else if(Ita(zt,Et))ct[jt]=zt,ct[It]=Et,jt=It;else break e}}return mt}function a(ct,mt){var Et=ct.sortIndex-mt.sortIndex;return Et!==0?Et:ct.id-mt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;i.unstable_now=function(){return c.now()}}else{var h=Date,g=h.now();i.unstable_now=function(){return h.now()-g}}var d=[],b=[],_=1,j=null,$=3,_e=!1,et=!1,tt=!1,st=typeof setTimeout=="function"?setTimeout:null,rt=typeof clearTimeout=="function"?clearTimeout:null,nt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function it(ct){for(var mt=s(b);mt!==null;){if(mt.callback===null)o(b);else if(mt.startTime<=ct)o(b),mt.sortIndex=mt.expirationTime,e(d,mt);else break;mt=s(b)}}function ot(ct){if(tt=!1,it(ct),!et)if(s(d)!==null)et=!0,bt(ut);else{var mt=s(b);mt!==null&&at(ot,mt.startTime-ct)}}function ut(ct,mt){et=!1,tt&&(tt=!1,rt(yt),yt=-1),_e=!0;var Et=$;try{for(it(mt),j=s(d);j!==null&&(!(j.expirationTime>mt)||ct&&!wt());){var jt=j.callback;if(typeof jt=="function"){j.callback=null,$=j.priorityLevel;var kt=jt(j.expirationTime<=mt);mt=i.unstable_now(),typeof kt=="function"?j.callback=kt:j===s(d)&&o(d),it(mt)}else o(d);j=s(d)}if(j!==null)var Ct=!0;else{var Rt=s(b);Rt!==null&&at(ot,Rt.startTime-mt),Ct=!1}return Ct}finally{j=null,$=Et,_e=!1}}var ht=!1,pt=null,yt=-1,gt=5,xt=-1;function wt(){return!(i.unstable_now()-xtct||125jt?(ct.sortIndex=Et,e(b,ct),s(d)===null&&ct===s(b)&&(tt?(rt(yt),yt=-1):tt=!0,at(ot,Et-jt))):(ct.sortIndex=kt,e(d,ct),et||_e||(et=!0,bt(ut))),ct},i.unstable_shouldYield=wt,i.unstable_wrapCallback=function(ct){var mt=$;return function(){var Et=$;$=mt;try{return ct.apply(this,arguments)}finally{$=Et}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + */(function(i){function e(ct,mt){var Et=ct.length;ct.push(mt);e:for(;0>>1,kt=ct[jt];if(0>>1;jta(At,Et))Ita(zt,At)?(ct[jt]=zt,ct[It]=Et,jt=It):(ct[jt]=At,ct[Rt]=Et,jt=Rt);else if(Ita(zt,Et))ct[jt]=zt,ct[It]=Et,jt=It;else break e}}return mt}function a(ct,mt){var Et=ct.sortIndex-mt.sortIndex;return Et!==0?Et:ct.id-mt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;i.unstable_now=function(){return c.now()}}else{var h=Date,g=h.now();i.unstable_now=function(){return h.now()-g}}var d=[],b=[],_=1,j=null,$=3,_e=!1,et=!1,tt=!1,st=typeof setTimeout=="function"?setTimeout:null,nt=typeof clearTimeout=="function"?clearTimeout:null,rt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function it(ct){for(var mt=s(b);mt!==null;){if(mt.callback===null)o(b);else if(mt.startTime<=ct)o(b),mt.sortIndex=mt.expirationTime,e(d,mt);else break;mt=s(b)}}function ot(ct){if(tt=!1,it(ct),!et)if(s(d)!==null)et=!0,bt(ut);else{var mt=s(b);mt!==null&&at(ot,mt.startTime-ct)}}function ut(ct,mt){et=!1,tt&&(tt=!1,nt(yt),yt=-1),_e=!0;var Et=$;try{for(it(mt),j=s(d);j!==null&&(!(j.expirationTime>mt)||ct&&!wt());){var jt=j.callback;if(typeof jt=="function"){j.callback=null,$=j.priorityLevel;var kt=jt(j.expirationTime<=mt);mt=i.unstable_now(),typeof kt=="function"?j.callback=kt:j===s(d)&&o(d),it(mt)}else o(d);j=s(d)}if(j!==null)var Ct=!0;else{var Rt=s(b);Rt!==null&&at(ot,Rt.startTime-mt),Ct=!1}return Ct}finally{j=null,$=Et,_e=!1}}var ht=!1,pt=null,yt=-1,gt=5,xt=-1;function wt(){return!(i.unstable_now()-xtct||125jt?(ct.sortIndex=Et,e(b,ct),s(d)===null&&ct===s(b)&&(tt?(nt(yt),yt=-1):tt=!0,at(ot,Et-jt))):(ct.sortIndex=kt,e(d,ct),et||_e||(et=!0,bt(ut))),ct},i.unstable_shouldYield=wt,i.unstable_wrapCallback=function(ct){var mt=$;return function(){var Et=$;$=mt;try{return ct.apply(this,arguments)}finally{$=Et}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** * @license React * react-dom.production.min.js * @@ -96,10 +96,48 @@ ${g.text}`)}}forceSendOnce(){this.channel.notifyForceSend()}}},3817:(i,e,s)=>{Ob `+La+i}var Na=!1;function Oa(i,e){if(!i||Na)return"";Na=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(b){var o=b}Reflect.construct(i,[],e)}else{try{e.call()}catch(b){o=b}i.call(e.prototype)}else{try{throw Error()}catch(b){o=b}i()}}catch(b){if(b&&o&&typeof b.stack=="string"){for(var a=b.stack.split(` `),c=o.stack.split(` `),h=a.length-1,g=c.length-1;1<=h&&0<=g&&a[h]!==c[g];)g--;for(;1<=h&&0<=g;h--,g--)if(a[h]!==c[g]){if(h!==1||g!==1)do if(h--,g--,0>g||a[h]!==c[g]){var d=` -`+a[h].replace(" at new "," at ");return i.displayName&&d.includes("")&&(d=d.replace("",i.displayName)),d}while(1<=h&&0<=g);break}}}finally{Na=!1,Error.prepareStackTrace=s}return(i=i?i.displayName||i.name:"")?Ma(i):""}function Pa(i){switch(i.tag){case 5:return Ma(i.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return i=Oa(i.type,!1),i;case 11:return i=Oa(i.type.render,!1),i;case 1:return i=Oa(i.type,!0),i;default:return""}}function Qa(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case Ca:return(i.displayName||"Context")+".Consumer";case Ba:return(i._context.displayName||"Context")+".Provider";case Da:var e=i.render;return i=i.displayName,i||(i=e.displayName||e.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Ga:return e=i.displayName||null,e!==null?e:Qa(i.type)||"Memo";case Ha:e=i._payload,i=i._init;try{return Qa(i(e))}catch{}}return null}function Ra(i){var e=i.type;switch(i.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=e.render,i=i.displayName||i.name||"",e.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(e);case 8:return e===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Sa(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ta(i){var e=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Ua(i){var e=Ta(i)?"checked":"value",s=Object.getOwnPropertyDescriptor(i.constructor.prototype,e),o=""+i[e];if(!i.hasOwnProperty(e)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var a=s.get,c=s.set;return Object.defineProperty(i,e,{configurable:!0,get:function(){return a.call(this)},set:function(h){o=""+h,c.call(this,h)}}),Object.defineProperty(i,e,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(h){o=""+h},stopTracking:function(){i._valueTracker=null,delete i[e]}}}}function Va(i){i._valueTracker||(i._valueTracker=Ua(i))}function Wa(i){if(!i)return!1;var e=i._valueTracker;if(!e)return!0;var s=e.getValue(),o="";return i&&(o=Ta(i)?i.checked?"true":"false":i.value),i=o,i!==s?(e.setValue(i),!0):!1}function Xa(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Ya(i,e){var s=e.checked;return A({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??i._wrapperState.initialChecked})}function Za(i,e){var s=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;s=Sa(e.value!=null?e.value:s),i._wrapperState={initialChecked:o,initialValue:s,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function ab(i,e){e=e.checked,e!=null&&ta(i,"checked",e,!1)}function bb(i,e){ab(i,e);var s=Sa(e.value),o=e.type;if(s!=null)o==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+s):i.value!==""+s&&(i.value=""+s);else if(o==="submit"||o==="reset"){i.removeAttribute("value");return}e.hasOwnProperty("value")?cb(i,e.type,s):e.hasOwnProperty("defaultValue")&&cb(i,e.type,Sa(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(i.defaultChecked=!!e.defaultChecked)}function db(i,e,s){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var o=e.type;if(!(o!=="submit"&&o!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+i._wrapperState.initialValue,s||e===i.value||(i.value=e),i.defaultValue=e}s=i.name,s!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,s!==""&&(i.name=s)}function cb(i,e,s){(e!=="number"||Xa(i.ownerDocument)!==i)&&(s==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+s&&(i.defaultValue=""+s))}var eb=Array.isArray;function fb(i,e,s,o){if(i=i.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=mb.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;e.firstChild;)i.appendChild(e.firstChild)}});function ob(i,e){if(e){var s=i.firstChild;if(s&&s===i.lastChild&&s.nodeType===3){s.nodeValue=e;return}}i.textContent=e}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(i){qb.forEach(function(e){e=e+i.charAt(0).toUpperCase()+i.substring(1),pb[e]=pb[i]})});function rb(i,e,s){return e==null||typeof e=="boolean"||e===""?"":s||typeof e!="number"||e===0||pb.hasOwnProperty(i)&&pb[i]?(""+e).trim():e+"px"}function sb(i,e){i=i.style;for(var s in e)if(e.hasOwnProperty(s)){var o=s.indexOf("--")===0,a=rb(s,e[s],o);s==="float"&&(s="cssFloat"),o?i.setProperty(s,a):i[s]=a}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(i,e){if(e){if(tb[i]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(p(137,i));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(p(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(p(61))}if(e.style!=null&&typeof e.style!="object")throw Error(p(62))}}function vb(i,e){if(i.indexOf("-")===-1)return typeof e.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var yb=null,zb=null,Ab=null;function Bb(i){if(i=Cb(i)){if(typeof yb!="function")throw Error(p(280));var e=i.stateNode;e&&(e=Db(e),yb(i.stateNode,i.type,e))}}function Eb(i){zb?Ab?Ab.push(i):Ab=[i]:zb=i}function Fb(){if(zb){var i=zb,e=Ab;if(Ab=zb=null,Bb(i),e)for(i=0;i>>=0,i===0?32:31-(pc(i)/qc|0)|0}var rc=64,sc=4194304;function tc(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function uc(i,e){var s=i.pendingLanes;if(s===0)return 0;var o=0,a=i.suspendedLanes,c=i.pingedLanes,h=s&268435455;if(h!==0){var g=h&~a;g!==0?o=tc(g):(c&=h,c!==0&&(o=tc(c)))}else h=s&~a,h!==0?o=tc(h):c!==0&&(o=tc(c));if(o===0)return 0;if(e!==0&&e!==o&&!(e&a)&&(a=o&-o,c=e&-e,a>=c||a===16&&(c&4194240)!==0))return e;if(o&4&&(o|=s&16),e=i.entangledLanes,e!==0)for(i=i.entanglements,e&=o;0s;s++)e.push(i);return e}function Ac(i,e,s){i.pendingLanes|=e,e!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,e=31-oc(e),i[e]=s}function Bc(i,e){var s=i.pendingLanes&~e;i.pendingLanes=e,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=e,i.mutableReadLanes&=e,i.entangledLanes&=e,e=i.entanglements;var o=i.eventTimes;for(i=i.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;function ge(i,e){switch(i){case"keyup":return $d.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var ie=!1;function je(i,e){switch(i){case"compositionend":return he(e);case"keypress":return e.which!==32?null:(fe=!0,ee);case"textInput":return i=e.data,i===ee&&fe?null:i;default:return null}}function ke(i,e){if(ie)return i==="compositionend"||!ae&&ge(i,e)?(i=nd(),md=ld=kd=null,ie=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:s,offset:e-i};i=o}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Je(s)}}function Le(i,e){return i&&e?i===e?!0:i&&i.nodeType===3?!1:e&&e.nodeType===3?Le(i,e.parentNode):"contains"in i?i.contains(e):i.compareDocumentPosition?!!(i.compareDocumentPosition(e)&16):!1:!1}function Me(){for(var i=window,e=Xa();e instanceof i.HTMLIFrameElement;){try{var s=typeof e.contentWindow.location.href=="string"}catch{s=!1}if(s)i=e.contentWindow;else break;e=Xa(i.document)}return e}function Ne(i){var e=i&&i.nodeName&&i.nodeName.toLowerCase();return e&&(e==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||e==="textarea"||i.contentEditable==="true")}function Oe(i){var e=Me(),s=i.focusedElem,o=i.selectionRange;if(e!==s&&s&&s.ownerDocument&&Le(s.ownerDocument.documentElement,s)){if(o!==null&&Ne(s)){if(e=o.start,i=o.end,i===void 0&&(i=e),"selectionStart"in s)s.selectionStart=e,s.selectionEnd=Math.min(i,s.value.length);else if(i=(e=s.ownerDocument||document)&&e.defaultView||window,i.getSelection){i=i.getSelection();var a=s.textContent.length,c=Math.min(o.start,a);o=o.end===void 0?c:Math.min(o.end,a),!i.extend&&c>o&&(a=o,o=c,c=a),a=Ke(s,c);var h=Ke(s,o);a&&h&&(i.rangeCount!==1||i.anchorNode!==a.node||i.anchorOffset!==a.offset||i.focusNode!==h.node||i.focusOffset!==h.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),i.removeAllRanges(),c>o?(i.addRange(e),i.extend(h.node,h.offset)):(e.setEnd(h.node,h.offset),i.addRange(e)))}}for(e=[],i=s;i=i.parentNode;)i.nodeType===1&&e.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(i,e,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Te||Qe==null||Qe!==Xa(o)||(o=Qe,"selectionStart"in o&&Ne(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Se&&Ie(Se,o)||(Se=o,o=oe(Re,"onSelect"),0Tf||(i.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(i,e){Tf++,Sf[Tf]=i.current,i.current=e}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(i,e){var s=i.type.contextTypes;if(!s)return Vf;var o=i.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===e)return o.__reactInternalMemoizedMaskedChildContext;var a={},c;for(c in s)a[c]=e[c];return o&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=e,i.__reactInternalMemoizedMaskedChildContext=a),a}function Zf(i){return i=i.childContextTypes,i!=null}function $f(){E(Wf),E(H)}function ag(i,e,s){if(H.current!==Vf)throw Error(p(168));G(H,e),G(Wf,s)}function bg(i,e,s){var o=i.stateNode;if(e=e.childContextTypes,typeof o.getChildContext!="function")return s;o=o.getChildContext();for(var a in o)if(!(a in e))throw Error(p(108,Ra(i)||"Unknown",a));return A({},s,o)}function cg(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,i),G(Wf,Wf.current),!0}function dg(i,e,s){var o=i.stateNode;if(!o)throw Error(p(169));s?(i=bg(i,e,Xf),o.__reactInternalMemoizedMergedChildContext=i,E(Wf),E(H),G(H,i)):E(Wf),G(Wf,s)}var eg=null,fg=!1,gg=!1;function hg(i){eg===null?eg=[i]:eg.push(i)}function ig(i){fg=!0,hg(i)}function jg(){if(!gg&&eg!==null){gg=!0;var i=0,e=C;try{var s=eg;for(C=1;i>=h,a-=h,rg=1<<32-oc(e)+a|s<yt?(gt=pt,pt=null):gt=pt.sibling;var xt=$(rt,pt,it[yt],ot);if(xt===null){pt===null&&(pt=gt);break}i&&pt&&xt.alternate===null&&e(rt,pt),nt=c(xt,nt,yt),ht===null?ut=xt:ht.sibling=xt,ht=xt,pt=gt}if(yt===it.length)return s(rt,pt),I&&tg(rt,yt),ut;if(pt===null){for(;ytyt?(gt=pt,pt=null):gt=pt.sibling;var wt=$(rt,pt,xt.value,ot);if(wt===null){pt===null&&(pt=gt);break}i&&pt&&wt.alternate===null&&e(rt,pt),nt=c(wt,nt,yt),ht===null?ut=wt:ht.sibling=wt,ht=wt,pt=gt}if(xt.done)return s(rt,pt),I&&tg(rt,yt),ut;if(pt===null){for(;!xt.done;yt++,xt=it.next())xt=j(rt,xt.value,ot),xt!==null&&(nt=c(xt,nt,yt),ht===null?ut=xt:ht.sibling=xt,ht=xt);return I&&tg(rt,yt),ut}for(pt=o(rt,pt);!xt.done;yt++,xt=it.next())xt=_e(pt,rt,yt,xt.value,ot),xt!==null&&(i&&xt.alternate!==null&&pt.delete(xt.key===null?yt:xt.key),nt=c(xt,nt,yt),ht===null?ut=xt:ht.sibling=xt,ht=xt);return i&&pt.forEach(function(vt){return e(rt,vt)}),I&&tg(rt,yt),ut}function st(rt,nt,it,ot){if(typeof it=="object"&&it!==null&&it.type===ya&&it.key===null&&(it=it.props.children),typeof it=="object"&&it!==null){switch(it.$$typeof){case va:e:{for(var ut=it.key,ht=nt;ht!==null;){if(ht.key===ut){if(ut=it.type,ut===ya){if(ht.tag===7){s(rt,ht.sibling),nt=a(ht,it.props.children),nt.return=rt,rt=nt;break e}}else if(ht.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===Ha&&uh(ut)===ht.type){s(rt,ht.sibling),nt=a(ht,it.props),nt.ref=sh(rt,ht,it),nt.return=rt,rt=nt;break e}s(rt,ht);break}else e(rt,ht);ht=ht.sibling}it.type===ya?(nt=Ah(it.props.children,rt.mode,ot,it.key),nt.return=rt,rt=nt):(ot=yh(it.type,it.key,it.props,null,rt.mode,ot),ot.ref=sh(rt,nt,it),ot.return=rt,rt=ot)}return h(rt);case wa:e:{for(ht=it.key;nt!==null;){if(nt.key===ht)if(nt.tag===4&&nt.stateNode.containerInfo===it.containerInfo&&nt.stateNode.implementation===it.implementation){s(rt,nt.sibling),nt=a(nt,it.children||[]),nt.return=rt,rt=nt;break e}else{s(rt,nt);break}else e(rt,nt);nt=nt.sibling}nt=zh(it,rt.mode,ot),nt.return=rt,rt=nt}return h(rt);case Ha:return ht=it._init,st(rt,nt,ht(it._payload),ot)}if(eb(it))return et(rt,nt,it,ot);if(Ka(it))return tt(rt,nt,it,ot);th(rt,it)}return typeof it=="string"&&it!==""||typeof it=="number"?(it=""+it,nt!==null&&nt.tag===6?(s(rt,nt.sibling),nt=a(nt,it),nt.return=rt,rt=nt):(s(rt,nt),nt=xh(it,rt.mode,ot),nt.return=rt,rt=nt),h(rt)):s(rt,nt)}return st}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(i){if(i===Dh)throw Error(p(174));return i}function Ih(i,e){switch(G(Gh,e),G(Fh,i),G(Eh,Dh),i=e.nodeType,i){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:lb(null,"");break;default:i=i===8?e.parentNode:e,e=i.namespaceURI||null,i=i.tagName,e=lb(e,i)}E(Eh),G(Eh,e)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh(i){Hh(Gh.current);var e=Hh(Eh.current),s=lb(e,i.type);e!==s&&(G(Fh,i),G(Eh,s))}function Lh(i){Fh.current===i&&(E(Eh),E(Fh))}var M=Uf(0);function Mh(i){for(var e=i;e!==null;){if(e.tag===13){var s=e.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break;for(;e.sibling===null;){if(e.return===null||e.return===i)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Nh=[];function Oh(){for(var i=0;is?s:4,i(!0);var o=Qh.transition;Qh.transition={};try{i(!1),e()}finally{C=s,Qh.transition=o}}function Fi(){return di().memoizedState}function Gi(i,e,s){var o=lh(i);if(s={lane:o,action:s,hasEagerState:!1,eagerState:null,next:null},Hi(i))Ii(e,s);else if(s=Yg(i,e,s,o),s!==null){var a=L();mh(s,i,o,a),Ji(s,e,o)}}function ri(i,e,s){var o=lh(i),a={lane:o,action:s,hasEagerState:!1,eagerState:null,next:null};if(Hi(i))Ii(e,a);else{var c=i.alternate;if(i.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var h=e.lastRenderedState,g=c(h,s);if(a.hasEagerState=!0,a.eagerState=g,He(g,h)){var d=e.interleaved;d===null?(a.next=a,Xg(e)):(a.next=d.next,d.next=a),e.interleaved=a;return}}catch{}finally{}s=Yg(i,e,a,o),s!==null&&(a=L(),mh(s,i,o,a),Ji(s,e,o))}}function Hi(i){var e=i.alternate;return i===N||e!==null&&e===N}function Ii(i,e){Th=Sh=!0;var s=i.pending;s===null?e.next=e:(e.next=s.next,s.next=e),i.pending=e}function Ji(i,e,s){if(s&4194240){var o=e.lanes;o&=i.pendingLanes,s|=o,e.lanes=s,Cc(i,s)}}var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(i,e){return ci().memoizedState=[i,e===void 0?null:e],i},useContext:Vg,useEffect:vi,useImperativeHandle:function(i,e,s){return s=s!=null?s.concat([i]):null,ti(4194308,4,yi.bind(null,e,i),s)},useLayoutEffect:function(i,e){return ti(4194308,4,i,e)},useInsertionEffect:function(i,e){return ti(4,2,i,e)},useMemo:function(i,e){var s=ci();return e=e===void 0?null:e,i=i(),s.memoizedState=[i,e],i},useReducer:function(i,e,s){var o=ci();return e=s!==void 0?s(e):e,o.memoizedState=o.baseState=e,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:e},o.queue=i,i=i.dispatch=Gi.bind(null,N,i),[o.memoizedState,i]},useRef:function(i){var e=ci();return i={current:i},e.memoizedState=i},useState:qi,useDebugValue:Ai,useDeferredValue:function(i){return ci().memoizedState=i},useTransition:function(){var i=qi(!1),e=i[0];return i=Ei.bind(null,i[1]),ci().memoizedState=i,[e,i]},useMutableSource:function(){},useSyncExternalStore:function(i,e,s){var o=N,a=ci();if(I){if(s===void 0)throw Error(p(407));s=s()}else{if(s=e(),R===null)throw Error(p(349));Rh&30||ni(o,e,s)}a.memoizedState=s;var c={value:s,getSnapshot:e};return a.queue=c,vi(ki.bind(null,o,c,i),[i]),o.flags|=2048,li(9,mi.bind(null,o,c,s,e),void 0,null),s},useId:function(){var i=ci(),e=R.identifierPrefix;if(I){var s=sg,o=rg;s=(o&~(1<<32-oc(o)-1)).toString(32)+s,e=":"+e+"R"+s,s=Uh++,0")&&(d=d.replace("",i.displayName)),d}while(1<=h&&0<=g);break}}}finally{Na=!1,Error.prepareStackTrace=s}return(i=i?i.displayName||i.name:"")?Ma(i):""}function Pa(i){switch(i.tag){case 5:return Ma(i.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return i=Oa(i.type,!1),i;case 11:return i=Oa(i.type.render,!1),i;case 1:return i=Oa(i.type,!0),i;default:return""}}function Qa(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case Ca:return(i.displayName||"Context")+".Consumer";case Ba:return(i._context.displayName||"Context")+".Provider";case Da:var e=i.render;return i=i.displayName,i||(i=e.displayName||e.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Ga:return e=i.displayName||null,e!==null?e:Qa(i.type)||"Memo";case Ha:e=i._payload,i=i._init;try{return Qa(i(e))}catch{}}return null}function Ra(i){var e=i.type;switch(i.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=e.render,i=i.displayName||i.name||"",e.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(e);case 8:return e===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Sa(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ta(i){var e=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Ua(i){var e=Ta(i)?"checked":"value",s=Object.getOwnPropertyDescriptor(i.constructor.prototype,e),o=""+i[e];if(!i.hasOwnProperty(e)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var a=s.get,c=s.set;return Object.defineProperty(i,e,{configurable:!0,get:function(){return a.call(this)},set:function(h){o=""+h,c.call(this,h)}}),Object.defineProperty(i,e,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(h){o=""+h},stopTracking:function(){i._valueTracker=null,delete i[e]}}}}function Va(i){i._valueTracker||(i._valueTracker=Ua(i))}function Wa(i){if(!i)return!1;var e=i._valueTracker;if(!e)return!0;var s=e.getValue(),o="";return i&&(o=Ta(i)?i.checked?"true":"false":i.value),i=o,i!==s?(e.setValue(i),!0):!1}function Xa(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Ya(i,e){var s=e.checked;return A({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??i._wrapperState.initialChecked})}function Za(i,e){var s=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;s=Sa(e.value!=null?e.value:s),i._wrapperState={initialChecked:o,initialValue:s,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function ab(i,e){e=e.checked,e!=null&&ta(i,"checked",e,!1)}function bb(i,e){ab(i,e);var s=Sa(e.value),o=e.type;if(s!=null)o==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+s):i.value!==""+s&&(i.value=""+s);else if(o==="submit"||o==="reset"){i.removeAttribute("value");return}e.hasOwnProperty("value")?cb(i,e.type,s):e.hasOwnProperty("defaultValue")&&cb(i,e.type,Sa(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(i.defaultChecked=!!e.defaultChecked)}function db(i,e,s){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var o=e.type;if(!(o!=="submit"&&o!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+i._wrapperState.initialValue,s||e===i.value||(i.value=e),i.defaultValue=e}s=i.name,s!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,s!==""&&(i.name=s)}function cb(i,e,s){(e!=="number"||Xa(i.ownerDocument)!==i)&&(s==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+s&&(i.defaultValue=""+s))}var eb=Array.isArray;function fb(i,e,s,o){if(i=i.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=mb.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;e.firstChild;)i.appendChild(e.firstChild)}});function ob(i,e){if(e){var s=i.firstChild;if(s&&s===i.lastChild&&s.nodeType===3){s.nodeValue=e;return}}i.textContent=e}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(i){qb.forEach(function(e){e=e+i.charAt(0).toUpperCase()+i.substring(1),pb[e]=pb[i]})});function rb(i,e,s){return e==null||typeof e=="boolean"||e===""?"":s||typeof e!="number"||e===0||pb.hasOwnProperty(i)&&pb[i]?(""+e).trim():e+"px"}function sb(i,e){i=i.style;for(var s in e)if(e.hasOwnProperty(s)){var o=s.indexOf("--")===0,a=rb(s,e[s],o);s==="float"&&(s="cssFloat"),o?i.setProperty(s,a):i[s]=a}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(i,e){if(e){if(tb[i]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(p(137,i));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(p(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(p(61))}if(e.style!=null&&typeof e.style!="object")throw Error(p(62))}}function vb(i,e){if(i.indexOf("-")===-1)return typeof e.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var yb=null,zb=null,Ab=null;function Bb(i){if(i=Cb(i)){if(typeof yb!="function")throw Error(p(280));var e=i.stateNode;e&&(e=Db(e),yb(i.stateNode,i.type,e))}}function Eb(i){zb?Ab?Ab.push(i):Ab=[i]:zb=i}function Fb(){if(zb){var i=zb,e=Ab;if(Ab=zb=null,Bb(i),e)for(i=0;i>>=0,i===0?32:31-(pc(i)/qc|0)|0}var rc=64,sc=4194304;function tc(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function uc(i,e){var s=i.pendingLanes;if(s===0)return 0;var o=0,a=i.suspendedLanes,c=i.pingedLanes,h=s&268435455;if(h!==0){var g=h&~a;g!==0?o=tc(g):(c&=h,c!==0&&(o=tc(c)))}else h=s&~a,h!==0?o=tc(h):c!==0&&(o=tc(c));if(o===0)return 0;if(e!==0&&e!==o&&!(e&a)&&(a=o&-o,c=e&-e,a>=c||a===16&&(c&4194240)!==0))return e;if(o&4&&(o|=s&16),e=i.entangledLanes,e!==0)for(i=i.entanglements,e&=o;0s;s++)e.push(i);return e}function Ac(i,e,s){i.pendingLanes|=e,e!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,e=31-oc(e),i[e]=s}function Bc(i,e){var s=i.pendingLanes&~e;i.pendingLanes=e,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=e,i.mutableReadLanes&=e,i.entangledLanes&=e,e=i.entanglements;var o=i.eventTimes;for(i=i.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;function ge(i,e){switch(i){case"keyup":return $d.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var ie=!1;function je(i,e){switch(i){case"compositionend":return he(e);case"keypress":return e.which!==32?null:(fe=!0,ee);case"textInput":return i=e.data,i===ee&&fe?null:i;default:return null}}function ke(i,e){if(ie)return i==="compositionend"||!ae&&ge(i,e)?(i=nd(),md=ld=kd=null,ie=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:s,offset:e-i};i=o}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Je(s)}}function Le(i,e){return i&&e?i===e?!0:i&&i.nodeType===3?!1:e&&e.nodeType===3?Le(i,e.parentNode):"contains"in i?i.contains(e):i.compareDocumentPosition?!!(i.compareDocumentPosition(e)&16):!1:!1}function Me(){for(var i=window,e=Xa();e instanceof i.HTMLIFrameElement;){try{var s=typeof e.contentWindow.location.href=="string"}catch{s=!1}if(s)i=e.contentWindow;else break;e=Xa(i.document)}return e}function Ne(i){var e=i&&i.nodeName&&i.nodeName.toLowerCase();return e&&(e==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||e==="textarea"||i.contentEditable==="true")}function Oe(i){var e=Me(),s=i.focusedElem,o=i.selectionRange;if(e!==s&&s&&s.ownerDocument&&Le(s.ownerDocument.documentElement,s)){if(o!==null&&Ne(s)){if(e=o.start,i=o.end,i===void 0&&(i=e),"selectionStart"in s)s.selectionStart=e,s.selectionEnd=Math.min(i,s.value.length);else if(i=(e=s.ownerDocument||document)&&e.defaultView||window,i.getSelection){i=i.getSelection();var a=s.textContent.length,c=Math.min(o.start,a);o=o.end===void 0?c:Math.min(o.end,a),!i.extend&&c>o&&(a=o,o=c,c=a),a=Ke(s,c);var h=Ke(s,o);a&&h&&(i.rangeCount!==1||i.anchorNode!==a.node||i.anchorOffset!==a.offset||i.focusNode!==h.node||i.focusOffset!==h.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),i.removeAllRanges(),c>o?(i.addRange(e),i.extend(h.node,h.offset)):(e.setEnd(h.node,h.offset),i.addRange(e)))}}for(e=[],i=s;i=i.parentNode;)i.nodeType===1&&e.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(i,e,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Te||Qe==null||Qe!==Xa(o)||(o=Qe,"selectionStart"in o&&Ne(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Se&&Ie(Se,o)||(Se=o,o=oe(Re,"onSelect"),0Tf||(i.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(i,e){Tf++,Sf[Tf]=i.current,i.current=e}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(i,e){var s=i.type.contextTypes;if(!s)return Vf;var o=i.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===e)return o.__reactInternalMemoizedMaskedChildContext;var a={},c;for(c in s)a[c]=e[c];return o&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=e,i.__reactInternalMemoizedMaskedChildContext=a),a}function Zf(i){return i=i.childContextTypes,i!=null}function $f(){E(Wf),E(H)}function ag(i,e,s){if(H.current!==Vf)throw Error(p(168));G(H,e),G(Wf,s)}function bg(i,e,s){var o=i.stateNode;if(e=e.childContextTypes,typeof o.getChildContext!="function")return s;o=o.getChildContext();for(var a in o)if(!(a in e))throw Error(p(108,Ra(i)||"Unknown",a));return A({},s,o)}function cg(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,i),G(Wf,Wf.current),!0}function dg(i,e,s){var o=i.stateNode;if(!o)throw Error(p(169));s?(i=bg(i,e,Xf),o.__reactInternalMemoizedMergedChildContext=i,E(Wf),E(H),G(H,i)):E(Wf),G(Wf,s)}var eg=null,fg=!1,gg=!1;function hg(i){eg===null?eg=[i]:eg.push(i)}function ig(i){fg=!0,hg(i)}function jg(){if(!gg&&eg!==null){gg=!0;var i=0,e=C;try{var s=eg;for(C=1;i>=h,a-=h,rg=1<<32-oc(e)+a|s<yt?(gt=pt,pt=null):gt=pt.sibling;var xt=$(nt,pt,it[yt],ot);if(xt===null){pt===null&&(pt=gt);break}i&&pt&&xt.alternate===null&&e(nt,pt),rt=c(xt,rt,yt),ht===null?ut=xt:ht.sibling=xt,ht=xt,pt=gt}if(yt===it.length)return s(nt,pt),I&&tg(nt,yt),ut;if(pt===null){for(;ytyt?(gt=pt,pt=null):gt=pt.sibling;var wt=$(nt,pt,xt.value,ot);if(wt===null){pt===null&&(pt=gt);break}i&&pt&&wt.alternate===null&&e(nt,pt),rt=c(wt,rt,yt),ht===null?ut=wt:ht.sibling=wt,ht=wt,pt=gt}if(xt.done)return s(nt,pt),I&&tg(nt,yt),ut;if(pt===null){for(;!xt.done;yt++,xt=it.next())xt=j(nt,xt.value,ot),xt!==null&&(rt=c(xt,rt,yt),ht===null?ut=xt:ht.sibling=xt,ht=xt);return I&&tg(nt,yt),ut}for(pt=o(nt,pt);!xt.done;yt++,xt=it.next())xt=_e(pt,nt,yt,xt.value,ot),xt!==null&&(i&&xt.alternate!==null&&pt.delete(xt.key===null?yt:xt.key),rt=c(xt,rt,yt),ht===null?ut=xt:ht.sibling=xt,ht=xt);return i&&pt.forEach(function(vt){return e(nt,vt)}),I&&tg(nt,yt),ut}function st(nt,rt,it,ot){if(typeof it=="object"&&it!==null&&it.type===ya&&it.key===null&&(it=it.props.children),typeof it=="object"&&it!==null){switch(it.$$typeof){case va:e:{for(var ut=it.key,ht=rt;ht!==null;){if(ht.key===ut){if(ut=it.type,ut===ya){if(ht.tag===7){s(nt,ht.sibling),rt=a(ht,it.props.children),rt.return=nt,nt=rt;break e}}else if(ht.elementType===ut||typeof ut=="object"&&ut!==null&&ut.$$typeof===Ha&&uh(ut)===ht.type){s(nt,ht.sibling),rt=a(ht,it.props),rt.ref=sh(nt,ht,it),rt.return=nt,nt=rt;break e}s(nt,ht);break}else e(nt,ht);ht=ht.sibling}it.type===ya?(rt=Ah(it.props.children,nt.mode,ot,it.key),rt.return=nt,nt=rt):(ot=yh(it.type,it.key,it.props,null,nt.mode,ot),ot.ref=sh(nt,rt,it),ot.return=nt,nt=ot)}return h(nt);case wa:e:{for(ht=it.key;rt!==null;){if(rt.key===ht)if(rt.tag===4&&rt.stateNode.containerInfo===it.containerInfo&&rt.stateNode.implementation===it.implementation){s(nt,rt.sibling),rt=a(rt,it.children||[]),rt.return=nt,nt=rt;break e}else{s(nt,rt);break}else e(nt,rt);rt=rt.sibling}rt=zh(it,nt.mode,ot),rt.return=nt,nt=rt}return h(nt);case Ha:return ht=it._init,st(nt,rt,ht(it._payload),ot)}if(eb(it))return et(nt,rt,it,ot);if(Ka(it))return tt(nt,rt,it,ot);th(nt,it)}return typeof it=="string"&&it!==""||typeof it=="number"?(it=""+it,rt!==null&&rt.tag===6?(s(nt,rt.sibling),rt=a(rt,it),rt.return=nt,nt=rt):(s(nt,rt),rt=xh(it,nt.mode,ot),rt.return=nt,nt=rt),h(nt)):s(nt,rt)}return st}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(i){if(i===Dh)throw Error(p(174));return i}function Ih(i,e){switch(G(Gh,e),G(Fh,i),G(Eh,Dh),i=e.nodeType,i){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:lb(null,"");break;default:i=i===8?e.parentNode:e,e=i.namespaceURI||null,i=i.tagName,e=lb(e,i)}E(Eh),G(Eh,e)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh(i){Hh(Gh.current);var e=Hh(Eh.current),s=lb(e,i.type);e!==s&&(G(Fh,i),G(Eh,s))}function Lh(i){Fh.current===i&&(E(Eh),E(Fh))}var M=Uf(0);function Mh(i){for(var e=i;e!==null;){if(e.tag===13){var s=e.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break;for(;e.sibling===null;){if(e.return===null||e.return===i)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Nh=[];function Oh(){for(var i=0;is?s:4,i(!0);var o=Qh.transition;Qh.transition={};try{i(!1),e()}finally{C=s,Qh.transition=o}}function Fi(){return di().memoizedState}function Gi(i,e,s){var o=lh(i);if(s={lane:o,action:s,hasEagerState:!1,eagerState:null,next:null},Hi(i))Ii(e,s);else if(s=Yg(i,e,s,o),s!==null){var a=L();mh(s,i,o,a),Ji(s,e,o)}}function ri(i,e,s){var o=lh(i),a={lane:o,action:s,hasEagerState:!1,eagerState:null,next:null};if(Hi(i))Ii(e,a);else{var c=i.alternate;if(i.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var h=e.lastRenderedState,g=c(h,s);if(a.hasEagerState=!0,a.eagerState=g,He(g,h)){var d=e.interleaved;d===null?(a.next=a,Xg(e)):(a.next=d.next,d.next=a),e.interleaved=a;return}}catch{}finally{}s=Yg(i,e,a,o),s!==null&&(a=L(),mh(s,i,o,a),Ji(s,e,o))}}function Hi(i){var e=i.alternate;return i===N||e!==null&&e===N}function Ii(i,e){Th=Sh=!0;var s=i.pending;s===null?e.next=e:(e.next=s.next,s.next=e),i.pending=e}function Ji(i,e,s){if(s&4194240){var o=e.lanes;o&=i.pendingLanes,s|=o,e.lanes=s,Cc(i,s)}}var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(i,e){return ci().memoizedState=[i,e===void 0?null:e],i},useContext:Vg,useEffect:vi,useImperativeHandle:function(i,e,s){return s=s!=null?s.concat([i]):null,ti(4194308,4,yi.bind(null,e,i),s)},useLayoutEffect:function(i,e){return ti(4194308,4,i,e)},useInsertionEffect:function(i,e){return ti(4,2,i,e)},useMemo:function(i,e){var s=ci();return e=e===void 0?null:e,i=i(),s.memoizedState=[i,e],i},useReducer:function(i,e,s){var o=ci();return e=s!==void 0?s(e):e,o.memoizedState=o.baseState=e,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:e},o.queue=i,i=i.dispatch=Gi.bind(null,N,i),[o.memoizedState,i]},useRef:function(i){var e=ci();return i={current:i},e.memoizedState=i},useState:qi,useDebugValue:Ai,useDeferredValue:function(i){return ci().memoizedState=i},useTransition:function(){var i=qi(!1),e=i[0];return i=Ei.bind(null,i[1]),ci().memoizedState=i,[e,i]},useMutableSource:function(){},useSyncExternalStore:function(i,e,s){var o=N,a=ci();if(I){if(s===void 0)throw Error(p(407));s=s()}else{if(s=e(),R===null)throw Error(p(349));Rh&30||ni(o,e,s)}a.memoizedState=s;var c={value:s,getSnapshot:e};return a.queue=c,vi(ki.bind(null,o,c,i),[i]),o.flags|=2048,li(9,mi.bind(null,o,c,s,e),void 0,null),s},useId:function(){var i=ci(),e=R.identifierPrefix;if(I){var s=sg,o=rg;s=(o&~(1<<32-oc(o)-1)).toString(32)+s,e=":"+e+"R"+s,s=Uh++,0<\/script>",i=i.removeChild(i.firstChild)):typeof o.is=="string"?i=h.createElement(s,{is:o.is}):(i=h.createElement(s),s==="select"&&(h=i,o.multiple?h.multiple=!0:o.size&&(h.size=o.size))):i=h.createElementNS(i,s),i[Of]=e,i[Pf]=o,Aj(i,e,!1,!1),e.stateNode=i;e:{switch(h=vb(s,o),s){case"dialog":D("cancel",i),D("close",i),a=o;break;case"iframe":case"object":case"embed":D("load",i),a=o;break;case"video":case"audio":for(a=0;aHj&&(e.flags|=128,o=!0,Ej(c,!1),e.lanes=4194304)}else{if(!o)if(i=Mh(h),i!==null){if(e.flags|=128,o=!0,s=i.updateQueue,s!==null&&(e.updateQueue=s,e.flags|=4),Ej(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!I)return S(e),null}else 2*B()-c.renderingStartTime>Hj&&s!==1073741824&&(e.flags|=128,o=!0,Ej(c,!1),e.lanes=4194304);c.isBackwards?(h.sibling=e.child,e.child=h):(s=c.last,s!==null?s.sibling=h:e.child=h,c.last=h)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=B(),e.sibling=null,s=M.current,G(M,o?s&1|2:s&1),e):(S(e),null);case 22:case 23:return Ij(),o=e.memoizedState!==null,i!==null&&i.memoizedState!==null!==o&&(e.flags|=8192),o&&e.mode&1?gj&1073741824&&(S(e),e.subtreeFlags&6&&(e.flags|=8192)):S(e),null;case 24:return null;case 25:return null}throw Error(p(156,e.tag))}function Jj(i,e){switch(wg(e),e.tag){case 1:return Zf(e.type)&&$f(),i=e.flags,i&65536?(e.flags=i&-65537|128,e):null;case 3:return Jh(),E(Wf),E(H),Oh(),i=e.flags,i&65536&&!(i&128)?(e.flags=i&-65537|128,e):null;case 5:return Lh(e),null;case 13:if(E(M),i=e.memoizedState,i!==null&&i.dehydrated!==null){if(e.alternate===null)throw Error(p(340));Ig()}return i=e.flags,i&65536?(e.flags=i&-65537|128,e):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(e.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Mj(i,e){var s=i.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(o){W(i,e,o)}else s.current=null}function Nj(i,e,s){try{s()}catch(o){W(i,e,o)}}var Oj=!1;function Pj(i,e){if(Cf=dd,i=Me(),Ne(i)){if("selectionStart"in i)var s={start:i.selectionStart,end:i.selectionEnd};else e:{s=(s=i.ownerDocument)&&s.defaultView||window;var o=s.getSelection&&s.getSelection();if(o&&o.rangeCount!==0){s=o.anchorNode;var a=o.anchorOffset,c=o.focusNode;o=o.focusOffset;try{s.nodeType,c.nodeType}catch{s=null;break e}var h=0,g=-1,d=-1,b=0,_=0,j=i,$=null;t:for(;;){for(var _e;j!==s||a!==0&&j.nodeType!==3||(g=h+a),j!==c||o!==0&&j.nodeType!==3||(d=h+o),j.nodeType===3&&(h+=j.nodeValue.length),(_e=j.firstChild)!==null;)$=j,j=_e;for(;;){if(j===i)break t;if($===s&&++b===a&&(g=h),$===c&&++_===o&&(d=h),(_e=j.nextSibling)!==null)break;j=$,$=j.parentNode}j=_e}s=g===-1||d===-1?null:{start:g,end:d}}else s=null}s=s||{start:0,end:0}}else s=null;for(Df={focusedElem:i,selectionRange:s},dd=!1,V=e;V!==null;)if(e=V,i=e.child,(e.subtreeFlags&1028)!==0&&i!==null)i.return=e,V=i;else for(;V!==null;){e=V;try{var et=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(et!==null){var tt=et.memoizedProps,st=et.memoizedState,rt=e.stateNode,nt=rt.getSnapshotBeforeUpdate(e.elementType===e.type?tt:Lg(e.type,tt),st);rt.__reactInternalSnapshotBeforeUpdate=nt}break;case 3:var it=e.stateNode.containerInfo;it.nodeType===1?it.textContent="":it.nodeType===9&&it.documentElement&&it.removeChild(it.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163))}}catch(ot){W(e,e.return,ot)}if(i=e.sibling,i!==null){i.return=e.return,V=i;break}V=e.return}return et=Oj,Oj=!1,et}function Qj(i,e,s){var o=e.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&i)===i){var c=a.destroy;a.destroy=void 0,c!==void 0&&Nj(e,s,c)}a=a.next}while(a!==o)}}function Rj(i,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var s=e=e.next;do{if((s.tag&i)===i){var o=s.create;s.destroy=o()}s=s.next}while(s!==e)}}function Sj(i){var e=i.ref;if(e!==null){var s=i.stateNode;switch(i.tag){case 5:i=s;break;default:i=s}typeof e=="function"?e(i):e.current=i}}function Tj(i){var e=i.alternate;e!==null&&(i.alternate=null,Tj(e)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(e=i.stateNode,e!==null&&(delete e[Of],delete e[Pf],delete e[of],delete e[Qf],delete e[Rf])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function Uj(i){return i.tag===5||i.tag===3||i.tag===4}function Vj(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Uj(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Wj(i,e,s){var o=i.tag;if(o===5||o===6)i=i.stateNode,e?s.nodeType===8?s.parentNode.insertBefore(i,e):s.insertBefore(i,e):(s.nodeType===8?(e=s.parentNode,e.insertBefore(i,s)):(e=s,e.appendChild(i)),s=s._reactRootContainer,s!=null||e.onclick!==null||(e.onclick=Bf));else if(o!==4&&(i=i.child,i!==null))for(Wj(i,e,s),i=i.sibling;i!==null;)Wj(i,e,s),i=i.sibling}function Xj(i,e,s){var o=i.tag;if(o===5||o===6)i=i.stateNode,e?s.insertBefore(i,e):s.appendChild(i);else if(o!==4&&(i=i.child,i!==null))for(Xj(i,e,s),i=i.sibling;i!==null;)Xj(i,e,s),i=i.sibling}var X=null,Yj=!1;function Zj(i,e,s){for(s=s.child;s!==null;)ak(i,e,s),s=s.sibling}function ak(i,e,s){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,s)}catch{}switch(s.tag){case 5:U||Mj(s,e);case 6:var o=X,a=Yj;X=null,Zj(i,e,s),X=o,Yj=a,X!==null&&(Yj?(i=X,s=s.stateNode,i.nodeType===8?i.parentNode.removeChild(s):i.removeChild(s)):X.removeChild(s.stateNode));break;case 18:X!==null&&(Yj?(i=X,s=s.stateNode,i.nodeType===8?Kf(i.parentNode,s):i.nodeType===1&&Kf(i,s),bd(i)):Kf(X,s.stateNode));break;case 4:o=X,a=Yj,X=s.stateNode.containerInfo,Yj=!0,Zj(i,e,s),X=o,Yj=a;break;case 0:case 11:case 14:case 15:if(!U&&(o=s.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){a=o=o.next;do{var c=a,h=c.destroy;c=c.tag,h!==void 0&&(c&2||c&4)&&Nj(s,e,h),a=a.next}while(a!==o)}Zj(i,e,s);break;case 1:if(!U&&(Mj(s,e),o=s.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=s.memoizedProps,o.state=s.memoizedState,o.componentWillUnmount()}catch(g){W(s,e,g)}Zj(i,e,s);break;case 21:Zj(i,e,s);break;case 22:s.mode&1?(U=(o=U)||s.memoizedState!==null,Zj(i,e,s),U=o):Zj(i,e,s);break;default:Zj(i,e,s)}}function bk(i){var e=i.updateQueue;if(e!==null){i.updateQueue=null;var s=i.stateNode;s===null&&(s=i.stateNode=new Lj),e.forEach(function(o){var a=ck.bind(null,i,o);s.has(o)||(s.add(o),o.then(a,a))})}}function dk(i,e){var s=e.deletions;if(s!==null)for(var o=0;oa&&(a=h),o&=~c}if(o=a,o=B()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*mk(o/1960))-o,10i?16:i,xk===null)var o=!1;else{if(i=xk,xk=null,yk=0,K&6)throw Error(p(331));var a=K;for(K|=4,V=i.current;V!==null;){var c=V,h=c.child;if(V.flags&16){var g=c.deletions;if(g!==null){for(var d=0;dB()-gk?Lk(i,0):sk|=s),Ek(i,e)}function Zk(i,e){e===0&&(i.mode&1?(e=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):e=1);var s=L();i=Zg(i,e),i!==null&&(Ac(i,e,s),Ek(i,s))}function vj(i){var e=i.memoizedState,s=0;e!==null&&(s=e.retryLane),Zk(i,s)}function ck(i,e){var s=0;switch(i.tag){case 13:var o=i.stateNode,a=i.memoizedState;a!==null&&(s=a.retryLane);break;case 19:o=i.stateNode;break;default:throw Error(p(314))}o!==null&&o.delete(e),Zk(i,s)}var Wk;Wk=function(i,e,s){if(i!==null)if(i.memoizedProps!==e.pendingProps||Wf.current)Ug=!0;else{if(!(i.lanes&s)&&!(e.flags&128))return Ug=!1,zj(i,e,s);Ug=!!(i.flags&131072)}else Ug=!1,I&&e.flags&1048576&&ug(e,ng,e.index);switch(e.lanes=0,e.tag){case 2:var o=e.type;jj(i,e),i=e.pendingProps;var a=Yf(e,H.current);Tg(e,s),a=Xh(null,e,o,i,a,s);var c=bi();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Zf(o)?(c=!0,cg(e)):c=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ah(e),a.updater=nh,e.stateNode=a,a._reactInternals=e,rh(e,o,i,s),e=kj(null,e,o,!0,c,s)):(e.tag=0,I&&c&&vg(e),Yi(null,e,a,s),e=e.child),e;case 16:o=e.elementType;e:{switch(jj(i,e),i=e.pendingProps,a=o._init,o=a(o._payload),e.type=o,a=e.tag=$k(o),i=Lg(o,i),a){case 0:e=dj(null,e,o,i,s);break e;case 1:e=ij(null,e,o,i,s);break e;case 11:e=Zi(null,e,o,i,s);break e;case 14:e=aj(null,e,o,Lg(o.type,i),s);break e}throw Error(p(306,o,""))}return e;case 0:return o=e.type,a=e.pendingProps,a=e.elementType===o?a:Lg(o,a),dj(i,e,o,a,s);case 1:return o=e.type,a=e.pendingProps,a=e.elementType===o?a:Lg(o,a),ij(i,e,o,a,s);case 3:e:{if(lj(e),i===null)throw Error(p(387));o=e.pendingProps,c=e.memoizedState,a=c.element,bh(i,e),gh(e,o,null,s);var h=e.memoizedState;if(o=h.element,c.isDehydrated)if(c={element:o,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){a=Ki(Error(p(423)),e),e=mj(i,e,o,s,a);break e}else if(o!==a){a=Ki(Error(p(424)),e),e=mj(i,e,o,s,a);break e}else for(yg=Lf(e.stateNode.containerInfo.firstChild),xg=e,I=!0,zg=null,s=Ch(e,null,o,s),e.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Ig(),o===a){e=$i(i,e,s);break e}Yi(i,e,o,s)}e=e.child}return e;case 5:return Kh(e),i===null&&Eg(e),o=e.type,a=e.pendingProps,c=i!==null?i.memoizedProps:null,h=a.children,Ef(o,a)?h=null:c!==null&&Ef(o,c)&&(e.flags|=32),hj(i,e),Yi(i,e,h,s),e.child;case 6:return i===null&&Eg(e),null;case 13:return pj(i,e,s);case 4:return Ih(e,e.stateNode.containerInfo),o=e.pendingProps,i===null?e.child=Bh(e,null,o,s):Yi(i,e,o,s),e.child;case 11:return o=e.type,a=e.pendingProps,a=e.elementType===o?a:Lg(o,a),Zi(i,e,o,a,s);case 7:return Yi(i,e,e.pendingProps,s),e.child;case 8:return Yi(i,e,e.pendingProps.children,s),e.child;case 12:return Yi(i,e,e.pendingProps.children,s),e.child;case 10:e:{if(o=e.type._context,a=e.pendingProps,c=e.memoizedProps,h=a.value,G(Mg,o._currentValue),o._currentValue=h,c!==null)if(He(c.value,h)){if(c.children===a.children&&!Wf.current){e=$i(i,e,s);break e}}else for(c=e.child,c!==null&&(c.return=e);c!==null;){var g=c.dependencies;if(g!==null){h=c.child;for(var d=g.firstContext;d!==null;){if(d.context===o){if(c.tag===1){d=ch(-1,s&-s),d.tag=2;var b=c.updateQueue;if(b!==null){b=b.shared;var _=b.pending;_===null?d.next=d:(d.next=_.next,_.next=d),b.pending=d}}c.lanes|=s,d=c.alternate,d!==null&&(d.lanes|=s),Sg(c.return,s,e),g.lanes|=s;break}d=d.next}}else if(c.tag===10)h=c.type===e.type?null:c.child;else if(c.tag===18){if(h=c.return,h===null)throw Error(p(341));h.lanes|=s,g=h.alternate,g!==null&&(g.lanes|=s),Sg(h,s,e),h=c.sibling}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===e){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return}c=h}Yi(i,e,a.children,s),e=e.child}return e;case 9:return a=e.type,o=e.pendingProps.children,Tg(e,s),a=Vg(a),o=o(a),e.flags|=1,Yi(i,e,o,s),e.child;case 14:return o=e.type,a=Lg(o,e.pendingProps),a=Lg(o.type,a),aj(i,e,o,a,s);case 15:return cj(i,e,e.type,e.pendingProps,s);case 17:return o=e.type,a=e.pendingProps,a=e.elementType===o?a:Lg(o,a),jj(i,e),e.tag=1,Zf(o)?(i=!0,cg(e)):i=!1,Tg(e,s),ph(e,o,a),rh(e,o,a,s),kj(null,e,o,!0,i,s);case 19:return yj(i,e,s);case 22:return ej(i,e,s)}throw Error(p(156,e.tag))};function Gk(i,e){return ac(i,e)}function al(i,e,s,o){this.tag=i,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(i,e,s,o){return new al(i,e,s,o)}function bj(i){return i=i.prototype,!(!i||!i.isReactComponent)}function $k(i){if(typeof i=="function")return bj(i)?1:0;if(i!=null){if(i=i.$$typeof,i===Da)return 11;if(i===Ga)return 14}return 2}function wh(i,e){var s=i.alternate;return s===null?(s=Bg(i.tag,e,i.key,i.mode),s.elementType=i.elementType,s.type=i.type,s.stateNode=i.stateNode,s.alternate=i,i.alternate=s):(s.pendingProps=e,s.type=i.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=i.flags&14680064,s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},s.sibling=i.sibling,s.index=i.index,s.ref=i.ref,s}function yh(i,e,s,o,a,c){var h=2;if(o=i,typeof i=="function")bj(i)&&(h=1);else if(typeof i=="string")h=5;else e:switch(i){case ya:return Ah(s.children,a,c,e);case za:h=8,a|=8;break;case Aa:return i=Bg(12,s,e,a|2),i.elementType=Aa,i.lanes=c,i;case Ea:return i=Bg(13,s,e,a),i.elementType=Ea,i.lanes=c,i;case Fa:return i=Bg(19,s,e,a),i.elementType=Fa,i.lanes=c,i;case Ia:return qj(s,a,c,e);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Ba:h=10;break e;case Ca:h=9;break e;case Da:h=11;break e;case Ga:h=14;break e;case Ha:h=16,o=null;break e}throw Error(p(130,i==null?i:typeof i,""))}return e=Bg(h,s,e,a),e.elementType=i,e.type=o,e.lanes=c,e}function Ah(i,e,s,o){return i=Bg(7,i,o,e),i.lanes=s,i}function qj(i,e,s,o){return i=Bg(22,i,o,e),i.elementType=Ia,i.lanes=s,i.stateNode={isHidden:!1},i}function xh(i,e,s){return i=Bg(6,i,null,e),i.lanes=s,i}function zh(i,e,s){return e=Bg(4,i.children!==null?i.children:[],i.key,e),e.lanes=s,e.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},e}function bl(i,e,s,o,a){this.tag=e,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=o,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function cl(i,e,s,o,a,c,h,g,d){return i=new bl(i,e,s,g,d),e===1?(e=1,c===!0&&(e|=8)):e=0,c=Bg(3,null,null,e),i.current=c,c.stateNode=i,c.memoizedState={element:o,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(c),i}function dl(i,e,s){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(i){console.error(i)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const openbtn="_openbtn_1gnwd_1",overlay="_overlay_1gnwd_8",modalWrapper="_modalWrapper_1gnwd_18",closebtn="_closebtn_1gnwd_34",styles$b={openbtn,overlay,modalWrapper,closebtn},ModalPopup=({showModal:i,setShowModal:e,title:s,content:o})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:i&&jsxRuntimeExports.jsx("div",{className:styles$b.overlay,onClick:()=>e(!1),children:jsxRuntimeExports.jsx("div",{className:styles$b.modalWrapper,onClick:a=>a.stopPropagation(),children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{children:s}),jsxRuntimeExports.jsx("p",{children:o}),jsxRuntimeExports.jsx("button",{onClick:()=>e(!1),className:styles$b.closebtn,children:"Close"})]})})})}),App$1=()=>{const[i,e]=reactExports.useState(!1),s={title:"Modal Heading",content:"Lorem ipsum, dolor sit amet consectetur adipisicing elit. Error, voluptates. Nobis delectus magni quaerat et deserunt fuga temporibus doloribus vero quidem repellat suscipit nulla tempora eveniet, repellendus deleniti placeat quibusdam."};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:styles$b.openbtn,onClick:()=>e(!0),children:"Open Modal"}),reactDomExports.createPortal(jsxRuntimeExports.jsx(ModalPopup,{showModal:i,setShowModal:e,title:s.title,content:s.content}),document.body)]})},languagesData=[{name:"SQL",year:1970,creator:"Donald D. Chamberlin, Raymond F. Boyce",usecase:"Database management"},{name:"C",year:1972,creator:"Dennis Ritchie",usecase:"System programming, embedded systems"},{name:"C++",year:1983,creator:"Bjarne Stroustrup",usecase:"Game development, system software"},{name:"Perl",year:1987,creator:"Larry Wall",usecase:"Scripting, web development, automation"},{name:"HTML",year:1991,creator:"Tim Berners-Lee",usecase:"Web content structure"},{name:"Python",year:1991,creator:"Guido van Rossum",usecase:"Web development, data analysis, AI"},{name:"Java",year:1995,creator:"James Gosling",usecase:"Enterprise software, Android apps"},{name:"JavaScript",year:1995,creator:"Brendan Eich",usecase:"Web development, browser scripting"},{name:"PHP",year:1995,creator:"Rasmus Lerdorf",usecase:"Web development, server-side scripting"},{name:"CSS",year:1996,creator:"Håkon Wium Lie, Bert Bos",usecase:"Web page styling"},{name:"C#",year:2e3,creator:"Microsoft",usecase:"Windows apps, game development"},{name:"Scala",year:2003,creator:"Martin Odersky",usecase:"Web applications, data analysis"},{name:"Golang",year:2009,creator:"Robert Griesemer, Rob Pike, Ken Thompson",usecase:"Cloud computing, microservices"},{name:"Rust",year:2010,creator:"Graydon Hoare",usecase:"Systems programming, safety"},{name:"Kotlin",year:2011,creator:"JetBrains",usecase:"Android app development, server-side"},{name:"Swift",year:2014,creator:"Apple Inc.",usecase:"iOS, macOS app development"}],container$1="_container_5ie15_1",languageList="_languageList_5ie15_6",languageCard="_languageCard_5ie15_12",languageName="_languageName_5ie15_28",info="_info_5ie15_34",heading$3="_heading_5ie15_40",styles$a={container:container$1,languageList,languageCard,languageName,info,heading:heading$3};function LanguageInfo({name:i,year:e,creator:s,usecase:o}){return jsxRuntimeExports.jsxs("div",{className:styles$a.languageCard,children:[jsxRuntimeExports.jsx("h2",{className:styles$a.languageName,children:i}),jsxRuntimeExports.jsxs("p",{className:styles$a.info,children:["Year of Start: ",e]}),jsxRuntimeExports.jsxs("p",{className:styles$a.info,children:["Creator: ",s]}),jsxRuntimeExports.jsxs("p",{className:styles$a.info,children:["Use Case: ",o]})]})}function ProgrammingLanguageMultiverse(){return jsxRuntimeExports.jsx("div",{className:styles$a.container,children:jsxRuntimeExports.jsx("div",{className:styles$a.languageList,children:languagesData.map((i,e)=>jsxRuntimeExports.jsx(LanguageInfo,{...i},e))})})}const challenges=new Map([["counter",{title:"Counter",link:"counter",difficulty:"easy",developer:"sadanandpai",tags:[]}],["programming-languages-multiverse",{title:"Programming Languages Multiverse",link:"programming-languages-multiverse",difficulty:"easy",developer:"Sumitwarrior7",tags:[],isNew:!0}],["quote-generator",{title:"Quote Generator",link:"quote-generator",difficulty:"easy",developer:"viditagrawal56",isNew:!0,tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:"easy",developer:"Bhushan1019",isNew:!0,tags:[]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:"easy",tags:[]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:"easy",isNew:!0,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:"easy",developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:"easy",developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:"easy",developer:"Sumitwarrior7",tags:[],isNew:!0}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:"easy",developer:"ravi02205",tags:[],isNew:!0}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:"easy",developer:"deepakrajkranti",tags:[]}],["pagination",{title:"Pagination",link:"pagination",difficulty:"easy",developer:"Pancratzia",tags:[],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:"easy",developer:"kumaratul60",tags:[],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:"easy",developer:"Sumitwarrior7",tags:[],isNew:!0}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:"easy",developer:"Sumitwarrior7",tags:[],isNew:!0}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:"easy",developer:"NikhilJHA01",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:"easy",developer:"arpansaha13",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:"easy",developer:"arpansaha13",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:"easy",developer:"rashidtvmr",tags:[],isNew:!0}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:"easy",developer:"harsh472000",tags:[],isNew:!0}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:"easy",developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:"easy",developer:"ashikjhonson",tags:[]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:"medium",developer:"Sumitwarrior7",tags:[],isNew:!0}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:"medium",developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:"medium",developer:"deepu0",tags:[]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:"medium",developer:"rishabhm05",tags:[],isNew:!0}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:"medium",developer:"deepu0",tags:[]}],["column-table",{title:"Column Table",link:"column-table",difficulty:"medium",developer:"sadanandpai",tags:[],isNew:!0}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:"medium",developer:"deepakrajkranti",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:"medium",developer:"insharahAyyubi",tags:[],isNew:!0}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:"medium",developer:"rashidtvmr",tags:[],isNew:!0}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:"medium",developer:"dhanu084",tags:[],isNew:!0}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:"medium",developer:"Kei-K23",tags:[],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:"medium",developer:"Kei-K23",tags:[],isNew:!0}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:"medium",developer:"sadanandpai",tags:[],isNew:!0}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:"medium",developer:"ayush-dutt-sharma",tags:[],isNew:!0}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:"hard",developer:"sadanandpai",tags:[],isNew:!0}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:"hard",developer:"deepu0",tags:[]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:"hard",developer:"deepu0",tags:[]}]]),reactChallenges={counter:jsxRuntimeExports.jsx(Counter,{}),accordion:jsxRuntimeExports.jsx(App$p,{}),"background-changer":jsxRuntimeExports.jsx(BackgroundChanger,{}),"star-Rating":jsxRuntimeExports.jsx(App$6,{}),"light-dark-mode":jsxRuntimeExports.jsx(App$f,{}),"Guess-the-number":jsxRuntimeExports.jsx(App$i,{}),"telephone-formatter":jsxRuntimeExports.jsx(TelephoneFormatter,{}),"toast-popup":jsxRuntimeExports.jsx(Toast,{}),"password-strength":jsxRuntimeExports.jsx(PasswordStrength,{}),"todo-list":jsxRuntimeExports.jsx(Todo,{}),"investment-calculator":jsxRuntimeExports.jsx(App$g,{}),stopwatch:jsxRuntimeExports.jsx(App$5,{}),progressbar:jsxRuntimeExports.jsx(App$a,{}),"infinite-scrolling":jsxRuntimeExports.jsx(App$h,{}),"file-explorer":jsxRuntimeExports.jsx(App$l,{}),"autocomplete-offline":jsxRuntimeExports.jsx(Autocomplete,{}),"autocomplete-online":jsxRuntimeExports.jsx(AutocompleteOnline,{}),"tic-tac-toe":jsxRuntimeExports.jsx(App$3,{}),stack:jsxRuntimeExports.jsx(Stack,{}),"food-recipe":jsxRuntimeExports.jsx(App$j,{}),"match-pair":jsxRuntimeExports.jsx(MatchPair,{}),"password-generator":jsxRuntimeExports.jsx(App$c,{}),"column-table":jsxRuntimeExports.jsx(ColumnTable,{}),"table-colorizer":jsxRuntimeExports.jsx(TableColorizer,{}),"25-5-clock":jsxRuntimeExports.jsx(TwentyfiveFiveClock,{}),"bmi-calculator":jsxRuntimeExports.jsx(App$n,{}),"email-templates":jsxRuntimeExports.jsx(EmailTemplates,{}),"expense-tracker":jsxRuntimeExports.jsx(App$m,{}),pagination:jsxRuntimeExports.jsx(App$e,{}),"qr-code-generator":jsxRuntimeExports.jsx(App$9,{}),"quote-generator":jsxRuntimeExports.jsx(App$8,{}),"image-gallery":jsxRuntimeExports.jsx(ImageGallery,{}),"word-count":jsxRuntimeExports.jsx(WordCounter,{}),"temperature-converter":jsxRuntimeExports.jsx(TemperatureConverter,{}),"color-mixer":jsxRuntimeExports.jsx(ColorMixer,{}),"string-transformers":jsxRuntimeExports.jsx(StringTransformers,{}),"your-sport":jsxRuntimeExports.jsx(YourSport,{}),"modal-popup":jsxRuntimeExports.jsx(App$1,{}),"programming-languages-multiverse":jsxRuntimeExports.jsx(ProgrammingLanguageMultiverse,{})};function Challenge(){var s;const i=useParams(),e=(i==null?void 0:i.id)??"";return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ChallengeNavbar,{title:(s=challenges.get(e))==null?void 0:s.title}),jsxRuntimeExports.jsx("div",{className:"container",children:reactChallenges[e]})]})}const contributors=new Map([["sadanandpai",{name:"Sadanand Pai",pic:"https://avatars.githubusercontent.com/u/12962887"}],["AdityaSuryawanshi",{name:"Aditya Suryawanshi",pic:"https://avatars.githubusercontent.com/u/124609794?v=4"}],["NikhilJHA01",{name:"Nikhil Jha",pic:"https://avatars.githubusercontent.com/u/63518046"}],["noorulaink00",{name:"Noor Ul Ain Khan",pic:"https://avatars.githubusercontent.com/u/65324193"}],["deepu0",{name:"Deepak Kumar",pic:"https://avatars.githubusercontent.com/u/22304384"}],["deepakRikhav",{name:"Deepak Rikhav",pic:"https://avatars.githubusercontent.com/u/97227284"}],["arpansaha13",{name:"Arpan Saha",pic:"https://avatars.githubusercontent.com/u/82361490"}],["deepakrajkranti",{name:"Deepak Raj",pic:"https://avatars.githubusercontent.com/u/88797436"}],["insharahAyyubi",{name:"Insharah Ayyubi",pic:"https://avatars.githubusercontent.com/u/103804673"}],["rashidtvmr",{name:"Rashid",pic:"https://avatars.githubusercontent.com/u/58169715"}],["gauravsinhaweb",{name:"Gaurav Sinha",pic:"https://avatars.githubusercontent.com/u/75125943"}],["ayush-dutt-sharma",{name:"Ayush Dutt Sharma",pic:"https://avatars.githubusercontent.com/u/73738613"}],["dhanu084",{name:"Dhanush Kiran",pic:"https://avatars.githubusercontent.com/u/54932658"}],["kumaratul60",{name:"Atul Kumar Awasthi",pic:"https://avatars.githubusercontent.com/u/53579888"}],["Kei-K23",{name:"Kei-K",pic:"https://avatars.githubusercontent.com/u/134714087"}],["ravi02205",{name:"Ravi Kumar Panchal",pic:"https://avatars.githubusercontent.com/u/81222901"}],["caesar003",{name:"Khaisar Muksid",pic:"https://avatars.githubusercontent.com/u/37962465"}],["harsh472000",{name:"Harsh Meghani",pic:"https://avatars.githubusercontent.com/u/55913938"}],["Pancratzia",{name:"Laura Ortega",pic:"https://avatars.githubusercontent.com/u/54899954"}],["ashikjhonson",{name:"Ashik Jhonson",pic:"https://avatars.githubusercontent.com/u/97791612"}],["Krishnakalani111",{name:"Krishna Kalani",pic:"https://avatars.githubusercontent.com/u/88764668"}],["viditagrawal56",{name:"Vidit Agrawal",pic:"https://avatars.githubusercontent.com/u/52532308"}],["Bhushan1019",{name:"Bhushan Patil",pic:"https://avatars.githubusercontent.com/u/121352274"}],["Sumitwarrior7",{name:"Cool Dude 69",pic:"https://avatars.githubusercontent.com/u/108853577"}],["rishabhm05",{name:"Rishabh Mehta",pic:"https://avatars.githubusercontent.com/u/67910259"}]]),avatar="_avatar_1jv0o_1",avatarGroup="_avatarGroup_1jv0o_11",styles$9={avatar,avatarGroup};function Avatar({src:i,alt:e}){return jsxRuntimeExports.jsx("img",{src:i,alt:e,className:styles$9.avatar})}function AvatarGroup({contributorNames:i}){return jsxRuntimeExports.jsx("div",{className:styles$9.avatarGroup,children:i.map(e=>{var o;const s=(o=contributors.get(e))==null?void 0:o.pic;return s?jsxRuntimeExports.jsx(Avatar,{src:s,alt:""},e):null}).filter(Boolean)})}const challengeGrid="_challengeGrid_140w8_1",challengeCard="_challengeCard_140w8_8",avatarContainer="_avatarContainer_140w8_21",disabled="_disabled_140w8_29",developer="_developer_140w8_53",name="_name_140w8_66",medium="_medium_140w8_69",hard="_hard_140w8_72",styles$8={challengeGrid,challengeCard,avatarContainer,disabled,new:"_new_140w8_43",developer,name,medium,hard};function ChallengeGrid(){return jsxRuntimeExports.jsx("div",{className:styles$8.challengeGrid,children:Array.from(challenges.values()).map(i=>{var e,s;return jsxRuntimeExports.jsxs("a",{className:`${styles$8.challengeCard} ${styles$8[i.difficulty]}`,href:"#/"+i.link,children:[i.isNew&&jsxRuntimeExports.jsx("span",{className:styles$8.new,children:"New"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{children:i.title}),jsxRuntimeExports.jsxs("div",{className:styles$8.avatarContainer,children:[i.developer&&jsxRuntimeExports.jsxs("div",{className:styles$8.developer,children:[jsxRuntimeExports.jsx("img",{src:(e=contributors.get(i.developer))==null?void 0:e.pic,alt:""}),jsxRuntimeExports.jsx("span",{className:styles$8.name,children:(s=contributors.get(i.developer))==null?void 0:s.name})]}),i.contributors&&jsxRuntimeExports.jsx(AvatarGroup,{contributorNames:i.contributors})]})]})]},i.title)})})}const navbar="_navbar_bgl2j_1",logo="_logo_bgl2j_8",links="_links_bgl2j_23",github="_github_bgl2j_29",styles$7={navbar,logo,links,github};function Navbar({children:i}){return jsxRuntimeExports.jsxs("nav",{className:styles$7.navbar,children:[jsxRuntimeExports.jsxs("a",{className:styles$7.logo,href:"/frontend-mini-challenges/",children:[jsxRuntimeExports.jsx("img",{src:"/frontend-mini-challenges/react/dist/logo.png",alt:"logo"}),jsxRuntimeExports.jsx("span",{children:"Frontend Mini Challenges"})]}),jsxRuntimeExports.jsx("div",{className:styles$7.links,children:i}),jsxRuntimeExports.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",children:jsxRuntimeExports.jsx("img",{src:"https://cdn-icons-png.flaticon.com/512/25/25231.png",alt:"github repo",className:styles$7.github})})]})}const topBtn="_topBtn_1lydx_1",styles$6={topBtn};function ScrollBtn(){const[i,e]=reactExports.useState(!1);reactExports.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?e(!0):e(!1)})},[]);const s=()=>{window.scrollTo({top:0,behavior:"smooth"})};return i&&jsxRuntimeExports.jsx("button",{className:styles$6.topBtn,onClick:s,children:jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-chevron-double-up",viewBox:"0 0 16 16",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",d:"M7.646 2.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 3.707 2.354 9.354a.5.5 0 1 1-.708-.708l6-6z"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",d:"M7.646 6.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 7.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"})]})})}function App(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Navbar,{children:[jsxRuntimeExports.jsx("a",{href:"/frontend-mini-challenges/native",children:"JavaScript Mini Challenges"}),jsxRuntimeExports.jsx("a",{href:"/frontend-mini-challenges/vue/dist/#/",children:"VueJs Mini Challenges"})]}),jsxRuntimeExports.jsxs("div",{className:"container text-center",children:[jsxRuntimeExports.jsx(ChallengeGrid,{}),jsxRuntimeExports.jsx(ScrollBtn,{})]})]})}const heading$2="_heading_ngxka_1",contributionContainer="_contributionContainer_ngxka_6",contributor="_contributor_ngxka_13",styles$5={heading:heading$2,contributionContainer,contributor};function Contributor({contributor:i}){return jsxRuntimeExports.jsx("a",{href:i.html_url,title:i.login,className:styles$5.contributor,children:jsxRuntimeExports.jsx("img",{src:i.avatar_url,alt:i.login,loading:"lazy"})})}const existingContributors=[{login:"sadanandpai",avatar_url:"https://avatars.githubusercontent.com/u/12962887?s=60&v=4",html_url:"https://github.com/sadanandpai"},{login:"arpansaha13",avatar_url:"https://avatars.githubusercontent.com/u/82361490?s=60&v=4",html_url:"https://github.com/arpansaha13"},{login:"5h0ov",avatar_url:"https://avatars.githubusercontent.com/u/83227649?s=60&v=4",html_url:"https://github.com/5h0ov"},{login:"Sukomal07",avatar_url:"https://avatars.githubusercontent.com/u/100500478?s=60&v=4",html_url:"https://github.com/Sukomal07"},{login:"sujitmahapatra",avatar_url:"https://avatars.githubusercontent.com/u/127632703?s=60&v=4",html_url:"https://github.com/sujitmahapatra"},{login:"AbhineshJha",avatar_url:"https://avatars.githubusercontent.com/u/142514166?s=60&v=4",html_url:"https://github.com/AbhineshJha"},{login:"procodrr",avatar_url:"https://avatars.githubusercontent.com/u/76770313?v=4",html_url:"https://github.com/procodrr"},{login:"pankajparkar",avatar_url:"https://avatars.githubusercontent.com/u/5320044?s=60&v=4",html_url:"https://github.com/pankajparkar"},{login:"CrypticRevenger",avatar_url:"https://avatars.githubusercontent.com/u/128175097?s=60&v=4",html_url:"https://github.com/CrypticRevenger"},{login:"rashidtvmr",avatar_url:"https://avatars.githubusercontent.com/u/58169715?s=60&v=4",html_url:"https://github.com/rashidtvmr"},{login:"shruti-sen2004",avatar_url:"https://avatars.githubusercontent.com/u/115914670?s=60&v=4",html_url:"https://github.com/shruti-sen2004"},{login:"AnkitaSikdar005",avatar_url:"https://avatars.githubusercontent.com/u/115947852?s=60&v=4",html_url:"https://github.com/AnkitaSikdar005"},{login:"NikhilJHA01",avatar_url:"https://avatars.githubusercontent.com/u/63518046?s=60&v=4",html_url:"https://github.com/NikhilJHA01"},{login:"Kei-K23",avatar_url:"https://avatars.githubusercontent.com/u/134714087?s=60&v=4",html_url:"https://github.com/Kei-K23"},{login:"ankit071105",avatar_url:"https://avatars.githubusercontent.com/u/139707943?s=60&v=4",html_url:"https://github.com/ankit071105"},{login:"noorulaink00",avatar_url:"https://avatars.githubusercontent.com/u/65324193?s=60&v=4",html_url:"https://github.com/noorulaink00"},{login:"shivam200446",avatar_url:"https://avatars.githubusercontent.com/u/127589548?s=60&v=4",html_url:"https://github.com/shivam200446"},{login:"Sumitwarrior7",avatar_url:"https://avatars.githubusercontent.com/u/108853577?s=60&v=4",html_url:"https://github.com/Sumitwarrior7"},{login:"Dhanu084",avatar_url:"https://avatars.githubusercontent.com/u/54932658?s=60&v=4",html_url:"https://github.com/Dhanu084"},{login:"viditagrawal56",avatar_url:"https://avatars.githubusercontent.com/u/52532308?s=60&v=4",html_url:"https://github.com/viditagrawal56"},{login:"kushal34712",avatar_url:"https://avatars.githubusercontent.com/u/98145879?s=60&v=4",html_url:"https://github.com/kushal34712"},{login:"VinayKokate22",avatar_url:"https://avatars.githubusercontent.com/u/114766745?s=60&v=4",html_url:"https://github.com/VinayKokate22"},{login:"insharahAyyubi",avatar_url:"https://avatars.githubusercontent.com/u/103804673?s=60&v=4",html_url:"https://github.com/insharahAyyubi"},{login:"kumaratul60",avatar_url:"https://avatars.githubusercontent.com/u/53579888?s=60&v=4",html_url:"https://github.com/kumaratul60"},{login:"caesar003",avatar_url:"https://avatars.githubusercontent.com/u/37962465?s=60&v=4",html_url:"https://github.com/caesar003"},{login:"KATTASAHAN",avatar_url:"https://avatars.githubusercontent.com/u/65811236?s=60&v=4",html_url:"https://github.com/KATTASAHAN"},{login:"Pancratzia",avatar_url:"https://avatars.githubusercontent.com/u/54899954?s=60&v=4",html_url:"https://github.com/Pancratzia"},{login:"hritikbhattacharya",avatar_url:"https://avatars.githubusercontent.com/u/44370586?s=60&v=4",html_url:"https://github.com/hritikbhattacharya"},{login:"AckermanLevi1",avatar_url:"https://avatars.githubusercontent.com/u/114604529?s=60&v=4",html_url:"https://github.com/AckermanLevi1"},{login:"deepakRikhav",avatar_url:"https://avatars.githubusercontent.com/u/97227284?s=60&v=4",html_url:"https://github.com/deepakRikhav"},{login:"surajsharma14",avatar_url:"https://avatars.githubusercontent.com/u/72158521?s=60&v=4",html_url:"https://github.com/surajsharma14"},{login:"gauravsinhaweb",avatar_url:"https://avatars.githubusercontent.com/u/75125943?s=60&v=4",html_url:"https://github.com/gauravsinhaweb"},{login:"VishakhaSainani",avatar_url:"https://avatars.githubusercontent.com/u/113436770?s=60&v=4",html_url:"https://github.com/VishakhaSainani"},{login:"pranav514",avatar_url:"https://avatars.githubusercontent.com/u/76992202?s=60&v=4",html_url:"https://github.com/pranav514"},{login:"deepu0",avatar_url:"https://avatars.githubusercontent.com/u/22304384?s=60&v=4",html_url:"https://github.com/deepu0"},{login:"kalyan0922",avatar_url:"https://avatars.githubusercontent.com/u/112691480?s=60&v=4",html_url:"https://github.com/kalyan0922"},{login:"christian-lee1398",avatar_url:"https://avatars.githubusercontent.com/u/83561483?s=60&v=4",html_url:"https://github.com/christian-lee1398"},{login:"Ravi02205",avatar_url:"https://avatars.githubusercontent.com/u/81222901?s=60&v=4",html_url:"https://github.com/Ravi02205"},{login:"manivanna",avatar_url:"https://avatars.githubusercontent.com/u/21124524?s=60&v=4",html_url:"https://github.com/manivanna"},{login:"karprabha",avatar_url:"https://avatars.githubusercontent.com/u/15178905?s=60&v=4",html_url:"https://github.com/karprabha"},{login:"nayangoyal",avatar_url:"https://avatars.githubusercontent.com/u/101893656?s=60&v=4",html_url:"https://github.com/nayangoyal"},{login:"poornima-alugubelly",avatar_url:"https://avatars.githubusercontent.com/u/70846516?s=60&v=4",html_url:"https://github.com/poornima-alugubelly"},{login:"ashikjhonson",avatar_url:"https://avatars.githubusercontent.com/u/97791612?s=60&v=4",html_url:"https://github.com/ashikjhonson"},{login:"Shivam250702",avatar_url:"https://avatars.githubusercontent.com/u/103785990?s=60&v=4",html_url:"https://github.com/Shivam250702"},{login:"Krishnakalani111",avatar_url:"https://avatars.githubusercontent.com/u/88764668?s=60&v=4",html_url:"https://github.com/Krishnakalani111"},{login:"ayushrakesh",avatar_url:"https://avatars.githubusercontent.com/u/115995339?s=60&v=4",html_url:"https://github.com/ayushrakesh"},{login:"aditya7302",avatar_url:"https://avatars.githubusercontent.com/u/110886184?s=60&v=4",html_url:"https://github.com/aditya7302"},{login:"Bhushan1019",avatar_url:"https://avatars.githubusercontent.com/u/121352274?s=60&v=4",html_url:"https://github.com/Bhushan1019"},{login:"kumarvivekpandey",avatar_url:"https://avatars.githubusercontent.com/u/35356580?s=60&v=4",html_url:"https://github.com/kumarvivekpandey"},{login:"akash0708",avatar_url:"https://avatars.githubusercontent.com/u/110753356?s=60&v=4",html_url:"https://github.com/akash0708"},{login:"nikcode9",avatar_url:"https://avatars.githubusercontent.com/u/129772745?s=60&v=4",html_url:"https://github.com/nikcode9"},{login:"debajoti",avatar_url:"https://avatars.githubusercontent.com/u/132689129?s=60&v=4",html_url:"https://github.com/debajoti"},{login:"Vivek-GuptaXCode",avatar_url:"https://avatars.githubusercontent.com/u/145761266?s=60&v=4",html_url:"https://github.com/Vivek-GuptaXCode"},{login:"SoulNikhar",avatar_url:"https://avatars.githubusercontent.com/u/111144948?s=60&v=4",html_url:"https://github.com/SoulNikhar"},{login:"Avtech04",avatar_url:"https://avatars.githubusercontent.com/u/97428742?s=60&v=4",html_url:"https://github.com/Avtech04"},{login:"Archit-Kohli",avatar_url:"https://avatars.githubusercontent.com/u/118905854?s=60&v=4",html_url:"https://github.com/Archit-Kohli"},{login:"AnshMeshram",avatar_url:"https://avatars.githubusercontent.com/u/141160800?s=60&v=4",html_url:"https://github.com/AnshMeshram"}],parents=new Set,coords=new WeakMap,siblings=new WeakMap,animations=new WeakMap,intersections=new WeakMap,intervals=new WeakMap,options=new WeakMap,debounces=new WeakMap,enabled=new WeakSet;let root;const TGT="__aa_tgt",DEL="__aa_del",handleMutations=i=>{const e=getElements(i);e&&e.forEach(s=>animate(s))},handleResizes=i=>{i.forEach(e=>{e.target===root&&updateAllPos(),coords.has(e.target)&&updatePos(e.target)})};function observePosition(i){const e=intersections.get(i);e==null||e.disconnect();let s=coords.get(i),o=0;const a=5;s||(s=getCoords(i),coords.set(i,s));const{offsetWidth:c,offsetHeight:h}=root,d=[s.top-a,c-(s.left+a+s.width),h-(s.top+a+s.height),s.left-a].map(_=>`${-1*Math.floor(_)}px`).join(" "),b=new IntersectionObserver(()=>{++o>1&&updatePos(i)},{root,threshold:1,rootMargin:d});b.observe(i),intersections.set(i,b)}function updatePos(i){clearTimeout(debounces.get(i));const e=getOptions(i),s=typeof e=="function"?500:e.duration;debounces.set(i,setTimeout(async()=>{const o=animations.get(i);try{await(o==null?void 0:o.finished),coords.set(i,getCoords(i)),observePosition(i)}catch{}},s))}function updateAllPos(){clearTimeout(debounces.get(root)),debounces.set(root,setTimeout(()=>{parents.forEach(i=>forEach(i,e=>lowPriority(()=>updatePos(e))))},100))}function poll(i){setTimeout(()=>{intervals.set(i,setInterval(()=>lowPriority(updatePos.bind(null,i)),2e3))},Math.round(2e3*Math.random()))}function lowPriority(i){typeof requestIdleCallback=="function"?requestIdleCallback(()=>i()):requestAnimationFrame(()=>i())}let mutations,resize;typeof window<"u"&&(root=document.documentElement,mutations=new MutationObserver(handleMutations),resize=new ResizeObserver(handleResizes),resize.observe(root));function getElements(i){return i.reduce((o,a)=>[...o,...Array.from(a.addedNodes),...Array.from(a.removedNodes)],[]).every(o=>o.nodeName==="#comment")?!1:i.reduce((o,a)=>{if(o===!1)return!1;if(a.target instanceof Element){if(target(a.target),!o.has(a.target)){o.add(a.target);for(let c=0;cs(i,options.has(i)));for(let s=0;sa(o,options.has(o)))}}function remain(i){const e=coords.get(i),s=getCoords(i);if(!isEnabled(i))return coords.set(i,s);let o;if(!e)return;const a=getOptions(i);if(typeof a!="function"){const c=e.left-s.left,h=e.top-s.top,[g,d,b,_]=getTransitionSizes(i,e,s),j={transform:`translate(${c}px, ${h}px)`},$={transform:"translate(0, 0)"};g!==d&&(j.width=`${g}px`,$.width=`${d}px`),b!==_&&(j.height=`${b}px`,$.height=`${_}px`),o=i.animate([j,$],{duration:a.duration,easing:a.easing})}else o=new Animation(a(i,"remain",e,s)),o.play();animations.set(i,o),coords.set(i,s),o.addEventListener("finish",updatePos.bind(null,i))}function add(i){const e=getCoords(i);coords.set(i,e);const s=getOptions(i);if(!isEnabled(i))return;let o;typeof s!="function"?o=i.animate([{transform:"scale(.98)",opacity:0},{transform:"scale(0.98)",opacity:0,offset:.5},{transform:"scale(1)",opacity:1}],{duration:s.duration*1.5,easing:"ease-in"}):(o=new Animation(s(i,"add",e)),o.play()),animations.set(i,o),o.addEventListener("finish",updatePos.bind(null,i))}function remove(i){var e;if(!siblings.has(i)||!coords.has(i))return;const[s,o]=siblings.get(i);Object.defineProperty(i,DEL,{value:!0}),o&&o.parentNode&&o.parentNode instanceof Element?o.parentNode.insertBefore(i,o):s&&s.parentNode?s.parentNode.appendChild(i):(e=getTarget(i))===null||e===void 0||e.appendChild(i);function a(){var $;i.remove(),coords.delete(i),siblings.delete(i),animations.delete(i),($=intersections.get(i))===null||$===void 0||$.disconnect()}if(!isEnabled(i))return a();const[c,h,g,d]=deletePosition(i),b=getOptions(i),_=coords.get(i);let j;Object.assign(i.style,{position:"absolute",top:`${c}px`,left:`${h}px`,width:`${g}px`,height:`${d}px`,margin:0,pointerEvents:"none",transformOrigin:"center",zIndex:100}),typeof b!="function"?j=i.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.98)",opacity:0}],{duration:b.duration,easing:"ease-out"}):(j=new Animation(b(i,"remove",_)),j.play()),animations.set(i,j),j.addEventListener("finish",a)}function deletePosition(i){const e=coords.get(i),[s,,o]=getTransitionSizes(i,e,getCoords(i));let a=i.parentElement;for(;a&&(getComputedStyle(a).position==="static"||a instanceof HTMLBodyElement);)a=a.parentElement;a||(a=document.body);const c=getComputedStyle(a),h=coords.get(a)||getCoords(a),g=Math.round(e.top-h.top)-raw(c.borderTopWidth),d=Math.round(e.left-h.left)-raw(c.borderLeftWidth);return[g,d,s,o]}function autoAnimate(i,e={}){return mutations&&resize&&(window.matchMedia("(prefers-reduced-motion: reduce)").matches&&typeof e!="function"&&!e.disrespectUserMotionPreference||(enabled.add(i),getComputedStyle(i).position==="static"&&Object.assign(i.style,{position:"relative"}),forEach(i,updatePos,poll,a=>resize==null?void 0:resize.observe(a)),typeof e=="function"?options.set(i,e):options.set(i,{duration:250,easing:"ease-in-out",...e}),mutations.observe(i,{childList:!0}),parents.add(i))),Object.freeze({parent:i,enable:()=>{enabled.add(i)},disable:()=>{enabled.delete(i)},isEnabled:()=>enabled.has(i)})}function useAutoAnimate(i){const[e,s]=reactExports.useState();return[reactExports.useCallback(c=>{c instanceof HTMLElement?s(autoAnimate(c,i)):s(void 0)},[]),c=>{e&&(c?e.enable():e.disable())}]}function Contribution(){const[i,e]=reactExports.useState(existingContributors),[s]=useAutoAnimate();return reactExports.useEffect(()=>{const o=setInterval(()=>e(a=>a.map(c=>c).sort(()=>.5-Math.random())),5e3);return()=>{clearInterval(o)}},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h2",{className:styles$5.heading,id:"contributors",children:"Contributors"}),jsxRuntimeExports.jsx("section",{className:styles$5.contributionContainer,ref:s,children:i.map(o=>jsxRuntimeExports.jsx(Contributor,{contributor:o},o.login))})]})}const heading$1="_heading_1m5el_1",features$1="_features_1m5el_6",styles$4={heading:heading$1,features:features$1},features=[{title:"Free and open-source",info:"Every challenge comes with the solution in multiple tech stacks & totally free forever"},{title:"Designed for interviews",info:"The challenges are handpicked collection from various interviews of top companies"},{title:"Community vetted solutions",info:"Solutions are reviewed by the community & follows the best industry practices"}];function Features(){return jsxRuntimeExports.jsxs("section",{id:"whyUs",children:[jsxRuntimeExports.jsx("h2",{className:styles$4.heading,children:"Why Us?"}),jsxRuntimeExports.jsx("div",{className:styles$4.features,children:features.map((i,e)=>jsxRuntimeExports.jsxs("article",{children:[jsxRuntimeExports.jsx("h3",{children:i.title}),jsxRuntimeExports.jsx("p",{children:i.info})]},e))})]})}const footer="_footer_1l7qe_1",styles$3={footer};function Footer(){return jsxRuntimeExports.jsx("footer",{className:styles$3.footer,children:"Copyright © 2023"})}/*! ***************************************************************************** +`+c.stack}return{value:i,source:e,stack:a,digest:null}}function Li(i,e,s){return{value:i,source:null,stack:s??null,digest:e??null}}function Mi(i,e){try{console.error(e.value)}catch(s){setTimeout(function(){throw s})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(i,e,s){s=ch(-1,s),s.tag=3,s.payload={element:null};var o=e.value;return s.callback=function(){Pi||(Pi=!0,Qi=o),Mi(i,e)},s}function Ri(i,e,s){s=ch(-1,s),s.tag=3;var o=i.type.getDerivedStateFromError;if(typeof o=="function"){var a=e.value;s.payload=function(){return o(a)},s.callback=function(){Mi(i,e)}}var c=i.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(s.callback=function(){Mi(i,e),typeof o!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var h=e.stack;this.componentDidCatch(e.value,{componentStack:h!==null?h:""})}),s}function Ti(i,e,s){var o=i.pingCache;if(o===null){o=i.pingCache=new Ni;var a=new Set;o.set(e,a)}else a=o.get(e),a===void 0&&(a=new Set,o.set(e,a));a.has(s)||(a.add(s),i=Ui.bind(null,i,e,s),e.then(i,i))}function Vi(i){do{var e;if((e=i.tag===13)&&(e=i.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return i;i=i.return}while(i!==null);return null}function Wi(i,e,s,o,a){return i.mode&1?(i.flags|=65536,i.lanes=a,i):(i===e?i.flags|=65536:(i.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(e=ch(-1,1),e.tag=2,dh(s,e,1))),s.lanes|=1),i)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(i,e,s,o){e.child=i===null?Ch(e,null,s,o):Bh(e,i.child,s,o)}function Zi(i,e,s,o,a){s=s.render;var c=e.ref;return Tg(e,a),o=Xh(i,e,s,o,c,a),s=bi(),i!==null&&!Ug?(e.updateQueue=i.updateQueue,e.flags&=-2053,i.lanes&=~a,$i(i,e,a)):(I&&s&&vg(e),e.flags|=1,Yi(i,e,o,a),e.child)}function aj(i,e,s,o,a){if(i===null){var c=s.type;return typeof c=="function"&&!bj(c)&&c.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(e.tag=15,e.type=c,cj(i,e,c,o,a)):(i=yh(s.type,null,o,e,e.mode,a),i.ref=e.ref,i.return=e,e.child=i)}if(c=i.child,!(i.lanes&a)){var h=c.memoizedProps;if(s=s.compare,s=s!==null?s:Ie,s(h,o)&&i.ref===e.ref)return $i(i,e,a)}return e.flags|=1,i=wh(c,o),i.ref=e.ref,i.return=e,e.child=i}function cj(i,e,s,o,a){if(i!==null){var c=i.memoizedProps;if(Ie(c,o)&&i.ref===e.ref)if(Ug=!1,e.pendingProps=o=c,(i.lanes&a)!==0)i.flags&131072&&(Ug=!0);else return e.lanes=i.lanes,$i(i,e,a)}return dj(i,e,s,o,a)}function ej(i,e,s){var o=e.pendingProps,a=o.children,c=i!==null?i.memoizedState:null;if(o.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(fj,gj),gj|=s;else{if(!(s&1073741824))return i=c!==null?c.baseLanes|s:s,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:i,cachePool:null,transitions:null},e.updateQueue=null,G(fj,gj),gj|=i,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=c!==null?c.baseLanes:s,G(fj,gj),gj|=o}else c!==null?(o=c.baseLanes|s,e.memoizedState=null):o=s,G(fj,gj),gj|=o;return Yi(i,e,a,s),e.child}function hj(i,e){var s=e.ref;(i===null&&s!==null||i!==null&&i.ref!==s)&&(e.flags|=512,e.flags|=2097152)}function dj(i,e,s,o,a){var c=Zf(s)?Xf:H.current;return c=Yf(e,c),Tg(e,a),s=Xh(i,e,s,o,c,a),o=bi(),i!==null&&!Ug?(e.updateQueue=i.updateQueue,e.flags&=-2053,i.lanes&=~a,$i(i,e,a)):(I&&o&&vg(e),e.flags|=1,Yi(i,e,s,a),e.child)}function ij(i,e,s,o,a){if(Zf(s)){var c=!0;cg(e)}else c=!1;if(Tg(e,a),e.stateNode===null)jj(i,e),ph(e,s,o),rh(e,s,o,a),o=!0;else if(i===null){var h=e.stateNode,g=e.memoizedProps;h.props=g;var d=h.context,b=s.contextType;typeof b=="object"&&b!==null?b=Vg(b):(b=Zf(s)?Xf:H.current,b=Yf(e,b));var _=s.getDerivedStateFromProps,j=typeof _=="function"||typeof h.getSnapshotBeforeUpdate=="function";j||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(g!==o||d!==b)&&qh(e,h,o,b),$g=!1;var $=e.memoizedState;h.state=$,gh(e,o,h,a),d=e.memoizedState,g!==o||$!==d||Wf.current||$g?(typeof _=="function"&&(kh(e,s,_,o),d=e.memoizedState),(g=$g||oh(e,s,g,o,$,d,b))?(j||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(e.flags|=4194308)):(typeof h.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=o,e.memoizedState=d),h.props=o,h.state=d,h.context=b,o=g):(typeof h.componentDidMount=="function"&&(e.flags|=4194308),o=!1)}else{h=e.stateNode,bh(i,e),g=e.memoizedProps,b=e.type===e.elementType?g:Lg(e.type,g),h.props=b,j=e.pendingProps,$=h.context,d=s.contextType,typeof d=="object"&&d!==null?d=Vg(d):(d=Zf(s)?Xf:H.current,d=Yf(e,d));var _e=s.getDerivedStateFromProps;(_=typeof _e=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(g!==j||$!==d)&&qh(e,h,o,d),$g=!1,$=e.memoizedState,h.state=$,gh(e,o,h,a);var et=e.memoizedState;g!==j||$!==et||Wf.current||$g?(typeof _e=="function"&&(kh(e,s,_e,o),et=e.memoizedState),(b=$g||oh(e,s,b,o,$,et,d)||!1)?(_||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,et,d),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,et,d)),typeof h.componentDidUpdate=="function"&&(e.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof h.componentDidUpdate!="function"||g===i.memoizedProps&&$===i.memoizedState||(e.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||g===i.memoizedProps&&$===i.memoizedState||(e.flags|=1024),e.memoizedProps=o,e.memoizedState=et),h.props=o,h.state=et,h.context=d,o=b):(typeof h.componentDidUpdate!="function"||g===i.memoizedProps&&$===i.memoizedState||(e.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||g===i.memoizedProps&&$===i.memoizedState||(e.flags|=1024),o=!1)}return kj(i,e,s,o,c,a)}function kj(i,e,s,o,a,c){hj(i,e);var h=(e.flags&128)!==0;if(!o&&!h)return a&&dg(e,s,!1),$i(i,e,c);o=e.stateNode,Xi.current=e;var g=h&&typeof s.getDerivedStateFromError!="function"?null:o.render();return e.flags|=1,i!==null&&h?(e.child=Bh(e,i.child,null,c),e.child=Bh(e,null,g,c)):Yi(i,e,g,c),e.memoizedState=o.state,a&&dg(e,s,!0),e.child}function lj(i){var e=i.stateNode;e.pendingContext?ag(i,e.pendingContext,e.pendingContext!==e.context):e.context&&ag(i,e.context,!1),Ih(i,e.containerInfo)}function mj(i,e,s,o,a){return Ig(),Jg(a),e.flags|=256,Yi(i,e,s,o),e.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(i){return{baseLanes:i,cachePool:null,transitions:null}}function pj(i,e,s){var o=e.pendingProps,a=M.current,c=!1,h=(e.flags&128)!==0,g;if((g=h)||(g=i!==null&&i.memoizedState===null?!1:(a&2)!==0),g?(c=!0,e.flags&=-129):(i===null||i.memoizedState!==null)&&(a|=1),G(M,a&1),i===null)return Eg(e),i=e.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?(e.mode&1?i.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(h=o.children,i=o.fallback,c?(o=e.mode,c=e.child,h={mode:"hidden",children:h},!(o&1)&&c!==null?(c.childLanes=0,c.pendingProps=h):c=qj(h,o,0,null),i=Ah(i,o,s,null),c.return=e,i.return=e,c.sibling=i,e.child=c,e.child.memoizedState=oj(s),e.memoizedState=nj,i):rj(e,h));if(a=i.memoizedState,a!==null&&(g=a.dehydrated,g!==null))return sj(i,e,h,o,g,a,s);if(c){c=o.fallback,h=e.mode,a=i.child,g=a.sibling;var d={mode:"hidden",children:o.children};return!(h&1)&&e.child!==a?(o=e.child,o.childLanes=0,o.pendingProps=d,e.deletions=null):(o=wh(a,d),o.subtreeFlags=a.subtreeFlags&14680064),g!==null?c=wh(g,c):(c=Ah(c,h,s,null),c.flags|=2),c.return=e,o.return=e,o.sibling=c,e.child=o,o=c,c=e.child,h=i.child.memoizedState,h=h===null?oj(s):{baseLanes:h.baseLanes|s,cachePool:null,transitions:h.transitions},c.memoizedState=h,c.childLanes=i.childLanes&~s,e.memoizedState=nj,o}return c=i.child,i=c.sibling,o=wh(c,{mode:"visible",children:o.children}),!(e.mode&1)&&(o.lanes=s),o.return=e,o.sibling=null,i!==null&&(s=e.deletions,s===null?(e.deletions=[i],e.flags|=16):s.push(i)),e.child=o,e.memoizedState=null,o}function rj(i,e){return e=qj({mode:"visible",children:e},i.mode,0,null),e.return=i,i.child=e}function tj(i,e,s,o){return o!==null&&Jg(o),Bh(e,i.child,null,s),i=rj(e,e.pendingProps.children),i.flags|=2,e.memoizedState=null,i}function sj(i,e,s,o,a,c,h){if(s)return e.flags&256?(e.flags&=-257,o=Li(Error(p(422))),tj(i,e,h,o)):e.memoizedState!==null?(e.child=i.child,e.flags|=128,null):(c=o.fallback,a=e.mode,o=qj({mode:"visible",children:o.children},a,0,null),c=Ah(c,a,h,null),c.flags|=2,o.return=e,c.return=e,o.sibling=c,e.child=o,e.mode&1&&Bh(e,i.child,null,h),e.child.memoizedState=oj(h),e.memoizedState=nj,c);if(!(e.mode&1))return tj(i,e,h,null);if(a.data==="$!"){if(o=a.nextSibling&&a.nextSibling.dataset,o)var g=o.dgst;return o=g,c=Error(p(419)),o=Li(c,o,void 0),tj(i,e,h,o)}if(g=(h&i.childLanes)!==0,Ug||g){if(o=R,o!==null){switch(h&-h){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(o.suspendedLanes|h)?0:a,a!==0&&a!==c.retryLane&&(c.retryLane=a,Zg(i,a),mh(o,i,a,-1))}return uj(),o=Li(Error(p(421))),tj(i,e,h,o)}return a.data==="$?"?(e.flags|=128,e.child=i.child,e=vj.bind(null,i),a._reactRetry=e,null):(i=c.treeContext,yg=Lf(a.nextSibling),xg=e,I=!0,zg=null,i!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=i.id,sg=i.overflow,qg=e),e=rj(e,o.children),e.flags|=4096,e)}function wj(i,e,s){i.lanes|=e;var o=i.alternate;o!==null&&(o.lanes|=e),Sg(i.return,e,s)}function xj(i,e,s,o,a){var c=i.memoizedState;c===null?i.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:o,tail:s,tailMode:a}:(c.isBackwards=e,c.rendering=null,c.renderingStartTime=0,c.last=o,c.tail=s,c.tailMode=a)}function yj(i,e,s){var o=e.pendingProps,a=o.revealOrder,c=o.tail;if(Yi(i,e,o.children,s),o=M.current,o&2)o=o&1|2,e.flags|=128;else{if(i!==null&&i.flags&128)e:for(i=e.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&wj(i,s,e);else if(i.tag===19)wj(i,s,e);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break e;for(;i.sibling===null;){if(i.return===null||i.return===e)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}o&=1}if(G(M,o),!(e.mode&1))e.memoizedState=null;else switch(a){case"forwards":for(s=e.child,a=null;s!==null;)i=s.alternate,i!==null&&Mh(i)===null&&(a=s),s=s.sibling;s=a,s===null?(a=e.child,e.child=null):(a=s.sibling,s.sibling=null),xj(e,!1,a,s,c);break;case"backwards":for(s=null,a=e.child,e.child=null;a!==null;){if(i=a.alternate,i!==null&&Mh(i)===null){e.child=a;break}i=a.sibling,a.sibling=s,s=a,a=i}xj(e,!0,s,null,c);break;case"together":xj(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function jj(i,e){!(e.mode&1)&&i!==null&&(i.alternate=null,e.alternate=null,e.flags|=2)}function $i(i,e,s){if(i!==null&&(e.dependencies=i.dependencies),hh|=e.lanes,!(s&e.childLanes))return null;if(i!==null&&e.child!==i.child)throw Error(p(153));if(e.child!==null){for(i=e.child,s=wh(i,i.pendingProps),e.child=s,s.return=e;i.sibling!==null;)i=i.sibling,s=s.sibling=wh(i,i.pendingProps),s.return=e;s.sibling=null}return e.child}function zj(i,e,s){switch(e.tag){case 3:lj(e),Ig();break;case 5:Kh(e);break;case 1:Zf(e.type)&&cg(e);break;case 4:Ih(e,e.stateNode.containerInfo);break;case 10:var o=e.type._context,a=e.memoizedProps.value;G(Mg,o._currentValue),o._currentValue=a;break;case 13:if(o=e.memoizedState,o!==null)return o.dehydrated!==null?(G(M,M.current&1),e.flags|=128,null):s&e.child.childLanes?pj(i,e,s):(G(M,M.current&1),i=$i(i,e,s),i!==null?i.sibling:null);G(M,M.current&1);break;case 19:if(o=(s&e.childLanes)!==0,i.flags&128){if(o)return yj(i,e,s);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),G(M,M.current),o)break;return null;case 22:case 23:return e.lanes=0,ej(i,e,s)}return $i(i,e,s)}var Aj,Bj,Cj,Dj;Aj=function(i,e){for(var s=e.child;s!==null;){if(s.tag===5||s.tag===6)i.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break;for(;s.sibling===null;){if(s.return===null||s.return===e)return;s=s.return}s.sibling.return=s.return,s=s.sibling}};Bj=function(){};Cj=function(i,e,s,o){var a=i.memoizedProps;if(a!==o){i=e.stateNode,Hh(Eh.current);var c=null;switch(s){case"input":a=Ya(i,a),o=Ya(i,o),c=[];break;case"select":a=A({},a,{value:void 0}),o=A({},o,{value:void 0}),c=[];break;case"textarea":a=gb(i,a),o=gb(i,o),c=[];break;default:typeof a.onClick!="function"&&typeof o.onClick=="function"&&(i.onclick=Bf)}ub(s,o);var h;s=null;for(b in a)if(!o.hasOwnProperty(b)&&a.hasOwnProperty(b)&&a[b]!=null)if(b==="style"){var g=a[b];for(h in g)g.hasOwnProperty(h)&&(s||(s={}),s[h]="")}else b!=="dangerouslySetInnerHTML"&&b!=="children"&&b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&b!=="autoFocus"&&(ea.hasOwnProperty(b)?c||(c=[]):(c=c||[]).push(b,null));for(b in o){var d=o[b];if(g=a!=null?a[b]:void 0,o.hasOwnProperty(b)&&d!==g&&(d!=null||g!=null))if(b==="style")if(g){for(h in g)!g.hasOwnProperty(h)||d&&d.hasOwnProperty(h)||(s||(s={}),s[h]="");for(h in d)d.hasOwnProperty(h)&&g[h]!==d[h]&&(s||(s={}),s[h]=d[h])}else s||(c||(c=[]),c.push(b,s)),s=d;else b==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,g=g?g.__html:void 0,d!=null&&g!==d&&(c=c||[]).push(b,d)):b==="children"?typeof d!="string"&&typeof d!="number"||(c=c||[]).push(b,""+d):b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&(ea.hasOwnProperty(b)?(d!=null&&b==="onScroll"&&D("scroll",i),c||g===d||(c=[])):(c=c||[]).push(b,d))}s&&(c=c||[]).push("style",s);var b=c;(e.updateQueue=b)&&(e.flags|=4)}};Dj=function(i,e,s,o){s!==o&&(e.flags|=4)};function Ej(i,e){if(!I)switch(i.tailMode){case"hidden":e=i.tail;for(var s=null;e!==null;)e.alternate!==null&&(s=e),e=e.sibling;s===null?i.tail=null:s.sibling=null;break;case"collapsed":s=i.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?e||i.tail===null?i.tail=null:i.tail.sibling=null:o.sibling=null}}function S(i){var e=i.alternate!==null&&i.alternate.child===i.child,s=0,o=0;if(e)for(var a=i.child;a!==null;)s|=a.lanes|a.childLanes,o|=a.subtreeFlags&14680064,o|=a.flags&14680064,a.return=i,a=a.sibling;else for(a=i.child;a!==null;)s|=a.lanes|a.childLanes,o|=a.subtreeFlags,o|=a.flags,a.return=i,a=a.sibling;return i.subtreeFlags|=o,i.childLanes=s,e}function Fj(i,e,s){var o=e.pendingProps;switch(wg(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(e),null;case 1:return Zf(e.type)&&$f(),S(e),null;case 3:return o=e.stateNode,Jh(),E(Wf),E(H),Oh(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(i===null||i.child===null)&&(Gg(e)?e.flags|=4:i===null||i.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(i,e),S(e),null;case 5:Lh(e);var a=Hh(Gh.current);if(s=e.type,i!==null&&e.stateNode!=null)Cj(i,e,s,o,a),i.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!o){if(e.stateNode===null)throw Error(p(166));return S(e),null}if(i=Hh(Eh.current),Gg(e)){o=e.stateNode,s=e.type;var c=e.memoizedProps;switch(o[Of]=e,o[Pf]=c,i=(e.mode&1)!==0,s){case"dialog":D("cancel",o),D("close",o);break;case"iframe":case"object":case"embed":D("load",o);break;case"video":case"audio":for(a=0;a<\/script>",i=i.removeChild(i.firstChild)):typeof o.is=="string"?i=h.createElement(s,{is:o.is}):(i=h.createElement(s),s==="select"&&(h=i,o.multiple?h.multiple=!0:o.size&&(h.size=o.size))):i=h.createElementNS(i,s),i[Of]=e,i[Pf]=o,Aj(i,e,!1,!1),e.stateNode=i;e:{switch(h=vb(s,o),s){case"dialog":D("cancel",i),D("close",i),a=o;break;case"iframe":case"object":case"embed":D("load",i),a=o;break;case"video":case"audio":for(a=0;aHj&&(e.flags|=128,o=!0,Ej(c,!1),e.lanes=4194304)}else{if(!o)if(i=Mh(h),i!==null){if(e.flags|=128,o=!0,s=i.updateQueue,s!==null&&(e.updateQueue=s,e.flags|=4),Ej(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!I)return S(e),null}else 2*B()-c.renderingStartTime>Hj&&s!==1073741824&&(e.flags|=128,o=!0,Ej(c,!1),e.lanes=4194304);c.isBackwards?(h.sibling=e.child,e.child=h):(s=c.last,s!==null?s.sibling=h:e.child=h,c.last=h)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=B(),e.sibling=null,s=M.current,G(M,o?s&1|2:s&1),e):(S(e),null);case 22:case 23:return Ij(),o=e.memoizedState!==null,i!==null&&i.memoizedState!==null!==o&&(e.flags|=8192),o&&e.mode&1?gj&1073741824&&(S(e),e.subtreeFlags&6&&(e.flags|=8192)):S(e),null;case 24:return null;case 25:return null}throw Error(p(156,e.tag))}function Jj(i,e){switch(wg(e),e.tag){case 1:return Zf(e.type)&&$f(),i=e.flags,i&65536?(e.flags=i&-65537|128,e):null;case 3:return Jh(),E(Wf),E(H),Oh(),i=e.flags,i&65536&&!(i&128)?(e.flags=i&-65537|128,e):null;case 5:return Lh(e),null;case 13:if(E(M),i=e.memoizedState,i!==null&&i.dehydrated!==null){if(e.alternate===null)throw Error(p(340));Ig()}return i=e.flags,i&65536?(e.flags=i&-65537|128,e):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(e.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Mj(i,e){var s=i.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(o){W(i,e,o)}else s.current=null}function Nj(i,e,s){try{s()}catch(o){W(i,e,o)}}var Oj=!1;function Pj(i,e){if(Cf=dd,i=Me(),Ne(i)){if("selectionStart"in i)var s={start:i.selectionStart,end:i.selectionEnd};else e:{s=(s=i.ownerDocument)&&s.defaultView||window;var o=s.getSelection&&s.getSelection();if(o&&o.rangeCount!==0){s=o.anchorNode;var a=o.anchorOffset,c=o.focusNode;o=o.focusOffset;try{s.nodeType,c.nodeType}catch{s=null;break e}var h=0,g=-1,d=-1,b=0,_=0,j=i,$=null;t:for(;;){for(var _e;j!==s||a!==0&&j.nodeType!==3||(g=h+a),j!==c||o!==0&&j.nodeType!==3||(d=h+o),j.nodeType===3&&(h+=j.nodeValue.length),(_e=j.firstChild)!==null;)$=j,j=_e;for(;;){if(j===i)break t;if($===s&&++b===a&&(g=h),$===c&&++_===o&&(d=h),(_e=j.nextSibling)!==null)break;j=$,$=j.parentNode}j=_e}s=g===-1||d===-1?null:{start:g,end:d}}else s=null}s=s||{start:0,end:0}}else s=null;for(Df={focusedElem:i,selectionRange:s},dd=!1,V=e;V!==null;)if(e=V,i=e.child,(e.subtreeFlags&1028)!==0&&i!==null)i.return=e,V=i;else for(;V!==null;){e=V;try{var et=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(et!==null){var tt=et.memoizedProps,st=et.memoizedState,nt=e.stateNode,rt=nt.getSnapshotBeforeUpdate(e.elementType===e.type?tt:Lg(e.type,tt),st);nt.__reactInternalSnapshotBeforeUpdate=rt}break;case 3:var it=e.stateNode.containerInfo;it.nodeType===1?it.textContent="":it.nodeType===9&&it.documentElement&&it.removeChild(it.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163))}}catch(ot){W(e,e.return,ot)}if(i=e.sibling,i!==null){i.return=e.return,V=i;break}V=e.return}return et=Oj,Oj=!1,et}function Qj(i,e,s){var o=e.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&i)===i){var c=a.destroy;a.destroy=void 0,c!==void 0&&Nj(e,s,c)}a=a.next}while(a!==o)}}function Rj(i,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var s=e=e.next;do{if((s.tag&i)===i){var o=s.create;s.destroy=o()}s=s.next}while(s!==e)}}function Sj(i){var e=i.ref;if(e!==null){var s=i.stateNode;switch(i.tag){case 5:i=s;break;default:i=s}typeof e=="function"?e(i):e.current=i}}function Tj(i){var e=i.alternate;e!==null&&(i.alternate=null,Tj(e)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(e=i.stateNode,e!==null&&(delete e[Of],delete e[Pf],delete e[of],delete e[Qf],delete e[Rf])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function Uj(i){return i.tag===5||i.tag===3||i.tag===4}function Vj(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Uj(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Wj(i,e,s){var o=i.tag;if(o===5||o===6)i=i.stateNode,e?s.nodeType===8?s.parentNode.insertBefore(i,e):s.insertBefore(i,e):(s.nodeType===8?(e=s.parentNode,e.insertBefore(i,s)):(e=s,e.appendChild(i)),s=s._reactRootContainer,s!=null||e.onclick!==null||(e.onclick=Bf));else if(o!==4&&(i=i.child,i!==null))for(Wj(i,e,s),i=i.sibling;i!==null;)Wj(i,e,s),i=i.sibling}function Xj(i,e,s){var o=i.tag;if(o===5||o===6)i=i.stateNode,e?s.insertBefore(i,e):s.appendChild(i);else if(o!==4&&(i=i.child,i!==null))for(Xj(i,e,s),i=i.sibling;i!==null;)Xj(i,e,s),i=i.sibling}var X=null,Yj=!1;function Zj(i,e,s){for(s=s.child;s!==null;)ak(i,e,s),s=s.sibling}function ak(i,e,s){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,s)}catch{}switch(s.tag){case 5:U||Mj(s,e);case 6:var o=X,a=Yj;X=null,Zj(i,e,s),X=o,Yj=a,X!==null&&(Yj?(i=X,s=s.stateNode,i.nodeType===8?i.parentNode.removeChild(s):i.removeChild(s)):X.removeChild(s.stateNode));break;case 18:X!==null&&(Yj?(i=X,s=s.stateNode,i.nodeType===8?Kf(i.parentNode,s):i.nodeType===1&&Kf(i,s),bd(i)):Kf(X,s.stateNode));break;case 4:o=X,a=Yj,X=s.stateNode.containerInfo,Yj=!0,Zj(i,e,s),X=o,Yj=a;break;case 0:case 11:case 14:case 15:if(!U&&(o=s.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){a=o=o.next;do{var c=a,h=c.destroy;c=c.tag,h!==void 0&&(c&2||c&4)&&Nj(s,e,h),a=a.next}while(a!==o)}Zj(i,e,s);break;case 1:if(!U&&(Mj(s,e),o=s.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=s.memoizedProps,o.state=s.memoizedState,o.componentWillUnmount()}catch(g){W(s,e,g)}Zj(i,e,s);break;case 21:Zj(i,e,s);break;case 22:s.mode&1?(U=(o=U)||s.memoizedState!==null,Zj(i,e,s),U=o):Zj(i,e,s);break;default:Zj(i,e,s)}}function bk(i){var e=i.updateQueue;if(e!==null){i.updateQueue=null;var s=i.stateNode;s===null&&(s=i.stateNode=new Lj),e.forEach(function(o){var a=ck.bind(null,i,o);s.has(o)||(s.add(o),o.then(a,a))})}}function dk(i,e){var s=e.deletions;if(s!==null)for(var o=0;oa&&(a=h),o&=~c}if(o=a,o=B()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*mk(o/1960))-o,10i?16:i,xk===null)var o=!1;else{if(i=xk,xk=null,yk=0,K&6)throw Error(p(331));var a=K;for(K|=4,V=i.current;V!==null;){var c=V,h=c.child;if(V.flags&16){var g=c.deletions;if(g!==null){for(var d=0;dB()-gk?Lk(i,0):sk|=s),Ek(i,e)}function Zk(i,e){e===0&&(i.mode&1?(e=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):e=1);var s=L();i=Zg(i,e),i!==null&&(Ac(i,e,s),Ek(i,s))}function vj(i){var e=i.memoizedState,s=0;e!==null&&(s=e.retryLane),Zk(i,s)}function ck(i,e){var s=0;switch(i.tag){case 13:var o=i.stateNode,a=i.memoizedState;a!==null&&(s=a.retryLane);break;case 19:o=i.stateNode;break;default:throw Error(p(314))}o!==null&&o.delete(e),Zk(i,s)}var Wk;Wk=function(i,e,s){if(i!==null)if(i.memoizedProps!==e.pendingProps||Wf.current)Ug=!0;else{if(!(i.lanes&s)&&!(e.flags&128))return Ug=!1,zj(i,e,s);Ug=!!(i.flags&131072)}else Ug=!1,I&&e.flags&1048576&&ug(e,ng,e.index);switch(e.lanes=0,e.tag){case 2:var o=e.type;jj(i,e),i=e.pendingProps;var a=Yf(e,H.current);Tg(e,s),a=Xh(null,e,o,i,a,s);var c=bi();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Zf(o)?(c=!0,cg(e)):c=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ah(e),a.updater=nh,e.stateNode=a,a._reactInternals=e,rh(e,o,i,s),e=kj(null,e,o,!0,c,s)):(e.tag=0,I&&c&&vg(e),Yi(null,e,a,s),e=e.child),e;case 16:o=e.elementType;e:{switch(jj(i,e),i=e.pendingProps,a=o._init,o=a(o._payload),e.type=o,a=e.tag=$k(o),i=Lg(o,i),a){case 0:e=dj(null,e,o,i,s);break e;case 1:e=ij(null,e,o,i,s);break e;case 11:e=Zi(null,e,o,i,s);break e;case 14:e=aj(null,e,o,Lg(o.type,i),s);break e}throw Error(p(306,o,""))}return e;case 0:return o=e.type,a=e.pendingProps,a=e.elementType===o?a:Lg(o,a),dj(i,e,o,a,s);case 1:return o=e.type,a=e.pendingProps,a=e.elementType===o?a:Lg(o,a),ij(i,e,o,a,s);case 3:e:{if(lj(e),i===null)throw Error(p(387));o=e.pendingProps,c=e.memoizedState,a=c.element,bh(i,e),gh(e,o,null,s);var h=e.memoizedState;if(o=h.element,c.isDehydrated)if(c={element:o,isDehydrated:!1,cache:h.cache,pendingSuspenseBoundaries:h.pendingSuspenseBoundaries,transitions:h.transitions},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){a=Ki(Error(p(423)),e),e=mj(i,e,o,s,a);break e}else if(o!==a){a=Ki(Error(p(424)),e),e=mj(i,e,o,s,a);break e}else for(yg=Lf(e.stateNode.containerInfo.firstChild),xg=e,I=!0,zg=null,s=Ch(e,null,o,s),e.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Ig(),o===a){e=$i(i,e,s);break e}Yi(i,e,o,s)}e=e.child}return e;case 5:return Kh(e),i===null&&Eg(e),o=e.type,a=e.pendingProps,c=i!==null?i.memoizedProps:null,h=a.children,Ef(o,a)?h=null:c!==null&&Ef(o,c)&&(e.flags|=32),hj(i,e),Yi(i,e,h,s),e.child;case 6:return i===null&&Eg(e),null;case 13:return pj(i,e,s);case 4:return Ih(e,e.stateNode.containerInfo),o=e.pendingProps,i===null?e.child=Bh(e,null,o,s):Yi(i,e,o,s),e.child;case 11:return o=e.type,a=e.pendingProps,a=e.elementType===o?a:Lg(o,a),Zi(i,e,o,a,s);case 7:return Yi(i,e,e.pendingProps,s),e.child;case 8:return Yi(i,e,e.pendingProps.children,s),e.child;case 12:return Yi(i,e,e.pendingProps.children,s),e.child;case 10:e:{if(o=e.type._context,a=e.pendingProps,c=e.memoizedProps,h=a.value,G(Mg,o._currentValue),o._currentValue=h,c!==null)if(He(c.value,h)){if(c.children===a.children&&!Wf.current){e=$i(i,e,s);break e}}else for(c=e.child,c!==null&&(c.return=e);c!==null;){var g=c.dependencies;if(g!==null){h=c.child;for(var d=g.firstContext;d!==null;){if(d.context===o){if(c.tag===1){d=ch(-1,s&-s),d.tag=2;var b=c.updateQueue;if(b!==null){b=b.shared;var _=b.pending;_===null?d.next=d:(d.next=_.next,_.next=d),b.pending=d}}c.lanes|=s,d=c.alternate,d!==null&&(d.lanes|=s),Sg(c.return,s,e),g.lanes|=s;break}d=d.next}}else if(c.tag===10)h=c.type===e.type?null:c.child;else if(c.tag===18){if(h=c.return,h===null)throw Error(p(341));h.lanes|=s,g=h.alternate,g!==null&&(g.lanes|=s),Sg(h,s,e),h=c.sibling}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===e){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return}c=h}Yi(i,e,a.children,s),e=e.child}return e;case 9:return a=e.type,o=e.pendingProps.children,Tg(e,s),a=Vg(a),o=o(a),e.flags|=1,Yi(i,e,o,s),e.child;case 14:return o=e.type,a=Lg(o,e.pendingProps),a=Lg(o.type,a),aj(i,e,o,a,s);case 15:return cj(i,e,e.type,e.pendingProps,s);case 17:return o=e.type,a=e.pendingProps,a=e.elementType===o?a:Lg(o,a),jj(i,e),e.tag=1,Zf(o)?(i=!0,cg(e)):i=!1,Tg(e,s),ph(e,o,a),rh(e,o,a,s),kj(null,e,o,!0,i,s);case 19:return yj(i,e,s);case 22:return ej(i,e,s)}throw Error(p(156,e.tag))};function Gk(i,e){return ac(i,e)}function al(i,e,s,o){this.tag=i,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(i,e,s,o){return new al(i,e,s,o)}function bj(i){return i=i.prototype,!(!i||!i.isReactComponent)}function $k(i){if(typeof i=="function")return bj(i)?1:0;if(i!=null){if(i=i.$$typeof,i===Da)return 11;if(i===Ga)return 14}return 2}function wh(i,e){var s=i.alternate;return s===null?(s=Bg(i.tag,e,i.key,i.mode),s.elementType=i.elementType,s.type=i.type,s.stateNode=i.stateNode,s.alternate=i,i.alternate=s):(s.pendingProps=e,s.type=i.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=i.flags&14680064,s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},s.sibling=i.sibling,s.index=i.index,s.ref=i.ref,s}function yh(i,e,s,o,a,c){var h=2;if(o=i,typeof i=="function")bj(i)&&(h=1);else if(typeof i=="string")h=5;else e:switch(i){case ya:return Ah(s.children,a,c,e);case za:h=8,a|=8;break;case Aa:return i=Bg(12,s,e,a|2),i.elementType=Aa,i.lanes=c,i;case Ea:return i=Bg(13,s,e,a),i.elementType=Ea,i.lanes=c,i;case Fa:return i=Bg(19,s,e,a),i.elementType=Fa,i.lanes=c,i;case Ia:return qj(s,a,c,e);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Ba:h=10;break e;case Ca:h=9;break e;case Da:h=11;break e;case Ga:h=14;break e;case Ha:h=16,o=null;break e}throw Error(p(130,i==null?i:typeof i,""))}return e=Bg(h,s,e,a),e.elementType=i,e.type=o,e.lanes=c,e}function Ah(i,e,s,o){return i=Bg(7,i,o,e),i.lanes=s,i}function qj(i,e,s,o){return i=Bg(22,i,o,e),i.elementType=Ia,i.lanes=s,i.stateNode={isHidden:!1},i}function xh(i,e,s){return i=Bg(6,i,null,e),i.lanes=s,i}function zh(i,e,s){return e=Bg(4,i.children!==null?i.children:[],i.key,e),e.lanes=s,e.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},e}function bl(i,e,s,o,a){this.tag=e,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=o,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function cl(i,e,s,o,a,c,h,g,d){return i=new bl(i,e,s,g,d),e===1?(e=1,c===!0&&(e|=8)):e=0,c=Bg(3,null,null,e),i.current=c,c.stateNode=i,c.memoizedState={element:o,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(c),i}function dl(i,e,s){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(i){console.error(i)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const openbtn="_openbtn_1gnwd_1",overlay="_overlay_1gnwd_8",modalWrapper="_modalWrapper_1gnwd_18",closebtn="_closebtn_1gnwd_34",styles$c={openbtn,overlay,modalWrapper,closebtn},ModalPopup=({showModal:i,setShowModal:e,title:s,content:o})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:i&&jsxRuntimeExports.jsx("div",{className:styles$c.overlay,onClick:()=>e(!1),children:jsxRuntimeExports.jsx("div",{className:styles$c.modalWrapper,onClick:a=>a.stopPropagation(),children:jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{children:s}),jsxRuntimeExports.jsx("p",{children:o}),jsxRuntimeExports.jsx("button",{onClick:()=>e(!1),className:styles$c.closebtn,children:"Close"})]})})})}),App$2=()=>{const[i,e]=reactExports.useState(!1),s={title:"Modal Heading",content:"Lorem ipsum, dolor sit amet consectetur adipisicing elit. Error, voluptates. Nobis delectus magni quaerat et deserunt fuga temporibus doloribus vero quidem repellat suscipit nulla tempora eveniet, repellendus deleniti placeat quibusdam."};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("button",{className:styles$c.openbtn,onClick:()=>e(!0),children:"Open Modal"}),reactDomExports.createPortal(jsxRuntimeExports.jsx(ModalPopup,{showModal:i,setShowModal:e,title:s.title,content:s.content}),document.body)]})},main="_main_xdwm1_2",container$2="_container_xdwm1_10",iconContainer="_iconContainer_xdwm1_33",icon="_icon_xdwm1_33",inputField="_inputField_xdwm1_54",toast="_toast_xdwm1_66",loader="_loader_xdwm1_81",spin="_spin_xdwm1_1",loaderContainer="_loaderContainer_xdwm1_90",topSection="_topSection_xdwm1_95",select="_select_xdwm1_101",copyText="_copyText_xdwm1_113",hidden="_hidden_xdwm1_120",comments="_comments_xdwm1_176",styles$b={main,container:container$2,iconContainer,icon,inputField,toast,loader,spin,loaderContainer,topSection,select,copyText,hidden,comments},access_key="eb3aa13df1b14cc7bc614fc2d7f894f41b09d68a",Emoji=()=>{const[i,e]=reactExports.useState([]),[s,o]=reactExports.useState([]),[a,c]=reactExports.useState(""),[h,g]=reactExports.useState(""),[d,b]=reactExports.useState([]);reactExports.useEffect(()=>{_(),j(),window.scrollTo(0,0)},[]);const _=()=>{axios$1.get(`https://emoji-api.com/emojis?access_key=${access_key}`).then(st=>{e(st.data),o(st.data)})},j=()=>{axios$1.get(`https://emoji-api.com/categories?access_key=${access_key}`).then(st=>{b(st.data)})},$=st=>{const[nt,...rt]=st.split(" ");return rt.join(" ")},_e=st=>{let nt=st.target.value;c(nt);let rt=i.filter(it=>it.unicodeName.toLowerCase().includes(nt.trim().toLowerCase()));o(rt)},et=st=>{c(""),o([]),e([]),st.target.value=="all"?_():axios$1.get(`https://emoji-api.com/categories/${st.target.value}?access_key=${access_key}`).then(nt=>{e(nt.data),o(nt.data)})},tt=st=>{let nt=document.createRange();nt.selectNode(document.getElementById(st)),window.getSelection().removeAllRanges(),window.getSelection().addRange(nt),document.execCommand("copy"),window.getSelection().removeAllRanges(),g("Copied Successfully!"),setTimeout(()=>{g("")},1500)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("div",{className:styles$b.topSection,children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("select",{className:styles$b.select,onChange:et,children:[jsxRuntimeExports.jsx("option",{children:"all"}),d.map(st=>jsxRuntimeExports.jsx("option",{value:st.slug,children:st.slug.replace("-"," ")}))]})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("input",{type:"text",placeholder:"Search",onChange:_e,value:a,className:styles$b.inputField})}),jsxRuntimeExports.jsx("div",{className:`${styles$b.copyText} ${s==null||(s==null?void 0:s.length)===0?styles$b.hidden:""}`,children:"Click on an Emoji to Copy"})]}),jsxRuntimeExports.jsxs("div",{className:styles$b.container,children:[(s==null?void 0:s.length)==0&&a.trim()==""&&jsxRuntimeExports.jsx("div",{className:styles$b.loaderContainer,children:jsxRuntimeExports.jsx("div",{className:styles$b.loader})}),s==null?void 0:s.map((st,nt)=>jsxRuntimeExports.jsx("span",{className:styles$b.iconContainer,onClick:()=>tt(st.unicodeName+"_"+nt),children:jsxRuntimeExports.jsx("span",{className:styles$b.icon,title:$(st.unicodeName),id:st.unicodeName+"_"+nt,children:st.character})},nt))]}),h&&jsxRuntimeExports.jsx("div",{className:styles$b.toast,children:h})]})},obj=` + **Main Functionalities** + + + **Copy Block level(div) elements to clipboard** +function copyToClipboard(element) { + // Create a range object that selects the element + + // to be copied. + const range = document.createRange(); + range.selectNode(element); + + // clear current selection + window.getSelection().removeAllRanges(); + + // Selects the given range. + window.getSelection().addRange(range); + + // Copy the selection to the clipboard. + document.execCommand('copy'); + + // Remove the range from the selection. + selection.removeAllRanges(); +} + + + **Filter emojis based on search value** +emojis.filter((icon) => { + icon.toLowerCase().includes(searchValue.toLowerCase()) +}) + + + **axios to call API** +axios.get(__url__) + .then(response => { + // Handle response + }); +`,Code=()=>jsxRuntimeExports.jsx("div",{className:styles$b.container,children:jsxRuntimeExports.jsx("pre",{children:jsxRuntimeExports.jsx("code",{children:obj.split(` +`).map((i,e)=>i.trim().startsWith("//")?jsxRuntimeExports.jsx("span",{className:styles$b.comments,children:i},e):i.trim().startsWith("**")?jsxRuntimeExports.jsx("b",{children:i},e):jsxRuntimeExports.jsx("div",{children:i},e))})})});function App$1(){return jsxRuntimeExports.jsxs("div",{className:styles$b.main,children:[jsxRuntimeExports.jsx(Emoji,{}),jsxRuntimeExports.jsx(Code,{})]})}const languagesData=[{name:"SQL",year:1970,creator:"Donald D. Chamberlin, Raymond F. Boyce",usecase:"Database management"},{name:"C",year:1972,creator:"Dennis Ritchie",usecase:"System programming, embedded systems"},{name:"C++",year:1983,creator:"Bjarne Stroustrup",usecase:"Game development, system software"},{name:"Perl",year:1987,creator:"Larry Wall",usecase:"Scripting, web development, automation"},{name:"HTML",year:1991,creator:"Tim Berners-Lee",usecase:"Web content structure"},{name:"Python",year:1991,creator:"Guido van Rossum",usecase:"Web development, data analysis, AI"},{name:"Java",year:1995,creator:"James Gosling",usecase:"Enterprise software, Android apps"},{name:"JavaScript",year:1995,creator:"Brendan Eich",usecase:"Web development, browser scripting"},{name:"PHP",year:1995,creator:"Rasmus Lerdorf",usecase:"Web development, server-side scripting"},{name:"CSS",year:1996,creator:"Håkon Wium Lie, Bert Bos",usecase:"Web page styling"},{name:"C#",year:2e3,creator:"Microsoft",usecase:"Windows apps, game development"},{name:"Scala",year:2003,creator:"Martin Odersky",usecase:"Web applications, data analysis"},{name:"Golang",year:2009,creator:"Robert Griesemer, Rob Pike, Ken Thompson",usecase:"Cloud computing, microservices"},{name:"Rust",year:2010,creator:"Graydon Hoare",usecase:"Systems programming, safety"},{name:"Kotlin",year:2011,creator:"JetBrains",usecase:"Android app development, server-side"},{name:"Swift",year:2014,creator:"Apple Inc.",usecase:"iOS, macOS app development"}],container$1="_container_5ie15_1",languageList="_languageList_5ie15_6",languageCard="_languageCard_5ie15_12",languageName="_languageName_5ie15_28",info="_info_5ie15_34",heading$3="_heading_5ie15_40",styles$a={container:container$1,languageList,languageCard,languageName,info,heading:heading$3};function LanguageInfo({name:i,year:e,creator:s,usecase:o}){return jsxRuntimeExports.jsxs("div",{className:styles$a.languageCard,children:[jsxRuntimeExports.jsx("h2",{className:styles$a.languageName,children:i}),jsxRuntimeExports.jsxs("p",{className:styles$a.info,children:["Year of Start: ",e]}),jsxRuntimeExports.jsxs("p",{className:styles$a.info,children:["Creator: ",s]}),jsxRuntimeExports.jsxs("p",{className:styles$a.info,children:["Use Case: ",o]})]})}function ProgrammingLanguageMultiverse(){return jsxRuntimeExports.jsx("div",{className:styles$a.container,children:jsxRuntimeExports.jsx("div",{className:styles$a.languageList,children:languagesData.map((i,e)=>jsxRuntimeExports.jsx(LanguageInfo,{...i},e))})})}const challenges=new Map([["counter",{title:"Counter",link:"counter",difficulty:"easy",developer:"sadanandpai",tags:[]}],["programming-languages-multiverse",{title:"Programming Languages Multiverse",link:"programming-languages-multiverse",difficulty:"easy",developer:"Sumitwarrior7",tags:[],isNew:!0}],["quote-generator",{title:"Quote Generator",link:"quote-generator",difficulty:"easy",developer:"viditagrawal56",isNew:!0,tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:"easy",developer:"Bhushan1019",isNew:!0,tags:[]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:"easy",tags:[]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:"easy",isNew:!0,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:"easy",developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:"easy",developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:"easy",developer:"Sumitwarrior7",tags:[],isNew:!0}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:"easy",developer:"ravi02205",tags:[],isNew:!0}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:"easy",developer:"deepakrajkranti",tags:[]}],["pagination",{title:"Pagination",link:"pagination",difficulty:"easy",developer:"Pancratzia",tags:[],isNew:!0}],["stack",{title:"Stack",link:"stack",difficulty:"easy",developer:"kumaratul60",tags:[],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:"easy",developer:"Sumitwarrior7",tags:[],isNew:!0}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:"easy",developer:"Sumitwarrior7",tags:[],isNew:!0}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:"easy",developer:"NikhilJHA01",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:"easy",developer:"arpansaha13",tags:[]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:"easy",developer:"arpansaha13",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:"easy",developer:"rashidtvmr",tags:[],isNew:!0}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:"easy",developer:"harsh472000",tags:[],isNew:!0}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:"easy",developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:"easy",developer:"ashikjhonson",tags:[]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:"medium",developer:"Sumitwarrior7",tags:[],isNew:!0}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:"medium",developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:"medium",developer:"deepu0",tags:[]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:"medium",developer:"rishabhm05",tags:[],isNew:!0}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:"medium",developer:"deepu0",tags:[]}],["column-table",{title:"Column Table",link:"column-table",difficulty:"medium",developer:"sadanandpai",tags:[],isNew:!0}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:"medium",developer:"deepakrajkranti",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:"medium",developer:"insharahAyyubi",tags:[],isNew:!0}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:"medium",developer:"rashidtvmr",tags:[],isNew:!0}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:"medium",developer:"dhanu084",tags:[],isNew:!0}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:"medium",developer:"Kei-K23",tags:[],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:"medium",developer:"Kei-K23",tags:[],isNew:!0}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:"medium",developer:"sadanandpai",tags:[],isNew:!0}],["infinite-scrolling",{title:"Infinite Scrolling (online)",link:"infinite-scrolling",difficulty:"medium",developer:"ayush-dutt-sharma",tags:[],isNew:!0}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:"hard",developer:"sadanandpai",tags:[],isNew:!0}],["autocomplete-offline",{title:"Typeahead / Autocomplete (offline)",link:"autocomplete-offline",difficulty:"hard",developer:"deepu0",tags:[]}],["autocomplete-online",{title:"Typeahead / Autocomplete (online)",link:"autocomplete-online",difficulty:"hard",developer:"deepu0",tags:[]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:"medium",developer:"jeevaramanathan",tags:[],isNew:!0}]]),reactChallenges={counter:jsxRuntimeExports.jsx(Counter,{}),accordion:jsxRuntimeExports.jsx(App$q,{}),"background-changer":jsxRuntimeExports.jsx(BackgroundChanger,{}),"star-Rating":jsxRuntimeExports.jsx(App$7,{}),"light-dark-mode":jsxRuntimeExports.jsx(App$g,{}),"Guess-the-number":jsxRuntimeExports.jsx(App$j,{}),"telephone-formatter":jsxRuntimeExports.jsx(TelephoneFormatter,{}),"toast-popup":jsxRuntimeExports.jsx(Toast,{}),"password-strength":jsxRuntimeExports.jsx(PasswordStrength,{}),"todo-list":jsxRuntimeExports.jsx(Todo,{}),"investment-calculator":jsxRuntimeExports.jsx(App$h,{}),stopwatch:jsxRuntimeExports.jsx(App$6,{}),progressbar:jsxRuntimeExports.jsx(App$b,{}),"infinite-scrolling":jsxRuntimeExports.jsx(App$i,{}),"file-explorer":jsxRuntimeExports.jsx(App$m,{}),"autocomplete-offline":jsxRuntimeExports.jsx(Autocomplete,{}),"autocomplete-online":jsxRuntimeExports.jsx(AutocompleteOnline,{}),"tic-tac-toe":jsxRuntimeExports.jsx(App$4,{}),stack:jsxRuntimeExports.jsx(Stack,{}),"food-recipe":jsxRuntimeExports.jsx(App$k,{}),"match-pair":jsxRuntimeExports.jsx(MatchPair,{}),"password-generator":jsxRuntimeExports.jsx(App$d,{}),"column-table":jsxRuntimeExports.jsx(ColumnTable,{}),"table-colorizer":jsxRuntimeExports.jsx(TableColorizer,{}),"25-5-clock":jsxRuntimeExports.jsx(TwentyfiveFiveClock,{}),"bmi-calculator":jsxRuntimeExports.jsx(App$o,{}),"email-templates":jsxRuntimeExports.jsx(EmailTemplates,{}),"expense-tracker":jsxRuntimeExports.jsx(App$n,{}),pagination:jsxRuntimeExports.jsx(App$f,{}),"qr-code-generator":jsxRuntimeExports.jsx(App$a,{}),"quote-generator":jsxRuntimeExports.jsx(App$9,{}),"image-gallery":jsxRuntimeExports.jsx(ImageGallery,{}),"word-count":jsxRuntimeExports.jsx(WordCounter,{}),"temperature-converter":jsxRuntimeExports.jsx(TemperatureConverter,{}),"color-mixer":jsxRuntimeExports.jsx(ColorMixer,{}),"string-transformers":jsxRuntimeExports.jsx(StringTransformers,{}),"your-sport":jsxRuntimeExports.jsx(YourSport,{}),"modal-popup":jsxRuntimeExports.jsx(App$2,{}),"emoji-picker":jsxRuntimeExports.jsx(App$1,{}),"programming-languages-multiverse":jsxRuntimeExports.jsx(ProgrammingLanguageMultiverse,{})};function Challenge(){var s;const i=useParams(),e=(i==null?void 0:i.id)??"";return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ChallengeNavbar,{title:(s=challenges.get(e))==null?void 0:s.title}),jsxRuntimeExports.jsx("div",{className:"container",children:reactChallenges[e]})]})}const contributors=new Map([["sadanandpai",{name:"Sadanand Pai",pic:"https://avatars.githubusercontent.com/u/12962887"}],["AdityaSuryawanshi",{name:"Aditya Suryawanshi",pic:"https://avatars.githubusercontent.com/u/124609794?v=4"}],["NikhilJHA01",{name:"Nikhil Jha",pic:"https://avatars.githubusercontent.com/u/63518046"}],["noorulaink00",{name:"Noor Ul Ain Khan",pic:"https://avatars.githubusercontent.com/u/65324193"}],["deepu0",{name:"Deepak Kumar",pic:"https://avatars.githubusercontent.com/u/22304384"}],["deepakRikhav",{name:"Deepak Rikhav",pic:"https://avatars.githubusercontent.com/u/97227284"}],["arpansaha13",{name:"Arpan Saha",pic:"https://avatars.githubusercontent.com/u/82361490"}],["deepakrajkranti",{name:"Deepak Raj",pic:"https://avatars.githubusercontent.com/u/88797436"}],["insharahAyyubi",{name:"Insharah Ayyubi",pic:"https://avatars.githubusercontent.com/u/103804673"}],["rashidtvmr",{name:"Rashid",pic:"https://avatars.githubusercontent.com/u/58169715"}],["gauravsinhaweb",{name:"Gaurav Sinha",pic:"https://avatars.githubusercontent.com/u/75125943"}],["ayush-dutt-sharma",{name:"Ayush Dutt Sharma",pic:"https://avatars.githubusercontent.com/u/73738613"}],["dhanu084",{name:"Dhanush Kiran",pic:"https://avatars.githubusercontent.com/u/54932658"}],["kumaratul60",{name:"Atul Kumar Awasthi",pic:"https://avatars.githubusercontent.com/u/53579888"}],["Kei-K23",{name:"Kei-K",pic:"https://avatars.githubusercontent.com/u/134714087"}],["ravi02205",{name:"Ravi Kumar Panchal",pic:"https://avatars.githubusercontent.com/u/81222901"}],["caesar003",{name:"Khaisar Muksid",pic:"https://avatars.githubusercontent.com/u/37962465"}],["harsh472000",{name:"Harsh Meghani",pic:"https://avatars.githubusercontent.com/u/55913938"}],["Pancratzia",{name:"Laura Ortega",pic:"https://avatars.githubusercontent.com/u/54899954"}],["ashikjhonson",{name:"Ashik Jhonson",pic:"https://avatars.githubusercontent.com/u/97791612"}],["Krishnakalani111",{name:"Krishna Kalani",pic:"https://avatars.githubusercontent.com/u/88764668"}],["viditagrawal56",{name:"Vidit Agrawal",pic:"https://avatars.githubusercontent.com/u/52532308"}],["Bhushan1019",{name:"Bhushan Patil",pic:"https://avatars.githubusercontent.com/u/121352274"}],["Sumitwarrior7",{name:"Cool Dude 69",pic:"https://avatars.githubusercontent.com/u/108853577"}],["rishabhm05",{name:"Rishabh Mehta",pic:"https://avatars.githubusercontent.com/u/67910259"}],["jeevaramanathan",{name:"Jeeva Ramanathan",pic:"https://avatars.githubusercontent.com/u/64531160"}]]),avatar="_avatar_1jv0o_1",avatarGroup="_avatarGroup_1jv0o_11",styles$9={avatar,avatarGroup};function Avatar({src:i,alt:e}){return jsxRuntimeExports.jsx("img",{src:i,alt:e,className:styles$9.avatar})}function AvatarGroup({contributorNames:i}){return jsxRuntimeExports.jsx("div",{className:styles$9.avatarGroup,children:i.map(e=>{var o;const s=(o=contributors.get(e))==null?void 0:o.pic;return s?jsxRuntimeExports.jsx(Avatar,{src:s,alt:""},e):null}).filter(Boolean)})}const challengeGrid="_challengeGrid_140w8_1",challengeCard="_challengeCard_140w8_8",avatarContainer="_avatarContainer_140w8_21",disabled="_disabled_140w8_29",developer="_developer_140w8_53",name="_name_140w8_66",medium="_medium_140w8_69",hard="_hard_140w8_72",styles$8={challengeGrid,challengeCard,avatarContainer,disabled,new:"_new_140w8_43",developer,name,medium,hard};function ChallengeGrid(){return jsxRuntimeExports.jsx("div",{className:styles$8.challengeGrid,children:Array.from(challenges.values()).map(i=>{var e,s;return jsxRuntimeExports.jsxs("a",{className:`${styles$8.challengeCard} ${styles$8[i.difficulty]}`,href:"#/"+i.link,children:[i.isNew&&jsxRuntimeExports.jsx("span",{className:styles$8.new,children:"New"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{children:i.title}),jsxRuntimeExports.jsxs("div",{className:styles$8.avatarContainer,children:[i.developer&&jsxRuntimeExports.jsxs("div",{className:styles$8.developer,children:[jsxRuntimeExports.jsx("img",{src:(e=contributors.get(i.developer))==null?void 0:e.pic,alt:""}),jsxRuntimeExports.jsx("span",{className:styles$8.name,children:(s=contributors.get(i.developer))==null?void 0:s.name})]}),i.contributors&&jsxRuntimeExports.jsx(AvatarGroup,{contributorNames:i.contributors})]})]})]},i.title)})})}const navbar="_navbar_bgl2j_1",logo="_logo_bgl2j_8",links="_links_bgl2j_23",github="_github_bgl2j_29",styles$7={navbar,logo,links,github};function Navbar({children:i}){return jsxRuntimeExports.jsxs("nav",{className:styles$7.navbar,children:[jsxRuntimeExports.jsxs("a",{className:styles$7.logo,href:"/frontend-mini-challenges/",children:[jsxRuntimeExports.jsx("img",{src:"/frontend-mini-challenges/react/dist/logo.png",alt:"logo"}),jsxRuntimeExports.jsx("span",{children:"Frontend Mini Challenges"})]}),jsxRuntimeExports.jsx("div",{className:styles$7.links,children:i}),jsxRuntimeExports.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",children:jsxRuntimeExports.jsx("img",{src:"https://cdn-icons-png.flaticon.com/512/25/25231.png",alt:"github repo",className:styles$7.github})})]})}const topBtn="_topBtn_1lydx_1",styles$6={topBtn};function ScrollBtn(){const[i,e]=reactExports.useState(!1);reactExports.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?e(!0):e(!1)})},[]);const s=()=>{window.scrollTo({top:0,behavior:"smooth"})};return i&&jsxRuntimeExports.jsx("button",{className:styles$6.topBtn,onClick:s,children:jsxRuntimeExports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-chevron-double-up",viewBox:"0 0 16 16",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",d:"M7.646 2.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 3.707 2.354 9.354a.5.5 0 1 1-.708-.708l6-6z"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",d:"M7.646 6.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 7.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"})]})})}function App(){return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Navbar,{children:[jsxRuntimeExports.jsx("a",{href:"/frontend-mini-challenges/native",children:"JavaScript Mini Challenges"}),jsxRuntimeExports.jsx("a",{href:"/frontend-mini-challenges/vue/dist/#/",children:"VueJs Mini Challenges"})]}),jsxRuntimeExports.jsxs("div",{className:"container text-center",children:[jsxRuntimeExports.jsx(ChallengeGrid,{}),jsxRuntimeExports.jsx(ScrollBtn,{})]})]})}const heading$2="_heading_ngxka_1",contributionContainer="_contributionContainer_ngxka_6",contributor="_contributor_ngxka_13",styles$5={heading:heading$2,contributionContainer,contributor};function Contributor({contributor:i}){return jsxRuntimeExports.jsx("a",{href:i.html_url,title:i.login,className:styles$5.contributor,children:jsxRuntimeExports.jsx("img",{src:i.avatar_url,alt:i.login,loading:"lazy"})})}const existingContributors=[{login:"sadanandpai",avatar_url:"https://avatars.githubusercontent.com/u/12962887?s=60&v=4",html_url:"https://github.com/sadanandpai"},{login:"arpansaha13",avatar_url:"https://avatars.githubusercontent.com/u/82361490?s=60&v=4",html_url:"https://github.com/arpansaha13"},{login:"5h0ov",avatar_url:"https://avatars.githubusercontent.com/u/83227649?s=60&v=4",html_url:"https://github.com/5h0ov"},{login:"Sukomal07",avatar_url:"https://avatars.githubusercontent.com/u/100500478?s=60&v=4",html_url:"https://github.com/Sukomal07"},{login:"sujitmahapatra",avatar_url:"https://avatars.githubusercontent.com/u/127632703?s=60&v=4",html_url:"https://github.com/sujitmahapatra"},{login:"AbhineshJha",avatar_url:"https://avatars.githubusercontent.com/u/142514166?s=60&v=4",html_url:"https://github.com/AbhineshJha"},{login:"procodrr",avatar_url:"https://avatars.githubusercontent.com/u/76770313?v=4",html_url:"https://github.com/procodrr"},{login:"pankajparkar",avatar_url:"https://avatars.githubusercontent.com/u/5320044?s=60&v=4",html_url:"https://github.com/pankajparkar"},{login:"CrypticRevenger",avatar_url:"https://avatars.githubusercontent.com/u/128175097?s=60&v=4",html_url:"https://github.com/CrypticRevenger"},{login:"rashidtvmr",avatar_url:"https://avatars.githubusercontent.com/u/58169715?s=60&v=4",html_url:"https://github.com/rashidtvmr"},{login:"shruti-sen2004",avatar_url:"https://avatars.githubusercontent.com/u/115914670?s=60&v=4",html_url:"https://github.com/shruti-sen2004"},{login:"AnkitaSikdar005",avatar_url:"https://avatars.githubusercontent.com/u/115947852?s=60&v=4",html_url:"https://github.com/AnkitaSikdar005"},{login:"NikhilJHA01",avatar_url:"https://avatars.githubusercontent.com/u/63518046?s=60&v=4",html_url:"https://github.com/NikhilJHA01"},{login:"Kei-K23",avatar_url:"https://avatars.githubusercontent.com/u/134714087?s=60&v=4",html_url:"https://github.com/Kei-K23"},{login:"ankit071105",avatar_url:"https://avatars.githubusercontent.com/u/139707943?s=60&v=4",html_url:"https://github.com/ankit071105"},{login:"noorulaink00",avatar_url:"https://avatars.githubusercontent.com/u/65324193?s=60&v=4",html_url:"https://github.com/noorulaink00"},{login:"shivam200446",avatar_url:"https://avatars.githubusercontent.com/u/127589548?s=60&v=4",html_url:"https://github.com/shivam200446"},{login:"Sumitwarrior7",avatar_url:"https://avatars.githubusercontent.com/u/108853577?s=60&v=4",html_url:"https://github.com/Sumitwarrior7"},{login:"Dhanu084",avatar_url:"https://avatars.githubusercontent.com/u/54932658?s=60&v=4",html_url:"https://github.com/Dhanu084"},{login:"viditagrawal56",avatar_url:"https://avatars.githubusercontent.com/u/52532308?s=60&v=4",html_url:"https://github.com/viditagrawal56"},{login:"kushal34712",avatar_url:"https://avatars.githubusercontent.com/u/98145879?s=60&v=4",html_url:"https://github.com/kushal34712"},{login:"VinayKokate22",avatar_url:"https://avatars.githubusercontent.com/u/114766745?s=60&v=4",html_url:"https://github.com/VinayKokate22"},{login:"insharahAyyubi",avatar_url:"https://avatars.githubusercontent.com/u/103804673?s=60&v=4",html_url:"https://github.com/insharahAyyubi"},{login:"kumaratul60",avatar_url:"https://avatars.githubusercontent.com/u/53579888?s=60&v=4",html_url:"https://github.com/kumaratul60"},{login:"caesar003",avatar_url:"https://avatars.githubusercontent.com/u/37962465?s=60&v=4",html_url:"https://github.com/caesar003"},{login:"KATTASAHAN",avatar_url:"https://avatars.githubusercontent.com/u/65811236?s=60&v=4",html_url:"https://github.com/KATTASAHAN"},{login:"Pancratzia",avatar_url:"https://avatars.githubusercontent.com/u/54899954?s=60&v=4",html_url:"https://github.com/Pancratzia"},{login:"hritikbhattacharya",avatar_url:"https://avatars.githubusercontent.com/u/44370586?s=60&v=4",html_url:"https://github.com/hritikbhattacharya"},{login:"AckermanLevi1",avatar_url:"https://avatars.githubusercontent.com/u/114604529?s=60&v=4",html_url:"https://github.com/AckermanLevi1"},{login:"deepakRikhav",avatar_url:"https://avatars.githubusercontent.com/u/97227284?s=60&v=4",html_url:"https://github.com/deepakRikhav"},{login:"surajsharma14",avatar_url:"https://avatars.githubusercontent.com/u/72158521?s=60&v=4",html_url:"https://github.com/surajsharma14"},{login:"gauravsinhaweb",avatar_url:"https://avatars.githubusercontent.com/u/75125943?s=60&v=4",html_url:"https://github.com/gauravsinhaweb"},{login:"VishakhaSainani",avatar_url:"https://avatars.githubusercontent.com/u/113436770?s=60&v=4",html_url:"https://github.com/VishakhaSainani"},{login:"pranav514",avatar_url:"https://avatars.githubusercontent.com/u/76992202?s=60&v=4",html_url:"https://github.com/pranav514"},{login:"deepu0",avatar_url:"https://avatars.githubusercontent.com/u/22304384?s=60&v=4",html_url:"https://github.com/deepu0"},{login:"kalyan0922",avatar_url:"https://avatars.githubusercontent.com/u/112691480?s=60&v=4",html_url:"https://github.com/kalyan0922"},{login:"christian-lee1398",avatar_url:"https://avatars.githubusercontent.com/u/83561483?s=60&v=4",html_url:"https://github.com/christian-lee1398"},{login:"Ravi02205",avatar_url:"https://avatars.githubusercontent.com/u/81222901?s=60&v=4",html_url:"https://github.com/Ravi02205"},{login:"manivanna",avatar_url:"https://avatars.githubusercontent.com/u/21124524?s=60&v=4",html_url:"https://github.com/manivanna"},{login:"karprabha",avatar_url:"https://avatars.githubusercontent.com/u/15178905?s=60&v=4",html_url:"https://github.com/karprabha"},{login:"nayangoyal",avatar_url:"https://avatars.githubusercontent.com/u/101893656?s=60&v=4",html_url:"https://github.com/nayangoyal"},{login:"poornima-alugubelly",avatar_url:"https://avatars.githubusercontent.com/u/70846516?s=60&v=4",html_url:"https://github.com/poornima-alugubelly"},{login:"ashikjhonson",avatar_url:"https://avatars.githubusercontent.com/u/97791612?s=60&v=4",html_url:"https://github.com/ashikjhonson"},{login:"Shivam250702",avatar_url:"https://avatars.githubusercontent.com/u/103785990?s=60&v=4",html_url:"https://github.com/Shivam250702"},{login:"Krishnakalani111",avatar_url:"https://avatars.githubusercontent.com/u/88764668?s=60&v=4",html_url:"https://github.com/Krishnakalani111"},{login:"ayushrakesh",avatar_url:"https://avatars.githubusercontent.com/u/115995339?s=60&v=4",html_url:"https://github.com/ayushrakesh"},{login:"aditya7302",avatar_url:"https://avatars.githubusercontent.com/u/110886184?s=60&v=4",html_url:"https://github.com/aditya7302"},{login:"Bhushan1019",avatar_url:"https://avatars.githubusercontent.com/u/121352274?s=60&v=4",html_url:"https://github.com/Bhushan1019"},{login:"kumarvivekpandey",avatar_url:"https://avatars.githubusercontent.com/u/35356580?s=60&v=4",html_url:"https://github.com/kumarvivekpandey"},{login:"akash0708",avatar_url:"https://avatars.githubusercontent.com/u/110753356?s=60&v=4",html_url:"https://github.com/akash0708"},{login:"nikcode9",avatar_url:"https://avatars.githubusercontent.com/u/129772745?s=60&v=4",html_url:"https://github.com/nikcode9"},{login:"debajoti",avatar_url:"https://avatars.githubusercontent.com/u/132689129?s=60&v=4",html_url:"https://github.com/debajoti"},{login:"Vivek-GuptaXCode",avatar_url:"https://avatars.githubusercontent.com/u/145761266?s=60&v=4",html_url:"https://github.com/Vivek-GuptaXCode"},{login:"SoulNikhar",avatar_url:"https://avatars.githubusercontent.com/u/111144948?s=60&v=4",html_url:"https://github.com/SoulNikhar"},{login:"Avtech04",avatar_url:"https://avatars.githubusercontent.com/u/97428742?s=60&v=4",html_url:"https://github.com/Avtech04"},{login:"Archit-Kohli",avatar_url:"https://avatars.githubusercontent.com/u/118905854?s=60&v=4",html_url:"https://github.com/Archit-Kohli"},{login:"AnshMeshram",avatar_url:"https://avatars.githubusercontent.com/u/141160800?s=60&v=4",html_url:"https://github.com/AnshMeshram"}],parents=new Set,coords=new WeakMap,siblings=new WeakMap,animations=new WeakMap,intersections=new WeakMap,intervals=new WeakMap,options=new WeakMap,debounces=new WeakMap,enabled=new WeakSet;let root;const TGT="__aa_tgt",DEL="__aa_del",handleMutations=i=>{const e=getElements(i);e&&e.forEach(s=>animate(s))},handleResizes=i=>{i.forEach(e=>{e.target===root&&updateAllPos(),coords.has(e.target)&&updatePos(e.target)})};function observePosition(i){const e=intersections.get(i);e==null||e.disconnect();let s=coords.get(i),o=0;const a=5;s||(s=getCoords(i),coords.set(i,s));const{offsetWidth:c,offsetHeight:h}=root,d=[s.top-a,c-(s.left+a+s.width),h-(s.top+a+s.height),s.left-a].map(_=>`${-1*Math.floor(_)}px`).join(" "),b=new IntersectionObserver(()=>{++o>1&&updatePos(i)},{root,threshold:1,rootMargin:d});b.observe(i),intersections.set(i,b)}function updatePos(i){clearTimeout(debounces.get(i));const e=getOptions(i),s=typeof e=="function"?500:e.duration;debounces.set(i,setTimeout(async()=>{const o=animations.get(i);try{await(o==null?void 0:o.finished),coords.set(i,getCoords(i)),observePosition(i)}catch{}},s))}function updateAllPos(){clearTimeout(debounces.get(root)),debounces.set(root,setTimeout(()=>{parents.forEach(i=>forEach(i,e=>lowPriority(()=>updatePos(e))))},100))}function poll(i){setTimeout(()=>{intervals.set(i,setInterval(()=>lowPriority(updatePos.bind(null,i)),2e3))},Math.round(2e3*Math.random()))}function lowPriority(i){typeof requestIdleCallback=="function"?requestIdleCallback(()=>i()):requestAnimationFrame(()=>i())}let mutations,resize;typeof window<"u"&&(root=document.documentElement,mutations=new MutationObserver(handleMutations),resize=new ResizeObserver(handleResizes),resize.observe(root));function getElements(i){return i.reduce((o,a)=>[...o,...Array.from(a.addedNodes),...Array.from(a.removedNodes)],[]).every(o=>o.nodeName==="#comment")?!1:i.reduce((o,a)=>{if(o===!1)return!1;if(a.target instanceof Element){if(target(a.target),!o.has(a.target)){o.add(a.target);for(let c=0;cs(i,options.has(i)));for(let s=0;sa(o,options.has(o)))}}function remain(i){const e=coords.get(i),s=getCoords(i);if(!isEnabled(i))return coords.set(i,s);let o;if(!e)return;const a=getOptions(i);if(typeof a!="function"){const c=e.left-s.left,h=e.top-s.top,[g,d,b,_]=getTransitionSizes(i,e,s),j={transform:`translate(${c}px, ${h}px)`},$={transform:"translate(0, 0)"};g!==d&&(j.width=`${g}px`,$.width=`${d}px`),b!==_&&(j.height=`${b}px`,$.height=`${_}px`),o=i.animate([j,$],{duration:a.duration,easing:a.easing})}else o=new Animation(a(i,"remain",e,s)),o.play();animations.set(i,o),coords.set(i,s),o.addEventListener("finish",updatePos.bind(null,i))}function add(i){const e=getCoords(i);coords.set(i,e);const s=getOptions(i);if(!isEnabled(i))return;let o;typeof s!="function"?o=i.animate([{transform:"scale(.98)",opacity:0},{transform:"scale(0.98)",opacity:0,offset:.5},{transform:"scale(1)",opacity:1}],{duration:s.duration*1.5,easing:"ease-in"}):(o=new Animation(s(i,"add",e)),o.play()),animations.set(i,o),o.addEventListener("finish",updatePos.bind(null,i))}function remove(i){var e;if(!siblings.has(i)||!coords.has(i))return;const[s,o]=siblings.get(i);Object.defineProperty(i,DEL,{value:!0}),o&&o.parentNode&&o.parentNode instanceof Element?o.parentNode.insertBefore(i,o):s&&s.parentNode?s.parentNode.appendChild(i):(e=getTarget(i))===null||e===void 0||e.appendChild(i);function a(){var $;i.remove(),coords.delete(i),siblings.delete(i),animations.delete(i),($=intersections.get(i))===null||$===void 0||$.disconnect()}if(!isEnabled(i))return a();const[c,h,g,d]=deletePosition(i),b=getOptions(i),_=coords.get(i);let j;Object.assign(i.style,{position:"absolute",top:`${c}px`,left:`${h}px`,width:`${g}px`,height:`${d}px`,margin:0,pointerEvents:"none",transformOrigin:"center",zIndex:100}),typeof b!="function"?j=i.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.98)",opacity:0}],{duration:b.duration,easing:"ease-out"}):(j=new Animation(b(i,"remove",_)),j.play()),animations.set(i,j),j.addEventListener("finish",a)}function deletePosition(i){const e=coords.get(i),[s,,o]=getTransitionSizes(i,e,getCoords(i));let a=i.parentElement;for(;a&&(getComputedStyle(a).position==="static"||a instanceof HTMLBodyElement);)a=a.parentElement;a||(a=document.body);const c=getComputedStyle(a),h=coords.get(a)||getCoords(a),g=Math.round(e.top-h.top)-raw(c.borderTopWidth),d=Math.round(e.left-h.left)-raw(c.borderLeftWidth);return[g,d,s,o]}function autoAnimate(i,e={}){return mutations&&resize&&(window.matchMedia("(prefers-reduced-motion: reduce)").matches&&typeof e!="function"&&!e.disrespectUserMotionPreference||(enabled.add(i),getComputedStyle(i).position==="static"&&Object.assign(i.style,{position:"relative"}),forEach(i,updatePos,poll,a=>resize==null?void 0:resize.observe(a)),typeof e=="function"?options.set(i,e):options.set(i,{duration:250,easing:"ease-in-out",...e}),mutations.observe(i,{childList:!0}),parents.add(i))),Object.freeze({parent:i,enable:()=>{enabled.add(i)},disable:()=>{enabled.delete(i)},isEnabled:()=>enabled.has(i)})}function useAutoAnimate(i){const[e,s]=reactExports.useState();return[reactExports.useCallback(c=>{c instanceof HTMLElement?s(autoAnimate(c,i)):s(void 0)},[]),c=>{e&&(c?e.enable():e.disable())}]}function Contribution(){const[i,e]=reactExports.useState(existingContributors),[s]=useAutoAnimate();return reactExports.useEffect(()=>{const o=setInterval(()=>e(a=>a.map(c=>c).sort(()=>.5-Math.random())),5e3);return()=>{clearInterval(o)}},[]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("h2",{className:styles$5.heading,id:"contributors",children:"Contributors"}),jsxRuntimeExports.jsx("section",{className:styles$5.contributionContainer,ref:s,children:i.map(o=>jsxRuntimeExports.jsx(Contributor,{contributor:o},o.login))})]})}const heading$1="_heading_1m5el_1",features$1="_features_1m5el_6",styles$4={heading:heading$1,features:features$1},features=[{title:"Free and open-source",info:"Every challenge comes with the solution in multiple tech stacks & totally free forever"},{title:"Designed for interviews",info:"The challenges are handpicked collection from various interviews of top companies"},{title:"Community vetted solutions",info:"Solutions are reviewed by the community & follows the best industry practices"}];function Features(){return jsxRuntimeExports.jsxs("section",{id:"whyUs",children:[jsxRuntimeExports.jsx("h2",{className:styles$4.heading,children:"Why Us?"}),jsxRuntimeExports.jsx("div",{className:styles$4.features,children:features.map((i,e)=>jsxRuntimeExports.jsxs("article",{children:[jsxRuntimeExports.jsx("h3",{children:i.title}),jsxRuntimeExports.jsx("p",{children:i.info})]},e))})]})}const footer="_footer_1l7qe_1",styles$3={footer};function Footer(){return jsxRuntimeExports.jsx("footer",{className:styles$3.footer,children:"Copyright © 2023"})}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -112,11 +150,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var __assign=function(){return __assign=Object.assign||function(e){for(var s,o=1,a=arguments.length;o{typeof i[s]>"u"?i[s]=e[s]:isObject$2(e[s])&&isObject$2(i[s])&&Object.keys(e[s]).length>0&&extend$2(i[s],e[s])})}const ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const i=typeof document<"u"?document:{};return extend$2(i,ssrDocument),i}const ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function i(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(i){return typeof setTimeout>"u"?(i(),null):setTimeout(i,0)},cancelAnimationFrame(i){typeof setTimeout>"u"||clearTimeout(i)}};function getWindow(){const i=typeof window<"u"?window:{};return extend$2(i,ssrWindow),i}function deleteProps(i){const e=i;Object.keys(e).forEach(s=>{try{e[s]=null}catch{}try{delete e[s]}catch{}})}function nextTick(i,e){return e===void 0&&(e=0),setTimeout(i,e)}function now(){return Date.now()}function getComputedStyle$1(i){const e=getWindow();let s;return e.getComputedStyle&&(s=e.getComputedStyle(i,null)),!s&&i.currentStyle&&(s=i.currentStyle),s||(s=i.style),s}function getTranslate(i,e){e===void 0&&(e="x");const s=getWindow();let o,a,c;const h=getComputedStyle$1(i);return s.WebKitCSSMatrix?(a=h.transform||h.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(g=>g.replace(",",".")).join(", ")),c=new s.WebKitCSSMatrix(a==="none"?"":a)):(c=h.MozTransform||h.OTransform||h.MsTransform||h.msTransform||h.transform||h.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=c.toString().split(",")),e==="x"&&(s.WebKitCSSMatrix?a=c.m41:o.length===16?a=parseFloat(o[12]):a=parseFloat(o[4])),e==="y"&&(s.WebKitCSSMatrix?a=c.m42:o.length===16?a=parseFloat(o[13]):a=parseFloat(o[5])),a||0}function isObject$1(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function isNode(i){return typeof window<"u"&&typeof window.HTMLElement<"u"?i instanceof HTMLElement:i&&(i.nodeType===1||i.nodeType===11)}function extend$1(){const i=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let s=1;se.indexOf(c)<0);for(let c=0,h=a.length;cc?"next":"prev",_=($,_e)=>b==="next"&&$>=_e||b==="prev"&&$<=_e,j=()=>{g=new Date().getTime(),h===null&&(h=g);const $=Math.max(Math.min((g-h)/d,1),0),_e=.5-Math.cos($*Math.PI)/2;let et=c+_e*(s-c);if(_(et,s)&&(et=s),e.wrapperEl.scrollTo({[o]:et}),_(et,s)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:et})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(j)};j()}function getSlideTransformEl(i){return i.querySelector(".swiper-slide-transform")||i.shadowRoot&&i.shadowRoot.querySelector(".swiper-slide-transform")||i}function elementChildren(i,e){return e===void 0&&(e=""),[...i.children].filter(s=>s.matches(e))}function createElement(i,e){e===void 0&&(e=[]);const s=document.createElement(i);return s.classList.add(...Array.isArray(e)?e:[e]),s}function elementOffset(i){const e=getWindow(),s=getDocument(),o=i.getBoundingClientRect(),a=s.body,c=i.clientTop||a.clientTop||0,h=i.clientLeft||a.clientLeft||0,g=i===e?e.scrollY:i.scrollTop,d=i===e?e.scrollX:i.scrollLeft;return{top:o.top+g-c,left:o.left+d-h}}function elementPrevAll(i,e){const s=[];for(;i.previousElementSibling;){const o=i.previousElementSibling;e?o.matches(e)&&s.push(o):s.push(o),i=o}return s}function elementNextAll(i,e){const s=[];for(;i.nextElementSibling;){const o=i.nextElementSibling;e?o.matches(e)&&s.push(o):s.push(o),i=o}return s}function elementStyle(i,e){return getWindow().getComputedStyle(i,null).getPropertyValue(e)}function elementIndex(i){let e=i,s;if(e){for(s=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(s+=1);return s}}function elementParents(i,e){const s=[];let o=i.parentElement;for(;o;)e?o.matches(e)&&s.push(o):s.push(o),o=o.parentElement;return s}function elementTransitionEnd(i,e){function s(o){o.target===i&&(e.call(i,o),i.removeEventListener("transitionend",s))}e&&i.addEventListener("transitionend",s)}function elementOuterSize(i,e,s){const o=getWindow();return s?i[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):i.offsetWidth}function Virtual(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;s({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let c;const h=getDocument();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const g=h.createElement("div");function d(et,tt){const st=e.params.virtual;if(st.cache&&e.virtual.cache[tt])return e.virtual.cache[tt];let rt;return st.renderSlide?(rt=st.renderSlide.call(e,et,tt),typeof rt=="string"&&(g.innerHTML=rt,rt=g.children[0])):e.isElement?rt=createElement("swiper-slide"):rt=createElement("div",e.params.slideClass),rt.setAttribute("data-swiper-slide-index",tt),st.renderSlide||(rt.innerHTML=et),st.cache&&(e.virtual.cache[tt]=rt),rt}function b(et){const{slidesPerView:tt,slidesPerGroup:st,centeredSlides:rt,loop:nt}=e.params,{addSlidesBefore:it,addSlidesAfter:ot}=e.params.virtual,{from:ut,to:ht,slides:pt,slidesGrid:yt,offset:gt}=e.virtual;e.params.cssMode||e.updateActiveIndex();const xt=e.activeIndex||0;let wt;e.rtlTranslate?wt="right":wt=e.isHorizontal()?"left":"top";let vt,ft;rt?(vt=Math.floor(tt/2)+st+ot,ft=Math.floor(tt/2)+st+it):(vt=tt+(st-1)+ot,ft=(nt?tt:st)+it);let lt=xt-ft,dt=xt+vt;nt||(lt=Math.max(lt,0),dt=Math.min(dt,pt.length-1));let bt=(e.slidesGrid[lt]||0)-(e.slidesGrid[0]||0);nt&&xt>=ft?(lt-=ft,rt||(bt+=e.slidesGrid[0])):nt&&xt{Ct.style[wt]=`${bt-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),a("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:bt,from:lt,to:dt,slides:function(){const Rt=[];for(let At=lt;At<=dt;At+=1)Rt.push(pt[At]);return Rt}()}),e.params.virtual.renderExternalUpdate?at():a("virtualUpdate");return}const ct=[],mt=[],Et=Ct=>{let Rt=Ct;return Ct<0?Rt=pt.length+Ct:Rt>=pt.length&&(Rt=Rt-pt.length),Rt};if(et)e.slidesEl.querySelectorAll(`.${e.params.slideClass}, swiper-slide`).forEach(Ct=>{Ct.remove()});else for(let Ct=ut;Ct<=ht;Ct+=1)if(Ctdt){const Rt=Et(Ct);e.slidesEl.querySelectorAll(`.${e.params.slideClass}[data-swiper-slide-index="${Rt}"], swiper-slide[data-swiper-slide-index="${Rt}"]`).forEach(At=>{At.remove()})}const jt=nt?-pt.length:0,kt=nt?pt.length*2:pt.length;for(let Ct=jt;Ct=lt&&Ct<=dt){const Rt=Et(Ct);typeof ht>"u"||et?mt.push(Rt):(Ct>ht&&mt.push(Rt),Ct{e.slidesEl.append(d(pt[Ct],Ct))}),nt)for(let Ct=ct.length-1;Ct>=0;Ct-=1){const Rt=ct[Ct];e.slidesEl.prepend(d(pt[Rt],Rt))}else ct.sort((Ct,Rt)=>Rt-Ct),ct.forEach(Ct=>{e.slidesEl.prepend(d(pt[Ct],Ct))});elementChildren(e.slidesEl,".swiper-slide, swiper-slide").forEach(Ct=>{Ct.style[wt]=`${bt-Math.abs(e.cssOverflowAdjustment())}px`}),at()}function _(et){if(typeof et=="object"&&"length"in et)for(let tt=0;tt{const ut=nt[ot],ht=ut.getAttribute("data-swiper-slide-index");ht&&ut.setAttribute("data-swiper-slide-index",parseInt(ht,10)+rt),it[parseInt(ot,10)+rt]=ut}),e.virtual.cache=it}b(!0),e.slideTo(st,0)}function $(et){if(typeof et>"u"||et===null)return;let tt=e.activeIndex;if(Array.isArray(et))for(let st=et.length-1;st>=0;st-=1)e.virtual.slides.splice(et[st],1),e.params.virtual.cache&&delete e.virtual.cache[et[st]],et[st]{if(!e.params.virtual.enabled)return;let et;if(typeof e.passedParams.virtual.slides>"u"){const tt=[...e.slidesEl.children].filter(st=>st.matches(`.${e.params.slideClass}, swiper-slide`));tt&&tt.length&&(e.virtual.slides=[...tt],et=!0,tt.forEach((st,rt)=>{st.setAttribute("data-swiper-slide-index",rt),e.virtual.cache[rt]=st,st.remove()}))}et||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,e.params.initialSlide||b()}),o("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(c),c=setTimeout(()=>{b()},100)):b())}),o("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&setCSSProperty(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:_,prependSlide:j,removeSlide:$,removeAllSlides:_e,update:b})}function Keyboard(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;const c=getDocument(),h=getWindow();e.keyboard={enabled:!1},s({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function g(_){if(!e.enabled)return;const{rtlTranslate:j}=e;let $=_;$.originalEvent&&($=$.originalEvent);const _e=$.keyCode||$.charCode,et=e.params.keyboard.pageUpDown,tt=et&&_e===33,st=et&&_e===34,rt=_e===37,nt=_e===39,it=_e===38,ot=_e===40;if(!e.allowSlideNext&&(e.isHorizontal()&&nt||e.isVertical()&&ot||st)||!e.allowSlidePrev&&(e.isHorizontal()&&rt||e.isVertical()&&it||tt))return!1;if(!($.shiftKey||$.altKey||$.ctrlKey||$.metaKey)&&!(c.activeElement&&c.activeElement.nodeName&&(c.activeElement.nodeName.toLowerCase()==="input"||c.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(tt||st||rt||nt||it||ot)){let ut=!1;if(elementParents(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&elementParents(e.el,`.${e.params.slideActiveClass}`).length===0)return;const ht=e.el,pt=ht.clientWidth,yt=ht.clientHeight,gt=h.innerWidth,xt=h.innerHeight,wt=elementOffset(ht);j&&(wt.left-=ht.scrollLeft);const vt=[[wt.left,wt.top],[wt.left+pt,wt.top],[wt.left,wt.top+yt],[wt.left+pt,wt.top+yt]];for(let ft=0;ft=0&<[0]<=gt&<[1]>=0&<[1]<=xt){if(lt[0]===0&<[1]===0)continue;ut=!0}}if(!ut)return}e.isHorizontal()?((tt||st||rt||nt)&&($.preventDefault?$.preventDefault():$.returnValue=!1),((st||nt)&&!j||(tt||rt)&&j)&&e.slideNext(),((tt||rt)&&!j||(st||nt)&&j)&&e.slidePrev()):((tt||st||it||ot)&&($.preventDefault?$.preventDefault():$.returnValue=!1),(st||ot)&&e.slideNext(),(tt||it)&&e.slidePrev()),a("keyPress",_e)}}function d(){e.keyboard.enabled||(c.addEventListener("keydown",g),e.keyboard.enabled=!0)}function b(){e.keyboard.enabled&&(c.removeEventListener("keydown",g),e.keyboard.enabled=!1)}o("init",()=>{e.params.keyboard.enabled&&d()}),o("destroy",()=>{e.keyboard.enabled&&b()}),Object.assign(e.keyboard,{enable:d,disable:b})}function Mousewheel(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;const c=getWindow();s({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let h,g=now(),d;const b=[];function _(it){let pt=0,yt=0,gt=0,xt=0;return"detail"in it&&(yt=it.detail),"wheelDelta"in it&&(yt=-it.wheelDelta/120),"wheelDeltaY"in it&&(yt=-it.wheelDeltaY/120),"wheelDeltaX"in it&&(pt=-it.wheelDeltaX/120),"axis"in it&&it.axis===it.HORIZONTAL_AXIS&&(pt=yt,yt=0),gt=pt*10,xt=yt*10,"deltaY"in it&&(xt=it.deltaY),"deltaX"in it&&(gt=it.deltaX),it.shiftKey&&!gt&&(gt=xt,xt=0),(gt||xt)&&it.deltaMode&&(it.deltaMode===1?(gt*=40,xt*=40):(gt*=800,xt*=800)),gt&&!pt&&(pt=gt<1?-1:1),xt&&!yt&&(yt=xt<1?-1:1),{spinX:pt,spinY:yt,pixelX:gt,pixelY:xt}}function j(){e.enabled&&(e.mouseEntered=!0)}function $(){e.enabled&&(e.mouseEntered=!1)}function _e(it){return e.params.mousewheel.thresholdDelta&&it.delta=6&&now()-g<60?!0:(it.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",it.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",it.raw)),g=new c.Date().getTime(),!1)}function et(it){const ot=e.params.mousewheel;if(it.direction<0){if(e.isEnd&&!e.params.loop&&ot.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&ot.releaseOnEdges)return!0;return!1}function tt(it){let ot=it,ut=!0;if(!e.enabled||it.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const ht=e.params.mousewheel;e.params.cssMode&&ot.preventDefault();let pt=e.el;e.params.mousewheel.eventsTarget!=="container"&&(pt=document.querySelector(e.params.mousewheel.eventsTarget));const yt=pt&&pt.contains(ot.target);if(!e.mouseEntered&&!yt&&!ht.releaseOnEdges)return!0;ot.originalEvent&&(ot=ot.originalEvent);let gt=0;const xt=e.rtlTranslate?-1:1,wt=_(ot);if(ht.forceToAxis)if(e.isHorizontal())if(Math.abs(wt.pixelX)>Math.abs(wt.pixelY))gt=-wt.pixelX*xt;else return!0;else if(Math.abs(wt.pixelY)>Math.abs(wt.pixelX))gt=-wt.pixelY;else return!0;else gt=Math.abs(wt.pixelX)>Math.abs(wt.pixelY)?-wt.pixelX*xt:-wt.pixelY;if(gt===0)return!0;ht.invert&&(gt=-gt);let vt=e.getTranslate()+gt*ht.sensitivity;if(vt>=e.minTranslate()&&(vt=e.minTranslate()),vt<=e.maxTranslate()&&(vt=e.maxTranslate()),ut=e.params.loop?!0:!(vt===e.minTranslate()||vt===e.maxTranslate()),ut&&e.params.nested&&ot.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const ft={time:now(),delta:Math.abs(gt),direction:Math.sign(gt),raw:it};b.length>=2&&b.shift();const lt=b.length?b[b.length-1]:void 0;if(b.push(ft),lt?(ft.direction!==lt.direction||ft.delta>lt.delta||ft.time>lt.time+150)&&_e(ft):_e(ft),et(ft))return!0}else{const ft={time:now(),delta:Math.abs(gt),direction:Math.sign(gt)},lt=d&&ft.time=e.minTranslate()&&(dt=e.minTranslate()),dt<=e.maxTranslate()&&(dt=e.maxTranslate()),e.setTransition(0),e.setTranslate(dt),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!bt&&e.isBeginning||!at&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:ft.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(h),h=void 0,b.length>=15&&b.shift();const ct=b.length?b[b.length-1]:void 0,mt=b[0];if(b.push(ft),ct&&(ft.delta>ct.delta||ft.direction!==ct.direction))b.splice(0);else if(b.length>=15&&ft.time-mt.time<500&&mt.delta-ft.delta>=1&&ft.delta<=6){const Et=gt>0?.8:.2;d=ft,b.splice(0),h=nextTick(()=>{e.slideToClosest(e.params.speed,!0,void 0,Et)},0)}h||(h=nextTick(()=>{d=ft,b.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(lt||a("scroll",ot),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),ht.releaseOnEdges&&(dt===e.minTranslate()||dt===e.maxTranslate()))return!0}}return ot.preventDefault?ot.preventDefault():ot.returnValue=!1,!1}function st(it){let ot=e.el;e.params.mousewheel.eventsTarget!=="container"&&(ot=document.querySelector(e.params.mousewheel.eventsTarget)),ot[it]("mouseenter",j),ot[it]("mouseleave",$),ot[it]("wheel",tt)}function rt(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",tt),!0):e.mousewheel.enabled?!1:(st("addEventListener"),e.mousewheel.enabled=!0,!0)}function nt(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,tt),!0):e.mousewheel.enabled?(st("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}o("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&nt(),e.params.mousewheel.enabled&&rt()}),o("destroy",()=>{e.params.cssMode&&rt(),e.mousewheel.enabled&&nt()}),Object.assign(e.mousewheel,{enable:rt,disable:nt})}function createElementIfNotDefined(i,e,s,o){return i.params.createElements&&Object.keys(o).forEach(a=>{if(!s[a]&&s.auto===!0){let c=elementChildren(i.el,`.${o[a]}`)[0];c||(c=createElement("div",o[a]),c.className=o[a],i.el.append(c)),s[a]=c,e[a]=c}}),s}function Navigation(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;s({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const c=tt=>(Array.isArray(tt)?tt:[tt]).filter(st=>!!st);function h(tt){let st;return tt&&typeof tt=="string"&&e.isElement&&(st=e.el.querySelector(tt),st)?st:(tt&&(typeof tt=="string"&&(st=[...document.querySelectorAll(tt)]),e.params.uniqueNavElements&&typeof tt=="string"&&st.length>1&&e.el.querySelectorAll(tt).length===1&&(st=e.el.querySelector(tt))),tt&&!st?tt:st)}function g(tt,st){const rt=e.params.navigation;tt=c(tt),tt.forEach(nt=>{nt&&(nt.classList[st?"add":"remove"](...rt.disabledClass.split(" ")),nt.tagName==="BUTTON"&&(nt.disabled=st),e.params.watchOverflow&&e.enabled&&nt.classList[e.isLocked?"add":"remove"](rt.lockClass))})}function d(){const{nextEl:tt,prevEl:st}=e.navigation;if(e.params.loop){g(st,!1),g(tt,!1);return}g(st,e.isBeginning&&!e.params.rewind),g(tt,e.isEnd&&!e.params.rewind)}function b(tt){tt.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function _(tt){tt.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function j(){const tt=e.params.navigation;if(e.params.navigation=createElementIfNotDefined(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(tt.nextEl||tt.prevEl))return;let st=h(tt.nextEl),rt=h(tt.prevEl);Object.assign(e.navigation,{nextEl:st,prevEl:rt}),st=c(st),rt=c(rt);const nt=(it,ot)=>{it&&it.addEventListener("click",ot==="next"?_:b),!e.enabled&&it&&it.classList.add(...tt.lockClass.split(" "))};st.forEach(it=>nt(it,"next")),rt.forEach(it=>nt(it,"prev"))}function $(){let{nextEl:tt,prevEl:st}=e.navigation;tt=c(tt),st=c(st);const rt=(nt,it)=>{nt.removeEventListener("click",it==="next"?_:b),nt.classList.remove(...e.params.navigation.disabledClass.split(" "))};tt.forEach(nt=>rt(nt,"next")),st.forEach(nt=>rt(nt,"prev"))}o("init",()=>{e.params.navigation.enabled===!1?et():(j(),d())}),o("toEdge fromEdge lock unlock",()=>{d()}),o("destroy",()=>{$()}),o("enable disable",()=>{let{nextEl:tt,prevEl:st}=e.navigation;tt=c(tt),st=c(st),[...tt,...st].filter(rt=>!!rt).forEach(rt=>rt.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),o("click",(tt,st)=>{let{nextEl:rt,prevEl:nt}=e.navigation;rt=c(rt),nt=c(nt);const it=st.target;if(e.params.navigation.hideOnClick&&!nt.includes(it)&&!rt.includes(it)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===it||e.pagination.el.contains(it)))return;let ot;rt.length?ot=rt[0].classList.contains(e.params.navigation.hiddenClass):nt.length&&(ot=nt[0].classList.contains(e.params.navigation.hiddenClass)),a(ot===!0?"navigationShow":"navigationHide"),[...rt,...nt].filter(ut=>!!ut).forEach(ut=>ut.classList.toggle(e.params.navigation.hiddenClass))}});const _e=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),j(),d()},et=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),$()};Object.assign(e.navigation,{enable:_e,disable:et,update:d,init:j,destroy:$})}function classesToSelector(i){return i===void 0&&(i=""),`.${i.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Pagination(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;const c="swiper-pagination";s({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:nt=>nt,formatFractionTotal:nt=>nt,bulletClass:`${c}-bullet`,bulletActiveClass:`${c}-bullet-active`,modifierClass:`${c}-`,currentClass:`${c}-current`,totalClass:`${c}-total`,hiddenClass:`${c}-hidden`,progressbarFillClass:`${c}-progressbar-fill`,progressbarOppositeClass:`${c}-progressbar-opposite`,clickableClass:`${c}-clickable`,lockClass:`${c}-lock`,horizontalClass:`${c}-horizontal`,verticalClass:`${c}-vertical`,paginationDisabledClass:`${c}-disabled`}}),e.pagination={el:null,bullets:[]};let h,g=0;const d=nt=>(Array.isArray(nt)?nt:[nt]).filter(it=>!!it);function b(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function _(nt,it){const{bulletActiveClass:ot}=e.params.pagination;nt&&(nt=nt[`${it==="prev"?"previous":"next"}ElementSibling`],nt&&(nt.classList.add(`${ot}-${it}`),nt=nt[`${it==="prev"?"previous":"next"}ElementSibling`],nt&&nt.classList.add(`${ot}-${it}-${it}`)))}function j(nt){const it=nt.target.closest(classesToSelector(e.params.pagination.bulletClass));if(!it)return;nt.preventDefault();const ot=elementIndex(it)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===ot)return;const ut=e.realIndex,ht=e.getSlideIndexByData(ot),pt=e.getSlideIndexByData(e.realIndex);if(ht>e.slides.length-e.loopedSlides){const yt=e.activeIndex;e.loopFix({direction:ht>pt?"next":"prev",activeSlideIndex:ht,slideTo:!1});const gt=e.activeIndex;yt===gt&&e.slideToLoop(ut,0,!1,!0)}e.slideToLoop(ot)}else e.slideTo(ot)}function $(){const nt=e.rtl,it=e.params.pagination;if(b())return;let ot=e.pagination.el;ot=d(ot);let ut,ht;const pt=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,yt=e.params.loop?Math.ceil(pt/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(ht=e.previousRealIndex||0,ut=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(ut=e.snapIndex,ht=e.previousSnapIndex):(ht=e.previousIndex||0,ut=e.activeIndex||0),it.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const gt=e.pagination.bullets;let xt,wt,vt;if(it.dynamicBullets&&(h=elementOuterSize(gt[0],e.isHorizontal()?"width":"height",!0),ot.forEach(ft=>{ft.style[e.isHorizontal()?"width":"height"]=`${h*(it.dynamicMainBullets+4)}px`}),it.dynamicMainBullets>1&&ht!==void 0&&(g+=ut-(ht||0),g>it.dynamicMainBullets-1?g=it.dynamicMainBullets-1:g<0&&(g=0)),xt=Math.max(ut-g,0),wt=xt+(Math.min(gt.length,it.dynamicMainBullets)-1),vt=(wt+xt)/2),gt.forEach(ft=>{const lt=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(dt=>`${it.bulletActiveClass}${dt}`)].map(dt=>typeof dt=="string"&&dt.includes(" ")?dt.split(" "):dt).flat();ft.classList.remove(...lt)}),ot.length>1)gt.forEach(ft=>{const lt=elementIndex(ft);lt===ut?ft.classList.add(...it.bulletActiveClass.split(" ")):e.isElement&&ft.setAttribute("part","bullet"),it.dynamicBullets&&(lt>=xt&<<=wt&&ft.classList.add(...`${it.bulletActiveClass}-main`.split(" ")),lt===xt&&_(ft,"prev"),lt===wt&&_(ft,"next"))});else{const ft=gt[ut];if(ft&&ft.classList.add(...it.bulletActiveClass.split(" ")),e.isElement&>.forEach((lt,dt)=>{lt.setAttribute("part",dt===ut?"bullet-active":"bullet")}),it.dynamicBullets){const lt=gt[xt],dt=gt[wt];for(let bt=xt;bt<=wt;bt+=1)gt[bt]&>[bt].classList.add(...`${it.bulletActiveClass}-main`.split(" "));_(lt,"prev"),_(dt,"next")}}if(it.dynamicBullets){const ft=Math.min(gt.length,it.dynamicMainBullets+4),lt=(h*ft-h)/2-vt*h,dt=nt?"right":"left";gt.forEach(bt=>{bt.style[e.isHorizontal()?dt:"top"]=`${lt}px`})}}ot.forEach((gt,xt)=>{if(it.type==="fraction"&&(gt.querySelectorAll(classesToSelector(it.currentClass)).forEach(wt=>{wt.textContent=it.formatFractionCurrent(ut+1)}),gt.querySelectorAll(classesToSelector(it.totalClass)).forEach(wt=>{wt.textContent=it.formatFractionTotal(yt)})),it.type==="progressbar"){let wt;it.progressbarOpposite?wt=e.isHorizontal()?"vertical":"horizontal":wt=e.isHorizontal()?"horizontal":"vertical";const vt=(ut+1)/yt;let ft=1,lt=1;wt==="horizontal"?ft=vt:lt=vt,gt.querySelectorAll(classesToSelector(it.progressbarFillClass)).forEach(dt=>{dt.style.transform=`translate3d(0,0,0) scaleX(${ft}) scaleY(${lt})`,dt.style.transitionDuration=`${e.params.speed}ms`})}it.type==="custom"&&it.renderCustom?(gt.innerHTML=it.renderCustom(e,ut+1,yt),xt===0&&a("paginationRender",gt)):(xt===0&&a("paginationRender",gt),a("paginationUpdate",gt)),e.params.watchOverflow&&e.enabled&>.classList[e.isLocked?"add":"remove"](it.lockClass)})}function _e(){const nt=e.params.pagination;if(b())return;const it=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let ot=e.pagination.el;ot=d(ot);let ut="";if(nt.type==="bullets"){let ht=e.params.loop?Math.ceil(it/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&ht>it&&(ht=it);for(let pt=0;pt`}nt.type==="fraction"&&(nt.renderFraction?ut=nt.renderFraction.call(e,nt.currentClass,nt.totalClass):ut=` / `),nt.type==="progressbar"&&(nt.renderProgressbar?ut=nt.renderProgressbar.call(e,nt.progressbarFillClass):ut=``),e.pagination.bullets=[],ot.forEach(ht=>{nt.type!=="custom"&&(ht.innerHTML=ut||""),nt.type==="bullets"&&e.pagination.bullets.push(...ht.querySelectorAll(classesToSelector(nt.bulletClass)))}),nt.type!=="custom"&&a("paginationRender",ot[0])}function et(){e.params.pagination=createElementIfNotDefined(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const nt=e.params.pagination;if(!nt.el)return;let it;typeof nt.el=="string"&&e.isElement&&(it=e.el.querySelector(nt.el)),!it&&typeof nt.el=="string"&&(it=[...document.querySelectorAll(nt.el)]),it||(it=nt.el),!(!it||it.length===0)&&(e.params.uniqueNavElements&&typeof nt.el=="string"&&Array.isArray(it)&&it.length>1&&(it=[...e.el.querySelectorAll(nt.el)],it.length>1&&(it=it.filter(ot=>elementParents(ot,".swiper")[0]===e.el)[0])),Array.isArray(it)&&it.length===1&&(it=it[0]),Object.assign(e.pagination,{el:it}),it=d(it),it.forEach(ot=>{nt.type==="bullets"&&nt.clickable&&ot.classList.add(...(nt.clickableClass||"").split(" ")),ot.classList.add(nt.modifierClass+nt.type),ot.classList.add(e.isHorizontal()?nt.horizontalClass:nt.verticalClass),nt.type==="bullets"&&nt.dynamicBullets&&(ot.classList.add(`${nt.modifierClass}${nt.type}-dynamic`),g=0,nt.dynamicMainBullets<1&&(nt.dynamicMainBullets=1)),nt.type==="progressbar"&&nt.progressbarOpposite&&ot.classList.add(nt.progressbarOppositeClass),nt.clickable&&ot.addEventListener("click",j),e.enabled||ot.classList.add(nt.lockClass)}))}function tt(){const nt=e.params.pagination;if(b())return;let it=e.pagination.el;it&&(it=d(it),it.forEach(ot=>{ot.classList.remove(nt.hiddenClass),ot.classList.remove(nt.modifierClass+nt.type),ot.classList.remove(e.isHorizontal()?nt.horizontalClass:nt.verticalClass),nt.clickable&&(ot.classList.remove(...(nt.clickableClass||"").split(" ")),ot.removeEventListener("click",j))})),e.pagination.bullets&&e.pagination.bullets.forEach(ot=>ot.classList.remove(...nt.bulletActiveClass.split(" ")))}o("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const nt=e.params.pagination;let{el:it}=e.pagination;it=d(it),it.forEach(ot=>{ot.classList.remove(nt.horizontalClass,nt.verticalClass),ot.classList.add(e.isHorizontal()?nt.horizontalClass:nt.verticalClass)})}),o("init",()=>{e.params.pagination.enabled===!1?rt():(et(),_e(),$())}),o("activeIndexChange",()=>{typeof e.snapIndex>"u"&&$()}),o("snapIndexChange",()=>{$()}),o("snapGridLengthChange",()=>{_e(),$()}),o("destroy",()=>{tt()}),o("enable disable",()=>{let{el:nt}=e.pagination;nt&&(nt=d(nt),nt.forEach(it=>it.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),o("lock unlock",()=>{$()}),o("click",(nt,it)=>{const ot=it.target,ut=d(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&ut&&ut.length>0&&!ot.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&ot===e.navigation.nextEl||e.navigation.prevEl&&ot===e.navigation.prevEl))return;const ht=ut[0].classList.contains(e.params.pagination.hiddenClass);a(ht===!0?"paginationShow":"paginationHide"),ut.forEach(pt=>pt.classList.toggle(e.params.pagination.hiddenClass))}});const st=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:nt}=e.pagination;nt&&(nt=d(nt),nt.forEach(it=>it.classList.remove(e.params.pagination.paginationDisabledClass))),et(),_e(),$()},rt=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:nt}=e.pagination;nt&&(nt=d(nt),nt.forEach(it=>it.classList.add(e.params.pagination.paginationDisabledClass))),tt()};Object.assign(e.pagination,{enable:st,disable:rt,render:_e,update:$,init:et,destroy:tt})}function Scrollbar(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;const c=getDocument();let h=!1,g=null,d=null,b,_,j,$;s({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function _e(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:vt,rtlTranslate:ft}=e,{dragEl:lt,el:dt}=vt,bt=e.params.scrollbar,at=e.params.loop?e.progressLoop:e.progress;let ct=_,mt=(j-_)*at;ft?(mt=-mt,mt>0?(ct=_-mt,mt=0):-mt+_>j&&(ct=j+mt)):mt<0?(ct=_+mt,mt=0):mt+_>j&&(ct=j-mt),e.isHorizontal()?(lt.style.transform=`translate3d(${mt}px, 0, 0)`,lt.style.width=`${ct}px`):(lt.style.transform=`translate3d(0px, ${mt}px, 0)`,lt.style.height=`${ct}px`),bt.hide&&(clearTimeout(g),dt.style.opacity=1,g=setTimeout(()=>{dt.style.opacity=0,dt.style.transitionDuration="400ms"},1e3))}function et(vt){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${vt}ms`)}function tt(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:vt}=e,{dragEl:ft,el:lt}=vt;ft.style.width="",ft.style.height="",j=e.isHorizontal()?lt.offsetWidth:lt.offsetHeight,$=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?_=j*$:_=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?ft.style.width=`${_}px`:ft.style.height=`${_}px`,$>=1?lt.style.display="none":lt.style.display="",e.params.scrollbar.hide&&(lt.style.opacity=0),e.params.watchOverflow&&e.enabled&&vt.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function st(vt){return e.isHorizontal()?vt.clientX:vt.clientY}function rt(vt){const{scrollbar:ft,rtlTranslate:lt}=e,{el:dt}=ft;let bt;bt=(st(vt)-elementOffset(dt)[e.isHorizontal()?"left":"top"]-(b!==null?b:_/2))/(j-_),bt=Math.max(Math.min(bt,1),0),lt&&(bt=1-bt);const at=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*bt;e.updateProgress(at),e.setTranslate(at),e.updateActiveIndex(),e.updateSlidesClasses()}function nt(vt){const ft=e.params.scrollbar,{scrollbar:lt,wrapperEl:dt}=e,{el:bt,dragEl:at}=lt;h=!0,b=vt.target===at?st(vt)-vt.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,vt.preventDefault(),vt.stopPropagation(),dt.style.transitionDuration="100ms",at.style.transitionDuration="100ms",rt(vt),clearTimeout(d),bt.style.transitionDuration="0ms",ft.hide&&(bt.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",vt)}function it(vt){const{scrollbar:ft,wrapperEl:lt}=e,{el:dt,dragEl:bt}=ft;h&&(vt.preventDefault?vt.preventDefault():vt.returnValue=!1,rt(vt),lt.style.transitionDuration="0ms",dt.style.transitionDuration="0ms",bt.style.transitionDuration="0ms",a("scrollbarDragMove",vt))}function ot(vt){const ft=e.params.scrollbar,{scrollbar:lt,wrapperEl:dt}=e,{el:bt}=lt;h&&(h=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",dt.style.transitionDuration=""),ft.hide&&(clearTimeout(d),d=nextTick(()=>{bt.style.opacity=0,bt.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",vt),ft.snapOnRelease&&e.slideToClosest())}function ut(vt){const{scrollbar:ft,params:lt}=e,dt=ft.el;if(!dt)return;const bt=dt,at=lt.passiveListeners?{passive:!1,capture:!1}:!1,ct=lt.passiveListeners?{passive:!0,capture:!1}:!1;if(!bt)return;const mt=vt==="on"?"addEventListener":"removeEventListener";bt[mt]("pointerdown",nt,at),c[mt]("pointermove",it,at),c[mt]("pointerup",ot,ct)}function ht(){!e.params.scrollbar.el||!e.scrollbar.el||ut("on")}function pt(){!e.params.scrollbar.el||!e.scrollbar.el||ut("off")}function yt(){const{scrollbar:vt,el:ft}=e;e.params.scrollbar=createElementIfNotDefined(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const lt=e.params.scrollbar;if(!lt.el)return;let dt;typeof lt.el=="string"&&e.isElement&&(dt=e.el.querySelector(lt.el)),!dt&&typeof lt.el=="string"?dt=c.querySelectorAll(lt.el):dt||(dt=lt.el),e.params.uniqueNavElements&&typeof lt.el=="string"&&dt.length>1&&ft.querySelectorAll(lt.el).length===1&&(dt=ft.querySelector(lt.el)),dt.length>0&&(dt=dt[0]),dt.classList.add(e.isHorizontal()?lt.horizontalClass:lt.verticalClass);let bt;dt&&(bt=dt.querySelector(`.${e.params.scrollbar.dragClass}`),bt||(bt=createElement("div",e.params.scrollbar.dragClass),dt.append(bt))),Object.assign(vt,{el:dt,dragEl:bt}),lt.draggable&&ht(),dt&&dt.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}function gt(){const vt=e.params.scrollbar,ft=e.scrollbar.el;ft&&ft.classList.remove(e.isHorizontal()?vt.horizontalClass:vt.verticalClass),pt()}o("init",()=>{e.params.scrollbar.enabled===!1?wt():(yt(),tt(),_e())}),o("update resize observerUpdate lock unlock",()=>{tt()}),o("setTranslate",()=>{_e()}),o("setTransition",(vt,ft)=>{et(ft)}),o("enable disable",()=>{const{el:vt}=e.scrollbar;vt&&vt.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}),o("destroy",()=>{gt()});const xt=()=>{e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),yt(),tt(),_e()},wt=()=>{e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),gt()};Object.assign(e.scrollbar,{enable:xt,disable:wt,updateSize:tt,setTranslate:_e,init:yt,destroy:gt})}function Parallax(i){let{swiper:e,extendParams:s,on:o}=i;s({parallax:{enabled:!1}});const a="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",c=(d,b)=>{const{rtl:_}=e,j=_?-1:1,$=d.getAttribute("data-swiper-parallax")||"0";let _e=d.getAttribute("data-swiper-parallax-x"),et=d.getAttribute("data-swiper-parallax-y");const tt=d.getAttribute("data-swiper-parallax-scale"),st=d.getAttribute("data-swiper-parallax-opacity"),rt=d.getAttribute("data-swiper-parallax-rotate");if(_e||et?(_e=_e||"0",et=et||"0"):e.isHorizontal()?(_e=$,et="0"):(et=$,_e="0"),_e.indexOf("%")>=0?_e=`${parseInt(_e,10)*b*j}%`:_e=`${_e*b*j}px`,et.indexOf("%")>=0?et=`${parseInt(et,10)*b}%`:et=`${et*b}px`,typeof st<"u"&&st!==null){const it=st-(st-1)*(1-Math.abs(b));d.style.opacity=it}let nt=`translate3d(${_e}, ${et}, 0px)`;if(typeof tt<"u"&&tt!==null){const it=tt-(tt-1)*(1-Math.abs(b));nt+=` scale(${it})`}if(rt&&typeof rt<"u"&&rt!==null){const it=rt*b*-1;nt+=` rotate(${it}deg)`}d.style.transform=nt},h=()=>{const{el:d,slides:b,progress:_,snapGrid:j,isElement:$}=e,_e=elementChildren(d,a);e.isElement&&_e.push(...elementChildren(e.hostEl,a)),_e.forEach(et=>{c(et,_)}),b.forEach((et,tt)=>{let st=et.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(st+=Math.ceil(tt/2)-_*(j.length-1)),st=Math.min(Math.max(st,-1),1),et.querySelectorAll(`${a}, [data-swiper-parallax-rotate]`).forEach(rt=>{c(rt,st)})})},g=function(d){d===void 0&&(d=e.params.speed);const{el:b,hostEl:_}=e,j=[...b.querySelectorAll(a)];e.isElement&&j.push(..._.querySelectorAll(a)),j.forEach($=>{let _e=parseInt($.getAttribute("data-swiper-parallax-duration"),10)||d;d===0&&(_e=0),$.style.transitionDuration=`${_e}ms`})};o("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),o("init",()=>{e.params.parallax.enabled&&h()}),o("setTranslate",()=>{e.params.parallax.enabled&&h()}),o("setTransition",(d,b)=>{e.params.parallax.enabled&&g(b)})}function Zoom(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;const c=getWindow();s({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let h=1,g=!1,d,b;const _=[],j={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},$={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},_e={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let et=1;Object.defineProperty(e.zoom,"scale",{get(){return et},set(at){if(et!==at){const ct=j.imageEl,mt=j.slideEl;a("zoomChange",at,ct,mt)}et=at}});function tt(){if(_.length<2)return 1;const at=_[0].pageX,ct=_[0].pageY,mt=_[1].pageX,Et=_[1].pageY;return Math.sqrt((mt-at)**2+(Et-ct)**2)}function st(){if(_.length<2)return{x:null,y:null};const at=j.imageEl.getBoundingClientRect();return[(_[0].pageX+(_[1].pageX-_[0].pageX)/2-at.x)/h,(_[0].pageY+(_[1].pageY-_[0].pageY)/2-at.y)/h]}function rt(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function nt(at){const ct=rt();return!!(at.target.matches(ct)||e.slides.filter(mt=>mt.contains(at.target)).length>0)}function it(at){const ct=`.${e.params.zoom.containerClass}`;return!!(at.target.matches(ct)||[...e.hostEl.querySelectorAll(ct)].filter(mt=>mt.contains(at.target)).length>0)}function ot(at){if(at.pointerType==="mouse"&&_.splice(0,_.length),!nt(at))return;const ct=e.params.zoom;if(d=!1,b=!1,_.push(at),!(_.length<2)){if(d=!0,j.scaleStart=tt(),!j.slideEl){j.slideEl=at.target.closest(`.${e.params.slideClass}, swiper-slide`),j.slideEl||(j.slideEl=e.slides[e.activeIndex]);let mt=j.slideEl.querySelector(`.${ct.containerClass}`);if(mt&&(mt=mt.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),j.imageEl=mt,mt?j.imageWrapEl=elementParents(j.imageEl,`.${ct.containerClass}`)[0]:j.imageWrapEl=void 0,!j.imageWrapEl){j.imageEl=void 0;return}j.maxRatio=j.imageWrapEl.getAttribute("data-swiper-zoom")||ct.maxRatio}if(j.imageEl){const[mt,Et]=st();j.originX=mt,j.originY=Et,j.imageEl.style.transitionDuration="0ms"}g=!0}}function ut(at){if(!nt(at))return;const ct=e.params.zoom,mt=e.zoom,Et=_.findIndex(jt=>jt.pointerId===at.pointerId);Et>=0&&(_[Et]=at),!(_.length<2)&&(b=!0,j.scaleMove=tt(),j.imageEl&&(mt.scale=j.scaleMove/j.scaleStart*h,mt.scale>j.maxRatio&&(mt.scale=j.maxRatio-1+(mt.scale-j.maxRatio+1)**.5),mt.scalejt.pointerId===at.pointerId);Et>=0&&_.splice(Et,1),!(!d||!b)&&(d=!1,b=!1,j.imageEl&&(mt.scale=Math.max(Math.min(mt.scale,j.maxRatio),ct.minRatio),j.imageEl.style.transitionDuration=`${e.params.speed}ms`,j.imageEl.style.transform=`translate3d(0,0,0) scale(${mt.scale})`,h=mt.scale,g=!1,mt.scale>1&&j.slideEl?j.slideEl.classList.add(`${ct.zoomedSlideClass}`):mt.scale<=1&&j.slideEl&&j.slideEl.classList.remove(`${ct.zoomedSlideClass}`),mt.scale===1&&(j.originX=0,j.originY=0,j.slideEl=void 0)))}function pt(at){const ct=e.device;if(!j.imageEl||$.isTouched)return;ct.android&&at.cancelable&&at.preventDefault(),$.isTouched=!0;const mt=_.length>0?_[0]:at;$.touchesStart.x=mt.pageX,$.touchesStart.y=mt.pageY}function yt(at){if(!nt(at)||!it(at))return;const ct=e.zoom;if(!j.imageEl||!$.isTouched||!j.slideEl)return;$.isMoved||($.width=j.imageEl.offsetWidth,$.height=j.imageEl.offsetHeight,$.startX=getTranslate(j.imageWrapEl,"x")||0,$.startY=getTranslate(j.imageWrapEl,"y")||0,j.slideWidth=j.slideEl.offsetWidth,j.slideHeight=j.slideEl.offsetHeight,j.imageWrapEl.style.transitionDuration="0ms");const mt=$.width*ct.scale,Et=$.height*ct.scale;if(mt0?_[0].pageX:at.pageX,$.touchesCurrent.y=_.length>0?_[0].pageY:at.pageY,Math.max(Math.abs($.touchesCurrent.x-$.touchesStart.x),Math.abs($.touchesCurrent.y-$.touchesStart.y))>5&&(e.allowClick=!1),!$.isMoved&&!g){if(e.isHorizontal()&&(Math.floor($.minX)===Math.floor($.startX)&&$.touchesCurrent.x<$.touchesStart.x||Math.floor($.maxX)===Math.floor($.startX)&&$.touchesCurrent.x>$.touchesStart.x)){$.isTouched=!1;return}if(!e.isHorizontal()&&(Math.floor($.minY)===Math.floor($.startY)&&$.touchesCurrent.y<$.touchesStart.y||Math.floor($.maxY)===Math.floor($.startY)&&$.touchesCurrent.y>$.touchesStart.y)){$.isTouched=!1;return}}at.cancelable&&at.preventDefault(),at.stopPropagation(),$.isMoved=!0;const kt=(ct.scale-h)/(j.maxRatio-e.params.zoom.minRatio),{originX:Ct,originY:Rt}=j;$.currentX=$.touchesCurrent.x-$.touchesStart.x+$.startX+kt*($.width-Ct*2),$.currentY=$.touchesCurrent.y-$.touchesStart.y+$.startY+kt*($.height-Rt*2),$.currentX<$.minX&&($.currentX=$.minX+1-($.minX-$.currentX+1)**.8),$.currentX>$.maxX&&($.currentX=$.maxX-1+($.currentX-$.maxX+1)**.8),$.currentY<$.minY&&($.currentY=$.minY+1-($.minY-$.currentY+1)**.8),$.currentY>$.maxY&&($.currentY=$.maxY-1+($.currentY-$.maxY+1)**.8),_e.prevPositionX||(_e.prevPositionX=$.touchesCurrent.x),_e.prevPositionY||(_e.prevPositionY=$.touchesCurrent.y),_e.prevTime||(_e.prevTime=Date.now()),_e.x=($.touchesCurrent.x-_e.prevPositionX)/(Date.now()-_e.prevTime)/2,_e.y=($.touchesCurrent.y-_e.prevPositionY)/(Date.now()-_e.prevTime)/2,Math.abs($.touchesCurrent.x-_e.prevPositionX)<2&&(_e.x=0),Math.abs($.touchesCurrent.y-_e.prevPositionY)<2&&(_e.y=0),_e.prevPositionX=$.touchesCurrent.x,_e.prevPositionY=$.touchesCurrent.y,_e.prevTime=Date.now(),j.imageWrapEl.style.transform=`translate3d(${$.currentX}px, ${$.currentY}px,0)`}function gt(){const at=e.zoom;if(!j.imageEl)return;if(!$.isTouched||!$.isMoved){$.isTouched=!1,$.isMoved=!1;return}$.isTouched=!1,$.isMoved=!1;let ct=300,mt=300;const Et=_e.x*ct,jt=$.currentX+Et,kt=_e.y*mt,Ct=$.currentY+kt;_e.x!==0&&(ct=Math.abs((jt-$.currentX)/_e.x)),_e.y!==0&&(mt=Math.abs((Ct-$.currentY)/_e.y));const Rt=Math.max(ct,mt);$.currentX=jt,$.currentY=Ct;const At=$.width*at.scale,It=$.height*at.scale;$.minX=Math.min(j.slideWidth/2-At/2,0),$.maxX=-$.minX,$.minY=Math.min(j.slideHeight/2-It/2,0),$.maxY=-$.minY,$.currentX=Math.max(Math.min($.currentX,$.maxX),$.minX),$.currentY=Math.max(Math.min($.currentY,$.maxY),$.minY),j.imageWrapEl.style.transitionDuration=`${Rt}ms`,j.imageWrapEl.style.transform=`translate3d(${$.currentX}px, ${$.currentY}px,0)`}function xt(){const at=e.zoom;j.slideEl&&e.activeIndex!==e.slides.indexOf(j.slideEl)&&(j.imageEl&&(j.imageEl.style.transform="translate3d(0,0,0) scale(1)"),j.imageWrapEl&&(j.imageWrapEl.style.transform="translate3d(0,0,0)"),j.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),at.scale=1,h=1,j.slideEl=void 0,j.imageEl=void 0,j.imageWrapEl=void 0,j.originX=0,j.originY=0)}function wt(at){const ct=e.zoom,mt=e.params.zoom;if(!j.slideEl){at&&at.target&&(j.slideEl=at.target.closest(`.${e.params.slideClass}, swiper-slide`)),j.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?j.slideEl=elementChildren(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:j.slideEl=e.slides[e.activeIndex]);let ir=j.slideEl.querySelector(`.${mt.containerClass}`);ir&&(ir=ir.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),j.imageEl=ir,ir?j.imageWrapEl=elementParents(j.imageEl,`.${mt.containerClass}`)[0]:j.imageWrapEl=void 0}if(!j.imageEl||!j.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),j.slideEl.classList.add(`${mt.zoomedSlideClass}`);let Et,jt,kt,Ct,Rt,At,It,zt,Ht,$t,Bt,Wt,Gt,Kt,Zt,Yt,or,tr;typeof $.touchesStart.x>"u"&&at?(Et=at.pageX,jt=at.pageY):(Et=$.touchesStart.x,jt=$.touchesStart.y);const rr=typeof at=="number"?at:null;h===1&&rr&&(Et=void 0,jt=void 0),ct.scale=rr||j.imageWrapEl.getAttribute("data-swiper-zoom")||mt.maxRatio,h=rr||j.imageWrapEl.getAttribute("data-swiper-zoom")||mt.maxRatio,at&&!(h===1&&rr)?(or=j.slideEl.offsetWidth,tr=j.slideEl.offsetHeight,kt=elementOffset(j.slideEl).left+c.scrollX,Ct=elementOffset(j.slideEl).top+c.scrollY,Rt=kt+or/2-Et,At=Ct+tr/2-jt,Ht=j.imageEl.offsetWidth,$t=j.imageEl.offsetHeight,Bt=Ht*ct.scale,Wt=$t*ct.scale,Gt=Math.min(or/2-Bt/2,0),Kt=Math.min(tr/2-Wt/2,0),Zt=-Gt,Yt=-Kt,It=Rt*ct.scale,zt=At*ct.scale,ItZt&&(It=Zt),ztYt&&(zt=Yt)):(It=0,zt=0),rr&&ct.scale===1&&(j.originX=0,j.originY=0),j.imageWrapEl.style.transitionDuration="300ms",j.imageWrapEl.style.transform=`translate3d(${It}px, ${zt}px,0)`,j.imageEl.style.transitionDuration="300ms",j.imageEl.style.transform=`translate3d(0,0,0) scale(${ct.scale})`}function vt(){const at=e.zoom,ct=e.params.zoom;if(!j.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?j.slideEl=elementChildren(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:j.slideEl=e.slides[e.activeIndex];let mt=j.slideEl.querySelector(`.${ct.containerClass}`);mt&&(mt=mt.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),j.imageEl=mt,mt?j.imageWrapEl=elementParents(j.imageEl,`.${ct.containerClass}`)[0]:j.imageWrapEl=void 0}!j.imageEl||!j.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),at.scale=1,h=1,j.imageWrapEl.style.transitionDuration="300ms",j.imageWrapEl.style.transform="translate3d(0,0,0)",j.imageEl.style.transitionDuration="300ms",j.imageEl.style.transform="translate3d(0,0,0) scale(1)",j.slideEl.classList.remove(`${ct.zoomedSlideClass}`),j.slideEl=void 0,j.originX=0,j.originY=0)}function ft(at){const ct=e.zoom;ct.scale&&ct.scale!==1?vt():wt(at)}function lt(){const at=e.params.passiveListeners?{passive:!0,capture:!1}:!1,ct=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:at,activeListenerWithCapture:ct}}function dt(){const at=e.zoom;if(at.enabled)return;at.enabled=!0;const{passiveListener:ct,activeListenerWithCapture:mt}=lt();e.wrapperEl.addEventListener("pointerdown",ot,ct),e.wrapperEl.addEventListener("pointermove",ut,mt),["pointerup","pointercancel","pointerout"].forEach(Et=>{e.wrapperEl.addEventListener(Et,ht,ct)}),e.wrapperEl.addEventListener("pointermove",yt,mt)}function bt(){const at=e.zoom;if(!at.enabled)return;at.enabled=!1;const{passiveListener:ct,activeListenerWithCapture:mt}=lt();e.wrapperEl.removeEventListener("pointerdown",ot,ct),e.wrapperEl.removeEventListener("pointermove",ut,mt),["pointerup","pointercancel","pointerout"].forEach(Et=>{e.wrapperEl.removeEventListener(Et,ht,ct)}),e.wrapperEl.removeEventListener("pointermove",yt,mt)}o("init",()=>{e.params.zoom.enabled&&dt()}),o("destroy",()=>{bt()}),o("touchStart",(at,ct)=>{e.zoom.enabled&&pt(ct)}),o("touchEnd",(at,ct)=>{e.zoom.enabled&>()}),o("doubleTap",(at,ct)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&ft(ct)}),o("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&xt()}),o("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&xt()}),Object.assign(e.zoom,{enable:dt,disable:bt,in:wt,out:vt,toggle:ft})}function Controller(i){let{swiper:e,extendParams:s,on:o}=i;s({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function a(b,_){const j=function(){let tt,st,rt;return(nt,it)=>{for(st=-1,tt=nt.length;tt-st>1;)rt=tt+st>>1,nt[rt]<=it?st=rt:tt=rt;return tt}}();this.x=b,this.y=_,this.lastIndex=b.length-1;let $,_e;return this.interpolate=function(tt){return tt?(_e=j(this.x,tt),$=_e-1,(tt-this.x[$])*(this.y[_e]-this.y[$])/(this.x[_e]-this.x[$])+this.y[$]):0},this}function c(b){e.controller.spline=e.params.loop?new a(e.slidesGrid,b.slidesGrid):new a(e.snapGrid,b.snapGrid)}function h(b,_){const j=e.controller.control;let $,_e;const et=e.constructor;function tt(st){if(st.destroyed)return;const rt=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(c(st),_e=-e.controller.spline.interpolate(-rt)),(!_e||e.params.controller.by==="container")&&($=(st.maxTranslate()-st.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN($)||!Number.isFinite($))&&($=1),_e=(rt-e.minTranslate())*$+st.minTranslate()),e.params.controller.inverse&&(_e=st.maxTranslate()-_e),st.updateProgress(_e),st.setTranslate(_e,e),st.updateActiveIndex(),st.updateSlidesClasses()}if(Array.isArray(j))for(let st=0;st{tt.updateAutoHeight()}),elementTransitionEnd(tt.wrapperEl,()=>{$&&tt.transitionEnd()})))}if(Array.isArray($))for(_e=0;_e<$.length;_e+=1)$[_e]!==_&&$[_e]instanceof j&&et($[_e]);else $ instanceof j&&_!==$&&et($)}function d(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}o("beforeInit",()=>{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){const b=document.querySelector(e.params.controller.control);if(b&&b.swiper)e.controller.control=b.swiper;else if(b){const _=j=>{e.controller.control=j.detail[0],e.update(),b.removeEventListener("init",_)};b.addEventListener("init",_)}return}e.controller.control=e.params.controller.control}),o("update",()=>{d()}),o("resize",()=>{d()}),o("observerUpdate",()=>{d()}),o("setTranslate",(b,_,j)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(_,j)}),o("setTransition",(b,_,j)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(_,j)}),Object.assign(e.controller,{setTranslate:h,setTransition:g})}function A11y(i){let{swiper:e,extendParams:s,on:o}=i;s({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,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let a=null;function c(lt){const dt=a;dt.length!==0&&(dt.innerHTML="",dt.innerHTML=lt)}const h=lt=>(Array.isArray(lt)?lt:[lt]).filter(dt=>!!dt);function g(lt){lt===void 0&&(lt=16);const dt=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(lt).replace(/x/g,dt)}function d(lt){lt=h(lt),lt.forEach(dt=>{dt.setAttribute("tabIndex","0")})}function b(lt){lt=h(lt),lt.forEach(dt=>{dt.setAttribute("tabIndex","-1")})}function _(lt,dt){lt=h(lt),lt.forEach(bt=>{bt.setAttribute("role",dt)})}function j(lt,dt){lt=h(lt),lt.forEach(bt=>{bt.setAttribute("aria-roledescription",dt)})}function $(lt,dt){lt=h(lt),lt.forEach(bt=>{bt.setAttribute("aria-controls",dt)})}function _e(lt,dt){lt=h(lt),lt.forEach(bt=>{bt.setAttribute("aria-label",dt)})}function et(lt,dt){lt=h(lt),lt.forEach(bt=>{bt.setAttribute("id",dt)})}function tt(lt,dt){lt=h(lt),lt.forEach(bt=>{bt.setAttribute("aria-live",dt)})}function st(lt){lt=h(lt),lt.forEach(dt=>{dt.setAttribute("aria-disabled",!0)})}function rt(lt){lt=h(lt),lt.forEach(dt=>{dt.setAttribute("aria-disabled",!1)})}function nt(lt){if(lt.keyCode!==13&<.keyCode!==32)return;const dt=e.params.a11y,bt=lt.target;e.pagination&&e.pagination.el&&(bt===e.pagination.el||e.pagination.el.contains(lt.target))&&!lt.target.matches(classesToSelector(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&bt===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?c(dt.lastSlideMessage):c(dt.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&bt===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?c(dt.firstSlideMessage):c(dt.prevSlideMessage)),e.pagination&&bt.matches(classesToSelector(e.params.pagination.bulletClass))&&bt.click())}function it(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:lt,prevEl:dt}=e.navigation;dt&&(e.isBeginning?(st(dt),b(dt)):(rt(dt),d(dt))),lt&&(e.isEnd?(st(lt),b(lt)):(rt(lt),d(lt)))}function ot(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function ut(){return ot()&&e.params.pagination.clickable}function ht(){const lt=e.params.a11y;ot()&&e.pagination.bullets.forEach(dt=>{e.params.pagination.clickable&&(d(dt),e.params.pagination.renderBullet||(_(dt,"button"),_e(dt,lt.paginationBulletMessage.replace(/\{\{index\}\}/,elementIndex(dt)+1)))),dt.matches(classesToSelector(e.params.pagination.bulletActiveClass))?dt.setAttribute("aria-current","true"):dt.removeAttribute("aria-current")})}const pt=(lt,dt,bt)=>{d(lt),lt.tagName!=="BUTTON"&&(_(lt,"button"),lt.addEventListener("keydown",nt)),_e(lt,bt),$(lt,dt)},yt=()=>{e.a11y.clicked=!0},gt=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},xt=lt=>{if(e.a11y.clicked)return;const dt=lt.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!dt||!e.slides.includes(dt))return;const bt=e.slides.indexOf(dt)===e.activeIndex,at=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(dt);bt||at||lt.sourceCapabilities&<.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(dt),0))},wt=()=>{const lt=e.params.a11y;lt.itemRoleDescriptionMessage&&j(e.slides,lt.itemRoleDescriptionMessage),lt.slideRole&&_(e.slides,lt.slideRole);const dt=e.slides.length;lt.slideLabelMessage&&e.slides.forEach((bt,at)=>{const ct=e.params.loop?parseInt(bt.getAttribute("data-swiper-slide-index"),10):at,mt=lt.slideLabelMessage.replace(/\{\{index\}\}/,ct+1).replace(/\{\{slidesLength\}\}/,dt);_e(bt,mt)})},vt=()=>{const lt=e.params.a11y;e.el.append(a);const dt=e.el;lt.containerRoleDescriptionMessage&&j(dt,lt.containerRoleDescriptionMessage),lt.containerMessage&&_e(dt,lt.containerMessage);const bt=e.wrapperEl,at=lt.id||bt.getAttribute("id")||`swiper-wrapper-${g(16)}`,ct=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";et(bt,at),tt(bt,ct),wt();let{nextEl:mt,prevEl:Et}=e.navigation?e.navigation:{};mt=h(mt),Et=h(Et),mt&&mt.forEach(jt=>pt(jt,at,lt.nextSlideMessage)),Et&&Et.forEach(jt=>pt(jt,at,lt.prevSlideMessage)),ut()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(kt=>{kt.addEventListener("keydown",nt)}),e.el.addEventListener("focus",xt,!0),e.el.addEventListener("pointerdown",yt,!0),e.el.addEventListener("pointerup",gt,!0)};function ft(){a&&a.remove();let{nextEl:lt,prevEl:dt}=e.navigation?e.navigation:{};lt=h(lt),dt=h(dt),lt&<.forEach(bt=>bt.removeEventListener("keydown",nt)),dt&&dt.forEach(bt=>bt.removeEventListener("keydown",nt)),ut()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(at=>{at.removeEventListener("keydown",nt)}),e.el.removeEventListener("focus",xt,!0),e.el.removeEventListener("pointerdown",yt,!0),e.el.removeEventListener("pointerup",gt,!0)}o("beforeInit",()=>{a=createElement("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),o("afterInit",()=>{e.params.a11y.enabled&&vt()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&wt()}),o("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&it()}),o("paginationUpdate",()=>{e.params.a11y.enabled&&ht()}),o("destroy",()=>{e.params.a11y.enabled&&ft()})}function History(i){let{swiper:e,extendParams:s,on:o}=i;s({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let a=!1,c={};const h=_e=>_e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),g=_e=>{const et=getWindow();let tt;_e?tt=new URL(_e):tt=et.location;const st=tt.pathname.slice(1).split("/").filter(ot=>ot!==""),rt=st.length,nt=st[rt-2],it=st[rt-1];return{key:nt,value:it}},d=(_e,et)=>{const tt=getWindow();if(!a||!e.params.history.enabled)return;let st;e.params.url?st=new URL(e.params.url):st=tt.location;const rt=e.slides[et];let nt=h(rt.getAttribute("data-history"));if(e.params.history.root.length>0){let ot=e.params.history.root;ot[ot.length-1]==="/"&&(ot=ot.slice(0,ot.length-1)),nt=`${ot}/${_e?`${_e}/`:""}${nt}`}else st.pathname.includes(_e)||(nt=`${_e?`${_e}/`:""}${nt}`);e.params.history.keepQuery&&(nt+=st.search);const it=tt.history.state;it&&it.value===nt||(e.params.history.replaceState?tt.history.replaceState({value:nt},null,nt):tt.history.pushState({value:nt},null,nt))},b=(_e,et,tt)=>{if(et)for(let st=0,rt=e.slides.length;st{c=g(e.params.url),b(e.params.speed,c.value,!1)},j=()=>{const _e=getWindow();if(e.params.history){if(!_e.history||!_e.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(a=!0,c=g(e.params.url),!c.key&&!c.value){e.params.history.replaceState||_e.addEventListener("popstate",_);return}b(0,c.value,e.params.runCallbacksOnInit),e.params.history.replaceState||_e.addEventListener("popstate",_)}},$=()=>{const _e=getWindow();e.params.history.replaceState||_e.removeEventListener("popstate",_)};o("init",()=>{e.params.history.enabled&&j()}),o("destroy",()=>{e.params.history.enabled&&$()}),o("transitionEnd _freeModeNoMomentumRelease",()=>{a&&d(e.params.history.key,e.activeIndex)}),o("slideChange",()=>{a&&e.params.cssMode&&d(e.params.history.key,e.activeIndex)})}function HashNavigation(i){let{swiper:e,extendParams:s,emit:o,on:a}=i,c=!1;const h=getDocument(),g=getWindow();s({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex($,_e){if(e.virtual&&e.params.virtual.enabled){const et=e.slides.filter(st=>st.getAttribute("data-hash")===_e)[0];return et?parseInt(et.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(elementChildren(e.slidesEl,`.${e.params.slideClass}[data-hash="${_e}"], swiper-slide[data-hash="${_e}"]`)[0])}}});const d=()=>{o("hashChange");const $=h.location.hash.replace("#",""),_e=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],et=_e?_e.getAttribute("data-hash"):"";if($!==et){const tt=e.params.hashNavigation.getSlideIndex(e,$);if(typeof tt>"u"||Number.isNaN(tt))return;e.slideTo(tt)}},b=()=>{if(!c||!e.params.hashNavigation.enabled)return;const $=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],_e=$?$.getAttribute("data-hash")||$.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&g.history&&g.history.replaceState?(g.history.replaceState(null,null,`#${_e}`||""),o("hashSet")):(h.location.hash=_e||"",o("hashSet"))},_=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;c=!0;const $=h.location.hash.replace("#","");if($){const et=e.params.hashNavigation.getSlideIndex(e,$);e.slideTo(et||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&g.addEventListener("hashchange",d)},j=()=>{e.params.hashNavigation.watchState&&g.removeEventListener("hashchange",d)};a("init",()=>{e.params.hashNavigation.enabled&&_()}),a("destroy",()=>{e.params.hashNavigation.enabled&&j()}),a("transitionEnd _freeModeNoMomentumRelease",()=>{c&&b()}),a("slideChange",()=>{c&&e.params.cssMode&&b()})}function Autoplay(i){let{swiper:e,extendParams:s,on:o,emit:a,params:c}=i;e.autoplay={running:!1,paused:!1,timeLeft:0},s({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let h,g,d=c&&c.autoplay?c.autoplay.delay:3e3,b=c&&c.autoplay?c.autoplay.delay:3e3,_,j=new Date().getTime,$,_e,et,tt,st,rt;function nt(at){!e||e.destroyed||!e.wrapperEl||at.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",nt),gt())}const it=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?$=!0:$&&(b=_,$=!1);const at=e.autoplay.paused?_:j+b-new Date().getTime();e.autoplay.timeLeft=at,a("autoplayTimeLeft",at,at/d),g=requestAnimationFrame(()=>{it()})},ot=()=>{let at;return e.virtual&&e.params.virtual.enabled?at=e.slides.filter(mt=>mt.classList.contains("swiper-slide-active"))[0]:at=e.slides[e.activeIndex],at?parseInt(at.getAttribute("data-swiper-autoplay"),10):void 0},ut=at=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(g),it();let ct=typeof at>"u"?e.params.autoplay.delay:at;d=e.params.autoplay.delay,b=e.params.autoplay.delay;const mt=ot();!Number.isNaN(mt)&&mt>0&&typeof at>"u"&&(ct=mt,d=mt,b=mt),_=ct;const Et=e.params.speed,jt=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(Et,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,Et,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(Et,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,Et,!0,!0),a("autoplay")),e.params.cssMode&&(j=new Date().getTime(),requestAnimationFrame(()=>{ut()})))};return ct>0?(clearTimeout(h),h=setTimeout(()=>{jt()},ct)):requestAnimationFrame(()=>{jt()}),ct},ht=()=>{e.autoplay.running=!0,ut(),a("autoplayStart")},pt=()=>{e.autoplay.running=!1,clearTimeout(h),cancelAnimationFrame(g),a("autoplayStop")},yt=(at,ct)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(h),at||(rt=!0);const mt=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",nt):gt()};if(e.autoplay.paused=!0,ct){st&&(_=e.params.autoplay.delay),st=!1,mt();return}_=(_||e.params.autoplay.delay)-(new Date().getTime()-j),!(e.isEnd&&_<0&&!e.params.loop)&&(_<0&&(_=0),mt())},gt=()=>{e.isEnd&&_<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(j=new Date().getTime(),rt?(rt=!1,ut(_)):ut(),e.autoplay.paused=!1,a("autoplayResume"))},xt=()=>{if(e.destroyed||!e.autoplay.running)return;const at=getDocument();at.visibilityState==="hidden"&&(rt=!0,yt(!0)),at.visibilityState==="visible"&>()},wt=at=>{at.pointerType==="mouse"&&(rt=!0,!(e.animating||e.autoplay.paused)&&yt(!0))},vt=at=>{at.pointerType==="mouse"&&e.autoplay.paused&>()},ft=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",wt),e.el.addEventListener("pointerleave",vt))},lt=()=>{e.el.removeEventListener("pointerenter",wt),e.el.removeEventListener("pointerleave",vt)},dt=()=>{getDocument().addEventListener("visibilitychange",xt)},bt=()=>{getDocument().removeEventListener("visibilitychange",xt)};o("init",()=>{e.params.autoplay.enabled&&(ft(),dt(),j=new Date().getTime(),ht())}),o("destroy",()=>{lt(),bt(),e.autoplay.running&&pt()}),o("beforeTransitionStart",(at,ct,mt)=>{e.destroyed||!e.autoplay.running||(mt||!e.params.autoplay.disableOnInteraction?yt(!0,!0):pt())}),o("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){pt();return}_e=!0,et=!1,rt=!1,tt=setTimeout(()=>{rt=!0,et=!0,yt(!0)},200)}}),o("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!_e)){if(clearTimeout(tt),clearTimeout(h),e.params.autoplay.disableOnInteraction){et=!1,_e=!1;return}et&&e.params.cssMode&>(),et=!1,_e=!1}}),o("slideChange",()=>{e.destroyed||!e.autoplay.running||(st=!0)}),Object.assign(e.autoplay,{start:ht,stop:pt,pause:yt,resume:gt})}function Thumb(i){let{swiper:e,extendParams:s,on:o}=i;s({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let a=!1,c=!1;e.thumbs={swiper:null};function h(){const b=e.thumbs.swiper;if(!b||b.destroyed)return;const _=b.clickedIndex,j=b.clickedSlide;if(j&&j.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof _>"u"||_===null)return;let $;b.params.loop?$=parseInt(b.clickedSlide.getAttribute("data-swiper-slide-index"),10):$=_,e.params.loop?e.slideToLoop($):e.slideTo($)}function g(){const{thumbs:b}=e.params;if(a)return!1;a=!0;const _=e.constructor;if(b.swiper instanceof _)e.thumbs.swiper=b.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(isObject$1(b.swiper)){const j=Object.assign({},b.swiper);Object.assign(j,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new _(j),c=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",h),!0}function d(b){const _=e.thumbs.swiper;if(!_||_.destroyed)return;const j=_.params.slidesPerView==="auto"?_.slidesPerViewDynamic():_.params.slidesPerView;let $=1;const _e=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&($=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||($=1),$=Math.floor($),_.slides.forEach(st=>st.classList.remove(_e)),_.params.loop||_.params.virtual&&_.params.virtual.enabled)for(let st=0;st<$;st+=1)elementChildren(_.slidesEl,`[data-swiper-slide-index="${e.realIndex+st}"]`).forEach(rt=>{rt.classList.add(_e)});else for(let st=0;st<$;st+=1)_.slides[e.realIndex+st]&&_.slides[e.realIndex+st].classList.add(_e);const et=e.params.thumbs.autoScrollOffset,tt=et&&!_.params.loop;if(e.realIndex!==_.realIndex||tt){const st=_.activeIndex;let rt,nt;if(_.params.loop){const it=_.slides.filter(ot=>ot.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];rt=_.slides.indexOf(it),nt=e.activeIndex>e.previousIndex?"next":"prev"}else rt=e.realIndex,nt=rt>e.previousIndex?"next":"prev";tt&&(rt+=nt==="next"?et:-1*et),_.visibleSlidesIndexes&&_.visibleSlidesIndexes.indexOf(rt)<0&&(_.params.centeredSlides?rt>st?rt=rt-Math.floor(j/2)+1:rt=rt+Math.floor(j/2)-1:rt>st&&_.params.slidesPerGroup,_.slideTo(rt,b?0:void 0))}}o("beforeInit",()=>{const{thumbs:b}=e.params;if(!(!b||!b.swiper))if(typeof b.swiper=="string"||b.swiper instanceof HTMLElement){const _=getDocument(),j=()=>{const _e=typeof b.swiper=="string"?_.querySelector(b.swiper):b.swiper;if(_e&&_e.swiper)b.swiper=_e.swiper,g(),d(!0);else if(_e){const et=tt=>{b.swiper=tt.detail[0],_e.removeEventListener("init",et),g(),d(!0),b.swiper.update(),e.update()};_e.addEventListener("init",et)}return _e},$=()=>{if(e.destroyed)return;j()||requestAnimationFrame($)};requestAnimationFrame($)}else g(),d(!0)}),o("slideChange update resize observerUpdate",()=>{d()}),o("setTransition",(b,_)=>{const j=e.thumbs.swiper;!j||j.destroyed||j.setTransition(_)}),o("beforeDestroy",()=>{const b=e.thumbs.swiper;!b||b.destroyed||c&&b.destroy()}),Object.assign(e.thumbs,{init:g,update:d})}function freeMode(i){let{swiper:e,extendParams:s,emit:o,once:a}=i;s({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function c(){if(e.params.cssMode)return;const d=e.getTranslate();e.setTranslate(d),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function h(){if(e.params.cssMode)return;const{touchEventsData:d,touches:b}=e;d.velocities.length===0&&d.velocities.push({position:b[e.isHorizontal()?"startX":"startY"],time:d.touchStartTime}),d.velocities.push({position:b[e.isHorizontal()?"currentX":"currentY"],time:now()})}function g(d){let{currentPos:b}=d;if(e.params.cssMode)return;const{params:_,wrapperEl:j,rtlTranslate:$,snapGrid:_e,touchEventsData:et}=e,st=now()-et.touchStartTime;if(b<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(b>-e.maxTranslate()){e.slides.length<_e.length?e.slideTo(_e.length-1):e.slideTo(e.slides.length-1);return}if(_.freeMode.momentum){if(et.velocities.length>1){const yt=et.velocities.pop(),gt=et.velocities.pop(),xt=yt.position-gt.position,wt=yt.time-gt.time;e.velocity=xt/wt,e.velocity/=2,Math.abs(e.velocity)<_.freeMode.minimumVelocity&&(e.velocity=0),(wt>150||now()-yt.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=_.freeMode.momentumVelocityRatio,et.velocities.length=0;let rt=1e3*_.freeMode.momentumRatio;const nt=e.velocity*rt;let it=e.translate+nt;$&&(it=-it);let ot=!1,ut;const ht=Math.abs(e.velocity)*20*_.freeMode.momentumBounceRatio;let pt;if(ite.minTranslate())_.freeMode.momentumBounce?(it-e.minTranslate()>ht&&(it=e.minTranslate()+ht),ut=e.minTranslate(),ot=!0,et.allowMomentumBounce=!0):it=e.minTranslate(),_.loop&&_.centeredSlides&&(pt=!0);else if(_.freeMode.sticky){let yt;for(let gt=0;gt<_e.length;gt+=1)if(_e[gt]>-it){yt=gt;break}Math.abs(_e[yt]-it){e.loopFix()}),e.velocity!==0){if($?rt=Math.abs((-it-e.translate)/e.velocity):rt=Math.abs((it-e.translate)/e.velocity),_.freeMode.sticky){const yt=Math.abs(($?-it:it)-e.translate),gt=e.slidesSizesGrid[e.activeIndex];yt{!e||e.destroyed||!et.allowMomentumBounce||(o("momentumBounce"),e.setTransition(_.speed),setTimeout(()=>{e.setTranslate(ut),elementTransitionEnd(j,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(o("_freeModeNoMomentumRelease"),e.updateProgress(it),e.setTransition(rt),e.setTranslate(it),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,elementTransitionEnd(j,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(it),e.updateActiveIndex(),e.updateSlidesClasses()}else if(_.freeMode.sticky){e.slideToClosest();return}else _.freeMode&&o("_freeModeNoMomentumRelease");(!_.freeMode.momentum||st>=_.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:c,onTouchMove:h,onTouchEnd:g}})}function Grid(i){let{swiper:e,extendParams:s}=i;s({grid:{rows:1,fill:"column"}});let o,a,c;const h=()=>{let _=e.params.spaceBetween;return typeof _=="string"&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*e.size:typeof _=="string"&&(_=parseFloat(_)),_},g=_=>{const{slidesPerView:j}=e.params,{rows:$,fill:_e}=e.params.grid;c=Math.floor(_/$),Math.floor(_/$)===_/$?o=_:o=Math.ceil(_/$)*$,j!=="auto"&&_e==="row"&&(o=Math.max(o,j*$)),a=o/$},d=(_,j,$,_e)=>{const{slidesPerGroup:et}=e.params,tt=h(),{rows:st,fill:rt}=e.params.grid;let nt,it,ot;if(rt==="row"&&et>1){const ut=Math.floor(_/(et*st)),ht=_-st*et*ut,pt=ut===0?et:Math.min(Math.ceil(($-ut*st*et)/st),et);ot=Math.floor(ht/pt),it=ht-ot*pt+ut*et,nt=it+ot*o/st,j.style.order=nt}else rt==="column"?(it=Math.floor(_/st),ot=_-it*st,(it>c||it===c&&ot===st-1)&&(ot+=1,ot>=st&&(ot=0,it+=1))):(ot=Math.floor(_/a),it=_-ot*a);j.row=ot,j.column=it,j.style[_e("margin-top")]=ot!==0?tt&&`${tt}px`:""},b=(_,j,$)=>{const{centeredSlides:_e,roundLengths:et}=e.params,tt=h(),{rows:st}=e.params.grid;if(e.virtualSize=(_+tt)*o,e.virtualSize=Math.ceil(e.virtualSize/st)-tt,e.wrapperEl.style[$("width")]=`${e.virtualSize+tt}px`,_e){const rt=[];for(let nt=0;nt{if(typeof c=="string"){const h=document.createElement("div");h.innerHTML=c,o.append(h.children[0]),h.innerHTML=""}else o.append(c)};if(typeof i=="object"&&"length"in i)for(let c=0;c{if(typeof g=="string"){const d=document.createElement("div");d.innerHTML=g,a.prepend(d.children[0]),d.innerHTML=""}else a.prepend(g)};if(typeof i=="object"&&"length"in i){for(let g=0;g=g){s.appendSlide(e);return}let d=h>i?h+1:h;const b=[];for(let _=g-1;_>=i;_-=1){const j=s.slides[_];j.remove(),b.unshift(j)}if(typeof e=="object"&&"length"in e){for(let _=0;_i?h+e.length:h}else c.append(e);for(let _=0;_{if(s.params.effect!==e)return;s.classNames.push(`${s.params.containerModifierClass}${e}`),g&&g()&&s.classNames.push(`${s.params.containerModifierClass}3d`);const j=h?h():{};Object.assign(s.params,j),Object.assign(s.originalParams,j)}),o("setTranslate",()=>{s.params.effect===e&&a()}),o("setTransition",(j,$)=>{s.params.effect===e&&c($)}),o("transitionEnd",()=>{if(s.params.effect===e&&d){if(!b||!b().slideShadows)return;s.slides.forEach(j=>{j.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach($=>$.remove())}),d()}});let _;o("virtualUpdate",()=>{s.params.effect===e&&(s.slides.length||(_=!0),requestAnimationFrame(()=>{_&&s.slides&&s.slides.length&&(a(),_=!1)}))})}function effectTarget(i,e){const s=getSlideTransformEl(e);return s!==e&&(s.style.backfaceVisibility="hidden",s.style["-webkit-backface-visibility"]="hidden"),s}function effectVirtualTransitionEnd(i){let{swiper:e,duration:s,transformElements:o,allSlides:a}=i;const{activeIndex:c}=e,h=g=>g.parentElement?g.parentElement:e.slides.filter(b=>b.shadowRoot&&b.shadowRoot===g.parentNode)[0];if(e.params.virtualTranslate&&s!==0){let g=!1,d;a?d=o:d=o.filter(b=>{const _=b.classList.contains("swiper-slide-transform")?h(b):b;return e.getSlideIndex(_)===c}),d.forEach(b=>{elementTransitionEnd(b,()=>{if(g||!e||e.destroyed)return;g=!0,e.animating=!1;const _=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(_)})})}}function EffectFade(i){let{swiper:e,extendParams:s,on:o}=i;s({fadeEffect:{crossFade:!1}}),effectInit({effect:"fade",swiper:e,on:o,setTranslate:()=>{const{slides:h}=e,g=e.params.fadeEffect;for(let d=0;d{const g=e.slides.map(d=>getSlideTransformEl(d));g.forEach(d=>{d.style.transitionDuration=`${h}ms`}),effectVirtualTransitionEnd({swiper:e,duration:h,transformElements:g,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function EffectCube(i){let{swiper:e,extendParams:s,on:o}=i;s({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const a=(d,b,_)=>{let j=_?d.querySelector(".swiper-slide-shadow-left"):d.querySelector(".swiper-slide-shadow-top"),$=_?d.querySelector(".swiper-slide-shadow-right"):d.querySelector(".swiper-slide-shadow-bottom");j||(j=createElement("div",`swiper-slide-shadow-cube swiper-slide-shadow-${_?"left":"top"}`.split(" ")),d.append(j)),$||($=createElement("div",`swiper-slide-shadow-cube swiper-slide-shadow-${_?"right":"bottom"}`.split(" ")),d.append($)),j&&(j.style.opacity=Math.max(-b,0)),$&&($.style.opacity=Math.max(b,0))};effectInit({effect:"cube",swiper:e,on:o,setTranslate:()=>{const{el:d,wrapperEl:b,slides:_,width:j,height:$,rtlTranslate:_e,size:et,browser:tt}=e,st=e.params.cubeEffect,rt=e.isHorizontal(),nt=e.virtual&&e.params.virtual.enabled;let it=0,ot;st.shadow&&(rt?(ot=e.wrapperEl.querySelector(".swiper-cube-shadow"),ot||(ot=createElement("div","swiper-cube-shadow"),e.wrapperEl.append(ot)),ot.style.height=`${j}px`):(ot=d.querySelector(".swiper-cube-shadow"),ot||(ot=createElement("div","swiper-cube-shadow"),d.append(ot))));for(let ht=0;ht<_.length;ht+=1){const pt=_[ht];let yt=ht;nt&&(yt=parseInt(pt.getAttribute("data-swiper-slide-index"),10));let gt=yt*90,xt=Math.floor(gt/360);_e&&(gt=-gt,xt=Math.floor(-gt/360));const wt=Math.max(Math.min(pt.progress,1),-1);let vt=0,ft=0,lt=0;yt%4===0?(vt=-xt*4*et,lt=0):(yt-1)%4===0?(vt=0,lt=-xt*4*et):(yt-2)%4===0?(vt=et+xt*4*et,lt=et):(yt-3)%4===0&&(vt=-et,lt=3*et+et*4*xt),_e&&(vt=-vt),rt||(ft=vt,vt=0);const dt=`rotateX(${rt?0:-gt}deg) rotateY(${rt?gt:0}deg) translate3d(${vt}px, ${ft}px, ${lt}px)`;wt<=1&&wt>-1&&(it=yt*90+wt*90,_e&&(it=-yt*90-wt*90)),pt.style.transform=dt,st.slideShadows&&a(pt,wt,rt)}if(b.style.transformOrigin=`50% 50% -${et/2}px`,b.style["-webkit-transform-origin"]=`50% 50% -${et/2}px`,st.shadow)if(rt)ot.style.transform=`translate3d(0px, ${j/2+st.shadowOffset}px, ${-j/2}px) rotateX(90deg) rotateZ(0deg) scale(${st.shadowScale})`;else{const ht=Math.abs(it)-Math.floor(Math.abs(it)/90)*90,pt=1.5-(Math.sin(ht*2*Math.PI/360)/2+Math.cos(ht*2*Math.PI/360)/2),yt=st.shadowScale,gt=st.shadowScale/pt,xt=st.shadowOffset;ot.style.transform=`scale3d(${yt}, 1, ${gt}) translate3d(0px, ${$/2+xt}px, ${-$/2/gt}px) rotateX(-90deg)`}const ut=(tt.isSafari||tt.isWebView)&&tt.needPerspectiveFix?-et/2:0;b.style.transform=`translate3d(0px,0,${ut}px) rotateX(${e.isHorizontal()?0:it}deg) rotateY(${e.isHorizontal()?-it:0}deg)`,b.style.setProperty("--swiper-cube-translate-z",`${ut}px`)},setTransition:d=>{const{el:b,slides:_}=e;if(_.forEach(j=>{j.style.transitionDuration=`${d}ms`,j.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach($=>{$.style.transitionDuration=`${d}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const j=b.querySelector(".swiper-cube-shadow");j&&(j.style.transitionDuration=`${d}ms`)}},recreateShadows:()=>{const d=e.isHorizontal();e.slides.forEach(b=>{const _=Math.max(Math.min(b.progress,1),-1);a(b,_,d)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function createShadow(i,e,s){const o=`swiper-slide-shadow${s?`-${s}`:""}${i?` swiper-slide-shadow-${i}`:""}`,a=getSlideTransformEl(e);let c=a.querySelector(`.${o.split(" ").join(".")}`);return c||(c=createElement("div",o.split(" ")),a.append(c)),c}function EffectFlip(i){let{swiper:e,extendParams:s,on:o}=i;s({flipEffect:{slideShadows:!0,limitRotation:!0}});const a=(d,b)=>{let _=e.isHorizontal()?d.querySelector(".swiper-slide-shadow-left"):d.querySelector(".swiper-slide-shadow-top"),j=e.isHorizontal()?d.querySelector(".swiper-slide-shadow-right"):d.querySelector(".swiper-slide-shadow-bottom");_||(_=createShadow("flip",d,e.isHorizontal()?"left":"top")),j||(j=createShadow("flip",d,e.isHorizontal()?"right":"bottom")),_&&(_.style.opacity=Math.max(-b,0)),j&&(j.style.opacity=Math.max(b,0))};effectInit({effect:"flip",swiper:e,on:o,setTranslate:()=>{const{slides:d,rtlTranslate:b}=e,_=e.params.flipEffect;for(let j=0;j{const b=e.slides.map(_=>getSlideTransformEl(_));b.forEach(_=>{_.style.transitionDuration=`${d}ms`,_.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(j=>{j.style.transitionDuration=`${d}ms`})}),effectVirtualTransitionEnd({swiper:e,duration:d,transformElements:b})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(d=>{let b=d.progress;e.params.flipEffect.limitRotation&&(b=Math.max(Math.min(d.progress,1),-1)),a(d,b)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function EffectCoverflow(i){let{swiper:e,extendParams:s,on:o}=i;s({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),effectInit({effect:"coverflow",swiper:e,on:o,setTranslate:()=>{const{width:h,height:g,slides:d,slidesSizesGrid:b}=e,_=e.params.coverflowEffect,j=e.isHorizontal(),$=e.translate,_e=j?-$+h/2:-$+g/2,et=j?_.rotate:-_.rotate,tt=_.depth;for(let st=0,rt=d.length;st0?ht:0),at&&(at.style.opacity=-ht>0?-ht:0)}}},setTransition:h=>{e.slides.map(d=>getSlideTransformEl(d)).forEach(d=>{d.style.transitionDuration=`${h}ms`,d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(b=>{b.style.transitionDuration=`${h}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function EffectCreative(i){let{swiper:e,extendParams:s,on:o}=i;s({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const a=g=>typeof g=="string"?g:`${g}px`;effectInit({effect:"creative",swiper:e,on:o,setTranslate:()=>{const{slides:g,wrapperEl:d,slidesSizesGrid:b}=e,_=e.params.creativeEffect,{progressMultiplier:j}=_,$=e.params.centeredSlides;if($){const _e=b[0]/2-e.params.slidesOffsetBefore||0;d.style.transform=`translateX(calc(50% - ${_e}px))`}for(let _e=0;_e0&&(ht=_.prev,ut=!0),it.forEach((ft,lt)=>{it[lt]=`calc(${ft}px + (${a(ht.translate[lt])} * ${Math.abs(st*j)}))`}),ot.forEach((ft,lt)=>{ot[lt]=ht.rotate[lt]*Math.abs(st*j)}),et.style.zIndex=-Math.abs(Math.round(tt))+g.length;const pt=it.join(", "),yt=`rotateX(${ot[0]}deg) rotateY(${ot[1]}deg) rotateZ(${ot[2]}deg)`,gt=rt<0?`scale(${1+(1-ht.scale)*rt*j})`:`scale(${1-(1-ht.scale)*rt*j})`,xt=rt<0?1+(1-ht.opacity)*rt*j:1-(1-ht.opacity)*rt*j,wt=`translate3d(${pt}) ${yt} ${gt}`;if(ut&&ht.shadow||!ut){let ft=et.querySelector(".swiper-slide-shadow");if(!ft&&ht.shadow&&(ft=createShadow("creative",et)),ft){const lt=_.shadowPerProgress?st*(1/_.limitProgress):st;ft.style.opacity=Math.min(Math.max(Math.abs(lt),0),1)}}const vt=effectTarget(_,et);vt.style.transform=wt,vt.style.opacity=xt,ht.origin&&(vt.style.transformOrigin=ht.origin)}},setTransition:g=>{const d=e.slides.map(b=>getSlideTransformEl(b));d.forEach(b=>{b.style.transitionDuration=`${g}ms`,b.querySelectorAll(".swiper-slide-shadow").forEach(_=>{_.style.transitionDuration=`${g}ms`})}),effectVirtualTransitionEnd({swiper:e,duration:g,transformElements:d,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}function EffectCards(i){let{swiper:e,extendParams:s,on:o}=i;s({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),effectInit({effect:"cards",swiper:e,on:o,setTranslate:()=>{const{slides:h,activeIndex:g,rtlTranslate:d}=e,b=e.params.cardsEffect,{startTranslate:_,isTouched:j}=e.touchEventsData,$=d?-e.translate:e.translate;for(let _e=0;_e0&&st<1&&(j||e.params.cssMode)&&$<_,xt=(yt===g||yt===g+1)&&st<0&&st>-1&&(j||e.params.cssMode)&&$>_;if(gt||xt){const lt=(1-Math.abs((Math.abs(st)-.5)/.5))**.5;ht+=-28*st*lt,ut+=-.5*lt,pt+=96*lt,it=`${-25*lt*Math.abs(st)}%`}if(st<0?nt=`calc(${nt}px ${d?"-":"+"} (${pt*Math.abs(st)}%))`:st>0?nt=`calc(${nt}px ${d?"-":"+"} (-${pt*Math.abs(st)}%))`:nt=`${nt}px`,!e.isHorizontal()){const lt=it;it=nt,nt=lt}const wt=st<0?`${1+(1-ut)*st}`:`${1-(1-ut)*st}`,vt=` - translate3d(${nt}, ${it}, ${ot}px) +***************************************************************************** */var __assign=function(){return __assign=Object.assign||function(e){for(var s,o=1,a=arguments.length;o{typeof i[s]>"u"?i[s]=e[s]:isObject$2(e[s])&&isObject$2(i[s])&&Object.keys(e[s]).length>0&&extend$2(i[s],e[s])})}const ssrDocument={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function getDocument(){const i=typeof document<"u"?document:{};return extend$2(i,ssrDocument),i}const ssrWindow={document:ssrDocument,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function i(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(i){return typeof setTimeout>"u"?(i(),null):setTimeout(i,0)},cancelAnimationFrame(i){typeof setTimeout>"u"||clearTimeout(i)}};function getWindow(){const i=typeof window<"u"?window:{};return extend$2(i,ssrWindow),i}function deleteProps(i){const e=i;Object.keys(e).forEach(s=>{try{e[s]=null}catch{}try{delete e[s]}catch{}})}function nextTick(i,e){return e===void 0&&(e=0),setTimeout(i,e)}function now(){return Date.now()}function getComputedStyle$1(i){const e=getWindow();let s;return e.getComputedStyle&&(s=e.getComputedStyle(i,null)),!s&&i.currentStyle&&(s=i.currentStyle),s||(s=i.style),s}function getTranslate(i,e){e===void 0&&(e="x");const s=getWindow();let o,a,c;const h=getComputedStyle$1(i);return s.WebKitCSSMatrix?(a=h.transform||h.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(g=>g.replace(",",".")).join(", ")),c=new s.WebKitCSSMatrix(a==="none"?"":a)):(c=h.MozTransform||h.OTransform||h.MsTransform||h.msTransform||h.transform||h.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),o=c.toString().split(",")),e==="x"&&(s.WebKitCSSMatrix?a=c.m41:o.length===16?a=parseFloat(o[12]):a=parseFloat(o[4])),e==="y"&&(s.WebKitCSSMatrix?a=c.m42:o.length===16?a=parseFloat(o[13]):a=parseFloat(o[5])),a||0}function isObject$1(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function isNode(i){return typeof window<"u"&&typeof window.HTMLElement<"u"?i instanceof HTMLElement:i&&(i.nodeType===1||i.nodeType===11)}function extend$1(){const i=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let s=1;se.indexOf(c)<0);for(let c=0,h=a.length;cc?"next":"prev",_=($,_e)=>b==="next"&&$>=_e||b==="prev"&&$<=_e,j=()=>{g=new Date().getTime(),h===null&&(h=g);const $=Math.max(Math.min((g-h)/d,1),0),_e=.5-Math.cos($*Math.PI)/2;let et=c+_e*(s-c);if(_(et,s)&&(et=s),e.wrapperEl.scrollTo({[o]:et}),_(et,s)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[o]:et})}),a.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=a.requestAnimationFrame(j)};j()}function getSlideTransformEl(i){return i.querySelector(".swiper-slide-transform")||i.shadowRoot&&i.shadowRoot.querySelector(".swiper-slide-transform")||i}function elementChildren(i,e){return e===void 0&&(e=""),[...i.children].filter(s=>s.matches(e))}function createElement(i,e){e===void 0&&(e=[]);const s=document.createElement(i);return s.classList.add(...Array.isArray(e)?e:[e]),s}function elementOffset(i){const e=getWindow(),s=getDocument(),o=i.getBoundingClientRect(),a=s.body,c=i.clientTop||a.clientTop||0,h=i.clientLeft||a.clientLeft||0,g=i===e?e.scrollY:i.scrollTop,d=i===e?e.scrollX:i.scrollLeft;return{top:o.top+g-c,left:o.left+d-h}}function elementPrevAll(i,e){const s=[];for(;i.previousElementSibling;){const o=i.previousElementSibling;e?o.matches(e)&&s.push(o):s.push(o),i=o}return s}function elementNextAll(i,e){const s=[];for(;i.nextElementSibling;){const o=i.nextElementSibling;e?o.matches(e)&&s.push(o):s.push(o),i=o}return s}function elementStyle(i,e){return getWindow().getComputedStyle(i,null).getPropertyValue(e)}function elementIndex(i){let e=i,s;if(e){for(s=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(s+=1);return s}}function elementParents(i,e){const s=[];let o=i.parentElement;for(;o;)e?o.matches(e)&&s.push(o):s.push(o),o=o.parentElement;return s}function elementTransitionEnd(i,e){function s(o){o.target===i&&(e.call(i,o),i.removeEventListener("transitionend",s))}e&&i.addEventListener("transitionend",s)}function elementOuterSize(i,e,s){const o=getWindow();return s?i[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(o.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(o.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):i.offsetWidth}function Virtual(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;s({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let c;const h=getDocument();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const g=h.createElement("div");function d(et,tt){const st=e.params.virtual;if(st.cache&&e.virtual.cache[tt])return e.virtual.cache[tt];let nt;return st.renderSlide?(nt=st.renderSlide.call(e,et,tt),typeof nt=="string"&&(g.innerHTML=nt,nt=g.children[0])):e.isElement?nt=createElement("swiper-slide"):nt=createElement("div",e.params.slideClass),nt.setAttribute("data-swiper-slide-index",tt),st.renderSlide||(nt.innerHTML=et),st.cache&&(e.virtual.cache[tt]=nt),nt}function b(et){const{slidesPerView:tt,slidesPerGroup:st,centeredSlides:nt,loop:rt}=e.params,{addSlidesBefore:it,addSlidesAfter:ot}=e.params.virtual,{from:ut,to:ht,slides:pt,slidesGrid:yt,offset:gt}=e.virtual;e.params.cssMode||e.updateActiveIndex();const xt=e.activeIndex||0;let wt;e.rtlTranslate?wt="right":wt=e.isHorizontal()?"left":"top";let vt,ft;nt?(vt=Math.floor(tt/2)+st+ot,ft=Math.floor(tt/2)+st+it):(vt=tt+(st-1)+ot,ft=(rt?tt:st)+it);let lt=xt-ft,dt=xt+vt;rt||(lt=Math.max(lt,0),dt=Math.min(dt,pt.length-1));let bt=(e.slidesGrid[lt]||0)-(e.slidesGrid[0]||0);rt&&xt>=ft?(lt-=ft,nt||(bt+=e.slidesGrid[0])):rt&&xt{Ct.style[wt]=`${bt-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),a("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:bt,from:lt,to:dt,slides:function(){const Rt=[];for(let At=lt;At<=dt;At+=1)Rt.push(pt[At]);return Rt}()}),e.params.virtual.renderExternalUpdate?at():a("virtualUpdate");return}const ct=[],mt=[],Et=Ct=>{let Rt=Ct;return Ct<0?Rt=pt.length+Ct:Rt>=pt.length&&(Rt=Rt-pt.length),Rt};if(et)e.slidesEl.querySelectorAll(`.${e.params.slideClass}, swiper-slide`).forEach(Ct=>{Ct.remove()});else for(let Ct=ut;Ct<=ht;Ct+=1)if(Ctdt){const Rt=Et(Ct);e.slidesEl.querySelectorAll(`.${e.params.slideClass}[data-swiper-slide-index="${Rt}"], swiper-slide[data-swiper-slide-index="${Rt}"]`).forEach(At=>{At.remove()})}const jt=rt?-pt.length:0,kt=rt?pt.length*2:pt.length;for(let Ct=jt;Ct=lt&&Ct<=dt){const Rt=Et(Ct);typeof ht>"u"||et?mt.push(Rt):(Ct>ht&&mt.push(Rt),Ct{e.slidesEl.append(d(pt[Ct],Ct))}),rt)for(let Ct=ct.length-1;Ct>=0;Ct-=1){const Rt=ct[Ct];e.slidesEl.prepend(d(pt[Rt],Rt))}else ct.sort((Ct,Rt)=>Rt-Ct),ct.forEach(Ct=>{e.slidesEl.prepend(d(pt[Ct],Ct))});elementChildren(e.slidesEl,".swiper-slide, swiper-slide").forEach(Ct=>{Ct.style[wt]=`${bt-Math.abs(e.cssOverflowAdjustment())}px`}),at()}function _(et){if(typeof et=="object"&&"length"in et)for(let tt=0;tt{const ut=rt[ot],ht=ut.getAttribute("data-swiper-slide-index");ht&&ut.setAttribute("data-swiper-slide-index",parseInt(ht,10)+nt),it[parseInt(ot,10)+nt]=ut}),e.virtual.cache=it}b(!0),e.slideTo(st,0)}function $(et){if(typeof et>"u"||et===null)return;let tt=e.activeIndex;if(Array.isArray(et))for(let st=et.length-1;st>=0;st-=1)e.virtual.slides.splice(et[st],1),e.params.virtual.cache&&delete e.virtual.cache[et[st]],et[st]{if(!e.params.virtual.enabled)return;let et;if(typeof e.passedParams.virtual.slides>"u"){const tt=[...e.slidesEl.children].filter(st=>st.matches(`.${e.params.slideClass}, swiper-slide`));tt&&tt.length&&(e.virtual.slides=[...tt],et=!0,tt.forEach((st,nt)=>{st.setAttribute("data-swiper-slide-index",nt),e.virtual.cache[nt]=st,st.remove()}))}et||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,e.params.initialSlide||b()}),o("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(c),c=setTimeout(()=>{b()},100)):b())}),o("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&setCSSProperty(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:_,prependSlide:j,removeSlide:$,removeAllSlides:_e,update:b})}function Keyboard(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;const c=getDocument(),h=getWindow();e.keyboard={enabled:!1},s({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function g(_){if(!e.enabled)return;const{rtlTranslate:j}=e;let $=_;$.originalEvent&&($=$.originalEvent);const _e=$.keyCode||$.charCode,et=e.params.keyboard.pageUpDown,tt=et&&_e===33,st=et&&_e===34,nt=_e===37,rt=_e===39,it=_e===38,ot=_e===40;if(!e.allowSlideNext&&(e.isHorizontal()&&rt||e.isVertical()&&ot||st)||!e.allowSlidePrev&&(e.isHorizontal()&&nt||e.isVertical()&&it||tt))return!1;if(!($.shiftKey||$.altKey||$.ctrlKey||$.metaKey)&&!(c.activeElement&&c.activeElement.nodeName&&(c.activeElement.nodeName.toLowerCase()==="input"||c.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(tt||st||nt||rt||it||ot)){let ut=!1;if(elementParents(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&elementParents(e.el,`.${e.params.slideActiveClass}`).length===0)return;const ht=e.el,pt=ht.clientWidth,yt=ht.clientHeight,gt=h.innerWidth,xt=h.innerHeight,wt=elementOffset(ht);j&&(wt.left-=ht.scrollLeft);const vt=[[wt.left,wt.top],[wt.left+pt,wt.top],[wt.left,wt.top+yt],[wt.left+pt,wt.top+yt]];for(let ft=0;ft=0&<[0]<=gt&<[1]>=0&<[1]<=xt){if(lt[0]===0&<[1]===0)continue;ut=!0}}if(!ut)return}e.isHorizontal()?((tt||st||nt||rt)&&($.preventDefault?$.preventDefault():$.returnValue=!1),((st||rt)&&!j||(tt||nt)&&j)&&e.slideNext(),((tt||nt)&&!j||(st||rt)&&j)&&e.slidePrev()):((tt||st||it||ot)&&($.preventDefault?$.preventDefault():$.returnValue=!1),(st||ot)&&e.slideNext(),(tt||it)&&e.slidePrev()),a("keyPress",_e)}}function d(){e.keyboard.enabled||(c.addEventListener("keydown",g),e.keyboard.enabled=!0)}function b(){e.keyboard.enabled&&(c.removeEventListener("keydown",g),e.keyboard.enabled=!1)}o("init",()=>{e.params.keyboard.enabled&&d()}),o("destroy",()=>{e.keyboard.enabled&&b()}),Object.assign(e.keyboard,{enable:d,disable:b})}function Mousewheel(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;const c=getWindow();s({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let h,g=now(),d;const b=[];function _(it){let pt=0,yt=0,gt=0,xt=0;return"detail"in it&&(yt=it.detail),"wheelDelta"in it&&(yt=-it.wheelDelta/120),"wheelDeltaY"in it&&(yt=-it.wheelDeltaY/120),"wheelDeltaX"in it&&(pt=-it.wheelDeltaX/120),"axis"in it&&it.axis===it.HORIZONTAL_AXIS&&(pt=yt,yt=0),gt=pt*10,xt=yt*10,"deltaY"in it&&(xt=it.deltaY),"deltaX"in it&&(gt=it.deltaX),it.shiftKey&&!gt&&(gt=xt,xt=0),(gt||xt)&&it.deltaMode&&(it.deltaMode===1?(gt*=40,xt*=40):(gt*=800,xt*=800)),gt&&!pt&&(pt=gt<1?-1:1),xt&&!yt&&(yt=xt<1?-1:1),{spinX:pt,spinY:yt,pixelX:gt,pixelY:xt}}function j(){e.enabled&&(e.mouseEntered=!0)}function $(){e.enabled&&(e.mouseEntered=!1)}function _e(it){return e.params.mousewheel.thresholdDelta&&it.delta=6&&now()-g<60?!0:(it.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),a("scroll",it.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),a("scroll",it.raw)),g=new c.Date().getTime(),!1)}function et(it){const ot=e.params.mousewheel;if(it.direction<0){if(e.isEnd&&!e.params.loop&&ot.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&ot.releaseOnEdges)return!0;return!1}function tt(it){let ot=it,ut=!0;if(!e.enabled||it.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const ht=e.params.mousewheel;e.params.cssMode&&ot.preventDefault();let pt=e.el;e.params.mousewheel.eventsTarget!=="container"&&(pt=document.querySelector(e.params.mousewheel.eventsTarget));const yt=pt&&pt.contains(ot.target);if(!e.mouseEntered&&!yt&&!ht.releaseOnEdges)return!0;ot.originalEvent&&(ot=ot.originalEvent);let gt=0;const xt=e.rtlTranslate?-1:1,wt=_(ot);if(ht.forceToAxis)if(e.isHorizontal())if(Math.abs(wt.pixelX)>Math.abs(wt.pixelY))gt=-wt.pixelX*xt;else return!0;else if(Math.abs(wt.pixelY)>Math.abs(wt.pixelX))gt=-wt.pixelY;else return!0;else gt=Math.abs(wt.pixelX)>Math.abs(wt.pixelY)?-wt.pixelX*xt:-wt.pixelY;if(gt===0)return!0;ht.invert&&(gt=-gt);let vt=e.getTranslate()+gt*ht.sensitivity;if(vt>=e.minTranslate()&&(vt=e.minTranslate()),vt<=e.maxTranslate()&&(vt=e.maxTranslate()),ut=e.params.loop?!0:!(vt===e.minTranslate()||vt===e.maxTranslate()),ut&&e.params.nested&&ot.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const ft={time:now(),delta:Math.abs(gt),direction:Math.sign(gt),raw:it};b.length>=2&&b.shift();const lt=b.length?b[b.length-1]:void 0;if(b.push(ft),lt?(ft.direction!==lt.direction||ft.delta>lt.delta||ft.time>lt.time+150)&&_e(ft):_e(ft),et(ft))return!0}else{const ft={time:now(),delta:Math.abs(gt),direction:Math.sign(gt)},lt=d&&ft.time=e.minTranslate()&&(dt=e.minTranslate()),dt<=e.maxTranslate()&&(dt=e.maxTranslate()),e.setTransition(0),e.setTranslate(dt),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!bt&&e.isBeginning||!at&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:ft.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(h),h=void 0,b.length>=15&&b.shift();const ct=b.length?b[b.length-1]:void 0,mt=b[0];if(b.push(ft),ct&&(ft.delta>ct.delta||ft.direction!==ct.direction))b.splice(0);else if(b.length>=15&&ft.time-mt.time<500&&mt.delta-ft.delta>=1&&ft.delta<=6){const Et=gt>0?.8:.2;d=ft,b.splice(0),h=nextTick(()=>{e.slideToClosest(e.params.speed,!0,void 0,Et)},0)}h||(h=nextTick(()=>{d=ft,b.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(lt||a("scroll",ot),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),ht.releaseOnEdges&&(dt===e.minTranslate()||dt===e.maxTranslate()))return!0}}return ot.preventDefault?ot.preventDefault():ot.returnValue=!1,!1}function st(it){let ot=e.el;e.params.mousewheel.eventsTarget!=="container"&&(ot=document.querySelector(e.params.mousewheel.eventsTarget)),ot[it]("mouseenter",j),ot[it]("mouseleave",$),ot[it]("wheel",tt)}function nt(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",tt),!0):e.mousewheel.enabled?!1:(st("addEventListener"),e.mousewheel.enabled=!0,!0)}function rt(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,tt),!0):e.mousewheel.enabled?(st("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}o("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&rt(),e.params.mousewheel.enabled&&nt()}),o("destroy",()=>{e.params.cssMode&&nt(),e.mousewheel.enabled&&rt()}),Object.assign(e.mousewheel,{enable:nt,disable:rt})}function createElementIfNotDefined(i,e,s,o){return i.params.createElements&&Object.keys(o).forEach(a=>{if(!s[a]&&s.auto===!0){let c=elementChildren(i.el,`.${o[a]}`)[0];c||(c=createElement("div",o[a]),c.className=o[a],i.el.append(c)),s[a]=c,e[a]=c}}),s}function Navigation(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;s({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const c=tt=>(Array.isArray(tt)?tt:[tt]).filter(st=>!!st);function h(tt){let st;return tt&&typeof tt=="string"&&e.isElement&&(st=e.el.querySelector(tt),st)?st:(tt&&(typeof tt=="string"&&(st=[...document.querySelectorAll(tt)]),e.params.uniqueNavElements&&typeof tt=="string"&&st.length>1&&e.el.querySelectorAll(tt).length===1&&(st=e.el.querySelector(tt))),tt&&!st?tt:st)}function g(tt,st){const nt=e.params.navigation;tt=c(tt),tt.forEach(rt=>{rt&&(rt.classList[st?"add":"remove"](...nt.disabledClass.split(" ")),rt.tagName==="BUTTON"&&(rt.disabled=st),e.params.watchOverflow&&e.enabled&&rt.classList[e.isLocked?"add":"remove"](nt.lockClass))})}function d(){const{nextEl:tt,prevEl:st}=e.navigation;if(e.params.loop){g(st,!1),g(tt,!1);return}g(st,e.isBeginning&&!e.params.rewind),g(tt,e.isEnd&&!e.params.rewind)}function b(tt){tt.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),a("navigationPrev"))}function _(tt){tt.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),a("navigationNext"))}function j(){const tt=e.params.navigation;if(e.params.navigation=createElementIfNotDefined(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(tt.nextEl||tt.prevEl))return;let st=h(tt.nextEl),nt=h(tt.prevEl);Object.assign(e.navigation,{nextEl:st,prevEl:nt}),st=c(st),nt=c(nt);const rt=(it,ot)=>{it&&it.addEventListener("click",ot==="next"?_:b),!e.enabled&&it&&it.classList.add(...tt.lockClass.split(" "))};st.forEach(it=>rt(it,"next")),nt.forEach(it=>rt(it,"prev"))}function $(){let{nextEl:tt,prevEl:st}=e.navigation;tt=c(tt),st=c(st);const nt=(rt,it)=>{rt.removeEventListener("click",it==="next"?_:b),rt.classList.remove(...e.params.navigation.disabledClass.split(" "))};tt.forEach(rt=>nt(rt,"next")),st.forEach(rt=>nt(rt,"prev"))}o("init",()=>{e.params.navigation.enabled===!1?et():(j(),d())}),o("toEdge fromEdge lock unlock",()=>{d()}),o("destroy",()=>{$()}),o("enable disable",()=>{let{nextEl:tt,prevEl:st}=e.navigation;tt=c(tt),st=c(st),[...tt,...st].filter(nt=>!!nt).forEach(nt=>nt.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),o("click",(tt,st)=>{let{nextEl:nt,prevEl:rt}=e.navigation;nt=c(nt),rt=c(rt);const it=st.target;if(e.params.navigation.hideOnClick&&!rt.includes(it)&&!nt.includes(it)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===it||e.pagination.el.contains(it)))return;let ot;nt.length?ot=nt[0].classList.contains(e.params.navigation.hiddenClass):rt.length&&(ot=rt[0].classList.contains(e.params.navigation.hiddenClass)),a(ot===!0?"navigationShow":"navigationHide"),[...nt,...rt].filter(ut=>!!ut).forEach(ut=>ut.classList.toggle(e.params.navigation.hiddenClass))}});const _e=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),j(),d()},et=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),$()};Object.assign(e.navigation,{enable:_e,disable:et,update:d,init:j,destroy:$})}function classesToSelector(i){return i===void 0&&(i=""),`.${i.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Pagination(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;const c="swiper-pagination";s({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:rt=>rt,formatFractionTotal:rt=>rt,bulletClass:`${c}-bullet`,bulletActiveClass:`${c}-bullet-active`,modifierClass:`${c}-`,currentClass:`${c}-current`,totalClass:`${c}-total`,hiddenClass:`${c}-hidden`,progressbarFillClass:`${c}-progressbar-fill`,progressbarOppositeClass:`${c}-progressbar-opposite`,clickableClass:`${c}-clickable`,lockClass:`${c}-lock`,horizontalClass:`${c}-horizontal`,verticalClass:`${c}-vertical`,paginationDisabledClass:`${c}-disabled`}}),e.pagination={el:null,bullets:[]};let h,g=0;const d=rt=>(Array.isArray(rt)?rt:[rt]).filter(it=>!!it);function b(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function _(rt,it){const{bulletActiveClass:ot}=e.params.pagination;rt&&(rt=rt[`${it==="prev"?"previous":"next"}ElementSibling`],rt&&(rt.classList.add(`${ot}-${it}`),rt=rt[`${it==="prev"?"previous":"next"}ElementSibling`],rt&&rt.classList.add(`${ot}-${it}-${it}`)))}function j(rt){const it=rt.target.closest(classesToSelector(e.params.pagination.bulletClass));if(!it)return;rt.preventDefault();const ot=elementIndex(it)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===ot)return;const ut=e.realIndex,ht=e.getSlideIndexByData(ot),pt=e.getSlideIndexByData(e.realIndex);if(ht>e.slides.length-e.loopedSlides){const yt=e.activeIndex;e.loopFix({direction:ht>pt?"next":"prev",activeSlideIndex:ht,slideTo:!1});const gt=e.activeIndex;yt===gt&&e.slideToLoop(ut,0,!1,!0)}e.slideToLoop(ot)}else e.slideTo(ot)}function $(){const rt=e.rtl,it=e.params.pagination;if(b())return;let ot=e.pagination.el;ot=d(ot);let ut,ht;const pt=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,yt=e.params.loop?Math.ceil(pt/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(ht=e.previousRealIndex||0,ut=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(ut=e.snapIndex,ht=e.previousSnapIndex):(ht=e.previousIndex||0,ut=e.activeIndex||0),it.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const gt=e.pagination.bullets;let xt,wt,vt;if(it.dynamicBullets&&(h=elementOuterSize(gt[0],e.isHorizontal()?"width":"height",!0),ot.forEach(ft=>{ft.style[e.isHorizontal()?"width":"height"]=`${h*(it.dynamicMainBullets+4)}px`}),it.dynamicMainBullets>1&&ht!==void 0&&(g+=ut-(ht||0),g>it.dynamicMainBullets-1?g=it.dynamicMainBullets-1:g<0&&(g=0)),xt=Math.max(ut-g,0),wt=xt+(Math.min(gt.length,it.dynamicMainBullets)-1),vt=(wt+xt)/2),gt.forEach(ft=>{const lt=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(dt=>`${it.bulletActiveClass}${dt}`)].map(dt=>typeof dt=="string"&&dt.includes(" ")?dt.split(" "):dt).flat();ft.classList.remove(...lt)}),ot.length>1)gt.forEach(ft=>{const lt=elementIndex(ft);lt===ut?ft.classList.add(...it.bulletActiveClass.split(" ")):e.isElement&&ft.setAttribute("part","bullet"),it.dynamicBullets&&(lt>=xt&<<=wt&&ft.classList.add(...`${it.bulletActiveClass}-main`.split(" ")),lt===xt&&_(ft,"prev"),lt===wt&&_(ft,"next"))});else{const ft=gt[ut];if(ft&&ft.classList.add(...it.bulletActiveClass.split(" ")),e.isElement&>.forEach((lt,dt)=>{lt.setAttribute("part",dt===ut?"bullet-active":"bullet")}),it.dynamicBullets){const lt=gt[xt],dt=gt[wt];for(let bt=xt;bt<=wt;bt+=1)gt[bt]&>[bt].classList.add(...`${it.bulletActiveClass}-main`.split(" "));_(lt,"prev"),_(dt,"next")}}if(it.dynamicBullets){const ft=Math.min(gt.length,it.dynamicMainBullets+4),lt=(h*ft-h)/2-vt*h,dt=rt?"right":"left";gt.forEach(bt=>{bt.style[e.isHorizontal()?dt:"top"]=`${lt}px`})}}ot.forEach((gt,xt)=>{if(it.type==="fraction"&&(gt.querySelectorAll(classesToSelector(it.currentClass)).forEach(wt=>{wt.textContent=it.formatFractionCurrent(ut+1)}),gt.querySelectorAll(classesToSelector(it.totalClass)).forEach(wt=>{wt.textContent=it.formatFractionTotal(yt)})),it.type==="progressbar"){let wt;it.progressbarOpposite?wt=e.isHorizontal()?"vertical":"horizontal":wt=e.isHorizontal()?"horizontal":"vertical";const vt=(ut+1)/yt;let ft=1,lt=1;wt==="horizontal"?ft=vt:lt=vt,gt.querySelectorAll(classesToSelector(it.progressbarFillClass)).forEach(dt=>{dt.style.transform=`translate3d(0,0,0) scaleX(${ft}) scaleY(${lt})`,dt.style.transitionDuration=`${e.params.speed}ms`})}it.type==="custom"&&it.renderCustom?(gt.innerHTML=it.renderCustom(e,ut+1,yt),xt===0&&a("paginationRender",gt)):(xt===0&&a("paginationRender",gt),a("paginationUpdate",gt)),e.params.watchOverflow&&e.enabled&>.classList[e.isLocked?"add":"remove"](it.lockClass)})}function _e(){const rt=e.params.pagination;if(b())return;const it=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let ot=e.pagination.el;ot=d(ot);let ut="";if(rt.type==="bullets"){let ht=e.params.loop?Math.ceil(it/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&ht>it&&(ht=it);for(let pt=0;pt`}rt.type==="fraction"&&(rt.renderFraction?ut=rt.renderFraction.call(e,rt.currentClass,rt.totalClass):ut=` / `),rt.type==="progressbar"&&(rt.renderProgressbar?ut=rt.renderProgressbar.call(e,rt.progressbarFillClass):ut=``),e.pagination.bullets=[],ot.forEach(ht=>{rt.type!=="custom"&&(ht.innerHTML=ut||""),rt.type==="bullets"&&e.pagination.bullets.push(...ht.querySelectorAll(classesToSelector(rt.bulletClass)))}),rt.type!=="custom"&&a("paginationRender",ot[0])}function et(){e.params.pagination=createElementIfNotDefined(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const rt=e.params.pagination;if(!rt.el)return;let it;typeof rt.el=="string"&&e.isElement&&(it=e.el.querySelector(rt.el)),!it&&typeof rt.el=="string"&&(it=[...document.querySelectorAll(rt.el)]),it||(it=rt.el),!(!it||it.length===0)&&(e.params.uniqueNavElements&&typeof rt.el=="string"&&Array.isArray(it)&&it.length>1&&(it=[...e.el.querySelectorAll(rt.el)],it.length>1&&(it=it.filter(ot=>elementParents(ot,".swiper")[0]===e.el)[0])),Array.isArray(it)&&it.length===1&&(it=it[0]),Object.assign(e.pagination,{el:it}),it=d(it),it.forEach(ot=>{rt.type==="bullets"&&rt.clickable&&ot.classList.add(...(rt.clickableClass||"").split(" ")),ot.classList.add(rt.modifierClass+rt.type),ot.classList.add(e.isHorizontal()?rt.horizontalClass:rt.verticalClass),rt.type==="bullets"&&rt.dynamicBullets&&(ot.classList.add(`${rt.modifierClass}${rt.type}-dynamic`),g=0,rt.dynamicMainBullets<1&&(rt.dynamicMainBullets=1)),rt.type==="progressbar"&&rt.progressbarOpposite&&ot.classList.add(rt.progressbarOppositeClass),rt.clickable&&ot.addEventListener("click",j),e.enabled||ot.classList.add(rt.lockClass)}))}function tt(){const rt=e.params.pagination;if(b())return;let it=e.pagination.el;it&&(it=d(it),it.forEach(ot=>{ot.classList.remove(rt.hiddenClass),ot.classList.remove(rt.modifierClass+rt.type),ot.classList.remove(e.isHorizontal()?rt.horizontalClass:rt.verticalClass),rt.clickable&&(ot.classList.remove(...(rt.clickableClass||"").split(" ")),ot.removeEventListener("click",j))})),e.pagination.bullets&&e.pagination.bullets.forEach(ot=>ot.classList.remove(...rt.bulletActiveClass.split(" ")))}o("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const rt=e.params.pagination;let{el:it}=e.pagination;it=d(it),it.forEach(ot=>{ot.classList.remove(rt.horizontalClass,rt.verticalClass),ot.classList.add(e.isHorizontal()?rt.horizontalClass:rt.verticalClass)})}),o("init",()=>{e.params.pagination.enabled===!1?nt():(et(),_e(),$())}),o("activeIndexChange",()=>{typeof e.snapIndex>"u"&&$()}),o("snapIndexChange",()=>{$()}),o("snapGridLengthChange",()=>{_e(),$()}),o("destroy",()=>{tt()}),o("enable disable",()=>{let{el:rt}=e.pagination;rt&&(rt=d(rt),rt.forEach(it=>it.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),o("lock unlock",()=>{$()}),o("click",(rt,it)=>{const ot=it.target,ut=d(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&ut&&ut.length>0&&!ot.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&ot===e.navigation.nextEl||e.navigation.prevEl&&ot===e.navigation.prevEl))return;const ht=ut[0].classList.contains(e.params.pagination.hiddenClass);a(ht===!0?"paginationShow":"paginationHide"),ut.forEach(pt=>pt.classList.toggle(e.params.pagination.hiddenClass))}});const st=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:rt}=e.pagination;rt&&(rt=d(rt),rt.forEach(it=>it.classList.remove(e.params.pagination.paginationDisabledClass))),et(),_e(),$()},nt=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:rt}=e.pagination;rt&&(rt=d(rt),rt.forEach(it=>it.classList.add(e.params.pagination.paginationDisabledClass))),tt()};Object.assign(e.pagination,{enable:st,disable:nt,render:_e,update:$,init:et,destroy:tt})}function Scrollbar(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;const c=getDocument();let h=!1,g=null,d=null,b,_,j,$;s({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function _e(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:vt,rtlTranslate:ft}=e,{dragEl:lt,el:dt}=vt,bt=e.params.scrollbar,at=e.params.loop?e.progressLoop:e.progress;let ct=_,mt=(j-_)*at;ft?(mt=-mt,mt>0?(ct=_-mt,mt=0):-mt+_>j&&(ct=j+mt)):mt<0?(ct=_+mt,mt=0):mt+_>j&&(ct=j-mt),e.isHorizontal()?(lt.style.transform=`translate3d(${mt}px, 0, 0)`,lt.style.width=`${ct}px`):(lt.style.transform=`translate3d(0px, ${mt}px, 0)`,lt.style.height=`${ct}px`),bt.hide&&(clearTimeout(g),dt.style.opacity=1,g=setTimeout(()=>{dt.style.opacity=0,dt.style.transitionDuration="400ms"},1e3))}function et(vt){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${vt}ms`)}function tt(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:vt}=e,{dragEl:ft,el:lt}=vt;ft.style.width="",ft.style.height="",j=e.isHorizontal()?lt.offsetWidth:lt.offsetHeight,$=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?_=j*$:_=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?ft.style.width=`${_}px`:ft.style.height=`${_}px`,$>=1?lt.style.display="none":lt.style.display="",e.params.scrollbar.hide&&(lt.style.opacity=0),e.params.watchOverflow&&e.enabled&&vt.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function st(vt){return e.isHorizontal()?vt.clientX:vt.clientY}function nt(vt){const{scrollbar:ft,rtlTranslate:lt}=e,{el:dt}=ft;let bt;bt=(st(vt)-elementOffset(dt)[e.isHorizontal()?"left":"top"]-(b!==null?b:_/2))/(j-_),bt=Math.max(Math.min(bt,1),0),lt&&(bt=1-bt);const at=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*bt;e.updateProgress(at),e.setTranslate(at),e.updateActiveIndex(),e.updateSlidesClasses()}function rt(vt){const ft=e.params.scrollbar,{scrollbar:lt,wrapperEl:dt}=e,{el:bt,dragEl:at}=lt;h=!0,b=vt.target===at?st(vt)-vt.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,vt.preventDefault(),vt.stopPropagation(),dt.style.transitionDuration="100ms",at.style.transitionDuration="100ms",nt(vt),clearTimeout(d),bt.style.transitionDuration="0ms",ft.hide&&(bt.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",vt)}function it(vt){const{scrollbar:ft,wrapperEl:lt}=e,{el:dt,dragEl:bt}=ft;h&&(vt.preventDefault?vt.preventDefault():vt.returnValue=!1,nt(vt),lt.style.transitionDuration="0ms",dt.style.transitionDuration="0ms",bt.style.transitionDuration="0ms",a("scrollbarDragMove",vt))}function ot(vt){const ft=e.params.scrollbar,{scrollbar:lt,wrapperEl:dt}=e,{el:bt}=lt;h&&(h=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",dt.style.transitionDuration=""),ft.hide&&(clearTimeout(d),d=nextTick(()=>{bt.style.opacity=0,bt.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",vt),ft.snapOnRelease&&e.slideToClosest())}function ut(vt){const{scrollbar:ft,params:lt}=e,dt=ft.el;if(!dt)return;const bt=dt,at=lt.passiveListeners?{passive:!1,capture:!1}:!1,ct=lt.passiveListeners?{passive:!0,capture:!1}:!1;if(!bt)return;const mt=vt==="on"?"addEventListener":"removeEventListener";bt[mt]("pointerdown",rt,at),c[mt]("pointermove",it,at),c[mt]("pointerup",ot,ct)}function ht(){!e.params.scrollbar.el||!e.scrollbar.el||ut("on")}function pt(){!e.params.scrollbar.el||!e.scrollbar.el||ut("off")}function yt(){const{scrollbar:vt,el:ft}=e;e.params.scrollbar=createElementIfNotDefined(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const lt=e.params.scrollbar;if(!lt.el)return;let dt;typeof lt.el=="string"&&e.isElement&&(dt=e.el.querySelector(lt.el)),!dt&&typeof lt.el=="string"?dt=c.querySelectorAll(lt.el):dt||(dt=lt.el),e.params.uniqueNavElements&&typeof lt.el=="string"&&dt.length>1&&ft.querySelectorAll(lt.el).length===1&&(dt=ft.querySelector(lt.el)),dt.length>0&&(dt=dt[0]),dt.classList.add(e.isHorizontal()?lt.horizontalClass:lt.verticalClass);let bt;dt&&(bt=dt.querySelector(`.${e.params.scrollbar.dragClass}`),bt||(bt=createElement("div",e.params.scrollbar.dragClass),dt.append(bt))),Object.assign(vt,{el:dt,dragEl:bt}),lt.draggable&&ht(),dt&&dt.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}function gt(){const vt=e.params.scrollbar,ft=e.scrollbar.el;ft&&ft.classList.remove(e.isHorizontal()?vt.horizontalClass:vt.verticalClass),pt()}o("init",()=>{e.params.scrollbar.enabled===!1?wt():(yt(),tt(),_e())}),o("update resize observerUpdate lock unlock",()=>{tt()}),o("setTranslate",()=>{_e()}),o("setTransition",(vt,ft)=>{et(ft)}),o("enable disable",()=>{const{el:vt}=e.scrollbar;vt&&vt.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}),o("destroy",()=>{gt()});const xt=()=>{e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),yt(),tt(),_e()},wt=()=>{e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),gt()};Object.assign(e.scrollbar,{enable:xt,disable:wt,updateSize:tt,setTranslate:_e,init:yt,destroy:gt})}function Parallax(i){let{swiper:e,extendParams:s,on:o}=i;s({parallax:{enabled:!1}});const a="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",c=(d,b)=>{const{rtl:_}=e,j=_?-1:1,$=d.getAttribute("data-swiper-parallax")||"0";let _e=d.getAttribute("data-swiper-parallax-x"),et=d.getAttribute("data-swiper-parallax-y");const tt=d.getAttribute("data-swiper-parallax-scale"),st=d.getAttribute("data-swiper-parallax-opacity"),nt=d.getAttribute("data-swiper-parallax-rotate");if(_e||et?(_e=_e||"0",et=et||"0"):e.isHorizontal()?(_e=$,et="0"):(et=$,_e="0"),_e.indexOf("%")>=0?_e=`${parseInt(_e,10)*b*j}%`:_e=`${_e*b*j}px`,et.indexOf("%")>=0?et=`${parseInt(et,10)*b}%`:et=`${et*b}px`,typeof st<"u"&&st!==null){const it=st-(st-1)*(1-Math.abs(b));d.style.opacity=it}let rt=`translate3d(${_e}, ${et}, 0px)`;if(typeof tt<"u"&&tt!==null){const it=tt-(tt-1)*(1-Math.abs(b));rt+=` scale(${it})`}if(nt&&typeof nt<"u"&&nt!==null){const it=nt*b*-1;rt+=` rotate(${it}deg)`}d.style.transform=rt},h=()=>{const{el:d,slides:b,progress:_,snapGrid:j,isElement:$}=e,_e=elementChildren(d,a);e.isElement&&_e.push(...elementChildren(e.hostEl,a)),_e.forEach(et=>{c(et,_)}),b.forEach((et,tt)=>{let st=et.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(st+=Math.ceil(tt/2)-_*(j.length-1)),st=Math.min(Math.max(st,-1),1),et.querySelectorAll(`${a}, [data-swiper-parallax-rotate]`).forEach(nt=>{c(nt,st)})})},g=function(d){d===void 0&&(d=e.params.speed);const{el:b,hostEl:_}=e,j=[...b.querySelectorAll(a)];e.isElement&&j.push(..._.querySelectorAll(a)),j.forEach($=>{let _e=parseInt($.getAttribute("data-swiper-parallax-duration"),10)||d;d===0&&(_e=0),$.style.transitionDuration=`${_e}ms`})};o("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),o("init",()=>{e.params.parallax.enabled&&h()}),o("setTranslate",()=>{e.params.parallax.enabled&&h()}),o("setTransition",(d,b)=>{e.params.parallax.enabled&&g(b)})}function Zoom(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;const c=getWindow();s({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let h=1,g=!1,d,b;const _=[],j={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},$={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},_e={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let et=1;Object.defineProperty(e.zoom,"scale",{get(){return et},set(at){if(et!==at){const ct=j.imageEl,mt=j.slideEl;a("zoomChange",at,ct,mt)}et=at}});function tt(){if(_.length<2)return 1;const at=_[0].pageX,ct=_[0].pageY,mt=_[1].pageX,Et=_[1].pageY;return Math.sqrt((mt-at)**2+(Et-ct)**2)}function st(){if(_.length<2)return{x:null,y:null};const at=j.imageEl.getBoundingClientRect();return[(_[0].pageX+(_[1].pageX-_[0].pageX)/2-at.x)/h,(_[0].pageY+(_[1].pageY-_[0].pageY)/2-at.y)/h]}function nt(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function rt(at){const ct=nt();return!!(at.target.matches(ct)||e.slides.filter(mt=>mt.contains(at.target)).length>0)}function it(at){const ct=`.${e.params.zoom.containerClass}`;return!!(at.target.matches(ct)||[...e.hostEl.querySelectorAll(ct)].filter(mt=>mt.contains(at.target)).length>0)}function ot(at){if(at.pointerType==="mouse"&&_.splice(0,_.length),!rt(at))return;const ct=e.params.zoom;if(d=!1,b=!1,_.push(at),!(_.length<2)){if(d=!0,j.scaleStart=tt(),!j.slideEl){j.slideEl=at.target.closest(`.${e.params.slideClass}, swiper-slide`),j.slideEl||(j.slideEl=e.slides[e.activeIndex]);let mt=j.slideEl.querySelector(`.${ct.containerClass}`);if(mt&&(mt=mt.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),j.imageEl=mt,mt?j.imageWrapEl=elementParents(j.imageEl,`.${ct.containerClass}`)[0]:j.imageWrapEl=void 0,!j.imageWrapEl){j.imageEl=void 0;return}j.maxRatio=j.imageWrapEl.getAttribute("data-swiper-zoom")||ct.maxRatio}if(j.imageEl){const[mt,Et]=st();j.originX=mt,j.originY=Et,j.imageEl.style.transitionDuration="0ms"}g=!0}}function ut(at){if(!rt(at))return;const ct=e.params.zoom,mt=e.zoom,Et=_.findIndex(jt=>jt.pointerId===at.pointerId);Et>=0&&(_[Et]=at),!(_.length<2)&&(b=!0,j.scaleMove=tt(),j.imageEl&&(mt.scale=j.scaleMove/j.scaleStart*h,mt.scale>j.maxRatio&&(mt.scale=j.maxRatio-1+(mt.scale-j.maxRatio+1)**.5),mt.scalejt.pointerId===at.pointerId);Et>=0&&_.splice(Et,1),!(!d||!b)&&(d=!1,b=!1,j.imageEl&&(mt.scale=Math.max(Math.min(mt.scale,j.maxRatio),ct.minRatio),j.imageEl.style.transitionDuration=`${e.params.speed}ms`,j.imageEl.style.transform=`translate3d(0,0,0) scale(${mt.scale})`,h=mt.scale,g=!1,mt.scale>1&&j.slideEl?j.slideEl.classList.add(`${ct.zoomedSlideClass}`):mt.scale<=1&&j.slideEl&&j.slideEl.classList.remove(`${ct.zoomedSlideClass}`),mt.scale===1&&(j.originX=0,j.originY=0,j.slideEl=void 0)))}function pt(at){const ct=e.device;if(!j.imageEl||$.isTouched)return;ct.android&&at.cancelable&&at.preventDefault(),$.isTouched=!0;const mt=_.length>0?_[0]:at;$.touchesStart.x=mt.pageX,$.touchesStart.y=mt.pageY}function yt(at){if(!rt(at)||!it(at))return;const ct=e.zoom;if(!j.imageEl||!$.isTouched||!j.slideEl)return;$.isMoved||($.width=j.imageEl.offsetWidth,$.height=j.imageEl.offsetHeight,$.startX=getTranslate(j.imageWrapEl,"x")||0,$.startY=getTranslate(j.imageWrapEl,"y")||0,j.slideWidth=j.slideEl.offsetWidth,j.slideHeight=j.slideEl.offsetHeight,j.imageWrapEl.style.transitionDuration="0ms");const mt=$.width*ct.scale,Et=$.height*ct.scale;if(mt0?_[0].pageX:at.pageX,$.touchesCurrent.y=_.length>0?_[0].pageY:at.pageY,Math.max(Math.abs($.touchesCurrent.x-$.touchesStart.x),Math.abs($.touchesCurrent.y-$.touchesStart.y))>5&&(e.allowClick=!1),!$.isMoved&&!g){if(e.isHorizontal()&&(Math.floor($.minX)===Math.floor($.startX)&&$.touchesCurrent.x<$.touchesStart.x||Math.floor($.maxX)===Math.floor($.startX)&&$.touchesCurrent.x>$.touchesStart.x)){$.isTouched=!1;return}if(!e.isHorizontal()&&(Math.floor($.minY)===Math.floor($.startY)&&$.touchesCurrent.y<$.touchesStart.y||Math.floor($.maxY)===Math.floor($.startY)&&$.touchesCurrent.y>$.touchesStart.y)){$.isTouched=!1;return}}at.cancelable&&at.preventDefault(),at.stopPropagation(),$.isMoved=!0;const kt=(ct.scale-h)/(j.maxRatio-e.params.zoom.minRatio),{originX:Ct,originY:Rt}=j;$.currentX=$.touchesCurrent.x-$.touchesStart.x+$.startX+kt*($.width-Ct*2),$.currentY=$.touchesCurrent.y-$.touchesStart.y+$.startY+kt*($.height-Rt*2),$.currentX<$.minX&&($.currentX=$.minX+1-($.minX-$.currentX+1)**.8),$.currentX>$.maxX&&($.currentX=$.maxX-1+($.currentX-$.maxX+1)**.8),$.currentY<$.minY&&($.currentY=$.minY+1-($.minY-$.currentY+1)**.8),$.currentY>$.maxY&&($.currentY=$.maxY-1+($.currentY-$.maxY+1)**.8),_e.prevPositionX||(_e.prevPositionX=$.touchesCurrent.x),_e.prevPositionY||(_e.prevPositionY=$.touchesCurrent.y),_e.prevTime||(_e.prevTime=Date.now()),_e.x=($.touchesCurrent.x-_e.prevPositionX)/(Date.now()-_e.prevTime)/2,_e.y=($.touchesCurrent.y-_e.prevPositionY)/(Date.now()-_e.prevTime)/2,Math.abs($.touchesCurrent.x-_e.prevPositionX)<2&&(_e.x=0),Math.abs($.touchesCurrent.y-_e.prevPositionY)<2&&(_e.y=0),_e.prevPositionX=$.touchesCurrent.x,_e.prevPositionY=$.touchesCurrent.y,_e.prevTime=Date.now(),j.imageWrapEl.style.transform=`translate3d(${$.currentX}px, ${$.currentY}px,0)`}function gt(){const at=e.zoom;if(!j.imageEl)return;if(!$.isTouched||!$.isMoved){$.isTouched=!1,$.isMoved=!1;return}$.isTouched=!1,$.isMoved=!1;let ct=300,mt=300;const Et=_e.x*ct,jt=$.currentX+Et,kt=_e.y*mt,Ct=$.currentY+kt;_e.x!==0&&(ct=Math.abs((jt-$.currentX)/_e.x)),_e.y!==0&&(mt=Math.abs((Ct-$.currentY)/_e.y));const Rt=Math.max(ct,mt);$.currentX=jt,$.currentY=Ct;const At=$.width*at.scale,It=$.height*at.scale;$.minX=Math.min(j.slideWidth/2-At/2,0),$.maxX=-$.minX,$.minY=Math.min(j.slideHeight/2-It/2,0),$.maxY=-$.minY,$.currentX=Math.max(Math.min($.currentX,$.maxX),$.minX),$.currentY=Math.max(Math.min($.currentY,$.maxY),$.minY),j.imageWrapEl.style.transitionDuration=`${Rt}ms`,j.imageWrapEl.style.transform=`translate3d(${$.currentX}px, ${$.currentY}px,0)`}function xt(){const at=e.zoom;j.slideEl&&e.activeIndex!==e.slides.indexOf(j.slideEl)&&(j.imageEl&&(j.imageEl.style.transform="translate3d(0,0,0) scale(1)"),j.imageWrapEl&&(j.imageWrapEl.style.transform="translate3d(0,0,0)"),j.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),at.scale=1,h=1,j.slideEl=void 0,j.imageEl=void 0,j.imageWrapEl=void 0,j.originX=0,j.originY=0)}function wt(at){const ct=e.zoom,mt=e.params.zoom;if(!j.slideEl){at&&at.target&&(j.slideEl=at.target.closest(`.${e.params.slideClass}, swiper-slide`)),j.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?j.slideEl=elementChildren(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:j.slideEl=e.slides[e.activeIndex]);let sn=j.slideEl.querySelector(`.${mt.containerClass}`);sn&&(sn=sn.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),j.imageEl=sn,sn?j.imageWrapEl=elementParents(j.imageEl,`.${mt.containerClass}`)[0]:j.imageWrapEl=void 0}if(!j.imageEl||!j.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),j.slideEl.classList.add(`${mt.zoomedSlideClass}`);let Et,jt,kt,Ct,Rt,At,It,zt,Ht,$t,Bt,Wt,Gt,Kt,Zt,Yt,an,tn;typeof $.touchesStart.x>"u"&&at?(Et=at.pageX,jt=at.pageY):(Et=$.touchesStart.x,jt=$.touchesStart.y);const nn=typeof at=="number"?at:null;h===1&&nn&&(Et=void 0,jt=void 0),ct.scale=nn||j.imageWrapEl.getAttribute("data-swiper-zoom")||mt.maxRatio,h=nn||j.imageWrapEl.getAttribute("data-swiper-zoom")||mt.maxRatio,at&&!(h===1&&nn)?(an=j.slideEl.offsetWidth,tn=j.slideEl.offsetHeight,kt=elementOffset(j.slideEl).left+c.scrollX,Ct=elementOffset(j.slideEl).top+c.scrollY,Rt=kt+an/2-Et,At=Ct+tn/2-jt,Ht=j.imageEl.offsetWidth,$t=j.imageEl.offsetHeight,Bt=Ht*ct.scale,Wt=$t*ct.scale,Gt=Math.min(an/2-Bt/2,0),Kt=Math.min(tn/2-Wt/2,0),Zt=-Gt,Yt=-Kt,It=Rt*ct.scale,zt=At*ct.scale,ItZt&&(It=Zt),ztYt&&(zt=Yt)):(It=0,zt=0),nn&&ct.scale===1&&(j.originX=0,j.originY=0),j.imageWrapEl.style.transitionDuration="300ms",j.imageWrapEl.style.transform=`translate3d(${It}px, ${zt}px,0)`,j.imageEl.style.transitionDuration="300ms",j.imageEl.style.transform=`translate3d(0,0,0) scale(${ct.scale})`}function vt(){const at=e.zoom,ct=e.params.zoom;if(!j.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?j.slideEl=elementChildren(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:j.slideEl=e.slides[e.activeIndex];let mt=j.slideEl.querySelector(`.${ct.containerClass}`);mt&&(mt=mt.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),j.imageEl=mt,mt?j.imageWrapEl=elementParents(j.imageEl,`.${ct.containerClass}`)[0]:j.imageWrapEl=void 0}!j.imageEl||!j.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),at.scale=1,h=1,j.imageWrapEl.style.transitionDuration="300ms",j.imageWrapEl.style.transform="translate3d(0,0,0)",j.imageEl.style.transitionDuration="300ms",j.imageEl.style.transform="translate3d(0,0,0) scale(1)",j.slideEl.classList.remove(`${ct.zoomedSlideClass}`),j.slideEl=void 0,j.originX=0,j.originY=0)}function ft(at){const ct=e.zoom;ct.scale&&ct.scale!==1?vt():wt(at)}function lt(){const at=e.params.passiveListeners?{passive:!0,capture:!1}:!1,ct=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:at,activeListenerWithCapture:ct}}function dt(){const at=e.zoom;if(at.enabled)return;at.enabled=!0;const{passiveListener:ct,activeListenerWithCapture:mt}=lt();e.wrapperEl.addEventListener("pointerdown",ot,ct),e.wrapperEl.addEventListener("pointermove",ut,mt),["pointerup","pointercancel","pointerout"].forEach(Et=>{e.wrapperEl.addEventListener(Et,ht,ct)}),e.wrapperEl.addEventListener("pointermove",yt,mt)}function bt(){const at=e.zoom;if(!at.enabled)return;at.enabled=!1;const{passiveListener:ct,activeListenerWithCapture:mt}=lt();e.wrapperEl.removeEventListener("pointerdown",ot,ct),e.wrapperEl.removeEventListener("pointermove",ut,mt),["pointerup","pointercancel","pointerout"].forEach(Et=>{e.wrapperEl.removeEventListener(Et,ht,ct)}),e.wrapperEl.removeEventListener("pointermove",yt,mt)}o("init",()=>{e.params.zoom.enabled&&dt()}),o("destroy",()=>{bt()}),o("touchStart",(at,ct)=>{e.zoom.enabled&&pt(ct)}),o("touchEnd",(at,ct)=>{e.zoom.enabled&>()}),o("doubleTap",(at,ct)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&ft(ct)}),o("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&xt()}),o("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&xt()}),Object.assign(e.zoom,{enable:dt,disable:bt,in:wt,out:vt,toggle:ft})}function Controller(i){let{swiper:e,extendParams:s,on:o}=i;s({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function a(b,_){const j=function(){let tt,st,nt;return(rt,it)=>{for(st=-1,tt=rt.length;tt-st>1;)nt=tt+st>>1,rt[nt]<=it?st=nt:tt=nt;return tt}}();this.x=b,this.y=_,this.lastIndex=b.length-1;let $,_e;return this.interpolate=function(tt){return tt?(_e=j(this.x,tt),$=_e-1,(tt-this.x[$])*(this.y[_e]-this.y[$])/(this.x[_e]-this.x[$])+this.y[$]):0},this}function c(b){e.controller.spline=e.params.loop?new a(e.slidesGrid,b.slidesGrid):new a(e.snapGrid,b.snapGrid)}function h(b,_){const j=e.controller.control;let $,_e;const et=e.constructor;function tt(st){if(st.destroyed)return;const nt=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(c(st),_e=-e.controller.spline.interpolate(-nt)),(!_e||e.params.controller.by==="container")&&($=(st.maxTranslate()-st.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN($)||!Number.isFinite($))&&($=1),_e=(nt-e.minTranslate())*$+st.minTranslate()),e.params.controller.inverse&&(_e=st.maxTranslate()-_e),st.updateProgress(_e),st.setTranslate(_e,e),st.updateActiveIndex(),st.updateSlidesClasses()}if(Array.isArray(j))for(let st=0;st{tt.updateAutoHeight()}),elementTransitionEnd(tt.wrapperEl,()=>{$&&tt.transitionEnd()})))}if(Array.isArray($))for(_e=0;_e<$.length;_e+=1)$[_e]!==_&&$[_e]instanceof j&&et($[_e]);else $ instanceof j&&_!==$&&et($)}function d(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}o("beforeInit",()=>{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){const b=document.querySelector(e.params.controller.control);if(b&&b.swiper)e.controller.control=b.swiper;else if(b){const _=j=>{e.controller.control=j.detail[0],e.update(),b.removeEventListener("init",_)};b.addEventListener("init",_)}return}e.controller.control=e.params.controller.control}),o("update",()=>{d()}),o("resize",()=>{d()}),o("observerUpdate",()=>{d()}),o("setTranslate",(b,_,j)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(_,j)}),o("setTransition",(b,_,j)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(_,j)}),Object.assign(e.controller,{setTranslate:h,setTransition:g})}function A11y(i){let{swiper:e,extendParams:s,on:o}=i;s({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,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let a=null;function c(lt){const dt=a;dt.length!==0&&(dt.innerHTML="",dt.innerHTML=lt)}const h=lt=>(Array.isArray(lt)?lt:[lt]).filter(dt=>!!dt);function g(lt){lt===void 0&&(lt=16);const dt=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(lt).replace(/x/g,dt)}function d(lt){lt=h(lt),lt.forEach(dt=>{dt.setAttribute("tabIndex","0")})}function b(lt){lt=h(lt),lt.forEach(dt=>{dt.setAttribute("tabIndex","-1")})}function _(lt,dt){lt=h(lt),lt.forEach(bt=>{bt.setAttribute("role",dt)})}function j(lt,dt){lt=h(lt),lt.forEach(bt=>{bt.setAttribute("aria-roledescription",dt)})}function $(lt,dt){lt=h(lt),lt.forEach(bt=>{bt.setAttribute("aria-controls",dt)})}function _e(lt,dt){lt=h(lt),lt.forEach(bt=>{bt.setAttribute("aria-label",dt)})}function et(lt,dt){lt=h(lt),lt.forEach(bt=>{bt.setAttribute("id",dt)})}function tt(lt,dt){lt=h(lt),lt.forEach(bt=>{bt.setAttribute("aria-live",dt)})}function st(lt){lt=h(lt),lt.forEach(dt=>{dt.setAttribute("aria-disabled",!0)})}function nt(lt){lt=h(lt),lt.forEach(dt=>{dt.setAttribute("aria-disabled",!1)})}function rt(lt){if(lt.keyCode!==13&<.keyCode!==32)return;const dt=e.params.a11y,bt=lt.target;e.pagination&&e.pagination.el&&(bt===e.pagination.el||e.pagination.el.contains(lt.target))&&!lt.target.matches(classesToSelector(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&bt===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?c(dt.lastSlideMessage):c(dt.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&bt===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?c(dt.firstSlideMessage):c(dt.prevSlideMessage)),e.pagination&&bt.matches(classesToSelector(e.params.pagination.bulletClass))&&bt.click())}function it(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:lt,prevEl:dt}=e.navigation;dt&&(e.isBeginning?(st(dt),b(dt)):(nt(dt),d(dt))),lt&&(e.isEnd?(st(lt),b(lt)):(nt(lt),d(lt)))}function ot(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function ut(){return ot()&&e.params.pagination.clickable}function ht(){const lt=e.params.a11y;ot()&&e.pagination.bullets.forEach(dt=>{e.params.pagination.clickable&&(d(dt),e.params.pagination.renderBullet||(_(dt,"button"),_e(dt,lt.paginationBulletMessage.replace(/\{\{index\}\}/,elementIndex(dt)+1)))),dt.matches(classesToSelector(e.params.pagination.bulletActiveClass))?dt.setAttribute("aria-current","true"):dt.removeAttribute("aria-current")})}const pt=(lt,dt,bt)=>{d(lt),lt.tagName!=="BUTTON"&&(_(lt,"button"),lt.addEventListener("keydown",rt)),_e(lt,bt),$(lt,dt)},yt=()=>{e.a11y.clicked=!0},gt=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},xt=lt=>{if(e.a11y.clicked)return;const dt=lt.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!dt||!e.slides.includes(dt))return;const bt=e.slides.indexOf(dt)===e.activeIndex,at=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(dt);bt||at||lt.sourceCapabilities&<.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(dt),0))},wt=()=>{const lt=e.params.a11y;lt.itemRoleDescriptionMessage&&j(e.slides,lt.itemRoleDescriptionMessage),lt.slideRole&&_(e.slides,lt.slideRole);const dt=e.slides.length;lt.slideLabelMessage&&e.slides.forEach((bt,at)=>{const ct=e.params.loop?parseInt(bt.getAttribute("data-swiper-slide-index"),10):at,mt=lt.slideLabelMessage.replace(/\{\{index\}\}/,ct+1).replace(/\{\{slidesLength\}\}/,dt);_e(bt,mt)})},vt=()=>{const lt=e.params.a11y;e.el.append(a);const dt=e.el;lt.containerRoleDescriptionMessage&&j(dt,lt.containerRoleDescriptionMessage),lt.containerMessage&&_e(dt,lt.containerMessage);const bt=e.wrapperEl,at=lt.id||bt.getAttribute("id")||`swiper-wrapper-${g(16)}`,ct=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";et(bt,at),tt(bt,ct),wt();let{nextEl:mt,prevEl:Et}=e.navigation?e.navigation:{};mt=h(mt),Et=h(Et),mt&&mt.forEach(jt=>pt(jt,at,lt.nextSlideMessage)),Et&&Et.forEach(jt=>pt(jt,at,lt.prevSlideMessage)),ut()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(kt=>{kt.addEventListener("keydown",rt)}),e.el.addEventListener("focus",xt,!0),e.el.addEventListener("pointerdown",yt,!0),e.el.addEventListener("pointerup",gt,!0)};function ft(){a&&a.remove();let{nextEl:lt,prevEl:dt}=e.navigation?e.navigation:{};lt=h(lt),dt=h(dt),lt&<.forEach(bt=>bt.removeEventListener("keydown",rt)),dt&&dt.forEach(bt=>bt.removeEventListener("keydown",rt)),ut()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(at=>{at.removeEventListener("keydown",rt)}),e.el.removeEventListener("focus",xt,!0),e.el.removeEventListener("pointerdown",yt,!0),e.el.removeEventListener("pointerup",gt,!0)}o("beforeInit",()=>{a=createElement("span",e.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),o("afterInit",()=>{e.params.a11y.enabled&&vt()}),o("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&wt()}),o("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&it()}),o("paginationUpdate",()=>{e.params.a11y.enabled&&ht()}),o("destroy",()=>{e.params.a11y.enabled&&ft()})}function History(i){let{swiper:e,extendParams:s,on:o}=i;s({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let a=!1,c={};const h=_e=>_e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),g=_e=>{const et=getWindow();let tt;_e?tt=new URL(_e):tt=et.location;const st=tt.pathname.slice(1).split("/").filter(ot=>ot!==""),nt=st.length,rt=st[nt-2],it=st[nt-1];return{key:rt,value:it}},d=(_e,et)=>{const tt=getWindow();if(!a||!e.params.history.enabled)return;let st;e.params.url?st=new URL(e.params.url):st=tt.location;const nt=e.slides[et];let rt=h(nt.getAttribute("data-history"));if(e.params.history.root.length>0){let ot=e.params.history.root;ot[ot.length-1]==="/"&&(ot=ot.slice(0,ot.length-1)),rt=`${ot}/${_e?`${_e}/`:""}${rt}`}else st.pathname.includes(_e)||(rt=`${_e?`${_e}/`:""}${rt}`);e.params.history.keepQuery&&(rt+=st.search);const it=tt.history.state;it&&it.value===rt||(e.params.history.replaceState?tt.history.replaceState({value:rt},null,rt):tt.history.pushState({value:rt},null,rt))},b=(_e,et,tt)=>{if(et)for(let st=0,nt=e.slides.length;st{c=g(e.params.url),b(e.params.speed,c.value,!1)},j=()=>{const _e=getWindow();if(e.params.history){if(!_e.history||!_e.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(a=!0,c=g(e.params.url),!c.key&&!c.value){e.params.history.replaceState||_e.addEventListener("popstate",_);return}b(0,c.value,e.params.runCallbacksOnInit),e.params.history.replaceState||_e.addEventListener("popstate",_)}},$=()=>{const _e=getWindow();e.params.history.replaceState||_e.removeEventListener("popstate",_)};o("init",()=>{e.params.history.enabled&&j()}),o("destroy",()=>{e.params.history.enabled&&$()}),o("transitionEnd _freeModeNoMomentumRelease",()=>{a&&d(e.params.history.key,e.activeIndex)}),o("slideChange",()=>{a&&e.params.cssMode&&d(e.params.history.key,e.activeIndex)})}function HashNavigation(i){let{swiper:e,extendParams:s,emit:o,on:a}=i,c=!1;const h=getDocument(),g=getWindow();s({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex($,_e){if(e.virtual&&e.params.virtual.enabled){const et=e.slides.filter(st=>st.getAttribute("data-hash")===_e)[0];return et?parseInt(et.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(elementChildren(e.slidesEl,`.${e.params.slideClass}[data-hash="${_e}"], swiper-slide[data-hash="${_e}"]`)[0])}}});const d=()=>{o("hashChange");const $=h.location.hash.replace("#",""),_e=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],et=_e?_e.getAttribute("data-hash"):"";if($!==et){const tt=e.params.hashNavigation.getSlideIndex(e,$);if(typeof tt>"u"||Number.isNaN(tt))return;e.slideTo(tt)}},b=()=>{if(!c||!e.params.hashNavigation.enabled)return;const $=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],_e=$?$.getAttribute("data-hash")||$.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&g.history&&g.history.replaceState?(g.history.replaceState(null,null,`#${_e}`||""),o("hashSet")):(h.location.hash=_e||"",o("hashSet"))},_=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;c=!0;const $=h.location.hash.replace("#","");if($){const et=e.params.hashNavigation.getSlideIndex(e,$);e.slideTo(et||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&g.addEventListener("hashchange",d)},j=()=>{e.params.hashNavigation.watchState&&g.removeEventListener("hashchange",d)};a("init",()=>{e.params.hashNavigation.enabled&&_()}),a("destroy",()=>{e.params.hashNavigation.enabled&&j()}),a("transitionEnd _freeModeNoMomentumRelease",()=>{c&&b()}),a("slideChange",()=>{c&&e.params.cssMode&&b()})}function Autoplay(i){let{swiper:e,extendParams:s,on:o,emit:a,params:c}=i;e.autoplay={running:!1,paused:!1,timeLeft:0},s({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let h,g,d=c&&c.autoplay?c.autoplay.delay:3e3,b=c&&c.autoplay?c.autoplay.delay:3e3,_,j=new Date().getTime,$,_e,et,tt,st,nt;function rt(at){!e||e.destroyed||!e.wrapperEl||at.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",rt),gt())}const it=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?$=!0:$&&(b=_,$=!1);const at=e.autoplay.paused?_:j+b-new Date().getTime();e.autoplay.timeLeft=at,a("autoplayTimeLeft",at,at/d),g=requestAnimationFrame(()=>{it()})},ot=()=>{let at;return e.virtual&&e.params.virtual.enabled?at=e.slides.filter(mt=>mt.classList.contains("swiper-slide-active"))[0]:at=e.slides[e.activeIndex],at?parseInt(at.getAttribute("data-swiper-autoplay"),10):void 0},ut=at=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(g),it();let ct=typeof at>"u"?e.params.autoplay.delay:at;d=e.params.autoplay.delay,b=e.params.autoplay.delay;const mt=ot();!Number.isNaN(mt)&&mt>0&&typeof at>"u"&&(ct=mt,d=mt,b=mt),_=ct;const Et=e.params.speed,jt=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(Et,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,Et,!0,!0),a("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(Et,!0,!0),a("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,Et,!0,!0),a("autoplay")),e.params.cssMode&&(j=new Date().getTime(),requestAnimationFrame(()=>{ut()})))};return ct>0?(clearTimeout(h),h=setTimeout(()=>{jt()},ct)):requestAnimationFrame(()=>{jt()}),ct},ht=()=>{e.autoplay.running=!0,ut(),a("autoplayStart")},pt=()=>{e.autoplay.running=!1,clearTimeout(h),cancelAnimationFrame(g),a("autoplayStop")},yt=(at,ct)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(h),at||(nt=!0);const mt=()=>{a("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",rt):gt()};if(e.autoplay.paused=!0,ct){st&&(_=e.params.autoplay.delay),st=!1,mt();return}_=(_||e.params.autoplay.delay)-(new Date().getTime()-j),!(e.isEnd&&_<0&&!e.params.loop)&&(_<0&&(_=0),mt())},gt=()=>{e.isEnd&&_<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(j=new Date().getTime(),nt?(nt=!1,ut(_)):ut(),e.autoplay.paused=!1,a("autoplayResume"))},xt=()=>{if(e.destroyed||!e.autoplay.running)return;const at=getDocument();at.visibilityState==="hidden"&&(nt=!0,yt(!0)),at.visibilityState==="visible"&>()},wt=at=>{at.pointerType==="mouse"&&(nt=!0,!(e.animating||e.autoplay.paused)&&yt(!0))},vt=at=>{at.pointerType==="mouse"&&e.autoplay.paused&>()},ft=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",wt),e.el.addEventListener("pointerleave",vt))},lt=()=>{e.el.removeEventListener("pointerenter",wt),e.el.removeEventListener("pointerleave",vt)},dt=()=>{getDocument().addEventListener("visibilitychange",xt)},bt=()=>{getDocument().removeEventListener("visibilitychange",xt)};o("init",()=>{e.params.autoplay.enabled&&(ft(),dt(),j=new Date().getTime(),ht())}),o("destroy",()=>{lt(),bt(),e.autoplay.running&&pt()}),o("beforeTransitionStart",(at,ct,mt)=>{e.destroyed||!e.autoplay.running||(mt||!e.params.autoplay.disableOnInteraction?yt(!0,!0):pt())}),o("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){pt();return}_e=!0,et=!1,nt=!1,tt=setTimeout(()=>{nt=!0,et=!0,yt(!0)},200)}}),o("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!_e)){if(clearTimeout(tt),clearTimeout(h),e.params.autoplay.disableOnInteraction){et=!1,_e=!1;return}et&&e.params.cssMode&>(),et=!1,_e=!1}}),o("slideChange",()=>{e.destroyed||!e.autoplay.running||(st=!0)}),Object.assign(e.autoplay,{start:ht,stop:pt,pause:yt,resume:gt})}function Thumb(i){let{swiper:e,extendParams:s,on:o}=i;s({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let a=!1,c=!1;e.thumbs={swiper:null};function h(){const b=e.thumbs.swiper;if(!b||b.destroyed)return;const _=b.clickedIndex,j=b.clickedSlide;if(j&&j.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof _>"u"||_===null)return;let $;b.params.loop?$=parseInt(b.clickedSlide.getAttribute("data-swiper-slide-index"),10):$=_,e.params.loop?e.slideToLoop($):e.slideTo($)}function g(){const{thumbs:b}=e.params;if(a)return!1;a=!0;const _=e.constructor;if(b.swiper instanceof _)e.thumbs.swiper=b.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(isObject$1(b.swiper)){const j=Object.assign({},b.swiper);Object.assign(j,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new _(j),c=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",h),!0}function d(b){const _=e.thumbs.swiper;if(!_||_.destroyed)return;const j=_.params.slidesPerView==="auto"?_.slidesPerViewDynamic():_.params.slidesPerView;let $=1;const _e=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&($=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||($=1),$=Math.floor($),_.slides.forEach(st=>st.classList.remove(_e)),_.params.loop||_.params.virtual&&_.params.virtual.enabled)for(let st=0;st<$;st+=1)elementChildren(_.slidesEl,`[data-swiper-slide-index="${e.realIndex+st}"]`).forEach(nt=>{nt.classList.add(_e)});else for(let st=0;st<$;st+=1)_.slides[e.realIndex+st]&&_.slides[e.realIndex+st].classList.add(_e);const et=e.params.thumbs.autoScrollOffset,tt=et&&!_.params.loop;if(e.realIndex!==_.realIndex||tt){const st=_.activeIndex;let nt,rt;if(_.params.loop){const it=_.slides.filter(ot=>ot.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];nt=_.slides.indexOf(it),rt=e.activeIndex>e.previousIndex?"next":"prev"}else nt=e.realIndex,rt=nt>e.previousIndex?"next":"prev";tt&&(nt+=rt==="next"?et:-1*et),_.visibleSlidesIndexes&&_.visibleSlidesIndexes.indexOf(nt)<0&&(_.params.centeredSlides?nt>st?nt=nt-Math.floor(j/2)+1:nt=nt+Math.floor(j/2)-1:nt>st&&_.params.slidesPerGroup,_.slideTo(nt,b?0:void 0))}}o("beforeInit",()=>{const{thumbs:b}=e.params;if(!(!b||!b.swiper))if(typeof b.swiper=="string"||b.swiper instanceof HTMLElement){const _=getDocument(),j=()=>{const _e=typeof b.swiper=="string"?_.querySelector(b.swiper):b.swiper;if(_e&&_e.swiper)b.swiper=_e.swiper,g(),d(!0);else if(_e){const et=tt=>{b.swiper=tt.detail[0],_e.removeEventListener("init",et),g(),d(!0),b.swiper.update(),e.update()};_e.addEventListener("init",et)}return _e},$=()=>{if(e.destroyed)return;j()||requestAnimationFrame($)};requestAnimationFrame($)}else g(),d(!0)}),o("slideChange update resize observerUpdate",()=>{d()}),o("setTransition",(b,_)=>{const j=e.thumbs.swiper;!j||j.destroyed||j.setTransition(_)}),o("beforeDestroy",()=>{const b=e.thumbs.swiper;!b||b.destroyed||c&&b.destroy()}),Object.assign(e.thumbs,{init:g,update:d})}function freeMode(i){let{swiper:e,extendParams:s,emit:o,once:a}=i;s({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function c(){if(e.params.cssMode)return;const d=e.getTranslate();e.setTranslate(d),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function h(){if(e.params.cssMode)return;const{touchEventsData:d,touches:b}=e;d.velocities.length===0&&d.velocities.push({position:b[e.isHorizontal()?"startX":"startY"],time:d.touchStartTime}),d.velocities.push({position:b[e.isHorizontal()?"currentX":"currentY"],time:now()})}function g(d){let{currentPos:b}=d;if(e.params.cssMode)return;const{params:_,wrapperEl:j,rtlTranslate:$,snapGrid:_e,touchEventsData:et}=e,st=now()-et.touchStartTime;if(b<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(b>-e.maxTranslate()){e.slides.length<_e.length?e.slideTo(_e.length-1):e.slideTo(e.slides.length-1);return}if(_.freeMode.momentum){if(et.velocities.length>1){const yt=et.velocities.pop(),gt=et.velocities.pop(),xt=yt.position-gt.position,wt=yt.time-gt.time;e.velocity=xt/wt,e.velocity/=2,Math.abs(e.velocity)<_.freeMode.minimumVelocity&&(e.velocity=0),(wt>150||now()-yt.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=_.freeMode.momentumVelocityRatio,et.velocities.length=0;let nt=1e3*_.freeMode.momentumRatio;const rt=e.velocity*nt;let it=e.translate+rt;$&&(it=-it);let ot=!1,ut;const ht=Math.abs(e.velocity)*20*_.freeMode.momentumBounceRatio;let pt;if(ite.minTranslate())_.freeMode.momentumBounce?(it-e.minTranslate()>ht&&(it=e.minTranslate()+ht),ut=e.minTranslate(),ot=!0,et.allowMomentumBounce=!0):it=e.minTranslate(),_.loop&&_.centeredSlides&&(pt=!0);else if(_.freeMode.sticky){let yt;for(let gt=0;gt<_e.length;gt+=1)if(_e[gt]>-it){yt=gt;break}Math.abs(_e[yt]-it){e.loopFix()}),e.velocity!==0){if($?nt=Math.abs((-it-e.translate)/e.velocity):nt=Math.abs((it-e.translate)/e.velocity),_.freeMode.sticky){const yt=Math.abs(($?-it:it)-e.translate),gt=e.slidesSizesGrid[e.activeIndex];yt{!e||e.destroyed||!et.allowMomentumBounce||(o("momentumBounce"),e.setTransition(_.speed),setTimeout(()=>{e.setTranslate(ut),elementTransitionEnd(j,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(o("_freeModeNoMomentumRelease"),e.updateProgress(it),e.setTransition(nt),e.setTranslate(it),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,elementTransitionEnd(j,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(it),e.updateActiveIndex(),e.updateSlidesClasses()}else if(_.freeMode.sticky){e.slideToClosest();return}else _.freeMode&&o("_freeModeNoMomentumRelease");(!_.freeMode.momentum||st>=_.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:c,onTouchMove:h,onTouchEnd:g}})}function Grid(i){let{swiper:e,extendParams:s}=i;s({grid:{rows:1,fill:"column"}});let o,a,c;const h=()=>{let _=e.params.spaceBetween;return typeof _=="string"&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*e.size:typeof _=="string"&&(_=parseFloat(_)),_},g=_=>{const{slidesPerView:j}=e.params,{rows:$,fill:_e}=e.params.grid;c=Math.floor(_/$),Math.floor(_/$)===_/$?o=_:o=Math.ceil(_/$)*$,j!=="auto"&&_e==="row"&&(o=Math.max(o,j*$)),a=o/$},d=(_,j,$,_e)=>{const{slidesPerGroup:et}=e.params,tt=h(),{rows:st,fill:nt}=e.params.grid;let rt,it,ot;if(nt==="row"&&et>1){const ut=Math.floor(_/(et*st)),ht=_-st*et*ut,pt=ut===0?et:Math.min(Math.ceil(($-ut*st*et)/st),et);ot=Math.floor(ht/pt),it=ht-ot*pt+ut*et,rt=it+ot*o/st,j.style.order=rt}else nt==="column"?(it=Math.floor(_/st),ot=_-it*st,(it>c||it===c&&ot===st-1)&&(ot+=1,ot>=st&&(ot=0,it+=1))):(ot=Math.floor(_/a),it=_-ot*a);j.row=ot,j.column=it,j.style[_e("margin-top")]=ot!==0?tt&&`${tt}px`:""},b=(_,j,$)=>{const{centeredSlides:_e,roundLengths:et}=e.params,tt=h(),{rows:st}=e.params.grid;if(e.virtualSize=(_+tt)*o,e.virtualSize=Math.ceil(e.virtualSize/st)-tt,e.wrapperEl.style[$("width")]=`${e.virtualSize+tt}px`,_e){const nt=[];for(let rt=0;rt{if(typeof c=="string"){const h=document.createElement("div");h.innerHTML=c,o.append(h.children[0]),h.innerHTML=""}else o.append(c)};if(typeof i=="object"&&"length"in i)for(let c=0;c{if(typeof g=="string"){const d=document.createElement("div");d.innerHTML=g,a.prepend(d.children[0]),d.innerHTML=""}else a.prepend(g)};if(typeof i=="object"&&"length"in i){for(let g=0;g=g){s.appendSlide(e);return}let d=h>i?h+1:h;const b=[];for(let _=g-1;_>=i;_-=1){const j=s.slides[_];j.remove(),b.unshift(j)}if(typeof e=="object"&&"length"in e){for(let _=0;_i?h+e.length:h}else c.append(e);for(let _=0;_{if(s.params.effect!==e)return;s.classNames.push(`${s.params.containerModifierClass}${e}`),g&&g()&&s.classNames.push(`${s.params.containerModifierClass}3d`);const j=h?h():{};Object.assign(s.params,j),Object.assign(s.originalParams,j)}),o("setTranslate",()=>{s.params.effect===e&&a()}),o("setTransition",(j,$)=>{s.params.effect===e&&c($)}),o("transitionEnd",()=>{if(s.params.effect===e&&d){if(!b||!b().slideShadows)return;s.slides.forEach(j=>{j.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach($=>$.remove())}),d()}});let _;o("virtualUpdate",()=>{s.params.effect===e&&(s.slides.length||(_=!0),requestAnimationFrame(()=>{_&&s.slides&&s.slides.length&&(a(),_=!1)}))})}function effectTarget(i,e){const s=getSlideTransformEl(e);return s!==e&&(s.style.backfaceVisibility="hidden",s.style["-webkit-backface-visibility"]="hidden"),s}function effectVirtualTransitionEnd(i){let{swiper:e,duration:s,transformElements:o,allSlides:a}=i;const{activeIndex:c}=e,h=g=>g.parentElement?g.parentElement:e.slides.filter(b=>b.shadowRoot&&b.shadowRoot===g.parentNode)[0];if(e.params.virtualTranslate&&s!==0){let g=!1,d;a?d=o:d=o.filter(b=>{const _=b.classList.contains("swiper-slide-transform")?h(b):b;return e.getSlideIndex(_)===c}),d.forEach(b=>{elementTransitionEnd(b,()=>{if(g||!e||e.destroyed)return;g=!0,e.animating=!1;const _=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(_)})})}}function EffectFade(i){let{swiper:e,extendParams:s,on:o}=i;s({fadeEffect:{crossFade:!1}}),effectInit({effect:"fade",swiper:e,on:o,setTranslate:()=>{const{slides:h}=e,g=e.params.fadeEffect;for(let d=0;d{const g=e.slides.map(d=>getSlideTransformEl(d));g.forEach(d=>{d.style.transitionDuration=`${h}ms`}),effectVirtualTransitionEnd({swiper:e,duration:h,transformElements:g,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function EffectCube(i){let{swiper:e,extendParams:s,on:o}=i;s({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const a=(d,b,_)=>{let j=_?d.querySelector(".swiper-slide-shadow-left"):d.querySelector(".swiper-slide-shadow-top"),$=_?d.querySelector(".swiper-slide-shadow-right"):d.querySelector(".swiper-slide-shadow-bottom");j||(j=createElement("div",`swiper-slide-shadow-cube swiper-slide-shadow-${_?"left":"top"}`.split(" ")),d.append(j)),$||($=createElement("div",`swiper-slide-shadow-cube swiper-slide-shadow-${_?"right":"bottom"}`.split(" ")),d.append($)),j&&(j.style.opacity=Math.max(-b,0)),$&&($.style.opacity=Math.max(b,0))};effectInit({effect:"cube",swiper:e,on:o,setTranslate:()=>{const{el:d,wrapperEl:b,slides:_,width:j,height:$,rtlTranslate:_e,size:et,browser:tt}=e,st=e.params.cubeEffect,nt=e.isHorizontal(),rt=e.virtual&&e.params.virtual.enabled;let it=0,ot;st.shadow&&(nt?(ot=e.wrapperEl.querySelector(".swiper-cube-shadow"),ot||(ot=createElement("div","swiper-cube-shadow"),e.wrapperEl.append(ot)),ot.style.height=`${j}px`):(ot=d.querySelector(".swiper-cube-shadow"),ot||(ot=createElement("div","swiper-cube-shadow"),d.append(ot))));for(let ht=0;ht<_.length;ht+=1){const pt=_[ht];let yt=ht;rt&&(yt=parseInt(pt.getAttribute("data-swiper-slide-index"),10));let gt=yt*90,xt=Math.floor(gt/360);_e&&(gt=-gt,xt=Math.floor(-gt/360));const wt=Math.max(Math.min(pt.progress,1),-1);let vt=0,ft=0,lt=0;yt%4===0?(vt=-xt*4*et,lt=0):(yt-1)%4===0?(vt=0,lt=-xt*4*et):(yt-2)%4===0?(vt=et+xt*4*et,lt=et):(yt-3)%4===0&&(vt=-et,lt=3*et+et*4*xt),_e&&(vt=-vt),nt||(ft=vt,vt=0);const dt=`rotateX(${nt?0:-gt}deg) rotateY(${nt?gt:0}deg) translate3d(${vt}px, ${ft}px, ${lt}px)`;wt<=1&&wt>-1&&(it=yt*90+wt*90,_e&&(it=-yt*90-wt*90)),pt.style.transform=dt,st.slideShadows&&a(pt,wt,nt)}if(b.style.transformOrigin=`50% 50% -${et/2}px`,b.style["-webkit-transform-origin"]=`50% 50% -${et/2}px`,st.shadow)if(nt)ot.style.transform=`translate3d(0px, ${j/2+st.shadowOffset}px, ${-j/2}px) rotateX(90deg) rotateZ(0deg) scale(${st.shadowScale})`;else{const ht=Math.abs(it)-Math.floor(Math.abs(it)/90)*90,pt=1.5-(Math.sin(ht*2*Math.PI/360)/2+Math.cos(ht*2*Math.PI/360)/2),yt=st.shadowScale,gt=st.shadowScale/pt,xt=st.shadowOffset;ot.style.transform=`scale3d(${yt}, 1, ${gt}) translate3d(0px, ${$/2+xt}px, ${-$/2/gt}px) rotateX(-90deg)`}const ut=(tt.isSafari||tt.isWebView)&&tt.needPerspectiveFix?-et/2:0;b.style.transform=`translate3d(0px,0,${ut}px) rotateX(${e.isHorizontal()?0:it}deg) rotateY(${e.isHorizontal()?-it:0}deg)`,b.style.setProperty("--swiper-cube-translate-z",`${ut}px`)},setTransition:d=>{const{el:b,slides:_}=e;if(_.forEach(j=>{j.style.transitionDuration=`${d}ms`,j.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach($=>{$.style.transitionDuration=`${d}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const j=b.querySelector(".swiper-cube-shadow");j&&(j.style.transitionDuration=`${d}ms`)}},recreateShadows:()=>{const d=e.isHorizontal();e.slides.forEach(b=>{const _=Math.max(Math.min(b.progress,1),-1);a(b,_,d)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function createShadow(i,e,s){const o=`swiper-slide-shadow${s?`-${s}`:""}${i?` swiper-slide-shadow-${i}`:""}`,a=getSlideTransformEl(e);let c=a.querySelector(`.${o.split(" ").join(".")}`);return c||(c=createElement("div",o.split(" ")),a.append(c)),c}function EffectFlip(i){let{swiper:e,extendParams:s,on:o}=i;s({flipEffect:{slideShadows:!0,limitRotation:!0}});const a=(d,b)=>{let _=e.isHorizontal()?d.querySelector(".swiper-slide-shadow-left"):d.querySelector(".swiper-slide-shadow-top"),j=e.isHorizontal()?d.querySelector(".swiper-slide-shadow-right"):d.querySelector(".swiper-slide-shadow-bottom");_||(_=createShadow("flip",d,e.isHorizontal()?"left":"top")),j||(j=createShadow("flip",d,e.isHorizontal()?"right":"bottom")),_&&(_.style.opacity=Math.max(-b,0)),j&&(j.style.opacity=Math.max(b,0))};effectInit({effect:"flip",swiper:e,on:o,setTranslate:()=>{const{slides:d,rtlTranslate:b}=e,_=e.params.flipEffect;for(let j=0;j{const b=e.slides.map(_=>getSlideTransformEl(_));b.forEach(_=>{_.style.transitionDuration=`${d}ms`,_.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(j=>{j.style.transitionDuration=`${d}ms`})}),effectVirtualTransitionEnd({swiper:e,duration:d,transformElements:b})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(d=>{let b=d.progress;e.params.flipEffect.limitRotation&&(b=Math.max(Math.min(d.progress,1),-1)),a(d,b)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function EffectCoverflow(i){let{swiper:e,extendParams:s,on:o}=i;s({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),effectInit({effect:"coverflow",swiper:e,on:o,setTranslate:()=>{const{width:h,height:g,slides:d,slidesSizesGrid:b}=e,_=e.params.coverflowEffect,j=e.isHorizontal(),$=e.translate,_e=j?-$+h/2:-$+g/2,et=j?_.rotate:-_.rotate,tt=_.depth;for(let st=0,nt=d.length;st0?ht:0),at&&(at.style.opacity=-ht>0?-ht:0)}}},setTransition:h=>{e.slides.map(d=>getSlideTransformEl(d)).forEach(d=>{d.style.transitionDuration=`${h}ms`,d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(b=>{b.style.transitionDuration=`${h}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function EffectCreative(i){let{swiper:e,extendParams:s,on:o}=i;s({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const a=g=>typeof g=="string"?g:`${g}px`;effectInit({effect:"creative",swiper:e,on:o,setTranslate:()=>{const{slides:g,wrapperEl:d,slidesSizesGrid:b}=e,_=e.params.creativeEffect,{progressMultiplier:j}=_,$=e.params.centeredSlides;if($){const _e=b[0]/2-e.params.slidesOffsetBefore||0;d.style.transform=`translateX(calc(50% - ${_e}px))`}for(let _e=0;_e0&&(ht=_.prev,ut=!0),it.forEach((ft,lt)=>{it[lt]=`calc(${ft}px + (${a(ht.translate[lt])} * ${Math.abs(st*j)}))`}),ot.forEach((ft,lt)=>{ot[lt]=ht.rotate[lt]*Math.abs(st*j)}),et.style.zIndex=-Math.abs(Math.round(tt))+g.length;const pt=it.join(", "),yt=`rotateX(${ot[0]}deg) rotateY(${ot[1]}deg) rotateZ(${ot[2]}deg)`,gt=nt<0?`scale(${1+(1-ht.scale)*nt*j})`:`scale(${1-(1-ht.scale)*nt*j})`,xt=nt<0?1+(1-ht.opacity)*nt*j:1-(1-ht.opacity)*nt*j,wt=`translate3d(${pt}) ${yt} ${gt}`;if(ut&&ht.shadow||!ut){let ft=et.querySelector(".swiper-slide-shadow");if(!ft&&ht.shadow&&(ft=createShadow("creative",et)),ft){const lt=_.shadowPerProgress?st*(1/_.limitProgress):st;ft.style.opacity=Math.min(Math.max(Math.abs(lt),0),1)}}const vt=effectTarget(_,et);vt.style.transform=wt,vt.style.opacity=xt,ht.origin&&(vt.style.transformOrigin=ht.origin)}},setTransition:g=>{const d=e.slides.map(b=>getSlideTransformEl(b));d.forEach(b=>{b.style.transitionDuration=`${g}ms`,b.querySelectorAll(".swiper-slide-shadow").forEach(_=>{_.style.transitionDuration=`${g}ms`})}),effectVirtualTransitionEnd({swiper:e,duration:g,transformElements:d,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}function EffectCards(i){let{swiper:e,extendParams:s,on:o}=i;s({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),effectInit({effect:"cards",swiper:e,on:o,setTranslate:()=>{const{slides:h,activeIndex:g,rtlTranslate:d}=e,b=e.params.cardsEffect,{startTranslate:_,isTouched:j}=e.touchEventsData,$=d?-e.translate:e.translate;for(let _e=0;_e0&&st<1&&(j||e.params.cssMode)&&$<_,xt=(yt===g||yt===g+1)&&st<0&&st>-1&&(j||e.params.cssMode)&&$>_;if(gt||xt){const lt=(1-Math.abs((Math.abs(st)-.5)/.5))**.5;ht+=-28*st*lt,ut+=-.5*lt,pt+=96*lt,it=`${-25*lt*Math.abs(st)}%`}if(st<0?rt=`calc(${rt}px ${d?"-":"+"} (${pt*Math.abs(st)}%))`:st>0?rt=`calc(${rt}px ${d?"-":"+"} (-${pt*Math.abs(st)}%))`:rt=`${rt}px`,!e.isHorizontal()){const lt=it;it=rt,rt=lt}const wt=st<0?`${1+(1-ut)*st}`:`${1-(1-ut)*st}`,vt=` + translate3d(${rt}, ${it}, ${ot}px) rotateZ(${b.rotate?d?-ht:ht:0}deg) scale(${wt}) - `;if(b.slideShadows){let lt=et.querySelector(".swiper-slide-shadow");lt||(lt=createShadow("cards",et)),lt&&(lt.style.opacity=Math.min(Math.max((Math.abs(st)-.5)/.5,0),1))}et.style.zIndex=-Math.abs(Math.round(tt))+h.length;const ft=effectTarget(b,et);ft.style.transform=vt}},setTransition:h=>{const g=e.slides.map(d=>getSlideTransformEl(d));g.forEach(d=>{d.style.transitionDuration=`${h}ms`,d.querySelectorAll(".swiper-slide-shadow").forEach(b=>{b.style.transitionDuration=`${h}ms`})}),effectVirtualTransitionEnd({swiper:e,duration:h,transformElements:g})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}const heading="_heading_1jxz1_1",testimonial="_testimonial_1jxz1_5",styles$1={heading,testimonial};function Testimonial({testimonial:i}){return jsxRuntimeExports.jsx("swiper-slide",{children:jsxRuntimeExports.jsxs("article",{className:styles$1.testimonial,children:[jsxRuntimeExports.jsxs("div",{className:styles$1.heading,children:[jsxRuntimeExports.jsx("img",{src:i.img,alt:i.name}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{children:i.name}),jsxRuntimeExports.jsx("h4",{children:i.role})]})]}),jsxRuntimeExports.jsx("p",{children:i.comment})]})})}let support;function calcSupport(){const i=getWindow(),e=getDocument();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in i||i.DocumentTouch&&e instanceof i.DocumentTouch)}}function getSupport(){return support||(support=calcSupport()),support}let deviceCached;function calcDevice(i){let{userAgent:e}=i===void 0?{}:i;const s=getSupport(),o=getWindow(),a=o.navigator.platform,c=e||o.navigator.userAgent,h={ios:!1,android:!1},g=o.screen.width,d=o.screen.height,b=c.match(/(Android);?[\s\/]+([\d.]+)?/);let _=c.match(/(iPad).*OS\s([\d_]+)/);const j=c.match(/(iPod)(.*OS\s([\d_]+))?/),$=!_&&c.match(/(iPhone\sOS|iOS)\s([\d_]+)/),_e=a==="Win32";let et=a==="MacIntel";const tt=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!_&&et&&s.touch&&tt.indexOf(`${g}x${d}`)>=0&&(_=c.match(/(Version)\/([\d.]+)/),_||(_=[0,1,"13_0_0"]),et=!1),b&&!_e&&(h.os="android",h.android=!0),(_||$||j)&&(h.os="ios",h.ios=!0),h}function getDevice(i){return i===void 0&&(i={}),deviceCached||(deviceCached=calcDevice(i)),deviceCached}let browser;function calcBrowser(){const i=getWindow();let e=!1;function s(){const o=i.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(s()){const o=String(i.navigator.userAgent);if(o.includes("Version/")){const[a,c]=o.split("Version/")[1].split(" ")[0].split(".").map(h=>Number(h));e=a<16||a===16&&c<2}}return{isSafari:e||s(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent)}}function getBrowser(){return browser||(browser=calcBrowser()),browser}function Resize(i){let{swiper:e,on:s,emit:o}=i;const a=getWindow();let c=null,h=null;const g=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},d=()=>{!e||e.destroyed||!e.initialized||(c=new ResizeObserver(j=>{h=a.requestAnimationFrame(()=>{const{width:$,height:_e}=e;let et=$,tt=_e;j.forEach(st=>{let{contentBoxSize:rt,contentRect:nt,target:it}=st;it&&it!==e.el||(et=nt?nt.width:(rt[0]||rt).inlineSize,tt=nt?nt.height:(rt[0]||rt).blockSize)}),(et!==$||tt!==_e)&&g()})}),c.observe(e.el))},b=()=>{h&&a.cancelAnimationFrame(h),c&&c.unobserve&&e.el&&(c.unobserve(e.el),c=null)},_=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};s("init",()=>{if(e.params.resizeObserver&&typeof a.ResizeObserver<"u"){d();return}a.addEventListener("resize",g),a.addEventListener("orientationchange",_)}),s("destroy",()=>{b(),a.removeEventListener("resize",g),a.removeEventListener("orientationchange",_)})}function Observer(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;const c=[],h=getWindow(),g=function(_,j){j===void 0&&(j={});const $=h.MutationObserver||h.WebkitMutationObserver,_e=new $(et=>{if(e.__preventObserver__)return;if(et.length===1){a("observerUpdate",et[0]);return}const tt=function(){a("observerUpdate",et[0])};h.requestAnimationFrame?h.requestAnimationFrame(tt):h.setTimeout(tt,0)});_e.observe(_,{attributes:typeof j.attributes>"u"?!0:j.attributes,childList:typeof j.childList>"u"?!0:j.childList,characterData:typeof j.characterData>"u"?!0:j.characterData}),c.push(_e)},d=()=>{if(e.params.observer){if(e.params.observeParents){const _=elementParents(e.hostEl);for(let j=0;j<_.length;j+=1)g(_[j])}g(e.hostEl,{childList:e.params.observeSlideChildren}),g(e.wrapperEl,{attributes:!1})}},b=()=>{c.forEach(_=>{_.disconnect()}),c.splice(0,c.length)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",d),o("destroy",b)}var eventsEmitter={on(i,e,s){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const a=s?"unshift":"push";return i.split(" ").forEach(c=>{o.eventsListeners[c]||(o.eventsListeners[c]=[]),o.eventsListeners[c][a](e)}),o},once(i,e,s){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function a(){o.off(i,a),a.__emitterProxy&&delete a.__emitterProxy;for(var c=arguments.length,h=new Array(c),g=0;g=0&&e.eventsAnyListeners.splice(s,1),e},off(i,e){const s=this;return!s.eventsListeners||s.destroyed||!s.eventsListeners||i.split(" ").forEach(o=>{typeof e>"u"?s.eventsListeners[o]=[]:s.eventsListeners[o]&&s.eventsListeners[o].forEach((a,c)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&s.eventsListeners[o].splice(c,1)})}),s},emit(){const i=this;if(!i.eventsListeners||i.destroyed||!i.eventsListeners)return i;let e,s,o;for(var a=arguments.length,c=new Array(a),h=0;h{i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach(b=>{b.apply(o,[d,...s])}),i.eventsListeners&&i.eventsListeners[d]&&i.eventsListeners[d].forEach(b=>{b.apply(o,s)})}),i}};function updateSize(){const i=this;let e,s;const o=i.el;typeof i.params.width<"u"&&i.params.width!==null?e=i.params.width:e=o.clientWidth,typeof i.params.height<"u"&&i.params.height!==null?s=i.params.height:s=o.clientHeight,!(e===0&&i.isHorizontal()||s===0&&i.isVertical())&&(e=e-parseInt(elementStyle(o,"padding-left")||0,10)-parseInt(elementStyle(o,"padding-right")||0,10),s=s-parseInt(elementStyle(o,"padding-top")||0,10)-parseInt(elementStyle(o,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(s)&&(s=0),Object.assign(i,{width:e,height:s,size:i.isHorizontal()?e:s}))}function updateSlides(){const i=this;function e(wt){return i.isHorizontal()?wt:{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"}[wt]}function s(wt,vt){return parseFloat(wt.getPropertyValue(e(vt))||0)}const o=i.params,{wrapperEl:a,slidesEl:c,size:h,rtlTranslate:g,wrongRTL:d}=i,b=i.virtual&&o.virtual.enabled,_=b?i.virtual.slides.length:i.slides.length,j=elementChildren(c,`.${i.params.slideClass}, swiper-slide`),$=b?i.virtual.slides.length:j.length;let _e=[];const et=[],tt=[];let st=o.slidesOffsetBefore;typeof st=="function"&&(st=o.slidesOffsetBefore.call(i));let rt=o.slidesOffsetAfter;typeof rt=="function"&&(rt=o.slidesOffsetAfter.call(i));const nt=i.snapGrid.length,it=i.slidesGrid.length;let ot=o.spaceBetween,ut=-st,ht=0,pt=0;if(typeof h>"u")return;typeof ot=="string"&&ot.indexOf("%")>=0?ot=parseFloat(ot.replace("%",""))/100*h:typeof ot=="string"&&(ot=parseFloat(ot)),i.virtualSize=-ot,j.forEach(wt=>{g?wt.style.marginLeft="":wt.style.marginRight="",wt.style.marginBottom="",wt.style.marginTop=""}),o.centeredSlides&&o.cssMode&&(setCSSProperty(a,"--swiper-centered-offset-before",""),setCSSProperty(a,"--swiper-centered-offset-after",""));const yt=o.grid&&o.grid.rows>1&&i.grid;yt&&i.grid.initSlides($);let gt;const xt=o.slidesPerView==="auto"&&o.breakpoints&&Object.keys(o.breakpoints).filter(wt=>typeof o.breakpoints[wt].slidesPerView<"u").length>0;for(let wt=0;wt<$;wt+=1){gt=0;let vt;if(j[wt]&&(vt=j[wt]),yt&&i.grid.updateSlide(wt,vt,$,e),!(j[wt]&&elementStyle(vt,"display")==="none")){if(o.slidesPerView==="auto"){xt&&(j[wt].style[e("width")]="");const ft=getComputedStyle(vt),lt=vt.style.transform,dt=vt.style.webkitTransform;if(lt&&(vt.style.transform="none"),dt&&(vt.style.webkitTransform="none"),o.roundLengths)gt=i.isHorizontal()?elementOuterSize(vt,"width",!0):elementOuterSize(vt,"height",!0);else{const bt=s(ft,"width"),at=s(ft,"padding-left"),ct=s(ft,"padding-right"),mt=s(ft,"margin-left"),Et=s(ft,"margin-right"),jt=ft.getPropertyValue("box-sizing");if(jt&&jt==="border-box")gt=bt+mt+Et;else{const{clientWidth:kt,offsetWidth:Ct}=vt;gt=bt+at+ct+mt+Et+(Ct-kt)}}lt&&(vt.style.transform=lt),dt&&(vt.style.webkitTransform=dt),o.roundLengths&&(gt=Math.floor(gt))}else gt=(h-(o.slidesPerView-1)*ot)/o.slidesPerView,o.roundLengths&&(gt=Math.floor(gt)),j[wt]&&(j[wt].style[e("width")]=`${gt}px`);j[wt]&&(j[wt].swiperSlideSize=gt),tt.push(gt),o.centeredSlides?(ut=ut+gt/2+ht/2+ot,ht===0&&wt!==0&&(ut=ut-h/2-ot),wt===0&&(ut=ut-h/2-ot),Math.abs(ut)<1/1e3&&(ut=0),o.roundLengths&&(ut=Math.floor(ut)),pt%o.slidesPerGroup===0&&_e.push(ut),et.push(ut)):(o.roundLengths&&(ut=Math.floor(ut)),(pt-Math.min(i.params.slidesPerGroupSkip,pt))%i.params.slidesPerGroup===0&&_e.push(ut),et.push(ut),ut=ut+gt+ot),i.virtualSize+=gt+ot,ht=gt,pt+=1}}if(i.virtualSize=Math.max(i.virtualSize,h)+rt,g&&d&&(o.effect==="slide"||o.effect==="coverflow")&&(a.style.width=`${i.virtualSize+ot}px`),o.setWrapperSize&&(a.style[e("width")]=`${i.virtualSize+ot}px`),yt&&i.grid.updateWrapperSize(gt,_e,e),!o.centeredSlides){const wt=[];for(let vt=0;vt<_e.length;vt+=1){let ft=_e[vt];o.roundLengths&&(ft=Math.floor(ft)),_e[vt]<=i.virtualSize-h&&wt.push(ft)}_e=wt,Math.floor(i.virtualSize-h)-Math.floor(_e[_e.length-1])>1&&_e.push(i.virtualSize-h)}if(b&&o.loop){const wt=tt[0]+ot;if(o.slidesPerGroup>1){const vt=Math.ceil((i.virtual.slidesBefore+i.virtual.slidesAfter)/o.slidesPerGroup),ft=wt*o.slidesPerGroup;for(let lt=0;lt!o.cssMode||o.loop?!0:ft!==j.length-1).forEach(vt=>{vt.style[wt]=`${ot}px`})}if(o.centeredSlides&&o.centeredSlidesBounds){let wt=0;tt.forEach(ft=>{wt+=ft+(ot||0)}),wt-=ot;const vt=wt-h;_e=_e.map(ft=>ft<=0?-st:ft>vt?vt+rt:ft)}if(o.centerInsufficientSlides){let wt=0;if(tt.forEach(vt=>{wt+=vt+(ot||0)}),wt-=ot,wt{_e[lt]=ft-vt}),et.forEach((ft,lt)=>{et[lt]=ft+vt})}}if(Object.assign(i,{slides:j,snapGrid:_e,slidesGrid:et,slidesSizesGrid:tt}),o.centeredSlides&&o.cssMode&&!o.centeredSlidesBounds){setCSSProperty(a,"--swiper-centered-offset-before",`${-_e[0]}px`),setCSSProperty(a,"--swiper-centered-offset-after",`${i.size/2-tt[tt.length-1]/2}px`);const wt=-i.snapGrid[0],vt=-i.slidesGrid[0];i.snapGrid=i.snapGrid.map(ft=>ft+wt),i.slidesGrid=i.slidesGrid.map(ft=>ft+vt)}if($!==_&&i.emit("slidesLengthChange"),_e.length!==nt&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),et.length!==it&&i.emit("slidesGridLengthChange"),o.watchSlidesProgress&&i.updateSlidesOffset(),!b&&!o.cssMode&&(o.effect==="slide"||o.effect==="fade")){const wt=`${o.containerModifierClass}backface-hidden`,vt=i.el.classList.contains(wt);$<=o.maxBackfaceHiddenSlides?vt||i.el.classList.add(wt):vt&&i.el.classList.remove(wt)}}function updateAutoHeight(i){const e=this,s=[],o=e.virtual&&e.params.virtual.enabled;let a=0,c;typeof i=="number"?e.setTransition(i):i===!0&&e.setTransition(e.params.speed);const h=g=>o?e.slides[e.getSlideIndexByData(g)]:e.slides[g];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(g=>{s.push(g)});else for(c=0;ce.slides.length&&!o)break;s.push(h(g))}else s.push(h(e.activeIndex));for(c=0;ca?g:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function updateSlidesOffset(){const i=this,e=i.slides,s=i.isElement?i.isHorizontal()?i.wrapperEl.offsetLeft:i.wrapperEl.offsetTop:0;for(let o=0;o"u"&&e.updateSlidesOffset();let h=-i;a&&(h=i),o.forEach(d=>{d.classList.remove(s.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let g=s.spaceBetween;typeof g=="string"&&g.indexOf("%")>=0?g=parseFloat(g.replace("%",""))/100*e.size:typeof g=="string"&&(g=parseFloat(g));for(let d=0;d=0&&_e1&&et<=e.size||_e<=0&&et>=e.size)&&(e.visibleSlides.push(b),e.visibleSlidesIndexes.push(d),o[d].classList.add(s.slideVisibleClass)),b.progress=a?-j:j,b.originalProgress=a?-$:$}}function updateProgress(i){const e=this;if(typeof i>"u"){const _=e.rtlTranslate?-1:1;i=e&&e.translate&&e.translate*_||0}const s=e.params,o=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:c,isEnd:h,progressLoop:g}=e;const d=c,b=h;if(o===0)a=0,c=!0,h=!0;else{a=(i-e.minTranslate())/o;const _=Math.abs(i-e.minTranslate())<1,j=Math.abs(i-e.maxTranslate())<1;c=_||a<=0,h=j||a>=1,_&&(a=0),j&&(a=1)}if(s.loop){const _=e.getSlideIndexByData(0),j=e.getSlideIndexByData(e.slides.length-1),$=e.slidesGrid[_],_e=e.slidesGrid[j],et=e.slidesGrid[e.slidesGrid.length-1],tt=Math.abs(i);tt>=$?g=(tt-$)/et:g=(tt+et-_e)/et,g>1&&(g-=1)}Object.assign(e,{progress:a,progressLoop:g,isBeginning:c,isEnd:h}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&e.updateSlidesProgress(i),c&&!d&&e.emit("reachBeginning toEdge"),h&&!b&&e.emit("reachEnd toEdge"),(d&&!c||b&&!h)&&e.emit("fromEdge"),e.emit("progress",a)}function updateSlidesClasses(){const i=this,{slides:e,params:s,slidesEl:o,activeIndex:a}=i,c=i.virtual&&s.virtual.enabled,h=d=>elementChildren(o,`.${s.slideClass}${d}, swiper-slide${d}`)[0];e.forEach(d=>{d.classList.remove(s.slideActiveClass,s.slideNextClass,s.slidePrevClass)});let g;if(c)if(s.loop){let d=a-i.virtual.slidesBefore;d<0&&(d=i.virtual.slides.length+d),d>=i.virtual.slides.length&&(d-=i.virtual.slides.length),g=h(`[data-swiper-slide-index="${d}"]`)}else g=h(`[data-swiper-slide-index="${a}"]`);else g=e[a];if(g){g.classList.add(s.slideActiveClass);let d=elementNextAll(g,`.${s.slideClass}, swiper-slide`)[0];s.loop&&!d&&(d=e[0]),d&&d.classList.add(s.slideNextClass);let b=elementPrevAll(g,`.${s.slideClass}, swiper-slide`)[0];s.loop&&!b===0&&(b=e[e.length-1]),b&&b.classList.add(s.slidePrevClass)}i.emitSlidesClasses()}const processLazyPreloader=(i,e)=>{if(!i||i.destroyed||!i.params)return;const s=()=>i.isElement?"swiper-slide":`.${i.params.slideClass}`,o=e.closest(s());if(o){let a=o.querySelector(`.${i.params.lazyPreloaderClass}`);!a&&i.isElement&&(a=o.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`)),a&&a.remove()}},unlazy=(i,e)=>{if(!i.slides[e])return;const s=i.slides[e].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},preload=i=>{if(!i||i.destroyed||!i.params)return;let e=i.params.lazyPreloadPrevNext;const s=i.slides.length;if(!s||!e||e<0)return;e=Math.min(e,s);const o=i.params.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(i.params.slidesPerView),a=i.activeIndex;if(i.params.grid&&i.params.grid.rows>1){const h=a,g=[h-e];g.push(...Array.from({length:e}).map((d,b)=>h+o+b)),i.slides.forEach((d,b)=>{g.includes(d.column)&&unlazy(i,b)});return}const c=a+o-1;if(i.params.rewind||i.params.loop)for(let h=a-e;h<=c+e;h+=1){const g=(h%s+s)%s;(gc)&&unlazy(i,g)}else for(let h=Math.max(a-e,0);h<=Math.min(c+e,s-1);h+=1)h!==a&&(h>c||h=e[c]&&o=e[c]&&o=e[c]&&(a=c);return s.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function updateActiveIndex(i){const e=this,s=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:a,activeIndex:c,realIndex:h,snapIndex:g}=e;let d=i,b;const _=$=>{let _e=$-e.virtual.slidesBefore;return _e<0&&(_e=e.virtual.slides.length+_e),_e>=e.virtual.slides.length&&(_e-=e.virtual.slides.length),_e};if(typeof d>"u"&&(d=getActiveIndexByTranslate(e)),o.indexOf(s)>=0)b=o.indexOf(s);else{const $=Math.min(a.slidesPerGroupSkip,d);b=$+Math.floor((d-$)/a.slidesPerGroup)}if(b>=o.length&&(b=o.length-1),d===c){b!==g&&(e.snapIndex=b,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=_(d));return}let j;e.virtual&&a.virtual.enabled&&a.loop?j=_(d):e.slides[d]?j=parseInt(e.slides[d].getAttribute("data-swiper-slide-index")||d,10):j=d,Object.assign(e,{previousSnapIndex:g,snapIndex:b,previousRealIndex:h,realIndex:j,previousIndex:c,activeIndex:d}),e.initialized&&preload(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),h!==j&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function updateClickedSlide(i){const e=this,s=e.params,o=i.closest(`.${s.slideClass}, swiper-slide`);let a=!1,c;if(o){for(let h=0;hd?_=d:o&&ih?g="next":c=d.length&&(st=d.length-1);const rt=-d[st];if(g.normalizeSlideIndex)for(let it=0;it=ut&&ot=ut&&ot=ut&&(h=it)}if(c.initialized&&h!==j&&(!c.allowSlideNext&&($?rt>c.translate&&rt>c.minTranslate():rtc.translate&&rt>c.maxTranslate()&&(j||0)!==h))return!1;h!==(_||0)&&s&&c.emit("beforeSlideChangeStart"),c.updateProgress(rt);let nt;if(h>j?nt="next":h0?(c._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{_e[it?"scrollLeft":"scrollTop"]=ot})):_e[it?"scrollLeft":"scrollTop"]=ot,ut&&requestAnimationFrame(()=>{c.wrapperEl.style.scrollSnapType="",c._immediateVirtual=!1})}else{if(!c.support.smoothScroll)return animateCSSModeScroll({swiper:c,targetPosition:ot,side:it?"left":"top"}),!0;_e.scrollTo({[it?"left":"top"]:ot,behavior:"smooth"})}return!0}return c.setTransition(e),c.setTranslate(rt),c.updateActiveIndex(h),c.updateSlidesClasses(),c.emit("beforeTransitionStart",e,o),c.transitionStart(s,nt),e===0?c.transitionEnd(s,nt):c.animating||(c.animating=!0,c.onSlideToWrapperTransitionEnd||(c.onSlideToWrapperTransitionEnd=function(ot){!c||c.destroyed||ot.target===this&&(c.wrapperEl.removeEventListener("transitionend",c.onSlideToWrapperTransitionEnd),c.onSlideToWrapperTransitionEnd=null,delete c.onSlideToWrapperTransitionEnd,c.transitionEnd(s,nt))}),c.wrapperEl.addEventListener("transitionend",c.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(i,e,s,o){i===void 0&&(i=0),e===void 0&&(e=this.params.speed),s===void 0&&(s=!0),typeof i=="string"&&(i=parseInt(i,10));const a=this;let c=i;return a.params.loop&&(a.virtual&&a.params.virtual.enabled?c=c+a.virtual.slidesBefore:c=a.getSlideIndexByData(c)),a.slideTo(c,e,s,o)}function slideNext(i,e,s){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0);const o=this,{enabled:a,params:c,animating:h}=o;if(!a)return o;let g=c.slidesPerGroup;c.slidesPerView==="auto"&&c.slidesPerGroup===1&&c.slidesPerGroupAuto&&(g=Math.max(o.slidesPerViewDynamic("current",!0),1));const d=o.activeIndex$(rt));let tt=c[et.indexOf(_e)-1];if(typeof tt>"u"&&a.cssMode){let rt;c.forEach((nt,it)=>{_e>=nt&&(rt=it)}),typeof rt<"u"&&(tt=c[rt>0?rt-1:rt])}let st=0;if(typeof tt<"u"&&(st=h.indexOf(tt),st<0&&(st=o.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(st=st-o.slidesPerViewDynamic("previous",!0)+1,st=Math.max(st,0))),a.rewind&&o.isBeginning){const rt=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(rt,i,e,s)}return o.slideTo(st,i,e,s)}function slideReset(i,e,s){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0);const o=this;return o.slideTo(o.activeIndex,i,e,s)}function slideToClosest(i,e,s,o){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0),o===void 0&&(o=.5);const a=this;let c=a.activeIndex;const h=Math.min(a.params.slidesPerGroupSkip,c),g=h+Math.floor((c-h)/a.params.slidesPerGroup),d=a.rtlTranslate?a.translate:-a.translate;if(d>=a.snapGrid[g]){const b=a.snapGrid[g],_=a.snapGrid[g+1];d-b>(_-b)*o&&(c+=a.params.slidesPerGroup)}else{const b=a.snapGrid[g-1],_=a.snapGrid[g];d-b<=(_-b)*o&&(c-=a.params.slidesPerGroup)}return c=Math.max(c,0),c=Math.min(c,a.slidesGrid.length-1),a.slideTo(c,i,e,s)}function slideToClickedSlide(){const i=this,{params:e,slidesEl:s}=i,o=e.slidesPerView==="auto"?i.slidesPerViewDynamic():e.slidesPerView;let a=i.clickedIndex,c;const h=i.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(i.animating)return;c=parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?ai.slides.length-i.loopedSlides+o/2?(i.loopFix(),a=i.getSlideIndex(elementChildren(s,`${h}[data-swiper-slide-index="${c}"]`)[0]),nextTick(()=>{i.slideTo(a)})):i.slideTo(a):a>i.slides.length-o?(i.loopFix(),a=i.getSlideIndex(elementChildren(s,`${h}[data-swiper-slide-index="${c}"]`)[0]),nextTick(()=>{i.slideTo(a)})):i.slideTo(a)}else i.slideTo(a)}var slide={slideTo,slideToLoop,slideNext,slidePrev,slideReset,slideToClosest,slideToClickedSlide};function loopCreate(i){const e=this,{params:s,slidesEl:o}=e;if(!s.loop||e.virtual&&e.params.virtual.enabled)return;elementChildren(o,`.${s.slideClass}, swiper-slide`).forEach((c,h)=>{c.setAttribute("data-swiper-slide-index",h)}),e.loopFix({slideRealIndex:i,direction:s.centeredSlides?void 0:"next"})}function loopFix(i){let{slideRealIndex:e,slideTo:s=!0,direction:o,setTranslate:a,activeSlideIndex:c,byController:h,byMousewheel:g}=i===void 0?{}:i;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:b,allowSlidePrev:_,allowSlideNext:j,slidesEl:$,params:_e}=d;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&_e.virtual.enabled){s&&(!_e.centeredSlides&&d.snapIndex===0?d.slideTo(d.virtual.slides.length,0,!1,!0):_e.centeredSlides&&d.snapIndex<_e.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0)),d.allowSlidePrev=_,d.allowSlideNext=j,d.emit("loopFix");return}const et=_e.slidesPerView==="auto"?d.slidesPerViewDynamic():Math.ceil(parseFloat(_e.slidesPerView,10));let tt=_e.loopedSlides||et;tt%_e.slidesPerGroup!==0&&(tt+=_e.slidesPerGroup-tt%_e.slidesPerGroup),d.loopedSlides=tt;const st=[],rt=[];let nt=d.activeIndex;typeof c>"u"?c=d.getSlideIndex(d.slides.filter(pt=>pt.classList.contains(_e.slideActiveClass))[0]):nt=c;const it=o==="next"||!o,ot=o==="prev"||!o;let ut=0,ht=0;if(cd.slides.length-tt*2){ht=Math.max(c-(d.slides.length-tt*2),_e.slidesPerGroup);for(let pt=0;pt{d.slides[pt].swiperLoopMoveDOM=!0,$.prepend(d.slides[pt]),d.slides[pt].swiperLoopMoveDOM=!1}),it&&rt.forEach(pt=>{d.slides[pt].swiperLoopMoveDOM=!0,$.append(d.slides[pt]),d.slides[pt].swiperLoopMoveDOM=!1}),d.recalcSlides(),_e.slidesPerView==="auto"&&d.updateSlides(),_e.watchSlidesProgress&&d.updateSlidesOffset(),s){if(st.length>0&&ot)if(typeof e>"u"){const pt=d.slidesGrid[nt],gt=d.slidesGrid[nt+ut]-pt;g?d.setTranslate(d.translate-gt):(d.slideTo(nt+ut,0,!1,!0),a&&(d.touches[d.isHorizontal()?"startX":"startY"]+=gt,d.touchEventsData.currentTranslate=d.translate))}else a&&(d.slideToLoop(e,0,!1,!0),d.touchEventsData.currentTranslate=d.translate);else if(rt.length>0&&it)if(typeof e>"u"){const pt=d.slidesGrid[nt],gt=d.slidesGrid[nt-ht]-pt;g?d.setTranslate(d.translate-gt):(d.slideTo(nt-ht,0,!1,!0),a&&(d.touches[d.isHorizontal()?"startX":"startY"]+=gt,d.touchEventsData.currentTranslate=d.translate))}else d.slideToLoop(e,0,!1,!0)}if(d.allowSlidePrev=_,d.allowSlideNext=j,d.controller&&d.controller.control&&!h){const pt={slideRealIndex:e,direction:o,setTranslate:a,activeSlideIndex:c,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(yt=>{!yt.destroyed&&yt.params.loop&&yt.loopFix({...pt,slideTo:yt.params.slidesPerView===_e.slidesPerView?s:!1})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...pt,slideTo:d.controller.control.params.slidesPerView===_e.slidesPerView?s:!1})}d.emit("loopFix")}function loopDestroy(){const i=this,{params:e,slidesEl:s}=i;if(!e.loop||i.virtual&&i.params.virtual.enabled)return;i.recalcSlides();const o=[];i.slides.forEach(a=>{const c=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[c]=a}),i.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),o.forEach(a=>{s.append(a)}),i.recalcSlides(),i.slideTo(i.realIndex,0)}var loop={loopCreate,loopFix,loopDestroy};function setGrabCursor(i){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const s=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=i?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function unsetGrabCursor(){const i=this;i.params.watchOverflow&&i.isLocked||i.params.cssMode||(i.isElement&&(i.__preventObserver__=!0),i[i.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",i.isElement&&requestAnimationFrame(()=>{i.__preventObserver__=!1}))}var grabCursor={setGrabCursor,unsetGrabCursor};function closestElement(i,e){e===void 0&&(e=this);function s(o){if(!o||o===getDocument()||o===getWindow())return null;o.assignedSlot&&(o=o.assignedSlot);const a=o.closest(i);return!a&&!o.getRootNode?null:a||s(o.getRootNode().host)}return s(e)}function onTouchStart(i){const e=this,s=getDocument(),o=getWindow(),a=e.touchEventsData;a.evCache.push(i);const{params:c,touches:h,enabled:g}=e;if(!g||!c.simulateTouch&&i.pointerType==="mouse"||e.animating&&c.preventInteractionOnTransition)return;!e.animating&&c.cssMode&&c.loop&&e.loopFix();let d=i;d.originalEvent&&(d=d.originalEvent);let b=d.target;if(c.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(b)||"which"in d&&d.which===3||"button"in d&&d.button>0||a.isTouched&&a.isMoved)return;const _=!!c.noSwipingClass&&c.noSwipingClass!=="",j=i.composedPath?i.composedPath():i.path;_&&d.target&&d.target.shadowRoot&&j&&(b=j[0]);const $=c.noSwipingSelector?c.noSwipingSelector:`.${c.noSwipingClass}`,_e=!!(d.target&&d.target.shadowRoot);if(c.noSwiping&&(_e?closestElement($,b):b.closest($))){e.allowClick=!0;return}if(c.swipeHandler&&!b.closest(c.swipeHandler))return;h.currentX=d.pageX,h.currentY=d.pageY;const et=h.currentX,tt=h.currentY,st=c.edgeSwipeDetection||c.iOSEdgeSwipeDetection,rt=c.edgeSwipeThreshold||c.iOSEdgeSwipeThreshold;if(st&&(et<=rt||et>=o.innerWidth-rt))if(st==="prevent")i.preventDefault();else return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),h.startX=et,h.startY=tt,a.touchStartTime=now(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,c.threshold>0&&(a.allowThresholdMove=!1);let nt=!0;b.matches(a.focusableElements)&&(nt=!1,b.nodeName==="SELECT"&&(a.isTouched=!1)),s.activeElement&&s.activeElement.matches(a.focusableElements)&&s.activeElement!==b&&s.activeElement.blur();const it=nt&&e.allowTouchMove&&c.touchStartPreventDefault;(c.touchStartForcePreventDefault||it)&&!b.isContentEditable&&d.preventDefault(),c.freeMode&&c.freeMode.enabled&&e.freeMode&&e.animating&&!c.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",d)}function onTouchMove(i){const e=getDocument(),s=this,o=s.touchEventsData,{params:a,touches:c,rtlTranslate:h,enabled:g}=s;if(!g||!a.simulateTouch&&i.pointerType==="mouse")return;let d=i;if(d.originalEvent&&(d=d.originalEvent),!o.isTouched){o.startMoving&&o.isScrolling&&s.emit("touchMoveOpposite",d);return}const b=o.evCache.findIndex(ht=>ht.pointerId===d.pointerId);b>=0&&(o.evCache[b]=d);const _=o.evCache.length>1?o.evCache[0]:d,j=_.pageX,$=_.pageY;if(d.preventedByNestedSwiper){c.startX=j,c.startY=$;return}if(!s.allowTouchMove){d.target.matches(o.focusableElements)||(s.allowClick=!1),o.isTouched&&(Object.assign(c,{startX:j,startY:$,prevX:s.touches.currentX,prevY:s.touches.currentY,currentX:j,currentY:$}),o.touchStartTime=now());return}if(a.touchReleaseOnEdges&&!a.loop){if(s.isVertical()){if($c.startY&&s.translate>=s.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(jc.startX&&s.translate>=s.minTranslate())return}if(e.activeElement&&d.target===e.activeElement&&d.target.matches(o.focusableElements)){o.isMoved=!0,s.allowClick=!1;return}if(o.allowTouchCallbacks&&s.emit("touchMove",d),d.targetTouches&&d.targetTouches.length>1)return;c.currentX=j,c.currentY=$;const _e=c.currentX-c.startX,et=c.currentY-c.startY;if(s.params.threshold&&Math.sqrt(_e**2+et**2)"u"){let ht;s.isHorizontal()&&c.currentY===c.startY||s.isVertical()&&c.currentX===c.startX?o.isScrolling=!1:_e*_e+et*et>=25&&(ht=Math.atan2(Math.abs(et),Math.abs(_e))*180/Math.PI,o.isScrolling=s.isHorizontal()?ht>a.touchAngle:90-ht>a.touchAngle)}if(o.isScrolling&&s.emit("touchMoveOpposite",d),typeof o.startMoving>"u"&&(c.currentX!==c.startX||c.currentY!==c.startY)&&(o.startMoving=!0),o.isScrolling||s.zoom&&s.params.zoom&&s.params.zoom.enabled&&o.evCache.length>1){o.isTouched=!1;return}if(!o.startMoving)return;s.allowClick=!1,!a.cssMode&&d.cancelable&&d.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&d.stopPropagation();let tt=s.isHorizontal()?_e:et,st=s.isHorizontal()?c.currentX-c.previousX:c.currentY-c.previousY;a.oneWayMovement&&(tt=Math.abs(tt)*(h?1:-1),st=Math.abs(st)*(h?1:-1)),c.diff=tt,tt*=a.touchRatio,h&&(tt=-tt,st=-st);const rt=s.touchesDirection;s.swipeDirection=tt>0?"prev":"next",s.touchesDirection=st>0?"prev":"next";const nt=s.params.loop&&!a.cssMode;if(!o.isMoved){if(nt&&s.loopFix({direction:s.swipeDirection}),o.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const ht=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});s.wrapperEl.dispatchEvent(ht)}o.allowMomentumBounce=!1,a.grabCursor&&(s.allowSlideNext===!0||s.allowSlidePrev===!0)&&s.setGrabCursor(!0),s.emit("sliderFirstMove",d)}let it;o.isMoved&&rt!==s.touchesDirection&&nt&&Math.abs(tt)>=1&&(s.loopFix({direction:s.swipeDirection,setTranslate:!0}),it=!0),s.emit("sliderMove",d),o.isMoved=!0,o.currentTranslate=tt+o.startTranslate;let ot=!0,ut=a.resistanceRatio;if(a.touchReleaseOnEdges&&(ut=0),tt>0?(nt&&!it&&o.currentTranslate>(a.centeredSlides?s.minTranslate()-s.size/2:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>s.minTranslate()&&(ot=!1,a.resistance&&(o.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+o.startTranslate+tt)**ut))):tt<0&&(nt&&!it&&o.currentTranslate<(a.centeredSlides?s.maxTranslate()+s.size/2:s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-(a.slidesPerView==="auto"?s.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslateo.startTranslate&&(o.currentTranslate=o.startTranslate),!s.allowSlidePrev&&!s.allowSlideNext&&(o.currentTranslate=o.startTranslate),a.threshold>0)if(Math.abs(tt)>a.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,c.startX=c.currentX,c.startY=c.currentY,o.currentTranslate=o.startTranslate,c.diff=s.isHorizontal()?c.currentX-c.startX:c.currentY-c.startY;return}}else{o.currentTranslate=o.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&s.freeMode||a.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(o.currentTranslate),s.setTranslate(o.currentTranslate))}function onTouchEnd(i){const e=this,s=e.touchEventsData,o=s.evCache.findIndex(it=>it.pointerId===i.pointerId);if(o>=0&&s.evCache.splice(o,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:a,touches:c,rtlTranslate:h,slidesGrid:g,enabled:d}=e;if(!d||!a.simulateTouch&&i.pointerType==="mouse")return;let b=i;if(b.originalEvent&&(b=b.originalEvent),s.allowTouchCallbacks&&e.emit("touchEnd",b),s.allowTouchCallbacks=!1,!s.isTouched){s.isMoved&&a.grabCursor&&e.setGrabCursor(!1),s.isMoved=!1,s.startMoving=!1;return}a.grabCursor&&s.isMoved&&s.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const _=now(),j=_-s.touchStartTime;if(e.allowClick){const it=b.path||b.composedPath&&b.composedPath();e.updateClickedSlide(it&&it[0]||b.target),e.emit("tap click",b),j<300&&_-s.lastClickTime<300&&e.emit("doubleTap doubleClick",b)}if(s.lastClickTime=now(),nextTick(()=>{e.destroyed||(e.allowClick=!0)}),!s.isTouched||!s.isMoved||!e.swipeDirection||c.diff===0||s.currentTranslate===s.startTranslate){s.isTouched=!1,s.isMoved=!1,s.startMoving=!1;return}s.isTouched=!1,s.isMoved=!1,s.startMoving=!1;let $;if(a.followFinger?$=h?e.translate:-e.translate:$=-s.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:$});return}let _e=0,et=e.slidesSizesGrid[0];for(let it=0;it=g[it]&&$=g[it]&&(_e=it,et=g[g.length-1]-g[g.length-2])}let tt=null,st=null;a.rewind&&(e.isBeginning?st=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(tt=0));const rt=($-g[_e])/et,nt=_ea.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(rt>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?tt:_e+nt):e.slideTo(_e)),e.swipeDirection==="prev"&&(rt>1-a.longSwipesRatio?e.slideTo(_e+nt):st!==null&&rt<0&&Math.abs(rt)>a.longSwipesRatio?e.slideTo(st):e.slideTo(_e))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(b.target===e.navigation.nextEl||b.target===e.navigation.prevEl)?b.target===e.navigation.nextEl?e.slideTo(_e+nt):e.slideTo(_e):(e.swipeDirection==="next"&&e.slideTo(tt!==null?tt:_e+nt),e.swipeDirection==="prev"&&e.slideTo(st!==null?st:_e))}}function onResize(){const i=this,{params:e,el:s}=i;if(s&&s.offsetWidth===0)return;e.breakpoints&&i.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:c}=i,h=i.virtual&&i.params.virtual.enabled;i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses();const g=h&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides&&!g?i.slideTo(i.slides.length-1,0,!1,!0):i.params.loop&&!h?i.slideToLoop(i.realIndex,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0),i.autoplay&&i.autoplay.running&&i.autoplay.paused&&(clearTimeout(i.autoplay.resizeTimeout),i.autoplay.resizeTimeout=setTimeout(()=>{i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.resume()},500)),i.allowSlidePrev=a,i.allowSlideNext=o,i.params.watchOverflow&&c!==i.snapGrid&&i.checkOverflow()}function onClick(i){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&i.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(i.stopPropagation(),i.stopImmediatePropagation())))}function onScroll(){const i=this,{wrapperEl:e,rtlTranslate:s,enabled:o}=i;if(!o)return;i.previousTranslate=i.translate,i.isHorizontal()?i.translate=-e.scrollLeft:i.translate=-e.scrollTop,i.translate===0&&(i.translate=0),i.updateActiveIndex(),i.updateSlidesClasses();let a;const c=i.maxTranslate()-i.minTranslate();c===0?a=0:a=(i.translate-i.minTranslate())/c,a!==i.progress&&i.updateProgress(s?-i.translate:i.translate),i.emit("setTranslate",i.translate,!1)}function onLoad(i){const e=this;processLazyPreloader(e,i.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let dummyEventAttached=!1;function dummyEventListener(){}const events=(i,e)=>{const s=getDocument(),{params:o,el:a,wrapperEl:c,device:h}=i,g=!!o.nested,d=e==="on"?"addEventListener":"removeEventListener",b=e;a[d]("pointerdown",i.onTouchStart,{passive:!1}),s[d]("pointermove",i.onTouchMove,{passive:!1,capture:g}),s[d]("pointerup",i.onTouchEnd,{passive:!0}),s[d]("pointercancel",i.onTouchEnd,{passive:!0}),s[d]("pointerout",i.onTouchEnd,{passive:!0}),s[d]("pointerleave",i.onTouchEnd,{passive:!0}),s[d]("contextmenu",i.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&a[d]("click",i.onClick,!0),o.cssMode&&c[d]("scroll",i.onScroll),o.updateOnWindowResize?i[b](h.ios||h.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):i[b]("observerUpdate",onResize,!0),a[d]("load",i.onLoad,{capture:!0})};function attachEvents(){const i=this,e=getDocument(),{params:s}=i;i.onTouchStart=onTouchStart.bind(i),i.onTouchMove=onTouchMove.bind(i),i.onTouchEnd=onTouchEnd.bind(i),s.cssMode&&(i.onScroll=onScroll.bind(i)),i.onClick=onClick.bind(i),i.onLoad=onLoad.bind(i),dummyEventAttached||(e.addEventListener("touchstart",dummyEventListener),dummyEventAttached=!0),events(i,"on")}function detachEvents(){events(this,"off")}var events$1={attachEvents,detachEvents};const isGridEnabled=(i,e)=>i.grid&&e.grid&&e.grid.rows>1;function setBreakpoint(){const i=this,{realIndex:e,initialized:s,params:o,el:a}=i,c=o.breakpoints;if(!c||c&&Object.keys(c).length===0)return;const h=i.getBreakpoint(c,i.params.breakpointsBase,i.el);if(!h||i.currentBreakpoint===h)return;const d=(h in c?c[h]:void 0)||i.originalParams,b=isGridEnabled(i,o),_=isGridEnabled(i,d),j=o.enabled;b&&!_?(a.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),i.emitContainerClasses()):!b&&_&&(a.classList.add(`${o.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&o.grid.fill==="column")&&a.classList.add(`${o.containerModifierClass}grid-column`),i.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(tt=>{if(typeof d[tt]>"u")return;const st=o[tt]&&o[tt].enabled,rt=d[tt]&&d[tt].enabled;st&&!rt&&i[tt].disable(),!st&&rt&&i[tt].enable()});const $=d.direction&&d.direction!==o.direction,_e=o.loop&&(d.slidesPerView!==o.slidesPerView||$);$&&s&&i.changeDirection(),extend$1(i.params,d);const et=i.params.enabled;Object.assign(i,{allowTouchMove:i.params.allowTouchMove,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev}),j&&!et?i.disable():!j&&et&&i.enable(),i.currentBreakpoint=h,i.emit("_beforeBreakpoint",d),_e&&s&&(i.loopDestroy(),i.loopCreate(e),i.updateSlides()),i.emit("breakpoint",d)}function getBreakpoint(i,e,s){if(e===void 0&&(e="window"),!i||e==="container"&&!s)return;let o=!1;const a=getWindow(),c=e==="window"?a.innerHeight:s.clientHeight,h=Object.keys(i).map(g=>{if(typeof g=="string"&&g.indexOf("@")===0){const d=parseFloat(g.substr(1));return{value:c*d,point:g}}return{value:g,point:g}});h.sort((g,d)=>parseInt(g.value,10)-parseInt(d.value,10));for(let g=0;g{typeof o=="object"?Object.keys(o).forEach(a=>{o[a]&&s.push(e+a)}):typeof o=="string"&&s.push(e+o)}),s}function addClasses(){const i=this,{classNames:e,params:s,rtl:o,el:a,device:c}=i,h=prepareClasses(["initialized",s.direction,{"free-mode":i.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:o},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&s.grid.fill==="column"},{android:c.android},{ios:c.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);e.push(...h),a.classList.add(...e),i.emitContainerClasses()}function removeClasses(){const i=this,{el:e,classNames:s}=i;e.classList.remove(...s),i.emitContainerClasses()}var classes={addClasses,removeClasses};function checkOverflow(){const i=this,{isLocked:e,params:s}=i,{slidesOffsetBefore:o}=s;if(o){const a=i.slides.length-1,c=i.slidesGrid[a]+i.slidesSizesGrid[a]+o*2;i.isLocked=i.size>c}else i.isLocked=i.snapGrid.length===1;s.allowSlideNext===!0&&(i.allowSlideNext=!i.isLocked),s.allowSlidePrev===!0&&(i.allowSlidePrev=!i.isLocked),e&&e!==i.isLocked&&(i.isEnd=!1),e!==i.isLocked&&i.emit(i.isLocked?"lock":"unlock")}var checkOverflow$1={checkOverflow},defaults={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,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,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,loopedSlides:null,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",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(i,e){return function(o){o===void 0&&(o={});const a=Object.keys(o)[0],c=o[a];if(typeof c!="object"||c===null){extend$1(e,o);return}if(["navigation","pagination","scrollbar"].indexOf(a)>=0&&i[a]===!0&&(i[a]={auto:!0}),!(a in i&&"enabled"in c)){extend$1(e,o);return}i[a]===!0&&(i[a]={enabled:!0}),typeof i[a]=="object"&&!("enabled"in i[a])&&(i[a].enabled=!0),i[a]||(i[a]={enabled:!1}),extend$1(e,o)}}const prototypes={eventsEmitter,update,translate,transition,slide,loop,grabCursor,events:events$1,breakpoints,checkOverflow:checkOverflow$1,classes},extendedDefaults={};class Swiper{constructor(){let e,s;for(var o=arguments.length,a=new Array(o),c=0;c1){const _=[];return h.querySelectorAll(s.el).forEach(j=>{const $=extend$1({},s,{el:j});_.push(new Swiper($))}),_}const g=this;g.__swiper__=!0,g.support=getSupport(),g.device=getDevice({userAgent:s.userAgent}),g.browser=getBrowser(),g.eventsListeners={},g.eventsAnyListeners=[],g.modules=[...g.__modules__],s.modules&&Array.isArray(s.modules)&&g.modules.push(...s.modules);const d={};g.modules.forEach(_=>{_({params:s,swiper:g,extendParams:moduleExtendParams(s,d),on:g.on.bind(g),once:g.once.bind(g),off:g.off.bind(g),emit:g.emit.bind(g)})});const b=extend$1({},defaults,d);return g.params=extend$1({},b,extendedDefaults,s),g.originalParams=extend$1({},g.params),g.passedParams=extend$1({},s),g.params&&g.params.on&&Object.keys(g.params.on).forEach(_=>{g.on(_,g.params.on[_])}),g.params&&g.params.onAny&&g.onAny(g.params.onAny),Object.assign(g,{enabled:g.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return g.params.direction==="horizontal"},isVertical(){return g.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:g.params.allowSlideNext,allowSlidePrev:g.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:g.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:g.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),g.emit("_swiper"),g.params.init&&g.init(),g}getSlideIndex(e){const{slidesEl:s,params:o}=this,a=elementChildren(s,`.${o.slideClass}, swiper-slide`),c=elementIndex(a[0]);return elementIndex(e)-c}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(s=>s.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:s,params:o}=e;e.slides=elementChildren(s,`.${o.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,s){const o=this;e=Math.min(Math.max(e,0),1);const a=o.minTranslate(),h=(o.maxTranslate()-a)*e+a;o.translateTo(h,typeof s>"u"?0:s),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const s=e.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",s.join(" "))}getSlideClasses(e){const s=this;return s.destroyed?"":e.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(s.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const s=[];e.slides.forEach(o=>{const a=e.getSlideClasses(o);s.push({slideEl:o,classNames:a}),e.emit("_slideClass",o,a)}),e.emit("_slideClasses",s)}slidesPerViewDynamic(e,s){e===void 0&&(e="current"),s===void 0&&(s=!1);const o=this,{params:a,slides:c,slidesGrid:h,slidesSizesGrid:g,size:d,activeIndex:b}=o;let _=1;if(a.centeredSlides){let j=c[b]?c[b].swiperSlideSize:0,$;for(let _e=b+1;_ed&&($=!0));for(let _e=b-1;_e>=0;_e-=1)c[_e]&&!$&&(j+=c[_e].swiperSlideSize,_+=1,j>d&&($=!0))}else if(e==="current")for(let j=b+1;j=0;j-=1)h[b]-h[j]{h.complete&&processLazyPreloader(e,h)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const h=e.rtlTranslate?e.translate*-1:e.translate,g=Math.min(Math.max(h,e.maxTranslate()),e.minTranslate());e.setTranslate(g),e.updateActiveIndex(),e.updateSlidesClasses()}let c;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)a(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const h=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;c=e.slideTo(h.length-1,0,!1,!0)}else c=e.slideTo(e.activeIndex,0,!1,!0);c||a()}o.watchOverflow&&s!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,s){s===void 0&&(s=!0);const o=this,a=o.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${a}`),o.el.classList.add(`${o.params.containerModifierClass}${e}`),o.emitContainerClasses(),o.params.direction=e,o.slides.forEach(c=>{e==="vertical"?c.style.width="":c.style.height=""}),o.emit("changeDirection"),s&&o.update()),o}changeLanguageDirection(e){const s=this;s.rtl&&e==="rtl"||!s.rtl&&e==="ltr"||(s.rtl=e==="rtl",s.rtlTranslate=s.params.direction==="horizontal"&&s.rtl,s.rtl?(s.el.classList.add(`${s.params.containerModifierClass}rtl`),s.el.dir="rtl"):(s.el.classList.remove(`${s.params.containerModifierClass}rtl`),s.el.dir="ltr"),s.update())}mount(e){const s=this;if(s.mounted)return!0;let o=e||s.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=s,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(s.isElement=!0);const a=()=>`.${(s.params.wrapperClass||"").trim().split(" ").join(".")}`;let h=(()=>o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):elementChildren(o,a())[0])();return!h&&s.params.createElements&&(h=createElement("div",s.params.wrapperClass),o.append(h),elementChildren(o,`.${s.params.slideClass}`).forEach(g=>{h.append(g)})),Object.assign(s,{el:o,wrapperEl:h,slidesEl:s.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:h,hostEl:s.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||elementStyle(o,"direction")==="rtl",rtlTranslate:s.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||elementStyle(o,"direction")==="rtl"),wrongRTL:elementStyle(h,"display")==="-webkit-box"}),!0}init(e){const s=this;if(s.initialized||s.mount(e)===!1)return s;s.emit("beforeInit"),s.params.breakpoints&&s.setBreakpoint(),s.addClasses(),s.updateSize(),s.updateSlides(),s.params.watchOverflow&&s.checkOverflow(),s.params.grabCursor&&s.enabled&&s.setGrabCursor(),s.params.loop&&s.virtual&&s.params.virtual.enabled?s.slideTo(s.params.initialSlide+s.virtual.slidesBefore,0,s.params.runCallbacksOnInit,!1,!0):s.slideTo(s.params.initialSlide,0,s.params.runCallbacksOnInit,!1,!0),s.params.loop&&s.loopCreate(),s.attachEvents();const a=[...s.el.querySelectorAll('[loading="lazy"]')];return s.isElement&&a.push(...s.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(c=>{c.complete?processLazyPreloader(s,c):c.addEventListener("load",h=>{processLazyPreloader(s,h.target)})}),preload(s),s.initialized=!0,preload(s),s.emit("init"),s.emit("afterInit"),s}destroy(e,s){e===void 0&&(e=!0),s===void 0&&(s=!0);const o=this,{params:a,el:c,wrapperEl:h,slides:g}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),a.loop&&o.loopDestroy(),s&&(o.removeClasses(),c.removeAttribute("style"),h.removeAttribute("style"),g&&g.length&&g.forEach(d=>{d.classList.remove(a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),d.removeAttribute("style"),d.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(d=>{o.off(d)}),e!==!1&&(o.el.swiper=null,deleteProps(o)),o.destroyed=!0),null}static extendDefaults(e){extend$1(extendedDefaults,e)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults}static installModule(e){Swiper.prototype.__modules__||(Swiper.prototype.__modules__=[]);const s=Swiper.prototype.__modules__;typeof e=="function"&&s.indexOf(e)<0&&s.push(e)}static use(e){return Array.isArray(e)?(e.forEach(s=>Swiper.installModule(s)),Swiper):(Swiper.installModule(e),Swiper)}}Object.keys(prototypes).forEach(i=>{Object.keys(prototypes[i]).forEach(e=>{Swiper.prototype[e]=prototypes[i][e]})});Swiper.use([Resize,Observer]);const modules=[Virtual,Keyboard,Mousewheel,Navigation,Pagination,Scrollbar,Parallax,Zoom,Controller,A11y,History,HashNavigation,Autoplay,Thumb,freeMode,Grid,Manipulation,EffectFade,EffectCube,EffectFlip,EffectCoverflow,EffectCreative,EffectCards];Swiper.use(modules);const paramsList=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_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","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","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 isObject(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function extend(i,e){const s=["__proto__","constructor","prototype"];Object.keys(e).filter(o=>s.indexOf(o)<0).forEach(o=>{typeof i[o]>"u"?i[o]=e[o]:isObject(e[o])&&isObject(i[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?i[o]=e[o]:extend(i[o],e[o]):i[o]=e[o]})}function needsNavigation(i){return i===void 0&&(i={}),i.navigation&&typeof i.navigation.nextEl>"u"&&typeof i.navigation.prevEl>"u"}function needsPagination(i){return i===void 0&&(i={}),i.pagination&&typeof i.pagination.el>"u"}function needsScrollbar(i){return i===void 0&&(i={}),i.scrollbar&&typeof i.scrollbar.el>"u"}function attrToProp(i){return i===void 0&&(i=""),i.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}function updateSwiper(i){let{swiper:e,slides:s,passedParams:o,changedParams:a,nextEl:c,prevEl:h,scrollbarEl:g,paginationEl:d}=i;const b=a.filter(gt=>gt!=="children"&>!=="direction"&>!=="wrapperClass"),{params:_,pagination:j,navigation:$,scrollbar:_e,virtual:et,thumbs:tt}=e;let st,rt,nt,it,ot,ut,ht,pt;a.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&_.thumbs&&!_.thumbs.swiper&&(st=!0),a.includes("controller")&&o.controller&&o.controller.control&&_.controller&&!_.controller.control&&(rt=!0),a.includes("pagination")&&o.pagination&&(o.pagination.el||d)&&(_.pagination||_.pagination===!1)&&j&&!j.el&&(nt=!0),a.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||g)&&(_.scrollbar||_.scrollbar===!1)&&_e&&!_e.el&&(it=!0),a.includes("navigation")&&o.navigation&&(o.navigation.prevEl||h)&&(o.navigation.nextEl||c)&&(_.navigation||_.navigation===!1)&&$&&!$.prevEl&&!$.nextEl&&(ot=!0);const yt=gt=>{e[gt]&&(e[gt].destroy(),gt==="navigation"?(e.isElement&&(e[gt].prevEl.remove(),e[gt].nextEl.remove()),_[gt].prevEl=void 0,_[gt].nextEl=void 0,e[gt].prevEl=void 0,e[gt].nextEl=void 0):(e.isElement&&e[gt].el.remove(),_[gt].el=void 0,e[gt].el=void 0))};a.includes("loop")&&e.isElement&&(_.loop&&!o.loop?ut=!0:!_.loop&&o.loop?ht=!0:pt=!0),b.forEach(gt=>{if(isObject(_[gt])&&isObject(o[gt]))extend(_[gt],o[gt]),(gt==="navigation"||gt==="pagination"||gt==="scrollbar")&&"enabled"in o[gt]&&!o[gt].enabled&&yt(gt);else{const xt=o[gt];(xt===!0||xt===!1)&&(gt==="navigation"||gt==="pagination"||gt==="scrollbar")?xt===!1&&yt(gt):_[gt]=o[gt]}}),b.includes("controller")&&!rt&&e.controller&&e.controller.control&&_.controller&&_.controller.control&&(e.controller.control=_.controller.control),a.includes("children")&&s&&et&&_.virtual.enabled&&(et.slides=s,et.update(!0)),a.includes("children")&&s&&_.loop&&(pt=!0),st&&tt.init()&&tt.update(!0),rt&&(e.controller.control=_.controller.control),nt&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-pagination"),d.part.add("pagination"),e.el.appendChild(d)),d&&(_.pagination.el=d),j.init(),j.render(),j.update()),it&&(e.isElement&&(!g||typeof g=="string")&&(g=document.createElement("div"),g.classList.add("swiper-scrollbar"),g.part.add("scrollbar"),e.el.appendChild(g)),g&&(_.scrollbar.el=g),_e.init(),_e.updateSize(),_e.setTranslate()),ot&&(e.isElement&&((!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-button-next"),c.innerHTML=e.hostEl.constructor.nextButtonSvg,c.part.add("button-next"),e.el.appendChild(c)),(!h||typeof h=="string")&&(h=document.createElement("div"),h.classList.add("swiper-button-prev"),h.innerHTML=e.hostEl.constructor.prevButtonSvg,h.part.add("button-prev"),e.el.appendChild(h))),c&&(_.navigation.nextEl=c),h&&(_.navigation.prevEl=h),$.init(),$.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),a.includes("direction")&&e.changeDirection(o.direction,!1),(ut||pt)&&e.loopDestroy(),(ht||pt)&&e.loopCreate(),e.update()}const formatValue=i=>{if(parseFloat(i)===Number(i))return Number(i);if(i==="true"||i==="")return!0;if(i==="false")return!1;if(i==="null")return null;if(i!=="undefined"){if(typeof i=="string"&&i.includes("{")&&i.includes("}")&&i.includes('"')){let e;try{e=JSON.parse(i)}catch{e=i}return e}return i}},modulesParamsList=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function getParams(i,e,s){const o={},a={};extend(o,defaults);const c=[...paramsList,"on"],h=c.map(d=>d.replace(/_/,""));c.forEach(d=>{d=d.replace("_",""),typeof i[d]<"u"&&(a[d]=i[d])});const g=[...i.attributes];return typeof e=="string"&&typeof s<"u"&&g.push({name:e,value:s}),g.forEach(d=>{const b=modulesParamsList.filter(_=>d.name.indexOf(`${_}-`)===0)[0];if(b){const _=attrToProp(b),j=attrToProp(d.name.split(`${b}-`)[1]);typeof a[_]>"u"&&(a[_]={}),a[_]===!0&&(a[_]={enabled:!0}),a[_][j]=formatValue(d.value)}else{const _=attrToProp(d.name);if(!h.includes(_))return;const j=formatValue(d.value);a[_]&&modulesParamsList.includes(d.name)?(a[_].constructor!==Object&&(a[_]={}),a[_].enabled=j):a[_]=j}}),extend(o,a),o.navigation?o.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...o.navigation!==!0?o.navigation:{}}:o.navigation===!1&&delete o.navigation,o.scrollbar?o.scrollbar={el:".swiper-scrollbar",...o.scrollbar!==!0?o.scrollbar:{}}:o.scrollbar===!1&&delete o.scrollbar,o.pagination?o.pagination={el:".swiper-pagination",...o.pagination!==!0?o.pagination:{}}:o.pagination===!1&&delete o.pagination,{params:o,passedParams:a}}const SwiperCSS=":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;overflow:clip;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",SwiperSlideCSS="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}";class DummyHTMLElement{}const ClassToExtend=typeof window>"u"||typeof HTMLElement>"u"?DummyHTMLElement:HTMLElement,arrowSvg=` + `;if(b.slideShadows){let lt=et.querySelector(".swiper-slide-shadow");lt||(lt=createShadow("cards",et)),lt&&(lt.style.opacity=Math.min(Math.max((Math.abs(st)-.5)/.5,0),1))}et.style.zIndex=-Math.abs(Math.round(tt))+h.length;const ft=effectTarget(b,et);ft.style.transform=vt}},setTransition:h=>{const g=e.slides.map(d=>getSlideTransformEl(d));g.forEach(d=>{d.style.transitionDuration=`${h}ms`,d.querySelectorAll(".swiper-slide-shadow").forEach(b=>{b.style.transitionDuration=`${h}ms`})}),effectVirtualTransitionEnd({swiper:e,duration:h,transformElements:g})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}const heading="_heading_1jxz1_1",testimonial="_testimonial_1jxz1_5",styles$1={heading,testimonial};function Testimonial({testimonial:i}){return jsxRuntimeExports.jsx("swiper-slide",{children:jsxRuntimeExports.jsxs("article",{className:styles$1.testimonial,children:[jsxRuntimeExports.jsxs("div",{className:styles$1.heading,children:[jsxRuntimeExports.jsx("img",{src:i.img,alt:i.name}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("h3",{children:i.name}),jsxRuntimeExports.jsx("h4",{children:i.role})]})]}),jsxRuntimeExports.jsx("p",{children:i.comment})]})})}let support;function calcSupport(){const i=getWindow(),e=getDocument();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in i||i.DocumentTouch&&e instanceof i.DocumentTouch)}}function getSupport(){return support||(support=calcSupport()),support}let deviceCached;function calcDevice(i){let{userAgent:e}=i===void 0?{}:i;const s=getSupport(),o=getWindow(),a=o.navigator.platform,c=e||o.navigator.userAgent,h={ios:!1,android:!1},g=o.screen.width,d=o.screen.height,b=c.match(/(Android);?[\s\/]+([\d.]+)?/);let _=c.match(/(iPad).*OS\s([\d_]+)/);const j=c.match(/(iPod)(.*OS\s([\d_]+))?/),$=!_&&c.match(/(iPhone\sOS|iOS)\s([\d_]+)/),_e=a==="Win32";let et=a==="MacIntel";const tt=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!_&&et&&s.touch&&tt.indexOf(`${g}x${d}`)>=0&&(_=c.match(/(Version)\/([\d.]+)/),_||(_=[0,1,"13_0_0"]),et=!1),b&&!_e&&(h.os="android",h.android=!0),(_||$||j)&&(h.os="ios",h.ios=!0),h}function getDevice(i){return i===void 0&&(i={}),deviceCached||(deviceCached=calcDevice(i)),deviceCached}let browser;function calcBrowser(){const i=getWindow();let e=!1;function s(){const o=i.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(s()){const o=String(i.navigator.userAgent);if(o.includes("Version/")){const[a,c]=o.split("Version/")[1].split(" ")[0].split(".").map(h=>Number(h));e=a<16||a===16&&c<2}}return{isSafari:e||s(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent)}}function getBrowser(){return browser||(browser=calcBrowser()),browser}function Resize(i){let{swiper:e,on:s,emit:o}=i;const a=getWindow();let c=null,h=null;const g=()=>{!e||e.destroyed||!e.initialized||(o("beforeResize"),o("resize"))},d=()=>{!e||e.destroyed||!e.initialized||(c=new ResizeObserver(j=>{h=a.requestAnimationFrame(()=>{const{width:$,height:_e}=e;let et=$,tt=_e;j.forEach(st=>{let{contentBoxSize:nt,contentRect:rt,target:it}=st;it&&it!==e.el||(et=rt?rt.width:(nt[0]||nt).inlineSize,tt=rt?rt.height:(nt[0]||nt).blockSize)}),(et!==$||tt!==_e)&&g()})}),c.observe(e.el))},b=()=>{h&&a.cancelAnimationFrame(h),c&&c.unobserve&&e.el&&(c.unobserve(e.el),c=null)},_=()=>{!e||e.destroyed||!e.initialized||o("orientationchange")};s("init",()=>{if(e.params.resizeObserver&&typeof a.ResizeObserver<"u"){d();return}a.addEventListener("resize",g),a.addEventListener("orientationchange",_)}),s("destroy",()=>{b(),a.removeEventListener("resize",g),a.removeEventListener("orientationchange",_)})}function Observer(i){let{swiper:e,extendParams:s,on:o,emit:a}=i;const c=[],h=getWindow(),g=function(_,j){j===void 0&&(j={});const $=h.MutationObserver||h.WebkitMutationObserver,_e=new $(et=>{if(e.__preventObserver__)return;if(et.length===1){a("observerUpdate",et[0]);return}const tt=function(){a("observerUpdate",et[0])};h.requestAnimationFrame?h.requestAnimationFrame(tt):h.setTimeout(tt,0)});_e.observe(_,{attributes:typeof j.attributes>"u"?!0:j.attributes,childList:typeof j.childList>"u"?!0:j.childList,characterData:typeof j.characterData>"u"?!0:j.characterData}),c.push(_e)},d=()=>{if(e.params.observer){if(e.params.observeParents){const _=elementParents(e.hostEl);for(let j=0;j<_.length;j+=1)g(_[j])}g(e.hostEl,{childList:e.params.observeSlideChildren}),g(e.wrapperEl,{attributes:!1})}},b=()=>{c.forEach(_=>{_.disconnect()}),c.splice(0,c.length)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),o("init",d),o("destroy",b)}var eventsEmitter={on(i,e,s){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;const a=s?"unshift":"push";return i.split(" ").forEach(c=>{o.eventsListeners[c]||(o.eventsListeners[c]=[]),o.eventsListeners[c][a](e)}),o},once(i,e,s){const o=this;if(!o.eventsListeners||o.destroyed||typeof e!="function")return o;function a(){o.off(i,a),a.__emitterProxy&&delete a.__emitterProxy;for(var c=arguments.length,h=new Array(c),g=0;g=0&&e.eventsAnyListeners.splice(s,1),e},off(i,e){const s=this;return!s.eventsListeners||s.destroyed||!s.eventsListeners||i.split(" ").forEach(o=>{typeof e>"u"?s.eventsListeners[o]=[]:s.eventsListeners[o]&&s.eventsListeners[o].forEach((a,c)=>{(a===e||a.__emitterProxy&&a.__emitterProxy===e)&&s.eventsListeners[o].splice(c,1)})}),s},emit(){const i=this;if(!i.eventsListeners||i.destroyed||!i.eventsListeners)return i;let e,s,o;for(var a=arguments.length,c=new Array(a),h=0;h{i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach(b=>{b.apply(o,[d,...s])}),i.eventsListeners&&i.eventsListeners[d]&&i.eventsListeners[d].forEach(b=>{b.apply(o,s)})}),i}};function updateSize(){const i=this;let e,s;const o=i.el;typeof i.params.width<"u"&&i.params.width!==null?e=i.params.width:e=o.clientWidth,typeof i.params.height<"u"&&i.params.height!==null?s=i.params.height:s=o.clientHeight,!(e===0&&i.isHorizontal()||s===0&&i.isVertical())&&(e=e-parseInt(elementStyle(o,"padding-left")||0,10)-parseInt(elementStyle(o,"padding-right")||0,10),s=s-parseInt(elementStyle(o,"padding-top")||0,10)-parseInt(elementStyle(o,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(s)&&(s=0),Object.assign(i,{width:e,height:s,size:i.isHorizontal()?e:s}))}function updateSlides(){const i=this;function e(wt){return i.isHorizontal()?wt:{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"}[wt]}function s(wt,vt){return parseFloat(wt.getPropertyValue(e(vt))||0)}const o=i.params,{wrapperEl:a,slidesEl:c,size:h,rtlTranslate:g,wrongRTL:d}=i,b=i.virtual&&o.virtual.enabled,_=b?i.virtual.slides.length:i.slides.length,j=elementChildren(c,`.${i.params.slideClass}, swiper-slide`),$=b?i.virtual.slides.length:j.length;let _e=[];const et=[],tt=[];let st=o.slidesOffsetBefore;typeof st=="function"&&(st=o.slidesOffsetBefore.call(i));let nt=o.slidesOffsetAfter;typeof nt=="function"&&(nt=o.slidesOffsetAfter.call(i));const rt=i.snapGrid.length,it=i.slidesGrid.length;let ot=o.spaceBetween,ut=-st,ht=0,pt=0;if(typeof h>"u")return;typeof ot=="string"&&ot.indexOf("%")>=0?ot=parseFloat(ot.replace("%",""))/100*h:typeof ot=="string"&&(ot=parseFloat(ot)),i.virtualSize=-ot,j.forEach(wt=>{g?wt.style.marginLeft="":wt.style.marginRight="",wt.style.marginBottom="",wt.style.marginTop=""}),o.centeredSlides&&o.cssMode&&(setCSSProperty(a,"--swiper-centered-offset-before",""),setCSSProperty(a,"--swiper-centered-offset-after",""));const yt=o.grid&&o.grid.rows>1&&i.grid;yt&&i.grid.initSlides($);let gt;const xt=o.slidesPerView==="auto"&&o.breakpoints&&Object.keys(o.breakpoints).filter(wt=>typeof o.breakpoints[wt].slidesPerView<"u").length>0;for(let wt=0;wt<$;wt+=1){gt=0;let vt;if(j[wt]&&(vt=j[wt]),yt&&i.grid.updateSlide(wt,vt,$,e),!(j[wt]&&elementStyle(vt,"display")==="none")){if(o.slidesPerView==="auto"){xt&&(j[wt].style[e("width")]="");const ft=getComputedStyle(vt),lt=vt.style.transform,dt=vt.style.webkitTransform;if(lt&&(vt.style.transform="none"),dt&&(vt.style.webkitTransform="none"),o.roundLengths)gt=i.isHorizontal()?elementOuterSize(vt,"width",!0):elementOuterSize(vt,"height",!0);else{const bt=s(ft,"width"),at=s(ft,"padding-left"),ct=s(ft,"padding-right"),mt=s(ft,"margin-left"),Et=s(ft,"margin-right"),jt=ft.getPropertyValue("box-sizing");if(jt&&jt==="border-box")gt=bt+mt+Et;else{const{clientWidth:kt,offsetWidth:Ct}=vt;gt=bt+at+ct+mt+Et+(Ct-kt)}}lt&&(vt.style.transform=lt),dt&&(vt.style.webkitTransform=dt),o.roundLengths&&(gt=Math.floor(gt))}else gt=(h-(o.slidesPerView-1)*ot)/o.slidesPerView,o.roundLengths&&(gt=Math.floor(gt)),j[wt]&&(j[wt].style[e("width")]=`${gt}px`);j[wt]&&(j[wt].swiperSlideSize=gt),tt.push(gt),o.centeredSlides?(ut=ut+gt/2+ht/2+ot,ht===0&&wt!==0&&(ut=ut-h/2-ot),wt===0&&(ut=ut-h/2-ot),Math.abs(ut)<1/1e3&&(ut=0),o.roundLengths&&(ut=Math.floor(ut)),pt%o.slidesPerGroup===0&&_e.push(ut),et.push(ut)):(o.roundLengths&&(ut=Math.floor(ut)),(pt-Math.min(i.params.slidesPerGroupSkip,pt))%i.params.slidesPerGroup===0&&_e.push(ut),et.push(ut),ut=ut+gt+ot),i.virtualSize+=gt+ot,ht=gt,pt+=1}}if(i.virtualSize=Math.max(i.virtualSize,h)+nt,g&&d&&(o.effect==="slide"||o.effect==="coverflow")&&(a.style.width=`${i.virtualSize+ot}px`),o.setWrapperSize&&(a.style[e("width")]=`${i.virtualSize+ot}px`),yt&&i.grid.updateWrapperSize(gt,_e,e),!o.centeredSlides){const wt=[];for(let vt=0;vt<_e.length;vt+=1){let ft=_e[vt];o.roundLengths&&(ft=Math.floor(ft)),_e[vt]<=i.virtualSize-h&&wt.push(ft)}_e=wt,Math.floor(i.virtualSize-h)-Math.floor(_e[_e.length-1])>1&&_e.push(i.virtualSize-h)}if(b&&o.loop){const wt=tt[0]+ot;if(o.slidesPerGroup>1){const vt=Math.ceil((i.virtual.slidesBefore+i.virtual.slidesAfter)/o.slidesPerGroup),ft=wt*o.slidesPerGroup;for(let lt=0;lt!o.cssMode||o.loop?!0:ft!==j.length-1).forEach(vt=>{vt.style[wt]=`${ot}px`})}if(o.centeredSlides&&o.centeredSlidesBounds){let wt=0;tt.forEach(ft=>{wt+=ft+(ot||0)}),wt-=ot;const vt=wt-h;_e=_e.map(ft=>ft<=0?-st:ft>vt?vt+nt:ft)}if(o.centerInsufficientSlides){let wt=0;if(tt.forEach(vt=>{wt+=vt+(ot||0)}),wt-=ot,wt{_e[lt]=ft-vt}),et.forEach((ft,lt)=>{et[lt]=ft+vt})}}if(Object.assign(i,{slides:j,snapGrid:_e,slidesGrid:et,slidesSizesGrid:tt}),o.centeredSlides&&o.cssMode&&!o.centeredSlidesBounds){setCSSProperty(a,"--swiper-centered-offset-before",`${-_e[0]}px`),setCSSProperty(a,"--swiper-centered-offset-after",`${i.size/2-tt[tt.length-1]/2}px`);const wt=-i.snapGrid[0],vt=-i.slidesGrid[0];i.snapGrid=i.snapGrid.map(ft=>ft+wt),i.slidesGrid=i.slidesGrid.map(ft=>ft+vt)}if($!==_&&i.emit("slidesLengthChange"),_e.length!==rt&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),et.length!==it&&i.emit("slidesGridLengthChange"),o.watchSlidesProgress&&i.updateSlidesOffset(),!b&&!o.cssMode&&(o.effect==="slide"||o.effect==="fade")){const wt=`${o.containerModifierClass}backface-hidden`,vt=i.el.classList.contains(wt);$<=o.maxBackfaceHiddenSlides?vt||i.el.classList.add(wt):vt&&i.el.classList.remove(wt)}}function updateAutoHeight(i){const e=this,s=[],o=e.virtual&&e.params.virtual.enabled;let a=0,c;typeof i=="number"?e.setTransition(i):i===!0&&e.setTransition(e.params.speed);const h=g=>o?e.slides[e.getSlideIndexByData(g)]:e.slides[g];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(g=>{s.push(g)});else for(c=0;ce.slides.length&&!o)break;s.push(h(g))}else s.push(h(e.activeIndex));for(c=0;ca?g:a}(a||a===0)&&(e.wrapperEl.style.height=`${a}px`)}function updateSlidesOffset(){const i=this,e=i.slides,s=i.isElement?i.isHorizontal()?i.wrapperEl.offsetLeft:i.wrapperEl.offsetTop:0;for(let o=0;o"u"&&e.updateSlidesOffset();let h=-i;a&&(h=i),o.forEach(d=>{d.classList.remove(s.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let g=s.spaceBetween;typeof g=="string"&&g.indexOf("%")>=0?g=parseFloat(g.replace("%",""))/100*e.size:typeof g=="string"&&(g=parseFloat(g));for(let d=0;d=0&&_e1&&et<=e.size||_e<=0&&et>=e.size)&&(e.visibleSlides.push(b),e.visibleSlidesIndexes.push(d),o[d].classList.add(s.slideVisibleClass)),b.progress=a?-j:j,b.originalProgress=a?-$:$}}function updateProgress(i){const e=this;if(typeof i>"u"){const _=e.rtlTranslate?-1:1;i=e&&e.translate&&e.translate*_||0}const s=e.params,o=e.maxTranslate()-e.minTranslate();let{progress:a,isBeginning:c,isEnd:h,progressLoop:g}=e;const d=c,b=h;if(o===0)a=0,c=!0,h=!0;else{a=(i-e.minTranslate())/o;const _=Math.abs(i-e.minTranslate())<1,j=Math.abs(i-e.maxTranslate())<1;c=_||a<=0,h=j||a>=1,_&&(a=0),j&&(a=1)}if(s.loop){const _=e.getSlideIndexByData(0),j=e.getSlideIndexByData(e.slides.length-1),$=e.slidesGrid[_],_e=e.slidesGrid[j],et=e.slidesGrid[e.slidesGrid.length-1],tt=Math.abs(i);tt>=$?g=(tt-$)/et:g=(tt+et-_e)/et,g>1&&(g-=1)}Object.assign(e,{progress:a,progressLoop:g,isBeginning:c,isEnd:h}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&e.updateSlidesProgress(i),c&&!d&&e.emit("reachBeginning toEdge"),h&&!b&&e.emit("reachEnd toEdge"),(d&&!c||b&&!h)&&e.emit("fromEdge"),e.emit("progress",a)}function updateSlidesClasses(){const i=this,{slides:e,params:s,slidesEl:o,activeIndex:a}=i,c=i.virtual&&s.virtual.enabled,h=d=>elementChildren(o,`.${s.slideClass}${d}, swiper-slide${d}`)[0];e.forEach(d=>{d.classList.remove(s.slideActiveClass,s.slideNextClass,s.slidePrevClass)});let g;if(c)if(s.loop){let d=a-i.virtual.slidesBefore;d<0&&(d=i.virtual.slides.length+d),d>=i.virtual.slides.length&&(d-=i.virtual.slides.length),g=h(`[data-swiper-slide-index="${d}"]`)}else g=h(`[data-swiper-slide-index="${a}"]`);else g=e[a];if(g){g.classList.add(s.slideActiveClass);let d=elementNextAll(g,`.${s.slideClass}, swiper-slide`)[0];s.loop&&!d&&(d=e[0]),d&&d.classList.add(s.slideNextClass);let b=elementPrevAll(g,`.${s.slideClass}, swiper-slide`)[0];s.loop&&!b===0&&(b=e[e.length-1]),b&&b.classList.add(s.slidePrevClass)}i.emitSlidesClasses()}const processLazyPreloader=(i,e)=>{if(!i||i.destroyed||!i.params)return;const s=()=>i.isElement?"swiper-slide":`.${i.params.slideClass}`,o=e.closest(s());if(o){let a=o.querySelector(`.${i.params.lazyPreloaderClass}`);!a&&i.isElement&&(a=o.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`)),a&&a.remove()}},unlazy=(i,e)=>{if(!i.slides[e])return;const s=i.slides[e].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},preload=i=>{if(!i||i.destroyed||!i.params)return;let e=i.params.lazyPreloadPrevNext;const s=i.slides.length;if(!s||!e||e<0)return;e=Math.min(e,s);const o=i.params.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(i.params.slidesPerView),a=i.activeIndex;if(i.params.grid&&i.params.grid.rows>1){const h=a,g=[h-e];g.push(...Array.from({length:e}).map((d,b)=>h+o+b)),i.slides.forEach((d,b)=>{g.includes(d.column)&&unlazy(i,b)});return}const c=a+o-1;if(i.params.rewind||i.params.loop)for(let h=a-e;h<=c+e;h+=1){const g=(h%s+s)%s;(gc)&&unlazy(i,g)}else for(let h=Math.max(a-e,0);h<=Math.min(c+e,s-1);h+=1)h!==a&&(h>c||h=e[c]&&o=e[c]&&o=e[c]&&(a=c);return s.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function updateActiveIndex(i){const e=this,s=e.rtlTranslate?e.translate:-e.translate,{snapGrid:o,params:a,activeIndex:c,realIndex:h,snapIndex:g}=e;let d=i,b;const _=$=>{let _e=$-e.virtual.slidesBefore;return _e<0&&(_e=e.virtual.slides.length+_e),_e>=e.virtual.slides.length&&(_e-=e.virtual.slides.length),_e};if(typeof d>"u"&&(d=getActiveIndexByTranslate(e)),o.indexOf(s)>=0)b=o.indexOf(s);else{const $=Math.min(a.slidesPerGroupSkip,d);b=$+Math.floor((d-$)/a.slidesPerGroup)}if(b>=o.length&&(b=o.length-1),d===c){b!==g&&(e.snapIndex=b,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=_(d));return}let j;e.virtual&&a.virtual.enabled&&a.loop?j=_(d):e.slides[d]?j=parseInt(e.slides[d].getAttribute("data-swiper-slide-index")||d,10):j=d,Object.assign(e,{previousSnapIndex:g,snapIndex:b,previousRealIndex:h,realIndex:j,previousIndex:c,activeIndex:d}),e.initialized&&preload(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),h!==j&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function updateClickedSlide(i){const e=this,s=e.params,o=i.closest(`.${s.slideClass}, swiper-slide`);let a=!1,c;if(o){for(let h=0;hd?_=d:o&&ih?g="next":c=d.length&&(st=d.length-1);const nt=-d[st];if(g.normalizeSlideIndex)for(let it=0;it=ut&&ot=ut&&ot=ut&&(h=it)}if(c.initialized&&h!==j&&(!c.allowSlideNext&&($?nt>c.translate&&nt>c.minTranslate():ntc.translate&&nt>c.maxTranslate()&&(j||0)!==h))return!1;h!==(_||0)&&s&&c.emit("beforeSlideChangeStart"),c.updateProgress(nt);let rt;if(h>j?rt="next":h0?(c._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{_e[it?"scrollLeft":"scrollTop"]=ot})):_e[it?"scrollLeft":"scrollTop"]=ot,ut&&requestAnimationFrame(()=>{c.wrapperEl.style.scrollSnapType="",c._immediateVirtual=!1})}else{if(!c.support.smoothScroll)return animateCSSModeScroll({swiper:c,targetPosition:ot,side:it?"left":"top"}),!0;_e.scrollTo({[it?"left":"top"]:ot,behavior:"smooth"})}return!0}return c.setTransition(e),c.setTranslate(nt),c.updateActiveIndex(h),c.updateSlidesClasses(),c.emit("beforeTransitionStart",e,o),c.transitionStart(s,rt),e===0?c.transitionEnd(s,rt):c.animating||(c.animating=!0,c.onSlideToWrapperTransitionEnd||(c.onSlideToWrapperTransitionEnd=function(ot){!c||c.destroyed||ot.target===this&&(c.wrapperEl.removeEventListener("transitionend",c.onSlideToWrapperTransitionEnd),c.onSlideToWrapperTransitionEnd=null,delete c.onSlideToWrapperTransitionEnd,c.transitionEnd(s,rt))}),c.wrapperEl.addEventListener("transitionend",c.onSlideToWrapperTransitionEnd)),!0}function slideToLoop(i,e,s,o){i===void 0&&(i=0),e===void 0&&(e=this.params.speed),s===void 0&&(s=!0),typeof i=="string"&&(i=parseInt(i,10));const a=this;let c=i;return a.params.loop&&(a.virtual&&a.params.virtual.enabled?c=c+a.virtual.slidesBefore:c=a.getSlideIndexByData(c)),a.slideTo(c,e,s,o)}function slideNext(i,e,s){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0);const o=this,{enabled:a,params:c,animating:h}=o;if(!a)return o;let g=c.slidesPerGroup;c.slidesPerView==="auto"&&c.slidesPerGroup===1&&c.slidesPerGroupAuto&&(g=Math.max(o.slidesPerViewDynamic("current",!0),1));const d=o.activeIndex$(nt));let tt=c[et.indexOf(_e)-1];if(typeof tt>"u"&&a.cssMode){let nt;c.forEach((rt,it)=>{_e>=rt&&(nt=it)}),typeof nt<"u"&&(tt=c[nt>0?nt-1:nt])}let st=0;if(typeof tt<"u"&&(st=h.indexOf(tt),st<0&&(st=o.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(st=st-o.slidesPerViewDynamic("previous",!0)+1,st=Math.max(st,0))),a.rewind&&o.isBeginning){const nt=o.params.virtual&&o.params.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1;return o.slideTo(nt,i,e,s)}return o.slideTo(st,i,e,s)}function slideReset(i,e,s){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0);const o=this;return o.slideTo(o.activeIndex,i,e,s)}function slideToClosest(i,e,s,o){i===void 0&&(i=this.params.speed),e===void 0&&(e=!0),o===void 0&&(o=.5);const a=this;let c=a.activeIndex;const h=Math.min(a.params.slidesPerGroupSkip,c),g=h+Math.floor((c-h)/a.params.slidesPerGroup),d=a.rtlTranslate?a.translate:-a.translate;if(d>=a.snapGrid[g]){const b=a.snapGrid[g],_=a.snapGrid[g+1];d-b>(_-b)*o&&(c+=a.params.slidesPerGroup)}else{const b=a.snapGrid[g-1],_=a.snapGrid[g];d-b<=(_-b)*o&&(c-=a.params.slidesPerGroup)}return c=Math.max(c,0),c=Math.min(c,a.slidesGrid.length-1),a.slideTo(c,i,e,s)}function slideToClickedSlide(){const i=this,{params:e,slidesEl:s}=i,o=e.slidesPerView==="auto"?i.slidesPerViewDynamic():e.slidesPerView;let a=i.clickedIndex,c;const h=i.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(i.animating)return;c=parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?ai.slides.length-i.loopedSlides+o/2?(i.loopFix(),a=i.getSlideIndex(elementChildren(s,`${h}[data-swiper-slide-index="${c}"]`)[0]),nextTick(()=>{i.slideTo(a)})):i.slideTo(a):a>i.slides.length-o?(i.loopFix(),a=i.getSlideIndex(elementChildren(s,`${h}[data-swiper-slide-index="${c}"]`)[0]),nextTick(()=>{i.slideTo(a)})):i.slideTo(a)}else i.slideTo(a)}var slide={slideTo,slideToLoop,slideNext,slidePrev,slideReset,slideToClosest,slideToClickedSlide};function loopCreate(i){const e=this,{params:s,slidesEl:o}=e;if(!s.loop||e.virtual&&e.params.virtual.enabled)return;elementChildren(o,`.${s.slideClass}, swiper-slide`).forEach((c,h)=>{c.setAttribute("data-swiper-slide-index",h)}),e.loopFix({slideRealIndex:i,direction:s.centeredSlides?void 0:"next"})}function loopFix(i){let{slideRealIndex:e,slideTo:s=!0,direction:o,setTranslate:a,activeSlideIndex:c,byController:h,byMousewheel:g}=i===void 0?{}:i;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:b,allowSlidePrev:_,allowSlideNext:j,slidesEl:$,params:_e}=d;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&_e.virtual.enabled){s&&(!_e.centeredSlides&&d.snapIndex===0?d.slideTo(d.virtual.slides.length,0,!1,!0):_e.centeredSlides&&d.snapIndex<_e.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0)),d.allowSlidePrev=_,d.allowSlideNext=j,d.emit("loopFix");return}const et=_e.slidesPerView==="auto"?d.slidesPerViewDynamic():Math.ceil(parseFloat(_e.slidesPerView,10));let tt=_e.loopedSlides||et;tt%_e.slidesPerGroup!==0&&(tt+=_e.slidesPerGroup-tt%_e.slidesPerGroup),d.loopedSlides=tt;const st=[],nt=[];let rt=d.activeIndex;typeof c>"u"?c=d.getSlideIndex(d.slides.filter(pt=>pt.classList.contains(_e.slideActiveClass))[0]):rt=c;const it=o==="next"||!o,ot=o==="prev"||!o;let ut=0,ht=0;if(cd.slides.length-tt*2){ht=Math.max(c-(d.slides.length-tt*2),_e.slidesPerGroup);for(let pt=0;pt{d.slides[pt].swiperLoopMoveDOM=!0,$.prepend(d.slides[pt]),d.slides[pt].swiperLoopMoveDOM=!1}),it&&nt.forEach(pt=>{d.slides[pt].swiperLoopMoveDOM=!0,$.append(d.slides[pt]),d.slides[pt].swiperLoopMoveDOM=!1}),d.recalcSlides(),_e.slidesPerView==="auto"&&d.updateSlides(),_e.watchSlidesProgress&&d.updateSlidesOffset(),s){if(st.length>0&&ot)if(typeof e>"u"){const pt=d.slidesGrid[rt],gt=d.slidesGrid[rt+ut]-pt;g?d.setTranslate(d.translate-gt):(d.slideTo(rt+ut,0,!1,!0),a&&(d.touches[d.isHorizontal()?"startX":"startY"]+=gt,d.touchEventsData.currentTranslate=d.translate))}else a&&(d.slideToLoop(e,0,!1,!0),d.touchEventsData.currentTranslate=d.translate);else if(nt.length>0&&it)if(typeof e>"u"){const pt=d.slidesGrid[rt],gt=d.slidesGrid[rt-ht]-pt;g?d.setTranslate(d.translate-gt):(d.slideTo(rt-ht,0,!1,!0),a&&(d.touches[d.isHorizontal()?"startX":"startY"]+=gt,d.touchEventsData.currentTranslate=d.translate))}else d.slideToLoop(e,0,!1,!0)}if(d.allowSlidePrev=_,d.allowSlideNext=j,d.controller&&d.controller.control&&!h){const pt={slideRealIndex:e,direction:o,setTranslate:a,activeSlideIndex:c,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(yt=>{!yt.destroyed&&yt.params.loop&&yt.loopFix({...pt,slideTo:yt.params.slidesPerView===_e.slidesPerView?s:!1})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...pt,slideTo:d.controller.control.params.slidesPerView===_e.slidesPerView?s:!1})}d.emit("loopFix")}function loopDestroy(){const i=this,{params:e,slidesEl:s}=i;if(!e.loop||i.virtual&&i.params.virtual.enabled)return;i.recalcSlides();const o=[];i.slides.forEach(a=>{const c=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;o[c]=a}),i.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),o.forEach(a=>{s.append(a)}),i.recalcSlides(),i.slideTo(i.realIndex,0)}var loop={loopCreate,loopFix,loopDestroy};function setGrabCursor(i){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const s=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=i?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function unsetGrabCursor(){const i=this;i.params.watchOverflow&&i.isLocked||i.params.cssMode||(i.isElement&&(i.__preventObserver__=!0),i[i.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",i.isElement&&requestAnimationFrame(()=>{i.__preventObserver__=!1}))}var grabCursor={setGrabCursor,unsetGrabCursor};function closestElement(i,e){e===void 0&&(e=this);function s(o){if(!o||o===getDocument()||o===getWindow())return null;o.assignedSlot&&(o=o.assignedSlot);const a=o.closest(i);return!a&&!o.getRootNode?null:a||s(o.getRootNode().host)}return s(e)}function onTouchStart(i){const e=this,s=getDocument(),o=getWindow(),a=e.touchEventsData;a.evCache.push(i);const{params:c,touches:h,enabled:g}=e;if(!g||!c.simulateTouch&&i.pointerType==="mouse"||e.animating&&c.preventInteractionOnTransition)return;!e.animating&&c.cssMode&&c.loop&&e.loopFix();let d=i;d.originalEvent&&(d=d.originalEvent);let b=d.target;if(c.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(b)||"which"in d&&d.which===3||"button"in d&&d.button>0||a.isTouched&&a.isMoved)return;const _=!!c.noSwipingClass&&c.noSwipingClass!=="",j=i.composedPath?i.composedPath():i.path;_&&d.target&&d.target.shadowRoot&&j&&(b=j[0]);const $=c.noSwipingSelector?c.noSwipingSelector:`.${c.noSwipingClass}`,_e=!!(d.target&&d.target.shadowRoot);if(c.noSwiping&&(_e?closestElement($,b):b.closest($))){e.allowClick=!0;return}if(c.swipeHandler&&!b.closest(c.swipeHandler))return;h.currentX=d.pageX,h.currentY=d.pageY;const et=h.currentX,tt=h.currentY,st=c.edgeSwipeDetection||c.iOSEdgeSwipeDetection,nt=c.edgeSwipeThreshold||c.iOSEdgeSwipeThreshold;if(st&&(et<=nt||et>=o.innerWidth-nt))if(st==="prevent")i.preventDefault();else return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),h.startX=et,h.startY=tt,a.touchStartTime=now(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,c.threshold>0&&(a.allowThresholdMove=!1);let rt=!0;b.matches(a.focusableElements)&&(rt=!1,b.nodeName==="SELECT"&&(a.isTouched=!1)),s.activeElement&&s.activeElement.matches(a.focusableElements)&&s.activeElement!==b&&s.activeElement.blur();const it=rt&&e.allowTouchMove&&c.touchStartPreventDefault;(c.touchStartForcePreventDefault||it)&&!b.isContentEditable&&d.preventDefault(),c.freeMode&&c.freeMode.enabled&&e.freeMode&&e.animating&&!c.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",d)}function onTouchMove(i){const e=getDocument(),s=this,o=s.touchEventsData,{params:a,touches:c,rtlTranslate:h,enabled:g}=s;if(!g||!a.simulateTouch&&i.pointerType==="mouse")return;let d=i;if(d.originalEvent&&(d=d.originalEvent),!o.isTouched){o.startMoving&&o.isScrolling&&s.emit("touchMoveOpposite",d);return}const b=o.evCache.findIndex(ht=>ht.pointerId===d.pointerId);b>=0&&(o.evCache[b]=d);const _=o.evCache.length>1?o.evCache[0]:d,j=_.pageX,$=_.pageY;if(d.preventedByNestedSwiper){c.startX=j,c.startY=$;return}if(!s.allowTouchMove){d.target.matches(o.focusableElements)||(s.allowClick=!1),o.isTouched&&(Object.assign(c,{startX:j,startY:$,prevX:s.touches.currentX,prevY:s.touches.currentY,currentX:j,currentY:$}),o.touchStartTime=now());return}if(a.touchReleaseOnEdges&&!a.loop){if(s.isVertical()){if($c.startY&&s.translate>=s.minTranslate()){o.isTouched=!1,o.isMoved=!1;return}}else if(jc.startX&&s.translate>=s.minTranslate())return}if(e.activeElement&&d.target===e.activeElement&&d.target.matches(o.focusableElements)){o.isMoved=!0,s.allowClick=!1;return}if(o.allowTouchCallbacks&&s.emit("touchMove",d),d.targetTouches&&d.targetTouches.length>1)return;c.currentX=j,c.currentY=$;const _e=c.currentX-c.startX,et=c.currentY-c.startY;if(s.params.threshold&&Math.sqrt(_e**2+et**2)"u"){let ht;s.isHorizontal()&&c.currentY===c.startY||s.isVertical()&&c.currentX===c.startX?o.isScrolling=!1:_e*_e+et*et>=25&&(ht=Math.atan2(Math.abs(et),Math.abs(_e))*180/Math.PI,o.isScrolling=s.isHorizontal()?ht>a.touchAngle:90-ht>a.touchAngle)}if(o.isScrolling&&s.emit("touchMoveOpposite",d),typeof o.startMoving>"u"&&(c.currentX!==c.startX||c.currentY!==c.startY)&&(o.startMoving=!0),o.isScrolling||s.zoom&&s.params.zoom&&s.params.zoom.enabled&&o.evCache.length>1){o.isTouched=!1;return}if(!o.startMoving)return;s.allowClick=!1,!a.cssMode&&d.cancelable&&d.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&d.stopPropagation();let tt=s.isHorizontal()?_e:et,st=s.isHorizontal()?c.currentX-c.previousX:c.currentY-c.previousY;a.oneWayMovement&&(tt=Math.abs(tt)*(h?1:-1),st=Math.abs(st)*(h?1:-1)),c.diff=tt,tt*=a.touchRatio,h&&(tt=-tt,st=-st);const nt=s.touchesDirection;s.swipeDirection=tt>0?"prev":"next",s.touchesDirection=st>0?"prev":"next";const rt=s.params.loop&&!a.cssMode;if(!o.isMoved){if(rt&&s.loopFix({direction:s.swipeDirection}),o.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const ht=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});s.wrapperEl.dispatchEvent(ht)}o.allowMomentumBounce=!1,a.grabCursor&&(s.allowSlideNext===!0||s.allowSlidePrev===!0)&&s.setGrabCursor(!0),s.emit("sliderFirstMove",d)}let it;o.isMoved&&nt!==s.touchesDirection&&rt&&Math.abs(tt)>=1&&(s.loopFix({direction:s.swipeDirection,setTranslate:!0}),it=!0),s.emit("sliderMove",d),o.isMoved=!0,o.currentTranslate=tt+o.startTranslate;let ot=!0,ut=a.resistanceRatio;if(a.touchReleaseOnEdges&&(ut=0),tt>0?(rt&&!it&&o.currentTranslate>(a.centeredSlides?s.minTranslate()-s.size/2:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),o.currentTranslate>s.minTranslate()&&(ot=!1,a.resistance&&(o.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+o.startTranslate+tt)**ut))):tt<0&&(rt&&!it&&o.currentTranslate<(a.centeredSlides?s.maxTranslate()+s.size/2:s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-(a.slidesPerView==="auto"?s.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),o.currentTranslateo.startTranslate&&(o.currentTranslate=o.startTranslate),!s.allowSlidePrev&&!s.allowSlideNext&&(o.currentTranslate=o.startTranslate),a.threshold>0)if(Math.abs(tt)>a.threshold||o.allowThresholdMove){if(!o.allowThresholdMove){o.allowThresholdMove=!0,c.startX=c.currentX,c.startY=c.currentY,o.currentTranslate=o.startTranslate,c.diff=s.isHorizontal()?c.currentX-c.startX:c.currentY-c.startY;return}}else{o.currentTranslate=o.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&s.freeMode||a.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(o.currentTranslate),s.setTranslate(o.currentTranslate))}function onTouchEnd(i){const e=this,s=e.touchEventsData,o=s.evCache.findIndex(it=>it.pointerId===i.pointerId);if(o>=0&&s.evCache.splice(o,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:a,touches:c,rtlTranslate:h,slidesGrid:g,enabled:d}=e;if(!d||!a.simulateTouch&&i.pointerType==="mouse")return;let b=i;if(b.originalEvent&&(b=b.originalEvent),s.allowTouchCallbacks&&e.emit("touchEnd",b),s.allowTouchCallbacks=!1,!s.isTouched){s.isMoved&&a.grabCursor&&e.setGrabCursor(!1),s.isMoved=!1,s.startMoving=!1;return}a.grabCursor&&s.isMoved&&s.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const _=now(),j=_-s.touchStartTime;if(e.allowClick){const it=b.path||b.composedPath&&b.composedPath();e.updateClickedSlide(it&&it[0]||b.target),e.emit("tap click",b),j<300&&_-s.lastClickTime<300&&e.emit("doubleTap doubleClick",b)}if(s.lastClickTime=now(),nextTick(()=>{e.destroyed||(e.allowClick=!0)}),!s.isTouched||!s.isMoved||!e.swipeDirection||c.diff===0||s.currentTranslate===s.startTranslate){s.isTouched=!1,s.isMoved=!1,s.startMoving=!1;return}s.isTouched=!1,s.isMoved=!1,s.startMoving=!1;let $;if(a.followFinger?$=h?e.translate:-e.translate:$=-s.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:$});return}let _e=0,et=e.slidesSizesGrid[0];for(let it=0;it=g[it]&&$=g[it]&&(_e=it,et=g[g.length-1]-g[g.length-2])}let tt=null,st=null;a.rewind&&(e.isBeginning?st=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(tt=0));const nt=($-g[_e])/et,rt=_ea.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(nt>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?tt:_e+rt):e.slideTo(_e)),e.swipeDirection==="prev"&&(nt>1-a.longSwipesRatio?e.slideTo(_e+rt):st!==null&&nt<0&&Math.abs(nt)>a.longSwipesRatio?e.slideTo(st):e.slideTo(_e))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(b.target===e.navigation.nextEl||b.target===e.navigation.prevEl)?b.target===e.navigation.nextEl?e.slideTo(_e+rt):e.slideTo(_e):(e.swipeDirection==="next"&&e.slideTo(tt!==null?tt:_e+rt),e.swipeDirection==="prev"&&e.slideTo(st!==null?st:_e))}}function onResize(){const i=this,{params:e,el:s}=i;if(s&&s.offsetWidth===0)return;e.breakpoints&&i.setBreakpoint();const{allowSlideNext:o,allowSlidePrev:a,snapGrid:c}=i,h=i.virtual&&i.params.virtual.enabled;i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses();const g=h&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides&&!g?i.slideTo(i.slides.length-1,0,!1,!0):i.params.loop&&!h?i.slideToLoop(i.realIndex,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0),i.autoplay&&i.autoplay.running&&i.autoplay.paused&&(clearTimeout(i.autoplay.resizeTimeout),i.autoplay.resizeTimeout=setTimeout(()=>{i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.resume()},500)),i.allowSlidePrev=a,i.allowSlideNext=o,i.params.watchOverflow&&c!==i.snapGrid&&i.checkOverflow()}function onClick(i){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&i.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(i.stopPropagation(),i.stopImmediatePropagation())))}function onScroll(){const i=this,{wrapperEl:e,rtlTranslate:s,enabled:o}=i;if(!o)return;i.previousTranslate=i.translate,i.isHorizontal()?i.translate=-e.scrollLeft:i.translate=-e.scrollTop,i.translate===0&&(i.translate=0),i.updateActiveIndex(),i.updateSlidesClasses();let a;const c=i.maxTranslate()-i.minTranslate();c===0?a=0:a=(i.translate-i.minTranslate())/c,a!==i.progress&&i.updateProgress(s?-i.translate:i.translate),i.emit("setTranslate",i.translate,!1)}function onLoad(i){const e=this;processLazyPreloader(e,i.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let dummyEventAttached=!1;function dummyEventListener(){}const events=(i,e)=>{const s=getDocument(),{params:o,el:a,wrapperEl:c,device:h}=i,g=!!o.nested,d=e==="on"?"addEventListener":"removeEventListener",b=e;a[d]("pointerdown",i.onTouchStart,{passive:!1}),s[d]("pointermove",i.onTouchMove,{passive:!1,capture:g}),s[d]("pointerup",i.onTouchEnd,{passive:!0}),s[d]("pointercancel",i.onTouchEnd,{passive:!0}),s[d]("pointerout",i.onTouchEnd,{passive:!0}),s[d]("pointerleave",i.onTouchEnd,{passive:!0}),s[d]("contextmenu",i.onTouchEnd,{passive:!0}),(o.preventClicks||o.preventClicksPropagation)&&a[d]("click",i.onClick,!0),o.cssMode&&c[d]("scroll",i.onScroll),o.updateOnWindowResize?i[b](h.ios||h.android?"resize orientationchange observerUpdate":"resize observerUpdate",onResize,!0):i[b]("observerUpdate",onResize,!0),a[d]("load",i.onLoad,{capture:!0})};function attachEvents(){const i=this,e=getDocument(),{params:s}=i;i.onTouchStart=onTouchStart.bind(i),i.onTouchMove=onTouchMove.bind(i),i.onTouchEnd=onTouchEnd.bind(i),s.cssMode&&(i.onScroll=onScroll.bind(i)),i.onClick=onClick.bind(i),i.onLoad=onLoad.bind(i),dummyEventAttached||(e.addEventListener("touchstart",dummyEventListener),dummyEventAttached=!0),events(i,"on")}function detachEvents(){events(this,"off")}var events$1={attachEvents,detachEvents};const isGridEnabled=(i,e)=>i.grid&&e.grid&&e.grid.rows>1;function setBreakpoint(){const i=this,{realIndex:e,initialized:s,params:o,el:a}=i,c=o.breakpoints;if(!c||c&&Object.keys(c).length===0)return;const h=i.getBreakpoint(c,i.params.breakpointsBase,i.el);if(!h||i.currentBreakpoint===h)return;const d=(h in c?c[h]:void 0)||i.originalParams,b=isGridEnabled(i,o),_=isGridEnabled(i,d),j=o.enabled;b&&!_?(a.classList.remove(`${o.containerModifierClass}grid`,`${o.containerModifierClass}grid-column`),i.emitContainerClasses()):!b&&_&&(a.classList.add(`${o.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&o.grid.fill==="column")&&a.classList.add(`${o.containerModifierClass}grid-column`),i.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(tt=>{if(typeof d[tt]>"u")return;const st=o[tt]&&o[tt].enabled,nt=d[tt]&&d[tt].enabled;st&&!nt&&i[tt].disable(),!st&&nt&&i[tt].enable()});const $=d.direction&&d.direction!==o.direction,_e=o.loop&&(d.slidesPerView!==o.slidesPerView||$);$&&s&&i.changeDirection(),extend$1(i.params,d);const et=i.params.enabled;Object.assign(i,{allowTouchMove:i.params.allowTouchMove,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev}),j&&!et?i.disable():!j&&et&&i.enable(),i.currentBreakpoint=h,i.emit("_beforeBreakpoint",d),_e&&s&&(i.loopDestroy(),i.loopCreate(e),i.updateSlides()),i.emit("breakpoint",d)}function getBreakpoint(i,e,s){if(e===void 0&&(e="window"),!i||e==="container"&&!s)return;let o=!1;const a=getWindow(),c=e==="window"?a.innerHeight:s.clientHeight,h=Object.keys(i).map(g=>{if(typeof g=="string"&&g.indexOf("@")===0){const d=parseFloat(g.substr(1));return{value:c*d,point:g}}return{value:g,point:g}});h.sort((g,d)=>parseInt(g.value,10)-parseInt(d.value,10));for(let g=0;g{typeof o=="object"?Object.keys(o).forEach(a=>{o[a]&&s.push(e+a)}):typeof o=="string"&&s.push(e+o)}),s}function addClasses(){const i=this,{classNames:e,params:s,rtl:o,el:a,device:c}=i,h=prepareClasses(["initialized",s.direction,{"free-mode":i.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:o},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&s.grid.fill==="column"},{android:c.android},{ios:c.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);e.push(...h),a.classList.add(...e),i.emitContainerClasses()}function removeClasses(){const i=this,{el:e,classNames:s}=i;e.classList.remove(...s),i.emitContainerClasses()}var classes={addClasses,removeClasses};function checkOverflow(){const i=this,{isLocked:e,params:s}=i,{slidesOffsetBefore:o}=s;if(o){const a=i.slides.length-1,c=i.slidesGrid[a]+i.slidesSizesGrid[a]+o*2;i.isLocked=i.size>c}else i.isLocked=i.snapGrid.length===1;s.allowSlideNext===!0&&(i.allowSlideNext=!i.isLocked),s.allowSlidePrev===!0&&(i.allowSlidePrev=!i.isLocked),e&&e!==i.isLocked&&(i.isEnd=!1),e!==i.isLocked&&i.emit(i.isLocked?"lock":"unlock")}var checkOverflow$1={checkOverflow},defaults={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,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,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,loopedSlides:null,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",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function moduleExtendParams(i,e){return function(o){o===void 0&&(o={});const a=Object.keys(o)[0],c=o[a];if(typeof c!="object"||c===null){extend$1(e,o);return}if(["navigation","pagination","scrollbar"].indexOf(a)>=0&&i[a]===!0&&(i[a]={auto:!0}),!(a in i&&"enabled"in c)){extend$1(e,o);return}i[a]===!0&&(i[a]={enabled:!0}),typeof i[a]=="object"&&!("enabled"in i[a])&&(i[a].enabled=!0),i[a]||(i[a]={enabled:!1}),extend$1(e,o)}}const prototypes={eventsEmitter,update,translate,transition,slide,loop,grabCursor,events:events$1,breakpoints,checkOverflow:checkOverflow$1,classes},extendedDefaults={};class Swiper{constructor(){let e,s;for(var o=arguments.length,a=new Array(o),c=0;c1){const _=[];return h.querySelectorAll(s.el).forEach(j=>{const $=extend$1({},s,{el:j});_.push(new Swiper($))}),_}const g=this;g.__swiper__=!0,g.support=getSupport(),g.device=getDevice({userAgent:s.userAgent}),g.browser=getBrowser(),g.eventsListeners={},g.eventsAnyListeners=[],g.modules=[...g.__modules__],s.modules&&Array.isArray(s.modules)&&g.modules.push(...s.modules);const d={};g.modules.forEach(_=>{_({params:s,swiper:g,extendParams:moduleExtendParams(s,d),on:g.on.bind(g),once:g.once.bind(g),off:g.off.bind(g),emit:g.emit.bind(g)})});const b=extend$1({},defaults,d);return g.params=extend$1({},b,extendedDefaults,s),g.originalParams=extend$1({},g.params),g.passedParams=extend$1({},s),g.params&&g.params.on&&Object.keys(g.params.on).forEach(_=>{g.on(_,g.params.on[_])}),g.params&&g.params.onAny&&g.onAny(g.params.onAny),Object.assign(g,{enabled:g.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return g.params.direction==="horizontal"},isVertical(){return g.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:g.params.allowSlideNext,allowSlidePrev:g.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:g.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:g.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),g.emit("_swiper"),g.params.init&&g.init(),g}getSlideIndex(e){const{slidesEl:s,params:o}=this,a=elementChildren(s,`.${o.slideClass}, swiper-slide`),c=elementIndex(a[0]);return elementIndex(e)-c}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(s=>s.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:s,params:o}=e;e.slides=elementChildren(s,`.${o.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,s){const o=this;e=Math.min(Math.max(e,0),1);const a=o.minTranslate(),h=(o.maxTranslate()-a)*e+a;o.translateTo(h,typeof s>"u"?0:s),o.updateActiveIndex(),o.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const s=e.el.className.split(" ").filter(o=>o.indexOf("swiper")===0||o.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",s.join(" "))}getSlideClasses(e){const s=this;return s.destroyed?"":e.className.split(" ").filter(o=>o.indexOf("swiper-slide")===0||o.indexOf(s.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const s=[];e.slides.forEach(o=>{const a=e.getSlideClasses(o);s.push({slideEl:o,classNames:a}),e.emit("_slideClass",o,a)}),e.emit("_slideClasses",s)}slidesPerViewDynamic(e,s){e===void 0&&(e="current"),s===void 0&&(s=!1);const o=this,{params:a,slides:c,slidesGrid:h,slidesSizesGrid:g,size:d,activeIndex:b}=o;let _=1;if(a.centeredSlides){let j=c[b]?c[b].swiperSlideSize:0,$;for(let _e=b+1;_ed&&($=!0));for(let _e=b-1;_e>=0;_e-=1)c[_e]&&!$&&(j+=c[_e].swiperSlideSize,_+=1,j>d&&($=!0))}else if(e==="current")for(let j=b+1;j=0;j-=1)h[b]-h[j]{h.complete&&processLazyPreloader(e,h)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function a(){const h=e.rtlTranslate?e.translate*-1:e.translate,g=Math.min(Math.max(h,e.maxTranslate()),e.minTranslate());e.setTranslate(g),e.updateActiveIndex(),e.updateSlidesClasses()}let c;if(o.freeMode&&o.freeMode.enabled&&!o.cssMode)a(),o.autoHeight&&e.updateAutoHeight();else{if((o.slidesPerView==="auto"||o.slidesPerView>1)&&e.isEnd&&!o.centeredSlides){const h=e.virtual&&o.virtual.enabled?e.virtual.slides:e.slides;c=e.slideTo(h.length-1,0,!1,!0)}else c=e.slideTo(e.activeIndex,0,!1,!0);c||a()}o.watchOverflow&&s!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,s){s===void 0&&(s=!0);const o=this,a=o.params.direction;return e||(e=a==="horizontal"?"vertical":"horizontal"),e===a||e!=="horizontal"&&e!=="vertical"||(o.el.classList.remove(`${o.params.containerModifierClass}${a}`),o.el.classList.add(`${o.params.containerModifierClass}${e}`),o.emitContainerClasses(),o.params.direction=e,o.slides.forEach(c=>{e==="vertical"?c.style.width="":c.style.height=""}),o.emit("changeDirection"),s&&o.update()),o}changeLanguageDirection(e){const s=this;s.rtl&&e==="rtl"||!s.rtl&&e==="ltr"||(s.rtl=e==="rtl",s.rtlTranslate=s.params.direction==="horizontal"&&s.rtl,s.rtl?(s.el.classList.add(`${s.params.containerModifierClass}rtl`),s.el.dir="rtl"):(s.el.classList.remove(`${s.params.containerModifierClass}rtl`),s.el.dir="ltr"),s.update())}mount(e){const s=this;if(s.mounted)return!0;let o=e||s.params.el;if(typeof o=="string"&&(o=document.querySelector(o)),!o)return!1;o.swiper=s,o.parentNode&&o.parentNode.host&&o.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(s.isElement=!0);const a=()=>`.${(s.params.wrapperClass||"").trim().split(" ").join(".")}`;let h=(()=>o&&o.shadowRoot&&o.shadowRoot.querySelector?o.shadowRoot.querySelector(a()):elementChildren(o,a())[0])();return!h&&s.params.createElements&&(h=createElement("div",s.params.wrapperClass),o.append(h),elementChildren(o,`.${s.params.slideClass}`).forEach(g=>{h.append(g)})),Object.assign(s,{el:o,wrapperEl:h,slidesEl:s.isElement&&!o.parentNode.host.slideSlots?o.parentNode.host:h,hostEl:s.isElement?o.parentNode.host:o,mounted:!0,rtl:o.dir.toLowerCase()==="rtl"||elementStyle(o,"direction")==="rtl",rtlTranslate:s.params.direction==="horizontal"&&(o.dir.toLowerCase()==="rtl"||elementStyle(o,"direction")==="rtl"),wrongRTL:elementStyle(h,"display")==="-webkit-box"}),!0}init(e){const s=this;if(s.initialized||s.mount(e)===!1)return s;s.emit("beforeInit"),s.params.breakpoints&&s.setBreakpoint(),s.addClasses(),s.updateSize(),s.updateSlides(),s.params.watchOverflow&&s.checkOverflow(),s.params.grabCursor&&s.enabled&&s.setGrabCursor(),s.params.loop&&s.virtual&&s.params.virtual.enabled?s.slideTo(s.params.initialSlide+s.virtual.slidesBefore,0,s.params.runCallbacksOnInit,!1,!0):s.slideTo(s.params.initialSlide,0,s.params.runCallbacksOnInit,!1,!0),s.params.loop&&s.loopCreate(),s.attachEvents();const a=[...s.el.querySelectorAll('[loading="lazy"]')];return s.isElement&&a.push(...s.hostEl.querySelectorAll('[loading="lazy"]')),a.forEach(c=>{c.complete?processLazyPreloader(s,c):c.addEventListener("load",h=>{processLazyPreloader(s,h.target)})}),preload(s),s.initialized=!0,preload(s),s.emit("init"),s.emit("afterInit"),s}destroy(e,s){e===void 0&&(e=!0),s===void 0&&(s=!0);const o=this,{params:a,el:c,wrapperEl:h,slides:g}=o;return typeof o.params>"u"||o.destroyed||(o.emit("beforeDestroy"),o.initialized=!1,o.detachEvents(),a.loop&&o.loopDestroy(),s&&(o.removeClasses(),c.removeAttribute("style"),h.removeAttribute("style"),g&&g.length&&g.forEach(d=>{d.classList.remove(a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),d.removeAttribute("style"),d.removeAttribute("data-swiper-slide-index")})),o.emit("destroy"),Object.keys(o.eventsListeners).forEach(d=>{o.off(d)}),e!==!1&&(o.el.swiper=null,deleteProps(o)),o.destroyed=!0),null}static extendDefaults(e){extend$1(extendedDefaults,e)}static get extendedDefaults(){return extendedDefaults}static get defaults(){return defaults}static installModule(e){Swiper.prototype.__modules__||(Swiper.prototype.__modules__=[]);const s=Swiper.prototype.__modules__;typeof e=="function"&&s.indexOf(e)<0&&s.push(e)}static use(e){return Array.isArray(e)?(e.forEach(s=>Swiper.installModule(s)),Swiper):(Swiper.installModule(e),Swiper)}}Object.keys(prototypes).forEach(i=>{Object.keys(prototypes[i]).forEach(e=>{Swiper.prototype[e]=prototypes[i][e]})});Swiper.use([Resize,Observer]);const modules=[Virtual,Keyboard,Mousewheel,Navigation,Pagination,Scrollbar,Parallax,Zoom,Controller,A11y,History,HashNavigation,Autoplay,Thumb,freeMode,Grid,Manipulation,EffectFade,EffectCube,EffectFlip,EffectCoverflow,EffectCreative,EffectCards];Swiper.use(modules);const paramsList=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_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","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","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 isObject(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function extend(i,e){const s=["__proto__","constructor","prototype"];Object.keys(e).filter(o=>s.indexOf(o)<0).forEach(o=>{typeof i[o]>"u"?i[o]=e[o]:isObject(e[o])&&isObject(i[o])&&Object.keys(e[o]).length>0?e[o].__swiper__?i[o]=e[o]:extend(i[o],e[o]):i[o]=e[o]})}function needsNavigation(i){return i===void 0&&(i={}),i.navigation&&typeof i.navigation.nextEl>"u"&&typeof i.navigation.prevEl>"u"}function needsPagination(i){return i===void 0&&(i={}),i.pagination&&typeof i.pagination.el>"u"}function needsScrollbar(i){return i===void 0&&(i={}),i.scrollbar&&typeof i.scrollbar.el>"u"}function attrToProp(i){return i===void 0&&(i=""),i.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}function updateSwiper(i){let{swiper:e,slides:s,passedParams:o,changedParams:a,nextEl:c,prevEl:h,scrollbarEl:g,paginationEl:d}=i;const b=a.filter(gt=>gt!=="children"&>!=="direction"&>!=="wrapperClass"),{params:_,pagination:j,navigation:$,scrollbar:_e,virtual:et,thumbs:tt}=e;let st,nt,rt,it,ot,ut,ht,pt;a.includes("thumbs")&&o.thumbs&&o.thumbs.swiper&&_.thumbs&&!_.thumbs.swiper&&(st=!0),a.includes("controller")&&o.controller&&o.controller.control&&_.controller&&!_.controller.control&&(nt=!0),a.includes("pagination")&&o.pagination&&(o.pagination.el||d)&&(_.pagination||_.pagination===!1)&&j&&!j.el&&(rt=!0),a.includes("scrollbar")&&o.scrollbar&&(o.scrollbar.el||g)&&(_.scrollbar||_.scrollbar===!1)&&_e&&!_e.el&&(it=!0),a.includes("navigation")&&o.navigation&&(o.navigation.prevEl||h)&&(o.navigation.nextEl||c)&&(_.navigation||_.navigation===!1)&&$&&!$.prevEl&&!$.nextEl&&(ot=!0);const yt=gt=>{e[gt]&&(e[gt].destroy(),gt==="navigation"?(e.isElement&&(e[gt].prevEl.remove(),e[gt].nextEl.remove()),_[gt].prevEl=void 0,_[gt].nextEl=void 0,e[gt].prevEl=void 0,e[gt].nextEl=void 0):(e.isElement&&e[gt].el.remove(),_[gt].el=void 0,e[gt].el=void 0))};a.includes("loop")&&e.isElement&&(_.loop&&!o.loop?ut=!0:!_.loop&&o.loop?ht=!0:pt=!0),b.forEach(gt=>{if(isObject(_[gt])&&isObject(o[gt]))extend(_[gt],o[gt]),(gt==="navigation"||gt==="pagination"||gt==="scrollbar")&&"enabled"in o[gt]&&!o[gt].enabled&&yt(gt);else{const xt=o[gt];(xt===!0||xt===!1)&&(gt==="navigation"||gt==="pagination"||gt==="scrollbar")?xt===!1&&yt(gt):_[gt]=o[gt]}}),b.includes("controller")&&!nt&&e.controller&&e.controller.control&&_.controller&&_.controller.control&&(e.controller.control=_.controller.control),a.includes("children")&&s&&et&&_.virtual.enabled&&(et.slides=s,et.update(!0)),a.includes("children")&&s&&_.loop&&(pt=!0),st&&tt.init()&&tt.update(!0),nt&&(e.controller.control=_.controller.control),rt&&(e.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-pagination"),d.part.add("pagination"),e.el.appendChild(d)),d&&(_.pagination.el=d),j.init(),j.render(),j.update()),it&&(e.isElement&&(!g||typeof g=="string")&&(g=document.createElement("div"),g.classList.add("swiper-scrollbar"),g.part.add("scrollbar"),e.el.appendChild(g)),g&&(_.scrollbar.el=g),_e.init(),_e.updateSize(),_e.setTranslate()),ot&&(e.isElement&&((!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-button-next"),c.innerHTML=e.hostEl.constructor.nextButtonSvg,c.part.add("button-next"),e.el.appendChild(c)),(!h||typeof h=="string")&&(h=document.createElement("div"),h.classList.add("swiper-button-prev"),h.innerHTML=e.hostEl.constructor.prevButtonSvg,h.part.add("button-prev"),e.el.appendChild(h))),c&&(_.navigation.nextEl=c),h&&(_.navigation.prevEl=h),$.init(),$.update()),a.includes("allowSlideNext")&&(e.allowSlideNext=o.allowSlideNext),a.includes("allowSlidePrev")&&(e.allowSlidePrev=o.allowSlidePrev),a.includes("direction")&&e.changeDirection(o.direction,!1),(ut||pt)&&e.loopDestroy(),(ht||pt)&&e.loopCreate(),e.update()}const formatValue=i=>{if(parseFloat(i)===Number(i))return Number(i);if(i==="true"||i==="")return!0;if(i==="false")return!1;if(i==="null")return null;if(i!=="undefined"){if(typeof i=="string"&&i.includes("{")&&i.includes("}")&&i.includes('"')){let e;try{e=JSON.parse(i)}catch{e=i}return e}return i}},modulesParamsList=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function getParams(i,e,s){const o={},a={};extend(o,defaults);const c=[...paramsList,"on"],h=c.map(d=>d.replace(/_/,""));c.forEach(d=>{d=d.replace("_",""),typeof i[d]<"u"&&(a[d]=i[d])});const g=[...i.attributes];return typeof e=="string"&&typeof s<"u"&&g.push({name:e,value:s}),g.forEach(d=>{const b=modulesParamsList.filter(_=>d.name.indexOf(`${_}-`)===0)[0];if(b){const _=attrToProp(b),j=attrToProp(d.name.split(`${b}-`)[1]);typeof a[_]>"u"&&(a[_]={}),a[_]===!0&&(a[_]={enabled:!0}),a[_][j]=formatValue(d.value)}else{const _=attrToProp(d.name);if(!h.includes(_))return;const j=formatValue(d.value);a[_]&&modulesParamsList.includes(d.name)?(a[_].constructor!==Object&&(a[_]={}),a[_].enabled=j):a[_]=j}}),extend(o,a),o.navigation?o.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...o.navigation!==!0?o.navigation:{}}:o.navigation===!1&&delete o.navigation,o.scrollbar?o.scrollbar={el:".swiper-scrollbar",...o.scrollbar!==!0?o.scrollbar:{}}:o.scrollbar===!1&&delete o.scrollbar,o.pagination?o.pagination={el:".swiper-pagination",...o.pagination!==!0?o.pagination:{}}:o.pagination===!1&&delete o.pagination,{params:o,passedParams:a}}const SwiperCSS=":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;overflow:clip;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",SwiperSlideCSS="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}";class DummyHTMLElement{}const ClassToExtend=typeof window>"u"||typeof HTMLElement>"u"?DummyHTMLElement:HTMLElement,arrowSvg=` `,addStyle=(i,e)=>{if(typeof CSSStyleSheet<"u"&&i.adoptedStyleSheets){const s=new CSSStyleSheet;s.replaceSync(e),i.adoptedStyleSheets=[s]}else{const s=document.createElement("style");s.rel="stylesheet",s.textContent=e,i.appendChild(s)}};class SwiperContainer extends ClassToExtend{constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return arrowSvg}static get prevButtonSvg(){return arrowSvg.replace("/>",' transform-origin="center" transform="rotate(180)"/>')}cssStyles(){return[SwiperCSS,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(` `)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const e=this.slideSlots||0,s=[...this.querySelectorAll("[slot^=slide-]")].map(o=>parseInt(o.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=s.length?Math.max(...s)+1:0,!!this.rendered){if(this.slideSlots>e)for(let o=e;o=0;a-=1)a>this.slideSlots&&o[a].remove()}}}render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&addStyle(this.shadowRoot,e),this.cssLinks().forEach(o=>{if(this.shadowRoot.querySelector(`link[href="${o}"]`))return;const c=document.createElement("link");c.rel="stylesheet",c.href=o,this.shadowRoot.appendChild(c)});const s=document.createElement("div");s.classList.add("swiper"),s.part="container",s.innerHTML=` diff --git a/react/dist/assets/index-6ab056c4.css b/react/dist/assets/index-dfcfb331.css similarity index 80% rename from react/dist/assets/index-6ab056c4.css rename to react/dist/assets/index-dfcfb331.css index 8fc6ed85c..f22a8418a 100644 --- a/react/dist/assets/index-6ab056c4.css +++ b/react/dist/assets/index-dfcfb331.css @@ -1 +1 @@ -@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap";html{box-sizing:border-box;font-family:Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;scroll-behavior:smooth}*,*:before,*:after{box-sizing:inherit}html,body{margin:0}a{color:#00f;text-decoration:none}.container{width:90%;margin:auto}.text-center{text-align:center}button{cursor:pointer}.btn.btn-primary{padding:10px 16px;cursor:pointer;background-color:#0ff;border:1px solid grey;border-radius:4px}._App_150vf_1{margin-top:1rem;text-align:center}._accordion_150vf_6{padding:10px;margin-bottom:10px;font-size:14px;text-align:left;border:1px solid rgb(218,212,212)}._accordion-title_150vf_14{display:flex;align-items:center;justify-content:space-between}._accordion-icon_150vf_20{display:flex;align-items:center;align-self:center;justify-content:center;width:2rem;min-width:2rem;height:2rem;margin-left:1rem;font-size:20px;color:#fff;cursor:pointer;background:transparent;background:rgb(209,209,209);border-color:transparent;border-radius:50%}._main_nknv7_1{width:90%;margin:auto;text-align:center}._main_nknv7_1 input{width:94%;padding:.5rem 1rem;margin-bottom:.5rem;font-size:1rem}._main_nknv7_1 ._suggestions_nknv7_12{width:93%;padding-inline-start:0;margin:auto}._main_nknv7_1 li{display:flex;align-items:center;height:40px;padding-left:1rem;margin-bottom:.1rem;list-style:none;cursor:pointer;background-color:beige}._main_nknv7_1 li._highlight_nknv7_27{background-color:khaki;outline:1px solid}@media (width >= 768px){._main_nknv7_1 input,._main_nknv7_1 ._suggestions_nknv7_12{width:50%}}._main_nknv7_1 ._loader_nknv7_37{width:25px;height:25px;margin:25px auto auto;border:2px solid black;border-right-width:0;border-left-width:0;border-radius:50%;animation:_loader_nknv7_37 linear 1s infinite}@keyframes _loader_nknv7_37{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._App_7yaca_1 ._container_7yaca_1{display:flex;flex-direction:column;align-items:center;justify-content:center}._App_7yaca_1 ._container_7yaca_1 ._input_7yaca_7{display:flex;flex-direction:column;gap:5px}._App_7yaca_1 ._container_7yaca_1 ._input_7yaca_7 input{width:100px;padding:10px;margin-bottom:10px;font-weight:700;background-color:#87ceeb;border-radius:10px;outline:none}._App_7yaca_1 ._container_7yaca_1 ._input_7yaca_7 ._calculateButton_7yaca_21{align-self:center;width:fit-content;padding:5px 15px;color:#fff;cursor:pointer;background-color:#000;border-radius:5px}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30{padding:0 20px;margin:20px 0;background-color:#deb887;border-radius:10px}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 h1,._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 h3{margin:10px;text-align:center}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 ._ranges_7yaca_41{padding-top:16px;font-weight:700}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 p{margin:5px}._navbar_6f1bq_1{display:flex;gap:2rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;background:linear-gradient(180deg,lavenderblush 0%,white 100%);box-shadow:0 4px 4px #0000001a}._navbar_6f1bq_1 ._left_6f1bq_11{display:flex;flex:1;gap:.5rem;align-items:center}._navbar_6f1bq_1 ._left_6f1bq_11 ._back_6f1bq_17{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}._navbar_6f1bq_1 ._left_6f1bq_11 ._logo_6f1bq_25{display:flex;flex-grow:1;gap:.5rem;align-items:center}._navbar_6f1bq_1 ._left_6f1bq_11 ._logo_6f1bq_25 img{width:40px;height:40px}._navbar_6f1bq_1 ._left_6f1bq_11 ._logo_6f1bq_25 span{font-size:1.2rem;font-weight:500;color:#000}._navbar_6f1bq_1 h1{margin:0}._navbar_6f1bq_1 ._right_6f1bq_43{flex:1;text-align:right}._navbar_6f1bq_1 ._right_6f1bq_43 ._github_6f1bq_47{width:30px;height:30px;vertical-align:text-bottom}._container_10e68_1{width:100%;height:100%;text-align:center}._button_10e68_7{padding:10px 20px;margin:2rem auto;font-size:1.25rem;font-weight:500;border:none;border-radius:8px;box-shadow:0 2px 4px #0000}._button_10e68_7:active{transform:scale(.98)}._color-mixer-container_oo1rc_1{display:flex;flex-direction:column;align-items:center;justify-content:center;width:40%;min-width:300px;margin:0 auto;background-color:#f5f5f5;transition:background-color .3s}._color-box-top_oo1rc_13{display:flex;align-items:center;justify-content:center;width:100%;height:250px;background-color:#fff;border:2px solid #333;border-radius:10px}._color-box-top_oo1rc_13 p{font-size:24px;color:#333;mix-blend-mode:difference}._color-inputs_oo1rc_30{display:flex;flex-direction:column;gap:20px;align-items:center;padding:20px;background-color:#fff;border-radius:10px}._color-input_oo1rc_30{display:flex;gap:10px;align-items:center}._color-input_oo1rc_30 label{font-size:16px;color:#333}input[type=color]{width:60px;height:60px;border:none}._mix-button_oo1rc_57{padding:10px 20px;color:#fff;cursor:pointer;background-color:#ff5733;border:none;border-radius:5px;transition:background-color .3s}._mix-button_oo1rc_57:hover{background-color:#e83e1e}._main_pfcqp_1{text-align:center}._size_pfcqp_5{display:flex;flex-direction:column;gap:10px;justify-content:center;margin:20px 0}._grid_pfcqp_13{margin:1rem auto}._cell_pfcqp_17{width:50px;height:50px;padding-left:0;border:1px solid black}@media screen and (width >= 450px){._size_pfcqp_5{flex-direction:row}}._main_1cx3l_1{text-align:center}._main_1cx3l_1 section{margin:1rem 0}._main_1cx3l_1 button{padding:.25rem .5rem;margin:0 .5rem;font-size:1.15rem;cursor:pointer}._main_1cx3l_1 input{width:5rem;padding:.15rem;margin-left:1rem;font-size:1.15rem}._select_17qmd_1{padding:.25rem;font-size:1rem}._form_17qmd_6{display:flex;flex-flow:row wrap;gap:25px;justify-content:space-between;margin-top:20px}._form_17qmd_6 ._formField_17qmd_13{white-space:nowrap}._formInput_17qmd_17{padding:.25rem;font-size:1rem}._form_1ufkd_2{max-width:400px;margin:20px auto;padding:20px;box-shadow:0 2px 8px #0003;border-radius:8px;display:flex;flex-direction:column;gap:15px}._form_1ufkd_2 input,._form_1ufkd_2 select,._form_1ufkd_2 button{padding:10px;font-size:16px;border:1px solid #ccc;border-radius:4px;transition:border-color .2s}._form_1ufkd_2 input:focus,._form_1ufkd_2 select:focus{border-color:#007bff;outline:none}._form_1ufkd_2 button{background-color:#007bff;color:#fff;cursor:pointer;border:none}._form_1ufkd_2 button:hover{background-color:#0056b3}._form_1ufkd_2 button:disabled{background-color:#ccc;cursor:not-allowed}._form_1ufkd_2 select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url('data:image/svg+xml;utf8,');background-repeat:no-repeat;background-position:right 10px center;padding-right:30px}._mainContainer_1ynr6_2{max-width:500px;margin:20px auto;padding:20px;box-shadow:0 2px 8px #0000001a;border-radius:8px;background-color:#fff}._mainContainer_1ynr6_2 h2{border-bottom:2px solid #eee;padding-bottom:10px;margin-bottom:15px;font-size:24px;color:#333}._mainContainer_1ynr6_2 ul{list-style-type:none;margin:0;padding:0}._mainContainer_1ynr6_2 li{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #eee}._mainContainer_1ynr6_2 li:last-child{border-bottom:none}._mainContainer_1ynr6_2 ._btnRed_1ynr6_32{padding:5px 10px;font-size:14px;color:#fff;background-color:#ff4136;border:none;border-radius:4px;cursor:pointer;transition:background-color .2s}._mainContainer_1ynr6_2 ._btnRed_1ynr6_32:hover{background-color:#ff3013}._mainContainer_1ynr6_2 ._btnRed_1ynr6_32:disabled{background-color:#ccc;cursor:not-allowed}._app_1o28y_1{margin-top:1rem;font-size:1.2rem}._list_1o28y_6{display:flex;align-items:center;height:1.5em;padding-left:0;margin-bottom:.5em;list-style-type:none}._list_1o28y_6 button{font-size:1em;cursor:pointer;background-color:transparent;border:none}._list_1o28y_6._editList_1o28y_22{padding:1px 6px}._list_1o28y_6 input{font-size:1em}._editableInputContainer_1o28y_30{position:relative}._editableInputError_1o28y_34{position:absolute;top:100%;background-color:#7f1d1d;border:1px solid red;font-size:small;color:#f87171;padding:.5rem}._editableInputError_1o28y_34>p{margin:0}._indent_1o28y_48{margin-left:30px}._controls_1o28y_52{display:flex;gap:.5em;margin-left:2rem}._controls_1o28y_52 button{display:none;align-items:center;justify-content:center;padding:0;cursor:pointer;background-color:transparent;border:none}._list_1o28y_6:hover button{display:block}._list_1o28y_6[data-root=true]:hover div button:first-child,._list_1o28y_6[data-root=true]:hover div button:last-child{display:none}:root{--font-m: 16px}._App_fw4tl_7{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;margin:0}._meal_container_fw4tl_17{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:50%;padding:1rem 1.3rem;margin-top:3rem;background-color:#9fa732;border:.2rem solid black}._meal_name_fw4tl_29{font-size:1.6rem;text-align:center}._meal_img_fw4tl_34{width:100%;height:300px}._tags_container_fw4tl_39,._modal_tags_container_fw4tl_40{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;padding-inline-start:0;font-size:1.2rem;list-style:none}._tag_fw4tl_39,._modal_tag_fw4tl_40{padding:.4rem .7rem;cursor:pointer;background-color:#e2b044;transition:all .3s ease-in}._tag_fw4tl_39:hover,._modal_tag_fw4tl_40:hover{color:#ececec;background-color:#099}dialog{top:3%;width:70%}._modal_meal_img_fw4tl_69{width:100%;height:350px}._modal_instruction_fw4tl_74{font-size:1.2rem;line-height:1.6rem}._foodBtn_fw4tl_79,._openBtn_fw4tl_80{padding:.4rem .9rem;font-size:1.3rem;font-weight:700;cursor:pointer;background-color:#fff;border:.2rem solid black;transition:background-color .2s ease-in}._openBtn_fw4tl_80{margin-top:2rem;font-size:1.1rem}._foodBtn_fw4tl_79:hover,._openBtn_fw4tl_80:hover{background-color:#eee}._foodBtn_fw4tl_79:active,._openBtn_fw4tl_80:active{background-color:#ddd}._closeBtn_fw4tl_105{position:absolute;top:-1.3rem;right:-1.3rem;padding:0 .6rem;font-size:2rem;font-weight:700;color:#fff;cursor:pointer;background-color:#df4848;border-radius:50%;transition:background-color .2s ease-in}._closeBtn_fw4tl_105:hover{background-color:#c74040}._closeBtn_fw4tl_105:active{background-color:#af3737}._recipe_table_fw4tl_128{width:100%;margin:1.8rem auto;font-size:1rem;border-collapse:collapse}._recipe_table_fw4tl_128 th,._recipe_table_fw4tl_128 td{height:3.12rem;padding-left:1.25rem;text-align:left}._recipe_table_fw4tl_128 th{color:#fff;background-color:#9fa732}._recipe_table_fw4tl_128 tr:nth-child(even){background-color:#f9ffa3}@media screen and (width <= 768px){._meal_container_fw4tl_17{width:88%;padding:.5rem}dialog{width:88%}._meal_name_fw4tl_29{font-size:1.4rem}._meal_img_fw4tl_34{height:200px}._tags_container_fw4tl_39,._modal_tags_container_fw4tl_40{font-size:1rem}._modal_meal_img_fw4tl_69{height:250px}._modal_instruction_fw4tl_74{font-size:1rem;line-height:1.4rem}._foodBtn_fw4tl_79,._openBtn_fw4tl_80{font-size:1.1rem}._closeBtn_fw4tl_105{top:-.5rem;right:-.5rem;font-size:1.5rem}th,td{height:40px;padding-left:10px}}@media screen and (width >= 1300px){._meal_container_fw4tl_17{width:40%}dialog{width:60%}}@media screen and (width >= 1700px){._meal_container_fw4tl_17{width:35%}dialog{width:55%}}._app_j2t5p_1{display:flex;flex-direction:column;margin:10px auto}._app_j2t5p_1 input{height:30px;padding:20px;text-align:center;outline:none}._app_j2t5p_1 ._widget_j2t5p_14{display:flex;flex-direction:column;justify-content:space-around;margin-top:5px}._app_j2t5p_1 ._text_j2t5p_21 p{text-align:center}._app_j2t5p_1 form{display:flex;flex-direction:column}._app_j2t5p_1 form label{padding:10px}._app_j2t5p_1 form button{min-width:40%;padding:10px;margin-top:10px;font-size:16px;cursor:pointer;border:none}@media (width >= 768px){._app_j2t5p_1{width:50%;max-width:500px}._app_j2t5p_1 ._widget_j2t5p_14{flex-direction:row}}._image-gallery-container_3b420_2{margin:20px;text-align:center}._gallery-para_3b420_7{text-decoration:underline}._image-container_3b420_11{display:flex;flex-wrap:wrap;gap:20px;justify-content:center}._image-wrapper_3b420_18{cursor:pointer;transition:transform .2s ease-in-out}._image-wrapper_3b420_18:hover{transform:scale(1.1)}._gallery-image_3b420_27{width:200px;height:200px;object-fit:cover;border-radius:10px;box-shadow:0 0 5px #0000004d}._selected-image_3b420_36{margin-top:40px;text-align:center}._selected-heading_3b420_41{margin-bottom:10px;font-size:20px}._selected-img_3b420_46{max-width:100%;border-radius:10px;box-shadow:0 0 10px #0000007f}._loader_1hfl7_1{width:60px;height:60px;margin:1rem auto;border:8px solid #f3f3f3;border-top:8px solid #3498db;border-radius:50%;animation:_spin_1hfl7_1 2s linear infinite}@keyframes _spin_1hfl7_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._book-title_1hfl7_21{padding:2em;margin:2em 0;text-align:center;border:1px solid black;border-radius:6px}._result_1y6k8_1{max-width:60rem;padding:1rem;text-align:right;table-layout:fixed;border-spacing:1rem}._result_1y6k8_1 thead{font-size:.7rem}._result_1y6k8_1 tbody{font-size:.85rem;color:#8a2be2}@media screen and (width <= 400px){._result_1y6k8_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:0}._result_1y6k8_1 tbody{font-size:.68rem}}@media screen and (width <= 300px){._result_1y6k8_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:0}._result_1y6k8_1 thead{font-size:.52rem;color:#8a2be2}._result_1y6k8_1 tbody{font-size:.68rem}}._form_1schc_1{max-width:30rem;padding:1rem;margin:1rem 0;border:1px solid black;border-radius:4px}._input-group_1schc_17{display:flex;gap:1.5rem;justify-content:space-evenly}._form_1schc_1 label{display:block;margin-bottom:.25rem;font-size:.6rem;font-weight:700;text-transform:uppercase}._form_1schc_1 input{width:100%;padding:.5rem;font-size:1rem;background-color:transparent;border:1px solid #76c0ae;border-radius:.25rem}._actions_1schc_63{display:flex;gap:1rem;justify-content:center}._button_1schc_75{padding:.5rem 1rem;color:#c2e9e0;cursor:pointer;background:linear-gradient(180deg,#1f584b,#17493d);border:none;border-radius:.25rem}._buttonAlt_1schc_93{cursor:pointer;background:transparent;border:none}._button_1schc_75:hover{background:linear-gradient(180deg,#1b5346,#113c32)}._buttonAlt_1schc_93:hover{color:#91e1d0;background:transparent}@media screen and (width <= 400px){._form_1schc_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;max-width:20rem}}._main_kxpla_1{display:flex;flex-flow:column wrap;align-items:center;justify-content:center}:root{--clr-bcg: #fff;--clr-font: #282c35;--clr-primary: #d23669}._darkTheme_1w4bd_7{--clr-bcg: #282c35;--clr-font: #fff;--clr-primary: #d23669}._lightTheme_1w4bd_13{--clr-bcg: #fff;--clr-font: #282c35;--clr-primary: #ffd7c4}._main_1w4bd_19{padding:10px;background-color:var(--clr-bcg);transition:.3s linear}._main_1w4bd_19 h1{color:var(--clr-font)}._main_1w4bd_19 button{padding:10px;margin-top:10px;font-size:16px;color:var(--clr-font);cursor:pointer;background-color:var(--clr-primary);border:none}._layout_1dsxo_1{margin:20px 0;text-align:center}._layout_1dsxo_1 output{font-size:1.25rem}._layout_1dsxo_1 p{margin:0}._button_1dsxo_14{margin:40px 0 20px}._grid_1dsxo_18{display:inline-grid;font-size:2rem}._tile_1dsxo_23{position:relative}._frontface_1dsxo_27,._backface_1dsxo_28{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer;-webkit-user-select:none;user-select:none;background-color:khaki;border-radius:4px;box-shadow:0 5px 4px #00000026;transition:all 1s;transform:rotateY(0);backface-visibility:hidden}._backface_1dsxo_28{transform:rotateY(180deg)}._frontface_1dsxo_27{transform:rotateY(0)}@media screen and (width >= 768px){._grid_1dsxo_18{font-size:3rem}}._pagination_1mnjc_1{width:100%;text-align:center;margin-bottom:2rem}._pagination_1mnjc_1 button{margin:0 1rem}._container_for_table_1pb6f_1{width:100%}._table_1pb6f_5{width:100%;text-align:center}._thead_1pb6f_10 tr th{padding:4px;margin:0;font-size:1.25rem;text-transform:uppercase;background-color:beige;border:1px solid beige}._tbody_1pb6f_19 tr td{padding:4px;margin:0;font-size:1rem;border-right:1px solid beige;border-bottom:1px solid beige;border-left:1px solid beige}._pagination_container_13fvi_1{display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(95%,800px);margin:0 auto}._title_13fvi_10{margin:2rem 0;text-align:center;font-size:2rem;font-weight:700;text-transform:uppercase}._App_6bcv0_1{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:2.5rem}._main_section_6bcv0_10{width:78%;font-size:1.1rem}._main_header_6bcv0_15{margin-bottom:2rem;font-size:1.5rem;font-weight:700;text-align:center}._password_form_6bcv0_22{display:grid;grid-template-columns:1fr 1fr;gap:1rem}._second_section_6bcv0_28{display:flex;flex-direction:column;row-gap:1rem;align-items:flex-start;width:78%;margin-top:1rem;font-size:1.1rem}._second_section_6bcv0_28 ._inputText_6bcv0_38,._fifth_section_6bcv0_39 ._inputText_6bcv0_38{padding:.4rem;margin-right:1.5rem;font-size:1rem;border:.18rem solid black}._second_section_6bcv0_28 ._btn_6bcv0_46,._fourth_section_6bcv0_47 ._btn_6bcv0_46,._fifth_section_6bcv0_39 ._btn_6bcv0_46{padding:.4rem .8rem;margin-right:1.5rem;font-size:1rem;cursor:pointer;background-color:#ccc;border:none;border-radius:.5rem;outline:none;transition:background-color .3s ease-in-out}._second_section_6bcv0_28 ._btn_6bcv0_46:hover,._fourth_section_6bcv0_47 ._btn_6bcv0_46:hover,._fifth_section_6bcv0_39 ._btn_6bcv0_46:hover{background-color:#bbb}._second_section_6bcv0_28 ._btn_6bcv0_46:active,._fourth_section_6bcv0_47 ._btn_6bcv0_46:active,._fifth_section_6bcv0_39 ._btn_6bcv0_46:active{background-color:#aaa}._third_section_6bcv0_72{width:78%;margin-top:1rem}._fourth_section_6bcv0_47{display:flex;align-items:center;justify-content:center;width:78%;margin-top:2rem;font-size:1.1rem}._fifth_section_6bcv0_39{width:78%;margin-top:1rem}._sixth_section_6bcv0_91{width:78%;margin-top:1rem;font-size:1.1rem}._second_header_6bcv0_97{margin-bottom:2rem;font-size:1.3rem;font-weight:700;text-align:center}._password-table_6bcv0_105{width:100%;margin-bottom:2rem;border-collapse:collapse}._password-table_6bcv0_105 thead th{padding:8px;text-align:left;background-color:#f2f2f2;border:1px solid #ddd}._password-table_6bcv0_105 tbody tr{border-bottom:1px solid #ddd}._password-table_6bcv0_105 tbody td{padding:8px;text-align:left}._password-table_6bcv0_105 tbody tr:nth-child(even){background-color:#f2f2f2}@media (width <= 800px){._main_section_6bcv0_10,._second_section_6bcv0_28,._third_section_6bcv0_72,._fourth_section_6bcv0_47,._fifth_section_6bcv0_39,._sixth_section_6bcv0_91{width:90%}._password_form_6bcv0_22{grid-template-columns:1fr}._password-table_6bcv0_105 tbody tr{display:block;margin-bottom:10px;border:1px solid #ddd;border-radius:5px}._password-table_6bcv0_105 tbody td{display:block;text-align:left}._password-table_6bcv0_105 tr ._password-table_6bcv0_105 td,._password-table_6bcv0_105 thead,._password-table_6bcv0_105 tbody,._password-table_6bcv0_105 th{display:block}._password-table_6bcv0_105 thead{display:none}}._main_3eouk_1{width:90%;margin:2rem auto 0;text-align:center}._main_3eouk_1 ._indicators_3eouk_6{display:flex;justify-content:space-between;width:20rem;margin:.5rem auto 1rem;font-size:.8rem;color:#d3d3d3}._main_3eouk_1 ._active_3eouk_14{color:green}._main_3eouk_1 ._progressContainer_3eouk_17{position:relative;width:20rem;height:.6rem;margin:auto;border-radius:8px;outline:1px solid #ccc}._main_3eouk_1 ._progressBar_3eouk_25{width:0%;height:100%;background:red;transition:all .25s ease-in-out}._main_3eouk_1 input{width:20rem;font-size:1.5rem}._App_wgvvi_1{display:flex;flex-direction:column;align-items:center;justify-content:center;height:90vh}._bg-progress_wgvvi_9{position:relative;width:15rem;height:3rem;overflow:hidden;background-color:#0000ff4d;border-radius:50px}._fg-progress_wgvvi_18{position:absolute;width:15rem;height:5rem;background-color:#0000ff7f;transition:transform 10ms ease-in-out}._controls_wgvvi_26{display:flex;justify-content:space-around;width:70%;margin-top:2.5rem}._controls_wgvvi_26 button{width:7rem;padding:1.2rem 2rem;color:#fff;background-color:#0000ff7f;border:none}._controls_wgvvi_26 button:hover{color:#0000ff7f;background-color:#0000ff4d;transform:scale(1.1)}._slidecontainer_wgvvi_47{width:100%;margin-top:2rem;text-align:center}._QRCodeGenerator_a1hdg_2{display:flex;flex-direction:column;align-items:center;margin-top:20px}._input-field_a1hdg_9{width:100%;padding:10px;margin-bottom:10px;font-size:16px;border:1px solid #ccc;border-radius:5px}._generate-button_a1hdg_18{padding:10px 20px;font-size:16px;color:#fff;cursor:pointer;background-color:#007bff;border:none;border-radius:5px}._generate-button_a1hdg_18:hover{background-color:#0056b3}._qrcode_a1hdg_32{margin-top:20px}._container_1400s_1{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0;text-align:center}._input-field_1400s_10{padding:.6rem 3rem}._quote_1400s_14{margin:1rem 0;font-size:20px;font-weight:700}._author_1400s_20{margin:1rem 0;text-decoration:underline;text-underline-offset:5px}._generate-button_1400s_26{padding:.6em 1.2em;font-family:inherit;font-size:1em;font-weight:500;color:#fff;cursor:pointer;background-color:#1a1a1a;border:1px solid transparent;border-radius:8px;transition:all .25s}._generate-button_1400s_26:hover{background-color:#646cff}._stack_u1sn7_1{max-width:500px;padding:20px;margin:1rem auto 0rem;border:1px solid #ccc;border-radius:5px;box-shadow:0 2px 4px #0000001a}._stack_u1sn7_1 h1{margin-bottom:20px;font-size:24px;text-align:center;animation:_slide-in_u1sn7_1 1s ease-in-out}._stack_u1sn7_1 input[type=text]{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:3px}._stack_u1sn7_1 ._btn_root_u1sn7_25{display:flex;justify-content:center;margin-bottom:20px;flex-wrap:wrap;row-gap:1rem}._stack_u1sn7_1 ._btn_root_u1sn7_25 button{padding:10px 20px;margin:0 5px;color:#fff;cursor:pointer;background-color:#007bff;border:none;border-radius:3px}._stack_u1sn7_1 ._btn_root_u1sn7_25 button:hover{background-color:#0056b3}._stack_u1sn7_1 hr{margin:10px 0;border:none;border-top:1px solid #ccc}._stack_u1sn7_1 h3{margin-bottom:10px;font-size:18px;text-align:center}._stack_u1sn7_1 p{margin:5px 0}._stack_u1sn7_1 ._stackElement_u1sn7_62{padding:.1rem;margin-bottom:1rem;background-color:#007bff34;border-radius:3px}._stack_u1sn7_1 ._stackElement_u1sn7_62 p{text-align:center}@keyframes _slide-in_u1sn7_1{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}._App_33mq4_1{margin-top:2rem;text-align:center}._star_33mq4_6{font-size:30px;cursor:pointer}._watch-container_g783o_1{display:flex;align-items:center;justify-content:center;margin-top:1rem}._watch_g783o_1{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:250px;height:250px;padding:20px;text-align:center;background:#b4161b;background:linear-gradient(145deg,#cacaca,#f0f0f0);border-radius:50%;box-shadow:0 0 20px #bebebe}._watch-heading_g783o_24{font-size:30px;font-weight:900;color:purple}._watch-timer_g783o_30{font-size:30px;font-weight:900;color:#b4161b}._watch-btn_g783o_36{height:40px;padding:0 10px;margin:20px 2px 0;font-weight:700;color:#fff;text-transform:uppercase;background:linear-gradient(-45deg,#e81cff 0%,#40c9ff 100%);border:none;border-radius:12px}._watch-btn_g783o_36:disabled{cursor:not-allowed;background:linear-gradient(-45deg,#e81cff80 0%,#40c9ff80 100%)}@media (width <= 300px){._watch_g783o_1{width:230px;height:230px;padding:0}._watch-heading_g783o_24{font-size:20px}._watch-btn_g783o_36{margin:5px}}._App_1hyma_1{max-width:32rem;margin:auto}._textarea_1hyma_6{display:block;width:100%;resize:vertical}._buttonBox_1hyma_12{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1rem}._buttonBox_1hyma_12>button{padding:.4rem}._output_1hyma_22{margin-top:2rem;text-align:center}._output_1hyma_22>strong{font-size:large}._output_1hyma_22>p{margin-top:1rem;margin-bottom:0}._color_1bdox_1{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:auto}form._form_1bdox_9{display:flex;flex-direction:column;align-items:center;justify-content:space-around;height:70px}._containers_1bdox_17{display:flex;flex-wrap:wrap;justify-content:center;width:90%;max-width:200px;margin-top:10px}._container_1bdox_17{width:30%;padding:10px;text-align:center;border:1px solid black}._containerColor_1bdox_33{width:30%;padding:10px;color:#fff;text-align:center;background-color:red;border:1px solid black}._numberInput_1bdox_42{height:25px;padding:0 10px;margin:10px 0;border:1px solid black;border-radius:15px}input{cursor:pointer}._container_12wso_1{display:flex;align-items:center;justify-content:center}._card_12wso_7{width:30rem;padding:20px;border:1px solid #ccc;border-radius:5px;box-shadow:0 0 10px #0003}._cardTitle_12wso_15{text-align:center}._formGroup_12wso_19{margin:20px 0}._inputGroup_12wso_23{display:flex;align-items:center}._input_12wso_23{padding:5px;margin:0}._select_12wso_33{padding:5px;margin:0 10px}._convertButton_12wso_38{margin-top:10px}._outputGroup_12wso_42{display:flex;flex-direction:column;align-items:center;justify-content:space-between;margin-top:20px}@media screen and (width >= 450px){._outputGroup_12wso_42{flex-direction:row}}._container_1rajw_1{display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;text-align:center}._mx-5_1rajw_10{margin:20px}._grid-container_1rajw_14{display:grid;grid-template-columns:repeat(3,1fr);width:300px;margin:0 auto;overflow:hidden;background-color:#fff}._grid-item_1rajw_23{height:80px;padding:20px;font-size:30px;text-align:center;cursor:pointer;border:1px solid grey;transition:all .2s ease}._grid-item_1rajw_23:hover{box-shadow:#32325d26 0 30px 60px -12px inset}._container_1rajw_1 button{padding:15px;margin:20px auto;font-weight:700;border:none;border-radius:8px}@media (width <= 300px){._grid-container_1rajw_14{width:100%}._grid-item_1rajw_23{height:70px}}._main_21evc_2{width:90%;margin:auto;margin-top:1rem;text-align:center}._main_21evc_2 form{display:flex;flex-direction:column;gap:1rem;align-items:center}._main_21evc_2 input,._main_21evc_2 select{padding:.5em;font-size:1rem}._main_21evc_2 label{display:flex}._main_21evc_2 #_message_21evc_1{min-width:25ch}._main_21evc_2 [for=duration]{align-items:center}._main_21evc_2 ._toastContainer_21evc_28{position:fixed;display:flex;flex-direction:column;gap:.5rem}._main_21evc_2 ._toast_21evc_28{padding:.5em;background-color:pink;border-radius:.25rem;box-shadow:0 4px 10px #00000040}._main_21evc_2 ._success_21evc_40{background-color:#00b300}._main_21evc_2 ._error_21evc_43{background-color:red}._main_21evc_2 ._warning_21evc_46{background-color:orange}._main_21evc_2 ._info_21evc_49{background-color:#ffffe0}._main_21evc_2 ._toast_21evc_28:before{min-width:1rem;padding:.1em .5em;font-size:.85em;font-weight:700}._main_21evc_2 ._success_21evc_40:before{content:"✓"}._main_21evc_2 ._error_21evc_43:before{content:"✗"}._main_21evc_2 ._warning_21evc_46:before{content:"⚠"}._main_21evc_2 ._info_21evc_49:before{content:"ⓘ"}._main_21evc_2 ._remove_21evc_70{all:unset;margin-left:1em;cursor:pointer}._main_21evc_2 ._tcLeftTop_21evc_75{top:1rem;left:1rem}._main_21evc_2 ._tcLeftBottom_21evc_79{bottom:1rem;left:1rem}._main_21evc_2 ._tcRightTop_21evc_83{top:1rem;right:1rem}._main_21evc_2 ._tcRightBottom_21evc_87{right:1rem;bottom:1rem}._main_21evc_2 ._tcLeftTop_21evc_75 ._toast_21evc_28,._main_21evc_2 ._tcLeftBottom_21evc_79 ._toast_21evc_28{animation:_appear-from-left_21evc_1 .1s ease-in forwards}._main_21evc_2 ._tcLeftTop_21evc_75 ._toast_21evc_28._fade-out-left_21evc_95,._main_21evc_2 ._tcLeftBottom_21evc_79 ._toast_21evc_28._fade-out-left_21evc_95{animation:_fade-out-to-left_21evc_1 .1s ease-in forwards}@keyframes _appear-from-left_21evc_1{0%{transform:translate(-200%)}to{transform:translate(0)}}@keyframes _fade-out-to-left_21evc_1{0%{transform:translate(0)}to{transform:translate(-200%)}}._main_21evc_2 ._tcRightTop_21evc_83 ._toast_21evc_28,._main_21evc_2 ._tcRightBottom_21evc_87 ._toast_21evc_28{animation:_appear-from-right_21evc_1 .1s ease-in forwards}._main_21evc_2 ._tcRightTop_21evc_83 ._toast_21evc_28._fade-out-right_21evc_119,._main_21evc_2 ._tcRightBottom_21evc_87 ._toast_21evc_28._fade-out-right_21evc_119{animation:_fade-out-right_21evc_119 .1s ease-in forwards}@keyframes _appear-from-right_21evc_1{0%{transform:translate(200%)}to{transform:translate(0)}}@keyframes _fade-out-right_21evc_119{0%{transform:translate(0)}to{transform:translate(200%)}}._App_nex6d_1{margin:auto}._App_nex6d_1 button{padding:.5rem .75rem;color:#fff;border:none;border-radius:6px;transition:all .33s;transform:scale(1)}._App_nex6d_1 form{width:100%;margin-top:10px}._App_nex6d_1 form input{width:100%;height:80%;padding:.5rem;border-radius:6px}._App_nex6d_1 form button{margin-top:10px;margin-right:.5rem;background-color:#00f}._App_nex6d_1 ._item_nex6d_27{display:flex;align-items:center;justify-content:space-between;margin-top:10px}._App_nex6d_1 ._item_nex6d_27 ._editBtn_nex6d_33{background-color:green}._App_nex6d_1 ._item_nex6d_27 ._deleteBtn_nex6d_36{margin-left:10px;background-color:red}._App_nex6d_1 ._item_nex6d_27 ._completed_nex6d_40{font-style:italic;color:#a9a9a9;text-decoration:line-through}._App_nex6d_1 button:hover{transition:all .33s;transform:scale(1.1)}._App_nex6d_1 button:disabled{cursor:not-allowed;background-color:gray;transform:scale(1)}@media screen and (width >= 768px){._App_nex6d_1{width:50%}}._container_10vfd_1{display:flex;align-items:center;justify-content:center;width:100%}._container_10vfd_1 *{box-sizing:border-box;padding:0;margin:0}._clockWrapper_10vfd_14{max-width:500px;padding:1.5rem;background-color:#f3f3f3;border:2px solid #ccc;border-radius:1rem}._timeSection_10vfd_22{display:flex;gap:1.5rem;margin-bottom:1.5rem}._timeSection_10vfd_22 div{display:flex;gap:.5rem;align-items:center}._timeSection_10vfd_22 p{font-size:1.8rem;font-weight:700}._timeAdjustment_10vfd_39{display:flex;gap:.5rem;align-items:center}._timeAdjustment_10vfd_39 ._timeAdjustmentButton_10vfd_45{display:flex;flex-direction:column;gap:0}._timerDisplay_10vfd_51{display:flex;flex-direction:column;gap:1rem;align-items:center}._timerDisplay_10vfd_51 p:first-child{font-size:1.5rem;font-weight:700;text-transform:capitalize}._timerDisplay_10vfd_51 p span{font-size:3rem;font-weight:700}._buttonGroup_10vfd_69{display:flex}._buttonGroup_10vfd_69 button,._timeAdjustmentButton_10vfd_45 button{color:#007bff;cursor:pointer;background-color:transparent;border:none;transition:color .2s ease}._buttonGroup_10vfd_69 button:hover,._timeAdjustmentButton_10vfd_45 button:hover{color:#0056b3}._lastMinute_10vfd_87{color:red}._container_1twmk_2{max-width:600px;padding:20px;margin:20px auto 0;background-color:#fff;border-radius:5px}._container_1twmk_2 h1{color:#333;text-align:center}._container_1twmk_2 textarea{width:100%;height:150px;padding:10px;margin-bottom:10px;resize:none;border:1px solid #ccc;border-radius:5px}._container_1twmk_2 ._controls_1twmk_23{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}._container_1twmk_2 #_char-limit_1twmk_1{width:80px}._container_1twmk_2 button{padding:8px 16px;margin-top:10px;color:#fff;cursor:pointer;background-color:#333;border:none;border-radius:5px}._container_1twmk_2 button:hover{background-color:#555}._container_1twmk_2 ._highlight_1twmk_44{margin-top:20px}._container_1twmk_2 input[type=text]{width:200px;padding:5px;margin-right:10px;border:1px solid #ccc;border-radius:5px}._container_1twmk_2 ._highlight-button_1twmk_54{color:#fff;background-color:#f2a154}._container_1twmk_2 ._highlight-button_1twmk_54:hover{background-color:#f93}._container_1twmk_2 ._highlighted_1twmk_61{font-weight:700;background-color:#ff0}._sport_1g70d_1{display:flex;justify-content:center;min-height:40vh}._container_1g70d_7{width:400px;padding:20px;text-align:center;background-color:#fff;border-radius:10px}._header_1g70d_15{padding:10px;font-size:24px}._question_1g70d_20{margin:20px 0;font-size:18px;color:#333}._answers_1g70d_26{display:flex;gap:10px;justify-content:center;margin-top:20px}._button_1g70d_33{padding:10px 20px;font-size:16px;color:#fff;cursor:pointer;background-color:#007bff;border:none;border-radius:5px;transition:background-color .3s}._button_1g70d_33:hover{background-color:#0056b3}._buttonStartOver_1g70d_48{font-size:16px;color:#fff;cursor:pointer;background-color:#ff5050;border:none;border-radius:5px;transition:background-color .3s}._buttonStartOver_1g70d_48:hover{background-color:#e63939}._openbtn_1gnwd_1{background:green;color:#fff;padding:1rem 2rem;border-radius:.2rem}._overlay_1gnwd_8{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:2rem;background:rgba(0,0,0,.5)}._modalWrapper_1gnwd_18{background:white;max-width:28rem;padding:1.5rem;border-radius:12px}._modalWrapper_1gnwd_18 p{font-size:14px}@media only screen and (width >= 640px){._modalWrapper_1gnwd_18{padding:2rem}}._closebtn_1gnwd_34{background:red;color:#fff;padding:.5rem 1rem;border-radius:.2rem}._container_5ie15_1{padding:20px;text-align:center}._languageList_5ie15_6{display:flex;flex-wrap:wrap;justify-content:center}._languageCard_5ie15_12{max-width:300px;padding:10px;margin:10px;text-align:left;background-color:#f7f7f7;border:1px solid #ccc;border-radius:8px;box-shadow:2px 2px 5px #0000001a;transition:transform .2s}._languageCard_5ie15_12:hover{transform:translateY(-3px)}._languageName_5ie15_28{margin-top:0;font-size:20px;color:#007bff}._info_5ie15_34{margin:5px 0;font-size:16px;color:#555}._heading_5ie15_40{font-size:24px;color:#333}._avatar_1jv0o_1{display:inline-block;width:1.5rem;height:1.5rem;border-radius:1000px;box-shadow:0 0 0 2px #000}._avatarGroup_1jv0o_11{display:flex;margin:auto;width:max-content}._avatarGroup_1jv0o_11>*:not(:first-child){margin-left:-.3rem}._challengeGrid_140w8_1{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:1.5rem;margin:2rem 0}._challengeCard_140w8_8{position:relative;padding:10px;overflow:hidden;background-color:#fff;border:1px solid rgba(0,0,0,.15);box-shadow:0 6px 8px #00000026;transition:all .2s ease-in-out}._challengeCard_140w8_8:hover{box-shadow:0 6px 8px #0000004d;transform:scale(1.05)}._challengeCard_140w8_8 ._avatarContainer_140w8_21>*:not(:first-child){margin-top:.5rem}._challengeCard_140w8_8 h3{font-size:1.25rem;font-weight:500;color:green}._challengeCard_140w8_8._disabled_140w8_29 h3{color:gray}._challengeCard_140w8_8._disabled_140w8_29{cursor:not-allowed;box-shadow:0 3px 4px #0000001a}._challengeCard_140w8_8._disabled_140w8_29:hover{transform:scale(1)}._challengeCard_140w8_8 a{color:#d2691e;text-decoration:none}._challengeCard_140w8_8 ._new_140w8_43{position:absolute;top:0;right:0;width:4rem;font-size:1rem;color:#fff;text-align:center;background-color:#545454}._challengeCard_140w8_8 ._developer_140w8_53{display:flex;align-items:center;justify-content:center;font-size:.8rem;color:#000}._challengeCard_140w8_8 ._developer_140w8_53>img{width:25px;height:25px;margin-right:.5rem;border-radius:50%}._challengeCard_140w8_8 ._name_140w8_66{color:#000}._challengeCard_140w8_8._medium_140w8_69 h3{color:#4b4bff}._challengeCard_140w8_8._hard_140w8_72 h3{color:#ff4500}._navbar_bgl2j_1{display:flex;gap:2rem;align-items:center;padding:1rem;background:linear-gradient(180deg,lavenderblush 0%,white 100%)}._navbar_bgl2j_1 ._logo_bgl2j_8{display:flex;flex-grow:1;gap:.5rem;align-items:center}._navbar_bgl2j_1 ._logo_bgl2j_8 img{width:40px;height:40px}._navbar_bgl2j_1 ._logo_bgl2j_8 span{font-size:1.2rem;font-weight:500;color:#000}._navbar_bgl2j_1 ._links_bgl2j_23{display:none;gap:2rem;align-items:center;margin-left:auto}._navbar_bgl2j_1 ._github_bgl2j_29{width:30px;height:30px;vertical-align:text-bottom}@media screen and (width >= 768px){._navbar_bgl2j_1 ._links_bgl2j_23{display:flex}}._topBtn_1lydx_1{margin:0;display:flex;justify-items:center;align-items:center;background:none;border:none;border-radius:100%;background-color:#1f06ffaf;padding:15px;cursor:pointer;position:fixed;right:2.5rem;bottom:2rem;transition:all;transition-duration:.3s}._topBtn_1lydx_1 svg{color:#fff}._topBtn_1lydx_1:hover{transform:scale(1.1);transition:all;transition-duration:.3s}._heading_ngxka_1{margin-bottom:3rem;text-align:center}._contributionContainer_ngxka_6{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center}._contributor_ngxka_13{display:inline-block;width:60px;height:60px;margin:0 1rem;transition:.5s all}._contributor_ngxka_13 img{width:100%;height:100%;border:2px solid orange;border-radius:50%}._contributor_ngxka_13:hover{transform:scale(1.1)}@media screen and (width >= 768px){._contributor_ngxka_13{width:80px;height:80px}}._heading_1m5el_1{margin-bottom:3rem;text-align:center}._features_1m5el_6{display:flex;flex-direction:column;gap:max(5%,50px);width:100%;padding:0 5%;margin-bottom:4rem}._features_1m5el_6 article{flex-basis:0;flex-grow:1;padding:1rem;text-align:center;border-radius:8px;box-shadow:0 0 4px #00000080}._features_1m5el_6 article h3{font-size:1.4rem;font-weight:500}@media screen and (width >= 768px){._features_1m5el_6{flex-direction:row}}._footer_1l7qe_1{padding-top:1rem;padding-bottom:1rem;margin:3rem 0 1rem;color:#fff;text-align:center;background-color:#6554ff;border-top:2px solid lightgrey}._hero_16a9z_1{display:flex;flex-direction:column;justify-content:space-between;text-align:center}._hero_16a9z_1 p{margin-bottom:2rem}._figure_16a9z_11{margin:0;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}._figure_16a9z_11 ._heroImage_16a9z_19{width:min(80vh,80vw);aspect-ratio:1.5217391304}._link_16a9z_24 a{display:inline-block;padding:1rem;margin:.5rem 0;font-weight:400;color:#fff;background-color:#1f06ffaf;border-radius:8px;box-shadow:0 4px 4px #0000001f}@media screen and (width >= 768px){._hero_16a9z_1{flex-direction:row;text-align:left}._hero_16a9z_1 p{margin-bottom:3rem}._figure_16a9z_11 ._heroImage_16a9z_19{width:min(60vh,60vw)}}._heading_1jxz1_1{text-align:center}._testimonial_1jxz1_5{width:70%;padding:1rem;margin:auto}._testimonial_1jxz1_5 ._heading_1jxz1_1{display:flex;gap:25px;align-items:center;justify-content:center}._testimonial_1jxz1_5 ._heading_1jxz1_1 img{width:80px;height:80px;border-radius:50%}._testimonial_1jxz1_5 ._heading_1jxz1_1 h4,._testimonial_1jxz1_5 ._heading_1jxz1_1 h5{font-weight:500}._testimonial_1jxz1_5 p{padding:.5rem 0 1rem;font-weight:400;text-align:center}@media screen and (width >= 768px){._testimonial_1jxz1_5{width:50%}}._container_117z9_1{max-width:min(90%,1200px);margin:0 auto}._hr_117z9_6{margin:3rem 0;border:none;border-top:1px solid lightgray} +@charset "UTF-8";@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap";html{box-sizing:border-box;font-family:Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;scroll-behavior:smooth}*,*:before,*:after{box-sizing:inherit}html,body{margin:0}a{color:#00f;text-decoration:none}.container{width:90%;margin:auto}.text-center{text-align:center}button{cursor:pointer}.btn.btn-primary{padding:10px 16px;cursor:pointer;background-color:#0ff;border:1px solid grey;border-radius:4px}._App_150vf_1{margin-top:1rem;text-align:center}._accordion_150vf_6{padding:10px;margin-bottom:10px;font-size:14px;text-align:left;border:1px solid rgb(218,212,212)}._accordion-title_150vf_14{display:flex;align-items:center;justify-content:space-between}._accordion-icon_150vf_20{display:flex;align-items:center;align-self:center;justify-content:center;width:2rem;min-width:2rem;height:2rem;margin-left:1rem;font-size:20px;color:#fff;cursor:pointer;background:transparent;background:rgb(209,209,209);border-color:transparent;border-radius:50%}._main_nknv7_1{width:90%;margin:auto;text-align:center}._main_nknv7_1 input{width:94%;padding:.5rem 1rem;margin-bottom:.5rem;font-size:1rem}._main_nknv7_1 ._suggestions_nknv7_12{width:93%;padding-inline-start:0;margin:auto}._main_nknv7_1 li{display:flex;align-items:center;height:40px;padding-left:1rem;margin-bottom:.1rem;list-style:none;cursor:pointer;background-color:beige}._main_nknv7_1 li._highlight_nknv7_27{background-color:khaki;outline:1px solid}@media (width >= 768px){._main_nknv7_1 input,._main_nknv7_1 ._suggestions_nknv7_12{width:50%}}._main_nknv7_1 ._loader_nknv7_37{width:25px;height:25px;margin:25px auto auto;border:2px solid black;border-right-width:0;border-left-width:0;border-radius:50%;animation:_loader_nknv7_37 linear 1s infinite}@keyframes _loader_nknv7_37{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._App_7yaca_1 ._container_7yaca_1{display:flex;flex-direction:column;align-items:center;justify-content:center}._App_7yaca_1 ._container_7yaca_1 ._input_7yaca_7{display:flex;flex-direction:column;gap:5px}._App_7yaca_1 ._container_7yaca_1 ._input_7yaca_7 input{width:100px;padding:10px;margin-bottom:10px;font-weight:700;background-color:#87ceeb;border-radius:10px;outline:none}._App_7yaca_1 ._container_7yaca_1 ._input_7yaca_7 ._calculateButton_7yaca_21{align-self:center;width:fit-content;padding:5px 15px;color:#fff;cursor:pointer;background-color:#000;border-radius:5px}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30{padding:0 20px;margin:20px 0;background-color:#deb887;border-radius:10px}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 h1,._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 h3{margin:10px;text-align:center}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 ._ranges_7yaca_41{padding-top:16px;font-weight:700}._App_7yaca_1 ._container_7yaca_1 ._card_7yaca_30 p{margin:5px}._navbar_6f1bq_1{display:flex;gap:2rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;background:linear-gradient(180deg,lavenderblush 0%,white 100%);box-shadow:0 4px 4px #0000001a}._navbar_6f1bq_1 ._left_6f1bq_11{display:flex;flex:1;gap:.5rem;align-items:center}._navbar_6f1bq_1 ._left_6f1bq_11 ._back_6f1bq_17{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}._navbar_6f1bq_1 ._left_6f1bq_11 ._logo_6f1bq_25{display:flex;flex-grow:1;gap:.5rem;align-items:center}._navbar_6f1bq_1 ._left_6f1bq_11 ._logo_6f1bq_25 img{width:40px;height:40px}._navbar_6f1bq_1 ._left_6f1bq_11 ._logo_6f1bq_25 span{font-size:1.2rem;font-weight:500;color:#000}._navbar_6f1bq_1 h1{margin:0}._navbar_6f1bq_1 ._right_6f1bq_43{flex:1;text-align:right}._navbar_6f1bq_1 ._right_6f1bq_43 ._github_6f1bq_47{width:30px;height:30px;vertical-align:text-bottom}._container_10e68_1{width:100%;height:100%;text-align:center}._button_10e68_7{padding:10px 20px;margin:2rem auto;font-size:1.25rem;font-weight:500;border:none;border-radius:8px;box-shadow:0 2px 4px #0000}._button_10e68_7:active{transform:scale(.98)}._color-mixer-container_oo1rc_1{display:flex;flex-direction:column;align-items:center;justify-content:center;width:40%;min-width:300px;margin:0 auto;background-color:#f5f5f5;transition:background-color .3s}._color-box-top_oo1rc_13{display:flex;align-items:center;justify-content:center;width:100%;height:250px;background-color:#fff;border:2px solid #333;border-radius:10px}._color-box-top_oo1rc_13 p{font-size:24px;color:#333;mix-blend-mode:difference}._color-inputs_oo1rc_30{display:flex;flex-direction:column;gap:20px;align-items:center;padding:20px;background-color:#fff;border-radius:10px}._color-input_oo1rc_30{display:flex;gap:10px;align-items:center}._color-input_oo1rc_30 label{font-size:16px;color:#333}input[type=color]{width:60px;height:60px;border:none}._mix-button_oo1rc_57{padding:10px 20px;color:#fff;cursor:pointer;background-color:#ff5733;border:none;border-radius:5px;transition:background-color .3s}._mix-button_oo1rc_57:hover{background-color:#e83e1e}._main_pfcqp_1{text-align:center}._size_pfcqp_5{display:flex;flex-direction:column;gap:10px;justify-content:center;margin:20px 0}._grid_pfcqp_13{margin:1rem auto}._cell_pfcqp_17{width:50px;height:50px;padding-left:0;border:1px solid black}@media screen and (width >= 450px){._size_pfcqp_5{flex-direction:row}}._main_1cx3l_1{text-align:center}._main_1cx3l_1 section{margin:1rem 0}._main_1cx3l_1 button{padding:.25rem .5rem;margin:0 .5rem;font-size:1.15rem;cursor:pointer}._main_1cx3l_1 input{width:5rem;padding:.15rem;margin-left:1rem;font-size:1.15rem}._select_17qmd_1{padding:.25rem;font-size:1rem}._form_17qmd_6{display:flex;flex-flow:row wrap;gap:25px;justify-content:space-between;margin-top:20px}._form_17qmd_6 ._formField_17qmd_13{white-space:nowrap}._formInput_17qmd_17{padding:.25rem;font-size:1rem}._form_1ufkd_2{max-width:400px;margin:20px auto;padding:20px;box-shadow:0 2px 8px #0003;border-radius:8px;display:flex;flex-direction:column;gap:15px}._form_1ufkd_2 input,._form_1ufkd_2 select,._form_1ufkd_2 button{padding:10px;font-size:16px;border:1px solid #ccc;border-radius:4px;transition:border-color .2s}._form_1ufkd_2 input:focus,._form_1ufkd_2 select:focus{border-color:#007bff;outline:none}._form_1ufkd_2 button{background-color:#007bff;color:#fff;cursor:pointer;border:none}._form_1ufkd_2 button:hover{background-color:#0056b3}._form_1ufkd_2 button:disabled{background-color:#ccc;cursor:not-allowed}._form_1ufkd_2 select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url('data:image/svg+xml;utf8,');background-repeat:no-repeat;background-position:right 10px center;padding-right:30px}._mainContainer_1ynr6_2{max-width:500px;margin:20px auto;padding:20px;box-shadow:0 2px 8px #0000001a;border-radius:8px;background-color:#fff}._mainContainer_1ynr6_2 h2{border-bottom:2px solid #eee;padding-bottom:10px;margin-bottom:15px;font-size:24px;color:#333}._mainContainer_1ynr6_2 ul{list-style-type:none;margin:0;padding:0}._mainContainer_1ynr6_2 li{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #eee}._mainContainer_1ynr6_2 li:last-child{border-bottom:none}._mainContainer_1ynr6_2 ._btnRed_1ynr6_32{padding:5px 10px;font-size:14px;color:#fff;background-color:#ff4136;border:none;border-radius:4px;cursor:pointer;transition:background-color .2s}._mainContainer_1ynr6_2 ._btnRed_1ynr6_32:hover{background-color:#ff3013}._mainContainer_1ynr6_2 ._btnRed_1ynr6_32:disabled{background-color:#ccc;cursor:not-allowed}._app_1o28y_1{margin-top:1rem;font-size:1.2rem}._list_1o28y_6{display:flex;align-items:center;height:1.5em;padding-left:0;margin-bottom:.5em;list-style-type:none}._list_1o28y_6 button{font-size:1em;cursor:pointer;background-color:transparent;border:none}._list_1o28y_6._editList_1o28y_22{padding:1px 6px}._list_1o28y_6 input{font-size:1em}._editableInputContainer_1o28y_30{position:relative}._editableInputError_1o28y_34{position:absolute;top:100%;background-color:#7f1d1d;border:1px solid red;font-size:small;color:#f87171;padding:.5rem}._editableInputError_1o28y_34>p{margin:0}._indent_1o28y_48{margin-left:30px}._controls_1o28y_52{display:flex;gap:.5em;margin-left:2rem}._controls_1o28y_52 button{display:none;align-items:center;justify-content:center;padding:0;cursor:pointer;background-color:transparent;border:none}._list_1o28y_6:hover button{display:block}._list_1o28y_6[data-root=true]:hover div button:first-child,._list_1o28y_6[data-root=true]:hover div button:last-child{display:none}:root{--font-m: 16px}._App_fw4tl_7{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;margin:0}._meal_container_fw4tl_17{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:50%;padding:1rem 1.3rem;margin-top:3rem;background-color:#9fa732;border:.2rem solid black}._meal_name_fw4tl_29{font-size:1.6rem;text-align:center}._meal_img_fw4tl_34{width:100%;height:300px}._tags_container_fw4tl_39,._modal_tags_container_fw4tl_40{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;padding-inline-start:0;font-size:1.2rem;list-style:none}._tag_fw4tl_39,._modal_tag_fw4tl_40{padding:.4rem .7rem;cursor:pointer;background-color:#e2b044;transition:all .3s ease-in}._tag_fw4tl_39:hover,._modal_tag_fw4tl_40:hover{color:#ececec;background-color:#099}dialog{top:3%;width:70%}._modal_meal_img_fw4tl_69{width:100%;height:350px}._modal_instruction_fw4tl_74{font-size:1.2rem;line-height:1.6rem}._foodBtn_fw4tl_79,._openBtn_fw4tl_80{padding:.4rem .9rem;font-size:1.3rem;font-weight:700;cursor:pointer;background-color:#fff;border:.2rem solid black;transition:background-color .2s ease-in}._openBtn_fw4tl_80{margin-top:2rem;font-size:1.1rem}._foodBtn_fw4tl_79:hover,._openBtn_fw4tl_80:hover{background-color:#eee}._foodBtn_fw4tl_79:active,._openBtn_fw4tl_80:active{background-color:#ddd}._closeBtn_fw4tl_105{position:absolute;top:-1.3rem;right:-1.3rem;padding:0 .6rem;font-size:2rem;font-weight:700;color:#fff;cursor:pointer;background-color:#df4848;border-radius:50%;transition:background-color .2s ease-in}._closeBtn_fw4tl_105:hover{background-color:#c74040}._closeBtn_fw4tl_105:active{background-color:#af3737}._recipe_table_fw4tl_128{width:100%;margin:1.8rem auto;font-size:1rem;border-collapse:collapse}._recipe_table_fw4tl_128 th,._recipe_table_fw4tl_128 td{height:3.12rem;padding-left:1.25rem;text-align:left}._recipe_table_fw4tl_128 th{color:#fff;background-color:#9fa732}._recipe_table_fw4tl_128 tr:nth-child(even){background-color:#f9ffa3}@media screen and (width <= 768px){._meal_container_fw4tl_17{width:88%;padding:.5rem}dialog{width:88%}._meal_name_fw4tl_29{font-size:1.4rem}._meal_img_fw4tl_34{height:200px}._tags_container_fw4tl_39,._modal_tags_container_fw4tl_40{font-size:1rem}._modal_meal_img_fw4tl_69{height:250px}._modal_instruction_fw4tl_74{font-size:1rem;line-height:1.4rem}._foodBtn_fw4tl_79,._openBtn_fw4tl_80{font-size:1.1rem}._closeBtn_fw4tl_105{top:-.5rem;right:-.5rem;font-size:1.5rem}th,td{height:40px;padding-left:10px}}@media screen and (width >= 1300px){._meal_container_fw4tl_17{width:40%}dialog{width:60%}}@media screen and (width >= 1700px){._meal_container_fw4tl_17{width:35%}dialog{width:55%}}._app_j2t5p_1{display:flex;flex-direction:column;margin:10px auto}._app_j2t5p_1 input{height:30px;padding:20px;text-align:center;outline:none}._app_j2t5p_1 ._widget_j2t5p_14{display:flex;flex-direction:column;justify-content:space-around;margin-top:5px}._app_j2t5p_1 ._text_j2t5p_21 p{text-align:center}._app_j2t5p_1 form{display:flex;flex-direction:column}._app_j2t5p_1 form label{padding:10px}._app_j2t5p_1 form button{min-width:40%;padding:10px;margin-top:10px;font-size:16px;cursor:pointer;border:none}@media (width >= 768px){._app_j2t5p_1{width:50%;max-width:500px}._app_j2t5p_1 ._widget_j2t5p_14{flex-direction:row}}._image-gallery-container_3b420_2{margin:20px;text-align:center}._gallery-para_3b420_7{text-decoration:underline}._image-container_3b420_11{display:flex;flex-wrap:wrap;gap:20px;justify-content:center}._image-wrapper_3b420_18{cursor:pointer;transition:transform .2s ease-in-out}._image-wrapper_3b420_18:hover{transform:scale(1.1)}._gallery-image_3b420_27{width:200px;height:200px;object-fit:cover;border-radius:10px;box-shadow:0 0 5px #0000004d}._selected-image_3b420_36{margin-top:40px;text-align:center}._selected-heading_3b420_41{margin-bottom:10px;font-size:20px}._selected-img_3b420_46{max-width:100%;border-radius:10px;box-shadow:0 0 10px #0000007f}._loader_1hfl7_1{width:60px;height:60px;margin:1rem auto;border:8px solid #f3f3f3;border-top:8px solid #3498db;border-radius:50%;animation:_spin_1hfl7_1 2s linear infinite}@keyframes _spin_1hfl7_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._book-title_1hfl7_21{padding:2em;margin:2em 0;text-align:center;border:1px solid black;border-radius:6px}._result_1y6k8_1{max-width:60rem;padding:1rem;text-align:right;table-layout:fixed;border-spacing:1rem}._result_1y6k8_1 thead{font-size:.7rem}._result_1y6k8_1 tbody{font-size:.85rem;color:#8a2be2}@media screen and (width <= 400px){._result_1y6k8_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:0}._result_1y6k8_1 tbody{font-size:.68rem}}@media screen and (width <= 300px){._result_1y6k8_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;padding:0}._result_1y6k8_1 thead{font-size:.52rem;color:#8a2be2}._result_1y6k8_1 tbody{font-size:.68rem}}._form_1schc_1{max-width:30rem;padding:1rem;margin:1rem 0;border:1px solid black;border-radius:4px}._input-group_1schc_17{display:flex;gap:1.5rem;justify-content:space-evenly}._form_1schc_1 label{display:block;margin-bottom:.25rem;font-size:.6rem;font-weight:700;text-transform:uppercase}._form_1schc_1 input{width:100%;padding:.5rem;font-size:1rem;background-color:transparent;border:1px solid #76c0ae;border-radius:.25rem}._actions_1schc_63{display:flex;gap:1rem;justify-content:center}._button_1schc_75{padding:.5rem 1rem;color:#c2e9e0;cursor:pointer;background:linear-gradient(180deg,#1f584b,#17493d);border:none;border-radius:.25rem}._buttonAlt_1schc_93{cursor:pointer;background:transparent;border:none}._button_1schc_75:hover{background:linear-gradient(180deg,#1b5346,#113c32)}._buttonAlt_1schc_93:hover{color:#91e1d0;background:transparent}@media screen and (width <= 400px){._form_1schc_1{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;max-width:20rem}}._main_kxpla_1{display:flex;flex-flow:column wrap;align-items:center;justify-content:center}:root{--clr-bcg: #fff;--clr-font: #282c35;--clr-primary: #d23669}._darkTheme_1w4bd_7{--clr-bcg: #282c35;--clr-font: #fff;--clr-primary: #d23669}._lightTheme_1w4bd_13{--clr-bcg: #fff;--clr-font: #282c35;--clr-primary: #ffd7c4}._main_1w4bd_19{padding:10px;background-color:var(--clr-bcg);transition:.3s linear}._main_1w4bd_19 h1{color:var(--clr-font)}._main_1w4bd_19 button{padding:10px;margin-top:10px;font-size:16px;color:var(--clr-font);cursor:pointer;background-color:var(--clr-primary);border:none}._layout_1dsxo_1{margin:20px 0;text-align:center}._layout_1dsxo_1 output{font-size:1.25rem}._layout_1dsxo_1 p{margin:0}._button_1dsxo_14{margin:40px 0 20px}._grid_1dsxo_18{display:inline-grid;font-size:2rem}._tile_1dsxo_23{position:relative}._frontface_1dsxo_27,._backface_1dsxo_28{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer;-webkit-user-select:none;user-select:none;background-color:khaki;border-radius:4px;box-shadow:0 5px 4px #00000026;transition:all 1s;transform:rotateY(0);backface-visibility:hidden}._backface_1dsxo_28{transform:rotateY(180deg)}._frontface_1dsxo_27{transform:rotateY(0)}@media screen and (width >= 768px){._grid_1dsxo_18{font-size:3rem}}._pagination_1mnjc_1{width:100%;text-align:center;margin-bottom:2rem}._pagination_1mnjc_1 button{margin:0 1rem}._container_for_table_1pb6f_1{width:100%}._table_1pb6f_5{width:100%;text-align:center}._thead_1pb6f_10 tr th{padding:4px;margin:0;font-size:1.25rem;text-transform:uppercase;background-color:beige;border:1px solid beige}._tbody_1pb6f_19 tr td{padding:4px;margin:0;font-size:1rem;border-right:1px solid beige;border-bottom:1px solid beige;border-left:1px solid beige}._pagination_container_13fvi_1{display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(95%,800px);margin:0 auto}._title_13fvi_10{margin:2rem 0;text-align:center;font-size:2rem;font-weight:700;text-transform:uppercase}._App_6bcv0_1{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:2.5rem}._main_section_6bcv0_10{width:78%;font-size:1.1rem}._main_header_6bcv0_15{margin-bottom:2rem;font-size:1.5rem;font-weight:700;text-align:center}._password_form_6bcv0_22{display:grid;grid-template-columns:1fr 1fr;gap:1rem}._second_section_6bcv0_28{display:flex;flex-direction:column;row-gap:1rem;align-items:flex-start;width:78%;margin-top:1rem;font-size:1.1rem}._second_section_6bcv0_28 ._inputText_6bcv0_38,._fifth_section_6bcv0_39 ._inputText_6bcv0_38{padding:.4rem;margin-right:1.5rem;font-size:1rem;border:.18rem solid black}._second_section_6bcv0_28 ._btn_6bcv0_46,._fourth_section_6bcv0_47 ._btn_6bcv0_46,._fifth_section_6bcv0_39 ._btn_6bcv0_46{padding:.4rem .8rem;margin-right:1.5rem;font-size:1rem;cursor:pointer;background-color:#ccc;border:none;border-radius:.5rem;outline:none;transition:background-color .3s ease-in-out}._second_section_6bcv0_28 ._btn_6bcv0_46:hover,._fourth_section_6bcv0_47 ._btn_6bcv0_46:hover,._fifth_section_6bcv0_39 ._btn_6bcv0_46:hover{background-color:#bbb}._second_section_6bcv0_28 ._btn_6bcv0_46:active,._fourth_section_6bcv0_47 ._btn_6bcv0_46:active,._fifth_section_6bcv0_39 ._btn_6bcv0_46:active{background-color:#aaa}._third_section_6bcv0_72{width:78%;margin-top:1rem}._fourth_section_6bcv0_47{display:flex;align-items:center;justify-content:center;width:78%;margin-top:2rem;font-size:1.1rem}._fifth_section_6bcv0_39{width:78%;margin-top:1rem}._sixth_section_6bcv0_91{width:78%;margin-top:1rem;font-size:1.1rem}._second_header_6bcv0_97{margin-bottom:2rem;font-size:1.3rem;font-weight:700;text-align:center}._password-table_6bcv0_105{width:100%;margin-bottom:2rem;border-collapse:collapse}._password-table_6bcv0_105 thead th{padding:8px;text-align:left;background-color:#f2f2f2;border:1px solid #ddd}._password-table_6bcv0_105 tbody tr{border-bottom:1px solid #ddd}._password-table_6bcv0_105 tbody td{padding:8px;text-align:left}._password-table_6bcv0_105 tbody tr:nth-child(even){background-color:#f2f2f2}@media (width <= 800px){._main_section_6bcv0_10,._second_section_6bcv0_28,._third_section_6bcv0_72,._fourth_section_6bcv0_47,._fifth_section_6bcv0_39,._sixth_section_6bcv0_91{width:90%}._password_form_6bcv0_22{grid-template-columns:1fr}._password-table_6bcv0_105 tbody tr{display:block;margin-bottom:10px;border:1px solid #ddd;border-radius:5px}._password-table_6bcv0_105 tbody td{display:block;text-align:left}._password-table_6bcv0_105 tr ._password-table_6bcv0_105 td,._password-table_6bcv0_105 thead,._password-table_6bcv0_105 tbody,._password-table_6bcv0_105 th{display:block}._password-table_6bcv0_105 thead{display:none}}._main_3eouk_1{width:90%;margin:2rem auto 0;text-align:center}._main_3eouk_1 ._indicators_3eouk_6{display:flex;justify-content:space-between;width:20rem;margin:.5rem auto 1rem;font-size:.8rem;color:#d3d3d3}._main_3eouk_1 ._active_3eouk_14{color:green}._main_3eouk_1 ._progressContainer_3eouk_17{position:relative;width:20rem;height:.6rem;margin:auto;border-radius:8px;outline:1px solid #ccc}._main_3eouk_1 ._progressBar_3eouk_25{width:0%;height:100%;background:red;transition:all .25s ease-in-out}._main_3eouk_1 input{width:20rem;font-size:1.5rem}._App_wgvvi_1{display:flex;flex-direction:column;align-items:center;justify-content:center;height:90vh}._bg-progress_wgvvi_9{position:relative;width:15rem;height:3rem;overflow:hidden;background-color:#0000ff4d;border-radius:50px}._fg-progress_wgvvi_18{position:absolute;width:15rem;height:5rem;background-color:#0000ff7f;transition:transform 10ms ease-in-out}._controls_wgvvi_26{display:flex;justify-content:space-around;width:70%;margin-top:2.5rem}._controls_wgvvi_26 button{width:7rem;padding:1.2rem 2rem;color:#fff;background-color:#0000ff7f;border:none}._controls_wgvvi_26 button:hover{color:#0000ff7f;background-color:#0000ff4d;transform:scale(1.1)}._slidecontainer_wgvvi_47{width:100%;margin-top:2rem;text-align:center}._QRCodeGenerator_a1hdg_2{display:flex;flex-direction:column;align-items:center;margin-top:20px}._input-field_a1hdg_9{width:100%;padding:10px;margin-bottom:10px;font-size:16px;border:1px solid #ccc;border-radius:5px}._generate-button_a1hdg_18{padding:10px 20px;font-size:16px;color:#fff;cursor:pointer;background-color:#007bff;border:none;border-radius:5px}._generate-button_a1hdg_18:hover{background-color:#0056b3}._qrcode_a1hdg_32{margin-top:20px}._container_1400s_1{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0;text-align:center}._input-field_1400s_10{padding:.6rem 3rem}._quote_1400s_14{margin:1rem 0;font-size:20px;font-weight:700}._author_1400s_20{margin:1rem 0;text-decoration:underline;text-underline-offset:5px}._generate-button_1400s_26{padding:.6em 1.2em;font-family:inherit;font-size:1em;font-weight:500;color:#fff;cursor:pointer;background-color:#1a1a1a;border:1px solid transparent;border-radius:8px;transition:all .25s}._generate-button_1400s_26:hover{background-color:#646cff}._stack_u1sn7_1{max-width:500px;padding:20px;margin:1rem auto 0rem;border:1px solid #ccc;border-radius:5px;box-shadow:0 2px 4px #0000001a}._stack_u1sn7_1 h1{margin-bottom:20px;font-size:24px;text-align:center;animation:_slide-in_u1sn7_1 1s ease-in-out}._stack_u1sn7_1 input[type=text]{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:3px}._stack_u1sn7_1 ._btn_root_u1sn7_25{display:flex;justify-content:center;margin-bottom:20px;flex-wrap:wrap;row-gap:1rem}._stack_u1sn7_1 ._btn_root_u1sn7_25 button{padding:10px 20px;margin:0 5px;color:#fff;cursor:pointer;background-color:#007bff;border:none;border-radius:3px}._stack_u1sn7_1 ._btn_root_u1sn7_25 button:hover{background-color:#0056b3}._stack_u1sn7_1 hr{margin:10px 0;border:none;border-top:1px solid #ccc}._stack_u1sn7_1 h3{margin-bottom:10px;font-size:18px;text-align:center}._stack_u1sn7_1 p{margin:5px 0}._stack_u1sn7_1 ._stackElement_u1sn7_62{padding:.1rem;margin-bottom:1rem;background-color:#007bff34;border-radius:3px}._stack_u1sn7_1 ._stackElement_u1sn7_62 p{text-align:center}@keyframes _slide-in_u1sn7_1{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}._App_33mq4_1{margin-top:2rem;text-align:center}._star_33mq4_6{font-size:30px;cursor:pointer}._watch-container_g783o_1{display:flex;align-items:center;justify-content:center;margin-top:1rem}._watch_g783o_1{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:250px;height:250px;padding:20px;text-align:center;background:#b4161b;background:linear-gradient(145deg,#cacaca,#f0f0f0);border-radius:50%;box-shadow:0 0 20px #bebebe}._watch-heading_g783o_24{font-size:30px;font-weight:900;color:purple}._watch-timer_g783o_30{font-size:30px;font-weight:900;color:#b4161b}._watch-btn_g783o_36{height:40px;padding:0 10px;margin:20px 2px 0;font-weight:700;color:#fff;text-transform:uppercase;background:linear-gradient(-45deg,#e81cff 0%,#40c9ff 100%);border:none;border-radius:12px}._watch-btn_g783o_36:disabled{cursor:not-allowed;background:linear-gradient(-45deg,#e81cff80 0%,#40c9ff80 100%)}@media (width <= 300px){._watch_g783o_1{width:230px;height:230px;padding:0}._watch-heading_g783o_24{font-size:20px}._watch-btn_g783o_36{margin:5px}}._App_1hyma_1{max-width:32rem;margin:auto}._textarea_1hyma_6{display:block;width:100%;resize:vertical}._buttonBox_1hyma_12{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1rem}._buttonBox_1hyma_12>button{padding:.4rem}._output_1hyma_22{margin-top:2rem;text-align:center}._output_1hyma_22>strong{font-size:large}._output_1hyma_22>p{margin-top:1rem;margin-bottom:0}._color_1bdox_1{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:auto}form._form_1bdox_9{display:flex;flex-direction:column;align-items:center;justify-content:space-around;height:70px}._containers_1bdox_17{display:flex;flex-wrap:wrap;justify-content:center;width:90%;max-width:200px;margin-top:10px}._container_1bdox_17{width:30%;padding:10px;text-align:center;border:1px solid black}._containerColor_1bdox_33{width:30%;padding:10px;color:#fff;text-align:center;background-color:red;border:1px solid black}._numberInput_1bdox_42{height:25px;padding:0 10px;margin:10px 0;border:1px solid black;border-radius:15px}input{cursor:pointer}._container_12wso_1{display:flex;align-items:center;justify-content:center}._card_12wso_7{width:30rem;padding:20px;border:1px solid #ccc;border-radius:5px;box-shadow:0 0 10px #0003}._cardTitle_12wso_15{text-align:center}._formGroup_12wso_19{margin:20px 0}._inputGroup_12wso_23{display:flex;align-items:center}._input_12wso_23{padding:5px;margin:0}._select_12wso_33{padding:5px;margin:0 10px}._convertButton_12wso_38{margin-top:10px}._outputGroup_12wso_42{display:flex;flex-direction:column;align-items:center;justify-content:space-between;margin-top:20px}@media screen and (width >= 450px){._outputGroup_12wso_42{flex-direction:row}}._container_1rajw_1{display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;text-align:center}._mx-5_1rajw_10{margin:20px}._grid-container_1rajw_14{display:grid;grid-template-columns:repeat(3,1fr);width:300px;margin:0 auto;overflow:hidden;background-color:#fff}._grid-item_1rajw_23{height:80px;padding:20px;font-size:30px;text-align:center;cursor:pointer;border:1px solid grey;transition:all .2s ease}._grid-item_1rajw_23:hover{box-shadow:#32325d26 0 30px 60px -12px inset}._container_1rajw_1 button{padding:15px;margin:20px auto;font-weight:700;border:none;border-radius:8px}@media (width <= 300px){._grid-container_1rajw_14{width:100%}._grid-item_1rajw_23{height:70px}}._main_21evc_2{width:90%;margin:auto;margin-top:1rem;text-align:center}._main_21evc_2 form{display:flex;flex-direction:column;gap:1rem;align-items:center}._main_21evc_2 input,._main_21evc_2 select{padding:.5em;font-size:1rem}._main_21evc_2 label{display:flex}._main_21evc_2 #_message_21evc_1{min-width:25ch}._main_21evc_2 [for=duration]{align-items:center}._main_21evc_2 ._toastContainer_21evc_28{position:fixed;display:flex;flex-direction:column;gap:.5rem}._main_21evc_2 ._toast_21evc_28{padding:.5em;background-color:pink;border-radius:.25rem;box-shadow:0 4px 10px #00000040}._main_21evc_2 ._success_21evc_40{background-color:#00b300}._main_21evc_2 ._error_21evc_43{background-color:red}._main_21evc_2 ._warning_21evc_46{background-color:orange}._main_21evc_2 ._info_21evc_49{background-color:#ffffe0}._main_21evc_2 ._toast_21evc_28:before{min-width:1rem;padding:.1em .5em;font-size:.85em;font-weight:700}._main_21evc_2 ._success_21evc_40:before{content:"✓"}._main_21evc_2 ._error_21evc_43:before{content:"✗"}._main_21evc_2 ._warning_21evc_46:before{content:"⚠"}._main_21evc_2 ._info_21evc_49:before{content:"ⓘ"}._main_21evc_2 ._remove_21evc_70{all:unset;margin-left:1em;cursor:pointer}._main_21evc_2 ._tcLeftTop_21evc_75{top:1rem;left:1rem}._main_21evc_2 ._tcLeftBottom_21evc_79{bottom:1rem;left:1rem}._main_21evc_2 ._tcRightTop_21evc_83{top:1rem;right:1rem}._main_21evc_2 ._tcRightBottom_21evc_87{right:1rem;bottom:1rem}._main_21evc_2 ._tcLeftTop_21evc_75 ._toast_21evc_28,._main_21evc_2 ._tcLeftBottom_21evc_79 ._toast_21evc_28{animation:_appear-from-left_21evc_1 .1s ease-in forwards}._main_21evc_2 ._tcLeftTop_21evc_75 ._toast_21evc_28._fade-out-left_21evc_95,._main_21evc_2 ._tcLeftBottom_21evc_79 ._toast_21evc_28._fade-out-left_21evc_95{animation:_fade-out-to-left_21evc_1 .1s ease-in forwards}@keyframes _appear-from-left_21evc_1{0%{transform:translate(-200%)}to{transform:translate(0)}}@keyframes _fade-out-to-left_21evc_1{0%{transform:translate(0)}to{transform:translate(-200%)}}._main_21evc_2 ._tcRightTop_21evc_83 ._toast_21evc_28,._main_21evc_2 ._tcRightBottom_21evc_87 ._toast_21evc_28{animation:_appear-from-right_21evc_1 .1s ease-in forwards}._main_21evc_2 ._tcRightTop_21evc_83 ._toast_21evc_28._fade-out-right_21evc_119,._main_21evc_2 ._tcRightBottom_21evc_87 ._toast_21evc_28._fade-out-right_21evc_119{animation:_fade-out-right_21evc_119 .1s ease-in forwards}@keyframes _appear-from-right_21evc_1{0%{transform:translate(200%)}to{transform:translate(0)}}@keyframes _fade-out-right_21evc_119{0%{transform:translate(0)}to{transform:translate(200%)}}._App_nex6d_1{margin:auto}._App_nex6d_1 button{padding:.5rem .75rem;color:#fff;border:none;border-radius:6px;transition:all .33s;transform:scale(1)}._App_nex6d_1 form{width:100%;margin-top:10px}._App_nex6d_1 form input{width:100%;height:80%;padding:.5rem;border-radius:6px}._App_nex6d_1 form button{margin-top:10px;margin-right:.5rem;background-color:#00f}._App_nex6d_1 ._item_nex6d_27{display:flex;align-items:center;justify-content:space-between;margin-top:10px}._App_nex6d_1 ._item_nex6d_27 ._editBtn_nex6d_33{background-color:green}._App_nex6d_1 ._item_nex6d_27 ._deleteBtn_nex6d_36{margin-left:10px;background-color:red}._App_nex6d_1 ._item_nex6d_27 ._completed_nex6d_40{font-style:italic;color:#a9a9a9;text-decoration:line-through}._App_nex6d_1 button:hover{transition:all .33s;transform:scale(1.1)}._App_nex6d_1 button:disabled{cursor:not-allowed;background-color:gray;transform:scale(1)}@media screen and (width >= 768px){._App_nex6d_1{width:50%}}._container_10vfd_1{display:flex;align-items:center;justify-content:center;width:100%}._container_10vfd_1 *{box-sizing:border-box;padding:0;margin:0}._clockWrapper_10vfd_14{max-width:500px;padding:1.5rem;background-color:#f3f3f3;border:2px solid #ccc;border-radius:1rem}._timeSection_10vfd_22{display:flex;gap:1.5rem;margin-bottom:1.5rem}._timeSection_10vfd_22 div{display:flex;gap:.5rem;align-items:center}._timeSection_10vfd_22 p{font-size:1.8rem;font-weight:700}._timeAdjustment_10vfd_39{display:flex;gap:.5rem;align-items:center}._timeAdjustment_10vfd_39 ._timeAdjustmentButton_10vfd_45{display:flex;flex-direction:column;gap:0}._timerDisplay_10vfd_51{display:flex;flex-direction:column;gap:1rem;align-items:center}._timerDisplay_10vfd_51 p:first-child{font-size:1.5rem;font-weight:700;text-transform:capitalize}._timerDisplay_10vfd_51 p span{font-size:3rem;font-weight:700}._buttonGroup_10vfd_69{display:flex}._buttonGroup_10vfd_69 button,._timeAdjustmentButton_10vfd_45 button{color:#007bff;cursor:pointer;background-color:transparent;border:none;transition:color .2s ease}._buttonGroup_10vfd_69 button:hover,._timeAdjustmentButton_10vfd_45 button:hover{color:#0056b3}._lastMinute_10vfd_87{color:red}._container_1twmk_2{max-width:600px;padding:20px;margin:20px auto 0;background-color:#fff;border-radius:5px}._container_1twmk_2 h1{color:#333;text-align:center}._container_1twmk_2 textarea{width:100%;height:150px;padding:10px;margin-bottom:10px;resize:none;border:1px solid #ccc;border-radius:5px}._container_1twmk_2 ._controls_1twmk_23{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}._container_1twmk_2 #_char-limit_1twmk_1{width:80px}._container_1twmk_2 button{padding:8px 16px;margin-top:10px;color:#fff;cursor:pointer;background-color:#333;border:none;border-radius:5px}._container_1twmk_2 button:hover{background-color:#555}._container_1twmk_2 ._highlight_1twmk_44{margin-top:20px}._container_1twmk_2 input[type=text]{width:200px;padding:5px;margin-right:10px;border:1px solid #ccc;border-radius:5px}._container_1twmk_2 ._highlight-button_1twmk_54{color:#fff;background-color:#f2a154}._container_1twmk_2 ._highlight-button_1twmk_54:hover{background-color:#f93}._container_1twmk_2 ._highlighted_1twmk_61{font-weight:700;background-color:#ff0}._sport_1g70d_1{display:flex;justify-content:center;min-height:40vh}._container_1g70d_7{width:400px;padding:20px;text-align:center;background-color:#fff;border-radius:10px}._header_1g70d_15{padding:10px;font-size:24px}._question_1g70d_20{margin:20px 0;font-size:18px;color:#333}._answers_1g70d_26{display:flex;gap:10px;justify-content:center;margin-top:20px}._button_1g70d_33{padding:10px 20px;font-size:16px;color:#fff;cursor:pointer;background-color:#007bff;border:none;border-radius:5px;transition:background-color .3s}._button_1g70d_33:hover{background-color:#0056b3}._buttonStartOver_1g70d_48{font-size:16px;color:#fff;cursor:pointer;background-color:#ff5050;border:none;border-radius:5px;transition:background-color .3s}._buttonStartOver_1g70d_48:hover{background-color:#e63939}._openbtn_1gnwd_1{background:green;color:#fff;padding:1rem 2rem;border-radius:.2rem}._overlay_1gnwd_8{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:2rem;background:rgba(0,0,0,.5)}._modalWrapper_1gnwd_18{background:white;max-width:28rem;padding:1.5rem;border-radius:12px}._modalWrapper_1gnwd_18 p{font-size:14px}@media only screen and (width >= 640px){._modalWrapper_1gnwd_18{padding:2rem}}._closebtn_1gnwd_34{background:red;color:#fff;padding:.5rem 1rem;border-radius:.2rem}._main_xdwm1_2{display:flex;align-items:center;justify-content:center;flex-direction:column}._container_xdwm1_10{height:400px;width:100%;background-color:#f9f9f9;border-radius:3px;box-shadow:0 0 3px 2px #c9c9c9ee;overflow-x:hidden;overflow-y:scroll;padding:10px;margin:26px}._container_xdwm1_10::-webkit-scrollbar,._container_xdwm1_10::-webkit-scrollbar-thumb{border-radius:13px;width:13px;height:40px}._container_xdwm1_10::-webkit-scrollbar-thumb{box-shadow:inset 10px 10px 10px 5px #b8b8b8}._iconContainer_xdwm1_33{height:30%;width:30%}._icon_xdwm1_33{display:inline-block;width:calc(100% / 3);padding:1px;text-align:center;font-size:30px;border:3px solid transparent;border-radius:10px;transition:border-color .3s;cursor:pointer}._icon_xdwm1_33:hover{border-color:#d9d9d9}._inputField_xdwm1_54{padding:10px;margin-bottom:10px;font-size:16px;border:1px solid #ccc;border-radius:5px;border:2px solid rgb(80,66,0)}._inputField_xdwm1_54:hover{cursor:auto;border:2px solid rgb(80,66,0)}._toast_xdwm1_66{position:fixed;top:20px;width:300px;height:30px;background-color:#80ee80;border-radius:20px;box-shadow:0 0 3px 2px #c9c9c9ee;color:#2f4f4f;text-align:center;display:flex;align-items:center;justify-content:center}._loader_xdwm1_81{border:6px solid #f3f3f3;border-top:6px solid #3498db;border-radius:50%;width:60px;height:60px;animation:_spin_xdwm1_1 2s linear infinite}._loaderContainer_xdwm1_90{display:flex;justify-content:center}._topSection_xdwm1_95{display:flex;justify-content:center;flex-direction:column}._select_xdwm1_101{padding:10px;margin-left:20px;width:180px;margin-bottom:10px;font-size:16px;border:1px solid #ccc;border-radius:5px;border:2px solid rgb(80,66,0);font-size:14px}._copyText_xdwm1_113{font-size:small;text-align:center;color:#bababa;opacity:1}._hidden_xdwm1_120{opacity:0}@keyframes _spin_xdwm1_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 576px){._icon_xdwm1_33{width:calc(100% / 6)}}@media (min-width: 768px){._icon_xdwm1_33{width:12.5%}._container_xdwm1_10{width:500px}}@media (min-width: 992px){._icon_xdwm1_33{width:10%}._container_xdwm1_10{width:500px}}pre{background:#eee;padding:1rem;overflow:auto;border-radius:3px;max-width:80ch}pre code{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5}._comments_xdwm1_176{color:green}._container_5ie15_1{padding:20px;text-align:center}._languageList_5ie15_6{display:flex;flex-wrap:wrap;justify-content:center}._languageCard_5ie15_12{max-width:300px;padding:10px;margin:10px;text-align:left;background-color:#f7f7f7;border:1px solid #ccc;border-radius:8px;box-shadow:2px 2px 5px #0000001a;transition:transform .2s}._languageCard_5ie15_12:hover{transform:translateY(-3px)}._languageName_5ie15_28{margin-top:0;font-size:20px;color:#007bff}._info_5ie15_34{margin:5px 0;font-size:16px;color:#555}._heading_5ie15_40{font-size:24px;color:#333}._avatar_1jv0o_1{display:inline-block;width:1.5rem;height:1.5rem;border-radius:1000px;box-shadow:0 0 0 2px #000}._avatarGroup_1jv0o_11{display:flex;margin:auto;width:max-content}._avatarGroup_1jv0o_11>*:not(:first-child){margin-left:-.3rem}._challengeGrid_140w8_1{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:1.5rem;margin:2rem 0}._challengeCard_140w8_8{position:relative;padding:10px;overflow:hidden;background-color:#fff;border:1px solid rgba(0,0,0,.15);box-shadow:0 6px 8px #00000026;transition:all .2s ease-in-out}._challengeCard_140w8_8:hover{box-shadow:0 6px 8px #0000004d;transform:scale(1.05)}._challengeCard_140w8_8 ._avatarContainer_140w8_21>*:not(:first-child){margin-top:.5rem}._challengeCard_140w8_8 h3{font-size:1.25rem;font-weight:500;color:green}._challengeCard_140w8_8._disabled_140w8_29 h3{color:gray}._challengeCard_140w8_8._disabled_140w8_29{cursor:not-allowed;box-shadow:0 3px 4px #0000001a}._challengeCard_140w8_8._disabled_140w8_29:hover{transform:scale(1)}._challengeCard_140w8_8 a{color:#d2691e;text-decoration:none}._challengeCard_140w8_8 ._new_140w8_43{position:absolute;top:0;right:0;width:4rem;font-size:1rem;color:#fff;text-align:center;background-color:#545454}._challengeCard_140w8_8 ._developer_140w8_53{display:flex;align-items:center;justify-content:center;font-size:.8rem;color:#000}._challengeCard_140w8_8 ._developer_140w8_53>img{width:25px;height:25px;margin-right:.5rem;border-radius:50%}._challengeCard_140w8_8 ._name_140w8_66{color:#000}._challengeCard_140w8_8._medium_140w8_69 h3{color:#4b4bff}._challengeCard_140w8_8._hard_140w8_72 h3{color:#ff4500}._navbar_bgl2j_1{display:flex;gap:2rem;align-items:center;padding:1rem;background:linear-gradient(180deg,lavenderblush 0%,white 100%)}._navbar_bgl2j_1 ._logo_bgl2j_8{display:flex;flex-grow:1;gap:.5rem;align-items:center}._navbar_bgl2j_1 ._logo_bgl2j_8 img{width:40px;height:40px}._navbar_bgl2j_1 ._logo_bgl2j_8 span{font-size:1.2rem;font-weight:500;color:#000}._navbar_bgl2j_1 ._links_bgl2j_23{display:none;gap:2rem;align-items:center;margin-left:auto}._navbar_bgl2j_1 ._github_bgl2j_29{width:30px;height:30px;vertical-align:text-bottom}@media screen and (width >= 768px){._navbar_bgl2j_1 ._links_bgl2j_23{display:flex}}._topBtn_1lydx_1{margin:0;display:flex;justify-items:center;align-items:center;background:none;border:none;border-radius:100%;background-color:#1f06ffaf;padding:15px;cursor:pointer;position:fixed;right:2.5rem;bottom:2rem;transition:all;transition-duration:.3s}._topBtn_1lydx_1 svg{color:#fff}._topBtn_1lydx_1:hover{transform:scale(1.1);transition:all;transition-duration:.3s}._heading_ngxka_1{margin-bottom:3rem;text-align:center}._contributionContainer_ngxka_6{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center}._contributor_ngxka_13{display:inline-block;width:60px;height:60px;margin:0 1rem;transition:.5s all}._contributor_ngxka_13 img{width:100%;height:100%;border:2px solid orange;border-radius:50%}._contributor_ngxka_13:hover{transform:scale(1.1)}@media screen and (width >= 768px){._contributor_ngxka_13{width:80px;height:80px}}._heading_1m5el_1{margin-bottom:3rem;text-align:center}._features_1m5el_6{display:flex;flex-direction:column;gap:max(5%,50px);width:100%;padding:0 5%;margin-bottom:4rem}._features_1m5el_6 article{flex-basis:0;flex-grow:1;padding:1rem;text-align:center;border-radius:8px;box-shadow:0 0 4px #00000080}._features_1m5el_6 article h3{font-size:1.4rem;font-weight:500}@media screen and (width >= 768px){._features_1m5el_6{flex-direction:row}}._footer_1l7qe_1{padding-top:1rem;padding-bottom:1rem;margin:3rem 0 1rem;color:#fff;text-align:center;background-color:#6554ff;border-top:2px solid lightgrey}._hero_16a9z_1{display:flex;flex-direction:column;justify-content:space-between;text-align:center}._hero_16a9z_1 p{margin-bottom:2rem}._figure_16a9z_11{margin:0;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}._figure_16a9z_11 ._heroImage_16a9z_19{width:min(80vh,80vw);aspect-ratio:1.5217391304}._link_16a9z_24 a{display:inline-block;padding:1rem;margin:.5rem 0;font-weight:400;color:#fff;background-color:#1f06ffaf;border-radius:8px;box-shadow:0 4px 4px #0000001f}@media screen and (width >= 768px){._hero_16a9z_1{flex-direction:row;text-align:left}._hero_16a9z_1 p{margin-bottom:3rem}._figure_16a9z_11 ._heroImage_16a9z_19{width:min(60vh,60vw)}}._heading_1jxz1_1{text-align:center}._testimonial_1jxz1_5{width:70%;padding:1rem;margin:auto}._testimonial_1jxz1_5 ._heading_1jxz1_1{display:flex;gap:25px;align-items:center;justify-content:center}._testimonial_1jxz1_5 ._heading_1jxz1_1 img{width:80px;height:80px;border-radius:50%}._testimonial_1jxz1_5 ._heading_1jxz1_1 h4,._testimonial_1jxz1_5 ._heading_1jxz1_1 h5{font-weight:500}._testimonial_1jxz1_5 p{padding:.5rem 0 1rem;font-weight:400;text-align:center}@media screen and (width >= 768px){._testimonial_1jxz1_5{width:50%}}._container_117z9_1{max-width:min(90%,1200px);margin:0 auto}._hr_117z9_6{margin:3rem 0;border:none;border-top:1px solid lightgray} diff --git a/react/dist/index.html b/react/dist/index.html index 98c9a1aa0..8336ec477 100644 --- a/react/dist/index.html +++ b/react/dist/index.html @@ -26,8 +26,8 @@ name="description" content="Frontend Mini Challenges is a collection of frontend interview coding challenges" /> - - + +