@yext/pages-components 1.0.0-rc.8 → 1.0.0-rc.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { g as B, j as o, c as j } from "./index-B_Z2KBE4.js";
1
+ import { g as B, j as o, c as j } from "./index-CNu7g_AK.js";
2
2
  import { useState as p, useEffect as k, useRef as T } from "react";
3
3
  import { createPortal as $ } from "react-dom";
4
4
  function H() {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-BRkDN95t.cjs"),p=require("react"),R=require("react-dom");function E(){return s.getRuntime().name!=="browser"||window.hasOwnProperty("debuggerInitialized")?null:(window.debuggerInitialized=!0,R.createPortal(s.jsxRuntimeExports.jsx(w,{}),document.body))}const b={};function w(){const[t,o]=p.useState(),[i,n]=p.useState([]),[l,a]=p.useState(!1),e=r=>{o(t===r?void 0:r)};return p.useEffect(()=>(document.documentElement.classList.add("xYextDebug"),document.querySelectorAll("[data-ya-scope]").forEach(c=>{const u=c.dataset.yaScope,d=c.querySelectorAll("[data-ya-track]");d.forEach((x,m)=>{const g=x.dataset.yaTrack;x.addEventListener("mouseenter",()=>{n([{eventEl:x,eventName:`${u}_${g}`,key:`${u}_${g}_${m}`}])}),x.addEventListener("mouseleave",()=>{n([])})}),u&&(b.hasOwnProperty(u)?b[u].events=[...b[u].events,...Array.from(d)]:b[u]={scope:c,events:Array.from(d)})}),a(!0),()=>{document.documentElement.classList.remove("xYextDebug")}),[]),l?s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger",children:[s.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-toggles",children:[s.jsxRuntimeExports.jsx("button",{className:s.c("analytics-debugger-toggle",{"is-active":t==="Events"}),onClick:()=>e("Events"),children:"Events"}),s.jsxRuntimeExports.jsx("button",{className:s.c("analytics-debugger-toggle",{"is-active":t==="Scopes"}),onClick:()=>e("Scopes"),children:"Scopes"})]}),t&&s.jsxRuntimeExports.jsx("div",{className:"analytics-debugger-tabs",children:t==="Events"?s.jsxRuntimeExports.jsx(k,{data:b,setTooltips:n}):s.jsxRuntimeExports.jsx($,{data:b,setTooltips:n})})]}),s.jsxRuntimeExports.jsx(T,{tooltips:i})]}):null}function k(t){const{data:o,setTooltips:i}=t,[n,l]=p.useState(),[a,e]=p.useState(""),r=(c,u,d)=>{c.scrollIntoView({behavior:"smooth",block:"nearest"}),n&&n.classList.remove("analytics-event-highlight"),l(c),c.classList.add("analytics-event-highlight"),e(d),i([{eventEl:c,eventName:u,key:d}])};return s.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[s.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Event Names"}),s.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:Object.entries(o).map(([c,u])=>u.events.map((d,x)=>{const m=`${c}_${d.dataset.yaTrack}`,g=`${m}_${x}`;return s.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:s.jsxRuntimeExports.jsx("button",{className:s.c("analytics-debugger-button",{"is-active":g===a}),onClick:()=>r(d,m,g),children:m})},g)}))})]})}function $(t){const{data:o,setTooltips:i}=t,[n,l]=p.useState(""),a=e=>{const r=o[e];r.scope.scrollIntoView({behavior:"smooth",block:"nearest"}),l(e),i(r.events.map((c,u)=>({eventEl:c,eventName:`${e}_${c.dataset.yaTrack}`,key:`${e}_${c.dataset.yaTrack}_${u}`})))};return s.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[s.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Scope Names"}),s.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:Object.keys(o).map((e,r)=>s.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:s.jsxRuntimeExports.jsx("button",{className:s.c("analytics-debugger-button",{"is-active":e===n}),onClick:()=>a(e),children:e})},e+r))})]})}function T(t){const o=p.useRef({});return p.useEffect(()=>{if(o.current)for(const i of Object.values(o.current)){const n=Object.values(o.current).map(l=>l.el).filter(l=>l!==i.el);B(i,n),i.el.style.visibility="visible"}},[t.tooltips]),s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:t.tooltips.map(i=>s.jsxRuntimeExports.jsx("div",{style:{visibility:"hidden"},className:"analytics-debugger-tooltip",ref:n=>{n?o.current[i.key]={el:n,tooltip:i}:delete o.current[i.key]},children:s.jsxRuntimeExports.jsx("span",{children:i.eventName})},i.key))})}function B(t,o){for(let i=0;i<9;i++){const n=N(t.tooltip.eventEl.getBoundingClientRect(),t.el,i);if(t.el.style.inset=`${n.top} auto auto ${n.left}`,!!C(t.el.getBoundingClientRect().left,t.el.getBoundingClientRect().top+window.scrollY,t.el.getBoundingClientRect().right,t.el.getBoundingClientRect().bottom+window.scrollY))continue;let a=!0;for(let e=0;e<o.length;e++){const r=o[e];S(t.el,r)&&(a=!1)}if(a)break}}function S(t,o){const i=t.getBoundingClientRect().top+window.scrollY,n=t.getBoundingClientRect().left,l=i+t.clientHeight,a=n+t.clientWidth,e=o.getBoundingClientRect().top+window.scrollY,r=o.getBoundingClientRect().left,c=e+o.clientHeight,u=r+o.clientWidth,d=(x,m,g,h,j,f,v,y)=>g<=j&&j<=v&&h<=f&&f<=y||g<=x&&x<=v&&h<=m&&m<=y||g<=x&&x<=v&&h<=f&&f<=y||g<=j&&j<=v&&h<=m&&m<=y;return d(n,i,r,e,a,l,u,c)||d(r,e,n,i,u,c,a,l)}function C(t,o,i,n){return t<0||i>window.innerWidth||o<0||n>document.documentElement.scrollHeight}function N(t,o,i){const n=o.clientHeight,l=o.clientWidth;let a,e;switch(i){case 0:{e=window.scrollY+t.top-n+"px",a=t.left-l+"px";break}case 1:{e=window.scrollY+t.top-n+"px",a=t.left+"px";break}case 2:{e=window.scrollY+t.top-n+"px",a=t.right+"px";break}case 3:{e=window.scrollY+t.top-n+"px",a=t.right-l+"px";break}case 4:{e=window.scrollY+t.bottom+"px",a=t.left-l+"px";break}case 5:{e=window.scrollY+t.bottom+"px",a=t.left+"px";break}case 6:{e=window.scrollY+t.bottom+"px",a=t.right-l+"px";break}case 7:{e=window.scrollY+t.bottom+"px",a=t.right+"px";break}default:e=0,a=0}return{top:e,left:a}}exports.AnalyticsDebuggerInternal=w;exports.default=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-DJPbIPVY.cjs"),p=require("react"),R=require("react-dom");function E(){return s.getRuntime().name!=="browser"||window.hasOwnProperty("debuggerInitialized")?null:(window.debuggerInitialized=!0,R.createPortal(s.jsxRuntimeExports.jsx(w,{}),document.body))}const b={};function w(){const[t,o]=p.useState(),[i,n]=p.useState([]),[l,a]=p.useState(!1),e=r=>{o(t===r?void 0:r)};return p.useEffect(()=>(document.documentElement.classList.add("xYextDebug"),document.querySelectorAll("[data-ya-scope]").forEach(c=>{const u=c.dataset.yaScope,d=c.querySelectorAll("[data-ya-track]");d.forEach((x,m)=>{const g=x.dataset.yaTrack;x.addEventListener("mouseenter",()=>{n([{eventEl:x,eventName:`${u}_${g}`,key:`${u}_${g}_${m}`}])}),x.addEventListener("mouseleave",()=>{n([])})}),u&&(b.hasOwnProperty(u)?b[u].events=[...b[u].events,...Array.from(d)]:b[u]={scope:c,events:Array.from(d)})}),a(!0),()=>{document.documentElement.classList.remove("xYextDebug")}),[]),l?s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger",children:[s.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-toggles",children:[s.jsxRuntimeExports.jsx("button",{className:s.c("analytics-debugger-toggle",{"is-active":t==="Events"}),onClick:()=>e("Events"),children:"Events"}),s.jsxRuntimeExports.jsx("button",{className:s.c("analytics-debugger-toggle",{"is-active":t==="Scopes"}),onClick:()=>e("Scopes"),children:"Scopes"})]}),t&&s.jsxRuntimeExports.jsx("div",{className:"analytics-debugger-tabs",children:t==="Events"?s.jsxRuntimeExports.jsx(k,{data:b,setTooltips:n}):s.jsxRuntimeExports.jsx($,{data:b,setTooltips:n})})]}),s.jsxRuntimeExports.jsx(T,{tooltips:i})]}):null}function k(t){const{data:o,setTooltips:i}=t,[n,l]=p.useState(),[a,e]=p.useState(""),r=(c,u,d)=>{c.scrollIntoView({behavior:"smooth",block:"nearest"}),n&&n.classList.remove("analytics-event-highlight"),l(c),c.classList.add("analytics-event-highlight"),e(d),i([{eventEl:c,eventName:u,key:d}])};return s.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[s.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Event Names"}),s.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:Object.entries(o).map(([c,u])=>u.events.map((d,x)=>{const m=`${c}_${d.dataset.yaTrack}`,g=`${m}_${x}`;return s.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:s.jsxRuntimeExports.jsx("button",{className:s.c("analytics-debugger-button",{"is-active":g===a}),onClick:()=>r(d,m,g),children:m})},g)}))})]})}function $(t){const{data:o,setTooltips:i}=t,[n,l]=p.useState(""),a=e=>{const r=o[e];r.scope.scrollIntoView({behavior:"smooth",block:"nearest"}),l(e),i(r.events.map((c,u)=>({eventEl:c,eventName:`${e}_${c.dataset.yaTrack}`,key:`${e}_${c.dataset.yaTrack}_${u}`})))};return s.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[s.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Scope Names"}),s.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:Object.keys(o).map((e,r)=>s.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:s.jsxRuntimeExports.jsx("button",{className:s.c("analytics-debugger-button",{"is-active":e===n}),onClick:()=>a(e),children:e})},e+r))})]})}function T(t){const o=p.useRef({});return p.useEffect(()=>{if(o.current)for(const i of Object.values(o.current)){const n=Object.values(o.current).map(l=>l.el).filter(l=>l!==i.el);B(i,n),i.el.style.visibility="visible"}},[t.tooltips]),s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:t.tooltips.map(i=>s.jsxRuntimeExports.jsx("div",{style:{visibility:"hidden"},className:"analytics-debugger-tooltip",ref:n=>{n?o.current[i.key]={el:n,tooltip:i}:delete o.current[i.key]},children:s.jsxRuntimeExports.jsx("span",{children:i.eventName})},i.key))})}function B(t,o){for(let i=0;i<9;i++){const n=N(t.tooltip.eventEl.getBoundingClientRect(),t.el,i);if(t.el.style.inset=`${n.top} auto auto ${n.left}`,!!C(t.el.getBoundingClientRect().left,t.el.getBoundingClientRect().top+window.scrollY,t.el.getBoundingClientRect().right,t.el.getBoundingClientRect().bottom+window.scrollY))continue;let a=!0;for(let e=0;e<o.length;e++){const r=o[e];S(t.el,r)&&(a=!1)}if(a)break}}function S(t,o){const i=t.getBoundingClientRect().top+window.scrollY,n=t.getBoundingClientRect().left,l=i+t.clientHeight,a=n+t.clientWidth,e=o.getBoundingClientRect().top+window.scrollY,r=o.getBoundingClientRect().left,c=e+o.clientHeight,u=r+o.clientWidth,d=(x,m,g,h,j,f,v,y)=>g<=j&&j<=v&&h<=f&&f<=y||g<=x&&x<=v&&h<=m&&m<=y||g<=x&&x<=v&&h<=f&&f<=y||g<=j&&j<=v&&h<=m&&m<=y;return d(n,i,r,e,a,l,u,c)||d(r,e,n,i,u,c,a,l)}function C(t,o,i,n){return t<0||i>window.innerWidth||o<0||n>document.documentElement.scrollHeight}function N(t,o,i){const n=o.clientHeight,l=o.clientWidth;let a,e;switch(i){case 0:{e=window.scrollY+t.top-n+"px",a=t.left-l+"px";break}case 1:{e=window.scrollY+t.top-n+"px",a=t.left+"px";break}case 2:{e=window.scrollY+t.top-n+"px",a=t.right+"px";break}case 3:{e=window.scrollY+t.top-n+"px",a=t.right-l+"px";break}case 4:{e=window.scrollY+t.bottom+"px",a=t.left-l+"px";break}case 5:{e=window.scrollY+t.bottom+"px",a=t.left+"px";break}case 6:{e=window.scrollY+t.bottom+"px",a=t.right-l+"px";break}case 7:{e=window.scrollY+t.bottom+"px",a=t.right+"px";break}default:e=0,a=0}return{top:e,left:a}}exports.AnalyticsDebuggerInternal=w;exports.default=E;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const On=require("react"),m=require("./index-BRkDN95t.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 c=[];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)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(p)}const s=i[i.length-1];if(s&&s.type==="element"&&s.tagName==="p"){const p=s.children[s.children.length-1];p&&p.type==="text"?p.value+=" ":s.children.push({type:"text",value:" "}),s.children.push(...c)}else i.push(...c);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:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const On=require("react"),m=require("./index-DJPbIPVY.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 c=[];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)}]}),c.length>0&&c.push({type:"text",value:" "}),c.push(p)}const s=i[i.length-1];if(s&&s.type==="element"&&s.tagName==="p"){const p=s.children[s.children.length-1];p&&p.type==="text"?p.value+=" ":s.children.push({type:"text",value:" "}),s.children.push(...c)}else i.push(...c);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?ir(n,t):lr(n||t)},rr=tr;function ir(n,t){return(e,r,i)=>{n.run(yt(e,t),r,l=>{i(l)})}}function lr(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 dr, q as ge, t as bn, u as mr, v as gr } from "./index-B_Z2KBE4.js";
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 dr, q as ge, t as bn, u as mr, v as gr } from "./index-CNu7g_AK.js";
3
3
  function yr(n) {
4
4
  const t = [];
5
5
  let e = -1;
@@ -2165,7 +2165,7 @@ const lS = () => {
2165
2165
  }, cS = () => {
2166
2166
  var t;
2167
2167
  return (t = ta()) == null ? void 0 : t.identify;
2168
- }, Dy = K_(() => import("./debugger-BwhzVueP.js"));
2168
+ }, Dy = K_(() => import("./debugger-DzRFl2aD.js"));
2169
2169
  function uS(t) {
2170
2170
  var O;
2171
2171
  const {
@@ -2290,7 +2290,7 @@ const us = {
2290
2290
  default:
2291
2291
  c += `-${t.env.toString()}`;
2292
2292
  }
2293
- const d = t.accountId ? `${t.accountId}/` : "";
2293
+ const d = t.accountId !== void 0 ? `${t.accountId}/` : "";
2294
2294
  return `${r}/${c}/${d}${t.contentHash}${t.extension}/width=${Math.round(e)},height=${Math.round(n)}`;
2295
2295
  }, My = (t) => {
2296
2296
  const e = t.protocol.slice(0, -1);
@@ -27650,7 +27650,7 @@ const hT = (t, e) => t(e, "i", so(t, e)), gT = (t, e) => t(e, "b", so(t, e)), pT
27650
27650
  (async () => {
27651
27651
  if (!r)
27652
27652
  try {
27653
- r = (await import("./index-DfWE5igD.js")).default;
27653
+ r = (await import("./index-B7qp2Vga.js")).default;
27654
27654
  } catch {
27655
27655
  throw new Error(
27656
27656
  "Failed to import React Markdown, cannot properly render LegacyRichText."
@@ -33485,7 +33485,7 @@ function Bv(t, e, n, { params: r = {}, version: c = "3.0" } = {}) {
33485
33485
  N += `[data-baidu-zoom="${T}"] .${od}{transform:translateX(-${O}px);}`;
33486
33486
  }
33487
33487
  const x = document.createElement("style");
33488
- x.innerHTML = N, document.head.appendChild(x);
33488
+ x.appendChild(document.createTextNode(N)), document.head.appendChild(x);
33489
33489
  }
33490
33490
  const RS = new ms().withLoadFunction(Bv).withMapClass(Pv).withPinClass($v).withProviderName("Baidu").build();
33491
33491
  let r_;
@@ -24,7 +24,7 @@ Check the render method of \``+ye+"`."}return""}}function At(ye){{if(ye!==void 0
24
24
 
25
25
  Check your code at `+Ge+":"+et+"."}return""}}var zt={};function It(ye){{var Ge=Qt();if(!Ge){var et=typeof ye=="string"?ye:ye.displayName||ye.name;et&&(Ge=`
26
26
 
27
- Check the top-level render call using <`+et+">.")}return Ge}}function gr(ye,Ge){{if(!ye._store||ye._store.validated||ye.key!=null)return;ye._store.validated=!0;var et=It(Ge);if(zt[et])return;zt[et]=!0;var Ct="";ye&&ye._owner&&ye._owner!==Et.current&&(Ct=" It was passed a child from "+pe(ye._owner.type)+"."),Ot(ye),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',et,Ct),Ot(null)}}function wr(ye,Ge){{if(typeof ye!="object")return;if(yt(ye))for(var et=0;et<ye.length;et++){var Ct=ye[et];xt(Ct)&&gr(Ct,Ge)}else if(xt(ye))ye._store&&(ye._store.validated=!0);else if(ye){var Bt=P(ye);if(typeof Bt=="function"&&Bt!==ye.entries)for(var Kt=Bt.call(ye),$t;!($t=Kt.next()).done;)xt($t.value)&&gr($t.value,Ge)}}}function Bi(ye){{var Ge=ye.type;if(Ge==null||typeof Ge=="string")return;var et;if(typeof Ge=="function")et=Ge.propTypes;else if(typeof Ge=="object"&&(Ge.$$typeof===C||Ge.$$typeof===O))et=Ge.propTypes;else return;if(et){var Ct=pe(Ge);Ye(et,ye.props,"prop",Ct,ye)}else if(Ge.PropTypes!==void 0&&!bt){bt=!0;var Bt=pe(Ge);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Bt||"Unknown")}typeof Ge.getDefaultProps=="function"&&!Ge.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ms(ye){{for(var Ge=Object.keys(ye.props),et=0;et<Ge.length;et++){var Ct=Ge[et];if(Ct!=="children"&&Ct!=="key"){Ot(ye),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ct),Ot(null);break}}ye.ref!==null&&(Ot(ye),$("Invalid attribute `ref` supplied to `React.Fragment`."),Ot(null))}}function _s(ye,Ge,et,Ct,Bt,Kt){{var $t=G(ye);if(!$t){var Pt="";(ye===void 0||typeof ye=="object"&&ye!==null&&Object.keys(ye).length===0)&&(Pt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var mn=At(Bt);mn?Pt+=mn:Pt+=Qt();var sn;ye===null?sn="null":yt(ye)?sn="array":ye!==void 0&&ye.$$typeof===e?(sn="<"+(pe(ye.type)||"Unknown")+" />",Pt=" Did you accidentally export a JSX literal instead of a component?"):sn=typeof ye,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",sn,Pt)}var tn=_t(ye,Ge,et,Bt,Kt);if(tn==null)return tn;if($t){var Bn=Ge.children;if(Bn!==void 0)if(Ct)if(yt(Bn)){for(var mr=0;mr<Bn.length;mr++)wr(Bn[mr],ye);Object.freeze&&Object.freeze(Bn)}else $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else wr(Bn,ye)}return ye===r?ms(tn):Bi(tn),tn}}function fn(ye,Ge,et){return _s(ye,Ge,et,!0)}function pr(ye,Ge,et){return _s(ye,Ge,et,!1)}var Qr=pr,ys=fn;Hl.Fragment=r,Hl.jsx=Qr,Hl.jsxs=ys}()),Hl}process.env.NODE_ENV==="production"?Ku.exports=U_():Ku.exports=z_();var at=Ku.exports;function G_(t){switch(t){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 np={GOOGLEMYBUSINESS:"GOOGLEMYBUSINESS"},Uu={GOOGLE:"google",APPLE:"apple",BING:"bing"},Y_=(t,e)=>{const r={region:"localizedRegionName",countryCode:"localizedCountryName"}[t];return r&&e[r]},V_=(t,e=[],n,r={route:!1})=>{const c="Failed to construct query for maps service.";let d=t&&ff([t.line1,t.line2,t.city,t.region,t.postalCode,t.countryCode]);switch(r.provider){case Uu.APPLE:{if(!d){console.warn(`${c} Check that you've provided a valid Yext Address.`);break}return j_(d,r.route)}case Uu.BING:{if(d=t&&ff([t.line1,t.city,t.region,t.postalCode]),!d){console.warn(`${c} Check that you've provided a valid Yext Address.`);break}return q_(d,r.route)}default:{const f=e.find(p=>{var C;return((C=p==null?void 0:p.publisher)==null?void 0:C.toUpperCase())===np.GOOGLEMYBUSINESS});if(f!=null&&f.listingUrl)return f.listingUrl;if(n)return Z_(n,d,r.route);if(!d){console.warn(`${c} Check that you've provided a valid Yext Address, Yext ListingType, or Google Place ID.`);break}return J_(d,r.route)}}},j_=(t,e)=>e?`https://maps.apple.com/?daddr=${t}`:`https://maps.apple.com/?address=${t}`,q_=(t,e)=>e?`https://bing.com/maps/default.aspx?rtp=adr.${t}`:`https://bing.com/maps/default.aspx?where1=${t}`,Z_=(t,e,n)=>{const r=e?`&query=${e}`:"";return n?`https://maps.google.com/maps/dir/?api=1${r}&destination_place_id=${t}&destination=direct`:r?`https://maps.google.com/maps/search/?api=1${r}&query_place_id=${t}`:`https://maps.google.com/maps/dir/?api=1&destination_place_id=${t}&destination=direct`},J_=(t,e)=>e?`https://maps.google.com/maps/dir/?api=1&destination=${t}`:`https://maps.google.com/maps/search/?api=1&query=${t}`,ff=(t=[])=>{if(!t.length)return"";const e=t.filter(Boolean).join(", ");return encodeURI(e)},X_=({address:t,lines:e,separator:n=",",...r})=>{const c=(e||G_(t.countryCode)).map(d=>at.jsx(Q_,{address:t,line:d,separator:n},d.toString()));return rt.createElement("div",{...r,key:t.toString()},c)},Q_=({address:t,line:e,separator:n})=>{const r=[];for(const c of e){if(c===","){r.push(at.jsx("span",{children:n},c));continue}const d=t[c];if(!d)continue;const f=Y_(c,t);if(f){r.push(at.jsxs(K_.Fragment,{children:[" ",at.jsx("abbr",{title:f,children:d})]},c));continue}r.push(at.jsx("span",{children:" "+d},c))}return at.jsx("div",{className:"address-line",children:r})};var tl={};Object.defineProperty(tl,"__esModule",{value:!0});var ey=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ty=typeof window<"u"&&typeof window.document<"u",ny=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,ry=(typeof self>"u"?"undefined":ey(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",iy=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),oy=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",hf=tl.isBrowser=ty;tl.isWebWorker=ry;var sy=tl.isNode=ny;tl.isJsDom=iy;var ly=tl.isDeno=oy;class ay{constructor(){$n(this,"name");$n(this,"isServerSide");$n(this,"version");var e;ly?(this.name="deno",this.version="",hf&&(this.version=((e=window.Deno)==null?void 0:e.version.deno)||""),this.isServerSide=!0):sy?(this.name="node",this.version=process.versions.node,this.isServerSide=!0):hf?(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 Mo=()=>new ay,cy=(...t)=>{var r;if(Mo().name!=="browser")return!1;const n=(r=window==null?void 0:window.location)==null?void 0:r.hostname;return t.length===0?n!=="localhost"&&!n.includes("preview.pagescdn.com"):t.some(c=>c==null?void 0:c.includes(n))};var zu={exports:{}};(function(t,e){var n=typeof self<"u"?self:Wu,r=function(){function d(){this.fetch=!1,this.DOMException=n.DOMException}return d.prototype=n,new d}();(function(d){(function(f){var p={searchParams:"URLSearchParams"in d,iterable:"Symbol"in d&&"iterator"in Symbol,blob:"FileReader"in d&&"Blob"in d&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in d,arrayBuffer:"ArrayBuffer"in d};function C(J){return J&&DataView.prototype.isPrototypeOf(J)}if(p.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],T=ArrayBuffer.isView||function(J){return J&&x.indexOf(Object.prototype.toString.call(J))>-1};function O(J){if(typeof J!="string"&&(J=String(J)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(J))throw new TypeError("Invalid character in header field name");return J.toLowerCase()}function M(J){return typeof J!="string"&&(J=String(J)),J}function A(J){var ee={next:function(){var F=J.shift();return{done:F===void 0,value:F}}};return p.iterable&&(ee[Symbol.iterator]=function(){return ee}),ee}function v(J){this.map={},J instanceof v?J.forEach(function(ee,F){this.append(F,ee)},this):Array.isArray(J)?J.forEach(function(ee){this.append(ee[0],ee[1])},this):J&&Object.getOwnPropertyNames(J).forEach(function(ee){this.append(ee,J[ee])},this)}v.prototype.append=function(J,ee){J=O(J),ee=M(ee);var F=this.map[J];this.map[J]=F?F+", "+ee:ee},v.prototype.delete=function(J){delete this.map[O(J)]},v.prototype.get=function(J){return J=O(J),this.has(J)?this.map[J]:null},v.prototype.has=function(J){return this.map.hasOwnProperty(O(J))},v.prototype.set=function(J,ee){this.map[O(J)]=M(ee)},v.prototype.forEach=function(J,ee){for(var F in this.map)this.map.hasOwnProperty(F)&&J.call(ee,this.map[F],F,this)},v.prototype.keys=function(){var J=[];return this.forEach(function(ee,F){J.push(F)}),A(J)},v.prototype.values=function(){var J=[];return this.forEach(function(ee){J.push(ee)}),A(J)},v.prototype.entries=function(){var J=[];return this.forEach(function(ee,F){J.push([F,ee])}),A(J)},p.iterable&&(v.prototype[Symbol.iterator]=v.prototype.entries);function w(J){if(J.bodyUsed)return Promise.reject(new TypeError("Already read"));J.bodyUsed=!0}function P(J){return new Promise(function(ee,F){J.onload=function(){ee(J.result)},J.onerror=function(){F(J.error)}})}function K(J){var ee=new FileReader,F=P(ee);return ee.readAsArrayBuffer(J),F}function $(J){var ee=new FileReader,F=P(ee);return ee.readAsText(J),F}function W(J){for(var ee=new Uint8Array(J),F=new Array(ee.length),D=0;D<ee.length;D++)F[D]=String.fromCharCode(ee[D]);return F.join("")}function H(J){if(J.slice)return J.slice(0);var ee=new Uint8Array(J.byteLength);return ee.set(new Uint8Array(J)),ee.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(J){this._bodyInit=J,J?typeof J=="string"?this._bodyText=J:p.blob&&Blob.prototype.isPrototypeOf(J)?this._bodyBlob=J:p.formData&&FormData.prototype.isPrototypeOf(J)?this._bodyFormData=J:p.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)?this._bodyText=J.toString():p.arrayBuffer&&p.blob&&C(J)?(this._bodyArrayBuffer=H(J.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):p.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(J)||T(J))?this._bodyArrayBuffer=H(J):this._bodyText=J=Object.prototype.toString.call(J):this._bodyText="",this.headers.get("content-type")||(typeof J=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):p.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},p.blob&&(this.blob=function(){var J=w(this);if(J)return J;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?w(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(K)}),this.text=function(){var J=w(this);if(J)return J;if(this._bodyBlob)return $(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(W(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(q)}),this.json=function(){return this.text().then(JSON.parse)},this}var te=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function re(J){var ee=J.toUpperCase();return te.indexOf(ee)>-1?ee:J}function ce(J,ee){ee=ee||{};var F=ee.body;if(J instanceof ce){if(J.bodyUsed)throw new TypeError("Already read");this.url=J.url,this.credentials=J.credentials,ee.headers||(this.headers=new v(J.headers)),this.method=J.method,this.mode=J.mode,this.signal=J.signal,!F&&J._bodyInit!=null&&(F=J._bodyInit,J.bodyUsed=!0)}else this.url=String(J);if(this.credentials=ee.credentials||this.credentials||"same-origin",(ee.headers||!this.headers)&&(this.headers=new v(ee.headers)),this.method=re(ee.method||this.method||"GET"),this.mode=ee.mode||this.mode||null,this.signal=ee.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&F)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(F)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})};function q(J){var ee=new FormData;return J.trim().split("&").forEach(function(F){if(F){var D=F.split("="),V=D.shift().replace(/\+/g," "),ne=D.join("=").replace(/\+/g," ");ee.append(decodeURIComponent(V),decodeURIComponent(ne))}}),ee}function G(J){var ee=new v,F=J.replace(/\r?\n[\t ]+/g," ");return F.split(/\r?\n/).forEach(function(D){var V=D.split(":"),ne=V.shift().trim();if(ne){var Y=V.join(":").trim();ee.append(ne,Y)}}),ee}z.call(ce.prototype);function j(J,ee){ee||(ee={}),this.type="default",this.status=ee.status===void 0?200:ee.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ee?ee.statusText:"OK",this.headers=new v(ee.headers),this.url=ee.url||"",this._initBody(J)}z.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},j.error=function(){var J=new j(null,{status:0,statusText:""});return J.type="error",J};var _e=[301,302,303,307,308];j.redirect=function(J,ee){if(_e.indexOf(ee)===-1)throw new RangeError("Invalid status code");return new j(null,{status:ee,headers:{location:J}})},f.DOMException=d.DOMException;try{new f.DOMException}catch{f.DOMException=function(ee,F){this.message=ee,this.name=F;var D=Error(ee);this.stack=D.stack},f.DOMException.prototype=Object.create(Error.prototype),f.DOMException.prototype.constructor=f.DOMException}function pe(J,ee){return new Promise(function(F,D){var V=new ce(J,ee);if(V.signal&&V.signal.aborted)return D(new f.DOMException("Aborted","AbortError"));var ne=new XMLHttpRequest;function Y(){ne.abort()}ne.onload=function(){var U={status:ne.status,statusText:ne.statusText,headers:G(ne.getAllResponseHeaders()||"")};U.url="responseURL"in ne?ne.responseURL:U.headers.get("X-Request-URL");var Q="response"in ne?ne.response:ne.responseText;F(new j(Q,U))},ne.onerror=function(){D(new TypeError("Network request failed"))},ne.ontimeout=function(){D(new TypeError("Network request failed"))},ne.onabort=function(){D(new f.DOMException("Aborted","AbortError"))},ne.open(V.method,V.url,!0),V.credentials==="include"?ne.withCredentials=!0:V.credentials==="omit"&&(ne.withCredentials=!1),"responseType"in ne&&p.blob&&(ne.responseType="blob"),V.headers.forEach(function(U,Q){ne.setRequestHeader(Q,U)}),V.signal&&(V.signal.addEventListener("abort",Y),ne.onreadystatechange=function(){ne.readyState===4&&V.signal.removeEventListener("abort",Y)}),ne.send(typeof V._bodyInit>"u"?null:V._bodyInit)})}return pe.polyfill=!0,d.fetch||(d.fetch=pe,d.Headers=v,d.Request=ce,d.Response=j),f.Headers=v,f.Request=ce,f.Response=j,f.fetch=pe,Object.defineProperty(f,"__esModule",{value:!0}),f})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var c=r;e=c.fetch,e.default=c.fetch,e.fetch=c.fetch,e.Headers=c.Headers,e.Request=c.Request,e.Response=c.Response,t.exports=e})(zu,zu.exports);var uy=zu.exports;const gf=hc(uy);var dy=function(){function t(){}return t.prototype.post=function(e,n,r){var c=JSON.stringify(n),d={method:"POST",headers:r,body:c,keepalive:!0};return typeof window<"u"&&window.fetch?window.fetch(e,d):gf(e,d)},t.prototype.get=function(e){var n={method:"GET",mode:"no-cors",keepalive:!0};return typeof window<"u"&&window.fetch?window.fetch(e,n):gf(e,n)},t}(),fy={US:{PRODUCTION:"https://us.yextevents.com",SANDBOX:"https://sbx.us.yextevents.com"},EU:{PRODUCTION:"https://eu.yextevents.com",SANDBOX:void 0}},hy={US:{PRODUCTION:"https://realtimeanalytics.yext.com",SANDBOX:"https://sandbox-realtimeanalytics.yext.com"},EU:{PRODUCTION:void 0,SANDBOX:void 0}};function gy(t,e){var n=e?ad(t):_y(t);return"".concat(n,"/store_pagespixel")}function py(){var t=ad("US","PRODUCTION");return"".concat(t,"/conversiontracking/conversion")}function my(){var t=ad("US","PRODUCTION");return"".concat(t,"/listings")}function ad(t,e){return rp(hy,t,e,!0)}function _y(t,e){return rp(fy,t,e)}function rp(t,e,n,r){e===void 0&&(e="US"),n===void 0&&(n="PRODUCTION"),r===void 0&&(r=!1);var c=t[e][n];if(!c)throw Error('The combination of the environment: "'.concat(n,'", region: "').concat(e,'",')+'and conversionTrackingEnabled: "'.concat(r,'" is unsupported.'));return c}var pf;(function(t){t.AllTabNavigation="ALL_TAB_NAVIGATION",t.VerticalTabNavigation="VERTICAL_TAB_NAVIGATION",t.ScrollToBottomOfPage="SCROLL_TO_BOTTOM_OF_PAGE",t.QuestionFocus="QUESTION_FOCUS",t.QuestionSubmit="QUESTION_SUBMIT",t.RowExpand="ROW_EXPAND",t.RowCollapse="ROW_COLLAPSE",t.ThumbsUp="THUMBS_UP",t.ThumbsDown="THUMBS_DOWN",t.VoiceStart="VOICE_START",t.VoiceStop="VOICE_STOP",t.SearchBarImpression="SEARCH_BAR_IMPRESSION",t.SearchClearButton="SEARCH_CLEAR_BUTTON",t.Paginate="PAGINATE",t.AutocompleteSelection="AUTO_COMPLETE_SELECTION",t.VerticalViewAll="VERTICAL_VIEW_ALL",t.CtaClick="CTA_CLICK",t.TitleClick="TITLE_CLICK",t.TapToCall="TAP_TO_CALL",t.OrderNow="ORDER_NOW",t.AddToCart="ADD_TO_CART",t.ApplyNow="APPLY_NOW",t.DrivingDirections="DRIVING_DIRECTIONS",t.ViewWebsite="VIEW_WEBSITE",t.Email="EMAIL",t.BookAppointment="BOOK_APPOINTMENT",t.Rsvp="RSVP",t.ResultsHidden="RESULTS_HIDDEN",t.ResultsUnhidden="RESULTS_UNHIDDEN",t.FollowUpQuery="FOLLOW_UP_QUERY"})(pf||(pf={}));var Xr;(function(t){t.PageView="PAGE_VIEW",t.CTA="CTA_CLICK",t.Website="WEBSITE",t.DrivingDirection="DRIVING_DIRECTIONS",t.PhoneCall="CALL"})(Xr||(Xr={}));Xr.CTA;Xr.Website;Xr.DrivingDirection;var yy={eventType:Xr.PageView};Xr.PhoneCall;var mf;(function(t){t.Production="PRODUCTION",t.Sandbox="SANDBOX"})(mf||(mf={}));var _f;(function(t){t.US="US",t.EU="EU"})(_f||(_f={}));var ql="_yfpc",Gc="__temp__",ip="y_source";function op(){return Date.now()+Math.floor(1e3*Math.random())}var Yc=function(t,e,n,r){function c(d){return d instanceof n?d:new n(function(f){f(d)})}return new(n||(n=Promise))(function(d,f){function p(T){try{x(r.next(T))}catch(O){f(O)}}function C(T){try{x(r.throw(T))}catch(O){f(O)}}function x(T){T.done?d(T.value):c(T.value).then(p,C)}x((r=r.apply(t,e||[])).next())})},Vc=function(t,e){var n={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},r,c,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(x){return function(T){return C([x,T])}}function C(x){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,c&&(d=x[0]&2?c.return:x[0]?c.throw||((d=c.return)&&d.call(c),0):c.next)&&!(d=d.call(c,x[1])).done)return d;switch(c=0,d&&(x=[x[0]&2,d.value]),x[0]){case 0:case 1:d=x;break;case 4:return n.label++,{value:x[1],done:!1};case 5:n.label++,c=x[1],x=[0];continue;case 7:x=n.ops.pop(),n.trys.pop();continue;default:if(d=n.trys,!(d=d.length>0&&d[d.length-1])&&(x[0]===6||x[0]===2)){n=0;continue}if(x[0]===3&&(!d||x[1]>d[0]&&x[1]<d[3])){n.label=x[1];break}if(x[0]===6&&n.label<d[1]){n.label=d[1],d=x;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(x);break}d[2]&&n.ops.pop(),n.trys.pop();continue}x=e.call(t,n)}catch(T){x=[6,T],c=0}finally{r=d=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}},Cy=function(){function t(e,n){this.httpRequesterService=e,this.debug=n,this._debug=n,this._conversionTrackingEndpoint=py(),this._conversionTrackingListingsEndpoint=my()}return t.prototype.printEvent=function(e,n){this._debug&&console.log("%c[YextAnalytics]%c- Tracked ".concat(n," event: ").concat(e),"background: white; color: blue;","")},t.prototype.handleRequest=function(e){return Yc(this,void 0,void 0,function(){var n,r;return Vc(this,function(c){switch(c.label){case 0:return[4,this.httpRequesterService.get(e.toString())];case 1:return n=c.sent(),n.status!==200&&!(n.type==="opaqueredirect"||n.type==="opaque")?[4,n.text()]:[3,3];case 2:throw r=c.sent(),new Error(r);case 3:return[2]}})})},t.formatBaseEvent=function(e,n){n.set(ql,e.cookieId),e.referrer&&n.set("referrer",e.referrer),n.set("v",op().toString()),n.set("location",e.location)},t.prototype.trackConversion=function(e){return Yc(this,void 0,void 0,function(){var n,r;return Vc(this,function(c){switch(c.label){case 0:return n=new URL(this._conversionTrackingEndpoint),r=new URLSearchParams,r.set("cid",e.cid),e.cv&&r.set("cv",e.cv),t.formatBaseEvent(e,r),n.search=r.toString(),[4,this.handleRequest(n.toString())];case 1:return c.sent(),this.printEvent(e.cid,"Conversion"),[2]}})})},t.prototype.trackListings=function(e){return Yc(this,void 0,void 0,function(){var n,r;return Vc(this,function(c){switch(c.label){case 0:return n=new URL(this._conversionTrackingListingsEndpoint),r=new URLSearchParams,r.set(ip,e.source),t.formatBaseEvent(e,r),n.search=r.toString(),[4,this.handleRequest(n.toString())];case 1:return c.sent(),this.printEvent(e.source,"Listings Click"),[2]}})})},t.prototype.setDebugEnabled=function(e){this._debug=e},t}(),yf=function(t,e,n,r){function c(d){return d instanceof n?d:new n(function(f){f(d)})}return new(n||(n=Promise))(function(d,f){function p(T){try{x(r.next(T))}catch(O){f(O)}}function C(T){try{x(r.throw(T))}catch(O){f(O)}}function x(T){T.done?d(T.value):c(T.value).then(p,C)}x((r=r.apply(t,e||[])).next())})},Cf=function(t,e){var n={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},r,c,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(x){return function(T){return C([x,T])}}function C(x){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,c&&(d=x[0]&2?c.return:x[0]?c.throw||((d=c.return)&&d.call(c),0):c.next)&&!(d=d.call(c,x[1])).done)return d;switch(c=0,d&&(x=[x[0]&2,d.value]),x[0]){case 0:case 1:d=x;break;case 4:return n.label++,{value:x[1],done:!1};case 5:n.label++,c=x[1],x=[0];continue;case 7:x=n.ops.pop(),n.trys.pop();continue;default:if(d=n.trys,!(d=d.length>0&&d[d.length-1])&&(x[0]===6||x[0]===2)){n=0;continue}if(x[0]===3&&(!d||x[1]>d[0]&&x[1]<d[3])){n.label=x[1];break}if(x[0]===6&&n.label<d[1]){n.label=d[1],d=x;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(x);break}d[2]&&n.ops.pop(),n.trys.pop();continue}x=e.call(t,n)}catch(T){x=[6,T],c=0}finally{r=d=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}},Ny="sites",Mn;(function(t){t.BusinessId="businessids",t.Product="product",t.SiteId="siteId",t.IsStaging="isStaging",t.CacheBuster="v",t.UrlPath="pageurl",t.Referrer="pagesReferrer",t.EventType="eventType",t.PageSetId="pageSetId",t.EntityInternalId="ids",t.DirectoryId="directoryId",t.SearchId="searchId",t.StaticPageId="staticPageId",t.PageType="pageType",t.VisitorId="visitorId",t.VisitorMethod="visitorIdMethod",t.PageDomain="pageDomain"})(Mn||(Mn={}));var nl=new Map;nl.set(Xr.PageView,"pageview");nl.set(Xr.CTA,"calltoactionclick");nl.set(Xr.PhoneCall,"phonecall");nl.set(Xr.DrivingDirection,"drivingdirection");nl.set(Xr.Website,"clicktowebsite");function Ey(t){var e=nl.get(t);return typeof e=="string"?e:t}var Ty=function(){function t(e,n){this.config=e,this.httpRequesterService=n,this.setVisitor(e.visitor),this._debug=e.debug,this._conversionTracker=new Cy(this.httpRequesterService,this._debug),this._hasTrackedListings=!1,this._region=e.region;try{this._pageUrl=new URL(e.pageUrl)}catch{throw new Error("pageUrl property must be a valid URL, was: '".concat(e.pageUrl,"'"))}if(e.pageDomain)try{this._pageDomain=new URL(e.pageDomain)}catch{console.warn("pageDomain '".concat(e.pageDomain,"' is not a valid URL."),"It will not be included as a query param sent to the API.")}}return t.prototype.printEvent=function(e){this._debug&&console.log("%c[YextAnalytics]%c- Tracked Pages event: ".concat(e.eventType),"background: white; color: blue;","")},t.prototype.urlParameters=function(e){var n=new URLSearchParams;return n.set(Mn.BusinessId,this.config.businessId.toString()),n.set(Mn.Product,Ny),n.set(Mn.SiteId,this.config.siteId.toString()),n.set(Mn.IsStaging,(!this.config.production).toString()),n.set(Mn.EventType,Ey(e.eventType)),n.set(Mn.PageType,this.config.pageType.name),this.config.pageType.name==="entity"?(n.set(Mn.PageSetId,this.config.pageType.pageSetId),n.set(Mn.EntityInternalId,this.config.pageType.id.toString())):this.config.pageType.name==="directory"?(n.set(Mn.DirectoryId,this.config.pageType.directoryId),n.set(Mn.EntityInternalId,this.config.pageType.id.toString())):this.config.pageType.name==="locator"?n.set(Mn.SearchId,this.config.pageType.searchId):Mn.StaticPageId in this.config.pageType&&n.set(Mn.StaticPageId,this.config.pageType.staticPageId),n.set(Mn.CacheBuster,op().toString()),n.set(Mn.UrlPath,this._pageUrl.pathname),n.set(Mn.Referrer,this.config.referrer),this._pageDomain&&n.set(Mn.PageDomain,this._pageDomain.toString()),this._conversionTrackingEnabled&&this._cookieID&&n.set(ql,this._cookieID),this._visitor&&(n.set(Mn.VisitorId,this._visitor.id),this._visitor.idMethod&&n.set(Mn.VisitorMethod,this._visitor.idMethod)),n},t.prototype.pageView=function(){return yf(this,void 0,void 0,function(){var e;return Cf(this,function(n){switch(n.label){case 0:return e=this._pageUrl.searchParams.get(ip),this._conversionTrackingEnabled&&this._cookieID&&!this._hasTrackedListings&&e?[4,this._conversionTracker.trackListings({cookieId:this._cookieID,location:this._pageUrl.toString(),source:e})]:[3,2];case 1:n.sent(),this._hasTrackedListings=!0,n.label=2;case 2:return[2,this.track(yy)]}})})},t.prototype.track=function(e,n){return yf(this,void 0,void 0,function(){var r,c,d,f;return Cf(this,function(p){switch(p.label){case 0:return r=gy(this._region,this._conversionTrackingEnabled),c=new URL(r),c.search=this.urlParameters(e).toString(),[4,this.httpRequesterService.get(c.toString())];case 1:return d=p.sent(),d.status!==200&&!(d.type=="opaque"||d.type=="opaqueredirect")?[4,d.text()]:[3,3];case 2:throw f=p.sent(),new Error(f);case 3:return this.printEvent(e),this._conversionTrackingEnabled&&this._cookieID&&n?[4,this._conversionTracker.trackConversion({cid:n.cid,cv:n.cv,cookieId:this._cookieID,location:this._pageUrl.toString()})]:[3,5];case 4:p.sent(),p.label=5;case 5:return[2]}})})},t.prototype.setDebugEnabled=function(e){this._debug=e,this._conversionTracker&&this._conversionTracker.setDebugEnabled(e)},t.prototype.setVisitor=function(e){this._visitor=e},t.prototype.setConversionTrackingEnabled=function(e,n){this._conversionTrackingEnabled=e,this._cookieID=n},t}();var xy=function(){function t(e,n){e===void 0&&(e=window),n===void 0&&(n=document),this._outerWindow=e,this._outerDocument=n}return t.prototype.setAndGetYextCookie=function(){var e=this.fetchCookie();return e||(e=t.generateRandomCookie().toString()),this.setCookieAndRemoveOldCookies(e),e},t.generateRandomCookie=function(){return Math.floor(Math.random()*new Date().getTime())},t.prototype.fetchCookie=function(){var e=this,n="",r=function(c){if(e.canSetCookieWithDomain(c)){var d=e.removeCookieByDomain(c);return d&&(n=d,e.setCookie(n,c)),!0}};return this.forEachDomainIncreasingSpecificity(r),n||r(""),n},t.prototype.forEachDomainIncreasingSpecificity=function(e){for(var n=!1,r=this._outerDocument.location.hostname.split(".").reverse(),c="",d=0;d<r.length;d++)if(c="."+r[d]+c,e(c)){n=!0;break}n||e("")},t.prototype.removeCookieByDomain=function(e){var n=this.persistentCookies();this.clearCookie(e);var r=this.persistentCookies();return r.length<n.length&&t.listDifference(n,r)[0]||""},t.listDifference=function(e,n){for(var r=Array.from(e),c=0;c<n.length;c++){var d=r.indexOf(n[c]);d!==-1&&r.splice(d,1)}return r},t.prototype.persistentCookies=function(){return this.allCookies().filter(function(e){return e!==Gc})},t.prototype.allCookies=function(){var e=[];return this.forEachCookieNameValue(function(n,r){n===ql&&e.push(r)}),e},t.prototype.forEachCookieNameValue=function(e){this._outerDocument.cookie.split(";").forEach(function(n){var r=n.split("="),c=r[0],d=r[1];c&&d&&e(c.trim(),d.trim())})},t.prototype.setCookieAndRemoveOldCookies=function(e){var n=this,r=!1,c=this.allCookies().length,d=0;this.forEachDomainIncreasingSpecificity(function(f){if(r?n.removeCookieByDomain(f)&&d++:n.canSetCookieWithDomain(f)&&(n.removeCookieByDomain(f)&&d++,n.setCookie(e,f),r=!0),d>=c&&r)return!0})},t.prototype.canSetCookieWithDomain=function(e){var n=this.removeCookieByDomain(e),r=this.allCookies();this.setCookie(Gc,e);var c=this.allCookies();return r.length<c.length?(n?this.setCookie(n,e):this.clearCookie(e),!0):!1},t.prototype.setCookie=function(e,n){this._outerDocument.cookie=this.formatCookie(ql,e,n)},t.prototype.formatCookie=function(e,n,r,c){c===void 0&&(c="/");var d=e+"="+n,f=new Date;return f.setTime(f.getTime()+90*24*60*60*1e3),d+=";path="+c,d+=";expires="+f.toUTCString(),r&&(d+=";domain="+r),d+=";samesite=None;",this._outerWindow.location.protocol==="https:"&&(d+=" Secure "),d},t.prototype.clearCookie=function(e,n){e===void 0&&(e=""),n===void 0&&(n="/");var r=new Date(0),c=ql+"="+Gc;c+=";path="+n,c+=";expires="+r.toUTCString(),e&&(c+=";domain="+e+";"),c+=";samesite=None;",this._outerWindow.location.protocol==="https:"&&(c+=" Secure "),this._outerDocument.cookie=c},t}();function vy(t){var e=new dy;return new Ty(t,e)}function sp(t){return t?t.toLowerCase().trim().replace(/\s/g,""):""}function Gu(t,e){return[t,e].filter(n=>!!n).map(n=>sp(n)).join("_")}class lp{constructor(e,n,r,c=[]){$n(this,"_optedIn");$n(this,"_conversionTrackingEnabled",!1);$n(this,"_cookieManager");$n(this,"_analyticsReporter");$n(this,"_pageViewFired",!1);$n(this,"_enableDebugging",!1);this.templateData=e,this.pageDomain=r,this.productionDomains=c,this._optedIn=!n,this.makeReporter(),this.pageView()}calculatePageType(){var c,d,f,p;const e=!!((d=(c=this.templateData.document)==null?void 0:c.__)!=null&&d.staticPage),n=!!((p=(f=this.templateData.document)==null?void 0:f.__)!=null&&p.entityPageSet);let r;if(e)r={name:"static",staticPageId:this.templateData.document.__.name};else if(n)r={name:"entity",pageSetId:this.templateData.document.__.name,id:this.templateData.document.uid};else throw new Error("invalid document type");return r}makeReporter(){if(Mo().name!=="browser"||!this._optedIn)return;const e=cy(...this.productionDomains);this._analyticsReporter=vy({businessId:this.templateData.document.businessId,pageType:this.calculatePageType(),pageUrl:window.location.href,production:e,referrer:document.referrer,siteId:this.templateData.document.siteId,pageDomain:this.pageDomain}),this.setDebugEnabled(this._enableDebugging)}canTrack(){return Mo().name==="browser"&&this._optedIn&&!!this._analyticsReporter}setupConversionTracking(){var e;this._cookieManager=new xy,(e=this._analyticsReporter)==null||e.setConversionTrackingEnabled(!0,this._cookieManager.setAndGetYextCookie())}enableTrackingCookie(){this._conversionTrackingEnabled=!0,this.canTrack()&&this.setupConversionTracking()}identify(e){var n;this.canTrack()&&((n=this._analyticsReporter)==null||n.setVisitor(e))}async optIn(){this._optedIn=!0,this.makeReporter(),this._conversionTrackingEnabled&&!this._cookieManager&&this.setupConversionTracking(),this._pageViewFired||await this.pageView()}async pageView(){var e;if(!this.canTrack())return Promise.resolve(void 0);await((e=this._analyticsReporter)==null?void 0:e.pageView()),this._pageViewFired=!0}async track(e,n){var r;if(!this.canTrack())return Promise.resolve();await((r=this._analyticsReporter)==null?void 0:r.track({eventType:sp(e)},n))}getDebugEnabled(){return this._enableDebugging}setDebugEnabled(e){var n;this._enableDebugging=e,(n=this._analyticsReporter)==null||n.setDebugEnabled(e)}trackClick(e,n){return r=>{if(!this.canTrack())return Promise.resolve();if(r.target===null||r.defaultPrevented)return this.track(e,n);const c=r.target;if(c.href===null||c.href===void 0)return this.track(e,n);const d=new URL(c.href);if(d.protocol==="mailto:"||d.protocol==="tel:"||d.protocol==="javascript:"||d.hostname===window.location.hostname)return this.track(e,n);if(c.target&&!c.target.match(/^_(self|parent|top)$/i)||r.ctrlKey||r.shiftKey||r.metaKey)return this.track(e,n);r.preventDefault();const p=()=>{window.location.assign(d)},C=new Promise(x=>{setTimeout(()=>{x()},1e3)});return Promise.race([this.track(e,n),C]).then(p).catch(p)}}}const cd=rt.createContext(null),Yu=rt.createContext({name:""}),ud=()=>rt.useContext(Yu).name;function Sy(t){var c;const e=ud(),[n]=rt.useState({name:Gu(e,t.name)});return((c=rl())==null?void 0:c.getDebugEnabled())?at.jsx("section",{"data-ya-scope":n.name,children:at.jsx(Yu.Provider,{value:n,children:t.children})}):at.jsx(Yu.Provider,{value:n,children:t.children})}function rl(){const t=rt.useContext(cd);if(!t)return t;Mo().name==="browser"&&!window.setAnalyticsOptIn&&(window.setAnalyticsOptIn=async()=>{await t.optIn()});const e=ud();return{trackClick(n,r){return t.trackClick(Gu(e,n),r)},getDebugEnabled(){return t.getDebugEnabled()},setDebugEnabled(n){return t.setDebugEnabled(n)},enableTrackingCookie(){return t.enableTrackingCookie()},identify(n){return t.identify(n)},optIn(){return t.optIn()},pageView(){return t.pageView()},track(n,r){return t.track(Gu(e,n),r)}}}const wy=()=>{var t;return(t=rl())==null?void 0:t.track},Oy=()=>{var t;return(t=rl())==null?void 0:t.pageView},Dy=()=>{var t;return(t=rl())==null?void 0:t.identify},by=rt.lazy(()=>Promise.resolve().then(()=>require("./debugger-D2BmI8Ln.cjs")));function Ry(t){var O;const{children:e,requireOptIn:n,enableTrackingCookie:r,enableDebugging:c,templateData:d,pageDomain:f,productionDomains:p}=t,C=rt.useRef(null);C.current===null&&(C.current=new lp(d,n,f,p));const x=C.current;r&&x.enableTrackingCookie();let T=My();return Mo().name==="node"&&(T=T||((O=process.env)==null?void 0:O.NODE_ENV)==="development"),x.setDebugEnabled(c??T),at.jsxs(at.Fragment,{children:[at.jsx(cd.Provider,{value:x,children:e}),(c??T)&&Mo().name==="browser"?at.jsx(rt.Suspense,{fallback:at.jsx(at.Fragment,{}),children:at.jsx(by,{})}):null]})}function My(){return Mo().name!=="browser"||typeof window===void 0?!1:!!new URL(window.location.href).searchParams.get("xYextDebug")}const Ro={INTRINSIC:"intrinsic",FIXED:"fixed",ASPECT:"aspect",FILL:"fill"},Ay=t=>{const e=t.protocol.slice(0,-1);if(e!=="http"&&e!=="https"){console.error(`Invalid scheme: ${t}`);return}const n=t.hostname;let r;if(n==="a.mktgcdn.com")r="us";else{if(n.replace("a.","").replace(".mktgcdn.com","")!=="eu"){console.error(`Invalid host: ${t}`);return}r="eu"}if(!t.pathname.startsWith("/f")){console.error(`Invalid path: ${t}`);return}const c=t.pathname.replace(/^\//,"").split("/");if(c.length<2||c.length>3){console.error(`Invalid path: ${t}`);return}let d;if(c[0]==="f")d="prod";else switch(c[0].replace("f-","")){case"sandbox":{d="sbx";break}case"qa":{d="qa";break}case"dev":{d="dev";break}default:{console.error(`Invalid path: ${t}`);return}}if(r==="eu"&&(d==="dev"||d==="sbx")){console.error(`Invalid path: ${t}`);return}let f;if(c.length===3&&(f=parseInt(c[1]),Number.isNaN(f))){console.error(`Invalid account id: ${t}`);return}const p=c[c.length-1].split("."),C=p.length===2?`.${p[1]}`:"",x=p[0];return{scheme:e,partition:r,env:d,accountId:f,contentHash:x,extension:C}},ky=(t,e,n)=>{const r=`https://dyn${t.partition==="us"?"":`.${t.partition}`}.mktgcdn.com`;let c="f";switch(t.env){case"prod":break;case"sbx":{c+="-sandbox";break}default:c+=`-${t.env.toString()}`}const d=t.accountId?`${t.accountId}/`:"";return`${r}/${c}/${d}${t.contentHash}${t.extension}/width=${Math.round(e)},height=${Math.round(n)}`},Ly=t=>{const e=t.protocol.slice(0,-1);if(e!=="http"&&e!=="https"){console.error(`Invalid scheme: ${t}`);return}if(t.hostname!=="a.mktgcdn.com"){console.error(`Invalid host: ${t}`);return}if(!t.pathname.startsWith("/p")){console.error(`Invalid path: ${t}`);return}const n=t.pathname.replace(/^\//,"").split("/");if(n.length<3||n.length>4){console.error(`Invalid path: ${t}`);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: ${t}`);return}}const c=n[1];let d;if(n.length===4){if(!n[2].includes(".")){console.error(`Invalid aspect ratio: ${t}`);return}if(d=parseFloat(n[2]),Number.isNaN(d)||n[2].split(".")[1].length!==4){console.error(`Invalid aspect ratio: ${t}`);return}}const f=n[n.length-1].split("."),p=f.length===2?`.${f[1]}`:"",C=f[0];return{scheme:e,env:r,contentHash:c,aspectRatio:d,name:C,extension:p}},Iy=(t,e,n)=>{const r="https://dyn.mktgcdn.com";let c="p";switch(t.env){case"prod":break;case"sbx":{c+="-sandbox";break}default:c+=`-${t.env.toString()}`}return`${r}/${c}/${t.contentHash}/width=${Math.round(e)},height=${Math.round(n)}`},Vu=(t,e,n)=>{if(!ap(t)){console.error(`Invalid image url: ${t}.`);return}const r=new URL(t);if(r.pathname.startsWith("/p")){const c=Ly(r);if(c)return Iy(c,e,n)}else if(r.pathname.startsWith("/f")){const c=Ay(r);if(c)return ky(c,e,n)}return t},ap=t=>{let e;try{e=new URL(t)}catch{return!1}return e.protocol==="http:"||e.protocol==="https:"},Py=({image:t,className:e,width:n,height:r,aspectRatio:c,layout:d=Ro.INTRINSIC,placeholder:f,imgOverrides:p,style:C={},loading:x="lazy"})=>{const T=rt.useRef(null),[O,M]=rt.useState(!1),A="image"in t?t.image:t;rt.useEffect(()=>{var ce;(ce=T.current)!=null&&ce.complete&&M(!0)},[]),$y(d,A.width,A.height,n,r,c);const v=Math.abs(A.width);v||console.warn("Invalid image width.");const w=Math.abs(A.height);if(w||console.warn("Invalid image height."),!ap(A.url))return console.error(`Invalid image url: ${A.url}`),at.jsx(at.Fragment,{children:f!=null&&f});const P=n&&n>0?n:void 0,K=r&&r>0?r:void 0,{src:$,imgStyle:W,widths:H}=Fy(d,v,w,C,A.url,P,K,c),z=H.map(ce=>`${Vu(A.url,ce,w/v*ce)} ${ce}w`).join(", "),te=[640,768,1024,1280,1536],re=H.map((ce,q)=>q===H.length-1?`${ce}px`:`(max-width: ${te[q]}px) ${ce}px`).join(", ");return at.jsxs(at.Fragment,{children:[!O&&f!=null&&f,at.jsx("img",{ref:T,style:W,src:$,className:e,width:P,height:K,srcSet:z,sizes:re,loading:x,alt:A.alternateText||"",...p})]})},$y=(t,e,n,r,c,d)=>{if(e<0&&console.warn(`Invalid image width: ${e}.`),n<0&&console.warn(`Invalid image height: ${n}.`),t===Ro.FIXED){if(!r&&!c){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}.`),c&&c<0&&console.warn(`Using fixed layout but height is invalid: ${c}.`);return}(r||c)&&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."),t===Ro.ASPECT&&!d&&console.warn("Using aspect layout but aspectRatio is not passed as a prop.")},Fy=(t,e,n,r,c,d,f,p)=>{let C=[100,320,640,960,1280,1920],x=Vu(c,500,500);const T={...r};switch(T.objectFit=T.objectFit||"cover",T.objectPosition=T.objectPosition||"center",t){case Ro.INTRINSIC:T.maxWidth=e,T.width="100%",T.aspectRatio=p?`${p}`:`${e} / ${n}`;break;case Ro.FIXED:{const{fixedWidth:O,fixedHeight:M,fixedWidths:A}=By(e,n,C,d,f);T.width=O,T.height=M,C=A,x=Vu(c,O,M);break}case Ro.ASPECT:T.aspectRatio=p?`${p}`:`${e} / ${n}`;break;case Ro.FILL:T.width="100%",T.aspectRatio=p?`${p}`:`${e} / ${n}`;break;default:console.warn(`Unrecognized layout: ${t}.`);break}return{src:x,imgStyle:T,widths:C}},By=(t,e,n,r,c)=>r&&c?{fixedWidth:r,fixedHeight:c,fixedWidths:[r]}:r?{fixedWidth:r,fixedHeight:r*e/t,fixedWidths:[r]}:c?{fixedWidth:c/e*t,fixedHeight:c,fixedWidths:[c/e*t]}:{fixedWidth:t,fixedHeight:e,fixedWidths:n};var cp={exports:{}};/*!
27
+ Check the top-level render call using <`+et+">.")}return Ge}}function gr(ye,Ge){{if(!ye._store||ye._store.validated||ye.key!=null)return;ye._store.validated=!0;var et=It(Ge);if(zt[et])return;zt[et]=!0;var Ct="";ye&&ye._owner&&ye._owner!==Et.current&&(Ct=" It was passed a child from "+pe(ye._owner.type)+"."),Ot(ye),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',et,Ct),Ot(null)}}function wr(ye,Ge){{if(typeof ye!="object")return;if(yt(ye))for(var et=0;et<ye.length;et++){var Ct=ye[et];xt(Ct)&&gr(Ct,Ge)}else if(xt(ye))ye._store&&(ye._store.validated=!0);else if(ye){var Bt=P(ye);if(typeof Bt=="function"&&Bt!==ye.entries)for(var Kt=Bt.call(ye),$t;!($t=Kt.next()).done;)xt($t.value)&&gr($t.value,Ge)}}}function Bi(ye){{var Ge=ye.type;if(Ge==null||typeof Ge=="string")return;var et;if(typeof Ge=="function")et=Ge.propTypes;else if(typeof Ge=="object"&&(Ge.$$typeof===C||Ge.$$typeof===O))et=Ge.propTypes;else return;if(et){var Ct=pe(Ge);Ye(et,ye.props,"prop",Ct,ye)}else if(Ge.PropTypes!==void 0&&!bt){bt=!0;var Bt=pe(Ge);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Bt||"Unknown")}typeof Ge.getDefaultProps=="function"&&!Ge.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ms(ye){{for(var Ge=Object.keys(ye.props),et=0;et<Ge.length;et++){var Ct=Ge[et];if(Ct!=="children"&&Ct!=="key"){Ot(ye),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Ct),Ot(null);break}}ye.ref!==null&&(Ot(ye),$("Invalid attribute `ref` supplied to `React.Fragment`."),Ot(null))}}function _s(ye,Ge,et,Ct,Bt,Kt){{var $t=G(ye);if(!$t){var Pt="";(ye===void 0||typeof ye=="object"&&ye!==null&&Object.keys(ye).length===0)&&(Pt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var mn=At(Bt);mn?Pt+=mn:Pt+=Qt();var sn;ye===null?sn="null":yt(ye)?sn="array":ye!==void 0&&ye.$$typeof===e?(sn="<"+(pe(ye.type)||"Unknown")+" />",Pt=" Did you accidentally export a JSX literal instead of a component?"):sn=typeof ye,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",sn,Pt)}var tn=_t(ye,Ge,et,Bt,Kt);if(tn==null)return tn;if($t){var Bn=Ge.children;if(Bn!==void 0)if(Ct)if(yt(Bn)){for(var mr=0;mr<Bn.length;mr++)wr(Bn[mr],ye);Object.freeze&&Object.freeze(Bn)}else $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else wr(Bn,ye)}return ye===r?ms(tn):Bi(tn),tn}}function fn(ye,Ge,et){return _s(ye,Ge,et,!0)}function pr(ye,Ge,et){return _s(ye,Ge,et,!1)}var Qr=pr,ys=fn;Hl.Fragment=r,Hl.jsx=Qr,Hl.jsxs=ys}()),Hl}process.env.NODE_ENV==="production"?Ku.exports=U_():Ku.exports=z_();var at=Ku.exports;function G_(t){switch(t){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 np={GOOGLEMYBUSINESS:"GOOGLEMYBUSINESS"},Uu={GOOGLE:"google",APPLE:"apple",BING:"bing"},Y_=(t,e)=>{const r={region:"localizedRegionName",countryCode:"localizedCountryName"}[t];return r&&e[r]},V_=(t,e=[],n,r={route:!1})=>{const c="Failed to construct query for maps service.";let d=t&&ff([t.line1,t.line2,t.city,t.region,t.postalCode,t.countryCode]);switch(r.provider){case Uu.APPLE:{if(!d){console.warn(`${c} Check that you've provided a valid Yext Address.`);break}return j_(d,r.route)}case Uu.BING:{if(d=t&&ff([t.line1,t.city,t.region,t.postalCode]),!d){console.warn(`${c} Check that you've provided a valid Yext Address.`);break}return q_(d,r.route)}default:{const f=e.find(p=>{var C;return((C=p==null?void 0:p.publisher)==null?void 0:C.toUpperCase())===np.GOOGLEMYBUSINESS});if(f!=null&&f.listingUrl)return f.listingUrl;if(n)return Z_(n,d,r.route);if(!d){console.warn(`${c} Check that you've provided a valid Yext Address, Yext ListingType, or Google Place ID.`);break}return J_(d,r.route)}}},j_=(t,e)=>e?`https://maps.apple.com/?daddr=${t}`:`https://maps.apple.com/?address=${t}`,q_=(t,e)=>e?`https://bing.com/maps/default.aspx?rtp=adr.${t}`:`https://bing.com/maps/default.aspx?where1=${t}`,Z_=(t,e,n)=>{const r=e?`&query=${e}`:"";return n?`https://maps.google.com/maps/dir/?api=1${r}&destination_place_id=${t}&destination=direct`:r?`https://maps.google.com/maps/search/?api=1${r}&query_place_id=${t}`:`https://maps.google.com/maps/dir/?api=1&destination_place_id=${t}&destination=direct`},J_=(t,e)=>e?`https://maps.google.com/maps/dir/?api=1&destination=${t}`:`https://maps.google.com/maps/search/?api=1&query=${t}`,ff=(t=[])=>{if(!t.length)return"";const e=t.filter(Boolean).join(", ");return encodeURI(e)},X_=({address:t,lines:e,separator:n=",",...r})=>{const c=(e||G_(t.countryCode)).map(d=>at.jsx(Q_,{address:t,line:d,separator:n},d.toString()));return rt.createElement("div",{...r,key:t.toString()},c)},Q_=({address:t,line:e,separator:n})=>{const r=[];for(const c of e){if(c===","){r.push(at.jsx("span",{children:n},c));continue}const d=t[c];if(!d)continue;const f=Y_(c,t);if(f){r.push(at.jsxs(K_.Fragment,{children:[" ",at.jsx("abbr",{title:f,children:d})]},c));continue}r.push(at.jsx("span",{children:" "+d},c))}return at.jsx("div",{className:"address-line",children:r})};var tl={};Object.defineProperty(tl,"__esModule",{value:!0});var ey=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ty=typeof window<"u"&&typeof window.document<"u",ny=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,ry=(typeof self>"u"?"undefined":ey(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",iy=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),oy=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u",hf=tl.isBrowser=ty;tl.isWebWorker=ry;var sy=tl.isNode=ny;tl.isJsDom=iy;var ly=tl.isDeno=oy;class ay{constructor(){$n(this,"name");$n(this,"isServerSide");$n(this,"version");var e;ly?(this.name="deno",this.version="",hf&&(this.version=((e=window.Deno)==null?void 0:e.version.deno)||""),this.isServerSide=!0):sy?(this.name="node",this.version=process.versions.node,this.isServerSide=!0):hf?(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 Mo=()=>new ay,cy=(...t)=>{var r;if(Mo().name!=="browser")return!1;const n=(r=window==null?void 0:window.location)==null?void 0:r.hostname;return t.length===0?n!=="localhost"&&!n.includes("preview.pagescdn.com"):t.some(c=>c==null?void 0:c.includes(n))};var zu={exports:{}};(function(t,e){var n=typeof self<"u"?self:Wu,r=function(){function d(){this.fetch=!1,this.DOMException=n.DOMException}return d.prototype=n,new d}();(function(d){(function(f){var p={searchParams:"URLSearchParams"in d,iterable:"Symbol"in d&&"iterator"in Symbol,blob:"FileReader"in d&&"Blob"in d&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in d,arrayBuffer:"ArrayBuffer"in d};function C(J){return J&&DataView.prototype.isPrototypeOf(J)}if(p.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],T=ArrayBuffer.isView||function(J){return J&&x.indexOf(Object.prototype.toString.call(J))>-1};function O(J){if(typeof J!="string"&&(J=String(J)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(J))throw new TypeError("Invalid character in header field name");return J.toLowerCase()}function M(J){return typeof J!="string"&&(J=String(J)),J}function A(J){var ee={next:function(){var F=J.shift();return{done:F===void 0,value:F}}};return p.iterable&&(ee[Symbol.iterator]=function(){return ee}),ee}function v(J){this.map={},J instanceof v?J.forEach(function(ee,F){this.append(F,ee)},this):Array.isArray(J)?J.forEach(function(ee){this.append(ee[0],ee[1])},this):J&&Object.getOwnPropertyNames(J).forEach(function(ee){this.append(ee,J[ee])},this)}v.prototype.append=function(J,ee){J=O(J),ee=M(ee);var F=this.map[J];this.map[J]=F?F+", "+ee:ee},v.prototype.delete=function(J){delete this.map[O(J)]},v.prototype.get=function(J){return J=O(J),this.has(J)?this.map[J]:null},v.prototype.has=function(J){return this.map.hasOwnProperty(O(J))},v.prototype.set=function(J,ee){this.map[O(J)]=M(ee)},v.prototype.forEach=function(J,ee){for(var F in this.map)this.map.hasOwnProperty(F)&&J.call(ee,this.map[F],F,this)},v.prototype.keys=function(){var J=[];return this.forEach(function(ee,F){J.push(F)}),A(J)},v.prototype.values=function(){var J=[];return this.forEach(function(ee){J.push(ee)}),A(J)},v.prototype.entries=function(){var J=[];return this.forEach(function(ee,F){J.push([F,ee])}),A(J)},p.iterable&&(v.prototype[Symbol.iterator]=v.prototype.entries);function w(J){if(J.bodyUsed)return Promise.reject(new TypeError("Already read"));J.bodyUsed=!0}function P(J){return new Promise(function(ee,F){J.onload=function(){ee(J.result)},J.onerror=function(){F(J.error)}})}function K(J){var ee=new FileReader,F=P(ee);return ee.readAsArrayBuffer(J),F}function $(J){var ee=new FileReader,F=P(ee);return ee.readAsText(J),F}function W(J){for(var ee=new Uint8Array(J),F=new Array(ee.length),D=0;D<ee.length;D++)F[D]=String.fromCharCode(ee[D]);return F.join("")}function H(J){if(J.slice)return J.slice(0);var ee=new Uint8Array(J.byteLength);return ee.set(new Uint8Array(J)),ee.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(J){this._bodyInit=J,J?typeof J=="string"?this._bodyText=J:p.blob&&Blob.prototype.isPrototypeOf(J)?this._bodyBlob=J:p.formData&&FormData.prototype.isPrototypeOf(J)?this._bodyFormData=J:p.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)?this._bodyText=J.toString():p.arrayBuffer&&p.blob&&C(J)?(this._bodyArrayBuffer=H(J.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):p.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(J)||T(J))?this._bodyArrayBuffer=H(J):this._bodyText=J=Object.prototype.toString.call(J):this._bodyText="",this.headers.get("content-type")||(typeof J=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):p.searchParams&&URLSearchParams.prototype.isPrototypeOf(J)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},p.blob&&(this.blob=function(){var J=w(this);if(J)return J;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?w(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(K)}),this.text=function(){var J=w(this);if(J)return J;if(this._bodyBlob)return $(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(W(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(q)}),this.json=function(){return this.text().then(JSON.parse)},this}var te=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function re(J){var ee=J.toUpperCase();return te.indexOf(ee)>-1?ee:J}function ce(J,ee){ee=ee||{};var F=ee.body;if(J instanceof ce){if(J.bodyUsed)throw new TypeError("Already read");this.url=J.url,this.credentials=J.credentials,ee.headers||(this.headers=new v(J.headers)),this.method=J.method,this.mode=J.mode,this.signal=J.signal,!F&&J._bodyInit!=null&&(F=J._bodyInit,J.bodyUsed=!0)}else this.url=String(J);if(this.credentials=ee.credentials||this.credentials||"same-origin",(ee.headers||!this.headers)&&(this.headers=new v(ee.headers)),this.method=re(ee.method||this.method||"GET"),this.mode=ee.mode||this.mode||null,this.signal=ee.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&F)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(F)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})};function q(J){var ee=new FormData;return J.trim().split("&").forEach(function(F){if(F){var D=F.split("="),V=D.shift().replace(/\+/g," "),ne=D.join("=").replace(/\+/g," ");ee.append(decodeURIComponent(V),decodeURIComponent(ne))}}),ee}function G(J){var ee=new v,F=J.replace(/\r?\n[\t ]+/g," ");return F.split(/\r?\n/).forEach(function(D){var V=D.split(":"),ne=V.shift().trim();if(ne){var Y=V.join(":").trim();ee.append(ne,Y)}}),ee}z.call(ce.prototype);function j(J,ee){ee||(ee={}),this.type="default",this.status=ee.status===void 0?200:ee.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ee?ee.statusText:"OK",this.headers=new v(ee.headers),this.url=ee.url||"",this._initBody(J)}z.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},j.error=function(){var J=new j(null,{status:0,statusText:""});return J.type="error",J};var _e=[301,302,303,307,308];j.redirect=function(J,ee){if(_e.indexOf(ee)===-1)throw new RangeError("Invalid status code");return new j(null,{status:ee,headers:{location:J}})},f.DOMException=d.DOMException;try{new f.DOMException}catch{f.DOMException=function(ee,F){this.message=ee,this.name=F;var D=Error(ee);this.stack=D.stack},f.DOMException.prototype=Object.create(Error.prototype),f.DOMException.prototype.constructor=f.DOMException}function pe(J,ee){return new Promise(function(F,D){var V=new ce(J,ee);if(V.signal&&V.signal.aborted)return D(new f.DOMException("Aborted","AbortError"));var ne=new XMLHttpRequest;function Y(){ne.abort()}ne.onload=function(){var U={status:ne.status,statusText:ne.statusText,headers:G(ne.getAllResponseHeaders()||"")};U.url="responseURL"in ne?ne.responseURL:U.headers.get("X-Request-URL");var Q="response"in ne?ne.response:ne.responseText;F(new j(Q,U))},ne.onerror=function(){D(new TypeError("Network request failed"))},ne.ontimeout=function(){D(new TypeError("Network request failed"))},ne.onabort=function(){D(new f.DOMException("Aborted","AbortError"))},ne.open(V.method,V.url,!0),V.credentials==="include"?ne.withCredentials=!0:V.credentials==="omit"&&(ne.withCredentials=!1),"responseType"in ne&&p.blob&&(ne.responseType="blob"),V.headers.forEach(function(U,Q){ne.setRequestHeader(Q,U)}),V.signal&&(V.signal.addEventListener("abort",Y),ne.onreadystatechange=function(){ne.readyState===4&&V.signal.removeEventListener("abort",Y)}),ne.send(typeof V._bodyInit>"u"?null:V._bodyInit)})}return pe.polyfill=!0,d.fetch||(d.fetch=pe,d.Headers=v,d.Request=ce,d.Response=j),f.Headers=v,f.Request=ce,f.Response=j,f.fetch=pe,Object.defineProperty(f,"__esModule",{value:!0}),f})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var c=r;e=c.fetch,e.default=c.fetch,e.fetch=c.fetch,e.Headers=c.Headers,e.Request=c.Request,e.Response=c.Response,t.exports=e})(zu,zu.exports);var uy=zu.exports;const gf=hc(uy);var dy=function(){function t(){}return t.prototype.post=function(e,n,r){var c=JSON.stringify(n),d={method:"POST",headers:r,body:c,keepalive:!0};return typeof window<"u"&&window.fetch?window.fetch(e,d):gf(e,d)},t.prototype.get=function(e){var n={method:"GET",mode:"no-cors",keepalive:!0};return typeof window<"u"&&window.fetch?window.fetch(e,n):gf(e,n)},t}(),fy={US:{PRODUCTION:"https://us.yextevents.com",SANDBOX:"https://sbx.us.yextevents.com"},EU:{PRODUCTION:"https://eu.yextevents.com",SANDBOX:void 0}},hy={US:{PRODUCTION:"https://realtimeanalytics.yext.com",SANDBOX:"https://sandbox-realtimeanalytics.yext.com"},EU:{PRODUCTION:void 0,SANDBOX:void 0}};function gy(t,e){var n=e?ad(t):_y(t);return"".concat(n,"/store_pagespixel")}function py(){var t=ad("US","PRODUCTION");return"".concat(t,"/conversiontracking/conversion")}function my(){var t=ad("US","PRODUCTION");return"".concat(t,"/listings")}function ad(t,e){return rp(hy,t,e,!0)}function _y(t,e){return rp(fy,t,e)}function rp(t,e,n,r){e===void 0&&(e="US"),n===void 0&&(n="PRODUCTION"),r===void 0&&(r=!1);var c=t[e][n];if(!c)throw Error('The combination of the environment: "'.concat(n,'", region: "').concat(e,'",')+'and conversionTrackingEnabled: "'.concat(r,'" is unsupported.'));return c}var pf;(function(t){t.AllTabNavigation="ALL_TAB_NAVIGATION",t.VerticalTabNavigation="VERTICAL_TAB_NAVIGATION",t.ScrollToBottomOfPage="SCROLL_TO_BOTTOM_OF_PAGE",t.QuestionFocus="QUESTION_FOCUS",t.QuestionSubmit="QUESTION_SUBMIT",t.RowExpand="ROW_EXPAND",t.RowCollapse="ROW_COLLAPSE",t.ThumbsUp="THUMBS_UP",t.ThumbsDown="THUMBS_DOWN",t.VoiceStart="VOICE_START",t.VoiceStop="VOICE_STOP",t.SearchBarImpression="SEARCH_BAR_IMPRESSION",t.SearchClearButton="SEARCH_CLEAR_BUTTON",t.Paginate="PAGINATE",t.AutocompleteSelection="AUTO_COMPLETE_SELECTION",t.VerticalViewAll="VERTICAL_VIEW_ALL",t.CtaClick="CTA_CLICK",t.TitleClick="TITLE_CLICK",t.TapToCall="TAP_TO_CALL",t.OrderNow="ORDER_NOW",t.AddToCart="ADD_TO_CART",t.ApplyNow="APPLY_NOW",t.DrivingDirections="DRIVING_DIRECTIONS",t.ViewWebsite="VIEW_WEBSITE",t.Email="EMAIL",t.BookAppointment="BOOK_APPOINTMENT",t.Rsvp="RSVP",t.ResultsHidden="RESULTS_HIDDEN",t.ResultsUnhidden="RESULTS_UNHIDDEN",t.FollowUpQuery="FOLLOW_UP_QUERY"})(pf||(pf={}));var Xr;(function(t){t.PageView="PAGE_VIEW",t.CTA="CTA_CLICK",t.Website="WEBSITE",t.DrivingDirection="DRIVING_DIRECTIONS",t.PhoneCall="CALL"})(Xr||(Xr={}));Xr.CTA;Xr.Website;Xr.DrivingDirection;var yy={eventType:Xr.PageView};Xr.PhoneCall;var mf;(function(t){t.Production="PRODUCTION",t.Sandbox="SANDBOX"})(mf||(mf={}));var _f;(function(t){t.US="US",t.EU="EU"})(_f||(_f={}));var ql="_yfpc",Gc="__temp__",ip="y_source";function op(){return Date.now()+Math.floor(1e3*Math.random())}var Yc=function(t,e,n,r){function c(d){return d instanceof n?d:new n(function(f){f(d)})}return new(n||(n=Promise))(function(d,f){function p(T){try{x(r.next(T))}catch(O){f(O)}}function C(T){try{x(r.throw(T))}catch(O){f(O)}}function x(T){T.done?d(T.value):c(T.value).then(p,C)}x((r=r.apply(t,e||[])).next())})},Vc=function(t,e){var n={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},r,c,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(x){return function(T){return C([x,T])}}function C(x){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,c&&(d=x[0]&2?c.return:x[0]?c.throw||((d=c.return)&&d.call(c),0):c.next)&&!(d=d.call(c,x[1])).done)return d;switch(c=0,d&&(x=[x[0]&2,d.value]),x[0]){case 0:case 1:d=x;break;case 4:return n.label++,{value:x[1],done:!1};case 5:n.label++,c=x[1],x=[0];continue;case 7:x=n.ops.pop(),n.trys.pop();continue;default:if(d=n.trys,!(d=d.length>0&&d[d.length-1])&&(x[0]===6||x[0]===2)){n=0;continue}if(x[0]===3&&(!d||x[1]>d[0]&&x[1]<d[3])){n.label=x[1];break}if(x[0]===6&&n.label<d[1]){n.label=d[1],d=x;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(x);break}d[2]&&n.ops.pop(),n.trys.pop();continue}x=e.call(t,n)}catch(T){x=[6,T],c=0}finally{r=d=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}},Cy=function(){function t(e,n){this.httpRequesterService=e,this.debug=n,this._debug=n,this._conversionTrackingEndpoint=py(),this._conversionTrackingListingsEndpoint=my()}return t.prototype.printEvent=function(e,n){this._debug&&console.log("%c[YextAnalytics]%c- Tracked ".concat(n," event: ").concat(e),"background: white; color: blue;","")},t.prototype.handleRequest=function(e){return Yc(this,void 0,void 0,function(){var n,r;return Vc(this,function(c){switch(c.label){case 0:return[4,this.httpRequesterService.get(e.toString())];case 1:return n=c.sent(),n.status!==200&&!(n.type==="opaqueredirect"||n.type==="opaque")?[4,n.text()]:[3,3];case 2:throw r=c.sent(),new Error(r);case 3:return[2]}})})},t.formatBaseEvent=function(e,n){n.set(ql,e.cookieId),e.referrer&&n.set("referrer",e.referrer),n.set("v",op().toString()),n.set("location",e.location)},t.prototype.trackConversion=function(e){return Yc(this,void 0,void 0,function(){var n,r;return Vc(this,function(c){switch(c.label){case 0:return n=new URL(this._conversionTrackingEndpoint),r=new URLSearchParams,r.set("cid",e.cid),e.cv&&r.set("cv",e.cv),t.formatBaseEvent(e,r),n.search=r.toString(),[4,this.handleRequest(n.toString())];case 1:return c.sent(),this.printEvent(e.cid,"Conversion"),[2]}})})},t.prototype.trackListings=function(e){return Yc(this,void 0,void 0,function(){var n,r;return Vc(this,function(c){switch(c.label){case 0:return n=new URL(this._conversionTrackingListingsEndpoint),r=new URLSearchParams,r.set(ip,e.source),t.formatBaseEvent(e,r),n.search=r.toString(),[4,this.handleRequest(n.toString())];case 1:return c.sent(),this.printEvent(e.source,"Listings Click"),[2]}})})},t.prototype.setDebugEnabled=function(e){this._debug=e},t}(),yf=function(t,e,n,r){function c(d){return d instanceof n?d:new n(function(f){f(d)})}return new(n||(n=Promise))(function(d,f){function p(T){try{x(r.next(T))}catch(O){f(O)}}function C(T){try{x(r.throw(T))}catch(O){f(O)}}function x(T){T.done?d(T.value):c(T.value).then(p,C)}x((r=r.apply(t,e||[])).next())})},Cf=function(t,e){var n={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},r,c,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(x){return function(T){return C([x,T])}}function C(x){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,c&&(d=x[0]&2?c.return:x[0]?c.throw||((d=c.return)&&d.call(c),0):c.next)&&!(d=d.call(c,x[1])).done)return d;switch(c=0,d&&(x=[x[0]&2,d.value]),x[0]){case 0:case 1:d=x;break;case 4:return n.label++,{value:x[1],done:!1};case 5:n.label++,c=x[1],x=[0];continue;case 7:x=n.ops.pop(),n.trys.pop();continue;default:if(d=n.trys,!(d=d.length>0&&d[d.length-1])&&(x[0]===6||x[0]===2)){n=0;continue}if(x[0]===3&&(!d||x[1]>d[0]&&x[1]<d[3])){n.label=x[1];break}if(x[0]===6&&n.label<d[1]){n.label=d[1],d=x;break}if(d&&n.label<d[2]){n.label=d[2],n.ops.push(x);break}d[2]&&n.ops.pop(),n.trys.pop();continue}x=e.call(t,n)}catch(T){x=[6,T],c=0}finally{r=d=0}if(x[0]&5)throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}},Ny="sites",Mn;(function(t){t.BusinessId="businessids",t.Product="product",t.SiteId="siteId",t.IsStaging="isStaging",t.CacheBuster="v",t.UrlPath="pageurl",t.Referrer="pagesReferrer",t.EventType="eventType",t.PageSetId="pageSetId",t.EntityInternalId="ids",t.DirectoryId="directoryId",t.SearchId="searchId",t.StaticPageId="staticPageId",t.PageType="pageType",t.VisitorId="visitorId",t.VisitorMethod="visitorIdMethod",t.PageDomain="pageDomain"})(Mn||(Mn={}));var nl=new Map;nl.set(Xr.PageView,"pageview");nl.set(Xr.CTA,"calltoactionclick");nl.set(Xr.PhoneCall,"phonecall");nl.set(Xr.DrivingDirection,"drivingdirection");nl.set(Xr.Website,"clicktowebsite");function Ey(t){var e=nl.get(t);return typeof e=="string"?e:t}var Ty=function(){function t(e,n){this.config=e,this.httpRequesterService=n,this.setVisitor(e.visitor),this._debug=e.debug,this._conversionTracker=new Cy(this.httpRequesterService,this._debug),this._hasTrackedListings=!1,this._region=e.region;try{this._pageUrl=new URL(e.pageUrl)}catch{throw new Error("pageUrl property must be a valid URL, was: '".concat(e.pageUrl,"'"))}if(e.pageDomain)try{this._pageDomain=new URL(e.pageDomain)}catch{console.warn("pageDomain '".concat(e.pageDomain,"' is not a valid URL."),"It will not be included as a query param sent to the API.")}}return t.prototype.printEvent=function(e){this._debug&&console.log("%c[YextAnalytics]%c- Tracked Pages event: ".concat(e.eventType),"background: white; color: blue;","")},t.prototype.urlParameters=function(e){var n=new URLSearchParams;return n.set(Mn.BusinessId,this.config.businessId.toString()),n.set(Mn.Product,Ny),n.set(Mn.SiteId,this.config.siteId.toString()),n.set(Mn.IsStaging,(!this.config.production).toString()),n.set(Mn.EventType,Ey(e.eventType)),n.set(Mn.PageType,this.config.pageType.name),this.config.pageType.name==="entity"?(n.set(Mn.PageSetId,this.config.pageType.pageSetId),n.set(Mn.EntityInternalId,this.config.pageType.id.toString())):this.config.pageType.name==="directory"?(n.set(Mn.DirectoryId,this.config.pageType.directoryId),n.set(Mn.EntityInternalId,this.config.pageType.id.toString())):this.config.pageType.name==="locator"?n.set(Mn.SearchId,this.config.pageType.searchId):Mn.StaticPageId in this.config.pageType&&n.set(Mn.StaticPageId,this.config.pageType.staticPageId),n.set(Mn.CacheBuster,op().toString()),n.set(Mn.UrlPath,this._pageUrl.pathname),n.set(Mn.Referrer,this.config.referrer),this._pageDomain&&n.set(Mn.PageDomain,this._pageDomain.toString()),this._conversionTrackingEnabled&&this._cookieID&&n.set(ql,this._cookieID),this._visitor&&(n.set(Mn.VisitorId,this._visitor.id),this._visitor.idMethod&&n.set(Mn.VisitorMethod,this._visitor.idMethod)),n},t.prototype.pageView=function(){return yf(this,void 0,void 0,function(){var e;return Cf(this,function(n){switch(n.label){case 0:return e=this._pageUrl.searchParams.get(ip),this._conversionTrackingEnabled&&this._cookieID&&!this._hasTrackedListings&&e?[4,this._conversionTracker.trackListings({cookieId:this._cookieID,location:this._pageUrl.toString(),source:e})]:[3,2];case 1:n.sent(),this._hasTrackedListings=!0,n.label=2;case 2:return[2,this.track(yy)]}})})},t.prototype.track=function(e,n){return yf(this,void 0,void 0,function(){var r,c,d,f;return Cf(this,function(p){switch(p.label){case 0:return r=gy(this._region,this._conversionTrackingEnabled),c=new URL(r),c.search=this.urlParameters(e).toString(),[4,this.httpRequesterService.get(c.toString())];case 1:return d=p.sent(),d.status!==200&&!(d.type=="opaque"||d.type=="opaqueredirect")?[4,d.text()]:[3,3];case 2:throw f=p.sent(),new Error(f);case 3:return this.printEvent(e),this._conversionTrackingEnabled&&this._cookieID&&n?[4,this._conversionTracker.trackConversion({cid:n.cid,cv:n.cv,cookieId:this._cookieID,location:this._pageUrl.toString()})]:[3,5];case 4:p.sent(),p.label=5;case 5:return[2]}})})},t.prototype.setDebugEnabled=function(e){this._debug=e,this._conversionTracker&&this._conversionTracker.setDebugEnabled(e)},t.prototype.setVisitor=function(e){this._visitor=e},t.prototype.setConversionTrackingEnabled=function(e,n){this._conversionTrackingEnabled=e,this._cookieID=n},t}();var xy=function(){function t(e,n){e===void 0&&(e=window),n===void 0&&(n=document),this._outerWindow=e,this._outerDocument=n}return t.prototype.setAndGetYextCookie=function(){var e=this.fetchCookie();return e||(e=t.generateRandomCookie().toString()),this.setCookieAndRemoveOldCookies(e),e},t.generateRandomCookie=function(){return Math.floor(Math.random()*new Date().getTime())},t.prototype.fetchCookie=function(){var e=this,n="",r=function(c){if(e.canSetCookieWithDomain(c)){var d=e.removeCookieByDomain(c);return d&&(n=d,e.setCookie(n,c)),!0}};return this.forEachDomainIncreasingSpecificity(r),n||r(""),n},t.prototype.forEachDomainIncreasingSpecificity=function(e){for(var n=!1,r=this._outerDocument.location.hostname.split(".").reverse(),c="",d=0;d<r.length;d++)if(c="."+r[d]+c,e(c)){n=!0;break}n||e("")},t.prototype.removeCookieByDomain=function(e){var n=this.persistentCookies();this.clearCookie(e);var r=this.persistentCookies();return r.length<n.length&&t.listDifference(n,r)[0]||""},t.listDifference=function(e,n){for(var r=Array.from(e),c=0;c<n.length;c++){var d=r.indexOf(n[c]);d!==-1&&r.splice(d,1)}return r},t.prototype.persistentCookies=function(){return this.allCookies().filter(function(e){return e!==Gc})},t.prototype.allCookies=function(){var e=[];return this.forEachCookieNameValue(function(n,r){n===ql&&e.push(r)}),e},t.prototype.forEachCookieNameValue=function(e){this._outerDocument.cookie.split(";").forEach(function(n){var r=n.split("="),c=r[0],d=r[1];c&&d&&e(c.trim(),d.trim())})},t.prototype.setCookieAndRemoveOldCookies=function(e){var n=this,r=!1,c=this.allCookies().length,d=0;this.forEachDomainIncreasingSpecificity(function(f){if(r?n.removeCookieByDomain(f)&&d++:n.canSetCookieWithDomain(f)&&(n.removeCookieByDomain(f)&&d++,n.setCookie(e,f),r=!0),d>=c&&r)return!0})},t.prototype.canSetCookieWithDomain=function(e){var n=this.removeCookieByDomain(e),r=this.allCookies();this.setCookie(Gc,e);var c=this.allCookies();return r.length<c.length?(n?this.setCookie(n,e):this.clearCookie(e),!0):!1},t.prototype.setCookie=function(e,n){this._outerDocument.cookie=this.formatCookie(ql,e,n)},t.prototype.formatCookie=function(e,n,r,c){c===void 0&&(c="/");var d=e+"="+n,f=new Date;return f.setTime(f.getTime()+90*24*60*60*1e3),d+=";path="+c,d+=";expires="+f.toUTCString(),r&&(d+=";domain="+r),d+=";samesite=None;",this._outerWindow.location.protocol==="https:"&&(d+=" Secure "),d},t.prototype.clearCookie=function(e,n){e===void 0&&(e=""),n===void 0&&(n="/");var r=new Date(0),c=ql+"="+Gc;c+=";path="+n,c+=";expires="+r.toUTCString(),e&&(c+=";domain="+e+";"),c+=";samesite=None;",this._outerWindow.location.protocol==="https:"&&(c+=" Secure "),this._outerDocument.cookie=c},t}();function vy(t){var e=new dy;return new Ty(t,e)}function sp(t){return t?t.toLowerCase().trim().replace(/\s/g,""):""}function Gu(t,e){return[t,e].filter(n=>!!n).map(n=>sp(n)).join("_")}class lp{constructor(e,n,r,c=[]){$n(this,"_optedIn");$n(this,"_conversionTrackingEnabled",!1);$n(this,"_cookieManager");$n(this,"_analyticsReporter");$n(this,"_pageViewFired",!1);$n(this,"_enableDebugging",!1);this.templateData=e,this.pageDomain=r,this.productionDomains=c,this._optedIn=!n,this.makeReporter(),this.pageView()}calculatePageType(){var c,d,f,p;const e=!!((d=(c=this.templateData.document)==null?void 0:c.__)!=null&&d.staticPage),n=!!((p=(f=this.templateData.document)==null?void 0:f.__)!=null&&p.entityPageSet);let r;if(e)r={name:"static",staticPageId:this.templateData.document.__.name};else if(n)r={name:"entity",pageSetId:this.templateData.document.__.name,id:this.templateData.document.uid};else throw new Error("invalid document type");return r}makeReporter(){if(Mo().name!=="browser"||!this._optedIn)return;const e=cy(...this.productionDomains);this._analyticsReporter=vy({businessId:this.templateData.document.businessId,pageType:this.calculatePageType(),pageUrl:window.location.href,production:e,referrer:document.referrer,siteId:this.templateData.document.siteId,pageDomain:this.pageDomain}),this.setDebugEnabled(this._enableDebugging)}canTrack(){return Mo().name==="browser"&&this._optedIn&&!!this._analyticsReporter}setupConversionTracking(){var e;this._cookieManager=new xy,(e=this._analyticsReporter)==null||e.setConversionTrackingEnabled(!0,this._cookieManager.setAndGetYextCookie())}enableTrackingCookie(){this._conversionTrackingEnabled=!0,this.canTrack()&&this.setupConversionTracking()}identify(e){var n;this.canTrack()&&((n=this._analyticsReporter)==null||n.setVisitor(e))}async optIn(){this._optedIn=!0,this.makeReporter(),this._conversionTrackingEnabled&&!this._cookieManager&&this.setupConversionTracking(),this._pageViewFired||await this.pageView()}async pageView(){var e;if(!this.canTrack())return Promise.resolve(void 0);await((e=this._analyticsReporter)==null?void 0:e.pageView()),this._pageViewFired=!0}async track(e,n){var r;if(!this.canTrack())return Promise.resolve();await((r=this._analyticsReporter)==null?void 0:r.track({eventType:sp(e)},n))}getDebugEnabled(){return this._enableDebugging}setDebugEnabled(e){var n;this._enableDebugging=e,(n=this._analyticsReporter)==null||n.setDebugEnabled(e)}trackClick(e,n){return r=>{if(!this.canTrack())return Promise.resolve();if(r.target===null||r.defaultPrevented)return this.track(e,n);const c=r.target;if(c.href===null||c.href===void 0)return this.track(e,n);const d=new URL(c.href);if(d.protocol==="mailto:"||d.protocol==="tel:"||d.protocol==="javascript:"||d.hostname===window.location.hostname)return this.track(e,n);if(c.target&&!c.target.match(/^_(self|parent|top)$/i)||r.ctrlKey||r.shiftKey||r.metaKey)return this.track(e,n);r.preventDefault();const p=()=>{window.location.assign(d)},C=new Promise(x=>{setTimeout(()=>{x()},1e3)});return Promise.race([this.track(e,n),C]).then(p).catch(p)}}}const cd=rt.createContext(null),Yu=rt.createContext({name:""}),ud=()=>rt.useContext(Yu).name;function Sy(t){var c;const e=ud(),[n]=rt.useState({name:Gu(e,t.name)});return((c=rl())==null?void 0:c.getDebugEnabled())?at.jsx("section",{"data-ya-scope":n.name,children:at.jsx(Yu.Provider,{value:n,children:t.children})}):at.jsx(Yu.Provider,{value:n,children:t.children})}function rl(){const t=rt.useContext(cd);if(!t)return t;Mo().name==="browser"&&!window.setAnalyticsOptIn&&(window.setAnalyticsOptIn=async()=>{await t.optIn()});const e=ud();return{trackClick(n,r){return t.trackClick(Gu(e,n),r)},getDebugEnabled(){return t.getDebugEnabled()},setDebugEnabled(n){return t.setDebugEnabled(n)},enableTrackingCookie(){return t.enableTrackingCookie()},identify(n){return t.identify(n)},optIn(){return t.optIn()},pageView(){return t.pageView()},track(n,r){return t.track(Gu(e,n),r)}}}const wy=()=>{var t;return(t=rl())==null?void 0:t.track},Oy=()=>{var t;return(t=rl())==null?void 0:t.pageView},Dy=()=>{var t;return(t=rl())==null?void 0:t.identify},by=rt.lazy(()=>Promise.resolve().then(()=>require("./debugger-x0jOMtzI.cjs")));function Ry(t){var O;const{children:e,requireOptIn:n,enableTrackingCookie:r,enableDebugging:c,templateData:d,pageDomain:f,productionDomains:p}=t,C=rt.useRef(null);C.current===null&&(C.current=new lp(d,n,f,p));const x=C.current;r&&x.enableTrackingCookie();let T=My();return Mo().name==="node"&&(T=T||((O=process.env)==null?void 0:O.NODE_ENV)==="development"),x.setDebugEnabled(c??T),at.jsxs(at.Fragment,{children:[at.jsx(cd.Provider,{value:x,children:e}),(c??T)&&Mo().name==="browser"?at.jsx(rt.Suspense,{fallback:at.jsx(at.Fragment,{}),children:at.jsx(by,{})}):null]})}function My(){return Mo().name!=="browser"||typeof window===void 0?!1:!!new URL(window.location.href).searchParams.get("xYextDebug")}const Ro={INTRINSIC:"intrinsic",FIXED:"fixed",ASPECT:"aspect",FILL:"fill"},Ay=t=>{const e=t.protocol.slice(0,-1);if(e!=="http"&&e!=="https"){console.error(`Invalid scheme: ${t}`);return}const n=t.hostname;let r;if(n==="a.mktgcdn.com")r="us";else{if(n.replace("a.","").replace(".mktgcdn.com","")!=="eu"){console.error(`Invalid host: ${t}`);return}r="eu"}if(!t.pathname.startsWith("/f")){console.error(`Invalid path: ${t}`);return}const c=t.pathname.replace(/^\//,"").split("/");if(c.length<2||c.length>3){console.error(`Invalid path: ${t}`);return}let d;if(c[0]==="f")d="prod";else switch(c[0].replace("f-","")){case"sandbox":{d="sbx";break}case"qa":{d="qa";break}case"dev":{d="dev";break}default:{console.error(`Invalid path: ${t}`);return}}if(r==="eu"&&(d==="dev"||d==="sbx")){console.error(`Invalid path: ${t}`);return}let f;if(c.length===3&&(f=parseInt(c[1]),Number.isNaN(f))){console.error(`Invalid account id: ${t}`);return}const p=c[c.length-1].split("."),C=p.length===2?`.${p[1]}`:"",x=p[0];return{scheme:e,partition:r,env:d,accountId:f,contentHash:x,extension:C}},ky=(t,e,n)=>{const r=`https://dyn${t.partition==="us"?"":`.${t.partition}`}.mktgcdn.com`;let c="f";switch(t.env){case"prod":break;case"sbx":{c+="-sandbox";break}default:c+=`-${t.env.toString()}`}const d=t.accountId!==void 0?`${t.accountId}/`:"";return`${r}/${c}/${d}${t.contentHash}${t.extension}/width=${Math.round(e)},height=${Math.round(n)}`},Ly=t=>{const e=t.protocol.slice(0,-1);if(e!=="http"&&e!=="https"){console.error(`Invalid scheme: ${t}`);return}if(t.hostname!=="a.mktgcdn.com"){console.error(`Invalid host: ${t}`);return}if(!t.pathname.startsWith("/p")){console.error(`Invalid path: ${t}`);return}const n=t.pathname.replace(/^\//,"").split("/");if(n.length<3||n.length>4){console.error(`Invalid path: ${t}`);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: ${t}`);return}}const c=n[1];let d;if(n.length===4){if(!n[2].includes(".")){console.error(`Invalid aspect ratio: ${t}`);return}if(d=parseFloat(n[2]),Number.isNaN(d)||n[2].split(".")[1].length!==4){console.error(`Invalid aspect ratio: ${t}`);return}}const f=n[n.length-1].split("."),p=f.length===2?`.${f[1]}`:"",C=f[0];return{scheme:e,env:r,contentHash:c,aspectRatio:d,name:C,extension:p}},Iy=(t,e,n)=>{const r="https://dyn.mktgcdn.com";let c="p";switch(t.env){case"prod":break;case"sbx":{c+="-sandbox";break}default:c+=`-${t.env.toString()}`}return`${r}/${c}/${t.contentHash}/width=${Math.round(e)},height=${Math.round(n)}`},Vu=(t,e,n)=>{if(!ap(t)){console.error(`Invalid image url: ${t}.`);return}const r=new URL(t);if(r.pathname.startsWith("/p")){const c=Ly(r);if(c)return Iy(c,e,n)}else if(r.pathname.startsWith("/f")){const c=Ay(r);if(c)return ky(c,e,n)}return t},ap=t=>{let e;try{e=new URL(t)}catch{return!1}return e.protocol==="http:"||e.protocol==="https:"},Py=({image:t,className:e,width:n,height:r,aspectRatio:c,layout:d=Ro.INTRINSIC,placeholder:f,imgOverrides:p,style:C={},loading:x="lazy"})=>{const T=rt.useRef(null),[O,M]=rt.useState(!1),A="image"in t?t.image:t;rt.useEffect(()=>{var ce;(ce=T.current)!=null&&ce.complete&&M(!0)},[]),$y(d,A.width,A.height,n,r,c);const v=Math.abs(A.width);v||console.warn("Invalid image width.");const w=Math.abs(A.height);if(w||console.warn("Invalid image height."),!ap(A.url))return console.error(`Invalid image url: ${A.url}`),at.jsx(at.Fragment,{children:f!=null&&f});const P=n&&n>0?n:void 0,K=r&&r>0?r:void 0,{src:$,imgStyle:W,widths:H}=Fy(d,v,w,C,A.url,P,K,c),z=H.map(ce=>`${Vu(A.url,ce,w/v*ce)} ${ce}w`).join(", "),te=[640,768,1024,1280,1536],re=H.map((ce,q)=>q===H.length-1?`${ce}px`:`(max-width: ${te[q]}px) ${ce}px`).join(", ");return at.jsxs(at.Fragment,{children:[!O&&f!=null&&f,at.jsx("img",{ref:T,style:W,src:$,className:e,width:P,height:K,srcSet:z,sizes:re,loading:x,alt:A.alternateText||"",...p})]})},$y=(t,e,n,r,c,d)=>{if(e<0&&console.warn(`Invalid image width: ${e}.`),n<0&&console.warn(`Invalid image height: ${n}.`),t===Ro.FIXED){if(!r&&!c){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}.`),c&&c<0&&console.warn(`Using fixed layout but height is invalid: ${c}.`);return}(r||c)&&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."),t===Ro.ASPECT&&!d&&console.warn("Using aspect layout but aspectRatio is not passed as a prop.")},Fy=(t,e,n,r,c,d,f,p)=>{let C=[100,320,640,960,1280,1920],x=Vu(c,500,500);const T={...r};switch(T.objectFit=T.objectFit||"cover",T.objectPosition=T.objectPosition||"center",t){case Ro.INTRINSIC:T.maxWidth=e,T.width="100%",T.aspectRatio=p?`${p}`:`${e} / ${n}`;break;case Ro.FIXED:{const{fixedWidth:O,fixedHeight:M,fixedWidths:A}=By(e,n,C,d,f);T.width=O,T.height=M,C=A,x=Vu(c,O,M);break}case Ro.ASPECT:T.aspectRatio=p?`${p}`:`${e} / ${n}`;break;case Ro.FILL:T.width="100%",T.aspectRatio=p?`${p}`:`${e} / ${n}`;break;default:console.warn(`Unrecognized layout: ${t}.`);break}return{src:x,imgStyle:T,widths:C}},By=(t,e,n,r,c)=>r&&c?{fixedWidth:r,fixedHeight:c,fixedWidths:[r]}:r?{fixedWidth:r,fixedHeight:r*e/t,fixedWidths:[r]}:c?{fixedWidth:c/e*t,fixedHeight:c,fixedWidths:[c/e*t]}:{fixedWidth:t,fixedHeight:e,fixedWidths:n};var cp={exports:{}};/*!
28
28
  Copyright (c) 2018 Jed Watson.
29
29
  Licensed under the MIT License (MIT), see
30
30
  http://jedwatson.github.io/classnames
@@ -100,4 +100,4 @@ Check the top-level render call using <`+et+">.")}return Ge}}function gr(ye,Ge){
100
100
  `});const x={type:"element",tagName:"li",properties:d,children:f};return t.patch(e,x),t.applyData(e,x)}function JE(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=Qp(n[r])}return e}function Qp(t){const e=t.spread;return e??t.children.length>1}function XE(t,e){const n={},r=t.all(e);let c=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++c<r.length;){const f=r[c];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:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,d),t.applyData(e,d)}function QE(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function eT(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function tT(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const wd=em("start"),Od=em("end");function nT(t){return{start:wd(t),end:Od(t)}}function em(t){return e;function e(n){const r=n&&n.position&&n.position[t]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function rT(t,e){const n=t.all(e),r=n.shift(),c=[];if(r){const f={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],f),c.push(f)}if(n.length>0){const f={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},p=wd(e.children[1]),C=Od(e.children[e.children.length-1]);p.line&&C.line&&(f.position={start:p,end:C}),c.push(f)}const d={type:"element",tagName:"table",properties:{},children:t.wrap(c,!0)};return t.patch(e,d),t.applyData(e,d)}function iT(t,e,n){const r=n?n.children:void 0,d=(r?r.indexOf(e):1)===0?"th":"td",f=n&&n.type==="table"?n.align:void 0,p=f?f.length:e.children.length;let C=-1;const x=[];for(;++C<p;){const O=e.children[C],M={},A=f?f[C]:void 0;A&&(M.align=A);let v={type:"element",tagName:d,properties:M,children:[]};O&&(v.children=t.all(O),t.patch(O,v),v=t.applyData(e,v)),x.push(v)}const T={type:"element",tagName:"tr",properties:{},children:t.wrap(x,!0)};return t.patch(e,T),t.applyData(e,T)}function oT(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const _g=9,yg=32;function sT(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),c=0;const d=[];for(;r;)d.push(Cg(e.slice(c,r.index),c>0,!0),r[0]),c=r.index+r[0].length,r=n.exec(e);return d.push(Cg(e.slice(c),c>0,!1)),d.join("")}function Cg(t,e,n){let r=0,c=t.length;if(e){let d=t.codePointAt(r);for(;d===_g||d===yg;)r++,d=t.codePointAt(r)}if(n){let d=t.codePointAt(c-1);for(;d===_g||d===yg;)c--,d=t.codePointAt(c-1)}return c>r?t.slice(r,c):""}function lT(t,e){const n={type:"text",value:sT(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function aT(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const cT={blockquote:$E,break:FE,code:BE,delete:HE,emphasis:WE,footnoteReference:Jp,footnote:KE,heading:UE,html:zE,imageReference:GE,image:YE,inlineCode:VE,linkReference:jE,link:qE,listItem:ZE,list:XE,paragraph:QE,root:eT,strong:tT,table:rT,tableCell:oT,tableRow:iT,text:lT,thematicBreak:aT,toml:qa,yaml:qa,definition:qa,footnoteDefinition:qa};function qa(){return null}const tm=function(t){if(t==null)return hT;if(typeof t=="string")return fT(t);if(typeof t=="object")return Array.isArray(t)?uT(t):dT(t);if(typeof t=="function")return Cc(t);throw new Error("Expected function, string, or object as test")};function uT(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=tm(t[n]);return Cc(r);function r(...c){let d=-1;for(;++d<e.length;)if(e[d].call(this,...c))return!0;return!1}}function dT(t){return Cc(e);function e(n){let r;for(r in t)if(n[r]!==t[r])return!1;return!0}}function fT(t){return Cc(e);function e(n){return n&&n.type===t}}function Cc(t){return e;function e(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&t.call(this,n,...r))}}function hT(){return!0}const gT=!0,Ng=!1,pT="skip",mT=function(t,e,n,r){typeof e=="function"&&typeof n!="function"&&(r=n,n=e,e=null);const c=tm(e),d=r?-1:1;f(t,void 0,[])();function f(p,C,x){const T=p&&typeof p=="object"?p:{};if(typeof T.type=="string"){const M=typeof T.tagName=="string"?T.tagName:typeof T.name=="string"?T.name:void 0;Object.defineProperty(O,"name",{value:"node ("+(p.type+(M?"<"+M+">":""))+")"})}return O;function O(){let M=[],A,v,w;if((!e||c(p,C,x[x.length-1]||null))&&(M=_T(n(p,x)),M[0]===Ng))return M;if(p.children&&M[0]!==pT)for(v=(r?p.children.length:-1)+d,w=x.concat(p);v>-1&&v<p.children.length;){if(A=f(p.children[v],v,w)(),A[0]===Ng)return A;v=typeof A[1]=="number"?A[1]:v+d}return M}}};function _T(t){return Array.isArray(t)?t:typeof t=="number"?[gT,t]:[t]}const Dd=function(t,e,n,r){typeof e=="function"&&typeof n!="function"&&(r=n,n=e,e=null),mT(t,e,c,r);function c(d,f){const p=f[f.length-1];return n(d,p?p.children.indexOf(d):null,p)}};function yT(t){return!t||!t.position||!t.position.start||!t.position.start.line||!t.position.start.column||!t.position.end||!t.position.end.line||!t.position.end.column}const Eg={}.hasOwnProperty;function CT(t){const e=Object.create(null);if(!t||!t.type)throw new Error("mdast-util-definitions expected node");return Dd(t,"definition",r=>{const c=Tg(r.identifier);c&&!Eg.call(e,c)&&(e[c]=r)}),n;function n(r){const c=Tg(r);return c&&Eg.call(e,c)?e[c]:null}}function Tg(t){return String(t||"").toUpperCase()}const ac={}.hasOwnProperty;function NT(t,e){const n=e||{},r=n.allowDangerousHtml||!1,c={};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={...cT,...n.handlers},f.definition=CT(t),f.footnoteById=c,f.footnoteOrder=[],f.footnoteCounts={},f.patch=ET,f.applyData=TT,f.one=p,f.all=C,f.wrap=vT,f.augment=d,Dd(t,"footnoteDefinition",x=>{const T=String(x.identifier).toUpperCase();ac.call(c,T)||(c[T]=x)}),f;function d(x,T){if(x&&"data"in x&&x.data){const O=x.data;O.hName&&(T.type!=="element"&&(T={type:"element",tagName:"",properties:{},children:[]}),T.tagName=O.hName),T.type==="element"&&O.hProperties&&(T.properties={...T.properties,...O.hProperties}),"children"in T&&T.children&&O.hChildren&&(T.children=O.hChildren)}if(x){const O="type"in x?x:{position:x};yT(O)||(T.position={start:wd(O),end:Od(O)})}return T}function f(x,T,O,M){return Array.isArray(O)&&(M=O,O={}),d(x,{type:"element",tagName:T,properties:O||{},children:M||[]})}function p(x,T){return nm(f,x,T)}function C(x){return io(f,x)}}function ET(t,e){t.position&&(e.position=nT(t))}function TT(t,e){let n=e;if(t&&t.data){const r=t.data.hName,c=t.data.hChildren,d=t.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&&c!==null&&c!==void 0&&(n.children=c)}return n}function nm(t,e,n){const r=e&&e.type;if(!r)throw new Error("Expected node, got `"+e+"`");return ac.call(t.handlers,r)?t.handlers[r](t,e,n):t.passThrough&&t.passThrough.includes(r)?"children"in e?{...e,children:io(t,e)}:e:t.unknownHandler?t.unknownHandler(t,e,n):xT(t,e)}function io(t,e){const n=[];if("children"in e){const r=e.children;let c=-1;for(;++c<r.length;){const d=nm(t,r[c],e);if(d){if(c&&r[c-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 xT(t,e){const n=e.data||{},r="value"in e&&!(ac.call(n,"hProperties")||ac.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:io(t,e)};return t.patch(e,r),t.applyData(e,r)}function vT(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:`
101
101
  `});++r<t.length;)r&&n.push({type:"text",value:`
102
102
  `}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:`
103
- `}),n}const ST=(t,e)=>t(e,"i",io(t,e)),wT=(t,e)=>t(e,"b",io(t,e)),OT=(t,e)=>t(e,"u",io(t,e)),DT=(t,e)=>t(e,"s",io(t,e)),bT=(t,e)=>t(e,"sub",io(t,e)),RT=(t,e)=>t(e,"sup",io(t,e)),MT={emphasis:ST,strong:wT,underline:OT,strikethrough:DT,subscript:bT,superscript:RT},AT=t=>{const[e,n]=rt.useState();let r;return rt.useEffect(()=>{(async()=>{if(!r)try{r=(await Promise.resolve().then(()=>require("./index-DpGO5dvX.cjs"))).default}catch{throw new Error("Failed to import React Markdown, cannot properly render LegacyRichText.")}const d=r({children:t.markdown,remarkPlugins:[PE],remarkRehypeOptions:{handlers:MT}});n(d)})()},[t.markdown]),e||null};class ps extends Error{}class kT extends ps{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class LT extends ps{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class IT extends ps{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Zs extends ps{}class rm extends ps{constructor(e){super(`Invalid unit ${e}`)}}class vr extends ps{}class wo extends ps{constructor(){super("Zone is an abstract class")}}const it="numeric",mi="short",Lr="long",cc={year:it,month:it,day:it},im={year:it,month:mi,day:it},PT={year:it,month:mi,day:it,weekday:mi},om={year:it,month:Lr,day:it},sm={year:it,month:Lr,day:it,weekday:Lr},lm={hour:it,minute:it},am={hour:it,minute:it,second:it},cm={hour:it,minute:it,second:it,timeZoneName:mi},um={hour:it,minute:it,second:it,timeZoneName:Lr},dm={hour:it,minute:it,hourCycle:"h23"},fm={hour:it,minute:it,second:it,hourCycle:"h23"},hm={hour:it,minute:it,second:it,hourCycle:"h23",timeZoneName:mi},gm={hour:it,minute:it,second:it,hourCycle:"h23",timeZoneName:Lr},pm={year:it,month:it,day:it,hour:it,minute:it},mm={year:it,month:it,day:it,hour:it,minute:it,second:it},_m={year:it,month:mi,day:it,hour:it,minute:it},ym={year:it,month:mi,day:it,hour:it,minute:it,second:it},$T={year:it,month:mi,day:it,weekday:mi,hour:it,minute:it},Cm={year:it,month:Lr,day:it,hour:it,minute:it,timeZoneName:mi},Nm={year:it,month:Lr,day:it,hour:it,minute:it,second:it,timeZoneName:mi},Em={year:it,month:Lr,day:it,weekday:Lr,hour:it,minute:it,timeZoneName:Lr},Tm={year:it,month:Lr,day:it,weekday:Lr,hour:it,minute:it,second:it,timeZoneName:Lr};class ta{get type(){throw new wo}get name(){throw new wo}get ianaName(){return this.name}get isUniversal(){throw new wo}offsetName(e,n){throw new wo}formatOffset(e,n){throw new wo}offset(e){throw new wo}equals(e){throw new wo}get isValid(){throw new wo}}let ku=null;class Nc extends ta{static get instance(){return ku===null&&(ku=new Nc),ku}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Mm(e,n,r)}formatOffset(e,n){return Jl(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let ic={};function FT(t){return ic[t]||(ic[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ic[t]}const BT={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function HT(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,c,d,f,p,C,x,T]=r;return[f,c,d,p,C,x,T]}function WT(t,e){const n=t.formatToParts(e),r=[];for(let c=0;c<n.length;c++){const{type:d,value:f}=n[c],p=BT[d];d==="era"?r[p]=f:kt(p)||(r[p]=parseInt(f,10))}return r}let Za={};class ro extends ta{static create(e){return Za[e]||(Za[e]=new ro(e)),Za[e]}static resetCache(){Za={},ic={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ro.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Mm(e,n,r,this.name)}formatOffset(e,n){return Jl(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=FT(this.name);let[c,d,f,p,C,x,T]=r.formatToParts?WT(r,n):HT(r,n);p==="BC"&&(c=-Math.abs(c)+1);const M=Tc({year:c,month:d,day:f,hour:C===24?0:C,minute:x,second:T,millisecond:0});let A=+n;const v=A%1e3;return A-=v>=0?v:1e3+v,(M-A)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let xg={};function KT(t,e={}){const n=JSON.stringify([t,e]);let r=xg[n];return r||(r=new Intl.ListFormat(t,e),xg[n]=r),r}let Qu={};function ed(t,e={}){const n=JSON.stringify([t,e]);let r=Qu[n];return r||(r=new Intl.DateTimeFormat(t,e),Qu[n]=r),r}let td={};function UT(t,e={}){const n=JSON.stringify([t,e]);let r=td[n];return r||(r=new Intl.NumberFormat(t,e),td[n]=r),r}let nd={};function zT(t,e={}){const{base:n,...r}=e,c=JSON.stringify([t,r]);let d=nd[c];return d||(d=new Intl.RelativeTimeFormat(t,e),nd[c]=d),d}let jl=null;function GT(){return jl||(jl=new Intl.DateTimeFormat().resolvedOptions().locale,jl)}let vg={};function YT(t){let e=vg[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,vg[t]=e}return e}function VT(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,c;try{r=ed(t).resolvedOptions(),c=t}catch{const C=t.substring(0,n);r=ed(C).resolvedOptions(),c=C}const{numberingSystem:d,calendar:f}=r;return[c,d,f]}}function jT(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function qT(t){const e=[];for(let n=1;n<=12;n++){const r=Dt.utc(2009,n,1);e.push(t(r))}return e}function ZT(t){const e=[];for(let n=1;n<=7;n++){const r=Dt.utc(2016,11,13+n);e.push(t(r))}return e}function Ja(t,e,n,r){const c=t.listingMode();return c==="error"?null:c==="en"?n(e):r(e)}function JT(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class XT{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:c,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=UT(e,p)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Ad(e,3);return Fn(n,this.padTo)}}}class QT{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let c;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const f=-1*(e.offset/60),p=f>=0?`Etc/GMT+${f}`:`Etc/GMT${f}`;e.offset!==0&&ro.create(p).valid?(c=p,this.dt=e):(c="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,c=e.zone.name):(c="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const d={...this.opts};d.timeZone=d.timeZone||c,this.dtf=ed(n,d)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.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}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ex{constructor(e,n,r){this.opts={style:"long",...r},!n&&bm()&&(this.rtf=zT(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):Nx(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const tx={firstDay:1,minimalDays:4,weekend:[6,7]};class en{static fromOpts(e){return en.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,c,d=!1){const f=e||kn.defaultLocale,p=f||(d?"en-US":GT()),C=n||kn.defaultNumberingSystem,x=r||kn.defaultOutputCalendar,T=rd(c)||kn.defaultWeekSettings;return new en(p,C,x,T,f)}static resetCache(){jl=null,Qu={},td={},nd={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:c}={}){return en.create(e,n,r,c)}constructor(e,n,r,c,d){const[f,p,C]=VT(e);this.locale=f,this.numberingSystem=n||p||null,this.outputCalendar=r||C||null,this.weekSettings=c,this.intl=jT(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=JT(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:en.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,rd(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return Ja(this,e,Lm,()=>{const r=n?{month:e,day:"numeric"}:{month:e},c=n?"format":"standalone";return this.monthsCache[c][e]||(this.monthsCache[c][e]=qT(d=>this.extract(d,r,"month"))),this.monthsCache[c][e]})}weekdays(e,n=!1){return Ja(this,e,$m,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},c=n?"format":"standalone";return this.weekdaysCache[c][e]||(this.weekdaysCache[c][e]=ZT(d=>this.extract(d,r,"weekday"))),this.weekdaysCache[c][e]})}meridiems(){return Ja(this,void 0,()=>Fm,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Dt.utc(2016,11,13,9),Dt.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Ja(this,e,Bm,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[Dt.utc(-40,1,1),Dt.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){const c=this.dtFormatter(e,n),d=c.formatToParts(),f=d.find(p=>p.type.toLowerCase()===r);return f?f.value:null}numberFormatter(e={}){return new XT(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new QT(e,this.intl,n)}relFormatter(e={}){return new ex(this.intl,this.isEnglish(),e)}listFormatter(e={}){return KT(this.intl,e)}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:Rm()?YT(this.locale):tx}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Lu=null;class dr extends ta{static get utcInstance(){return Lu===null&&(Lu=new dr(0)),Lu}static instance(e){return e===0?dr.utcInstance:new dr(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new dr(xc(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Jl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Jl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Jl(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class nx extends ta{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function bo(t,e){if(kt(t)||t===null)return e;if(t instanceof ta)return t;if(ox(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Nc.instance:n==="utc"||n==="gmt"?dr.utcInstance:dr.parseSpecifier(n)||ro.create(t)}else return fs(t)?dr.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new nx(t)}let Sg=()=>Date.now(),wg="system",Og=null,Dg=null,bg=null,Rg=60,Mg,Ag=null;class kn{static get now(){return Sg}static set now(e){Sg=e}static set defaultZone(e){wg=e}static get defaultZone(){return bo(wg,Nc.instance)}static get defaultLocale(){return Og}static set defaultLocale(e){Og=e}static get defaultNumberingSystem(){return Dg}static set defaultNumberingSystem(e){Dg=e}static get defaultOutputCalendar(){return bg}static set defaultOutputCalendar(e){bg=e}static get defaultWeekSettings(){return Ag}static set defaultWeekSettings(e){Ag=rd(e)}static get twoDigitCutoffYear(){return Rg}static set twoDigitCutoffYear(e){Rg=e%100}static get throwOnInvalid(){return Mg}static set throwOnInvalid(e){Mg=e}static resetCaches(){en.resetCache(),ro.resetCache()}}class pi{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const xm=[0,31,59,90,120,151,181,212,243,273,304,334],vm=[0,31,60,91,121,152,182,213,244,274,305,335];function qr(t,e){return new pi("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function bd(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const c=r.getUTCDay();return c===0?7:c}function Sm(t,e,n){return n+(na(t)?vm:xm)[e-1]}function wm(t,e){const n=na(t)?vm:xm,r=n.findIndex(d=>d<e),c=e-n[r];return{month:r+1,day:c}}function Rd(t,e){return(t-e+7)%7+1}function uc(t,e=4,n=1){const{year:r,month:c,day:d}=t,f=Sm(r,c,d),p=Rd(bd(r,c,d),n);let C=Math.floor((f-p+14-e)/7),x;return C<1?(x=r-1,C=ea(x,e,n)):C>ea(r,e,n)?(x=r+1,C=1):x=r,{weekYear:x,weekNumber:C,weekday:p,...vc(t)}}function kg(t,e=4,n=1){const{weekYear:r,weekNumber:c,weekday:d}=t,f=Rd(bd(r,1,e),n),p=Js(r);let C=c*7+d-f-7+e,x;C<1?(x=r-1,C+=Js(x)):C>p?(x=r+1,C-=Js(r)):x=r;const{month:T,day:O}=wm(x,C);return{year:x,month:T,day:O,...vc(t)}}function Iu(t){const{year:e,month:n,day:r}=t,c=Sm(e,n,r);return{year:e,ordinal:c,...vc(t)}}function Lg(t){const{year:e,ordinal:n}=t,{month:r,day:c}=wm(e,n);return{year:e,month:r,day:c,...vc(t)}}function Ig(t,e){if(!kt(t.localWeekday)||!kt(t.localWeekNumber)||!kt(t.localWeekYear)){if(!kt(t.weekday)||!kt(t.weekNumber)||!kt(t.weekYear))throw new Zs("Cannot mix locale-based week fields with ISO-based week fields");return kt(t.localWeekday)||(t.weekday=t.localWeekday),kt(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),kt(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function rx(t,e=4,n=1){const r=Ec(t.weekYear),c=Zr(t.weekNumber,1,ea(t.weekYear,e,n)),d=Zr(t.weekday,1,7);return r?c?d?!1:qr("weekday",t.weekday):qr("week",t.weekNumber):qr("weekYear",t.weekYear)}function ix(t){const e=Ec(t.year),n=Zr(t.ordinal,1,Js(t.year));return e?n?!1:qr("ordinal",t.ordinal):qr("year",t.year)}function Om(t){const e=Ec(t.year),n=Zr(t.month,1,12),r=Zr(t.day,1,dc(t.year,t.month));return e?n?r?!1:qr("day",t.day):qr("month",t.month):qr("year",t.year)}function Dm(t){const{hour:e,minute:n,second:r,millisecond:c}=t,d=Zr(e,0,23)||e===24&&n===0&&r===0&&c===0,f=Zr(n,0,59),p=Zr(r,0,59),C=Zr(c,0,999);return d?f?p?C?!1:qr("millisecond",c):qr("second",r):qr("minute",n):qr("hour",e)}function kt(t){return typeof t>"u"}function fs(t){return typeof t=="number"}function Ec(t){return typeof t=="number"&&t%1===0}function ox(t){return typeof t=="string"}function sx(t){return Object.prototype.toString.call(t)==="[object Date]"}function bm(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Rm(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function lx(t){return Array.isArray(t)?t:[t]}function Pg(t,e,n){if(t.length!==0)return t.reduce((r,c)=>{const d=[e(c),c];return r&&n(r[0],d[0])===r[0]?r:d},null)[1]}function ax(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function el(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function rd(t){if(t==null)return null;if(typeof t!="object")throw new vr("Week settings must be an object");if(!Zr(t.firstDay,1,7)||!Zr(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Zr(e,1,7)))throw new vr("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Zr(t,e,n){return Ec(t)&&t>=e&&t<=n}function cx(t,e){return t-e*Math.floor(t/e)}function Fn(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function Do(t){if(!(kt(t)||t===null||t===""))return parseInt(t,10)}function ss(t){if(!(kt(t)||t===null||t===""))return parseFloat(t)}function Md(t){if(!(kt(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Ad(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function na(t){return t%4===0&&(t%100!==0||t%400===0)}function Js(t){return na(t)?366:365}function dc(t,e){const n=cx(e-1,12)+1,r=t+(e-n)/12;return n===2?na(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Tc(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function $g(t,e,n){return-Rd(bd(t,1,e),n)+e-1}function ea(t,e=4,n=1){const r=$g(t,e,n),c=$g(t+1,e,n);return(Js(t)-r+c)/7}function id(t){return t>99?t:t>kn.twoDigitCutoffYear?1900+t:2e3+t}function Mm(t,e,n,r=null){const c=new Date(t),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(d.timeZone=r);const f={timeZoneName:e,...d},p=new Intl.DateTimeFormat(n,f).formatToParts(c).find(C=>C.type.toLowerCase()==="timezonename");return p?p.value:null}function xc(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,c=n<0||Object.is(n,-0)?-r:r;return n*60+c}function Am(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new vr(`Invalid unit value ${t}`);return e}function fc(t,e){const n={};for(const r in t)if(el(t,r)){const c=t[r];if(c==null)continue;n[e(r)]=Am(c)}return n}function Jl(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),c=t>=0?"+":"-";switch(e){case"short":return`${c}${Fn(n,2)}:${Fn(r,2)}`;case"narrow":return`${c}${n}${r>0?`:${r}`:""}`;case"techie":return`${c}${Fn(n,2)}${Fn(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function vc(t){return ax(t,["hour","minute","second","millisecond"])}const ux=["January","February","March","April","May","June","July","August","September","October","November","December"],km=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dx=["J","F","M","A","M","J","J","A","S","O","N","D"];function Lm(t){switch(t){case"narrow":return[...dx];case"short":return[...km];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 Im=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Pm=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],fx=["M","T","W","T","F","S","S"];function $m(t){switch(t){case"narrow":return[...fx];case"short":return[...Pm];case"long":return[...Im];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Fm=["AM","PM"],hx=["Before Christ","Anno Domini"],gx=["BC","AD"],px=["B","A"];function Bm(t){switch(t){case"narrow":return[...px];case"short":return[...gx];case"long":return[...hx];default:return null}}function mx(t){return Fm[t.hour<12?0:1]}function _x(t,e){return $m(e)[t.weekday-1]}function yx(t,e){return Lm(e)[t.month-1]}function Cx(t,e){return Bm(e)[t.year<0?0:1]}function Nx(t,e,n="always",r=!1){const c={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(t)===-1;if(n==="auto"&&d){const O=t==="days";switch(e){case 1:return O?"tomorrow":`next ${c[t][0]}`;case-1:return O?"yesterday":`last ${c[t][0]}`;case 0:return O?"today":`this ${c[t][0]}`}}const f=Object.is(e,-0)||e<0,p=Math.abs(e),C=p===1,x=c[t],T=r?C?x[1]:x[2]||x[1]:C?c[t][0]:t;return f?`${p} ${T} ago`:`in ${p} ${T}`}function Fg(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const Ex={D:cc,DD:im,DDD:om,DDDD:sm,t:lm,tt:am,ttt:cm,tttt:um,T:dm,TT:fm,TTT:hm,TTTT:gm,f:pm,ff:_m,fff:Cm,ffff:Em,F:mm,FF:ym,FFF:Nm,FFFF:Tm};class sr{static create(e,n={}){return new sr(e,n)}static parseFormat(e){let n=null,r="",c=!1;const d=[];for(let f=0;f<e.length;f++){const p=e.charAt(f);p==="'"?(r.length>0&&d.push({literal:c||/^\s+$/.test(r),val:r}),n=null,r="",c=!c):c||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:c||/^\s+$/.test(r),val:r}),d}static macroTokenToFormatOpts(e){return Ex[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return Fn(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",c=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=(A,v)=>this.loc.extract(e,A,v),f=A=>e.isOffsetFixed&&e.offset===0&&A.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,A.format):"",p=()=>r?mx(e):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),C=(A,v)=>r?yx(e,A):d(v?{month:A}:{month:A,day:"numeric"},"month"),x=(A,v)=>r?_x(e,A):d(v?{weekday:A}:{weekday:A,month:"long",day:"numeric"},"weekday"),T=A=>{const v=sr.macroTokenToFormatOpts(A);return v?this.formatWithSystemDefault(e,v):A},O=A=>r?Cx(e,A):d({era:A},"era"),M=A=>{switch(A){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return 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 e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return p();case"d":return c?d({day:"numeric"},"day"):this.num(e.day);case"dd":return c?d({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return x("short",!0);case"cccc":return x("long",!0);case"ccccc":return x("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return x("short",!1);case"EEEE":return x("long",!1);case"EEEEE":return x("narrow",!1);case"L":return c?d({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return c?d({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return C("short",!0);case"LLLL":return C("long",!0);case"LLLLL":return C("narrow",!0);case"M":return c?d({month:"numeric"},"month"):this.num(e.month);case"MM":return c?d({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return C("short",!1);case"MMMM":return C("long",!1);case"MMMMM":return C("narrow",!1);case"y":return c?d({year:"numeric"},"year"):this.num(e.year);case"yy":return c?d({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return c?d({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return c?d({year:"numeric"},"year"):this.num(e.year,6);case"G":return O("short");case"GG":return O("long");case"GGGGG":return O("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return T(A)}};return Fg(sr.parseFormat(n),M)}formatDurationFromString(e,n){const r=C=>{switch(C[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}},c=C=>x=>{const T=r(x);return T?this.num(C.get(T),x.length):x},d=sr.parseFormat(n),f=d.reduce((C,{literal:x,val:T})=>x?C:C.concat(T),[]),p=e.shiftTo(...f.map(r).filter(C=>C));return Fg(d,c(p))}}const Hm=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ll(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function al(...t){return e=>t.reduce(([n,r,c],d)=>{const[f,p,C]=d(e,c);return[{...n,...f},p||r,C]},[{},null,1]).slice(0,2)}function cl(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const c=n.exec(t);if(c)return r(c)}return[null,null]}function Wm(...t){return(e,n)=>{const r={};let c;for(c=0;c<t.length;c++)r[t[c]]=Do(e[n+c]);return[r,null,n+c]}}const Km=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Tx=`(?:${Km.source}?(?:\\[(${Hm.source})\\])?)?`,kd=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Um=RegExp(`${kd.source}${Tx}`),Ld=RegExp(`(?:T${Um.source})?`),xx=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,vx=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Sx=/(\d{4})-?(\d{3})/,wx=Wm("weekYear","weekNumber","weekDay"),Ox=Wm("year","ordinal"),Dx=/(\d{4})-(\d\d)-(\d\d)/,zm=RegExp(`${kd.source} ?(?:${Km.source}|(${Hm.source}))?`),bx=RegExp(`(?: ${zm.source})?`);function Xs(t,e,n){const r=t[e];return kt(r)?n:Do(r)}function Rx(t,e){return[{year:Xs(t,e),month:Xs(t,e+1,1),day:Xs(t,e+2,1)},null,e+3]}function ul(t,e){return[{hours:Xs(t,e,0),minutes:Xs(t,e+1,0),seconds:Xs(t,e+2,0),milliseconds:Md(t[e+3])},null,e+4]}function ra(t,e){const n=!t[e]&&!t[e+1],r=xc(t[e+1],t[e+2]),c=n?null:dr.instance(r);return[{},c,e+3]}function ia(t,e){const n=t[e]?ro.create(t[e]):null;return[{},n,e+1]}const Mx=RegExp(`^T?${kd.source}$`),Ax=/^-?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 kx(t){const[e,n,r,c,d,f,p,C,x]=t,T=e[0]==="-",O=C&&C[0]==="-",M=(A,v=!1)=>A!==void 0&&(v||A&&T)?-A:A;return[{years:M(ss(n)),months:M(ss(r)),weeks:M(ss(c)),days:M(ss(d)),hours:M(ss(f)),minutes:M(ss(p)),seconds:M(ss(C),C==="-0"),milliseconds:M(Md(x),O)}]}const Lx={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 Id(t,e,n,r,c,d,f){const p={year:e.length===2?id(Do(e)):Do(e),month:km.indexOf(n)+1,day:Do(r),hour:Do(c),minute:Do(d)};return f&&(p.second=Do(f)),t&&(p.weekday=t.length>3?Im.indexOf(t)+1:Pm.indexOf(t)+1),p}const Ix=/^(?:(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 Px(t){const[,e,n,r,c,d,f,p,C,x,T,O]=t,M=Id(e,c,r,n,d,f,p);let A;return C?A=Lx[C]:x?A=0:A=xc(T,O),[M,new dr(A)]}function $x(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Fx=/^(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$/,Bx=/^(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$/,Hx=/^(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 Bg(t){const[,e,n,r,c,d,f,p]=t;return[Id(e,c,r,n,d,f,p),dr.utcInstance]}function Wx(t){const[,e,n,r,c,d,f,p]=t;return[Id(e,p,n,r,c,d,f),dr.utcInstance]}const Kx=ll(xx,Ld),Ux=ll(vx,Ld),zx=ll(Sx,Ld),Gx=ll(Um),Gm=al(Rx,ul,ra,ia),Yx=al(wx,ul,ra,ia),Vx=al(Ox,ul,ra,ia),jx=al(ul,ra,ia);function qx(t){return cl(t,[Kx,Gm],[Ux,Yx],[zx,Vx],[Gx,jx])}function Zx(t){return cl($x(t),[Ix,Px])}function Jx(t){return cl(t,[Fx,Bg],[Bx,Bg],[Hx,Wx])}function Xx(t){return cl(t,[Ax,kx])}const Qx=al(ul);function ev(t){return cl(t,[Mx,Qx])}const tv=ll(Dx,bx),nv=ll(zm),rv=al(ul,ra,ia);function iv(t){return cl(t,[tv,Gm],[nv,rv])}const Hg="Invalid Duration",Ym={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}},ov={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},...Ym},Vr=146097/400,Vs=146097/4800,sv={years:{quarters:4,months:12,weeks:Vr/7,days:Vr,hours:Vr*24,minutes:Vr*24*60,seconds:Vr*24*60*60,milliseconds:Vr*24*60*60*1e3},quarters:{months:3,weeks:Vr/28,days:Vr/4,hours:Vr*24/4,minutes:Vr*24*60/4,seconds:Vr*24*60*60/4,milliseconds:Vr*24*60*60*1e3/4},months:{weeks:Vs/7,days:Vs,hours:Vs*24,minutes:Vs*24*60,seconds:Vs*24*60*60,milliseconds:Vs*24*60*60*1e3},...Ym},ds=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],lv=ds.slice(0).reverse();function Oo(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Vt(r)}function Vm(t,e){let n=e.milliseconds??0;for(const r of lv.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function Wg(t,e){const n=Vm(t,e)<0?-1:1;ds.reduceRight((r,c)=>{if(kt(e[c]))return r;if(r){const d=e[r]*n,f=t[c][r],p=Math.floor(d/f);e[c]+=p*n,e[r]-=p*f*n}return c},null),ds.reduce((r,c)=>{if(kt(e[c]))return r;if(r){const d=e[r]%1;e[r]-=d,e[c]+=d*t[r][c]}return c},null)}function av(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class Vt{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?sv:ov;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||en.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return Vt.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new vr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Vt({values:fc(e,Vt.normalizeUnit),loc:en.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(fs(e))return Vt.fromMillis(e);if(Vt.isDuration(e))return e;if(typeof e=="object")return Vt.fromObject(e);throw new vr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=Xx(e);return r?Vt.fromObject(r,n):Vt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=ev(e);return r?Vt.fromObject(r,n):Vt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new vr("need to specify a reason the Duration is invalid");const r=e instanceof pi?e:new pi(e,n);if(kn.throwOnInvalid)throw new IT(r);return new Vt({invalid:r})}static normalizeUnit(e){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"}[e&&e.toLowerCase()];if(!n)throw new rm(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?sr.create(this.loc,r).formatDurationFromString(this,e):Hg}toHuman(e={}){if(!this.isValid)return Hg;const n=ds.map(r=>{const c=this.values[r];return kt(c)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(c)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ad(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Dt.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Vm(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=Vt.fromDurationLike(e),r={};for(const c of ds)(el(n.values,c)||el(this.values,c))&&(r[c]=n.get(c)+this.get(c));return Oo(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=Vt.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Am(e(this.values[r],r));return Oo(this,{values:n},!0)}get(e){return this[Vt.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...fc(e,Vt.normalizeUnit)};return Oo(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:c}={}){const f={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:c,conversionAccuracy:r};return Oo(this,f)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Wg(this.matrix,e),Oo(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=av(this.normalize().shiftToAll().toObject());return Oo(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(f=>Vt.normalizeUnit(f));const n={},r={},c=this.toObject();let d;for(const f of ds)if(e.indexOf(f)>=0){d=f;let p=0;for(const x in r)p+=this.matrix[x][f]*r[x],r[x]=0;fs(c[f])&&(p+=c[f]);const C=Math.trunc(p);n[f]=C,r[f]=(p*1e3-C*1e3)/1e3}else fs(c[f])&&(r[f]=c[f]);for(const f in r)r[f]!==0&&(n[d]+=f===d?r[f]:r[f]/this.matrix[d][f]);return Wg(this.matrix,n),Oo(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 e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Oo(this,{values:e},!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(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,c){return r===void 0||r===0?c===void 0||c===0:r===c}for(const r of ds)if(!n(this.values[r],e.values[r]))return!1;return!0}}const js="Invalid Interval";function cv(t,e){return!t||!t.isValid?wn.invalid("missing or invalid start"):!e||!e.isValid?wn.invalid("missing or invalid end"):e<t?wn.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class wn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new vr("need to specify a reason the Interval is invalid");const r=e instanceof pi?e:new pi(e,n);if(kn.throwOnInvalid)throw new LT(r);return new wn({invalid:r})}static fromDateTimes(e,n){const r=Yl(e),c=Yl(n),d=cv(r,c);return d??new wn({start:r,end:c})}static after(e,n){const r=Vt.fromDurationLike(n),c=Yl(e);return wn.fromDateTimes(c,c.plus(r))}static before(e,n){const r=Vt.fromDurationLike(n),c=Yl(e);return wn.fromDateTimes(c.minus(r),c)}static fromISO(e,n){const[r,c]=(e||"").split("/",2);if(r&&c){let d,f;try{d=Dt.fromISO(r,n),f=d.isValid}catch{f=!1}let p,C;try{p=Dt.fromISO(c,n),C=p.isValid}catch{C=!1}if(f&&C)return wn.fromDateTimes(d,p);if(f){const x=Vt.fromISO(c,n);if(x.isValid)return wn.after(d,x)}else if(C){const x=Vt.fromISO(r,n);if(x.isValid)return wn.before(p,x)}}return wn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(e,n);let c;return n!=null&&n.useLocaleWeeks?c=this.end.reconfigure({locale:r.locale}):c=this.end,c=c.startOf(e,n),Math.floor(c.diff(r,e).get(e))+(c.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?wn.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Yl).filter(f=>this.contains(f)).sort((f,p)=>f.toMillis()-p.toMillis()),r=[];let{s:c}=this,d=0;for(;c<this.e;){const f=n[d]||this.e,p=+f>+this.e?this.e:f;r.push(wn.fromDateTimes(c,p)),c=p,d+=1}return r}splitBy(e){const n=Vt.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,c=1,d;const f=[];for(;r<this.e;){const p=this.start.plus(n.mapUnits(C=>C*c));d=+p>+this.e?this.e:p,f.push(wn.fromDateTimes(r,d)),r=d,c+=1}return f}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:wn.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return wn.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((c,d)=>c.s-d.s).reduce(([c,d],f)=>d?d.overlaps(f)||d.abutsStart(f)?[c,d.union(f)]:[c.concat([d]),f]:[c,f],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const c=[],d=e.map(C=>[{time:C.s,type:"s"},{time:C.e,type:"e"}]),f=Array.prototype.concat(...d),p=f.sort((C,x)=>C.time-x.time);for(const C of p)r+=C.type==="s"?1:-1,r===1?n=C.time:(n&&+n!=+C.time&&c.push(wn.fromDateTimes(n,C.time)),n=null);return wn.merge(c)}difference(...e){return wn.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:js}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=cc,n={}){return this.isValid?sr.create(this.s.loc.clone(n),e).formatInterval(this):js}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:js}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:js}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:js}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:js}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):Vt.invalid(this.invalidReason)}mapEndpoints(e){return wn.fromDateTimes(e(this.s),e(this.e))}}class Xa{static hasDST(e=kn.defaultZone){const n=Dt.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return ro.isValidZone(e)}static normalizeZone(e){return bo(e,kn.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||en.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||en.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||en.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:c=null,outputCalendar:d="gregory"}={}){return(c||en.create(n,r,d)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:c=null,outputCalendar:d="gregory"}={}){return(c||en.create(n,r,d)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:c=null}={}){return(c||en.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:c=null}={}){return(c||en.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return en.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return en.create(n,null,"gregory").eras(e)}static features(){return{relative:bm(),localeWeek:Rm()}}}function Kg(t,e){const n=c=>c.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(Vt.fromMillis(r).as("days"))}function uv(t,e,n){const r=[["years",(C,x)=>x.year-C.year],["quarters",(C,x)=>x.quarter-C.quarter+(x.year-C.year)*4],["months",(C,x)=>x.month-C.month+(x.year-C.year)*12],["weeks",(C,x)=>{const T=Kg(C,x);return(T-T%7)/7}],["days",Kg]],c={},d=t;let f,p;for(const[C,x]of r)n.indexOf(C)>=0&&(f=C,c[C]=x(t,e),p=d.plus(c),p>e?(c[C]--,t=d.plus(c),t>e&&(p=t,c[C]--,t=d.plus(c))):t=p);return[t,c,p,f]}function dv(t,e,n,r){let[c,d,f,p]=uv(t,e,n);const C=e-c,x=n.filter(O=>["hours","minutes","seconds","milliseconds"].indexOf(O)>=0);x.length===0&&(f<e&&(f=c.plus({[p]:1})),f!==c&&(d[p]=(d[p]||0)+C/(f-c)));const T=Vt.fromObject(d,r);return x.length>0?Vt.fromMillis(C,r).shiftTo(...x).plus(T):T}const Pd={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Ug={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]},fv=Pd.hanidec.replace(/[\[|\]]/g,"").split("");function hv(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(Pd.hanidec)!==-1)e+=fv.indexOf(t[n]);else for(const c in Ug){const[d,f]=Ug[c];r>=d&&r<=f&&(e+=r-d)}}return parseInt(e,10)}else return e}function hi({numberingSystem:t},e=""){return new RegExp(`${Pd[t||"latn"]}${e}`)}const gv="missing Intl.DateTimeFormat.formatToParts support";function Jt(t,e=n=>n){return{regex:t,deser:([n])=>e(hv(n))}}const pv=" ",jm=`[ ${pv}]`,qm=new RegExp(jm,"g");function mv(t){return t.replace(/\./g,"\\.?").replace(qm,jm)}function zg(t){return t.replace(/\./g,"").replace(qm," ").toLowerCase()}function gi(t,e){return t===null?null:{regex:RegExp(t.map(mv).join("|")),deser:([n])=>t.findIndex(r=>zg(n)===zg(r))+e}}function Gg(t,e){return{regex:t,deser:([,n,r])=>xc(n,r),groups:e}}function Qa(t){return{regex:t,deser:([e])=>e}}function _v(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function yv(t,e){const n=hi(e),r=hi(e,"{2}"),c=hi(e,"{3}"),d=hi(e,"{4}"),f=hi(e,"{6}"),p=hi(e,"{1,2}"),C=hi(e,"{1,3}"),x=hi(e,"{1,6}"),T=hi(e,"{1,9}"),O=hi(e,"{2,4}"),M=hi(e,"{4,6}"),A=P=>({regex:RegExp(_v(P.val)),deser:([K])=>K,literal:!0}),w=(P=>{if(t.literal)return A(P);switch(P.val){case"G":return gi(e.eras("short"),0);case"GG":return gi(e.eras("long"),0);case"y":return Jt(x);case"yy":return Jt(O,id);case"yyyy":return Jt(d);case"yyyyy":return Jt(M);case"yyyyyy":return Jt(f);case"M":return Jt(p);case"MM":return Jt(r);case"MMM":return gi(e.months("short",!0),1);case"MMMM":return gi(e.months("long",!0),1);case"L":return Jt(p);case"LL":return Jt(r);case"LLL":return gi(e.months("short",!1),1);case"LLLL":return gi(e.months("long",!1),1);case"d":return Jt(p);case"dd":return Jt(r);case"o":return Jt(C);case"ooo":return Jt(c);case"HH":return Jt(r);case"H":return Jt(p);case"hh":return Jt(r);case"h":return Jt(p);case"mm":return Jt(r);case"m":return Jt(p);case"q":return Jt(p);case"qq":return Jt(r);case"s":return Jt(p);case"ss":return Jt(r);case"S":return Jt(C);case"SSS":return Jt(c);case"u":return Qa(T);case"uu":return Qa(p);case"uuu":return Jt(n);case"a":return gi(e.meridiems(),0);case"kkkk":return Jt(d);case"kk":return Jt(O,id);case"W":return Jt(p);case"WW":return Jt(r);case"E":case"c":return Jt(n);case"EEE":return gi(e.weekdays("short",!1),1);case"EEEE":return gi(e.weekdays("long",!1),1);case"ccc":return gi(e.weekdays("short",!0),1);case"cccc":return gi(e.weekdays("long",!0),1);case"Z":case"ZZ":return Gg(new RegExp(`([+-]${p.source})(?::(${r.source}))?`),2);case"ZZZ":return Gg(new RegExp(`([+-]${p.source})(${r.source})?`),2);case"z":return Qa(/[a-z_+-/]{1,256}?/i);case" ":return Qa(/[^\S\n\r]/);default:return A(P)}})(t)||{invalidReason:gv};return w.token=t,w}const Cv={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 Nv(t,e,n){const{type:r,value:c}=t;if(r==="literal"){const C=/^\s+$/.test(c);return{literal:!C,val:C?" ":c}}const d=e[r];let f=r;r==="hour"&&(e.hour12!=null?f=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?f="hour12":f="hour24":f=n.hour12?"hour12":"hour24");let p=Cv[f];if(typeof p=="object"&&(p=p[d]),p)return{literal:!1,val:p}}function Ev(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function Tv(t,e,n){const r=t.match(e);if(r){const c={};let d=1;for(const f in n)if(el(n,f)){const p=n[f],C=p.groups?p.groups+1:1;!p.literal&&p.token&&(c[p.token.val[0]]=p.deser(r.slice(d,d+C))),d+=C}return[r,c]}else return[r,{}]}function xv(t){const e=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 kt(t.z)||(n=ro.create(t.z)),kt(t.Z)||(n||(n=new dr(t.Z)),r=t.Z),kt(t.q)||(t.M=(t.q-1)*3+1),kt(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),kt(t.u)||(t.S=Md(t.u)),[Object.keys(t).reduce((d,f)=>{const p=e(f);return p&&(d[p]=t[f]),d},{}),n,r]}let Pu=null;function vv(){return Pu||(Pu=Dt.fromMillis(1555555555555)),Pu}function Sv(t,e){if(t.literal)return t;const n=sr.macroTokenToFormatOpts(t.val),r=Xm(n,e);return r==null||r.includes(void 0)?t:r}function Zm(t,e){return Array.prototype.concat(...t.map(n=>Sv(n,e)))}function Jm(t,e,n){const r=Zm(sr.parseFormat(n),t),c=r.map(f=>yv(f,t)),d=c.find(f=>f.invalidReason);if(d)return{input:e,tokens:r,invalidReason:d.invalidReason};{const[f,p]=Ev(c),C=RegExp(f,"i"),[x,T]=Tv(e,C,p),[O,M,A]=T?xv(T):[null,null,void 0];if(el(T,"a")&&el(T,"H"))throw new Zs("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:C,rawMatches:x,matches:T,result:O,zone:M,specificOffset:A}}}function wv(t,e,n){const{result:r,zone:c,specificOffset:d,invalidReason:f}=Jm(t,e,n);return[r,c,d,f]}function Xm(t,e){if(!t)return null;const r=sr.create(e,t).dtFormatter(vv()),c=r.formatToParts(),d=r.resolvedOptions();return c.map(f=>Nv(f,t,d))}const $u="Invalid DateTime",Yg=864e13;function ec(t){return new pi("unsupported zone",`the zone "${t.name}" is not supported`)}function Fu(t){return t.weekData===null&&(t.weekData=uc(t.c)),t.weekData}function Bu(t){return t.localWeekData===null&&(t.localWeekData=uc(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ls(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Dt({...n,...e,old:n})}function Qm(t,e,n){let r=t-e*60*1e3;const c=n.offset(r);if(e===c)return[r,e];r-=(c-e)*60*1e3;const d=n.offset(r);return c===d?[r,c]:[t-Math.min(c,d)*60*1e3,Math.max(c,d)]}function tc(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function oc(t,e,n){return Qm(Tc(t),e,n)}function Vg(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),c=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,d={...t.c,year:r,month:c,day:Math.min(t.c.day,dc(r,c))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},f=Vt.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),p=Tc(d);let[C,x]=Qm(p,n,t.zone);return f!==0&&(C+=f,x=t.zone.offset(C)),{ts:C,o:x}}function Gl(t,e,n,r,c,d){const{setZone:f,zone:p}=n;if(t&&Object.keys(t).length!==0||e){const C=e||p,x=Dt.fromObject(t,{...n,zone:C,specificOffset:d});return f?x:x.setZone(p)}else return Dt.invalid(new pi("unparsable",`the input "${c}" can't be parsed as ${r}`))}function nc(t,e,n=!0){return t.isValid?sr.create(en.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Hu(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=Fn(t.c.year,n?6:4),e?(r+="-",r+=Fn(t.c.month),r+="-",r+=Fn(t.c.day)):(r+=Fn(t.c.month),r+=Fn(t.c.day)),r}function jg(t,e,n,r,c,d){let f=Fn(t.c.hour);return e?(f+=":",f+=Fn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(f+=":")):f+=Fn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(f+=Fn(t.c.second),(t.c.millisecond!==0||!r)&&(f+=".",f+=Fn(t.c.millisecond,3))),c&&(t.isOffsetFixed&&t.offset===0&&!d?f+="Z":t.o<0?(f+="-",f+=Fn(Math.trunc(-t.o/60)),f+=":",f+=Fn(Math.trunc(-t.o%60))):(f+="+",f+=Fn(Math.trunc(t.o/60)),f+=":",f+=Fn(Math.trunc(t.o%60)))),d&&(f+="["+t.zone.ianaName+"]"),f}const e_={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ov={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Dv={ordinal:1,hour:0,minute:0,second:0,millisecond:0},t_=["year","month","day","hour","minute","second","millisecond"],bv=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Rv=["year","ordinal","hour","minute","second","millisecond"];function Mv(t){const e={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"}[t.toLowerCase()];if(!e)throw new rm(t);return e}function qg(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Mv(t)}}function Zg(t,e){const n=bo(e.zone,kn.defaultZone),r=en.fromObject(e),c=kn.now();let d,f;if(kt(t.year))d=c;else{for(const x of t_)kt(t[x])&&(t[x]=e_[x]);const p=Om(t)||Dm(t);if(p)return Dt.invalid(p);const C=n.offset(c);[d,f]=oc(t,C,n)}return new Dt({ts:d,zone:n,loc:r,o:f})}function Jg(t,e,n){const r=kt(n.round)?!0:n.round,c=(f,p)=>(f=Ad(f,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(f,p)),d=f=>n.calendary?e.hasSame(t,f)?0:e.startOf(f).diff(t.startOf(f),f).get(f):e.diff(t,f).get(f);if(n.unit)return c(d(n.unit),n.unit);for(const f of n.units){const p=d(f);if(Math.abs(p)>=1)return c(p,f)}return c(t>e?-0:0,n.units[n.units.length-1])}function Xg(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class Dt{constructor(e){const n=e.zone||kn.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new pi("invalid input"):null)||(n.isValid?null:ec(n));this.ts=kt(e.ts)?kn.now():e.ts;let c=null,d=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[c,d]=[e.old.c,e.old.o];else{const p=n.offset(this.ts);c=tc(this.ts,p),r=Number.isNaN(c.year)?new pi("invalid input"):null,c=r?null:c,d=r?null:p}this._zone=n,this.loc=e.loc||en.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=c,this.o=d,this.isLuxonDateTime=!0}static now(){return new Dt({})}static local(){const[e,n]=Xg(arguments),[r,c,d,f,p,C,x]=n;return Zg({year:r,month:c,day:d,hour:f,minute:p,second:C,millisecond:x},e)}static utc(){const[e,n]=Xg(arguments),[r,c,d,f,p,C,x]=n;return e.zone=dr.utcInstance,Zg({year:r,month:c,day:d,hour:f,minute:p,second:C,millisecond:x},e)}static fromJSDate(e,n={}){const r=sx(e)?e.valueOf():NaN;if(Number.isNaN(r))return Dt.invalid("invalid input");const c=bo(n.zone,kn.defaultZone);return c.isValid?new Dt({ts:r,zone:c,loc:en.fromObject(n)}):Dt.invalid(ec(c))}static fromMillis(e,n={}){if(fs(e))return e<-Yg||e>Yg?Dt.invalid("Timestamp out of range"):new Dt({ts:e,zone:bo(n.zone,kn.defaultZone),loc:en.fromObject(n)});throw new vr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(fs(e))return new Dt({ts:e*1e3,zone:bo(n.zone,kn.defaultZone),loc:en.fromObject(n)});throw new vr("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=bo(n.zone,kn.defaultZone);if(!r.isValid)return Dt.invalid(ec(r));const c=en.fromObject(n),d=fc(e,qg),{minDaysInFirstWeek:f,startOfWeek:p}=Ig(d,c),C=kn.now(),x=kt(n.specificOffset)?r.offset(C):n.specificOffset,T=!kt(d.ordinal),O=!kt(d.year),M=!kt(d.month)||!kt(d.day),A=O||M,v=d.weekYear||d.weekNumber;if((A||T)&&v)throw new Zs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(M&&T)throw new Zs("Can't mix ordinal dates with month/day");const w=v||d.weekday&&!A;let P,K,$=tc(C,x);w?(P=bv,K=Ov,$=uc($,f,p)):T?(P=Rv,K=Dv,$=Iu($)):(P=t_,K=e_);let W=!1;for(const G of P){const j=d[G];kt(j)?W?d[G]=K[G]:d[G]=$[G]:W=!0}const H=w?rx(d,f,p):T?ix(d):Om(d),z=H||Dm(d);if(z)return Dt.invalid(z);const te=w?kg(d,f,p):T?Lg(d):d,[re,ce]=oc(te,x,r),q=new Dt({ts:re,zone:r,o:ce,loc:c});return d.weekday&&A&&e.weekday!==q.weekday?Dt.invalid("mismatched weekday",`you can't specify both a weekday of ${d.weekday} and a date of ${q.toISO()}`):q}static fromISO(e,n={}){const[r,c]=qx(e);return Gl(r,c,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,c]=Zx(e);return Gl(r,c,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,c]=Jx(e);return Gl(r,c,n,"HTTP",n)}static fromFormat(e,n,r={}){if(kt(e)||kt(n))throw new vr("fromFormat requires an input string and a format");const{locale:c=null,numberingSystem:d=null}=r,f=en.fromOpts({locale:c,numberingSystem:d,defaultToEN:!0}),[p,C,x,T]=wv(f,e,n);return T?Dt.invalid(T):Gl(p,C,r,`format ${n}`,e,x)}static fromString(e,n,r={}){return Dt.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,c]=iv(e);return Gl(r,c,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new vr("need to specify a reason the DateTime is invalid");const r=e instanceof pi?e:new pi(e,n);if(kn.throwOnInvalid)throw new kT(r);return new Dt({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=Xm(e,en.fromObject(n));return r?r.map(c=>c?c.val:null).join(""):null}static expandFormat(e,n={}){return Zm(sr.parseFormat(e),en.fromObject(n)).map(c=>c.val).join("")}get(e){return this[e]}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?Fu(this).weekYear:NaN}get weekNumber(){return this.isValid?Fu(this).weekNumber:NaN}get weekday(){return this.isValid?Fu(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Bu(this).weekday:NaN}get localWeekNumber(){return this.isValid?Bu(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Bu(this).weekYear:NaN}get ordinal(){return this.isValid?Iu(this.c).ordinal:NaN}get monthShort(){return this.isValid?Xa.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Xa.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Xa.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Xa.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 e=864e5,n=6e4,r=Tc(this.c),c=this.zone.offset(r-e),d=this.zone.offset(r+e),f=this.zone.offset(r-c*n),p=this.zone.offset(r-d*n);if(f===p)return[this];const C=r-f*n,x=r-p*n,T=tc(C,f),O=tc(x,p);return T.hour===O.hour&&T.minute===O.minute&&T.second===O.second&&T.millisecond===O.millisecond?[ls(this,{ts:C}),ls(this,{ts:x})]:[this]}get isInLeapYear(){return na(this.year)}get daysInMonth(){return dc(this.year,this.month)}get daysInYear(){return this.isValid?Js(this.year):NaN}get weeksInWeekYear(){return this.isValid?ea(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ea(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:c}=sr.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:c}}toUTC(e=0,n={}){return this.setZone(dr.instance(e),n)}toLocal(){return this.setZone(kn.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=bo(e,kn.defaultZone),e.equals(this.zone))return this;if(e.isValid){let c=this.ts;if(n||r){const d=e.offset(this.ts),f=this.toObject();[c]=oc(f,d,e)}return ls(this,{ts:c,zone:e})}else return Dt.invalid(ec(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const c=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return ls(this,{loc:c})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=fc(e,qg),{minDaysInFirstWeek:r,startOfWeek:c}=Ig(n,this.loc),d=!kt(n.weekYear)||!kt(n.weekNumber)||!kt(n.weekday),f=!kt(n.ordinal),p=!kt(n.year),C=!kt(n.month)||!kt(n.day),x=p||C,T=n.weekYear||n.weekNumber;if((x||f)&&T)throw new Zs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(C&&f)throw new Zs("Can't mix ordinal dates with month/day");let O;d?O=kg({...uc(this.c,r,c),...n},r,c):kt(n.ordinal)?(O={...this.toObject(),...n},kt(n.day)&&(O.day=Math.min(dc(O.year,O.month),O.day))):O=Lg({...Iu(this.c),...n});const[M,A]=oc(O,this.o,this.zone);return ls(this,{ts:M,o:A})}plus(e){if(!this.isValid)return this;const n=Vt.fromDurationLike(e);return ls(this,Vg(this,n))}minus(e){if(!this.isValid)return this;const n=Vt.fromDurationLike(e).negate();return ls(this,Vg(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},c=Vt.normalizeUnit(e);switch(c){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(c==="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(c==="quarters"){const d=Math.ceil(this.month/3);r.month=(d-1)*3+1}return this.set(r)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?sr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):$u}toLocaleString(e=cc,n={}){return this.isValid?sr.create(this.loc.clone(n),e).formatDateTime(this):$u}toLocaleParts(e={}){return this.isValid?sr.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:c=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const f=e==="extended";let p=Hu(this,f);return p+="T",p+=jg(this,f,n,r,c,d),p}toISODate({format:e="extended"}={}){return this.isValid?Hu(this,e==="extended"):null}toISOWeekDate(){return nc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:c=!1,extendedZone:d=!1,format:f="extended"}={}){return this.isValid?(c?"T":"")+jg(this,f==="extended",n,e,r,d):null}toRFC2822(){return nc(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return nc(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Hu(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let c="HH:mm:ss.SSS";return(n||e)&&(r&&(c+=" "),n?c+="z":e&&(c+="ZZ")),nc(this,c,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():$u}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.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(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return Vt.invalid("created by diffing an invalid DateTime");const c={locale:this.locale,numberingSystem:this.numberingSystem,...r},d=lx(n).map(Vt.normalizeUnit),f=e.valueOf()>this.valueOf(),p=f?this:e,C=f?e:this,x=dv(p,C,d,c);return f?x.negate():x}diffNow(e="milliseconds",n={}){return this.diff(Dt.now(),e,n)}until(e){return this.isValid?wn.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;const c=e.valueOf(),d=this.setZone(e.zone,{keepLocalTime:!0});return d.startOf(n,r)<=c&&c<=d.endOf(n,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||Dt.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let c=["years","months","days","hours","minutes","seconds"],d=e.unit;return Array.isArray(e.unit)&&(c=e.unit,d=void 0),Jg(n,this.plus(r),{...e,numeric:"always",units:c,unit:d})}toRelativeCalendar(e={}){return this.isValid?Jg(e.base||Dt.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Dt.isDateTime))throw new vr("min requires all arguments be DateTimes");return Pg(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(Dt.isDateTime))throw new vr("max requires all arguments be DateTimes");return Pg(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:c=null,numberingSystem:d=null}=r,f=en.fromOpts({locale:c,numberingSystem:d,defaultToEN:!0});return Jm(f,e,n)}static fromStringExplain(e,n,r={}){return Dt.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return cc}static get DATE_MED(){return im}static get DATE_MED_WITH_WEEKDAY(){return PT}static get DATE_FULL(){return om}static get DATE_HUGE(){return sm}static get TIME_SIMPLE(){return lm}static get TIME_WITH_SECONDS(){return am}static get TIME_WITH_SHORT_OFFSET(){return cm}static get TIME_WITH_LONG_OFFSET(){return um}static get TIME_24_SIMPLE(){return dm}static get TIME_24_WITH_SECONDS(){return fm}static get TIME_24_WITH_SHORT_OFFSET(){return hm}static get TIME_24_WITH_LONG_OFFSET(){return gm}static get DATETIME_SHORT(){return pm}static get DATETIME_SHORT_WITH_SECONDS(){return mm}static get DATETIME_MED(){return _m}static get DATETIME_MED_WITH_SECONDS(){return ym}static get DATETIME_MED_WITH_WEEKDAY(){return $T}static get DATETIME_FULL(){return Cm}static get DATETIME_FULL_WITH_SECONDS(){return Nm}static get DATETIME_HUGE(){return Em}static get DATETIME_HUGE_WITH_SECONDS(){return Tm}}function Yl(t){if(Dt.isDateTime(t))return t;if(t&&t.valueOf&&fs(t.valueOf()))return Dt.fromJSDate(t);if(t&&typeof t=="object")return Dt.fromObject(t);throw new vr(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Xt=(t=>(t.Monday="MONDAY",t.Tuesday="TUESDAY",t.Wednesday="WEDNESDAY",t.Thursday="THURSDAY",t.Friday="FRIDAY",t.Saturday="SATURDAY",t.Sunday="SUNDAY",t))(Xt||{});function $d(t){const e={1:Xt.Monday,2:Xt.Tuesday,3:Xt.Wednesday,4:Xt.Thursday,5:Xt.Friday,6:Xt.Saturday,7:Xt.Sunday};if(t.weekday in e)return e[t.weekday];throw new Error(`Invalid DateTime.weekday property: ${t}, ${t.weekday}`)}function Fi(t){return{[Xt.Monday]:"Monday",[Xt.Tuesday]:"Tuesday",[Xt.Wednesday]:"Wednesday",[Xt.Thursday]:"Thursday",[Xt.Friday]:"Friday",[Xt.Saturday]:"Saturday",[Xt.Sunday]:"Sunday"}[t]}class Qg{constructor(e,n,r){$n(this,"end");$n(this,"start");this.end=e.setZone(r),this.start=e.setZone(r),[n.start,n.end].forEach(C=>{if(C.split(":").length!==2)throw new Error('expected interval start and end data to be in the format "HH:MM"')});const[c,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(c),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(e){return this.start<=e&&e<this.end}getStartTime(e,n){const r={hour:"numeric",minute:"numeric",...n};return this.start.setLocale(e||"en-US").toLocaleString(r)}getEndTime(e,n){const r={hour:"numeric",minute:"numeric",...n};return this.end.setLocale(e||"en-US").toLocaleString(r)}timeIsEqualTo(e){const n=this.getStartTime()===e.getStartTime(),r=this.getEndTime()===e.getEndTime();return n&&r}is24h(){const e=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 e&&n&&r}}class n_{constructor(e,n){$n(this,"holidayHoursByDate");$n(this,"hours");$n(this,"timezone");this.holidayHoursByDate=Object.fromEntries((e.holidayHours||[]).map(r=>[r.date,r])),this.hours=e,this.timezone=n}getInterval(e){if(this.isTemporarilyClosedAt(e))return null;let n=e;n=n.minus({days:1});for(const r of[n,e]){const c=this.getHours(r);if(c&&!c.isClosed)for(const d of c.openIntervals||[]){const f=new Qg(r,d,this.timezone);if(f.contains(e))return f}}return null}getCurrentInterval(){return this.getInterval(Dt.now())}getIntervalAfter(e){const n=this.getIntervalsForNDays(8,e),r=(d,f)=>d.start===f.start?0:d.start>f.start?1:-1,c=n.sort(r);for(const[d,f]of c.entries())if(f.contains(e)&&c.length>d+1)return c[d+1];for(const d of c)if(d.start>e)return d;return null}getIntervalsForNDays(e,n){const r=[];for(let c=0;c<e;c++){let d=n;d=d.plus({days:c});const f=this.getHours(d);f&&!f.isClosed&&r.push(...f.openIntervals.map(p=>new Qg(d,p,this.timezone)))}return r}getHolidayHours(e){return this.isTemporarilyClosedAt(e)?null:this.holidayHoursByDate[(e.toISO()||"").replace(/T.*/,"")]||null}getNormalHours(e){if(this.isTemporarilyClosedAt(e))return null;const n=Fi($d(e)).toLowerCase();return this.hours[n]}getHours(e){const n=this.getHolidayHours(e);return!n||n.isRegularHours?this.getNormalHours(e):n}getNextInterval(){return this.getIntervalAfter(Dt.now())}isHoliday(e){return!!this.getHolidayHours(e)}isTemporarilyClosedAt(e){if(!this.hours.reopenDate)return!1;const n=this.hours.reopenDate.split("-");if(n.length===3){const[r,c,d]=n,f=Dt.fromObject({year:Number(r),month:Number(c),day:Number(d)},{zone:this.timezone});if(e<f)return!0}return!1}isOpenAt(e){return this.isTemporarilyClosedAt(e)?!1:!!this.getInterval(e)}isOpenNow(){return this.isOpenAt(Dt.now())}}function Av(t,e){const n=[...t];return e=e%n.length,n.concat(n.splice(0,n.length-e))}function kv(t,e){if(t.length!=e.length)return!1;for(const[n,r]of t.entries())if(!r.timeIsEqualTo(e[n]))return!1;return!0}function oa(t){var e,n;return((n=(e=t==null?void 0:t.currentInterval)==null?void 0:e.is24h)==null?void 0:n.call(e))||!1}function sa(t){return!t.futureInterval}function Lv(t){return oa(t)?at.jsx("span",{className:"HoursStatus-current",children:"Open 24 Hours"}):sa(t)?at.jsx("span",{className:"HoursStatus-current",children:"Temporarily Closed"}):at.jsx("span",{className:"HoursStatus-current",children:t.isOpen?"Open Now":"Closed"})}function Iv(t){return oa(t)||sa(t)?null:at.jsx("span",{className:"HoursStatus-separator",children:" • "})}function Pv(t){return oa(t)||sa(t)?null:at.jsx("span",{className:"HoursStatus-future",children:t.isOpen?"Closes at":"Opens at"})}function $v(t){if(oa(t)||sa(t))return null;let e="";if(t.isOpen){const n=t.currentInterval;e+=n?n.getEndTime("en-US",t.timeOptions):""}else{const n=t.futureInterval;e+=n?n.getStartTime("en-US",t.timeOptions):""}return at.jsxs("span",{className:"HoursStatus-time",children:[" ",e]})}function Fv(t){var r,c;if(oa(t)||sa(t))return null;const e={weekday:"long",...t.dayOptions??{}};let n="";if(t.isOpen){const d=t.currentInterval;n+=((r=d==null?void 0:d.end)==null?void 0:r.setLocale("en-US").toLocaleString(e))||""}else{const d=t.futureInterval;n+=((c=d==null?void 0:d.start)==null?void 0:c.setLocale("en-US").toLocaleString(e))||""}return at.jsxs("span",{className:"HoursStatus-dayOfWeek",children:[" ",n]})}function Bv(t,e){const n=t.currentTemplate||Lv,r=t.separatorTemplate||Iv,c=t.futureTemplate||Pv,d=t.timeTemplate||$v,f=t.dayOfWeekTemplate||Fv;return at.jsxs("div",{className:Qs("HoursStatus",(e==null?void 0:e.className)||""),children:[n(t),r(t),c(t),d(t),f(t)]})}const Hv=t=>{const[e,n]=rt.useState(!1),[r,c]=rt.useState(!1);rt.useEffect(()=>{c(!0)},[]);const d=t.statusTemplate||Bv,f=new n_(t.hours,t.timezone),p=f.isOpenNow(),C=f.getCurrentInterval(),x=f.getNextInterval(),T=(C==null?void 0:C.end)||(x==null?void 0:x.start);if(T&&!e){n(!0);const M=T.toMillis()-Dt.now().toMillis();setTimeout(()=>n(!1),M)}const O={isOpen:p,currentInterval:C,futureInterval:x,...t};return at.jsx(at.Fragment,{children:r&&d(O,t)})};function Wv(t,e){const n=[];return t.forEach(r=>{const c=n[n.length-1];c?kv(c.intervals,r.intervals)?(c.endDay=r.endDay,c.isToday=c.isToday||r.isToday):n.push({...r}):n.push({...r})}),n.map(r=>{const c=e&&Fi(r.startDay)in e?e[Fi(r.startDay)]||"":Fi(r.startDay),d=e&&Fi(r.endDay)in e?e[Fi(r.endDay)]||"":Fi(r.endDay);return{...r,dayOfWeek:"Collapsed",dayName:r.startDay===r.endDay?`${c}`:`${c} - ${d}`}})}function Kv(t,e){const n=[],r=t.intervals.length>0&&t.intervals[0].is24h();return t.intervals.length===0?n.push("Closed"):r?n.push("Open 24 hours"):t.intervals.forEach(c=>{const d=c.getStartTime("en-US",e),f=c.getEndTime("en-US",e);n.push(`${d} - ${f}`)}),n}function Uv(t,e,n){const r=[];for(let c=1;c<=7;c++){const d=Dt.fromObject({weekday:c}),f=$d(d);r.push({startDay:f,endDay:f,dayName:n&&Fi(f)in n?n[Fi(f)]||"":Fi(f),intervals:t.filter(p=>p.start.weekday===c),isToday:e.weekday===c})}return r}const zv=t=>{const[e,n]=rt.useState(!1);rt.useEffect(()=>{n(!0)},[]);const r=new n_(t.hours,Intl.DateTimeFormat().resolvedOptions().timeZone),c=Dt.now(),d=r.getIntervalsForNDays(7,c);let f=Uv(d,c,t.dayOfWeekNames);function p(T){return T?{today:$d(c),monday:Xt.Monday,tuesday:Xt.Tuesday,wednesday:Xt.Wednesday,thursday:Xt.Thursday,friday:Xt.Friday,saturday:Xt.Saturday,sunday:Xt.Sunday}[T]:Xt.Sunday}let C=[Xt.Sunday,Xt.Monday,Xt.Tuesday,Xt.Wednesday,Xt.Thursday,Xt.Friday,Xt.Saturday];const x=C.indexOf(p(t.startOfWeek));return C=Av(C,7-x),f.sort((T,O)=>C.indexOf(T.startDay)-C.indexOf(O.startDay)),t.collapseDays&&(f=Wv(f,t.dayOfWeekNames)),at.jsx(at.Fragment,{children:e&&at.jsx("div",{className:Qs("HoursTable",t.className),children:f.map(T=>{const M=(t.intervalStringsBuilderFn||Kv)(T,t.timeOptions);return at.jsxs("div",{className:Qs("HoursTable-row",{"is-today":T.isToday}),children:[at.jsx("span",{className:"HoursTable-day",children:T.dayName}),at.jsx("span",{className:"HoursTable-intervals",children:M.map((A,v)=>at.jsx("span",{className:"HoursTable-interval",children:A},v))})]},T.dayName)})})})},od=Math.log2(1.6745627884839434),Gv=4,Yv=19,sd="js-baidu-neg-lng-fix";let r_;const Vv=new Promise(t=>r_=t),jv="https://api.map.baidu.com/geoconv/v1/";let Vl=[];const qv="gcj02ToBD09Callback_b872c21c";let Zv=0,ep;async function i_(t){return await new Promise((e,n)=>{Vl.push({coordinates:t,resolve:e,reject:n}),Vl.length===1&&(ep=setTimeout(r,100)),Vl.length>40&&(clearTimeout(ep),r());function r(){const c=Vl;Vl=[];const d=[].concat(...c.map(C=>C.coordinates)),f=qv+"_"+Zv++,p=document.createElement("script");window[f]=C=>{if(C.status){const O=new Error(`Unable to convert coordinates to BD-09: Received status code ${C.status}${C.message?": "+C.message:""}`);c.forEach(M=>M.reject(O))}const x=C.result.map(O=>new rn(O.y,O.x));let T=0;c.forEach(O=>{O.resolve(x.slice(T,T+=O.coordinates.length))}),delete window[f],p.parentNode.removeChild(p)},Vv.then(C=>{const x={ak:C,callback:f,coords:d.map(T=>`${T.longitude},${T.latitude}`).join(";"),from:3,to:5};p.src=jv+"?"+Object.entries(x).map(([T,O])=>T+"="+O).join("&"),document.head.appendChild(p)})}})}class Jv extends il{constructor(e){super(e);const n=!!(window.MSInputMethodContext&&document.documentMode);this._wrapper=e.wrapper,this.map=new BMap.Map(this._wrapper,{enableMapClick:e.controlEnabled,maxZoom:n?14:18,...e.providerOptions}),e.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.map.addEventListener("movestart",()=>this._panStartHandler()),this.map.addEventListener("moveend",()=>this._panHandler()),this.map.addEventListener("zoomstart",()=>this._panStartHandler()),this.map.addEventListener("zoomend",()=>{this._wrapper.dataset.baiduZoom=this.map.getZoom(),this._panHandler()}),this._centerReady=Promise.resolve()}getCenter(){return new rn(this.map.getCenter())}getZoom(){return this.map.getZoom()-od}setCenter(e,n){this._centerReady=i_([e]).then(([r])=>{const c=new BMap.Point(r.longitude,r.latitude);this.map.panTo(c,{noAnimation:!n})})}setZoom(e,n){this._centerReady.then(()=>{this.map.setViewport({center:this.map.getCenter(),zoom:Math.floor(e+od)},{enableAnimation:n})})}}class Xv extends gc{constructor(e){super(e),this._wrapper=null,this._zIndex=0,this._wrapperClass="",this._originalWrapperClass="",this._element=this._pinEl,this._coordinateReady=Promise.resolve(),this._negativeLngFix=!1;const n=this;class r extends BMap.Marker{initialize(f){return n._wrapper=super.initialize(f),n._wrapper&&(n._wrapper.style.zIndex=n._zIndex,n._originalWrapperClass=n._wrapper.getAttribute("class"),n._wrapper.setAttribute("class",n._getClass()),n._wrapper.appendChild(n._element),n.addListeners()),n._wrapper}draw(){if(n._wrapper){const f=n._wrapper.style.zIndex;super.draw(),n._wrapper.style.height="",n._wrapper.style.width="",n._wrapper.style.pointerEvents="none",n._wrapper.style.zIndex=f}else super.draw()}}this.pin=new r(new BMap.Point(0,0));const c=new BMap.Icon("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",{height:0,width:0});this.pin.setIcon(c),this.pin.setShadow(c)}addListeners(){super.addListeners(),this._wrapper.addEventListener("touchend",()=>this._clickHandler())}setCoordinate(e){this._coordinateReady=i_([e]).then(([n])=>{this._negativeLngFix=n.longitude<0,this.pin.setPosition(new BMap.Point(n.longitude+(this._negativeLngFix?180:0),n.latitude)),this._wrapper&&this._wrapper.classList[this._negativeLngFix?"add":"remove"](sd)})}setMap(e,n){this._coordinateReady.then(()=>{n&&n.getProviderMap().map.removeOverlay(this.pin),e&&e.getProviderMap().map.addOverlay(this.pin)})}setProperties(e){super.setProperties(e),this._wrapperClass=e.getClass(),this._element=e.getElement()||this._pinEl,this._zIndex=e.getZIndex(),this._wrapper&&this._wrapper.setAttribute("class",this._getClass())}_getClass(){return`${this._originalWrapperClass} ${this._negativeLngFix?sd:""} ${this._wrapperClass}`}}const Qv="https://api.map.baidu.com/getscript";function eS(t,e,n,{params:r={},version:c="3.0"}={}){window.BMAP_PROTOCOL="https",window.BMap_loadScriptTime=new Date().getTime();const d=n,f={ak:d,v:c,...r};r_(d);const p=document.createElement("script");p.src=Qv+"?"+Object.entries(f).map(([T,O])=>T+"="+O).join("&"),p.onload=()=>t(),document.head.appendChild(p);let C="";for(let T=Gv;T<=Yv;T++){const O=2**(T-od+7);C+=`[data-baidu-zoom="${T}"] .${sd}{transform:translateX(-${O}px);}`}const x=document.createElement("style");x.innerHTML=C,document.head.appendChild(x)}const tS=new hs().withLoadFunction(eS).withMapClass(Jv).withPinClass(Xv).withProviderName("Baidu").build();let o_;function nS(){class t extends Microsoft.Maps.CustomOverlay{constructor(){super({beneathLabels:!1}),this._container=document.createElement("div"),this._map=null,this._pins=new Set,this._viewChangeEventHandler=null,this._container.style.position="absolute",this._container.style.left="0",this._container.style.top="0"}addPin(n){this._pins.add(n),n._wrapper.style.position="absolute",this._container.appendChild(n._wrapper),this._map&&this.updatePinPosition(n)}onAdd(){this._map=this.getMap(),this.setHtmlElement(this._container)}onLoad(){this._viewChangeEventHandler=Microsoft.Maps.Events.addHandler(this._map,"viewchange",()=>this.updatePinPositions()),this.updatePinPositions()}onRemove(){Microsoft.Maps.Events.removeHandler(this._viewChangeEventHandler),this._map=null}removePin(n){this._pins.delete(n),this._container.removeChild(n._wrapper)}updatePinPosition(n){if(!this._map)return;const r=this._map.tryLocationToPixel(n._location,Microsoft.Maps.PixelReference.control);n._wrapper.style.left=r.x+"px",n._wrapper.style.top=r.y+"px"}updatePinPositions(){this._pins.forEach(n=>this.updatePinPosition(n))}}o_=t}class rS extends il{constructor(e){super(e),this.wrapper=e.wrapper,this.map=new Microsoft.Maps.Map(this.wrapper,{disablePanning:!e.controlEnabled,disableZooming:!e.controlEnabled,showLocateMeButton:!1,showMapTypeSelector:!1,showScalebar:!1,showTrafficButton:!1,...e.providerOptions}),this.pinOverlay=new o_(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(){return new rn(this.map.getCenter())}getZoom(){return this.map.getZoom()}setCenter(e,n){const r=new Microsoft.Maps.Location(e.latitude,e.longitude);this.map.setView({center:r}),this.pinOverlay.updatePinPositions()}setZoom(e,n){this.map.setView({zoom:Math.floor(e)}),this.pinOverlay.updatePinPositions()}}class iS extends gc{static getId(){return this._pinId=(this._pinId||0)+1,this._pinId}constructor(e){super(e),this._map=null,this._location=new Microsoft.Maps.Location(0,0)}setCoordinate(e){this._location=new Microsoft.Maps.Location(e.latitude,e.longitude),this._map&&this._map.getProviderMap().pinOverlay.updatePinPosition(this)}setMap(e,n){n&&n.getProviderMap().pinOverlay.removePin(this),e&&e.getProviderMap().pinOverlay.addPin(this),this._map=e}}const tp="BingMapsCallback_593d7d33",oS="https://www.bing.com/api/maps/mapcontrol";function sS(t,e,n,{params:r={}}={}){window[tp]=()=>{nS(),t()};const c={callback:tp,key:n,...r};fp(oS+"?"+Object.entries(c).map(([d,f])=>d+"="+f).join("&"))}const lS=new hs().withLoadFunction(sS).withMapClass(rS).withPinClass(iS).withProviderName("Bing").build();class aS extends il{constructor(e){if(super(e),this.map=new mapboxgl.Map({container:e.wrapper,interactive:e.controlEnabled,style:"mapbox://styles/mapbox/streets-v9",...e.providerOptions}),e.controlEnabled){const n=new mapboxgl.NavigationControl({showCompass:!1});this.map.addControl(n)}this.map.on("movestart",()=>this._panStartHandler()),this.map.on("moveend",()=>this._panHandler())}getCenter(){return new rn(this.map.getCenter())}getZoom(){return this.map.getZoom()+1}setCenter(e,n){const r=new mapboxgl.LngLat(e.longitude,e.latitude);this.map[n?"panTo":"setCenter"](r)}setZoom(e,n){this.map[n?"zoomTo":"setZoom"](e-1)}setZoomCenter(e,n,r){const c=new mapboxgl.LngLat(n.longitude,n.latitude);this.map[r?"easeTo":"jumpTo"]({center:c,zoom:e-1})}}class cS extends gc{constructor(e){super(e),this._wrapper.style.position="relative",this.pin=new mapboxgl.Marker({anchor:"top-left",element:this._wrapper})}setCoordinate(e){this.pin.setLngLat(new mapboxgl.LngLat(e.longitude,e.latitude))}setMap(e,n){e?this.pin.addTo(e.getProviderMap().map):this.pin.remove()}}function uS(t,e,n,{version:r="v1.13.0"}={}){const c=`https://api.mapbox.com/mapbox-gl-js/${r}/mapbox-gl`,d=document.createElement("link");d.rel="stylesheet",d.href=c+".css";const f=document.createElement("script");f.src=c+".js",f.onload=()=>{mapboxgl.accessToken=n,t()},document.head.appendChild(d),document.head.appendChild(f)}const dS=new hs().withLoadFunction(uS).withMapClass(aS).withPinClass(cS).withProviderName("Mapbox").build();let s_=class extends il{constructor(e){super(e),this._initMap(e),e.controlEnabled&&this.map.zoomControl.setPosition("topright"),this.map.on("movestart",()=>this._panStartHandler()),this.map.on("moveend",()=>this._panHandler())}getCenter(){return new rn(this.map.getCenter())}getZoom(){return this.map.getZoom()}setCenter(e,n){const r=new L.latLng(e.latitude,e.longitude);this.map.panTo(r,{animate:n})}setZoom(e,n){this.map.setZoom(e,{animate:n})}setZoomCenter(e,n,r){const c=new L.latLng(n.latitude,n.longitude);this.map.setView(c,e,{animate:r})}_initMap(e){this.map=new L.map(e.wrapper,{boxZoom:e.controlEnabled,doubleClickZoom:e.controlEnabled,dragging:e.controlEnabled,zoom:0,zoomControl:e.controlEnabled,zoomSnap:0,...e.providerOptions});const n=e.providerOptions,r=n.tileLayerSrc||"https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}",c=n.tileLayerOptions||{attribution:'Map data &copy; <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"};c.accessToken=this.constructor.apiKey,L.tileLayer(r,c).addTo(this.map)}},fS=class extends dd{constructor(e){super(e),this.pin=new L.marker,this.pin.on("click",()=>this._clickHandler()),this.pin.on("mouseover",()=>this._hoverHandler(!0)),this.pin.on("mouseout",()=>this._hoverHandler(!1))}setCoordinate(e){const n=new L.latLng(e.latitude,e.longitude);this.pin.setLatLng(n)}setMap(e,n){e?this.pin.addTo(e.getProviderMap().map):this.pin.remove()}setProperties(e){const n=e.getWidth(),r=e.getHeight(),c=e.getAnchorX(),d=e.getAnchorY();this.pin.setIcon(new L.icon({iconUrl:this._icons[e.getIcon()],iconSize:[n,r],iconAnchor:[c*n,d*r],className:e.getClass()})),this.pin.setZIndexOffset(e.getZIndex())}};function hS(t,e,n,{version:r="1.7.1"}={}){const c=`https://unpkg.com/leaflet@${r}/dist/leaflet`;s_.apiKey=n;const d=document.createElement("link");d.rel="stylesheet",d.href=c+".css";const f=document.createElement("script");f.src=c+".js",f.onload=()=>t(),document.head.appendChild(d),document.head.appendChild(f)}const Fd=new hs().withLoadFunction(hS).withMapClass(s_).withPinClass(fS).withProviderName("Leaflet").build(),gS=Fd.getMapClass(),pS=Fd.getPinClass();class mS extends gS{_initMap(e){this.map=L.mapquest.map(e.wrapper,{boxZoom:e.controlEnabled,center:new L.latLng(0,0),doubleClickZoom:e.controlEnabled,dragging:e.controlEnabled,layers:L.mapquest.tileLayer("map"),zoom:0,zoomControl:e.controlEnabled,zoomSnap:0,...e.providerOptions})}}class _S extends pS{}function yS(t,e,n,{version:r="v1.3.2"}={}){const c=`https://api.mqcdn.com/sdk/mapquest-js/${r}/mapquest-maps`,d=document.createElement("link");d.rel="stylesheet",d.href=c+".css";const f=document.createElement("script");f.src=c+".js",f.onload=()=>{L.mapquest.key=n,t()},document.head.appendChild(d),document.head.appendChild(f)}const CS=new hs().withLoadFunction(yS).withMapClass(mS).withPinClass(_S).withProviderName("MapQuest").build();exports.Address=X_;exports.Analytics=lp;exports.AnalyticsContext=cd;exports.AnalyticsProvider=Ry;exports.AnalyticsScopeProvider=Sy;exports.BaiduMaps=tS;exports.BingMaps=lS;exports.Clusterer=sC;exports.Day=Xt;exports.GoogleMaps=fd;exports.HoursStatus=Hv;exports.HoursTable=zv;exports.Image=Py;exports.ImageLayoutOption=Ro;exports.LeafletMaps=Fd;exports.LegacyRichText=AT;exports.LexicalRichText=UN;exports.Link=dp;exports.LinkTypes=zy;exports.ListingPublisherOption=np;exports.LocationMap=_p;exports.Map=gd;exports.MapProviderOption=Uu;exports.MapQuestMaps=CS;exports.MapboxMaps=dS;exports.Marker=mc;exports.asciiAlpha=eE;exports.asciiAlphanumeric=Xu;exports.asciiAtext=tE;exports.asciiControl=nE;exports.asciiDigit=rE;exports.asciiHexDigit=iE;exports.asciiPunctuation=oE;exports.c=Qs;exports.classifyCharacter=Ql;exports.combineExtensions=Kp;exports.createState=NT;exports.getDefaultExportFromCjs=hc;exports.getDirections=V_;exports.getRuntime=Mo;exports.jsxRuntimeExports=at;exports.markdownLineEnding=sE;exports.markdownLineEndingOrSpace=qp;exports.markdownSpace=lE;exports.normalizeUri=sl;exports.push=qs;exports.resolveAll=Zp;exports.splice=_c;exports.useAnalytics=rl;exports.useClusterContext=oC;exports.useIdentify=Dy;exports.useMapContext=rC;exports.usePageView=Oy;exports.useScope=ud;exports.useTrack=wy;exports.visit=Dd;
103
+ `}),n}const ST=(t,e)=>t(e,"i",io(t,e)),wT=(t,e)=>t(e,"b",io(t,e)),OT=(t,e)=>t(e,"u",io(t,e)),DT=(t,e)=>t(e,"s",io(t,e)),bT=(t,e)=>t(e,"sub",io(t,e)),RT=(t,e)=>t(e,"sup",io(t,e)),MT={emphasis:ST,strong:wT,underline:OT,strikethrough:DT,subscript:bT,superscript:RT},AT=t=>{const[e,n]=rt.useState();let r;return rt.useEffect(()=>{(async()=>{if(!r)try{r=(await Promise.resolve().then(()=>require("./index-5cVqTMnt.cjs"))).default}catch{throw new Error("Failed to import React Markdown, cannot properly render LegacyRichText.")}const d=r({children:t.markdown,remarkPlugins:[PE],remarkRehypeOptions:{handlers:MT}});n(d)})()},[t.markdown]),e||null};class ps extends Error{}class kT extends ps{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class LT extends ps{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class IT extends ps{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Zs extends ps{}class rm extends ps{constructor(e){super(`Invalid unit ${e}`)}}class vr extends ps{}class wo extends ps{constructor(){super("Zone is an abstract class")}}const it="numeric",mi="short",Lr="long",cc={year:it,month:it,day:it},im={year:it,month:mi,day:it},PT={year:it,month:mi,day:it,weekday:mi},om={year:it,month:Lr,day:it},sm={year:it,month:Lr,day:it,weekday:Lr},lm={hour:it,minute:it},am={hour:it,minute:it,second:it},cm={hour:it,minute:it,second:it,timeZoneName:mi},um={hour:it,minute:it,second:it,timeZoneName:Lr},dm={hour:it,minute:it,hourCycle:"h23"},fm={hour:it,minute:it,second:it,hourCycle:"h23"},hm={hour:it,minute:it,second:it,hourCycle:"h23",timeZoneName:mi},gm={hour:it,minute:it,second:it,hourCycle:"h23",timeZoneName:Lr},pm={year:it,month:it,day:it,hour:it,minute:it},mm={year:it,month:it,day:it,hour:it,minute:it,second:it},_m={year:it,month:mi,day:it,hour:it,minute:it},ym={year:it,month:mi,day:it,hour:it,minute:it,second:it},$T={year:it,month:mi,day:it,weekday:mi,hour:it,minute:it},Cm={year:it,month:Lr,day:it,hour:it,minute:it,timeZoneName:mi},Nm={year:it,month:Lr,day:it,hour:it,minute:it,second:it,timeZoneName:mi},Em={year:it,month:Lr,day:it,weekday:Lr,hour:it,minute:it,timeZoneName:Lr},Tm={year:it,month:Lr,day:it,weekday:Lr,hour:it,minute:it,second:it,timeZoneName:Lr};class ta{get type(){throw new wo}get name(){throw new wo}get ianaName(){return this.name}get isUniversal(){throw new wo}offsetName(e,n){throw new wo}formatOffset(e,n){throw new wo}offset(e){throw new wo}equals(e){throw new wo}get isValid(){throw new wo}}let ku=null;class Nc extends ta{static get instance(){return ku===null&&(ku=new Nc),ku}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Mm(e,n,r)}formatOffset(e,n){return Jl(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let ic={};function FT(t){return ic[t]||(ic[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),ic[t]}const BT={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function HT(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,c,d,f,p,C,x,T]=r;return[f,c,d,p,C,x,T]}function WT(t,e){const n=t.formatToParts(e),r=[];for(let c=0;c<n.length;c++){const{type:d,value:f}=n[c],p=BT[d];d==="era"?r[p]=f:kt(p)||(r[p]=parseInt(f,10))}return r}let Za={};class ro extends ta{static create(e){return Za[e]||(Za[e]=new ro(e)),Za[e]}static resetCache(){Za={},ic={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=ro.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return Mm(e,n,r,this.name)}formatOffset(e,n){return Jl(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const r=FT(this.name);let[c,d,f,p,C,x,T]=r.formatToParts?WT(r,n):HT(r,n);p==="BC"&&(c=-Math.abs(c)+1);const M=Tc({year:c,month:d,day:f,hour:C===24?0:C,minute:x,second:T,millisecond:0});let A=+n;const v=A%1e3;return A-=v>=0?v:1e3+v,(M-A)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let xg={};function KT(t,e={}){const n=JSON.stringify([t,e]);let r=xg[n];return r||(r=new Intl.ListFormat(t,e),xg[n]=r),r}let Qu={};function ed(t,e={}){const n=JSON.stringify([t,e]);let r=Qu[n];return r||(r=new Intl.DateTimeFormat(t,e),Qu[n]=r),r}let td={};function UT(t,e={}){const n=JSON.stringify([t,e]);let r=td[n];return r||(r=new Intl.NumberFormat(t,e),td[n]=r),r}let nd={};function zT(t,e={}){const{base:n,...r}=e,c=JSON.stringify([t,r]);let d=nd[c];return d||(d=new Intl.RelativeTimeFormat(t,e),nd[c]=d),d}let jl=null;function GT(){return jl||(jl=new Intl.DateTimeFormat().resolvedOptions().locale,jl)}let vg={};function YT(t){let e=vg[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,vg[t]=e}return e}function VT(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,c;try{r=ed(t).resolvedOptions(),c=t}catch{const C=t.substring(0,n);r=ed(C).resolvedOptions(),c=C}const{numberingSystem:d,calendar:f}=r;return[c,d,f]}}function jT(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function qT(t){const e=[];for(let n=1;n<=12;n++){const r=Dt.utc(2009,n,1);e.push(t(r))}return e}function ZT(t){const e=[];for(let n=1;n<=7;n++){const r=Dt.utc(2016,11,13+n);e.push(t(r))}return e}function Ja(t,e,n,r){const c=t.listingMode();return c==="error"?null:c==="en"?n(e):r(e)}function JT(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class XT{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:c,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=UT(e,p)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):Ad(e,3);return Fn(n,this.padTo)}}}class QT{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let c;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const f=-1*(e.offset/60),p=f>=0?`Etc/GMT+${f}`:`Etc/GMT${f}`;e.offset!==0&&ro.create(p).valid?(c=p,this.dt=e):(c="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,c=e.zone.name):(c="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const d={...this.opts};d.timeZone=d.timeZone||c,this.dtf=ed(n,d)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.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}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class ex{constructor(e,n,r){this.opts={style:"long",...r},!n&&bm()&&(this.rtf=zT(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):Nx(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const tx={firstDay:1,minimalDays:4,weekend:[6,7]};class en{static fromOpts(e){return en.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,c,d=!1){const f=e||kn.defaultLocale,p=f||(d?"en-US":GT()),C=n||kn.defaultNumberingSystem,x=r||kn.defaultOutputCalendar,T=rd(c)||kn.defaultWeekSettings;return new en(p,C,x,T,f)}static resetCache(){jl=null,Qu={},td={},nd={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:c}={}){return en.create(e,n,r,c)}constructor(e,n,r,c,d){const[f,p,C]=VT(e);this.locale=f,this.numberingSystem=n||p||null,this.outputCalendar=r||C||null,this.weekSettings=c,this.intl=jT(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=JT(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:en.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,rd(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return Ja(this,e,Lm,()=>{const r=n?{month:e,day:"numeric"}:{month:e},c=n?"format":"standalone";return this.monthsCache[c][e]||(this.monthsCache[c][e]=qT(d=>this.extract(d,r,"month"))),this.monthsCache[c][e]})}weekdays(e,n=!1){return Ja(this,e,$m,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},c=n?"format":"standalone";return this.weekdaysCache[c][e]||(this.weekdaysCache[c][e]=ZT(d=>this.extract(d,r,"weekday"))),this.weekdaysCache[c][e]})}meridiems(){return Ja(this,void 0,()=>Fm,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Dt.utc(2016,11,13,9),Dt.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Ja(this,e,Bm,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[Dt.utc(-40,1,1),Dt.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){const c=this.dtFormatter(e,n),d=c.formatToParts(),f=d.find(p=>p.type.toLowerCase()===r);return f?f.value:null}numberFormatter(e={}){return new XT(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new QT(e,this.intl,n)}relFormatter(e={}){return new ex(this.intl,this.isEnglish(),e)}listFormatter(e={}){return KT(this.intl,e)}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:Rm()?YT(this.locale):tx}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Lu=null;class dr extends ta{static get utcInstance(){return Lu===null&&(Lu=new dr(0)),Lu}static instance(e){return e===0?dr.utcInstance:new dr(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new dr(xc(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Jl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Jl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Jl(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class nx extends ta{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function bo(t,e){if(kt(t)||t===null)return e;if(t instanceof ta)return t;if(ox(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Nc.instance:n==="utc"||n==="gmt"?dr.utcInstance:dr.parseSpecifier(n)||ro.create(t)}else return fs(t)?dr.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new nx(t)}let Sg=()=>Date.now(),wg="system",Og=null,Dg=null,bg=null,Rg=60,Mg,Ag=null;class kn{static get now(){return Sg}static set now(e){Sg=e}static set defaultZone(e){wg=e}static get defaultZone(){return bo(wg,Nc.instance)}static get defaultLocale(){return Og}static set defaultLocale(e){Og=e}static get defaultNumberingSystem(){return Dg}static set defaultNumberingSystem(e){Dg=e}static get defaultOutputCalendar(){return bg}static set defaultOutputCalendar(e){bg=e}static get defaultWeekSettings(){return Ag}static set defaultWeekSettings(e){Ag=rd(e)}static get twoDigitCutoffYear(){return Rg}static set twoDigitCutoffYear(e){Rg=e%100}static get throwOnInvalid(){return Mg}static set throwOnInvalid(e){Mg=e}static resetCaches(){en.resetCache(),ro.resetCache()}}class pi{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const xm=[0,31,59,90,120,151,181,212,243,273,304,334],vm=[0,31,60,91,121,152,182,213,244,274,305,335];function qr(t,e){return new pi("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function bd(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const c=r.getUTCDay();return c===0?7:c}function Sm(t,e,n){return n+(na(t)?vm:xm)[e-1]}function wm(t,e){const n=na(t)?vm:xm,r=n.findIndex(d=>d<e),c=e-n[r];return{month:r+1,day:c}}function Rd(t,e){return(t-e+7)%7+1}function uc(t,e=4,n=1){const{year:r,month:c,day:d}=t,f=Sm(r,c,d),p=Rd(bd(r,c,d),n);let C=Math.floor((f-p+14-e)/7),x;return C<1?(x=r-1,C=ea(x,e,n)):C>ea(r,e,n)?(x=r+1,C=1):x=r,{weekYear:x,weekNumber:C,weekday:p,...vc(t)}}function kg(t,e=4,n=1){const{weekYear:r,weekNumber:c,weekday:d}=t,f=Rd(bd(r,1,e),n),p=Js(r);let C=c*7+d-f-7+e,x;C<1?(x=r-1,C+=Js(x)):C>p?(x=r+1,C-=Js(r)):x=r;const{month:T,day:O}=wm(x,C);return{year:x,month:T,day:O,...vc(t)}}function Iu(t){const{year:e,month:n,day:r}=t,c=Sm(e,n,r);return{year:e,ordinal:c,...vc(t)}}function Lg(t){const{year:e,ordinal:n}=t,{month:r,day:c}=wm(e,n);return{year:e,month:r,day:c,...vc(t)}}function Ig(t,e){if(!kt(t.localWeekday)||!kt(t.localWeekNumber)||!kt(t.localWeekYear)){if(!kt(t.weekday)||!kt(t.weekNumber)||!kt(t.weekYear))throw new Zs("Cannot mix locale-based week fields with ISO-based week fields");return kt(t.localWeekday)||(t.weekday=t.localWeekday),kt(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),kt(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function rx(t,e=4,n=1){const r=Ec(t.weekYear),c=Zr(t.weekNumber,1,ea(t.weekYear,e,n)),d=Zr(t.weekday,1,7);return r?c?d?!1:qr("weekday",t.weekday):qr("week",t.weekNumber):qr("weekYear",t.weekYear)}function ix(t){const e=Ec(t.year),n=Zr(t.ordinal,1,Js(t.year));return e?n?!1:qr("ordinal",t.ordinal):qr("year",t.year)}function Om(t){const e=Ec(t.year),n=Zr(t.month,1,12),r=Zr(t.day,1,dc(t.year,t.month));return e?n?r?!1:qr("day",t.day):qr("month",t.month):qr("year",t.year)}function Dm(t){const{hour:e,minute:n,second:r,millisecond:c}=t,d=Zr(e,0,23)||e===24&&n===0&&r===0&&c===0,f=Zr(n,0,59),p=Zr(r,0,59),C=Zr(c,0,999);return d?f?p?C?!1:qr("millisecond",c):qr("second",r):qr("minute",n):qr("hour",e)}function kt(t){return typeof t>"u"}function fs(t){return typeof t=="number"}function Ec(t){return typeof t=="number"&&t%1===0}function ox(t){return typeof t=="string"}function sx(t){return Object.prototype.toString.call(t)==="[object Date]"}function bm(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Rm(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function lx(t){return Array.isArray(t)?t:[t]}function Pg(t,e,n){if(t.length!==0)return t.reduce((r,c)=>{const d=[e(c),c];return r&&n(r[0],d[0])===r[0]?r:d},null)[1]}function ax(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function el(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function rd(t){if(t==null)return null;if(typeof t!="object")throw new vr("Week settings must be an object");if(!Zr(t.firstDay,1,7)||!Zr(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Zr(e,1,7)))throw new vr("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Zr(t,e,n){return Ec(t)&&t>=e&&t<=n}function cx(t,e){return t-e*Math.floor(t/e)}function Fn(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function Do(t){if(!(kt(t)||t===null||t===""))return parseInt(t,10)}function ss(t){if(!(kt(t)||t===null||t===""))return parseFloat(t)}function Md(t){if(!(kt(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function Ad(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function na(t){return t%4===0&&(t%100!==0||t%400===0)}function Js(t){return na(t)?366:365}function dc(t,e){const n=cx(e-1,12)+1,r=t+(e-n)/12;return n===2?na(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Tc(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function $g(t,e,n){return-Rd(bd(t,1,e),n)+e-1}function ea(t,e=4,n=1){const r=$g(t,e,n),c=$g(t+1,e,n);return(Js(t)-r+c)/7}function id(t){return t>99?t:t>kn.twoDigitCutoffYear?1900+t:2e3+t}function Mm(t,e,n,r=null){const c=new Date(t),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(d.timeZone=r);const f={timeZoneName:e,...d},p=new Intl.DateTimeFormat(n,f).formatToParts(c).find(C=>C.type.toLowerCase()==="timezonename");return p?p.value:null}function xc(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,c=n<0||Object.is(n,-0)?-r:r;return n*60+c}function Am(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new vr(`Invalid unit value ${t}`);return e}function fc(t,e){const n={};for(const r in t)if(el(t,r)){const c=t[r];if(c==null)continue;n[e(r)]=Am(c)}return n}function Jl(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),c=t>=0?"+":"-";switch(e){case"short":return`${c}${Fn(n,2)}:${Fn(r,2)}`;case"narrow":return`${c}${n}${r>0?`:${r}`:""}`;case"techie":return`${c}${Fn(n,2)}${Fn(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function vc(t){return ax(t,["hour","minute","second","millisecond"])}const ux=["January","February","March","April","May","June","July","August","September","October","November","December"],km=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dx=["J","F","M","A","M","J","J","A","S","O","N","D"];function Lm(t){switch(t){case"narrow":return[...dx];case"short":return[...km];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 Im=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Pm=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],fx=["M","T","W","T","F","S","S"];function $m(t){switch(t){case"narrow":return[...fx];case"short":return[...Pm];case"long":return[...Im];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Fm=["AM","PM"],hx=["Before Christ","Anno Domini"],gx=["BC","AD"],px=["B","A"];function Bm(t){switch(t){case"narrow":return[...px];case"short":return[...gx];case"long":return[...hx];default:return null}}function mx(t){return Fm[t.hour<12?0:1]}function _x(t,e){return $m(e)[t.weekday-1]}function yx(t,e){return Lm(e)[t.month-1]}function Cx(t,e){return Bm(e)[t.year<0?0:1]}function Nx(t,e,n="always",r=!1){const c={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(t)===-1;if(n==="auto"&&d){const O=t==="days";switch(e){case 1:return O?"tomorrow":`next ${c[t][0]}`;case-1:return O?"yesterday":`last ${c[t][0]}`;case 0:return O?"today":`this ${c[t][0]}`}}const f=Object.is(e,-0)||e<0,p=Math.abs(e),C=p===1,x=c[t],T=r?C?x[1]:x[2]||x[1]:C?c[t][0]:t;return f?`${p} ${T} ago`:`in ${p} ${T}`}function Fg(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const Ex={D:cc,DD:im,DDD:om,DDDD:sm,t:lm,tt:am,ttt:cm,tttt:um,T:dm,TT:fm,TTT:hm,TTTT:gm,f:pm,ff:_m,fff:Cm,ffff:Em,F:mm,FF:ym,FFF:Nm,FFFF:Tm};class sr{static create(e,n={}){return new sr(e,n)}static parseFormat(e){let n=null,r="",c=!1;const d=[];for(let f=0;f<e.length;f++){const p=e.charAt(f);p==="'"?(r.length>0&&d.push({literal:c||/^\s+$/.test(r),val:r}),n=null,r="",c=!c):c||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:c||/^\s+$/.test(r),val:r}),d}static macroTokenToFormatOpts(e){return Ex[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return Fn(e,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",c=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=(A,v)=>this.loc.extract(e,A,v),f=A=>e.isOffsetFixed&&e.offset===0&&A.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,A.format):"",p=()=>r?mx(e):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),C=(A,v)=>r?yx(e,A):d(v?{month:A}:{month:A,day:"numeric"},"month"),x=(A,v)=>r?_x(e,A):d(v?{weekday:A}:{weekday:A,month:"long",day:"numeric"},"weekday"),T=A=>{const v=sr.macroTokenToFormatOpts(A);return v?this.formatWithSystemDefault(e,v):A},O=A=>r?Cx(e,A):d({era:A},"era"),M=A=>{switch(A){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return 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 e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return p();case"d":return c?d({day:"numeric"},"day"):this.num(e.day);case"dd":return c?d({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return x("short",!0);case"cccc":return x("long",!0);case"ccccc":return x("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return x("short",!1);case"EEEE":return x("long",!1);case"EEEEE":return x("narrow",!1);case"L":return c?d({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return c?d({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return C("short",!0);case"LLLL":return C("long",!0);case"LLLLL":return C("narrow",!0);case"M":return c?d({month:"numeric"},"month"):this.num(e.month);case"MM":return c?d({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return C("short",!1);case"MMMM":return C("long",!1);case"MMMMM":return C("narrow",!1);case"y":return c?d({year:"numeric"},"year"):this.num(e.year);case"yy":return c?d({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return c?d({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return c?d({year:"numeric"},"year"):this.num(e.year,6);case"G":return O("short");case"GG":return O("long");case"GGGGG":return O("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return T(A)}};return Fg(sr.parseFormat(n),M)}formatDurationFromString(e,n){const r=C=>{switch(C[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}},c=C=>x=>{const T=r(x);return T?this.num(C.get(T),x.length):x},d=sr.parseFormat(n),f=d.reduce((C,{literal:x,val:T})=>x?C:C.concat(T),[]),p=e.shiftTo(...f.map(r).filter(C=>C));return Fg(d,c(p))}}const Hm=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function ll(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function al(...t){return e=>t.reduce(([n,r,c],d)=>{const[f,p,C]=d(e,c);return[{...n,...f},p||r,C]},[{},null,1]).slice(0,2)}function cl(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const c=n.exec(t);if(c)return r(c)}return[null,null]}function Wm(...t){return(e,n)=>{const r={};let c;for(c=0;c<t.length;c++)r[t[c]]=Do(e[n+c]);return[r,null,n+c]}}const Km=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Tx=`(?:${Km.source}?(?:\\[(${Hm.source})\\])?)?`,kd=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Um=RegExp(`${kd.source}${Tx}`),Ld=RegExp(`(?:T${Um.source})?`),xx=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,vx=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Sx=/(\d{4})-?(\d{3})/,wx=Wm("weekYear","weekNumber","weekDay"),Ox=Wm("year","ordinal"),Dx=/(\d{4})-(\d\d)-(\d\d)/,zm=RegExp(`${kd.source} ?(?:${Km.source}|(${Hm.source}))?`),bx=RegExp(`(?: ${zm.source})?`);function Xs(t,e,n){const r=t[e];return kt(r)?n:Do(r)}function Rx(t,e){return[{year:Xs(t,e),month:Xs(t,e+1,1),day:Xs(t,e+2,1)},null,e+3]}function ul(t,e){return[{hours:Xs(t,e,0),minutes:Xs(t,e+1,0),seconds:Xs(t,e+2,0),milliseconds:Md(t[e+3])},null,e+4]}function ra(t,e){const n=!t[e]&&!t[e+1],r=xc(t[e+1],t[e+2]),c=n?null:dr.instance(r);return[{},c,e+3]}function ia(t,e){const n=t[e]?ro.create(t[e]):null;return[{},n,e+1]}const Mx=RegExp(`^T?${kd.source}$`),Ax=/^-?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 kx(t){const[e,n,r,c,d,f,p,C,x]=t,T=e[0]==="-",O=C&&C[0]==="-",M=(A,v=!1)=>A!==void 0&&(v||A&&T)?-A:A;return[{years:M(ss(n)),months:M(ss(r)),weeks:M(ss(c)),days:M(ss(d)),hours:M(ss(f)),minutes:M(ss(p)),seconds:M(ss(C),C==="-0"),milliseconds:M(Md(x),O)}]}const Lx={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 Id(t,e,n,r,c,d,f){const p={year:e.length===2?id(Do(e)):Do(e),month:km.indexOf(n)+1,day:Do(r),hour:Do(c),minute:Do(d)};return f&&(p.second=Do(f)),t&&(p.weekday=t.length>3?Im.indexOf(t)+1:Pm.indexOf(t)+1),p}const Ix=/^(?:(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 Px(t){const[,e,n,r,c,d,f,p,C,x,T,O]=t,M=Id(e,c,r,n,d,f,p);let A;return C?A=Lx[C]:x?A=0:A=xc(T,O),[M,new dr(A)]}function $x(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Fx=/^(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$/,Bx=/^(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$/,Hx=/^(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 Bg(t){const[,e,n,r,c,d,f,p]=t;return[Id(e,c,r,n,d,f,p),dr.utcInstance]}function Wx(t){const[,e,n,r,c,d,f,p]=t;return[Id(e,p,n,r,c,d,f),dr.utcInstance]}const Kx=ll(xx,Ld),Ux=ll(vx,Ld),zx=ll(Sx,Ld),Gx=ll(Um),Gm=al(Rx,ul,ra,ia),Yx=al(wx,ul,ra,ia),Vx=al(Ox,ul,ra,ia),jx=al(ul,ra,ia);function qx(t){return cl(t,[Kx,Gm],[Ux,Yx],[zx,Vx],[Gx,jx])}function Zx(t){return cl($x(t),[Ix,Px])}function Jx(t){return cl(t,[Fx,Bg],[Bx,Bg],[Hx,Wx])}function Xx(t){return cl(t,[Ax,kx])}const Qx=al(ul);function ev(t){return cl(t,[Mx,Qx])}const tv=ll(Dx,bx),nv=ll(zm),rv=al(ul,ra,ia);function iv(t){return cl(t,[tv,Gm],[nv,rv])}const Hg="Invalid Duration",Ym={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}},ov={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},...Ym},Vr=146097/400,Vs=146097/4800,sv={years:{quarters:4,months:12,weeks:Vr/7,days:Vr,hours:Vr*24,minutes:Vr*24*60,seconds:Vr*24*60*60,milliseconds:Vr*24*60*60*1e3},quarters:{months:3,weeks:Vr/28,days:Vr/4,hours:Vr*24/4,minutes:Vr*24*60/4,seconds:Vr*24*60*60/4,milliseconds:Vr*24*60*60*1e3/4},months:{weeks:Vs/7,days:Vs,hours:Vs*24,minutes:Vs*24*60,seconds:Vs*24*60*60,milliseconds:Vs*24*60*60*1e3},...Ym},ds=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],lv=ds.slice(0).reverse();function Oo(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Vt(r)}function Vm(t,e){let n=e.milliseconds??0;for(const r of lv.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function Wg(t,e){const n=Vm(t,e)<0?-1:1;ds.reduceRight((r,c)=>{if(kt(e[c]))return r;if(r){const d=e[r]*n,f=t[c][r],p=Math.floor(d/f);e[c]+=p*n,e[r]-=p*f*n}return c},null),ds.reduce((r,c)=>{if(kt(e[c]))return r;if(r){const d=e[r]%1;e[r]-=d,e[c]+=d*t[r][c]}return c},null)}function av(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class Vt{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?sv:ov;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||en.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return Vt.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new vr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Vt({values:fc(e,Vt.normalizeUnit),loc:en.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(fs(e))return Vt.fromMillis(e);if(Vt.isDuration(e))return e;if(typeof e=="object")return Vt.fromObject(e);throw new vr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=Xx(e);return r?Vt.fromObject(r,n):Vt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=ev(e);return r?Vt.fromObject(r,n):Vt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new vr("need to specify a reason the Duration is invalid");const r=e instanceof pi?e:new pi(e,n);if(kn.throwOnInvalid)throw new IT(r);return new Vt({invalid:r})}static normalizeUnit(e){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"}[e&&e.toLowerCase()];if(!n)throw new rm(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?sr.create(this.loc,r).formatDurationFromString(this,e):Hg}toHuman(e={}){if(!this.isValid)return Hg;const n=ds.map(r=>{const c=this.values[r];return kt(c)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:r.slice(0,-1)}).format(c)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Ad(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Dt.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Vm(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=Vt.fromDurationLike(e),r={};for(const c of ds)(el(n.values,c)||el(this.values,c))&&(r[c]=n.get(c)+this.get(c));return Oo(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=Vt.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Am(e(this.values[r],r));return Oo(this,{values:n},!0)}get(e){return this[Vt.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...fc(e,Vt.normalizeUnit)};return Oo(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:c}={}){const f={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:c,conversionAccuracy:r};return Oo(this,f)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Wg(this.matrix,e),Oo(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=av(this.normalize().shiftToAll().toObject());return Oo(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(f=>Vt.normalizeUnit(f));const n={},r={},c=this.toObject();let d;for(const f of ds)if(e.indexOf(f)>=0){d=f;let p=0;for(const x in r)p+=this.matrix[x][f]*r[x],r[x]=0;fs(c[f])&&(p+=c[f]);const C=Math.trunc(p);n[f]=C,r[f]=(p*1e3-C*1e3)/1e3}else fs(c[f])&&(r[f]=c[f]);for(const f in r)r[f]!==0&&(n[d]+=f===d?r[f]:r[f]/this.matrix[d][f]);return Wg(this.matrix,n),Oo(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 e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Oo(this,{values:e},!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(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,c){return r===void 0||r===0?c===void 0||c===0:r===c}for(const r of ds)if(!n(this.values[r],e.values[r]))return!1;return!0}}const js="Invalid Interval";function cv(t,e){return!t||!t.isValid?wn.invalid("missing or invalid start"):!e||!e.isValid?wn.invalid("missing or invalid end"):e<t?wn.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class wn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new vr("need to specify a reason the Interval is invalid");const r=e instanceof pi?e:new pi(e,n);if(kn.throwOnInvalid)throw new LT(r);return new wn({invalid:r})}static fromDateTimes(e,n){const r=Yl(e),c=Yl(n),d=cv(r,c);return d??new wn({start:r,end:c})}static after(e,n){const r=Vt.fromDurationLike(n),c=Yl(e);return wn.fromDateTimes(c,c.plus(r))}static before(e,n){const r=Vt.fromDurationLike(n),c=Yl(e);return wn.fromDateTimes(c.minus(r),c)}static fromISO(e,n){const[r,c]=(e||"").split("/",2);if(r&&c){let d,f;try{d=Dt.fromISO(r,n),f=d.isValid}catch{f=!1}let p,C;try{p=Dt.fromISO(c,n),C=p.isValid}catch{C=!1}if(f&&C)return wn.fromDateTimes(d,p);if(f){const x=Vt.fromISO(c,n);if(x.isValid)return wn.after(d,x)}else if(C){const x=Vt.fromISO(r,n);if(x.isValid)return wn.before(p,x)}}return wn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(e,n);let c;return n!=null&&n.useLocaleWeeks?c=this.end.reconfigure({locale:r.locale}):c=this.end,c=c.startOf(e,n),Math.floor(c.diff(r,e).get(e))+(c.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?wn.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Yl).filter(f=>this.contains(f)).sort((f,p)=>f.toMillis()-p.toMillis()),r=[];let{s:c}=this,d=0;for(;c<this.e;){const f=n[d]||this.e,p=+f>+this.e?this.e:f;r.push(wn.fromDateTimes(c,p)),c=p,d+=1}return r}splitBy(e){const n=Vt.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,c=1,d;const f=[];for(;r<this.e;){const p=this.start.plus(n.mapUnits(C=>C*c));d=+p>+this.e?this.e:p,f.push(wn.fromDateTimes(r,d)),r=d,c+=1}return f}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:wn.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return wn.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((c,d)=>c.s-d.s).reduce(([c,d],f)=>d?d.overlaps(f)||d.abutsStart(f)?[c,d.union(f)]:[c.concat([d]),f]:[c,f],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const c=[],d=e.map(C=>[{time:C.s,type:"s"},{time:C.e,type:"e"}]),f=Array.prototype.concat(...d),p=f.sort((C,x)=>C.time-x.time);for(const C of p)r+=C.type==="s"?1:-1,r===1?n=C.time:(n&&+n!=+C.time&&c.push(wn.fromDateTimes(n,C.time)),n=null);return wn.merge(c)}difference(...e){return wn.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:js}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=cc,n={}){return this.isValid?sr.create(this.s.loc.clone(n),e).formatInterval(this):js}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:js}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:js}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:js}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:js}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):Vt.invalid(this.invalidReason)}mapEndpoints(e){return wn.fromDateTimes(e(this.s),e(this.e))}}class Xa{static hasDST(e=kn.defaultZone){const n=Dt.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return ro.isValidZone(e)}static normalizeZone(e){return bo(e,kn.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||en.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||en.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||en.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:c=null,outputCalendar:d="gregory"}={}){return(c||en.create(n,r,d)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:c=null,outputCalendar:d="gregory"}={}){return(c||en.create(n,r,d)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:c=null}={}){return(c||en.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:c=null}={}){return(c||en.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return en.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return en.create(n,null,"gregory").eras(e)}static features(){return{relative:bm(),localeWeek:Rm()}}}function Kg(t,e){const n=c=>c.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(Vt.fromMillis(r).as("days"))}function uv(t,e,n){const r=[["years",(C,x)=>x.year-C.year],["quarters",(C,x)=>x.quarter-C.quarter+(x.year-C.year)*4],["months",(C,x)=>x.month-C.month+(x.year-C.year)*12],["weeks",(C,x)=>{const T=Kg(C,x);return(T-T%7)/7}],["days",Kg]],c={},d=t;let f,p;for(const[C,x]of r)n.indexOf(C)>=0&&(f=C,c[C]=x(t,e),p=d.plus(c),p>e?(c[C]--,t=d.plus(c),t>e&&(p=t,c[C]--,t=d.plus(c))):t=p);return[t,c,p,f]}function dv(t,e,n,r){let[c,d,f,p]=uv(t,e,n);const C=e-c,x=n.filter(O=>["hours","minutes","seconds","milliseconds"].indexOf(O)>=0);x.length===0&&(f<e&&(f=c.plus({[p]:1})),f!==c&&(d[p]=(d[p]||0)+C/(f-c)));const T=Vt.fromObject(d,r);return x.length>0?Vt.fromMillis(C,r).shiftTo(...x).plus(T):T}const Pd={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Ug={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]},fv=Pd.hanidec.replace(/[\[|\]]/g,"").split("");function hv(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(Pd.hanidec)!==-1)e+=fv.indexOf(t[n]);else for(const c in Ug){const[d,f]=Ug[c];r>=d&&r<=f&&(e+=r-d)}}return parseInt(e,10)}else return e}function hi({numberingSystem:t},e=""){return new RegExp(`${Pd[t||"latn"]}${e}`)}const gv="missing Intl.DateTimeFormat.formatToParts support";function Jt(t,e=n=>n){return{regex:t,deser:([n])=>e(hv(n))}}const pv=" ",jm=`[ ${pv}]`,qm=new RegExp(jm,"g");function mv(t){return t.replace(/\./g,"\\.?").replace(qm,jm)}function zg(t){return t.replace(/\./g,"").replace(qm," ").toLowerCase()}function gi(t,e){return t===null?null:{regex:RegExp(t.map(mv).join("|")),deser:([n])=>t.findIndex(r=>zg(n)===zg(r))+e}}function Gg(t,e){return{regex:t,deser:([,n,r])=>xc(n,r),groups:e}}function Qa(t){return{regex:t,deser:([e])=>e}}function _v(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function yv(t,e){const n=hi(e),r=hi(e,"{2}"),c=hi(e,"{3}"),d=hi(e,"{4}"),f=hi(e,"{6}"),p=hi(e,"{1,2}"),C=hi(e,"{1,3}"),x=hi(e,"{1,6}"),T=hi(e,"{1,9}"),O=hi(e,"{2,4}"),M=hi(e,"{4,6}"),A=P=>({regex:RegExp(_v(P.val)),deser:([K])=>K,literal:!0}),w=(P=>{if(t.literal)return A(P);switch(P.val){case"G":return gi(e.eras("short"),0);case"GG":return gi(e.eras("long"),0);case"y":return Jt(x);case"yy":return Jt(O,id);case"yyyy":return Jt(d);case"yyyyy":return Jt(M);case"yyyyyy":return Jt(f);case"M":return Jt(p);case"MM":return Jt(r);case"MMM":return gi(e.months("short",!0),1);case"MMMM":return gi(e.months("long",!0),1);case"L":return Jt(p);case"LL":return Jt(r);case"LLL":return gi(e.months("short",!1),1);case"LLLL":return gi(e.months("long",!1),1);case"d":return Jt(p);case"dd":return Jt(r);case"o":return Jt(C);case"ooo":return Jt(c);case"HH":return Jt(r);case"H":return Jt(p);case"hh":return Jt(r);case"h":return Jt(p);case"mm":return Jt(r);case"m":return Jt(p);case"q":return Jt(p);case"qq":return Jt(r);case"s":return Jt(p);case"ss":return Jt(r);case"S":return Jt(C);case"SSS":return Jt(c);case"u":return Qa(T);case"uu":return Qa(p);case"uuu":return Jt(n);case"a":return gi(e.meridiems(),0);case"kkkk":return Jt(d);case"kk":return Jt(O,id);case"W":return Jt(p);case"WW":return Jt(r);case"E":case"c":return Jt(n);case"EEE":return gi(e.weekdays("short",!1),1);case"EEEE":return gi(e.weekdays("long",!1),1);case"ccc":return gi(e.weekdays("short",!0),1);case"cccc":return gi(e.weekdays("long",!0),1);case"Z":case"ZZ":return Gg(new RegExp(`([+-]${p.source})(?::(${r.source}))?`),2);case"ZZZ":return Gg(new RegExp(`([+-]${p.source})(${r.source})?`),2);case"z":return Qa(/[a-z_+-/]{1,256}?/i);case" ":return Qa(/[^\S\n\r]/);default:return A(P)}})(t)||{invalidReason:gv};return w.token=t,w}const Cv={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 Nv(t,e,n){const{type:r,value:c}=t;if(r==="literal"){const C=/^\s+$/.test(c);return{literal:!C,val:C?" ":c}}const d=e[r];let f=r;r==="hour"&&(e.hour12!=null?f=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?f="hour12":f="hour24":f=n.hour12?"hour12":"hour24");let p=Cv[f];if(typeof p=="object"&&(p=p[d]),p)return{literal:!1,val:p}}function Ev(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function Tv(t,e,n){const r=t.match(e);if(r){const c={};let d=1;for(const f in n)if(el(n,f)){const p=n[f],C=p.groups?p.groups+1:1;!p.literal&&p.token&&(c[p.token.val[0]]=p.deser(r.slice(d,d+C))),d+=C}return[r,c]}else return[r,{}]}function xv(t){const e=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 kt(t.z)||(n=ro.create(t.z)),kt(t.Z)||(n||(n=new dr(t.Z)),r=t.Z),kt(t.q)||(t.M=(t.q-1)*3+1),kt(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),kt(t.u)||(t.S=Md(t.u)),[Object.keys(t).reduce((d,f)=>{const p=e(f);return p&&(d[p]=t[f]),d},{}),n,r]}let Pu=null;function vv(){return Pu||(Pu=Dt.fromMillis(1555555555555)),Pu}function Sv(t,e){if(t.literal)return t;const n=sr.macroTokenToFormatOpts(t.val),r=Xm(n,e);return r==null||r.includes(void 0)?t:r}function Zm(t,e){return Array.prototype.concat(...t.map(n=>Sv(n,e)))}function Jm(t,e,n){const r=Zm(sr.parseFormat(n),t),c=r.map(f=>yv(f,t)),d=c.find(f=>f.invalidReason);if(d)return{input:e,tokens:r,invalidReason:d.invalidReason};{const[f,p]=Ev(c),C=RegExp(f,"i"),[x,T]=Tv(e,C,p),[O,M,A]=T?xv(T):[null,null,void 0];if(el(T,"a")&&el(T,"H"))throw new Zs("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:C,rawMatches:x,matches:T,result:O,zone:M,specificOffset:A}}}function wv(t,e,n){const{result:r,zone:c,specificOffset:d,invalidReason:f}=Jm(t,e,n);return[r,c,d,f]}function Xm(t,e){if(!t)return null;const r=sr.create(e,t).dtFormatter(vv()),c=r.formatToParts(),d=r.resolvedOptions();return c.map(f=>Nv(f,t,d))}const $u="Invalid DateTime",Yg=864e13;function ec(t){return new pi("unsupported zone",`the zone "${t.name}" is not supported`)}function Fu(t){return t.weekData===null&&(t.weekData=uc(t.c)),t.weekData}function Bu(t){return t.localWeekData===null&&(t.localWeekData=uc(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function ls(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Dt({...n,...e,old:n})}function Qm(t,e,n){let r=t-e*60*1e3;const c=n.offset(r);if(e===c)return[r,e];r-=(c-e)*60*1e3;const d=n.offset(r);return c===d?[r,c]:[t-Math.min(c,d)*60*1e3,Math.max(c,d)]}function tc(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function oc(t,e,n){return Qm(Tc(t),e,n)}function Vg(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),c=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,d={...t.c,year:r,month:c,day:Math.min(t.c.day,dc(r,c))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},f=Vt.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),p=Tc(d);let[C,x]=Qm(p,n,t.zone);return f!==0&&(C+=f,x=t.zone.offset(C)),{ts:C,o:x}}function Gl(t,e,n,r,c,d){const{setZone:f,zone:p}=n;if(t&&Object.keys(t).length!==0||e){const C=e||p,x=Dt.fromObject(t,{...n,zone:C,specificOffset:d});return f?x:x.setZone(p)}else return Dt.invalid(new pi("unparsable",`the input "${c}" can't be parsed as ${r}`))}function nc(t,e,n=!0){return t.isValid?sr.create(en.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Hu(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=Fn(t.c.year,n?6:4),e?(r+="-",r+=Fn(t.c.month),r+="-",r+=Fn(t.c.day)):(r+=Fn(t.c.month),r+=Fn(t.c.day)),r}function jg(t,e,n,r,c,d){let f=Fn(t.c.hour);return e?(f+=":",f+=Fn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(f+=":")):f+=Fn(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(f+=Fn(t.c.second),(t.c.millisecond!==0||!r)&&(f+=".",f+=Fn(t.c.millisecond,3))),c&&(t.isOffsetFixed&&t.offset===0&&!d?f+="Z":t.o<0?(f+="-",f+=Fn(Math.trunc(-t.o/60)),f+=":",f+=Fn(Math.trunc(-t.o%60))):(f+="+",f+=Fn(Math.trunc(t.o/60)),f+=":",f+=Fn(Math.trunc(t.o%60)))),d&&(f+="["+t.zone.ianaName+"]"),f}const e_={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ov={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Dv={ordinal:1,hour:0,minute:0,second:0,millisecond:0},t_=["year","month","day","hour","minute","second","millisecond"],bv=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Rv=["year","ordinal","hour","minute","second","millisecond"];function Mv(t){const e={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"}[t.toLowerCase()];if(!e)throw new rm(t);return e}function qg(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Mv(t)}}function Zg(t,e){const n=bo(e.zone,kn.defaultZone),r=en.fromObject(e),c=kn.now();let d,f;if(kt(t.year))d=c;else{for(const x of t_)kt(t[x])&&(t[x]=e_[x]);const p=Om(t)||Dm(t);if(p)return Dt.invalid(p);const C=n.offset(c);[d,f]=oc(t,C,n)}return new Dt({ts:d,zone:n,loc:r,o:f})}function Jg(t,e,n){const r=kt(n.round)?!0:n.round,c=(f,p)=>(f=Ad(f,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(f,p)),d=f=>n.calendary?e.hasSame(t,f)?0:e.startOf(f).diff(t.startOf(f),f).get(f):e.diff(t,f).get(f);if(n.unit)return c(d(n.unit),n.unit);for(const f of n.units){const p=d(f);if(Math.abs(p)>=1)return c(p,f)}return c(t>e?-0:0,n.units[n.units.length-1])}function Xg(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class Dt{constructor(e){const n=e.zone||kn.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new pi("invalid input"):null)||(n.isValid?null:ec(n));this.ts=kt(e.ts)?kn.now():e.ts;let c=null,d=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[c,d]=[e.old.c,e.old.o];else{const p=n.offset(this.ts);c=tc(this.ts,p),r=Number.isNaN(c.year)?new pi("invalid input"):null,c=r?null:c,d=r?null:p}this._zone=n,this.loc=e.loc||en.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=c,this.o=d,this.isLuxonDateTime=!0}static now(){return new Dt({})}static local(){const[e,n]=Xg(arguments),[r,c,d,f,p,C,x]=n;return Zg({year:r,month:c,day:d,hour:f,minute:p,second:C,millisecond:x},e)}static utc(){const[e,n]=Xg(arguments),[r,c,d,f,p,C,x]=n;return e.zone=dr.utcInstance,Zg({year:r,month:c,day:d,hour:f,minute:p,second:C,millisecond:x},e)}static fromJSDate(e,n={}){const r=sx(e)?e.valueOf():NaN;if(Number.isNaN(r))return Dt.invalid("invalid input");const c=bo(n.zone,kn.defaultZone);return c.isValid?new Dt({ts:r,zone:c,loc:en.fromObject(n)}):Dt.invalid(ec(c))}static fromMillis(e,n={}){if(fs(e))return e<-Yg||e>Yg?Dt.invalid("Timestamp out of range"):new Dt({ts:e,zone:bo(n.zone,kn.defaultZone),loc:en.fromObject(n)});throw new vr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(fs(e))return new Dt({ts:e*1e3,zone:bo(n.zone,kn.defaultZone),loc:en.fromObject(n)});throw new vr("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=bo(n.zone,kn.defaultZone);if(!r.isValid)return Dt.invalid(ec(r));const c=en.fromObject(n),d=fc(e,qg),{minDaysInFirstWeek:f,startOfWeek:p}=Ig(d,c),C=kn.now(),x=kt(n.specificOffset)?r.offset(C):n.specificOffset,T=!kt(d.ordinal),O=!kt(d.year),M=!kt(d.month)||!kt(d.day),A=O||M,v=d.weekYear||d.weekNumber;if((A||T)&&v)throw new Zs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(M&&T)throw new Zs("Can't mix ordinal dates with month/day");const w=v||d.weekday&&!A;let P,K,$=tc(C,x);w?(P=bv,K=Ov,$=uc($,f,p)):T?(P=Rv,K=Dv,$=Iu($)):(P=t_,K=e_);let W=!1;for(const G of P){const j=d[G];kt(j)?W?d[G]=K[G]:d[G]=$[G]:W=!0}const H=w?rx(d,f,p):T?ix(d):Om(d),z=H||Dm(d);if(z)return Dt.invalid(z);const te=w?kg(d,f,p):T?Lg(d):d,[re,ce]=oc(te,x,r),q=new Dt({ts:re,zone:r,o:ce,loc:c});return d.weekday&&A&&e.weekday!==q.weekday?Dt.invalid("mismatched weekday",`you can't specify both a weekday of ${d.weekday} and a date of ${q.toISO()}`):q}static fromISO(e,n={}){const[r,c]=qx(e);return Gl(r,c,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,c]=Zx(e);return Gl(r,c,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,c]=Jx(e);return Gl(r,c,n,"HTTP",n)}static fromFormat(e,n,r={}){if(kt(e)||kt(n))throw new vr("fromFormat requires an input string and a format");const{locale:c=null,numberingSystem:d=null}=r,f=en.fromOpts({locale:c,numberingSystem:d,defaultToEN:!0}),[p,C,x,T]=wv(f,e,n);return T?Dt.invalid(T):Gl(p,C,r,`format ${n}`,e,x)}static fromString(e,n,r={}){return Dt.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,c]=iv(e);return Gl(r,c,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new vr("need to specify a reason the DateTime is invalid");const r=e instanceof pi?e:new pi(e,n);if(kn.throwOnInvalid)throw new kT(r);return new Dt({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=Xm(e,en.fromObject(n));return r?r.map(c=>c?c.val:null).join(""):null}static expandFormat(e,n={}){return Zm(sr.parseFormat(e),en.fromObject(n)).map(c=>c.val).join("")}get(e){return this[e]}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?Fu(this).weekYear:NaN}get weekNumber(){return this.isValid?Fu(this).weekNumber:NaN}get weekday(){return this.isValid?Fu(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Bu(this).weekday:NaN}get localWeekNumber(){return this.isValid?Bu(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Bu(this).weekYear:NaN}get ordinal(){return this.isValid?Iu(this.c).ordinal:NaN}get monthShort(){return this.isValid?Xa.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Xa.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Xa.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Xa.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 e=864e5,n=6e4,r=Tc(this.c),c=this.zone.offset(r-e),d=this.zone.offset(r+e),f=this.zone.offset(r-c*n),p=this.zone.offset(r-d*n);if(f===p)return[this];const C=r-f*n,x=r-p*n,T=tc(C,f),O=tc(x,p);return T.hour===O.hour&&T.minute===O.minute&&T.second===O.second&&T.millisecond===O.millisecond?[ls(this,{ts:C}),ls(this,{ts:x})]:[this]}get isInLeapYear(){return na(this.year)}get daysInMonth(){return dc(this.year,this.month)}get daysInYear(){return this.isValid?Js(this.year):NaN}get weeksInWeekYear(){return this.isValid?ea(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ea(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:c}=sr.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:c}}toUTC(e=0,n={}){return this.setZone(dr.instance(e),n)}toLocal(){return this.setZone(kn.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=bo(e,kn.defaultZone),e.equals(this.zone))return this;if(e.isValid){let c=this.ts;if(n||r){const d=e.offset(this.ts),f=this.toObject();[c]=oc(f,d,e)}return ls(this,{ts:c,zone:e})}else return Dt.invalid(ec(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const c=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return ls(this,{loc:c})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=fc(e,qg),{minDaysInFirstWeek:r,startOfWeek:c}=Ig(n,this.loc),d=!kt(n.weekYear)||!kt(n.weekNumber)||!kt(n.weekday),f=!kt(n.ordinal),p=!kt(n.year),C=!kt(n.month)||!kt(n.day),x=p||C,T=n.weekYear||n.weekNumber;if((x||f)&&T)throw new Zs("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(C&&f)throw new Zs("Can't mix ordinal dates with month/day");let O;d?O=kg({...uc(this.c,r,c),...n},r,c):kt(n.ordinal)?(O={...this.toObject(),...n},kt(n.day)&&(O.day=Math.min(dc(O.year,O.month),O.day))):O=Lg({...Iu(this.c),...n});const[M,A]=oc(O,this.o,this.zone);return ls(this,{ts:M,o:A})}plus(e){if(!this.isValid)return this;const n=Vt.fromDurationLike(e);return ls(this,Vg(this,n))}minus(e){if(!this.isValid)return this;const n=Vt.fromDurationLike(e).negate();return ls(this,Vg(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},c=Vt.normalizeUnit(e);switch(c){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(c==="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(c==="quarters"){const d=Math.ceil(this.month/3);r.month=(d-1)*3+1}return this.set(r)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?sr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):$u}toLocaleString(e=cc,n={}){return this.isValid?sr.create(this.loc.clone(n),e).formatDateTime(this):$u}toLocaleParts(e={}){return this.isValid?sr.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:c=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const f=e==="extended";let p=Hu(this,f);return p+="T",p+=jg(this,f,n,r,c,d),p}toISODate({format:e="extended"}={}){return this.isValid?Hu(this,e==="extended"):null}toISOWeekDate(){return nc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:c=!1,extendedZone:d=!1,format:f="extended"}={}){return this.isValid?(c?"T":"")+jg(this,f==="extended",n,e,r,d):null}toRFC2822(){return nc(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return nc(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Hu(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let c="HH:mm:ss.SSS";return(n||e)&&(r&&(c+=" "),n?c+="z":e&&(c+="ZZ")),nc(this,c,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():$u}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.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(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return Vt.invalid("created by diffing an invalid DateTime");const c={locale:this.locale,numberingSystem:this.numberingSystem,...r},d=lx(n).map(Vt.normalizeUnit),f=e.valueOf()>this.valueOf(),p=f?this:e,C=f?e:this,x=dv(p,C,d,c);return f?x.negate():x}diffNow(e="milliseconds",n={}){return this.diff(Dt.now(),e,n)}until(e){return this.isValid?wn.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;const c=e.valueOf(),d=this.setZone(e.zone,{keepLocalTime:!0});return d.startOf(n,r)<=c&&c<=d.endOf(n,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||Dt.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let c=["years","months","days","hours","minutes","seconds"],d=e.unit;return Array.isArray(e.unit)&&(c=e.unit,d=void 0),Jg(n,this.plus(r),{...e,numeric:"always",units:c,unit:d})}toRelativeCalendar(e={}){return this.isValid?Jg(e.base||Dt.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Dt.isDateTime))throw new vr("min requires all arguments be DateTimes");return Pg(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(Dt.isDateTime))throw new vr("max requires all arguments be DateTimes");return Pg(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:c=null,numberingSystem:d=null}=r,f=en.fromOpts({locale:c,numberingSystem:d,defaultToEN:!0});return Jm(f,e,n)}static fromStringExplain(e,n,r={}){return Dt.fromFormatExplain(e,n,r)}static get DATE_SHORT(){return cc}static get DATE_MED(){return im}static get DATE_MED_WITH_WEEKDAY(){return PT}static get DATE_FULL(){return om}static get DATE_HUGE(){return sm}static get TIME_SIMPLE(){return lm}static get TIME_WITH_SECONDS(){return am}static get TIME_WITH_SHORT_OFFSET(){return cm}static get TIME_WITH_LONG_OFFSET(){return um}static get TIME_24_SIMPLE(){return dm}static get TIME_24_WITH_SECONDS(){return fm}static get TIME_24_WITH_SHORT_OFFSET(){return hm}static get TIME_24_WITH_LONG_OFFSET(){return gm}static get DATETIME_SHORT(){return pm}static get DATETIME_SHORT_WITH_SECONDS(){return mm}static get DATETIME_MED(){return _m}static get DATETIME_MED_WITH_SECONDS(){return ym}static get DATETIME_MED_WITH_WEEKDAY(){return $T}static get DATETIME_FULL(){return Cm}static get DATETIME_FULL_WITH_SECONDS(){return Nm}static get DATETIME_HUGE(){return Em}static get DATETIME_HUGE_WITH_SECONDS(){return Tm}}function Yl(t){if(Dt.isDateTime(t))return t;if(t&&t.valueOf&&fs(t.valueOf()))return Dt.fromJSDate(t);if(t&&typeof t=="object")return Dt.fromObject(t);throw new vr(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Xt=(t=>(t.Monday="MONDAY",t.Tuesday="TUESDAY",t.Wednesday="WEDNESDAY",t.Thursday="THURSDAY",t.Friday="FRIDAY",t.Saturday="SATURDAY",t.Sunday="SUNDAY",t))(Xt||{});function $d(t){const e={1:Xt.Monday,2:Xt.Tuesday,3:Xt.Wednesday,4:Xt.Thursday,5:Xt.Friday,6:Xt.Saturday,7:Xt.Sunday};if(t.weekday in e)return e[t.weekday];throw new Error(`Invalid DateTime.weekday property: ${t}, ${t.weekday}`)}function Fi(t){return{[Xt.Monday]:"Monday",[Xt.Tuesday]:"Tuesday",[Xt.Wednesday]:"Wednesday",[Xt.Thursday]:"Thursday",[Xt.Friday]:"Friday",[Xt.Saturday]:"Saturday",[Xt.Sunday]:"Sunday"}[t]}class Qg{constructor(e,n,r){$n(this,"end");$n(this,"start");this.end=e.setZone(r),this.start=e.setZone(r),[n.start,n.end].forEach(C=>{if(C.split(":").length!==2)throw new Error('expected interval start and end data to be in the format "HH:MM"')});const[c,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(c),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(e){return this.start<=e&&e<this.end}getStartTime(e,n){const r={hour:"numeric",minute:"numeric",...n};return this.start.setLocale(e||"en-US").toLocaleString(r)}getEndTime(e,n){const r={hour:"numeric",minute:"numeric",...n};return this.end.setLocale(e||"en-US").toLocaleString(r)}timeIsEqualTo(e){const n=this.getStartTime()===e.getStartTime(),r=this.getEndTime()===e.getEndTime();return n&&r}is24h(){const e=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 e&&n&&r}}class n_{constructor(e,n){$n(this,"holidayHoursByDate");$n(this,"hours");$n(this,"timezone");this.holidayHoursByDate=Object.fromEntries((e.holidayHours||[]).map(r=>[r.date,r])),this.hours=e,this.timezone=n}getInterval(e){if(this.isTemporarilyClosedAt(e))return null;let n=e;n=n.minus({days:1});for(const r of[n,e]){const c=this.getHours(r);if(c&&!c.isClosed)for(const d of c.openIntervals||[]){const f=new Qg(r,d,this.timezone);if(f.contains(e))return f}}return null}getCurrentInterval(){return this.getInterval(Dt.now())}getIntervalAfter(e){const n=this.getIntervalsForNDays(8,e),r=(d,f)=>d.start===f.start?0:d.start>f.start?1:-1,c=n.sort(r);for(const[d,f]of c.entries())if(f.contains(e)&&c.length>d+1)return c[d+1];for(const d of c)if(d.start>e)return d;return null}getIntervalsForNDays(e,n){const r=[];for(let c=0;c<e;c++){let d=n;d=d.plus({days:c});const f=this.getHours(d);f&&!f.isClosed&&r.push(...f.openIntervals.map(p=>new Qg(d,p,this.timezone)))}return r}getHolidayHours(e){return this.isTemporarilyClosedAt(e)?null:this.holidayHoursByDate[(e.toISO()||"").replace(/T.*/,"")]||null}getNormalHours(e){if(this.isTemporarilyClosedAt(e))return null;const n=Fi($d(e)).toLowerCase();return this.hours[n]}getHours(e){const n=this.getHolidayHours(e);return!n||n.isRegularHours?this.getNormalHours(e):n}getNextInterval(){return this.getIntervalAfter(Dt.now())}isHoliday(e){return!!this.getHolidayHours(e)}isTemporarilyClosedAt(e){if(!this.hours.reopenDate)return!1;const n=this.hours.reopenDate.split("-");if(n.length===3){const[r,c,d]=n,f=Dt.fromObject({year:Number(r),month:Number(c),day:Number(d)},{zone:this.timezone});if(e<f)return!0}return!1}isOpenAt(e){return this.isTemporarilyClosedAt(e)?!1:!!this.getInterval(e)}isOpenNow(){return this.isOpenAt(Dt.now())}}function Av(t,e){const n=[...t];return e=e%n.length,n.concat(n.splice(0,n.length-e))}function kv(t,e){if(t.length!=e.length)return!1;for(const[n,r]of t.entries())if(!r.timeIsEqualTo(e[n]))return!1;return!0}function oa(t){var e,n;return((n=(e=t==null?void 0:t.currentInterval)==null?void 0:e.is24h)==null?void 0:n.call(e))||!1}function sa(t){return!t.futureInterval}function Lv(t){return oa(t)?at.jsx("span",{className:"HoursStatus-current",children:"Open 24 Hours"}):sa(t)?at.jsx("span",{className:"HoursStatus-current",children:"Temporarily Closed"}):at.jsx("span",{className:"HoursStatus-current",children:t.isOpen?"Open Now":"Closed"})}function Iv(t){return oa(t)||sa(t)?null:at.jsx("span",{className:"HoursStatus-separator",children:" • "})}function Pv(t){return oa(t)||sa(t)?null:at.jsx("span",{className:"HoursStatus-future",children:t.isOpen?"Closes at":"Opens at"})}function $v(t){if(oa(t)||sa(t))return null;let e="";if(t.isOpen){const n=t.currentInterval;e+=n?n.getEndTime("en-US",t.timeOptions):""}else{const n=t.futureInterval;e+=n?n.getStartTime("en-US",t.timeOptions):""}return at.jsxs("span",{className:"HoursStatus-time",children:[" ",e]})}function Fv(t){var r,c;if(oa(t)||sa(t))return null;const e={weekday:"long",...t.dayOptions??{}};let n="";if(t.isOpen){const d=t.currentInterval;n+=((r=d==null?void 0:d.end)==null?void 0:r.setLocale("en-US").toLocaleString(e))||""}else{const d=t.futureInterval;n+=((c=d==null?void 0:d.start)==null?void 0:c.setLocale("en-US").toLocaleString(e))||""}return at.jsxs("span",{className:"HoursStatus-dayOfWeek",children:[" ",n]})}function Bv(t,e){const n=t.currentTemplate||Lv,r=t.separatorTemplate||Iv,c=t.futureTemplate||Pv,d=t.timeTemplate||$v,f=t.dayOfWeekTemplate||Fv;return at.jsxs("div",{className:Qs("HoursStatus",(e==null?void 0:e.className)||""),children:[n(t),r(t),c(t),d(t),f(t)]})}const Hv=t=>{const[e,n]=rt.useState(!1),[r,c]=rt.useState(!1);rt.useEffect(()=>{c(!0)},[]);const d=t.statusTemplate||Bv,f=new n_(t.hours,t.timezone),p=f.isOpenNow(),C=f.getCurrentInterval(),x=f.getNextInterval(),T=(C==null?void 0:C.end)||(x==null?void 0:x.start);if(T&&!e){n(!0);const M=T.toMillis()-Dt.now().toMillis();setTimeout(()=>n(!1),M)}const O={isOpen:p,currentInterval:C,futureInterval:x,...t};return at.jsx(at.Fragment,{children:r&&d(O,t)})};function Wv(t,e){const n=[];return t.forEach(r=>{const c=n[n.length-1];c?kv(c.intervals,r.intervals)?(c.endDay=r.endDay,c.isToday=c.isToday||r.isToday):n.push({...r}):n.push({...r})}),n.map(r=>{const c=e&&Fi(r.startDay)in e?e[Fi(r.startDay)]||"":Fi(r.startDay),d=e&&Fi(r.endDay)in e?e[Fi(r.endDay)]||"":Fi(r.endDay);return{...r,dayOfWeek:"Collapsed",dayName:r.startDay===r.endDay?`${c}`:`${c} - ${d}`}})}function Kv(t,e){const n=[],r=t.intervals.length>0&&t.intervals[0].is24h();return t.intervals.length===0?n.push("Closed"):r?n.push("Open 24 hours"):t.intervals.forEach(c=>{const d=c.getStartTime("en-US",e),f=c.getEndTime("en-US",e);n.push(`${d} - ${f}`)}),n}function Uv(t,e,n){const r=[];for(let c=1;c<=7;c++){const d=Dt.fromObject({weekday:c}),f=$d(d);r.push({startDay:f,endDay:f,dayName:n&&Fi(f)in n?n[Fi(f)]||"":Fi(f),intervals:t.filter(p=>p.start.weekday===c),isToday:e.weekday===c})}return r}const zv=t=>{const[e,n]=rt.useState(!1);rt.useEffect(()=>{n(!0)},[]);const r=new n_(t.hours,Intl.DateTimeFormat().resolvedOptions().timeZone),c=Dt.now(),d=r.getIntervalsForNDays(7,c);let f=Uv(d,c,t.dayOfWeekNames);function p(T){return T?{today:$d(c),monday:Xt.Monday,tuesday:Xt.Tuesday,wednesday:Xt.Wednesday,thursday:Xt.Thursday,friday:Xt.Friday,saturday:Xt.Saturday,sunday:Xt.Sunday}[T]:Xt.Sunday}let C=[Xt.Sunday,Xt.Monday,Xt.Tuesday,Xt.Wednesday,Xt.Thursday,Xt.Friday,Xt.Saturday];const x=C.indexOf(p(t.startOfWeek));return C=Av(C,7-x),f.sort((T,O)=>C.indexOf(T.startDay)-C.indexOf(O.startDay)),t.collapseDays&&(f=Wv(f,t.dayOfWeekNames)),at.jsx(at.Fragment,{children:e&&at.jsx("div",{className:Qs("HoursTable",t.className),children:f.map(T=>{const M=(t.intervalStringsBuilderFn||Kv)(T,t.timeOptions);return at.jsxs("div",{className:Qs("HoursTable-row",{"is-today":T.isToday}),children:[at.jsx("span",{className:"HoursTable-day",children:T.dayName}),at.jsx("span",{className:"HoursTable-intervals",children:M.map((A,v)=>at.jsx("span",{className:"HoursTable-interval",children:A},v))})]},T.dayName)})})})},od=Math.log2(1.6745627884839434),Gv=4,Yv=19,sd="js-baidu-neg-lng-fix";let r_;const Vv=new Promise(t=>r_=t),jv="https://api.map.baidu.com/geoconv/v1/";let Vl=[];const qv="gcj02ToBD09Callback_b872c21c";let Zv=0,ep;async function i_(t){return await new Promise((e,n)=>{Vl.push({coordinates:t,resolve:e,reject:n}),Vl.length===1&&(ep=setTimeout(r,100)),Vl.length>40&&(clearTimeout(ep),r());function r(){const c=Vl;Vl=[];const d=[].concat(...c.map(C=>C.coordinates)),f=qv+"_"+Zv++,p=document.createElement("script");window[f]=C=>{if(C.status){const O=new Error(`Unable to convert coordinates to BD-09: Received status code ${C.status}${C.message?": "+C.message:""}`);c.forEach(M=>M.reject(O))}const x=C.result.map(O=>new rn(O.y,O.x));let T=0;c.forEach(O=>{O.resolve(x.slice(T,T+=O.coordinates.length))}),delete window[f],p.parentNode.removeChild(p)},Vv.then(C=>{const x={ak:C,callback:f,coords:d.map(T=>`${T.longitude},${T.latitude}`).join(";"),from:3,to:5};p.src=jv+"?"+Object.entries(x).map(([T,O])=>T+"="+O).join("&"),document.head.appendChild(p)})}})}class Jv extends il{constructor(e){super(e);const n=!!(window.MSInputMethodContext&&document.documentMode);this._wrapper=e.wrapper,this.map=new BMap.Map(this._wrapper,{enableMapClick:e.controlEnabled,maxZoom:n?14:18,...e.providerOptions}),e.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.map.addEventListener("movestart",()=>this._panStartHandler()),this.map.addEventListener("moveend",()=>this._panHandler()),this.map.addEventListener("zoomstart",()=>this._panStartHandler()),this.map.addEventListener("zoomend",()=>{this._wrapper.dataset.baiduZoom=this.map.getZoom(),this._panHandler()}),this._centerReady=Promise.resolve()}getCenter(){return new rn(this.map.getCenter())}getZoom(){return this.map.getZoom()-od}setCenter(e,n){this._centerReady=i_([e]).then(([r])=>{const c=new BMap.Point(r.longitude,r.latitude);this.map.panTo(c,{noAnimation:!n})})}setZoom(e,n){this._centerReady.then(()=>{this.map.setViewport({center:this.map.getCenter(),zoom:Math.floor(e+od)},{enableAnimation:n})})}}class Xv extends gc{constructor(e){super(e),this._wrapper=null,this._zIndex=0,this._wrapperClass="",this._originalWrapperClass="",this._element=this._pinEl,this._coordinateReady=Promise.resolve(),this._negativeLngFix=!1;const n=this;class r extends BMap.Marker{initialize(f){return n._wrapper=super.initialize(f),n._wrapper&&(n._wrapper.style.zIndex=n._zIndex,n._originalWrapperClass=n._wrapper.getAttribute("class"),n._wrapper.setAttribute("class",n._getClass()),n._wrapper.appendChild(n._element),n.addListeners()),n._wrapper}draw(){if(n._wrapper){const f=n._wrapper.style.zIndex;super.draw(),n._wrapper.style.height="",n._wrapper.style.width="",n._wrapper.style.pointerEvents="none",n._wrapper.style.zIndex=f}else super.draw()}}this.pin=new r(new BMap.Point(0,0));const c=new BMap.Icon("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",{height:0,width:0});this.pin.setIcon(c),this.pin.setShadow(c)}addListeners(){super.addListeners(),this._wrapper.addEventListener("touchend",()=>this._clickHandler())}setCoordinate(e){this._coordinateReady=i_([e]).then(([n])=>{this._negativeLngFix=n.longitude<0,this.pin.setPosition(new BMap.Point(n.longitude+(this._negativeLngFix?180:0),n.latitude)),this._wrapper&&this._wrapper.classList[this._negativeLngFix?"add":"remove"](sd)})}setMap(e,n){this._coordinateReady.then(()=>{n&&n.getProviderMap().map.removeOverlay(this.pin),e&&e.getProviderMap().map.addOverlay(this.pin)})}setProperties(e){super.setProperties(e),this._wrapperClass=e.getClass(),this._element=e.getElement()||this._pinEl,this._zIndex=e.getZIndex(),this._wrapper&&this._wrapper.setAttribute("class",this._getClass())}_getClass(){return`${this._originalWrapperClass} ${this._negativeLngFix?sd:""} ${this._wrapperClass}`}}const Qv="https://api.map.baidu.com/getscript";function eS(t,e,n,{params:r={},version:c="3.0"}={}){window.BMAP_PROTOCOL="https",window.BMap_loadScriptTime=new Date().getTime();const d=n,f={ak:d,v:c,...r};r_(d);const p=document.createElement("script");p.src=Qv+"?"+Object.entries(f).map(([T,O])=>T+"="+O).join("&"),p.onload=()=>t(),document.head.appendChild(p);let C="";for(let T=Gv;T<=Yv;T++){const O=2**(T-od+7);C+=`[data-baidu-zoom="${T}"] .${sd}{transform:translateX(-${O}px);}`}const x=document.createElement("style");x.appendChild(document.createTextNode(C)),document.head.appendChild(x)}const tS=new hs().withLoadFunction(eS).withMapClass(Jv).withPinClass(Xv).withProviderName("Baidu").build();let o_;function nS(){class t extends Microsoft.Maps.CustomOverlay{constructor(){super({beneathLabels:!1}),this._container=document.createElement("div"),this._map=null,this._pins=new Set,this._viewChangeEventHandler=null,this._container.style.position="absolute",this._container.style.left="0",this._container.style.top="0"}addPin(n){this._pins.add(n),n._wrapper.style.position="absolute",this._container.appendChild(n._wrapper),this._map&&this.updatePinPosition(n)}onAdd(){this._map=this.getMap(),this.setHtmlElement(this._container)}onLoad(){this._viewChangeEventHandler=Microsoft.Maps.Events.addHandler(this._map,"viewchange",()=>this.updatePinPositions()),this.updatePinPositions()}onRemove(){Microsoft.Maps.Events.removeHandler(this._viewChangeEventHandler),this._map=null}removePin(n){this._pins.delete(n),this._container.removeChild(n._wrapper)}updatePinPosition(n){if(!this._map)return;const r=this._map.tryLocationToPixel(n._location,Microsoft.Maps.PixelReference.control);n._wrapper.style.left=r.x+"px",n._wrapper.style.top=r.y+"px"}updatePinPositions(){this._pins.forEach(n=>this.updatePinPosition(n))}}o_=t}class rS extends il{constructor(e){super(e),this.wrapper=e.wrapper,this.map=new Microsoft.Maps.Map(this.wrapper,{disablePanning:!e.controlEnabled,disableZooming:!e.controlEnabled,showLocateMeButton:!1,showMapTypeSelector:!1,showScalebar:!1,showTrafficButton:!1,...e.providerOptions}),this.pinOverlay=new o_(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(){return new rn(this.map.getCenter())}getZoom(){return this.map.getZoom()}setCenter(e,n){const r=new Microsoft.Maps.Location(e.latitude,e.longitude);this.map.setView({center:r}),this.pinOverlay.updatePinPositions()}setZoom(e,n){this.map.setView({zoom:Math.floor(e)}),this.pinOverlay.updatePinPositions()}}class iS extends gc{static getId(){return this._pinId=(this._pinId||0)+1,this._pinId}constructor(e){super(e),this._map=null,this._location=new Microsoft.Maps.Location(0,0)}setCoordinate(e){this._location=new Microsoft.Maps.Location(e.latitude,e.longitude),this._map&&this._map.getProviderMap().pinOverlay.updatePinPosition(this)}setMap(e,n){n&&n.getProviderMap().pinOverlay.removePin(this),e&&e.getProviderMap().pinOverlay.addPin(this),this._map=e}}const tp="BingMapsCallback_593d7d33",oS="https://www.bing.com/api/maps/mapcontrol";function sS(t,e,n,{params:r={}}={}){window[tp]=()=>{nS(),t()};const c={callback:tp,key:n,...r};fp(oS+"?"+Object.entries(c).map(([d,f])=>d+"="+f).join("&"))}const lS=new hs().withLoadFunction(sS).withMapClass(rS).withPinClass(iS).withProviderName("Bing").build();class aS extends il{constructor(e){if(super(e),this.map=new mapboxgl.Map({container:e.wrapper,interactive:e.controlEnabled,style:"mapbox://styles/mapbox/streets-v9",...e.providerOptions}),e.controlEnabled){const n=new mapboxgl.NavigationControl({showCompass:!1});this.map.addControl(n)}this.map.on("movestart",()=>this._panStartHandler()),this.map.on("moveend",()=>this._panHandler())}getCenter(){return new rn(this.map.getCenter())}getZoom(){return this.map.getZoom()+1}setCenter(e,n){const r=new mapboxgl.LngLat(e.longitude,e.latitude);this.map[n?"panTo":"setCenter"](r)}setZoom(e,n){this.map[n?"zoomTo":"setZoom"](e-1)}setZoomCenter(e,n,r){const c=new mapboxgl.LngLat(n.longitude,n.latitude);this.map[r?"easeTo":"jumpTo"]({center:c,zoom:e-1})}}class cS extends gc{constructor(e){super(e),this._wrapper.style.position="relative",this.pin=new mapboxgl.Marker({anchor:"top-left",element:this._wrapper})}setCoordinate(e){this.pin.setLngLat(new mapboxgl.LngLat(e.longitude,e.latitude))}setMap(e,n){e?this.pin.addTo(e.getProviderMap().map):this.pin.remove()}}function uS(t,e,n,{version:r="v1.13.0"}={}){const c=`https://api.mapbox.com/mapbox-gl-js/${r}/mapbox-gl`,d=document.createElement("link");d.rel="stylesheet",d.href=c+".css";const f=document.createElement("script");f.src=c+".js",f.onload=()=>{mapboxgl.accessToken=n,t()},document.head.appendChild(d),document.head.appendChild(f)}const dS=new hs().withLoadFunction(uS).withMapClass(aS).withPinClass(cS).withProviderName("Mapbox").build();let s_=class extends il{constructor(e){super(e),this._initMap(e),e.controlEnabled&&this.map.zoomControl.setPosition("topright"),this.map.on("movestart",()=>this._panStartHandler()),this.map.on("moveend",()=>this._panHandler())}getCenter(){return new rn(this.map.getCenter())}getZoom(){return this.map.getZoom()}setCenter(e,n){const r=new L.latLng(e.latitude,e.longitude);this.map.panTo(r,{animate:n})}setZoom(e,n){this.map.setZoom(e,{animate:n})}setZoomCenter(e,n,r){const c=new L.latLng(n.latitude,n.longitude);this.map.setView(c,e,{animate:r})}_initMap(e){this.map=new L.map(e.wrapper,{boxZoom:e.controlEnabled,doubleClickZoom:e.controlEnabled,dragging:e.controlEnabled,zoom:0,zoomControl:e.controlEnabled,zoomSnap:0,...e.providerOptions});const n=e.providerOptions,r=n.tileLayerSrc||"https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}",c=n.tileLayerOptions||{attribution:'Map data &copy; <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"};c.accessToken=this.constructor.apiKey,L.tileLayer(r,c).addTo(this.map)}},fS=class extends dd{constructor(e){super(e),this.pin=new L.marker,this.pin.on("click",()=>this._clickHandler()),this.pin.on("mouseover",()=>this._hoverHandler(!0)),this.pin.on("mouseout",()=>this._hoverHandler(!1))}setCoordinate(e){const n=new L.latLng(e.latitude,e.longitude);this.pin.setLatLng(n)}setMap(e,n){e?this.pin.addTo(e.getProviderMap().map):this.pin.remove()}setProperties(e){const n=e.getWidth(),r=e.getHeight(),c=e.getAnchorX(),d=e.getAnchorY();this.pin.setIcon(new L.icon({iconUrl:this._icons[e.getIcon()],iconSize:[n,r],iconAnchor:[c*n,d*r],className:e.getClass()})),this.pin.setZIndexOffset(e.getZIndex())}};function hS(t,e,n,{version:r="1.7.1"}={}){const c=`https://unpkg.com/leaflet@${r}/dist/leaflet`;s_.apiKey=n;const d=document.createElement("link");d.rel="stylesheet",d.href=c+".css";const f=document.createElement("script");f.src=c+".js",f.onload=()=>t(),document.head.appendChild(d),document.head.appendChild(f)}const Fd=new hs().withLoadFunction(hS).withMapClass(s_).withPinClass(fS).withProviderName("Leaflet").build(),gS=Fd.getMapClass(),pS=Fd.getPinClass();class mS extends gS{_initMap(e){this.map=L.mapquest.map(e.wrapper,{boxZoom:e.controlEnabled,center:new L.latLng(0,0),doubleClickZoom:e.controlEnabled,dragging:e.controlEnabled,layers:L.mapquest.tileLayer("map"),zoom:0,zoomControl:e.controlEnabled,zoomSnap:0,...e.providerOptions})}}class _S extends pS{}function yS(t,e,n,{version:r="v1.3.2"}={}){const c=`https://api.mqcdn.com/sdk/mapquest-js/${r}/mapquest-maps`,d=document.createElement("link");d.rel="stylesheet",d.href=c+".css";const f=document.createElement("script");f.src=c+".js",f.onload=()=>{L.mapquest.key=n,t()},document.head.appendChild(d),document.head.appendChild(f)}const CS=new hs().withLoadFunction(yS).withMapClass(mS).withPinClass(_S).withProviderName("MapQuest").build();exports.Address=X_;exports.Analytics=lp;exports.AnalyticsContext=cd;exports.AnalyticsProvider=Ry;exports.AnalyticsScopeProvider=Sy;exports.BaiduMaps=tS;exports.BingMaps=lS;exports.Clusterer=sC;exports.Day=Xt;exports.GoogleMaps=fd;exports.HoursStatus=Hv;exports.HoursTable=zv;exports.Image=Py;exports.ImageLayoutOption=Ro;exports.LeafletMaps=Fd;exports.LegacyRichText=AT;exports.LexicalRichText=UN;exports.Link=dp;exports.LinkTypes=zy;exports.ListingPublisherOption=np;exports.LocationMap=_p;exports.Map=gd;exports.MapProviderOption=Uu;exports.MapQuestMaps=CS;exports.MapboxMaps=dS;exports.Marker=mc;exports.asciiAlpha=eE;exports.asciiAlphanumeric=Xu;exports.asciiAtext=tE;exports.asciiControl=nE;exports.asciiDigit=rE;exports.asciiHexDigit=iE;exports.asciiPunctuation=oE;exports.c=Qs;exports.classifyCharacter=Ql;exports.combineExtensions=Kp;exports.createState=NT;exports.getDefaultExportFromCjs=hc;exports.getDirections=V_;exports.getRuntime=Mo;exports.jsxRuntimeExports=at;exports.markdownLineEnding=sE;exports.markdownLineEndingOrSpace=qp;exports.markdownSpace=lE;exports.normalizeUri=sl;exports.push=qs;exports.resolveAll=Zp;exports.splice=_c;exports.useAnalytics=rl;exports.useClusterContext=oC;exports.useIdentify=Dy;exports.useMapContext=rC;exports.usePageView=Oy;exports.useScope=ud;exports.useTrack=wy;exports.visit=Dd;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BRkDN95t.cjs");exports.Address=e.Address;exports.Analytics=e.Analytics;exports.AnalyticsContext=e.AnalyticsContext;exports.AnalyticsProvider=e.AnalyticsProvider;exports.AnalyticsScopeProvider=e.AnalyticsScopeProvider;exports.BaiduMaps=e.BaiduMaps;exports.BingMaps=e.BingMaps;exports.Clusterer=e.Clusterer;exports.Day=e.Day;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.LocationMap=e.LocationMap;exports.Map=e.Map;exports.MapProviderOption=e.MapProviderOption;exports.MapQuestMaps=e.MapQuestMaps;exports.MapboxMaps=e.MapboxMaps;exports.Marker=e.Marker;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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DJPbIPVY.cjs");exports.Address=e.Address;exports.Analytics=e.Analytics;exports.AnalyticsContext=e.AnalyticsContext;exports.AnalyticsProvider=e.AnalyticsProvider;exports.AnalyticsScopeProvider=e.AnalyticsScopeProvider;exports.BaiduMaps=e.BaiduMaps;exports.BingMaps=e.BingMaps;exports.Clusterer=e.Clusterer;exports.Day=e.Day;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.LocationMap=e.LocationMap;exports.Map=e.Map;exports.MapProviderOption=e.MapProviderOption;exports.MapQuestMaps=e.MapQuestMaps;exports.MapboxMaps=e.MapboxMaps;exports.Marker=e.Marker;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;
@@ -1,4 +1,4 @@
1
- import { A as e, x as t, y as i, E as o, G as p, Y as r, Z as n, Q as u, X as c, _ as M, V as l, W as y, I as x, H as L, a0 as g, U as d, T as A, J as C, K as P, L as T, S as k, N as I, M as O, a1 as S, $ as b, P as f, w as h, z as m, R as v, D as B, O as D, C as H, F as R, B as w } from "./index-B_Z2KBE4.js";
1
+ import { A as e, x as t, y as i, E as o, G as p, Y as r, Z as n, Q as u, X as c, _ as M, V as l, W as y, I as x, H as L, a0 as g, U as d, T as A, J as C, K as P, L as T, S as k, N as I, M as O, a1 as S, $ as b, P as f, w as h, z as m, R as v, D as B, O as D, C as H, F as R, B as w } from "./index-CNu7g_AK.js";
2
2
  export {
3
3
  e as Address,
4
4
  t as Analytics,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yext/pages-components",
3
- "version": "1.0.0-rc.8",
3
+ "version": "1.0.0-rc.9",
4
4
  "description": "A React component library that supports Yext Pages development",
5
5
  "author": "sumo@yext.com",
6
6
  "license": "BSD-3-Clause",