medusa-storefront-analytics 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,41 +1,13 @@
1
- (function(H,Me){typeof exports=="object"&&typeof module<"u"?Me(exports):typeof define=="function"&&define.amd?define(["exports"],Me):(H=typeof globalThis<"u"?globalThis:H||self,Me(H.MedusaStorefrontAnalytics={}))})(this,function(H){"use strict";const Me={trackReviewSubmitted:()=>{},trackReviewUpdated:()=>{},trackFormSubmitted:()=>{},trackEvent:()=>{}};function dn(e){const n=e.filter(Boolean);return{trackReviewSubmitted(r){n.forEach(i=>i.trackReviewSubmitted(r))},trackReviewUpdated(r){n.forEach(i=>{var a;return(a=i.trackReviewUpdated)==null?void 0:a.call(i,r)})},trackFormSubmitted(r){n.forEach(i=>{var a;return(a=i.trackFormSubmitted)==null?void 0:a.call(i,r)})},trackEvent(r,i){n.forEach(a=>{var c;return(c=a.trackEvent)==null?void 0:c.call(a,r,i)})}}}function pt(e){typeof window>"u"||(window.dataLayer=window.dataLayer||[],window.dataLayer.push(e))}function He(e,n){pt({event:e,...n})}function ht(e={}){const{legacyFormSubmit:n=!0}=e,r=(i,a)=>{He(a,{product_id:i.productId,product_name:i.productName,rating:i.rating,review_title:i.reviewTitle,is_update:i.isUpdate}),n&&He("form_submit",{form_type:a==="review_updated"?"product_review_update":"product_review_submit",product_id:i.productId,product_name:i.productName,rating:i.rating})};return{trackReviewSubmitted(i){r({...i,isUpdate:!1},"review_submitted")},trackReviewUpdated(i){r({...i,isUpdate:!0},"review_updated")},trackFormSubmitted(i){He("form_submit",i)},trackEvent:He}}const pn=ht({legacyFormSubmit:!0});function hn(e,n){if(!e)return;const r={productId:n.productId,productName:n.productName,rating:n.rating,reviewTitle:n.reviewTitle,isUpdate:n.isUpdate??!1};r.isUpdate&&e.trackReviewUpdated?e.trackReviewUpdated(r):e.trackReviewSubmitted(r)}function Ze(e,n){var r,i;(r=e==null?void 0:e.trackFormSubmitted)==null||r.call(e,n),(i=e==null?void 0:e.trackEvent)==null||i.call(e,"form_submit",n)}function _n(e,n){Ze(e,{form_type:(n==null?void 0:n.formType)??"contact_us_form",...n})}function mn(e,n){var r;e&&((r=e.trackEvent)==null||r.call(e,"Lead",{form_type:(n==null?void 0:n.formType)??"newsletter_signup",...n}),Ze(e,{form_type:(n==null?void 0:n.formType)??"lead",...n}))}const Ee={AddPaymentInfo:"AddPaymentInfo",AddToCart:"AddToCart",AddToWishlist:"AddToWishlist",CompleteRegistration:"CompleteRegistration",Contact:"Contact",InitiateCheckout:"InitiateCheckout",Lead:"Lead",Purchase:"Purchase",Search:"Search",ViewContent:"ViewContent"},je="__cm_explicit";function _t(){if(typeof window>"u")return!1;const e=window.fbq;if(typeof e!="function")return!1;try{e("set","autoConfig",!1)}catch{}return!0}function En(e,n){if(typeof e!="string")return!1;if(e==="Subscribe"){const r=n;return!(r!=null&&r[je])}return!1}function bn(){if(typeof window>"u")return!1;const e=window,n=e.fbq;if(typeof n!="function"||e.__cmFbqPatched)return!0;const r=n,i=function(...a){if(!(a[0]==="track"&&En(a[1],a[2])))return r.apply(this,a)};return Object.assign(i,r),e.fbq=i,e._fbq&&(e._fbq=i),e.__cmFbqPatched=!0,!0}function mt(){if(typeof window>"u")return!1;const e=window;if(!e.dataLayer||e.__cmDataLayerPatched)return!0;const n=e.dataLayer.push.bind(e.dataLayer);return e.dataLayer.push=function(...r){const i=r.filter(a=>{if(!a||typeof a!="object")return!0;const c=a;return!(c.meta_event==="Subscribe"&&!c[je]||c.event==="subscribe"&&!c[je])});return n(...i)},e.__cmDataLayerPatched=!0,!0}function gn(){if(typeof window>"u")return;mt();let e=0;const n=60,r=()=>{mt();const i=bn();i&&_t(),!i&&++e<n&&setTimeout(r,250)};r()}const Et="meta_pixel_track";function yn(e){return(e??"INR").toUpperCase()}function vn(e){const n=e.items??[],r=n.reduce((i,a)=>i+(a.quantity??1),0);return{currency:yn(e.currency),value:e.value,content_ids:n.map(i=>String(i.item_id)),content_type:"product",contents:n.map(i=>({id:String(i.item_id),quantity:i.quantity??1,item_price:i.price??0})),num_items:r}}function wn(e,n){if(typeof window>"u")return;const r=window;r.dataLayer=r.dataLayer||[],r.dataLayer.push({event:Et,meta_event:e,[je]:!0,...n})}function Je(e,n={}){if(wn(e,n),typeof window>"u")return;const r=window.fbq;typeof r=="function"&&r("track",e,{...n,[je]:!0})}function Fe(e,n,r){Je(e,{...vn(n),...r})}function bt(e){const{transaction_id:n,...r}=e;Fe(Ee.Purchase,r,{order_id:n})}var et={exports:{}},gt={},tt={},yt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return n}});function n(r,i,a){if(r){a&&(a=a.toLowerCase());for(const o of r){var c,s;const _=(c=o.domain)==null?void 0:c.split(":",1)[0].toLowerCase();if(i===_||a===o.defaultLocale.toLowerCase()||(s=o.locales)!=null&&s.some(m=>m.toLowerCase()===a))return o}}}})(yt);var vt={},wt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return n}});function n(r){return r.replace(/\/$/,"")||"/"}})(wt);var nt={},Ge={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return n}});function n(r){const i=r.indexOf("#"),a=r.indexOf("?"),c=a>-1&&(i<0||a<i);return c||i>-1?{pathname:r.substring(0,c?a:i),query:c?r.substring(a,i>-1?i:void 0):"",hash:i>-1?r.slice(i):""}:{pathname:r,query:"",hash:""}}})(Ge),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return r}});const n=Ge;function r(i,a){if(!i.startsWith("/")||!a)return i;const{pathname:c,query:s,hash:o}=(0,n.parsePath)(i);return""+a+c+s+o}}(nt);var Rt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathSuffix",{enumerable:!0,get:function(){return r}});const n=Ge;function r(i,a){if(!i.startsWith("/")||!a)return i;const{pathname:c,query:s,hash:o}=(0,n.parsePath)(i);return""+c+a+s+o}})(Rt);var Tt={},Be={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return r}});const n=Ge;function r(i,a){if(typeof i!="string")return!1;const{pathname:c}=(0,n.parsePath)(i);return c===a||c.startsWith(a+"/")}})(Be),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return i}});const n=nt,r=Be;function i(a,c,s,o){if(!c||c===s)return a;const _=a.toLowerCase();return!o&&((0,r.pathHasPrefix)(_,"/api")||(0,r.pathHasPrefix)(_,"/"+c.toLowerCase()))?a:(0,n.addPathPrefix)(a,"/"+c)}}(Tt),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"formatNextPathnameInfo",{enumerable:!0,get:function(){return c}});const n=wt,r=nt,i=Rt,a=Tt;function c(s){let o=(0,a.addLocale)(s.pathname,s.locale,s.buildId?void 0:s.defaultLocale,s.ignorePrefix);return(s.buildId||!s.trailingSlash)&&(o=(0,n.removeTrailingSlash)(o)),s.buildId&&(o=(0,i.addPathSuffix)((0,r.addPathPrefix)(o,"/_next/data/"+s.buildId),s.pathname==="/"?"index.json":".json")),o=(0,r.addPathPrefix)(o,s.basePath),!s.buildId&&s.trailingSlash?o.endsWith("/")?o:(0,i.addPathSuffix)(o,"/"):(0,n.removeTrailingSlash)(o)}}(vt);var At={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getHostname",{enumerable:!0,get:function(){return n}});function n(r,i){let a;if(i!=null&&i.host&&!Array.isArray(i.host))a=i.host.toString().split(":",1)[0];else if(r.hostname)a=r.hostname;else return;return a.toLowerCase()}})(At);var Pt={},St={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const n=new WeakMap;function r(i,a){if(!a)return{pathname:i};let c=n.get(a);c||(c=a.map(p=>p.toLowerCase()),n.set(a,c));let s;const o=i.split("/",2);if(!o[1])return{pathname:i};const _=o[1].toLowerCase(),m=c.indexOf(_);return m<0?{pathname:i}:(s=a[m],i=i.slice(s.length+1)||"/",{pathname:i,detectedLocale:s})}})(St);var Ot={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removePathPrefix",{enumerable:!0,get:function(){return r}});const n=Be;function r(i,a){if(!(0,n.pathHasPrefix)(i,a))return i;const c=i.slice(a.length);return c.startsWith("/")?c:"/"+c}})(Ot),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getNextPathnameInfo",{enumerable:!0,get:function(){return a}});const n=St,r=Ot,i=Be;function a(c,s){var o;const{basePath:_,i18n:m,trailingSlash:p}=(o=s.nextConfig)!=null?o:{},y={pathname:c,trailingSlash:c!=="/"?c.endsWith("/"):p};_&&(0,i.pathHasPrefix)(y.pathname,_)&&(y.pathname=(0,r.removePathPrefix)(y.pathname,_),y.basePath=_);let T=y.pathname;if(y.pathname.startsWith("/_next/data/")&&y.pathname.endsWith(".json")){const N=y.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),A=N[0];y.buildId=A,T=N[1]!=="index"?"/"+N.slice(1).join("/"):"/",s.parseData===!0&&(y.pathname=T)}if(m){let N=s.i18nProvider?s.i18nProvider.analyze(y.pathname):(0,n.normalizeLocalePath)(y.pathname,m.locales);y.locale=N.detectedLocale;var C;y.pathname=(C=N.pathname)!=null?C:y.pathname,!N.detectedLocale&&y.buildId&&(N=s.i18nProvider?s.i18nProvider.analyze(T):(0,n.normalizeLocalePath)(T,m.locales),N.detectedLocale&&(y.locale=N.detectedLocale))}return y}}(Pt),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NextURL",{enumerable:!0,get:function(){return _}});const n=yt,r=vt,i=At,a=Pt,c=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function s(m,p){return new URL(String(m).replace(c,"localhost"),p&&String(p).replace(c,"localhost"))}const o=Symbol("NextURLInternal");class _{constructor(p,y,T){let C,N;typeof y=="object"&&"pathname"in y||typeof y=="string"?(C=y,N=T||{}):N=T||y||{},this[o]={url:s(p,C??N.base),options:N,basePath:""},this.analyze()}analyze(){var p,y,T,C,N;const A=(0,a.getNextPathnameInfo)(this[o].url.pathname,{nextConfig:this[o].options.nextConfig,parseData:!process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,i18nProvider:this[o].options.i18nProvider}),E=(0,i.getHostname)(this[o].url,this[o].options.headers);this[o].domainLocale=this[o].options.i18nProvider?this[o].options.i18nProvider.detectDomainLocale(E):(0,n.detectDomainLocale)((y=this[o].options.nextConfig)==null||(p=y.i18n)==null?void 0:p.domains,E);const f=((T=this[o].domainLocale)==null?void 0:T.defaultLocale)||((N=this[o].options.nextConfig)==null||(C=N.i18n)==null?void 0:C.defaultLocale);this[o].url.pathname=A.pathname,this[o].defaultLocale=f,this[o].basePath=A.basePath??"",this[o].buildId=A.buildId,this[o].locale=A.locale??f,this[o].trailingSlash=A.trailingSlash}formatPathname(){return(0,r.formatNextPathnameInfo)({basePath:this[o].basePath,buildId:this[o].buildId,defaultLocale:this[o].options.forceLocale?void 0:this[o].defaultLocale,locale:this[o].locale,pathname:this[o].url.pathname,trailingSlash:this[o].trailingSlash})}formatSearch(){return this[o].url.search}get buildId(){return this[o].buildId}set buildId(p){this[o].buildId=p}get locale(){return this[o].locale??""}set locale(p){var y,T;if(!this[o].locale||!(!((T=this[o].options.nextConfig)==null||(y=T.i18n)==null)&&y.locales.includes(p)))throw Object.defineProperty(new TypeError(`The NextURL configuration includes no locale "${p}"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[o].locale=p}get defaultLocale(){return this[o].defaultLocale}get domainLocale(){return this[o].domainLocale}get searchParams(){return this[o].url.searchParams}get host(){return this[o].url.host}set host(p){this[o].url.host=p}get hostname(){return this[o].url.hostname}set hostname(p){this[o].url.hostname=p}get port(){return this[o].url.port}set port(p){this[o].url.port=p}get protocol(){return this[o].url.protocol}set protocol(p){this[o].url.protocol=p}get href(){const p=this.formatPathname(),y=this.formatSearch();return`${this.protocol}//${this.host}${p}${y}${this.hash}`}set href(p){this[o].url=s(p),this.analyze()}get origin(){return this[o].url.origin}get pathname(){return this[o].url.pathname}set pathname(p){this[o].url.pathname=p}get hash(){return this[o].url.hash}set hash(p){this[o].url.hash=p}get search(){return this[o].url.search}set search(p){this[o].url.search=p}get password(){return this[o].url.password}set password(p){this[o].url.password=p}get username(){return this[o].url.username}set username(p){this[o].url.username=p}get basePath(){return this[o].basePath}set basePath(p){this[o].basePath=p.startsWith("/")?p:`/${p}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new _(String(this),this[o].options)}}}(tt);var rt={},Ct={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(ce,Ce){for(var Ne in Ce)Object.defineProperty(ce,Ne,{enumerable:!0,get:Ce[Ne]})}n(e,{ACTION_SUFFIX:function(){return N},APP_DIR_ALIAS:function(){return ne},CACHE_ONE_YEAR:function(){return le},DOT_NEXT_ALIAS:function(){return ie},ESLINT_DEFAULT_DIRS:function(){return g},GSP_NO_RETURNED_VALUE:function(){return Ae},GSSP_COMPONENT_MEMBER_ERROR:function(){return Te},GSSP_NO_RETURNED_VALUE:function(){return Pe},HTML_CONTENT_TYPE_HEADER:function(){return i},INFINITE_CACHE:function(){return pe},INSTRUMENTATION_HOOK_FILENAME:function(){return oe},JSON_CONTENT_TYPE_HEADER:function(){return a},MATCHED_PATH_HEADER:function(){return o},MIDDLEWARE_FILENAME:function(){return z},MIDDLEWARE_LOCATION_REGEXP:function(){return _e},NEXT_BODY_SUFFIX:function(){return f},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return K},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return h},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return v},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return D},NEXT_CACHE_TAGS_HEADER:function(){return d},NEXT_CACHE_TAG_MAX_ITEMS:function(){return J},NEXT_CACHE_TAG_MAX_LENGTH:function(){return P},NEXT_DATA_SUFFIX:function(){return A},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return s},NEXT_META_SUFFIX:function(){return E},NEXT_QUERY_PARAM_PREFIX:function(){return c},NEXT_RESUME_HEADER:function(){return L},NON_STANDARD_NODE_ENV:function(){return we},PAGES_DIR_ALIAS:function(){return he},PRERENDER_REVALIDATE_HEADER:function(){return _},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return m},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return q},ROOT_DIR_ALIAS:function(){return ae},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return $},RSC_ACTION_ENCRYPTION_ALIAS:function(){return I},RSC_ACTION_PROXY_ALIAS:function(){return u},RSC_ACTION_VALIDATE_ALIAS:function(){return se},RSC_CACHE_WRAPPER_ALIAS:function(){return w},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return k},RSC_MOD_REF_PROXY_ALIAS:function(){return re},RSC_PREFETCH_SUFFIX:function(){return p},RSC_SEGMENTS_DIR_SUFFIX:function(){return y},RSC_SEGMENT_SUFFIX:function(){return T},RSC_SUFFIX:function(){return C},SERVER_PROPS_EXPORT_ERROR:function(){return Re},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return fe},SERVER_PROPS_SSG_CONFLICT:function(){return ee},SERVER_RUNTIME:function(){return S},SSG_FALLBACK_EXPORT_ERROR:function(){return de},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return W},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return be},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return r},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Se},WEBPACK_LAYERS:function(){return j},WEBPACK_RESOURCE_QUERIES:function(){return ue}});const r="text/plain",i="text/html; charset=utf-8",a="application/json; charset=utf-8",c="nxtP",s="nxtI",o="x-matched-path",_="x-prerender-revalidate",m="x-prerender-revalidate-if-generated",p=".prefetch.rsc",y=".segments",T=".segment.rsc",C=".rsc",N=".action",A=".json",E=".meta",f=".body",d="x-next-cache-tags",h="x-next-revalidated-tags",v="x-next-revalidate-tag-token",L="next-resume",J=128,P=256,D=1024,K="_N_T_",le=31536e3,pe=4294967294,z="middleware",_e=`(?:src/)?${z}`,oe="instrumentation",he="private-next-pages",ie="private-dot-next",ae="private-next-root-dir",ne="private-next-app-dir",re="private-next-rsc-mod-ref-proxy",se="private-next-rsc-action-validate",u="private-next-rsc-server-reference",w="private-next-rsc-cache-wrapper",k="private-next-rsc-track-dynamic-import",I="private-next-rsc-action-encryption",$="private-next-rsc-action-client-wrapper",q="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",W="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",fe="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",ee="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",be="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",Re="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",Ae="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",Pe="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Se="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",Te="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",we='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',de="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",g=["app","pages","components","lib","src"],S={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},b={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},j={...b,GROUP:{builtinReact:[b.reactServerComponents,b.actionBrowser],serverOnly:[b.reactServerComponents,b.actionBrowser,b.instrument,b.middleware],neutralTarget:[b.apiNode,b.apiEdge],clientOnly:[b.serverSideRendering,b.appPagesBrowser],bundled:[b.reactServerComponents,b.actionBrowser,b.serverSideRendering,b.appPagesBrowser,b.shared,b.instrument,b.middleware],appPages:[b.reactServerComponents,b.serverSideRendering,b.appPagesBrowser,b.actionBrowser]}},ue={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(Ct),function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(_,m){for(var p in m)Object.defineProperty(_,p,{enumerable:!0,get:m[p]})}n(e,{fromNodeOutgoingHttpHeaders:function(){return i},normalizeNextQueryParam:function(){return o},splitCookiesString:function(){return a},toNodeOutgoingHttpHeaders:function(){return c},validateURL:function(){return s}});const r=Ct;function i(_){const m=new Headers;for(let[p,y]of Object.entries(_)){const T=Array.isArray(y)?y:[y];for(let C of T)typeof C>"u"||(typeof C=="number"&&(C=C.toString()),m.append(p,C))}return m}function a(_){var m=[],p=0,y,T,C,N,A;function E(){for(;p<_.length&&/\s/.test(_.charAt(p));)p+=1;return p<_.length}function f(){return T=_.charAt(p),T!=="="&&T!==";"&&T!==","}for(;p<_.length;){for(y=p,A=!1;E();)if(T=_.charAt(p),T===","){for(C=p,p+=1,E(),N=p;p<_.length&&f();)p+=1;p<_.length&&_.charAt(p)==="="?(A=!0,p=N,m.push(_.substring(y,C)),y=p):p=C+1}else p+=1;(!A||p>=_.length)&&m.push(_.substring(y,_.length))}return m}function c(_){const m={},p=[];if(_)for(const[y,T]of _.entries())y.toLowerCase()==="set-cookie"?(p.push(...a(T)),m[y]=p.length===1?p[0]:p):m[y]=T;return m}function s(_){try{return String(new URL(String(_)))}catch(m){throw Object.defineProperty(new Error(`URL is malformed "${String(_)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:m}),"__NEXT_ERROR_CODE",{value:"E61",enumerable:!1,configurable:!0})}}function o(_){const m=[r.NEXT_QUERY_PARAM_PREFIX,r.NEXT_INTERCEPTION_MARKER_PREFIX];for(const p of m)if(_!==p&&_.startsWith(p))return _.substring(p.length);return null}}(rt);var Nt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(c,s){for(var o in s)Object.defineProperty(c,o,{enumerable:!0,get:s[o]})}n(e,{PageSignatureError:function(){return r},RemovedPageError:function(){return i},RemovedUAError:function(){return a}});class r extends Error{constructor({page:s}){super(`The middleware "${s}" accepts an async API directly with the form:
1
+ (function(T,we){typeof exports=="object"&&typeof module<"u"?we(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],we):(T=typeof globalThis<"u"?globalThis:T||self,we(T.MedusaStorefrontAnalytics={},T.require$$0))})(this,function(T,we){"use strict";const Qt={trackReviewSubmitted:()=>{},trackReviewUpdated:()=>{},trackFormSubmitted:()=>{},trackEvent:()=>{}};function Jt(e){const t=e.filter(Boolean);return{trackReviewSubmitted(n){t.forEach(o=>o.trackReviewSubmitted(n))},trackReviewUpdated(n){t.forEach(o=>{var i;return(i=o.trackReviewUpdated)==null?void 0:i.call(o,n)})},trackFormSubmitted(n){t.forEach(o=>{var i;return(i=o.trackFormSubmitted)==null?void 0:i.call(o,n)})},trackEvent(n,o){t.forEach(i=>{var s;return(s=i.trackEvent)==null?void 0:s.call(i,n,o)})}}}function et(e){typeof window>"u"||(window.dataLayer=window.dataLayer||[],window.dataLayer.push(e))}function ve(e,t){et({event:e,...t})}function tt(e={}){const{legacyFormSubmit:t=!0}=e,n=(o,i)=>{ve(i,{product_id:o.productId,product_name:o.productName,rating:o.rating,review_title:o.reviewTitle,is_update:o.isUpdate}),t&&ve("form_submit",{form_type:i==="review_updated"?"product_review_update":"product_review_submit",product_id:o.productId,product_name:o.productName,rating:o.rating})};return{trackReviewSubmitted(o){n({...o,isUpdate:!1},"review_submitted")},trackReviewUpdated(o){n({...o,isUpdate:!0},"review_updated")},trackFormSubmitted(o){ve("form_submit",o)},trackEvent:ve}}const Zt=tt({legacyFormSubmit:!0});function en(e,t){if(!e)return;const n={productId:t.productId,productName:t.productName,rating:t.rating,reviewTitle:t.reviewTitle,isUpdate:t.isUpdate??!1};n.isUpdate&&e.trackReviewUpdated?e.trackReviewUpdated(n):e.trackReviewSubmitted(n)}function Ue(e,t){var n,o;(n=e==null?void 0:e.trackFormSubmitted)==null||n.call(e,t),(o=e==null?void 0:e.trackEvent)==null||o.call(e,"form_submit",t)}function tn(e,t){Ue(e,{form_type:(t==null?void 0:t.formType)??"contact_us_form",...t})}function nn(e,t){var n;e&&((n=e.trackEvent)==null||n.call(e,"Lead",{form_type:(t==null?void 0:t.formType)??"newsletter_signup",...t}),Ue(e,{form_type:(t==null?void 0:t.formType)??"lead",...t}))}const q={AddPaymentInfo:"AddPaymentInfo",AddToCart:"AddToCart",AddToWishlist:"AddToWishlist",CompleteRegistration:"CompleteRegistration",Contact:"Contact",InitiateCheckout:"InitiateCheckout",Lead:"Lead",Purchase:"Purchase",Search:"Search",ViewContent:"ViewContent"},_e="__cm_explicit";function nt(){if(typeof window>"u")return!1;const e=window.fbq;if(typeof e!="function")return!1;try{e("set","autoConfig",!1)}catch{}return!0}function rn(e,t){if(typeof e!="string")return!1;if(e==="Subscribe"){const n=t;return!(n!=null&&n[_e])}return!1}function on(){if(typeof window>"u")return!1;const e=window,t=e.fbq;if(typeof t!="function"||e.__cmFbqPatched)return!0;const n=t,o=function(...i){if(!(i[0]==="track"&&rn(i[1],i[2])))return n.apply(this,i)};return Object.assign(o,n),e.fbq=o,e._fbq&&(e._fbq=o),e.__cmFbqPatched=!0,!0}function rt(){if(typeof window>"u")return!1;const e=window;if(!e.dataLayer||e.__cmDataLayerPatched)return!0;const t=e.dataLayer.push.bind(e.dataLayer);return e.dataLayer.push=function(...n){const o=n.filter(i=>{if(!i||typeof i!="object")return!0;const s=i;return!(s.meta_event==="Subscribe"&&!s[_e]||s.event==="subscribe"&&!s[_e])});return t(...o)},e.__cmDataLayerPatched=!0,!0}function an(){if(typeof window>"u")return;rt();let e=0;const t=60,n=()=>{rt();const o=on();o&&nt(),!o&&++e<t&&setTimeout(n,250)};n()}const ot="meta_pixel_track";function sn(e){return(e??"INR").toUpperCase()}function cn(e){const t=e.items??[],n=t.reduce((o,i)=>o+(i.quantity??1),0);return{currency:sn(e.currency),value:e.value,content_ids:t.map(o=>String(o.item_id)),content_type:"product",contents:t.map(o=>({id:String(o.item_id),quantity:o.quantity??1,item_price:o.price??0})),num_items:n}}function un(e,t){if(typeof window>"u")return;const n=window;n.dataLayer=n.dataLayer||[],n.dataLayer.push({event:ot,meta_event:e,[_e]:!0,...t})}function Xe(e,t={}){if(un(e,t),typeof window>"u")return;const n=window.fbq;typeof n=="function"&&n("track",e,{...t,[_e]:!0})}function Ne(e,t,n){Xe(e,{...cn(t),...n})}function it(e){const{transaction_id:t,...n}=e;Ne(q.Purchase,n,{order_id:t})}var Fe={exports:{}},at={},qe={},st={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return t}});function t(n,o,i){if(n){i&&(i=i.toLowerCase());for(const r of n){var s,a;const f=(s=r.domain)==null?void 0:s.split(":",1)[0].toLowerCase();if(o===f||i===r.defaultLocale.toLowerCase()||(a=r.locales)!=null&&a.some(h=>h.toLowerCase()===i))return r}}}})(st);var ct={},ut={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removeTrailingSlash",{enumerable:!0,get:function(){return t}});function t(n){return n.replace(/\/$/,"")||"/"}})(ut);var Ge={},Ie={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return t}});function t(n){const o=n.indexOf("#"),i=n.indexOf("?"),s=i>-1&&(o<0||i<o);return s||o>-1?{pathname:n.substring(0,s?i:o),query:s?n.substring(i,o>-1?o:void 0):"",hash:o>-1?n.slice(o):""}:{pathname:n,query:"",hash:""}}})(Ie),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathPrefix",{enumerable:!0,get:function(){return n}});const t=Ie;function n(o,i){if(!o.startsWith("/")||!i)return o;const{pathname:s,query:a,hash:r}=(0,t.parsePath)(o);return""+i+s+a+r}}(Ge);var dt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addPathSuffix",{enumerable:!0,get:function(){return n}});const t=Ie;function n(o,i){if(!o.startsWith("/")||!i)return o;const{pathname:s,query:a,hash:r}=(0,t.parsePath)(o);return""+s+i+a+r}})(dt);var lt={},xe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const t=Ie;function n(o,i){if(typeof o!="string")return!1;const{pathname:s}=(0,t.parsePath)(o);return s===i||s.startsWith(i+"/")}})(xe),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return o}});const t=Ge,n=xe;function o(i,s,a,r){if(!s||s===a)return i;const f=i.toLowerCase();return!r&&((0,n.pathHasPrefix)(f,"/api")||(0,n.pathHasPrefix)(f,"/"+s.toLowerCase()))?i:(0,t.addPathPrefix)(i,"/"+s)}}(lt),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});const t=ut,n=Ge,o=dt,i=lt;function s(a){let r=(0,i.addLocale)(a.pathname,a.locale,a.buildId?void 0:a.defaultLocale,a.ignorePrefix);return(a.buildId||!a.trailingSlash)&&(r=(0,t.removeTrailingSlash)(r)),a.buildId&&(r=(0,o.addPathSuffix)((0,n.addPathPrefix)(r,"/_next/data/"+a.buildId),a.pathname==="/"?"index.json":".json")),r=(0,n.addPathPrefix)(r,a.basePath),!a.buildId&&a.trailingSlash?r.endsWith("/")?r:(0,o.addPathSuffix)(r,"/"):(0,t.removeTrailingSlash)(r)}}(ct);var ft={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getHostname",{enumerable:!0,get:function(){return t}});function t(n,o){let i;if(o!=null&&o.host&&!Array.isArray(o.host))i=o.host.toString().split(":",1)[0];else if(n.hostname)i=n.hostname;else return;return i.toLowerCase()}})(ft);var ht={},_t={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});const t=new WeakMap;function n(o,i){if(!i)return{pathname:o};let s=t.get(i);s||(s=i.map(d=>d.toLowerCase()),t.set(i,s));let a;const r=o.split("/",2);if(!r[1])return{pathname:o};const f=r[1].toLowerCase(),h=s.indexOf(f);return h<0?{pathname:o}:(a=i[h],o=o.slice(a.length+1)||"/",{pathname:o,detectedLocale:a})}})(_t);var pt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"removePathPrefix",{enumerable:!0,get:function(){return n}});const t=xe;function n(o,i){if(!(0,t.pathHasPrefix)(o,i))return o;const s=o.slice(i.length);return s.startsWith("/")?s:"/"+s}})(pt),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});const t=_t,n=pt,o=xe;function i(s,a){var r;const{basePath:f,i18n:h,trailingSlash:d}=(r=a.nextConfig)!=null?r:{},m={pathname:s,trailingSlash:s!=="/"?s.endsWith("/"):d};f&&(0,o.pathHasPrefix)(m.pathname,f)&&(m.pathname=(0,n.removePathPrefix)(m.pathname,f),m.basePath=f);let g=m.pathname;if(m.pathname.startsWith("/_next/data/")&&m.pathname.endsWith(".json")){const v=m.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),R=v[0];m.buildId=R,g=v[1]!=="index"?"/"+v.slice(1).join("/"):"/",a.parseData===!0&&(m.pathname=g)}if(h){let v=a.i18nProvider?a.i18nProvider.analyze(m.pathname):(0,t.normalizeLocalePath)(m.pathname,h.locales);m.locale=v.detectedLocale;var w;m.pathname=(w=v.pathname)!=null?w:m.pathname,!v.detectedLocale&&m.buildId&&(v=a.i18nProvider?a.i18nProvider.analyze(g):(0,t.normalizeLocalePath)(g,h.locales),v.detectedLocale&&(m.locale=v.detectedLocale))}return m}}(ht),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NextURL",{enumerable:!0,get:function(){return f}});const t=st,n=ct,o=ft,i=ht,s=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function a(h,d){return new URL(String(h).replace(s,"localhost"),d&&String(d).replace(s,"localhost"))}const r=Symbol("NextURLInternal");class f{constructor(d,m,g){let w,v;typeof m=="object"&&"pathname"in m||typeof m=="string"?(w=m,v=g||{}):v=g||m||{},this[r]={url:a(d,w??v.base),options:v,basePath:""},this.analyze()}analyze(){var d,m,g,w,v;const R=(0,i.getNextPathnameInfo)(this[r].url.pathname,{nextConfig:this[r].options.nextConfig,parseData:!process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,i18nProvider:this[r].options.i18nProvider}),_=(0,o.getHostname)(this[r].url,this[r].options.headers);this[r].domainLocale=this[r].options.i18nProvider?this[r].options.i18nProvider.detectDomainLocale(_):(0,t.detectDomainLocale)((m=this[r].options.nextConfig)==null||(d=m.i18n)==null?void 0:d.domains,_);const c=((g=this[r].domainLocale)==null?void 0:g.defaultLocale)||((v=this[r].options.nextConfig)==null||(w=v.i18n)==null?void 0:w.defaultLocale);this[r].url.pathname=R.pathname,this[r].defaultLocale=c,this[r].basePath=R.basePath??"",this[r].buildId=R.buildId,this[r].locale=R.locale??c,this[r].trailingSlash=R.trailingSlash}formatPathname(){return(0,n.formatNextPathnameInfo)({basePath:this[r].basePath,buildId:this[r].buildId,defaultLocale:this[r].options.forceLocale?void 0:this[r].defaultLocale,locale:this[r].locale,pathname:this[r].url.pathname,trailingSlash:this[r].trailingSlash})}formatSearch(){return this[r].url.search}get buildId(){return this[r].buildId}set buildId(d){this[r].buildId=d}get locale(){return this[r].locale??""}set locale(d){var m,g;if(!this[r].locale||!(!((g=this[r].options.nextConfig)==null||(m=g.i18n)==null)&&m.locales.includes(d)))throw Object.defineProperty(new TypeError(`The NextURL configuration includes no locale "${d}"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[r].locale=d}get defaultLocale(){return this[r].defaultLocale}get domainLocale(){return this[r].domainLocale}get searchParams(){return this[r].url.searchParams}get host(){return this[r].url.host}set host(d){this[r].url.host=d}get hostname(){return this[r].url.hostname}set hostname(d){this[r].url.hostname=d}get port(){return this[r].url.port}set port(d){this[r].url.port=d}get protocol(){return this[r].url.protocol}set protocol(d){this[r].url.protocol=d}get href(){const d=this.formatPathname(),m=this.formatSearch();return`${this.protocol}//${this.host}${d}${m}${this.hash}`}set href(d){this[r].url=a(d),this.analyze()}get origin(){return this[r].url.origin}get pathname(){return this[r].url.pathname}set pathname(d){this[r].url.pathname=d}get hash(){return this[r].url.hash}set hash(d){this[r].url.hash=d}get search(){return this[r].url.search}set search(d){this[r].url.search=d}get password(){return this[r].url.password}set password(d){this[r].url.password=d}get username(){return this[r].url.username}set username(d){this[r].url.username=d}get basePath(){return this[r].basePath}set basePath(d){this[r].basePath=d.startsWith("/")?d:`/${d}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new f(String(this),this[r].options)}}}(qe);var $e={},mt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(X,Se){for(var Oe in Se)Object.defineProperty(X,Oe,{enumerable:!0,get:Se[Oe]})}t(e,{ACTION_SUFFIX:function(){return v},APP_DIR_ALIAS:function(){return M},CACHE_ONE_YEAR:function(){return W},DOT_NEXT_ALIAS:function(){return re},ESLINT_DEFAULT_DIRS:function(){return p},GSP_NO_RETURNED_VALUE:function(){return be},GSSP_COMPONENT_MEMBER_ERROR:function(){return he},GSSP_NO_RETURNED_VALUE:function(){return Ee},HTML_CONTENT_TYPE_HEADER:function(){return o},INFINITE_CACHE:function(){return z},INSTRUMENTATION_HOOK_FILENAME:function(){return Y},JSON_CONTENT_TYPE_HEADER:function(){return i},MATCHED_PATH_HEADER:function(){return r},MIDDLEWARE_FILENAME:function(){return Q},MIDDLEWARE_LOCATION_REGEXP:function(){return J},NEXT_BODY_SUFFIX:function(){return c},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return L},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return l},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return b},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return A},NEXT_CACHE_TAGS_HEADER:function(){return u},NEXT_CACHE_TAG_MAX_ITEMS:function(){return j},NEXT_CACHE_TAG_MAX_LENGTH:function(){return P},NEXT_DATA_SUFFIX:function(){return R},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return a},NEXT_META_SUFFIX:function(){return _},NEXT_QUERY_PARAM_PREFIX:function(){return s},NEXT_RESUME_HEADER:function(){return I},NON_STANDARD_NODE_ENV:function(){return se},PAGES_DIR_ALIAS:function(){return ne},PRERENDER_REVALIDATE_HEADER:function(){return f},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return h},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return ie},ROOT_DIR_ALIAS:function(){return V},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return pe},RSC_ACTION_ENCRYPTION_ALIAS:function(){return Z},RSC_ACTION_PROXY_ALIAS:function(){return $},RSC_ACTION_VALIDATE_ALIAS:function(){return F},RSC_CACHE_WRAPPER_ALIAS:function(){return B},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return G},RSC_MOD_REF_PROXY_ALIAS:function(){return U},RSC_PREFETCH_SUFFIX:function(){return d},RSC_SEGMENTS_DIR_SUFFIX:function(){return m},RSC_SEGMENT_SUFFIX:function(){return g},RSC_SUFFIX:function(){return w},SERVER_PROPS_EXPORT_ERROR:function(){return fe},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return me},SERVER_PROPS_SSG_CONFLICT:function(){return ae},SERVER_RUNTIME:function(){return y},SSG_FALLBACK_EXPORT_ERROR:function(){return Re},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return de},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return le},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return n},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return ge},WEBPACK_LAYERS:function(){return O},WEBPACK_RESOURCE_QUERIES:function(){return H}});const n="text/plain",o="text/html; charset=utf-8",i="application/json; charset=utf-8",s="nxtP",a="nxtI",r="x-matched-path",f="x-prerender-revalidate",h="x-prerender-revalidate-if-generated",d=".prefetch.rsc",m=".segments",g=".segment.rsc",w=".rsc",v=".action",R=".json",_=".meta",c=".body",u="x-next-cache-tags",l="x-next-revalidated-tags",b="x-next-revalidate-tag-token",I="next-resume",j=128,P=256,A=1024,L="_N_T_",W=31536e3,z=4294967294,Q="middleware",J=`(?:src/)?${Q}`,Y="instrumentation",ne="private-next-pages",re="private-dot-next",V="private-next-root-dir",M="private-next-app-dir",U="private-next-rsc-mod-ref-proxy",F="private-next-rsc-action-validate",$="private-next-rsc-server-reference",B="private-next-rsc-cache-wrapper",G="private-next-rsc-track-dynamic-import",Z="private-next-rsc-action-encryption",pe="private-next-rsc-action-client-wrapper",ie="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",de="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",me="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",ae="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",le="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",fe="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",be="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",Ee="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",ge="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",he="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",se='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',Re="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",p=["app","pages","components","lib","src"],y={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},E={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},O={...E,GROUP:{builtinReact:[E.reactServerComponents,E.actionBrowser],serverOnly:[E.reactServerComponents,E.actionBrowser,E.instrument,E.middleware],neutralTarget:[E.apiNode,E.apiEdge],clientOnly:[E.serverSideRendering,E.appPagesBrowser],bundled:[E.reactServerComponents,E.actionBrowser,E.serverSideRendering,E.appPagesBrowser,E.shared,E.instrument,E.middleware],appPages:[E.reactServerComponents,E.serverSideRendering,E.appPagesBrowser,E.actionBrowser]}},H={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(mt),function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,h){for(var d in h)Object.defineProperty(f,d,{enumerable:!0,get:h[d]})}t(e,{fromNodeOutgoingHttpHeaders:function(){return o},normalizeNextQueryParam:function(){return r},splitCookiesString:function(){return i},toNodeOutgoingHttpHeaders:function(){return s},validateURL:function(){return a}});const n=mt;function o(f){const h=new Headers;for(let[d,m]of Object.entries(f)){const g=Array.isArray(m)?m:[m];for(let w of g)typeof w>"u"||(typeof w=="number"&&(w=w.toString()),h.append(d,w))}return h}function i(f){var h=[],d=0,m,g,w,v,R;function _(){for(;d<f.length&&/\s/.test(f.charAt(d));)d+=1;return d<f.length}function c(){return g=f.charAt(d),g!=="="&&g!==";"&&g!==","}for(;d<f.length;){for(m=d,R=!1;_();)if(g=f.charAt(d),g===","){for(w=d,d+=1,_(),v=d;d<f.length&&c();)d+=1;d<f.length&&f.charAt(d)==="="?(R=!0,d=v,h.push(f.substring(m,w)),m=d):d=w+1}else d+=1;(!R||d>=f.length)&&h.push(f.substring(m,f.length))}return h}function s(f){const h={},d=[];if(f)for(const[m,g]of f.entries())m.toLowerCase()==="set-cookie"?(d.push(...i(g)),h[m]=d.length===1?d[0]:d):h[m]=g;return h}function a(f){try{return String(new URL(String(f)))}catch(h){throw Object.defineProperty(new Error(`URL is malformed "${String(f)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:h}),"__NEXT_ERROR_CODE",{value:"E61",enumerable:!1,configurable:!0})}}function r(f){const h=[n.NEXT_QUERY_PARAM_PREFIX,n.NEXT_INTERCEPTION_MARKER_PREFIX];for(const d of h)if(f!==d&&f.startsWith(d))return f.substring(d.length);return null}}($e);var bt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,a){for(var r in a)Object.defineProperty(s,r,{enumerable:!0,get:a[r]})}t(e,{PageSignatureError:function(){return n},RemovedPageError:function(){return o},RemovedUAError:function(){return i}});class n extends Error{constructor({page:a}){super(`The middleware "${a}" accepts an async API directly with the form:
2
2
 
3
3
  export function middleware(request, event) {
4
4
  return NextResponse.redirect('/new-location')
5
5
  }
6
6
 
7
7
  Read more: https://nextjs.org/docs/messages/middleware-new-signature
8
- `)}}class i extends Error{constructor(){super("The request.page has been deprecated in favour of `URLPattern`.\n Read more: https://nextjs.org/docs/messages/middleware-request-page\n ")}}class a extends Error{constructor(){super("The request.ua has been removed in favour of `userAgent` function.\n Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n ")}}})(Nt);var Ye={},ot=Object.defineProperty,Rn=Object.getOwnPropertyDescriptor,Tn=Object.getOwnPropertyNames,An=Object.prototype.hasOwnProperty,Pn=(e,n)=>{for(var r in n)ot(e,r,{get:n[r],enumerable:!0})},Sn=(e,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let a of Tn(n))!An.call(e,a)&&a!==r&&ot(e,a,{get:()=>n[a],enumerable:!(i=Rn(n,a))||i.enumerable});return e},On=e=>Sn(ot({},"__esModule",{value:!0}),e),kt={};Pn(kt,{RequestCookies:()=>Ln,ResponseCookies:()=>Mn,parseCookie:()=>it,parseSetCookie:()=>It,stringifyCookie:()=>Ue});var Cn=On(kt);function Ue(e){var n;const r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||e.expires===0)&&`Expires=${(typeof e.expires=="number"?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&typeof e.maxAge=="number"&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),i=`${e.name}=${encodeURIComponent((n=e.value)!=null?n:"")}`;return r.length===0?i:`${i}; ${r.join("; ")}`}function it(e){const n=new Map;for(const r of e.split(/; */)){if(!r)continue;const i=r.indexOf("=");if(i===-1){n.set(r,"true");continue}const[a,c]=[r.slice(0,i),r.slice(i+1)];try{n.set(a,decodeURIComponent(c??"true"))}catch{}}return n}function It(e){if(!e)return;const[[n,r],...i]=it(e),{domain:a,expires:c,httponly:s,maxage:o,path:_,samesite:m,secure:p,partitioned:y,priority:T}=Object.fromEntries(i.map(([N,A])=>[N.toLowerCase().replace(/-/g,""),A])),C={name:n,value:decodeURIComponent(r),domain:a,...c&&{expires:new Date(c)},...s&&{httpOnly:!0},...typeof o=="string"&&{maxAge:Number(o)},path:_,...m&&{sameSite:In(m)},...p&&{secure:!0},...T&&{priority:Dn(T)},...y&&{partitioned:!0}};return Nn(C)}function Nn(e){const n={};for(const r in e)e[r]&&(n[r]=e[r]);return n}var kn=["strict","lax","none"];function In(e){return e=e.toLowerCase(),kn.includes(e)?e:void 0}var xn=["low","medium","high"];function Dn(e){return e=e.toLowerCase(),xn.includes(e)?e:void 0}function jn(e){if(!e)return[];var n=[],r=0,i,a,c,s,o;function _(){for(;r<e.length&&/\s/.test(e.charAt(r));)r+=1;return r<e.length}function m(){return a=e.charAt(r),a!=="="&&a!==";"&&a!==","}for(;r<e.length;){for(i=r,o=!1;_();)if(a=e.charAt(r),a===","){for(c=r,r+=1,_(),s=r;r<e.length&&m();)r+=1;r<e.length&&e.charAt(r)==="="?(o=!0,r=s,n.push(e.substring(i,c)),i=r):r=c+1}else r+=1;(!o||r>=e.length)&&n.push(e.substring(i,e.length))}return n}var Ln=class{constructor(e){this._parsed=new Map,this._headers=e;const n=e.get("cookie");if(n){const r=it(n);for(const[i,a]of r)this._parsed.set(i,{name:i,value:a})}}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){const n=typeof e[0]=="string"?e[0]:e[0].name;return this._parsed.get(n)}getAll(...e){var n;const r=Array.from(this._parsed);if(!e.length)return r.map(([a,c])=>c);const i=typeof e[0]=="string"?e[0]:(n=e[0])==null?void 0:n.name;return r.filter(([a])=>a===i).map(([a,c])=>c)}has(e){return this._parsed.has(e)}set(...e){const[n,r]=e.length===1?[e[0].name,e[0].value]:e,i=this._parsed;return i.set(n,{name:n,value:r}),this._headers.set("cookie",Array.from(i).map(([a,c])=>Ue(c)).join("; ")),this}delete(e){const n=this._parsed,r=Array.isArray(e)?e.map(i=>n.delete(i)):n.delete(e);return this._headers.set("cookie",Array.from(n).map(([i,a])=>Ue(a)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},Mn=class{constructor(e){this._parsed=new Map;var n,r,i;this._headers=e;const a=(i=(r=(n=e.getSetCookie)==null?void 0:n.call(e))!=null?r:e.get("set-cookie"))!=null?i:[],c=Array.isArray(a)?a:jn(a);for(const s of c){const o=It(s);o&&this._parsed.set(o.name,o)}}get(...e){const n=typeof e[0]=="string"?e[0]:e[0].name;return this._parsed.get(n)}getAll(...e){var n;const r=Array.from(this._parsed.values());if(!e.length)return r;const i=typeof e[0]=="string"?e[0]:(n=e[0])==null?void 0:n.name;return r.filter(a=>a.name===i)}has(e){return this._parsed.has(e)}set(...e){const[n,r,i]=e.length===1?[e[0].name,e[0].value,e[0]]:e,a=this._parsed;return a.set(n,Un({name:n,value:r,...i})),Hn(a,this._headers),this}delete(...e){const[n,r]=typeof e[0]=="string"?[e[0]]:[e[0].name,e[0]];return this.set({...r,name:n,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(Ue).join("; ")}};function Hn(e,n){n.delete("set-cookie");for(const[,r]of e){const i=Ue(r);n.append("set-cookie",i)}}function Un(e={name:"",value:""}){return typeof e.expires=="number"&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+e.maxAge*1e3)),(e.path===null||e.path===void 0)&&(e.path="/"),e}(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(i,a){for(var c in a)Object.defineProperty(i,c,{enumerable:!0,get:a[c]})}n(e,{RequestCookies:function(){return r.RequestCookies},ResponseCookies:function(){return r.ResponseCookies},stringifyCookie:function(){return r.stringifyCookie}});const r=Cn})(Ye),function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(_,m){for(var p in m)Object.defineProperty(_,p,{enumerable:!0,get:m[p]})}n(e,{INTERNALS:function(){return s},NextRequest:function(){return o}});const r=tt,i=rt,a=Nt,c=Ye,s=Symbol("internal request");class o extends Request{constructor(m,p={}){const y=typeof m!="string"&&"url"in m?m.url:String(m);(0,i.validateURL)(y),process.env.NEXT_RUNTIME!=="edge"&&p.body&&p.duplex!=="half"&&(p.duplex="half"),m instanceof Request?super(m,p):super(y,p);const T=new r.NextURL(y,{headers:(0,i.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:p.nextConfig});this[s]={cookies:new c.RequestCookies(this.headers),nextUrl:T,url:process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE?y:T.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[s].cookies}get nextUrl(){return this[s].nextUrl}get page(){throw new a.RemovedPageError}get ua(){throw new a.RemovedUAError}get url(){return this[s].url}}}(gt);var xt={},Dt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(i,a,c){const s=Reflect.get(i,a,c);return typeof s=="function"?s.bind(i):s}static set(i,a,c,s){return Reflect.set(i,a,c,s)}static has(i,a){return Reflect.has(i,a)}static deleteProperty(i,a){return Reflect.deleteProperty(i,a)}}})(Dt),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NextResponse",{enumerable:!0,get:function(){return m}});const n=Ye,r=tt,i=rt,a=Dt,c=Ye,s=Symbol("internal response"),o=new Set([301,302,303,307,308]);function _(p,y){var T;if(!(p==null||(T=p.request)==null)&&T.headers){if(!(p.request.headers instanceof Headers))throw Object.defineProperty(new Error("request.headers must be an instance of Headers"),"__NEXT_ERROR_CODE",{value:"E119",enumerable:!1,configurable:!0});const C=[];for(const[N,A]of p.request.headers)y.set("x-middleware-request-"+N,A),C.push(N);y.set("x-middleware-override-headers",C.join(","))}}class m extends Response{constructor(y,T={}){super(y,T);const C=this.headers,N=new c.ResponseCookies(C),A=new Proxy(N,{get(E,f,d){switch(f){case"delete":case"set":return(...h)=>{const v=Reflect.apply(E[f],E,h),L=new Headers(C);return v instanceof c.ResponseCookies&&C.set("x-middleware-set-cookie",v.getAll().map(J=>(0,n.stringifyCookie)(J)).join(",")),_(T,L),v};default:return a.ReflectAdapter.get(E,f,d)}}});this[s]={cookies:A,url:T.url?new r.NextURL(T.url,{headers:(0,i.toNodeOutgoingHttpHeaders)(C),nextConfig:T.nextConfig}):void 0}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,url:this.url,body:this.body,bodyUsed:this.bodyUsed,headers:Object.fromEntries(this.headers),ok:this.ok,redirected:this.redirected,status:this.status,statusText:this.statusText,type:this.type}}get cookies(){return this[s].cookies}static json(y,T){const C=Response.json(y,T);return new m(C.body,C)}static redirect(y,T){const C=typeof T=="number"?T:(T==null?void 0:T.status)??307;if(!o.has(C))throw Object.defineProperty(new RangeError('Failed to execute "redirect" on "response": Invalid status code'),"__NEXT_ERROR_CODE",{value:"E529",enumerable:!1,configurable:!0});const N=typeof T=="object"?T:{},A=new Headers(N==null?void 0:N.headers);return A.set("Location",(0,i.validateURL)(y)),new m(null,{...N,headers:A,status:C})}static rewrite(y,T){const C=new Headers(T==null?void 0:T.headers);return C.set("x-middleware-rewrite",(0,i.validateURL)(y)),_(T,C),new m(null,{...T,headers:C})}static next(y){const T=new Headers(y==null?void 0:y.headers);return T.set("x-middleware-next","1"),_(y,T),new m(null,{...y,headers:T})}}}(xt);var jt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageResponse",{enumerable:!0,get:function(){return n}});function n(){throw Object.defineProperty(new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'),"__NEXT_ERROR_CODE",{value:"E183",enumerable:!1,configurable:!0})}})(jt);var at={},Lt={exports:{}};(()=>{var e={226:function(a,c){(function(s,o){var _="1.0.35",m="",p="?",y="function",T="undefined",C="object",N="string",A="major",E="model",f="name",d="type",h="vendor",v="version",L="architecture",J="console",P="mobile",D="tablet",K="smarttv",le="wearable",pe="embedded",z=350,_e="Amazon",oe="Apple",he="ASUS",ie="BlackBerry",ae="Browser",ne="Chrome",re="Edge",se="Firefox",u="Google",w="Huawei",k="LG",I="Microsoft",$="Motorola",q="Opera",W="Samsung",fe="Sharp",ee="Sony",be="Xiaomi",Re="Zebra",Ae="Facebook",Pe="Chromium OS",Se="Mac OS",Te=function(G,Q){var U={};for(var Z in G)Q[Z]&&Q[Z].length%2===0?U[Z]=Q[Z].concat(G[Z]):U[Z]=G[Z];return U},we=function(G){for(var Q={},U=0;U<G.length;U++)Q[G[U].toUpperCase()]=G[U];return Q},de=function(G,Q){return typeof G===N?g(Q).indexOf(g(G))!==-1:!1},g=function(G){return G.toLowerCase()},S=function(G){return typeof G===N?G.replace(/[^\d\.]/g,m).split(".")[0]:o},b=function(G,Q){if(typeof G===N)return G=G.replace(/^\s\s*/,m),typeof Q===T?G:G.substring(0,z)},j=function(G,Q){for(var U=0,Z,ve,ge,V,M,me;U<Q.length&&!M;){var t=Q[U],l=Q[U+1];for(Z=ve=0;Z<t.length&&!M&&t[Z];)if(M=t[Z++].exec(G),M)for(ge=0;ge<l.length;ge++)me=M[++ve],V=l[ge],typeof V===C&&V.length>0?V.length===2?typeof V[1]==y?this[V[0]]=V[1].call(this,me):this[V[0]]=V[1]:V.length===3?typeof V[1]===y&&!(V[1].exec&&V[1].test)?this[V[0]]=me?V[1].call(this,me,V[2]):o:this[V[0]]=me?me.replace(V[1],V[2]):o:V.length===4&&(this[V[0]]=me?V[3].call(this,me.replace(V[1],V[2])):o):this[V]=me||o;U+=2}},ue=function(G,Q){for(var U in Q)if(typeof Q[U]===C&&Q[U].length>0){for(var Z=0;Z<Q[U].length;Z++)if(de(Q[U][Z],G))return U===p?o:U}else if(de(Q[U],G))return U===p?o:U;return G},ce={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ce={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ne={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,v],[/opios[\/ ]+([\w\.]+)/i],[v,[f,q+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[f,q]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[f,"UC"+ae]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[v,[f,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[f,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+ae],v],[/\bfocus\/([\w\.]+)/i],[v,[f,se+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[f,q+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[f,q+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[f,"MIUI "+ae]],[/fxios\/([-\w\.]+)/i],[v,[f,se]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+ae]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+ae],v],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[f,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,Ae],v],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[f,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[f,ne+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,ne+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[f,"Android "+ae]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[v,ue,ce]],[/(webkit|khtml)\/([\w\.]+)/i],[f,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[f,se+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,v],[/(cobalt)\/([\w\.]+)/i],[f,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[L,"amd64"]],[/(ia32(?=;))/i],[[L,g]],[/((?:i[346]|x)86)[;\)]/i],[[L,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[L,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[L,"armhf"]],[/windows (ce|mobile); ppc;/i],[[L,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[L,/ower/,m,g]],[/(sun4\w)[;\)]/i],[[L,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[L,g]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[E,[h,W],[d,D]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[E,[h,W],[d,P]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[E,[h,oe],[d,P]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[E,[h,oe],[d,D]],[/(macintosh);/i],[E,[h,oe]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[E,[h,fe],[d,P]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[E,[h,w],[d,D]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[E,[h,w],[d,P]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[E,/_/g," "],[h,be],[d,P]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[E,/_/g," "],[h,be],[d,D]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[E,[h,"OPPO"],[d,P]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[E,[h,"Vivo"],[d,P]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[E,[h,"Realme"],[d,P]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[E,[h,$],[d,P]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[E,[h,$],[d,D]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[E,[h,k],[d,D]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[E,[h,k],[d,P]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[E,[h,"Lenovo"],[d,D]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[E,/_/g," "],[h,"Nokia"],[d,P]],[/(pixel c)\b/i],[E,[h,u],[d,D]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[E,[h,u],[d,P]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[E,[h,ee],[d,P]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[E,"Xperia Tablet"],[h,ee],[d,D]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[E,[h,"OnePlus"],[d,P]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[E,[h,_e],[d,D]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[E,/(.+)/g,"Fire Phone $1"],[h,_e],[d,P]],[/(playbook);[-\w\),; ]+(rim)/i],[E,h,[d,D]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[E,[h,ie],[d,P]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[E,[h,he],[d,D]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[E,[h,he],[d,P]],[/(nexus 9)/i],[E,[h,"HTC"],[d,D]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[E,/_/g," "],[d,P]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[E,[h,"Acer"],[d,D]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[E,[h,"Meizu"],[d,P]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,E,[d,P]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,E,[d,D]],[/(surface duo)/i],[E,[h,I],[d,D]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[E,[h,"Fairphone"],[d,P]],[/(u304aa)/i],[E,[h,"AT&T"],[d,P]],[/\bsie-(\w*)/i],[E,[h,"Siemens"],[d,P]],[/\b(rct\w+) b/i],[E,[h,"RCA"],[d,D]],[/\b(venue[\d ]{2,7}) b/i],[E,[h,"Dell"],[d,D]],[/\b(q(?:mv|ta)\w+) b/i],[E,[h,"Verizon"],[d,D]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[E,[h,"Barnes & Noble"],[d,D]],[/\b(tm\d{3}\w+) b/i],[E,[h,"NuVision"],[d,D]],[/\b(k88) b/i],[E,[h,"ZTE"],[d,D]],[/\b(nx\d{3}j) b/i],[E,[h,"ZTE"],[d,P]],[/\b(gen\d{3}) b.+49h/i],[E,[h,"Swiss"],[d,P]],[/\b(zur\d{3}) b/i],[E,[h,"Swiss"],[d,D]],[/\b((zeki)?tb.*\b) b/i],[E,[h,"Zeki"],[d,D]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],E,[d,D]],[/\b(ns-?\w{0,9}) b/i],[E,[h,"Insignia"],[d,D]],[/\b((nxa|next)-?\w{0,9}) b/i],[E,[h,"NextBook"],[d,D]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],E,[d,P]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],E,[d,P]],[/\b(ph-1) /i],[E,[h,"Essential"],[d,P]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[E,[h,"Envizen"],[d,D]],[/\b(trio[-\w\. ]+) b/i],[E,[h,"MachSpeed"],[d,D]],[/\btu_(1491) b/i],[E,[h,"Rotor"],[d,D]],[/(shield[\w ]+) b/i],[E,[h,"Nvidia"],[d,D]],[/(sprint) (\w+)/i],[h,E,[d,P]],[/(kin\.[onetw]{3})/i],[[E,/\./g," "],[h,I],[d,P]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[E,[h,Re],[d,D]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[E,[h,Re],[d,P]],[/smart-tv.+(samsung)/i],[h,[d,K]],[/hbbtv.+maple;(\d+)/i],[[E,/^/,"SmartTV"],[h,W],[d,K]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,k],[d,K]],[/(apple) ?tv/i],[h,[E,oe+" TV"],[d,K]],[/crkey/i],[[E,ne+"cast"],[h,u],[d,K]],[/droid.+aft(\w)( bui|\))/i],[E,[h,_e],[d,K]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[E,[h,fe],[d,K]],[/(bravia[\w ]+)( bui|\))/i],[E,[h,ee],[d,K]],[/(mitv-\w{5}) bui/i],[E,[h,be],[d,K]],[/Hbbtv.*(technisat) (.*);/i],[h,E,[d,K]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,b],[E,b],[d,K]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,K]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,E,[d,J]],[/droid.+; (shield) bui/i],[E,[h,"Nvidia"],[d,J]],[/(playstation [345portablevi]+)/i],[E,[h,ee],[d,J]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[E,[h,I],[d,J]],[/((pebble))app/i],[h,E,[d,le]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[E,[h,oe],[d,le]],[/droid.+; (glass) \d/i],[E,[h,u],[d,le]],[/droid.+; (wt63?0{2,3})\)/i],[E,[h,Re],[d,le]],[/(quest( 2| pro)?)/i],[E,[h,Ae],[d,le]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[d,pe]],[/(aeobc)\b/i],[E,[h,_e],[d,pe]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[E,[d,P]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[E,[d,D]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,D]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,P]],[/(android[-\w\. ]{0,9});.+buil/i],[E,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[f,re+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[f,[v,ue,Ce]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,"Windows"],[v,ue,Ce]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,Se],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,v],[/\(bb(10);/i],[v,[f,ie]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[f,se+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[f,ne+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,Pe],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,v],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,v]]},ye=function(G,Q){if(typeof G===C&&(Q=G,G=o),!(this instanceof ye))return new ye(G,Q).getResult();var U=typeof s!==T&&s.navigator?s.navigator:o,Z=G||(U&&U.userAgent?U.userAgent:m),ve=U&&U.userAgentData?U.userAgentData:o,ge=Q?Te(Ne,Q):Ne,V=U&&U.userAgent==Z;return this.getBrowser=function(){var M={};return M[f]=o,M[v]=o,j.call(M,Z,ge.browser),M[A]=S(M[v]),V&&U&&U.brave&&typeof U.brave.isBrave==y&&(M[f]="Brave"),M},this.getCPU=function(){var M={};return M[L]=o,j.call(M,Z,ge.cpu),M},this.getDevice=function(){var M={};return M[h]=o,M[E]=o,M[d]=o,j.call(M,Z,ge.device),V&&!M[d]&&ve&&ve.mobile&&(M[d]=P),V&&M[E]=="Macintosh"&&U&&typeof U.standalone!==T&&U.maxTouchPoints&&U.maxTouchPoints>2&&(M[E]="iPad",M[d]=D),M},this.getEngine=function(){var M={};return M[f]=o,M[v]=o,j.call(M,Z,ge.engine),M},this.getOS=function(){var M={};return M[f]=o,M[v]=o,j.call(M,Z,ge.os),V&&!M[f]&&ve&&ve.platform!="Unknown"&&(M[f]=ve.platform.replace(/chrome os/i,Pe).replace(/macos/i,Se)),M},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Z},this.setUA=function(M){return Z=typeof M===N&&M.length>z?b(M,z):M,this},this.setUA(Z),this};ye.VERSION=_,ye.BROWSER=we([f,v,A]),ye.CPU=we([L]),ye.DEVICE=we([E,h,d,J,P,K,D,le,pe]),ye.ENGINE=ye.OS=we([f,v]),typeof c!==T?(a.exports&&(c=a.exports=ye),c.UAParser=ye):typeof s!==T&&(s.UAParser=ye);var ke=typeof s!==T&&(s.jQuery||s.Zepto);if(ke&&!ke.ua){var De=new ye;ke.ua=De.getResult(),ke.ua.get=function(){return De.getUA()},ke.ua.set=function(G){De.setUA(G);var Q=De.getResult();for(var U in Q)ke.ua[U]=Q[U]}}})(typeof window=="object"?window:this)}},n={};function r(a){var c=n[a];if(c!==void 0)return c.exports;var s=n[a]={exports:{}},o=!0;try{e[a].call(s.exports,s,s.exports,r),o=!1}finally{o&&delete n[a]}return s.exports}typeof r<"u"&&(r.ab=__dirname+"/");var i=r(226);Lt.exports=i})();var Xn=Lt.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(o,_){for(var m in _)Object.defineProperty(o,m,{enumerable:!0,get:_[m]})}n(e,{isBot:function(){return a},userAgent:function(){return s},userAgentFromString:function(){return c}});const r=i(Xn);function i(o){return o&&o.__esModule?o:{default:o}}function a(o){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(o)}function c(o){return{...(0,r.default)(o),isBot:o===void 0?!1:a(o)}}function s({headers:o}){return c(o.get("user-agent")||void 0)}})(at);var Mt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"URLPattern",{enumerable:!0,get:function(){return n}});const n=typeof URLPattern>"u"?void 0:URLPattern})(Mt);var Ht={},Ut={},Xe={},Xt={},$e={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(_,m){for(var p in m)Object.defineProperty(_,p,{enumerable:!0,get:m[p]})}n(e,{bindSnapshot:function(){return s},createAsyncLocalStorage:function(){return c},createSnapshot:function(){return o}});const r=Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class i{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(m){return m}}const a=typeof globalThis<"u"&&globalThis.AsyncLocalStorage;function c(){return a?new a:new i}function s(_){return a?a.bind(_):i.bind(_)}function o(){return a?a.snapshot():function(_,...m){return _(...m)}}})($e),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});const r=(0,$e.createAsyncLocalStorage)()}(Xt),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});const n=Xt}(Xe),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"after",{enumerable:!0,get:function(){return r}});const n=Xe;function r(i){const a=n.workAsyncStorage.getStore();if(!a)throw Object.defineProperty(new Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"),"__NEXT_ERROR_CODE",{value:"E468",enumerable:!1,configurable:!0});const{afterContext:c}=a;return c.after(i)}}(Ut),function(e){Object.defineProperty(e,"__esModule",{value:!0}),n(Ut,e);function n(r,i){return Object.keys(r).forEach(function(a){a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:function(){return r[a]}})}),r}}(Ht);var $t={},We={},qt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return r}});const r=(0,$e.createAsyncLocalStorage)()})(qt);var st={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});function r(v,L){for(var J in L)Object.defineProperty(v,J,{enumerable:!0,get:L[J]})}r(n,{ACTION_HEADER:function(){return a},FLIGHT_HEADERS:function(){return T},NEXT_ACTION_NOT_FOUND_HEADER:function(){return h},NEXT_DID_POSTPONE_HEADER:function(){return A},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return m},NEXT_HMR_REFRESH_HEADER:function(){return _},NEXT_IS_PRERENDER_HEADER:function(){return d},NEXT_REWRITTEN_PATH_HEADER:function(){return E},NEXT_REWRITTEN_QUERY_HEADER:function(){return f},NEXT_ROUTER_PREFETCH_HEADER:function(){return s},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return o},NEXT_ROUTER_STALE_TIME_HEADER:function(){return N},NEXT_ROUTER_STATE_TREE_HEADER:function(){return c},NEXT_RSC_UNION_QUERY:function(){return C},NEXT_URL:function(){return p},RSC_CONTENT_TYPE_HEADER:function(){return y},RSC_HEADER:function(){return i}});const i="rsc",a="next-action",c="next-router-state-tree",s="next-router-prefetch",o="next-router-segment-prefetch",_="next-hmr-refresh",m="__next_hmr_refresh_hash__",p="next-url",y="text/x-component",T=[i,c,s,_,o],C="_rsc",N="x-nextjs-stale-time",A="x-nextjs-postponed",E="x-nextjs-rewritten-path",f="x-nextjs-rewritten-query",d="x-nextjs-prerender",h="x-nextjs-action-not-found";(typeof n.default=="function"||typeof n.default=="object"&&n.default!==null)&&typeof n.default.__esModule>"u"&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)})(st,st.exports);var $n=st.exports,ze={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"InvariantError",{enumerable:!0,get:function(){return n}});class n extends Error{constructor(i,a){super("Invariant: "+(i.endsWith(".")?i:i+".")+" This is a bug in Next.js.",a),this.name="InvariantError"}}})(ze),function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(A,E){for(var f in E)Object.defineProperty(A,f,{enumerable:!0,get:E[f]})}n(e,{getCacheSignal:function(){return C},getDraftModeProviderForCacheScope:function(){return T},getHmrRefreshHash:function(){return m},getPrerenderResumeDataCache:function(){return o},getRenderResumeDataCache:function(){return _},getRuntimeStagePromise:function(){return N},getServerComponentsHmrCache:function(){return y},isHmrRefresh:function(){return p},throwForMissingRequestStore:function(){return c},throwInvariantForMissingStore:function(){return s},workUnitAsyncStorage:function(){return r.workUnitAsyncStorageInstance}});const r=qt,i=$n,a=ze;function c(A){throw Object.defineProperty(new Error(`\`${A}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E251",enumerable:!1,configurable:!0})}function s(){throw Object.defineProperty(new a.InvariantError("Expected workUnitAsyncStorage to have a store."),"__NEXT_ERROR_CODE",{value:"E696",enumerable:!1,configurable:!0})}function o(A){switch(A.type){case"prerender":case"prerender-runtime":case"prerender-ppr":return A.prerenderResumeDataCache;case"prerender-client":return A.prerenderResumeDataCache;case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":return null;default:return A}}function _(A){switch(A.type){case"request":return A.renderResumeDataCache;case"prerender":case"prerender-runtime":case"prerender-client":if(A.renderResumeDataCache)return A.renderResumeDataCache;case"prerender-ppr":return A.prerenderResumeDataCache;case"cache":case"private-cache":case"unstable-cache":case"prerender-legacy":return null;default:return A}}function m(A,E){if(A.dev)switch(E.type){case"cache":case"private-cache":case"prerender":case"prerender-runtime":return E.hmrRefreshHash;case"request":var f;return(f=E.cookies.get(i.NEXT_HMR_REFRESH_HASH_COOKIE))==null?void 0:f.value}}function p(A,E){if(A.dev)switch(E.type){case"cache":case"private-cache":case"request":return E.isHmrRefresh??!1}return!1}function y(A,E){if(A.dev)switch(E.type){case"cache":case"private-cache":case"request":return E.serverComponentsHmrCache}}function T(A,E){if(A.isDraftMode)switch(E.type){case"cache":case"private-cache":case"unstable-cache":case"prerender-runtime":case"request":return E.draftMode}}function C(A){switch(A.type){case"prerender":case"prerender-client":case"prerender-runtime":return A.cacheSignal;case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":return null;default:return A}}function N(A){switch(A.type){case"prerender-runtime":case"private-cache":return A.runtimeStagePromise;case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"unstable-cache":return null;default:return A}}}(We);var ut={},ct={exports:{}},X={};/**
9
- * @license React
10
- * react.production.js
11
- *
12
- * Copyright (c) Meta Platforms, Inc. and affiliates.
13
- *
14
- * This source code is licensed under the MIT license found in the
15
- * LICENSE file in the root directory of this source tree.
16
- */var Ft;function qn(){if(Ft)return X;Ft=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),T=Symbol.iterator;function C(u){return u===null||typeof u!="object"?null:(u=T&&u[T]||u["@@iterator"],typeof u=="function"?u:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,E={};function f(u,w,k){this.props=u,this.context=w,this.refs=E,this.updater=k||N}f.prototype.isReactComponent={},f.prototype.setState=function(u,w){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,w,"setState")},f.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};function d(){}d.prototype=f.prototype;function h(u,w,k){this.props=u,this.context=w,this.refs=E,this.updater=k||N}var v=h.prototype=new d;v.constructor=h,A(v,f.prototype),v.isPureReactComponent=!0;var L=Array.isArray;function J(){}var P={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function K(u,w,k){var I=k.ref;return{$$typeof:e,type:u,key:w,ref:I!==void 0?I:null,props:k}}function le(u,w){return K(u.type,w,u.props)}function pe(u){return typeof u=="object"&&u!==null&&u.$$typeof===e}function z(u){var w={"=":"=0",":":"=2"};return"$"+u.replace(/[=:]/g,function(k){return w[k]})}var _e=/\/+/g;function oe(u,w){return typeof u=="object"&&u!==null&&u.key!=null?z(""+u.key):w.toString(36)}function he(u){switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:switch(typeof u.status=="string"?u.then(J,J):(u.status="pending",u.then(function(w){u.status==="pending"&&(u.status="fulfilled",u.value=w)},function(w){u.status==="pending"&&(u.status="rejected",u.reason=w)})),u.status){case"fulfilled":return u.value;case"rejected":throw u.reason}}throw u}function ie(u,w,k,I,$){var q=typeof u;(q==="undefined"||q==="boolean")&&(u=null);var W=!1;if(u===null)W=!0;else switch(q){case"bigint":case"string":case"number":W=!0;break;case"object":switch(u.$$typeof){case e:case n:W=!0;break;case p:return W=u._init,ie(W(u._payload),w,k,I,$)}}if(W)return $=$(u),W=I===""?"."+oe(u,0):I,L($)?(k="",W!=null&&(k=W.replace(_e,"$&/")+"/"),ie($,w,k,"",function(be){return be})):$!=null&&(pe($)&&($=le($,k+($.key==null||u&&u.key===$.key?"":(""+$.key).replace(_e,"$&/")+"/")+W)),w.push($)),1;W=0;var fe=I===""?".":I+":";if(L(u))for(var ee=0;ee<u.length;ee++)I=u[ee],q=fe+oe(I,ee),W+=ie(I,w,k,q,$);else if(ee=C(u),typeof ee=="function")for(u=ee.call(u),ee=0;!(I=u.next()).done;)I=I.value,q=fe+oe(I,ee++),W+=ie(I,w,k,q,$);else if(q==="object"){if(typeof u.then=="function")return ie(he(u),w,k,I,$);throw w=String(u),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}return W}function ae(u,w,k){if(u==null)return u;var I=[],$=0;return ie(u,I,"","",function(q){return w.call(k,q,$++)}),I}function ne(u){if(u._status===-1){var w=u._result;w=w(),w.then(function(k){(u._status===0||u._status===-1)&&(u._status=1,u._result=k)},function(k){(u._status===0||u._status===-1)&&(u._status=2,u._result=k)}),u._status===-1&&(u._status=0,u._result=w)}if(u._status===1)return u._result.default;throw u._result}var re=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var w=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(w))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)},se={map:ae,forEach:function(u,w,k){ae(u,function(){w.apply(this,arguments)},k)},count:function(u){var w=0;return ae(u,function(){w++}),w},toArray:function(u){return ae(u,function(w){return w})||[]},only:function(u){if(!pe(u))throw Error("React.Children.only expected to receive a single React element child.");return u}};return X.Activity=y,X.Children=se,X.Component=f,X.Fragment=r,X.Profiler=a,X.PureComponent=h,X.StrictMode=i,X.Suspense=_,X.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,X.__COMPILER_RUNTIME={__proto__:null,c:function(u){return P.H.useMemoCache(u)}},X.cache=function(u){return function(){return u.apply(null,arguments)}},X.cacheSignal=function(){return null},X.cloneElement=function(u,w,k){if(u==null)throw Error("The argument must be a React element, but you passed "+u+".");var I=A({},u.props),$=u.key;if(w!=null)for(q in w.key!==void 0&&($=""+w.key),w)!D.call(w,q)||q==="key"||q==="__self"||q==="__source"||q==="ref"&&w.ref===void 0||(I[q]=w[q]);var q=arguments.length-2;if(q===1)I.children=k;else if(1<q){for(var W=Array(q),fe=0;fe<q;fe++)W[fe]=arguments[fe+2];I.children=W}return K(u.type,$,I)},X.createContext=function(u){return u={$$typeof:s,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null},u.Provider=u,u.Consumer={$$typeof:c,_context:u},u},X.createElement=function(u,w,k){var I,$={},q=null;if(w!=null)for(I in w.key!==void 0&&(q=""+w.key),w)D.call(w,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&($[I]=w[I]);var W=arguments.length-2;if(W===1)$.children=k;else if(1<W){for(var fe=Array(W),ee=0;ee<W;ee++)fe[ee]=arguments[ee+2];$.children=fe}if(u&&u.defaultProps)for(I in W=u.defaultProps,W)$[I]===void 0&&($[I]=W[I]);return K(u,q,$)},X.createRef=function(){return{current:null}},X.forwardRef=function(u){return{$$typeof:o,render:u}},X.isValidElement=pe,X.lazy=function(u){return{$$typeof:p,_payload:{_status:-1,_result:u},_init:ne}},X.memo=function(u,w){return{$$typeof:m,type:u,compare:w===void 0?null:w}},X.startTransition=function(u){var w=P.T,k={};P.T=k;try{var I=u(),$=P.S;$!==null&&$(k,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(J,re)}catch(q){re(q)}finally{w!==null&&k.types!==null&&(w.types=k.types),P.T=w}},X.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},X.use=function(u){return P.H.use(u)},X.useActionState=function(u,w,k){return P.H.useActionState(u,w,k)},X.useCallback=function(u,w){return P.H.useCallback(u,w)},X.useContext=function(u){return P.H.useContext(u)},X.useDebugValue=function(){},X.useDeferredValue=function(u,w){return P.H.useDeferredValue(u,w)},X.useEffect=function(u,w){return P.H.useEffect(u,w)},X.useEffectEvent=function(u){return P.H.useEffectEvent(u)},X.useId=function(){return P.H.useId()},X.useImperativeHandle=function(u,w,k){return P.H.useImperativeHandle(u,w,k)},X.useInsertionEffect=function(u,w){return P.H.useInsertionEffect(u,w)},X.useLayoutEffect=function(u,w){return P.H.useLayoutEffect(u,w)},X.useMemo=function(u,w){return P.H.useMemo(u,w)},X.useOptimistic=function(u,w){return P.H.useOptimistic(u,w)},X.useReducer=function(u,w,k){return P.H.useReducer(u,w,k)},X.useRef=function(u){return P.H.useRef(u)},X.useState=function(u){return P.H.useState(u)},X.useSyncExternalStore=function(u,w,k){return P.H.useSyncExternalStore(u,w,k)},X.useTransition=function(){return P.H.useTransition()},X.version="19.2.6",X}var qe={exports:{}};/**
17
- * @license React
18
- * react.development.js
19
- *
20
- * Copyright (c) Meta Platforms, Inc. and affiliates.
21
- *
22
- * This source code is licensed under the MIT license found in the
23
- * LICENSE file in the root directory of this source tree.
24
- */qe.exports;var Gt;function Fn(){return Gt||(Gt=1,function(e,n){process.env.NODE_ENV!=="production"&&function(){function r(t,l){Object.defineProperty(c.prototype,t,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",l[0],l[1])}})}function i(t){return t===null||typeof t!="object"?null:(t=Ae&&t[Ae]||t["@@iterator"],typeof t=="function"?t:null)}function a(t,l){t=(t=t.constructor)&&(t.displayName||t.name)||"ReactClass";var R=t+"."+l;Pe[R]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",l,t),Pe[R]=!0)}function c(t,l,R){this.props=t,this.context=l,this.refs=we,this.updater=R||Se}function s(){}function o(t,l,R){this.props=t,this.context=l,this.refs=we,this.updater=R||Se}function _(){}function m(t){return""+t}function p(t){try{m(t);var l=!1}catch{l=!0}if(l){l=console;var R=l.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object";return R.call(l,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),m(t)}}function y(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===S?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case u:return"Fragment";case k:return"Profiler";case w:return"StrictMode";case W:return"Suspense";case fe:return"SuspenseList";case Re:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case se:return"Portal";case $:return t.displayName||"Context";case I:return(t._context.displayName||"Context")+".Consumer";case q:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ee:return l=t.displayName||null,l!==null?l:y(t.type)||"Memo";case be:l=t._payload,t=t._init;try{return y(t(l))}catch{}}return null}function T(t){if(t===u)return"<>";if(typeof t=="object"&&t!==null&&t.$$typeof===be)return"<...>";try{var l=y(t);return l?"<"+l+">":"<...>"}catch{return"<...>"}}function C(){var t=b.A;return t===null?null:t.getOwner()}function N(){return Error("react-stack-top-frame")}function A(t){if(j.call(t,"key")){var l=Object.getOwnPropertyDescriptor(t,"key").get;if(l&&l.isReactWarning)return!1}return t.key!==void 0}function E(t,l){function R(){ce||(ce=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",l))}R.isReactWarning=!0,Object.defineProperty(t,"key",{get:R,configurable:!0})}function f(){var t=y(this.type);return Ne[t]||(Ne[t]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),t=this.props.ref,t!==void 0?t:null}function d(t,l,R,O,x,B){var F=R.ref;return t={$$typeof:re,type:t,key:l,props:R,_owner:O},(F!==void 0?F:null)!==null?Object.defineProperty(t,"ref",{enumerable:!1,get:f}):Object.defineProperty(t,"ref",{enumerable:!1,value:null}),t._store={},Object.defineProperty(t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(t,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(t,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:x}),Object.defineProperty(t,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:B}),Object.freeze&&(Object.freeze(t.props),Object.freeze(t)),t}function h(t,l){return l=d(t.type,l,t.props,t._owner,t._debugStack,t._debugTask),t._store&&(l._store.validated=t._store.validated),l}function v(t){L(t)?t._store&&(t._store.validated=1):typeof t=="object"&&t!==null&&t.$$typeof===be&&(t._payload.status==="fulfilled"?L(t._payload.value)&&t._payload.value._store&&(t._payload.value._store.validated=1):t._store&&(t._store.validated=1))}function L(t){return typeof t=="object"&&t!==null&&t.$$typeof===re}function J(t){var l={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(R){return l[R]})}function P(t,l){return typeof t=="object"&&t!==null&&t.key!=null?(p(t.key),J(""+t.key)):l.toString(36)}function D(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(_,_):(t.status="pending",t.then(function(l){t.status==="pending"&&(t.status="fulfilled",t.value=l)},function(l){t.status==="pending"&&(t.status="rejected",t.reason=l)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function K(t,l,R,O,x){var B=typeof t;(B==="undefined"||B==="boolean")&&(t=null);var F=!1;if(t===null)F=!0;else switch(B){case"bigint":case"string":case"number":F=!0;break;case"object":switch(t.$$typeof){case re:case se:F=!0;break;case be:return F=t._init,K(F(t._payload),l,R,O,x)}}if(F){F=t,x=x(F);var te=O===""?"."+P(F,0):O;return g(x)?(R="",te!=null&&(R=te.replace(G,"$&/")+"/"),K(x,l,R,"",function(Ie){return Ie})):x!=null&&(L(x)&&(x.key!=null&&(F&&F.key===x.key||p(x.key)),R=h(x,R+(x.key==null||F&&F.key===x.key?"":(""+x.key).replace(G,"$&/")+"/")+te),O!==""&&F!=null&&L(F)&&F.key==null&&F._store&&!F._store.validated&&(R._store.validated=2),x=R),l.push(x)),1}if(F=0,te=O===""?".":O+":",g(t))for(var Y=0;Y<t.length;Y++)O=t[Y],B=te+P(O,Y),F+=K(O,l,R,B,x);else if(Y=i(t),typeof Y=="function")for(Y===t.entries&&(De||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),De=!0),t=Y.call(t),Y=0;!(O=t.next()).done;)O=O.value,B=te+P(O,Y++),F+=K(O,l,R,B,x);else if(B==="object"){if(typeof t.then=="function")return K(D(t),l,R,O,x);throw l=String(t),Error("Objects are not valid as a React child (found: "+(l==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":l)+"). If you meant to render a collection of children, use an array instead.")}return F}function le(t,l,R){if(t==null)return t;var O=[],x=0;return K(t,O,"","",function(B){return l.call(R,B,x++)}),O}function pe(t){if(t._status===-1){var l=t._ioInfo;l!=null&&(l.start=l.end=performance.now()),l=t._result;var R=l();if(R.then(function(x){if(t._status===0||t._status===-1){t._status=1,t._result=x;var B=t._ioInfo;B!=null&&(B.end=performance.now()),R.status===void 0&&(R.status="fulfilled",R.value=x)}},function(x){if(t._status===0||t._status===-1){t._status=2,t._result=x;var B=t._ioInfo;B!=null&&(B.end=performance.now()),R.status===void 0&&(R.status="rejected",R.reason=x)}}),l=t._ioInfo,l!=null){l.value=R;var O=R.displayName;typeof O=="string"&&(l.name=O)}t._status===-1&&(t._status=0,t._result=R)}if(t._status===1)return l=t._result,l===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
25
-
26
- Your code should look like:
27
- const MyComponent = lazy(() => import('./MyComponent'))
28
-
29
- Did you accidentally put curly braces around the import?`,l),"default"in l||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
30
-
31
- Your code should look like:
32
- const MyComponent = lazy(() => import('./MyComponent'))`,l),l.default;throw t._result}function z(){var t=b.H;return t===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
33
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
34
- 2. You might be breaking the Rules of Hooks
35
- 3. You might have more than one copy of React in the same app
36
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),t}function _e(){b.asyncTransitions--}function oe(t){if(Z===null)try{var l=("require"+Math.random()).slice(0,7);Z=(e&&e[l]).call(e,"timers").setImmediate}catch{Z=function(O){U===!1&&(U=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var x=new MessageChannel;x.port1.onmessage=O,x.port2.postMessage(void 0)}}return Z(t)}function he(t){return 1<t.length&&typeof AggregateError=="function"?new AggregateError(t):t[0]}function ie(t,l){l!==ve-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ve=l}function ae(t,l,R){var O=b.actQueue;if(O!==null)if(O.length!==0)try{ne(O),oe(function(){return ae(t,l,R)});return}catch(x){b.thrownErrors.push(x)}else b.actQueue=null;0<b.thrownErrors.length?(O=he(b.thrownErrors),b.thrownErrors.length=0,R(O)):l(t)}function ne(t){if(!V){V=!0;var l=0;try{for(;l<t.length;l++){var R=t[l];do{b.didUsePromise=!1;var O=R(!1);if(O!==null){if(b.didUsePromise){t[l]=R,t.splice(0,l);return}R=O}else break}while(!0)}t.length=0}catch(x){t.splice(0,l+1),b.thrownErrors.push(x)}finally{V=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var re=Symbol.for("react.transitional.element"),se=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),$=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),be=Symbol.for("react.lazy"),Re=Symbol.for("react.activity"),Ae=Symbol.iterator,Pe={},Se={isMounted:function(){return!1},enqueueForceUpdate:function(t){a(t,"forceUpdate")},enqueueReplaceState:function(t){a(t,"replaceState")},enqueueSetState:function(t){a(t,"setState")}},Te=Object.assign,we={};Object.freeze(we),c.prototype.isReactComponent={},c.prototype.setState=function(t,l){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,l,"setState")},c.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};var de={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(me in de)de.hasOwnProperty(me)&&r(me,de[me]);s.prototype=c.prototype,de=o.prototype=new s,de.constructor=o,Te(de,c.prototype),de.isPureReactComponent=!0;var g=Array.isArray,S=Symbol.for("react.client.reference"),b={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},j=Object.prototype.hasOwnProperty,ue=console.createTask?console.createTask:function(){return null};de={react_stack_bottom_frame:function(t){return t()}};var ce,Ce,Ne={},ye=de.react_stack_bottom_frame.bind(de,N)(),ke=ue(T(N)),De=!1,G=/\/+/g,Q=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},U=!1,Z=null,ve=0,ge=!1,V=!1,M=typeof queueMicrotask=="function"?function(t){queueMicrotask(function(){return queueMicrotask(t)})}:oe;de=Object.freeze({__proto__:null,c:function(t){return z().useMemoCache(t)}});var me={map:le,forEach:function(t,l,R){le(t,function(){l.apply(this,arguments)},R)},count:function(t){var l=0;return le(t,function(){l++}),l},toArray:function(t){return le(t,function(l){return l})||[]},only:function(t){if(!L(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};n.Activity=Re,n.Children=me,n.Component=c,n.Fragment=u,n.Profiler=k,n.PureComponent=o,n.StrictMode=w,n.Suspense=W,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,n.__COMPILER_RUNTIME=de,n.act=function(t){var l=b.actQueue,R=ve;ve++;var O=b.actQueue=l!==null?l:[],x=!1;try{var B=t()}catch(Y){b.thrownErrors.push(Y)}if(0<b.thrownErrors.length)throw ie(l,R),t=he(b.thrownErrors),b.thrownErrors.length=0,t;if(B!==null&&typeof B=="object"&&typeof B.then=="function"){var F=B;return M(function(){x||ge||(ge=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Y,Ie){x=!0,F.then(function(Le){if(ie(l,R),R===0){try{ne(O),oe(function(){return ae(Le,Y,Ie)})}catch(dr){b.thrownErrors.push(dr)}if(0<b.thrownErrors.length){var fr=he(b.thrownErrors);b.thrownErrors.length=0,Ie(fr)}}else Y(Le)},function(Le){ie(l,R),0<b.thrownErrors.length&&(Le=he(b.thrownErrors),b.thrownErrors.length=0),Ie(Le)})}}}var te=B;if(ie(l,R),R===0&&(ne(O),O.length!==0&&M(function(){x||ge||(ge=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),b.actQueue=null),0<b.thrownErrors.length)throw t=he(b.thrownErrors),b.thrownErrors.length=0,t;return{then:function(Y,Ie){x=!0,R===0?(b.actQueue=O,oe(function(){return ae(te,Y,Ie)})):Y(te)}}},n.cache=function(t){return function(){return t.apply(null,arguments)}},n.cacheSignal=function(){return null},n.captureOwnerStack=function(){var t=b.getCurrentStack;return t===null?null:t()},n.cloneElement=function(t,l,R){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var O=Te({},t.props),x=t.key,B=t._owner;if(l!=null){var F;e:{if(j.call(l,"ref")&&(F=Object.getOwnPropertyDescriptor(l,"ref").get)&&F.isReactWarning){F=!1;break e}F=l.ref!==void 0}F&&(B=C()),A(l)&&(p(l.key),x=""+l.key);for(te in l)!j.call(l,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&l.ref===void 0||(O[te]=l[te])}var te=arguments.length-2;if(te===1)O.children=R;else if(1<te){F=Array(te);for(var Y=0;Y<te;Y++)F[Y]=arguments[Y+2];O.children=F}for(O=d(t.type,x,O,B,t._debugStack,t._debugTask),x=2;x<arguments.length;x++)v(arguments[x]);return O},n.createContext=function(t){return t={$$typeof:$,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:I,_context:t},t._currentRenderer=null,t._currentRenderer2=null,t},n.createElement=function(t,l,R){for(var O=2;O<arguments.length;O++)v(arguments[O]);O={};var x=null;if(l!=null)for(Y in Ce||!("__self"in l)||"key"in l||(Ce=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),A(l)&&(p(l.key),x=""+l.key),l)j.call(l,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(O[Y]=l[Y]);var B=arguments.length-2;if(B===1)O.children=R;else if(1<B){for(var F=Array(B),te=0;te<B;te++)F[te]=arguments[te+2];Object.freeze&&Object.freeze(F),O.children=F}if(t&&t.defaultProps)for(Y in B=t.defaultProps,B)O[Y]===void 0&&(O[Y]=B[Y]);x&&E(O,typeof t=="function"?t.displayName||t.name||"Unknown":t);var Y=1e4>b.recentlyCreatedOwnerStacks++;return d(t,x,O,C(),Y?Error("react-stack-top-frame"):ye,Y?ue(T(t)):ke)},n.createRef=function(){var t={current:null};return Object.seal(t),t},n.forwardRef=function(t){t!=null&&t.$$typeof===ee?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof t!="function"?console.error("forwardRef requires a render function but was given %s.",t===null?"null":typeof t):t.length!==0&&t.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",t.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),t!=null&&t.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var l={$$typeof:q,render:t},R;return Object.defineProperty(l,"displayName",{enumerable:!1,configurable:!0,get:function(){return R},set:function(O){R=O,t.name||t.displayName||(Object.defineProperty(t,"name",{value:O}),t.displayName=O)}}),l},n.isValidElement=L,n.lazy=function(t){t={_status:-1,_result:t};var l={$$typeof:be,_payload:t,_init:pe},R={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return t._ioInfo=R,l._debugInfo=[{awaited:R}],l},n.memo=function(t,l){t==null&&console.error("memo: The first argument must be a component. Instead received: %s",t===null?"null":typeof t),l={$$typeof:ee,type:t,compare:l===void 0?null:l};var R;return Object.defineProperty(l,"displayName",{enumerable:!1,configurable:!0,get:function(){return R},set:function(O){R=O,t.name||t.displayName||(Object.defineProperty(t,"name",{value:O}),t.displayName=O)}}),l},n.startTransition=function(t){var l=b.T,R={};R._updatedFibers=new Set,b.T=R;try{var O=t(),x=b.S;x!==null&&x(R,O),typeof O=="object"&&O!==null&&typeof O.then=="function"&&(b.asyncTransitions++,O.then(_e,_e),O.then(_,Q))}catch(B){Q(B)}finally{l===null&&R._updatedFibers&&(t=R._updatedFibers.size,R._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),l!==null&&R.types!==null&&(l.types!==null&&l.types!==R.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),l.types=R.types),b.T=l}},n.unstable_useCacheRefresh=function(){return z().useCacheRefresh()},n.use=function(t){return z().use(t)},n.useActionState=function(t,l,R){return z().useActionState(t,l,R)},n.useCallback=function(t,l){return z().useCallback(t,l)},n.useContext=function(t){var l=z();return t.$$typeof===I&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),l.useContext(t)},n.useDebugValue=function(t,l){return z().useDebugValue(t,l)},n.useDeferredValue=function(t,l){return z().useDeferredValue(t,l)},n.useEffect=function(t,l){return t==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),z().useEffect(t,l)},n.useEffectEvent=function(t){return z().useEffectEvent(t)},n.useId=function(){return z().useId()},n.useImperativeHandle=function(t,l,R){return z().useImperativeHandle(t,l,R)},n.useInsertionEffect=function(t,l){return t==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),z().useInsertionEffect(t,l)},n.useLayoutEffect=function(t,l){return t==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),z().useLayoutEffect(t,l)},n.useMemo=function(t,l){return z().useMemo(t,l)},n.useOptimistic=function(t,l){return z().useOptimistic(t,l)},n.useReducer=function(t,l,R){return z().useReducer(t,l,R)},n.useRef=function(t){return z().useRef(t)},n.useState=function(t){return z().useState(t)},n.useSyncExternalStore=function(t,l,R){return z().useSyncExternalStore(t,l,R)},n.useTransition=function(){return z().useTransition()},n.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(qe,qe.exports)),qe.exports}process.env.NODE_ENV==="production"?ct.exports=qn():ct.exports=Fn();var Gn=ct.exports,lt={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});function r(s,o){for(var _ in o)Object.defineProperty(s,_,{enumerable:!0,get:o[_]})}r(n,{DynamicServerError:function(){return a},isDynamicServerError:function(){return c}});const i="DYNAMIC_SERVER_USAGE";class a extends Error{constructor(o){super("Dynamic server usage: "+o),this.description=o,this.digest=i}}function c(s){return typeof s!="object"||s===null||!("digest"in s)||typeof s.digest!="string"?!1:s.digest===i}(typeof n.default=="function"||typeof n.default=="object"&&n.default!==null)&&typeof n.default.__esModule>"u"&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)})(lt,lt.exports);var Bn=lt.exports,ft={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});function r(s,o){for(var _ in o)Object.defineProperty(s,_,{enumerable:!0,get:o[_]})}r(n,{StaticGenBailoutError:function(){return a},isStaticGenBailoutError:function(){return c}});const i="NEXT_STATIC_GEN_BAILOUT";class a extends Error{constructor(...o){super(...o),this.code=i}}function c(s){return typeof s!="object"||s===null||!("code"in s)?!1:s.code===i}(typeof n.default=="function"||typeof n.default=="object"&&n.default!==null)&&typeof n.default.__esModule>"u"&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)})(ft,ft.exports);var dt=ft.exports,Ve={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(m,p){for(var y in p)Object.defineProperty(m,y,{enumerable:!0,get:p[y]})}n(e,{isHangingPromiseRejectionError:function(){return r},makeDevtoolsIOAwarePromise:function(){return _},makeHangingPromise:function(){return s}});function r(m){return typeof m!="object"||m===null||!("digest"in m)?!1:m.digest===i}const i="HANGING_PROMISE_REJECTION";class a extends Error{constructor(p,y){super(`During prerendering, ${y} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${y} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${p}".`),this.route=p,this.expression=y,this.digest=i}}const c=new WeakMap;function s(m,p,y){if(m.aborted)return Promise.reject(new a(p,y));{const T=new Promise((C,N)=>{const A=N.bind(null,new a(p,y));let E=c.get(m);if(E)E.push(A);else{const f=[A];c.set(m,f),m.addEventListener("abort",()=>{for(let d=0;d<f.length;d++)f[d]()},{once:!0})}});return T.catch(o),T}}function o(){}function _(m){return new Promise(p=>{setTimeout(()=>{p(m)},0)})}})(Ve);var Bt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(s,o){for(var _ in o)Object.defineProperty(s,_,{enumerable:!0,get:o[_]})}n(e,{METADATA_BOUNDARY_NAME:function(){return r},OUTLET_BOUNDARY_NAME:function(){return a},ROOT_LAYOUT_BOUNDARY_NAME:function(){return c},VIEWPORT_BOUNDARY_NAME:function(){return i}});const r="__next_metadata_boundary__",i="__next_viewport_boundary__",a="__next_outlet_boundary__",c="__next_root_layout_boundary__"})(Bt);var Yt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(s,o){for(var _ in o)Object.defineProperty(s,_,{enumerable:!0,get:o[_]})}n(e,{atLeastOneTask:function(){return a},scheduleImmediate:function(){return i},scheduleOnNextTick:function(){return r},waitAtLeastOneReactRenderTask:function(){return c}});const r=s=>{Promise.resolve().then(()=>{process.env.NEXT_RUNTIME==="edge"?setTimeout(s,0):process.nextTick(s)})},i=s=>{process.env.NEXT_RUNTIME==="edge"?setTimeout(s,0):setImmediate(s)};function a(){return new Promise(s=>i(s))}function c(){return process.env.NEXT_RUNTIME==="edge"?new Promise(s=>setTimeout(s,0)):new Promise(s=>setImmediate(s))}})(Yt);var Wt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(c,s){for(var o in s)Object.defineProperty(c,o,{enumerable:!0,get:s[o]})}n(e,{BailoutToCSRError:function(){return i},isBailoutToCSRError:function(){return a}});const r="BAILOUT_TO_CLIENT_SIDE_RENDERING";class i extends Error{constructor(s){super("Bail out to client-side rendering: "+s),this.reason=s,this.digest=r}}function a(c){return typeof c!="object"||c===null||!("digest"in c)?!1:c.digest===r}})(Wt),function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(g,S){for(var b in S)Object.defineProperty(g,b,{enumerable:!0,get:S[b]})}n(e,{Postpone:function(){return le},PreludeState:function(){return Se},abortAndThrowOnSynchronousRequestDataAccess:function(){return P},abortOnSynchronousPlatformIOAccess:function(){return L},accessedDynamicData:function(){return ne},annotateDynamicAccess:function(){return I},consumeDynamicAccess:function(){return re},createDynamicTrackingState:function(){return N},createDynamicValidationState:function(){return A},createHangingInputAbortSignal:function(){return k},createRenderInBrowserAbortSignal:function(){return w},delayUntilRuntimeStage:function(){return de},formatDynamicAPIAccesses:function(){return se},getFirstDynamicReason:function(){return E},isDynamicPostpone:function(){return _e},isPrerenderInterruptedError:function(){return ae},logDisallowedDynamicError:function(){return Te},markCurrentScopeAsDynamic:function(){return f},postponeWithTracking:function(){return pe},throwIfDisallowedDynamic:function(){return we},throwToInterruptStaticGeneration:function(){return d},trackAllowedDynamicAccess:function(){return Ae},trackDynamicDataInDynamicRender:function(){return h},trackSynchronousPlatformIOAccessInDev:function(){return J},trackSynchronousRequestDataAccessInDev:function(){return K},useDynamicRouteParams:function(){return $},warnOnSyncDynamicError:function(){return D}});const r=T(Gn),i=Bn,a=dt,c=We,s=Xe,o=Ve,_=Bt,m=Yt,p=Wt,y=ze;function T(g){return g&&g.__esModule?g:{default:g}}const C=typeof r.default.unstable_postpone=="function";function N(g){return{isDebugDynamicAccesses:g,dynamicAccesses:[],syncDynamicErrorWithStack:null}}function A(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function E(g){var S;return(S=g.dynamicAccesses[0])==null?void 0:S.expression}function f(g,S,b){if(S)switch(S.type){case"cache":case"unstable-cache":return;case"private-cache":return}if(!(g.forceDynamic||g.forceStatic)){if(g.dynamicShouldError)throw Object.defineProperty(new a.StaticGenBailoutError(`Route ${g.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${b}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(S)switch(S.type){case"prerender-ppr":return pe(g.route,b,S.dynamicTracking);case"prerender-legacy":S.revalidate=0;const j=Object.defineProperty(new i.DynamicServerError(`Route ${g.route} couldn't be rendered statically because it used ${b}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw g.dynamicUsageDescription=b,g.dynamicUsageStack=j.stack,j;case"request":process.env.NODE_ENV!=="production"&&(S.usedDynamic=!0);break}}}function d(g,S,b){const j=Object.defineProperty(new i.DynamicServerError(`Route ${S.route} couldn't be rendered statically because it used \`${g}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw b.revalidate=0,S.dynamicUsageDescription=g,S.dynamicUsageStack=j.stack,j}function h(g){switch(g.type){case"cache":case"unstable-cache":return;case"private-cache":return;case"prerender":case"prerender-runtime":case"prerender-legacy":case"prerender-ppr":case"prerender-client":break;case"request":process.env.NODE_ENV!=="production"&&(g.usedDynamic=!0);break}}function v(g,S,b){const j=`Route ${g} needs to bail out of prerendering at this point because it used ${S}.`,ue=ie(j);b.controller.abort(ue);const ce=b.dynamicTracking;ce&&ce.dynamicAccesses.push({stack:ce.isDebugDynamicAccesses?new Error().stack:void 0,expression:S})}function L(g,S,b,j){const ue=j.dynamicTracking;v(g,S,j),ue&&ue.syncDynamicErrorWithStack===null&&(ue.syncDynamicErrorWithStack=b)}function J(g){g.prerenderPhase=!1}function P(g,S,b,j){if(j.controller.signal.aborted===!1){v(g,S,j);const ce=j.dynamicTracking;ce&&ce.syncDynamicErrorWithStack===null&&(ce.syncDynamicErrorWithStack=b)}throw ie(`Route ${g} needs to bail out of prerendering at this point because it used ${S}.`)}function D(g){g.syncDynamicErrorWithStack&&console.error(g.syncDynamicErrorWithStack)}const K=J;function le({reason:g,route:S}){const b=c.workUnitAsyncStorage.getStore(),j=b&&b.type==="prerender-ppr"?b.dynamicTracking:null;pe(S,g,j)}function pe(g,S,b){u(),b&&b.dynamicAccesses.push({stack:b.isDebugDynamicAccesses?new Error().stack:void 0,expression:S}),r.default.unstable_postpone(z(g,S))}function z(g,S){return`Route ${g} needs to bail out of prerendering at this point because it used ${S}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function _e(g){return typeof g=="object"&&g!==null&&typeof g.message=="string"?oe(g.message):!1}function oe(g){return g.includes("needs to bail out of prerendering at this point because it used")&&g.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(oe(z("%%%","^^^"))===!1)throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});const he="NEXT_PRERENDER_INTERRUPTED";function ie(g){const S=Object.defineProperty(new Error(g),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return S.digest=he,S}function ae(g){return typeof g=="object"&&g!==null&&g.digest===he&&"name"in g&&"message"in g&&g instanceof Error}function ne(g){return g.length>0}function re(g,S){return g.dynamicAccesses.push(...S.dynamicAccesses),g.dynamicAccesses}function se(g){return g.filter(S=>typeof S.stack=="string"&&S.stack.length>0).map(({expression:S,stack:b})=>(b=b.split(`
37
- `).slice(4).filter(j=>!(j.includes("node_modules/next/")||j.includes(" (<anonymous>)")||j.includes(" (node:"))).join(`
38
- `),`Dynamic API Usage Debug - ${S}:
39
- ${b}`))}function u(){if(!C)throw Object.defineProperty(new Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})}function w(){const g=new AbortController;return g.abort(Object.defineProperty(new p.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),g.signal}function k(g){switch(g.type){case"prerender":case"prerender-runtime":const S=new AbortController;if(g.cacheSignal)g.cacheSignal.inputReady().then(()=>{S.abort()});else{const b=(0,c.getRuntimeStagePromise)(g);b?b.then(()=>(0,m.scheduleOnNextTick)(()=>S.abort())):(0,m.scheduleOnNextTick)(()=>S.abort())}return S.signal;case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":return}}function I(g,S){const b=S.dynamicTracking;b&&b.dynamicAccesses.push({stack:b.isDebugDynamicAccesses?new Error().stack:void 0,expression:g})}function $(g){const S=s.workAsyncStorage.getStore(),b=c.workUnitAsyncStorage.getStore();if(S&&b)switch(b.type){case"prerender-client":case"prerender":{const j=b.fallbackRouteParams;j&&j.size>0&&r.default.use((0,o.makeHangingPromise)(b.renderSignal,S.route,g));break}case"prerender-ppr":{const j=b.fallbackRouteParams;if(j&&j.size>0)return pe(S.route,g,b.dynamicTracking);break}case"prerender-runtime":throw Object.defineProperty(new y.InvariantError(`\`${g}\` was called during a runtime prerender. Next.js should be preventing ${g} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new y.InvariantError(`\`${g}\` was called inside a cache scope. Next.js should be preventing ${g} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0})}}const q=/\n\s+at Suspense \(<anonymous>\)/,W="body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6",fe=new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${W}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${_.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),ee=new RegExp(`\\n\\s+at ${_.METADATA_BOUNDARY_NAME}[\\n\\s]`),be=new RegExp(`\\n\\s+at ${_.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),Re=new RegExp(`\\n\\s+at ${_.OUTLET_BOUNDARY_NAME}[\\n\\s]`);function Ae(g,S,b,j){if(!Re.test(S))if(ee.test(S)){b.hasDynamicMetadata=!0;return}else if(be.test(S)){b.hasDynamicViewport=!0;return}else if(fe.test(S)){b.hasAllowedDynamic=!0,b.hasSuspenseAboveBody=!0;return}else if(q.test(S)){b.hasAllowedDynamic=!0;return}else if(j.syncDynamicErrorWithStack){b.dynamicErrors.push(j.syncDynamicErrorWithStack);return}else{const ue=`Route "${g.route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`,ce=Pe(ue,S);b.dynamicErrors.push(ce);return}}function Pe(g,S){const b=process.env.NODE_ENV!=="production"&&r.default.captureOwnerStack?r.default.captureOwnerStack():null,j=Object.defineProperty(new Error(g),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return j.stack=j.name+": "+g+(b??S),j}var Se=function(g){return g[g.Full=0]="Full",g[g.Empty=1]="Empty",g[g.Errored=2]="Errored",g}({});function Te(g,S){console.error(S),g.dev||(g.hasReadableErrorStacks?console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${g.route}" in your browser to investigate the error.`):console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
40
- - Start the app in development mode by running \`next dev\`, then open "${g.route}" in your browser to investigate the error.
41
- - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`))}function we(g,S,b,j){if(S!==0){if(b.hasSuspenseAboveBody)return;if(j.syncDynamicErrorWithStack)throw Te(g,j.syncDynamicErrorWithStack),new a.StaticGenBailoutError;const ue=b.dynamicErrors;if(ue.length>0){for(let ce=0;ce<ue.length;ce++)Te(g,ue[ce]);throw new a.StaticGenBailoutError}if(b.hasDynamicViewport)throw console.error(`Route "${g.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),new a.StaticGenBailoutError;if(S===1)throw console.error(`Route "${g.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new a.StaticGenBailoutError}else if(b.hasAllowedDynamic===!1&&b.hasDynamicMetadata)throw console.error(`Route "${g.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),new a.StaticGenBailoutError}function de(g,S){return g.runtimeStagePromise?g.runtimeStagePromise.then(()=>S):S}}(ut);var zt={},Vt={},Kt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return r}});const r=(0,$e.createAsyncLocalStorage)()})(Kt),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return n.afterTaskAsyncStorageInstance}});const n=Kt}(Vt),function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(_,m){for(var p in m)Object.defineProperty(_,p,{enumerable:!0,get:m[p]})}n(e,{isRequestAPICallableInsideAfter:function(){return o},throwForSearchParamsAccessInUseCache:function(){return s},throwWithStaticGenerationBailoutError:function(){return a},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return c}});const r=dt,i=Vt;function a(_,m){throw Object.defineProperty(new r.StaticGenBailoutError(`Route ${_} couldn't be rendered statically because it used ${m}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E576",enumerable:!1,configurable:!0})}function c(_,m){throw Object.defineProperty(new r.StaticGenBailoutError(`Route ${_} with \`dynamic = "error"\` couldn't be rendered statically because it used ${m}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function s(_,m){const p=Object.defineProperty(new Error(`Route ${_.route} used "searchParams" inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await "searchParams" outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E779",enumerable:!1,configurable:!0});throw Error.captureStackTrace(p,m),_.invalidDynamicUsageError??(_.invalidDynamicUsageError=p),p}function o(){const _=i.afterTaskAsyncStorage.getStore();return(_==null?void 0:_.rootTaskSpawnPhase)==="action"}}(zt),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"connection",{enumerable:!0,get:function(){return o}});const n=Xe,r=We,i=ut,a=dt,c=Ve,s=zt;function o(){const _="connection",m=n.workAsyncStorage.getStore(),p=r.workUnitAsyncStorage.getStore();if(m){if(p&&p.phase==="after"&&!(0,s.isRequestAPICallableInsideAfter)())throw Object.defineProperty(new Error(`Route ${m.route} used "connection" inside "after(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but "after(...)" executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E186",enumerable:!1,configurable:!0});if(m.forceStatic)return Promise.resolve(void 0);if(m.dynamicShouldError)throw Object.defineProperty(new a.StaticGenBailoutError(`Route ${m.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E562",enumerable:!1,configurable:!0});if(p)switch(p.type){case"cache":{const y=Object.defineProperty(new Error(`Route ${m.route} used "connection" inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual request, but caches must be able to be produced before a request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E752",enumerable:!1,configurable:!0});throw Error.captureStackTrace(y,o),m.invalidDynamicUsageError??(m.invalidDynamicUsageError=y),y}case"private-cache":{const y=Object.defineProperty(new Error(`Route ${m.route} used "connection" inside "use cache: private". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual navigation request, but caches must be able to be produced before a navigation request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E753",enumerable:!1,configurable:!0});throw Error.captureStackTrace(y,o),m.invalidDynamicUsageError??(m.invalidDynamicUsageError=y),y}case"unstable-cache":throw Object.defineProperty(new Error(`Route ${m.route} used "connection" inside a function cached with "unstable_cache(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E1",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-runtime":return(0,c.makeHangingPromise)(p.renderSignal,m.route,"`connection()`");case"prerender-ppr":return(0,i.postponeWithTracking)(m.route,"connection",p.dynamicTracking);case"prerender-legacy":return(0,i.throwToInterruptStaticGeneration)("connection",m,p);case"request":return(0,i.trackDynamicDataInDynamicRender)(p),process.env.NODE_ENV==="development"?(0,c.makeDevtoolsIOAwarePromise)(void 0):Promise.resolve(void 0)}}(0,r.throwForMissingRequestStore)(_)}}($t);var Qt={},Zt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(s,o){for(var _ in o)Object.defineProperty(s,_,{enumerable:!0,get:o[_]})}n(e,{describeHasCheckingStringProperty:function(){return a},describeStringPropertyAccess:function(){return i},wellKnownProperties:function(){return c}});const r=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function i(s,o){return r.test(o)?"`"+s+"."+o+"`":"`"+s+"["+JSON.stringify(o)+"]`"}function a(s,o){const _=JSON.stringify(o);return"`Reflect.has("+s+", "+_+")`, `"+_+" in "+s+"`, or similar"}const c=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","_debugInfo","toJSON","$$typeof","__esModule"])})(Zt);var Jt={},en={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return r}});const r=(0,$e.createAsyncLocalStorage)()})(en),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorageInstance}});const n=en}(Jt);var tn={},nn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(ne,re){for(var se in re)Object.defineProperty(ne,se,{enumerable:!0,get:re[se]})}n(e,{bgBlack:function(){return le},bgBlue:function(){return oe},bgCyan:function(){return ie},bgGreen:function(){return z},bgMagenta:function(){return he},bgRed:function(){return pe},bgWhite:function(){return ae},bgYellow:function(){return _e},black:function(){return E},blue:function(){return v},bold:function(){return m},cyan:function(){return P},dim:function(){return p},gray:function(){return K},green:function(){return d},hidden:function(){return N},inverse:function(){return C},italic:function(){return y},magenta:function(){return L},purple:function(){return J},red:function(){return f},reset:function(){return _},strikethrough:function(){return A},underline:function(){return T},white:function(){return D},yellow:function(){return h}});var r;const{env:i,stdout:a}=((r=globalThis)==null?void 0:r.process)??{},c=i&&!i.NO_COLOR&&(i.FORCE_COLOR||(a==null?void 0:a.isTTY)&&!i.CI&&i.TERM!=="dumb"),s=(ne,re,se,u)=>{const w=ne.substring(0,u)+se,k=ne.substring(u+re.length),I=k.indexOf(re);return~I?w+s(k,re,se,I):w+k},o=(ne,re,se=ne)=>c?u=>{const w=""+u,k=w.indexOf(re,ne.length);return~k?ne+s(w,re,se,k)+re:ne+w+re}:String,_=c?ne=>`\x1B[0m${ne}\x1B[0m`:String,m=o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),p=o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),y=o("\x1B[3m","\x1B[23m"),T=o("\x1B[4m","\x1B[24m"),C=o("\x1B[7m","\x1B[27m"),N=o("\x1B[8m","\x1B[28m"),A=o("\x1B[9m","\x1B[29m"),E=o("\x1B[30m","\x1B[39m"),f=o("\x1B[31m","\x1B[39m"),d=o("\x1B[32m","\x1B[39m"),h=o("\x1B[33m","\x1B[39m"),v=o("\x1B[34m","\x1B[39m"),L=o("\x1B[35m","\x1B[39m"),J=o("\x1B[38;2;173;127;168m","\x1B[39m"),P=o("\x1B[36m","\x1B[39m"),D=o("\x1B[37m","\x1B[39m"),K=o("\x1B[90m","\x1B[39m"),le=o("\x1B[40m","\x1B[49m"),pe=o("\x1B[41m","\x1B[49m"),z=o("\x1B[42m","\x1B[49m"),_e=o("\x1B[43m","\x1B[49m"),oe=o("\x1B[44m","\x1B[49m"),he=o("\x1B[45m","\x1B[49m"),ie=o("\x1B[46m","\x1B[49m"),ae=o("\x1B[47m","\x1B[49m")})(nn);var rn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:function(){return i}});class n{constructor(c,s,o){this.prev=null,this.next=null,this.key=c,this.data=s,this.size=o}}class r{constructor(){this.prev=null,this.next=null}}class i{constructor(c,s,o){this.cache=new Map,this.totalSize=0,this.maxSize=c,this.calculateSize=s,this.onEvict=o,this.head=new r,this.tail=new r,this.head.next=this.tail,this.tail.prev=this.head}addToHead(c){c.prev=this.head,c.next=this.head.next,this.head.next.prev=c,this.head.next=c}removeNode(c){c.prev.next=c.next,c.next.prev=c.prev}moveToHead(c){this.removeNode(c),this.addToHead(c)}removeTail(){const c=this.tail.prev;return this.removeNode(c),c}set(c,s){const o=(this.calculateSize==null?void 0:this.calculateSize.call(this,s))??1;if(o<=0)throw Object.defineProperty(new Error(`LRUCache: calculateSize returned ${o}, but size must be > 0. Items with size 0 would never be evicted, causing unbounded cache growth.`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});if(o>this.maxSize)return console.warn("Single item size exceeds maxSize"),!1;const _=this.cache.get(c);if(_)_.data=s,this.totalSize=this.totalSize-_.size+o,_.size=o,this.moveToHead(_);else{const m=new n(c,s,o);this.cache.set(c,m),this.addToHead(m),this.totalSize+=o}for(;this.totalSize>this.maxSize&&this.cache.size>0;){const m=this.removeTail();this.cache.delete(m.key),this.totalSize-=m.size,this.onEvict==null||this.onEvict.call(this,m.key,m.data)}return!0}has(c){return this.cache.has(c)}get(c){const s=this.cache.get(c);if(s)return this.moveToHead(s),s.data}*[Symbol.iterator](){let c=this.head.next;for(;c&&c!==this.tail;){const s=c;yield[s.key,s.data],c=c.next}}remove(c){const s=this.cache.get(c);s&&(this.removeNode(s),this.cache.delete(c),this.totalSize-=s.size)}get size(){return this.cache.size}get currentSize(){return this.totalSize}}})(rn),function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(f,d){for(var h in d)Object.defineProperty(f,h,{enumerable:!0,get:d[h]})}n(e,{bootstrap:function(){return o},error:function(){return m},event:function(){return C},info:function(){return T},prefixes:function(){return a},ready:function(){return y},trace:function(){return N},wait:function(){return _},warn:function(){return p},warnOnce:function(){return E}});const r=nn,i=rn,a={wait:(0,r.white)((0,r.bold)("○")),error:(0,r.red)((0,r.bold)("⨯")),warn:(0,r.yellow)((0,r.bold)("⚠")),ready:"▲",info:(0,r.white)((0,r.bold)(" ")),event:(0,r.green)((0,r.bold)("✓")),trace:(0,r.magenta)((0,r.bold)("»"))},c={log:"log",warn:"warn",error:"error"};function s(f,...d){(d[0]===""||d[0]===void 0)&&d.length===1&&d.shift();const h=f in c?c[f]:"log",v=a[f];d.length===0?console[h](""):d.length===1&&typeof d[0]=="string"?console[h](" "+v+" "+d[0]):console[h](" "+v,...d)}function o(...f){console.log(" "+f.join(" "))}function _(...f){s("wait",...f)}function m(...f){s("error",...f)}function p(...f){s("warn",...f)}function y(...f){s("ready",...f)}function T(...f){s("info",...f)}function C(...f){s("event",...f)}function N(...f){s("trace",...f)}const A=new i.LRUCache(1e4,f=>f.length);function E(...f){const d=f.join(" ");A.has(d)||(A.set(d,d),p(...f))}}(tn),function(e){Object.defineProperty(e,"__esModule",{value:!0});function n(f,d){for(var h in d)Object.defineProperty(f,h,{enumerable:!0,get:d[h]})}n(e,{getRootParam:function(){return N},unstable_rootParams:function(){return y}});const r=ze,i=ut,a=Xe,c=We,s=Ve,o=Zt,_=Jt,m=tn,p=new WeakMap;async function y(){(0,m.warnOnce)("`unstable_rootParams()` is deprecated and will be removed in an upcoming major release. Import specific root params from `next/root-params` instead.");const f=a.workAsyncStorage.getStore();if(!f)throw Object.defineProperty(new r.InvariantError("Missing workStore in unstable_rootParams"),"__NEXT_ERROR_CODE",{value:"E615",enumerable:!1,configurable:!0});const d=c.workUnitAsyncStorage.getStore();if(!d)throw Object.defineProperty(new Error(`Route ${f.route} used \`unstable_rootParams()\` in Pages Router. This API is only available within App Router.`),"__NEXT_ERROR_CODE",{value:"E641",enumerable:!1,configurable:!0});switch(d.type){case"cache":case"unstable-cache":throw Object.defineProperty(new Error(`Route ${f.route} used \`unstable_rootParams()\` inside \`"use cache"\` or \`unstable_cache\`. Support for this API inside cache scopes is planned for a future version of Next.js.`),"__NEXT_ERROR_CODE",{value:"E642",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return T(d.rootParams,f,d);case"private-cache":case"prerender-runtime":case"request":return Promise.resolve(d.rootParams);default:return d}}function T(f,d,h){switch(h.type){case"prerender-client":{const v="`unstable_rootParams`";throw Object.defineProperty(new r.InvariantError(`${v} must not be used within a client component. Next.js should be preventing ${v} from being included in client components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E693",enumerable:!1,configurable:!0})}case"prerender":{const v=h.fallbackRouteParams;if(v){for(const L in f)if(v.has(L)){const J=p.get(f);if(J)return J;const P=(0,s.makeHangingPromise)(h.renderSignal,d.route,"`unstable_rootParams`");return p.set(f,P),P}}break}case"prerender-ppr":{const v=h.fallbackRouteParams;if(v){for(const L in f)if(v.has(L))return C(f,v,d,h)}break}}return Promise.resolve(f)}function C(f,d,h,v){const L=p.get(f);if(L)return L;const J={...f},P=Promise.resolve(J);return p.set(f,P),Object.keys(f).forEach(D=>{o.wellKnownProperties.has(D)||(d.has(D)?Object.defineProperty(J,D,{get(){const K=(0,o.describeStringPropertyAccess)("unstable_rootParams",D);v.type==="prerender-ppr"?(0,i.postponeWithTracking)(h.route,K,v.dynamicTracking):(0,i.throwToInterruptStaticGeneration)(K,h,v)},enumerable:!0}):P[D]=f[D])}),P}function N(f){const d=`\`import('next/root-params').${f}()\``,h=a.workAsyncStorage.getStore();if(!h)throw Object.defineProperty(new r.InvariantError(`Missing workStore in ${d}`),"__NEXT_ERROR_CODE",{value:"E764",enumerable:!1,configurable:!0});const v=c.workUnitAsyncStorage.getStore();if(!v)throw Object.defineProperty(new Error(`Route ${h.route} used ${d} outside of a Server Component. This is not allowed.`),"__NEXT_ERROR_CODE",{value:"E774",enumerable:!1,configurable:!0});const L=_.actionAsyncStorage.getStore();if(L){if(L.isAppRoute)throw Object.defineProperty(new Error(`Route ${h.route} used ${d} inside a Route Handler. Support for this API in Route Handlers is planned for a future version of Next.js.`),"__NEXT_ERROR_CODE",{value:"E765",enumerable:!1,configurable:!0});if(L.isAction&&v.phase==="action")throw Object.defineProperty(new Error(`${d} was used inside a Server Action. This is not supported. Functions from 'next/root-params' can only be called in the context of a route.`),"__NEXT_ERROR_CODE",{value:"E766",enumerable:!1,configurable:!0})}switch(v.type){case"unstable-cache":case"cache":throw Object.defineProperty(new Error(`Route ${h.route} used ${d} inside \`"use cache"\` or \`unstable_cache\`. Support for this API inside cache scopes is planned for a future version of Next.js.`),"__NEXT_ERROR_CODE",{value:"E760",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return A(f,h,v,d)}return Promise.resolve(v.rootParams[f])}function A(f,d,h,v){switch(h.type){case"prerender-client":throw Object.defineProperty(new r.InvariantError(`${v} must not be used within a client component. Next.js should be preventing ${v} from being included in client components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E693",enumerable:!1,configurable:!0})}const L=h.rootParams;switch(h.type){case"prerender":{if(h.fallbackRouteParams&&h.fallbackRouteParams.has(f))return(0,s.makeHangingPromise)(h.renderSignal,d.route,v);break}case"prerender-ppr":{if(h.fallbackRouteParams&&h.fallbackRouteParams.has(f))return E(f,d,h,v);break}}return Promise.resolve(L[f])}async function E(f,d,h,v){const L=(0,o.describeStringPropertyAccess)(v,f);switch(h.type){case"prerender-ppr":return(0,i.postponeWithTracking)(d.route,L,h.dynamicTracking);case"prerender-legacy":return(0,i.throwToInterruptStaticGeneration)(L,d,h)}}}(Qt),function(e,n){const r={NextRequest:gt.NextRequest,NextResponse:xt.NextResponse,ImageResponse:jt.ImageResponse,userAgentFromString:at.userAgentFromString,userAgent:at.userAgent,URLPattern:Mt.URLPattern,after:Ht.after,connection:$t.connection,unstable_rootParams:Qt.unstable_rootParams};e.exports=r,n.NextRequest=r.NextRequest,n.NextResponse=r.NextResponse,n.ImageResponse=r.ImageResponse,n.userAgentFromString=r.userAgentFromString,n.userAgent=r.userAgent,n.URLPattern=r.URLPattern,n.after=r.after,n.connection=r.connection,n.unstable_rootParams=r.unstable_rootParams}(et,et.exports);var Ke=et.exports;function Yn(){const e=process.env.META_PIXEL_ID||process.env.FB_PIXEL_ID,n=process.env.META_ACCESS_TOKEN||process.env.FB_ACCESS_TOKEN;return{pixelId:e,accessToken:n}}async function Wn(e){var n;try{const r=await e.json(),{pixelId:i,accessToken:a}=Yn();if(!i||!a)return Ke.NextResponse.json({success:!1,error:"Configuration missing"},{status:500});const{event_name:c=r.event||"Lead",action_source:s="website",event_source_url:o,event_id:_,custom_data:m={},user_data:p={}}=r,y=e.headers.get("x-forwarded-for"),T=((n=y==null?void 0:y.split(",")[0])==null?void 0:n.trim())||e.headers.get("x-real-ip")||"",C={data:[{event_name:c,event_time:Math.floor(Date.now()/1e3),action_source:s,event_id:_,event_source_url:o||e.headers.get("referer")||"",user_data:{client_ip_address:T,client_user_agent:e.headers.get("user-agent")||"",...p},custom_data:m}]},N=await fetch(`https://graph.facebook.com/v21.0/${i}/events?access_token=${a}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}),A=await N.json();return N.ok?Ke.NextResponse.json({success:!0,data:A}):Ke.NextResponse.json({success:!1,error:A},{status:N.status})}catch(r){const i=r instanceof Error?r.message:"Unknown error";return Ke.NextResponse.json({success:!1,error:i},{status:500})}}const zn={add_to_cart:Ee.AddToCart,view_item:Ee.ViewContent,view_cart:Ee.ViewContent,begin_checkout:Ee.InitiateCheckout,add_payment_info:Ee.AddPaymentInfo,purchase:Ee.Purchase};function on(e){if(typeof window>"u")return;const n=window;n.dataLayer=n.dataLayer||[],n.dataLayer.push({ecommerce:null}),n.dataLayer.push(e)}function Qe(e){return(e??"INR").toUpperCase()}function an(e){const n=e.items??[],r=n.reduce((i,a)=>i+(a.quantity??1),0);return{currency:Qe(e.currency),value:e.value,content_ids:n.map(i=>String(i.item_id)),content_type:"product",contents:n.map(i=>({id:String(i.item_id),quantity:i.quantity??1,item_price:i.price??0})),num_items:r}}function Oe(e,n,r){const i=Qe(n.currency),a={...n,currency:i},c=an({...n,currency:i});on({event:e,ecommerce:a,...c,...r});const s=zn[e];s&&(e==="purchase"&&(r!=null&&r.transaction_id)?bt({...n,currency:i,transaction_id:String(r.transaction_id)}):Fe(s,{...n,currency:i},r))}function xe(e,n){Je(e,n??{})}function sn(e){var a,c;if(!((a=e==null?void 0:e.items)!=null&&a.length))return null;const n=Qe(e.currency_code??((c=e.region)==null?void 0:c.currency_code)),r=(e.total??0)/100,i=e.items.map((s,o)=>{const _=s.total&&s.quantity?s.total/s.quantity:0;return{item_id:s.variant_id??s.id,item_name:s.title??s.product_title??"",price:_/100,quantity:s.quantity,index:o}});return{currency:n,value:r,items:i}}function Vn(e){Oe("add_to_cart",e)}function Kn(e){Oe("remove_from_cart",e)}function un(e){Oe("view_cart",e)}function Qn(e){Oe("view_item",e)}function Zn(e){const n=an({currency:"INR",value:0,items:e.items});on({event:"view_item_list",ecommerce:e,...n}),Fe(Ee.ViewContent,{currency:"INR",value:0,items:e.items})}const cn="meta_initiate_checkout_";function ln(e){typeof window>"u"||sessionStorage.setItem(`${cn}${e}`,String(Date.now()))}function Jn(e,n=6e4){if(typeof window>"u")return!1;const r=sessionStorage.getItem(`${cn}${e}`);return r?Date.now()-Number(r)<n:!1}function er(e,n){fn(e),n&&ln(n)}function fn(e){Oe("begin_checkout",e)}function tr(e){Oe("add_shipping_info",e)}function nr(e,n){Oe("add_payment_info",e,n)}function rr(e){const{transaction_id:n,...r}=e;Oe("purchase",r,{transaction_id:n,order_id:n})}function or(e){xe(Ee.AddToWishlist,{content_ids:e.content_ids,content_type:"product",currency:Qe(e.currency),value:e.value??0})}function ir(e){xe(Ee.CompleteRegistration,e)}function ar(e){xe(Ee.Contact,e)}function sr(e){xe(Ee.Lead,e)}function ur(e){xe(Ee.Search,{search_string:e})}function cr(e){xe(Ee.ViewContent,{content_type:"cta",content_name:e.label||"shop_now",content_category:"hero_banner",...e.link?{content_url:e.link}:{}})}function lr(e){const n=sn(e);n&&un(n)}H.META_EXPLICIT_KEY=je,H.META_PIXEL_DATALAYER_EVENT=Et,H.META_STANDARD_EVENTS=Ee,H.cartToEcommercePayload=sn,H.composeAnalyticsAdapters=dn,H.createGtmAnalyticsAdapter=ht,H.defaultStorefrontAnalytics=pn,H.disableMetaPixelAutoConfig=_t,H.emitContactFormSubmitted=_n,H.emitFormSubmitted=Ze,H.emitLeadCaptured=mn,H.emitReviewSubmitted=hn,H.fireMetaEcommerceEvent=Fe,H.fireMetaPixelEvent=Je,H.fireMetaPurchase=bt,H.installMetaPixelGuard=gn,H.markInitiateCheckoutFired=ln,H.metaCapiEventHandler=Wn,H.noopAnalyticsAdapter=Me,H.pushToDataLayer=pt,H.trackAddPaymentInfo=nr,H.trackAddShippingInfo=tr,H.trackAddToCart=Vn,H.trackAddToWishlist=or,H.trackBeginCheckout=fn,H.trackCartNavClick=lr,H.trackCompleteRegistration=ir,H.trackContact=ar,H.trackGtmEvent=He,H.trackHeroCtaClick=cr,H.trackInitiateCheckoutFromCart=er,H.trackLead=sr,H.trackMetaStandardEvent=xe,H.trackPurchase=rr,H.trackRemoveFromCart=Kn,H.trackSearch=ur,H.trackViewCart=un,H.trackViewItem=Qn,H.trackViewItemList=Zn,H.wasInitiateCheckoutFired=Jn,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
8
+ `)}}class o extends Error{constructor(){super("The request.page has been deprecated in favour of `URLPattern`.\n Read more: https://nextjs.org/docs/messages/middleware-request-page\n ")}}class i extends Error{constructor(){super("The request.ua has been removed in favour of `userAgent` function.\n Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n ")}}})(bt);var Ce={},Be=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,ln=Object.getOwnPropertyNames,fn=Object.prototype.hasOwnProperty,hn=(e,t)=>{for(var n in t)Be(e,n,{get:t[n],enumerable:!0})},_n=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ln(t))!fn.call(e,i)&&i!==n&&Be(e,i,{get:()=>t[i],enumerable:!(o=dn(t,i))||o.enumerable});return e},pn=e=>_n(Be({},"__esModule",{value:!0}),e),Et={};hn(Et,{RequestCookies:()=>vn,ResponseCookies:()=>An,parseCookie:()=>We,parseSetCookie:()=>gt,stringifyCookie:()=>Ae});var mn=pn(Et);function Ae(e){var t;const n=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||e.expires===0)&&`Expires=${(typeof e.expires=="number"?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&typeof e.maxAge=="number"&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),o=`${e.name}=${encodeURIComponent((t=e.value)!=null?t:"")}`;return n.length===0?o:`${o}; ${n.join("; ")}`}function We(e){const t=new Map;for(const n of e.split(/; */)){if(!n)continue;const o=n.indexOf("=");if(o===-1){t.set(n,"true");continue}const[i,s]=[n.slice(0,o),n.slice(o+1)];try{t.set(i,decodeURIComponent(s??"true"))}catch{}}return t}function gt(e){if(!e)return;const[[t,n],...o]=We(e),{domain:i,expires:s,httponly:a,maxage:r,path:f,samesite:h,secure:d,partitioned:m,priority:g}=Object.fromEntries(o.map(([v,R])=>[v.toLowerCase().replace(/-/g,""),R])),w={name:t,value:decodeURIComponent(n),domain:i,...s&&{expires:new Date(s)},...a&&{httpOnly:!0},...typeof r=="string"&&{maxAge:Number(r)},path:f,...h&&{sameSite:gn(h)},...d&&{secure:!0},...g&&{priority:yn(g)},...m&&{partitioned:!0}};return bn(w)}function bn(e){const t={};for(const n in e)e[n]&&(t[n]=e[n]);return t}var En=["strict","lax","none"];function gn(e){return e=e.toLowerCase(),En.includes(e)?e:void 0}var Rn=["low","medium","high"];function yn(e){return e=e.toLowerCase(),Rn.includes(e)?e:void 0}function wn(e){if(!e)return[];var t=[],n=0,o,i,s,a,r;function f(){for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length}function h(){return i=e.charAt(n),i!=="="&&i!==";"&&i!==","}for(;n<e.length;){for(o=n,r=!1;f();)if(i=e.charAt(n),i===","){for(s=n,n+=1,f(),a=n;n<e.length&&h();)n+=1;n<e.length&&e.charAt(n)==="="?(r=!0,n=a,t.push(e.substring(o,s)),o=n):n=s+1}else n+=1;(!r||n>=e.length)&&t.push(e.substring(o,e.length))}return t}var vn=class{constructor(e){this._parsed=new Map,this._headers=e;const t=e.get("cookie");if(t){const n=We(t);for(const[o,i]of n)this._parsed.set(o,{name:o,value:i})}}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){const t=typeof e[0]=="string"?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;const n=Array.from(this._parsed);if(!e.length)return n.map(([i,s])=>s);const o=typeof e[0]=="string"?e[0]:(t=e[0])==null?void 0:t.name;return n.filter(([i])=>i===o).map(([i,s])=>s)}has(e){return this._parsed.has(e)}set(...e){const[t,n]=e.length===1?[e[0].name,e[0].value]:e,o=this._parsed;return o.set(t,{name:t,value:n}),this._headers.set("cookie",Array.from(o).map(([i,s])=>Ae(s)).join("; ")),this}delete(e){const t=this._parsed,n=Array.isArray(e)?e.map(o=>t.delete(o)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([o,i])=>Ae(i)).join("; ")),n}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},An=class{constructor(e){this._parsed=new Map;var t,n,o;this._headers=e;const i=(o=(n=(t=e.getSetCookie)==null?void 0:t.call(e))!=null?n:e.get("set-cookie"))!=null?o:[],s=Array.isArray(i)?i:wn(i);for(const a of s){const r=gt(a);r&&this._parsed.set(r.name,r)}}get(...e){const t=typeof e[0]=="string"?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;const n=Array.from(this._parsed.values());if(!e.length)return n;const o=typeof e[0]=="string"?e[0]:(t=e[0])==null?void 0:t.name;return n.filter(i=>i.name===o)}has(e){return this._parsed.has(e)}set(...e){const[t,n,o]=e.length===1?[e[0].name,e[0].value,e[0]]:e,i=this._parsed;return i.set(t,Tn({name:t,value:n,...o})),Pn(i,this._headers),this}delete(...e){const[t,n]=typeof e[0]=="string"?[e[0]]:[e[0].name,e[0]];return this.set({...n,name:t,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(Ae).join("; ")}};function Pn(e,t){t.delete("set-cookie");for(const[,n]of e){const o=Ae(n);t.append("set-cookie",o)}}function Tn(e={name:"",value:""}){return typeof e.expires=="number"&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+e.maxAge*1e3)),(e.path===null||e.path===void 0)&&(e.path="/"),e}(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(o,i){for(var s in i)Object.defineProperty(o,s,{enumerable:!0,get:i[s]})}t(e,{RequestCookies:function(){return n.RequestCookies},ResponseCookies:function(){return n.ResponseCookies},stringifyCookie:function(){return n.stringifyCookie}});const n=mn})(Ce),function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,h){for(var d in h)Object.defineProperty(f,d,{enumerable:!0,get:h[d]})}t(e,{INTERNALS:function(){return a},NextRequest:function(){return r}});const n=qe,o=$e,i=bt,s=Ce,a=Symbol("internal request");class r extends Request{constructor(h,d={}){const m=typeof h!="string"&&"url"in h?h.url:String(h);(0,o.validateURL)(m),process.env.NEXT_RUNTIME!=="edge"&&d.body&&d.duplex!=="half"&&(d.duplex="half"),h instanceof Request?super(h,d):super(m,d);const g=new n.NextURL(m,{headers:(0,o.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:d.nextConfig});this[a]={cookies:new s.RequestCookies(this.headers),nextUrl:g,url:process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE?m:g.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[a].cookies}get nextUrl(){return this[a].nextUrl}get page(){throw new i.RemovedPageError}get ua(){throw new i.RemovedUAError}get url(){return this[a].url}}}(at);var Rt={},yt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ReflectAdapter",{enumerable:!0,get:function(){return t}});class t{static get(o,i,s){const a=Reflect.get(o,i,s);return typeof a=="function"?a.bind(o):a}static set(o,i,s,a){return Reflect.set(o,i,s,a)}static has(o,i){return Reflect.has(o,i)}static deleteProperty(o,i){return Reflect.deleteProperty(o,i)}}})(yt),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NextResponse",{enumerable:!0,get:function(){return h}});const t=Ce,n=qe,o=$e,i=yt,s=Ce,a=Symbol("internal response"),r=new Set([301,302,303,307,308]);function f(d,m){var g;if(!(d==null||(g=d.request)==null)&&g.headers){if(!(d.request.headers instanceof Headers))throw Object.defineProperty(new Error("request.headers must be an instance of Headers"),"__NEXT_ERROR_CODE",{value:"E119",enumerable:!1,configurable:!0});const w=[];for(const[v,R]of d.request.headers)m.set("x-middleware-request-"+v,R),w.push(v);m.set("x-middleware-override-headers",w.join(","))}}class h extends Response{constructor(m,g={}){super(m,g);const w=this.headers,v=new s.ResponseCookies(w),R=new Proxy(v,{get(_,c,u){switch(c){case"delete":case"set":return(...l)=>{const b=Reflect.apply(_[c],_,l),I=new Headers(w);return b instanceof s.ResponseCookies&&w.set("x-middleware-set-cookie",b.getAll().map(j=>(0,t.stringifyCookie)(j)).join(",")),f(g,I),b};default:return i.ReflectAdapter.get(_,c,u)}}});this[a]={cookies:R,url:g.url?new n.NextURL(g.url,{headers:(0,o.toNodeOutgoingHttpHeaders)(w),nextConfig:g.nextConfig}):void 0}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,url:this.url,body:this.body,bodyUsed:this.bodyUsed,headers:Object.fromEntries(this.headers),ok:this.ok,redirected:this.redirected,status:this.status,statusText:this.statusText,type:this.type}}get cookies(){return this[a].cookies}static json(m,g){const w=Response.json(m,g);return new h(w.body,w)}static redirect(m,g){const w=typeof g=="number"?g:(g==null?void 0:g.status)??307;if(!r.has(w))throw Object.defineProperty(new RangeError('Failed to execute "redirect" on "response": Invalid status code'),"__NEXT_ERROR_CODE",{value:"E529",enumerable:!1,configurable:!0});const v=typeof g=="object"?g:{},R=new Headers(v==null?void 0:v.headers);return R.set("Location",(0,o.validateURL)(m)),new h(null,{...v,headers:R,status:w})}static rewrite(m,g){const w=new Headers(g==null?void 0:g.headers);return w.set("x-middleware-rewrite",(0,o.validateURL)(m)),f(g,w),new h(null,{...g,headers:w})}static next(m){const g=new Headers(m==null?void 0:m.headers);return g.set("x-middleware-next","1"),f(m,g),new h(null,{...m,headers:g})}}}(Rt);var wt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageResponse",{enumerable:!0,get:function(){return t}});function t(){throw Object.defineProperty(new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'),"__NEXT_ERROR_CODE",{value:"E183",enumerable:!1,configurable:!0})}})(wt);var ze={},vt={exports:{}};(()=>{var e={226:function(i,s){(function(a,r){var f="1.0.35",h="",d="?",m="function",g="undefined",w="object",v="string",R="major",_="model",c="name",u="type",l="vendor",b="version",I="architecture",j="console",P="mobile",A="tablet",L="smarttv",W="wearable",z="embedded",Q=350,J="Amazon",Y="Apple",ne="ASUS",re="BlackBerry",V="Browser",M="Chrome",U="Edge",F="Firefox",$="Google",B="Huawei",G="LG",Z="Microsoft",pe="Motorola",ie="Opera",de="Samsung",me="Sharp",ae="Sony",le="Xiaomi",fe="Zebra",be="Facebook",Ee="Chromium OS",ge="Mac OS",he=function(x,D){var N={};for(var k in x)D[k]&&D[k].length%2===0?N[k]=D[k].concat(x[k]):N[k]=x[k];return N},se=function(x){for(var D={},N=0;N<x.length;N++)D[x[N].toUpperCase()]=x[N];return D},Re=function(x,D){return typeof x===v?p(D).indexOf(p(x))!==-1:!1},p=function(x){return x.toLowerCase()},y=function(x){return typeof x===v?x.replace(/[^\d\.]/g,h).split(".")[0]:r},E=function(x,D){if(typeof x===v)return x=x.replace(/^\s\s*/,h),typeof D===g?x:x.substring(0,Q)},O=function(x,D){for(var N=0,k,ce,ee,C,S,te;N<D.length&&!S;){var Ze=D[N],Kt=D[N+1];for(k=ce=0;k<Ze.length&&!S&&Ze[k];)if(S=Ze[k++].exec(x),S)for(ee=0;ee<Kt.length;ee++)te=S[++ce],C=Kt[ee],typeof C===w&&C.length>0?C.length===2?typeof C[1]==m?this[C[0]]=C[1].call(this,te):this[C[0]]=C[1]:C.length===3?typeof C[1]===m&&!(C[1].exec&&C[1].test)?this[C[0]]=te?C[1].call(this,te,C[2]):r:this[C[0]]=te?te.replace(C[1],C[2]):r:C.length===4&&(this[C[0]]=te?C[3].call(this,te.replace(C[1],C[2])):r):this[C]=te||r;N+=2}},H=function(x,D){for(var N in D)if(typeof D[N]===w&&D[N].length>0){for(var k=0;k<D[N].length;k++)if(Re(D[N][k],x))return N===d?r:N}else if(Re(D[N],x))return N===d?r:N;return x},X={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Se={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Oe={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,b],[/opios[\/ ]+([\w\.]+)/i],[b,[c,ie+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[c,ie]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[c,"UC"+V]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[b,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[b,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure "+V],b],[/\bfocus\/([\w\.]+)/i],[b,[c,F+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[c,ie+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[c,ie+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[c,"MIUI "+V]],[/fxios\/([-\w\.]+)/i],[b,[c,F]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 "+V]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 "+V],b],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,b],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,be],b],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[c,M+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,M+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[c,"Android "+V]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[b,H,X]],[/(webkit|khtml)\/([\w\.]+)/i],[c,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[c,F+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[c,b],[/(cobalt)\/([\w\.]+)/i],[c,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[I,"amd64"]],[/(ia32(?=;))/i],[[I,p]],[/((?:i[346]|x)86)[;\)]/i],[[I,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[I,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[I,"armhf"]],[/windows (ce|mobile); ppc;/i],[[I,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[I,/ower/,h,p]],[/(sun4\w)[;\)]/i],[[I,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[I,p]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[_,[l,de],[u,A]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[_,[l,de],[u,P]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[_,[l,Y],[u,P]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[_,[l,Y],[u,A]],[/(macintosh);/i],[_,[l,Y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[_,[l,me],[u,P]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[_,[l,B],[u,A]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[_,[l,B],[u,P]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[_,/_/g," "],[l,le],[u,P]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[_,/_/g," "],[l,le],[u,A]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[_,[l,"OPPO"],[u,P]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[_,[l,"Vivo"],[u,P]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[_,[l,"Realme"],[u,P]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[_,[l,pe],[u,P]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[_,[l,pe],[u,A]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[_,[l,G],[u,A]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[_,[l,G],[u,P]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[_,[l,"Lenovo"],[u,A]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[_,/_/g," "],[l,"Nokia"],[u,P]],[/(pixel c)\b/i],[_,[l,$],[u,A]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[_,[l,$],[u,P]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[_,[l,ae],[u,P]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[_,"Xperia Tablet"],[l,ae],[u,A]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[_,[l,"OnePlus"],[u,P]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[_,[l,J],[u,A]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[_,/(.+)/g,"Fire Phone $1"],[l,J],[u,P]],[/(playbook);[-\w\),; ]+(rim)/i],[_,l,[u,A]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[_,[l,re],[u,P]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[_,[l,ne],[u,A]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[_,[l,ne],[u,P]],[/(nexus 9)/i],[_,[l,"HTC"],[u,A]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[l,[_,/_/g," "],[u,P]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[_,[l,"Acer"],[u,A]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[_,[l,"Meizu"],[u,P]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[l,_,[u,P]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[l,_,[u,A]],[/(surface duo)/i],[_,[l,Z],[u,A]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[_,[l,"Fairphone"],[u,P]],[/(u304aa)/i],[_,[l,"AT&T"],[u,P]],[/\bsie-(\w*)/i],[_,[l,"Siemens"],[u,P]],[/\b(rct\w+) b/i],[_,[l,"RCA"],[u,A]],[/\b(venue[\d ]{2,7}) b/i],[_,[l,"Dell"],[u,A]],[/\b(q(?:mv|ta)\w+) b/i],[_,[l,"Verizon"],[u,A]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[_,[l,"Barnes & Noble"],[u,A]],[/\b(tm\d{3}\w+) b/i],[_,[l,"NuVision"],[u,A]],[/\b(k88) b/i],[_,[l,"ZTE"],[u,A]],[/\b(nx\d{3}j) b/i],[_,[l,"ZTE"],[u,P]],[/\b(gen\d{3}) b.+49h/i],[_,[l,"Swiss"],[u,P]],[/\b(zur\d{3}) b/i],[_,[l,"Swiss"],[u,A]],[/\b((zeki)?tb.*\b) b/i],[_,[l,"Zeki"],[u,A]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[l,"Dragon Touch"],_,[u,A]],[/\b(ns-?\w{0,9}) b/i],[_,[l,"Insignia"],[u,A]],[/\b((nxa|next)-?\w{0,9}) b/i],[_,[l,"NextBook"],[u,A]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[l,"Voice"],_,[u,P]],[/\b(lvtel\-)?(v1[12]) b/i],[[l,"LvTel"],_,[u,P]],[/\b(ph-1) /i],[_,[l,"Essential"],[u,P]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[_,[l,"Envizen"],[u,A]],[/\b(trio[-\w\. ]+) b/i],[_,[l,"MachSpeed"],[u,A]],[/\btu_(1491) b/i],[_,[l,"Rotor"],[u,A]],[/(shield[\w ]+) b/i],[_,[l,"Nvidia"],[u,A]],[/(sprint) (\w+)/i],[l,_,[u,P]],[/(kin\.[onetw]{3})/i],[[_,/\./g," "],[l,Z],[u,P]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[_,[l,fe],[u,A]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[_,[l,fe],[u,P]],[/smart-tv.+(samsung)/i],[l,[u,L]],[/hbbtv.+maple;(\d+)/i],[[_,/^/,"SmartTV"],[l,de],[u,L]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[l,G],[u,L]],[/(apple) ?tv/i],[l,[_,Y+" TV"],[u,L]],[/crkey/i],[[_,M+"cast"],[l,$],[u,L]],[/droid.+aft(\w)( bui|\))/i],[_,[l,J],[u,L]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[_,[l,me],[u,L]],[/(bravia[\w ]+)( bui|\))/i],[_,[l,ae],[u,L]],[/(mitv-\w{5}) bui/i],[_,[l,le],[u,L]],[/Hbbtv.*(technisat) (.*);/i],[l,_,[u,L]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[l,E],[_,E],[u,L]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,L]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[l,_,[u,j]],[/droid.+; (shield) bui/i],[_,[l,"Nvidia"],[u,j]],[/(playstation [345portablevi]+)/i],[_,[l,ae],[u,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[_,[l,Z],[u,j]],[/((pebble))app/i],[l,_,[u,W]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[_,[l,Y],[u,W]],[/droid.+; (glass) \d/i],[_,[l,$],[u,W]],[/droid.+; (wt63?0{2,3})\)/i],[_,[l,fe],[u,W]],[/(quest( 2| pro)?)/i],[_,[l,be],[u,W]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[l,[u,z]],[/(aeobc)\b/i],[_,[l,J],[u,z]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[_,[u,P]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[_,[u,A]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,A]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,P]],[/(android[-\w\. ]{0,9});.+buil/i],[_,[l,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[c,U+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,b],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[b,H,Se]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[b,H,Se]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,ge],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,b],[/\(bb(10);/i],[b,[c,re]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[c,F+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[c,M+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,Ee],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,b],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,b]]},K=function(x,D){if(typeof x===w&&(D=x,x=r),!(this instanceof K))return new K(x,D).getResult();var N=typeof a!==g&&a.navigator?a.navigator:r,k=x||(N&&N.userAgent?N.userAgent:h),ce=N&&N.userAgentData?N.userAgentData:r,ee=D?he(Oe,D):Oe,C=N&&N.userAgent==k;return this.getBrowser=function(){var S={};return S[c]=r,S[b]=r,O.call(S,k,ee.browser),S[R]=y(S[b]),C&&N&&N.brave&&typeof N.brave.isBrave==m&&(S[c]="Brave"),S},this.getCPU=function(){var S={};return S[I]=r,O.call(S,k,ee.cpu),S},this.getDevice=function(){var S={};return S[l]=r,S[_]=r,S[u]=r,O.call(S,k,ee.device),C&&!S[u]&&ce&&ce.mobile&&(S[u]=P),C&&S[_]=="Macintosh"&&N&&typeof N.standalone!==g&&N.maxTouchPoints&&N.maxTouchPoints>2&&(S[_]="iPad",S[u]=A),S},this.getEngine=function(){var S={};return S[c]=r,S[b]=r,O.call(S,k,ee.engine),S},this.getOS=function(){var S={};return S[c]=r,S[b]=r,O.call(S,k,ee.os),C&&!S[c]&&ce&&ce.platform!="Unknown"&&(S[c]=ce.platform.replace(/chrome os/i,Ee).replace(/macos/i,ge)),S},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return k},this.setUA=function(S){return k=typeof S===v&&S.length>Q?E(S,Q):S,this},this.setUA(k),this};K.VERSION=f,K.BROWSER=se([c,b,R]),K.CPU=se([I]),K.DEVICE=se([_,l,u,j,P,L,A,W,z]),K.ENGINE=K.OS=se([c,b]),typeof s!==g?(i.exports&&(s=i.exports=K),s.UAParser=K):typeof a!==g&&(a.UAParser=K);var ye=typeof a!==g&&(a.jQuery||a.Zepto);if(ye&&!ye.ua){var He=new K;ye.ua=He.getResult(),ye.ua.get=function(){return He.getUA()},ye.ua.set=function(x){He.setUA(x);var D=He.getResult();for(var N in D)ye.ua[N]=D[N]}}})(typeof window=="object"?window:this)}},t={};function n(i){var s=t[i];if(s!==void 0)return s.exports;var a=t[i]={exports:{}},r=!0;try{e[i].call(a.exports,a,a.exports,n),r=!1}finally{r&&delete t[i]}return a.exports}typeof n<"u"&&(n.ab=__dirname+"/");var o=n(226);vt.exports=o})();var Sn=vt.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(r,f){for(var h in f)Object.defineProperty(r,h,{enumerable:!0,get:f[h]})}t(e,{isBot:function(){return i},userAgent:function(){return a},userAgentFromString:function(){return s}});const n=o(Sn);function o(r){return r&&r.__esModule?r:{default:r}}function i(r){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(r)}function s(r){return{...(0,n.default)(r),isBot:r===void 0?!1:i(r)}}function a({headers:r}){return s(r.get("user-agent")||void 0)}})(ze);var At={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"URLPattern",{enumerable:!0,get:function(){return t}});const t=typeof URLPattern>"u"?void 0:URLPattern})(At);var Pt={},Tt={},Pe={},St={},Te={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,h){for(var d in h)Object.defineProperty(f,d,{enumerable:!0,get:h[d]})}t(e,{bindSnapshot:function(){return a},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return r}});const n=Object.defineProperty(new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class o{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}static bind(h){return h}}const i=typeof globalThis<"u"&&globalThis.AsyncLocalStorage;function s(){return i?new i:new o}function a(f){return i?i.bind(f):o.bind(f)}function r(){return i?i.snapshot():function(f,...h){return f(...h)}}})(Te),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});const n=(0,Te.createAsyncLocalStorage)()}(St),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workAsyncStorage",{enumerable:!0,get:function(){return t.workAsyncStorageInstance}});const t=St}(Pe),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"after",{enumerable:!0,get:function(){return n}});const t=Pe;function n(o){const i=t.workAsyncStorage.getStore();if(!i)throw Object.defineProperty(new Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"),"__NEXT_ERROR_CODE",{value:"E468",enumerable:!1,configurable:!0});const{afterContext:s}=i;return s.after(o)}}(Tt),function(e){Object.defineProperty(e,"__esModule",{value:!0}),t(Tt,e);function t(n,o){return Object.keys(n).forEach(function(i){i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:function(){return n[i]}})}),n}}(Pt);var Ot={},De={},Nt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"workUnitAsyncStorageInstance",{enumerable:!0,get:function(){return n}});const n=(0,Te.createAsyncLocalStorage)()})(Nt);var Ye={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(b,I){for(var j in I)Object.defineProperty(b,j,{enumerable:!0,get:I[j]})}n(t,{ACTION_HEADER:function(){return i},FLIGHT_HEADERS:function(){return g},NEXT_ACTION_NOT_FOUND_HEADER:function(){return l},NEXT_DID_POSTPONE_HEADER:function(){return R},NEXT_HMR_REFRESH_HASH_COOKIE:function(){return h},NEXT_HMR_REFRESH_HEADER:function(){return f},NEXT_IS_PRERENDER_HEADER:function(){return u},NEXT_REWRITTEN_PATH_HEADER:function(){return _},NEXT_REWRITTEN_QUERY_HEADER:function(){return c},NEXT_ROUTER_PREFETCH_HEADER:function(){return a},NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:function(){return r},NEXT_ROUTER_STALE_TIME_HEADER:function(){return v},NEXT_ROUTER_STATE_TREE_HEADER:function(){return s},NEXT_RSC_UNION_QUERY:function(){return w},NEXT_URL:function(){return d},RSC_CONTENT_TYPE_HEADER:function(){return m},RSC_HEADER:function(){return o}});const o="rsc",i="next-action",s="next-router-state-tree",a="next-router-prefetch",r="next-router-segment-prefetch",f="next-hmr-refresh",h="__next_hmr_refresh_hash__",d="next-url",m="text/x-component",g=[o,s,a,f,r],w="_rsc",v="x-nextjs-stale-time",R="x-nextjs-postponed",_="x-nextjs-rewritten-path",c="x-nextjs-rewritten-query",u="x-nextjs-prerender",l="x-nextjs-action-not-found";(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Ye,Ye.exports);var On=Ye.exports,ke={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"InvariantError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(o,i){super("Invariant: "+(o.endsWith(".")?o:o+".")+" This is a bug in Next.js.",i),this.name="InvariantError"}}})(ke),function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(R,_){for(var c in _)Object.defineProperty(R,c,{enumerable:!0,get:_[c]})}t(e,{getCacheSignal:function(){return w},getDraftModeProviderForCacheScope:function(){return g},getHmrRefreshHash:function(){return h},getPrerenderResumeDataCache:function(){return r},getRenderResumeDataCache:function(){return f},getRuntimeStagePromise:function(){return v},getServerComponentsHmrCache:function(){return m},isHmrRefresh:function(){return d},throwForMissingRequestStore:function(){return s},throwInvariantForMissingStore:function(){return a},workUnitAsyncStorage:function(){return n.workUnitAsyncStorageInstance}});const n=Nt,o=On,i=ke;function s(R){throw Object.defineProperty(new Error(`\`${R}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E251",enumerable:!1,configurable:!0})}function a(){throw Object.defineProperty(new i.InvariantError("Expected workUnitAsyncStorage to have a store."),"__NEXT_ERROR_CODE",{value:"E696",enumerable:!1,configurable:!0})}function r(R){switch(R.type){case"prerender":case"prerender-runtime":case"prerender-ppr":return R.prerenderResumeDataCache;case"prerender-client":return R.prerenderResumeDataCache;case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":return null;default:return R}}function f(R){switch(R.type){case"request":return R.renderResumeDataCache;case"prerender":case"prerender-runtime":case"prerender-client":if(R.renderResumeDataCache)return R.renderResumeDataCache;case"prerender-ppr":return R.prerenderResumeDataCache;case"cache":case"private-cache":case"unstable-cache":case"prerender-legacy":return null;default:return R}}function h(R,_){if(R.dev)switch(_.type){case"cache":case"private-cache":case"prerender":case"prerender-runtime":return _.hmrRefreshHash;case"request":var c;return(c=_.cookies.get(o.NEXT_HMR_REFRESH_HASH_COOKIE))==null?void 0:c.value}}function d(R,_){if(R.dev)switch(_.type){case"cache":case"private-cache":case"request":return _.isHmrRefresh??!1}return!1}function m(R,_){if(R.dev)switch(_.type){case"cache":case"private-cache":case"request":return _.serverComponentsHmrCache}}function g(R,_){if(R.isDraftMode)switch(_.type){case"cache":case"private-cache":case"unstable-cache":case"prerender-runtime":case"request":return _.draftMode}}function w(R){switch(R.type){case"prerender":case"prerender-client":case"prerender-runtime":return R.cacheSignal;case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":return null;default:return R}}function v(R){switch(R.type){case"prerender-runtime":case"private-cache":return R.runtimeStagePromise;case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"unstable-cache":return null;default:return R}}}(De);var Ve={},Ke={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(a,r){for(var f in r)Object.defineProperty(a,f,{enumerable:!0,get:r[f]})}n(t,{DynamicServerError:function(){return i},isDynamicServerError:function(){return s}});const o="DYNAMIC_SERVER_USAGE";class i extends Error{constructor(r){super("Dynamic server usage: "+r),this.description=r,this.digest=o}}function s(a){return typeof a!="object"||a===null||!("digest"in a)||typeof a.digest!="string"?!1:a.digest===o}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Ke,Ke.exports);var Nn=Ke.exports,Qe={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(a,r){for(var f in r)Object.defineProperty(a,f,{enumerable:!0,get:r[f]})}n(t,{StaticGenBailoutError:function(){return i},isStaticGenBailoutError:function(){return s}});const o="NEXT_STATIC_GEN_BAILOUT";class i extends Error{constructor(...r){super(...r),this.code=o}}function s(a){return typeof a!="object"||a===null||!("code"in a)?!1:a.code===o}(typeof t.default=="function"||typeof t.default=="object"&&t.default!==null)&&typeof t.default.__esModule>"u"&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)})(Qe,Qe.exports);var Je=Qe.exports,je={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(h,d){for(var m in d)Object.defineProperty(h,m,{enumerable:!0,get:d[m]})}t(e,{isHangingPromiseRejectionError:function(){return n},makeDevtoolsIOAwarePromise:function(){return f},makeHangingPromise:function(){return a}});function n(h){return typeof h!="object"||h===null||!("digest"in h)?!1:h.digest===o}const o="HANGING_PROMISE_REJECTION";class i extends Error{constructor(d,m){super(`During prerendering, ${m} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${m} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${d}".`),this.route=d,this.expression=m,this.digest=o}}const s=new WeakMap;function a(h,d,m){if(h.aborted)return Promise.reject(new i(d,m));{const g=new Promise((w,v)=>{const R=v.bind(null,new i(d,m));let _=s.get(h);if(_)_.push(R);else{const c=[R];s.set(h,c),h.addEventListener("abort",()=>{for(let u=0;u<c.length;u++)c[u]()},{once:!0})}});return g.catch(r),g}}function r(){}function f(h){return new Promise(d=>{setTimeout(()=>{d(h)},0)})}})(je);var It={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,r){for(var f in r)Object.defineProperty(a,f,{enumerable:!0,get:r[f]})}t(e,{METADATA_BOUNDARY_NAME:function(){return n},OUTLET_BOUNDARY_NAME:function(){return i},ROOT_LAYOUT_BOUNDARY_NAME:function(){return s},VIEWPORT_BOUNDARY_NAME:function(){return o}});const n="__next_metadata_boundary__",o="__next_viewport_boundary__",i="__next_outlet_boundary__",s="__next_root_layout_boundary__"})(It);var xt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,r){for(var f in r)Object.defineProperty(a,f,{enumerable:!0,get:r[f]})}t(e,{atLeastOneTask:function(){return i},scheduleImmediate:function(){return o},scheduleOnNextTick:function(){return n},waitAtLeastOneReactRenderTask:function(){return s}});const n=a=>{Promise.resolve().then(()=>{process.env.NEXT_RUNTIME==="edge"?setTimeout(a,0):process.nextTick(a)})},o=a=>{process.env.NEXT_RUNTIME==="edge"?setTimeout(a,0):setImmediate(a)};function i(){return new Promise(a=>o(a))}function s(){return process.env.NEXT_RUNTIME==="edge"?new Promise(a=>setTimeout(a,0)):new Promise(a=>setImmediate(a))}})(xt);var Ct={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s,a){for(var r in a)Object.defineProperty(s,r,{enumerable:!0,get:a[r]})}t(e,{BailoutToCSRError:function(){return o},isBailoutToCSRError:function(){return i}});const n="BAILOUT_TO_CLIENT_SIDE_RENDERING";class o extends Error{constructor(a){super("Bail out to client-side rendering: "+a),this.reason=a,this.digest=n}}function i(s){return typeof s!="object"||s===null||!("digest"in s)?!1:s.digest===n}})(Ct),function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(p,y){for(var E in y)Object.defineProperty(p,E,{enumerable:!0,get:y[E]})}t(e,{Postpone:function(){return W},PreludeState:function(){return ge},abortAndThrowOnSynchronousRequestDataAccess:function(){return P},abortOnSynchronousPlatformIOAccess:function(){return I},accessedDynamicData:function(){return M},annotateDynamicAccess:function(){return Z},consumeDynamicAccess:function(){return U},createDynamicTrackingState:function(){return v},createDynamicValidationState:function(){return R},createHangingInputAbortSignal:function(){return G},createRenderInBrowserAbortSignal:function(){return B},delayUntilRuntimeStage:function(){return Re},formatDynamicAPIAccesses:function(){return F},getFirstDynamicReason:function(){return _},isDynamicPostpone:function(){return J},isPrerenderInterruptedError:function(){return V},logDisallowedDynamicError:function(){return he},markCurrentScopeAsDynamic:function(){return c},postponeWithTracking:function(){return z},throwIfDisallowedDynamic:function(){return se},throwToInterruptStaticGeneration:function(){return u},trackAllowedDynamicAccess:function(){return be},trackDynamicDataInDynamicRender:function(){return l},trackSynchronousPlatformIOAccessInDev:function(){return j},trackSynchronousRequestDataAccessInDev:function(){return L},useDynamicRouteParams:function(){return pe},warnOnSyncDynamicError:function(){return A}});const n=g(we),o=Nn,i=Je,s=De,a=Pe,r=je,f=It,h=xt,d=Ct,m=ke;function g(p){return p&&p.__esModule?p:{default:p}}const w=typeof n.default.unstable_postpone=="function";function v(p){return{isDebugDynamicAccesses:p,dynamicAccesses:[],syncDynamicErrorWithStack:null}}function R(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function _(p){var y;return(y=p.dynamicAccesses[0])==null?void 0:y.expression}function c(p,y,E){if(y)switch(y.type){case"cache":case"unstable-cache":return;case"private-cache":return}if(!(p.forceDynamic||p.forceStatic)){if(p.dynamicShouldError)throw Object.defineProperty(new i.StaticGenBailoutError(`Route ${p.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${E}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(y)switch(y.type){case"prerender-ppr":return z(p.route,E,y.dynamicTracking);case"prerender-legacy":y.revalidate=0;const O=Object.defineProperty(new o.DynamicServerError(`Route ${p.route} couldn't be rendered statically because it used ${E}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw p.dynamicUsageDescription=E,p.dynamicUsageStack=O.stack,O;case"request":process.env.NODE_ENV!=="production"&&(y.usedDynamic=!0);break}}}function u(p,y,E){const O=Object.defineProperty(new o.DynamicServerError(`Route ${y.route} couldn't be rendered statically because it used \`${p}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw E.revalidate=0,y.dynamicUsageDescription=p,y.dynamicUsageStack=O.stack,O}function l(p){switch(p.type){case"cache":case"unstable-cache":return;case"private-cache":return;case"prerender":case"prerender-runtime":case"prerender-legacy":case"prerender-ppr":case"prerender-client":break;case"request":process.env.NODE_ENV!=="production"&&(p.usedDynamic=!0);break}}function b(p,y,E){const O=`Route ${p} needs to bail out of prerendering at this point because it used ${y}.`,H=re(O);E.controller.abort(H);const X=E.dynamicTracking;X&&X.dynamicAccesses.push({stack:X.isDebugDynamicAccesses?new Error().stack:void 0,expression:y})}function I(p,y,E,O){const H=O.dynamicTracking;b(p,y,O),H&&H.syncDynamicErrorWithStack===null&&(H.syncDynamicErrorWithStack=E)}function j(p){p.prerenderPhase=!1}function P(p,y,E,O){if(O.controller.signal.aborted===!1){b(p,y,O);const X=O.dynamicTracking;X&&X.syncDynamicErrorWithStack===null&&(X.syncDynamicErrorWithStack=E)}throw re(`Route ${p} needs to bail out of prerendering at this point because it used ${y}.`)}function A(p){p.syncDynamicErrorWithStack&&console.error(p.syncDynamicErrorWithStack)}const L=j;function W({reason:p,route:y}){const E=s.workUnitAsyncStorage.getStore(),O=E&&E.type==="prerender-ppr"?E.dynamicTracking:null;z(y,p,O)}function z(p,y,E){$(),E&&E.dynamicAccesses.push({stack:E.isDebugDynamicAccesses?new Error().stack:void 0,expression:y}),n.default.unstable_postpone(Q(p,y))}function Q(p,y){return`Route ${p} needs to bail out of prerendering at this point because it used ${y}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function J(p){return typeof p=="object"&&p!==null&&typeof p.message=="string"?Y(p.message):!1}function Y(p){return p.includes("needs to bail out of prerendering at this point because it used")&&p.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(Y(Q("%%%","^^^"))===!1)throw Object.defineProperty(new Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});const ne="NEXT_PRERENDER_INTERRUPTED";function re(p){const y=Object.defineProperty(new Error(p),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return y.digest=ne,y}function V(p){return typeof p=="object"&&p!==null&&p.digest===ne&&"name"in p&&"message"in p&&p instanceof Error}function M(p){return p.length>0}function U(p,y){return p.dynamicAccesses.push(...y.dynamicAccesses),p.dynamicAccesses}function F(p){return p.filter(y=>typeof y.stack=="string"&&y.stack.length>0).map(({expression:y,stack:E})=>(E=E.split(`
9
+ `).slice(4).filter(O=>!(O.includes("node_modules/next/")||O.includes(" (<anonymous>)")||O.includes(" (node:"))).join(`
10
+ `),`Dynamic API Usage Debug - ${y}:
11
+ ${E}`))}function $(){if(!w)throw Object.defineProperty(new Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})}function B(){const p=new AbortController;return p.abort(Object.defineProperty(new d.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),p.signal}function G(p){switch(p.type){case"prerender":case"prerender-runtime":const y=new AbortController;if(p.cacheSignal)p.cacheSignal.inputReady().then(()=>{y.abort()});else{const E=(0,s.getRuntimeStagePromise)(p);E?E.then(()=>(0,h.scheduleOnNextTick)(()=>y.abort())):(0,h.scheduleOnNextTick)(()=>y.abort())}return y.signal;case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":return}}function Z(p,y){const E=y.dynamicTracking;E&&E.dynamicAccesses.push({stack:E.isDebugDynamicAccesses?new Error().stack:void 0,expression:p})}function pe(p){const y=a.workAsyncStorage.getStore(),E=s.workUnitAsyncStorage.getStore();if(y&&E)switch(E.type){case"prerender-client":case"prerender":{const O=E.fallbackRouteParams;O&&O.size>0&&n.default.use((0,r.makeHangingPromise)(E.renderSignal,y.route,p));break}case"prerender-ppr":{const O=E.fallbackRouteParams;if(O&&O.size>0)return z(y.route,p,E.dynamicTracking);break}case"prerender-runtime":throw Object.defineProperty(new m.InvariantError(`\`${p}\` was called during a runtime prerender. Next.js should be preventing ${p} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new m.InvariantError(`\`${p}\` was called inside a cache scope. Next.js should be preventing ${p} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0})}}const ie=/\n\s+at Suspense \(<anonymous>\)/,de="body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6",me=new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${de}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${f.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),ae=new RegExp(`\\n\\s+at ${f.METADATA_BOUNDARY_NAME}[\\n\\s]`),le=new RegExp(`\\n\\s+at ${f.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),fe=new RegExp(`\\n\\s+at ${f.OUTLET_BOUNDARY_NAME}[\\n\\s]`);function be(p,y,E,O){if(!fe.test(y))if(ae.test(y)){E.hasDynamicMetadata=!0;return}else if(le.test(y)){E.hasDynamicViewport=!0;return}else if(me.test(y)){E.hasAllowedDynamic=!0,E.hasSuspenseAboveBody=!0;return}else if(ie.test(y)){E.hasAllowedDynamic=!0;return}else if(O.syncDynamicErrorWithStack){E.dynamicErrors.push(O.syncDynamicErrorWithStack);return}else{const H=`Route "${p.route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`,X=Ee(H,y);E.dynamicErrors.push(X);return}}function Ee(p,y){const E=process.env.NODE_ENV!=="production"&&n.default.captureOwnerStack?n.default.captureOwnerStack():null,O=Object.defineProperty(new Error(p),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return O.stack=O.name+": "+p+(E??y),O}var ge=function(p){return p[p.Full=0]="Full",p[p.Empty=1]="Empty",p[p.Errored=2]="Errored",p}({});function he(p,y){console.error(y),p.dev||(p.hasReadableErrorStacks?console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${p.route}" in your browser to investigate the error.`):console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
12
+ - Start the app in development mode by running \`next dev\`, then open "${p.route}" in your browser to investigate the error.
13
+ - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`))}function se(p,y,E,O){if(y!==0){if(E.hasSuspenseAboveBody)return;if(O.syncDynamicErrorWithStack)throw he(p,O.syncDynamicErrorWithStack),new i.StaticGenBailoutError;const H=E.dynamicErrors;if(H.length>0){for(let X=0;X<H.length;X++)he(p,H[X]);throw new i.StaticGenBailoutError}if(E.hasDynamicViewport)throw console.error(`Route "${p.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),new i.StaticGenBailoutError;if(y===1)throw console.error(`Route "${p.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new i.StaticGenBailoutError}else if(E.hasAllowedDynamic===!1&&E.hasDynamicMetadata)throw console.error(`Route "${p.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),new i.StaticGenBailoutError}function Re(p,y){return p.runtimeStagePromise?p.runtimeStagePromise.then(()=>y):y}}(Ve);var Dt={},kt={},jt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"afterTaskAsyncStorageInstance",{enumerable:!0,get:function(){return n}});const n=(0,Te.createAsyncLocalStorage)()})(jt),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"afterTaskAsyncStorage",{enumerable:!0,get:function(){return t.afterTaskAsyncStorageInstance}});const t=jt}(kt),function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,h){for(var d in h)Object.defineProperty(f,d,{enumerable:!0,get:h[d]})}t(e,{isRequestAPICallableInsideAfter:function(){return r},throwForSearchParamsAccessInUseCache:function(){return a},throwWithStaticGenerationBailoutError:function(){return i},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return s}});const n=Je,o=kt;function i(f,h){throw Object.defineProperty(new n.StaticGenBailoutError(`Route ${f} couldn't be rendered statically because it used ${h}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E576",enumerable:!1,configurable:!0})}function s(f,h){throw Object.defineProperty(new n.StaticGenBailoutError(`Route ${f} with \`dynamic = "error"\` couldn't be rendered statically because it used ${h}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function a(f,h){const d=Object.defineProperty(new Error(`Route ${f.route} used "searchParams" inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await "searchParams" outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E779",enumerable:!1,configurable:!0});throw Error.captureStackTrace(d,h),f.invalidDynamicUsageError??(f.invalidDynamicUsageError=d),d}function r(){const f=o.afterTaskAsyncStorage.getStore();return(f==null?void 0:f.rootTaskSpawnPhase)==="action"}}(Dt),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"connection",{enumerable:!0,get:function(){return r}});const t=Pe,n=De,o=Ve,i=Je,s=je,a=Dt;function r(){const f="connection",h=t.workAsyncStorage.getStore(),d=n.workUnitAsyncStorage.getStore();if(h){if(d&&d.phase==="after"&&!(0,a.isRequestAPICallableInsideAfter)())throw Object.defineProperty(new Error(`Route ${h.route} used "connection" inside "after(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but "after(...)" executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E186",enumerable:!1,configurable:!0});if(h.forceStatic)return Promise.resolve(void 0);if(h.dynamicShouldError)throw Object.defineProperty(new i.StaticGenBailoutError(`Route ${h.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E562",enumerable:!1,configurable:!0});if(d)switch(d.type){case"cache":{const m=Object.defineProperty(new Error(`Route ${h.route} used "connection" inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual request, but caches must be able to be produced before a request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E752",enumerable:!1,configurable:!0});throw Error.captureStackTrace(m,r),h.invalidDynamicUsageError??(h.invalidDynamicUsageError=m),m}case"private-cache":{const m=Object.defineProperty(new Error(`Route ${h.route} used "connection" inside "use cache: private". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual navigation request, but caches must be able to be produced before a navigation request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E753",enumerable:!1,configurable:!0});throw Error.captureStackTrace(m,r),h.invalidDynamicUsageError??(h.invalidDynamicUsageError=m),m}case"unstable-cache":throw Object.defineProperty(new Error(`Route ${h.route} used "connection" inside a function cached with "unstable_cache(...)". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E1",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-runtime":return(0,s.makeHangingPromise)(d.renderSignal,h.route,"`connection()`");case"prerender-ppr":return(0,o.postponeWithTracking)(h.route,"connection",d.dynamicTracking);case"prerender-legacy":return(0,o.throwToInterruptStaticGeneration)("connection",h,d);case"request":return(0,o.trackDynamicDataInDynamicRender)(d),process.env.NODE_ENV==="development"?(0,s.makeDevtoolsIOAwarePromise)(void 0):Promise.resolve(void 0)}}(0,n.throwForMissingRequestStore)(f)}}(Ot);var Lt={},Mt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(a,r){for(var f in r)Object.defineProperty(a,f,{enumerable:!0,get:r[f]})}t(e,{describeHasCheckingStringProperty:function(){return i},describeStringPropertyAccess:function(){return o},wellKnownProperties:function(){return s}});const n=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function o(a,r){return n.test(r)?"`"+a+"."+r+"`":"`"+a+"["+JSON.stringify(r)+"]`"}function i(a,r){const f=JSON.stringify(r);return"`Reflect.has("+a+", "+f+")`, `"+f+" in "+a+"`, or similar"}const s=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toString","valueOf","toLocaleString","then","catch","finally","status","displayName","_debugInfo","toJSON","$$typeof","__esModule"])})(Mt);var Ht={},Ut={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"actionAsyncStorageInstance",{enumerable:!0,get:function(){return n}});const n=(0,Te.createAsyncLocalStorage)()})(Ut),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"actionAsyncStorage",{enumerable:!0,get:function(){return t.actionAsyncStorageInstance}});const t=Ut}(Ht);var Xt={},Ft={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(M,U){for(var F in U)Object.defineProperty(M,F,{enumerable:!0,get:U[F]})}t(e,{bgBlack:function(){return W},bgBlue:function(){return Y},bgCyan:function(){return re},bgGreen:function(){return Q},bgMagenta:function(){return ne},bgRed:function(){return z},bgWhite:function(){return V},bgYellow:function(){return J},black:function(){return _},blue:function(){return b},bold:function(){return h},cyan:function(){return P},dim:function(){return d},gray:function(){return L},green:function(){return u},hidden:function(){return v},inverse:function(){return w},italic:function(){return m},magenta:function(){return I},purple:function(){return j},red:function(){return c},reset:function(){return f},strikethrough:function(){return R},underline:function(){return g},white:function(){return A},yellow:function(){return l}});var n;const{env:o,stdout:i}=((n=globalThis)==null?void 0:n.process)??{},s=o&&!o.NO_COLOR&&(o.FORCE_COLOR||(i==null?void 0:i.isTTY)&&!o.CI&&o.TERM!=="dumb"),a=(M,U,F,$)=>{const B=M.substring(0,$)+F,G=M.substring($+U.length),Z=G.indexOf(U);return~Z?B+a(G,U,F,Z):B+G},r=(M,U,F=M)=>s?$=>{const B=""+$,G=B.indexOf(U,M.length);return~G?M+a(B,U,F,G)+U:M+B+U}:String,f=s?M=>`\x1B[0m${M}\x1B[0m`:String,h=r("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),d=r("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),m=r("\x1B[3m","\x1B[23m"),g=r("\x1B[4m","\x1B[24m"),w=r("\x1B[7m","\x1B[27m"),v=r("\x1B[8m","\x1B[28m"),R=r("\x1B[9m","\x1B[29m"),_=r("\x1B[30m","\x1B[39m"),c=r("\x1B[31m","\x1B[39m"),u=r("\x1B[32m","\x1B[39m"),l=r("\x1B[33m","\x1B[39m"),b=r("\x1B[34m","\x1B[39m"),I=r("\x1B[35m","\x1B[39m"),j=r("\x1B[38;2;173;127;168m","\x1B[39m"),P=r("\x1B[36m","\x1B[39m"),A=r("\x1B[37m","\x1B[39m"),L=r("\x1B[90m","\x1B[39m"),W=r("\x1B[40m","\x1B[49m"),z=r("\x1B[41m","\x1B[49m"),Q=r("\x1B[42m","\x1B[49m"),J=r("\x1B[43m","\x1B[49m"),Y=r("\x1B[44m","\x1B[49m"),ne=r("\x1B[45m","\x1B[49m"),re=r("\x1B[46m","\x1B[49m"),V=r("\x1B[47m","\x1B[49m")})(Ft);var qt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:function(){return o}});class t{constructor(s,a,r){this.prev=null,this.next=null,this.key=s,this.data=a,this.size=r}}class n{constructor(){this.prev=null,this.next=null}}class o{constructor(s,a,r){this.cache=new Map,this.totalSize=0,this.maxSize=s,this.calculateSize=a,this.onEvict=r,this.head=new n,this.tail=new n,this.head.next=this.tail,this.tail.prev=this.head}addToHead(s){s.prev=this.head,s.next=this.head.next,this.head.next.prev=s,this.head.next=s}removeNode(s){s.prev.next=s.next,s.next.prev=s.prev}moveToHead(s){this.removeNode(s),this.addToHead(s)}removeTail(){const s=this.tail.prev;return this.removeNode(s),s}set(s,a){const r=(this.calculateSize==null?void 0:this.calculateSize.call(this,a))??1;if(r<=0)throw Object.defineProperty(new Error(`LRUCache: calculateSize returned ${r}, but size must be > 0. Items with size 0 would never be evicted, causing unbounded cache growth.`),"__NEXT_ERROR_CODE",{value:"E789",enumerable:!1,configurable:!0});if(r>this.maxSize)return console.warn("Single item size exceeds maxSize"),!1;const f=this.cache.get(s);if(f)f.data=a,this.totalSize=this.totalSize-f.size+r,f.size=r,this.moveToHead(f);else{const h=new t(s,a,r);this.cache.set(s,h),this.addToHead(h),this.totalSize+=r}for(;this.totalSize>this.maxSize&&this.cache.size>0;){const h=this.removeTail();this.cache.delete(h.key),this.totalSize-=h.size,this.onEvict==null||this.onEvict.call(this,h.key,h.data)}return!0}has(s){return this.cache.has(s)}get(s){const a=this.cache.get(s);if(a)return this.moveToHead(a),a.data}*[Symbol.iterator](){let s=this.head.next;for(;s&&s!==this.tail;){const a=s;yield[a.key,a.data],s=s.next}}remove(s){const a=this.cache.get(s);a&&(this.removeNode(a),this.cache.delete(s),this.totalSize-=a.size)}get size(){return this.cache.size}get currentSize(){return this.totalSize}}})(qt),function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var l in u)Object.defineProperty(c,l,{enumerable:!0,get:u[l]})}t(e,{bootstrap:function(){return r},error:function(){return h},event:function(){return w},info:function(){return g},prefixes:function(){return i},ready:function(){return m},trace:function(){return v},wait:function(){return f},warn:function(){return d},warnOnce:function(){return _}});const n=Ft,o=qt,i={wait:(0,n.white)((0,n.bold)("○")),error:(0,n.red)((0,n.bold)("⨯")),warn:(0,n.yellow)((0,n.bold)("⚠")),ready:"▲",info:(0,n.white)((0,n.bold)(" ")),event:(0,n.green)((0,n.bold)("✓")),trace:(0,n.magenta)((0,n.bold)("»"))},s={log:"log",warn:"warn",error:"error"};function a(c,...u){(u[0]===""||u[0]===void 0)&&u.length===1&&u.shift();const l=c in s?s[c]:"log",b=i[c];u.length===0?console[l](""):u.length===1&&typeof u[0]=="string"?console[l](" "+b+" "+u[0]):console[l](" "+b,...u)}function r(...c){console.log(" "+c.join(" "))}function f(...c){a("wait",...c)}function h(...c){a("error",...c)}function d(...c){a("warn",...c)}function m(...c){a("ready",...c)}function g(...c){a("info",...c)}function w(...c){a("event",...c)}function v(...c){a("trace",...c)}const R=new o.LRUCache(1e4,c=>c.length);function _(...c){const u=c.join(" ");R.has(u)||(R.set(u,u),d(...c))}}(Xt),function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c,u){for(var l in u)Object.defineProperty(c,l,{enumerable:!0,get:u[l]})}t(e,{getRootParam:function(){return v},unstable_rootParams:function(){return m}});const n=ke,o=Ve,i=Pe,s=De,a=je,r=Mt,f=Ht,h=Xt,d=new WeakMap;async function m(){(0,h.warnOnce)("`unstable_rootParams()` is deprecated and will be removed in an upcoming major release. Import specific root params from `next/root-params` instead.");const c=i.workAsyncStorage.getStore();if(!c)throw Object.defineProperty(new n.InvariantError("Missing workStore in unstable_rootParams"),"__NEXT_ERROR_CODE",{value:"E615",enumerable:!1,configurable:!0});const u=s.workUnitAsyncStorage.getStore();if(!u)throw Object.defineProperty(new Error(`Route ${c.route} used \`unstable_rootParams()\` in Pages Router. This API is only available within App Router.`),"__NEXT_ERROR_CODE",{value:"E641",enumerable:!1,configurable:!0});switch(u.type){case"cache":case"unstable-cache":throw Object.defineProperty(new Error(`Route ${c.route} used \`unstable_rootParams()\` inside \`"use cache"\` or \`unstable_cache\`. Support for this API inside cache scopes is planned for a future version of Next.js.`),"__NEXT_ERROR_CODE",{value:"E642",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return g(u.rootParams,c,u);case"private-cache":case"prerender-runtime":case"request":return Promise.resolve(u.rootParams);default:return u}}function g(c,u,l){switch(l.type){case"prerender-client":{const b="`unstable_rootParams`";throw Object.defineProperty(new n.InvariantError(`${b} must not be used within a client component. Next.js should be preventing ${b} from being included in client components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E693",enumerable:!1,configurable:!0})}case"prerender":{const b=l.fallbackRouteParams;if(b){for(const I in c)if(b.has(I)){const j=d.get(c);if(j)return j;const P=(0,a.makeHangingPromise)(l.renderSignal,u.route,"`unstable_rootParams`");return d.set(c,P),P}}break}case"prerender-ppr":{const b=l.fallbackRouteParams;if(b){for(const I in c)if(b.has(I))return w(c,b,u,l)}break}}return Promise.resolve(c)}function w(c,u,l,b){const I=d.get(c);if(I)return I;const j={...c},P=Promise.resolve(j);return d.set(c,P),Object.keys(c).forEach(A=>{r.wellKnownProperties.has(A)||(u.has(A)?Object.defineProperty(j,A,{get(){const L=(0,r.describeStringPropertyAccess)("unstable_rootParams",A);b.type==="prerender-ppr"?(0,o.postponeWithTracking)(l.route,L,b.dynamicTracking):(0,o.throwToInterruptStaticGeneration)(L,l,b)},enumerable:!0}):P[A]=c[A])}),P}function v(c){const u=`\`import('next/root-params').${c}()\``,l=i.workAsyncStorage.getStore();if(!l)throw Object.defineProperty(new n.InvariantError(`Missing workStore in ${u}`),"__NEXT_ERROR_CODE",{value:"E764",enumerable:!1,configurable:!0});const b=s.workUnitAsyncStorage.getStore();if(!b)throw Object.defineProperty(new Error(`Route ${l.route} used ${u} outside of a Server Component. This is not allowed.`),"__NEXT_ERROR_CODE",{value:"E774",enumerable:!1,configurable:!0});const I=f.actionAsyncStorage.getStore();if(I){if(I.isAppRoute)throw Object.defineProperty(new Error(`Route ${l.route} used ${u} inside a Route Handler. Support for this API in Route Handlers is planned for a future version of Next.js.`),"__NEXT_ERROR_CODE",{value:"E765",enumerable:!1,configurable:!0});if(I.isAction&&b.phase==="action")throw Object.defineProperty(new Error(`${u} was used inside a Server Action. This is not supported. Functions from 'next/root-params' can only be called in the context of a route.`),"__NEXT_ERROR_CODE",{value:"E766",enumerable:!1,configurable:!0})}switch(b.type){case"unstable-cache":case"cache":throw Object.defineProperty(new Error(`Route ${l.route} used ${u} inside \`"use cache"\` or \`unstable_cache\`. Support for this API inside cache scopes is planned for a future version of Next.js.`),"__NEXT_ERROR_CODE",{value:"E760",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-ppr":case"prerender-legacy":return R(c,l,b,u)}return Promise.resolve(b.rootParams[c])}function R(c,u,l,b){switch(l.type){case"prerender-client":throw Object.defineProperty(new n.InvariantError(`${b} must not be used within a client component. Next.js should be preventing ${b} from being included in client components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E693",enumerable:!1,configurable:!0})}const I=l.rootParams;switch(l.type){case"prerender":{if(l.fallbackRouteParams&&l.fallbackRouteParams.has(c))return(0,a.makeHangingPromise)(l.renderSignal,u.route,b);break}case"prerender-ppr":{if(l.fallbackRouteParams&&l.fallbackRouteParams.has(c))return _(c,u,l,b);break}}return Promise.resolve(I[c])}async function _(c,u,l,b){const I=(0,r.describeStringPropertyAccess)(b,c);switch(l.type){case"prerender-ppr":return(0,o.postponeWithTracking)(u.route,I,l.dynamicTracking);case"prerender-legacy":return(0,o.throwToInterruptStaticGeneration)(I,u,l)}}}(Lt),function(e,t){const n={NextRequest:at.NextRequest,NextResponse:Rt.NextResponse,ImageResponse:wt.ImageResponse,userAgentFromString:ze.userAgentFromString,userAgent:ze.userAgent,URLPattern:At.URLPattern,after:Pt.after,connection:Ot.connection,unstable_rootParams:Lt.unstable_rootParams};e.exports=n,t.NextRequest=n.NextRequest,t.NextResponse=n.NextResponse,t.ImageResponse=n.ImageResponse,t.userAgentFromString=n.userAgentFromString,t.userAgent=n.userAgent,t.URLPattern=n.URLPattern,t.after=n.after,t.connection=n.connection,t.unstable_rootParams=n.unstable_rootParams}(Fe,Fe.exports);var Le=Fe.exports;function In(){const e=process.env.META_PIXEL_ID||process.env.FB_PIXEL_ID,t=process.env.META_ACCESS_TOKEN||process.env.FB_ACCESS_TOKEN;return{pixelId:e,accessToken:t}}async function xn(e){var t;try{const n=await e.json(),{pixelId:o,accessToken:i}=In();if(!o||!i)return Le.NextResponse.json({success:!1,error:"Configuration missing"},{status:500});const{event_name:s=n.event||"Lead",action_source:a="website",event_source_url:r,event_id:f,custom_data:h={},user_data:d={}}=n,m=e.headers.get("x-forwarded-for"),g=((t=m==null?void 0:m.split(",")[0])==null?void 0:t.trim())||e.headers.get("x-real-ip")||"",w={data:[{event_name:s,event_time:Math.floor(Date.now()/1e3),action_source:a,event_id:f,event_source_url:r||e.headers.get("referer")||"",user_data:{client_ip_address:g,client_user_agent:e.headers.get("user-agent")||"",...d},custom_data:h}]},v=await fetch(`https://graph.facebook.com/v21.0/${o}/events?access_token=${i}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w)}),R=await v.json();return v.ok?Le.NextResponse.json({success:!0,data:R}):Le.NextResponse.json({success:!1,error:R},{status:v.status})}catch(n){const o=n instanceof Error?n.message:"Unknown error";return Le.NextResponse.json({success:!1,error:o},{status:500})}}const Cn={add_to_cart:q.AddToCart,view_item:q.ViewContent,view_cart:q.ViewContent,begin_checkout:q.InitiateCheckout,add_payment_info:q.AddPaymentInfo,purchase:q.Purchase};function Gt(e){if(typeof window>"u")return;const t=window;t.dataLayer=t.dataLayer||[],t.dataLayer.push({ecommerce:null}),t.dataLayer.push(e)}function Me(e){return(e??"INR").toUpperCase()}function $t(e){const t=e.items??[],n=t.reduce((o,i)=>o+(i.quantity??1),0);return{currency:Me(e.currency),value:e.value,content_ids:t.map(o=>String(o.item_id)),content_type:"product",contents:t.map(o=>({id:String(o.item_id),quantity:o.quantity??1,item_price:o.price??0})),num_items:n}}function oe(e,t,n){const o=Me(t.currency),i={...t,currency:o},s=$t({...t,currency:o});Gt({event:e,ecommerce:i,...s,...n});const a=Cn[e];a&&(e==="purchase"&&(n!=null&&n.transaction_id)?it({...t,currency:o,transaction_id:String(n.transaction_id)}):Ne(a,{...t,currency:o},n))}function ue(e,t){Xe(e,t??{})}function Bt(e){var i,s;if(!((i=e==null?void 0:e.items)!=null&&i.length))return null;const t=Me(e.currency_code??((s=e.region)==null?void 0:s.currency_code)),n=(e.total??0)/100,o=e.items.map((a,r)=>{const f=a.total&&a.quantity?a.total/a.quantity:0;return{item_id:a.variant_id??a.id,item_name:a.title??a.product_title??"",price:f/100,quantity:a.quantity,index:r}});return{currency:t,value:n,items:o}}function Dn(e){oe("add_to_cart",e)}function kn(e){oe("remove_from_cart",e)}function Wt(e){oe("view_cart",e)}function jn(e){oe("view_item",e)}function Ln(e){const t=$t({currency:"INR",value:0,items:e.items});Gt({event:"view_item_list",ecommerce:e,...t}),Ne(q.ViewContent,{currency:"INR",value:0,items:e.items})}const zt="meta_initiate_checkout_";function Yt(e){typeof window>"u"||sessionStorage.setItem(`${zt}${e}`,String(Date.now()))}function Mn(e,t=6e4){if(typeof window>"u")return!1;const n=sessionStorage.getItem(`${zt}${e}`);return n?Date.now()-Number(n)<t:!1}function Hn(e,t){Vt(e),t&&Yt(t)}function Vt(e){oe("begin_checkout",e)}function Un(e){oe("add_shipping_info",e)}function Xn(e,t){oe("add_payment_info",e,t)}function Fn(e){const{transaction_id:t,...n}=e;oe("purchase",n,{transaction_id:t,order_id:t})}function qn(e){ue(q.AddToWishlist,{content_ids:e.content_ids,content_type:"product",currency:Me(e.currency),value:e.value??0})}function Gn(e){ue(q.CompleteRegistration,e)}function $n(e){ue(q.Contact,e)}function Bn(e){ue(q.Lead,e)}function Wn(e){ue(q.Search,{search_string:e})}function zn(e){ue(q.ViewContent,{content_type:"cta",content_name:e.label||"shop_now",content_category:"hero_banner",...e.link?{content_url:e.link}:{}})}function Yn(e){const t=Bt(e);t&&Wt(t)}T.META_EXPLICIT_KEY=_e,T.META_PIXEL_DATALAYER_EVENT=ot,T.META_STANDARD_EVENTS=q,T.cartToEcommercePayload=Bt,T.composeAnalyticsAdapters=Jt,T.createGtmAnalyticsAdapter=tt,T.defaultStorefrontAnalytics=Zt,T.disableMetaPixelAutoConfig=nt,T.emitContactFormSubmitted=tn,T.emitFormSubmitted=Ue,T.emitLeadCaptured=nn,T.emitReviewSubmitted=en,T.fireMetaEcommerceEvent=Ne,T.fireMetaPixelEvent=Xe,T.fireMetaPurchase=it,T.installMetaPixelGuard=an,T.markInitiateCheckoutFired=Yt,T.metaCapiEventHandler=xn,T.noopAnalyticsAdapter=Qt,T.pushToDataLayer=et,T.trackAddPaymentInfo=Xn,T.trackAddShippingInfo=Un,T.trackAddToCart=Dn,T.trackAddToWishlist=qn,T.trackBeginCheckout=Vt,T.trackCartNavClick=Yn,T.trackCompleteRegistration=Gn,T.trackContact=$n,T.trackGtmEvent=ve,T.trackHeroCtaClick=zn,T.trackInitiateCheckoutFromCart=Hn,T.trackLead=Bn,T.trackMetaStandardEvent=ue,T.trackPurchase=Fn,T.trackRemoveFromCart=kn,T.trackSearch=Wn,T.trackViewCart=Wt,T.trackViewItem=jn,T.trackViewItemList=Ln,T.wasInitiateCheckoutFired=Mn,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});