@stackshift-ui/blog 7.0.0-beta.0 → 7.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/blog.js CHANGED
@@ -1 +1 @@
1
- "use strict";var Hf=Object.create;var te=Object.defineProperty;var $f=Object.getOwnPropertyDescriptor;var Ef=Object.getOwnPropertyNames;var zf=Object.getPrototypeOf,Lf=Object.prototype.hasOwnProperty;var a=(e,t)=>()=>(e&&(t=e(e=0)),t);var B=(e,t)=>{for(var r in t)te(e,r,{get:t[r],enumerable:!0})},Be=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ef(t))!Lf.call(e,o)&&o!==r&&te(e,o,{get:()=>t[o],enumerable:!(n=$f(t,o))||n.enumerable});return e};var qe=(e,t,r)=>(r=e!=null?Hf(zf(e)):{},Be(t||!e||!e.__esModule?te(r,"default",{value:e,enumerable:!0}):r,e)),Rf=e=>Be(te({},"__esModule",{value:!0}),e);var Af,Ju,re,je,Qf,Xe,Zu,Bf,qf,Ku,xe,q=a(()=>{"use strict";Af=Math.pow(10,8)*24*60*60*1e3,Ju=-Af,re=6048e5,je=864e5,Qf=3600,Xe=Qf*24,Zu=Xe*7,Bf=Xe*365.2425,qf=Bf/12,Ku=qf*3,xe=Symbol.for("constructDateFrom")});function v(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&xe in e?e[xe](t):e instanceof Date?new e.constructor(t):new Date(t)}var W=a(()=>{"use strict";q()});function b(e,t){return v(t||e,e)}var I=a(()=>{"use strict";W()});var Ue=a(()=>{"use strict"});var Ve=a(()=>{"use strict"});var Ge=a(()=>{"use strict"});var Je=a(()=>{"use strict"});var Ze=a(()=>{"use strict"});var Ke=a(()=>{"use strict"});var et=a(()=>{"use strict"});var tt=a(()=>{"use strict"});var rt=a(()=>{"use strict"});function F(){return jf}var jf,j=a(()=>{"use strict";jf={}});function N(e,t){var m,s,D,y,w,x,M,O;let r=F(),n=(O=(M=(y=(D=t==null?void 0:t.weekStartsOn)!=null?D:(s=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:s.weekStartsOn)!=null?y:r.weekStartsOn)!=null?M:(x=(w=r.locale)==null?void 0:w.options)==null?void 0:x.weekStartsOn)!=null?O:0,o=b(e,t==null?void 0:t.in),f=o.getDay(),u=(f<n?7:0)+f-n;return o.setDate(o.getDate()-u),o.setHours(0,0,0,0),o}var z=a(()=>{"use strict";j();I()});function H(e,t){return N(e,{...t,weekStartsOn:1})}var X=a(()=>{"use strict";z()});function ae(e,t){let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=v(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let f=H(o),u=v(r,0);u.setFullYear(n,0,4),u.setHours(0,0,0,0);let m=H(u);return r.getTime()>=f.getTime()?n+1:r.getTime()>=m.getTime()?n:n-1}var ne=a(()=>{"use strict";W();X();I()});function he(e){let t=b(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}var at=a(()=>{"use strict";I()});function nt(e,...t){let r=v.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}var ot=a(()=>{"use strict";W()});function ge(e,t){let r=b(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}var De=a(()=>{"use strict";I()});function ft(e,t,r){let[n,o]=nt(r==null?void 0:r.in,e,t),f=ge(n),u=ge(o),m=+f-he(f),s=+u-he(u);return Math.round((m-s)/je)}var ye=a(()=>{"use strict";at();ot();q();De()});function ut(e,t){let r=ae(e,t),n=v((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),H(n)}var we=a(()=>{"use strict";W();ne();X()});var mt=a(()=>{"use strict"});var ct=a(()=>{"use strict"});var it=a(()=>{"use strict"});var lt=a(()=>{"use strict"});var dt=a(()=>{"use strict"});var st=a(()=>{"use strict"});var xt=a(()=>{"use strict"});var ht=a(()=>{"use strict"});var gt=a(()=>{"use strict"});var Dt=a(()=>{"use strict"});var yt=a(()=>{"use strict"});var wt=a(()=>{"use strict"});var bt=a(()=>{"use strict"});var Mt=a(()=>{"use strict"});var Ot=a(()=>{"use strict"});var kt=a(()=>{"use strict"});var St=a(()=>{"use strict"});var vt=a(()=>{"use strict"});function pt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var be=a(()=>{"use strict"});function It(e){return!(!pt(e)&&typeof e!="number"||isNaN(+b(e)))}var Me=a(()=>{"use strict";be();I()});var Tt=a(()=>{"use strict"});var Nt=a(()=>{"use strict"});var Yt=a(()=>{"use strict"});var Wt=a(()=>{"use strict"});var Ft=a(()=>{"use strict"});var Pt=a(()=>{"use strict"});var _t=a(()=>{"use strict"});var Ct=a(()=>{"use strict"});var Ht=a(()=>{"use strict"});var $t=a(()=>{"use strict"});var Et=a(()=>{"use strict"});var zt=a(()=>{"use strict"});var Lt=a(()=>{"use strict"});var Rt=a(()=>{"use strict"});var At=a(()=>{"use strict"});var Qt=a(()=>{"use strict"});var Bt=a(()=>{"use strict"});var qt=a(()=>{"use strict"});var jt=a(()=>{"use strict"});var Xt=a(()=>{"use strict"});var Ut=a(()=>{"use strict"});var Vt=a(()=>{"use strict"});var Gt=a(()=>{"use strict"});var Jt=a(()=>{"use strict"});var Zt=a(()=>{"use strict"});var Kt=a(()=>{"use strict"});var er=a(()=>{"use strict"});var tr=a(()=>{"use strict"});var rr=a(()=>{"use strict"});var ar=a(()=>{"use strict"});var nr=a(()=>{"use strict"});var or=a(()=>{"use strict"});var fr=a(()=>{"use strict"});function ur(e,t){let r=b(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Oe=a(()=>{"use strict";I()});var mr=a(()=>{"use strict"});var cr=a(()=>{"use strict"});var ir=a(()=>{"use strict"});var lr=a(()=>{"use strict"});var dr=a(()=>{"use strict"});var sr=a(()=>{"use strict"});var xr=a(()=>{"use strict"});var hr=a(()=>{"use strict"});var gr=a(()=>{"use strict"});var Dr=a(()=>{"use strict"});var yr=a(()=>{"use strict"});var wr=a(()=>{"use strict"});var br=a(()=>{"use strict"});var Xf,Mr,Or=a(()=>{"use strict";Xf={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Mr=(e,t,r)=>{let n,o=Xf[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n}});function oe(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var kr=a(()=>{"use strict"});var Uf,Vf,Gf,Sr,vr=a(()=>{"use strict";kr();Uf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Vf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Sr={date:oe({formats:Uf,defaultWidth:"full"}),time:oe({formats:Vf,defaultWidth:"full"}),dateTime:oe({formats:Gf,defaultWidth:"full"})}});var Jf,pr,Ir=a(()=>{"use strict";Jf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pr=(e,t,r,n)=>Jf[e]});function L(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let u=e.defaultFormattingWidth||e.defaultWidth,m=r!=null&&r.width?String(r.width):u;o=e.formattingValues[m]||e.formattingValues[u]}else{let u=e.defaultWidth,m=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[m]||e.values[u]}let f=e.argumentCallback?e.argumentCallback(t):t;return o[f]}}var Tr=a(()=>{"use strict"});var Zf,Kf,eu,tu,ru,au,nu,Nr,Yr=a(()=>{"use strict";Tr();Zf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Kf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},eu={narrow:["Ye","F","M","A","M","Ye","Ye","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},tu={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ru={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},au={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},nu=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Nr={ordinalNumber:nu,era:L({values:Zf,defaultWidth:"wide"}),quarter:L({values:Kf,defaultWidth:"wide",argumentCallback:e=>e-1}),month:L({values:eu,defaultWidth:"wide"}),day:L({values:tu,defaultWidth:"wide"}),dayPeriod:L({values:ru,defaultWidth:"wide",formattingValues:au,defaultFormattingWidth:"wide"})}});function R(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],f=t.match(o);if(!f)return null;let u=f[0],m=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(m)?fu(m,w=>w.test(u)):ou(m,w=>w.test(u)),D;D=e.valueCallback?e.valueCallback(s):s,D=r.valueCallback?r.valueCallback(D):D;let y=t.slice(u.length);return{value:D,rest:y}}}function ou(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function fu(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}var Wr=a(()=>{"use strict"});function Fr(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],f=t.match(e.parsePattern);if(!f)return null;let u=e.valueCallback?e.valueCallback(f[0]):f[0];u=r.valueCallback?r.valueCallback(u):u;let m=t.slice(o.length);return{value:u,rest:m}}}var Pr=a(()=>{"use strict"});var uu,mu,cu,iu,lu,du,su,xu,hu,gu,Du,yu,_r,Cr=a(()=>{"use strict";Wr();Pr();uu=/^(\d+)(th|st|nd|rd)?/i,mu=/\d+/i,cu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},iu={any:[/^b/i,/^(a|c)/i]},lu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},du={any:[/1/i,/2/i,/3/i,/4/i]},su={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xu={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},hu={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},gu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Du={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},yu={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},_r={ordinalNumber:Fr({matchPattern:uu,parsePattern:mu,valueCallback:e=>parseInt(e,10)}),era:R({matchPatterns:cu,defaultMatchWidth:"wide",parsePatterns:iu,defaultParseWidth:"any"}),quarter:R({matchPatterns:lu,defaultMatchWidth:"wide",parsePatterns:du,defaultParseWidth:"any",valueCallback:e=>e+1}),month:R({matchPatterns:su,defaultMatchWidth:"wide",parsePatterns:xu,defaultParseWidth:"any"}),day:R({matchPatterns:hu,defaultMatchWidth:"wide",parsePatterns:gu,defaultParseWidth:"any"}),dayPeriod:R({matchPatterns:Du,defaultMatchWidth:"any",parsePatterns:yu,defaultParseWidth:"any"})}});var ke,Hr=a(()=>{"use strict";Or();vr();Ir();Yr();Cr();ke={code:"en-US",formatDistance:Mr,formatLong:Sr,formatRelative:pr,localize:Nr,match:_r,options:{weekStartsOn:0,firstWeekContainsDate:1}}});var $r=a(()=>{"use strict";Hr()});function Er(e,t){let r=b(e,t==null?void 0:t.in);return ft(r,ur(r))+1}var Se=a(()=>{"use strict";ye();Oe();I()});function zr(e,t){let r=b(e,t==null?void 0:t.in),n=+H(r)-+ut(r);return Math.round(n/re)+1}var ve=a(()=>{"use strict";q();X();we();I()});function fe(e,t){var y,w,x,M,O,_,C,E;let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=F(),f=(E=(C=(M=(x=t==null?void 0:t.firstWeekContainsDate)!=null?x:(w=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:w.firstWeekContainsDate)!=null?M:o.firstWeekContainsDate)!=null?C:(_=(O=o.locale)==null?void 0:O.options)==null?void 0:_.firstWeekContainsDate)!=null?E:1,u=v((t==null?void 0:t.in)||e,0);u.setFullYear(n+1,0,f),u.setHours(0,0,0,0);let m=N(u,t),s=v((t==null?void 0:t.in)||e,0);s.setFullYear(n,0,f),s.setHours(0,0,0,0);let D=N(s,t);return+r>=+m?n+1:+r>=+D?n:n-1}var ue=a(()=>{"use strict";j();W();z();I()});function Lr(e,t){var m,s,D,y,w,x,M,O;let r=F(),n=(O=(M=(y=(D=t==null?void 0:t.firstWeekContainsDate)!=null?D:(s=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:s.firstWeekContainsDate)!=null?y:r.firstWeekContainsDate)!=null?M:(x=(w=r.locale)==null?void 0:w.options)==null?void 0:x.firstWeekContainsDate)!=null?O:1,o=fe(e,t),f=v((t==null?void 0:t.in)||e,0);return f.setFullYear(o,0,n),f.setHours(0,0,0,0),N(f,t)}var pe=a(()=>{"use strict";j();W();ue();z()});function Rr(e,t){let r=b(e,t==null?void 0:t.in),n=+N(r,t)-+Lr(r,t);return Math.round(n/re)+1}var Ie=a(()=>{"use strict";q();z();pe();I()});function h(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var Te=a(()=>{"use strict"});var Y,Ar=a(()=>{"use strict";Te();Y={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return h(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):h(r+1,2)},d(e,t){return h(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return h(e.getHours()%12||12,t.length)},H(e,t){return h(e.getHours(),t.length)},m(e,t){return h(e.getMinutes(),t.length)},s(e,t){return h(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return h(o,t.length)}}});function Qr(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),f=n%60;return f===0?r+String(o):r+String(o)+t+h(f,2)}function Br(e,t){return e%60===0?(e>0?"-":"+")+h(Math.abs(e)/60,2):$(e,t)}function $(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=h(Math.trunc(n/60),2),f=h(n%60,2);return r+o+t+f}var A,Ne,qr=a(()=>{"use strict";Se();ve();ne();Ie();ue();Te();Ar();A={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ne={Ye:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"Ye":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return Y.y(e,t)},Y:function(e,t,r,n){let o=fe(e,n),f=o>0?o:1-o;if(t==="YY"){let u=f%100;return h(u,2)}return t==="Yo"?r.ordinalNumber(f,{unit:"year"}):h(f,t.length)},R:function(e,t){let r=ae(e);return h(r,t.length)},u:function(e,t){let r=e.getFullYear();return h(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return h(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return h(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return Y.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return h(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let o=Rr(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):h(o,t.length)},I:function(e,t,r){let n=zr(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):h(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Y.d(e,t)},D:function(e,t,r){let n=Er(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):h(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(f);case"ee":return h(f,2);case"eo":return r.ordinalNumber(f,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(f);case"cc":return h(f,t.length);case"co":return r.ordinalNumber(f,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return h(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),o;switch(n===12?o=A.noon:n===0?o=A.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=A.evening:n>=12?o=A.afternoon:n>=4?o=A.morning:o=A.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Y.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Y.H(e,t)},Ye:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):h(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):h(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Y.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Y.s(e,t)},S:function(e,t){return Y.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"V";switch(t){case"X":return Br(n);case"XXXX":case"XX":return $(n);case"XXXXX":case"XXX":default:return $(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Br(n);case"xxxx":case"xx":return $(n);case"xxxxx":case"xxx":default:return $(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Qr(n,":");case"OOOO":default:return"GMT"+$(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Qr(n,":");case"zzzz":default:return"GMT"+$(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return h(n,t.length)},T:function(e,t,r){return h(+e,t.length)}}});var jr,Xr,wu,Ur,Vr=a(()=>{"use strict";jr=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Xr=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},wu=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return jr(e,t);let f;switch(n){case"P":f=t.dateTime({width:"short"});break;case"PP":f=t.dateTime({width:"medium"});break;case"PPP":f=t.dateTime({width:"long"});break;case"PPPP":default:f=t.dateTime({width:"full"});break}return f.replace("{{date}}",jr(n,t)).replace("{{time}}",Xr(o,t))},Ur={p:Xr,P:wu}});function Gr(e){return bu.test(e)}function Jr(e){return Mu.test(e)}function Zr(e,t,r){let n=ku(e,t,r);if(console.warn(n),Ou.includes(e))throw new RangeError(n)}function ku(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var bu,Mu,Ou,Kr=a(()=>{"use strict";bu=/^D+$/,Mu=/^Y+$/,Ou=["D","DD","YY","YYYY"]});function P(e,t,r){var y,w,x,M,O,_,C,E,i,k,T,$e,Ee,ze,Le,Re,Ae,Qe;let n=F(),o=(w=(y=r==null?void 0:r.locale)!=null?y:n.locale)!=null?w:ke,f=(k=(i=(_=(O=r==null?void 0:r.firstWeekContainsDate)!=null?O:(M=(x=r==null?void 0:r.locale)==null?void 0:x.options)==null?void 0:M.firstWeekContainsDate)!=null?_:n.firstWeekContainsDate)!=null?i:(E=(C=n.locale)==null?void 0:C.options)==null?void 0:E.firstWeekContainsDate)!=null?k:1,u=(Qe=(Ae=(ze=(Ee=r==null?void 0:r.weekStartsOn)!=null?Ee:($e=(T=r==null?void 0:r.locale)==null?void 0:T.options)==null?void 0:$e.weekStartsOn)!=null?ze:n.weekStartsOn)!=null?Ae:(Re=(Le=n.locale)==null?void 0:Le.options)==null?void 0:Re.weekStartsOn)!=null?Qe:0,m=b(e,r==null?void 0:r.in);if(!It(m))throw new RangeError("Invalid time value");let s=t.match(vu).map(p=>{let S=p[0];if(S==="p"||S==="P"){let se=Ur[S];return se(p,o.formatLong)}return p}).join("").match(Su).map(p=>{if(p==="''")return{isToken:!1,value:"'"};let S=p[0];if(S==="'")return{isToken:!1,value:Nu(p)};if(Ne[S])return{isToken:!0,value:p};if(S.match(Tu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:p}});o.localize.preprocessor&&(s=o.localize.preprocessor(m,s));let D={firstWeekContainsDate:f,weekStartsOn:u,locale:o};return s.map(p=>{if(!p.isToken)return p.value;let S=p.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&Jr(S)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&Gr(S))&&Zr(S,t,String(e));let se=Ne[S[0]];return se(m,S,o.localize,D)}).join("")}function Nu(e){let t=e.match(pu);return t?t[1].replace(Iu,"'"):e}var Su,vu,pu,Iu,Tu,ea=a(()=>{"use strict";$r();j();qr();Vr();Kr();Me();I();Su=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vu=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pu=/^'([^]*?)'?$/,Iu=/''/g,Tu=/[a-zA-V]/});var ta=a(()=>{"use strict"});var ra=a(()=>{"use strict"});var aa=a(()=>{"use strict"});var na=a(()=>{"use strict"});var oa=a(()=>{"use strict"});var fa=a(()=>{"use strict"});var ua=a(()=>{"use strict"});var ma=a(()=>{"use strict"});var ca=a(()=>{"use strict"});var ia=a(()=>{"use strict"});var la=a(()=>{"use strict"});var da=a(()=>{"use strict"});var sa=a(()=>{"use strict"});var xa=a(()=>{"use strict"});var ha=a(()=>{"use strict"});var ga=a(()=>{"use strict"});var Da=a(()=>{"use strict"});var ya=a(()=>{"use strict"});var wa=a(()=>{"use strict"});var ba=a(()=>{"use strict"});var Ma=a(()=>{"use strict"});var Oa=a(()=>{"use strict"});var ka=a(()=>{"use strict"});var Sa=a(()=>{"use strict"});var va=a(()=>{"use strict"});var pa=a(()=>{"use strict"});var Ia=a(()=>{"use strict"});var Ta=a(()=>{"use strict"});var Na=a(()=>{"use strict"});var Ya=a(()=>{"use strict"});var Wa=a(()=>{"use strict"});var Fa=a(()=>{"use strict"});var Pa=a(()=>{"use strict"});var _a=a(()=>{"use strict"});var Ca=a(()=>{"use strict"});var Ha=a(()=>{"use strict"});var $a=a(()=>{"use strict"});var Ea=a(()=>{"use strict"});var za=a(()=>{"use strict"});var La=a(()=>{"use strict"});var Ra=a(()=>{"use strict"});var Aa=a(()=>{"use strict"});var Qa=a(()=>{"use strict"});var Ba=a(()=>{"use strict"});var qa=a(()=>{"use strict"});var ja=a(()=>{"use strict"});var Xa=a(()=>{"use strict"});var Ua=a(()=>{"use strict"});var Va=a(()=>{"use strict"});var Ga=a(()=>{"use strict"});var Ja=a(()=>{"use strict"});var Za=a(()=>{"use strict"});var Ka=a(()=>{"use strict"});var en=a(()=>{"use strict"});var tn=a(()=>{"use strict"});var rn=a(()=>{"use strict"});var an=a(()=>{"use strict"});var nn=a(()=>{"use strict"});var on=a(()=>{"use strict"});var fn=a(()=>{"use strict"});var un=a(()=>{"use strict"});var mn=a(()=>{"use strict"});var cn=a(()=>{"use strict"});var ln=a(()=>{"use strict"});var dn=a(()=>{"use strict"});var sn=a(()=>{"use strict"});var xn=a(()=>{"use strict"});var hn=a(()=>{"use strict"});var gn=a(()=>{"use strict"});var Dn=a(()=>{"use strict"});var yn=a(()=>{"use strict"});var wn=a(()=>{"use strict"});var bn=a(()=>{"use strict"});var Mn=a(()=>{"use strict"});var On=a(()=>{"use strict"});var kn=a(()=>{"use strict"});var Sn=a(()=>{"use strict"});var vn=a(()=>{"use strict"});var pn=a(()=>{"use strict"});var In=a(()=>{"use strict"});var Tn=a(()=>{"use strict"});var Nn=a(()=>{"use strict"});var Yn=a(()=>{"use strict"});var Wn=a(()=>{"use strict"});var Fn=a(()=>{"use strict"});var Pn=a(()=>{"use strict"});var _n=a(()=>{"use strict"});var Cn=a(()=>{"use strict"});var Hn=a(()=>{"use strict"});var $n=a(()=>{"use strict"});var En=a(()=>{"use strict"});var zn=a(()=>{"use strict"});var Ln=a(()=>{"use strict"});var Rn=a(()=>{"use strict"});var An=a(()=>{"use strict"});var Qn=a(()=>{"use strict"});var Bn=a(()=>{"use strict"});var qn=a(()=>{"use strict"});var jn=a(()=>{"use strict"});var Xn=a(()=>{"use strict"});var Un=a(()=>{"use strict"});var Vn=a(()=>{"use strict"});var Gn=a(()=>{"use strict"});var Jn=a(()=>{"use strict"});var Zn=a(()=>{"use strict"});var Kn=a(()=>{"use strict"});var eo=a(()=>{"use strict"});var to=a(()=>{"use strict"});var ro=a(()=>{"use strict"});var ao=a(()=>{"use strict"});var no=a(()=>{"use strict"});var oo=a(()=>{"use strict"});var fo=a(()=>{"use strict"});var uo=a(()=>{"use strict"});var mo=a(()=>{"use strict"});var co=a(()=>{"use strict"});var io=a(()=>{"use strict"});var lo=a(()=>{"use strict"});var so=a(()=>{"use strict"});var xo=a(()=>{"use strict"});var ho=a(()=>{"use strict"});var go=a(()=>{"use strict"});var Do=a(()=>{"use strict"});var yo=a(()=>{"use strict"});var wo=a(()=>{"use strict"});var bo=a(()=>{"use strict"});var Mo=a(()=>{"use strict"});var Oo=a(()=>{"use strict"});var ko=a(()=>{"use strict"});var So=a(()=>{"use strict"});var vo=a(()=>{"use strict"});var po=a(()=>{"use strict"});var Io=a(()=>{"use strict"});var To=a(()=>{"use strict"});var No=a(()=>{"use strict"});var Yo=a(()=>{"use strict"});var Wo=a(()=>{"use strict"});var Fo=a(()=>{"use strict"});var Po=a(()=>{"use strict"});var _o=a(()=>{"use strict"});var Co=a(()=>{"use strict"});var Ho=a(()=>{"use strict"});var $o=a(()=>{"use strict"});var Eo=a(()=>{"use strict"});var zo=a(()=>{"use strict"});var Lo=a(()=>{"use strict"});var Ro=a(()=>{"use strict"});var Ao=a(()=>{"use strict"});var Qo=a(()=>{"use strict"});var Bo=a(()=>{"use strict"});var qo=a(()=>{"use strict"});var jo=a(()=>{"use strict"});var Xo=a(()=>{"use strict"});var Uo=a(()=>{"use strict"});var Vo=a(()=>{"use strict"});var U=a(()=>{"use strict";Ge();et();Ue();rt();ct();tt();it();Ve();lt();dt();st();xt();ht();yt();wt();bt();Mt();Ot();W();kt();St();Tt();ye();Nt();Yt();Wt();Pt();_t();Ct();Ht();$t();zt();Lt();Rt();qt();jt();Xt();Ut();Vt();Gt();Jt();Zt();Kt();tr();rr();ar();or();mr();cr();At();ir();lr();sr();xr();hr();Qt();gr();Dr();yr();wr();dr();fr();br();ea();ta();ra();aa();na();oa();fa();ua();ma();ca();ia();la();da();sa();xa();Se();ha();Da();ya();wa();ba();Ma();ve();ne();Oa();ka();Sa();va();pa();Ft();Ia();Ta();Na();Ie();Ya();ue();Fa();Pa();_a();Ca();Ha();$a();Ea();za();La();Ra();Aa();be();Qa();Ba();qa();ja();Xa();Bt();ga();en();tn();rn();vt();nn();fn();un();cn();ln();dn();xn();on();hn();Je();Ze();gn();Dn();yn();wn();bn();Mn();On();kn();Sn();vn();pn();In();Me();Tn();Ke();Nn();Wn();Fn();_n();Cn();Wa();Hn();Pn();$n();En();gt();zn();Ln();Rn();An();Dt();Qn();Bn();qn();jn();Xn();Un();Vn();Gn();Jn();Zn();Kn();eo();to();Ka();ro();ao();no();oo();fo();uo();mo();co();io();lo();so();xo();ho();go();Do();yo();wo();Mo();Oo();Ja();ko();So();vo();Za();Ga();mt();po();Io();bo();To();No();Va();Yo();Wo();De();Fo();an();X();we();mn();nr();er();sn();Po();_o();z();pe();Oe();Co();$o();Eo();Yn();zo();Et();Lo();Ro();Ho();Ao();Qo();Bo();qo();I();Ua();jo();Xo();Uo();Vo()});var af={};B(af,{Blog_A:()=>rf,default:()=>rf});function rf({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,d.jsx)(tf.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(Jo.Container,{maxWidth:1280,children:[(0,d.jsx)(Yu,{subtitle:e,title:t}),(0,d.jsx)(Wu,{posts:r}),(0,d.jsx)(Fu,{primaryButton:n})]})})}function Yu({subtitle:e,title:t}){return(0,d.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,d.jsx)(Ye.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,d.jsx)(Zo.Heading,{fontSize:"3xl",children:t}):null]})}function Wu({posts:e}){var n,o,f,u;if(!e)return null;let t=6,r=0;return(0,d.jsxs)(V.Flex,{gap:4,className:"flex-col lg:flex-row",children:[(0,d.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(r,r+1))==null?void 0:n.map((m,s)=>(0,d.jsx)(me,{post:m},s)),(0,d.jsx)(V.Flex,{gap:4,className:"flex-col lg:flex-row",children:(o=e==null?void 0:e.slice(r+1,r+3))==null?void 0:o.map((m,s)=>(0,d.jsx)(me,{post:m},s))})]}),(0,d.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(0,d.jsx)(V.Flex,{gap:4,className:"flex-col lg:flex-row",children:(f=e==null?void 0:e.slice(r+3,r+5))==null?void 0:f.map((m,s)=>(0,d.jsx)(me,{post:m},s))}),(u=e==null?void 0:e.slice(r+5,t))==null?void 0:u.map((m,s)=>(0,d.jsx)(me,{post:m},s))]})]})}function me({post:e,key:t}){var r,n,o,f;return(0,d.jsxs)("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?(0,d.jsx)(Ko.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded-md",src:`${e==null?void 0:e.mainImage}`,alt:(r=e==null?void 0:e.alt)!=null?r:`blog-variantA-image-${t}`,sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,(0,d.jsx)("div",{className:"absolute inset-0 bg-gray-900 rounded-md opacity-75"}),(0,d.jsxs)("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?(0,d.jsx)("div",{className:"absolute flex left-5 top-5",children:(n=e==null?void 0:e.categories)==null?void 0:n.map((u,m)=>(0,d.jsx)("span",{className:"px-3 py-1 mb-auto mr-3 text-sm font-bold uppercase bg-white rounded-full text-primary",children:u==null?void 0:u.title},m))}):null,(0,d.jsxs)(V.Flex,{align:"center",className:"mt-auto",children:[(0,d.jsx)("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?P(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),(e==null?void 0:e.authors)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),(0,d.jsx)("div",{className:"flex mt-auto text-sm text-gray-500",children:(o=e==null?void 0:e.authors)==null?void 0:o.map((u,m,{length:s})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ye.Text,{className:"italic",fontSize:"sm",children:u==null?void 0:u.name}),m+1!==s?(0,d.jsx)("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?(0,d.jsx)(ef.Link,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",href:`/${e==null?void 0:e.link}`,children:((f=e==null?void 0:e.title)==null?void 0:f.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title}):null]})]})}function Fu({primaryButton:e}){return e!=null&&e.label?(0,d.jsx)("div",{className:"mt-10 text-center",children:(0,d.jsx)(Go.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var Go,Jo,V,Zo,Ko,ef,tf,Ye,d,nf=a(()=>{"use strict";Go=require("@stackshift-ui/button"),Jo=require("@stackshift-ui/container"),V=require("@stackshift-ui/flex"),Zo=require("@stackshift-ui/heading"),Ko=require("@stackshift-ui/image"),ef=require("@stackshift-ui/link"),tf=require("@stackshift-ui/section"),Ye=require("@stackshift-ui/text");U();d=require("react/jsx-runtime")});var ce,ie,We=a(()=>{"use strict";ce=qe(require("react")),ie=e=>{let[t,r]=ce.default.useState(!1),n=ce.default.useCallback(o=>{o.matches?r(!0):r(!1)},[]);return ce.default.useEffect(()=>{let o=window.matchMedia(`(max-width: ${e}px)`);return o.addEventListener("change",n),o.matches&&r(!0),()=>o.removeEventListener("change",n)},[]),t}});var df={};B(df,{Blog_B:()=>lf,default:()=>lf});function lf({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,l.jsx)(tf.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(Jo.Container,{maxWidth:1280,children:[(0,l.jsx)(Pu,{subtitle:e,title:t}),(0,l.jsx)(_u,{posts:r,count:0,blogsPerPage:5}),(0,l.jsx)(Hu,{primaryButton:n})]})})}function Pu({subtitle:e,title:t}){return(0,l.jsxs)("div",{className:"w-full mb-16 text-center",children:[e?(0,l.jsx)(Ye.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,l.jsx)(Zo.Heading,{fontSize:"3xl",children:t}):null]})}function _u({posts:e,count:t,blogsPerPage:r}){return(0,l.jsxs)(V.Flex,{wrap:!0,justify:"center",className:"mb-16",gap:4,children:[(0,l.jsx)("div",{className:"w-full lg:w-[45%]",children:e==null?void 0:e.slice(t,t+1).map((n,o)=>(0,l.jsx)(of,{size:"lg",post:n},o))}),(0,l.jsx)(V.Flex,{wrap:!0,className:"w-full lg:w-[45%]",gap:4,children:e==null?void 0:e.slice(t+1,r).map((n,o)=>(0,l.jsx)("div",{className:"w-full lg:basis-[45%]",children:(0,l.jsx)(of,{post:n,size:"sm"},o)},o))})]})}function of({post:e,size:t,key:r}){var o;let n=ie("1024");return(0,l.jsxs)("div",{className:"overflow-hidden rounded-md shadow",children:[e!=null&&e.mainImage?(0,l.jsx)(Cu,{post:e,size:t,breakpoints:n},r):null,(0,l.jsxs)("div",{className:"p-6 bg-white flex flex-col justify-between",style:{height:"295px"},children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)(V.Flex,{align:"center",children:[e!=null&&e.publishedAt?(0,l.jsx)(Ye.Text,{muted:!0,className:"text-sm",children:P(new Date(e.publishedAt)," dd MMM, yyyy")}):null,(e==null?void 0:e.authors)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),(0,l.jsx)("div",{className:"flex mt-auto text-sm text-gray-500",children:(o=e==null?void 0:e.authors)==null?void 0:o.map((f,u,{length:m})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Ye.Text,{className:"italic",fontSize:"sm",children:f==null?void 0:f.name}),u+1!==m?(0,l.jsx)("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?(0,l.jsx)(Zo.Heading,{type:"h4",className:"my-2",children:e.title.length>25?`${e.title.substring(0,25)}...`:e.title}):null,e!=null&&e.excerpt?(0,l.jsx)(Ye.Text,{muted:!0,className:"mb-6 text-justify",children:e.excerpt.length>41?`${e.excerpt.substring(0,41)}...`:e.excerpt}):null]}),e!=null&&e.link?(0,l.jsx)(ef.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"}):null]})]})}function Cu({post:e,size:t,breakpoints:r,key:n}){var o;return(0,l.jsx)(l.Fragment,{children:r?(0,l.jsx)(Ko.Image,{className:"object-cover w-full overflow-hidden",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"auto",objectFit:"cover"},width:271,height:248,alt:(o=e==null?void 0:e.mainImage)!=null?o:`blog-variantB-image-${n}`}):(0,l.jsx)("div",{className:`${t==="lg"?"h-[44.5rem]":"h-[12.5rem]"}`,children:(0,l.jsx)(Ko.Image,{className:"object-cover w-full overflow-hidden rounded-t-md",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"100%",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`})})})}function Hu({primaryButton:e}){return e!=null&&e.label?(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)(ff.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}var ff,Jo,V,Zo,Ko,ef,tf,Ye,l,sf=a(()=>{"use strict";ff=require("@stackshift-ui/button");U();We();l=require("react/jsx-runtime")});var Mf={};B(Mf,{Blog_C:()=>bf,default:()=>bf});function bf({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,g.jsx)(tf.Section,{className:"py-20 bg-background",children:(0,g.jsxs)(Jo.Container,{maxWidth:1280,children:[(0,g.jsxs)(V.Flex,{align:"center",justify:"between",className:"flex-col mb-16 md:flex-row",gap:5,children:[(0,g.jsx)($u,{subtitle:e,title:t}),(0,g.jsx)(Lu,{primaryButton:n})]}),(0,g.jsx)(Eu,{posts:r,blogsPerPage:3})]})})}function $u({subtitle:e,title:t}){return(0,g.jsxs)("div",{className:"flex flex-col gap-3 text-center md:text-left",children:[e?(0,g.jsx)(Ye.Text,{weight:"bold",className:"text-primary",children:e}):null,t?(0,g.jsx)(Zo.Heading,{fontSize:"3xl",children:t}):null]})}function Eu({posts:e,blogsPerPage:t}){var r;return e?(0,g.jsx)("div",{children:(r=e==null?void 0:e.slice(0,t))==null?void 0:r.map((n,o)=>(0,g.jsx)("div",{className:"flex flex-wrap mb-8 overflow-hidden rounded-md shadow",children:(0,g.jsx)(zu,{post:n,className:`${o%2===0?"flex-row":"flex-row-reverse"}`},o)},o))}):null}function zu({post:e,className:t,key:r}){var f,u,m,s,D,y,w;let o=ie("1100")?70:200;return(0,g.jsxs)(V.Flex,{wrap:!0,className:`bg-white overflow-hidden rounded-lg shadow w-full ${t}`,children:[(e==null?void 0:e.mainImage)&&(0,g.jsx)(Ko.Image,{className:"object-cover w-full h-auto rounded-l lg:w-1/2",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:554,height:416,alt:(f=e==null?void 0:e.alt)!=null?f:`blog-variantC-image-${r}`}),(0,g.jsxs)("div",{className:"w-full px-6 py-6 rounded-r lg:w-1/2 lg:pt-10",children:[(0,g.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[(e==null?void 0:e.categories)&&((u=e==null?void 0:e.categories)==null?void 0:u.map((x,M)=>(0,g.jsx)(xf.Badge,{className:"bg-secondary rounded-global w-fit",children:x==null?void 0:x.title},M))),(e==null?void 0:e.publishedAt)&&(0,g.jsx)(Ye.Text,{muted:!0,className:"m-1",children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")})]}),(e==null?void 0:e.title)&&(0,g.jsx)(Zo.Heading,{className:"my-4 text-xl lg:text-3xl",children:((m=e==null?void 0:e.title)==null?void 0:m.length)>40?((s=e==null?void 0:e.title)==null?void 0:s.substring(0,40))+"...":e==null?void 0:e.title}),(e==null?void 0:e.authors)&&(0,g.jsxs)("div",{className:"flex mb-10 flex-wrap",children:[(0,g.jsx)("span",{className:"italic text-primary",children:"By\xA0"}),(D=e==null?void 0:e.authors)==null?void 0:D.map((x,M,{length:O})=>(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Ye.Text,{className:"italic text-primary",children:x==null?void 0:x.name}),M+1!==O?(0,g.jsx)("span",{children:"\xA0,\xA0"}):null]}))]}),(e==null?void 0:e.excerpt)&&(0,g.jsx)(Ye.Text,{muted:!0,className:"mb-6 leading-loose lg:text-justify",children:((y=e==null?void 0:e.excerpt)==null?void 0:y.length)>o?((w=e==null?void 0:e.excerpt)==null?void 0:w.substring(0,o))+"...":e==null?void 0:e.excerpt}),(e==null?void 0:e.link)&&(0,g.jsx)(ef.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-primary-foreground",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"})]})]})}function Lu({primaryButton:e}){return e!=null&&e.label?(0,g.jsx)(hf.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,className:"inline-flex flex-wrap text-center bg-primary text-sm sm:text-base px-6 py-3 rounded-global",children:e==null?void 0:e.label}):null}var xf,hf,Jo,V,Zo,Ko,ef,tf,Ye,g,Of=a(()=>{"use strict";xf=require("@stackshift-ui/badge"),hf=require("@stackshift-ui/button");U();We();g=require("react/jsx-runtime")});var Ff={};B(Ff,{Blog_D:()=>Wf,default:()=>Wf});function Wf({subtitle:e,title:t,posts:r}){let[n,o]=Q.default.useState("All"),[f,u]=Q.default.useState(1),[m,s]=Q.default.useState(""),D=6;Q.default.useEffect(()=>{u(1)},[n]);let y=(r!=null?r:[]).flatMap(i=>{var k;return((k=i==null?void 0:i.categories)!=null?k:[]).map(T=>({category:T==null?void 0:T.title,title:i==null?void 0:i.title,slug:i==null?void 0:i.slug,excerpt:i==null?void 0:i.excerpt,publishedAt:i==null?void 0:i.publishedAt,mainImage:i==null?void 0:i.mainImage,authors:i==null?void 0:i.authors}))}),w=y==null?void 0:y.reduce((i,k)=>{let T=k==null?void 0:k.category;return i.indexOf(T)===-1&&i.push(T),i},[]),x=n==="All"?r==null?void 0:r.filter(i=>{var k;return(k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(m.toLowerCase())}):y.filter(i=>{var k;return(i==null?void 0:i.category)===n&&((k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(m.toLowerCase()))}),M=f*D,O=M-D,_=x==null?void 0:x.slice(O,M),C=i=>u(i);return(0,c.jsx)(tf.Section,{className:"py-20 bg-background",children:(0,c.jsxs)(Jo.Container,{maxWidth:1280,children:[(0,c.jsx)(Au,{subtitle:e,title:t}),(0,c.jsx)(Qu,{handleSearchChange:i=>{s(i.target.value),o("All"),u(1)}}),(0,c.jsxs)(V.Flex,{wrap:!0,children:[(0,c.jsx)(Bu,{categories:w,activeTab:n,setActiveTab:o}),(x==null?void 0:x.length)===0?(0,c.jsx)(Ru,{}):(0,c.jsx)(qu,{currentPosts:_,activeTab:n,blogsPerPage:D})]}),(0,c.jsx)(ju,{blogsPerPage:D,totalBlogs:x==null?void 0:x.length,paginate:C,currentPage:f})]})})}function Ru({message:e="No post available."}){return(0,c.jsx)("div",{className:"w-full px-3 lg:w-3/4 font-medium text-lg",children:e})}function Au({subtitle:e,title:t}){return(0,c.jsxs)("div",{className:"w-full mb-16",children:[e?(0,c.jsx)(Ye.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,c.jsx)(Zo.Heading,{fontSize:"3xl",children:t}):null]})}function Qu({handleSearchChange:e}){return(0,c.jsxs)("div",{className:"relative mb-5 w-full lg:w-1/4",children:[(0,c.jsx)(Tf.Input,{type:"text","aria-label":"Search, find any question you want to ask...",className:"w-full bg-white border rounded-global font-heading focus:border-gray-500 focus:outline-none",placeholder:"Search posts...",onChange:e}),(0,c.jsx)(de.Button,{as:"button",variant:"unstyled",ariaLabel:"Search button",className:"absolute right-0 top-0 h-full px-3 bg-white border-r rounded-global text-primary flex items-center",children:(0,c.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]})}function Bu({categories:e,activeTab:t,setActiveTab:r}){return(0,c.jsx)(vf.Card,{className:"w-full px-3 mb-8 bg-white lg:mb-0 lg:w-1/4",borderRadius:"md",children:e&&(0,c.jsxs)(Q.default.Fragment,{children:[(0,c.jsx)(Zo.Heading,{type:"h3",muted:!0,weight:"bold",className:"mb-4 text-base uppercase lg:text-base",children:"Topics"}),(0,c.jsxs)("ul",{children:[(e==null?void 0:e.length)>1&&(0,c.jsx)(kf,{activeTab:t,setActiveTab:r,category:"All"}),e==null?void 0:e.map((n,o)=>(0,c.jsx)(kf,{activeTab:t,setActiveTab:r,category:n},o))]})]})})}function kf({key:e,activeTab:t,setActiveTab:r,category:n}){return(0,c.jsx)("li",{children:(0,c.jsx)(de.Button,{as:"button",variant:"unstyled",ariaLabel:"Show all blog posts",className:`mb-4 block ${n?"block":"hidden"} px-3 py-2 hover:bg-secondary-foreground focus:outline-none w-full text-left rounded ${t===n?"font-bold text-primary focus:outline-none bg-secondary-foreground":null}`,onClick:()=>r(n),children:n})},e)}function qu({currentPosts:e,activeTab:t,blogsPerPage:r}){var n;return e?(0,c.jsx)("div",{className:"w-full px-3 lg:w-3/4",children:t==="All"?e==null?void 0:e.map((o,f)=>(0,c.jsx)(Sf,{post:o},f)):(n=e==null?void 0:e.slice(0,r))==null?void 0:n.map((o,f)=>(0,c.jsx)(Sf,{post:o},f))}):null}function Sf({post:e}){var t,r,n,o;return e?(0,c.jsxs)(V.Flex,{wrap:!0,className:"mb-8 lg:mb-6 bg-white shadow rounded-lg",children:[(0,c.jsx)("div",{className:"w-full h-full mb-4 lg:mb-0 lg:w-1/4",children:(0,c.jsx)(Ko.Image,{className:"object-cover w-full h-full overflow-hidden rounded",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:188,height:129,alt:(t=e==null?void 0:e.alt)!=null?t:`blog-variantD-image-${e==null?void 0:e.title}`})}),(0,c.jsxs)("div",{className:"w-full px-3 py-2 lg:w-3/4",children:[(e==null?void 0:e.title)&&(0,c.jsx)(ef.Link,{"aria-label":e==null?void 0:e.title,className:"mb-1 text-2xl font-bold hover:text-secondary font-heading",href:`/${(r=e==null?void 0:e.link)!=null?r:"page-not-added"}`,children:(e==null?void 0:e.title.length)>25?((n=e==null?void 0:e.title)==null?void 0:n.substring(0,25))+"...":e==null?void 0:e.title}),(0,c.jsxs)(V.Flex,{wrap:!0,align:"center",gap:1,className:"mb-2 text-sm",children:[e!=null&&e.authors?(o=e==null?void 0:e.authors)==null?void 0:o.map((f,u,{length:m})=>(0,c.jsxs)(V.Flex,{children:[(0,c.jsx)(Ye.Text,{className:"text-primary",children:f==null?void 0:f.name}),u+1!==m?(0,c.jsx)("span",{children:"\xA0,\xA0"}):null]},u)):null,e!=null&&e.publishedAt&&(e!=null&&e.authors)?(0,c.jsx)("span",{className:"mx-2 text-gray-500",children:"\u2022"}):null,e!=null&&e.publishedAt?(0,c.jsx)(Ye.Text,{muted:!0,children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")}):null]}),e!=null&&e.excerpt?(0,c.jsx)(Ye.Text,{muted:!0,children:(e==null?void 0:e.excerpt.length)>60?(e==null?void 0:e.excerpt.substring(0,60))+"...":e==null?void 0:e.excerpt}):null]})]}):null}function ju({blogsPerPage:e,totalBlogs:t,paginate:r,currentPage:n}){if(!e)return null;let o=[];for(let f=1;f<=Math.ceil(t/e);f++)o.push(f);return(0,c.jsx)("nav",{className:"mt-4","aria-label":"Pagination",children:(0,c.jsx)("ul",{className:"flex space-x-2 justify-end mr-5",children:o.map(f=>(0,c.jsx)(de.Button,{variant:"unstyled",as:"button",ariaLabel:`Page ${f}`,className:`${n===f?"bg-secondary-foreground text-gray-500":"bg-white hover:bg-secondary-foreground hover:text-gray-500"} text-primary font-medium py-2 px-4 border border-primary rounded-global focus:outline-none`,onClick:()=>r(f),children:f},f))})})}var de,vf,Jo,V,Zo,Ko,Tf,ef,tf,Ye,Q,c,Pf=a(()=>{"use strict";de=require("@stackshift-ui/button"),vf=require("@stackshift-ui/card"),Tf=require("@stackshift-ui/input");U();Q=qe(require("react")),c=require("react/jsx-runtime")});var Vu={};B(Vu,{Blog:()=>_f});module.exports=Rf(Vu);var ee=require("react"),Xu={variant_a:(0,ee.lazy)(()=>Promise.resolve().then(()=>(nf(),af))),variant_b:(0,ee.lazy)(()=>Promise.resolve().then(()=>(sf(),df))),variant_c:(0,ee.lazy)(()=>Promise.resolve().then(()=>(Of(),Mf))),variant_d:(0,ee.lazy)(()=>Promise.resolve().then(()=>(Pf(),Ff)))},Uu="Blog",_f=({data:e})=>{var o,f,u,m,s,D,y,w,x;let t=e==null?void 0:e.variant,r=t&&Xu[t],n={subtitle:(f=(o=e==null?void 0:e.variants)==null?void 0:o.subtitle)!=null?f:void 0,title:(m=(u=e==null?void 0:e.variants)==null?void 0:u.title)!=null?m:void 0,posts:(y=((s=e==null?void 0:e.variants)==null?void 0:s.posts)||((D=e==null?void 0:e.variants)==null?void 0:D.blogPosts))!=null?y:void 0,primaryButton:(x=(w=e==null?void 0:e.variants)==null?void 0:w.primaryButton)!=null?x:void 0};return r?(0,c.jsx)(r,{...n}):null};_f.displayName=Uu;0&&(module.exports={Blog});
1
+ "use strict";var Qf=Object.create;var ae=Object.defineProperty;var qf=Object.getOwnPropertyDescriptor;var jf=Object.getOwnPropertyNames;var Xf=Object.getPrototypeOf,Uf=Object.prototype.hasOwnProperty;var a=(e,t)=>()=>(e&&(t=e(e=0)),t);var V=(e,t)=>{for(var r in t)ae(e,r,{get:t[r],enumerable:!0})},Ze=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of jf(t))!Uf.call(e,o)&&o!==r&&ae(e,o,{get:()=>t[o],enumerable:!(n=qf(t,o))||n.enumerable});return e};var Ke=(e,t,r)=>(r=e!=null?Qf(Xf(e)):{},Ze(t||!e||!e.__esModule?ae(r,"default",{value:e,enumerable:!0}):r,e)),Vf=e=>Ze(ae({},"__esModule",{value:!0}),e);var Gf,nu,ne,Be,Jf,et,ou,Zf,Kf,fu,we,G=a(()=>{"use strict";Gf=Math.pow(10,8)*24*60*60*1e3,nu=-Gf,ne=6048e5,Be=864e5,Jf=3600,et=Jf*24,ou=et*7,Zf=et*365.2425,Kf=Zf/12,fu=Kf*3,we=Symbol.for("constructDateFrom")});function I(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&we in e?e[we](t):e instanceof Date?new e.constructor(t):new Date(t)}var F=a(()=>{"use strict";G()});function b(e,t){return I(t||e,e)}var v=a(()=>{"use strict";F()});var tt=a(()=>{"use strict"});var rt=a(()=>{"use strict"});var at=a(()=>{"use strict"});var nt=a(()=>{"use strict"});var ot=a(()=>{"use strict"});var ft=a(()=>{"use strict"});var mt=a(()=>{"use strict"});var ut=a(()=>{"use strict"});var ct=a(()=>{"use strict"});function W(){return Bf}var Bf,J=a(()=>{"use strict";Bf={}});function p(e,t){var u,s,D,y,w,h,M,O;let r=W(),n=(O=(M=(y=(D=t==null?void 0:t.weekStartsOn)!=null?D:(s=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:s.weekStartsOn)!=null?y:r.weekStartsOn)!=null?M:(h=(w=r.locale)==null?void 0:w.options)==null?void 0:h.weekStartsOn)!=null?O:0,o=b(e,t==null?void 0:t.in),f=o.getDay(),m=(f<n?7:0)+f-n;return o.setDate(o.getDate()-m),o.setHours(0,0,0,0),o}var z=a(()=>{"use strict";J();v()});function H(e,t){return p(e,{...t,weekStartsOn:1})}var Z=a(()=>{"use strict";z()});function oe(e,t){let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=I(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let f=H(o),m=I(r,0);m.setFullYear(n,0,4),m.setHours(0,0,0,0);let u=H(m);return r.getTime()>=f.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}var fe=a(()=>{"use strict";F();Z();v()});function be(e){let t=b(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}var it=a(()=>{"use strict";v()});function lt(e,...t){let r=I.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}var dt=a(()=>{"use strict";F()});function Me(e,t){let r=b(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}var Oe=a(()=>{"use strict";v()});function st(e,t,r){let[n,o]=lt(r==null?void 0:r.in,e,t),f=Me(n),m=Me(o),u=+f-be(f),s=+m-be(m);return Math.round((u-s)/Be)}var ke=a(()=>{"use strict";it();dt();G();Oe()});function xt(e,t){let r=oe(e,t),n=I((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),H(n)}var Se=a(()=>{"use strict";F();fe();Z()});var ht=a(()=>{"use strict"});var gt=a(()=>{"use strict"});var Dt=a(()=>{"use strict"});var yt=a(()=>{"use strict"});var wt=a(()=>{"use strict"});var bt=a(()=>{"use strict"});var Mt=a(()=>{"use strict"});var Ot=a(()=>{"use strict"});var kt=a(()=>{"use strict"});var St=a(()=>{"use strict"});var It=a(()=>{"use strict"});var Tt=a(()=>{"use strict"});var vt=a(()=>{"use strict"});var Nt=a(()=>{"use strict"});var pt=a(()=>{"use strict"});var Yt=a(()=>{"use strict"});var Ft=a(()=>{"use strict"});var Wt=a(()=>{"use strict"});function Pt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var Ie=a(()=>{"use strict"});function Ct(e){return!(!Pt(e)&&typeof e!="number"||isNaN(+b(e)))}var Te=a(()=>{"use strict";Ie();v()});var _t=a(()=>{"use strict"});var Ht=a(()=>{"use strict"});var Lt=a(()=>{"use strict"});var Et=a(()=>{"use strict"});var $t=a(()=>{"use strict"});var zt=a(()=>{"use strict"});var Rt=a(()=>{"use strict"});var At=a(()=>{"use strict"});var Qt=a(()=>{"use strict"});var qt=a(()=>{"use strict"});var jt=a(()=>{"use strict"});var Xt=a(()=>{"use strict"});var Ut=a(()=>{"use strict"});var Vt=a(()=>{"use strict"});var Gt=a(()=>{"use strict"});var Jt=a(()=>{"use strict"});var Zt=a(()=>{"use strict"});var Kt=a(()=>{"use strict"});var Bt=a(()=>{"use strict"});var er=a(()=>{"use strict"});var tr=a(()=>{"use strict"});var rr=a(()=>{"use strict"});var ar=a(()=>{"use strict"});var nr=a(()=>{"use strict"});var or=a(()=>{"use strict"});var fr=a(()=>{"use strict"});var mr=a(()=>{"use strict"});var ur=a(()=>{"use strict"});var cr=a(()=>{"use strict"});var ir=a(()=>{"use strict"});var lr=a(()=>{"use strict"});var dr=a(()=>{"use strict"});var sr=a(()=>{"use strict"});function xr(e,t){let r=b(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var ve=a(()=>{"use strict";v()});var hr=a(()=>{"use strict"});var gr=a(()=>{"use strict"});var Dr=a(()=>{"use strict"});var yr=a(()=>{"use strict"});var wr=a(()=>{"use strict"});var br=a(()=>{"use strict"});var Mr=a(()=>{"use strict"});var Or=a(()=>{"use strict"});var kr=a(()=>{"use strict"});var Sr=a(()=>{"use strict"});var Ir=a(()=>{"use strict"});var Tr=a(()=>{"use strict"});var vr=a(()=>{"use strict"});var em,Nr,pr=a(()=>{"use strict";em={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Nr=(e,t,r)=>{let n,o=em[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n}});function me(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Yr=a(()=>{"use strict"});var tm,rm,am,Fr,Wr=a(()=>{"use strict";Yr();tm={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},rm={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},am={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fr={date:me({formats:tm,defaultWidth:"full"}),time:me({formats:rm,defaultWidth:"full"}),dateTime:me({formats:am,defaultWidth:"full"})}});var nm,Pr,Cr=a(()=>{"use strict";nm={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pr=(e,t,r,n)=>nm[e]});function R(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let m=e.defaultFormattingWidth||e.defaultWidth,u=r!=null&&r.width?String(r.width):m;o=e.formattingValues[u]||e.formattingValues[m]}else{let m=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[u]||e.values[m]}let f=e.argumentCallback?e.argumentCallback(t):t;return o[f]}}var _r=a(()=>{"use strict"});var om,fm,mm,um,cm,im,lm,Hr,Lr=a(()=>{"use strict";_r();om={narrow:["He","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},fm={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mm={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},um={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},cm={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},im={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},lm=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Hr={ordinalNumber:lm,era:R({values:om,defaultWidth:"wide"}),quarter:R({values:fm,defaultWidth:"wide",argumentCallback:e=>e-1}),month:R({values:mm,defaultWidth:"wide"}),day:R({values:um,defaultWidth:"wide"}),dayPeriod:R({values:cm,defaultWidth:"wide",formattingValues:im,defaultFormattingWidth:"wide"})}});function A(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],f=t.match(o);if(!f)return null;let m=f[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(u)?sm(u,w=>w.test(m)):dm(u,w=>w.test(m)),D;D=e.valueCallback?e.valueCallback(s):s,D=r.valueCallback?r.valueCallback(D):D;let y=t.slice(m.length);return{value:D,rest:y}}}function dm(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function sm(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}var Er=a(()=>{"use strict"});function $r(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],f=t.match(e.parsePattern);if(!f)return null;let m=e.valueCallback?e.valueCallback(f[0]):f[0];m=r.valueCallback?r.valueCallback(m):m;let u=t.slice(o.length);return{value:m,rest:u}}}var zr=a(()=>{"use strict"});var xm,hm,gm,Dm,ym,wm,bm,Mm,Om,km,Sm,Im,Rr,Ar=a(()=>{"use strict";Er();zr();xm=/^(\d+)(th|st|nd|rd)?/i,hm=/\d+/i,gm={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?l\.?|b\.?\s?l\.?\s?e\.?|a\.?\s?d\.?|l\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Dm={any:[/^b/i,/^(a|l)/i]},ym={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},wm={any:[/1/i,/2/i,/3/i,/4/i]},bm={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Mm={narrow:[/^E/i,/^f/i,/^m/i,/^a/i,/^m/i,/^E/i,/^E/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Om={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},km={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Sm={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Im={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Rr={ordinalNumber:$r({matchPattern:xm,parsePattern:hm,valueCallback:e=>parseInt(e,10)}),era:A({matchPatterns:gm,defaultMatchWidth:"wide",parsePatterns:Dm,defaultParseWidth:"any"}),quarter:A({matchPatterns:ym,defaultMatchWidth:"wide",parsePatterns:wm,defaultParseWidth:"any",valueCallback:e=>e+1}),month:A({matchPatterns:bm,defaultMatchWidth:"wide",parsePatterns:Mm,defaultParseWidth:"any"}),day:A({matchPatterns:Om,defaultMatchWidth:"wide",parsePatterns:km,defaultParseWidth:"any"}),dayPeriod:A({matchPatterns:Sm,defaultMatchWidth:"any",parsePatterns:Im,defaultParseWidth:"any"})}});var Ne,Qr=a(()=>{"use strict";pr();Wr();Cr();Lr();Ar();Ne={code:"en-US",formatDistance:Nr,formatLong:Fr,formatRelative:Pr,localize:Hr,match:Rr,options:{weekStartsOn:0,firstWeekContainsDate:1}}});var qr=a(()=>{"use strict";Qr()});function jr(e,t){let r=b(e,t==null?void 0:t.in);return st(r,xr(r))+1}var pe=a(()=>{"use strict";ke();ve();v()});function Xr(e,t){let r=b(e,t==null?void 0:t.in),n=+H(r)-+xt(r);return Math.round(n/ne)+1}var Ye=a(()=>{"use strict";G();Z();Se();v()});function ue(e,t){var y,w,h,M,O,C,_,$;let r=b(e,t==null?void 0:t.in),n=r.getFullYear(),o=W(),f=($=(_=(M=(h=t==null?void 0:t.firstWeekContainsDate)!=null?h:(w=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:w.firstWeekContainsDate)!=null?M:o.firstWeekContainsDate)!=null?_:(C=(O=o.locale)==null?void 0:O.options)==null?void 0:C.firstWeekContainsDate)!=null?$:1,m=I((t==null?void 0:t.in)||e,0);m.setFullYear(n+1,0,f),m.setHours(0,0,0,0);let u=p(m,t),s=I((t==null?void 0:t.in)||e,0);s.setFullYear(n,0,f),s.setHours(0,0,0,0);let D=p(s,t);return+r>=+u?n+1:+r>=+D?n:n-1}var ce=a(()=>{"use strict";J();F();z();v()});function Ur(e,t){var u,s,D,y,w,h,M,O;let r=W(),n=(O=(M=(y=(D=t==null?void 0:t.firstWeekContainsDate)!=null?D:(s=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:s.firstWeekContainsDate)!=null?y:r.firstWeekContainsDate)!=null?M:(h=(w=r.locale)==null?void 0:w.options)==null?void 0:h.firstWeekContainsDate)!=null?O:1,o=ue(e,t),f=I((t==null?void 0:t.in)||e,0);return f.setFullYear(o,0,n),f.setHours(0,0,0,0),p(f,t)}var Fe=a(()=>{"use strict";J();F();ce();z()});function Vr(e,t){let r=b(e,t==null?void 0:t.in),n=+p(r,t)-+Ur(r,t);return Math.round(n/ne)+1}var We=a(()=>{"use strict";G();z();Fe();v()});function g(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var Pe=a(()=>{"use strict"});var Y,Gr=a(()=>{"use strict";Pe();Y={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return g(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):g(r+1,2)},d(e,t){return g(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return g(e.getHours()%12||12,t.length)},H(e,t){return g(e.getHours(),t.length)},m(e,t){return g(e.getMinutes(),t.length)},s(e,t){return g(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return g(o,t.length)}}});function Jr(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),f=n%60;return f===0?r+String(o):r+String(o)+t+g(f,2)}function Zr(e,t){return e%60===0?(e>0?"-":"+")+g(Math.abs(e)/60,2):L(e,t)}function L(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=g(Math.trunc(n/60),2),f=g(n%60,2);return r+o+t+f}var Q,Ce,Kr=a(()=>{"use strict";pe();Ye();fe();We();ce();Pe();Gr();Q={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ce={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return Y.y(e,t)},Y:function(e,t,r,n){let o=ue(e,n),f=o>0?o:1-o;if(t==="YY"){let m=f%100;return g(m,2)}return t==="Yo"?r.ordinalNumber(f,{unit:"year"}):g(f,t.length)},R:function(e,t){let r=oe(e);return g(r,t.length)},u:function(e,t){let r=e.getFullYear();return g(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return g(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return g(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return Y.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return g(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let o=Vr(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):g(o,t.length)},I:function(e,t,r){let n=Xr(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):g(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Y.d(e,t)},D:function(e,t,r){let n=jr(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):g(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(f);case"He":return g(f,2);case"eo":return r.ordinalNumber(f,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},l:function(e,t,r,n){let o=e.getDay(),f=(o-n.weekStartsOn+8)%7||7;switch(t){case"l":return String(f);case"cc":return g(f,t.length);case"co":return r.ordinalNumber(f,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return g(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),o;switch(n===12?o=Q.noon:n===0?o=Q.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},He:function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=Q.evening:n>=12?o=Q.afternoon:n>=4?o=Q.morning:o=Q.night,t){case"He":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Y.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Y.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):g(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):g(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Y.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Y.s(e,t)},S:function(e,t){return Y.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Zr(n);case"XXXX":case"XX":return L(n);case"XXXXX":case"XXX":default:return L(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Zr(n);case"xxxx":case"xx":return L(n);case"xxxxx":case"xxx":default:return L(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Jr(n,":");case"OOOO":default:return"GMT"+L(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Jr(n,":");case"zzzz":default:return"GMT"+L(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return g(n,t.length)},T:function(e,t,r){return g(+e,t.length)}}});var Br,ea,Tm,ta,ra=a(()=>{"use strict";Br=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},ea=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Tm=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Br(e,t);let f;switch(n){case"P":f=t.dateTime({width:"short"});break;case"PP":f=t.dateTime({width:"medium"});break;case"PPP":f=t.dateTime({width:"long"});break;case"PPPP":default:f=t.dateTime({width:"full"});break}return f.replace("{{date}}",Br(n,t)).replace("{{time}}",ea(o,t))},ta={p:ea,P:Tm}});function aa(e){return vm.test(e)}function na(e){return Nm.test(e)}function oa(e,t,r){let n=Ym(e,t,r);if(console.warn(n),pm.includes(e))throw new RangeError(n)}function Ym(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var vm,Nm,pm,fa=a(()=>{"use strict";vm=/^D+$/,Nm=/^Y+$/,pm=["D","DD","YY","YYYY"]});function P(e,t,r){var y,w,h,M,O,C,_,$,i,k,N,qe,je,Xe,Ue,Ve,Ge,Je;let n=W(),o=(w=(y=r==null?void 0:r.locale)!=null?y:n.locale)!=null?w:Ne,f=(k=(i=(C=(O=r==null?void 0:r.firstWeekContainsDate)!=null?O:(M=(h=r==null?void 0:r.locale)==null?void 0:h.options)==null?void 0:M.firstWeekContainsDate)!=null?C:n.firstWeekContainsDate)!=null?i:($=(_=n.locale)==null?void 0:_.options)==null?void 0:$.firstWeekContainsDate)!=null?k:1,m=(Je=(Ge=(Xe=(je=r==null?void 0:r.weekStartsOn)!=null?je:(qe=(N=r==null?void 0:r.locale)==null?void 0:N.options)==null?void 0:qe.weekStartsOn)!=null?Xe:n.weekStartsOn)!=null?Ge:(Ve=(Ue=n.locale)==null?void 0:Ue.options)==null?void 0:Ve.weekStartsOn)!=null?Je:0,u=b(e,r==null?void 0:r.in);if(!Ct(u))throw new RangeError("Invalid time value");let s=t.match(Wm).map(T=>{let S=T[0];if(S==="p"||S==="P"){let ye=ta[S];return ye(T,o.formatLong)}return T}).join("").match(Fm).map(T=>{if(T==="''")return{isToken:!1,value:"'"};let S=T[0];if(S==="'")return{isToken:!1,value:Hm(T)};if(Ce[S])return{isToken:!0,value:T};if(S.match(_m))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:T}});o.localize.preprocessor&&(s=o.localize.preprocessor(u,s));let D={firstWeekContainsDate:f,weekStartsOn:m,locale:o};return s.map(T=>{if(!T.isToken)return T.value;let S=T.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&na(S)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&aa(S))&&oa(S,t,String(e));let ye=Ce[S[0]];return ye(u,S,o.localize,D)}).join("")}function Hm(e){let t=e.match(Pm);return t?t[1].replace(Cm,"'"):e}var Fm,Wm,Pm,Cm,_m,ma=a(()=>{"use strict";qr();J();Kr();ra();fa();Te();v();Fm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Wm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pm=/^'([^]*?)'?$/,Cm=/''/g,_m=/[a-zA-Z]/});var ua=a(()=>{"use strict"});var ca=a(()=>{"use strict"});var ia=a(()=>{"use strict"});var la=a(()=>{"use strict"});var da=a(()=>{"use strict"});var sa=a(()=>{"use strict"});var xa=a(()=>{"use strict"});var ha=a(()=>{"use strict"});var ga=a(()=>{"use strict"});var Da=a(()=>{"use strict"});var ya=a(()=>{"use strict"});var wa=a(()=>{"use strict"});var ba=a(()=>{"use strict"});var Ma=a(()=>{"use strict"});var Oa=a(()=>{"use strict"});var ka=a(()=>{"use strict"});var Sa=a(()=>{"use strict"});var Ia=a(()=>{"use strict"});var Ta=a(()=>{"use strict"});var va=a(()=>{"use strict"});var Na=a(()=>{"use strict"});var pa=a(()=>{"use strict"});var Ya=a(()=>{"use strict"});var Fa=a(()=>{"use strict"});var Wa=a(()=>{"use strict"});var Pa=a(()=>{"use strict"});var Ca=a(()=>{"use strict"});var _a=a(()=>{"use strict"});var Ha=a(()=>{"use strict"});var La=a(()=>{"use strict"});var Ea=a(()=>{"use strict"});var $a=a(()=>{"use strict"});var za=a(()=>{"use strict"});var Ra=a(()=>{"use strict"});var Aa=a(()=>{"use strict"});var Qa=a(()=>{"use strict"});var qa=a(()=>{"use strict"});var ja=a(()=>{"use strict"});var Xa=a(()=>{"use strict"});var Ua=a(()=>{"use strict"});var Va=a(()=>{"use strict"});var Ga=a(()=>{"use strict"});var Ja=a(()=>{"use strict"});var Za=a(()=>{"use strict"});var Ka=a(()=>{"use strict"});var Ba=a(()=>{"use strict"});var en=a(()=>{"use strict"});var tn=a(()=>{"use strict"});var rn=a(()=>{"use strict"});var an=a(()=>{"use strict"});var nn=a(()=>{"use strict"});var on=a(()=>{"use strict"});var fn=a(()=>{"use strict"});var mn=a(()=>{"use strict"});var un=a(()=>{"use strict"});var cn=a(()=>{"use strict"});var ln=a(()=>{"use strict"});var dn=a(()=>{"use strict"});var sn=a(()=>{"use strict"});var xn=a(()=>{"use strict"});var hn=a(()=>{"use strict"});var gn=a(()=>{"use strict"});var Dn=a(()=>{"use strict"});var yn=a(()=>{"use strict"});var wn=a(()=>{"use strict"});var bn=a(()=>{"use strict"});var Mn=a(()=>{"use strict"});var On=a(()=>{"use strict"});var kn=a(()=>{"use strict"});var Sn=a(()=>{"use strict"});var In=a(()=>{"use strict"});var Tn=a(()=>{"use strict"});var vn=a(()=>{"use strict"});var Nn=a(()=>{"use strict"});var pn=a(()=>{"use strict"});var Yn=a(()=>{"use strict"});var Fn=a(()=>{"use strict"});var Wn=a(()=>{"use strict"});var Pn=a(()=>{"use strict"});var Cn=a(()=>{"use strict"});var _n=a(()=>{"use strict"});var Hn=a(()=>{"use strict"});var Ln=a(()=>{"use strict"});var En=a(()=>{"use strict"});var $n=a(()=>{"use strict"});var zn=a(()=>{"use strict"});var Rn=a(()=>{"use strict"});var An=a(()=>{"use strict"});var Qn=a(()=>{"use strict"});var qn=a(()=>{"use strict"});var jn=a(()=>{"use strict"});var Xn=a(()=>{"use strict"});var Un=a(()=>{"use strict"});var Vn=a(()=>{"use strict"});var Gn=a(()=>{"use strict"});var Jn=a(()=>{"use strict"});var Zn=a(()=>{"use strict"});var Kn=a(()=>{"use strict"});var Bn=a(()=>{"use strict"});var eo=a(()=>{"use strict"});var to=a(()=>{"use strict"});var ro=a(()=>{"use strict"});var ao=a(()=>{"use strict"});var no=a(()=>{"use strict"});var oo=a(()=>{"use strict"});var fo=a(()=>{"use strict"});var mo=a(()=>{"use strict"});var uo=a(()=>{"use strict"});var co=a(()=>{"use strict"});var io=a(()=>{"use strict"});var lo=a(()=>{"use strict"});var so=a(()=>{"use strict"});var xo=a(()=>{"use strict"});var ho=a(()=>{"use strict"});var go=a(()=>{"use strict"});var Do=a(()=>{"use strict"});var yo=a(()=>{"use strict"});var wo=a(()=>{"use strict"});var bo=a(()=>{"use strict"});var Mo=a(()=>{"use strict"});var Oo=a(()=>{"use strict"});var ko=a(()=>{"use strict"});var So=a(()=>{"use strict"});var Io=a(()=>{"use strict"});var To=a(()=>{"use strict"});var vo=a(()=>{"use strict"});var No=a(()=>{"use strict"});var po=a(()=>{"use strict"});var Yo=a(()=>{"use strict"});var Fo=a(()=>{"use strict"});var Wo=a(()=>{"use strict"});var Po=a(()=>{"use strict"});var Co=a(()=>{"use strict"});var _o=a(()=>{"use strict"});var Ho=a(()=>{"use strict"});var Lo=a(()=>{"use strict"});var Eo=a(()=>{"use strict"});var $o=a(()=>{"use strict"});var zo=a(()=>{"use strict"});var Ro=a(()=>{"use strict"});var Ao=a(()=>{"use strict"});var Qo=a(()=>{"use strict"});var qo=a(()=>{"use strict"});var jo=a(()=>{"use strict"});var Xo=a(()=>{"use strict"});var Uo=a(()=>{"use strict"});var Vo=a(()=>{"use strict"});var Go=a(()=>{"use strict"});var Jo=a(()=>{"use strict"});var Zo=a(()=>{"use strict"});var Ko=a(()=>{"use strict"});var Bo=a(()=>{"use strict"});var ef=a(()=>{"use strict"});var tf=a(()=>{"use strict"});var rf=a(()=>{"use strict"});var K=a(()=>{"use strict";at();mt();tt();ct();gt();ut();Dt();rt();yt();wt();bt();Mt();Ot();It();Tt();vt();Nt();pt();F();Yt();Ft();_t();ke();Ht();Lt();Et();zt();Rt();At();Qt();qt();Xt();Ut();Vt();Kt();Bt();er();tr();rr();ar();nr();or();fr();ur();cr();ir();dr();hr();gr();Gt();Dr();yr();br();Mr();Or();Jt();kr();Sr();Ir();Tr();wr();sr();vr();ma();ua();ca();ia();la();da();sa();xa();ha();ga();Da();ya();wa();ba();Ma();pe();Oa();Sa();Ia();Ta();va();Na();Ye();fe();pa();Ya();Fa();Wa();Pa();$t();Ca();_a();Ha();We();La();ce();$a();za();Ra();Aa();Qa();qa();ja();Xa();Ua();Va();Ga();Ie();Ja();Za();Ka();Ba();en();Zt();ka();mn();un();cn();Wt();dn();xn();hn();Dn();yn();wn();Mn();sn();On();nt();ot();kn();Sn();In();Tn();vn();Nn();pn();Yn();Fn();Wn();Pn();Cn();Te();_n();ft();Hn();En();$n();Rn();An();Ea();Qn();zn();qn();jn();kt();Xn();Un();Vn();Gn();St();Jn();Zn();Kn();Bn();eo();to();ro();ao();no();oo();fo();mo();uo();fn();co();io();lo();so();xo();ho();go();Do();yo();wo();bo();Mo();Oo();ko();So();Io();To();No();po();nn();Yo();Fo();Wo();on();an();ht();Po();Co();vo();_o();Ho();rn();Lo();Eo();Oe();$o();ln();Z();Se();gn();lr();mr();bn();zo();Ro();z();Fe();ve();Ao();qo();jo();Ln();Xo();jt();Uo();Vo();Qo();Go();Jo();Zo();Ko();v();tn();Bo();ef();tf();rf()});var df={};V(df,{Blog_A:()=>lf,default:()=>lf});function lf({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,l.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(nf.Container,{maxWidth:1280,children:[(0,l.jsx)(Lm,{subtitle:e,title:t}),(0,l.jsx)(Em,{posts:r}),(0,l.jsx)($m,{primaryButton:n})]})})}function Lm({subtitle:e,title:t}){return(0,l.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,l.jsx)(He.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,l.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function Em({posts:e}){var n,o,f,m;if(!e)return null;let t=6,r=0;return(0,l.jsxs)(E.Flex,{gap:4,className:"flex-col lg:flex-row",children:[(0,l.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(r,r+1))==null?void 0:n.map((u,s)=>(0,l.jsx)(ie,{post:u},s)),(0,l.jsx)(E.Flex,{gap:4,className:"flex-col lg:flex-row",children:(o=e==null?void 0:e.slice(r+1,r+3))==null?void 0:o.map((u,s)=>(0,l.jsx)(ie,{post:u},s))})]}),(0,l.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(0,l.jsx)(E.Flex,{gap:4,className:"flex-col lg:flex-row",children:(f=e==null?void 0:e.slice(r+3,r+5))==null?void 0:f.map((u,s)=>(0,l.jsx)(ie,{post:u},s))}),(m=e==null?void 0:e.slice(r+5,t))==null?void 0:m.map((u,s)=>(0,l.jsx)(ie,{post:u},s))]})]})}function ie({post:e,key:t}){var r,n,o,f;return(0,l.jsxs)(q.Card,{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?(0,l.jsx)(ff.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded-md",src:`${e==null?void 0:e.mainImage}`,alt:(r=e==null?void 0:e.alt)!=null?r:`blog-variantA-image-${t}`,sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,(0,l.jsx)("div",{className:"absolute inset-0 bg-gray-900 rounded-md opacity-75"}),(0,l.jsxs)(q.CardContent,{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?(0,l.jsx)(E.Flex,{gap:2,className:"absolute left-5 top-5",children:(n=e==null?void 0:e.categories)==null?void 0:n.map((m,u)=>(0,l.jsx)(uf.Badge,{children:m==null?void 0:m.title},u))}):null,(0,l.jsxs)(E.Flex,{align:"center",className:"mt-auto",children:[(0,l.jsx)("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?P(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),(e==null?void 0:e.authors)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),(0,l.jsx)(E.Flex,{className:"mt-auto text-sm text-gray-500",children:(o=e==null?void 0:e.authors)==null?void 0:o.map((m,u,{length:s})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(He.Text,{className:"italic",fontSize:"sm",children:m==null?void 0:m.name}),u+1!==s?(0,l.jsx)("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?(0,l.jsx)(q.CardTitle,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",children:(0,l.jsx)(_e.Link,{href:`/${e==null?void 0:e.link}`,children:((f=e==null?void 0:e.title)==null?void 0:f.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title})}):null]})]})}function $m({primaryButton:e}){var r,n,o;if(!(e!=null&&e.label))return null;let t=(0,cf.buildSanityLink)({type:(r=e==null?void 0:e.type)!=null?r:"",internalLink:(n=e==null?void 0:e.internalLink)!=null?n:"",externalLink:(o=e==null?void 0:e.externalLink)!=null?o:""});return(0,l.jsx)("div",{className:"text-center mt-10",children:(0,l.jsx)(af.Button,{"aria-label":e==null?void 0:e.label,asChild:!0,children:(0,l.jsx)(_e.Link,{href:t.href,target:t.target,rel:t.rel,"aria-label":e==null?void 0:e.label,children:e==null?void 0:e.label})})})}var af,nf,E,of,ff,_e,mf,He,uf,q,cf,l,sf=a(()=>{"use strict";af=require("@stackshift-ui/button"),nf=require("@stackshift-ui/container"),E=require("@stackshift-ui/flex"),of=require("@stackshift-ui/heading"),ff=require("@stackshift-ui/image"),_e=require("@stackshift-ui/link"),mf=require("@stackshift-ui/section"),He=require("@stackshift-ui/text");K();uf=require("@stackshift-ui/badge"),q=require("@stackshift-ui/card"),cf=require("@stackshift-ui/system"),l=require("react/jsx-runtime")});var le,de,Le=a(()=>{"use strict";le=Ke(require("react")),de=e=>{let[t,r]=le.default.useState(!1),n=le.default.useCallback(o=>{o.matches?r(!0):r(!1)},[]);return le.default.useEffect(()=>{let o=window.matchMedia(`(max-width: ${e}px)`);return o.addEventListener("change",n),o.matches&&r(!0),()=>o.removeEventListener("change",n)},[]),t}});var bf={};V(bf,{Blog_B:()=>wf,default:()=>wf});function wf({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,d.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,d.jsxs)(nf.Container,{maxWidth:1280,children:[(0,d.jsx)(zm,{subtitle:e,title:t}),(0,d.jsx)(Rm,{posts:r,count:0,blogsPerPage:5}),(0,d.jsx)(Qm,{primaryButton:n})]})})}function zm({subtitle:e,title:t}){return(0,d.jsxs)("div",{className:"w-full mb-16 text-center",children:[e?(0,d.jsx)(He.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,d.jsx)($e.Heading,{fontSize:"3xl",children:t}):null]})}function Rm({posts:e,count:t,blogsPerPage:r}){return(0,d.jsxs)(E.Flex,{wrap:!0,justify:"center",className:"mb-16",gap:4,children:[(0,d.jsx)("div",{className:"w-full lg:w-[45%]",children:e==null?void 0:e.slice(t,t+1).map((n,o)=>(0,d.jsx)(xf,{size:"lg",post:n},o))}),(0,d.jsx)(E.Flex,{wrap:!0,className:"w-full lg:w-[45%]",gap:4,children:e==null?void 0:e.slice(t+1,r).map((n,o)=>(0,d.jsx)("div",{className:"w-full lg:basis-[45%]",children:(0,d.jsx)(xf,{post:n,size:"sm"},o)},o))})]})}function xf({post:e,size:t,key:r}){var o;let n=de("1024");return(0,d.jsxs)(q.Card,{className:"overflow-hidden rounded-md shadow",children:[e!=null&&e.mainImage?(0,d.jsx)(Am,{post:e,size:t,breakpoints:n},r):null,(0,d.jsxs)(E.Flex,{direction:"col",className:"bg-white justify-between",style:{height:"295px"},children:[(0,d.jsxs)(q.CardContent,{className:"p-4",children:[(0,d.jsxs)(E.Flex,{align:"center",children:[e!=null&&e.publishedAt?(0,d.jsx)(He.Text,{muted:!0,className:"text-sm",children:P(new Date(e.publishedAt)," dd MMM, yyyy")}):null,(e==null?void 0:e.authors)&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),(0,d.jsx)(E.Flex,{className:"mt-auto text-sm text-gray-500",children:(o=e==null?void 0:e.authors)==null?void 0:o.map((f,m,{length:u})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(He.Text,{className:"italic",fontSize:"sm",children:f==null?void 0:f.name}),m+1!==u?(0,d.jsx)("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?(0,d.jsx)($e.Heading,{type:"h4",className:"my-2 line-clamp-3 !text-2xl",children:e.title}):null,e!=null&&e.excerpt?(0,d.jsx)(He.Text,{muted:!0,className:"mb-2 text-justify line-clamp-3",children:e.excerpt}):null]}),e!=null&&e.link?(0,d.jsx)(_e.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary px-4 pb-4",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"}):null]})]})}function Am({post:e,size:t,breakpoints:r,key:n}){var o;return r?(0,d.jsx)(ff.Image,{className:"object-cover w-full overflow-hidden",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"auto",objectFit:"cover"},width:271,height:248,alt:(o=e==null?void 0:e.mainImage)!=null?o:`blog-variantB-image-${n}`}):(0,d.jsx)("div",{className:`${t==="lg"?"h-[44.5rem]":"h-[12.5rem]"}`,children:(0,d.jsx)(ff.Image,{className:"object-cover w-full overflow-hidden rounded-t-md",src:`${e.mainImage}`,sizes:"100vw",style:{width:"100%",height:"100%",objectFit:"cover"},width:271,height:248,alt:`blog-variantB-image-${e.title}`})})}function Qm({primaryButton:e}){var r,n,o;if(!(e!=null&&e.label))return null;let t=(0,cf.buildSanityLink)({type:(r=e==null?void 0:e.type)!=null?r:"",internalLink:(n=e==null?void 0:e.internalLink)!=null?n:"",externalLink:(o=e==null?void 0:e.externalLink)!=null?o:""});return(0,d.jsx)("div",{className:"text-center",children:(0,d.jsx)(hf.Button,{"aria-label":e==null?void 0:e.label,asChild:!0,children:(0,d.jsx)(_e.Link,{href:t.href,target:t.target,rel:t.rel,"aria-label":e==null?void 0:e.label,children:e==null?void 0:e.label})})})}var hf,q,nf,E,$e,ff,_e,mf,cf,He,d,Mf=a(()=>{"use strict";hf=require("@stackshift-ui/button");K();Le();d=require("react/jsx-runtime")});var pf={};V(pf,{Blog_C:()=>Nf,default:()=>Nf});function Nf({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,x.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,x.jsxs)(nf.Container,{maxWidth:1280,children:[(0,x.jsxs)(E.Flex,{align:"center",justify:"between",className:"flex-col mb-16 md:flex-row",gap:5,children:[(0,x.jsx)(qm,{subtitle:e,title:t}),(0,x.jsx)(Um,{primaryButton:n})]}),(0,x.jsx)(jm,{posts:r,blogsPerPage:3})]})})}function qm({subtitle:e,title:t}){return(0,x.jsxs)("div",{className:"flex flex-col gap-3 text-center md:text-left",children:[e?(0,x.jsx)(He.Text,{weight:"bold",className:"text-primary",children:e}):null,t?(0,x.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function jm({posts:e,blogsPerPage:t}){var r;return e?(0,x.jsx)("div",{children:(r=e==null?void 0:e.slice(0,t))==null?void 0:r.map((n,o)=>(0,x.jsx)("div",{className:"flex flex-wrap mb-8 overflow-hidden rounded-md shadow",children:(0,x.jsx)(Xm,{post:n,className:`${o%2===0?"flex-row":"flex-row-reverse"}`},o)},o))}):null}function Xm({post:e,className:t,key:r}){var f,m,u,s,D,y,w;let o=de("1100")?70:200;return(0,x.jsxs)(q.Card,{className:`flex flex-wrap bg-white overflow-hidden rounded-lg shadow w-full ${t}`,children:[(e==null?void 0:e.mainImage)&&(0,x.jsx)(ff.Image,{className:"object-cover w-full h-auto rounded-l lg:w-1/2",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:554,height:416,alt:(f=e==null?void 0:e.alt)!=null?f:`blog-variantC-image-${r}`}),(0,x.jsxs)(q.CardContent,{className:"w-full px-6 py-6 rounded-r lg:w-1/2 lg:pt-10",children:[(0,x.jsxs)(E.Flex,{className:"flex-col sm:flex-row sm:items-center gap-3",children:[(e==null?void 0:e.categories)&&((m=e==null?void 0:e.categories)==null?void 0:m.map((h,M)=>(0,x.jsx)(Of.Badge,{className:"bg-secondary rounded-global w-fit",children:h==null?void 0:h.title},M))),(e==null?void 0:e.publishedAt)&&(0,x.jsx)(He.Text,{muted:!0,className:"m-1",children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")})]}),(e==null?void 0:e.title)&&(0,x.jsx)(of.Heading,{className:"my-4 text-xl lg:text-3xl",children:((u=e==null?void 0:e.title)==null?void 0:u.length)>40?((s=e==null?void 0:e.title)==null?void 0:s.substring(0,40))+"...":e==null?void 0:e.title}),(e==null?void 0:e.authors)&&(0,x.jsxs)(E.Flex,{wrap:!0,className:"mb-10",children:[(0,x.jsx)("span",{className:"italic text-primary",children:"By\xA0"}),(D=e==null?void 0:e.authors)==null?void 0:D.map((h,M,{length:O})=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(He.Text,{className:"italic text-primary",children:h==null?void 0:h.name}),M+1!==O?(0,x.jsx)("span",{children:"\xA0,\xA0"}):null]}))]}),(e==null?void 0:e.excerpt)&&(0,x.jsx)(He.Text,{muted:!0,className:"mb-6 leading-loose lg:text-justify",children:((y=e==null?void 0:e.excerpt)==null?void 0:y.length)>o?((w=e==null?void 0:e.excerpt)==null?void 0:w.substring(0,o))+"...":e==null?void 0:e.excerpt}),(e==null?void 0:e.link)&&(0,x.jsx)(_e.Link,{"aria-label":"View Blog Post",className:"font-bold text-primary hover:text-secondary",href:`/${e==null?void 0:e.link}`,children:"View Blog Post"})]})]})}function Um({primaryButton:e}){var r,n,o;if(!(e!=null&&e.label))return null;let t=(0,cf.buildSanityLink)({type:(r=e==null?void 0:e.type)!=null?r:"",internalLink:(n=e==null?void 0:e.internalLink)!=null?n:"",externalLink:(o=e==null?void 0:e.externalLink)!=null?o:""});return(0,x.jsx)("div",{className:"text-center",children:(0,x.jsx)(kf.Button,{"aria-label":e==null?void 0:e.label,asChild:!0,children:(0,x.jsx)(_e.Link,{href:t.href,target:t.target,rel:t.rel,"aria-label":e==null?void 0:e.label,children:e==null?void 0:e.label})})})}var Of,kf,q,nf,E,of,ff,_e,mf,cf,He,x,Yf=a(()=>{"use strict";Of=require("@stackshift-ui/badge"),kf=require("@stackshift-ui/button");K();Le();x=require("react/jsx-runtime")});var $f={};V($f,{Blog_D:()=>Ef,default:()=>Ef});function Ef({subtitle:e,title:t,posts:r}){let[n,o]=X.default.useState("All"),[f,m]=X.default.useState(1),[u,s]=X.default.useState(""),D=6;X.default.useEffect(()=>{m(1)},[n]);let y=(r!=null?r:[]).flatMap(i=>{var k;return((k=i==null?void 0:i.categories)!=null?k:[]).map(N=>({category:N==null?void 0:N.title,title:i==null?void 0:i.title,slug:i==null?void 0:i.slug,excerpt:i==null?void 0:i.excerpt,publishedAt:i==null?void 0:i.publishedAt,mainImage:i==null?void 0:i.mainImage,authors:i==null?void 0:i.authors}))}),w=y==null?void 0:y.reduce((i,k)=>{let N=k==null?void 0:k.category;return i.indexOf(N)===-1&&i.push(N),i},[]),h=n==="All"?r==null?void 0:r.filter(i=>{var k;return(k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(u.toLowerCase())}):y.filter(i=>{var k;return(i==null?void 0:i.category)===n&&((k=i==null?void 0:i.title)==null?void 0:k.toLowerCase().includes(u.toLowerCase()))}),M=f*D,O=M-D,C=h==null?void 0:h.slice(O,M),_=i=>m(i);return(0,l.jsx)(mf.Section,{className:"py-20 bg-background",children:(0,l.jsxs)(nf.Container,{maxWidth:1280,children:[(0,l.jsx)(Gm,{subtitle:e,title:t}),(0,l.jsx)(Jm,{handleSearchChange:i=>{s(i.target.value),o("All"),m(1)}}),(0,l.jsxs)(E.Flex,{wrap:!0,children:[(0,l.jsx)(Zm,{categories:w,activeTab:n,setActiveTab:o}),(h==null?void 0:h.length)===0?(0,l.jsx)(Vm,{}):(0,l.jsx)(Km,{currentPosts:C,activeTab:n,blogsPerPage:D})]}),(0,l.jsx)(Bm,{blogsPerPage:D,totalBlogs:h==null?void 0:h.length,paginate:_,currentPage:f})]})})}function Vm({message:e="No post available."}){return(0,l.jsx)(He.Text,{className:"w-full px-3 lg:w-3/4 font-medium text-lg",children:e})}function Gm({subtitle:e,title:t}){return(0,l.jsxs)("div",{className:"w-full mb-16",children:[e?(0,l.jsx)(He.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,l.jsx)(of.Heading,{fontSize:"3xl",children:t}):null]})}function Jm({handleSearchChange:e}){return(0,l.jsxs)("div",{className:"relative mb-5 w-full lg:w-1/4",children:[(0,l.jsx)(_f.Input,{type:"text","aria-label":"Search, find any question you want to ask...",className:"w-full bg-white border rounded-global font-heading focus:border-gray-500 focus:outline-none",placeholder:"Search posts...",onChange:e}),(0,l.jsx)(De.Button,{variant:"unstyled","aria-label":"Search button",className:"absolute right-0 top-0 h-full px-3 border-r rounded-global text-primary flex items-center",children:(0,l.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]})}function Zm({categories:e,activeTab:t,setActiveTab:r}){return(0,l.jsx)(q.Card,{className:"w-full p-3 mb-8 bg-white lg:mb-0 lg:w-1/4 rounded-md",children:e&&(0,l.jsxs)(X.default.Fragment,{children:[(0,l.jsx)(of.Heading,{type:"h3",muted:!0,weight:"bold",className:"mb-4 text-base uppercase lg:text-base",children:"Topics"}),(0,l.jsxs)("ul",{children:[(e==null?void 0:e.length)>1&&(0,l.jsx)(Ff,{activeTab:t,setActiveTab:r,category:"All"}),e==null?void 0:e.map((n,o)=>(0,l.jsx)(Ff,{activeTab:t,setActiveTab:r,category:n},o))]})]})})}function Ff({key:e,activeTab:t,setActiveTab:r,category:n}){return(0,l.jsx)("li",{children:(0,l.jsx)(De.Button,{variant:"unstyled","aria-label":"Show all blog posts",className:`mb-4 block ${n?"block":"hidden"} px-3 py-2 hover:bg-secondary-foreground focus:outline-none w-full text-left rounded ${t===n?"font-bold text-primary focus:outline-none bg-secondary-foreground":null}`,onClick:()=>r(n),children:n})},e)}function Km({currentPosts:e,activeTab:t,blogsPerPage:r}){var n;return e?(0,l.jsx)("div",{className:"w-full px-3 lg:w-3/4",children:t==="All"?e==null?void 0:e.map((o,f)=>(0,l.jsx)(Wf,{post:o},f)):(n=e==null?void 0:e.slice(0,r))==null?void 0:n.map((o,f)=>(0,l.jsx)(Wf,{post:o},f))}):null}function Wf({post:e}){var t,r,n;return e?(0,l.jsxs)(q.Card,{className:"flex flex-wrap mb-8 lg:mb-6 bg-white shadow rounded-lg",children:[(0,l.jsx)("div",{className:"w-full h-full mb-4 lg:mb-0 lg:w-1/4",children:(0,l.jsx)(ff.Image,{className:"object-cover w-full h-full overflow-hidden rounded-l",src:`${e==null?void 0:e.mainImage}`,sizes:"100vw",width:188,height:129,alt:(t=e==null?void 0:e.alt)!=null?t:`blog-variantD-image-${e==null?void 0:e.title}`})}),(0,l.jsxs)(q.CardContent,{className:"w-full px-3 py-2 lg:w-3/4",children:[(e==null?void 0:e.title)&&(0,l.jsx)(_e.Link,{"aria-label":e==null?void 0:e.title,className:"mb-1 text-2xl font-bold hover:text-secondary font-heading line-clamp-3 sm:line-clamp-1",href:`/${(r=e==null?void 0:e.link)!=null?r:"page-not-added"}`,children:e==null?void 0:e.title}),(0,l.jsxs)(E.Flex,{wrap:!0,align:"center",gap:1,className:"mb-2 text-sm",children:[e!=null&&e.authors?(n=e==null?void 0:e.authors)==null?void 0:n.map((o,f,{length:m})=>(0,l.jsxs)(E.Flex,{children:[(0,l.jsx)(He.Text,{className:"text-primary",children:o==null?void 0:o.name}),f+1!==m?(0,l.jsx)("span",{children:"\xA0,\xA0"}):null]},f)):null,e!=null&&e.publishedAt&&(e!=null&&e.authors)?(0,l.jsx)("span",{className:"mx-2 text-gray-500",children:"\u2022"}):null,e!=null&&e.publishedAt?(0,l.jsx)(He.Text,{muted:!0,children:P(new Date(e==null?void 0:e.publishedAt)," dd MMM, yyyy")}):null]}),e!=null&&e.excerpt?(0,l.jsx)(He.Text,{muted:!0,className:"line-clamp-6 sm:line-clamp-3",children:e==null?void 0:e.excerpt}):null]})]}):null}function Bm({blogsPerPage:e,totalBlogs:t,paginate:r,currentPage:n}){if(!e)return null;let o=[];for(let f=1;f<=Math.ceil(t/e);f++)o.push(f);return(0,l.jsx)("nav",{className:"mt-4","aria-label":"Pagination",children:(0,l.jsx)("ul",{className:"flex space-x-2 justify-end mr-5",children:o.map(f=>(0,l.jsx)(De.Button,{variant:"unstyled","aria-label":`Page ${f}`,className:`${n===f?"bg-secondary-foreground text-gray-500":"bg-white hover:bg-secondary-foreground hover:text-gray-500"} text-primary font-medium py-2 px-4 border border-primary rounded-global focus:outline-none`,onClick:()=>r(f),children:f},f))})})}var De,q,nf,E,of,ff,_f,_e,mf,He,X,l,zf=a(()=>{"use strict";De=require("@stackshift-ui/button"),_f=require("@stackshift-ui/input");K();X=Ke(require("react"))});var ru={};V(ru,{Blog:()=>Rf});module.exports=Vf(ru);var re=require("react"),eu={variant_a:(0,re.lazy)(()=>Promise.resolve().then(()=>(sf(),df))),variant_b:(0,re.lazy)(()=>Promise.resolve().then(()=>(Mf(),bf))),variant_c:(0,re.lazy)(()=>Promise.resolve().then(()=>(Yf(),pf))),variant_d:(0,re.lazy)(()=>Promise.resolve().then(()=>(zf(),$f)))},tu="Blog",Rf=({data:e})=>{var o,f,m,u,s,D,y,w,h;let t=e==null?void 0:e.variant,r=t&&eu[t],n={subtitle:(f=(o=e==null?void 0:e.variants)==null?void 0:o.subtitle)!=null?f:void 0,title:(u=(m=e==null?void 0:e.variants)==null?void 0:m.title)!=null?u:void 0,posts:(y=((s=e==null?void 0:e.variants)==null?void 0:s.posts)||((D=e==null?void 0:e.variants)==null?void 0:D.blogPosts))!=null?y:void 0,primaryButton:(h=(w=e==null?void 0:e.variants)==null?void 0:w.primaryButton)!=null?h:void 0};return r?(0,l.jsx)(r,{...n}):null};Rf.displayName=tu;0&&(module.exports={Blog});
package/dist/blog.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-OH3LZBKF.mjs";export{a as Blog};
1
+ import{a}from"./chunk-D64XJR4X.mjs";export{a as Blog};
package/dist/blog_a.js CHANGED
@@ -1 +1 @@
1
- "use strict";var Q=Object.defineProperty;var qe=Object.getOwnPropertyDescriptor;var Le=Object.getOwnPropertyNames;var He=Object.prototype.hasOwnProperty;var Qe=(e,t)=>{for(var r in t)Q(e,r,{get:t[r],enumerable:!0})},_e=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Le(t))!He.call(e,a)&&a!==r&&Q(e,a,{get:()=>t[a],enumerable:!(n=qe(t,a))||n.enumerable});return e};var Xe=e=>_e(Q({},"__esModule",{value:!0}),e);var It={};Qe(It,{Blog_A:()=>Ee,default:()=>Ee});module.exports=Xe(It);var Ye=require("@stackshift-ui/button"),Te=require("@stackshift-ui/container"),N=require("@stackshift-ui/flex"),Fe=require("@stackshift-ui/heading"),Ne=require("@stackshift-ui/image"),Ie=require("@stackshift-ui/link"),Ce=require("@stackshift-ui/section"),G=require("@stackshift-ui/text");var Ae=Math.pow(10,8)*24*60*60*1e3,Et=-Ae,I=6048e5,re=864e5;var Re=3600;var ne=Re*24,qt=ne*7,je=ne*365.2425,Ge=je/12,Lt=Ge*3,_=Symbol.for("constructDateFrom");function g(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&_ in e?e[_](t):e instanceof Date?new e.constructor(t):new Date(t)}function d(e,t){return g(t||e,e)}var Be={};function M(){return Be}function O(e,t){var u,m,f,w,l,b,y,k;let r=M(),n=(k=(y=(w=(f=t==null?void 0:t.weekStartsOn)!=null?f:(m=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:m.weekStartsOn)!=null?w:r.weekStartsOn)!=null?y:(b=(l=r.locale)==null?void 0:l.options)==null?void 0:b.weekStartsOn)!=null?k:0,a=d(e,t==null?void 0:t.in),o=a.getDay(),i=(o<n?7:0)+o-n;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function D(e,t){return O(e,{...t,weekStartsOn:1})}function C(e,t){let r=d(e,t==null?void 0:t.in),n=r.getFullYear(),a=g(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);let o=D(a),i=g(r,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);let u=D(i);return r.getTime()>=o.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function X(e){let t=d(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function ae(e,...t){let r=g.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function A(e,t){let r=d(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function oe(e,t,r){let[n,a]=ae(r==null?void 0:r.in,e,t),o=A(n),i=A(a),u=+o-X(o),m=+i-X(i);return Math.round((u-m)/re)}function ie(e,t){let r=C(e,t),n=g((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),D(n)}function ce(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ue(e){return!(!ce(e)&&typeof e!="number"||isNaN(+d(e)))}function se(e,t){let r=d(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Ve={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},me=(e,t,r)=>{let n,a=Ve[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function E(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var ze={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Je={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},de={date:E({formats:ze,defaultWidth:"full"}),time:E({formats:$e,defaultWidth:"full"}),dateTime:E({formats:Je,defaultWidth:"full"})};var Ue={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fe=(e,t,r,n)=>Ue[e];function W(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){let i=e.defaultFormattingWidth||e.defaultWidth,u=r!=null&&r.width?String(r.width):i;a=e.formattingValues[u]||e.formattingValues[i]}else{let i=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[i]}let o=e.argumentCallback?e.argumentCallback(t):t;return a[o]}}var Ze={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ke={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},et={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},tt={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},rt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},nt={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},at=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},le={ordinalNumber:at,era:W({values:Ze,defaultWidth:"wide"}),quarter:W({values:Ke,defaultWidth:"wide",argumentCallback:e=>e-1}),month:W({values:et,defaultWidth:"wide"}),day:W({values:tt,defaultWidth:"wide"}),dayPeriod:W({values:rt,defaultWidth:"wide",formattingValues:nt,defaultFormattingWidth:"wide"})};function p(e){return(t,r={})=>{let n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;let i=o[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(u)?it(u,l=>l.test(i)):ot(u,l=>l.test(i)),f;f=e.valueCallback?e.valueCallback(m):m,f=r.valueCallback?r.valueCallback(f):f;let w=t.slice(i.length);return{value:f,rest:w}}}function ot(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function it(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function he(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let a=n[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;let u=t.slice(a.length);return{value:i,rest:u}}}var ct=/^(\d+)(th|st|nd|rd)?/i,ut=/\d+/i,st={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},mt={any:[/^b/i,/^(a|c)/i]},dt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ft={any:[/1/i,/2/i,/3/i,/4/i]},lt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ht={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},wt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ge={ordinalNumber:he({matchPattern:ct,parsePattern:ut,valueCallback:e=>parseInt(e,10)}),era:p({matchPatterns:st,defaultMatchWidth:"wide",parsePatterns:mt,defaultParseWidth:"any"}),quarter:p({matchPatterns:dt,defaultMatchWidth:"wide",parsePatterns:ft,defaultParseWidth:"any",valueCallback:e=>e+1}),month:p({matchPatterns:lt,defaultMatchWidth:"wide",parsePatterns:ht,defaultParseWidth:"any"}),day:p({matchPatterns:gt,defaultMatchWidth:"wide",parsePatterns:wt,defaultParseWidth:"any"}),dayPeriod:p({matchPatterns:xt,defaultMatchWidth:"any",parsePatterns:bt,defaultParseWidth:"any"})};var R={code:"en-US",formatDistance:me,formatLong:de,formatRelative:fe,localize:le,match:ge,options:{weekStartsOn:0,firstWeekContainsDate:1}};function we(e,t){let r=d(e,t==null?void 0:t.in);return oe(r,se(r))+1}function xe(e,t){let r=d(e,t==null?void 0:t.in),n=+D(r)-+ie(r);return Math.round(n/I)+1}function q(e,t){var w,l,b,y,k,Y,T,F;let r=d(e,t==null?void 0:t.in),n=r.getFullYear(),a=M(),o=(F=(T=(y=(b=t==null?void 0:t.firstWeekContainsDate)!=null?b:(l=(w=t==null?void 0:t.locale)==null?void 0:w.options)==null?void 0:l.firstWeekContainsDate)!=null?y:a.firstWeekContainsDate)!=null?T:(Y=(k=a.locale)==null?void 0:k.options)==null?void 0:Y.firstWeekContainsDate)!=null?F:1,i=g((t==null?void 0:t.in)||e,0);i.setFullYear(n+1,0,o),i.setHours(0,0,0,0);let u=O(i,t),m=g((t==null?void 0:t.in)||e,0);m.setFullYear(n,0,o),m.setHours(0,0,0,0);let f=O(m,t);return+r>=+u?n+1:+r>=+f?n:n-1}function be(e,t){var u,m,f,w,l,b,y,k;let r=M(),n=(k=(y=(w=(f=t==null?void 0:t.firstWeekContainsDate)!=null?f:(m=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)!=null?w:r.firstWeekContainsDate)!=null?y:(b=(l=r.locale)==null?void 0:l.options)==null?void 0:b.firstWeekContainsDate)!=null?k:1,a=q(e,t),o=g((t==null?void 0:t.in)||e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),O(o,t)}function ye(e,t){let r=d(e,t==null?void 0:t.in),n=+O(r,t)-+be(r,t);return Math.round(n/I)+1}function s(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var P={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return s(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):s(r+1,2)},d(e,t){return s(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return s(e.getHours()%12||12,t.length)},H(e,t){return s(e.getHours(),t.length)},m(e,t){return s(e.getMinutes(),t.length)},s(e,t){return s(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return s(a,t.length)}};var S={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},j={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return P.y(e,t)},Y:function(e,t,r,n){let a=q(e,n),o=a>0?a:1-a;if(t==="YY"){let i=o%100;return s(i,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){let r=C(e);return s(r,t.length)},u:function(e,t){let r=e.getFullYear();return s(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return s(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return s(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return P.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return s(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let a=ye(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):s(a,t.length)},I:function(e,t,r){let n=xe(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):s(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):P.d(e,t)},D:function(e,t,r){let n=we(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):s(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return s(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),a;switch(n===12?a=S.noon:n===0?a=S.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),a;switch(n>=17?a=S.evening:n>=12?a=S.afternoon:n>=4?a=S.morning:a=S.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return P.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):P.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):P.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):P.s(e,t)},S:function(e,t){return P.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Oe(n);case"XXXX":case"XX":return v(n);case"XXXXX":case"XXX":default:return v(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Oe(n);case"xxxx":case"xx":return v(n);case"xxxxx":case"xxx":default:return v(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ke(n,":");case"OOOO":default:return"GMT"+v(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ke(n,":");case"zzzz":default:return"GMT"+v(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return s(n,t.length)},T:function(e,t,r){return s(+e,t.length)}};function ke(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return o===0?r+String(a):r+String(a)+t+s(o,2)}function Oe(e,t){return e%60===0?(e>0?"-":"+")+s(Math.abs(e)/60,2):v(e,t)}function v(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=s(Math.trunc(n/60),2),o=s(n%60,2);return r+a+t+o}var Pe=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Me=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},yt=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return Pe(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Pe(n,t)).replace("{{time}}",Me(a,t))},De={p:Me,P:yt};var kt=/^D+$/,Ot=/^Y+$/,Pt=["D","DD","YY","YYYY"];function ve(e){return kt.test(e)}function We(e){return Ot.test(e)}function pe(e,t,r){let n=Mt(e,t,r);if(console.warn(n),Pt.includes(e))throw new RangeError(n)}function Mt(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Dt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Wt=/^'([^]*?)'?$/,pt=/''/g,St=/[a-zA-Z]/;function Se(e,t,r){var w,l,b,y,k,Y,T,F,B,V,z,$,J,U,Z,K,ee,te;let n=M(),a=(l=(w=r==null?void 0:r.locale)!=null?w:n.locale)!=null?l:R,o=(V=(B=(Y=(k=r==null?void 0:r.firstWeekContainsDate)!=null?k:(y=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:y.firstWeekContainsDate)!=null?Y:n.firstWeekContainsDate)!=null?B:(F=(T=n.locale)==null?void 0:T.options)==null?void 0:F.firstWeekContainsDate)!=null?V:1,i=(te=(ee=(U=(J=r==null?void 0:r.weekStartsOn)!=null?J:($=(z=r==null?void 0:r.locale)==null?void 0:z.options)==null?void 0:$.weekStartsOn)!=null?U:n.weekStartsOn)!=null?ee:(K=(Z=n.locale)==null?void 0:Z.options)==null?void 0:K.weekStartsOn)!=null?te:0,u=d(e,r==null?void 0:r.in);if(!ue(u))throw new RangeError("Invalid time value");let m=t.match(vt).map(x=>{let h=x[0];if(h==="p"||h==="P"){let H=De[h];return H(x,a.formatLong)}return x}).join("").match(Dt).map(x=>{if(x==="''")return{isToken:!1,value:"'"};let h=x[0];if(h==="'")return{isToken:!1,value:Yt(x)};if(j[h])return{isToken:!0,value:x};if(h.match(St))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:x}});a.localize.preprocessor&&(m=a.localize.preprocessor(u,m));let f={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return m.map(x=>{if(!x.isToken)return x.value;let h=x.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&We(h)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&ve(h))&&pe(h,t,String(e));let H=j[h[0]];return H(u,h,a.localize,f)}).join("")}function Yt(e){let t=e.match(Wt);return t?t[1].replace(pt,"'"):e}var c=require("react/jsx-runtime");function Ee({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,c.jsx)(Ce.Section,{className:"py-20 bg-background",children:(0,c.jsxs)(Te.Container,{maxWidth:1280,children:[(0,c.jsx)(Tt,{subtitle:e,title:t}),(0,c.jsx)(Ft,{posts:r}),(0,c.jsx)(Nt,{primaryButton:n})]})})}function Tt({subtitle:e,title:t}){return(0,c.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,c.jsx)(G.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,c.jsx)(Fe.Heading,{fontSize:"3xl",children:t}):null]})}function Ft({posts:e}){var n,a,o,i;if(!e)return null;let t=6,r=0;return(0,c.jsxs)(N.Flex,{gap:4,className:"flex-col lg:flex-row",children:[(0,c.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(r,r+1))==null?void 0:n.map((u,m)=>(0,c.jsx)(L,{post:u},m)),(0,c.jsx)(N.Flex,{gap:4,className:"flex-col lg:flex-row",children:(a=e==null?void 0:e.slice(r+1,r+3))==null?void 0:a.map((u,m)=>(0,c.jsx)(L,{post:u},m))})]}),(0,c.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(0,c.jsx)(N.Flex,{gap:4,className:"flex-col lg:flex-row",children:(o=e==null?void 0:e.slice(r+3,r+5))==null?void 0:o.map((u,m)=>(0,c.jsx)(L,{post:u},m))}),(i=e==null?void 0:e.slice(r+5,t))==null?void 0:i.map((u,m)=>(0,c.jsx)(L,{post:u},m))]})]})}function L({post:e,key:t}){var r,n,a,o;return(0,c.jsxs)("div",{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?(0,c.jsx)(Ne.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded-md",src:`${e==null?void 0:e.mainImage}`,alt:(r=e==null?void 0:e.alt)!=null?r:`blog-variantA-image-${t}`,sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,(0,c.jsx)("div",{className:"absolute inset-0 bg-gray-900 rounded-md opacity-75"}),(0,c.jsxs)("div",{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?(0,c.jsx)("div",{className:"absolute flex left-5 top-5",children:(n=e==null?void 0:e.categories)==null?void 0:n.map((i,u)=>(0,c.jsx)("span",{className:"px-3 py-1 mb-auto mr-3 text-sm font-bold uppercase bg-white rounded-full text-primary",children:i==null?void 0:i.title},u))}):null,(0,c.jsxs)(N.Flex,{align:"center",className:"mt-auto",children:[(0,c.jsx)("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?Se(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),(e==null?void 0:e.authors)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),(0,c.jsx)("div",{className:"flex mt-auto text-sm text-gray-500",children:(a=e==null?void 0:e.authors)==null?void 0:a.map((i,u,{length:m})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(G.Text,{className:"italic",fontSize:"sm",children:i==null?void 0:i.name}),u+1!==m?(0,c.jsx)("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?(0,c.jsx)(Ie.Link,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",href:`/${e==null?void 0:e.link}`,children:((o=e==null?void 0:e.title)==null?void 0:o.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title}):null]})]})}function Nt({primaryButton:e}){return e!=null&&e.label?(0,c.jsx)("div",{className:"mt-10 text-center",children:(0,c.jsx)(Ye.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label})}):null}0&&(module.exports={Blog_A});
1
+ "use strict";var _=Object.defineProperty;var Qe=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Xe=Object.prototype.hasOwnProperty;var Ae=(e,t)=>{for(var r in t)_(e,r,{get:t[r],enumerable:!0})},Re=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of _e(t))!Xe.call(e,a)&&a!==r&&_(e,a,{get:()=>t[a],enumerable:!(n=Qe(t,a))||n.enumerable});return e};var je=e=>Re(_({},"__esModule",{value:!0}),e);var qt={};Ae(qt,{Blog_A:()=>He,default:()=>He});module.exports=je(qt);var Fe=require("@stackshift-ui/button"),Ce=require("@stackshift-ui/container"),v=require("@stackshift-ui/flex"),Ne=require("@stackshift-ui/heading"),Ie=require("@stackshift-ui/image"),V=require("@stackshift-ui/link"),Ee=require("@stackshift-ui/section"),z=require("@stackshift-ui/text");var Ge=Math.pow(10,8)*24*60*60*1e3,Ht=-Ge,I=6048e5,ae=864e5;var Ve=3600;var oe=Ve*24,Qt=oe*7,ze=oe*365.2425,$e=ze/12,_t=$e*3,X=Symbol.for("constructDateFrom");function g(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&X in e?e[X](t):e instanceof Date?new e.constructor(t):new Date(t)}function m(e,t){return g(t||e,e)}var Je={};function M(){return Je}function O(e,t){var u,d,f,w,l,b,y,k;let r=M(),n=(k=(y=(w=(f=t==null?void 0:t.weekStartsOn)!=null?f:(d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.weekStartsOn)!=null?w:r.weekStartsOn)!=null?y:(b=(l=r.locale)==null?void 0:l.options)==null?void 0:b.weekStartsOn)!=null?k:0,a=m(e,t==null?void 0:t.in),o=a.getDay(),i=(o<n?7:0)+o-n;return a.setDate(a.getDate()-i),a.setHours(0,0,0,0),a}function D(e,t){return O(e,{...t,weekStartsOn:1})}function E(e,t){let r=m(e,t==null?void 0:t.in),n=r.getFullYear(),a=g(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);let o=D(a),i=g(r,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);let u=D(i);return r.getTime()>=o.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function A(e){let t=m(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function ie(e,...t){let r=g.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function R(e,t){let r=m(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function ce(e,t,r){let[n,a]=ie(r==null?void 0:r.in,e,t),o=R(n),i=R(a),u=+o-A(o),d=+i-A(i);return Math.round((u-d)/ae)}function ue(e,t){let r=E(e,t),n=g((t==null?void 0:t.in)||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),D(n)}function se(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function de(e){return!(!se(e)&&typeof e!="number"||isNaN(+m(e)))}function me(e,t){let r=m(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Ue={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},fe=(e,t,r)=>{let n,a=Ue[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function q(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var Ze={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ke={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Be={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},le={date:q({formats:Ze,defaultWidth:"full"}),time:q({formats:Ke,defaultWidth:"full"}),dateTime:q({formats:Be,defaultWidth:"full"})};var et={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},he=(e,t,r,n)=>et[e];function S(e){return(t,r)=>{let n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){let i=e.defaultFormattingWidth||e.defaultWidth,u=r!=null&&r.width?String(r.width):i;a=e.formattingValues[u]||e.formattingValues[i]}else{let i=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[i]}let o=e.argumentCallback?e.argumentCallback(t):t;return a[o]}}var tt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},rt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},at={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ot={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},it={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ct=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},ge={ordinalNumber:ct,era:S({values:tt,defaultWidth:"wide"}),quarter:S({values:rt,defaultWidth:"wide",argumentCallback:e=>e-1}),month:S({values:nt,defaultWidth:"wide"}),day:S({values:at,defaultWidth:"wide"}),dayPeriod:S({values:ot,defaultWidth:"wide",formattingValues:it,defaultFormattingWidth:"wide"})};function Y(e){return(t,r={})=>{let n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;let i=o[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?st(u,l=>l.test(i)):ut(u,l=>l.test(i)),f;f=e.valueCallback?e.valueCallback(d):d,f=r.valueCallback?r.valueCallback(f):f;let w=t.slice(i.length);return{value:f,rest:w}}}function ut(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function st(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function we(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let a=n[0],o=t.match(e.parsePattern);if(!o)return null;let i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;let u=t.slice(a.length);return{value:i,rest:u}}}var dt=/^(\d+)(th|st|nd|rd)?/i,mt=/\d+/i,ft={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},lt={any:[/^b/i,/^(a|c)/i]},ht={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gt={any:[/1/i,/2/i,/3/i,/4/i]},wt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},xt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},bt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},yt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},kt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ot={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xe={ordinalNumber:we({matchPattern:dt,parsePattern:mt,valueCallback:e=>parseInt(e,10)}),era:Y({matchPatterns:ft,defaultMatchWidth:"wide",parsePatterns:lt,defaultParseWidth:"any"}),quarter:Y({matchPatterns:ht,defaultMatchWidth:"wide",parsePatterns:gt,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Y({matchPatterns:wt,defaultMatchWidth:"wide",parsePatterns:xt,defaultParseWidth:"any"}),day:Y({matchPatterns:bt,defaultMatchWidth:"wide",parsePatterns:yt,defaultParseWidth:"any"}),dayPeriod:Y({matchPatterns:kt,defaultMatchWidth:"any",parsePatterns:Ot,defaultParseWidth:"any"})};var j={code:"en-US",formatDistance:fe,formatLong:le,formatRelative:he,localize:ge,match:xe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function be(e,t){let r=m(e,t==null?void 0:t.in);return ce(r,me(r))+1}function ye(e,t){let r=m(e,t==null?void 0:t.in),n=+D(r)-+ue(r);return Math.round(n/I)+1}function L(e,t){var w,l,b,y,k,F,C,N;let r=m(e,t==null?void 0:t.in),n=r.getFullYear(),a=M(),o=(N=(C=(y=(b=t==null?void 0:t.firstWeekContainsDate)!=null?b:(l=(w=t==null?void 0:t.locale)==null?void 0:w.options)==null?void 0:l.firstWeekContainsDate)!=null?y:a.firstWeekContainsDate)!=null?C:(F=(k=a.locale)==null?void 0:k.options)==null?void 0:F.firstWeekContainsDate)!=null?N:1,i=g((t==null?void 0:t.in)||e,0);i.setFullYear(n+1,0,o),i.setHours(0,0,0,0);let u=O(i,t),d=g((t==null?void 0:t.in)||e,0);d.setFullYear(n,0,o),d.setHours(0,0,0,0);let f=O(d,t);return+r>=+u?n+1:+r>=+f?n:n-1}function ke(e,t){var u,d,f,w,l,b,y,k;let r=M(),n=(k=(y=(w=(f=t==null?void 0:t.firstWeekContainsDate)!=null?f:(d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)!=null?w:r.firstWeekContainsDate)!=null?y:(b=(l=r.locale)==null?void 0:l.options)==null?void 0:b.firstWeekContainsDate)!=null?k:1,a=L(e,t),o=g((t==null?void 0:t.in)||e,0);return o.setFullYear(a,0,n),o.setHours(0,0,0,0),O(o,t)}function Oe(e,t){let r=m(e,t==null?void 0:t.in),n=+O(r,t)-+ke(r,t);return Math.round(n/I)+1}function s(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var P={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return s(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):s(r+1,2)},d(e,t){return s(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return s(e.getHours()%12||12,t.length)},H(e,t){return s(e.getHours(),t.length)},m(e,t){return s(e.getMinutes(),t.length)},s(e,t){return s(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),a=Math.trunc(n*Math.pow(10,r-3));return s(a,t.length)}};var T={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},G={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return P.y(e,t)},Y:function(e,t,r,n){let a=L(e,n),o=a>0?a:1-a;if(t==="YY"){let i=o%100;return s(i,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){let r=E(e);return s(r,t.length)},u:function(e,t){let r=e.getFullYear();return s(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return s(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return s(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return P.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return s(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let a=Oe(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):s(a,t.length)},I:function(e,t,r){let n=ye(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):s(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):P.d(e,t)},D:function(e,t,r){let n=be(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):s(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let a=e.getDay(),o=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return s(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),a;switch(n===12?a=T.noon:n===0?a=T.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),a;switch(n>=17?a=T.evening:n>=12?a=T.afternoon:n>=4?a=T.morning:a=T.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return P.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):P.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):P.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):P.s(e,t)},S:function(e,t){return P.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Me(n);case"XXXX":case"XX":return W(n);case"XXXXX":case"XXX":default:return W(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Me(n);case"xxxx":case"xx":return W(n);case"xxxxx":case"xxx":default:return W(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Pe(n,":");case"OOOO":default:return"GMT"+W(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Pe(n,":");case"zzzz":default:return"GMT"+W(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return s(n,t.length)},T:function(e,t,r){return s(+e,t.length)}};function Pe(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),o=n%60;return o===0?r+String(a):r+String(a)+t+s(o,2)}function Me(e,t){return e%60===0?(e>0?"-":"+")+s(Math.abs(e)/60,2):W(e,t)}function W(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=s(Math.trunc(n/60),2),o=s(n%60,2);return r+a+t+o}var De=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},We=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Pt=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return De(e,t);let o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",De(n,t)).replace("{{time}}",We(a,t))},ve={p:We,P:Pt};var Mt=/^D+$/,Dt=/^Y+$/,Wt=["D","DD","YY","YYYY"];function Se(e){return Mt.test(e)}function Ye(e){return Dt.test(e)}function Te(e,t,r){let n=vt(e,t,r);if(console.warn(n),Wt.includes(e))throw new RangeError(n)}function vt(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var St=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Yt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tt=/^'([^]*?)'?$/,pt=/''/g,Ft=/[a-zA-Z]/;function pe(e,t,r){var w,l,b,y,k,F,C,N,$,J,U,Z,K,B,ee,te,re,ne;let n=M(),a=(l=(w=r==null?void 0:r.locale)!=null?w:n.locale)!=null?l:j,o=(J=($=(F=(k=r==null?void 0:r.firstWeekContainsDate)!=null?k:(y=(b=r==null?void 0:r.locale)==null?void 0:b.options)==null?void 0:y.firstWeekContainsDate)!=null?F:n.firstWeekContainsDate)!=null?$:(N=(C=n.locale)==null?void 0:C.options)==null?void 0:N.firstWeekContainsDate)!=null?J:1,i=(ne=(re=(B=(K=r==null?void 0:r.weekStartsOn)!=null?K:(Z=(U=r==null?void 0:r.locale)==null?void 0:U.options)==null?void 0:Z.weekStartsOn)!=null?B:n.weekStartsOn)!=null?re:(te=(ee=n.locale)==null?void 0:ee.options)==null?void 0:te.weekStartsOn)!=null?ne:0,u=m(e,r==null?void 0:r.in);if(!de(u))throw new RangeError("Invalid time value");let d=t.match(Yt).map(x=>{let h=x[0];if(h==="p"||h==="P"){let Q=ve[h];return Q(x,a.formatLong)}return x}).join("").match(St).map(x=>{if(x==="''")return{isToken:!1,value:"'"};let h=x[0];if(h==="'")return{isToken:!1,value:Ct(x)};if(G[h])return{isToken:!0,value:x};if(h.match(Ft))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:x}});a.localize.preprocessor&&(d=a.localize.preprocessor(u,d));let f={firstWeekContainsDate:o,weekStartsOn:i,locale:a};return d.map(x=>{if(!x.isToken)return x.value;let h=x.value;(!(r!=null&&r.useAdditionalWeekYearTokens)&&Ye(h)||!(r!=null&&r.useAdditionalDayOfYearTokens)&&Se(h))&&Te(h,t,String(e));let Q=G[h[0]];return Q(u,h,a.localize,f)}).join("")}function Ct(e){let t=e.match(Tt);return t?t[1].replace(pt,"'"):e}var qe=require("@stackshift-ui/badge"),p=require("@stackshift-ui/card"),Le=require("@stackshift-ui/system"),c=require("react/jsx-runtime");function He({subtitle:e,title:t,posts:r,primaryButton:n}){return(0,c.jsx)(Ee.Section,{className:"py-20 bg-background",children:(0,c.jsxs)(Ce.Container,{maxWidth:1280,children:[(0,c.jsx)(Nt,{subtitle:e,title:t}),(0,c.jsx)(It,{posts:r}),(0,c.jsx)(Et,{primaryButton:n})]})})}function Nt({subtitle:e,title:t}){return(0,c.jsxs)("div",{className:"mb-16 text-center",children:[e?(0,c.jsx)(z.Text,{weight:"bold",className:"text-secondary",children:e}):null,t?(0,c.jsx)(Ne.Heading,{fontSize:"3xl",children:t}):null]})}function It({posts:e}){var n,a,o,i;if(!e)return null;let t=6,r=0;return(0,c.jsxs)(v.Flex,{gap:4,className:"flex-col lg:flex-row",children:[(0,c.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(n=e==null?void 0:e.slice(r,r+1))==null?void 0:n.map((u,d)=>(0,c.jsx)(H,{post:u},d)),(0,c.jsx)(v.Flex,{gap:4,className:"flex-col lg:flex-row",children:(a=e==null?void 0:e.slice(r+1,r+3))==null?void 0:a.map((u,d)=>(0,c.jsx)(H,{post:u},d))})]}),(0,c.jsxs)("div",{className:"w-full space-y-5 lg:w-1/2",children:[(0,c.jsx)(v.Flex,{gap:4,className:"flex-col lg:flex-row",children:(o=e==null?void 0:e.slice(r+3,r+5))==null?void 0:o.map((u,d)=>(0,c.jsx)(H,{post:u},d))}),(i=e==null?void 0:e.slice(r+5,t))==null?void 0:i.map((u,d)=>(0,c.jsx)(H,{post:u},d))]})]})}function H({post:e,key:t}){var r,n,a,o;return(0,c.jsxs)(p.Card,{className:"relative w-full h-64 rounded",children:[e!=null&&e.mainImage?(0,c.jsx)(Ie.Image,{className:"relative object-cover w-full h-full overflow-hidden rounded-md",src:`${e==null?void 0:e.mainImage}`,alt:(r=e==null?void 0:e.alt)!=null?r:`blog-variantA-image-${t}`,sizes:"(min-width: 1540px) 740px, (min-width: 1280px) 612px, (min-width: 1040px) 484px, (min-width: 780px) 736px, (min-width: 680px) 608px, calc(94.44vw - 15px)"}):null,(0,c.jsx)("div",{className:"absolute inset-0 bg-gray-900 rounded-md opacity-75"}),(0,c.jsxs)(p.CardContent,{className:"absolute inset-0 flex flex-col items-start p-6",children:[e!=null&&e.categories?(0,c.jsx)(v.Flex,{gap:2,className:"absolute left-5 top-5",children:(n=e==null?void 0:e.categories)==null?void 0:n.map((i,u)=>(0,c.jsx)(qe.Badge,{children:i==null?void 0:i.title},u))}):null,(0,c.jsxs)(v.Flex,{align:"center",className:"mt-auto",children:[(0,c.jsx)("span",{className:"mt-auto text-sm text-gray-500",children:e!=null&&e.publishedAt?pe(new Date(e==null?void 0:e.publishedAt),"dd MMM, yyyy"):""}),(e==null?void 0:e.authors)&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"mx-2 w-1 h-1 bg-gray-500 rounded-full"}),(0,c.jsx)(v.Flex,{className:"mt-auto text-sm text-gray-500",children:(a=e==null?void 0:e.authors)==null?void 0:a.map((i,u,{length:d})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(z.Text,{className:"italic",fontSize:"sm",children:i==null?void 0:i.name}),u+1!==d?(0,c.jsx)("span",{children:"\xA0,\xA0"}):null]}))})]})]}),e!=null&&e.title?(0,c.jsx)(p.CardTitle,{className:"text-lg font-bold text-white transform hover:scale-110 hover:text-secondary motion-reduce:transform-none",children:(0,c.jsx)(V.Link,{href:`/${e==null?void 0:e.link}`,children:((o=e==null?void 0:e.title)==null?void 0:o.length)>40?(e==null?void 0:e.title.substring(0,40))+"...":e==null?void 0:e.title})}):null]})]})}function Et({primaryButton:e}){var r,n,a;if(!(e!=null&&e.label))return null;let t=(0,Le.buildSanityLink)({type:(r=e==null?void 0:e.type)!=null?r:"",internalLink:(n=e==null?void 0:e.internalLink)!=null?n:"",externalLink:(a=e==null?void 0:e.externalLink)!=null?a:""});return(0,c.jsx)("div",{className:"text-center mt-10",children:(0,c.jsx)(Fe.Button,{"aria-label":e==null?void 0:e.label,asChild:!0,children:(0,c.jsx)(V.Link,{href:t.href,target:t.target,rel:t.rel,"aria-label":e==null?void 0:e.label,children:e==null?void 0:e.label})})})}0&&(module.exports={Blog_A});
package/dist/blog_a.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"./chunk-OSCI5VC3.mjs";import"./chunk-PC6NMI3O.mjs";export{a as Blog_A,a as default};
1
+ import{a}from"./chunk-2HGCY7QJ.mjs";import"./chunk-PC6NMI3O.mjs";export{a as Blog_A,a as default};