@consent.software/catalog 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_bundle/bundle.js +11 -11
- package/dist_bundle/bundle.js.map +2 -2
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/consentsoftware-toggle.js +4 -2
- package/dist_watch/bundle.js +3 -1
- package/dist_watch/bundle.js.map +2 -2
- package/package.json +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/consentsoftware-toggle.ts +3 -1
package/dist_bundle/bundle.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var sy=Object.create;var In=Object.defineProperty;var yf=Object.getOwnPropertyDescriptor;var ay=Object.getOwnPropertyNames;var uy=Object.getPrototypeOf,cy=Object.prototype.hasOwnProperty;var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),re=(t,e)=>{for(var r in e)In(t,r,{get:e[r],enumerable:!0})},fy=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ay(e))!cy.call(t,n)&&n!==r&&In(t,n,{get:()=>e[n],enumerable:!(o=yf(e,n))||o.enumerable});return t};var nt=(t,e,r)=>(r=t!=null?sy(uy(t)):{},fy(e||!t||!t.__esModule?In(r,"default",{value:t,enumerable:!0}):r,t));var Ce=(t,e,r,o)=>{for(var n=o>1?void 0:o?yf(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&In(e,r,n),n};var ua=A(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.uni=void 0;var My=(t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}`;Wn.uni=My});var Cl=A((_u,Iu)=>{(function(t,e){typeof _u=="object"&&typeof Iu<"u"?Iu.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(_u,function(){"use strict";var t=1e3,e=6e4,r=36e5,o="millisecond",n="second",i="minute",s="hour",a="day",u="week",c="month",f="quarter",m="year",p="date",d="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var v=["th","st","nd","rd"],b=P%100;return"["+P+(v[(b-20)%10]||v[b]||v[0])+"]"}},I=function(P,v,b){var M=String(P);return!M||M.length>=v?P:""+Array(v+1-M.length).join(b)+P},D={s:I,z:function(P){var v=-P.utcOffset(),b=Math.abs(v),M=Math.floor(b/60),S=b%60;return(v<=0?"+":"-")+I(M,2,"0")+":"+I(S,2,"0")},m:function P(v,b){if(v.date()<b.date())return-P(b,v);var M=12*(b.year()-v.year())+(b.month()-v.month()),S=v.clone().add(M,c),F=b-S<0,x=v.clone().add(M+(F?-1:1),c);return+(-(M+(b-S)/(F?S-x:x-S))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:c,y:m,w:u,d:a,D:p,h:s,m:i,s:n,ms:o,Q:f}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},T="en",L={};L[T]=g;var V="$isDayjsObject",z=function(P){return P instanceof se||!(!P||!P[V])},de=function P(v,b,M){var S;if(!v)return T;if(typeof v=="string"){var F=v.toLowerCase();L[F]&&(S=F),b&&(L[F]=b,S=F);var x=v.split("-");if(!S&&x.length>1)return P(x[0])}else{var O=v.name;L[O]=v,S=O}return!M&&S&&(T=S),S||!M&&T},q=function(P,v){if(z(P))return P.clone();var b=typeof v=="object"?v:{};return b.date=P,b.args=arguments,new se(b)},N=D;N.l=de,N.i=z,N.w=function(P,v){return q(P,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var se=function(){function P(b){this.$L=de(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[V]=!0}var v=P.prototype;return v.parse=function(b){this.$d=function(M){var S=M.date,F=M.utc;if(S===null)return new Date(NaN);if(N.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var x=S.match(y);if(x){var O=x[2]-1||0,k=(x[7]||"0").substring(0,3);return F?new Date(Date.UTC(x[1],O,x[3]||1,x[4]||0,x[5]||0,x[6]||0,k)):new Date(x[1],O,x[3]||1,x[4]||0,x[5]||0,x[6]||0,k)}}return new Date(S)}(b),this.init()},v.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},v.$utils=function(){return N},v.isValid=function(){return this.$d.toString()!==d},v.isSame=function(b,M){var S=q(b);return this.startOf(M)<=S&&S<=this.endOf(M)},v.isAfter=function(b,M){return q(b)<this.startOf(M)},v.isBefore=function(b,M){return this.endOf(M)<q(b)},v.$g=function(b,M,S){return N.u(b)?this[M]:this.set(S,b)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(b,M){var S=this,F=!!N.u(M)||M,x=N.p(b),O=function(he,ie){var te=N.w(S.$u?Date.UTC(S.$y,ie,he):new Date(S.$y,ie,he),S);return F?te:te.endOf(a)},k=function(he,ie){return N.w(S.toDate()[he].apply(S.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(ie)),S)},$=this.$W,U=this.$M,J=this.$D,ne="set"+(this.$u?"UTC":"");switch(x){case m:return F?O(1,0):O(31,11);case c:return F?O(1,U):O(0,U+1);case u:var ce=this.$locale().weekStart||0,Se=($<ce?$+7:$)-ce;return O(F?J-Se:J+(6-Se),U);case a:case p:return k(ne+"Hours",0);case s:return k(ne+"Minutes",1);case i:return k(ne+"Seconds",2);case n:return k(ne+"Milliseconds",3);default:return this.clone()}},v.endOf=function(b){return this.startOf(b,!1)},v.$set=function(b,M){var S,F=N.p(b),x="set"+(this.$u?"UTC":""),O=(S={},S[a]=x+"Date",S[p]=x+"Date",S[c]=x+"Month",S[m]=x+"FullYear",S[s]=x+"Hours",S[i]=x+"Minutes",S[n]=x+"Seconds",S[o]=x+"Milliseconds",S)[F],k=F===a?this.$D+(M-this.$W):M;if(F===c||F===m){var $=this.clone().set(p,1);$.$d[O](k),$.init(),this.$d=$.set(p,Math.min(this.$D,$.daysInMonth())).$d}else O&&this.$d[O](k);return this.init(),this},v.set=function(b,M){return this.clone().$set(b,M)},v.get=function(b){return this[N.p(b)]()},v.add=function(b,M){var S,F=this;b=Number(b);var x=N.p(M),O=function(U){var J=q(F);return N.w(J.date(J.date()+Math.round(U*b)),F)};if(x===c)return this.set(c,this.$M+b);if(x===m)return this.set(m,this.$y+b);if(x===a)return O(1);if(x===u)return O(7);var k=(S={},S[i]=e,S[s]=r,S[n]=t,S)[x]||1,$=this.$d.getTime()+b*k;return N.w($,this)},v.subtract=function(b,M){return this.add(-1*b,M)},v.format=function(b){var M=this,S=this.$locale();if(!this.isValid())return S.invalidDate||d;var F=b||"YYYY-MM-DDTHH:mm:ssZ",x=N.z(this),O=this.$H,k=this.$m,$=this.$M,U=S.weekdays,J=S.months,ne=S.meridiem,ce=function(ie,te,ye,Oe){return ie&&(ie[te]||ie(M,F))||ye[te].slice(0,Oe)},Se=function(ie){return N.s(O%12||12,ie,"0")},he=ne||function(ie,te,ye){var Oe=ie<12?"AM":"PM";return ye?Oe.toLowerCase():Oe};return F.replace(w,function(ie,te){return te||function(ye){switch(ye){case"YY":return String(M.$y).slice(-2);case"YYYY":return N.s(M.$y,4,"0");case"M":return $+1;case"MM":return N.s($+1,2,"0");case"MMM":return ce(S.monthsShort,$,J,3);case"MMMM":return ce(J,$);case"D":return M.$D;case"DD":return N.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return ce(S.weekdaysMin,M.$W,U,2);case"ddd":return ce(S.weekdaysShort,M.$W,U,3);case"dddd":return U[M.$W];case"H":return String(O);case"HH":return N.s(O,2,"0");case"h":return Se(1);case"hh":return Se(2);case"a":return he(O,k,!0);case"A":return he(O,k,!1);case"m":return String(k);case"mm":return N.s(k,2,"0");case"s":return String(M.$s);case"ss":return N.s(M.$s,2,"0");case"SSS":return N.s(M.$ms,3,"0");case"Z":return x}return null}(ie)||x.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(b,M,S){var F,x=this,O=N.p(M),k=q(b),$=(k.utcOffset()-this.utcOffset())*e,U=this-k,J=function(){return N.m(x,k)};switch(O){case m:F=J()/12;break;case c:F=J();break;case f:F=J()/3;break;case u:F=(U-$)/6048e5;break;case a:F=(U-$)/864e5;break;case s:F=U/r;break;case i:F=U/e;break;case n:F=U/t;break;default:F=U}return S?F:N.a(F)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return L[this.$L]},v.locale=function(b,M){if(!b)return this.$L;var S=this.clone(),F=de(b,M,!0);return F&&(S.$L=F),S},v.clone=function(){return N.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},P}(),Le=se.prototype;return q.prototype=Le,[["$ms",o],["$s",n],["$m",i],["$H",s],["$W",a],["$M",c],["$y",m],["$D",p]].forEach(function(P){Le[P[1]]=function(v){return this.$g(v,P[0],P[1])}}),q.extend=function(P,v){return P.$i||(P(v,se,q),P.$i=!0),q},q.locale=de,q.isDayjs=z,q.unix=function(P){return q(1e3*P)},q.en=L[T],q.Ls=L,q.p={},q})});var Nl=A((Au,Eu)=>{(function(t,e){typeof Au=="object"&&typeof Eu<"u"?Eu.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(Au,function(){"use strict";return function(t,e,r){e.prototype.isToday=function(){var o="YYYY-MM-DD",n=r();return this.format(o)===n.format(o)}}})});var Wl=A((k9,Rl)=>{"use strict";Rl.exports=class{constructor(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.childrenVersion=0,this.childIndexCachedUpTo=null,this.cachedIndex=-1,this.cachedIndexVersion=NaN}get isAttached(){return!!(this.parent||this.previousSibling||this.nextSibling)}get hasChildren(){return!!this.firstChild}childrenChanged(){this.childrenVersion=this.childrenVersion+1&4294967295,this.childIndexCachedUpTo=null}getCachedIndex(e){return this.cachedIndexVersion!==e.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(e,r){this.cachedIndexVersion=e.childrenVersion,this.cachedIndex=r}}});var Ll=A((P9,Ul)=>{"use strict";Ul.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var jl=A((C9,Hl)=>{"use strict";var Bl=Symbol(),Yl=Symbol(),Nt=Symbol(),ql=Symbol(),ot=class{constructor(e,r,o,n){this[Bl]=e,this[Yl]=r,this[Nt]=o,this[ql]=n}next(){let e=this[Bl],r=this[ql],o=this[Yl];if(!this[Nt])return{done:!0,value:o};let n=this[Nt];return r===1?this[Nt]=e._node(n).previousSibling:r===2?this[Nt]=e._node(n).nextSibling:r===3?this[Nt]=e._node(n).parent:r===4?this[Nt]=e.preceding(n,{root:o}):this[Nt]=e.following(n,{root:o}),{done:!1,value:n}}};Object.defineProperty(ot.prototype,Symbol.iterator,{value:function(){return this},writable:!1});ot.PREV=1;ot.NEXT=2;ot.PARENT=3;ot.PRECEDING=4;ot.FOLLOWING=5;Object.freeze(ot);Object.freeze(ot.prototype);Hl.exports=ot});var Vl=A((N9,zl)=>{"use strict";var Pv=Wl(),Ft=Ll(),Qe=jl();function Uu(){return!0}function Jr(t,e){return t[t.length-1-e]}var ls=class{constructor(e){this.symbol=Symbol(e||"SymbolTree data")}initialize(e){return this._node(e),e}_node(e){if(!e)return null;let r=e[this.symbol];return r||(e[this.symbol]=new Pv)}hasChildren(e){return this._node(e).hasChildren}firstChild(e){return this._node(e).firstChild}lastChild(e){return this._node(e).lastChild}previousSibling(e){return this._node(e).previousSibling}nextSibling(e){return this._node(e).nextSibling}parent(e){return this._node(e).parent}lastInclusiveDescendant(e){let r,o=e;for(;r=this._node(o).lastChild;)o=r;return o}preceding(e,r){let o=r&&r.root;if(e===o)return null;let n=this._node(e).previousSibling;return n?this.lastInclusiveDescendant(n):this._node(e).parent}following(e,r){let o=r&&r.root,i=!(r&&r.skipChildren)&&this._node(e).firstChild;if(i)return i;let s=e;do{if(s===o)return null;let a=this._node(s).nextSibling;if(a)return a;s=this._node(s).parent}while(s);return null}childrenToArray(e,r){let o=r&&r.array||[],n=r&&r.filter||Uu,i=r&&r.thisArg||void 0,s=this._node(e),a=s.firstChild,u=0;for(;a;){let c=this._node(a);c.setCachedIndex(s,u),n.call(i,a)&&o.push(a),a=c.nextSibling,++u}return o}ancestorsToArray(e,r){let o=r&&r.array||[],n=r&&r.filter||Uu,i=r&&r.thisArg||void 0,s=e;for(;s;)n.call(i,s)&&o.push(s),s=this._node(s).parent;return o}treeToArray(e,r){let o=r&&r.array||[],n=r&&r.filter||Uu,i=r&&r.thisArg||void 0,s=e;for(;s;)n.call(i,s)&&o.push(s),s=this.following(s,{root:e});return o}childrenIterator(e,r){let o=r&&r.reverse,n=this._node(e);return new Qe(this,e,o?n.lastChild:n.firstChild,o?Qe.PREV:Qe.NEXT)}previousSiblingsIterator(e){return new Qe(this,e,this._node(e).previousSibling,Qe.PREV)}nextSiblingsIterator(e){return new Qe(this,e,this._node(e).nextSibling,Qe.NEXT)}ancestorsIterator(e){return new Qe(this,e,e,Qe.PARENT)}treeIterator(e,r){let o=r&&r.reverse;return new Qe(this,e,o?this.lastInclusiveDescendant(e):e,o?Qe.PRECEDING:Qe.FOLLOWING)}index(e){let r=this._node(e),o=this._node(r.parent);if(!o)return-1;let n=r.getCachedIndex(o);if(n>=0)return n;n=0;let i=o.firstChild;if(o.childIndexCachedUpTo){let s=this._node(o.childIndexCachedUpTo);i=s.nextSibling,n=s.getCachedIndex(o)+1}for(;i;){let s=this._node(i);if(s.setCachedIndex(o,n),i===e)break;++n,i=s.nextSibling}return o.childIndexCachedUpTo=e,n}childrenCount(e){let r=this._node(e);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(e,r){if(e===r)return 0;let o=[];{let f=e;for(;f;){if(f===r)return Ft.CONTAINS|Ft.PRECEDING;o.push(f),f=this.parent(f)}}let n=[];{let f=r;for(;f;){if(f===e)return Ft.CONTAINED_BY|Ft.FOLLOWING;n.push(f),f=this.parent(f)}}let i=Jr(o,0);if(!i||i!==Jr(n,0))return Ft.DISCONNECTED;let s=0,a=Math.min(o.length,n.length);for(let f=0;f<a;++f){let m=Jr(o,f),p=Jr(n,f);if(m!==p)break;s=f}let u=this.index(Jr(o,s+1));return this.index(Jr(n,s+1))<u?Ft.PRECEDING:Ft.FOLLOWING}remove(e){let r=this._node(e),o=this._node(r.parent),n=this._node(r.previousSibling),i=this._node(r.nextSibling);return o&&(o.firstChild===e&&(o.firstChild=r.nextSibling),o.lastChild===e&&(o.lastChild=r.previousSibling)),n&&(n.nextSibling=r.nextSibling),i&&(i.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,o&&o.childrenChanged(),e}insertBefore(e,r){let o=this._node(e),n=this._node(o.previousSibling),i=this._node(r),s=this._node(o.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=o.parent,i.previousSibling=o.previousSibling,i.nextSibling=e,o.previousSibling=r,n&&(n.nextSibling=r),s&&s.firstChild===e&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(e,r){let o=this._node(e),n=this._node(o.nextSibling),i=this._node(r),s=this._node(o.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=o.parent,i.previousSibling=e,i.nextSibling=o.nextSibling,o.nextSibling=r,n&&(n.previousSibling=r),s&&s.lastChild===e&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(e,r){let o=this._node(e),n=this._node(r);if(n.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.hasChildren?this.insertBefore(o.firstChild,r):(n.parent=e,o.firstChild=r,o.lastChild=r,o.childrenChanged()),r}appendChild(e,r){let o=this._node(e),n=this._node(r);if(n.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.hasChildren?this.insertAfter(o.lastChild,r):(n.parent=e,o.firstChild=r,o.lastChild=r,o.childrenChanged()),r}};zl.exports=ls;ls.TreePosition=Ft});var np=A((Xr,Zr)=>{(function(t){var e=typeof Xr=="object"&&Xr&&!Xr.nodeType&&Xr,r=typeof Zr=="object"&&Zr&&!Zr.nodeType&&Zr,o=typeof global=="object"&&global;(o.global===o||o.window===o||o.self===o)&&(t=o);var n,i=2147483647,s=36,a=1,u=26,c=38,f=700,m=72,p=128,d="-",y=/^xn--/,w=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,I={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=s-a,T=Math.floor,L=String.fromCharCode,V;function z(x){throw new RangeError(I[x])}function de(x,O){for(var k=x.length,$=[];k--;)$[k]=O(x[k]);return $}function q(x,O){var k=x.split("@"),$="";k.length>1&&($=k[0]+"@",x=k[1]),x=x.replace(g,".");var U=x.split("."),J=de(U,O).join(".");return $+J}function N(x){for(var O=[],k=0,$=x.length,U,J;k<$;)U=x.charCodeAt(k++),U>=55296&&U<=56319&&k<$?(J=x.charCodeAt(k++),(J&64512)==56320?O.push(((U&1023)<<10)+(J&1023)+65536):(O.push(U),k--)):O.push(U);return O}function se(x){return de(x,function(O){var k="";return O>65535&&(O-=65536,k+=L(O>>>10&1023|55296),O=56320|O&1023),k+=L(O),k}).join("")}function Le(x){return x-48<10?x-22:x-65<26?x-65:x-97<26?x-97:s}function P(x,O){return x+22+75*(x<26)-((O!=0)<<5)}function v(x,O,k){var $=0;for(x=k?T(x/f):x>>1,x+=T(x/O);x>D*u>>1;$+=s)x=T(x/D);return T($+(D+1)*x/(x+c))}function b(x){var O=[],k=x.length,$,U=0,J=p,ne=m,ce,Se,he,ie,te,ye,Oe,Et,Yt;for(ce=x.lastIndexOf(d),ce<0&&(ce=0),Se=0;Se<ce;++Se)x.charCodeAt(Se)>=128&&z("not-basic"),O.push(x.charCodeAt(Se));for(he=ce>0?ce+1:0;he<k;){for(ie=U,te=1,ye=s;he>=k&&z("invalid-input"),Oe=Le(x.charCodeAt(he++)),(Oe>=s||Oe>T((i-U)/te))&&z("overflow"),U+=Oe*te,Et=ye<=ne?a:ye>=ne+u?u:ye-ne,!(Oe<Et);ye+=s)Yt=s-Et,te>T(i/Yt)&&z("overflow"),te*=Yt;$=O.length+1,ne=v(U-ie,$,ie==0),T(U/$)>i-J&&z("overflow"),J+=T(U/$),U%=$,O.splice(U++,0,J)}return se(O)}function M(x){var O,k,$,U,J,ne,ce,Se,he,ie,te,ye=[],Oe,Et,Yt,Qs;for(x=N(x),Oe=x.length,O=p,k=0,J=m,ne=0;ne<Oe;++ne)te=x[ne],te<128&&ye.push(L(te));for($=U=ye.length,U&&ye.push(d);$<Oe;){for(ce=i,ne=0;ne<Oe;++ne)te=x[ne],te>=O&&te<ce&&(ce=te);for(Et=$+1,ce-O>T((i-k)/Et)&&z("overflow"),k+=(ce-O)*Et,O=ce,ne=0;ne<Oe;++ne)if(te=x[ne],te<O&&++k>i&&z("overflow"),te==O){for(Se=k,he=s;ie=he<=J?a:he>=J+u?u:he-J,!(Se<ie);he+=s)Qs=Se-ie,Yt=s-ie,ye.push(L(P(ie+Qs%Yt,0))),Se=T(Qs/Yt);ye.push(L(P(Se,0))),J=v(k,Et,$==U),k=0,++$}++k,++O}return ye.join("")}function S(x){return q(x,function(O){return y.test(O)?b(O.slice(4).toLowerCase()):O})}function F(x){return q(x,function(O){return w.test(O)?"xn--"+M(O):O})}if(n={version:"1.4.1",ucs2:{decode:N,encode:se},decode:b,encode:M,toASCII:F,toUnicode:S},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return n});else if(e&&r)if(Zr.exports==e)r.exports=n;else for(V in n)n.hasOwnProperty(V)&&(e[V]=n[V]);else t.punycode=n})(Xr)});var xr=A((PV,ip)=>{"use strict";ip.exports=TypeError});var sp=A(()=>{});var ln=A((FV,Mp)=>{var ic=typeof Map=="function"&&Map.prototype,Qu=Object.getOwnPropertyDescriptor&&ic?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ds=ic&&Qu&&typeof Qu.get=="function"?Qu.get:null,ap=ic&&Map.prototype.forEach,sc=typeof Set=="function"&&Set.prototype,Ju=Object.getOwnPropertyDescriptor&&sc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,hs=sc&&Ju&&typeof Ju.get=="function"?Ju.get:null,up=sc&&Set.prototype.forEach,uw=typeof WeakMap=="function"&&WeakMap.prototype,cn=uw?WeakMap.prototype.has:null,cw=typeof WeakSet=="function"&&WeakSet.prototype,fn=cw?WeakSet.prototype.has:null,fw=typeof WeakRef=="function"&&WeakRef.prototype,cp=fw?WeakRef.prototype.deref:null,lw=Boolean.prototype.valueOf,pw=Object.prototype.toString,mw=Function.prototype.toString,dw=String.prototype.match,ac=String.prototype.slice,Wt=String.prototype.replace,hw=String.prototype.toUpperCase,fp=String.prototype.toLowerCase,bp=RegExp.prototype.test,lp=Array.prototype.concat,ut=Array.prototype.join,yw=Array.prototype.slice,pp=Math.floor,ec=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Xu=Object.getOwnPropertySymbols,tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,eo=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===eo||!0)?Symbol.toStringTag:null,vp=Object.prototype.propertyIsEnumerable,mp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function dp(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||bp.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var o=t<0?-pp(-t):pp(t);if(o!==t){var n=String(o),i=ac.call(e,n.length+1);return Wt.call(n,r,"$&_")+"."+Wt.call(Wt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Wt.call(e,r,"$&_")}var rc=sp(),hp=rc.custom,yp=Dp(hp)?hp:null,wp={__proto__:null,double:'"',single:"'"},xw={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Mp.exports=function t(e,r,o,n){var i=r||{};if(Ot(i,"quoteStyle")&&!Ot(wp,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ot(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Ot(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ot(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ot(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Op(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?dp(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?dp(e,c):c}var f=typeof i.depth>"u"?5:i.depth;if(typeof o>"u"&&(o=0),o>=f&&f>0&&typeof e=="object")return oc(e)?"[Array]":"[Object]";var m=Fw(i,o);if(typeof n>"u")n=[];else if(Tp(n,e)>=0)return"[Circular]";function p(v,b,M){if(b&&(n=yw.call(n),n.push(b)),M){var S={depth:i.depth};return Ot(i,"quoteStyle")&&(S.quoteStyle=i.quoteStyle),t(v,S,o+1,n)}return t(v,i,o+1,n)}if(typeof e=="function"&&!xp(e)){var d=Mw(e),y=ms(e,p);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+ut.call(y,", ")+" }":"")}if(Dp(e)){var w=eo?Wt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):tc.call(e);return typeof e=="object"&&!eo?un(w):w}if(Pw(e)){for(var g="<"+fp.call(String(e.nodeName)),I=e.attributes||[],D=0;D<I.length;D++)g+=" "+I[D].name+"="+Sp(gw(I[D].value),"double",i);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+fp.call(String(e.nodeName))+">",g}if(oc(e)){if(e.length===0)return"[]";var T=ms(e,p);return m&&!Nw(T)?"["+nc(T,m)+"]":"[ "+ut.call(T,", ")+" ]"}if(vw(e)){var L=ms(e,p);return!("cause"in Error.prototype)&&"cause"in e&&!vp.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(lp.call("[cause]: "+p(e.cause),L),", ")+" }":L.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(L,", ")+" }"}if(typeof e=="object"&&s){if(yp&&typeof e[yp]=="function"&&rc)return rc(e,{depth:f-o});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(_w(e)){var V=[];return ap&&ap.call(e,function(v,b){V.push(p(b,e,!0)+" => "+p(v,e))}),gp("Map",ds.call(e),V,m)}if(Ew(e)){var z=[];return up&&up.call(e,function(v){z.push(p(v,e))}),gp("Set",hs.call(e),z,m)}if(Iw(e))return Zu("WeakMap");if(kw(e))return Zu("WeakSet");if(Aw(e))return Zu("WeakRef");if(Sw(e))return un(p(Number(e)));if(Tw(e))return un(p(ec.call(e)));if(Dw(e))return un(lw.call(e));if(ww(e))return un(p(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!bw(e)&&!xp(e)){var de=ms(e,p),q=mp?mp(e)===Object.prototype:e instanceof Object||e.constructor===Object,N=e instanceof Object?"":"null prototype",se=!q&&Pe&&Object(e)===e&&Pe in e?ac.call(Ut(e),8,-1):N?"Object":"",Le=q||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",P=Le+(se||N?"["+ut.call(lp.call([],se||[],N||[]),": ")+"] ":"");return de.length===0?P+"{}":m?P+"{"+nc(de,m)+"}":P+"{ "+ut.call(de,", ")+" }"}return String(e)};function Sp(t,e,r){var o=r.quoteStyle||e,n=wp[o];return n+t+n}function gw(t){return Wt.call(String(t),/"/g,""")}function oc(t){return Ut(t)==="[object Array]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function bw(t){return Ut(t)==="[object Date]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function xp(t){return Ut(t)==="[object RegExp]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function vw(t){return Ut(t)==="[object Error]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function ww(t){return Ut(t)==="[object String]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Sw(t){return Ut(t)==="[object Number]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Dw(t){return Ut(t)==="[object Boolean]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Dp(t){if(eo)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!tc)return!1;try{return tc.call(t),!0}catch{}return!1}function Tw(t){if(!t||typeof t!="object"||!ec)return!1;try{return ec.call(t),!0}catch{}return!1}var Ow=Object.prototype.hasOwnProperty||function(t){return t in this};function Ot(t,e){return Ow.call(t,e)}function Ut(t){return pw.call(t)}function Mw(t){if(t.name)return t.name;var e=dw.call(mw.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Tp(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function _w(t){if(!ds||!t||typeof t!="object")return!1;try{ds.call(t);try{hs.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Iw(t){if(!cn||!t||typeof t!="object")return!1;try{cn.call(t,cn);try{fn.call(t,fn)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Aw(t){if(!cp||!t||typeof t!="object")return!1;try{return cp.call(t),!0}catch{}return!1}function Ew(t){if(!hs||!t||typeof t!="object")return!1;try{hs.call(t);try{ds.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function kw(t){if(!fn||!t||typeof t!="object")return!1;try{fn.call(t,fn);try{cn.call(t,cn)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Pw(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Op(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return Op(ac.call(t,0,e.maxStringLength),e)+o}var n=xw[e.quoteStyle||"single"];n.lastIndex=0;var i=Wt.call(Wt.call(t,n,"\\$1"),/[\x00-\x1f]/g,Cw);return Sp(i,"single",e)}function Cw(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+hw.call(e.toString(16))}function un(t){return"Object("+t+")"}function Zu(t){return t+" { ? }"}function gp(t,e,r,o){var n=o?nc(r,o):ut.call(r,", ");return t+" ("+e+") {"+n+"}"}function Nw(t){for(var e=0;e<t.length;e++)if(Tp(t[e],`
|
|
1
|
+
var sy=Object.create;var In=Object.defineProperty;var yf=Object.getOwnPropertyDescriptor;var ay=Object.getOwnPropertyNames;var uy=Object.getPrototypeOf,cy=Object.prototype.hasOwnProperty;var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),re=(t,e)=>{for(var r in e)In(t,r,{get:e[r],enumerable:!0})},fy=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ay(e))!cy.call(t,n)&&n!==r&&In(t,n,{get:()=>e[n],enumerable:!(o=yf(e,n))||o.enumerable});return t};var nt=(t,e,r)=>(r=t!=null?sy(uy(t)):{},fy(e||!t||!t.__esModule?In(r,"default",{value:t,enumerable:!0}):r,t));var Ce=(t,e,r,o)=>{for(var n=o>1?void 0:o?yf(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&In(e,r,n),n};var ua=A(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.uni=void 0;var My=(t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}`;Wn.uni=My});var Cl=A((_u,Iu)=>{(function(t,e){typeof _u=="object"&&typeof Iu<"u"?Iu.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(_u,function(){"use strict";var t=1e3,e=6e4,r=36e5,o="millisecond",n="second",i="minute",s="hour",a="day",u="week",c="month",f="quarter",m="year",p="date",d="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var v=["th","st","nd","rd"],b=P%100;return"["+P+(v[(b-20)%10]||v[b]||v[0])+"]"}},I=function(P,v,b){var M=String(P);return!M||M.length>=v?P:""+Array(v+1-M.length).join(b)+P},D={s:I,z:function(P){var v=-P.utcOffset(),b=Math.abs(v),M=Math.floor(b/60),S=b%60;return(v<=0?"+":"-")+I(M,2,"0")+":"+I(S,2,"0")},m:function P(v,b){if(v.date()<b.date())return-P(b,v);var M=12*(b.year()-v.year())+(b.month()-v.month()),S=v.clone().add(M,c),F=b-S<0,x=v.clone().add(M+(F?-1:1),c);return+(-(M+(b-S)/(F?S-x:x-S))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:c,y:m,w:u,d:a,D:p,h:s,m:i,s:n,ms:o,Q:f}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},T="en",L={};L[T]=g;var V="$isDayjsObject",z=function(P){return P instanceof se||!(!P||!P[V])},de=function P(v,b,M){var S;if(!v)return T;if(typeof v=="string"){var F=v.toLowerCase();L[F]&&(S=F),b&&(L[F]=b,S=F);var x=v.split("-");if(!S&&x.length>1)return P(x[0])}else{var O=v.name;L[O]=v,S=O}return!M&&S&&(T=S),S||!M&&T},q=function(P,v){if(z(P))return P.clone();var b=typeof v=="object"?v:{};return b.date=P,b.args=arguments,new se(b)},N=D;N.l=de,N.i=z,N.w=function(P,v){return q(P,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var se=function(){function P(b){this.$L=de(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[V]=!0}var v=P.prototype;return v.parse=function(b){this.$d=function(M){var S=M.date,F=M.utc;if(S===null)return new Date(NaN);if(N.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var x=S.match(y);if(x){var O=x[2]-1||0,k=(x[7]||"0").substring(0,3);return F?new Date(Date.UTC(x[1],O,x[3]||1,x[4]||0,x[5]||0,x[6]||0,k)):new Date(x[1],O,x[3]||1,x[4]||0,x[5]||0,x[6]||0,k)}}return new Date(S)}(b),this.init()},v.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},v.$utils=function(){return N},v.isValid=function(){return this.$d.toString()!==d},v.isSame=function(b,M){var S=q(b);return this.startOf(M)<=S&&S<=this.endOf(M)},v.isAfter=function(b,M){return q(b)<this.startOf(M)},v.isBefore=function(b,M){return this.endOf(M)<q(b)},v.$g=function(b,M,S){return N.u(b)?this[M]:this.set(S,b)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(b,M){var S=this,F=!!N.u(M)||M,x=N.p(b),O=function(he,ie){var te=N.w(S.$u?Date.UTC(S.$y,ie,he):new Date(S.$y,ie,he),S);return F?te:te.endOf(a)},k=function(he,ie){return N.w(S.toDate()[he].apply(S.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(ie)),S)},$=this.$W,U=this.$M,J=this.$D,ne="set"+(this.$u?"UTC":"");switch(x){case m:return F?O(1,0):O(31,11);case c:return F?O(1,U):O(0,U+1);case u:var ce=this.$locale().weekStart||0,Se=($<ce?$+7:$)-ce;return O(F?J-Se:J+(6-Se),U);case a:case p:return k(ne+"Hours",0);case s:return k(ne+"Minutes",1);case i:return k(ne+"Seconds",2);case n:return k(ne+"Milliseconds",3);default:return this.clone()}},v.endOf=function(b){return this.startOf(b,!1)},v.$set=function(b,M){var S,F=N.p(b),x="set"+(this.$u?"UTC":""),O=(S={},S[a]=x+"Date",S[p]=x+"Date",S[c]=x+"Month",S[m]=x+"FullYear",S[s]=x+"Hours",S[i]=x+"Minutes",S[n]=x+"Seconds",S[o]=x+"Milliseconds",S)[F],k=F===a?this.$D+(M-this.$W):M;if(F===c||F===m){var $=this.clone().set(p,1);$.$d[O](k),$.init(),this.$d=$.set(p,Math.min(this.$D,$.daysInMonth())).$d}else O&&this.$d[O](k);return this.init(),this},v.set=function(b,M){return this.clone().$set(b,M)},v.get=function(b){return this[N.p(b)]()},v.add=function(b,M){var S,F=this;b=Number(b);var x=N.p(M),O=function(U){var J=q(F);return N.w(J.date(J.date()+Math.round(U*b)),F)};if(x===c)return this.set(c,this.$M+b);if(x===m)return this.set(m,this.$y+b);if(x===a)return O(1);if(x===u)return O(7);var k=(S={},S[i]=e,S[s]=r,S[n]=t,S)[x]||1,$=this.$d.getTime()+b*k;return N.w($,this)},v.subtract=function(b,M){return this.add(-1*b,M)},v.format=function(b){var M=this,S=this.$locale();if(!this.isValid())return S.invalidDate||d;var F=b||"YYYY-MM-DDTHH:mm:ssZ",x=N.z(this),O=this.$H,k=this.$m,$=this.$M,U=S.weekdays,J=S.months,ne=S.meridiem,ce=function(ie,te,ye,Oe){return ie&&(ie[te]||ie(M,F))||ye[te].slice(0,Oe)},Se=function(ie){return N.s(O%12||12,ie,"0")},he=ne||function(ie,te,ye){var Oe=ie<12?"AM":"PM";return ye?Oe.toLowerCase():Oe};return F.replace(w,function(ie,te){return te||function(ye){switch(ye){case"YY":return String(M.$y).slice(-2);case"YYYY":return N.s(M.$y,4,"0");case"M":return $+1;case"MM":return N.s($+1,2,"0");case"MMM":return ce(S.monthsShort,$,J,3);case"MMMM":return ce(J,$);case"D":return M.$D;case"DD":return N.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return ce(S.weekdaysMin,M.$W,U,2);case"ddd":return ce(S.weekdaysShort,M.$W,U,3);case"dddd":return U[M.$W];case"H":return String(O);case"HH":return N.s(O,2,"0");case"h":return Se(1);case"hh":return Se(2);case"a":return he(O,k,!0);case"A":return he(O,k,!1);case"m":return String(k);case"mm":return N.s(k,2,"0");case"s":return String(M.$s);case"ss":return N.s(M.$s,2,"0");case"SSS":return N.s(M.$ms,3,"0");case"Z":return x}return null}(ie)||x.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(b,M,S){var F,x=this,O=N.p(M),k=q(b),$=(k.utcOffset()-this.utcOffset())*e,U=this-k,J=function(){return N.m(x,k)};switch(O){case m:F=J()/12;break;case c:F=J();break;case f:F=J()/3;break;case u:F=(U-$)/6048e5;break;case a:F=(U-$)/864e5;break;case s:F=U/r;break;case i:F=U/e;break;case n:F=U/t;break;default:F=U}return S?F:N.a(F)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return L[this.$L]},v.locale=function(b,M){if(!b)return this.$L;var S=this.clone(),F=de(b,M,!0);return F&&(S.$L=F),S},v.clone=function(){return N.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},P}(),Le=se.prototype;return q.prototype=Le,[["$ms",o],["$s",n],["$m",i],["$H",s],["$W",a],["$M",c],["$y",m],["$D",p]].forEach(function(P){Le[P[1]]=function(v){return this.$g(v,P[0],P[1])}}),q.extend=function(P,v){return P.$i||(P(v,se,q),P.$i=!0),q},q.locale=de,q.isDayjs=z,q.unix=function(P){return q(1e3*P)},q.en=L[T],q.Ls=L,q.p={},q})});var Nl=A((Au,Eu)=>{(function(t,e){typeof Au=="object"&&typeof Eu<"u"?Eu.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(Au,function(){"use strict";return function(t,e,r){e.prototype.isToday=function(){var o="YYYY-MM-DD",n=r();return this.format(o)===n.format(o)}}})});var Wl=A((k9,Rl)=>{"use strict";Rl.exports=class{constructor(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.childrenVersion=0,this.childIndexCachedUpTo=null,this.cachedIndex=-1,this.cachedIndexVersion=NaN}get isAttached(){return!!(this.parent||this.previousSibling||this.nextSibling)}get hasChildren(){return!!this.firstChild}childrenChanged(){this.childrenVersion=this.childrenVersion+1&4294967295,this.childIndexCachedUpTo=null}getCachedIndex(e){return this.cachedIndexVersion!==e.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(e,r){this.cachedIndexVersion=e.childrenVersion,this.cachedIndex=r}}});var Ll=A((P9,Ul)=>{"use strict";Ul.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var jl=A((C9,Hl)=>{"use strict";var Bl=Symbol(),Yl=Symbol(),Ft=Symbol(),ql=Symbol(),ot=class{constructor(e,r,o,n){this[Bl]=e,this[Yl]=r,this[Ft]=o,this[ql]=n}next(){let e=this[Bl],r=this[ql],o=this[Yl];if(!this[Ft])return{done:!0,value:o};let n=this[Ft];return r===1?this[Ft]=e._node(n).previousSibling:r===2?this[Ft]=e._node(n).nextSibling:r===3?this[Ft]=e._node(n).parent:r===4?this[Ft]=e.preceding(n,{root:o}):this[Ft]=e.following(n,{root:o}),{done:!1,value:n}}};Object.defineProperty(ot.prototype,Symbol.iterator,{value:function(){return this},writable:!1});ot.PREV=1;ot.NEXT=2;ot.PARENT=3;ot.PRECEDING=4;ot.FOLLOWING=5;Object.freeze(ot);Object.freeze(ot.prototype);Hl.exports=ot});var Vl=A((N9,zl)=>{"use strict";var Pv=Wl(),$t=Ll(),Qe=jl();function Uu(){return!0}function Jr(t,e){return t[t.length-1-e]}var ls=class{constructor(e){this.symbol=Symbol(e||"SymbolTree data")}initialize(e){return this._node(e),e}_node(e){if(!e)return null;let r=e[this.symbol];return r||(e[this.symbol]=new Pv)}hasChildren(e){return this._node(e).hasChildren}firstChild(e){return this._node(e).firstChild}lastChild(e){return this._node(e).lastChild}previousSibling(e){return this._node(e).previousSibling}nextSibling(e){return this._node(e).nextSibling}parent(e){return this._node(e).parent}lastInclusiveDescendant(e){let r,o=e;for(;r=this._node(o).lastChild;)o=r;return o}preceding(e,r){let o=r&&r.root;if(e===o)return null;let n=this._node(e).previousSibling;return n?this.lastInclusiveDescendant(n):this._node(e).parent}following(e,r){let o=r&&r.root,i=!(r&&r.skipChildren)&&this._node(e).firstChild;if(i)return i;let s=e;do{if(s===o)return null;let a=this._node(s).nextSibling;if(a)return a;s=this._node(s).parent}while(s);return null}childrenToArray(e,r){let o=r&&r.array||[],n=r&&r.filter||Uu,i=r&&r.thisArg||void 0,s=this._node(e),a=s.firstChild,u=0;for(;a;){let c=this._node(a);c.setCachedIndex(s,u),n.call(i,a)&&o.push(a),a=c.nextSibling,++u}return o}ancestorsToArray(e,r){let o=r&&r.array||[],n=r&&r.filter||Uu,i=r&&r.thisArg||void 0,s=e;for(;s;)n.call(i,s)&&o.push(s),s=this._node(s).parent;return o}treeToArray(e,r){let o=r&&r.array||[],n=r&&r.filter||Uu,i=r&&r.thisArg||void 0,s=e;for(;s;)n.call(i,s)&&o.push(s),s=this.following(s,{root:e});return o}childrenIterator(e,r){let o=r&&r.reverse,n=this._node(e);return new Qe(this,e,o?n.lastChild:n.firstChild,o?Qe.PREV:Qe.NEXT)}previousSiblingsIterator(e){return new Qe(this,e,this._node(e).previousSibling,Qe.PREV)}nextSiblingsIterator(e){return new Qe(this,e,this._node(e).nextSibling,Qe.NEXT)}ancestorsIterator(e){return new Qe(this,e,e,Qe.PARENT)}treeIterator(e,r){let o=r&&r.reverse;return new Qe(this,e,o?this.lastInclusiveDescendant(e):e,o?Qe.PRECEDING:Qe.FOLLOWING)}index(e){let r=this._node(e),o=this._node(r.parent);if(!o)return-1;let n=r.getCachedIndex(o);if(n>=0)return n;n=0;let i=o.firstChild;if(o.childIndexCachedUpTo){let s=this._node(o.childIndexCachedUpTo);i=s.nextSibling,n=s.getCachedIndex(o)+1}for(;i;){let s=this._node(i);if(s.setCachedIndex(o,n),i===e)break;++n,i=s.nextSibling}return o.childIndexCachedUpTo=e,n}childrenCount(e){let r=this._node(e);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(e,r){if(e===r)return 0;let o=[];{let f=e;for(;f;){if(f===r)return $t.CONTAINS|$t.PRECEDING;o.push(f),f=this.parent(f)}}let n=[];{let f=r;for(;f;){if(f===e)return $t.CONTAINED_BY|$t.FOLLOWING;n.push(f),f=this.parent(f)}}let i=Jr(o,0);if(!i||i!==Jr(n,0))return $t.DISCONNECTED;let s=0,a=Math.min(o.length,n.length);for(let f=0;f<a;++f){let m=Jr(o,f),p=Jr(n,f);if(m!==p)break;s=f}let u=this.index(Jr(o,s+1));return this.index(Jr(n,s+1))<u?$t.PRECEDING:$t.FOLLOWING}remove(e){let r=this._node(e),o=this._node(r.parent),n=this._node(r.previousSibling),i=this._node(r.nextSibling);return o&&(o.firstChild===e&&(o.firstChild=r.nextSibling),o.lastChild===e&&(o.lastChild=r.previousSibling)),n&&(n.nextSibling=r.nextSibling),i&&(i.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,o&&o.childrenChanged(),e}insertBefore(e,r){let o=this._node(e),n=this._node(o.previousSibling),i=this._node(r),s=this._node(o.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=o.parent,i.previousSibling=o.previousSibling,i.nextSibling=e,o.previousSibling=r,n&&(n.nextSibling=r),s&&s.firstChild===e&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(e,r){let o=this._node(e),n=this._node(o.nextSibling),i=this._node(r),s=this._node(o.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=o.parent,i.previousSibling=e,i.nextSibling=o.nextSibling,o.nextSibling=r,n&&(n.previousSibling=r),s&&s.lastChild===e&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(e,r){let o=this._node(e),n=this._node(r);if(n.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.hasChildren?this.insertBefore(o.firstChild,r):(n.parent=e,o.firstChild=r,o.lastChild=r,o.childrenChanged()),r}appendChild(e,r){let o=this._node(e),n=this._node(r);if(n.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.hasChildren?this.insertAfter(o.lastChild,r):(n.parent=e,o.firstChild=r,o.lastChild=r,o.childrenChanged()),r}};zl.exports=ls;ls.TreePosition=$t});var np=A((Xr,Zr)=>{(function(t){var e=typeof Xr=="object"&&Xr&&!Xr.nodeType&&Xr,r=typeof Zr=="object"&&Zr&&!Zr.nodeType&&Zr,o=typeof global=="object"&&global;(o.global===o||o.window===o||o.self===o)&&(t=o);var n,i=2147483647,s=36,a=1,u=26,c=38,f=700,m=72,p=128,d="-",y=/^xn--/,w=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,I={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=s-a,T=Math.floor,L=String.fromCharCode,V;function z(x){throw new RangeError(I[x])}function de(x,O){for(var k=x.length,$=[];k--;)$[k]=O(x[k]);return $}function q(x,O){var k=x.split("@"),$="";k.length>1&&($=k[0]+"@",x=k[1]),x=x.replace(g,".");var U=x.split("."),J=de(U,O).join(".");return $+J}function N(x){for(var O=[],k=0,$=x.length,U,J;k<$;)U=x.charCodeAt(k++),U>=55296&&U<=56319&&k<$?(J=x.charCodeAt(k++),(J&64512)==56320?O.push(((U&1023)<<10)+(J&1023)+65536):(O.push(U),k--)):O.push(U);return O}function se(x){return de(x,function(O){var k="";return O>65535&&(O-=65536,k+=L(O>>>10&1023|55296),O=56320|O&1023),k+=L(O),k}).join("")}function Le(x){return x-48<10?x-22:x-65<26?x-65:x-97<26?x-97:s}function P(x,O){return x+22+75*(x<26)-((O!=0)<<5)}function v(x,O,k){var $=0;for(x=k?T(x/f):x>>1,x+=T(x/O);x>D*u>>1;$+=s)x=T(x/D);return T($+(D+1)*x/(x+c))}function b(x){var O=[],k=x.length,$,U=0,J=p,ne=m,ce,Se,he,ie,te,ye,Oe,Et,qt;for(ce=x.lastIndexOf(d),ce<0&&(ce=0),Se=0;Se<ce;++Se)x.charCodeAt(Se)>=128&&z("not-basic"),O.push(x.charCodeAt(Se));for(he=ce>0?ce+1:0;he<k;){for(ie=U,te=1,ye=s;he>=k&&z("invalid-input"),Oe=Le(x.charCodeAt(he++)),(Oe>=s||Oe>T((i-U)/te))&&z("overflow"),U+=Oe*te,Et=ye<=ne?a:ye>=ne+u?u:ye-ne,!(Oe<Et);ye+=s)qt=s-Et,te>T(i/qt)&&z("overflow"),te*=qt;$=O.length+1,ne=v(U-ie,$,ie==0),T(U/$)>i-J&&z("overflow"),J+=T(U/$),U%=$,O.splice(U++,0,J)}return se(O)}function M(x){var O,k,$,U,J,ne,ce,Se,he,ie,te,ye=[],Oe,Et,qt,Qs;for(x=N(x),Oe=x.length,O=p,k=0,J=m,ne=0;ne<Oe;++ne)te=x[ne],te<128&&ye.push(L(te));for($=U=ye.length,U&&ye.push(d);$<Oe;){for(ce=i,ne=0;ne<Oe;++ne)te=x[ne],te>=O&&te<ce&&(ce=te);for(Et=$+1,ce-O>T((i-k)/Et)&&z("overflow"),k+=(ce-O)*Et,O=ce,ne=0;ne<Oe;++ne)if(te=x[ne],te<O&&++k>i&&z("overflow"),te==O){for(Se=k,he=s;ie=he<=J?a:he>=J+u?u:he-J,!(Se<ie);he+=s)Qs=Se-ie,qt=s-ie,ye.push(L(P(ie+Qs%qt,0))),Se=T(Qs/qt);ye.push(L(P(Se,0))),J=v(k,Et,$==U),k=0,++$}++k,++O}return ye.join("")}function S(x){return q(x,function(O){return y.test(O)?b(O.slice(4).toLowerCase()):O})}function F(x){return q(x,function(O){return w.test(O)?"xn--"+M(O):O})}if(n={version:"1.4.1",ucs2:{decode:N,encode:se},decode:b,encode:M,toASCII:F,toUnicode:S},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return n});else if(e&&r)if(Zr.exports==e)r.exports=n;else for(V in n)n.hasOwnProperty(V)&&(e[V]=n[V]);else t.punycode=n})(Xr)});var xr=A((PV,ip)=>{"use strict";ip.exports=TypeError});var sp=A(()=>{});var ln=A((FV,Mp)=>{var ic=typeof Map=="function"&&Map.prototype,Qu=Object.getOwnPropertyDescriptor&&ic?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ds=ic&&Qu&&typeof Qu.get=="function"?Qu.get:null,ap=ic&&Map.prototype.forEach,sc=typeof Set=="function"&&Set.prototype,Ju=Object.getOwnPropertyDescriptor&&sc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,hs=sc&&Ju&&typeof Ju.get=="function"?Ju.get:null,up=sc&&Set.prototype.forEach,uw=typeof WeakMap=="function"&&WeakMap.prototype,cn=uw?WeakMap.prototype.has:null,cw=typeof WeakSet=="function"&&WeakSet.prototype,fn=cw?WeakSet.prototype.has:null,fw=typeof WeakRef=="function"&&WeakRef.prototype,cp=fw?WeakRef.prototype.deref:null,lw=Boolean.prototype.valueOf,pw=Object.prototype.toString,mw=Function.prototype.toString,dw=String.prototype.match,ac=String.prototype.slice,Ut=String.prototype.replace,hw=String.prototype.toUpperCase,fp=String.prototype.toLowerCase,bp=RegExp.prototype.test,lp=Array.prototype.concat,ut=Array.prototype.join,yw=Array.prototype.slice,pp=Math.floor,ec=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Xu=Object.getOwnPropertySymbols,tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,eo=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===eo||!0)?Symbol.toStringTag:null,vp=Object.prototype.propertyIsEnumerable,mp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function dp(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||bp.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var o=t<0?-pp(-t):pp(t);if(o!==t){var n=String(o),i=ac.call(e,n.length+1);return Ut.call(n,r,"$&_")+"."+Ut.call(Ut.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ut.call(e,r,"$&_")}var rc=sp(),hp=rc.custom,yp=Dp(hp)?hp:null,wp={__proto__:null,double:'"',single:"'"},xw={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Mp.exports=function t(e,r,o,n){var i=r||{};if(Ot(i,"quoteStyle")&&!Ot(wp,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ot(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Ot(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ot(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ot(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Op(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?dp(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?dp(e,c):c}var f=typeof i.depth>"u"?5:i.depth;if(typeof o>"u"&&(o=0),o>=f&&f>0&&typeof e=="object")return oc(e)?"[Array]":"[Object]";var m=Fw(i,o);if(typeof n>"u")n=[];else if(Tp(n,e)>=0)return"[Circular]";function p(v,b,M){if(b&&(n=yw.call(n),n.push(b)),M){var S={depth:i.depth};return Ot(i,"quoteStyle")&&(S.quoteStyle=i.quoteStyle),t(v,S,o+1,n)}return t(v,i,o+1,n)}if(typeof e=="function"&&!xp(e)){var d=Mw(e),y=ms(e,p);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+ut.call(y,", ")+" }":"")}if(Dp(e)){var w=eo?Ut.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):tc.call(e);return typeof e=="object"&&!eo?un(w):w}if(Pw(e)){for(var g="<"+fp.call(String(e.nodeName)),I=e.attributes||[],D=0;D<I.length;D++)g+=" "+I[D].name+"="+Sp(gw(I[D].value),"double",i);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+fp.call(String(e.nodeName))+">",g}if(oc(e)){if(e.length===0)return"[]";var T=ms(e,p);return m&&!Nw(T)?"["+nc(T,m)+"]":"[ "+ut.call(T,", ")+" ]"}if(vw(e)){var L=ms(e,p);return!("cause"in Error.prototype)&&"cause"in e&&!vp.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(lp.call("[cause]: "+p(e.cause),L),", ")+" }":L.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(L,", ")+" }"}if(typeof e=="object"&&s){if(yp&&typeof e[yp]=="function"&&rc)return rc(e,{depth:f-o});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(_w(e)){var V=[];return ap&&ap.call(e,function(v,b){V.push(p(b,e,!0)+" => "+p(v,e))}),gp("Map",ds.call(e),V,m)}if(Ew(e)){var z=[];return up&&up.call(e,function(v){z.push(p(v,e))}),gp("Set",hs.call(e),z,m)}if(Iw(e))return Zu("WeakMap");if(kw(e))return Zu("WeakSet");if(Aw(e))return Zu("WeakRef");if(Sw(e))return un(p(Number(e)));if(Tw(e))return un(p(ec.call(e)));if(Dw(e))return un(lw.call(e));if(ww(e))return un(p(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof global<"u"&&e===global)return"{ [object globalThis] }";if(!bw(e)&&!xp(e)){var de=ms(e,p),q=mp?mp(e)===Object.prototype:e instanceof Object||e.constructor===Object,N=e instanceof Object?"":"null prototype",se=!q&&Pe&&Object(e)===e&&Pe in e?ac.call(Lt(e),8,-1):N?"Object":"",Le=q||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",P=Le+(se||N?"["+ut.call(lp.call([],se||[],N||[]),": ")+"] ":"");return de.length===0?P+"{}":m?P+"{"+nc(de,m)+"}":P+"{ "+ut.call(de,", ")+" }"}return String(e)};function Sp(t,e,r){var o=r.quoteStyle||e,n=wp[o];return n+t+n}function gw(t){return Ut.call(String(t),/"/g,""")}function oc(t){return Lt(t)==="[object Array]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function bw(t){return Lt(t)==="[object Date]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function xp(t){return Lt(t)==="[object RegExp]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function vw(t){return Lt(t)==="[object Error]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function ww(t){return Lt(t)==="[object String]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Sw(t){return Lt(t)==="[object Number]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Dw(t){return Lt(t)==="[object Boolean]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Dp(t){if(eo)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!tc)return!1;try{return tc.call(t),!0}catch{}return!1}function Tw(t){if(!t||typeof t!="object"||!ec)return!1;try{return ec.call(t),!0}catch{}return!1}var Ow=Object.prototype.hasOwnProperty||function(t){return t in this};function Ot(t,e){return Ow.call(t,e)}function Lt(t){return pw.call(t)}function Mw(t){if(t.name)return t.name;var e=dw.call(mw.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Tp(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function _w(t){if(!ds||!t||typeof t!="object")return!1;try{ds.call(t);try{hs.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Iw(t){if(!cn||!t||typeof t!="object")return!1;try{cn.call(t,cn);try{fn.call(t,fn)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Aw(t){if(!cp||!t||typeof t!="object")return!1;try{return cp.call(t),!0}catch{}return!1}function Ew(t){if(!hs||!t||typeof t!="object")return!1;try{hs.call(t);try{ds.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function kw(t){if(!fn||!t||typeof t!="object")return!1;try{fn.call(t,fn);try{cn.call(t,cn)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Pw(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Op(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return Op(ac.call(t,0,e.maxStringLength),e)+o}var n=xw[e.quoteStyle||"single"];n.lastIndex=0;var i=Ut.call(Ut.call(t,n,"\\$1"),/[\x00-\x1f]/g,Cw);return Sp(i,"single",e)}function Cw(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+hw.call(e.toString(16))}function un(t){return"Object("+t+")"}function Zu(t){return t+" { ? }"}function gp(t,e,r,o){var n=o?nc(r,o):ut.call(r,", ");return t+" ("+e+") {"+n+"}"}function Nw(t){for(var e=0;e<t.length;e++)if(Tp(t[e],`
|
|
2
2
|
`)>=0)return!1;return!0}function Fw(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=ut.call(Array(t.indent+1)," ");else return null;return{base:r,prev:ut.call(Array(e+1),r)}}function nc(t,e){if(t.length===0)return"";var r=`
|
|
3
3
|
`+e.prev+e.base;return r+ut.call(t,","+r)+`
|
|
4
4
|
`+e.prev}function ms(t,e){var r=oc(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Ot(t,n)?e(t[n],t):""}var i=typeof Xu=="function"?Xu(t):[],s;if(eo){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)Ot(t,u)&&(r&&String(Number(u))===u&&u<t.length||eo&&s["$"+u]instanceof Symbol||(bp.call(/[^\w$]/,u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if(typeof Xu=="function")for(var c=0;c<i.length;c++)vp.call(t,i[c])&&o.push("["+e(i[c])+"]: "+e(t[i[c]],t));return o}});var Ip=A(($V,_p)=>{"use strict";var $w=ln(),Rw=xr(),ys=function(t,e,r){for(var o=t,n;(n=o.next)!=null;o=n)if(n.key===e)return o.next=n.next,r||(n.next=t.next,t.next=n),n},Ww=function(t,e){if(t){var r=ys(t,e);return r&&r.value}},Uw=function(t,e,r){var o=ys(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}},Lw=function(t,e){return t?!!ys(t,e):!1},Bw=function(t,e){if(t)return ys(t,e,!0)};_p.exports=function(){var e,r={assert:function(o){if(!r.has(o))throw new Rw("Side channel does not contain "+$w(o))},delete:function(o){var n=e&&e.next,i=Bw(e,o);return i&&n&&n===i&&(e=void 0),!!i},get:function(o){return Ww(e,o)},has:function(o){return Lw(e,o)},set:function(o,n){e||(e={next:void 0}),Uw(e,o,n)}};return r}});var uc=A((RV,Ap)=>{"use strict";Ap.exports=Object});var kp=A((WV,Ep)=>{"use strict";Ep.exports=Error});var Cp=A((UV,Pp)=>{"use strict";Pp.exports=EvalError});var Fp=A((LV,Np)=>{"use strict";Np.exports=RangeError});var Rp=A((BV,$p)=>{"use strict";$p.exports=ReferenceError});var Up=A((YV,Wp)=>{"use strict";Wp.exports=SyntaxError});var Bp=A((qV,Lp)=>{"use strict";Lp.exports=URIError});var qp=A((HV,Yp)=>{"use strict";Yp.exports=Math.abs});var jp=A((jV,Hp)=>{"use strict";Hp.exports=Math.floor});var Vp=A((zV,zp)=>{"use strict";zp.exports=Math.max});var Kp=A((VV,Gp)=>{"use strict";Gp.exports=Math.min});var Jp=A((GV,Qp)=>{"use strict";Qp.exports=Math.pow});var Zp=A((KV,Xp)=>{"use strict";Xp.exports=Math.round});var tm=A((QV,em)=>{"use strict";em.exports=Number.isNaN||function(e){return e!==e}});var om=A((JV,rm)=>{"use strict";var Yw=tm();rm.exports=function(e){return Yw(e)||e===0?e:e<0?-1:1}});var im=A((XV,nm)=>{"use strict";nm.exports=Object.getOwnPropertyDescriptor});var cc=A((ZV,sm)=>{"use strict";var xs=im();if(xs)try{xs([],"length")}catch{xs=null}sm.exports=xs});var um=A((eG,am)=>{"use strict";var gs=Object.defineProperty||!1;if(gs)try{gs({},"a",{value:1})}catch{gs=!1}am.exports=gs});var fm=A((tG,cm)=>{"use strict";cm.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var n=42;e[r]=n;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==n||a.enumerable!==!0)return!1}return!0}});var mm=A((rG,pm)=>{"use strict";var lm=typeof Symbol<"u"&&Symbol,qw=fm();pm.exports=function(){return typeof lm!="function"||typeof Symbol!="function"||typeof lm("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:qw()}});var fc=A((oG,dm)=>{"use strict";dm.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var lc=A((nG,hm)=>{"use strict";var Hw=uc();hm.exports=Hw.getPrototypeOf||null});var gm=A((iG,xm)=>{"use strict";var jw="Function.prototype.bind called on incompatible ",zw=Object.prototype.toString,Vw=Math.max,Gw="[object Function]",ym=function(e,r){for(var o=[],n=0;n<e.length;n+=1)o[n]=e[n];for(var i=0;i<r.length;i+=1)o[i+e.length]=r[i];return o},Kw=function(e,r){for(var o=[],n=r||0,i=0;n<e.length;n+=1,i+=1)o[i]=e[n];return o},Qw=function(t,e){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=e);return r};xm.exports=function(e){var r=this;if(typeof r!="function"||zw.apply(r)!==Gw)throw new TypeError(jw+r);for(var o=Kw(arguments,1),n,i=function(){if(this instanceof n){var f=r.apply(this,ym(o,arguments));return Object(f)===f?f:this}return r.apply(e,ym(o,arguments))},s=Vw(0,r.length-o.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(n=Function("binder","return function ("+Qw(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var c=function(){};c.prototype=r.prototype,n.prototype=new c,c.prototype=null}return n}});var pn=A((sG,bm)=>{"use strict";var Jw=gm();bm.exports=Function.prototype.bind||Jw});var bs=A((aG,vm)=>{"use strict";vm.exports=Function.prototype.call});var pc=A((uG,wm)=>{"use strict";wm.exports=Function.prototype.apply});var Dm=A((cG,Sm)=>{"use strict";Sm.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Om=A((fG,Tm)=>{"use strict";var Xw=pn(),Zw=pc(),eS=bs(),tS=Dm();Tm.exports=tS||Xw.call(eS,Zw)});var mc=A((lG,Mm)=>{"use strict";var rS=pn(),oS=xr(),nS=bs(),iS=Om();Mm.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new oS("a function is required");return iS(rS,nS,e)}});var Pm=A((pG,km)=>{"use strict";var sS=mc(),_m=cc(),Am;try{Am=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var dc=!!Am&&_m&&_m(Object.prototype,"__proto__"),Em=Object,Im=Em.getPrototypeOf;km.exports=dc&&typeof dc.get=="function"?sS([dc.get]):typeof Im=="function"?function(e){return Im(e==null?e:Em(e))}:!1});var Rm=A((mG,$m)=>{"use strict";var Cm=fc(),Nm=lc(),Fm=Pm();$m.exports=Cm?function(e){return Cm(e)}:Nm?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return Nm(e)}:Fm?function(e){return Fm(e)}:null});var Um=A((dG,Wm)=>{"use strict";var aS=Function.prototype.call,uS=Object.prototype.hasOwnProperty,cS=pn();Wm.exports=cS.call(aS,uS)});var Ss=A((hG,jm)=>{"use strict";var Y,fS=uc(),lS=kp(),pS=Cp(),mS=Fp(),dS=Rp(),no=Up(),oo=xr(),hS=Bp(),yS=qp(),xS=jp(),gS=Vp(),bS=Kp(),vS=Jp(),wS=Zp(),SS=om(),qm=Function,hc=function(t){try{return qm('"use strict"; return ('+t+").constructor;")()}catch{}},mn=cc(),DS=um(),yc=function(){throw new oo},TS=mn?function(){try{return arguments.callee,yc}catch{try{return mn(arguments,"callee").get}catch{return yc}}}():yc,to=mm()(),we=Rm(),OS=lc(),MS=fc(),Hm=pc(),dn=bs(),ro={},_S=typeof Uint8Array>"u"||!we?Y:we(Uint8Array),gr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Y:ArrayBuffer,"%ArrayIteratorPrototype%":to&&we?we([][Symbol.iterator]()):Y,"%AsyncFromSyncIteratorPrototype%":Y,"%AsyncFunction%":ro,"%AsyncGenerator%":ro,"%AsyncGeneratorFunction%":ro,"%AsyncIteratorPrototype%":ro,"%Atomics%":typeof Atomics>"u"?Y:Atomics,"%BigInt%":typeof BigInt>"u"?Y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":lS,"%eval%":eval,"%EvalError%":pS,"%Float32Array%":typeof Float32Array>"u"?Y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Y:FinalizationRegistry,"%Function%":qm,"%GeneratorFunction%":ro,"%Int8Array%":typeof Int8Array>"u"?Y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":to&&we?we(we([][Symbol.iterator]())):Y,"%JSON%":typeof JSON=="object"?JSON:Y,"%Map%":typeof Map>"u"?Y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!to||!we?Y:we(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":fS,"%Object.getOwnPropertyDescriptor%":mn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Y:Promise,"%Proxy%":typeof Proxy>"u"?Y:Proxy,"%RangeError%":mS,"%ReferenceError%":dS,"%Reflect%":typeof Reflect>"u"?Y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!to||!we?Y:we(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":to&&we?we(""[Symbol.iterator]()):Y,"%Symbol%":to?Symbol:Y,"%SyntaxError%":no,"%ThrowTypeError%":TS,"%TypedArray%":_S,"%TypeError%":oo,"%Uint8Array%":typeof Uint8Array>"u"?Y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Y:Uint32Array,"%URIError%":hS,"%WeakMap%":typeof WeakMap>"u"?Y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Y:WeakSet,"%Function.prototype.call%":dn,"%Function.prototype.apply%":Hm,"%Object.defineProperty%":DS,"%Object.getPrototypeOf%":OS,"%Math.abs%":yS,"%Math.floor%":xS,"%Math.max%":gS,"%Math.min%":bS,"%Math.pow%":vS,"%Math.round%":wS,"%Math.sign%":SS,"%Reflect.getPrototypeOf%":MS};if(we)try{null.error}catch(t){Lm=we(we(t)),gr["%Error.prototype%"]=Lm}var Lm,IS=function t(e){var r;if(e==="%AsyncFunction%")r=hc("async function () {}");else if(e==="%GeneratorFunction%")r=hc("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=hc("async function* () {}");else if(e==="%AsyncGenerator%"){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var n=t("%AsyncGenerator%");n&&we&&(r=we(n.prototype))}return gr[e]=r,r},Bm={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},hn=pn(),vs=Um(),AS=hn.call(dn,Array.prototype.concat),ES=hn.call(Hm,Array.prototype.splice),Ym=hn.call(dn,String.prototype.replace),ws=hn.call(dn,String.prototype.slice),kS=hn.call(dn,RegExp.prototype.exec),PS=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,CS=/\\(\\)?/g,NS=function(e){var r=ws(e,0,1),o=ws(e,-1);if(r==="%"&&o!=="%")throw new no("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&r!=="%")throw new no("invalid intrinsic syntax, expected opening `%`");var n=[];return Ym(e,PS,function(i,s,a,u){n[n.length]=a?Ym(u,CS,"$1"):s||i}),n},FS=function(e,r){var o=e,n;if(vs(Bm,o)&&(n=Bm[o],o="%"+n[0]+"%"),vs(gr,o)){var i=gr[o];if(i===ro&&(i=IS(o)),typeof i>"u"&&!r)throw new oo("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new no("intrinsic "+e+" does not exist!")};jm.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new oo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new oo('"allowMissing" argument must be a boolean');if(kS(/^%?[^%]*%?$/,e)===null)throw new no("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=NS(e),n=o.length>0?o[0]:"",i=FS("%"+n+"%",r),s=i.name,a=i.value,u=!1,c=i.alias;c&&(n=c[0],ES(o,AS([0,1],c)));for(var f=1,m=!0;f<o.length;f+=1){var p=o[f],d=ws(p,0,1),y=ws(p,-1);if((d==='"'||d==="'"||d==="`"||y==='"'||y==="'"||y==="`")&&d!==y)throw new no("property names with quotes must have matching quotes");if((p==="constructor"||!m)&&(u=!0),n+="."+p,s="%"+n+"%",vs(gr,s))a=gr[s];else if(a!=null){if(!(p in a)){if(!r)throw new oo("base intrinsic for "+e+" exists, but the property is not available.");return}if(mn&&f+1>=o.length){var w=mn(a,p);m=!!w,m&&"get"in w&&!("originalValue"in w.get)?a=w.get:a=a[p]}else m=vs(a,p),a=a[p];m&&!u&&(gr[s]=a)}}return a}});var xc=A((yG,Gm)=>{"use strict";var zm=Ss(),Vm=mc(),$S=Vm([zm("%String.prototype.indexOf%")]);Gm.exports=function(e,r){var o=zm(e,!!r);return typeof o=="function"&&$S(e,".prototype.")>-1?Vm([o]):o}});var gc=A((xG,Qm)=>{"use strict";var RS=Ss(),yn=xc(),WS=ln(),US=xr(),Km=RS("%Map%",!0),LS=yn("Map.prototype.get",!0),BS=yn("Map.prototype.set",!0),YS=yn("Map.prototype.has",!0),qS=yn("Map.prototype.delete",!0),HS=yn("Map.prototype.size",!0);Qm.exports=!!Km&&function(){var e,r={assert:function(o){if(!r.has(o))throw new US("Side channel does not contain "+WS(o))},delete:function(o){if(e){var n=qS(e,o);return HS(e)===0&&(e=void 0),n}return!1},get:function(o){if(e)return LS(e,o)},has:function(o){return e?YS(e,o):!1},set:function(o,n){e||(e=new Km),BS(e,o,n)}};return r}});var Xm=A((gG,Jm)=>{"use strict";var jS=Ss(),Ts=xc(),zS=ln(),Ds=gc(),VS=xr(),io=jS("%WeakMap%",!0),GS=Ts("WeakMap.prototype.get",!0),KS=Ts("WeakMap.prototype.set",!0),QS=Ts("WeakMap.prototype.has",!0),JS=Ts("WeakMap.prototype.delete",!0);Jm.exports=io?function(){var e,r,o={assert:function(n){if(!o.has(n))throw new VS("Side channel does not contain "+zS(n))},delete:function(n){if(io&&n&&(typeof n=="object"||typeof n=="function")){if(e)return JS(e,n)}else if(Ds&&r)return r.delete(n);return!1},get:function(n){return io&&n&&(typeof n=="object"||typeof n=="function")&&e?GS(e,n):r&&r.get(n)},has:function(n){return io&&n&&(typeof n=="object"||typeof n=="function")&&e?QS(e,n):!!r&&r.has(n)},set:function(n,i){io&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new io),KS(e,n,i)):Ds&&(r||(r=Ds()),r.set(n,i))}};return o}:Ds});var ed=A((bG,Zm)=>{"use strict";var XS=xr(),ZS=ln(),eD=Ip(),tD=gc(),rD=Xm(),oD=rD||tD||eD;Zm.exports=function(){var e,r={assert:function(o){if(!r.has(o))throw new XS("Side channel does not contain "+ZS(o))},delete:function(o){return!!e&&e.delete(o)},get:function(o){return e&&e.get(o)},has:function(o){return!!e&&e.has(o)},set:function(o,n){e||(e=oD()),e.set(o,n)}};return r}});var Os=A((vG,td)=>{"use strict";var nD=String.prototype.replace,iD=/%20/g,bc={RFC1738:"RFC1738",RFC3986:"RFC3986"};td.exports={default:bc.RFC3986,formatters:{RFC1738:function(t){return nD.call(t,iD,"+")},RFC3986:function(t){return String(t)}},RFC1738:bc.RFC1738,RFC3986:bc.RFC3986}});var Sc=A((wG,od)=>{"use strict";var sD=Os(),vc=Object.prototype.hasOwnProperty,br=Array.isArray,ct=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),aD=function(e){for(;e.length>1;){var r=e.pop(),o=r.obj[r.prop];if(br(o)){for(var n=[],i=0;i<o.length;++i)typeof o[i]<"u"&&n.push(o[i]);r.obj[r.prop]=n}}},rd=function(e,r){for(var o=r&&r.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)typeof e[n]<"u"&&(o[n]=e[n]);return o},uD=function t(e,r,o){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(br(e))e.push(r);else if(e&&typeof e=="object")(o&&(o.plainObjects||o.allowPrototypes)||!vc.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var n=e;return br(e)&&!br(r)&&(n=rd(e,o)),br(e)&&br(r)?(r.forEach(function(i,s){if(vc.call(e,s)){var a=e[s];a&&typeof a=="object"&&i&&typeof i=="object"?e[s]=t(a,i,o):e.push(i)}else e[s]=i}),e):Object.keys(r).reduce(function(i,s){var a=r[s];return vc.call(i,s)?i[s]=t(i[s],a,o):i[s]=a,i},n)},cD=function(e,r){return Object.keys(r).reduce(function(o,n){return o[n]=r[n],o},e)},fD=function(t,e,r){var o=t.replace(/\+/g," ");if(r==="iso-8859-1")return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch{return o}},wc=1024,lD=function(e,r,o,n,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),o==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;u+=wc){for(var c=s.length>=wc?s.slice(u,u+wc):s,f=[],m=0;m<c.length;++m){var p=c.charCodeAt(m);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===sD.RFC1738&&(p===40||p===41)){f[f.length]=c.charAt(m);continue}if(p<128){f[f.length]=ct[p];continue}if(p<2048){f[f.length]=ct[192|p>>6]+ct[128|p&63];continue}if(p<55296||p>=57344){f[f.length]=ct[224|p>>12]+ct[128|p>>6&63]+ct[128|p&63];continue}m+=1,p=65536+((p&1023)<<10|c.charCodeAt(m)&1023),f[f.length]=ct[240|p>>18]+ct[128|p>>12&63]+ct[128|p>>6&63]+ct[128|p&63]}a+=f.join("")}return a},pD=function(e){for(var r=[{obj:{o:e},prop:"o"}],o=[],n=0;n<r.length;++n)for(var i=r[n],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],f=s[c];typeof f=="object"&&f!==null&&o.indexOf(f)===-1&&(r.push({obj:s,prop:c}),o.push(f))}return aD(r),e},mD=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},dD=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},hD=function(e,r){return[].concat(e,r)},yD=function(e,r){if(br(e)){for(var o=[],n=0;n<e.length;n+=1)o.push(r(e[n]));return o}return r(e)};od.exports={arrayToObject:rd,assign:cD,combine:hD,compact:pD,decode:fD,encode:lD,isBuffer:dD,isRegExp:mD,maybeMap:yD,merge:uD}});var cd=A((SG,ud)=>{"use strict";var id=ed(),Ms=Sc(),xn=Os(),xD=Object.prototype.hasOwnProperty,sd={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},ft=Array.isArray,gD=Array.prototype.push,ad=function(t,e){gD.apply(t,ft(e)?e:[e])},bD=Date.prototype.toISOString,nd=xn.default,me={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ms.encode,encodeValuesOnly:!1,filter:void 0,format:nd,formatter:xn.formatters[nd],indices:!1,serializeDate:function(e){return bD.call(e)},skipNulls:!1,strictNullHandling:!1},vD=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Dc={},wD=function t(e,r,o,n,i,s,a,u,c,f,m,p,d,y,w,g,I,D){for(var T=e,L=D,V=0,z=!1;(L=L.get(Dc))!==void 0&&!z;){var de=L.get(e);if(V+=1,typeof de<"u"){if(de===V)throw new RangeError("Cyclic object value");z=!0}typeof L.get(Dc)>"u"&&(V=0)}if(typeof f=="function"?T=f(r,T):T instanceof Date?T=d(T):o==="comma"&&ft(T)&&(T=Ms.maybeMap(T,function(k){return k instanceof Date?d(k):k})),T===null){if(s)return c&&!g?c(r,me.encoder,I,"key",y):r;T=""}if(vD(T)||Ms.isBuffer(T)){if(c){var q=g?r:c(r,me.encoder,I,"key",y);return[w(q)+"="+w(c(T,me.encoder,I,"value",y))]}return[w(r)+"="+w(String(T))]}var N=[];if(typeof T>"u")return N;var se;if(o==="comma"&&ft(T))g&&c&&(T=Ms.maybeMap(T,c)),se=[{value:T.length>0?T.join(",")||null:void 0}];else if(ft(f))se=f;else{var Le=Object.keys(T);se=m?Le.sort(m):Le}var P=u?String(r).replace(/\./g,"%2E"):String(r),v=n&&ft(T)&&T.length===1?P+"[]":P;if(i&&ft(T)&&T.length===0)return v+"[]";for(var b=0;b<se.length;++b){var M=se[b],S=typeof M=="object"&&M&&typeof M.value<"u"?M.value:T[M];if(!(a&&S===null)){var F=p&&u?String(M).replace(/\./g,"%2E"):String(M),x=ft(T)?typeof o=="function"?o(v,F):v:v+(p?"."+F:"["+F+"]");D.set(e,V);var O=id();O.set(Dc,D),ad(N,t(S,x,o,n,i,s,a,u,o==="comma"&&g&&ft(T)?null:c,f,m,p,d,y,w,g,I,O))}}return N},SD=function(e){if(!e)return me;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||me.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=xn.default;if(typeof e.format<"u"){if(!xD.call(xn.formatters,e.format))throw new TypeError("Unknown format option provided.");o=e.format}var n=xn.formatters[o],i=me.filter;(typeof e.filter=="function"||ft(e.filter))&&(i=e.filter);var s;if(e.arrayFormat in sd?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=me.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:me.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:me.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:me.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:me.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?me.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:me.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:me.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:me.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:me.encodeValuesOnly,filter:i,format:o,formatter:n,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:me.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:me.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:me.strictNullHandling}};ud.exports=function(t,e){var r=t,o=SD(e),n,i;typeof o.filter=="function"?(i=o.filter,r=i("",r)):ft(o.filter)&&(i=o.filter,n=i);var s=[];if(typeof r!="object"||r===null)return"";var a=sd[o.arrayFormat],u=a==="comma"&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var c=id(),f=0;f<n.length;++f){var m=n[f],p=r[m];o.skipNulls&&p===null||ad(s,wD(p,m,a,u,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,c))}var d=s.join(o.delimiter),y=o.addQueryPrefix===!0?"?":"";return o.charsetSentinel&&(o.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),d.length>0?y+d:""}});var pd=A((DG,ld)=>{"use strict";var so=Sc(),Tc=Object.prototype.hasOwnProperty,DD=Array.isArray,ue={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:so.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},TD=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},fd=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},OD="utf8=%26%2310003%3B",MD="utf8=%E2%9C%93",_D=function(e,r){var o={__proto__:null},n=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=n.split(r.delimiter,i),a=-1,u,c=r.charset;if(r.charsetSentinel)for(u=0;u<s.length;++u)s[u].indexOf("utf8=")===0&&(s[u]===MD?c="utf-8":s[u]===OD&&(c="iso-8859-1"),a=u,u=s.length);for(u=0;u<s.length;++u)if(u!==a){var f=s[u],m=f.indexOf("]="),p=m===-1?f.indexOf("="):m+1,d,y;p===-1?(d=r.decoder(f,ue.decoder,c,"key"),y=r.strictNullHandling?null:""):(d=r.decoder(f.slice(0,p),ue.decoder,c,"key"),y=so.maybeMap(fd(f.slice(p+1),r),function(g){return r.decoder(g,ue.decoder,c,"value")})),y&&r.interpretNumericEntities&&c==="iso-8859-1"&&(y=TD(String(y))),f.indexOf("[]=")>-1&&(y=DD(y)?[y]:y);var w=Tc.call(o,d);w&&r.duplicates==="combine"?o[d]=so.combine(o[d],y):(!w||r.duplicates==="last")&&(o[d]=y)}return o},ID=function(t,e,r,o){for(var n=o?e:fd(e,r),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&(n===""||r.strictNullHandling&&n===null)?[]:[].concat(n);else{s=r.plainObjects?{__proto__:null}:{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=r.decodeDotInKeys?u.replace(/%2E/g,"."):u,f=parseInt(c,10);!r.parseArrays&&c===""?s={0:n}:!isNaN(f)&&a!==c&&String(f)===c&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(s=[],s[f]=n):c!=="__proto__"&&(s[c]=n)}n=s}return n},AD=function(e,r,o,n){if(e){var i=o.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=o.depth>0&&s.exec(i),c=u?i.slice(0,u.index):i,f=[];if(c){if(!o.plainObjects&&Tc.call(Object.prototype,c)&&!o.allowPrototypes)return;f.push(c)}for(var m=0;o.depth>0&&(u=a.exec(i))!==null&&m<o.depth;){if(m+=1,!o.plainObjects&&Tc.call(Object.prototype,u[1].slice(1,-1))&&!o.allowPrototypes)return;f.push(u[1])}if(u){if(o.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+o.depth+" and strictDepth is true");f.push("["+i.slice(u.index)+"]")}return ID(f,r,o,n)}},ED=function(e){if(!e)return ue;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?ue.charset:e.charset,o=typeof e.duplicates>"u"?ue.duplicates:e.duplicates;if(o!=="combine"&&o!=="first"&&o!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var n=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:ue.allowDots:!!e.allowDots;return{allowDots:n,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:ue.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:ue.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:ue.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:ue.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:ue.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:ue.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:ue.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:ue.decoder,delimiter:typeof e.delimiter=="string"||so.isRegExp(e.delimiter)?e.delimiter:ue.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:ue.depth,duplicates:o,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:ue.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:ue.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:ue.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:ue.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:ue.strictNullHandling}};ld.exports=function(t,e){var r=ED(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var o=typeof t=="string"?_D(t,r):t,n=r.plainObjects?{__proto__:null}:{},i=Object.keys(o),s=0;s<i.length;++s){var a=i[s],u=AD(a,o[a],r,typeof t=="string");n=so.merge(n,u,r)}return r.allowSparse===!0?n:so.compact(n)}});var dd=A((TG,md)=>{"use strict";var kD=cd(),PD=pd(),CD=Os();md.exports={formats:CD,parse:PD,stringify:kD}});var gd=A(uo=>{"use strict";var ND=np();function Je(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var FD=/^([a-z0-9.+-]+:)/i,$D=/:[0-9]*$/,RD=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,WD=["<",">",'"',"`"," ","\r",`
|
|
5
|
-
`," "],UD=["{","}","|","\\","^","`"].concat(WD),Oc=["'"].concat(UD),hd=["%","/","?",";","#"].concat(Oc),yd=["/","?","#"],LD=255,xd=/^[+a-z0-9A-Z_-]{0,63}$/,BD=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,YD={javascript:!0,"javascript:":!0},Mc={javascript:!0,"javascript:":!0},ao={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_c=dd();function gn(t,e,r){if(t&&typeof t=="object"&&t instanceof Je)return t;var o=new Je;return o.parse(t,e,r),o}Je.prototype.parse=function(t,e,r){if(typeof t!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),n=o!==-1&&o<t.indexOf("#")?"?":"#",i=t.split(n),s=/\\/g;i[0]=i[0].replace(s,"/"),t=i.join(n);var a=t;if(a=a.trim(),!r&&t.split("#").length===1){var u=RD.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=_c.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var c=FD.exec(a);if(c){c=c[0];var f=c.toLowerCase();this.protocol=f,a=a.substr(c.length)}if(r||c||a.match(/^\/\/[^@/]+@[^@/]+/)){var m=a.substr(0,2)==="//";m&&!(c&&Mc[c])&&(a=a.substr(2),this.slashes=!0)}if(!Mc[c]&&(m||c&&!ao[c])){for(var p=-1,d=0;d<yd.length;d++){var y=a.indexOf(yd[d]);y!==-1&&(p===-1||y<p)&&(p=y)}var w,g;p===-1?g=a.lastIndexOf("@"):g=a.lastIndexOf("@",p),g!==-1&&(w=a.slice(0,g),a=a.slice(g+1),this.auth=decodeURIComponent(w)),p=-1;for(var d=0;d<hd.length;d++){var y=a.indexOf(hd[d]);y!==-1&&(p===-1||y<p)&&(p=y)}p===-1&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var I=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!I)for(var D=this.hostname.split(/\./),d=0,T=D.length;d<T;d++){var L=D[d];if(L&&!L.match(xd)){for(var V="",z=0,de=L.length;z<de;z++)L.charCodeAt(z)>127?V+="x":V+=L[z];if(!V.match(xd)){var q=D.slice(0,d),N=D.slice(d+1),se=L.match(BD);se&&(q.push(se[1]),N.unshift(se[2])),N.length&&(a="/"+N.join(".")+a),this.hostname=q.join(".");break}}}this.hostname.length>LD?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=ND.toASCII(this.hostname));var Le=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+Le,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!YD[f])for(var d=0,T=Oc.length;d<T;d++){var v=Oc[d];if(a.indexOf(v)!==-1){var b=encodeURIComponent(v);b===v&&(b=escape(v)),a=a.split(v).join(b)}}var M=a.indexOf("#");M!==-1&&(this.hash=a.substr(M),a=a.slice(0,M));var S=a.indexOf("?");if(S!==-1?(this.search=a.substr(S),this.query=a.substr(S+1),e&&(this.query=_c.parse(this.query)),a=a.slice(0,S)):e&&(this.search="",this.query={}),a&&(this.pathname=a),ao[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Le=this.pathname||"",F=this.search||"";this.path=Le+F}return this.href=this.format(),this};function qD(t){return typeof t=="string"&&(t=gn(t)),t instanceof Je?t.format():Je.prototype.format.call(t)}Je.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",o=this.hash||"",n=!1,i="";this.host?n=t+this.host:this.hostname&&(n=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=_c.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||ao[e])&&n!==!1?(n="//"+(n||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):n||(n=""),o&&o.charAt(0)!=="#"&&(o="#"+o),s&&s.charAt(0)!=="?"&&(s="?"+s),r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),e+n+r+s+o};function HD(t,e){return gn(t,!1,!0).resolve(e)}Je.prototype.resolve=function(t){return this.resolveObject(gn(t,!1,!0)).format()};function jD(t,e){return t?gn(t,!1,!0).resolveObject(e):e}Je.prototype.resolveObject=function(t){if(typeof t=="string"){var e=new Je;e.parse(t,!1,!0),t=e}for(var r=new Je,o=Object.keys(this),n=0;n<o.length;n++){var i=o[n];r[i]=this[i]}if(r.hash=t.hash,t.href==="")return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a];u!=="protocol"&&(r[u]=t[u])}return ao[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!ao[t.protocol]){for(var c=Object.keys(t),f=0;f<c.length;f++){var m=c[f];r[m]=t[m]}return r.href=r.format(),r}if(r.protocol=t.protocol,!t.host&&!Mc[t.protocol]){for(var T=(t.pathname||"").split("/");T.length&&!(t.host=T.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),T[0]!==""&&T.unshift(""),T.length<2&&T.unshift(""),r.pathname=T.join("/")}else r.pathname=t.pathname;if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var p=r.pathname||"",d=r.search||"";r.path=p+d}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var y=r.pathname&&r.pathname.charAt(0)==="/",w=t.host||t.pathname&&t.pathname.charAt(0)==="/",g=w||y||r.host&&t.pathname,I=g,D=r.pathname&&r.pathname.split("/")||[],T=t.pathname&&t.pathname.split("/")||[],L=r.protocol&&!ao[r.protocol];if(L&&(r.hostname="",r.port=null,r.host&&(D[0]===""?D[0]=r.host:D.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(T[0]===""?T[0]=t.host:T.unshift(t.host)),t.host=null),g=g&&(T[0]===""||D[0]==="")),w)r.host=t.host||t.host===""?t.host:r.host,r.hostname=t.hostname||t.hostname===""?t.hostname:r.hostname,r.search=t.search,r.query=t.query,D=T;else if(T.length)D||(D=[]),D.pop(),D=D.concat(T),r.search=t.search,r.query=t.query;else if(t.search!=null){if(L){r.host=D.shift(),r.hostname=r.host;var V=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;V&&(r.auth=V.shift(),r.hostname=V.shift(),r.host=r.hostname)}return r.search=t.search,r.query=t.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!D.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var z=D.slice(-1)[0],de=(r.host||t.host||D.length>1)&&(z==="."||z==="..")||z==="",q=0,N=D.length;N>=0;N--)z=D[N],z==="."?D.splice(N,1):z===".."?(D.splice(N,1),q++):q&&(D.splice(N,1),q--);if(!g&&!I)for(;q--;q)D.unshift("..");g&&D[0]!==""&&(!D[0]||D[0].charAt(0)!=="/")&&D.unshift(""),de&&D.join("/").substr(-1)!=="/"&&D.push("");var se=D[0]===""||D[0]&&D[0].charAt(0)==="/";if(L){r.hostname=se?"":D.length?D.shift():"",r.host=r.hostname;var V=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;V&&(r.auth=V.shift(),r.hostname=V.shift(),r.host=r.hostname)}return g=g||r.host&&D.length,g&&!se&&D.unshift(""),D.length>0?r.pathname=D.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r};Je.prototype.parseHost=function(){var t=this.host,e=$D.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};uo.parse=gn;uo.resolve=HD;uo.resolveObject=jD;uo.format=qD;uo.Url=Je});var Wd=A((_G,Rd)=>{"use strict";Rd.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,o)=>Math.min(r,o.length),1/0):0}});var Bd=A((AG,Ld)=>{"use strict";Ld.exports=function(e){var r=typeof e;if(r==="string"||e instanceof String){if(!e.trim())return!1}else if(r!=="number"&&!(e instanceof Number))return!1;return e-e+1>=0}});var Hd=A((EG,qd)=>{var r1=Object.prototype.toString;qd.exports=function(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return a1(e)?"generatorfunction":"function";if(o1(e))return"array";if(f1(e))return"buffer";if(c1(e))return"arguments";if(i1(e))return"date";if(n1(e))return"error";if(s1(e))return"regexp";switch(Yd(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(u1(e))return"generator";switch(r=r1.call(e),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function Yd(t){return typeof t.constructor=="function"?t.constructor.name:null}function o1(t){return Array.isArray?Array.isArray(t):t instanceof Array}function n1(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function i1(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function s1(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function a1(t,e){return Yd(t)==="GeneratorFunction"}function u1(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function c1(t){try{if(typeof t.length=="number"&&typeof t.callee=="function")return!0}catch(e){if(e.message.indexOf("callee")!==-1)return!0}return!1}function f1(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var zd=A((kG,jd)=>{jd.exports=function(t){var e="Uint32Array"in t,r=t.crypto||t.msCrypto,o=r&&typeof r.getRandomValues=="function",n=e&&o;if(!n)return Math.random;var i=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(i),i[0]/s}return a.cryptographic=!0,a}(typeof self<"u"?self:window)});var Kd=A((PG,Pc)=>{"use strict";var l1=Bd(),Vd=Hd(),Gd=zd();Pc.exports=p1;Pc.exports.isCrypto=!!Gd.cryptographic;var lt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};lt.all=lt.lower+lt.upper+lt.number+lt.special;function p1(t,e,r){if(typeof t>"u")throw new Error("randomatic expects a string or number.");var o=!1;arguments.length===1&&(typeof t=="string"?e=t.length:l1(t)&&(r={},e=t,t="*")),Vd(e)==="object"&&e.hasOwnProperty("chars")&&(r=e,t=r.chars,e=t.length,o=!0);var n=r||{},i="",s="";if(t.indexOf("?")!==-1&&(i+=n.chars),t.indexOf("a")!==-1&&(i+=lt.lower),t.indexOf("A")!==-1&&(i+=lt.upper),t.indexOf("0")!==-1&&(i+=lt.number),t.indexOf("!")!==-1&&(i+=lt.special),t.indexOf("*")!==-1&&(i+=lt.all),o&&(i+=t),n.exclude){var a=Vd(n.exclude)==="string"?n.exclude:n.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),i=i.replace(new RegExp("["+a+"]+","g"),""),n.exclude.indexOf("]")!==-1&&(i=i.replace(new RegExp("[\\]]+","g"),""))}for(;e--;)s+=i.charAt(parseInt(Gd()*i.length,10));return s}});var Bh=A((Sn,po)=>{var T1=200,lh="__lodash_hash_undefined__",ph=9007199254740991,Gc="[object Arguments]",O1="[object Array]",mh="[object Boolean]",dh="[object Date]",M1="[object Error]",Kc="[object Function]",hh="[object GeneratorFunction]",Ns="[object Map]",yh="[object Number]",Qc="[object Object]",eh="[object Promise]",xh="[object RegExp]",Fs="[object Set]",gh="[object String]",bh="[object Symbol]",Yc="[object WeakMap]",vh="[object ArrayBuffer]",$s="[object DataView]",wh="[object Float32Array]",Sh="[object Float64Array]",Dh="[object Int8Array]",Th="[object Int16Array]",Oh="[object Int32Array]",Mh="[object Uint8Array]",_h="[object Uint8ClampedArray]",Ih="[object Uint16Array]",Ah="[object Uint32Array]",_1=/[\\^$.*+?()[\]{}|]/g,I1=/\w*$/,A1=/^\[object .+?Constructor\]$/,E1=/^(?:0|[1-9]\d*)$/,ee={};ee[Gc]=ee[O1]=ee[vh]=ee[$s]=ee[mh]=ee[dh]=ee[wh]=ee[Sh]=ee[Dh]=ee[Th]=ee[Oh]=ee[Ns]=ee[yh]=ee[Qc]=ee[xh]=ee[Fs]=ee[gh]=ee[bh]=ee[Mh]=ee[_h]=ee[Ih]=ee[Ah]=!0;ee[M1]=ee[Kc]=ee[Yc]=!1;var k1=typeof global=="object"&&global&&global.Object===Object&&global,P1=typeof self=="object"&&self&&self.Object===Object&&self,Mt=k1||P1||Function("return this")(),Eh=typeof Sn=="object"&&Sn&&!Sn.nodeType&&Sn,th=Eh&&typeof po=="object"&&po&&!po.nodeType&&po,C1=th&&th.exports===Eh;function N1(t,e){return t.set(e[0],e[1]),t}function F1(t,e){return t.add(e),t}function $1(t,e){for(var r=-1,o=t?t.length:0;++r<o&&e(t[r],r,t)!==!1;);return t}function R1(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t}function kh(t,e,r,o){var n=-1,i=t?t.length:0;for(o&&i&&(r=t[++n]);++n<i;)r=e(r,t[n],n,t);return r}function W1(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o}function U1(t,e){return t?.[e]}function Ph(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function rh(t){var e=-1,r=Array(t.size);return t.forEach(function(o,n){r[++e]=[n,o]}),r}function Jc(t,e){return function(r){return t(e(r))}}function oh(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var L1=Array.prototype,B1=Function.prototype,Rs=Object.prototype,Bc=Mt["__core-js_shared__"],nh=function(){var t=/[^.]+$/.exec(Bc&&Bc.keys&&Bc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ch=B1.toString,Lt=Rs.hasOwnProperty,Ws=Rs.toString,Y1=RegExp("^"+Ch.call(Lt).replace(_1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ih=C1?Mt.Buffer:void 0,sh=Mt.Symbol,ah=Mt.Uint8Array,q1=Jc(Object.getPrototypeOf,Object),H1=Object.create,j1=Rs.propertyIsEnumerable,z1=L1.splice,uh=Object.getOwnPropertySymbols,V1=ih?ih.isBuffer:void 0,G1=Jc(Object.keys,Object),qc=yo(Mt,"DataView"),Dn=yo(Mt,"Map"),Hc=yo(Mt,"Promise"),jc=yo(Mt,"Set"),zc=yo(Mt,"WeakMap"),Tn=yo(Object,"create"),K1=Sr(qc),Q1=Sr(Dn),J1=Sr(Hc),X1=Sr(jc),Z1=Sr(zc),ch=sh?sh.prototype:void 0,fh=ch?ch.valueOf:void 0;function wr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function eT(){this.__data__=Tn?Tn(null):{}}function tT(t){return this.has(t)&&delete this.__data__[t]}function rT(t){var e=this.__data__;if(Tn){var r=e[t];return r===lh?void 0:r}return Lt.call(e,t)?e[t]:void 0}function oT(t){var e=this.__data__;return Tn?e[t]!==void 0:Lt.call(e,t)}function nT(t,e){var r=this.__data__;return r[t]=Tn&&e===void 0?lh:e,this}wr.prototype.clear=eT;wr.prototype.delete=tT;wr.prototype.get=rT;wr.prototype.has=oT;wr.prototype.set=nT;function _t(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function iT(){this.__data__=[]}function sT(t){var e=this.__data__,r=Us(e,t);if(r<0)return!1;var o=e.length-1;return r==o?e.pop():z1.call(e,r,1),!0}function aT(t){var e=this.__data__,r=Us(e,t);return r<0?void 0:e[r][1]}function uT(t){return Us(this.__data__,t)>-1}function cT(t,e){var r=this.__data__,o=Us(r,t);return o<0?r.push([t,e]):r[o][1]=e,this}_t.prototype.clear=iT;_t.prototype.delete=sT;_t.prototype.get=aT;_t.prototype.has=uT;_t.prototype.set=cT;function mo(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function fT(){this.__data__={hash:new wr,map:new(Dn||_t),string:new wr}}function lT(t){return Ls(this,t).delete(t)}function pT(t){return Ls(this,t).get(t)}function mT(t){return Ls(this,t).has(t)}function dT(t,e){return Ls(this,t).set(t,e),this}mo.prototype.clear=fT;mo.prototype.delete=lT;mo.prototype.get=pT;mo.prototype.has=mT;mo.prototype.set=dT;function ho(t){this.__data__=new _t(t)}function hT(){this.__data__=new _t}function yT(t){return this.__data__.delete(t)}function xT(t){return this.__data__.get(t)}function gT(t){return this.__data__.has(t)}function bT(t,e){var r=this.__data__;if(r instanceof _t){var o=r.__data__;if(!Dn||o.length<T1-1)return o.push([t,e]),this;r=this.__data__=new mo(o)}return r.set(t,e),this}ho.prototype.clear=hT;ho.prototype.delete=yT;ho.prototype.get=xT;ho.prototype.has=gT;ho.prototype.set=bT;function vT(t,e){var r=Zc(t)||HT(t)?W1(t.length,String):[],o=r.length,n=!!o;for(var i in t)(e||Lt.call(t,i))&&!(n&&(i=="length"||LT(i,o)))&&r.push(i);return r}function Nh(t,e,r){var o=t[e];(!(Lt.call(t,e)&&Wh(o,r))||r===void 0&&!(e in t))&&(t[e]=r)}function Us(t,e){for(var r=t.length;r--;)if(Wh(t[r][0],e))return r;return-1}function wT(t,e){return t&&Fh(e,ef(e),t)}function Vc(t,e,r,o,n,i,s){var a;if(o&&(a=i?o(t,n,i,s):o(t)),a!==void 0)return a;if(!Bs(t))return t;var u=Zc(t);if(u){if(a=RT(t),!e)return NT(t,a)}else{var c=vr(t),f=c==Kc||c==hh;if(zT(t))return _T(t,e);if(c==Qc||c==Gc||f&&!i){if(Ph(t))return i?t:{};if(a=WT(f?{}:t),!e)return FT(t,wT(a,t))}else{if(!ee[c])return i?t:{};a=UT(t,c,Vc,e)}}s||(s=new ho);var m=s.get(t);if(m)return m;if(s.set(t,a),!u)var p=r?$T(t):ef(t);return $1(p||t,function(d,y){p&&(y=d,d=t[y]),Nh(a,y,Vc(d,e,r,o,y,t,s))}),a}function ST(t){return Bs(t)?H1(t):{}}function DT(t,e,r){var o=e(t);return Zc(t)?o:R1(o,r(t))}function TT(t){return Ws.call(t)}function OT(t){if(!Bs(t)||YT(t))return!1;var e=Lh(t)||Ph(t)?Y1:A1;return e.test(Sr(t))}function MT(t){if(!Rh(t))return G1(t);var e=[];for(var r in Object(t))Lt.call(t,r)&&r!="constructor"&&e.push(r);return e}function _T(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function Xc(t){var e=new t.constructor(t.byteLength);return new ah(e).set(new ah(t)),e}function IT(t,e){var r=e?Xc(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function AT(t,e,r){var o=e?r(rh(t),!0):rh(t);return kh(o,N1,new t.constructor)}function ET(t){var e=new t.constructor(t.source,I1.exec(t));return e.lastIndex=t.lastIndex,e}function kT(t,e,r){var o=e?r(oh(t),!0):oh(t);return kh(o,F1,new t.constructor)}function PT(t){return fh?Object(fh.call(t)):{}}function CT(t,e){var r=e?Xc(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function NT(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e}function Fh(t,e,r,o){r||(r={});for(var n=-1,i=e.length;++n<i;){var s=e[n],a=o?o(r[s],t[s],s,r,t):void 0;Nh(r,s,a===void 0?t[s]:a)}return r}function FT(t,e){return Fh(t,$h(t),e)}function $T(t){return DT(t,ef,$h)}function Ls(t,e){var r=t.__data__;return BT(e)?r[typeof e=="string"?"string":"hash"]:r.map}function yo(t,e){var r=U1(t,e);return OT(r)?r:void 0}var $h=uh?Jc(uh,Object):KT,vr=TT;(qc&&vr(new qc(new ArrayBuffer(1)))!=$s||Dn&&vr(new Dn)!=Ns||Hc&&vr(Hc.resolve())!=eh||jc&&vr(new jc)!=Fs||zc&&vr(new zc)!=Yc)&&(vr=function(t){var e=Ws.call(t),r=e==Qc?t.constructor:void 0,o=r?Sr(r):void 0;if(o)switch(o){case K1:return $s;case Q1:return Ns;case J1:return eh;case X1:return Fs;case Z1:return Yc}return e});function RT(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&Lt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function WT(t){return typeof t.constructor=="function"&&!Rh(t)?ST(q1(t)):{}}function UT(t,e,r,o){var n=t.constructor;switch(e){case vh:return Xc(t);case mh:case dh:return new n(+t);case $s:return IT(t,o);case wh:case Sh:case Dh:case Th:case Oh:case Mh:case _h:case Ih:case Ah:return CT(t,o);case Ns:return AT(t,o,r);case yh:case gh:return new n(t);case xh:return ET(t);case Fs:return kT(t,o,r);case bh:return PT(t)}}function LT(t,e){return e=e??ph,!!e&&(typeof t=="number"||E1.test(t))&&t>-1&&t%1==0&&t<e}function BT(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function YT(t){return!!nh&&nh in t}function Rh(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Rs;return t===r}function Sr(t){if(t!=null){try{return Ch.call(t)}catch{}try{return t+""}catch{}}return""}function qT(t){return Vc(t,!0,!0)}function Wh(t,e){return t===e||t!==t&&e!==e}function HT(t){return jT(t)&&Lt.call(t,"callee")&&(!j1.call(t,"callee")||Ws.call(t)==Gc)}var Zc=Array.isArray;function Uh(t){return t!=null&&VT(t.length)&&!Lh(t)}function jT(t){return GT(t)&&Uh(t)}var zT=V1||QT;function Lh(t){var e=Bs(t)?Ws.call(t):"";return e==Kc||e==hh}function VT(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ph}function Bs(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function GT(t){return!!t&&typeof t=="object"}function ef(t){return Uh(t)?vT(t):MT(t)}function KT(){return[]}function QT(){return!1}po.exports=qT});var qh=A((VG,Yh)=>{"use strict";Yh.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,o=e.cmp&&function(i){return function(s){return function(a,u){var c={key:a,value:s[a]},f={key:u,value:s[u]};return i(c,f)}}}(e.cmp),n=[];return function i(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var a,u;if(Array.isArray(s)){for(u="[",a=0;a<s.length;a++)a&&(u+=","),u+=i(s[a])||"null";return u+"]"}if(s===null)return"null";if(n.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=n.push(s)-1,f=Object.keys(s).sort(o&&o(s));for(u="",a=0;a<f.length;a++){var m=f[a],p=i(s[m]);p&&(u&&(u+=","),u+=JSON.stringify(m)+":"+p)}return n.splice(c,1),"{"+u+"}"}}(t)}});var An=globalThis,En=An.ShadowRoot&&(An.ShadyCSS===void 0||An.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Js=Symbol(),xf=new WeakMap,vo=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Js)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(En&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=xf.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&xf.set(r,e))}return e}toString(){return this.cssText}},kn=t=>new vo(typeof t=="string"?t:t+"",void 0,Js),Ze=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((o,n,i)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[i+1],t[0]);return new vo(r,t,Js)},Xs=(t,e)=>{if(En)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=An.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},Pn=En?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return kn(r)})(t):t;var{is:ly,defineProperty:py,getOwnPropertyDescriptor:my,getOwnPropertyNames:dy,getOwnPropertySymbols:hy,getPrototypeOf:yy}=Object,Cn=globalThis,gf=Cn.trustedTypes,xy=gf?gf.emptyScript:"",gy=Cn.reactiveElementPolyfillSupport,wo=(t,e)=>t,So={toAttribute(t,e){switch(e){case Boolean:t=t?xy:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Nn=(t,e)=>!ly(t,e),bf={attribute:!0,type:String,converter:So,reflect:!1,hasChanged:Nn};Symbol.metadata??=Symbol("metadata"),Cn.litPropertyMetadata??=new WeakMap;var mt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=bf){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&py(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:i}=my(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let a=n?.call(this);i.call(this,s),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??bf}static _$Ei(){if(this.hasOwnProperty(wo("elementProperties")))return;let e=yy(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(wo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(wo("properties"))){let r=this.properties,o=[...dy(r),...hy(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(Pn(n))}else e!==void 0&&r.push(Pn(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Xs(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$EC(e,r){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let i=(o.converter?.toAttribute!==void 0?o.converter:So).toAttribute(r,o.type);this._$Em=e,i==null?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,r){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let i=o.getPropertyOptions(n),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:So;this._$Em=n,this[n]=s.fromAttribute(r,i.type),this._$Em=null}}requestUpdate(e,r,o){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Nn)(this[e],r))return;this.P(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,o){this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,i]of this._$Ep)this[n]=i;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,i]of o)i.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],i)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(e){}firstUpdated(e){}};mt.elementStyles=[],mt.shadowRootOptions={mode:"open"},mt[wo("elementProperties")]=new Map,mt[wo("finalized")]=new Map,gy?.({ReactiveElement:mt}),(Cn.reactiveElementVersions??=[]).push("2.0.4");var ia=globalThis,Fn=ia.trustedTypes,vf=Fn?Fn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Mf="$lit$",kt=`lit$${Math.random().toFixed(9).slice(2)}$`,_f="?"+kt,by=`<${_f}>`,jt=document,To=()=>jt.createComment(""),Oo=t=>t===null||typeof t!="object"&&typeof t!="function",sa=Array.isArray,vy=t=>sa(t)||typeof t?.[Symbol.iterator]=="function",Zs=`[
|
|
6
|
-
\f\r]`,Do=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wf=/-->/g,Sf=/>/g,
|
|
7
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Df=/'/g,Tf=/"/g,If=/^(?:script|style|textarea|title)$/i,aa=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Re=aa(1),NO=aa(2),FO=aa(3),zt=Symbol.for("lit-noChange"),xe=Symbol.for("lit-nothing"),Of=new WeakMap,Ht=jt.createTreeWalker(jt,129);function Af(t,e){if(!sa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return vf!==void 0?vf.createHTML(e):e}var wy=(t,e)=>{let r=t.length-1,o=[],n,i=e===2?"<svg>":e===3?"<math>":"",s=Do;for(let a=0;a<r;a++){let u=t[a],c,f,m=-1,p=0;for(;p<u.length&&(s.lastIndex=p,f=s.exec(u),f!==null);)p=s.lastIndex,s===Do?f[1]==="!--"?s=wf:f[1]!==void 0?s=Sf:f[2]!==void 0?(If.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=qt):f[3]!==void 0&&(s=qt):s===qt?f[0]===">"?(s=n??Do,m=-1):f[1]===void 0?m=-2:(m=s.lastIndex-f[2].length,c=f[1],s=f[3]===void 0?qt:f[3]==='"'?Tf:Df):s===Tf||s===Df?s=qt:s===wf||s===Sf?s=Do:(s=qt,n=void 0);let d=s===qt&&t[a+1].startsWith("/>")?" ":"";i+=s===Do?u+by:m>=0?(o.push(c),u.slice(0,m)+Mf+u.slice(m)+kt+d):u+kt+(m===-2?a:d)}return[Af(t,i+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Mo=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let i=0,s=0,a=e.length-1,u=this.parts,[c,f]=wy(e,r);if(this.el=t.createElement(c,o),Ht.currentNode=this.el.content,r===2||r===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=Ht.nextNode())!==null&&u.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(Mf)){let p=f[s++],d=n.getAttribute(m).split(kt),y=/([.?@])?(.*)/.exec(p);u.push({type:1,index:i,name:y[2],strings:d,ctor:y[1]==="."?ta:y[1]==="?"?ra:y[1]==="@"?oa:Ir}),n.removeAttribute(m)}else m.startsWith(kt)&&(u.push({type:6,index:i}),n.removeAttribute(m));if(If.test(n.tagName)){let m=n.textContent.split(kt),p=m.length-1;if(p>0){n.textContent=Fn?Fn.emptyScript:"";for(let d=0;d<p;d++)n.append(m[d],To()),Ht.nextNode(),u.push({type:2,index:++i});n.append(m[p],To())}}}else if(n.nodeType===8)if(n.data===_f)u.push({type:2,index:i});else{let m=-1;for(;(m=n.data.indexOf(kt,m+1))!==-1;)u.push({type:7,index:i}),m+=kt.length-1}i++}}static createElement(e,r){let o=jt.createElement("template");return o.innerHTML=e,o}};function _r(t,e,r=t,o){if(e===zt)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,i=Oo(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),i===void 0?n=void 0:(n=new i(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=_r(t,n._$AS(t,e.values),n,o)),e}var ea=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??jt).importNode(r,!0);Ht.currentNode=n;let i=Ht.nextNode(),s=0,a=0,u=o[0];for(;u!==void 0;){if(s===u.index){let c;u.type===2?c=new _o(i,i.nextSibling,this,e):u.type===1?c=new u.ctor(i,u.name,u.strings,this,e):u.type===6&&(c=new na(i,this,e)),this._$AV.push(c),u=o[++a]}s!==u?.index&&(i=Ht.nextNode(),s++)}return Ht.currentNode=jt,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},_o=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=xe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=_r(this,e,r),Oo(e)?e===xe||e==null||e===""?(this._$AH!==xe&&this._$AR(),this._$AH=xe):e!==this._$AH&&e!==zt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):vy(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==xe&&Oo(this._$AH)?this._$AA.nextSibling.data=e:this.T(jt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Mo.createElement(Af(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let i=new ea(n,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(e){let r=Of.get(e.strings);return r===void 0&&Of.set(e.strings,r=new Mo(e)),r}k(e){sa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let i of e)n===r.length?r.push(o=new t(this.O(To()),this.O(To()),this,this.options)):o=r[n],o._$AI(i),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ir=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,i){this.type=1,this._$AH=xe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=i,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=xe}_$AI(e,r=this,o,n){let i=this.strings,s=!1;if(i===void 0)e=_r(this,e,r,0),s=!Oo(e)||e!==this._$AH&&e!==zt,s&&(this._$AH=e);else{let a=e,u,c;for(e=i[0],u=0;u<i.length-1;u++)c=_r(this,a[o+u],r,u),c===zt&&(c=this._$AH[u]),s||=!Oo(c)||c!==this._$AH[u],c===xe?e=xe:e!==xe&&(e+=(c??"")+i[u+1]),this._$AH[u]=c}s&&!n&&this.j(e)}j(e){e===xe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ta=class extends Ir{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===xe?void 0:e}},ra=class extends Ir{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==xe)}},oa=class extends Ir{constructor(e,r,o,n,i){super(e,r,o,n,i),this.type=5}_$AI(e,r=this){if((e=_r(this,e,r,0)??xe)===zt)return;let o=this._$AH,n=e===xe&&o!==xe||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,i=e!==xe&&(o===xe||n);n&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},na=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){_r(this,e)}};var Sy=ia.litHtmlPolyfillSupport;Sy?.(Mo,_o),(ia.litHtmlVersions??=[]).push("3.2.1");var Ef=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let i=r?.renderBefore??null;o._$litPart$=n=new _o(e.insertBefore(To(),i),i,void 0,r??{})}return n._$AI(t),n};var Me=class extends mt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ef(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return zt}};Me._$litElement$=!0,Me.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Me});var Dy=globalThis.litElementPolyfillSupport;Dy?.({LitElement:Me});(globalThis.litElementVersions??=[]).push("4.1.1");var $n=kn('system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif');var it=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Ty={attribute:!0,type:String,converter:So,reflect:!1,hasChanged:Nn},Oy=(t=Ty,e,r)=>{let{kind:o,metadata:n}=r,i=globalThis.litPropertyMetadata.get(n);if(i===void 0&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(a){let u=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,u,t)},init(a){return a!==void 0&&this.P(s,void 0,t),a}}}if(o==="setter"){let{name:s}=r;return function(a){let u=this[s];e.call(this,a),this.requestUpdate(s,u,t)}}throw Error("Unsupported decorator location: "+o)};function dt(t){return(e,r)=>typeof r=="object"?Oy(t,e,r):((o,n,i)=>{let s=n.hasOwnProperty(i);return n.constructor.createProperty(i,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(n,i):void 0})(t,e,r)}var Gs={};re(Gs,{TypedHandler:()=>mf,TypedRequest:()=>hf,TypedResponseError:()=>At,TypedRouter:()=>_n,TypedTarget:()=>df,VirtualStream:()=>pt});var Tr=nt(ua(),1);var Ue={};re(Ue,{AsyncExecutionStack:()=>Bu,BackpressuredArray:()=>Yu,FastMap:()=>Zo,Interest:()=>en,InterestMap:()=>qu,LimitedArray:()=>Hu,LoopTracker:()=>ju,ObjectMap:()=>dr,Stringmap:()=>zu,TimedAggregtor:()=>Vu,Tree:()=>Gu,uni:()=>Gl});var X={};re(X,{Timeout:()=>Bn,delayFor:()=>Gt,delayForRandom:()=>Ny});var K={};re(K,{CumulativeDeferred:()=>Ln,Deferred:()=>Un,cumulativeDefer:()=>_y,defer:()=>Vt,fromCallback:()=>Cy,getFirstTrueOrFalse:()=>Py,map:()=>Ey,rejectedPromise:()=>Ay,resolvedPromise:()=>Iy,timeoutAndContinue:()=>ky,timeoutWrap:()=>Pf});var Un=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((e,r)=>{this.resolve=o=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(o)},this.reject=o=>{this.status="rejected",this.stoppedAt=Date.now(),r(o)},this.startedAt=Date.now(),this.status="pending"})}},Vt=()=>new Un;var Ln=class{constructor(){this.accumulatedPromises=[],this.deferred=Vt(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(e){this.accumulatedPromises.push(e)}},_y=()=>new Ln;var Iy=t=>Promise.resolve(t),Ay=t=>Promise.reject(t),Ey=async(t,e)=>{let r=[],o=[];for(let n of t){let i=e(n);r.push(i),i.then(s=>{o.push(s)})}return await Promise.all(r),o},Pf=async(t,e,r=!0)=>new Promise((o,n)=>{setTimeout(()=>{r?n(new Error("timeout")):o(null)},e),t.then(o,n)}),ky=async(t,e=6e4)=>Pf(t,e,!1),Py=async t=>{let e=Vt();for(let r of t)r.then(o=>{o===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise},Cy=t=>new Promise((e,r)=>{t((o,n)=>{o?r(o):e(n)})});var Gt=async(t,e,r=!1)=>(await new Bn(t,null,r).promise,e),Ny=async(t,e,r,o=!1)=>(await Gt(Math.random()*(e-t)+t,null,o),r),Bn=class{constructor(e,r,o=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=Vt(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},e),this.started=Date.now(),o&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}};var qn={};re(qn,{SmartMatch:()=>la});var Yn={};re(Yn,{isMatch:()=>Ry,matcher:()=>$y});function ca(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var fa=new Map,Cf=(t,e)=>{if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},Fy=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(fa.has(r))return fa.get(r);let o=t[0]==="!";o&&(t=t.slice(1)),t=ca(t).replace(/\\\*/g,"[\\s\\S]*");let n=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return n.negated=o,fa.set(r,n),n},Nf=(t,e,r,o)=>{if(t=Cf(t,"inputs"),e=Cf(e,"patterns"),e.length===0)return[];e=e.map(s=>Fy(s,r));let{allPatterns:n}=r||{},i=[];for(let s of t){let a,u=[...e].fill(!1);for(let[c,f]of e.entries())if(f.test(s)&&(u[c]=!0,a=!f.negated,!a))break;if(!(a===!1||a===void 0&&e.some(c=>!c.negated)||n&&u.some((c,f)=>!c&&!e[f].negated))&&(i.push(s),o))break}return i};function $y(t,e,r){return Nf(t,e,r,!1)}function Ry(t,e,r){return Nf(t,e,r,!0).length>0}var la=class{constructor(e){this.wildcard=e}match(e){return Yn.isMatch(e,this.wildcard)}};var st={};re(st,{ObservableIntake:()=>Ia,Observablemap:()=>_a,rxjs:()=>Co});var Co={};re(Co,{Observable:()=>oe,ReplaySubject:()=>xa,Subject:()=>yt,Subscription:()=>tt,from:()=>Zt,fromEvent:()=>tr,of:()=>ba,ops:()=>fx});var pa=function(t,e){return pa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},pa(t,e)};function _e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pa(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Ff(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(f){try{c(o.next(f))}catch(m){s(m)}}function u(f){try{c(o.throw(f))}catch(m){s(m)}}function c(f){f.done?i(f.value):n(f.value).then(a,u)}c((o=o.apply(t,e||[])).next())})}function Hn(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(f){return u([c,f])}}function u(c){if(o)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(o=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(f){c=[6,f],n=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ht(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Be(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),n,i=[],s;try{for(;(e===void 0||e-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return i}function et(t,e,r){if(r||arguments.length===2)for(var o=0,n=e.length,i;o<n;o++)(i||!(o in e))&&(i||(i=Array.prototype.slice.call(e,0,o)),i[o]=e[o]);return t.concat(i||Array.prototype.slice.call(e))}function Kt(t){return this instanceof Kt?(this.v=t,this):new Kt(t)}function $f(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(t,e||[]),n,i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(p){o[p]&&(n[p]=function(d){return new Promise(function(y,w){i.push([p,d,y,w])>1||a(p,d)})})}function a(p,d){try{u(o[p](d))}catch(y){m(i[0][3],y)}}function u(p){p.value instanceof Kt?Promise.resolve(p.value.v).then(c,f):m(i[0][2],p)}function c(p){a("next",p)}function f(p){a("throw",p)}function m(p,d){p(d),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Rf(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof ht=="function"?ht(t):t[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(i){r[i]=t[i]&&function(s){return new Promise(function(a,u){s=t[i](s),n(a,u,s.done,s.value)})}}function n(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}function W(t){return typeof t=="function"}function jn(t){var e=function(o){Error.call(o),o.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var zn=jn(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
5
|
+
`," "],UD=["{","}","|","\\","^","`"].concat(WD),Oc=["'"].concat(UD),hd=["%","/","?",";","#"].concat(Oc),yd=["/","?","#"],LD=255,xd=/^[+a-z0-9A-Z_-]{0,63}$/,BD=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,YD={javascript:!0,"javascript:":!0},Mc={javascript:!0,"javascript:":!0},ao={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_c=dd();function gn(t,e,r){if(t&&typeof t=="object"&&t instanceof Je)return t;var o=new Je;return o.parse(t,e,r),o}Je.prototype.parse=function(t,e,r){if(typeof t!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),n=o!==-1&&o<t.indexOf("#")?"?":"#",i=t.split(n),s=/\\/g;i[0]=i[0].replace(s,"/"),t=i.join(n);var a=t;if(a=a.trim(),!r&&t.split("#").length===1){var u=RD.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=_c.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var c=FD.exec(a);if(c){c=c[0];var f=c.toLowerCase();this.protocol=f,a=a.substr(c.length)}if(r||c||a.match(/^\/\/[^@/]+@[^@/]+/)){var m=a.substr(0,2)==="//";m&&!(c&&Mc[c])&&(a=a.substr(2),this.slashes=!0)}if(!Mc[c]&&(m||c&&!ao[c])){for(var p=-1,d=0;d<yd.length;d++){var y=a.indexOf(yd[d]);y!==-1&&(p===-1||y<p)&&(p=y)}var w,g;p===-1?g=a.lastIndexOf("@"):g=a.lastIndexOf("@",p),g!==-1&&(w=a.slice(0,g),a=a.slice(g+1),this.auth=decodeURIComponent(w)),p=-1;for(var d=0;d<hd.length;d++){var y=a.indexOf(hd[d]);y!==-1&&(p===-1||y<p)&&(p=y)}p===-1&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var I=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!I)for(var D=this.hostname.split(/\./),d=0,T=D.length;d<T;d++){var L=D[d];if(L&&!L.match(xd)){for(var V="",z=0,de=L.length;z<de;z++)L.charCodeAt(z)>127?V+="x":V+=L[z];if(!V.match(xd)){var q=D.slice(0,d),N=D.slice(d+1),se=L.match(BD);se&&(q.push(se[1]),N.unshift(se[2])),N.length&&(a="/"+N.join(".")+a),this.hostname=q.join(".");break}}}this.hostname.length>LD?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=ND.toASCII(this.hostname));var Le=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+Le,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!YD[f])for(var d=0,T=Oc.length;d<T;d++){var v=Oc[d];if(a.indexOf(v)!==-1){var b=encodeURIComponent(v);b===v&&(b=escape(v)),a=a.split(v).join(b)}}var M=a.indexOf("#");M!==-1&&(this.hash=a.substr(M),a=a.slice(0,M));var S=a.indexOf("?");if(S!==-1?(this.search=a.substr(S),this.query=a.substr(S+1),e&&(this.query=_c.parse(this.query)),a=a.slice(0,S)):e&&(this.search="",this.query={}),a&&(this.pathname=a),ao[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Le=this.pathname||"",F=this.search||"";this.path=Le+F}return this.href=this.format(),this};function qD(t){return typeof t=="string"&&(t=gn(t)),t instanceof Je?t.format():Je.prototype.format.call(t)}Je.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",o=this.hash||"",n=!1,i="";this.host?n=t+this.host:this.hostname&&(n=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=_c.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||ao[e])&&n!==!1?(n="//"+(n||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):n||(n=""),o&&o.charAt(0)!=="#"&&(o="#"+o),s&&s.charAt(0)!=="?"&&(s="?"+s),r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),e+n+r+s+o};function HD(t,e){return gn(t,!1,!0).resolve(e)}Je.prototype.resolve=function(t){return this.resolveObject(gn(t,!1,!0)).format()};function jD(t,e){return t?gn(t,!1,!0).resolveObject(e):e}Je.prototype.resolveObject=function(t){if(typeof t=="string"){var e=new Je;e.parse(t,!1,!0),t=e}for(var r=new Je,o=Object.keys(this),n=0;n<o.length;n++){var i=o[n];r[i]=this[i]}if(r.hash=t.hash,t.href==="")return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a];u!=="protocol"&&(r[u]=t[u])}return ao[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!ao[t.protocol]){for(var c=Object.keys(t),f=0;f<c.length;f++){var m=c[f];r[m]=t[m]}return r.href=r.format(),r}if(r.protocol=t.protocol,!t.host&&!Mc[t.protocol]){for(var T=(t.pathname||"").split("/");T.length&&!(t.host=T.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),T[0]!==""&&T.unshift(""),T.length<2&&T.unshift(""),r.pathname=T.join("/")}else r.pathname=t.pathname;if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var p=r.pathname||"",d=r.search||"";r.path=p+d}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var y=r.pathname&&r.pathname.charAt(0)==="/",w=t.host||t.pathname&&t.pathname.charAt(0)==="/",g=w||y||r.host&&t.pathname,I=g,D=r.pathname&&r.pathname.split("/")||[],T=t.pathname&&t.pathname.split("/")||[],L=r.protocol&&!ao[r.protocol];if(L&&(r.hostname="",r.port=null,r.host&&(D[0]===""?D[0]=r.host:D.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(T[0]===""?T[0]=t.host:T.unshift(t.host)),t.host=null),g=g&&(T[0]===""||D[0]==="")),w)r.host=t.host||t.host===""?t.host:r.host,r.hostname=t.hostname||t.hostname===""?t.hostname:r.hostname,r.search=t.search,r.query=t.query,D=T;else if(T.length)D||(D=[]),D.pop(),D=D.concat(T),r.search=t.search,r.query=t.query;else if(t.search!=null){if(L){r.host=D.shift(),r.hostname=r.host;var V=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;V&&(r.auth=V.shift(),r.hostname=V.shift(),r.host=r.hostname)}return r.search=t.search,r.query=t.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!D.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var z=D.slice(-1)[0],de=(r.host||t.host||D.length>1)&&(z==="."||z==="..")||z==="",q=0,N=D.length;N>=0;N--)z=D[N],z==="."?D.splice(N,1):z===".."?(D.splice(N,1),q++):q&&(D.splice(N,1),q--);if(!g&&!I)for(;q--;q)D.unshift("..");g&&D[0]!==""&&(!D[0]||D[0].charAt(0)!=="/")&&D.unshift(""),de&&D.join("/").substr(-1)!=="/"&&D.push("");var se=D[0]===""||D[0]&&D[0].charAt(0)==="/";if(L){r.hostname=se?"":D.length?D.shift():"",r.host=r.hostname;var V=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;V&&(r.auth=V.shift(),r.hostname=V.shift(),r.host=r.hostname)}return g=g||r.host&&D.length,g&&!se&&D.unshift(""),D.length>0?r.pathname=D.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r};Je.prototype.parseHost=function(){var t=this.host,e=$D.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};uo.parse=gn;uo.resolve=HD;uo.resolveObject=jD;uo.format=qD;uo.Url=Je});var Wd=A((_G,Rd)=>{"use strict";Rd.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,o)=>Math.min(r,o.length),1/0):0}});var Bd=A((AG,Ld)=>{"use strict";Ld.exports=function(e){var r=typeof e;if(r==="string"||e instanceof String){if(!e.trim())return!1}else if(r!=="number"&&!(e instanceof Number))return!1;return e-e+1>=0}});var Hd=A((EG,qd)=>{var r1=Object.prototype.toString;qd.exports=function(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return a1(e)?"generatorfunction":"function";if(o1(e))return"array";if(f1(e))return"buffer";if(c1(e))return"arguments";if(i1(e))return"date";if(n1(e))return"error";if(s1(e))return"regexp";switch(Yd(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(u1(e))return"generator";switch(r=r1.call(e),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function Yd(t){return typeof t.constructor=="function"?t.constructor.name:null}function o1(t){return Array.isArray?Array.isArray(t):t instanceof Array}function n1(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function i1(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function s1(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function a1(t,e){return Yd(t)==="GeneratorFunction"}function u1(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function c1(t){try{if(typeof t.length=="number"&&typeof t.callee=="function")return!0}catch(e){if(e.message.indexOf("callee")!==-1)return!0}return!1}function f1(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var zd=A((kG,jd)=>{jd.exports=function(t){var e="Uint32Array"in t,r=t.crypto||t.msCrypto,o=r&&typeof r.getRandomValues=="function",n=e&&o;if(!n)return Math.random;var i=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(i),i[0]/s}return a.cryptographic=!0,a}(typeof self<"u"?self:window)});var Kd=A((PG,Pc)=>{"use strict";var l1=Bd(),Vd=Hd(),Gd=zd();Pc.exports=p1;Pc.exports.isCrypto=!!Gd.cryptographic;var lt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};lt.all=lt.lower+lt.upper+lt.number+lt.special;function p1(t,e,r){if(typeof t>"u")throw new Error("randomatic expects a string or number.");var o=!1;arguments.length===1&&(typeof t=="string"?e=t.length:l1(t)&&(r={},e=t,t="*")),Vd(e)==="object"&&e.hasOwnProperty("chars")&&(r=e,t=r.chars,e=t.length,o=!0);var n=r||{},i="",s="";if(t.indexOf("?")!==-1&&(i+=n.chars),t.indexOf("a")!==-1&&(i+=lt.lower),t.indexOf("A")!==-1&&(i+=lt.upper),t.indexOf("0")!==-1&&(i+=lt.number),t.indexOf("!")!==-1&&(i+=lt.special),t.indexOf("*")!==-1&&(i+=lt.all),o&&(i+=t),n.exclude){var a=Vd(n.exclude)==="string"?n.exclude:n.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),i=i.replace(new RegExp("["+a+"]+","g"),""),n.exclude.indexOf("]")!==-1&&(i=i.replace(new RegExp("[\\]]+","g"),""))}for(;e--;)s+=i.charAt(parseInt(Gd()*i.length,10));return s}});var Bh=A((Sn,po)=>{var T1=200,lh="__lodash_hash_undefined__",ph=9007199254740991,Gc="[object Arguments]",O1="[object Array]",mh="[object Boolean]",dh="[object Date]",M1="[object Error]",Kc="[object Function]",hh="[object GeneratorFunction]",Ns="[object Map]",yh="[object Number]",Qc="[object Object]",eh="[object Promise]",xh="[object RegExp]",Fs="[object Set]",gh="[object String]",bh="[object Symbol]",Yc="[object WeakMap]",vh="[object ArrayBuffer]",$s="[object DataView]",wh="[object Float32Array]",Sh="[object Float64Array]",Dh="[object Int8Array]",Th="[object Int16Array]",Oh="[object Int32Array]",Mh="[object Uint8Array]",_h="[object Uint8ClampedArray]",Ih="[object Uint16Array]",Ah="[object Uint32Array]",_1=/[\\^$.*+?()[\]{}|]/g,I1=/\w*$/,A1=/^\[object .+?Constructor\]$/,E1=/^(?:0|[1-9]\d*)$/,ee={};ee[Gc]=ee[O1]=ee[vh]=ee[$s]=ee[mh]=ee[dh]=ee[wh]=ee[Sh]=ee[Dh]=ee[Th]=ee[Oh]=ee[Ns]=ee[yh]=ee[Qc]=ee[xh]=ee[Fs]=ee[gh]=ee[bh]=ee[Mh]=ee[_h]=ee[Ih]=ee[Ah]=!0;ee[M1]=ee[Kc]=ee[Yc]=!1;var k1=typeof global=="object"&&global&&global.Object===Object&&global,P1=typeof self=="object"&&self&&self.Object===Object&&self,Mt=k1||P1||Function("return this")(),Eh=typeof Sn=="object"&&Sn&&!Sn.nodeType&&Sn,th=Eh&&typeof po=="object"&&po&&!po.nodeType&&po,C1=th&&th.exports===Eh;function N1(t,e){return t.set(e[0],e[1]),t}function F1(t,e){return t.add(e),t}function $1(t,e){for(var r=-1,o=t?t.length:0;++r<o&&e(t[r],r,t)!==!1;);return t}function R1(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t}function kh(t,e,r,o){var n=-1,i=t?t.length:0;for(o&&i&&(r=t[++n]);++n<i;)r=e(r,t[n],n,t);return r}function W1(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o}function U1(t,e){return t?.[e]}function Ph(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function rh(t){var e=-1,r=Array(t.size);return t.forEach(function(o,n){r[++e]=[n,o]}),r}function Jc(t,e){return function(r){return t(e(r))}}function oh(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var L1=Array.prototype,B1=Function.prototype,Rs=Object.prototype,Bc=Mt["__core-js_shared__"],nh=function(){var t=/[^.]+$/.exec(Bc&&Bc.keys&&Bc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ch=B1.toString,Bt=Rs.hasOwnProperty,Ws=Rs.toString,Y1=RegExp("^"+Ch.call(Bt).replace(_1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ih=C1?Mt.Buffer:void 0,sh=Mt.Symbol,ah=Mt.Uint8Array,q1=Jc(Object.getPrototypeOf,Object),H1=Object.create,j1=Rs.propertyIsEnumerable,z1=L1.splice,uh=Object.getOwnPropertySymbols,V1=ih?ih.isBuffer:void 0,G1=Jc(Object.keys,Object),qc=yo(Mt,"DataView"),Dn=yo(Mt,"Map"),Hc=yo(Mt,"Promise"),jc=yo(Mt,"Set"),zc=yo(Mt,"WeakMap"),Tn=yo(Object,"create"),K1=Sr(qc),Q1=Sr(Dn),J1=Sr(Hc),X1=Sr(jc),Z1=Sr(zc),ch=sh?sh.prototype:void 0,fh=ch?ch.valueOf:void 0;function wr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function eT(){this.__data__=Tn?Tn(null):{}}function tT(t){return this.has(t)&&delete this.__data__[t]}function rT(t){var e=this.__data__;if(Tn){var r=e[t];return r===lh?void 0:r}return Bt.call(e,t)?e[t]:void 0}function oT(t){var e=this.__data__;return Tn?e[t]!==void 0:Bt.call(e,t)}function nT(t,e){var r=this.__data__;return r[t]=Tn&&e===void 0?lh:e,this}wr.prototype.clear=eT;wr.prototype.delete=tT;wr.prototype.get=rT;wr.prototype.has=oT;wr.prototype.set=nT;function _t(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function iT(){this.__data__=[]}function sT(t){var e=this.__data__,r=Us(e,t);if(r<0)return!1;var o=e.length-1;return r==o?e.pop():z1.call(e,r,1),!0}function aT(t){var e=this.__data__,r=Us(e,t);return r<0?void 0:e[r][1]}function uT(t){return Us(this.__data__,t)>-1}function cT(t,e){var r=this.__data__,o=Us(r,t);return o<0?r.push([t,e]):r[o][1]=e,this}_t.prototype.clear=iT;_t.prototype.delete=sT;_t.prototype.get=aT;_t.prototype.has=uT;_t.prototype.set=cT;function mo(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var o=t[e];this.set(o[0],o[1])}}function fT(){this.__data__={hash:new wr,map:new(Dn||_t),string:new wr}}function lT(t){return Ls(this,t).delete(t)}function pT(t){return Ls(this,t).get(t)}function mT(t){return Ls(this,t).has(t)}function dT(t,e){return Ls(this,t).set(t,e),this}mo.prototype.clear=fT;mo.prototype.delete=lT;mo.prototype.get=pT;mo.prototype.has=mT;mo.prototype.set=dT;function ho(t){this.__data__=new _t(t)}function hT(){this.__data__=new _t}function yT(t){return this.__data__.delete(t)}function xT(t){return this.__data__.get(t)}function gT(t){return this.__data__.has(t)}function bT(t,e){var r=this.__data__;if(r instanceof _t){var o=r.__data__;if(!Dn||o.length<T1-1)return o.push([t,e]),this;r=this.__data__=new mo(o)}return r.set(t,e),this}ho.prototype.clear=hT;ho.prototype.delete=yT;ho.prototype.get=xT;ho.prototype.has=gT;ho.prototype.set=bT;function vT(t,e){var r=Zc(t)||HT(t)?W1(t.length,String):[],o=r.length,n=!!o;for(var i in t)(e||Bt.call(t,i))&&!(n&&(i=="length"||LT(i,o)))&&r.push(i);return r}function Nh(t,e,r){var o=t[e];(!(Bt.call(t,e)&&Wh(o,r))||r===void 0&&!(e in t))&&(t[e]=r)}function Us(t,e){for(var r=t.length;r--;)if(Wh(t[r][0],e))return r;return-1}function wT(t,e){return t&&Fh(e,ef(e),t)}function Vc(t,e,r,o,n,i,s){var a;if(o&&(a=i?o(t,n,i,s):o(t)),a!==void 0)return a;if(!Bs(t))return t;var u=Zc(t);if(u){if(a=RT(t),!e)return NT(t,a)}else{var c=vr(t),f=c==Kc||c==hh;if(zT(t))return _T(t,e);if(c==Qc||c==Gc||f&&!i){if(Ph(t))return i?t:{};if(a=WT(f?{}:t),!e)return FT(t,wT(a,t))}else{if(!ee[c])return i?t:{};a=UT(t,c,Vc,e)}}s||(s=new ho);var m=s.get(t);if(m)return m;if(s.set(t,a),!u)var p=r?$T(t):ef(t);return $1(p||t,function(d,y){p&&(y=d,d=t[y]),Nh(a,y,Vc(d,e,r,o,y,t,s))}),a}function ST(t){return Bs(t)?H1(t):{}}function DT(t,e,r){var o=e(t);return Zc(t)?o:R1(o,r(t))}function TT(t){return Ws.call(t)}function OT(t){if(!Bs(t)||YT(t))return!1;var e=Lh(t)||Ph(t)?Y1:A1;return e.test(Sr(t))}function MT(t){if(!Rh(t))return G1(t);var e=[];for(var r in Object(t))Bt.call(t,r)&&r!="constructor"&&e.push(r);return e}function _T(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function Xc(t){var e=new t.constructor(t.byteLength);return new ah(e).set(new ah(t)),e}function IT(t,e){var r=e?Xc(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function AT(t,e,r){var o=e?r(rh(t),!0):rh(t);return kh(o,N1,new t.constructor)}function ET(t){var e=new t.constructor(t.source,I1.exec(t));return e.lastIndex=t.lastIndex,e}function kT(t,e,r){var o=e?r(oh(t),!0):oh(t);return kh(o,F1,new t.constructor)}function PT(t){return fh?Object(fh.call(t)):{}}function CT(t,e){var r=e?Xc(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function NT(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e}function Fh(t,e,r,o){r||(r={});for(var n=-1,i=e.length;++n<i;){var s=e[n],a=o?o(r[s],t[s],s,r,t):void 0;Nh(r,s,a===void 0?t[s]:a)}return r}function FT(t,e){return Fh(t,$h(t),e)}function $T(t){return DT(t,ef,$h)}function Ls(t,e){var r=t.__data__;return BT(e)?r[typeof e=="string"?"string":"hash"]:r.map}function yo(t,e){var r=U1(t,e);return OT(r)?r:void 0}var $h=uh?Jc(uh,Object):KT,vr=TT;(qc&&vr(new qc(new ArrayBuffer(1)))!=$s||Dn&&vr(new Dn)!=Ns||Hc&&vr(Hc.resolve())!=eh||jc&&vr(new jc)!=Fs||zc&&vr(new zc)!=Yc)&&(vr=function(t){var e=Ws.call(t),r=e==Qc?t.constructor:void 0,o=r?Sr(r):void 0;if(o)switch(o){case K1:return $s;case Q1:return Ns;case J1:return eh;case X1:return Fs;case Z1:return Yc}return e});function RT(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&Bt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function WT(t){return typeof t.constructor=="function"&&!Rh(t)?ST(q1(t)):{}}function UT(t,e,r,o){var n=t.constructor;switch(e){case vh:return Xc(t);case mh:case dh:return new n(+t);case $s:return IT(t,o);case wh:case Sh:case Dh:case Th:case Oh:case Mh:case _h:case Ih:case Ah:return CT(t,o);case Ns:return AT(t,o,r);case yh:case gh:return new n(t);case xh:return ET(t);case Fs:return kT(t,o,r);case bh:return PT(t)}}function LT(t,e){return e=e??ph,!!e&&(typeof t=="number"||E1.test(t))&&t>-1&&t%1==0&&t<e}function BT(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function YT(t){return!!nh&&nh in t}function Rh(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Rs;return t===r}function Sr(t){if(t!=null){try{return Ch.call(t)}catch{}try{return t+""}catch{}}return""}function qT(t){return Vc(t,!0,!0)}function Wh(t,e){return t===e||t!==t&&e!==e}function HT(t){return jT(t)&&Bt.call(t,"callee")&&(!j1.call(t,"callee")||Ws.call(t)==Gc)}var Zc=Array.isArray;function Uh(t){return t!=null&&VT(t.length)&&!Lh(t)}function jT(t){return GT(t)&&Uh(t)}var zT=V1||QT;function Lh(t){var e=Bs(t)?Ws.call(t):"";return e==Kc||e==hh}function VT(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ph}function Bs(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function GT(t){return!!t&&typeof t=="object"}function ef(t){return Uh(t)?vT(t):MT(t)}function KT(){return[]}function QT(){return!1}po.exports=qT});var qh=A((VG,Yh)=>{"use strict";Yh.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,o=e.cmp&&function(i){return function(s){return function(a,u){var c={key:a,value:s[a]},f={key:u,value:s[u]};return i(c,f)}}}(e.cmp),n=[];return function i(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var a,u;if(Array.isArray(s)){for(u="[",a=0;a<s.length;a++)a&&(u+=","),u+=i(s[a])||"null";return u+"]"}if(s===null)return"null";if(n.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=n.push(s)-1,f=Object.keys(s).sort(o&&o(s));for(u="",a=0;a<f.length;a++){var m=f[a],p=i(s[m]);p&&(u&&(u+=","),u+=JSON.stringify(m)+":"+p)}return n.splice(c,1),"{"+u+"}"}}(t)}});var An=globalThis,En=An.ShadowRoot&&(An.ShadyCSS===void 0||An.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Js=Symbol(),xf=new WeakMap,vo=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Js)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(En&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=xf.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&xf.set(r,e))}return e}toString(){return this.cssText}},kn=t=>new vo(typeof t=="string"?t:t+"",void 0,Js),Ze=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((o,n,i)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[i+1],t[0]);return new vo(r,t,Js)},Xs=(t,e)=>{if(En)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let o=document.createElement("style"),n=An.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)}},Pn=En?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return kn(r)})(t):t;var{is:ly,defineProperty:py,getOwnPropertyDescriptor:my,getOwnPropertyNames:dy,getOwnPropertySymbols:hy,getPrototypeOf:yy}=Object,Cn=globalThis,gf=Cn.trustedTypes,xy=gf?gf.emptyScript:"",gy=Cn.reactiveElementPolyfillSupport,wo=(t,e)=>t,So={toAttribute(t,e){switch(e){case Boolean:t=t?xy:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Nn=(t,e)=>!ly(t,e),bf={attribute:!0,type:String,converter:So,reflect:!1,hasChanged:Nn};Symbol.metadata??=Symbol("metadata"),Cn.litPropertyMetadata??=new WeakMap;var mt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=bf){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,r);n!==void 0&&py(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:i}=my(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return n?.call(this)},set(s){let a=n?.call(this);i.call(this,s),this.requestUpdate(e,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??bf}static _$Ei(){if(this.hasOwnProperty(wo("elementProperties")))return;let e=yy(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(wo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(wo("properties"))){let r=this.properties,o=[...dy(r),...hy(r)];for(let n of o)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[o,n]of r)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[r,o]of this.elementProperties){let n=this._$Eu(r,o);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(Pn(n))}else e!==void 0&&r.push(Pn(e));return r}static _$Eu(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let o of r.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Xs(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$EC(e,r){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let i=(o.converter?.toAttribute!==void 0?o.converter:So).toAttribute(r,o.type);this._$Em=e,i==null?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,r){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let i=o.getPropertyOptions(n),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:So;this._$Em=n,this[n]=s.fromAttribute(r,i.type),this._$Em=null}}requestUpdate(e,r,o){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??Nn)(this[e],r))return;this.P(e,r,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,o){this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,i]of this._$Ep)this[n]=i;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,i]of o)i.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],i)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(r)):this._$EU()}catch(o){throw e=!1,this._$EU(),o}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(e){}firstUpdated(e){}};mt.elementStyles=[],mt.shadowRootOptions={mode:"open"},mt[wo("elementProperties")]=new Map,mt[wo("finalized")]=new Map,gy?.({ReactiveElement:mt}),(Cn.reactiveElementVersions??=[]).push("2.0.4");var ia=globalThis,Fn=ia.trustedTypes,vf=Fn?Fn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Mf="$lit$",kt=`lit$${Math.random().toFixed(9).slice(2)}$`,_f="?"+kt,by=`<${_f}>`,zt=document,To=()=>zt.createComment(""),Oo=t=>t===null||typeof t!="object"&&typeof t!="function",sa=Array.isArray,vy=t=>sa(t)||typeof t?.[Symbol.iterator]=="function",Zs=`[
|
|
6
|
+
\f\r]`,Do=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wf=/-->/g,Sf=/>/g,Ht=RegExp(`>|${Zs}(?:([^\\s"'>=/]+)(${Zs}*=${Zs}*(?:[^
|
|
7
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Df=/'/g,Tf=/"/g,If=/^(?:script|style|textarea|title)$/i,aa=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Re=aa(1),NO=aa(2),FO=aa(3),Vt=Symbol.for("lit-noChange"),xe=Symbol.for("lit-nothing"),Of=new WeakMap,jt=zt.createTreeWalker(zt,129);function Af(t,e){if(!sa(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return vf!==void 0?vf.createHTML(e):e}var wy=(t,e)=>{let r=t.length-1,o=[],n,i=e===2?"<svg>":e===3?"<math>":"",s=Do;for(let a=0;a<r;a++){let u=t[a],c,f,m=-1,p=0;for(;p<u.length&&(s.lastIndex=p,f=s.exec(u),f!==null);)p=s.lastIndex,s===Do?f[1]==="!--"?s=wf:f[1]!==void 0?s=Sf:f[2]!==void 0?(If.test(f[2])&&(n=RegExp("</"+f[2],"g")),s=Ht):f[3]!==void 0&&(s=Ht):s===Ht?f[0]===">"?(s=n??Do,m=-1):f[1]===void 0?m=-2:(m=s.lastIndex-f[2].length,c=f[1],s=f[3]===void 0?Ht:f[3]==='"'?Tf:Df):s===Tf||s===Df?s=Ht:s===wf||s===Sf?s=Do:(s=Ht,n=void 0);let d=s===Ht&&t[a+1].startsWith("/>")?" ":"";i+=s===Do?u+by:m>=0?(o.push(c),u.slice(0,m)+Mf+u.slice(m)+kt+d):u+kt+(m===-2?a:d)}return[Af(t,i+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Mo=class t{constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let i=0,s=0,a=e.length-1,u=this.parts,[c,f]=wy(e,r);if(this.el=t.createElement(c,o),jt.currentNode=this.el.content,r===2||r===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=jt.nextNode())!==null&&u.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(Mf)){let p=f[s++],d=n.getAttribute(m).split(kt),y=/([.?@])?(.*)/.exec(p);u.push({type:1,index:i,name:y[2],strings:d,ctor:y[1]==="."?ta:y[1]==="?"?ra:y[1]==="@"?oa:Ir}),n.removeAttribute(m)}else m.startsWith(kt)&&(u.push({type:6,index:i}),n.removeAttribute(m));if(If.test(n.tagName)){let m=n.textContent.split(kt),p=m.length-1;if(p>0){n.textContent=Fn?Fn.emptyScript:"";for(let d=0;d<p;d++)n.append(m[d],To()),jt.nextNode(),u.push({type:2,index:++i});n.append(m[p],To())}}}else if(n.nodeType===8)if(n.data===_f)u.push({type:2,index:i});else{let m=-1;for(;(m=n.data.indexOf(kt,m+1))!==-1;)u.push({type:7,index:i}),m+=kt.length-1}i++}}static createElement(e,r){let o=zt.createElement("template");return o.innerHTML=e,o}};function _r(t,e,r=t,o){if(e===Vt)return e;let n=o!==void 0?r._$Co?.[o]:r._$Cl,i=Oo(e)?void 0:e._$litDirective$;return n?.constructor!==i&&(n?._$AO?.(!1),i===void 0?n=void 0:(n=new i(t),n._$AT(t,r,o)),o!==void 0?(r._$Co??=[])[o]=n:r._$Cl=n),n!==void 0&&(e=_r(t,n._$AS(t,e.values),n,o)),e}var ea=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:o}=this._$AD,n=(e?.creationScope??zt).importNode(r,!0);jt.currentNode=n;let i=jt.nextNode(),s=0,a=0,u=o[0];for(;u!==void 0;){if(s===u.index){let c;u.type===2?c=new _o(i,i.nextSibling,this,e):u.type===1?c=new u.ctor(i,u.name,u.strings,this,e):u.type===6&&(c=new na(i,this,e)),this._$AV.push(c),u=o[++a]}s!==u?.index&&(i=jt.nextNode(),s++)}return jt.currentNode=zt,n}p(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},_o=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,o,n){this.type=2,this._$AH=xe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=_r(this,e,r),Oo(e)?e===xe||e==null||e===""?(this._$AH!==xe&&this._$AR(),this._$AH=xe):e!==this._$AH&&e!==Vt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):vy(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==xe&&Oo(this._$AH)?this._$AA.nextSibling.data=e:this.T(zt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Mo.createElement(Af(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let i=new ea(n,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(e){let r=Of.get(e.strings);return r===void 0&&Of.set(e.strings,r=new Mo(e)),r}k(e){sa(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let i of e)n===r.length?r.push(o=new t(this.O(To()),this.O(To()),this,this.options)):o=r[n],o._$AI(i),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ir=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,o,n,i){this.type=1,this._$AH=xe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=i,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=xe}_$AI(e,r=this,o,n){let i=this.strings,s=!1;if(i===void 0)e=_r(this,e,r,0),s=!Oo(e)||e!==this._$AH&&e!==Vt,s&&(this._$AH=e);else{let a=e,u,c;for(e=i[0],u=0;u<i.length-1;u++)c=_r(this,a[o+u],r,u),c===Vt&&(c=this._$AH[u]),s||=!Oo(c)||c!==this._$AH[u],c===xe?e=xe:e!==xe&&(e+=(c??"")+i[u+1]),this._$AH[u]=c}s&&!n&&this.j(e)}j(e){e===xe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ta=class extends Ir{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===xe?void 0:e}},ra=class extends Ir{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==xe)}},oa=class extends Ir{constructor(e,r,o,n,i){super(e,r,o,n,i),this.type=5}_$AI(e,r=this){if((e=_r(this,e,r,0)??xe)===Vt)return;let o=this._$AH,n=e===xe&&o!==xe||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,i=e!==xe&&(o===xe||n);n&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},na=class{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){_r(this,e)}};var Sy=ia.litHtmlPolyfillSupport;Sy?.(Mo,_o),(ia.litHtmlVersions??=[]).push("3.2.1");var Ef=(t,e,r)=>{let o=r?.renderBefore??e,n=o._$litPart$;if(n===void 0){let i=r?.renderBefore??null;o._$litPart$=n=new _o(e.insertBefore(To(),i),i,void 0,r??{})}return n._$AI(t),n};var Me=class extends mt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ef(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Vt}};Me._$litElement$=!0,Me.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Me});var Dy=globalThis.litElementPolyfillSupport;Dy?.({LitElement:Me});(globalThis.litElementVersions??=[]).push("4.1.1");var $n=kn('system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif');var it=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Ty={attribute:!0,type:String,converter:So,reflect:!1,hasChanged:Nn},Oy=(t=Ty,e,r)=>{let{kind:o,metadata:n}=r,i=globalThis.litPropertyMetadata.get(n);if(i===void 0&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(r.name,t),o==="accessor"){let{name:s}=r;return{set(a){let u=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,u,t)},init(a){return a!==void 0&&this.P(s,void 0,t),a}}}if(o==="setter"){let{name:s}=r;return function(a){let u=this[s];e.call(this,a),this.requestUpdate(s,u,t)}}throw Error("Unsupported decorator location: "+o)};function dt(t){return(e,r)=>typeof r=="object"?Oy(t,e,r):((o,n,i)=>{let s=n.hasOwnProperty(i);return n.constructor.createProperty(i,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(n,i):void 0})(t,e,r)}var Gs={};re(Gs,{TypedHandler:()=>mf,TypedRequest:()=>hf,TypedResponseError:()=>At,TypedRouter:()=>_n,TypedTarget:()=>df,VirtualStream:()=>pt});var Tr=nt(ua(),1);var Ue={};re(Ue,{AsyncExecutionStack:()=>Bu,BackpressuredArray:()=>Yu,FastMap:()=>Zo,Interest:()=>en,InterestMap:()=>qu,LimitedArray:()=>Hu,LoopTracker:()=>ju,ObjectMap:()=>dr,Stringmap:()=>zu,TimedAggregtor:()=>Vu,Tree:()=>Gu,uni:()=>Gl});var X={};re(X,{Timeout:()=>Bn,delayFor:()=>Pt,delayForRandom:()=>Ny});var K={};re(K,{CumulativeDeferred:()=>Ln,Deferred:()=>Un,cumulativeDefer:()=>_y,defer:()=>Gt,fromCallback:()=>Cy,getFirstTrueOrFalse:()=>Py,map:()=>Ey,rejectedPromise:()=>Ay,resolvedPromise:()=>Iy,timeoutAndContinue:()=>ky,timeoutWrap:()=>Pf});var Un=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((e,r)=>{this.resolve=o=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(o)},this.reject=o=>{this.status="rejected",this.stoppedAt=Date.now(),r(o)},this.startedAt=Date.now(),this.status="pending"})}},Gt=()=>new Un;var Ln=class{constructor(){this.accumulatedPromises=[],this.deferred=Gt(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(e){this.accumulatedPromises.push(e)}},_y=()=>new Ln;var Iy=t=>Promise.resolve(t),Ay=t=>Promise.reject(t),Ey=async(t,e)=>{let r=[],o=[];for(let n of t){let i=e(n);r.push(i),i.then(s=>{o.push(s)})}return await Promise.all(r),o},Pf=async(t,e,r=!0)=>new Promise((o,n)=>{setTimeout(()=>{r?n(new Error("timeout")):o(null)},e),t.then(o,n)}),ky=async(t,e=6e4)=>Pf(t,e,!1),Py=async t=>{let e=Gt();for(let r of t)r.then(o=>{o===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise},Cy=t=>new Promise((e,r)=>{t((o,n)=>{o?r(o):e(n)})});var Pt=async(t,e,r=!1)=>(await new Bn(t,null,r).promise,e),Ny=async(t,e,r,o=!1)=>(await Pt(Math.random()*(e-t)+t,null,o),r),Bn=class{constructor(e,r,o=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=Gt(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},e),this.started=Date.now(),o&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}};var qn={};re(qn,{SmartMatch:()=>la});var Yn={};re(Yn,{isMatch:()=>Ry,matcher:()=>$y});function ca(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var fa=new Map,Cf=(t,e)=>{if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},Fy=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(fa.has(r))return fa.get(r);let o=t[0]==="!";o&&(t=t.slice(1)),t=ca(t).replace(/\\\*/g,"[\\s\\S]*");let n=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return n.negated=o,fa.set(r,n),n},Nf=(t,e,r,o)=>{if(t=Cf(t,"inputs"),e=Cf(e,"patterns"),e.length===0)return[];e=e.map(s=>Fy(s,r));let{allPatterns:n}=r||{},i=[];for(let s of t){let a,u=[...e].fill(!1);for(let[c,f]of e.entries())if(f.test(s)&&(u[c]=!0,a=!f.negated,!a))break;if(!(a===!1||a===void 0&&e.some(c=>!c.negated)||n&&u.some((c,f)=>!c&&!e[f].negated))&&(i.push(s),o))break}return i};function $y(t,e,r){return Nf(t,e,r,!1)}function Ry(t,e,r){return Nf(t,e,r,!0).length>0}var la=class{constructor(e){this.wildcard=e}match(e){return Yn.isMatch(e,this.wildcard)}};var st={};re(st,{ObservableIntake:()=>Ia,Observablemap:()=>_a,rxjs:()=>Co});var Co={};re(Co,{Observable:()=>oe,ReplaySubject:()=>xa,Subject:()=>yt,Subscription:()=>tt,from:()=>Zt,fromEvent:()=>tr,of:()=>ba,ops:()=>fx});var pa=function(t,e){return pa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},pa(t,e)};function _e(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");pa(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Ff(t,e,r,o){function n(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(f){try{c(o.next(f))}catch(m){s(m)}}function u(f){try{c(o.throw(f))}catch(m){s(m)}}function c(f){f.done?i(f.value):n(f.value).then(a,u)}c((o=o.apply(t,e||[])).next())})}function Hn(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(f){return u([c,f])}}function u(c){if(o)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(o=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(f){c=[6,f],n=0}finally{o=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ht(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Be(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),n,i=[],s;try{for(;(e===void 0||e-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(s)throw s.error}}return i}function et(t,e,r){if(r||arguments.length===2)for(var o=0,n=e.length,i;o<n;o++)(i||!(o in e))&&(i||(i=Array.prototype.slice.call(e,0,o)),i[o]=e[o]);return t.concat(i||Array.prototype.slice.call(e))}function Kt(t){return this instanceof Kt?(this.v=t,this):new Kt(t)}function $f(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(t,e||[]),n,i=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(p){o[p]&&(n[p]=function(d){return new Promise(function(y,w){i.push([p,d,y,w])>1||a(p,d)})})}function a(p,d){try{u(o[p](d))}catch(y){m(i[0][3],y)}}function u(p){p.value instanceof Kt?Promise.resolve(p.value.v).then(c,f):m(i[0][2],p)}function c(p){a("next",p)}function f(p){a("throw",p)}function m(p,d){p(d),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Rf(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof ht=="function"?ht(t):t[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(i){r[i]=t[i]&&function(s){return new Promise(function(a,u){s=t[i](s),n(a,u,s.done,s.value)})}}function n(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}function W(t){return typeof t=="function"}function jn(t){var e=function(o){Error.call(o),o.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var zn=jn(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
8
8
|
`+r.map(function(o,n){return n+1+") "+o.toString()}).join(`
|
|
9
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function Qt(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var tt=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,o,n,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=ht(s),u=a.next();!u.done;u=a.next()){var c=u.value;c.remove(this)}}catch(w){e={error:w}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else s.remove(this);var f=this.initialTeardown;if(W(f))try{f()}catch(w){i=w instanceof zn?w.errors:[w]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var p=ht(m),d=p.next();!d.done;d=p.next()){var y=d.value;try{Wf(y)}catch(w){i=i??[],w instanceof zn?i=et(et([],Be(i)),Be(w.errors)):i.push(w)}}}catch(w){o={error:w}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(o)throw o.error}}}if(i)throw new zn(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Wf(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&Qt(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&Qt(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}();var ma=tt.EMPTY;function Vn(t){return t instanceof tt||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function Wf(t){W(t)?t():t.unsubscribe()}var rt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ar={setTimeout:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Ar.delegate;return n?.setTimeout?n.setTimeout.apply(n,et([t,e],Be(r))):setTimeout.apply(void 0,et([t,e],Be(r)))},clearTimeout:function(t){var e=Ar.delegate;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Gn(t){Ar.setTimeout(function(){var e=rt.onUnhandledError;if(e)e(t);else throw t})}function Jt(){}var Uf=function(){return da("C",void 0,void 0)}();function Lf(t){return da("E",void 0,t)}function Bf(t){return da("N",t,void 0)}function da(t,e,r){return{kind:t,value:e,error:r}}var Xt=null;function Er(t){if(rt.useDeprecatedSynchronousErrorHandling){var e=!Xt;if(e&&(Xt={errorThrown:!1,error:null}),t(),e){var r=Xt,o=r.errorThrown,n=r.error;if(Xt=null,o)throw n}}else t()}function Yf(t){rt.useDeprecatedSynchronousErrorHandling&&Xt&&(Xt.errorThrown=!0,Xt.error=t)}var Io=function(t){_e(e,t);function e(r){var o=t.call(this)||this;return o.isStopped=!1,r?(o.destination=r,Vn(r)&&r.add(o)):o.destination=qy,o}return e.create=function(r,o,n){return new Qn(r,o,n)},e.prototype.next=function(r){this.isStopped?ya(Bf(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?ya(Lf(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?ya(Uf,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(tt);var Ly=Function.prototype.bind;function ha(t,e){return Ly.call(t,e)}var By=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(o){Kn(o)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(o){Kn(o)}else Kn(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Kn(r)}},t}(),Qn=function(t){_e(e,t);function e(r,o,n){var i=t.call(this)||this,s;if(W(r)||!r)s={next:r??void 0,error:o??void 0,complete:n??void 0};else{var a;i&&rt.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&ha(r.next,a),error:r.error&&ha(r.error,a),complete:r.complete&&ha(r.complete,a)}):s=r}return i.destination=new By(s),i}return e}(Io);function Kn(t){rt.useDeprecatedSynchronousErrorHandling?Yf(t):Gn(t)}function Yy(t){throw t}function ya(t,e){var r=rt.onStoppedNotification;r&&Ar.setTimeout(function(){return r(t,e)})}var qy={closed:!0,next:Jt,error:Yy,complete:Jt};var kr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Jn(t){return t}function qf(t){return t.length===0?Jn:t.length===1?t[0]:function(r){return t.reduce(function(o,n){return n(o)},r)}}var oe=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,o){var n=this,i=jy(e)?e:new Qn(e,r,o);return Er(function(){var s=n,a=s.operator,u=s.source;i.add(a?a.call(i,u):u?n._subscribe(i):n._trySubscribe(i))}),i},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var o=this;return r=Hf(r),new r(function(n,i){var s=new Qn({next:function(a){try{e(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:n});o.subscribe(s)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[kr]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return qf(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Hf(e),new e(function(o,n){var i;r.subscribe(function(s){return i=s},function(s){return n(s)},function(){return o(i)})})},t.create=function(e){return new t(e)},t}();function Hf(t){var e;return(e=t??rt.Promise)!==null&&e!==void 0?e:Promise}function Hy(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}function jy(t){return t&&t instanceof Io||Hy(t)&&Vn(t)}function zy(t){return W(t?.lift)}function fe(t){return function(e){if(zy(e))return e.lift(function(r){try{return t(r,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function le(t,e,r,o,n){return new Vy(t,e,r,o,n)}var Vy=function(t){_e(e,t);function e(r,o,n,i,s,a){var u=t.call(this,r)||this;return u.onFinalize=s,u.shouldUnsubscribe=a,u._next=o?function(c){try{o(c)}catch(f){r.error(f)}}:t.prototype._next,u._error=i?function(c){try{i(c)}catch(f){r.error(f)}finally{this.unsubscribe()}}:t.prototype._error,u._complete=n?function(){try{n()}catch(c){r.error(c)}finally{this.unsubscribe()}}:t.prototype._complete,u}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;t.prototype.unsubscribe.call(this),!o&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(Io);var jf=jn(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var yt=function(t){_e(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var o=new zf(this,this);return o.operator=r,o},e.prototype._throwIfClosed=function(){if(this.closed)throw new jf},e.prototype.next=function(r){var o=this;Er(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var s=ht(o.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}})},e.prototype.error=function(r){var o=this;Er(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=r;for(var n=o.observers;n.length;)n.shift().error(r)}})},e.prototype.complete=function(){var r=this;Er(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var o=r.observers;o.length;)o.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var o=this,n=this,i=n.hasError,s=n.isStopped,a=n.observers;return i||s?ma:(this.currentObservers=null,a.push(r),new tt(function(){o.currentObservers=null,Qt(a,r)}))},e.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,s=o.isStopped;n?r.error(i):s&&r.complete()},e.prototype.asObservable=function(){var r=new oe;return r.source=this,r},e.create=function(r,o){return new zf(r,o)},e}(oe);var zf=function(t){_e(e,t);function e(r,o){var n=t.call(this)||this;return n.destination=r,n.source=o,n}return e.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},e.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},e.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},e.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:ma},e}(yt);var Ao={now:function(){return(Ao.delegate||Date).now()},delegate:void 0};var xa=function(t){_e(e,t);function e(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=Ao);var i=t.call(this)||this;return i._bufferSize=r,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,o),i}return e.prototype.next=function(r){var o=this,n=o.isStopped,i=o._buffer,s=o._infiniteTimeWindow,a=o._timestampProvider,u=o._windowTime;n||(i.push(r),!s&&i.push(a.now()+u)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),u=0;u<a.length&&!r.closed;u+=i?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),o},e.prototype._trimBuffer=function(){var r=this,o=r._bufferSize,n=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*o;if(o<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var u=n.now(),c=0,f=1;f<i.length&&i[f]<=u;f+=2)c=f;c&&i.splice(0,c+1)}},e}(yt);var Vf=function(t){_e(e,t);function e(r,o){return t.call(this)||this}return e.prototype.schedule=function(r,o){return o===void 0&&(o=0),this},e}(tt);var Eo={setInterval:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Eo.delegate;return n?.setInterval?n.setInterval.apply(n,et([t,e],Be(r))):setInterval.apply(void 0,et([t,e],Be(r)))},clearInterval:function(t){var e=Eo.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Gf=function(t){_e(e,t);function e(r,o){var n=t.call(this,r,o)||this;return n.scheduler=r,n.work=o,n.pending=!1,n}return e.prototype.schedule=function(r,o){var n;if(o===void 0&&(o=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,o)),this.pending=!0,this.delay=o,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(s,this.id,o),this},e.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),Eo.setInterval(r.flush.bind(r,this),n)},e.prototype.recycleAsyncId=function(r,o,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return o;o!=null&&Eo.clearInterval(o)},e.prototype.execute=function(r,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(r,o);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,o){var n=!1,i;try{this.work(r)}catch(s){n=!0,i=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},e.prototype.unsubscribe=function(){if(!this.closed){var r=this,o=r.id,n=r.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Qt(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(Vf);var ga=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,o){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(o,r)},t.now=Ao.now,t}();var Kf=function(t){_e(e,t);function e(r,o){o===void 0&&(o=ga.now);var n=t.call(this,r,o)||this;return n.actions=[],n._active=!1,n}return e.prototype.flush=function(r){var o=this.actions;if(this._active){o.push(r);return}var n;this._active=!0;do if(n=r.execute(r.state,r.delay))break;while(r=o.shift());if(this._active=!1,n){for(;r=o.shift();)r.unsubscribe();throw n}},e}(ga);var ko=new Kf(Gf),Qf=ko;function Xn(t){return t&&W(t.schedule)}function Gy(t){return t[t.length-1]}function Pr(t){return Xn(Gy(t))?t.pop():void 0}var Cr=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function Zn(t){return W(t?.then)}function ei(t){return W(t[kr])}function ti(t){return Symbol.asyncIterator&&W(t?.[Symbol.asyncIterator])}function ri(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ky(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oi=Ky();function ni(t){return W(t?.[oi])}function ii(t){return $f(this,arguments,function(){var r,o,n,i;return Hn(this,function(s){switch(s.label){case 0:r=t.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Kt(r.read())];case 3:return o=s.sent(),n=o.value,i=o.done,i?[4,Kt(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Kt(n)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function si(t){return W(t?.getReader)}function ge(t){if(t instanceof oe)return t;if(t!=null){if(ei(t))return Qy(t);if(Cr(t))return Jy(t);if(Zn(t))return Xy(t);if(ti(t))return Jf(t);if(ni(t))return Zy(t);if(si(t))return ex(t)}throw ri(t)}function Qy(t){return new oe(function(e){var r=t[kr]();if(W(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Jy(t){return new oe(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function Xy(t){return new oe(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,Gn)})}function Zy(t){return new oe(function(e){var r,o;try{for(var n=ht(t),i=n.next();!i.done;i=n.next()){var s=i.value;if(e.next(s),e.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}e.complete()})}function Jf(t){return new oe(function(e){tx(t,e).catch(function(r){return e.error(r)})})}function ex(t){return Jf(ii(t))}function tx(t,e){var r,o,n,i;return Ff(this,void 0,void 0,function(){var s,a;return Hn(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=Rf(t),u.label=1;case 1:return[4,r.next()];case 2:if(o=u.sent(),!!o.done)return[3,4];if(s=o.value,e.next(s),e.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=u.sent(),n={error:a},[3,11];case 6:return u.trys.push([6,,9,10]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function je(t,e,r,o,n){o===void 0&&(o=0),n===void 0&&(n=!1);var i=e.schedule(function(){r(),n?t.add(this.schedule(null,o)):this.unsubscribe()},o);if(t.add(i),!n)return i}function ai(t,e){return e===void 0&&(e=0),fe(function(r,o){r.subscribe(le(o,function(n){return je(o,t,function(){return o.next(n)},e)},function(){return je(o,t,function(){return o.complete()},e)},function(n){return je(o,t,function(){return o.error(n)},e)}))})}function ui(t,e){return e===void 0&&(e=0),fe(function(r,o){o.add(t.schedule(function(){return r.subscribe(o)},e))})}function Xf(t,e){return ge(t).pipe(ui(e),ai(e))}function Zf(t,e){return ge(t).pipe(ui(e),ai(e))}function el(t,e){return new oe(function(r){var o=0;return e.schedule(function(){o===t.length?r.complete():(r.next(t[o++]),r.closed||this.schedule())})})}function tl(t,e){return new oe(function(r){var o;return je(r,e,function(){o=t[oi](),je(r,e,function(){var n,i,s;try{n=o.next(),i=n.value,s=n.done}catch(a){r.error(a);return}s?r.complete():r.next(i)},0,!0)}),function(){return W(o?.return)&&o.return()}})}function ci(t,e){if(!t)throw new Error("Iterable cannot be null");return new oe(function(r){je(r,e,function(){var o=t[Symbol.asyncIterator]();je(r,e,function(){o.next().then(function(n){n.done?r.complete():r.next(n.value)})},0,!0)})})}function rl(t,e){return ci(ii(t),e)}function ol(t,e){if(t!=null){if(ei(t))return Xf(t,e);if(Cr(t))return el(t,e);if(Zn(t))return Zf(t,e);if(ti(t))return ci(t,e);if(ni(t))return tl(t,e);if(si(t))return rl(t,e)}throw ri(t)}function Zt(t,e){return e?ol(t,e):ge(t)}function ba(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Pr(t);return Zt(t,r)}function nl(t){return t instanceof Date&&!isNaN(t)}function er(t,e){return fe(function(r,o){var n=0;r.subscribe(le(o,function(i){o.next(t.call(e,i,n++))}))})}var rx=Array.isArray;function ox(t,e){return rx(e)?t.apply(void 0,et([],Be(e))):t(e)}function il(t){return er(function(e){return ox(t,e)})}function sl(t,e,r,o,n,i,s,a){var u=[],c=0,f=0,m=!1,p=function(){m&&!u.length&&!c&&e.complete()},d=function(w){return c<o?y(w):u.push(w)},y=function(w){i&&e.next(w),c++;var g=!1;ge(r(w,f++)).subscribe(le(e,function(I){n?.(I),i?d(I):e.next(I)},function(){g=!0},void 0,function(){if(g)try{c--;for(var I=function(){var D=u.shift();s?je(e,s,function(){return y(D)}):y(D)};u.length&&c<o;)I();p()}catch(D){e.error(D)}}))};return t.subscribe(le(e,d,function(){m=!0,p()})),function(){a?.()}}function Po(t,e,r){return r===void 0&&(r=1/0),W(e)?Po(function(o,n){return er(function(i,s){return e(o,i,n,s)})(ge(t(o,n)))},r):(typeof e=="number"&&(r=e),fe(function(o,n){return sl(o,n,t,r)}))}function al(t){return t===void 0&&(t=1/0),Po(Jn,t)}function ul(){return al(1)}function va(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ul()(Zt(t,Pr(t)))}var nx=["addListener","removeListener"],ix=["addEventListener","removeEventListener"],sx=["on","off"];function tr(t,e,r,o){if(W(r)&&(o=r,r=void 0),o)return tr(t,e,r).pipe(il(o));var n=Be(cx(t)?ix.map(function(a){return function(u){return t[a](e,u,r)}}):ax(t)?nx.map(cl(t,e)):ux(t)?sx.map(cl(t,e)):[],2),i=n[0],s=n[1];if(!i&&Cr(t))return Po(function(a){return tr(a,e,r)})(ge(t));if(!i)throw new TypeError("Invalid event target");return new oe(function(a){var u=function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return a.next(1<c.length?c:c[0])};return i(u),function(){return s(u)}})}function cl(t,e){return function(r){return function(o){return t[r](e,o)}}}function ax(t){return W(t.addListener)&&W(t.removeListener)}function ux(t){return W(t.on)&&W(t.off)}function cx(t){return W(t.addEventListener)&&W(t.removeEventListener)}function fl(t,e,r){t===void 0&&(t=0),r===void 0&&(r=Qf);var o=-1;return e!=null&&(Xn(e)?r=e:o=e),new oe(function(n){var i=nl(t)?+t-r.now():t;i<0&&(i=0);var s=0;return r.schedule(function(){n.closed||(n.next(s++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function wa(t,e){return fe(function(r,o){var n=0;r.subscribe(le(o,function(i){return t.call(e,i,n++)&&o.next(i)}))})}function Sa(t){return fe(function(e,r){var o=!1,n=null,i=null,s=function(){if(i?.unsubscribe(),i=null,o){o=!1;var a=n;n=null,r.next(a)}};e.subscribe(le(r,function(a){i?.unsubscribe(),o=!0,n=a,i=le(r,s,Jt),ge(t(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){n=i=null}))})}function Da(t,e){return e===void 0&&(e=ko),fe(function(r,o){var n=null,i=null,s=null,a=function(){if(n){n.unsubscribe(),n=null;var c=i;i=null,o.next(c)}};function u(){var c=s+t,f=e.now();if(f<c){n=this.schedule(void 0,c-f),o.add(n);return}a()}r.subscribe(le(o,function(c){i=c,s=e.now(),n||(n=e.schedule(u,t),o.add(n))},function(){a(),o.complete()},void 0,function(){i=n=null}))})}function Ta(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Pr(t);return fe(function(o,n){(r?va(t,o,r):va(t,o)).subscribe(n)})}function Oa(t){return fe(function(e,r){ge(t).subscribe(le(r,function(){return r.complete()},Jt)),!r.closed&&e.subscribe(r)})}function ll(t,e){return fe(function(r,o){var n=e??{},i=n.leading,s=i===void 0?!0:i,a=n.trailing,u=a===void 0?!1:a,c=!1,f=null,m=null,p=!1,d=function(){m?.unsubscribe(),m=null,u&&(g(),p&&o.complete())},y=function(){m=null,p&&o.complete()},w=function(I){return m=ge(t(I)).subscribe(le(o,d,y))},g=function(){if(c){c=!1;var I=f;f=null,o.next(I),!p&&w(I)}};r.subscribe(le(o,function(I){c=!0,f=I,!(m&&!m.closed)&&(s?g():w(I))},function(){p=!0,!(u&&c&&m&&!m.closed)&&o.complete()}))})}function Ma(t,e,r){e===void 0&&(e=ko);var o=fl(t,e);return ll(function(){return o},r)}var fx={debounce:Sa,debounceTime:Da,map:er,startWith:Ta,takeUntil:Oa,throttleTime:Ma,filter:wa};var _a=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,r){let o=this.observableEventEmitterBundleArray.find(n=>n.eventRef===e&&n.event===r);if(o)return o.subject;{let n=tr(e,r),i=new yt;n.subscribe(i);let s={subject:i,eventRef:e,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(e,r){let o=this.observableEventTargetBundleArray.find(n=>n.eventRef===e&&n.event===r);if(o)return o.subject;{let i={subject:new yt,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var Ia=class{constructor(){this.observableFunctions={next:e=>{},complete:e=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new oe(e=>{this.observableFunctions.next=(...r)=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=K.defer(),this.completed=this.completedDeffered.promise}setObservable(e){this.observable=e}push(e){this.buffered?this.payloadBuffer.push(e):this.internalPush(e)}pushMany(e){for(let r of e)this.push(r)}setGenerator(e){this.generator=e}makeBuffered(){this.buffered=!0}subscribe(...e){return this.observable.subscribe(...e)}request(e){if(e!==0)for(let r=0;r!==e;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let o=this.generator.next();this.internalPush(o.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}};var Tt={};re(Tt,{CronJob:()=>Xo,CronManager:()=>Nu,ExtendedDate:()=>Fu,HrtMeasurement:()=>$u,Interval:()=>Ru,TimeStamp:()=>Qr,Timer:()=>Wu,getMilliSecondsAsHumanReadableAgoTime:()=>Ev,getMilliSecondsAsHumanReadableString:()=>Cu,getMilliSecondsFromUnits:()=>Pu,units:()=>Ct});var fi={};re(fi,{Cron:()=>dx,CronDate:()=>Ye,CronPattern:()=>Ea,scheduledJobs:()=>Fo});function Ie(t,e,r,o,n,i,s,a){return Ie.fromTZ(Ie.tp(t,e,r,o,n,i,s),a)}Ie.fromTZISO=(t,e,r)=>Ie.fromTZ(lx(t,e),r);Ie.fromTZ=function(t,e){let r=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),o=Aa(t.tz,r),n=new Date(r.getTime()-o),i=Aa(t.tz,n);if(i-o===0)return n;{let s=new Date(r.getTime()-i),a=Aa(t.tz,s);if(a-i===0||!e&&a-i>0)return s;if(e)throw new Error("Invalid date passed to fromTZ()");return n}};Ie.toTZ=function(t,e){let r=t.toLocaleString("en-US",{timeZone:e}).replace(/[\u202f]/," "),o=new Date(r);return{y:o.getFullYear(),m:o.getMonth()+1,d:o.getDate(),h:o.getHours(),i:o.getMinutes(),s:o.getSeconds(),tz:e}};Ie.tp=(t,e,r,o,n,i,s)=>({y:t,m:e,d:r,h:o,i:n,s:i,tz:s});function Aa(t,e=new Date){let r=e.toLocaleString("en-US",{timeZone:t,timeZoneName:"shortOffset"}).split(" ").slice(-1)[0],o=e.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${o} GMT`)-Date.parse(`${o} ${r}`)}function lx(t,e){let r=new Date(Date.parse(t));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let o=t.substring(9);return t.includes("Z")||o.includes("-")||o.includes("+")?Ie.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Ie.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}Ie.minitz=Ie;var ka=32,$o=31|ka,dl=[1,2,4,8,16],Ea=class{pattern;timezone;second;minute;hour;day;month;dayOfWeek;lastDayOfMonth;starDOM;starDOW;constructor(t,e){this.pattern=t,this.timezone=e,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}parse(){if(!(typeof this.pattern=="string"||this.pattern instanceof String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let t=this.pattern.replace(/\s+/g," ").split(" ");if(t.length<5||t.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five or six space separated parts are required.");if(t.length===5&&t.unshift("0"),t[3].indexOf("L")>=0&&(t[3]=t[3].replace("L",""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.replaceAlphaDays(t[5])),t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let e=new Ye(new Date,this.timezone).getDate(!0);t[0]=t[0].replace("?",e.getSeconds().toString()),t[1]=t[1].replace("?",e.getMinutes().toString()),t[2]=t[2].replace("?",e.getHours().toString()),this.starDOM||(t[3]=t[3].replace("?",e.getDate().toString())),t[4]=t[4].replace("?",(e.getMonth()+1).toString()),this.starDOW||(t[5]=t[5].replace("?",e.getDay().toString()))}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0,1),this.partToArray("minute",t[1],0,1),this.partToArray("hour",t[2],0,1),this.partToArray("day",t[3],-1,1),this.partToArray("month",t[4],-1,1),this.partToArray("dayOfWeek",t[5],0,$o),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(t,e,r,o){let n=this[t],i=t==="day"&&this.lastDayOfMonth;if(e===""&&!i)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return n.fill(o);let s=e.split(",");if(s.length>1)for(let a=0;a<s.length;a++)this.partToArray(t,s[a],r,o);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,r,o):e.indexOf("-")!==-1?this.handleRange(e,t,r,o):e.indexOf("/")!==-1?this.handleStepping(e,t,r,o):e!==""&&this.handleNumber(e,t,r,o)}throwAtIllegalCharacters(t){for(let e=0;e<t.length;e++)if((e===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")}handleNumber(t,e,r,o){let n=this.extractNth(t,e),i=parseInt(n[0],10)+r;if(isNaN(i))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,i,n[1]||o)}setPart(t,e,r){if(!Object.prototype.hasOwnProperty.call(this,t))throw new TypeError("CronPattern: Invalid part specified: "+t);if(t==="dayOfWeek"){if(e===7&&(e=0),e<0||e>6)throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+e);this.setNthWeekdayOfMonth(e,r);return}if(t==="second"||t==="minute"){if(e<0||e>=60)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="hour"){if(e<0||e>=24)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="day"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"&&(e<0||e>=12))throw new RangeError("CronPattern: Invalid value for "+t+": "+e);this[t][e]=r}handleRangeWithStepping(t,e,r,o){let n=this.extractNth(t,e),i=n[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(i===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,s,a,u]=i,c=parseInt(s,10)+r,f=parseInt(a,10)+r,m=parseInt(u,10);if(isNaN(c))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(f))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(m))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(m===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(m>this[e].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[e].length+")");if(c>f)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let p=c;p<=f;p+=m)this.setPart(e,p,n[1]||o)}extractNth(t,e){let r=t,o;if(r.includes("#")){if(e!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");o=r.split("#")[1],r=r.split("#")[0]}return[r,o]}handleRange(t,e,r,o){let n=this.extractNth(t,e),i=n[0].split("-");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let s=parseInt(i[0],10)+r,a=parseInt(i[1],10)+r;if(isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let u=s;u<=a;u++)this.setPart(e,u,n[1]||o)}handleStepping(t,e,r,o){let n=this.extractNth(t,e),i=n[0].split("/");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");i[0]===""&&(i[0]="*");let s=0;i[0]!=="*"&&(s=parseInt(i[0],10)+r);let a=parseInt(i[1],10);if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(a===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(a>this[e].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[e].length+")");for(let u=s;u<this[e].length;u+=a)this.setPart(e,u,n[1]||o)}replaceAlphaDays(t){return t.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")}replaceAlphaMonths(t){return t.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")}handleNicknames(t){let e=t.trim().toLowerCase();return e==="@yearly"||e==="@annually"?"0 0 1 1 *":e==="@monthly"?"0 0 1 * *":e==="@weekly"?"0 0 * * 0":e==="@daily"?"0 0 * * *":e==="@hourly"?"0 * * * *":t}setNthWeekdayOfMonth(t,e){if(typeof e!="number"&&e==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|ka;else if(e===$o)this.dayOfWeek[t]=$o;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|dl[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},pl=[31,28,31,30,31,30,31,31,30,31,30,31],xt=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Ye=class hl{tz;ms;second;minute;hour;day;month;year;constructor(e,r){if(this.tz=r,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e===void 0)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof hl)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}isNthWeekdayOfMonth(e,r,o,n){let i=new Date(Date.UTC(e,r,o)).getUTCDay(),s=0;for(let a=1;a<=o;a++)new Date(Date.UTC(e,r,a)).getUTCDay()===i&&s++;if(n&$o&&dl[s-1]&n)return!0;if(n&ka){let a=new Date(Date.UTC(e,r+1,0)).getUTCDate();for(let u=o+1;u<=a;u++)if(new Date(Date.UTC(e,r,u)).getUTCDay()===i)return!1;return!0}return!1}fromDate(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else{let r=Ie.toTZ(e,this.tz);this.ms=e.getMilliseconds(),this.second=r.s,this.minute=r.i,this.hour=r.h,this.day=r.d,this.month=r.m-1,this.year=r.y}else this.ms=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()}fromCronDate(e){this.tz=e.tz,this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=e.second,this.ms=e.ms}apply(){if(this.month>11||this.day>pl[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1}fromString(e){if(typeof this.tz=="number"){let r=Ie.fromTZISO(e);this.ms=r.getUTCMilliseconds(),this.second=r.getUTCSeconds(),this.minute=r.getUTCMinutes(),this.hour=r.getUTCHours(),this.day=r.getUTCDate(),this.month=r.getUTCMonth(),this.year=r.getUTCFullYear(),this.apply()}else return this.fromDate(Ie.fromTZISO(e,this.tz))}findNext(e,r,o,n){let i=this[r],s;o.lastDayOfMonth&&(this.month!==1?s=pl[this.month]:s=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let a=!o.starDOW&&r=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let u=this[r]+n;u<o[r].length;u++){let c=o[r][u];if(r==="day"&&o.lastDayOfMonth&&u-n==s&&(c=1),r==="day"&&!o.starDOW){let f=o.dayOfWeek[(a+(u-n-1))%7];if(f&&f&$o)f=this.isNthWeekdayOfMonth(this.year,this.month,u-n,f)?1:0;else if(f)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${f}`);e.legacyMode&&!o.starDOM?c=c||f:c=c&&f}if(c)return this[r]=u-n,i!==this[r]?2:1}return 3}recurse(e,r,o){let n=this.findNext(r,xt[o][0],e,xt[o][2]);if(n>1){let i=o+1;for(;i<xt.length;)this[xt[i][0]]=-xt[i][2],i++;if(n===3)return this[xt[o][1]]++,this[xt[o][0]]=-xt[o][2],this.apply(),this.recurse(e,r,0);if(this.apply())return this.recurse(e,r,o-1)}return o+=1,o>=xt.length?this:this.year>=3e3?null:this.recurse(e,r,o)}increment(e,r,o){return this.second+=r.interval!==void 0&&r.interval>1&&o?r.interval:1,this.ms=0,this.apply(),this.recurse(e,r,0)}getDate(e){return e||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):Ie.fromTZ(Ie.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function px(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode=t.legacyMode===void 0?!0:t.legacyMode,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval.toString(),10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset.toString(),10),t.unref=t.unref===void 0?!1:t.unref,t.startAt&&(t.startAt=new Ye(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new Ye(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return t}function No(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function mx(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var ml=30*1e3,Fo=[],dx=class{name;options;_states;fn;constructor(t,e,r){let o,n;if(No(e))n=e;else if(typeof e=="object")o=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(No(r))n=r;else if(typeof r=="object")o=r;else if(r!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=o?.name,this.options=px(o),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:o?o.maxRuns:void 0,paused:o?o.paused:!1,pattern:new Ea("* * * * *")},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new Ye(t,this.options.timezone||this.options.utcOffset):this._states.pattern=new Ea(t,this.options.timezone),this.name){if(Fo.find(i=>i.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");Fo.push(this)}return n!==void 0&&No(n)&&(this.fn=n,this.schedule()),this}nextRun(t){let e=this._next(t);return e?e.getDate(!1):null}nextRuns(t,e){this._states.maxRuns!==void 0&&t>this._states.maxRuns&&(t=this._states.maxRuns);let r=[],o=e||this._states.currentRun||void 0;for(;t--&&(o=this.nextRun(o));)r.push(o);return r}getPattern(){return this._states.pattern?this._states.pattern.pattern:void 0}isRunning(){let t=this.nextRun(this._states.currentRun),e=!this._states.paused,r=this.fn!==void 0,o=!this._states.kill;return e&&r&&o&&t!==null}isStopped(){return this._states.kill}isBusy(){return this._states.blocking}currentRun(){return this._states.currentRun?this._states.currentRun.getDate():null}previousRun(){return this._states.previousRun?this._states.previousRun.getDate():null}msToNext(t){t=t||new Date;let e=this._next(t);return e?t instanceof Ye||t instanceof Date?e.getTime()-t.getTime():e.getTime()-new Ye(t).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=Fo.indexOf(this);t>=0&&Fo.splice(t,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(t){if(t&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");t&&(this.fn=t);let e=this.msToNext(),r=this.nextRun(this._states.currentRun);return e==null||isNaN(e)||r===null?this:(e>ml&&(e=ml),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&mx(this._states.currentTimeout),this)}async _trigger(t){if(this._states.blocking=!0,this._states.currentRun=new Ye(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(e){No(this.options.catch)&&this.options.catch(e,this)}else this.fn!==void 0&&await this.fn(this,this.options.context);this._states.previousRun=new Ye(t,this.options.timezone||this.options.utcOffset),this._states.blocking=!1}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(t){let e=new Date,r=!this._states.paused&&e.getTime()>=t.getTime(),o=this._states.blocking&&this.options.protect;r&&!o?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):r&&o&&No(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(t){let e=!!(t||this._states.currentRun),r=!1;!t&&this.options.startAt&&this.options.interval&&([t,e]=this._calculatePreviousRun(t,e),r=!t),t=new Ye(t,this.options.timezone||this.options.utcOffset),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let o=this._states.once||new Ye(t,this.options.timezone||this.options.utcOffset);return!r&&o!==this._states.once&&(o=o.increment(this._states.pattern,this.options,e)),this._states.once&&this._states.once.getTime()<=t.getTime()||o===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&o.getTime()>=this.options.stopAt.getTime()?null:o}_calculatePreviousRun(t,e){let r=new Ye(void 0,this.options.timezone||this.options.utcOffset),o=t;if(this.options.startAt.getTime()<=r.getTime()){o=this.options.startAt;let n=o.getTime()+this.options.interval*1e3;for(;n<=r.getTime();)o=new Ye(o,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,!0),n=o.getTime()+this.options.interval*1e3;e=!0}return o===null&&(o=void 0),[o,e]}};var cs={};re(cs,{add:()=>or,addBusinessDays:()=>Wa,addDays:()=>be,addHours:()=>Ua,addISOWeekYears:()=>Ba,addMilliseconds:()=>nr,addMinutes:()=>Ro,addMonths:()=>gt,addQuarters:()=>Wo,addSeconds:()=>Ya,addWeeks:()=>ir,addYears:()=>qa,areIntervalsOverlapping:()=>yx,clamp:()=>xx,closestIndexTo:()=>za,closestTo:()=>gx,compareAsc:()=>Ne,compareDesc:()=>bx,constructFrom:()=>h,constructNow:()=>B,daysToWeeks:()=>wx,differenceInBusinessDays:()=>Sx,differenceInCalendarDays:()=>De,differenceInCalendarISOWeekYears:()=>Ga,differenceInCalendarISOWeeks:()=>Dx,differenceInCalendarMonths:()=>Rr,differenceInCalendarQuarters:()=>Uo,differenceInCalendarWeeks:()=>Wr,differenceInCalendarYears:()=>sr,differenceInDays:()=>Lo,differenceInHours:()=>Ur,differenceInISOWeekYears:()=>Tx,differenceInMilliseconds:()=>Bo,differenceInMinutes:()=>Lr,differenceInMonths:()=>ar,differenceInQuarters:()=>Ox,differenceInSeconds:()=>St,differenceInWeeks:()=>Mx,differenceInYears:()=>Ja,eachDayOfInterval:()=>Xa,eachHourOfInterval:()=>_x,eachMinuteOfInterval:()=>Ix,eachMonthOfInterval:()=>Ax,eachQuarterOfInterval:()=>Ex,eachWeekOfInterval:()=>kx,eachWeekendOfInterval:()=>Ho,eachWeekendOfMonth:()=>Px,eachWeekendOfYear:()=>Cx,eachYearOfInterval:()=>Nx,endOfDay:()=>Yo,endOfDecade:()=>Fx,endOfHour:()=>$x,endOfISOWeek:()=>Rx,endOfISOWeekYear:()=>Wx,endOfMinute:()=>Ux,endOfMonth:()=>qo,endOfQuarter:()=>Lx,endOfSecond:()=>Bx,endOfToday:()=>Yx,endOfTomorrow:()=>qx,endOfWeek:()=>eu,endOfYear:()=>Za,endOfYesterday:()=>Hx,format:()=>ru,formatDate:()=>ru,formatDistance:()=>ou,formatDistanceStrict:()=>nu,formatDistanceToNow:()=>Ig,formatDistanceToNowStrict:()=>Ag,formatDuration:()=>kg,formatISO:()=>Pg,formatISO9075:()=>Cg,formatISODuration:()=>Ng,formatRFC3339:()=>Fg,formatRFC7231:()=>Wg,formatRelative:()=>Ug,formatters:()=>bi,fromUnixTime:()=>Lg,getDate:()=>iu,getDay:()=>lr,getDayOfYear:()=>tu,getDaysInMonth:()=>su,getDaysInYear:()=>Bg,getDecade:()=>Yg,getDefaultOptions:()=>uu,getHours:()=>qg,getISODay:()=>cu,getISOWeek:()=>zo,getISOWeekYear:()=>We,getISOWeeksInYear:()=>Hg,getMilliseconds:()=>jg,getMinutes:()=>zg,getMonth:()=>Vg,getOverlappingDaysInIntervals:()=>Gg,getQuarter:()=>xi,getSeconds:()=>Kg,getTime:()=>Qg,getUnixTime:()=>Jg,getWeek:()=>Vo,getWeekOfMonth:()=>Xg,getWeekYear:()=>cr,getWeeksInMonth:()=>Zg,getYear:()=>e0,hoursToMilliseconds:()=>t0,hoursToMinutes:()=>r0,hoursToSeconds:()=>o0,interval:()=>n0,intervalToDuration:()=>i0,intlFormat:()=>s0,intlFormatDistance:()=>u0,isAfter:()=>c0,isBefore:()=>f0,isDate:()=>Va,isEqual:()=>l0,isExists:()=>p0,isFirstDayOfMonth:()=>m0,isFriday:()=>d0,isFuture:()=>h0,isLastDayOfMonth:()=>Qa,isLeapYear:()=>au,isMatch:()=>_0,isMonday:()=>I0,isPast:()=>A0,isSameDay:()=>wt,isSameHour:()=>xu,isSameISOWeek:()=>gu,isSameISOWeekYear:()=>E0,isSameMinute:()=>bu,isSameMonth:()=>vu,isSameQuarter:()=>wu,isSameSecond:()=>Su,isSameWeek:()=>Ko,isSameYear:()=>Du,isSaturday:()=>$a,isSunday:()=>Ra,isThisHour:()=>k0,isThisISOWeek:()=>P0,isThisMinute:()=>C0,isThisMonth:()=>N0,isThisQuarter:()=>F0,isThisSecond:()=>$0,isThisWeek:()=>R0,isThisYear:()=>W0,isThursday:()=>U0,isToday:()=>L0,isTomorrow:()=>B0,isTuesday:()=>Y0,isValid:()=>Ee,isWednesday:()=>q0,isWeekend:()=>bt,isWithinInterval:()=>H0,isYesterday:()=>j0,lastDayOfDecade:()=>z0,lastDayOfISOWeek:()=>V0,lastDayOfISOWeekYear:()=>G0,lastDayOfMonth:()=>fu,lastDayOfQuarter:()=>K0,lastDayOfWeek:()=>Tu,lastDayOfYear:()=>Q0,lightFormat:()=>tb,lightFormatters:()=>Ve,longFormatters:()=>jr,max:()=>Ha,milliseconds:()=>ob,millisecondsToHours:()=>nb,millisecondsToMinutes:()=>ib,millisecondsToSeconds:()=>sb,min:()=>ja,minutesToHours:()=>ab,minutesToMilliseconds:()=>ub,minutesToSeconds:()=>cb,monthsToQuarters:()=>fb,monthsToYears:()=>lb,nextDay:()=>Fe,nextFriday:()=>pb,nextMonday:()=>mb,nextSaturday:()=>db,nextSunday:()=>hb,nextThursday:()=>yb,nextTuesday:()=>xb,nextWednesday:()=>gb,parse:()=>yu,parseISO:()=>bb,parseJSON:()=>Fb,parsers:()=>hu,previousDay:()=>$e,previousFriday:()=>$b,previousMonday:()=>Rb,previousSaturday:()=>Wb,previousSunday:()=>Ub,previousThursday:()=>Lb,previousTuesday:()=>Bb,previousWednesday:()=>Yb,quartersToMonths:()=>qb,quartersToYears:()=>Hb,roundToNearestHours:()=>jb,roundToNearestMinutes:()=>zb,secondsToHours:()=>Vb,secondsToMilliseconds:()=>Gb,secondsToMinutes:()=>Kb,set:()=>Qb,setDate:()=>Jb,setDay:()=>pr,setDayOfYear:()=>Xb,setDefaultOptions:()=>Zb,setHours:()=>ev,setISODay:()=>du,setISOWeek:()=>mu,setISOWeekYear:()=>La,setMilliseconds:()=>tv,setMinutes:()=>rv,setMonth:()=>Jo,setQuarter:()=>ov,setSeconds:()=>nv,setWeek:()=>pu,setWeekYear:()=>iv,setYear:()=>sv,startOfDay:()=>vt,startOfDecade:()=>av,startOfHour:()=>is,startOfISOWeek:()=>pe,startOfISOWeekYear:()=>ze,startOfMinute:()=>ss,startOfMonth:()=>ur,startOfQuarter:()=>Dt,startOfSecond:()=>as,startOfToday:()=>uv,startOfTomorrow:()=>cv,startOfWeek:()=>Z,startOfWeekYear:()=>qr,startOfYear:()=>jo,startOfYesterday:()=>fv,sub:()=>lv,subBusinessDays:()=>pv,subDays:()=>mr,subHours:()=>mv,subISOWeekYears:()=>Ka,subMilliseconds:()=>dv,subMinutes:()=>hv,subMonths:()=>Mu,subQuarters:()=>yv,subSeconds:()=>xv,subWeeks:()=>gv,subYears:()=>bv,toDate:()=>l,transpose:()=>lu,weeksToDays:()=>vv,yearsToDays:()=>wv,yearsToMonths:()=>Sv,yearsToQuarters:()=>Dv});var hx=Math.pow(10,8)*24*60*60*1e3,Mk=-hx,at=6048e5,li=864e5,Ae=6e4,qe=36e5,Nr=1e3,Pa=525600,Pt=43200,Fr=1440,pi=60,mi=3,di=12,hi=4,rr=3600,$r=60,yi=rr*24,yl=yi*7,Ca=yi*365.2425,Na=Ca/12,xl=Na*3,Fa=Symbol.for("constructDateFrom");function h(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Fa in t?t[Fa](e):t instanceof Date?new t.constructor(e):new Date(e)}function l(t,e){return h(e||t,t)}function be(t,e,r){let o=l(t,r?.in);return isNaN(e)?h(r?.in||t,NaN):(e&&o.setDate(o.getDate()+e),o)}function gt(t,e,r){let o=l(t,r?.in);if(isNaN(e))return h(r?.in||t,NaN);if(!e)return o;let n=o.getDate(),i=h(r?.in||t,o.getTime());i.setMonth(o.getMonth()+e+1,0);let s=i.getDate();return n>=s?i:(o.setFullYear(i.getFullYear(),i.getMonth(),n),o)}function or(t,e,r){let{years:o=0,months:n=0,weeks:i=0,days:s=0,hours:a=0,minutes:u=0,seconds:c=0}=e,f=l(t,r?.in),m=n||o?gt(f,n+o*12):f,p=s||i?be(m,s+i*7):m,d=u+a*60,w=(c+d*60)*1e3;return h(r?.in||t,+p+w)}function $a(t,e){return l(t,e?.in).getDay()===6}function Ra(t,e){return l(t,e?.in).getDay()===0}function bt(t,e){let r=l(t,e?.in).getDay();return r===0||r===6}function Wa(t,e,r){let o=l(t,r?.in),n=bt(o,r);if(isNaN(e))return h(r?.in,NaN);let i=o.getHours(),s=e<0?-1:1,a=Math.trunc(e/5);o.setDate(o.getDate()+a*7);let u=Math.abs(e%5);for(;u>0;)o.setDate(o.getDate()+s),bt(o,r)||(u-=1);return n&&bt(o,r)&&e!==0&&($a(o,r)&&o.setDate(o.getDate()+(s<0?2:-1)),Ra(o,r)&&o.setDate(o.getDate()+(s<0?1:-2))),o.setHours(i),o}function nr(t,e,r){return h(r?.in||t,+l(t)+e)}function Ua(t,e,r){return nr(t,e*qe,r)}var gl={};function G(){return gl}function bl(t){gl=t}function Z(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=l(t,e?.in),i=n.getDay(),s=(i<o?7:0)+i-o;return n.setDate(n.getDate()-s),n.setHours(0,0,0,0),n}function pe(t,e){return Z(t,{...e,weekStartsOn:1})}function We(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=h(r,0);n.setFullYear(o+1,0,4),n.setHours(0,0,0,0);let i=pe(n),s=h(r,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);let a=pe(s);return r.getTime()>=i.getTime()?o+1:r.getTime()>=a.getTime()?o:o-1}function ae(t){let e=l(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function C(t,...e){let r=h.bind(null,t||e.find(o=>typeof o=="object"));return e.map(r)}function vt(t,e){let r=l(t,e?.in);return r.setHours(0,0,0,0),r}function De(t,e,r){let[o,n]=C(r?.in,t,e),i=vt(o),s=vt(n),a=+i-ae(i),u=+s-ae(s);return Math.round((a-u)/li)}function ze(t,e){let r=We(t,e),o=h(e?.in||t,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),pe(o)}function La(t,e,r){let o=l(t,r?.in),n=De(o,ze(o,r)),i=h(r?.in||t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),o=ze(i),o.setDate(o.getDate()+n),o}function Ba(t,e,r){return La(t,We(t,r)+e,r)}function Ro(t,e,r){let o=l(t,r?.in);return o.setTime(o.getTime()+e*Ae),o}function Wo(t,e,r){return gt(t,e*3,r)}function Ya(t,e,r){return nr(t,e*1e3,r)}function ir(t,e,r){return be(t,e*7,r)}function qa(t,e,r){return gt(t,e*12,r)}function yx(t,e,r){let[o,n]=[+l(t.start,r?.in),+l(t.end,r?.in)].sort((a,u)=>a-u),[i,s]=[+l(e.start,r?.in),+l(e.end,r?.in)].sort((a,u)=>a-u);return r?.inclusive?o<=s&&i<=n:o<s&&i<n}function Ha(t,e){let r,o=e?.in;return t.forEach(n=>{!o&&typeof n=="object"&&(o=h.bind(null,n));let i=l(n,o);(!r||r<i||isNaN(+i))&&(r=i)}),h(o,r||NaN)}function ja(t,e){let r,o=e?.in;return t.forEach(n=>{!o&&typeof n=="object"&&(o=h.bind(null,n));let i=l(n,o);(!r||r>i||isNaN(+i))&&(r=i)}),h(o,r||NaN)}function xx(t,e,r){let[o,n,i]=C(r?.in,t,e.start,e.end);return ja([Ha([o,n],r),i],r)}function za(t,e){let r=+l(t);if(isNaN(r))return NaN;let o,n;return e.forEach((i,s)=>{let a=l(i);if(isNaN(+a)){o=NaN,n=NaN;return}let u=Math.abs(r-+a);(o==null||u<n)&&(o=s,n=u)}),o}function gx(t,e,r){let[o,...n]=C(r?.in,t,...e),i=za(o,n);if(typeof i=="number"&&isNaN(i))return h(o,NaN);if(i!==void 0)return n[i]}function Ne(t,e){let r=+l(t)-+l(e);return r<0?-1:r>0?1:r}function bx(t,e){let r=+l(t)-+l(e);return r>0?-1:r<0?1:r}function B(t){return h(t,Date.now())}function wx(t){let e=Math.trunc(t/7);return e===0?0:e}function wt(t,e,r){let[o,n]=C(r?.in,t,e);return+vt(o)==+vt(n)}function Va(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Ee(t){return!(!Va(t)&&typeof t!="number"||isNaN(+l(t)))}function Sx(t,e,r){let[o,n]=C(r?.in,t,e);if(!Ee(o)||!Ee(n))return NaN;let i=De(o,n),s=i<0?-1:1,a=Math.trunc(i/7),u=a*5,c=be(n,a*7);for(;!wt(o,c);)u+=bt(c,r)?0:s,c=be(c,s);return u===0?0:u}function Ga(t,e,r){let[o,n]=C(r?.in,t,e);return We(o,r)-We(n,r)}function Dx(t,e,r){let[o,n]=C(r?.in,t,e),i=pe(o),s=pe(n),a=+i-ae(i),u=+s-ae(s);return Math.round((a-u)/at)}function Rr(t,e,r){let[o,n]=C(r?.in,t,e),i=o.getFullYear()-n.getFullYear(),s=o.getMonth()-n.getMonth();return i*12+s}function xi(t,e){let r=l(t,e?.in);return Math.trunc(r.getMonth()/3)+1}function Uo(t,e,r){let[o,n]=C(r?.in,t,e),i=o.getFullYear()-n.getFullYear(),s=xi(o)-xi(n);return i*4+s}function Wr(t,e,r){let[o,n]=C(r?.in,t,e),i=Z(o,r),s=Z(n,r),a=+i-ae(i),u=+s-ae(s);return Math.round((a-u)/at)}function sr(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()-n.getFullYear()}function Lo(t,e,r){let[o,n]=C(r?.in,t,e),i=vl(o,n),s=Math.abs(De(o,n));o.setDate(o.getDate()-i*s);let a=+(vl(o,n)===-i),u=i*(s-a);return u===0?0:u}function vl(t,e){let r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function ke(t){return e=>{let o=(t?Math[t]:Math.trunc)(e);return o===0?0:o}}function Ur(t,e,r){let[o,n]=C(r?.in,t,e),i=(+o-+n)/qe;return ke(r?.roundingMethod)(i)}function Ka(t,e,r){return Ba(t,-e,r)}function Tx(t,e,r){let[o,n]=C(r?.in,t,e),i=Ne(o,n),s=Math.abs(Ga(o,n,r)),a=Ka(o,i*s,r),u=+(Ne(a,n)===-i),c=i*(s-u);return c===0?0:c}function Bo(t,e){return+l(t)-+l(e)}function Lr(t,e,r){let o=Bo(t,e)/Ae;return ke(r?.roundingMethod)(o)}function Yo(t,e){let r=l(t,e?.in);return r.setHours(23,59,59,999),r}function qo(t,e){let r=l(t,e?.in),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(23,59,59,999),r}function Qa(t,e){let r=l(t,e?.in);return+Yo(r,e)==+qo(r,e)}function ar(t,e,r){let[o,n,i]=C(r?.in,t,t,e),s=Ne(n,i),a=Math.abs(Rr(n,i));if(a<1)return 0;n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-s*a);let u=Ne(n,i)===-s;Qa(o)&&a===1&&Ne(o,i)===1&&(u=!1);let c=s*(a-+u);return c===0?0:c}function Ox(t,e,r){let o=ar(t,e,r)/3;return ke(r?.roundingMethod)(o)}function St(t,e,r){let o=Bo(t,e)/1e3;return ke(r?.roundingMethod)(o)}function Mx(t,e,r){let o=Lo(t,e,r)/7;return ke(r?.roundingMethod)(o)}function Ja(t,e,r){let[o,n]=C(r?.in,t,e),i=Ne(o,n),s=Math.abs(sr(o,n));o.setFullYear(1584),n.setFullYear(1584);let a=Ne(o,n)===-i,u=i*(s-+a);return u===0?0:u}function ve(t,e){let[r,o]=C(t,e.start,e.end);return{start:r,end:o}}function Xa(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+r:+o,s=n?o:r;s.setHours(0,0,0,0);let a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s.setDate(s.getDate()+a),s.setHours(0,0,0,0);return n?u.reverse():u}function _x(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+r:+o,s=n?o:r;s.setMinutes(0,0,0);let a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s.setHours(s.getHours()+a);return n?u.reverse():u}function Ix(t,e){let{start:r,end:o}=ve(e?.in,t);r.setSeconds(0,0);let n=+r>+o,i=n?+r:+o,s=n?o:r,a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s=Ro(s,a);return n?u.reverse():u}function Ax(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+r:+o,s=n?o:r;s.setHours(0,0,0,0),s.setDate(1);let a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s.setMonth(s.getMonth()+a);return n?u.reverse():u}function Dt(t,e){let r=l(t,e?.in),o=r.getMonth(),n=o-o%3;return r.setMonth(n,1),r.setHours(0,0,0,0),r}function Ex(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+Dt(r):+Dt(o),s=n?Dt(o):Dt(r),a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s=Wo(s,a);return n?u.reverse():u}function kx(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?Z(o,e):Z(r,e),s=n?Z(r,e):Z(o,e);i.setHours(15),s.setHours(15);let a=+s.getTime(),u=i,c=e?.step??1;if(!c)return[];c<0&&(c=-c,n=!n);let f=[];for(;+u<=a;)u.setHours(0),f.push(h(r,u)),u=ir(u,c),u.setHours(15);return n?f.reverse():f}function Ho(t,e){let{start:r,end:o}=ve(e?.in,t),n=Xa({start:r,end:o},e),i=[],s=0;for(;s<n.length;){let a=n[s++];bt(a)&&i.push(h(r,a))}return i}function ur(t,e){let r=l(t,e?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Px(t,e){let r=ur(t,e),o=qo(t,e);return Ho({start:r,end:o},e)}function Za(t,e){let r=l(t,e?.in),o=r.getFullYear();return r.setFullYear(o+1,0,0),r.setHours(23,59,59,999),r}function jo(t,e){let r=l(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Cx(t,e){let r=jo(t,e),o=Za(t,e);return Ho({start:r,end:o},e)}function Nx(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+r:+o,s=n?o:r;s.setHours(0,0,0,0),s.setMonth(0,1);let a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s.setFullYear(s.getFullYear()+a);return n?u.reverse():u}function Fx(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=9+Math.floor(o/10)*10;return r.setFullYear(n,11,31),r.setHours(23,59,59,999),r}function $x(t,e){let r=l(t,e?.in);return r.setMinutes(59,59,999),r}function eu(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=l(t,e?.in),i=n.getDay(),s=(i<o?-7:0)+6-(i-o);return n.setDate(n.getDate()+s),n.setHours(23,59,59,999),n}function Rx(t,e){return eu(t,{...e,weekStartsOn:1})}function Wx(t,e){let r=We(t,e),o=h(e?.in||t,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);let n=pe(o,e);return n.setMilliseconds(n.getMilliseconds()-1),n}function Ux(t,e){let r=l(t,e?.in);return r.setSeconds(59,999),r}function Lx(t,e){let r=l(t,e?.in),o=r.getMonth(),n=o-o%3+3;return r.setMonth(n,0),r.setHours(23,59,59,999),r}function Bx(t,e){let r=l(t,e?.in);return r.setMilliseconds(999),r}function Yx(t){return Yo(Date.now(),t)}function qx(t){let e=B(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=B(t?.in);return i.setFullYear(r,o,n+1),i.setHours(23,59,59,999),t?.in?t.in(i):i}function Hx(t){let e=B(t?.in),r=h(t?.in,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),r.setHours(23,59,59,999),r}var jx={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},wl=(t,e,r)=>{let o,n=jx[t];return typeof n=="string"?o=n:e===1?o=n.one:o=n.other.replace("{{count}}",e.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function gi(t){return(e={})=>{let r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}var zx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Vx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Sl={date:gi({formats:zx,defaultWidth:"full"}),time:gi({formats:Vx,defaultWidth:"full"}),dateTime:gi({formats:Gx,defaultWidth:"full"})};var Kx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Dl=(t,e,r,o)=>Kx[t];function Br(t){return(e,r)=>{let o=r?.context?String(r.context):"standalone",n;if(o==="formatting"&&t.formattingValues){let s=t.defaultFormattingWidth||t.defaultWidth,a=r?.width?String(r.width):s;n=t.formattingValues[a]||t.formattingValues[s]}else{let s=t.defaultWidth,a=r?.width?String(r.width):t.defaultWidth;n=t.values[a]||t.values[s]}let i=t.argumentCallback?t.argumentCallback(e):e;return n[i]}}var Qx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Jx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Xx={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Zx={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},rg=(t,e)=>{let r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Tl={ordinalNumber:rg,era:Br({values:Qx,defaultWidth:"wide"}),quarter:Br({values:Jx,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Br({values:Xx,defaultWidth:"wide"}),day:Br({values:Zx,defaultWidth:"wide"}),dayPeriod:Br({values:eg,defaultWidth:"wide",formattingValues:tg,defaultFormattingWidth:"wide"})};function Yr(t){return(e,r={})=>{let o=r.width,n=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],i=e.match(n);if(!i)return null;let s=i[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(a)?ng(a,m=>m.test(s)):og(a,m=>m.test(s)),c;c=t.valueCallback?t.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;let f=e.slice(s.length);return{value:c,rest:f}}}function og(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function ng(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function Ol(t){return(e,r={})=>{let o=e.match(t.matchPattern);if(!o)return null;let n=o[0],i=e.match(t.parsePattern);if(!i)return null;let s=t.valueCallback?t.valueCallback(i[0]):i[0];s=r.valueCallback?r.valueCallback(s):s;let a=e.slice(n.length);return{value:s,rest:a}}}var ig=/^(\d+)(th|st|nd|rd)?/i,sg=/\d+/i,ag={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ug={any:[/^b/i,/^(a|c)/i]},cg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fg={any:[/1/i,/2/i,/3/i,/4/i]},lg={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pg={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mg={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},dg={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},hg={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},yg={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ml={ordinalNumber:Ol({matchPattern:ig,parsePattern:sg,valueCallback:t=>parseInt(t,10)}),era:Yr({matchPatterns:ag,defaultMatchWidth:"wide",parsePatterns:ug,defaultParseWidth:"any"}),quarter:Yr({matchPatterns:cg,defaultMatchWidth:"wide",parsePatterns:fg,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Yr({matchPatterns:lg,defaultMatchWidth:"wide",parsePatterns:pg,defaultParseWidth:"any"}),day:Yr({matchPatterns:mg,defaultMatchWidth:"wide",parsePatterns:dg,defaultParseWidth:"any"}),dayPeriod:Yr({matchPatterns:hg,defaultMatchWidth:"any",parsePatterns:yg,defaultParseWidth:"any"})};var He={code:"en-US",formatDistance:wl,formatLong:Sl,formatRelative:Dl,localize:Tl,match:Ml,options:{weekStartsOn:0,firstWeekContainsDate:1}};function tu(t,e){let r=l(t,e?.in);return De(r,jo(r))+1}function zo(t,e){let r=l(t,e?.in),o=+pe(r)-+ze(r);return Math.round(o/at)+1}function cr(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=G(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=h(e?.in||t,0);s.setFullYear(o+1,0,i),s.setHours(0,0,0,0);let a=Z(s,e),u=h(e?.in||t,0);u.setFullYear(o,0,i),u.setHours(0,0,0,0);let c=Z(u,e);return+r>=+a?o+1:+r>=+c?o:o-1}function qr(t,e){let r=G(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=cr(t,e),i=h(e?.in||t,0);return i.setFullYear(n,0,o),i.setHours(0,0,0,0),Z(i,e)}function Vo(t,e){let r=l(t,e?.in),o=+Z(r,e)-+qr(r,e);return Math.round(o/at)+1}function E(t,e){let r=t<0?"-":"",o=Math.abs(t).toString().padStart(e,"0");return r+o}var Ve={y(t,e){let r=t.getFullYear(),o=r>0?r:1-r;return E(e==="yy"?o%100:o,e.length)},M(t,e){let r=t.getMonth();return e==="M"?String(r+1):E(r+1,2)},d(t,e){return E(t.getDate(),e.length)},a(t,e){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(t,e){return E(t.getHours()%12||12,e.length)},H(t,e){return E(t.getHours(),e.length)},m(t,e){return E(t.getMinutes(),e.length)},s(t,e){return E(t.getSeconds(),e.length)},S(t,e){let r=e.length,o=t.getMilliseconds(),n=Math.trunc(o*Math.pow(10,r-3));return E(n,e.length)}};var Hr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},bi={G:function(t,e,r){let o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){let o=t.getFullYear(),n=o>0?o:1-o;return r.ordinalNumber(n,{unit:"year"})}return Ve.y(t,e)},Y:function(t,e,r,o){let n=cr(t,o),i=n>0?n:1-n;if(e==="YY"){let s=i%100;return E(s,2)}return e==="Yo"?r.ordinalNumber(i,{unit:"year"}):E(i,e.length)},R:function(t,e){let r=We(t);return E(r,e.length)},u:function(t,e){let r=t.getFullYear();return E(r,e.length)},Q:function(t,e,r){let o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return E(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,r){let o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return E(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,r){let o=t.getMonth();switch(e){case"M":case"MM":return Ve.M(t,e);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,r){let o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return E(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,r,o){let n=Vo(t,o);return e==="wo"?r.ordinalNumber(n,{unit:"week"}):E(n,e.length)},I:function(t,e,r){let o=zo(t);return e==="Io"?r.ordinalNumber(o,{unit:"week"}):E(o,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):Ve.d(t,e)},D:function(t,e,r){let o=tu(t);return e==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):E(o,e.length)},E:function(t,e,r){let o=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,r,o){let n=t.getDay(),i=(n-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return E(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,r,o){let n=t.getDay(),i=(n-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return E(i,e.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,r){let o=t.getDay(),n=o===0?7:o;switch(e){case"i":return String(n);case"ii":return E(n,e.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,r){let n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){let o=t.getHours(),n;switch(o===12?n=Hr.noon:o===0?n=Hr.midnight:n=o/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){let o=t.getHours(),n;switch(o>=17?n=Hr.evening:o>=12?n=Hr.afternoon:o>=4?n=Hr.morning:n=Hr.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){let o=t.getHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Ve.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):Ve.H(t,e)},K:function(t,e,r){let o=t.getHours()%12;return e==="Ko"?r.ordinalNumber(o,{unit:"hour"}):E(o,e.length)},k:function(t,e,r){let o=t.getHours();return o===0&&(o=24),e==="ko"?r.ordinalNumber(o,{unit:"hour"}):E(o,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):Ve.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):Ve.s(t,e)},S:function(t,e){return Ve.S(t,e)},X:function(t,e,r){let o=t.getTimezoneOffset();if(o===0)return"Z";switch(e){case"X":return Il(o);case"XXXX":case"XX":return fr(o);case"XXXXX":case"XXX":default:return fr(o,":")}},x:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"x":return Il(o);case"xxxx":case"xx":return fr(o);case"xxxxx":case"xxx":default:return fr(o,":")}},O:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+_l(o,":");case"OOOO":default:return"GMT"+fr(o,":")}},z:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+_l(o,":");case"zzzz":default:return"GMT"+fr(o,":")}},t:function(t,e,r){let o=Math.trunc(+t/1e3);return E(o,e.length)},T:function(t,e,r){return E(+t,e.length)}};function _l(t,e=""){let r=t>0?"-":"+",o=Math.abs(t),n=Math.trunc(o/60),i=o%60;return i===0?r+String(n):r+String(n)+e+E(i,2)}function Il(t,e){return t%60===0?(t>0?"-":"+")+E(Math.abs(t)/60,2):fr(t,e)}function fr(t,e=""){let r=t>0?"-":"+",o=Math.abs(t),n=E(Math.trunc(o/60),2),i=E(o%60,2);return r+n+e+i}var Al=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},El=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},xg=(t,e)=>{let r=t.match(/(P+)(p+)?/)||[],o=r[1],n=r[2];if(!n)return Al(t,e);let i;switch(o){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",Al(o,e)).replace("{{time}}",El(n,e))},jr={p:El,P:xg};var gg=/^D+$/,bg=/^Y+$/,vg=["D","DD","YY","YYYY"];function vi(t){return gg.test(t)}function wi(t){return bg.test(t)}function Go(t,e,r){let o=wg(t,e,r);if(console.warn(o),vg.includes(t))throw new RangeError(o)}function wg(t,e,r){let o=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Sg=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tg=/^'([^]*?)'?$/,Og=/''/g,Mg=/[a-zA-Z]/;function ru(t,e,r){let o=G(),n=r?.locale??o.locale??He,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=l(t,r?.in);if(!Ee(a))throw new RangeError("Invalid time value");let u=e.match(Dg).map(f=>{let m=f[0];if(m==="p"||m==="P"){let p=jr[m];return p(f,n.formatLong)}return f}).join("").match(Sg).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let m=f[0];if(m==="'")return{isToken:!1,value:_g(f)};if(bi[m])return{isToken:!0,value:f};if(m.match(Mg))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:f}});n.localize.preprocessor&&(u=n.localize.preprocessor(a,u));let c={firstWeekContainsDate:i,weekStartsOn:s,locale:n};return u.map(f=>{if(!f.isToken)return f.value;let m=f.value;(!r?.useAdditionalWeekYearTokens&&wi(m)||!r?.useAdditionalDayOfYearTokens&&vi(m))&&Go(m,e,String(t));let p=bi[m[0]];return p(a,m,n.localize,c)}).join("")}function _g(t){let e=t.match(Tg);return e?e[1].replace(Og,"'"):t}function ou(t,e,r){let o=G(),n=r?.locale??o.locale??He,i=2520,s=Ne(t,e);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[u,c]=C(r?.in,...s>0?[e,t]:[t,e]),f=St(c,u),m=(ae(c)-ae(u))/1e3,p=Math.round((f-m)/60),d;if(p<2)return r?.includeSeconds?f<5?n.formatDistance("lessThanXSeconds",5,a):f<10?n.formatDistance("lessThanXSeconds",10,a):f<20?n.formatDistance("lessThanXSeconds",20,a):f<40?n.formatDistance("halfAMinute",0,a):f<60?n.formatDistance("lessThanXMinutes",1,a):n.formatDistance("xMinutes",1,a):p===0?n.formatDistance("lessThanXMinutes",1,a):n.formatDistance("xMinutes",p,a);if(p<45)return n.formatDistance("xMinutes",p,a);if(p<90)return n.formatDistance("aboutXHours",1,a);if(p<Fr){let y=Math.round(p/60);return n.formatDistance("aboutXHours",y,a)}else{if(p<i)return n.formatDistance("xDays",1,a);if(p<Pt){let y=Math.round(p/Fr);return n.formatDistance("xDays",y,a)}else if(p<Pt*2)return d=Math.round(p/Pt),n.formatDistance("aboutXMonths",d,a)}if(d=ar(c,u),d<12){let y=Math.round(p/Pt);return n.formatDistance("xMonths",y,a)}else{let y=d%12,w=Math.trunc(d/12);return y<3?n.formatDistance("aboutXYears",w,a):y<9?n.formatDistance("overXYears",w,a):n.formatDistance("almostXYears",w+1,a)}}function nu(t,e,r){let o=G(),n=r?.locale??o.locale??He,i=Ne(t,e);if(isNaN(i))throw new RangeError("Invalid time value");let s=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:i}),[a,u]=C(r?.in,...i>0?[e,t]:[t,e]),c=ke(r?.roundingMethod??"round"),f=u.getTime()-a.getTime(),m=f/Ae,p=ae(u)-ae(a),d=(f-p)/Ae,y=r?.unit,w;if(y?w=y:m<1?w="second":m<60?w="minute":m<Fr?w="hour":d<Pt?w="day":d<Pa?w="month":w="year",w==="second"){let g=c(f/1e3);return n.formatDistance("xSeconds",g,s)}else if(w==="minute"){let g=c(m);return n.formatDistance("xMinutes",g,s)}else if(w==="hour"){let g=c(m/60);return n.formatDistance("xHours",g,s)}else if(w==="day"){let g=c(d/Fr);return n.formatDistance("xDays",g,s)}else if(w==="month"){let g=c(d/Pt);return g===12&&y!=="month"?n.formatDistance("xYears",1,s):n.formatDistance("xMonths",g,s)}else{let g=c(d/Pa);return n.formatDistance("xYears",g,s)}}function Ig(t,e){return ou(t,B(t),e)}function Ag(t,e){return nu(t,B(t),e)}var Eg=["years","months","weeks","days","hours","minutes","seconds"];function kg(t,e){let r=G(),o=e?.locale??r.locale??He,n=e?.format??Eg,i=e?.zero??!1,s=e?.delimiter??" ";return o.formatDistance?n.reduce((u,c)=>{let f=`x${c.replace(/(^.)/,p=>p.toUpperCase())}`,m=t[c];return m!==void 0&&(i||t[c])?u.concat(o.formatDistance(f,m)):u},[]).join(s):""}function Pg(t,e){let r=l(t,e?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let o=e?.format??"extended",n=e?.representation??"complete",i="",s="",a=o==="extended"?"-":"",u=o==="extended"?":":"";if(n!=="time"){let c=E(r.getDate(),2),f=E(r.getMonth()+1,2);i=`${E(r.getFullYear(),4)}${a}${f}${a}${c}`}if(n!=="date"){let c=r.getTimezoneOffset();if(c!==0){let w=Math.abs(c),g=E(Math.trunc(w/60),2),I=E(w%60,2);s=`${c<0?"+":"-"}${g}:${I}`}else s="Z";let f=E(r.getHours(),2),m=E(r.getMinutes(),2),p=E(r.getSeconds(),2),d=i===""?"":"T",y=[f,m,p].join(u);i=`${i}${d}${y}${s}`}return i}function Cg(t,e){let r=l(t,e?.in);if(!Ee(r))throw new RangeError("Invalid time value");let o=e?.format??"extended",n=e?.representation??"complete",i="",s=o==="extended"?"-":"",a=o==="extended"?":":"";if(n!=="time"){let u=E(r.getDate(),2),c=E(r.getMonth()+1,2);i=`${E(r.getFullYear(),4)}${s}${c}${s}${u}`}if(n!=="date"){let u=E(r.getHours(),2),c=E(r.getMinutes(),2),f=E(r.getSeconds(),2);i=`${i}${i===""?"":" "}${u}${a}${c}${a}${f}`}return i}function Ng(t){let{years:e=0,months:r=0,days:o=0,hours:n=0,minutes:i=0,seconds:s=0}=t;return`P${e}Y${r}M${o}DT${n}H${i}M${s}S`}function Fg(t,e){let r=l(t,e?.in);if(!Ee(r))throw new RangeError("Invalid time value");let o=e?.fractionDigits??0,n=E(r.getDate(),2),i=E(r.getMonth()+1,2),s=r.getFullYear(),a=E(r.getHours(),2),u=E(r.getMinutes(),2),c=E(r.getSeconds(),2),f="";if(o>0){let d=r.getMilliseconds(),y=Math.trunc(d*Math.pow(10,o-3));f="."+E(y,o)}let m="",p=r.getTimezoneOffset();if(p!==0){let d=Math.abs(p),y=E(Math.trunc(d/60),2),w=E(d%60,2);m=`${p<0?"+":"-"}${y}:${w}`}else m="Z";return`${s}-${i}-${n}T${a}:${u}:${c}${f}${m}`}var $g=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Rg=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Wg(t){let e=l(t);if(!Ee(e))throw new RangeError("Invalid time value");let r=$g[e.getUTCDay()],o=E(e.getUTCDate(),2),n=Rg[e.getUTCMonth()],i=e.getUTCFullYear(),s=E(e.getUTCHours(),2),a=E(e.getUTCMinutes(),2),u=E(e.getUTCSeconds(),2);return`${r}, ${o} ${n} ${i} ${s}:${a}:${u} GMT`}function Ug(t,e,r){let[o,n]=C(r?.in,t,e),i=G(),s=r?.locale??i.locale??He,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,u=De(o,n);if(isNaN(u))throw new RangeError("Invalid time value");let c;u<-6?c="other":u<-1?c="lastWeek":u<0?c="yesterday":u<1?c="today":u<2?c="tomorrow":u<7?c="nextWeek":c="other";let f=s.formatRelative(c,o,n,{locale:s,weekStartsOn:a});return ru(o,f,{locale:s,weekStartsOn:a})}function Lg(t,e){return l(t*1e3,e?.in)}function iu(t,e){return l(t,e?.in).getDate()}function lr(t,e){return l(t,e?.in).getDay()}function su(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=r.getMonth(),i=h(r,0);return i.setFullYear(o,n+1,0),i.setHours(0,0,0,0),i.getDate()}function au(t,e){let o=l(t,e?.in).getFullYear();return o%400===0||o%4===0&&o%100!==0}function Bg(t,e){let r=l(t,e?.in);return Number.isNaN(+r)?NaN:au(r)?366:365}function Yg(t,e){let o=l(t,e?.in).getFullYear();return Math.floor(o/10)*10}function uu(){return Object.assign({},G())}function qg(t,e){return l(t,e?.in).getHours()}function cu(t,e){let r=l(t,e?.in).getDay();return r===0?7:r}function Hg(t,e){let r=ze(t,e),n=+ze(ir(r,60))-+r;return Math.round(n/at)}function jg(t){return l(t).getMilliseconds()}function zg(t,e){return l(t,e?.in).getMinutes()}function Vg(t,e){return l(t,e?.in).getMonth()}function Gg(t,e){let[r,o]=[+l(t.start),+l(t.end)].sort((m,p)=>m-p),[n,i]=[+l(e.start),+l(e.end)].sort((m,p)=>m-p);if(!(r<i&&n<o))return 0;let a=n<r?r:n,u=a-ae(a),c=i>o?o:i,f=c-ae(c);return Math.ceil((f-u)/li)}function Kg(t){return l(t).getSeconds()}function Qg(t){return+l(t)}function Jg(t){return Math.trunc(+l(t)/1e3)}function Xg(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=iu(l(t,e?.in));if(isNaN(n))return NaN;let i=lr(ur(t,e)),s=o-i;s<=0&&(s+=7);let a=n-s;return Math.ceil(a/7)+1}function fu(t,e){let r=l(t,e?.in),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(0,0,0,0),l(r,e?.in)}function Zg(t,e){let r=l(t,e?.in);return Wr(fu(r,e),ur(r,e),e)+1}function e0(t,e){return l(t,e?.in).getFullYear()}function t0(t){return Math.trunc(t*qe)}function r0(t){return Math.trunc(t*pi)}function o0(t){return Math.trunc(t*rr)}function n0(t,e,r){let[o,n]=C(r?.in,t,e);if(isNaN(+o))throw new TypeError("Start date is invalid");if(isNaN(+n))throw new TypeError("End date is invalid");if(r?.assertPositive&&+o>+n)throw new TypeError("End date must be after start date");return{start:o,end:n}}function i0(t,e){let{start:r,end:o}=ve(e?.in,t),n={},i=Ja(o,r);i&&(n.years=i);let s=or(r,{years:n.years}),a=ar(o,s);a&&(n.months=a);let u=or(s,{months:n.months}),c=Lo(o,u);c&&(n.days=c);let f=or(u,{days:n.days}),m=Ur(o,f);m&&(n.hours=m);let p=or(f,{hours:n.hours}),d=Lr(o,p);d&&(n.minutes=d);let y=or(p,{minutes:n.minutes}),w=St(o,y);return w&&(n.seconds=w),n}function s0(t,e,r){let o;return a0(e)?o=e:r=e,new Intl.DateTimeFormat(r?.locale,o).format(l(t))}function a0(t){return t!==void 0&&!("locale"in t)}function u0(t,e,r){let o=0,n,[i,s]=C(r?.in,t,e);if(r?.unit)n=r?.unit,n==="second"?o=St(i,s):n==="minute"?o=Lr(i,s):n==="hour"?o=Ur(i,s):n==="day"?o=De(i,s):n==="week"?o=Wr(i,s):n==="month"?o=Rr(i,s):n==="quarter"?o=Uo(i,s):n==="year"&&(o=sr(i,s));else{let u=St(i,s);Math.abs(u)<$r?(o=St(i,s),n="second"):Math.abs(u)<rr?(o=Lr(i,s),n="minute"):Math.abs(u)<yi&&Math.abs(De(i,s))<1?(o=Ur(i,s),n="hour"):Math.abs(u)<yl&&(o=De(i,s))&&Math.abs(o)<7?n="day":Math.abs(u)<Na?(o=Wr(i,s),n="week"):Math.abs(u)<xl?(o=Rr(i,s),n="month"):Math.abs(u)<Ca?Uo(i,s)<4?(o=Uo(i,s),n="quarter"):(o=sr(i,s),n="year"):(o=sr(i,s),n="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(o,n)}function c0(t,e){return+l(t)>+l(e)}function f0(t,e){return+l(t)<+l(e)}function l0(t,e){return+l(t)==+l(e)}function p0(t,e,r){let o=new Date(t,e,r);return o.getFullYear()===t&&o.getMonth()===e&&o.getDate()===r}function m0(t,e){return l(t,e?.in).getDate()===1}function d0(t,e){return l(t,e?.in).getDay()===5}function h0(t){return+l(t)>Date.now()}function lu(t,e){let r=y0(e)?new e(0):h(e,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}function y0(t){return typeof t=="function"&&t.prototype?.constructor===t}var x0=10,Si=class{subPriority=0;validate(e,r){return!0}},Di=class extends Si{constructor(e,r,o,n,i){super(),this.value=e,this.validateValue=r,this.setValue=o,this.priority=n,i&&(this.subPriority=i)}validate(e,r){return this.validateValue(e,this.value,r)}set(e,r,o){return this.setValue(e,r,this.value,o)}},Ti=class extends Si{priority=x0;subPriority=-1;constructor(e,r){super(),this.context=e||(o=>h(r,o))}set(e,r){return r.timestampIsSet?e:h(e,lu(e,this.context))}};var _=class{run(e,r,o,n){let i=this.parse(e,r,o,n);return i?{setter:new Di(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,r,o){return!0}};var Oi=class extends _{priority=140;parse(e,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(e,{width:"abbreviated"})||o.era(e,{width:"narrow"});case"GGGGG":return o.era(e,{width:"narrow"});case"GGGG":default:return o.era(e,{width:"wide"})||o.era(e,{width:"abbreviated"})||o.era(e,{width:"narrow"})}}set(e,r,o){return r.era=o,e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]};var j={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ge={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Q(t,e){return t&&{value:e(t.value),rest:t.rest}}function H(t,e){let r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function Ke(t,e){let r=e.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:e.slice(1)};let o=r[1]==="+"?1:-1,n=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:o*(n*qe+i*Ae+s*Nr),rest:e.slice(r[0].length)}}function Mi(t){return H(j.anyDigitsSigned,t)}function R(t,e){switch(t){case 1:return H(j.singleDigit,e);case 2:return H(j.twoDigits,e);case 3:return H(j.threeDigits,e);case 4:return H(j.fourDigits,e);default:return H(new RegExp("^\\d{1,"+t+"}"),e)}}function zr(t,e){switch(t){case 1:return H(j.singleDigitSigned,e);case 2:return H(j.twoDigitsSigned,e);case 3:return H(j.threeDigitsSigned,e);case 4:return H(j.fourDigitsSigned,e);default:return H(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Vr(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function _i(t,e){let r=e>0,o=r?e:1-e,n;if(o<=50)n=t||100;else{let i=o+50,s=Math.trunc(i/100)*100,a=t>=i%100;n=t+s-(a?100:0)}return r?n:1-n}function Ii(t){return t%400===0||t%4===0&&t%100!==0}var Ai=class extends _{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,r,o){let n=i=>({year:i,isTwoDigitYear:r==="yy"});switch(r){case"y":return Q(R(4,e),n);case"yo":return Q(o.ordinalNumber(e,{unit:"year"}),n);default:return Q(R(r.length,e),n)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,o){let n=e.getFullYear();if(o.isTwoDigitYear){let s=_i(o.year,n);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}let i=!("era"in r)||r.era===1?o.year:1-o.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}};var Ei=class extends _{priority=130;parse(e,r,o){let n=i=>({year:i,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Q(R(4,e),n);case"Yo":return Q(o.ordinalNumber(e,{unit:"year"}),n);default:return Q(R(r.length,e),n)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,o,n){let i=cr(e,n);if(o.isTwoDigitYear){let a=_i(o.year,i);return e.setFullYear(a,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),Z(e,n)}let s=!("era"in r)||r.era===1?o.year:1-o.year;return e.setFullYear(s,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),Z(e,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var ki=class extends _{priority=130;parse(e,r){return r==="R"?zr(4,e):zr(r.length,e)}set(e,r,o){let n=h(e,0);return n.setFullYear(o,0,4),n.setHours(0,0,0,0),pe(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Pi=class extends _{priority=130;parse(e,r){return r==="u"?zr(4,e):zr(r.length,e)}set(e,r,o){return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var Ci=class extends _{priority=120;parse(e,r,o){switch(r){case"Q":case"QQ":return R(r.length,e);case"Qo":return o.ordinalNumber(e,{unit:"quarter"});case"QQQ":return o.quarter(e,{width:"abbreviated",context:"formatting"})||o.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(e,{width:"wide",context:"formatting"})||o.quarter(e,{width:"abbreviated",context:"formatting"})||o.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=1&&r<=4}set(e,r,o){return e.setMonth((o-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var Ni=class extends _{priority=120;parse(e,r,o){switch(r){case"q":case"qq":return R(r.length,e);case"qo":return o.ordinalNumber(e,{unit:"quarter"});case"qqq":return o.quarter(e,{width:"abbreviated",context:"standalone"})||o.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(e,{width:"wide",context:"standalone"})||o.quarter(e,{width:"abbreviated",context:"standalone"})||o.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=1&&r<=4}set(e,r,o){return e.setMonth((o-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Fi=class extends _{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,r,o){let n=i=>i-1;switch(r){case"M":return Q(H(j.month,e),n);case"MM":return Q(R(2,e),n);case"Mo":return Q(o.ordinalNumber(e,{unit:"month"}),n);case"MMM":return o.month(e,{width:"abbreviated",context:"formatting"})||o.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(e,{width:"wide",context:"formatting"})||o.month(e,{width:"abbreviated",context:"formatting"})||o.month(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=11}set(e,r,o){return e.setMonth(o,1),e.setHours(0,0,0,0),e}};var $i=class extends _{priority=110;parse(e,r,o){let n=i=>i-1;switch(r){case"L":return Q(H(j.month,e),n);case"LL":return Q(R(2,e),n);case"Lo":return Q(o.ordinalNumber(e,{unit:"month"}),n);case"LLL":return o.month(e,{width:"abbreviated",context:"standalone"})||o.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(e,{width:"wide",context:"standalone"})||o.month(e,{width:"abbreviated",context:"standalone"})||o.month(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=11}set(e,r,o){return e.setMonth(o,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function pu(t,e,r){let o=l(t,r?.in),n=Vo(o,r)-e;return o.setDate(o.getDate()-n*7),l(o,r?.in)}var Ri=class extends _{priority=100;parse(e,r,o){switch(r){case"w":return H(j.week,e);case"wo":return o.ordinalNumber(e,{unit:"week"});default:return R(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,o,n){return Z(pu(e,o,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function mu(t,e,r){let o=l(t,r?.in),n=zo(o,r)-e;return o.setDate(o.getDate()-n*7),o}var Wi=class extends _{priority=100;parse(e,r,o){switch(r){case"I":return H(j.week,e);case"Io":return o.ordinalNumber(e,{unit:"week"});default:return R(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,o){return pe(mu(e,o))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var g0=[31,28,31,30,31,30,31,31,30,31,30,31],b0=[31,29,31,30,31,30,31,31,30,31,30,31],Ui=class extends _{priority=90;subPriority=1;parse(e,r,o){switch(r){case"d":return H(j.date,e);case"do":return o.ordinalNumber(e,{unit:"date"});default:return R(r.length,e)}}validate(e,r){let o=e.getFullYear(),n=Ii(o),i=e.getMonth();return n?r>=1&&r<=b0[i]:r>=1&&r<=g0[i]}set(e,r,o){return e.setDate(o),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Li=class extends _{priority=90;subpriority=1;parse(e,r,o){switch(r){case"D":case"DD":return H(j.dayOfYear,e);case"Do":return o.ordinalNumber(e,{unit:"date"});default:return R(r.length,e)}}validate(e,r){let o=e.getFullYear();return Ii(o)?r>=1&&r<=366:r>=1&&r<=365}set(e,r,o){return e.setMonth(0,o),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function pr(t,e,r){let o=G(),n=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,i=l(t,r?.in),s=i.getDay(),u=(e%7+7)%7,c=7-n,f=e<0||e>6?e-(s+c)%7:(u+c)%7-(s+c)%7;return be(i,f,r)}var Bi=class extends _{priority=90;parse(e,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,o,n){return e=pr(e,o,n),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]};var Yi=class extends _{priority=90;parse(e,r,o,n){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+n.weekStartsOn+6)%7+a};switch(r){case"e":case"ee":return Q(R(r.length,e),i);case"eo":return Q(o.ordinalNumber(e,{unit:"day"}),i);case"eee":return o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"eeeee":return o.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,o,n){return e=pr(e,o,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var qi=class extends _{priority=90;parse(e,r,o,n){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+n.weekStartsOn+6)%7+a};switch(r){case"c":case"cc":return Q(R(r.length,e),i);case"co":return Q(o.ordinalNumber(e,{unit:"day"}),i);case"ccc":return o.day(e,{width:"abbreviated",context:"standalone"})||o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"});case"ccccc":return o.day(e,{width:"narrow",context:"standalone"});case"cccccc":return o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(e,{width:"wide",context:"standalone"})||o.day(e,{width:"abbreviated",context:"standalone"})||o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=6}set(e,r,o,n){return e=pr(e,o,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function du(t,e,r){let o=l(t,r?.in),n=cu(o,r),i=e-n;return be(o,i,r)}var Hi=class extends _{priority=90;parse(e,r,o){let n=i=>i===0?7:i;switch(r){case"i":case"ii":return R(r.length,e);case"io":return o.ordinalNumber(e,{unit:"day"});case"iii":return Q(o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),n);case"iiiii":return Q(o.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return Q(o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),n);case"iiii":default:return Q(o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),n)}}validate(e,r){return r>=1&&r<=7}set(e,r,o){return e=du(e,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var ji=class extends _{priority=80;parse(e,r,o){switch(r){case"a":case"aa":case"aaa":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,o){return e.setHours(Vr(o),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};var zi=class extends _{priority=80;parse(e,r,o){switch(r){case"b":case"bb":case"bbb":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,o){return e.setHours(Vr(o),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};var Vi=class extends _{priority=80;parse(e,r,o){switch(r){case"B":case"BB":case"BBB":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,o){return e.setHours(Vr(o),0,0,0),e}incompatibleTokens=["a","b","t","T"]};var Gi=class extends _{priority=70;parse(e,r,o){switch(r){case"h":return H(j.hour12h,e);case"ho":return o.ordinalNumber(e,{unit:"hour"});default:return R(r.length,e)}}validate(e,r){return r>=1&&r<=12}set(e,r,o){let n=e.getHours()>=12;return n&&o<12?e.setHours(o+12,0,0,0):!n&&o===12?e.setHours(0,0,0,0):e.setHours(o,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]};var Ki=class extends _{priority=70;parse(e,r,o){switch(r){case"H":return H(j.hour23h,e);case"Ho":return o.ordinalNumber(e,{unit:"hour"});default:return R(r.length,e)}}validate(e,r){return r>=0&&r<=23}set(e,r,o){return e.setHours(o,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]};var Qi=class extends _{priority=70;parse(e,r,o){switch(r){case"K":return H(j.hour11h,e);case"Ko":return o.ordinalNumber(e,{unit:"hour"});default:return R(r.length,e)}}validate(e,r){return r>=0&&r<=11}set(e,r,o){return e.getHours()>=12&&o<12?e.setHours(o+12,0,0,0):e.setHours(o,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]};var Ji=class extends _{priority=70;parse(e,r,o){switch(r){case"k":return H(j.hour24h,e);case"ko":return o.ordinalNumber(e,{unit:"hour"});default:return R(r.length,e)}}validate(e,r){return r>=1&&r<=24}set(e,r,o){let n=o<=24?o%24:o;return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]};var Xi=class extends _{priority=60;parse(e,r,o){switch(r){case"m":return H(j.minute,e);case"mo":return o.ordinalNumber(e,{unit:"minute"});default:return R(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,o){return e.setMinutes(o,0,0),e}incompatibleTokens=["t","T"]};var Zi=class extends _{priority=50;parse(e,r,o){switch(r){case"s":return H(j.second,e);case"so":return o.ordinalNumber(e,{unit:"second"});default:return R(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,o){return e.setSeconds(o,0),e}incompatibleTokens=["t","T"]};var es=class extends _{priority=30;parse(e,r){let o=n=>Math.trunc(n*Math.pow(10,-r.length+3));return Q(R(r.length,e),o)}set(e,r,o){return e.setMilliseconds(o),e}incompatibleTokens=["t","T"]};var ts=class extends _{priority=10;parse(e,r){switch(r){case"X":return Ke(Ge.basicOptionalMinutes,e);case"XX":return Ke(Ge.basic,e);case"XXXX":return Ke(Ge.basicOptionalSeconds,e);case"XXXXX":return Ke(Ge.extendedOptionalSeconds,e);case"XXX":default:return Ke(Ge.extended,e)}}set(e,r,o){return r.timestampIsSet?e:h(e,e.getTime()-ae(e)-o)}incompatibleTokens=["t","T","x"]};var rs=class extends _{priority=10;parse(e,r){switch(r){case"x":return Ke(Ge.basicOptionalMinutes,e);case"xx":return Ke(Ge.basic,e);case"xxxx":return Ke(Ge.basicOptionalSeconds,e);case"xxxxx":return Ke(Ge.extendedOptionalSeconds,e);case"xxx":default:return Ke(Ge.extended,e)}}set(e,r,o){return r.timestampIsSet?e:h(e,e.getTime()-ae(e)-o)}incompatibleTokens=["t","T","X"]};var os=class extends _{priority=40;parse(e){return Mi(e)}set(e,r,o){return[h(e,o*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var ns=class extends _{priority=20;parse(e){return Mi(e)}set(e,r,o){return[h(e,o),{timestampIsSet:!0}]}incompatibleTokens="*"};var hu={G:new Oi,y:new Ai,Y:new Ei,R:new ki,u:new Pi,Q:new Ci,q:new Ni,M:new Fi,L:new $i,w:new Ri,I:new Wi,d:new Ui,D:new Li,E:new Bi,e:new Yi,c:new qi,i:new Hi,a:new ji,b:new zi,B:new Vi,h:new Gi,H:new Ki,K:new Qi,k:new Ji,m:new Xi,s:new Zi,S:new es,X:new ts,x:new rs,t:new os,T:new ns};var v0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,w0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,S0=/^'([^]*?)'?$/,D0=/''/g,T0=/\S/,O0=/[a-zA-Z]/;function yu(t,e,r,o){let n=()=>h(o?.in||r,NaN),i=uu(),s=o?.locale??i.locale??He,a=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!e)return t?n():l(r,o?.in);let c={firstWeekContainsDate:a,weekStartsOn:u,locale:s},f=[new Ti(o?.in,r)],m=e.match(w0).map(g=>{let I=g[0];if(I in jr){let D=jr[I];return D(g,s.formatLong)}return g}).join("").match(v0),p=[];for(let g of m){!o?.useAdditionalWeekYearTokens&&wi(g)&&Go(g,e,t),!o?.useAdditionalDayOfYearTokens&&vi(g)&&Go(g,e,t);let I=g[0],D=hu[I];if(D){let{incompatibleTokens:T}=D;if(Array.isArray(T)){let V=p.find(z=>T.includes(z.token)||z.token===I);if(V)throw new RangeError(`The format string mustn't contain \`${V.fullToken}\` and \`${g}\` at the same time`)}else if(D.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${g}\` and any other token at the same time`);p.push({token:I,fullToken:g});let L=D.run(t,g,s.match,c);if(!L)return n();f.push(L.setter),t=L.rest}else{if(I.match(O0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");if(g==="''"?g="'":I==="'"&&(g=M0(g)),t.indexOf(g)===0)t=t.slice(g.length);else return n()}}if(t.length>0&&T0.test(t))return n();let d=f.map(g=>g.priority).sort((g,I)=>I-g).filter((g,I,D)=>D.indexOf(g)===I).map(g=>f.filter(I=>I.priority===g).sort((I,D)=>D.subPriority-I.subPriority)).map(g=>g[0]),y=l(r,o?.in);if(isNaN(+y))return n();let w={};for(let g of d){if(!g.validate(y,c))return n();let I=g.set(y,w,c);Array.isArray(I)?(y=I[0],Object.assign(w,I[1])):y=I}return y}function M0(t){return t.match(S0)[1].replace(D0,"'")}function _0(t,e,r){return Ee(yu(t,e,new Date,r))}function I0(t,e){return l(t,e?.in).getDay()===1}function A0(t){return+l(t)<Date.now()}function is(t,e){let r=l(t,e?.in);return r.setMinutes(0,0,0),r}function xu(t,e,r){let[o,n]=C(r?.in,t,e);return+is(o)==+is(n)}function Ko(t,e,r){let[o,n]=C(r?.in,t,e);return+Z(o,r)==+Z(n,r)}function gu(t,e,r){return Ko(t,e,{...r,weekStartsOn:1})}function E0(t,e,r){let[o,n]=C(r?.in,t,e);return+ze(o)==+ze(n)}function ss(t,e){let r=l(t,e?.in);return r.setSeconds(0,0),r}function bu(t,e){return+ss(t)==+ss(e)}function vu(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()&&o.getMonth()===n.getMonth()}function wu(t,e,r){let[o,n]=C(r?.in,t,e);return+Dt(o)==+Dt(n)}function as(t,e){let r=l(t,e?.in);return r.setMilliseconds(0),r}function Su(t,e){return+as(t)==+as(e)}function Du(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()}function k0(t,e){return xu(l(t,e?.in),B(e?.in||t))}function P0(t,e){return gu(h(e?.in||t,t),B(e?.in||t))}function C0(t){return bu(t,B(t))}function N0(t,e){return vu(h(e?.in||t,t),B(e?.in||t))}function F0(t,e){return wu(h(e?.in||t,t),B(e?.in||t))}function $0(t){return Su(t,B(t))}function R0(t,e){return Ko(h(e?.in||t,t),B(e?.in||t),e)}function W0(t,e){return Du(h(e?.in||t,t),B(e?.in||t))}function U0(t,e){return l(t,e?.in).getDay()===4}function L0(t,e){return wt(h(e?.in||t,t),B(e?.in||t))}function B0(t,e){return wt(t,be(B(e?.in||t),1),e)}function Y0(t,e){return l(t,e?.in).getDay()===2}function q0(t,e){return l(t,e?.in).getDay()===3}function H0(t,e,r){let o=+l(t,r?.in),[n,i]=[+l(e.start,r?.in),+l(e.end,r?.in)].sort((s,a)=>s-a);return o>=n&&o<=i}function mr(t,e,r){return be(t,-e,r)}function j0(t,e){return wt(h(e?.in||t,t),mr(B(e?.in||t),1))}function z0(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=9+Math.floor(o/10)*10;return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),l(r,e?.in)}function Tu(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=l(t,e?.in),i=n.getDay(),s=(i<o?-7:0)+6-(i-o);return n.setHours(0,0,0,0),n.setDate(n.getDate()+s),n}function V0(t,e){return Tu(t,{...e,weekStartsOn:1})}function G0(t,e){let r=We(t,e),o=h(e?.in||t,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);let n=pe(o,e);return n.setDate(n.getDate()-1),n}function K0(t,e){let r=l(t,e?.in),o=r.getMonth(),n=o-o%3+3;return r.setMonth(n,0),r.setHours(0,0,0,0),r}function Q0(t,e){let r=l(t,e?.in),o=r.getFullYear();return r.setFullYear(o+1,0,0),r.setHours(0,0,0,0),r}var J0=/(\w)\1*|''|'(''|[^'])+('|$)|./g,X0=/^'([^]*?)'?$/,Z0=/''/g,eb=/[a-zA-Z]/;function tb(t,e){let r=l(t);if(!Ee(r))throw new RangeError("Invalid time value");let o=e.match(J0);return o?o.map(i=>{if(i==="''")return"'";let s=i[0];if(s==="'")return rb(i);let a=Ve[s];if(a)return a(r,i);if(s.match(eb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return i}).join(""):""}function rb(t){let e=t.match(X0);return e?e[1].replace(Z0,"'"):t}function ob({years:t,months:e,weeks:r,days:o,hours:n,minutes:i,seconds:s}){let a=0;t&&(a+=t*365.2425),e&&(a+=e*(365.2425/12)),r&&(a+=r*7),o&&(a+=o);let u=a*24*60*60;return n&&(u+=n*60*60),i&&(u+=i*60),s&&(u+=s),Math.trunc(u*1e3)}function nb(t){let e=t/qe;return Math.trunc(e)}function ib(t){let e=t/Ae;return Math.trunc(e)}function sb(t){let e=t/Nr;return Math.trunc(e)}function ab(t){let e=t/pi;return Math.trunc(e)}function ub(t){return Math.trunc(t*Ae)}function cb(t){return Math.trunc(t*$r)}function fb(t){let e=t/mi;return Math.trunc(e)}function lb(t){let e=t/di;return Math.trunc(e)}function Fe(t,e,r){let o=e-lr(t,r);return o<=0&&(o+=7),be(t,o,r)}function pb(t,e){return Fe(t,5,e)}function mb(t,e){return Fe(t,1,e)}function db(t,e){return Fe(t,6,e)}function hb(t,e){return Fe(t,0,e)}function yb(t,e){return Fe(t,4,e)}function xb(t,e){return Fe(t,2,e)}function gb(t,e){return Fe(t,3,e)}function bb(t,e){let r=()=>h(e?.in,NaN),o=e?.additionalDigits??2,n=Db(t),i;if(n.date){let c=Tb(n.date,o);i=Ob(c.restDateString,c.year)}if(!i||isNaN(+i))return r();let s=+i,a=0,u;if(n.time&&(a=Mb(n.time),isNaN(a)))return r();if(n.timezone){if(u=_b(n.timezone),isNaN(u))return r()}else{let c=new Date(s+a),f=l(0,e?.in);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return l(s+a+u,e?.in)}var us={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},vb=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,wb=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Sb=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Db(t){let e={},r=t.split(us.dateTimeDelimiter),o;if(r.length>2)return e;if(/:/.test(r[0])?o=r[0]:(e.date=r[0],o=r[1],us.timeZoneDelimiter.test(e.date)&&(e.date=t.split(us.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){let n=us.timezone.exec(o);n?(e.time=o.replace(n[1],""),e.timezone=n[1]):e.time=o}return e}function Tb(t,e){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=t.match(r);if(!o)return{year:NaN,restDateString:""};let n=o[1]?parseInt(o[1]):null,i=o[2]?parseInt(o[2]):null;return{year:i===null?n:i*100,restDateString:t.slice((o[1]||o[2]).length)}}function Ob(t,e){if(e===null)return new Date(NaN);let r=t.match(vb);if(!r)return new Date(NaN);let o=!!r[4],n=Qo(r[1]),i=Qo(r[2])-1,s=Qo(r[3]),a=Qo(r[4]),u=Qo(r[5])-1;if(o)return Pb(e,a,u)?Ib(e,a,u):new Date(NaN);{let c=new Date(0);return!Eb(e,i,s)||!kb(e,n)?new Date(NaN):(c.setUTCFullYear(e,i,Math.max(n,s)),c)}}function Qo(t){return t?parseInt(t):1}function Mb(t){let e=t.match(wb);if(!e)return NaN;let r=Ou(e[1]),o=Ou(e[2]),n=Ou(e[3]);return Cb(r,o,n)?r*qe+o*Ae+n*1e3:NaN}function Ou(t){return t&&parseFloat(t.replace(",","."))||0}function _b(t){if(t==="Z")return 0;let e=t.match(Sb);if(!e)return 0;let r=e[1]==="+"?-1:1,o=parseInt(e[2]),n=e[3]&&parseInt(e[3])||0;return Nb(o,n)?r*(o*qe+n*Ae):NaN}function Ib(t,e,r){let o=new Date(0);o.setUTCFullYear(t,0,4);let n=o.getUTCDay()||7,i=(e-1)*7+r+1-n;return o.setUTCDate(o.getUTCDate()+i),o}var Ab=[31,null,31,30,31,30,31,31,30,31,30,31];function Pl(t){return t%400===0||t%4===0&&t%100!==0}function Eb(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(Ab[e]||(Pl(t)?29:28))}function kb(t,e){return e>=1&&e<=(Pl(t)?366:365)}function Pb(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function Cb(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function Nb(t,e){return e>=0&&e<=59}function Fb(t,e){let r=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return r?l(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4]-(+r[9]||0)*(r[8]=="-"?-1:1),+r[5]-(+r[10]||0)*(r[8]=="-"?-1:1),+r[6],+((r[7]||"0")+"00").substring(0,3)),e?.in):l(NaN,e?.in)}function $e(t,e,r){let o=lr(t,r)-e;return o<=0&&(o+=7),mr(t,o,r)}function $b(t,e){return $e(t,5,e)}function Rb(t,e){return $e(t,1,e)}function Wb(t,e){return $e(t,6,e)}function Ub(t,e){return $e(t,0,e)}function Lb(t,e){return $e(t,4,e)}function Bb(t,e){return $e(t,2,e)}function Yb(t,e){return $e(t,3,e)}function qb(t){return Math.trunc(t*mi)}function Hb(t){let e=t/hi;return Math.trunc(e)}function jb(t,e){let r=e?.nearestTo??1;if(r<1||r>12)return h(e?.in||t,NaN);let o=l(t,e?.in),n=o.getMinutes()/60,i=o.getSeconds()/60/60,s=o.getMilliseconds()/1e3/60/60,a=o.getHours()+n+i+s,u=e?.roundingMethod??"round",f=ke(u)(a/r)*r;return o.setHours(f,0,0,0),o}function zb(t,e){let r=e?.nearestTo??1;if(r<1||r>30)return h(t,NaN);let o=l(t,e?.in),n=o.getSeconds()/60,i=o.getMilliseconds()/1e3/60,s=o.getMinutes()+n+i,a=e?.roundingMethod??"round",c=ke(a)(s/r)*r;return o.setMinutes(c,0,0),o}function Vb(t){let e=t/rr;return Math.trunc(e)}function Gb(t){return t*Nr}function Kb(t){let e=t/$r;return Math.trunc(e)}function Jo(t,e,r){let o=l(t,r?.in),n=o.getFullYear(),i=o.getDate(),s=h(r?.in||t,0);s.setFullYear(n,e,15),s.setHours(0,0,0,0);let a=su(s);return o.setMonth(e,Math.min(i,a)),o}function Qb(t,e,r){let o=l(t,r?.in);return isNaN(+o)?h(r?.in||t,NaN):(e.year!=null&&o.setFullYear(e.year),e.month!=null&&(o=Jo(o,e.month)),e.date!=null&&o.setDate(e.date),e.hours!=null&&o.setHours(e.hours),e.minutes!=null&&o.setMinutes(e.minutes),e.seconds!=null&&o.setSeconds(e.seconds),e.milliseconds!=null&&o.setMilliseconds(e.milliseconds),o)}function Jb(t,e,r){let o=l(t,r?.in);return o.setDate(e),o}function Xb(t,e,r){let o=l(t,r?.in);return o.setMonth(0),o.setDate(e),o}function Zb(t){let e={},r=G();for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(t[o]===void 0?delete e[o]:e[o]=t[o]);bl(e)}function ev(t,e,r){let o=l(t,r?.in);return o.setHours(e),o}function tv(t,e,r){let o=l(t,r?.in);return o.setMilliseconds(e),o}function rv(t,e,r){let o=l(t,r?.in);return o.setMinutes(e),o}function ov(t,e,r){let o=l(t,r?.in),n=Math.trunc(o.getMonth()/3)+1,i=e-n;return Jo(o,o.getMonth()+i*3)}function nv(t,e,r){let o=l(t,r?.in);return o.setSeconds(e),o}function iv(t,e,r){let o=G(),n=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=De(l(t,r?.in),qr(t,r),r),s=h(r?.in||t,0);s.setFullYear(e,0,n),s.setHours(0,0,0,0);let a=qr(s,r);return a.setDate(a.getDate()+i),a}function sv(t,e,r){let o=l(t,r?.in);return isNaN(+o)?h(r?.in||t,NaN):(o.setFullYear(e),o)}function av(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=Math.floor(o/10)*10;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}function uv(t){return vt(Date.now(),t)}function cv(t){let e=B(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=h(t?.in,0);return i.setFullYear(r,o,n+1),i.setHours(0,0,0,0),i}function fv(t){let e=B(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=B(t?.in);return i.setFullYear(r,o,n-1),i.setHours(0,0,0,0),i}function Mu(t,e,r){return gt(t,-e,r)}function lv(t,e,r){let{years:o=0,months:n=0,weeks:i=0,days:s=0,hours:a=0,minutes:u=0,seconds:c=0}=e,f=Mu(t,n+o*12,r),m=mr(f,s+i*7,r),p=u+a*60,y=(c+p*60)*1e3;return h(r?.in||t,+m-y)}function pv(t,e,r){return Wa(t,-e,r)}function mv(t,e,r){return Ua(t,-e,r)}function dv(t,e,r){return nr(t,-e,r)}function hv(t,e,r){return Ro(t,-e,r)}function yv(t,e,r){return Wo(t,-e,r)}function xv(t,e,r){return Ya(t,-e,r)}function gv(t,e,r){return ir(t,-e,r)}function bv(t,e,r){return qa(t,-e,r)}function vv(t){return Math.trunc(t*7)}function wv(t){return Math.trunc(t*365.2425)}function Sv(t){return Math.trunc(t*di)}function Dv(t){return Math.trunc(t*hi)}var Gr=nt(Cl(),1),$l=nt(Nl(),1);var Fl=t=>Number.isFinite(t)?t:0;function Tv(t){return{days:Math.trunc(t/864e5),hours:Math.trunc(t/36e5%24),minutes:Math.trunc(t/6e4%60),seconds:Math.trunc(t/1e3%60),milliseconds:Math.trunc(t%1e3),microseconds:Math.trunc(Fl(t*1e3)%1e3),nanoseconds:Math.trunc(Fl(t*1e6)%1e3)}}function Ov(t){return{days:t/86400000n,hours:t/3600000n%24n,minutes:t/60000n%60n,seconds:t/1000n%60n,milliseconds:t%1000n,microseconds:0n,nanoseconds:0n}}function ku(t){switch(typeof t){case"number":{if(Number.isFinite(t))return Tv(t);break}case"bigint":return Ov(t)}throw new TypeError("Expected a finite number or bigint")}var Mv=t=>t===0||t===0n,_v=(t,e)=>e===1||e===1n?t:`${t}s`,Iv=1e-7,Av=24n*60n*60n*1000n;function fs(t,e){let r=typeof t=="bigint";if(!r&&!Number.isFinite(t))throw new TypeError("Expected a finite number or bigint");e={...e};let o=t<0?"-":"";t=t<0?-t:t,e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.unitCount=1,e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let n=[],i=(f,m)=>{let p=Math.floor(f*10**m+Iv);return(Math.round(p)/10**m).toFixed(m)},s=(f,m,p,d)=>{if(!((n.length===0||!e.colonNotation)&&Mv(f)&&!(e.colonNotation&&p==="m"))){if(d??=String(f),e.colonNotation){let y=d.includes(".")?d.split(".")[0].length:d.length,w=n.length>0?2:1;d="0".repeat(Math.max(0,w-y))+d}else d+=e.verbose?" "+_v(m,f):p;n.push(d)}},a=ku(t),u=BigInt(a.days);if(e.hideYearAndDays?s(BigInt(u)*24n+BigInt(a.hours),"hour","h"):(e.hideYear?s(u,"day","d"):(s(u/365n,"year","y"),s(u%365n,"day","d")),s(Number(a.hours),"hour","h")),s(Number(a.minutes),"minute","m"),!e.hideSeconds)if(e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3){let f=Number(a.seconds),m=Number(a.milliseconds),p=Number(a.microseconds),d=Number(a.nanoseconds);if(s(f,"second","s"),e.formatSubMilliseconds)s(m,"millisecond","ms"),s(p,"microsecond","\xB5s"),s(d,"nanosecond","ns");else{let y=m+p/1e3+d/1e6,w=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,g=y>=1?Math.round(y):Math.ceil(y),I=w?y.toFixed(w):g;s(Number.parseFloat(I),"millisecond","ms",I)}}else{let f=(r?Number(t%Av):t)/1e3%60,m=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,p=i(f,m),d=e.keepDecimalsOnWholeSeconds?p:p.replace(/\.0+$/,"");s(Number.parseFloat(d),"second","s",d)}if(n.length===0)return o+"0"+(e.verbose?" milliseconds":"ms");let c=e.colonNotation?":":" ";return typeof e.unitCount=="number"&&(n=n.slice(0,Math.max(e.unitCount,1))),o+n.join(c)}Gr.default.extend($l.default);var Xo=class{constructor(e,r,o){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=o,this.cronParser=new fi.Cron(r)}checkExecution(){if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let e=this.jobFunction(this.nextExecutionUnix);e instanceof Promise&&e.catch(r=>console.log(r)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()}start(){this.status="started"}stop(){this.status="stopped"}};var Ct={years:(t=1)=>t*3154e7,months:(t=1)=>t*2628e6,weeks:(t=1)=>t*6048e5,days:(t=1)=>t*864e5,hours:(t=1)=>t*36e5,minutes:(t=1)=>t*6e4,seconds:(t=1)=>t*1e3},Pu=t=>{let e=0,r=o=>{e=e+o};return t.years&&r(Ct.years(t.years)),t.months&&r(Ct.months(t.months)),t.weeks&&r(Ct.weeks(t.weeks)),t.days&&r(Ct.days(t.days)),t.hours&&r(Ct.hours(t.hours)),t.minutes&&r(Ct.minutes(t.minutes)),t.seconds&&r(Ct.seconds(t.seconds)),e},Cu=t=>fs(t),Ev=t=>cs.formatDistanceToNow(new Date(t));var Nu=class{constructor(){this.status="stopped",this.cronjobs=new Ue.ObjectMap}addCronjob(e,r){let o=new Xo(this,e,r);return this.cronjobs.add(o),this.status==="started"&&o.start(),o}removeCronjob(e){e.stop(),this.cronjobs.remove(e)}start(){if(this.status!=="started"){this.status="started";for(let e of this.cronjobs.getArray())e.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new X.Timeout(0);do{let e;for(let r of this.cronjobs.getArray())r.checkExecution(),(!e||r.getTimeToNextExecution()<e.getTimeToNextExecution())&&(e=r);e?(this.executionTimeout=new X.Timeout(e.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${Cu(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new X.Timeout(1e3),console.log("no cronjobs specified! Checking again in 1 second")),await this.executionTimeout.promise}while(this.status==="started")}stop(){this.status==="started"?(this.status="stopped",this.executionTimeout.cancel()):console.log("You tried to stop a CronManager that was not actually started.");for(let e of this.cronjobs.getArray())e.stop()}};var Fu=class t extends Date{static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let r=/(.*)\.(.*)\.(.*)/.exec(e),n=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new t(n)}static fromHyphedDate(e){let r=new Date(e).getTime();return new t(r)}static fromEuropeanDateAndTime(e,r="12:00:00",o="Europe/Berlin"){let n=/(.*)\.(.*)\.(.*)/.exec(e),i=c=>`0${c}`.slice(-2),s=`${n[3]}-${i(n[2])}-${i(n[1])}T${r}`,u=Gr.default(s).toDate().getTime();return new t(u)}constructor(e=Date.now()){super(e)}exportToEuropeanDate(){let e=this.exportToUnits();return`${e.dayString}.${e.monthString}.${e.yearString}`}exportToHyphedSortableDate(){let e=this.exportToUnits();return`${e.yearString}-${e.monthString}-${e.dayString}`}exportToUnits(){let e=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return{year:this.getFullYear(),yearString:`${this.getFullYear()}`,month:this.getMonth()+1,monthString:("0"+(this.getMonth()+1)).slice(-2),monthName:e[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(e){return Gr.default(this.getTime()).format(e)}isToday(){return Gr.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=Pu(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var $u=class{constructor(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}start(){this._started=!0,this._milliStart=Date.now()}stop(){if(this._started===!1){console.log("Hasn't started yet");return}return this._milliDiff=Date.now()-this._milliStart,this.nanoSeconds=this._milliDiff*1e3,this.milliSeconds=this._milliDiff,this}reset(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}};var Ru=class{constructor(e){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=e}start(){this.status="started";let e=new Date;this.statusAuthorization=e,(async()=>{for(;this.status==="started"&&this.statusAuthorization===e;)await X.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(e){this.intervalJobs.push(e)}executeIntervalJobs(){for(let e of this.intervalJobs)e()}};var Qr=class t{static fromMilliSeconds(e){return new t(e)}static fromTimeStamp(e){let r=new t;return r.change=r.milliSeconds-e.milliSeconds,r}constructor(e){this.change=null,e?typeof e=="number"&&(this.date=new Date(e)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,r=0){return this.milliSeconds<e.milliSeconds-r}isOlderThan(e,r=0){return this.milliSeconds+r<e.milliSeconds}isYoungerThanOtherTimeStamp(e,r=0){return this.milliSeconds>e.milliSeconds+r}isYoungerThanMilliSeconds(e){let o=new t().epochtime-e,n=new t(o);return this.isYoungerThanOtherTimeStamp(n)}};var Wu=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=K.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new Qr;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Qr.fromTimeStamp(this.startedAt))}resume(){if(this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeLeft);else throw new Error("timer has NOT been started before. Please use .start() instead")}reset(){this.pause(),this.startedAt=null,this.pausedAt=null}};var Lu=nt(Vl(),1);var Bu=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(e,r){let o=K.defer(),n={funcToExecute:e,executionDeferred:o,timeout:r,mode:"exclusive"};return this.executionSlots.push(n),this.processExecutionSlots(),o.promise}async getNonExclusiveExecutionSlot(e,r){let o=K.defer(),n={funcToExecute:e,executionDeferred:o,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(n),this.processExecutionSlots(),o.promise}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let e=this.executionSlots[0];if(e.mode==="exclusive")await this.executeExclusiveSlot(e),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(e){try{if(e.timeout){let r=await Promise.race([e.funcToExecute(),X.delayFor(e.timeout).then(()=>{throw new Error("Timeout reached")})]);e.executionDeferred.resolve(r)}else{let r=await e.funcToExecute();e.executionDeferred.resolve(r)}}catch(r){e.executionDeferred.reject(r)}}async executeNonExclusiveSlots(e){let r=e.map(async o=>{try{if(o.timeout){let n=await Promise.race([o.funcToExecute(),X.delayFor(o.timeout).then(()=>{throw new Error("Timeout reached")})]);o.executionDeferred.resolve(n)}else{let n=await o.funcToExecute();o.executionDeferred.resolve(n)}}catch(n){o.executionDeferred.reject(n)}});await Promise.all(r)}};var Yu=class{constructor(e=16){this.hasSpace=new st.rxjs.Subject,this.itemsAvailable=new st.rxjs.Subject,this.data=[],this.highWaterMark=e}push(e){this.data.push(e),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}shift(){let e=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),e}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(e=>{if(this.checkSpaceAvailable())e();else{let r=this.hasSpace.subscribe(()=>{r.unsubscribe(),e()})}})}waitForItems(){return new Promise(e=>{if(this.data.length>0)e();else{let r=this.itemsAvailable.subscribe(()=>{r.unsubscribe(),e()})}})}};var Zo=class t{constructor(){this.mapObject={}}isUniqueKey(e){return!this.mapObject[e]}addToMap(e,r,o){return this.isUniqueKey(e)||o&&o.force?(this.mapObject[e]=r,!0):!1}getByKey(e){return this.mapObject[e]}removeFromMap(e){let r=this.getByKey(e);return delete this.mapObject[e],r}getKeys(){let e=[];for(let r in this.mapObject)this.mapObject[r]&&e.push(r);return e}clean(){this.mapObject={}}concat(e){let r=new t;for(let o of this.getKeys())r.addToMap(o,this.getByKey(o));for(let o of e.getKeys())r.addToMap(o,e.getByKey(o),{force:!0});return r}addAllFromOther(e){for(let r of e.getKeys())this.addToMap(r,e.getByKey(r),{force:!0})}async find(e){for(let r of this.getKeys()){let o=this.getByKey(r);if(await e(o))return o}}};var Gl=(t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),dr=class t{constructor(){this.fastMap=new Zo,this.eventSubject=new st.rxjs.Subject}addMappedUnique(e,r){this.fastMap.addToMap(e,r)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let r=this.getMappedUnique(e)}add(e){for(let o of this.fastMap.getKeys())if(this.fastMap.getByKey(o)===e)return o;let r=Gl("key");return this.addMappedUnique(r,e),this.eventSubject.next({operation:"add",payload:e}),r}addArray(e){for(let r of e)this.add(r)}checkForObject(e){return!!this.getKeyForObject(e)}getKeyForObject(e){let r=null;for(let o of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(o)===e)r=o;else continue;return r}async find(e){return this.fastMap.find(e)}findSync(e){for(let r of this.fastMap.getKeys())if(e(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(e){let r=await this.find(e);return r&&this.remove(r),r}findOneAndRemoveSync(e){let r=this.findSync(e);return r&&this.remove(r),r}async forEach(e){for(let r of this.fastMap.getKeys())await e(this.fastMap.getByKey(r))}getOneAndRemove(){let e=this.fastMap.getKeys();if(e.length===0)return null;{let r=e[0],o=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:o}),o}}getArray(){let e=[];for(let r of this.fastMap.getKeys())e.push(this.fastMap.getByKey(r));return e}isEmpty(){return this.fastMap.getKeys().length===0}remove(e){if(this.checkForObject(e)){let r=this.getKeyForObject(e),o=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:o}),o}return null}wipe(){for(let e of this.fastMap.getKeys())this.fastMap.removeFromMap(e)}concat(e){let r=new t;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(e.fastMap),r}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap)}};var en=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e)}constructor(e,r,o,n){this.destructionTimer=new Tt.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new K.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=e,this.originalInterest=r,this.comparisonFunc=o,this.options=n,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&X.delayFor(this.options.markLostAfterDefault).then(this.markLost)}destroy(){this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options.defaultFullfillment&&this.fullfillInterest(this.options.defaultFullfillment)}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var qu=class{constructor(e,r={}){this.interestObjectMap=new dr,this.interestObservable=new st.ObservableIntake,this.comparisonFunc=e,this.options=r}async addInterest(e,r){let o=this.comparisonFunc(e),n,i=new en(this,e,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===i.comparisonString&&(console.log("info",`interest already exists for ${i.comparisonString}`),s=!0,n=a,n.renew())}),n||(n=i,this.interestObjectMap.add(n)),this.interestObservable.push(n),n}removeInterest(e){let r=this.interestObjectMap.findOneAndRemoveSync(o=>e.comparisonString===o.comparisonString)}checkInterest(e){let r=this.comparisonFunc(e);return this.checkInterestByString(r)}checkInterestByString(e){return!!this.interestObjectMap.findSync(o=>o.comparisonString===e)}informLostInterest(e){let r=this.findInterest(e);r&&r.markLost()}findInterest(e){let r=this.comparisonFunc(e);return this.interestObjectMap.findSync(n=>n.comparisonString===r)}};var Hu=class{constructor(e){this.array=[],this.arrayLimit=e}addOne(e){this.array.unshift(e),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(e){for(let r of e)this.addOne(r)}setLimit(e){this.arrayLimit=e,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let e=0;for(let r of this.array)e=e+r;return e/this.array.length}else return null}};var ju=class{constructor(){this.referenceObjectMap=new dr}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var zu=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(e){this._stringArray.push(e),this.notifyTrigger()}addStringArray(e){for(let r of e)this.addString(r)}removeString(e){for(let r in this._stringArray)this._stringArray[r]===e&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(e){return this._stringArray.indexOf(e)!==-1}checkMinimatch(e){let r=new qn.SmartMatch(e),o=!1;for(let n of this._stringArray)r.match(n)&&(o=!0);return o}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let e=[];for(let r of this._stringArray)e.push(r);return e}registerUntilTrue(e,r){let o=K.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let n=e(this.getStringArray());return n===!0&&(r&&r(),o.resolve()),n}),this.notifyTrigger(),o.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=e}};var Vu=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new Tt.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],e(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||e()}add(e){this.storageArray.push(e),this.checkAggregationStatus()}};var Gu=class{constructor(){this.symbolTree=new Lu.default}initialize(e){return this.symbolTree.initialize(e)}hasChildren(e){return this.symbolTree.hasChildren(e)}firstChild(e){return this.symbolTree.firstChild(e)}lastChild(e){return this.symbolTree.lastChild(e)}previousSibling(e){return this.symbolTree.previousSibling(e)}nextSibling(e){return this.symbolTree.nextSibling(e)}parent(e){return this.symbolTree.parent(e)}lastInclusiveDescendant(e){return this.symbolTree.lastInclusiveDescendant(e)}preceding(e,r){return this.symbolTree.preceding(e,r)}following(e,r){return this.symbolTree.following(e,r)}childrenToArray(e,r){return this.symbolTree.childrenToArray(e,r)}ancestorsToArray(e,r){return this.symbolTree.ancestorsToArray(e,r)}treeToArray(e,r){return this.symbolTree.treeToArray(e,r)}childrenIterator(e,r){return this.symbolTree.childrenIterator(e,r)}previousSiblingsIterator(e){return this.symbolTree.previousSiblingsIterator(e)}nextSiblingsIterator(e){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(e){this.symbolTree.ancestorsIterator()}treeIterator(e,r){return this.symbolTree.treeIterator(e)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,r){return this.compareTreePosition(e,r)}remove(e){return this.symbolTree.remove(e)}insertBefore(e,r){return this.symbolTree.insertBefore(e,r)}insertAfter(e,r){return this.symbolTree.insertAfter(e,r)}prependChild(e,r){return this.symbolTree.prependChild(e,r)}appendChild(e,r){return this.symbolTree.appendChild(e,r)}toJsonWithHierachy(e){let r=this.treeIterator(e,{});for(let o of r)console.log(o)}fromJsonWithHierachy(e){}};var rn={};re(rn,{base64ToUint8Array:()=>rw,ensurePureUint8Array:()=>iw,isBufferLike:()=>nw,isUint8Array:()=>ow,uInt8ArrayExtras:()=>ew,uInt8ArrayToBase64:()=>tw});var hr={};re(hr,{areUint8ArraysEqual:()=>Lv,assertUint8Array:()=>Rt,assertUint8ArrayOrArrayBuffer:()=>Xl,base64ToString:()=>Vv,base64ToUint8Array:()=>rp,compareUint8Arrays:()=>Bv,concatUint8Arrays:()=>Uv,getUintBE:()=>Jv,hexToUint8Array:()=>Qv,includes:()=>Xv,indexOf:()=>op,isUint8Array:()=>Ku,stringToBase64:()=>zv,stringToUint8Array:()=>ep,toUint8Array:()=>Wv,uint8ArrayToBase64:()=>tp,uint8ArrayToHex:()=>Kv,uint8ArrayToString:()=>Zl});var Cv=Object.prototype.toString,Nv="[object Uint8Array]",Fv="[object ArrayBuffer]";function Jl(t,e,r){return t?t.constructor===e?!0:Cv.call(t)===r:!1}function Ku(t){return Jl(t,Uint8Array,Nv)}function $v(t){return Jl(t,ArrayBuffer,Fv)}function Rv(t){return Ku(t)||$v(t)}function Rt(t){if(!Ku(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}function Xl(t){if(!Rv(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}function Wv(t){if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new TypeError(`Unsupported value, got \`${typeof t}\`.`)}function Uv(t,e){if(t.length===0)return new Uint8Array(0);e??=t.reduce((n,i)=>n+i.length,0);let r=new Uint8Array(e),o=0;for(let n of t)Rt(n),r.set(n,o),o+=n.length;return r}function Lv(t,e){if(Rt(t),Rt(e),t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function Bv(t,e){Rt(t),Rt(e);let r=Math.min(t.length,e.length);for(let o=0;o<r;o++){let n=t[o]-e[o];if(n!==0)return Math.sign(n)}return Math.sign(t.length-e.length)}var Kl={utf8:new globalThis.TextDecoder("utf8")};function Zl(t,e="utf8"){return Xl(t),Kl[e]??=new globalThis.TextDecoder(e),Kl[e].decode(t)}function tn(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}var Yv=new globalThis.TextEncoder;function ep(t){return tn(t),Yv.encode(t)}function qv(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Hv(t){return t.replaceAll("-","+").replaceAll("_","/")}var jv=65535;function tp(t,{urlSafe:e=!1}={}){Rt(t);let r;if(t.length<jv)r=globalThis.btoa(String.fromCodePoint.apply(this,t));else{r="";for(let o of t)r+=String.fromCodePoint(o);r=globalThis.btoa(r)}return e?qv(r):r}function rp(t){return tn(t),Uint8Array.from(globalThis.atob(Hv(t)),e=>e.codePointAt(0))}function zv(t,{urlSafe:e=!1}={}){return tn(t),tp(ep(t),{urlSafe:e})}function Vv(t){return tn(t),Zl(rp(t))}var Gv=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Kv(t){Rt(t);let e="";for(let r=0;r<t.length;r++)e+=Gv[t[r]];return e}var Ql={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,b:11,c:12,d:13,e:14,f:15,A:10,B:11,C:12,D:13,E:14,F:15};function Qv(t){if(tn(t),t.length%2!==0)throw new Error("Invalid Hex string length.");let e=t.length/2,r=new Uint8Array(e);for(let o=0;o<e;o++){let n=Ql[t[o*2]],i=Ql[t[o*2+1]];if(n===void 0||i===void 0)throw new Error(`Invalid Hex character encountered at position ${o*2}`);r[o]=n<<4|i}return r}function Jv(t){let{byteLength:e}=t;if(e===6)return t.getUint16(0)*2**32+t.getUint32(2);if(e===5)return t.getUint8(0)*2**32+t.getUint32(1);if(e===4)return t.getUint32(0);if(e===3)return t.getUint8(0)*2**16+t.getUint16(1);if(e===2)return t.getUint16(0);if(e===1)return t.getUint8(0)}function op(t,e){let r=t.length,o=e.length;if(o===0||o>r)return-1;let n=r-o;for(let i=0;i<=n;i++){let s=!0;for(let a=0;a<o;a++)if(t[i+a]!==e[a]){s=!1;break}if(s)return i}return-1}function Xv(t,e){return op(t,e)!==-1}var ew=hr;function tw(t){return hr.uint8ArrayToBase64(t)}function rw(t){return hr.base64ToUint8Array(t)}var ow=t=>hr.isUint8Array(t);function nw(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}function iw(t){let e=new Uint8Array(t.length);return e.set(t),e}var ps={};re(ps,{Guard:()=>on,GuardError:()=>nn,GuardSet:()=>sn,passGuardsOrReject:()=>sw});var on=class{constructor(e,r){this.guardFunction=e,this.options=r}async exec(e){return await this.guardFunction(e)}async getFailedHint(e){return await this.exec(e)?null:this.options.failedHint}};var nn=class extends Error{constructor(e){super(e),this.name="GuardError"}};var sn=class extends on{constructor(e=[]){super(async r=>this.allGuardsPass(r)),this.guards=e}async execAllWithData(e,r={mode:"parallel",stopOnFail:!1}){let o=[];for(let i of this.guards){let s=i.exec(e);if(r.mode==="serial"&&await s,o.push(s),r.stopOnFail&&!await s)return await Promise.all(o)}return await Promise.all(o)}async allGuardsPass(e,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(e,r)).every(n=>n)}async anyGuardsPass(e){return(await this.execAllWithData(e,{mode:"parallel",stopOnFail:!1})).some(o=>o)}getFailedHint(e){for(let r of this.guards){let o=r.getFailedHint(e);if(o)return o}}};var sw=async(t,e)=>{let r=new sn(e);if(!await r.allGuardsPass(t)){let n=await r.getFailedHint(t);throw new nn(`Guards failed:
|
|
9
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function Qt(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var tt=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,o,n,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=ht(s),u=a.next();!u.done;u=a.next()){var c=u.value;c.remove(this)}}catch(w){e={error:w}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else s.remove(this);var f=this.initialTeardown;if(W(f))try{f()}catch(w){i=w instanceof zn?w.errors:[w]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var p=ht(m),d=p.next();!d.done;d=p.next()){var y=d.value;try{Wf(y)}catch(w){i=i??[],w instanceof zn?i=et(et([],Be(i)),Be(w.errors)):i.push(w)}}}catch(w){o={error:w}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(o)throw o.error}}}if(i)throw new zn(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Wf(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&Qt(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&Qt(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}();var ma=tt.EMPTY;function Vn(t){return t instanceof tt||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function Wf(t){W(t)?t():t.unsubscribe()}var rt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ar={setTimeout:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Ar.delegate;return n?.setTimeout?n.setTimeout.apply(n,et([t,e],Be(r))):setTimeout.apply(void 0,et([t,e],Be(r)))},clearTimeout:function(t){var e=Ar.delegate;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Gn(t){Ar.setTimeout(function(){var e=rt.onUnhandledError;if(e)e(t);else throw t})}function Jt(){}var Uf=function(){return da("C",void 0,void 0)}();function Lf(t){return da("E",void 0,t)}function Bf(t){return da("N",t,void 0)}function da(t,e,r){return{kind:t,value:e,error:r}}var Xt=null;function Er(t){if(rt.useDeprecatedSynchronousErrorHandling){var e=!Xt;if(e&&(Xt={errorThrown:!1,error:null}),t(),e){var r=Xt,o=r.errorThrown,n=r.error;if(Xt=null,o)throw n}}else t()}function Yf(t){rt.useDeprecatedSynchronousErrorHandling&&Xt&&(Xt.errorThrown=!0,Xt.error=t)}var Io=function(t){_e(e,t);function e(r){var o=t.call(this)||this;return o.isStopped=!1,r?(o.destination=r,Vn(r)&&r.add(o)):o.destination=qy,o}return e.create=function(r,o,n){return new Qn(r,o,n)},e.prototype.next=function(r){this.isStopped?ya(Bf(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?ya(Lf(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?ya(Uf,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(tt);var Ly=Function.prototype.bind;function ha(t,e){return Ly.call(t,e)}var By=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(o){Kn(o)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(o){Kn(o)}else Kn(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Kn(r)}},t}(),Qn=function(t){_e(e,t);function e(r,o,n){var i=t.call(this)||this,s;if(W(r)||!r)s={next:r??void 0,error:o??void 0,complete:n??void 0};else{var a;i&&rt.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&ha(r.next,a),error:r.error&&ha(r.error,a),complete:r.complete&&ha(r.complete,a)}):s=r}return i.destination=new By(s),i}return e}(Io);function Kn(t){rt.useDeprecatedSynchronousErrorHandling?Yf(t):Gn(t)}function Yy(t){throw t}function ya(t,e){var r=rt.onStoppedNotification;r&&Ar.setTimeout(function(){return r(t,e)})}var qy={closed:!0,next:Jt,error:Yy,complete:Jt};var kr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Jn(t){return t}function qf(t){return t.length===0?Jn:t.length===1?t[0]:function(r){return t.reduce(function(o,n){return n(o)},r)}}var oe=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,o){var n=this,i=jy(e)?e:new Qn(e,r,o);return Er(function(){var s=n,a=s.operator,u=s.source;i.add(a?a.call(i,u):u?n._subscribe(i):n._trySubscribe(i))}),i},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var o=this;return r=Hf(r),new r(function(n,i){var s=new Qn({next:function(a){try{e(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:n});o.subscribe(s)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[kr]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return qf(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Hf(e),new e(function(o,n){var i;r.subscribe(function(s){return i=s},function(s){return n(s)},function(){return o(i)})})},t.create=function(e){return new t(e)},t}();function Hf(t){var e;return(e=t??rt.Promise)!==null&&e!==void 0?e:Promise}function Hy(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}function jy(t){return t&&t instanceof Io||Hy(t)&&Vn(t)}function zy(t){return W(t?.lift)}function fe(t){return function(e){if(zy(e))return e.lift(function(r){try{return t(r,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function le(t,e,r,o,n){return new Vy(t,e,r,o,n)}var Vy=function(t){_e(e,t);function e(r,o,n,i,s,a){var u=t.call(this,r)||this;return u.onFinalize=s,u.shouldUnsubscribe=a,u._next=o?function(c){try{o(c)}catch(f){r.error(f)}}:t.prototype._next,u._error=i?function(c){try{i(c)}catch(f){r.error(f)}finally{this.unsubscribe()}}:t.prototype._error,u._complete=n?function(){try{n()}catch(c){r.error(c)}finally{this.unsubscribe()}}:t.prototype._complete,u}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;t.prototype.unsubscribe.call(this),!o&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(Io);var jf=jn(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var yt=function(t){_e(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var o=new zf(this,this);return o.operator=r,o},e.prototype._throwIfClosed=function(){if(this.closed)throw new jf},e.prototype.next=function(r){var o=this;Er(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var s=ht(o.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}})},e.prototype.error=function(r){var o=this;Er(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=r;for(var n=o.observers;n.length;)n.shift().error(r)}})},e.prototype.complete=function(){var r=this;Er(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var o=r.observers;o.length;)o.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var o=this,n=this,i=n.hasError,s=n.isStopped,a=n.observers;return i||s?ma:(this.currentObservers=null,a.push(r),new tt(function(){o.currentObservers=null,Qt(a,r)}))},e.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,s=o.isStopped;n?r.error(i):s&&r.complete()},e.prototype.asObservable=function(){var r=new oe;return r.source=this,r},e.create=function(r,o){return new zf(r,o)},e}(oe);var zf=function(t){_e(e,t);function e(r,o){var n=t.call(this)||this;return n.destination=r,n.source=o,n}return e.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},e.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},e.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},e.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:ma},e}(yt);var Ao={now:function(){return(Ao.delegate||Date).now()},delegate:void 0};var xa=function(t){_e(e,t);function e(r,o,n){r===void 0&&(r=1/0),o===void 0&&(o=1/0),n===void 0&&(n=Ao);var i=t.call(this)||this;return i._bufferSize=r,i._windowTime=o,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=o===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,o),i}return e.prototype.next=function(r){var o=this,n=o.isStopped,i=o._buffer,s=o._infiniteTimeWindow,a=o._timestampProvider,u=o._windowTime;n||(i.push(r),!s&&i.push(a.now()+u)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var o=this._innerSubscribe(r),n=this,i=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),u=0;u<a.length&&!r.closed;u+=i?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),o},e.prototype._trimBuffer=function(){var r=this,o=r._bufferSize,n=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*o;if(o<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var u=n.now(),c=0,f=1;f<i.length&&i[f]<=u;f+=2)c=f;c&&i.splice(0,c+1)}},e}(yt);var Vf=function(t){_e(e,t);function e(r,o){return t.call(this)||this}return e.prototype.schedule=function(r,o){return o===void 0&&(o=0),this},e}(tt);var Eo={setInterval:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Eo.delegate;return n?.setInterval?n.setInterval.apply(n,et([t,e],Be(r))):setInterval.apply(void 0,et([t,e],Be(r)))},clearInterval:function(t){var e=Eo.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Gf=function(t){_e(e,t);function e(r,o){var n=t.call(this,r,o)||this;return n.scheduler=r,n.work=o,n.pending=!1,n}return e.prototype.schedule=function(r,o){var n;if(o===void 0&&(o=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,o)),this.pending=!0,this.delay=o,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(s,this.id,o),this},e.prototype.requestAsyncId=function(r,o,n){return n===void 0&&(n=0),Eo.setInterval(r.flush.bind(r,this),n)},e.prototype.recycleAsyncId=function(r,o,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return o;o!=null&&Eo.clearInterval(o)},e.prototype.execute=function(r,o){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(r,o);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,o){var n=!1,i;try{this.work(r)}catch(s){n=!0,i=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i},e.prototype.unsubscribe=function(){if(!this.closed){var r=this,o=r.id,n=r.scheduler,i=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Qt(i,this),o!=null&&(this.id=this.recycleAsyncId(n,o,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(Vf);var ga=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,o){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(o,r)},t.now=Ao.now,t}();var Kf=function(t){_e(e,t);function e(r,o){o===void 0&&(o=ga.now);var n=t.call(this,r,o)||this;return n.actions=[],n._active=!1,n}return e.prototype.flush=function(r){var o=this.actions;if(this._active){o.push(r);return}var n;this._active=!0;do if(n=r.execute(r.state,r.delay))break;while(r=o.shift());if(this._active=!1,n){for(;r=o.shift();)r.unsubscribe();throw n}},e}(ga);var ko=new Kf(Gf),Qf=ko;function Xn(t){return t&&W(t.schedule)}function Gy(t){return t[t.length-1]}function Pr(t){return Xn(Gy(t))?t.pop():void 0}var Cr=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function Zn(t){return W(t?.then)}function ei(t){return W(t[kr])}function ti(t){return Symbol.asyncIterator&&W(t?.[Symbol.asyncIterator])}function ri(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ky(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oi=Ky();function ni(t){return W(t?.[oi])}function ii(t){return $f(this,arguments,function(){var r,o,n,i;return Hn(this,function(s){switch(s.label){case 0:r=t.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Kt(r.read())];case 3:return o=s.sent(),n=o.value,i=o.done,i?[4,Kt(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Kt(n)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function si(t){return W(t?.getReader)}function ge(t){if(t instanceof oe)return t;if(t!=null){if(ei(t))return Qy(t);if(Cr(t))return Jy(t);if(Zn(t))return Xy(t);if(ti(t))return Jf(t);if(ni(t))return Zy(t);if(si(t))return ex(t)}throw ri(t)}function Qy(t){return new oe(function(e){var r=t[kr]();if(W(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Jy(t){return new oe(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function Xy(t){return new oe(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,Gn)})}function Zy(t){return new oe(function(e){var r,o;try{for(var n=ht(t),i=n.next();!i.done;i=n.next()){var s=i.value;if(e.next(s),e.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}e.complete()})}function Jf(t){return new oe(function(e){tx(t,e).catch(function(r){return e.error(r)})})}function ex(t){return Jf(ii(t))}function tx(t,e){var r,o,n,i;return Ff(this,void 0,void 0,function(){var s,a;return Hn(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=Rf(t),u.label=1;case 1:return[4,r.next()];case 2:if(o=u.sent(),!!o.done)return[3,4];if(s=o.value,e.next(s),e.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=u.sent(),n={error:a},[3,11];case 6:return u.trys.push([6,,9,10]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function je(t,e,r,o,n){o===void 0&&(o=0),n===void 0&&(n=!1);var i=e.schedule(function(){r(),n?t.add(this.schedule(null,o)):this.unsubscribe()},o);if(t.add(i),!n)return i}function ai(t,e){return e===void 0&&(e=0),fe(function(r,o){r.subscribe(le(o,function(n){return je(o,t,function(){return o.next(n)},e)},function(){return je(o,t,function(){return o.complete()},e)},function(n){return je(o,t,function(){return o.error(n)},e)}))})}function ui(t,e){return e===void 0&&(e=0),fe(function(r,o){o.add(t.schedule(function(){return r.subscribe(o)},e))})}function Xf(t,e){return ge(t).pipe(ui(e),ai(e))}function Zf(t,e){return ge(t).pipe(ui(e),ai(e))}function el(t,e){return new oe(function(r){var o=0;return e.schedule(function(){o===t.length?r.complete():(r.next(t[o++]),r.closed||this.schedule())})})}function tl(t,e){return new oe(function(r){var o;return je(r,e,function(){o=t[oi](),je(r,e,function(){var n,i,s;try{n=o.next(),i=n.value,s=n.done}catch(a){r.error(a);return}s?r.complete():r.next(i)},0,!0)}),function(){return W(o?.return)&&o.return()}})}function ci(t,e){if(!t)throw new Error("Iterable cannot be null");return new oe(function(r){je(r,e,function(){var o=t[Symbol.asyncIterator]();je(r,e,function(){o.next().then(function(n){n.done?r.complete():r.next(n.value)})},0,!0)})})}function rl(t,e){return ci(ii(t),e)}function ol(t,e){if(t!=null){if(ei(t))return Xf(t,e);if(Cr(t))return el(t,e);if(Zn(t))return Zf(t,e);if(ti(t))return ci(t,e);if(ni(t))return tl(t,e);if(si(t))return rl(t,e)}throw ri(t)}function Zt(t,e){return e?ol(t,e):ge(t)}function ba(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Pr(t);return Zt(t,r)}function nl(t){return t instanceof Date&&!isNaN(t)}function er(t,e){return fe(function(r,o){var n=0;r.subscribe(le(o,function(i){o.next(t.call(e,i,n++))}))})}var rx=Array.isArray;function ox(t,e){return rx(e)?t.apply(void 0,et([],Be(e))):t(e)}function il(t){return er(function(e){return ox(t,e)})}function sl(t,e,r,o,n,i,s,a){var u=[],c=0,f=0,m=!1,p=function(){m&&!u.length&&!c&&e.complete()},d=function(w){return c<o?y(w):u.push(w)},y=function(w){i&&e.next(w),c++;var g=!1;ge(r(w,f++)).subscribe(le(e,function(I){n?.(I),i?d(I):e.next(I)},function(){g=!0},void 0,function(){if(g)try{c--;for(var I=function(){var D=u.shift();s?je(e,s,function(){return y(D)}):y(D)};u.length&&c<o;)I();p()}catch(D){e.error(D)}}))};return t.subscribe(le(e,d,function(){m=!0,p()})),function(){a?.()}}function Po(t,e,r){return r===void 0&&(r=1/0),W(e)?Po(function(o,n){return er(function(i,s){return e(o,i,n,s)})(ge(t(o,n)))},r):(typeof e=="number"&&(r=e),fe(function(o,n){return sl(o,n,t,r)}))}function al(t){return t===void 0&&(t=1/0),Po(Jn,t)}function ul(){return al(1)}function va(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ul()(Zt(t,Pr(t)))}var nx=["addListener","removeListener"],ix=["addEventListener","removeEventListener"],sx=["on","off"];function tr(t,e,r,o){if(W(r)&&(o=r,r=void 0),o)return tr(t,e,r).pipe(il(o));var n=Be(cx(t)?ix.map(function(a){return function(u){return t[a](e,u,r)}}):ax(t)?nx.map(cl(t,e)):ux(t)?sx.map(cl(t,e)):[],2),i=n[0],s=n[1];if(!i&&Cr(t))return Po(function(a){return tr(a,e,r)})(ge(t));if(!i)throw new TypeError("Invalid event target");return new oe(function(a){var u=function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return a.next(1<c.length?c:c[0])};return i(u),function(){return s(u)}})}function cl(t,e){return function(r){return function(o){return t[r](e,o)}}}function ax(t){return W(t.addListener)&&W(t.removeListener)}function ux(t){return W(t.on)&&W(t.off)}function cx(t){return W(t.addEventListener)&&W(t.removeEventListener)}function fl(t,e,r){t===void 0&&(t=0),r===void 0&&(r=Qf);var o=-1;return e!=null&&(Xn(e)?r=e:o=e),new oe(function(n){var i=nl(t)?+t-r.now():t;i<0&&(i=0);var s=0;return r.schedule(function(){n.closed||(n.next(s++),0<=o?this.schedule(void 0,o):n.complete())},i)})}function wa(t,e){return fe(function(r,o){var n=0;r.subscribe(le(o,function(i){return t.call(e,i,n++)&&o.next(i)}))})}function Sa(t){return fe(function(e,r){var o=!1,n=null,i=null,s=function(){if(i?.unsubscribe(),i=null,o){o=!1;var a=n;n=null,r.next(a)}};e.subscribe(le(r,function(a){i?.unsubscribe(),o=!0,n=a,i=le(r,s,Jt),ge(t(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){n=i=null}))})}function Da(t,e){return e===void 0&&(e=ko),fe(function(r,o){var n=null,i=null,s=null,a=function(){if(n){n.unsubscribe(),n=null;var c=i;i=null,o.next(c)}};function u(){var c=s+t,f=e.now();if(f<c){n=this.schedule(void 0,c-f),o.add(n);return}a()}r.subscribe(le(o,function(c){i=c,s=e.now(),n||(n=e.schedule(u,t),o.add(n))},function(){a(),o.complete()},void 0,function(){i=n=null}))})}function Ta(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Pr(t);return fe(function(o,n){(r?va(t,o,r):va(t,o)).subscribe(n)})}function Oa(t){return fe(function(e,r){ge(t).subscribe(le(r,function(){return r.complete()},Jt)),!r.closed&&e.subscribe(r)})}function ll(t,e){return fe(function(r,o){var n=e??{},i=n.leading,s=i===void 0?!0:i,a=n.trailing,u=a===void 0?!1:a,c=!1,f=null,m=null,p=!1,d=function(){m?.unsubscribe(),m=null,u&&(g(),p&&o.complete())},y=function(){m=null,p&&o.complete()},w=function(I){return m=ge(t(I)).subscribe(le(o,d,y))},g=function(){if(c){c=!1;var I=f;f=null,o.next(I),!p&&w(I)}};r.subscribe(le(o,function(I){c=!0,f=I,!(m&&!m.closed)&&(s?g():w(I))},function(){p=!0,!(u&&c&&m&&!m.closed)&&o.complete()}))})}function Ma(t,e,r){e===void 0&&(e=ko);var o=fl(t,e);return ll(function(){return o},r)}var fx={debounce:Sa,debounceTime:Da,map:er,startWith:Ta,takeUntil:Oa,throttleTime:Ma,filter:wa};var _a=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,r){let o=this.observableEventEmitterBundleArray.find(n=>n.eventRef===e&&n.event===r);if(o)return o.subject;{let n=tr(e,r),i=new yt;n.subscribe(i);let s={subject:i,eventRef:e,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(e,r){let o=this.observableEventTargetBundleArray.find(n=>n.eventRef===e&&n.event===r);if(o)return o.subject;{let i={subject:new yt,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var Ia=class{constructor(){this.observableFunctions={next:e=>{},complete:e=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new oe(e=>{this.observableFunctions.next=(...r)=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=K.defer(),this.completed=this.completedDeffered.promise}setObservable(e){this.observable=e}push(e){this.buffered?this.payloadBuffer.push(e):this.internalPush(e)}pushMany(e){for(let r of e)this.push(r)}setGenerator(e){this.generator=e}makeBuffered(){this.buffered=!0}subscribe(...e){return this.observable.subscribe(...e)}request(e){if(e!==0)for(let r=0;r!==e;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let o=this.generator.next();this.internalPush(o.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}};var Tt={};re(Tt,{CronJob:()=>Xo,CronManager:()=>Nu,ExtendedDate:()=>Fu,HrtMeasurement:()=>$u,Interval:()=>Ru,TimeStamp:()=>Qr,Timer:()=>Wu,getMilliSecondsAsHumanReadableAgoTime:()=>Ev,getMilliSecondsAsHumanReadableString:()=>Cu,getMilliSecondsFromUnits:()=>Pu,units:()=>Nt});var fi={};re(fi,{Cron:()=>dx,CronDate:()=>Ye,CronPattern:()=>Ea,scheduledJobs:()=>Fo});function Ie(t,e,r,o,n,i,s,a){return Ie.fromTZ(Ie.tp(t,e,r,o,n,i,s),a)}Ie.fromTZISO=(t,e,r)=>Ie.fromTZ(lx(t,e),r);Ie.fromTZ=function(t,e){let r=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),o=Aa(t.tz,r),n=new Date(r.getTime()-o),i=Aa(t.tz,n);if(i-o===0)return n;{let s=new Date(r.getTime()-i),a=Aa(t.tz,s);if(a-i===0||!e&&a-i>0)return s;if(e)throw new Error("Invalid date passed to fromTZ()");return n}};Ie.toTZ=function(t,e){let r=t.toLocaleString("en-US",{timeZone:e}).replace(/[\u202f]/," "),o=new Date(r);return{y:o.getFullYear(),m:o.getMonth()+1,d:o.getDate(),h:o.getHours(),i:o.getMinutes(),s:o.getSeconds(),tz:e}};Ie.tp=(t,e,r,o,n,i,s)=>({y:t,m:e,d:r,h:o,i:n,s:i,tz:s});function Aa(t,e=new Date){let r=e.toLocaleString("en-US",{timeZone:t,timeZoneName:"shortOffset"}).split(" ").slice(-1)[0],o=e.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${o} GMT`)-Date.parse(`${o} ${r}`)}function lx(t,e){let r=new Date(Date.parse(t));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let o=t.substring(9);return t.includes("Z")||o.includes("-")||o.includes("+")?Ie.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Ie.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}Ie.minitz=Ie;var ka=32,$o=31|ka,dl=[1,2,4,8,16],Ea=class{pattern;timezone;second;minute;hour;day;month;dayOfWeek;lastDayOfMonth;starDOM;starDOW;constructor(t,e){this.pattern=t,this.timezone=e,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}parse(){if(!(typeof this.pattern=="string"||this.pattern instanceof String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let t=this.pattern.replace(/\s+/g," ").split(" ");if(t.length<5||t.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five or six space separated parts are required.");if(t.length===5&&t.unshift("0"),t[3].indexOf("L")>=0&&(t[3]=t[3].replace("L",""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.replaceAlphaDays(t[5])),t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let e=new Ye(new Date,this.timezone).getDate(!0);t[0]=t[0].replace("?",e.getSeconds().toString()),t[1]=t[1].replace("?",e.getMinutes().toString()),t[2]=t[2].replace("?",e.getHours().toString()),this.starDOM||(t[3]=t[3].replace("?",e.getDate().toString())),t[4]=t[4].replace("?",(e.getMonth()+1).toString()),this.starDOW||(t[5]=t[5].replace("?",e.getDay().toString()))}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0,1),this.partToArray("minute",t[1],0,1),this.partToArray("hour",t[2],0,1),this.partToArray("day",t[3],-1,1),this.partToArray("month",t[4],-1,1),this.partToArray("dayOfWeek",t[5],0,$o),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(t,e,r,o){let n=this[t],i=t==="day"&&this.lastDayOfMonth;if(e===""&&!i)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return n.fill(o);let s=e.split(",");if(s.length>1)for(let a=0;a<s.length;a++)this.partToArray(t,s[a],r,o);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,r,o):e.indexOf("-")!==-1?this.handleRange(e,t,r,o):e.indexOf("/")!==-1?this.handleStepping(e,t,r,o):e!==""&&this.handleNumber(e,t,r,o)}throwAtIllegalCharacters(t){for(let e=0;e<t.length;e++)if((e===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")}handleNumber(t,e,r,o){let n=this.extractNth(t,e),i=parseInt(n[0],10)+r;if(isNaN(i))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,i,n[1]||o)}setPart(t,e,r){if(!Object.prototype.hasOwnProperty.call(this,t))throw new TypeError("CronPattern: Invalid part specified: "+t);if(t==="dayOfWeek"){if(e===7&&(e=0),e<0||e>6)throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+e);this.setNthWeekdayOfMonth(e,r);return}if(t==="second"||t==="minute"){if(e<0||e>=60)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="hour"){if(e<0||e>=24)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="day"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"&&(e<0||e>=12))throw new RangeError("CronPattern: Invalid value for "+t+": "+e);this[t][e]=r}handleRangeWithStepping(t,e,r,o){let n=this.extractNth(t,e),i=n[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(i===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,s,a,u]=i,c=parseInt(s,10)+r,f=parseInt(a,10)+r,m=parseInt(u,10);if(isNaN(c))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(f))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(m))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(m===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(m>this[e].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[e].length+")");if(c>f)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let p=c;p<=f;p+=m)this.setPart(e,p,n[1]||o)}extractNth(t,e){let r=t,o;if(r.includes("#")){if(e!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");o=r.split("#")[1],r=r.split("#")[0]}return[r,o]}handleRange(t,e,r,o){let n=this.extractNth(t,e),i=n[0].split("-");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let s=parseInt(i[0],10)+r,a=parseInt(i[1],10)+r;if(isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let u=s;u<=a;u++)this.setPart(e,u,n[1]||o)}handleStepping(t,e,r,o){let n=this.extractNth(t,e),i=n[0].split("/");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");i[0]===""&&(i[0]="*");let s=0;i[0]!=="*"&&(s=parseInt(i[0],10)+r);let a=parseInt(i[1],10);if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(a===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(a>this[e].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[e].length+")");for(let u=s;u<this[e].length;u+=a)this.setPart(e,u,n[1]||o)}replaceAlphaDays(t){return t.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")}replaceAlphaMonths(t){return t.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")}handleNicknames(t){let e=t.trim().toLowerCase();return e==="@yearly"||e==="@annually"?"0 0 1 1 *":e==="@monthly"?"0 0 1 * *":e==="@weekly"?"0 0 * * 0":e==="@daily"?"0 0 * * *":e==="@hourly"?"0 * * * *":t}setNthWeekdayOfMonth(t,e){if(typeof e!="number"&&e==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|ka;else if(e===$o)this.dayOfWeek[t]=$o;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|dl[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},pl=[31,28,31,30,31,30,31,31,30,31,30,31],xt=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Ye=class hl{tz;ms;second;minute;hour;day;month;year;constructor(e,r){if(this.tz=r,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e===void 0)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof hl)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}isNthWeekdayOfMonth(e,r,o,n){let i=new Date(Date.UTC(e,r,o)).getUTCDay(),s=0;for(let a=1;a<=o;a++)new Date(Date.UTC(e,r,a)).getUTCDay()===i&&s++;if(n&$o&&dl[s-1]&n)return!0;if(n&ka){let a=new Date(Date.UTC(e,r+1,0)).getUTCDate();for(let u=o+1;u<=a;u++)if(new Date(Date.UTC(e,r,u)).getUTCDay()===i)return!1;return!0}return!1}fromDate(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else{let r=Ie.toTZ(e,this.tz);this.ms=e.getMilliseconds(),this.second=r.s,this.minute=r.i,this.hour=r.h,this.day=r.d,this.month=r.m-1,this.year=r.y}else this.ms=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()}fromCronDate(e){this.tz=e.tz,this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=e.second,this.ms=e.ms}apply(){if(this.month>11||this.day>pl[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1}fromString(e){if(typeof this.tz=="number"){let r=Ie.fromTZISO(e);this.ms=r.getUTCMilliseconds(),this.second=r.getUTCSeconds(),this.minute=r.getUTCMinutes(),this.hour=r.getUTCHours(),this.day=r.getUTCDate(),this.month=r.getUTCMonth(),this.year=r.getUTCFullYear(),this.apply()}else return this.fromDate(Ie.fromTZISO(e,this.tz))}findNext(e,r,o,n){let i=this[r],s;o.lastDayOfMonth&&(this.month!==1?s=pl[this.month]:s=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let a=!o.starDOW&&r=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let u=this[r]+n;u<o[r].length;u++){let c=o[r][u];if(r==="day"&&o.lastDayOfMonth&&u-n==s&&(c=1),r==="day"&&!o.starDOW){let f=o.dayOfWeek[(a+(u-n-1))%7];if(f&&f&$o)f=this.isNthWeekdayOfMonth(this.year,this.month,u-n,f)?1:0;else if(f)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${f}`);e.legacyMode&&!o.starDOM?c=c||f:c=c&&f}if(c)return this[r]=u-n,i!==this[r]?2:1}return 3}recurse(e,r,o){let n=this.findNext(r,xt[o][0],e,xt[o][2]);if(n>1){let i=o+1;for(;i<xt.length;)this[xt[i][0]]=-xt[i][2],i++;if(n===3)return this[xt[o][1]]++,this[xt[o][0]]=-xt[o][2],this.apply(),this.recurse(e,r,0);if(this.apply())return this.recurse(e,r,o-1)}return o+=1,o>=xt.length?this:this.year>=3e3?null:this.recurse(e,r,o)}increment(e,r,o){return this.second+=r.interval!==void 0&&r.interval>1&&o?r.interval:1,this.ms=0,this.apply(),this.recurse(e,r,0)}getDate(e){return e||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):Ie.fromTZ(Ie.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function px(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode=t.legacyMode===void 0?!0:t.legacyMode,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval.toString(),10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset.toString(),10),t.unref=t.unref===void 0?!1:t.unref,t.startAt&&(t.startAt=new Ye(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new Ye(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return t}function No(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function mx(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var ml=30*1e3,Fo=[],dx=class{name;options;_states;fn;constructor(t,e,r){let o,n;if(No(e))n=e;else if(typeof e=="object")o=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(No(r))n=r;else if(typeof r=="object")o=r;else if(r!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=o?.name,this.options=px(o),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:o?o.maxRuns:void 0,paused:o?o.paused:!1,pattern:new Ea("* * * * *")},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new Ye(t,this.options.timezone||this.options.utcOffset):this._states.pattern=new Ea(t,this.options.timezone),this.name){if(Fo.find(i=>i.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");Fo.push(this)}return n!==void 0&&No(n)&&(this.fn=n,this.schedule()),this}nextRun(t){let e=this._next(t);return e?e.getDate(!1):null}nextRuns(t,e){this._states.maxRuns!==void 0&&t>this._states.maxRuns&&(t=this._states.maxRuns);let r=[],o=e||this._states.currentRun||void 0;for(;t--&&(o=this.nextRun(o));)r.push(o);return r}getPattern(){return this._states.pattern?this._states.pattern.pattern:void 0}isRunning(){let t=this.nextRun(this._states.currentRun),e=!this._states.paused,r=this.fn!==void 0,o=!this._states.kill;return e&&r&&o&&t!==null}isStopped(){return this._states.kill}isBusy(){return this._states.blocking}currentRun(){return this._states.currentRun?this._states.currentRun.getDate():null}previousRun(){return this._states.previousRun?this._states.previousRun.getDate():null}msToNext(t){t=t||new Date;let e=this._next(t);return e?t instanceof Ye||t instanceof Date?e.getTime()-t.getTime():e.getTime()-new Ye(t).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=Fo.indexOf(this);t>=0&&Fo.splice(t,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(t){if(t&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");t&&(this.fn=t);let e=this.msToNext(),r=this.nextRun(this._states.currentRun);return e==null||isNaN(e)||r===null?this:(e>ml&&(e=ml),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&mx(this._states.currentTimeout),this)}async _trigger(t){if(this._states.blocking=!0,this._states.currentRun=new Ye(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(e){No(this.options.catch)&&this.options.catch(e,this)}else this.fn!==void 0&&await this.fn(this,this.options.context);this._states.previousRun=new Ye(t,this.options.timezone||this.options.utcOffset),this._states.blocking=!1}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(t){let e=new Date,r=!this._states.paused&&e.getTime()>=t.getTime(),o=this._states.blocking&&this.options.protect;r&&!o?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):r&&o&&No(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(t){let e=!!(t||this._states.currentRun),r=!1;!t&&this.options.startAt&&this.options.interval&&([t,e]=this._calculatePreviousRun(t,e),r=!t),t=new Ye(t,this.options.timezone||this.options.utcOffset),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let o=this._states.once||new Ye(t,this.options.timezone||this.options.utcOffset);return!r&&o!==this._states.once&&(o=o.increment(this._states.pattern,this.options,e)),this._states.once&&this._states.once.getTime()<=t.getTime()||o===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&o.getTime()>=this.options.stopAt.getTime()?null:o}_calculatePreviousRun(t,e){let r=new Ye(void 0,this.options.timezone||this.options.utcOffset),o=t;if(this.options.startAt.getTime()<=r.getTime()){o=this.options.startAt;let n=o.getTime()+this.options.interval*1e3;for(;n<=r.getTime();)o=new Ye(o,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,!0),n=o.getTime()+this.options.interval*1e3;e=!0}return o===null&&(o=void 0),[o,e]}};var cs={};re(cs,{add:()=>or,addBusinessDays:()=>Wa,addDays:()=>be,addHours:()=>Ua,addISOWeekYears:()=>Ba,addMilliseconds:()=>nr,addMinutes:()=>Ro,addMonths:()=>gt,addQuarters:()=>Wo,addSeconds:()=>Ya,addWeeks:()=>ir,addYears:()=>qa,areIntervalsOverlapping:()=>yx,clamp:()=>xx,closestIndexTo:()=>za,closestTo:()=>gx,compareAsc:()=>Ne,compareDesc:()=>bx,constructFrom:()=>h,constructNow:()=>B,daysToWeeks:()=>wx,differenceInBusinessDays:()=>Sx,differenceInCalendarDays:()=>De,differenceInCalendarISOWeekYears:()=>Ga,differenceInCalendarISOWeeks:()=>Dx,differenceInCalendarMonths:()=>Rr,differenceInCalendarQuarters:()=>Uo,differenceInCalendarWeeks:()=>Wr,differenceInCalendarYears:()=>sr,differenceInDays:()=>Lo,differenceInHours:()=>Ur,differenceInISOWeekYears:()=>Tx,differenceInMilliseconds:()=>Bo,differenceInMinutes:()=>Lr,differenceInMonths:()=>ar,differenceInQuarters:()=>Ox,differenceInSeconds:()=>St,differenceInWeeks:()=>Mx,differenceInYears:()=>Ja,eachDayOfInterval:()=>Xa,eachHourOfInterval:()=>_x,eachMinuteOfInterval:()=>Ix,eachMonthOfInterval:()=>Ax,eachQuarterOfInterval:()=>Ex,eachWeekOfInterval:()=>kx,eachWeekendOfInterval:()=>Ho,eachWeekendOfMonth:()=>Px,eachWeekendOfYear:()=>Cx,eachYearOfInterval:()=>Nx,endOfDay:()=>Yo,endOfDecade:()=>Fx,endOfHour:()=>$x,endOfISOWeek:()=>Rx,endOfISOWeekYear:()=>Wx,endOfMinute:()=>Ux,endOfMonth:()=>qo,endOfQuarter:()=>Lx,endOfSecond:()=>Bx,endOfToday:()=>Yx,endOfTomorrow:()=>qx,endOfWeek:()=>eu,endOfYear:()=>Za,endOfYesterday:()=>Hx,format:()=>ru,formatDate:()=>ru,formatDistance:()=>ou,formatDistanceStrict:()=>nu,formatDistanceToNow:()=>Ig,formatDistanceToNowStrict:()=>Ag,formatDuration:()=>kg,formatISO:()=>Pg,formatISO9075:()=>Cg,formatISODuration:()=>Ng,formatRFC3339:()=>Fg,formatRFC7231:()=>Wg,formatRelative:()=>Ug,formatters:()=>bi,fromUnixTime:()=>Lg,getDate:()=>iu,getDay:()=>lr,getDayOfYear:()=>tu,getDaysInMonth:()=>su,getDaysInYear:()=>Bg,getDecade:()=>Yg,getDefaultOptions:()=>uu,getHours:()=>qg,getISODay:()=>cu,getISOWeek:()=>zo,getISOWeekYear:()=>We,getISOWeeksInYear:()=>Hg,getMilliseconds:()=>jg,getMinutes:()=>zg,getMonth:()=>Vg,getOverlappingDaysInIntervals:()=>Gg,getQuarter:()=>xi,getSeconds:()=>Kg,getTime:()=>Qg,getUnixTime:()=>Jg,getWeek:()=>Vo,getWeekOfMonth:()=>Xg,getWeekYear:()=>cr,getWeeksInMonth:()=>Zg,getYear:()=>e0,hoursToMilliseconds:()=>t0,hoursToMinutes:()=>r0,hoursToSeconds:()=>o0,interval:()=>n0,intervalToDuration:()=>i0,intlFormat:()=>s0,intlFormatDistance:()=>u0,isAfter:()=>c0,isBefore:()=>f0,isDate:()=>Va,isEqual:()=>l0,isExists:()=>p0,isFirstDayOfMonth:()=>m0,isFriday:()=>d0,isFuture:()=>h0,isLastDayOfMonth:()=>Qa,isLeapYear:()=>au,isMatch:()=>_0,isMonday:()=>I0,isPast:()=>A0,isSameDay:()=>wt,isSameHour:()=>xu,isSameISOWeek:()=>gu,isSameISOWeekYear:()=>E0,isSameMinute:()=>bu,isSameMonth:()=>vu,isSameQuarter:()=>wu,isSameSecond:()=>Su,isSameWeek:()=>Ko,isSameYear:()=>Du,isSaturday:()=>$a,isSunday:()=>Ra,isThisHour:()=>k0,isThisISOWeek:()=>P0,isThisMinute:()=>C0,isThisMonth:()=>N0,isThisQuarter:()=>F0,isThisSecond:()=>$0,isThisWeek:()=>R0,isThisYear:()=>W0,isThursday:()=>U0,isToday:()=>L0,isTomorrow:()=>B0,isTuesday:()=>Y0,isValid:()=>Ee,isWednesday:()=>q0,isWeekend:()=>bt,isWithinInterval:()=>H0,isYesterday:()=>j0,lastDayOfDecade:()=>z0,lastDayOfISOWeek:()=>V0,lastDayOfISOWeekYear:()=>G0,lastDayOfMonth:()=>fu,lastDayOfQuarter:()=>K0,lastDayOfWeek:()=>Tu,lastDayOfYear:()=>Q0,lightFormat:()=>tb,lightFormatters:()=>Ve,longFormatters:()=>jr,max:()=>Ha,milliseconds:()=>ob,millisecondsToHours:()=>nb,millisecondsToMinutes:()=>ib,millisecondsToSeconds:()=>sb,min:()=>ja,minutesToHours:()=>ab,minutesToMilliseconds:()=>ub,minutesToSeconds:()=>cb,monthsToQuarters:()=>fb,monthsToYears:()=>lb,nextDay:()=>Fe,nextFriday:()=>pb,nextMonday:()=>mb,nextSaturday:()=>db,nextSunday:()=>hb,nextThursday:()=>yb,nextTuesday:()=>xb,nextWednesday:()=>gb,parse:()=>yu,parseISO:()=>bb,parseJSON:()=>Fb,parsers:()=>hu,previousDay:()=>$e,previousFriday:()=>$b,previousMonday:()=>Rb,previousSaturday:()=>Wb,previousSunday:()=>Ub,previousThursday:()=>Lb,previousTuesday:()=>Bb,previousWednesday:()=>Yb,quartersToMonths:()=>qb,quartersToYears:()=>Hb,roundToNearestHours:()=>jb,roundToNearestMinutes:()=>zb,secondsToHours:()=>Vb,secondsToMilliseconds:()=>Gb,secondsToMinutes:()=>Kb,set:()=>Qb,setDate:()=>Jb,setDay:()=>pr,setDayOfYear:()=>Xb,setDefaultOptions:()=>Zb,setHours:()=>ev,setISODay:()=>du,setISOWeek:()=>mu,setISOWeekYear:()=>La,setMilliseconds:()=>tv,setMinutes:()=>rv,setMonth:()=>Jo,setQuarter:()=>ov,setSeconds:()=>nv,setWeek:()=>pu,setWeekYear:()=>iv,setYear:()=>sv,startOfDay:()=>vt,startOfDecade:()=>av,startOfHour:()=>is,startOfISOWeek:()=>pe,startOfISOWeekYear:()=>ze,startOfMinute:()=>ss,startOfMonth:()=>ur,startOfQuarter:()=>Dt,startOfSecond:()=>as,startOfToday:()=>uv,startOfTomorrow:()=>cv,startOfWeek:()=>Z,startOfWeekYear:()=>qr,startOfYear:()=>jo,startOfYesterday:()=>fv,sub:()=>lv,subBusinessDays:()=>pv,subDays:()=>mr,subHours:()=>mv,subISOWeekYears:()=>Ka,subMilliseconds:()=>dv,subMinutes:()=>hv,subMonths:()=>Mu,subQuarters:()=>yv,subSeconds:()=>xv,subWeeks:()=>gv,subYears:()=>bv,toDate:()=>l,transpose:()=>lu,weeksToDays:()=>vv,yearsToDays:()=>wv,yearsToMonths:()=>Sv,yearsToQuarters:()=>Dv});var hx=Math.pow(10,8)*24*60*60*1e3,Mk=-hx,at=6048e5,li=864e5,Ae=6e4,qe=36e5,Nr=1e3,Pa=525600,Ct=43200,Fr=1440,pi=60,mi=3,di=12,hi=4,rr=3600,$r=60,yi=rr*24,yl=yi*7,Ca=yi*365.2425,Na=Ca/12,xl=Na*3,Fa=Symbol.for("constructDateFrom");function h(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Fa in t?t[Fa](e):t instanceof Date?new t.constructor(e):new Date(e)}function l(t,e){return h(e||t,t)}function be(t,e,r){let o=l(t,r?.in);return isNaN(e)?h(r?.in||t,NaN):(e&&o.setDate(o.getDate()+e),o)}function gt(t,e,r){let o=l(t,r?.in);if(isNaN(e))return h(r?.in||t,NaN);if(!e)return o;let n=o.getDate(),i=h(r?.in||t,o.getTime());i.setMonth(o.getMonth()+e+1,0);let s=i.getDate();return n>=s?i:(o.setFullYear(i.getFullYear(),i.getMonth(),n),o)}function or(t,e,r){let{years:o=0,months:n=0,weeks:i=0,days:s=0,hours:a=0,minutes:u=0,seconds:c=0}=e,f=l(t,r?.in),m=n||o?gt(f,n+o*12):f,p=s||i?be(m,s+i*7):m,d=u+a*60,w=(c+d*60)*1e3;return h(r?.in||t,+p+w)}function $a(t,e){return l(t,e?.in).getDay()===6}function Ra(t,e){return l(t,e?.in).getDay()===0}function bt(t,e){let r=l(t,e?.in).getDay();return r===0||r===6}function Wa(t,e,r){let o=l(t,r?.in),n=bt(o,r);if(isNaN(e))return h(r?.in,NaN);let i=o.getHours(),s=e<0?-1:1,a=Math.trunc(e/5);o.setDate(o.getDate()+a*7);let u=Math.abs(e%5);for(;u>0;)o.setDate(o.getDate()+s),bt(o,r)||(u-=1);return n&&bt(o,r)&&e!==0&&($a(o,r)&&o.setDate(o.getDate()+(s<0?2:-1)),Ra(o,r)&&o.setDate(o.getDate()+(s<0?1:-2))),o.setHours(i),o}function nr(t,e,r){return h(r?.in||t,+l(t)+e)}function Ua(t,e,r){return nr(t,e*qe,r)}var gl={};function G(){return gl}function bl(t){gl=t}function Z(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=l(t,e?.in),i=n.getDay(),s=(i<o?7:0)+i-o;return n.setDate(n.getDate()-s),n.setHours(0,0,0,0),n}function pe(t,e){return Z(t,{...e,weekStartsOn:1})}function We(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=h(r,0);n.setFullYear(o+1,0,4),n.setHours(0,0,0,0);let i=pe(n),s=h(r,0);s.setFullYear(o,0,4),s.setHours(0,0,0,0);let a=pe(s);return r.getTime()>=i.getTime()?o+1:r.getTime()>=a.getTime()?o:o-1}function ae(t){let e=l(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}function C(t,...e){let r=h.bind(null,t||e.find(o=>typeof o=="object"));return e.map(r)}function vt(t,e){let r=l(t,e?.in);return r.setHours(0,0,0,0),r}function De(t,e,r){let[o,n]=C(r?.in,t,e),i=vt(o),s=vt(n),a=+i-ae(i),u=+s-ae(s);return Math.round((a-u)/li)}function ze(t,e){let r=We(t,e),o=h(e?.in||t,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),pe(o)}function La(t,e,r){let o=l(t,r?.in),n=De(o,ze(o,r)),i=h(r?.in||t,0);return i.setFullYear(e,0,4),i.setHours(0,0,0,0),o=ze(i),o.setDate(o.getDate()+n),o}function Ba(t,e,r){return La(t,We(t,r)+e,r)}function Ro(t,e,r){let o=l(t,r?.in);return o.setTime(o.getTime()+e*Ae),o}function Wo(t,e,r){return gt(t,e*3,r)}function Ya(t,e,r){return nr(t,e*1e3,r)}function ir(t,e,r){return be(t,e*7,r)}function qa(t,e,r){return gt(t,e*12,r)}function yx(t,e,r){let[o,n]=[+l(t.start,r?.in),+l(t.end,r?.in)].sort((a,u)=>a-u),[i,s]=[+l(e.start,r?.in),+l(e.end,r?.in)].sort((a,u)=>a-u);return r?.inclusive?o<=s&&i<=n:o<s&&i<n}function Ha(t,e){let r,o=e?.in;return t.forEach(n=>{!o&&typeof n=="object"&&(o=h.bind(null,n));let i=l(n,o);(!r||r<i||isNaN(+i))&&(r=i)}),h(o,r||NaN)}function ja(t,e){let r,o=e?.in;return t.forEach(n=>{!o&&typeof n=="object"&&(o=h.bind(null,n));let i=l(n,o);(!r||r>i||isNaN(+i))&&(r=i)}),h(o,r||NaN)}function xx(t,e,r){let[o,n,i]=C(r?.in,t,e.start,e.end);return ja([Ha([o,n],r),i],r)}function za(t,e){let r=+l(t);if(isNaN(r))return NaN;let o,n;return e.forEach((i,s)=>{let a=l(i);if(isNaN(+a)){o=NaN,n=NaN;return}let u=Math.abs(r-+a);(o==null||u<n)&&(o=s,n=u)}),o}function gx(t,e,r){let[o,...n]=C(r?.in,t,...e),i=za(o,n);if(typeof i=="number"&&isNaN(i))return h(o,NaN);if(i!==void 0)return n[i]}function Ne(t,e){let r=+l(t)-+l(e);return r<0?-1:r>0?1:r}function bx(t,e){let r=+l(t)-+l(e);return r>0?-1:r<0?1:r}function B(t){return h(t,Date.now())}function wx(t){let e=Math.trunc(t/7);return e===0?0:e}function wt(t,e,r){let[o,n]=C(r?.in,t,e);return+vt(o)==+vt(n)}function Va(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Ee(t){return!(!Va(t)&&typeof t!="number"||isNaN(+l(t)))}function Sx(t,e,r){let[o,n]=C(r?.in,t,e);if(!Ee(o)||!Ee(n))return NaN;let i=De(o,n),s=i<0?-1:1,a=Math.trunc(i/7),u=a*5,c=be(n,a*7);for(;!wt(o,c);)u+=bt(c,r)?0:s,c=be(c,s);return u===0?0:u}function Ga(t,e,r){let[o,n]=C(r?.in,t,e);return We(o,r)-We(n,r)}function Dx(t,e,r){let[o,n]=C(r?.in,t,e),i=pe(o),s=pe(n),a=+i-ae(i),u=+s-ae(s);return Math.round((a-u)/at)}function Rr(t,e,r){let[o,n]=C(r?.in,t,e),i=o.getFullYear()-n.getFullYear(),s=o.getMonth()-n.getMonth();return i*12+s}function xi(t,e){let r=l(t,e?.in);return Math.trunc(r.getMonth()/3)+1}function Uo(t,e,r){let[o,n]=C(r?.in,t,e),i=o.getFullYear()-n.getFullYear(),s=xi(o)-xi(n);return i*4+s}function Wr(t,e,r){let[o,n]=C(r?.in,t,e),i=Z(o,r),s=Z(n,r),a=+i-ae(i),u=+s-ae(s);return Math.round((a-u)/at)}function sr(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()-n.getFullYear()}function Lo(t,e,r){let[o,n]=C(r?.in,t,e),i=vl(o,n),s=Math.abs(De(o,n));o.setDate(o.getDate()-i*s);let a=+(vl(o,n)===-i),u=i*(s-a);return u===0?0:u}function vl(t,e){let r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function ke(t){return e=>{let o=(t?Math[t]:Math.trunc)(e);return o===0?0:o}}function Ur(t,e,r){let[o,n]=C(r?.in,t,e),i=(+o-+n)/qe;return ke(r?.roundingMethod)(i)}function Ka(t,e,r){return Ba(t,-e,r)}function Tx(t,e,r){let[o,n]=C(r?.in,t,e),i=Ne(o,n),s=Math.abs(Ga(o,n,r)),a=Ka(o,i*s,r),u=+(Ne(a,n)===-i),c=i*(s-u);return c===0?0:c}function Bo(t,e){return+l(t)-+l(e)}function Lr(t,e,r){let o=Bo(t,e)/Ae;return ke(r?.roundingMethod)(o)}function Yo(t,e){let r=l(t,e?.in);return r.setHours(23,59,59,999),r}function qo(t,e){let r=l(t,e?.in),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(23,59,59,999),r}function Qa(t,e){let r=l(t,e?.in);return+Yo(r,e)==+qo(r,e)}function ar(t,e,r){let[o,n,i]=C(r?.in,t,t,e),s=Ne(n,i),a=Math.abs(Rr(n,i));if(a<1)return 0;n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-s*a);let u=Ne(n,i)===-s;Qa(o)&&a===1&&Ne(o,i)===1&&(u=!1);let c=s*(a-+u);return c===0?0:c}function Ox(t,e,r){let o=ar(t,e,r)/3;return ke(r?.roundingMethod)(o)}function St(t,e,r){let o=Bo(t,e)/1e3;return ke(r?.roundingMethod)(o)}function Mx(t,e,r){let o=Lo(t,e,r)/7;return ke(r?.roundingMethod)(o)}function Ja(t,e,r){let[o,n]=C(r?.in,t,e),i=Ne(o,n),s=Math.abs(sr(o,n));o.setFullYear(1584),n.setFullYear(1584);let a=Ne(o,n)===-i,u=i*(s-+a);return u===0?0:u}function ve(t,e){let[r,o]=C(t,e.start,e.end);return{start:r,end:o}}function Xa(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+r:+o,s=n?o:r;s.setHours(0,0,0,0);let a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s.setDate(s.getDate()+a),s.setHours(0,0,0,0);return n?u.reverse():u}function _x(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+r:+o,s=n?o:r;s.setMinutes(0,0,0);let a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s.setHours(s.getHours()+a);return n?u.reverse():u}function Ix(t,e){let{start:r,end:o}=ve(e?.in,t);r.setSeconds(0,0);let n=+r>+o,i=n?+r:+o,s=n?o:r,a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s=Ro(s,a);return n?u.reverse():u}function Ax(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+r:+o,s=n?o:r;s.setHours(0,0,0,0),s.setDate(1);let a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s.setMonth(s.getMonth()+a);return n?u.reverse():u}function Dt(t,e){let r=l(t,e?.in),o=r.getMonth(),n=o-o%3;return r.setMonth(n,1),r.setHours(0,0,0,0),r}function Ex(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+Dt(r):+Dt(o),s=n?Dt(o):Dt(r),a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s=Wo(s,a);return n?u.reverse():u}function kx(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?Z(o,e):Z(r,e),s=n?Z(r,e):Z(o,e);i.setHours(15),s.setHours(15);let a=+s.getTime(),u=i,c=e?.step??1;if(!c)return[];c<0&&(c=-c,n=!n);let f=[];for(;+u<=a;)u.setHours(0),f.push(h(r,u)),u=ir(u,c),u.setHours(15);return n?f.reverse():f}function Ho(t,e){let{start:r,end:o}=ve(e?.in,t),n=Xa({start:r,end:o},e),i=[],s=0;for(;s<n.length;){let a=n[s++];bt(a)&&i.push(h(r,a))}return i}function ur(t,e){let r=l(t,e?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Px(t,e){let r=ur(t,e),o=qo(t,e);return Ho({start:r,end:o},e)}function Za(t,e){let r=l(t,e?.in),o=r.getFullYear();return r.setFullYear(o+1,0,0),r.setHours(23,59,59,999),r}function jo(t,e){let r=l(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function Cx(t,e){let r=jo(t,e),o=Za(t,e);return Ho({start:r,end:o},e)}function Nx(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+r:+o,s=n?o:r;s.setHours(0,0,0,0),s.setMonth(0,1);let a=e?.step??1;if(!a)return[];a<0&&(a=-a,n=!n);let u=[];for(;+s<=i;)u.push(h(r,s)),s.setFullYear(s.getFullYear()+a);return n?u.reverse():u}function Fx(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=9+Math.floor(o/10)*10;return r.setFullYear(n,11,31),r.setHours(23,59,59,999),r}function $x(t,e){let r=l(t,e?.in);return r.setMinutes(59,59,999),r}function eu(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=l(t,e?.in),i=n.getDay(),s=(i<o?-7:0)+6-(i-o);return n.setDate(n.getDate()+s),n.setHours(23,59,59,999),n}function Rx(t,e){return eu(t,{...e,weekStartsOn:1})}function Wx(t,e){let r=We(t,e),o=h(e?.in||t,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);let n=pe(o,e);return n.setMilliseconds(n.getMilliseconds()-1),n}function Ux(t,e){let r=l(t,e?.in);return r.setSeconds(59,999),r}function Lx(t,e){let r=l(t,e?.in),o=r.getMonth(),n=o-o%3+3;return r.setMonth(n,0),r.setHours(23,59,59,999),r}function Bx(t,e){let r=l(t,e?.in);return r.setMilliseconds(999),r}function Yx(t){return Yo(Date.now(),t)}function qx(t){let e=B(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=B(t?.in);return i.setFullYear(r,o,n+1),i.setHours(23,59,59,999),t?.in?t.in(i):i}function Hx(t){let e=B(t?.in),r=h(t?.in,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),r.setHours(23,59,59,999),r}var jx={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},wl=(t,e,r)=>{let o,n=jx[t];return typeof n=="string"?o=n:e===1?o=n.one:o=n.other.replace("{{count}}",e.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function gi(t){return(e={})=>{let r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}var zx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Vx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Sl={date:gi({formats:zx,defaultWidth:"full"}),time:gi({formats:Vx,defaultWidth:"full"}),dateTime:gi({formats:Gx,defaultWidth:"full"})};var Kx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Dl=(t,e,r,o)=>Kx[t];function Br(t){return(e,r)=>{let o=r?.context?String(r.context):"standalone",n;if(o==="formatting"&&t.formattingValues){let s=t.defaultFormattingWidth||t.defaultWidth,a=r?.width?String(r.width):s;n=t.formattingValues[a]||t.formattingValues[s]}else{let s=t.defaultWidth,a=r?.width?String(r.width):t.defaultWidth;n=t.values[a]||t.values[s]}let i=t.argumentCallback?t.argumentCallback(e):e;return n[i]}}var Qx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Jx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Xx={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Zx={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},rg=(t,e)=>{let r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Tl={ordinalNumber:rg,era:Br({values:Qx,defaultWidth:"wide"}),quarter:Br({values:Jx,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Br({values:Xx,defaultWidth:"wide"}),day:Br({values:Zx,defaultWidth:"wide"}),dayPeriod:Br({values:eg,defaultWidth:"wide",formattingValues:tg,defaultFormattingWidth:"wide"})};function Yr(t){return(e,r={})=>{let o=r.width,n=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],i=e.match(n);if(!i)return null;let s=i[0],a=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(a)?ng(a,m=>m.test(s)):og(a,m=>m.test(s)),c;c=t.valueCallback?t.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;let f=e.slice(s.length);return{value:c,rest:f}}}function og(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function ng(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function Ol(t){return(e,r={})=>{let o=e.match(t.matchPattern);if(!o)return null;let n=o[0],i=e.match(t.parsePattern);if(!i)return null;let s=t.valueCallback?t.valueCallback(i[0]):i[0];s=r.valueCallback?r.valueCallback(s):s;let a=e.slice(n.length);return{value:s,rest:a}}}var ig=/^(\d+)(th|st|nd|rd)?/i,sg=/\d+/i,ag={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ug={any:[/^b/i,/^(a|c)/i]},cg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fg={any:[/1/i,/2/i,/3/i,/4/i]},lg={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pg={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mg={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},dg={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},hg={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},yg={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ml={ordinalNumber:Ol({matchPattern:ig,parsePattern:sg,valueCallback:t=>parseInt(t,10)}),era:Yr({matchPatterns:ag,defaultMatchWidth:"wide",parsePatterns:ug,defaultParseWidth:"any"}),quarter:Yr({matchPatterns:cg,defaultMatchWidth:"wide",parsePatterns:fg,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Yr({matchPatterns:lg,defaultMatchWidth:"wide",parsePatterns:pg,defaultParseWidth:"any"}),day:Yr({matchPatterns:mg,defaultMatchWidth:"wide",parsePatterns:dg,defaultParseWidth:"any"}),dayPeriod:Yr({matchPatterns:hg,defaultMatchWidth:"any",parsePatterns:yg,defaultParseWidth:"any"})};var He={code:"en-US",formatDistance:wl,formatLong:Sl,formatRelative:Dl,localize:Tl,match:Ml,options:{weekStartsOn:0,firstWeekContainsDate:1}};function tu(t,e){let r=l(t,e?.in);return De(r,jo(r))+1}function zo(t,e){let r=l(t,e?.in),o=+pe(r)-+ze(r);return Math.round(o/at)+1}function cr(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=G(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=h(e?.in||t,0);s.setFullYear(o+1,0,i),s.setHours(0,0,0,0);let a=Z(s,e),u=h(e?.in||t,0);u.setFullYear(o,0,i),u.setHours(0,0,0,0);let c=Z(u,e);return+r>=+a?o+1:+r>=+c?o:o-1}function qr(t,e){let r=G(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,n=cr(t,e),i=h(e?.in||t,0);return i.setFullYear(n,0,o),i.setHours(0,0,0,0),Z(i,e)}function Vo(t,e){let r=l(t,e?.in),o=+Z(r,e)-+qr(r,e);return Math.round(o/at)+1}function E(t,e){let r=t<0?"-":"",o=Math.abs(t).toString().padStart(e,"0");return r+o}var Ve={y(t,e){let r=t.getFullYear(),o=r>0?r:1-r;return E(e==="yy"?o%100:o,e.length)},M(t,e){let r=t.getMonth();return e==="M"?String(r+1):E(r+1,2)},d(t,e){return E(t.getDate(),e.length)},a(t,e){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(t,e){return E(t.getHours()%12||12,e.length)},H(t,e){return E(t.getHours(),e.length)},m(t,e){return E(t.getMinutes(),e.length)},s(t,e){return E(t.getSeconds(),e.length)},S(t,e){let r=e.length,o=t.getMilliseconds(),n=Math.trunc(o*Math.pow(10,r-3));return E(n,e.length)}};var Hr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},bi={G:function(t,e,r){let o=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){let o=t.getFullYear(),n=o>0?o:1-o;return r.ordinalNumber(n,{unit:"year"})}return Ve.y(t,e)},Y:function(t,e,r,o){let n=cr(t,o),i=n>0?n:1-n;if(e==="YY"){let s=i%100;return E(s,2)}return e==="Yo"?r.ordinalNumber(i,{unit:"year"}):E(i,e.length)},R:function(t,e){let r=We(t);return E(r,e.length)},u:function(t,e){let r=t.getFullYear();return E(r,e.length)},Q:function(t,e,r){let o=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(o);case"QQ":return E(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,e,r){let o=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(o);case"qq":return E(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,e,r){let o=t.getMonth();switch(e){case"M":case"MM":return Ve.M(t,e);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,e,r){let o=t.getMonth();switch(e){case"L":return String(o+1);case"LL":return E(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,e,r,o){let n=Vo(t,o);return e==="wo"?r.ordinalNumber(n,{unit:"week"}):E(n,e.length)},I:function(t,e,r){let o=zo(t);return e==="Io"?r.ordinalNumber(o,{unit:"week"}):E(o,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):Ve.d(t,e)},D:function(t,e,r){let o=tu(t);return e==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):E(o,e.length)},E:function(t,e,r){let o=t.getDay();switch(e){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,e,r,o){let n=t.getDay(),i=(n-o.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return E(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(t,e,r,o){let n=t.getDay(),i=(n-o.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return E(i,e.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(t,e,r){let o=t.getDay(),n=o===0?7:o;switch(e){case"i":return String(n);case"ii":return E(n,e.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,e,r){let n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,r){let o=t.getHours(),n;switch(o===12?n=Hr.noon:o===0?n=Hr.midnight:n=o/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,r){let o=t.getHours(),n;switch(o>=17?n=Hr.evening:o>=12?n=Hr.afternoon:o>=4?n=Hr.morning:n=Hr.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){let o=t.getHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Ve.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):Ve.H(t,e)},K:function(t,e,r){let o=t.getHours()%12;return e==="Ko"?r.ordinalNumber(o,{unit:"hour"}):E(o,e.length)},k:function(t,e,r){let o=t.getHours();return o===0&&(o=24),e==="ko"?r.ordinalNumber(o,{unit:"hour"}):E(o,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):Ve.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):Ve.s(t,e)},S:function(t,e){return Ve.S(t,e)},X:function(t,e,r){let o=t.getTimezoneOffset();if(o===0)return"Z";switch(e){case"X":return Il(o);case"XXXX":case"XX":return fr(o);case"XXXXX":case"XXX":default:return fr(o,":")}},x:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"x":return Il(o);case"xxxx":case"xx":return fr(o);case"xxxxx":case"xxx":default:return fr(o,":")}},O:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+_l(o,":");case"OOOO":default:return"GMT"+fr(o,":")}},z:function(t,e,r){let o=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+_l(o,":");case"zzzz":default:return"GMT"+fr(o,":")}},t:function(t,e,r){let o=Math.trunc(+t/1e3);return E(o,e.length)},T:function(t,e,r){return E(+t,e.length)}};function _l(t,e=""){let r=t>0?"-":"+",o=Math.abs(t),n=Math.trunc(o/60),i=o%60;return i===0?r+String(n):r+String(n)+e+E(i,2)}function Il(t,e){return t%60===0?(t>0?"-":"+")+E(Math.abs(t)/60,2):fr(t,e)}function fr(t,e=""){let r=t>0?"-":"+",o=Math.abs(t),n=E(Math.trunc(o/60),2),i=E(o%60,2);return r+n+e+i}var Al=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},El=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},xg=(t,e)=>{let r=t.match(/(P+)(p+)?/)||[],o=r[1],n=r[2];if(!n)return Al(t,e);let i;switch(o){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",Al(o,e)).replace("{{time}}",El(n,e))},jr={p:El,P:xg};var gg=/^D+$/,bg=/^Y+$/,vg=["D","DD","YY","YYYY"];function vi(t){return gg.test(t)}function wi(t){return bg.test(t)}function Go(t,e,r){let o=wg(t,e,r);if(console.warn(o),vg.includes(t))throw new RangeError(o)}function wg(t,e,r){let o=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Sg=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Dg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tg=/^'([^]*?)'?$/,Og=/''/g,Mg=/[a-zA-Z]/;function ru(t,e,r){let o=G(),n=r?.locale??o.locale??He,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,a=l(t,r?.in);if(!Ee(a))throw new RangeError("Invalid time value");let u=e.match(Dg).map(f=>{let m=f[0];if(m==="p"||m==="P"){let p=jr[m];return p(f,n.formatLong)}return f}).join("").match(Sg).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let m=f[0];if(m==="'")return{isToken:!1,value:_g(f)};if(bi[m])return{isToken:!0,value:f};if(m.match(Mg))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:f}});n.localize.preprocessor&&(u=n.localize.preprocessor(a,u));let c={firstWeekContainsDate:i,weekStartsOn:s,locale:n};return u.map(f=>{if(!f.isToken)return f.value;let m=f.value;(!r?.useAdditionalWeekYearTokens&&wi(m)||!r?.useAdditionalDayOfYearTokens&&vi(m))&&Go(m,e,String(t));let p=bi[m[0]];return p(a,m,n.localize,c)}).join("")}function _g(t){let e=t.match(Tg);return e?e[1].replace(Og,"'"):t}function ou(t,e,r){let o=G(),n=r?.locale??o.locale??He,i=2520,s=Ne(t,e);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[u,c]=C(r?.in,...s>0?[e,t]:[t,e]),f=St(c,u),m=(ae(c)-ae(u))/1e3,p=Math.round((f-m)/60),d;if(p<2)return r?.includeSeconds?f<5?n.formatDistance("lessThanXSeconds",5,a):f<10?n.formatDistance("lessThanXSeconds",10,a):f<20?n.formatDistance("lessThanXSeconds",20,a):f<40?n.formatDistance("halfAMinute",0,a):f<60?n.formatDistance("lessThanXMinutes",1,a):n.formatDistance("xMinutes",1,a):p===0?n.formatDistance("lessThanXMinutes",1,a):n.formatDistance("xMinutes",p,a);if(p<45)return n.formatDistance("xMinutes",p,a);if(p<90)return n.formatDistance("aboutXHours",1,a);if(p<Fr){let y=Math.round(p/60);return n.formatDistance("aboutXHours",y,a)}else{if(p<i)return n.formatDistance("xDays",1,a);if(p<Ct){let y=Math.round(p/Fr);return n.formatDistance("xDays",y,a)}else if(p<Ct*2)return d=Math.round(p/Ct),n.formatDistance("aboutXMonths",d,a)}if(d=ar(c,u),d<12){let y=Math.round(p/Ct);return n.formatDistance("xMonths",y,a)}else{let y=d%12,w=Math.trunc(d/12);return y<3?n.formatDistance("aboutXYears",w,a):y<9?n.formatDistance("overXYears",w,a):n.formatDistance("almostXYears",w+1,a)}}function nu(t,e,r){let o=G(),n=r?.locale??o.locale??He,i=Ne(t,e);if(isNaN(i))throw new RangeError("Invalid time value");let s=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:i}),[a,u]=C(r?.in,...i>0?[e,t]:[t,e]),c=ke(r?.roundingMethod??"round"),f=u.getTime()-a.getTime(),m=f/Ae,p=ae(u)-ae(a),d=(f-p)/Ae,y=r?.unit,w;if(y?w=y:m<1?w="second":m<60?w="minute":m<Fr?w="hour":d<Ct?w="day":d<Pa?w="month":w="year",w==="second"){let g=c(f/1e3);return n.formatDistance("xSeconds",g,s)}else if(w==="minute"){let g=c(m);return n.formatDistance("xMinutes",g,s)}else if(w==="hour"){let g=c(m/60);return n.formatDistance("xHours",g,s)}else if(w==="day"){let g=c(d/Fr);return n.formatDistance("xDays",g,s)}else if(w==="month"){let g=c(d/Ct);return g===12&&y!=="month"?n.formatDistance("xYears",1,s):n.formatDistance("xMonths",g,s)}else{let g=c(d/Pa);return n.formatDistance("xYears",g,s)}}function Ig(t,e){return ou(t,B(t),e)}function Ag(t,e){return nu(t,B(t),e)}var Eg=["years","months","weeks","days","hours","minutes","seconds"];function kg(t,e){let r=G(),o=e?.locale??r.locale??He,n=e?.format??Eg,i=e?.zero??!1,s=e?.delimiter??" ";return o.formatDistance?n.reduce((u,c)=>{let f=`x${c.replace(/(^.)/,p=>p.toUpperCase())}`,m=t[c];return m!==void 0&&(i||t[c])?u.concat(o.formatDistance(f,m)):u},[]).join(s):""}function Pg(t,e){let r=l(t,e?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let o=e?.format??"extended",n=e?.representation??"complete",i="",s="",a=o==="extended"?"-":"",u=o==="extended"?":":"";if(n!=="time"){let c=E(r.getDate(),2),f=E(r.getMonth()+1,2);i=`${E(r.getFullYear(),4)}${a}${f}${a}${c}`}if(n!=="date"){let c=r.getTimezoneOffset();if(c!==0){let w=Math.abs(c),g=E(Math.trunc(w/60),2),I=E(w%60,2);s=`${c<0?"+":"-"}${g}:${I}`}else s="Z";let f=E(r.getHours(),2),m=E(r.getMinutes(),2),p=E(r.getSeconds(),2),d=i===""?"":"T",y=[f,m,p].join(u);i=`${i}${d}${y}${s}`}return i}function Cg(t,e){let r=l(t,e?.in);if(!Ee(r))throw new RangeError("Invalid time value");let o=e?.format??"extended",n=e?.representation??"complete",i="",s=o==="extended"?"-":"",a=o==="extended"?":":"";if(n!=="time"){let u=E(r.getDate(),2),c=E(r.getMonth()+1,2);i=`${E(r.getFullYear(),4)}${s}${c}${s}${u}`}if(n!=="date"){let u=E(r.getHours(),2),c=E(r.getMinutes(),2),f=E(r.getSeconds(),2);i=`${i}${i===""?"":" "}${u}${a}${c}${a}${f}`}return i}function Ng(t){let{years:e=0,months:r=0,days:o=0,hours:n=0,minutes:i=0,seconds:s=0}=t;return`P${e}Y${r}M${o}DT${n}H${i}M${s}S`}function Fg(t,e){let r=l(t,e?.in);if(!Ee(r))throw new RangeError("Invalid time value");let o=e?.fractionDigits??0,n=E(r.getDate(),2),i=E(r.getMonth()+1,2),s=r.getFullYear(),a=E(r.getHours(),2),u=E(r.getMinutes(),2),c=E(r.getSeconds(),2),f="";if(o>0){let d=r.getMilliseconds(),y=Math.trunc(d*Math.pow(10,o-3));f="."+E(y,o)}let m="",p=r.getTimezoneOffset();if(p!==0){let d=Math.abs(p),y=E(Math.trunc(d/60),2),w=E(d%60,2);m=`${p<0?"+":"-"}${y}:${w}`}else m="Z";return`${s}-${i}-${n}T${a}:${u}:${c}${f}${m}`}var $g=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Rg=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Wg(t){let e=l(t);if(!Ee(e))throw new RangeError("Invalid time value");let r=$g[e.getUTCDay()],o=E(e.getUTCDate(),2),n=Rg[e.getUTCMonth()],i=e.getUTCFullYear(),s=E(e.getUTCHours(),2),a=E(e.getUTCMinutes(),2),u=E(e.getUTCSeconds(),2);return`${r}, ${o} ${n} ${i} ${s}:${a}:${u} GMT`}function Ug(t,e,r){let[o,n]=C(r?.in,t,e),i=G(),s=r?.locale??i.locale??He,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,u=De(o,n);if(isNaN(u))throw new RangeError("Invalid time value");let c;u<-6?c="other":u<-1?c="lastWeek":u<0?c="yesterday":u<1?c="today":u<2?c="tomorrow":u<7?c="nextWeek":c="other";let f=s.formatRelative(c,o,n,{locale:s,weekStartsOn:a});return ru(o,f,{locale:s,weekStartsOn:a})}function Lg(t,e){return l(t*1e3,e?.in)}function iu(t,e){return l(t,e?.in).getDate()}function lr(t,e){return l(t,e?.in).getDay()}function su(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=r.getMonth(),i=h(r,0);return i.setFullYear(o,n+1,0),i.setHours(0,0,0,0),i.getDate()}function au(t,e){let o=l(t,e?.in).getFullYear();return o%400===0||o%4===0&&o%100!==0}function Bg(t,e){let r=l(t,e?.in);return Number.isNaN(+r)?NaN:au(r)?366:365}function Yg(t,e){let o=l(t,e?.in).getFullYear();return Math.floor(o/10)*10}function uu(){return Object.assign({},G())}function qg(t,e){return l(t,e?.in).getHours()}function cu(t,e){let r=l(t,e?.in).getDay();return r===0?7:r}function Hg(t,e){let r=ze(t,e),n=+ze(ir(r,60))-+r;return Math.round(n/at)}function jg(t){return l(t).getMilliseconds()}function zg(t,e){return l(t,e?.in).getMinutes()}function Vg(t,e){return l(t,e?.in).getMonth()}function Gg(t,e){let[r,o]=[+l(t.start),+l(t.end)].sort((m,p)=>m-p),[n,i]=[+l(e.start),+l(e.end)].sort((m,p)=>m-p);if(!(r<i&&n<o))return 0;let a=n<r?r:n,u=a-ae(a),c=i>o?o:i,f=c-ae(c);return Math.ceil((f-u)/li)}function Kg(t){return l(t).getSeconds()}function Qg(t){return+l(t)}function Jg(t){return Math.trunc(+l(t)/1e3)}function Xg(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=iu(l(t,e?.in));if(isNaN(n))return NaN;let i=lr(ur(t,e)),s=o-i;s<=0&&(s+=7);let a=n-s;return Math.ceil(a/7)+1}function fu(t,e){let r=l(t,e?.in),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(0,0,0,0),l(r,e?.in)}function Zg(t,e){let r=l(t,e?.in);return Wr(fu(r,e),ur(r,e),e)+1}function e0(t,e){return l(t,e?.in).getFullYear()}function t0(t){return Math.trunc(t*qe)}function r0(t){return Math.trunc(t*pi)}function o0(t){return Math.trunc(t*rr)}function n0(t,e,r){let[o,n]=C(r?.in,t,e);if(isNaN(+o))throw new TypeError("Start date is invalid");if(isNaN(+n))throw new TypeError("End date is invalid");if(r?.assertPositive&&+o>+n)throw new TypeError("End date must be after start date");return{start:o,end:n}}function i0(t,e){let{start:r,end:o}=ve(e?.in,t),n={},i=Ja(o,r);i&&(n.years=i);let s=or(r,{years:n.years}),a=ar(o,s);a&&(n.months=a);let u=or(s,{months:n.months}),c=Lo(o,u);c&&(n.days=c);let f=or(u,{days:n.days}),m=Ur(o,f);m&&(n.hours=m);let p=or(f,{hours:n.hours}),d=Lr(o,p);d&&(n.minutes=d);let y=or(p,{minutes:n.minutes}),w=St(o,y);return w&&(n.seconds=w),n}function s0(t,e,r){let o;return a0(e)?o=e:r=e,new Intl.DateTimeFormat(r?.locale,o).format(l(t))}function a0(t){return t!==void 0&&!("locale"in t)}function u0(t,e,r){let o=0,n,[i,s]=C(r?.in,t,e);if(r?.unit)n=r?.unit,n==="second"?o=St(i,s):n==="minute"?o=Lr(i,s):n==="hour"?o=Ur(i,s):n==="day"?o=De(i,s):n==="week"?o=Wr(i,s):n==="month"?o=Rr(i,s):n==="quarter"?o=Uo(i,s):n==="year"&&(o=sr(i,s));else{let u=St(i,s);Math.abs(u)<$r?(o=St(i,s),n="second"):Math.abs(u)<rr?(o=Lr(i,s),n="minute"):Math.abs(u)<yi&&Math.abs(De(i,s))<1?(o=Ur(i,s),n="hour"):Math.abs(u)<yl&&(o=De(i,s))&&Math.abs(o)<7?n="day":Math.abs(u)<Na?(o=Wr(i,s),n="week"):Math.abs(u)<xl?(o=Rr(i,s),n="month"):Math.abs(u)<Ca?Uo(i,s)<4?(o=Uo(i,s),n="quarter"):(o=sr(i,s),n="year"):(o=sr(i,s),n="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(o,n)}function c0(t,e){return+l(t)>+l(e)}function f0(t,e){return+l(t)<+l(e)}function l0(t,e){return+l(t)==+l(e)}function p0(t,e,r){let o=new Date(t,e,r);return o.getFullYear()===t&&o.getMonth()===e&&o.getDate()===r}function m0(t,e){return l(t,e?.in).getDate()===1}function d0(t,e){return l(t,e?.in).getDay()===5}function h0(t){return+l(t)>Date.now()}function lu(t,e){let r=y0(e)?new e(0):h(e,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}function y0(t){return typeof t=="function"&&t.prototype?.constructor===t}var x0=10,Si=class{subPriority=0;validate(e,r){return!0}},Di=class extends Si{constructor(e,r,o,n,i){super(),this.value=e,this.validateValue=r,this.setValue=o,this.priority=n,i&&(this.subPriority=i)}validate(e,r){return this.validateValue(e,this.value,r)}set(e,r,o){return this.setValue(e,r,this.value,o)}},Ti=class extends Si{priority=x0;subPriority=-1;constructor(e,r){super(),this.context=e||(o=>h(r,o))}set(e,r){return r.timestampIsSet?e:h(e,lu(e,this.context))}};var _=class{run(e,r,o,n){let i=this.parse(e,r,o,n);return i?{setter:new Di(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,r,o){return!0}};var Oi=class extends _{priority=140;parse(e,r,o){switch(r){case"G":case"GG":case"GGG":return o.era(e,{width:"abbreviated"})||o.era(e,{width:"narrow"});case"GGGGG":return o.era(e,{width:"narrow"});case"GGGG":default:return o.era(e,{width:"wide"})||o.era(e,{width:"abbreviated"})||o.era(e,{width:"narrow"})}}set(e,r,o){return r.era=o,e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]};var j={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ge={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Q(t,e){return t&&{value:e(t.value),rest:t.rest}}function H(t,e){let r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function Ke(t,e){let r=e.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:e.slice(1)};let o=r[1]==="+"?1:-1,n=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:o*(n*qe+i*Ae+s*Nr),rest:e.slice(r[0].length)}}function Mi(t){return H(j.anyDigitsSigned,t)}function R(t,e){switch(t){case 1:return H(j.singleDigit,e);case 2:return H(j.twoDigits,e);case 3:return H(j.threeDigits,e);case 4:return H(j.fourDigits,e);default:return H(new RegExp("^\\d{1,"+t+"}"),e)}}function zr(t,e){switch(t){case 1:return H(j.singleDigitSigned,e);case 2:return H(j.twoDigitsSigned,e);case 3:return H(j.threeDigitsSigned,e);case 4:return H(j.fourDigitsSigned,e);default:return H(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Vr(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function _i(t,e){let r=e>0,o=r?e:1-e,n;if(o<=50)n=t||100;else{let i=o+50,s=Math.trunc(i/100)*100,a=t>=i%100;n=t+s-(a?100:0)}return r?n:1-n}function Ii(t){return t%400===0||t%4===0&&t%100!==0}var Ai=class extends _{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,r,o){let n=i=>({year:i,isTwoDigitYear:r==="yy"});switch(r){case"y":return Q(R(4,e),n);case"yo":return Q(o.ordinalNumber(e,{unit:"year"}),n);default:return Q(R(r.length,e),n)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,o){let n=e.getFullYear();if(o.isTwoDigitYear){let s=_i(o.year,n);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}let i=!("era"in r)||r.era===1?o.year:1-o.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}};var Ei=class extends _{priority=130;parse(e,r,o){let n=i=>({year:i,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Q(R(4,e),n);case"Yo":return Q(o.ordinalNumber(e,{unit:"year"}),n);default:return Q(R(r.length,e),n)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,o,n){let i=cr(e,n);if(o.isTwoDigitYear){let a=_i(o.year,i);return e.setFullYear(a,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),Z(e,n)}let s=!("era"in r)||r.era===1?o.year:1-o.year;return e.setFullYear(s,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),Z(e,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var ki=class extends _{priority=130;parse(e,r){return r==="R"?zr(4,e):zr(r.length,e)}set(e,r,o){let n=h(e,0);return n.setFullYear(o,0,4),n.setHours(0,0,0,0),pe(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Pi=class extends _{priority=130;parse(e,r){return r==="u"?zr(4,e):zr(r.length,e)}set(e,r,o){return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var Ci=class extends _{priority=120;parse(e,r,o){switch(r){case"Q":case"QQ":return R(r.length,e);case"Qo":return o.ordinalNumber(e,{unit:"quarter"});case"QQQ":return o.quarter(e,{width:"abbreviated",context:"formatting"})||o.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(e,{width:"wide",context:"formatting"})||o.quarter(e,{width:"abbreviated",context:"formatting"})||o.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=1&&r<=4}set(e,r,o){return e.setMonth((o-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var Ni=class extends _{priority=120;parse(e,r,o){switch(r){case"q":case"qq":return R(r.length,e);case"qo":return o.ordinalNumber(e,{unit:"quarter"});case"qqq":return o.quarter(e,{width:"abbreviated",context:"standalone"})||o.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(e,{width:"wide",context:"standalone"})||o.quarter(e,{width:"abbreviated",context:"standalone"})||o.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=1&&r<=4}set(e,r,o){return e.setMonth((o-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Fi=class extends _{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,r,o){let n=i=>i-1;switch(r){case"M":return Q(H(j.month,e),n);case"MM":return Q(R(2,e),n);case"Mo":return Q(o.ordinalNumber(e,{unit:"month"}),n);case"MMM":return o.month(e,{width:"abbreviated",context:"formatting"})||o.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(e,{width:"wide",context:"formatting"})||o.month(e,{width:"abbreviated",context:"formatting"})||o.month(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=11}set(e,r,o){return e.setMonth(o,1),e.setHours(0,0,0,0),e}};var $i=class extends _{priority=110;parse(e,r,o){let n=i=>i-1;switch(r){case"L":return Q(H(j.month,e),n);case"LL":return Q(R(2,e),n);case"Lo":return Q(o.ordinalNumber(e,{unit:"month"}),n);case"LLL":return o.month(e,{width:"abbreviated",context:"standalone"})||o.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(e,{width:"wide",context:"standalone"})||o.month(e,{width:"abbreviated",context:"standalone"})||o.month(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=11}set(e,r,o){return e.setMonth(o,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function pu(t,e,r){let o=l(t,r?.in),n=Vo(o,r)-e;return o.setDate(o.getDate()-n*7),l(o,r?.in)}var Ri=class extends _{priority=100;parse(e,r,o){switch(r){case"w":return H(j.week,e);case"wo":return o.ordinalNumber(e,{unit:"week"});default:return R(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,o,n){return Z(pu(e,o,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function mu(t,e,r){let o=l(t,r?.in),n=zo(o,r)-e;return o.setDate(o.getDate()-n*7),o}var Wi=class extends _{priority=100;parse(e,r,o){switch(r){case"I":return H(j.week,e);case"Io":return o.ordinalNumber(e,{unit:"week"});default:return R(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,o){return pe(mu(e,o))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var g0=[31,28,31,30,31,30,31,31,30,31,30,31],b0=[31,29,31,30,31,30,31,31,30,31,30,31],Ui=class extends _{priority=90;subPriority=1;parse(e,r,o){switch(r){case"d":return H(j.date,e);case"do":return o.ordinalNumber(e,{unit:"date"});default:return R(r.length,e)}}validate(e,r){let o=e.getFullYear(),n=Ii(o),i=e.getMonth();return n?r>=1&&r<=b0[i]:r>=1&&r<=g0[i]}set(e,r,o){return e.setDate(o),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Li=class extends _{priority=90;subpriority=1;parse(e,r,o){switch(r){case"D":case"DD":return H(j.dayOfYear,e);case"Do":return o.ordinalNumber(e,{unit:"date"});default:return R(r.length,e)}}validate(e,r){let o=e.getFullYear();return Ii(o)?r>=1&&r<=366:r>=1&&r<=365}set(e,r,o){return e.setMonth(0,o),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function pr(t,e,r){let o=G(),n=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,i=l(t,r?.in),s=i.getDay(),u=(e%7+7)%7,c=7-n,f=e<0||e>6?e-(s+c)%7:(u+c)%7-(s+c)%7;return be(i,f,r)}var Bi=class extends _{priority=90;parse(e,r,o){switch(r){case"E":case"EE":case"EEE":return o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,o,n){return e=pr(e,o,n),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]};var Yi=class extends _{priority=90;parse(e,r,o,n){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+n.weekStartsOn+6)%7+a};switch(r){case"e":case"ee":return Q(R(r.length,e),i);case"eo":return Q(o.ordinalNumber(e,{unit:"day"}),i);case"eee":return o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"eeeee":return o.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,o,n){return e=pr(e,o,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var qi=class extends _{priority=90;parse(e,r,o,n){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+n.weekStartsOn+6)%7+a};switch(r){case"c":case"cc":return Q(R(r.length,e),i);case"co":return Q(o.ordinalNumber(e,{unit:"day"}),i);case"ccc":return o.day(e,{width:"abbreviated",context:"standalone"})||o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"});case"ccccc":return o.day(e,{width:"narrow",context:"standalone"});case"cccccc":return o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(e,{width:"wide",context:"standalone"})||o.day(e,{width:"abbreviated",context:"standalone"})||o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=6}set(e,r,o,n){return e=pr(e,o,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function du(t,e,r){let o=l(t,r?.in),n=cu(o,r),i=e-n;return be(o,i,r)}var Hi=class extends _{priority=90;parse(e,r,o){let n=i=>i===0?7:i;switch(r){case"i":case"ii":return R(r.length,e);case"io":return o.ordinalNumber(e,{unit:"day"});case"iii":return Q(o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),n);case"iiiii":return Q(o.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return Q(o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),n);case"iiii":default:return Q(o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),n)}}validate(e,r){return r>=1&&r<=7}set(e,r,o){return e=du(e,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var ji=class extends _{priority=80;parse(e,r,o){switch(r){case"a":case"aa":case"aaa":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,o){return e.setHours(Vr(o),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};var zi=class extends _{priority=80;parse(e,r,o){switch(r){case"b":case"bb":case"bbb":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,o){return e.setHours(Vr(o),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};var Vi=class extends _{priority=80;parse(e,r,o){switch(r){case"B":case"BB":case"BBB":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,o){return e.setHours(Vr(o),0,0,0),e}incompatibleTokens=["a","b","t","T"]};var Gi=class extends _{priority=70;parse(e,r,o){switch(r){case"h":return H(j.hour12h,e);case"ho":return o.ordinalNumber(e,{unit:"hour"});default:return R(r.length,e)}}validate(e,r){return r>=1&&r<=12}set(e,r,o){let n=e.getHours()>=12;return n&&o<12?e.setHours(o+12,0,0,0):!n&&o===12?e.setHours(0,0,0,0):e.setHours(o,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]};var Ki=class extends _{priority=70;parse(e,r,o){switch(r){case"H":return H(j.hour23h,e);case"Ho":return o.ordinalNumber(e,{unit:"hour"});default:return R(r.length,e)}}validate(e,r){return r>=0&&r<=23}set(e,r,o){return e.setHours(o,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]};var Qi=class extends _{priority=70;parse(e,r,o){switch(r){case"K":return H(j.hour11h,e);case"Ko":return o.ordinalNumber(e,{unit:"hour"});default:return R(r.length,e)}}validate(e,r){return r>=0&&r<=11}set(e,r,o){return e.getHours()>=12&&o<12?e.setHours(o+12,0,0,0):e.setHours(o,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]};var Ji=class extends _{priority=70;parse(e,r,o){switch(r){case"k":return H(j.hour24h,e);case"ko":return o.ordinalNumber(e,{unit:"hour"});default:return R(r.length,e)}}validate(e,r){return r>=1&&r<=24}set(e,r,o){let n=o<=24?o%24:o;return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]};var Xi=class extends _{priority=60;parse(e,r,o){switch(r){case"m":return H(j.minute,e);case"mo":return o.ordinalNumber(e,{unit:"minute"});default:return R(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,o){return e.setMinutes(o,0,0),e}incompatibleTokens=["t","T"]};var Zi=class extends _{priority=50;parse(e,r,o){switch(r){case"s":return H(j.second,e);case"so":return o.ordinalNumber(e,{unit:"second"});default:return R(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,o){return e.setSeconds(o,0),e}incompatibleTokens=["t","T"]};var es=class extends _{priority=30;parse(e,r){let o=n=>Math.trunc(n*Math.pow(10,-r.length+3));return Q(R(r.length,e),o)}set(e,r,o){return e.setMilliseconds(o),e}incompatibleTokens=["t","T"]};var ts=class extends _{priority=10;parse(e,r){switch(r){case"X":return Ke(Ge.basicOptionalMinutes,e);case"XX":return Ke(Ge.basic,e);case"XXXX":return Ke(Ge.basicOptionalSeconds,e);case"XXXXX":return Ke(Ge.extendedOptionalSeconds,e);case"XXX":default:return Ke(Ge.extended,e)}}set(e,r,o){return r.timestampIsSet?e:h(e,e.getTime()-ae(e)-o)}incompatibleTokens=["t","T","x"]};var rs=class extends _{priority=10;parse(e,r){switch(r){case"x":return Ke(Ge.basicOptionalMinutes,e);case"xx":return Ke(Ge.basic,e);case"xxxx":return Ke(Ge.basicOptionalSeconds,e);case"xxxxx":return Ke(Ge.extendedOptionalSeconds,e);case"xxx":default:return Ke(Ge.extended,e)}}set(e,r,o){return r.timestampIsSet?e:h(e,e.getTime()-ae(e)-o)}incompatibleTokens=["t","T","X"]};var os=class extends _{priority=40;parse(e){return Mi(e)}set(e,r,o){return[h(e,o*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var ns=class extends _{priority=20;parse(e){return Mi(e)}set(e,r,o){return[h(e,o),{timestampIsSet:!0}]}incompatibleTokens="*"};var hu={G:new Oi,y:new Ai,Y:new Ei,R:new ki,u:new Pi,Q:new Ci,q:new Ni,M:new Fi,L:new $i,w:new Ri,I:new Wi,d:new Ui,D:new Li,E:new Bi,e:new Yi,c:new qi,i:new Hi,a:new ji,b:new zi,B:new Vi,h:new Gi,H:new Ki,K:new Qi,k:new Ji,m:new Xi,s:new Zi,S:new es,X:new ts,x:new rs,t:new os,T:new ns};var v0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,w0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,S0=/^'([^]*?)'?$/,D0=/''/g,T0=/\S/,O0=/[a-zA-Z]/;function yu(t,e,r,o){let n=()=>h(o?.in||r,NaN),i=uu(),s=o?.locale??i.locale??He,a=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,u=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!e)return t?n():l(r,o?.in);let c={firstWeekContainsDate:a,weekStartsOn:u,locale:s},f=[new Ti(o?.in,r)],m=e.match(w0).map(g=>{let I=g[0];if(I in jr){let D=jr[I];return D(g,s.formatLong)}return g}).join("").match(v0),p=[];for(let g of m){!o?.useAdditionalWeekYearTokens&&wi(g)&&Go(g,e,t),!o?.useAdditionalDayOfYearTokens&&vi(g)&&Go(g,e,t);let I=g[0],D=hu[I];if(D){let{incompatibleTokens:T}=D;if(Array.isArray(T)){let V=p.find(z=>T.includes(z.token)||z.token===I);if(V)throw new RangeError(`The format string mustn't contain \`${V.fullToken}\` and \`${g}\` at the same time`)}else if(D.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${g}\` and any other token at the same time`);p.push({token:I,fullToken:g});let L=D.run(t,g,s.match,c);if(!L)return n();f.push(L.setter),t=L.rest}else{if(I.match(O0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");if(g==="''"?g="'":I==="'"&&(g=M0(g)),t.indexOf(g)===0)t=t.slice(g.length);else return n()}}if(t.length>0&&T0.test(t))return n();let d=f.map(g=>g.priority).sort((g,I)=>I-g).filter((g,I,D)=>D.indexOf(g)===I).map(g=>f.filter(I=>I.priority===g).sort((I,D)=>D.subPriority-I.subPriority)).map(g=>g[0]),y=l(r,o?.in);if(isNaN(+y))return n();let w={};for(let g of d){if(!g.validate(y,c))return n();let I=g.set(y,w,c);Array.isArray(I)?(y=I[0],Object.assign(w,I[1])):y=I}return y}function M0(t){return t.match(S0)[1].replace(D0,"'")}function _0(t,e,r){return Ee(yu(t,e,new Date,r))}function I0(t,e){return l(t,e?.in).getDay()===1}function A0(t){return+l(t)<Date.now()}function is(t,e){let r=l(t,e?.in);return r.setMinutes(0,0,0),r}function xu(t,e,r){let[o,n]=C(r?.in,t,e);return+is(o)==+is(n)}function Ko(t,e,r){let[o,n]=C(r?.in,t,e);return+Z(o,r)==+Z(n,r)}function gu(t,e,r){return Ko(t,e,{...r,weekStartsOn:1})}function E0(t,e,r){let[o,n]=C(r?.in,t,e);return+ze(o)==+ze(n)}function ss(t,e){let r=l(t,e?.in);return r.setSeconds(0,0),r}function bu(t,e){return+ss(t)==+ss(e)}function vu(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()&&o.getMonth()===n.getMonth()}function wu(t,e,r){let[o,n]=C(r?.in,t,e);return+Dt(o)==+Dt(n)}function as(t,e){let r=l(t,e?.in);return r.setMilliseconds(0),r}function Su(t,e){return+as(t)==+as(e)}function Du(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()}function k0(t,e){return xu(l(t,e?.in),B(e?.in||t))}function P0(t,e){return gu(h(e?.in||t,t),B(e?.in||t))}function C0(t){return bu(t,B(t))}function N0(t,e){return vu(h(e?.in||t,t),B(e?.in||t))}function F0(t,e){return wu(h(e?.in||t,t),B(e?.in||t))}function $0(t){return Su(t,B(t))}function R0(t,e){return Ko(h(e?.in||t,t),B(e?.in||t),e)}function W0(t,e){return Du(h(e?.in||t,t),B(e?.in||t))}function U0(t,e){return l(t,e?.in).getDay()===4}function L0(t,e){return wt(h(e?.in||t,t),B(e?.in||t))}function B0(t,e){return wt(t,be(B(e?.in||t),1),e)}function Y0(t,e){return l(t,e?.in).getDay()===2}function q0(t,e){return l(t,e?.in).getDay()===3}function H0(t,e,r){let o=+l(t,r?.in),[n,i]=[+l(e.start,r?.in),+l(e.end,r?.in)].sort((s,a)=>s-a);return o>=n&&o<=i}function mr(t,e,r){return be(t,-e,r)}function j0(t,e){return wt(h(e?.in||t,t),mr(B(e?.in||t),1))}function z0(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=9+Math.floor(o/10)*10;return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),l(r,e?.in)}function Tu(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=l(t,e?.in),i=n.getDay(),s=(i<o?-7:0)+6-(i-o);return n.setHours(0,0,0,0),n.setDate(n.getDate()+s),n}function V0(t,e){return Tu(t,{...e,weekStartsOn:1})}function G0(t,e){let r=We(t,e),o=h(e?.in||t,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);let n=pe(o,e);return n.setDate(n.getDate()-1),n}function K0(t,e){let r=l(t,e?.in),o=r.getMonth(),n=o-o%3+3;return r.setMonth(n,0),r.setHours(0,0,0,0),r}function Q0(t,e){let r=l(t,e?.in),o=r.getFullYear();return r.setFullYear(o+1,0,0),r.setHours(0,0,0,0),r}var J0=/(\w)\1*|''|'(''|[^'])+('|$)|./g,X0=/^'([^]*?)'?$/,Z0=/''/g,eb=/[a-zA-Z]/;function tb(t,e){let r=l(t);if(!Ee(r))throw new RangeError("Invalid time value");let o=e.match(J0);return o?o.map(i=>{if(i==="''")return"'";let s=i[0];if(s==="'")return rb(i);let a=Ve[s];if(a)return a(r,i);if(s.match(eb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return i}).join(""):""}function rb(t){let e=t.match(X0);return e?e[1].replace(Z0,"'"):t}function ob({years:t,months:e,weeks:r,days:o,hours:n,minutes:i,seconds:s}){let a=0;t&&(a+=t*365.2425),e&&(a+=e*(365.2425/12)),r&&(a+=r*7),o&&(a+=o);let u=a*24*60*60;return n&&(u+=n*60*60),i&&(u+=i*60),s&&(u+=s),Math.trunc(u*1e3)}function nb(t){let e=t/qe;return Math.trunc(e)}function ib(t){let e=t/Ae;return Math.trunc(e)}function sb(t){let e=t/Nr;return Math.trunc(e)}function ab(t){let e=t/pi;return Math.trunc(e)}function ub(t){return Math.trunc(t*Ae)}function cb(t){return Math.trunc(t*$r)}function fb(t){let e=t/mi;return Math.trunc(e)}function lb(t){let e=t/di;return Math.trunc(e)}function Fe(t,e,r){let o=e-lr(t,r);return o<=0&&(o+=7),be(t,o,r)}function pb(t,e){return Fe(t,5,e)}function mb(t,e){return Fe(t,1,e)}function db(t,e){return Fe(t,6,e)}function hb(t,e){return Fe(t,0,e)}function yb(t,e){return Fe(t,4,e)}function xb(t,e){return Fe(t,2,e)}function gb(t,e){return Fe(t,3,e)}function bb(t,e){let r=()=>h(e?.in,NaN),o=e?.additionalDigits??2,n=Db(t),i;if(n.date){let c=Tb(n.date,o);i=Ob(c.restDateString,c.year)}if(!i||isNaN(+i))return r();let s=+i,a=0,u;if(n.time&&(a=Mb(n.time),isNaN(a)))return r();if(n.timezone){if(u=_b(n.timezone),isNaN(u))return r()}else{let c=new Date(s+a),f=l(0,e?.in);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return l(s+a+u,e?.in)}var us={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},vb=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,wb=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Sb=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Db(t){let e={},r=t.split(us.dateTimeDelimiter),o;if(r.length>2)return e;if(/:/.test(r[0])?o=r[0]:(e.date=r[0],o=r[1],us.timeZoneDelimiter.test(e.date)&&(e.date=t.split(us.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){let n=us.timezone.exec(o);n?(e.time=o.replace(n[1],""),e.timezone=n[1]):e.time=o}return e}function Tb(t,e){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=t.match(r);if(!o)return{year:NaN,restDateString:""};let n=o[1]?parseInt(o[1]):null,i=o[2]?parseInt(o[2]):null;return{year:i===null?n:i*100,restDateString:t.slice((o[1]||o[2]).length)}}function Ob(t,e){if(e===null)return new Date(NaN);let r=t.match(vb);if(!r)return new Date(NaN);let o=!!r[4],n=Qo(r[1]),i=Qo(r[2])-1,s=Qo(r[3]),a=Qo(r[4]),u=Qo(r[5])-1;if(o)return Pb(e,a,u)?Ib(e,a,u):new Date(NaN);{let c=new Date(0);return!Eb(e,i,s)||!kb(e,n)?new Date(NaN):(c.setUTCFullYear(e,i,Math.max(n,s)),c)}}function Qo(t){return t?parseInt(t):1}function Mb(t){let e=t.match(wb);if(!e)return NaN;let r=Ou(e[1]),o=Ou(e[2]),n=Ou(e[3]);return Cb(r,o,n)?r*qe+o*Ae+n*1e3:NaN}function Ou(t){return t&&parseFloat(t.replace(",","."))||0}function _b(t){if(t==="Z")return 0;let e=t.match(Sb);if(!e)return 0;let r=e[1]==="+"?-1:1,o=parseInt(e[2]),n=e[3]&&parseInt(e[3])||0;return Nb(o,n)?r*(o*qe+n*Ae):NaN}function Ib(t,e,r){let o=new Date(0);o.setUTCFullYear(t,0,4);let n=o.getUTCDay()||7,i=(e-1)*7+r+1-n;return o.setUTCDate(o.getUTCDate()+i),o}var Ab=[31,null,31,30,31,30,31,31,30,31,30,31];function Pl(t){return t%400===0||t%4===0&&t%100!==0}function Eb(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(Ab[e]||(Pl(t)?29:28))}function kb(t,e){return e>=1&&e<=(Pl(t)?366:365)}function Pb(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function Cb(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function Nb(t,e){return e>=0&&e<=59}function Fb(t,e){let r=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return r?l(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4]-(+r[9]||0)*(r[8]=="-"?-1:1),+r[5]-(+r[10]||0)*(r[8]=="-"?-1:1),+r[6],+((r[7]||"0")+"00").substring(0,3)),e?.in):l(NaN,e?.in)}function $e(t,e,r){let o=lr(t,r)-e;return o<=0&&(o+=7),mr(t,o,r)}function $b(t,e){return $e(t,5,e)}function Rb(t,e){return $e(t,1,e)}function Wb(t,e){return $e(t,6,e)}function Ub(t,e){return $e(t,0,e)}function Lb(t,e){return $e(t,4,e)}function Bb(t,e){return $e(t,2,e)}function Yb(t,e){return $e(t,3,e)}function qb(t){return Math.trunc(t*mi)}function Hb(t){let e=t/hi;return Math.trunc(e)}function jb(t,e){let r=e?.nearestTo??1;if(r<1||r>12)return h(e?.in||t,NaN);let o=l(t,e?.in),n=o.getMinutes()/60,i=o.getSeconds()/60/60,s=o.getMilliseconds()/1e3/60/60,a=o.getHours()+n+i+s,u=e?.roundingMethod??"round",f=ke(u)(a/r)*r;return o.setHours(f,0,0,0),o}function zb(t,e){let r=e?.nearestTo??1;if(r<1||r>30)return h(t,NaN);let o=l(t,e?.in),n=o.getSeconds()/60,i=o.getMilliseconds()/1e3/60,s=o.getMinutes()+n+i,a=e?.roundingMethod??"round",c=ke(a)(s/r)*r;return o.setMinutes(c,0,0),o}function Vb(t){let e=t/rr;return Math.trunc(e)}function Gb(t){return t*Nr}function Kb(t){let e=t/$r;return Math.trunc(e)}function Jo(t,e,r){let o=l(t,r?.in),n=o.getFullYear(),i=o.getDate(),s=h(r?.in||t,0);s.setFullYear(n,e,15),s.setHours(0,0,0,0);let a=su(s);return o.setMonth(e,Math.min(i,a)),o}function Qb(t,e,r){let o=l(t,r?.in);return isNaN(+o)?h(r?.in||t,NaN):(e.year!=null&&o.setFullYear(e.year),e.month!=null&&(o=Jo(o,e.month)),e.date!=null&&o.setDate(e.date),e.hours!=null&&o.setHours(e.hours),e.minutes!=null&&o.setMinutes(e.minutes),e.seconds!=null&&o.setSeconds(e.seconds),e.milliseconds!=null&&o.setMilliseconds(e.milliseconds),o)}function Jb(t,e,r){let o=l(t,r?.in);return o.setDate(e),o}function Xb(t,e,r){let o=l(t,r?.in);return o.setMonth(0),o.setDate(e),o}function Zb(t){let e={},r=G();for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(t[o]===void 0?delete e[o]:e[o]=t[o]);bl(e)}function ev(t,e,r){let o=l(t,r?.in);return o.setHours(e),o}function tv(t,e,r){let o=l(t,r?.in);return o.setMilliseconds(e),o}function rv(t,e,r){let o=l(t,r?.in);return o.setMinutes(e),o}function ov(t,e,r){let o=l(t,r?.in),n=Math.trunc(o.getMonth()/3)+1,i=e-n;return Jo(o,o.getMonth()+i*3)}function nv(t,e,r){let o=l(t,r?.in);return o.setSeconds(e),o}function iv(t,e,r){let o=G(),n=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=De(l(t,r?.in),qr(t,r),r),s=h(r?.in||t,0);s.setFullYear(e,0,n),s.setHours(0,0,0,0);let a=qr(s,r);return a.setDate(a.getDate()+i),a}function sv(t,e,r){let o=l(t,r?.in);return isNaN(+o)?h(r?.in||t,NaN):(o.setFullYear(e),o)}function av(t,e){let r=l(t,e?.in),o=r.getFullYear(),n=Math.floor(o/10)*10;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}function uv(t){return vt(Date.now(),t)}function cv(t){let e=B(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=h(t?.in,0);return i.setFullYear(r,o,n+1),i.setHours(0,0,0,0),i}function fv(t){let e=B(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=B(t?.in);return i.setFullYear(r,o,n-1),i.setHours(0,0,0,0),i}function Mu(t,e,r){return gt(t,-e,r)}function lv(t,e,r){let{years:o=0,months:n=0,weeks:i=0,days:s=0,hours:a=0,minutes:u=0,seconds:c=0}=e,f=Mu(t,n+o*12,r),m=mr(f,s+i*7,r),p=u+a*60,y=(c+p*60)*1e3;return h(r?.in||t,+m-y)}function pv(t,e,r){return Wa(t,-e,r)}function mv(t,e,r){return Ua(t,-e,r)}function dv(t,e,r){return nr(t,-e,r)}function hv(t,e,r){return Ro(t,-e,r)}function yv(t,e,r){return Wo(t,-e,r)}function xv(t,e,r){return Ya(t,-e,r)}function gv(t,e,r){return ir(t,-e,r)}function bv(t,e,r){return qa(t,-e,r)}function vv(t){return Math.trunc(t*7)}function wv(t){return Math.trunc(t*365.2425)}function Sv(t){return Math.trunc(t*di)}function Dv(t){return Math.trunc(t*hi)}var Gr=nt(Cl(),1),$l=nt(Nl(),1);var Fl=t=>Number.isFinite(t)?t:0;function Tv(t){return{days:Math.trunc(t/864e5),hours:Math.trunc(t/36e5%24),minutes:Math.trunc(t/6e4%60),seconds:Math.trunc(t/1e3%60),milliseconds:Math.trunc(t%1e3),microseconds:Math.trunc(Fl(t*1e3)%1e3),nanoseconds:Math.trunc(Fl(t*1e6)%1e3)}}function Ov(t){return{days:t/86400000n,hours:t/3600000n%24n,minutes:t/60000n%60n,seconds:t/1000n%60n,milliseconds:t%1000n,microseconds:0n,nanoseconds:0n}}function ku(t){switch(typeof t){case"number":{if(Number.isFinite(t))return Tv(t);break}case"bigint":return Ov(t)}throw new TypeError("Expected a finite number or bigint")}var Mv=t=>t===0||t===0n,_v=(t,e)=>e===1||e===1n?t:`${t}s`,Iv=1e-7,Av=24n*60n*60n*1000n;function fs(t,e){let r=typeof t=="bigint";if(!r&&!Number.isFinite(t))throw new TypeError("Expected a finite number or bigint");e={...e};let o=t<0?"-":"";t=t<0?-t:t,e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.unitCount=1,e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let n=[],i=(f,m)=>{let p=Math.floor(f*10**m+Iv);return(Math.round(p)/10**m).toFixed(m)},s=(f,m,p,d)=>{if(!((n.length===0||!e.colonNotation)&&Mv(f)&&!(e.colonNotation&&p==="m"))){if(d??=String(f),e.colonNotation){let y=d.includes(".")?d.split(".")[0].length:d.length,w=n.length>0?2:1;d="0".repeat(Math.max(0,w-y))+d}else d+=e.verbose?" "+_v(m,f):p;n.push(d)}},a=ku(t),u=BigInt(a.days);if(e.hideYearAndDays?s(BigInt(u)*24n+BigInt(a.hours),"hour","h"):(e.hideYear?s(u,"day","d"):(s(u/365n,"year","y"),s(u%365n,"day","d")),s(Number(a.hours),"hour","h")),s(Number(a.minutes),"minute","m"),!e.hideSeconds)if(e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3){let f=Number(a.seconds),m=Number(a.milliseconds),p=Number(a.microseconds),d=Number(a.nanoseconds);if(s(f,"second","s"),e.formatSubMilliseconds)s(m,"millisecond","ms"),s(p,"microsecond","\xB5s"),s(d,"nanosecond","ns");else{let y=m+p/1e3+d/1e6,w=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,g=y>=1?Math.round(y):Math.ceil(y),I=w?y.toFixed(w):g;s(Number.parseFloat(I),"millisecond","ms",I)}}else{let f=(r?Number(t%Av):t)/1e3%60,m=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,p=i(f,m),d=e.keepDecimalsOnWholeSeconds?p:p.replace(/\.0+$/,"");s(Number.parseFloat(d),"second","s",d)}if(n.length===0)return o+"0"+(e.verbose?" milliseconds":"ms");let c=e.colonNotation?":":" ";return typeof e.unitCount=="number"&&(n=n.slice(0,Math.max(e.unitCount,1))),o+n.join(c)}Gr.default.extend($l.default);var Xo=class{constructor(e,r,o){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=o,this.cronParser=new fi.Cron(r)}checkExecution(){if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let e=this.jobFunction(this.nextExecutionUnix);e instanceof Promise&&e.catch(r=>console.log(r)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()}start(){this.status="started"}stop(){this.status="stopped"}};var Nt={years:(t=1)=>t*3154e7,months:(t=1)=>t*2628e6,weeks:(t=1)=>t*6048e5,days:(t=1)=>t*864e5,hours:(t=1)=>t*36e5,minutes:(t=1)=>t*6e4,seconds:(t=1)=>t*1e3},Pu=t=>{let e=0,r=o=>{e=e+o};return t.years&&r(Nt.years(t.years)),t.months&&r(Nt.months(t.months)),t.weeks&&r(Nt.weeks(t.weeks)),t.days&&r(Nt.days(t.days)),t.hours&&r(Nt.hours(t.hours)),t.minutes&&r(Nt.minutes(t.minutes)),t.seconds&&r(Nt.seconds(t.seconds)),e},Cu=t=>fs(t),Ev=t=>cs.formatDistanceToNow(new Date(t));var Nu=class{constructor(){this.status="stopped",this.cronjobs=new Ue.ObjectMap}addCronjob(e,r){let o=new Xo(this,e,r);return this.cronjobs.add(o),this.status==="started"&&o.start(),o}removeCronjob(e){e.stop(),this.cronjobs.remove(e)}start(){if(this.status!=="started"){this.status="started";for(let e of this.cronjobs.getArray())e.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new X.Timeout(0);do{let e;for(let r of this.cronjobs.getArray())r.checkExecution(),(!e||r.getTimeToNextExecution()<e.getTimeToNextExecution())&&(e=r);e?(this.executionTimeout=new X.Timeout(e.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${Cu(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new X.Timeout(1e3),console.log("no cronjobs specified! Checking again in 1 second")),await this.executionTimeout.promise}while(this.status==="started")}stop(){this.status==="started"?(this.status="stopped",this.executionTimeout.cancel()):console.log("You tried to stop a CronManager that was not actually started.");for(let e of this.cronjobs.getArray())e.stop()}};var Fu=class t extends Date{static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let r=/(.*)\.(.*)\.(.*)/.exec(e),n=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new t(n)}static fromHyphedDate(e){let r=new Date(e).getTime();return new t(r)}static fromEuropeanDateAndTime(e,r="12:00:00",o="Europe/Berlin"){let n=/(.*)\.(.*)\.(.*)/.exec(e),i=c=>`0${c}`.slice(-2),s=`${n[3]}-${i(n[2])}-${i(n[1])}T${r}`,u=Gr.default(s).toDate().getTime();return new t(u)}constructor(e=Date.now()){super(e)}exportToEuropeanDate(){let e=this.exportToUnits();return`${e.dayString}.${e.monthString}.${e.yearString}`}exportToHyphedSortableDate(){let e=this.exportToUnits();return`${e.yearString}-${e.monthString}-${e.dayString}`}exportToUnits(){let e=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return{year:this.getFullYear(),yearString:`${this.getFullYear()}`,month:this.getMonth()+1,monthString:("0"+(this.getMonth()+1)).slice(-2),monthName:e[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(e){return Gr.default(this.getTime()).format(e)}isToday(){return Gr.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=Pu(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var $u=class{constructor(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}start(){this._started=!0,this._milliStart=Date.now()}stop(){if(this._started===!1){console.log("Hasn't started yet");return}return this._milliDiff=Date.now()-this._milliStart,this.nanoSeconds=this._milliDiff*1e3,this.milliSeconds=this._milliDiff,this}reset(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}};var Ru=class{constructor(e){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=e}start(){this.status="started";let e=new Date;this.statusAuthorization=e,(async()=>{for(;this.status==="started"&&this.statusAuthorization===e;)await X.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(e){this.intervalJobs.push(e)}executeIntervalJobs(){for(let e of this.intervalJobs)e()}};var Qr=class t{static fromMilliSeconds(e){return new t(e)}static fromTimeStamp(e){let r=new t;return r.change=r.milliSeconds-e.milliSeconds,r}constructor(e){this.change=null,e?typeof e=="number"&&(this.date=new Date(e)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,r=0){return this.milliSeconds<e.milliSeconds-r}isOlderThan(e,r=0){return this.milliSeconds+r<e.milliSeconds}isYoungerThanOtherTimeStamp(e,r=0){return this.milliSeconds>e.milliSeconds+r}isYoungerThanMilliSeconds(e){let o=new t().epochtime-e,n=new t(o);return this.isYoungerThanOtherTimeStamp(n)}};var Wu=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=K.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new Qr;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Qr.fromTimeStamp(this.startedAt))}resume(){if(this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeLeft);else throw new Error("timer has NOT been started before. Please use .start() instead")}reset(){this.pause(),this.startedAt=null,this.pausedAt=null}};var Lu=nt(Vl(),1);var Bu=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(e,r){let o=K.defer(),n={funcToExecute:e,executionDeferred:o,timeout:r,mode:"exclusive"};return this.executionSlots.push(n),this.processExecutionSlots(),o.promise}async getNonExclusiveExecutionSlot(e,r){let o=K.defer(),n={funcToExecute:e,executionDeferred:o,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(n),this.processExecutionSlots(),o.promise}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let e=this.executionSlots[0];if(e.mode==="exclusive")await this.executeExclusiveSlot(e),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(e){try{if(e.timeout){let r=await Promise.race([e.funcToExecute(),X.delayFor(e.timeout).then(()=>{throw new Error("Timeout reached")})]);e.executionDeferred.resolve(r)}else{let r=await e.funcToExecute();e.executionDeferred.resolve(r)}}catch(r){e.executionDeferred.reject(r)}}async executeNonExclusiveSlots(e){let r=e.map(async o=>{try{if(o.timeout){let n=await Promise.race([o.funcToExecute(),X.delayFor(o.timeout).then(()=>{throw new Error("Timeout reached")})]);o.executionDeferred.resolve(n)}else{let n=await o.funcToExecute();o.executionDeferred.resolve(n)}}catch(n){o.executionDeferred.reject(n)}});await Promise.all(r)}};var Yu=class{constructor(e=16){this.hasSpace=new st.rxjs.Subject,this.itemsAvailable=new st.rxjs.Subject,this.data=[],this.highWaterMark=e}push(e){this.data.push(e),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}shift(){let e=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),e}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(e=>{if(this.checkSpaceAvailable())e();else{let r=this.hasSpace.subscribe(()=>{r.unsubscribe(),e()})}})}waitForItems(){return new Promise(e=>{if(this.data.length>0)e();else{let r=this.itemsAvailable.subscribe(()=>{r.unsubscribe(),e()})}})}};var Zo=class t{constructor(){this.mapObject={}}isUniqueKey(e){return!this.mapObject[e]}addToMap(e,r,o){return this.isUniqueKey(e)||o&&o.force?(this.mapObject[e]=r,!0):!1}getByKey(e){return this.mapObject[e]}removeFromMap(e){let r=this.getByKey(e);return delete this.mapObject[e],r}getKeys(){let e=[];for(let r in this.mapObject)this.mapObject[r]&&e.push(r);return e}clean(){this.mapObject={}}concat(e){let r=new t;for(let o of this.getKeys())r.addToMap(o,this.getByKey(o));for(let o of e.getKeys())r.addToMap(o,e.getByKey(o),{force:!0});return r}addAllFromOther(e){for(let r of e.getKeys())this.addToMap(r,e.getByKey(r),{force:!0})}async find(e){for(let r of this.getKeys()){let o=this.getByKey(r);if(await e(o))return o}}};var Gl=(t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),dr=class t{constructor(){this.fastMap=new Zo,this.eventSubject=new st.rxjs.Subject}addMappedUnique(e,r){this.fastMap.addToMap(e,r)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let r=this.getMappedUnique(e)}add(e){for(let o of this.fastMap.getKeys())if(this.fastMap.getByKey(o)===e)return o;let r=Gl("key");return this.addMappedUnique(r,e),this.eventSubject.next({operation:"add",payload:e}),r}addArray(e){for(let r of e)this.add(r)}checkForObject(e){return!!this.getKeyForObject(e)}getKeyForObject(e){let r=null;for(let o of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(o)===e)r=o;else continue;return r}async find(e){return this.fastMap.find(e)}findSync(e){for(let r of this.fastMap.getKeys())if(e(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(e){let r=await this.find(e);return r&&this.remove(r),r}findOneAndRemoveSync(e){let r=this.findSync(e);return r&&this.remove(r),r}async forEach(e){for(let r of this.fastMap.getKeys())await e(this.fastMap.getByKey(r))}getOneAndRemove(){let e=this.fastMap.getKeys();if(e.length===0)return null;{let r=e[0],o=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:o}),o}}getArray(){let e=[];for(let r of this.fastMap.getKeys())e.push(this.fastMap.getByKey(r));return e}isEmpty(){return this.fastMap.getKeys().length===0}remove(e){if(this.checkForObject(e)){let r=this.getKeyForObject(e),o=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:o}),o}return null}wipe(){for(let e of this.fastMap.getKeys())this.fastMap.removeFromMap(e)}concat(e){let r=new t;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(e.fastMap),r}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap)}};var en=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e)}constructor(e,r,o,n){this.destructionTimer=new Tt.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new K.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=e,this.originalInterest=r,this.comparisonFunc=o,this.options=n,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&X.delayFor(this.options.markLostAfterDefault).then(this.markLost)}destroy(){this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options.defaultFullfillment&&this.fullfillInterest(this.options.defaultFullfillment)}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var qu=class{constructor(e,r={}){this.interestObjectMap=new dr,this.interestObservable=new st.ObservableIntake,this.comparisonFunc=e,this.options=r}async addInterest(e,r){let o=this.comparisonFunc(e),n,i=new en(this,e,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===i.comparisonString&&(console.log("info",`interest already exists for ${i.comparisonString}`),s=!0,n=a,n.renew())}),n||(n=i,this.interestObjectMap.add(n)),this.interestObservable.push(n),n}removeInterest(e){let r=this.interestObjectMap.findOneAndRemoveSync(o=>e.comparisonString===o.comparisonString)}checkInterest(e){let r=this.comparisonFunc(e);return this.checkInterestByString(r)}checkInterestByString(e){return!!this.interestObjectMap.findSync(o=>o.comparisonString===e)}informLostInterest(e){let r=this.findInterest(e);r&&r.markLost()}findInterest(e){let r=this.comparisonFunc(e);return this.interestObjectMap.findSync(n=>n.comparisonString===r)}};var Hu=class{constructor(e){this.array=[],this.arrayLimit=e}addOne(e){this.array.unshift(e),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(e){for(let r of e)this.addOne(r)}setLimit(e){this.arrayLimit=e,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let e=0;for(let r of this.array)e=e+r;return e/this.array.length}else return null}};var ju=class{constructor(){this.referenceObjectMap=new dr}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var zu=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(e){this._stringArray.push(e),this.notifyTrigger()}addStringArray(e){for(let r of e)this.addString(r)}removeString(e){for(let r in this._stringArray)this._stringArray[r]===e&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(e){return this._stringArray.indexOf(e)!==-1}checkMinimatch(e){let r=new qn.SmartMatch(e),o=!1;for(let n of this._stringArray)r.match(n)&&(o=!0);return o}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let e=[];for(let r of this._stringArray)e.push(r);return e}registerUntilTrue(e,r){let o=K.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let n=e(this.getStringArray());return n===!0&&(r&&r(),o.resolve()),n}),this.notifyTrigger(),o.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=e}};var Vu=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new Tt.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],e(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||e()}add(e){this.storageArray.push(e),this.checkAggregationStatus()}};var Gu=class{constructor(){this.symbolTree=new Lu.default}initialize(e){return this.symbolTree.initialize(e)}hasChildren(e){return this.symbolTree.hasChildren(e)}firstChild(e){return this.symbolTree.firstChild(e)}lastChild(e){return this.symbolTree.lastChild(e)}previousSibling(e){return this.symbolTree.previousSibling(e)}nextSibling(e){return this.symbolTree.nextSibling(e)}parent(e){return this.symbolTree.parent(e)}lastInclusiveDescendant(e){return this.symbolTree.lastInclusiveDescendant(e)}preceding(e,r){return this.symbolTree.preceding(e,r)}following(e,r){return this.symbolTree.following(e,r)}childrenToArray(e,r){return this.symbolTree.childrenToArray(e,r)}ancestorsToArray(e,r){return this.symbolTree.ancestorsToArray(e,r)}treeToArray(e,r){return this.symbolTree.treeToArray(e,r)}childrenIterator(e,r){return this.symbolTree.childrenIterator(e,r)}previousSiblingsIterator(e){return this.symbolTree.previousSiblingsIterator(e)}nextSiblingsIterator(e){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(e){this.symbolTree.ancestorsIterator()}treeIterator(e,r){return this.symbolTree.treeIterator(e)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,r){return this.compareTreePosition(e,r)}remove(e){return this.symbolTree.remove(e)}insertBefore(e,r){return this.symbolTree.insertBefore(e,r)}insertAfter(e,r){return this.symbolTree.insertAfter(e,r)}prependChild(e,r){return this.symbolTree.prependChild(e,r)}appendChild(e,r){return this.symbolTree.appendChild(e,r)}toJsonWithHierachy(e){let r=this.treeIterator(e,{});for(let o of r)console.log(o)}fromJsonWithHierachy(e){}};var rn={};re(rn,{base64ToUint8Array:()=>rw,ensurePureUint8Array:()=>iw,isBufferLike:()=>nw,isUint8Array:()=>ow,uInt8ArrayExtras:()=>ew,uInt8ArrayToBase64:()=>tw});var hr={};re(hr,{areUint8ArraysEqual:()=>Lv,assertUint8Array:()=>Wt,assertUint8ArrayOrArrayBuffer:()=>Xl,base64ToString:()=>Vv,base64ToUint8Array:()=>rp,compareUint8Arrays:()=>Bv,concatUint8Arrays:()=>Uv,getUintBE:()=>Jv,hexToUint8Array:()=>Qv,includes:()=>Xv,indexOf:()=>op,isUint8Array:()=>Ku,stringToBase64:()=>zv,stringToUint8Array:()=>ep,toUint8Array:()=>Wv,uint8ArrayToBase64:()=>tp,uint8ArrayToHex:()=>Kv,uint8ArrayToString:()=>Zl});var Cv=Object.prototype.toString,Nv="[object Uint8Array]",Fv="[object ArrayBuffer]";function Jl(t,e,r){return t?t.constructor===e?!0:Cv.call(t)===r:!1}function Ku(t){return Jl(t,Uint8Array,Nv)}function $v(t){return Jl(t,ArrayBuffer,Fv)}function Rv(t){return Ku(t)||$v(t)}function Wt(t){if(!Ku(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}function Xl(t){if(!Rv(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}function Wv(t){if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new TypeError(`Unsupported value, got \`${typeof t}\`.`)}function Uv(t,e){if(t.length===0)return new Uint8Array(0);e??=t.reduce((n,i)=>n+i.length,0);let r=new Uint8Array(e),o=0;for(let n of t)Wt(n),r.set(n,o),o+=n.length;return r}function Lv(t,e){if(Wt(t),Wt(e),t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function Bv(t,e){Wt(t),Wt(e);let r=Math.min(t.length,e.length);for(let o=0;o<r;o++){let n=t[o]-e[o];if(n!==0)return Math.sign(n)}return Math.sign(t.length-e.length)}var Kl={utf8:new globalThis.TextDecoder("utf8")};function Zl(t,e="utf8"){return Xl(t),Kl[e]??=new globalThis.TextDecoder(e),Kl[e].decode(t)}function tn(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}var Yv=new globalThis.TextEncoder;function ep(t){return tn(t),Yv.encode(t)}function qv(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Hv(t){return t.replaceAll("-","+").replaceAll("_","/")}var jv=65535;function tp(t,{urlSafe:e=!1}={}){Wt(t);let r;if(t.length<jv)r=globalThis.btoa(String.fromCodePoint.apply(this,t));else{r="";for(let o of t)r+=String.fromCodePoint(o);r=globalThis.btoa(r)}return e?qv(r):r}function rp(t){return tn(t),Uint8Array.from(globalThis.atob(Hv(t)),e=>e.codePointAt(0))}function zv(t,{urlSafe:e=!1}={}){return tn(t),tp(ep(t),{urlSafe:e})}function Vv(t){return tn(t),Zl(rp(t))}var Gv=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Kv(t){Wt(t);let e="";for(let r=0;r<t.length;r++)e+=Gv[t[r]];return e}var Ql={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,b:11,c:12,d:13,e:14,f:15,A:10,B:11,C:12,D:13,E:14,F:15};function Qv(t){if(tn(t),t.length%2!==0)throw new Error("Invalid Hex string length.");let e=t.length/2,r=new Uint8Array(e);for(let o=0;o<e;o++){let n=Ql[t[o*2]],i=Ql[t[o*2+1]];if(n===void 0||i===void 0)throw new Error(`Invalid Hex character encountered at position ${o*2}`);r[o]=n<<4|i}return r}function Jv(t){let{byteLength:e}=t;if(e===6)return t.getUint16(0)*2**32+t.getUint32(2);if(e===5)return t.getUint8(0)*2**32+t.getUint32(1);if(e===4)return t.getUint32(0);if(e===3)return t.getUint8(0)*2**16+t.getUint16(1);if(e===2)return t.getUint16(0);if(e===1)return t.getUint8(0)}function op(t,e){let r=t.length,o=e.length;if(o===0||o>r)return-1;let n=r-o;for(let i=0;i<=n;i++){let s=!0;for(let a=0;a<o;a++)if(t[i+a]!==e[a]){s=!1;break}if(s)return i}return-1}function Xv(t,e){return op(t,e)!==-1}var ew=hr;function tw(t){return hr.uint8ArrayToBase64(t)}function rw(t){return hr.base64ToUint8Array(t)}var ow=t=>hr.isUint8Array(t);function nw(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}function iw(t){let e=new Uint8Array(t.length);return e.set(t),e}var ps={};re(ps,{Guard:()=>on,GuardError:()=>nn,GuardSet:()=>sn,passGuardsOrReject:()=>sw});var on=class{constructor(e,r){this.guardFunction=e,this.options=r}async exec(e){return await this.guardFunction(e)}async getFailedHint(e){return await this.exec(e)?null:this.options.failedHint}};var nn=class extends Error{constructor(e){super(e),this.name="GuardError"}};var sn=class extends on{constructor(e=[]){super(async r=>this.allGuardsPass(r)),this.guards=e}async execAllWithData(e,r={mode:"parallel",stopOnFail:!1}){let o=[];for(let i of this.guards){let s=i.exec(e);if(r.mode==="serial"&&await s,o.push(s),r.stopOnFail&&!await s)return await Promise.all(o)}return await Promise.all(o)}async allGuardsPass(e,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(e,r)).every(n=>n)}async anyGuardsPass(e){return(await this.execAllWithData(e,{mode:"parallel",stopOnFail:!1})).some(o=>o)}getFailedHint(e){for(let r of this.guards){let o=r.getFailedHint(e);if(o)return o}}};var sw=async(t,e)=>{let r=new sn(e);if(!await r.allGuardsPass(t)){let n=await r.getFailedHint(t);throw new nn(`Guards failed:
|
|
10
10
|
${n}
|
|
11
11
|
`)}};var js={};re(js,{WebRequest:()=>pf});var yr={};re(yr,{Smartenv:()=>an});var an=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}`);return}let o=await new Function(`return import('${e}')`)();return r&&await r(o),o}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let o=K.defer();if(globalThis.importScripts)globalThis.importScripts(e),o.resolve();else{let n=document.createElement("script");n.onload=()=>{o.resolve()},n.src=e,document.head.appendChild(n)}return await o.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var Xe={};re(Xe,{Smartjson:()=>of,deepEqualJsonLStrings:()=>fO,deepEqualObjects:()=>Qh,foldDec:()=>cO,parse:()=>On,parseBase64:()=>uO,parseJsonL:()=>iO,stringify:()=>xo,stringifyBase64:()=>aO,stringifyPretty:()=>sO});var wn={};re(wn,{Base64:()=>ks,Domain:()=>Ps,GitRepo:()=>Cs,base64:()=>lo,create:()=>Nc,docker:()=>Fc,indent:()=>Wc,normalize:()=>Uc,type:()=>Lc});var Nc={};re(Nc,{createCryptoRandomString:()=>d1,createRandomString:()=>m1});var Qd=nt(ua(),1),Jd=nt(gd(),1);var Td="3.7.7",zD=Td,fo=typeof Buffer=="function",bd=typeof TextDecoder=="function"?new TextDecoder:void 0,vd=typeof TextEncoder=="function"?new TextEncoder:void 0,VD="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bn=Array.prototype.slice.call(VD),_s=(t=>{let e={};return t.forEach((r,o)=>e[r]=o),e})(bn),GD=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Te=String.fromCharCode.bind(String),wd=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Od=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Md=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),_d=t=>{let e,r,o,n,i="",s=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|o<<8|n,i+=bn[e>>18&63]+bn[e>>12&63]+bn[e>>6&63]+bn[e&63]}return s?i.slice(0,s-3)+"===".substring(s):i},Ec=typeof btoa=="function"?t=>btoa(t):fo?t=>Buffer.from(t,"binary").toString("base64"):_d,Ic=fo?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let o=0,n=t.length;o<n;o+=4096)r.push(Te.apply(null,t.subarray(o,o+4096)));return Ec(r.join(""))},Is=(t,e=!1)=>e?Od(Ic(t)):Ic(t),KD=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Te(192|e>>>6)+Te(128|e&63):Te(224|e>>>12&15)+Te(128|e>>>6&63)+Te(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Te(240|e>>>18&7)+Te(128|e>>>12&63)+Te(128|e>>>6&63)+Te(128|e&63)}},QD=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Id=t=>t.replace(QD,KD),Sd=fo?t=>Buffer.from(t,"utf8").toString("base64"):vd?t=>Ic(vd.encode(t)):t=>Ec(Id(t)),co=(t,e=!1)=>e?Od(Sd(t)):Sd(t),Dd=t=>co(t,!0),JD=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,XD=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return Te((r>>>10)+55296)+Te((r&1023)+56320);case 3:return Te((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Te((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},Ad=t=>t.replace(JD,XD),Ed=t=>{if(t=t.replace(/\s+/g,""),!GD.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",o,n;for(let i=0;i<t.length;)e=_s[t.charAt(i++)]<<18|_s[t.charAt(i++)]<<12|(o=_s[t.charAt(i++)])<<6|(n=_s[t.charAt(i++)]),r+=o===64?Te(e>>16&255):n===64?Te(e>>16&255,e>>8&255):Te(e>>16&255,e>>8&255,e&255);return r},kc=typeof atob=="function"?t=>atob(Md(t)):fo?t=>Buffer.from(t,"base64").toString("binary"):Ed,kd=fo?t=>wd(Buffer.from(t,"base64")):t=>wd(kc(t).split("").map(e=>e.charCodeAt(0))),Pd=t=>kd(Cd(t)),ZD=fo?t=>Buffer.from(t,"base64").toString("utf8"):bd?t=>bd.decode(kd(t)):t=>Ad(kc(t)),Cd=t=>Md(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),Ac=t=>ZD(Cd(t)),e1=t=>{if(typeof t!="string")return!1;let e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},Nd=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Fd=function(){let t=(e,r)=>Object.defineProperty(String.prototype,e,Nd(r));t("fromBase64",function(){return Ac(this)}),t("toBase64",function(e){return co(this,e)}),t("toBase64URI",function(){return co(this,!0)}),t("toBase64URL",function(){return co(this,!0)}),t("toUint8Array",function(){return Pd(this)})},$d=function(){let t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,Nd(r));t("toBase64",function(e){return Is(this,e)}),t("toBase64URI",function(){return Is(this,!0)}),t("toBase64URL",function(){return Is(this,!0)})},t1=()=>{Fd(),$d()},vn={version:Td,VERSION:zD,atob:kc,atobPolyfill:Ed,btoa:Ec,btoaPolyfill:_d,fromBase64:Ac,toBase64:co,encode:co,encodeURI:Dd,encodeURL:Dd,utob:Id,btou:Ad,decode:Ac,isValid:e1,fromUint8Array:Is,toUint8Array:Pd,extendString:Fd,extendUint8Array:$d,extendBuiltins:t1};var Ud=nt(Wd(),1);function As(t){let e=(0,Ud.default)(t);if(e===0)return t;let r=new RegExp(`^[ \\t]{${e}}`,"gm");return t.replace(r,"")}var Cc=nt(Kd(),1),CG=new an;var m1=(t,e,r)=>Cc.default(t,e,r),d1=()=>Qd.uni();var Fc={};re(Fc,{makeEnvObject:()=>h1});var h1=function(t){let e={},r=/(.*)=(.*)/;if(typeof t<"u")for(let o in t){let n=r.exec(t[o]);e[n[1]]=n[2]}return e};var Wc={};re(Wc,{indent:()=>x1,indentWithPrefix:()=>g1,normalize:()=>b1});var $c=t=>{let e=t.split(`
|
|
12
12
|
`);return y1(e)},Rc=t=>{let e="";for(let r of t)e=e+r+`
|
|
@@ -81,7 +81,7 @@ ${n}
|
|
|
81
81
|
</div>
|
|
82
82
|
</div>
|
|
83
83
|
</div>
|
|
84
|
-
`}async connectedCallback(){super.connectedCallback(),this.updateTheme(),await this.csWebclientInstance.getCookieLevels()?(this.setAttribute("show","false"),this.setAttribute("gotIt","true")):(this.setAttribute("show","true"),this.setAttribute("gotIt","false"),requestAnimationFrame(async()=>{await this.updated();let o=this.shadowRoot?.querySelector(".pageOverlay");o&&(o.style.background="rgba(0, 0, 0, 0.1)",o.style.backdropFilter="blur(2px)");let n=this.shadowRoot?.querySelector(".modalBox");n&&(n.style.transform="scale(1)",n.style.opacity="1")}))}async firstUpdated(){}async updated(){console.log(`The height of the cookie banner is ${this.shadowRoot?.host?.clientHeight}px`);let r=await this.csWebclientInstance.getCookieLevels();!this.csWebclientRan&&r&&(this.csWebclientRan=!0,await this.csWebclientInstance.getAndRunConsentTuples())}async setLevel(r,o){console.log(`Set level to ${o}`),await this.csWebclientInstance.setCookieLevels(o),this.setAttribute("gotIt","true"),await
|
|
84
|
+
`}async connectedCallback(){super.connectedCallback(),this.updateTheme(),await this.csWebclientInstance.getCookieLevels()?(this.setAttribute("show","false"),this.setAttribute("gotIt","true")):(this.setAttribute("show","true"),this.setAttribute("gotIt","false"),requestAnimationFrame(async()=>{await this.updated();let o=this.shadowRoot?.querySelector(".pageOverlay");o&&(o.style.background="rgba(0, 0, 0, 0.1)",o.style.backdropFilter="blur(2px)");let n=this.shadowRoot?.querySelector(".modalBox");n&&(n.style.transform="scale(1)",n.style.opacity="1")}))}async firstUpdated(){}async updated(){console.log(`The height of the cookie banner is ${this.shadowRoot?.host?.clientHeight}px`);let r=await this.csWebclientInstance.getCookieLevels();!this.csWebclientRan&&r&&(this.csWebclientRan=!0,await this.csWebclientInstance.getAndRunConsentTuples())}async setLevel(r,o){console.log(`Set level to ${o}`),await this.csWebclientInstance.setCookieLevels(o),this.setAttribute("gotIt","true"),await Pt(300),this.setAttribute("show","false"),this.updated()}updateTheme(){let r=window.matchMedia("(prefers-color-scheme: dark)").matches;this.theme=r?"dark":"light",window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",o=>{this.theme=o.matches?"dark":"light"})}};Or.demo=()=>Re`<consentsoftware-cookieconsent></consentsoftware-cookieconsent>`,Or.styles=Ze`
|
|
85
85
|
:host {
|
|
86
86
|
font-family: ${$n};
|
|
87
87
|
/* Default theme variables */
|
|
@@ -248,7 +248,7 @@ ${n}
|
|
|
248
248
|
.heading {
|
|
249
249
|
|
|
250
250
|
}
|
|
251
|
-
`,go=Ce([it("consentsoftware-header")],go);var
|
|
251
|
+
`,go=Ce([it("consentsoftware-header")],go);var Yt=class extends Me{constructor(){super();this.required=!1;this.selected=!1}render(){return Re`
|
|
252
252
|
<div class="maincontainer">
|
|
253
253
|
<div class="itemBox">
|
|
254
254
|
<consentsoftware-toggle required>Required</consentsoftware-toggle>
|
|
@@ -263,7 +263,7 @@ ${n}
|
|
|
263
263
|
<consentsoftware-toggle>Marketing</consentsoftware-toggle>
|
|
264
264
|
</div>
|
|
265
265
|
</div>
|
|
266
|
-
`}async getResults(r){}};
|
|
266
|
+
`}async getResults(r){}};Yt.demo=()=>Re`<consentsoftware-mainselection></consentsoftware-mainselection>`,Yt.styles=Ze`
|
|
267
267
|
:host {
|
|
268
268
|
display: block;
|
|
269
269
|
position: relative;
|
|
@@ -283,7 +283,7 @@ ${n}
|
|
|
283
283
|
.itemBox:last-child {
|
|
284
284
|
border-right: none;
|
|
285
285
|
}
|
|
286
|
-
`,Ce([dt({type:Boolean})],
|
|
286
|
+
`,Ce([dt({type:Boolean})],Yt.prototype,"required",2),Ce([dt({type:Boolean})],Yt.prototype,"selected",2),Yt=Ce([it("consentsoftware-mainselection")],Yt);var Mr=class extends Me{constructor(){super();this.required=!1;this.selected=!1;this.currentX=0;this.isDragging=!1;this.hasDragged=!1;this.startX=0;this.knobWidth=30;this.trackWidth=60}render(){return Re`
|
|
287
287
|
<div class="label">${this.getText()}</div>
|
|
288
288
|
<!-- A user can click anywhere in this toggle area. -->
|
|
289
289
|
<div class="toggle" @click=${this.handleClick}>
|
|
@@ -301,7 +301,7 @@ ${n}
|
|
|
301
301
|
</div>
|
|
302
302
|
</div>
|
|
303
303
|
</div>
|
|
304
|
-
`}async firstUpdated(){this.required?(this.selected=!0,this.currentX=this.knobWidth,this.requestUpdate()):(this.currentX=this.selected?this.knobWidth:0,this.requestUpdate())}async handleClick(r){if(this.isDragging||this.hasDragged){r.stopPropagation(),r.preventDefault();return}if(this.required){this.currentX=this.knobWidth,this.requestUpdate(),await new Promise(o=>setTimeout(o,10)),this.currentX=20,this.requestUpdate(),await
|
|
304
|
+
`}async firstUpdated(){this.required?(this.selected=!0,this.currentX=this.knobWidth,this.requestUpdate()):(this.currentX=this.selected?this.knobWidth:0,this.requestUpdate())}async handleClick(r){if(this.isDragging||this.hasDragged){r.stopPropagation(),r.preventDefault();return}if(this.required){this.currentX=this.knobWidth,this.requestUpdate(),await new Promise(o=>setTimeout(o,10)),this.currentX=20,this.requestUpdate(),await Pt(200),this.currentX=this.knobWidth,this.requestUpdate();return}r.stopPropagation(),r.preventDefault(),this.selected=!this.selected,this.currentX=this.selected?this.knobWidth:0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("toggle",{detail:{selected:this.selected}})),Pt(0).then(()=>{this.hasDragged=!1})}onPointerDown(r){this.required||(this.isDragging=!0,this.startX=r.clientX-this.currentX,r.target.setPointerCapture(r.pointerId))}onPointerMove(r){if(!this.isDragging)return;let o=r.clientX-this.startX;this.hasDragged=!0,this.shadowRoot.querySelector(".toggleKnobInner").classList.add("dragging"),this.currentX=Math.max(0,Math.min(o,this.trackWidth-this.knobWidth)),this.requestUpdate()}onPointerUp(r){if(!this.isDragging||(r.target.releasePointerCapture(r.pointerId),this.isDragging=!1,!this.hasDragged))return;this.shadowRoot.querySelector(".toggleKnobInner").classList.remove("dragging");let n=(this.trackWidth-this.knobWidth)/2;this.selected=this.currentX>n,this.currentX=this.selected?this.knobWidth:0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("toggle",{detail:{selected:this.selected}})),Pt(0).then(()=>{this.hasDragged=!1})}updated(r){r.has("selected")&&!this.isDragging&&!this.hasDragged&&!this.required&&(this.currentX=this.selected?this.knobWidth:0,this.requestUpdate()),super.updated(r)}getText(){return this.textContent}};Mr.styles=Ze`
|
|
305
305
|
:host {
|
|
306
306
|
display: block;
|
|
307
307
|
position: relative;
|
|
@@ -402,7 +402,7 @@ ${n}
|
|
|
402
402
|
background: orange;
|
|
403
403
|
transition: all 0.2s;
|
|
404
404
|
}
|
|
405
|
-
`,bo=Ce([it("consentsoftware-tabs")],bo);export{Or as ConsentsoftwareCookieconsent,go as ConsentsoftwareHeader,
|
|
405
|
+
`,bo=Ce([it("consentsoftware-tabs")],bo);export{Or as ConsentsoftwareCookieconsent,go as ConsentsoftwareHeader,Yt as ConsentsoftwareMainSelection,bo as ConsentsoftwareTabs,Mr as ConsentsoftwareToggle};
|
|
406
406
|
/*! Bundled license information:
|
|
407
407
|
|
|
408
408
|
punycode/punycode.js:
|