@sysvale/citizen-components 1.15.0 → 1.15.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.
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
${(r=this.neighborhood)==null?void 0:r.value}`:`${(n=this.street)==null?void 0:n.value},
|
|
12
12
|
${this.number},
|
|
13
13
|
${(t=this.neighborhood)==null?void 0:t.value},
|
|
14
|
-
${this.city.value} - ${this.uf.shortName}`}get asFormData(){return{street:this.street,number:this.number,complement:this.complement,neighborhood:this.neighborhood,city:this.city,uf:this.uf}}get asRequestPayload(){var e,r,n;return{street:typeof this.street=="object"?this.street.id:this.street,number:this.number,complement:this.complement,neighborhood:typeof this.neighborhood=="object"?(e=this.neighborhood)==null?void 0:e.value:this.neighborhood,city:typeof this.city=="object"?(r=this.city)==null?void 0:r.value:this.city,uf:typeof this.uf=="object"?(n=this.uf)==null?void 0:n.id:this.uf}}}const Et={name:"Branca",value:"white"},Hd={name:"Preta",value:"black"},Gd={name:"Parda",value:"mixed"},Wd={name:"Amarela",value:"asian"},Od={name:"Indígena",value:"indigenous"},wt=[Et,Hd,Gd,Wd,Od],Id=a=>{const e=wt.find(r=>r.value===a);return e||Et};class Oe extends Error{}class Jd extends Oe{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class zd extends Oe{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Kd extends Oe{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Ve extends Oe{}class Bt extends Oe{constructor(e){super(`Invalid unit ${e}`)}}class ee extends Oe{}class ve extends Oe{constructor(){super("Zone is an abstract class")}}const C="numeric",pe="short",se="long",Ga={year:C,month:C,day:C},Tt={year:C,month:pe,day:C},Vd={year:C,month:pe,day:C,weekday:pe},Mt={year:C,month:se,day:C},Lt={year:C,month:se,day:C,weekday:se},Rt={hour:C,minute:C},Pt={hour:C,minute:C,second:C},Nt={hour:C,minute:C,second:C,timeZoneName:pe},xt={hour:C,minute:C,second:C,timeZoneName:se},Ht={hour:C,minute:C,hourCycle:"h23"},Gt={hour:C,minute:C,second:C,hourCycle:"h23"},Wt={hour:C,minute:C,second:C,hourCycle:"h23",timeZoneName:pe},Ot={hour:C,minute:C,second:C,hourCycle:"h23",timeZoneName:se},It={year:C,month:C,day:C,hour:C,minute:C},Jt={year:C,month:C,day:C,hour:C,minute:C,second:C},zt={year:C,month:pe,day:C,hour:C,minute:C},Kt={year:C,month:pe,day:C,hour:C,minute:C,second:C},Ud={year:C,month:pe,day:C,weekday:pe,hour:C,minute:C},Vt={year:C,month:se,day:C,hour:C,minute:C,timeZoneName:pe},Ut={year:C,month:se,day:C,hour:C,minute:C,second:C,timeZoneName:pe},_t={year:C,month:se,day:C,weekday:se,hour:C,minute:C,timeZoneName:se},jt={year:C,month:se,day:C,weekday:se,hour:C,minute:C,second:C,timeZoneName:se};class da{get type(){throw new ve}get name(){throw new ve}get ianaName(){return this.name}get isUniversal(){throw new ve}offsetName(e,r){throw new ve}formatOffset(e,r){throw new ve}offset(e){throw new ve}equals(e){throw new ve}get isValid(){throw new ve}}let tr=null;class Ka extends da{static get instance(){return tr===null&&(tr=new Ka),tr}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return ti(e,r,n)}formatOffset(e,r){return la(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const Ar=new Map;function _d(a){let e=Ar.get(a);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:a,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Ar.set(a,e)),e}const jd={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function $d(a,e){const r=a.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,t,i,o,u,l,c,d]=n;return[o,t,i,u,l,c,d]}function Yd(a,e){const r=a.formatToParts(e),n=[];for(let t=0;t<r.length;t++){const{type:i,value:o}=r[t],u=jd[i];i==="era"?n[u]=o:w(u)||(n[u]=parseInt(o,10))}return n}const ir=new Map;class Se extends da{static create(e){let r=ir.get(e);return r===void 0&&ir.set(e,r=new Se(e)),r}static resetCache(){ir.clear(),Ar.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Se.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return ti(e,r,n,this.name)}formatOffset(e,r){return la(this.offset(e),r)}offset(e){if(!this.valid)return NaN;const r=new Date(e);if(isNaN(r))return NaN;const n=_d(this.name);let[t,i,o,u,l,c,d]=n.formatToParts?Yd(n,r):$d(n,r);u==="BC"&&(t=-Math.abs(t)+1);const g=Ua({year:t,month:i,day:o,hour:l===24?0:l,minute:c,second:d,millisecond:0});let y=+r;const h=y%1e3;return y-=h>=0?h:1e3+h,(g-y)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let cn={};function qd(a,e={}){const r=JSON.stringify([a,e]);let n=cn[r];return n||(n=new Intl.ListFormat(a,e),cn[r]=n),n}const Sr=new Map;function vr(a,e={}){const r=JSON.stringify([a,e]);let n=Sr.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(a,e),Sr.set(r,n)),n}const Dr=new Map;function Zd(a,e={}){const r=JSON.stringify([a,e]);let n=Dr.get(r);return n===void 0&&(n=new Intl.NumberFormat(a,e),Dr.set(r,n)),n}const Er=new Map;function Xd(a,e={}){const{base:r,...n}=e,t=JSON.stringify([a,n]);let i=Er.get(t);return i===void 0&&(i=new Intl.RelativeTimeFormat(a,e),Er.set(t,i)),i}let oa=null;function Qd(){return oa||(oa=new Intl.DateTimeFormat().resolvedOptions().locale,oa)}const wr=new Map;function $t(a){let e=wr.get(a);return e===void 0&&(e=new Intl.DateTimeFormat(a).resolvedOptions(),wr.set(a,e)),e}const Br=new Map;function eh(a){let e=Br.get(a);if(!e){const r=new Intl.Locale(a);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...Yt,...e}),Br.set(a,e)}return e}function ah(a){const e=a.indexOf("-x-");e!==-1&&(a=a.substring(0,e));const r=a.indexOf("-u-");if(r===-1)return[a];{let n,t;try{n=vr(a).resolvedOptions(),t=a}catch{const l=a.substring(0,r);n=vr(l).resolvedOptions(),t=l}const{numberingSystem:i,calendar:o}=n;return[t,i,o]}}function rh(a,e,r){return(r||e)&&(a.includes("-u-")||(a+="-u"),r&&(a+=`-ca-${r}`),e&&(a+=`-nu-${e}`)),a}function nh(a){const e=[];for(let r=1;r<=12;r++){const n=T.utc(2009,r,1);e.push(a(n))}return e}function th(a){const e=[];for(let r=1;r<=7;r++){const n=T.utc(2016,11,13+r);e.push(a(n))}return e}function Sa(a,e,r,n){const t=a.listingMode();return t==="error"?null:t==="en"?r(e):n(e)}function ih(a){return a.numberingSystem&&a.numberingSystem!=="latn"?!1:a.numberingSystem==="latn"||!a.locale||a.locale.startsWith("en")||$t(a.locale).numberingSystem==="latn"}class oh{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:t,floor:i,...o}=n;if(!r||Object.keys(o).length>0){const u={useGrouping:!1,...n};n.padTo>0&&(u.minimumIntegerDigits=n.padTo),this.inf=Zd(e,u)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):Kr(e,3);return q(r,this.padTo)}}}class sh{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let t;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),u=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&Se.create(u).valid?(t=u,this.dt=e):(t="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,t=e.zone.name):(t="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||t,this.dtf=vr(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class uh{constructor(e,r,n){this.opts={style:"long",...n},!r&&ri()&&(this.rtf=Xd(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):Mh(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}const Yt={firstDay:1,minimalDays:4,weekend:[6,7]};class G{static fromOpts(e){return G.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,t,i=!1){const o=e||_.defaultLocale,u=o||(i?"en-US":Qd()),l=r||_.defaultNumberingSystem,c=n||_.defaultOutputCalendar,d=Mr(t)||_.defaultWeekSettings;return new G(u,l,c,d,o)}static resetCache(){oa=null,Sr.clear(),Dr.clear(),Er.clear(),wr.clear(),Br.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:t}={}){return G.create(e,r,n,t)}constructor(e,r,n,t,i){const[o,u,l]=ah(e);this.locale=o,this.numberingSystem=r||u||null,this.outputCalendar=n||l||null,this.weekSettings=t,this.intl=rh(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=ih(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:G.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Mr(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return Sa(this,e,si,()=>{const n=this.intl==="ja"||this.intl.startsWith("ja-");r&=!n;const t=r?{month:e,day:"numeric"}:{month:e},i=r?"format":"standalone";if(!this.monthsCache[i][e]){const o=n?u=>this.dtFormatter(u,t).format():u=>this.extract(u,t,"month");this.monthsCache[i][e]=nh(o)}return this.monthsCache[i][e]})}weekdays(e,r=!1){return Sa(this,e,ci,()=>{const n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},t=r?"format":"standalone";return this.weekdaysCache[t][e]||(this.weekdaysCache[t][e]=th(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[t][e]})}meridiems(){return Sa(this,void 0,()=>di,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[T.utc(2016,11,13,9),T.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Sa(this,e,hi,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[T.utc(-40,1,1),T.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){const t=this.dtFormatter(e,r),i=t.formatToParts(),o=i.find(u=>u.type.toLowerCase()===n);return o?o.value:null}numberFormatter(e={}){return new oh(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new sh(e,this.intl,r)}relFormatter(e={}){return new uh(this.intl,this.isEnglish(),e)}listFormatter(e={}){return qd(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||$t(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ni()?eh(this.locale):Yt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let or=null;class ne extends da{static get utcInstance(){return or===null&&(or=new ne(0)),or}static instance(e){return e===0?ne.utcInstance:new ne(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new ne(_a(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${la(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${la(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return la(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class lh extends da{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function we(a,e){if(w(a)||a===null)return e;if(a instanceof da)return a;if(ph(a)){const r=a.toLowerCase();return r==="default"?e:r==="local"||r==="system"?Ka.instance:r==="utc"||r==="gmt"?ne.utcInstance:ne.parseSpecifier(r)||Se.create(a)}else return Be(a)?ne.instance(a):typeof a=="object"&&"offset"in a&&typeof a.offset=="function"?a:new lh(a)}const Or={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},dn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ch=Or.hanidec.replace(/[\[|\]]/g,"").split("");function dh(a){let e=parseInt(a,10);if(isNaN(e)){e="";for(let r=0;r<a.length;r++){const n=a.charCodeAt(r);if(a[r].search(Or.hanidec)!==-1)e+=ch.indexOf(a[r]);else for(const t in dn){const[i,o]=dn[t];n>=i&&n<=o&&(e+=n-i)}}return parseInt(e,10)}else return e}const Tr=new Map;function hh(){Tr.clear()}function he({numberingSystem:a},e=""){const r=a||"latn";let n=Tr.get(r);n===void 0&&(n=new Map,Tr.set(r,n));let t=n.get(e);return t===void 0&&(t=new RegExp(`${Or[r]}${e}`),n.set(e,t)),t}let hn=()=>Date.now(),mn="system",Fn=null,pn=null,fn=null,yn=60,gn,bn=null;class _{static get now(){return hn}static set now(e){hn=e}static set defaultZone(e){mn=e}static get defaultZone(){return we(mn,Ka.instance)}static get defaultLocale(){return Fn}static set defaultLocale(e){Fn=e}static get defaultNumberingSystem(){return pn}static set defaultNumberingSystem(e){pn=e}static get defaultOutputCalendar(){return fn}static set defaultOutputCalendar(e){fn=e}static get defaultWeekSettings(){return bn}static set defaultWeekSettings(e){bn=Mr(e)}static get twoDigitCutoffYear(){return yn}static set twoDigitCutoffYear(e){yn=e%100}static get throwOnInvalid(){return gn}static set throwOnInvalid(e){gn=e}static resetCaches(){G.resetCache(),Se.resetCache(),T.resetCache(),hh()}}class Fe{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const qt=[0,31,59,90,120,151,181,212,243,273,304,334],Zt=[0,31,60,91,121,152,182,213,244,274,305,335];function ce(a,e){return new Fe("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${a}, which is invalid`)}function Ir(a,e,r){const n=new Date(Date.UTC(a,e-1,r));a<100&&a>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const t=n.getUTCDay();return t===0?7:t}function Xt(a,e,r){return r+(ha(a)?Zt:qt)[e-1]}function Qt(a,e){const r=ha(a)?Zt:qt,n=r.findIndex(i=>i<e),t=e-r[n];return{month:n+1,day:t}}function Jr(a,e){return(a-e+7)%7+1}function Wa(a,e=4,r=1){const{year:n,month:t,day:i}=a,o=Xt(n,t,i),u=Jr(Ir(n,t,i),r);let l=Math.floor((o-u+14-e)/7),c;return l<1?(c=n-1,l=ca(c,e,r)):l>ca(n,e,r)?(c=n+1,l=1):c=n,{weekYear:c,weekNumber:l,weekday:u,...ja(a)}}function Cn(a,e=4,r=1){const{weekYear:n,weekNumber:t,weekday:i}=a,o=Jr(Ir(n,1,e),r),u=_e(n);let l=t*7+i-o-7+e,c;l<1?(c=n-1,l+=_e(c)):l>u?(c=n+1,l-=_e(n)):c=n;const{month:d,day:m}=Qt(c,l);return{year:c,month:d,day:m,...ja(a)}}function sr(a){const{year:e,month:r,day:n}=a,t=Xt(e,r,n);return{year:e,ordinal:t,...ja(a)}}function kn(a){const{year:e,ordinal:r}=a,{month:n,day:t}=Qt(e,r);return{year:e,month:n,day:t,...ja(a)}}function An(a,e){if(!w(a.localWeekday)||!w(a.localWeekNumber)||!w(a.localWeekYear)){if(!w(a.weekday)||!w(a.weekNumber)||!w(a.weekYear))throw new Ve("Cannot mix locale-based week fields with ISO-based week fields");return w(a.localWeekday)||(a.weekday=a.localWeekday),w(a.localWeekNumber)||(a.weekNumber=a.localWeekNumber),w(a.localWeekYear)||(a.weekYear=a.localWeekYear),delete a.localWeekday,delete a.localWeekNumber,delete a.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function mh(a,e=4,r=1){const n=Va(a.weekYear),t=de(a.weekNumber,1,ca(a.weekYear,e,r)),i=de(a.weekday,1,7);return n?t?i?!1:ce("weekday",a.weekday):ce("week",a.weekNumber):ce("weekYear",a.weekYear)}function Fh(a){const e=Va(a.year),r=de(a.ordinal,1,_e(a.year));return e?r?!1:ce("ordinal",a.ordinal):ce("year",a.year)}function ei(a){const e=Va(a.year),r=de(a.month,1,12),n=de(a.day,1,Oa(a.year,a.month));return e?r?n?!1:ce("day",a.day):ce("month",a.month):ce("year",a.year)}function ai(a){const{hour:e,minute:r,second:n,millisecond:t}=a,i=de(e,0,23)||e===24&&r===0&&n===0&&t===0,o=de(r,0,59),u=de(n,0,59),l=de(t,0,999);return i?o?u?l?!1:ce("millisecond",t):ce("second",n):ce("minute",r):ce("hour",e)}function w(a){return typeof a>"u"}function Be(a){return typeof a=="number"}function Va(a){return typeof a=="number"&&a%1===0}function ph(a){return typeof a=="string"}function fh(a){return Object.prototype.toString.call(a)==="[object Date]"}function ri(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ni(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function yh(a){return Array.isArray(a)?a:[a]}function Sn(a,e,r){if(a.length!==0)return a.reduce((n,t)=>{const i=[e(t),t];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function gh(a,e){return e.reduce((r,n)=>(r[n]=a[n],r),{})}function $e(a,e){return Object.prototype.hasOwnProperty.call(a,e)}function Mr(a){if(a==null)return null;if(typeof a!="object")throw new ee("Week settings must be an object");if(!de(a.firstDay,1,7)||!de(a.minimalDays,1,7)||!Array.isArray(a.weekend)||a.weekend.some(e=>!de(e,1,7)))throw new ee("Invalid week settings");return{firstDay:a.firstDay,minimalDays:a.minimalDays,weekend:Array.from(a.weekend)}}function de(a,e,r){return Va(a)&&a>=e&&a<=r}function bh(a,e){return a-e*Math.floor(a/e)}function q(a,e=2){const r=a<0;let n;return r?n="-"+(""+-a).padStart(e,"0"):n=(""+a).padStart(e,"0"),n}function Ee(a){if(!(w(a)||a===null||a===""))return parseInt(a,10)}function Le(a){if(!(w(a)||a===null||a===""))return parseFloat(a)}function zr(a){if(!(w(a)||a===null||a==="")){const e=parseFloat("0."+a)*1e3;return Math.floor(e)}}function Kr(a,e,r="round"){const n=10**e;switch(r){case"expand":return a>0?Math.ceil(a*n)/n:Math.floor(a*n)/n;case"trunc":return Math.trunc(a*n)/n;case"round":return Math.round(a*n)/n;case"floor":return Math.floor(a*n)/n;case"ceil":return Math.ceil(a*n)/n;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function ha(a){return a%4===0&&(a%100!==0||a%400===0)}function _e(a){return ha(a)?366:365}function Oa(a,e){const r=bh(e-1,12)+1,n=a+(e-r)/12;return r===2?ha(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Ua(a){let e=Date.UTC(a.year,a.month-1,a.day,a.hour,a.minute,a.second,a.millisecond);return a.year<100&&a.year>=0&&(e=new Date(e),e.setUTCFullYear(a.year,a.month-1,a.day)),+e}function vn(a,e,r){return-Jr(Ir(a,1,e),r)+e-1}function ca(a,e=4,r=1){const n=vn(a,e,r),t=vn(a+1,e,r);return(_e(a)-n+t)/7}function Lr(a){return a>99?a:a>_.twoDigitCutoffYear?1900+a:2e3+a}function ti(a,e,r,n=null){const t=new Date(a),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const o={timeZoneName:e,...i},u=new Intl.DateTimeFormat(r,o).formatToParts(t).find(l=>l.type.toLowerCase()==="timezonename");return u?u.value:null}function _a(a,e){let r=parseInt(a,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0,t=r<0||Object.is(r,-0)?-n:n;return r*60+t}function ii(a){const e=Number(a);if(typeof a=="boolean"||a===""||!Number.isFinite(e))throw new ee(`Invalid unit value ${a}`);return e}function Ia(a,e){const r={};for(const n in a)if($e(a,n)){const t=a[n];if(t==null)continue;r[e(n)]=ii(t)}return r}function la(a,e){const r=Math.trunc(Math.abs(a/60)),n=Math.trunc(Math.abs(a%60)),t=a>=0?"+":"-";switch(e){case"short":return`${t}${q(r,2)}:${q(n,2)}`;case"narrow":return`${t}${r}${n>0?`:${n}`:""}`;case"techie":return`${t}${q(r,2)}${q(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ja(a){return gh(a,["hour","minute","second","millisecond"])}const Ch=["January","February","March","April","May","June","July","August","September","October","November","December"],oi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],kh=["J","F","M","A","M","J","J","A","S","O","N","D"];function si(a){switch(a){case"narrow":return[...kh];case"short":return[...oi];case"long":return[...Ch];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ui=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],li=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ah=["M","T","W","T","F","S","S"];function ci(a){switch(a){case"narrow":return[...Ah];case"short":return[...li];case"long":return[...ui];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const di=["AM","PM"],Sh=["Before Christ","Anno Domini"],vh=["BC","AD"],Dh=["B","A"];function hi(a){switch(a){case"narrow":return[...Dh];case"short":return[...vh];case"long":return[...Sh];default:return null}}function Eh(a){return di[a.hour<12?0:1]}function wh(a,e){return ci(e)[a.weekday-1]}function Bh(a,e){return si(e)[a.month-1]}function Th(a,e){return hi(e)[a.year<0?0:1]}function Mh(a,e,r="always",n=!1){const t={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(a)===-1;if(r==="auto"&&i){const m=a==="days";switch(e){case 1:return m?"tomorrow":`next ${t[a][0]}`;case-1:return m?"yesterday":`last ${t[a][0]}`;case 0:return m?"today":`this ${t[a][0]}`}}const o=Object.is(e,-0)||e<0,u=Math.abs(e),l=u===1,c=t[a],d=n?l?c[1]:c[2]||c[1]:l?t[a][0]:a;return o?`${u} ${d} ago`:`in ${u} ${d}`}function Dn(a,e){let r="";for(const n of a)n.literal?r+=n.val:r+=e(n.val);return r}const Lh={D:Ga,DD:Tt,DDD:Mt,DDDD:Lt,t:Rt,tt:Pt,ttt:Nt,tttt:xt,T:Ht,TT:Gt,TTT:Wt,TTTT:Ot,f:It,ff:zt,fff:Vt,ffff:_t,F:Jt,FF:Kt,FFF:Ut,FFFF:jt};class ae{static create(e,r={}){return new ae(e,r)}static parseFormat(e){let r=null,n="",t=!1;const i=[];for(let o=0;o<e.length;o++){const u=e.charAt(o);u==="'"?((n.length>0||t)&&i.push({literal:t||/^\s+$/.test(n),val:n===""?"'":n}),r=null,n="",t=!t):t||u===r?n+=u:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=u,r=u)}return n.length>0&&i.push({literal:t||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Lh[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0,n=void 0){if(this.opts.forceSimple)return q(e,r);const t={...this.opts};return r>0&&(t.padTo=r),n&&(t.signDisplay=n),this.loc.numberFormatter(t).format(e)}formatDateTimeFromString(e,r){const n=this.loc.listingMode()==="en",t=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(y,h)=>this.loc.extract(e,y,h),o=y=>e.isOffsetFixed&&e.offset===0&&y.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,y.format):"",u=()=>n?Eh(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(y,h)=>n?Bh(e,y):i(h?{month:y}:{month:y,day:"numeric"},"month"),c=(y,h)=>n?wh(e,y):i(h?{weekday:y}:{weekday:y,month:"long",day:"numeric"},"weekday"),d=y=>{const h=ae.macroTokenToFormatOpts(y);return h?this.formatWithSystemDefault(e,h):y},m=y=>n?Th(e,y):i({era:y},"era"),g=y=>{switch(y){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return u();case"d":return t?i({day:"numeric"},"day"):this.num(e.day);case"dd":return t?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return t?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return t?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return t?i({month:"numeric"},"month"):this.num(e.month);case"MM":return t?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return t?i({year:"numeric"},"year"):this.num(e.year);case"yy":return t?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return t?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return t?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(y)}};return Dn(ae.parseFormat(r),g)}formatDurationFromString(e,r){const n=this.opts.signMode==="negativeLargestOnly"?-1:1,t=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(d,m)=>g=>{const y=t(g);if(y){const h=m.isNegativeDuration&&y!==m.largestUnit?n:1;let f;return this.opts.signMode==="negativeLargestOnly"&&y!==m.largestUnit?f="never":this.opts.signMode==="all"?f="always":f="auto",this.num(d.get(y)*h,g.length,f)}else return g},o=ae.parseFormat(r),u=o.reduce((d,{literal:m,val:g})=>m?d:d.concat(g),[]),l=e.shiftTo(...u.map(t).filter(d=>d)),c={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return Dn(o,i(l,c))}}const mi=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function qe(...a){const e=a.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function Ze(...a){return e=>a.reduce(([r,n,t],i)=>{const[o,u,l]=i(e,t);return[{...r,...o},u||n,l]},[{},null,1]).slice(0,2)}function Xe(a,...e){if(a==null)return[null,null];for(const[r,n]of e){const t=r.exec(a);if(t)return n(t)}return[null,null]}function Fi(...a){return(e,r)=>{const n={};let t;for(t=0;t<a.length;t++)n[a[t]]=Ee(e[r+t]);return[n,null,r+t]}}const pi=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Rh=`(?:${pi.source}?(?:\\[(${mi.source})\\])?)?`,Vr=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,fi=RegExp(`${Vr.source}${Rh}`),Ur=RegExp(`(?:[Tt]${fi.source})?`),Ph=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Nh=/(\d{4})-?W(\d\d)(?:-?(\d))?/,xh=/(\d{4})-?(\d{3})/,Hh=Fi("weekYear","weekNumber","weekDay"),Gh=Fi("year","ordinal"),Wh=/(\d{4})-(\d\d)-(\d\d)/,yi=RegExp(`${Vr.source} ?(?:${pi.source}|(${mi.source}))?`),Oh=RegExp(`(?: ${yi.source})?`);function je(a,e,r){const n=a[e];return w(n)?r:Ee(n)}function Ih(a,e){return[{year:je(a,e),month:je(a,e+1,1),day:je(a,e+2,1)},null,e+3]}function Qe(a,e){return[{hours:je(a,e,0),minutes:je(a,e+1,0),seconds:je(a,e+2,0),milliseconds:zr(a[e+3])},null,e+4]}function ma(a,e){const r=!a[e]&&!a[e+1],n=_a(a[e+1],a[e+2]),t=r?null:ne.instance(n);return[{},t,e+3]}function Fa(a,e){const r=a[e]?Se.create(a[e]):null;return[{},r,e+1]}const Jh=RegExp(`^T?${Vr.source}$`),zh=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Kh(a){const[e,r,n,t,i,o,u,l,c]=a,d=e[0]==="-",m=l&&l[0]==="-",g=(y,h=!1)=>y!==void 0&&(h||y&&d)?-y:y;return[{years:g(Le(r)),months:g(Le(n)),weeks:g(Le(t)),days:g(Le(i)),hours:g(Le(o)),minutes:g(Le(u)),seconds:g(Le(l),l==="-0"),milliseconds:g(zr(c),m)}]}const Vh={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _r(a,e,r,n,t,i,o){const u={year:e.length===2?Lr(Ee(e)):Ee(e),month:oi.indexOf(r)+1,day:Ee(n),hour:Ee(t),minute:Ee(i)};return o&&(u.second=Ee(o)),a&&(u.weekday=a.length>3?ui.indexOf(a)+1:li.indexOf(a)+1),u}const Uh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function _h(a){const[,e,r,n,t,i,o,u,l,c,d,m]=a,g=_r(e,t,n,r,i,o,u);let y;return l?y=Vh[l]:c?y=0:y=_a(d,m),[g,new ne(y)]}function jh(a){return a.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const $h=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Yh=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,qh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function En(a){const[,e,r,n,t,i,o,u]=a;return[_r(e,t,n,r,i,o,u),ne.utcInstance]}function Zh(a){const[,e,r,n,t,i,o,u]=a;return[_r(e,u,r,n,t,i,o),ne.utcInstance]}const Xh=qe(Ph,Ur),Qh=qe(Nh,Ur),em=qe(xh,Ur),am=qe(fi),gi=Ze(Ih,Qe,ma,Fa),rm=Ze(Hh,Qe,ma,Fa),nm=Ze(Gh,Qe,ma,Fa),tm=Ze(Qe,ma,Fa);function im(a){return Xe(a,[Xh,gi],[Qh,rm],[em,nm],[am,tm])}function om(a){return Xe(jh(a),[Uh,_h])}function sm(a){return Xe(a,[$h,En],[Yh,En],[qh,Zh])}function um(a){return Xe(a,[zh,Kh])}const lm=Ze(Qe);function cm(a){return Xe(a,[Jh,lm])}const dm=qe(Wh,Oh),hm=qe(yi),mm=Ze(Qe,ma,Fa);function Fm(a){return Xe(a,[dm,gi],[hm,mm])}const wn="Invalid Duration",bi={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},pm={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...bi},le=146097/400,Je=146097/4800,fm={years:{quarters:4,months:12,weeks:le/7,days:le,hours:le*24,minutes:le*24*60,seconds:le*24*60*60,milliseconds:le*24*60*60*1e3},quarters:{months:3,weeks:le/28,days:le/4,hours:le*24/4,minutes:le*24*60/4,seconds:le*24*60*60/4,milliseconds:le*24*60*60*1e3/4},months:{weeks:Je/7,days:Je,hours:Je*24,minutes:Je*24*60,seconds:Je*24*60*60,milliseconds:Je*24*60*60*1e3},...bi},Pe=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ym=Pe.slice(0).reverse();function ke(a,e,r=!1){const n={values:r?e.values:{...a.values,...e.values||{}},loc:a.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||a.conversionAccuracy,matrix:e.matrix||a.matrix};return new N(n)}function Ci(a,e){let r=e.milliseconds??0;for(const n of ym.slice(1))e[n]&&(r+=e[n]*a[n].milliseconds);return r}function Bn(a,e){const r=Ci(a,e)<0?-1:1;Pe.reduceRight((n,t)=>{if(w(e[t]))return n;if(n){const i=e[n]*r,o=a[t][n],u=Math.floor(i/o);e[t]+=u*r,e[n]-=u*o*r}return t},null),Pe.reduce((n,t)=>{if(w(e[t]))return n;if(n){const i=e[n]%1;e[n]-=i,e[t]+=i*a[n][t]}return t},null)}function Tn(a){const e={};for(const[r,n]of Object.entries(a))n!==0&&(e[r]=n);return e}class N{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;let n=r?fm:pm;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||G.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return N.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new ee(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new N({values:Ia(e,N.normalizeUnit),loc:G.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Be(e))return N.fromMillis(e);if(N.isDuration(e))return e;if(typeof e=="object")return N.fromObject(e);throw new ee(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[n]=um(e);return n?N.fromObject(n,r):N.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[n]=cm(e);return n?N.fromObject(n,r):N.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new ee("need to specify a reason the Duration is invalid");const n=e instanceof Fe?e:new Fe(e,r);if(_.throwOnInvalid)throw new Kd(n);return new N({invalid:n})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new Bt(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?ae.create(this.loc,n).formatDurationFromString(this,e):wn}toHuman(e={}){if(!this.isValid)return wn;const r=e.showZeros!==!1,n=Pe.map(t=>{const i=this.values[t];return w(i)||i===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(i)}).filter(t=>t);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Kr(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},T.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Ci(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e),n={};for(const t of Pe)($e(r.values,t)||$e(this.values,t))&&(n[t]=r.get(t)+this.get(t));return ke(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=ii(e(this.values[n],n));return ke(this,{values:r},!0)}get(e){return this[N.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...Ia(e,N.normalizeUnit)};return ke(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:t}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:t,conversionAccuracy:n};return ke(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Bn(this.matrix,e),ke(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Tn(this.normalize().shiftToAll().toObject());return ke(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>N.normalizeUnit(o));const r={},n={},t=this.toObject();let i;for(const o of Pe)if(e.indexOf(o)>=0){i=o;let u=0;for(const c in n)u+=this.matrix[c][o]*n[c],n[c]=0;Be(t[o])&&(u+=t[o]);const l=Math.trunc(u);r[o]=l,n[o]=(u*1e3-l*1e3)/1e3}else Be(t[o])&&(n[o]=t[o]);for(const o in n)n[o]!==0&&(r[i]+=o===i?n[o]:n[o]/this.matrix[i][o]);return Bn(this.matrix,r),ke(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return ke(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=Tn(this.values);return ke(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,t){return n===void 0||n===0?t===void 0||t===0:n===t}for(const n of Pe)if(!r(this.values[n],e.values[n]))return!1;return!0}}const ze="Invalid Interval";function gm(a,e){return!a||!a.isValid?U.invalid("missing or invalid start"):!e||!e.isValid?U.invalid("missing or invalid end"):e<a?U.invalid("end before start",`The end of an interval must be after its start, but you had start=${a.toISO()} and end=${e.toISO()}`):null}class U{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new ee("need to specify a reason the Interval is invalid");const n=e instanceof Fe?e:new Fe(e,r);if(_.throwOnInvalid)throw new zd(n);return new U({invalid:n})}static fromDateTimes(e,r){const n=na(e),t=na(r),i=gm(n,t);return i??new U({start:n,end:t})}static after(e,r){const n=N.fromDurationLike(r),t=na(e);return U.fromDateTimes(t,t.plus(n))}static before(e,r){const n=N.fromDurationLike(r),t=na(e);return U.fromDateTimes(t.minus(n),t)}static fromISO(e,r){const[n,t]=(e||"").split("/",2);if(n&&t){let i,o;try{i=T.fromISO(n,r),o=i.isValid}catch{o=!1}let u,l;try{u=T.fromISO(t,r),l=u.isValid}catch{l=!1}if(o&&l)return U.fromDateTimes(i,u);if(o){const c=N.fromISO(t,r);if(c.isValid)return U.after(i,c)}else if(l){const c=N.fromISO(n,r);if(c.isValid)return U.before(u,c)}}return U.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;const n=this.start.startOf(e,r);let t;return r!=null&&r.useLocaleWeeks?t=this.end.reconfigure({locale:n.locale}):t=this.end,t=t.startOf(e,r),Math.floor(t.diff(n,e).get(e))+(t.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?U.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(na).filter(o=>this.contains(o)).sort((o,u)=>o.toMillis()-u.toMillis()),n=[];let{s:t}=this,i=0;for(;t<this.e;){const o=r[i]||this.e,u=+o>+this.e?this.e:o;n.push(U.fromDateTimes(t,u)),t=u,i+=1}return n}splitBy(e){const r=N.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,t=1,i;const o=[];for(;n<this.e;){const u=this.start.plus(r.mapUnits(l=>l*t));i=+u>+this.e?this.e:u,o.push(U.fromDateTimes(n,i)),n=i,t+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:U.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;const r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return U.fromDateTimes(r,n)}static merge(e){const[r,n]=e.sort((t,i)=>t.s-i.s).reduce(([t,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[t,i.union(o)]:[t.concat([i]),o]:[t,o],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0;const t=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...i),u=o.sort((l,c)=>l.time-c.time);for(const l of u)n+=l.type==="s"?1:-1,n===1?r=l.time:(r&&+r!=+l.time&&t.push(U.fromDateTimes(r,l.time)),r=null);return U.merge(t)}difference(...e){return U.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ze}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ga,r={}){return this.isValid?ae.create(this.s.loc.clone(r),e).formatInterval(this):ze}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ze}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ze}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ze}toFormat(e,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:ze}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):N.invalid(this.invalidReason)}mapEndpoints(e){return U.fromDateTimes(e(this.s),e(this.e))}}class va{static hasDST(e=_.defaultZone){const r=T.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return Se.isValidZone(e)}static normalizeZone(e){return we(e,_.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||G.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||G.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||G.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:t=null,outputCalendar:i="gregory"}={}){return(t||G.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:t=null,outputCalendar:i="gregory"}={}){return(t||G.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:t=null}={}){return(t||G.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:t=null}={}){return(t||G.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return G.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return G.create(r,null,"gregory").eras(e)}static features(){return{relative:ri(),localeWeek:ni()}}}function Mn(a,e){const r=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(a);return Math.floor(N.fromMillis(n).as("days"))}function bm(a,e,r){const n=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const d=Mn(l,c);return(d-d%7)/7}],["days",Mn]],t={},i=a;let o,u;for(const[l,c]of n)r.indexOf(l)>=0&&(o=l,t[l]=c(a,e),u=i.plus(t),u>e?(t[l]--,a=i.plus(t),a>e&&(u=a,t[l]--,a=i.plus(t))):a=u);return[a,t,u,o]}function Cm(a,e,r,n){let[t,i,o,u]=bm(a,e,r);const l=e-t,c=r.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);c.length===0&&(o<e&&(o=t.plus({[u]:1})),o!==t&&(i[u]=(i[u]||0)+l/(o-t)));const d=N.fromObject(i,n);return c.length>0?N.fromMillis(l,n).shiftTo(...c).plus(d):d}const km="missing Intl.DateTimeFormat.formatToParts support";function x(a,e=r=>r){return{regex:a,deser:([r])=>e(dh(r))}}const Am=" ",ki=`[ ${Am}]`,Ai=new RegExp(ki,"g");function Sm(a){return a.replace(/\./g,"\\.?").replace(Ai,ki)}function Ln(a){return a.replace(/\./g,"").replace(Ai," ").toLowerCase()}function me(a,e){return a===null?null:{regex:RegExp(a.map(Sm).join("|")),deser:([r])=>a.findIndex(n=>Ln(r)===Ln(n))+e}}function Rn(a,e){return{regex:a,deser:([,r,n])=>_a(r,n),groups:e}}function Da(a){return{regex:a,deser:([e])=>e}}function vm(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Dm(a,e){const r=he(e),n=he(e,"{2}"),t=he(e,"{3}"),i=he(e,"{4}"),o=he(e,"{6}"),u=he(e,"{1,2}"),l=he(e,"{1,3}"),c=he(e,"{1,6}"),d=he(e,"{1,9}"),m=he(e,"{2,4}"),g=he(e,"{4,6}"),y=p=>({regex:RegExp(vm(p.val)),deser:([b])=>b,literal:!0}),f=(p=>{if(a.literal)return y(p);switch(p.val){case"G":return me(e.eras("short"),0);case"GG":return me(e.eras("long"),0);case"y":return x(c);case"yy":return x(m,Lr);case"yyyy":return x(i);case"yyyyy":return x(g);case"yyyyyy":return x(o);case"M":return x(u);case"MM":return x(n);case"MMM":return me(e.months("short",!0),1);case"MMMM":return me(e.months("long",!0),1);case"L":return x(u);case"LL":return x(n);case"LLL":return me(e.months("short",!1),1);case"LLLL":return me(e.months("long",!1),1);case"d":return x(u);case"dd":return x(n);case"o":return x(l);case"ooo":return x(t);case"HH":return x(n);case"H":return x(u);case"hh":return x(n);case"h":return x(u);case"mm":return x(n);case"m":return x(u);case"q":return x(u);case"qq":return x(n);case"s":return x(u);case"ss":return x(n);case"S":return x(l);case"SSS":return x(t);case"u":return Da(d);case"uu":return Da(u);case"uuu":return x(r);case"a":return me(e.meridiems(),0);case"kkkk":return x(i);case"kk":return x(m,Lr);case"W":return x(u);case"WW":return x(n);case"E":case"c":return x(r);case"EEE":return me(e.weekdays("short",!1),1);case"EEEE":return me(e.weekdays("long",!1),1);case"ccc":return me(e.weekdays("short",!0),1);case"cccc":return me(e.weekdays("long",!0),1);case"Z":case"ZZ":return Rn(new RegExp(`([+-]${u.source})(?::(${n.source}))?`),2);case"ZZZ":return Rn(new RegExp(`([+-]${u.source})(${n.source})?`),2);case"z":return Da(/[a-z_+-/]{1,256}?/i);case" ":return Da(/[^\S\n\r]/);default:return y(p)}})(a)||{invalidReason:km};return f.token=a,f}const Em={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function wm(a,e,r){const{type:n,value:t}=a;if(n==="literal"){const l=/^\s+$/.test(t);return{literal:!l,val:l?" ":t}}const i=e[n];let o=n;n==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=r.hour12?"hour12":"hour24");let u=Em[o];if(typeof u=="object"&&(u=u[i]),u)return{literal:!1,val:u}}function Bm(a){return[`^${a.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,a]}function Tm(a,e,r){const n=a.match(e);if(n){const t={};let i=1;for(const o in r)if($e(r,o)){const u=r[o],l=u.groups?u.groups+1:1;!u.literal&&u.token&&(t[u.token.val[0]]=u.deser(n.slice(i,i+l))),i+=l}return[n,t]}else return[n,{}]}function Mm(a){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return w(a.z)||(r=Se.create(a.z)),w(a.Z)||(r||(r=new ne(a.Z)),n=a.Z),w(a.q)||(a.M=(a.q-1)*3+1),w(a.h)||(a.h<12&&a.a===1?a.h+=12:a.h===12&&a.a===0&&(a.h=0)),a.G===0&&a.y&&(a.y=-a.y),w(a.u)||(a.S=zr(a.u)),[Object.keys(a).reduce((i,o)=>{const u=e(o);return u&&(i[u]=a[o]),i},{}),r,n]}let ur=null;function Lm(){return ur||(ur=T.fromMillis(1555555555555)),ur}function Rm(a,e){if(a.literal)return a;const r=ae.macroTokenToFormatOpts(a.val),n=Ei(r,e);return n==null||n.includes(void 0)?a:n}function Si(a,e){return Array.prototype.concat(...a.map(r=>Rm(r,e)))}class vi{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=Si(ae.parseFormat(r),e),this.units=this.tokens.map(n=>Dm(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,t]=Bm(this.units);this.regex=RegExp(n,"i"),this.handlers=t}}explainFromTokens(e){if(this.isValid){const[r,n]=Tm(e,this.regex,this.handlers),[t,i,o]=n?Mm(n):[null,null,void 0];if($e(n,"a")&&$e(n,"H"))throw new Ve("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:t,zone:i,specificOffset:o}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Di(a,e,r){return new vi(a,r).explainFromTokens(e)}function Pm(a,e,r){const{result:n,zone:t,specificOffset:i,invalidReason:o}=Di(a,e,r);return[n,t,i,o]}function Ei(a,e){if(!a)return null;const n=ae.create(e,a).dtFormatter(Lm()),t=n.formatToParts(),i=n.resolvedOptions();return t.map(o=>wm(o,a,i))}const lr="Invalid DateTime",Pn=864e13;function sa(a){return new Fe("unsupported zone",`the zone "${a.name}" is not supported`)}function cr(a){return a.weekData===null&&(a.weekData=Wa(a.c)),a.weekData}function dr(a){return a.localWeekData===null&&(a.localWeekData=Wa(a.c,a.loc.getMinDaysInFirstWeek(),a.loc.getStartOfWeek())),a.localWeekData}function Re(a,e){const r={ts:a.ts,zone:a.zone,c:a.c,o:a.o,loc:a.loc,invalid:a.invalid};return new T({...r,...e,old:r})}function wi(a,e,r){let n=a-e*60*1e3;const t=r.offset(n);if(e===t)return[n,e];n-=(t-e)*60*1e3;const i=r.offset(n);return t===i?[n,t]:[a-Math.min(t,i)*60*1e3,Math.max(t,i)]}function Ea(a,e){a+=e*60*1e3;const r=new Date(a);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Ta(a,e,r){return wi(Ua(a),e,r)}function Nn(a,e){const r=a.o,n=a.c.year+Math.trunc(e.years),t=a.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...a.c,year:n,month:t,day:Math.min(a.c.day,Oa(n,t))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=N.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),u=Ua(i);let[l,c]=wi(u,r,a.zone);return o!==0&&(l+=o,c=a.zone.offset(l)),{ts:l,o:c}}function Ke(a,e,r,n,t,i){const{setZone:o,zone:u}=r;if(a&&Object.keys(a).length!==0||e){const l=e||u,c=T.fromObject(a,{...r,zone:l,specificOffset:i});return o?c:c.setZone(u)}else return T.invalid(new Fe("unparsable",`the input "${t}" can't be parsed as ${n}`))}function wa(a,e,r=!0){return a.isValid?ae.create(G.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(a,e):null}function hr(a,e,r){const n=a.c.year>9999||a.c.year<0;let t="";if(n&&a.c.year>=0&&(t+="+"),t+=q(a.c.year,n?6:4),r==="year")return t;if(e){if(t+="-",t+=q(a.c.month),r==="month")return t;t+="-"}else if(t+=q(a.c.month),r==="month")return t;return t+=q(a.c.day),t}function xn(a,e,r,n,t,i,o){let u=!r||a.c.millisecond!==0||a.c.second!==0,l="";switch(o){case"day":case"month":case"year":break;default:if(l+=q(a.c.hour),o==="hour")break;if(e){if(l+=":",l+=q(a.c.minute),o==="minute")break;u&&(l+=":",l+=q(a.c.second))}else{if(l+=q(a.c.minute),o==="minute")break;u&&(l+=q(a.c.second))}if(o==="second")break;u&&(!n||a.c.millisecond!==0)&&(l+=".",l+=q(a.c.millisecond,3))}return t&&(a.isOffsetFixed&&a.offset===0&&!i?l+="Z":a.o<0?(l+="-",l+=q(Math.trunc(-a.o/60)),l+=":",l+=q(Math.trunc(-a.o%60))):(l+="+",l+=q(Math.trunc(a.o/60)),l+=":",l+=q(Math.trunc(a.o%60)))),i&&(l+="["+a.zone.ianaName+"]"),l}const Bi={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Nm={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},xm={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ma=["year","month","day","hour","minute","second","millisecond"],Hm=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Gm=["year","ordinal","hour","minute","second","millisecond"];function La(a){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[a.toLowerCase()];if(!e)throw new Bt(a);return e}function Hn(a){switch(a.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return La(a)}}function Wm(a){if(ua===void 0&&(ua=_.now()),a.type!=="iana")return a.offset(ua);const e=a.name;let r=Rr.get(e);return r===void 0&&(r=a.offset(ua),Rr.set(e,r)),r}function Gn(a,e){const r=we(e.zone,_.defaultZone);if(!r.isValid)return T.invalid(sa(r));const n=G.fromObject(e);let t,i;if(w(a.year))t=_.now();else{for(const l of Ma)w(a[l])&&(a[l]=Bi[l]);const o=ei(a)||ai(a);if(o)return T.invalid(o);const u=Wm(r);[t,i]=Ta(a,u,r)}return new T({ts:t,zone:r,loc:n,o:i})}function Wn(a,e,r){const n=w(r.round)?!0:r.round,t=w(r.rounding)?"trunc":r.rounding,i=(u,l)=>(u=Kr(u,n||r.calendary?0:2,r.calendary?"round":t),e.loc.clone(r).relFormatter(r).format(u,l)),o=u=>r.calendary?e.hasSame(a,u)?0:e.startOf(u).diff(a.startOf(u),u).get(u):e.diff(a,u).get(u);if(r.unit)return i(o(r.unit),r.unit);for(const u of r.units){const l=o(u);if(Math.abs(l)>=1)return i(l,u)}return i(a>e?-0:0,r.units[r.units.length-1])}function On(a){let e={},r;return a.length>0&&typeof a[a.length-1]=="object"?(e=a[a.length-1],r=Array.from(a).slice(0,a.length-1)):r=Array.from(a),[e,r]}let ua;const Rr=new Map;class T{constructor(e){const r=e.zone||_.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Fe("invalid input"):null)||(r.isValid?null:sa(r));this.ts=w(e.ts)?_.now():e.ts;let t=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[t,i]=[e.old.c,e.old.o];else{const u=Be(e.o)&&!e.old?e.o:r.offset(this.ts);t=Ea(this.ts,u),n=Number.isNaN(t.year)?new Fe("invalid input"):null,t=n?null:t,i=n?null:u}this._zone=r,this.loc=e.loc||G.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=t,this.o=i,this.isLuxonDateTime=!0}static now(){return new T({})}static local(){const[e,r]=On(arguments),[n,t,i,o,u,l,c]=r;return Gn({year:n,month:t,day:i,hour:o,minute:u,second:l,millisecond:c},e)}static utc(){const[e,r]=On(arguments),[n,t,i,o,u,l,c]=r;return e.zone=ne.utcInstance,Gn({year:n,month:t,day:i,hour:o,minute:u,second:l,millisecond:c},e)}static fromJSDate(e,r={}){const n=fh(e)?e.valueOf():NaN;if(Number.isNaN(n))return T.invalid("invalid input");const t=we(r.zone,_.defaultZone);return t.isValid?new T({ts:n,zone:t,loc:G.fromObject(r)}):T.invalid(sa(t))}static fromMillis(e,r={}){if(Be(e))return e<-Pn||e>Pn?T.invalid("Timestamp out of range"):new T({ts:e,zone:we(r.zone,_.defaultZone),loc:G.fromObject(r)});throw new ee(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Be(e))return new T({ts:e*1e3,zone:we(r.zone,_.defaultZone),loc:G.fromObject(r)});throw new ee("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const n=we(r.zone,_.defaultZone);if(!n.isValid)return T.invalid(sa(n));const t=G.fromObject(r),i=Ia(e,Hn),{minDaysInFirstWeek:o,startOfWeek:u}=An(i,t),l=_.now(),c=w(r.specificOffset)?n.offset(l):r.specificOffset,d=!w(i.ordinal),m=!w(i.year),g=!w(i.month)||!w(i.day),y=m||g,h=i.weekYear||i.weekNumber;if((y||d)&&h)throw new Ve("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(g&&d)throw new Ve("Can't mix ordinal dates with month/day");const f=h||i.weekday&&!y;let p,b,D=Ea(l,c);f?(p=Hm,b=Nm,D=Wa(D,o,u)):d?(p=Gm,b=xm,D=sr(D)):(p=Ma,b=Bi);let v=!1;for(const X of p){const R=i[X];w(R)?v?i[X]=b[X]:i[X]=D[X]:v=!0}const k=f?mh(i,o,u):d?Fh(i):ei(i),A=k||ai(i);if(A)return T.invalid(A);const B=f?Cn(i,o,u):d?kn(i):i,[J,Z]=Ta(B,c,n),W=new T({ts:J,zone:n,o:Z,loc:t});return i.weekday&&y&&e.weekday!==W.weekday?T.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${W.toISO()}`):W.isValid?W:T.invalid(W.invalid)}static fromISO(e,r={}){const[n,t]=im(e);return Ke(n,t,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[n,t]=om(e);return Ke(n,t,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[n,t]=sm(e);return Ke(n,t,r,"HTTP",r)}static fromFormat(e,r,n={}){if(w(e)||w(r))throw new ee("fromFormat requires an input string and a format");const{locale:t=null,numberingSystem:i=null}=n,o=G.fromOpts({locale:t,numberingSystem:i,defaultToEN:!0}),[u,l,c,d]=Pm(o,e,r);return d?T.invalid(d):Ke(u,l,n,`format ${r}`,e,c)}static fromString(e,r,n={}){return T.fromFormat(e,r,n)}static fromSQL(e,r={}){const[n,t]=Fm(e);return Ke(n,t,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new ee("need to specify a reason the DateTime is invalid");const n=e instanceof Fe?e:new Fe(e,r);if(_.throwOnInvalid)throw new Jd(n);return new T({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){const n=Ei(e,G.fromObject(r));return n?n.map(t=>t?t.val:null).join(""):null}static expandFormat(e,r={}){return Si(ae.parseFormat(e),G.fromObject(r)).map(t=>t.val).join("")}static resetCache(){ua=void 0,Rr.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?cr(this).weekYear:NaN}get weekNumber(){return this.isValid?cr(this).weekNumber:NaN}get weekday(){return this.isValid?cr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?dr(this).weekday:NaN}get localWeekNumber(){return this.isValid?dr(this).weekNumber:NaN}get localWeekYear(){return this.isValid?dr(this).weekYear:NaN}get ordinal(){return this.isValid?sr(this.c).ordinal:NaN}get monthShort(){return this.isValid?va.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?va.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?va.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?va.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,r=6e4,n=Ua(this.c),t=this.zone.offset(n-e),i=this.zone.offset(n+e),o=this.zone.offset(n-t*r),u=this.zone.offset(n-i*r);if(o===u)return[this];const l=n-o*r,c=n-u*r,d=Ea(l,o),m=Ea(c,u);return d.hour===m.hour&&d.minute===m.minute&&d.second===m.second&&d.millisecond===m.millisecond?[Re(this,{ts:l}),Re(this,{ts:c})]:[this]}get isInLeapYear(){return ha(this.year)}get daysInMonth(){return Oa(this.year,this.month)}get daysInYear(){return this.isValid?_e(this.year):NaN}get weeksInWeekYear(){return this.isValid?ca(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ca(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:n,calendar:t}=ae.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:t}}toUTC(e=0,r={}){return this.setZone(ne.instance(e),r)}toLocal(){return this.setZone(_.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=we(e,_.defaultZone),e.equals(this.zone))return this;if(e.isValid){let t=this.ts;if(r||n){const i=e.offset(this.ts),o=this.toObject();[t]=Ta(o,i,e)}return Re(this,{ts:t,zone:e})}else return T.invalid(sa(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){const t=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return Re(this,{loc:t})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=Ia(e,Hn),{minDaysInFirstWeek:n,startOfWeek:t}=An(r,this.loc),i=!w(r.weekYear)||!w(r.weekNumber)||!w(r.weekday),o=!w(r.ordinal),u=!w(r.year),l=!w(r.month)||!w(r.day),c=u||l,d=r.weekYear||r.weekNumber;if((c||o)&&d)throw new Ve("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new Ve("Can't mix ordinal dates with month/day");let m;i?m=Cn({...Wa(this.c,n,t),...r},n,t):w(r.ordinal)?(m={...this.toObject(),...r},w(r.day)&&(m.day=Math.min(Oa(m.year,m.month),m.day))):m=kn({...sr(this.c),...r});const[g,y]=Ta(m,this.o,this.zone);return Re(this,{ts:g,o:y})}plus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e);return Re(this,Nn(this,r))}minus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e).negate();return Re(this,Nn(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},t=N.normalizeUnit(e);switch(t){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(t==="weeks")if(r){const i=this.loc.getStartOfWeek(),{weekday:o}=this;o<i&&(n.weekNumber=this.weekNumber-1),n.weekday=i}else n.weekday=1;if(t==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?ae.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):lr}toLocaleString(e=Ga,r={}){return this.isValid?ae.create(this.loc.clone(r),e).formatDateTime(this):lr}toLocaleParts(e={}){return this.isValid?ae.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:t=!0,extendedZone:i=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;o=La(o);const u=e==="extended";let l=hr(this,u,o);return Ma.indexOf(o)>=3&&(l+="T"),l+=xn(this,u,r,n,t,i,o),l}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?hr(this,e==="extended",La(r)):null}toISOWeekDate(){return wa(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:t=!1,extendedZone:i=!1,format:o="extended",precision:u="milliseconds"}={}){return this.isValid?(u=La(u),(t&&Ma.indexOf(u)>=3?"T":"")+xn(this,o==="extended",r,e,n,i,u)):null}toRFC2822(){return wa(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return wa(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?hr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let t="HH:mm:ss.SSS";return(r||e)&&(n&&(t+=" "),r?t+="z":e&&(t+="ZZ")),wa(this,t,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():lr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return N.invalid("created by diffing an invalid DateTime");const t={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=yh(r).map(N.normalizeUnit),o=e.valueOf()>this.valueOf(),u=o?this:e,l=o?e:this,c=Cm(u,l,i,t);return o?c.negate():c}diffNow(e="milliseconds",r={}){return this.diff(T.now(),e,r)}until(e){return this.isValid?U.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;const t=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(r,n)<=t&&t<=i.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||T.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0;let t=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(t=e.unit,i=void 0),Wn(r,this.plus(n),{...e,numeric:"always",units:t,unit:i})}toRelativeCalendar(e={}){return this.isValid?Wn(e.base||T.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(T.isDateTime))throw new ee("min requires all arguments be DateTimes");return Sn(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(T.isDateTime))throw new ee("max requires all arguments be DateTimes");return Sn(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){const{locale:t=null,numberingSystem:i=null}=n,o=G.fromOpts({locale:t,numberingSystem:i,defaultToEN:!0});return Di(o,e,r)}static fromStringExplain(e,r,n={}){return T.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){const{locale:n=null,numberingSystem:t=null}=r,i=G.fromOpts({locale:n,numberingSystem:t,defaultToEN:!0});return new vi(i,e)}static fromFormatParser(e,r,n={}){if(w(e)||w(r))throw new ee("fromFormatParser requires an input string and a format parser");const{locale:t=null,numberingSystem:i=null}=n,o=G.fromOpts({locale:t,numberingSystem:i,defaultToEN:!0});if(!o.equals(r.locale))throw new ee(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${r.locale}`);const{result:u,zone:l,specificOffset:c,invalidReason:d}=r.explainFromTokens(e);return d?T.invalid(d):Ke(u,l,n,`format ${r.format}`,e,c)}static get DATE_SHORT(){return Ga}static get DATE_MED(){return Tt}static get DATE_MED_WITH_WEEKDAY(){return Vd}static get DATE_FULL(){return Mt}static get DATE_HUGE(){return Lt}static get TIME_SIMPLE(){return Rt}static get TIME_WITH_SECONDS(){return Pt}static get TIME_WITH_SHORT_OFFSET(){return Nt}static get TIME_WITH_LONG_OFFSET(){return xt}static get TIME_24_SIMPLE(){return Ht}static get TIME_24_WITH_SECONDS(){return Gt}static get TIME_24_WITH_SHORT_OFFSET(){return Wt}static get TIME_24_WITH_LONG_OFFSET(){return Ot}static get DATETIME_SHORT(){return It}static get DATETIME_SHORT_WITH_SECONDS(){return Jt}static get DATETIME_MED(){return zt}static get DATETIME_MED_WITH_SECONDS(){return Kt}static get DATETIME_MED_WITH_WEEKDAY(){return Ud}static get DATETIME_FULL(){return Vt}static get DATETIME_FULL_WITH_SECONDS(){return Ut}static get DATETIME_HUGE(){return _t}static get DATETIME_HUGE_WITH_SECONDS(){return jt}}function na(a){if(T.isDateTime(a))return a;if(a&&a.valueOf&&Be(a.valueOf()))return T.fromJSDate(a);if(a&&typeof a=="object")return T.fromObject(a);throw new ee(`Unknown datetime argument: ${a}, of type ${typeof a}`)}class He{constructor(e){S(this,"id");S(this,"cpf");S(this,"cpf_responsible");S(this,"cns");S(this,"name");S(this,"birth_date");S(this,"identification_document");S(this,"pregnant");S(this,"mother_name");S(this,"cellphone");S(this,"phone");S(this,"email");S(this,"issuing_agency");S(this,"_gender",Dt()[0]);S(this,"_race");S(this,"_address",null);S(this,"asFormData",()=>{var e;return{cpf:this.cpf,cpf_responsible:this.cpf_responsible,cns:this.cns,name:this.name,gender:this._gender,birth_date:this.birth_date,identification_document:this.identification_document,mother_name:this.mother_name,pregnant:this.pregnant,phone:this.phone,cellphone:this.cellphone,email:this.email,issuing_agency:this.issuing_agency,race:this.race,...(e=this.address)==null?void 0:e.asFormData}});S(this,"asRequestPayload",()=>{var e,r;return{id:this.id,cpf:Q.removeCpfMask(this.cpf),cpf_responsible:Q.removeCpfMask(this.cpf_responsible),cns:Q.removeCnsMask(this.cns),name:this.name,gender:(e=this._gender)==null?void 0:e.value,birth_date:this.birth_date,identification_document:this.identification_document,mother_name:this.mother_name,pregnant:this.pregnant,address:((r=this.address)==null?void 0:r.asRequestPayload)||{},phone:Q.removePhoneMask(this.phone),email:this.email,cellphone:Q.removePhoneMask(this.cellphone),issuing_agency:this.issuing_agency,...this.race&&{race:this.race.value}}});this.id=e.id,this.cpf=e.cpf,this.cpf_responsible=e.cpf_responsible,this.cns=e.cns,this.name=e.name,this.gender=e.gender,this.race=e.race,this.birth_date=e.birth_date,this.identification_document=e.identification_document,this.mother_name=e.mother_name,this.pregnant=e.pregnant,this.phone=e.phone,this.cellphone=e.cellphone,this.email=e.email,this.issuing_agency=e.issuing_agency,this.address=e.address??{city:e.city,uf:e.uf,street:e.street,neighborhood:e.neighborhood,number:e.number,complement:e.complement}}set race(e){if(e){if(typeof e=="string"){this._race=Id(e);return}this._race=e}}set gender(e){if(typeof e=="string"){this._gender=Nd(e);return}this._gender=e}set address(e){this._address=new xd(e)}get address(){return this._address}get city(){var e;return(e=this._address)==null?void 0:e.city}get uf(){var e;return(e=this._address)==null?void 0:e.uf}get street(){var e;return(e=this._address)==null?void 0:e.street}get neighborhood(){var e;return(e=this._address)==null?void 0:e.neighborhood}get number(){var e;return(e=this._address)==null?void 0:e.number}get complement(){var e;return(e=this._address)==null?void 0:e.complement}get race(){return this._race}get gender(){return this._gender}getPersonalInfo(e){var n;return[{label:"CPF",value:this.cpf?Q.maskCpf(this.cpf):"Não informado",field:"cpf"},{label:"CNS",value:this.cns?Q.maskCns(this.cns):"Não informado",field:"cns"},{label:"RG",value:this.identification_document||"Não informado",field:"identification_document"},{label:"Data de nascimento",value:T.fromISO(this.birth_date).toFormat("dd/MM/yyyy"),field:"birth_date"},{label:"Sexo",value:this._gender.name,field:"gender"},{label:"Raça/Cor",value:((n=this.race)==null?void 0:n.name)||"Não informado",field:"race"}].filter(({field:t})=>!(e!=null&&e.includes(t)))}getContactInfo(e){return[{label:"Telefone",value:this.phone?Q.maskPhone(this.phone):"Não informado",field:"phone"},{label:"Celular",value:this.cellphone?Q.maskPhone(this.cellphone):"Não informado",field:"cellphone"},{label:"E-mail",value:this.email||"Não informado",field:"email"},{label:"Endereço",value:this.fancyAddress,fill:!0,field:"address"}].filter(({field:n})=>!(e!=null&&e.includes(n)))}get isPregnant(){return this._gender.value==="F"&&this.pregnant}get fancyAddress(){var e;return this.address?(e=this.address)==null?void 0:e.fancyAddress:"Não informado"}}const Ti=a=>new He({id:H.string.uuid(),name:H.person.fullName(),gender:H.helpers.arrayElement(["M","F"]),mother_name:H.person.fullName(),cpf:H.helpers.arrayElement(["04320568664","47388253807","11930974442","95151567500"]),cns:H.helpers.arrayElement(["947401207820008","150383531400002","192134169240003","146350365620000"]),birth_date:H.date.birthdate().toISOString().split("T")[0]||"",phone:H.helpers.fromRegExp(/[0-9]{2} [0-9]{4}-[0-9]{4}/),cellphone:H.helpers.fromRegExp(/[0-9]{2} [0-9]{4}-[0-9]{4}/),email:H.internet.email(),address:{cep:H.location.zipCode(),street:H.location.street(),number:H.string.numeric(3),complement:H.location.secondaryAddress(),neighborhood:H.location.street(),city:H.location.city(),uf:H.helpers.arrayElement(Ha)},race:H.helpers.arrayElement(["white","black","brown","indigenous","yellow"]),co_cidadao:H.number.int({min:1e3,max:9999}),is_dead:H.datatype.boolean(),pregnant:H.datatype.boolean(),identification_document:H.string.numeric(9).toUpperCase(),issuing_agency:H.helpers.arrayElement(["SSP","DETRAN","IFP"]),...a}),mr=(a=1,e)=>(H.seed(123),Array.from({length:a},()=>Ti(e))),Pr={apiBaseUrl:"",endpoints:{index:"/citizens",create:"/citizens",update:"/citizens",neighborhoods:"/citizens/neighborhoods",streets:"/citizens/streets"}};let Mi={...Pr};function jr(){return Mi}function Om(a){Mi={...Pr,...a,endpoints:{...Pr.endpoints,...a.endpoints}}}function Li(a,e){return function(){return a.apply(e,arguments)}}const{toString:Im}=Object.prototype,{getPrototypeOf:$r}=Object,{iterator:$a,toStringTag:Ri}=Symbol,Ya=(a=>e=>{const r=Im.call(e);return a[r]||(a[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),fe=a=>(a=a.toLowerCase(),e=>Ya(e)===a),qa=a=>e=>typeof e===a,{isArray:ea}=Array,Ye=qa("undefined");function pa(a){return a!==null&&!Ye(a)&&a.constructor!==null&&!Ye(a.constructor)&&te(a.constructor.isBuffer)&&a.constructor.isBuffer(a)}const Pi=fe("ArrayBuffer");function Jm(a){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(a):e=a&&a.buffer&&Pi(a.buffer),e}const zm=qa("string"),te=qa("function"),Ni=qa("number"),fa=a=>a!==null&&typeof a=="object",Km=a=>a===!0||a===!1,Ra=a=>{if(Ya(a)!=="object")return!1;const e=$r(a);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Ri in a)&&!($a in a)},Vm=a=>{if(!fa(a)||pa(a))return!1;try{return Object.keys(a).length===0&&Object.getPrototypeOf(a)===Object.prototype}catch{return!1}},Um=fe("Date"),_m=fe("File"),jm=fe("Blob"),$m=fe("FileList"),Ym=a=>fa(a)&&te(a.pipe),qm=a=>{let e;return a&&(typeof FormData=="function"&&a instanceof FormData||te(a.append)&&((e=Ya(a))==="formdata"||e==="object"&&te(a.toString)&&a.toString()==="[object FormData]"))},Zm=fe("URLSearchParams"),[Xm,Qm,eF,aF]=["ReadableStream","Request","Response","Headers"].map(fe),rF=a=>a.trim?a.trim():a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ya(a,e,{allOwnKeys:r=!1}={}){if(a===null||typeof a>"u")return;let n,t;if(typeof a!="object"&&(a=[a]),ea(a))for(n=0,t=a.length;n<t;n++)e.call(null,a[n],n,a);else{if(pa(a))return;const i=r?Object.getOwnPropertyNames(a):Object.keys(a),o=i.length;let u;for(n=0;n<o;n++)u=i[n],e.call(null,a[u],u,a)}}function xi(a,e){if(pa(a))return null;e=e.toLowerCase();const r=Object.keys(a);let n=r.length,t;for(;n-- >0;)if(t=r[n],e===t.toLowerCase())return t;return null}const Ne=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hi=a=>!Ye(a)&&a!==Ne;function Nr(){const{caseless:a,skipUndefined:e}=Hi(this)&&this||{},r={},n=(t,i)=>{const o=a&&xi(r,i)||i;Ra(r[o])&&Ra(t)?r[o]=Nr(r[o],t):Ra(t)?r[o]=Nr({},t):ea(t)?r[o]=t.slice():(!e||!Ye(t))&&(r[o]=t)};for(let t=0,i=arguments.length;t<i;t++)arguments[t]&&ya(arguments[t],n);return r}const nF=(a,e,r,{allOwnKeys:n}={})=>(ya(e,(t,i)=>{r&&te(t)?a[i]=Li(t,r):a[i]=t},{allOwnKeys:n}),a),tF=a=>(a.charCodeAt(0)===65279&&(a=a.slice(1)),a),iF=(a,e,r,n)=>{a.prototype=Object.create(e.prototype,n),a.prototype.constructor=a,Object.defineProperty(a,"super",{value:e.prototype}),r&&Object.assign(a.prototype,r)},oF=(a,e,r,n)=>{let t,i,o;const u={};if(e=e||{},a==null)return e;do{for(t=Object.getOwnPropertyNames(a),i=t.length;i-- >0;)o=t[i],(!n||n(o,a,e))&&!u[o]&&(e[o]=a[o],u[o]=!0);a=r!==!1&&$r(a)}while(a&&(!r||r(a,e))&&a!==Object.prototype);return e},sF=(a,e,r)=>{a=String(a),(r===void 0||r>a.length)&&(r=a.length),r-=e.length;const n=a.indexOf(e,r);return n!==-1&&n===r},uF=a=>{if(!a)return null;if(ea(a))return a;let e=a.length;if(!Ni(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=a[e];return r},lF=(a=>e=>a&&e instanceof a)(typeof Uint8Array<"u"&&$r(Uint8Array)),cF=(a,e)=>{const n=(a&&a[$a]).call(a);let t;for(;(t=n.next())&&!t.done;){const i=t.value;e.call(a,i[0],i[1])}},dF=(a,e)=>{let r;const n=[];for(;(r=a.exec(e))!==null;)n.push(r);return n},hF=fe("HTMLFormElement"),mF=a=>a.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,t){return n.toUpperCase()+t}),In=(({hasOwnProperty:a})=>(e,r)=>a.call(e,r))(Object.prototype),FF=fe("RegExp"),Gi=(a,e)=>{const r=Object.getOwnPropertyDescriptors(a),n={};ya(r,(t,i)=>{let o;(o=e(t,i,a))!==!1&&(n[i]=o||t)}),Object.defineProperties(a,n)},pF=a=>{Gi(a,(e,r)=>{if(te(a)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=a[r];if(te(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},fF=(a,e)=>{const r={},n=t=>{t.forEach(i=>{r[i]=!0})};return ea(a)?n(a):n(String(a).split(e)),r},yF=()=>{},gF=(a,e)=>a!=null&&Number.isFinite(a=+a)?a:e;function bF(a){return!!(a&&te(a.append)&&a[Ri]==="FormData"&&a[$a])}const CF=a=>{const e=new Array(10),r=(n,t)=>{if(fa(n)){if(e.indexOf(n)>=0)return;if(pa(n))return n;if(!("toJSON"in n)){e[t]=n;const i=ea(n)?[]:{};return ya(n,(o,u)=>{const l=r(o,t+1);!Ye(l)&&(i[u]=l)}),e[t]=void 0,i}}return n};return r(a,0)},kF=fe("AsyncFunction"),AF=a=>a&&(fa(a)||te(a))&&te(a.then)&&te(a.catch),Wi=((a,e)=>a?setImmediate:e?((r,n)=>(Ne.addEventListener("message",({source:t,data:i})=>{t===Ne&&i===r&&n.length&&n.shift()()},!1),t=>{n.push(t),Ne.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",te(Ne.postMessage)),SF=typeof queueMicrotask<"u"?queueMicrotask.bind(Ne):typeof process<"u"&&process.nextTick||Wi,vF=a=>a!=null&&te(a[$a]),F={isArray:ea,isArrayBuffer:Pi,isBuffer:pa,isFormData:qm,isArrayBufferView:Jm,isString:zm,isNumber:Ni,isBoolean:Km,isObject:fa,isPlainObject:Ra,isEmptyObject:Vm,isReadableStream:Xm,isRequest:Qm,isResponse:eF,isHeaders:aF,isUndefined:Ye,isDate:Um,isFile:_m,isBlob:jm,isRegExp:FF,isFunction:te,isStream:Ym,isURLSearchParams:Zm,isTypedArray:lF,isFileList:$m,forEach:ya,merge:Nr,extend:nF,trim:rF,stripBOM:tF,inherits:iF,toFlatObject:oF,kindOf:Ya,kindOfTest:fe,endsWith:sF,toArray:uF,forEachEntry:cF,matchAll:dF,isHTMLForm:hF,hasOwnProperty:In,hasOwnProp:In,reduceDescriptors:Gi,freezeMethods:pF,toObjectSet:fF,toCamelCase:mF,noop:yF,toFiniteNumber:gF,findKey:xi,global:Ne,isContextDefined:Hi,isSpecCompliantForm:bF,toJSONObject:CF,isAsyncFn:kF,isThenable:AF,setImmediate:Wi,asap:SF,isIterable:vF};function M(a,e,r,n,t){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=a,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),t&&(this.response=t,this.status=t.status?t.status:null)}F.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.status}}});const Oi=M.prototype,Ii={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(a=>{Ii[a]={value:a}});Object.defineProperties(M,Ii);Object.defineProperty(Oi,"isAxiosError",{value:!0});M.from=(a,e,r,n,t,i)=>{const o=Object.create(Oi);F.toFlatObject(a,o,function(d){return d!==Error.prototype},c=>c!=="isAxiosError");const u=a&&a.message?a.message:"Error",l=e==null&&a?a.code:e;return M.call(o,u,l,r,n,t),a&&o.cause==null&&Object.defineProperty(o,"cause",{value:a,configurable:!0}),o.name=a&&a.name||"Error",i&&Object.assign(o,i),o};const DF=null;function xr(a){return F.isPlainObject(a)||F.isArray(a)}function Ji(a){return F.endsWith(a,"[]")?a.slice(0,-2):a}function Jn(a,e,r){return a?a.concat(e).map(function(t,i){return t=Ji(t),!r&&i?"["+t+"]":t}).join(r?".":""):e}function EF(a){return F.isArray(a)&&!a.some(xr)}const wF=F.toFlatObject(F,{},null,function(e){return/^is[A-Z]/.test(e)});function Za(a,e,r){if(!F.isObject(a))throw new TypeError("target must be an object");e=e||new FormData,r=F.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,p){return!F.isUndefined(p[f])});const n=r.metaTokens,t=r.visitor||d,i=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&F.isSpecCompliantForm(e);if(!F.isFunction(t))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(F.isDate(h))return h.toISOString();if(F.isBoolean(h))return h.toString();if(!l&&F.isBlob(h))throw new M("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(h)||F.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,f,p){let b=h;if(h&&!p&&typeof h=="object"){if(F.endsWith(f,"{}"))f=n?f:f.slice(0,-2),h=JSON.stringify(h);else if(F.isArray(h)&&EF(h)||(F.isFileList(h)||F.endsWith(f,"[]"))&&(b=F.toArray(h)))return f=Ji(f),b.forEach(function(v,k){!(F.isUndefined(v)||v===null)&&e.append(o===!0?Jn([f],k,i):o===null?f:f+"[]",c(v))}),!1}return xr(h)?!0:(e.append(Jn(p,f,i),c(h)),!1)}const m=[],g=Object.assign(wF,{defaultVisitor:d,convertValue:c,isVisitable:xr});function y(h,f){if(!F.isUndefined(h)){if(m.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));m.push(h),F.forEach(h,function(b,D){(!(F.isUndefined(b)||b===null)&&t.call(e,b,F.isString(D)?D.trim():D,f,g))===!0&&y(b,f?f.concat(D):[D])}),m.pop()}}if(!F.isObject(a))throw new TypeError("data must be an object");return y(a),e}function zn(a){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(a).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Yr(a,e){this._pairs=[],a&&Za(a,this,e)}const zi=Yr.prototype;zi.append=function(e,r){this._pairs.push([e,r])};zi.toString=function(e){const r=e?function(n){return e.call(this,n,zn)}:zn;return this._pairs.map(function(t){return r(t[0])+"="+r(t[1])},"").join("&")};function BF(a){return encodeURIComponent(a).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ki(a,e,r){if(!e)return a;const n=r&&r.encode||BF;F.isFunction(r)&&(r={serialize:r});const t=r&&r.serialize;let i;if(t?i=t(e,r):i=F.isURLSearchParams(e)?e.toString():new Yr(e,r).toString(n),i){const o=a.indexOf("#");o!==-1&&(a=a.slice(0,o)),a+=(a.indexOf("?")===-1?"?":"&")+i}return a}class Kn{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){F.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Vi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},TF=typeof URLSearchParams<"u"?URLSearchParams:Yr,MF=typeof FormData<"u"?FormData:null,LF=typeof Blob<"u"?Blob:null,RF={isBrowser:!0,classes:{URLSearchParams:TF,FormData:MF,Blob:LF},protocols:["http","https","file","blob","url","data"]},qr=typeof window<"u"&&typeof document<"u",Hr=typeof navigator=="object"&&navigator||void 0,PF=qr&&(!Hr||["ReactNative","NativeScript","NS"].indexOf(Hr.product)<0),NF=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xF=qr&&window.location.href||"http://localhost",HF=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qr,hasStandardBrowserEnv:PF,hasStandardBrowserWebWorkerEnv:NF,navigator:Hr,origin:xF},Symbol.toStringTag,{value:"Module"})),re={...HF,...RF};function GF(a,e){return Za(a,new re.classes.URLSearchParams,{visitor:function(r,n,t,i){return re.isNode&&F.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function WF(a){return F.matchAll(/\w+|\[(\w*)]/g,a).map(e=>e[0]==="[]"?"":e[1]||e[0])}function OF(a){const e={},r=Object.keys(a);let n;const t=r.length;let i;for(n=0;n<t;n++)i=r[n],e[i]=a[i];return e}function Ui(a){function e(r,n,t,i){let o=r[i++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=i>=r.length;return o=!o&&F.isArray(t)?t.length:o,l?(F.hasOwnProp(t,o)?t[o]=[t[o],n]:t[o]=n,!u):((!t[o]||!F.isObject(t[o]))&&(t[o]=[]),e(r,n,t[o],i)&&F.isArray(t[o])&&(t[o]=OF(t[o])),!u)}if(F.isFormData(a)&&F.isFunction(a.entries)){const r={};return F.forEachEntry(a,(n,t)=>{e(WF(n),t,r,0)}),r}return null}function IF(a,e,r){if(F.isString(a))try{return(e||JSON.parse)(a),F.trim(a)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(a)}const ga={transitional:Vi,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",t=n.indexOf("application/json")>-1,i=F.isObject(e);if(i&&F.isHTMLForm(e)&&(e=new FormData(e)),F.isFormData(e))return t?JSON.stringify(Ui(e)):e;if(F.isArrayBuffer(e)||F.isBuffer(e)||F.isStream(e)||F.isFile(e)||F.isBlob(e)||F.isReadableStream(e))return e;if(F.isArrayBufferView(e))return e.buffer;if(F.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return GF(e,this.formSerializer).toString();if((u=F.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Za(u?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||t?(r.setContentType("application/json",!1),IF(e)):e}],transformResponse:[function(e){const r=this.transitional||ga.transitional,n=r&&r.forcedJSONParsing,t=this.responseType==="json";if(F.isResponse(e)||F.isReadableStream(e))return e;if(e&&F.isString(e)&&(n&&!this.responseType||t)){const o=!(r&&r.silentJSONParsing)&&t;try{return JSON.parse(e,this.parseReviver)}catch(u){if(o)throw u.name==="SyntaxError"?M.from(u,M.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:re.classes.FormData,Blob:re.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],a=>{ga.headers[a]={}});const JF=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zF=a=>{const e={};let r,n,t;return a&&a.split(`
|
|
14
|
+
${this.city.value} - ${this.uf.shortName}`}get asFormData(){return{street:this.street,number:this.number,complement:this.complement,neighborhood:this.neighborhood,city:this.city,uf:this.uf}}get asRequestPayload(){var e,r,n;return{street:typeof this.street=="object"?this.street.value:this.street,number:this.number,complement:this.complement,neighborhood:typeof this.neighborhood=="object"?(e=this.neighborhood)==null?void 0:e.value:this.neighborhood,city:typeof this.city=="object"?(r=this.city)==null?void 0:r.value:this.city,uf:typeof this.uf=="object"?(n=this.uf)==null?void 0:n.id:this.uf}}}const Et={name:"Branca",value:"white"},Hd={name:"Preta",value:"black"},Gd={name:"Parda",value:"mixed"},Wd={name:"Amarela",value:"asian"},Od={name:"Indígena",value:"indigenous"},wt=[Et,Hd,Gd,Wd,Od],Id=a=>{const e=wt.find(r=>r.value===a);return e||Et};class Oe extends Error{}class Jd extends Oe{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class zd extends Oe{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Kd extends Oe{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Ve extends Oe{}class Bt extends Oe{constructor(e){super(`Invalid unit ${e}`)}}class ee extends Oe{}class ve extends Oe{constructor(){super("Zone is an abstract class")}}const C="numeric",pe="short",se="long",Ga={year:C,month:C,day:C},Tt={year:C,month:pe,day:C},Vd={year:C,month:pe,day:C,weekday:pe},Mt={year:C,month:se,day:C},Lt={year:C,month:se,day:C,weekday:se},Rt={hour:C,minute:C},Pt={hour:C,minute:C,second:C},Nt={hour:C,minute:C,second:C,timeZoneName:pe},xt={hour:C,minute:C,second:C,timeZoneName:se},Ht={hour:C,minute:C,hourCycle:"h23"},Gt={hour:C,minute:C,second:C,hourCycle:"h23"},Wt={hour:C,minute:C,second:C,hourCycle:"h23",timeZoneName:pe},Ot={hour:C,minute:C,second:C,hourCycle:"h23",timeZoneName:se},It={year:C,month:C,day:C,hour:C,minute:C},Jt={year:C,month:C,day:C,hour:C,minute:C,second:C},zt={year:C,month:pe,day:C,hour:C,minute:C},Kt={year:C,month:pe,day:C,hour:C,minute:C,second:C},Ud={year:C,month:pe,day:C,weekday:pe,hour:C,minute:C},Vt={year:C,month:se,day:C,hour:C,minute:C,timeZoneName:pe},Ut={year:C,month:se,day:C,hour:C,minute:C,second:C,timeZoneName:pe},_t={year:C,month:se,day:C,weekday:se,hour:C,minute:C,timeZoneName:se},jt={year:C,month:se,day:C,weekday:se,hour:C,minute:C,second:C,timeZoneName:se};class da{get type(){throw new ve}get name(){throw new ve}get ianaName(){return this.name}get isUniversal(){throw new ve}offsetName(e,r){throw new ve}formatOffset(e,r){throw new ve}offset(e){throw new ve}equals(e){throw new ve}get isValid(){throw new ve}}let tr=null;class Ka extends da{static get instance(){return tr===null&&(tr=new Ka),tr}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return ti(e,r,n)}formatOffset(e,r){return la(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const Ar=new Map;function _d(a){let e=Ar.get(a);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:a,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Ar.set(a,e)),e}const jd={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function $d(a,e){const r=a.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,t,i,o,u,l,c,d]=n;return[o,t,i,u,l,c,d]}function Yd(a,e){const r=a.formatToParts(e),n=[];for(let t=0;t<r.length;t++){const{type:i,value:o}=r[t],u=jd[i];i==="era"?n[u]=o:w(u)||(n[u]=parseInt(o,10))}return n}const ir=new Map;class Se extends da{static create(e){let r=ir.get(e);return r===void 0&&ir.set(e,r=new Se(e)),r}static resetCache(){ir.clear(),Ar.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=Se.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return ti(e,r,n,this.name)}formatOffset(e,r){return la(this.offset(e),r)}offset(e){if(!this.valid)return NaN;const r=new Date(e);if(isNaN(r))return NaN;const n=_d(this.name);let[t,i,o,u,l,c,d]=n.formatToParts?Yd(n,r):$d(n,r);u==="BC"&&(t=-Math.abs(t)+1);const g=Ua({year:t,month:i,day:o,hour:l===24?0:l,minute:c,second:d,millisecond:0});let y=+r;const h=y%1e3;return y-=h>=0?h:1e3+h,(g-y)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let cn={};function qd(a,e={}){const r=JSON.stringify([a,e]);let n=cn[r];return n||(n=new Intl.ListFormat(a,e),cn[r]=n),n}const Sr=new Map;function vr(a,e={}){const r=JSON.stringify([a,e]);let n=Sr.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(a,e),Sr.set(r,n)),n}const Dr=new Map;function Zd(a,e={}){const r=JSON.stringify([a,e]);let n=Dr.get(r);return n===void 0&&(n=new Intl.NumberFormat(a,e),Dr.set(r,n)),n}const Er=new Map;function Xd(a,e={}){const{base:r,...n}=e,t=JSON.stringify([a,n]);let i=Er.get(t);return i===void 0&&(i=new Intl.RelativeTimeFormat(a,e),Er.set(t,i)),i}let oa=null;function Qd(){return oa||(oa=new Intl.DateTimeFormat().resolvedOptions().locale,oa)}const wr=new Map;function $t(a){let e=wr.get(a);return e===void 0&&(e=new Intl.DateTimeFormat(a).resolvedOptions(),wr.set(a,e)),e}const Br=new Map;function eh(a){let e=Br.get(a);if(!e){const r=new Intl.Locale(a);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...Yt,...e}),Br.set(a,e)}return e}function ah(a){const e=a.indexOf("-x-");e!==-1&&(a=a.substring(0,e));const r=a.indexOf("-u-");if(r===-1)return[a];{let n,t;try{n=vr(a).resolvedOptions(),t=a}catch{const l=a.substring(0,r);n=vr(l).resolvedOptions(),t=l}const{numberingSystem:i,calendar:o}=n;return[t,i,o]}}function rh(a,e,r){return(r||e)&&(a.includes("-u-")||(a+="-u"),r&&(a+=`-ca-${r}`),e&&(a+=`-nu-${e}`)),a}function nh(a){const e=[];for(let r=1;r<=12;r++){const n=T.utc(2009,r,1);e.push(a(n))}return e}function th(a){const e=[];for(let r=1;r<=7;r++){const n=T.utc(2016,11,13+r);e.push(a(n))}return e}function Sa(a,e,r,n){const t=a.listingMode();return t==="error"?null:t==="en"?r(e):n(e)}function ih(a){return a.numberingSystem&&a.numberingSystem!=="latn"?!1:a.numberingSystem==="latn"||!a.locale||a.locale.startsWith("en")||$t(a.locale).numberingSystem==="latn"}class oh{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:t,floor:i,...o}=n;if(!r||Object.keys(o).length>0){const u={useGrouping:!1,...n};n.padTo>0&&(u.minimumIntegerDigits=n.padTo),this.inf=Zd(e,u)}}format(e){if(this.inf){const r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{const r=this.floor?Math.floor(e):Kr(e,3);return q(r,this.padTo)}}}class sh{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let t;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const o=-1*(e.offset/60),u=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;e.offset!==0&&Se.create(u).valid?(t=u,this.dt=e):(t="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,t=e.zone.name):(t="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||t,this.dtf=vr(r,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){const n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class uh{constructor(e,r,n){this.opts={style:"long",...n},!r&&ri()&&(this.rtf=Xd(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):Mh(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}}const Yt={firstDay:1,minimalDays:4,weekend:[6,7]};class G{static fromOpts(e){return G.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,t,i=!1){const o=e||_.defaultLocale,u=o||(i?"en-US":Qd()),l=r||_.defaultNumberingSystem,c=n||_.defaultOutputCalendar,d=Mr(t)||_.defaultWeekSettings;return new G(u,l,c,d,o)}static resetCache(){oa=null,Sr.clear(),Dr.clear(),Er.clear(),wr.clear(),Br.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:t}={}){return G.create(e,r,n,t)}constructor(e,r,n,t,i){const[o,u,l]=ah(e);this.locale=o,this.numberingSystem=r||u||null,this.outputCalendar=n||l||null,this.weekSettings=t,this.intl=rh(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=ih(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:G.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Mr(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return Sa(this,e,si,()=>{const n=this.intl==="ja"||this.intl.startsWith("ja-");r&=!n;const t=r?{month:e,day:"numeric"}:{month:e},i=r?"format":"standalone";if(!this.monthsCache[i][e]){const o=n?u=>this.dtFormatter(u,t).format():u=>this.extract(u,t,"month");this.monthsCache[i][e]=nh(o)}return this.monthsCache[i][e]})}weekdays(e,r=!1){return Sa(this,e,ci,()=>{const n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},t=r?"format":"standalone";return this.weekdaysCache[t][e]||(this.weekdaysCache[t][e]=th(i=>this.extract(i,n,"weekday"))),this.weekdaysCache[t][e]})}meridiems(){return Sa(this,void 0,()=>di,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[T.utc(2016,11,13,9),T.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Sa(this,e,hi,()=>{const r={era:e};return this.eraCache[e]||(this.eraCache[e]=[T.utc(-40,1,1),T.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){const t=this.dtFormatter(e,r),i=t.formatToParts(),o=i.find(u=>u.type.toLowerCase()===n);return o?o.value:null}numberFormatter(e={}){return new oh(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new sh(e,this.intl,r)}relFormatter(e={}){return new uh(this.intl,this.isEnglish(),e)}listFormatter(e={}){return qd(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||$t(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ni()?eh(this.locale):Yt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let or=null;class ne extends da{static get utcInstance(){return or===null&&(or=new ne(0)),or}static instance(e){return e===0?ne.utcInstance:new ne(e)}static parseSpecifier(e){if(e){const r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new ne(_a(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${la(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${la(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return la(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class lh extends da{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function we(a,e){if(w(a)||a===null)return e;if(a instanceof da)return a;if(ph(a)){const r=a.toLowerCase();return r==="default"?e:r==="local"||r==="system"?Ka.instance:r==="utc"||r==="gmt"?ne.utcInstance:ne.parseSpecifier(r)||Se.create(a)}else return Be(a)?ne.instance(a):typeof a=="object"&&"offset"in a&&typeof a.offset=="function"?a:new lh(a)}const Or={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},dn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ch=Or.hanidec.replace(/[\[|\]]/g,"").split("");function dh(a){let e=parseInt(a,10);if(isNaN(e)){e="";for(let r=0;r<a.length;r++){const n=a.charCodeAt(r);if(a[r].search(Or.hanidec)!==-1)e+=ch.indexOf(a[r]);else for(const t in dn){const[i,o]=dn[t];n>=i&&n<=o&&(e+=n-i)}}return parseInt(e,10)}else return e}const Tr=new Map;function hh(){Tr.clear()}function he({numberingSystem:a},e=""){const r=a||"latn";let n=Tr.get(r);n===void 0&&(n=new Map,Tr.set(r,n));let t=n.get(e);return t===void 0&&(t=new RegExp(`${Or[r]}${e}`),n.set(e,t)),t}let hn=()=>Date.now(),mn="system",Fn=null,pn=null,fn=null,yn=60,gn,bn=null;class _{static get now(){return hn}static set now(e){hn=e}static set defaultZone(e){mn=e}static get defaultZone(){return we(mn,Ka.instance)}static get defaultLocale(){return Fn}static set defaultLocale(e){Fn=e}static get defaultNumberingSystem(){return pn}static set defaultNumberingSystem(e){pn=e}static get defaultOutputCalendar(){return fn}static set defaultOutputCalendar(e){fn=e}static get defaultWeekSettings(){return bn}static set defaultWeekSettings(e){bn=Mr(e)}static get twoDigitCutoffYear(){return yn}static set twoDigitCutoffYear(e){yn=e%100}static get throwOnInvalid(){return gn}static set throwOnInvalid(e){gn=e}static resetCaches(){G.resetCache(),Se.resetCache(),T.resetCache(),hh()}}class Fe{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const qt=[0,31,59,90,120,151,181,212,243,273,304,334],Zt=[0,31,60,91,121,152,182,213,244,274,305,335];function ce(a,e){return new Fe("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${a}, which is invalid`)}function Ir(a,e,r){const n=new Date(Date.UTC(a,e-1,r));a<100&&a>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const t=n.getUTCDay();return t===0?7:t}function Xt(a,e,r){return r+(ha(a)?Zt:qt)[e-1]}function Qt(a,e){const r=ha(a)?Zt:qt,n=r.findIndex(i=>i<e),t=e-r[n];return{month:n+1,day:t}}function Jr(a,e){return(a-e+7)%7+1}function Wa(a,e=4,r=1){const{year:n,month:t,day:i}=a,o=Xt(n,t,i),u=Jr(Ir(n,t,i),r);let l=Math.floor((o-u+14-e)/7),c;return l<1?(c=n-1,l=ca(c,e,r)):l>ca(n,e,r)?(c=n+1,l=1):c=n,{weekYear:c,weekNumber:l,weekday:u,...ja(a)}}function Cn(a,e=4,r=1){const{weekYear:n,weekNumber:t,weekday:i}=a,o=Jr(Ir(n,1,e),r),u=_e(n);let l=t*7+i-o-7+e,c;l<1?(c=n-1,l+=_e(c)):l>u?(c=n+1,l-=_e(n)):c=n;const{month:d,day:m}=Qt(c,l);return{year:c,month:d,day:m,...ja(a)}}function sr(a){const{year:e,month:r,day:n}=a,t=Xt(e,r,n);return{year:e,ordinal:t,...ja(a)}}function kn(a){const{year:e,ordinal:r}=a,{month:n,day:t}=Qt(e,r);return{year:e,month:n,day:t,...ja(a)}}function An(a,e){if(!w(a.localWeekday)||!w(a.localWeekNumber)||!w(a.localWeekYear)){if(!w(a.weekday)||!w(a.weekNumber)||!w(a.weekYear))throw new Ve("Cannot mix locale-based week fields with ISO-based week fields");return w(a.localWeekday)||(a.weekday=a.localWeekday),w(a.localWeekNumber)||(a.weekNumber=a.localWeekNumber),w(a.localWeekYear)||(a.weekYear=a.localWeekYear),delete a.localWeekday,delete a.localWeekNumber,delete a.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function mh(a,e=4,r=1){const n=Va(a.weekYear),t=de(a.weekNumber,1,ca(a.weekYear,e,r)),i=de(a.weekday,1,7);return n?t?i?!1:ce("weekday",a.weekday):ce("week",a.weekNumber):ce("weekYear",a.weekYear)}function Fh(a){const e=Va(a.year),r=de(a.ordinal,1,_e(a.year));return e?r?!1:ce("ordinal",a.ordinal):ce("year",a.year)}function ei(a){const e=Va(a.year),r=de(a.month,1,12),n=de(a.day,1,Oa(a.year,a.month));return e?r?n?!1:ce("day",a.day):ce("month",a.month):ce("year",a.year)}function ai(a){const{hour:e,minute:r,second:n,millisecond:t}=a,i=de(e,0,23)||e===24&&r===0&&n===0&&t===0,o=de(r,0,59),u=de(n,0,59),l=de(t,0,999);return i?o?u?l?!1:ce("millisecond",t):ce("second",n):ce("minute",r):ce("hour",e)}function w(a){return typeof a>"u"}function Be(a){return typeof a=="number"}function Va(a){return typeof a=="number"&&a%1===0}function ph(a){return typeof a=="string"}function fh(a){return Object.prototype.toString.call(a)==="[object Date]"}function ri(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function ni(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function yh(a){return Array.isArray(a)?a:[a]}function Sn(a,e,r){if(a.length!==0)return a.reduce((n,t)=>{const i=[e(t),t];return n&&r(n[0],i[0])===n[0]?n:i},null)[1]}function gh(a,e){return e.reduce((r,n)=>(r[n]=a[n],r),{})}function $e(a,e){return Object.prototype.hasOwnProperty.call(a,e)}function Mr(a){if(a==null)return null;if(typeof a!="object")throw new ee("Week settings must be an object");if(!de(a.firstDay,1,7)||!de(a.minimalDays,1,7)||!Array.isArray(a.weekend)||a.weekend.some(e=>!de(e,1,7)))throw new ee("Invalid week settings");return{firstDay:a.firstDay,minimalDays:a.minimalDays,weekend:Array.from(a.weekend)}}function de(a,e,r){return Va(a)&&a>=e&&a<=r}function bh(a,e){return a-e*Math.floor(a/e)}function q(a,e=2){const r=a<0;let n;return r?n="-"+(""+-a).padStart(e,"0"):n=(""+a).padStart(e,"0"),n}function Ee(a){if(!(w(a)||a===null||a===""))return parseInt(a,10)}function Le(a){if(!(w(a)||a===null||a===""))return parseFloat(a)}function zr(a){if(!(w(a)||a===null||a==="")){const e=parseFloat("0."+a)*1e3;return Math.floor(e)}}function Kr(a,e,r="round"){const n=10**e;switch(r){case"expand":return a>0?Math.ceil(a*n)/n:Math.floor(a*n)/n;case"trunc":return Math.trunc(a*n)/n;case"round":return Math.round(a*n)/n;case"floor":return Math.floor(a*n)/n;case"ceil":return Math.ceil(a*n)/n;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function ha(a){return a%4===0&&(a%100!==0||a%400===0)}function _e(a){return ha(a)?366:365}function Oa(a,e){const r=bh(e-1,12)+1,n=a+(e-r)/12;return r===2?ha(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Ua(a){let e=Date.UTC(a.year,a.month-1,a.day,a.hour,a.minute,a.second,a.millisecond);return a.year<100&&a.year>=0&&(e=new Date(e),e.setUTCFullYear(a.year,a.month-1,a.day)),+e}function vn(a,e,r){return-Jr(Ir(a,1,e),r)+e-1}function ca(a,e=4,r=1){const n=vn(a,e,r),t=vn(a+1,e,r);return(_e(a)-n+t)/7}function Lr(a){return a>99?a:a>_.twoDigitCutoffYear?1900+a:2e3+a}function ti(a,e,r,n=null){const t=new Date(a),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(i.timeZone=n);const o={timeZoneName:e,...i},u=new Intl.DateTimeFormat(r,o).formatToParts(t).find(l=>l.type.toLowerCase()==="timezonename");return u?u.value:null}function _a(a,e){let r=parseInt(a,10);Number.isNaN(r)&&(r=0);const n=parseInt(e,10)||0,t=r<0||Object.is(r,-0)?-n:n;return r*60+t}function ii(a){const e=Number(a);if(typeof a=="boolean"||a===""||!Number.isFinite(e))throw new ee(`Invalid unit value ${a}`);return e}function Ia(a,e){const r={};for(const n in a)if($e(a,n)){const t=a[n];if(t==null)continue;r[e(n)]=ii(t)}return r}function la(a,e){const r=Math.trunc(Math.abs(a/60)),n=Math.trunc(Math.abs(a%60)),t=a>=0?"+":"-";switch(e){case"short":return`${t}${q(r,2)}:${q(n,2)}`;case"narrow":return`${t}${r}${n>0?`:${n}`:""}`;case"techie":return`${t}${q(r,2)}${q(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ja(a){return gh(a,["hour","minute","second","millisecond"])}const Ch=["January","February","March","April","May","June","July","August","September","October","November","December"],oi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],kh=["J","F","M","A","M","J","J","A","S","O","N","D"];function si(a){switch(a){case"narrow":return[...kh];case"short":return[...oi];case"long":return[...Ch];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ui=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],li=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ah=["M","T","W","T","F","S","S"];function ci(a){switch(a){case"narrow":return[...Ah];case"short":return[...li];case"long":return[...ui];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const di=["AM","PM"],Sh=["Before Christ","Anno Domini"],vh=["BC","AD"],Dh=["B","A"];function hi(a){switch(a){case"narrow":return[...Dh];case"short":return[...vh];case"long":return[...Sh];default:return null}}function Eh(a){return di[a.hour<12?0:1]}function wh(a,e){return ci(e)[a.weekday-1]}function Bh(a,e){return si(e)[a.month-1]}function Th(a,e){return hi(e)[a.year<0?0:1]}function Mh(a,e,r="always",n=!1){const t={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(a)===-1;if(r==="auto"&&i){const m=a==="days";switch(e){case 1:return m?"tomorrow":`next ${t[a][0]}`;case-1:return m?"yesterday":`last ${t[a][0]}`;case 0:return m?"today":`this ${t[a][0]}`}}const o=Object.is(e,-0)||e<0,u=Math.abs(e),l=u===1,c=t[a],d=n?l?c[1]:c[2]||c[1]:l?t[a][0]:a;return o?`${u} ${d} ago`:`in ${u} ${d}`}function Dn(a,e){let r="";for(const n of a)n.literal?r+=n.val:r+=e(n.val);return r}const Lh={D:Ga,DD:Tt,DDD:Mt,DDDD:Lt,t:Rt,tt:Pt,ttt:Nt,tttt:xt,T:Ht,TT:Gt,TTT:Wt,TTTT:Ot,f:It,ff:zt,fff:Vt,ffff:_t,F:Jt,FF:Kt,FFF:Ut,FFFF:jt};class ae{static create(e,r={}){return new ae(e,r)}static parseFormat(e){let r=null,n="",t=!1;const i=[];for(let o=0;o<e.length;o++){const u=e.charAt(o);u==="'"?((n.length>0||t)&&i.push({literal:t||/^\s+$/.test(n),val:n===""?"'":n}),r=null,n="",t=!t):t||u===r?n+=u:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=u,r=u)}return n.length>0&&i.push({literal:t||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return Lh[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0,n=void 0){if(this.opts.forceSimple)return q(e,r);const t={...this.opts};return r>0&&(t.padTo=r),n&&(t.signDisplay=n),this.loc.numberFormatter(t).format(e)}formatDateTimeFromString(e,r){const n=this.loc.listingMode()==="en",t=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(y,h)=>this.loc.extract(e,y,h),o=y=>e.isOffsetFixed&&e.offset===0&&y.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,y.format):"",u=()=>n?Eh(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(y,h)=>n?Bh(e,y):i(h?{month:y}:{month:y,day:"numeric"},"month"),c=(y,h)=>n?wh(e,y):i(h?{weekday:y}:{weekday:y,month:"long",day:"numeric"},"weekday"),d=y=>{const h=ae.macroTokenToFormatOpts(y);return h?this.formatWithSystemDefault(e,h):y},m=y=>n?Th(e,y):i({era:y},"era"),g=y=>{switch(y){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return u();case"d":return t?i({day:"numeric"},"day"):this.num(e.day);case"dd":return t?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return t?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return t?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return t?i({month:"numeric"},"month"):this.num(e.month);case"MM":return t?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return t?i({year:"numeric"},"year"):this.num(e.year);case"yy":return t?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return t?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return t?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(y)}};return Dn(ae.parseFormat(r),g)}formatDurationFromString(e,r){const n=this.opts.signMode==="negativeLargestOnly"?-1:1,t=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(d,m)=>g=>{const y=t(g);if(y){const h=m.isNegativeDuration&&y!==m.largestUnit?n:1;let f;return this.opts.signMode==="negativeLargestOnly"&&y!==m.largestUnit?f="never":this.opts.signMode==="all"?f="always":f="auto",this.num(d.get(y)*h,g.length,f)}else return g},o=ae.parseFormat(r),u=o.reduce((d,{literal:m,val:g})=>m?d:d.concat(g),[]),l=e.shiftTo(...u.map(t).filter(d=>d)),c={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return Dn(o,i(l,c))}}const mi=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function qe(...a){const e=a.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function Ze(...a){return e=>a.reduce(([r,n,t],i)=>{const[o,u,l]=i(e,t);return[{...r,...o},u||n,l]},[{},null,1]).slice(0,2)}function Xe(a,...e){if(a==null)return[null,null];for(const[r,n]of e){const t=r.exec(a);if(t)return n(t)}return[null,null]}function Fi(...a){return(e,r)=>{const n={};let t;for(t=0;t<a.length;t++)n[a[t]]=Ee(e[r+t]);return[n,null,r+t]}}const pi=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Rh=`(?:${pi.source}?(?:\\[(${mi.source})\\])?)?`,Vr=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,fi=RegExp(`${Vr.source}${Rh}`),Ur=RegExp(`(?:[Tt]${fi.source})?`),Ph=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Nh=/(\d{4})-?W(\d\d)(?:-?(\d))?/,xh=/(\d{4})-?(\d{3})/,Hh=Fi("weekYear","weekNumber","weekDay"),Gh=Fi("year","ordinal"),Wh=/(\d{4})-(\d\d)-(\d\d)/,yi=RegExp(`${Vr.source} ?(?:${pi.source}|(${mi.source}))?`),Oh=RegExp(`(?: ${yi.source})?`);function je(a,e,r){const n=a[e];return w(n)?r:Ee(n)}function Ih(a,e){return[{year:je(a,e),month:je(a,e+1,1),day:je(a,e+2,1)},null,e+3]}function Qe(a,e){return[{hours:je(a,e,0),minutes:je(a,e+1,0),seconds:je(a,e+2,0),milliseconds:zr(a[e+3])},null,e+4]}function ma(a,e){const r=!a[e]&&!a[e+1],n=_a(a[e+1],a[e+2]),t=r?null:ne.instance(n);return[{},t,e+3]}function Fa(a,e){const r=a[e]?Se.create(a[e]):null;return[{},r,e+1]}const Jh=RegExp(`^T?${Vr.source}$`),zh=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Kh(a){const[e,r,n,t,i,o,u,l,c]=a,d=e[0]==="-",m=l&&l[0]==="-",g=(y,h=!1)=>y!==void 0&&(h||y&&d)?-y:y;return[{years:g(Le(r)),months:g(Le(n)),weeks:g(Le(t)),days:g(Le(i)),hours:g(Le(o)),minutes:g(Le(u)),seconds:g(Le(l),l==="-0"),milliseconds:g(zr(c),m)}]}const Vh={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _r(a,e,r,n,t,i,o){const u={year:e.length===2?Lr(Ee(e)):Ee(e),month:oi.indexOf(r)+1,day:Ee(n),hour:Ee(t),minute:Ee(i)};return o&&(u.second=Ee(o)),a&&(u.weekday=a.length>3?ui.indexOf(a)+1:li.indexOf(a)+1),u}const Uh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function _h(a){const[,e,r,n,t,i,o,u,l,c,d,m]=a,g=_r(e,t,n,r,i,o,u);let y;return l?y=Vh[l]:c?y=0:y=_a(d,m),[g,new ne(y)]}function jh(a){return a.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const $h=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Yh=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,qh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function En(a){const[,e,r,n,t,i,o,u]=a;return[_r(e,t,n,r,i,o,u),ne.utcInstance]}function Zh(a){const[,e,r,n,t,i,o,u]=a;return[_r(e,u,r,n,t,i,o),ne.utcInstance]}const Xh=qe(Ph,Ur),Qh=qe(Nh,Ur),em=qe(xh,Ur),am=qe(fi),gi=Ze(Ih,Qe,ma,Fa),rm=Ze(Hh,Qe,ma,Fa),nm=Ze(Gh,Qe,ma,Fa),tm=Ze(Qe,ma,Fa);function im(a){return Xe(a,[Xh,gi],[Qh,rm],[em,nm],[am,tm])}function om(a){return Xe(jh(a),[Uh,_h])}function sm(a){return Xe(a,[$h,En],[Yh,En],[qh,Zh])}function um(a){return Xe(a,[zh,Kh])}const lm=Ze(Qe);function cm(a){return Xe(a,[Jh,lm])}const dm=qe(Wh,Oh),hm=qe(yi),mm=Ze(Qe,ma,Fa);function Fm(a){return Xe(a,[dm,gi],[hm,mm])}const wn="Invalid Duration",bi={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},pm={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...bi},le=146097/400,Je=146097/4800,fm={years:{quarters:4,months:12,weeks:le/7,days:le,hours:le*24,minutes:le*24*60,seconds:le*24*60*60,milliseconds:le*24*60*60*1e3},quarters:{months:3,weeks:le/28,days:le/4,hours:le*24/4,minutes:le*24*60/4,seconds:le*24*60*60/4,milliseconds:le*24*60*60*1e3/4},months:{weeks:Je/7,days:Je,hours:Je*24,minutes:Je*24*60,seconds:Je*24*60*60,milliseconds:Je*24*60*60*1e3},...bi},Pe=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ym=Pe.slice(0).reverse();function ke(a,e,r=!1){const n={values:r?e.values:{...a.values,...e.values||{}},loc:a.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||a.conversionAccuracy,matrix:e.matrix||a.matrix};return new N(n)}function Ci(a,e){let r=e.milliseconds??0;for(const n of ym.slice(1))e[n]&&(r+=e[n]*a[n].milliseconds);return r}function Bn(a,e){const r=Ci(a,e)<0?-1:1;Pe.reduceRight((n,t)=>{if(w(e[t]))return n;if(n){const i=e[n]*r,o=a[t][n],u=Math.floor(i/o);e[t]+=u*r,e[n]-=u*o*r}return t},null),Pe.reduce((n,t)=>{if(w(e[t]))return n;if(n){const i=e[n]%1;e[n]-=i,e[t]+=i*a[n][t]}return t},null)}function Tn(a){const e={};for(const[r,n]of Object.entries(a))n!==0&&(e[r]=n);return e}class N{constructor(e){const r=e.conversionAccuracy==="longterm"||!1;let n=r?fm:pm;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||G.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return N.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new ee(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new N({values:Ia(e,N.normalizeUnit),loc:G.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Be(e))return N.fromMillis(e);if(N.isDuration(e))return e;if(typeof e=="object")return N.fromObject(e);throw new ee(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){const[n]=um(e);return n?N.fromObject(n,r):N.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){const[n]=cm(e);return n?N.fromObject(n,r):N.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new ee("need to specify a reason the Duration is invalid");const n=e instanceof Fe?e:new Fe(e,r);if(_.throwOnInvalid)throw new Kd(n);return new N({invalid:n})}static normalizeUnit(e){const r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new Bt(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){const n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?ae.create(this.loc,n).formatDurationFromString(this,e):wn}toHuman(e={}){if(!this.isValid)return wn;const r=e.showZeros!==!1,n=Pe.map(t=>{const i=this.values[t];return w(i)||i===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(i)}).filter(t=>t);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Kr(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},T.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Ci(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e),n={};for(const t of Pe)($e(r.values,t)||$e(this.values,t))&&(n[t]=r.get(t)+this.get(t));return ke(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;const r={};for(const n of Object.keys(this.values))r[n]=ii(e(this.values[n],n));return ke(this,{values:r},!0)}get(e){return this[N.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const r={...this.values,...Ia(e,N.normalizeUnit)};return ke(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:t}={}){const o={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:t,conversionAccuracy:n};return ke(this,o)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Bn(this.matrix,e),ke(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Tn(this.normalize().shiftToAll().toObject());return ke(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(o=>N.normalizeUnit(o));const r={},n={},t=this.toObject();let i;for(const o of Pe)if(e.indexOf(o)>=0){i=o;let u=0;for(const c in n)u+=this.matrix[c][o]*n[c],n[c]=0;Be(t[o])&&(u+=t[o]);const l=Math.trunc(u);r[o]=l,n[o]=(u*1e3-l*1e3)/1e3}else Be(t[o])&&(n[o]=t[o]);for(const o in n)n[o]!==0&&(r[i]+=o===i?n[o]:n[o]/this.matrix[i][o]);return Bn(this.matrix,r),ke(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return ke(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=Tn(this.values);return ke(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,t){return n===void 0||n===0?t===void 0||t===0:n===t}for(const n of Pe)if(!r(this.values[n],e.values[n]))return!1;return!0}}const ze="Invalid Interval";function gm(a,e){return!a||!a.isValid?U.invalid("missing or invalid start"):!e||!e.isValid?U.invalid("missing or invalid end"):e<a?U.invalid("end before start",`The end of an interval must be after its start, but you had start=${a.toISO()} and end=${e.toISO()}`):null}class U{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new ee("need to specify a reason the Interval is invalid");const n=e instanceof Fe?e:new Fe(e,r);if(_.throwOnInvalid)throw new zd(n);return new U({invalid:n})}static fromDateTimes(e,r){const n=na(e),t=na(r),i=gm(n,t);return i??new U({start:n,end:t})}static after(e,r){const n=N.fromDurationLike(r),t=na(e);return U.fromDateTimes(t,t.plus(n))}static before(e,r){const n=N.fromDurationLike(r),t=na(e);return U.fromDateTimes(t.minus(n),t)}static fromISO(e,r){const[n,t]=(e||"").split("/",2);if(n&&t){let i,o;try{i=T.fromISO(n,r),o=i.isValid}catch{o=!1}let u,l;try{u=T.fromISO(t,r),l=u.isValid}catch{l=!1}if(o&&l)return U.fromDateTimes(i,u);if(o){const c=N.fromISO(t,r);if(c.isValid)return U.after(i,c)}else if(l){const c=N.fromISO(n,r);if(c.isValid)return U.before(u,c)}}return U.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;const n=this.start.startOf(e,r);let t;return r!=null&&r.useLocaleWeeks?t=this.end.reconfigure({locale:n.locale}):t=this.end,t=t.startOf(e,r),Math.floor(t.diff(n,e).get(e))+(t.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?U.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];const r=e.map(na).filter(o=>this.contains(o)).sort((o,u)=>o.toMillis()-u.toMillis()),n=[];let{s:t}=this,i=0;for(;t<this.e;){const o=r[i]||this.e,u=+o>+this.e?this.e:o;n.push(U.fromDateTimes(t,u)),t=u,i+=1}return n}splitBy(e){const r=N.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,t=1,i;const o=[];for(;n<this.e;){const u=this.start.plus(r.mapUnits(l=>l*t));i=+u>+this.e?this.e:u,o.push(U.fromDateTimes(n,i)),n=i,t+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:U.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;const r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return U.fromDateTimes(r,n)}static merge(e){const[r,n]=e.sort((t,i)=>t.s-i.s).reduce(([t,i],o)=>i?i.overlaps(o)||i.abutsStart(o)?[t,i.union(o)]:[t.concat([i]),o]:[t,o],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0;const t=[],i=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),o=Array.prototype.concat(...i),u=o.sort((l,c)=>l.time-c.time);for(const l of u)n+=l.type==="s"?1:-1,n===1?r=l.time:(r&&+r!=+l.time&&t.push(U.fromDateTimes(r,l.time)),r=null);return U.merge(t)}difference(...e){return U.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ze}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ga,r={}){return this.isValid?ae.create(this.s.loc.clone(r),e).formatInterval(this):ze}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:ze}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ze}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:ze}toFormat(e,{separator:r=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:ze}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):N.invalid(this.invalidReason)}mapEndpoints(e){return U.fromDateTimes(e(this.s),e(this.e))}}class va{static hasDST(e=_.defaultZone){const r=T.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return Se.isValidZone(e)}static normalizeZone(e){return we(e,_.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||G.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||G.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||G.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:t=null,outputCalendar:i="gregory"}={}){return(t||G.create(r,n,i)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:t=null,outputCalendar:i="gregory"}={}){return(t||G.create(r,n,i)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:t=null}={}){return(t||G.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:t=null}={}){return(t||G.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return G.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return G.create(r,null,"gregory").eras(e)}static features(){return{relative:ri(),localeWeek:ni()}}}function Mn(a,e){const r=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(a);return Math.floor(N.fromMillis(n).as("days"))}function bm(a,e,r){const n=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{const d=Mn(l,c);return(d-d%7)/7}],["days",Mn]],t={},i=a;let o,u;for(const[l,c]of n)r.indexOf(l)>=0&&(o=l,t[l]=c(a,e),u=i.plus(t),u>e?(t[l]--,a=i.plus(t),a>e&&(u=a,t[l]--,a=i.plus(t))):a=u);return[a,t,u,o]}function Cm(a,e,r,n){let[t,i,o,u]=bm(a,e,r);const l=e-t,c=r.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);c.length===0&&(o<e&&(o=t.plus({[u]:1})),o!==t&&(i[u]=(i[u]||0)+l/(o-t)));const d=N.fromObject(i,n);return c.length>0?N.fromMillis(l,n).shiftTo(...c).plus(d):d}const km="missing Intl.DateTimeFormat.formatToParts support";function x(a,e=r=>r){return{regex:a,deser:([r])=>e(dh(r))}}const Am=" ",ki=`[ ${Am}]`,Ai=new RegExp(ki,"g");function Sm(a){return a.replace(/\./g,"\\.?").replace(Ai,ki)}function Ln(a){return a.replace(/\./g,"").replace(Ai," ").toLowerCase()}function me(a,e){return a===null?null:{regex:RegExp(a.map(Sm).join("|")),deser:([r])=>a.findIndex(n=>Ln(r)===Ln(n))+e}}function Rn(a,e){return{regex:a,deser:([,r,n])=>_a(r,n),groups:e}}function Da(a){return{regex:a,deser:([e])=>e}}function vm(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Dm(a,e){const r=he(e),n=he(e,"{2}"),t=he(e,"{3}"),i=he(e,"{4}"),o=he(e,"{6}"),u=he(e,"{1,2}"),l=he(e,"{1,3}"),c=he(e,"{1,6}"),d=he(e,"{1,9}"),m=he(e,"{2,4}"),g=he(e,"{4,6}"),y=p=>({regex:RegExp(vm(p.val)),deser:([b])=>b,literal:!0}),f=(p=>{if(a.literal)return y(p);switch(p.val){case"G":return me(e.eras("short"),0);case"GG":return me(e.eras("long"),0);case"y":return x(c);case"yy":return x(m,Lr);case"yyyy":return x(i);case"yyyyy":return x(g);case"yyyyyy":return x(o);case"M":return x(u);case"MM":return x(n);case"MMM":return me(e.months("short",!0),1);case"MMMM":return me(e.months("long",!0),1);case"L":return x(u);case"LL":return x(n);case"LLL":return me(e.months("short",!1),1);case"LLLL":return me(e.months("long",!1),1);case"d":return x(u);case"dd":return x(n);case"o":return x(l);case"ooo":return x(t);case"HH":return x(n);case"H":return x(u);case"hh":return x(n);case"h":return x(u);case"mm":return x(n);case"m":return x(u);case"q":return x(u);case"qq":return x(n);case"s":return x(u);case"ss":return x(n);case"S":return x(l);case"SSS":return x(t);case"u":return Da(d);case"uu":return Da(u);case"uuu":return x(r);case"a":return me(e.meridiems(),0);case"kkkk":return x(i);case"kk":return x(m,Lr);case"W":return x(u);case"WW":return x(n);case"E":case"c":return x(r);case"EEE":return me(e.weekdays("short",!1),1);case"EEEE":return me(e.weekdays("long",!1),1);case"ccc":return me(e.weekdays("short",!0),1);case"cccc":return me(e.weekdays("long",!0),1);case"Z":case"ZZ":return Rn(new RegExp(`([+-]${u.source})(?::(${n.source}))?`),2);case"ZZZ":return Rn(new RegExp(`([+-]${u.source})(${n.source})?`),2);case"z":return Da(/[a-z_+-/]{1,256}?/i);case" ":return Da(/[^\S\n\r]/);default:return y(p)}})(a)||{invalidReason:km};return f.token=a,f}const Em={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function wm(a,e,r){const{type:n,value:t}=a;if(n==="literal"){const l=/^\s+$/.test(t);return{literal:!l,val:l?" ":t}}const i=e[n];let o=n;n==="hour"&&(e.hour12!=null?o=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?o="hour12":o="hour24":o=r.hour12?"hour12":"hour24");let u=Em[o];if(typeof u=="object"&&(u=u[i]),u)return{literal:!1,val:u}}function Bm(a){return[`^${a.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,a]}function Tm(a,e,r){const n=a.match(e);if(n){const t={};let i=1;for(const o in r)if($e(r,o)){const u=r[o],l=u.groups?u.groups+1:1;!u.literal&&u.token&&(t[u.token.val[0]]=u.deser(n.slice(i,i+l))),i+=l}return[n,t]}else return[n,{}]}function Mm(a){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let r=null,n;return w(a.z)||(r=Se.create(a.z)),w(a.Z)||(r||(r=new ne(a.Z)),n=a.Z),w(a.q)||(a.M=(a.q-1)*3+1),w(a.h)||(a.h<12&&a.a===1?a.h+=12:a.h===12&&a.a===0&&(a.h=0)),a.G===0&&a.y&&(a.y=-a.y),w(a.u)||(a.S=zr(a.u)),[Object.keys(a).reduce((i,o)=>{const u=e(o);return u&&(i[u]=a[o]),i},{}),r,n]}let ur=null;function Lm(){return ur||(ur=T.fromMillis(1555555555555)),ur}function Rm(a,e){if(a.literal)return a;const r=ae.macroTokenToFormatOpts(a.val),n=Ei(r,e);return n==null||n.includes(void 0)?a:n}function Si(a,e){return Array.prototype.concat(...a.map(r=>Rm(r,e)))}class vi{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=Si(ae.parseFormat(r),e),this.units=this.tokens.map(n=>Dm(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){const[n,t]=Bm(this.units);this.regex=RegExp(n,"i"),this.handlers=t}}explainFromTokens(e){if(this.isValid){const[r,n]=Tm(e,this.regex,this.handlers),[t,i,o]=n?Mm(n):[null,null,void 0];if($e(n,"a")&&$e(n,"H"))throw new Ve("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:t,zone:i,specificOffset:o}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Di(a,e,r){return new vi(a,r).explainFromTokens(e)}function Pm(a,e,r){const{result:n,zone:t,specificOffset:i,invalidReason:o}=Di(a,e,r);return[n,t,i,o]}function Ei(a,e){if(!a)return null;const n=ae.create(e,a).dtFormatter(Lm()),t=n.formatToParts(),i=n.resolvedOptions();return t.map(o=>wm(o,a,i))}const lr="Invalid DateTime",Pn=864e13;function sa(a){return new Fe("unsupported zone",`the zone "${a.name}" is not supported`)}function cr(a){return a.weekData===null&&(a.weekData=Wa(a.c)),a.weekData}function dr(a){return a.localWeekData===null&&(a.localWeekData=Wa(a.c,a.loc.getMinDaysInFirstWeek(),a.loc.getStartOfWeek())),a.localWeekData}function Re(a,e){const r={ts:a.ts,zone:a.zone,c:a.c,o:a.o,loc:a.loc,invalid:a.invalid};return new T({...r,...e,old:r})}function wi(a,e,r){let n=a-e*60*1e3;const t=r.offset(n);if(e===t)return[n,e];n-=(t-e)*60*1e3;const i=r.offset(n);return t===i?[n,t]:[a-Math.min(t,i)*60*1e3,Math.max(t,i)]}function Ea(a,e){a+=e*60*1e3;const r=new Date(a);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Ta(a,e,r){return wi(Ua(a),e,r)}function Nn(a,e){const r=a.o,n=a.c.year+Math.trunc(e.years),t=a.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...a.c,year:n,month:t,day:Math.min(a.c.day,Oa(n,t))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},o=N.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),u=Ua(i);let[l,c]=wi(u,r,a.zone);return o!==0&&(l+=o,c=a.zone.offset(l)),{ts:l,o:c}}function Ke(a,e,r,n,t,i){const{setZone:o,zone:u}=r;if(a&&Object.keys(a).length!==0||e){const l=e||u,c=T.fromObject(a,{...r,zone:l,specificOffset:i});return o?c:c.setZone(u)}else return T.invalid(new Fe("unparsable",`the input "${t}" can't be parsed as ${n}`))}function wa(a,e,r=!0){return a.isValid?ae.create(G.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(a,e):null}function hr(a,e,r){const n=a.c.year>9999||a.c.year<0;let t="";if(n&&a.c.year>=0&&(t+="+"),t+=q(a.c.year,n?6:4),r==="year")return t;if(e){if(t+="-",t+=q(a.c.month),r==="month")return t;t+="-"}else if(t+=q(a.c.month),r==="month")return t;return t+=q(a.c.day),t}function xn(a,e,r,n,t,i,o){let u=!r||a.c.millisecond!==0||a.c.second!==0,l="";switch(o){case"day":case"month":case"year":break;default:if(l+=q(a.c.hour),o==="hour")break;if(e){if(l+=":",l+=q(a.c.minute),o==="minute")break;u&&(l+=":",l+=q(a.c.second))}else{if(l+=q(a.c.minute),o==="minute")break;u&&(l+=q(a.c.second))}if(o==="second")break;u&&(!n||a.c.millisecond!==0)&&(l+=".",l+=q(a.c.millisecond,3))}return t&&(a.isOffsetFixed&&a.offset===0&&!i?l+="Z":a.o<0?(l+="-",l+=q(Math.trunc(-a.o/60)),l+=":",l+=q(Math.trunc(-a.o%60))):(l+="+",l+=q(Math.trunc(a.o/60)),l+=":",l+=q(Math.trunc(a.o%60)))),i&&(l+="["+a.zone.ianaName+"]"),l}const Bi={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Nm={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},xm={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ma=["year","month","day","hour","minute","second","millisecond"],Hm=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Gm=["year","ordinal","hour","minute","second","millisecond"];function La(a){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[a.toLowerCase()];if(!e)throw new Bt(a);return e}function Hn(a){switch(a.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return La(a)}}function Wm(a){if(ua===void 0&&(ua=_.now()),a.type!=="iana")return a.offset(ua);const e=a.name;let r=Rr.get(e);return r===void 0&&(r=a.offset(ua),Rr.set(e,r)),r}function Gn(a,e){const r=we(e.zone,_.defaultZone);if(!r.isValid)return T.invalid(sa(r));const n=G.fromObject(e);let t,i;if(w(a.year))t=_.now();else{for(const l of Ma)w(a[l])&&(a[l]=Bi[l]);const o=ei(a)||ai(a);if(o)return T.invalid(o);const u=Wm(r);[t,i]=Ta(a,u,r)}return new T({ts:t,zone:r,loc:n,o:i})}function Wn(a,e,r){const n=w(r.round)?!0:r.round,t=w(r.rounding)?"trunc":r.rounding,i=(u,l)=>(u=Kr(u,n||r.calendary?0:2,r.calendary?"round":t),e.loc.clone(r).relFormatter(r).format(u,l)),o=u=>r.calendary?e.hasSame(a,u)?0:e.startOf(u).diff(a.startOf(u),u).get(u):e.diff(a,u).get(u);if(r.unit)return i(o(r.unit),r.unit);for(const u of r.units){const l=o(u);if(Math.abs(l)>=1)return i(l,u)}return i(a>e?-0:0,r.units[r.units.length-1])}function On(a){let e={},r;return a.length>0&&typeof a[a.length-1]=="object"?(e=a[a.length-1],r=Array.from(a).slice(0,a.length-1)):r=Array.from(a),[e,r]}let ua;const Rr=new Map;class T{constructor(e){const r=e.zone||_.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new Fe("invalid input"):null)||(r.isValid?null:sa(r));this.ts=w(e.ts)?_.now():e.ts;let t=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[t,i]=[e.old.c,e.old.o];else{const u=Be(e.o)&&!e.old?e.o:r.offset(this.ts);t=Ea(this.ts,u),n=Number.isNaN(t.year)?new Fe("invalid input"):null,t=n?null:t,i=n?null:u}this._zone=r,this.loc=e.loc||G.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=t,this.o=i,this.isLuxonDateTime=!0}static now(){return new T({})}static local(){const[e,r]=On(arguments),[n,t,i,o,u,l,c]=r;return Gn({year:n,month:t,day:i,hour:o,minute:u,second:l,millisecond:c},e)}static utc(){const[e,r]=On(arguments),[n,t,i,o,u,l,c]=r;return e.zone=ne.utcInstance,Gn({year:n,month:t,day:i,hour:o,minute:u,second:l,millisecond:c},e)}static fromJSDate(e,r={}){const n=fh(e)?e.valueOf():NaN;if(Number.isNaN(n))return T.invalid("invalid input");const t=we(r.zone,_.defaultZone);return t.isValid?new T({ts:n,zone:t,loc:G.fromObject(r)}):T.invalid(sa(t))}static fromMillis(e,r={}){if(Be(e))return e<-Pn||e>Pn?T.invalid("Timestamp out of range"):new T({ts:e,zone:we(r.zone,_.defaultZone),loc:G.fromObject(r)});throw new ee(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Be(e))return new T({ts:e*1e3,zone:we(r.zone,_.defaultZone),loc:G.fromObject(r)});throw new ee("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};const n=we(r.zone,_.defaultZone);if(!n.isValid)return T.invalid(sa(n));const t=G.fromObject(r),i=Ia(e,Hn),{minDaysInFirstWeek:o,startOfWeek:u}=An(i,t),l=_.now(),c=w(r.specificOffset)?n.offset(l):r.specificOffset,d=!w(i.ordinal),m=!w(i.year),g=!w(i.month)||!w(i.day),y=m||g,h=i.weekYear||i.weekNumber;if((y||d)&&h)throw new Ve("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(g&&d)throw new Ve("Can't mix ordinal dates with month/day");const f=h||i.weekday&&!y;let p,b,D=Ea(l,c);f?(p=Hm,b=Nm,D=Wa(D,o,u)):d?(p=Gm,b=xm,D=sr(D)):(p=Ma,b=Bi);let v=!1;for(const X of p){const R=i[X];w(R)?v?i[X]=b[X]:i[X]=D[X]:v=!0}const k=f?mh(i,o,u):d?Fh(i):ei(i),A=k||ai(i);if(A)return T.invalid(A);const B=f?Cn(i,o,u):d?kn(i):i,[J,Z]=Ta(B,c,n),W=new T({ts:J,zone:n,o:Z,loc:t});return i.weekday&&y&&e.weekday!==W.weekday?T.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${W.toISO()}`):W.isValid?W:T.invalid(W.invalid)}static fromISO(e,r={}){const[n,t]=im(e);return Ke(n,t,r,"ISO 8601",e)}static fromRFC2822(e,r={}){const[n,t]=om(e);return Ke(n,t,r,"RFC 2822",e)}static fromHTTP(e,r={}){const[n,t]=sm(e);return Ke(n,t,r,"HTTP",r)}static fromFormat(e,r,n={}){if(w(e)||w(r))throw new ee("fromFormat requires an input string and a format");const{locale:t=null,numberingSystem:i=null}=n,o=G.fromOpts({locale:t,numberingSystem:i,defaultToEN:!0}),[u,l,c,d]=Pm(o,e,r);return d?T.invalid(d):Ke(u,l,n,`format ${r}`,e,c)}static fromString(e,r,n={}){return T.fromFormat(e,r,n)}static fromSQL(e,r={}){const[n,t]=Fm(e);return Ke(n,t,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new ee("need to specify a reason the DateTime is invalid");const n=e instanceof Fe?e:new Fe(e,r);if(_.throwOnInvalid)throw new Jd(n);return new T({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){const n=Ei(e,G.fromObject(r));return n?n.map(t=>t?t.val:null).join(""):null}static expandFormat(e,r={}){return Si(ae.parseFormat(e),G.fromObject(r)).map(t=>t.val).join("")}static resetCache(){ua=void 0,Rr.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?cr(this).weekYear:NaN}get weekNumber(){return this.isValid?cr(this).weekNumber:NaN}get weekday(){return this.isValid?cr(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?dr(this).weekday:NaN}get localWeekNumber(){return this.isValid?dr(this).weekNumber:NaN}get localWeekYear(){return this.isValid?dr(this).weekYear:NaN}get ordinal(){return this.isValid?sr(this.c).ordinal:NaN}get monthShort(){return this.isValid?va.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?va.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?va.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?va.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,r=6e4,n=Ua(this.c),t=this.zone.offset(n-e),i=this.zone.offset(n+e),o=this.zone.offset(n-t*r),u=this.zone.offset(n-i*r);if(o===u)return[this];const l=n-o*r,c=n-u*r,d=Ea(l,o),m=Ea(c,u);return d.hour===m.hour&&d.minute===m.minute&&d.second===m.second&&d.millisecond===m.millisecond?[Re(this,{ts:l}),Re(this,{ts:c})]:[this]}get isInLeapYear(){return ha(this.year)}get daysInMonth(){return Oa(this.year,this.month)}get daysInYear(){return this.isValid?_e(this.year):NaN}get weeksInWeekYear(){return this.isValid?ca(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ca(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:r,numberingSystem:n,calendar:t}=ae.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:t}}toUTC(e=0,r={}){return this.setZone(ne.instance(e),r)}toLocal(){return this.setZone(_.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=we(e,_.defaultZone),e.equals(this.zone))return this;if(e.isValid){let t=this.ts;if(r||n){const i=e.offset(this.ts),o=this.toObject();[t]=Ta(o,i,e)}return Re(this,{ts:t,zone:e})}else return T.invalid(sa(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){const t=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return Re(this,{loc:t})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const r=Ia(e,Hn),{minDaysInFirstWeek:n,startOfWeek:t}=An(r,this.loc),i=!w(r.weekYear)||!w(r.weekNumber)||!w(r.weekday),o=!w(r.ordinal),u=!w(r.year),l=!w(r.month)||!w(r.day),c=u||l,d=r.weekYear||r.weekNumber;if((c||o)&&d)throw new Ve("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new Ve("Can't mix ordinal dates with month/day");let m;i?m=Cn({...Wa(this.c,n,t),...r},n,t):w(r.ordinal)?(m={...this.toObject(),...r},w(r.day)&&(m.day=Math.min(Oa(m.year,m.month),m.day))):m=kn({...sr(this.c),...r});const[g,y]=Ta(m,this.o,this.zone);return Re(this,{ts:g,o:y})}plus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e);return Re(this,Nn(this,r))}minus(e){if(!this.isValid)return this;const r=N.fromDurationLike(e).negate();return Re(this,Nn(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;const n={},t=N.normalizeUnit(e);switch(t){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(t==="weeks")if(r){const i=this.loc.getStartOfWeek(),{weekday:o}=this;o<i&&(n.weekNumber=this.weekNumber-1),n.weekday=i}else n.weekday=1;if(t==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?ae.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):lr}toLocaleString(e=Ga,r={}){return this.isValid?ae.create(this.loc.clone(r),e).formatDateTime(this):lr}toLocaleParts(e={}){return this.isValid?ae.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:t=!0,extendedZone:i=!1,precision:o="milliseconds"}={}){if(!this.isValid)return null;o=La(o);const u=e==="extended";let l=hr(this,u,o);return Ma.indexOf(o)>=3&&(l+="T"),l+=xn(this,u,r,n,t,i,o),l}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?hr(this,e==="extended",La(r)):null}toISOWeekDate(){return wa(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:t=!1,extendedZone:i=!1,format:o="extended",precision:u="milliseconds"}={}){return this.isValid?(u=La(u),(t&&Ma.indexOf(u)>=3?"T":"")+xn(this,o==="extended",r,e,n,i,u)):null}toRFC2822(){return wa(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return wa(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?hr(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let t="HH:mm:ss.SSS";return(r||e)&&(n&&(t+=" "),r?t+="z":e&&(t+="ZZ")),wa(this,t,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():lr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return N.invalid("created by diffing an invalid DateTime");const t={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=yh(r).map(N.normalizeUnit),o=e.valueOf()>this.valueOf(),u=o?this:e,l=o?e:this,c=Cm(u,l,i,t);return o?c.negate():c}diffNow(e="milliseconds",r={}){return this.diff(T.now(),e,r)}until(e){return this.isValid?U.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;const t=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(r,n)<=t&&t<=i.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const r=e.base||T.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0;let t=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(t=e.unit,i=void 0),Wn(r,this.plus(n),{...e,numeric:"always",units:t,unit:i})}toRelativeCalendar(e={}){return this.isValid?Wn(e.base||T.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(T.isDateTime))throw new ee("min requires all arguments be DateTimes");return Sn(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(T.isDateTime))throw new ee("max requires all arguments be DateTimes");return Sn(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){const{locale:t=null,numberingSystem:i=null}=n,o=G.fromOpts({locale:t,numberingSystem:i,defaultToEN:!0});return Di(o,e,r)}static fromStringExplain(e,r,n={}){return T.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){const{locale:n=null,numberingSystem:t=null}=r,i=G.fromOpts({locale:n,numberingSystem:t,defaultToEN:!0});return new vi(i,e)}static fromFormatParser(e,r,n={}){if(w(e)||w(r))throw new ee("fromFormatParser requires an input string and a format parser");const{locale:t=null,numberingSystem:i=null}=n,o=G.fromOpts({locale:t,numberingSystem:i,defaultToEN:!0});if(!o.equals(r.locale))throw new ee(`fromFormatParser called with a locale of ${o}, but the format parser was created for ${r.locale}`);const{result:u,zone:l,specificOffset:c,invalidReason:d}=r.explainFromTokens(e);return d?T.invalid(d):Ke(u,l,n,`format ${r.format}`,e,c)}static get DATE_SHORT(){return Ga}static get DATE_MED(){return Tt}static get DATE_MED_WITH_WEEKDAY(){return Vd}static get DATE_FULL(){return Mt}static get DATE_HUGE(){return Lt}static get TIME_SIMPLE(){return Rt}static get TIME_WITH_SECONDS(){return Pt}static get TIME_WITH_SHORT_OFFSET(){return Nt}static get TIME_WITH_LONG_OFFSET(){return xt}static get TIME_24_SIMPLE(){return Ht}static get TIME_24_WITH_SECONDS(){return Gt}static get TIME_24_WITH_SHORT_OFFSET(){return Wt}static get TIME_24_WITH_LONG_OFFSET(){return Ot}static get DATETIME_SHORT(){return It}static get DATETIME_SHORT_WITH_SECONDS(){return Jt}static get DATETIME_MED(){return zt}static get DATETIME_MED_WITH_SECONDS(){return Kt}static get DATETIME_MED_WITH_WEEKDAY(){return Ud}static get DATETIME_FULL(){return Vt}static get DATETIME_FULL_WITH_SECONDS(){return Ut}static get DATETIME_HUGE(){return _t}static get DATETIME_HUGE_WITH_SECONDS(){return jt}}function na(a){if(T.isDateTime(a))return a;if(a&&a.valueOf&&Be(a.valueOf()))return T.fromJSDate(a);if(a&&typeof a=="object")return T.fromObject(a);throw new ee(`Unknown datetime argument: ${a}, of type ${typeof a}`)}class He{constructor(e){S(this,"id");S(this,"cpf");S(this,"cpf_responsible");S(this,"cns");S(this,"name");S(this,"birth_date");S(this,"identification_document");S(this,"pregnant");S(this,"mother_name");S(this,"cellphone");S(this,"phone");S(this,"email");S(this,"issuing_agency");S(this,"_gender",Dt()[0]);S(this,"_race");S(this,"_address",null);S(this,"asFormData",()=>{var e;return{cpf:this.cpf,cpf_responsible:this.cpf_responsible,cns:this.cns,name:this.name,gender:this._gender,birth_date:this.birth_date,identification_document:this.identification_document,mother_name:this.mother_name,pregnant:this.pregnant,phone:this.phone,cellphone:this.cellphone,email:this.email,issuing_agency:this.issuing_agency,race:this.race,...(e=this.address)==null?void 0:e.asFormData}});S(this,"asRequestPayload",()=>{var e,r;return{id:this.id,cpf:Q.removeCpfMask(this.cpf),cpf_responsible:Q.removeCpfMask(this.cpf_responsible),cns:Q.removeCnsMask(this.cns),name:this.name,gender:(e=this._gender)==null?void 0:e.value,birth_date:this.birth_date,identification_document:this.identification_document,mother_name:this.mother_name,pregnant:this.pregnant,address:((r=this.address)==null?void 0:r.asRequestPayload)||{},phone:Q.removePhoneMask(this.phone),email:this.email,cellphone:Q.removePhoneMask(this.cellphone),issuing_agency:this.issuing_agency,...this.race&&{race:this.race.value}}});this.id=e.id,this.cpf=e.cpf,this.cpf_responsible=e.cpf_responsible,this.cns=e.cns,this.name=e.name,this.gender=e.gender,this.race=e.race,this.birth_date=e.birth_date,this.identification_document=e.identification_document,this.mother_name=e.mother_name,this.pregnant=e.pregnant,this.phone=e.phone,this.cellphone=e.cellphone,this.email=e.email,this.issuing_agency=e.issuing_agency,this.address=e.address??{city:e.city,uf:e.uf,street:e.street,neighborhood:e.neighborhood,number:e.number,complement:e.complement}}set race(e){if(e){if(typeof e=="string"){this._race=Id(e);return}this._race=e}}set gender(e){if(typeof e=="string"){this._gender=Nd(e);return}this._gender=e}set address(e){this._address=new xd(e)}get address(){return this._address}get city(){var e;return(e=this._address)==null?void 0:e.city}get uf(){var e;return(e=this._address)==null?void 0:e.uf}get street(){var e;return(e=this._address)==null?void 0:e.street}get neighborhood(){var e;return(e=this._address)==null?void 0:e.neighborhood}get number(){var e;return(e=this._address)==null?void 0:e.number}get complement(){var e;return(e=this._address)==null?void 0:e.complement}get race(){return this._race}get gender(){return this._gender}getPersonalInfo(e){var n;return[{label:"CPF",value:this.cpf?Q.maskCpf(this.cpf):"Não informado",field:"cpf"},{label:"CNS",value:this.cns?Q.maskCns(this.cns):"Não informado",field:"cns"},{label:"RG",value:this.identification_document||"Não informado",field:"identification_document"},{label:"Data de nascimento",value:T.fromISO(this.birth_date).toFormat("dd/MM/yyyy"),field:"birth_date"},{label:"Sexo",value:this._gender.name,field:"gender"},{label:"Raça/Cor",value:((n=this.race)==null?void 0:n.name)||"Não informado",field:"race"}].filter(({field:t})=>!(e!=null&&e.includes(t)))}getContactInfo(e){return[{label:"Telefone",value:this.phone?Q.maskPhone(this.phone):"Não informado",field:"phone"},{label:"Celular",value:this.cellphone?Q.maskPhone(this.cellphone):"Não informado",field:"cellphone"},{label:"E-mail",value:this.email||"Não informado",field:"email"},{label:"Endereço",value:this.fancyAddress,fill:!0,field:"address"}].filter(({field:n})=>!(e!=null&&e.includes(n)))}get isPregnant(){return this._gender.value==="F"&&this.pregnant}get fancyAddress(){var e;return this.address?(e=this.address)==null?void 0:e.fancyAddress:"Não informado"}}const Ti=a=>new He({id:H.string.uuid(),name:H.person.fullName(),gender:H.helpers.arrayElement(["M","F"]),mother_name:H.person.fullName(),cpf:H.helpers.arrayElement(["04320568664","47388253807","11930974442","95151567500"]),cns:H.helpers.arrayElement(["947401207820008","150383531400002","192134169240003","146350365620000"]),birth_date:H.date.birthdate().toISOString().split("T")[0]||"",phone:H.helpers.fromRegExp(/[0-9]{2} [0-9]{4}-[0-9]{4}/),cellphone:H.helpers.fromRegExp(/[0-9]{2} [0-9]{4}-[0-9]{4}/),email:H.internet.email(),address:{cep:H.location.zipCode(),street:H.location.street(),number:H.string.numeric(3),complement:H.location.secondaryAddress(),neighborhood:H.location.street(),city:H.location.city(),uf:H.helpers.arrayElement(Ha)},race:H.helpers.arrayElement(["white","black","brown","indigenous","yellow"]),co_cidadao:H.number.int({min:1e3,max:9999}),is_dead:H.datatype.boolean(),pregnant:H.datatype.boolean(),identification_document:H.string.numeric(9).toUpperCase(),issuing_agency:H.helpers.arrayElement(["SSP","DETRAN","IFP"]),...a}),mr=(a=1,e)=>(H.seed(123),Array.from({length:a},()=>Ti(e))),Pr={apiBaseUrl:"",endpoints:{index:"/citizens",create:"/citizens",update:"/citizens",neighborhoods:"/citizens/neighborhoods",streets:"/citizens/streets"}};let Mi={...Pr};function jr(){return Mi}function Om(a){Mi={...Pr,...a,endpoints:{...Pr.endpoints,...a.endpoints}}}function Li(a,e){return function(){return a.apply(e,arguments)}}const{toString:Im}=Object.prototype,{getPrototypeOf:$r}=Object,{iterator:$a,toStringTag:Ri}=Symbol,Ya=(a=>e=>{const r=Im.call(e);return a[r]||(a[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),fe=a=>(a=a.toLowerCase(),e=>Ya(e)===a),qa=a=>e=>typeof e===a,{isArray:ea}=Array,Ye=qa("undefined");function pa(a){return a!==null&&!Ye(a)&&a.constructor!==null&&!Ye(a.constructor)&&te(a.constructor.isBuffer)&&a.constructor.isBuffer(a)}const Pi=fe("ArrayBuffer");function Jm(a){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(a):e=a&&a.buffer&&Pi(a.buffer),e}const zm=qa("string"),te=qa("function"),Ni=qa("number"),fa=a=>a!==null&&typeof a=="object",Km=a=>a===!0||a===!1,Ra=a=>{if(Ya(a)!=="object")return!1;const e=$r(a);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Ri in a)&&!($a in a)},Vm=a=>{if(!fa(a)||pa(a))return!1;try{return Object.keys(a).length===0&&Object.getPrototypeOf(a)===Object.prototype}catch{return!1}},Um=fe("Date"),_m=fe("File"),jm=fe("Blob"),$m=fe("FileList"),Ym=a=>fa(a)&&te(a.pipe),qm=a=>{let e;return a&&(typeof FormData=="function"&&a instanceof FormData||te(a.append)&&((e=Ya(a))==="formdata"||e==="object"&&te(a.toString)&&a.toString()==="[object FormData]"))},Zm=fe("URLSearchParams"),[Xm,Qm,eF,aF]=["ReadableStream","Request","Response","Headers"].map(fe),rF=a=>a.trim?a.trim():a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ya(a,e,{allOwnKeys:r=!1}={}){if(a===null||typeof a>"u")return;let n,t;if(typeof a!="object"&&(a=[a]),ea(a))for(n=0,t=a.length;n<t;n++)e.call(null,a[n],n,a);else{if(pa(a))return;const i=r?Object.getOwnPropertyNames(a):Object.keys(a),o=i.length;let u;for(n=0;n<o;n++)u=i[n],e.call(null,a[u],u,a)}}function xi(a,e){if(pa(a))return null;e=e.toLowerCase();const r=Object.keys(a);let n=r.length,t;for(;n-- >0;)if(t=r[n],e===t.toLowerCase())return t;return null}const Ne=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hi=a=>!Ye(a)&&a!==Ne;function Nr(){const{caseless:a,skipUndefined:e}=Hi(this)&&this||{},r={},n=(t,i)=>{const o=a&&xi(r,i)||i;Ra(r[o])&&Ra(t)?r[o]=Nr(r[o],t):Ra(t)?r[o]=Nr({},t):ea(t)?r[o]=t.slice():(!e||!Ye(t))&&(r[o]=t)};for(let t=0,i=arguments.length;t<i;t++)arguments[t]&&ya(arguments[t],n);return r}const nF=(a,e,r,{allOwnKeys:n}={})=>(ya(e,(t,i)=>{r&&te(t)?a[i]=Li(t,r):a[i]=t},{allOwnKeys:n}),a),tF=a=>(a.charCodeAt(0)===65279&&(a=a.slice(1)),a),iF=(a,e,r,n)=>{a.prototype=Object.create(e.prototype,n),a.prototype.constructor=a,Object.defineProperty(a,"super",{value:e.prototype}),r&&Object.assign(a.prototype,r)},oF=(a,e,r,n)=>{let t,i,o;const u={};if(e=e||{},a==null)return e;do{for(t=Object.getOwnPropertyNames(a),i=t.length;i-- >0;)o=t[i],(!n||n(o,a,e))&&!u[o]&&(e[o]=a[o],u[o]=!0);a=r!==!1&&$r(a)}while(a&&(!r||r(a,e))&&a!==Object.prototype);return e},sF=(a,e,r)=>{a=String(a),(r===void 0||r>a.length)&&(r=a.length),r-=e.length;const n=a.indexOf(e,r);return n!==-1&&n===r},uF=a=>{if(!a)return null;if(ea(a))return a;let e=a.length;if(!Ni(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=a[e];return r},lF=(a=>e=>a&&e instanceof a)(typeof Uint8Array<"u"&&$r(Uint8Array)),cF=(a,e)=>{const n=(a&&a[$a]).call(a);let t;for(;(t=n.next())&&!t.done;){const i=t.value;e.call(a,i[0],i[1])}},dF=(a,e)=>{let r;const n=[];for(;(r=a.exec(e))!==null;)n.push(r);return n},hF=fe("HTMLFormElement"),mF=a=>a.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,t){return n.toUpperCase()+t}),In=(({hasOwnProperty:a})=>(e,r)=>a.call(e,r))(Object.prototype),FF=fe("RegExp"),Gi=(a,e)=>{const r=Object.getOwnPropertyDescriptors(a),n={};ya(r,(t,i)=>{let o;(o=e(t,i,a))!==!1&&(n[i]=o||t)}),Object.defineProperties(a,n)},pF=a=>{Gi(a,(e,r)=>{if(te(a)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=a[r];if(te(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},fF=(a,e)=>{const r={},n=t=>{t.forEach(i=>{r[i]=!0})};return ea(a)?n(a):n(String(a).split(e)),r},yF=()=>{},gF=(a,e)=>a!=null&&Number.isFinite(a=+a)?a:e;function bF(a){return!!(a&&te(a.append)&&a[Ri]==="FormData"&&a[$a])}const CF=a=>{const e=new Array(10),r=(n,t)=>{if(fa(n)){if(e.indexOf(n)>=0)return;if(pa(n))return n;if(!("toJSON"in n)){e[t]=n;const i=ea(n)?[]:{};return ya(n,(o,u)=>{const l=r(o,t+1);!Ye(l)&&(i[u]=l)}),e[t]=void 0,i}}return n};return r(a,0)},kF=fe("AsyncFunction"),AF=a=>a&&(fa(a)||te(a))&&te(a.then)&&te(a.catch),Wi=((a,e)=>a?setImmediate:e?((r,n)=>(Ne.addEventListener("message",({source:t,data:i})=>{t===Ne&&i===r&&n.length&&n.shift()()},!1),t=>{n.push(t),Ne.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",te(Ne.postMessage)),SF=typeof queueMicrotask<"u"?queueMicrotask.bind(Ne):typeof process<"u"&&process.nextTick||Wi,vF=a=>a!=null&&te(a[$a]),F={isArray:ea,isArrayBuffer:Pi,isBuffer:pa,isFormData:qm,isArrayBufferView:Jm,isString:zm,isNumber:Ni,isBoolean:Km,isObject:fa,isPlainObject:Ra,isEmptyObject:Vm,isReadableStream:Xm,isRequest:Qm,isResponse:eF,isHeaders:aF,isUndefined:Ye,isDate:Um,isFile:_m,isBlob:jm,isRegExp:FF,isFunction:te,isStream:Ym,isURLSearchParams:Zm,isTypedArray:lF,isFileList:$m,forEach:ya,merge:Nr,extend:nF,trim:rF,stripBOM:tF,inherits:iF,toFlatObject:oF,kindOf:Ya,kindOfTest:fe,endsWith:sF,toArray:uF,forEachEntry:cF,matchAll:dF,isHTMLForm:hF,hasOwnProperty:In,hasOwnProp:In,reduceDescriptors:Gi,freezeMethods:pF,toObjectSet:fF,toCamelCase:mF,noop:yF,toFiniteNumber:gF,findKey:xi,global:Ne,isContextDefined:Hi,isSpecCompliantForm:bF,toJSONObject:CF,isAsyncFn:kF,isThenable:AF,setImmediate:Wi,asap:SF,isIterable:vF};function M(a,e,r,n,t){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=a,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),t&&(this.response=t,this.status=t.status?t.status:null)}F.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.status}}});const Oi=M.prototype,Ii={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(a=>{Ii[a]={value:a}});Object.defineProperties(M,Ii);Object.defineProperty(Oi,"isAxiosError",{value:!0});M.from=(a,e,r,n,t,i)=>{const o=Object.create(Oi);F.toFlatObject(a,o,function(d){return d!==Error.prototype},c=>c!=="isAxiosError");const u=a&&a.message?a.message:"Error",l=e==null&&a?a.code:e;return M.call(o,u,l,r,n,t),a&&o.cause==null&&Object.defineProperty(o,"cause",{value:a,configurable:!0}),o.name=a&&a.name||"Error",i&&Object.assign(o,i),o};const DF=null;function xr(a){return F.isPlainObject(a)||F.isArray(a)}function Ji(a){return F.endsWith(a,"[]")?a.slice(0,-2):a}function Jn(a,e,r){return a?a.concat(e).map(function(t,i){return t=Ji(t),!r&&i?"["+t+"]":t}).join(r?".":""):e}function EF(a){return F.isArray(a)&&!a.some(xr)}const wF=F.toFlatObject(F,{},null,function(e){return/^is[A-Z]/.test(e)});function Za(a,e,r){if(!F.isObject(a))throw new TypeError("target must be an object");e=e||new FormData,r=F.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,p){return!F.isUndefined(p[f])});const n=r.metaTokens,t=r.visitor||d,i=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&F.isSpecCompliantForm(e);if(!F.isFunction(t))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(F.isDate(h))return h.toISOString();if(F.isBoolean(h))return h.toString();if(!l&&F.isBlob(h))throw new M("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(h)||F.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,f,p){let b=h;if(h&&!p&&typeof h=="object"){if(F.endsWith(f,"{}"))f=n?f:f.slice(0,-2),h=JSON.stringify(h);else if(F.isArray(h)&&EF(h)||(F.isFileList(h)||F.endsWith(f,"[]"))&&(b=F.toArray(h)))return f=Ji(f),b.forEach(function(v,k){!(F.isUndefined(v)||v===null)&&e.append(o===!0?Jn([f],k,i):o===null?f:f+"[]",c(v))}),!1}return xr(h)?!0:(e.append(Jn(p,f,i),c(h)),!1)}const m=[],g=Object.assign(wF,{defaultVisitor:d,convertValue:c,isVisitable:xr});function y(h,f){if(!F.isUndefined(h)){if(m.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));m.push(h),F.forEach(h,function(b,D){(!(F.isUndefined(b)||b===null)&&t.call(e,b,F.isString(D)?D.trim():D,f,g))===!0&&y(b,f?f.concat(D):[D])}),m.pop()}}if(!F.isObject(a))throw new TypeError("data must be an object");return y(a),e}function zn(a){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(a).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Yr(a,e){this._pairs=[],a&&Za(a,this,e)}const zi=Yr.prototype;zi.append=function(e,r){this._pairs.push([e,r])};zi.toString=function(e){const r=e?function(n){return e.call(this,n,zn)}:zn;return this._pairs.map(function(t){return r(t[0])+"="+r(t[1])},"").join("&")};function BF(a){return encodeURIComponent(a).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ki(a,e,r){if(!e)return a;const n=r&&r.encode||BF;F.isFunction(r)&&(r={serialize:r});const t=r&&r.serialize;let i;if(t?i=t(e,r):i=F.isURLSearchParams(e)?e.toString():new Yr(e,r).toString(n),i){const o=a.indexOf("#");o!==-1&&(a=a.slice(0,o)),a+=(a.indexOf("?")===-1?"?":"&")+i}return a}class Kn{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){F.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Vi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},TF=typeof URLSearchParams<"u"?URLSearchParams:Yr,MF=typeof FormData<"u"?FormData:null,LF=typeof Blob<"u"?Blob:null,RF={isBrowser:!0,classes:{URLSearchParams:TF,FormData:MF,Blob:LF},protocols:["http","https","file","blob","url","data"]},qr=typeof window<"u"&&typeof document<"u",Hr=typeof navigator=="object"&&navigator||void 0,PF=qr&&(!Hr||["ReactNative","NativeScript","NS"].indexOf(Hr.product)<0),NF=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xF=qr&&window.location.href||"http://localhost",HF=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qr,hasStandardBrowserEnv:PF,hasStandardBrowserWebWorkerEnv:NF,navigator:Hr,origin:xF},Symbol.toStringTag,{value:"Module"})),re={...HF,...RF};function GF(a,e){return Za(a,new re.classes.URLSearchParams,{visitor:function(r,n,t,i){return re.isNode&&F.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function WF(a){return F.matchAll(/\w+|\[(\w*)]/g,a).map(e=>e[0]==="[]"?"":e[1]||e[0])}function OF(a){const e={},r=Object.keys(a);let n;const t=r.length;let i;for(n=0;n<t;n++)i=r[n],e[i]=a[i];return e}function Ui(a){function e(r,n,t,i){let o=r[i++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=i>=r.length;return o=!o&&F.isArray(t)?t.length:o,l?(F.hasOwnProp(t,o)?t[o]=[t[o],n]:t[o]=n,!u):((!t[o]||!F.isObject(t[o]))&&(t[o]=[]),e(r,n,t[o],i)&&F.isArray(t[o])&&(t[o]=OF(t[o])),!u)}if(F.isFormData(a)&&F.isFunction(a.entries)){const r={};return F.forEachEntry(a,(n,t)=>{e(WF(n),t,r,0)}),r}return null}function IF(a,e,r){if(F.isString(a))try{return(e||JSON.parse)(a),F.trim(a)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(a)}const ga={transitional:Vi,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",t=n.indexOf("application/json")>-1,i=F.isObject(e);if(i&&F.isHTMLForm(e)&&(e=new FormData(e)),F.isFormData(e))return t?JSON.stringify(Ui(e)):e;if(F.isArrayBuffer(e)||F.isBuffer(e)||F.isStream(e)||F.isFile(e)||F.isBlob(e)||F.isReadableStream(e))return e;if(F.isArrayBufferView(e))return e.buffer;if(F.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return GF(e,this.formSerializer).toString();if((u=F.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Za(u?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||t?(r.setContentType("application/json",!1),IF(e)):e}],transformResponse:[function(e){const r=this.transitional||ga.transitional,n=r&&r.forcedJSONParsing,t=this.responseType==="json";if(F.isResponse(e)||F.isReadableStream(e))return e;if(e&&F.isString(e)&&(n&&!this.responseType||t)){const o=!(r&&r.silentJSONParsing)&&t;try{return JSON.parse(e,this.parseReviver)}catch(u){if(o)throw u.name==="SyntaxError"?M.from(u,M.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:re.classes.FormData,Blob:re.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],a=>{ga.headers[a]={}});const JF=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zF=a=>{const e={};let r,n,t;return a&&a.split(`
|
|
15
15
|
`).forEach(function(o){t=o.indexOf(":"),r=o.substring(0,t).trim().toLowerCase(),n=o.substring(t+1).trim(),!(!r||e[r]&&JF[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Vn=Symbol("internals");function ta(a){return a&&String(a).trim().toLowerCase()}function Pa(a){return a===!1||a==null?a:F.isArray(a)?a.map(Pa):String(a)}function KF(a){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(a);)e[n[1]]=n[2];return e}const VF=a=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(a.trim());function Fr(a,e,r,n,t){if(F.isFunction(n))return n.call(this,e,r);if(t&&(e=r),!!F.isString(e)){if(F.isString(n))return e.indexOf(n)!==-1;if(F.isRegExp(n))return n.test(e)}}function UF(a){return a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function _F(a,e){const r=F.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(a,n+r,{value:function(t,i,o){return this[n].call(this,e,t,i,o)},configurable:!0})})}let ie=class{constructor(e){e&&this.set(e)}set(e,r,n){const t=this;function i(u,l,c){const d=ta(l);if(!d)throw new Error("header name must be a non-empty string");const m=F.findKey(t,d);(!m||t[m]===void 0||c===!0||c===void 0&&t[m]!==!1)&&(t[m||l]=Pa(u))}const o=(u,l)=>F.forEach(u,(c,d)=>i(c,d,l));if(F.isPlainObject(e)||e instanceof this.constructor)o(e,r);else if(F.isString(e)&&(e=e.trim())&&!VF(e))o(zF(e),r);else if(F.isObject(e)&&F.isIterable(e)){let u={},l,c;for(const d of e){if(!F.isArray(d))throw TypeError("Object iterator must return a key-value pair");u[c=d[0]]=(l=u[c])?F.isArray(l)?[...l,d[1]]:[l,d[1]]:d[1]}o(u,r)}else e!=null&&i(r,e,n);return this}get(e,r){if(e=ta(e),e){const n=F.findKey(this,e);if(n){const t=this[n];if(!r)return t;if(r===!0)return KF(t);if(F.isFunction(r))return r.call(this,t,n);if(F.isRegExp(r))return r.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=ta(e),e){const n=F.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Fr(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let t=!1;function i(o){if(o=ta(o),o){const u=F.findKey(n,o);u&&(!r||Fr(n,n[u],u,r))&&(delete n[u],t=!0)}}return F.isArray(e)?e.forEach(i):i(e),t}clear(e){const r=Object.keys(this);let n=r.length,t=!1;for(;n--;){const i=r[n];(!e||Fr(this,this[i],i,e,!0))&&(delete this[i],t=!0)}return t}normalize(e){const r=this,n={};return F.forEach(this,(t,i)=>{const o=F.findKey(n,i);if(o){r[o]=Pa(t),delete r[i];return}const u=e?UF(i):String(i).trim();u!==i&&delete r[i],r[u]=Pa(t),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return F.forEach(this,(n,t)=>{n!=null&&n!==!1&&(r[t]=e&&F.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
|
16
16
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(t=>n.set(t)),n}static accessor(e){const n=(this[Vn]=this[Vn]={accessors:{}}).accessors,t=this.prototype;function i(o){const u=ta(o);n[u]||(_F(t,o),n[u]=!0)}return F.isArray(e)?e.forEach(i):i(e),this}};ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);F.reduceDescriptors(ie.prototype,({value:a},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>a,set(n){this[r]=n}}});F.freezeMethods(ie);function pr(a,e){const r=this||ga,n=e||r,t=ie.from(n.headers);let i=n.data;return F.forEach(a,function(u){i=u.call(r,i,t.normalize(),e?e.status:void 0)}),t.normalize(),i}function _i(a){return!!(a&&a.__CANCEL__)}function aa(a,e,r){M.call(this,a??"canceled",M.ERR_CANCELED,e,r),this.name="CanceledError"}F.inherits(aa,M,{__CANCEL__:!0});function ji(a,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?a(r):e(new M("Request failed with status code "+r.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function jF(a){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a);return e&&e[1]||""}function $F(a,e){a=a||10;const r=new Array(a),n=new Array(a);let t=0,i=0,o;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),d=n[i];o||(o=c),r[t]=l,n[t]=c;let m=i,g=0;for(;m!==t;)g+=r[m++],m=m%a;if(t=(t+1)%a,t===i&&(i=(i+1)%a),c-o<e)return;const y=d&&c-d;return y?Math.round(g*1e3/y):void 0}}function YF(a,e){let r=0,n=1e3/e,t,i;const o=(c,d=Date.now())=>{r=d,t=null,i&&(clearTimeout(i),i=null),a(...c)};return[(...c)=>{const d=Date.now(),m=d-r;m>=n?o(c,d):(t=c,i||(i=setTimeout(()=>{i=null,o(t)},n-m)))},()=>t&&o(t)]}const Ja=(a,e,r=3)=>{let n=0;const t=$F(50,250);return YF(i=>{const o=i.loaded,u=i.lengthComputable?i.total:void 0,l=o-n,c=t(l),d=o<=u;n=o;const m={loaded:o,total:u,progress:u?o/u:void 0,bytes:l,rate:c||void 0,estimated:c&&u&&d?(u-o)/c:void 0,event:i,lengthComputable:u!=null,[e?"download":"upload"]:!0};a(m)},r)},Un=(a,e)=>{const r=a!=null;return[n=>e[0]({lengthComputable:r,total:a,loaded:n}),e[1]]},_n=a=>(...e)=>F.asap(()=>a(...e)),qF=re.hasStandardBrowserEnv?((a,e)=>r=>(r=new URL(r,re.origin),a.protocol===r.protocol&&a.host===r.host&&(e||a.port===r.port)))(new URL(re.origin),re.navigator&&/(msie|trident)/i.test(re.navigator.userAgent)):()=>!0,ZF=re.hasStandardBrowserEnv?{write(a,e,r,n,t,i){const o=[a+"="+encodeURIComponent(e)];F.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),F.isString(n)&&o.push("path="+n),F.isString(t)&&o.push("domain="+t),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(a){const e=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(a){this.write(a,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function XF(a){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a)}function QF(a,e){return e?a.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):a}function $i(a,e,r){let n=!XF(e);return a&&(n||r==!1)?QF(a,e):e}const jn=a=>a instanceof ie?{...a}:a;function Ge(a,e){e=e||{};const r={};function n(c,d,m,g){return F.isPlainObject(c)&&F.isPlainObject(d)?F.merge.call({caseless:g},c,d):F.isPlainObject(d)?F.merge({},d):F.isArray(d)?d.slice():d}function t(c,d,m,g){if(F.isUndefined(d)){if(!F.isUndefined(c))return n(void 0,c,m,g)}else return n(c,d,m,g)}function i(c,d){if(!F.isUndefined(d))return n(void 0,d)}function o(c,d){if(F.isUndefined(d)){if(!F.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function u(c,d,m){if(m in e)return n(c,d);if(m in a)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(c,d,m)=>t(jn(c),jn(d),m,!0)};return F.forEach(Object.keys({...a,...e}),function(d){const m=l[d]||t,g=m(a[d],e[d],d);F.isUndefined(g)&&m!==u||(r[d]=g)}),r}const Yi=a=>{const e=Ge({},a);let{data:r,withXSRFToken:n,xsrfHeaderName:t,xsrfCookieName:i,headers:o,auth:u}=e;if(e.headers=o=ie.from(o),e.url=Ki($i(e.baseURL,e.url,e.allowAbsoluteUrls),a.params,a.paramsSerializer),u&&o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),F.isFormData(r)){if(re.hasStandardBrowserEnv||re.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(F.isFunction(r.getHeaders)){const l=r.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([d,m])=>{c.includes(d.toLowerCase())&&o.set(d,m)})}}if(re.hasStandardBrowserEnv&&(n&&F.isFunction(n)&&(n=n(e)),n||n!==!1&&qF(e.url))){const l=t&&i&&ZF.read(i);l&&o.set(t,l)}return e},e1=typeof XMLHttpRequest<"u",a1=e1&&function(a){return new Promise(function(r,n){const t=Yi(a);let i=t.data;const o=ie.from(t.headers).normalize();let{responseType:u,onUploadProgress:l,onDownloadProgress:c}=t,d,m,g,y,h;function f(){y&&y(),h&&h(),t.cancelToken&&t.cancelToken.unsubscribe(d),t.signal&&t.signal.removeEventListener("abort",d)}let p=new XMLHttpRequest;p.open(t.method.toUpperCase(),t.url,!0),p.timeout=t.timeout;function b(){if(!p)return;const v=ie.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),A={data:!u||u==="text"||u==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:v,config:a,request:p};ji(function(J){r(J),f()},function(J){n(J),f()},A),p=null}"onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(b)},p.onabort=function(){p&&(n(new M("Request aborted",M.ECONNABORTED,a,p)),p=null)},p.onerror=function(k){const A=k&&k.message?k.message:"Network Error",B=new M(A,M.ERR_NETWORK,a,p);B.event=k||null,n(B),p=null},p.ontimeout=function(){let k=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const A=t.transitional||Vi;t.timeoutErrorMessage&&(k=t.timeoutErrorMessage),n(new M(k,A.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,a,p)),p=null},i===void 0&&o.setContentType(null),"setRequestHeader"in p&&F.forEach(o.toJSON(),function(k,A){p.setRequestHeader(A,k)}),F.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),u&&u!=="json"&&(p.responseType=t.responseType),c&&([g,h]=Ja(c,!0),p.addEventListener("progress",g)),l&&p.upload&&([m,y]=Ja(l),p.upload.addEventListener("progress",m),p.upload.addEventListener("loadend",y)),(t.cancelToken||t.signal)&&(d=v=>{p&&(n(!v||v.type?new aa(null,a,p):v),p.abort(),p=null)},t.cancelToken&&t.cancelToken.subscribe(d),t.signal&&(t.signal.aborted?d():t.signal.addEventListener("abort",d)));const D=jF(t.url);if(D&&re.protocols.indexOf(D)===-1){n(new M("Unsupported protocol "+D+":",M.ERR_BAD_REQUEST,a));return}p.send(i||null)})},r1=(a,e)=>{const{length:r}=a=a?a.filter(Boolean):[];if(e||r){let n=new AbortController,t;const i=function(c){if(!t){t=!0,u();const d=c instanceof Error?c:this.reason;n.abort(d instanceof M?d:new aa(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,i(new M(`timeout ${e} of ms exceeded`,M.ETIMEDOUT))},e);const u=()=>{a&&(o&&clearTimeout(o),o=null,a.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),a=null)};a.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>F.asap(u),l}},n1=function*(a,e){let r=a.byteLength;if(r<e){yield a;return}let n=0,t;for(;n<r;)t=n+e,yield a.slice(n,t),n=t},t1=async function*(a,e){for await(const r of i1(a))yield*n1(r,e)},i1=async function*(a){if(a[Symbol.asyncIterator]){yield*a;return}const e=a.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},$n=(a,e,r,n)=>{const t=t1(a,e);let i=0,o,u=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await t.next();if(c){u(),l.close();return}let m=d.byteLength;if(r){let g=i+=m;r(g)}l.enqueue(new Uint8Array(d))}catch(c){throw u(c),c}},cancel(l){return u(l),t.return()}},{highWaterMark:2})},Yn=64*1024,{isFunction:Ba}=F,o1=(({Request:a,Response:e})=>({Request:a,Response:e}))(F.global),{ReadableStream:qn,TextEncoder:Zn}=F.global,Xn=(a,...e)=>{try{return!!a(...e)}catch{return!1}},s1=a=>{a=F.merge.call({skipUndefined:!0},o1,a);const{fetch:e,Request:r,Response:n}=a,t=e?Ba(e):typeof fetch=="function",i=Ba(r),o=Ba(n);if(!t)return!1;const u=t&&Ba(qn),l=t&&(typeof Zn=="function"?(h=>f=>h.encode(f))(new Zn):async h=>new Uint8Array(await new r(h).arrayBuffer())),c=i&&u&&Xn(()=>{let h=!1;const f=new r(re.origin,{body:new qn,method:"POST",get duplex(){return h=!0,"half"}}).headers.has("Content-Type");return h&&!f}),d=o&&u&&Xn(()=>F.isReadableStream(new n("").body)),m={stream:d&&(h=>h.body)};t&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!m[h]&&(m[h]=(f,p)=>{let b=f&&f[h];if(b)return b.call(f);throw new M(`Response type '${h}' is not supported`,M.ERR_NOT_SUPPORT,p)})});const g=async h=>{if(h==null)return 0;if(F.isBlob(h))return h.size;if(F.isSpecCompliantForm(h))return(await new r(re.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(F.isArrayBufferView(h)||F.isArrayBuffer(h))return h.byteLength;if(F.isURLSearchParams(h)&&(h=h+""),F.isString(h))return(await l(h)).byteLength},y=async(h,f)=>{const p=F.toFiniteNumber(h.getContentLength());return p??g(f)};return async h=>{let{url:f,method:p,data:b,signal:D,cancelToken:v,timeout:k,onDownloadProgress:A,onUploadProgress:B,responseType:J,headers:Z,withCredentials:W="same-origin",fetchOptions:X}=Yi(h),R=e||fetch;J=J?(J+"").toLowerCase():"text";let L=r1([D,v&&v.toAbortSignal()],k),I=null;const V=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let Y;try{if(B&&c&&p!=="get"&&p!=="head"&&(Y=await y(Z,b))!==0){let O=new r(f,{method:"POST",body:b,duplex:"half"}),ue;if(F.isFormData(b)&&(ue=O.headers.get("content-type"))&&Z.setContentType(ue),O.body){const[be,z]=Un(Y,Ja(_n(B)));b=$n(O.body,Yn,be,z)}}F.isString(W)||(W=W?"include":"omit");const j=i&&"credentials"in r.prototype,Te={...X,signal:L,method:p.toUpperCase(),headers:Z.normalize().toJSON(),body:b,duplex:"half",credentials:j?W:void 0};I=i&&new r(f,Te);let ye=await(i?R(I,X):R(f,Te));const Ca=d&&(J==="stream"||J==="response");if(d&&(A||Ca&&V)){const O={};["status","statusText","headers"].forEach(Zr=>{O[Zr]=ye[Zr]});const ue=F.toFiniteNumber(ye.headers.get("content-length")),[be,z]=A&&Un(ue,Ja(_n(A),!0))||[];ye=new n($n(ye.body,Yn,be,()=>{z&&z(),V&&V()}),O)}J=J||"text";let P=await m[F.findKey(m,J)||"text"](ye,h);return!Ca&&V&&V(),await new Promise((O,ue)=>{ji(O,ue,{data:P,headers:ie.from(ye.headers),status:ye.status,statusText:ye.statusText,config:h,request:I})})}catch(j){throw V&&V(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new M("Network Error",M.ERR_NETWORK,h,I),{cause:j.cause||j}):M.from(j,j&&j.code,h,I)}}},u1=new Map,qi=a=>{let e=a?a.env:{};const{fetch:r,Request:n,Response:t}=e,i=[n,t,r];let o=i.length,u=o,l,c,d=u1;for(;u--;)l=i[u],c=d.get(l),c===void 0&&d.set(l,c=u?new Map:s1(e)),d=c;return c};qi();const Gr={http:DF,xhr:a1,fetch:{get:qi}};F.forEach(Gr,(a,e)=>{if(a){try{Object.defineProperty(a,"name",{value:e})}catch{}Object.defineProperty(a,"adapterName",{value:e})}});const Qn=a=>`- ${a}`,l1=a=>F.isFunction(a)||a===null||a===!1,Zi={getAdapter:(a,e)=>{a=F.isArray(a)?a:[a];const{length:r}=a;let n,t;const i={};for(let o=0;o<r;o++){n=a[o];let u;if(t=n,!l1(n)&&(t=Gr[(u=String(n)).toLowerCase()],t===void 0))throw new M(`Unknown adapter '${u}'`);if(t&&(F.isFunction(t)||(t=t.get(e))))break;i[u||"#"+o]=t}if(!t){const o=Object.entries(i).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let u=r?o.length>1?`since :
|
|
17
17
|
`+o.map(Qn).join(`
|
|
@@ -2102,7 +2102,7 @@ class kh {
|
|
|
2102
2102
|
get asRequestPayload() {
|
|
2103
2103
|
var e, r, n;
|
|
2104
2104
|
return {
|
|
2105
|
-
street: typeof this.street == "object" ? this.street.
|
|
2105
|
+
street: typeof this.street == "object" ? this.street.value : this.street,
|
|
2106
2106
|
number: this.number,
|
|
2107
2107
|
complement: this.complement,
|
|
2108
2108
|
neighborhood: typeof this.neighborhood == "object" ? (e = this.neighborhood) == null ? void 0 : e.value : this.neighborhood,
|