1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[147],{1150:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let s=r(5155),n=r(2115),i=r(4437);function a(e){return{default:e&&"default"in e?e.default:e}}r(6552);let o={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},l=function(e){let t={...o,...e},r=(0,n.lazy)(()=>t.loader().then(a)),l=t.loading;function u(e){let a=l?(0,s.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,u=o?n.Suspense:n.Fragment,c=t.ssr?(0,s.jsxs)(s.Fragment,{children:[null,(0,s.jsx)(r,{...e})]}):(0,s.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,s.jsx)(r,{...e})});return(0,s.jsx)(u,{...o?{fallback:a}:{},children:c})}return u.displayName="LoadableComponent",u}},4054:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return a},createAsyncLocalStorage:function(){return i},createSnapshot:function(){return o}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class s{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let n="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function i(){return n?new n:new s}function a(e){return n?n.bind(e):s.bind(e)}function o(){return n?n.snapshot():function(e,...t){return e(...t)}}},4437:(e,t,r)=>{function s(e){let{reason:t,children:r}=e;return r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return s}}),r(4553)},4821:(e,t,r)=>{let s;r.d(t,{c9:()=>rG});class n extends Error{}class i extends n{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class a extends n{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class o extends n{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class l extends n{}class u extends n{constructor(e){super(`Invalid unit ${e}`)}}class c extends n{}class h extends n{constructor(){super("Zone is an abstract class")}}let d="numeric",m="short",f="long",y={year:d,month:d,day:d},g={year:d,month:m,day:d},p={year:d,month:m,day:d,weekday:m},w={year:d,month:f,day:d},v={year:d,month:f,day:d,weekday:f},k={hour:d,minute:d},b={hour:d,minute:d,second:d},T={hour:d,minute:d,second:d,timeZoneName:m},S={hour:d,minute:d,second:d,timeZoneName:f},O={hour:d,minute:d,hourCycle:"h23"},N={hour:d,minute:d,second:d,hourCycle:"h23"},E={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:m},M={hour:d,minute:d,second:d,hourCycle:"h23",timeZoneName:f},I={year:d,month:d,day:d,hour:d,minute:d},D={year:d,month:d,day:d,hour:d,minute:d,second:d},x={year:d,month:m,day:d,hour:d,minute:d},$={year:d,month:m,day:d,hour:d,minute:d,second:d},L={year:d,month:m,day:d,weekday:m,hour:d,minute:d},C={year:d,month:f,day:d,hour:d,minute:d,timeZoneName:m},_={year:d,month:f,day:d,hour:d,minute:d,second:d,timeZoneName:m},A={year:d,month:f,day:d,weekday:f,hour:d,minute:d,timeZoneName:f},V={year:d,month:f,day:d,weekday:f,hour:d,minute:d,second:d,timeZoneName:f};class R{get type(){throw new h}get name(){throw new h}get ianaName(){return this.name}get isUniversal(){throw new h}offsetName(e,t){throw new h}formatOffset(e,t){throw new h}offset(e){throw new h}equals(e){throw new h}get isValid(){throw new h}}let j=null;class F extends R{static get instance(){return null===j&&(j=new F),j}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return e4(e,t,r)}formatOffset(e,t){return e8(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let W=new Map,P={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},Z=new Map;class U extends R{static create(e){let t=Z.get(e);
1return void 0===t&&Z.set(e,t=new U(e)),t}static resetCache(){Z.clear(),W.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=U.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return e4(e,t,r,this.name)}formatOffset(e,t){return e8(this.offset(e),t)}offset(e){var t;let r;if(!this.valid)return NaN;let s=new Date(e);if(isNaN(s))return NaN;let n=(t=this.name,void 0===(r=W.get(t))&&(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),W.set(t,r)),r),[i,a,o,l,u,c,h]=n.formatToParts?function(e,t){let r=e.formatToParts(t),s=[];for(let e=0;e<r.length;e++){let{type:t,value:n}=r[e],i=P[t];"era"===t?s[i]=n:eR(i)||(s[i]=parseInt(n,10))}return s}(n,s):function(e,t){let r=e.format(t).replace(/\u200E/g,""),[,s,n,i,a,o,l,u]=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r);return[i,s,n,a,o,l,u]}(n,s);"BC"===l&&(i=-Math.abs(i)+1);let d=e0({year:i,month:a,day:o,hour:24===u?0:u,minute:c,second:h,millisecond:0}),m=+s,f=m%1e3;return(d-(m-=f>=0?f:1e3+f))/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let z={},q=new Map;function H(e,t={}){let r=JSON.stringify([e,t]),s=q.get(r);return void 0===s&&(s=new Intl.DateTimeFormat(e,t),q.set(r,s)),s}let Y=new Map,G=new Map,J=null,B=new Map;function Q(e){let t=B.get(e);return void 0===t&&(t=new Intl.DateTimeFormat(e).resolvedOptions(),B.set(e,t)),t}let K=new Map;function X(e,t,r,s){let n=e.listingMode();return"error"===n?null:"en"===n?r(t):s(t)}class ee{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;let{padTo:s,floor:n,...i}=r;if(!t||Object.keys(i).length>0){let t={useGrouping:!1,...r};r.padTo>0&&(t.minimumIntegerDigits=r.padTo),this.inf=function(e,t={}){let r=JSON.stringify([e,t]),s=Y.get(r);return void 0===s&&(s=new Intl.NumberFormat(e,t),Y.set(r,s)),s}(e,t)}}format(e){if(!this.inf)return eH(this.floor?Math.floor(e):eB(e,3),this.padTo);{let t=this.floor?Math.floor(e):e;return this.inf.format(t)}}}class et{constructor(e,t,r){let s;if(this.opts=r,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){let t=-1*(e.offset/60),r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&U.create(r).valid?(s=r,this.dt=e):(s="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let n={...this.opts};n.timeZone=n.timeZone||s,this.dtf=H(t,n)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(e=>{if("timeZoneName"!==e.type)return e;{let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class er{constructor(e,t,r){this.opts={style:"long",...r},!t&&eW()&&(this.rtf=function(e,t={}){let{base:r,...s}=t,n=JSON.stringify([e,s]),i=G.get(n);return void 0===i&&(i=new Intl.RelativeTimeFormat(e,t),G.set(n,i)),i}(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r="always",s=!1){let n={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&i){let r="days"===e;switch(t){case 1:return r?"tomorrow":`next ${n[e][0]}`;case -1:return r?"yesterday":`last ${n[e][0]}`;case 0:return r?"today":`this ${n[e][0]}`}}let a=Object.is(t,-0)||t<0,o=Math.abs(t),l=1===o,u=n[e],c=s?l?u[1]:u[2]||u[1]:l?n[e][0]:e;return a?`${o} ${c} ago`:`in ${o} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}let es={firstDay:1,minimalDays:4,weekend:[6,7]};class en{static fromOpts(e){return en.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,s,n=!1){let i=e||eT.defaultLocale,a=i||(n?"en-US":J||(J=new Intl.DateTimeFormat().resolvedOptions().locale)),o=t||eT.defaultNumberingSystem;return new en(a,o,r||eT.defaultOutputCalendar,ez(s)||eT.defaultWeekSettings,i)}static resetCache(){J=null,q.clear(),Y.clear(),G.clear(),B.clear(),K.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:s}={}){return en.create(e,t,r,s)}constructor(e,t,r,s,n){let[i,a,o]=function(e){let t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(-1===r)return[e];{let t,s;try{t=H(e).resolvedOptions(),s=e}catch(i){let n=e.substring(0,r);t=H(n).resolvedOptions(),s=n}let{numberingSystem:n,calendar:i}=t;return[s,n,i]}}(e);this.locale=i,this.numberingSystem=t||a||null,this.outputCalendar=r||o||null,this.weekSettings=s,this.intl=function(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===Q(this.locale).numberingSystem)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?en.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,ez(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return X(this,e,ts,()=>{let r="ja"===this.intl||this.intl.startsWith("ja-"),s=(t&=!r)?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";if(!this.monthsCache[n][e]){let t=r?e=>this.dtFormatter(e,s).format():e=>this.extract(e,s,"month");this.monthsCache[n][e]=function(e){let t=[];for(let r=1;r<=12;r++){let s=rG.utc(2009,r,1);t.push(e(s))}return t}(t)}return this.monthsCache[n][e]})}weekdays(e,t=!1){return X(this,e,to,()=>{let r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=t?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=function(e){let t=[];for(let r=1;r<=7;r++){let s=rG.utc(2016,11,13+r);t.push(e(s))}return t}(e=>this.extract(e,r,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return X(this,void 0,()=>tl,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[rG.utc(2016,11,13,9),rG.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return X(this,e,td,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[rG.utc(-40,1,1),rG.utc(2017,1,1)].map(e=>this.extract(e,t,"era"))),this.eraCache[e]}
1)}extract(e,t,r){let s=this.dtFormatter(e,t).formatToParts().find(e=>e.type.toLowerCase()===r);return s?s.value:null}numberFormatter(e={}){return new ee(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new et(e,this.intl,t)}relFormatter(e={}){return new er(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){let r=JSON.stringify([e,t]),s=z[r];return s||(s=new Intl.ListFormat(e,t),z[r]=s),s}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||Q(this.intl).locale.startsWith("en-us")}getWeekSettings(){if(this.weekSettings)return this.weekSettings;if(!eP())return es;var e=this.locale;let t=K.get(e);if(!t){let r=new Intl.Locale(e);"minimalDays"in(t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo)||(t={...es,...t}),K.set(e,t)}return t}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let ei=null;class ea extends R{static get utcInstance(){return null===ei&&(ei=new ea(0)),ei}static instance(e){return 0===e?ea.utcInstance:new ea(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new ea(e6(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${e8(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${e8(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return e8(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class eo extends R{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function el(e,t){if(eR(e)||null===e)return t;if(e instanceof R)return e;if("string"==typeof e){let r=e.toLowerCase();return"default"===r?t:"local"===r||"system"===r?F.instance:"utc"===r||"gmt"===r?ea.utcInstance:ea.parseSpecifier(r)||U.create(e)}if(ej(e))return ea.instance(e);if("object"==typeof e&&"offset"in e&&"function"==typeof e.offset)return e;else return new eo(e)}let eu={arab:"[Ù -Ù©]",arabext:"[Û°-Û¹]",bali:"[á-á]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[ï¼-ï¼]",gujr:"[૦-૯]",hanidec:"[ã|ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹]",khmr:"[á -á©]",knda:"[೦-೯]",laoo:"[à»-à»]",limb:"[á¥-á¥]",mlym:"[൦-൯]",mong:"[á -á ]",mymr:"[á-á]",orya:"[à¦-à¯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[à¹-à¹]",tibt:"[༠-༩]",latn:"\\d"},ec={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},eh=eu.hanidec.replace(/[\[|\]]/g,"").split(""),ed=new Map;function em({numberingSystem:e},t=""){let r=e||"latn",s=ed.get(r);void 0===s&&(s=new Map,ed.set(r,s));let n=s.get(t);return void 0===n&&(n=RegExp(`${eu[r]}${t}`),s.set(t,n)),n}let ef=()=>Date.now(),ey="system",eg=null,ep=null,ew=null,ev=60,ek,eb=null;class eT{static get now(){return ef}static set now(e){ef=e}static set defaultZone(e){ey=e}static get defaultZone(){return el(ey,F.instance)}static get defaultLocale(){return eg}static set defaultLocale(e){eg=e}static get defaultNumberingSystem(){return ep}static set defaultNumberingSystem(e){ep=e}
1static get defaultOutputCalendar(){return ew}static set defaultOutputCalendar(e){ew=e}static get defaultWeekSettings(){return eb}static set defaultWeekSettings(e){eb=ez(e)}static get twoDigitCutoffYear(){return ev}static set twoDigitCutoffYear(e){ev=e%100}static get throwOnInvalid(){return ek}static set throwOnInvalid(e){ek=e}static resetCaches(){en.resetCache(),U.resetCache(),rG.resetCache(),ed.clear()}}class eS{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let eO=[0,31,59,90,120,151,181,212,243,273,304,334],eN=[0,31,60,91,121,152,182,213,244,274,305,335];function eE(e,t){return new eS("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function eM(e,t,r){let s=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);let n=s.getUTCDay();return 0===n?7:n}function eI(e,t){let r=eQ(e)?eN:eO,s=r.findIndex(e=>e<t),n=t-r[s];return{month:s+1,day:n}}function eD(e,t){return(e-t+7)%7+1}function ex(e,t=4,r=1){let{year:s,month:n,day:i}=e,a=i+(eQ(s)?eN:eO)[n-1],o=eD(eM(s,n,i),r),l=Math.floor((a-o+14-t)/7),u;return l<1?l=e2(u=s-1,t,r):l>e2(s,t,r)?(u=s+1,l=1):u=s,{weekYear:u,weekNumber:l,weekday:o,...e9(e)}}function e$(e,t=4,r=1){let{weekYear:s,weekNumber:n,weekday:i}=e,a=eD(eM(s,1,t),r),o=eK(s),l=7*n+i-a-7+t,u;l<1?l+=eK(u=s-1):l>o?(u=s+1,l-=eK(s)):u=s;let{month:c,day:h}=eI(u,l);return{year:u,month:c,day:h,...e9(e)}}function eL(e){let{year:t,month:r,day:s}=e,n=s+(eQ(t)?eN:eO)[r-1];return{year:t,ordinal:n,...e9(e)}}function eC(e){let{year:t,ordinal:r}=e,{month:s,day:n}=eI(t,r);return{year:t,month:s,day:n,...e9(e)}}function e_(e,t){if(!(!eR(e.localWeekday)||!eR(e.localWeekNumber)||!eR(e.localWeekYear)))return{minDaysInFirstWeek:4,startOfWeek:1};if(!eR(e.weekday)||!eR(e.weekNumber)||!eR(e.weekYear))throw new l("Cannot mix locale-based week fields with ISO-based week fields");return eR(e.localWeekday)||(e.weekday=e.localWeekday),eR(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),eR(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}function eA(e){let t=eF(e.year),r=eq(e.month,1,12),s=eq(e.day,1,eX(e.year,e.month));return t?r?!s&&eE("day",e.day):eE("month",e.month):eE("year",e.year)}function eV(e){let{hour:t,minute:r,second:s,millisecond:n}=e,i=eq(t,0,23)||24===t&&0===r&&0===s&&0===n,a=eq(r,0,59),o=eq(s,0,59),l=eq(n,0,999);return i?a?o?!l&&eE("millisecond",n):eE("second",s):eE("minute",r):eE("hour",t)}function eR(e){return void 0===e}function ej(e){return"number"==typeof e}function eF(e){return"number"==typeof e&&e%1==0}function eW(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function eP(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function eZ(e,t,r){if(0!==e.length)return e.reduce((e,s)=>{let n=[t(s),s];return e&&r(e[0],n[0])===e[0]?e:n},null)[1]}function eU(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ez(e){if(null==e)return null;if("object"!=typeof e)throw new c("Week settings must be an object");if(!eq(e.firstDay,1,7)||!eq(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(e=>!eq(e,1,7)))throw new c("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function eq(e,t,r){return eF(e)&&e>=t&&e<=r}function eH(e,t=2){return e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function eY(e){if(!eR(e)&&null!==e&&""!==e)return parseInt(e,10)}function eG(e){if(!eR(e)&&null!==e&&""!==e)return parseFloat(e)}function eJ(e){if(!eR(e)&&null!==e&&""!==e)return Math.floor(1e3*parseFloat("0."+e))}function eB(e,t,r="round"){let s=10**t;switch(r){case"expand":return e>0?Math.ceil(e*s)/s:Math.floor(e*s)/s;case"trunc":return Math.trunc(e*s)/s;case"round":return Math.round(e*s)/s;case"floor":return Math.floor(e*s)/s;case"ceil":return Math.ceil(e*s)/s;default:throw RangeError(`Value rounding ${r} is out of range`)}}function eQ(e){return e%4==0&&(e%100!=0||e%400==0)}function eK(e){return eQ(e)?366:365}function eX(e,t){var r;let s=(r=t-1)-12*Math.floor(r/12)+1;return 2===s?eQ(e+(t-s)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][s-1]}function e0(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function e1(e,t,r){return-eD(eM(e,1,t),r)+t-1}function e2(e,t=4,r=1){let s=e1(e,t,r),n=e1(e+1,t,r);return(eK(e)-s+n)/7}function e3(e){return e>99?e:e>eT.twoDigitCutoffYear?1900+e:2e3+e}function e4(e,t,r,s=null){let n=new Date(e),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(i.timeZone=s);let a={timeZoneName:t,...i},o=new Intl.DateTimeFormat(r,a).formatToParts(n).find(e=>"timezonename"===e.type.toLowerCase());return o?o.value:null}function e6(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);
1let s=parseInt(t,10)||0,n=r<0||Object.is(r,-0)?-s:s;return 60*r+n}function e5(e){let t=Number(e);if("boolean"==typeof e||""===e||!Number.isFinite(t))throw new c(`Invalid unit value ${e}`);return t}function e7(e,t){let r={};for(let s in e)if(eU(e,s)){let n=e[s];if(null==n)continue;r[t(s)]=e5(n)}return r}function e8(e,t){let r=Math.trunc(Math.abs(e/60)),s=Math.trunc(Math.abs(e%60)),n=e>=0?"+":"-";switch(t){case"short":return`${n}${eH(r,2)}:${eH(s,2)}`;case"narrow":return`${n}${r}${s>0?`:${s}`:""}`;case"techie":return`${n}${eH(r,2)}${eH(s,2)}`;default:throw RangeError(`Value format ${t} is out of range for property format`)}}function e9(e){return["hour","minute","second","millisecond"].reduce((t,r)=>(t[r]=e[r],t),{})}let te=["January","February","March","April","May","June","July","August","September","October","November","December"],tt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tr=["J","F","M","A","M","J","J","A","S","O","N","D"];function ts(e){switch(e){case"narrow":return[...tr];case"short":return[...tt];case"long":return[...te];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}let tn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ti=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ta=["M","T","W","T","F","S","S"];function to(e){switch(e){case"narrow":return[...ta];case"short":return[...ti];case"long":return[...tn];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let tl=["AM","PM"],tu=["Before Christ","Anno Domini"],tc=["BC","AD"],th=["B","A"];function td(e){switch(e){case"narrow":return[...th];case"short":return[...tc];case"long":return[...tu];default:return null}}function tm(e,t){let r="";for(let s of e)s.literal?r+=s.val:r+=t(s.val);return r}let tf={D:y,DD:g,DDD:w,DDDD:v,t:k,tt:b,ttt:T,tttt:S,T:O,TT:N,TTT:E,TTTT:M,f:I,ff:x,fff:C,ffff:A,F:D,FF:$,FFF:_,FFFF:V};class ty{static create(e,t={}){return new ty(e,t)}static parseFormat(e){let t=null,r="",s=!1,n=[];for(let i=0;i<e.length;i++){let a=e.charAt(i);"'"===a?((r.length>0||s)&&n.push({literal:s||/^\s+$/.test(r),val:""===r?"'":r}),t=null,r="",s=!s):s||a===t?r+=a:(r.length>0&&n.push({literal:/^\s+$/.test(r),val:r}),r=a,t=a)}return r.length>0&&n.push({literal:s||/^\s+$/.test(r),val:r}),n}static macroTokenToFormatOpts(e){return tf[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,r){if(this.opts.forceSimple)return eH(e,t);let s={...this.opts};return t>0&&(s.padTo=t),r&&(s.signDisplay=r),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,t){let r="en"===this.loc.listingMode(),s=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,n=(t,r)=>this.loc.extract(e,t,r),i=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=(t,s)=>r?ts(t)[e.month-1]:n(s?{month:t}:{month:t,day:"numeric"},"month"),o=(t,s)=>r?to(t)[e.weekday-1]:n(s?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{let r=ty.macroTokenToFormatOpts(t);return r?this.formatWithSystemDefault(e,r):t},u=t=>r?td(t)[e.year<0?0:1]:n({era:t},"era"),c=t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return r?tl[e.hour<12?0:1]:n({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return s?n({day:"numeric"},"day"):this.num(e.day);case"dd":return s?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return s?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return s?n({month:"numeric"},"month"):this.num(e.month);case"MM":return s?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return s?n({year:"numeric"},"year"):this.num(e.year);case"yy":return s?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);
1case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}};return tm(ty.parseFormat(t),c)}formatDurationFromString(e,t){let r="negativeLargestOnly"===this.opts.signMode?-1:1,s=e=>{switch(e[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},n=(e,t)=>n=>{let i=s(n);if(!i)return n;{let s,a=t.isNegativeDuration&&i!==t.largestUnit?r:1;return s="negativeLargestOnly"===this.opts.signMode&&i!==t.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(e.get(i)*a,n.length,s)}},i=ty.parseFormat(t),a=i.reduce((e,{literal:t,val:r})=>t?e:e.concat(r),[]),o=e.shiftTo(...a.map(s).filter(e=>e)),l={isNegativeDuration:o<0,largestUnit:Object.keys(o.values)[0]};return tm(i,n(o,l))}}let tg=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function tp(...e){let t=e.reduce((e,t)=>e+t.source,"");return RegExp(`^${t}$`)}function tw(...e){return t=>e.reduce(([e,r,s],n)=>{let[i,a,o]=n(t,s);return[{...e,...i},a||r,o]},[{},null,1]).slice(0,2)}function tv(e,...t){if(null==e)return[null,null];for(let[r,s]of t){let t=r.exec(e);if(t)return s(t)}return[null,null]}function tk(...e){return(t,r)=>{let s,n={};for(s=0;s<e.length;s++)n[e[s]]=eY(t[r+s]);return[n,null,r+s]}}let tb=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,tT=`(?:${tb.source}?(?:\\[(${tg.source})\\])?)?`,tS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,tO=RegExp(`${tS.source}${tT}`),tN=RegExp(`(?:[Tt]${tO.source})?`),tE=tk("weekYear","weekNumber","weekDay"),tM=tk("year","ordinal"),tI=RegExp(`${tS.source} ?(?:${tb.source}|(${tg.source}))?`),tD=RegExp(`(?: ${tI.source})?`);function tx(e,t,r){let s=e[t];return eR(s)?r:eY(s)}function t$(e,t){return[{hours:tx(e,t,0),minutes:tx(e,t+1,0),seconds:tx(e,t+2,0),milliseconds:eJ(e[t+3])},null,t+4]}function tL(e,t){let r=!e[t]&&!e[t+1],s=e6(e[t+1],e[t+2]);return[{},r?null:ea.instance(s),t+3]}function tC(e,t){return[{},e[t]?U.create(e[t]):null,t+1]}let t_=RegExp(`^T?${tS.source}$`),tA=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function tV(e){let[t,r,s,n,i,a,o,l,u]=e,c="-"===t[0],h=l&&"-"===l[0],d=(e,t=!1)=>void 0!==e&&(t||e&&c)?-e:e;return[{years:d(eG(r)),months:d(eG(s)),weeks:d(eG(n)),days:d(eG(i)),hours:d(eG(a)),minutes:d(eG(o)),seconds:d(eG(l),"-0"===l),milliseconds:d(eJ(u),h)}]}let tR={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function tj(e,t,r,s,n,i,a){let o={year:2===t.length?e3(eY(t)):eY(t),month:tt.indexOf(r)+1,day:eY(s),hour:eY(n),minute:eY(i)};return a&&(o.second=eY(a)),e&&(o.weekday=e.length>3?tn.indexOf(e)+1:ti.indexOf(e)+1),o}let tF=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function tW(e){let[,t,r,s,n,i,a,o,l,u,c,h]=e;return[tj(t,n,s,r,i,a,o),new ea(l?tR[l]:u?0:e6(c,h))]}let tP=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,tZ=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,tU=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function tz(e){let[,t,r,s,n,i,a,o]=e;return[tj(t,n,s,r,i,a,o),ea.utcInstance]}function tq(e){let[,t,r,s,n,i,a,o]=e;return[tj(t,o,r,s,n,i,a),ea.utcInstance]}let tH=tp(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,tN),tY=tp(/(\d{4})-?W(\d\d)(?:-?(\d))?/,tN),tG=tp(/(\d{4})-?(\d{3})/,tN),tJ=tp(tO),tB=tw(function(e,t){return[{year:tx(e,t),month:tx(e,t+1,1),day:tx(e,t+2,1)},null,t+3]},t$,tL,tC),tQ=tw(tE,t$,tL,tC),tK=tw(tM,t$,tL,tC),tX=tw(t$,tL,tC),t0=tw(t$),t1=tp(/(\d{4})-(\d\d)-(\d\d)/,tD),t2=tp(tI),t3=tw(t$,tL,tC),t4="Invalid Duration",t6={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},t5={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...t6},t7={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:0x1e18558,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...t6},t8=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],t9=t8.slice(0).reverse();function re(e,t,r=!1){return new rn({values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix})}function rt(e,t){let r=t.milliseconds??0;for(let s of t9.slice(1))t[s]&&(r+=t[s]*e[s].milliseconds);return r}function rr(e,t){let r=0>rt(e,t)?-1:1;t8.reduceRight((s,n)=>{if(eR(t[n]))return s;if(s){let i=t[s]*r,a=e[n][s],o=Math.floor(i/a);t[n]+=o*r,t[s]-=o*a*r}return n},null),t8.reduce((r,s)=>{if(eR(t[s]))return r;if(r){let n=t[r]%1;t[r]-=n,t[s]+=n*e[r][s]}return s},null)}function rs(e){let t={};for(let[r,s]of Object.entries(e))0!==s&&(t[r]=s);return t}class rn{constructor(e){let t="longterm"===e.conversionAccuracy,r=t?t7:t5;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||en.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return rn.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new c(`Duration.fromObject: argument expected to be an object, got ${null===e?"null":typeof e}`);return new rn({values:e7(e,rn.normalizeUnit),loc:en.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(ej(e))return rn.fromMillis(e);if(rn.isDuration(e))return e;if("object"==typeof e)return rn.fromObject(e);throw new c(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[r]=tv(e,[tA,tV]);return r?rn.fromObject(r,t):rn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[r]=tv(e,[t_,t0]);return r?rn.fromObject(r,t):rn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}
1static invalid(e,t=null){if(!e)throw new c("need to specify a reason the Duration is invalid");let r=e instanceof eS?e:new eS(e,t);if(!eT.throwOnInvalid)return new rn({invalid:r});throw new o(r)}static normalizeUnit(e){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new u(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let r={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?ty.create(this.loc,r).formatDurationFromString(this,e):t4}toHuman(e={}){if(!this.isValid)return t4;let t=!1!==e.showZeros,r=t8.map(r=>{let s=this.values[r];return eR(s)||0===s&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(s)}).filter(e=>e);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=eB(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},rG.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?rt(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=rn.fromDurationLike(e),r={};for(let e of t8)(eU(t.values,e)||eU(this.values,e))&&(r[e]=t.get(e)+this.get(e));return re(this,{values:r},!0)}minus(e){if(!this.isValid)return this;let t=rn.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=e5(e(this.values[r],r));return re(this,{values:t},!0)}get(e){return this[rn.normalizeUnit(e)]}set(e){return this.isValid?re(this,{values:{...this.values,...e7(e,rn.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:s}={}){return re(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:s,conversionAccuracy:r})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return rr(this.matrix,e),re(this,{values:e},!0)}rescale(){return this.isValid?re(this,{values:rs(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){let t;if(!this.isValid||0===e.length)return this;e=e.map(e=>rn.normalizeUnit(e));let r={},s={},n=this.toObject();for(let i of t8)if(e.indexOf(i)>=0){t=i;let e=0;for(let t in s)e+=this.matrix[t][i]*s[t],s[t]=0;ej(n[i])&&(e+=n[i]);let a=Math.trunc(e);r[i]=a,s[i]=(1e3*e-1e3*a)/1e3}else ej(n[i])&&(s[i]=n[i]);for(let e in s)0!==s[e]&&(r[t]+=e===t?s[e]:s[e]/this.matrix[t][e]);return rr(this.matrix,r),re(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return re(this,{values:e},!0)}removeZeros(){return this.isValid?re(this,{values:rs(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;for(let s of t8){var t,r;if(t=this.values[s],r=e.values[s],void 0===t||0===t?void 0!==r&&0!==r:t!==r)return!1}return!0}}let ri="Invalid Interval";class ra{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}
1static invalid(e,t=null){if(!e)throw new c("need to specify a reason the Interval is invalid");let r=e instanceof eS?e:new eS(e,t);if(!eT.throwOnInvalid)return new ra({invalid:r});throw new a(r)}static fromDateTimes(e,t){var r,s;let n=rJ(e),i=rJ(t),a=(r=n,s=i,r&&r.isValid?s&&s.isValid?s<r?ra.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${s.toISO()}`):null:ra.invalid("missing or invalid end"):ra.invalid("missing or invalid start"));return null==a?new ra({start:n,end:i}):a}static after(e,t){let r=rn.fromDurationLike(t),s=rJ(e);return ra.fromDateTimes(s,s.plus(r))}static before(e,t){let r=rn.fromDurationLike(t),s=rJ(e);return ra.fromDateTimes(s.minus(r),s)}static fromISO(e,t){let[r,s]=(e||"").split("/",2);if(r&&s){let e,n,i,a;try{n=(e=rG.fromISO(r,t)).isValid}catch(e){n=!1}try{a=(i=rG.fromISO(s,t)).isValid}catch(e){a=!1}if(n&&a)return ra.fromDateTimes(e,i);if(n){let r=rn.fromISO(s,t);if(r.isValid)return ra.after(e,r)}else if(a){let e=rn.fromISO(r,t);if(e.isValid)return ra.before(i,e)}}return ra.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){let r;if(!this.isValid)return NaN;let s=this.start.startOf(e,t);return Math.floor((r=(r=t?.useLocaleWeeks?this.end.reconfigure({locale:s.locale}):this.end).startOf(e,t)).diff(s,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?ra.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(rJ).filter(e=>this.contains(e)).sort((e,t)=>e.toMillis()-t.toMillis()),r=[],{s}=this,n=0;for(;s<this.e;){let e=t[n]||this.e,i=+e>+this.e?this.e:e;r.push(ra.fromDateTimes(s,i)),s=i,n+=1}return r}splitBy(e){let t=rn.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let{s:r}=this,s=1,n,i=[];for(;r<this.e;){let e=this.start.plus(t.mapUnits(e=>e*s));n=+e>+this.e?this.e:e,i.push(ra.fromDateTimes(r,n)),r=n,s+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!!this.isValid&&!!e.isValid&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return t>=r?null:ra.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;let t=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return ra.fromDateTimes(t,r)}static merge(e){let[t,r]=e.sort((e,t)=>e.s-t.s).reduce(([e,t],r)=>t?t.overlaps(r)||t.abutsStart(r)?[e,t.union(r)]:[e.concat([t]),r]:[e,r],[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0,s=[],n=e.map(e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}]);for(let e of Array.prototype.concat(...n).sort((e,t)=>e.time-t.time))1===(r+="s"===e.type?1:-1)?t=e.time:(t&&+t!=+e.time&&s.push(ra.fromDateTimes(t,e.time)),t=null);return ra.merge(s)}difference(...e){return ra.xor([this].concat(e)).map(e=>this.intersection(e)).filter(e=>e&&!e.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} â ${this.e.toISO()})`:ri}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}
1toLocaleString(e=y,t={}){return this.isValid?ty.create(this.s.loc.clone(t),e).formatInterval(this):ri}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ri}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ri}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ri}toFormat(e,{separator:t=" â "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:ri}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):rn.invalid(this.invalidReason)}mapEndpoints(e){return ra.fromDateTimes(e(this.s),e(this.e))}}class ro{static hasDST(e=eT.defaultZone){let t=rG.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return U.isValidZone(e)}static normalizeZone(e){return el(e,eT.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||en.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||en.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||en.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:s=null,outputCalendar:n="gregory"}={}){return(s||en.create(t,r,n)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:s=null,outputCalendar:n="gregory"}={}){return(s||en.create(t,r,n)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:s=null}={}){return(s||en.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:s=null}={}){return(s||en.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return en.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return en.create(t,null,"gregory").eras(e)}static features(){return{relative:eW(),localeWeek:eP()}}}function rl(e,t){let r=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=r(t)-r(e);return Math.floor(rn.fromMillis(s).as("days"))}function ru(e,t=e=>e){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(!isNaN(t))return t;t="";for(let r=0;r<e.length;r++){let s=e.charCodeAt(r);if(-1!==e[r].search(eu.hanidec))t+=eh.indexOf(e[r]);else for(let e in ec){let[r,n]=ec[e];s>=r&&s<=n&&(t+=s-r)}}return parseInt(t,10)}(e))}}let rc=String.fromCharCode(160),rh=`[ ${rc}]`,rd=RegExp(rh,"g");function rm(e){return e.replace(/\./g,"\\.?").replace(rd,rh)}function rf(e){return e.replace(/\./g,"").replace(rd," ").toLowerCase()}function ry(e,t){return null===e?null:{regex:RegExp(e.map(rm).join("|")),deser:([r])=>e.findIndex(e=>rf(r)===rf(e))+t}}function rg(e,t){return{regex:e,deser:([,e,t])=>e6(e,t),groups:t}}function rp(e){return{regex:e,deser:([e])=>e}}
1let rw={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},rv=null;function rk(e,t){return Array.prototype.concat(...e.map(e=>(function(e,t){if(e.literal)return e;let r=rS(ty.macroTokenToFormatOpts(e.val),t);return null==r||r.includes(void 0)?e:r})(e,t)))}class rb{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=rk(ty.parseFormat(t),e),this.units=this.tokens.map(t=>(function(e,t){let r=em(t),s=em(t,"{2}"),n=em(t,"{3}"),i=em(t,"{4}"),a=em(t,"{6}"),o=em(t,"{1,2}"),l=em(t,"{1,3}"),u=em(t,"{1,6}"),c=em(t,"{1,9}"),h=em(t,"{2,4}"),d=em(t,"{4,6}"),m=e=>({regex:RegExp(e.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:([e])=>e,literal:!0}),f=(f=>{if(e.literal)return m(f);switch(f.val){case"G":return ry(t.eras("short"),0);case"GG":return ry(t.eras("long"),0);case"y":return ru(u);case"yy":case"kk":return ru(h,e3);case"yyyy":case"kkkk":return ru(i);case"yyyyy":return ru(d);case"yyyyyy":return ru(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return ru(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return ru(s);case"MMM":return ry(t.months("short",!0),1);case"MMMM":return ry(t.months("long",!0),1);case"LLL":return ry(t.months("short",!1),1);case"LLLL":return ry(t.months("long",!1),1);case"o":case"S":return ru(l);case"ooo":case"SSS":return ru(n);case"u":return rp(c);case"uu":return rp(o);case"uuu":case"E":case"c":return ru(r);case"a":return ry(t.meridiems(),0);case"EEE":return ry(t.weekdays("short",!1),1);case"EEEE":return ry(t.weekdays("long",!1),1);case"ccc":return ry(t.weekdays("short",!0),1);case"cccc":return ry(t.weekdays("long",!0),1);case"Z":case"ZZ":return rg(RegExp(`([+-]${o.source})(?::(${s.source}))?`),2);case"ZZZ":return rg(RegExp(`([+-]${o.source})(${s.source})?`),2);case"z":return rp(/[a-z_+-/]{1,256}?/i);case" ":return rp(/[^\S\n\r]/);default:return m(f)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=e,f})(t,e)),this.disqualifyingUnit=this.units.find(e=>e.invalidReason),!this.disqualifyingUnit){let[e,t]=function(e){let t=e.map(e=>e.regex).reduce((e,t)=>`${e}(${t.source})`,"");return[`^${t}$`,e]}(this.units);this.regex=RegExp(e,"i"),this.handlers=t}}explainFromTokens(e){if(!this.isValid)return{input:e,tokens:this.tokens,invalidReason:this.invalidReason};{let t,r,[s,n]=function(e,t,r){let s=e.match(t);if(!s)return[s,{}];{let e={},t=1;for(let n in r)if(eU(r,n)){let i=r[n],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(e[i.token.val[0]]=i.deser(s.slice(t,t+a))),t+=a}return[s,e]}}(e,this.regex,this.handlers),[i,a,o]=n?(r=null,eR(n.z)||(r=U.create(n.z)),eR(n.Z)||(r||(r=new ea(n.Z)),t=n.Z),eR(n.q)||(n.M=(n.q-1)*3+1),eR(n.h)||(n.h<12&&1===n.a?n.h+=12:12===n.h&&0===n.a&&(n.h=0)),0===n.G&&n.y&&(n.y=-n.y),eR(n.u)||(n.S=eJ(n.u)),[Object.keys(n).reduce((e,t)=>{let r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(t);return r&&(e[r]=n[t]),e},{}),r,t]):[null,null,void 0];if(eU(n,"a")&&eU(n,"H"))throw new l("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:s,matches:n,result:i,zone:a,specificOffset:o}}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invali
1dReason:null}}function rT(e,t,r){return new rb(e,r).explainFromTokens(t)}function rS(e,t){if(!e)return null;let r=ty.create(t,e).dtFormatter((rv||(rv=rG.fromMillis(0x16a2e5618e3)),rv)),s=r.formatToParts(),n=r.resolvedOptions();return s.map(t=>(function(e,t,r){let{type:s,value:n}=e;if("literal"===s){let e=/^\s+$/.test(n);return{literal:!e,val:e?" ":n}}let i=t[s],a=s;"hour"===s&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":r.hour12?"hour12":"hour24");let o=rw[a];if("object"==typeof o&&(o=o[i]),o)return{literal:!1,val:o}})(t,e,n))}let rO="Invalid DateTime";function rN(e){return new eS("unsupported zone",`the zone "${e.name}" is not supported`)}function rE(e){return null===e.weekData&&(e.weekData=ex(e.c)),e.weekData}function rM(e){return null===e.localWeekData&&(e.localWeekData=ex(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function rI(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new rG({...r,...t,old:r})}function rD(e,t,r){let s=e-60*t*1e3,n=r.offset(s);if(t===n)return[s,t];s-=(n-t)*6e4;let i=r.offset(s);return n===i?[s,n]:[e-60*Math.min(n,i)*1e3,Math.max(n,i)]}function rx(e,t){let r=new Date(e+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function r$(e,t){let r=e.o,s=e.c.year+Math.trunc(t.years),n=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),i={...e.c,year:s,month:n,day:Math.min(e.c.day,eX(s,n))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=rn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),[o,l]=rD(e0(i),r,e.zone);return 0!==a&&(o+=a,l=e.zone.offset(o)),{ts:o,o:l}}function rL(e,t,r,s,n,i){let{setZone:a,zone:o}=r;if((!e||0===Object.keys(e).length)&&!t)return rG.invalid(new eS("unparsable",`the input "${n}" can't be parsed as ${s}`));{let s=rG.fromObject(e,{...r,zone:t||o,specificOffset:i});return a?s:s.setZone(o)}}function rC(e,t,r=!0){return e.isValid?ty.create(en.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function r_(e,t,r){let s=e.c.year>9999||e.c.year<0,n="";if(s&&e.c.year>=0&&(n+="+"),n+=eH(e.c.year,s?6:4),"year"===r)return n;if(t){if(n+="-",n+=eH(e.c.month),"month"===r)return n;n+="-"}else if(n+=eH(e.c.month),"month"===r)return n;return n+eH(e.c.day)}function rA(e,t,r,s,n,i,a){let o=!r||0!==e.c.millisecond||0!==e.c.second,l="";switch(a){case"day":case"month":case"year":break;default:if(l+=eH(e.c.hour),"hour"===a)break;if(t){if(l+=":",l+=eH(e.c.minute),"minute"===a)break;o&&(l+=":",l+=eH(e.c.second))}else{if(l+=eH(e.c.minute),"minute"===a)break;o&&(l+=eH(e.c.second))}if("second"===a)break;
1o&&(!s||0!==e.c.millisecond)&&(l+=".",l+=eH(e.c.millisecond,3))}return n&&(e.isOffsetFixed&&0===e.offset&&!i?l+="Z":e.o<0?(l+="-",l+=eH(Math.trunc(-e.o/60)),l+=":",l+=eH(Math.trunc(-e.o%60))):(l+="+",l+=eH(Math.trunc(e.o/60)),l+=":",l+=eH(Math.trunc(e.o%60)))),i&&(l+="["+e.zone.ianaName+"]"),l}let rV={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},rR={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},rj={ordinal:1,hour:0,minute:0,second:0,millisecond:0},rF=["year","month","day","hour","minute","second","millisecond"],rW=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rP=["year","ordinal","hour","minute","second","millisecond"];function rZ(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new u(e);return t}function rU(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return rZ(e)}}function rz(e,t){let r,n,i=el(t.zone,eT.defaultZone);if(!i.isValid)return rG.invalid(rN(i));let a=en.fromObject(t);if(eR(e.year))r=eT.now();else{for(let t of rF)eR(e[t])&&(e[t]=rV[t]);let t=eA(e)||eV(e);if(t)return rG.invalid(t);let a=function(e){if(void 0===s&&(s=eT.now()),"iana"!==e.type)return e.offset(s);let t=e.name,r=rY.get(t);return void 0===r&&(r=e.offset(s),rY.set(t,r)),r}(i);[r,n]=rD(e0(e),a,i)}return new rG({ts:r,zone:i,loc:a,o:n})}function rq(e,t,r){let s=!!eR(r.round)||r.round,n=eR(r.rounding)?"trunc":r.rounding,i=(e,i)=>(e=eB(e,s||r.calendary?0:2,r.calendary?"round":n),t.loc.clone(r).relFormatter(r).format(e,i)),a=s=>r.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(r.unit)return i(a(r.unit),r.unit);for(let e of r.units){let t=a(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,r.units[r.units.length-1])}function rH(e){let t={},r;return e.length>0&&"object"==typeof e[e.length-1]?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}let rY=new Map;class rG{constructor(e){let t=e.zone||eT.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new eS("invalid input"):null)||(t.isValid?null:rN(t));this.ts=eR(e.ts)?eT.now():e.ts;let s=null,n=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[s,n]=[e.old.c,e.old.o];else{let i=ej(e.o)&&!e.old?e.o:t.offset(this.ts);s=(r=Number.isNaN((s=rx(this.ts,i)).year)?new eS("invalid input"):null)?null:s,n=r?null:i}this._zone=t,this.loc=e.loc||en.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=s,this.o=n,this.isLuxonDateTime=!0}static now(){return new rG({})}static local(){let[e,t]=rH(arguments),[r,s,n,i,a,o,l]=t;return rz({year:r,month:s,day:n,hour:i,minute:a,second:o,millisecond:l},e)}static utc(){let[e,t]=rH(arguments),[r,s,n,i,a,o,l]=t;return e.zone=ea.utcInstance,rz({year:r,month:s,day:n,hour:i,minute:a,second:o,millisecond:l},e)}static fromJSDate(e,t={}){let r="[object Date]"===Object.prototype.toString.call(e)?e.valueOf():NaN;if(Number.isNaN(r))return rG.invalid("invalid input");let s=el(t.zone,eT.defaultZone);return s.isValid?new rG({ts:r,zone:s,loc:en.fromObject(t)}):rG.invalid(rN(s))}static fromMillis(e,t={}){if(ej(e))if(e<-864e13||e>864e13)return rG.invalid("Timestamp out of range");else return new rG({ts:e,zone:el(t.zone,eT.defaultZone),loc:en.fromObject(t)});throw new c(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(ej(e))return new rG({ts:1e3*e,zone:el(t.zone,eT.defaultZone),loc:en.fromObject(t)});throw new c("fromSeconds requires a numerical input")}static fromObject(e,t={}){var r;e=e||{};let s=el(t.zone,eT.defaultZone);if(!s.isValid)return rG.invalid(rN(s));let n=en.fromObject(t),i=e7(e,rU),{minDaysInFirstWeek:a,startOfWeek:o}=e_(i,n),u=eT.now(),c=eR(t.specificOffset)?s.offset(u):t.specificOffset,h=!eR(i.ordinal),d=!eR(i.year),m=!eR(i.month)||!eR(i.day),f=d||m,y=i.weekYear||i.weekNumber;if((f||h)&&y)throw new l("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(m&&h)throw new l("Can't mix ordinal dates with month/day");let g=y||i.weekday&&!f,p,w,v=rx(u,c);g?(p=rW,w=rR,v=ex(v,a,o)):h?(p=rP,w=rj,v=eL(v)):(p=rF,w=rV);let k=!1;for(let e of p)eR(i[e])?k?i[e]=w[e]:i[e]=v[e]:k=!0;let b=(g?function(e,t=4,r=1){let s=eF(e.weekYear),n=eq(e.weekNumber,1,e2(e.weekYear,t,r)),i=eq(e.weekday,1,7);return s?n?!i&&eE("weekday",e.weekday):eE("week",e.weekNumber):eE("weekYear",e.weekYear)}
1(i,a,o):h?function(e){let t=eF(e.year),r=eq(e.ordinal,1,eK(e.year));return t?!r&&eE("ordinal",e.ordinal):eE("year",e.year)}(i):eA(i))||eV(i);if(b)return rG.invalid(b);let[T,S]=(r=g?e$(i,a,o):h?eC(i):i,rD(e0(r),c,s)),O=new rG({ts:T,zone:s,o:S,loc:n});return i.weekday&&f&&e.weekday!==O.weekday?rG.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${O.toISO()}`):O.isValid?O:rG.invalid(O.invalid)}static fromISO(e,t={}){let[r,s]=tv(e,[tH,tB],[tY,tQ],[tG,tK],[tJ,tX]);return rL(r,s,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[r,s]=tv(e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[tF,tW]);return rL(r,s,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[r,s]=tv(e,[tP,tz],[tZ,tz],[tU,tq]);return rL(r,s,t,"HTTP",t)}static fromFormat(e,t,r={}){if(eR(e)||eR(t))throw new c("fromFormat requires an input string and a format");let{locale:s=null,numberingSystem:n=null}=r,[i,a,o,l]=function(e,t,r){let{result:s,zone:n,specificOffset:i,invalidReason:a}=rT(e,t,r);return[s,n,i,a]}(en.fromOpts({locale:s,numberingSystem:n,defaultToEN:!0}),e,t);return l?rG.invalid(l):rL(i,a,r,`format ${t}`,e,o)}static fromString(e,t,r={}){return rG.fromFormat(e,t,r)}static fromSQL(e,t={}){let[r,s]=tv(e,[t1,tB],[t2,t3]);return rL(r,s,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new c("need to specify a reason the DateTime is invalid");let r=e instanceof eS?e:new eS(e,t);if(!eT.throwOnInvalid)return new rG({invalid:r});throw new i(r)}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let r=rS(e,en.fromObject(t));return r?r.map(e=>e?e.val:null).join(""):null}static expandFormat(e,t={}){return rk(ty.parseFormat(e),en.fromObject(t)).map(e=>e.val).join("")}static resetCache(){s=void 0,rY.clear()}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}
1get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?rE(this).weekYear:NaN}get weekNumber(){return this.isValid?rE(this).weekNumber:NaN}get weekday(){return this.isValid?rE(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?rM(this).weekday:NaN}get localWeekNumber(){return this.isValid?rM(this).weekNumber:NaN}get localWeekYear(){return this.isValid?rM(this).weekYear:NaN}get ordinal(){return this.isValid?eL(this.c).ordinal:NaN}get monthShort(){return this.isValid?ro.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ro.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ro.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ro.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=e0(this.c),t=this.zone.offset(e-864e5),r=this.zone.offset(e+864e5),s=this.zone.offset(e-6e4*t),n=this.zone.offset(e-6e4*r);if(s===n)return[this];let i=e-6e4*s,a=e-6e4*n,o=rx(i,s),l=rx(a,n);return o.hour===l.hour&&o.minute===l.minute&&o.second===l.second&&o.millisecond===l.millisecond?[rI(this,{ts:i}),rI(this,{ts:a})]:[this]}get isInLeapYear(){return eQ(this.year)}get daysInMonth(){return eX(this.year,this.month)}get daysInYear(){return this.isValid?eK(this.year):NaN}get weeksInWeekYear(){return this.isValid?e2(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?e2(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:r,calendar:s}=ty.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:s}}toUTC(e=0,t={}){return this.setZone(ea.instance(e),t)}toLocal(){return this.setZone(eT.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if((e=el(e,eT.defaultZone)).equals(this.zone))return this;{if(!e.isValid)return rG.invalid(rN(e));let n=this.ts;if(t||r){var s;let t=e.offset(this.ts),r=this.toObject();[n]=(s=e,rD(e0(r),t,s))}return rI(this,{ts:n,zone:e})}}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){return rI(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r})})}setLocale(e){return this.reconfigure({locale:e})}set(e){var t,r,s;let n;if(!this.isValid)return this;let i=e7(e,rU),{minDaysInFirstWeek:a,startOfWeek:o}=e_(i,this.loc),u=!eR(i.weekYear)||!eR(i.weekNumber)||!eR(i.weekday),c=!eR(i.ordinal),h=!eR(i.year),d=!eR(i.month)||!eR(i.day),m=i.weekYear||i.weekNumber;if((h||d||c)&&m)throw new l("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&c)throw new l("Can't mix ordinal dates with month/day");u?n=e$({...ex(this.c,a,o),...i},a,o):eR(i.ordinal)?(n={...this.toObject(),...i},eR(i.day)&&(n.day=Math.min(eX(n.year,n.month),n.day))):n=eC({...eL(this.c),...i});let[f,y]=(t=n,r=this.o,s=this.zone,rD(e0(t),r,s));return rI(this,{ts:f,o:y})}plus(e){return this.isValid?rI(this,r$(this,rn.fromDurationLike(e))):this}minus(e){return this.isValid?rI(this,r$(this,rn.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let r={},s=rn.normalizeUnit(e);switch(s){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0}if("weeks"===s)if(t){let e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(r.weekNumber=this.weekNumber-1),r.weekday=e}else r.weekday=1;return"quarters"===s&&(r.month=(Math.ceil(this.month/3)-1)*3+1),this.set(r)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?ty.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):rO}
1toLocaleString(e=y,t={}){return this.isValid?ty.create(this.loc.clone(t),e).formatDateTime(this):rO}toLocaleParts(e={}){return this.isValid?ty.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:s=!0,extendedZone:n=!1,precision:i="milliseconds"}={}){if(!this.isValid)return null;i=rZ(i);let a="extended"===e,o=r_(this,a,i);return rF.indexOf(i)>=3&&(o+="T"),o+=rA(this,a,t,r,s,n,i)}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?r_(this,"extended"===e,rZ(t)):null}toISOWeekDate(){return rC(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:s=!1,extendedZone:n=!1,format:i="extended",precision:a="milliseconds"}={}){return this.isValid?(a=rZ(a),(s&&rF.indexOf(a)>=3?"T":"")+rA(this,"extended"===i,t,e,r,n,a)):null}toRFC2822(){return rC(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return rC(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?r_(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(t||e)&&(r&&(s+=" "),t?s+="z":e&&(s+="ZZ")),rC(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():rO}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",r={}){if(!this.isValid||!e.isValid)return rn.invalid("created by diffing an invalid DateTime");let s={locale:this.locale,numberingSystem:this.numberingSystem,...r},n=(Array.isArray(t)?t:[t]).map(rn.normalizeUnit),i=e.valueOf()>this.valueOf(),a=function(e,t,r,s){let[n,i,a,o]=function(e,t,r){let s,n,i={},a=e;for(let[o,l]of[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+(t.year-e.year)*4],["months",(e,t)=>t.month-e.month+(t.year-e.year)*12],["weeks",(e,t)=>{let r=rl(e,t);return(r-r%7)/7}],["days",rl]])r.indexOf(o)>=0&&(s=o,i[o]=l(e,t),(n=a.plus(i))>t?(i[o]--,(e=a.plus(i))>t&&(n=e,i[o]--,e=a.plus(i))):e=n);return[e,i,n,s]}(e,t,r),l=t-n,u=r.filter(e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0);0===u.length&&(a<t&&(a=n.plus({[o]:1})),a!==n&&(i[o]=(i[o]||0)+l/(a-n)));let c=rn.fromObject(i,s);return u.length>0?rn.fromMillis(l,s).shiftTo(...u).plus(c):c}(i?this:e,i?e:this,n,s);return i?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(rG.now(),e,t)}until(e){return this.isValid?ra.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return!1;let s=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(t,r)<=s&&s<=n.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||rG.fromObject({},{zone:this.zone}),r=e.padding?this<t?-e.padding:e.padding:0,s=["years","months","days","hours","minutes","seconds"],n=e.unit;return Array.isArray(e.unit)&&(s=e.unit,n=void 0),rq(t,this.plus(r),{...e,numeric:"always",units:s,unit:n})}toRelativeCalendar(e={}){return this.isValid?rq(e.base||rG.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(rG.isDateTime))throw new c("min requires all arguments be DateTimes");return eZ(e,e=>e.valueOf(),Math.min)}static max(...e){if(!e.every(rG.isDateTime))throw new c("max requires all arguments be DateTimes");return eZ(e,e=>e.valueOf(),Math.max)}static fromFormatExplain(e,t,r={}){let{locale:s=null,numberingSystem:n=null}=r;return rT(en.fromOpts({locale:s,numberingSystem:n,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,r={}){return rG.fromFormatExplain(e,t,r)}static buildFormatParser(e,t={}){let{locale:r=null,numberingSystem:s=null}=t;return new rb(en.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),e)}static fromFormatParser(e,t,r={}){if(eR(e)||eR(t))throw new c("fromFormatParser requires an input string and a format parser");let{locale:s=null,numberingSystem:n=null}=r,i=en.fromOpts({locale:s,numberingSystem:n,defaultToEN:!0});if(!i.equals(t.locale))throw new c(`fromFormatParser called with a locale of ${i}, but the format parser was created for ${t.locale}`);let{result:a,zone:o,specificOffset:l,invalidReason:u}=t.explainFromTokens(e);return u?rG.invalid(u):rL(a,o,r,`format ${t.format}`,e,l)}static get DATE_SHORT(){return y}static get DATE_MED(){return g}static get DATE_MED_WITH_WEEKDAY(){return p}static get DATE_FULL(){return w}static get DATE_HUGE(){return v}static get TIME_SIMPLE(){return k}static get TIME_WITH_SECONDS(){return b}static get TIME_WITH_SHORT_OFFSET(){return T}static get TIME_WITH_LONG_OFFSET(){return S}static get TIME_24_SIMPLE(){return O}static get TIME_24_WITH_SECONDS(){return N}static get TIME_24_WITH_SHORT_OFFSET(){return E}static get TIME_24_WITH_LONG_OFFSET(){return M}static get DATETIME_SHORT(){return I}static get DATETIME_SHORT_WITH_SECONDS(){return D}static get DATETIME_MED(){return x}static get DATETIME_MED_WITH_SECONDS(){return $}static get DATETIME_MED_WITH_WEEKDAY(){return L}static get DATETIME_FULL(){return C}static get DATETIME_FULL_WITH_SECONDS(){return _}static get DATETIME_HUGE(){return A}static get DATETIME_HUGE_WITH_SECONDS(){return V}}function rJ(e){if(rG.isDateTime(e))return e;if(e&&e.valueOf&&ej(e.valueOf()))return rG.fromJSDate(e);if(e&&"object"==typeof e)return rG.fromObject(e);throw new c(`Unknown datetime argument: ${e}, of type ${typeof e}`)}},6278:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let s=r(8140)._(r(1150));function n(e,t){var r;let n={};"function"==typeof e&&(n.loader=e);let i={...n,...t};return(0,s.default)({...i,modules:null==(r=i.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6552:(e,t,r)=>{function s(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return s}}),r(5155),r(7650),r(8567),r(7278)},7828:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return s}});let s=(0,r(4054).createAsyncLocalStorage)()},7909:(e,t,r)=>{r.d(t,{default:()=>n.a});var s=r(6278),n=r.n(s)},8567:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return s.workAsyncStorageInstance}});let s=r(7828)},9547:(e,t,r)=>{r.d(t,{YB:()=>C,K1:()=>_,YV:()=>W,kY:()=>U});var s=r(2115),n=Object.defineProperty,i=(e,t,r)=>((e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);let a=function(e){return e.DOCUMENT="doc",e.HEADING="heading",e.PARAGRAPH="paragraph",e.QUOTE="blockquote",e.OL_LIST="ordered_list",e.UL_LIST="bullet_list",e.LIST_ITEM="list_item",e.CODE_BLOCK="code_block",e.HR="horizontal_rule",e.BR="hard_break",e.IMAGE="image",e.EMOJI="emoji",e.COMPONENT="blok",e.TABLE="table",e.TABLE_ROW="tableRow",e.TABLE_CELL="tableCell",e.TABLE_HEADER="tableHeader",e}({}),o=function(e){return e.BOLD="bold",e.STRONG="strong",e.STRIKE="strike",e.UNDERLINE="underline",e.ITALIC="italic",e.CODE="code",e.LINK="link",e.ANCHOR="anchor",e.STYLED="styled",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.TEXT_STYLE="textStyle",e.HIGHLIGHT="highlight",e}({}),l=function(e){return e.TEXT="text",e}({}),u=function(e){return e.URL="url",e.STORY="story",e.ASSET="asset",e.EMAIL="email",e}({}),c=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function h(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}let d=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>void 0!==t));function m(e,t={},r){let s=((e={})=>{let{custom:t,...r}=e,s={...r,...t};return Object.keys(s).map(e=>`${e}="${s[e]}"`).join(" ")})(t),n=s?`${e} ${s}`:e,i=Array.isArray(r)?r.join(""):r||"";return e?c.includes(e)?`<${n}>`:`<${n}>${i}</${e}>`:i}let f=!1,y=[],g=(e="")=>e.includes("/cdn/"),p=async(e,t)=>Promise.all(e.map(t)),w=(e,t,r)=>{let s=[];for(let n in e){let i;if(!Object.prototype.hasOwnProperty.call(e,n))continue;let a=e[n];if(null==a)continue;let o=r?"":encodeURIComponent(n);i="object"==typeof a?w(a,t?t+encodeURIComponent(`[${o}]`):o,Array.isArray(a)):`${t?t+encodeURIComponent(`[${o}]`):o}=${encodeURIComponent(a)}`,s.push(i)}return s.join("&")},v=e=>{let t={eu:"api.storyblok.com",us:"api-us.storyblok.com",cn:"app.storyblokchina.cn",ap:"api-ap.storyblok.com",ca:"api-ca.storyblok.com"};return t[e]??t.eu};var k=class{constructor(e){i(this,"baseURL"),i(this,"timeout"),i(this,"headers"),i(this,"responseInterceptor"),i(this,"fetch"),i(this,"ejectInterceptor"),i(this,"url"),i(this,"parameters"),i(this,"fetchOptions"),this.baseURL=e.baseURL,this.headers=e.headers||new Headers,this.timeout=null!=e&&e.timeout?1e3*e.timeout:0,this.responseInterceptor=e.responseInterceptor,this.fetch=(...t)=>e.fetch?e.fetch(...t):fetch(...t),this.ejectInterceptor=!1,this.url="",this.parameters={},this.fetchOptions={}}get(e,t){return this.url=e,this.parameters=t,this._methodHandler("get")}post(e,t){return this.url=e,this.parameters=t,this._methodHandler("post")}put(e,t){return this.url=e,this.parameters=t,this._methodHandler("put")}delete(e,t){return this.url=e,this.parameters=t??{},this._methodHandler("delete")}async _responseHandler(e){let t=[],r={data:{},headers:{},status:0,statusText:""};for(let s of(204!==e.status&&await e.json().then(e=>{r.data=e}),e.headers.entries()))t[s[0]]=s[1];return r.headers={...t},r.status=e.status,r.statusText=e.statusText,r}async _methodHandler(e){let t=`${this.baseURL}
1${this.url}`,r=null;"get"===e?t=`${this.baseURL}${this.url}?${w(this.parameters)}`:r=JSON.stringify(this.parameters);let s=new URL(t),n=new AbortController,{signal:i}=n,a=null;this.timeout&&(a=setTimeout(()=>n.abort(),this.timeout));try{let t=await this.fetch(`${s}`,{method:e,headers:this.headers,body:r,signal:i,...this.fetchOptions});this.timeout&&a&&clearTimeout(a);let n=await this._responseHandler(t);return this.responseInterceptor&&!this.ejectInterceptor?this._statusHandler(this.responseInterceptor(n)):this._statusHandler(n)}catch(e){return{message:e}}}setFetchOptions(e={}){Object.keys(e).length>0&&"method"in e&&delete e.method,this.fetchOptions={...e}}eject(){this.ejectInterceptor=!0}_normalizeErrorMessage(e){if(Array.isArray(e))return e[0]||"Unknown error";if(e&&"object"==typeof e){if(e.error)return e.error;for(let t in e){if(Array.isArray(e[t]))return`${t}: ${e[t][0]}`;if("string"==typeof e[t])return`${t}: ${e[t]}`}if(e.slug)return e.slug}return"Unknown error"}_statusHandler(e){let t=/20[0-6]/g;return new Promise((r,s)=>{if(t.test(`${e.status}`))return r(e);s({message:this._normalizeErrorMessage(e.data),status:e.status,response:e})})}};let b="SB-Agent",T={defaultAgentName:"SB-JS-CLIENT",defaultAgentVersion:"SB-Agent-Version",packageVersion:"7.0.0"},S={DRAFT:"draft",PUBLISHED:"published"},O={SMALL:25,MEDIUM:50,LARGE:75},N={SINGLE_OR_SMALL:50,MEDIUM:15,LARGE:10,VERY_LARGE:6};function E(e,t,r={},s){var n;return void 0!==r.userRateLimit?Math.min(r.userRateLimit,1e3):void 0!==r.serverHeadersRateLimit?Math.min(r.serverHeadersRateLimit,1e3):void 0!==s?s:t&&t.version!==S.DRAFT?1e3:function(e,t){let r=e.includes("/cdn/stories/"),s=e.split("/").length>3&&!e.endsWith("/cdn/stories");return r&&s||"find_by"in t}(e,t)?N.SINGLE_OR_SMALL:(n=t.per_page||25)<=O.SMALL?N.SINGLE_OR_SMALL:n<=O.MEDIUM?N.MEDIUM:n<=O.LARGE?N.LARGE:N.VERY_LARGE}var M=class extends Error{constructor(e){super(e),this.name="AbortError"}},I=function(e,t,r){if(!Number.isFinite(t))throw TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(r))throw TypeError("Expected `interval` to be a finite number");let s=[],n=[],i=0,a=!1,o=async()=>{i++;let t=s.shift();if(t)try{let r=await e(...t.args);t.resolve(r)}catch(e){t.reject(e)}let a=setTimeout(()=>{i--,s.length>0&&o(),n=n.filter(e=>e!==a)},r);n.includes(a)||n.push(a)},l=(...e)=>a?Promise.reject(Error("Throttled function is already aborted and not accepting new promises")):new Promise((r,n)=>{s.push({resolve:r,reject:n,args:e}),i<t&&o()});return l.abort=()=>{a=!0,n.forEach(clearTimeout),n=[],s.forEach(e=>e.reject(()=>new M("Throttle function aborted"))),s.length=0},l},D=class{constructor(e,t=1e3){i(this,"queues"),i(this,"interval"),i(this,"throttledRequestFn"),this.queues=new Map,this.interval=t,this.throttledRequestFn=e}getQueue(e){let t=this.queues.get(e);return t||(t=I(this.throttledRequestFn,e,this.interval),this.queues.set(e,t)),t}execute(e,...t){return this.getQueue(e)(...t)}
1abortAll(){this.queues.forEach(e=>{var t;null==(t=e.abort)||t.call(e)}),this.queues.clear()}getQueueCount(){return this.queues.size}};let x={},$={};var L=class{constructor(e,t){i(this,"client"),i(this,"maxRetries"),i(this,"retriesDelay"),i(this,"throttleManager"),i(this,"accessToken"),i(this,"cache"),i(this,"resolveCounter"),i(this,"relations"),i(this,"links"),i(this,"version"),i(this,"rateLimitConfig"),i(this,"richTextResolver"),i(this,"resolveNestedRelations"),i(this,"stringifiedStoriesCache"),i(this,"inlineAssets");let r=e.endpoint||t;if(!r){let t=!1===e.https?"http":"https";r=e.oauthToken?`${t}://${v(e.region)}/v1`:`${t}://${v(e.region)}/v2`}let s=new Headers;s.set("Content-Type","application/json"),s.set("Accept","application/json"),e.headers&&("Headers"===e.headers.constructor.name?e.headers.entries().toArray():Object.entries(e.headers)).forEach(([e,t])=>{s.set(e,t)}),s.has(b)||(s.set(b,T.defaultAgentName),s.set(T.defaultAgentVersion,T.packageVersion)),e.oauthToken&&s.set("Authorization",e.oauthToken),this.rateLimitConfig=function(e,t=!1){return{userRateLimit:e,serverHeadersRateLimit:void 0,isManagementApi:t}}(e.rateLimit,!!e.oauthToken),this.maxRetries=e.maxRetries||10,this.retriesDelay=300,this.throttleManager=new D(this.throttledRequest.bind(this),1e3),this.accessToken=e.accessToken||"",this.relations={},this.links={},this.cache=e.cache||{clear:"manual"},this.resolveCounter=0,this.resolveNestedRelations=e.resolveNestedRelations||!0,this.stringifiedStoriesCache={},this.version=e.version||S.PUBLISHED,this.inlineAssets=e.inlineAssets||!1,this.client=new k({baseURL:r,timeout:e.timeout||0,headers:s,responseInterceptor:e.responseInterceptor,fetch:e.fetch})}parseParams(e){return e.token||(e.token=this.getToken()),e.cv||(e.cv=$[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),"u">typeof e.resolve_relations&&(e.resolve_level=2),e}factoryParamOptions(e,t){return g(e)?this.parseParams(t):t}
1makeRequest(e,t,r,s,n){let i=this.factoryParamOptions(e,((e,t=25,r=1)=>({...e,per_page:t,page:r}))(t,r,s));return this.cacheResponse(e,i,void 0,n)}get(e,t={},r){t||(t={});let s=`/${e}`;g(s)&&(t.version=t.version||this.version);let n=this.factoryParamOptions(s,t);return this.cacheResponse(s,n,void 0,r)}async getAll(e,t={},r,s){let n=(null==t?void 0:t.per_page)||25,i=`/${e}`.replace(/\/$/,""),a=r??i.substring(i.lastIndexOf("/")+1);t.version=t.version||this.version;let o=await this.makeRequest(i,t,n,1,s),l=o.total?Math.ceil(o.total/(o.perPage||n)):1;return((e=[],t)=>e.map(t).reduce((e,t)=>[...e,...t],[]))([o,...await p(((e=0,t=e)=>{let r=Math.abs(t-e)||0,s=e<t?1:-1;return((e=0,t)=>Array.from({length:e},t))(r,(t,r)=>r*s+e)})(1,l),e=>this.makeRequest(i,t,n,e+1,s))],e=>Object.values(e.data[a]))}post(e,t={},r){let s=`/${e}`,n=E(void 0,void 0,this.rateLimitConfig,3);return this.throttleManager.execute(n,"post",s,t,r)}put(e,t={},r){let s=`/${e}`,n=E(void 0,void 0,this.rateLimitConfig,3);return this.throttleManager.execute(n,"put",s,t,r)}delete(e,t={},r){t||(t={});let s=`/${e}`,n=E(void 0,void 0,this.rateLimitConfig,3);return this.throttleManager.execute(n,"delete",s,t,r)}getStories(e={},t){return this._addResolveLevel(e),this.get("cdn/stories",e,t)}getStory(e,t={},r){return this._addResolveLevel(t),this.get(`cdn/stories/${e}`,t,r)}getToken(){return this.accessToken}ejectInterceptor(){this.client.eject()}_addResolveLevel(e){"u">typeof e.resolve_relations&&(e.resolve_level=2)}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t,r){let s=e[t];s&&"multilink"===s.fieldtype&&"story"===s.linktype&&"string"==typeof s.id&&this.links[r][s.id]?s.story=this._cleanCopy(this.links[r][s.id]):s&&"story"===s.linktype&&"string"==typeof s.uuid&&this.links[r][s.uuid]&&(s.story=this._cleanCopy(this.links[r][s.uuid]))}getStoryReference(e,t){return this.relations[e][t]?JSON.parse(this.stringifiedStoriesCache[t]||JSON.stringify(this.relations[e][t])):t}_resolveField(e,t,r){let s=e[t];"string"==typeof s?e[t]=this.getStoryReference(r,s):Array.isArray(s)&&(e[t]=s.map(e=>this.getStoryReference(r,e)).filter(Boolean))}_insertRelations(e,t,r,s){if(Array.isArray(r)?r.find(e=>e.endsWith(`.${t}`)):r.endsWith(`.${t}`))return void this._resolveField(e,t,s);let n=e.component?`${e.component}.${t}`:t;(Array.isArray(r)?r.includes(n):r===n)&&this._resolveField(e,t,s)}iterateTree(e,t,r){let s=(e,n="")=>{if(!(!e||e._stopResolving)){if(Array.isArray(e))e.forEach((e,t)=>s(e,`${n}[${t}]`));else if("object"==typeof e)for(let i in e){let a=n?`${n}.${i}`:i;(e.component&&e._uid||"link"===e.type)&&(this._insertRelations(e,i,t,r),this._insertLinks(e,i,r)),s(e[i],a)}}};s(e.content)}async resolveLinks(e,t,r){let s=[];if(e.link_uuids){let r=e.link_uuids.length,n=[];for(let t=0;t<r;t+=50){let s=Math.min(r,t+50);n.push(e.link_uuids.slice(t,s))}for(let e=0;e<n.length;
1e++)(await this.getStories({per_page:50,language:t.language,version:t.version,starts_with:t.starts_with,by_uuids:n[e].join(",")})).data.stories.forEach(e=>{s.push(e)})}else s=e.links;s.forEach(e=>{this.links[r][e.uuid]={...e,_stopResolving:!0}})}async resolveRelations(e,t,r){let s=[];if(e.rel_uuids){let r=e.rel_uuids.length,n=[];for(let t=0;t<r;t+=50){let s=Math.min(r,t+50);n.push(e.rel_uuids.slice(t,s))}for(let e=0;e<n.length;e++)(await this.getStories({per_page:50,language:t.language,version:t.version,starts_with:t.starts_with,by_uuids:n[e].join(","),excluding_fields:t.excluding_fields})).data.stories.forEach(e=>{s.push(e)});s.length>0&&(e.rels=s,delete e.rel_uuids)}else s=e.rels;s&&s.length>0&&s.forEach(e=>{this.relations[r][e.uuid]={...e,_stopResolving:!0}})}async resolveStories(e,t,r){var s,n;let i=[];if(this.links[r]={},this.relations[r]={},"u">typeof t.resolve_relations&&t.resolve_relations.length>0&&("string"==typeof t.resolve_relations&&(i=t.resolve_relations.split(",")),await this.resolveRelations(e,t,r)),t.resolve_links&&["1","story","url","link"].includes(t.resolve_links)&&(null!=(s=e.links)&&s.length||null!=(n=e.link_uuids)&&n.length)&&await this.resolveLinks(e,t,r),this.resolveNestedRelations)for(let e in this.relations[r])this.iterateTree(this.relations[r][e],i,r);e.story?this.iterateTree(e.story,i,r):e.stories.forEach(e=>{this.iterateTree(e,i,r)}),this.stringifiedStoriesCache={},delete this.links[r],delete this.relations[r]}async cacheResponse(e,t,r,s){let n=w({url:e,params:t}),i=this.cacheProvider();if("published"===t.version&&"/cdn/spaces/me"!==e){let e=await i.get(n);if(e)return Promise.resolve(e)}let a=!g(e)&&this.rateLimitConfig.isManagementApi?3:void 0,o=E(e,t,this.rateLimitConfig,a);return new Promise(async(a,l)=>{var u;try{let r=await this.throttleManager.execute(o,"get",e,t,s);if(200!==r.status)return l(r);let c={data:r.data,headers:r.headers},h=function(e){if(!e)return null;let t=e["x-ratelimit"]||e["X-RateLimit"],r=e["x-ratelimit-policy"]||e["X-RateLimit-Policy"];if(!t&&!r)return null;let s={};if(t){let e=t.match(/r=(\d+)/);e&&(s.remaining=Number.parseInt(e[1],10))}if(r){let e=r.match(/q=(\d+)/);e&&(s.max=Number.parseInt(e[1],10))}return Object.keys(s).length>0?s:null}(r.headers);if((null==h?void 0:h.max)!==void 0&&(this.rateLimitConfig.serverHeadersRateLimit=h.max),null!=(u=r.headers)&&u["per-page"]&&(c=Object.assign({},c,{perPage:r.headers["per-page"]?Number.parseInt(r.headers["per-page"]):0,total:r.headers["per-page"]?Number.parseInt(r.headers.total):0})),c.data.story||c.data.stories){let e=this.resolveCounter=++this.resolveCounter%1e3;await this.resolveStories(c.data,t,`${e}`),c=await this.processInlineAssets(c)}"published"===t.version&&"/cdn/spaces/me"!==e&&await i.set(n,c);let d="onpreview"===this.cache.clear&&"draft"===t.version||"auto"===this.cache.clear;return t.token&&c.data.cv&&(d&&$[t.token]&&$[t.token]!==c.data.cv&&await this.flushCache(),$[t.token]=c.data.cv),a(c)}catch(s){if(s.response&&429===s.status&&(r=typeof r>"u"?0:r+1)<this.maxRetries){let s;return console.log(`Hit rate limit. Retrying in ${this.retriesDelay/1e3} seconds.`),await (s=this.retriesDelay,new Promise(e=>setTimeout(e,s))),this.cacheResponse(e,t,r).then(a).catch(l)}l(s)}})}throttledRequest(e,t,r,s){return this.client.setFetchOptions(s),this.client[e](t,r)}cacheVersions(){return $}cacheVersion(){return $[this.accessToken]}setCacheVersion(e){this.accessToken&&($[this.accessToken]=e)}clearCacheVersion(){this.accessToken&&($[this.accessToken]=0)}cacheProvider(){switch(this.cache.type){case"memory":return{get:e=>Promise.resolve(x[e]),getAll:()=>Promise.resolve(x),set:(e,t)=>(x[e]=t,Promise.resolve(void 0)),flush:()=>(x={},Promise.resolve(void 0))};case"custom":if(this.cache.custom)return this.cache.custom;default:return{get:()=>Promise.resolve(),getAll:()=>Promise.resolve(void 0),set:()=>Promise.resolve(void 0),flush:()=>Promise.resolve(void 0)}}}async flushCache(){return await this.cacheProvider().flush(),this.clearCacheVersion(),this}async processInlineAssets(e){if(!this.inlineAssets)return e;let t=r=>{if(!r||"object"!=typeof r)return r;if(Array.isArray(r))return r.map(e=>t(e));let s={...r};for(let r in"asset"===s.fieldtype&&Array.isArray(e.data.assets)&&(s={...e.data.assets.find(e=>e.id===s.id),...s}),s)"object"==typeof s[r]&&(s[r]=t(s[r]));return s};return e.data.story&&(e.data.story.content=t(e.data.story.content)),e.data.stories&&(e.data.stories=e.data.stories.map(e=>(e.content=t(e.content),e))),e}};let C=(e={})=>{let{apiOptions:t}=e;return t&&t.accessToken?{storyblokApi:new L(t)}:void console.error("You need to provide an access token to interact with Storyblok API. Read https://www.storyblok.com/docs/api/content-delivery#topics/authentication")},_=e=>{if("object"!=typeof e||typeof e._editable>"u")return{};try{let t=JSON.parse(e._editable.replace(/^<!--#storyblok#/,"").replace(/-->$/,""));return t?{"data-blok-c":JSON.stringify(t),"data-blok-uid":`${t.id}-${t.uid}`}:{}}catch{return{}}},A="https://app.storyblok.com/f/storyblok-v2-latest.js",V=null,R=new Map,j=!1,F=null;globalThis.storyCache=globalThis.storyCache||new Map;let W=(e={})=>{let t=V;if(t)return()=>t;let{storyblokApi:r}=((e={})=>{var t,r;let s,{bridge:n,accessToken:i,use:a=[],apiOptions:o={},bridgeUrl:l}=e;o.accessToken=o.accessToken||i;let u={bridge:n,apiOptions:o},c={};
1a.forEach(e=>{c={...c,...e(u)}}),l&&(A=l);let h=!(typeof window>"u")&&(null==(r=null==(t=window.location)?void 0:t.search)?void 0:r.includes("_storyblok_tk"));return!1!==n&&h&&(s=A,new Promise((e,t)=>{if(typeof window>"u")return void t(Error("Cannot load Storyblok bridge: window is undefined (server-side environment)"));if(window.storyblokRegisterEvent=e=>{if(!window.location.search.includes("_storyblok"))return void console.warn("You are not in Draft Mode or in the Visual Editor.");f?e():y.push(e)},document.getElementById("storyblok-javascript-bridge"))return void e(void 0);let r=document.createElement("script");r.async=!0,r.src=s,r.id="storyblok-javascript-bridge",r.onerror=e=>t(e),r.onload=t=>{y.forEach(e=>e()),f=!0,e(t)},document.getElementsByTagName("head")[0].appendChild(r)})),c})(e);return V=r,e.components&&Object.entries(e.components).forEach(([e,t])=>{R.set(e,t)}),void 0!==e.enableFallbackComponent&&(j=e.enableFallbackComponent),e.customFallbackComponent&&(F=e.customFallbackComponent),()=>r};var P=r(5155);let Z=(0,s.forwardRef)(({blok:e,...t},r)=>{if(!e)return console.error("Please provide a 'blok' property to the StoryblokComponent"),(0,P.jsx)("div",{children:"Please provide a blok property to the StoryblokComponent"});let s=(e=>R.has(e)?R.get(e):(console.error(`Component ${e} doesn't exist.`),!1))(e.component);if(s)return(0,P.jsx)(s,{ref:r,blok:e,...t});if(j){let r=F;return r?(0,P.jsx)(r,{blok:e,...t}):(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)("p",{children:["Component could not be found for blok"," ",(0,P.jsx)("strong",{children:e.component}),"! Is it configured correctly?"]})})}return(0,P.jsx)("div",{})});Z.displayName="StoryblokComponent";let U=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[n,i]=(0,s.useState)(null),a=null!=(e=null==t?void 0:t.id)?e:null;return(0,s.useEffect)(()=>{i(null)},[a]),(0,s.useEffect)(()=>{"u">typeof window&&"u">typeof window.storyblokRegisterEvent&&a&&((e,t,r={})=>{var s;let n=!(typeof window>"u")&&"u">typeof window.storyblokRegisterEvent,i=new URL(null==(s=window.location)?void 0:s.href).searchParams.get("_storyblok");if(!(!n||null===i||+i!==e)){if(!e)return console.warn("Story ID is not defined. Please provide a valid ID.");window.storyblokRegisterEvent(()=>{new window.StoryblokBridge(r).on(["input","published","change"],r=>{var s;r&&("input"===r.action&&(null==(s=r.story)?void 0:s.id)===e?t(r.story):("change"===r.action||"published"===r.action)&&r.storyId===e&&window.location.reload())})})}})(a,e=>i(e),r)},[a,r]),n&&n.id===a?n:t},z=function(e,{isServerContext:t=!1}={}){return function(r){let n=function(e,{isServerContext:t=!1}={}){return function(r){var n,i;let a=null==(n=null==r?void 0:r.attrs)?void 0:n.body;if(!Array.isArray(a)||0===a.length)return[];let o=(null==(i=r.attrs)?void 0:i.id)||(t?`fallback-key-${JSON.stringify(r.attrs)}`:void 0);return a.map((t,r)=>s.createElement(e,{blok:t,key:`${o}-${r}`}))}}(e,{isServerContext:t}),{resolvers:i,...c}=r;return function(e={}){let t=new Map,{renderFn:r=m,textFn:s=h,resolvers:n={},optimizeImages:i=!1,keyedResolvers:c=!1}=e,f=r!==m,y=(e={})=>{let{textAlign:t,class:r,id:s,style:n,...i}=e,a=[];return n&&a.push(n.endsWith(";")?n:`${n};`),t&&a.push(`text-align: ${t};`),d({...i,class:r,id:s,...a.length>0?{style:a.join(" ")}:{}})},g=e=>(t,r)=>{let s=y(t.attrs);return r.render(e,s,t.children||null)},p=(e,t=!1)=>({text:r,attrs:s},n)=>{let{class:i,id:a,...o}=s||{},l=t?{class:i,id:a,style:((e={})=>Object.keys(e).map(t=>`${t}: ${e[t]}`).join("; "))(o)||void 0}:s||{};return n.render(e,d(l),r)},w=e=>S(e),v=(e,t)=>{let{linktype:r,href:s,anchor:n,...i}=e.attrs||{},a="";switch(r){case u.ASSET:case u.URL:a=s;break;case u.EMAIL:a=`mailto:${s}`;break;case u.STORY:a=s,n&&(a=`${a}#${n}`);break;default:a=s}let o={...i};return a&&(o.href=a),t.render("a",o,e.text)},k=new Map([[a.DOCUMENT,g("")],[a.HEADING,(e,t)=>{let{level:r,...s}=e.attrs||{},n=y(s);return t.render(`h${r}`,n,e.children)}],[a.PARAGRAPH,g("p")],[a.UL_LIST,g("ul")],[a.OL_LIST,g("ol")],[a.LIST_ITEM,g("li")],[a.IMAGE,(e,t)=>{let{src:r,alt:s,title:n,srcset:a,sizes:o}=e.attrs||{},l=r,u={};
1if(i){let{src:e,attrs:t}=function(e,t){if(!t)return{src:e,attrs:{}};let r=0,s=0,n={},i=[];function a(e,t,r,s,n){"number"!=typeof e||e<=t||e>=r?console.warn(`[StoryblokRichText] - ${s.charAt(0).toUpperCase()+s.slice(1)} value must be a number between ${t} and ${r} (inclusive)`):n.push(`${s}(${e})`)}if("object"==typeof t){if(void 0!==t.width&&("number"==typeof t.width&&t.width>=0?(n.width=t.width,r=t.width):console.warn("[StoryblokRichText] - Width value must be a number greater than or equal to 0")),void 0!==t.height&&("number"==typeof t.height&&t.height>=0?(n.height=t.height,s=t.height):console.warn("[StoryblokRichText] - Height value must be a number greater than or equal to 0")),0===t.height&&0===t.width&&(delete n.width,delete n.height,console.warn("[StoryblokRichText] - Width and height values cannot both be 0")),t.loading&&["lazy","eager"].includes(t.loading)&&(n.loading=t.loading),t.class&&(n.class=t.class),t.filters){let{filters:e}=t||{},{blur:r,brightness:s,fill:n,format:o,grayscale:l,quality:u,rotate:c}=e||{};r&&a(r,0,100,"blur",i),u&&a(u,0,100,"quality",i),s&&a(s,0,100,"brightness",i),n&&i.push(`fill(${n})`),l&&i.push("grayscale()"),c&&[0,90,180,270].includes(t.filters.rotate||0)&&i.push(`rotate(${c})`),o&&["webp","png","jpeg"].includes(o)&&i.push(`format(${o})`)}t.srcset&&(n.srcset=t.srcset.map(t=>{if("number"==typeof t)return`${e}/m/${t}x0/${i.length>0?`filters:${i.join(":")}`:""} ${t}w`;if(!Array.isArray(t)||2!==t.length)return void console.warn("[StoryblokRichText] - srcset entry must be a number or a tuple of two numbers");{let[r,s]=t;return`${e}/m/${r}x${s}/${i.length>0?`filters:${i.join(":")}`:""} ${r}w`}}).join(", ")),t.sizes&&(n.sizes=t.sizes.join(", "))}let o=`${e}/m/`;return(r>0||s>0)&&(o=`${o}${r}x${s}/`),i.length>0&&(o=`${o}filters:${i.join(":")}`),{src:o,attrs:n}}(r,i);l=e,u=t}let c={src:l,alt:s,title:n,srcset:a,sizes:o,...u};return t.render("img",d(c))}],[a.EMOJI,(e,t)=>{var r,s,n,i;let a=t.render("img",{src:null==(r=e.attrs)?void 0:r.fallbackImage,alt:null==(s=e.attrs)?void 0:s.alt,style:"width: 1.25em; height: 1.25em; vertical-align: text-top",draggable:"false",loading:"lazy"});return t.render("span",{"data-type":"emoji","data-name":null==(n=e.attrs)?void 0:n.name,"data-emoji":null==(i=e.attrs)?void 0:i.emoji},a)}],[a.CODE_BLOCK,(e,t)=>t.render("pre",e.attrs||{},t.render("code",{},e.children||""))],[a.HR,g("hr")],[a.BR,g("br")],[a.QUOTE,g("blockquote")],[a.COMPONENT,(e,t)=>{var r,s;return console.warn("[StoryblokRichtText] - BLOK resolver is not available for vanilla usage"),t.render("span",{blok:null==(r=null==e?void 0:e.attrs)?void 0:r.body[0],id:null==(s=e.attrs)?void 0:s.id,style:"display: none"})}],[l.TEXT,e=>{let{marks:r,...n}=e;if("text"in e){if(r)return r.reduce((e,t)=>w({...t,text:e}),w({...n,children:n.children}));let i=e.attrs||{};if(c){let e=t.get("txt")||0;t.set("txt",e+1),i.key=`txt-${e}`}return s(n.text,i)}return""}],[o.LINK,v],[o.ANCHOR,v],[o.STYLED,p("span",!0)],[o.BOLD,p("strong")],[o.TEXT_STYLE,p("span",!0)],[o.ITALIC,p("em")],[o.UNDERLINE,p("u")],[o.STRIKE,p("s")],[o.CODE,p("code")],[o.SUPERSCRIPT,p("sup")],[o.SUBSCRIPT,p("sub")],[o.HIGHLIGHT,p("mark")],[a.TABLE,(e,t)=>{let r=y(e.attrs),s=e.children||null;return t.render("table",r,t.render("tbody",{},s))}],[a.TABLE_ROW,(e,t)=>{let r=y(e.attrs);return t.render("tr",r,e.children)}],[a.TABLE_CELL,(e,t)=>{let{colspan:r,rowspan:s,colwidth:n,backgroundColor:i,textAlign:a,...o}=e.attrs||{},l=[];n&&l.push(`width: ${n}px;`),i&&l.push(`background-color: ${i};`),a&&l.push(`text-align: ${a};`);let u={...o,...r>1?{colspan:r}:{},...s>1?{rowspan:s}:{},...l.length>0?{style:l.join(" ")}:{}};return t.render("td",d(u),e.children)}],[a.TABLE_HEADER,(e,t)=>{let{colspan:r,rowspan:s,colwidth:n,backgroundColor:i,textAlign:a,...o}=e.attrs||{},l=[];n&&l.push(`width: ${n}px;`),i&&l.push(`background-color: ${i};`),a&&l.push(`text-align: ${a};`);let u={...o,...r>1?{colspan:r}:{},...s>1?{rowspan:s}:{},...l.length>0?{style:l.join(" ")}:{}};return t.render("th",d(u),e.children)}]]),b=new Map([...k,...Object.entries(n).map(([e,t])=>[e,t])]);function T(e){let s=b.get(e.type);if(!s)return console.error("<Storyblok>",`No resolver found for node type ${e.type}`),"";let n={render:(e,s={},n)=>{if(c&&e){let r=t.get(e)||0;t.set(e,r+1),s.key=`${e}-${r}`}return r(e,s,n)},originalResolvers:k,mergedResolvers:b};if("text"===e.type)return s(e,n);let i=e.content?e.content.map(S):void 0;return s({...e,children:i},n)}function S(e){return"doc"===e.type?f?e.content.map(T):e.content.map(T).join(""):Array.isArray(e)?e.map(T):T(e)}return{render:S}}({...t?r:{},renderFn:s.createElement,textFn:e=>s.createElement(s.Fragment,{key:Math.random().toString(36).substring(2,15)},e),resolvers:{[a.COMPONENT]:n,...i},keyedResolvers:!0,...t?{}:c})}}(Z,{isServerContext:!1});(0,s.forwardRef)(({doc:e,resolvers:t},r)=>{let{render:n}=z({resolvers:t}),i=function e(t){if(Array.isArray(t))return t.map(t=>e(t));let r={allowfullscreen:"allowFullScreen",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",charset
1:"charSet",class:"className",colspan:"colSpan",colwidth:"colWidth",contenteditable:"contentEditable",crossorigin:"crossOrigin",enctype:"encType",for:"htmlFor",formnovalidate:"formNoValidate",frameborder:"frameBorder",inputmode:"inputMode",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",minlength:"minLength",novalidate:"noValidate",playsinline:"playsInline",readonly:"readOnly",referrerpolicy:"referrerPolicy",rowspan:"rowSpan",srcset:"srcSet",tabindex:"tabIndex",targetAttr:"targetattr",usemap:"useMap"},n=Object.keys(t.props).reduce((e,s)=>{let n=t.props[s];return"style"===s&&"string"==typeof n&&(n=n.split(";").reduce((e,t)=>{let[r,s]=t.split(":");return r=null==r?void 0:r.trim(),s=null==s?void 0:s.trim(),r&&s&&(e[r.replace(/-([a-z])/g,e=>e[1].toUpperCase())]=s),e},{})),e[r[s]||s]=n,e},{});n.key=t.key;let i=s.Children.map(t.props.children,t=>"string"==typeof t?t:e(t));return s.createElement(t.type,n,i)}(n(e));return(0,P.jsx)("div",{ref:r,children:i})})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.