@yext/pages-components 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{debugger-DH7UN_-M.js → debugger-DJqq9EyW.js} +1 -1
- package/dist/{debugger-DRWb3azj.cjs → debugger-DtDduw6_.cjs} +1 -1
- package/dist/{index-BqDn49hh.js → index-BEMHj1z8.js} +5 -3
- package/dist/{index-Dpvz9qZ8.cjs → index-BVBgwvGE.cjs} +1 -1
- package/dist/{index-s_etEaZu.js → index-CBHRCjAx.js} +1 -1
- package/dist/{index-B_KO1dw5.cjs → index-CKSiT08w.cjs} +2 -2
- package/dist/pages-components.cjs +1 -1
- package/dist/pages-components.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CKSiT08w.cjs"),x=require("react"),N=require("react-dom");function k(){return i.getRuntime().name!=="browser"||window.hasOwnProperty("debuggerInitialized")?null:(window.debuggerInitialized=!0,N.createPortal(i.jsxRuntimeExports.jsx(w,{}),document.body))}const S=(e,n)=>{const s=e.dataset.yaAction,t=e.dataset.yaScopeoverride,c=e.dataset.yaEventname,a=t||n;return{action:s,originalEventName:a?`${a}_${c}`:c,scope:a}},C=(e,n)=>{const s=[];let t=e;for(;t!=null&&t.parentElement;)t=t.parentElement.closest(n),t&&s.push(t);return s},m={},R="YA_NO_SCOPE",y=(e,n,s,t)=>{m.hasOwnProperty(e)?m[e].events.map(c=>c.el).includes(t)||(m[e].events=[...m[e].events,{eventData:n,el:t}]):m[e]={scopeEl:s||t,events:[{eventData:n,el:t}]}};function w(){const[e,n]=x.useState(),[s,t]=x.useState([]),[c,a]=x.useState(!1),o=l=>{n(e===l?void 0:l)};return x.useEffect(()=>(document.documentElement.classList.add("xYextDebug"),document.querySelectorAll("[data-ya-eventname]").forEach((r,d)=>{const u=r.closest("[data-ya-scope]"),v=u==null?void 0:u.dataset.yaScope,g=S(r,v);r.addEventListener("mouseenter",()=>{t([{elem:r,key:`${g.originalEventName}_${d}`,action:g.action,originalEventName:g.originalEventName,scope:g.scope}])}),r.addEventListener("mouseleave",()=>{t([])});const b=r.dataset.yaScopeoverride;b?y(b,g,u,r):[v,...C(r,"[data-ya-scope]").map(p=>p.dataset.yaScope)].forEach(p=>{y(p||R,g,u,r)})}),a(!0),()=>{document.documentElement.classList.remove("xYextDebug")}),[]),c?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger",children:[i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-toggles",children:[i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-toggle",{"is-active":e==="Events"}),onClick:()=>o("Events"),children:"Events"}),i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-toggle",{"is-active":e==="Scopes"}),onClick:()=>o("Scopes"),children:"Scopes"})]}),e&&i.jsxRuntimeExports.jsx("div",{className:"analytics-debugger-tabs",children:e==="Events"?i.jsxRuntimeExports.jsx(O,{data:m,setTooltips:t}):i.jsxRuntimeExports.jsx(Y,{data:m,setTooltips:t})})]}),i.jsxRuntimeExports.jsx(T,{tooltips:s})]}):null}const B=()=>{const e=[];return Object.entries(m).map(([n,s])=>s.events.map(t=>{e.map(c=>c.eventData.originalEventName).includes(t.eventData.originalEventName)||e.push(t)})),e};function O(e){const{setTooltips:n}=e,[s,t]=x.useState(),[c,a]=x.useState(""),o=(l,r,d)=>{l.scrollIntoView({behavior:"smooth",block:"nearest"}),s&&s.classList.remove("analytics-event-highlight"),t(l),l.classList.add("analytics-event-highlight"),a(d),n([{elem:l,key:d,action:r.action,originalEventName:r.originalEventName,scope:r.scope}])};return i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[i.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Event Names"}),i.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:B().map((l,r)=>{const d=l.eventData,u=`${d.originalEventName}_${r}`;return i.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-button",{"is-active":u===c}),onClick:()=>o(l.el,d,u),children:d.originalEventName})},u)})})]})}function Y(e){const{data:n,setTooltips:s}=e,[t,c]=x.useState(""),a=o=>{const l=n[o];l.scopeEl&&(l.scopeEl.scrollIntoView({behavior:"smooth",block:"nearest"}),c(o),s(l.events.map((r,d)=>{const u=r.eventData;return{elem:r.el,key:`${u.originalEventName}_${d}`,action:u.action,originalEventName:u.originalEventName,scope:u.scope}})))};return i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[i.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Scope Names"}),i.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:Object.keys(n).map((o,l)=>{if(o!==R)return i.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-button",{"is-active":o===t}),onClick:()=>a(o),children:o})},o+l)})})]})}function T(e){const n=x.useRef({});return x.useEffect(()=>{if(n.current)for(const s of Object.values(n.current)){const t=Object.values(n.current).map(c=>c.el).filter(c=>c!==s.el);$(s,t),s.el.style.visibility="visible"}},[e.tooltips]),i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:e.tooltips.map(s=>i.jsxRuntimeExports.jsxs("div",{style:{visibility:"hidden"},className:"analytics-debugger-tooltip",ref:t=>{t?n.current[s.key]={el:t,tooltip:s}:delete n.current[s.key]},children:[i.jsxRuntimeExports.jsxs("span",{children:["Action: ",s.action]}),i.jsxRuntimeExports.jsx("br",{}),i.jsxRuntimeExports.jsxs("span",{children:["Scope: ",s.scope]}),i.jsxRuntimeExports.jsx("br",{}),i.jsxRuntimeExports.jsxs("span",{children:["Original Event Name: ",s.originalEventName]})]},s.key))})}function $(e,n){for(let s=0;s<9;s++){const t=I(e.tooltip.elem.getBoundingClientRect(),e.el,s);if(e.el.style.inset=`${t.top} auto auto ${t.left}`,!!A(e.el.getBoundingClientRect().left,e.el.getBoundingClientRect().top+window.scrollY,e.el.getBoundingClientRect().right,e.el.getBoundingClientRect().bottom+window.scrollY))continue;let a=!0;for(let o=0;o<n.length;o++){const l=n[o];D(e.el,l)&&(a=!1)}if(a)break}}function D(e,n){const s=e.getBoundingClientRect().top+window.scrollY,t=e.getBoundingClientRect().left,c=s+e.clientHeight,a=t+e.clientWidth,o=n.getBoundingClientRect().top+window.scrollY,l=n.getBoundingClientRect().left,r=o+n.clientHeight,d=l+n.clientWidth,u=(v,g,b,h,p,j,E,f)=>b<=p&&p<=E&&h<=j&&j<=f||b<=v&&v<=E&&h<=g&&g<=f||b<=v&&v<=E&&h<=j&&j<=f||b<=p&&p<=E&&h<=g&&g<=f;return u(t,s,l,o,a,c,d,r)||u(l,o,t,s,d,r,a,c)}function A(e,n,s,t){return e<0||s>window.innerWidth||n<0||t>document.documentElement.scrollHeight}function I(e,n,s){const t=n.clientHeight,c=n.clientWidth;let a,o;switch(s){case 0:{o=window.scrollY+e.top-t+"px",a=e.left-c+"px";break}case 1:{o=window.scrollY+e.top-t+"px",a=e.left+"px";break}case 2:{o=window.scrollY+e.top-t+"px",a=e.right+"px";break}case 3:{o=window.scrollY+e.top-t+"px",a=e.right-c+"px";break}case 4:{o=window.scrollY+e.bottom+"px",a=e.left-c+"px";break}case 5:{o=window.scrollY+e.bottom+"px",a=e.left+"px";break}case 6:{o=window.scrollY+e.bottom+"px",a=e.right-c+"px";break}case 7:{o=window.scrollY+e.bottom+"px",a=e.right+"px";break}default:o=0,a=0}return{top:o,left:a}}exports.AnalyticsDebuggerInternal=w;exports.default=k;
|
|
@@ -1616,7 +1616,7 @@ const tN = (e) => {
|
|
|
1616
1616
|
default:
|
|
1617
1617
|
return "";
|
|
1618
1618
|
}
|
|
1619
|
-
}, lp = Nc(null), nN = Z_(() => import("./debugger-
|
|
1619
|
+
}, lp = Nc(null), nN = Z_(() => import("./debugger-DJqq9EyW.js"));
|
|
1620
1620
|
function ZS(e) {
|
|
1621
1621
|
const {
|
|
1622
1622
|
children: t,
|
|
@@ -1686,7 +1686,9 @@ class rN {
|
|
|
1686
1686
|
siteUid: this.templateData.document.siteId,
|
|
1687
1687
|
template: this.templateData.document.__.name
|
|
1688
1688
|
},
|
|
1689
|
-
entity: this.templateData.document.uid || void 0
|
|
1689
|
+
entity: this.templateData.document.uid || void 0,
|
|
1690
|
+
pageUrl: document.URL,
|
|
1691
|
+
referrerUrl: document.referrer !== "" ? document.referrer : void 0
|
|
1690
1692
|
};
|
|
1691
1693
|
this._analyticsEventService = eN(n).with(r);
|
|
1692
1694
|
}
|
|
@@ -26109,7 +26111,7 @@ const FT = (e, t) => e(t, "i", oo(e, t)), BT = (e, t) => e(t, "b", oo(e, t)), HT
|
|
|
26109
26111
|
(async () => {
|
|
26110
26112
|
if (!r)
|
|
26111
26113
|
try {
|
|
26112
|
-
r = (await import("./index-
|
|
26114
|
+
r = (await import("./index-CBHRCjAx.js")).default;
|
|
26113
26115
|
} catch {
|
|
26114
26116
|
throw new Error(
|
|
26115
26117
|
"Failed to import React Markdown, cannot properly render LegacyRichText."
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const On=require("react"),m=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const On=require("react"),m=require("./index-CKSiT08w.cjs");function er(n){const t=[];let e=-1;for(;++e<n.footnoteOrder.length;){const r=n.footnoteById[n.footnoteOrder[e]];if(!r)continue;const i=n.all(r),l=String(r.identifier).toUpperCase(),o=m.normalizeUri(l.toLowerCase());let a=0;const s=[];for(;++a<=n.footnoteCounts[l];){const p={type:"element",tagName:"a",properties:{href:"#"+n.clobberPrefix+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:n.footnoteBackLabel},children:[{type:"text",value:"↩"}]};a>1&&p.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(p)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const p=c.children[c.children.length-1];p&&p.type==="text"?p.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...s)}else i.push(...s);const d={type:"element",tagName:"li",properties:{id:n.clobberPrefix+"fn-"+o},children:n.wrap(i,!0)};n.patch(r,d),t.push(d)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(n.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:n.footnoteLabel}]},{type:"text",value:`
|
|
2
2
|
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(t,!0)},{type:"text",value:`
|
|
3
3
|
`}]}}function yt(n,t){const e=m.createState(n,t),r=e.one(n,null),i=er(e);return i&&r.children.push({type:"text",value:`
|
|
4
4
|
`},i),Array.isArray(r)?{type:"root",children:r}:r}const tr=function(n,t){return n&&"run"in n?rr(n,t):ir(n||t)};function rr(n,t){return(e,r,i)=>{n.run(yt(e,t),r,l=>{i(l)})}}function ir(n){return t=>yt(t,n)}const Pe=["http","https","mailto","tel"];function xt(n){const t=(n||"").trim(),e=t.charAt(0);if(e==="#"||e==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++i<Pe.length;){const l=Pe[i];if(r===l.length&&t.slice(0,l.length).toLowerCase()===l)return t}return i=t.indexOf("?"),i!==-1&&r>i||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*!
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import zn from "react";
|
|
2
|
-
import { n as cr, a as fr, b as Hn, m as K, d as D, s as In, p as Sn, r as Pe, e as De, f as Tn, h as vn, i as me, k as pr, l as hr, o as ge, q as dr, t as bn, u as mr, v as gr } from "./index-
|
|
2
|
+
import { n as cr, a as fr, b as Hn, m as K, d as D, s as In, p as Sn, r as Pe, e as De, f as Tn, h as vn, i as me, k as pr, l as hr, o as ge, q as dr, t as bn, u as mr, v as gr } from "./index-BEMHj1z8.js";
|
|
3
3
|
function yr(n) {
|
|
4
4
|
const t = [];
|
|
5
5
|
let e = -1;
|
|
@@ -29,7 +29,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
29
29
|
let props = %s;
|
|
30
30
|
<%s key={someKey} {...props} />`,Jn,Ln,Mi,Ln),Yt[Ln+Jn]=!0}}return pe===r?kt(cn):tn(cn),cn}}function Qt(pe,Ze,nt){return bt(pe,Ze,nt,!0)}function wr(pe,Ze,nt){return bt(pe,Ze,nt,!1)}var mi=wr,_i=Qt;jl.Fragment=r,jl.jsx=mi,jl.jsxs=_i}()),jl}process.env.NODE_ENV==="production"?Hu.exports=ry():Hu.exports=iy();var ft=Hu.exports;function oy(e){switch(e){case"AD":case"AM":case"AT":case"AX":case"AZ":case"BA":case"BY":case"CY":case"CZ":case"DK":case"DZ":case"EC":case"EH":case"ET":case"FI":case"FR":case"GE":case"GF":case"GI":case"GP":case"GW":case"HT":case"KE":case"KV":case"KW":case"LA":case"LU":case"MC":case"MD":case"ME":case"MG":case"MK":case"MQ":case"MZ":case"NC":case"NL":case"NO":case"PL":case"PT":case"PY":case"RE":case"RS":case"SA":case"SE":case"SJ":case"SM":case"SN":case"TC":case"TJ":case"TM":case"TN":case"TZ":case"UY":case"VG":case"ZM":return[["line1"],["line2"],["postalCode","city"],["countryCode"]];case"AF":case"IR":return[["line1"],["line2"],["city"],["region"],["postalCode"],["countryCode"]];case"AG":case"AO":case"AW":case"BJ":case"BO":case"BS":case"BZ":case"CI":case"CW":case"DJ":case"FJ":case"GA":case"GH":case"GM":case"GY":case"JM":case"KI":case"LY":case"MW":case"NA":case"NR":case"PS":case"QA":case"RW":case"SC":case"SR":case"SX":case"TG":case"TT":case"UG":case"VU":return[["line1"],["line2"],["city"],["countryCode"]];case"AL":case"EE":case"IS":return[["line1"],["line2"],["postalCode","city"]];case"AR":return[["line1"],["line2"],["postalCode","city",",","region"],["countryCode"]];case"AS":case"BB":case"BD":case"BM":case"BN":case"BT":case"CR":case"DO":case"FK":case"FM":case"GR":case"GU":case"JO":case"KZ":case"LB":case"LK":case"LS":case"MA":case"MH":case"MM":case"MR":case"MT":case"MV":case"NG":case"PG":case"PK":case"PR":case"RO":case"SG":case"VC":case"WS":return[["line1"],["line2"],["city","postalCode"],["countryCode"]];case"AU":case"CA":case"SZ":case"US":case"VI":return[["line1"],["line2"],["city",",","region","postalCode"],["countryCode"]];case"BE":case"PE":return[["line1"],["line2"],["postalCode","sublocality","city"],["countryCode"]];case"BF":case"BI":case"BQ":case"BW":case"CF":case"CG":case"CM":case"DM":case"ER":case"GQ":case"KM":case"ML":case"SY":case"TD":case"ZW":return[["line1"],["line2"],["city"],["region"],["countryCode"]];case"BG":return[["line1"],["postalCode","region"],["countryCode"]];case"BH":return[["line1"],["line2"],["sublocality","city"],["countryCode"]];case"BR":return[["line1"],["line2"],["sublocality"],["city","region"],["postalCode"],["countryCode"]];case"CH":case"DE":case"GT":case"IT":case"LI":case"MY":case"NI":case"OM":case"SK":case"VA":return[["line1"],["line2"],["postalCode","city","region"],["countryCode"]];case"CL":case"PF":return[["line1"],["line2"],["city","postalCode","region"],["countryCode"]];case"CN":return[["region","city","sublocality"],["line1"],["line2"],["countryCode"]];case"CO":case"ID":case"IQ":case"KH":case"MP":case"NP":case"PW":case"UA":return[["line1"],["line2"],["city","region","postalCode"],["countryCode"]];case"EG":return[["line1"],["line2"],["sublocality","city","region","postalCode"],["countryCode"]];case"ES":case"IL":return[["line1"],["line2"],["city","postalCode"],["region"],["countryCode"]];case"GB":case"MN":case"ZA":return[["line1"],["line2"],["sublocality","city","postalCode"],["countryCode"]];case"GG":case"IM":case"JE":return[["line1"],["line2"],["sublocality"],["city"],["postalCode"],["countryCode"]];case"GN":return[["line1","line2","city"],["countryCode"]];case"HK":return[["line1"],["line2"],["sublocality"],["city"],["region"],["countryCode"]];case"HR":return[["line1"],["postalCode","city","region"],["countryCode"]];case"HU":case"SI":return[["postalCode","city"],["line1"],["line2"],["countryCode"]];case"IE":return[["line1"],["line2"],["sublocality"],["city","region","postalCode"],["countryCode"]];case"IN":case"VE":return[["line1"],["line2"],["city","postalCode"],["region"],["countryCode"]];case"JP":return[["line2"],["line1","sublocality"],["city","region"],["postalCode"],["countryCode"]];case"KR":return[["countryCode"],["region","city","sublocality","line1"],["line2"],["postalCode"]];case"KY":return[["line1"],["line2"],["postalCode"],["countryCode"]];case"LT":return[["line1"],["postalCode","city","sublocality","region"],["countryCode"]];case"LV":return[["line1"],["city",",","postalCode"],["countryCode"]];case"MO":return[["line1"],["line2"],["sublocality"],["city"],["countryCode"]];case"MU":return[["line1"],["line2"],["city"],["region","postalCode"],["countryCode"]];case"MX":return[["line1"],["line2"],["sublocality"],["postalCode","city",",","region"],["countryCode"]];case"NE":case"SD":return[["line1"],["line2"],["postalCode"],["city"],["region"],["countryCode"]];case"NZ":return[["line1"],["line2"],["sublocality"],["city"],["postalCode"],["countryCode"]];case"PH":case"TW":case"VN":return[["line1"],["line2"],["sublocality","city"],["region","postalCode"],["countryCode"]];case"RU":return[["line1"],["line2"],["city"],["postalCode"],["countryCode"]];case"SB":case"SL":case"ST":case"TL":case"TO":case"TV":return[["line1"],["line2"],["city",",","region"],["countryCode"]];case"TH":case"TR":return[["line1"],["line2"],["sublocality"],["postalCode","city"],["countryCode"]];case"UZ":return[["line1"],["line2"],["region","postalCode"],["countryCode"]]}return[["line1","line2"],["city","region","postalCode"],["countryCode"]]}const op={GOOGLEMYBUSINESS:"GOOGLEMYBUSINESS"},Wu={APPLE:"apple",BING:"bing"},sy=(e,t)=>{const r={region:"localizedRegionName",countryCode:"localizedCountryName"}[e];return r&&t[r]},ly=(e,t=[],n,r={route:!1},l)=>{const d="Failed to construct query for maps service.";let f=e&&yf([e.line1,e.line2,e.city,e.region,e.postalCode,e.countryCode]);switch(r.provider){case Wu.APPLE:{if(l!=null&&l.latitude&&(l!=null&&l.longitude))return pf(`${l.latitude},${l.longitude}`,r.route);if(!f){console.warn(`${d} Check that you've provided a valid Yext Address.`);break}return pf(f,r.route)}case Wu.BING:{if(l!=null&&l.latitude&&(l!=null&&l.longitude))return mf(`${l.latitude},${l.longitude}`,r.route);if(f=e&&yf([e.line1,e.city,e.region,e.postalCode]),!f){console.warn(`${d} Check that you've provided a valid Yext Address.`);break}return mf(f,r.route)}default:{if(l!=null&&l.latitude&&(l!=null&&l.longitude))return _f(`${l.latitude},${l.longitude}`,r.route);const p=t.find(_=>{var T;return((T=_==null?void 0:_.publisher)==null?void 0:T.toUpperCase())===op.GOOGLEMYBUSINESS});if(p!=null&&p.listingUrl)return p.listingUrl;if(n)return ay(n,f,r.route);if(!f){console.warn(`${d} Check that you've provided a valid Yext Address, Yext ListingType, or Google Place ID.`);break}return _f(f,r.route)}}},pf=(e,t)=>t?`https://maps.apple.com/?daddr=${e}`:`https://maps.apple.com/?address=${e}`,mf=(e,t)=>t?`https://bing.com/maps/default.aspx?rtp=adr.${e}`:`https://bing.com/maps/default.aspx?where1=${e}`,ay=(e,t,n)=>{const r=t?`&query=${t}`:"";return n?`https://maps.google.com/maps/dir/?api=1${r}&destination_place_id=${e}&destination=direct`:r?`https://maps.google.com/maps/search/?api=1${r}&query_place_id=${e}`:`https://maps.google.com/maps/dir/?api=1&destination_place_id=${e}&destination=direct`},_f=(e,t)=>t?`https://maps.google.com/maps/dir/?api=1&destination=${e}`:`https://maps.google.com/maps/search/?api=1&query=${e}`,yf=(e=[])=>{if(!e.length)return"";const t=e.filter(Boolean).join(", ");return encodeURI(t)},cy=({address:e,lines:t,separator:n=",",...r})=>{const l=(t||oy(e.countryCode)).map(d=>ft.jsx(uy,{address:e,line:d,separator:n},d.toString()));return rt.createElement("div",{...r,key:e.toString()},l)},uy=({address:e,line:t,separator:n})=>{const r=[];for(const l of t){if(l===","){r.push(ft.jsx("span",{children:n},l));continue}const d=e[l];if(!d)continue;const f=sy(l,e);if(f){r.push(ft.jsxs(ny.Fragment,{children:[" ",ft.jsx("abbr",{title:f,children:d})]},l));continue}r.push(ft.jsx("span",{children:" "+d},l))}return ft.jsx("div",{className:"address-line",children:r})};var tl={};Object.defineProperty(tl,"__esModule",{value:!0});var dy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fy=typeof window<"u"&&typeof window.document<"u",hy=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,gy=(typeof self>"u"?"undefined":dy(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",py=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),my=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",Nf=tl.isBrowser=fy;tl.isWebWorker=gy;var _y=tl.isNode=hy;tl.isJsDom=py;var yy=tl.isDeno=my;class Ny{constructor(){Ie(this,"name");Ie(this,"isServerSide");Ie(this,"version");var t;yy?(this.name="deno",this.version="",Nf&&(this.version=((t=window.Deno)==null?void 0:t.version.deno)||""),this.isServerSide=!0):_y?(this.name="node",this.version=process.versions.node,this.isServerSide=!0):Nf?(this.name="browser",this.version=navigator.userAgent,this.isServerSide=!1):(this.name="unknown",this.version="",this.isServerSide=!1)}getNodeMajorVersion(){if(this.name!=="node")throw new Error("Not running in Node.");return+this.version.split(".")[0]}}const Xs=()=>new Ny,Cy=(...e)=>typeof window<"u"&&window.IS_PRODUCTION||!1;function Yc(e){if(!cd(e))throw new Error("Parameter was not an error")}function cd(e){return!!e&&typeof e=="object"&&Ey(e)==="[object Error]"||e instanceof Error}function Ey(e){return Object.prototype.toString.call(e)}const Ty="Layerr";let xy=Ty;function vy(){return xy}function Sy(e){let t,n="";if(e.length===0)t={};else if(cd(e[0]))t={cause:e[0]},n=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),n=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},n=n=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:n}}class Ai extends Error{constructor(t,n){const r=[...arguments],{options:l,shortMessage:d}=Sy(r);let f=d;if(l.cause&&(f=`${f}: ${l.cause.message}`),super(f),this.message=f,l.name&&typeof l.name=="string"?this.name=l.name:this.name=vy(),l.cause&&Object.defineProperty(this,"_cause",{value:l.cause}),Object.defineProperty(this,"_info",{value:{}}),l.info&&typeof l.info=="object"&&Object.assign(this._info,l.info),Error.captureStackTrace){const p=l.constructorOpt||this.constructor;Error.captureStackTrace(this,p)}}static cause(t){return Yc(t),t._cause&&cd(t._cause)?t._cause:null}static fullStack(t){Yc(t);const n=Ai.cause(t);return n?`${t.stack}
|
|
31
31
|
caused by: ${Ai.fullStack(n)}`:t.stack??""}static info(t){Yc(t);const n={},r=Ai.cause(t);return r&&Object.assign(n,Ai.info(r)),t._info&&Object.assign(n,t._info),n}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const sp="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ra=32,Cf=0xffffffffffff,wy=10,Oy=16,ea=Object.freeze({source:"ulid"});function Dy(e){const t=Ay(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const r=new Uint8Array(1);return n.getRandomValues(r),r[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new Ai({info:{code:"PRNG_DETECT",...ea}},"Failed to find a reliable PRNG")}function Ay(){return by()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function My(e,t){let n="";for(;e>0;e--)n=Ly(t)+n;return n}function Ry(e,t){if(isNaN(e))throw new Ai({info:{code:"ENC_TIME_NAN",...ea}},`Time must be a number: ${e}`);if(e>Cf)throw new Ai({info:{code:"ENC_TIME_SIZE_EXCEED",...ea}},`Cannot encode a time larger than ${Cf}: ${e}`);if(e<0)throw new Ai({info:{code:"ENC_TIME_NEG",...ea}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Ai({info:{code:"ENC_TIME_TYPE",...ea}},`Time must be an integer: ${e}`);let n,r="";for(let l=t;l>0;l--)n=e%ra,r=sp.charAt(n)+r,e=(e-n)/ra;return r}function by(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function Ly(e){let t=Math.floor(e()*ra);return t===ra&&(t=ra-1),sp.charAt(t)}function Iy(e,t){const n=Dy(),r=isNaN(e)?Date.now():e;return Ry(r,wy)+My(Oy,n)}var Ef="yext_analytics_session_id";function ky(){if(typeof window>"u")return null;try{var e=window.sessionStorage.getItem(Ef);return e||(e=Iy(),window.sessionStorage.setItem(Ef,e)),e}catch(t){return console.warn(`Unable to use browser sessionStorage for sessionId.
|
|
32
|
-
`,t),null}}const Py="@yext/analytics",$y="1.0.0-beta.5",Fy="An analytics library for Yext",By="fusion@yext.com",Hy="BSD-3-Clause",Wy="./lib/commonjs/src/index.js",Ky="./lib/esm/src/index.js",zy="./lib/analytics.d.ts",Uy=["analytics","report","events","yext"],Gy=["src","lib","THIRD-PARTY-NOTICES"],Yy={build:"rm -rf lib/** && tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && npm run format-check && npm run api-extractor && npm run generate-docs && npm run generate-notices && vite build",prepare:"husky install","format-check":"prettier --check . && eslint .","format-fix":"prettier --write . && eslint . --fix","api-extractor":"api-extractor run --local --verbose","generate-docs":"api-documenter markdown --input-folder temp --output-folder docs && rm -rf temp",prepublishOnly:"npm run build",test:"jest && playwright test",dev:"tsc -p tsconfig.esm.json --watch","generate-notices":"generate-license-file --input package.json --output THIRD-PARTY-NOTICES --overwrite"},jy={"@babel/preset-env":"^7.14.7","@babel/preset-typescript":"^7.14.5","@microsoft/api-documenter":"^7.15.3","@microsoft/api-extractor":"^7.19.4","@playwright/test":"^1.38.0","@types/jest":"^29.5.12","@types/node":"^20.6.0","@typescript-eslint/eslint-plugin":"^6.19.1","@typescript-eslint/parser":"^6.19.1",eslint:"^7.32.0","fetch-mock-jest":"^1.5.1","generate-license-file":"^1.3.0",husky:"^8.0.3",jest:"^27.0.6","jest-fetch-mock":"^3.0.3",prettier:"^3.0.3",typescript:"^4.1.5",vite:"^4.4.9"},Vy={bail:!1,verbose:!0,collectCoverage:!0,testEnvironment:"jsdom",collectCoverageFrom:["src/**","!src/utils/**"],moduleFileExtensions:["js","ts"],moduleDirectories:["node_modules","<rootDir>"],testMatch:["<rootDir>/tests/**/*.ts"],resetMocks:!0,restoreMocks:!0,clearMocks:!0,passWithNoTests:!0},qy={ulidx:"^2.0.0"},Tf={name:Py,version:$y,description:Fy,author:By,license:Hy,main:Wy,module:Ky,types:zy,keywords:Uy,files:Gy,scripts:Yy,devDependencies:jy,jest:Vy,dependencies:qy};function Zy(e,t,n){return n.debug?(lp(!0,t,n),!0):navigator.sendBeacon(e,JSON.stringify(t))}function Jy(e,t,n){return n.debug?(lp(!1,t,n),Promise.resolve(new Response)):fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0})}function Xy(e,t){return!t&&!!navigator.userAgent&&navigator.userAgent.toLowerCase().includes("firefox")}function lp(e,t,n){var r=e?"Beacon":"fetch()";console.log("[DEBUG] AnalyticsConfig object at time of call to report():",n),console.log("[DEBUG] The following EventPayload would be sent to the Yext Events API using ".concat(r,":"),t)}var Ku=function(){return Ku=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},Ku.apply(this,arguments)},zu=function(e,t){if(!t||Object.keys(t).length===0)return e;if(!e||Object.keys(e).length===0)return t;var n=JSON.parse(JSON.stringify(e));for(var r in t)if(t.hasOwnProperty(r)){var l=t[r];l==null?delete n[r]:typeof l!="object"?n[r]=l:n[r]=zu(n[r],l)}return Ku({},n)},Qy="yextevents.com/accounts/me/events";function eN(e,t){var n=e==="SANDBOX",r=t==null?void 0:t.toLowerCase();if(n&&r==="eu")throw new Error("Sandbox environment is not available in the EU region.");return"https://"+(n?"sbx.":"")+(r??"us")+"."+Qy}var tN=function(e,t,n,r){function l(d){return d instanceof n?d:new n(function(f){f(d)})}return new(n||(n=Promise))(function(d,f){function p(E){try{T(r.next(E))}catch(S){f(S)}}function _(E){try{T(r.throw(E))}catch(S){f(S)}}function T(E){E.done?d(E.value):l(E.value).then(p,_)}T((r=r.apply(e,t||[])).next())})},nN=function(e,t){var n={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},r,l,d,f;return f={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function p(T){return function(E){return _([T,E])}}function _(T){if(r)throw new TypeError("Generator is already executing.");for(;f&&(f=0,T[0]&&(n=0)),n;)try{if(r=1,l&&(d=T[0]&2?l.return:T[0]?l.throw||((d=l.return)&&d.call(l),0):l.next)&&!(d=d.call(l,T[1])).done)return d;switch(l=0,d&&(T=[T[0]&2,d.value]),T[0]){case 0:case 1:d=T;break;case 4:return n.label++,{value:T[1],done:!1};case 5:n.label++,l=T[1],T=[0];continue;case 7:T=n.ops.pop(),n.trys.pop();continue;default:if(d=n.trys,!(d=d.length>0&&d[d.length-1])&&(T[0]===6||T[0]===2)){n=0;continue}if(T[0]===3&&(!d||T[1]>d[0]&&T[1]<d[3])){n.label=T[1];break}if(T[0]===6&&n.label<d[1]){n.label=d[1],d=T;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(T);break}d[2]&&n.ops.pop(),n.trys.pop();continue}T=t.call(e,n)}catch(E){T=[6,E],l=0}finally{r=d=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}},rN=function(){function e(t,n){if(t.authorizationType!=="apiKey"&&t.authorizationType!=="bearer")throw new Error("Authorization type must be either apiKey or bearer.");if(!t.authorization)throw new Error("Authorization must be provided.");this.config=t,this.payload=n}return e.prototype.with=function(t){var n=this.payload===void 0?t:zu(this.payload,t);return new e(this.config,n)},e.prototype.report=function(t){var n;return tN(this,void 0,void 0,function(){var r,l,d,f,p=this;return nN(this,function(_){return r=zu((n=this.payload)!==null&&n!==void 0?n:{},t??{}),this.config.sessionTrackingEnabled?r.sessionId||(r.sessionId=ky()):r.sessionId=void 0,r.clientSdk?r.clientSdk.ANALYTICS=Tf.version:r.clientSdk=(f={},f.ANALYTICS=Tf.version,f),r.authorization=this.config.authorizationType==="apiKey"?"KEY "+this.config.authorization:"Bearer "+this.config.authorization,l=Xy(r,this.config.forceFetch),d=eN(this.config.env,this.config.region),l?[2,new Promise(function(T,E){Zy(d,r,p.config)?T(""):E("Failed Beacon Call")})]:[2,Jy(d,r,this.config).then(function(T){return T}).catch(function(T){return T})]})})},e}();function iN(e){return new rN(e)}function Uu(e){return e?e.toLowerCase().trim().replace(/\s/g,""):""}function ap(e,t){return[e,t].filter(n=>!!n).map(n=>Uu(n)).join("_")}const oN=e=>{switch(Math.floor(e/1e8%10)){case 0:return"US";case 1:return"EU";default:return""}},ud=rt.createContext(null),sN=rt.lazy(()=>Promise.resolve().then(()=>require("./debugger-DRWb3azj.cjs")));function lN(e){const{children:t,apiKey:n,currency:r,templateData:l,requireOptIn:d,disableSessionTracking:f,enableDebugging:p}=e,_=rt.useRef(null),[T,E]=rt.useState(!1);rt.useEffect(()=>{E(!0)},[]),_.current===null&&(_.current=new cp(n,r,l,d,f,p??cc()));const S=_.current;return ft.jsxs(ft.Fragment,{children:[ft.jsx(ud.Provider,{value:S,children:t}),T&&(p||cc())&&Xs().name==="browser"?ft.jsx(rt.Suspense,{fallback:ft.jsx(ft.Fragment,{}),children:ft.jsx(sN,{})}):null]})}function cc(){return Xs().name!=="browser"||typeof window===void 0?!1:!!new URL(window.location.href).searchParams.get("xYextDebug")}class cp{constructor(t,n,r,l,d,f=!1){Ie(this,"_optedIn");Ie(this,"_sessionTrackingEnabled");Ie(this,"_analyticsEventService");Ie(this,"_pageViewFired",!1);this.apiKey=t,this.defaultCurrency=n,this.templateData=r,this.enableDebugging=f,this._optedIn=!l,this._sessionTrackingEnabled=!d,this.makeReporter(),this.pageView()}makeReporter(){if(Xs().name!=="browser"||!this._optedIn)return;if(!Cy()&&!this.getDebugEnabled()){console.warn("Yext Analytics disabled for non-production domains");return}const t=oN(this.templateData.document.businessId),n={authorizationType:"apiKey",authorization:this.apiKey,env:"PRODUCTION",region:t||"US",sessionTrackingEnabled:this._sessionTrackingEnabled,debug:this.getDebugEnabled()},r={pages:{siteUid:this.templateData.document.siteId,template:this.templateData.document.__.name},entity:this.templateData.document.uid||void 0};this._analyticsEventService=iN(n).with(r)}canTrack(){return Xs().name==="browser"&&this._optedIn&&!!this._analyticsEventService}identify(t){this.canTrack()&&this._analyticsEventService&&(this._analyticsEventService=this._analyticsEventService.with({visitor:t}))}async optIn(){this._optedIn=!0,this.makeReporter(),this._pageViewFired||await this.pageView()}async pageView(){var t;if(!this.canTrack())return Promise.resolve(void 0);await((t=this._analyticsEventService)==null?void 0:t.report({action:"PAGE_VIEW"})),this._pageViewFired=!0}async track(t){var S;if(!this.canTrack())return Promise.resolve();const{action:n,scope:r,eventName:l,currency:d,amount:f,destinationUrl:p,customTags:_,customValues:T}=t;let E;f&&(E={amount:f,currency:d||this.defaultCurrency}),await((S=this._analyticsEventService)==null?void 0:S.report({action:n,pages:{scope:Uu(r)||void 0,originalEventName:ap(r||"",Uu(l)||"")},value:E,destinationUrl:p,customTags:_,customValues:T}))}getDebugEnabled(){return this.enableDebugging||cc()}}const Gu=rt.createContext({name:""}),dd=()=>rt.useContext(Gu).name;function aN(e){var f;const t=dd(),[n]=rt.useState({name:ap(t,e.name)}),r=(f=nl())==null?void 0:f.getDebugEnabled(),[l,d]=rt.useState(!1);return rt.useEffect(()=>{d(!0)},[]),r&&l?ft.jsx("section",{"data-ya-scope":n.name,children:ft.jsx(Gu.Provider,{value:n,children:e.children})}):ft.jsx(Gu.Provider,{value:n,children:e.children})}function nl(){const e=rt.useContext(ud);if(!e)return e;Xs().name==="browser"&&!window.setAnalyticsOptIn&&(window.setAnalyticsOptIn=async()=>{await e.optIn()});const t=dd();return{getDebugEnabled(){return e.getDebugEnabled()},identify(n){return e.identify(n)},optIn(){return e.optIn()},pageView(){return e.pageView()},track(n){return e.track({...n,scope:n.scope??t})}}}const cN=()=>{var e;return(e=nl())==null?void 0:e.track},uN=()=>{var e;return(e=nl())==null?void 0:e.pageView},dN=()=>{var e;return(e=nl())==null?void 0:e.identify},xo={INTRINSIC:"intrinsic",FIXED:"fixed",ASPECT:"aspect",FILL:"fill"},fN=e=>{const t=e.protocol.slice(0,-1);if(t!=="http"&&t!=="https"){console.error(`Invalid scheme: ${e}`);return}const n=e.hostname;let r;if(n==="a.mktgcdn.com")r="us";else{if(n.replace("a.","").replace(".mktgcdn.com","")!=="eu"){console.error(`Invalid host: ${e}`);return}r="eu"}if(!e.pathname.startsWith("/f")){console.error(`Invalid path: ${e}`);return}const l=e.pathname.replace(/^\//,"").split("/");if(l.length<2||l.length>3){console.error(`Invalid path: ${e}`);return}let d;if(l[0]==="f")d="prod";else switch(l[0].replace("f-","")){case"sandbox":{d="sbx";break}case"qa":{d="qa";break}case"dev":{d="dev";break}default:{console.error(`Invalid path: ${e}`);return}}if(r==="eu"&&(d==="dev"||d==="sbx")){console.error(`Invalid path: ${e}`);return}let f;if(l.length===3&&(f=parseInt(l[1]),Number.isNaN(f))){console.error(`Invalid account id: ${e}`);return}const p=l[l.length-1].split("."),_=p.length===2?`.${p[1]}`:"",T=p[0];return{scheme:t,partition:r,env:d,accountId:f,contentHash:T,extension:_}},hN=(e,t,n)=>{const r=`https://dyn${e.partition==="us"?"":`.${e.partition}`}.mktgcdn.com`;let l="f";switch(e.env){case"prod":break;case"sbx":{l+="-sandbox";break}default:l+=`-${e.env.toString()}`}const d=e.accountId!==void 0?`${e.accountId}/`:"";return`${r}/${l}/${d}${e.contentHash}${e.extension}/width=${Math.round(t)},height=${Math.round(n)}`},gN=e=>{const t=e.protocol.slice(0,-1);if(t!=="http"&&t!=="https"){console.error(`Invalid scheme: ${e}`);return}if(e.hostname!=="a.mktgcdn.com"){console.error(`Invalid host: ${e}`);return}if(!e.pathname.startsWith("/p")){console.error(`Invalid path: ${e}`);return}const n=e.pathname.replace(/^\//,"").split("/");if(n.length<3||n.length>4){console.error(`Invalid path: ${e}`);return}let r;if(n[0]==="p")r="prod";else switch(n[0].replace("p-","")){case"sandbox":{r="sbx";break}case"qa":{r="qa";break}case"dev":{r="dev";break}default:{console.error(`Invalid path: ${e}`);return}}const l=n[1];let d;if(n.length===4){if(!n[2].includes(".")){console.error(`Invalid aspect ratio: ${e}`);return}if(d=parseFloat(n[2]),Number.isNaN(d)||n[2].split(".")[1].length!==4){console.error(`Invalid aspect ratio: ${e}`);return}}const f=n[n.length-1].split("."),p=f.length===2?`.${f[1]}`:"",_=f[0];return{scheme:t,env:r,contentHash:l,aspectRatio:d,name:_,extension:p}},pN=(e,t,n)=>{const r="https://dyn.mktgcdn.com";let l="p";switch(e.env){case"prod":break;case"sbx":{l+="-sandbox";break}default:l+=`-${e.env.toString()}`}return`${r}/${l}/${e.contentHash}/width=${Math.round(t)},height=${Math.round(n)}`},Yu=(e,t,n)=>{if(!up(e)){console.error(`Invalid image url: ${e}.`);return}const r=new URL(e);if(r.pathname.startsWith("/p")){const l=gN(r);if(l)return pN(l,t,n)}else if(r.pathname.startsWith("/f")){const l=fN(r);if(l)return hN(l,t,n)}return e},up=e=>{let t;try{t=new URL(e)}catch{return!1}return t.protocol==="http:"||t.protocol==="https:"},mN=({image:e,className:t,width:n,height:r,aspectRatio:l,layout:d=xo.INTRINSIC,placeholder:f,imgOverrides:p,style:_={},loading:T="lazy"})=>{const E=rt.useRef(null),[S,w]=rt.useState(!1),M="image"in e?e.image:e;rt.useEffect(()=>{var ce;(ce=E.current)!=null&&ce.complete&&w(!0)},[]),_N(d,M.width,M.height,n,r,l);const m=Math.abs(M.width);m||console.warn("Invalid image width.");const v=Math.abs(M.height);if(v||console.warn("Invalid image height."),!up(M.url))return console.error(`Invalid image url: ${M.url}`),ft.jsx(ft.Fragment,{children:f!=null&&f});const k=n&&n>0?n:void 0,G=r&&r>0?r:void 0,{src:I,imgStyle:P,widths:H}=yN(d,m,v,_,M.url,k,G,l),j=H.map(ce=>`${Yu(M.url,ce,v/m*ce)} ${ce}w`).join(", "),re=[640,768,1024,1280,1536],te=H.map((ce,V)=>V===H.length-1?`${ce}px`:`(max-width: ${re[V]}px) ${ce}px`).join(", ");return ft.jsxs(ft.Fragment,{children:[!S&&f!=null&&f,ft.jsx("img",{ref:E,style:P,src:I,className:t,width:k,height:G,srcSet:j,sizes:te,loading:T,alt:M.alternateText||"",...p})]})},_N=(e,t,n,r,l,d)=>{if(t<0&&console.warn(`Invalid image width: ${t}.`),n<0&&console.warn(`Invalid image height: ${n}.`),e===xo.FIXED){if(!r&&!l){console.warn("Using fixed layout but neither width nor height is passed as props.");return}r&&r<0&&console.warn(`Using fixed layout but width is invalid: ${r}.`),l&&l<0&&console.warn(`Using fixed layout but height is invalid: ${l}.`);return}(r||l)&&console.warn("Width or height is passed in but layout is not fixed. These will have no impact. If you want to have a fixed height or width then set layout to fixed."),e===xo.ASPECT&&!d&&console.warn("Using aspect layout but aspectRatio is not passed as a prop.")},yN=(e,t,n,r,l,d,f,p)=>{let _=[100,320,640,960,1280,1920],T=Yu(l,500,500);const E={...r};switch(E.objectFit=E.objectFit||"cover",E.objectPosition=E.objectPosition||"center",e){case xo.INTRINSIC:E.maxWidth=t,E.width="100%",E.aspectRatio=p?`${p}`:`${t} / ${n}`;break;case xo.FIXED:{const{fixedWidth:S,fixedHeight:w,fixedWidths:M}=NN(t,n,_,d,f);E.width=S,E.height=w,_=M,T=Yu(l,S,w);break}case xo.ASPECT:E.aspectRatio=p?`${p}`:`${t} / ${n}`;break;case xo.FILL:E.width="100%",E.aspectRatio=p?`${p}`:`${t} / ${n}`;break;default:console.warn(`Unrecognized layout: ${e}.`);break}return{src:T,imgStyle:E,widths:_}},NN=(e,t,n,r,l)=>r&&l?{fixedWidth:r,fixedHeight:l,fixedWidths:[r]}:r?{fixedWidth:r,fixedHeight:r*t/e,fixedWidths:[r]}:l?{fixedWidth:l/t*e,fixedHeight:l,fixedWidths:[l/t*e]}:{fixedWidth:e,fixedHeight:t,fixedWidths:n};var dp={exports:{}};/*!
|
|
32
|
+
`,t),null}}const Py="@yext/analytics",$y="1.0.0-beta.5",Fy="An analytics library for Yext",By="fusion@yext.com",Hy="BSD-3-Clause",Wy="./lib/commonjs/src/index.js",Ky="./lib/esm/src/index.js",zy="./lib/analytics.d.ts",Uy=["analytics","report","events","yext"],Gy=["src","lib","THIRD-PARTY-NOTICES"],Yy={build:"rm -rf lib/** && tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && npm run format-check && npm run api-extractor && npm run generate-docs && npm run generate-notices && vite build",prepare:"husky install","format-check":"prettier --check . && eslint .","format-fix":"prettier --write . && eslint . --fix","api-extractor":"api-extractor run --local --verbose","generate-docs":"api-documenter markdown --input-folder temp --output-folder docs && rm -rf temp",prepublishOnly:"npm run build",test:"jest && playwright test",dev:"tsc -p tsconfig.esm.json --watch","generate-notices":"generate-license-file --input package.json --output THIRD-PARTY-NOTICES --overwrite"},jy={"@babel/preset-env":"^7.14.7","@babel/preset-typescript":"^7.14.5","@microsoft/api-documenter":"^7.15.3","@microsoft/api-extractor":"^7.19.4","@playwright/test":"^1.38.0","@types/jest":"^29.5.12","@types/node":"^20.6.0","@typescript-eslint/eslint-plugin":"^6.19.1","@typescript-eslint/parser":"^6.19.1",eslint:"^7.32.0","fetch-mock-jest":"^1.5.1","generate-license-file":"^1.3.0",husky:"^8.0.3",jest:"^27.0.6","jest-fetch-mock":"^3.0.3",prettier:"^3.0.3",typescript:"^4.1.5",vite:"^4.4.9"},Vy={bail:!1,verbose:!0,collectCoverage:!0,testEnvironment:"jsdom",collectCoverageFrom:["src/**","!src/utils/**"],moduleFileExtensions:["js","ts"],moduleDirectories:["node_modules","<rootDir>"],testMatch:["<rootDir>/tests/**/*.ts"],resetMocks:!0,restoreMocks:!0,clearMocks:!0,passWithNoTests:!0},qy={ulidx:"^2.0.0"},Tf={name:Py,version:$y,description:Fy,author:By,license:Hy,main:Wy,module:Ky,types:zy,keywords:Uy,files:Gy,scripts:Yy,devDependencies:jy,jest:Vy,dependencies:qy};function Zy(e,t,n){return n.debug?(lp(!0,t,n),!0):navigator.sendBeacon(e,JSON.stringify(t))}function Jy(e,t,n){return n.debug?(lp(!1,t,n),Promise.resolve(new Response)):fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0})}function Xy(e,t){return!t&&!!navigator.userAgent&&navigator.userAgent.toLowerCase().includes("firefox")}function lp(e,t,n){var r=e?"Beacon":"fetch()";console.log("[DEBUG] AnalyticsConfig object at time of call to report():",n),console.log("[DEBUG] The following EventPayload would be sent to the Yext Events API using ".concat(r,":"),t)}var Ku=function(){return Ku=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},Ku.apply(this,arguments)},zu=function(e,t){if(!t||Object.keys(t).length===0)return e;if(!e||Object.keys(e).length===0)return t;var n=JSON.parse(JSON.stringify(e));for(var r in t)if(t.hasOwnProperty(r)){var l=t[r];l==null?delete n[r]:typeof l!="object"?n[r]=l:n[r]=zu(n[r],l)}return Ku({},n)},Qy="yextevents.com/accounts/me/events";function eN(e,t){var n=e==="SANDBOX",r=t==null?void 0:t.toLowerCase();if(n&&r==="eu")throw new Error("Sandbox environment is not available in the EU region.");return"https://"+(n?"sbx.":"")+(r??"us")+"."+Qy}var tN=function(e,t,n,r){function l(d){return d instanceof n?d:new n(function(f){f(d)})}return new(n||(n=Promise))(function(d,f){function p(E){try{T(r.next(E))}catch(S){f(S)}}function _(E){try{T(r.throw(E))}catch(S){f(S)}}function T(E){E.done?d(E.value):l(E.value).then(p,_)}T((r=r.apply(e,t||[])).next())})},nN=function(e,t){var n={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},r,l,d,f;return f={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function p(T){return function(E){return _([T,E])}}function _(T){if(r)throw new TypeError("Generator is already executing.");for(;f&&(f=0,T[0]&&(n=0)),n;)try{if(r=1,l&&(d=T[0]&2?l.return:T[0]?l.throw||((d=l.return)&&d.call(l),0):l.next)&&!(d=d.call(l,T[1])).done)return d;switch(l=0,d&&(T=[T[0]&2,d.value]),T[0]){case 0:case 1:d=T;break;case 4:return n.label++,{value:T[1],done:!1};case 5:n.label++,l=T[1],T=[0];continue;case 7:T=n.ops.pop(),n.trys.pop();continue;default:if(d=n.trys,!(d=d.length>0&&d[d.length-1])&&(T[0]===6||T[0]===2)){n=0;continue}if(T[0]===3&&(!d||T[1]>d[0]&&T[1]<d[3])){n.label=T[1];break}if(T[0]===6&&n.label<d[1]){n.label=d[1],d=T;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(T);break}d[2]&&n.ops.pop(),n.trys.pop();continue}T=t.call(e,n)}catch(E){T=[6,E],l=0}finally{r=d=0}if(T[0]&5)throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}},rN=function(){function e(t,n){if(t.authorizationType!=="apiKey"&&t.authorizationType!=="bearer")throw new Error("Authorization type must be either apiKey or bearer.");if(!t.authorization)throw new Error("Authorization must be provided.");this.config=t,this.payload=n}return e.prototype.with=function(t){var n=this.payload===void 0?t:zu(this.payload,t);return new e(this.config,n)},e.prototype.report=function(t){var n;return tN(this,void 0,void 0,function(){var r,l,d,f,p=this;return nN(this,function(_){return r=zu((n=this.payload)!==null&&n!==void 0?n:{},t??{}),this.config.sessionTrackingEnabled?r.sessionId||(r.sessionId=ky()):r.sessionId=void 0,r.clientSdk?r.clientSdk.ANALYTICS=Tf.version:r.clientSdk=(f={},f.ANALYTICS=Tf.version,f),r.authorization=this.config.authorizationType==="apiKey"?"KEY "+this.config.authorization:"Bearer "+this.config.authorization,l=Xy(r,this.config.forceFetch),d=eN(this.config.env,this.config.region),l?[2,new Promise(function(T,E){Zy(d,r,p.config)?T(""):E("Failed Beacon Call")})]:[2,Jy(d,r,this.config).then(function(T){return T}).catch(function(T){return T})]})})},e}();function iN(e){return new rN(e)}function Uu(e){return e?e.toLowerCase().trim().replace(/\s/g,""):""}function ap(e,t){return[e,t].filter(n=>!!n).map(n=>Uu(n)).join("_")}const oN=e=>{switch(Math.floor(e/1e8%10)){case 0:return"US";case 1:return"EU";default:return""}},ud=rt.createContext(null),sN=rt.lazy(()=>Promise.resolve().then(()=>require("./debugger-DtDduw6_.cjs")));function lN(e){const{children:t,apiKey:n,currency:r,templateData:l,requireOptIn:d,disableSessionTracking:f,enableDebugging:p}=e,_=rt.useRef(null),[T,E]=rt.useState(!1);rt.useEffect(()=>{E(!0)},[]),_.current===null&&(_.current=new cp(n,r,l,d,f,p??cc()));const S=_.current;return ft.jsxs(ft.Fragment,{children:[ft.jsx(ud.Provider,{value:S,children:t}),T&&(p||cc())&&Xs().name==="browser"?ft.jsx(rt.Suspense,{fallback:ft.jsx(ft.Fragment,{}),children:ft.jsx(sN,{})}):null]})}function cc(){return Xs().name!=="browser"||typeof window===void 0?!1:!!new URL(window.location.href).searchParams.get("xYextDebug")}class cp{constructor(t,n,r,l,d,f=!1){Ie(this,"_optedIn");Ie(this,"_sessionTrackingEnabled");Ie(this,"_analyticsEventService");Ie(this,"_pageViewFired",!1);this.apiKey=t,this.defaultCurrency=n,this.templateData=r,this.enableDebugging=f,this._optedIn=!l,this._sessionTrackingEnabled=!d,this.makeReporter(),this.pageView()}makeReporter(){if(Xs().name!=="browser"||!this._optedIn)return;if(!Cy()&&!this.getDebugEnabled()){console.warn("Yext Analytics disabled for non-production domains");return}const t=oN(this.templateData.document.businessId),n={authorizationType:"apiKey",authorization:this.apiKey,env:"PRODUCTION",region:t||"US",sessionTrackingEnabled:this._sessionTrackingEnabled,debug:this.getDebugEnabled()},r={pages:{siteUid:this.templateData.document.siteId,template:this.templateData.document.__.name},entity:this.templateData.document.uid||void 0,pageUrl:document.URL,referrerUrl:document.referrer!==""?document.referrer:void 0};this._analyticsEventService=iN(n).with(r)}canTrack(){return Xs().name==="browser"&&this._optedIn&&!!this._analyticsEventService}identify(t){this.canTrack()&&this._analyticsEventService&&(this._analyticsEventService=this._analyticsEventService.with({visitor:t}))}async optIn(){this._optedIn=!0,this.makeReporter(),this._pageViewFired||await this.pageView()}async pageView(){var t;if(!this.canTrack())return Promise.resolve(void 0);await((t=this._analyticsEventService)==null?void 0:t.report({action:"PAGE_VIEW"})),this._pageViewFired=!0}async track(t){var S;if(!this.canTrack())return Promise.resolve();const{action:n,scope:r,eventName:l,currency:d,amount:f,destinationUrl:p,customTags:_,customValues:T}=t;let E;f&&(E={amount:f,currency:d||this.defaultCurrency}),await((S=this._analyticsEventService)==null?void 0:S.report({action:n,pages:{scope:Uu(r)||void 0,originalEventName:ap(r||"",Uu(l)||"")},value:E,destinationUrl:p,customTags:_,customValues:T}))}getDebugEnabled(){return this.enableDebugging||cc()}}const Gu=rt.createContext({name:""}),dd=()=>rt.useContext(Gu).name;function aN(e){var f;const t=dd(),[n]=rt.useState({name:ap(t,e.name)}),r=(f=nl())==null?void 0:f.getDebugEnabled(),[l,d]=rt.useState(!1);return rt.useEffect(()=>{d(!0)},[]),r&&l?ft.jsx("section",{"data-ya-scope":n.name,children:ft.jsx(Gu.Provider,{value:n,children:e.children})}):ft.jsx(Gu.Provider,{value:n,children:e.children})}function nl(){const e=rt.useContext(ud);if(!e)return e;Xs().name==="browser"&&!window.setAnalyticsOptIn&&(window.setAnalyticsOptIn=async()=>{await e.optIn()});const t=dd();return{getDebugEnabled(){return e.getDebugEnabled()},identify(n){return e.identify(n)},optIn(){return e.optIn()},pageView(){return e.pageView()},track(n){return e.track({...n,scope:n.scope??t})}}}const cN=()=>{var e;return(e=nl())==null?void 0:e.track},uN=()=>{var e;return(e=nl())==null?void 0:e.pageView},dN=()=>{var e;return(e=nl())==null?void 0:e.identify},xo={INTRINSIC:"intrinsic",FIXED:"fixed",ASPECT:"aspect",FILL:"fill"},fN=e=>{const t=e.protocol.slice(0,-1);if(t!=="http"&&t!=="https"){console.error(`Invalid scheme: ${e}`);return}const n=e.hostname;let r;if(n==="a.mktgcdn.com")r="us";else{if(n.replace("a.","").replace(".mktgcdn.com","")!=="eu"){console.error(`Invalid host: ${e}`);return}r="eu"}if(!e.pathname.startsWith("/f")){console.error(`Invalid path: ${e}`);return}const l=e.pathname.replace(/^\//,"").split("/");if(l.length<2||l.length>3){console.error(`Invalid path: ${e}`);return}let d;if(l[0]==="f")d="prod";else switch(l[0].replace("f-","")){case"sandbox":{d="sbx";break}case"qa":{d="qa";break}case"dev":{d="dev";break}default:{console.error(`Invalid path: ${e}`);return}}if(r==="eu"&&(d==="dev"||d==="sbx")){console.error(`Invalid path: ${e}`);return}let f;if(l.length===3&&(f=parseInt(l[1]),Number.isNaN(f))){console.error(`Invalid account id: ${e}`);return}const p=l[l.length-1].split("."),_=p.length===2?`.${p[1]}`:"",T=p[0];return{scheme:t,partition:r,env:d,accountId:f,contentHash:T,extension:_}},hN=(e,t,n)=>{const r=`https://dyn${e.partition==="us"?"":`.${e.partition}`}.mktgcdn.com`;let l="f";switch(e.env){case"prod":break;case"sbx":{l+="-sandbox";break}default:l+=`-${e.env.toString()}`}const d=e.accountId!==void 0?`${e.accountId}/`:"";return`${r}/${l}/${d}${e.contentHash}${e.extension}/width=${Math.round(t)},height=${Math.round(n)}`},gN=e=>{const t=e.protocol.slice(0,-1);if(t!=="http"&&t!=="https"){console.error(`Invalid scheme: ${e}`);return}if(e.hostname!=="a.mktgcdn.com"){console.error(`Invalid host: ${e}`);return}if(!e.pathname.startsWith("/p")){console.error(`Invalid path: ${e}`);return}const n=e.pathname.replace(/^\//,"").split("/");if(n.length<3||n.length>4){console.error(`Invalid path: ${e}`);return}let r;if(n[0]==="p")r="prod";else switch(n[0].replace("p-","")){case"sandbox":{r="sbx";break}case"qa":{r="qa";break}case"dev":{r="dev";break}default:{console.error(`Invalid path: ${e}`);return}}const l=n[1];let d;if(n.length===4){if(!n[2].includes(".")){console.error(`Invalid aspect ratio: ${e}`);return}if(d=parseFloat(n[2]),Number.isNaN(d)||n[2].split(".")[1].length!==4){console.error(`Invalid aspect ratio: ${e}`);return}}const f=n[n.length-1].split("."),p=f.length===2?`.${f[1]}`:"",_=f[0];return{scheme:t,env:r,contentHash:l,aspectRatio:d,name:_,extension:p}},pN=(e,t,n)=>{const r="https://dyn.mktgcdn.com";let l="p";switch(e.env){case"prod":break;case"sbx":{l+="-sandbox";break}default:l+=`-${e.env.toString()}`}return`${r}/${l}/${e.contentHash}/width=${Math.round(t)},height=${Math.round(n)}`},Yu=(e,t,n)=>{if(!up(e)){console.error(`Invalid image url: ${e}.`);return}const r=new URL(e);if(r.pathname.startsWith("/p")){const l=gN(r);if(l)return pN(l,t,n)}else if(r.pathname.startsWith("/f")){const l=fN(r);if(l)return hN(l,t,n)}return e},up=e=>{let t;try{t=new URL(e)}catch{return!1}return t.protocol==="http:"||t.protocol==="https:"},mN=({image:e,className:t,width:n,height:r,aspectRatio:l,layout:d=xo.INTRINSIC,placeholder:f,imgOverrides:p,style:_={},loading:T="lazy"})=>{const E=rt.useRef(null),[S,w]=rt.useState(!1),M="image"in e?e.image:e;rt.useEffect(()=>{var ce;(ce=E.current)!=null&&ce.complete&&w(!0)},[]),_N(d,M.width,M.height,n,r,l);const m=Math.abs(M.width);m||console.warn("Invalid image width.");const v=Math.abs(M.height);if(v||console.warn("Invalid image height."),!up(M.url))return console.error(`Invalid image url: ${M.url}`),ft.jsx(ft.Fragment,{children:f!=null&&f});const k=n&&n>0?n:void 0,G=r&&r>0?r:void 0,{src:I,imgStyle:P,widths:H}=yN(d,m,v,_,M.url,k,G,l),j=H.map(ce=>`${Yu(M.url,ce,v/m*ce)} ${ce}w`).join(", "),re=[640,768,1024,1280,1536],te=H.map((ce,V)=>V===H.length-1?`${ce}px`:`(max-width: ${re[V]}px) ${ce}px`).join(", ");return ft.jsxs(ft.Fragment,{children:[!S&&f!=null&&f,ft.jsx("img",{ref:E,style:P,src:I,className:t,width:k,height:G,srcSet:j,sizes:te,loading:T,alt:M.alternateText||"",...p})]})},_N=(e,t,n,r,l,d)=>{if(t<0&&console.warn(`Invalid image width: ${t}.`),n<0&&console.warn(`Invalid image height: ${n}.`),e===xo.FIXED){if(!r&&!l){console.warn("Using fixed layout but neither width nor height is passed as props.");return}r&&r<0&&console.warn(`Using fixed layout but width is invalid: ${r}.`),l&&l<0&&console.warn(`Using fixed layout but height is invalid: ${l}.`);return}(r||l)&&console.warn("Width or height is passed in but layout is not fixed. These will have no impact. If you want to have a fixed height or width then set layout to fixed."),e===xo.ASPECT&&!d&&console.warn("Using aspect layout but aspectRatio is not passed as a prop.")},yN=(e,t,n,r,l,d,f,p)=>{let _=[100,320,640,960,1280,1920],T=Yu(l,500,500);const E={...r};switch(E.objectFit=E.objectFit||"cover",E.objectPosition=E.objectPosition||"center",e){case xo.INTRINSIC:E.maxWidth=t,E.width="100%",E.aspectRatio=p?`${p}`:`${t} / ${n}`;break;case xo.FIXED:{const{fixedWidth:S,fixedHeight:w,fixedWidths:M}=NN(t,n,_,d,f);E.width=S,E.height=w,_=M,T=Yu(l,S,w);break}case xo.ASPECT:E.aspectRatio=p?`${p}`:`${t} / ${n}`;break;case xo.FILL:E.width="100%",E.aspectRatio=p?`${p}`:`${t} / ${n}`;break;default:console.warn(`Unrecognized layout: ${e}.`);break}return{src:T,imgStyle:E,widths:_}},NN=(e,t,n,r,l)=>r&&l?{fixedWidth:r,fixedHeight:l,fixedWidths:[r]}:r?{fixedWidth:r,fixedHeight:r*t/e,fixedWidths:[r]}:l?{fixedWidth:l/t*e,fixedHeight:l,fixedWidths:[l/t*e]}:{fixedWidth:e,fixedHeight:t,fixedWidths:n};var dp={exports:{}};/*!
|
|
33
33
|
Copyright (c) 2018 Jed Watson.
|
|
34
34
|
Licensed under the MIT License (MIT), see
|
|
35
35
|
http://jedwatson.github.io/classnames
|
|
@@ -106,6 +106,6 @@ caused by: ${Ai.fullStack(n)}`:t.stack??""}static info(t){Yc(t);const n={},r=Ai.
|
|
|
106
106
|
`});const T={type:"element",tagName:"li",properties:d,children:f};return e.patch(t,T),e.applyData(t,T)}function DT(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=nm(n[r])}return t}function nm(e){const t=e.spread;return t??e.children.length>1}function AT(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<r.length;){const f=r[l];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const d={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,d),e.applyData(t,d)}function MT(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RT(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function bT(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const wd=rm("start"),Od=rm("end");function LT(e){return{start:wd(e),end:Od(e)}}function rm(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function IT(e,t){const n=e.all(t),r=n.shift(),l=[];if(r){const f={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],f),l.push(f)}if(n.length>0){const f={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},p=wd(t.children[1]),_=Od(t.children[t.children.length-1]);p.line&&_.line&&(f.position={start:p,end:_}),l.push(f)}const d={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,d),e.applyData(t,d)}function kT(e,t,n){const r=n?n.children:void 0,d=(r?r.indexOf(t):1)===0?"th":"td",f=n&&n.type==="table"?n.align:void 0,p=f?f.length:t.children.length;let _=-1;const T=[];for(;++_<p;){const S=t.children[_],w={},M=f?f[_]:void 0;M&&(w.align=M);let m={type:"element",tagName:d,properties:w,children:[]};S&&(m.children=e.all(S),e.patch(S,m),m=e.applyData(t,m)),T.push(m)}const E={type:"element",tagName:"tr",properties:{},children:e.wrap(T,!0)};return e.patch(t,E),e.applyData(t,E)}function PT(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Cg=9,Eg=32;function $T(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),l=0;const d=[];for(;r;)d.push(Tg(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return d.push(Tg(t.slice(l),l>0,!1)),d.join("")}function Tg(e,t,n){let r=0,l=e.length;if(t){let d=e.codePointAt(r);for(;d===Cg||d===Eg;)r++,d=e.codePointAt(r)}if(n){let d=e.codePointAt(l-1);for(;d===Cg||d===Eg;)l--,d=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function FT(e,t){const n={type:"text",value:$T(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function BT(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const HT={blockquote:gT,break:pT,code:mT,delete:_T,emphasis:yT,footnoteReference:em,footnote:NT,heading:CT,html:ET,imageReference:TT,image:xT,inlineCode:vT,linkReference:ST,link:wT,listItem:OT,list:AT,paragraph:MT,root:RT,strong:bT,table:IT,tableCell:PT,tableRow:kT,text:FT,thematicBreak:BT,toml:Ja,yaml:Ja,definition:Ja,footnoteDefinition:Ja};function Ja(){return null}const im=function(e){if(e==null)return UT;if(typeof e=="string")return zT(e);if(typeof e=="object")return Array.isArray(e)?WT(e):KT(e);if(typeof e=="function")return Cc(e);throw new Error("Expected function, string, or object as test")};function WT(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=im(e[n]);return Cc(r);function r(...l){let d=-1;for(;++d<t.length;)if(t[d].call(this,...l))return!0;return!1}}function KT(e){return Cc(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function zT(e){return Cc(t);function t(n){return n&&n.type===e}}function Cc(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function UT(){return!0}const GT=!0,xg=!1,YT="skip",jT=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const l=im(t),d=r?-1:1;f(e,void 0,[])();function f(p,_,T){const E=p&&typeof p=="object"?p:{};if(typeof E.type=="string"){const w=typeof E.tagName=="string"?E.tagName:typeof E.name=="string"?E.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(p.type+(w?"<"+w+">":""))+")"})}return S;function S(){let w=[],M,m,v;if((!t||l(p,_,T[T.length-1]||null))&&(w=VT(n(p,T)),w[0]===xg))return w;if(p.children&&w[0]!==YT)for(m=(r?p.children.length:-1)+d,v=T.concat(p);m>-1&&m<p.children.length;){if(M=f(p.children[m],m,v)(),M[0]===xg)return M;m=typeof M[1]=="number"?M[1]:m+d}return w}}};function VT(e){return Array.isArray(e)?e:typeof e=="number"?[GT,e]:[e]}const Dd=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),jT(e,t,l,r);function l(d,f){const p=f[f.length-1];return n(d,p?p.children.indexOf(d):null,p)}};function qT(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const vg={}.hasOwnProperty;function ZT(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Dd(e,"definition",r=>{const l=Sg(r.identifier);l&&!vg.call(t,l)&&(t[l]=r)}),n;function n(r){const l=Sg(r);return l&&vg.call(t,l)?t[l]:null}}function Sg(e){return String(e||"").toUpperCase()}const fc={}.hasOwnProperty;function JT(e,t){const n=t||{},r=n.allowDangerousHtml||!1,l={};return f.dangerous=r,f.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,f.footnoteLabel=n.footnoteLabel||"Footnotes",f.footnoteLabelTagName=n.footnoteLabelTagName||"h2",f.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},f.footnoteBackLabel=n.footnoteBackLabel||"Back to content",f.unknownHandler=n.unknownHandler,f.passThrough=n.passThrough,f.handlers={...HT,...n.handlers},f.definition=ZT(e),f.footnoteById=l,f.footnoteOrder=[],f.footnoteCounts={},f.patch=XT,f.applyData=QT,f.one=p,f.all=_,f.wrap=tx,f.augment=d,Dd(e,"footnoteDefinition",T=>{const E=String(T.identifier).toUpperCase();fc.call(l,E)||(l[E]=T)}),f;function d(T,E){if(T&&"data"in T&&T.data){const S=T.data;S.hName&&(E.type!=="element"&&(E={type:"element",tagName:"",properties:{},children:[]}),E.tagName=S.hName),E.type==="element"&&S.hProperties&&(E.properties={...E.properties,...S.hProperties}),"children"in E&&E.children&&S.hChildren&&(E.children=S.hChildren)}if(T){const S="type"in T?T:{position:T};qT(S)||(E.position={start:wd(S),end:Od(S)})}return E}function f(T,E,S,w){return Array.isArray(S)&&(w=S,S={}),d(T,{type:"element",tagName:E,properties:S||{},children:w||[]})}function p(T,E){return om(f,T,E)}function _(T){return ro(f,T)}}function XT(e,t){e.position&&(t.position=LT(e))}function QT(e,t){let n=t;if(e&&e.data){const r=e.data.hName,l=e.data.hChildren,d=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&d&&(n.properties={...n.properties,...d}),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function om(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return fc.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:ro(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):ex(e,t)}function ro(e,t){const n=[];if("children"in t){const r=t.children;let l=-1;for(;++l<r.length;){const d=om(e,r[l],t);if(d){if(l&&r[l-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=d.value.replace(/^\s+/,"")),!Array.isArray(d)&&d.type==="element")){const f=d.children[0];f&&f.type==="text"&&(f.value=f.value.replace(/^\s+/,""))}Array.isArray(d)?n.push(...d):n.push(d)}}}return n}function ex(e,t){const n=t.data||{},r="value"in t&&!(fc.call(n,"hProperties")||fc.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:ro(e,t)};return e.patch(t,r),e.applyData(t,r)}function tx(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
107
107
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
108
108
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
109
|
-
`}),n}const nx=(e,t)=>e(t,"i",ro(e,t)),rx=(e,t)=>e(t,"b",ro(e,t)),ix=(e,t)=>e(t,"u",ro(e,t)),ox=(e,t)=>e(t,"s",ro(e,t)),sx=(e,t)=>e(t,"sub",ro(e,t)),lx=(e,t)=>e(t,"sup",ro(e,t)),ax={emphasis:nx,strong:rx,underline:ix,strikethrough:ox,subscript:sx,superscript:lx},cx=e=>{const[t,n]=rt.useState();let r;return rt.useEffect(()=>{(async()=>{if(!r)try{r=(await Promise.resolve().then(()=>require("./index-Dpvz9qZ8.cjs"))).default}catch{throw new Error("Failed to import React Markdown, cannot properly render LegacyRichText.")}const d=r({children:e.markdown,remarkPlugins:[hT],remarkRehypeOptions:{handlers:ax}});n(d)})()},[e.markdown]),t||null};class us extends Error{}class ux extends us{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class dx extends us{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class fx extends us{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class qs extends us{}class sm extends us{constructor(t){super(`Invalid unit ${t}`)}}class _r extends us{}class No extends us{constructor(){super("Zone is an abstract class")}}const lt="numeric",pi="short",Gr="long",hc={year:lt,month:lt,day:lt},lm={year:lt,month:pi,day:lt},hx={year:lt,month:pi,day:lt,weekday:pi},am={year:lt,month:Gr,day:lt},cm={year:lt,month:Gr,day:lt,weekday:Gr},um={hour:lt,minute:lt},dm={hour:lt,minute:lt,second:lt},fm={hour:lt,minute:lt,second:lt,timeZoneName:pi},hm={hour:lt,minute:lt,second:lt,timeZoneName:Gr},gm={hour:lt,minute:lt,hourCycle:"h23"},pm={hour:lt,minute:lt,second:lt,hourCycle:"h23"},mm={hour:lt,minute:lt,second:lt,hourCycle:"h23",timeZoneName:pi},_m={hour:lt,minute:lt,second:lt,hourCycle:"h23",timeZoneName:Gr},ym={year:lt,month:lt,day:lt,hour:lt,minute:lt},Nm={year:lt,month:lt,day:lt,hour:lt,minute:lt,second:lt},Cm={year:lt,month:pi,day:lt,hour:lt,minute:lt},Em={year:lt,month:pi,day:lt,hour:lt,minute:lt,second:lt},gx={year:lt,month:pi,day:lt,weekday:pi,hour:lt,minute:lt},Tm={year:lt,month:Gr,day:lt,hour:lt,minute:lt,timeZoneName:pi},xm={year:lt,month:Gr,day:lt,hour:lt,minute:lt,second:lt,timeZoneName:pi},vm={year:lt,month:Gr,day:lt,weekday:Gr,hour:lt,minute:lt,timeZoneName:Gr},Sm={year:lt,month:Gr,day:lt,weekday:Gr,hour:lt,minute:lt,second:lt,timeZoneName:Gr};class ca{get type(){throw new No}get name(){throw new No}get ianaName(){return this.name}get isUniversal(){throw new No}offsetName(t,n){throw new No}formatOffset(t,n){throw new No}offset(t){throw new No}equals(t){throw new No}get isValid(){throw new No}}let bu=null;class Ec extends ca{static get instance(){return bu===null&&(bu=new Ec),bu}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Im(t,n,r)}formatOffset(t,n){return oa(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let oc={};function px(e){return oc[e]||(oc[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),oc[e]}const mx={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function _x(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,l,d,f,p,_,T,E]=r;return[f,l,d,p,_,T,E]}function yx(e,t){const n=e.formatToParts(t),r=[];for(let l=0;l<n.length;l++){const{type:d,value:f}=n[l],p=mx[d];d==="era"?r[p]=f:It(p)||(r[p]=parseInt(f,10))}return r}let Xa={};class no extends ca{static create(t){return Xa[t]||(Xa[t]=new no(t)),Xa[t]}static resetCache(){Xa={},oc={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=no.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Im(t,n,r,this.name)}formatOffset(t,n){return oa(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const r=px(this.name);let[l,d,f,p,_,T,E]=r.formatToParts?yx(r,n):_x(r,n);p==="BC"&&(l=-Math.abs(l)+1);const w=xc({year:l,month:d,day:f,hour:_===24?0:_,minute:T,second:E,millisecond:0});let M=+n;const m=M%1e3;return M-=m>=0?m:1e3+m,(w-M)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let wg={};function Nx(e,t={}){const n=JSON.stringify([e,t]);let r=wg[n];return r||(r=new Intl.ListFormat(e,t),wg[n]=r),r}let Xu={};function Qu(e,t={}){const n=JSON.stringify([e,t]);let r=Xu[n];return r||(r=new Intl.DateTimeFormat(e,t),Xu[n]=r),r}let ed={};function Cx(e,t={}){const n=JSON.stringify([e,t]);let r=ed[n];return r||(r=new Intl.NumberFormat(e,t),ed[n]=r),r}let td={};function Ex(e,t={}){const{base:n,...r}=t,l=JSON.stringify([e,r]);let d=td[l];return d||(d=new Intl.RelativeTimeFormat(e,t),td[l]=d),d}let ta=null;function Tx(){return ta||(ta=new Intl.DateTimeFormat().resolvedOptions().locale,ta)}let Og={};function xx(e){let t=Og[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Og[e]=t}return t}function vx(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,l;try{r=Qu(e).resolvedOptions(),l=e}catch{const _=e.substring(0,n);r=Qu(_).resolvedOptions(),l=_}const{numberingSystem:d,calendar:f}=r;return[l,d,f]}}function Sx(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function wx(e){const t=[];for(let n=1;n<=12;n++){const r=Dt.utc(2009,n,1);t.push(e(r))}return t}function Ox(e){const t=[];for(let n=1;n<=7;n++){const r=Dt.utc(2016,11,13+n);t.push(e(r))}return t}function Qa(e,t,n,r){const l=e.listingMode();return l==="error"?null:l==="en"?n(t):r(t)}function Dx(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class Ax{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:l,floor:d,...f}=r;if(!n||Object.keys(f).length>0){const p={useGrouping:!1,...r};r.padTo>0&&(p.minimumIntegerDigits=r.padTo),this.inf=Cx(t,p)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Ld(t,3);return zn(n,this.padTo)}}}class Mx{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let l;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const f=-1*(t.offset/60),p=f>=0?`Etc/GMT+${f}`:`Etc/GMT${f}`;t.offset!==0&&no.create(p).valid?(l=p,this.dt=t):(l="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,l=t.zone.name):(l="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const d={...this.opts};d.timeZone=d.timeZone||l,this.dtf=Qu(n,d)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class Rx{constructor(t,n,r){this.opts={style:"long",...r},!n&&bm()&&(this.rtf=Ex(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):ev(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const bx={firstDay:1,minimalDays:4,weekend:[6,7]};class an{static fromOpts(t){return an.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,l,d=!1){const f=t||Rn.defaultLocale,p=f||(d?"en-US":Tx()),_=n||Rn.defaultNumberingSystem,T=r||Rn.defaultOutputCalendar,E=nd(l)||Rn.defaultWeekSettings;return new an(p,_,T,E,f)}static resetCache(){ta=null,Xu={},ed={},td={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:l}={}){return an.create(t,n,r,l)}constructor(t,n,r,l,d){const[f,p,_]=vx(t);this.locale=f,this.numberingSystem=n||p||null,this.outputCalendar=r||_||null,this.weekSettings=l,this.intl=Sx(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=d,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Dx(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:an.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,nd(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return Qa(this,t,$m,()=>{const r=n?{month:t,day:"numeric"}:{month:t},l=n?"format":"standalone";return this.monthsCache[l][t]||(this.monthsCache[l][t]=wx(d=>this.extract(d,r,"month"))),this.monthsCache[l][t]})}weekdays(t,n=!1){return Qa(this,t,Hm,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},l=n?"format":"standalone";return this.weekdaysCache[l][t]||(this.weekdaysCache[l][t]=Ox(d=>this.extract(d,r,"weekday"))),this.weekdaysCache[l][t]})}meridiems(){return Qa(this,void 0,()=>Wm,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Dt.utc(2016,11,13,9),Dt.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Qa(this,t,Km,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Dt.utc(-40,1,1),Dt.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const l=this.dtFormatter(t,n),d=l.formatToParts(),f=d.find(p=>p.type.toLowerCase()===r);return f?f.value:null}numberFormatter(t={}){return new Ax(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new Mx(t,this.intl,n)}relFormatter(t={}){return new Rx(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Nx(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Lm()?xx(this.locale):bx}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Lu=null;class xr extends ca{static get utcInstance(){return Lu===null&&(Lu=new xr(0)),Lu}static instance(t){return t===0?xr.utcInstance:new xr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new xr(vc(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${oa(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${oa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return oa(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Lx extends ca{constructor(t){super(),this.zoneName=t}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 To(e,t){if(It(e)||e===null)return t;if(e instanceof ca)return e;if(Bx(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Ec.instance:n==="utc"||n==="gmt"?xr.utcInstance:xr.parseSpecifier(n)||no.create(e)}else return vo(e)?xr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Lx(e)}const Ad={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Dg={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]},Ix=Ad.hanidec.replace(/[\[|\]]/g,"").split("");function kx(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(Ad.hanidec)!==-1)t+=Ix.indexOf(e[n]);else for(const l in Dg){const[d,f]=Dg[l];r>=d&&r<=f&&(t+=r-d)}}return parseInt(t,10)}else return t}let Vs={};function Px(){Vs={}}function fi({numberingSystem:e},t=""){const n=e||"latn";return Vs[n]||(Vs[n]={}),Vs[n][t]||(Vs[n][t]=new RegExp(`${Ad[n]}${t}`)),Vs[n][t]}let Ag=()=>Date.now(),Mg="system",Rg=null,bg=null,Lg=null,Ig=60,kg,Pg=null;class Rn{static get now(){return Ag}static set now(t){Ag=t}static set defaultZone(t){Mg=t}static get defaultZone(){return To(Mg,Ec.instance)}static get defaultLocale(){return Rg}static set defaultLocale(t){Rg=t}static get defaultNumberingSystem(){return bg}static set defaultNumberingSystem(t){bg=t}static get defaultOutputCalendar(){return Lg}static set defaultOutputCalendar(t){Lg=t}static get defaultWeekSettings(){return Pg}static set defaultWeekSettings(t){Pg=nd(t)}static get twoDigitCutoffYear(){return Ig}static set twoDigitCutoffYear(t){Ig=t%100}static get throwOnInvalid(){return kg}static set throwOnInvalid(t){kg=t}static resetCaches(){an.resetCache(),no.resetCache(),Dt.resetCache(),Px()}}class gi{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const wm=[0,31,59,90,120,151,181,212,243,273,304,334],Om=[0,31,60,91,121,152,182,213,244,274,305,335];function Qr(e,t){return new gi("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Md(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const l=r.getUTCDay();return l===0?7:l}function Dm(e,t,n){return n+(ua(e)?Om:wm)[t-1]}function Am(e,t){const n=ua(e)?Om:wm,r=n.findIndex(d=>d<t),l=t-n[r];return{month:r+1,day:l}}function Rd(e,t){return(e-t+7)%7+1}function gc(e,t=4,n=1){const{year:r,month:l,day:d}=e,f=Dm(r,l,d),p=Rd(Md(r,l,d),n);let _=Math.floor((f-p+14-t)/7),T;return _<1?(T=r-1,_=aa(T,t,n)):_>aa(r,t,n)?(T=r+1,_=1):T=r,{weekYear:T,weekNumber:_,weekday:p,...Sc(e)}}function $g(e,t=4,n=1){const{weekYear:r,weekNumber:l,weekday:d}=e,f=Rd(Md(r,1,t),n),p=Zs(r);let _=l*7+d-f-7+t,T;_<1?(T=r-1,_+=Zs(T)):_>p?(T=r+1,_-=Zs(r)):T=r;const{month:E,day:S}=Am(T,_);return{year:T,month:E,day:S,...Sc(e)}}function Iu(e){const{year:t,month:n,day:r}=e,l=Dm(t,n,r);return{year:t,ordinal:l,...Sc(e)}}function Fg(e){const{year:t,ordinal:n}=e,{month:r,day:l}=Am(t,n);return{year:t,month:r,day:l,...Sc(e)}}function Bg(e,t){if(!It(e.localWeekday)||!It(e.localWeekNumber)||!It(e.localWeekYear)){if(!It(e.weekday)||!It(e.weekNumber)||!It(e.weekYear))throw new qs("Cannot mix locale-based week fields with ISO-based week fields");return It(e.localWeekday)||(e.weekday=e.localWeekday),It(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),It(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function $x(e,t=4,n=1){const r=Tc(e.weekYear),l=ei(e.weekNumber,1,aa(e.weekYear,t,n)),d=ei(e.weekday,1,7);return r?l?d?!1:Qr("weekday",e.weekday):Qr("week",e.weekNumber):Qr("weekYear",e.weekYear)}function Fx(e){const t=Tc(e.year),n=ei(e.ordinal,1,Zs(e.year));return t?n?!1:Qr("ordinal",e.ordinal):Qr("year",e.year)}function Mm(e){const t=Tc(e.year),n=ei(e.month,1,12),r=ei(e.day,1,pc(e.year,e.month));return t?n?r?!1:Qr("day",e.day):Qr("month",e.month):Qr("year",e.year)}function Rm(e){const{hour:t,minute:n,second:r,millisecond:l}=e,d=ei(t,0,23)||t===24&&n===0&&r===0&&l===0,f=ei(n,0,59),p=ei(r,0,59),_=ei(l,0,999);return d?f?p?_?!1:Qr("millisecond",l):Qr("second",r):Qr("minute",n):Qr("hour",t)}function It(e){return typeof e>"u"}function vo(e){return typeof e=="number"}function Tc(e){return typeof e=="number"&&e%1===0}function Bx(e){return typeof e=="string"}function Hx(e){return Object.prototype.toString.call(e)==="[object Date]"}function bm(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Lm(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Wx(e){return Array.isArray(e)?e:[e]}function Hg(e,t,n){if(e.length!==0)return e.reduce((r,l)=>{const d=[t(l),l];return r&&n(r[0],d[0])===r[0]?r:d},null)[1]}function Kx(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function el(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nd(e){if(e==null)return null;if(typeof e!="object")throw new _r("Week settings must be an object");if(!ei(e.firstDay,1,7)||!ei(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!ei(t,1,7)))throw new _r("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function ei(e,t,n){return Tc(e)&&e>=t&&e<=n}function zx(e,t){return e-t*Math.floor(e/t)}function zn(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Eo(e){if(!(It(e)||e===null||e===""))return parseInt(e,10)}function es(e){if(!(It(e)||e===null||e===""))return parseFloat(e)}function bd(e){if(!(It(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Ld(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function ua(e){return e%4===0&&(e%100!==0||e%400===0)}function Zs(e){return ua(e)?366:365}function pc(e,t){const n=zx(t-1,12)+1,r=e+(t-n)/12;return n===2?ua(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function xc(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),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Wg(e,t,n){return-Rd(Md(e,1,t),n)+t-1}function aa(e,t=4,n=1){const r=Wg(e,t,n),l=Wg(e+1,t,n);return(Zs(e)-r+l)/7}function rd(e){return e>99?e:e>Rn.twoDigitCutoffYear?1900+e:2e3+e}function Im(e,t,n,r=null){const l=new Date(e),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(d.timeZone=r);const f={timeZoneName:t,...d},p=new Intl.DateTimeFormat(n,f).formatToParts(l).find(_=>_.type.toLowerCase()==="timezonename");return p?p.value:null}function vc(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,l=n<0||Object.is(n,-0)?-r:r;return n*60+l}function km(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new _r(`Invalid unit value ${e}`);return t}function mc(e,t){const n={};for(const r in e)if(el(e,r)){const l=e[r];if(l==null)continue;n[t(r)]=km(l)}return n}function oa(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),l=e>=0?"+":"-";switch(t){case"short":return`${l}${zn(n,2)}:${zn(r,2)}`;case"narrow":return`${l}${n}${r>0?`:${r}`:""}`;case"techie":return`${l}${zn(n,2)}${zn(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Sc(e){return Kx(e,["hour","minute","second","millisecond"])}const Ux=["January","February","March","April","May","June","July","August","September","October","November","December"],Pm=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Gx=["J","F","M","A","M","J","J","A","S","O","N","D"];function $m(e){switch(e){case"narrow":return[...Gx];case"short":return[...Pm];case"long":return[...Ux];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}}const Fm=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Bm=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Yx=["M","T","W","T","F","S","S"];function Hm(e){switch(e){case"narrow":return[...Yx];case"short":return[...Bm];case"long":return[...Fm];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Wm=["AM","PM"],jx=["Before Christ","Anno Domini"],Vx=["BC","AD"],qx=["B","A"];function Km(e){switch(e){case"narrow":return[...qx];case"short":return[...Vx];case"long":return[...jx];default:return null}}function Zx(e){return Wm[e.hour<12?0:1]}function Jx(e,t){return Hm(t)[e.weekday-1]}function Xx(e,t){return $m(t)[e.month-1]}function Qx(e,t){return Km(t)[e.year<0?0:1]}function ev(e,t,n="always",r=!1){const l={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."]},d=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&d){const S=e==="days";switch(t){case 1:return S?"tomorrow":`next ${l[e][0]}`;case-1:return S?"yesterday":`last ${l[e][0]}`;case 0:return S?"today":`this ${l[e][0]}`}}const f=Object.is(t,-0)||t<0,p=Math.abs(t),_=p===1,T=l[e],E=r?_?T[1]:T[2]||T[1]:_?l[e][0]:e;return f?`${p} ${E} ago`:`in ${p} ${E}`}function Kg(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const tv={D:hc,DD:lm,DDD:am,DDDD:cm,t:um,tt:dm,ttt:fm,tttt:hm,T:gm,TT:pm,TTT:mm,TTTT:_m,f:ym,ff:Cm,fff:Tm,ffff:vm,F:Nm,FF:Em,FFF:xm,FFFF:Sm};class yr{static create(t,n={}){return new yr(t,n)}static parseFormat(t){let n=null,r="",l=!1;const d=[];for(let f=0;f<t.length;f++){const p=t.charAt(f);p==="'"?(r.length>0&&d.push({literal:l||/^\s+$/.test(r),val:r}),n=null,r="",l=!l):l||p===n?r+=p:(r.length>0&&d.push({literal:/^\s+$/.test(r),val:r}),r=p,n=p)}return r.length>0&&d.push({literal:l||/^\s+$/.test(r),val:r}),d}static macroTokenToFormatOpts(t){return tv[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return zn(t,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=(M,m)=>this.loc.extract(t,M,m),f=M=>t.isOffsetFixed&&t.offset===0&&M.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,M.format):"",p=()=>r?Zx(t):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),_=(M,m)=>r?Xx(t,M):d(m?{month:M}:{month:M,day:"numeric"},"month"),T=(M,m)=>r?Jx(t,M):d(m?{weekday:M}:{weekday:M,month:"long",day:"numeric"},"weekday"),E=M=>{const m=yr.macroTokenToFormatOpts(M);return m?this.formatWithSystemDefault(t,m):M},S=M=>r?Qx(t,M):d({era:M},"era"),w=M=>{switch(M){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return f({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return f({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return f({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return p();case"d":return l?d({day:"numeric"},"day"):this.num(t.day);case"dd":return l?d({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return T("short",!0);case"cccc":return T("long",!0);case"ccccc":return T("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return T("short",!1);case"EEEE":return T("long",!1);case"EEEEE":return T("narrow",!1);case"L":return l?d({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return l?d({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return _("short",!0);case"LLLL":return _("long",!0);case"LLLLL":return _("narrow",!0);case"M":return l?d({month:"numeric"},"month"):this.num(t.month);case"MM":return l?d({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return _("short",!1);case"MMMM":return _("long",!1);case"MMMMM":return _("narrow",!1);case"y":return l?d({year:"numeric"},"year"):this.num(t.year);case"yy":return l?d({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return l?d({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return l?d({year:"numeric"},"year"):this.num(t.year,6);case"G":return S("short");case"GG":return S("long");case"GGGGG":return S("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return E(M)}};return Kg(yr.parseFormat(n),w)}formatDurationFromString(t,n){const r=_=>{switch(_[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=_=>T=>{const E=r(T);return E?this.num(_.get(E),T.length):T},d=yr.parseFormat(n),f=d.reduce((_,{literal:T,val:E})=>T?_:_.concat(E),[]),p=t.shiftTo(...f.map(r).filter(_=>_));return Kg(d,l(p))}}const zm=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ll(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function al(...e){return t=>e.reduce(([n,r,l],d)=>{const[f,p,_]=d(t,l);return[{...n,...f},p||r,_]},[{},null,1]).slice(0,2)}function cl(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const l=n.exec(e);if(l)return r(l)}return[null,null]}function Um(...e){return(t,n)=>{const r={};let l;for(l=0;l<e.length;l++)r[e[l]]=Eo(t[n+l]);return[r,null,n+l]}}const Gm=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,nv=`(?:${Gm.source}?(?:\\[(${zm.source})\\])?)?`,Id=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ym=RegExp(`${Id.source}${nv}`),kd=RegExp(`(?:T${Ym.source})?`),rv=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,iv=/(\d{4})-?W(\d\d)(?:-?(\d))?/,ov=/(\d{4})-?(\d{3})/,sv=Um("weekYear","weekNumber","weekDay"),lv=Um("year","ordinal"),av=/(\d{4})-(\d\d)-(\d\d)/,jm=RegExp(`${Id.source} ?(?:${Gm.source}|(${zm.source}))?`),cv=RegExp(`(?: ${jm.source})?`);function Js(e,t,n){const r=e[t];return It(r)?n:Eo(r)}function uv(e,t){return[{year:Js(e,t),month:Js(e,t+1,1),day:Js(e,t+2,1)},null,t+3]}function ul(e,t){return[{hours:Js(e,t,0),minutes:Js(e,t+1,0),seconds:Js(e,t+2,0),milliseconds:bd(e[t+3])},null,t+4]}function da(e,t){const n=!e[t]&&!e[t+1],r=vc(e[t+1],e[t+2]),l=n?null:xr.instance(r);return[{},l,t+3]}function fa(e,t){const n=e[t]?no.create(e[t]):null;return[{},n,t+1]}const dv=RegExp(`^T?${Id.source}$`),fv=/^-?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 hv(e){const[t,n,r,l,d,f,p,_,T]=e,E=t[0]==="-",S=_&&_[0]==="-",w=(M,m=!1)=>M!==void 0&&(m||M&&E)?-M:M;return[{years:w(es(n)),months:w(es(r)),weeks:w(es(l)),days:w(es(d)),hours:w(es(f)),minutes:w(es(p)),seconds:w(es(_),_==="-0"),milliseconds:w(bd(T),S)}]}const gv={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Pd(e,t,n,r,l,d,f){const p={year:t.length===2?rd(Eo(t)):Eo(t),month:Pm.indexOf(n)+1,day:Eo(r),hour:Eo(l),minute:Eo(d)};return f&&(p.second=Eo(f)),e&&(p.weekday=e.length>3?Fm.indexOf(e)+1:Bm.indexOf(e)+1),p}const pv=/^(?:(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 mv(e){const[,t,n,r,l,d,f,p,_,T,E,S]=e,w=Pd(t,l,r,n,d,f,p);let M;return _?M=gv[_]:T?M=0:M=vc(E,S),[w,new xr(M)]}function _v(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const yv=/^(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$/,Nv=/^(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$/,Cv=/^(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 zg(e){const[,t,n,r,l,d,f,p]=e;return[Pd(t,l,r,n,d,f,p),xr.utcInstance]}function Ev(e){const[,t,n,r,l,d,f,p]=e;return[Pd(t,p,n,r,l,d,f),xr.utcInstance]}const Tv=ll(rv,kd),xv=ll(iv,kd),vv=ll(ov,kd),Sv=ll(Ym),Vm=al(uv,ul,da,fa),wv=al(sv,ul,da,fa),Ov=al(lv,ul,da,fa),Dv=al(ul,da,fa);function Av(e){return cl(e,[Tv,Vm],[xv,wv],[vv,Ov],[Sv,Dv])}function Mv(e){return cl(_v(e),[pv,mv])}function Rv(e){return cl(e,[yv,zg],[Nv,zg],[Cv,Ev])}function bv(e){return cl(e,[fv,hv])}const Lv=al(ul);function Iv(e){return cl(e,[dv,Lv])}const kv=ll(av,cv),Pv=ll(jm),$v=al(ul,da,fa);function Fv(e){return cl(e,[kv,Vm],[Pv,$v])}const Ug="Invalid Duration",qm={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Bv={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...qm},Xr=146097/400,Us=146097/4800,Hv={years:{quarters:4,months:12,weeks:Xr/7,days:Xr,hours:Xr*24,minutes:Xr*24*60,seconds:Xr*24*60*60,milliseconds:Xr*24*60*60*1e3},quarters:{months:3,weeks:Xr/28,days:Xr/4,hours:Xr*24/4,minutes:Xr*24*60/4,seconds:Xr*24*60*60/4,milliseconds:Xr*24*60*60*1e3/4},months:{weeks:Us/7,days:Us,hours:Us*24,minutes:Us*24*60,seconds:Us*24*60*60,milliseconds:Us*24*60*60*1e3},...qm},ss=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Wv=ss.slice(0).reverse();function Co(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new en(r)}function Zm(e,t){let n=t.milliseconds??0;for(const r of Wv.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function Gg(e,t){const n=Zm(e,t)<0?-1:1;ss.reduceRight((r,l)=>{if(It(t[l]))return r;if(r){const d=t[r]*n,f=e[l][r],p=Math.floor(d/f);t[l]+=p*n,t[r]-=p*f*n}return l},null),ss.reduce((r,l)=>{if(It(t[l]))return r;if(r){const d=t[r]%1;t[r]-=d,t[l]+=d*e[r][l]}return l},null)}function Kv(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class en{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?Hv:Bv;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||an.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return en.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new _r(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new en({values:mc(t,en.normalizeUnit),loc:an.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(vo(t))return en.fromMillis(t);if(en.isDuration(t))return t;if(typeof t=="object")return en.fromObject(t);throw new _r(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=bv(t);return r?en.fromObject(r,n):en.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=Iv(t);return r?en.fromObject(r,n):en.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new _r("need to specify a reason the Duration is invalid");const r=t instanceof gi?t:new gi(t,n);if(Rn.throwOnInvalid)throw new fx(r);return new en({invalid:r})}static normalizeUnit(t){const n={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"}[t&&t.toLowerCase()];if(!n)throw new sm(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?yr.create(this.loc,r).formatDurationFromString(this,t):Ug}toHuman(t={}){if(!this.isValid)return Ug;const n=ss.map(r=>{const l=this.values[r];return It(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(l)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Ld(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Dt.fromMillis(n,{zone:"UTC"}).toISOTime(t))}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?Zm(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=en.fromDurationLike(t),r={};for(const l of ss)(el(n.values,l)||el(this.values,l))&&(r[l]=n.get(l)+this.get(l));return Co(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=en.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=km(t(this.values[r],r));return Co(this,{values:n},!0)}get(t){return this[en.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...mc(t,en.normalizeUnit)};return Co(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:l}={}){const f={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:l,conversionAccuracy:r};return Co(this,f)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Gg(this.matrix,t),Co(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=Kv(this.normalize().shiftToAll().toObject());return Co(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(f=>en.normalizeUnit(f));const n={},r={},l=this.toObject();let d;for(const f of ss)if(t.indexOf(f)>=0){d=f;let p=0;for(const T in r)p+=this.matrix[T][f]*r[T],r[T]=0;vo(l[f])&&(p+=l[f]);const _=Math.trunc(p);n[f]=_,r[f]=(p*1e3-_*1e3)/1e3}else vo(l[f])&&(r[f]=l[f]);for(const f in r)r[f]!==0&&(n[d]+=f===d?r[f]:r[f]/this.matrix[d][f]);return Gg(this.matrix,n),Co(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Co(this,{values:t},!0)}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 this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,l){return r===void 0||r===0?l===void 0||l===0:r===l}for(const r of ss)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Gs="Invalid Interval";function zv(e,t){return!e||!e.isValid?Mn.invalid("missing or invalid start"):!t||!t.isValid?Mn.invalid("missing or invalid end"):t<e?Mn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class Mn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new _r("need to specify a reason the Interval is invalid");const r=t instanceof gi?t:new gi(t,n);if(Rn.throwOnInvalid)throw new dx(r);return new Mn({invalid:r})}static fromDateTimes(t,n){const r=Xl(t),l=Xl(n),d=zv(r,l);return d??new Mn({start:r,end:l})}static after(t,n){const r=en.fromDurationLike(n),l=Xl(t);return Mn.fromDateTimes(l,l.plus(r))}static before(t,n){const r=en.fromDurationLike(n),l=Xl(t);return Mn.fromDateTimes(l.minus(r),l)}static fromISO(t,n){const[r,l]=(t||"").split("/",2);if(r&&l){let d,f;try{d=Dt.fromISO(r,n),f=d.isValid}catch{f=!1}let p,_;try{p=Dt.fromISO(l,n),_=p.isValid}catch{_=!1}if(f&&_)return Mn.fromDateTimes(d,p);if(f){const T=en.fromISO(l,n);if(T.isValid)return Mn.after(d,T)}else if(_){const T=en.fromISO(r,n);if(T.isValid)return Mn.before(p,T)}}return Mn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let l;return n!=null&&n.useLocaleWeeks?l=this.end.reconfigure({locale:r.locale}):l=this.end,l=l.startOf(t,n),Math.floor(l.diff(r,t).get(t))+(l.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?Mn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Xl).filter(f=>this.contains(f)).sort((f,p)=>f.toMillis()-p.toMillis()),r=[];let{s:l}=this,d=0;for(;l<this.e;){const f=n[d]||this.e,p=+f>+this.e?this.e:f;r.push(Mn.fromDateTimes(l,p)),l=p,d+=1}return r}splitBy(t){const n=en.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,l=1,d;const f=[];for(;r<this.e;){const p=this.start.plus(n.mapUnits(_=>_*l));d=+p>+this.e?this.e:p,f.push(Mn.fromDateTimes(r,d)),r=d,l+=1}return f}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:Mn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return Mn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((l,d)=>l.s-d.s).reduce(([l,d],f)=>d?d.overlaps(f)||d.abutsStart(f)?[l,d.union(f)]:[l.concat([d]),f]:[l,f],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const l=[],d=t.map(_=>[{time:_.s,type:"s"},{time:_.e,type:"e"}]),f=Array.prototype.concat(...d),p=f.sort((_,T)=>_.time-T.time);for(const _ of p)r+=_.type==="s"?1:-1,r===1?n=_.time:(n&&+n!=+_.time&&l.push(Mn.fromDateTimes(n,_.time)),n=null);return Mn.merge(l)}difference(...t){return Mn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Gs}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=hc,n={}){return this.isValid?yr.create(this.s.loc.clone(n),t).formatInterval(this):Gs}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Gs}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Gs}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Gs}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Gs}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):en.invalid(this.invalidReason)}mapEndpoints(t){return Mn.fromDateTimes(t(this.s),t(this.e))}}class ec{static hasDST(t=Rn.defaultZone){const n=Dt.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return no.isValidZone(t)}static normalizeZone(t){return To(t,Rn.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||an.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||an.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||an.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||an.create(n,r,d)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||an.create(n,r,d)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null}={}){return(l||an.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null}={}){return(l||an.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return an.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return an.create(n,null,"gregory").eras(t)}static features(){return{relative:bm(),localeWeek:Lm()}}}function Yg(e,t){const n=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(en.fromMillis(r).as("days"))}function Uv(e,t,n){const r=[["years",(_,T)=>T.year-_.year],["quarters",(_,T)=>T.quarter-_.quarter+(T.year-_.year)*4],["months",(_,T)=>T.month-_.month+(T.year-_.year)*12],["weeks",(_,T)=>{const E=Yg(_,T);return(E-E%7)/7}],["days",Yg]],l={},d=e;let f,p;for(const[_,T]of r)n.indexOf(_)>=0&&(f=_,l[_]=T(e,t),p=d.plus(l),p>t?(l[_]--,e=d.plus(l),e>t&&(p=e,l[_]--,e=d.plus(l))):e=p);return[e,l,p,f]}function Gv(e,t,n,r){let[l,d,f,p]=Uv(e,t,n);const _=t-l,T=n.filter(S=>["hours","minutes","seconds","milliseconds"].indexOf(S)>=0);T.length===0&&(f<t&&(f=l.plus({[p]:1})),f!==l&&(d[p]=(d[p]||0)+_/(f-l)));const E=en.fromObject(d,r);return T.length>0?en.fromMillis(_,r).shiftTo(...T).plus(E):E}const Yv="missing Intl.DateTimeFormat.formatToParts support";function on(e,t=n=>n){return{regex:e,deser:([n])=>t(kx(n))}}const jv=" ",Jm=`[ ${jv}]`,Xm=new RegExp(Jm,"g");function Vv(e){return e.replace(/\./g,"\\.?").replace(Xm,Jm)}function jg(e){return e.replace(/\./g,"").replace(Xm," ").toLowerCase()}function hi(e,t){return e===null?null:{regex:RegExp(e.map(Vv).join("|")),deser:([n])=>e.findIndex(r=>jg(n)===jg(r))+t}}function Vg(e,t){return{regex:e,deser:([,n,r])=>vc(n,r),groups:t}}function tc(e){return{regex:e,deser:([t])=>t}}function qv(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Zv(e,t){const n=fi(t),r=fi(t,"{2}"),l=fi(t,"{3}"),d=fi(t,"{4}"),f=fi(t,"{6}"),p=fi(t,"{1,2}"),_=fi(t,"{1,3}"),T=fi(t,"{1,6}"),E=fi(t,"{1,9}"),S=fi(t,"{2,4}"),w=fi(t,"{4,6}"),M=k=>({regex:RegExp(qv(k.val)),deser:([G])=>G,literal:!0}),v=(k=>{if(e.literal)return M(k);switch(k.val){case"G":return hi(t.eras("short"),0);case"GG":return hi(t.eras("long"),0);case"y":return on(T);case"yy":return on(S,rd);case"yyyy":return on(d);case"yyyyy":return on(w);case"yyyyyy":return on(f);case"M":return on(p);case"MM":return on(r);case"MMM":return hi(t.months("short",!0),1);case"MMMM":return hi(t.months("long",!0),1);case"L":return on(p);case"LL":return on(r);case"LLL":return hi(t.months("short",!1),1);case"LLLL":return hi(t.months("long",!1),1);case"d":return on(p);case"dd":return on(r);case"o":return on(_);case"ooo":return on(l);case"HH":return on(r);case"H":return on(p);case"hh":return on(r);case"h":return on(p);case"mm":return on(r);case"m":return on(p);case"q":return on(p);case"qq":return on(r);case"s":return on(p);case"ss":return on(r);case"S":return on(_);case"SSS":return on(l);case"u":return tc(E);case"uu":return tc(p);case"uuu":return on(n);case"a":return hi(t.meridiems(),0);case"kkkk":return on(d);case"kk":return on(S,rd);case"W":return on(p);case"WW":return on(r);case"E":case"c":return on(n);case"EEE":return hi(t.weekdays("short",!1),1);case"EEEE":return hi(t.weekdays("long",!1),1);case"ccc":return hi(t.weekdays("short",!0),1);case"cccc":return hi(t.weekdays("long",!0),1);case"Z":case"ZZ":return Vg(new RegExp(`([+-]${p.source})(?::(${r.source}))?`),2);case"ZZZ":return Vg(new RegExp(`([+-]${p.source})(${r.source})?`),2);case"z":return tc(/[a-z_+-/]{1,256}?/i);case" ":return tc(/[^\S\n\r]/);default:return M(k)}})(e)||{invalidReason:Yv};return v.token=e,v}const Jv={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"}};function Xv(e,t,n){const{type:r,value:l}=e;if(r==="literal"){const _=/^\s+$/.test(l);return{literal:!_,val:_?" ":l}}const d=t[r];let f=r;r==="hour"&&(t.hour12!=null?f=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?f="hour12":f="hour24":f=n.hour12?"hour12":"hour24");let p=Jv[f];if(typeof p=="object"&&(p=p[d]),p)return{literal:!1,val:p}}function Qv(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function eS(e,t,n){const r=e.match(t);if(r){const l={};let d=1;for(const f in n)if(el(n,f)){const p=n[f],_=p.groups?p.groups+1:1;!p.literal&&p.token&&(l[p.token.val[0]]=p.deser(r.slice(d,d+_))),d+=_}return[r,l]}else return[r,{}]}function tS(e){const t=d=>{switch(d){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}};let n=null,r;return It(e.z)||(n=no.create(e.z)),It(e.Z)||(n||(n=new xr(e.Z)),r=e.Z),It(e.q)||(e.M=(e.q-1)*3+1),It(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),It(e.u)||(e.S=bd(e.u)),[Object.keys(e).reduce((d,f)=>{const p=t(f);return p&&(d[p]=e[f]),d},{}),n,r]}let ku=null;function nS(){return ku||(ku=Dt.fromMillis(1555555555555)),ku}function rS(e,t){if(e.literal)return e;const n=yr.macroTokenToFormatOpts(e.val),r=n_(n,t);return r==null||r.includes(void 0)?e:r}function Qm(e,t){return Array.prototype.concat(...e.map(n=>rS(n,t)))}class e_{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Qm(yr.parseFormat(n),t),this.units=this.tokens.map(r=>Zv(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,l]=Qv(this.units);this.regex=RegExp(r,"i"),this.handlers=l}}explainFromTokens(t){if(this.isValid){const[n,r]=eS(t,this.regex,this.handlers),[l,d,f]=r?tS(r):[null,null,void 0];if(el(r,"a")&&el(r,"H"))throw new qs("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:l,zone:d,specificOffset:f}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function t_(e,t,n){return new e_(e,n).explainFromTokens(t)}function iS(e,t,n){const{result:r,zone:l,specificOffset:d,invalidReason:f}=t_(e,t,n);return[r,l,d,f]}function n_(e,t){if(!e)return null;const r=yr.create(t,e).dtFormatter(nS()),l=r.formatToParts(),d=r.resolvedOptions();return l.map(f=>Xv(f,e,d))}const Pu="Invalid DateTime",qg=864e13;function na(e){return new gi("unsupported zone",`the zone "${e.name}" is not supported`)}function $u(e){return e.weekData===null&&(e.weekData=gc(e.c)),e.weekData}function Fu(e){return e.localWeekData===null&&(e.localWeekData=gc(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function ts(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Dt({...n,...t,old:n})}function r_(e,t,n){let r=e-t*60*1e3;const l=n.offset(r);if(t===l)return[r,t];r-=(l-t)*60*1e3;const d=n.offset(r);return l===d?[r,l]:[e-Math.min(l,d)*60*1e3,Math.max(l,d)]}function nc(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function sc(e,t,n){return r_(xc(e),t,n)}function Zg(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),l=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,d={...e.c,year:r,month:l,day:Math.min(e.c.day,pc(r,l))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},f=en.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"),p=xc(d);let[_,T]=r_(p,n,e.zone);return f!==0&&(_+=f,T=e.zone.offset(_)),{ts:_,o:T}}function Ys(e,t,n,r,l,d){const{setZone:f,zone:p}=n;if(e&&Object.keys(e).length!==0||t){const _=t||p,T=Dt.fromObject(e,{...n,zone:_,specificOffset:d});return f?T:T.setZone(p)}else return Dt.invalid(new gi("unparsable",`the input "${l}" can't be parsed as ${r}`))}function rc(e,t,n=!0){return e.isValid?yr.create(an.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Bu(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=zn(e.c.year,n?6:4),t?(r+="-",r+=zn(e.c.month),r+="-",r+=zn(e.c.day)):(r+=zn(e.c.month),r+=zn(e.c.day)),r}function Jg(e,t,n,r,l,d){let f=zn(e.c.hour);return t?(f+=":",f+=zn(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(f+=":")):f+=zn(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(f+=zn(e.c.second),(e.c.millisecond!==0||!r)&&(f+=".",f+=zn(e.c.millisecond,3))),l&&(e.isOffsetFixed&&e.offset===0&&!d?f+="Z":e.o<0?(f+="-",f+=zn(Math.trunc(-e.o/60)),f+=":",f+=zn(Math.trunc(-e.o%60))):(f+="+",f+=zn(Math.trunc(e.o/60)),f+=":",f+=zn(Math.trunc(e.o%60)))),d&&(f+="["+e.zone.ianaName+"]"),f}const i_={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},oS={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},sS={ordinal:1,hour:0,minute:0,second:0,millisecond:0},o_=["year","month","day","hour","minute","second","millisecond"],lS=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],aS=["year","ordinal","hour","minute","second","millisecond"];function cS(e){const 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 sm(e);return t}function Xg(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return cS(e)}}function uS(e){return ac[e]||(lc===void 0&&(lc=Rn.now()),ac[e]=e.offset(lc)),ac[e]}function Qg(e,t){const n=To(t.zone,Rn.defaultZone);if(!n.isValid)return Dt.invalid(na(n));const r=an.fromObject(t);let l,d;if(It(e.year))l=Rn.now();else{for(const _ of o_)It(e[_])&&(e[_]=i_[_]);const f=Mm(e)||Rm(e);if(f)return Dt.invalid(f);const p=uS(n);[l,d]=sc(e,p,n)}return new Dt({ts:l,zone:n,loc:r,o:d})}function ep(e,t,n){const r=It(n.round)?!0:n.round,l=(f,p)=>(f=Ld(f,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(f,p)),d=f=>n.calendary?t.hasSame(e,f)?0:t.startOf(f).diff(e.startOf(f),f).get(f):t.diff(e,f).get(f);if(n.unit)return l(d(n.unit),n.unit);for(const f of n.units){const p=d(f);if(Math.abs(p)>=1)return l(p,f)}return l(e>t?-0:0,n.units[n.units.length-1])}function tp(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let lc,ac={};class Dt{constructor(t){const n=t.zone||Rn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new gi("invalid input"):null)||(n.isValid?null:na(n));this.ts=It(t.ts)?Rn.now():t.ts;let l=null,d=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[l,d]=[t.old.c,t.old.o];else{const p=vo(t.o)&&!t.old?t.o:n.offset(this.ts);l=nc(this.ts,p),r=Number.isNaN(l.year)?new gi("invalid input"):null,l=r?null:l,d=r?null:p}this._zone=n,this.loc=t.loc||an.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Dt({})}static local(){const[t,n]=tp(arguments),[r,l,d,f,p,_,T]=n;return Qg({year:r,month:l,day:d,hour:f,minute:p,second:_,millisecond:T},t)}static utc(){const[t,n]=tp(arguments),[r,l,d,f,p,_,T]=n;return t.zone=xr.utcInstance,Qg({year:r,month:l,day:d,hour:f,minute:p,second:_,millisecond:T},t)}static fromJSDate(t,n={}){const r=Hx(t)?t.valueOf():NaN;if(Number.isNaN(r))return Dt.invalid("invalid input");const l=To(n.zone,Rn.defaultZone);return l.isValid?new Dt({ts:r,zone:l,loc:an.fromObject(n)}):Dt.invalid(na(l))}static fromMillis(t,n={}){if(vo(t))return t<-qg||t>qg?Dt.invalid("Timestamp out of range"):new Dt({ts:t,zone:To(n.zone,Rn.defaultZone),loc:an.fromObject(n)});throw new _r(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(vo(t))return new Dt({ts:t*1e3,zone:To(n.zone,Rn.defaultZone),loc:an.fromObject(n)});throw new _r("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=To(n.zone,Rn.defaultZone);if(!r.isValid)return Dt.invalid(na(r));const l=an.fromObject(n),d=mc(t,Xg),{minDaysInFirstWeek:f,startOfWeek:p}=Bg(d,l),_=Rn.now(),T=It(n.specificOffset)?r.offset(_):n.specificOffset,E=!It(d.ordinal),S=!It(d.year),w=!It(d.month)||!It(d.day),M=S||w,m=d.weekYear||d.weekNumber;if((M||E)&&m)throw new qs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(w&&E)throw new qs("Can't mix ordinal dates with month/day");const v=m||d.weekday&&!M;let k,G,I=nc(_,T);v?(k=lS,G=oS,I=gc(I,f,p)):E?(k=aS,G=sS,I=Iu(I)):(k=o_,G=i_);let P=!1;for(const z of k){const q=d[z];It(q)?P?d[z]=G[z]:d[z]=I[z]:P=!0}const H=v?$x(d,f,p):E?Fx(d):Mm(d),j=H||Rm(d);if(j)return Dt.invalid(j);const re=v?$g(d,f,p):E?Fg(d):d,[te,ce]=sc(re,T,r),V=new Dt({ts:te,zone:r,o:ce,loc:l});return d.weekday&&M&&t.weekday!==V.weekday?Dt.invalid("mismatched weekday",`you can't specify both a weekday of ${d.weekday} and a date of ${V.toISO()}`):V.isValid?V:Dt.invalid(V.invalid)}static fromISO(t,n={}){const[r,l]=Av(t);return Ys(r,l,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,l]=Mv(t);return Ys(r,l,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,l]=Rv(t);return Ys(r,l,n,"HTTP",n)}static fromFormat(t,n,r={}){if(It(t)||It(n))throw new _r("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=r,f=an.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[p,_,T,E]=iS(f,t,n);return E?Dt.invalid(E):Ys(p,_,r,`format ${n}`,t,T)}static fromString(t,n,r={}){return Dt.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,l]=Fv(t);return Ys(r,l,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new _r("need to specify a reason the DateTime is invalid");const r=t instanceof gi?t:new gi(t,n);if(Rn.throwOnInvalid)throw new ux(r);return new Dt({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=n_(t,an.fromObject(n));return r?r.map(l=>l?l.val:null).join(""):null}static expandFormat(t,n={}){return Qm(yr.parseFormat(t),an.fromObject(n)).map(l=>l.val).join("")}static resetCache(){lc=void 0,ac={}}get(t){return this[t]}get isValid(){return this.invalid===null}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}get 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?$u(this).weekYear:NaN}get weekNumber(){return this.isValid?$u(this).weekNumber:NaN}get weekday(){return this.isValid?$u(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Fu(this).weekday:NaN}get localWeekNumber(){return this.isValid?Fu(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Fu(this).weekYear:NaN}get ordinal(){return this.isValid?Iu(this.c).ordinal:NaN}get monthShort(){return this.isValid?ec.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ec.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ec.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ec.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?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=xc(this.c),l=this.zone.offset(r-t),d=this.zone.offset(r+t),f=this.zone.offset(r-l*n),p=this.zone.offset(r-d*n);if(f===p)return[this];const _=r-f*n,T=r-p*n,E=nc(_,f),S=nc(T,p);return E.hour===S.hour&&E.minute===S.minute&&E.second===S.second&&E.millisecond===S.millisecond?[ts(this,{ts:_}),ts(this,{ts:T})]:[this]}get isInLeapYear(){return ua(this.year)}get daysInMonth(){return pc(this.year,this.month)}get daysInYear(){return this.isValid?Zs(this.year):NaN}get weeksInWeekYear(){return this.isValid?aa(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?aa(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:l}=yr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:l}}toUTC(t=0,n={}){return this.setZone(xr.instance(t),n)}toLocal(){return this.setZone(Rn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=To(t,Rn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let l=this.ts;if(n||r){const d=t.offset(this.ts),f=this.toObject();[l]=sc(f,d,t)}return ts(this,{ts:l,zone:t})}else return Dt.invalid(na(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const l=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return ts(this,{loc:l})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=mc(t,Xg),{minDaysInFirstWeek:r,startOfWeek:l}=Bg(n,this.loc),d=!It(n.weekYear)||!It(n.weekNumber)||!It(n.weekday),f=!It(n.ordinal),p=!It(n.year),_=!It(n.month)||!It(n.day),T=p||_,E=n.weekYear||n.weekNumber;if((T||f)&&E)throw new qs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(_&&f)throw new qs("Can't mix ordinal dates with month/day");let S;d?S=$g({...gc(this.c,r,l),...n},r,l):It(n.ordinal)?(S={...this.toObject(),...n},It(n.day)&&(S.day=Math.min(pc(S.year,S.month),S.day))):S=Fg({...Iu(this.c),...n});const[w,M]=sc(S,this.o,this.zone);return ts(this,{ts:w,o:M})}plus(t){if(!this.isValid)return this;const n=en.fromDurationLike(t);return ts(this,Zg(this,n))}minus(t){if(!this.isValid)return this;const n=en.fromDurationLike(t).negate();return ts(this,Zg(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},l=en.normalizeUnit(t);switch(l){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;break}if(l==="weeks")if(n){const d=this.loc.getStartOfWeek(),{weekday:f}=this;f<d&&(r.weekNumber=this.weekNumber-1),r.weekday=d}else r.weekday=1;if(l==="quarters"){const d=Math.ceil(this.month/3);r.month=(d-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?yr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Pu}toLocaleString(t=hc,n={}){return this.isValid?yr.create(this.loc.clone(n),t).formatDateTime(this):Pu}toLocaleParts(t={}){return this.isValid?yr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:l=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const f=t==="extended";let p=Bu(this,f);return p+="T",p+=Jg(this,f,n,r,l,d),p}toISODate({format:t="extended"}={}){return this.isValid?Bu(this,t==="extended"):null}toISOWeekDate(){return rc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:l=!1,extendedZone:d=!1,format:f="extended"}={}){return this.isValid?(l?"T":"")+Jg(this,f==="extended",n,t,r,d):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?Bu(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let l="HH:mm:ss.SSS";return(n||t)&&(r&&(l+=" "),n?l+="z":t&&(l+="ZZ")),rc(this,l,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Pu}[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(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return en.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...r},d=Wx(n).map(en.normalizeUnit),f=t.valueOf()>this.valueOf(),p=f?this:t,_=f?t:this,T=Gv(p,_,d,l);return f?T.negate():T}diffNow(t="milliseconds",n={}){return this.diff(Dt.now(),t,n)}until(t){return this.isValid?Mn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const l=t.valueOf(),d=this.setZone(t.zone,{keepLocalTime:!0});return d.startOf(n,r)<=l&&l<=d.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Dt.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let l=["years","months","days","hours","minutes","seconds"],d=t.unit;return Array.isArray(t.unit)&&(l=t.unit,d=void 0),ep(n,this.plus(r),{...t,numeric:"always",units:l,unit:d})}toRelativeCalendar(t={}){return this.isValid?ep(t.base||Dt.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Dt.isDateTime))throw new _r("min requires all arguments be DateTimes");return Hg(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Dt.isDateTime))throw new _r("max requires all arguments be DateTimes");return Hg(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:l=null,numberingSystem:d=null}=r,f=an.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return t_(f,t,n)}static fromStringExplain(t,n,r={}){return Dt.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:l=null}=n,d=an.fromOpts({locale:r,numberingSystem:l,defaultToEN:!0});return new e_(d,t)}static fromFormatParser(t,n,r={}){if(It(t)||It(n))throw new _r("fromFormatParser requires an input string and a format parser");const{locale:l=null,numberingSystem:d=null}=r,f=an.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});if(!f.equals(n.locale))throw new _r(`fromFormatParser called with a locale of ${f}, but the format parser was created for ${n.locale}`);const{result:p,zone:_,specificOffset:T,invalidReason:E}=n.explainFromTokens(t);return E?Dt.invalid(E):Ys(p,_,r,`format ${n.format}`,t,T)}static get DATE_SHORT(){return hc}static get DATE_MED(){return lm}static get DATE_MED_WITH_WEEKDAY(){return hx}static get DATE_FULL(){return am}static get DATE_HUGE(){return cm}static get TIME_SIMPLE(){return um}static get TIME_WITH_SECONDS(){return dm}static get TIME_WITH_SHORT_OFFSET(){return fm}static get TIME_WITH_LONG_OFFSET(){return hm}static get TIME_24_SIMPLE(){return gm}static get TIME_24_WITH_SECONDS(){return pm}static get TIME_24_WITH_SHORT_OFFSET(){return mm}static get TIME_24_WITH_LONG_OFFSET(){return _m}static get DATETIME_SHORT(){return ym}static get DATETIME_SHORT_WITH_SECONDS(){return Nm}static get DATETIME_MED(){return Cm}static get DATETIME_MED_WITH_SECONDS(){return Em}static get DATETIME_MED_WITH_WEEKDAY(){return gx}static get DATETIME_FULL(){return Tm}static get DATETIME_FULL_WITH_SECONDS(){return xm}static get DATETIME_HUGE(){return vm}static get DATETIME_HUGE_WITH_SECONDS(){return Sm}}function Xl(e){if(Dt.isDateTime(e))return e;if(e&&e.valueOf&&vo(e.valueOf()))return Dt.fromJSDate(e);if(e&&typeof e=="object")return Dt.fromObject(e);throw new _r(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var sn=(e=>(e.Monday="MONDAY",e.Tuesday="TUESDAY",e.Wednesday="WEDNESDAY",e.Thursday="THURSDAY",e.Friday="FRIDAY",e.Saturday="SATURDAY",e.Sunday="SUNDAY",e))(sn||{});function $d(e){const t={1:sn.Monday,2:sn.Tuesday,3:sn.Wednesday,4:sn.Thursday,5:sn.Friday,6:sn.Saturday,7:sn.Sunday};if(e.weekday in t)return t[e.weekday];throw new Error(`Invalid DateTime.weekday property: ${e}, ${e.weekday}`)}function Di(e){return{[sn.Monday]:"Monday",[sn.Tuesday]:"Tuesday",[sn.Wednesday]:"Wednesday",[sn.Thursday]:"Thursday",[sn.Friday]:"Friday",[sn.Saturday]:"Saturday",[sn.Sunday]:"Sunday"}[e]}class np{constructor(t,n,r){Ie(this,"end");Ie(this,"start");this.end=t.setZone(r),this.start=t.setZone(r),[n.start,n.end].forEach(_=>{if(_.split(":").length!==2)throw new Error('expected interval start and end data to be in the format "HH:MM"')});const[l,d]=n.start.split(":"),[f,p]=n.end.split(":");this.end=this.end.set({hour:Number(f),minute:Number(p)}),this.start=this.start.set({hour:Number(l),minute:Number(d)}),this.end<this.start&&(this.end=this.end.plus({days:1})),this.end.minute===59&&(this.end=this.end.set({minute:60}))}contains(t){return this.start<=t&&t<this.end}getStartTime(t,n){const r={hour:"numeric",minute:"numeric",...n};return this.start.setLocale(t||"en-US").toLocaleString(r)}getEndTime(t,n){const r={hour:"numeric",minute:"numeric",...n};return this.end.setLocale(t||"en-US").toLocaleString(r)}timeIsEqualTo(t){const n=this.getStartTime()===t.getStartTime(),r=this.getEndTime()===t.getEndTime();return n&&r}is24h(){const t=this.start.minute===0&&this.start.hour===0,n=this.end.minute===0&&this.end.hour===0,r=this.end.day-this.start.day===1||this.end.day===1;return t&&n&&r}}class s_{constructor(t,n){Ie(this,"holidayHoursByDate");Ie(this,"hours");Ie(this,"timezone");this.holidayHoursByDate=Object.fromEntries((t.holidayHours||[]).map(r=>[r.date,r])),this.hours=t,this.timezone=n}getInterval(t){if(this.isTemporarilyClosedAt(t))return null;let n=t;n=n.minus({days:1});for(const r of[n,t]){const l=this.getHours(r);if(l&&!l.isClosed)for(const d of l.openIntervals||[]){const f=new np(r,d,this.timezone);if(f.contains(t))return f}}return null}getCurrentInterval(){return this.getInterval(Dt.now())}getIntervalAfter(t){const n=this.getIntervalsForNDays(8,t),r=(d,f)=>d.start===f.start?0:d.start>f.start?1:-1,l=n.sort(r);for(const[d,f]of l.entries())if(f.contains(t)&&l.length>d+1)return l[d+1];for(const d of l)if(d.start>t)return d;return null}getIntervalsForNDays(t,n){const r=[];for(let l=0;l<t;l++){let d=n;d=d.plus({days:l});const f=this.getHours(d);f&&!f.isClosed&&r.push(...f.openIntervals.map(p=>new np(d,p,this.timezone)))}return r}getHolidayHours(t){return this.isTemporarilyClosedAt(t)?null:this.holidayHoursByDate[(t.toISO()||"").replace(/T.*/,"")]||null}getNormalHours(t){if(this.isTemporarilyClosedAt(t))return null;const n=Di($d(t)).toLowerCase();return this.hours[n]}getHours(t){const n=this.getHolidayHours(t);return!n||n.isRegularHours?this.getNormalHours(t):n}getNextInterval(){return this.getIntervalAfter(Dt.now())}isHoliday(t){return!!this.getHolidayHours(t)}isTemporarilyClosedAt(t){if(!this.hours.reopenDate)return!1;const n=this.hours.reopenDate.split("-");if(n.length===3){const[r,l,d]=n,f=Dt.fromObject({year:Number(r),month:Number(l),day:Number(d)},{zone:this.timezone});if(t<f)return!0}return!1}isOpenAt(t){return this.isTemporarilyClosedAt(t)?!1:!!this.getInterval(t)}isOpenNow(){return this.isOpenAt(Dt.now())}}function dS(e,t){const n=[...e];return t=t%n.length,n.concat(n.splice(0,n.length-t))}function fS(e,t){if(e.length!==t.length)return!1;for(const[n,r]of e.entries())if(!r.timeIsEqualTo(t[n]))return!1;return!0}function ha(e){var t,n;return((n=(t=e==null?void 0:e.currentInterval)==null?void 0:t.is24h)==null?void 0:n.call(t))||!1}function ga(e){return!e.futureInterval}function hS(e){return ha(e)?ft.jsx("span",{className:"HoursStatus-current",children:"Open 24 Hours"}):ga(e)?ft.jsx("span",{className:"HoursStatus-current",children:"Temporarily Closed"}):ft.jsx("span",{className:"HoursStatus-current",children:e.isOpen?"Open Now":"Closed"})}function gS(e){return ha(e)||ga(e)?null:ft.jsx("span",{className:"HoursStatus-separator",children:" • "})}function pS(e){return ha(e)||ga(e)?null:ft.jsx("span",{className:"HoursStatus-future",children:e.isOpen?"Closes at":"Opens at"})}function mS(e){if(ha(e)||ga(e))return null;let t="";if(e.isOpen){const n=e.currentInterval;t+=n?n.getEndTime("en-US",e.timeOptions):""}else{const n=e.futureInterval;t+=n?n.getStartTime("en-US",e.timeOptions):""}return ft.jsxs("span",{className:"HoursStatus-time",children:[" ",t]})}function _S(e){var r,l;if(ha(e)||ga(e))return null;const t={weekday:"long",...e.dayOptions??{}};let n="";if(e.isOpen){const d=e.currentInterval;n+=((r=d==null?void 0:d.end)==null?void 0:r.setLocale("en-US").toLocaleString(t))||""}else{const d=e.futureInterval;n+=((l=d==null?void 0:d.start)==null?void 0:l.setLocale("en-US").toLocaleString(t))||""}return ft.jsxs("span",{className:"HoursStatus-dayOfWeek",children:[" ",n]})}function yS(e,t){const n=e.currentTemplate||hS,r=e.separatorTemplate||gS,l=e.futureTemplate||pS,d=e.timeTemplate||mS,f=e.dayOfWeekTemplate||_S;return ft.jsxs("div",{className:Qs("HoursStatus",(t==null?void 0:t.className)||""),children:[n(e),r(e),l(e),d(e),f(e)]})}const NS=e=>{const[t,n]=rt.useState(!1),[r,l]=rt.useState(!1);rt.useEffect(()=>{l(!0)},[]);const d=e.statusTemplate||yS,f=new s_(e.hours,e.timezone),p=f.isOpenNow(),_=f.getCurrentInterval(),T=f.getNextInterval(),E=(_==null?void 0:_.end)||(T==null?void 0:T.start);if(E&&!t){n(!0);const w=E.toMillis()-Dt.now().toMillis();setTimeout(()=>n(!1),w)}const S={isOpen:p,currentInterval:_,futureInterval:T,...e};return ft.jsx(ft.Fragment,{children:r&&d(S,e)})};function CS(e,t){const n=[];return e.forEach(r=>{const l=n[n.length-1];l?fS(l.intervals,r.intervals)?(l.endDay=r.endDay,l.isToday=l.isToday||r.isToday):n.push({...r}):n.push({...r})}),n.map(r=>{const l=t&&Di(r.startDay)in t?t[Di(r.startDay)]||"":Di(r.startDay),d=t&&Di(r.endDay)in t?t[Di(r.endDay)]||"":Di(r.endDay);return{...r,dayOfWeek:"Collapsed",dayName:r.startDay===r.endDay?`${l}`:`${l} - ${d}`}})}function ES(e,t){const n=[],r=e.intervals.length>0&&e.intervals[0].is24h();return e.intervals.length===0?n.push("Closed"):r?n.push("Open 24 hours"):e.intervals.forEach(l=>{const d=l.getStartTime("en-US",t),f=l.getEndTime("en-US",t);n.push(`${d} - ${f}`)}),n}function TS(e,t,n){const r=[];for(let l=1;l<=7;l++){const d=Dt.fromObject({weekday:l}),f=$d(d);r.push({startDay:f,endDay:f,dayName:n&&Di(f).toLowerCase()in n?n[Di(f).toLowerCase()]||"":Di(f),intervals:e.filter(p=>p.start.weekday===l),isToday:t.weekday===l})}return r}const xS=e=>{const[t,n]=rt.useState(!1);rt.useEffect(()=>{n(!0)},[]);const r=new s_(e.hours,Intl.DateTimeFormat().resolvedOptions().timeZone),l=Dt.now(),d=r.getIntervalsForNDays(7,l);let f=TS(d,l,e.dayOfWeekNames);function p(E){return E?{today:$d(l),monday:sn.Monday,tuesday:sn.Tuesday,wednesday:sn.Wednesday,thursday:sn.Thursday,friday:sn.Friday,saturday:sn.Saturday,sunday:sn.Sunday}[E]:sn.Sunday}let _=[sn.Sunday,sn.Monday,sn.Tuesday,sn.Wednesday,sn.Thursday,sn.Friday,sn.Saturday];const T=_.indexOf(p(e.startOfWeek));return _=dS(_,7-T),f.sort((E,S)=>_.indexOf(E.startDay)-_.indexOf(S.startDay)),e.collapseDays&&(f=CS(f,e.dayOfWeekNames)),ft.jsx(ft.Fragment,{children:t&&ft.jsx("div",{className:Qs("HoursTable",e.className),children:f.map(E=>{const w=(e.intervalStringsBuilderFn||ES)(E,e.timeOptions);return ft.jsxs("div",{className:Qs("HoursTable-row",{"is-today":E.isToday}),children:[ft.jsx("span",{className:"HoursTable-day",children:E.dayName}),ft.jsx("span",{className:"HoursTable-intervals",children:w.map((M,m)=>ft.jsx("span",{className:"HoursTable-interval",children:M},m))})]},E.dayName)})})})},vS=e=>`<script type="application/ld+json">
|
|
109
|
+
`}),n}const nx=(e,t)=>e(t,"i",ro(e,t)),rx=(e,t)=>e(t,"b",ro(e,t)),ix=(e,t)=>e(t,"u",ro(e,t)),ox=(e,t)=>e(t,"s",ro(e,t)),sx=(e,t)=>e(t,"sub",ro(e,t)),lx=(e,t)=>e(t,"sup",ro(e,t)),ax={emphasis:nx,strong:rx,underline:ix,strikethrough:ox,subscript:sx,superscript:lx},cx=e=>{const[t,n]=rt.useState();let r;return rt.useEffect(()=>{(async()=>{if(!r)try{r=(await Promise.resolve().then(()=>require("./index-BVBgwvGE.cjs"))).default}catch{throw new Error("Failed to import React Markdown, cannot properly render LegacyRichText.")}const d=r({children:e.markdown,remarkPlugins:[hT],remarkRehypeOptions:{handlers:ax}});n(d)})()},[e.markdown]),t||null};class us extends Error{}class ux extends us{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class dx extends us{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class fx extends us{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class qs extends us{}class sm extends us{constructor(t){super(`Invalid unit ${t}`)}}class _r extends us{}class No extends us{constructor(){super("Zone is an abstract class")}}const lt="numeric",pi="short",Gr="long",hc={year:lt,month:lt,day:lt},lm={year:lt,month:pi,day:lt},hx={year:lt,month:pi,day:lt,weekday:pi},am={year:lt,month:Gr,day:lt},cm={year:lt,month:Gr,day:lt,weekday:Gr},um={hour:lt,minute:lt},dm={hour:lt,minute:lt,second:lt},fm={hour:lt,minute:lt,second:lt,timeZoneName:pi},hm={hour:lt,minute:lt,second:lt,timeZoneName:Gr},gm={hour:lt,minute:lt,hourCycle:"h23"},pm={hour:lt,minute:lt,second:lt,hourCycle:"h23"},mm={hour:lt,minute:lt,second:lt,hourCycle:"h23",timeZoneName:pi},_m={hour:lt,minute:lt,second:lt,hourCycle:"h23",timeZoneName:Gr},ym={year:lt,month:lt,day:lt,hour:lt,minute:lt},Nm={year:lt,month:lt,day:lt,hour:lt,minute:lt,second:lt},Cm={year:lt,month:pi,day:lt,hour:lt,minute:lt},Em={year:lt,month:pi,day:lt,hour:lt,minute:lt,second:lt},gx={year:lt,month:pi,day:lt,weekday:pi,hour:lt,minute:lt},Tm={year:lt,month:Gr,day:lt,hour:lt,minute:lt,timeZoneName:pi},xm={year:lt,month:Gr,day:lt,hour:lt,minute:lt,second:lt,timeZoneName:pi},vm={year:lt,month:Gr,day:lt,weekday:Gr,hour:lt,minute:lt,timeZoneName:Gr},Sm={year:lt,month:Gr,day:lt,weekday:Gr,hour:lt,minute:lt,second:lt,timeZoneName:Gr};class ca{get type(){throw new No}get name(){throw new No}get ianaName(){return this.name}get isUniversal(){throw new No}offsetName(t,n){throw new No}formatOffset(t,n){throw new No}offset(t){throw new No}equals(t){throw new No}get isValid(){throw new No}}let bu=null;class Ec extends ca{static get instance(){return bu===null&&(bu=new Ec),bu}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Im(t,n,r)}formatOffset(t,n){return oa(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let oc={};function px(e){return oc[e]||(oc[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),oc[e]}const mx={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function _x(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,l,d,f,p,_,T,E]=r;return[f,l,d,p,_,T,E]}function yx(e,t){const n=e.formatToParts(t),r=[];for(let l=0;l<n.length;l++){const{type:d,value:f}=n[l],p=mx[d];d==="era"?r[p]=f:It(p)||(r[p]=parseInt(f,10))}return r}let Xa={};class no extends ca{static create(t){return Xa[t]||(Xa[t]=new no(t)),Xa[t]}static resetCache(){Xa={},oc={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=no.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return Im(t,n,r,this.name)}formatOffset(t,n){return oa(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const r=px(this.name);let[l,d,f,p,_,T,E]=r.formatToParts?yx(r,n):_x(r,n);p==="BC"&&(l=-Math.abs(l)+1);const w=xc({year:l,month:d,day:f,hour:_===24?0:_,minute:T,second:E,millisecond:0});let M=+n;const m=M%1e3;return M-=m>=0?m:1e3+m,(w-M)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let wg={};function Nx(e,t={}){const n=JSON.stringify([e,t]);let r=wg[n];return r||(r=new Intl.ListFormat(e,t),wg[n]=r),r}let Xu={};function Qu(e,t={}){const n=JSON.stringify([e,t]);let r=Xu[n];return r||(r=new Intl.DateTimeFormat(e,t),Xu[n]=r),r}let ed={};function Cx(e,t={}){const n=JSON.stringify([e,t]);let r=ed[n];return r||(r=new Intl.NumberFormat(e,t),ed[n]=r),r}let td={};function Ex(e,t={}){const{base:n,...r}=t,l=JSON.stringify([e,r]);let d=td[l];return d||(d=new Intl.RelativeTimeFormat(e,t),td[l]=d),d}let ta=null;function Tx(){return ta||(ta=new Intl.DateTimeFormat().resolvedOptions().locale,ta)}let Og={};function xx(e){let t=Og[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,Og[e]=t}return t}function vx(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,l;try{r=Qu(e).resolvedOptions(),l=e}catch{const _=e.substring(0,n);r=Qu(_).resolvedOptions(),l=_}const{numberingSystem:d,calendar:f}=r;return[l,d,f]}}function Sx(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function wx(e){const t=[];for(let n=1;n<=12;n++){const r=Dt.utc(2009,n,1);t.push(e(r))}return t}function Ox(e){const t=[];for(let n=1;n<=7;n++){const r=Dt.utc(2016,11,13+n);t.push(e(r))}return t}function Qa(e,t,n,r){const l=e.listingMode();return l==="error"?null:l==="en"?n(t):r(t)}function Dx(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class Ax{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:l,floor:d,...f}=r;if(!n||Object.keys(f).length>0){const p={useGrouping:!1,...r};r.padTo>0&&(p.minimumIntegerDigits=r.padTo),this.inf=Cx(t,p)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Ld(t,3);return zn(n,this.padTo)}}}class Mx{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let l;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const f=-1*(t.offset/60),p=f>=0?`Etc/GMT+${f}`:`Etc/GMT${f}`;t.offset!==0&&no.create(p).valid?(l=p,this.dt=t):(l="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,l=t.zone.name):(l="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const d={...this.opts};d.timeZone=d.timeZone||l,this.dtf=Qu(n,d)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class Rx{constructor(t,n,r){this.opts={style:"long",...r},!n&&bm()&&(this.rtf=Ex(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):ev(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}const bx={firstDay:1,minimalDays:4,weekend:[6,7]};class an{static fromOpts(t){return an.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,n,r,l,d=!1){const f=t||Rn.defaultLocale,p=f||(d?"en-US":Tx()),_=n||Rn.defaultNumberingSystem,T=r||Rn.defaultOutputCalendar,E=nd(l)||Rn.defaultWeekSettings;return new an(p,_,T,E,f)}static resetCache(){ta=null,Xu={},ed={},td={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r,weekSettings:l}={}){return an.create(t,n,r,l)}constructor(t,n,r,l,d){const[f,p,_]=vx(t);this.locale=f,this.numberingSystem=n||p||null,this.outputCalendar=r||_||null,this.weekSettings=l,this.intl=Sx(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=d,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Dx(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:an.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,nd(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return Qa(this,t,$m,()=>{const r=n?{month:t,day:"numeric"}:{month:t},l=n?"format":"standalone";return this.monthsCache[l][t]||(this.monthsCache[l][t]=wx(d=>this.extract(d,r,"month"))),this.monthsCache[l][t]})}weekdays(t,n=!1){return Qa(this,t,Hm,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},l=n?"format":"standalone";return this.weekdaysCache[l][t]||(this.weekdaysCache[l][t]=Ox(d=>this.extract(d,r,"weekday"))),this.weekdaysCache[l][t]})}meridiems(){return Qa(this,void 0,()=>Wm,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Dt.utc(2016,11,13,9),Dt.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Qa(this,t,Km,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[Dt.utc(-40,1,1),Dt.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const l=this.dtFormatter(t,n),d=l.formatToParts(),f=d.find(p=>p.type.toLowerCase()===r);return f?f.value:null}numberFormatter(t={}){return new Ax(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new Mx(t,this.intl,n)}relFormatter(t={}){return new Rx(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Nx(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Lm()?xx(this.locale):bx}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Lu=null;class xr extends ca{static get utcInstance(){return Lu===null&&(Lu=new xr(0)),Lu}static instance(t){return t===0?xr.utcInstance:new xr(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new xr(vc(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${oa(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${oa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return oa(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Lx extends ca{constructor(t){super(),this.zoneName=t}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 To(e,t){if(It(e)||e===null)return t;if(e instanceof ca)return e;if(Bx(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Ec.instance:n==="utc"||n==="gmt"?xr.utcInstance:xr.parseSpecifier(n)||no.create(e)}else return vo(e)?xr.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Lx(e)}const Ad={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Dg={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]},Ix=Ad.hanidec.replace(/[\[|\]]/g,"").split("");function kx(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(Ad.hanidec)!==-1)t+=Ix.indexOf(e[n]);else for(const l in Dg){const[d,f]=Dg[l];r>=d&&r<=f&&(t+=r-d)}}return parseInt(t,10)}else return t}let Vs={};function Px(){Vs={}}function fi({numberingSystem:e},t=""){const n=e||"latn";return Vs[n]||(Vs[n]={}),Vs[n][t]||(Vs[n][t]=new RegExp(`${Ad[n]}${t}`)),Vs[n][t]}let Ag=()=>Date.now(),Mg="system",Rg=null,bg=null,Lg=null,Ig=60,kg,Pg=null;class Rn{static get now(){return Ag}static set now(t){Ag=t}static set defaultZone(t){Mg=t}static get defaultZone(){return To(Mg,Ec.instance)}static get defaultLocale(){return Rg}static set defaultLocale(t){Rg=t}static get defaultNumberingSystem(){return bg}static set defaultNumberingSystem(t){bg=t}static get defaultOutputCalendar(){return Lg}static set defaultOutputCalendar(t){Lg=t}static get defaultWeekSettings(){return Pg}static set defaultWeekSettings(t){Pg=nd(t)}static get twoDigitCutoffYear(){return Ig}static set twoDigitCutoffYear(t){Ig=t%100}static get throwOnInvalid(){return kg}static set throwOnInvalid(t){kg=t}static resetCaches(){an.resetCache(),no.resetCache(),Dt.resetCache(),Px()}}class gi{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const wm=[0,31,59,90,120,151,181,212,243,273,304,334],Om=[0,31,60,91,121,152,182,213,244,274,305,335];function Qr(e,t){return new gi("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Md(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const l=r.getUTCDay();return l===0?7:l}function Dm(e,t,n){return n+(ua(e)?Om:wm)[t-1]}function Am(e,t){const n=ua(e)?Om:wm,r=n.findIndex(d=>d<t),l=t-n[r];return{month:r+1,day:l}}function Rd(e,t){return(e-t+7)%7+1}function gc(e,t=4,n=1){const{year:r,month:l,day:d}=e,f=Dm(r,l,d),p=Rd(Md(r,l,d),n);let _=Math.floor((f-p+14-t)/7),T;return _<1?(T=r-1,_=aa(T,t,n)):_>aa(r,t,n)?(T=r+1,_=1):T=r,{weekYear:T,weekNumber:_,weekday:p,...Sc(e)}}function $g(e,t=4,n=1){const{weekYear:r,weekNumber:l,weekday:d}=e,f=Rd(Md(r,1,t),n),p=Zs(r);let _=l*7+d-f-7+t,T;_<1?(T=r-1,_+=Zs(T)):_>p?(T=r+1,_-=Zs(r)):T=r;const{month:E,day:S}=Am(T,_);return{year:T,month:E,day:S,...Sc(e)}}function Iu(e){const{year:t,month:n,day:r}=e,l=Dm(t,n,r);return{year:t,ordinal:l,...Sc(e)}}function Fg(e){const{year:t,ordinal:n}=e,{month:r,day:l}=Am(t,n);return{year:t,month:r,day:l,...Sc(e)}}function Bg(e,t){if(!It(e.localWeekday)||!It(e.localWeekNumber)||!It(e.localWeekYear)){if(!It(e.weekday)||!It(e.weekNumber)||!It(e.weekYear))throw new qs("Cannot mix locale-based week fields with ISO-based week fields");return It(e.localWeekday)||(e.weekday=e.localWeekday),It(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),It(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function $x(e,t=4,n=1){const r=Tc(e.weekYear),l=ei(e.weekNumber,1,aa(e.weekYear,t,n)),d=ei(e.weekday,1,7);return r?l?d?!1:Qr("weekday",e.weekday):Qr("week",e.weekNumber):Qr("weekYear",e.weekYear)}function Fx(e){const t=Tc(e.year),n=ei(e.ordinal,1,Zs(e.year));return t?n?!1:Qr("ordinal",e.ordinal):Qr("year",e.year)}function Mm(e){const t=Tc(e.year),n=ei(e.month,1,12),r=ei(e.day,1,pc(e.year,e.month));return t?n?r?!1:Qr("day",e.day):Qr("month",e.month):Qr("year",e.year)}function Rm(e){const{hour:t,minute:n,second:r,millisecond:l}=e,d=ei(t,0,23)||t===24&&n===0&&r===0&&l===0,f=ei(n,0,59),p=ei(r,0,59),_=ei(l,0,999);return d?f?p?_?!1:Qr("millisecond",l):Qr("second",r):Qr("minute",n):Qr("hour",t)}function It(e){return typeof e>"u"}function vo(e){return typeof e=="number"}function Tc(e){return typeof e=="number"&&e%1===0}function Bx(e){return typeof e=="string"}function Hx(e){return Object.prototype.toString.call(e)==="[object Date]"}function bm(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Lm(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Wx(e){return Array.isArray(e)?e:[e]}function Hg(e,t,n){if(e.length!==0)return e.reduce((r,l)=>{const d=[t(l),l];return r&&n(r[0],d[0])===r[0]?r:d},null)[1]}function Kx(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function el(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function nd(e){if(e==null)return null;if(typeof e!="object")throw new _r("Week settings must be an object");if(!ei(e.firstDay,1,7)||!ei(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!ei(t,1,7)))throw new _r("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function ei(e,t,n){return Tc(e)&&e>=t&&e<=n}function zx(e,t){return e-t*Math.floor(e/t)}function zn(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Eo(e){if(!(It(e)||e===null||e===""))return parseInt(e,10)}function es(e){if(!(It(e)||e===null||e===""))return parseFloat(e)}function bd(e){if(!(It(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Ld(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function ua(e){return e%4===0&&(e%100!==0||e%400===0)}function Zs(e){return ua(e)?366:365}function pc(e,t){const n=zx(t-1,12)+1,r=e+(t-n)/12;return n===2?ua(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function xc(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),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Wg(e,t,n){return-Rd(Md(e,1,t),n)+t-1}function aa(e,t=4,n=1){const r=Wg(e,t,n),l=Wg(e+1,t,n);return(Zs(e)-r+l)/7}function rd(e){return e>99?e:e>Rn.twoDigitCutoffYear?1900+e:2e3+e}function Im(e,t,n,r=null){const l=new Date(e),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(d.timeZone=r);const f={timeZoneName:t,...d},p=new Intl.DateTimeFormat(n,f).formatToParts(l).find(_=>_.type.toLowerCase()==="timezonename");return p?p.value:null}function vc(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,l=n<0||Object.is(n,-0)?-r:r;return n*60+l}function km(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new _r(`Invalid unit value ${e}`);return t}function mc(e,t){const n={};for(const r in e)if(el(e,r)){const l=e[r];if(l==null)continue;n[t(r)]=km(l)}return n}function oa(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),l=e>=0?"+":"-";switch(t){case"short":return`${l}${zn(n,2)}:${zn(r,2)}`;case"narrow":return`${l}${n}${r>0?`:${r}`:""}`;case"techie":return`${l}${zn(n,2)}${zn(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Sc(e){return Kx(e,["hour","minute","second","millisecond"])}const Ux=["January","February","March","April","May","June","July","August","September","October","November","December"],Pm=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Gx=["J","F","M","A","M","J","J","A","S","O","N","D"];function $m(e){switch(e){case"narrow":return[...Gx];case"short":return[...Pm];case"long":return[...Ux];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}}const Fm=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Bm=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Yx=["M","T","W","T","F","S","S"];function Hm(e){switch(e){case"narrow":return[...Yx];case"short":return[...Bm];case"long":return[...Fm];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Wm=["AM","PM"],jx=["Before Christ","Anno Domini"],Vx=["BC","AD"],qx=["B","A"];function Km(e){switch(e){case"narrow":return[...qx];case"short":return[...Vx];case"long":return[...jx];default:return null}}function Zx(e){return Wm[e.hour<12?0:1]}function Jx(e,t){return Hm(t)[e.weekday-1]}function Xx(e,t){return $m(t)[e.month-1]}function Qx(e,t){return Km(t)[e.year<0?0:1]}function ev(e,t,n="always",r=!1){const l={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."]},d=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&d){const S=e==="days";switch(t){case 1:return S?"tomorrow":`next ${l[e][0]}`;case-1:return S?"yesterday":`last ${l[e][0]}`;case 0:return S?"today":`this ${l[e][0]}`}}const f=Object.is(t,-0)||t<0,p=Math.abs(t),_=p===1,T=l[e],E=r?_?T[1]:T[2]||T[1]:_?l[e][0]:e;return f?`${p} ${E} ago`:`in ${p} ${E}`}function Kg(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const tv={D:hc,DD:lm,DDD:am,DDDD:cm,t:um,tt:dm,ttt:fm,tttt:hm,T:gm,TT:pm,TTT:mm,TTTT:_m,f:ym,ff:Cm,fff:Tm,ffff:vm,F:Nm,FF:Em,FFF:xm,FFFF:Sm};class yr{static create(t,n={}){return new yr(t,n)}static parseFormat(t){let n=null,r="",l=!1;const d=[];for(let f=0;f<t.length;f++){const p=t.charAt(f);p==="'"?(r.length>0&&d.push({literal:l||/^\s+$/.test(r),val:r}),n=null,r="",l=!l):l||p===n?r+=p:(r.length>0&&d.push({literal:/^\s+$/.test(r),val:r}),r=p,n=p)}return r.length>0&&d.push({literal:l||/^\s+$/.test(r),val:r}),d}static macroTokenToFormatOpts(t){return tv[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return zn(t,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=(M,m)=>this.loc.extract(t,M,m),f=M=>t.isOffsetFixed&&t.offset===0&&M.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,M.format):"",p=()=>r?Zx(t):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),_=(M,m)=>r?Xx(t,M):d(m?{month:M}:{month:M,day:"numeric"},"month"),T=(M,m)=>r?Jx(t,M):d(m?{weekday:M}:{weekday:M,month:"long",day:"numeric"},"weekday"),E=M=>{const m=yr.macroTokenToFormatOpts(M);return m?this.formatWithSystemDefault(t,m):M},S=M=>r?Qx(t,M):d({era:M},"era"),w=M=>{switch(M){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return f({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return f({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return f({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return p();case"d":return l?d({day:"numeric"},"day"):this.num(t.day);case"dd":return l?d({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return T("short",!0);case"cccc":return T("long",!0);case"ccccc":return T("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return T("short",!1);case"EEEE":return T("long",!1);case"EEEEE":return T("narrow",!1);case"L":return l?d({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return l?d({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return _("short",!0);case"LLLL":return _("long",!0);case"LLLLL":return _("narrow",!0);case"M":return l?d({month:"numeric"},"month"):this.num(t.month);case"MM":return l?d({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return _("short",!1);case"MMMM":return _("long",!1);case"MMMMM":return _("narrow",!1);case"y":return l?d({year:"numeric"},"year"):this.num(t.year);case"yy":return l?d({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return l?d({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return l?d({year:"numeric"},"year"):this.num(t.year,6);case"G":return S("short");case"GG":return S("long");case"GGGGG":return S("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return E(M)}};return Kg(yr.parseFormat(n),w)}formatDurationFromString(t,n){const r=_=>{switch(_[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=_=>T=>{const E=r(T);return E?this.num(_.get(E),T.length):T},d=yr.parseFormat(n),f=d.reduce((_,{literal:T,val:E})=>T?_:_.concat(E),[]),p=t.shiftTo(...f.map(r).filter(_=>_));return Kg(d,l(p))}}const zm=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ll(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function al(...e){return t=>e.reduce(([n,r,l],d)=>{const[f,p,_]=d(t,l);return[{...n,...f},p||r,_]},[{},null,1]).slice(0,2)}function cl(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const l=n.exec(e);if(l)return r(l)}return[null,null]}function Um(...e){return(t,n)=>{const r={};let l;for(l=0;l<e.length;l++)r[e[l]]=Eo(t[n+l]);return[r,null,n+l]}}const Gm=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,nv=`(?:${Gm.source}?(?:\\[(${zm.source})\\])?)?`,Id=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Ym=RegExp(`${Id.source}${nv}`),kd=RegExp(`(?:T${Ym.source})?`),rv=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,iv=/(\d{4})-?W(\d\d)(?:-?(\d))?/,ov=/(\d{4})-?(\d{3})/,sv=Um("weekYear","weekNumber","weekDay"),lv=Um("year","ordinal"),av=/(\d{4})-(\d\d)-(\d\d)/,jm=RegExp(`${Id.source} ?(?:${Gm.source}|(${zm.source}))?`),cv=RegExp(`(?: ${jm.source})?`);function Js(e,t,n){const r=e[t];return It(r)?n:Eo(r)}function uv(e,t){return[{year:Js(e,t),month:Js(e,t+1,1),day:Js(e,t+2,1)},null,t+3]}function ul(e,t){return[{hours:Js(e,t,0),minutes:Js(e,t+1,0),seconds:Js(e,t+2,0),milliseconds:bd(e[t+3])},null,t+4]}function da(e,t){const n=!e[t]&&!e[t+1],r=vc(e[t+1],e[t+2]),l=n?null:xr.instance(r);return[{},l,t+3]}function fa(e,t){const n=e[t]?no.create(e[t]):null;return[{},n,t+1]}const dv=RegExp(`^T?${Id.source}$`),fv=/^-?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 hv(e){const[t,n,r,l,d,f,p,_,T]=e,E=t[0]==="-",S=_&&_[0]==="-",w=(M,m=!1)=>M!==void 0&&(m||M&&E)?-M:M;return[{years:w(es(n)),months:w(es(r)),weeks:w(es(l)),days:w(es(d)),hours:w(es(f)),minutes:w(es(p)),seconds:w(es(_),_==="-0"),milliseconds:w(bd(T),S)}]}const gv={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Pd(e,t,n,r,l,d,f){const p={year:t.length===2?rd(Eo(t)):Eo(t),month:Pm.indexOf(n)+1,day:Eo(r),hour:Eo(l),minute:Eo(d)};return f&&(p.second=Eo(f)),e&&(p.weekday=e.length>3?Fm.indexOf(e)+1:Bm.indexOf(e)+1),p}const pv=/^(?:(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 mv(e){const[,t,n,r,l,d,f,p,_,T,E,S]=e,w=Pd(t,l,r,n,d,f,p);let M;return _?M=gv[_]:T?M=0:M=vc(E,S),[w,new xr(M)]}function _v(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const yv=/^(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$/,Nv=/^(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$/,Cv=/^(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 zg(e){const[,t,n,r,l,d,f,p]=e;return[Pd(t,l,r,n,d,f,p),xr.utcInstance]}function Ev(e){const[,t,n,r,l,d,f,p]=e;return[Pd(t,p,n,r,l,d,f),xr.utcInstance]}const Tv=ll(rv,kd),xv=ll(iv,kd),vv=ll(ov,kd),Sv=ll(Ym),Vm=al(uv,ul,da,fa),wv=al(sv,ul,da,fa),Ov=al(lv,ul,da,fa),Dv=al(ul,da,fa);function Av(e){return cl(e,[Tv,Vm],[xv,wv],[vv,Ov],[Sv,Dv])}function Mv(e){return cl(_v(e),[pv,mv])}function Rv(e){return cl(e,[yv,zg],[Nv,zg],[Cv,Ev])}function bv(e){return cl(e,[fv,hv])}const Lv=al(ul);function Iv(e){return cl(e,[dv,Lv])}const kv=ll(av,cv),Pv=ll(jm),$v=al(ul,da,fa);function Fv(e){return cl(e,[kv,Vm],[Pv,$v])}const Ug="Invalid Duration",qm={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Bv={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...qm},Xr=146097/400,Us=146097/4800,Hv={years:{quarters:4,months:12,weeks:Xr/7,days:Xr,hours:Xr*24,minutes:Xr*24*60,seconds:Xr*24*60*60,milliseconds:Xr*24*60*60*1e3},quarters:{months:3,weeks:Xr/28,days:Xr/4,hours:Xr*24/4,minutes:Xr*24*60/4,seconds:Xr*24*60*60/4,milliseconds:Xr*24*60*60*1e3/4},months:{weeks:Us/7,days:Us,hours:Us*24,minutes:Us*24*60,seconds:Us*24*60*60,milliseconds:Us*24*60*60*1e3},...qm},ss=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Wv=ss.slice(0).reverse();function Co(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new en(r)}function Zm(e,t){let n=t.milliseconds??0;for(const r of Wv.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function Gg(e,t){const n=Zm(e,t)<0?-1:1;ss.reduceRight((r,l)=>{if(It(t[l]))return r;if(r){const d=t[r]*n,f=e[l][r],p=Math.floor(d/f);t[l]+=p*n,t[r]-=p*f*n}return l},null),ss.reduce((r,l)=>{if(It(t[l]))return r;if(r){const d=t[r]%1;t[r]-=d,t[l]+=d*e[r][l]}return l},null)}function Kv(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class en{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?Hv:Bv;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||an.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return en.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new _r(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new en({values:mc(t,en.normalizeUnit),loc:an.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(vo(t))return en.fromMillis(t);if(en.isDuration(t))return t;if(typeof t=="object")return en.fromObject(t);throw new _r(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=bv(t);return r?en.fromObject(r,n):en.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=Iv(t);return r?en.fromObject(r,n):en.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new _r("need to specify a reason the Duration is invalid");const r=t instanceof gi?t:new gi(t,n);if(Rn.throwOnInvalid)throw new fx(r);return new en({invalid:r})}static normalizeUnit(t){const n={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"}[t&&t.toLowerCase()];if(!n)throw new sm(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?yr.create(this.loc,r).formatDurationFromString(this,t):Ug}toHuman(t={}){if(!this.isValid)return Ug;const n=ss.map(r=>{const l=this.values[r];return It(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(l)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Ld(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Dt.fromMillis(n,{zone:"UTC"}).toISOTime(t))}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?Zm(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=en.fromDurationLike(t),r={};for(const l of ss)(el(n.values,l)||el(this.values,l))&&(r[l]=n.get(l)+this.get(l));return Co(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=en.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=km(t(this.values[r],r));return Co(this,{values:n},!0)}get(t){return this[en.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...mc(t,en.normalizeUnit)};return Co(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:l}={}){const f={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:l,conversionAccuracy:r};return Co(this,f)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Gg(this.matrix,t),Co(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=Kv(this.normalize().shiftToAll().toObject());return Co(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(f=>en.normalizeUnit(f));const n={},r={},l=this.toObject();let d;for(const f of ss)if(t.indexOf(f)>=0){d=f;let p=0;for(const T in r)p+=this.matrix[T][f]*r[T],r[T]=0;vo(l[f])&&(p+=l[f]);const _=Math.trunc(p);n[f]=_,r[f]=(p*1e3-_*1e3)/1e3}else vo(l[f])&&(r[f]=l[f]);for(const f in r)r[f]!==0&&(n[d]+=f===d?r[f]:r[f]/this.matrix[d][f]);return Gg(this.matrix,n),Co(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Co(this,{values:t},!0)}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 this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,l){return r===void 0||r===0?l===void 0||l===0:r===l}for(const r of ss)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Gs="Invalid Interval";function zv(e,t){return!e||!e.isValid?Mn.invalid("missing or invalid start"):!t||!t.isValid?Mn.invalid("missing or invalid end"):t<e?Mn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class Mn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new _r("need to specify a reason the Interval is invalid");const r=t instanceof gi?t:new gi(t,n);if(Rn.throwOnInvalid)throw new dx(r);return new Mn({invalid:r})}static fromDateTimes(t,n){const r=Xl(t),l=Xl(n),d=zv(r,l);return d??new Mn({start:r,end:l})}static after(t,n){const r=en.fromDurationLike(n),l=Xl(t);return Mn.fromDateTimes(l,l.plus(r))}static before(t,n){const r=en.fromDurationLike(n),l=Xl(t);return Mn.fromDateTimes(l.minus(r),l)}static fromISO(t,n){const[r,l]=(t||"").split("/",2);if(r&&l){let d,f;try{d=Dt.fromISO(r,n),f=d.isValid}catch{f=!1}let p,_;try{p=Dt.fromISO(l,n),_=p.isValid}catch{_=!1}if(f&&_)return Mn.fromDateTimes(d,p);if(f){const T=en.fromISO(l,n);if(T.isValid)return Mn.after(d,T)}else if(_){const T=en.fromISO(r,n);if(T.isValid)return Mn.before(p,T)}}return Mn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(t,n);let l;return n!=null&&n.useLocaleWeeks?l=this.end.reconfigure({locale:r.locale}):l=this.end,l=l.startOf(t,n),Math.floor(l.diff(r,t).get(t))+(l.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?Mn.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Xl).filter(f=>this.contains(f)).sort((f,p)=>f.toMillis()-p.toMillis()),r=[];let{s:l}=this,d=0;for(;l<this.e;){const f=n[d]||this.e,p=+f>+this.e?this.e:f;r.push(Mn.fromDateTimes(l,p)),l=p,d+=1}return r}splitBy(t){const n=en.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,l=1,d;const f=[];for(;r<this.e;){const p=this.start.plus(n.mapUnits(_=>_*l));d=+p>+this.e?this.e:p,f.push(Mn.fromDateTimes(r,d)),r=d,l+=1}return f}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:Mn.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return Mn.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((l,d)=>l.s-d.s).reduce(([l,d],f)=>d?d.overlaps(f)||d.abutsStart(f)?[l,d.union(f)]:[l.concat([d]),f]:[l,f],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const l=[],d=t.map(_=>[{time:_.s,type:"s"},{time:_.e,type:"e"}]),f=Array.prototype.concat(...d),p=f.sort((_,T)=>_.time-T.time);for(const _ of p)r+=_.type==="s"?1:-1,r===1?n=_.time:(n&&+n!=+_.time&&l.push(Mn.fromDateTimes(n,_.time)),n=null);return Mn.merge(l)}difference(...t){return Mn.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Gs}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=hc,n={}){return this.isValid?yr.create(this.s.loc.clone(n),t).formatInterval(this):Gs}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Gs}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Gs}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Gs}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Gs}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):en.invalid(this.invalidReason)}mapEndpoints(t){return Mn.fromDateTimes(t(this.s),t(this.e))}}class ec{static hasDST(t=Rn.defaultZone){const n=Dt.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return no.isValidZone(t)}static normalizeZone(t){return To(t,Rn.defaultZone)}static getStartOfWeek({locale:t=null,locObj:n=null}={}){return(n||an.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:n=null}={}){return(n||an.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:n=null}={}){return(n||an.create(t)).getWeekendDays().slice()}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||an.create(n,r,d)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||an.create(n,r,d)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null}={}){return(l||an.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:l=null}={}){return(l||an.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return an.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return an.create(n,null,"gregory").eras(t)}static features(){return{relative:bm(),localeWeek:Lm()}}}function Yg(e,t){const n=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(en.fromMillis(r).as("days"))}function Uv(e,t,n){const r=[["years",(_,T)=>T.year-_.year],["quarters",(_,T)=>T.quarter-_.quarter+(T.year-_.year)*4],["months",(_,T)=>T.month-_.month+(T.year-_.year)*12],["weeks",(_,T)=>{const E=Yg(_,T);return(E-E%7)/7}],["days",Yg]],l={},d=e;let f,p;for(const[_,T]of r)n.indexOf(_)>=0&&(f=_,l[_]=T(e,t),p=d.plus(l),p>t?(l[_]--,e=d.plus(l),e>t&&(p=e,l[_]--,e=d.plus(l))):e=p);return[e,l,p,f]}function Gv(e,t,n,r){let[l,d,f,p]=Uv(e,t,n);const _=t-l,T=n.filter(S=>["hours","minutes","seconds","milliseconds"].indexOf(S)>=0);T.length===0&&(f<t&&(f=l.plus({[p]:1})),f!==l&&(d[p]=(d[p]||0)+_/(f-l)));const E=en.fromObject(d,r);return T.length>0?en.fromMillis(_,r).shiftTo(...T).plus(E):E}const Yv="missing Intl.DateTimeFormat.formatToParts support";function on(e,t=n=>n){return{regex:e,deser:([n])=>t(kx(n))}}const jv=" ",Jm=`[ ${jv}]`,Xm=new RegExp(Jm,"g");function Vv(e){return e.replace(/\./g,"\\.?").replace(Xm,Jm)}function jg(e){return e.replace(/\./g,"").replace(Xm," ").toLowerCase()}function hi(e,t){return e===null?null:{regex:RegExp(e.map(Vv).join("|")),deser:([n])=>e.findIndex(r=>jg(n)===jg(r))+t}}function Vg(e,t){return{regex:e,deser:([,n,r])=>vc(n,r),groups:t}}function tc(e){return{regex:e,deser:([t])=>t}}function qv(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Zv(e,t){const n=fi(t),r=fi(t,"{2}"),l=fi(t,"{3}"),d=fi(t,"{4}"),f=fi(t,"{6}"),p=fi(t,"{1,2}"),_=fi(t,"{1,3}"),T=fi(t,"{1,6}"),E=fi(t,"{1,9}"),S=fi(t,"{2,4}"),w=fi(t,"{4,6}"),M=k=>({regex:RegExp(qv(k.val)),deser:([G])=>G,literal:!0}),v=(k=>{if(e.literal)return M(k);switch(k.val){case"G":return hi(t.eras("short"),0);case"GG":return hi(t.eras("long"),0);case"y":return on(T);case"yy":return on(S,rd);case"yyyy":return on(d);case"yyyyy":return on(w);case"yyyyyy":return on(f);case"M":return on(p);case"MM":return on(r);case"MMM":return hi(t.months("short",!0),1);case"MMMM":return hi(t.months("long",!0),1);case"L":return on(p);case"LL":return on(r);case"LLL":return hi(t.months("short",!1),1);case"LLLL":return hi(t.months("long",!1),1);case"d":return on(p);case"dd":return on(r);case"o":return on(_);case"ooo":return on(l);case"HH":return on(r);case"H":return on(p);case"hh":return on(r);case"h":return on(p);case"mm":return on(r);case"m":return on(p);case"q":return on(p);case"qq":return on(r);case"s":return on(p);case"ss":return on(r);case"S":return on(_);case"SSS":return on(l);case"u":return tc(E);case"uu":return tc(p);case"uuu":return on(n);case"a":return hi(t.meridiems(),0);case"kkkk":return on(d);case"kk":return on(S,rd);case"W":return on(p);case"WW":return on(r);case"E":case"c":return on(n);case"EEE":return hi(t.weekdays("short",!1),1);case"EEEE":return hi(t.weekdays("long",!1),1);case"ccc":return hi(t.weekdays("short",!0),1);case"cccc":return hi(t.weekdays("long",!0),1);case"Z":case"ZZ":return Vg(new RegExp(`([+-]${p.source})(?::(${r.source}))?`),2);case"ZZZ":return Vg(new RegExp(`([+-]${p.source})(${r.source})?`),2);case"z":return tc(/[a-z_+-/]{1,256}?/i);case" ":return tc(/[^\S\n\r]/);default:return M(k)}})(e)||{invalidReason:Yv};return v.token=e,v}const Jv={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"}};function Xv(e,t,n){const{type:r,value:l}=e;if(r==="literal"){const _=/^\s+$/.test(l);return{literal:!_,val:_?" ":l}}const d=t[r];let f=r;r==="hour"&&(t.hour12!=null?f=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?f="hour12":f="hour24":f=n.hour12?"hour12":"hour24");let p=Jv[f];if(typeof p=="object"&&(p=p[d]),p)return{literal:!1,val:p}}function Qv(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function eS(e,t,n){const r=e.match(t);if(r){const l={};let d=1;for(const f in n)if(el(n,f)){const p=n[f],_=p.groups?p.groups+1:1;!p.literal&&p.token&&(l[p.token.val[0]]=p.deser(r.slice(d,d+_))),d+=_}return[r,l]}else return[r,{}]}function tS(e){const t=d=>{switch(d){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}};let n=null,r;return It(e.z)||(n=no.create(e.z)),It(e.Z)||(n||(n=new xr(e.Z)),r=e.Z),It(e.q)||(e.M=(e.q-1)*3+1),It(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),It(e.u)||(e.S=bd(e.u)),[Object.keys(e).reduce((d,f)=>{const p=t(f);return p&&(d[p]=e[f]),d},{}),n,r]}let ku=null;function nS(){return ku||(ku=Dt.fromMillis(1555555555555)),ku}function rS(e,t){if(e.literal)return e;const n=yr.macroTokenToFormatOpts(e.val),r=n_(n,t);return r==null||r.includes(void 0)?e:r}function Qm(e,t){return Array.prototype.concat(...e.map(n=>rS(n,t)))}class e_{constructor(t,n){if(this.locale=t,this.format=n,this.tokens=Qm(yr.parseFormat(n),t),this.units=this.tokens.map(r=>Zv(r,t)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,l]=Qv(this.units);this.regex=RegExp(r,"i"),this.handlers=l}}explainFromTokens(t){if(this.isValid){const[n,r]=eS(t,this.regex,this.handlers),[l,d,f]=r?tS(r):[null,null,void 0];if(el(r,"a")&&el(r,"H"))throw new qs("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:l,zone:d,specificOffset:f}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function t_(e,t,n){return new e_(e,n).explainFromTokens(t)}function iS(e,t,n){const{result:r,zone:l,specificOffset:d,invalidReason:f}=t_(e,t,n);return[r,l,d,f]}function n_(e,t){if(!e)return null;const r=yr.create(t,e).dtFormatter(nS()),l=r.formatToParts(),d=r.resolvedOptions();return l.map(f=>Xv(f,e,d))}const Pu="Invalid DateTime",qg=864e13;function na(e){return new gi("unsupported zone",`the zone "${e.name}" is not supported`)}function $u(e){return e.weekData===null&&(e.weekData=gc(e.c)),e.weekData}function Fu(e){return e.localWeekData===null&&(e.localWeekData=gc(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function ts(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Dt({...n,...t,old:n})}function r_(e,t,n){let r=e-t*60*1e3;const l=n.offset(r);if(t===l)return[r,t];r-=(l-t)*60*1e3;const d=n.offset(r);return l===d?[r,l]:[e-Math.min(l,d)*60*1e3,Math.max(l,d)]}function nc(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function sc(e,t,n){return r_(xc(e),t,n)}function Zg(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),l=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,d={...e.c,year:r,month:l,day:Math.min(e.c.day,pc(r,l))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},f=en.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"),p=xc(d);let[_,T]=r_(p,n,e.zone);return f!==0&&(_+=f,T=e.zone.offset(_)),{ts:_,o:T}}function Ys(e,t,n,r,l,d){const{setZone:f,zone:p}=n;if(e&&Object.keys(e).length!==0||t){const _=t||p,T=Dt.fromObject(e,{...n,zone:_,specificOffset:d});return f?T:T.setZone(p)}else return Dt.invalid(new gi("unparsable",`the input "${l}" can't be parsed as ${r}`))}function rc(e,t,n=!0){return e.isValid?yr.create(an.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Bu(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=zn(e.c.year,n?6:4),t?(r+="-",r+=zn(e.c.month),r+="-",r+=zn(e.c.day)):(r+=zn(e.c.month),r+=zn(e.c.day)),r}function Jg(e,t,n,r,l,d){let f=zn(e.c.hour);return t?(f+=":",f+=zn(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(f+=":")):f+=zn(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(f+=zn(e.c.second),(e.c.millisecond!==0||!r)&&(f+=".",f+=zn(e.c.millisecond,3))),l&&(e.isOffsetFixed&&e.offset===0&&!d?f+="Z":e.o<0?(f+="-",f+=zn(Math.trunc(-e.o/60)),f+=":",f+=zn(Math.trunc(-e.o%60))):(f+="+",f+=zn(Math.trunc(e.o/60)),f+=":",f+=zn(Math.trunc(e.o%60)))),d&&(f+="["+e.zone.ianaName+"]"),f}const i_={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},oS={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},sS={ordinal:1,hour:0,minute:0,second:0,millisecond:0},o_=["year","month","day","hour","minute","second","millisecond"],lS=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],aS=["year","ordinal","hour","minute","second","millisecond"];function cS(e){const 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 sm(e);return t}function Xg(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return cS(e)}}function uS(e){return ac[e]||(lc===void 0&&(lc=Rn.now()),ac[e]=e.offset(lc)),ac[e]}function Qg(e,t){const n=To(t.zone,Rn.defaultZone);if(!n.isValid)return Dt.invalid(na(n));const r=an.fromObject(t);let l,d;if(It(e.year))l=Rn.now();else{for(const _ of o_)It(e[_])&&(e[_]=i_[_]);const f=Mm(e)||Rm(e);if(f)return Dt.invalid(f);const p=uS(n);[l,d]=sc(e,p,n)}return new Dt({ts:l,zone:n,loc:r,o:d})}function ep(e,t,n){const r=It(n.round)?!0:n.round,l=(f,p)=>(f=Ld(f,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(f,p)),d=f=>n.calendary?t.hasSame(e,f)?0:t.startOf(f).diff(e.startOf(f),f).get(f):t.diff(e,f).get(f);if(n.unit)return l(d(n.unit),n.unit);for(const f of n.units){const p=d(f);if(Math.abs(p)>=1)return l(p,f)}return l(e>t?-0:0,n.units[n.units.length-1])}function tp(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}let lc,ac={};class Dt{constructor(t){const n=t.zone||Rn.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new gi("invalid input"):null)||(n.isValid?null:na(n));this.ts=It(t.ts)?Rn.now():t.ts;let l=null,d=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[l,d]=[t.old.c,t.old.o];else{const p=vo(t.o)&&!t.old?t.o:n.offset(this.ts);l=nc(this.ts,p),r=Number.isNaN(l.year)?new gi("invalid input"):null,l=r?null:l,d=r?null:p}this._zone=n,this.loc=t.loc||an.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Dt({})}static local(){const[t,n]=tp(arguments),[r,l,d,f,p,_,T]=n;return Qg({year:r,month:l,day:d,hour:f,minute:p,second:_,millisecond:T},t)}static utc(){const[t,n]=tp(arguments),[r,l,d,f,p,_,T]=n;return t.zone=xr.utcInstance,Qg({year:r,month:l,day:d,hour:f,minute:p,second:_,millisecond:T},t)}static fromJSDate(t,n={}){const r=Hx(t)?t.valueOf():NaN;if(Number.isNaN(r))return Dt.invalid("invalid input");const l=To(n.zone,Rn.defaultZone);return l.isValid?new Dt({ts:r,zone:l,loc:an.fromObject(n)}):Dt.invalid(na(l))}static fromMillis(t,n={}){if(vo(t))return t<-qg||t>qg?Dt.invalid("Timestamp out of range"):new Dt({ts:t,zone:To(n.zone,Rn.defaultZone),loc:an.fromObject(n)});throw new _r(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(vo(t))return new Dt({ts:t*1e3,zone:To(n.zone,Rn.defaultZone),loc:an.fromObject(n)});throw new _r("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=To(n.zone,Rn.defaultZone);if(!r.isValid)return Dt.invalid(na(r));const l=an.fromObject(n),d=mc(t,Xg),{minDaysInFirstWeek:f,startOfWeek:p}=Bg(d,l),_=Rn.now(),T=It(n.specificOffset)?r.offset(_):n.specificOffset,E=!It(d.ordinal),S=!It(d.year),w=!It(d.month)||!It(d.day),M=S||w,m=d.weekYear||d.weekNumber;if((M||E)&&m)throw new qs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(w&&E)throw new qs("Can't mix ordinal dates with month/day");const v=m||d.weekday&&!M;let k,G,I=nc(_,T);v?(k=lS,G=oS,I=gc(I,f,p)):E?(k=aS,G=sS,I=Iu(I)):(k=o_,G=i_);let P=!1;for(const z of k){const q=d[z];It(q)?P?d[z]=G[z]:d[z]=I[z]:P=!0}const H=v?$x(d,f,p):E?Fx(d):Mm(d),j=H||Rm(d);if(j)return Dt.invalid(j);const re=v?$g(d,f,p):E?Fg(d):d,[te,ce]=sc(re,T,r),V=new Dt({ts:te,zone:r,o:ce,loc:l});return d.weekday&&M&&t.weekday!==V.weekday?Dt.invalid("mismatched weekday",`you can't specify both a weekday of ${d.weekday} and a date of ${V.toISO()}`):V.isValid?V:Dt.invalid(V.invalid)}static fromISO(t,n={}){const[r,l]=Av(t);return Ys(r,l,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,l]=Mv(t);return Ys(r,l,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,l]=Rv(t);return Ys(r,l,n,"HTTP",n)}static fromFormat(t,n,r={}){if(It(t)||It(n))throw new _r("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=r,f=an.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[p,_,T,E]=iS(f,t,n);return E?Dt.invalid(E):Ys(p,_,r,`format ${n}`,t,T)}static fromString(t,n,r={}){return Dt.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,l]=Fv(t);return Ys(r,l,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new _r("need to specify a reason the DateTime is invalid");const r=t instanceof gi?t:new gi(t,n);if(Rn.throwOnInvalid)throw new ux(r);return new Dt({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=n_(t,an.fromObject(n));return r?r.map(l=>l?l.val:null).join(""):null}static expandFormat(t,n={}){return Qm(yr.parseFormat(t),an.fromObject(n)).map(l=>l.val).join("")}static resetCache(){lc=void 0,ac={}}get(t){return this[t]}get isValid(){return this.invalid===null}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}get 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?$u(this).weekYear:NaN}get weekNumber(){return this.isValid?$u(this).weekNumber:NaN}get weekday(){return this.isValid?$u(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Fu(this).weekday:NaN}get localWeekNumber(){return this.isValid?Fu(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Fu(this).weekYear:NaN}get ordinal(){return this.isValid?Iu(this.c).ordinal:NaN}get monthShort(){return this.isValid?ec.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ec.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ec.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ec.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?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=xc(this.c),l=this.zone.offset(r-t),d=this.zone.offset(r+t),f=this.zone.offset(r-l*n),p=this.zone.offset(r-d*n);if(f===p)return[this];const _=r-f*n,T=r-p*n,E=nc(_,f),S=nc(T,p);return E.hour===S.hour&&E.minute===S.minute&&E.second===S.second&&E.millisecond===S.millisecond?[ts(this,{ts:_}),ts(this,{ts:T})]:[this]}get isInLeapYear(){return ua(this.year)}get daysInMonth(){return pc(this.year,this.month)}get daysInYear(){return this.isValid?Zs(this.year):NaN}get weeksInWeekYear(){return this.isValid?aa(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?aa(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:l}=yr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:l}}toUTC(t=0,n={}){return this.setZone(xr.instance(t),n)}toLocal(){return this.setZone(Rn.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=To(t,Rn.defaultZone),t.equals(this.zone))return this;if(t.isValid){let l=this.ts;if(n||r){const d=t.offset(this.ts),f=this.toObject();[l]=sc(f,d,t)}return ts(this,{ts:l,zone:t})}else return Dt.invalid(na(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const l=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return ts(this,{loc:l})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=mc(t,Xg),{minDaysInFirstWeek:r,startOfWeek:l}=Bg(n,this.loc),d=!It(n.weekYear)||!It(n.weekNumber)||!It(n.weekday),f=!It(n.ordinal),p=!It(n.year),_=!It(n.month)||!It(n.day),T=p||_,E=n.weekYear||n.weekNumber;if((T||f)&&E)throw new qs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(_&&f)throw new qs("Can't mix ordinal dates with month/day");let S;d?S=$g({...gc(this.c,r,l),...n},r,l):It(n.ordinal)?(S={...this.toObject(),...n},It(n.day)&&(S.day=Math.min(pc(S.year,S.month),S.day))):S=Fg({...Iu(this.c),...n});const[w,M]=sc(S,this.o,this.zone);return ts(this,{ts:w,o:M})}plus(t){if(!this.isValid)return this;const n=en.fromDurationLike(t);return ts(this,Zg(this,n))}minus(t){if(!this.isValid)return this;const n=en.fromDurationLike(t).negate();return ts(this,Zg(this,n))}startOf(t,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},l=en.normalizeUnit(t);switch(l){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;break}if(l==="weeks")if(n){const d=this.loc.getStartOfWeek(),{weekday:f}=this;f<d&&(r.weekNumber=this.weekNumber-1),r.weekday=d}else r.weekday=1;if(l==="quarters"){const d=Math.ceil(this.month/3);r.month=(d-1)*3+1}return this.set(r)}endOf(t,n){return this.isValid?this.plus({[t]:1}).startOf(t,n).minus(1):this}toFormat(t,n={}){return this.isValid?yr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Pu}toLocaleString(t=hc,n={}){return this.isValid?yr.create(this.loc.clone(n),t).formatDateTime(this):Pu}toLocaleParts(t={}){return this.isValid?yr.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:l=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const f=t==="extended";let p=Bu(this,f);return p+="T",p+=Jg(this,f,n,r,l,d),p}toISODate({format:t="extended"}={}){return this.isValid?Bu(this,t==="extended"):null}toISOWeekDate(){return rc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:l=!1,extendedZone:d=!1,format:f="extended"}={}){return this.isValid?(l?"T":"")+Jg(this,f==="extended",n,t,r,d):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?Bu(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let l="HH:mm:ss.SSS";return(n||t)&&(r&&(l+=" "),n?l+="z":t&&(l+="ZZ")),rc(this,l,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Pu}[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(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return en.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...r},d=Wx(n).map(en.normalizeUnit),f=t.valueOf()>this.valueOf(),p=f?this:t,_=f?t:this,T=Gv(p,_,d,l);return f?T.negate():T}diffNow(t="milliseconds",n={}){return this.diff(Dt.now(),t,n)}until(t){return this.isValid?Mn.fromDateTimes(this,t):this}hasSame(t,n,r){if(!this.isValid)return!1;const l=t.valueOf(),d=this.setZone(t.zone,{keepLocalTime:!0});return d.startOf(n,r)<=l&&l<=d.endOf(n,r)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Dt.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let l=["years","months","days","hours","minutes","seconds"],d=t.unit;return Array.isArray(t.unit)&&(l=t.unit,d=void 0),ep(n,this.plus(r),{...t,numeric:"always",units:l,unit:d})}toRelativeCalendar(t={}){return this.isValid?ep(t.base||Dt.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Dt.isDateTime))throw new _r("min requires all arguments be DateTimes");return Hg(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Dt.isDateTime))throw new _r("max requires all arguments be DateTimes");return Hg(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:l=null,numberingSystem:d=null}=r,f=an.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return t_(f,t,n)}static fromStringExplain(t,n,r={}){return Dt.fromFormatExplain(t,n,r)}static buildFormatParser(t,n={}){const{locale:r=null,numberingSystem:l=null}=n,d=an.fromOpts({locale:r,numberingSystem:l,defaultToEN:!0});return new e_(d,t)}static fromFormatParser(t,n,r={}){if(It(t)||It(n))throw new _r("fromFormatParser requires an input string and a format parser");const{locale:l=null,numberingSystem:d=null}=r,f=an.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});if(!f.equals(n.locale))throw new _r(`fromFormatParser called with a locale of ${f}, but the format parser was created for ${n.locale}`);const{result:p,zone:_,specificOffset:T,invalidReason:E}=n.explainFromTokens(t);return E?Dt.invalid(E):Ys(p,_,r,`format ${n.format}`,t,T)}static get DATE_SHORT(){return hc}static get DATE_MED(){return lm}static get DATE_MED_WITH_WEEKDAY(){return hx}static get DATE_FULL(){return am}static get DATE_HUGE(){return cm}static get TIME_SIMPLE(){return um}static get TIME_WITH_SECONDS(){return dm}static get TIME_WITH_SHORT_OFFSET(){return fm}static get TIME_WITH_LONG_OFFSET(){return hm}static get TIME_24_SIMPLE(){return gm}static get TIME_24_WITH_SECONDS(){return pm}static get TIME_24_WITH_SHORT_OFFSET(){return mm}static get TIME_24_WITH_LONG_OFFSET(){return _m}static get DATETIME_SHORT(){return ym}static get DATETIME_SHORT_WITH_SECONDS(){return Nm}static get DATETIME_MED(){return Cm}static get DATETIME_MED_WITH_SECONDS(){return Em}static get DATETIME_MED_WITH_WEEKDAY(){return gx}static get DATETIME_FULL(){return Tm}static get DATETIME_FULL_WITH_SECONDS(){return xm}static get DATETIME_HUGE(){return vm}static get DATETIME_HUGE_WITH_SECONDS(){return Sm}}function Xl(e){if(Dt.isDateTime(e))return e;if(e&&e.valueOf&&vo(e.valueOf()))return Dt.fromJSDate(e);if(e&&typeof e=="object")return Dt.fromObject(e);throw new _r(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var sn=(e=>(e.Monday="MONDAY",e.Tuesday="TUESDAY",e.Wednesday="WEDNESDAY",e.Thursday="THURSDAY",e.Friday="FRIDAY",e.Saturday="SATURDAY",e.Sunday="SUNDAY",e))(sn||{});function $d(e){const t={1:sn.Monday,2:sn.Tuesday,3:sn.Wednesday,4:sn.Thursday,5:sn.Friday,6:sn.Saturday,7:sn.Sunday};if(e.weekday in t)return t[e.weekday];throw new Error(`Invalid DateTime.weekday property: ${e}, ${e.weekday}`)}function Di(e){return{[sn.Monday]:"Monday",[sn.Tuesday]:"Tuesday",[sn.Wednesday]:"Wednesday",[sn.Thursday]:"Thursday",[sn.Friday]:"Friday",[sn.Saturday]:"Saturday",[sn.Sunday]:"Sunday"}[e]}class np{constructor(t,n,r){Ie(this,"end");Ie(this,"start");this.end=t.setZone(r),this.start=t.setZone(r),[n.start,n.end].forEach(_=>{if(_.split(":").length!==2)throw new Error('expected interval start and end data to be in the format "HH:MM"')});const[l,d]=n.start.split(":"),[f,p]=n.end.split(":");this.end=this.end.set({hour:Number(f),minute:Number(p)}),this.start=this.start.set({hour:Number(l),minute:Number(d)}),this.end<this.start&&(this.end=this.end.plus({days:1})),this.end.minute===59&&(this.end=this.end.set({minute:60}))}contains(t){return this.start<=t&&t<this.end}getStartTime(t,n){const r={hour:"numeric",minute:"numeric",...n};return this.start.setLocale(t||"en-US").toLocaleString(r)}getEndTime(t,n){const r={hour:"numeric",minute:"numeric",...n};return this.end.setLocale(t||"en-US").toLocaleString(r)}timeIsEqualTo(t){const n=this.getStartTime()===t.getStartTime(),r=this.getEndTime()===t.getEndTime();return n&&r}is24h(){const t=this.start.minute===0&&this.start.hour===0,n=this.end.minute===0&&this.end.hour===0,r=this.end.day-this.start.day===1||this.end.day===1;return t&&n&&r}}class s_{constructor(t,n){Ie(this,"holidayHoursByDate");Ie(this,"hours");Ie(this,"timezone");this.holidayHoursByDate=Object.fromEntries((t.holidayHours||[]).map(r=>[r.date,r])),this.hours=t,this.timezone=n}getInterval(t){if(this.isTemporarilyClosedAt(t))return null;let n=t;n=n.minus({days:1});for(const r of[n,t]){const l=this.getHours(r);if(l&&!l.isClosed)for(const d of l.openIntervals||[]){const f=new np(r,d,this.timezone);if(f.contains(t))return f}}return null}getCurrentInterval(){return this.getInterval(Dt.now())}getIntervalAfter(t){const n=this.getIntervalsForNDays(8,t),r=(d,f)=>d.start===f.start?0:d.start>f.start?1:-1,l=n.sort(r);for(const[d,f]of l.entries())if(f.contains(t)&&l.length>d+1)return l[d+1];for(const d of l)if(d.start>t)return d;return null}getIntervalsForNDays(t,n){const r=[];for(let l=0;l<t;l++){let d=n;d=d.plus({days:l});const f=this.getHours(d);f&&!f.isClosed&&r.push(...f.openIntervals.map(p=>new np(d,p,this.timezone)))}return r}getHolidayHours(t){return this.isTemporarilyClosedAt(t)?null:this.holidayHoursByDate[(t.toISO()||"").replace(/T.*/,"")]||null}getNormalHours(t){if(this.isTemporarilyClosedAt(t))return null;const n=Di($d(t)).toLowerCase();return this.hours[n]}getHours(t){const n=this.getHolidayHours(t);return!n||n.isRegularHours?this.getNormalHours(t):n}getNextInterval(){return this.getIntervalAfter(Dt.now())}isHoliday(t){return!!this.getHolidayHours(t)}isTemporarilyClosedAt(t){if(!this.hours.reopenDate)return!1;const n=this.hours.reopenDate.split("-");if(n.length===3){const[r,l,d]=n,f=Dt.fromObject({year:Number(r),month:Number(l),day:Number(d)},{zone:this.timezone});if(t<f)return!0}return!1}isOpenAt(t){return this.isTemporarilyClosedAt(t)?!1:!!this.getInterval(t)}isOpenNow(){return this.isOpenAt(Dt.now())}}function dS(e,t){const n=[...e];return t=t%n.length,n.concat(n.splice(0,n.length-t))}function fS(e,t){if(e.length!==t.length)return!1;for(const[n,r]of e.entries())if(!r.timeIsEqualTo(t[n]))return!1;return!0}function ha(e){var t,n;return((n=(t=e==null?void 0:e.currentInterval)==null?void 0:t.is24h)==null?void 0:n.call(t))||!1}function ga(e){return!e.futureInterval}function hS(e){return ha(e)?ft.jsx("span",{className:"HoursStatus-current",children:"Open 24 Hours"}):ga(e)?ft.jsx("span",{className:"HoursStatus-current",children:"Temporarily Closed"}):ft.jsx("span",{className:"HoursStatus-current",children:e.isOpen?"Open Now":"Closed"})}function gS(e){return ha(e)||ga(e)?null:ft.jsx("span",{className:"HoursStatus-separator",children:" • "})}function pS(e){return ha(e)||ga(e)?null:ft.jsx("span",{className:"HoursStatus-future",children:e.isOpen?"Closes at":"Opens at"})}function mS(e){if(ha(e)||ga(e))return null;let t="";if(e.isOpen){const n=e.currentInterval;t+=n?n.getEndTime("en-US",e.timeOptions):""}else{const n=e.futureInterval;t+=n?n.getStartTime("en-US",e.timeOptions):""}return ft.jsxs("span",{className:"HoursStatus-time",children:[" ",t]})}function _S(e){var r,l;if(ha(e)||ga(e))return null;const t={weekday:"long",...e.dayOptions??{}};let n="";if(e.isOpen){const d=e.currentInterval;n+=((r=d==null?void 0:d.end)==null?void 0:r.setLocale("en-US").toLocaleString(t))||""}else{const d=e.futureInterval;n+=((l=d==null?void 0:d.start)==null?void 0:l.setLocale("en-US").toLocaleString(t))||""}return ft.jsxs("span",{className:"HoursStatus-dayOfWeek",children:[" ",n]})}function yS(e,t){const n=e.currentTemplate||hS,r=e.separatorTemplate||gS,l=e.futureTemplate||pS,d=e.timeTemplate||mS,f=e.dayOfWeekTemplate||_S;return ft.jsxs("div",{className:Qs("HoursStatus",(t==null?void 0:t.className)||""),children:[n(e),r(e),l(e),d(e),f(e)]})}const NS=e=>{const[t,n]=rt.useState(!1),[r,l]=rt.useState(!1);rt.useEffect(()=>{l(!0)},[]);const d=e.statusTemplate||yS,f=new s_(e.hours,e.timezone),p=f.isOpenNow(),_=f.getCurrentInterval(),T=f.getNextInterval(),E=(_==null?void 0:_.end)||(T==null?void 0:T.start);if(E&&!t){n(!0);const w=E.toMillis()-Dt.now().toMillis();setTimeout(()=>n(!1),w)}const S={isOpen:p,currentInterval:_,futureInterval:T,...e};return ft.jsx(ft.Fragment,{children:r&&d(S,e)})};function CS(e,t){const n=[];return e.forEach(r=>{const l=n[n.length-1];l?fS(l.intervals,r.intervals)?(l.endDay=r.endDay,l.isToday=l.isToday||r.isToday):n.push({...r}):n.push({...r})}),n.map(r=>{const l=t&&Di(r.startDay)in t?t[Di(r.startDay)]||"":Di(r.startDay),d=t&&Di(r.endDay)in t?t[Di(r.endDay)]||"":Di(r.endDay);return{...r,dayOfWeek:"Collapsed",dayName:r.startDay===r.endDay?`${l}`:`${l} - ${d}`}})}function ES(e,t){const n=[],r=e.intervals.length>0&&e.intervals[0].is24h();return e.intervals.length===0?n.push("Closed"):r?n.push("Open 24 hours"):e.intervals.forEach(l=>{const d=l.getStartTime("en-US",t),f=l.getEndTime("en-US",t);n.push(`${d} - ${f}`)}),n}function TS(e,t,n){const r=[];for(let l=1;l<=7;l++){const d=Dt.fromObject({weekday:l}),f=$d(d);r.push({startDay:f,endDay:f,dayName:n&&Di(f).toLowerCase()in n?n[Di(f).toLowerCase()]||"":Di(f),intervals:e.filter(p=>p.start.weekday===l),isToday:t.weekday===l})}return r}const xS=e=>{const[t,n]=rt.useState(!1);rt.useEffect(()=>{n(!0)},[]);const r=new s_(e.hours,Intl.DateTimeFormat().resolvedOptions().timeZone),l=Dt.now(),d=r.getIntervalsForNDays(7,l);let f=TS(d,l,e.dayOfWeekNames);function p(E){return E?{today:$d(l),monday:sn.Monday,tuesday:sn.Tuesday,wednesday:sn.Wednesday,thursday:sn.Thursday,friday:sn.Friday,saturday:sn.Saturday,sunday:sn.Sunday}[E]:sn.Sunday}let _=[sn.Sunday,sn.Monday,sn.Tuesday,sn.Wednesday,sn.Thursday,sn.Friday,sn.Saturday];const T=_.indexOf(p(e.startOfWeek));return _=dS(_,7-T),f.sort((E,S)=>_.indexOf(E.startDay)-_.indexOf(S.startDay)),e.collapseDays&&(f=CS(f,e.dayOfWeekNames)),ft.jsx(ft.Fragment,{children:t&&ft.jsx("div",{className:Qs("HoursTable",e.className),children:f.map(E=>{const w=(e.intervalStringsBuilderFn||ES)(E,e.timeOptions);return ft.jsxs("div",{className:Qs("HoursTable-row",{"is-today":E.isToday}),children:[ft.jsx("span",{className:"HoursTable-day",children:E.dayName}),ft.jsx("span",{className:"HoursTable-intervals",children:w.map((M,m)=>ft.jsx("span",{className:"HoursTable-interval",children:M},m))})]},E.dayName)})})})},vS=e=>`<script type="application/ld+json">
|
|
110
110
|
${JSON.stringify(e)}
|
|
111
111
|
<\/script>`,wc=(e,t)=>({"@context":"https://schema.org","@type":t,name:e.name}),SS=e=>typeof e!="object"?!1:"name"in e||"address"in e,wS=e=>typeof e!="object"?!1:"line1"in e||"city"in e||"region"in e||"postalCode"in e||"countryCode"in e,Fd=e=>wS(e)&&{address:{"@type":"PostalAddress",streetAddress:e.line1,addressLocality:e.city,addressRegion:e.region,postalCode:e.postalCode,addressCountry:e.countryCode}},l_=e=>SS(e)&&{"@type":"Place",name:e.name,...Fd(e.address)},a_=e=>typeof e!="object"||!("image"in e)?!1:"url"in e.image,Oc=e=>{if(!e)return{};const t=new Array;for(const n of e)a_(n)&&t.push(n.image.url);return{image:t}},OS=e=>a_(e)&&{image:e.image.url},DS=e=>typeof e!="object"?!1:"url"in e||"name"in e,AS=e=>Array.isArray(e),c_=e=>AS(e)&&{performer:{"@type":"PerformingGroup",name:e.join(" and ")}},u_=e=>DS(e)&&{organizer:{"@type":"Organization",name:e.name,url:e.url}},MS=e=>typeof e!="object"?!1:"url"in e||"priceCurrency"in e||"price"in e||"priceValidUntil"in e||"itemCondition"in e||"availability"in e,Bd=e=>MS(e)&&{offers:{"@type":"Offer",url:e.url,priceCurrency:e.priceCurrency,price:e.price,priceValidUntil:e.priceValidUntil,itemCondition:e.itemCondition,availability:e.availability}},RS=(e,t)=>({...wc(e,t??"Event"),...Oc(e.photoGallery),...l_({name:e.geomodifier,address:e.address}),startDate:e.c_startDate,endDate:e.c_endDate,description:e.description,eventAttendanceMode:e.attendance,eventStatus:e.eventStatus,...c_(e.performers),...u_({name:e.organizerName}),...Bd({url:"",priceCurrency:e.c_currency,price:e.price,priceValidUntil:e.expirationDate,itemCondition:e.stockStatus,availability:e.availabilityDate})}),bS=e=>typeof e!="object"?!1:"monday"in e||"tuesday"in e||"wednesday"in e||"thursday"in e||"friday"in e||"saturday"in e||"sunday"in e,LS=e=>typeof e=="object"&&"isClosed"in e&&Array.isArray(e.openIntervals)?e.openIntervals.length===0?!0:e.openIntervals.every(t=>typeof t=="object"&&"start"in t&&"end"in t):!1,d_=e=>{if(!bS(e))return{};let t=new Map;t=ns(e.monday,t,"Mo"),t=ns(e.tuesday,t,"Tu"),t=ns(e.wednesday,t,"We"),t=ns(e.thursday,t,"Th"),t=ns(e.friday,t,"Fr"),t=ns(e.saturday,t,"Sa"),t=ns(e.sunday,t,"Su");const n=new Array;for(const[r,l]of t){const d=l.join(",");n.push(d+" "+r)}return{openingHours:n}},ns=(e,t,n)=>{if(!LS(e)||e.isClosed){const r="00:00-00:00",l=t.get(r)??[];return l.push(n),t.set(r,l),t}for(let r=0;r<e.openIntervals.length;r++){const l=e.openIntervals[r].start+"-"+e.openIntervals[r].end,d=t.get(l)??[];d.push(n),t.set(l,d)}return t},IS=(e,t)=>({...wc(e,t??"LocalBusiness"),...Fd(e.address),...d_(e.hours),...Oc(e.photoGallery),description:e.description,telephone:e.mainPhone,email:e.email}),kS=e=>typeof e!="object"?!1:"ratingValue"in e||"bestRating"in e||"author"in e,PS=e=>typeof e!="object"?!1:"ratingValue"in e||"reviewCount"in e,f_=e=>kS(e)&&{review:{"@type":"Review",reviewRating:{"@type":"Rating",ratingValue:e.ratingValue,bestRating:e.bestRating},author:{"@type":"Person",name:e.author}}},h_=e=>PS(e)?{aggregateRating:{"@type":"AggregateRating",ratingValue:e.ratingValue,reviewCount:e.reviewCount}}:void 0,$S=(e,t)=>({...wc(e,t??"Product"),...Oc(e.photoGallery),...f_(e.c_reviews),...h_(e.c_aggregateRating),...Bd({url:"",priceCurrency:e.c_currency,price:e.price,priceValidUntil:e.expirationDate,itemCondition:e.stockStatus,availability:e.availabilityDate}),description:e.description,sku:e.sku,mpn:e.mpn,brand:{"@type":"Brand",name:e.brand}}),FS=e=>typeof e!="object"?!1:"question"in e&&"answer"in e,BS=e=>typeof e!="object"?!1:"question"in e&&"answerV2"in e?"json"in e.answerV2&&typeof e.answerV2.json=="object":!1;function id(e,t){for(const n in e)if(typeof e[n]=="object")if(Array.isArray(e[n]))for(let r=0;r<e[n].length;r++)id(e[n][r],t);else id(e[n],t);else n==="text"&&t.push(e[n])}function HS(e){if(e.json){const t=[];return id(e.json,t),t.join("")}return""}const WS=e=>({"@context":"http://www.schema.org","@type":"FAQPage",mainEntity:e.map(t=>{if(FS(t)||BS(t))return{"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:"answer"in t?t.answer:HS(t.answerV2)}}})}),od=Math.log2(1.6745627884839434),KS=4,zS=19,sd="js-baidu-neg-lng-fix";let g_;const US=new Promise(e=>g_=e),GS="https://api.map.baidu.com/geoconv/v1/";let Ql=[];const YS="gcj02ToBD09Callback_b872c21c";let jS=0,rp;async function p_(e){return await new Promise((t,n)=>{Ql.push({coordinates:e,resolve:t,reject:n}),Ql.length===1&&(rp=setTimeout(r,100)),Ql.length>40&&(clearTimeout(rp),r());function r(){const l=Ql;Ql=[];const d=[].concat(...l.map(_=>_.coordinates)),f=YS+"_"+jS++,p=document.createElement("script");window[f]=_=>{var S;if(_.status){const w=new Error(`Unable to convert coordinates to BD-09: Received status code ${_.status}${_.message?": "+_.message:""}`);l.forEach(M=>M.reject(w))}const T=_.result.map(w=>new un(w.y,w.x));let E=0;l.forEach(w=>{w.resolve(T.slice(E,E+=w.coordinates.length))}),delete window[f],(S=p.parentNode)==null||S.removeChild(p)},US.then(_=>{const T={ak:_,callback:f,coords:d.map(E=>`${E.longitude},${E.latitude}`).join(";"),from:3,to:5};p.src=GS+"?"+Object.entries(T).map(([E,S])=>E+"="+S).join("&"),document.head.appendChild(p)})}})}class VS extends rl{constructor(n){super(n);Ie(this,"_wrapper");Ie(this,"map");Ie(this,"_panStartHandler");Ie(this,"_panHandler");Ie(this,"_centerReady");const r=!!(window.MSInputMethodContext&&document.DOCUMENT_NODE);this._wrapper=n.wrapper,this.map=new BMap.Map(this._wrapper,{enableMapClick:n.controlEnabled,maxZoom:r?14:18,...n.providerOptions}),n.controlEnabled?(this.map.enableScrollWheelZoom(),this.map.addControl(new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_RIGHT,type:BMAP_NAVIGATION_CONTROL_ZOOM}))):(this.map.disableDragging(),this.map.disableDoubleClickZoom(),this.map.disablePinchToZoom()),this._panStartHandler=()=>null,this._panHandler=()=>null,this.map.addEventListener("movestart",()=>this._panStartHandler()),this.map.addEventListener("moveend",()=>this._panHandler()),this.map.addEventListener("zoomstart",()=>this._panStartHandler()),this.map.addEventListener("zoomend",()=>{this._wrapper&&(this._wrapper.dataset.baiduZoom=this.map.getZoom()),this._panHandler()}),this._centerReady=Promise.resolve()}getCenter(){return new un(this.map.getCenter())}getZoom(){return this.map.getZoom()-od}setCenter(n,r){this._centerReady=p_([n]).then(([l])=>{const d=new BMap.Point(l.longitude,l.latitude);this.map.panTo(d,{noAnimation:!r})})}setZoom(n,r){this._centerReady.then(()=>{this.map.setViewport({center:this.map.getCenter(),zoom:Math.floor(n+od)},{enableAnimation:r})})}}class qS extends il{constructor(n){super(n);Ie(this,"_wrapper");Ie(this,"_zIndex");Ie(this,"_wrapperClass");Ie(this,"_originalWrapperClass");Ie(this,"_element");Ie(this,"_coordinateReady");Ie(this,"_negativeLngFix");Ie(this,"pin");this._wrapper=null,this._zIndex=0,this._wrapperClass="",this._originalWrapperClass="",this._element=this._pinEl,this._coordinateReady=Promise.resolve(),this._negativeLngFix=!1;class r extends BMap.Marker{constructor(p,_){super(p);Ie(this,"pin");this.pin=_}initialize(p){return this.pin._wrapper=super.initialize(p),this.pin._wrapper&&(this.pin._wrapper.style.zIndex=this.pin._zIndex.toString(),this.pin._originalWrapperClass=this.pin._wrapper.getAttribute("class")??"",this.pin._wrapper.setAttribute("class",this.pin._getClass()),this.pin._wrapper.appendChild(this.pin._element),this.pin.addListeners()),this.pin._wrapper}draw(){if(this.pin._wrapper){const p=this.pin._wrapper.style.zIndex;super.draw(),this.pin._wrapper.style.height="",this.pin._wrapper.style.width="",this.pin._wrapper.style.pointerEvents="none",this.pin._wrapper.style.zIndex=p}else super.draw()}}this.pin=new r(new BMap.Point(0,0),this);const l=new BMap.Icon("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",{height:0,width:0});this.pin.setIcon(l),this.pin.setShadow(l)}addListeners(){super.addListeners(),this._wrapper&&this._wrapper.addEventListener("touchend",()=>this._clickHandler())}setCoordinate(n){this._coordinateReady=p_([n]).then(([r])=>{this._negativeLngFix=r.longitude<0,this.pin.setPosition(new BMap.Point(r.longitude+(this._negativeLngFix?180:0),r.latitude)),this._wrapper&&this._wrapper.classList[this._negativeLngFix?"add":"remove"](sd)})}setMap(n,r){this._coordinateReady.then(()=>{r&&r.getProviderMap().map.removeOverlay(this.pin),n&&n.getProviderMap().map.addOverlay(this.pin)})}setProperties(n){super.setProperties(n),this._wrapperClass=n.getClass(),this._element=n.getElement()||this._pinEl,this._zIndex=n.getZIndex(),this._wrapper&&this._wrapper.setAttribute("class",this._getClass())}_getClass(){return`${this._originalWrapperClass} ${this._negativeLngFix?sd:""} ${this._wrapperClass}`}}const ZS="https://api.map.baidu.com/getscript";function JS(e,t,n,{params:r={},version:l="3.0"}={}){window.BMAP_PROTOCOL="https",window.BMap_loadScriptTime=new Date().getTime();const d=n,f={ak:d,v:l,...r};g_(d);const p=document.createElement("script");p.src=ZS+"?"+Object.entries(f).map(([E,S])=>E+"="+S).join("&"),p.onload=()=>e(),document.head.appendChild(p);let _="";for(let E=KS;E<=zS;E++){const S=2**(E-od+7);_+=`[data-baidu-zoom="${E}"] .${sd}{transform:translateX(-${S}px);}`}const T=document.createElement("style");T.appendChild(document.createTextNode(_)),document.head.appendChild(T)}const XS=new as().withLoadFunction(JS).withMapClass(VS).withPinClass(qS).withProviderName("Baidu").build();let m_;function QS(){class e extends Microsoft.Maps.CustomOverlay{constructor(){super({beneathLabels:!1});Ie(this,"_container");Ie(this,"_pins");Ie(this,"_viewChangeEventHandler");Ie(this,"_map");this._container=document.createElement("div"),this._pins=new Set,this._viewChangeEventHandler=null,this._container.style.position="absolute",this._container.style.left="0",this._container.style.top="0"}addPin(r){this._pins.add(r),r._wrapper&&(r._wrapper.style.position="absolute",this._container.appendChild(r._wrapper)),this._map&&this.updatePinPosition(r)}onAdd(){this._map=this.getMap(),this.setHtmlElement(this._container)}onLoad(){this._viewChangeEventHandler=Microsoft.Maps.Events.addHandler(this._map,"viewchange",()=>this.updatePinPositions()),this.updatePinPositions()}onRemove(){this._viewChangeEventHandler&&Microsoft.Maps.Events.removeHandler(this._viewChangeEventHandler),this._map=null}removePin(r){this._pins.delete(r),r._wrapper&&this._container.removeChild(r._wrapper)}updatePinPosition(r){if(!this._map)return;const l=this._map.tryLocationToPixel(r._location,Microsoft.Maps.PixelReference.control);r._wrapper&&l instanceof Microsoft.Maps.Point&&(r._wrapper.style.left=l.x+"px",r._wrapper.style.top=l.y+"px")}updatePinPositions(){this._pins.forEach(r=>this.updatePinPosition(r))}}m_=e}class ew extends rl{constructor(n){super(n);Ie(this,"wrapper");Ie(this,"map");Ie(this,"pinOverlay");this.wrapper=n.wrapper,this.wrapper&&(this.map=new Microsoft.Maps.Map(this.wrapper,{disablePanning:!n.controlEnabled,disableZooming:!n.controlEnabled,showLocateMeButton:!1,showMapTypeSelector:!1,showScalebar:!1,showTrafficButton:!1,...n.providerOptions}),this.pinOverlay=new m_(this.map),this.map.layers.insert(this.pinOverlay),Microsoft.Maps.Events.addHandler(this.map,"viewchangestart",()=>this._panStartHandler()),Microsoft.Maps.Events.addHandler(this.map,"viewchangeend",()=>this._panHandler()))}getCenter(){var n;return new un(((n=this.map)==null?void 0:n.getCenter())??{lat:0,lng:0})}getZoom(){var n;return((n=this.map)==null?void 0:n.getZoom())??0}setCenter(n,r){var d;const l=new Microsoft.Maps.Location(n.latitude,n.longitude);(d=this.map)==null||d.setView({center:l}),this.pinOverlay.updatePinPositions()}setZoom(n,r){var l;(l=this.map)==null||l.setView({zoom:Math.floor(n)}),this.pinOverlay.updatePinPositions()}}class __ extends il{constructor(n){super(n);Ie(this,"_location");Ie(this,"_map");this._map=null,this._location=new Microsoft.Maps.Location(0,0)}static getId(){return this._pinId=(this._pinId||0)+1,this._pinId}setCoordinate(n){this._location=new Microsoft.Maps.Location(n.latitude,n.longitude),this._map&&this._map.getProviderMap().pinOverlay.updatePinPosition(this)}setMap(n,r){r&&r.getProviderMap().pinOverlay.removePin(this),n&&n.getProviderMap().pinOverlay.addPin(this),this._map=n}}Ie(__,"_pinId");const ip="BingMapsCallback_593d7d33",tw="https://www.bing.com/api/maps/mapcontrol";function nw(e,t,n,{params:r={}}={}){window[ip]=()=>{QS(),e()};const l={callback:ip,key:n,...r};gp(tw+"?"+Object.entries(l).map(([d,f])=>d+"="+f).join("&"))}const rw=new as().withLoadFunction(nw).withMapClass(ew).withPinClass(__).withProviderName("Bing").build();class iw extends rl{constructor(n){var r,l,d;super(n);Ie(this,"map");if(n.wrapper&&(this.map=new mapboxgl.Map({container:n.wrapper,interactive:n.controlEnabled,style:"mapbox://styles/mapbox/streets-v9",...n.providerOptions})),n.controlEnabled){const f=new mapboxgl.NavigationControl({showCompass:!1});(r=this.map)==null||r.addControl(f)}(l=this.map)==null||l.on("movestart",()=>this._panStartHandler()),(d=this.map)==null||d.on("moveend",()=>this._panHandler())}getCenter(){var n;return new un(((n=this.map)==null?void 0:n.getCenter())??{lat:0,lng:0})}getZoom(){var n;return(((n=this.map)==null?void 0:n.getZoom())??0)+1}setCenter(n,r){const l=new mapboxgl.LngLat(n.longitude,n.latitude);this.map&&this.map[r?"panTo":"setCenter"](l)}setZoom(n,r){this.map&&this.map[r?"zoomTo":"setZoom"](n-1)}setZoomCenter(n,r,l){const d=new mapboxgl.LngLat(r.longitude,r.latitude);this.map&&this.map[l?"easeTo":"jumpTo"]({center:d,zoom:n-1})}}class ow extends il{constructor(n){super(n);Ie(this,"pin");this._wrapper&&(this._wrapper.style.position="relative",this.pin=new mapboxgl.Marker({anchor:"top-left",element:this._wrapper}))}setCoordinate(n){var r;(r=this.pin)==null||r.setLngLat(new mapboxgl.LngLat(n.longitude,n.latitude))}setMap(n,r){var l,d;if(n){const f=n.getProviderMap().map;f&&((l=this.pin)==null||l.addTo(f))}else(d=this.pin)==null||d.remove()}}function sw(e,t,n,{version:r="v1.13.0"}={}){const l=`https://api.mapbox.com/mapbox-gl-js/${r}/mapbox-gl`,d=document.createElement("link");d.rel="stylesheet",d.href=l+".css";const f=document.createElement("script");f.src=l+".js",f.onload=()=>{mapboxgl.accessToken=n,e()},document.head.appendChild(d),document.head.appendChild(f)}const lw=new as().withLoadFunction(sw).withMapClass(iw).withPinClass(ow).withProviderName("Mapbox").build();var ls;let y_=(ls=class extends rl{constructor(n){var r,l,d;super(n);Ie(this,"map");this._initMap(n),n.controlEnabled&&((r=this.map)==null||r.zoomControl.setPosition("topright")),(l=this.map)==null||l.on("movestart",()=>this._panStartHandler()),(d=this.map)==null||d.on("moveend",()=>this._panHandler())}getCenter(){var n;return new un(((n=this.map)==null?void 0:n.getCenter())??{lat:0,lng:0})}getZoom(){var n;return((n=this.map)==null?void 0:n.getZoom())??0}setCenter(n,r){var d;const l=new L.LatLng(n.latitude,n.longitude);(d=this.map)==null||d.panTo(l,{animate:r})}setZoom(n,r){var l;(l=this.map)==null||l.setZoom(n,{animate:r})}setZoomCenter(n,r,l){var f;const d=new L.LatLng(r.latitude,r.longitude);(f=this.map)==null||f.setView(d,n,{animate:l})}_initMap(n){n.wrapper&&(this.map=new L.Map(n.wrapper,{boxZoom:n.controlEnabled,doubleClickZoom:n.controlEnabled,dragging:n.controlEnabled,zoom:0,zoomControl:n.controlEnabled,zoomSnap:0,...n.providerOptions}));const r=n.providerOptions,l=r.tileLayerSrc||"https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}",d=r.tileLayerOptions||{attribution:'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',id:"mapbox/streets-v11"};d.accessToken=ls.apiKey,this.map&&L.tileLayer(l,d).addTo(this.map)}},Ie(ls,"apiKey"),ls),aw=class extends fd{constructor(n){super(n);Ie(this,"pin");this.pin=new L.Marker(new L.LatLng(0,0)),this.pin.on("click",()=>this._clickHandler()),this.pin.on("mouseover",()=>this._hoverHandler(!0)),this.pin.on("mouseout",()=>this._hoverHandler(!1))}setCoordinate(n){const r=new L.LatLng(n.latitude,n.longitude);this.pin.setLatLng(r)}setMap(n,r){if(n){const l=n.getProviderMap().map;l&&this.pin.addTo(l)}else this.pin.remove()}setProperties(n){const r=n.getWidth(),l=n.getHeight(),d=n.getAnchorX(),f=n.getAnchorY();this.pin.setIcon(new L.Icon({iconUrl:this._icons[n.getIcon()],iconSize:[r,l],iconAnchor:[d*r,f*l],className:n.getClass()})),this.pin.setZIndexOffset(n.getZIndex())}};function cw(e,t,n,{version:r="1.7.1"}={}){const l=`https://unpkg.com/leaflet@${r}/dist/leaflet`;y_.apiKey=n;const d=document.createElement("link");d.rel="stylesheet",d.href=l+".css";const f=document.createElement("script");f.src=l+".js",f.onload=()=>e(),document.head.appendChild(d),document.head.appendChild(f)}const Hd=new as().withLoadFunction(cw).withMapClass(y_).withPinClass(aw).withProviderName("Leaflet").build(),uw=Hd.getMapClass(),dw=Hd.getPinClass();class fw extends uw{constructor(){super(...arguments);Ie(this,"map")}_initMap(n){this.map=L.mapquest.map(n.wrapper,{boxZoom:n.controlEnabled,center:new L.LatLng(0,0),doubleClickZoom:n.controlEnabled,dragging:n.controlEnabled,layers:L.mapquest.tileLayer("map"),zoom:0,zoomControl:n.controlEnabled,zoomSnap:0,...n.providerOptions})}}class hw extends dw{}function gw(e,t,n,{version:r="v1.3.2"}={}){const l=`https://api.mqcdn.com/sdk/mapquest-js/${r}/mapquest-maps`,d=document.createElement("link");d.rel="stylesheet",d.href=l+".css";const f=document.createElement("script");f.src=l+".js",f.onload=()=>{L.mapquest.key=n,e()},document.head.appendChild(d),document.head.appendChild(f)}const pw=new as().withLoadFunction(gw).withMapClass(fw).withPinClass(hw).withProviderName("MapQuest").build();exports.Address=cy;exports.AddressSchema=Fd;exports.AggregateRatingSchema=h_;exports.Analytics=cp;exports.AnalyticsContext=ud;exports.AnalyticsProvider=lN;exports.AnalyticsScopeProvider=aN;exports.BaiduMaps=XS;exports.BaseSchema=wc;exports.BingMaps=rw;exports.Clusterer=FN;exports.Coordinate=un;exports.Day=sn;exports.Event=RS;exports.FAQPage=WS;exports.GoogleMaps=_p;exports.HoursStatus=NS;exports.HoursTable=xS;exports.Image=mN;exports.ImageLayoutOption=xo;exports.LeafletMaps=Hd;exports.LegacyRichText=cx;exports.LexicalRichText=EE;exports.Link=hp;exports.LinkTypes=TN;exports.ListingPublisherOption=op;exports.LocalBusiness=IS;exports.LocationMap=WN;exports.LocationSchema=l_;exports.Map=Cp;exports.MapProviderOption=Wu;exports.MapQuestMaps=pw;exports.MapboxMaps=lw;exports.Marker=pd;exports.OfferSchema=Bd;exports.OpeningHoursSchema=d_;exports.OrganizationSchema=u_;exports.PerformerSchema=c_;exports.PhotoGallerySchema=Oc;exports.PhotoSchema=OS;exports.Product=$S;exports.ReviewSchema=f_;exports.SchemaWrapper=vS;exports.asciiAlpha=RE;exports.asciiAlphanumeric=Ju;exports.asciiAtext=bE;exports.asciiControl=LE;exports.asciiDigit=IE;exports.asciiHexDigit=kE;exports.asciiPunctuation=PE;exports.c=Qs;exports.classifyCharacter=la;exports.combineExtensions=Gp;exports.createState=JT;exports.debuggingParamDetected=cc;exports.getDefaultExportFromCjs=ad;exports.getDirections=ly;exports.getRuntime=Xs;exports.jsxRuntimeExports=ft;exports.markdownLineEnding=$E;exports.markdownLineEndingOrSpace=Xp;exports.markdownSpace=FE;exports.normalizeUri=sl;exports.push=js;exports.resolveAll=Qp;exports.splice=yc;exports.useAnalytics=nl;exports.useClusterContext=$N;exports.useIdentify=dN;exports.useMapContext=kN;exports.usePageView=uN;exports.useScope=dd;exports.useTrack=cN;exports.visit=Dd;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CKSiT08w.cjs");exports.Address=e.Address;exports.AddressSchema=e.AddressSchema;exports.AggregateRatingSchema=e.AggregateRatingSchema;exports.Analytics=e.Analytics;exports.AnalyticsContext=e.AnalyticsContext;exports.AnalyticsProvider=e.AnalyticsProvider;exports.AnalyticsScopeProvider=e.AnalyticsScopeProvider;exports.BaiduMaps=e.BaiduMaps;exports.BaseSchema=e.BaseSchema;exports.BingMaps=e.BingMaps;exports.Clusterer=e.Clusterer;exports.CoordinateClass=e.Coordinate;exports.Day=e.Day;exports.Event=e.Event;exports.FAQPage=e.FAQPage;exports.GoogleMaps=e.GoogleMaps;exports.HoursStatus=e.HoursStatus;exports.HoursTable=e.HoursTable;exports.Image=e.Image;exports.ImageLayoutOption=e.ImageLayoutOption;exports.LeafletMaps=e.LeafletMaps;exports.LegacyRichText=e.LegacyRichText;exports.LexicalRichText=e.LexicalRichText;exports.Link=e.Link;exports.LinkTypes=e.LinkTypes;exports.ListingPublisherOption=e.ListingPublisherOption;exports.LocalBusiness=e.LocalBusiness;exports.LocationMap=e.LocationMap;exports.LocationSchema=e.LocationSchema;exports.Map=e.Map;exports.MapProviderOption=e.MapProviderOption;exports.MapQuestMaps=e.MapQuestMaps;exports.MapboxMaps=e.MapboxMaps;exports.Marker=e.Marker;exports.OfferSchema=e.OfferSchema;exports.OpeningHoursSchema=e.OpeningHoursSchema;exports.OrganizationSchema=e.OrganizationSchema;exports.PerformerSchema=e.PerformerSchema;exports.PhotoGallerySchema=e.PhotoGallerySchema;exports.PhotoSchema=e.PhotoSchema;exports.Product=e.Product;exports.ReviewSchema=e.ReviewSchema;exports.SchemaWrapper=e.SchemaWrapper;exports.debuggingParamDetected=e.debuggingParamDetected;exports.getDirections=e.getDirections;exports.useAnalytics=e.useAnalytics;exports.useClusterContext=e.useClusterContext;exports.useIdentify=e.useIdentify;exports.useMapContext=e.useMapContext;exports.usePageView=e.usePageView;exports.useScope=e.useScope;exports.useTrack=e.useTrack;
|
package/dist/pages-components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a3 as t, ac as i, x as o, y as r, E as c, H as n, ad as p, _ as u, ae as g, R as h, aj as m, Y as l, $ as S, a2 as d, af as M, W as y, X as P, I as L, J as A, ah as x, V as C, U as f, K as O, N as T, L as b, a0 as v, T as B, a4 as R, O as k, M as D, ai as H, ag as I, Q as w, a6 as G, a5 as Q, a8 as z, a7 as E, a9 as F, aa as V, a1 as W, ab as j, Z as J, F as K, w as N, z as U, S as X, D as Y, P as Z, C as _, G as $, B as q } from "./index-
|
|
1
|
+
import { A as e, a3 as t, ac as i, x as o, y as r, E as c, H as n, ad as p, _ as u, ae as g, R as h, aj as m, Y as l, $ as S, a2 as d, af as M, W as y, X as P, I as L, J as A, ah as x, V as C, U as f, K as O, N as T, L as b, a0 as v, T as B, a4 as R, O as k, M as D, ai as H, ag as I, Q as w, a6 as G, a5 as Q, a8 as z, a7 as E, a9 as F, aa as V, a1 as W, ab as j, Z as J, F as K, w as N, z as U, S as X, D as Y, P as Z, C as _, G as $, B as q } from "./index-BEMHj1z8.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Address,
|
|
4
4
|
t as AddressSchema,
|