@consent.software/catalog 1.5.4 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,20 @@
1
- var dy=Object.create;var En=Object.defineProperty;var bf=Object.getOwnPropertyDescriptor;var hy=Object.getOwnPropertyNames;var yy=Object.getPrototypeOf,xy=Object.prototype.hasOwnProperty;var vf=t=>{throw TypeError(t)};var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),re=(t,e)=>{for(var r in e)En(t,r,{get:e[r],enumerable:!0})},gy=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of hy(e))!xy.call(t,n)&&n!==r&&En(t,n,{get:()=>e[n],enumerable:!(o=bf(e,n))||o.enumerable});return t};var nt=(t,e,r)=>(r=t!=null?dy(yy(t)):{},gy(e||!t||!t.__esModule?En(r,"default",{value:t,enumerable:!0}):r,t));var Ce=(t,e,r,o)=>{for(var n=o>1?void 0:o?bf(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&&En(e,r,n),n};var wf=(t,e,r)=>e.has(t)||vf("Cannot "+r);var Js=(t,e,r)=>(wf(t,e,"read from private field"),r?r.call(t):e.get(t)),Xs=(t,e,r)=>e.has(t)?vf("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Zs=(t,e,r,o)=>(wf(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var la=A(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.uni=void 0;var Ny=(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=Ny});var Ul=A((ku,Iu)=>{(function(t,e){typeof ku=="object"&&typeof Iu<"u"?Iu.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(ku,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])+"]"}},E=function(P,v,b){var M=String(P);return!M||M.length>=v?P:""+Array(v+1-M.length).join(b)+P},D={s:E,z:function(P){var v=-P.utcOffset(),b=Math.abs(v),M=Math.floor(b/60),S=b%60;return(v<=0?"+":"-")+E(M,2,"0")+":"+E(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",B={};B[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();B[F]&&(S=F),b&&(B[F]=b,S=F);var x=v.split("-");if(!S&&x.length>1)return P(x[0])}else{var O=v.name;B[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,I=(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,I)):new Date(x[1],O,x[3]||1,x[4]||0,x[5]||0,x[6]||0,I)}}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)},I=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 I(ne+"Hours",0);case s:return I(ne+"Minutes",1);case i:return I(ne+"Seconds",2);case n:return I(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],I=F===a?this.$D+(M-this.$W):M;if(F===c||F===m){var $=this.clone().set(p,1);$.$d[O](I),$.init(),this.$d=$.set(p,Math.min(this.$D,$.daysInMonth())).$d}else O&&this.$d[O](I);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 I=(S={},S[i]=e,S[s]=r,S[n]=t,S)[x]||1,$=this.$d.getTime()+b*I;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,I=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,I,!0);case"A":return he(O,I,!1);case"m":return String(I);case"mm":return N.s(I,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),I=q(b),$=(I.utcOffset()-this.utcOffset())*e,U=this-I,J=function(){return N.m(x,I)};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 B[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}(),Be=se.prototype;return q.prototype=Be,[["$ms",o],["$s",n],["$m",i],["$H",s],["$W",a],["$M",c],["$y",m],["$D",p]].forEach(function(P){Be[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=B[T],q.Ls=B,q.p={},q})});var Bl=A((Pu,Cu)=>{(function(t,e){typeof Pu=="object"&&typeof Cu<"u"?Cu.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(Pu,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 Hl=A((R9,ql)=>{"use strict";ql.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 zl=A((W9,jl)=>{"use strict";jl.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var Jl=A((U9,Ql)=>{"use strict";var Vl=Symbol(),Gl=Symbol(),Ft=Symbol(),Kl=Symbol(),ot=class{constructor(e,r,o,n){this[Vl]=e,this[Gl]=r,this[Ft]=o,this[Kl]=n}next(){let e=this[Vl],r=this[Kl],o=this[Gl];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);Ql.exports=ot});var Zl=A((B9,Xl)=>{"use strict";var Bv=Hl(),$t=zl(),Qe=Jl();function Yu(){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 Bv)}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||Yu,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||Yu,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||Yu,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}};Xl.exports=ls;ls.TreePosition=$t});var fp=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,E={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,B=String.fromCharCode,V;function z(x){throw new RangeError(E[x])}function de(x,O){for(var I=x.length,$=[];I--;)$[I]=O(x[I]);return $}function q(x,O){var I=x.split("@"),$="";I.length>1&&($=I[0]+"@",x=I[1]),x=x.replace(g,".");var U=x.split("."),J=de(U,O).join(".");return $+J}function N(x){for(var O=[],I=0,$=x.length,U,J;I<$;)U=x.charCodeAt(I++),U>=55296&&U<=56319&&I<$?(J=x.charCodeAt(I++),(J&64512)==56320?O.push(((U&1023)<<10)+(J&1023)+65536):(O.push(U),I--)):O.push(U);return O}function se(x){return de(x,function(O){var I="";return O>65535&&(O-=65536,I+=B(O>>>10&1023|55296),O=56320|O&1023),I+=B(O),I}).join("")}function Be(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,I){var $=0;for(x=I?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=[],I=x.length,$,U=0,J=p,ne=m,ce,Se,he,ie,te,ye,Oe,It,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<I;){for(ie=U,te=1,ye=s;he>=I&&z("invalid-input"),Oe=Be(x.charCodeAt(he++)),(Oe>=s||Oe>T((i-U)/te))&&z("overflow"),U+=Oe*te,It=ye<=ne?a:ye>=ne+u?u:ye-ne,!(Oe<It);ye+=s)qt=s-It,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,I,$,U,J,ne,ce,Se,he,ie,te,ye=[],Oe,It,qt,Qs;for(x=N(x),Oe=x.length,O=p,I=0,J=m,ne=0;ne<Oe;++ne)te=x[ne],te<128&&ye.push(B(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(It=$+1,ce-O>T((i-I)/It)&&z("overflow"),I+=(ce-O)*It,O=ce,ne=0;ne<Oe;++ne)if(te=x[ne],te<O&&++I>i&&z("overflow"),te==O){for(Se=I,he=s;ie=he<=J?a:he>=J+u?u:he-J,!(Se<ie);he+=s)Qs=Se-ie,qt=s-ie,ye.push(B(P(ie+Qs%qt,0))),Se=T(Qs/qt);ye.push(B(P(Se,0))),J=v(I,It,$==U),I=0,++$}++I,++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((WV,lp)=>{"use strict";lp.exports=TypeError});var pp=A(()=>{});var ln=A((LV,Pp)=>{var uc=typeof Map=="function"&&Map.prototype,Zu=Object.getOwnPropertyDescriptor&&uc?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ds=uc&&Zu&&typeof Zu.get=="function"?Zu.get:null,mp=uc&&Map.prototype.forEach,cc=typeof Set=="function"&&Set.prototype,ec=Object.getOwnPropertyDescriptor&&cc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,hs=cc&&ec&&typeof ec.get=="function"?ec.get:null,dp=cc&&Set.prototype.forEach,yw=typeof WeakMap=="function"&&WeakMap.prototype,cn=yw?WeakMap.prototype.has:null,xw=typeof WeakSet=="function"&&WeakSet.prototype,fn=xw?WeakSet.prototype.has:null,gw=typeof WeakRef=="function"&&WeakRef.prototype,hp=gw?WeakRef.prototype.deref:null,bw=Boolean.prototype.valueOf,vw=Object.prototype.toString,ww=Function.prototype.toString,Sw=String.prototype.match,fc=String.prototype.slice,Ut=String.prototype.replace,Dw=String.prototype.toUpperCase,yp=String.prototype.toLowerCase,Op=RegExp.prototype.test,xp=Array.prototype.concat,ut=Array.prototype.join,Tw=Array.prototype.slice,gp=Math.floor,oc=typeof BigInt=="function"?BigInt.prototype.valueOf:null,tc=Object.getOwnPropertySymbols,nc=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,Mp=Object.prototype.propertyIsEnumerable,bp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function vp(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Op.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var o=t<0?-gp(-t):gp(t);if(o!==t){var n=String(o),i=fc.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 ic=pp(),wp=ic.custom,Sp=Ap(wp)?wp:null,_p={__proto__:null,double:'"',single:"'"},Ow={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Pp.exports=function t(e,r,o,n){var i=r||{};if(Mt(i,"quoteStyle")&&!Mt(_p,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Mt(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=Mt(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(Mt(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(Mt(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 Ip(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?vp(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?vp(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 sc(e)?"[Array]":"[Object]";var m=qw(i,o);if(typeof n>"u")n=[];else if(kp(n,e)>=0)return"[Circular]";function p(v,b,M){if(b&&(n=Tw.call(n),n.push(b)),M){var S={depth:i.depth};return Mt(i,"quoteStyle")&&(S.quoteStyle=i.quoteStyle),t(v,S,o+1,n)}return t(v,i,o+1,n)}if(typeof e=="function"&&!Dp(e)){var d=Nw(e),y=ms(e,p);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+ut.call(y,", ")+" }":"")}if(Ap(e)){var w=eo?Ut.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):nc.call(e);return typeof e=="object"&&!eo?un(w):w}if(Bw(e)){for(var g="<"+yp.call(String(e.nodeName)),E=e.attributes||[],D=0;D<E.length;D++)g+=" "+E[D].name+"="+Ep(Mw(E[D].value),"double",i);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+yp.call(String(e.nodeName))+">",g}if(sc(e)){if(e.length===0)return"[]";var T=ms(e,p);return m&&!Yw(T)?"["+ac(T,m)+"]":"[ "+ut.call(T,", ")+" ]"}if(Ew(e)){var B=ms(e,p);return!("cause"in Error.prototype)&&"cause"in e&&!Mp.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(xp.call("[cause]: "+p(e.cause),B),", ")+" }":B.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(B,", ")+" }"}if(typeof e=="object"&&s){if(Sp&&typeof e[Sp]=="function"&&ic)return ic(e,{depth:f-o});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Fw(e)){var V=[];return mp&&mp.call(e,function(v,b){V.push(p(b,e,!0)+" => "+p(v,e))}),Tp("Map",ds.call(e),V,m)}if(Ww(e)){var z=[];return dp&&dp.call(e,function(v){z.push(p(v,e))}),Tp("Set",hs.call(e),z,m)}if($w(e))return rc("WeakMap");if(Uw(e))return rc("WeakSet");if(Rw(e))return rc("WeakRef");if(kw(e))return un(p(Number(e)));if(Pw(e))return un(p(oc.call(e)));if(Iw(e))return un(bw.call(e));if(Aw(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(!_w(e)&&!Dp(e)){var de=ms(e,p),q=bp?bp(e)===Object.prototype:e instanceof Object||e.constructor===Object,N=e instanceof Object?"":"null prototype",se=!q&&Pe&&Object(e)===e&&Pe in e?fc.call(Bt(e),8,-1):N?"Object":"",Be=q||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",P=Be+(se||N?"["+ut.call(xp.call([],se||[],N||[]),": ")+"] ":"");return de.length===0?P+"{}":m?P+"{"+ac(de,m)+"}":P+"{ "+ut.call(de,", ")+" }"}return String(e)};function Ep(t,e,r){var o=r.quoteStyle||e,n=_p[o];return n+t+n}function Mw(t){return Ut.call(String(t),/"/g,"&quot;")}function sc(t){return Bt(t)==="[object Array]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function _w(t){return Bt(t)==="[object Date]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Dp(t){return Bt(t)==="[object RegExp]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Ew(t){return Bt(t)==="[object Error]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Aw(t){return Bt(t)==="[object String]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function kw(t){return Bt(t)==="[object Number]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Iw(t){return Bt(t)==="[object Boolean]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Ap(t){if(eo)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!nc)return!1;try{return nc.call(t),!0}catch{}return!1}function Pw(t){if(!t||typeof t!="object"||!oc)return!1;try{return oc.call(t),!0}catch{}return!1}var Cw=Object.prototype.hasOwnProperty||function(t){return t in this};function Mt(t,e){return Cw.call(t,e)}function Bt(t){return vw.call(t)}function Nw(t){if(t.name)return t.name;var e=Sw.call(ww.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function kp(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 Fw(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 $w(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 Rw(t){if(!hp||!t||typeof t!="object")return!1;try{return hp.call(t),!0}catch{}return!1}function Ww(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 Uw(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 Bw(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Ip(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return Ip(fc.call(t,0,e.maxStringLength),e)+o}var n=Ow[e.quoteStyle||"single"];n.lastIndex=0;var i=Ut.call(Ut.call(t,n,"\\$1"),/[\x00-\x1f]/g,Lw);return Ep(i,"single",e)}function Lw(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":"")+Dw.call(e.toString(16))}function un(t){return"Object("+t+")"}function rc(t){return t+" { ? }"}function Tp(t,e,r,o){var n=o?ac(r,o):ut.call(r,", ");return t+" ("+e+") {"+n+"}"}function Yw(t){for(var e=0;e<t.length;e++)if(kp(t[e],`
1
+ var dy=Object.create;var En=Object.defineProperty;var bf=Object.getOwnPropertyDescriptor;var hy=Object.getOwnPropertyNames;var yy=Object.getPrototypeOf,xy=Object.prototype.hasOwnProperty;var vf=t=>{throw TypeError(t)};var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),re=(t,e)=>{for(var r in e)En(t,r,{get:e[r],enumerable:!0})},gy=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of hy(e))!xy.call(t,n)&&n!==r&&En(t,n,{get:()=>e[n],enumerable:!(o=bf(e,n))||o.enumerable});return t};var nt=(t,e,r)=>(r=t!=null?dy(yy(t)):{},gy(e||!t||!t.__esModule?En(r,"default",{value:t,enumerable:!0}):r,t));var Ce=(t,e,r,o)=>{for(var n=o>1?void 0:o?bf(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&&En(e,r,n),n};var wf=(t,e,r)=>e.has(t)||vf("Cannot "+r);var Js=(t,e,r)=>(wf(t,e,"read from private field"),r?r.call(t):e.get(t)),Xs=(t,e,r)=>e.has(t)?vf("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Zs=(t,e,r,o)=>(wf(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r);var la=A(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.uni=void 0;var Ny=(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=Ny});var Ul=A((Iu,ku)=>{(function(t,e){typeof Iu=="object"&&typeof ku<"u"?ku.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Iu,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])+"]"}},E=function(P,v,b){var M=String(P);return!M||M.length>=v?P:""+Array(v+1-M.length).join(b)+P},D={s:E,z:function(P){var v=-P.utcOffset(),b=Math.abs(v),M=Math.floor(b/60),S=b%60;return(v<=0?"+":"-")+E(M,2,"0")+":"+E(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",B={};B[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();B[F]&&(S=F),b&&(B[F]=b,S=F);var x=v.split("-");if(!S&&x.length>1)return P(x[0])}else{var O=v.name;B[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 B[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}(),Be=se.prototype;return q.prototype=Be,[["$ms",o],["$s",n],["$m",i],["$H",s],["$W",a],["$M",c],["$y",m],["$D",p]].forEach(function(P){Be[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=B[T],q.Ls=B,q.p={},q})});var Bl=A((Pu,Cu)=>{(function(t,e){typeof Pu=="object"&&typeof Cu<"u"?Cu.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(Pu,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 Hl=A((R9,ql)=>{"use strict";ql.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 zl=A((W9,jl)=>{"use strict";jl.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var Jl=A((U9,Ql)=>{"use strict";var Vl=Symbol(),Gl=Symbol(),Ft=Symbol(),Kl=Symbol(),ot=class{constructor(e,r,o,n){this[Vl]=e,this[Gl]=r,this[Ft]=o,this[Kl]=n}next(){let e=this[Vl],r=this[Kl],o=this[Gl];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);Ql.exports=ot});var Zl=A((B9,Xl)=>{"use strict";var Bv=Hl(),$t=zl(),Qe=Jl();function Yu(){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 Bv)}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||Yu,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||Yu,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||Yu,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}};Xl.exports=ls;ls.TreePosition=$t});var fp=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,E={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,B=String.fromCharCode,V;function z(x){throw new RangeError(E[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+=B(O>>>10&1023|55296),O=56320|O&1023),k+=B(O),k}).join("")}function Be(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,kt,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=Be(x.charCodeAt(he++)),(Oe>=s||Oe>T((i-U)/te))&&z("overflow"),U+=Oe*te,kt=ye<=ne?a:ye>=ne+u?u:ye-ne,!(Oe<kt);ye+=s)qt=s-kt,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,kt,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(B(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(kt=$+1,ce-O>T((i-k)/kt)&&z("overflow"),k+=(ce-O)*kt,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(B(P(ie+Qs%qt,0))),Se=T(Qs/qt);ye.push(B(P(Se,0))),J=v(k,kt,$==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((WV,lp)=>{"use strict";lp.exports=TypeError});var pp=A(()=>{});var ln=A((LV,Pp)=>{var uc=typeof Map=="function"&&Map.prototype,Zu=Object.getOwnPropertyDescriptor&&uc?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ds=uc&&Zu&&typeof Zu.get=="function"?Zu.get:null,mp=uc&&Map.prototype.forEach,cc=typeof Set=="function"&&Set.prototype,ec=Object.getOwnPropertyDescriptor&&cc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,hs=cc&&ec&&typeof ec.get=="function"?ec.get:null,dp=cc&&Set.prototype.forEach,yw=typeof WeakMap=="function"&&WeakMap.prototype,cn=yw?WeakMap.prototype.has:null,xw=typeof WeakSet=="function"&&WeakSet.prototype,fn=xw?WeakSet.prototype.has:null,gw=typeof WeakRef=="function"&&WeakRef.prototype,hp=gw?WeakRef.prototype.deref:null,bw=Boolean.prototype.valueOf,vw=Object.prototype.toString,ww=Function.prototype.toString,Sw=String.prototype.match,fc=String.prototype.slice,Ut=String.prototype.replace,Dw=String.prototype.toUpperCase,yp=String.prototype.toLowerCase,Op=RegExp.prototype.test,xp=Array.prototype.concat,ut=Array.prototype.join,Tw=Array.prototype.slice,gp=Math.floor,oc=typeof BigInt=="function"?BigInt.prototype.valueOf:null,tc=Object.getOwnPropertySymbols,nc=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,Mp=Object.prototype.propertyIsEnumerable,bp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function vp(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Op.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var o=t<0?-gp(-t):gp(t);if(o!==t){var n=String(o),i=fc.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 ic=pp(),wp=ic.custom,Sp=Ap(wp)?wp:null,_p={__proto__:null,double:'"',single:"'"},Ow={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Pp.exports=function t(e,r,o,n){var i=r||{};if(Mt(i,"quoteStyle")&&!Mt(_p,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Mt(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=Mt(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(Mt(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(Mt(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 kp(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?vp(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?vp(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 sc(e)?"[Array]":"[Object]";var m=qw(i,o);if(typeof n>"u")n=[];else if(Ip(n,e)>=0)return"[Circular]";function p(v,b,M){if(b&&(n=Tw.call(n),n.push(b)),M){var S={depth:i.depth};return Mt(i,"quoteStyle")&&(S.quoteStyle=i.quoteStyle),t(v,S,o+1,n)}return t(v,i,o+1,n)}if(typeof e=="function"&&!Dp(e)){var d=Nw(e),y=ms(e,p);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(y.length>0?" { "+ut.call(y,", ")+" }":"")}if(Ap(e)){var w=eo?Ut.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):nc.call(e);return typeof e=="object"&&!eo?un(w):w}if(Bw(e)){for(var g="<"+yp.call(String(e.nodeName)),E=e.attributes||[],D=0;D<E.length;D++)g+=" "+E[D].name+"="+Ep(Mw(E[D].value),"double",i);return g+=">",e.childNodes&&e.childNodes.length&&(g+="..."),g+="</"+yp.call(String(e.nodeName))+">",g}if(sc(e)){if(e.length===0)return"[]";var T=ms(e,p);return m&&!Yw(T)?"["+ac(T,m)+"]":"[ "+ut.call(T,", ")+" ]"}if(Ew(e)){var B=ms(e,p);return!("cause"in Error.prototype)&&"cause"in e&&!Mp.call(e,"cause")?"{ ["+String(e)+"] "+ut.call(xp.call("[cause]: "+p(e.cause),B),", ")+" }":B.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ut.call(B,", ")+" }"}if(typeof e=="object"&&s){if(Sp&&typeof e[Sp]=="function"&&ic)return ic(e,{depth:f-o});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Fw(e)){var V=[];return mp&&mp.call(e,function(v,b){V.push(p(b,e,!0)+" => "+p(v,e))}),Tp("Map",ds.call(e),V,m)}if(Ww(e)){var z=[];return dp&&dp.call(e,function(v){z.push(p(v,e))}),Tp("Set",hs.call(e),z,m)}if($w(e))return rc("WeakMap");if(Uw(e))return rc("WeakSet");if(Rw(e))return rc("WeakRef");if(Iw(e))return un(p(Number(e)));if(Pw(e))return un(p(oc.call(e)));if(kw(e))return un(bw.call(e));if(Aw(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(!_w(e)&&!Dp(e)){var de=ms(e,p),q=bp?bp(e)===Object.prototype:e instanceof Object||e.constructor===Object,N=e instanceof Object?"":"null prototype",se=!q&&Pe&&Object(e)===e&&Pe in e?fc.call(Bt(e),8,-1):N?"Object":"",Be=q||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",P=Be+(se||N?"["+ut.call(xp.call([],se||[],N||[]),": ")+"] ":"");return de.length===0?P+"{}":m?P+"{"+ac(de,m)+"}":P+"{ "+ut.call(de,", ")+" }"}return String(e)};function Ep(t,e,r){var o=r.quoteStyle||e,n=_p[o];return n+t+n}function Mw(t){return Ut.call(String(t),/"/g,"&quot;")}function sc(t){return Bt(t)==="[object Array]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function _w(t){return Bt(t)==="[object Date]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Dp(t){return Bt(t)==="[object RegExp]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Ew(t){return Bt(t)==="[object Error]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Aw(t){return Bt(t)==="[object String]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Iw(t){return Bt(t)==="[object Number]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function kw(t){return Bt(t)==="[object Boolean]"&&(!Pe||!(typeof t=="object"&&Pe in t))}function Ap(t){if(eo)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!nc)return!1;try{return nc.call(t),!0}catch{}return!1}function Pw(t){if(!t||typeof t!="object"||!oc)return!1;try{return oc.call(t),!0}catch{}return!1}var Cw=Object.prototype.hasOwnProperty||function(t){return t in this};function Mt(t,e){return Cw.call(t,e)}function Bt(t){return vw.call(t)}function Nw(t){if(t.name)return t.name;var e=Sw.call(ww.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Ip(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 Fw(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 $w(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 Rw(t){if(!hp||!t||typeof t!="object")return!1;try{return hp.call(t),!0}catch{}return!1}function Ww(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 Uw(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 Bw(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function kp(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return kp(fc.call(t,0,e.maxStringLength),e)+o}var n=Ow[e.quoteStyle||"single"];n.lastIndex=0;var i=Ut.call(Ut.call(t,n,"\\$1"),/[\x00-\x1f]/g,Lw);return Ep(i,"single",e)}function Lw(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":"")+Dw.call(e.toString(16))}function un(t){return"Object("+t+")"}function rc(t){return t+" { ? }"}function Tp(t,e,r,o){var n=o?ac(r,o):ut.call(r,", ");return t+" ("+e+") {"+n+"}"}function Yw(t){for(var e=0;e<t.length;e++)if(Ip(t[e],`
2
2
  `)>=0)return!1;return!0}function qw(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 ac(t,e){if(t.length===0)return"";var r=`
3
3
  `+e.prev+e.base;return r+ut.call(t,","+r)+`
4
- `+e.prev}function ms(t,e){var r=sc(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Mt(t,n)?e(t[n],t):""}var i=typeof tc=="function"?tc(t):[],s;if(eo){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)Mt(t,u)&&(r&&String(Number(u))===u&&u<t.length||eo&&s["$"+u]instanceof Symbol||(Op.call(/[^\w$]/,u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if(typeof tc=="function")for(var c=0;c<i.length;c++)Mp.call(t,i[c])&&o.push("["+e(i[c])+"]: "+e(t[i[c]],t));return o}});var Np=A((YV,Cp)=>{"use strict";var Hw=ln(),jw=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},zw=function(t,e){if(t){var r=ys(t,e);return r&&r.value}},Vw=function(t,e,r){var o=ys(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}},Gw=function(t,e){return t?!!ys(t,e):!1},Kw=function(t,e){if(t)return ys(t,e,!0)};Cp.exports=function(){var e,r={assert:function(o){if(!r.has(o))throw new jw("Side channel does not contain "+Hw(o))},delete:function(o){var n=e&&e.next,i=Kw(e,o);return i&&n&&n===i&&(e=void 0),!!i},get:function(o){return zw(e,o)},has:function(o){return Gw(e,o)},set:function(o,n){e||(e={next:void 0}),Vw(e,o,n)}};return r}});var lc=A((qV,Fp)=>{"use strict";Fp.exports=Object});var Rp=A((HV,$p)=>{"use strict";$p.exports=Error});var Up=A((jV,Wp)=>{"use strict";Wp.exports=EvalError});var Lp=A((zV,Bp)=>{"use strict";Bp.exports=RangeError});var qp=A((VV,Yp)=>{"use strict";Yp.exports=ReferenceError});var jp=A((GV,Hp)=>{"use strict";Hp.exports=SyntaxError});var Vp=A((KV,zp)=>{"use strict";zp.exports=URIError});var Kp=A((QV,Gp)=>{"use strict";Gp.exports=Math.abs});var Jp=A((JV,Qp)=>{"use strict";Qp.exports=Math.floor});var Zp=A((XV,Xp)=>{"use strict";Xp.exports=Math.max});var tm=A((ZV,em)=>{"use strict";em.exports=Math.min});var om=A((eG,rm)=>{"use strict";rm.exports=Math.pow});var im=A((tG,nm)=>{"use strict";nm.exports=Math.round});var am=A((rG,sm)=>{"use strict";sm.exports=Number.isNaN||function(e){return e!==e}});var cm=A((oG,um)=>{"use strict";var Qw=am();um.exports=function(e){return Qw(e)||e===0?e:e<0?-1:1}});var lm=A((nG,fm)=>{"use strict";fm.exports=Object.getOwnPropertyDescriptor});var pc=A((iG,pm)=>{"use strict";var xs=lm();if(xs)try{xs([],"length")}catch{xs=null}pm.exports=xs});var dm=A((sG,mm)=>{"use strict";var gs=Object.defineProperty||!1;if(gs)try{gs({},"a",{value:1})}catch{gs=!1}mm.exports=gs});var ym=A((aG,hm)=>{"use strict";hm.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 bm=A((uG,gm)=>{"use strict";var xm=typeof Symbol<"u"&&Symbol,Jw=ym();gm.exports=function(){return typeof xm!="function"||typeof Symbol!="function"||typeof xm("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Jw()}});var mc=A((cG,vm)=>{"use strict";vm.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var dc=A((fG,wm)=>{"use strict";var Xw=lc();wm.exports=Xw.getPrototypeOf||null});var Tm=A((lG,Dm)=>{"use strict";var Zw="Function.prototype.bind called on incompatible ",eS=Object.prototype.toString,tS=Math.max,rS="[object Function]",Sm=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},oS=function(e,r){for(var o=[],n=r||0,i=0;n<e.length;n+=1,i+=1)o[i]=e[n];return o},nS=function(t,e){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=e);return r};Dm.exports=function(e){var r=this;if(typeof r!="function"||eS.apply(r)!==rS)throw new TypeError(Zw+r);for(var o=oS(arguments,1),n,i=function(){if(this instanceof n){var f=r.apply(this,Sm(o,arguments));return Object(f)===f?f:this}return r.apply(e,Sm(o,arguments))},s=tS(0,r.length-o.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(n=Function("binder","return function ("+nS(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((pG,Om)=>{"use strict";var iS=Tm();Om.exports=Function.prototype.bind||iS});var bs=A((mG,Mm)=>{"use strict";Mm.exports=Function.prototype.call});var hc=A((dG,_m)=>{"use strict";_m.exports=Function.prototype.apply});var Am=A((hG,Em)=>{"use strict";Em.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Im=A((yG,km)=>{"use strict";var sS=pn(),aS=hc(),uS=bs(),cS=Am();km.exports=cS||sS.call(uS,aS)});var yc=A((xG,Pm)=>{"use strict";var fS=pn(),lS=xr(),pS=bs(),mS=Im();Pm.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new lS("a function is required");return mS(fS,pS,e)}});var Wm=A((gG,Rm)=>{"use strict";var dS=yc(),Cm=pc(),Fm;try{Fm=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var xc=!!Fm&&Cm&&Cm(Object.prototype,"__proto__"),$m=Object,Nm=$m.getPrototypeOf;Rm.exports=xc&&typeof xc.get=="function"?dS([xc.get]):typeof Nm=="function"?function(e){return Nm(e==null?e:$m(e))}:!1});var qm=A((bG,Ym)=>{"use strict";var Um=mc(),Bm=dc(),Lm=Wm();Ym.exports=Um?function(e){return Um(e)}:Bm?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return Bm(e)}:Lm?function(e){return Lm(e)}:null});var jm=A((vG,Hm)=>{"use strict";var hS=Function.prototype.call,yS=Object.prototype.hasOwnProperty,xS=pn();Hm.exports=xS.call(hS,yS)});var Ss=A((wG,Jm)=>{"use strict";var Y,gS=lc(),bS=Rp(),vS=Up(),wS=Lp(),SS=qp(),no=jp(),oo=xr(),DS=Vp(),TS=Kp(),OS=Jp(),MS=Zp(),_S=tm(),ES=om(),AS=im(),kS=cm(),Km=Function,gc=function(t){try{return Km('"use strict"; return ('+t+").constructor;")()}catch{}},mn=pc(),IS=dm(),bc=function(){throw new oo},PS=mn?function(){try{return arguments.callee,bc}catch{try{return mn(arguments,"callee").get}catch{return bc}}}():bc,to=bm()(),we=qm(),CS=dc(),NS=mc(),Qm=hc(),dn=bs(),ro={},FS=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%":bS,"%eval%":eval,"%EvalError%":vS,"%Float32Array%":typeof Float32Array>"u"?Y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Y:FinalizationRegistry,"%Function%":Km,"%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%":gS,"%Object.getOwnPropertyDescriptor%":mn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Y:Promise,"%Proxy%":typeof Proxy>"u"?Y:Proxy,"%RangeError%":wS,"%ReferenceError%":SS,"%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%":PS,"%TypedArray%":FS,"%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%":DS,"%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%":Qm,"%Object.defineProperty%":IS,"%Object.getPrototypeOf%":CS,"%Math.abs%":TS,"%Math.floor%":OS,"%Math.max%":MS,"%Math.min%":_S,"%Math.pow%":ES,"%Math.round%":AS,"%Math.sign%":kS,"%Reflect.getPrototypeOf%":NS};if(we)try{null.error}catch(t){zm=we(we(t)),gr["%Error.prototype%"]=zm}var zm,$S=function t(e){var r;if(e==="%AsyncFunction%")r=gc("async function () {}");else if(e==="%GeneratorFunction%")r=gc("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=gc("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},Vm={__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=jm(),RS=hn.call(dn,Array.prototype.concat),WS=hn.call(Qm,Array.prototype.splice),Gm=hn.call(dn,String.prototype.replace),ws=hn.call(dn,String.prototype.slice),US=hn.call(dn,RegExp.prototype.exec),BS=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,LS=/\\(\\)?/g,YS=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 Gm(e,BS,function(i,s,a,u){n[n.length]=a?Gm(u,LS,"$1"):s||i}),n},qS=function(e,r){var o=e,n;if(vs(Vm,o)&&(n=Vm[o],o="%"+n[0]+"%"),vs(gr,o)){var i=gr[o];if(i===ro&&(i=$S(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(US(/^%?[^%]*%?$/,e)===null)throw new no("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=YS(e),n=o.length>0?o[0]:"",i=qS("%"+n+"%",r),s=i.name,a=i.value,u=!1,c=i.alias;c&&(n=c[0],WS(o,RS([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 vc=A((SG,ed)=>{"use strict";var Xm=Ss(),Zm=yc(),HS=Zm([Xm("%String.prototype.indexOf%")]);ed.exports=function(e,r){var o=Xm(e,!!r);return typeof o=="function"&&HS(e,".prototype.")>-1?Zm([o]):o}});var wc=A((DG,rd)=>{"use strict";var jS=Ss(),yn=vc(),zS=ln(),VS=xr(),td=jS("%Map%",!0),GS=yn("Map.prototype.get",!0),KS=yn("Map.prototype.set",!0),QS=yn("Map.prototype.has",!0),JS=yn("Map.prototype.delete",!0),XS=yn("Map.prototype.size",!0);rd.exports=!!td&&function(){var e,r={assert:function(o){if(!r.has(o))throw new VS("Side channel does not contain "+zS(o))},delete:function(o){if(e){var n=JS(e,o);return XS(e)===0&&(e=void 0),n}return!1},get:function(o){if(e)return GS(e,o)},has:function(o){return e?QS(e,o):!1},set:function(o,n){e||(e=new td),KS(e,o,n)}};return r}});var nd=A((TG,od)=>{"use strict";var ZS=Ss(),Ts=vc(),eD=ln(),Ds=wc(),tD=xr(),io=ZS("%WeakMap%",!0),rD=Ts("WeakMap.prototype.get",!0),oD=Ts("WeakMap.prototype.set",!0),nD=Ts("WeakMap.prototype.has",!0),iD=Ts("WeakMap.prototype.delete",!0);od.exports=io?function(){var e,r,o={assert:function(n){if(!o.has(n))throw new tD("Side channel does not contain "+eD(n))},delete:function(n){if(io&&n&&(typeof n=="object"||typeof n=="function")){if(e)return iD(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?rD(e,n):r&&r.get(n)},has:function(n){return io&&n&&(typeof n=="object"||typeof n=="function")&&e?nD(e,n):!!r&&r.has(n)},set:function(n,i){io&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new io),oD(e,n,i)):Ds&&(r||(r=Ds()),r.set(n,i))}};return o}:Ds});var sd=A((OG,id)=>{"use strict";var sD=xr(),aD=ln(),uD=Np(),cD=wc(),fD=nd(),lD=fD||cD||uD;id.exports=function(){var e,r={assert:function(o){if(!r.has(o))throw new sD("Side channel does not contain "+aD(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=lD()),e.set(o,n)}};return r}});var Os=A((MG,ad)=>{"use strict";var pD=String.prototype.replace,mD=/%20/g,Sc={RFC1738:"RFC1738",RFC3986:"RFC3986"};ad.exports={default:Sc.RFC3986,formatters:{RFC1738:function(t){return pD.call(t,mD,"+")},RFC3986:function(t){return String(t)}},RFC1738:Sc.RFC1738,RFC3986:Sc.RFC3986}});var Oc=A((_G,cd)=>{"use strict";var dD=Os(),Dc=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}(),hD=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}}},ud=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},yD=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)||!Dc.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=ud(e,o)),br(e)&&br(r)?(r.forEach(function(i,s){if(Dc.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 Dc.call(i,s)?i[s]=t(i[s],a,o):i[s]=a,i},n)},xD=function(e,r){return Object.keys(r).reduce(function(o,n){return o[n]=r[n],o},e)},gD=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}},Tc=1024,bD=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+=Tc){for(var c=s.length>=Tc?s.slice(u,u+Tc):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===dD.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},vD=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 hD(r),e},wD=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},SD=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},DD=function(e,r){return[].concat(e,r)},TD=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)};cd.exports={arrayToObject:ud,assign:xD,combine:DD,compact:vD,decode:gD,encode:bD,isBuffer:SD,isRegExp:wD,maybeMap:TD,merge:yD}});var hd=A((EG,dd)=>{"use strict";var ld=sd(),Ms=Oc(),xn=Os(),OD=Object.prototype.hasOwnProperty,pd={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},ft=Array.isArray,MD=Array.prototype.push,md=function(t,e){MD.apply(t,ft(e)?e:[e])},_D=Date.prototype.toISOString,fd=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:fd,formatter:xn.formatters[fd],indices:!1,serializeDate:function(e){return _D.call(e)},skipNulls:!1,strictNullHandling:!1},ED=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Mc={},AD=function t(e,r,o,n,i,s,a,u,c,f,m,p,d,y,w,g,E,D){for(var T=e,B=D,V=0,z=!1;(B=B.get(Mc))!==void 0&&!z;){var de=B.get(e);if(V+=1,typeof de<"u"){if(de===V)throw new RangeError("Cyclic object value");z=!0}typeof B.get(Mc)>"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(I){return I instanceof Date?d(I):I})),T===null){if(s)return c&&!g?c(r,me.encoder,E,"key",y):r;T=""}if(ED(T)||Ms.isBuffer(T)){if(c){var q=g?r:c(r,me.encoder,E,"key",y);return[w(q)+"="+w(c(T,me.encoder,E,"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 Be=Object.keys(T);se=m?Be.sort(m):Be}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=ld();O.set(Mc,D),md(N,t(S,x,o,n,i,s,a,u,o==="comma"&&g&&ft(T)?null:c,f,m,p,d,y,w,g,E,O))}}return N},kD=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(!OD.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 pd?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}};dd.exports=function(t,e){var r=t,o=kD(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=pd[o.arrayFormat],u=a==="comma"&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var c=ld(),f=0;f<n.length;++f){var m=n[f],p=r[m];o.skipNulls&&p===null||md(s,AD(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 gd=A((AG,xd)=>{"use strict";var so=Oc(),_c=Object.prototype.hasOwnProperty,ID=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},PD=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},yd=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},CD="utf8=%26%2310003%3B",ND="utf8=%E2%9C%93",FD=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]===ND?c="utf-8":s[u]===CD&&(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(yd(f.slice(p+1),r),function(g){return r.decoder(g,ue.decoder,c,"value")})),y&&r.interpretNumericEntities&&c==="iso-8859-1"&&(y=PD(String(y))),f.indexOf("[]=")>-1&&(y=ID(y)?[y]:y);var w=_c.call(o,d);w&&r.duplicates==="combine"?o[d]=so.combine(o[d],y):(!w||r.duplicates==="last")&&(o[d]=y)}return o},$D=function(t,e,r,o){for(var n=o?e:yd(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},RD=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&&_c.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&&_c.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 $D(f,r,o,n)}},WD=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}};xd.exports=function(t,e){var r=WD(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var o=typeof t=="string"?FD(t,r):t,n=r.plainObjects?{__proto__:null}:{},i=Object.keys(o),s=0;s<i.length;++s){var a=i[s],u=RD(a,o[a],r,typeof t=="string");n=so.merge(n,u,r)}return r.allowSparse===!0?n:so.compact(n)}});var vd=A((kG,bd)=>{"use strict";var UD=hd(),BD=gd(),LD=Os();bd.exports={formats:LD,parse:BD,stringify:UD}});var Td=A(uo=>{"use strict";var YD=fp();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 qD=/^([a-z0-9.+-]+:)/i,HD=/:[0-9]*$/,jD=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,zD=["<",">",'"',"`"," ","\r",`
5
- `," "],VD=["{","}","|","\\","^","`"].concat(zD),Ec=["'"].concat(VD),wd=["%","/","?",";","#"].concat(Ec),Sd=["/","?","#"],GD=255,Dd=/^[+a-z0-9A-Z_-]{0,63}$/,KD=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,QD={javascript:!0,"javascript:":!0},Ac={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},kc=vd();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=jD.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=kc.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var c=qD.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&&Ac[c])&&(a=a.substr(2),this.slashes=!0)}if(!Ac[c]&&(m||c&&!ao[c])){for(var p=-1,d=0;d<Sd.length;d++){var y=a.indexOf(Sd[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<wd.length;d++){var y=a.indexOf(wd[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 E=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!E)for(var D=this.hostname.split(/\./),d=0,T=D.length;d<T;d++){var B=D[d];if(B&&!B.match(Dd)){for(var V="",z=0,de=B.length;z<de;z++)B.charCodeAt(z)>127?V+="x":V+=B[z];if(!V.match(Dd)){var q=D.slice(0,d),N=D.slice(d+1),se=B.match(KD);se&&(q.push(se[1]),N.unshift(se[2])),N.length&&(a="/"+N.join(".")+a),this.hostname=q.join(".");break}}}this.hostname.length>GD?this.hostname="":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=YD.toASCII(this.hostname));var Be=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+Be,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!QD[f])for(var d=0,T=Ec.length;d<T;d++){var v=Ec[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=kc.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 Be=this.pathname||"",F=this.search||"";this.path=Be+F}return this.href=this.format(),this};function JD(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=kc.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 XD(t,e){return gn(t,!1,!0).resolve(e)}Je.prototype.resolve=function(t){return this.resolveObject(gn(t,!1,!0)).format()};function ZD(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&&!Ac[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,E=g,D=r.pathname&&r.pathname.split("/")||[],T=t.pathname&&t.pathname.split("/")||[],B=r.protocol&&!ao[r.protocol];if(B&&(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(B){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&&!E)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(B){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=HD.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=XD;uo.resolveObject=ZD;uo.format=JD;uo.Url=Je});var Hd=A((CG,qd)=>{"use strict";qd.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,o)=>Math.min(r,o.length),1/0):0}});var Vd=A((FG,zd)=>{"use strict";zd.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 Qd=A(($G,Kd)=>{var f1=Object.prototype.toString;Kd.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 h1(e)?"generatorfunction":"function";if(l1(e))return"array";if(g1(e))return"buffer";if(x1(e))return"arguments";if(m1(e))return"date";if(p1(e))return"error";if(d1(e))return"regexp";switch(Gd(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(y1(e))return"generator";switch(r=f1.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 Gd(t){return typeof t.constructor=="function"?t.constructor.name:null}function l1(t){return Array.isArray?Array.isArray(t):t instanceof Array}function p1(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function m1(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function d1(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function h1(t,e){return Gd(t)==="GeneratorFunction"}function y1(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function x1(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 g1(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var Xd=A((RG,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 th=A((WG,Fc)=>{"use strict";var b1=Vd(),Zd=Qd(),eh=Xd();Fc.exports=v1;Fc.exports.isCrypto=!!eh.cryptographic;var lt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};lt.all=lt.lower+lt.upper+lt.number+lt.special;function v1(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:b1(t)&&(r={},e=t,t="*")),Zd(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=Zd(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(eh()*i.length,10));return s}});var Vh=A((Sn,po)=>{var P1=200,xh="__lodash_hash_undefined__",gh=9007199254740991,Jc="[object Arguments]",C1="[object Array]",bh="[object Boolean]",vh="[object Date]",N1="[object Error]",Xc="[object Function]",wh="[object GeneratorFunction]",Ns="[object Map]",Sh="[object Number]",Zc="[object Object]",sh="[object Promise]",Dh="[object RegExp]",Fs="[object Set]",Th="[object String]",Oh="[object Symbol]",jc="[object WeakMap]",Mh="[object ArrayBuffer]",$s="[object DataView]",_h="[object Float32Array]",Eh="[object Float64Array]",Ah="[object Int8Array]",kh="[object Int16Array]",Ih="[object Int32Array]",Ph="[object Uint8Array]",Ch="[object Uint8ClampedArray]",Nh="[object Uint16Array]",Fh="[object Uint32Array]",F1=/[\\^$.*+?()[\]{}|]/g,$1=/\w*$/,R1=/^\[object .+?Constructor\]$/,W1=/^(?:0|[1-9]\d*)$/,ee={};ee[Jc]=ee[C1]=ee[Mh]=ee[$s]=ee[bh]=ee[vh]=ee[_h]=ee[Eh]=ee[Ah]=ee[kh]=ee[Ih]=ee[Ns]=ee[Sh]=ee[Zc]=ee[Dh]=ee[Fs]=ee[Th]=ee[Oh]=ee[Ph]=ee[Ch]=ee[Nh]=ee[Fh]=!0;ee[N1]=ee[Xc]=ee[jc]=!1;var U1=typeof global=="object"&&global&&global.Object===Object&&global,B1=typeof self=="object"&&self&&self.Object===Object&&self,_t=U1||B1||Function("return this")(),$h=typeof Sn=="object"&&Sn&&!Sn.nodeType&&Sn,ah=$h&&typeof po=="object"&&po&&!po.nodeType&&po,L1=ah&&ah.exports===$h;function Y1(t,e){return t.set(e[0],e[1]),t}function q1(t,e){return t.add(e),t}function H1(t,e){for(var r=-1,o=t?t.length:0;++r<o&&e(t[r],r,t)!==!1;);return t}function j1(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t}function Rh(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 z1(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o}function V1(t,e){return t?.[e]}function Wh(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function uh(t){var e=-1,r=Array(t.size);return t.forEach(function(o,n){r[++e]=[n,o]}),r}function ef(t,e){return function(r){return t(e(r))}}function ch(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var G1=Array.prototype,K1=Function.prototype,Rs=Object.prototype,Hc=_t["__core-js_shared__"],fh=function(){var t=/[^.]+$/.exec(Hc&&Hc.keys&&Hc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Uh=K1.toString,Lt=Rs.hasOwnProperty,Ws=Rs.toString,Q1=RegExp("^"+Uh.call(Lt).replace(F1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lh=L1?_t.Buffer:void 0,ph=_t.Symbol,mh=_t.Uint8Array,J1=ef(Object.getPrototypeOf,Object),X1=Object.create,Z1=Rs.propertyIsEnumerable,eT=G1.splice,dh=Object.getOwnPropertySymbols,tT=lh?lh.isBuffer:void 0,rT=ef(Object.keys,Object),zc=yo(_t,"DataView"),Dn=yo(_t,"Map"),Vc=yo(_t,"Promise"),Gc=yo(_t,"Set"),Kc=yo(_t,"WeakMap"),Tn=yo(Object,"create"),oT=Sr(zc),nT=Sr(Dn),iT=Sr(Vc),sT=Sr(Gc),aT=Sr(Kc),hh=ph?ph.prototype:void 0,yh=hh?hh.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 uT(){this.__data__=Tn?Tn(null):{}}function cT(t){return this.has(t)&&delete this.__data__[t]}function fT(t){var e=this.__data__;if(Tn){var r=e[t];return r===xh?void 0:r}return Lt.call(e,t)?e[t]:void 0}function lT(t){var e=this.__data__;return Tn?e[t]!==void 0:Lt.call(e,t)}function pT(t,e){var r=this.__data__;return r[t]=Tn&&e===void 0?xh:e,this}wr.prototype.clear=uT;wr.prototype.delete=cT;wr.prototype.get=fT;wr.prototype.has=lT;wr.prototype.set=pT;function Et(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 mT(){this.__data__=[]}function dT(t){var e=this.__data__,r=Us(e,t);if(r<0)return!1;var o=e.length-1;return r==o?e.pop():eT.call(e,r,1),!0}function hT(t){var e=this.__data__,r=Us(e,t);return r<0?void 0:e[r][1]}function yT(t){return Us(this.__data__,t)>-1}function xT(t,e){var r=this.__data__,o=Us(r,t);return o<0?r.push([t,e]):r[o][1]=e,this}Et.prototype.clear=mT;Et.prototype.delete=dT;Et.prototype.get=hT;Et.prototype.has=yT;Et.prototype.set=xT;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 gT(){this.__data__={hash:new wr,map:new(Dn||Et),string:new wr}}function bT(t){return Bs(this,t).delete(t)}function vT(t){return Bs(this,t).get(t)}function wT(t){return Bs(this,t).has(t)}function ST(t,e){return Bs(this,t).set(t,e),this}mo.prototype.clear=gT;mo.prototype.delete=bT;mo.prototype.get=vT;mo.prototype.has=wT;mo.prototype.set=ST;function ho(t){this.__data__=new Et(t)}function DT(){this.__data__=new Et}function TT(t){return this.__data__.delete(t)}function OT(t){return this.__data__.get(t)}function MT(t){return this.__data__.has(t)}function _T(t,e){var r=this.__data__;if(r instanceof Et){var o=r.__data__;if(!Dn||o.length<P1-1)return o.push([t,e]),this;r=this.__data__=new mo(o)}return r.set(t,e),this}ho.prototype.clear=DT;ho.prototype.delete=TT;ho.prototype.get=OT;ho.prototype.has=MT;ho.prototype.set=_T;function ET(t,e){var r=rf(t)||XT(t)?z1(t.length,String):[],o=r.length,n=!!o;for(var i in t)(e||Lt.call(t,i))&&!(n&&(i=="length"||GT(i,o)))&&r.push(i);return r}function Bh(t,e,r){var o=t[e];(!(Lt.call(t,e)&&Hh(o,r))||r===void 0&&!(e in t))&&(t[e]=r)}function Us(t,e){for(var r=t.length;r--;)if(Hh(t[r][0],e))return r;return-1}function AT(t,e){return t&&Lh(e,of(e),t)}function Qc(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(!Ls(t))return t;var u=rf(t);if(u){if(a=jT(t),!e)return YT(t,a)}else{var c=vr(t),f=c==Xc||c==wh;if(eO(t))return FT(t,e);if(c==Zc||c==Jc||f&&!i){if(Wh(t))return i?t:{};if(a=zT(f?{}:t),!e)return qT(t,AT(a,t))}else{if(!ee[c])return i?t:{};a=VT(t,c,Qc,e)}}s||(s=new ho);var m=s.get(t);if(m)return m;if(s.set(t,a),!u)var p=r?HT(t):of(t);return H1(p||t,function(d,y){p&&(y=d,d=t[y]),Bh(a,y,Qc(d,e,r,o,y,t,s))}),a}function kT(t){return Ls(t)?X1(t):{}}function IT(t,e,r){var o=e(t);return rf(t)?o:j1(o,r(t))}function PT(t){return Ws.call(t)}function CT(t){if(!Ls(t)||QT(t))return!1;var e=zh(t)||Wh(t)?Q1:R1;return e.test(Sr(t))}function NT(t){if(!qh(t))return rT(t);var e=[];for(var r in Object(t))Lt.call(t,r)&&r!="constructor"&&e.push(r);return e}function FT(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function tf(t){var e=new t.constructor(t.byteLength);return new mh(e).set(new mh(t)),e}function $T(t,e){var r=e?tf(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function RT(t,e,r){var o=e?r(uh(t),!0):uh(t);return Rh(o,Y1,new t.constructor)}function WT(t){var e=new t.constructor(t.source,$1.exec(t));return e.lastIndex=t.lastIndex,e}function UT(t,e,r){var o=e?r(ch(t),!0):ch(t);return Rh(o,q1,new t.constructor)}function BT(t){return yh?Object(yh.call(t)):{}}function LT(t,e){var r=e?tf(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function YT(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e}function Lh(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;Bh(r,s,a===void 0?t[s]:a)}return r}function qT(t,e){return Lh(t,Yh(t),e)}function HT(t){return IT(t,of,Yh)}function Bs(t,e){var r=t.__data__;return KT(e)?r[typeof e=="string"?"string":"hash"]:r.map}function yo(t,e){var r=V1(t,e);return CT(r)?r:void 0}var Yh=dh?ef(dh,Object):oO,vr=PT;(zc&&vr(new zc(new ArrayBuffer(1)))!=$s||Dn&&vr(new Dn)!=Ns||Vc&&vr(Vc.resolve())!=sh||Gc&&vr(new Gc)!=Fs||Kc&&vr(new Kc)!=jc)&&(vr=function(t){var e=Ws.call(t),r=e==Zc?t.constructor:void 0,o=r?Sr(r):void 0;if(o)switch(o){case oT:return $s;case nT:return Ns;case iT:return sh;case sT:return Fs;case aT:return jc}return e});function jT(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 zT(t){return typeof t.constructor=="function"&&!qh(t)?kT(J1(t)):{}}function VT(t,e,r,o){var n=t.constructor;switch(e){case Mh:return tf(t);case bh:case vh:return new n(+t);case $s:return $T(t,o);case _h:case Eh:case Ah:case kh:case Ih:case Ph:case Ch:case Nh:case Fh:return LT(t,o);case Ns:return RT(t,o,r);case Sh:case Th:return new n(t);case Dh:return WT(t);case Fs:return UT(t,o,r);case Oh:return BT(t)}}function GT(t,e){return e=e??gh,!!e&&(typeof t=="number"||W1.test(t))&&t>-1&&t%1==0&&t<e}function KT(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function QT(t){return!!fh&&fh in t}function qh(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Rs;return t===r}function Sr(t){if(t!=null){try{return Uh.call(t)}catch{}try{return t+""}catch{}}return""}function JT(t){return Qc(t,!0,!0)}function Hh(t,e){return t===e||t!==t&&e!==e}function XT(t){return ZT(t)&&Lt.call(t,"callee")&&(!Z1.call(t,"callee")||Ws.call(t)==Jc)}var rf=Array.isArray;function jh(t){return t!=null&&tO(t.length)&&!zh(t)}function ZT(t){return rO(t)&&jh(t)}var eO=tT||nO;function zh(t){var e=Ls(t)?Ws.call(t):"";return e==Xc||e==wh}function tO(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=gh}function Ls(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function rO(t){return!!t&&typeof t=="object"}function of(t){return jh(t)?ET(t):NT(t)}function oO(){return[]}function nO(){return!1}po.exports=JT});var Kh=A((ZG,Gh)=>{"use strict";Gh.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,kn=An.ShadowRoot&&(An.ShadyCSS===void 0||An.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ea=Symbol(),Sf=new WeakMap,vo=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==ea)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(kn&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=Sf.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Sf.set(r,e))}return e}toString(){return this.cssText}},In=t=>new vo(typeof t=="string"?t:t+"",void 0,ea),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,ea)},ta=(t,e)=>{if(kn)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=kn?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return In(r)})(t):t;var{is:by,defineProperty:vy,getOwnPropertyDescriptor:wy,getOwnPropertyNames:Sy,getOwnPropertySymbols:Dy,getPrototypeOf:Ty}=Object,Cn=globalThis,Df=Cn.trustedTypes,Oy=Df?Df.emptyScript:"",My=Cn.reactiveElementPolyfillSupport,wo=(t,e)=>t,So={toAttribute(t,e){switch(e){case Boolean:t=t?Oy: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)=>!by(t,e),Tf={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=Tf){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&&vy(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:i}=wy(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)??Tf}static _$Ei(){if(this.hasOwnProperty(wo("elementProperties")))return;let e=Ty(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=[...Sy(r),...Dy(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 ta(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,My?.({ReactiveElement:mt}),(Cn.reactiveElementVersions??=[]).push("2.0.4");var ua=globalThis,Fn=ua.trustedTypes,Of=Fn?Fn.createPolicy("lit-html",{createHTML:t=>t}):void 0,If="$lit$",Pt=`lit$${Math.random().toFixed(9).slice(2)}$`,Pf="?"+Pt,_y=`<${Pf}>`,zt=document,To=()=>zt.createComment(""),Oo=t=>t===null||typeof t!="object"&&typeof t!="function",ca=Array.isArray,Ey=t=>ca(t)||typeof t?.[Symbol.iterator]=="function",ra=`[
4
+ `+e.prev}function ms(t,e){var r=sc(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=Mt(t,n)?e(t[n],t):""}var i=typeof tc=="function"?tc(t):[],s;if(eo){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)Mt(t,u)&&(r&&String(Number(u))===u&&u<t.length||eo&&s["$"+u]instanceof Symbol||(Op.call(/[^\w$]/,u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if(typeof tc=="function")for(var c=0;c<i.length;c++)Mp.call(t,i[c])&&o.push("["+e(i[c])+"]: "+e(t[i[c]],t));return o}});var Np=A((YV,Cp)=>{"use strict";var Hw=ln(),jw=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},zw=function(t,e){if(t){var r=ys(t,e);return r&&r.value}},Vw=function(t,e,r){var o=ys(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}},Gw=function(t,e){return t?!!ys(t,e):!1},Kw=function(t,e){if(t)return ys(t,e,!0)};Cp.exports=function(){var e,r={assert:function(o){if(!r.has(o))throw new jw("Side channel does not contain "+Hw(o))},delete:function(o){var n=e&&e.next,i=Kw(e,o);return i&&n&&n===i&&(e=void 0),!!i},get:function(o){return zw(e,o)},has:function(o){return Gw(e,o)},set:function(o,n){e||(e={next:void 0}),Vw(e,o,n)}};return r}});var lc=A((qV,Fp)=>{"use strict";Fp.exports=Object});var Rp=A((HV,$p)=>{"use strict";$p.exports=Error});var Up=A((jV,Wp)=>{"use strict";Wp.exports=EvalError});var Lp=A((zV,Bp)=>{"use strict";Bp.exports=RangeError});var qp=A((VV,Yp)=>{"use strict";Yp.exports=ReferenceError});var jp=A((GV,Hp)=>{"use strict";Hp.exports=SyntaxError});var Vp=A((KV,zp)=>{"use strict";zp.exports=URIError});var Kp=A((QV,Gp)=>{"use strict";Gp.exports=Math.abs});var Jp=A((JV,Qp)=>{"use strict";Qp.exports=Math.floor});var Zp=A((XV,Xp)=>{"use strict";Xp.exports=Math.max});var tm=A((ZV,em)=>{"use strict";em.exports=Math.min});var om=A((eG,rm)=>{"use strict";rm.exports=Math.pow});var im=A((tG,nm)=>{"use strict";nm.exports=Math.round});var am=A((rG,sm)=>{"use strict";sm.exports=Number.isNaN||function(e){return e!==e}});var cm=A((oG,um)=>{"use strict";var Qw=am();um.exports=function(e){return Qw(e)||e===0?e:e<0?-1:1}});var lm=A((nG,fm)=>{"use strict";fm.exports=Object.getOwnPropertyDescriptor});var pc=A((iG,pm)=>{"use strict";var xs=lm();if(xs)try{xs([],"length")}catch{xs=null}pm.exports=xs});var dm=A((sG,mm)=>{"use strict";var gs=Object.defineProperty||!1;if(gs)try{gs({},"a",{value:1})}catch{gs=!1}mm.exports=gs});var ym=A((aG,hm)=>{"use strict";hm.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 bm=A((uG,gm)=>{"use strict";var xm=typeof Symbol<"u"&&Symbol,Jw=ym();gm.exports=function(){return typeof xm!="function"||typeof Symbol!="function"||typeof xm("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Jw()}});var mc=A((cG,vm)=>{"use strict";vm.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var dc=A((fG,wm)=>{"use strict";var Xw=lc();wm.exports=Xw.getPrototypeOf||null});var Tm=A((lG,Dm)=>{"use strict";var Zw="Function.prototype.bind called on incompatible ",eS=Object.prototype.toString,tS=Math.max,rS="[object Function]",Sm=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},oS=function(e,r){for(var o=[],n=r||0,i=0;n<e.length;n+=1,i+=1)o[i]=e[n];return o},nS=function(t,e){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=e);return r};Dm.exports=function(e){var r=this;if(typeof r!="function"||eS.apply(r)!==rS)throw new TypeError(Zw+r);for(var o=oS(arguments,1),n,i=function(){if(this instanceof n){var f=r.apply(this,Sm(o,arguments));return Object(f)===f?f:this}return r.apply(e,Sm(o,arguments))},s=tS(0,r.length-o.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(n=Function("binder","return function ("+nS(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((pG,Om)=>{"use strict";var iS=Tm();Om.exports=Function.prototype.bind||iS});var bs=A((mG,Mm)=>{"use strict";Mm.exports=Function.prototype.call});var hc=A((dG,_m)=>{"use strict";_m.exports=Function.prototype.apply});var Am=A((hG,Em)=>{"use strict";Em.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var km=A((yG,Im)=>{"use strict";var sS=pn(),aS=hc(),uS=bs(),cS=Am();Im.exports=cS||sS.call(uS,aS)});var yc=A((xG,Pm)=>{"use strict";var fS=pn(),lS=xr(),pS=bs(),mS=km();Pm.exports=function(e){if(e.length<1||typeof e[0]!="function")throw new lS("a function is required");return mS(fS,pS,e)}});var Wm=A((gG,Rm)=>{"use strict";var dS=yc(),Cm=pc(),Fm;try{Fm=[].__proto__===Array.prototype}catch(t){if(!t||typeof t!="object"||!("code"in t)||t.code!=="ERR_PROTO_ACCESS")throw t}var xc=!!Fm&&Cm&&Cm(Object.prototype,"__proto__"),$m=Object,Nm=$m.getPrototypeOf;Rm.exports=xc&&typeof xc.get=="function"?dS([xc.get]):typeof Nm=="function"?function(e){return Nm(e==null?e:$m(e))}:!1});var qm=A((bG,Ym)=>{"use strict";var Um=mc(),Bm=dc(),Lm=Wm();Ym.exports=Um?function(e){return Um(e)}:Bm?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return Bm(e)}:Lm?function(e){return Lm(e)}:null});var jm=A((vG,Hm)=>{"use strict";var hS=Function.prototype.call,yS=Object.prototype.hasOwnProperty,xS=pn();Hm.exports=xS.call(hS,yS)});var Ss=A((wG,Jm)=>{"use strict";var Y,gS=lc(),bS=Rp(),vS=Up(),wS=Lp(),SS=qp(),no=jp(),oo=xr(),DS=Vp(),TS=Kp(),OS=Jp(),MS=Zp(),_S=tm(),ES=om(),AS=im(),IS=cm(),Km=Function,gc=function(t){try{return Km('"use strict"; return ('+t+").constructor;")()}catch{}},mn=pc(),kS=dm(),bc=function(){throw new oo},PS=mn?function(){try{return arguments.callee,bc}catch{try{return mn(arguments,"callee").get}catch{return bc}}}():bc,to=bm()(),we=qm(),CS=dc(),NS=mc(),Qm=hc(),dn=bs(),ro={},FS=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%":bS,"%eval%":eval,"%EvalError%":vS,"%Float32Array%":typeof Float32Array>"u"?Y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Y:FinalizationRegistry,"%Function%":Km,"%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%":gS,"%Object.getOwnPropertyDescriptor%":mn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Y:Promise,"%Proxy%":typeof Proxy>"u"?Y:Proxy,"%RangeError%":wS,"%ReferenceError%":SS,"%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%":PS,"%TypedArray%":FS,"%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%":DS,"%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%":Qm,"%Object.defineProperty%":kS,"%Object.getPrototypeOf%":CS,"%Math.abs%":TS,"%Math.floor%":OS,"%Math.max%":MS,"%Math.min%":_S,"%Math.pow%":ES,"%Math.round%":AS,"%Math.sign%":IS,"%Reflect.getPrototypeOf%":NS};if(we)try{null.error}catch(t){zm=we(we(t)),gr["%Error.prototype%"]=zm}var zm,$S=function t(e){var r;if(e==="%AsyncFunction%")r=gc("async function () {}");else if(e==="%GeneratorFunction%")r=gc("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=gc("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},Vm={__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=jm(),RS=hn.call(dn,Array.prototype.concat),WS=hn.call(Qm,Array.prototype.splice),Gm=hn.call(dn,String.prototype.replace),ws=hn.call(dn,String.prototype.slice),US=hn.call(dn,RegExp.prototype.exec),BS=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,LS=/\\(\\)?/g,YS=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 Gm(e,BS,function(i,s,a,u){n[n.length]=a?Gm(u,LS,"$1"):s||i}),n},qS=function(e,r){var o=e,n;if(vs(Vm,o)&&(n=Vm[o],o="%"+n[0]+"%"),vs(gr,o)){var i=gr[o];if(i===ro&&(i=$S(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(US(/^%?[^%]*%?$/,e)===null)throw new no("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=YS(e),n=o.length>0?o[0]:"",i=qS("%"+n+"%",r),s=i.name,a=i.value,u=!1,c=i.alias;c&&(n=c[0],WS(o,RS([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 vc=A((SG,ed)=>{"use strict";var Xm=Ss(),Zm=yc(),HS=Zm([Xm("%String.prototype.indexOf%")]);ed.exports=function(e,r){var o=Xm(e,!!r);return typeof o=="function"&&HS(e,".prototype.")>-1?Zm([o]):o}});var wc=A((DG,rd)=>{"use strict";var jS=Ss(),yn=vc(),zS=ln(),VS=xr(),td=jS("%Map%",!0),GS=yn("Map.prototype.get",!0),KS=yn("Map.prototype.set",!0),QS=yn("Map.prototype.has",!0),JS=yn("Map.prototype.delete",!0),XS=yn("Map.prototype.size",!0);rd.exports=!!td&&function(){var e,r={assert:function(o){if(!r.has(o))throw new VS("Side channel does not contain "+zS(o))},delete:function(o){if(e){var n=JS(e,o);return XS(e)===0&&(e=void 0),n}return!1},get:function(o){if(e)return GS(e,o)},has:function(o){return e?QS(e,o):!1},set:function(o,n){e||(e=new td),KS(e,o,n)}};return r}});var nd=A((TG,od)=>{"use strict";var ZS=Ss(),Ts=vc(),eD=ln(),Ds=wc(),tD=xr(),io=ZS("%WeakMap%",!0),rD=Ts("WeakMap.prototype.get",!0),oD=Ts("WeakMap.prototype.set",!0),nD=Ts("WeakMap.prototype.has",!0),iD=Ts("WeakMap.prototype.delete",!0);od.exports=io?function(){var e,r,o={assert:function(n){if(!o.has(n))throw new tD("Side channel does not contain "+eD(n))},delete:function(n){if(io&&n&&(typeof n=="object"||typeof n=="function")){if(e)return iD(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?rD(e,n):r&&r.get(n)},has:function(n){return io&&n&&(typeof n=="object"||typeof n=="function")&&e?nD(e,n):!!r&&r.has(n)},set:function(n,i){io&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new io),oD(e,n,i)):Ds&&(r||(r=Ds()),r.set(n,i))}};return o}:Ds});var sd=A((OG,id)=>{"use strict";var sD=xr(),aD=ln(),uD=Np(),cD=wc(),fD=nd(),lD=fD||cD||uD;id.exports=function(){var e,r={assert:function(o){if(!r.has(o))throw new sD("Side channel does not contain "+aD(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=lD()),e.set(o,n)}};return r}});var Os=A((MG,ad)=>{"use strict";var pD=String.prototype.replace,mD=/%20/g,Sc={RFC1738:"RFC1738",RFC3986:"RFC3986"};ad.exports={default:Sc.RFC3986,formatters:{RFC1738:function(t){return pD.call(t,mD,"+")},RFC3986:function(t){return String(t)}},RFC1738:Sc.RFC1738,RFC3986:Sc.RFC3986}});var Oc=A((_G,cd)=>{"use strict";var dD=Os(),Dc=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}(),hD=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}}},ud=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},yD=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)||!Dc.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=ud(e,o)),br(e)&&br(r)?(r.forEach(function(i,s){if(Dc.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 Dc.call(i,s)?i[s]=t(i[s],a,o):i[s]=a,i},n)},xD=function(e,r){return Object.keys(r).reduce(function(o,n){return o[n]=r[n],o},e)},gD=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}},Tc=1024,bD=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+=Tc){for(var c=s.length>=Tc?s.slice(u,u+Tc):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===dD.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},vD=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 hD(r),e},wD=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},SD=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},DD=function(e,r){return[].concat(e,r)},TD=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)};cd.exports={arrayToObject:ud,assign:xD,combine:DD,compact:vD,decode:gD,encode:bD,isBuffer:SD,isRegExp:wD,maybeMap:TD,merge:yD}});var hd=A((EG,dd)=>{"use strict";var ld=sd(),Ms=Oc(),xn=Os(),OD=Object.prototype.hasOwnProperty,pd={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},ft=Array.isArray,MD=Array.prototype.push,md=function(t,e){MD.apply(t,ft(e)?e:[e])},_D=Date.prototype.toISOString,fd=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:fd,formatter:xn.formatters[fd],indices:!1,serializeDate:function(e){return _D.call(e)},skipNulls:!1,strictNullHandling:!1},ED=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Mc={},AD=function t(e,r,o,n,i,s,a,u,c,f,m,p,d,y,w,g,E,D){for(var T=e,B=D,V=0,z=!1;(B=B.get(Mc))!==void 0&&!z;){var de=B.get(e);if(V+=1,typeof de<"u"){if(de===V)throw new RangeError("Cyclic object value");z=!0}typeof B.get(Mc)>"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,E,"key",y):r;T=""}if(ED(T)||Ms.isBuffer(T)){if(c){var q=g?r:c(r,me.encoder,E,"key",y);return[w(q)+"="+w(c(T,me.encoder,E,"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 Be=Object.keys(T);se=m?Be.sort(m):Be}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=ld();O.set(Mc,D),md(N,t(S,x,o,n,i,s,a,u,o==="comma"&&g&&ft(T)?null:c,f,m,p,d,y,w,g,E,O))}}return N},ID=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(!OD.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 pd?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}};dd.exports=function(t,e){var r=t,o=ID(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=pd[o.arrayFormat],u=a==="comma"&&o.commaRoundTrip;n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var c=ld(),f=0;f<n.length;++f){var m=n[f],p=r[m];o.skipNulls&&p===null||md(s,AD(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 gd=A((AG,xd)=>{"use strict";var so=Oc(),_c=Object.prototype.hasOwnProperty,kD=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},PD=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},yd=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},CD="utf8=%26%2310003%3B",ND="utf8=%E2%9C%93",FD=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]===ND?c="utf-8":s[u]===CD&&(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(yd(f.slice(p+1),r),function(g){return r.decoder(g,ue.decoder,c,"value")})),y&&r.interpretNumericEntities&&c==="iso-8859-1"&&(y=PD(String(y))),f.indexOf("[]=")>-1&&(y=kD(y)?[y]:y);var w=_c.call(o,d);w&&r.duplicates==="combine"?o[d]=so.combine(o[d],y):(!w||r.duplicates==="last")&&(o[d]=y)}return o},$D=function(t,e,r,o){for(var n=o?e:yd(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},RD=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&&_c.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&&_c.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 $D(f,r,o,n)}},WD=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}};xd.exports=function(t,e){var r=WD(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?{__proto__:null}:{};for(var o=typeof t=="string"?FD(t,r):t,n=r.plainObjects?{__proto__:null}:{},i=Object.keys(o),s=0;s<i.length;++s){var a=i[s],u=RD(a,o[a],r,typeof t=="string");n=so.merge(n,u,r)}return r.allowSparse===!0?n:so.compact(n)}});var vd=A((IG,bd)=>{"use strict";var UD=hd(),BD=gd(),LD=Os();bd.exports={formats:LD,parse:BD,stringify:UD}});var Td=A(uo=>{"use strict";var YD=fp();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 qD=/^([a-z0-9.+-]+:)/i,HD=/:[0-9]*$/,jD=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,zD=["<",">",'"',"`"," ","\r",`
5
+ `," "],VD=["{","}","|","\\","^","`"].concat(zD),Ec=["'"].concat(VD),wd=["%","/","?",";","#"].concat(Ec),Sd=["/","?","#"],GD=255,Dd=/^[+a-z0-9A-Z_-]{0,63}$/,KD=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,QD={javascript:!0,"javascript:":!0},Ac={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},Ic=vd();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=jD.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=Ic.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var c=qD.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&&Ac[c])&&(a=a.substr(2),this.slashes=!0)}if(!Ac[c]&&(m||c&&!ao[c])){for(var p=-1,d=0;d<Sd.length;d++){var y=a.indexOf(Sd[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<wd.length;d++){var y=a.indexOf(wd[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 E=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!E)for(var D=this.hostname.split(/\./),d=0,T=D.length;d<T;d++){var B=D[d];if(B&&!B.match(Dd)){for(var V="",z=0,de=B.length;z<de;z++)B.charCodeAt(z)>127?V+="x":V+=B[z];if(!V.match(Dd)){var q=D.slice(0,d),N=D.slice(d+1),se=B.match(KD);se&&(q.push(se[1]),N.unshift(se[2])),N.length&&(a="/"+N.join(".")+a),this.hostname=q.join(".");break}}}this.hostname.length>GD?this.hostname="":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=YD.toASCII(this.hostname));var Be=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+Be,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!QD[f])for(var d=0,T=Ec.length;d<T;d++){var v=Ec[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=Ic.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 Be=this.pathname||"",F=this.search||"";this.path=Be+F}return this.href=this.format(),this};function JD(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=Ic.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 XD(t,e){return gn(t,!1,!0).resolve(e)}Je.prototype.resolve=function(t){return this.resolveObject(gn(t,!1,!0)).format()};function ZD(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&&!Ac[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,E=g,D=r.pathname&&r.pathname.split("/")||[],T=t.pathname&&t.pathname.split("/")||[],B=r.protocol&&!ao[r.protocol];if(B&&(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(B){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&&!E)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(B){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=HD.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=XD;uo.resolveObject=ZD;uo.format=JD;uo.Url=Je});var Hd=A((CG,qd)=>{"use strict";qd.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,o)=>Math.min(r,o.length),1/0):0}});var Vd=A((FG,zd)=>{"use strict";zd.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 Qd=A(($G,Kd)=>{var f1=Object.prototype.toString;Kd.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 h1(e)?"generatorfunction":"function";if(l1(e))return"array";if(g1(e))return"buffer";if(x1(e))return"arguments";if(m1(e))return"date";if(p1(e))return"error";if(d1(e))return"regexp";switch(Gd(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(y1(e))return"generator";switch(r=f1.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 Gd(t){return typeof t.constructor=="function"?t.constructor.name:null}function l1(t){return Array.isArray?Array.isArray(t):t instanceof Array}function p1(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function m1(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function d1(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function h1(t,e){return Gd(t)==="GeneratorFunction"}function y1(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function x1(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 g1(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var Xd=A((RG,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 th=A((WG,Fc)=>{"use strict";var b1=Vd(),Zd=Qd(),eh=Xd();Fc.exports=v1;Fc.exports.isCrypto=!!eh.cryptographic;var lt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};lt.all=lt.lower+lt.upper+lt.number+lt.special;function v1(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:b1(t)&&(r={},e=t,t="*")),Zd(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=Zd(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(eh()*i.length,10));return s}});var Vh=A((Sn,po)=>{var P1=200,xh="__lodash_hash_undefined__",gh=9007199254740991,Jc="[object Arguments]",C1="[object Array]",bh="[object Boolean]",vh="[object Date]",N1="[object Error]",Xc="[object Function]",wh="[object GeneratorFunction]",Ns="[object Map]",Sh="[object Number]",Zc="[object Object]",sh="[object Promise]",Dh="[object RegExp]",Fs="[object Set]",Th="[object String]",Oh="[object Symbol]",jc="[object WeakMap]",Mh="[object ArrayBuffer]",$s="[object DataView]",_h="[object Float32Array]",Eh="[object Float64Array]",Ah="[object Int8Array]",Ih="[object Int16Array]",kh="[object Int32Array]",Ph="[object Uint8Array]",Ch="[object Uint8ClampedArray]",Nh="[object Uint16Array]",Fh="[object Uint32Array]",F1=/[\\^$.*+?()[\]{}|]/g,$1=/\w*$/,R1=/^\[object .+?Constructor\]$/,W1=/^(?:0|[1-9]\d*)$/,ee={};ee[Jc]=ee[C1]=ee[Mh]=ee[$s]=ee[bh]=ee[vh]=ee[_h]=ee[Eh]=ee[Ah]=ee[Ih]=ee[kh]=ee[Ns]=ee[Sh]=ee[Zc]=ee[Dh]=ee[Fs]=ee[Th]=ee[Oh]=ee[Ph]=ee[Ch]=ee[Nh]=ee[Fh]=!0;ee[N1]=ee[Xc]=ee[jc]=!1;var U1=typeof global=="object"&&global&&global.Object===Object&&global,B1=typeof self=="object"&&self&&self.Object===Object&&self,_t=U1||B1||Function("return this")(),$h=typeof Sn=="object"&&Sn&&!Sn.nodeType&&Sn,ah=$h&&typeof po=="object"&&po&&!po.nodeType&&po,L1=ah&&ah.exports===$h;function Y1(t,e){return t.set(e[0],e[1]),t}function q1(t,e){return t.add(e),t}function H1(t,e){for(var r=-1,o=t?t.length:0;++r<o&&e(t[r],r,t)!==!1;);return t}function j1(t,e){for(var r=-1,o=e.length,n=t.length;++r<o;)t[n+r]=e[r];return t}function Rh(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 z1(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o}function V1(t,e){return t?.[e]}function Wh(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function uh(t){var e=-1,r=Array(t.size);return t.forEach(function(o,n){r[++e]=[n,o]}),r}function ef(t,e){return function(r){return t(e(r))}}function ch(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}var G1=Array.prototype,K1=Function.prototype,Rs=Object.prototype,Hc=_t["__core-js_shared__"],fh=function(){var t=/[^.]+$/.exec(Hc&&Hc.keys&&Hc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Uh=K1.toString,Lt=Rs.hasOwnProperty,Ws=Rs.toString,Q1=RegExp("^"+Uh.call(Lt).replace(F1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lh=L1?_t.Buffer:void 0,ph=_t.Symbol,mh=_t.Uint8Array,J1=ef(Object.getPrototypeOf,Object),X1=Object.create,Z1=Rs.propertyIsEnumerable,eT=G1.splice,dh=Object.getOwnPropertySymbols,tT=lh?lh.isBuffer:void 0,rT=ef(Object.keys,Object),zc=yo(_t,"DataView"),Dn=yo(_t,"Map"),Vc=yo(_t,"Promise"),Gc=yo(_t,"Set"),Kc=yo(_t,"WeakMap"),Tn=yo(Object,"create"),oT=Sr(zc),nT=Sr(Dn),iT=Sr(Vc),sT=Sr(Gc),aT=Sr(Kc),hh=ph?ph.prototype:void 0,yh=hh?hh.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 uT(){this.__data__=Tn?Tn(null):{}}function cT(t){return this.has(t)&&delete this.__data__[t]}function fT(t){var e=this.__data__;if(Tn){var r=e[t];return r===xh?void 0:r}return Lt.call(e,t)?e[t]:void 0}function lT(t){var e=this.__data__;return Tn?e[t]!==void 0:Lt.call(e,t)}function pT(t,e){var r=this.__data__;return r[t]=Tn&&e===void 0?xh:e,this}wr.prototype.clear=uT;wr.prototype.delete=cT;wr.prototype.get=fT;wr.prototype.has=lT;wr.prototype.set=pT;function Et(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 mT(){this.__data__=[]}function dT(t){var e=this.__data__,r=Us(e,t);if(r<0)return!1;var o=e.length-1;return r==o?e.pop():eT.call(e,r,1),!0}function hT(t){var e=this.__data__,r=Us(e,t);return r<0?void 0:e[r][1]}function yT(t){return Us(this.__data__,t)>-1}function xT(t,e){var r=this.__data__,o=Us(r,t);return o<0?r.push([t,e]):r[o][1]=e,this}Et.prototype.clear=mT;Et.prototype.delete=dT;Et.prototype.get=hT;Et.prototype.has=yT;Et.prototype.set=xT;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 gT(){this.__data__={hash:new wr,map:new(Dn||Et),string:new wr}}function bT(t){return Bs(this,t).delete(t)}function vT(t){return Bs(this,t).get(t)}function wT(t){return Bs(this,t).has(t)}function ST(t,e){return Bs(this,t).set(t,e),this}mo.prototype.clear=gT;mo.prototype.delete=bT;mo.prototype.get=vT;mo.prototype.has=wT;mo.prototype.set=ST;function ho(t){this.__data__=new Et(t)}function DT(){this.__data__=new Et}function TT(t){return this.__data__.delete(t)}function OT(t){return this.__data__.get(t)}function MT(t){return this.__data__.has(t)}function _T(t,e){var r=this.__data__;if(r instanceof Et){var o=r.__data__;if(!Dn||o.length<P1-1)return o.push([t,e]),this;r=this.__data__=new mo(o)}return r.set(t,e),this}ho.prototype.clear=DT;ho.prototype.delete=TT;ho.prototype.get=OT;ho.prototype.has=MT;ho.prototype.set=_T;function ET(t,e){var r=rf(t)||XT(t)?z1(t.length,String):[],o=r.length,n=!!o;for(var i in t)(e||Lt.call(t,i))&&!(n&&(i=="length"||GT(i,o)))&&r.push(i);return r}function Bh(t,e,r){var o=t[e];(!(Lt.call(t,e)&&Hh(o,r))||r===void 0&&!(e in t))&&(t[e]=r)}function Us(t,e){for(var r=t.length;r--;)if(Hh(t[r][0],e))return r;return-1}function AT(t,e){return t&&Lh(e,of(e),t)}function Qc(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(!Ls(t))return t;var u=rf(t);if(u){if(a=jT(t),!e)return YT(t,a)}else{var c=vr(t),f=c==Xc||c==wh;if(eO(t))return FT(t,e);if(c==Zc||c==Jc||f&&!i){if(Wh(t))return i?t:{};if(a=zT(f?{}:t),!e)return qT(t,AT(a,t))}else{if(!ee[c])return i?t:{};a=VT(t,c,Qc,e)}}s||(s=new ho);var m=s.get(t);if(m)return m;if(s.set(t,a),!u)var p=r?HT(t):of(t);return H1(p||t,function(d,y){p&&(y=d,d=t[y]),Bh(a,y,Qc(d,e,r,o,y,t,s))}),a}function IT(t){return Ls(t)?X1(t):{}}function kT(t,e,r){var o=e(t);return rf(t)?o:j1(o,r(t))}function PT(t){return Ws.call(t)}function CT(t){if(!Ls(t)||QT(t))return!1;var e=zh(t)||Wh(t)?Q1:R1;return e.test(Sr(t))}function NT(t){if(!qh(t))return rT(t);var e=[];for(var r in Object(t))Lt.call(t,r)&&r!="constructor"&&e.push(r);return e}function FT(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function tf(t){var e=new t.constructor(t.byteLength);return new mh(e).set(new mh(t)),e}function $T(t,e){var r=e?tf(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function RT(t,e,r){var o=e?r(uh(t),!0):uh(t);return Rh(o,Y1,new t.constructor)}function WT(t){var e=new t.constructor(t.source,$1.exec(t));return e.lastIndex=t.lastIndex,e}function UT(t,e,r){var o=e?r(ch(t),!0):ch(t);return Rh(o,q1,new t.constructor)}function BT(t){return yh?Object(yh.call(t)):{}}function LT(t,e){var r=e?tf(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function YT(t,e){var r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e}function Lh(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;Bh(r,s,a===void 0?t[s]:a)}return r}function qT(t,e){return Lh(t,Yh(t),e)}function HT(t){return kT(t,of,Yh)}function Bs(t,e){var r=t.__data__;return KT(e)?r[typeof e=="string"?"string":"hash"]:r.map}function yo(t,e){var r=V1(t,e);return CT(r)?r:void 0}var Yh=dh?ef(dh,Object):oO,vr=PT;(zc&&vr(new zc(new ArrayBuffer(1)))!=$s||Dn&&vr(new Dn)!=Ns||Vc&&vr(Vc.resolve())!=sh||Gc&&vr(new Gc)!=Fs||Kc&&vr(new Kc)!=jc)&&(vr=function(t){var e=Ws.call(t),r=e==Zc?t.constructor:void 0,o=r?Sr(r):void 0;if(o)switch(o){case oT:return $s;case nT:return Ns;case iT:return sh;case sT:return Fs;case aT:return jc}return e});function jT(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 zT(t){return typeof t.constructor=="function"&&!qh(t)?IT(J1(t)):{}}function VT(t,e,r,o){var n=t.constructor;switch(e){case Mh:return tf(t);case bh:case vh:return new n(+t);case $s:return $T(t,o);case _h:case Eh:case Ah:case Ih:case kh:case Ph:case Ch:case Nh:case Fh:return LT(t,o);case Ns:return RT(t,o,r);case Sh:case Th:return new n(t);case Dh:return WT(t);case Fs:return UT(t,o,r);case Oh:return BT(t)}}function GT(t,e){return e=e??gh,!!e&&(typeof t=="number"||W1.test(t))&&t>-1&&t%1==0&&t<e}function KT(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function QT(t){return!!fh&&fh in t}function qh(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Rs;return t===r}function Sr(t){if(t!=null){try{return Uh.call(t)}catch{}try{return t+""}catch{}}return""}function JT(t){return Qc(t,!0,!0)}function Hh(t,e){return t===e||t!==t&&e!==e}function XT(t){return ZT(t)&&Lt.call(t,"callee")&&(!Z1.call(t,"callee")||Ws.call(t)==Jc)}var rf=Array.isArray;function jh(t){return t!=null&&tO(t.length)&&!zh(t)}function ZT(t){return rO(t)&&jh(t)}var eO=tT||nO;function zh(t){var e=Ls(t)?Ws.call(t):"";return e==Xc||e==wh}function tO(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=gh}function Ls(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function rO(t){return!!t&&typeof t=="object"}function of(t){return jh(t)?ET(t):NT(t)}function oO(){return[]}function nO(){return!1}po.exports=JT});var Kh=A((ZG,Gh)=>{"use strict";Gh.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,In=An.ShadowRoot&&(An.ShadyCSS===void 0||An.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ea=Symbol(),Sf=new WeakMap,vo=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==ea)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(In&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=Sf.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Sf.set(r,e))}return e}toString(){return this.cssText}},kn=t=>new vo(typeof t=="string"?t:t+"",void 0,ea),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,ea)},ta=(t,e)=>{if(In)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=In?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:by,defineProperty:vy,getOwnPropertyDescriptor:wy,getOwnPropertyNames:Sy,getOwnPropertySymbols:Dy,getPrototypeOf:Ty}=Object,Cn=globalThis,Df=Cn.trustedTypes,Oy=Df?Df.emptyScript:"",My=Cn.reactiveElementPolyfillSupport,wo=(t,e)=>t,So={toAttribute(t,e){switch(e){case Boolean:t=t?Oy: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)=>!by(t,e),Tf={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=Tf){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&&vy(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){let{get:n,set:i}=wy(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)??Tf}static _$Ei(){if(this.hasOwnProperty(wo("elementProperties")))return;let e=Ty(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=[...Sy(r),...Dy(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 ta(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,My?.({ReactiveElement:mt}),(Cn.reactiveElementVersions??=[]).push("2.0.4");var ua=globalThis,Fn=ua.trustedTypes,Of=Fn?Fn.createPolicy("lit-html",{createHTML:t=>t}):void 0,kf="$lit$",Pt=`lit$${Math.random().toFixed(9).slice(2)}$`,Pf="?"+Pt,_y=`<${Pf}>`,zt=document,To=()=>zt.createComment(""),Oo=t=>t===null||typeof t!="object"&&typeof t!="function",ca=Array.isArray,Ey=t=>ca(t)||typeof t?.[Symbol.iterator]=="function",ra=`[
6
6
  \f\r]`,Do=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mf=/-->/g,_f=/>/g,Ht=RegExp(`>|${ra}(?:([^\\s"'>=/]+)(${ra}*=${ra}*(?:[^
7
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ef=/'/g,Af=/"/g,Cf=/^(?:script|style|textarea|title)$/i,fa=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Re=fa(1),LO=fa(2),YO=fa(3),Vt=Symbol.for("lit-noChange"),xe=Symbol.for("lit-nothing"),kf=new WeakMap,jt=zt.createTreeWalker(zt,129);function Nf(t,e){if(!ca(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Of!==void 0?Of.createHTML(e):e}var Ay=(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=Mf:f[1]!==void 0?s=_f:f[2]!==void 0?(Cf.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]==='"'?Af:Ef):s===Af||s===Ef?s=Ht:s===Mf||s===_f?s=Do:(s=Ht,n=void 0);let d=s===Ht&&t[a+1].startsWith("/>")?" ":"";i+=s===Do?u+_y:m>=0?(o.push(c),u.slice(0,m)+If+u.slice(m)+Pt+d):u+Pt+(m===-2?a:d)}return[Nf(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]=Ay(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(If)){let p=f[s++],d=n.getAttribute(m).split(Pt),y=/([.?@])?(.*)/.exec(p);u.push({type:1,index:i,name:y[2],strings:d,ctor:y[1]==="."?na:y[1]==="?"?ia:y[1]==="@"?sa:Er}),n.removeAttribute(m)}else m.startsWith(Pt)&&(u.push({type:6,index:i}),n.removeAttribute(m));if(Cf.test(n.tagName)){let m=n.textContent.split(Pt),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===Pf)u.push({type:2,index:i});else{let m=-1;for(;(m=n.data.indexOf(Pt,m+1))!==-1;)u.push({type:7,index:i}),m+=Pt.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 oa=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 aa(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):Ey(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(Nf(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let i=new oa(n,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(e){let r=kf.get(e.strings);return r===void 0&&kf.set(e.strings,r=new Mo(e)),r}k(e){ca(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))}},Er=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??"")}},na=class extends Er{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===xe?void 0:e}},ia=class extends Er{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==xe)}},sa=class extends Er{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)}},aa=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 ky=ua.litHtmlPolyfillSupport;ky?.(Mo,_o),(ua.litHtmlVersions??=[]).push("3.2.1");var Ff=(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=Ff(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 Iy=globalThis.litElementPolyfillSupport;Iy?.({LitElement:Me});(globalThis.litElementVersions??=[]).push("4.1.1");var $n=In('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 Py={attribute:!0,type:String,converter:So,reflect:!1,hasChanged:Nn},Cy=(t=Py,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"?Cy(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:()=>yf,TypedRequest:()=>gf,TypedResponseError:()=>kt,TypedRouter:()=>_n,TypedTarget:()=>xf,VirtualStream:()=>pt});var Tr=nt(la(),1);var Ue={};re(Ue,{AsyncExecutionStack:()=>Hu,BackpressuredArray:()=>ju,FastMap:()=>Zo,Interest:()=>en,InterestMap:()=>zu,LimitedArray:()=>Vu,LoopTracker:()=>Gu,ObjectMap:()=>dr,Stringmap:()=>Ku,TimedAggregtor:()=>Qu,Tree:()=>Ju,uni:()=>ep});var X={};re(X,{Timeout:()=>Ln,delayFor:()=>ht,delayForRandom:()=>Yy});var K={};re(K,{CumulativeDeferred:()=>Bn,Deferred:()=>Un,cumulativeDefer:()=>Fy,defer:()=>Gt,fromCallback:()=>Ly,getFirstTrueOrFalse:()=>By,map:()=>Wy,rejectedPromise:()=>Ry,resolvedPromise:()=>$y,timeoutAndContinue:()=>Uy,timeoutWrap:()=>Wf});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 Bn=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)}},Fy=()=>new Bn;var $y=t=>Promise.resolve(t),Ry=t=>Promise.reject(t),Wy=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},Wf=async(t,e,r=!0)=>new Promise((o,n)=>{setTimeout(()=>{r?n(new Error("timeout")):o(null)},e),t.then(o,n)}),Uy=async(t,e=6e4)=>Wf(t,e,!1),By=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},Ly=t=>new Promise((e,r)=>{t((o,n)=>{o?r(o):e(n)})});var ht=async(t,e,r=!1)=>(await new Ln(t,null,r).promise,e),Yy=async(t,e,r,o=!1)=>(await ht(Math.random()*(e-t)+t,null,o),r),Ln=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:()=>da});var Yn={};re(Yn,{isMatch:()=>jy,matcher:()=>Hy});function pa(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ma=new Map,Uf=(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})},qy=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(ma.has(r))return ma.get(r);let o=t[0]==="!";o&&(t=t.slice(1)),t=pa(t).replace(/\\\*/g,"[\\s\\S]*");let n=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return n.negated=o,ma.set(r,n),n},Bf=(t,e,r,o)=>{if(t=Uf(t,"inputs"),e=Uf(e,"patterns"),e.length===0)return[];e=e.map(s=>qy(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 Hy(t,e,r){return Bf(t,e,r,!1)}function jy(t,e,r){return Bf(t,e,r,!0).length>0}var da=class{constructor(e){this.wildcard=e}match(e){return Yn.isMatch(e,this.wildcard)}};var st={};re(st,{ObservableIntake:()=>Ia,Observablemap:()=>ka,rxjs:()=>Co});var Co={};re(Co,{Observable:()=>oe,ReplaySubject:()=>va,Subject:()=>xt,Subscription:()=>tt,from:()=>Zt,fromEvent:()=>tr,of:()=>Sa,ops:()=>gx});var ha=function(t,e){return ha=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])},ha(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");ha(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Lf(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 yt(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 Le(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 Yf(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 qf(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 yt=="function"?yt(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:
7
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ef=/'/g,Af=/"/g,Cf=/^(?:script|style|textarea|title)$/i,fa=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Re=fa(1),LO=fa(2),YO=fa(3),Vt=Symbol.for("lit-noChange"),xe=Symbol.for("lit-nothing"),If=new WeakMap,jt=zt.createTreeWalker(zt,129);function Nf(t,e){if(!ca(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Of!==void 0?Of.createHTML(e):e}var Ay=(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=Mf:f[1]!==void 0?s=_f:f[2]!==void 0?(Cf.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]==='"'?Af:Ef):s===Af||s===Ef?s=Ht:s===Mf||s===_f?s=Do:(s=Ht,n=void 0);let d=s===Ht&&t[a+1].startsWith("/>")?" ":"";i+=s===Do?u+_y:m>=0?(o.push(c),u.slice(0,m)+kf+u.slice(m)+Pt+d):u+Pt+(m===-2?a:d)}return[Nf(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]=Ay(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(kf)){let p=f[s++],d=n.getAttribute(m).split(Pt),y=/([.?@])?(.*)/.exec(p);u.push({type:1,index:i,name:y[2],strings:d,ctor:y[1]==="."?na:y[1]==="?"?ia:y[1]==="@"?sa:Er}),n.removeAttribute(m)}else m.startsWith(Pt)&&(u.push({type:6,index:i}),n.removeAttribute(m));if(Cf.test(n.tagName)){let m=n.textContent.split(Pt),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===Pf)u.push({type:2,index:i});else{let m=-1;for(;(m=n.data.indexOf(Pt,m+1))!==-1;)u.push({type:7,index:i}),m+=Pt.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 oa=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 aa(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):Ey(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(Nf(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(r);else{let i=new oa(n,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(e){let r=If.get(e.strings);return r===void 0&&If.set(e.strings,r=new Mo(e)),r}k(e){ca(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))}},Er=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??"")}},na=class extends Er{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===xe?void 0:e}},ia=class extends Er{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==xe)}},sa=class extends Er{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)}},aa=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 Iy=ua.litHtmlPolyfillSupport;Iy?.(Mo,_o),(ua.litHtmlVersions??=[]).push("3.2.1");var Ff=(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=Ff(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 ky=globalThis.litElementPolyfillSupport;ky?.({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 Py={attribute:!0,type:String,converter:So,reflect:!1,hasChanged:Nn},Cy=(t=Py,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"?Cy(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:()=>yf,TypedRequest:()=>gf,TypedResponseError:()=>It,TypedRouter:()=>_n,TypedTarget:()=>xf,VirtualStream:()=>pt});var Tr=nt(la(),1);var Ue={};re(Ue,{AsyncExecutionStack:()=>Hu,BackpressuredArray:()=>ju,FastMap:()=>Zo,Interest:()=>en,InterestMap:()=>zu,LimitedArray:()=>Vu,LoopTracker:()=>Gu,ObjectMap:()=>dr,Stringmap:()=>Ku,TimedAggregtor:()=>Qu,Tree:()=>Ju,uni:()=>ep});var X={};re(X,{Timeout:()=>Ln,delayFor:()=>ht,delayForRandom:()=>Yy});var K={};re(K,{CumulativeDeferred:()=>Bn,Deferred:()=>Un,cumulativeDefer:()=>Fy,defer:()=>Gt,fromCallback:()=>Ly,getFirstTrueOrFalse:()=>By,map:()=>Wy,rejectedPromise:()=>Ry,resolvedPromise:()=>$y,timeoutAndContinue:()=>Uy,timeoutWrap:()=>Wf});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 Bn=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)}},Fy=()=>new Bn;var $y=t=>Promise.resolve(t),Ry=t=>Promise.reject(t),Wy=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},Wf=async(t,e,r=!0)=>new Promise((o,n)=>{setTimeout(()=>{r?n(new Error("timeout")):o(null)},e),t.then(o,n)}),Uy=async(t,e=6e4)=>Wf(t,e,!1),By=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},Ly=t=>new Promise((e,r)=>{t((o,n)=>{o?r(o):e(n)})});var ht=async(t,e,r=!1)=>(await new Ln(t,null,r).promise,e),Yy=async(t,e,r,o=!1)=>(await ht(Math.random()*(e-t)+t,null,o),r),Ln=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:()=>da});var Yn={};re(Yn,{isMatch:()=>jy,matcher:()=>Hy});function pa(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ma=new Map,Uf=(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})},qy=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(ma.has(r))return ma.get(r);let o=t[0]==="!";o&&(t=t.slice(1)),t=pa(t).replace(/\\\*/g,"[\\s\\S]*");let n=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return n.negated=o,ma.set(r,n),n},Bf=(t,e,r,o)=>{if(t=Uf(t,"inputs"),e=Uf(e,"patterns"),e.length===0)return[];e=e.map(s=>qy(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 Hy(t,e,r){return Bf(t,e,r,!1)}function jy(t,e,r){return Bf(t,e,r,!0).length>0}var da=class{constructor(e){this.wildcard=e}match(e){return Yn.isMatch(e,this.wildcard)}};var st={};re(st,{ObservableIntake:()=>ka,Observablemap:()=>Ia,rxjs:()=>Co});var Co={};re(Co,{Observable:()=>oe,ReplaySubject:()=>va,Subject:()=>xt,Subscription:()=>tt,from:()=>Zt,fromEvent:()=>tr,of:()=>Sa,ops:()=>gx});var ha=function(t,e){return ha=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])},ha(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");ha(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Lf(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 yt(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 Le(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 Yf(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 qf(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 yt=="function"?yt(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=yt(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=yt(m),d=p.next();!d.done;d=p.next()){var y=d.value;try{Hf(y)}catch(w){i=i??[],w instanceof zn?i=et(et([],Le(i)),Le(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)Hf(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 ya=tt.EMPTY;function Vn(t){return t instanceof tt||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function Hf(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],Le(r))):setTimeout.apply(void 0,et([t,e],Le(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 jf=function(){return xa("C",void 0,void 0)}();function zf(t){return xa("E",void 0,t)}function Vf(t){return xa("N",t,void 0)}function xa(t,e,r){return{kind:t,value:e,error:r}}var Xt=null;function kr(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 Gf(t){rt.useDeprecatedSynchronousErrorHandling&&Xt&&(Xt.errorThrown=!0,Xt.error=t)}var Eo=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=Jy,o}return e.create=function(r,o,n){return new Qn(r,o,n)},e.prototype.next=function(r){this.isStopped?ba(Vf(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?ba(zf(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?ba(jf,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 Gy=Function.prototype.bind;function ga(t,e){return Gy.call(t,e)}var Ky=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&&ga(r.next,a),error:r.error&&ga(r.error,a),complete:r.complete&&ga(r.complete,a)}):s=r}return i.destination=new Ky(s),i}return e}(Eo);function Kn(t){rt.useDeprecatedSynchronousErrorHandling?Gf(t):Gn(t)}function Qy(t){throw t}function ba(t,e){var r=rt.onStoppedNotification;r&&Ar.setTimeout(function(){return r(t,e)})}var Jy={closed:!0,next:Jt,error:Qy,complete:Jt};var Ir=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Jn(t){return t}function Kf(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=Zy(e)?e:new Qn(e,r,o);return kr(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=Qf(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[Ir]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Kf(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Qf(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 Qf(t){var e;return(e=t??rt.Promise)!==null&&e!==void 0?e:Promise}function Xy(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}function Zy(t){return t&&t instanceof Eo||Xy(t)&&Vn(t)}function ex(t){return W(t?.lift)}function fe(t){return function(e){if(ex(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 tx(t,e,r,o,n)}var tx=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}(Eo);var Jf=jn(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var xt=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 Xf(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;kr(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var s=yt(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;kr(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;kr(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?ya:(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 Xf(r,o)},e}(oe);var Xf=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:ya},e}(xt);var Ao={now:function(){return(Ao.delegate||Date).now()},delegate:void 0};var va=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}(xt);var Zf=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 ko={setInterval:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=ko.delegate;return n?.setInterval?n.setInterval.apply(n,et([t,e],Le(r))):setInterval.apply(void 0,et([t,e],Le(r)))},clearInterval:function(t){var e=ko.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var el=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),ko.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&&ko.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}(Zf);var wa=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 tl=function(t){_e(e,t);function e(r,o){o===void 0&&(o=wa.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}(wa);var Io=new tl(el),rl=Io;function Xn(t){return t&&W(t.schedule)}function rx(t){return t[t.length-1]}function Pr(t){return Xn(rx(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[Ir])}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 ox(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oi=ox();function ni(t){return W(t?.[oi])}function ii(t){return Yf(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 nx(t);if(Cr(t))return ix(t);if(Zn(t))return sx(t);if(ti(t))return ol(t);if(ni(t))return ax(t);if(si(t))return ux(t)}throw ri(t)}function nx(t){return new oe(function(e){var r=t[Ir]();if(W(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ix(t){return new oe(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function sx(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 ax(t){return new oe(function(e){var r,o;try{for(var n=yt(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 ol(t){return new oe(function(e){cx(t,e).catch(function(r){return e.error(r)})})}function ux(t){return ol(ii(t))}function cx(t,e){var r,o,n,i;return Lf(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=qf(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 nl(t,e){return ge(t).pipe(ui(e),ai(e))}function il(t,e){return ge(t).pipe(ui(e),ai(e))}function sl(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 al(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 ul(t,e){return ci(ii(t),e)}function cl(t,e){if(t!=null){if(ei(t))return nl(t,e);if(Cr(t))return sl(t,e);if(Zn(t))return il(t,e);if(ti(t))return ci(t,e);if(ni(t))return al(t,e);if(si(t))return ul(t,e)}throw ri(t)}function Zt(t,e){return e?cl(t,e):ge(t)}function Sa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Pr(t);return Zt(t,r)}function fl(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 fx=Array.isArray;function lx(t,e){return fx(e)?t.apply(void 0,et([],Le(e))):t(e)}function ll(t){return er(function(e){return lx(t,e)})}function pl(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(E){n?.(E),i?d(E):e.next(E)},function(){g=!0},void 0,function(){if(g)try{c--;for(var E=function(){var D=u.shift();s?je(e,s,function(){return y(D)}):y(D)};u.length&&c<o;)E();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 pl(o,n,t,r)}))}function ml(t){return t===void 0&&(t=1/0),Po(Jn,t)}function dl(){return ml(1)}function Da(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return dl()(Zt(t,Pr(t)))}var px=["addListener","removeListener"],mx=["addEventListener","removeEventListener"],dx=["on","off"];function tr(t,e,r,o){if(W(r)&&(o=r,r=void 0),o)return tr(t,e,r).pipe(ll(o));var n=Le(xx(t)?mx.map(function(a){return function(u){return t[a](e,u,r)}}):hx(t)?px.map(hl(t,e)):yx(t)?dx.map(hl(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 hl(t,e){return function(r){return function(o){return t[r](e,o)}}}function hx(t){return W(t.addListener)&&W(t.removeListener)}function yx(t){return W(t.on)&&W(t.off)}function xx(t){return W(t.addEventListener)&&W(t.removeEventListener)}function yl(t,e,r){t===void 0&&(t=0),r===void 0&&(r=rl);var o=-1;return e!=null&&(Xn(e)?r=e:o=e),new oe(function(n){var i=fl(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 Ta(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 Oa(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 Ma(t,e){return e===void 0&&(e=Io),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 _a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Pr(t);return fe(function(o,n){(r?Da(t,o,r):Da(t,o)).subscribe(n)})}function Ea(t){return fe(function(e,r){ge(t).subscribe(le(r,function(){return r.complete()},Jt)),!r.closed&&e.subscribe(r)})}function xl(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(E){return m=ge(t(E)).subscribe(le(o,d,y))},g=function(){if(c){c=!1;var E=f;f=null,o.next(E),!p&&w(E)}};r.subscribe(le(o,function(E){c=!0,f=E,!(m&&!m.closed)&&(s?g():w(E))},function(){p=!0,!(u&&c&&m&&!m.closed)&&o.complete()}))})}function Aa(t,e,r){e===void 0&&(e=Io);var o=yl(t,e);return xl(function(){return o},r)}var gx={debounce:Oa,debounceTime:Ma,map:er,startWith:_a,takeUntil:Ea,throttleTime:Aa,filter:Ta};var ka=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 xt;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 xt,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 Ot={};re(Ot,{CronJob:()=>Xo,CronManager:()=>Ru,ExtendedDate:()=>Wu,HrtMeasurement:()=>Uu,Interval:()=>Bu,TimeStamp:()=>Qr,Timer:()=>Lu,getMilliSecondsAsHumanReadableAgoTime:()=>Wv,getMilliSecondsAsHumanReadableString:()=>$u,getMilliSecondsFromUnits:()=>Fu,units:()=>Nt});var fi={};re(fi,{Cron:()=>Sx,CronDate:()=>Ye,CronPattern:()=>Ca,scheduledJobs:()=>Fo});function Ee(t,e,r,o,n,i,s,a){return Ee.fromTZ(Ee.tp(t,e,r,o,n,i,s),a)}Ee.fromTZISO=(t,e,r)=>Ee.fromTZ(bx(t,e),r);Ee.fromTZ=function(t,e){let r=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),o=Pa(t.tz,r),n=new Date(r.getTime()-o),i=Pa(t.tz,n);if(i-o===0)return n;{let s=new Date(r.getTime()-i),a=Pa(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}};Ee.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}};Ee.tp=(t,e,r,o,n,i,s)=>({y:t,m:e,d:r,h:o,i:n,s:i,tz:s});function Pa(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 bx(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("+")?Ee.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Ee.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}Ee.minitz=Ee;var Na=32,$o=31|Na,vl=[1,2,4,8,16],Ca=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]|Na;else if(e===$o)this.dayOfWeek[t]=$o;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|vl[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},gl=[31,28,31,30,31,30,31,31,30,31,30,31],gt=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Ye=class wl{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 wl)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&&vl[s-1]&n)return!0;if(n&Na){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=Ee.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>gl[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=Ee.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(Ee.fromTZISO(e,this.tz))}findNext(e,r,o,n){let i=this[r],s;o.lastDayOfMonth&&(this.month!==1?s=gl[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,gt[o][0],e,gt[o][2]);if(n>1){let i=o+1;for(;i<gt.length;)this[gt[i][0]]=-gt[i][2],i++;if(n===3)return this[gt[o][1]]++,this[gt[o][0]]=-gt[o][2],this.apply(),this.recurse(e,r,0);if(this.apply())return this.recurse(e,r,o-1)}return o+=1,o>=gt.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)):Ee.fromTZ(Ee.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function vx(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 wx(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var bl=30*1e3,Fo=[],Sx=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=vx(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 Ca("* * * * *")},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 Ca(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>bl&&(e=bl),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&wx(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:()=>La,addDays:()=>be,addHours:()=>Ya,addISOWeekYears:()=>Ha,addMilliseconds:()=>nr,addMinutes:()=>Ro,addMonths:()=>bt,addQuarters:()=>Wo,addSeconds:()=>ja,addWeeks:()=>ir,addYears:()=>za,areIntervalsOverlapping:()=>Tx,clamp:()=>Ox,closestIndexTo:()=>Ka,closestTo:()=>Mx,compareAsc:()=>Ne,compareDesc:()=>_x,constructFrom:()=>h,constructNow:()=>L,daysToWeeks:()=>Ax,differenceInBusinessDays:()=>kx,differenceInCalendarDays:()=>De,differenceInCalendarISOWeekYears:()=>Ja,differenceInCalendarISOWeeks:()=>Ix,differenceInCalendarMonths:()=>Rr,differenceInCalendarQuarters:()=>Uo,differenceInCalendarWeeks:()=>Wr,differenceInCalendarYears:()=>sr,differenceInDays:()=>Bo,differenceInHours:()=>Ur,differenceInISOWeekYears:()=>Px,differenceInMilliseconds:()=>Lo,differenceInMinutes:()=>Br,differenceInMonths:()=>ar,differenceInQuarters:()=>Cx,differenceInSeconds:()=>Dt,differenceInWeeks:()=>Nx,differenceInYears:()=>eu,eachDayOfInterval:()=>tu,eachHourOfInterval:()=>Fx,eachMinuteOfInterval:()=>$x,eachMonthOfInterval:()=>Rx,eachQuarterOfInterval:()=>Wx,eachWeekOfInterval:()=>Ux,eachWeekendOfInterval:()=>Ho,eachWeekendOfMonth:()=>Bx,eachWeekendOfYear:()=>Lx,eachYearOfInterval:()=>Yx,endOfDay:()=>Yo,endOfDecade:()=>qx,endOfHour:()=>Hx,endOfISOWeek:()=>jx,endOfISOWeekYear:()=>zx,endOfMinute:()=>Vx,endOfMonth:()=>qo,endOfQuarter:()=>Gx,endOfSecond:()=>Kx,endOfToday:()=>Qx,endOfTomorrow:()=>Jx,endOfWeek:()=>ou,endOfYear:()=>ru,endOfYesterday:()=>Xx,format:()=>iu,formatDate:()=>iu,formatDistance:()=>su,formatDistanceStrict:()=>au,formatDistanceToNow:()=>$g,formatDistanceToNowStrict:()=>Rg,formatDuration:()=>Ug,formatISO:()=>Bg,formatISO9075:()=>Lg,formatISODuration:()=>Yg,formatRFC3339:()=>qg,formatRFC7231:()=>zg,formatRelative:()=>Vg,formatters:()=>bi,fromUnixTime:()=>Gg,getDate:()=>uu,getDay:()=>lr,getDayOfYear:()=>nu,getDaysInMonth:()=>cu,getDaysInYear:()=>Kg,getDecade:()=>Qg,getDefaultOptions:()=>lu,getHours:()=>Jg,getISODay:()=>pu,getISOWeek:()=>zo,getISOWeekYear:()=>We,getISOWeeksInYear:()=>Xg,getMilliseconds:()=>Zg,getMinutes:()=>e0,getMonth:()=>t0,getOverlappingDaysInIntervals:()=>r0,getQuarter:()=>xi,getSeconds:()=>o0,getTime:()=>n0,getUnixTime:()=>i0,getWeek:()=>Vo,getWeekOfMonth:()=>s0,getWeekYear:()=>cr,getWeeksInMonth:()=>a0,getYear:()=>u0,hoursToMilliseconds:()=>c0,hoursToMinutes:()=>f0,hoursToSeconds:()=>l0,interval:()=>p0,intervalToDuration:()=>m0,intlFormat:()=>d0,intlFormatDistance:()=>y0,isAfter:()=>x0,isBefore:()=>g0,isDate:()=>Qa,isEqual:()=>b0,isExists:()=>v0,isFirstDayOfMonth:()=>w0,isFriday:()=>S0,isFuture:()=>D0,isLastDayOfMonth:()=>Za,isLeapYear:()=>fu,isMatch:()=>F0,isMonday:()=>$0,isPast:()=>R0,isSameDay:()=>St,isSameHour:()=>vu,isSameISOWeek:()=>wu,isSameISOWeekYear:()=>W0,isSameMinute:()=>Su,isSameMonth:()=>Du,isSameQuarter:()=>Tu,isSameSecond:()=>Ou,isSameWeek:()=>Ko,isSameYear:()=>Mu,isSaturday:()=>Ua,isSunday:()=>Ba,isThisHour:()=>U0,isThisISOWeek:()=>B0,isThisMinute:()=>L0,isThisMonth:()=>Y0,isThisQuarter:()=>q0,isThisSecond:()=>H0,isThisWeek:()=>j0,isThisYear:()=>z0,isThursday:()=>V0,isToday:()=>G0,isTomorrow:()=>K0,isTuesday:()=>Q0,isValid:()=>ke,isWednesday:()=>J0,isWeekend:()=>vt,isWithinInterval:()=>X0,isYesterday:()=>Z0,lastDayOfDecade:()=>eb,lastDayOfISOWeek:()=>tb,lastDayOfISOWeekYear:()=>rb,lastDayOfMonth:()=>mu,lastDayOfQuarter:()=>ob,lastDayOfWeek:()=>_u,lastDayOfYear:()=>nb,lightFormat:()=>cb,lightFormatters:()=>Ve,longFormatters:()=>jr,max:()=>Va,milliseconds:()=>lb,millisecondsToHours:()=>pb,millisecondsToMinutes:()=>mb,millisecondsToSeconds:()=>db,min:()=>Ga,minutesToHours:()=>hb,minutesToMilliseconds:()=>yb,minutesToSeconds:()=>xb,monthsToQuarters:()=>gb,monthsToYears:()=>bb,nextDay:()=>Fe,nextFriday:()=>vb,nextMonday:()=>wb,nextSaturday:()=>Sb,nextSunday:()=>Db,nextThursday:()=>Tb,nextTuesday:()=>Ob,nextWednesday:()=>Mb,parse:()=>bu,parseISO:()=>_b,parseJSON:()=>qb,parsers:()=>gu,previousDay:()=>$e,previousFriday:()=>Hb,previousMonday:()=>jb,previousSaturday:()=>zb,previousSunday:()=>Vb,previousThursday:()=>Gb,previousTuesday:()=>Kb,previousWednesday:()=>Qb,quartersToMonths:()=>Jb,quartersToYears:()=>Xb,roundToNearestHours:()=>Zb,roundToNearestMinutes:()=>ev,secondsToHours:()=>tv,secondsToMilliseconds:()=>rv,secondsToMinutes:()=>ov,set:()=>nv,setDate:()=>iv,setDay:()=>pr,setDayOfYear:()=>sv,setDefaultOptions:()=>av,setHours:()=>uv,setISODay:()=>xu,setISOWeek:()=>yu,setISOWeekYear:()=>qa,setMilliseconds:()=>cv,setMinutes:()=>fv,setMonth:()=>Jo,setQuarter:()=>lv,setSeconds:()=>pv,setWeek:()=>hu,setWeekYear:()=>mv,setYear:()=>dv,startOfDay:()=>wt,startOfDecade:()=>hv,startOfHour:()=>is,startOfISOWeek:()=>pe,startOfISOWeekYear:()=>ze,startOfMinute:()=>ss,startOfMonth:()=>ur,startOfQuarter:()=>Tt,startOfSecond:()=>as,startOfToday:()=>yv,startOfTomorrow:()=>xv,startOfWeek:()=>Z,startOfWeekYear:()=>qr,startOfYear:()=>jo,startOfYesterday:()=>gv,sub:()=>bv,subBusinessDays:()=>vv,subDays:()=>mr,subHours:()=>wv,subISOWeekYears:()=>Xa,subMilliseconds:()=>Sv,subMinutes:()=>Dv,subMonths:()=>Au,subQuarters:()=>Tv,subSeconds:()=>Ov,subWeeks:()=>Mv,subYears:()=>_v,toDate:()=>l,transpose:()=>du,weeksToDays:()=>Ev,yearsToDays:()=>Av,yearsToMonths:()=>kv,yearsToQuarters:()=>Iv});var Dx=Math.pow(10,8)*24*60*60*1e3,PI=-Dx,at=6048e5,li=864e5,Ae=6e4,qe=36e5,Nr=1e3,Fa=525600,Ct=43200,Fr=1440,pi=60,mi=3,di=12,hi=4,rr=3600,$r=60,yi=rr*24,Sl=yi*7,$a=yi*365.2425,Ra=$a/12,Dl=Ra*3,Wa=Symbol.for("constructDateFrom");function h(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Wa in t?t[Wa](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 bt(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?bt(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 Ua(t,e){return l(t,e?.in).getDay()===6}function Ba(t,e){return l(t,e?.in).getDay()===0}function vt(t,e){let r=l(t,e?.in).getDay();return r===0||r===6}function La(t,e,r){let o=l(t,r?.in),n=vt(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),vt(o,r)||(u-=1);return n&&vt(o,r)&&e!==0&&(Ua(o,r)&&o.setDate(o.getDate()+(s<0?2:-1)),Ba(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 Ya(t,e,r){return nr(t,e*qe,r)}var Tl={};function G(){return Tl}function Ol(t){Tl=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 wt(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=wt(o),s=wt(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 qa(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 Ha(t,e,r){return qa(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 bt(t,e*3,r)}function ja(t,e,r){return nr(t,e*1e3,r)}function ir(t,e,r){return be(t,e*7,r)}function za(t,e,r){return bt(t,e*12,r)}function Tx(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 Va(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 Ga(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 Ox(t,e,r){let[o,n,i]=C(r?.in,t,e.start,e.end);return Ga([Va([o,n],r),i],r)}function Ka(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 Mx(t,e,r){let[o,...n]=C(r?.in,t,...e),i=Ka(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 _x(t,e){let r=+l(t)-+l(e);return r>0?-1:r<0?1:r}function L(t){return h(t,Date.now())}function Ax(t){let e=Math.trunc(t/7);return e===0?0:e}function St(t,e,r){let[o,n]=C(r?.in,t,e);return+wt(o)==+wt(n)}function Qa(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function ke(t){return!(!Qa(t)&&typeof t!="number"||isNaN(+l(t)))}function kx(t,e,r){let[o,n]=C(r?.in,t,e);if(!ke(o)||!ke(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(;!St(o,c);)u+=vt(c,r)?0:s,c=be(c,s);return u===0?0:u}function Ja(t,e,r){let[o,n]=C(r?.in,t,e);return We(o,r)-We(n,r)}function Ix(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 Bo(t,e,r){let[o,n]=C(r?.in,t,e),i=Ml(o,n),s=Math.abs(De(o,n));o.setDate(o.getDate()-i*s);let a=+(Ml(o,n)===-i),u=i*(s-a);return u===0?0:u}function Ml(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 Ie(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 Ie(r?.roundingMethod)(i)}function Xa(t,e,r){return Ha(t,-e,r)}function Px(t,e,r){let[o,n]=C(r?.in,t,e),i=Ne(o,n),s=Math.abs(Ja(o,n,r)),a=Xa(o,i*s,r),u=+(Ne(a,n)===-i),c=i*(s-u);return c===0?0:c}function Lo(t,e){return+l(t)-+l(e)}function Br(t,e,r){let o=Lo(t,e)/Ae;return Ie(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 Za(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;Za(o)&&a===1&&Ne(o,i)===1&&(u=!1);let c=s*(a-+u);return c===0?0:c}function Cx(t,e,r){let o=ar(t,e,r)/3;return Ie(r?.roundingMethod)(o)}function Dt(t,e,r){let o=Lo(t,e)/1e3;return Ie(r?.roundingMethod)(o)}function Nx(t,e,r){let o=Bo(t,e,r)/7;return Ie(r?.roundingMethod)(o)}function eu(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 tu(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 Fx(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 $x(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 Rx(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 Tt(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 Wx(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+Tt(r):+Tt(o),s=n?Tt(o):Tt(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 Ux(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=tu({start:r,end:o},e),i=[],s=0;for(;s<n.length;){let a=n[s++];vt(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 Bx(t,e){let r=ur(t,e),o=qo(t,e);return Ho({start:r,end:o},e)}function ru(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 Lx(t,e){let r=jo(t,e),o=ru(t,e);return Ho({start:r,end:o},e)}function Yx(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 qx(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 Hx(t,e){let r=l(t,e?.in);return r.setMinutes(59,59,999),r}function ou(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 jx(t,e){return ou(t,{...e,weekStartsOn:1})}function zx(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 Vx(t,e){let r=l(t,e?.in);return r.setSeconds(59,999),r}function Gx(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 Kx(t,e){let r=l(t,e?.in);return r.setMilliseconds(999),r}function Qx(t){return Yo(Date.now(),t)}function Jx(t){let e=L(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=L(t?.in);return i.setFullYear(r,o,n+1),i.setHours(23,59,59,999),t?.in?t.in(i):i}function Xx(t){let e=L(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 Zx={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"}},_l=(t,e,r)=>{let o,n=Zx[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 eg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},tg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rg={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},El={date:gi({formats:eg,defaultWidth:"full"}),time:gi({formats:tg,defaultWidth:"full"}),dateTime:gi({formats:rg,defaultWidth:"full"})};var og={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Al=(t,e,r,o)=>og[t];function Lr(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 ng={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ig={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},sg={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"]},ag={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"]},ug={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"}},cg={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"}},fg=(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"},kl={ordinalNumber:fg,era:Lr({values:ng,defaultWidth:"wide"}),quarter:Lr({values:ig,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Lr({values:sg,defaultWidth:"wide"}),day:Lr({values:ag,defaultWidth:"wide"}),dayPeriod:Lr({values:ug,defaultWidth:"wide",formattingValues:cg,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)?pg(a,m=>m.test(s)):lg(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 lg(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function pg(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function Il(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 mg=/^(\d+)(th|st|nd|rd)?/i,dg=/\d+/i,hg={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},yg={any:[/^b/i,/^(a|c)/i]},xg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gg={any:[/1/i,/2/i,/3/i,/4/i]},bg={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},vg={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]},wg={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},Sg={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]},Dg={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},Tg={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}},Pl={ordinalNumber:Il({matchPattern:mg,parsePattern:dg,valueCallback:t=>parseInt(t,10)}),era:Yr({matchPatterns:hg,defaultMatchWidth:"wide",parsePatterns:yg,defaultParseWidth:"any"}),quarter:Yr({matchPatterns:xg,defaultMatchWidth:"wide",parsePatterns:gg,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Yr({matchPatterns:bg,defaultMatchWidth:"wide",parsePatterns:vg,defaultParseWidth:"any"}),day:Yr({matchPatterns:wg,defaultMatchWidth:"wide",parsePatterns:Sg,defaultParseWidth:"any"}),dayPeriod:Yr({matchPatterns:Dg,defaultMatchWidth:"any",parsePatterns:Tg,defaultParseWidth:"any"})};var He={code:"en-US",formatDistance:_l,formatLong:El,formatRelative:Al,localize:kl,match:Pl,options:{weekStartsOn:0,firstWeekContainsDate:1}};function nu(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 k(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 k(e==="yy"?o%100:o,e.length)},M(t,e){let r=t.getMonth();return e==="M"?String(r+1):k(r+1,2)},d(t,e){return k(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 k(t.getHours()%12||12,e.length)},H(t,e){return k(t.getHours(),e.length)},m(t,e){return k(t.getMinutes(),e.length)},s(t,e){return k(t.getSeconds(),e.length)},S(t,e){let r=e.length,o=t.getMilliseconds(),n=Math.trunc(o*Math.pow(10,r-3));return k(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 k(s,2)}return e==="Yo"?r.ordinalNumber(i,{unit:"year"}):k(i,e.length)},R:function(t,e){let r=We(t);return k(r,e.length)},u:function(t,e){let r=t.getFullYear();return k(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 k(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 k(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 k(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"}):k(n,e.length)},I:function(t,e,r){let o=zo(t);return e==="Io"?r.ordinalNumber(o,{unit:"week"}):k(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=nu(t);return e==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):k(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 k(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 k(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 k(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"}):k(o,e.length)},k:function(t,e,r){let o=t.getHours();return o===0&&(o=24),e==="ko"?r.ordinalNumber(o,{unit:"hour"}):k(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 Nl(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 Nl(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"+Cl(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"+Cl(o,":");case"zzzz":default:return"GMT"+fr(o,":")}},t:function(t,e,r){let o=Math.trunc(+t/1e3);return k(o,e.length)},T:function(t,e,r){return k(+t,e.length)}};function Cl(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+k(i,2)}function Nl(t,e){return t%60===0?(t>0?"-":"+")+k(Math.abs(t)/60,2):fr(t,e)}function fr(t,e=""){let r=t>0?"-":"+",o=Math.abs(t),n=k(Math.trunc(o/60),2),i=k(o%60,2);return r+n+e+i}var Fl=(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"})}},$l=(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"})}},Og=(t,e)=>{let r=t.match(/(P+)(p+)?/)||[],o=r[1],n=r[2];if(!n)return Fl(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}}",Fl(o,e)).replace("{{time}}",$l(n,e))},jr={p:$l,P:Og};var Mg=/^D+$/,_g=/^Y+$/,Eg=["D","DD","YY","YYYY"];function vi(t){return Mg.test(t)}function wi(t){return _g.test(t)}function Go(t,e,r){let o=Ag(t,e,r);if(console.warn(o),Eg.includes(t))throw new RangeError(o)}function Ag(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 kg=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ig=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pg=/^'([^]*?)'?$/,Cg=/''/g,Ng=/[a-zA-Z]/;function iu(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(!ke(a))throw new RangeError("Invalid time value");let u=e.match(Ig).map(f=>{let m=f[0];if(m==="p"||m==="P"){let p=jr[m];return p(f,n.formatLong)}return f}).join("").match(kg).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let m=f[0];if(m==="'")return{isToken:!1,value:Fg(f)};if(bi[m])return{isToken:!0,value:f};if(m.match(Ng))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 Fg(t){let e=t.match(Pg);return e?e[1].replace(Cg,"'"):t}function su(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=Dt(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 au(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=Ie(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<Fa?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/Fa);return n.formatDistance("xYears",g,s)}}function $g(t,e){return su(t,L(t),e)}function Rg(t,e){return au(t,L(t),e)}var Wg=["years","months","weeks","days","hours","minutes","seconds"];function Ug(t,e){let r=G(),o=e?.locale??r.locale??He,n=e?.format??Wg,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 Bg(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=k(r.getDate(),2),f=k(r.getMonth()+1,2);i=`${k(r.getFullYear(),4)}${a}${f}${a}${c}`}if(n!=="date"){let c=r.getTimezoneOffset();if(c!==0){let w=Math.abs(c),g=k(Math.trunc(w/60),2),E=k(w%60,2);s=`${c<0?"+":"-"}${g}:${E}`}else s="Z";let f=k(r.getHours(),2),m=k(r.getMinutes(),2),p=k(r.getSeconds(),2),d=i===""?"":"T",y=[f,m,p].join(u);i=`${i}${d}${y}${s}`}return i}function Lg(t,e){let r=l(t,e?.in);if(!ke(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=k(r.getDate(),2),c=k(r.getMonth()+1,2);i=`${k(r.getFullYear(),4)}${s}${c}${s}${u}`}if(n!=="date"){let u=k(r.getHours(),2),c=k(r.getMinutes(),2),f=k(r.getSeconds(),2);i=`${i}${i===""?"":" "}${u}${a}${c}${a}${f}`}return i}function Yg(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 qg(t,e){let r=l(t,e?.in);if(!ke(r))throw new RangeError("Invalid time value");let o=e?.fractionDigits??0,n=k(r.getDate(),2),i=k(r.getMonth()+1,2),s=r.getFullYear(),a=k(r.getHours(),2),u=k(r.getMinutes(),2),c=k(r.getSeconds(),2),f="";if(o>0){let d=r.getMilliseconds(),y=Math.trunc(d*Math.pow(10,o-3));f="."+k(y,o)}let m="",p=r.getTimezoneOffset();if(p!==0){let d=Math.abs(p),y=k(Math.trunc(d/60),2),w=k(d%60,2);m=`${p<0?"+":"-"}${y}:${w}`}else m="Z";return`${s}-${i}-${n}T${a}:${u}:${c}${f}${m}`}var Hg=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],jg=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zg(t){let e=l(t);if(!ke(e))throw new RangeError("Invalid time value");let r=Hg[e.getUTCDay()],o=k(e.getUTCDate(),2),n=jg[e.getUTCMonth()],i=e.getUTCFullYear(),s=k(e.getUTCHours(),2),a=k(e.getUTCMinutes(),2),u=k(e.getUTCSeconds(),2);return`${r}, ${o} ${n} ${i} ${s}:${a}:${u} GMT`}function Vg(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 iu(o,f,{locale:s,weekStartsOn:a})}function Gg(t,e){return l(t*1e3,e?.in)}function uu(t,e){return l(t,e?.in).getDate()}function lr(t,e){return l(t,e?.in).getDay()}function cu(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 fu(t,e){let o=l(t,e?.in).getFullYear();return o%400===0||o%4===0&&o%100!==0}function Kg(t,e){let r=l(t,e?.in);return Number.isNaN(+r)?NaN:fu(r)?366:365}function Qg(t,e){let o=l(t,e?.in).getFullYear();return Math.floor(o/10)*10}function lu(){return Object.assign({},G())}function Jg(t,e){return l(t,e?.in).getHours()}function pu(t,e){let r=l(t,e?.in).getDay();return r===0?7:r}function Xg(t,e){let r=ze(t,e),n=+ze(ir(r,60))-+r;return Math.round(n/at)}function Zg(t){return l(t).getMilliseconds()}function e0(t,e){return l(t,e?.in).getMinutes()}function t0(t,e){return l(t,e?.in).getMonth()}function r0(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 o0(t){return l(t).getSeconds()}function n0(t){return+l(t)}function i0(t){return Math.trunc(+l(t)/1e3)}function s0(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=uu(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 mu(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 a0(t,e){let r=l(t,e?.in);return Wr(mu(r,e),ur(r,e),e)+1}function u0(t,e){return l(t,e?.in).getFullYear()}function c0(t){return Math.trunc(t*qe)}function f0(t){return Math.trunc(t*pi)}function l0(t){return Math.trunc(t*rr)}function p0(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 m0(t,e){let{start:r,end:o}=ve(e?.in,t),n={},i=eu(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=Bo(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=Br(o,p);d&&(n.minutes=d);let y=or(p,{minutes:n.minutes}),w=Dt(o,y);return w&&(n.seconds=w),n}function d0(t,e,r){let o;return h0(e)?o=e:r=e,new Intl.DateTimeFormat(r?.locale,o).format(l(t))}function h0(t){return t!==void 0&&!("locale"in t)}function y0(t,e,r){let o=0,n,[i,s]=C(r?.in,t,e);if(r?.unit)n=r?.unit,n==="second"?o=Dt(i,s):n==="minute"?o=Br(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=Dt(i,s);Math.abs(u)<$r?(o=Dt(i,s),n="second"):Math.abs(u)<rr?(o=Br(i,s),n="minute"):Math.abs(u)<yi&&Math.abs(De(i,s))<1?(o=Ur(i,s),n="hour"):Math.abs(u)<Sl&&(o=De(i,s))&&Math.abs(o)<7?n="day":Math.abs(u)<Ra?(o=Wr(i,s),n="week"):Math.abs(u)<Dl?(o=Rr(i,s),n="month"):Math.abs(u)<$a?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 x0(t,e){return+l(t)>+l(e)}function g0(t,e){return+l(t)<+l(e)}function b0(t,e){return+l(t)==+l(e)}function v0(t,e,r){let o=new Date(t,e,r);return o.getFullYear()===t&&o.getMonth()===e&&o.getDate()===r}function w0(t,e){return l(t,e?.in).getDate()===1}function S0(t,e){return l(t,e?.in).getDay()===5}function D0(t){return+l(t)>Date.now()}function du(t,e){let r=T0(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 T0(t){return typeof t=="function"&&t.prototype?.constructor===t}var O0=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=O0;subPriority=-1;constructor(e,r){super(),this.context=e||(o=>h(r,o))}set(e,r){return r.timestampIsSet?e:h(e,du(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 Ei(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 ki=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 Ii=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 hu(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(hu(e,o,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function yu(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(yu(e,o))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var M0=[31,28,31,30,31,30,31,31,30,31,30,31],_0=[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=Ei(o),i=e.getMonth();return n?r>=1&&r<=_0[i]:r>=1&&r<=M0[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 Bi=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 Ei(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 Li=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 xu(t,e,r){let o=l(t,r?.in),n=pu(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=xu(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 gu={G:new Oi,y:new Ai,Y:new ki,R:new Ii,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 Bi,E:new Li,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 E0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,k0=/^'([^]*?)'?$/,I0=/''/g,P0=/\S/,C0=/[a-zA-Z]/;function bu(t,e,r,o){let n=()=>h(o?.in||r,NaN),i=lu(),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(A0).map(g=>{let E=g[0];if(E in jr){let D=jr[E];return D(g,s.formatLong)}return g}).join("").match(E0),p=[];for(let g of m){!o?.useAdditionalWeekYearTokens&&wi(g)&&Go(g,e,t),!o?.useAdditionalDayOfYearTokens&&vi(g)&&Go(g,e,t);let E=g[0],D=gu[E];if(D){let{incompatibleTokens:T}=D;if(Array.isArray(T)){let V=p.find(z=>T.includes(z.token)||z.token===E);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:E,fullToken:g});let B=D.run(t,g,s.match,c);if(!B)return n();f.push(B.setter),t=B.rest}else{if(E.match(C0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");if(g==="''"?g="'":E==="'"&&(g=N0(g)),t.indexOf(g)===0)t=t.slice(g.length);else return n()}}if(t.length>0&&P0.test(t))return n();let d=f.map(g=>g.priority).sort((g,E)=>E-g).filter((g,E,D)=>D.indexOf(g)===E).map(g=>f.filter(E=>E.priority===g).sort((E,D)=>D.subPriority-E.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 E=g.set(y,w,c);Array.isArray(E)?(y=E[0],Object.assign(w,E[1])):y=E}return y}function N0(t){return t.match(k0)[1].replace(I0,"'")}function F0(t,e,r){return ke(bu(t,e,new Date,r))}function $0(t,e){return l(t,e?.in).getDay()===1}function R0(t){return+l(t)<Date.now()}function is(t,e){let r=l(t,e?.in);return r.setMinutes(0,0,0),r}function vu(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 wu(t,e,r){return Ko(t,e,{...r,weekStartsOn:1})}function W0(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 Su(t,e){return+ss(t)==+ss(e)}function Du(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()&&o.getMonth()===n.getMonth()}function Tu(t,e,r){let[o,n]=C(r?.in,t,e);return+Tt(o)==+Tt(n)}function as(t,e){let r=l(t,e?.in);return r.setMilliseconds(0),r}function Ou(t,e){return+as(t)==+as(e)}function Mu(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()}function U0(t,e){return vu(l(t,e?.in),L(e?.in||t))}function B0(t,e){return wu(h(e?.in||t,t),L(e?.in||t))}function L0(t){return Su(t,L(t))}function Y0(t,e){return Du(h(e?.in||t,t),L(e?.in||t))}function q0(t,e){return Tu(h(e?.in||t,t),L(e?.in||t))}function H0(t){return Ou(t,L(t))}function j0(t,e){return Ko(h(e?.in||t,t),L(e?.in||t),e)}function z0(t,e){return Mu(h(e?.in||t,t),L(e?.in||t))}function V0(t,e){return l(t,e?.in).getDay()===4}function G0(t,e){return St(h(e?.in||t,t),L(e?.in||t))}function K0(t,e){return St(t,be(L(e?.in||t),1),e)}function Q0(t,e){return l(t,e?.in).getDay()===2}function J0(t,e){return l(t,e?.in).getDay()===3}function X0(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 Z0(t,e){return St(h(e?.in||t,t),mr(L(e?.in||t),1))}function eb(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 _u(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 tb(t,e){return _u(t,{...e,weekStartsOn:1})}function rb(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 ob(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 nb(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 ib=/(\w)\1*|''|'(''|[^'])+('|$)|./g,sb=/^'([^]*?)'?$/,ab=/''/g,ub=/[a-zA-Z]/;function cb(t,e){let r=l(t);if(!ke(r))throw new RangeError("Invalid time value");let o=e.match(ib);return o?o.map(i=>{if(i==="''")return"'";let s=i[0];if(s==="'")return fb(i);let a=Ve[s];if(a)return a(r,i);if(s.match(ub))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return i}).join(""):""}function fb(t){let e=t.match(sb);return e?e[1].replace(ab,"'"):t}function lb({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 pb(t){let e=t/qe;return Math.trunc(e)}function mb(t){let e=t/Ae;return Math.trunc(e)}function db(t){let e=t/Nr;return Math.trunc(e)}function hb(t){let e=t/pi;return Math.trunc(e)}function yb(t){return Math.trunc(t*Ae)}function xb(t){return Math.trunc(t*$r)}function gb(t){let e=t/mi;return Math.trunc(e)}function bb(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 vb(t,e){return Fe(t,5,e)}function wb(t,e){return Fe(t,1,e)}function Sb(t,e){return Fe(t,6,e)}function Db(t,e){return Fe(t,0,e)}function Tb(t,e){return Fe(t,4,e)}function Ob(t,e){return Fe(t,2,e)}function Mb(t,e){return Fe(t,3,e)}function _b(t,e){let r=()=>h(e?.in,NaN),o=e?.additionalDigits??2,n=Ib(t),i;if(n.date){let c=Pb(n.date,o);i=Cb(c.restDateString,c.year)}if(!i||isNaN(+i))return r();let s=+i,a=0,u;if(n.time&&(a=Nb(n.time),isNaN(a)))return r();if(n.timezone){if(u=Fb(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+-].*)$/},Eb=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ab=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,kb=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Ib(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 Pb(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 Cb(t,e){if(e===null)return new Date(NaN);let r=t.match(Eb);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 Bb(e,a,u)?$b(e,a,u):new Date(NaN);{let c=new Date(0);return!Wb(e,i,s)||!Ub(e,n)?new Date(NaN):(c.setUTCFullYear(e,i,Math.max(n,s)),c)}}function Qo(t){return t?parseInt(t):1}function Nb(t){let e=t.match(Ab);if(!e)return NaN;let r=Eu(e[1]),o=Eu(e[2]),n=Eu(e[3]);return Lb(r,o,n)?r*qe+o*Ae+n*1e3:NaN}function Eu(t){return t&&parseFloat(t.replace(",","."))||0}function Fb(t){if(t==="Z")return 0;let e=t.match(kb);if(!e)return 0;let r=e[1]==="+"?-1:1,o=parseInt(e[2]),n=e[3]&&parseInt(e[3])||0;return Yb(o,n)?r*(o*qe+n*Ae):NaN}function $b(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 Rb=[31,null,31,30,31,30,31,31,30,31,30,31];function Wl(t){return t%400===0||t%4===0&&t%100!==0}function Wb(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(Rb[e]||(Wl(t)?29:28))}function Ub(t,e){return e>=1&&e<=(Wl(t)?366:365)}function Bb(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function Lb(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function Yb(t,e){return e>=0&&e<=59}function qb(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 Hb(t,e){return $e(t,5,e)}function jb(t,e){return $e(t,1,e)}function zb(t,e){return $e(t,6,e)}function Vb(t,e){return $e(t,0,e)}function Gb(t,e){return $e(t,4,e)}function Kb(t,e){return $e(t,2,e)}function Qb(t,e){return $e(t,3,e)}function Jb(t){return Math.trunc(t*mi)}function Xb(t){let e=t/hi;return Math.trunc(e)}function Zb(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=Ie(u)(a/r)*r;return o.setHours(f,0,0,0),o}function ev(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=Ie(a)(s/r)*r;return o.setMinutes(c,0,0),o}function tv(t){let e=t/rr;return Math.trunc(e)}function rv(t){return t*Nr}function ov(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=cu(s);return o.setMonth(e,Math.min(i,a)),o}function nv(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 iv(t,e,r){let o=l(t,r?.in);return o.setDate(e),o}function sv(t,e,r){let o=l(t,r?.in);return o.setMonth(0),o.setDate(e),o}function av(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]);Ol(e)}function uv(t,e,r){let o=l(t,r?.in);return o.setHours(e),o}function cv(t,e,r){let o=l(t,r?.in);return o.setMilliseconds(e),o}function fv(t,e,r){let o=l(t,r?.in);return o.setMinutes(e),o}function lv(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 pv(t,e,r){let o=l(t,r?.in);return o.setSeconds(e),o}function mv(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 dv(t,e,r){let o=l(t,r?.in);return isNaN(+o)?h(r?.in||t,NaN):(o.setFullYear(e),o)}function hv(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 yv(t){return wt(Date.now(),t)}function xv(t){let e=L(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 gv(t){let e=L(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=L(t?.in);return i.setFullYear(r,o,n-1),i.setHours(0,0,0,0),i}function Au(t,e,r){return bt(t,-e,r)}function bv(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=Au(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 vv(t,e,r){return La(t,-e,r)}function wv(t,e,r){return Ya(t,-e,r)}function Sv(t,e,r){return nr(t,-e,r)}function Dv(t,e,r){return Ro(t,-e,r)}function Tv(t,e,r){return Wo(t,-e,r)}function Ov(t,e,r){return ja(t,-e,r)}function Mv(t,e,r){return ir(t,-e,r)}function _v(t,e,r){return za(t,-e,r)}function Ev(t){return Math.trunc(t*7)}function Av(t){return Math.trunc(t*365.2425)}function kv(t){return Math.trunc(t*di)}function Iv(t){return Math.trunc(t*hi)}var Gr=nt(Ul(),1),Yl=nt(Bl(),1);var Ll=t=>Number.isFinite(t)?t:0;function Pv(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(Ll(t*1e3)%1e3),nanoseconds:Math.trunc(Ll(t*1e6)%1e3)}}function Cv(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 Nu(t){switch(typeof t){case"number":{if(Number.isFinite(t))return Pv(t);break}case"bigint":return Cv(t)}throw new TypeError("Expected a finite number or bigint")}var Nv=t=>t===0||t===0n,Fv=(t,e)=>e===1||e===1n?t:`${t}s`,$v=1e-7,Rv=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+$v);return(Math.round(p)/10**m).toFixed(m)},s=(f,m,p,d)=>{if(!((n.length===0||!e.colonNotation)&&Nv(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?" "+Fv(m,f):p;n.push(d)}},a=Nu(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),E=w?y.toFixed(w):g;s(Number.parseFloat(E),"millisecond","ms",E)}}else{let f=(r?Number(t%Rv):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(Yl.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},Fu=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},$u=t=>fs(t),Wv=t=>cs.formatDistanceToNow(new Date(t));var Ru=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 ${$u(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 Wu=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=Fu(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Uu=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 Bu=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 Lu=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 qu=nt(Zl(),1);var Hu=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 ju=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 ep=(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=ep("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 Ot.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 zu=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 Vu=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 Gu=class{constructor(){this.referenceObjectMap=new dr}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var Ku=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 Qu=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new Ot.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 Ju=class{constructor(){this.symbolTree=new qu.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:()=>fw,ensurePureUint8Array:()=>mw,isBufferLike:()=>pw,isUint8Array:()=>lw,uInt8ArrayExtras:()=>uw,uInt8ArrayToBase64:()=>cw});var hr={};re(hr,{areUint8ArraysEqual:()=>Gv,assertUint8Array:()=>Wt,assertUint8ArrayOrArrayBuffer:()=>np,base64ToString:()=>tw,base64ToUint8Array:()=>up,compareUint8Arrays:()=>Kv,concatUint8Arrays:()=>Vv,getUintBE:()=>iw,hexToUint8Array:()=>nw,includes:()=>sw,indexOf:()=>cp,isUint8Array:()=>Xu,stringToBase64:()=>ew,stringToUint8Array:()=>sp,toUint8Array:()=>zv,uint8ArrayToBase64:()=>ap,uint8ArrayToHex:()=>ow,uint8ArrayToString:()=>ip});var Lv=Object.prototype.toString,Yv="[object Uint8Array]",qv="[object ArrayBuffer]";function op(t,e,r){return t?t.constructor===e?!0:Lv.call(t)===r:!1}function Xu(t){return op(t,Uint8Array,Yv)}function Hv(t){return op(t,ArrayBuffer,qv)}function jv(t){return Xu(t)||Hv(t)}function Wt(t){if(!Xu(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}function np(t){if(!jv(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}function zv(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 Vv(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 Gv(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 Kv(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 tp={utf8:new globalThis.TextDecoder("utf8")};function ip(t,e="utf8"){return np(t),tp[e]??=new globalThis.TextDecoder(e),tp[e].decode(t)}function tn(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}var Qv=new globalThis.TextEncoder;function sp(t){return tn(t),Qv.encode(t)}function Jv(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Xv(t){return t.replaceAll("-","+").replaceAll("_","/")}var Zv=65535;function ap(t,{urlSafe:e=!1}={}){Wt(t);let r;if(t.length<Zv)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?Jv(r):r}function up(t){return tn(t),Uint8Array.from(globalThis.atob(Xv(t)),e=>e.codePointAt(0))}function ew(t,{urlSafe:e=!1}={}){return tn(t),ap(sp(t),{urlSafe:e})}function tw(t){return tn(t),ip(up(t))}var rw=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function ow(t){Wt(t);let e="";for(let r=0;r<t.length;r++)e+=rw[t[r]];return e}var rp={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 nw(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=rp[t[o*2]],i=rp[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 iw(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 cp(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 sw(t,e){return cp(t,e)!==-1}var uw=hr;function cw(t){return hr.uint8ArrayToBase64(t)}function fw(t){return hr.base64ToUint8Array(t)}var lw=t=>hr.isUint8Array(t);function pw(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}function mw(t){let e=new Uint8Array(t.length);return e.set(t),e}var ps={};re(ps,{Guard:()=>on,GuardError:()=>nn,GuardSet:()=>sn,passGuardsOrReject:()=>dw});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 dw=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=yt(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=yt(m),d=p.next();!d.done;d=p.next()){var y=d.value;try{Hf(y)}catch(w){i=i??[],w instanceof zn?i=et(et([],Le(i)),Le(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)Hf(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 ya=tt.EMPTY;function Vn(t){return t instanceof tt||t&&"closed"in t&&W(t.remove)&&W(t.add)&&W(t.unsubscribe)}function Hf(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],Le(r))):setTimeout.apply(void 0,et([t,e],Le(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 jf=function(){return xa("C",void 0,void 0)}();function zf(t){return xa("E",void 0,t)}function Vf(t){return xa("N",t,void 0)}function xa(t,e,r){return{kind:t,value:e,error:r}}var Xt=null;function Ir(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 Gf(t){rt.useDeprecatedSynchronousErrorHandling&&Xt&&(Xt.errorThrown=!0,Xt.error=t)}var Eo=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=Jy,o}return e.create=function(r,o,n){return new Qn(r,o,n)},e.prototype.next=function(r){this.isStopped?ba(Vf(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?ba(zf(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?ba(jf,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 Gy=Function.prototype.bind;function ga(t,e){return Gy.call(t,e)}var Ky=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&&ga(r.next,a),error:r.error&&ga(r.error,a),complete:r.complete&&ga(r.complete,a)}):s=r}return i.destination=new Ky(s),i}return e}(Eo);function Kn(t){rt.useDeprecatedSynchronousErrorHandling?Gf(t):Gn(t)}function Qy(t){throw t}function ba(t,e){var r=rt.onStoppedNotification;r&&Ar.setTimeout(function(){return r(t,e)})}var Jy={closed:!0,next:Jt,error:Qy,complete:Jt};var kr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Jn(t){return t}function Kf(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=Zy(e)?e:new Qn(e,r,o);return Ir(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=Qf(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 Kf(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Qf(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 Qf(t){var e;return(e=t??rt.Promise)!==null&&e!==void 0?e:Promise}function Xy(t){return t&&W(t.next)&&W(t.error)&&W(t.complete)}function Zy(t){return t&&t instanceof Eo||Xy(t)&&Vn(t)}function ex(t){return W(t?.lift)}function fe(t){return function(e){if(ex(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 tx(t,e,r,o,n)}var tx=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}(Eo);var Jf=jn(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var xt=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 Xf(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;Ir(function(){var n,i;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var s=yt(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;Ir(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;Ir(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?ya:(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 Xf(r,o)},e}(oe);var Xf=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:ya},e}(xt);var Ao={now:function(){return(Ao.delegate||Date).now()},delegate:void 0};var va=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}(xt);var Zf=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 Io={setInterval:function(t,e){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var n=Io.delegate;return n?.setInterval?n.setInterval.apply(n,et([t,e],Le(r))):setInterval.apply(void 0,et([t,e],Le(r)))},clearInterval:function(t){var e=Io.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var el=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),Io.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&&Io.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}(Zf);var wa=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 tl=function(t){_e(e,t);function e(r,o){o===void 0&&(o=wa.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}(wa);var ko=new tl(el),rl=ko;function Xn(t){return t&&W(t.schedule)}function rx(t){return t[t.length-1]}function Pr(t){return Xn(rx(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 ox(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oi=ox();function ni(t){return W(t?.[oi])}function ii(t){return Yf(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 nx(t);if(Cr(t))return ix(t);if(Zn(t))return sx(t);if(ti(t))return ol(t);if(ni(t))return ax(t);if(si(t))return ux(t)}throw ri(t)}function nx(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 ix(t){return new oe(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function sx(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 ax(t){return new oe(function(e){var r,o;try{for(var n=yt(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 ol(t){return new oe(function(e){cx(t,e).catch(function(r){return e.error(r)})})}function ux(t){return ol(ii(t))}function cx(t,e){var r,o,n,i;return Lf(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=qf(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 nl(t,e){return ge(t).pipe(ui(e),ai(e))}function il(t,e){return ge(t).pipe(ui(e),ai(e))}function sl(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 al(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 ul(t,e){return ci(ii(t),e)}function cl(t,e){if(t!=null){if(ei(t))return nl(t,e);if(Cr(t))return sl(t,e);if(Zn(t))return il(t,e);if(ti(t))return ci(t,e);if(ni(t))return al(t,e);if(si(t))return ul(t,e)}throw ri(t)}function Zt(t,e){return e?cl(t,e):ge(t)}function Sa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Pr(t);return Zt(t,r)}function fl(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 fx=Array.isArray;function lx(t,e){return fx(e)?t.apply(void 0,et([],Le(e))):t(e)}function ll(t){return er(function(e){return lx(t,e)})}function pl(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(E){n?.(E),i?d(E):e.next(E)},function(){g=!0},void 0,function(){if(g)try{c--;for(var E=function(){var D=u.shift();s?je(e,s,function(){return y(D)}):y(D)};u.length&&c<o;)E();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 pl(o,n,t,r)}))}function ml(t){return t===void 0&&(t=1/0),Po(Jn,t)}function dl(){return ml(1)}function Da(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return dl()(Zt(t,Pr(t)))}var px=["addListener","removeListener"],mx=["addEventListener","removeEventListener"],dx=["on","off"];function tr(t,e,r,o){if(W(r)&&(o=r,r=void 0),o)return tr(t,e,r).pipe(ll(o));var n=Le(xx(t)?mx.map(function(a){return function(u){return t[a](e,u,r)}}):hx(t)?px.map(hl(t,e)):yx(t)?dx.map(hl(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 hl(t,e){return function(r){return function(o){return t[r](e,o)}}}function hx(t){return W(t.addListener)&&W(t.removeListener)}function yx(t){return W(t.on)&&W(t.off)}function xx(t){return W(t.addEventListener)&&W(t.removeEventListener)}function yl(t,e,r){t===void 0&&(t=0),r===void 0&&(r=rl);var o=-1;return e!=null&&(Xn(e)?r=e:o=e),new oe(function(n){var i=fl(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 Ta(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 Oa(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 Ma(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 _a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Pr(t);return fe(function(o,n){(r?Da(t,o,r):Da(t,o)).subscribe(n)})}function Ea(t){return fe(function(e,r){ge(t).subscribe(le(r,function(){return r.complete()},Jt)),!r.closed&&e.subscribe(r)})}function xl(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(E){return m=ge(t(E)).subscribe(le(o,d,y))},g=function(){if(c){c=!1;var E=f;f=null,o.next(E),!p&&w(E)}};r.subscribe(le(o,function(E){c=!0,f=E,!(m&&!m.closed)&&(s?g():w(E))},function(){p=!0,!(u&&c&&m&&!m.closed)&&o.complete()}))})}function Aa(t,e,r){e===void 0&&(e=ko);var o=yl(t,e);return xl(function(){return o},r)}var gx={debounce:Oa,debounceTime:Ma,map:er,startWith:_a,takeUntil:Ea,throttleTime:Aa,filter:Ta};var Ia=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 xt;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 xt,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var ka=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 Ot={};re(Ot,{CronJob:()=>Xo,CronManager:()=>Ru,ExtendedDate:()=>Wu,HrtMeasurement:()=>Uu,Interval:()=>Bu,TimeStamp:()=>Qr,Timer:()=>Lu,getMilliSecondsAsHumanReadableAgoTime:()=>Wv,getMilliSecondsAsHumanReadableString:()=>$u,getMilliSecondsFromUnits:()=>Fu,units:()=>Nt});var fi={};re(fi,{Cron:()=>Sx,CronDate:()=>Ye,CronPattern:()=>Ca,scheduledJobs:()=>Fo});function Ee(t,e,r,o,n,i,s,a){return Ee.fromTZ(Ee.tp(t,e,r,o,n,i,s),a)}Ee.fromTZISO=(t,e,r)=>Ee.fromTZ(bx(t,e),r);Ee.fromTZ=function(t,e){let r=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),o=Pa(t.tz,r),n=new Date(r.getTime()-o),i=Pa(t.tz,n);if(i-o===0)return n;{let s=new Date(r.getTime()-i),a=Pa(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}};Ee.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}};Ee.tp=(t,e,r,o,n,i,s)=>({y:t,m:e,d:r,h:o,i:n,s:i,tz:s});function Pa(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 bx(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("+")?Ee.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Ee.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}Ee.minitz=Ee;var Na=32,$o=31|Na,vl=[1,2,4,8,16],Ca=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]|Na;else if(e===$o)this.dayOfWeek[t]=$o;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|vl[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},gl=[31,28,31,30,31,30,31,31,30,31,30,31],gt=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Ye=class wl{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 wl)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&&vl[s-1]&n)return!0;if(n&Na){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=Ee.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>gl[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=Ee.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(Ee.fromTZISO(e,this.tz))}findNext(e,r,o,n){let i=this[r],s;o.lastDayOfMonth&&(this.month!==1?s=gl[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,gt[o][0],e,gt[o][2]);if(n>1){let i=o+1;for(;i<gt.length;)this[gt[i][0]]=-gt[i][2],i++;if(n===3)return this[gt[o][1]]++,this[gt[o][0]]=-gt[o][2],this.apply(),this.recurse(e,r,0);if(this.apply())return this.recurse(e,r,o-1)}return o+=1,o>=gt.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)):Ee.fromTZ(Ee.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function vx(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 wx(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var bl=30*1e3,Fo=[],Sx=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=vx(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 Ca("* * * * *")},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 Ca(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>bl&&(e=bl),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&wx(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:()=>La,addDays:()=>be,addHours:()=>Ya,addISOWeekYears:()=>Ha,addMilliseconds:()=>nr,addMinutes:()=>Ro,addMonths:()=>bt,addQuarters:()=>Wo,addSeconds:()=>ja,addWeeks:()=>ir,addYears:()=>za,areIntervalsOverlapping:()=>Tx,clamp:()=>Ox,closestIndexTo:()=>Ka,closestTo:()=>Mx,compareAsc:()=>Ne,compareDesc:()=>_x,constructFrom:()=>h,constructNow:()=>L,daysToWeeks:()=>Ax,differenceInBusinessDays:()=>Ix,differenceInCalendarDays:()=>De,differenceInCalendarISOWeekYears:()=>Ja,differenceInCalendarISOWeeks:()=>kx,differenceInCalendarMonths:()=>Rr,differenceInCalendarQuarters:()=>Uo,differenceInCalendarWeeks:()=>Wr,differenceInCalendarYears:()=>sr,differenceInDays:()=>Bo,differenceInHours:()=>Ur,differenceInISOWeekYears:()=>Px,differenceInMilliseconds:()=>Lo,differenceInMinutes:()=>Br,differenceInMonths:()=>ar,differenceInQuarters:()=>Cx,differenceInSeconds:()=>Dt,differenceInWeeks:()=>Nx,differenceInYears:()=>eu,eachDayOfInterval:()=>tu,eachHourOfInterval:()=>Fx,eachMinuteOfInterval:()=>$x,eachMonthOfInterval:()=>Rx,eachQuarterOfInterval:()=>Wx,eachWeekOfInterval:()=>Ux,eachWeekendOfInterval:()=>Ho,eachWeekendOfMonth:()=>Bx,eachWeekendOfYear:()=>Lx,eachYearOfInterval:()=>Yx,endOfDay:()=>Yo,endOfDecade:()=>qx,endOfHour:()=>Hx,endOfISOWeek:()=>jx,endOfISOWeekYear:()=>zx,endOfMinute:()=>Vx,endOfMonth:()=>qo,endOfQuarter:()=>Gx,endOfSecond:()=>Kx,endOfToday:()=>Qx,endOfTomorrow:()=>Jx,endOfWeek:()=>ou,endOfYear:()=>ru,endOfYesterday:()=>Xx,format:()=>iu,formatDate:()=>iu,formatDistance:()=>su,formatDistanceStrict:()=>au,formatDistanceToNow:()=>$g,formatDistanceToNowStrict:()=>Rg,formatDuration:()=>Ug,formatISO:()=>Bg,formatISO9075:()=>Lg,formatISODuration:()=>Yg,formatRFC3339:()=>qg,formatRFC7231:()=>zg,formatRelative:()=>Vg,formatters:()=>bi,fromUnixTime:()=>Gg,getDate:()=>uu,getDay:()=>lr,getDayOfYear:()=>nu,getDaysInMonth:()=>cu,getDaysInYear:()=>Kg,getDecade:()=>Qg,getDefaultOptions:()=>lu,getHours:()=>Jg,getISODay:()=>pu,getISOWeek:()=>zo,getISOWeekYear:()=>We,getISOWeeksInYear:()=>Xg,getMilliseconds:()=>Zg,getMinutes:()=>e0,getMonth:()=>t0,getOverlappingDaysInIntervals:()=>r0,getQuarter:()=>xi,getSeconds:()=>o0,getTime:()=>n0,getUnixTime:()=>i0,getWeek:()=>Vo,getWeekOfMonth:()=>s0,getWeekYear:()=>cr,getWeeksInMonth:()=>a0,getYear:()=>u0,hoursToMilliseconds:()=>c0,hoursToMinutes:()=>f0,hoursToSeconds:()=>l0,interval:()=>p0,intervalToDuration:()=>m0,intlFormat:()=>d0,intlFormatDistance:()=>y0,isAfter:()=>x0,isBefore:()=>g0,isDate:()=>Qa,isEqual:()=>b0,isExists:()=>v0,isFirstDayOfMonth:()=>w0,isFriday:()=>S0,isFuture:()=>D0,isLastDayOfMonth:()=>Za,isLeapYear:()=>fu,isMatch:()=>F0,isMonday:()=>$0,isPast:()=>R0,isSameDay:()=>St,isSameHour:()=>vu,isSameISOWeek:()=>wu,isSameISOWeekYear:()=>W0,isSameMinute:()=>Su,isSameMonth:()=>Du,isSameQuarter:()=>Tu,isSameSecond:()=>Ou,isSameWeek:()=>Ko,isSameYear:()=>Mu,isSaturday:()=>Ua,isSunday:()=>Ba,isThisHour:()=>U0,isThisISOWeek:()=>B0,isThisMinute:()=>L0,isThisMonth:()=>Y0,isThisQuarter:()=>q0,isThisSecond:()=>H0,isThisWeek:()=>j0,isThisYear:()=>z0,isThursday:()=>V0,isToday:()=>G0,isTomorrow:()=>K0,isTuesday:()=>Q0,isValid:()=>Ie,isWednesday:()=>J0,isWeekend:()=>vt,isWithinInterval:()=>X0,isYesterday:()=>Z0,lastDayOfDecade:()=>eb,lastDayOfISOWeek:()=>tb,lastDayOfISOWeekYear:()=>rb,lastDayOfMonth:()=>mu,lastDayOfQuarter:()=>ob,lastDayOfWeek:()=>_u,lastDayOfYear:()=>nb,lightFormat:()=>cb,lightFormatters:()=>Ve,longFormatters:()=>jr,max:()=>Va,milliseconds:()=>lb,millisecondsToHours:()=>pb,millisecondsToMinutes:()=>mb,millisecondsToSeconds:()=>db,min:()=>Ga,minutesToHours:()=>hb,minutesToMilliseconds:()=>yb,minutesToSeconds:()=>xb,monthsToQuarters:()=>gb,monthsToYears:()=>bb,nextDay:()=>Fe,nextFriday:()=>vb,nextMonday:()=>wb,nextSaturday:()=>Sb,nextSunday:()=>Db,nextThursday:()=>Tb,nextTuesday:()=>Ob,nextWednesday:()=>Mb,parse:()=>bu,parseISO:()=>_b,parseJSON:()=>qb,parsers:()=>gu,previousDay:()=>$e,previousFriday:()=>Hb,previousMonday:()=>jb,previousSaturday:()=>zb,previousSunday:()=>Vb,previousThursday:()=>Gb,previousTuesday:()=>Kb,previousWednesday:()=>Qb,quartersToMonths:()=>Jb,quartersToYears:()=>Xb,roundToNearestHours:()=>Zb,roundToNearestMinutes:()=>ev,secondsToHours:()=>tv,secondsToMilliseconds:()=>rv,secondsToMinutes:()=>ov,set:()=>nv,setDate:()=>iv,setDay:()=>pr,setDayOfYear:()=>sv,setDefaultOptions:()=>av,setHours:()=>uv,setISODay:()=>xu,setISOWeek:()=>yu,setISOWeekYear:()=>qa,setMilliseconds:()=>cv,setMinutes:()=>fv,setMonth:()=>Jo,setQuarter:()=>lv,setSeconds:()=>pv,setWeek:()=>hu,setWeekYear:()=>mv,setYear:()=>dv,startOfDay:()=>wt,startOfDecade:()=>hv,startOfHour:()=>is,startOfISOWeek:()=>pe,startOfISOWeekYear:()=>ze,startOfMinute:()=>ss,startOfMonth:()=>ur,startOfQuarter:()=>Tt,startOfSecond:()=>as,startOfToday:()=>yv,startOfTomorrow:()=>xv,startOfWeek:()=>Z,startOfWeekYear:()=>qr,startOfYear:()=>jo,startOfYesterday:()=>gv,sub:()=>bv,subBusinessDays:()=>vv,subDays:()=>mr,subHours:()=>wv,subISOWeekYears:()=>Xa,subMilliseconds:()=>Sv,subMinutes:()=>Dv,subMonths:()=>Au,subQuarters:()=>Tv,subSeconds:()=>Ov,subWeeks:()=>Mv,subYears:()=>_v,toDate:()=>l,transpose:()=>du,weeksToDays:()=>Ev,yearsToDays:()=>Av,yearsToMonths:()=>Iv,yearsToQuarters:()=>kv});var Dx=Math.pow(10,8)*24*60*60*1e3,Pk=-Dx,at=6048e5,li=864e5,Ae=6e4,qe=36e5,Nr=1e3,Fa=525600,Ct=43200,Fr=1440,pi=60,mi=3,di=12,hi=4,rr=3600,$r=60,yi=rr*24,Sl=yi*7,$a=yi*365.2425,Ra=$a/12,Dl=Ra*3,Wa=Symbol.for("constructDateFrom");function h(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Wa in t?t[Wa](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 bt(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?bt(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 Ua(t,e){return l(t,e?.in).getDay()===6}function Ba(t,e){return l(t,e?.in).getDay()===0}function vt(t,e){let r=l(t,e?.in).getDay();return r===0||r===6}function La(t,e,r){let o=l(t,r?.in),n=vt(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),vt(o,r)||(u-=1);return n&&vt(o,r)&&e!==0&&(Ua(o,r)&&o.setDate(o.getDate()+(s<0?2:-1)),Ba(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 Ya(t,e,r){return nr(t,e*qe,r)}var Tl={};function G(){return Tl}function Ol(t){Tl=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 wt(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=wt(o),s=wt(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 qa(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 Ha(t,e,r){return qa(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 bt(t,e*3,r)}function ja(t,e,r){return nr(t,e*1e3,r)}function ir(t,e,r){return be(t,e*7,r)}function za(t,e,r){return bt(t,e*12,r)}function Tx(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 Va(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 Ga(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 Ox(t,e,r){let[o,n,i]=C(r?.in,t,e.start,e.end);return Ga([Va([o,n],r),i],r)}function Ka(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 Mx(t,e,r){let[o,...n]=C(r?.in,t,...e),i=Ka(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 _x(t,e){let r=+l(t)-+l(e);return r>0?-1:r<0?1:r}function L(t){return h(t,Date.now())}function Ax(t){let e=Math.trunc(t/7);return e===0?0:e}function St(t,e,r){let[o,n]=C(r?.in,t,e);return+wt(o)==+wt(n)}function Qa(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Ie(t){return!(!Qa(t)&&typeof t!="number"||isNaN(+l(t)))}function Ix(t,e,r){let[o,n]=C(r?.in,t,e);if(!Ie(o)||!Ie(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(;!St(o,c);)u+=vt(c,r)?0:s,c=be(c,s);return u===0?0:u}function Ja(t,e,r){let[o,n]=C(r?.in,t,e);return We(o,r)-We(n,r)}function kx(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 Bo(t,e,r){let[o,n]=C(r?.in,t,e),i=Ml(o,n),s=Math.abs(De(o,n));o.setDate(o.getDate()-i*s);let a=+(Ml(o,n)===-i),u=i*(s-a);return u===0?0:u}function Ml(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 Xa(t,e,r){return Ha(t,-e,r)}function Px(t,e,r){let[o,n]=C(r?.in,t,e),i=Ne(o,n),s=Math.abs(Ja(o,n,r)),a=Xa(o,i*s,r),u=+(Ne(a,n)===-i),c=i*(s-u);return c===0?0:c}function Lo(t,e){return+l(t)-+l(e)}function Br(t,e,r){let o=Lo(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 Za(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;Za(o)&&a===1&&Ne(o,i)===1&&(u=!1);let c=s*(a-+u);return c===0?0:c}function Cx(t,e,r){let o=ar(t,e,r)/3;return ke(r?.roundingMethod)(o)}function Dt(t,e,r){let o=Lo(t,e)/1e3;return ke(r?.roundingMethod)(o)}function Nx(t,e,r){let o=Bo(t,e,r)/7;return ke(r?.roundingMethod)(o)}function eu(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 tu(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 Fx(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 $x(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 Rx(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 Tt(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 Wx(t,e){let{start:r,end:o}=ve(e?.in,t),n=+r>+o,i=n?+Tt(r):+Tt(o),s=n?Tt(o):Tt(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 Ux(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=tu({start:r,end:o},e),i=[],s=0;for(;s<n.length;){let a=n[s++];vt(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 Bx(t,e){let r=ur(t,e),o=qo(t,e);return Ho({start:r,end:o},e)}function ru(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 Lx(t,e){let r=jo(t,e),o=ru(t,e);return Ho({start:r,end:o},e)}function Yx(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 qx(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 Hx(t,e){let r=l(t,e?.in);return r.setMinutes(59,59,999),r}function ou(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 jx(t,e){return ou(t,{...e,weekStartsOn:1})}function zx(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 Vx(t,e){let r=l(t,e?.in);return r.setSeconds(59,999),r}function Gx(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 Kx(t,e){let r=l(t,e?.in);return r.setMilliseconds(999),r}function Qx(t){return Yo(Date.now(),t)}function Jx(t){let e=L(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=L(t?.in);return i.setFullYear(r,o,n+1),i.setHours(23,59,59,999),t?.in?t.in(i):i}function Xx(t){let e=L(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 Zx={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"}},_l=(t,e,r)=>{let o,n=Zx[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 eg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},tg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rg={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},El={date:gi({formats:eg,defaultWidth:"full"}),time:gi({formats:tg,defaultWidth:"full"}),dateTime:gi({formats:rg,defaultWidth:"full"})};var og={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Al=(t,e,r,o)=>og[t];function Lr(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 ng={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ig={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},sg={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"]},ag={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"]},ug={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"}},cg={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"}},fg=(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"},Il={ordinalNumber:fg,era:Lr({values:ng,defaultWidth:"wide"}),quarter:Lr({values:ig,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Lr({values:sg,defaultWidth:"wide"}),day:Lr({values:ag,defaultWidth:"wide"}),dayPeriod:Lr({values:ug,defaultWidth:"wide",formattingValues:cg,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)?pg(a,m=>m.test(s)):lg(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 lg(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}function pg(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}function kl(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 mg=/^(\d+)(th|st|nd|rd)?/i,dg=/\d+/i,hg={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},yg={any:[/^b/i,/^(a|c)/i]},xg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gg={any:[/1/i,/2/i,/3/i,/4/i]},bg={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},vg={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]},wg={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},Sg={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]},Dg={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},Tg={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}},Pl={ordinalNumber:kl({matchPattern:mg,parsePattern:dg,valueCallback:t=>parseInt(t,10)}),era:Yr({matchPatterns:hg,defaultMatchWidth:"wide",parsePatterns:yg,defaultParseWidth:"any"}),quarter:Yr({matchPatterns:xg,defaultMatchWidth:"wide",parsePatterns:gg,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Yr({matchPatterns:bg,defaultMatchWidth:"wide",parsePatterns:vg,defaultParseWidth:"any"}),day:Yr({matchPatterns:wg,defaultMatchWidth:"wide",parsePatterns:Sg,defaultParseWidth:"any"}),dayPeriod:Yr({matchPatterns:Dg,defaultMatchWidth:"any",parsePatterns:Tg,defaultParseWidth:"any"})};var He={code:"en-US",formatDistance:_l,formatLong:El,formatRelative:Al,localize:Il,match:Pl,options:{weekStartsOn:0,firstWeekContainsDate:1}};function nu(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 I(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 I(e==="yy"?o%100:o,e.length)},M(t,e){let r=t.getMonth();return e==="M"?String(r+1):I(r+1,2)},d(t,e){return I(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 I(t.getHours()%12||12,e.length)},H(t,e){return I(t.getHours(),e.length)},m(t,e){return I(t.getMinutes(),e.length)},s(t,e){return I(t.getSeconds(),e.length)},S(t,e){let r=e.length,o=t.getMilliseconds(),n=Math.trunc(o*Math.pow(10,r-3));return I(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 I(s,2)}return e==="Yo"?r.ordinalNumber(i,{unit:"year"}):I(i,e.length)},R:function(t,e){let r=We(t);return I(r,e.length)},u:function(t,e){let r=t.getFullYear();return I(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 I(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 I(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 I(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"}):I(n,e.length)},I:function(t,e,r){let o=zo(t);return e==="Io"?r.ordinalNumber(o,{unit:"week"}):I(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=nu(t);return e==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):I(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 I(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 I(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 I(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"}):I(o,e.length)},k:function(t,e,r){let o=t.getHours();return o===0&&(o=24),e==="ko"?r.ordinalNumber(o,{unit:"hour"}):I(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 Nl(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 Nl(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"+Cl(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"+Cl(o,":");case"zzzz":default:return"GMT"+fr(o,":")}},t:function(t,e,r){let o=Math.trunc(+t/1e3);return I(o,e.length)},T:function(t,e,r){return I(+t,e.length)}};function Cl(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+I(i,2)}function Nl(t,e){return t%60===0?(t>0?"-":"+")+I(Math.abs(t)/60,2):fr(t,e)}function fr(t,e=""){let r=t>0?"-":"+",o=Math.abs(t),n=I(Math.trunc(o/60),2),i=I(o%60,2);return r+n+e+i}var Fl=(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"})}},$l=(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"})}},Og=(t,e)=>{let r=t.match(/(P+)(p+)?/)||[],o=r[1],n=r[2];if(!n)return Fl(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}}",Fl(o,e)).replace("{{time}}",$l(n,e))},jr={p:$l,P:Og};var Mg=/^D+$/,_g=/^Y+$/,Eg=["D","DD","YY","YYYY"];function vi(t){return Mg.test(t)}function wi(t){return _g.test(t)}function Go(t,e,r){let o=Ag(t,e,r);if(console.warn(o),Eg.includes(t))throw new RangeError(o)}function Ag(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 Ig=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pg=/^'([^]*?)'?$/,Cg=/''/g,Ng=/[a-zA-Z]/;function iu(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(!Ie(a))throw new RangeError("Invalid time value");let u=e.match(kg).map(f=>{let m=f[0];if(m==="p"||m==="P"){let p=jr[m];return p(f,n.formatLong)}return f}).join("").match(Ig).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let m=f[0];if(m==="'")return{isToken:!1,value:Fg(f)};if(bi[m])return{isToken:!0,value:f};if(m.match(Ng))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 Fg(t){let e=t.match(Pg);return e?e[1].replace(Cg,"'"):t}function su(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=Dt(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 au(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<Fa?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/Fa);return n.formatDistance("xYears",g,s)}}function $g(t,e){return su(t,L(t),e)}function Rg(t,e){return au(t,L(t),e)}var Wg=["years","months","weeks","days","hours","minutes","seconds"];function Ug(t,e){let r=G(),o=e?.locale??r.locale??He,n=e?.format??Wg,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 Bg(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=I(r.getDate(),2),f=I(r.getMonth()+1,2);i=`${I(r.getFullYear(),4)}${a}${f}${a}${c}`}if(n!=="date"){let c=r.getTimezoneOffset();if(c!==0){let w=Math.abs(c),g=I(Math.trunc(w/60),2),E=I(w%60,2);s=`${c<0?"+":"-"}${g}:${E}`}else s="Z";let f=I(r.getHours(),2),m=I(r.getMinutes(),2),p=I(r.getSeconds(),2),d=i===""?"":"T",y=[f,m,p].join(u);i=`${i}${d}${y}${s}`}return i}function Lg(t,e){let r=l(t,e?.in);if(!Ie(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=I(r.getDate(),2),c=I(r.getMonth()+1,2);i=`${I(r.getFullYear(),4)}${s}${c}${s}${u}`}if(n!=="date"){let u=I(r.getHours(),2),c=I(r.getMinutes(),2),f=I(r.getSeconds(),2);i=`${i}${i===""?"":" "}${u}${a}${c}${a}${f}`}return i}function Yg(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 qg(t,e){let r=l(t,e?.in);if(!Ie(r))throw new RangeError("Invalid time value");let o=e?.fractionDigits??0,n=I(r.getDate(),2),i=I(r.getMonth()+1,2),s=r.getFullYear(),a=I(r.getHours(),2),u=I(r.getMinutes(),2),c=I(r.getSeconds(),2),f="";if(o>0){let d=r.getMilliseconds(),y=Math.trunc(d*Math.pow(10,o-3));f="."+I(y,o)}let m="",p=r.getTimezoneOffset();if(p!==0){let d=Math.abs(p),y=I(Math.trunc(d/60),2),w=I(d%60,2);m=`${p<0?"+":"-"}${y}:${w}`}else m="Z";return`${s}-${i}-${n}T${a}:${u}:${c}${f}${m}`}var Hg=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],jg=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zg(t){let e=l(t);if(!Ie(e))throw new RangeError("Invalid time value");let r=Hg[e.getUTCDay()],o=I(e.getUTCDate(),2),n=jg[e.getUTCMonth()],i=e.getUTCFullYear(),s=I(e.getUTCHours(),2),a=I(e.getUTCMinutes(),2),u=I(e.getUTCSeconds(),2);return`${r}, ${o} ${n} ${i} ${s}:${a}:${u} GMT`}function Vg(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 iu(o,f,{locale:s,weekStartsOn:a})}function Gg(t,e){return l(t*1e3,e?.in)}function uu(t,e){return l(t,e?.in).getDate()}function lr(t,e){return l(t,e?.in).getDay()}function cu(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 fu(t,e){let o=l(t,e?.in).getFullYear();return o%400===0||o%4===0&&o%100!==0}function Kg(t,e){let r=l(t,e?.in);return Number.isNaN(+r)?NaN:fu(r)?366:365}function Qg(t,e){let o=l(t,e?.in).getFullYear();return Math.floor(o/10)*10}function lu(){return Object.assign({},G())}function Jg(t,e){return l(t,e?.in).getHours()}function pu(t,e){let r=l(t,e?.in).getDay();return r===0?7:r}function Xg(t,e){let r=ze(t,e),n=+ze(ir(r,60))-+r;return Math.round(n/at)}function Zg(t){return l(t).getMilliseconds()}function e0(t,e){return l(t,e?.in).getMinutes()}function t0(t,e){return l(t,e?.in).getMonth()}function r0(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 o0(t){return l(t).getSeconds()}function n0(t){return+l(t)}function i0(t){return Math.trunc(+l(t)/1e3)}function s0(t,e){let r=G(),o=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,n=uu(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 mu(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 a0(t,e){let r=l(t,e?.in);return Wr(mu(r,e),ur(r,e),e)+1}function u0(t,e){return l(t,e?.in).getFullYear()}function c0(t){return Math.trunc(t*qe)}function f0(t){return Math.trunc(t*pi)}function l0(t){return Math.trunc(t*rr)}function p0(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 m0(t,e){let{start:r,end:o}=ve(e?.in,t),n={},i=eu(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=Bo(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=Br(o,p);d&&(n.minutes=d);let y=or(p,{minutes:n.minutes}),w=Dt(o,y);return w&&(n.seconds=w),n}function d0(t,e,r){let o;return h0(e)?o=e:r=e,new Intl.DateTimeFormat(r?.locale,o).format(l(t))}function h0(t){return t!==void 0&&!("locale"in t)}function y0(t,e,r){let o=0,n,[i,s]=C(r?.in,t,e);if(r?.unit)n=r?.unit,n==="second"?o=Dt(i,s):n==="minute"?o=Br(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=Dt(i,s);Math.abs(u)<$r?(o=Dt(i,s),n="second"):Math.abs(u)<rr?(o=Br(i,s),n="minute"):Math.abs(u)<yi&&Math.abs(De(i,s))<1?(o=Ur(i,s),n="hour"):Math.abs(u)<Sl&&(o=De(i,s))&&Math.abs(o)<7?n="day":Math.abs(u)<Ra?(o=Wr(i,s),n="week"):Math.abs(u)<Dl?(o=Rr(i,s),n="month"):Math.abs(u)<$a?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 x0(t,e){return+l(t)>+l(e)}function g0(t,e){return+l(t)<+l(e)}function b0(t,e){return+l(t)==+l(e)}function v0(t,e,r){let o=new Date(t,e,r);return o.getFullYear()===t&&o.getMonth()===e&&o.getDate()===r}function w0(t,e){return l(t,e?.in).getDate()===1}function S0(t,e){return l(t,e?.in).getDay()===5}function D0(t){return+l(t)>Date.now()}function du(t,e){let r=T0(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 T0(t){return typeof t=="function"&&t.prototype?.constructor===t}var O0=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=O0;subPriority=-1;constructor(e,r){super(),this.context=e||(o=>h(r,o))}set(e,r){return r.timestampIsSet?e:h(e,du(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 Ei(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 Ii=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 hu(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(hu(e,o,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function yu(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(yu(e,o))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var M0=[31,28,31,30,31,30,31,31,30,31,30,31],_0=[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=Ei(o),i=e.getMonth();return n?r>=1&&r<=_0[i]:r>=1&&r<=M0[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 Bi=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 Ei(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 Li=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 xu(t,e,r){let o=l(t,r?.in),n=pu(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=xu(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 gu={G:new Oi,y:new Ai,Y:new Ii,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 Bi,E:new Li,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 E0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,I0=/^'([^]*?)'?$/,k0=/''/g,P0=/\S/,C0=/[a-zA-Z]/;function bu(t,e,r,o){let n=()=>h(o?.in||r,NaN),i=lu(),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(A0).map(g=>{let E=g[0];if(E in jr){let D=jr[E];return D(g,s.formatLong)}return g}).join("").match(E0),p=[];for(let g of m){!o?.useAdditionalWeekYearTokens&&wi(g)&&Go(g,e,t),!o?.useAdditionalDayOfYearTokens&&vi(g)&&Go(g,e,t);let E=g[0],D=gu[E];if(D){let{incompatibleTokens:T}=D;if(Array.isArray(T)){let V=p.find(z=>T.includes(z.token)||z.token===E);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:E,fullToken:g});let B=D.run(t,g,s.match,c);if(!B)return n();f.push(B.setter),t=B.rest}else{if(E.match(C0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");if(g==="''"?g="'":E==="'"&&(g=N0(g)),t.indexOf(g)===0)t=t.slice(g.length);else return n()}}if(t.length>0&&P0.test(t))return n();let d=f.map(g=>g.priority).sort((g,E)=>E-g).filter((g,E,D)=>D.indexOf(g)===E).map(g=>f.filter(E=>E.priority===g).sort((E,D)=>D.subPriority-E.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 E=g.set(y,w,c);Array.isArray(E)?(y=E[0],Object.assign(w,E[1])):y=E}return y}function N0(t){return t.match(I0)[1].replace(k0,"'")}function F0(t,e,r){return Ie(bu(t,e,new Date,r))}function $0(t,e){return l(t,e?.in).getDay()===1}function R0(t){return+l(t)<Date.now()}function is(t,e){let r=l(t,e?.in);return r.setMinutes(0,0,0),r}function vu(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 wu(t,e,r){return Ko(t,e,{...r,weekStartsOn:1})}function W0(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 Su(t,e){return+ss(t)==+ss(e)}function Du(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()&&o.getMonth()===n.getMonth()}function Tu(t,e,r){let[o,n]=C(r?.in,t,e);return+Tt(o)==+Tt(n)}function as(t,e){let r=l(t,e?.in);return r.setMilliseconds(0),r}function Ou(t,e){return+as(t)==+as(e)}function Mu(t,e,r){let[o,n]=C(r?.in,t,e);return o.getFullYear()===n.getFullYear()}function U0(t,e){return vu(l(t,e?.in),L(e?.in||t))}function B0(t,e){return wu(h(e?.in||t,t),L(e?.in||t))}function L0(t){return Su(t,L(t))}function Y0(t,e){return Du(h(e?.in||t,t),L(e?.in||t))}function q0(t,e){return Tu(h(e?.in||t,t),L(e?.in||t))}function H0(t){return Ou(t,L(t))}function j0(t,e){return Ko(h(e?.in||t,t),L(e?.in||t),e)}function z0(t,e){return Mu(h(e?.in||t,t),L(e?.in||t))}function V0(t,e){return l(t,e?.in).getDay()===4}function G0(t,e){return St(h(e?.in||t,t),L(e?.in||t))}function K0(t,e){return St(t,be(L(e?.in||t),1),e)}function Q0(t,e){return l(t,e?.in).getDay()===2}function J0(t,e){return l(t,e?.in).getDay()===3}function X0(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 Z0(t,e){return St(h(e?.in||t,t),mr(L(e?.in||t),1))}function eb(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 _u(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 tb(t,e){return _u(t,{...e,weekStartsOn:1})}function rb(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 ob(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 nb(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 ib=/(\w)\1*|''|'(''|[^'])+('|$)|./g,sb=/^'([^]*?)'?$/,ab=/''/g,ub=/[a-zA-Z]/;function cb(t,e){let r=l(t);if(!Ie(r))throw new RangeError("Invalid time value");let o=e.match(ib);return o?o.map(i=>{if(i==="''")return"'";let s=i[0];if(s==="'")return fb(i);let a=Ve[s];if(a)return a(r,i);if(s.match(ub))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return i}).join(""):""}function fb(t){let e=t.match(sb);return e?e[1].replace(ab,"'"):t}function lb({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 pb(t){let e=t/qe;return Math.trunc(e)}function mb(t){let e=t/Ae;return Math.trunc(e)}function db(t){let e=t/Nr;return Math.trunc(e)}function hb(t){let e=t/pi;return Math.trunc(e)}function yb(t){return Math.trunc(t*Ae)}function xb(t){return Math.trunc(t*$r)}function gb(t){let e=t/mi;return Math.trunc(e)}function bb(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 vb(t,e){return Fe(t,5,e)}function wb(t,e){return Fe(t,1,e)}function Sb(t,e){return Fe(t,6,e)}function Db(t,e){return Fe(t,0,e)}function Tb(t,e){return Fe(t,4,e)}function Ob(t,e){return Fe(t,2,e)}function Mb(t,e){return Fe(t,3,e)}function _b(t,e){let r=()=>h(e?.in,NaN),o=e?.additionalDigits??2,n=kb(t),i;if(n.date){let c=Pb(n.date,o);i=Cb(c.restDateString,c.year)}if(!i||isNaN(+i))return r();let s=+i,a=0,u;if(n.time&&(a=Nb(n.time),isNaN(a)))return r();if(n.timezone){if(u=Fb(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+-].*)$/},Eb=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ab=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ib=/^([+-])(\d{2})(?::?(\d{2}))?$/;function kb(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 Pb(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 Cb(t,e){if(e===null)return new Date(NaN);let r=t.match(Eb);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 Bb(e,a,u)?$b(e,a,u):new Date(NaN);{let c=new Date(0);return!Wb(e,i,s)||!Ub(e,n)?new Date(NaN):(c.setUTCFullYear(e,i,Math.max(n,s)),c)}}function Qo(t){return t?parseInt(t):1}function Nb(t){let e=t.match(Ab);if(!e)return NaN;let r=Eu(e[1]),o=Eu(e[2]),n=Eu(e[3]);return Lb(r,o,n)?r*qe+o*Ae+n*1e3:NaN}function Eu(t){return t&&parseFloat(t.replace(",","."))||0}function Fb(t){if(t==="Z")return 0;let e=t.match(Ib);if(!e)return 0;let r=e[1]==="+"?-1:1,o=parseInt(e[2]),n=e[3]&&parseInt(e[3])||0;return Yb(o,n)?r*(o*qe+n*Ae):NaN}function $b(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 Rb=[31,null,31,30,31,30,31,31,30,31,30,31];function Wl(t){return t%400===0||t%4===0&&t%100!==0}function Wb(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(Rb[e]||(Wl(t)?29:28))}function Ub(t,e){return e>=1&&e<=(Wl(t)?366:365)}function Bb(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function Lb(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function Yb(t,e){return e>=0&&e<=59}function qb(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 Hb(t,e){return $e(t,5,e)}function jb(t,e){return $e(t,1,e)}function zb(t,e){return $e(t,6,e)}function Vb(t,e){return $e(t,0,e)}function Gb(t,e){return $e(t,4,e)}function Kb(t,e){return $e(t,2,e)}function Qb(t,e){return $e(t,3,e)}function Jb(t){return Math.trunc(t*mi)}function Xb(t){let e=t/hi;return Math.trunc(e)}function Zb(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 ev(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 tv(t){let e=t/rr;return Math.trunc(e)}function rv(t){return t*Nr}function ov(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=cu(s);return o.setMonth(e,Math.min(i,a)),o}function nv(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 iv(t,e,r){let o=l(t,r?.in);return o.setDate(e),o}function sv(t,e,r){let o=l(t,r?.in);return o.setMonth(0),o.setDate(e),o}function av(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]);Ol(e)}function uv(t,e,r){let o=l(t,r?.in);return o.setHours(e),o}function cv(t,e,r){let o=l(t,r?.in);return o.setMilliseconds(e),o}function fv(t,e,r){let o=l(t,r?.in);return o.setMinutes(e),o}function lv(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 pv(t,e,r){let o=l(t,r?.in);return o.setSeconds(e),o}function mv(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 dv(t,e,r){let o=l(t,r?.in);return isNaN(+o)?h(r?.in||t,NaN):(o.setFullYear(e),o)}function hv(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 yv(t){return wt(Date.now(),t)}function xv(t){let e=L(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 gv(t){let e=L(t?.in),r=e.getFullYear(),o=e.getMonth(),n=e.getDate(),i=L(t?.in);return i.setFullYear(r,o,n-1),i.setHours(0,0,0,0),i}function Au(t,e,r){return bt(t,-e,r)}function bv(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=Au(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 vv(t,e,r){return La(t,-e,r)}function wv(t,e,r){return Ya(t,-e,r)}function Sv(t,e,r){return nr(t,-e,r)}function Dv(t,e,r){return Ro(t,-e,r)}function Tv(t,e,r){return Wo(t,-e,r)}function Ov(t,e,r){return ja(t,-e,r)}function Mv(t,e,r){return ir(t,-e,r)}function _v(t,e,r){return za(t,-e,r)}function Ev(t){return Math.trunc(t*7)}function Av(t){return Math.trunc(t*365.2425)}function Iv(t){return Math.trunc(t*di)}function kv(t){return Math.trunc(t*hi)}var Gr=nt(Ul(),1),Yl=nt(Bl(),1);var Ll=t=>Number.isFinite(t)?t:0;function Pv(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(Ll(t*1e3)%1e3),nanoseconds:Math.trunc(Ll(t*1e6)%1e3)}}function Cv(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 Nu(t){switch(typeof t){case"number":{if(Number.isFinite(t))return Pv(t);break}case"bigint":return Cv(t)}throw new TypeError("Expected a finite number or bigint")}var Nv=t=>t===0||t===0n,Fv=(t,e)=>e===1||e===1n?t:`${t}s`,$v=1e-7,Rv=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+$v);return(Math.round(p)/10**m).toFixed(m)},s=(f,m,p,d)=>{if(!((n.length===0||!e.colonNotation)&&Nv(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?" "+Fv(m,f):p;n.push(d)}},a=Nu(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),E=w?y.toFixed(w):g;s(Number.parseFloat(E),"millisecond","ms",E)}}else{let f=(r?Number(t%Rv):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(Yl.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},Fu=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},$u=t=>fs(t),Wv=t=>cs.formatDistanceToNow(new Date(t));var Ru=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 ${$u(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 Wu=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=Fu(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Uu=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 Bu=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 Lu=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 qu=nt(Zl(),1);var Hu=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 ju=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 ep=(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=ep("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 Ot.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 zu=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 Vu=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 Gu=class{constructor(){this.referenceObjectMap=new dr}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var Ku=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 Qu=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new Ot.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 Ju=class{constructor(){this.symbolTree=new qu.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:()=>fw,ensurePureUint8Array:()=>mw,isBufferLike:()=>pw,isUint8Array:()=>lw,uInt8ArrayExtras:()=>uw,uInt8ArrayToBase64:()=>cw});var hr={};re(hr,{areUint8ArraysEqual:()=>Gv,assertUint8Array:()=>Wt,assertUint8ArrayOrArrayBuffer:()=>np,base64ToString:()=>tw,base64ToUint8Array:()=>up,compareUint8Arrays:()=>Kv,concatUint8Arrays:()=>Vv,getUintBE:()=>iw,hexToUint8Array:()=>nw,includes:()=>sw,indexOf:()=>cp,isUint8Array:()=>Xu,stringToBase64:()=>ew,stringToUint8Array:()=>sp,toUint8Array:()=>zv,uint8ArrayToBase64:()=>ap,uint8ArrayToHex:()=>ow,uint8ArrayToString:()=>ip});var Lv=Object.prototype.toString,Yv="[object Uint8Array]",qv="[object ArrayBuffer]";function op(t,e,r){return t?t.constructor===e?!0:Lv.call(t)===r:!1}function Xu(t){return op(t,Uint8Array,Yv)}function Hv(t){return op(t,ArrayBuffer,qv)}function jv(t){return Xu(t)||Hv(t)}function Wt(t){if(!Xu(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}function np(t){if(!jv(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}function zv(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 Vv(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 Gv(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 Kv(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 tp={utf8:new globalThis.TextDecoder("utf8")};function ip(t,e="utf8"){return np(t),tp[e]??=new globalThis.TextDecoder(e),tp[e].decode(t)}function tn(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}var Qv=new globalThis.TextEncoder;function sp(t){return tn(t),Qv.encode(t)}function Jv(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Xv(t){return t.replaceAll("-","+").replaceAll("_","/")}var Zv=65535;function ap(t,{urlSafe:e=!1}={}){Wt(t);let r;if(t.length<Zv)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?Jv(r):r}function up(t){return tn(t),Uint8Array.from(globalThis.atob(Xv(t)),e=>e.codePointAt(0))}function ew(t,{urlSafe:e=!1}={}){return tn(t),ap(sp(t),{urlSafe:e})}function tw(t){return tn(t),ip(up(t))}var rw=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function ow(t){Wt(t);let e="";for(let r=0;r<t.length;r++)e+=rw[t[r]];return e}var rp={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 nw(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=rp[t[o*2]],i=rp[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 iw(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 cp(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 sw(t,e){return cp(t,e)!==-1}var uw=hr;function cw(t){return hr.uint8ArrayToBase64(t)}function fw(t){return hr.base64ToUint8Array(t)}var lw=t=>hr.isUint8Array(t);function pw(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}function mw(t){let e=new Uint8Array(t.length);return e.set(t),e}var ps={};re(ps,{Guard:()=>on,GuardError:()=>nn,GuardSet:()=>sn,passGuardsOrReject:()=>dw});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 dw=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
- `)}};var js={};re(js,{WebRequest:()=>hf});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:()=>af,deepEqualJsonLStrings:()=>gO,deepEqualObjects:()=>ry,foldDec:()=>xO,parse:()=>On,parseBase64:()=>yO,parseJsonL:()=>mO,stringify:()=>xo,stringifyBase64:()=>hO,stringifyPretty:()=>dO});var wn={};re(wn,{Base64:()=>Is,Domain:()=>Ps,GitRepo:()=>Cs,base64:()=>lo,create:()=>Rc,docker:()=>Wc,indent:()=>Lc,normalize:()=>Yc,type:()=>qc});var Rc={};re(Rc,{createCryptoRandomString:()=>S1,createRandomString:()=>w1});var rh=nt(la(),1),oh=nt(Td(),1);var kd="3.7.7",e1=kd,fo=typeof Buffer=="function",Od=typeof TextDecoder=="function"?new TextDecoder:void 0,Md=typeof TextEncoder=="function"?new TextEncoder:void 0,t1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bn=Array.prototype.slice.call(t1),_s=(t=>{let e={};return t.forEach((r,o)=>e[r]=o),e})(bn),r1=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Te=String.fromCharCode.bind(String),_d=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Id=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Pd=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Cd=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},Cc=typeof btoa=="function"?t=>btoa(t):fo?t=>Buffer.from(t,"binary").toString("base64"):Cd,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 Cc(r.join(""))},Es=(t,e=!1)=>e?Id(Ic(t)):Ic(t),o1=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)}},n1=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Nd=t=>t.replace(n1,o1),Ed=fo?t=>Buffer.from(t,"utf8").toString("base64"):Md?t=>Ic(Md.encode(t)):t=>Cc(Nd(t)),co=(t,e=!1)=>e?Id(Ed(t)):Ed(t),Ad=t=>co(t,!0),i1=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,s1=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))}},Fd=t=>t.replace(i1,s1),$d=t=>{if(t=t.replace(/\s+/g,""),!r1.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},Nc=typeof atob=="function"?t=>atob(Pd(t)):fo?t=>Buffer.from(t,"base64").toString("binary"):$d,Rd=fo?t=>_d(Buffer.from(t,"base64")):t=>_d(Nc(t).split("").map(e=>e.charCodeAt(0))),Wd=t=>Rd(Ud(t)),a1=fo?t=>Buffer.from(t,"base64").toString("utf8"):Od?t=>Od.decode(Rd(t)):t=>Fd(Nc(t)),Ud=t=>Pd(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),Pc=t=>a1(Ud(t)),u1=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)},Bd=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Ld=function(){let t=(e,r)=>Object.defineProperty(String.prototype,e,Bd(r));t("fromBase64",function(){return Pc(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 Wd(this)})},Yd=function(){let t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,Bd(r));t("toBase64",function(e){return Es(this,e)}),t("toBase64URI",function(){return Es(this,!0)}),t("toBase64URL",function(){return Es(this,!0)})},c1=()=>{Ld(),Yd()},vn={version:kd,VERSION:e1,atob:Nc,atobPolyfill:$d,btoa:Cc,btoaPolyfill:Cd,fromBase64:Pc,toBase64:co,encode:co,encodeURI:Ad,encodeURL:Ad,utob:Nd,btou:Fd,decode:Pc,isValid:u1,fromUint8Array:Es,toUint8Array:Wd,extendString:Ld,extendUint8Array:Yd,extendBuiltins:c1};var jd=nt(Hd(),1);function As(t){let e=(0,jd.default)(t);if(e===0)return t;let r=new RegExp(`^[ \\t]{${e}}`,"gm");return t.replace(r,"")}var $c=nt(th(),1),UG=new an;var w1=(t,e,r)=>$c.default(t,e,r),S1=()=>rh.uni();var Wc={};re(Wc,{makeEnvObject:()=>D1});var D1=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 Lc={};re(Lc,{indent:()=>O1,indentWithPrefix:()=>M1,normalize:()=>_1});var Uc=t=>{let e=t.split(`
11
+ `)}};var js={};re(js,{WebRequest:()=>hf});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:()=>af,deepEqualJsonLStrings:()=>gO,deepEqualObjects:()=>ry,foldDec:()=>xO,parse:()=>On,parseBase64:()=>yO,parseJsonL:()=>mO,stringify:()=>xo,stringifyBase64:()=>hO,stringifyPretty:()=>dO});var wn={};re(wn,{Base64:()=>ks,Domain:()=>Ps,GitRepo:()=>Cs,base64:()=>lo,create:()=>Rc,docker:()=>Wc,indent:()=>Lc,normalize:()=>Yc,type:()=>qc});var Rc={};re(Rc,{createCryptoRandomString:()=>S1,createRandomString:()=>w1});var rh=nt(la(),1),oh=nt(Td(),1);var Id="3.7.7",e1=Id,fo=typeof Buffer=="function",Od=typeof TextDecoder=="function"?new TextDecoder:void 0,Md=typeof TextEncoder=="function"?new TextEncoder:void 0,t1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bn=Array.prototype.slice.call(t1),_s=(t=>{let e={};return t.forEach((r,o)=>e[r]=o),e})(bn),r1=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Te=String.fromCharCode.bind(String),_d=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),kd=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Pd=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Cd=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},Cc=typeof btoa=="function"?t=>btoa(t):fo?t=>Buffer.from(t,"binary").toString("base64"):Cd,kc=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 Cc(r.join(""))},Es=(t,e=!1)=>e?kd(kc(t)):kc(t),o1=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)}},n1=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Nd=t=>t.replace(n1,o1),Ed=fo?t=>Buffer.from(t,"utf8").toString("base64"):Md?t=>kc(Md.encode(t)):t=>Cc(Nd(t)),co=(t,e=!1)=>e?kd(Ed(t)):Ed(t),Ad=t=>co(t,!0),i1=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,s1=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))}},Fd=t=>t.replace(i1,s1),$d=t=>{if(t=t.replace(/\s+/g,""),!r1.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},Nc=typeof atob=="function"?t=>atob(Pd(t)):fo?t=>Buffer.from(t,"base64").toString("binary"):$d,Rd=fo?t=>_d(Buffer.from(t,"base64")):t=>_d(Nc(t).split("").map(e=>e.charCodeAt(0))),Wd=t=>Rd(Ud(t)),a1=fo?t=>Buffer.from(t,"base64").toString("utf8"):Od?t=>Od.decode(Rd(t)):t=>Fd(Nc(t)),Ud=t=>Pd(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),Pc=t=>a1(Ud(t)),u1=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)},Bd=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Ld=function(){let t=(e,r)=>Object.defineProperty(String.prototype,e,Bd(r));t("fromBase64",function(){return Pc(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 Wd(this)})},Yd=function(){let t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,Bd(r));t("toBase64",function(e){return Es(this,e)}),t("toBase64URI",function(){return Es(this,!0)}),t("toBase64URL",function(){return Es(this,!0)})},c1=()=>{Ld(),Yd()},vn={version:Id,VERSION:e1,atob:Nc,atobPolyfill:$d,btoa:Cc,btoaPolyfill:Cd,fromBase64:Pc,toBase64:co,encode:co,encodeURI:Ad,encodeURL:Ad,utob:Nd,btou:Fd,decode:Pc,isValid:u1,fromUint8Array:Es,toUint8Array:Wd,extendString:Ld,extendUint8Array:Yd,extendBuiltins:c1};var jd=nt(Hd(),1);function As(t){let e=(0,jd.default)(t);if(e===0)return t;let r=new RegExp(`^[ \\t]{${e}}`,"gm");return t.replace(r,"")}var $c=nt(th(),1),UG=new an;var w1=(t,e,r)=>$c.default(t,e,r),S1=()=>rh.uni();var Wc={};re(Wc,{makeEnvObject:()=>D1});var D1=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 Lc={};re(Lc,{indent:()=>O1,indentWithPrefix:()=>M1,normalize:()=>_1});var Uc=t=>{let e=t.split(`
12
12
  `);return T1(e)},Bc=t=>{let e="";for(let r of t)e=e+r+`
13
13
  `;return e},T1=t=>{let e=/^[\s]*$/;return e.test(t[0])&&t.shift(),e.test(t[t.length-1])&&t.pop(),t},O1=(t,e)=>{let r=Uc(t);for(let n of r)n=" ".repeat(e)+n;return Bc(r)},M1=(t,e)=>{let r,o=Uc(t),n=[];for(let i of o)n.push(e+i);return r=Bc(n),r},_1=t=>{let e,r=Uc(t),o,n=/^(\s*)/,i=/^(\s*)$/;for(let a of r){let u=n.exec(a)[1];(typeof o>"u"||u.length<o)&&!i.test(a)&&(o=u.length)}let s=[];for(let a of r)s.push(a.substr(o));return e=Bc(s),e};var Yc={};re(Yc,{replaceAll:()=>nh,standard:()=>E1});var nh=(t,e,r)=>t.replace(new RegExp(e,"g"),r),E1=(t,e)=>{let r=t;return(!e||e.stripIndent)&&(r=As(r)),(!e||e.normalizeNewline)&&(r=r.replace(/\r\n/g,`
14
- `)),(!e||e.replaceTabs)&&(r=nh(r," /"," ")),(!e||e.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!e||e.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var qc={};re(qc,{isBase64:()=>k1,isUtf8:()=>A1});var Is=class{constructor(e,r){switch(r){case"string":this.refString=e;break;case"base64":this.refString=lo.decode(e);break;case"base64uri":this.refString=lo.decode(e)}}get simpleString(){return this.refString}get base64String(){return lo.encode(this.refString)}get base64UriString(){return lo.encodeUri(this.refString)}},lo={encode:t=>vn.encode(t),encodeUri:t=>vn.encodeURI(t),decode:t=>vn.decode(t),isBase64:t=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(t)};var A1=t=>{let r=new TextEncoder().encode(t),o=0;for(;o<r.length;){if(r[o]===9||r[o]===10||r[o]===13||32<=r[o]&&r[o]<=126){o+=1;continue}if(194<=r[o]&&r[o]<=223&&128<=r[o+1]&&r[o+1]<=191){o+=2;continue}if(r[o]===224&&160<=r[o+1]&&r[o+1]<=191&&128<=r[o+2]&&r[o+2]<=191||(225<=r[o]&&r[o]<=236||r[o]===238||r[o]===239)&&128<=r[o+1]&&r[o+1]<=191&&128<=r[o+2]&&r[o+2]<=191||r[o]===237&&128<=r[o+1]&&r[o+1]<=159&&128<=r[o+2]&&r[o+2]<=191){o+=3;continue}if(r[o]===240&&144<=r[o+1]&&r[o+1]<=191&&128<=r[o+2]&&r[o+2]<=191&&128<=r[o+3]&&r[o+3]<=191||241<=r[o]&&r[o]<=243&&128<=r[o+1]&&r[o+1]<=191&&128<=r[o+2]&&r[o+2]<=191&&128<=r[o+3]&&r[o+3]<=191||r[o]===244&&128<=r[o+1]&&r[o+1]<=143&&128<=r[o+2]&&r[o+2]<=191&&128<=r[o+3]&&r[o+3]<=191){o+=4;continue}return!1}return!0},k1=t=>{let e=/[^A-Z0-9+\/=]/i,r=t.length;if(!r||r%4!==0||e.test(t))return!1;let o=t.indexOf("=");return o===-1||o===r-1||o===r-2&&t[r-1]==="="};var Ps=class{constructor(e){this.protocol=this._protocolRegex(e),this.protocol||(e=`https://${e}`),this.nodeParsedUrl=oh.parse(e),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(e.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let o=1;o<=5;o++)if(r[o-1]){let n=r[o-1];this["level"+o.toString()]=n,this.fullName===""?this.fullName=n:this.fullName=n+"."+this.fullName}else this["level"+o.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(e){let o=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(e);return o.reverse(),o.pop(),o.filter(function(i){return i!==""})}_protocolRegex(e){let o=/^([a-zA-Z0-9]*):\/\//.exec(e);if(o)return o[1]}_portRegex(e){let o=/^([a-zA-Z0-9]*):\/\//.exec(e);if(o)return o[1]}};var Cs=class{constructor(e,r){let o=I1(e);this.host=o[1],this.user=o[2],this.repo=o[3],this.accessToken=r,this.sshUrl=ih(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=ih(this.host,this.user,this.repo,this.accessToken,"https")}},I1=function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},ih=function(t,e,r,o="",n){let i;switch(o!==""&&(o=o+"@"),n){case"https":i="https://"+o+t+"/"+e+"/"+r+".git";break;case"ssh":i="git@"+t+":"+e+"/"+r+".git";break;default:console.error("Link Type "+n+" not known");break}return i};var nf=nt(Vh(),1),Qh=nt(Kh(),1);var Jh=Qh.default;function sO(t){return btoa(String.fromCharCode(...t))}function aO(t){return new Uint8Array(Array.from(atob(t)).map(e=>e.charCodeAt(0)))}function Xh(t,e){return JSON.stringify(t,uO,e)}function Zh(t){return JSON.parse(t,cO)}var uO=(t,e)=>{if(lO(e)){let r;if("data"in e&&ey(e.data))if(e.data.length>0)r=new Uint8Array(e.data);else return"";else if(e instanceof Uint8Array)r=e;else return e;return{type:"EncodedBuffer",data:"base64:"+sO(r)}}return e},cO=(t,e)=>{if(fO(e)&&sf(e.data)&&e.data.startsWith("base64:")){let r=e.data.slice(7);return aO(r)}return e};function fO(t){return ty(t)&&t.type==="EncodedBuffer"&&sf(t.data)}function lO(t){return ty(t)&&t.type==="Buffer"&&(ey(t.data)||sf(t.data))||t instanceof Uint8Array}function ey(t){return Array.isArray(t)}function sf(t){return typeof t=="string"}function ty(t){return typeof t=="object"&&t!==null}var On=Zh,mO=t=>t.trim().split(`
14
+ `)),(!e||e.replaceTabs)&&(r=nh(r," /"," ")),(!e||e.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!e||e.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var qc={};re(qc,{isBase64:()=>I1,isUtf8:()=>A1});var ks=class{constructor(e,r){switch(r){case"string":this.refString=e;break;case"base64":this.refString=lo.decode(e);break;case"base64uri":this.refString=lo.decode(e)}}get simpleString(){return this.refString}get base64String(){return lo.encode(this.refString)}get base64UriString(){return lo.encodeUri(this.refString)}},lo={encode:t=>vn.encode(t),encodeUri:t=>vn.encodeURI(t),decode:t=>vn.decode(t),isBase64:t=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(t)};var A1=t=>{let r=new TextEncoder().encode(t),o=0;for(;o<r.length;){if(r[o]===9||r[o]===10||r[o]===13||32<=r[o]&&r[o]<=126){o+=1;continue}if(194<=r[o]&&r[o]<=223&&128<=r[o+1]&&r[o+1]<=191){o+=2;continue}if(r[o]===224&&160<=r[o+1]&&r[o+1]<=191&&128<=r[o+2]&&r[o+2]<=191||(225<=r[o]&&r[o]<=236||r[o]===238||r[o]===239)&&128<=r[o+1]&&r[o+1]<=191&&128<=r[o+2]&&r[o+2]<=191||r[o]===237&&128<=r[o+1]&&r[o+1]<=159&&128<=r[o+2]&&r[o+2]<=191){o+=3;continue}if(r[o]===240&&144<=r[o+1]&&r[o+1]<=191&&128<=r[o+2]&&r[o+2]<=191&&128<=r[o+3]&&r[o+3]<=191||241<=r[o]&&r[o]<=243&&128<=r[o+1]&&r[o+1]<=191&&128<=r[o+2]&&r[o+2]<=191&&128<=r[o+3]&&r[o+3]<=191||r[o]===244&&128<=r[o+1]&&r[o+1]<=143&&128<=r[o+2]&&r[o+2]<=191&&128<=r[o+3]&&r[o+3]<=191){o+=4;continue}return!1}return!0},I1=t=>{let e=/[^A-Z0-9+\/=]/i,r=t.length;if(!r||r%4!==0||e.test(t))return!1;let o=t.indexOf("=");return o===-1||o===r-1||o===r-2&&t[r-1]==="="};var Ps=class{constructor(e){this.protocol=this._protocolRegex(e),this.protocol||(e=`https://${e}`),this.nodeParsedUrl=oh.parse(e),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(e.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let o=1;o<=5;o++)if(r[o-1]){let n=r[o-1];this["level"+o.toString()]=n,this.fullName===""?this.fullName=n:this.fullName=n+"."+this.fullName}else this["level"+o.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(e){let o=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(e);return o.reverse(),o.pop(),o.filter(function(i){return i!==""})}_protocolRegex(e){let o=/^([a-zA-Z0-9]*):\/\//.exec(e);if(o)return o[1]}_portRegex(e){let o=/^([a-zA-Z0-9]*):\/\//.exec(e);if(o)return o[1]}};var Cs=class{constructor(e,r){let o=k1(e);this.host=o[1],this.user=o[2],this.repo=o[3],this.accessToken=r,this.sshUrl=ih(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=ih(this.host,this.user,this.repo,this.accessToken,"https")}},k1=function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},ih=function(t,e,r,o="",n){let i;switch(o!==""&&(o=o+"@"),n){case"https":i="https://"+o+t+"/"+e+"/"+r+".git";break;case"ssh":i="git@"+t+":"+e+"/"+r+".git";break;default:console.error("Link Type "+n+" not known");break}return i};var nf=nt(Vh(),1),Qh=nt(Kh(),1);var Jh=Qh.default;function sO(t){return btoa(String.fromCharCode(...t))}function aO(t){return new Uint8Array(Array.from(atob(t)).map(e=>e.charCodeAt(0)))}function Xh(t,e){return JSON.stringify(t,uO,e)}function Zh(t){return JSON.parse(t,cO)}var uO=(t,e)=>{if(lO(e)){let r;if("data"in e&&ey(e.data))if(e.data.length>0)r=new Uint8Array(e.data);else return"";else if(e instanceof Uint8Array)r=e;else return e;return{type:"EncodedBuffer",data:"base64:"+sO(r)}}return e},cO=(t,e)=>{if(fO(e)&&sf(e.data)&&e.data.startsWith("base64:")){let r=e.data.slice(7);return aO(r)}return e};function fO(t){return ty(t)&&t.type==="EncodedBuffer"&&sf(t.data)}function lO(t){return ty(t)&&t.type==="Buffer"&&(ey(t.data)||sf(t.data))||t instanceof Uint8Array}function ey(t){return Array.isArray(t)}function sf(t){return typeof t=="string"}function ty(t){return typeof t=="object"&&t!==null}var On=Zh,mO=t=>t.trim().split(`
15
15
  `).reduce((o,n)=>(n.trim().length>0&&o.push(JSON.parse(n)),o),[]),xo=(t,e,r={})=>{let o=Xh(t);return t=JSON.parse(o),Jh(t,r)},dO=t=>{let e=xo(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},hO=(...t)=>{let e=xo(...t);return wn.base64.encodeUri(e)},yO=t=>{let e=wn.base64.decode(t);return On(e)},af=class t{static enfoldFromObject(e){let r=new this;for(let o in e)r.saveableProperties.indexOf(o)!==-1&&(r[o]=e[o]);return r}static enfoldFromJson(e){let r=On(e);return this.enfoldFromObject(r)}foldToObject(){let e={},r=[];for(let o of this.saveableProperties){let n=this[o];if(n instanceof t){if(r.includes(n))throw new Error("cycle detected");r.push(n),n=n.foldToObject()}e[o]=nf.default(n)}return e}foldToJson(){let e=this.foldToObject();return xo(e)}},xO=()=>(t,e)=>{t.saveableProperties||(t.saveableProperties=[]),t.saveableProperties.push(e)},ry=(t,e)=>{let r=xo(t),o=xo(e);return r===o},gO=(t,e)=>{let r=[];t.split(`
16
16
  `).forEach(n=>{n&&r.push(On(n))});let o=[];return e.split(`
17
- `).forEach(n=>{n&&o.push(On(n))}),ry(r,o)};var Dr={};re(Dr,{TypedrequestCache:()=>df,WebStore:()=>Mn});var Hs={};re(Hs,{deleteDB:()=>MO,openDB:()=>OO,unwrap:()=>Ys,wrap:()=>At});var ff=(t,e)=>e.some(r=>t instanceof r),oy,ny;function bO(){return oy||(oy=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function vO(){return ny||(ny=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var lf=new WeakMap,uf=new WeakMap,qs=new WeakMap;function wO(t){let e=new Promise((r,o)=>{let n=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(At(t.result)),n()},s=()=>{o(t.error),n()};t.addEventListener("success",i),t.addEventListener("error",s)});return qs.set(e,t),e}function SO(t){if(lf.has(t))return;let e=new Promise((r,o)=>{let n=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{r(),n()},s=()=>{o(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});lf.set(t,e)}var pf={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return lf.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return At(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function uy(t){pf=t(pf)}function DO(t){return vO().includes(t)?function(...e){return t.apply(Ys(this),e),At(this.request)}:function(...e){return At(t.apply(Ys(this),e))}}function TO(t){return typeof t=="function"?DO(t):(t instanceof IDBTransaction&&SO(t),ff(t,bO())?new Proxy(t,pf):t)}function At(t){if(t instanceof IDBRequest)return wO(t);if(uf.has(t))return uf.get(t);let e=TO(t);return e!==t&&(uf.set(t,e),qs.set(e,t)),e}var Ys=t=>qs.get(t);function OO(t,e,{blocked:r,upgrade:o,blocking:n,terminated:i}={}){let s=indexedDB.open(t,e),a=At(s);return o&&s.addEventListener("upgradeneeded",u=>{o(At(s.result),u.oldVersion,u.newVersion,At(s.transaction),u)}),r&&s.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),a.then(u=>{i&&u.addEventListener("close",()=>i()),n&&u.addEventListener("versionchange",c=>n(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}function MO(t,{blocked:e}={}){let r=indexedDB.deleteDatabase(t);return e&&r.addEventListener("blocked",o=>e(o.oldVersion,o)),At(r).then(()=>{})}var _O=["get","getKey","getAll","getAllKeys","count"],EO=["put","add","delete","clear"],cf=new Map;function iy(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(cf.get(e))return cf.get(e);let r=e.replace(/FromIndex$/,""),o=e!==r,n=EO.includes(r);if(!(r in(o?IDBIndex:IDBObjectStore).prototype)||!(n||_O.includes(r)))return;let i=async function(s,...a){let u=this.transaction(s,n?"readwrite":"readonly"),c=u.store;return o&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),n&&u.done]))[0]};return cf.set(e,i),i}uy(t=>({...t,get:(e,r,o)=>iy(e,r)||t.get(e,r,o),has:(e,r)=>!!iy(e,r)||t.has(e,r)}));var AO=["continue","continuePrimaryKey","advance"],sy={},mf=new WeakMap,cy=new WeakMap,kO={get(t,e){if(!AO.includes(e))return t[e];let r=sy[e];return r||(r=sy[e]=function(...o){mf.set(this,cy.get(this)[e](...o))}),r}};async function*IO(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;let r=new Proxy(e,kO);for(cy.set(r,e),qs.set(r,Ys(e));e;)yield r,e=await(mf.get(r)||e.continue()),mf.delete(r)}function ay(t,e){return e===Symbol.asyncIterator&&ff(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&ff(t,[IDBIndex,IDBObjectStore])}uy(t=>({...t,get(e,r,o){return ay(e,r)?IO:t.get(e,r,o)},has(e,r){return ay(e,r)||t.has(e,r)}}));var Mn=class{constructor(e){this.initCalled=!1,this.readyDeferred=K.defer(),this.options=e}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let e=new yr.Smartenv;if(!e.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await e.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await e.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await Hs.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(e){return await this.init(),this.db.get(this.options.storeName,e)}async check(e){return await this.init(),!!await this.get(e)}async set(e,r){return await this.init(),this.db.put(this.options.storeName,r,e)}async delete(e){return await this.init(),this.db.delete(this.options.storeName,e)}async clear(){return await this.init(),this.db.clear(this.options.storeName)}async keys(){return await this.init(),this.db.getAllKeys(this.options.storeName)}};var df=class{constructor(e="default"){this.webstore=new Mn({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return Xe.stringify({method:e.method,request:e.request})}async setByRequest(e){if(!e.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(e),e)}async getByRequest(e){return await this.webstore.get(this.buildKey(e))}};var hf=class{constructor(e={}){this.optionsArg=e,this.cacheStore=new Dr.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...e}}async getJson(e,r=!1){let n=await(await this.request(e,{method:"GET",useCache:r})).text();return Xe.parse(n)}async postJson(e,r,o=!1){let i=await(await this.request(e,{method:"POST",headers:{"Content-Type":"application/json"},body:Xe.stringify(r),useCache:o})).text();return Xe.parse(i)}async putJson(e,r,o=!1){let i=await(await this.request(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:Xe.stringify(r)})).text();return Xe.parse(i)}async deleteJson(e,r=!1){let n=await(await this.request(e,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return Xe.parse(n)}async request(e,r){r={timeoutMs:6e4,useCache:!1,...r};let o=new AbortController;X.delayFor(r.timeoutMs).then(()=>{o.abort()});let n=K.defer(),i=!1;if(r.useCache&&await this.cacheStore.check(e)){let a=await this.cacheStore.get(e);n.resolve(new Response(a,{}))}else n.resolve(null);let s=await fetch(e,{signal:o.signal,method:r.method,headers:{...r.headers||{}},body:r.body}).catch(async a=>r.useCache&&await n.promise?(i=!0,n.promise):a);if(r.useCache&&await n.promise&&s.status===500&&(i=!0,s=await n.promise),!i&&r.useCache&&s.status<300){let a=await s.clone().arrayBuffer();await this.cacheStore.set(e,a)}return this.log(`${e} answers with status: ${s.status}`),s}async requestMultiEndpoint(e,r){let o,n=0;Array.isArray(e)?o=e:o=[e];let i=[],s=async c=>{i.push(c),c==="429"&&(console.log("got 429, so waiting a little bit."),await X.delayFor(Math.floor(Math.random()*1001)+1e3));let f=0;for(let m of i)m===c&&f++;f>2*o.length*n&&n++},a=async c=>{if(!c)throw new Error("request failed permanently");this.log(`Getting ${c} with method ${r.method}`);let f=await fetch(c,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${c} answers with status: ${f.status}`),f.status>=200&&f.status<300?f:(await s(f.status.toString()),await a(o[n]))};return await a(o[n])}log(e){this.options.logging&&console.log(e)}};var kt=class{constructor(e,r){this.errorText=e,this.errorData=r}};var Vs=class{async passGuards(e,r){let o=new ps.GuardSet(e);if(!await o.allGuardsPass(r)){let i=await o.getFailedHint(r);throw new kt(`guard failed: ${i}`,{failedHint:i})}}};var yf=class{constructor(e,r){this.method=e,this.handlerFunction=r}async addResponse(e){if(e.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,o=new Vs,n=await this.handlerFunction(e.request,o).catch(i=>{i instanceof kt?r=i:console.log(i)});return r&&(e.error={text:r.errorText,data:r.errorData}),n&&(e.response=n),e?.correlation?.phase&&(e.correlation.phase="response"),e}};var _n=class{constructor(){this.routerMap=new Ue.ObjectMap,this.handlerMap=new Ue.ObjectMap,this.registeredVirtualStreams=new Ue.ObjectMap,this.fireEventInterestMap=new Ue.InterestMap(e=>e)}addTypedHandler(e){if(this.getTypedHandlerForMethod(e.method))throw new Error(`a TypedHandler for ${e.method} alredy exists! Can't add another one.`);this.handlerMap.add(e)}addTypedRouter(e){this.routerMap.findSync(o=>o===e)||(this.routerMap.add(e),e.addTypedRouter(this))}checkForTypedHandler(e){return!!this.getTypedHandlerForMethod(e)}getTypedHandlerForMethod(e,r=[]){r.push(this);let o;return o=this.handlerMap.findSync(n=>n.method===e),o||this.routerMap.getArray().forEach(n=>{!o&&!r.includes(n)&&(o=n.getTypedHandlerForMethod(e,r))}),o}async routeAndAddResponse(e,r=!1){if(e=pt.decodePayloadFromNetwork(e,{typedrouter:this}),e.localData=e.localData||{},e.localData.firstTypedrouter=this,e.method==="##VirtualStream##"){let o=await this.handleStreamTypedRequest(e);return o.localData=null,o}if(e?.correlation?.phase==="request"||r){let o=this.getTypedHandlerForMethod(e.method);return o?(e=await o.addResponse(e),e.localData=null,e=pt.encodePayloadForNetwork(e,{typedrouter:this}),e):(console.log(`Cannot find handler for methodname ${e.method}`),e.error={text:"There is no available method for this call on the server side",data:{}},e.correlation.phase="response",e.localData=null,e=pt.encodePayloadForNetwork(e,{typedrouter:this}),e)}else return e?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(e.correlation.id)?.fullfillInterest(e),null):(console.log("received weirdly shaped request"),console.log(e),null)}async handleStreamTypedRequest(e){let r=await this.registeredVirtualStreams.find(async n=>n.streamId===e.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${e.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${e.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),e;return await r.handleStreamTr(e)}};var ly="#############CLOSING BIT#############",pt=class t{static encodePayloadForNetwork(e,r,o,n=[]){return!e||rn.isBufferLike(e)?e:e instanceof t?(!e.side&&r.sendMethod&&(e.side="requesting",e.sendMethod=r.sendMethod),!e.side&&r.typedrouter&&(e.side="responding",e.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(e)),!o.response||n.includes("response")?(e.startKeepAliveLoop(),{_isVirtualStream:!0,streamId:e.streamId}):{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: obmitted for deduplication reasons in response cycle."}):Array.isArray(e)?e.map((i,s)=>t.encodePayloadForNetwork(i,r,o||e,n.concat(String(s)))):e!==null&&typeof e=="object"?Object.entries(e).reduce((i,[s,a])=>{let u=n.concat(s);return i[s]=t.encodePayloadForNetwork(a,r,o||e,u),i},{}):e}static decodePayloadFromNetwork(e,r){if(rn.isBufferLike(e)||e instanceof _n)return e;if(e!==null&&typeof e=="object")if(e._isVirtualStream){let o=new t;return o.streamId=e.streamId,!o.side&&r.sendMethod&&(o.side="requesting",o.sendMethod=r.sendMethod),!o.side&&r.typedrouter&&(o.side="responding",o.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(o)),o.startKeepAliveLoop(),o}else if(Array.isArray(e)){let o=[];for(let n of e)o.push(t.decodePayloadFromNetwork(n,r));return o}else return Object.keys(e).reduce((o,n)=>(o[n]=t.decodePayloadFromNetwork(e[n],r),o),{});else return e}constructor(){this.streamId=Tr.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new Ue.BackpressuredArray(16),this.receiveBackpressuredArray=new Ue.BackpressuredArray(16)}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=K.defer(),this.side==="requesting"){let e=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,o=!1,n=async()=>{let i=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Tr.uni(),cycle:"request",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()},response:null}).catch(()=>{console.log("stream ended immaturely"),this.keepAlive=!1});i&&i.response&&(o=i.response.backpressure,r=i.response.next)};for(await n();this.sendBackpressuredArray.data.length>0||r;){if(o)for(;o;)console.log("waiting for feedback because of backpressure..."),await X.delayFor(50),await n();let i;this.sendBackpressuredArray.data.length>0&&(i=this.sendBackpressuredArray.shift());let s;s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Tr.uni(),cycle:"request",mainPurpose:i?"chunk":"read",backpressure:e,next:this.sendBackpressuredArray.data.length>0,...i?{chunkData:i}:{}},response:null}).catch(()=>(console.log("stream ended immaturely"),this.keepAlive=!1,null)),s&&s.response&&s.response.chunkData&&this.receiveBackpressuredArray.push(s.response.chunkData),o=s&&s.response&&s.response.backpressure,e=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=s&&s.response&&s.response.next}}this.workingDeferred.resolve(),this.workingDeferred=null}async handleStreamTr(e){if(e.request.keepAlive===!0&&this.keepAlive===!0?this.lastKeepAliveEvent=Date.now():e.request.keepAlive===!1&&(this.keepAlive=!1),e.request.mainPurpose==="keepAlive"&&(e.response={streamId:this.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"keepAlive",keepAlive:this.keepAlive,next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),e.request.mainPurpose==="feedback"&&(e.response={streamId:this.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),e.request.mainPurpose==="chunk"){if(this.receiveBackpressuredArray.push(e.request.chunkData),this.sendBackpressuredArray.data.length>0&&e.response.backpressure===!1){let r=this.sendBackpressuredArray.shift();e.response={streamId:this.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"chunk",next:this.sendBackpressuredArray.data.length>1,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable(),chunkData:this.sendBackpressuredArray.shift()}}else e.response={streamId:this.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()};e.request=null}return e}async cleanup(){this.typedrouter&&this.typedrouter.registeredVirtualStreams.remove(this)}async startKeepAliveLoop(){if(this.side==="responding")return;await X.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let e=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await X.delayFor(1e3);await X.delayFor(1e3),await this.cleanup(),console.log(`cleaned up for stream ${this.streamId}`)}async triggerKeepAlive(){if(this.side==="requesting"){console.log("keepalive sent.");let e=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Tr.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:this.keepAlive},response:null}).catch(()=>{this.keepAlive=!1});e&&e.response&&e.response.keepAlive===!1?this.keepAlive=!1:this.lastKeepAliveEvent=Date.now(),e&&e.response&&e.response.next&&this.workOnQueue()}Date.now()-this.lastKeepAliveEvent>1e4&&(console.log(`closing stream for ${this.streamId}`),this.keepAlive=!1)}async sendData(e){this.sendBackpressuredArray.push(e),this.workOnQueue(),await this.sendBackpressuredArray.waitForSpace()}async fetchData(){return this.receiveBackpressuredArray.hasSpace,await this.receiveBackpressuredArray.waitForItems(),this.receiveBackpressuredArray.shift()}async readFromWebstream(e,r=!0){let o=e.getReader(),n=!1;for(;!n;){let{value:i,done:s}=await o.read();i&&await this.sendData(i),n=s}r&&await this.close(!0)}async writeToWebstream(e){let r=e.getWriter();for(;this.keepAlive||this.receiveBackpressuredArray.checkHasItems();){let o=await this.fetchData();if(o===ly){r.releaseLock(),await e.close();break}await r.write(o)}}async close(e=!1){e&&this.sendData(ly),this.keepAlive=!1}};var xf=class{constructor(e){if(e.postMethodWithTypedRouter&&!e.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=e}async post(e){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(e.correlation.id,e));let n=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(e),i;return r?i=await r.interestFullfilled:n?i=n:i=e,i}};var CO=new js.WebRequest,gf=class{constructor(e,r){typeof e=="string"?this.urlEndPoint=e:this.typedTarget=e,this.method=r}async fire(e,r=!1){let o={method:this.method,request:e,response:null,correlation:{id:Tr.uni(),phase:"request"}};o=pt.encodePayloadForNetwork(o,{sendMethod:i=>this.postTrObject(i)});let n;return n=await this.postTrObject(o,r),n=pt.decodePayloadFromNetwork(n,{sendMethod:i=>this.postTrObject(i)}),n.response}async postTrObject(e,r=!1){let o;if(this.urlEndPoint?o=await CO.postJson(this.urlEndPoint,e,r):o=await this.typedTarget.post(e),o.error){if(console.error(`method: >>${this.method}<< got an ERROR: "${o.error.text}" with data ${JSON.stringify(o.error.data,null,2)}`),!o.retry)throw new kt(o.error.text,o.error.data);return null}return o.retry&&(console.log(`server requested retry for the following reason: ${o.retry.reason}`),await X.delayFor(o.retry.waitForMs),o=await this.postTrObject(e,r)),o}};var Ks=class{constructor(){this.webstore=new Dr.WebStore({dbName:"consentsoftware",storeName:"webclient"})}async isCookieLevelSet(){return!!await this.webstore.get("acceptedCookieLevels")}async setCookieLevels(e){return await this.webstore.set("acceptedCookieLevels",{acceptanceTimestamp:Date.now(),acceptedCookieLevels:e}),!0}async getCookieLevels(){return(await this.webstore.get("acceptedCookieLevels"))?.acceptedCookieLevels}async isCookieLevelStillValid(){return!(!this.isCookieLevelSet||(await this.webstore.get("acceptedCookieLevels")).acceptanceTimestamp<Date.now()-Ot.getMilliSecondsFromUnits({months:3}))}async getAndRunConsentTuples(e){let r=await this.getCookieLevels();if(!r){console.log("You need to set accepted cookielevels first");return}let o=new Gs.TypedRequest("https://connect.api.global/consentsoftware","getDomainSettings"),n=e||window.location.hostname,i=await o.fire({domain:n});for(let s of i.consentTuples)if(s.level==="functional"||r.includes(s.level)){let a=s.script,u=new Function("dataArg","cookieLevelsArg",`return (${a})(dataArg, cookieLevelsArg)`);if(typeof u=="function")await u(s.scriptExecutionDataArg,await this.getCookieLevels());else{let c="got malformed script to execuute";throw console.error(c),new Error(c)}console.log(`Successfully executed ConsentTuple >>${s.name}<< -> ${s.description}`)}}};var Or=class extends Me{constructor(){super();this.csWebclientInstance=new Ks;this.csWebclientRan=!1;this.theme="light";this.setAttribute("show","false")}render(){return Re`
17
+ `).forEach(n=>{n&&o.push(On(n))}),ry(r,o)};var Dr={};re(Dr,{TypedrequestCache:()=>df,WebStore:()=>Mn});var Hs={};re(Hs,{deleteDB:()=>MO,openDB:()=>OO,unwrap:()=>Ys,wrap:()=>At});var ff=(t,e)=>e.some(r=>t instanceof r),oy,ny;function bO(){return oy||(oy=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function vO(){return ny||(ny=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var lf=new WeakMap,uf=new WeakMap,qs=new WeakMap;function wO(t){let e=new Promise((r,o)=>{let n=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(At(t.result)),n()},s=()=>{o(t.error),n()};t.addEventListener("success",i),t.addEventListener("error",s)});return qs.set(e,t),e}function SO(t){if(lf.has(t))return;let e=new Promise((r,o)=>{let n=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{r(),n()},s=()=>{o(t.error||new DOMException("AbortError","AbortError")),n()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});lf.set(t,e)}var pf={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return lf.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return At(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function uy(t){pf=t(pf)}function DO(t){return vO().includes(t)?function(...e){return t.apply(Ys(this),e),At(this.request)}:function(...e){return At(t.apply(Ys(this),e))}}function TO(t){return typeof t=="function"?DO(t):(t instanceof IDBTransaction&&SO(t),ff(t,bO())?new Proxy(t,pf):t)}function At(t){if(t instanceof IDBRequest)return wO(t);if(uf.has(t))return uf.get(t);let e=TO(t);return e!==t&&(uf.set(t,e),qs.set(e,t)),e}var Ys=t=>qs.get(t);function OO(t,e,{blocked:r,upgrade:o,blocking:n,terminated:i}={}){let s=indexedDB.open(t,e),a=At(s);return o&&s.addEventListener("upgradeneeded",u=>{o(At(s.result),u.oldVersion,u.newVersion,At(s.transaction),u)}),r&&s.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),a.then(u=>{i&&u.addEventListener("close",()=>i()),n&&u.addEventListener("versionchange",c=>n(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}function MO(t,{blocked:e}={}){let r=indexedDB.deleteDatabase(t);return e&&r.addEventListener("blocked",o=>e(o.oldVersion,o)),At(r).then(()=>{})}var _O=["get","getKey","getAll","getAllKeys","count"],EO=["put","add","delete","clear"],cf=new Map;function iy(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(cf.get(e))return cf.get(e);let r=e.replace(/FromIndex$/,""),o=e!==r,n=EO.includes(r);if(!(r in(o?IDBIndex:IDBObjectStore).prototype)||!(n||_O.includes(r)))return;let i=async function(s,...a){let u=this.transaction(s,n?"readwrite":"readonly"),c=u.store;return o&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),n&&u.done]))[0]};return cf.set(e,i),i}uy(t=>({...t,get:(e,r,o)=>iy(e,r)||t.get(e,r,o),has:(e,r)=>!!iy(e,r)||t.has(e,r)}));var AO=["continue","continuePrimaryKey","advance"],sy={},mf=new WeakMap,cy=new WeakMap,IO={get(t,e){if(!AO.includes(e))return t[e];let r=sy[e];return r||(r=sy[e]=function(...o){mf.set(this,cy.get(this)[e](...o))}),r}};async function*kO(...t){let e=this;if(e instanceof IDBCursor||(e=await e.openCursor(...t)),!e)return;e=e;let r=new Proxy(e,IO);for(cy.set(r,e),qs.set(r,Ys(e));e;)yield r,e=await(mf.get(r)||e.continue()),mf.delete(r)}function ay(t,e){return e===Symbol.asyncIterator&&ff(t,[IDBIndex,IDBObjectStore,IDBCursor])||e==="iterate"&&ff(t,[IDBIndex,IDBObjectStore])}uy(t=>({...t,get(e,r,o){return ay(e,r)?kO:t.get(e,r,o)},has(e,r){return ay(e,r)||t.has(e,r)}}));var Mn=class{constructor(e){this.initCalled=!1,this.readyDeferred=K.defer(),this.options=e}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let e=new yr.Smartenv;if(!e.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await e.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await e.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await Hs.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(e){return await this.init(),this.db.get(this.options.storeName,e)}async check(e){return await this.init(),!!await this.get(e)}async set(e,r){return await this.init(),this.db.put(this.options.storeName,r,e)}async delete(e){return await this.init(),this.db.delete(this.options.storeName,e)}async clear(){return await this.init(),this.db.clear(this.options.storeName)}async keys(){return await this.init(),this.db.getAllKeys(this.options.storeName)}};var df=class{constructor(e="default"){this.webstore=new Mn({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return Xe.stringify({method:e.method,request:e.request})}async setByRequest(e){if(!e.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(e),e)}async getByRequest(e){return await this.webstore.get(this.buildKey(e))}};var hf=class{constructor(e={}){this.optionsArg=e,this.cacheStore=new Dr.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...e}}async getJson(e,r=!1){let n=await(await this.request(e,{method:"GET",useCache:r})).text();return Xe.parse(n)}async postJson(e,r,o=!1){let i=await(await this.request(e,{method:"POST",headers:{"Content-Type":"application/json"},body:Xe.stringify(r),useCache:o})).text();return Xe.parse(i)}async putJson(e,r,o=!1){let i=await(await this.request(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:Xe.stringify(r)})).text();return Xe.parse(i)}async deleteJson(e,r=!1){let n=await(await this.request(e,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return Xe.parse(n)}async request(e,r){r={timeoutMs:6e4,useCache:!1,...r};let o=new AbortController;X.delayFor(r.timeoutMs).then(()=>{o.abort()});let n=K.defer(),i=!1;if(r.useCache&&await this.cacheStore.check(e)){let a=await this.cacheStore.get(e);n.resolve(new Response(a,{}))}else n.resolve(null);let s=await fetch(e,{signal:o.signal,method:r.method,headers:{...r.headers||{}},body:r.body}).catch(async a=>r.useCache&&await n.promise?(i=!0,n.promise):a);if(r.useCache&&await n.promise&&s.status===500&&(i=!0,s=await n.promise),!i&&r.useCache&&s.status<300){let a=await s.clone().arrayBuffer();await this.cacheStore.set(e,a)}return this.log(`${e} answers with status: ${s.status}`),s}async requestMultiEndpoint(e,r){let o,n=0;Array.isArray(e)?o=e:o=[e];let i=[],s=async c=>{i.push(c),c==="429"&&(console.log("got 429, so waiting a little bit."),await X.delayFor(Math.floor(Math.random()*1001)+1e3));let f=0;for(let m of i)m===c&&f++;f>2*o.length*n&&n++},a=async c=>{if(!c)throw new Error("request failed permanently");this.log(`Getting ${c} with method ${r.method}`);let f=await fetch(c,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${c} answers with status: ${f.status}`),f.status>=200&&f.status<300?f:(await s(f.status.toString()),await a(o[n]))};return await a(o[n])}log(e){this.options.logging&&console.log(e)}};var It=class{constructor(e,r){this.errorText=e,this.errorData=r}};var Vs=class{async passGuards(e,r){let o=new ps.GuardSet(e);if(!await o.allGuardsPass(r)){let i=await o.getFailedHint(r);throw new It(`guard failed: ${i}`,{failedHint:i})}}};var yf=class{constructor(e,r){this.method=e,this.handlerFunction=r}async addResponse(e){if(e.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,o=new Vs,n=await this.handlerFunction(e.request,o).catch(i=>{i instanceof It?r=i:console.log(i)});return r&&(e.error={text:r.errorText,data:r.errorData}),n&&(e.response=n),e?.correlation?.phase&&(e.correlation.phase="response"),e}};var _n=class{constructor(){this.routerMap=new Ue.ObjectMap,this.handlerMap=new Ue.ObjectMap,this.registeredVirtualStreams=new Ue.ObjectMap,this.fireEventInterestMap=new Ue.InterestMap(e=>e)}addTypedHandler(e){if(this.getTypedHandlerForMethod(e.method))throw new Error(`a TypedHandler for ${e.method} alredy exists! Can't add another one.`);this.handlerMap.add(e)}addTypedRouter(e){this.routerMap.findSync(o=>o===e)||(this.routerMap.add(e),e.addTypedRouter(this))}checkForTypedHandler(e){return!!this.getTypedHandlerForMethod(e)}getTypedHandlerForMethod(e,r=[]){r.push(this);let o;return o=this.handlerMap.findSync(n=>n.method===e),o||this.routerMap.getArray().forEach(n=>{!o&&!r.includes(n)&&(o=n.getTypedHandlerForMethod(e,r))}),o}async routeAndAddResponse(e,r=!1){if(e=pt.decodePayloadFromNetwork(e,{typedrouter:this}),e.localData=e.localData||{},e.localData.firstTypedrouter=this,e.method==="##VirtualStream##"){let o=await this.handleStreamTypedRequest(e);return o.localData=null,o}if(e?.correlation?.phase==="request"||r){let o=this.getTypedHandlerForMethod(e.method);return o?(e=await o.addResponse(e),e.localData=null,e=pt.encodePayloadForNetwork(e,{typedrouter:this}),e):(console.log(`Cannot find handler for methodname ${e.method}`),e.error={text:"There is no available method for this call on the server side",data:{}},e.correlation.phase="response",e.localData=null,e=pt.encodePayloadForNetwork(e,{typedrouter:this}),e)}else return e?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(e.correlation.id)?.fullfillInterest(e),null):(console.log("received weirdly shaped request"),console.log(e),null)}async handleStreamTypedRequest(e){let r=await this.registeredVirtualStreams.find(async n=>n.streamId===e.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${e.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${e.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),e;return await r.handleStreamTr(e)}};var ly="#############CLOSING BIT#############",pt=class t{static encodePayloadForNetwork(e,r,o,n=[]){return!e||rn.isBufferLike(e)?e:e instanceof t?(!e.side&&r.sendMethod&&(e.side="requesting",e.sendMethod=r.sendMethod),!e.side&&r.typedrouter&&(e.side="responding",e.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(e)),!o.response||n.includes("response")?(e.startKeepAliveLoop(),{_isVirtualStream:!0,streamId:e.streamId}):{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: obmitted for deduplication reasons in response cycle."}):Array.isArray(e)?e.map((i,s)=>t.encodePayloadForNetwork(i,r,o||e,n.concat(String(s)))):e!==null&&typeof e=="object"?Object.entries(e).reduce((i,[s,a])=>{let u=n.concat(s);return i[s]=t.encodePayloadForNetwork(a,r,o||e,u),i},{}):e}static decodePayloadFromNetwork(e,r){if(rn.isBufferLike(e)||e instanceof _n)return e;if(e!==null&&typeof e=="object")if(e._isVirtualStream){let o=new t;return o.streamId=e.streamId,!o.side&&r.sendMethod&&(o.side="requesting",o.sendMethod=r.sendMethod),!o.side&&r.typedrouter&&(o.side="responding",o.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(o)),o.startKeepAliveLoop(),o}else if(Array.isArray(e)){let o=[];for(let n of e)o.push(t.decodePayloadFromNetwork(n,r));return o}else return Object.keys(e).reduce((o,n)=>(o[n]=t.decodePayloadFromNetwork(e[n],r),o),{});else return e}constructor(){this.streamId=Tr.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new Ue.BackpressuredArray(16),this.receiveBackpressuredArray=new Ue.BackpressuredArray(16)}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=K.defer(),this.side==="requesting"){let e=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,o=!1,n=async()=>{let i=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Tr.uni(),cycle:"request",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()},response:null}).catch(()=>{console.log("stream ended immaturely"),this.keepAlive=!1});i&&i.response&&(o=i.response.backpressure,r=i.response.next)};for(await n();this.sendBackpressuredArray.data.length>0||r;){if(o)for(;o;)console.log("waiting for feedback because of backpressure..."),await X.delayFor(50),await n();let i;this.sendBackpressuredArray.data.length>0&&(i=this.sendBackpressuredArray.shift());let s;s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Tr.uni(),cycle:"request",mainPurpose:i?"chunk":"read",backpressure:e,next:this.sendBackpressuredArray.data.length>0,...i?{chunkData:i}:{}},response:null}).catch(()=>(console.log("stream ended immaturely"),this.keepAlive=!1,null)),s&&s.response&&s.response.chunkData&&this.receiveBackpressuredArray.push(s.response.chunkData),o=s&&s.response&&s.response.backpressure,e=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=s&&s.response&&s.response.next}}this.workingDeferred.resolve(),this.workingDeferred=null}async handleStreamTr(e){if(e.request.keepAlive===!0&&this.keepAlive===!0?this.lastKeepAliveEvent=Date.now():e.request.keepAlive===!1&&(this.keepAlive=!1),e.request.mainPurpose==="keepAlive"&&(e.response={streamId:this.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"keepAlive",keepAlive:this.keepAlive,next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),e.request.mainPurpose==="feedback"&&(e.response={streamId:this.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),e.request.mainPurpose==="chunk"){if(this.receiveBackpressuredArray.push(e.request.chunkData),this.sendBackpressuredArray.data.length>0&&e.response.backpressure===!1){let r=this.sendBackpressuredArray.shift();e.response={streamId:this.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"chunk",next:this.sendBackpressuredArray.data.length>1,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable(),chunkData:this.sendBackpressuredArray.shift()}}else e.response={streamId:this.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()};e.request=null}return e}async cleanup(){this.typedrouter&&this.typedrouter.registeredVirtualStreams.remove(this)}async startKeepAliveLoop(){if(this.side==="responding")return;await X.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let e=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await X.delayFor(1e3);await X.delayFor(1e3),await this.cleanup(),console.log(`cleaned up for stream ${this.streamId}`)}async triggerKeepAlive(){if(this.side==="requesting"){console.log("keepalive sent.");let e=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Tr.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:this.keepAlive},response:null}).catch(()=>{this.keepAlive=!1});e&&e.response&&e.response.keepAlive===!1?this.keepAlive=!1:this.lastKeepAliveEvent=Date.now(),e&&e.response&&e.response.next&&this.workOnQueue()}Date.now()-this.lastKeepAliveEvent>1e4&&(console.log(`closing stream for ${this.streamId}`),this.keepAlive=!1)}async sendData(e){this.sendBackpressuredArray.push(e),this.workOnQueue(),await this.sendBackpressuredArray.waitForSpace()}async fetchData(){return this.receiveBackpressuredArray.hasSpace,await this.receiveBackpressuredArray.waitForItems(),this.receiveBackpressuredArray.shift()}async readFromWebstream(e,r=!0){let o=e.getReader(),n=!1;for(;!n;){let{value:i,done:s}=await o.read();i&&await this.sendData(i),n=s}r&&await this.close(!0)}async writeToWebstream(e){let r=e.getWriter();for(;this.keepAlive||this.receiveBackpressuredArray.checkHasItems();){let o=await this.fetchData();if(o===ly){r.releaseLock(),await e.close();break}await r.write(o)}}async close(e=!1){e&&this.sendData(ly),this.keepAlive=!1}};var xf=class{constructor(e){if(e.postMethodWithTypedRouter&&!e.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=e}async post(e){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(e.correlation.id,e));let n=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(e),i;return r?i=await r.interestFullfilled:n?i=n:i=e,i}};var CO=new js.WebRequest,gf=class{constructor(e,r){typeof e=="string"?this.urlEndPoint=e:this.typedTarget=e,this.method=r}async fire(e,r=!1){let o={method:this.method,request:e,response:null,correlation:{id:Tr.uni(),phase:"request"}};o=pt.encodePayloadForNetwork(o,{sendMethod:i=>this.postTrObject(i)});let n;return n=await this.postTrObject(o,r),n=pt.decodePayloadFromNetwork(n,{sendMethod:i=>this.postTrObject(i)}),n.response}async postTrObject(e,r=!1){let o;if(this.urlEndPoint?o=await CO.postJson(this.urlEndPoint,e,r):o=await this.typedTarget.post(e),o.error){if(console.error(`method: >>${this.method}<< got an ERROR: "${o.error.text}" with data ${JSON.stringify(o.error.data,null,2)}`),!o.retry)throw new It(o.error.text,o.error.data);return null}return o.retry&&(console.log(`server requested retry for the following reason: ${o.retry.reason}`),await X.delayFor(o.retry.waitForMs),o=await this.postTrObject(e,r)),o}};var Ks=class{constructor(){this.webstore=new Dr.WebStore({dbName:"consentsoftware",storeName:"webclient"})}async isCookieLevelSet(){return!!await this.webstore.get("acceptedCookieLevels")}async setCookieLevels(e){return await this.webstore.set("acceptedCookieLevels",{acceptanceTimestamp:Date.now(),acceptedCookieLevels:e}),!0}async getCookieLevels(){return(await this.webstore.get("acceptedCookieLevels"))?.acceptedCookieLevels}async isCookieLevelStillValid(){return!(!this.isCookieLevelSet||(await this.webstore.get("acceptedCookieLevels")).acceptanceTimestamp<Date.now()-Ot.getMilliSecondsFromUnits({months:3}))}async getAndRunConsentTuples(e){let r=await this.getCookieLevels();if(!r){console.log("You need to set accepted cookielevels first");return}let o=new Gs.TypedRequest("https://connect.api.global/consentsoftware","getDomainSettings"),n=e||window.location.hostname,i=await o.fire({domain:n});for(let s of i.consentTuples)if(s.level==="functional"||r.includes(s.level)){let a=s.script,u=new Function("dataArg","cookieLevelsArg",`return (${a})(dataArg, cookieLevelsArg)`);if(typeof u=="function")await u(s.scriptExecutionDataArg,await this.getCookieLevels());else{let c="got malformed script to execuute";throw console.error(c),new Error(c)}console.log(`Successfully executed ConsentTuple >>${s.name}<< -> ${s.description}`)}}};var Or=class extends Me{constructor(){super();this.csWebclientInstance=new Ks;this.csWebclientRan=!1;this.theme="light";this.setAttribute("show","false")}render(){return Re`
18
18
  <div class="pageOverlay" @click=${this.pageOverlayClick}>
19
19
  <div class="modalBox">
20
20
  <div class="content">
@@ -27,32 +27,6 @@ ${n}
27
27
  and choose which cookie level you are willing to accept.
28
28
  </div>
29
29
  </div>
30
- <!-- <div class="button-container">
31
- <div
32
- class="consent-button"
33
- @click=${r=>this.handleConsentButtonClick(r,["functional"])}
34
- >
35
- Functional cookies
36
- </div>
37
- <div
38
- class="consent-button"
39
- @click=${r=>this.handleConsentButtonClick(r,["functional","analytics"])}
40
- >
41
- Analytics cookies
42
- </div>
43
- <div
44
- class="consent-button"
45
- @click=${r=>this.handleConsentButtonClick(r,["functional","analytics","marketing"])}
46
- >
47
- Marketing cookies
48
- </div>
49
- <div
50
- class="consent-button"
51
- @click=${r=>this.handleConsentButtonClick(r,["functional","analytics","marketing","all"])}
52
- >
53
- All cookies
54
- </div>
55
- </div> -->
56
30
  <consentsoftware-mainselection></consentsoftware-mainselection>
57
31
  <div class="button-container">
58
32
  <div
@@ -77,7 +51,6 @@ ${n}
77
51
  <div class="info-container">
78
52
  consent management powered by
79
53
  <a href="https://consent.software">consent.software</a>
80
- (Open Source)
81
54
  </div>
82
55
  </div>
83
56
  </div>
@@ -86,7 +59,7 @@ ${n}
86
59
  :host {
87
60
  font-family: ${$n};
88
61
  user-select: none;
89
- /* Default theme variables */
62
+ /* Default variables for Light Theme */
90
63
  --text-color: #333;
91
64
  --background-color: #eeeeee;
92
65
  --accent-color: #333333;
@@ -95,8 +68,14 @@ ${n}
95
68
  --icon-color: #4496f5;
96
69
  --link-color: #333;
97
70
  --padding-sides: 16px;
71
+ /* Additional variables for modal and info container styling */
72
+ --info-bg: rgba(0, 0, 0, 0.1);
73
+ --info-text: rgba(255, 255, 255, 0.5);
74
+ --modal-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
98
75
  }
99
76
 
77
+ /* Dark Theme Overrides:
78
+ When theme attribute is 'dark', override variables accordingly. */
100
79
  :host([theme='dark']) {
101
80
  --text-color: #fff;
102
81
  --background-color: #111;
@@ -105,8 +84,14 @@ ${n}
105
84
  --button-hover-bg: #222222;
106
85
  --icon-color: #4496f5;
107
86
  --link-color: #fff;
87
+ --info-bg: rgba(0, 0, 0, 0.1);
88
+ --info-text: rgba(255, 255, 255, 0.5);
89
+ --modal-box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.6);
108
90
  }
109
91
 
92
+ /* Light Theme Overrides:
93
+ Explicit light theme settings, currently matching defaults.
94
+ Can be customized independently if desired. */
110
95
  :host([theme='light']) {
111
96
  --text-color: #333;
112
97
  --background-color: #eeeeee;
@@ -115,33 +100,39 @@ ${n}
115
100
  --button-hover-bg: #f2f2f2;
116
101
  --icon-color: #4496f5;
117
102
  --link-color: #333;
103
+ --info-bg: rgba(0, 0, 0, 0.1);
104
+ --info-text: rgba(0, 0, 0, 0.5);
105
+ --modal-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
118
106
  }
119
107
 
108
+ /* Overlay covering the page behind the modal */
120
109
  .pageOverlay {
121
110
  position: fixed;
122
- top: 0px;
123
- bottom: 0px;
124
- right: 0px;
125
- left: 0px;
111
+ top: 0;
112
+ bottom: 0;
113
+ right: 0;
114
+ left: 0;
126
115
  display: grid;
127
116
  align-items: center;
128
117
  justify-content: center;
129
- z-index: 1000; /* standard z-index for fixed elements */
118
+ z-index: 1000; /* Ensures the overlay is on top of other elements */
130
119
  background: rgba(255, 255, 255, 0);
131
120
  backdrop-filter: blur(0px);
132
121
  transition: all 0.2s;
133
122
  }
134
123
 
124
+ /* Shake animation for overlay when clicked */
135
125
  .pageOverlay.shake {
136
126
  background: rgba(0, 0, 0, 0.5) !important;
137
127
  }
138
128
 
129
+ /* Modal box styling using theme variables for colors and shadows */
139
130
  .modalBox {
140
131
  display: block;
141
132
  color: var(--text-color);
142
133
  background: var(--background-color);
143
- box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.6);
144
- position: realtive;
134
+ box-shadow: var(--modal-box-shadow);
135
+ position: relative;
145
136
  border: 1px dotted rgba(255, 255, 255, 0.1);
146
137
  border-top: 1px solid var(--accent-color);
147
138
  border-radius: 16px;
@@ -149,12 +140,22 @@ ${n}
149
140
  min-width: calc(100vw / 3);
150
141
  box-sizing: border-box;
151
142
  overflow: hidden;
152
- will-change: transform; /* ensure efficient rendering */
143
+ will-change: transform;
153
144
  transition: all 0.3s;
154
145
  transform: scale(0.95);
155
146
  opacity: 0;
156
147
  }
157
148
 
149
+ /* Media query for mobile devices: stack buttons vertically */
150
+ @media (max-width: 600px) {
151
+ .modalBox {
152
+ height: 100vh;
153
+ box-shadow: none;
154
+ border-radius: 0px;
155
+ }
156
+ }
157
+
158
+ /* Shake animation for modal box */
158
159
  .modalBox.shake {
159
160
  animation: shake 150ms 2 linear;
160
161
  }
@@ -171,10 +172,7 @@ ${n}
171
172
  }
172
173
  }
173
174
 
174
- /*
175
- * Toggle display based on [show] attribute
176
- * (so if show=false, the banner doesn't show at all).
177
- */
175
+ /* Toggle display based on [show] attribute */
178
176
  :host([show='false']) {
179
177
  display: none;
180
178
  }
@@ -205,25 +203,14 @@ ${n}
205
203
  gap: 16px;
206
204
  }
207
205
 
208
- .info-container {
209
- color: var(--text-color);
210
- text-align: center;
211
- line-height: 3em;
212
- background: rgba(0, 0, 0, 0.1);
213
- border-top: 1px dotted rgba(255, 255, 255, 0.1);
214
- font-size: 0.8em;
215
- color: rgba(255, 255, 255, 0.5);
216
- }
217
-
218
- .info-container a {
219
- text-decoration: underline;
220
- color: var(--link-color);
221
- transition: color 0.2s;
222
- }
223
- .info-container a:hover {
224
- color: #ffffff;
206
+ /* Media query for mobile devices: stack buttons vertically */
207
+ @media (max-width: 600px) {
208
+ .button-container {
209
+ grid-template-columns: 1fr;
210
+ }
225
211
  }
226
212
 
213
+ /* Consent button styling using theme variables */
227
214
  .consent-button {
228
215
  border-radius: 3px;
229
216
  background: var(--button-bg);
@@ -238,6 +225,25 @@ ${n}
238
225
  .consent-button:hover {
239
226
  background: var(--button-hover-bg);
240
227
  }
228
+
229
+ /* Use theme variables for info container background and text */
230
+ .info-container {
231
+ text-align: center;
232
+ line-height: 3em;
233
+ background: var(--info-bg);
234
+ border-top: 1px dotted rgba(255, 255, 255, 0.1);
235
+ font-size: 0.8em;
236
+ color: var(--info-text);
237
+ }
238
+
239
+ .info-container a {
240
+ text-decoration: underline;
241
+ color: var(--link-color);
242
+ transition: color 0.2s;
243
+ }
244
+ .info-container a:hover {
245
+ color: #ffffff;
246
+ }
241
247
  `,Ce([dt({type:String,reflect:!0})],Or.prototype,"theme",2),Or=Ce([it("consentsoftware-cookieconsent")],Or);var go=class extends Me{constructor(){super()}render(){return Re`
242
248
  <div class="heading">
243
249
  What about cookies?
@@ -378,7 +384,7 @@ ${n}
378
384
  <div class="tabs">
379
385
  <div class="tab" @click=${this.handleClick}>Consent</div>
380
386
  <div class="tab" @click=${this.handleClick}>Details</div>
381
- <div class="tab" @click=${this.handleClick}>Cookie Policy + Legal Info</div>
387
+ <div class="tab" @click=${this.handleClick}>Cookie Policy</div>
382
388
  </div>
383
389
  <div class="selector"></div>
384
390
  `}async handleClick(e){let o=e.target.closest(".tab");if(o){let n=this.shadowRoot?.querySelector(".selector");n&&(n.style.left=`${o.offsetLeft}px`,n.style.width=`${o.offsetWidth}px`)}}};bo.demo=()=>Re`<consentsoftware-tabs></consentsoftware-tabs>`,bo.styles=Ze`
@@ -399,6 +405,13 @@ ${n}
399
405
  cursor: pointer;
400
406
  }
401
407
 
408
+ /* Media query for mobile devices: stack buttons vertically */
409
+ @media (max-width: 600px) {
410
+ .tabs .tab {
411
+ font-size: 0.8em;
412
+ }
413
+ }
414
+
402
415
  .selector {
403
416
  position: absolute;
404
417
  width: calc(100% / 3);