@design.estate/dees-domtools 2.5.4 → 2.5.6

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,93 +1,93 @@
1
- var QC=Object.create;var sl=Object.defineProperty;var GC=Object.getOwnPropertyDescriptor;var JC=Object.getOwnPropertyNames;var XC=Object.getPrototypeOf,ZC=Object.prototype.hasOwnProperty;var i=(e,t)=>sl(e,"name",{value:t,configurable:!0}),al=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var ae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),se=(e,t)=>{for(var r in t)sl(e,r,{get:t[r],enumerable:!0})},KC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of JC(t))!ZC.call(e,o)&&o!==r&&sl(e,o,{get:()=>t[o],enumerable:!(n=GC(t,o))||n.enumerable});return e};var St=(e,t,r)=>(r=e!=null?QC(XC(e)):{},KC(t||!e||!e.__esModule?sl(r,"default",{value:e,enumerable:!0}):r,e));var $p=ae(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0}),fl.uni=void 0;var lO=i((e="uni")=>`${e}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}`,"uni");fl.uni=lO});var _0=ae((kh,Sh)=>{(function(e,t){typeof kh=="object"&&typeof Sh<"u"?Sh.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(kh,(function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",s="minute",a="hour",l="day",u="week",c="month",f="quarter",p="year",h="date",m="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,x={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:i(function(U){var M=["th","st","nd","rd"],P=U%100;return"["+U+(M[(P-20)%10]||M[P]||M[0])+"]"},"ordinal")},b=i(function(U,M,P){var L=String(U);return!L||L.length>=M?U:""+Array(M+1-L.length).join(P)+U},"m"),T={s:b,z:i(function(U){var M=-U.utcOffset(),P=Math.abs(M),L=Math.floor(P/60),B=P%60;return(M<=0?"+":"-")+b(L,2,"0")+":"+b(B,2,"0")},"z"),m:i(function U(M,P){if(M.date()<P.date())return-U(P,M);var L=12*(P.year()-M.year())+(P.month()-M.month()),B=M.clone().add(L,c),V=P-B<0,X=M.clone().add(L+(V?-1:1),c);return+(-(L+(P-B)/(V?B-X:X-B))||0)},"t"),a:i(function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},"a"),p:i(function(U){return{M:c,y:p,w:u,d:l,D:h,h:a,m:s,s:o,ms:n,Q:f}[U]||String(U||"").toLowerCase().replace(/s$/,"")},"p"),u:i(function(U){return U===void 0},"u")},D="en",q={};q[D]=x;var H="$isDayjsObject",O=i(function(U){return U instanceof A||!(!U||!U[H])},"S"),$=i(function U(M,P,L){var B;if(!M)return D;if(typeof M=="string"){var V=M.toLowerCase();q[V]&&(B=V),P&&(q[V]=P,B=V);var X=M.split("-");if(!B&&X.length>1)return U(X[0])}else{var ue=M.name;q[ue]=M,B=ue}return!L&&B&&(D=B),B||!L&&D},"t"),K=i(function(U,M){if(O(U))return U.clone();var P=typeof M=="object"?M:{};return P.date=U,P.args=arguments,new A(P)},"O"),Y=T;Y.l=$,Y.i=O,Y.w=function(U,M){return K(U,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var A=(function(){function U(P){this.$L=$(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[H]=!0}i(U,"M");var M=U.prototype;return M.parse=function(P){this.$d=(function(L){var B=L.date,V=L.utc;if(B===null)return new Date(NaN);if(Y.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var X=B.match(d);if(X){var ue=X[2]-1||0,w=(X[7]||"0").substring(0,3);return V?new Date(Date.UTC(X[1],ue,X[3]||1,X[4]||0,X[5]||0,X[6]||0,w)):new Date(X[1],ue,X[3]||1,X[4]||0,X[5]||0,X[6]||0,w)}}return new Date(B)})(P),this.init()},M.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},M.$utils=function(){return Y},M.isValid=function(){return this.$d.toString()!==m},M.isSame=function(P,L){var B=K(P);return this.startOf(L)<=B&&B<=this.endOf(L)},M.isAfter=function(P,L){return K(P)<this.startOf(L)},M.isBefore=function(P,L){return this.endOf(L)<K(P)},M.$g=function(P,L,B){return Y.u(P)?this[L]:this.set(B,P)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(P,L){var B=this,V=!!Y.u(L)||L,X=Y.p(P),ue=i(function(E,k){var C=Y.w(B.$u?Date.UTC(B.$y,k,E):new Date(B.$y,k,E),B);return V?C:C.endOf(l)},"l"),w=i(function(E,k){return Y.w(B.toDate()[E].apply(B.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(k)),B)},"$"),ge=this.$W,be=this.$M,S=this.$D,Ne="set"+(this.$u?"UTC":"");switch(X){case p:return V?ue(1,0):ue(31,11);case c:return V?ue(1,be):ue(0,be+1);case u:var Ue=this.$locale().weekStart||0,Lt=(ge<Ue?ge+7:ge)-Ue;return ue(V?S-Lt:S+(6-Lt),be);case l:case h:return w(Ne+"Hours",0);case a:return w(Ne+"Minutes",1);case s:return w(Ne+"Seconds",2);case o:return w(Ne+"Milliseconds",3);default:return this.clone()}},M.endOf=function(P){return this.startOf(P,!1)},M.$set=function(P,L){var B,V=Y.p(P),X="set"+(this.$u?"UTC":""),ue=(B={},B[l]=X+"Date",B[h]=X+"Date",B[c]=X+"Month",B[p]=X+"FullYear",B[a]=X+"Hours",B[s]=X+"Minutes",B[o]=X+"Seconds",B[n]=X+"Milliseconds",B)[V],w=V===l?this.$D+(L-this.$W):L;if(V===c||V===p){var ge=this.clone().set(h,1);ge.$d[ue](w),ge.init(),this.$d=ge.set(h,Math.min(this.$D,ge.daysInMonth())).$d}else ue&&this.$d[ue](w);return this.init(),this},M.set=function(P,L){return this.clone().$set(P,L)},M.get=function(P){return this[Y.p(P)]()},M.add=function(P,L){var B,V=this;P=Number(P);var X=Y.p(L),ue=i(function(be){var S=K(V);return Y.w(S.date(S.date()+Math.round(be*P)),V)},"y");if(X===c)return this.set(c,this.$M+P);if(X===p)return this.set(p,this.$y+P);if(X===l)return ue(1);if(X===u)return ue(7);var w=(B={},B[s]=t,B[a]=r,B[o]=e,B)[X]||1,ge=this.$d.getTime()+P*w;return Y.w(ge,this)},M.subtract=function(P,L){return this.add(-1*P,L)},M.format=function(P){var L=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var V=P||"YYYY-MM-DDTHH:mm:ssZ",X=Y.z(this),ue=this.$H,w=this.$m,ge=this.$M,be=B.weekdays,S=B.months,Ne=B.meridiem,Ue=i(function(k,C,I,F){return k&&(k[C]||k(L,V))||I[C].slice(0,F)},"h"),Lt=i(function(k){return Y.s(ue%12||12,k,"0")},"d"),E=Ne||function(k,C,I){var F=k<12?"AM":"PM";return I?F.toLowerCase():F};return V.replace(g,(function(k,C){return C||(function(I){switch(I){case"YY":return String(L.$y).slice(-2);case"YYYY":return Y.s(L.$y,4,"0");case"M":return ge+1;case"MM":return Y.s(ge+1,2,"0");case"MMM":return Ue(B.monthsShort,ge,S,3);case"MMMM":return Ue(S,ge);case"D":return L.$D;case"DD":return Y.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Ue(B.weekdaysMin,L.$W,be,2);case"ddd":return Ue(B.weekdaysShort,L.$W,be,3);case"dddd":return be[L.$W];case"H":return String(ue);case"HH":return Y.s(ue,2,"0");case"h":return Lt(1);case"hh":return Lt(2);case"a":return E(ue,w,!0);case"A":return E(ue,w,!1);case"m":return String(w);case"mm":return Y.s(w,2,"0");case"s":return String(L.$s);case"ss":return Y.s(L.$s,2,"0");case"SSS":return Y.s(L.$ms,3,"0");case"Z":return X}return null})(k)||X.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(P,L,B){var V,X=this,ue=Y.p(L),w=K(P),ge=(w.utcOffset()-this.utcOffset())*t,be=this-w,S=i(function(){return Y.m(X,w)},"D");switch(ue){case p:V=S()/12;break;case c:V=S();break;case f:V=S()/3;break;case u:V=(be-ge)/6048e5;break;case l:V=(be-ge)/864e5;break;case a:V=be/r;break;case s:V=be/t;break;case o:V=be/e;break;default:V=be}return B?V:Y.a(V)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return q[this.$L]},M.locale=function(P,L){if(!P)return this.$L;var B=this.clone(),V=$(P,L,!0);return V&&(B.$L=V),B},M.clone=function(){return Y.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},U})(),De=A.prototype;return K.prototype=De,[["$ms",n],["$s",o],["$m",s],["$H",a],["$W",l],["$M",c],["$y",p],["$D",h]].forEach((function(U){De[U[1]]=function(M){return this.$g(M,U[0],U[1])}})),K.extend=function(U,M){return U.$i||(U(M,A,K),U.$i=!0),K},K.locale=$,K.isDayjs=O,K.unix=function(U){return K(1e3*U)},K.en=q[D],K.Ls=q,K.p={},K}))});var P0=ae((Th,Eh)=>{(function(e,t){typeof Th=="object"&&typeof Eh<"u"?Eh.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(Th,(function(){"use strict";return function(e,t,r){t.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}}))});var R0=ae((FCe,L0)=>{"use strict";L0.exports=class{static{i(this,"SymbolTreeNode")}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(t){return this.cachedIndexVersion!==t.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(t,r){this.cachedIndexVersion=t.childrenVersion,this.cachedIndex=r}}});var z0=ae((RCe,B0)=>{"use strict";B0.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var j0=ae((BCe,U0)=>{"use strict";var $0=Symbol(),H0=Symbol(),bn=Symbol(),W0=Symbol(),ir=class{static{i(this,"TreeIterator")}constructor(t,r,n,o){this[$0]=t,this[H0]=r,this[bn]=n,this[W0]=o}next(){let t=this[$0],r=this[W0],n=this[H0];if(!this[bn])return{done:!0,value:n};let o=this[bn];return r===1?this[bn]=t._node(o).previousSibling:r===2?this[bn]=t._node(o).nextSibling:r===3?this[bn]=t._node(o).parent:r===4?this[bn]=t.preceding(o,{root:n}):this[bn]=t.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(ir.prototype,Symbol.iterator,{value:i(function(){return this},"value"),writable:!1}),ir.PREV=1,ir.NEXT=2,ir.PARENT=3,ir.PRECEDING=4,ir.FOLLOWING=5,Object.freeze(ir),Object.freeze(ir.prototype),U0.exports=ir});var Y0=ae(($Ce,q0)=>{"use strict";var D_=R0(),vn=z0(),Jt=j0();function Ph(){return!0}i(Ph,"returnTrue");function No(e,t){return e[e.length-1-t]}i(No,"reverseArrayIndex");var Ec=class{static{i(this,"SymbolTree")}constructor(t){this.symbol=Symbol(t||"SymbolTree data")}initialize(t){return this._node(t),t}_node(t){if(!t)return null;let r=t[this.symbol];return r||(t[this.symbol]=new D_)}hasChildren(t){return this._node(t).hasChildren}firstChild(t){return this._node(t).firstChild}lastChild(t){return this._node(t).lastChild}previousSibling(t){return this._node(t).previousSibling}nextSibling(t){return this._node(t).nextSibling}parent(t){return this._node(t).parent}lastInclusiveDescendant(t){let r,n=t;for(;r=this._node(n).lastChild;)n=r;return n}preceding(t,r){let n=r&&r.root;if(t===n)return null;let o=this._node(t).previousSibling;return o?this.lastInclusiveDescendant(o):this._node(t).parent}following(t,r){let n=r&&r.root,s=!(r&&r.skipChildren)&&this._node(t).firstChild;if(s)return s;let a=t;do{if(a===n)return null;let l=this._node(a).nextSibling;if(l)return l;a=this._node(a).parent}while(a);return null}childrenToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||Ph,s=r&&r.thisArg||void 0,a=this._node(t),l=a.firstChild,u=0;for(;l;){let c=this._node(l);c.setCachedIndex(a,u),o.call(s,l)&&n.push(l),l=c.nextSibling,++u}return n}ancestorsToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||Ph,s=r&&r.thisArg||void 0,a=t;for(;a;)o.call(s,a)&&n.push(a),a=this._node(a).parent;return n}treeToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||Ph,s=r&&r.thisArg||void 0,a=t;for(;a;)o.call(s,a)&&n.push(a),a=this.following(a,{root:t});return n}childrenIterator(t,r){let n=r&&r.reverse,o=this._node(t);return new Jt(this,t,n?o.lastChild:o.firstChild,n?Jt.PREV:Jt.NEXT)}previousSiblingsIterator(t){return new Jt(this,t,this._node(t).previousSibling,Jt.PREV)}nextSiblingsIterator(t){return new Jt(this,t,this._node(t).nextSibling,Jt.NEXT)}ancestorsIterator(t){return new Jt(this,t,t,Jt.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new Jt(this,t,n?this.lastInclusiveDescendant(t):t,n?Jt.PRECEDING:Jt.FOLLOWING)}index(t){let r=this._node(t),n=this._node(r.parent);if(!n)return-1;let o=r.getCachedIndex(n);if(o>=0)return o;o=0;let s=n.firstChild;if(n.childIndexCachedUpTo){let a=this._node(n.childIndexCachedUpTo);s=a.nextSibling,o=a.getCachedIndex(n)+1}for(;s;){let a=this._node(s);if(a.setCachedIndex(n,o),s===t)break;++o,s=a.nextSibling}return n.childIndexCachedUpTo=t,o}childrenCount(t){let r=this._node(t);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(t,r){if(t===r)return 0;let n=[];{let f=t;for(;f;){if(f===r)return vn.CONTAINS|vn.PRECEDING;n.push(f),f=this.parent(f)}}let o=[];{let f=r;for(;f;){if(f===t)return vn.CONTAINED_BY|vn.FOLLOWING;o.push(f),f=this.parent(f)}}let s=No(n,0);if(!s||s!==No(o,0))return vn.DISCONNECTED;let a=0,l=Math.min(n.length,o.length);for(let f=0;f<l;++f){let p=No(n,f),h=No(o,f);if(p!==h)break;a=f}let u=this.index(No(n,a+1));return this.index(No(o,a+1))<u?vn.PRECEDING:vn.FOLLOWING}remove(t){let r=this._node(t),n=this._node(r.parent),o=this._node(r.previousSibling),s=this._node(r.nextSibling);return n&&(n.firstChild===t&&(n.firstChild=r.nextSibling),n.lastChild===t&&(n.lastChild=r.previousSibling)),o&&(o.nextSibling=r.nextSibling),s&&(s.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,n&&n.childrenChanged(),t}insertBefore(t,r){let n=this._node(t),o=this._node(n.previousSibling),s=this._node(r),a=this._node(n.parent);if(s.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return s.parent=n.parent,s.previousSibling=n.previousSibling,s.nextSibling=t,n.previousSibling=r,o&&(o.nextSibling=r),a&&a.firstChild===t&&(a.firstChild=r),a&&a.childrenChanged(),r}insertAfter(t,r){let n=this._node(t),o=this._node(n.nextSibling),s=this._node(r),a=this._node(n.parent);if(s.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return s.parent=n.parent,s.previousSibling=t,s.nextSibling=n.nextSibling,n.nextSibling=r,o&&(o.previousSibling=r),a&&a.lastChild===t&&(a.lastChild=r),a&&a.childrenChanged(),r}prependChild(t,r){let n=this._node(t),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(o.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(t,r){let n=this._node(t),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(o.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};q0.exports=Ec,Ec.TreePosition=vn});var sm=ae((ia,Ho)=>{var gP=200,sv="__lodash_hash_undefined__",av=9007199254740991,Yh="[object Arguments]",xP="[object Array]",lv="[object Boolean]",uv="[object Date]",yP="[object Error]",Vh="[object Function]",cv="[object GeneratorFunction]",Fc="[object Map]",fv="[object Number]",Qh="[object Object]",pv="[object Promise]",hv="[object RegExp]",Lc="[object Set]",mv="[object String]",dv="[object Symbol]",Gh="[object WeakMap]",gv="[object ArrayBuffer]",Rc="[object DataView]",xv="[object Float32Array]",yv="[object Float64Array]",wv="[object Int8Array]",bv="[object Int16Array]",vv="[object Int32Array]",kv="[object Uint8Array]",Sv="[object Uint8ClampedArray]",Tv="[object Uint16Array]",Ev="[object Uint32Array]",wP=/[\\^$.*+?()[\]{}|]/g,bP=/\w*$/,vP=/^\[object .+?Constructor\]$/,kP=/^(?:0|[1-9]\d*)$/,Pe={};Pe[Yh]=Pe[xP]=Pe[gv]=Pe[Rc]=Pe[lv]=Pe[uv]=Pe[xv]=Pe[yv]=Pe[wv]=Pe[bv]=Pe[vv]=Pe[Fc]=Pe[fv]=Pe[Qh]=Pe[hv]=Pe[Lc]=Pe[mv]=Pe[dv]=Pe[kv]=Pe[Sv]=Pe[Tv]=Pe[Ev]=!0,Pe[yP]=Pe[Vh]=Pe[Gh]=!1;var SP=typeof global=="object"&&global&&global.Object===Object&&global,TP=typeof self=="object"&&self&&self.Object===Object&&self,Vr=SP||TP||Function("return this")(),Dv=typeof ia=="object"&&ia&&!ia.nodeType&&ia,Cv=Dv&&typeof Ho=="object"&&Ho&&!Ho.nodeType&&Ho,EP=Cv&&Cv.exports===Dv;function DP(e,t){return e.set(t[0],t[1]),e}i(DP,"addMapEntry");function CP(e,t){return e.add(t),e}i(CP,"addSetEntry");function OP(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}i(OP,"arrayEach");function IP(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}i(IP,"arrayPush");function Ov(e,t,r,n){var o=-1,s=e?e.length:0;for(n&&s&&(r=e[++o]);++o<s;)r=t(r,e[o],o,e);return r}i(Ov,"arrayReduce");function AP(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}i(AP,"baseTimes");function MP(e,t){return e?.[t]}i(MP,"getValue");function Iv(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}i(Iv,"isHostObject");function Av(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}i(Av,"mapToArray");function Jh(e,t){return function(r){return e(t(r))}}i(Jh,"overArg");function Mv(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}i(Mv,"setToArray");var _P=Array.prototype,PP=Function.prototype,Bc=Object.prototype,Xh=Vr["__core-js_shared__"],_v=(function(){var e=/[^.]+$/.exec(Xh&&Xh.keys&&Xh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Pv=PP.toString,En=Bc.hasOwnProperty,zc=Bc.toString,NP=RegExp("^"+Pv.call(En).replace(wP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nv=EP?Vr.Buffer:void 0,Fv=Vr.Symbol,Lv=Vr.Uint8Array,FP=Jh(Object.getPrototypeOf,Object),LP=Object.create,RP=Bc.propertyIsEnumerable,BP=_P.splice,Rv=Object.getOwnPropertySymbols,zP=Nv?Nv.isBuffer:void 0,$P=Jh(Object.keys,Object),Zh=$o(Vr,"DataView"),ra=$o(Vr,"Map"),Kh=$o(Vr,"Promise"),em=$o(Vr,"Set"),tm=$o(Vr,"WeakMap"),na=$o(Object,"create"),HP=pi(Zh),WP=pi(ra),UP=pi(Kh),jP=pi(em),qP=pi(tm),Bv=Fv?Fv.prototype:void 0,zv=Bv?Bv.valueOf:void 0;function ci(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(ci,"Hash");function YP(){this.__data__=na?na(null):{}}i(YP,"hashClear");function VP(e){return this.has(e)&&delete this.__data__[e]}i(VP,"hashDelete");function QP(e){var t=this.__data__;if(na){var r=t[e];return r===sv?void 0:r}return En.call(t,e)?t[e]:void 0}i(QP,"hashGet");function GP(e){var t=this.__data__;return na?t[e]!==void 0:En.call(t,e)}i(GP,"hashHas");function JP(e,t){var r=this.__data__;return r[e]=na&&t===void 0?sv:t,this}i(JP,"hashSet"),ci.prototype.clear=YP,ci.prototype.delete=VP,ci.prototype.get=QP,ci.prototype.has=GP,ci.prototype.set=JP;function Qr(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Qr,"ListCache");function XP(){this.__data__=[]}i(XP,"listCacheClear");function ZP(e){var t=this.__data__,r=$c(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():BP.call(t,r,1),!0}i(ZP,"listCacheDelete");function KP(e){var t=this.__data__,r=$c(t,e);return r<0?void 0:t[r][1]}i(KP,"listCacheGet");function eN(e){return $c(this.__data__,e)>-1}i(eN,"listCacheHas");function tN(e,t){var r=this.__data__,n=$c(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}i(tN,"listCacheSet"),Qr.prototype.clear=XP,Qr.prototype.delete=ZP,Qr.prototype.get=KP,Qr.prototype.has=eN,Qr.prototype.set=tN;function Bo(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Bo,"MapCache");function rN(){this.__data__={hash:new ci,map:new(ra||Qr),string:new ci}}i(rN,"mapCacheClear");function nN(e){return Hc(this,e).delete(e)}i(nN,"mapCacheDelete");function iN(e){return Hc(this,e).get(e)}i(iN,"mapCacheGet");function oN(e){return Hc(this,e).has(e)}i(oN,"mapCacheHas");function sN(e,t){return Hc(this,e).set(e,t),this}i(sN,"mapCacheSet"),Bo.prototype.clear=rN,Bo.prototype.delete=nN,Bo.prototype.get=iN,Bo.prototype.has=oN,Bo.prototype.set=sN;function zo(e){this.__data__=new Qr(e)}i(zo,"Stack");function aN(){this.__data__=new Qr}i(aN,"stackClear");function lN(e){return this.__data__.delete(e)}i(lN,"stackDelete");function uN(e){return this.__data__.get(e)}i(uN,"stackGet");function cN(e){return this.__data__.has(e)}i(cN,"stackHas");function fN(e,t){var r=this.__data__;if(r instanceof Qr){var n=r.__data__;if(!ra||n.length<gP-1)return n.push([e,t]),this;r=this.__data__=new Bo(n)}return r.set(e,t),this}i(fN,"stackSet"),zo.prototype.clear=aN,zo.prototype.delete=lN,zo.prototype.get=uN,zo.prototype.has=cN,zo.prototype.set=fN;function pN(e,t){var r=im(e)||LN(e)?AP(e.length,String):[],n=r.length,o=!!n;for(var s in e)(t||En.call(e,s))&&!(o&&(s=="length"||_N(s,n)))&&r.push(s);return r}i(pN,"arrayLikeKeys");function $v(e,t,r){var n=e[t];(!(En.call(e,t)&&jv(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}i($v,"assignValue");function $c(e,t){for(var r=e.length;r--;)if(jv(e[r][0],t))return r;return-1}i($c,"assocIndexOf");function hN(e,t){return e&&Hv(t,om(t),e)}i(hN,"baseAssign");function rm(e,t,r,n,o,s,a){var l;if(n&&(l=s?n(e,o,s,a):n(e)),l!==void 0)return l;if(!Wc(e))return e;var u=im(e);if(u){if(l=IN(e),!t)return DN(e,l)}else{var c=fi(e),f=c==Vh||c==cv;if(BN(e))return wN(e,t);if(c==Qh||c==Yh||f&&!s){if(Iv(e))return s?e:{};if(l=AN(f?{}:e),!t)return CN(e,hN(l,e))}else{if(!Pe[c])return s?e:{};l=MN(e,c,rm,t)}}a||(a=new zo);var p=a.get(e);if(p)return p;if(a.set(e,l),!u)var h=r?ON(e):om(e);return OP(h||e,function(m,d){h&&(d=m,m=e[d]),$v(l,d,rm(m,t,r,n,d,e,a))}),l}i(rm,"baseClone");function mN(e){return Wc(e)?LP(e):{}}i(mN,"baseCreate");function dN(e,t,r){var n=t(e);return im(e)?n:IP(n,r(e))}i(dN,"baseGetAllKeys");function gN(e){return zc.call(e)}i(gN,"baseGetTag");function xN(e){if(!Wc(e)||NN(e))return!1;var t=Yv(e)||Iv(e)?NP:vP;return t.test(pi(e))}i(xN,"baseIsNative");function yN(e){if(!Uv(e))return $P(e);var t=[];for(var r in Object(e))En.call(e,r)&&r!="constructor"&&t.push(r);return t}i(yN,"baseKeys");function wN(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}i(wN,"cloneBuffer");function nm(e){var t=new e.constructor(e.byteLength);return new Lv(t).set(new Lv(e)),t}i(nm,"cloneArrayBuffer");function bN(e,t){var r=t?nm(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}i(bN,"cloneDataView");function vN(e,t,r){var n=t?r(Av(e),!0):Av(e);return Ov(n,DP,new e.constructor)}i(vN,"cloneMap");function kN(e){var t=new e.constructor(e.source,bP.exec(e));return t.lastIndex=e.lastIndex,t}i(kN,"cloneRegExp");function SN(e,t,r){var n=t?r(Mv(e),!0):Mv(e);return Ov(n,CP,new e.constructor)}i(SN,"cloneSet");function TN(e){return zv?Object(zv.call(e)):{}}i(TN,"cloneSymbol");function EN(e,t){var r=t?nm(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}i(EN,"cloneTypedArray");function DN(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}i(DN,"copyArray");function Hv(e,t,r,n){r||(r={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=n?n(r[a],e[a],a,r,e):void 0;$v(r,a,l===void 0?e[a]:l)}return r}i(Hv,"copyObject");function CN(e,t){return Hv(e,Wv(e),t)}i(CN,"copySymbols");function ON(e){return dN(e,om,Wv)}i(ON,"getAllKeys");function Hc(e,t){var r=e.__data__;return PN(t)?r[typeof t=="string"?"string":"hash"]:r.map}i(Hc,"getMapData");function $o(e,t){var r=MP(e,t);return xN(r)?r:void 0}i($o,"getNative");var Wv=Rv?Jh(Rv,Object):HN,fi=gN;(Zh&&fi(new Zh(new ArrayBuffer(1)))!=Rc||ra&&fi(new ra)!=Fc||Kh&&fi(Kh.resolve())!=pv||em&&fi(new em)!=Lc||tm&&fi(new tm)!=Gh)&&(fi=i(function(e){var t=zc.call(e),r=t==Qh?e.constructor:void 0,n=r?pi(r):void 0;if(n)switch(n){case HP:return Rc;case WP:return Fc;case UP:return pv;case jP:return Lc;case qP:return Gh}return t},"getTag"));function IN(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&En.call(e,"index")&&(r.index=e.index,r.input=e.input),r}i(IN,"initCloneArray");function AN(e){return typeof e.constructor=="function"&&!Uv(e)?mN(FP(e)):{}}i(AN,"initCloneObject");function MN(e,t,r,n){var o=e.constructor;switch(t){case gv:return nm(e);case lv:case uv:return new o(+e);case Rc:return bN(e,n);case xv:case yv:case wv:case bv:case vv:case kv:case Sv:case Tv:case Ev:return EN(e,n);case Fc:return vN(e,n,r);case fv:case mv:return new o(e);case hv:return kN(e);case Lc:return SN(e,n,r);case dv:return TN(e)}}i(MN,"initCloneByTag");function _N(e,t){return t=t??av,!!t&&(typeof e=="number"||kP.test(e))&&e>-1&&e%1==0&&e<t}i(_N,"isIndex");function PN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}i(PN,"isKeyable");function NN(e){return!!_v&&_v in e}i(NN,"isMasked");function Uv(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Bc;return e===r}i(Uv,"isPrototype");function pi(e){if(e!=null){try{return Pv.call(e)}catch{}try{return e+""}catch{}}return""}i(pi,"toSource");function FN(e){return rm(e,!0,!0)}i(FN,"cloneDeep");function jv(e,t){return e===t||e!==e&&t!==t}i(jv,"eq");function LN(e){return RN(e)&&En.call(e,"callee")&&(!RP.call(e,"callee")||zc.call(e)==Yh)}i(LN,"isArguments");var im=Array.isArray;function qv(e){return e!=null&&zN(e.length)&&!Yv(e)}i(qv,"isArrayLike");function RN(e){return $N(e)&&qv(e)}i(RN,"isArrayLikeObject");var BN=zP||WN;function Yv(e){var t=Wc(e)?zc.call(e):"";return t==Vh||t==cv}i(Yv,"isFunction");function zN(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=av}i(zN,"isLength");function Wc(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}i(Wc,"isObject");function $N(e){return!!e&&typeof e=="object"}i($N,"isObjectLike");function om(e){return qv(e)?pN(e):yN(e)}i(om,"keys");function HN(){return[]}i(HN,"stubArray");function WN(){return!1}i(WN,"stubFalse"),Ho.exports=FN});var am=ae((DIe,Vv)=>{"use strict";Vv.exports=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var r=typeof t.cycles=="boolean"?t.cycles:!1,n=t.cmp&&(function(s){return function(a){return function(l,u){var c={key:l,value:a[l]},f={key:u,value:a[u]};return s(c,f)}}})(t.cmp),o=[];return i((function s(a){if(a&&a.toJSON&&typeof a.toJSON=="function"&&(a=a.toJSON()),a!==void 0){if(typeof a=="number")return isFinite(a)?""+a:"null";if(typeof a!="object")return JSON.stringify(a);var l,u;if(Array.isArray(a)){for(u="[",l=0;l<a.length;l++)l&&(u+=","),u+=s(a[l])||"null";return u+"]"}if(a===null)return"null";if(o.indexOf(a)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=o.push(a)-1,f=Object.keys(a).sort(n&&n(a));for(u="",l=0;l<f.length;l++){var p=f[l],h=s(a[p]);h&&(u&&(u+=","),u+=JSON.stringify(p)+":"+h)}return o.splice(c,1),"{"+u+"}"}}),"stringify")(e)}});var bi=ae((o_e,wi)=>{"use strict";function Fk(e){return typeof e>"u"||e===null}i(Fk,"isNothing");function pL(e){return typeof e=="object"&&e!==null}i(pL,"isObject");function hL(e){return Array.isArray(e)?e:Fk(e)?[]:[e]}i(hL,"toArray");function mL(e,t){var r,n,o,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)o=s[r],e[o]=t[o];return e}i(mL,"extend");function dL(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}i(dL,"repeat");function gL(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}i(gL,"isNegativeZero"),wi.exports.isNothing=Fk,wi.exports.isObject=pL,wi.exports.toArray=hL,wi.exports.repeat=dL,wi.exports.isNegativeZero=gL,wi.exports.extend=mL});var Vo=ae((a_e,Lk)=>{"use strict";function ha(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}i(ha,"YAMLException"),ha.prototype=Object.create(Error.prototype),ha.prototype.constructor=ha,ha.prototype.toString=i(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString"),Lk.exports=ha});var zk=ae((u_e,Bk)=>{"use strict";var Rk=bi();function Rm(e,t,r,n,o){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=o}i(Rm,"Mark"),Rm.prototype.getSnippet=i(function(t,r){var n,o,s,a,l;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",o=this.position;o>0&&`\0\r
1
+ var YC=Object.create;var al=Object.defineProperty;var VC=Object.getOwnPropertyDescriptor;var QC=Object.getOwnPropertyNames;var GC=Object.getPrototypeOf,JC=Object.prototype.hasOwnProperty;var i=(e,t)=>al(e,"name",{value:t,configurable:!0}),ll=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var ae=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),se=(e,t)=>{for(var r in t)al(e,r,{get:t[r],enumerable:!0})},KC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of QC(t))!JC.call(e,o)&&o!==r&&al(e,o,{get:()=>t[o],enumerable:!(n=VC(t,o))||n.enumerable});return e};var It=(e,t,r)=>(r=e!=null?YC(GC(e)):{},KC(t||!e||!e.__esModule?al(r,"default",{value:e,enumerable:!0}):r,e));var $p=ae(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0}),pl.uni=void 0;var sI=i((e="uni")=>`${e}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}`,"uni");pl.uni=sI});var A0=ae((kh,Sh)=>{(function(e,t){typeof kh=="object"&&typeof Sh<"u"?Sh.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(kh,(function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",s="minute",a="hour",l="day",u="week",c="month",f="quarter",p="year",h="date",m="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,x={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:i(function(W){var M=["th","st","nd","rd"],N=W%100;return"["+W+(M[(N-20)%10]||M[N]||M[0])+"]"},"ordinal")},b=i(function(W,M,N){var L=String(W);return!L||L.length>=M?W:""+Array(M+1-L.length).join(N)+W},"m"),T={s:b,z:i(function(W){var M=-W.utcOffset(),N=Math.abs(M),L=Math.floor(N/60),B=N%60;return(M<=0?"+":"-")+b(L,2,"0")+":"+b(B,2,"0")},"z"),m:i(function W(M,N){if(M.date()<N.date())return-W(N,M);var L=12*(N.year()-M.year())+(N.month()-M.month()),B=M.clone().add(L,c),V=N-B<0,K=M.clone().add(L+(V?-1:1),c);return+(-(L+(N-B)/(V?B-K:K-B))||0)},"t"),a:i(function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},"a"),p:i(function(W){return{M:c,y:p,w:u,d:l,D:h,h:a,m:s,s:o,ms:n,Q:f}[W]||String(W||"").toLowerCase().replace(/s$/,"")},"p"),u:i(function(W){return W===void 0},"u")},D="en",q={};q[D]=x;var H="$isDayjsObject",I=i(function(W){return W instanceof A||!(!W||!W[H])},"S"),$=i(function W(M,N,L){var B;if(!M)return D;if(typeof M=="string"){var V=M.toLowerCase();q[V]&&(B=V),N&&(q[V]=N,B=V);var K=M.split("-");if(!B&&K.length>1)return W(K[0])}else{var ue=M.name;q[ue]=M,B=ue}return!L&&B&&(D=B),B||!L&&D},"t"),Z=i(function(W,M){if(I(W))return W.clone();var N=typeof M=="object"?M:{};return N.date=W,N.args=arguments,new A(N)},"O"),Y=T;Y.l=$,Y.i=I,Y.w=function(W,M){return Z(W,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var A=(function(){function W(N){this.$L=$(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[H]=!0}i(W,"M");var M=W.prototype;return M.parse=function(N){this.$d=(function(L){var B=L.date,V=L.utc;if(B===null)return new Date(NaN);if(Y.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var K=B.match(d);if(K){var ue=K[2]-1||0,w=(K[7]||"0").substring(0,3);return V?new Date(Date.UTC(K[1],ue,K[3]||1,K[4]||0,K[5]||0,K[6]||0,w)):new Date(K[1],ue,K[3]||1,K[4]||0,K[5]||0,K[6]||0,w)}}return new Date(B)})(N),this.init()},M.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},M.$utils=function(){return Y},M.isValid=function(){return this.$d.toString()!==m},M.isSame=function(N,L){var B=Z(N);return this.startOf(L)<=B&&B<=this.endOf(L)},M.isAfter=function(N,L){return Z(N)<this.startOf(L)},M.isBefore=function(N,L){return this.endOf(L)<Z(N)},M.$g=function(N,L,B){return Y.u(N)?this[L]:this.set(B,N)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(N,L){var B=this,V=!!Y.u(L)||L,K=Y.p(N),ue=i(function(E,k){var C=Y.w(B.$u?Date.UTC(B.$y,k,E):new Date(B.$y,k,E),B);return V?C:C.endOf(l)},"l"),w=i(function(E,k){return Y.w(B.toDate()[E].apply(B.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(k)),B)},"$"),ge=this.$W,be=this.$M,S=this.$D,Pe="set"+(this.$u?"UTC":"");switch(K){case p:return V?ue(1,0):ue(31,11);case c:return V?ue(1,be):ue(0,be+1);case u:var We=this.$locale().weekStart||0,Lt=(ge<We?ge+7:ge)-We;return ue(V?S-Lt:S+(6-Lt),be);case l:case h:return w(Pe+"Hours",0);case a:return w(Pe+"Minutes",1);case s:return w(Pe+"Seconds",2);case o:return w(Pe+"Milliseconds",3);default:return this.clone()}},M.endOf=function(N){return this.startOf(N,!1)},M.$set=function(N,L){var B,V=Y.p(N),K="set"+(this.$u?"UTC":""),ue=(B={},B[l]=K+"Date",B[h]=K+"Date",B[c]=K+"Month",B[p]=K+"FullYear",B[a]=K+"Hours",B[s]=K+"Minutes",B[o]=K+"Seconds",B[n]=K+"Milliseconds",B)[V],w=V===l?this.$D+(L-this.$W):L;if(V===c||V===p){var ge=this.clone().set(h,1);ge.$d[ue](w),ge.init(),this.$d=ge.set(h,Math.min(this.$D,ge.daysInMonth())).$d}else ue&&this.$d[ue](w);return this.init(),this},M.set=function(N,L){return this.clone().$set(N,L)},M.get=function(N){return this[Y.p(N)]()},M.add=function(N,L){var B,V=this;N=Number(N);var K=Y.p(L),ue=i(function(be){var S=Z(V);return Y.w(S.date(S.date()+Math.round(be*N)),V)},"y");if(K===c)return this.set(c,this.$M+N);if(K===p)return this.set(p,this.$y+N);if(K===l)return ue(1);if(K===u)return ue(7);var w=(B={},B[s]=t,B[a]=r,B[o]=e,B)[K]||1,ge=this.$d.getTime()+N*w;return Y.w(ge,this)},M.subtract=function(N,L){return this.add(-1*N,L)},M.format=function(N){var L=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var V=N||"YYYY-MM-DDTHH:mm:ssZ",K=Y.z(this),ue=this.$H,w=this.$m,ge=this.$M,be=B.weekdays,S=B.months,Pe=B.meridiem,We=i(function(k,C,O,F){return k&&(k[C]||k(L,V))||O[C].slice(0,F)},"h"),Lt=i(function(k){return Y.s(ue%12||12,k,"0")},"d"),E=Pe||function(k,C,O){var F=k<12?"AM":"PM";return O?F.toLowerCase():F};return V.replace(g,(function(k,C){return C||(function(O){switch(O){case"YY":return String(L.$y).slice(-2);case"YYYY":return Y.s(L.$y,4,"0");case"M":return ge+1;case"MM":return Y.s(ge+1,2,"0");case"MMM":return We(B.monthsShort,ge,S,3);case"MMMM":return We(S,ge);case"D":return L.$D;case"DD":return Y.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return We(B.weekdaysMin,L.$W,be,2);case"ddd":return We(B.weekdaysShort,L.$W,be,3);case"dddd":return be[L.$W];case"H":return String(ue);case"HH":return Y.s(ue,2,"0");case"h":return Lt(1);case"hh":return Lt(2);case"a":return E(ue,w,!0);case"A":return E(ue,w,!1);case"m":return String(w);case"mm":return Y.s(w,2,"0");case"s":return String(L.$s);case"ss":return Y.s(L.$s,2,"0");case"SSS":return Y.s(L.$ms,3,"0");case"Z":return K}return null})(k)||K.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(N,L,B){var V,K=this,ue=Y.p(L),w=Z(N),ge=(w.utcOffset()-this.utcOffset())*t,be=this-w,S=i(function(){return Y.m(K,w)},"D");switch(ue){case p:V=S()/12;break;case c:V=S();break;case f:V=S()/3;break;case u:V=(be-ge)/6048e5;break;case l:V=(be-ge)/864e5;break;case a:V=be/r;break;case s:V=be/t;break;case o:V=be/e;break;default:V=be}return B?V:Y.a(V)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return q[this.$L]},M.locale=function(N,L){if(!N)return this.$L;var B=this.clone(),V=$(N,L,!0);return V&&(B.$L=V),B},M.clone=function(){return Y.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},W})(),De=A.prototype;return Z.prototype=De,[["$ms",n],["$s",o],["$m",s],["$H",a],["$W",l],["$M",c],["$y",p],["$D",h]].forEach((function(W){De[W[1]]=function(M){return this.$g(M,W[0],W[1])}})),Z.extend=function(W,M){return W.$i||(W(M,A,Z),W.$i=!0),Z},Z.locale=$,Z.isDayjs=I,Z.unix=function(W){return Z(1e3*W)},Z.en=q[D],Z.Ls=q,Z.p={},Z}))});var M0=ae((Th,Eh)=>{(function(e,t){typeof Th=="object"&&typeof Eh<"u"?Eh.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(Th,(function(){"use strict";return function(e,t,r){t.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}}))});var F0=ae((PCe,P0)=>{"use strict";P0.exports=class{static{i(this,"SymbolTreeNode")}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(t){return this.cachedIndexVersion!==t.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(t,r){this.cachedIndexVersion=t.childrenVersion,this.cachedIndex=r}}});var R0=ae((LCe,L0)=>{"use strict";L0.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var U0=ae((RCe,H0)=>{"use strict";var B0=Symbol(),z0=Symbol(),bn=Symbol(),$0=Symbol(),ir=class{static{i(this,"TreeIterator")}constructor(t,r,n,o){this[B0]=t,this[z0]=r,this[bn]=n,this[$0]=o}next(){let t=this[B0],r=this[$0],n=this[z0];if(!this[bn])return{done:!0,value:n};let o=this[bn];return r===1?this[bn]=t._node(o).previousSibling:r===2?this[bn]=t._node(o).nextSibling:r===3?this[bn]=t._node(o).parent:r===4?this[bn]=t.preceding(o,{root:n}):this[bn]=t.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(ir.prototype,Symbol.iterator,{value:i(function(){return this},"value"),writable:!1}),ir.PREV=1,ir.NEXT=2,ir.PARENT=3,ir.PRECEDING=4,ir.FOLLOWING=5,Object.freeze(ir),Object.freeze(ir.prototype),H0.exports=ir});var j0=ae((zCe,W0)=>{"use strict";var T_=F0(),vn=R0(),Jt=U0();function Nh(){return!0}i(Nh,"returnTrue");function Po(e,t){return e[e.length-1-t]}i(Po,"reverseArrayIndex");var Dc=class{static{i(this,"SymbolTree")}constructor(t){this.symbol=Symbol(t||"SymbolTree data")}initialize(t){return this._node(t),t}_node(t){if(!t)return null;let r=t[this.symbol];return r||(t[this.symbol]=new T_)}hasChildren(t){return this._node(t).hasChildren}firstChild(t){return this._node(t).firstChild}lastChild(t){return this._node(t).lastChild}previousSibling(t){return this._node(t).previousSibling}nextSibling(t){return this._node(t).nextSibling}parent(t){return this._node(t).parent}lastInclusiveDescendant(t){let r,n=t;for(;r=this._node(n).lastChild;)n=r;return n}preceding(t,r){let n=r&&r.root;if(t===n)return null;let o=this._node(t).previousSibling;return o?this.lastInclusiveDescendant(o):this._node(t).parent}following(t,r){let n=r&&r.root,s=!(r&&r.skipChildren)&&this._node(t).firstChild;if(s)return s;let a=t;do{if(a===n)return null;let l=this._node(a).nextSibling;if(l)return l;a=this._node(a).parent}while(a);return null}childrenToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||Nh,s=r&&r.thisArg||void 0,a=this._node(t),l=a.firstChild,u=0;for(;l;){let c=this._node(l);c.setCachedIndex(a,u),o.call(s,l)&&n.push(l),l=c.nextSibling,++u}return n}ancestorsToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||Nh,s=r&&r.thisArg||void 0,a=t;for(;a;)o.call(s,a)&&n.push(a),a=this._node(a).parent;return n}treeToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||Nh,s=r&&r.thisArg||void 0,a=t;for(;a;)o.call(s,a)&&n.push(a),a=this.following(a,{root:t});return n}childrenIterator(t,r){let n=r&&r.reverse,o=this._node(t);return new Jt(this,t,n?o.lastChild:o.firstChild,n?Jt.PREV:Jt.NEXT)}previousSiblingsIterator(t){return new Jt(this,t,this._node(t).previousSibling,Jt.PREV)}nextSiblingsIterator(t){return new Jt(this,t,this._node(t).nextSibling,Jt.NEXT)}ancestorsIterator(t){return new Jt(this,t,t,Jt.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new Jt(this,t,n?this.lastInclusiveDescendant(t):t,n?Jt.PRECEDING:Jt.FOLLOWING)}index(t){let r=this._node(t),n=this._node(r.parent);if(!n)return-1;let o=r.getCachedIndex(n);if(o>=0)return o;o=0;let s=n.firstChild;if(n.childIndexCachedUpTo){let a=this._node(n.childIndexCachedUpTo);s=a.nextSibling,o=a.getCachedIndex(n)+1}for(;s;){let a=this._node(s);if(a.setCachedIndex(n,o),s===t)break;++o,s=a.nextSibling}return n.childIndexCachedUpTo=t,o}childrenCount(t){let r=this._node(t);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(t,r){if(t===r)return 0;let n=[];{let f=t;for(;f;){if(f===r)return vn.CONTAINS|vn.PRECEDING;n.push(f),f=this.parent(f)}}let o=[];{let f=r;for(;f;){if(f===t)return vn.CONTAINED_BY|vn.FOLLOWING;o.push(f),f=this.parent(f)}}let s=Po(n,0);if(!s||s!==Po(o,0))return vn.DISCONNECTED;let a=0,l=Math.min(n.length,o.length);for(let f=0;f<l;++f){let p=Po(n,f),h=Po(o,f);if(p!==h)break;a=f}let u=this.index(Po(n,a+1));return this.index(Po(o,a+1))<u?vn.PRECEDING:vn.FOLLOWING}remove(t){let r=this._node(t),n=this._node(r.parent),o=this._node(r.previousSibling),s=this._node(r.nextSibling);return n&&(n.firstChild===t&&(n.firstChild=r.nextSibling),n.lastChild===t&&(n.lastChild=r.previousSibling)),o&&(o.nextSibling=r.nextSibling),s&&(s.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,n&&n.childrenChanged(),t}insertBefore(t,r){let n=this._node(t),o=this._node(n.previousSibling),s=this._node(r),a=this._node(n.parent);if(s.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return s.parent=n.parent,s.previousSibling=n.previousSibling,s.nextSibling=t,n.previousSibling=r,o&&(o.nextSibling=r),a&&a.firstChild===t&&(a.firstChild=r),a&&a.childrenChanged(),r}insertAfter(t,r){let n=this._node(t),o=this._node(n.nextSibling),s=this._node(r),a=this._node(n.parent);if(s.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return s.parent=n.parent,s.previousSibling=t,s.nextSibling=n.nextSibling,n.nextSibling=r,o&&(o.previousSibling=r),a&&a.lastChild===t&&(a.lastChild=r),a&&a.childrenChanged(),r}prependChild(t,r){let n=this._node(t),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(o.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(t,r){let n=this._node(t),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(o.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};W0.exports=Dc,Dc.TreePosition=vn});var sm=ae((oa,Ho)=>{var mN=200,iv="__lodash_hash_undefined__",ov=9007199254740991,Yh="[object Arguments]",dN="[object Array]",sv="[object Boolean]",av="[object Date]",gN="[object Error]",Vh="[object Function]",lv="[object GeneratorFunction]",Lc="[object Map]",uv="[object Number]",Qh="[object Object]",cv="[object Promise]",fv="[object RegExp]",Rc="[object Set]",pv="[object String]",hv="[object Symbol]",Gh="[object WeakMap]",mv="[object ArrayBuffer]",Bc="[object DataView]",dv="[object Float32Array]",gv="[object Float64Array]",xv="[object Int8Array]",yv="[object Int16Array]",wv="[object Int32Array]",bv="[object Uint8Array]",vv="[object Uint8ClampedArray]",kv="[object Uint16Array]",Sv="[object Uint32Array]",xN=/[\\^$.*+?()[\]{}|]/g,yN=/\w*$/,wN=/^\[object .+?Constructor\]$/,bN=/^(?:0|[1-9]\d*)$/,Ne={};Ne[Yh]=Ne[dN]=Ne[mv]=Ne[Bc]=Ne[sv]=Ne[av]=Ne[dv]=Ne[gv]=Ne[xv]=Ne[yv]=Ne[wv]=Ne[Lc]=Ne[uv]=Ne[Qh]=Ne[fv]=Ne[Rc]=Ne[pv]=Ne[hv]=Ne[bv]=Ne[vv]=Ne[kv]=Ne[Sv]=!0,Ne[gN]=Ne[Vh]=Ne[Gh]=!1;var vN=typeof global=="object"&&global&&global.Object===Object&&global,kN=typeof self=="object"&&self&&self.Object===Object&&self,Vr=vN||kN||Function("return this")(),Tv=typeof oa=="object"&&oa&&!oa.nodeType&&oa,Ev=Tv&&typeof Ho=="object"&&Ho&&!Ho.nodeType&&Ho,SN=Ev&&Ev.exports===Tv;function TN(e,t){return e.set(t[0],t[1]),e}i(TN,"addMapEntry");function EN(e,t){return e.add(t),e}i(EN,"addSetEntry");function DN(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}i(DN,"arrayEach");function CN(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}i(CN,"arrayPush");function Dv(e,t,r,n){var o=-1,s=e?e.length:0;for(n&&s&&(r=e[++o]);++o<s;)r=t(r,e[o],o,e);return r}i(Dv,"arrayReduce");function IN(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}i(IN,"baseTimes");function ON(e,t){return e?.[t]}i(ON,"getValue");function Cv(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}i(Cv,"isHostObject");function Iv(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}i(Iv,"mapToArray");function Jh(e,t){return function(r){return e(t(r))}}i(Jh,"overArg");function Ov(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}i(Ov,"setToArray");var AN=Array.prototype,MN=Function.prototype,zc=Object.prototype,Kh=Vr["__core-js_shared__"],Av=(function(){var e=/[^.]+$/.exec(Kh&&Kh.keys&&Kh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Mv=MN.toString,En=zc.hasOwnProperty,$c=zc.toString,_N=RegExp("^"+Mv.call(En).replace(xN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_v=SN?Vr.Buffer:void 0,Nv=Vr.Symbol,Pv=Vr.Uint8Array,NN=Jh(Object.getPrototypeOf,Object),PN=Object.create,FN=zc.propertyIsEnumerable,LN=AN.splice,Fv=Object.getOwnPropertySymbols,RN=_v?_v.isBuffer:void 0,BN=Jh(Object.keys,Object),Xh=$o(Vr,"DataView"),na=$o(Vr,"Map"),Zh=$o(Vr,"Promise"),em=$o(Vr,"Set"),tm=$o(Vr,"WeakMap"),ia=$o(Object,"create"),zN=ui(Xh),$N=ui(na),HN=ui(Zh),UN=ui(em),WN=ui(tm),Lv=Nv?Nv.prototype:void 0,Rv=Lv?Lv.valueOf:void 0;function ai(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(ai,"Hash");function jN(){this.__data__=ia?ia(null):{}}i(jN,"hashClear");function qN(e){return this.has(e)&&delete this.__data__[e]}i(qN,"hashDelete");function YN(e){var t=this.__data__;if(ia){var r=t[e];return r===iv?void 0:r}return En.call(t,e)?t[e]:void 0}i(YN,"hashGet");function VN(e){var t=this.__data__;return ia?t[e]!==void 0:En.call(t,e)}i(VN,"hashHas");function QN(e,t){var r=this.__data__;return r[e]=ia&&t===void 0?iv:t,this}i(QN,"hashSet"),ai.prototype.clear=jN,ai.prototype.delete=qN,ai.prototype.get=YN,ai.prototype.has=VN,ai.prototype.set=QN;function Qr(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Qr,"ListCache");function GN(){this.__data__=[]}i(GN,"listCacheClear");function JN(e){var t=this.__data__,r=Hc(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():LN.call(t,r,1),!0}i(JN,"listCacheDelete");function KN(e){var t=this.__data__,r=Hc(t,e);return r<0?void 0:t[r][1]}i(KN,"listCacheGet");function XN(e){return Hc(this.__data__,e)>-1}i(XN,"listCacheHas");function ZN(e,t){var r=this.__data__,n=Hc(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}i(ZN,"listCacheSet"),Qr.prototype.clear=GN,Qr.prototype.delete=JN,Qr.prototype.get=KN,Qr.prototype.has=XN,Qr.prototype.set=ZN;function Bo(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}i(Bo,"MapCache");function eP(){this.__data__={hash:new ai,map:new(na||Qr),string:new ai}}i(eP,"mapCacheClear");function tP(e){return Uc(this,e).delete(e)}i(tP,"mapCacheDelete");function rP(e){return Uc(this,e).get(e)}i(rP,"mapCacheGet");function nP(e){return Uc(this,e).has(e)}i(nP,"mapCacheHas");function iP(e,t){return Uc(this,e).set(e,t),this}i(iP,"mapCacheSet"),Bo.prototype.clear=eP,Bo.prototype.delete=tP,Bo.prototype.get=rP,Bo.prototype.has=nP,Bo.prototype.set=iP;function zo(e){this.__data__=new Qr(e)}i(zo,"Stack");function oP(){this.__data__=new Qr}i(oP,"stackClear");function sP(e){return this.__data__.delete(e)}i(sP,"stackDelete");function aP(e){return this.__data__.get(e)}i(aP,"stackGet");function lP(e){return this.__data__.has(e)}i(lP,"stackHas");function uP(e,t){var r=this.__data__;if(r instanceof Qr){var n=r.__data__;if(!na||n.length<mN-1)return n.push([e,t]),this;r=this.__data__=new Bo(n)}return r.set(e,t),this}i(uP,"stackSet"),zo.prototype.clear=oP,zo.prototype.delete=sP,zo.prototype.get=aP,zo.prototype.has=lP,zo.prototype.set=uP;function cP(e,t){var r=im(e)||PP(e)?IN(e.length,String):[],n=r.length,o=!!n;for(var s in e)(t||En.call(e,s))&&!(o&&(s=="length"||AP(s,n)))&&r.push(s);return r}i(cP,"arrayLikeKeys");function Bv(e,t,r){var n=e[t];(!(En.call(e,t)&&Uv(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}i(Bv,"assignValue");function Hc(e,t){for(var r=e.length;r--;)if(Uv(e[r][0],t))return r;return-1}i(Hc,"assocIndexOf");function fP(e,t){return e&&zv(t,om(t),e)}i(fP,"baseAssign");function rm(e,t,r,n,o,s,a){var l;if(n&&(l=s?n(e,o,s,a):n(e)),l!==void 0)return l;if(!Wc(e))return e;var u=im(e);if(u){if(l=CP(e),!t)return TP(e,l)}else{var c=li(e),f=c==Vh||c==lv;if(LP(e))return xP(e,t);if(c==Qh||c==Yh||f&&!s){if(Cv(e))return s?e:{};if(l=IP(f?{}:e),!t)return EP(e,fP(l,e))}else{if(!Ne[c])return s?e:{};l=OP(e,c,rm,t)}}a||(a=new zo);var p=a.get(e);if(p)return p;if(a.set(e,l),!u)var h=r?DP(e):om(e);return DN(h||e,function(m,d){h&&(d=m,m=e[d]),Bv(l,d,rm(m,t,r,n,d,e,a))}),l}i(rm,"baseClone");function pP(e){return Wc(e)?PN(e):{}}i(pP,"baseCreate");function hP(e,t,r){var n=t(e);return im(e)?n:CN(n,r(e))}i(hP,"baseGetAllKeys");function mP(e){return $c.call(e)}i(mP,"baseGetTag");function dP(e){if(!Wc(e)||_P(e))return!1;var t=jv(e)||Cv(e)?_N:wN;return t.test(ui(e))}i(dP,"baseIsNative");function gP(e){if(!Hv(e))return BN(e);var t=[];for(var r in Object(e))En.call(e,r)&&r!="constructor"&&t.push(r);return t}i(gP,"baseKeys");function xP(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}i(xP,"cloneBuffer");function nm(e){var t=new e.constructor(e.byteLength);return new Pv(t).set(new Pv(e)),t}i(nm,"cloneArrayBuffer");function yP(e,t){var r=t?nm(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}i(yP,"cloneDataView");function wP(e,t,r){var n=t?r(Iv(e),!0):Iv(e);return Dv(n,TN,new e.constructor)}i(wP,"cloneMap");function bP(e){var t=new e.constructor(e.source,yN.exec(e));return t.lastIndex=e.lastIndex,t}i(bP,"cloneRegExp");function vP(e,t,r){var n=t?r(Ov(e),!0):Ov(e);return Dv(n,EN,new e.constructor)}i(vP,"cloneSet");function kP(e){return Rv?Object(Rv.call(e)):{}}i(kP,"cloneSymbol");function SP(e,t){var r=t?nm(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}i(SP,"cloneTypedArray");function TP(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}i(TP,"copyArray");function zv(e,t,r,n){r||(r={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=n?n(r[a],e[a],a,r,e):void 0;Bv(r,a,l===void 0?e[a]:l)}return r}i(zv,"copyObject");function EP(e,t){return zv(e,$v(e),t)}i(EP,"copySymbols");function DP(e){return hP(e,om,$v)}i(DP,"getAllKeys");function Uc(e,t){var r=e.__data__;return MP(t)?r[typeof t=="string"?"string":"hash"]:r.map}i(Uc,"getMapData");function $o(e,t){var r=ON(e,t);return dP(r)?r:void 0}i($o,"getNative");var $v=Fv?Jh(Fv,Object):zP,li=mP;(Xh&&li(new Xh(new ArrayBuffer(1)))!=Bc||na&&li(new na)!=Lc||Zh&&li(Zh.resolve())!=cv||em&&li(new em)!=Rc||tm&&li(new tm)!=Gh)&&(li=i(function(e){var t=$c.call(e),r=t==Qh?e.constructor:void 0,n=r?ui(r):void 0;if(n)switch(n){case zN:return Bc;case $N:return Lc;case HN:return cv;case UN:return Rc;case WN:return Gh}return t},"getTag"));function CP(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&En.call(e,"index")&&(r.index=e.index,r.input=e.input),r}i(CP,"initCloneArray");function IP(e){return typeof e.constructor=="function"&&!Hv(e)?pP(NN(e)):{}}i(IP,"initCloneObject");function OP(e,t,r,n){var o=e.constructor;switch(t){case mv:return nm(e);case sv:case av:return new o(+e);case Bc:return yP(e,n);case dv:case gv:case xv:case yv:case wv:case bv:case vv:case kv:case Sv:return SP(e,n);case Lc:return wP(e,n,r);case uv:case pv:return new o(e);case fv:return bP(e);case Rc:return vP(e,n,r);case hv:return kP(e)}}i(OP,"initCloneByTag");function AP(e,t){return t=t??ov,!!t&&(typeof e=="number"||bN.test(e))&&e>-1&&e%1==0&&e<t}i(AP,"isIndex");function MP(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}i(MP,"isKeyable");function _P(e){return!!Av&&Av in e}i(_P,"isMasked");function Hv(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||zc;return e===r}i(Hv,"isPrototype");function ui(e){if(e!=null){try{return Mv.call(e)}catch{}try{return e+""}catch{}}return""}i(ui,"toSource");function NP(e){return rm(e,!0,!0)}i(NP,"cloneDeep");function Uv(e,t){return e===t||e!==e&&t!==t}i(Uv,"eq");function PP(e){return FP(e)&&En.call(e,"callee")&&(!FN.call(e,"callee")||$c.call(e)==Yh)}i(PP,"isArguments");var im=Array.isArray;function Wv(e){return e!=null&&RP(e.length)&&!jv(e)}i(Wv,"isArrayLike");function FP(e){return BP(e)&&Wv(e)}i(FP,"isArrayLikeObject");var LP=RN||$P;function jv(e){var t=Wc(e)?$c.call(e):"";return t==Vh||t==lv}i(jv,"isFunction");function RP(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ov}i(RP,"isLength");function Wc(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}i(Wc,"isObject");function BP(e){return!!e&&typeof e=="object"}i(BP,"isObjectLike");function om(e){return Wv(e)?cP(e):gP(e)}i(om,"keys");function zP(){return[]}i(zP,"stubArray");function $P(){return!1}i($P,"stubFalse"),Ho.exports=NP});var am=ae((EOe,qv)=>{"use strict";qv.exports=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var r=typeof t.cycles=="boolean"?t.cycles:!1,n=t.cmp&&(function(s){return function(a){return function(l,u){var c={key:l,value:a[l]},f={key:u,value:a[u]};return s(c,f)}}})(t.cmp),o=[];return i((function s(a){if(a&&a.toJSON&&typeof a.toJSON=="function"&&(a=a.toJSON()),a!==void 0){if(typeof a=="number")return isFinite(a)?""+a:"null";if(typeof a!="object")return JSON.stringify(a);var l,u;if(Array.isArray(a)){for(u="[",l=0;l<a.length;l++)l&&(u+=","),u+=s(a[l])||"null";return u+"]"}if(a===null)return"null";if(o.indexOf(a)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=o.push(a)-1,f=Object.keys(a).sort(n&&n(a));for(u="",l=0;l<f.length;l++){var p=f[l],h=s(a[p]);h&&(u&&(u+=","),u+=JSON.stringify(p)+":"+h)}return o.splice(c,1),"{"+u+"}"}}),"stringify")(e)}});var xi=ae((i_e,gi)=>{"use strict";function Nk(e){return typeof e>"u"||e===null}i(Nk,"isNothing");function cL(e){return typeof e=="object"&&e!==null}i(cL,"isObject");function fL(e){return Array.isArray(e)?e:Nk(e)?[]:[e]}i(fL,"toArray");function pL(e,t){var r,n,o,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)o=s[r],e[o]=t[o];return e}i(pL,"extend");function hL(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}i(hL,"repeat");function mL(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}i(mL,"isNegativeZero"),gi.exports.isNothing=Nk,gi.exports.isObject=cL,gi.exports.toArray=fL,gi.exports.repeat=hL,gi.exports.isNegativeZero=mL,gi.exports.extend=pL});var Vo=ae((s_e,Pk)=>{"use strict";function ma(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}i(ma,"YAMLException"),ma.prototype=Object.create(Error.prototype),ma.prototype.constructor=ma,ma.prototype.toString=i(function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},"toString"),Pk.exports=ma});var Rk=ae((l_e,Lk)=>{"use strict";var Fk=xi();function Rm(e,t,r,n,o){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=o}i(Rm,"Mark"),Rm.prototype.getSnippet=i(function(t,r){var n,o,s,a,l;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",o=this.position;o>0&&`\0\r
2
2
  \x85\u2028\u2029`.indexOf(this.buffer.charAt(o-1))===-1;)if(o-=1,this.position-o>r/2-1){n=" ... ",o+=5;break}for(s="",a=this.position;a<this.buffer.length&&`\0\r
3
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return l=this.buffer.slice(o,a),Rk.repeat(" ",t)+n+l+s+`
4
- `+Rk.repeat(" ",t+this.position-o+n.length)+"^"},"getSnippet"),Rm.prototype.toString=i(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
5
- `+r)),n},"toString"),Bk.exports=Rm});var Ke=ae((f_e,Hk)=>{"use strict";var $k=Vo(),xL=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],yL=["scalar","sequence","mapping"];function wL(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}i(wL,"compileStyleAliases");function bL(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(xL.indexOf(r)===-1)throw new $k('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=wL(t.styleAliases||null),yL.indexOf(this.kind)===-1)throw new $k('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}i(bL,"Type"),Hk.exports=bL});var vi=ae((h_e,Uk)=>{"use strict";var Wk=bi(),of=Vo(),vL=Ke();function Bm(e,t,r){var n=[];return e.include.forEach(function(o){r=Bm(o,t,r)}),e[t].forEach(function(o){r.forEach(function(s,a){s.tag===o.tag&&s.kind===o.kind&&n.push(a)}),r.push(o)}),r.filter(function(o,s){return n.indexOf(s)===-1})}i(Bm,"compileList");function kL(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(o){e[o.kind][o.tag]=e.fallback[o.tag]=o}for(i(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}i(kL,"compileMap");function Qo(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new of("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Bm(this,"implicit",[]),this.compiledExplicit=Bm(this,"explicit",[]),this.compiledTypeMap=kL(this.compiledImplicit,this.compiledExplicit)}i(Qo,"Schema"),Qo.DEFAULT=null,Qo.create=i(function(){var t,r;switch(arguments.length){case 1:t=Qo.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new of("Wrong number of arguments for Schema.create function")}if(t=Wk.toArray(t),r=Wk.toArray(r),!t.every(function(n){return n instanceof Qo}))throw new of("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof vL}))throw new of("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Qo({include:t,explicit:r})},"createSchema"),Uk.exports=Qo});var qk=ae((d_e,jk)=>{"use strict";var SL=Ke();jk.exports=new SL("tag:yaml.org,2002:str",{kind:"scalar",construct:i(function(e){return e!==null?e:""},"construct")})});var Vk=ae((x_e,Yk)=>{"use strict";var TL=Ke();Yk.exports=new TL("tag:yaml.org,2002:seq",{kind:"sequence",construct:i(function(e){return e!==null?e:[]},"construct")})});var Gk=ae((w_e,Qk)=>{"use strict";var EL=Ke();Qk.exports=new EL("tag:yaml.org,2002:map",{kind:"mapping",construct:i(function(e){return e!==null?e:{}},"construct")})});var sf=ae((v_e,Jk)=>{"use strict";var DL=vi();Jk.exports=new DL({explicit:[qk(),Vk(),Gk()]})});var Zk=ae((k_e,Xk)=>{"use strict";var CL=Ke();function OL(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}i(OL,"resolveYamlNull");function IL(){return null}i(IL,"constructYamlNull");function AL(e){return e===null}i(AL,"isNull"),Xk.exports=new CL("tag:yaml.org,2002:null",{kind:"scalar",resolve:OL,construct:IL,predicate:AL,represent:{canonical:i(function(){return"~"},"canonical"),lowercase:i(function(){return"null"},"lowercase"),uppercase:i(function(){return"NULL"},"uppercase"),camelcase:i(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var eS=ae((T_e,Kk)=>{"use strict";var ML=Ke();function _L(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}i(_L,"resolveYamlBoolean");function PL(e){return e==="true"||e==="True"||e==="TRUE"}i(PL,"constructYamlBoolean");function NL(e){return Object.prototype.toString.call(e)==="[object Boolean]"}i(NL,"isBoolean"),Kk.exports=new ML("tag:yaml.org,2002:bool",{kind:"scalar",resolve:_L,construct:PL,predicate:NL,represent:{lowercase:i(function(e){return e?"true":"false"},"lowercase"),uppercase:i(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:i(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var rS=ae((D_e,tS)=>{"use strict";var FL=bi(),LL=Ke();function RL(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}i(RL,"isHexCode");function BL(e){return 48<=e&&e<=55}i(BL,"isOctCode");function zL(e){return 48<=e&&e<=57}i(zL,"isDecCode");function $L(e){if(e===null)return!1;var t=e.length,r=0,n=!1,o;if(!t)return!1;if(o=e[r],(o==="-"||o==="+")&&(o=e[++r]),o==="0"){if(r+1===t)return!0;if(o=e[++r],o==="b"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;n=!0}return n&&o!=="_"}if(o==="x"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(!RL(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}for(;r<t;r++)if(o=e[r],o!=="_"){if(!BL(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}if(o==="_")return!1;for(;r<t;r++)if(o=e[r],o!=="_"){if(o===":")break;if(!zL(e.charCodeAt(r)))return!1;n=!0}return!n||o==="_"?!1:o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}i($L,"resolveYamlInteger");function HL(e){var t=e,r=1,n,o,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),t=0,o=1,s.forEach(function(a){t+=a*o,o*=60}),r*t):r*parseInt(t,10)}i(HL,"constructYamlInteger");function WL(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!FL.isNegativeZero(e)}i(WL,"isInteger"),tS.exports=new LL("tag:yaml.org,2002:int",{kind:"scalar",resolve:$L,construct:HL,predicate:WL,represent:{binary:i(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:i(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:i(function(e){return e.toString(10)},"decimal"),hexadecimal:i(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var oS=ae((O_e,iS)=>{"use strict";var nS=bi(),UL=Ke(),jL=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function qL(e){return!(e===null||!jL.test(e)||e[e.length-1]==="_")}i(qL,"resolveYamlFloat");function YL(e){var t,r,n,o;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,o=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){o.unshift(parseFloat(s,10))}),t=0,n=1,o.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}i(YL,"constructYamlFloat");var VL=/^[-+]?[0-9]+e/;function QL(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(nS.isNegativeZero(e))return"-0.0";return r=e.toString(10),VL.test(r)?r.replace("e",".e"):r}i(QL,"representYamlFloat");function GL(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||nS.isNegativeZero(e))}i(GL,"isFloat"),iS.exports=new UL("tag:yaml.org,2002:float",{kind:"scalar",resolve:qL,construct:YL,predicate:GL,represent:QL,defaultStyle:"lowercase"})});var zm=ae((A_e,sS)=>{"use strict";var JL=vi();sS.exports=new JL({include:[sf()],implicit:[Zk(),eS(),rS(),oS()]})});var $m=ae((M_e,aS)=>{"use strict";var XL=vi();aS.exports=new XL({include:[zm()]})});var fS=ae((__e,cS)=>{"use strict";var ZL=Ke(),lS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),uS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function KL(e){return e===null?!1:lS.exec(e)!==null||uS.exec(e)!==null}i(KL,"resolveYamlTimestamp");function eR(e){var t,r,n,o,s,a,l,u=0,c=null,f,p,h;if(t=lS.exec(e),t===null&&(t=uS.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(s=+t[4],a=+t[5],l=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],p=+(t[11]||0),c=(f*60+p)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,o,s,a,l,u)),c&&h.setTime(h.getTime()-c),h}i(eR,"constructYamlTimestamp");function tR(e){return e.toISOString()}i(tR,"representYamlTimestamp"),cS.exports=new ZL("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:KL,construct:eR,instanceOf:Date,represent:tR})});var hS=ae((N_e,pS)=>{"use strict";var rR=Ke();function nR(e){return e==="<<"||e===null}i(nR,"resolveYamlMerge"),pS.exports=new rR("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nR})});var gS=ae((L_e,dS)=>{"use strict";var ki;try{mS=al,ki=mS("buffer").Buffer}catch{}var iR=Ke(),Hm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
- \r`;function oR(e){if(e===null)return!1;var t,r,n=0,o=e.length,s=Hm;for(r=0;r<o;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}i(oR,"resolveYamlBinary");function sR(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,s=Hm,a=0,l=[];for(t=0;t<o;t++)t%4===0&&t&&(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=o%4*6,r===0?(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)):r===18?(l.push(a>>10&255),l.push(a>>2&255)):r===12&&l.push(a>>4&255),ki?ki.from?ki.from(l):new ki(l):l}i(sR,"constructYamlBinary");function aR(e){var t="",r=0,n,o,s=e.length,a=Hm;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return o=s%3,o===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):o===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):o===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}i(aR,"representYamlBinary");function lR(e){return ki&&ki.isBuffer(e)}i(lR,"isBinary"),dS.exports=new iR("tag:yaml.org,2002:binary",{kind:"scalar",resolve:oR,construct:sR,predicate:lR,represent:aR});var mS});var yS=ae((B_e,xS)=>{"use strict";var uR=Ke(),cR=Object.prototype.hasOwnProperty,fR=Object.prototype.toString;function pR(e){if(e===null)return!0;var t=[],r,n,o,s,a,l=e;for(r=0,n=l.length;r<n;r+=1){if(o=l[r],a=!1,fR.call(o)!=="[object Object]")return!1;for(s in o)if(cR.call(o,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}i(pR,"resolveYamlOmap");function hR(e){return e!==null?e:[]}i(hR,"constructYamlOmap"),xS.exports=new uR("tag:yaml.org,2002:omap",{kind:"sequence",resolve:pR,construct:hR})});var bS=ae(($_e,wS)=>{"use strict";var mR=Ke(),dR=Object.prototype.toString;function gR(e){if(e===null)return!0;var t,r,n,o,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],dR.call(n)!=="[object Object]"||(o=Object.keys(n),o.length!==1))return!1;s[t]=[o[0],n[o[0]]]}return!0}i(gR,"resolveYamlPairs");function xR(e){if(e===null)return[];var t,r,n,o,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],o=Object.keys(n),s[t]=[o[0],n[o[0]]];return s}i(xR,"constructYamlPairs"),wS.exports=new mR("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:gR,construct:xR})});var kS=ae((W_e,vS)=>{"use strict";var yR=Ke(),wR=Object.prototype.hasOwnProperty;function bR(e){if(e===null)return!0;var t,r=e;for(t in r)if(wR.call(r,t)&&r[t]!==null)return!1;return!0}i(bR,"resolveYamlSet");function vR(e){return e!==null?e:{}}i(vR,"constructYamlSet"),vS.exports=new yR("tag:yaml.org,2002:set",{kind:"mapping",resolve:bR,construct:vR})});var Go=ae((j_e,SS)=>{"use strict";var kR=vi();SS.exports=new kR({include:[$m()],implicit:[fS(),hS()],explicit:[gS(),yS(),bS(),kS()]})});var ES=ae((q_e,TS)=>{"use strict";var SR=Ke();function TR(){return!0}i(TR,"resolveJavascriptUndefined");function ER(){}i(ER,"constructJavascriptUndefined");function DR(){return""}i(DR,"representJavascriptUndefined");function CR(e){return typeof e>"u"}i(CR,"isUndefined"),TS.exports=new SR("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:TR,construct:ER,predicate:CR,represent:DR})});var CS=ae((V_e,DS)=>{"use strict";var OR=Ke();function IR(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}i(IR,"resolveJavascriptRegExp");function AR(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}i(AR,"constructJavascriptRegExp");function MR(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}i(MR,"representJavascriptRegExp");function _R(e){return Object.prototype.toString.call(e)==="[object RegExp]"}i(_R,"isRegExp"),DS.exports=new OR("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:IR,construct:AR,predicate:_R,represent:MR})});var AS=ae((G_e,IS)=>{"use strict";var af;try{OS=al,af=OS("esprima")}catch{typeof window<"u"&&(af=window.esprima)}var PR=Ke();function NR(e){if(e===null)return!1;try{var t="("+e+")",r=af.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}i(NR,"resolveJavascriptFunction");function FR(e){var t="("+e+")",r=af.parse(t,{range:!0}),n=[],o;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),o=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(o[0]+1,o[1]-1)):new Function(n,"return "+t.slice(o[0],o[1]))}i(FR,"constructJavascriptFunction");function LR(e){return e.toString()}i(LR,"representJavascriptFunction");function RR(e){return Object.prototype.toString.call(e)==="[object Function]"}i(RR,"isFunction"),IS.exports=new PR("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:NR,construct:FR,predicate:RR,represent:LR});var OS});var ma=ae((X_e,_S)=>{"use strict";var MS=vi();_S.exports=MS.DEFAULT=new MS({include:[Go()],explicit:[ES(),CS(),AS()]})});var ZS=ae((Z_e,da)=>{"use strict";var Jr=bi(),PS=Vo(),BR=zk(),NS=Go(),zR=ma(),Cn=Object.prototype.hasOwnProperty,lf=1,FS=2,LS=3,uf=4,Wm=1,$R=2,RS=3,HR=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,WR=/[\x85\u2028\u2029]/,UR=/[,\[\]\{\}]/,BS=/^(?:!|!!|![a-z\-]+!)$/i,zS=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function $S(e){return Object.prototype.toString.call(e)}i($S,"_class");function Nr(e){return e===10||e===13}i(Nr,"is_EOL");function Si(e){return e===9||e===32}i(Si,"is_WHITE_SPACE");function Nt(e){return e===9||e===32||e===10||e===13}i(Nt,"is_WS_OR_EOL");function Jo(e){return e===44||e===91||e===93||e===123||e===125}i(Jo,"is_FLOW_INDICATOR");function jR(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}i(jR,"fromHexCode");function qR(e){return e===120?2:e===117?4:e===85?8:0}i(qR,"escapedHexLen");function YR(e){return 48<=e&&e<=57?e-48:-1}i(YR,"fromDecimalCode");function HS(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
7
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}i(HS,"simpleEscapeSequence");function VR(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}i(VR,"charFromCodepoint");function WS(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}i(WS,"setProperty");var US=new Array(256),jS=new Array(256);for(Ti=0;Ti<256;Ti++)US[Ti]=HS(Ti)?1:0,jS[Ti]=HS(Ti);function QR(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||zR,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}i(QR,"State");function qS(e,t){return new PS(t,new BR(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}i(qS,"generateError");function oe(e,t){throw qS(e,t)}i(oe,"throwError");function cf(e,t){e.onWarning&&e.onWarning.call(null,qS(e,t))}i(cf,"throwWarning");var YS={YAML:i(function(t,r,n){var o,s,a;t.version!==null&&oe(t,"duplication of %YAML directive"),n.length!==1&&oe(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&oe(t,"ill-formed argument of the YAML directive"),s=parseInt(o[1],10),a=parseInt(o[2],10),s!==1&&oe(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&cf(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:i(function(t,r,n){var o,s;n.length!==2&&oe(t,"TAG directive accepts exactly two arguments"),o=n[0],s=n[1],BS.test(o)||oe(t,"ill-formed tag handle (first argument) of the TAG directive"),Cn.call(t.tagMap,o)&&oe(t,'there is a previously declared suffix for "'+o+'" tag handle'),zS.test(s)||oe(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=s},"handleTagDirective")};function On(e,t,r,n){var o,s,a,l;if(t<r){if(l=e.input.slice(t,r),n)for(o=0,s=l.length;o<s;o+=1)a=l.charCodeAt(o),a===9||32<=a&&a<=1114111||oe(e,"expected valid JSON character");else HR.test(l)&&oe(e,"the stream contains non-printable characters");e.result+=l}}i(On,"captureSegment");function VS(e,t,r,n){var o,s,a,l;for(Jr.isObject(r)||oe(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(r),a=0,l=o.length;a<l;a+=1)s=o[a],Cn.call(t,s)||(WS(t,s,r[s]),n[s]=!0)}i(VS,"mergeMappings");function Xo(e,t,r,n,o,s,a,l){var u,c;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),u=0,c=o.length;u<c;u+=1)Array.isArray(o[u])&&oe(e,"nested arrays are not supported inside keys"),typeof o=="object"&&$S(o[u])==="[object Object]"&&(o[u]="[object Object]");if(typeof o=="object"&&$S(o)==="[object Object]"&&(o="[object Object]"),o=String(o),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,c=s.length;u<c;u+=1)VS(e,t,s[u],r);else VS(e,t,s,r);else!e.json&&!Cn.call(r,o)&&Cn.call(t,o)&&(e.line=a||e.line,e.position=l||e.position,oe(e,"duplicated mapping key")),WS(t,o,s),delete r[o];return t}i(Xo,"storeMappingPair");function Um(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):oe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}i(Um,"readLineBreak");function Ve(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Si(o);)o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(Nr(o))for(Um(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&cf(e,"deficient indentation"),n}i(Ve,"skipSeparationSpace");function ff(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Nt(r)))}i(ff,"testDocumentSeparator");function jm(e,t){t===1?e.result+=" ":t>1&&(e.result+=Jr.repeat(`
8
- `,t-1))}i(jm,"writeFoldedLines");function GR(e,t,r){var n,o,s,a,l,u,c,f,p=e.kind,h=e.result,m;if(m=e.input.charCodeAt(e.position),Nt(m)||Jo(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(o=e.input.charCodeAt(e.position+1),Nt(o)||r&&Jo(o)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,l=!1;m!==0;){if(m===58){if(o=e.input.charCodeAt(e.position+1),Nt(o)||r&&Jo(o))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),Nt(n))break}else{if(e.position===e.lineStart&&ff(e)||r&&Jo(m))break;if(Nr(m))if(u=e.line,c=e.lineStart,f=e.lineIndent,Ve(e,!1,-1),e.lineIndent>=t){l=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=c,e.lineIndent=f;break}}l&&(On(e,s,a,!1),jm(e,e.line-u),s=a=e.position,l=!1),Si(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return On(e,s,a,!1),e.result?!0:(e.kind=p,e.result=h,!1)}i(GR,"readPlainScalar");function JR(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(On(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,o=e.position;else return!0;else Nr(r)?(On(e,n,o,!0),jm(e,Ve(e,!1,t)),n=o=e.position):e.position===e.lineStart&&ff(e)?oe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);oe(e,"unexpected end of the stream within a single quoted scalar")}i(JR,"readSingleQuotedScalar");function XR(e,t){var r,n,o,s,a,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return On(e,r,e.position,!0),e.position++,!0;if(l===92){if(On(e,r,e.position,!0),l=e.input.charCodeAt(++e.position),Nr(l))Ve(e,!1,t);else if(l<256&&US[l])e.result+=jS[l],e.position++;else if((a=qR(l))>0){for(o=a,s=0;o>0;o--)l=e.input.charCodeAt(++e.position),(a=jR(l))>=0?s=(s<<4)+a:oe(e,"expected hexadecimal character");e.result+=VR(s),e.position++}else oe(e,"unknown escape sequence");r=n=e.position}else Nr(l)?(On(e,r,n,!0),jm(e,Ve(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ff(e)?oe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}oe(e,"unexpected end of the stream within a double quoted scalar")}i(XR,"readDoubleQuotedScalar");function ZR(e,t){var r=!0,n,o=e.tag,s,a=e.anchor,l,u,c,f,p,h={},m,d,g,x;if(x=e.input.charCodeAt(e.position),x===91)u=93,p=!1,s=[];else if(x===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),x=e.input.charCodeAt(++e.position);x!==0;){if(Ve(e,!0,t),x=e.input.charCodeAt(e.position),x===u)return e.position++,e.tag=o,e.anchor=a,e.kind=p?"mapping":"sequence",e.result=s,!0;r||oe(e,"missed comma between flow collection entries"),d=m=g=null,c=f=!1,x===63&&(l=e.input.charCodeAt(e.position+1),Nt(l)&&(c=f=!0,e.position++,Ve(e,!0,t))),n=e.line,Zo(e,t,lf,!1,!0),d=e.tag,m=e.result,Ve(e,!0,t),x=e.input.charCodeAt(e.position),(f||e.line===n)&&x===58&&(c=!0,x=e.input.charCodeAt(++e.position),Ve(e,!0,t),Zo(e,t,lf,!1,!0),g=e.result),p?Xo(e,s,h,d,m,g):c?s.push(Xo(e,null,h,d,m,g)):s.push(m),Ve(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(r=!0,x=e.input.charCodeAt(++e.position)):r=!1}oe(e,"unexpected end of the stream within a flow collection")}i(ZR,"readFlowCollection");function KR(e,t){var r,n,o=Wm,s=!1,a=!1,l=t,u=0,c=!1,f,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Wm===o?o=p===43?RS:$R:oe(e,"repeat of a chomping mode identifier");else if((f=YR(p))>=0)f===0?oe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?oe(e,"repeat of an indentation width identifier"):(l=t+f-1,a=!0);else break;if(Si(p)){do p=e.input.charCodeAt(++e.position);while(Si(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Nr(p)&&p!==0)}for(;p!==0;){for(Um(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!a||e.lineIndent<l)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>l&&(l=e.lineIndent),Nr(p)){u++;continue}if(e.lineIndent<l){o===RS?e.result+=Jr.repeat(`
9
- `,s?1+u:u):o===Wm&&s&&(e.result+=`
10
- `);break}for(n?Si(p)?(c=!0,e.result+=Jr.repeat(`
3
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return l=this.buffer.slice(o,a),Fk.repeat(" ",t)+n+l+s+`
4
+ `+Fk.repeat(" ",t+this.position-o+n.length)+"^"},"getSnippet"),Rm.prototype.toString=i(function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
5
+ `+r)),n},"toString"),Lk.exports=Rm});var Ze=ae((c_e,zk)=>{"use strict";var Bk=Vo(),dL=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],gL=["scalar","sequence","mapping"];function xL(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}i(xL,"compileStyleAliases");function yL(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(dL.indexOf(r)===-1)throw new Bk('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=xL(t.styleAliases||null),gL.indexOf(this.kind)===-1)throw new Bk('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}i(yL,"Type"),zk.exports=yL});var yi=ae((p_e,Hk)=>{"use strict";var $k=xi(),sf=Vo(),wL=Ze();function Bm(e,t,r){var n=[];return e.include.forEach(function(o){r=Bm(o,t,r)}),e[t].forEach(function(o){r.forEach(function(s,a){s.tag===o.tag&&s.kind===o.kind&&n.push(a)}),r.push(o)}),r.filter(function(o,s){return n.indexOf(s)===-1})}i(Bm,"compileList");function bL(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(o){e[o.kind][o.tag]=e.fallback[o.tag]=o}for(i(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}i(bL,"compileMap");function Qo(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new sf("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Bm(this,"implicit",[]),this.compiledExplicit=Bm(this,"explicit",[]),this.compiledTypeMap=bL(this.compiledImplicit,this.compiledExplicit)}i(Qo,"Schema"),Qo.DEFAULT=null,Qo.create=i(function(){var t,r;switch(arguments.length){case 1:t=Qo.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new sf("Wrong number of arguments for Schema.create function")}if(t=$k.toArray(t),r=$k.toArray(r),!t.every(function(n){return n instanceof Qo}))throw new sf("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof wL}))throw new sf("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Qo({include:t,explicit:r})},"createSchema"),Hk.exports=Qo});var Wk=ae((m_e,Uk)=>{"use strict";var vL=Ze();Uk.exports=new vL("tag:yaml.org,2002:str",{kind:"scalar",construct:i(function(e){return e!==null?e:""},"construct")})});var qk=ae((g_e,jk)=>{"use strict";var kL=Ze();jk.exports=new kL("tag:yaml.org,2002:seq",{kind:"sequence",construct:i(function(e){return e!==null?e:[]},"construct")})});var Vk=ae((y_e,Yk)=>{"use strict";var SL=Ze();Yk.exports=new SL("tag:yaml.org,2002:map",{kind:"mapping",construct:i(function(e){return e!==null?e:{}},"construct")})});var af=ae((b_e,Qk)=>{"use strict";var TL=yi();Qk.exports=new TL({explicit:[Wk(),qk(),Vk()]})});var Jk=ae((v_e,Gk)=>{"use strict";var EL=Ze();function DL(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}i(DL,"resolveYamlNull");function CL(){return null}i(CL,"constructYamlNull");function IL(e){return e===null}i(IL,"isNull"),Gk.exports=new EL("tag:yaml.org,2002:null",{kind:"scalar",resolve:DL,construct:CL,predicate:IL,represent:{canonical:i(function(){return"~"},"canonical"),lowercase:i(function(){return"null"},"lowercase"),uppercase:i(function(){return"NULL"},"uppercase"),camelcase:i(function(){return"Null"},"camelcase")},defaultStyle:"lowercase"})});var Xk=ae((S_e,Kk)=>{"use strict";var OL=Ze();function AL(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}i(AL,"resolveYamlBoolean");function ML(e){return e==="true"||e==="True"||e==="TRUE"}i(ML,"constructYamlBoolean");function _L(e){return Object.prototype.toString.call(e)==="[object Boolean]"}i(_L,"isBoolean"),Kk.exports=new OL("tag:yaml.org,2002:bool",{kind:"scalar",resolve:AL,construct:ML,predicate:_L,represent:{lowercase:i(function(e){return e?"true":"false"},"lowercase"),uppercase:i(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:i(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var eS=ae((E_e,Zk)=>{"use strict";var NL=xi(),PL=Ze();function FL(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}i(FL,"isHexCode");function LL(e){return 48<=e&&e<=55}i(LL,"isOctCode");function RL(e){return 48<=e&&e<=57}i(RL,"isDecCode");function BL(e){if(e===null)return!1;var t=e.length,r=0,n=!1,o;if(!t)return!1;if(o=e[r],(o==="-"||o==="+")&&(o=e[++r]),o==="0"){if(r+1===t)return!0;if(o=e[++r],o==="b"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;n=!0}return n&&o!=="_"}if(o==="x"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(!FL(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}for(;r<t;r++)if(o=e[r],o!=="_"){if(!LL(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}if(o==="_")return!1;for(;r<t;r++)if(o=e[r],o!=="_"){if(o===":")break;if(!RL(e.charCodeAt(r)))return!1;n=!0}return!n||o==="_"?!1:o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}i(BL,"resolveYamlInteger");function zL(e){var t=e,r=1,n,o,s=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),t=0,o=1,s.forEach(function(a){t+=a*o,o*=60}),r*t):r*parseInt(t,10)}i(zL,"constructYamlInteger");function $L(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!NL.isNegativeZero(e)}i($L,"isInteger"),Zk.exports=new PL("tag:yaml.org,2002:int",{kind:"scalar",resolve:BL,construct:zL,predicate:$L,represent:{binary:i(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:i(function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},"octal"),decimal:i(function(e){return e.toString(10)},"decimal"),hexadecimal:i(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var nS=ae((C_e,rS)=>{"use strict";var tS=xi(),HL=Ze(),UL=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function WL(e){return!(e===null||!UL.test(e)||e[e.length-1]==="_")}i(WL,"resolveYamlFloat");function jL(e){var t,r,n,o;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,o=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(s){o.unshift(parseFloat(s,10))}),t=0,n=1,o.forEach(function(s){t+=s*n,n*=60}),r*t):r*parseFloat(t,10)}i(jL,"constructYamlFloat");var qL=/^[-+]?[0-9]+e/;function YL(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(tS.isNegativeZero(e))return"-0.0";return r=e.toString(10),qL.test(r)?r.replace("e",".e"):r}i(YL,"representYamlFloat");function VL(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||tS.isNegativeZero(e))}i(VL,"isFloat"),rS.exports=new HL("tag:yaml.org,2002:float",{kind:"scalar",resolve:WL,construct:jL,predicate:VL,represent:YL,defaultStyle:"lowercase"})});var zm=ae((O_e,iS)=>{"use strict";var QL=yi();iS.exports=new QL({include:[af()],implicit:[Jk(),Xk(),eS(),nS()]})});var $m=ae((A_e,oS)=>{"use strict";var GL=yi();oS.exports=new GL({include:[zm()]})});var uS=ae((M_e,lS)=>{"use strict";var JL=Ze(),sS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),aS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function KL(e){return e===null?!1:sS.exec(e)!==null||aS.exec(e)!==null}i(KL,"resolveYamlTimestamp");function XL(e){var t,r,n,o,s,a,l,u=0,c=null,f,p,h;if(t=sS.exec(e),t===null&&(t=aS.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(s=+t[4],a=+t[5],l=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],p=+(t[11]||0),c=(f*60+p)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,o,s,a,l,u)),c&&h.setTime(h.getTime()-c),h}i(XL,"constructYamlTimestamp");function ZL(e){return e.toISOString()}i(ZL,"representYamlTimestamp"),lS.exports=new JL("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:KL,construct:XL,instanceOf:Date,represent:ZL})});var fS=ae((N_e,cS)=>{"use strict";var eR=Ze();function tR(e){return e==="<<"||e===null}i(tR,"resolveYamlMerge"),cS.exports=new eR("tag:yaml.org,2002:merge",{kind:"scalar",resolve:tR})});var mS=ae((F_e,hS)=>{"use strict";var wi;try{pS=ll,wi=pS("buffer").Buffer}catch{}var rR=Ze(),Hm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
+ \r`;function nR(e){if(e===null)return!1;var t,r,n=0,o=e.length,s=Hm;for(r=0;r<o;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}i(nR,"resolveYamlBinary");function iR(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,s=Hm,a=0,l=[];for(t=0;t<o;t++)t%4===0&&t&&(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));return r=o%4*6,r===0?(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)):r===18?(l.push(a>>10&255),l.push(a>>2&255)):r===12&&l.push(a>>4&255),wi?wi.from?wi.from(l):new wi(l):l}i(iR,"constructYamlBinary");function oR(e){var t="",r=0,n,o,s=e.length,a=Hm;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return o=s%3,o===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):o===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):o===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}i(oR,"representYamlBinary");function sR(e){return wi&&wi.isBuffer(e)}i(sR,"isBinary"),hS.exports=new rR("tag:yaml.org,2002:binary",{kind:"scalar",resolve:nR,construct:iR,predicate:sR,represent:oR});var pS});var gS=ae((R_e,dS)=>{"use strict";var aR=Ze(),lR=Object.prototype.hasOwnProperty,uR=Object.prototype.toString;function cR(e){if(e===null)return!0;var t=[],r,n,o,s,a,l=e;for(r=0,n=l.length;r<n;r+=1){if(o=l[r],a=!1,uR.call(o)!=="[object Object]")return!1;for(s in o)if(lR.call(o,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}i(cR,"resolveYamlOmap");function fR(e){return e!==null?e:[]}i(fR,"constructYamlOmap"),dS.exports=new aR("tag:yaml.org,2002:omap",{kind:"sequence",resolve:cR,construct:fR})});var yS=ae((z_e,xS)=>{"use strict";var pR=Ze(),hR=Object.prototype.toString;function mR(e){if(e===null)return!0;var t,r,n,o,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],hR.call(n)!=="[object Object]"||(o=Object.keys(n),o.length!==1))return!1;s[t]=[o[0],n[o[0]]]}return!0}i(mR,"resolveYamlPairs");function dR(e){if(e===null)return[];var t,r,n,o,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],o=Object.keys(n),s[t]=[o[0],n[o[0]]];return s}i(dR,"constructYamlPairs"),xS.exports=new pR("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:mR,construct:dR})});var bS=ae((H_e,wS)=>{"use strict";var gR=Ze(),xR=Object.prototype.hasOwnProperty;function yR(e){if(e===null)return!0;var t,r=e;for(t in r)if(xR.call(r,t)&&r[t]!==null)return!1;return!0}i(yR,"resolveYamlSet");function wR(e){return e!==null?e:{}}i(wR,"constructYamlSet"),wS.exports=new gR("tag:yaml.org,2002:set",{kind:"mapping",resolve:yR,construct:wR})});var Go=ae((W_e,vS)=>{"use strict";var bR=yi();vS.exports=new bR({include:[$m()],implicit:[uS(),fS()],explicit:[mS(),gS(),yS(),bS()]})});var SS=ae((j_e,kS)=>{"use strict";var vR=Ze();function kR(){return!0}i(kR,"resolveJavascriptUndefined");function SR(){}i(SR,"constructJavascriptUndefined");function TR(){return""}i(TR,"representJavascriptUndefined");function ER(e){return typeof e>"u"}i(ER,"isUndefined"),kS.exports=new vR("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:kR,construct:SR,predicate:ER,represent:TR})});var ES=ae((Y_e,TS)=>{"use strict";var DR=Ze();function CR(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}i(CR,"resolveJavascriptRegExp");function IR(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}i(IR,"constructJavascriptRegExp");function OR(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}i(OR,"representJavascriptRegExp");function AR(e){return Object.prototype.toString.call(e)==="[object RegExp]"}i(AR,"isRegExp"),TS.exports=new DR("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:CR,construct:IR,predicate:AR,represent:OR})});var IS=ae((Q_e,CS)=>{"use strict";var lf;try{DS=ll,lf=DS("esprima")}catch{typeof window<"u"&&(lf=window.esprima)}var MR=Ze();function _R(e){if(e===null)return!1;try{var t="("+e+")",r=lf.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}i(_R,"resolveJavascriptFunction");function NR(e){var t="("+e+")",r=lf.parse(t,{range:!0}),n=[],o;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(s){n.push(s.name)}),o=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(o[0]+1,o[1]-1)):new Function(n,"return "+t.slice(o[0],o[1]))}i(NR,"constructJavascriptFunction");function PR(e){return e.toString()}i(PR,"representJavascriptFunction");function FR(e){return Object.prototype.toString.call(e)==="[object Function]"}i(FR,"isFunction"),CS.exports=new MR("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:_R,construct:NR,predicate:FR,represent:PR});var DS});var da=ae((J_e,AS)=>{"use strict";var OS=yi();AS.exports=OS.DEFAULT=new OS({include:[Go()],explicit:[SS(),ES(),IS()]})});var JS=ae((K_e,ga)=>{"use strict";var Jr=xi(),MS=Vo(),LR=Rk(),_S=Go(),RR=da(),Cn=Object.prototype.hasOwnProperty,uf=1,NS=2,PS=3,cf=4,Um=1,BR=2,FS=3,zR=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$R=/[\x85\u2028\u2029]/,HR=/[,\[\]\{\}]/,LS=/^(?:!|!!|![a-z\-]+!)$/i,RS=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function BS(e){return Object.prototype.toString.call(e)}i(BS,"_class");function Pr(e){return e===10||e===13}i(Pr,"is_EOL");function bi(e){return e===9||e===32}i(bi,"is_WHITE_SPACE");function Pt(e){return e===9||e===32||e===10||e===13}i(Pt,"is_WS_OR_EOL");function Jo(e){return e===44||e===91||e===93||e===123||e===125}i(Jo,"is_FLOW_INDICATOR");function UR(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}i(UR,"fromHexCode");function WR(e){return e===120?2:e===117?4:e===85?8:0}i(WR,"escapedHexLen");function jR(e){return 48<=e&&e<=57?e-48:-1}i(jR,"fromDecimalCode");function zS(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
7
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}i(zS,"simpleEscapeSequence");function qR(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}i(qR,"charFromCodepoint");function $S(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}i($S,"setProperty");var HS=new Array(256),US=new Array(256);for(vi=0;vi<256;vi++)HS[vi]=zS(vi)?1:0,US[vi]=zS(vi);function YR(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||RR,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}i(YR,"State");function WS(e,t){return new MS(t,new LR(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}i(WS,"generateError");function oe(e,t){throw WS(e,t)}i(oe,"throwError");function ff(e,t){e.onWarning&&e.onWarning.call(null,WS(e,t))}i(ff,"throwWarning");var jS={YAML:i(function(t,r,n){var o,s,a;t.version!==null&&oe(t,"duplication of %YAML directive"),n.length!==1&&oe(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&oe(t,"ill-formed argument of the YAML directive"),s=parseInt(o[1],10),a=parseInt(o[2],10),s!==1&&oe(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&ff(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:i(function(t,r,n){var o,s;n.length!==2&&oe(t,"TAG directive accepts exactly two arguments"),o=n[0],s=n[1],LS.test(o)||oe(t,"ill-formed tag handle (first argument) of the TAG directive"),Cn.call(t.tagMap,o)&&oe(t,'there is a previously declared suffix for "'+o+'" tag handle'),RS.test(s)||oe(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=s},"handleTagDirective")};function In(e,t,r,n){var o,s,a,l;if(t<r){if(l=e.input.slice(t,r),n)for(o=0,s=l.length;o<s;o+=1)a=l.charCodeAt(o),a===9||32<=a&&a<=1114111||oe(e,"expected valid JSON character");else zR.test(l)&&oe(e,"the stream contains non-printable characters");e.result+=l}}i(In,"captureSegment");function qS(e,t,r,n){var o,s,a,l;for(Jr.isObject(r)||oe(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(r),a=0,l=o.length;a<l;a+=1)s=o[a],Cn.call(t,s)||($S(t,s,r[s]),n[s]=!0)}i(qS,"mergeMappings");function Ko(e,t,r,n,o,s,a,l){var u,c;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),u=0,c=o.length;u<c;u+=1)Array.isArray(o[u])&&oe(e,"nested arrays are not supported inside keys"),typeof o=="object"&&BS(o[u])==="[object Object]"&&(o[u]="[object Object]");if(typeof o=="object"&&BS(o)==="[object Object]"&&(o="[object Object]"),o=String(o),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,c=s.length;u<c;u+=1)qS(e,t,s[u],r);else qS(e,t,s,r);else!e.json&&!Cn.call(r,o)&&Cn.call(t,o)&&(e.line=a||e.line,e.position=l||e.position,oe(e,"duplicated mapping key")),$S(t,o,s),delete r[o];return t}i(Ko,"storeMappingPair");function Wm(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):oe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}i(Wm,"readLineBreak");function Ve(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;bi(o);)o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(Pr(o))for(Wm(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&ff(e,"deficient indentation"),n}i(Ve,"skipSeparationSpace");function pf(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Pt(r)))}i(pf,"testDocumentSeparator");function jm(e,t){t===1?e.result+=" ":t>1&&(e.result+=Jr.repeat(`
8
+ `,t-1))}i(jm,"writeFoldedLines");function VR(e,t,r){var n,o,s,a,l,u,c,f,p=e.kind,h=e.result,m;if(m=e.input.charCodeAt(e.position),Pt(m)||Jo(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(o=e.input.charCodeAt(e.position+1),Pt(o)||r&&Jo(o)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,l=!1;m!==0;){if(m===58){if(o=e.input.charCodeAt(e.position+1),Pt(o)||r&&Jo(o))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),Pt(n))break}else{if(e.position===e.lineStart&&pf(e)||r&&Jo(m))break;if(Pr(m))if(u=e.line,c=e.lineStart,f=e.lineIndent,Ve(e,!1,-1),e.lineIndent>=t){l=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=c,e.lineIndent=f;break}}l&&(In(e,s,a,!1),jm(e,e.line-u),s=a=e.position,l=!1),bi(m)||(a=e.position+1),m=e.input.charCodeAt(++e.position)}return In(e,s,a,!1),e.result?!0:(e.kind=p,e.result=h,!1)}i(VR,"readPlainScalar");function QR(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(In(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,o=e.position;else return!0;else Pr(r)?(In(e,n,o,!0),jm(e,Ve(e,!1,t)),n=o=e.position):e.position===e.lineStart&&pf(e)?oe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);oe(e,"unexpected end of the stream within a single quoted scalar")}i(QR,"readSingleQuotedScalar");function GR(e,t){var r,n,o,s,a,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return In(e,r,e.position,!0),e.position++,!0;if(l===92){if(In(e,r,e.position,!0),l=e.input.charCodeAt(++e.position),Pr(l))Ve(e,!1,t);else if(l<256&&HS[l])e.result+=US[l],e.position++;else if((a=WR(l))>0){for(o=a,s=0;o>0;o--)l=e.input.charCodeAt(++e.position),(a=UR(l))>=0?s=(s<<4)+a:oe(e,"expected hexadecimal character");e.result+=qR(s),e.position++}else oe(e,"unknown escape sequence");r=n=e.position}else Pr(l)?(In(e,r,n,!0),jm(e,Ve(e,!1,t)),r=n=e.position):e.position===e.lineStart&&pf(e)?oe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}oe(e,"unexpected end of the stream within a double quoted scalar")}i(GR,"readDoubleQuotedScalar");function JR(e,t){var r=!0,n,o=e.tag,s,a=e.anchor,l,u,c,f,p,h={},m,d,g,x;if(x=e.input.charCodeAt(e.position),x===91)u=93,p=!1,s=[];else if(x===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),x=e.input.charCodeAt(++e.position);x!==0;){if(Ve(e,!0,t),x=e.input.charCodeAt(e.position),x===u)return e.position++,e.tag=o,e.anchor=a,e.kind=p?"mapping":"sequence",e.result=s,!0;r||oe(e,"missed comma between flow collection entries"),d=m=g=null,c=f=!1,x===63&&(l=e.input.charCodeAt(e.position+1),Pt(l)&&(c=f=!0,e.position++,Ve(e,!0,t))),n=e.line,Xo(e,t,uf,!1,!0),d=e.tag,m=e.result,Ve(e,!0,t),x=e.input.charCodeAt(e.position),(f||e.line===n)&&x===58&&(c=!0,x=e.input.charCodeAt(++e.position),Ve(e,!0,t),Xo(e,t,uf,!1,!0),g=e.result),p?Ko(e,s,h,d,m,g):c?s.push(Ko(e,null,h,d,m,g)):s.push(m),Ve(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(r=!0,x=e.input.charCodeAt(++e.position)):r=!1}oe(e,"unexpected end of the stream within a flow collection")}i(JR,"readFlowCollection");function KR(e,t){var r,n,o=Um,s=!1,a=!1,l=t,u=0,c=!1,f,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Um===o?o=p===43?FS:BR:oe(e,"repeat of a chomping mode identifier");else if((f=jR(p))>=0)f===0?oe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?oe(e,"repeat of an indentation width identifier"):(l=t+f-1,a=!0);else break;if(bi(p)){do p=e.input.charCodeAt(++e.position);while(bi(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Pr(p)&&p!==0)}for(;p!==0;){for(Wm(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!a||e.lineIndent<l)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>l&&(l=e.lineIndent),Pr(p)){u++;continue}if(e.lineIndent<l){o===FS?e.result+=Jr.repeat(`
9
+ `,s?1+u:u):o===Um&&s&&(e.result+=`
10
+ `);break}for(n?bi(p)?(c=!0,e.result+=Jr.repeat(`
11
11
  `,s?1+u:u)):c?(c=!1,e.result+=Jr.repeat(`
12
12
  `,u+1)):u===0?s&&(e.result+=" "):e.result+=Jr.repeat(`
13
13
  `,u):e.result+=Jr.repeat(`
14
- `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Nr(p)&&p!==0;)p=e.input.charCodeAt(++e.position);On(e,r,e.position,!1)}return!0}i(KR,"readBlockScalar");function QS(e,t){var r,n=e.tag,o=e.anchor,s=[],a,l=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Nt(a)));){if(l=!0,e.position++,Ve(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Zo(e,t,LS,!1,!0),s.push(e.result),Ve(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)oe(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return l?(e.tag=n,e.anchor=o,e.kind="sequence",e.result=s,!0):!1}i(QS,"readBlockSequence");function e2(e,t,r){var n,o,s,a,l=e.tag,u=e.anchor,c={},f={},p=null,h=null,m=null,d=!1,g=!1,x;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),x=e.input.charCodeAt(e.position);x!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(x===63||x===58)&&Nt(n))x===63?(d&&(Xo(e,c,f,p,h,null),p=h=m=null),g=!0,d=!0,o=!0):d?(d=!1,o=!0):oe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=n;else if(Zo(e,r,FS,!1,!0))if(e.line===s){for(x=e.input.charCodeAt(e.position);Si(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),Nt(x)||oe(e,"a whitespace character is expected after the key-value separator within a block mapping"),d&&(Xo(e,c,f,p,h,null),p=h=m=null),g=!0,d=!1,o=!1,p=e.tag,h=e.result;else if(g)oe(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=u,!0}else if(g)oe(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=u,!0;else break;if((e.line===s||e.lineIndent>t)&&(Zo(e,t,uf,!0,o)&&(d?h=e.result:m=e.result),d||(Xo(e,c,f,p,h,m,s,a),p=h=m=null),Ve(e,!0,-1),x=e.input.charCodeAt(e.position)),e.lineIndent>t&&x!==0)oe(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return d&&Xo(e,c,f,p,h,null),g&&(e.tag=l,e.anchor=u,e.kind="mapping",e.result=c),g}i(e2,"readBlockMapping");function t2(e){var t,r=!1,n=!1,o,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&oe(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,o="!!",a=e.input.charCodeAt(++e.position)):o="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):oe(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Nt(a);)a===33&&(n?oe(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),BS.test(o)||oe(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),UR.test(s)&&oe(e,"tag suffix cannot contain flow indicator characters")}return s&&!zS.test(s)&&oe(e,"tag name cannot contain such characters: "+s),r?e.tag=s:Cn.call(e.tagMap,o)?e.tag=e.tagMap[o]+s:o==="!"?e.tag="!"+s:o==="!!"?e.tag="tag:yaml.org,2002:"+s:oe(e,'undeclared tag handle "'+o+'"'),!0}i(t2,"readTagProperty");function r2(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&oe(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Nt(r)&&!Jo(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&oe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}i(r2,"readAnchorProperty");function n2(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Nt(n)&&!Jo(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&oe(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Cn.call(e.anchorMap,r)||oe(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Ve(e,!0,-1),!0}i(n2,"readAlias");function Zo(e,t,r,n,o){var s,a,l,u=1,c=!1,f=!1,p,h,m,d,g;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=l=uf===r||LS===r,n&&Ve(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;t2(e)||r2(e);)Ve(e,!0,-1)?(c=!0,l=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):l=!1;if(l&&(l=c||o),(u===1||uf===r)&&(lf===r||FS===r?d=t:d=t+1,g=e.position-e.lineStart,u===1?l&&(QS(e,g)||e2(e,g,d))||ZR(e,d)?f=!0:(a&&KR(e,d)||JR(e,d)||XR(e,d)?f=!0:n2(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&oe(e,"alias node should not have any properties")):GR(e,d,lf===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=l&&QS(e,g))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&oe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,h=e.implicitTypes.length;p<h;p+=1)if(m=e.implicitTypes[p],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Cn.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&m.kind!==e.kind&&oe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):oe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):oe(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}i(Zo,"composeNode");function i2(e){var t=e.position,r,n,o,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(Ve(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Nt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&oe(e,"directive name must not be less than one character in length");a!==0;){for(;Si(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Nr(a));break}if(Nr(a))break;for(r=e.position;a!==0&&!Nt(a);)a=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}a!==0&&Um(e),Cn.call(YS,n)?YS[n](e,n,o):cf(e,'unknown document directive "'+n+'"')}if(Ve(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ve(e,!0,-1)):s&&oe(e,"directives end mark is expected"),Zo(e,e.lineIndent-1,uf,!1,!0),Ve(e,!0,-1),e.checkLineBreaks&&WR.test(e.input.slice(t,e.position))&&cf(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ff(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ve(e,!0,-1));return}if(e.position<e.length-1)oe(e,"end of the stream or a document separator is expected");else return}i(i2,"readDocument");function GS(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
15
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new QR(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,oe(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)i2(r);return r.documents}i(GS,"loadDocuments");function JS(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=GS(e,r);if(typeof t!="function")return n;for(var o=0,s=n.length;o<s;o+=1)t(n[o])}i(JS,"loadAll");function XS(e,t){var r=GS(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new PS("expected a single document in the stream, but found more")}}i(XS,"load");function o2(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),JS(e,t,Jr.extend({schema:NS},r))}i(o2,"safeLoadAll");function s2(e,t){return XS(e,Jr.extend({schema:NS},t))}i(s2,"safeLoad"),da.exports.loadAll=JS,da.exports.load=XS,da.exports.safeLoadAll=o2,da.exports.safeLoad=s2;var Ti});var v1=ae((ePe,Qm)=>{"use strict";var ga=bi(),xa=Vo(),a2=ma(),l2=Go(),KS=Object.prototype.toString,e1=Object.prototype.hasOwnProperty,u2=9,ya=10,c2=13,f2=32,p2=33,h2=34,t1=35,m2=37,d2=38,g2=39,x2=42,r1=44,y2=45,n1=58,w2=61,b2=62,v2=63,k2=64,i1=91,o1=93,S2=96,s1=123,T2=124,a1=125,yt={};yt[0]="\\0",yt[7]="\\a",yt[8]="\\b",yt[9]="\\t",yt[10]="\\n",yt[11]="\\v",yt[12]="\\f",yt[13]="\\r",yt[27]="\\e",yt[34]='\\"',yt[92]="\\\\",yt[133]="\\N",yt[160]="\\_",yt[8232]="\\L",yt[8233]="\\P";var E2=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function D2(e,t){var r,n,o,s,a,l,u;if(t===null)return{};for(r={},n=Object.keys(t),o=0,s=n.length;o<s;o+=1)a=n[o],l=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&e1.call(u.styleAliases,l)&&(l=u.styleAliases[l]),r[a]=l;return r}i(D2,"compileStyleMap");function l1(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new xa("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ga.repeat("0",n-t.length)+t}i(l1,"encodeHex");function C2(e){this.schema=e.schema||a2,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ga.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=D2(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}i(C2,"State");function u1(e,t){for(var r=ga.repeat(" ",t),n=0,o=-1,s="",a,l=e.length;n<l;)o=e.indexOf(`
14
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!Pr(p)&&p!==0;)p=e.input.charCodeAt(++e.position);In(e,r,e.position,!1)}return!0}i(KR,"readBlockScalar");function YS(e,t){var r,n=e.tag,o=e.anchor,s=[],a,l=!1,u;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&!(u!==45||(a=e.input.charCodeAt(e.position+1),!Pt(a)));){if(l=!0,e.position++,Ve(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Xo(e,t,PS,!1,!0),s.push(e.result),Ve(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)oe(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return l?(e.tag=n,e.anchor=o,e.kind="sequence",e.result=s,!0):!1}i(YS,"readBlockSequence");function XR(e,t,r){var n,o,s,a,l=e.tag,u=e.anchor,c={},f={},p=null,h=null,m=null,d=!1,g=!1,x;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),x=e.input.charCodeAt(e.position);x!==0;){if(n=e.input.charCodeAt(e.position+1),s=e.line,a=e.position,(x===63||x===58)&&Pt(n))x===63?(d&&(Ko(e,c,f,p,h,null),p=h=m=null),g=!0,d=!0,o=!0):d?(d=!1,o=!0):oe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=n;else if(Xo(e,r,NS,!1,!0))if(e.line===s){for(x=e.input.charCodeAt(e.position);bi(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),Pt(x)||oe(e,"a whitespace character is expected after the key-value separator within a block mapping"),d&&(Ko(e,c,f,p,h,null),p=h=m=null),g=!0,d=!1,o=!1,p=e.tag,h=e.result;else if(g)oe(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=u,!0}else if(g)oe(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=u,!0;else break;if((e.line===s||e.lineIndent>t)&&(Xo(e,t,cf,!0,o)&&(d?h=e.result:m=e.result),d||(Ko(e,c,f,p,h,m,s,a),p=h=m=null),Ve(e,!0,-1),x=e.input.charCodeAt(e.position)),e.lineIndent>t&&x!==0)oe(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return d&&Ko(e,c,f,p,h,null),g&&(e.tag=l,e.anchor=u,e.kind="mapping",e.result=c),g}i(XR,"readBlockMapping");function ZR(e){var t,r=!1,n=!1,o,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&oe(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,o="!!",a=e.input.charCodeAt(++e.position)):o="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):oe(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Pt(a);)a===33&&(n?oe(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),LS.test(o)||oe(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),HR.test(s)&&oe(e,"tag suffix cannot contain flow indicator characters")}return s&&!RS.test(s)&&oe(e,"tag name cannot contain such characters: "+s),r?e.tag=s:Cn.call(e.tagMap,o)?e.tag=e.tagMap[o]+s:o==="!"?e.tag="!"+s:o==="!!"?e.tag="tag:yaml.org,2002:"+s:oe(e,'undeclared tag handle "'+o+'"'),!0}i(ZR,"readTagProperty");function e2(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&oe(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Pt(r)&&!Jo(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&oe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}i(e2,"readAnchorProperty");function t2(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Pt(n)&&!Jo(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&oe(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Cn.call(e.anchorMap,r)||oe(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Ve(e,!0,-1),!0}i(t2,"readAlias");function Xo(e,t,r,n,o){var s,a,l,u=1,c=!1,f=!1,p,h,m,d,g;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=l=cf===r||PS===r,n&&Ve(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;ZR(e)||e2(e);)Ve(e,!0,-1)?(c=!0,l=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):l=!1;if(l&&(l=c||o),(u===1||cf===r)&&(uf===r||NS===r?d=t:d=t+1,g=e.position-e.lineStart,u===1?l&&(YS(e,g)||XR(e,g,d))||JR(e,d)?f=!0:(a&&KR(e,d)||QR(e,d)||GR(e,d)?f=!0:t2(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&oe(e,"alias node should not have any properties")):VR(e,d,uf===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=l&&YS(e,g))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&oe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,h=e.implicitTypes.length;p<h;p+=1)if(m=e.implicitTypes[p],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Cn.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&m.kind!==e.kind&&oe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):oe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):oe(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}i(Xo,"composeNode");function r2(e){var t=e.position,r,n,o,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(a=e.input.charCodeAt(e.position))!==0&&(Ve(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!Pt(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&oe(e,"directive name must not be less than one character in length");a!==0;){for(;bi(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Pr(a));break}if(Pr(a))break;for(r=e.position;a!==0&&!Pt(a);)a=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}a!==0&&Wm(e),Cn.call(jS,n)?jS[n](e,n,o):ff(e,'unknown document directive "'+n+'"')}if(Ve(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ve(e,!0,-1)):s&&oe(e,"directives end mark is expected"),Xo(e,e.lineIndent-1,cf,!1,!0),Ve(e,!0,-1),e.checkLineBreaks&&$R.test(e.input.slice(t,e.position))&&ff(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&pf(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ve(e,!0,-1));return}if(e.position<e.length-1)oe(e,"end of the stream or a document separator is expected");else return}i(r2,"readDocument");function VS(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
15
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new YR(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,oe(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)r2(r);return r.documents}i(VS,"loadDocuments");function QS(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=VS(e,r);if(typeof t!="function")return n;for(var o=0,s=n.length;o<s;o+=1)t(n[o])}i(QS,"loadAll");function GS(e,t){var r=VS(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new MS("expected a single document in the stream, but found more")}}i(GS,"load");function n2(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),QS(e,t,Jr.extend({schema:_S},r))}i(n2,"safeLoadAll");function i2(e,t){return GS(e,Jr.extend({schema:_S},t))}i(i2,"safeLoad"),ga.exports.loadAll=QS,ga.exports.load=GS,ga.exports.safeLoadAll=n2,ga.exports.safeLoad=i2;var vi});var w1=ae((Z_e,Qm)=>{"use strict";var xa=xi(),ya=Vo(),o2=da(),s2=Go(),KS=Object.prototype.toString,XS=Object.prototype.hasOwnProperty,a2=9,wa=10,l2=13,u2=32,c2=33,f2=34,ZS=35,p2=37,h2=38,m2=39,d2=42,e1=44,g2=45,t1=58,x2=61,y2=62,w2=63,b2=64,r1=91,n1=93,v2=96,i1=123,k2=124,o1=125,xt={};xt[0]="\\0",xt[7]="\\a",xt[8]="\\b",xt[9]="\\t",xt[10]="\\n",xt[11]="\\v",xt[12]="\\f",xt[13]="\\r",xt[27]="\\e",xt[34]='\\"',xt[92]="\\\\",xt[133]="\\N",xt[160]="\\_",xt[8232]="\\L",xt[8233]="\\P";var S2=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function T2(e,t){var r,n,o,s,a,l,u;if(t===null)return{};for(r={},n=Object.keys(t),o=0,s=n.length;o<s;o+=1)a=n[o],l=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&XS.call(u.styleAliases,l)&&(l=u.styleAliases[l]),r[a]=l;return r}i(T2,"compileStyleMap");function s1(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new ya("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+xa.repeat("0",n-t.length)+t}i(s1,"encodeHex");function E2(e){this.schema=e.schema||o2,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=xa.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=T2(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}i(E2,"State");function a1(e,t){for(var r=xa.repeat(" ",t),n=0,o=-1,s="",a,l=e.length;n<l;)o=e.indexOf(`
16
16
  `,n),o===-1?(a=e.slice(n),n=l):(a=e.slice(n,o+1),n=o+1),a.length&&a!==`
17
- `&&(s+=r),s+=a;return s}i(u1,"indentString");function qm(e,t){return`
18
- `+ga.repeat(" ",e.indent*t)}i(qm,"generateNextLine");function O2(e,t){var r,n,o;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(o=e.implicitTypes[r],o.resolve(t))return!0;return!1}i(O2,"testImplicitResolving");function Ym(e){return e===f2||e===u2}i(Ym,"isWhitespace");function Ko(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}i(Ko,"isPrintable");function I2(e){return Ko(e)&&!Ym(e)&&e!==65279&&e!==c2&&e!==ya}i(I2,"isNsChar");function c1(e,t){return Ko(e)&&e!==65279&&e!==r1&&e!==i1&&e!==o1&&e!==s1&&e!==a1&&e!==n1&&(e!==t1||t&&I2(t))}i(c1,"isPlainSafe");function A2(e){return Ko(e)&&e!==65279&&!Ym(e)&&e!==y2&&e!==v2&&e!==n1&&e!==r1&&e!==i1&&e!==o1&&e!==s1&&e!==a1&&e!==t1&&e!==d2&&e!==x2&&e!==p2&&e!==T2&&e!==w2&&e!==b2&&e!==g2&&e!==h2&&e!==m2&&e!==k2&&e!==S2}i(A2,"isPlainSafeFirst");function f1(e){var t=/^\n* /;return t.test(e)}i(f1,"needIndentIndicator");var p1=1,h1=2,m1=3,d1=4,pf=5;function M2(e,t,r,n,o){var s,a,l,u=!1,c=!1,f=n!==-1,p=-1,h=A2(e.charCodeAt(0))&&!Ym(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!Ko(a))return pf;l=s>0?e.charCodeAt(s-1):null,h=h&&c1(a,l)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===ya)u=!0,f&&(c=c||s-p-1>n&&e[p+1]!==" ",p=s);else if(!Ko(a))return pf;l=s>0?e.charCodeAt(s-1):null,h=h&&c1(a,l)}c=c||f&&s-p-1>n&&e[p+1]!==" "}return!u&&!c?h&&!o(e)?p1:h1:r>9&&f1(e)?pf:c?d1:m1}i(M2,"chooseScalarStyle");function _2(e,t,r,n){e.dump=(function(){if(t.length===0)return"''";if(!e.noCompatMode&&E2.indexOf(t)!==-1)return"'"+t+"'";var o=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=n||e.flowLevel>-1&&r>=e.flowLevel;function l(u){return O2(e,u)}switch(i(l,"testAmbiguity"),M2(t,a,e.indent,s,l)){case p1:return t;case h1:return"'"+t.replace(/'/g,"''")+"'";case m1:return"|"+g1(t,e.indent)+x1(u1(t,o));case d1:return">"+g1(t,e.indent)+x1(u1(P2(t,s),o));case pf:return'"'+N2(t,s)+'"';default:throw new xa("impossible error: invalid scalar style")}})()}i(_2,"writeScalar");function g1(e,t){var r=f1(e)?String(t):"",n=e[e.length-1]===`
17
+ `&&(s+=r),s+=a;return s}i(a1,"indentString");function qm(e,t){return`
18
+ `+xa.repeat(" ",e.indent*t)}i(qm,"generateNextLine");function D2(e,t){var r,n,o;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(o=e.implicitTypes[r],o.resolve(t))return!0;return!1}i(D2,"testImplicitResolving");function Ym(e){return e===u2||e===a2}i(Ym,"isWhitespace");function Zo(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}i(Zo,"isPrintable");function C2(e){return Zo(e)&&!Ym(e)&&e!==65279&&e!==l2&&e!==wa}i(C2,"isNsChar");function l1(e,t){return Zo(e)&&e!==65279&&e!==e1&&e!==r1&&e!==n1&&e!==i1&&e!==o1&&e!==t1&&(e!==ZS||t&&C2(t))}i(l1,"isPlainSafe");function I2(e){return Zo(e)&&e!==65279&&!Ym(e)&&e!==g2&&e!==w2&&e!==t1&&e!==e1&&e!==r1&&e!==n1&&e!==i1&&e!==o1&&e!==ZS&&e!==h2&&e!==d2&&e!==c2&&e!==k2&&e!==x2&&e!==y2&&e!==m2&&e!==f2&&e!==p2&&e!==b2&&e!==v2}i(I2,"isPlainSafeFirst");function u1(e){var t=/^\n* /;return t.test(e)}i(u1,"needIndentIndicator");var c1=1,f1=2,p1=3,h1=4,hf=5;function O2(e,t,r,n,o){var s,a,l,u=!1,c=!1,f=n!==-1,p=-1,h=I2(e.charCodeAt(0))&&!Ym(e.charCodeAt(e.length-1));if(t)for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),!Zo(a))return hf;l=s>0?e.charCodeAt(s-1):null,h=h&&l1(a,l)}else{for(s=0;s<e.length;s++){if(a=e.charCodeAt(s),a===wa)u=!0,f&&(c=c||s-p-1>n&&e[p+1]!==" ",p=s);else if(!Zo(a))return hf;l=s>0?e.charCodeAt(s-1):null,h=h&&l1(a,l)}c=c||f&&s-p-1>n&&e[p+1]!==" "}return!u&&!c?h&&!o(e)?c1:f1:r>9&&u1(e)?hf:c?h1:p1}i(O2,"chooseScalarStyle");function A2(e,t,r,n){e.dump=(function(){if(t.length===0)return"''";if(!e.noCompatMode&&S2.indexOf(t)!==-1)return"'"+t+"'";var o=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=n||e.flowLevel>-1&&r>=e.flowLevel;function l(u){return D2(e,u)}switch(i(l,"testAmbiguity"),O2(t,a,e.indent,s,l)){case c1:return t;case f1:return"'"+t.replace(/'/g,"''")+"'";case p1:return"|"+m1(t,e.indent)+d1(a1(t,o));case h1:return">"+m1(t,e.indent)+d1(a1(M2(t,s),o));case hf:return'"'+_2(t,s)+'"';default:throw new ya("impossible error: invalid scalar style")}})()}i(A2,"writeScalar");function m1(e,t){var r=u1(e)?String(t):"",n=e[e.length-1]===`
19
19
  `,o=n&&(e[e.length-2]===`
20
20
  `||e===`
21
21
  `),s=o?"+":n?"":"-";return r+s+`
22
- `}i(g1,"blockHeader");function x1(e){return e[e.length-1]===`
23
- `?e.slice(0,-1):e}i(x1,"dropEndingNewline");function P2(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=e.indexOf(`
24
- `);return c=c!==-1?c:e.length,r.lastIndex=c,y1(e.slice(0,c),t)})(),o=e[0]===`
22
+ `}i(m1,"blockHeader");function d1(e){return e[e.length-1]===`
23
+ `?e.slice(0,-1):e}i(d1,"dropEndingNewline");function M2(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=e.indexOf(`
24
+ `);return c=c!==-1?c:e.length,r.lastIndex=c,g1(e.slice(0,c),t)})(),o=e[0]===`
25
25
  `||e[0]===" ",s,a;a=r.exec(e);){var l=a[1],u=a[2];s=u[0]===" ",n+=l+(!o&&!s&&u!==""?`
26
- `:"")+y1(u,t),o=s}return n}i(P2,"foldString");function y1(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,o=0,s,a=0,l=0,u="";n=r.exec(e);)l=n.index,l-o>t&&(s=a>o?a:l,u+=`
26
+ `:"")+g1(u,t),o=s}return n}i(M2,"foldString");function g1(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,o=0,s,a=0,l=0,u="";n=r.exec(e);)l=n.index,l-o>t&&(s=a>o?a:l,u+=`
27
27
  `+e.slice(o,s),o=s+1),a=l;return u+=`
28
28
  `,e.length-o>t&&a>o?u+=e.slice(o,a)+`
29
- `+e.slice(a+1):u+=e.slice(o),u.slice(1)}i(y1,"foldLine");function N2(e){for(var t="",r,n,o,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=l1((r-55296)*1024+n-56320+65536),s++;continue}o=yt[r],t+=!o&&Ko(r)?e[s]:o||l1(r)}return t}i(N2,"escapeString");function F2(e,t,r){var n="",o=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Ei(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=o,e.dump="["+n+"]"}i(F2,"writeFlowSequence");function L2(e,t,r,n){var o="",s=e.tag,a,l;for(a=0,l=r.length;a<l;a+=1)Ei(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(o+=qm(e,t)),e.dump&&ya===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=s,e.dump=o||"[]"}i(L2,"writeBlockSequence");function R2(e,t,r){var n="",o=e.tag,s=Object.keys(r),a,l,u,c,f;for(a=0,l=s.length;a<l;a+=1)f="",a!==0&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[a],c=r[u],Ei(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ei(e,t,c,!1,!1)&&(f+=e.dump,n+=f));e.tag=o,e.dump="{"+n+"}"}i(R2,"writeFlowMapping");function B2(e,t,r,n){var o="",s=e.tag,a=Object.keys(r),l,u,c,f,p,h;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new xa("sortKeys must be a boolean or a function");for(l=0,u=a.length;l<u;l+=1)h="",(!n||l!==0)&&(h+=qm(e,t)),c=a[l],f=r[c],Ei(e,t+1,c,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&ya===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,p&&(h+=qm(e,t)),Ei(e,t+1,f,!0,p)&&(e.dump&&ya===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,o+=h));e.tag=s,e.dump=o||"{}"}i(B2,"writeBlockMapping");function w1(e,t,r){var n,o,s,a,l,u;for(o=r?e.explicitTypes:e.implicitTypes,s=0,a=o.length;s<a;s+=1)if(l=o[s],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof t=="object"&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(e.tag=r?l.tag:"?",l.represent){if(u=e.styleMap[l.tag]||l.defaultStyle,KS.call(l.represent)==="[object Function]")n=l.represent(t,u);else if(e1.call(l.represent,u))n=l.represent[u](t,u);else throw new xa("!<"+l.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}i(w1,"detectType");function Ei(e,t,r,n,o,s){e.tag=null,e.dump=r,w1(e,r,!1)||w1(e,r,!0);var a=KS.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var l=a==="[object Object]"||a==="[object Array]",u,c;if(l&&(u=e.duplicates.indexOf(r),c=u!==-1),(e.tag!==null&&e.tag!=="?"||c||e.indent!==2&&t>0)&&(o=!1),c&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(l&&c&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(B2(e,t,e.dump,o),c&&(e.dump="&ref_"+u+e.dump)):(R2(e,t,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var f=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(L2(e,f,e.dump,o),c&&(e.dump="&ref_"+u+e.dump)):(F2(e,f,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&_2(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new xa("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}i(Ei,"writeNode");function z2(e,t){var r=[],n=[],o,s;for(Vm(e,r,n),o=0,s=n.length;o<s;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(s)}i(z2,"getDuplicateReferences");function Vm(e,t,r){var n,o,s;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(t.push(e),Array.isArray(e))for(o=0,s=e.length;o<s;o+=1)Vm(e[o],t,r);else for(n=Object.keys(e),o=0,s=n.length;o<s;o+=1)Vm(e[n[o]],t,r)}i(Vm,"inspectNode");function b1(e,t){t=t||{};var r=new C2(t);return r.noRefs||z2(e,r),Ei(r,0,e,!0,!0)?r.dump+`
30
- `:""}i(b1,"dump");function $2(e,t){return b1(e,ga.extend({schema:l2},t))}i($2,"safeDump"),Qm.exports.dump=b1,Qm.exports.safeDump=$2});var S1=ae((rPe,ze)=>{"use strict";var hf=ZS(),k1=v1();function mf(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}i(mf,"deprecated"),ze.exports.Type=Ke(),ze.exports.Schema=vi(),ze.exports.FAILSAFE_SCHEMA=sf(),ze.exports.JSON_SCHEMA=zm(),ze.exports.CORE_SCHEMA=$m(),ze.exports.DEFAULT_SAFE_SCHEMA=Go(),ze.exports.DEFAULT_FULL_SCHEMA=ma(),ze.exports.load=hf.load,ze.exports.loadAll=hf.loadAll,ze.exports.safeLoad=hf.safeLoad,ze.exports.safeLoadAll=hf.safeLoadAll,ze.exports.dump=k1.dump,ze.exports.safeDump=k1.safeDump,ze.exports.YAMLException=Vo(),ze.exports.MINIMAL_SCHEMA=sf(),ze.exports.SAFE_SCHEMA=Go(),ze.exports.DEFAULT_SCHEMA=ma(),ze.exports.scan=mf("scan"),ze.exports.parse=mf("parse"),ze.exports.compose=mf("compose"),ze.exports.addConstructor=mf("addConstructor")});var E1=ae((iPe,T1)=>{"use strict";var H2=S1();T1.exports=H2});var D1=ae(Fr=>{"use strict";var W2=Fr&&Fr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:i(function(){return t[r]},"get")})}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),U2=Fr&&Fr.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),j2=Fr&&Fr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&W2(t,e,r);return U2(t,e),t};Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.jsYaml=void 0;var q2=j2(E1());Fr.jsYaml=q2});var O1=ae(Xt=>{"use strict";var Y2=Xt&&Xt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:i(function(){return t[r]},"get")})}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),V2=Xt&&Xt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Q2=Xt&&Xt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&Y2(t,e,r);return V2(t,e),t};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.objectToYamlString=Xt.yamlStringToObject=void 0;var C1=Q2(D1());Xt.yamlStringToObject=async(e,t={})=>C1.jsYaml.safeLoad(e),Xt.objectToYamlString=async(e,t={})=>C1.jsYaml.safeDump(e)});var R1=ae((fPe,L1)=>{"use strict";var df=Object.prototype.hasOwnProperty,I1=Object.prototype.toString,A1=Object.defineProperty,M1=Object.getOwnPropertyDescriptor,_1=i(function(t){return typeof Array.isArray=="function"?Array.isArray(t):I1.call(t)==="[object Array]"},"isArray"),P1=i(function(t){if(!t||I1.call(t)!=="[object Object]")return!1;var r=df.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&df.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var o;for(o in t);return typeof o>"u"||df.call(t,o)},"isPlainObject"),N1=i(function(t,r){A1&&r.name==="__proto__"?A1(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},"setProperty"),F1=i(function(t,r){if(r==="__proto__")if(df.call(t,r)){if(M1)return M1(t,r).value}else return;return t[r]},"getProperty");L1.exports=i(function e(){var t,r,n,o,s,a,l=arguments[0],u=1,c=arguments.length,f=!1;for(typeof l=="boolean"&&(f=l,l=arguments[1]||{},u=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});u<c;++u)if(t=arguments[u],t!=null)for(r in t)n=F1(l,r),o=F1(t,r),l!==o&&(f&&o&&(P1(o)||(s=_1(o)))?(s?(s=!1,a=n&&_1(n)?n:[]):a=n&&P1(n)?n:{},N1(l,{name:r,newValue:e(f,a,o)})):typeof o<"u"&&N1(l,{name:r,newValue:o}));return l},"extend")});var bE=ae((_Ue,fg)=>{(function(){var e;typeof fg<"u"?e=fg.exports=n:e=(function(){return this||(0,eval)("this")})(),e.format=n,e.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(n.apply(null,arguments))}i(t,"printf");function r(o,s){return n.apply(null,[o].concat(s))}i(r,"vsprintf");function n(o){for(var s=1,a=[].slice.call(arguments),l=0,u=o.length,c="",f,p=!1,h,m,d=!1,g,x=i(function(){return a[s++]},"nextArg"),b=i(function(){for(var T="";/\d/.test(o[l]);)T+=o[l++],f=o[l];return T.length>0?parseInt(T):null},"slurpNumber");l<u;++l)if(f=o[l],p)switch(p=!1,f=="."?(d=!1,f=o[++l]):f=="0"&&o[l+1]=="."?(d=!0,l+=2,f=o[l]):d=!0,g=b(),f){case"b":c+=parseInt(x(),10).toString(2);break;case"c":h=x(),typeof h=="string"||h instanceof String?c+=h:c+=String.fromCharCode(parseInt(h,10));break;case"d":c+=parseInt(x(),10);break;case"f":m=String(parseFloat(x()).toFixed(g||6)),c+=d?m:m.replace(/^0/,"");break;case"j":c+=JSON.stringify(x());break;case"o":c+="0"+parseInt(x(),10).toString(8);break;case"s":c+=x();break;case"x":c+="0x"+parseInt(x(),10).toString(16);break;case"X":c+="0x"+parseInt(x(),10).toString(16).toUpperCase();break;default:c+=f;break}else f==="%"?p=!0:c+=f;return c}i(n,"format")})()});var oC=ae(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0}),fr.PathError=fr.TokenData=void 0,fr.parse=Zg,fr.compile=bU,fr.match=kU,fr.pathToRegexp=tC,fr.stringify=TU;var Jg="/",Xg=i(e=>e,"NOOP_VALUE"),gU=/^[$_\p{ID_Start}]$/u,KD=/^[$\u200c\u200d\p{ID_Continue}]$/u,xU=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u,yU="{}()[]+?!";function wU(e){return e.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}i(wU,"escapeText");function Rn(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}i(Rn,"escape");var pp=class{static{i(this,"TokenData")}constructor(t,r){this.tokens=t,this.originalPath=r}};fr.TokenData=pp;var Bn=class extends TypeError{static{i(this,"PathError")}constructor(t,r){let n=t;r&&(n+=`: ${r}`),n+="; visit https://git.new/pathToRegexpError for info",super(n),this.originalPath=r}};fr.PathError=Bn;function Zg(e,t={}){let{encodePath:r=Xg}=t,n=[...e],o=[],s=0,a=0;function l(){let c="";if(gU.test(n[s]))do c+=n[s++];while(KD.test(n[s]));else if(n[s]==='"'){let f=s;for(;s<n.length;){if(n[++s]==='"'){s++,f=0;break}n[s]==="\\"&&s++,c+=n[s]}if(f)throw new Bn(`Unterminated quote at index ${f}`,e)}if(!c)throw new Bn(`Missing parameter name at index ${s}`,e);return c}for(i(l,"name");s<n.length;){let c=n[s++];yU.includes(c)?o.push({type:c,index:s,value:c}):c==="\\"?o.push({type:"escape",index:s,value:n[s++]}):c===":"?o.push({type:"param",index:s,value:l()}):c==="*"?o.push({type:"wildcard",index:s,value:l()}):o.push({type:"char",index:s,value:c})}o.push({type:"end",index:s,value:""});function u(c){let f=[];for(;;){let p=o[a++];if(p.type===c)break;if(p.type==="char"||p.type==="escape"){let h=p.value,m=o[a];for(;m.type==="char"||m.type==="escape";)h+=m.value,m=o[++a];f.push({type:"text",value:r(h)});continue}if(p.type==="param"||p.type==="wildcard"){f.push({type:p.type,name:p.value});continue}if(p.type==="{"){f.push({type:"group",tokens:u("}")});continue}throw new Bn(`Unexpected ${p.type} at index ${p.index}, expected ${c}`,e)}return f}return i(u,"consumeUntil"),new pp(u("end"),e)}i(Zg,"parse");function bU(e,t={}){let{encode:r=encodeURIComponent,delimiter:n=Jg}=t,o=typeof e=="object"?e:Zg(e,t),s=eC(o.tokens,n,r);return i(function(l={}){let[u,...c]=s(l);if(c.length)throw new TypeError(`Missing parameters: ${c.join(", ")}`);return u},"path")}i(bU,"compile");function eC(e,t,r){let n=e.map(o=>vU(o,t,r));return o=>{let s=[""];for(let a of n){let[l,...u]=a(o);s[0]+=l,s.push(...u)}return s}}i(eC,"tokensToFunction");function vU(e,t,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){let o=eC(e.tokens,t,r);return s=>{let[a,...l]=o(s);return l.length?[""]:[a]}}let n=r||Xg;return e.type==="wildcard"&&r!==!1?o=>{let s=o[e.name];if(s==null)return["",e.name];if(!Array.isArray(s)||s.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[s.map((a,l)=>{if(typeof a!="string")throw new TypeError(`Expected "${e.name}/${l}" to be a string`);return n(a)}).join(t)]}:o=>{let s=o[e.name];if(s==null)return["",e.name];if(typeof s!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[n(s)]}}i(vU,"tokenToFunction");function kU(e,t={}){let{decode:r=decodeURIComponent,delimiter:n=Jg}=t,{regexp:o,keys:s}=tC(e,t),a=s.map(l=>r===!1?Xg:l.type==="param"?r:u=>u.split(n).map(r));return i(function(u){let c=o.exec(u);if(!c)return!1;let f=c[0],p=Object.create(null);for(let h=1;h<c.length;h++){if(c[h]===void 0)continue;let m=s[h-1],d=a[h-1];p[m.name]=d(c[h])}return{path:f,params:p}},"match")}i(kU,"match");function tC(e,t={}){let{delimiter:r=Jg,end:n=!0,sensitive:o=!1,trailing:s=!0}=t,a=new Kg("^"),l=[e],u=0;for(;l.length;){let p=l.shift();if(Array.isArray(p)){l.push(...p);continue}let h=typeof p=="object"?p:Zg(p,t);ex(h.tokens,0,[],m=>{if(u++>=256)throw new Bn("Too many path combinations",h.originalPath);let d=a;for(let g of SU(m,r,h.originalPath))d=d.add(g.source,g.key);d.add("")})}let c=[],f=rC(a,c);return s&&(f+="(?:"+Rn(r)+"$)?"),f+=n?"$":"(?="+Rn(r)+"|$)",{regexp:new RegExp(f,o?"":"i"),keys:c}}i(tC,"pathToRegexp");function rC(e,t){e.key&&t.push(e.key);let r=Object.keys(e.children),n=r.map(o=>rC(e.children[o],t)).join("|");return e.source+(r.length<2?n:`(?:${n})`)}i(rC,"toRegExp");var Kg=class e{static{i(this,"SourceNode")}constructor(t,r){this.source=t,this.key=r,this.children=Object.create(null)}add(t,r){var n;let o=t+":"+(r?r.name:"");return(n=this.children)[o]||(n[o]=new e(t,r))}};function ex(e,t,r,n){for(;t<e.length;){let o=e[t++];if(o.type==="group"){ex(o.tokens,0,r.slice(),s=>ex(e,t,s,n));continue}r.push(o)}n(r)}i(ex,"flatten");function SU(e,t,r){let n=[],o="",s="",a=0,l=0,u=0;function c(p,h){for(;p<e.length;){let m=e[p++];if(m.type===h)return!0;if(m.type==="text"&&m.value.includes(t))break}return!1}i(c,"hasInSegment");function f(p){let h="";for(;p<e.length;){let m=e[p++];if(m.type!=="text")break;h+=m.value}return h}for(i(f,"peekText");u<e.length;){let p=e[u++];if(p.type==="text"){n.push({source:Rn(p.value)}),o+=p.value,a===2&&(s+=p.value),p.value.includes(t)&&(l=0);continue}if(p.type==="param"||p.type==="wildcard"){if(a&&!o)throw new Bn(`Missing text before "${p.name}" ${p.type}`,r);p.type==="param"?(n.push({source:l?`(${zn(t,o)}+?)`:c(u,"wildcard")?`(${zn(t,f(u))}+?)`:`(${zn(t,"")}+?)`,key:p}),l|=a=1):(n.push({source:l&2?`(${zn(o,"")}+?)`:l&1?`(${zn(s,"")}+?)`:s?`(${zn(s,"")}+?|${zn(t,"")}+?)`:"([^]+?)",key:p}),s="",l|=a=2),o="";continue}throw new TypeError(`Unknown token type: ${p.type}`)}return n}i(SU,"toRegExpSource");function zn(e,t){return t.length>e.length?zn(t,e):(e===t&&(t=""),t.length>1?`(?:(?!${Rn(e)}|${Rn(t)})[^])`:e.length>1?`(?:(?!${Rn(e)})[^${Rn(t)}])`:`[^${Rn(e+t)}]`)}i(zn,"negate");function nC(e,t){let r="";for(;t<e.length;){let n=e[t++];if(n.type==="text"){r+=wU(n.value);continue}if(n.type==="group"){r+="{"+nC(n.tokens,0)+"}";continue}if(n.type==="param"){r+=":"+iC(n.name,e[t]);continue}if(n.type==="wildcard"){r+="*"+iC(n.name,e[t]);continue}throw new TypeError(`Unknown token type: ${n.type}`)}return r}i(nC,"stringifyTokens");function TU(e){return nC(e.tokens,0)}i(TU,"stringify");function iC(e,t){return!xU.test(e)||t?.type==="text"&&KD.test(t.value[0])?JSON.stringify(e):e}i(iC,"stringifyName")});var Ax=ae((Ox,Ix)=>{(function(e,t){typeof Ox=="object"&&typeof Ix<"u"?Ix.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(Ox,function(){"use strict";var e=i(function(){return e=Object.assign||i(function(k){for(var C,I=1,F=arguments.length;I<F;I++){C=arguments[I];for(var te in C)Object.prototype.hasOwnProperty.call(C,te)&&(k[te]=C[te])}return k},"__assign"),e.apply(this,arguments)},"__assign"),t=!!(typeof window<"u"&&window.document&&window.document.createElement),r=t?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=(function(){var E=!1;if(!t)return E;try{var k=window,C=Object.defineProperty({},"passive",{get:i(function(){E=!0},"get")});k.addEventListener("test",null,C),k.removeEventListener("test",null,C)}catch{}return E})(),o=i(function(E){return typeof E=="string"},"isString"),s=i(function(E){return typeof E=="function"},"isFunction"),a=i(function(E){return Array.isArray(E)},"isArray"),l=i(function(E){return!a(E)&&E-parseFloat(E)+1>=0},"isNumeric"),u=i(function(E,k){return E&&E.hasOwnProperty(k)},"hasProp"),c=t?window.requestAnimationFrame.bind(window):null,f=t?window.cancelAnimationFrame.bind(window):null,p=Math.cos,h=Math.sin,m=Math.pow,d=Math.sqrt,g=Math.PI,x={linear:i(function(E){return E},"linear"),easeInQuad:i(function(E,k,C,I,F){return I*(k/=F)*k+C},"easeInQuad"),easeOutQuad:i(function(E,k,C,I,F){return-I*(k/=F)*(k-2)+C},"easeOutQuad"),easeInOutQuad:i(function(E,k,C,I,F){return(k/=F/2)<1?I/2*k*k+C:-I/2*(--k*(k-2)-1)+C},"easeInOutQuad"),easeInCubic:i(function(E,k,C,I,F){return I*(k/=F)*k*k+C},"easeInCubic"),easeOutCubic:i(function(E,k,C,I,F){return I*((k=k/F-1)*k*k+1)+C},"easeOutCubic"),easeInOutCubic:i(function(E,k,C,I,F){return(k/=F/2)<1?I/2*k*k*k+C:I/2*((k-=2)*k*k+2)+C},"easeInOutCubic"),easeInQuart:i(function(E,k,C,I,F){return I*(k/=F)*k*k*k+C},"easeInQuart"),easeOutQuart:i(function(E,k,C,I,F){return-I*((k=k/F-1)*k*k*k-1)+C},"easeOutQuart"),easeInOutQuart:i(function(E,k,C,I,F){return(k/=F/2)<1?I/2*k*k*k*k+C:-I/2*((k-=2)*k*k*k-2)+C},"easeInOutQuart"),easeInQuint:i(function(E,k,C,I,F){return I*(k/=F)*k*k*k*k+C},"easeInQuint"),easeOutQuint:i(function(E,k,C,I,F){return I*((k=k/F-1)*k*k*k*k+1)+C},"easeOutQuint"),easeInOutQuint:i(function(E,k,C,I,F){return(k/=F/2)<1?I/2*k*k*k*k*k+C:I/2*((k-=2)*k*k*k*k+2)+C},"easeInOutQuint"),easeInSine:i(function(E,k,C,I,F){return-I*p(k/F*(g/2))+I+C},"easeInSine"),easeOutSine:i(function(E,k,C,I,F){return I*h(k/F*(g/2))+C},"easeOutSine"),easeInOutSine:i(function(E,k,C,I,F){return-I/2*(p(g*k/F)-1)+C},"easeInOutSine"),easeInExpo:i(function(E,k,C,I,F){return k===0?C:I*m(2,10*(k/F-1))+C},"easeInExpo"),easeOutExpo:i(function(E,k,C,I,F){return k===F?C+I:I*(-m(2,-10*k/F)+1)+C},"easeOutExpo"),easeInOutExpo:i(function(E,k,C,I,F){return k===0?C:k===F?C+I:(k/=F/2)<1?I/2*m(2,10*(k-1))+C:I/2*(-m(2,-10*--k)+2)+C},"easeInOutExpo"),easeInCirc:i(function(E,k,C,I,F){return-I*(d(1-(k/=F)*k)-1)+C},"easeInCirc"),easeOutCirc:i(function(E,k,C,I,F){return I*d(1-(k=k/F-1)*k)+C},"easeOutCirc"),easeInOutCirc:i(function(E,k,C,I,F){return(k/=F/2)<1?-I/2*(d(1-k*k)-1)+C:I/2*(d(1-(k-=2)*k)+1)+C},"easeInOutCirc")},b=i(function(E){return Array.prototype.slice.call(E?document.querySelectorAll(E):[])},"$$"),T=i(function(E){return b(E).shift()||null},"$"),D=i(function(E){return E instanceof Element},"isElement"),q=i(function(E){return E===window},"isWindow"),H=i(function(E){return E===document.documentElement||E===document.body},"isRootContainer"),O=i(function(E,k){if(D(k))return E===k;for(var C=b(k),I=C.length;--I>=0&&C[I]!==E;);return I>-1},"matches"),$=i(function(E){return Math.max(E.scrollHeight,E.clientHeight,E.offsetHeight)},"getHeight"),K=i(function(E){return Math.max(E.scrollWidth,E.clientWidth,E.offsetWidth)},"getWidth"),Y=i(function(E){return{width:K(E),height:$(E)}},"getSize"),A=i(function(E){var k=q(E)||H(E);return{viewport:{width:k?Math.min(window.innerWidth,document.documentElement.clientWidth):E.clientWidth,height:k?window.innerHeight:E.clientHeight},size:k?{width:Math.max(K(document.body),K(document.documentElement)),height:Math.max($(document.body),$(document.documentElement))}:Y(E)}},"getViewportAndElementSizes"),De={y:"scrollTop",x:"scrollLeft"},U={y:"pageYOffset",x:"pageXOffset"},M=i(function(E,k){return q(E)?E[U[k]]:E[De[k]]},"getScroll"),P=i(function(E,k,C){if(q(E)){var I=C==="y";E.scrollTo(I?E.pageXOffset:k,I?k:E.pageYOffset)}else E[De[C]]=k},"setScroll"),L=i(function(E,k){var C=E.getBoundingClientRect();if(C.width||C.height){var I={top:0,left:0},F=void 0;if(q(k)||H(k))F=document.documentElement,I.top=window[U.y],I.left=window[U.x];else{F=k;var te=F.getBoundingClientRect();I.top=te.top*-1+F[De.y],I.left=te.left*-1+F[De.x]}return{top:C.top+I.top-F.clientTop,left:C.left+I.left-F.clientLeft}}return C},"getOffset"),B=(function(){return t?"onwheel"in document?"wheel":"mousewheel":"wheel"})(),V=i(function(E){return E==="wheel"?B:E},"eventName"),X=i(function(E,k,C,I,F){C.split(" ").forEach(function(te){E[k](V(te),I,n?{passive:F}:!1)})},"apply"),ue=i(function(E,k,C,I){return X(E,"addEventListener",k,C,I)},"addEvent"),w=i(function(E,k,C,I){return X(E,"removeEventListener",k,C,I)},"removeEvent"),ge=/^(\+|-)=(\d+(?:\.\d+)?)$/,be=i(function(E,k){var C={top:0,left:0,relative:!1};if(u(E,"top")||u(E,"left"))C=e({},C,E);else if(a(E))if(E.length>1)C.top=E[0],C.left=E[1];else if(E.length===1)C.top=k?E[0]:0,C.left=k?0:E[0];else return null;else if(l(E))k?C.top=E:C.left=E;else if(o(E)){var I=E.trim().match(ge);if(!I)return null;var F=I[1],te=parseInt(I[2],10);F==="+"?(C.top=k?te:0,C.left=k?0:te):(C.top=k?-te:0,C.left=k?0:-te),C.relative=!0}else return null;return C},"parseCoordinate"),S={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,easing:"easeOutQuint",offset:0,vertical:!0,horizontal:!1,cancellable:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,before:null,after:null,cancel:null,complete:null,step:null},Ne="click",Ue="wheel touchstart touchmove",Lt=(function(){function E(k,C){var I=this;this.$el=null,this.ctx={$trigger:null,opts:null,progress:!1,pos:null,startPos:null,easing:null,start:0,id:0,cancel:!1,hash:null},this.loop=function(te){var _e=I,Ae=_e.$el,ve=_e.ctx;if(ve.start||(ve.start=te),!ve.progress||!Ae){I.stop();return}var Ot=ve.opts,rt=ve.pos,vt=ve.start,er=ve.startPos,hr=ve.easing,Rt=Ot.duration,qt={top:"y",left:"x"},It=te-vt,Re=Math.min(1,Math.max(It/Rt,0));Object.keys(rt).forEach(function(mr){var _=rt[mr],z=er[mr],ie=_-z;if(ie!==0){var ce=hr(Re,Rt*Re,0,1,Rt);P(Ae,Math.round(z+ie*ce),qt[mr])}}),It<=Rt?(I.hook(Ot,"step",Re),ve.id=E.raf(I.loop)):I.stop(!0)},this.handleClick=function(te){for(var _e=I.opts,Ae=te.target;Ae&&Ae!==document;Ae=Ae.parentNode)if(O(Ae,_e.trigger)){var ve=JSON.parse(Ae.getAttribute("data-scroll-options")||"{}"),Ot=Ae.getAttribute("data-scroll"),rt=Ot||Ae.getAttribute("href"),vt=e({},_e,ve),er=vt.preventDefault,hr=vt.stopPropagation,Rt=vt.vertical,qt=vt.horizontal;er&&te.preventDefault(),hr&&te.stopPropagation(),I.ctx.$trigger=Ae,qt&&Rt?I.to(rt,vt):Rt?I.toTop(rt,vt):qt&&I.toLeft(rt,vt);break}},this.handleStop=function(te){var _e=I.ctx,Ae=_e.opts;Ae&&Ae.cancellable?(_e.cancel=!0,I.stop()):te.preventDefault()},this.opts=e({},S,k||{});var F=null;t&&(typeof C=="string"?F=T(C):C!=null?F=C:F=window),this.$el=F,F&&this.bind(!0,!1)}return i(E,"SweetScroll"),E.create=function(k,C){return new E(k,C)},E.prototype.to=function(k,C){if(t){var I=this,F=I.$el,te=I.ctx,_e=I.opts,Ae=te.$trigger,ve=e({},_e,C||{}),Ot=ve.offset,rt=ve.vertical,vt=ve.horizontal,er=D(ve.header)?ve.header:T(ve.header),hr=/^#/,Rt=o(k)&&hr.test(k)?k:null;if(te.opts=ve,te.cancel=!1,te.hash=Rt,this.stop(),!!F){var qt=be(Ot,rt),It=be(k,rt),Re={top:0,left:0};if(It)if(It.relative){var mr=M(F,rt?"y":"x");Re.top=rt?mr+It.top:It.top,Re.left=rt?It.left:mr+It.left}else Re=It;else if(o(k)&&k!=="#"){var _=T(k);if(!_)return;Re=L(_,F)}qt&&(Re.top+=qt.top,Re.left+=qt.left),er&&(Re.top=Math.max(0,Re.top-Y(er).height));var z=A(F),ie=z.viewport,ce=z.size;if(Re.top=rt?Math.max(0,Math.min(ce.height-ie.height,Re.top)):M(F,"y"),Re.left=vt?Math.max(0,Math.min(ce.width-ie.width,Re.left)):M(F,"x"),this.hook(ve,"before",Re,Ae)===!1){te.opts=null;return}te.pos=Re,this.start(ve),this.bind(!1,!0)}}},E.prototype.toTop=function(k,C){this.to(k,e({},C||{},{vertical:!0,horizontal:!1}))},E.prototype.toLeft=function(k,C){this.to(k,e({},C||{},{vertical:!1,horizontal:!0}))},E.prototype.toElement=function(k,C){var I=this.$el;!t||!I||this.to(L(k,I),C||{})},E.prototype.stop=function(k){k===void 0&&(k=!1);var C=this,I=C.$el,F=C.ctx,te=F.pos;!I||!F.progress||(E.caf(F.id),F.progress=!1,F.start=0,F.id=0,k&&te&&(P(I,te.left,"x"),P(I,te.top,"y")),this.complete())},E.prototype.update=function(k){if(this.$el){var C=e({},this.opts,k);this.stop(),this.unbind(!0,!0),this.opts=C,this.bind(!0,!1)}},E.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},E.prototype.onBefore=function(k,C){return!0},E.prototype.onStep=function(k){},E.prototype.onAfter=function(k,C){},E.prototype.onCancel=function(){},E.prototype.onComplete=function(k){},E.prototype.start=function(k){var C=this.ctx;C.opts=k,C.progress=!0,C.easing=s(k.easing)?k.easing:x[k.easing];var I=this.$el,F={top:M(I,"y"),left:M(I,"x")};C.startPos=F,C.id=E.raf(this.loop)},E.prototype.complete=function(){var k=this,C=k.$el,I=k.ctx,F=I.hash,te=I.cancel,_e=I.opts,Ae=I.pos,ve=I.$trigger;if(!(!C||!_e)){if(F!=null&&F!==window.location.hash){var Ot=_e.updateURL;t&&r&&Ot!==!1&&window.history[Ot==="replace"?"replaceState":"pushState"](null,"",F)}this.unbind(!1,!0),I.opts=null,I.$trigger=null,te?this.hook(_e,"cancel"):this.hook(_e,"after",Ae,ve),this.hook(_e,"complete",te)}},E.prototype.hook=function(k,C){for(var I=[],F=2;F<arguments.length;F++)I[F-2]=arguments[F];var te,_e=k[C],Ae,ve;return s(_e)&&(Ae=_e.apply(this,I.concat([this]))),ve=(te=this)["on"+(C[0].toUpperCase()+C.slice(1))].apply(te,I),Ae!==void 0?Ae:ve},E.prototype.bind=function(k,C){var I=this,F=I.$el,te=I.ctx.opts;F&&(k&&ue(F,Ne,this.handleClick,!1),C&&ue(F,Ue,this.handleStop,te?te.cancellable:!0))},E.prototype.unbind=function(k,C){var I=this,F=I.$el,te=I.ctx.opts;F&&(k&&w(F,Ne,this.handleClick,!1),C&&w(F,Ue,this.handleStop,te?te.cancellable:!0))},E.raf=c,E.caf=f,E})();return Lt})});var Wx={};se(Wx,{setup:()=>Nj,staticStyles:()=>_j,styles:()=>Pj});var pa={};se(pa,{DeesComms:()=>Lm});var he={};se(he,{Timeout:()=>cl,delayFor:()=>Zx,delayForRandom:()=>aO});var J={};se(J,{CumulativeDeferred:()=>ul,Deferred:()=>ll,cumulativeDefer:()=>eO,defer:()=>on,fromCallback:()=>sO,getFirstTrueOrFalse:()=>oO,map:()=>nO,rejectedPromise:()=>rO,resolvedPromise:()=>tO,timeoutAndContinue:()=>iO,timeoutWrap:()=>Xx});var ll=class{static{i(this,"Deferred")}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((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},on=i(()=>new ll,"defer");var ul=class{static{i(this,"CumulativeDeferred")}constructor(){this.accumulatedPromises=[],this.deferred=on(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}subDefer(){let t=on();return this.addPromise(t.promise),t}addPromise(t){this.accumulatedPromises.push(t)}},eO=i(()=>new ul,"cumulativeDefer");var tO=i(e=>Promise.resolve(e),"resolvedPromise"),rO=i(e=>Promise.reject(e),"rejectedPromise"),nO=i(async(e,t)=>{let r=[],n=[];for(let o of e){let s=t(o);r.push(s),s.then(a=>{n.push(a)})}return await Promise.all(r),n},"map"),Xx=i(async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),"timeoutWrap"),iO=i(async(e,t=6e4)=>Xx(e,t,!1),"timeoutAndContinue"),oO=i(async e=>{let t=on();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise},"getFirstTrueOrFalse"),sO=i(e=>new Promise((t,r)=>{e((n,o)=>{n?r(n):t(o)})}),"fromCallback");var Zx=i(async(e,t,r=!1)=>(await new cl(e,null,r).promise,t),"delayFor"),aO=i(async(e,t,r,n=!1)=>(await Zx(Math.random()*(t-e)+e,null,n),r),"delayForRandom"),cl=class{static{i(this,"Timeout")}constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=on(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},t),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let t=this.started+this.timeoutInMillis-Date.now();return t>0?t:0}};var Zi={};var Dt={};se(Dt,{TypedHandler:()=>Cm,TypedRequest:()=>tf,TypedResponseError:()=>ar,TypedRouter:()=>gi,TypedTarget:()=>Om,VirtualStream:()=>lr});var Ze={};se(Ze,{AsyncExecutionStack:()=>Nh,BackpressuredArray:()=>Fh,FastMap:()=>ui,Interest:()=>Qs,InterestMap:()=>Lh,LimitedArray:()=>Rh,LoopTracker:()=>Bh,ObjectMap:()=>qr,Stringmap:()=>Gs,TimedAggregator:()=>Js,TimedAggregtor:()=>Js,Tree:()=>zh,uni:()=>V0});var Ts={};se(Ts,{SmartMatch:()=>Wp});var Ss={};se(Ss,{isMatch:()=>fO,matcher:()=>cO});function Qn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}i(Qn,"escapeStringRegexp");var Hp=new Map,Kx=i((e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},"sanitizeArray"),uO=i((e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(Hp.has(r))return Hp.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Qn(e).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return o.negated=n,Hp.set(r,o),o},"makeRegexp"),ey=i((e,t,r,n)=>{if(e=Kx(e,"inputs"),t=Kx(t,"patterns"),t.length===0)return[];t=t.map(a=>uO(a,r));let{allPatterns:o}=r||{},s=[];for(let a of e){let l,u=[...t].fill(!1);for(let[c,f]of t.entries())if(f.test(a)&&(u[c]=!0,l=!f.negated,!l))break;if(!(l===!1||l===void 0&&t.some(c=>!c.negated)||o&&u.some((c,f)=>!c&&!t[f].negated))&&(s.push(a),n))break}return s},"baseMatcher");function cO(e,t,r){return ey(e,t,r,!1)}i(cO,"matcher");function fO(e,t,r){return ey(e,t,r,!0).length>0}i(fO,"isMatch");var Wp=class{static{i(this,"SmartMatch")}constructor(t){this.wildcard=t}match(t){return Ss.isMatch(t,this.wildcard)}};var Ce={};se(Ce,{ObservableIntake:()=>hh,Observablemap:()=>ph,fromStreamWithBackpressure:()=>VA,rxjs:()=>lo});var lo={};se(lo,{Observable:()=>ye,ReplaySubject:()=>ro,Subject:()=>_t,Subscription:()=>Mt,from:()=>kr,fromEvent:()=>Kn,of:()=>As,ops:()=>YA});var Up=i(function(e,t){return Up=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Up(e,t)},"extendStatics");function Ge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Up(e,t);function r(){this.constructor=e}i(r,"__"),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}i(Ge,"__extends");var jp=i(function(){return jp=Object.assign||i(function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},"__assign"),jp.apply(this,arguments)},"__assign");function mO(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}i(mO,"__rest");function dO(e,t,r,n){var o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(o<3?a(s):o>3?a(t,r,s):a(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}i(dO,"__decorate");function gO(e,t){return function(r,n){t(r,n,e)}}i(gO,"__param");function xO(e,t,r,n,o,s){function a(b){if(b!==void 0&&typeof b!="function")throw new TypeError("Function expected");return b}i(a,"accept");for(var l=n.kind,u=l==="getter"?"get":l==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),p,h=!1,m=r.length-1;m>=0;m--){var d={};for(var g in n)d[g]=g==="access"?{}:n[g];for(var g in n.access)d.access[g]=n.access[g];d.addInitializer=function(b){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(b||null))};var x=(0,r[m])(l==="accessor"?{get:f.get,set:f.set}:f[u],d);if(l==="accessor"){if(x===void 0)continue;if(x===null||typeof x!="object")throw new TypeError("Object expected");(p=a(x.get))&&(f.get=p),(p=a(x.set))&&(f.set=p),(p=a(x.init))&&o.unshift(p)}else(p=a(x))&&(l==="field"?o.unshift(p):f[u]=p)}c&&Object.defineProperty(c,n.name,f),h=!0}i(xO,"__esDecorate");function yO(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}i(yO,"__runInitializers");function wO(e){return typeof e=="symbol"?e:"".concat(e)}i(wO,"__propKey");function bO(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}i(bO,"__setFunctionName");function vO(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}i(vO,"__metadata");function Vp(e,t,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function l(f){try{c(n.next(f))}catch(p){a(p)}}i(l,"fulfilled");function u(f){try{c(n.throw(f))}catch(p){a(p)}}i(u,"rejected");function c(f){f.done?s(f.value):o(f.value).then(l,u)}i(c,"step"),c((n=n.apply(e,t||[])).next())})}i(Vp,"__awaiter");function Es(e,t){var r={label:0,sent:i(function(){if(s[0]&1)throw s[1];return s[1]},"sent"),trys:[],ops:[]},n,o,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(c){return function(f){return u([c,f])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,o&&(s=c[0]&2?o.return:c[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,c[1])).done)return s;switch(o=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(f){c=[6,f],o=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}i(Es,"__generator");var qp=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});function kO(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&qp(t,e,r)}i(kO,"__exportStar");function ft(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:i(function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}i(ft,"__values");function at(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return s}i(at,"__read");function SO(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(at(arguments[t]));return e}i(SO,"__spread");function TO(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var s=arguments[t],a=0,l=s.length;a<l;a++,o++)n[o]=s[a];return n}i(TO,"__spreadArrays");function At(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}i(At,"__spreadArray");function jr(e){return this instanceof jr?(this.v=e,this):new jr(e)}i(jr,"__await");function Qp(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,s=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(m){return function(d){return Promise.resolve(d).then(m,p)}}function l(m,d){n[m]&&(o[m]=function(g){return new Promise(function(x,b){s.push([m,g,x,b])>1||u(m,g)})},d&&(o[m]=d(o[m])))}function u(m,d){try{c(n[m](d))}catch(g){h(s[0][3],g)}}function c(m){m.value instanceof jr?Promise.resolve(m.value.v).then(f,p):h(s[0][2],m)}function f(m){u("next",m)}function p(m){u("throw",m)}function h(m,d){m(d),s.shift(),s.length&&u(s[0][0],s[0][1])}}i(Qp,"__asyncGenerator");function EO(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,s){t[o]=e[o]?function(a){return(r=!r)?{value:jr(e[o](a)),done:!1}:s?s(a):a}:s}}i(EO,"__asyncDelegator");function Gp(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof ft=="function"?ft(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=e[s]&&function(a){return new Promise(function(l,u){a=e[s](a),o(l,u,a.done,a.value)})}}function o(s,a,l,u){Promise.resolve(u).then(function(c){s({value:c,done:l})},a)}}i(Gp,"__asyncValues");function DO(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}i(DO,"__makeTemplateObject");var CO=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},Yp=i(function(e){return Yp=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Yp(e)},"ownKeys");function OO(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Yp(e),n=0;n<r.length;n++)r[n]!=="default"&&qp(t,e,r[n]);return CO(t,e),t}i(OO,"__importStar");function IO(e){return e&&e.__esModule?e:{default:e}}i(IO,"__importDefault");function AO(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}i(AO,"__classPrivateFieldGet");function MO(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}i(MO,"__classPrivateFieldSet");function _O(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}i(_O,"__classPrivateFieldIn");function PO(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=i(function(){try{o.call(this)}catch(s){return Promise.reject(s)}},"dispose")),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}i(PO,"__addDisposableResource");var NO=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function FO(e){function t(s){e.error=e.hasError?new NO(s,e.error,"An error was suppressed during disposal."):s,e.hasError=!0}i(t,"fail");var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var s=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(s).then(o,function(a){return t(a),o()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i(o,"next"),o()}i(FO,"__disposeResources");function LO(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,o,s,a){return n?t?".jsx":".js":o&&(!s||!a)?r:o+s+"."+a.toLowerCase()+"js"}):e}i(LO,"__rewriteRelativeImportExtension");var f3={__extends:Ge,__assign:jp,__rest:mO,__decorate:dO,__param:gO,__esDecorate:xO,__runInitializers:yO,__propKey:wO,__setFunctionName:bO,__metadata:vO,__awaiter:Vp,__generator:Es,__createBinding:qp,__exportStar:kO,__values:ft,__read:at,__spread:SO,__spreadArrays:TO,__spreadArray:At,__await:jr,__asyncGenerator:Qp,__asyncDelegator:EO,__asyncValues:Gp,__makeTemplateObject:DO,__importStar:OO,__importDefault:IO,__classPrivateFieldGet:AO,__classPrivateFieldSet:MO,__classPrivateFieldIn:_O,__addDisposableResource:PO,__disposeResources:FO,__rewriteRelativeImportExtension:LO};function fe(e){return typeof e=="function"}i(fe,"isFunction");function pl(e){var t=i(function(n){Error.call(n),n.stack=new Error().stack},"_super"),r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}i(pl,"createErrorClass");var Ds=pl(function(e){return i(function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
29
+ `+e.slice(a+1):u+=e.slice(o),u.slice(1)}i(g1,"foldLine");function _2(e){for(var t="",r,n,o,s=0;s<e.length;s++){if(r=e.charCodeAt(s),r>=55296&&r<=56319&&(n=e.charCodeAt(s+1),n>=56320&&n<=57343)){t+=s1((r-55296)*1024+n-56320+65536),s++;continue}o=xt[r],t+=!o&&Zo(r)?e[s]:o||s1(r)}return t}i(_2,"escapeString");function N2(e,t,r){var n="",o=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)ki(e,t,r[s],!1,!1)&&(s!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=o,e.dump="["+n+"]"}i(N2,"writeFlowSequence");function P2(e,t,r,n){var o="",s=e.tag,a,l;for(a=0,l=r.length;a<l;a+=1)ki(e,t+1,r[a],!0,!0)&&((!n||a!==0)&&(o+=qm(e,t)),e.dump&&wa===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=s,e.dump=o||"[]"}i(P2,"writeBlockSequence");function F2(e,t,r){var n="",o=e.tag,s=Object.keys(r),a,l,u,c,f;for(a=0,l=s.length;a<l;a+=1)f="",a!==0&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[a],c=r[u],ki(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ki(e,t,c,!1,!1)&&(f+=e.dump,n+=f));e.tag=o,e.dump="{"+n+"}"}i(F2,"writeFlowMapping");function L2(e,t,r,n){var o="",s=e.tag,a=Object.keys(r),l,u,c,f,p,h;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ya("sortKeys must be a boolean or a function");for(l=0,u=a.length;l<u;l+=1)h="",(!n||l!==0)&&(h+=qm(e,t)),c=a[l],f=r[c],ki(e,t+1,c,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&wa===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,p&&(h+=qm(e,t)),ki(e,t+1,f,!0,p)&&(e.dump&&wa===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,o+=h));e.tag=s,e.dump=o||"{}"}i(L2,"writeBlockMapping");function x1(e,t,r){var n,o,s,a,l,u;for(o=r?e.explicitTypes:e.implicitTypes,s=0,a=o.length;s<a;s+=1)if(l=o[s],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof t=="object"&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(e.tag=r?l.tag:"?",l.represent){if(u=e.styleMap[l.tag]||l.defaultStyle,KS.call(l.represent)==="[object Function]")n=l.represent(t,u);else if(XS.call(l.represent,u))n=l.represent[u](t,u);else throw new ya("!<"+l.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}i(x1,"detectType");function ki(e,t,r,n,o,s){e.tag=null,e.dump=r,x1(e,r,!1)||x1(e,r,!0);var a=KS.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var l=a==="[object Object]"||a==="[object Array]",u,c;if(l&&(u=e.duplicates.indexOf(r),c=u!==-1),(e.tag!==null&&e.tag!=="?"||c||e.indent!==2&&t>0)&&(o=!1),c&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(l&&c&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(L2(e,t,e.dump,o),c&&(e.dump="&ref_"+u+e.dump)):(F2(e,t,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]"){var f=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(P2(e,f,e.dump,o),c&&(e.dump="&ref_"+u+e.dump)):(N2(e,f,e.dump),c&&(e.dump="&ref_"+u+" "+e.dump))}else if(a==="[object String]")e.tag!=="?"&&A2(e,e.dump,t,s);else{if(e.skipInvalid)return!1;throw new ya("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}i(ki,"writeNode");function R2(e,t){var r=[],n=[],o,s;for(Vm(e,r,n),o=0,s=n.length;o<s;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(s)}i(R2,"getDuplicateReferences");function Vm(e,t,r){var n,o,s;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(t.push(e),Array.isArray(e))for(o=0,s=e.length;o<s;o+=1)Vm(e[o],t,r);else for(n=Object.keys(e),o=0,s=n.length;o<s;o+=1)Vm(e[n[o]],t,r)}i(Vm,"inspectNode");function y1(e,t){t=t||{};var r=new E2(t);return r.noRefs||R2(e,r),ki(r,0,e,!0,!0)?r.dump+`
30
+ `:""}i(y1,"dump");function B2(e,t){return y1(e,xa.extend({schema:s2},t))}i(B2,"safeDump"),Qm.exports.dump=y1,Qm.exports.safeDump=B2});var v1=ae((tNe,ze)=>{"use strict";var mf=JS(),b1=w1();function df(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}i(df,"deprecated"),ze.exports.Type=Ze(),ze.exports.Schema=yi(),ze.exports.FAILSAFE_SCHEMA=af(),ze.exports.JSON_SCHEMA=zm(),ze.exports.CORE_SCHEMA=$m(),ze.exports.DEFAULT_SAFE_SCHEMA=Go(),ze.exports.DEFAULT_FULL_SCHEMA=da(),ze.exports.load=mf.load,ze.exports.loadAll=mf.loadAll,ze.exports.safeLoad=mf.safeLoad,ze.exports.safeLoadAll=mf.safeLoadAll,ze.exports.dump=b1.dump,ze.exports.safeDump=b1.safeDump,ze.exports.YAMLException=Vo(),ze.exports.MINIMAL_SCHEMA=af(),ze.exports.SAFE_SCHEMA=Go(),ze.exports.DEFAULT_SCHEMA=da(),ze.exports.scan=df("scan"),ze.exports.parse=df("parse"),ze.exports.compose=df("compose"),ze.exports.addConstructor=df("addConstructor")});var S1=ae((nNe,k1)=>{"use strict";var z2=v1();k1.exports=z2});var T1=ae(Fr=>{"use strict";var $2=Fr&&Fr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:i(function(){return t[r]},"get")})}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),H2=Fr&&Fr.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),U2=Fr&&Fr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&$2(t,e,r);return H2(t,e),t};Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.jsYaml=void 0;var W2=U2(S1());Fr.jsYaml=W2});var D1=ae(Kt=>{"use strict";var j2=Kt&&Kt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:i(function(){return t[r]},"get")})}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),q2=Kt&&Kt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Y2=Kt&&Kt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&j2(t,e,r);return q2(t,e),t};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.objectToYamlString=Kt.yamlStringToObject=void 0;var E1=Y2(T1());Kt.yamlStringToObject=async(e,t={})=>E1.jsYaml.safeLoad(e),Kt.objectToYamlString=async(e,t={})=>E1.jsYaml.safeDump(e)});var F1=ae((cNe,P1)=>{"use strict";var gf=Object.prototype.hasOwnProperty,C1=Object.prototype.toString,I1=Object.defineProperty,O1=Object.getOwnPropertyDescriptor,A1=i(function(t){return typeof Array.isArray=="function"?Array.isArray(t):C1.call(t)==="[object Array]"},"isArray"),M1=i(function(t){if(!t||C1.call(t)!=="[object Object]")return!1;var r=gf.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&gf.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var o;for(o in t);return typeof o>"u"||gf.call(t,o)},"isPlainObject"),_1=i(function(t,r){I1&&r.name==="__proto__"?I1(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},"setProperty"),N1=i(function(t,r){if(r==="__proto__")if(gf.call(t,r)){if(O1)return O1(t,r).value}else return;return t[r]},"getProperty");P1.exports=i(function e(){var t,r,n,o,s,a,l=arguments[0],u=1,c=arguments.length,f=!1;for(typeof l=="boolean"&&(f=l,l=arguments[1]||{},u=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});u<c;++u)if(t=arguments[u],t!=null)for(r in t)n=N1(l,r),o=N1(t,r),l!==o&&(f&&o&&(M1(o)||(s=A1(o)))?(s?(s=!1,a=n&&A1(n)?n:[]):a=n&&M1(n)?n:{},_1(l,{name:r,newValue:e(f,a,o)})):typeof o<"u"&&_1(l,{name:r,newValue:o}));return l},"extend")});var yE=ae((MWe,fg)=>{(function(){var e;typeof fg<"u"?e=fg.exports=n:e=(function(){return this||(0,eval)("this")})(),e.format=n,e.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(n.apply(null,arguments))}i(t,"printf");function r(o,s){return n.apply(null,[o].concat(s))}i(r,"vsprintf");function n(o){for(var s=1,a=[].slice.call(arguments),l=0,u=o.length,c="",f,p=!1,h,m,d=!1,g,x=i(function(){return a[s++]},"nextArg"),b=i(function(){for(var T="";/\d/.test(o[l]);)T+=o[l++],f=o[l];return T.length>0?parseInt(T):null},"slurpNumber");l<u;++l)if(f=o[l],p)switch(p=!1,f=="."?(d=!1,f=o[++l]):f=="0"&&o[l+1]=="."?(d=!0,l+=2,f=o[l]):d=!0,g=b(),f){case"b":c+=parseInt(x(),10).toString(2);break;case"c":h=x(),typeof h=="string"||h instanceof String?c+=h:c+=String.fromCharCode(parseInt(h,10));break;case"d":c+=parseInt(x(),10);break;case"f":m=String(parseFloat(x()).toFixed(g||6)),c+=d?m:m.replace(/^0/,"");break;case"j":c+=JSON.stringify(x());break;case"o":c+="0"+parseInt(x(),10).toString(8);break;case"s":c+=x();break;case"x":c+="0x"+parseInt(x(),10).toString(16);break;case"X":c+="0x"+parseInt(x(),10).toString(16).toUpperCase();break;default:c+=f;break}else f==="%"?p=!0:c+=f;return c}i(n,"format")})()});var nC=ae(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0}),fr.PathError=fr.TokenData=void 0,fr.parse=Xg,fr.compile=yW,fr.match=bW,fr.pathToRegexp=ZD,fr.stringify=kW;var Jg="/",Kg=i(e=>e,"NOOP_VALUE"),mW=/^[$_\p{ID_Start}]$/u,KD=/^[$\u200c\u200d\p{ID_Continue}]$/u,dW=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u,gW="{}()[]+?!";function xW(e){return e.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}i(xW,"escapeText");function Rn(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}i(Rn,"escape");var hp=class{static{i(this,"TokenData")}constructor(t,r){this.tokens=t,this.originalPath=r}};fr.TokenData=hp;var Bn=class extends TypeError{static{i(this,"PathError")}constructor(t,r){let n=t;r&&(n+=`: ${r}`),n+="; visit https://git.new/pathToRegexpError for info",super(n),this.originalPath=r}};fr.PathError=Bn;function Xg(e,t={}){let{encodePath:r=Kg}=t,n=[...e],o=[],s=0,a=0;function l(){let c="";if(mW.test(n[s]))do c+=n[s++];while(KD.test(n[s]));else if(n[s]==='"'){let f=s;for(;s<n.length;){if(n[++s]==='"'){s++,f=0;break}n[s]==="\\"&&s++,c+=n[s]}if(f)throw new Bn(`Unterminated quote at index ${f}`,e)}if(!c)throw new Bn(`Missing parameter name at index ${s}`,e);return c}for(i(l,"name");s<n.length;){let c=n[s++];gW.includes(c)?o.push({type:c,index:s,value:c}):c==="\\"?o.push({type:"escape",index:s,value:n[s++]}):c===":"?o.push({type:"param",index:s,value:l()}):c==="*"?o.push({type:"wildcard",index:s,value:l()}):o.push({type:"char",index:s,value:c})}o.push({type:"end",index:s,value:""});function u(c){let f=[];for(;;){let p=o[a++];if(p.type===c)break;if(p.type==="char"||p.type==="escape"){let h=p.value,m=o[a];for(;m.type==="char"||m.type==="escape";)h+=m.value,m=o[++a];f.push({type:"text",value:r(h)});continue}if(p.type==="param"||p.type==="wildcard"){f.push({type:p.type,name:p.value});continue}if(p.type==="{"){f.push({type:"group",tokens:u("}")});continue}throw new Bn(`Unexpected ${p.type} at index ${p.index}, expected ${c}`,e)}return f}return i(u,"consumeUntil"),new hp(u("end"),e)}i(Xg,"parse");function yW(e,t={}){let{encode:r=encodeURIComponent,delimiter:n=Jg}=t,o=typeof e=="object"?e:Xg(e,t),s=XD(o.tokens,n,r);return i(function(l={}){let[u,...c]=s(l);if(c.length)throw new TypeError(`Missing parameters: ${c.join(", ")}`);return u},"path")}i(yW,"compile");function XD(e,t,r){let n=e.map(o=>wW(o,t,r));return o=>{let s=[""];for(let a of n){let[l,...u]=a(o);s[0]+=l,s.push(...u)}return s}}i(XD,"tokensToFunction");function wW(e,t,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){let o=XD(e.tokens,t,r);return s=>{let[a,...l]=o(s);return l.length?[""]:[a]}}let n=r||Kg;return e.type==="wildcard"&&r!==!1?o=>{let s=o[e.name];if(s==null)return["",e.name];if(!Array.isArray(s)||s.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[s.map((a,l)=>{if(typeof a!="string")throw new TypeError(`Expected "${e.name}/${l}" to be a string`);return n(a)}).join(t)]}:o=>{let s=o[e.name];if(s==null)return["",e.name];if(typeof s!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[n(s)]}}i(wW,"tokenToFunction");function bW(e,t={}){let{decode:r=decodeURIComponent,delimiter:n=Jg}=t,{regexp:o,keys:s}=ZD(e,t),a=s.map(l=>r===!1?Kg:l.type==="param"?r:u=>u.split(n).map(r));return i(function(u){let c=o.exec(u);if(!c)return!1;let f=c[0],p=Object.create(null);for(let h=1;h<c.length;h++){if(c[h]===void 0)continue;let m=s[h-1],d=a[h-1];p[m.name]=d(c[h])}return{path:f,params:p}},"match")}i(bW,"match");function ZD(e,t={}){let{delimiter:r=Jg,end:n=!0,sensitive:o=!1,trailing:s=!0}=t,a=new Zg("^"),l=[e],u=0;for(;l.length;){let p=l.shift();if(Array.isArray(p)){l.push(...p);continue}let h=typeof p=="object"?p:Xg(p,t);ex(h.tokens,0,[],m=>{if(u++>=256)throw new Bn("Too many path combinations",h.originalPath);let d=a;for(let g of vW(m,r,h.originalPath))d=d.add(g.source,g.key);d.add("")})}let c=[],f=eC(a,c);return s&&(f+="(?:"+Rn(r)+"$)?"),f+=n?"$":"(?="+Rn(r)+"|$)",{regexp:new RegExp(f,o?"":"i"),keys:c}}i(ZD,"pathToRegexp");function eC(e,t){e.key&&t.push(e.key);let r=Object.keys(e.children),n=r.map(o=>eC(e.children[o],t)).join("|");return e.source+(r.length<2?n:`(?:${n})`)}i(eC,"toRegExp");var Zg=class e{static{i(this,"SourceNode")}constructor(t,r){this.source=t,this.key=r,this.children=Object.create(null)}add(t,r){var n;let o=t+":"+(r?r.name:"");return(n=this.children)[o]||(n[o]=new e(t,r))}};function ex(e,t,r,n){for(;t<e.length;){let o=e[t++];if(o.type==="group"){ex(o.tokens,0,r.slice(),s=>ex(e,t,s,n));continue}r.push(o)}n(r)}i(ex,"flatten");function vW(e,t,r){let n=[],o="",s="",a=0,l=0,u=0;function c(p,h){for(;p<e.length;){let m=e[p++];if(m.type===h)return!0;if(m.type==="text"&&m.value.includes(t))break}return!1}i(c,"hasInSegment");function f(p){let h="";for(;p<e.length;){let m=e[p++];if(m.type!=="text")break;h+=m.value}return h}for(i(f,"peekText");u<e.length;){let p=e[u++];if(p.type==="text"){n.push({source:Rn(p.value)}),o+=p.value,a===2&&(s+=p.value),p.value.includes(t)&&(l=0);continue}if(p.type==="param"||p.type==="wildcard"){if(a&&!o)throw new Bn(`Missing text before "${p.name}" ${p.type}`,r);p.type==="param"?(n.push({source:l?`(${zn(t,o)}+?)`:c(u,"wildcard")?`(${zn(t,f(u))}+?)`:`(${zn(t,"")}+?)`,key:p}),l|=a=1):(n.push({source:l&2?`(${zn(o,"")}+?)`:l&1?`(${zn(s,"")}+?)`:s?`(${zn(s,"")}+?|${zn(t,"")}+?)`:"([^]+?)",key:p}),s="",l|=a=2),o="";continue}throw new TypeError(`Unknown token type: ${p.type}`)}return n}i(vW,"toRegExpSource");function zn(e,t){return t.length>e.length?zn(t,e):(e===t&&(t=""),t.length>1?`(?:(?!${Rn(e)}|${Rn(t)})[^])`:e.length>1?`(?:(?!${Rn(e)})[^${Rn(t)}])`:`[^${Rn(e+t)}]`)}i(zn,"negate");function tC(e,t){let r="";for(;t<e.length;){let n=e[t++];if(n.type==="text"){r+=xW(n.value);continue}if(n.type==="group"){r+="{"+tC(n.tokens,0)+"}";continue}if(n.type==="param"){r+=":"+rC(n.name,e[t]);continue}if(n.type==="wildcard"){r+="*"+rC(n.name,e[t]);continue}throw new TypeError(`Unknown token type: ${n.type}`)}return r}i(tC,"stringifyTokens");function kW(e){return tC(e.tokens,0)}i(kW,"stringify");function rC(e,t){return!dW.test(e)||t?.type==="text"&&KD.test(t.value[0])?JSON.stringify(e):e}i(rC,"stringifyName")});var yC=ae((Ix,Ox)=>{(function(e,t){typeof Ix=="object"&&typeof Ox<"u"?Ox.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(Ix,function(){"use strict";var e=i(function(){return e=Object.assign||i(function(k){for(var C,O=1,F=arguments.length;O<F;O++){C=arguments[O];for(var te in C)Object.prototype.hasOwnProperty.call(C,te)&&(k[te]=C[te])}return k},"__assign"),e.apply(this,arguments)},"__assign"),t=!!(typeof window<"u"&&window.document&&window.document.createElement),r=t?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=(function(){var E=!1;if(!t)return E;try{var k=window,C=Object.defineProperty({},"passive",{get:i(function(){E=!0},"get")});k.addEventListener("test",null,C),k.removeEventListener("test",null,C)}catch{}return E})(),o=i(function(E){return typeof E=="string"},"isString"),s=i(function(E){return typeof E=="function"},"isFunction"),a=i(function(E){return Array.isArray(E)},"isArray"),l=i(function(E){return!a(E)&&E-parseFloat(E)+1>=0},"isNumeric"),u=i(function(E,k){return E&&E.hasOwnProperty(k)},"hasProp"),c=t?window.requestAnimationFrame.bind(window):null,f=t?window.cancelAnimationFrame.bind(window):null,p=Math.cos,h=Math.sin,m=Math.pow,d=Math.sqrt,g=Math.PI,x={linear:i(function(E){return E},"linear"),easeInQuad:i(function(E,k,C,O,F){return O*(k/=F)*k+C},"easeInQuad"),easeOutQuad:i(function(E,k,C,O,F){return-O*(k/=F)*(k-2)+C},"easeOutQuad"),easeInOutQuad:i(function(E,k,C,O,F){return(k/=F/2)<1?O/2*k*k+C:-O/2*(--k*(k-2)-1)+C},"easeInOutQuad"),easeInCubic:i(function(E,k,C,O,F){return O*(k/=F)*k*k+C},"easeInCubic"),easeOutCubic:i(function(E,k,C,O,F){return O*((k=k/F-1)*k*k+1)+C},"easeOutCubic"),easeInOutCubic:i(function(E,k,C,O,F){return(k/=F/2)<1?O/2*k*k*k+C:O/2*((k-=2)*k*k+2)+C},"easeInOutCubic"),easeInQuart:i(function(E,k,C,O,F){return O*(k/=F)*k*k*k+C},"easeInQuart"),easeOutQuart:i(function(E,k,C,O,F){return-O*((k=k/F-1)*k*k*k-1)+C},"easeOutQuart"),easeInOutQuart:i(function(E,k,C,O,F){return(k/=F/2)<1?O/2*k*k*k*k+C:-O/2*((k-=2)*k*k*k-2)+C},"easeInOutQuart"),easeInQuint:i(function(E,k,C,O,F){return O*(k/=F)*k*k*k*k+C},"easeInQuint"),easeOutQuint:i(function(E,k,C,O,F){return O*((k=k/F-1)*k*k*k*k+1)+C},"easeOutQuint"),easeInOutQuint:i(function(E,k,C,O,F){return(k/=F/2)<1?O/2*k*k*k*k*k+C:O/2*((k-=2)*k*k*k*k+2)+C},"easeInOutQuint"),easeInSine:i(function(E,k,C,O,F){return-O*p(k/F*(g/2))+O+C},"easeInSine"),easeOutSine:i(function(E,k,C,O,F){return O*h(k/F*(g/2))+C},"easeOutSine"),easeInOutSine:i(function(E,k,C,O,F){return-O/2*(p(g*k/F)-1)+C},"easeInOutSine"),easeInExpo:i(function(E,k,C,O,F){return k===0?C:O*m(2,10*(k/F-1))+C},"easeInExpo"),easeOutExpo:i(function(E,k,C,O,F){return k===F?C+O:O*(-m(2,-10*k/F)+1)+C},"easeOutExpo"),easeInOutExpo:i(function(E,k,C,O,F){return k===0?C:k===F?C+O:(k/=F/2)<1?O/2*m(2,10*(k-1))+C:O/2*(-m(2,-10*--k)+2)+C},"easeInOutExpo"),easeInCirc:i(function(E,k,C,O,F){return-O*(d(1-(k/=F)*k)-1)+C},"easeInCirc"),easeOutCirc:i(function(E,k,C,O,F){return O*d(1-(k=k/F-1)*k)+C},"easeOutCirc"),easeInOutCirc:i(function(E,k,C,O,F){return(k/=F/2)<1?-O/2*(d(1-k*k)-1)+C:O/2*(d(1-(k-=2)*k)+1)+C},"easeInOutCirc")},b=i(function(E){return Array.prototype.slice.call(E?document.querySelectorAll(E):[])},"$$"),T=i(function(E){return b(E).shift()||null},"$"),D=i(function(E){return E instanceof Element},"isElement"),q=i(function(E){return E===window},"isWindow"),H=i(function(E){return E===document.documentElement||E===document.body},"isRootContainer"),I=i(function(E,k){if(D(k))return E===k;for(var C=b(k),O=C.length;--O>=0&&C[O]!==E;);return O>-1},"matches"),$=i(function(E){return Math.max(E.scrollHeight,E.clientHeight,E.offsetHeight)},"getHeight"),Z=i(function(E){return Math.max(E.scrollWidth,E.clientWidth,E.offsetWidth)},"getWidth"),Y=i(function(E){return{width:Z(E),height:$(E)}},"getSize"),A=i(function(E){var k=q(E)||H(E);return{viewport:{width:k?Math.min(window.innerWidth,document.documentElement.clientWidth):E.clientWidth,height:k?window.innerHeight:E.clientHeight},size:k?{width:Math.max(Z(document.body),Z(document.documentElement)),height:Math.max($(document.body),$(document.documentElement))}:Y(E)}},"getViewportAndElementSizes"),De={y:"scrollTop",x:"scrollLeft"},W={y:"pageYOffset",x:"pageXOffset"},M=i(function(E,k){return q(E)?E[W[k]]:E[De[k]]},"getScroll"),N=i(function(E,k,C){if(q(E)){var O=C==="y";E.scrollTo(O?E.pageXOffset:k,O?k:E.pageYOffset)}else E[De[C]]=k},"setScroll"),L=i(function(E,k){var C=E.getBoundingClientRect();if(C.width||C.height){var O={top:0,left:0},F=void 0;if(q(k)||H(k))F=document.documentElement,O.top=window[W.y],O.left=window[W.x];else{F=k;var te=F.getBoundingClientRect();O.top=te.top*-1+F[De.y],O.left=te.left*-1+F[De.x]}return{top:C.top+O.top-F.clientTop,left:C.left+O.left-F.clientLeft}}return C},"getOffset"),B=(function(){return t?"onwheel"in document?"wheel":"mousewheel":"wheel"})(),V=i(function(E){return E==="wheel"?B:E},"eventName"),K=i(function(E,k,C,O,F){C.split(" ").forEach(function(te){E[k](V(te),O,n?{passive:F}:!1)})},"apply"),ue=i(function(E,k,C,O){return K(E,"addEventListener",k,C,O)},"addEvent"),w=i(function(E,k,C,O){return K(E,"removeEventListener",k,C,O)},"removeEvent"),ge=/^(\+|-)=(\d+(?:\.\d+)?)$/,be=i(function(E,k){var C={top:0,left:0,relative:!1};if(u(E,"top")||u(E,"left"))C=e({},C,E);else if(a(E))if(E.length>1)C.top=E[0],C.left=E[1];else if(E.length===1)C.top=k?E[0]:0,C.left=k?0:E[0];else return null;else if(l(E))k?C.top=E:C.left=E;else if(o(E)){var O=E.trim().match(ge);if(!O)return null;var F=O[1],te=parseInt(O[2],10);F==="+"?(C.top=k?te:0,C.left=k?0:te):(C.top=k?-te:0,C.left=k?0:-te),C.relative=!0}else return null;return C},"parseCoordinate"),S={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,easing:"easeOutQuint",offset:0,vertical:!0,horizontal:!1,cancellable:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,before:null,after:null,cancel:null,complete:null,step:null},Pe="click",We="wheel touchstart touchmove",Lt=(function(){function E(k,C){var O=this;this.$el=null,this.ctx={$trigger:null,opts:null,progress:!1,pos:null,startPos:null,easing:null,start:0,id:0,cancel:!1,hash:null},this.loop=function(te){var _e=O,Ae=_e.$el,ve=_e.ctx;if(ve.start||(ve.start=te),!ve.progress||!Ae){O.stop();return}var Dt=ve.opts,rt=ve.pos,bt=ve.start,er=ve.startPos,hr=ve.easing,Rt=Dt.duration,qt={top:"y",left:"x"},Ct=te-bt,Re=Math.min(1,Math.max(Ct/Rt,0));Object.keys(rt).forEach(function(mr){var _=rt[mr],z=er[mr],ie=_-z;if(ie!==0){var ce=hr(Re,Rt*Re,0,1,Rt);N(Ae,Math.round(z+ie*ce),qt[mr])}}),Ct<=Rt?(O.hook(Dt,"step",Re),ve.id=E.raf(O.loop)):O.stop(!0)},this.handleClick=function(te){for(var _e=O.opts,Ae=te.target;Ae&&Ae!==document;Ae=Ae.parentNode)if(I(Ae,_e.trigger)){var ve=JSON.parse(Ae.getAttribute("data-scroll-options")||"{}"),Dt=Ae.getAttribute("data-scroll"),rt=Dt||Ae.getAttribute("href"),bt=e({},_e,ve),er=bt.preventDefault,hr=bt.stopPropagation,Rt=bt.vertical,qt=bt.horizontal;er&&te.preventDefault(),hr&&te.stopPropagation(),O.ctx.$trigger=Ae,qt&&Rt?O.to(rt,bt):Rt?O.toTop(rt,bt):qt&&O.toLeft(rt,bt);break}},this.handleStop=function(te){var _e=O.ctx,Ae=_e.opts;Ae&&Ae.cancellable?(_e.cancel=!0,O.stop()):te.preventDefault()},this.opts=e({},S,k||{});var F=null;t&&(typeof C=="string"?F=T(C):C!=null?F=C:F=window),this.$el=F,F&&this.bind(!0,!1)}return i(E,"SweetScroll"),E.create=function(k,C){return new E(k,C)},E.prototype.to=function(k,C){if(t){var O=this,F=O.$el,te=O.ctx,_e=O.opts,Ae=te.$trigger,ve=e({},_e,C||{}),Dt=ve.offset,rt=ve.vertical,bt=ve.horizontal,er=D(ve.header)?ve.header:T(ve.header),hr=/^#/,Rt=o(k)&&hr.test(k)?k:null;if(te.opts=ve,te.cancel=!1,te.hash=Rt,this.stop(),!!F){var qt=be(Dt,rt),Ct=be(k,rt),Re={top:0,left:0};if(Ct)if(Ct.relative){var mr=M(F,rt?"y":"x");Re.top=rt?mr+Ct.top:Ct.top,Re.left=rt?Ct.left:mr+Ct.left}else Re=Ct;else if(o(k)&&k!=="#"){var _=T(k);if(!_)return;Re=L(_,F)}qt&&(Re.top+=qt.top,Re.left+=qt.left),er&&(Re.top=Math.max(0,Re.top-Y(er).height));var z=A(F),ie=z.viewport,ce=z.size;if(Re.top=rt?Math.max(0,Math.min(ce.height-ie.height,Re.top)):M(F,"y"),Re.left=bt?Math.max(0,Math.min(ce.width-ie.width,Re.left)):M(F,"x"),this.hook(ve,"before",Re,Ae)===!1){te.opts=null;return}te.pos=Re,this.start(ve),this.bind(!1,!0)}}},E.prototype.toTop=function(k,C){this.to(k,e({},C||{},{vertical:!0,horizontal:!1}))},E.prototype.toLeft=function(k,C){this.to(k,e({},C||{},{vertical:!1,horizontal:!0}))},E.prototype.toElement=function(k,C){var O=this.$el;!t||!O||this.to(L(k,O),C||{})},E.prototype.stop=function(k){k===void 0&&(k=!1);var C=this,O=C.$el,F=C.ctx,te=F.pos;!O||!F.progress||(E.caf(F.id),F.progress=!1,F.start=0,F.id=0,k&&te&&(N(O,te.left,"x"),N(O,te.top,"y")),this.complete())},E.prototype.update=function(k){if(this.$el){var C=e({},this.opts,k);this.stop(),this.unbind(!0,!0),this.opts=C,this.bind(!0,!1)}},E.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},E.prototype.onBefore=function(k,C){return!0},E.prototype.onStep=function(k){},E.prototype.onAfter=function(k,C){},E.prototype.onCancel=function(){},E.prototype.onComplete=function(k){},E.prototype.start=function(k){var C=this.ctx;C.opts=k,C.progress=!0,C.easing=s(k.easing)?k.easing:x[k.easing];var O=this.$el,F={top:M(O,"y"),left:M(O,"x")};C.startPos=F,C.id=E.raf(this.loop)},E.prototype.complete=function(){var k=this,C=k.$el,O=k.ctx,F=O.hash,te=O.cancel,_e=O.opts,Ae=O.pos,ve=O.$trigger;if(!(!C||!_e)){if(F!=null&&F!==window.location.hash){var Dt=_e.updateURL;t&&r&&Dt!==!1&&window.history[Dt==="replace"?"replaceState":"pushState"](null,"",F)}this.unbind(!1,!0),O.opts=null,O.$trigger=null,te?this.hook(_e,"cancel"):this.hook(_e,"after",Ae,ve),this.hook(_e,"complete",te)}},E.prototype.hook=function(k,C){for(var O=[],F=2;F<arguments.length;F++)O[F-2]=arguments[F];var te,_e=k[C],Ae,ve;return s(_e)&&(Ae=_e.apply(this,O.concat([this]))),ve=(te=this)["on"+(C[0].toUpperCase()+C.slice(1))].apply(te,O),Ae!==void 0?Ae:ve},E.prototype.bind=function(k,C){var O=this,F=O.$el,te=O.ctx.opts;F&&(k&&ue(F,Pe,this.handleClick,!1),C&&ue(F,We,this.handleStop,te?te.cancellable:!0))},E.prototype.unbind=function(k,C){var O=this,F=O.$el,te=O.ctx.opts;F&&(k&&w(F,Pe,this.handleClick,!1),C&&w(F,We,this.handleStop,te?te.cancellable:!0))},E.raf=c,E.caf=f,E})();return Lt})});var Hx={};se(Hx,{setup:()=>Nj,staticStyles:()=>Mj,styles:()=>_j});var ha={};se(ha,{DeesComms:()=>Lm});var he={};se(he,{Timeout:()=>fl,delayFor:()=>Jx,delayForRandom:()=>oI});var J={};se(J,{CumulativeDeferred:()=>cl,Deferred:()=>ul,cumulativeDefer:()=>XC,defer:()=>on,fromCallback:()=>iI,getFirstTrueOrFalse:()=>nI,map:()=>tI,rejectedPromise:()=>eI,resolvedPromise:()=>ZC,timeoutAndContinue:()=>rI,timeoutWrap:()=>Gx});var ul=class{static{i(this,"Deferred")}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((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},on=i(()=>new ul,"defer");var cl=class{static{i(this,"CumulativeDeferred")}constructor(){this.accumulatedPromises=[],this.deferred=on(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}subDefer(){let t=on();return this.addPromise(t.promise),t}addPromise(t){this.accumulatedPromises.push(t)}},XC=i(()=>new cl,"cumulativeDefer");var ZC=i(e=>Promise.resolve(e),"resolvedPromise"),eI=i(e=>Promise.reject(e),"rejectedPromise"),tI=i(async(e,t)=>{let r=[],n=[];for(let o of e){let s=t(o);r.push(s),s.then(a=>{n.push(a)})}return await Promise.all(r),n},"map"),Gx=i(async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),"timeoutWrap"),rI=i(async(e,t=6e4)=>Gx(e,t,!1),"timeoutAndContinue"),nI=i(async e=>{let t=on();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise},"getFirstTrueOrFalse"),iI=i(e=>new Promise((t,r)=>{e((n,o)=>{n?r(n):t(o)})}),"fromCallback");var Jx=i(async(e,t,r=!1)=>(await new fl(e,null,r).promise,t),"delayFor"),oI=i(async(e,t,r,n=!1)=>(await Jx(Math.random()*(t-e)+e,null,n),r),"delayForRandom"),fl=class{static{i(this,"Timeout")}constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=on(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},t),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let t=this.started+this.timeoutInMillis-Date.now();return t>0?t:0}};var Xi={};var Nt={};se(Nt,{TypedHandler:()=>Cm,TypedRequest:()=>rf,TypedResponseError:()=>ar,TypedRouter:()=>hi,TypedTarget:()=>Im,VirtualStream:()=>lr});var Xe={};se(Xe,{AsyncExecutionStack:()=>Ph,BackpressuredArray:()=>Fh,FastMap:()=>si,Interest:()=>Gs,InterestMap:()=>Lh,LimitedArray:()=>Rh,LoopTracker:()=>Bh,ObjectMap:()=>qr,Stringmap:()=>Js,TimedAggregator:()=>Ks,TimedAggregtor:()=>Ks,Tree:()=>zh,uni:()=>q0});var Es={};se(Es,{SmartMatch:()=>Up});var Ts={};se(Ts,{isMatch:()=>uI,matcher:()=>lI});function qn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}i(qn,"escapeStringRegexp");var Hp=new Map,Kx=i((e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},"sanitizeArray"),aI=i((e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(Hp.has(r))return Hp.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=qn(e).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return o.negated=n,Hp.set(r,o),o},"makeRegexp"),Xx=i((e,t,r,n)=>{if(e=Kx(e,"inputs"),t=Kx(t,"patterns"),t.length===0)return[];t=t.map(a=>aI(a,r));let{allPatterns:o}=r||{},s=[];for(let a of e){let l,u=[...t].fill(!1);for(let[c,f]of t.entries())if(f.test(a)&&(u[c]=!0,l=!f.negated,!l))break;if(!(l===!1||l===void 0&&t.some(c=>!c.negated)||o&&u.some((c,f)=>!c&&!t[f].negated))&&(s.push(a),n))break}return s},"baseMatcher");function lI(e,t,r){return Xx(e,t,r,!1)}i(lI,"matcher");function uI(e,t,r){return Xx(e,t,r,!0).length>0}i(uI,"isMatch");var Up=class{static{i(this,"SmartMatch")}constructor(t){this.wildcard=t}match(t){return Ts.isMatch(t,this.wildcard)}};var Oe={};se(Oe,{ObservableIntake:()=>hh,Observablemap:()=>ph,fromStreamWithBackpressure:()=>qA,rxjs:()=>lo});var lo={};se(lo,{Observable:()=>ye,ReplaySubject:()=>ro,Subject:()=>Mt,Subscription:()=>At,from:()=>kr,fromEvent:()=>Jn,of:()=>Ms,ops:()=>jA});var Wp=i(function(e,t){return Wp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Wp(e,t)},"extendStatics");function Ge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wp(e,t);function r(){this.constructor=e}i(r,"__"),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}i(Ge,"__extends");var jp=i(function(){return jp=Object.assign||i(function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},"__assign"),jp.apply(this,arguments)},"__assign");function pI(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}i(pI,"__rest");function hI(e,t,r,n){var o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(o<3?a(s):o>3?a(t,r,s):a(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}i(hI,"__decorate");function mI(e,t){return function(r,n){t(r,n,e)}}i(mI,"__param");function dI(e,t,r,n,o,s){function a(b){if(b!==void 0&&typeof b!="function")throw new TypeError("Function expected");return b}i(a,"accept");for(var l=n.kind,u=l==="getter"?"get":l==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,f=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),p,h=!1,m=r.length-1;m>=0;m--){var d={};for(var g in n)d[g]=g==="access"?{}:n[g];for(var g in n.access)d.access[g]=n.access[g];d.addInitializer=function(b){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(b||null))};var x=(0,r[m])(l==="accessor"?{get:f.get,set:f.set}:f[u],d);if(l==="accessor"){if(x===void 0)continue;if(x===null||typeof x!="object")throw new TypeError("Object expected");(p=a(x.get))&&(f.get=p),(p=a(x.set))&&(f.set=p),(p=a(x.init))&&o.unshift(p)}else(p=a(x))&&(l==="field"?o.unshift(p):f[u]=p)}c&&Object.defineProperty(c,n.name,f),h=!0}i(dI,"__esDecorate");function gI(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}i(gI,"__runInitializers");function xI(e){return typeof e=="symbol"?e:"".concat(e)}i(xI,"__propKey");function yI(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}i(yI,"__setFunctionName");function wI(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}i(wI,"__metadata");function Vp(e,t,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function l(f){try{c(n.next(f))}catch(p){a(p)}}i(l,"fulfilled");function u(f){try{c(n.throw(f))}catch(p){a(p)}}i(u,"rejected");function c(f){f.done?s(f.value):o(f.value).then(l,u)}i(c,"step"),c((n=n.apply(e,t||[])).next())})}i(Vp,"__awaiter");function Ds(e,t){var r={label:0,sent:i(function(){if(s[0]&1)throw s[1];return s[1]},"sent"),trys:[],ops:[]},n,o,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(c){return function(f){return u([c,f])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,o&&(s=c[0]&2?o.return:c[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,c[1])).done)return s;switch(o=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){r.label=c[1];break}if(c[0]===6&&r.label<s[1]){r.label=s[1],s=c;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(c);break}s[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(f){c=[6,f],o=0}finally{n=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}i(Ds,"__generator");var qp=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});function bI(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&qp(t,e,r)}i(bI,"__exportStar");function ft(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:i(function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}i(ft,"__values");function at(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return s}i(at,"__read");function vI(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(at(arguments[t]));return e}i(vI,"__spread");function kI(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var s=arguments[t],a=0,l=s.length;a<l;a++,o++)n[o]=s[a];return n}i(kI,"__spreadArrays");function Ot(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}i(Ot,"__spreadArray");function jr(e){return this instanceof jr?(this.v=e,this):new jr(e)}i(jr,"__await");function Qp(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,s=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(m){return function(d){return Promise.resolve(d).then(m,p)}}function l(m,d){n[m]&&(o[m]=function(g){return new Promise(function(x,b){s.push([m,g,x,b])>1||u(m,g)})},d&&(o[m]=d(o[m])))}function u(m,d){try{c(n[m](d))}catch(g){h(s[0][3],g)}}function c(m){m.value instanceof jr?Promise.resolve(m.value.v).then(f,p):h(s[0][2],m)}function f(m){u("next",m)}function p(m){u("throw",m)}function h(m,d){m(d),s.shift(),s.length&&u(s[0][0],s[0][1])}}i(Qp,"__asyncGenerator");function SI(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,s){t[o]=e[o]?function(a){return(r=!r)?{value:jr(e[o](a)),done:!1}:s?s(a):a}:s}}i(SI,"__asyncDelegator");function Gp(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof ft=="function"?ft(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=e[s]&&function(a){return new Promise(function(l,u){a=e[s](a),o(l,u,a.done,a.value)})}}function o(s,a,l,u){Promise.resolve(u).then(function(c){s({value:c,done:l})},a)}}i(Gp,"__asyncValues");function TI(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}i(TI,"__makeTemplateObject");var EI=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},Yp=i(function(e){return Yp=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Yp(e)},"ownKeys");function DI(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Yp(e),n=0;n<r.length;n++)r[n]!=="default"&&qp(t,e,r[n]);return EI(t,e),t}i(DI,"__importStar");function CI(e){return e&&e.__esModule?e:{default:e}}i(CI,"__importDefault");function II(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}i(II,"__classPrivateFieldGet");function OI(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}i(OI,"__classPrivateFieldSet");function AI(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}i(AI,"__classPrivateFieldIn");function MI(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=i(function(){try{o.call(this)}catch(s){return Promise.reject(s)}},"dispose")),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}i(MI,"__addDisposableResource");var _I=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function NI(e){function t(s){e.error=e.hasError?new _I(s,e.error,"An error was suppressed during disposal."):s,e.hasError=!0}i(t,"fail");var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var s=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(s).then(o,function(a){return t(a),o()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i(o,"next"),o()}i(NI,"__disposeResources");function PI(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,o,s,a){return n?t?".jsx":".js":o&&(!s||!a)?r:o+s+"."+a.toLowerCase()+"js"}):e}i(PI,"__rewriteRelativeImportExtension");var c3={__extends:Ge,__assign:jp,__rest:pI,__decorate:hI,__param:mI,__esDecorate:dI,__runInitializers:gI,__propKey:xI,__setFunctionName:yI,__metadata:wI,__awaiter:Vp,__generator:Ds,__createBinding:qp,__exportStar:bI,__values:ft,__read:at,__spread:vI,__spreadArrays:kI,__spreadArray:Ot,__await:jr,__asyncGenerator:Qp,__asyncDelegator:SI,__asyncValues:Gp,__makeTemplateObject:TI,__importStar:DI,__importDefault:CI,__classPrivateFieldGet:II,__classPrivateFieldSet:OI,__classPrivateFieldIn:AI,__addDisposableResource:MI,__disposeResources:NI,__rewriteRelativeImportExtension:PI};function fe(e){return typeof e=="function"}i(fe,"isFunction");function hl(e){var t=i(function(n){Error.call(n),n.stack=new Error().stack},"_super"),r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}i(hl,"createErrorClass");var Cs=hl(function(e){return i(function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
31
31
  `+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
32
- `):"",this.name="UnsubscriptionError",this.errors=r},"UnsubscriptionErrorImpl")});function nr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}i(nr,"arrRemove");var Mt=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i(e,"Subscription"),e.prototype.unsubscribe=function(){var t,r,n,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=ft(a),u=l.next();!u.done;u=l.next()){var c=u.value;c.remove(this)}}catch(g){t={error:g}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}else a.remove(this);var f=this.initialTeardown;if(fe(f))try{f()}catch(g){s=g instanceof Ds?g.errors:[g]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=ft(p),m=h.next();!m.done;m=h.next()){var d=m.value;try{ty(d)}catch(g){s=s??[],g instanceof Ds?s=At(At([],at(s)),at(g.errors)):s.push(g)}}}catch(g){n={error:g}}finally{try{m&&!m.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(s)throw new Ds(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ty(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&nr(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&nr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Jp=Mt.EMPTY;function hl(e){return e instanceof Mt||e&&"closed"in e&&fe(e.remove)&&fe(e.add)&&fe(e.unsubscribe)}i(hl,"isSubscription");function ty(e){fe(e)?e():e.unsubscribe()}i(ty,"execFinalizer");var Vt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ki={setTimeout:i(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Ki.delegate;return o?.setTimeout?o.setTimeout.apply(o,At([e,t],at(r))):setTimeout.apply(void 0,At([e,t],at(r)))},"setTimeout"),clearTimeout:i(function(e){var t=Ki.delegate;return(t?.clearTimeout||clearTimeout)(e)},"clearTimeout"),delegate:void 0};function ml(e){Ki.setTimeout(function(){var t=Vt.onUnhandledError;if(t)t(e);else throw e})}i(ml,"reportUnhandledError");function yr(){}i(yr,"noop");var ry=(function(){return Xp("C",void 0,void 0)})();function ny(e){return Xp("E",void 0,e)}i(ny,"errorNotification");function iy(e){return Xp("N",e,void 0)}i(iy,"nextNotification");function Xp(e,t,r){return{kind:e,value:t,error:r}}i(Xp,"createNotification");var Gn=null;function eo(e){if(Vt.useDeprecatedSynchronousErrorHandling){var t=!Gn;if(t&&(Gn={errorThrown:!1,error:null}),e(),t){var r=Gn,n=r.errorThrown,o=r.error;if(Gn=null,n)throw o}}else e()}i(eo,"errorContext");function oy(e){Vt.useDeprecatedSynchronousErrorHandling&&Gn&&(Gn.errorThrown=!0,Gn.error=e)}i(oy,"captureError");var Jn=(function(e){Ge(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,hl(r)&&r.add(n)):n.destination=$O,n}return i(t,"Subscriber"),t.create=function(r,n,o){return new sn(r,n,o)},t.prototype.next=function(r){this.isStopped?Kp(iy(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Kp(ny(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Kp(ry,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(Mt),RO=Function.prototype.bind;function Zp(e,t){return RO.call(e,t)}i(Zp,"bind");var BO=(function(){function e(t){this.partialObserver=t}return i(e,"ConsumerObserver"),e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){dl(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){dl(n)}else dl(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){dl(r)}},e})(),sn=(function(e){Ge(t,e);function t(r,n,o){var s=e.call(this)||this,a;if(fe(r)||!r)a={next:r??void 0,error:n??void 0,complete:o??void 0};else{var l;s&&Vt.useDeprecatedNextContext?(l=Object.create(r),l.unsubscribe=function(){return s.unsubscribe()},a={next:r.next&&Zp(r.next,l),error:r.error&&Zp(r.error,l),complete:r.complete&&Zp(r.complete,l)}):a=r}return s.destination=new BO(a),s}return i(t,"SafeSubscriber"),t})(Jn);function dl(e){Vt.useDeprecatedSynchronousErrorHandling?oy(e):ml(e)}i(dl,"handleUnhandledError");function zO(e){throw e}i(zO,"defaultErrorHandler");function Kp(e,t){var r=Vt.onStoppedNotification;r&&Ki.setTimeout(function(){return r(e,t)})}i(Kp,"handleStoppedNotification");var $O={closed:!0,next:yr,error:zO,complete:yr};var Xn=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function wr(e){return e}i(wr,"identity");function HO(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return eh(e)}i(HO,"pipe");function eh(e){return e.length===0?wr:e.length===1?e[0]:i(function(r){return e.reduce(function(n,o){return o(n)},r)},"piped")}i(eh,"pipeFromArray");var ye=(function(){function e(t){t&&(this._subscribe=t)}return i(e,"Observable"),e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,s=UO(t)?t:new sn(t,r,n);return eo(function(){var a=o,l=a.operator,u=a.source;s.add(l?l.call(s,u):u?o._subscribe(s):o._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=sy(r),new r(function(o,s){var a=new sn({next:i(function(l){try{t(l)}catch(u){s(u),a.unsubscribe()}},"next"),error:s,complete:o});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Xn]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return eh(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=sy(t),new t(function(n,o){var s;r.subscribe(function(a){return s=a},function(a){return o(a)},function(){return n(s)})})},e.create=function(t){return new e(t)},e})();function sy(e){var t;return(t=e??Vt.Promise)!==null&&t!==void 0?t:Promise}i(sy,"getPromiseCtor");function WO(e){return e&&fe(e.next)&&fe(e.error)&&fe(e.complete)}i(WO,"isObserver");function UO(e){return e&&e instanceof Jn||WO(e)&&hl(e)}i(UO,"isSubscriber");function jO(e){return fe(e?.lift)}i(jO,"hasLift");function Se(e){return function(t){if(jO(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}i(Se,"operate");function Te(e,t,r,n,o){return new ay(e,t,r,n,o)}i(Te,"createOperatorSubscriber");var ay=(function(e){Ge(t,e);function t(r,n,o,s,a,l){var u=e.call(this,r)||this;return u.onFinalize=a,u.shouldUnsubscribe=l,u._next=n?function(c){try{n(c)}catch(f){r.error(f)}}:e.prototype._next,u._error=s?function(c){try{s(c)}catch(f){r.error(f)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=o?function(){try{o()}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,u}return i(t,"OperatorSubscriber"),t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(Jn);var th=pl(function(e){return i(function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"},"ObjectUnsubscribedErrorImpl")});var _t=(function(e){Ge(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return i(t,"Subject"),t.prototype.lift=function(r){var n=new rh(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new th},t.prototype.next=function(r){var n=this;eo(function(){var o,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=ft(n.currentObservers),l=a.next();!l.done;l=a.next()){var u=l.value;u.next(r)}}catch(c){o={error:c}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;eo(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;eo(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:i(function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},"get"),enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,s=o.hasError,a=o.isStopped,l=o.observers;return s||a?Jp:(this.currentObservers=null,l.push(r),new Mt(function(){n.currentObservers=null,nr(l,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,s=n.thrownError,a=n.isStopped;o?r.error(s):a&&r.complete()},t.prototype.asObservable=function(){var r=new ye;return r.source=this,r},t.create=function(r,n){return new rh(r,n)},t})(ye),rh=(function(e){Ge(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return i(t,"AnonymousSubject"),t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Jp},t})(_t);var to=(function(e){Ge(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return i(t,"BehaviorSubject"),Object.defineProperty(t.prototype,"value",{get:i(function(){return this.getValue()},"get"),enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,s=r._value;if(n)throw o;return this._throwIfClosed(),s},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})(_t);var Cs={now:i(function(){return(Cs.delegate||Date).now()},"now"),delegate:void 0};var ro=(function(e){Ge(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Cs);var s=e.call(this)||this;return s._bufferSize=r,s._windowTime=n,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,n),s}return i(t,"ReplaySubject"),t.prototype.next=function(r){var n=this,o=n.isStopped,s=n._buffer,a=n._infiniteTimeWindow,l=n._timestampProvider,u=n._windowTime;o||(s.push(r),!a&&s.push(l.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,s=o._infiniteTimeWindow,a=o._buffer,l=a.slice(),u=0;u<l.length&&!r.closed;u+=s?1:2)r.next(l[u]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,s=r._buffer,a=r._infiniteTimeWindow,l=(a?1:2)*n;if(n<1/0&&l<s.length&&s.splice(0,s.length-l),!a){for(var u=o.now(),c=0,f=1;f<s.length&&s[f]<=u;f+=2)c=f;c&&s.splice(0,c+1)}},t})(_t);var nh=(function(e){Ge(t,e);function t(r,n){return e.call(this)||this}return i(t,"Action"),t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t})(Mt);var Os={setInterval:i(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Os.delegate;return o?.setInterval?o.setInterval.apply(o,At([e,t],at(r))):setInterval.apply(void 0,At([e,t],at(r)))},"setInterval"),clearInterval:i(function(e){var t=Os.delegate;return(t?.clearInterval||clearInterval)(e)},"clearInterval"),delegate:void 0};var ih=(function(e){Ge(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return i(t,"AsyncAction"),t.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var s=this.id,a=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(a,s,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(a,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Os.setInterval(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Os.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var o=!1,s;try{this.work(r)}catch(a){o=!0,s=a||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),s},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,s=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,nr(s,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(nh);var Is=(function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return i(e,"Scheduler"),e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=Cs.now,e})();var oh=(function(e){Ge(t,e);function t(r,n){n===void 0&&(n=Is.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return i(t,"AsyncScheduler"),t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},t})(Is);var br=new oh(ih),sh=br;function gl(e){return e&&fe(e.schedule)}i(gl,"isScheduler");function ah(e){return e[e.length-1]}i(ah,"last");function ly(e){return fe(ah(e))?e.pop():void 0}i(ly,"popResultSelector");function vr(e){return gl(ah(e))?e.pop():void 0}i(vr,"popScheduler");function w6(e,t){return typeof ah(e)=="number"?e.pop():t}i(w6,"popNumber");var no=i((function(e){return e&&typeof e.length=="number"&&typeof e!="function"}),"isArrayLike");function xl(e){return fe(e?.then)}i(xl,"isPromise");function yl(e){return fe(e[Xn])}i(yl,"isInteropObservable");function wl(e){return Symbol.asyncIterator&&fe(e?.[Symbol.asyncIterator])}i(wl,"isAsyncIterable");function bl(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}i(bl,"createInvalidObservableTypeError");function qO(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}i(qO,"getSymbolIterator");var vl=qO();function kl(e){return fe(e?.[vl])}i(kl,"isIterable");function Sl(e){return Qp(this,arguments,i(function(){var r,n,o,s;return Es(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,jr(r.read())];case 3:return n=a.sent(),o=n.value,s=n.done,s?[4,jr(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,jr(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})},"readableStreamLikeToAsyncGenerator_1"))}i(Sl,"readableStreamLikeToAsyncGenerator");function Tl(e){return fe(e?.getReader)}i(Tl,"isReadableStreamLike");function Le(e){if(e instanceof ye)return e;if(e!=null){if(yl(e))return YO(e);if(no(e))return VO(e);if(xl(e))return QO(e);if(wl(e))return uy(e);if(kl(e))return GO(e);if(Tl(e))return JO(e)}throw bl(e)}i(Le,"innerFrom");function YO(e){return new ye(function(t){var r=e[Xn]();if(fe(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}i(YO,"fromInteropObservable");function VO(e){return new ye(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}i(VO,"fromArrayLike");function QO(e){return new ye(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,ml)})}i(QO,"fromPromise");function GO(e){return new ye(function(t){var r,n;try{for(var o=ft(e),s=o.next();!s.done;s=o.next()){var a=s.value;if(t.next(a),t.closed)return}}catch(l){r={error:l}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()})}i(GO,"fromIterable");function uy(e){return new ye(function(t){XO(e,t).catch(function(r){return t.error(r)})})}i(uy,"fromAsyncIterable");function JO(e){return uy(Sl(e))}i(JO,"fromReadableStreamLike");function XO(e,t){var r,n,o,s;return Vp(this,void 0,void 0,function(){var a,l;return Es(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=Gp(e),u.label=1;case 1:return[4,r.next()];case 2:if(n=u.sent(),!!n.done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=u.sent(),o={error:l},[3,11];case 6:return u.trys.push([6,,9,10]),n&&!n.done&&(s=r.return)?[4,s.call(r)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}i(XO,"process");function lt(e,t,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var s=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(s),!o)return s}i(lt,"executeSchedule");function io(e,t){return t===void 0&&(t=0),Se(function(r,n){r.subscribe(Te(n,function(o){return lt(n,e,function(){return n.next(o)},t)},function(){return lt(n,e,function(){return n.complete()},t)},function(o){return lt(n,e,function(){return n.error(o)},t)}))})}i(io,"observeOn");function oo(e,t){return t===void 0&&(t=0),Se(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}i(oo,"subscribeOn");function cy(e,t){return Le(e).pipe(oo(t),io(t))}i(cy,"scheduleObservable");function fy(e,t){return Le(e).pipe(oo(t),io(t))}i(fy,"schedulePromise");function py(e,t){return new ye(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}i(py,"scheduleArray");function hy(e,t){return new ye(function(r){var n;return lt(r,t,function(){n=e[vl](),lt(r,t,function(){var o,s,a;try{o=n.next(),s=o.value,a=o.done}catch(l){r.error(l);return}a?r.complete():r.next(s)},0,!0)}),function(){return fe(n?.return)&&n.return()}})}i(hy,"scheduleIterable");function El(e,t){if(!e)throw new Error("Iterable cannot be null");return new ye(function(r){lt(r,t,function(){var n=e[Symbol.asyncIterator]();lt(r,t,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}i(El,"scheduleAsyncIterable");function my(e,t){return El(Sl(e),t)}i(my,"scheduleReadableStreamLike");function lh(e,t){if(e!=null){if(yl(e))return cy(e,t);if(no(e))return py(e,t);if(xl(e))return fy(e,t);if(wl(e))return El(e,t);if(kl(e))return hy(e,t);if(Tl(e))return my(e,t)}throw bl(e)}i(lh,"scheduled");function kr(e,t){return t?lh(e,t):Le(e)}i(kr,"from");function As(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=vr(e);return kr(e,r)}i(As,"of");function dy(e){return e instanceof Date&&!isNaN(e)}i(dy,"isValidDate");function Sr(e,t){return Se(function(r,n){var o=0;r.subscribe(Te(n,function(s){n.next(e.call(t,s,o++))}))})}i(Sr,"map");var ZO=Array.isArray;function KO(e,t){return ZO(t)?e.apply(void 0,At([],at(t))):e(t)}i(KO,"callOrApply");function Dl(e){return Sr(function(t){return KO(e,t)})}i(Dl,"mapOneOrManyArgs");var eI=Array.isArray,tI=Object.getPrototypeOf,rI=Object.prototype,nI=Object.keys;function gy(e){if(e.length===1){var t=e[0];if(eI(t))return{args:t,keys:null};if(iI(t)){var r=nI(t);return{args:r.map(function(n){return t[n]}),keys:r}}}return{args:e,keys:null}}i(gy,"argsArgArrayOrObject");function iI(e){return e&&typeof e=="object"&&tI(e)===rI}i(iI,"isPOJO");function xy(e,t){return e.reduce(function(r,n,o){return r[n]=t[o],r},{})}i(xy,"createObject");function uh(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=vr(e),n=ly(e),o=gy(e),s=o.args,a=o.keys;if(s.length===0)return kr([],r);var l=new ye(oI(s,r,a?function(u){return xy(a,u)}:wr));return n?l.pipe(Dl(n)):l}i(uh,"combineLatest");function oI(e,t,r){return r===void 0&&(r=wr),function(n){yy(t,function(){for(var o=e.length,s=new Array(o),a=o,l=o,u=i(function(f){yy(t,function(){var p=kr(e[f],t),h=!1;p.subscribe(Te(n,function(m){s[f]=m,h||(h=!0,l--),l||n.next(r(s.slice()))},function(){--a||n.complete()}))},n)},"_loop_1"),c=0;c<o;c++)u(c)},n)}}i(oI,"combineLatestInit");function yy(e,t,r){e?lt(r,e,t):t()}i(yy,"maybeSchedule");function wy(e,t,r,n,o,s,a,l){var u=[],c=0,f=0,p=!1,h=i(function(){p&&!u.length&&!c&&t.complete()},"checkComplete"),m=i(function(g){return c<n?d(g):u.push(g)},"outerNext"),d=i(function(g){s&&t.next(g),c++;var x=!1;Le(r(g,f++)).subscribe(Te(t,function(b){o?.(b),s?m(b):t.next(b)},function(){x=!0},void 0,function(){if(x)try{c--;for(var b=i(function(){var T=u.shift();a?lt(t,a,function(){return d(T)}):d(T)},"_loop_1");u.length&&c<n;)b();h()}catch(T){t.error(T)}}))},"doInnerSub");return e.subscribe(Te(t,m,function(){p=!0,h()})),function(){l?.()}}i(wy,"mergeInternals");function Zn(e,t,r){return r===void 0&&(r=1/0),fe(t)?Zn(function(n,o){return Sr(function(s,a){return t(n,s,o,a)})(Le(e(n,o)))},r):(typeof t=="number"&&(r=t),Se(function(n,o){return wy(n,o,e,r)}))}i(Zn,"mergeMap");function Cl(e){return e===void 0&&(e=1/0),Zn(wr,e)}i(Cl,"mergeAll");function Ol(){return Cl(1)}i(Ol,"concatAll");function Il(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ol()(kr(e,vr(e)))}i(Il,"concat");var sI=["addListener","removeListener"],aI=["addEventListener","removeEventListener"],lI=["on","off"];function Kn(e,t,r,n){if(fe(r)&&(n=r,r=void 0),n)return Kn(e,t,r).pipe(Dl(n));var o=at(fI(e)?aI.map(function(l){return function(u){return e[l](t,u,r)}}):uI(e)?sI.map(by(e,t)):cI(e)?lI.map(by(e,t)):[],2),s=o[0],a=o[1];if(!s&&no(e))return Zn(function(l){return Kn(l,t,r)})(Le(e));if(!s)throw new TypeError("Invalid event target");return new ye(function(l){var u=i(function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return l.next(1<c.length?c:c[0])},"handler");return s(u),function(){return a(u)}})}i(Kn,"fromEvent");function by(e,t){return function(r){return function(n){return e[r](t,n)}}}i(by,"toCommonHandlerRegistry");function uI(e){return fe(e.addListener)&&fe(e.removeListener)}i(uI,"isNodeStyleEventEmitter");function cI(e){return fe(e.on)&&fe(e.off)}i(cI,"isJQueryStyleEventEmitter");function fI(e){return fe(e.addEventListener)&&fe(e.removeEventListener)}i(fI,"isEventTarget");function Ms(e,t,r){e===void 0&&(e=0),r===void 0&&(r=sh);var n=-1;return t!=null&&(gl(t)?r=t:n=t),new ye(function(o){var s=dy(e)?+e-r.now():e;s<0&&(s=0);var a=0;return r.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},s)})}i(Ms,"timer");function ch(e,t){return e===void 0&&(e=0),t===void 0&&(t=br),e<0&&(e=0),Ms(e,e,t)}i(ch,"interval");function Al(e,t){return Se(function(r,n){var o=0;r.subscribe(Te(n,function(s){return e.call(t,s,o++)&&n.next(s)}))})}i(Al,"filter");function Ml(e){return Se(function(t,r){var n=[];return t.subscribe(Te(r,function(o){return n.push(o)},function(){r.next(n),r.complete()})),Le(e).subscribe(Te(r,function(){var o=n;n=[],r.next(o)},yr)),function(){n=null}})}i(Ml,"buffer");function _l(e,t){return t===void 0&&(t=null),t=t??e,Se(function(r,n){var o=[],s=0;r.subscribe(Te(n,function(a){var l,u,c,f,p=null;s++%t===0&&o.push([]);try{for(var h=ft(o),m=h.next();!m.done;m=h.next()){var d=m.value;d.push(a),e<=d.length&&(p=p??[],p.push(d))}}catch(b){l={error:b}}finally{try{m&&!m.done&&(u=h.return)&&u.call(h)}finally{if(l)throw l.error}}if(p)try{for(var g=ft(p),x=g.next();!x.done;x=g.next()){var d=x.value;nr(o,d),n.next(d)}}catch(b){c={error:b}}finally{try{x&&!x.done&&(f=g.return)&&f.call(g)}finally{if(c)throw c.error}}},function(){var a,l;try{for(var u=ft(o),c=u.next();!c.done;c=u.next()){var f=c.value;n.next(f)}}catch(p){a={error:p}}finally{try{c&&!c.done&&(l=u.return)&&l.call(u)}finally{if(a)throw a.error}}n.complete()},void 0,function(){o=null}))})}i(_l,"bufferCount");function Pl(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var s=(t=vr(n))!==null&&t!==void 0?t:br,a=(r=n[0])!==null&&r!==void 0?r:null,l=n[1]||1/0;return Se(function(u,c){var f=[],p=!1,h=i(function(g){var x=g.buffer,b=g.subs;b.unsubscribe(),nr(f,g),c.next(x),p&&m()},"emit"),m=i(function(){if(f){var g=new Mt;c.add(g);var x=[],b={buffer:x,subs:g};f.push(b),lt(g,s,function(){return h(b)},e)}},"startBuffer");a!==null&&a>=0?lt(c,s,m,a,!0):p=!0,m();var d=Te(c,function(g){var x,b,T=f.slice();try{for(var D=ft(T),q=D.next();!q.done;q=D.next()){var H=q.value,O=H.buffer;O.push(g),l<=O.length&&h(H)}}catch($){x={error:$}}finally{try{q&&!q.done&&(b=D.return)&&b.call(D)}finally{if(x)throw x.error}}},function(){for(;f?.length;)c.next(f.shift().buffer);d?.unsubscribe(),c.complete(),c.unsubscribe()},void 0,function(){return f=null});u.subscribe(d)})}i(Pl,"bufferTime");function Nl(e){return Se(function(t,r){var n=!1,o=null,s=null,a=i(function(){if(s?.unsubscribe(),s=null,n){n=!1;var l=o;o=null,r.next(l)}},"emit");t.subscribe(Te(r,function(l){s?.unsubscribe(),n=!0,o=l,s=Te(r,a,yr),Le(e(l)).subscribe(s)},function(){a(),r.complete()},void 0,function(){o=s=null}))})}i(Nl,"debounce");function Fl(e,t){return t===void 0&&(t=br),Se(function(r,n){var o=null,s=null,a=null,l=i(function(){if(o){o.unsubscribe(),o=null;var c=s;s=null,n.next(c)}},"emit");function u(){var c=a+e,f=t.now();if(f<c){o=this.schedule(void 0,c-f),n.add(o);return}l()}i(u,"emitWhenIdle"),r.subscribe(Te(n,function(c){s=c,a=t.now(),o||(o=t.schedule(u,e),n.add(o))},function(){l(),n.complete()},void 0,function(){s=o=null}))})}i(Fl,"debounceTime");function so(e,t){return t===void 0&&(t=wr),e=e??pI,Se(function(r,n){var o,s=!0;r.subscribe(Te(n,function(a){var l=t(a);(s||!e(o,l))&&(s=!1,o=l,n.next(a))}))})}i(so,"distinctUntilChanged");function pI(e,t){return e===t}i(pI,"defaultCompare");function Ll(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new _t}:t,n=e.resetOnError,o=n===void 0?!0:n,s=e.resetOnComplete,a=s===void 0?!0:s,l=e.resetOnRefCountZero,u=l===void 0?!0:l;return function(c){var f,p,h,m=0,d=!1,g=!1,x=i(function(){p?.unsubscribe(),p=void 0},"cancelReset"),b=i(function(){x(),f=h=void 0,d=g=!1},"reset"),T=i(function(){var D=f;b(),D?.unsubscribe()},"resetAndUnsubscribe");return Se(function(D,q){m++,!g&&!d&&x();var H=h=h??r();q.add(function(){m--,m===0&&!g&&!d&&(p=fh(T,u))}),H.subscribe(q),!f&&m>0&&(f=new sn({next:i(function(O){return H.next(O)},"next"),error:i(function(O){g=!0,x(),p=fh(b,o,O),H.error(O)},"error"),complete:i(function(){d=!0,x(),p=fh(b,a),H.complete()},"complete")}),Le(D).subscribe(f))})(c)}}i(Ll,"share");function fh(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t===!0){e();return}if(t!==!1){var o=new sn({next:i(function(){o.unsubscribe(),e()},"next")});return Le(t.apply(void 0,At([],at(r)))).subscribe(o)}}i(fh,"handleReset");function Rl(e,t,r){var n,o,s,a,l=!1;return e&&typeof e=="object"?(n=e.bufferSize,a=n===void 0?1/0:n,o=e.windowTime,t=o===void 0?1/0:o,s=e.refCount,l=s===void 0?!1:s,r=e.scheduler):a=e??1/0,Ll({connector:i(function(){return new ro(a,t,r)},"connector"),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}i(Rl,"shareReplay");function Bl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=vr(e);return Se(function(n,o){(r?Il(e,n,r):Il(e,n)).subscribe(o)})}i(Bl,"startWith");function ao(e){return Se(function(t,r){Le(e).subscribe(Te(r,function(){return r.complete()},yr)),!r.closed&&t.subscribe(r)})}i(ao,"takeUntil");function zl(e,t){return Se(function(r,n){var o=t??{},s=o.leading,a=s===void 0?!0:s,l=o.trailing,u=l===void 0?!1:l,c=!1,f=null,p=null,h=!1,m=i(function(){p?.unsubscribe(),p=null,u&&(x(),h&&n.complete())},"endThrottling"),d=i(function(){p=null,h&&n.complete()},"cleanupThrottling"),g=i(function(b){return p=Le(e(b)).subscribe(Te(n,m,d))},"startThrottle"),x=i(function(){if(c){c=!1;var b=f;f=null,n.next(b),!h&&g(b)}},"send");r.subscribe(Te(n,function(b){c=!0,f=b,!(p&&!p.closed)&&(a?x():g(b))},function(){h=!0,!(u&&c&&p&&!p.closed)&&n.complete()}))})}i(zl,"throttle");function $l(e,t,r){t===void 0&&(t=br);var n=Ms(e,t);return zl(function(){return n},r)}i($l,"throttleTime");var YA={buffer:Ml,bufferCount:_l,bufferTime:Pl,debounce:Nl,debounceTime:Fl,filter:Al,map:Sr,startWith:Bl,takeUntil:ao,throttleTime:$l};var ph=class{static{i(this,"Observablemap")}constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(t,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let o=Kn(t,r),s=new _t;o.subscribe(s);let a={subject:s,eventRef:t,event:r};return this.observableEventEmitterBundleArray.push(a),a.subject}}getSubjectForEventTarget(t,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let s={subject:new _t,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(s),s.subject}}};var hh=class{static{i(this,"ObservableIntake")}constructor(){this.observableFunctions={next:i(t=>{},"next"),complete:i(t=>{},"complete")},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new ye(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=J.defer(),this.completed=this.completedDeffered.promise}setObservable(t){this.observable=t}push(t){this.buffered?this.payloadBuffer.push(t):this.internalPush(t)}pushMany(t){for(let r of t)this.push(r)}setGenerator(t){this.generator=t}makeBuffered(){this.buffered=!0}subscribe(...t){return this.observable.subscribe(...t)}request(t){if(t!==0)for(let r=0;r!==t;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(t){this.observableFunctions.next(t)}};function VA(e){return new ye(t=>{let r=i(()=>e.pause(),"pauseStream"),n=i(()=>process.nextTick(()=>e.resume()),"resumeStream"),o=i(s=>{r(),t.next(s),n()},"onData");return e.on("data",o),e.on("error",s=>t.error(s)),e.on("end",()=>t.complete()),e.on("close",()=>t.complete()),()=>{e.removeListener("data",o),e.removeListener("error",t.error),e.removeListener("end",t.complete),e.removeListener("close",t.complete)}})}i(VA,"fromStreamWithBackpressure");var li={};se(li,{CronJob:()=>Vs,CronManager:()=>Ch,ExtendedDate:()=>Ih,HrtMeasurement:()=>Ah,Interval:()=>Mh,TimeStamp:()=>Po,Timer:()=>_h,getMilliSecondsAsHumanReadableAgoTime:()=>T_,getMilliSecondsAsHumanReadableString:()=>S_,getMilliSecondsFromUnits:()=>Oh,units:()=>wn});var Fs={};se(Fs,{Cron:()=>Dy,CronDate:()=>Je,CronPattern:()=>Hl,scheduledJobs:()=>uo});function _s(e){return Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)}i(_s,"T");function mh(e,t){return e.y===t.y&&e.m===t.m&&e.d===t.d&&e.h===t.h&&e.i===t.i&&e.s===t.s}i(mh,"D");function QA(e,t){let r=new Date(Date.parse(e));if(isNaN(r))throw new Error("Invalid ISO8601 passed to timezone parser.");let n=e.substring(9);return n.includes("Z")||n.includes("+")||n.includes("-")?dh(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):dh(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}i(QA,"A");function vy(e,t,r){return ky(QA(e,t),r)}i(vy,"v");function ky(e,t){let r=new Date(_s(e)),n=Ps(r,e.tz),o=_s(e),s=_s(n),a=o-s,l=new Date(r.getTime()+a),u=Ps(l,e.tz);if(mh(u,e)){let p=new Date(l.getTime()-36e5),h=Ps(p,e.tz);return mh(h,e)?p:l}let c=new Date(l.getTime()+_s(e)-_s(u)),f=Ps(c,e.tz);if(mh(f,e))return c;if(t)throw new Error("Invalid date passed to fromTZ()");return l.getTime()>c.getTime()?l:c}i(ky,"k");function Ps(e,t){let r,n;try{r=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1}),n=r.formatToParts(e)}catch(s){let a=s instanceof Error?s.message:String(s);throw new RangeError(`toTZ: Invalid timezone '${t}' or date. Please provide a valid IANA timezone (e.g., 'America/New_York', 'Europe/Stockholm'). Original error: ${a}`)}let o={year:0,month:0,day:0,hour:0,minute:0,second:0};for(let s of n)(s.type==="year"||s.type==="month"||s.type==="day"||s.type==="hour"||s.type==="minute"||s.type==="second")&&(o[s.type]=parseInt(s.value,10));if(isNaN(o.year)||isNaN(o.month)||isNaN(o.day)||isNaN(o.hour)||isNaN(o.minute)||isNaN(o.second))throw new Error(`toTZ: Failed to parse all date components from timezone '${t}'. This may indicate an invalid date or timezone configuration. Parsed components: ${JSON.stringify(o)}`);return o.hour===24&&(o.hour=0),{y:o.year,m:o.month,d:o.day,h:o.hour,i:o.minute,s:o.second,tz:t}}i(Ps,"g");function dh(e,t,r,n,o,s,a){return{y:e,m:t,d:r,h:n,i:o,s,tz:a}}i(dh,"b");var Sy=[1,2,4,8,16],Hl=class{static{i(this,"C")}pattern;timezone;mode;alternativeWeekdays;sloppyRanges;second;minute;hour;day;month;dayOfWeek;year;lastDayOfMonth;lastWeekday;nearestWeekdays;starDOM;starDOW;starYear;useAndLogic;constructor(e,t,r){this.pattern=e,this.timezone=t,this.mode=r?.mode??"auto",this.alternativeWeekdays=r?.alternativeWeekdays??!1,this.sloppyRanges=r?.sloppyRanges??!1,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.year=Array(1e4).fill(0),this.lastDayOfMonth=!1,this.lastWeekday=!1,this.nearestWeekdays=Array(31).fill(0),this.starDOM=!1,this.starDOW=!1,this.starYear=!1,this.useAndLogic=!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 e=this.pattern.match(/\S+/g)||[""],t=e.length;if(e.length<5||e.length>7)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five, six, or seven space separated parts are required.");if(this.mode!=="auto"){let n;switch(this.mode){case"5-part":n=5;break;case"6-part":n=6;break;case"7-part":n=7;break;case"5-or-6-parts":n=[5,6];break;case"6-or-7-parts":n=[6,7];break;default:n=0}if(!(Array.isArray(n)?n.includes(t):t===n)){let o=Array.isArray(n)?n.join(" or "):n.toString();throw new TypeError(`CronPattern: mode '${this.mode}' requires exactly ${o} parts, but pattern '${this.pattern}' has ${t} parts.`)}}if(e.length===5&&e.unshift("0"),e.length===6&&e.push("*"),e[3].toUpperCase()==="LW"?(this.lastWeekday=!0,e[3]=""):e[3].toUpperCase().indexOf("L")>=0&&(e[3]=e[3].replace(/L/gi,""),this.lastDayOfMonth=!0),e[3]=="*"&&(this.starDOM=!0),e[6]=="*"&&(this.starYear=!0),e[4].length>=3&&(e[4]=this.replaceAlphaMonths(e[4])),e[5].length>=3&&(e[5]=this.alternativeWeekdays?this.replaceAlphaDaysQuartz(e[5]):this.replaceAlphaDays(e[5])),e[5].startsWith("+")&&(this.useAndLogic=!0,e[5]=e[5].substring(1),e[5]===""))throw new TypeError("CronPattern: Day-of-week field cannot be empty after '+' modifier.");switch(e[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0&&(e[0]=e[0].replace(/\?/g,"*"),e[1]=e[1].replace(/\?/g,"*"),e[2]=e[2].replace(/\?/g,"*"),e[3]=e[3].replace(/\?/g,"*"),e[4]=e[4].replace(/\?/g,"*"),e[5]=e[5].replace(/\?/g,"*"),e[6]&&(e[6]=e[6].replace(/\?/g,"*"))),this.mode){case"5-part":e[0]="0",e[6]="*";break;case"6-part":e[6]="*";break;case"5-or-6-parts":e[6]="*";break;case"6-or-7-parts":break;case"7-part":case"auto":break}this.throwAtIllegalCharacters(e),this.partToArray("second",e[0],0,1),this.partToArray("minute",e[1],0,1),this.partToArray("hour",e[2],0,1),this.partToArray("day",e[3],-1,1),this.partToArray("month",e[4],-1,1);let r=this.alternativeWeekdays?-1:0;this.partToArray("dayOfWeek",e[5],r,63),this.partToArray("year",e[6],0,1),!this.alternativeWeekdays&&this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(e,t,r,n){let o=this[e],s=e==="day"&&this.lastDayOfMonth,a=e==="day"&&this.lastWeekday;if(t===""&&!s&&!a)throw new TypeError("CronPattern: configuration entry "+e+" ("+t+") is empty, check for trailing spaces.");if(t==="*")return o.fill(n);let l=t.split(",");if(l.length>1)for(let u=0;u<l.length;u++)this.partToArray(e,l[u],r,n);else t.indexOf("-")!==-1&&t.indexOf("/")!==-1?this.handleRangeWithStepping(t,e,r,n):t.indexOf("-")!==-1?this.handleRange(t,e,r,n):t.indexOf("/")!==-1?this.handleStepping(t,e,r,n):t!==""&&this.handleNumber(t,e,r,n)}throwAtIllegalCharacters(e){for(let t=0;t<e.length;t++)if((t===3?/[^/*0-9,\-WwLl]+/:t===5?/[^/*0-9,\-#Ll]+/:/[^/*0-9,\-]+/).test(e[t]))throw new TypeError("CronPattern: configuration entry "+t+" ("+e[t]+") contains illegal characters.")}handleNumber(e,t,r,n){let o=this.extractNth(e,t),s=e.toUpperCase().includes("W");if(t!=="day"&&s)throw new TypeError("CronPattern: Nearest weekday modifier (W) only allowed in day-of-month.");s&&(t="nearestWeekdays");let a=parseInt(o[0],10)+r;if(isNaN(a))throw new TypeError("CronPattern: "+t+" is not a number: '"+e+"'");this.setPart(t,a,o[1]||n)}setPart(e,t,r){if(!Object.prototype.hasOwnProperty.call(this,e))throw new TypeError("CronPattern: Invalid part specified: "+e);if(e==="dayOfWeek"){if(t===7&&(t=0),t<0||t>6)throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+t);this.setNthWeekdayOfMonth(t,r);return}if(e==="second"||e==="minute"){if(t<0||t>=60)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="hour"){if(t<0||t>=24)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="day"||e==="nearestWeekdays"){if(t<0||t>=31)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="month"){if(t<0||t>=12)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="year"&&(t<1||t>=1e4))throw new RangeError("CronPattern: Invalid value for "+e+": "+t+" (supported range: 1-9999)");this[e][t]=r}validateNotNaN(e,t){if(isNaN(e))throw new TypeError(t)}validateRange(e,t,r,n,o){if(e>t)throw new TypeError("CronPattern: From value is larger than to value: '"+o+"'");if(r!==void 0){if(r===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(r>this[n].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[n].length+")")}}handleRangeWithStepping(e,t,r,n){if(e.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in ranges with stepping.");let o=this.extractNth(e,t),s=o[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(s===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+e+"'");let[,a,l,u]=s,c=parseInt(a,10)+r,f=parseInt(l,10)+r,p=parseInt(u,10);this.validateNotNaN(c,"CronPattern: Syntax error, illegal lower range (NaN)"),this.validateNotNaN(f,"CronPattern: Syntax error, illegal upper range (NaN)"),this.validateNotNaN(p,"CronPattern: Syntax error, illegal stepping: (NaN)"),this.validateRange(c,f,p,t,e);for(let h=c;h<=f;h+=p)this.setPart(t,h,o[1]||n)}extractNth(e,t){let r=e,n;if(r.includes("#")){if(t!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");n=r.split("#")[1],r=r.split("#")[0]}else if(r.toUpperCase().endsWith("L")){if(t!=="dayOfWeek")throw new Error("CronPattern: L modifier only allowed in day-of-week field (use L alone for day-of-month)");n="L",r=r.slice(0,-1)}return[r,n]}handleRange(e,t,r,n){if(e.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in a range.");let o=this.extractNth(e,t),s=o[0].split("-");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+e+"'");let a=parseInt(s[0],10)+r,l=parseInt(s[1],10)+r;this.validateNotNaN(a,"CronPattern: Syntax error, illegal lower range (NaN)"),this.validateNotNaN(l,"CronPattern: Syntax error, illegal upper range (NaN)"),this.validateRange(a,l,void 0,t,e);for(let u=a;u<=l;u++)this.setPart(t,u,o[1]||n)}handleStepping(e,t,r,n){if(e.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in parts with stepping.");let o=this.extractNth(e,t),s=o[0].split("/");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+e+"'");if(this.sloppyRanges)s[0]===""&&(s[0]="*");else{if(s[0]==="")throw new TypeError("CronPattern: Syntax error, stepping with missing prefix ('"+e+"') is not allowed. Use wildcard (*/step) or range (min-max/step) instead.");if(s[0]!=="*")throw new TypeError("CronPattern: Syntax error, stepping with numeric prefix ('"+e+"') is not allowed. Use wildcard (*/step) or range (min-max/step) instead.")}let a=0;s[0]!=="*"&&(a=parseInt(s[0],10)+r);let l=parseInt(s[1],10);this.validateNotNaN(l,"CronPattern: Syntax error, illegal stepping: (NaN)"),this.validateRange(0,this[t].length-1,l,t,e);for(let u=a;u<this[t].length;u+=l)this.setPart(t,u,o[1]||n)}replaceAlphaDays(e){return e.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")}replaceAlphaDaysQuartz(e){return e.replace(/sun/gi,"1").replace(/mon/gi,"2").replace(/tue/gi,"3").replace(/wed/gi,"4").replace(/thu/gi,"5").replace(/fri/gi,"6").replace(/sat/gi,"7")}replaceAlphaMonths(e){return e.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(e){let t=e.trim().toLowerCase();if(t==="@yearly"||t==="@annually")return"0 0 1 1 *";if(t==="@monthly")return"0 0 1 * *";if(t==="@weekly")return"0 0 * * 0";if(t==="@daily"||t==="@midnight")return"0 0 * * *";if(t==="@hourly")return"0 * * * *";if(t==="@reboot")throw new TypeError("CronPattern: @reboot is not supported in this environment. This is an event-based trigger that requires system startup detection.");return e}setNthWeekdayOfMonth(e,t){if(typeof t!="number"&&t.toUpperCase()==="L")this.dayOfWeek[e]=this.dayOfWeek[e]|32;else if(t===63)this.dayOfWeek[e]=63;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|Sy[t-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${t}, Type: ${typeof t}`)}},gh=[31,28,31,30,31,30,31,31,30,31,30,31],Fe=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Je=class Ey{static{i(this,"s")}tz;ms;second;minute;hour;day;month;year;constructor(t,r){if(this.tz=r,t&&t instanceof Date)if(!isNaN(t))this.fromDate(t);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(t==null)this.fromDate(new Date);else if(t&&typeof t=="string")this.fromString(t);else if(t instanceof Ey)this.fromCronDate(t);else throw new TypeError("CronDate: Invalid type ("+typeof t+") passed to CronDate constructor")}getLastDayOfMonth(t,r){return r!==1?gh[r]:new Date(Date.UTC(t,r+1,0)).getUTCDate()}getLastWeekday(t,r){let n=this.getLastDayOfMonth(t,r),o=new Date(Date.UTC(t,r,n)).getUTCDay();return o===0?n-2:o===6?n-1:n}getNearestWeekday(t,r,n){let o=this.getLastDayOfMonth(t,r);if(n>o)return-1;let s=new Date(Date.UTC(t,r,n)).getUTCDay();return s===0?n===o?n-2:n+1:s===6?n===1?n+2:n-1:n}isNthWeekdayOfMonth(t,r,n,o){let s=new Date(Date.UTC(t,r,n)).getUTCDay(),a=0;for(let l=1;l<=n;l++)new Date(Date.UTC(t,r,l)).getUTCDay()===s&&a++;if(o&63&&Sy[a-1]&o)return!0;if(o&32){let l=this.getLastDayOfMonth(t,r);for(let u=n+1;u<=l;u++)if(new Date(Date.UTC(t,r,u)).getUTCDay()===s)return!1;return!0}return!1}fromDate(t){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=t.getUTCMilliseconds(),this.second=t.getUTCSeconds(),this.minute=t.getUTCMinutes()+this.tz,this.hour=t.getUTCHours(),this.day=t.getUTCDate(),this.month=t.getUTCMonth(),this.year=t.getUTCFullYear(),this.apply();else try{let r=Ps(t,this.tz);this.ms=t.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}catch(r){let n=r instanceof Error?r.message:String(r);throw new TypeError(`CronDate: Failed to convert date to timezone '${this.tz}'. This may happen with invalid timezone names or dates. Original error: ${n}`)}else this.ms=t.getMilliseconds(),this.second=t.getSeconds(),this.minute=t.getMinutes(),this.hour=t.getHours(),this.day=t.getDate(),this.month=t.getMonth(),this.year=t.getFullYear()}fromCronDate(t){this.tz=t.tz,this.year=t.year,this.month=t.month,this.day=t.day,this.hour=t.hour,this.minute=t.minute,this.second=t.second,this.ms=t.ms}apply(){if(this.month>11||this.month<0||this.day>gh[this.month]||this.day<1||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let t=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=t.getUTCMilliseconds(),this.second=t.getUTCSeconds(),this.minute=t.getUTCMinutes(),this.hour=t.getUTCHours(),this.day=t.getUTCDate(),this.month=t.getUTCMonth(),this.year=t.getUTCFullYear(),!0}else return!1}fromString(t){if(typeof this.tz=="number"){let r=vy(t);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(vy(t,this.tz))}findNext(t,r,n,o){return this._findMatch(t,r,n,o,1)}_findMatch(t,r,n,o,s){let a=this[r],l;n.lastDayOfMonth&&(l=this.getLastDayOfMonth(this.year,this.month));let u=!n.starDOW&&r=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0,c=this[r]+o,f=s===1?p=>p<n[r].length:p=>p>=0;for(let p=c;f(p);p+=s){let h=n[r][p];if(r==="day"&&!h){for(let m=0;m<n.nearestWeekdays.length;m++)if(n.nearestWeekdays[m]){let d=this.getNearestWeekday(this.year,this.month,m-o);if(d===-1)continue;if(d===p-o){h=1;break}}}if(r==="day"&&n.lastWeekday){let m=this.getLastWeekday(this.year,this.month);p-o===m&&(h=1)}if(r==="day"&&n.lastDayOfMonth&&p-o==l&&(h=1),r==="day"&&!n.starDOW){let m=n.dayOfWeek[(u+(p-o-1))%7];if(m&&m&63)m=this.isNthWeekdayOfMonth(this.year,this.month,p-o,m)?1:0;else if(m)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${m}`);n.useAndLogic?h=h&&m:!t.domAndDow&&!n.starDOM?h=h||m:h=h&&m}if(h)return this[r]=p-o,a!==this[r]?2:1}return 3}recurse(t,r,n){if(n===0&&!t.starYear){if(this.year>=0&&this.year<t.year.length&&t.year[this.year]===0){let s=-1;for(let a=this.year+1;a<t.year.length&&a<1e4;a++)if(t.year[a]===1){s=a;break}if(s===-1)return null;this.year=s,this.month=0,this.day=1,this.hour=0,this.minute=0,this.second=0,this.ms=0}if(this.year>=1e4)return null}let o=this.findNext(r,Fe[n][0],t,Fe[n][2]);if(o>1){let s=n+1;for(;s<Fe.length;)this[Fe[s][0]]=-Fe[s][2],s++;if(o===3){if(this[Fe[n][1]]++,this[Fe[n][0]]=-Fe[n][2],this.apply(),n===0&&!t.starYear){for(;this.year>=0&&this.year<t.year.length&&t.year[this.year]===0&&this.year<1e4;)this.year++;if(this.year>=1e4||this.year>=t.year.length)return null}return this.recurse(t,r,0)}else if(this.apply())return this.recurse(t,r,n-1)}return n+=1,n>=Fe.length?this:(t.starYear?this.year>=3e3:this.year>=1e4)?null:this.recurse(t,r,n)}increment(t,r,n){return this.second+=r.interval!==void 0&&r.interval>1&&n?r.interval:1,this.ms=0,this.apply(),this.recurse(t,r,0)}decrement(t,r){return this.second-=r.interval!==void 0&&r.interval>1?r.interval:1,this.ms=0,this.apply(),this.recurseBackward(t,r,0,0)}recurseBackward(t,r,n,o=0){if(o>1e4)return null;if(n===0&&!t.starYear){if(this.year>=0&&this.year<t.year.length&&t.year[this.year]===0){let a=-1;for(let l=this.year-1;l>=0;l--)if(t.year[l]===1){a=l;break}if(a===-1)return null;this.year=a,this.month=11,this.day=31,this.hour=23,this.minute=59,this.second=59,this.ms=0}if(this.year<0)return null}let s=this.findPrevious(r,Fe[n][0],t,Fe[n][2]);if(s>1){let a=n+1;for(;a<Fe.length;){let l=Fe[a][0],u=Fe[a][2],c=this.getMaxPatternValue(l,t,u);this[l]=c,a++}if(s===3){if(this[Fe[n][1]]--,n===0){let f=this.getLastDayOfMonth(this.year,this.month);this.day>f&&(this.day=f)}if(n===1)if(this.day<=0)this.day=1;else{let f=this.year,p=this.month;for(;p<0;)p+=12,f--;for(;p>11;)p-=12,f++;let h=p!==1?gh[p]:new Date(Date.UTC(f,p+1,0)).getUTCDate();this.day>h&&(this.day=h)}this.apply();let l=Fe[n][0],u=Fe[n][2],c=this.getMaxPatternValue(l,t,u);if(l==="day"){let f=this.getLastDayOfMonth(this.year,this.month);this[l]=Math.min(c,f)}else this[l]=c;if(this.apply(),n===0){let f=Fe[1][2],p=this.getMaxPatternValue("day",t,f),h=this.getLastDayOfMonth(this.year,this.month),m=Math.min(p,h);m!==this.day&&(this.day=m,this.hour=this.getMaxPatternValue("hour",t,Fe[2][2]),this.minute=this.getMaxPatternValue("minute",t,Fe[3][2]),this.second=this.getMaxPatternValue("second",t,Fe[4][2]))}if(n===0&&!t.starYear){for(;this.year>=0&&this.year<t.year.length&&t.year[this.year]===0;)this.year--;if(this.year<0)return null}return this.recurseBackward(t,r,0,o+1)}else if(this.apply())return this.recurseBackward(t,r,n-1,o+1)}return n+=1,n>=Fe.length?this:this.year<0?null:this.recurseBackward(t,r,n,o+1)}getMaxPatternValue(t,r,n){if(t==="day"&&r.lastDayOfMonth)return this.getLastDayOfMonth(this.year,this.month);if(t==="day"&&!r.starDOW)return this.getLastDayOfMonth(this.year,this.month);for(let o=r[t].length-1;o>=0;o--)if(r[t][o])return o-n;return r[t].length-1-n}findPrevious(t,r,n,o){return this._findMatch(t,r,n,o,-1)}getDate(t){return t||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)):ky(dh(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}match(t,r){if(!t.starYear&&(this.year<0||this.year>=t.year.length||t.year[this.year]===0))return!1;for(let n=0;n<Fe.length;n++){let o=Fe[n][0],s=Fe[n][2],a=this[o];if(a+s<0||a+s>=t[o].length)return!1;let l=t[o][a+s];if(o==="day"){if(!l){for(let u=0;u<t.nearestWeekdays.length;u++)if(t.nearestWeekdays[u]){let c=this.getNearestWeekday(this.year,this.month,u-s);if(c!==-1&&c===a){l=1;break}}}if(t.lastWeekday){let u=this.getLastWeekday(this.year,this.month);a===u&&(l=1)}if(t.lastDayOfMonth){let u=this.getLastDayOfMonth(this.year,this.month);a===u&&(l=1)}if(!t.starDOW){let u=new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay(),c=t.dayOfWeek[(u+(a-1))%7];c&&c&63&&(c=this.isNthWeekdayOfMonth(this.year,this.month,a,c)?1:0),t.useAndLogic?l=l&&c:!r.domAndDow&&!t.starDOM?l=l||c:l=l&&c}}if(!l)return!1}return!0}};function GA(e){if(e===void 0&&(e={}),delete e.name,e.legacyMode!==void 0&&e.domAndDow===void 0?e.domAndDow=!e.legacyMode:e.domAndDow===void 0&&(e.domAndDow=!1),e.legacyMode=!e.domAndDow,e.paused=e.paused===void 0?!1:e.paused,e.maxRuns=e.maxRuns===void 0?1/0:e.maxRuns,e.catch=e.catch===void 0?!1:e.catch,e.interval=e.interval===void 0?0:parseInt(e.interval.toString(),10),e.utcOffset=e.utcOffset===void 0?void 0:parseInt(e.utcOffset.toString(),10),e.dayOffset=e.dayOffset===void 0?0:parseInt(e.dayOffset.toString(),10),e.unref=e.unref===void 0?!1:e.unref,e.mode=e.mode===void 0?"auto":e.mode,e.alternativeWeekdays=e.alternativeWeekdays===void 0?!1:e.alternativeWeekdays,e.sloppyRanges=e.sloppyRanges===void 0?!1:e.sloppyRanges,!["auto","5-part","6-part","7-part","5-or-6-parts","6-or-7-parts"].includes(e.mode))throw new Error("CronOptions: mode must be one of 'auto', '5-part', '6-part', '7-part', '5-or-6-parts', or '6-or-7-parts'.");if(e.startAt&&(e.startAt=new Je(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new Je(e.stopAt,e.timezone)),e.interval!==null){if(isNaN(e.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(e.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(e.utcOffset!==void 0){if(isNaN(e.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(e.utcOffset<-870||e.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(e.utcOffset!==void 0&&e.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(e.unref!==!0&&e.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");if(e.dayOffset!==void 0&&e.dayOffset!==0&&isNaN(e.dayOffset))throw new Error("CronOptions: Invalid value passed for dayOffset, should be a number representing days to offset.");return e}i(GA,"R");function Ns(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}i(Ns,"p");function JA(e){return Ns(e)}i(JA,"_");function XA(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}i(XA,"x");var Ty=30*1e3,uo=[],Dy=class{static{i(this,"E")}name;options;_states;fn;getTz(){return this.options.timezone||this.options.utcOffset}applyDayOffset(e){if(this.options.dayOffset!==void 0&&this.options.dayOffset!==0){let t=this.options.dayOffset*24*60*60*1e3;return new Date(e.getTime()+t)}return e}constructor(e,t,r){let n,o;if(Ns(t))o=t;else if(typeof t=="object")n=t;else if(t!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Ns(r))o=r;else if(typeof r=="object")n=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=n?.name,this.options=GA(n),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:n?n.maxRuns:void 0,paused:n?n.paused:!1,pattern:new Hl("* * * * *",void 0,{mode:"auto"})},e&&(e instanceof Date||typeof e=="string"&&e.indexOf(":")>0)?this._states.once=new Je(e,this.getTz()):this._states.pattern=new Hl(e,this.options.timezone,{mode:this.options.mode,alternativeWeekdays:this.options.alternativeWeekdays,sloppyRanges:this.options.sloppyRanges}),this.name){if(uo.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");uo.push(this)}return o!==void 0&&JA(o)&&(this.fn=o,this.schedule()),this}nextRun(e){let t=this._next(e);return t?this.applyDayOffset(t.getDate(!1)):null}nextRuns(e,t){this._states.maxRuns!==void 0&&e>this._states.maxRuns&&(e=this._states.maxRuns);let r=t||this._states.currentRun||void 0;return this._enumerateRuns(e,r,"next")}previousRuns(e,t){return this._enumerateRuns(e,t||void 0,"previous")}_enumerateRuns(e,t,r){let n=[],o=t?new Je(t,this.getTz()):null,s=r==="next"?this._next:this._previous;for(;e--;){let a=s.call(this,o);if(!a)break;let l=a.getDate(!1);n.push(this.applyDayOffset(l)),o=a}return n}match(e){if(this._states.once){let r=new Je(e,this.getTz());r.ms=0;let n=new Je(this._states.once,this.getTz());return n.ms=0,r.getTime()===n.getTime()}let t=new Je(e,this.getTz());return t.ms=0,t.match(this._states.pattern,this.options)}getPattern(){if(!this._states.once)return this._states.pattern?this._states.pattern.pattern:void 0}getOnce(){return this._states.once?this._states.once.getDate():null}isRunning(){let e=this.nextRun(this._states.currentRun),t=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return t&&r&&n&&e!==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(e){let t=this._next(e);return t?e instanceof Je||e instanceof Date?t.getTime()-e.getTime():t.getTime()-new Je(e).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=uo.indexOf(this);e>=0&&uo.splice(e,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(e){if(e&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");e&&(this.fn=e);let t=this.msToNext(),r=this.nextRun(this._states.currentRun);return t==null||isNaN(t)||r===null?this:(t>Ty&&(t=Ty),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&XA(this._states.currentTimeout),this)}async _trigger(e){this._states.blocking=!0,this._states.currentRun=new Je(void 0,this.getTz());try{if(this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(t){if(Ns(this.options.catch))try{this.options.catch(t,this)}catch{}}else this.fn!==void 0&&await this.fn(this,this.options.context)}finally{this._states.previousRun=new Je(e,this.getTz()),this._states.blocking=!1}}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(e){let t=new Date,r=!this._states.paused&&t.getTime()>=e.getTime(),n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):r&&n&&Ns(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(e){let t=!!(e||this._states.currentRun),r=!1;!e&&this.options.startAt&&this.options.interval&&([e,t]=this._calculatePreviousRun(e,t),r=!e),e=new Je(e,this.getTz()),this.options.startAt&&e&&e.getTime()<this.options.startAt.getTime()&&(e=this.options.startAt);let n=this._states.once||new Je(e,this.getTz());return!r&&n!==this._states.once&&(n=n.increment(this._states.pattern,this.options,t)),this._states.once&&this._states.once.getTime()<=e.getTime()||n===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&n.getTime()>=this.options.stopAt.getTime()?null:n}_previous(e){let t=new Je(e,this.getTz());this.options.stopAt&&t.getTime()>this.options.stopAt.getTime()&&(t=this.options.stopAt);let r=new Je(t,this.getTz());return this._states.once?this._states.once.getTime()<t.getTime()?this._states.once:null:(r=r.decrement(this._states.pattern,this.options),r===null||this.options.startAt&&r.getTime()<this.options.startAt.getTime()?null:r)}_calculatePreviousRun(e,t){let r=new Je(void 0,this.getTz()),n=e;if(this.options.startAt.getTime()<=r.getTime()){n=this.options.startAt;let o=n.getTime()+this.options.interval*1e3;for(;o<=r.getTime();)n=new Je(n,this.getTz()).increment(this._states.pattern,this.options,!0),o=n.getTime()+this.options.interval*1e3;t=!0}return n===null&&(n=void 0),[n,t]}};var qs={};se(qs,{add:()=>ln,addBusinessDays:()=>Xl,addDays:()=>Xe,addHours:()=>Zl,addISOWeekYears:()=>eu,addMilliseconds:()=>un,addMinutes:()=>ho,addMonths:()=>Er,addQuarters:()=>mo,addSeconds:()=>tu,addWeeks:()=>cn,addYears:()=>ru,areIntervalsOverlapping:()=>My,clamp:()=>_y,closestIndexTo:()=>ou,closestTo:()=>Py,compareAsc:()=>ht,compareDesc:()=>Ny,constructFrom:()=>N,constructNow:()=>me,daysToWeeks:()=>Fy,differenceInBusinessDays:()=>Ly,differenceInCalendarDays:()=>nt,differenceInCalendarISOWeekYears:()=>au,differenceInCalendarISOWeeks:()=>Ry,differenceInCalendarMonths:()=>ti,differenceInCalendarQuarters:()=>go,differenceInCalendarWeeks:()=>ri,differenceInCalendarYears:()=>fn,differenceInDays:()=>xo,differenceInHours:()=>ni,differenceInISOWeekYears:()=>zy,differenceInMilliseconds:()=>yo,differenceInMinutes:()=>ii,differenceInMonths:()=>pn,differenceInQuarters:()=>$y,differenceInSeconds:()=>Ir,differenceInWeeks:()=>Hy,differenceInYears:()=>cu,eachDayOfInterval:()=>fu,eachHourOfInterval:()=>Wy,eachMinuteOfInterval:()=>Uy,eachMonthOfInterval:()=>jy,eachQuarterOfInterval:()=>qy,eachWeekOfInterval:()=>Yy,eachWeekendOfInterval:()=>vo,eachWeekendOfMonth:()=>Vy,eachWeekendOfYear:()=>Qy,eachYearOfInterval:()=>Gy,endOfDay:()=>wo,endOfDecade:()=>Jy,endOfHour:()=>Xy,endOfISOWeek:()=>Zy,endOfISOWeekYear:()=>Ky,endOfMinute:()=>ew,endOfMonth:()=>bo,endOfQuarter:()=>tw,endOfSecond:()=>rw,endOfToday:()=>nw,endOfTomorrow:()=>iw,endOfWeek:()=>hu,endOfYear:()=>pu,endOfYesterday:()=>ow,format:()=>$s,formatDate:()=>$s,formatDistance:()=>yu,formatDistanceStrict:()=>wu,formatDistanceToNow:()=>gw,formatDistanceToNowStrict:()=>xw,formatDuration:()=>yw,formatISO:()=>ww,formatISO9075:()=>bw,formatISODuration:()=>vw,formatRFC3339:()=>kw,formatRFC7231:()=>Sw,formatRelative:()=>Tw,formatters:()=>Bs,fromUnixTime:()=>Ew,getDate:()=>bu,getDay:()=>gn,getDayOfYear:()=>du,getDaysInMonth:()=>vu,getDaysInYear:()=>Dw,getDecade:()=>Cw,getDefaultOptions:()=>Su,getHours:()=>Ow,getISODay:()=>Tu,getISOWeek:()=>Eo,getISOWeekYear:()=>Tt,getISOWeeksInYear:()=>Iw,getMilliseconds:()=>Aw,getMinutes:()=>Mw,getMonth:()=>_w,getOverlappingDaysInIntervals:()=>Pw,getQuarter:()=>Rs,getSeconds:()=>Nw,getTime:()=>Fw,getUnixTime:()=>Lw,getWeek:()=>Do,getWeekOfMonth:()=>Rw,getWeekYear:()=>mn,getWeeksInMonth:()=>Bw,getYear:()=>zw,hoursToMilliseconds:()=>$w,hoursToMinutes:()=>Hw,hoursToSeconds:()=>Ww,interval:()=>Uw,intervalToDuration:()=>jw,intlFormat:()=>qw,intlFormatDistance:()=>Yw,isAfter:()=>Vw,isBefore:()=>Qw,isDate:()=>su,isEqual:()=>Gw,isExists:()=>Jw,isFirstDayOfMonth:()=>Xw,isFriday:()=>Zw,isFuture:()=>Kw,isLastDayOfMonth:()=>uu,isLeapYear:()=>ku,isMatch:()=>eb,isMonday:()=>tb,isPast:()=>rb,isSameDay:()=>Or,isSameHour:()=>dc,isSameISOWeek:()=>gc,isSameISOWeekYear:()=>nb,isSameMinute:()=>xc,isSameMonth:()=>yc,isSameQuarter:()=>wc,isSameSecond:()=>bc,isSameWeek:()=>Ao,isSameYear:()=>vc,isSaturday:()=>Gl,isSunday:()=>Jl,isThisHour:()=>ib,isThisISOWeek:()=>ob,isThisMinute:()=>sb,isThisMonth:()=>ab,isThisQuarter:()=>lb,isThisSecond:()=>ub,isThisWeek:()=>cb,isThisYear:()=>fb,isThursday:()=>pb,isToday:()=>hb,isTomorrow:()=>mb,isTuesday:()=>db,isValid:()=>ut,isWednesday:()=>gb,isWeekend:()=>Dr,isWithinInterval:()=>xb,isYesterday:()=>yb,lastDayOfDecade:()=>wb,lastDayOfISOWeek:()=>bb,lastDayOfISOWeekYear:()=>vb,lastDayOfMonth:()=>Eu,lastDayOfQuarter:()=>kb,lastDayOfWeek:()=>kc,lastDayOfYear:()=>Sb,lightFormat:()=>Tb,lightFormatters:()=>Ht,longFormatters:()=>dn,max:()=>nu,milliseconds:()=>Eb,millisecondsToHours:()=>Db,millisecondsToMinutes:()=>Cb,millisecondsToSeconds:()=>Ob,min:()=>iu,minutesToHours:()=>Ib,minutesToMilliseconds:()=>Ab,minutesToSeconds:()=>Mb,monthsToQuarters:()=>_b,monthsToYears:()=>Pb,nextDay:()=>dt,nextFriday:()=>Nb,nextMonday:()=>Fb,nextSaturday:()=>Lb,nextSunday:()=>Rb,nextThursday:()=>Bb,nextTuesday:()=>zb,nextWednesday:()=>$b,parse:()=>mc,parseISO:()=>Wb,parseJSON:()=>Ub,parsers:()=>hc,previousDay:()=>gt,previousFriday:()=>jb,previousMonday:()=>qb,previousSaturday:()=>Yb,previousSunday:()=>Vb,previousThursday:()=>Qb,previousTuesday:()=>Gb,previousWednesday:()=>Jb,quartersToMonths:()=>Xb,quartersToYears:()=>Zb,roundToNearestHours:()=>Kb,roundToNearestMinutes:()=>e0,secondsToHours:()=>t0,secondsToMilliseconds:()=>r0,secondsToMinutes:()=>n0,set:()=>i0,setDate:()=>o0,setDay:()=>xn,setDayOfYear:()=>s0,setDefaultOptions:()=>a0,setHours:()=>l0,setISODay:()=>Xu,setISOWeek:()=>ju,setISOWeekYear:()=>Kl,setMilliseconds:()=>u0,setMinutes:()=>c0,setMonth:()=>Mo,setQuarter:()=>f0,setSeconds:()=>p0,setWeek:()=>Wu,setWeekYear:()=>h0,setYear:()=>m0,startOfDay:()=>Cr,startOfDecade:()=>d0,startOfHour:()=>Hs,startOfISOWeek:()=>Ye,startOfISOWeekYear:()=>$t,startOfMinute:()=>Ws,startOfMonth:()=>hn,startOfQuarter:()=>Ar,startOfSecond:()=>Us,startOfToday:()=>g0,startOfTomorrow:()=>x0,startOfWeek:()=>Me,startOfWeekYear:()=>oi,startOfYear:()=>ko,startOfYesterday:()=>y0,sub:()=>w0,subBusinessDays:()=>b0,subDays:()=>yn,subHours:()=>v0,subISOWeekYears:()=>lu,subMilliseconds:()=>k0,subMinutes:()=>S0,subMonths:()=>Tc,subQuarters:()=>T0,subSeconds:()=>E0,subWeeks:()=>D0,subYears:()=>C0,toDate:()=>y,transpose:()=>Du,weeksToDays:()=>O0,yearsToDays:()=>I0,yearsToMonths:()=>A0,yearsToQuarters:()=>M0});var Ul=7,Ls=365.2425,ZA=Math.pow(10,8)*24*60*60*1e3,yX=-ZA,Tr=6048e5,jl=864e5,pt=6e4,zt=36e5,co=1e3,xh=525600,an=43200,fo=1440,ql=60,Yl=3,Vl=12,Ql=4,ei=3600,po=60,Wl=ei*24,Cy=Wl*7,yh=Wl*365.2425,wh=yh/12,Oy=wh*3,bh=Symbol.for("constructDateFrom");function N(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&bh in e?e[bh](t):e instanceof Date?new e.constructor(t):new Date(t)}i(N,"constructFrom");var vX=N;function y(e,t){return N(t||e,e)}i(y,"toDate");var EX=y;function Xe(e,t,r){let n=y(e,r?.in);return isNaN(t)?N(r?.in||e,NaN):(t&&n.setDate(n.getDate()+t),n)}i(Xe,"addDays");var AX=Xe;function Er(e,t,r){let n=y(e,r?.in);if(isNaN(t))return N(r?.in||e,NaN);if(!t)return n;let o=n.getDate(),s=N(r?.in||e,n.getTime());s.setMonth(n.getMonth()+t+1,0);let a=s.getDate();return o>=a?s:(n.setFullYear(s.getFullYear(),s.getMonth(),o),n)}i(Er,"addMonths");var FX=Er;function ln(e,t,r){let{years:n=0,months:o=0,weeks:s=0,days:a=0,hours:l=0,minutes:u=0,seconds:c=0}=t,f=y(e,r?.in),p=o||n?Er(f,o+n*12):f,h=a||s?Xe(p,a+s*7):p,m=u+l*60,g=(c+m*60)*1e3;return N(r?.in||e,+h+g)}i(ln,"add");var WX=ln;function Gl(e,t){return y(e,t?.in).getDay()===6}i(Gl,"isSaturday");var YX=Gl;function Jl(e,t){return y(e,t?.in).getDay()===0}i(Jl,"isSunday");var JX=Jl;function Dr(e,t){let r=y(e,t?.in).getDay();return r===0||r===6}i(Dr,"isWeekend");var eZ=Dr;function Xl(e,t,r){let n=y(e,r?.in),o=Dr(n,r);if(isNaN(t))return N(r?.in,NaN);let s=n.getHours(),a=t<0?-1:1,l=Math.trunc(t/5);n.setDate(n.getDate()+l*7);let u=Math.abs(t%5);for(;u>0;)n.setDate(n.getDate()+a),Dr(n,r)||(u-=1);return o&&Dr(n,r)&&t!==0&&(Gl(n,r)&&n.setDate(n.getDate()+(a<0?2:-1)),Jl(n,r)&&n.setDate(n.getDate()+(a<0?1:-2))),n.setHours(s),n}i(Xl,"addBusinessDays");var lZ=Xl;function un(e,t,r){return N(r?.in||e,+y(e)+t)}i(un,"addMilliseconds");var hZ=un;function Zl(e,t,r){return un(e,t*zt,r)}i(Zl,"addHours");var yZ=Zl;var Iy={};function Ee(){return Iy}i(Ee,"getDefaultOptions");function Ay(e){Iy=e}i(Ay,"setDefaultOptions");function Me(e,t){let r=Ee(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=y(e,t?.in),s=o.getDay(),a=(s<n?7:0)+s-n;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}i(Me,"startOfWeek");var EZ=Me;function Ye(e,t){return Me(e,{...t,weekStartsOn:1})}i(Ye,"startOfISOWeek");var IZ=Ye;function Tt(e,t){let r=y(e,t?.in),n=r.getFullYear(),o=N(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let s=Ye(o),a=N(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);let l=Ye(a);return r.getTime()>=s.getTime()?n+1:r.getTime()>=l.getTime()?n:n-1}i(Tt,"getISOWeekYear");var FZ=Tt;function Be(e){let t=y(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}i(Be,"getTimezoneOffsetInMilliseconds");function ee(e,...t){let r=N.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}i(ee,"normalizeDates");function Cr(e,t){let r=y(e,t?.in);return r.setHours(0,0,0,0),r}i(Cr,"startOfDay");var qZ=Cr;function nt(e,t,r){let[n,o]=ee(r?.in,e,t),s=Cr(n),a=Cr(o),l=+s-Be(s),u=+a-Be(a);return Math.round((l-u)/jl)}i(nt,"differenceInCalendarDays");var ZZ=nt;function $t(e,t){let r=Tt(e,t),n=N(t?.in||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ye(n)}i($t,"startOfISOWeekYear");var iK=$t;function Kl(e,t,r){let n=y(e,r?.in),o=nt(n,$t(n,r)),s=N(r?.in||e,0);return s.setFullYear(t,0,4),s.setHours(0,0,0,0),n=$t(s),n.setDate(n.getDate()+o),n}i(Kl,"setISOWeekYear");var fK=Kl;function eu(e,t,r){return Kl(e,Tt(e,r)+t,r)}i(eu,"addISOWeekYears");var gK=eu;function ho(e,t,r){let n=y(e,r?.in);return n.setTime(n.getTime()+t*pt),n}i(ho,"addMinutes");var vK=ho;function mo(e,t,r){return Er(e,t*3,r)}i(mo,"addQuarters");var EK=mo;function tu(e,t,r){return un(e,t*1e3,r)}i(tu,"addSeconds");var IK=tu;function cn(e,t,r){return Xe(e,t*7,r)}i(cn,"addWeeks");var PK=cn;function ru(e,t,r){return Er(e,t*12,r)}i(ru,"addYears");var RK=ru;function My(e,t,r){let[n,o]=[+y(e.start,r?.in),+y(e.end,r?.in)].sort((l,u)=>l-u),[s,a]=[+y(t.start,r?.in),+y(t.end,r?.in)].sort((l,u)=>l-u);return r?.inclusive?n<=a&&s<=o:n<a&&s<o}i(My,"areIntervalsOverlapping");var HK=My;function nu(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=N.bind(null,o));let s=y(o,n);(!r||r<s||isNaN(+s))&&(r=s)}),N(n,r||NaN)}i(nu,"max");var YK=nu;function iu(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=N.bind(null,o));let s=y(o,n);(!r||r>s||isNaN(+s))&&(r=s)}),N(n,r||NaN)}i(iu,"min");var XK=iu;function _y(e,t,r){let[n,o,s]=ee(r?.in,e,t.start,t.end);return iu([nu([n,o],r),s],r)}i(_y,"clamp");var nee=_y;function ou(e,t){let r=+y(e);if(isNaN(r))return NaN;let n,o;return t.forEach((s,a)=>{let l=y(s);if(isNaN(+l)){n=NaN,o=NaN;return}let u=Math.abs(r-+l);(n==null||u<o)&&(n=a,o=u)}),n}i(ou,"closestIndexTo");var aee=ou;function Py(e,t,r){let[n,...o]=ee(r?.in,e,...t),s=ou(n,o);if(typeof s=="number"&&isNaN(s))return N(n,NaN);if(s!==void 0)return o[s]}i(Py,"closestTo");var hee=Py;function ht(e,t){let r=+y(e)-+y(t);return r<0?-1:r>0?1:r}i(ht,"compareAsc");var xee=ht;function Ny(e,t){let r=+y(e)-+y(t);return r>0?-1:r<0?1:r}i(Ny,"compareDesc");var vee=Ny;function me(e){return N(e,Date.now())}i(me,"constructNow");var Eee=me;function Fy(e){let t=Math.trunc(e/7);return t===0?0:t}i(Fy,"daysToWeeks");var Iee=Fy;function Or(e,t,r){let[n,o]=ee(r?.in,e,t);return+Cr(n)==+Cr(o)}i(Or,"isSameDay");var Nee=Or;function su(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}i(su,"isDate");var Ree=su;function ut(e){return!(!su(e)&&typeof e!="number"||isNaN(+y(e)))}i(ut,"isValid");var Wee=ut;function Ly(e,t,r){let[n,o]=ee(r?.in,e,t);if(!ut(n)||!ut(o))return NaN;let s=nt(n,o),a=s<0?-1:1,l=Math.trunc(s/7),u=l*5,c=Xe(o,l*7);for(;!Or(n,c);)u+=Dr(c,r)?0:a,c=Xe(c,a);return u===0?0:u}i(Ly,"differenceInBusinessDays");var Xee=Ly;function au(e,t,r){let[n,o]=ee(r?.in,e,t);return Tt(n,r)-Tt(o,r)}i(au,"differenceInCalendarISOWeekYears");var rte=au;function Ry(e,t,r){let[n,o]=ee(r?.in,e,t),s=Ye(n),a=Ye(o),l=+s-Be(s),u=+a-Be(a);return Math.round((l-u)/Tr)}i(Ry,"differenceInCalendarISOWeeks");var ute=Ry;function ti(e,t,r){let[n,o]=ee(r?.in,e,t),s=n.getFullYear()-o.getFullYear(),a=n.getMonth()-o.getMonth();return s*12+a}i(ti,"differenceInCalendarMonths");var hte=ti;function Rs(e,t){let r=y(e,t?.in);return Math.trunc(r.getMonth()/3)+1}i(Rs,"getQuarter");var xte=Rs;function go(e,t,r){let[n,o]=ee(r?.in,e,t),s=n.getFullYear()-o.getFullYear(),a=Rs(n)-Rs(o);return s*4+a}i(go,"differenceInCalendarQuarters");var kte=go;function ri(e,t,r){let[n,o]=ee(r?.in,e,t),s=Me(n,r),a=Me(o,r),l=+s-Be(s),u=+a-Be(a);return Math.round((l-u)/Tr)}i(ri,"differenceInCalendarWeeks");var Ite=ri;function fn(e,t,r){let[n,o]=ee(r?.in,e,t);return n.getFullYear()-o.getFullYear()}i(fn,"differenceInCalendarYears");var Pte=fn;function xo(e,t,r){let[n,o]=ee(r?.in,e,t),s=By(n,o),a=Math.abs(nt(n,o));n.setDate(n.getDate()-s*a);let l=+(By(n,o)===-s),u=s*(a-l);return u===0?0:u}i(xo,"differenceInDays");function By(e,t){let r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}i(By,"compareLocalAsc");var Bte=xo;function mt(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}i(mt,"getRoundingMethod");function ni(e,t,r){let[n,o]=ee(r?.in,e,t),s=(+n-+o)/zt;return mt(r?.roundingMethod)(s)}i(ni,"differenceInHours");var Yte=ni;function lu(e,t,r){return eu(e,-t,r)}i(lu,"subISOWeekYears");var Jte=lu;function zy(e,t,r){let[n,o]=ee(r?.in,e,t),s=ht(n,o),a=Math.abs(au(n,o,r)),l=lu(n,s*a,r),u=+(ht(l,o)===-s),c=s*(a-u);return c===0?0:c}i(zy,"differenceInISOWeekYears");var nre=zy;function yo(e,t){return+y(e)-+y(t)}i(yo,"differenceInMilliseconds");var are=yo;function ii(e,t,r){let n=yo(e,t)/pt;return mt(r?.roundingMethod)(n)}i(ii,"differenceInMinutes");var hre=ii;function wo(e,t){let r=y(e,t?.in);return r.setHours(23,59,59,999),r}i(wo,"endOfDay");var xre=wo;function bo(e,t){let r=y(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}i(bo,"endOfMonth");var vre=bo;function uu(e,t){let r=y(e,t?.in);return+wo(r,t)==+bo(r,t)}i(uu,"isLastDayOfMonth");var Cre=uu;function pn(e,t,r){let[n,o,s]=ee(r?.in,e,e,t),a=ht(o,s),l=Math.abs(ti(o,s));if(l<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-a*l);let u=ht(o,s)===-a;uu(n)&&l===1&&ht(n,s)===1&&(u=!1);let c=a*(l-+u);return c===0?0:c}i(pn,"differenceInMonths");var Nre=pn;function $y(e,t,r){let n=pn(e,t,r)/3;return mt(r?.roundingMethod)(n)}i($y,"differenceInQuarters");var zre=$y;function Ir(e,t,r){let n=yo(e,t)/1e3;return mt(r?.roundingMethod)(n)}i(Ir,"differenceInSeconds");var jre=Ir;function Hy(e,t,r){let n=xo(e,t,r)/7;return mt(r?.roundingMethod)(n)}i(Hy,"differenceInWeeks");var Gre=Hy;function cu(e,t,r){let[n,o]=ee(r?.in,e,t),s=ht(n,o),a=Math.abs(fn(n,o));n.setFullYear(1584),o.setFullYear(1584);let l=ht(n,o)===-s,u=s*(a-+l);return u===0?0:u}i(cu,"differenceInYears");var tne=cu;function it(e,t){let[r,n]=ee(e,t.start,t.end);return{start:r,end:n}}i(it,"normalizeInterval");function fu(e,t){let{start:r,end:n}=it(t?.in,e),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(N(r,a)),a.setDate(a.getDate()+l),a.setHours(0,0,0,0);return o?u.reverse():u}i(fu,"eachDayOfInterval");var une=fu;function Wy(e,t){let{start:r,end:n}=it(t?.in,e),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setMinutes(0,0,0);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(N(r,a)),a.setHours(a.getHours()+l);return o?u.reverse():u}i(Wy,"eachHourOfInterval");var mne=Wy;function Uy(e,t){let{start:r,end:n}=it(t?.in,e);r.setSeconds(0,0);let o=+r>+n,s=o?+r:+n,a=o?n:r,l=t?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(N(r,a)),a=ho(a,l);return o?u.reverse():u}i(Uy,"eachMinuteOfInterval");var bne=Uy;function jy(e,t){let{start:r,end:n}=it(t?.in,e),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0),a.setDate(1);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(N(r,a)),a.setMonth(a.getMonth()+l);return o?u.reverse():u}i(jy,"eachMonthOfInterval");var Ene=jy;function Ar(e,t){let r=y(e,t?.in),n=r.getMonth(),o=n-n%3;return r.setMonth(o,1),r.setHours(0,0,0,0),r}i(Ar,"startOfQuarter");var Ine=Ar;function qy(e,t){let{start:r,end:n}=it(t?.in,e),o=+r>+n,s=o?+Ar(r):+Ar(n),a=o?Ar(n):Ar(r),l=t?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(N(r,a)),a=mo(a,l);return o?u.reverse():u}i(qy,"eachQuarterOfInterval");var Lne=qy;function Yy(e,t){let{start:r,end:n}=it(t?.in,e),o=+r>+n,s=o?Me(n,t):Me(r,t),a=o?Me(r,t):Me(n,t);s.setHours(15),a.setHours(15);let l=+a.getTime(),u=s,c=t?.step??1;if(!c)return[];c<0&&(c=-c,o=!o);let f=[];for(;+u<=l;)u.setHours(0),f.push(N(r,u)),u=cn(u,c),u.setHours(15);return o?f.reverse():f}i(Yy,"eachWeekOfInterval");var Une=Yy;function vo(e,t){let{start:r,end:n}=it(t?.in,e),o=fu({start:r,end:n},t),s=[],a=0;for(;a<o.length;){let l=o[a++];Dr(l)&&s.push(N(r,l))}return s}i(vo,"eachWeekendOfInterval");var Jne=vo;function hn(e,t){let r=y(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}i(hn,"startOfMonth");var eie=hn;function Vy(e,t){let r=hn(e,t),n=bo(e,t);return vo({start:r,end:n},t)}i(Vy,"eachWeekendOfMonth");var sie=Vy;function pu(e,t){let r=y(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}i(pu,"endOfYear");var cie=pu;function ko(e,t){let r=y(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}i(ko,"startOfYear");var mie=ko;function Qy(e,t){let r=ko(e,t),n=pu(e,t);return vo({start:r,end:n},t)}i(Qy,"eachWeekendOfYear");var bie=Qy;function Gy(e,t){let{start:r,end:n}=it(t?.in,e),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0),a.setMonth(0,1);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(N(r,a)),a.setFullYear(a.getFullYear()+l);return o?u.reverse():u}i(Gy,"eachYearOfInterval");var Eie=Gy;function Jy(e,t){let r=y(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o,11,31),r.setHours(23,59,59,999),r}i(Jy,"endOfDecade");var Iie=Jy;function Xy(e,t){let r=y(e,t?.in);return r.setMinutes(59,59,999),r}i(Xy,"endOfHour");var Pie=Xy;function hu(e,t){let r=Ee(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=y(e,t?.in),s=o.getDay(),a=(s<n?-7:0)+6-(s-n);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}i(hu,"endOfWeek");var Bie=hu;function Zy(e,t){return hu(e,{...t,weekStartsOn:1})}i(Zy,"endOfISOWeek");var Wie=Zy;function Ky(e,t){let r=Tt(e,t),n=N(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=Ye(n,t);return o.setMilliseconds(o.getMilliseconds()-1),o}i(Ky,"endOfISOWeekYear");var Qie=Ky;function ew(e,t){let r=y(e,t?.in);return r.setSeconds(59,999),r}i(ew,"endOfMinute");var Zie=ew;function tw(e,t){let r=y(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(23,59,59,999),r}i(tw,"endOfQuarter");var roe=tw;function rw(e,t){let r=y(e,t?.in);return r.setMilliseconds(999),r}i(rw,"endOfSecond");var soe=rw;function nw(e){return wo(Date.now(),e)}i(nw,"endOfToday");var coe=nw;function iw(e){let t=me(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),s=me(e?.in);return s.setFullYear(r,n,o+1),s.setHours(23,59,59,999),e?.in?e.in(s):s}i(iw,"endOfTomorrow");var moe=iw;function ow(e){let t=me(e?.in),r=N(e?.in,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()-1),r.setHours(23,59,59,999),r}i(ow,"endOfYesterday");var woe=ow;var KA={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"}},sw=i((e,t,r)=>{let n,o=KA[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},"formatDistance");function mu(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}i(mu,"buildFormatLongFn");var eM={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},tM={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rM={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aw={date:mu({formats:eM,defaultWidth:"full"}),time:mu({formats:tM,defaultWidth:"full"}),dateTime:mu({formats:rM,defaultWidth:"full"})};var nM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},lw=i((e,t,r,n)=>nM[e],"formatRelative");function So(e){return(t,r)=>{let n=r?.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let a=e.defaultFormattingWidth||e.defaultWidth,l=r?.width?String(r.width):a;o=e.formattingValues[l]||e.formattingValues[a]}else{let a=e.defaultWidth,l=r?.width?String(r.width):e.defaultWidth;o=e.values[l]||e.values[a]}let s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}i(So,"buildLocalizeFn");var iM={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oM={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},sM={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"]},aM={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"]},lM={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"}},uM={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"}},cM=i((e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},"ordinalNumber"),uw={ordinalNumber:cM,era:So({values:iM,defaultWidth:"wide"}),quarter:So({values:oM,defaultWidth:"wide",argumentCallback:i(e=>e-1,"argumentCallback")}),month:So({values:sM,defaultWidth:"wide"}),day:So({values:aM,defaultWidth:"wide"}),dayPeriod:So({values:lM,defaultWidth:"wide",formattingValues:uM,defaultFormattingWidth:"wide"})};function To(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;let a=s[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?pM(l,p=>p.test(a)):fM(l,p=>p.test(a)),c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;let f=t.slice(a.length);return{value:c,rest:f}}}i(To,"buildMatchFn");function fM(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}i(fM,"findKey");function pM(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}i(pM,"findIndex");function cw(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=r.valueCallback?r.valueCallback(a):a;let l=t.slice(o.length);return{value:a,rest:l}}}i(cw,"buildMatchPatternFn");var hM=/^(\d+)(th|st|nd|rd)?/i,mM=/\d+/i,dM={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},gM={any:[/^b/i,/^(a|c)/i]},xM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yM={any:[/1/i,/2/i,/3/i,/4/i]},wM={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},bM={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]},vM={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kM={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},SM={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},TM={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}},fw={ordinalNumber:cw({matchPattern:hM,parsePattern:mM,valueCallback:i(e=>parseInt(e,10),"valueCallback")}),era:To({matchPatterns:dM,defaultMatchWidth:"wide",parsePatterns:gM,defaultParseWidth:"any"}),quarter:To({matchPatterns:xM,defaultMatchWidth:"wide",parsePatterns:yM,defaultParseWidth:"any",valueCallback:i(e=>e+1,"valueCallback")}),month:To({matchPatterns:wM,defaultMatchWidth:"wide",parsePatterns:bM,defaultParseWidth:"any"}),day:To({matchPatterns:vM,defaultMatchWidth:"wide",parsePatterns:kM,defaultParseWidth:"any"}),dayPeriod:To({matchPatterns:SM,defaultMatchWidth:"any",parsePatterns:TM,defaultParseWidth:"any"})};var Pt={code:"en-US",formatDistance:sw,formatLong:aw,formatRelative:lw,localize:uw,match:fw,options:{weekStartsOn:0,firstWeekContainsDate:1}},Qoe=Pt;function du(e,t){let r=y(e,t?.in);return nt(r,ko(r))+1}i(du,"getDayOfYear");var tse=du;function Eo(e,t){let r=y(e,t?.in),n=+Ye(r)-+$t(r);return Math.round(n/Tr)+1}i(Eo,"getISOWeek");var lse=Eo;function mn(e,t){let r=y(e,t?.in),n=r.getFullYear(),o=Ee(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=N(t?.in||e,0);a.setFullYear(n+1,0,s),a.setHours(0,0,0,0);let l=Me(a,t),u=N(t?.in||e,0);u.setFullYear(n,0,s),u.setHours(0,0,0,0);let c=Me(u,t);return+r>=+l?n+1:+r>=+c?n:n-1}i(mn,"getWeekYear");var dse=mn;function oi(e,t){let r=Ee(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=mn(e,t),s=N(t?.in||e,0);return s.setFullYear(o,0,n),s.setHours(0,0,0,0),Me(s,t)}i(oi,"startOfWeekYear");var kse=oi;function Do(e,t){let r=y(e,t?.in),n=+Me(r,t)-+oi(r,t);return Math.round(n/Tr)+1}i(Do,"getWeek");var Ise=Do;function G(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}i(G,"addLeadingZeros");var Ht={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return G(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):G(r+1,2)},d(e,t){return G(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(e,t){return G(e.getHours()%12||12,t.length)},H(e,t){return G(e.getHours(),t.length)},m(e,t){return G(e.getMinutes(),t.length)},s(e,t){return G(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return G(o,t.length)}};var Co={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Bs={G:i(function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},"G"),y:i(function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return Ht.y(e,t)},"y"),Y:i(function(e,t,r,n){let o=mn(e,n),s=o>0?o:1-o;if(t==="YY"){let a=s%100;return G(a,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):G(s,t.length)},"Y"),R:i(function(e,t){let r=Tt(e);return G(r,t.length)},"R"),u:i(function(e,t){let r=e.getFullYear();return G(r,t.length)},"u"),Q:i(function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return G(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},"Q"),q:i(function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return G(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},"q"),M:i(function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return Ht.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},"M"),L:i(function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return G(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},"L"),w:i(function(e,t,r,n){let o=Do(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):G(o,t.length)},"w"),I:i(function(e,t,r){let n=Eo(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):G(n,t.length)},"I"),d:i(function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Ht.d(e,t)},"d"),D:i(function(e,t,r){let n=du(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):G(n,t.length)},"D"),E:i(function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},"E"),e:i(function(e,t,r,n){let o=e.getDay(),s=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return G(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},"e"),c:i(function(e,t,r,n){let o=e.getDay(),s=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return G(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},"c"),i:i(function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return G(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},"i"),a:i(function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},"a"),b:i(function(e,t,r){let n=e.getHours(),o;switch(n===12?o=Co.noon:n===0?o=Co.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},"b"),B:i(function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=Co.evening:n>=12?o=Co.afternoon:n>=4?o=Co.morning:o=Co.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},"B"),h:i(function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Ht.h(e,t)},"h"),H:i(function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Ht.H(e,t)},"H"),K:i(function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):G(n,t.length)},"K"),k:i(function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):G(n,t.length)},"k"),m:i(function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ht.m(e,t)},"m"),s:i(function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Ht.s(e,t)},"s"),S:i(function(e,t){return Ht.S(e,t)},"S"),X:i(function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return hw(n);case"XXXX":case"XX":return si(n);default:return si(n,":")}},"X"),x:i(function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return hw(n);case"xxxx":case"xx":return si(n);default:return si(n,":")}},"x"),O:i(function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+pw(n,":");default:return"GMT"+si(n,":")}},"O"),z:i(function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+pw(n,":");default:return"GMT"+si(n,":")}},"z"),t:i(function(e,t,r){let n=Math.trunc(+e/1e3);return G(n,t.length)},"t"),T:i(function(e,t,r){return G(+e,t.length)},"T")};function pw(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),s=n%60;return s===0?r+String(o):r+String(o)+t+G(s,2)}i(pw,"formatTimezoneShort");function hw(e,t){return e%60===0?(e>0?"-":"+")+G(Math.abs(e)/60,2):si(e,t)}i(hw,"formatTimezoneWithOptionalMinutes");function si(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=G(Math.trunc(n/60),2),s=G(n%60,2);return r+o+t+s}i(si,"formatTimezone");var mw=i((e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},"dateLongFormatter"),dw=i((e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},"timeLongFormatter"),EM=i((e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return mw(e,t);let s;switch(n){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",mw(n,t)).replace("{{time}}",dw(o,t))},"dateTimeLongFormatter"),dn={p:dw,P:EM};var DM=/^D+$/,CM=/^Y+$/,OM=["D","DD","YY","YYYY"];function gu(e){return DM.test(e)}i(gu,"isProtectedDayOfYearToken");function xu(e){return CM.test(e)}i(xu,"isProtectedWeekYearToken");function zs(e,t,r){let n=IM(e,t,r);if(console.warn(n),OM.includes(e))throw new RangeError(n)}i(zs,"warnOrThrowProtectedError");function IM(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}i(IM,"message");var AM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,MM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_M=/^'([^]*?)'?$/,PM=/''/g,NM=/[a-zA-Z]/;function $s(e,t,r){let n=Ee(),o=r?.locale??n.locale??Pt,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,l=y(e,r?.in);if(!ut(l))throw new RangeError("Invalid time value");let u=t.match(MM).map(f=>{let p=f[0];if(p==="p"||p==="P"){let h=dn[p];return h(f,o.formatLong)}return f}).join("").match(AM).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let p=f[0];if(p==="'")return{isToken:!1,value:FM(f)};if(Bs[p])return{isToken:!0,value:f};if(p.match(NM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(u=o.localize.preprocessor(l,u));let c={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return u.map(f=>{if(!f.isToken)return f.value;let p=f.value;(!r?.useAdditionalWeekYearTokens&&xu(p)||!r?.useAdditionalDayOfYearTokens&&gu(p))&&zs(p,t,String(e));let h=Bs[p[0]];return h(l,p,o.localize,c)}).join("")}i($s,"format");function FM(e){let t=e.match(_M);return t?t[1].replace(PM,"'"):e}i(FM,"cleanEscapedString");var rae=$s;function yu(e,t,r){let n=Ee(),o=r?.locale??n.locale??Pt,s=2520,a=ht(e,t);if(isNaN(a))throw new RangeError("Invalid time value");let l=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:a}),[u,c]=ee(r?.in,...a>0?[t,e]:[e,t]),f=Ir(c,u),p=(Be(c)-Be(u))/1e3,h=Math.round((f-p)/60),m;if(h<2)return r?.includeSeconds?f<5?o.formatDistance("lessThanXSeconds",5,l):f<10?o.formatDistance("lessThanXSeconds",10,l):f<20?o.formatDistance("lessThanXSeconds",20,l):f<40?o.formatDistance("halfAMinute",0,l):f<60?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",1,l):h===0?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",h,l);if(h<45)return o.formatDistance("xMinutes",h,l);if(h<90)return o.formatDistance("aboutXHours",1,l);if(h<fo){let d=Math.round(h/60);return o.formatDistance("aboutXHours",d,l)}else{if(h<s)return o.formatDistance("xDays",1,l);if(h<an){let d=Math.round(h/fo);return o.formatDistance("xDays",d,l)}else if(h<an*2)return m=Math.round(h/an),o.formatDistance("aboutXMonths",m,l)}if(m=pn(c,u),m<12){let d=Math.round(h/an);return o.formatDistance("xMonths",d,l)}else{let d=m%12,g=Math.trunc(m/12);return d<3?o.formatDistance("aboutXYears",g,l):d<9?o.formatDistance("overXYears",g,l):o.formatDistance("almostXYears",g+1,l)}}i(yu,"formatDistance");var hae=yu;function wu(e,t,r){let n=Ee(),o=r?.locale??n.locale??Pt,s=ht(e,t);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[l,u]=ee(r?.in,...s>0?[t,e]:[e,t]),c=mt(r?.roundingMethod??"round"),f=u.getTime()-l.getTime(),p=f/pt,h=Be(u)-Be(l),m=(f-h)/pt,d=r?.unit,g;if(d?g=d:p<1?g="second":p<60?g="minute":p<fo?g="hour":m<an?g="day":m<xh?g="month":g="year",g==="second"){let x=c(f/1e3);return o.formatDistance("xSeconds",x,a)}else if(g==="minute"){let x=c(p);return o.formatDistance("xMinutes",x,a)}else if(g==="hour"){let x=c(p/60);return o.formatDistance("xHours",x,a)}else if(g==="day"){let x=c(m/fo);return o.formatDistance("xDays",x,a)}else if(g==="month"){let x=c(m/an);return x===12&&d!=="month"?o.formatDistance("xYears",1,a):o.formatDistance("xMonths",x,a)}else{let x=c(m/xh);return o.formatDistance("xYears",x,a)}}i(wu,"formatDistanceStrict");var Sae=wu;function gw(e,t){return yu(e,me(e),t)}i(gw,"formatDistanceToNow");var Oae=gw;function xw(e,t){return wu(e,me(e),t)}i(xw,"formatDistanceToNowStrict");var Pae=xw;var LM=["years","months","weeks","days","hours","minutes","seconds"];function yw(e,t){let r=Ee(),n=t?.locale??r.locale??Pt,o=t?.format??LM,s=t?.zero??!1,a=t?.delimiter??" ";return n.formatDistance?o.reduce((u,c)=>{let f=`x${c.replace(/(^.)/,h=>h.toUpperCase())}`,p=e[c];return p!==void 0&&(s||e[c])?u.concat(n.formatDistance(f,p)):u},[]).join(a):""}i(yw,"formatDuration");var Bae=yw;function ww(e,t){let r=y(e,t?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let n=t?.format??"extended",o=t?.representation??"complete",s="",a="",l=n==="extended"?"-":"",u=n==="extended"?":":"";if(o!=="time"){let c=G(r.getDate(),2),f=G(r.getMonth()+1,2);s=`${G(r.getFullYear(),4)}${l}${f}${l}${c}`}if(o!=="date"){let c=r.getTimezoneOffset();if(c!==0){let g=Math.abs(c),x=G(Math.trunc(g/60),2),b=G(g%60,2);a=`${c<0?"+":"-"}${x}:${b}`}else a="Z";let f=G(r.getHours(),2),p=G(r.getMinutes(),2),h=G(r.getSeconds(),2),m=s===""?"":"T",d=[f,p,h].join(u);s=`${s}${m}${d}${a}`}return s}i(ww,"formatISO");var Uae=ww;function bw(e,t){let r=y(e,t?.in);if(!ut(r))throw new RangeError("Invalid time value");let n=t?.format??"extended",o=t?.representation??"complete",s="",a=n==="extended"?"-":"",l=n==="extended"?":":"";if(o!=="time"){let u=G(r.getDate(),2),c=G(r.getMonth()+1,2);s=`${G(r.getFullYear(),4)}${a}${c}${a}${u}`}if(o!=="date"){let u=G(r.getHours(),2),c=G(r.getMinutes(),2),f=G(r.getSeconds(),2);s=`${s}${s===""?"":" "}${u}${l}${c}${l}${f}`}return s}i(bw,"formatISO9075");var Gae=bw;function vw(e){let{years:t=0,months:r=0,days:n=0,hours:o=0,minutes:s=0,seconds:a=0}=e;return`P${t}Y${r}M${n}DT${o}H${s}M${a}S`}i(vw,"formatISODuration");var Zae=vw;function kw(e,t){let r=y(e,t?.in);if(!ut(r))throw new RangeError("Invalid time value");let n=t?.fractionDigits??0,o=G(r.getDate(),2),s=G(r.getMonth()+1,2),a=r.getFullYear(),l=G(r.getHours(),2),u=G(r.getMinutes(),2),c=G(r.getSeconds(),2),f="";if(n>0){let m=r.getMilliseconds(),d=Math.trunc(m*Math.pow(10,n-3));f="."+G(d,n)}let p="",h=r.getTimezoneOffset();if(h!==0){let m=Math.abs(h),d=G(Math.trunc(m/60),2),g=G(m%60,2);p=`${h<0?"+":"-"}${d}:${g}`}else p="Z";return`${a}-${s}-${o}T${l}:${u}:${c}${f}${p}`}i(kw,"formatRFC3339");var ile=kw;var RM=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],BM=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Sw(e){let t=y(e);if(!ut(t))throw new RangeError("Invalid time value");let r=RM[t.getUTCDay()],n=G(t.getUTCDate(),2),o=BM[t.getUTCMonth()],s=t.getUTCFullYear(),a=G(t.getUTCHours(),2),l=G(t.getUTCMinutes(),2),u=G(t.getUTCSeconds(),2);return`${r}, ${n} ${o} ${s} ${a}:${l}:${u} GMT`}i(Sw,"formatRFC7231");var cle=Sw;function Tw(e,t,r){let[n,o]=ee(r?.in,e,t),s=Ee(),a=r?.locale??s.locale??Pt,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,u=nt(n,o);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=a.formatRelative(c,n,o,{locale:a,weekStartsOn:l});return $s(n,f,{locale:a,weekStartsOn:l})}i(Tw,"formatRelative");var yle=Tw;function Ew(e,t){return y(e*1e3,t?.in)}i(Ew,"fromUnixTime");var kle=Ew;function bu(e,t){return y(e,t?.in).getDate()}i(bu,"getDate");var Dle=bu;function gn(e,t){return y(e,t?.in).getDay()}i(gn,"getDay");var Ale=gn;function vu(e,t){let r=y(e,t?.in),n=r.getFullYear(),o=r.getMonth(),s=N(r,0);return s.setFullYear(n,o+1,0),s.setHours(0,0,0,0),s.getDate()}i(vu,"getDaysInMonth");var Fle=vu;function ku(e,t){let n=y(e,t?.in).getFullYear();return n%400===0||n%4===0&&n%100!==0}i(ku,"isLeapYear");var zle=ku;function Dw(e,t){let r=y(e,t?.in);return Number.isNaN(+r)?NaN:ku(r)?366:365}i(Dw,"getDaysInYear");var jle=Dw;function Cw(e,t){let n=y(e,t?.in).getFullYear();return Math.floor(n/10)*10}i(Cw,"getDecade");var Qle=Cw;function Su(){return Object.assign({},Ee())}i(Su,"getDefaultOptions");var Zle=Su;function Ow(e,t){return y(e,t?.in).getHours()}i(Ow,"getHours");var rue=Ow;function Tu(e,t){let r=y(e,t?.in).getDay();return r===0?7:r}i(Tu,"getISODay");var sue=Tu;function Iw(e,t){let r=$t(e,t),o=+$t(cn(r,60))-+r;return Math.round(o/Tr)}i(Iw,"getISOWeeksInYear");var pue=Iw;function Aw(e){return y(e).getMilliseconds()}i(Aw,"getMilliseconds");var gue=Aw;function Mw(e,t){return y(e,t?.in).getMinutes()}i(Mw,"getMinutes");var bue=Mw;function _w(e,t){return y(e,t?.in).getMonth()}i(_w,"getMonth");var Tue=_w;function Pw(e,t){let[r,n]=[+y(e.start),+y(e.end)].sort((p,h)=>p-h),[o,s]=[+y(t.start),+y(t.end)].sort((p,h)=>p-h);if(!(r<s&&o<n))return 0;let l=o<r?r:o,u=l-Be(l),c=s>n?n:s,f=c-Be(c);return Math.ceil((f-u)/jl)}i(Pw,"getOverlappingDaysInIntervals");var Aue=Pw;function Nw(e){return y(e).getSeconds()}i(Nw,"getSeconds");var Nue=Nw;function Fw(e){return+y(e)}i(Fw,"getTime");var Bue=Fw;function Lw(e){return Math.trunc(+y(e)/1e3)}i(Lw,"getUnixTime");var Wue=Lw;function Rw(e,t){let r=Ee(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=bu(y(e,t?.in));if(isNaN(o))return NaN;let s=gn(hn(e,t)),a=n-s;a<=0&&(a+=7);let l=o-a;return Math.ceil(l/7)+1}i(Rw,"getWeekOfMonth");var Jue=Rw;function Eu(e,t){let r=y(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),y(r,t?.in)}i(Eu,"lastDayOfMonth");var ece=Eu;function Bw(e,t){let r=y(e,t?.in);return ri(Eu(r,t),hn(r,t),t)+1}i(Bw,"getWeeksInMonth");var ace=Bw;function zw(e,t){return y(e,t?.in).getFullYear()}i(zw,"getYear");var fce=zw;function $w(e){return Math.trunc(e*zt)}i($w,"hoursToMilliseconds");var dce=$w;function Hw(e){return Math.trunc(e*ql)}i(Hw,"hoursToMinutes");var wce=Hw;function Ww(e){return Math.trunc(e*ei)}i(Ww,"hoursToSeconds");var Sce=Ww;function Uw(e,t,r){let[n,o]=ee(r?.in,e,t);if(isNaN(+n))throw new TypeError("Start date is invalid");if(isNaN(+o))throw new TypeError("End date is invalid");if(r?.assertPositive&&+n>+o)throw new TypeError("End date must be after start date");return{start:n,end:o}}i(Uw,"interval");var Cce=Uw;function jw(e,t){let{start:r,end:n}=it(t?.in,e),o={},s=cu(n,r);s&&(o.years=s);let a=ln(r,{years:o.years}),l=pn(n,a);l&&(o.months=l);let u=ln(a,{months:o.months}),c=xo(n,u);c&&(o.days=c);let f=ln(u,{days:o.days}),p=ni(n,f);p&&(o.hours=p);let h=ln(f,{hours:o.hours}),m=ii(n,h);m&&(o.minutes=m);let d=ln(h,{minutes:o.minutes}),g=Ir(n,d);return g&&(o.seconds=g),o}i(jw,"intervalToDuration");var Bce=jw;function qw(e,t,r){let n;return zM(t)?n=t:r=t,new Intl.DateTimeFormat(r?.locale,n).format(y(e))}i(qw,"intlFormat");function zM(e){return e!==void 0&&!("locale"in e)}i(zM,"isFormatOptions");var Wce=qw;function Yw(e,t,r){let n=0,o,[s,a]=ee(r?.in,e,t);if(r?.unit)o=r?.unit,o==="second"?n=Ir(s,a):o==="minute"?n=ii(s,a):o==="hour"?n=ni(s,a):o==="day"?n=nt(s,a):o==="week"?n=ri(s,a):o==="month"?n=ti(s,a):o==="quarter"?n=go(s,a):o==="year"&&(n=fn(s,a));else{let u=Ir(s,a);Math.abs(u)<po?(n=Ir(s,a),o="second"):Math.abs(u)<ei?(n=ii(s,a),o="minute"):Math.abs(u)<Wl&&Math.abs(nt(s,a))<1?(n=ni(s,a),o="hour"):Math.abs(u)<Cy&&(n=nt(s,a))&&Math.abs(n)<7?o="day":Math.abs(u)<wh?(n=ri(s,a),o="week"):Math.abs(u)<Oy?(n=ti(s,a),o="month"):Math.abs(u)<yh?go(s,a)<4?(n=go(s,a),o="quarter"):(n=fn(s,a),o="year"):(n=fn(s,a),o="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(n,o)}i(Yw,"intlFormatDistance");var tfe=Yw;function Vw(e,t){return+y(e)>+y(t)}i(Vw,"isAfter");var ofe=Vw;function Qw(e,t){return+y(e)<+y(t)}i(Qw,"isBefore");var ufe=Qw;function Gw(e,t){return+y(e)==+y(t)}i(Gw,"isEqual");var hfe=Gw;function Jw(e,t,r){let n=new Date(e,t,r);return n.getFullYear()===e&&n.getMonth()===t&&n.getDate()===r}i(Jw,"isExists");var gfe=Jw;function Xw(e,t){return y(e,t?.in).getDate()===1}i(Xw,"isFirstDayOfMonth");var bfe=Xw;function Zw(e,t){return y(e,t?.in).getDay()===5}i(Zw,"isFriday");var Tfe=Zw;function Kw(e){return+y(e)>Date.now()}i(Kw,"isFuture");var Ofe=Kw;function Du(e,t){let r=$M(t)?new t(0):N(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}i(Du,"transpose");function $M(e){return typeof e=="function"&&e.prototype?.constructor===e}i($M,"isConstructor");var _fe=Du;var HM=10,Cu=class{static{i(this,"Setter")}subPriority=0;validate(t,r){return!0}},Ou=class extends Cu{static{i(this,"ValueSetter")}constructor(t,r,n,o,s){super(),this.value=t,this.validateValue=r,this.setValue=n,this.priority=o,s&&(this.subPriority=s)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,n){return this.setValue(t,r,this.value,n)}},Iu=class extends Cu{static{i(this,"DateTimezoneSetter")}priority=HM;subPriority=-1;constructor(t,r){super(),this.context=t||(n=>N(r,n))}set(t,r){return r.timestampIsSet?t:N(t,Du(t,this.context))}};var Q=class{static{i(this,"Parser")}run(t,r,n,o){let s=this.parse(t,r,n,o);return s?{setter:new Ou(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(t,r,n){return!0}};var Au=class extends Q{static{i(this,"EraParser")}priority=140;parse(t,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,r,n){return r.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]};var we={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}/},Qt={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 Oe(e,t){return e&&{value:t(e.value),rest:e.rest}}i(Oe,"mapValue");function xe(e,t){let r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}i(xe,"parseNumericPattern");function Gt(e,t){let r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};let n=r[1]==="+"?1:-1,o=r[2]?parseInt(r[2],10):0,s=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(o*zt+s*pt+a*co),rest:t.slice(r[0].length)}}i(Gt,"parseTimezonePattern");function Mu(e){return xe(we.anyDigitsSigned,e)}i(Mu,"parseAnyDigitsSigned");function pe(e,t){switch(e){case 1:return xe(we.singleDigit,t);case 2:return xe(we.twoDigits,t);case 3:return xe(we.threeDigits,t);case 4:return xe(we.fourDigits,t);default:return xe(new RegExp("^\\d{1,"+e+"}"),t)}}i(pe,"parseNDigits");function Oo(e,t){switch(e){case 1:return xe(we.singleDigitSigned,t);case 2:return xe(we.twoDigitsSigned,t);case 3:return xe(we.threeDigitsSigned,t);case 4:return xe(we.fourDigitsSigned,t);default:return xe(new RegExp("^-?\\d{1,"+e+"}"),t)}}i(Oo,"parseNDigitsSigned");function Io(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}i(Io,"dayPeriodEnumToHours");function _u(e,t){let r=t>0,n=r?t:1-t,o;if(n<=50)o=e||100;else{let s=n+50,a=Math.trunc(s/100)*100,l=e>=s%100;o=e+a-(l?100:0)}return r?o:1-o}i(_u,"normalizeTwoDigitYear");function Pu(e){return e%400===0||e%4===0&&e%100!==0}i(Pu,"isLeapYearIndex");var Nu=class extends Q{static{i(this,"YearParser")}priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,r,n){let o=i(s=>({year:s,isTwoDigitYear:r==="yy"}),"valueCallback");switch(r){case"y":return Oe(pe(4,t),o);case"yo":return Oe(n.ordinalNumber(t,{unit:"year"}),o);default:return Oe(pe(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n){let o=t.getFullYear();if(n.isTwoDigitYear){let a=_u(n.year,o);return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}let s=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}};var Fu=class extends Q{static{i(this,"LocalWeekYearParser")}priority=130;parse(t,r,n){let o=i(s=>({year:s,isTwoDigitYear:r==="YY"}),"valueCallback");switch(r){case"Y":return Oe(pe(4,t),o);case"Yo":return Oe(n.ordinalNumber(t,{unit:"year"}),o);default:return Oe(pe(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n,o){let s=mn(t,o);if(n.isTwoDigitYear){let l=_u(n.year,s);return t.setFullYear(l,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Me(t,o)}let a=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(a,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Me(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var Lu=class extends Q{static{i(this,"ISOWeekYearParser")}priority=130;parse(t,r){return r==="R"?Oo(4,t):Oo(r.length,t)}set(t,r,n){let o=N(t,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),Ye(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Ru=class extends Q{static{i(this,"ExtendedYearParser")}priority=130;parse(t,r){return r==="u"?Oo(4,t):Oo(r.length,t)}set(t,r,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var Bu=class extends Q{static{i(this,"QuarterParser")}priority=120;parse(t,r,n){switch(r){case"Q":case"QQ":return pe(r.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var zu=class extends Q{static{i(this,"StandAloneQuarterParser")}priority=120;parse(t,r,n){switch(r){case"q":case"qq":return pe(r.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var $u=class extends Q{static{i(this,"MonthParser")}incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,n){let o=i(s=>s-1,"valueCallback");switch(r){case"M":return Oe(xe(we.month,t),o);case"MM":return Oe(pe(2,t),o);case"Mo":return Oe(n.ordinalNumber(t,{unit:"month"}),o);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}};var Hu=class extends Q{static{i(this,"StandAloneMonthParser")}priority=110;parse(t,r,n){let o=i(s=>s-1,"valueCallback");switch(r){case"L":return Oe(xe(we.month,t),o);case"LL":return Oe(pe(2,t),o);case"Lo":return Oe(n.ordinalNumber(t,{unit:"month"}),o);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function Wu(e,t,r){let n=y(e,r?.in),o=Do(n,r)-t;return n.setDate(n.getDate()-o*7),y(n,r?.in)}i(Wu,"setWeek");var Lpe=Wu;var Uu=class extends Q{static{i(this,"LocalWeekParser")}priority=100;parse(t,r,n){switch(r){case"w":return xe(we.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return pe(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n,o){return Me(Wu(t,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function ju(e,t,r){let n=y(e,r?.in),o=Eo(n,r)-t;return n.setDate(n.getDate()-o*7),n}i(ju,"setISOWeek");var Qpe=ju;var qu=class extends Q{static{i(this,"ISOWeekParser")}priority=100;parse(t,r,n){switch(r){case"I":return xe(we.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return pe(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n){return Ye(ju(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var WM=[31,28,31,30,31,30,31,31,30,31,30,31],UM=[31,29,31,30,31,30,31,31,30,31,30,31],Yu=class extends Q{static{i(this,"DateParser")}priority=90;subPriority=1;parse(t,r,n){switch(r){case"d":return xe(we.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return pe(r.length,t)}}validate(t,r){let n=t.getFullYear(),o=Pu(n),s=t.getMonth();return o?r>=1&&r<=UM[s]:r>=1&&r<=WM[s]}set(t,r,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Vu=class extends Q{static{i(this,"DayOfYearParser")}priority=90;subpriority=1;parse(t,r,n){switch(r){case"D":case"DD":return xe(we.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return pe(r.length,t)}}validate(t,r){let n=t.getFullYear();return Pu(n)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function xn(e,t,r){let n=Ee(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=y(e,r?.in),a=s.getDay(),u=(t%7+7)%7,c=7-o,f=t<0||t>6?t-(a+c)%7:(u+c)%7-(a+c)%7;return Xe(s,f,r)}i(xn,"setDay");var xhe=xn;var Qu=class extends Q{static{i(this,"DayParser")}priority=90;parse(t,r,n){switch(r){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=xn(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};var Gu=class extends Q{static{i(this,"LocalDayParser")}priority=90;parse(t,r,n,o){let s=i(a=>{let l=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+l},"valueCallback");switch(r){case"e":case"ee":return Oe(pe(r.length,t),s);case"eo":return Oe(n.ordinalNumber(t,{unit:"day"}),s);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=xn(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Ju=class extends Q{static{i(this,"StandAloneLocalDayParser")}priority=90;parse(t,r,n,o){let s=i(a=>{let l=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+l},"valueCallback");switch(r){case"c":case"cc":return Oe(pe(r.length,t),s);case"co":return Oe(n.ordinalNumber(t,{unit:"day"}),s);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=xn(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function Xu(e,t,r){let n=y(e,r?.in),o=Tu(n,r),s=t-o;return Xe(n,s,r)}i(Xu,"setISODay");var Rhe=Xu;var Zu=class extends Q{static{i(this,"ISODayParser")}priority=90;parse(t,r,n){let o=i(s=>s===0?7:s,"valueCallback");switch(r){case"i":case"ii":return pe(r.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return Oe(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return Oe(n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Oe(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);default:return Oe(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,r){return r>=1&&r<=7}set(t,r,n){return t=Xu(t,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var Ku=class extends Q{static{i(this,"AMPMParser")}priority=80;parse(t,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(Io(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]};var ec=class extends Q{static{i(this,"AMPMMidnightParser")}priority=80;parse(t,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(Io(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]};var tc=class extends Q{static{i(this,"DayPeriodParser")}priority=80;parse(t,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(Io(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]};var rc=class extends Q{static{i(this,"Hour1to12Parser")}priority=70;parse(t,r,n){switch(r){case"h":return xe(we.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return pe(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,n){let o=t.getHours()>=12;return o&&n<12?t.setHours(n+12,0,0,0):!o&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]};var nc=class extends Q{static{i(this,"Hour0to23Parser")}priority=70;parse(t,r,n){switch(r){case"H":return xe(we.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return pe(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]};var ic=class extends Q{static{i(this,"Hour0To11Parser")}priority=70;parse(t,r,n){switch(r){case"K":return xe(we.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return pe(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]};var oc=class extends Q{static{i(this,"Hour1To24Parser")}priority=70;parse(t,r,n){switch(r){case"k":return xe(we.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return pe(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,n){let o=n<=24?n%24:n;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]};var sc=class extends Q{static{i(this,"MinuteParser")}priority=60;parse(t,r,n){switch(r){case"m":return xe(we.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return pe(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]};var ac=class extends Q{static{i(this,"SecondParser")}priority=50;parse(t,r,n){switch(r){case"s":return xe(we.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return pe(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]};var lc=class extends Q{static{i(this,"FractionOfSecondParser")}priority=30;parse(t,r){let n=i(o=>Math.trunc(o*Math.pow(10,-r.length+3)),"valueCallback");return Oe(pe(r.length,t),n)}set(t,r,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]};var uc=class extends Q{static{i(this,"ISOTimezoneWithZParser")}priority=10;parse(t,r){switch(r){case"X":return Gt(Qt.basicOptionalMinutes,t);case"XX":return Gt(Qt.basic,t);case"XXXX":return Gt(Qt.basicOptionalSeconds,t);case"XXXXX":return Gt(Qt.extendedOptionalSeconds,t);default:return Gt(Qt.extended,t)}}set(t,r,n){return r.timestampIsSet?t:N(t,t.getTime()-Be(t)-n)}incompatibleTokens=["t","T","x"]};var cc=class extends Q{static{i(this,"ISOTimezoneParser")}priority=10;parse(t,r){switch(r){case"x":return Gt(Qt.basicOptionalMinutes,t);case"xx":return Gt(Qt.basic,t);case"xxxx":return Gt(Qt.basicOptionalSeconds,t);case"xxxxx":return Gt(Qt.extendedOptionalSeconds,t);default:return Gt(Qt.extended,t)}}set(t,r,n){return r.timestampIsSet?t:N(t,t.getTime()-Be(t)-n)}incompatibleTokens=["t","T","X"]};var fc=class extends Q{static{i(this,"TimestampSecondsParser")}priority=40;parse(t){return Mu(t)}set(t,r,n){return[N(t,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var pc=class extends Q{static{i(this,"TimestampMillisecondsParser")}priority=20;parse(t){return Mu(t)}set(t,r,n){return[N(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"};var hc={G:new Au,y:new Nu,Y:new Fu,R:new Lu,u:new Ru,Q:new Bu,q:new zu,M:new $u,L:new Hu,w:new Uu,I:new qu,d:new Yu,D:new Vu,E:new Qu,e:new Gu,c:new Ju,i:new Zu,a:new Ku,b:new ec,B:new tc,h:new rc,H:new nc,K:new ic,k:new oc,m:new sc,s:new ac,S:new lc,X:new uc,x:new cc,t:new fc,T:new pc};var jM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,YM=/^'([^]*?)'?$/,VM=/''/g,QM=/\S/,GM=/[a-zA-Z]/;function mc(e,t,r,n){let o=i(()=>N(n?.in||r,NaN),"invalidDate"),s=Su(),a=n?.locale??s.locale??Pt,l=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,u=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!t)return e?o():y(r,n?.in);let c={firstWeekContainsDate:l,weekStartsOn:u,locale:a},f=[new Iu(n?.in,r)],p=t.match(qM).map(x=>{let b=x[0];if(b in dn){let T=dn[b];return T(x,a.formatLong)}return x}).join("").match(jM),h=[];for(let x of p){!n?.useAdditionalWeekYearTokens&&xu(x)&&zs(x,t,e),!n?.useAdditionalDayOfYearTokens&&gu(x)&&zs(x,t,e);let b=x[0],T=hc[b];if(T){let{incompatibleTokens:D}=T;if(Array.isArray(D)){let H=h.find(O=>D.includes(O.token)||O.token===b);if(H)throw new RangeError(`The format string mustn't contain \`${H.fullToken}\` and \`${x}\` at the same time`)}else if(T.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);h.push({token:b,fullToken:x});let q=T.run(e,x,a.match,c);if(!q)return o();f.push(q.setter),e=q.rest}else{if(b.match(GM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");if(x==="''"?x="'":b==="'"&&(x=JM(x)),e.indexOf(x)===0)e=e.slice(x.length);else return o()}}if(e.length>0&&QM.test(e))return o();let m=f.map(x=>x.priority).sort((x,b)=>b-x).filter((x,b,T)=>T.indexOf(x)===b).map(x=>f.filter(b=>b.priority===x).sort((b,T)=>T.subPriority-b.subPriority)).map(x=>x[0]),d=y(r,n?.in);if(isNaN(+d))return o();let g={};for(let x of m){if(!x.validate(d,c))return o();let b=x.set(d,g,c);Array.isArray(b)?(d=b[0],Object.assign(g,b[1])):d=b}return d}i(mc,"parse");function JM(e){return e.match(YM)[1].replace(VM,"'")}i(JM,"cleanEscapedString");var Vde=mc;function eb(e,t,r){return ut(mc(e,t,new Date,r))}i(eb,"isMatch");var Zde=eb;function tb(e,t){return y(e,t?.in).getDay()===1}i(tb,"isMonday");var rge=tb;function rb(e){return+y(e)<Date.now()}i(rb,"isPast");var sge=rb;function Hs(e,t){let r=y(e,t?.in);return r.setMinutes(0,0,0),r}i(Hs,"startOfHour");var cge=Hs;function dc(e,t,r){let[n,o]=ee(r?.in,e,t);return+Hs(n)==+Hs(o)}i(dc,"isSameHour");var dge=dc;function Ao(e,t,r){let[n,o]=ee(r?.in,e,t);return+Me(n,r)==+Me(o,r)}i(Ao,"isSameWeek");var bge=Ao;function gc(e,t,r){return Ao(e,t,{...r,weekStartsOn:1})}i(gc,"isSameISOWeek");var Tge=gc;function nb(e,t,r){let[n,o]=ee(r?.in,e,t);return+$t(n)==+$t(o)}i(nb,"isSameISOWeekYear");var Ige=nb;function Ws(e,t){let r=y(e,t?.in);return r.setSeconds(0,0),r}i(Ws,"startOfMinute");var Pge=Ws;function xc(e,t){return+Ws(e)==+Ws(t)}i(xc,"isSameMinute");var Rge=xc;function yc(e,t,r){let[n,o]=ee(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}i(yc,"isSameMonth");var Hge=yc;function wc(e,t,r){let[n,o]=ee(r?.in,e,t);return+Ar(n)==+Ar(o)}i(wc,"isSameQuarter");var Yge=wc;function Us(e,t){let r=y(e,t?.in);return r.setMilliseconds(0),r}i(Us,"startOfSecond");var Jge=Us;function bc(e,t){return+Us(e)==+Us(t)}i(bc,"isSameSecond");var exe=bc;function vc(e,t,r){let[n,o]=ee(r?.in,e,t);return n.getFullYear()===o.getFullYear()}i(vc,"isSameYear");var ixe=vc;function ib(e,t){return dc(y(e,t?.in),me(t?.in||e))}i(ib,"isThisHour");var cxe=ib;function ob(e,t){return gc(N(t?.in||e,e),me(t?.in||e))}i(ob,"isThisISOWeek");var gxe=ob;function sb(e){return xc(e,me(e))}i(sb,"isThisMinute");var vxe=sb;function ab(e,t){return yc(N(t?.in||e,e),me(t?.in||e))}i(ab,"isThisMonth");var Cxe=ab;function lb(e,t){return wc(N(t?.in||e,e),me(t?.in||e))}i(lb,"isThisQuarter");var Pxe=lb;function ub(e){return bc(e,me(e))}i(ub,"isThisSecond");var Bxe=ub;function cb(e,t){return Ao(N(t?.in||e,e),me(t?.in||e),t)}i(cb,"isThisWeek");var jxe=cb;function fb(e,t){return vc(N(t?.in||e,e),me(t?.in||e))}i(fb,"isThisYear");var Jxe=fb;function pb(e,t){return y(e,t?.in).getDay()===4}i(pb,"isThursday");var eye=pb;function hb(e,t){return Or(N(t?.in||e,e),me(t?.in||e))}i(hb,"isToday");var sye=hb;function mb(e,t){return Or(e,Xe(me(t?.in||e),1),t)}i(mb,"isTomorrow");var pye=mb;function db(e,t){return y(e,t?.in).getDay()===2}i(db,"isTuesday");var gye=db;function gb(e,t){return y(e,t?.in).getDay()===3}i(gb,"isWednesday");var bye=gb;function xb(e,t,r){let n=+y(e,r?.in),[o,s]=[+y(t.start,r?.in),+y(t.end,r?.in)].sort((a,l)=>a-l);return n>=o&&n<=s}i(xb,"isWithinInterval");var Tye=xb;function yn(e,t,r){return Xe(e,-t,r)}i(yn,"subDays");var Oye=yn;function yb(e,t){return Or(N(t?.in||e,e),yn(me(t?.in||e),1))}i(yb,"isYesterday");var Fye=yb;function wb(e,t){let r=y(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o+1,0,0),r.setHours(0,0,0,0),y(r,t?.in)}i(wb,"lastDayOfDecade");var zye=wb;function kc(e,t){let r=Ee(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=y(e,t?.in),s=o.getDay(),a=(s<n?-7:0)+6-(s-n);return o.setHours(0,0,0,0),o.setDate(o.getDate()+a),o}i(kc,"lastDayOfWeek");var jye=kc;function bb(e,t){return kc(e,{...t,weekStartsOn:1})}i(bb,"lastDayOfISOWeek");var Qye=bb;function vb(e,t){let r=Tt(e,t),n=N(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=Ye(n,t);return o.setDate(o.getDate()-1),o}i(vb,"lastDayOfISOWeekYear");var ewe=vb;function kb(e,t){let r=y(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(0,0,0,0),r}i(kb,"lastDayOfQuarter");var iwe=kb;function Sb(e,t){let r=y(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),r}i(Sb,"lastDayOfYear");var lwe=Sb;var XM=/(\w)\1*|''|'(''|[^'])+('|$)|./g,ZM=/^'([^]*?)'?$/,KM=/''/g,e_=/[a-zA-Z]/;function Tb(e,t){let r=y(e);if(!ut(r))throw new RangeError("Invalid time value");let n=t.match(XM);return n?n.map(s=>{if(s==="''")return"'";let a=s[0];if(a==="'")return t_(s);let l=Ht[a];if(l)return l(r,s);if(a.match(e_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return s}).join(""):""}i(Tb,"lightFormat");function t_(e){let t=e.match(ZM);return t?t[1].replace(KM,"'"):e}i(t_,"cleanEscapedString");var mwe=Tb;function Eb({years:e,months:t,weeks:r,days:n,hours:o,minutes:s,seconds:a}){let l=0;e&&(l+=e*365.2425),t&&(l+=t*(365.2425/12)),r&&(l+=r*7),n&&(l+=n);let u=l*24*60*60;return o&&(u+=o*60*60),s&&(u+=s*60),a&&(u+=a),Math.trunc(u*1e3)}i(Eb,"milliseconds");var ywe=Eb;function Db(e){let t=e/zt;return Math.trunc(t)}i(Db,"millisecondsToHours");var kwe=Db;function Cb(e){let t=e/pt;return Math.trunc(t)}i(Cb,"millisecondsToMinutes");var Dwe=Cb;function Ob(e){let t=e/co;return Math.trunc(t)}i(Ob,"millisecondsToSeconds");var Awe=Ob;function Ib(e){let t=e/ql;return Math.trunc(t)}i(Ib,"minutesToHours");var Nwe=Ib;function Ab(e){return Math.trunc(e*pt)}i(Ab,"minutesToMilliseconds");var Bwe=Ab;function Mb(e){return Math.trunc(e*po)}i(Mb,"minutesToSeconds");var Wwe=Mb;function _b(e){let t=e/Yl;return Math.trunc(t)}i(_b,"monthsToQuarters");var Ywe=_b;function Pb(e){let t=e/Vl;return Math.trunc(t)}i(Pb,"monthsToYears");var Jwe=Pb;function dt(e,t,r){let n=t-gn(e,r);return n<=0&&(n+=7),Xe(e,n,r)}i(dt,"nextDay");var tbe=dt;function Nb(e,t){return dt(e,5,t)}i(Nb,"nextFriday");var obe=Nb;function Fb(e,t){return dt(e,1,t)}i(Fb,"nextMonday");var ube=Fb;function Lb(e,t){return dt(e,6,t)}i(Lb,"nextSaturday");var hbe=Lb;function Rb(e,t){return dt(e,0,t)}i(Rb,"nextSunday");var xbe=Rb;function Bb(e,t){return dt(e,4,t)}i(Bb,"nextThursday");var vbe=Bb;function zb(e,t){return dt(e,2,t)}i(zb,"nextTuesday");var Ebe=zb;function $b(e,t){return dt(e,3,t)}i($b,"nextWednesday");var Ibe=$b;function Wb(e,t){let r=i(()=>N(t?.in,NaN),"invalidDate"),n=t?.additionalDigits??2,o=o_(e),s;if(o.date){let c=s_(o.date,n);s=a_(c.restDateString,c.year)}if(!s||isNaN(+s))return r();let a=+s,l=0,u;if(o.time&&(l=l_(o.time),isNaN(l)))return r();if(o.timezone){if(u=u_(o.timezone),isNaN(u))return r()}else{let c=new Date(a+l),f=y(0,t?.in);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return y(a+l+u,t?.in)}i(Wb,"parseISO");var Sc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},r_=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,n_=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,i_=/^([+-])(\d{2})(?::?(\d{2}))?$/;function o_(e){let t={},r=e.split(Sc.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Sc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Sc.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){let o=Sc.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}i(o_,"splitDateString");function s_(e,t){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};let o=n[1]?parseInt(n[1]):null,s=n[2]?parseInt(n[2]):null;return{year:s===null?o:s*100,restDateString:e.slice((n[1]||n[2]).length)}}i(s_,"parseYear");function a_(e,t){if(t===null)return new Date(NaN);let r=e.match(r_);if(!r)return new Date(NaN);let n=!!r[4],o=js(r[1]),s=js(r[2])-1,a=js(r[3]),l=js(r[4]),u=js(r[5])-1;if(n)return m_(t,l,u)?c_(t,l,u):new Date(NaN);{let c=new Date(0);return!p_(t,s,a)||!h_(t,o)?new Date(NaN):(c.setUTCFullYear(t,s,Math.max(o,a)),c)}}i(a_,"parseDate");function js(e){return e?parseInt(e):1}i(js,"parseDateUnit");function l_(e){let t=e.match(n_);if(!t)return NaN;let r=vh(t[1]),n=vh(t[2]),o=vh(t[3]);return d_(r,n,o)?r*zt+n*pt+o*1e3:NaN}i(l_,"parseTime");function vh(e){return e&&parseFloat(e.replace(",","."))||0}i(vh,"parseTimeUnit");function u_(e){if(e==="Z")return 0;let t=e.match(i_);if(!t)return 0;let r=t[1]==="+"?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return g_(n,o)?r*(n*zt+o*pt):NaN}i(u_,"parseTimezone");function c_(e,t,r){let n=new Date(0);n.setUTCFullYear(e,0,4);let o=n.getUTCDay()||7,s=(t-1)*7+r+1-o;return n.setUTCDate(n.getUTCDate()+s),n}i(c_,"dayOfISOWeekYear");var f_=[31,null,31,30,31,30,31,31,30,31,30,31];function Hb(e){return e%400===0||e%4===0&&e%100!==0}i(Hb,"isLeapYearIndex");function p_(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(f_[t]||(Hb(e)?29:28))}i(p_,"validateDate");function h_(e,t){return t>=1&&t<=(Hb(e)?366:365)}i(h_,"validateDayOfYearDate");function m_(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}i(m_,"validateWeekDate");function d_(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}i(d_,"validateTime");function g_(e,t){return t>=0&&t<=59}i(g_,"validateTimezone");var Fbe=Wb;function Ub(e,t){let r=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return r?y(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)),t?.in):y(NaN,t?.in)}i(Ub,"parseJSON");var zbe=Ub;function gt(e,t,r){let n=gn(e,r)-t;return n<=0&&(n+=7),yn(e,n,r)}i(gt,"previousDay");var jbe=gt;function jb(e,t){return gt(e,5,t)}i(jb,"previousFriday");var Qbe=jb;function qb(e,t){return gt(e,1,t)}i(qb,"previousMonday");var Zbe=qb;function Yb(e,t){return gt(e,6,t)}i(Yb,"previousSaturday");var r0e=Yb;function Vb(e,t){return gt(e,0,t)}i(Vb,"previousSunday");var s0e=Vb;function Qb(e,t){return gt(e,4,t)}i(Qb,"previousThursday");var c0e=Qb;function Gb(e,t){return gt(e,2,t)}i(Gb,"previousTuesday");var m0e=Gb;function Jb(e,t){return gt(e,3,t)}i(Jb,"previousWednesday");var y0e=Jb;function Xb(e){return Math.trunc(e*Yl)}i(Xb,"quartersToMonths");var k0e=Xb;function Zb(e){let t=e/Ql;return Math.trunc(t)}i(Zb,"quartersToYears");var D0e=Zb;function Kb(e,t){let r=t?.nearestTo??1;if(r<1||r>12)return N(t?.in||e,NaN);let n=y(e,t?.in),o=n.getMinutes()/60,s=n.getSeconds()/60/60,a=n.getMilliseconds()/1e3/60/60,l=n.getHours()+o+s+a,u=t?.roundingMethod??"round",f=mt(u)(l/r)*r;return n.setHours(f,0,0,0),n}i(Kb,"roundToNearestHours");var _0e=Kb;function e0(e,t){let r=t?.nearestTo??1;if(r<1||r>30)return N(e,NaN);let n=y(e,t?.in),o=n.getSeconds()/60,s=n.getMilliseconds()/1e3/60,a=n.getMinutes()+o+s,l=t?.roundingMethod??"round",c=mt(l)(a/r)*r;return n.setMinutes(c,0,0),n}i(e0,"roundToNearestMinutes");var B0e=e0;function t0(e){let t=e/ei;return Math.trunc(t)}i(t0,"secondsToHours");var W0e=t0;function r0(e){return e*co}i(r0,"secondsToMilliseconds");var Y0e=r0;function n0(e){let t=e/po;return Math.trunc(t)}i(n0,"secondsToMinutes");var J0e=n0;function Mo(e,t,r){let n=y(e,r?.in),o=n.getFullYear(),s=n.getDate(),a=N(r?.in||e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);let l=vu(a);return n.setMonth(t,Math.min(s,l)),n}i(Mo,"setMonth");var rve=Mo;function i0(e,t,r){let n=y(e,r?.in);return isNaN(+n)?N(r?.in||e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Mo(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}i(i0,"set");var lve=i0;function o0(e,t,r){let n=y(e,r?.in);return n.setDate(t),n}i(o0,"setDate");var pve=o0;function s0(e,t,r){let n=y(e,r?.in);return n.setMonth(0),n.setDate(t),n}i(s0,"setDayOfYear");var gve=s0;function a0(e){let t={},r=Ee();for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]===void 0?delete t[n]:t[n]=e[n]);Ay(t)}i(a0,"setDefaultOptions");var bve=a0;function l0(e,t,r){let n=y(e,r?.in);return n.setHours(t),n}i(l0,"setHours");var Tve=l0;function u0(e,t,r){let n=y(e,r?.in);return n.setMilliseconds(t),n}i(u0,"setMilliseconds");var Ove=u0;function c0(e,t,r){let n=y(e,r?.in);return n.setMinutes(t),n}i(c0,"setMinutes");var _ve=c0;function f0(e,t,r){let n=y(e,r?.in),o=Math.trunc(n.getMonth()/3)+1,s=t-o;return Mo(n,n.getMonth()+s*3)}i(f0,"setQuarter");var Rve=f0;function p0(e,t,r){let n=y(e,r?.in);return n.setSeconds(t),n}i(p0,"setSeconds");var Hve=p0;function h0(e,t,r){let n=Ee(),o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=nt(y(e,r?.in),oi(e,r),r),a=N(r?.in||e,0);a.setFullYear(t,0,o),a.setHours(0,0,0,0);let l=oi(a,r);return l.setDate(l.getDate()+s),l}i(h0,"setWeekYear");var Gve=h0;function m0(e,t,r){let n=y(e,r?.in);return isNaN(+n)?N(r?.in||e,NaN):(n.setFullYear(t),n)}i(m0,"setYear");var eke=m0;function d0(e,t){let r=y(e,t?.in),n=r.getFullYear(),o=Math.floor(n/10)*10;return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r}i(d0,"startOfDecade");var ike=d0;function g0(e){return Cr(Date.now(),e)}i(g0,"startOfToday");var lke=g0;function x0(e){let t=me(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),s=N(e?.in,0);return s.setFullYear(r,n,o+1),s.setHours(0,0,0,0),s}i(x0,"startOfTomorrow");var hke=x0;function y0(e){let t=me(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),s=me(e?.in);return s.setFullYear(r,n,o-1),s.setHours(0,0,0,0),s}i(y0,"startOfYesterday");var xke=y0;function Tc(e,t,r){return Er(e,-t,r)}i(Tc,"subMonths");var vke=Tc;function w0(e,t,r){let{years:n=0,months:o=0,weeks:s=0,days:a=0,hours:l=0,minutes:u=0,seconds:c=0}=t,f=Tc(e,o+n*12,r),p=yn(f,a+s*7,r),h=u+l*60,d=(c+h*60)*1e3;return N(r?.in||e,+p-d)}i(w0,"sub");var Cke=w0;function b0(e,t,r){return Xl(e,-t,r)}i(b0,"subBusinessDays");var Mke=b0;function v0(e,t,r){return Zl(e,-t,r)}i(v0,"subHours");var Fke=v0;function k0(e,t,r){return un(e,-t,r)}i(k0,"subMilliseconds");var zke=k0;function S0(e,t,r){return ho(e,-t,r)}i(S0,"subMinutes");var Uke=S0;function T0(e,t,r){return mo(e,-t,r)}i(T0,"subQuarters");var Vke=T0;function E0(e,t,r){return tu(e,-t,r)}i(E0,"subSeconds");var Xke=E0;function D0(e,t,r){return cn(e,-t,r)}i(D0,"subWeeks");var tSe=D0;function C0(e,t,r){return ru(e,-t,r)}i(C0,"subYears");var oSe=C0;function O0(e){return Math.trunc(e*7)}i(O0,"weeksToDays");var uSe=O0;function I0(e){return Math.trunc(e*365.2425)}i(I0,"yearsToDays");var hSe=I0;function A0(e){return Math.trunc(e*Vl)}i(A0,"yearsToMonths");var xSe=A0;function M0(e){return Math.trunc(e*Ql)}i(M0,"yearsToQuarters");var vSe=M0;var N0=i(e=>Number.isFinite(e)?e:0,"toZeroIfInfinity");function x_(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(N0(e*1e3)%1e3),nanoseconds:Math.trunc(N0(e*1e6)%1e3)}}i(x_,"parseNumber");function y_(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}i(y_,"parseBigint");function Dh(e){switch(typeof e){case"number":{if(Number.isFinite(e))return x_(e);break}case"bigint":return y_(e)}throw new TypeError("Expected a finite number or bigint")}i(Dh,"parseMilliseconds");var w_=i(e=>e===0||e===0n,"isZero"),b_=i((e,t)=>t===1||t===1n?e:`${e}s`,"pluralize"),v_=1e-7,k_=24n*60n*60n*1000n;function Ys(e,t){let r=typeof e=="bigint";if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");t={...t};let n=e<0?"-":"";e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let o=[],s=i((f,p)=>{let h=Math.floor(f*10**p+v_);return(Math.round(h)/10**p).toFixed(p)},"floorDecimals"),a=i((f,p,h,m)=>{if(!((o.length===0||!t.colonNotation)&&w_(f)&&!(t.colonNotation&&h==="m"))){if(m??=String(f),t.colonNotation){let d=m.includes(".")?m.split(".")[0].length:m.length,g=o.length>0?2:1;m="0".repeat(Math.max(0,g-d))+m}else m+=t.verbose?" "+b_(p,f):h;o.push(m)}},"add"),l=Dh(e),u=BigInt(l.days);if(t.hideYearAndDays?a(BigInt(u)*24n+BigInt(l.hours),"hour","h"):(t.hideYear?a(u,"day","d"):(a(u/365n,"year","y"),a(u%365n,"day","d")),a(Number(l.hours),"hour","h")),a(Number(l.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3&&!t.subSecondsAsDecimals){let f=Number(l.seconds),p=Number(l.milliseconds),h=Number(l.microseconds),m=Number(l.nanoseconds);if(a(f,"second","s"),t.formatSubMilliseconds)a(p,"millisecond","ms"),a(h,"microsecond","\xB5s"),a(m,"nanosecond","ns");else{let d=p+h/1e3+m/1e6,g=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,x=d>=1?Math.round(d):Math.ceil(d),b=g?d.toFixed(g):x;a(Number.parseFloat(b),"millisecond","ms",b)}}else{let f=(r?Number(e%k_):e)/1e3%60,p=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,h=s(f,p),m=t.keepDecimalsOnWholeSeconds?h:h.replace(/\.0+$/,"");a(Number.parseFloat(m),"second","s",m)}if(o.length===0)return n+"0"+(t.verbose?" milliseconds":"ms");let c=t.colonNotation?":":" ";return typeof t.unitCount=="number"&&(o=o.slice(0,Math.max(t.unitCount,1))),n+o.join(c)}i(Ys,"prettyMilliseconds");var ai=St(_0(),1),F0=St(P0(),1);ai.default.extend(F0.default);var Vs=class{static{i(this,"CronJob")}constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=new Fs.Cron(r)}checkExecution(){if(this.status==="stopped")return this.nextExecutionUnix;if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let t=this.jobFunction(this.nextExecutionUnix);t instanceof Promise&&t.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 Ch=class{static{i(this,"CronManager")}constructor(){this.status="stopped",this.cronjobs=new Ze.ObjectMap,this.cycleWakeDeferred=null}wakeCycle(){this.cycleWakeDeferred&&this.cycleWakeDeferred.status==="pending"&&this.cycleWakeDeferred.resolve()}addCronjob(t,r){let n=new Vs(this,t,r);return this.cronjobs.add(n),this.status==="started"&&(n.start(),this.wakeCycle()),n}removeCronjob(t){t.stop(),this.cronjobs.remove(t),this.status==="started"&&this.wakeCycle()}start(){if(this.status!=="started"){this.status="started";for(let t of this.cronjobs.getArray())t.start();this.runCronCycle()}}async runCronCycle(){for(;this.status==="started";){this.cycleWakeDeferred=new J.Deferred;let t=1/0;for(let r of this.cronjobs.getArray()){r.checkExecution();let n=r.getTimeToNextExecution();n<t&&(t=n)}if(t<1/0&&t>0)this.executionTimeout=new he.Timeout(t),await Promise.race([this.executionTimeout.promise,this.cycleWakeDeferred.promise]),this.executionTimeout.cancel();else{if(t<=0)continue;await this.cycleWakeDeferred.promise}}this.cycleWakeDeferred=null}stop(){this.status==="started"&&(this.status="stopped",this.executionTimeout&&this.executionTimeout.cancel(),this.wakeCycle());for(let t of this.cronjobs.getArray())t.stop()}};var wn={years:i((e=1)=>e*3154e7,"years"),months:i((e=1)=>e*2628e6,"months"),weeks:i((e=1)=>e*6048e5,"weeks"),days:i((e=1)=>e*864e5,"days"),hours:i((e=1)=>e*36e5,"hours"),minutes:i((e=1)=>e*6e4,"minutes"),seconds:i((e=1)=>e*1e3,"seconds")},Oh=i(e=>{let t=0,r=i(n=>{t=t+n},"addMilliSeconds");return e.years&&r(wn.years(e.years)),e.months&&r(wn.months(e.months)),e.weeks&&r(wn.weeks(e.weeks)),e.days&&r(wn.days(e.days)),e.hours&&r(wn.hours(e.hours)),e.minutes&&r(wn.minutes(e.minutes)),e.seconds&&r(wn.seconds(e.seconds)),t},"getMilliSecondsFromUnits"),S_=i(e=>Ys(e),"getMilliSecondsAsHumanReadableString"),T_=i(e=>qs.formatDistanceToNow(new Date(e)),"getMilliSecondsAsHumanReadableAgoTime");var Ih=class e extends Date{static{i(this,"ExtendedDate")}static fromMillis(t){return new e(t)}static fromDate(t){return new e(t.getTime())}static fromEuropeanDate(t){let r=/(.*)\.(.*)\.(.*)/.exec(t),o=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new e(o)}static fromHyphedDate(t){let r=new Date(t).getTime();return new e(r)}static fromEuropeanDateAndTime(t,r="12:00:00",n="Europe/Berlin"){let o=/(.*)\.(.*)\.(.*)/.exec(t),s=i(c=>`0${c}`.slice(-2),"sliceDate"),a=`${o[3]}-${s(o[2])}-${s(o[1])}T${r}`,u=ai.default(a).toDate().getTime();return new e(u)}constructor(t=Date.now()){super(t)}exportToEuropeanDate(){let t=this.exportToUnits();return`${t.dayString}.${t.monthString}.${t.yearString}`}exportToHyphedSortableDate(){let t=this.exportToUnits();return`${t.yearString}-${t.monthString}-${t.dayString}`}exportToUnits(){let t=["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:t[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(t){return ai.default(this.getTime()).format(t)}isToday(){return ai.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=Oh(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var Ah=class{static{i(this,"HrtMeasurement")}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 Mh=class{static{i(this,"Interval")}constructor(t){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=t}start(){this.status="started";let t=new Date;this.statusAuthorization=t,i(async()=>{for(;this.status==="started"&&this.statusAuthorization===t;)await he.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()},"runInterval")()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(t){this.intervalJobs.push(t)}executeIntervalJobs(){for(let t of this.intervalJobs)t()}};var Po=class e{static{i(this,"TimeStamp")}static fromMilliSeconds(t){return new e(t)}static fromTimeStamp(t){let r=new e;return r.change=r.milliSeconds-t.milliSeconds,r}constructor(t){this.change=null,t?typeof t=="number"&&(this.date=new Date(t)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(t,r=0){return this.milliSeconds<t.milliSeconds-r}isOlderThan(t,r=0){return this.milliSeconds+r<t.milliSeconds}isYoungerThanOtherTimeStamp(t,r=0){return this.milliSeconds>t.milliSeconds+r}isYoungerThanMilliSeconds(t){let n=new e().epochtime-t,o=new e(n);return this.isYoungerThanOtherTimeStamp(o)}};var _h=class{static{i(this,"Timer")}get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=J.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new Po;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Po.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 Dc=St(Y0(),1);var Nh=class{static{i(this,"AsyncExecutionStack")}executionSlots=[];isProcessing=!1;nonExclusiveMaxConcurrency=1/0;nonExclusiveCurrentCount=0;nonExclusivePendingQueue=[];async getExclusiveExecutionSlot(t,r){let n=J.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=J.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}setNonExclusiveMaxConcurrency(t){if(!Number.isFinite(t)||t<1)throw new Error("nonExclusiveMaxConcurrency must be a finite number >= 1");this.nonExclusiveMaxConcurrency=t}getNonExclusiveMaxConcurrency(){return this.nonExclusiveMaxConcurrency}getActiveNonExclusiveCount(){return this.nonExclusiveCurrentCount}getPendingNonExclusiveCount(){return this.nonExclusivePendingQueue.length}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let t=this.executionSlots[0];if(t.mode==="exclusive")await this.executeExclusiveSlot(t),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(t){try{if(t.timeout){let r=new he.Timeout(t.timeout);try{let n=await Promise.race([t.funcToExecute(),r.promise.then(()=>{throw new Error("Timeout reached")})]);r.cancel(),t.executionDeferred.resolve(n)}catch(n){throw r.cancel(),n}}else{let r=await t.funcToExecute();t.executionDeferred.resolve(r)}}catch(r){t.executionDeferred.reject(r)}}async executeNonExclusiveSlots(t){let r=t.map(async n=>{await this.waitForNonExclusiveSlot();try{if(n.timeout){let o=new he.Timeout(n.timeout);try{let s=await Promise.race([n.funcToExecute(),o.promise.then(()=>{throw new Error("Timeout reached")})]);o.cancel(),n.executionDeferred.resolve(s)}catch(s){throw o.cancel(),s}}else{let o=await n.funcToExecute();n.executionDeferred.resolve(o)}}catch(o){n.executionDeferred.reject(o)}finally{this.releaseNonExclusiveSlot()}});await Promise.all(r)}waitForNonExclusiveSlot(){return this.nonExclusiveCurrentCount<this.nonExclusiveMaxConcurrency?(this.nonExclusiveCurrentCount++,Promise.resolve()):new Promise(t=>{this.nonExclusivePendingQueue.push(()=>{this.nonExclusiveCurrentCount++,t()})})}releaseNonExclusiveSlot(){this.nonExclusiveCurrentCount--;let t=this.nonExclusivePendingQueue.shift();t&&t()}};var Fh=class{static{i(this,"BackpressuredArray")}data;highWaterMark;hasSpace=new Ce.rxjs.Subject;itemsAvailable=new Ce.rxjs.Subject;isDestroyed=!1;constructor(t=16){this.data=[],this.highWaterMark=t}get length(){return this.data.length}push(t){this.data.push(t),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}pushMany(t){for(let r of t)this.push(r);return this.checkSpaceAvailable()}shift(){let t=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),t}peek(){return this.data[0]}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(t=>{if(this.checkSpaceAvailable()||this.isDestroyed)t();else{let r=this.hasSpace.subscribe({next:i(()=>{r.unsubscribe(),t()},"next"),complete:i(()=>{t()},"complete")})}})}waitForItems(){return new Promise(t=>{if(this.data.length>0||this.isDestroyed)t();else{let r=this.itemsAvailable.subscribe({next:i(()=>{r.unsubscribe(),t()},"next"),complete:i(()=>{t()},"complete")})}})}[Symbol.iterator](){return this.data[Symbol.iterator]()}destroy(){this.isDestroyed=!0,this.hasSpace.complete(),this.itemsAvailable.complete()}};var ui=class e{static{i(this,"FastMap")}mapObject=new Map;isUniqueKey(t){return!this.mapObject.has(t)}has(t){return this.mapObject.has(t)}get size(){return this.mapObject.size}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject.set(t,r),!0):!1}getByKey(t){return this.mapObject.get(t)}removeFromMap(t){let r=this.mapObject.get(t);return this.mapObject.delete(t),r}getKeys(){return Array.from(this.mapObject.keys())}values(){return Array.from(this.mapObject.values())}entries(){return Array.from(this.mapObject.entries())}clean(){this.mapObject.clear()}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}[Symbol.iterator](){return this.mapObject.entries()}};var V0=i((e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),"uni"),qr=class e{static{i(this,"ObjectMap")}fastMap=new ui;reverseMap=new Map;eventSubject=new Ce.rxjs.Subject;constructor(){}get length(){return this.fastMap.size}addMappedUnique(t,r){this.fastMap.addToMap(t,r),this.reverseMap.set(r,t)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.fastMap.removeFromMap(t);return r!==void 0&&(this.reverseMap.delete(r),this.eventSubject.next({operation:"remove",payload:r})),r}add(t){let r=this.reverseMap.get(t);if(r!==void 0)return r;let n=V0("key");return this.addMappedUnique(n,t),this.eventSubject.next({operation:"add",payload:t}),n}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return this.reverseMap.has(t)}getKeyForObject(t){return this.reverseMap.get(t)??null}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){return this.fastMap.values()}isEmpty(){return this.fastMap.size===0}remove(t){let r=this.reverseMap.get(t);if(r!==void 0){let n=this.fastMap.removeFromMap(r);return this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){let t=this.fastMap.getKeys();for(let r of t){let n=this.fastMap.removeFromMap(r);this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n})}}concat(t){let r=new e;r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap);for(let n of r.fastMap.getKeys())r.reverseMap.set(r.fastMap.getByKey(n),n);return r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap);for(let r of t.fastMap.getKeys())this.reverseMap.set(t.fastMap.getByKey(r),r)}map(t){return this.getArray().map(t)}filter(t){return this.getArray().filter(t)}reduce(t,r){return this.getArray().reduce(t,r)}[Symbol.iterator](){return this.getArray()[Symbol.iterator]()}destroy(){this.wipe(),this.reverseMap.clear(),this.eventSubject.complete()}};var Qs=class{static{i(this,"Interest")}options;interestMapRef;originalInterest;comparisonFunc;destructionTimer=new li.Timer(1e4);isFullfilled=!1;isDestroyed=!1;fullfillmentStore=[];markLostTimeout=null;get comparisonString(){return this.comparisonFunc(this.originalInterest)}interestDeferred=new J.Deferred;interestFullfilled=this.interestDeferred.promise;fullfillInterest(t){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(t),this.destroy()}constructor(t,r,n,o){this.interestMapRef=t,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.isDestroyed||this.destroy()}),this.options?.markLostAfterDefault&&(this.markLostTimeout=new he.Timeout(this.options.markLostAfterDefault),this.markLostTimeout.promise.then(()=>{this.isDestroyed||this.markLost()}))}destroy(){this.isDestroyed||(this.isDestroyed=!0,this.destructionTimer.reset(),this.markLostTimeout&&(this.markLostTimeout.cancel(),this.markLostTimeout=null),this.fullfillmentStore=[],this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options?.defaultFullfillment&&(this.isFullfilled=!0,this.interestDeferred.resolve(this.options.defaultFullfillment)))}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var Lh=class{static{i(this,"InterestMap")}options;interestObjectMap=new qr;interestsByComparisonString=new Map;comparisonFunc;constructor(t,r={}){this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),o,s=this.interestsByComparisonString.get(n);return s?(o=s,o.renew()):(o=new Qs(this,t,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),this.interestObjectMap.add(o),this.interestsByComparisonString.set(n,o)),this.interestObservable.push(o),o}interestObservable=new Ce.ObservableIntake;removeInterest(t){this.interestObjectMap.findOneAndRemoveSync(r=>t.comparisonString===r.comparisonString),this.interestsByComparisonString.delete(t.comparisonString)}checkInterest(t){let r=this.comparisonFunc(t);return this.checkInterestByString(r)}checkInterestByString(t){return this.interestsByComparisonString.has(t)}informLostInterest(t){let r=this.findInterest(t);r&&r.markLost()}findInterest(t){let r=this.comparisonFunc(t);return this.interestsByComparisonString.get(r)??null}destroy(){let t=this.interestObjectMap.getArray();for(let r of t)r.destroy();this.interestObjectMap.wipe(),this.interestsByComparisonString.clear(),this.interestObservable.signalComplete()}};var Rh=class{static{i(this,"LimitedArray")}array=[];arrayLimit;constructor(t){this.arrayLimit=t}get length(){return this.array.length}addOne(t){this.array.unshift(t),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(t){for(let r of t)this.addOne(r)}setLimit(t){this.arrayLimit=t,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(this.array.length===0)return 0;if(typeof this.array[0]=="number"){let t=0;for(let r of this.array)t=t+r;return t/this.array.length}else return null}remove(t){let r=this.array.indexOf(t);return r!==-1?(this.array.splice(r,1),!0):!1}clear(){this.array.length=0}getArray(){return[...this.array]}[Symbol.iterator](){return this.array[Symbol.iterator]()}};var Bh=class{static{i(this,"LoopTracker")}referenceObjectMap=new qr;constructor(){}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}reset(){this.referenceObjectMap.wipe()}destroy(){this.referenceObjectMap.destroy()}};var Gs=class{static{i(this,"Stringmap")}_stringArray=[];_triggerUntilTrueFunctionArray=[];constructor(){}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){this._stringArray=this._stringArray.filter(r=>r!==t),this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new Ts.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=J.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}destroy(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}};var Js=class{static{i(this,"TimedAggregtor")}options;storageArray=[];isStopped=!1;constructor(t){this.options=t}aggregationTimer;checkAggregationStatus(){if(this.isStopped)return;let t=i(()=>{this.aggregationTimer=new li.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{if(this.isStopped){this.aggregationTimer=null;return}let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],t(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()},"addAggregationTimer");this.aggregationTimer||t()}add(t){this.isStopped||(this.storageArray.push(t),this.checkAggregationStatus())}stop(t=!1){if(this.isStopped=!0,this.aggregationTimer&&(this.aggregationTimer.reset(),this.aggregationTimer=null),t&&this.storageArray.length>0){let r=this.storageArray;this.storageArray=[],this.options.functionForAggregation(r)}else this.storageArray=[]}restart(){this.isStopped=!1}};var zh=class{static{i(this,"Tree")}symbolTree;constructor(){this.symbolTree=new Dc.default}initialize(t){return this.symbolTree.initialize(t)}hasChildren(t){return this.symbolTree.hasChildren(t)}firstChild(t){return this.symbolTree.firstChild(t)}lastChild(t){return this.symbolTree.lastChild(t)}previousSibling(t){return this.symbolTree.previousSibling(t)}nextSibling(t){return this.symbolTree.nextSibling(t)}parent(t){return this.symbolTree.parent(t)}lastInclusiveDescendant(t){return this.symbolTree.lastInclusiveDescendant(t)}preceding(t,r){return this.symbolTree.preceding(t,r)}following(t,r){return this.symbolTree.following(t,r)}childrenToArray(t,r){return this.symbolTree.childrenToArray(t,r)}ancestorsToArray(t,r){return this.symbolTree.ancestorsToArray(t,r)}treeToArray(t,r){return this.symbolTree.treeToArray(t,r)}childrenIterator(t,r){return this.symbolTree.childrenIterator(t,r)}previousSiblingsIterator(t){return this.symbolTree.previousSiblingsIterator(t)}nextSiblingsIterator(t){return this.symbolTree.nextSiblingsIterator(t)}ancestorsIterator(t){return this.symbolTree.ancestorsIterator(t)}treeIterator(t,r){return this.symbolTree.treeIterator(t,r)}index(t){return this.symbolTree.index(t)}childrenCount(t){return this.symbolTree.childrenCount(t)}compareTreePosition(t,r){return this.symbolTree.compareTreePosition(t,r)}remove(t){return this.symbolTree.remove(t)}insertBefore(t,r){return this.symbolTree.insertBefore(t,r)}insertAfter(t,r){return this.symbolTree.insertAfter(t,r)}prependChild(t,r){return this.symbolTree.prependChild(t,r)}appendChild(t,r){return this.symbolTree.appendChild(t,r)}toJsonWithHierachy(t){let r=i(n=>{let o=[];if(this.hasChildren(n)){let s=this.childrenToArray(n,{});for(let a of s)o.push(r(a))}return{data:n,children:o}},"buildNode");return r(t)}fromJsonWithHierachy(t,r){let n=i((o,s)=>{let a=r?r(o.data):o.data;this.initialize(a),s&&this.appendChild(s,a);for(let l of o.children)n(l,a);return a},"buildTree");return n(t)}};var Fo={};se(Fo,{base64ToUint8Array:()=>G_,ensurePureUint8Array:()=>Z_,isBufferLike:()=>X_,isUint8Array:()=>J_,uInt8ArrayExtras:()=>V_,uInt8ArrayToBase64:()=>Q_});var Tn={};se(Tn,{areUint8ArraysEqual:()=>N_,assertUint8Array:()=>Sn,assertUint8ArrayOrArrayBuffer:()=>Z0,base64ToString:()=>$_,base64ToUint8Array:()=>rv,compareUint8Arrays:()=>F_,concatUint8Arrays:()=>P_,getUintBE:()=>j_,hexToUint8Array:()=>U_,includes:()=>q_,indexOf:()=>nv,isUint8Array:()=>$h,stringToBase64:()=>z_,stringToUint8Array:()=>ev,toUint8Array:()=>__,uint8ArrayToBase64:()=>tv,uint8ArrayToHex:()=>W_,uint8ArrayToString:()=>K0});var C_=Object.prototype.toString,O_="[object Uint8Array]",I_="[object ArrayBuffer]";function Q0(e,t,r){return e?e.constructor===t?!0:C_.call(e)===r:!1}i(Q0,"isType");function $h(e){return Q0(e,Uint8Array,O_)}i($h,"isUint8Array");function A_(e){return Q0(e,ArrayBuffer,I_)}i(A_,"isArrayBuffer");function M_(e){return $h(e)||A_(e)}i(M_,"isUint8ArrayOrArrayBuffer");function Sn(e){if(!$h(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}i(Sn,"assertUint8Array");function Z0(e){if(!M_(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}i(Z0,"assertUint8ArrayOrArrayBuffer");function __(e){if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new TypeError(`Unsupported value, got \`${typeof e}\`.`)}i(__,"toUint8Array");function P_(e,t){if(e.length===0)return new Uint8Array(0);t??=e.reduce((o,s)=>o+s.length,0);let r=new Uint8Array(t),n=0;for(let o of e)Sn(o),r.set(o,n),n+=o.length;return r}i(P_,"concatUint8Arrays");function N_(e,t){if(Sn(e),Sn(t),e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}i(N_,"areUint8ArraysEqual");function F_(e,t){Sn(e),Sn(t);let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]-t[n];if(o!==0)return Math.sign(o)}return Math.sign(e.length-t.length)}i(F_,"compareUint8Arrays");var G0={utf8:new globalThis.TextDecoder("utf8")};function K0(e,t="utf8"){return Z0(e),G0[t]??=new globalThis.TextDecoder(t),G0[t].decode(e)}i(K0,"uint8ArrayToString");function Xs(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}i(Xs,"assertString");var L_=new globalThis.TextEncoder;function ev(e){return Xs(e),L_.encode(e)}i(ev,"stringToUint8Array");function R_(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}i(R_,"base64ToBase64Url");function B_(e){let t=e.replaceAll("-","+").replaceAll("_","/"),r=(4-t.length%4)%4;return t+"=".repeat(r)}i(B_,"base64UrlToBase64");var J0=65535;function tv(e,{urlSafe:t=!1}={}){Sn(e);let r="";for(let n=0;n<e.length;n+=J0){let o=e.subarray(n,n+J0);r+=globalThis.btoa(String.fromCodePoint.apply(void 0,o))}return t?R_(r):r}i(tv,"uint8ArrayToBase64");function rv(e){return Xs(e),Uint8Array.from(globalThis.atob(B_(e)),t=>t.codePointAt(0))}i(rv,"base64ToUint8Array");function z_(e,{urlSafe:t=!1}={}){return Xs(e),tv(ev(e),{urlSafe:t})}i(z_,"stringToBase64");function $_(e){return Xs(e),K0(rv(e))}i($_,"base64ToString");var H_=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function W_(e){Sn(e);let t="";for(let r=0;r<e.length;r++)t+=H_[e[r]];return t}i(W_,"uint8ArrayToHex");var X0={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 U_(e){if(Xs(e),e.length%2!==0)throw new Error("Invalid Hex string length.");let t=e.length/2,r=new Uint8Array(t);for(let n=0;n<t;n++){let o=X0[e[n*2]],s=X0[e[n*2+1]];if(o===void 0||s===void 0)throw new Error(`Invalid Hex character encountered at position ${n*2}`);r[n]=o<<4|s}return r}i(U_,"hexToUint8Array");function j_(e){let{byteLength:t}=e;if(t===6)return e.getUint16(0)*2**32+e.getUint32(2);if(t===5)return e.getUint8(0)*2**32+e.getUint32(1);if(t===4)return e.getUint32(0);if(t===3)return e.getUint8(0)*2**16+e.getUint16(1);if(t===2)return e.getUint16(0);if(t===1)return e.getUint8(0)}i(j_,"getUintBE");function nv(e,t){let r=e.length,n=t.length;if(n===0||n>r)return-1;let o=r-n;for(let s=0;s<=o;s++){let a=!0;for(let l=0;l<n;l++)if(e[s+l]!==t[l]){a=!1;break}if(a)return s}return-1}i(nv,"indexOf");function q_(e,t){return nv(e,t)!==-1}i(q_,"includes");var V_=Tn;function Q_(e){return Tn.uint8ArrayToBase64(e)}i(Q_,"uInt8ArrayToBase64");function G_(e){return Tn.base64ToUint8Array(e)}i(G_,"base64ToUint8Array");var J_=i(e=>Tn.isUint8Array(e),"isUint8Array");function X_(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}i(X_,"isBufferLike");function Z_(e){let t=new Uint8Array(e.length);return t.set(e),t}i(Z_,"ensurePureUint8Array");var ta={};se(ta,{Guard:()=>Zs,GuardError:()=>Ks,GuardSet:()=>ea,passGuardsOrReject:()=>K_});var Zs=class{static{i(this,"Guard")}constructor(t,r){this.guardFunction=t,this.options=r}async exec(t){return await this.guardFunction(t)}async getFailedHint(t){return await this.exec(t)?null:this.options.failedHint}};var Ks=class extends Error{static{i(this,"GuardError")}constructor(t){super(t),this.name="GuardError"}};var ea=class extends Zs{static{i(this,"GuardSet")}constructor(t=[]){super(async r=>this.allGuardsPass(r)),this.guards=t}async execAllWithData(t,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let s of this.guards){let a=s.exec(t);if(r.mode==="serial"&&await a,n.push(a),r.stopOnFail&&!await a)return await Promise.all(n)}return await Promise.all(n)}async allGuardsPass(t,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(t,r)).every(o=>o)}async anyGuardsPass(t){return(await this.execAllWithData(t,{mode:"parallel",stopOnFail:!1})).some(n=>n)}getFailedHint(t){for(let r of this.guards){let n=r.getFailedHint(t);if(n)return n}}};var K_=i(async(e,t)=>{let r=new ea(t);if(!await r.allGuardsPass(e)){let o=await r.getFailedHint(e);throw new Ks(`Guards failed:
32
+ `):"",this.name="UnsubscriptionError",this.errors=r},"UnsubscriptionErrorImpl")});function nr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}i(nr,"arrRemove");var At=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i(e,"Subscription"),e.prototype.unsubscribe=function(){var t,r,n,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=ft(a),u=l.next();!u.done;u=l.next()){var c=u.value;c.remove(this)}}catch(g){t={error:g}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}else a.remove(this);var f=this.initialTeardown;if(fe(f))try{f()}catch(g){s=g instanceof Cs?g.errors:[g]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=ft(p),m=h.next();!m.done;m=h.next()){var d=m.value;try{Zx(d)}catch(g){s=s??[],g instanceof Cs?s=Ot(Ot([],at(s)),at(g.errors)):s.push(g)}}}catch(g){n={error:g}}finally{try{m&&!m.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(s)throw new Cs(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Zx(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&nr(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&nr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Jp=At.EMPTY;function ml(e){return e instanceof At||e&&"closed"in e&&fe(e.remove)&&fe(e.add)&&fe(e.unsubscribe)}i(ml,"isSubscription");function Zx(e){fe(e)?e():e.unsubscribe()}i(Zx,"execFinalizer");var Vt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Zi={setTimeout:i(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Zi.delegate;return o?.setTimeout?o.setTimeout.apply(o,Ot([e,t],at(r))):setTimeout.apply(void 0,Ot([e,t],at(r)))},"setTimeout"),clearTimeout:i(function(e){var t=Zi.delegate;return(t?.clearTimeout||clearTimeout)(e)},"clearTimeout"),delegate:void 0};function dl(e){Zi.setTimeout(function(){var t=Vt.onUnhandledError;if(t)t(e);else throw e})}i(dl,"reportUnhandledError");function yr(){}i(yr,"noop");var ey=(function(){return Kp("C",void 0,void 0)})();function ty(e){return Kp("E",void 0,e)}i(ty,"errorNotification");function ry(e){return Kp("N",e,void 0)}i(ry,"nextNotification");function Kp(e,t,r){return{kind:e,value:t,error:r}}i(Kp,"createNotification");var Yn=null;function eo(e){if(Vt.useDeprecatedSynchronousErrorHandling){var t=!Yn;if(t&&(Yn={errorThrown:!1,error:null}),e(),t){var r=Yn,n=r.errorThrown,o=r.error;if(Yn=null,n)throw o}}else e()}i(eo,"errorContext");function ny(e){Vt.useDeprecatedSynchronousErrorHandling&&Yn&&(Yn.errorThrown=!0,Yn.error=e)}i(ny,"captureError");var Vn=(function(e){Ge(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,ml(r)&&r.add(n)):n.destination=BI,n}return i(t,"Subscriber"),t.create=function(r,n,o){return new sn(r,n,o)},t.prototype.next=function(r){this.isStopped?Zp(ry(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Zp(ty(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Zp(ey,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(At),FI=Function.prototype.bind;function Xp(e,t){return FI.call(e,t)}i(Xp,"bind");var LI=(function(){function e(t){this.partialObserver=t}return i(e,"ConsumerObserver"),e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){gl(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){gl(n)}else gl(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){gl(r)}},e})(),sn=(function(e){Ge(t,e);function t(r,n,o){var s=e.call(this)||this,a;if(fe(r)||!r)a={next:r??void 0,error:n??void 0,complete:o??void 0};else{var l;s&&Vt.useDeprecatedNextContext?(l=Object.create(r),l.unsubscribe=function(){return s.unsubscribe()},a={next:r.next&&Xp(r.next,l),error:r.error&&Xp(r.error,l),complete:r.complete&&Xp(r.complete,l)}):a=r}return s.destination=new LI(a),s}return i(t,"SafeSubscriber"),t})(Vn);function gl(e){Vt.useDeprecatedSynchronousErrorHandling?ny(e):dl(e)}i(gl,"handleUnhandledError");function RI(e){throw e}i(RI,"defaultErrorHandler");function Zp(e,t){var r=Vt.onStoppedNotification;r&&Zi.setTimeout(function(){return r(e,t)})}i(Zp,"handleStoppedNotification");var BI={closed:!0,next:yr,error:RI,complete:yr};var Qn=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function wr(e){return e}i(wr,"identity");function zI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return eh(e)}i(zI,"pipe");function eh(e){return e.length===0?wr:e.length===1?e[0]:i(function(r){return e.reduce(function(n,o){return o(n)},r)},"piped")}i(eh,"pipeFromArray");var ye=(function(){function e(t){t&&(this._subscribe=t)}return i(e,"Observable"),e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,s=HI(t)?t:new sn(t,r,n);return eo(function(){var a=o,l=a.operator,u=a.source;s.add(l?l.call(s,u):u?o._subscribe(s):o._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=iy(r),new r(function(o,s){var a=new sn({next:i(function(l){try{t(l)}catch(u){s(u),a.unsubscribe()}},"next"),error:s,complete:o});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Qn]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return eh(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=iy(t),new t(function(n,o){var s;r.subscribe(function(a){return s=a},function(a){return o(a)},function(){return n(s)})})},e.create=function(t){return new e(t)},e})();function iy(e){var t;return(t=e??Vt.Promise)!==null&&t!==void 0?t:Promise}i(iy,"getPromiseCtor");function $I(e){return e&&fe(e.next)&&fe(e.error)&&fe(e.complete)}i($I,"isObserver");function HI(e){return e&&e instanceof Vn||$I(e)&&ml(e)}i(HI,"isSubscriber");function UI(e){return fe(e?.lift)}i(UI,"hasLift");function Se(e){return function(t){if(UI(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}i(Se,"operate");function Te(e,t,r,n,o){return new oy(e,t,r,n,o)}i(Te,"createOperatorSubscriber");var oy=(function(e){Ge(t,e);function t(r,n,o,s,a,l){var u=e.call(this,r)||this;return u.onFinalize=a,u.shouldUnsubscribe=l,u._next=n?function(c){try{n(c)}catch(f){r.error(f)}}:e.prototype._next,u._error=s?function(c){try{s(c)}catch(f){r.error(f)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=o?function(){try{o()}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,u}return i(t,"OperatorSubscriber"),t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(Vn);var th=hl(function(e){return i(function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"},"ObjectUnsubscribedErrorImpl")});var Mt=(function(e){Ge(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return i(t,"Subject"),t.prototype.lift=function(r){var n=new rh(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new th},t.prototype.next=function(r){var n=this;eo(function(){var o,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=ft(n.currentObservers),l=a.next();!l.done;l=a.next()){var u=l.value;u.next(r)}}catch(c){o={error:c}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;eo(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;eo(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:i(function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},"get"),enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,s=o.hasError,a=o.isStopped,l=o.observers;return s||a?Jp:(this.currentObservers=null,l.push(r),new At(function(){n.currentObservers=null,nr(l,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,s=n.thrownError,a=n.isStopped;o?r.error(s):a&&r.complete()},t.prototype.asObservable=function(){var r=new ye;return r.source=this,r},t.create=function(r,n){return new rh(r,n)},t})(ye),rh=(function(e){Ge(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return i(t,"AnonymousSubject"),t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Jp},t})(Mt);var to=(function(e){Ge(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return i(t,"BehaviorSubject"),Object.defineProperty(t.prototype,"value",{get:i(function(){return this.getValue()},"get"),enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,s=r._value;if(n)throw o;return this._throwIfClosed(),s},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})(Mt);var Is={now:i(function(){return(Is.delegate||Date).now()},"now"),delegate:void 0};var ro=(function(e){Ge(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Is);var s=e.call(this)||this;return s._bufferSize=r,s._windowTime=n,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,n),s}return i(t,"ReplaySubject"),t.prototype.next=function(r){var n=this,o=n.isStopped,s=n._buffer,a=n._infiniteTimeWindow,l=n._timestampProvider,u=n._windowTime;o||(s.push(r),!a&&s.push(l.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,s=o._infiniteTimeWindow,a=o._buffer,l=a.slice(),u=0;u<l.length&&!r.closed;u+=s?1:2)r.next(l[u]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,s=r._buffer,a=r._infiniteTimeWindow,l=(a?1:2)*n;if(n<1/0&&l<s.length&&s.splice(0,s.length-l),!a){for(var u=o.now(),c=0,f=1;f<s.length&&s[f]<=u;f+=2)c=f;c&&s.splice(0,c+1)}},t})(Mt);var nh=(function(e){Ge(t,e);function t(r,n){return e.call(this)||this}return i(t,"Action"),t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t})(At);var Os={setInterval:i(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Os.delegate;return o?.setInterval?o.setInterval.apply(o,Ot([e,t],at(r))):setInterval.apply(void 0,Ot([e,t],at(r)))},"setInterval"),clearInterval:i(function(e){var t=Os.delegate;return(t?.clearInterval||clearInterval)(e)},"clearInterval"),delegate:void 0};var ih=(function(e){Ge(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return i(t,"AsyncAction"),t.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var s=this.id,a=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(a,s,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(a,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Os.setInterval(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Os.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var o=!1,s;try{this.work(r)}catch(a){o=!0,s=a||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),s},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,s=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,nr(s,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(nh);var As=(function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return i(e,"Scheduler"),e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=Is.now,e})();var oh=(function(e){Ge(t,e);function t(r,n){n===void 0&&(n=As.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return i(t,"AsyncScheduler"),t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},t})(As);var br=new oh(ih),sh=br;function xl(e){return e&&fe(e.schedule)}i(xl,"isScheduler");function ah(e){return e[e.length-1]}i(ah,"last");function sy(e){return fe(ah(e))?e.pop():void 0}i(sy,"popResultSelector");function vr(e){return xl(ah(e))?e.pop():void 0}i(vr,"popScheduler");function y6(e,t){return typeof ah(e)=="number"?e.pop():t}i(y6,"popNumber");var no=i((function(e){return e&&typeof e.length=="number"&&typeof e!="function"}),"isArrayLike");function yl(e){return fe(e?.then)}i(yl,"isPromise");function wl(e){return fe(e[Qn])}i(wl,"isInteropObservable");function bl(e){return Symbol.asyncIterator&&fe(e?.[Symbol.asyncIterator])}i(bl,"isAsyncIterable");function vl(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}i(vl,"createInvalidObservableTypeError");function WI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}i(WI,"getSymbolIterator");var kl=WI();function Sl(e){return fe(e?.[kl])}i(Sl,"isIterable");function Tl(e){return Qp(this,arguments,i(function(){var r,n,o,s;return Ds(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,jr(r.read())];case 3:return n=a.sent(),o=n.value,s=n.done,s?[4,jr(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,jr(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})},"readableStreamLikeToAsyncGenerator_1"))}i(Tl,"readableStreamLikeToAsyncGenerator");function El(e){return fe(e?.getReader)}i(El,"isReadableStreamLike");function Le(e){if(e instanceof ye)return e;if(e!=null){if(wl(e))return jI(e);if(no(e))return qI(e);if(yl(e))return YI(e);if(bl(e))return ay(e);if(Sl(e))return VI(e);if(El(e))return QI(e)}throw vl(e)}i(Le,"innerFrom");function jI(e){return new ye(function(t){var r=e[Qn]();if(fe(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}i(jI,"fromInteropObservable");function qI(e){return new ye(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}i(qI,"fromArrayLike");function YI(e){return new ye(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,dl)})}i(YI,"fromPromise");function VI(e){return new ye(function(t){var r,n;try{for(var o=ft(e),s=o.next();!s.done;s=o.next()){var a=s.value;if(t.next(a),t.closed)return}}catch(l){r={error:l}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()})}i(VI,"fromIterable");function ay(e){return new ye(function(t){GI(e,t).catch(function(r){return t.error(r)})})}i(ay,"fromAsyncIterable");function QI(e){return ay(Tl(e))}i(QI,"fromReadableStreamLike");function GI(e,t){var r,n,o,s;return Vp(this,void 0,void 0,function(){var a,l;return Ds(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=Gp(e),u.label=1;case 1:return[4,r.next()];case 2:if(n=u.sent(),!!n.done)return[3,4];if(a=n.value,t.next(a),t.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=u.sent(),o={error:l},[3,11];case 6:return u.trys.push([6,,9,10]),n&&!n.done&&(s=r.return)?[4,s.call(r)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}i(GI,"process");function lt(e,t,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var s=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(s),!o)return s}i(lt,"executeSchedule");function io(e,t){return t===void 0&&(t=0),Se(function(r,n){r.subscribe(Te(n,function(o){return lt(n,e,function(){return n.next(o)},t)},function(){return lt(n,e,function(){return n.complete()},t)},function(o){return lt(n,e,function(){return n.error(o)},t)}))})}i(io,"observeOn");function oo(e,t){return t===void 0&&(t=0),Se(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}i(oo,"subscribeOn");function ly(e,t){return Le(e).pipe(oo(t),io(t))}i(ly,"scheduleObservable");function uy(e,t){return Le(e).pipe(oo(t),io(t))}i(uy,"schedulePromise");function cy(e,t){return new ye(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}i(cy,"scheduleArray");function fy(e,t){return new ye(function(r){var n;return lt(r,t,function(){n=e[kl](),lt(r,t,function(){var o,s,a;try{o=n.next(),s=o.value,a=o.done}catch(l){r.error(l);return}a?r.complete():r.next(s)},0,!0)}),function(){return fe(n?.return)&&n.return()}})}i(fy,"scheduleIterable");function Dl(e,t){if(!e)throw new Error("Iterable cannot be null");return new ye(function(r){lt(r,t,function(){var n=e[Symbol.asyncIterator]();lt(r,t,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}i(Dl,"scheduleAsyncIterable");function py(e,t){return Dl(Tl(e),t)}i(py,"scheduleReadableStreamLike");function lh(e,t){if(e!=null){if(wl(e))return ly(e,t);if(no(e))return cy(e,t);if(yl(e))return uy(e,t);if(bl(e))return Dl(e,t);if(Sl(e))return fy(e,t);if(El(e))return py(e,t)}throw vl(e)}i(lh,"scheduled");function kr(e,t){return t?lh(e,t):Le(e)}i(kr,"from");function Ms(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=vr(e);return kr(e,r)}i(Ms,"of");function hy(e){return e instanceof Date&&!isNaN(e)}i(hy,"isValidDate");function Sr(e,t){return Se(function(r,n){var o=0;r.subscribe(Te(n,function(s){n.next(e.call(t,s,o++))}))})}i(Sr,"map");var JI=Array.isArray;function KI(e,t){return JI(t)?e.apply(void 0,Ot([],at(t))):e(t)}i(KI,"callOrApply");function Cl(e){return Sr(function(t){return KI(e,t)})}i(Cl,"mapOneOrManyArgs");var XI=Array.isArray,ZI=Object.getPrototypeOf,eO=Object.prototype,tO=Object.keys;function my(e){if(e.length===1){var t=e[0];if(XI(t))return{args:t,keys:null};if(rO(t)){var r=tO(t);return{args:r.map(function(n){return t[n]}),keys:r}}}return{args:e,keys:null}}i(my,"argsArgArrayOrObject");function rO(e){return e&&typeof e=="object"&&ZI(e)===eO}i(rO,"isPOJO");function dy(e,t){return e.reduce(function(r,n,o){return r[n]=t[o],r},{})}i(dy,"createObject");function uh(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=vr(e),n=sy(e),o=my(e),s=o.args,a=o.keys;if(s.length===0)return kr([],r);var l=new ye(nO(s,r,a?function(u){return dy(a,u)}:wr));return n?l.pipe(Cl(n)):l}i(uh,"combineLatest");function nO(e,t,r){return r===void 0&&(r=wr),function(n){gy(t,function(){for(var o=e.length,s=new Array(o),a=o,l=o,u=i(function(f){gy(t,function(){var p=kr(e[f],t),h=!1;p.subscribe(Te(n,function(m){s[f]=m,h||(h=!0,l--),l||n.next(r(s.slice()))},function(){--a||n.complete()}))},n)},"_loop_1"),c=0;c<o;c++)u(c)},n)}}i(nO,"combineLatestInit");function gy(e,t,r){e?lt(r,e,t):t()}i(gy,"maybeSchedule");function xy(e,t,r,n,o,s,a,l){var u=[],c=0,f=0,p=!1,h=i(function(){p&&!u.length&&!c&&t.complete()},"checkComplete"),m=i(function(g){return c<n?d(g):u.push(g)},"outerNext"),d=i(function(g){s&&t.next(g),c++;var x=!1;Le(r(g,f++)).subscribe(Te(t,function(b){o?.(b),s?m(b):t.next(b)},function(){x=!0},void 0,function(){if(x)try{c--;for(var b=i(function(){var T=u.shift();a?lt(t,a,function(){return d(T)}):d(T)},"_loop_1");u.length&&c<n;)b();h()}catch(T){t.error(T)}}))},"doInnerSub");return e.subscribe(Te(t,m,function(){p=!0,h()})),function(){l?.()}}i(xy,"mergeInternals");function Gn(e,t,r){return r===void 0&&(r=1/0),fe(t)?Gn(function(n,o){return Sr(function(s,a){return t(n,s,o,a)})(Le(e(n,o)))},r):(typeof t=="number"&&(r=t),Se(function(n,o){return xy(n,o,e,r)}))}i(Gn,"mergeMap");function Il(e){return e===void 0&&(e=1/0),Gn(wr,e)}i(Il,"mergeAll");function Ol(){return Il(1)}i(Ol,"concatAll");function Al(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ol()(kr(e,vr(e)))}i(Al,"concat");var iO=["addListener","removeListener"],oO=["addEventListener","removeEventListener"],sO=["on","off"];function Jn(e,t,r,n){if(fe(r)&&(n=r,r=void 0),n)return Jn(e,t,r).pipe(Cl(n));var o=at(uO(e)?oO.map(function(l){return function(u){return e[l](t,u,r)}}):aO(e)?iO.map(yy(e,t)):lO(e)?sO.map(yy(e,t)):[],2),s=o[0],a=o[1];if(!s&&no(e))return Gn(function(l){return Jn(l,t,r)})(Le(e));if(!s)throw new TypeError("Invalid event target");return new ye(function(l){var u=i(function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return l.next(1<c.length?c:c[0])},"handler");return s(u),function(){return a(u)}})}i(Jn,"fromEvent");function yy(e,t){return function(r){return function(n){return e[r](t,n)}}}i(yy,"toCommonHandlerRegistry");function aO(e){return fe(e.addListener)&&fe(e.removeListener)}i(aO,"isNodeStyleEventEmitter");function lO(e){return fe(e.on)&&fe(e.off)}i(lO,"isJQueryStyleEventEmitter");function uO(e){return fe(e.addEventListener)&&fe(e.removeEventListener)}i(uO,"isEventTarget");function _s(e,t,r){e===void 0&&(e=0),r===void 0&&(r=sh);var n=-1;return t!=null&&(xl(t)?r=t:n=t),new ye(function(o){var s=hy(e)?+e-r.now():e;s<0&&(s=0);var a=0;return r.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},s)})}i(_s,"timer");function ch(e,t){return e===void 0&&(e=0),t===void 0&&(t=br),e<0&&(e=0),_s(e,e,t)}i(ch,"interval");function Ml(e,t){return Se(function(r,n){var o=0;r.subscribe(Te(n,function(s){return e.call(t,s,o++)&&n.next(s)}))})}i(Ml,"filter");function _l(e){return Se(function(t,r){var n=[];return t.subscribe(Te(r,function(o){return n.push(o)},function(){r.next(n),r.complete()})),Le(e).subscribe(Te(r,function(){var o=n;n=[],r.next(o)},yr)),function(){n=null}})}i(_l,"buffer");function Nl(e,t){return t===void 0&&(t=null),t=t??e,Se(function(r,n){var o=[],s=0;r.subscribe(Te(n,function(a){var l,u,c,f,p=null;s++%t===0&&o.push([]);try{for(var h=ft(o),m=h.next();!m.done;m=h.next()){var d=m.value;d.push(a),e<=d.length&&(p=p??[],p.push(d))}}catch(b){l={error:b}}finally{try{m&&!m.done&&(u=h.return)&&u.call(h)}finally{if(l)throw l.error}}if(p)try{for(var g=ft(p),x=g.next();!x.done;x=g.next()){var d=x.value;nr(o,d),n.next(d)}}catch(b){c={error:b}}finally{try{x&&!x.done&&(f=g.return)&&f.call(g)}finally{if(c)throw c.error}}},function(){var a,l;try{for(var u=ft(o),c=u.next();!c.done;c=u.next()){var f=c.value;n.next(f)}}catch(p){a={error:p}}finally{try{c&&!c.done&&(l=u.return)&&l.call(u)}finally{if(a)throw a.error}}n.complete()},void 0,function(){o=null}))})}i(Nl,"bufferCount");function Pl(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var s=(t=vr(n))!==null&&t!==void 0?t:br,a=(r=n[0])!==null&&r!==void 0?r:null,l=n[1]||1/0;return Se(function(u,c){var f=[],p=!1,h=i(function(g){var x=g.buffer,b=g.subs;b.unsubscribe(),nr(f,g),c.next(x),p&&m()},"emit"),m=i(function(){if(f){var g=new At;c.add(g);var x=[],b={buffer:x,subs:g};f.push(b),lt(g,s,function(){return h(b)},e)}},"startBuffer");a!==null&&a>=0?lt(c,s,m,a,!0):p=!0,m();var d=Te(c,function(g){var x,b,T=f.slice();try{for(var D=ft(T),q=D.next();!q.done;q=D.next()){var H=q.value,I=H.buffer;I.push(g),l<=I.length&&h(H)}}catch($){x={error:$}}finally{try{q&&!q.done&&(b=D.return)&&b.call(D)}finally{if(x)throw x.error}}},function(){for(;f?.length;)c.next(f.shift().buffer);d?.unsubscribe(),c.complete(),c.unsubscribe()},void 0,function(){return f=null});u.subscribe(d)})}i(Pl,"bufferTime");function Fl(e){return Se(function(t,r){var n=!1,o=null,s=null,a=i(function(){if(s?.unsubscribe(),s=null,n){n=!1;var l=o;o=null,r.next(l)}},"emit");t.subscribe(Te(r,function(l){s?.unsubscribe(),n=!0,o=l,s=Te(r,a,yr),Le(e(l)).subscribe(s)},function(){a(),r.complete()},void 0,function(){o=s=null}))})}i(Fl,"debounce");function Ll(e,t){return t===void 0&&(t=br),Se(function(r,n){var o=null,s=null,a=null,l=i(function(){if(o){o.unsubscribe(),o=null;var c=s;s=null,n.next(c)}},"emit");function u(){var c=a+e,f=t.now();if(f<c){o=this.schedule(void 0,c-f),n.add(o);return}l()}i(u,"emitWhenIdle"),r.subscribe(Te(n,function(c){s=c,a=t.now(),o||(o=t.schedule(u,e),n.add(o))},function(){l(),n.complete()},void 0,function(){s=o=null}))})}i(Ll,"debounceTime");function so(e,t){return t===void 0&&(t=wr),e=e??cO,Se(function(r,n){var o,s=!0;r.subscribe(Te(n,function(a){var l=t(a);(s||!e(o,l))&&(s=!1,o=l,n.next(a))}))})}i(so,"distinctUntilChanged");function cO(e,t){return e===t}i(cO,"defaultCompare");function Rl(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new Mt}:t,n=e.resetOnError,o=n===void 0?!0:n,s=e.resetOnComplete,a=s===void 0?!0:s,l=e.resetOnRefCountZero,u=l===void 0?!0:l;return function(c){var f,p,h,m=0,d=!1,g=!1,x=i(function(){p?.unsubscribe(),p=void 0},"cancelReset"),b=i(function(){x(),f=h=void 0,d=g=!1},"reset"),T=i(function(){var D=f;b(),D?.unsubscribe()},"resetAndUnsubscribe");return Se(function(D,q){m++,!g&&!d&&x();var H=h=h??r();q.add(function(){m--,m===0&&!g&&!d&&(p=fh(T,u))}),H.subscribe(q),!f&&m>0&&(f=new sn({next:i(function(I){return H.next(I)},"next"),error:i(function(I){g=!0,x(),p=fh(b,o,I),H.error(I)},"error"),complete:i(function(){d=!0,x(),p=fh(b,a),H.complete()},"complete")}),Le(D).subscribe(f))})(c)}}i(Rl,"share");function fh(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(t===!0){e();return}if(t!==!1){var o=new sn({next:i(function(){o.unsubscribe(),e()},"next")});return Le(t.apply(void 0,Ot([],at(r)))).subscribe(o)}}i(fh,"handleReset");function Bl(e,t,r){var n,o,s,a,l=!1;return e&&typeof e=="object"?(n=e.bufferSize,a=n===void 0?1/0:n,o=e.windowTime,t=o===void 0?1/0:o,s=e.refCount,l=s===void 0?!1:s,r=e.scheduler):a=e??1/0,Rl({connector:i(function(){return new ro(a,t,r)},"connector"),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}i(Bl,"shareReplay");function zl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=vr(e);return Se(function(n,o){(r?Al(e,n,r):Al(e,n)).subscribe(o)})}i(zl,"startWith");function ao(e){return Se(function(t,r){Le(e).subscribe(Te(r,function(){return r.complete()},yr)),!r.closed&&t.subscribe(r)})}i(ao,"takeUntil");function $l(e,t){return Se(function(r,n){var o=t??{},s=o.leading,a=s===void 0?!0:s,l=o.trailing,u=l===void 0?!1:l,c=!1,f=null,p=null,h=!1,m=i(function(){p?.unsubscribe(),p=null,u&&(x(),h&&n.complete())},"endThrottling"),d=i(function(){p=null,h&&n.complete()},"cleanupThrottling"),g=i(function(b){return p=Le(e(b)).subscribe(Te(n,m,d))},"startThrottle"),x=i(function(){if(c){c=!1;var b=f;f=null,n.next(b),!h&&g(b)}},"send");r.subscribe(Te(n,function(b){c=!0,f=b,!(p&&!p.closed)&&(a?x():g(b))},function(){h=!0,!(u&&c&&p&&!p.closed)&&n.complete()}))})}i($l,"throttle");function Hl(e,t,r){t===void 0&&(t=br);var n=_s(e,t);return $l(function(){return n},r)}i(Hl,"throttleTime");var jA={buffer:_l,bufferCount:Nl,bufferTime:Pl,debounce:Fl,debounceTime:Ll,filter:Ml,map:Sr,startWith:zl,takeUntil:ao,throttleTime:Hl};var ph=class{static{i(this,"Observablemap")}constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(t,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let o=Jn(t,r),s=new Mt;o.subscribe(s);let a={subject:s,eventRef:t,event:r};return this.observableEventEmitterBundleArray.push(a),a.subject}}getSubjectForEventTarget(t,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let s={subject:new Mt,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(s),s.subject}}};var hh=class{static{i(this,"ObservableIntake")}constructor(){this.observableFunctions={next:i(t=>{},"next"),complete:i(t=>{},"complete")},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new ye(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=J.defer(),this.completed=this.completedDeffered.promise}setObservable(t){this.observable=t}push(t){this.buffered?this.payloadBuffer.push(t):this.internalPush(t)}pushMany(t){for(let r of t)this.push(r)}setGenerator(t){this.generator=t}makeBuffered(){this.buffered=!0}subscribe(...t){return this.observable.subscribe(...t)}request(t){if(t!==0)for(let r=0;r!==t;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(t){this.observableFunctions.next(t)}};function qA(e){return new ye(t=>{let r=i(()=>e.pause(),"pauseStream"),n=i(()=>process.nextTick(()=>e.resume()),"resumeStream"),o=i(s=>{r(),t.next(s),n()},"onData");return e.on("data",o),e.on("error",s=>t.error(s)),e.on("end",()=>t.complete()),e.on("close",()=>t.complete()),()=>{e.removeListener("data",o),e.removeListener("error",t.error),e.removeListener("end",t.complete),e.removeListener("close",t.complete)}})}i(qA,"fromStreamWithBackpressure");var oi={};se(oi,{CronJob:()=>Qs,CronManager:()=>Ch,ExtendedDate:()=>Oh,HrtMeasurement:()=>Ah,Interval:()=>Mh,TimeStamp:()=>No,Timer:()=>_h,getMilliSecondsAsHumanReadableAgoTime:()=>k_,getMilliSecondsAsHumanReadableString:()=>v_,getMilliSecondsFromUnits:()=>Ih,units:()=>wn});var Ls={};se(Ls,{Cron:()=>Ty,CronDate:()=>Je,CronPattern:()=>Ul,scheduledJobs:()=>uo});function Ns(e){return Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)}i(Ns,"T");function mh(e,t){return e.y===t.y&&e.m===t.m&&e.d===t.d&&e.h===t.h&&e.i===t.i&&e.s===t.s}i(mh,"D");function YA(e,t){let r=new Date(Date.parse(e));if(isNaN(r))throw new Error("Invalid ISO8601 passed to timezone parser.");let n=e.substring(9);return n.includes("Z")||n.includes("+")||n.includes("-")?dh(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):dh(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}i(YA,"A");function wy(e,t,r){return by(YA(e,t),r)}i(wy,"v");function by(e,t){let r=new Date(Ns(e)),n=Ps(r,e.tz),o=Ns(e),s=Ns(n),a=o-s,l=new Date(r.getTime()+a),u=Ps(l,e.tz);if(mh(u,e)){let p=new Date(l.getTime()-36e5),h=Ps(p,e.tz);return mh(h,e)?p:l}let c=new Date(l.getTime()+Ns(e)-Ns(u)),f=Ps(c,e.tz);if(mh(f,e))return c;if(t)throw new Error("Invalid date passed to fromTZ()");return l.getTime()>c.getTime()?l:c}i(by,"k");function Ps(e,t){let r,n;try{r=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1}),n=r.formatToParts(e)}catch(s){let a=s instanceof Error?s.message:String(s);throw new RangeError(`toTZ: Invalid timezone '${t}' or date. Please provide a valid IANA timezone (e.g., 'America/New_York', 'Europe/Stockholm'). Original error: ${a}`)}let o={year:0,month:0,day:0,hour:0,minute:0,second:0};for(let s of n)(s.type==="year"||s.type==="month"||s.type==="day"||s.type==="hour"||s.type==="minute"||s.type==="second")&&(o[s.type]=parseInt(s.value,10));if(isNaN(o.year)||isNaN(o.month)||isNaN(o.day)||isNaN(o.hour)||isNaN(o.minute)||isNaN(o.second))throw new Error(`toTZ: Failed to parse all date components from timezone '${t}'. This may indicate an invalid date or timezone configuration. Parsed components: ${JSON.stringify(o)}`);return o.hour===24&&(o.hour=0),{y:o.year,m:o.month,d:o.day,h:o.hour,i:o.minute,s:o.second,tz:t}}i(Ps,"g");function dh(e,t,r,n,o,s,a){return{y:e,m:t,d:r,h:n,i:o,s,tz:a}}i(dh,"b");var vy=[1,2,4,8,16],Ul=class{static{i(this,"C")}pattern;timezone;mode;alternativeWeekdays;sloppyRanges;second;minute;hour;day;month;dayOfWeek;year;lastDayOfMonth;lastWeekday;nearestWeekdays;starDOM;starDOW;starYear;useAndLogic;constructor(e,t,r){this.pattern=e,this.timezone=t,this.mode=r?.mode??"auto",this.alternativeWeekdays=r?.alternativeWeekdays??!1,this.sloppyRanges=r?.sloppyRanges??!1,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.year=Array(1e4).fill(0),this.lastDayOfMonth=!1,this.lastWeekday=!1,this.nearestWeekdays=Array(31).fill(0),this.starDOM=!1,this.starDOW=!1,this.starYear=!1,this.useAndLogic=!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 e=this.pattern.match(/\S+/g)||[""],t=e.length;if(e.length<5||e.length>7)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five, six, or seven space separated parts are required.");if(this.mode!=="auto"){let n;switch(this.mode){case"5-part":n=5;break;case"6-part":n=6;break;case"7-part":n=7;break;case"5-or-6-parts":n=[5,6];break;case"6-or-7-parts":n=[6,7];break;default:n=0}if(!(Array.isArray(n)?n.includes(t):t===n)){let o=Array.isArray(n)?n.join(" or "):n.toString();throw new TypeError(`CronPattern: mode '${this.mode}' requires exactly ${o} parts, but pattern '${this.pattern}' has ${t} parts.`)}}if(e.length===5&&e.unshift("0"),e.length===6&&e.push("*"),e[3].toUpperCase()==="LW"?(this.lastWeekday=!0,e[3]=""):e[3].toUpperCase().indexOf("L")>=0&&(e[3]=e[3].replace(/L/gi,""),this.lastDayOfMonth=!0),e[3]=="*"&&(this.starDOM=!0),e[6]=="*"&&(this.starYear=!0),e[4].length>=3&&(e[4]=this.replaceAlphaMonths(e[4])),e[5].length>=3&&(e[5]=this.alternativeWeekdays?this.replaceAlphaDaysQuartz(e[5]):this.replaceAlphaDays(e[5])),e[5].startsWith("+")&&(this.useAndLogic=!0,e[5]=e[5].substring(1),e[5]===""))throw new TypeError("CronPattern: Day-of-week field cannot be empty after '+' modifier.");switch(e[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0&&(e[0]=e[0].replace(/\?/g,"*"),e[1]=e[1].replace(/\?/g,"*"),e[2]=e[2].replace(/\?/g,"*"),e[3]=e[3].replace(/\?/g,"*"),e[4]=e[4].replace(/\?/g,"*"),e[5]=e[5].replace(/\?/g,"*"),e[6]&&(e[6]=e[6].replace(/\?/g,"*"))),this.mode){case"5-part":e[0]="0",e[6]="*";break;case"6-part":e[6]="*";break;case"5-or-6-parts":e[6]="*";break;case"6-or-7-parts":break;case"7-part":case"auto":break}this.throwAtIllegalCharacters(e),this.partToArray("second",e[0],0,1),this.partToArray("minute",e[1],0,1),this.partToArray("hour",e[2],0,1),this.partToArray("day",e[3],-1,1),this.partToArray("month",e[4],-1,1);let r=this.alternativeWeekdays?-1:0;this.partToArray("dayOfWeek",e[5],r,63),this.partToArray("year",e[6],0,1),!this.alternativeWeekdays&&this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(e,t,r,n){let o=this[e],s=e==="day"&&this.lastDayOfMonth,a=e==="day"&&this.lastWeekday;if(t===""&&!s&&!a)throw new TypeError("CronPattern: configuration entry "+e+" ("+t+") is empty, check for trailing spaces.");if(t==="*")return o.fill(n);let l=t.split(",");if(l.length>1)for(let u=0;u<l.length;u++)this.partToArray(e,l[u],r,n);else t.indexOf("-")!==-1&&t.indexOf("/")!==-1?this.handleRangeWithStepping(t,e,r,n):t.indexOf("-")!==-1?this.handleRange(t,e,r,n):t.indexOf("/")!==-1?this.handleStepping(t,e,r,n):t!==""&&this.handleNumber(t,e,r,n)}throwAtIllegalCharacters(e){for(let t=0;t<e.length;t++)if((t===3?/[^/*0-9,\-WwLl]+/:t===5?/[^/*0-9,\-#Ll]+/:/[^/*0-9,\-]+/).test(e[t]))throw new TypeError("CronPattern: configuration entry "+t+" ("+e[t]+") contains illegal characters.")}handleNumber(e,t,r,n){let o=this.extractNth(e,t),s=e.toUpperCase().includes("W");if(t!=="day"&&s)throw new TypeError("CronPattern: Nearest weekday modifier (W) only allowed in day-of-month.");s&&(t="nearestWeekdays");let a=parseInt(o[0],10)+r;if(isNaN(a))throw new TypeError("CronPattern: "+t+" is not a number: '"+e+"'");this.setPart(t,a,o[1]||n)}setPart(e,t,r){if(!Object.prototype.hasOwnProperty.call(this,e))throw new TypeError("CronPattern: Invalid part specified: "+e);if(e==="dayOfWeek"){if(t===7&&(t=0),t<0||t>6)throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+t);this.setNthWeekdayOfMonth(t,r);return}if(e==="second"||e==="minute"){if(t<0||t>=60)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="hour"){if(t<0||t>=24)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="day"||e==="nearestWeekdays"){if(t<0||t>=31)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="month"){if(t<0||t>=12)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="year"&&(t<1||t>=1e4))throw new RangeError("CronPattern: Invalid value for "+e+": "+t+" (supported range: 1-9999)");this[e][t]=r}validateNotNaN(e,t){if(isNaN(e))throw new TypeError(t)}validateRange(e,t,r,n,o){if(e>t)throw new TypeError("CronPattern: From value is larger than to value: '"+o+"'");if(r!==void 0){if(r===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(r>this[n].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[n].length+")")}}handleRangeWithStepping(e,t,r,n){if(e.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in ranges with stepping.");let o=this.extractNth(e,t),s=o[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(s===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+e+"'");let[,a,l,u]=s,c=parseInt(a,10)+r,f=parseInt(l,10)+r,p=parseInt(u,10);this.validateNotNaN(c,"CronPattern: Syntax error, illegal lower range (NaN)"),this.validateNotNaN(f,"CronPattern: Syntax error, illegal upper range (NaN)"),this.validateNotNaN(p,"CronPattern: Syntax error, illegal stepping: (NaN)"),this.validateRange(c,f,p,t,e);for(let h=c;h<=f;h+=p)this.setPart(t,h,o[1]||n)}extractNth(e,t){let r=e,n;if(r.includes("#")){if(t!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");n=r.split("#")[1],r=r.split("#")[0]}else if(r.toUpperCase().endsWith("L")){if(t!=="dayOfWeek")throw new Error("CronPattern: L modifier only allowed in day-of-week field (use L alone for day-of-month)");n="L",r=r.slice(0,-1)}return[r,n]}handleRange(e,t,r,n){if(e.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in a range.");let o=this.extractNth(e,t),s=o[0].split("-");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+e+"'");let a=parseInt(s[0],10)+r,l=parseInt(s[1],10)+r;this.validateNotNaN(a,"CronPattern: Syntax error, illegal lower range (NaN)"),this.validateNotNaN(l,"CronPattern: Syntax error, illegal upper range (NaN)"),this.validateRange(a,l,void 0,t,e);for(let u=a;u<=l;u++)this.setPart(t,u,o[1]||n)}handleStepping(e,t,r,n){if(e.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in parts with stepping.");let o=this.extractNth(e,t),s=o[0].split("/");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+e+"'");if(this.sloppyRanges)s[0]===""&&(s[0]="*");else{if(s[0]==="")throw new TypeError("CronPattern: Syntax error, stepping with missing prefix ('"+e+"') is not allowed. Use wildcard (*/step) or range (min-max/step) instead.");if(s[0]!=="*")throw new TypeError("CronPattern: Syntax error, stepping with numeric prefix ('"+e+"') is not allowed. Use wildcard (*/step) or range (min-max/step) instead.")}let a=0;s[0]!=="*"&&(a=parseInt(s[0],10)+r);let l=parseInt(s[1],10);this.validateNotNaN(l,"CronPattern: Syntax error, illegal stepping: (NaN)"),this.validateRange(0,this[t].length-1,l,t,e);for(let u=a;u<this[t].length;u+=l)this.setPart(t,u,o[1]||n)}replaceAlphaDays(e){return e.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")}replaceAlphaDaysQuartz(e){return e.replace(/sun/gi,"1").replace(/mon/gi,"2").replace(/tue/gi,"3").replace(/wed/gi,"4").replace(/thu/gi,"5").replace(/fri/gi,"6").replace(/sat/gi,"7")}replaceAlphaMonths(e){return e.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(e){let t=e.trim().toLowerCase();if(t==="@yearly"||t==="@annually")return"0 0 1 1 *";if(t==="@monthly")return"0 0 1 * *";if(t==="@weekly")return"0 0 * * 0";if(t==="@daily"||t==="@midnight")return"0 0 * * *";if(t==="@hourly")return"0 * * * *";if(t==="@reboot")throw new TypeError("CronPattern: @reboot is not supported in this environment. This is an event-based trigger that requires system startup detection.");return e}setNthWeekdayOfMonth(e,t){if(typeof t!="number"&&t.toUpperCase()==="L")this.dayOfWeek[e]=this.dayOfWeek[e]|32;else if(t===63)this.dayOfWeek[e]=63;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|vy[t-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${t}, Type: ${typeof t}`)}},gh=[31,28,31,30,31,30,31,31,30,31,30,31],Fe=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Je=class Sy{static{i(this,"s")}tz;ms;second;minute;hour;day;month;year;constructor(t,r){if(this.tz=r,t&&t instanceof Date)if(!isNaN(t))this.fromDate(t);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(t==null)this.fromDate(new Date);else if(t&&typeof t=="string")this.fromString(t);else if(t instanceof Sy)this.fromCronDate(t);else throw new TypeError("CronDate: Invalid type ("+typeof t+") passed to CronDate constructor")}getLastDayOfMonth(t,r){return r!==1?gh[r]:new Date(Date.UTC(t,r+1,0)).getUTCDate()}getLastWeekday(t,r){let n=this.getLastDayOfMonth(t,r),o=new Date(Date.UTC(t,r,n)).getUTCDay();return o===0?n-2:o===6?n-1:n}getNearestWeekday(t,r,n){let o=this.getLastDayOfMonth(t,r);if(n>o)return-1;let s=new Date(Date.UTC(t,r,n)).getUTCDay();return s===0?n===o?n-2:n+1:s===6?n===1?n+2:n-1:n}isNthWeekdayOfMonth(t,r,n,o){let s=new Date(Date.UTC(t,r,n)).getUTCDay(),a=0;for(let l=1;l<=n;l++)new Date(Date.UTC(t,r,l)).getUTCDay()===s&&a++;if(o&63&&vy[a-1]&o)return!0;if(o&32){let l=this.getLastDayOfMonth(t,r);for(let u=n+1;u<=l;u++)if(new Date(Date.UTC(t,r,u)).getUTCDay()===s)return!1;return!0}return!1}fromDate(t){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=t.getUTCMilliseconds(),this.second=t.getUTCSeconds(),this.minute=t.getUTCMinutes()+this.tz,this.hour=t.getUTCHours(),this.day=t.getUTCDate(),this.month=t.getUTCMonth(),this.year=t.getUTCFullYear(),this.apply();else try{let r=Ps(t,this.tz);this.ms=t.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}catch(r){let n=r instanceof Error?r.message:String(r);throw new TypeError(`CronDate: Failed to convert date to timezone '${this.tz}'. This may happen with invalid timezone names or dates. Original error: ${n}`)}else this.ms=t.getMilliseconds(),this.second=t.getSeconds(),this.minute=t.getMinutes(),this.hour=t.getHours(),this.day=t.getDate(),this.month=t.getMonth(),this.year=t.getFullYear()}fromCronDate(t){this.tz=t.tz,this.year=t.year,this.month=t.month,this.day=t.day,this.hour=t.hour,this.minute=t.minute,this.second=t.second,this.ms=t.ms}apply(){if(this.month>11||this.month<0||this.day>gh[this.month]||this.day<1||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let t=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=t.getUTCMilliseconds(),this.second=t.getUTCSeconds(),this.minute=t.getUTCMinutes(),this.hour=t.getUTCHours(),this.day=t.getUTCDate(),this.month=t.getUTCMonth(),this.year=t.getUTCFullYear(),!0}else return!1}fromString(t){if(typeof this.tz=="number"){let r=wy(t);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(wy(t,this.tz))}findNext(t,r,n,o){return this._findMatch(t,r,n,o,1)}_findMatch(t,r,n,o,s){let a=this[r],l;n.lastDayOfMonth&&(l=this.getLastDayOfMonth(this.year,this.month));let u=!n.starDOW&&r=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0,c=this[r]+o,f=s===1?p=>p<n[r].length:p=>p>=0;for(let p=c;f(p);p+=s){let h=n[r][p];if(r==="day"&&!h){for(let m=0;m<n.nearestWeekdays.length;m++)if(n.nearestWeekdays[m]){let d=this.getNearestWeekday(this.year,this.month,m-o);if(d===-1)continue;if(d===p-o){h=1;break}}}if(r==="day"&&n.lastWeekday){let m=this.getLastWeekday(this.year,this.month);p-o===m&&(h=1)}if(r==="day"&&n.lastDayOfMonth&&p-o==l&&(h=1),r==="day"&&!n.starDOW){let m=n.dayOfWeek[(u+(p-o-1))%7];if(m&&m&63)m=this.isNthWeekdayOfMonth(this.year,this.month,p-o,m)?1:0;else if(m)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${m}`);n.useAndLogic?h=h&&m:!t.domAndDow&&!n.starDOM?h=h||m:h=h&&m}if(h)return this[r]=p-o,a!==this[r]?2:1}return 3}recurse(t,r,n){if(n===0&&!t.starYear){if(this.year>=0&&this.year<t.year.length&&t.year[this.year]===0){let s=-1;for(let a=this.year+1;a<t.year.length&&a<1e4;a++)if(t.year[a]===1){s=a;break}if(s===-1)return null;this.year=s,this.month=0,this.day=1,this.hour=0,this.minute=0,this.second=0,this.ms=0}if(this.year>=1e4)return null}let o=this.findNext(r,Fe[n][0],t,Fe[n][2]);if(o>1){let s=n+1;for(;s<Fe.length;)this[Fe[s][0]]=-Fe[s][2],s++;if(o===3){if(this[Fe[n][1]]++,this[Fe[n][0]]=-Fe[n][2],this.apply(),n===0&&!t.starYear){for(;this.year>=0&&this.year<t.year.length&&t.year[this.year]===0&&this.year<1e4;)this.year++;if(this.year>=1e4||this.year>=t.year.length)return null}return this.recurse(t,r,0)}else if(this.apply())return this.recurse(t,r,n-1)}return n+=1,n>=Fe.length?this:(t.starYear?this.year>=3e3:this.year>=1e4)?null:this.recurse(t,r,n)}increment(t,r,n){return this.second+=r.interval!==void 0&&r.interval>1&&n?r.interval:1,this.ms=0,this.apply(),this.recurse(t,r,0)}decrement(t,r){return this.second-=r.interval!==void 0&&r.interval>1?r.interval:1,this.ms=0,this.apply(),this.recurseBackward(t,r,0,0)}recurseBackward(t,r,n,o=0){if(o>1e4)return null;if(n===0&&!t.starYear){if(this.year>=0&&this.year<t.year.length&&t.year[this.year]===0){let a=-1;for(let l=this.year-1;l>=0;l--)if(t.year[l]===1){a=l;break}if(a===-1)return null;this.year=a,this.month=11,this.day=31,this.hour=23,this.minute=59,this.second=59,this.ms=0}if(this.year<0)return null}let s=this.findPrevious(r,Fe[n][0],t,Fe[n][2]);if(s>1){let a=n+1;for(;a<Fe.length;){let l=Fe[a][0],u=Fe[a][2],c=this.getMaxPatternValue(l,t,u);this[l]=c,a++}if(s===3){if(this[Fe[n][1]]--,n===0){let f=this.getLastDayOfMonth(this.year,this.month);this.day>f&&(this.day=f)}if(n===1)if(this.day<=0)this.day=1;else{let f=this.year,p=this.month;for(;p<0;)p+=12,f--;for(;p>11;)p-=12,f++;let h=p!==1?gh[p]:new Date(Date.UTC(f,p+1,0)).getUTCDate();this.day>h&&(this.day=h)}this.apply();let l=Fe[n][0],u=Fe[n][2],c=this.getMaxPatternValue(l,t,u);if(l==="day"){let f=this.getLastDayOfMonth(this.year,this.month);this[l]=Math.min(c,f)}else this[l]=c;if(this.apply(),n===0){let f=Fe[1][2],p=this.getMaxPatternValue("day",t,f),h=this.getLastDayOfMonth(this.year,this.month),m=Math.min(p,h);m!==this.day&&(this.day=m,this.hour=this.getMaxPatternValue("hour",t,Fe[2][2]),this.minute=this.getMaxPatternValue("minute",t,Fe[3][2]),this.second=this.getMaxPatternValue("second",t,Fe[4][2]))}if(n===0&&!t.starYear){for(;this.year>=0&&this.year<t.year.length&&t.year[this.year]===0;)this.year--;if(this.year<0)return null}return this.recurseBackward(t,r,0,o+1)}else if(this.apply())return this.recurseBackward(t,r,n-1,o+1)}return n+=1,n>=Fe.length?this:this.year<0?null:this.recurseBackward(t,r,n,o+1)}getMaxPatternValue(t,r,n){if(t==="day"&&r.lastDayOfMonth)return this.getLastDayOfMonth(this.year,this.month);if(t==="day"&&!r.starDOW)return this.getLastDayOfMonth(this.year,this.month);for(let o=r[t].length-1;o>=0;o--)if(r[t][o])return o-n;return r[t].length-1-n}findPrevious(t,r,n,o){return this._findMatch(t,r,n,o,-1)}getDate(t){return t||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)):by(dh(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}match(t,r){if(!t.starYear&&(this.year<0||this.year>=t.year.length||t.year[this.year]===0))return!1;for(let n=0;n<Fe.length;n++){let o=Fe[n][0],s=Fe[n][2],a=this[o];if(a+s<0||a+s>=t[o].length)return!1;let l=t[o][a+s];if(o==="day"){if(!l){for(let u=0;u<t.nearestWeekdays.length;u++)if(t.nearestWeekdays[u]){let c=this.getNearestWeekday(this.year,this.month,u-s);if(c!==-1&&c===a){l=1;break}}}if(t.lastWeekday){let u=this.getLastWeekday(this.year,this.month);a===u&&(l=1)}if(t.lastDayOfMonth){let u=this.getLastDayOfMonth(this.year,this.month);a===u&&(l=1)}if(!t.starDOW){let u=new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay(),c=t.dayOfWeek[(u+(a-1))%7];c&&c&63&&(c=this.isNthWeekdayOfMonth(this.year,this.month,a,c)?1:0),t.useAndLogic?l=l&&c:!r.domAndDow&&!t.starDOM?l=l||c:l=l&&c}}if(!l)return!1}return!0}};function VA(e){if(e===void 0&&(e={}),delete e.name,e.legacyMode!==void 0&&e.domAndDow===void 0?e.domAndDow=!e.legacyMode:e.domAndDow===void 0&&(e.domAndDow=!1),e.legacyMode=!e.domAndDow,e.paused=e.paused===void 0?!1:e.paused,e.maxRuns=e.maxRuns===void 0?1/0:e.maxRuns,e.catch=e.catch===void 0?!1:e.catch,e.interval=e.interval===void 0?0:parseInt(e.interval.toString(),10),e.utcOffset=e.utcOffset===void 0?void 0:parseInt(e.utcOffset.toString(),10),e.dayOffset=e.dayOffset===void 0?0:parseInt(e.dayOffset.toString(),10),e.unref=e.unref===void 0?!1:e.unref,e.mode=e.mode===void 0?"auto":e.mode,e.alternativeWeekdays=e.alternativeWeekdays===void 0?!1:e.alternativeWeekdays,e.sloppyRanges=e.sloppyRanges===void 0?!1:e.sloppyRanges,!["auto","5-part","6-part","7-part","5-or-6-parts","6-or-7-parts"].includes(e.mode))throw new Error("CronOptions: mode must be one of 'auto', '5-part', '6-part', '7-part', '5-or-6-parts', or '6-or-7-parts'.");if(e.startAt&&(e.startAt=new Je(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new Je(e.stopAt,e.timezone)),e.interval!==null){if(isNaN(e.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(e.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(e.utcOffset!==void 0){if(isNaN(e.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(e.utcOffset<-870||e.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(e.utcOffset!==void 0&&e.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(e.unref!==!0&&e.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");if(e.dayOffset!==void 0&&e.dayOffset!==0&&isNaN(e.dayOffset))throw new Error("CronOptions: Invalid value passed for dayOffset, should be a number representing days to offset.");return e}i(VA,"R");function Fs(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}i(Fs,"p");function QA(e){return Fs(e)}i(QA,"_");function GA(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}i(GA,"x");var ky=30*1e3,uo=[],Ty=class{static{i(this,"E")}name;options;_states;fn;getTz(){return this.options.timezone||this.options.utcOffset}applyDayOffset(e){if(this.options.dayOffset!==void 0&&this.options.dayOffset!==0){let t=this.options.dayOffset*24*60*60*1e3;return new Date(e.getTime()+t)}return e}constructor(e,t,r){let n,o;if(Fs(t))o=t;else if(typeof t=="object")n=t;else if(t!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Fs(r))o=r;else if(typeof r=="object")n=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=n?.name,this.options=VA(n),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:n?n.maxRuns:void 0,paused:n?n.paused:!1,pattern:new Ul("* * * * *",void 0,{mode:"auto"})},e&&(e instanceof Date||typeof e=="string"&&e.indexOf(":")>0)?this._states.once=new Je(e,this.getTz()):this._states.pattern=new Ul(e,this.options.timezone,{mode:this.options.mode,alternativeWeekdays:this.options.alternativeWeekdays,sloppyRanges:this.options.sloppyRanges}),this.name){if(uo.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");uo.push(this)}return o!==void 0&&QA(o)&&(this.fn=o,this.schedule()),this}nextRun(e){let t=this._next(e);return t?this.applyDayOffset(t.getDate(!1)):null}nextRuns(e,t){this._states.maxRuns!==void 0&&e>this._states.maxRuns&&(e=this._states.maxRuns);let r=t||this._states.currentRun||void 0;return this._enumerateRuns(e,r,"next")}previousRuns(e,t){return this._enumerateRuns(e,t||void 0,"previous")}_enumerateRuns(e,t,r){let n=[],o=t?new Je(t,this.getTz()):null,s=r==="next"?this._next:this._previous;for(;e--;){let a=s.call(this,o);if(!a)break;let l=a.getDate(!1);n.push(this.applyDayOffset(l)),o=a}return n}match(e){if(this._states.once){let r=new Je(e,this.getTz());r.ms=0;let n=new Je(this._states.once,this.getTz());return n.ms=0,r.getTime()===n.getTime()}let t=new Je(e,this.getTz());return t.ms=0,t.match(this._states.pattern,this.options)}getPattern(){if(!this._states.once)return this._states.pattern?this._states.pattern.pattern:void 0}getOnce(){return this._states.once?this._states.once.getDate():null}isRunning(){let e=this.nextRun(this._states.currentRun),t=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return t&&r&&n&&e!==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(e){let t=this._next(e);return t?e instanceof Je||e instanceof Date?t.getTime()-e.getTime():t.getTime()-new Je(e).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=uo.indexOf(this);e>=0&&uo.splice(e,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(e){if(e&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");e&&(this.fn=e);let t=this.msToNext(),r=this.nextRun(this._states.currentRun);return t==null||isNaN(t)||r===null?this:(t>ky&&(t=ky),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&GA(this._states.currentTimeout),this)}async _trigger(e){this._states.blocking=!0,this._states.currentRun=new Je(void 0,this.getTz());try{if(this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(t){if(Fs(this.options.catch))try{this.options.catch(t,this)}catch{}}else this.fn!==void 0&&await this.fn(this,this.options.context)}finally{this._states.previousRun=new Je(e,this.getTz()),this._states.blocking=!1}}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(e){let t=new Date,r=!this._states.paused&&t.getTime()>=e.getTime(),n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):r&&n&&Fs(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(e){let t=!!(e||this._states.currentRun),r=!1;!e&&this.options.startAt&&this.options.interval&&([e,t]=this._calculatePreviousRun(e,t),r=!e),e=new Je(e,this.getTz()),this.options.startAt&&e&&e.getTime()<this.options.startAt.getTime()&&(e=this.options.startAt);let n=this._states.once||new Je(e,this.getTz());return!r&&n!==this._states.once&&(n=n.increment(this._states.pattern,this.options,t)),this._states.once&&this._states.once.getTime()<=e.getTime()||n===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&n.getTime()>=this.options.stopAt.getTime()?null:n}_previous(e){let t=new Je(e,this.getTz());this.options.stopAt&&t.getTime()>this.options.stopAt.getTime()&&(t=this.options.stopAt);let r=new Je(t,this.getTz());return this._states.once?this._states.once.getTime()<t.getTime()?this._states.once:null:(r=r.decrement(this._states.pattern,this.options),r===null||this.options.startAt&&r.getTime()<this.options.startAt.getTime()?null:r)}_calculatePreviousRun(e,t){let r=new Je(void 0,this.getTz()),n=e;if(this.options.startAt.getTime()<=r.getTime()){n=this.options.startAt;let o=n.getTime()+this.options.interval*1e3;for(;o<=r.getTime();)n=new Je(n,this.getTz()).increment(this._states.pattern,this.options,!0),o=n.getTime()+this.options.interval*1e3;t=!0}return n===null&&(n=void 0),[n,t]}};var Ys={};se(Ys,{add:()=>ln,addBusinessDays:()=>Xl,addDays:()=>Ke,addHours:()=>Zl,addISOWeekYears:()=>tu,addMilliseconds:()=>un,addMinutes:()=>ho,addMonths:()=>Er,addQuarters:()=>mo,addSeconds:()=>ru,addWeeks:()=>cn,addYears:()=>nu,areIntervalsOverlapping:()=>Oy,clamp:()=>Ay,closestIndexTo:()=>su,closestTo:()=>My,compareAsc:()=>ht,compareDesc:()=>_y,constructFrom:()=>P,constructNow:()=>me,daysToWeeks:()=>Ny,differenceInBusinessDays:()=>Py,differenceInCalendarDays:()=>nt,differenceInCalendarISOWeekYears:()=>lu,differenceInCalendarISOWeeks:()=>Fy,differenceInCalendarMonths:()=>Xn,differenceInCalendarQuarters:()=>go,differenceInCalendarWeeks:()=>Zn,differenceInCalendarYears:()=>fn,differenceInDays:()=>xo,differenceInHours:()=>ei,differenceInISOWeekYears:()=>Ry,differenceInMilliseconds:()=>yo,differenceInMinutes:()=>ti,differenceInMonths:()=>pn,differenceInQuarters:()=>By,differenceInSeconds:()=>Or,differenceInWeeks:()=>zy,differenceInYears:()=>fu,eachDayOfInterval:()=>pu,eachHourOfInterval:()=>$y,eachMinuteOfInterval:()=>Hy,eachMonthOfInterval:()=>Uy,eachQuarterOfInterval:()=>Wy,eachWeekOfInterval:()=>jy,eachWeekendOfInterval:()=>vo,eachWeekendOfMonth:()=>qy,eachWeekendOfYear:()=>Yy,eachYearOfInterval:()=>Vy,endOfDay:()=>wo,endOfDecade:()=>Qy,endOfHour:()=>Gy,endOfISOWeek:()=>Jy,endOfISOWeekYear:()=>Ky,endOfMinute:()=>Xy,endOfMonth:()=>bo,endOfQuarter:()=>Zy,endOfSecond:()=>ew,endOfToday:()=>tw,endOfTomorrow:()=>rw,endOfWeek:()=>mu,endOfYear:()=>hu,endOfYesterday:()=>nw,format:()=>Hs,formatDate:()=>Hs,formatDistance:()=>wu,formatDistanceStrict:()=>bu,formatDistanceToNow:()=>mw,formatDistanceToNowStrict:()=>dw,formatDuration:()=>gw,formatISO:()=>xw,formatISO9075:()=>yw,formatISODuration:()=>ww,formatRFC3339:()=>bw,formatRFC7231:()=>vw,formatRelative:()=>kw,formatters:()=>zs,fromUnixTime:()=>Sw,getDate:()=>vu,getDay:()=>gn,getDayOfYear:()=>gu,getDaysInMonth:()=>ku,getDaysInYear:()=>Tw,getDecade:()=>Ew,getDefaultOptions:()=>Tu,getHours:()=>Dw,getISODay:()=>Eu,getISOWeek:()=>Eo,getISOWeekYear:()=>kt,getISOWeeksInYear:()=>Cw,getMilliseconds:()=>Iw,getMinutes:()=>Ow,getMonth:()=>Aw,getOverlappingDaysInIntervals:()=>Mw,getQuarter:()=>Bs,getSeconds:()=>_w,getTime:()=>Nw,getUnixTime:()=>Pw,getWeek:()=>Do,getWeekOfMonth:()=>Fw,getWeekYear:()=>mn,getWeeksInMonth:()=>Lw,getYear:()=>Rw,hoursToMilliseconds:()=>Bw,hoursToMinutes:()=>zw,hoursToSeconds:()=>$w,interval:()=>Hw,intervalToDuration:()=>Uw,intlFormat:()=>Ww,intlFormatDistance:()=>jw,isAfter:()=>qw,isBefore:()=>Yw,isDate:()=>au,isEqual:()=>Vw,isExists:()=>Qw,isFirstDayOfMonth:()=>Gw,isFriday:()=>Jw,isFuture:()=>Kw,isLastDayOfMonth:()=>cu,isLeapYear:()=>Su,isMatch:()=>Xw,isMonday:()=>Zw,isPast:()=>eb,isSameDay:()=>Ir,isSameHour:()=>gc,isSameISOWeek:()=>xc,isSameISOWeekYear:()=>tb,isSameMinute:()=>yc,isSameMonth:()=>wc,isSameQuarter:()=>bc,isSameSecond:()=>vc,isSameWeek:()=>Ao,isSameYear:()=>kc,isSaturday:()=>Jl,isSunday:()=>Kl,isThisHour:()=>rb,isThisISOWeek:()=>nb,isThisMinute:()=>ib,isThisMonth:()=>ob,isThisQuarter:()=>sb,isThisSecond:()=>ab,isThisWeek:()=>lb,isThisYear:()=>ub,isThursday:()=>cb,isToday:()=>fb,isTomorrow:()=>pb,isTuesday:()=>hb,isValid:()=>ut,isWednesday:()=>mb,isWeekend:()=>Dr,isWithinInterval:()=>db,isYesterday:()=>gb,lastDayOfDecade:()=>xb,lastDayOfISOWeek:()=>yb,lastDayOfISOWeekYear:()=>wb,lastDayOfMonth:()=>Du,lastDayOfQuarter:()=>bb,lastDayOfWeek:()=>Sc,lastDayOfYear:()=>vb,lightFormat:()=>kb,lightFormatters:()=>Ht,longFormatters:()=>dn,max:()=>iu,milliseconds:()=>Sb,millisecondsToHours:()=>Tb,millisecondsToMinutes:()=>Eb,millisecondsToSeconds:()=>Db,min:()=>ou,minutesToHours:()=>Cb,minutesToMilliseconds:()=>Ib,minutesToSeconds:()=>Ob,monthsToQuarters:()=>Ab,monthsToYears:()=>Mb,nextDay:()=>dt,nextFriday:()=>_b,nextMonday:()=>Nb,nextSaturday:()=>Pb,nextSunday:()=>Fb,nextThursday:()=>Lb,nextTuesday:()=>Rb,nextWednesday:()=>Bb,parse:()=>dc,parseISO:()=>$b,parseJSON:()=>Hb,parsers:()=>mc,previousDay:()=>gt,previousFriday:()=>Ub,previousMonday:()=>Wb,previousSaturday:()=>jb,previousSunday:()=>qb,previousThursday:()=>Yb,previousTuesday:()=>Vb,previousWednesday:()=>Qb,quartersToMonths:()=>Gb,quartersToYears:()=>Jb,roundToNearestHours:()=>Kb,roundToNearestMinutes:()=>Xb,secondsToHours:()=>Zb,secondsToMilliseconds:()=>e0,secondsToMinutes:()=>t0,set:()=>r0,setDate:()=>n0,setDay:()=>xn,setDayOfYear:()=>i0,setDefaultOptions:()=>o0,setHours:()=>s0,setISODay:()=>Xu,setISOWeek:()=>qu,setISOWeekYear:()=>eu,setMilliseconds:()=>a0,setMinutes:()=>l0,setMonth:()=>Mo,setQuarter:()=>u0,setSeconds:()=>c0,setWeek:()=>Wu,setWeekYear:()=>f0,setYear:()=>p0,startOfDay:()=>Cr,startOfDecade:()=>h0,startOfHour:()=>Us,startOfISOWeek:()=>Ye,startOfISOWeekYear:()=>$t,startOfMinute:()=>Ws,startOfMonth:()=>hn,startOfQuarter:()=>Ar,startOfSecond:()=>js,startOfToday:()=>m0,startOfTomorrow:()=>d0,startOfWeek:()=>Me,startOfWeekYear:()=>ri,startOfYear:()=>ko,startOfYesterday:()=>g0,sub:()=>x0,subBusinessDays:()=>y0,subDays:()=>yn,subHours:()=>w0,subISOWeekYears:()=>uu,subMilliseconds:()=>b0,subMinutes:()=>v0,subMonths:()=>Ec,subQuarters:()=>k0,subSeconds:()=>S0,subWeeks:()=>T0,subYears:()=>E0,toDate:()=>y,transpose:()=>Cu,weeksToDays:()=>D0,yearsToDays:()=>C0,yearsToMonths:()=>I0,yearsToQuarters:()=>O0});var jl=7,Rs=365.2425,JA=Math.pow(10,8)*24*60*60*1e3,xK=-JA,Tr=6048e5,ql=864e5,pt=6e4,zt=36e5,co=1e3,xh=525600,an=43200,fo=1440,Yl=60,Vl=3,Ql=12,Gl=4,Kn=3600,po=60,Wl=Kn*24,Ey=Wl*7,yh=Wl*365.2425,wh=yh/12,Dy=wh*3,bh=Symbol.for("constructDateFrom");function P(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&bh in e?e[bh](t):e instanceof Date?new e.constructor(t):new Date(t)}i(P,"constructFrom");var bK=P;function y(e,t){return P(t||e,e)}i(y,"toDate");var TK=y;function Ke(e,t,r){let n=y(e,r?.in);return isNaN(t)?P(r?.in||e,NaN):(t&&n.setDate(n.getDate()+t),n)}i(Ke,"addDays");var OK=Ke;function Er(e,t,r){let n=y(e,r?.in);if(isNaN(t))return P(r?.in||e,NaN);if(!t)return n;let o=n.getDate(),s=P(r?.in||e,n.getTime());s.setMonth(n.getMonth()+t+1,0);let a=s.getDate();return o>=a?s:(n.setFullYear(s.getFullYear(),s.getMonth(),o),n)}i(Er,"addMonths");var PK=Er;function ln(e,t,r){let{years:n=0,months:o=0,weeks:s=0,days:a=0,hours:l=0,minutes:u=0,seconds:c=0}=t,f=y(e,r?.in),p=o||n?Er(f,o+n*12):f,h=a||s?Ke(p,a+s*7):p,m=u+l*60,g=(c+m*60)*1e3;return P(r?.in||e,+h+g)}i(ln,"add");var HK=ln;function Jl(e,t){return y(e,t?.in).getDay()===6}i(Jl,"isSaturday");var qK=Jl;function Kl(e,t){return y(e,t?.in).getDay()===0}i(Kl,"isSunday");var GK=Kl;function Dr(e,t){let r=y(e,t?.in).getDay();return r===0||r===6}i(Dr,"isWeekend");var ZK=Dr;function Xl(e,t,r){let n=y(e,r?.in),o=Dr(n,r);if(isNaN(t))return P(r?.in,NaN);let s=n.getHours(),a=t<0?-1:1,l=Math.trunc(t/5);n.setDate(n.getDate()+l*7);let u=Math.abs(t%5);for(;u>0;)n.setDate(n.getDate()+a),Dr(n,r)||(u-=1);return o&&Dr(n,r)&&t!==0&&(Jl(n,r)&&n.setDate(n.getDate()+(a<0?2:-1)),Kl(n,r)&&n.setDate(n.getDate()+(a<0?1:-2))),n.setHours(s),n}i(Xl,"addBusinessDays");var aX=Xl;function un(e,t,r){return P(r?.in||e,+y(e)+t)}i(un,"addMilliseconds");var pX=un;function Zl(e,t,r){return un(e,t*zt,r)}i(Zl,"addHours");var xX=Zl;var Cy={};function Ee(){return Cy}i(Ee,"getDefaultOptions");function Iy(e){Cy=e}i(Iy,"setDefaultOptions");function Me(e,t){let r=Ee(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=y(e,t?.in),s=o.getDay(),a=(s<n?7:0)+s-n;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}i(Me,"startOfWeek");var TX=Me;function Ye(e,t){return Me(e,{...t,weekStartsOn:1})}i(Ye,"startOfISOWeek");var IX=Ye;function kt(e,t){let r=y(e,t?.in),n=r.getFullYear(),o=P(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let s=Ye(o),a=P(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);let l=Ye(a);return r.getTime()>=s.getTime()?n+1:r.getTime()>=l.getTime()?n:n-1}i(kt,"getISOWeekYear");var PX=kt;function Be(e){let t=y(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}i(Be,"getTimezoneOffsetInMilliseconds");function ee(e,...t){let r=P.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}i(ee,"normalizeDates");function Cr(e,t){let r=y(e,t?.in);return r.setHours(0,0,0,0),r}i(Cr,"startOfDay");var jX=Cr;function nt(e,t,r){let[n,o]=ee(r?.in,e,t),s=Cr(n),a=Cr(o),l=+s-Be(s),u=+a-Be(a);return Math.round((l-u)/ql)}i(nt,"differenceInCalendarDays");var KX=nt;function $t(e,t){let r=kt(e,t),n=P(t?.in||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ye(n)}i($t,"startOfISOWeekYear");var nZ=$t;function eu(e,t,r){let n=y(e,r?.in),o=nt(n,$t(n,r)),s=P(r?.in||e,0);return s.setFullYear(t,0,4),s.setHours(0,0,0,0),n=$t(s),n.setDate(n.getDate()+o),n}i(eu,"setISOWeekYear");var cZ=eu;function tu(e,t,r){return eu(e,kt(e,r)+t,r)}i(tu,"addISOWeekYears");var dZ=tu;function ho(e,t,r){let n=y(e,r?.in);return n.setTime(n.getTime()+t*pt),n}i(ho,"addMinutes");var bZ=ho;function mo(e,t,r){return Er(e,t*3,r)}i(mo,"addQuarters");var TZ=mo;function ru(e,t,r){return un(e,t*1e3,r)}i(ru,"addSeconds");var IZ=ru;function cn(e,t,r){return Ke(e,t*7,r)}i(cn,"addWeeks");var _Z=cn;function nu(e,t,r){return Er(e,t*12,r)}i(nu,"addYears");var LZ=nu;function Oy(e,t,r){let[n,o]=[+y(e.start,r?.in),+y(e.end,r?.in)].sort((l,u)=>l-u),[s,a]=[+y(t.start,r?.in),+y(t.end,r?.in)].sort((l,u)=>l-u);return r?.inclusive?n<=a&&s<=o:n<a&&s<o}i(Oy,"areIntervalsOverlapping");var $Z=Oy;function iu(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=P.bind(null,o));let s=y(o,n);(!r||r<s||isNaN(+s))&&(r=s)}),P(n,r||NaN)}i(iu,"max");var qZ=iu;function ou(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=P.bind(null,o));let s=y(o,n);(!r||r>s||isNaN(+s))&&(r=s)}),P(n,r||NaN)}i(ou,"min");var JZ=ou;function Ay(e,t,r){let[n,o,s]=ee(r?.in,e,t.start,t.end);return ou([iu([n,o],r),s],r)}i(Ay,"clamp");var ree=Ay;function su(e,t){let r=+y(e);if(isNaN(r))return NaN;let n,o;return t.forEach((s,a)=>{let l=y(s);if(isNaN(+l)){n=NaN,o=NaN;return}let u=Math.abs(r-+l);(n==null||u<o)&&(n=a,o=u)}),n}i(su,"closestIndexTo");var see=su;function My(e,t,r){let[n,...o]=ee(r?.in,e,...t),s=su(n,o);if(typeof s=="number"&&isNaN(s))return P(n,NaN);if(s!==void 0)return o[s]}i(My,"closestTo");var pee=My;function ht(e,t){let r=+y(e)-+y(t);return r<0?-1:r>0?1:r}i(ht,"compareAsc");var gee=ht;function _y(e,t){let r=+y(e)-+y(t);return r>0?-1:r<0?1:r}i(_y,"compareDesc");var bee=_y;function me(e){return P(e,Date.now())}i(me,"constructNow");var Tee=me;function Ny(e){let t=Math.trunc(e/7);return t===0?0:t}i(Ny,"daysToWeeks");var Iee=Ny;function Ir(e,t,r){let[n,o]=ee(r?.in,e,t);return+Cr(n)==+Cr(o)}i(Ir,"isSameDay");var Nee=Ir;function au(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}i(au,"isDate");var Lee=au;function ut(e){return!(!au(e)&&typeof e!="number"||isNaN(+y(e)))}i(ut,"isValid");var Hee=ut;function Py(e,t,r){let[n,o]=ee(r?.in,e,t);if(!ut(n)||!ut(o))return NaN;let s=nt(n,o),a=s<0?-1:1,l=Math.trunc(s/7),u=l*5,c=Ke(o,l*7);for(;!Ir(n,c);)u+=Dr(c,r)?0:a,c=Ke(c,a);return u===0?0:u}i(Py,"differenceInBusinessDays");var Jee=Py;function lu(e,t,r){let[n,o]=ee(r?.in,e,t);return kt(n,r)-kt(o,r)}i(lu,"differenceInCalendarISOWeekYears");var tte=lu;function Fy(e,t,r){let[n,o]=ee(r?.in,e,t),s=Ye(n),a=Ye(o),l=+s-Be(s),u=+a-Be(a);return Math.round((l-u)/Tr)}i(Fy,"differenceInCalendarISOWeeks");var lte=Fy;function Xn(e,t,r){let[n,o]=ee(r?.in,e,t),s=n.getFullYear()-o.getFullYear(),a=n.getMonth()-o.getMonth();return s*12+a}i(Xn,"differenceInCalendarMonths");var pte=Xn;function Bs(e,t){let r=y(e,t?.in);return Math.trunc(r.getMonth()/3)+1}i(Bs,"getQuarter");var gte=Bs;function go(e,t,r){let[n,o]=ee(r?.in,e,t),s=n.getFullYear()-o.getFullYear(),a=Bs(n)-Bs(o);return s*4+a}i(go,"differenceInCalendarQuarters");var vte=go;function Zn(e,t,r){let[n,o]=ee(r?.in,e,t),s=Me(n,r),a=Me(o,r),l=+s-Be(s),u=+a-Be(a);return Math.round((l-u)/Tr)}i(Zn,"differenceInCalendarWeeks");var Ite=Zn;function fn(e,t,r){let[n,o]=ee(r?.in,e,t);return n.getFullYear()-o.getFullYear()}i(fn,"differenceInCalendarYears");var _te=fn;function xo(e,t,r){let[n,o]=ee(r?.in,e,t),s=Ly(n,o),a=Math.abs(nt(n,o));n.setDate(n.getDate()-s*a);let l=+(Ly(n,o)===-s),u=s*(a-l);return u===0?0:u}i(xo,"differenceInDays");function Ly(e,t){let r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}i(Ly,"compareLocalAsc");var Rte=xo;function mt(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}i(mt,"getRoundingMethod");function ei(e,t,r){let[n,o]=ee(r?.in,e,t),s=(+n-+o)/zt;return mt(r?.roundingMethod)(s)}i(ei,"differenceInHours");var qte=ei;function uu(e,t,r){return tu(e,-t,r)}i(uu,"subISOWeekYears");var Gte=uu;function Ry(e,t,r){let[n,o]=ee(r?.in,e,t),s=ht(n,o),a=Math.abs(lu(n,o,r)),l=uu(n,s*a,r),u=+(ht(l,o)===-s),c=s*(a-u);return c===0?0:c}i(Ry,"differenceInISOWeekYears");var rre=Ry;function yo(e,t){return+y(e)-+y(t)}i(yo,"differenceInMilliseconds");var sre=yo;function ti(e,t,r){let n=yo(e,t)/pt;return mt(r?.roundingMethod)(n)}i(ti,"differenceInMinutes");var pre=ti;function wo(e,t){let r=y(e,t?.in);return r.setHours(23,59,59,999),r}i(wo,"endOfDay");var gre=wo;function bo(e,t){let r=y(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}i(bo,"endOfMonth");var bre=bo;function cu(e,t){let r=y(e,t?.in);return+wo(r,t)==+bo(r,t)}i(cu,"isLastDayOfMonth");var Dre=cu;function pn(e,t,r){let[n,o,s]=ee(r?.in,e,e,t),a=ht(o,s),l=Math.abs(Xn(o,s));if(l<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-a*l);let u=ht(o,s)===-a;cu(n)&&l===1&&ht(n,s)===1&&(u=!1);let c=a*(l-+u);return c===0?0:c}i(pn,"differenceInMonths");var Nre=pn;function By(e,t,r){let n=pn(e,t,r)/3;return mt(r?.roundingMethod)(n)}i(By,"differenceInQuarters");var Bre=By;function Or(e,t,r){let n=yo(e,t)/1e3;return mt(r?.roundingMethod)(n)}i(Or,"differenceInSeconds");var Wre=Or;function zy(e,t,r){let n=xo(e,t,r)/7;return mt(r?.roundingMethod)(n)}i(zy,"differenceInWeeks");var Qre=zy;function fu(e,t,r){let[n,o]=ee(r?.in,e,t),s=ht(n,o),a=Math.abs(fn(n,o));n.setFullYear(1584),o.setFullYear(1584);let l=ht(n,o)===-s,u=s*(a-+l);return u===0?0:u}i(fu,"differenceInYears");var ene=fu;function it(e,t){let[r,n]=ee(e,t.start,t.end);return{start:r,end:n}}i(it,"normalizeInterval");function pu(e,t){let{start:r,end:n}=it(t?.in,e),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(P(r,a)),a.setDate(a.getDate()+l),a.setHours(0,0,0,0);return o?u.reverse():u}i(pu,"eachDayOfInterval");var lne=pu;function $y(e,t){let{start:r,end:n}=it(t?.in,e),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setMinutes(0,0,0);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(P(r,a)),a.setHours(a.getHours()+l);return o?u.reverse():u}i($y,"eachHourOfInterval");var hne=$y;function Hy(e,t){let{start:r,end:n}=it(t?.in,e);r.setSeconds(0,0);let o=+r>+n,s=o?+r:+n,a=o?n:r,l=t?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(P(r,a)),a=ho(a,l);return o?u.reverse():u}i(Hy,"eachMinuteOfInterval");var wne=Hy;function Uy(e,t){let{start:r,end:n}=it(t?.in,e),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0),a.setDate(1);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(P(r,a)),a.setMonth(a.getMonth()+l);return o?u.reverse():u}i(Uy,"eachMonthOfInterval");var Tne=Uy;function Ar(e,t){let r=y(e,t?.in),n=r.getMonth(),o=n-n%3;return r.setMonth(o,1),r.setHours(0,0,0,0),r}i(Ar,"startOfQuarter");var Ine=Ar;function Wy(e,t){let{start:r,end:n}=it(t?.in,e),o=+r>+n,s=o?+Ar(r):+Ar(n),a=o?Ar(n):Ar(r),l=t?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(P(r,a)),a=mo(a,l);return o?u.reverse():u}i(Wy,"eachQuarterOfInterval");var Fne=Wy;function jy(e,t){let{start:r,end:n}=it(t?.in,e),o=+r>+n,s=o?Me(n,t):Me(r,t),a=o?Me(r,t):Me(n,t);s.setHours(15),a.setHours(15);let l=+a.getTime(),u=s,c=t?.step??1;if(!c)return[];c<0&&(c=-c,o=!o);let f=[];for(;+u<=l;)u.setHours(0),f.push(P(r,u)),u=cn(u,c),u.setHours(15);return o?f.reverse():f}i(jy,"eachWeekOfInterval");var Une=jy;function vo(e,t){let{start:r,end:n}=it(t?.in,e),o=pu({start:r,end:n},t),s=[],a=0;for(;a<o.length;){let l=o[a++];Dr(l)&&s.push(P(r,l))}return s}i(vo,"eachWeekendOfInterval");var Gne=vo;function hn(e,t){let r=y(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}i(hn,"startOfMonth");var Zne=hn;function qy(e,t){let r=hn(e,t),n=bo(e,t);return vo({start:r,end:n},t)}i(qy,"eachWeekendOfMonth");var oie=qy;function hu(e,t){let r=y(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}i(hu,"endOfYear");var uie=hu;function ko(e,t){let r=y(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}i(ko,"startOfYear");var hie=ko;function Yy(e,t){let r=ko(e,t),n=hu(e,t);return vo({start:r,end:n},t)}i(Yy,"eachWeekendOfYear");var wie=Yy;function Vy(e,t){let{start:r,end:n}=it(t?.in,e),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0),a.setMonth(0,1);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(P(r,a)),a.setFullYear(a.getFullYear()+l);return o?u.reverse():u}i(Vy,"eachYearOfInterval");var Tie=Vy;function Qy(e,t){let r=y(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o,11,31),r.setHours(23,59,59,999),r}i(Qy,"endOfDecade");var Iie=Qy;function Gy(e,t){let r=y(e,t?.in);return r.setMinutes(59,59,999),r}i(Gy,"endOfHour");var _ie=Gy;function mu(e,t){let r=Ee(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=y(e,t?.in),s=o.getDay(),a=(s<n?-7:0)+6-(s-n);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}i(mu,"endOfWeek");var Rie=mu;function Jy(e,t){return mu(e,{...t,weekStartsOn:1})}i(Jy,"endOfISOWeek");var Hie=Jy;function Ky(e,t){let r=kt(e,t),n=P(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=Ye(n,t);return o.setMilliseconds(o.getMilliseconds()-1),o}i(Ky,"endOfISOWeekYear");var Vie=Ky;function Xy(e,t){let r=y(e,t?.in);return r.setSeconds(59,999),r}i(Xy,"endOfMinute");var Kie=Xy;function Zy(e,t){let r=y(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(23,59,59,999),r}i(Zy,"endOfQuarter");var toe=Zy;function ew(e,t){let r=y(e,t?.in);return r.setMilliseconds(999),r}i(ew,"endOfSecond");var ooe=ew;function tw(e){return wo(Date.now(),e)}i(tw,"endOfToday");var uoe=tw;function rw(e){let t=me(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),s=me(e?.in);return s.setFullYear(r,n,o+1),s.setHours(23,59,59,999),e?.in?e.in(s):s}i(rw,"endOfTomorrow");var hoe=rw;function nw(e){let t=me(e?.in),r=P(e?.in,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()-1),r.setHours(23,59,59,999),r}i(nw,"endOfYesterday");var yoe=nw;var KA={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"}},iw=i((e,t,r)=>{let n,o=KA[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},"formatDistance");function du(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}i(du,"buildFormatLongFn");var XA={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ZA={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},eM={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ow={date:du({formats:XA,defaultWidth:"full"}),time:du({formats:ZA,defaultWidth:"full"}),dateTime:du({formats:eM,defaultWidth:"full"})};var tM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sw=i((e,t,r,n)=>tM[e],"formatRelative");function So(e){return(t,r)=>{let n=r?.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let a=e.defaultFormattingWidth||e.defaultWidth,l=r?.width?String(r.width):a;o=e.formattingValues[l]||e.formattingValues[a]}else{let a=e.defaultWidth,l=r?.width?String(r.width):e.defaultWidth;o=e.values[l]||e.values[a]}let s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}i(So,"buildLocalizeFn");var rM={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nM={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},iM={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"]},oM={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"]},sM={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"}},aM={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},lM=i((e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},"ordinalNumber"),aw={ordinalNumber:lM,era:So({values:rM,defaultWidth:"wide"}),quarter:So({values:nM,defaultWidth:"wide",argumentCallback:i(e=>e-1,"argumentCallback")}),month:So({values:iM,defaultWidth:"wide"}),day:So({values:oM,defaultWidth:"wide"}),dayPeriod:So({values:sM,defaultWidth:"wide",formattingValues:aM,defaultFormattingWidth:"wide"})};function To(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;let a=s[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?cM(l,p=>p.test(a)):uM(l,p=>p.test(a)),c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;let f=t.slice(a.length);return{value:c,rest:f}}}i(To,"buildMatchFn");function uM(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}i(uM,"findKey");function cM(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}i(cM,"findIndex");function lw(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=r.valueCallback?r.valueCallback(a):a;let l=t.slice(o.length);return{value:a,rest:l}}}i(lw,"buildMatchPatternFn");var fM=/^(\d+)(th|st|nd|rd)?/i,pM=/\d+/i,hM={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},mM={any:[/^b/i,/^(a|c)/i]},dM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gM={any:[/1/i,/2/i,/3/i,/4/i]},xM={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},yM={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]},wM={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},bM={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]},vM={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},kM={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}},uw={ordinalNumber:lw({matchPattern:fM,parsePattern:pM,valueCallback:i(e=>parseInt(e,10),"valueCallback")}),era:To({matchPatterns:hM,defaultMatchWidth:"wide",parsePatterns:mM,defaultParseWidth:"any"}),quarter:To({matchPatterns:dM,defaultMatchWidth:"wide",parsePatterns:gM,defaultParseWidth:"any",valueCallback:i(e=>e+1,"valueCallback")}),month:To({matchPatterns:xM,defaultMatchWidth:"wide",parsePatterns:yM,defaultParseWidth:"any"}),day:To({matchPatterns:wM,defaultMatchWidth:"wide",parsePatterns:bM,defaultParseWidth:"any"}),dayPeriod:To({matchPatterns:vM,defaultMatchWidth:"any",parsePatterns:kM,defaultParseWidth:"any"})};var _t={code:"en-US",formatDistance:iw,formatLong:ow,formatRelative:sw,localize:aw,match:uw,options:{weekStartsOn:0,firstWeekContainsDate:1}},Voe=_t;function gu(e,t){let r=y(e,t?.in);return nt(r,ko(r))+1}i(gu,"getDayOfYear");var ese=gu;function Eo(e,t){let r=y(e,t?.in),n=+Ye(r)-+$t(r);return Math.round(n/Tr)+1}i(Eo,"getISOWeek");var ase=Eo;function mn(e,t){let r=y(e,t?.in),n=r.getFullYear(),o=Ee(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=P(t?.in||e,0);a.setFullYear(n+1,0,s),a.setHours(0,0,0,0);let l=Me(a,t),u=P(t?.in||e,0);u.setFullYear(n,0,s),u.setHours(0,0,0,0);let c=Me(u,t);return+r>=+l?n+1:+r>=+c?n:n-1}i(mn,"getWeekYear");var mse=mn;function ri(e,t){let r=Ee(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=mn(e,t),s=P(t?.in||e,0);return s.setFullYear(o,0,n),s.setHours(0,0,0,0),Me(s,t)}i(ri,"startOfWeekYear");var vse=ri;function Do(e,t){let r=y(e,t?.in),n=+Me(r,t)-+ri(r,t);return Math.round(n/Tr)+1}i(Do,"getWeek");var Ise=Do;function G(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}i(G,"addLeadingZeros");var Ht={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return G(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):G(r+1,2)},d(e,t){return G(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(e,t){return G(e.getHours()%12||12,t.length)},H(e,t){return G(e.getHours(),t.length)},m(e,t){return G(e.getMinutes(),t.length)},s(e,t){return G(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return G(o,t.length)}};var Co={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zs={G:i(function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},"G"),y:i(function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return Ht.y(e,t)},"y"),Y:i(function(e,t,r,n){let o=mn(e,n),s=o>0?o:1-o;if(t==="YY"){let a=s%100;return G(a,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):G(s,t.length)},"Y"),R:i(function(e,t){let r=kt(e);return G(r,t.length)},"R"),u:i(function(e,t){let r=e.getFullYear();return G(r,t.length)},"u"),Q:i(function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return G(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},"Q"),q:i(function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return G(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},"q"),M:i(function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return Ht.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},"M"),L:i(function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return G(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},"L"),w:i(function(e,t,r,n){let o=Do(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):G(o,t.length)},"w"),I:i(function(e,t,r){let n=Eo(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):G(n,t.length)},"I"),d:i(function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Ht.d(e,t)},"d"),D:i(function(e,t,r){let n=gu(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):G(n,t.length)},"D"),E:i(function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},"E"),e:i(function(e,t,r,n){let o=e.getDay(),s=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return G(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},"e"),c:i(function(e,t,r,n){let o=e.getDay(),s=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return G(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},"c"),i:i(function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return G(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},"i"),a:i(function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},"a"),b:i(function(e,t,r){let n=e.getHours(),o;switch(n===12?o=Co.noon:n===0?o=Co.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},"b"),B:i(function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=Co.evening:n>=12?o=Co.afternoon:n>=4?o=Co.morning:o=Co.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},"B"),h:i(function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Ht.h(e,t)},"h"),H:i(function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Ht.H(e,t)},"H"),K:i(function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):G(n,t.length)},"K"),k:i(function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):G(n,t.length)},"k"),m:i(function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ht.m(e,t)},"m"),s:i(function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Ht.s(e,t)},"s"),S:i(function(e,t){return Ht.S(e,t)},"S"),X:i(function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return fw(n);case"XXXX":case"XX":return ni(n);default:return ni(n,":")}},"X"),x:i(function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return fw(n);case"xxxx":case"xx":return ni(n);default:return ni(n,":")}},"x"),O:i(function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+cw(n,":");default:return"GMT"+ni(n,":")}},"O"),z:i(function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+cw(n,":");default:return"GMT"+ni(n,":")}},"z"),t:i(function(e,t,r){let n=Math.trunc(+e/1e3);return G(n,t.length)},"t"),T:i(function(e,t,r){return G(+e,t.length)},"T")};function cw(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),s=n%60;return s===0?r+String(o):r+String(o)+t+G(s,2)}i(cw,"formatTimezoneShort");function fw(e,t){return e%60===0?(e>0?"-":"+")+G(Math.abs(e)/60,2):ni(e,t)}i(fw,"formatTimezoneWithOptionalMinutes");function ni(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=G(Math.trunc(n/60),2),s=G(n%60,2);return r+o+t+s}i(ni,"formatTimezone");var pw=i((e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},"dateLongFormatter"),hw=i((e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},"timeLongFormatter"),SM=i((e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return pw(e,t);let s;switch(n){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",pw(n,t)).replace("{{time}}",hw(o,t))},"dateTimeLongFormatter"),dn={p:hw,P:SM};var TM=/^D+$/,EM=/^Y+$/,DM=["D","DD","YY","YYYY"];function xu(e){return TM.test(e)}i(xu,"isProtectedDayOfYearToken");function yu(e){return EM.test(e)}i(yu,"isProtectedWeekYearToken");function $s(e,t,r){let n=CM(e,t,r);if(console.warn(n),DM.includes(e))throw new RangeError(n)}i($s,"warnOrThrowProtectedError");function CM(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}i(CM,"message");var IM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,OM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,AM=/^'([^]*?)'?$/,MM=/''/g,_M=/[a-zA-Z]/;function Hs(e,t,r){let n=Ee(),o=r?.locale??n.locale??_t,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,l=y(e,r?.in);if(!ut(l))throw new RangeError("Invalid time value");let u=t.match(OM).map(f=>{let p=f[0];if(p==="p"||p==="P"){let h=dn[p];return h(f,o.formatLong)}return f}).join("").match(IM).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let p=f[0];if(p==="'")return{isToken:!1,value:NM(f)};if(zs[p])return{isToken:!0,value:f};if(p.match(_M))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(u=o.localize.preprocessor(l,u));let c={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return u.map(f=>{if(!f.isToken)return f.value;let p=f.value;(!r?.useAdditionalWeekYearTokens&&yu(p)||!r?.useAdditionalDayOfYearTokens&&xu(p))&&$s(p,t,String(e));let h=zs[p[0]];return h(l,p,o.localize,c)}).join("")}i(Hs,"format");function NM(e){let t=e.match(AM);return t?t[1].replace(MM,"'"):e}i(NM,"cleanEscapedString");var tae=Hs;function wu(e,t,r){let n=Ee(),o=r?.locale??n.locale??_t,s=2520,a=ht(e,t);if(isNaN(a))throw new RangeError("Invalid time value");let l=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:a}),[u,c]=ee(r?.in,...a>0?[t,e]:[e,t]),f=Or(c,u),p=(Be(c)-Be(u))/1e3,h=Math.round((f-p)/60),m;if(h<2)return r?.includeSeconds?f<5?o.formatDistance("lessThanXSeconds",5,l):f<10?o.formatDistance("lessThanXSeconds",10,l):f<20?o.formatDistance("lessThanXSeconds",20,l):f<40?o.formatDistance("halfAMinute",0,l):f<60?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",1,l):h===0?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",h,l);if(h<45)return o.formatDistance("xMinutes",h,l);if(h<90)return o.formatDistance("aboutXHours",1,l);if(h<fo){let d=Math.round(h/60);return o.formatDistance("aboutXHours",d,l)}else{if(h<s)return o.formatDistance("xDays",1,l);if(h<an){let d=Math.round(h/fo);return o.formatDistance("xDays",d,l)}else if(h<an*2)return m=Math.round(h/an),o.formatDistance("aboutXMonths",m,l)}if(m=pn(c,u),m<12){let d=Math.round(h/an);return o.formatDistance("xMonths",d,l)}else{let d=m%12,g=Math.trunc(m/12);return d<3?o.formatDistance("aboutXYears",g,l):d<9?o.formatDistance("overXYears",g,l):o.formatDistance("almostXYears",g+1,l)}}i(wu,"formatDistance");var pae=wu;function bu(e,t,r){let n=Ee(),o=r?.locale??n.locale??_t,s=ht(e,t);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[l,u]=ee(r?.in,...s>0?[t,e]:[e,t]),c=mt(r?.roundingMethod??"round"),f=u.getTime()-l.getTime(),p=f/pt,h=Be(u)-Be(l),m=(f-h)/pt,d=r?.unit,g;if(d?g=d:p<1?g="second":p<60?g="minute":p<fo?g="hour":m<an?g="day":m<xh?g="month":g="year",g==="second"){let x=c(f/1e3);return o.formatDistance("xSeconds",x,a)}else if(g==="minute"){let x=c(p);return o.formatDistance("xMinutes",x,a)}else if(g==="hour"){let x=c(p/60);return o.formatDistance("xHours",x,a)}else if(g==="day"){let x=c(m/fo);return o.formatDistance("xDays",x,a)}else if(g==="month"){let x=c(m/an);return x===12&&d!=="month"?o.formatDistance("xYears",1,a):o.formatDistance("xMonths",x,a)}else{let x=c(m/xh);return o.formatDistance("xYears",x,a)}}i(bu,"formatDistanceStrict");var kae=bu;function mw(e,t){return wu(e,me(e),t)}i(mw,"formatDistanceToNow");var Cae=mw;function dw(e,t){return bu(e,me(e),t)}i(dw,"formatDistanceToNowStrict");var _ae=dw;var PM=["years","months","weeks","days","hours","minutes","seconds"];function gw(e,t){let r=Ee(),n=t?.locale??r.locale??_t,o=t?.format??PM,s=t?.zero??!1,a=t?.delimiter??" ";return n.formatDistance?o.reduce((u,c)=>{let f=`x${c.replace(/(^.)/,h=>h.toUpperCase())}`,p=e[c];return p!==void 0&&(s||e[c])?u.concat(n.formatDistance(f,p)):u},[]).join(a):""}i(gw,"formatDuration");var Rae=gw;function xw(e,t){let r=y(e,t?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let n=t?.format??"extended",o=t?.representation??"complete",s="",a="",l=n==="extended"?"-":"",u=n==="extended"?":":"";if(o!=="time"){let c=G(r.getDate(),2),f=G(r.getMonth()+1,2);s=`${G(r.getFullYear(),4)}${l}${f}${l}${c}`}if(o!=="date"){let c=r.getTimezoneOffset();if(c!==0){let g=Math.abs(c),x=G(Math.trunc(g/60),2),b=G(g%60,2);a=`${c<0?"+":"-"}${x}:${b}`}else a="Z";let f=G(r.getHours(),2),p=G(r.getMinutes(),2),h=G(r.getSeconds(),2),m=s===""?"":"T",d=[f,p,h].join(u);s=`${s}${m}${d}${a}`}return s}i(xw,"formatISO");var Uae=xw;function yw(e,t){let r=y(e,t?.in);if(!ut(r))throw new RangeError("Invalid time value");let n=t?.format??"extended",o=t?.representation??"complete",s="",a=n==="extended"?"-":"",l=n==="extended"?":":"";if(o!=="time"){let u=G(r.getDate(),2),c=G(r.getMonth()+1,2);s=`${G(r.getFullYear(),4)}${a}${c}${a}${u}`}if(o!=="date"){let u=G(r.getHours(),2),c=G(r.getMinutes(),2),f=G(r.getSeconds(),2);s=`${s}${s===""?"":" "}${u}${l}${c}${l}${f}`}return s}i(yw,"formatISO9075");var Qae=yw;function ww(e){let{years:t=0,months:r=0,days:n=0,hours:o=0,minutes:s=0,seconds:a=0}=e;return`P${t}Y${r}M${n}DT${o}H${s}M${a}S`}i(ww,"formatISODuration");var Kae=ww;function bw(e,t){let r=y(e,t?.in);if(!ut(r))throw new RangeError("Invalid time value");let n=t?.fractionDigits??0,o=G(r.getDate(),2),s=G(r.getMonth()+1,2),a=r.getFullYear(),l=G(r.getHours(),2),u=G(r.getMinutes(),2),c=G(r.getSeconds(),2),f="";if(n>0){let m=r.getMilliseconds(),d=Math.trunc(m*Math.pow(10,n-3));f="."+G(d,n)}let p="",h=r.getTimezoneOffset();if(h!==0){let m=Math.abs(h),d=G(Math.trunc(m/60),2),g=G(m%60,2);p=`${h<0?"+":"-"}${d}:${g}`}else p="Z";return`${a}-${s}-${o}T${l}:${u}:${c}${f}${p}`}i(bw,"formatRFC3339");var nle=bw;var FM=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],LM=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function vw(e){let t=y(e);if(!ut(t))throw new RangeError("Invalid time value");let r=FM[t.getUTCDay()],n=G(t.getUTCDate(),2),o=LM[t.getUTCMonth()],s=t.getUTCFullYear(),a=G(t.getUTCHours(),2),l=G(t.getUTCMinutes(),2),u=G(t.getUTCSeconds(),2);return`${r}, ${n} ${o} ${s} ${a}:${l}:${u} GMT`}i(vw,"formatRFC7231");var ule=vw;function kw(e,t,r){let[n,o]=ee(r?.in,e,t),s=Ee(),a=r?.locale??s.locale??_t,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,u=nt(n,o);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=a.formatRelative(c,n,o,{locale:a,weekStartsOn:l});return Hs(n,f,{locale:a,weekStartsOn:l})}i(kw,"formatRelative");var xle=kw;function Sw(e,t){return y(e*1e3,t?.in)}i(Sw,"fromUnixTime");var vle=Sw;function vu(e,t){return y(e,t?.in).getDate()}i(vu,"getDate");var Ele=vu;function gn(e,t){return y(e,t?.in).getDay()}i(gn,"getDay");var Ole=gn;function ku(e,t){let r=y(e,t?.in),n=r.getFullYear(),o=r.getMonth(),s=P(r,0);return s.setFullYear(n,o+1,0),s.setHours(0,0,0,0),s.getDate()}i(ku,"getDaysInMonth");var Ple=ku;function Su(e,t){let n=y(e,t?.in).getFullYear();return n%400===0||n%4===0&&n%100!==0}i(Su,"isLeapYear");var Ble=Su;function Tw(e,t){let r=y(e,t?.in);return Number.isNaN(+r)?NaN:Su(r)?366:365}i(Tw,"getDaysInYear");var Wle=Tw;function Ew(e,t){let n=y(e,t?.in).getFullYear();return Math.floor(n/10)*10}i(Ew,"getDecade");var Vle=Ew;function Tu(){return Object.assign({},Ee())}i(Tu,"getDefaultOptions");var Kle=Tu;function Dw(e,t){return y(e,t?.in).getHours()}i(Dw,"getHours");var tue=Dw;function Eu(e,t){let r=y(e,t?.in).getDay();return r===0?7:r}i(Eu,"getISODay");var oue=Eu;function Cw(e,t){let r=$t(e,t),o=+$t(cn(r,60))-+r;return Math.round(o/Tr)}i(Cw,"getISOWeeksInYear");var fue=Cw;function Iw(e){return y(e).getMilliseconds()}i(Iw,"getMilliseconds");var due=Iw;function Ow(e,t){return y(e,t?.in).getMinutes()}i(Ow,"getMinutes");var wue=Ow;function Aw(e,t){return y(e,t?.in).getMonth()}i(Aw,"getMonth");var Sue=Aw;function Mw(e,t){let[r,n]=[+y(e.start),+y(e.end)].sort((p,h)=>p-h),[o,s]=[+y(t.start),+y(t.end)].sort((p,h)=>p-h);if(!(r<s&&o<n))return 0;let l=o<r?r:o,u=l-Be(l),c=s>n?n:s,f=c-Be(c);return Math.ceil((f-u)/ql)}i(Mw,"getOverlappingDaysInIntervals");var Oue=Mw;function _w(e){return y(e).getSeconds()}i(_w,"getSeconds");var Nue=_w;function Nw(e){return+y(e)}i(Nw,"getTime");var Rue=Nw;function Pw(e){return Math.trunc(+y(e)/1e3)}i(Pw,"getUnixTime");var Hue=Pw;function Fw(e,t){let r=Ee(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=vu(y(e,t?.in));if(isNaN(o))return NaN;let s=gn(hn(e,t)),a=n-s;a<=0&&(a+=7);let l=o-a;return Math.ceil(l/7)+1}i(Fw,"getWeekOfMonth");var Gue=Fw;function Du(e,t){let r=y(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),y(r,t?.in)}i(Du,"lastDayOfMonth");var Zue=Du;function Lw(e,t){let r=y(e,t?.in);return Zn(Du(r,t),hn(r,t),t)+1}i(Lw,"getWeeksInMonth");var sce=Lw;function Rw(e,t){return y(e,t?.in).getFullYear()}i(Rw,"getYear");var cce=Rw;function Bw(e){return Math.trunc(e*zt)}i(Bw,"hoursToMilliseconds");var mce=Bw;function zw(e){return Math.trunc(e*Yl)}i(zw,"hoursToMinutes");var yce=zw;function $w(e){return Math.trunc(e*Kn)}i($w,"hoursToSeconds");var kce=$w;function Hw(e,t,r){let[n,o]=ee(r?.in,e,t);if(isNaN(+n))throw new TypeError("Start date is invalid");if(isNaN(+o))throw new TypeError("End date is invalid");if(r?.assertPositive&&+n>+o)throw new TypeError("End date must be after start date");return{start:n,end:o}}i(Hw,"interval");var Dce=Hw;function Uw(e,t){let{start:r,end:n}=it(t?.in,e),o={},s=fu(n,r);s&&(o.years=s);let a=ln(r,{years:o.years}),l=pn(n,a);l&&(o.months=l);let u=ln(a,{months:o.months}),c=xo(n,u);c&&(o.days=c);let f=ln(u,{days:o.days}),p=ei(n,f);p&&(o.hours=p);let h=ln(f,{hours:o.hours}),m=ti(n,h);m&&(o.minutes=m);let d=ln(h,{minutes:o.minutes}),g=Or(n,d);return g&&(o.seconds=g),o}i(Uw,"intervalToDuration");var Rce=Uw;function Ww(e,t,r){let n;return RM(t)?n=t:r=t,new Intl.DateTimeFormat(r?.locale,n).format(y(e))}i(Ww,"intlFormat");function RM(e){return e!==void 0&&!("locale"in e)}i(RM,"isFormatOptions");var Hce=Ww;function jw(e,t,r){let n=0,o,[s,a]=ee(r?.in,e,t);if(r?.unit)o=r?.unit,o==="second"?n=Or(s,a):o==="minute"?n=ti(s,a):o==="hour"?n=ei(s,a):o==="day"?n=nt(s,a):o==="week"?n=Zn(s,a):o==="month"?n=Xn(s,a):o==="quarter"?n=go(s,a):o==="year"&&(n=fn(s,a));else{let u=Or(s,a);Math.abs(u)<po?(n=Or(s,a),o="second"):Math.abs(u)<Kn?(n=ti(s,a),o="minute"):Math.abs(u)<Wl&&Math.abs(nt(s,a))<1?(n=ei(s,a),o="hour"):Math.abs(u)<Ey&&(n=nt(s,a))&&Math.abs(n)<7?o="day":Math.abs(u)<wh?(n=Zn(s,a),o="week"):Math.abs(u)<Dy?(n=Xn(s,a),o="month"):Math.abs(u)<yh?go(s,a)<4?(n=go(s,a),o="quarter"):(n=fn(s,a),o="year"):(n=fn(s,a),o="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(n,o)}i(jw,"intlFormatDistance");var efe=jw;function qw(e,t){return+y(e)>+y(t)}i(qw,"isAfter");var ife=qw;function Yw(e,t){return+y(e)<+y(t)}i(Yw,"isBefore");var lfe=Yw;function Vw(e,t){return+y(e)==+y(t)}i(Vw,"isEqual");var pfe=Vw;function Qw(e,t,r){let n=new Date(e,t,r);return n.getFullYear()===e&&n.getMonth()===t&&n.getDate()===r}i(Qw,"isExists");var dfe=Qw;function Gw(e,t){return y(e,t?.in).getDate()===1}i(Gw,"isFirstDayOfMonth");var wfe=Gw;function Jw(e,t){return y(e,t?.in).getDay()===5}i(Jw,"isFriday");var Sfe=Jw;function Kw(e){return+y(e)>Date.now()}i(Kw,"isFuture");var Cfe=Kw;function Cu(e,t){let r=BM(t)?new t(0):P(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}i(Cu,"transpose");function BM(e){return typeof e=="function"&&e.prototype?.constructor===e}i(BM,"isConstructor");var Mfe=Cu;var zM=10,Iu=class{static{i(this,"Setter")}subPriority=0;validate(t,r){return!0}},Ou=class extends Iu{static{i(this,"ValueSetter")}constructor(t,r,n,o,s){super(),this.value=t,this.validateValue=r,this.setValue=n,this.priority=o,s&&(this.subPriority=s)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,n){return this.setValue(t,r,this.value,n)}},Au=class extends Iu{static{i(this,"DateTimezoneSetter")}priority=zM;subPriority=-1;constructor(t,r){super(),this.context=t||(n=>P(r,n))}set(t,r){return r.timestampIsSet?t:P(t,Cu(t,this.context))}};var Q=class{static{i(this,"Parser")}run(t,r,n,o){let s=this.parse(t,r,n,o);return s?{setter:new Ou(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(t,r,n){return!0}};var Mu=class extends Q{static{i(this,"EraParser")}priority=140;parse(t,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,r,n){return r.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]};var we={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}/},Qt={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 Ce(e,t){return e&&{value:t(e.value),rest:e.rest}}i(Ce,"mapValue");function xe(e,t){let r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}i(xe,"parseNumericPattern");function Gt(e,t){let r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};let n=r[1]==="+"?1:-1,o=r[2]?parseInt(r[2],10):0,s=r[3]?parseInt(r[3],10):0,a=r[5]?parseInt(r[5],10):0;return{value:n*(o*zt+s*pt+a*co),rest:t.slice(r[0].length)}}i(Gt,"parseTimezonePattern");function _u(e){return xe(we.anyDigitsSigned,e)}i(_u,"parseAnyDigitsSigned");function pe(e,t){switch(e){case 1:return xe(we.singleDigit,t);case 2:return xe(we.twoDigits,t);case 3:return xe(we.threeDigits,t);case 4:return xe(we.fourDigits,t);default:return xe(new RegExp("^\\d{1,"+e+"}"),t)}}i(pe,"parseNDigits");function Io(e,t){switch(e){case 1:return xe(we.singleDigitSigned,t);case 2:return xe(we.twoDigitsSigned,t);case 3:return xe(we.threeDigitsSigned,t);case 4:return xe(we.fourDigitsSigned,t);default:return xe(new RegExp("^-?\\d{1,"+e+"}"),t)}}i(Io,"parseNDigitsSigned");function Oo(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}i(Oo,"dayPeriodEnumToHours");function Nu(e,t){let r=t>0,n=r?t:1-t,o;if(n<=50)o=e||100;else{let s=n+50,a=Math.trunc(s/100)*100,l=e>=s%100;o=e+a-(l?100:0)}return r?o:1-o}i(Nu,"normalizeTwoDigitYear");function Pu(e){return e%400===0||e%4===0&&e%100!==0}i(Pu,"isLeapYearIndex");var Fu=class extends Q{static{i(this,"YearParser")}priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,r,n){let o=i(s=>({year:s,isTwoDigitYear:r==="yy"}),"valueCallback");switch(r){case"y":return Ce(pe(4,t),o);case"yo":return Ce(n.ordinalNumber(t,{unit:"year"}),o);default:return Ce(pe(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n){let o=t.getFullYear();if(n.isTwoDigitYear){let a=Nu(n.year,o);return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}let s=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}};var Lu=class extends Q{static{i(this,"LocalWeekYearParser")}priority=130;parse(t,r,n){let o=i(s=>({year:s,isTwoDigitYear:r==="YY"}),"valueCallback");switch(r){case"Y":return Ce(pe(4,t),o);case"Yo":return Ce(n.ordinalNumber(t,{unit:"year"}),o);default:return Ce(pe(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n,o){let s=mn(t,o);if(n.isTwoDigitYear){let l=Nu(n.year,s);return t.setFullYear(l,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Me(t,o)}let a=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(a,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Me(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var Ru=class extends Q{static{i(this,"ISOWeekYearParser")}priority=130;parse(t,r){return r==="R"?Io(4,t):Io(r.length,t)}set(t,r,n){let o=P(t,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),Ye(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Bu=class extends Q{static{i(this,"ExtendedYearParser")}priority=130;parse(t,r){return r==="u"?Io(4,t):Io(r.length,t)}set(t,r,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var zu=class extends Q{static{i(this,"QuarterParser")}priority=120;parse(t,r,n){switch(r){case"Q":case"QQ":return pe(r.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var $u=class extends Q{static{i(this,"StandAloneQuarterParser")}priority=120;parse(t,r,n){switch(r){case"q":case"qq":return pe(r.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Hu=class extends Q{static{i(this,"MonthParser")}incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,n){let o=i(s=>s-1,"valueCallback");switch(r){case"M":return Ce(xe(we.month,t),o);case"MM":return Ce(pe(2,t),o);case"Mo":return Ce(n.ordinalNumber(t,{unit:"month"}),o);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}};var Uu=class extends Q{static{i(this,"StandAloneMonthParser")}priority=110;parse(t,r,n){let o=i(s=>s-1,"valueCallback");switch(r){case"L":return Ce(xe(we.month,t),o);case"LL":return Ce(pe(2,t),o);case"Lo":return Ce(n.ordinalNumber(t,{unit:"month"}),o);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function Wu(e,t,r){let n=y(e,r?.in),o=Do(n,r)-t;return n.setDate(n.getDate()-o*7),y(n,r?.in)}i(Wu,"setWeek");var Fpe=Wu;var ju=class extends Q{static{i(this,"LocalWeekParser")}priority=100;parse(t,r,n){switch(r){case"w":return xe(we.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return pe(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n,o){return Me(Wu(t,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function qu(e,t,r){let n=y(e,r?.in),o=Eo(n,r)-t;return n.setDate(n.getDate()-o*7),n}i(qu,"setISOWeek");var Vpe=qu;var Yu=class extends Q{static{i(this,"ISOWeekParser")}priority=100;parse(t,r,n){switch(r){case"I":return xe(we.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return pe(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n){return Ye(qu(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var $M=[31,28,31,30,31,30,31,31,30,31,30,31],HM=[31,29,31,30,31,30,31,31,30,31,30,31],Vu=class extends Q{static{i(this,"DateParser")}priority=90;subPriority=1;parse(t,r,n){switch(r){case"d":return xe(we.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return pe(r.length,t)}}validate(t,r){let n=t.getFullYear(),o=Pu(n),s=t.getMonth();return o?r>=1&&r<=HM[s]:r>=1&&r<=$M[s]}set(t,r,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Qu=class extends Q{static{i(this,"DayOfYearParser")}priority=90;subpriority=1;parse(t,r,n){switch(r){case"D":case"DD":return xe(we.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return pe(r.length,t)}}validate(t,r){let n=t.getFullYear();return Pu(n)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function xn(e,t,r){let n=Ee(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=y(e,r?.in),a=s.getDay(),u=(t%7+7)%7,c=7-o,f=t<0||t>6?t-(a+c)%7:(u+c)%7-(a+c)%7;return Ke(s,f,r)}i(xn,"setDay");var ghe=xn;var Gu=class extends Q{static{i(this,"DayParser")}priority=90;parse(t,r,n){switch(r){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=xn(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};var Ju=class extends Q{static{i(this,"LocalDayParser")}priority=90;parse(t,r,n,o){let s=i(a=>{let l=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+l},"valueCallback");switch(r){case"e":case"ee":return Ce(pe(r.length,t),s);case"eo":return Ce(n.ordinalNumber(t,{unit:"day"}),s);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=xn(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Ku=class extends Q{static{i(this,"StandAloneLocalDayParser")}priority=90;parse(t,r,n,o){let s=i(a=>{let l=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+l},"valueCallback");switch(r){case"c":case"cc":return Ce(pe(r.length,t),s);case"co":return Ce(n.ordinalNumber(t,{unit:"day"}),s);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=xn(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function Xu(e,t,r){let n=y(e,r?.in),o=Eu(n,r),s=t-o;return Ke(n,s,r)}i(Xu,"setISODay");var Lhe=Xu;var Zu=class extends Q{static{i(this,"ISODayParser")}priority=90;parse(t,r,n){let o=i(s=>s===0?7:s,"valueCallback");switch(r){case"i":case"ii":return pe(r.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return Ce(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return Ce(n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Ce(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);default:return Ce(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,r){return r>=1&&r<=7}set(t,r,n){return t=Xu(t,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var ec=class extends Q{static{i(this,"AMPMParser")}priority=80;parse(t,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(Oo(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]};var tc=class extends Q{static{i(this,"AMPMMidnightParser")}priority=80;parse(t,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(Oo(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]};var rc=class extends Q{static{i(this,"DayPeriodParser")}priority=80;parse(t,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(Oo(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]};var nc=class extends Q{static{i(this,"Hour1to12Parser")}priority=70;parse(t,r,n){switch(r){case"h":return xe(we.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return pe(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,n){let o=t.getHours()>=12;return o&&n<12?t.setHours(n+12,0,0,0):!o&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]};var ic=class extends Q{static{i(this,"Hour0to23Parser")}priority=70;parse(t,r,n){switch(r){case"H":return xe(we.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return pe(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]};var oc=class extends Q{static{i(this,"Hour0To11Parser")}priority=70;parse(t,r,n){switch(r){case"K":return xe(we.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return pe(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]};var sc=class extends Q{static{i(this,"Hour1To24Parser")}priority=70;parse(t,r,n){switch(r){case"k":return xe(we.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return pe(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,n){let o=n<=24?n%24:n;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]};var ac=class extends Q{static{i(this,"MinuteParser")}priority=60;parse(t,r,n){switch(r){case"m":return xe(we.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return pe(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]};var lc=class extends Q{static{i(this,"SecondParser")}priority=50;parse(t,r,n){switch(r){case"s":return xe(we.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return pe(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]};var uc=class extends Q{static{i(this,"FractionOfSecondParser")}priority=30;parse(t,r){let n=i(o=>Math.trunc(o*Math.pow(10,-r.length+3)),"valueCallback");return Ce(pe(r.length,t),n)}set(t,r,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]};var cc=class extends Q{static{i(this,"ISOTimezoneWithZParser")}priority=10;parse(t,r){switch(r){case"X":return Gt(Qt.basicOptionalMinutes,t);case"XX":return Gt(Qt.basic,t);case"XXXX":return Gt(Qt.basicOptionalSeconds,t);case"XXXXX":return Gt(Qt.extendedOptionalSeconds,t);default:return Gt(Qt.extended,t)}}set(t,r,n){return r.timestampIsSet?t:P(t,t.getTime()-Be(t)-n)}incompatibleTokens=["t","T","x"]};var fc=class extends Q{static{i(this,"ISOTimezoneParser")}priority=10;parse(t,r){switch(r){case"x":return Gt(Qt.basicOptionalMinutes,t);case"xx":return Gt(Qt.basic,t);case"xxxx":return Gt(Qt.basicOptionalSeconds,t);case"xxxxx":return Gt(Qt.extendedOptionalSeconds,t);default:return Gt(Qt.extended,t)}}set(t,r,n){return r.timestampIsSet?t:P(t,t.getTime()-Be(t)-n)}incompatibleTokens=["t","T","X"]};var pc=class extends Q{static{i(this,"TimestampSecondsParser")}priority=40;parse(t){return _u(t)}set(t,r,n){return[P(t,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var hc=class extends Q{static{i(this,"TimestampMillisecondsParser")}priority=20;parse(t){return _u(t)}set(t,r,n){return[P(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"};var mc={G:new Mu,y:new Fu,Y:new Lu,R:new Ru,u:new Bu,Q:new zu,q:new $u,M:new Hu,L:new Uu,w:new ju,I:new Yu,d:new Vu,D:new Qu,E:new Gu,e:new Ju,c:new Ku,i:new Zu,a:new ec,b:new tc,B:new rc,h:new nc,H:new ic,K:new oc,k:new sc,m:new ac,s:new lc,S:new uc,X:new cc,x:new fc,t:new pc,T:new hc};var UM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jM=/^'([^]*?)'?$/,qM=/''/g,YM=/\S/,VM=/[a-zA-Z]/;function dc(e,t,r,n){let o=i(()=>P(n?.in||r,NaN),"invalidDate"),s=Tu(),a=n?.locale??s.locale??_t,l=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,u=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!t)return e?o():y(r,n?.in);let c={firstWeekContainsDate:l,weekStartsOn:u,locale:a},f=[new Au(n?.in,r)],p=t.match(WM).map(x=>{let b=x[0];if(b in dn){let T=dn[b];return T(x,a.formatLong)}return x}).join("").match(UM),h=[];for(let x of p){!n?.useAdditionalWeekYearTokens&&yu(x)&&$s(x,t,e),!n?.useAdditionalDayOfYearTokens&&xu(x)&&$s(x,t,e);let b=x[0],T=mc[b];if(T){let{incompatibleTokens:D}=T;if(Array.isArray(D)){let H=h.find(I=>D.includes(I.token)||I.token===b);if(H)throw new RangeError(`The format string mustn't contain \`${H.fullToken}\` and \`${x}\` at the same time`)}else if(T.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);h.push({token:b,fullToken:x});let q=T.run(e,x,a.match,c);if(!q)return o();f.push(q.setter),e=q.rest}else{if(b.match(VM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");if(x==="''"?x="'":b==="'"&&(x=QM(x)),e.indexOf(x)===0)e=e.slice(x.length);else return o()}}if(e.length>0&&YM.test(e))return o();let m=f.map(x=>x.priority).sort((x,b)=>b-x).filter((x,b,T)=>T.indexOf(x)===b).map(x=>f.filter(b=>b.priority===x).sort((b,T)=>T.subPriority-b.subPriority)).map(x=>x[0]),d=y(r,n?.in);if(isNaN(+d))return o();let g={};for(let x of m){if(!x.validate(d,c))return o();let b=x.set(d,g,c);Array.isArray(b)?(d=b[0],Object.assign(g,b[1])):d=b}return d}i(dc,"parse");function QM(e){return e.match(jM)[1].replace(qM,"'")}i(QM,"cleanEscapedString");var Yde=dc;function Xw(e,t,r){return ut(dc(e,t,new Date,r))}i(Xw,"isMatch");var Kde=Xw;function Zw(e,t){return y(e,t?.in).getDay()===1}i(Zw,"isMonday");var tge=Zw;function eb(e){return+y(e)<Date.now()}i(eb,"isPast");var oge=eb;function Us(e,t){let r=y(e,t?.in);return r.setMinutes(0,0,0),r}i(Us,"startOfHour");var uge=Us;function gc(e,t,r){let[n,o]=ee(r?.in,e,t);return+Us(n)==+Us(o)}i(gc,"isSameHour");var mge=gc;function Ao(e,t,r){let[n,o]=ee(r?.in,e,t);return+Me(n,r)==+Me(o,r)}i(Ao,"isSameWeek");var wge=Ao;function xc(e,t,r){return Ao(e,t,{...r,weekStartsOn:1})}i(xc,"isSameISOWeek");var Sge=xc;function tb(e,t,r){let[n,o]=ee(r?.in,e,t);return+$t(n)==+$t(o)}i(tb,"isSameISOWeekYear");var Ige=tb;function Ws(e,t){let r=y(e,t?.in);return r.setSeconds(0,0),r}i(Ws,"startOfMinute");var _ge=Ws;function yc(e,t){return+Ws(e)==+Ws(t)}i(yc,"isSameMinute");var Lge=yc;function wc(e,t,r){let[n,o]=ee(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}i(wc,"isSameMonth");var $ge=wc;function bc(e,t,r){let[n,o]=ee(r?.in,e,t);return+Ar(n)==+Ar(o)}i(bc,"isSameQuarter");var qge=bc;function js(e,t){let r=y(e,t?.in);return r.setMilliseconds(0),r}i(js,"startOfSecond");var Gge=js;function vc(e,t){return+js(e)==+js(t)}i(vc,"isSameSecond");var Zge=vc;function kc(e,t,r){let[n,o]=ee(r?.in,e,t);return n.getFullYear()===o.getFullYear()}i(kc,"isSameYear");var nxe=kc;function rb(e,t){return gc(y(e,t?.in),me(t?.in||e))}i(rb,"isThisHour");var uxe=rb;function nb(e,t){return xc(P(t?.in||e,e),me(t?.in||e))}i(nb,"isThisISOWeek");var dxe=nb;function ib(e){return yc(e,me(e))}i(ib,"isThisMinute");var bxe=ib;function ob(e,t){return wc(P(t?.in||e,e),me(t?.in||e))}i(ob,"isThisMonth");var Dxe=ob;function sb(e,t){return bc(P(t?.in||e,e),me(t?.in||e))}i(sb,"isThisQuarter");var _xe=sb;function ab(e){return vc(e,me(e))}i(ab,"isThisSecond");var Rxe=ab;function lb(e,t){return Ao(P(t?.in||e,e),me(t?.in||e),t)}i(lb,"isThisWeek");var Wxe=lb;function ub(e,t){return kc(P(t?.in||e,e),me(t?.in||e))}i(ub,"isThisYear");var Gxe=ub;function cb(e,t){return y(e,t?.in).getDay()===4}i(cb,"isThursday");var Zxe=cb;function fb(e,t){return Ir(P(t?.in||e,e),me(t?.in||e))}i(fb,"isToday");var oye=fb;function pb(e,t){return Ir(e,Ke(me(t?.in||e),1),t)}i(pb,"isTomorrow");var fye=pb;function hb(e,t){return y(e,t?.in).getDay()===2}i(hb,"isTuesday");var dye=hb;function mb(e,t){return y(e,t?.in).getDay()===3}i(mb,"isWednesday");var wye=mb;function db(e,t,r){let n=+y(e,r?.in),[o,s]=[+y(t.start,r?.in),+y(t.end,r?.in)].sort((a,l)=>a-l);return n>=o&&n<=s}i(db,"isWithinInterval");var Sye=db;function yn(e,t,r){return Ke(e,-t,r)}i(yn,"subDays");var Cye=yn;function gb(e,t){return Ir(P(t?.in||e,e),yn(me(t?.in||e),1))}i(gb,"isYesterday");var Pye=gb;function xb(e,t){let r=y(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o+1,0,0),r.setHours(0,0,0,0),y(r,t?.in)}i(xb,"lastDayOfDecade");var Bye=xb;function Sc(e,t){let r=Ee(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=y(e,t?.in),s=o.getDay(),a=(s<n?-7:0)+6-(s-n);return o.setHours(0,0,0,0),o.setDate(o.getDate()+a),o}i(Sc,"lastDayOfWeek");var Wye=Sc;function yb(e,t){return Sc(e,{...t,weekStartsOn:1})}i(yb,"lastDayOfISOWeek");var Vye=yb;function wb(e,t){let r=kt(e,t),n=P(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=Ye(n,t);return o.setDate(o.getDate()-1),o}i(wb,"lastDayOfISOWeekYear");var Zye=wb;function bb(e,t){let r=y(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(0,0,0,0),r}i(bb,"lastDayOfQuarter");var nwe=bb;function vb(e,t){let r=y(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),r}i(vb,"lastDayOfYear");var awe=vb;var GM=/(\w)\1*|''|'(''|[^'])+('|$)|./g,JM=/^'([^]*?)'?$/,KM=/''/g,XM=/[a-zA-Z]/;function kb(e,t){let r=y(e);if(!ut(r))throw new RangeError("Invalid time value");let n=t.match(GM);return n?n.map(s=>{if(s==="''")return"'";let a=s[0];if(a==="'")return ZM(s);let l=Ht[a];if(l)return l(r,s);if(a.match(XM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return s}).join(""):""}i(kb,"lightFormat");function ZM(e){let t=e.match(JM);return t?t[1].replace(KM,"'"):e}i(ZM,"cleanEscapedString");var hwe=kb;function Sb({years:e,months:t,weeks:r,days:n,hours:o,minutes:s,seconds:a}){let l=0;e&&(l+=e*365.2425),t&&(l+=t*(365.2425/12)),r&&(l+=r*7),n&&(l+=n);let u=l*24*60*60;return o&&(u+=o*60*60),s&&(u+=s*60),a&&(u+=a),Math.trunc(u*1e3)}i(Sb,"milliseconds");var xwe=Sb;function Tb(e){let t=e/zt;return Math.trunc(t)}i(Tb,"millisecondsToHours");var vwe=Tb;function Eb(e){let t=e/pt;return Math.trunc(t)}i(Eb,"millisecondsToMinutes");var Ewe=Eb;function Db(e){let t=e/co;return Math.trunc(t)}i(Db,"millisecondsToSeconds");var Owe=Db;function Cb(e){let t=e/Yl;return Math.trunc(t)}i(Cb,"minutesToHours");var Nwe=Cb;function Ib(e){return Math.trunc(e*pt)}i(Ib,"minutesToMilliseconds");var Rwe=Ib;function Ob(e){return Math.trunc(e*po)}i(Ob,"minutesToSeconds");var Hwe=Ob;function Ab(e){let t=e/Vl;return Math.trunc(t)}i(Ab,"monthsToQuarters");var qwe=Ab;function Mb(e){let t=e/Ql;return Math.trunc(t)}i(Mb,"monthsToYears");var Gwe=Mb;function dt(e,t,r){let n=t-gn(e,r);return n<=0&&(n+=7),Ke(e,n,r)}i(dt,"nextDay");var ebe=dt;function _b(e,t){return dt(e,5,t)}i(_b,"nextFriday");var ibe=_b;function Nb(e,t){return dt(e,1,t)}i(Nb,"nextMonday");var lbe=Nb;function Pb(e,t){return dt(e,6,t)}i(Pb,"nextSaturday");var pbe=Pb;function Fb(e,t){return dt(e,0,t)}i(Fb,"nextSunday");var gbe=Fb;function Lb(e,t){return dt(e,4,t)}i(Lb,"nextThursday");var bbe=Lb;function Rb(e,t){return dt(e,2,t)}i(Rb,"nextTuesday");var Tbe=Rb;function Bb(e,t){return dt(e,3,t)}i(Bb,"nextWednesday");var Ibe=Bb;function $b(e,t){let r=i(()=>P(t?.in,NaN),"invalidDate"),n=t?.additionalDigits??2,o=n_(e),s;if(o.date){let c=i_(o.date,n);s=o_(c.restDateString,c.year)}if(!s||isNaN(+s))return r();let a=+s,l=0,u;if(o.time&&(l=s_(o.time),isNaN(l)))return r();if(o.timezone){if(u=a_(o.timezone),isNaN(u))return r()}else{let c=new Date(a+l),f=y(0,t?.in);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return y(a+l+u,t?.in)}i($b,"parseISO");var Tc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},e_=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,t_=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,r_=/^([+-])(\d{2})(?::?(\d{2}))?$/;function n_(e){let t={},r=e.split(Tc.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Tc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Tc.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){let o=Tc.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}i(n_,"splitDateString");function i_(e,t){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};let o=n[1]?parseInt(n[1]):null,s=n[2]?parseInt(n[2]):null;return{year:s===null?o:s*100,restDateString:e.slice((n[1]||n[2]).length)}}i(i_,"parseYear");function o_(e,t){if(t===null)return new Date(NaN);let r=e.match(e_);if(!r)return new Date(NaN);let n=!!r[4],o=qs(r[1]),s=qs(r[2])-1,a=qs(r[3]),l=qs(r[4]),u=qs(r[5])-1;if(n)return p_(t,l,u)?l_(t,l,u):new Date(NaN);{let c=new Date(0);return!c_(t,s,a)||!f_(t,o)?new Date(NaN):(c.setUTCFullYear(t,s,Math.max(o,a)),c)}}i(o_,"parseDate");function qs(e){return e?parseInt(e):1}i(qs,"parseDateUnit");function s_(e){let t=e.match(t_);if(!t)return NaN;let r=vh(t[1]),n=vh(t[2]),o=vh(t[3]);return h_(r,n,o)?r*zt+n*pt+o*1e3:NaN}i(s_,"parseTime");function vh(e){return e&&parseFloat(e.replace(",","."))||0}i(vh,"parseTimeUnit");function a_(e){if(e==="Z")return 0;let t=e.match(r_);if(!t)return 0;let r=t[1]==="+"?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return m_(n,o)?r*(n*zt+o*pt):NaN}i(a_,"parseTimezone");function l_(e,t,r){let n=new Date(0);n.setUTCFullYear(e,0,4);let o=n.getUTCDay()||7,s=(t-1)*7+r+1-o;return n.setUTCDate(n.getUTCDate()+s),n}i(l_,"dayOfISOWeekYear");var u_=[31,null,31,30,31,30,31,31,30,31,30,31];function zb(e){return e%400===0||e%4===0&&e%100!==0}i(zb,"isLeapYearIndex");function c_(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(u_[t]||(zb(e)?29:28))}i(c_,"validateDate");function f_(e,t){return t>=1&&t<=(zb(e)?366:365)}i(f_,"validateDayOfYearDate");function p_(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}i(p_,"validateWeekDate");function h_(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}i(h_,"validateTime");function m_(e,t){return t>=0&&t<=59}i(m_,"validateTimezone");var Pbe=$b;function Hb(e,t){let r=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return r?y(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)),t?.in):y(NaN,t?.in)}i(Hb,"parseJSON");var Bbe=Hb;function gt(e,t,r){let n=gn(e,r)-t;return n<=0&&(n+=7),yn(e,n,r)}i(gt,"previousDay");var Wbe=gt;function Ub(e,t){return gt(e,5,t)}i(Ub,"previousFriday");var Vbe=Ub;function Wb(e,t){return gt(e,1,t)}i(Wb,"previousMonday");var Kbe=Wb;function jb(e,t){return gt(e,6,t)}i(jb,"previousSaturday");var t0e=jb;function qb(e,t){return gt(e,0,t)}i(qb,"previousSunday");var o0e=qb;function Yb(e,t){return gt(e,4,t)}i(Yb,"previousThursday");var u0e=Yb;function Vb(e,t){return gt(e,2,t)}i(Vb,"previousTuesday");var h0e=Vb;function Qb(e,t){return gt(e,3,t)}i(Qb,"previousWednesday");var x0e=Qb;function Gb(e){return Math.trunc(e*Vl)}i(Gb,"quartersToMonths");var v0e=Gb;function Jb(e){let t=e/Gl;return Math.trunc(t)}i(Jb,"quartersToYears");var E0e=Jb;function Kb(e,t){let r=t?.nearestTo??1;if(r<1||r>12)return P(t?.in||e,NaN);let n=y(e,t?.in),o=n.getMinutes()/60,s=n.getSeconds()/60/60,a=n.getMilliseconds()/1e3/60/60,l=n.getHours()+o+s+a,u=t?.roundingMethod??"round",f=mt(u)(l/r)*r;return n.setHours(f,0,0,0),n}i(Kb,"roundToNearestHours");var M0e=Kb;function Xb(e,t){let r=t?.nearestTo??1;if(r<1||r>30)return P(e,NaN);let n=y(e,t?.in),o=n.getSeconds()/60,s=n.getMilliseconds()/1e3/60,a=n.getMinutes()+o+s,l=t?.roundingMethod??"round",c=mt(l)(a/r)*r;return n.setMinutes(c,0,0),n}i(Xb,"roundToNearestMinutes");var R0e=Xb;function Zb(e){let t=e/Kn;return Math.trunc(t)}i(Zb,"secondsToHours");var H0e=Zb;function e0(e){return e*co}i(e0,"secondsToMilliseconds");var q0e=e0;function t0(e){let t=e/po;return Math.trunc(t)}i(t0,"secondsToMinutes");var G0e=t0;function Mo(e,t,r){let n=y(e,r?.in),o=n.getFullYear(),s=n.getDate(),a=P(r?.in||e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);let l=ku(a);return n.setMonth(t,Math.min(s,l)),n}i(Mo,"setMonth");var tve=Mo;function r0(e,t,r){let n=y(e,r?.in);return isNaN(+n)?P(r?.in||e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Mo(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}i(r0,"set");var ave=r0;function n0(e,t,r){let n=y(e,r?.in);return n.setDate(t),n}i(n0,"setDate");var fve=n0;function i0(e,t,r){let n=y(e,r?.in);return n.setMonth(0),n.setDate(t),n}i(i0,"setDayOfYear");var dve=i0;function o0(e){let t={},r=Ee();for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]===void 0?delete t[n]:t[n]=e[n]);Iy(t)}i(o0,"setDefaultOptions");var wve=o0;function s0(e,t,r){let n=y(e,r?.in);return n.setHours(t),n}i(s0,"setHours");var Sve=s0;function a0(e,t,r){let n=y(e,r?.in);return n.setMilliseconds(t),n}i(a0,"setMilliseconds");var Cve=a0;function l0(e,t,r){let n=y(e,r?.in);return n.setMinutes(t),n}i(l0,"setMinutes");var Mve=l0;function u0(e,t,r){let n=y(e,r?.in),o=Math.trunc(n.getMonth()/3)+1,s=t-o;return Mo(n,n.getMonth()+s*3)}i(u0,"setQuarter");var Lve=u0;function c0(e,t,r){let n=y(e,r?.in);return n.setSeconds(t),n}i(c0,"setSeconds");var $ve=c0;function f0(e,t,r){let n=Ee(),o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=nt(y(e,r?.in),ri(e,r),r),a=P(r?.in||e,0);a.setFullYear(t,0,o),a.setHours(0,0,0,0);let l=ri(a,r);return l.setDate(l.getDate()+s),l}i(f0,"setWeekYear");var Qve=f0;function p0(e,t,r){let n=y(e,r?.in);return isNaN(+n)?P(r?.in||e,NaN):(n.setFullYear(t),n)}i(p0,"setYear");var Zve=p0;function h0(e,t){let r=y(e,t?.in),n=r.getFullYear(),o=Math.floor(n/10)*10;return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r}i(h0,"startOfDecade");var nke=h0;function m0(e){return Cr(Date.now(),e)}i(m0,"startOfToday");var ake=m0;function d0(e){let t=me(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),s=P(e?.in,0);return s.setFullYear(r,n,o+1),s.setHours(0,0,0,0),s}i(d0,"startOfTomorrow");var pke=d0;function g0(e){let t=me(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),s=me(e?.in);return s.setFullYear(r,n,o-1),s.setHours(0,0,0,0),s}i(g0,"startOfYesterday");var gke=g0;function Ec(e,t,r){return Er(e,-t,r)}i(Ec,"subMonths");var bke=Ec;function x0(e,t,r){let{years:n=0,months:o=0,weeks:s=0,days:a=0,hours:l=0,minutes:u=0,seconds:c=0}=t,f=Ec(e,o+n*12,r),p=yn(f,a+s*7,r),h=u+l*60,d=(c+h*60)*1e3;return P(r?.in||e,+p-d)}i(x0,"sub");var Dke=x0;function y0(e,t,r){return Xl(e,-t,r)}i(y0,"subBusinessDays");var Ake=y0;function w0(e,t,r){return Zl(e,-t,r)}i(w0,"subHours");var Pke=w0;function b0(e,t,r){return un(e,-t,r)}i(b0,"subMilliseconds");var Bke=b0;function v0(e,t,r){return ho(e,-t,r)}i(v0,"subMinutes");var Uke=v0;function k0(e,t,r){return mo(e,-t,r)}i(k0,"subQuarters");var Yke=k0;function S0(e,t,r){return ru(e,-t,r)}i(S0,"subSeconds");var Jke=S0;function T0(e,t,r){return cn(e,-t,r)}i(T0,"subWeeks");var eSe=T0;function E0(e,t,r){return nu(e,-t,r)}i(E0,"subYears");var iSe=E0;function D0(e){return Math.trunc(e*7)}i(D0,"weeksToDays");var lSe=D0;function C0(e){return Math.trunc(e*365.2425)}i(C0,"yearsToDays");var pSe=C0;function I0(e){return Math.trunc(e*Ql)}i(I0,"yearsToMonths");var gSe=I0;function O0(e){return Math.trunc(e*Gl)}i(O0,"yearsToQuarters");var bSe=O0;var _0=i(e=>Number.isFinite(e)?e:0,"toZeroIfInfinity");function d_(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(_0(e*1e3)%1e3),nanoseconds:Math.trunc(_0(e*1e6)%1e3)}}i(d_,"parseNumber");function g_(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}i(g_,"parseBigint");function Dh(e){switch(typeof e){case"number":{if(Number.isFinite(e))return d_(e);break}case"bigint":return g_(e)}throw new TypeError("Expected a finite number or bigint")}i(Dh,"parseMilliseconds");var x_=i(e=>e===0||e===0n,"isZero"),y_=i((e,t)=>t===1||t===1n?e:`${e}s`,"pluralize"),w_=1e-7,b_=24n*60n*60n*1000n;function Vs(e,t){let r=typeof e=="bigint";if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");t={...t};let n=e<0?"-":"";e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let o=[],s=i((f,p)=>{let h=Math.floor(f*10**p+w_);return(Math.round(h)/10**p).toFixed(p)},"floorDecimals"),a=i((f,p,h,m)=>{if(!((o.length===0||!t.colonNotation)&&x_(f)&&!(t.colonNotation&&h==="m"))){if(m??=String(f),t.colonNotation){let d=m.includes(".")?m.split(".")[0].length:m.length,g=o.length>0?2:1;m="0".repeat(Math.max(0,g-d))+m}else m+=t.verbose?" "+y_(p,f):h;o.push(m)}},"add"),l=Dh(e),u=BigInt(l.days);if(t.hideYearAndDays?a(BigInt(u)*24n+BigInt(l.hours),"hour","h"):(t.hideYear?a(u,"day","d"):(a(u/365n,"year","y"),a(u%365n,"day","d")),a(Number(l.hours),"hour","h")),a(Number(l.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3&&!t.subSecondsAsDecimals){let f=Number(l.seconds),p=Number(l.milliseconds),h=Number(l.microseconds),m=Number(l.nanoseconds);if(a(f,"second","s"),t.formatSubMilliseconds)a(p,"millisecond","ms"),a(h,"microsecond","\xB5s"),a(m,"nanosecond","ns");else{let d=p+h/1e3+m/1e6,g=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,x=d>=1?Math.round(d):Math.ceil(d),b=g?d.toFixed(g):x;a(Number.parseFloat(b),"millisecond","ms",b)}}else{let f=(r?Number(e%b_):e)/1e3%60,p=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,h=s(f,p),m=t.keepDecimalsOnWholeSeconds?h:h.replace(/\.0+$/,"");a(Number.parseFloat(m),"second","s",m)}if(o.length===0)return n+"0"+(t.verbose?" milliseconds":"ms");let c=t.colonNotation?":":" ";return typeof t.unitCount=="number"&&(o=o.slice(0,Math.max(t.unitCount,1))),n+o.join(c)}i(Vs,"prettyMilliseconds");var ii=It(A0(),1),N0=It(M0(),1);ii.default.extend(N0.default);var Qs=class{static{i(this,"CronJob")}constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=new Ls.Cron(r)}checkExecution(){if(this.status==="stopped")return this.nextExecutionUnix;if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let t=this.jobFunction(this.nextExecutionUnix);t instanceof Promise&&t.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 Ch=class{static{i(this,"CronManager")}constructor(){this.status="stopped",this.cronjobs=new Xe.ObjectMap,this.cycleWakeDeferred=null}wakeCycle(){this.cycleWakeDeferred&&this.cycleWakeDeferred.status==="pending"&&this.cycleWakeDeferred.resolve()}addCronjob(t,r){let n=new Qs(this,t,r);return this.cronjobs.add(n),this.status==="started"&&(n.start(),this.wakeCycle()),n}removeCronjob(t){t.stop(),this.cronjobs.remove(t),this.status==="started"&&this.wakeCycle()}start(){if(this.status!=="started"){this.status="started";for(let t of this.cronjobs.getArray())t.start();this.runCronCycle()}}async runCronCycle(){for(;this.status==="started";){this.cycleWakeDeferred=new J.Deferred;let t=1/0;for(let r of this.cronjobs.getArray()){r.checkExecution();let n=r.getTimeToNextExecution();n<t&&(t=n)}if(t<1/0&&t>0)this.executionTimeout=new he.Timeout(t),await Promise.race([this.executionTimeout.promise,this.cycleWakeDeferred.promise]),this.executionTimeout.cancel();else{if(t<=0)continue;await this.cycleWakeDeferred.promise}}this.cycleWakeDeferred=null}stop(){this.status==="started"&&(this.status="stopped",this.executionTimeout&&this.executionTimeout.cancel(),this.wakeCycle());for(let t of this.cronjobs.getArray())t.stop()}};var wn={years:i((e=1)=>e*3154e7,"years"),months:i((e=1)=>e*2628e6,"months"),weeks:i((e=1)=>e*6048e5,"weeks"),days:i((e=1)=>e*864e5,"days"),hours:i((e=1)=>e*36e5,"hours"),minutes:i((e=1)=>e*6e4,"minutes"),seconds:i((e=1)=>e*1e3,"seconds")},Ih=i(e=>{let t=0,r=i(n=>{t=t+n},"addMilliSeconds");return e.years&&r(wn.years(e.years)),e.months&&r(wn.months(e.months)),e.weeks&&r(wn.weeks(e.weeks)),e.days&&r(wn.days(e.days)),e.hours&&r(wn.hours(e.hours)),e.minutes&&r(wn.minutes(e.minutes)),e.seconds&&r(wn.seconds(e.seconds)),t},"getMilliSecondsFromUnits"),v_=i(e=>Vs(e),"getMilliSecondsAsHumanReadableString"),k_=i(e=>Ys.formatDistanceToNow(new Date(e)),"getMilliSecondsAsHumanReadableAgoTime");var Oh=class e extends Date{static{i(this,"ExtendedDate")}static fromMillis(t){return new e(t)}static fromDate(t){return new e(t.getTime())}static fromEuropeanDate(t){let r=/(.*)\.(.*)\.(.*)/.exec(t),o=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new e(o)}static fromHyphedDate(t){let r=new Date(t).getTime();return new e(r)}static fromEuropeanDateAndTime(t,r="12:00:00",n="Europe/Berlin"){let o=/(.*)\.(.*)\.(.*)/.exec(t),s=i(c=>`0${c}`.slice(-2),"sliceDate"),a=`${o[3]}-${s(o[2])}-${s(o[1])}T${r}`,u=ii.default(a).toDate().getTime();return new e(u)}constructor(t=Date.now()){super(t)}exportToEuropeanDate(){let t=this.exportToUnits();return`${t.dayString}.${t.monthString}.${t.yearString}`}exportToHyphedSortableDate(){let t=this.exportToUnits();return`${t.yearString}-${t.monthString}-${t.dayString}`}exportToUnits(){let t=["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:t[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(t){return ii.default(this.getTime()).format(t)}isToday(){return ii.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=Ih(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var Ah=class{static{i(this,"HrtMeasurement")}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 Mh=class{static{i(this,"Interval")}constructor(t){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=t}start(){this.status="started";let t=new Date;this.statusAuthorization=t,i(async()=>{for(;this.status==="started"&&this.statusAuthorization===t;)await he.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()},"runInterval")()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(t){this.intervalJobs.push(t)}executeIntervalJobs(){for(let t of this.intervalJobs)t()}};var No=class e{static{i(this,"TimeStamp")}static fromMilliSeconds(t){return new e(t)}static fromTimeStamp(t){let r=new e;return r.change=r.milliSeconds-t.milliSeconds,r}constructor(t){this.change=null,t?typeof t=="number"&&(this.date=new Date(t)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(t,r=0){return this.milliSeconds<t.milliSeconds-r}isOlderThan(t,r=0){return this.milliSeconds+r<t.milliSeconds}isYoungerThanOtherTimeStamp(t,r=0){return this.milliSeconds>t.milliSeconds+r}isYoungerThanMilliSeconds(t){let n=new e().epochtime-t,o=new e(n);return this.isYoungerThanOtherTimeStamp(o)}};var _h=class{static{i(this,"Timer")}get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=J.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new No;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=No.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 Cc=It(j0(),1);var Ph=class{static{i(this,"AsyncExecutionStack")}executionSlots=[];isProcessing=!1;nonExclusiveMaxConcurrency=1/0;nonExclusiveCurrentCount=0;nonExclusivePendingQueue=[];async getExclusiveExecutionSlot(t,r){let n=J.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=J.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}setNonExclusiveMaxConcurrency(t){if(!Number.isFinite(t)||t<1)throw new Error("nonExclusiveMaxConcurrency must be a finite number >= 1");this.nonExclusiveMaxConcurrency=t}getNonExclusiveMaxConcurrency(){return this.nonExclusiveMaxConcurrency}getActiveNonExclusiveCount(){return this.nonExclusiveCurrentCount}getPendingNonExclusiveCount(){return this.nonExclusivePendingQueue.length}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let t=this.executionSlots[0];if(t.mode==="exclusive")await this.executeExclusiveSlot(t),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(t){try{if(t.timeout){let r=new he.Timeout(t.timeout);try{let n=await Promise.race([t.funcToExecute(),r.promise.then(()=>{throw new Error("Timeout reached")})]);r.cancel(),t.executionDeferred.resolve(n)}catch(n){throw r.cancel(),n}}else{let r=await t.funcToExecute();t.executionDeferred.resolve(r)}}catch(r){t.executionDeferred.reject(r)}}async executeNonExclusiveSlots(t){let r=t.map(async n=>{await this.waitForNonExclusiveSlot();try{if(n.timeout){let o=new he.Timeout(n.timeout);try{let s=await Promise.race([n.funcToExecute(),o.promise.then(()=>{throw new Error("Timeout reached")})]);o.cancel(),n.executionDeferred.resolve(s)}catch(s){throw o.cancel(),s}}else{let o=await n.funcToExecute();n.executionDeferred.resolve(o)}}catch(o){n.executionDeferred.reject(o)}finally{this.releaseNonExclusiveSlot()}});await Promise.all(r)}waitForNonExclusiveSlot(){return this.nonExclusiveCurrentCount<this.nonExclusiveMaxConcurrency?(this.nonExclusiveCurrentCount++,Promise.resolve()):new Promise(t=>{this.nonExclusivePendingQueue.push(()=>{this.nonExclusiveCurrentCount++,t()})})}releaseNonExclusiveSlot(){this.nonExclusiveCurrentCount--;let t=this.nonExclusivePendingQueue.shift();t&&t()}};var Fh=class{static{i(this,"BackpressuredArray")}data;highWaterMark;hasSpace=new Oe.rxjs.Subject;itemsAvailable=new Oe.rxjs.Subject;isDestroyed=!1;constructor(t=16){this.data=[],this.highWaterMark=t}get length(){return this.data.length}push(t){this.data.push(t),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}pushMany(t){for(let r of t)this.push(r);return this.checkSpaceAvailable()}shift(){let t=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),t}peek(){return this.data[0]}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(t=>{if(this.checkSpaceAvailable()||this.isDestroyed)t();else{let r=this.hasSpace.subscribe({next:i(()=>{r.unsubscribe(),t()},"next"),complete:i(()=>{t()},"complete")})}})}waitForItems(){return new Promise(t=>{if(this.data.length>0||this.isDestroyed)t();else{let r=this.itemsAvailable.subscribe({next:i(()=>{r.unsubscribe(),t()},"next"),complete:i(()=>{t()},"complete")})}})}[Symbol.iterator](){return this.data[Symbol.iterator]()}destroy(){this.isDestroyed=!0,this.hasSpace.complete(),this.itemsAvailable.complete()}};var si=class e{static{i(this,"FastMap")}mapObject=new Map;isUniqueKey(t){return!this.mapObject.has(t)}has(t){return this.mapObject.has(t)}get size(){return this.mapObject.size}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject.set(t,r),!0):!1}getByKey(t){return this.mapObject.get(t)}removeFromMap(t){let r=this.mapObject.get(t);return this.mapObject.delete(t),r}getKeys(){return Array.from(this.mapObject.keys())}values(){return Array.from(this.mapObject.values())}entries(){return Array.from(this.mapObject.entries())}clean(){this.mapObject.clear()}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}[Symbol.iterator](){return this.mapObject.entries()}};var q0=i((e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),"uni"),qr=class e{static{i(this,"ObjectMap")}fastMap=new si;reverseMap=new Map;eventSubject=new Oe.rxjs.Subject;constructor(){}get length(){return this.fastMap.size}addMappedUnique(t,r){this.fastMap.addToMap(t,r),this.reverseMap.set(r,t)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.fastMap.removeFromMap(t);return r!==void 0&&(this.reverseMap.delete(r),this.eventSubject.next({operation:"remove",payload:r})),r}add(t){let r=this.reverseMap.get(t);if(r!==void 0)return r;let n=q0("key");return this.addMappedUnique(n,t),this.eventSubject.next({operation:"add",payload:t}),n}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return this.reverseMap.has(t)}getKeyForObject(t){return this.reverseMap.get(t)??null}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){return this.fastMap.values()}isEmpty(){return this.fastMap.size===0}remove(t){let r=this.reverseMap.get(t);if(r!==void 0){let n=this.fastMap.removeFromMap(r);return this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){let t=this.fastMap.getKeys();for(let r of t){let n=this.fastMap.removeFromMap(r);this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n})}}concat(t){let r=new e;r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap);for(let n of r.fastMap.getKeys())r.reverseMap.set(r.fastMap.getByKey(n),n);return r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap);for(let r of t.fastMap.getKeys())this.reverseMap.set(t.fastMap.getByKey(r),r)}map(t){return this.getArray().map(t)}filter(t){return this.getArray().filter(t)}reduce(t,r){return this.getArray().reduce(t,r)}[Symbol.iterator](){return this.getArray()[Symbol.iterator]()}destroy(){this.wipe(),this.reverseMap.clear(),this.eventSubject.complete()}};var Gs=class{static{i(this,"Interest")}options;interestMapRef;originalInterest;comparisonFunc;destructionTimer=new oi.Timer(1e4);isFullfilled=!1;isDestroyed=!1;fullfillmentStore=[];markLostTimeout=null;get comparisonString(){return this.comparisonFunc(this.originalInterest)}interestDeferred=new J.Deferred;interestFullfilled=this.interestDeferred.promise;fullfillInterest(t){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(t),this.destroy()}constructor(t,r,n,o){this.interestMapRef=t,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.isDestroyed||this.destroy()}),this.options?.markLostAfterDefault&&(this.markLostTimeout=new he.Timeout(this.options.markLostAfterDefault),this.markLostTimeout.promise.then(()=>{this.isDestroyed||this.markLost()}))}destroy(){this.isDestroyed||(this.isDestroyed=!0,this.destructionTimer.reset(),this.markLostTimeout&&(this.markLostTimeout.cancel(),this.markLostTimeout=null),this.fullfillmentStore=[],this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options?.defaultFullfillment&&(this.isFullfilled=!0,this.interestDeferred.resolve(this.options.defaultFullfillment)))}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var Lh=class{static{i(this,"InterestMap")}options;interestObjectMap=new qr;interestsByComparisonString=new Map;comparisonFunc;constructor(t,r={}){this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),o,s=this.interestsByComparisonString.get(n);return s?(o=s,o.renew()):(o=new Gs(this,t,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),this.interestObjectMap.add(o),this.interestsByComparisonString.set(n,o)),this.interestObservable.push(o),o}interestObservable=new Oe.ObservableIntake;removeInterest(t){this.interestObjectMap.findOneAndRemoveSync(r=>t.comparisonString===r.comparisonString),this.interestsByComparisonString.delete(t.comparisonString)}checkInterest(t){let r=this.comparisonFunc(t);return this.checkInterestByString(r)}checkInterestByString(t){return this.interestsByComparisonString.has(t)}informLostInterest(t){let r=this.findInterest(t);r&&r.markLost()}findInterest(t){let r=this.comparisonFunc(t);return this.interestsByComparisonString.get(r)??null}destroy(){let t=this.interestObjectMap.getArray();for(let r of t)r.destroy();this.interestObjectMap.wipe(),this.interestsByComparisonString.clear(),this.interestObservable.signalComplete()}};var Rh=class{static{i(this,"LimitedArray")}array=[];arrayLimit;constructor(t){this.arrayLimit=t}get length(){return this.array.length}addOne(t){this.array.unshift(t),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(t){for(let r of t)this.addOne(r)}setLimit(t){this.arrayLimit=t,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(this.array.length===0)return 0;if(typeof this.array[0]=="number"){let t=0;for(let r of this.array)t=t+r;return t/this.array.length}else return null}remove(t){let r=this.array.indexOf(t);return r!==-1?(this.array.splice(r,1),!0):!1}clear(){this.array.length=0}getArray(){return[...this.array]}[Symbol.iterator](){return this.array[Symbol.iterator]()}};var Bh=class{static{i(this,"LoopTracker")}referenceObjectMap=new qr;constructor(){}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}reset(){this.referenceObjectMap.wipe()}destroy(){this.referenceObjectMap.destroy()}};var Js=class{static{i(this,"Stringmap")}_stringArray=[];_triggerUntilTrueFunctionArray=[];constructor(){}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){this._stringArray=this._stringArray.filter(r=>r!==t),this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new Es.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=J.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}destroy(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}};var Ks=class{static{i(this,"TimedAggregtor")}options;storageArray=[];isStopped=!1;constructor(t){this.options=t}aggregationTimer;checkAggregationStatus(){if(this.isStopped)return;let t=i(()=>{this.aggregationTimer=new oi.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{if(this.isStopped){this.aggregationTimer=null;return}let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],t(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()},"addAggregationTimer");this.aggregationTimer||t()}add(t){this.isStopped||(this.storageArray.push(t),this.checkAggregationStatus())}stop(t=!1){if(this.isStopped=!0,this.aggregationTimer&&(this.aggregationTimer.reset(),this.aggregationTimer=null),t&&this.storageArray.length>0){let r=this.storageArray;this.storageArray=[],this.options.functionForAggregation(r)}else this.storageArray=[]}restart(){this.isStopped=!1}};var zh=class{static{i(this,"Tree")}symbolTree;constructor(){this.symbolTree=new Cc.default}initialize(t){return this.symbolTree.initialize(t)}hasChildren(t){return this.symbolTree.hasChildren(t)}firstChild(t){return this.symbolTree.firstChild(t)}lastChild(t){return this.symbolTree.lastChild(t)}previousSibling(t){return this.symbolTree.previousSibling(t)}nextSibling(t){return this.symbolTree.nextSibling(t)}parent(t){return this.symbolTree.parent(t)}lastInclusiveDescendant(t){return this.symbolTree.lastInclusiveDescendant(t)}preceding(t,r){return this.symbolTree.preceding(t,r)}following(t,r){return this.symbolTree.following(t,r)}childrenToArray(t,r){return this.symbolTree.childrenToArray(t,r)}ancestorsToArray(t,r){return this.symbolTree.ancestorsToArray(t,r)}treeToArray(t,r){return this.symbolTree.treeToArray(t,r)}childrenIterator(t,r){return this.symbolTree.childrenIterator(t,r)}previousSiblingsIterator(t){return this.symbolTree.previousSiblingsIterator(t)}nextSiblingsIterator(t){return this.symbolTree.nextSiblingsIterator(t)}ancestorsIterator(t){return this.symbolTree.ancestorsIterator(t)}treeIterator(t,r){return this.symbolTree.treeIterator(t,r)}index(t){return this.symbolTree.index(t)}childrenCount(t){return this.symbolTree.childrenCount(t)}compareTreePosition(t,r){return this.symbolTree.compareTreePosition(t,r)}remove(t){return this.symbolTree.remove(t)}insertBefore(t,r){return this.symbolTree.insertBefore(t,r)}insertAfter(t,r){return this.symbolTree.insertAfter(t,r)}prependChild(t,r){return this.symbolTree.prependChild(t,r)}appendChild(t,r){return this.symbolTree.appendChild(t,r)}toJsonWithHierachy(t){let r=i(n=>{let o=[];if(this.hasChildren(n)){let s=this.childrenToArray(n,{});for(let a of s)o.push(r(a))}return{data:n,children:o}},"buildNode");return r(t)}fromJsonWithHierachy(t,r){let n=i((o,s)=>{let a=r?r(o.data):o.data;this.initialize(a),s&&this.appendChild(s,a);for(let l of o.children)n(l,a);return a},"buildTree");return n(t)}};var Fo={};se(Fo,{base64ToUint8Array:()=>V_,ensurePureUint8Array:()=>J_,isBufferLike:()=>G_,isUint8Array:()=>Q_,uInt8ArrayExtras:()=>q_,uInt8ArrayToBase64:()=>Y_});var Tn={};se(Tn,{areUint8ArraysEqual:()=>__,assertUint8Array:()=>Sn,assertUint8ArrayOrArrayBuffer:()=>J0,base64ToString:()=>B_,base64ToUint8Array:()=>ev,compareUint8Arrays:()=>N_,concatUint8Arrays:()=>M_,getUintBE:()=>U_,hexToUint8Array:()=>H_,includes:()=>W_,indexOf:()=>tv,isUint8Array:()=>$h,stringToBase64:()=>R_,stringToUint8Array:()=>X0,toUint8Array:()=>A_,uint8ArrayToBase64:()=>Z0,uint8ArrayToHex:()=>$_,uint8ArrayToString:()=>K0});var E_=Object.prototype.toString,D_="[object Uint8Array]",C_="[object ArrayBuffer]";function Y0(e,t,r){return e?e.constructor===t?!0:E_.call(e)===r:!1}i(Y0,"isType");function $h(e){return Y0(e,Uint8Array,D_)}i($h,"isUint8Array");function I_(e){return Y0(e,ArrayBuffer,C_)}i(I_,"isArrayBuffer");function O_(e){return $h(e)||I_(e)}i(O_,"isUint8ArrayOrArrayBuffer");function Sn(e){if(!$h(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}i(Sn,"assertUint8Array");function J0(e){if(!O_(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}i(J0,"assertUint8ArrayOrArrayBuffer");function A_(e){if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new TypeError(`Unsupported value, got \`${typeof e}\`.`)}i(A_,"toUint8Array");function M_(e,t){if(e.length===0)return new Uint8Array(0);t??=e.reduce((o,s)=>o+s.length,0);let r=new Uint8Array(t),n=0;for(let o of e)Sn(o),r.set(o,n),n+=o.length;return r}i(M_,"concatUint8Arrays");function __(e,t){if(Sn(e),Sn(t),e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}i(__,"areUint8ArraysEqual");function N_(e,t){Sn(e),Sn(t);let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]-t[n];if(o!==0)return Math.sign(o)}return Math.sign(e.length-t.length)}i(N_,"compareUint8Arrays");var V0={utf8:new globalThis.TextDecoder("utf8")};function K0(e,t="utf8"){return J0(e),V0[t]??=new globalThis.TextDecoder(t),V0[t].decode(e)}i(K0,"uint8ArrayToString");function Xs(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}i(Xs,"assertString");var P_=new globalThis.TextEncoder;function X0(e){return Xs(e),P_.encode(e)}i(X0,"stringToUint8Array");function F_(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}i(F_,"base64ToBase64Url");function L_(e){let t=e.replaceAll("-","+").replaceAll("_","/"),r=(4-t.length%4)%4;return t+"=".repeat(r)}i(L_,"base64UrlToBase64");var Q0=65535;function Z0(e,{urlSafe:t=!1}={}){Sn(e);let r="";for(let n=0;n<e.length;n+=Q0){let o=e.subarray(n,n+Q0);r+=globalThis.btoa(String.fromCodePoint.apply(void 0,o))}return t?F_(r):r}i(Z0,"uint8ArrayToBase64");function ev(e){return Xs(e),Uint8Array.from(globalThis.atob(L_(e)),t=>t.codePointAt(0))}i(ev,"base64ToUint8Array");function R_(e,{urlSafe:t=!1}={}){return Xs(e),Z0(X0(e),{urlSafe:t})}i(R_,"stringToBase64");function B_(e){return Xs(e),K0(ev(e))}i(B_,"base64ToString");var z_=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function $_(e){Sn(e);let t="";for(let r=0;r<e.length;r++)t+=z_[e[r]];return t}i($_,"uint8ArrayToHex");var G0={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 H_(e){if(Xs(e),e.length%2!==0)throw new Error("Invalid Hex string length.");let t=e.length/2,r=new Uint8Array(t);for(let n=0;n<t;n++){let o=G0[e[n*2]],s=G0[e[n*2+1]];if(o===void 0||s===void 0)throw new Error(`Invalid Hex character encountered at position ${n*2}`);r[n]=o<<4|s}return r}i(H_,"hexToUint8Array");function U_(e){let{byteLength:t}=e;if(t===6)return e.getUint16(0)*2**32+e.getUint32(2);if(t===5)return e.getUint8(0)*2**32+e.getUint32(1);if(t===4)return e.getUint32(0);if(t===3)return e.getUint8(0)*2**16+e.getUint16(1);if(t===2)return e.getUint16(0);if(t===1)return e.getUint8(0)}i(U_,"getUintBE");function tv(e,t){let r=e.length,n=t.length;if(n===0||n>r)return-1;let o=r-n;for(let s=0;s<=o;s++){let a=!0;for(let l=0;l<n;l++)if(e[s+l]!==t[l]){a=!1;break}if(a)return s}return-1}i(tv,"indexOf");function W_(e,t){return tv(e,t)!==-1}i(W_,"includes");var q_=Tn;function Y_(e){return Tn.uint8ArrayToBase64(e)}i(Y_,"uInt8ArrayToBase64");function V_(e){return Tn.base64ToUint8Array(e)}i(V_,"base64ToUint8Array");var Q_=i(e=>Tn.isUint8Array(e),"isUint8Array");function G_(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}i(G_,"isBufferLike");function J_(e){let t=new Uint8Array(e.length);return t.set(e),t}i(J_,"ensurePureUint8Array");var ra={};se(ra,{Guard:()=>Zs,GuardError:()=>ea,GuardSet:()=>ta,passGuardsOrReject:()=>K_});var Zs=class{static{i(this,"Guard")}constructor(t,r){this.guardFunction=t,this.options=r}async exec(t){return await this.guardFunction(t)}async getFailedHint(t){return await this.exec(t)?null:this.options.failedHint}};var ea=class extends Error{static{i(this,"GuardError")}constructor(t){super(t),this.name="GuardError"}};var ta=class extends Zs{static{i(this,"GuardSet")}constructor(t=[]){super(async r=>this.allGuardsPass(r)),this.guards=t}async execAllWithData(t,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let s of this.guards){let a=s.exec(t);if(r.mode==="serial"&&await a,n.push(a),r.stopOnFail&&!await a)return await Promise.all(n)}return await Promise.all(n)}async allGuardsPass(t,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(t,r)).every(o=>o)}async anyGuardsPass(t){return(await this.execAllWithData(t,{mode:"parallel",stopOnFail:!1})).some(n=>n)}getFailedHint(t){for(let r of this.guards){let n=r.getFailedHint(t);if(n)return n}}};var K_=i(async(e,t)=>{let r=new ta(t);if(!await r.allGuardsPass(e)){let o=await r.getFailedHint(e);throw new ea(`Guards failed:
33
33
  ${o}
34
- `)}},"passGuardsOrReject");var di={};se(di,{CacheManager:()=>Uo,CacheStore:()=>Wo,InterceptorManager:()=>Lo,RequestDeduplicator:()=>qo,RetryManager:()=>jo,WebrequestClient:()=>mi,createConditionalHeaders:()=>Gc,extractCacheMetadata:()=>_r,headersToObject:()=>Jc,isFresh:()=>la,objectToHeaders:()=>uk,requiresRevalidation:()=>ua,webrequest:()=>Wt});var Lo=class{static{i(this,"InterceptorManager")}constructor(){this.requestInterceptors=[],this.responseInterceptors=[],this.errorInterceptors=[]}addRequestInterceptor(t){this.requestInterceptors.push(t)}addResponseInterceptor(t){this.responseInterceptors.push(t)}addErrorInterceptor(t){this.errorInterceptors.push(t)}removeRequestInterceptor(t){let r=this.requestInterceptors.indexOf(t);r>-1&&this.requestInterceptors.splice(r,1)}removeResponseInterceptor(t){let r=this.responseInterceptors.indexOf(t);r>-1&&this.responseInterceptors.splice(r,1)}removeErrorInterceptor(t){let r=this.errorInterceptors.indexOf(t);r>-1&&this.errorInterceptors.splice(r,1)}clearAll(){this.requestInterceptors=[],this.responseInterceptors=[],this.errorInterceptors=[]}async processRequest(t){let r=t;for(let n of this.requestInterceptors)try{r=await n(r)}catch(o){throw await this.processError(o instanceof Error?o:new Error(String(o)))}return r}async processResponse(t){let r=t;for(let n of this.responseInterceptors)try{r=await n(r)}catch(o){throw await this.processError(o instanceof Error?o:new Error(String(o)))}return r}async processError(t){let r=t;for(let n of this.errorInterceptors)try{r=await n(r)}catch(o){r=o instanceof Error?o:new Error(String(o))}return r}getInterceptorCounts(){return{request:this.requestInterceptors.length,response:this.responseInterceptors.length,error:this.errorInterceptors.length}}};var Yr={};se(Yr,{Smartenv:()=>Hh});var Hh=class{static{i(this,"Smartenv")}constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t,r){if(!this.isNode&&!this.isDeno&&!this.isBun){console.error(`You tried to load a server module in a wrong context: ${t}. This does not throw.`);return}let n=await new Function(`return import('${t}')`)();return r&&await r(n),n}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=J.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=t,document.head.appendChild(o)}return await n.promise,r()}get runtimeEnv(){return typeof globalThis.Deno<"u"&&typeof globalThis.Deno?.version<"u"?"deno":typeof globalThis.Bun<"u"&&typeof globalThis.Bun?.version<"u"?"bun":typeof globalThis.process<"u"&&typeof globalThis.process?.versions?.node<"u"?"node":(typeof globalThis.window<"u"&&typeof globalThis.document<"u","browser")}get isBrowser(){return this.runtimeEnv==="browser"}get isNode(){return this.runtimeEnv==="node"}get isDeno(){return this.runtimeEnv==="deno"}get isBun(){return this.runtimeEnv==="bun"}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get nodeVersion(){return this.isNode?process.version:"undefined"}get denoVersion(){return this.isDeno?globalThis.Deno.version.deno:"undefined"}get bunVersion(){return this.isBun?globalThis.Bun.version:"undefined"}async getSafeModuleFor(t,r,n){let o;if(Array.isArray(t)?o=t.flatMap(s=>s==="server"?["node","deno","bun"]:[s]):t==="server"?o=["node","deno","bun"]:o=[t],!o.includes(this.runtimeEnv)){console.warn(`Module "${r}" requested for runtime(s) [${o.join(", ")}] but current runtime is "${this.runtimeEnv}". Skipping load.`);return}if(this.isNode||this.isDeno||this.isBun)return await this.getSafeNodeModule(r);if(this.isBrowser){if(!n){console.error(`Browser module load requires getFunction parameter for "${r}"`);return}return await this.getSafeWebModule(r,n)}}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)):this.isDeno?(console.log("running on DENO"),console.log("deno version is "+this.denoVersion)):this.isBun?(console.log("running on BUN"),console.log("bun version is "+this.bunVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var Et={};se(Et,{Smartjson:()=>pm,deepEqualJsonLStrings:()=>tF,deepEqualObjects:()=>Zv,foldDec:()=>eF,parse:()=>Yc,parseBase64:()=>KN,parseJsonL:()=>fm,stableOneWayStringify:()=>JN,stringify:()=>hi,stringifyBase64:()=>ZN,stringifyJsonL:()=>GN,stringifyPretty:()=>XN});var xt={};se(xt,{Base64:()=>Mc,Domain:()=>Pc,GitRepo:()=>Nc,base64:()=>Ro,create:()=>Cc,docker:()=>Oc,indent:()=>Ic,normalize:()=>Ac,type:()=>_c});var Cc={};se(Cc,{createCryptoRandomString:()=>oP,createRandomString:()=>iP});var Wh=St($p(),1);var rP=i((e,t)=>{if(typeof globalThis<"u"&&globalThis.crypto&&globalThis.crypto.getRandomValues){let r=t-e,n=new Uint32Array(1);return globalThis.crypto.getRandomValues(n),e+n[0]%r}else return Math.floor(Math.random()*(t-e))+e},"getRandomInt"),nP=i((e,t,r)=>{let n={A:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",a:"abcdefghijklmnopqrstuvwxyz",0:"0123456789","!":"!@#$%^&*()_+-=[]{}|;:,.<>?","*":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=[]{}|;:,.<>?"},o=e;t&&t>e.length?o=e.repeat(Math.ceil(t/e.length)).slice(0,t):t&&(o=e.slice(0,t));let s="";for(let a of o)if(n[a]){let l=n[a],u=rP(0,l.length);s+=l[u]}else s+=a;return s},"customRandomatic"),iP=i((e,t,r)=>nP(e,t,r),"createRandomString"),oP=i(()=>Wh.uni(),"createCryptoRandomString");var Oc={};se(Oc,{makeEnvObject:()=>sP});var sP=i(function(e){let t={},r=/(.*)=(.*)/;if(typeof e<"u")for(let n in e){let o=r.exec(e[n]);t[o[1]]=o[2]}return t},"makeEnvObject");var Ic={};se(Ic,{indent:()=>lP,indentWithPrefix:()=>uP,normalize:()=>cP});var Uh=i(e=>{let t=e.split(`
35
- `);return aP(t)},"splitStringAtLineBreak"),jh=i(e=>{let t="";for(let r of e)t=t+r+`
36
- `;return t},"joinStringWithLineBreaks"),aP=i(e=>{let t=/^[\s]*$/;return t.test(e[0])&&e.shift(),t.test(e[e.length-1])&&e.pop(),e},"cleanStringArray"),lP=i((e,t)=>{let r=Uh(e);for(let o of r)o=" ".repeat(t)+o;return jh(r)},"indent"),uP=i((e,t)=>{let r,n=Uh(e),o=[];for(let s of n)o.push(t+s);return r=jh(o),r},"indentWithPrefix"),cP=i(e=>{let t,r=Uh(e),n,o=/^(\s*)/,s=/^(\s*)$/;for(let l of r){let u=o.exec(l)[1];(typeof n>"u"||u.length<n)&&!s.test(l)&&(n=u.length)}let a=[];for(let l of r)a.push(l.substr(n));return t=jh(a),t},"normalize");var Ac={};se(Ac,{replaceAll:()=>iv,standard:()=>pP});var iv=i((e,t,r)=>e.replace(new RegExp(t,"g"),r),"replaceAll"),fP=i(e=>{let t=e.split(`
34
+ `)}},"passGuardsOrReject");var pi={};se(pi,{CacheManager:()=>Wo,CacheStore:()=>Uo,InterceptorManager:()=>Lo,RequestDeduplicator:()=>qo,RetryManager:()=>jo,WebrequestClient:()=>fi,createConditionalHeaders:()=>Jc,extractCacheMetadata:()=>_r,headersToObject:()=>Kc,isFresh:()=>ua,objectToHeaders:()=>ak,requiresRevalidation:()=>ca,webrequest:()=>Ut});var Lo=class{static{i(this,"InterceptorManager")}constructor(){this.requestInterceptors=[],this.responseInterceptors=[],this.errorInterceptors=[]}addRequestInterceptor(t){this.requestInterceptors.push(t)}addResponseInterceptor(t){this.responseInterceptors.push(t)}addErrorInterceptor(t){this.errorInterceptors.push(t)}removeRequestInterceptor(t){let r=this.requestInterceptors.indexOf(t);r>-1&&this.requestInterceptors.splice(r,1)}removeResponseInterceptor(t){let r=this.responseInterceptors.indexOf(t);r>-1&&this.responseInterceptors.splice(r,1)}removeErrorInterceptor(t){let r=this.errorInterceptors.indexOf(t);r>-1&&this.errorInterceptors.splice(r,1)}clearAll(){this.requestInterceptors=[],this.responseInterceptors=[],this.errorInterceptors=[]}async processRequest(t){let r=t;for(let n of this.requestInterceptors)try{r=await n(r)}catch(o){throw await this.processError(o instanceof Error?o:new Error(String(o)))}return r}async processResponse(t){let r=t;for(let n of this.responseInterceptors)try{r=await n(r)}catch(o){throw await this.processError(o instanceof Error?o:new Error(String(o)))}return r}async processError(t){let r=t;for(let n of this.errorInterceptors)try{r=await n(r)}catch(o){r=o instanceof Error?o:new Error(String(o))}return r}getInterceptorCounts(){return{request:this.requestInterceptors.length,response:this.responseInterceptors.length,error:this.errorInterceptors.length}}};var Yr={};se(Yr,{Smartenv:()=>Hh});var Hh=class{static{i(this,"Smartenv")}constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t,r){if(!this.isNode&&!this.isDeno&&!this.isBun){console.error(`You tried to load a server module in a wrong context: ${t}. This does not throw.`);return}let n=await new Function(`return import('${t}')`)();return r&&await r(n),n}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=J.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=t,document.head.appendChild(o)}return await n.promise,r()}get runtimeEnv(){return typeof globalThis.Deno<"u"&&typeof globalThis.Deno?.version<"u"?"deno":typeof globalThis.Bun<"u"&&typeof globalThis.Bun?.version<"u"?"bun":typeof globalThis.process<"u"&&typeof globalThis.process?.versions?.node<"u"?"node":(typeof globalThis.window<"u"&&typeof globalThis.document<"u","browser")}get isBrowser(){return this.runtimeEnv==="browser"}get isNode(){return this.runtimeEnv==="node"}get isDeno(){return this.runtimeEnv==="deno"}get isBun(){return this.runtimeEnv==="bun"}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get nodeVersion(){return this.isNode?process.version:"undefined"}get denoVersion(){return this.isDeno?globalThis.Deno.version.deno:"undefined"}get bunVersion(){return this.isBun?globalThis.Bun.version:"undefined"}async getSafeModuleFor(t,r,n){let o;if(Array.isArray(t)?o=t.flatMap(s=>s==="server"?["node","deno","bun"]:[s]):t==="server"?o=["node","deno","bun"]:o=[t],!o.includes(this.runtimeEnv)){console.warn(`Module "${r}" requested for runtime(s) [${o.join(", ")}] but current runtime is "${this.runtimeEnv}". Skipping load.`);return}if(this.isNode||this.isDeno||this.isBun)return await this.getSafeNodeModule(r);if(this.isBrowser){if(!n){console.error(`Browser module load requires getFunction parameter for "${r}"`);return}return await this.getSafeWebModule(r,n)}}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)):this.isDeno?(console.log("running on DENO"),console.log("deno version is "+this.denoVersion)):this.isBun?(console.log("running on BUN"),console.log("bun version is "+this.bunVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var Tt={};se(Tt,{Smartjson:()=>pm,deepEqualJsonLStrings:()=>ZP,deepEqualObjects:()=>Jv,foldDec:()=>XP,parse:()=>Vc,parseBase64:()=>KP,parseJsonL:()=>fm,stableOneWayStringify:()=>QP,stringify:()=>ci,stringifyBase64:()=>JP,stringifyJsonL:()=>VP,stringifyPretty:()=>GP});var St={};se(St,{Base64:()=>_c,Domain:()=>Pc,GitRepo:()=>Fc,base64:()=>Ro,create:()=>Ic,docker:()=>Oc,indent:()=>Ac,normalize:()=>Mc,type:()=>Nc});var Ic={};se(Ic,{createCryptoRandomString:()=>nN,createRandomString:()=>rN});var Uh=It($p(),1);var eN=i((e,t)=>{if(typeof globalThis<"u"&&globalThis.crypto&&globalThis.crypto.getRandomValues){let r=t-e,n=new Uint32Array(1);return globalThis.crypto.getRandomValues(n),e+n[0]%r}else return Math.floor(Math.random()*(t-e))+e},"getRandomInt"),tN=i((e,t,r)=>{let n={A:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",a:"abcdefghijklmnopqrstuvwxyz",0:"0123456789","!":"!@#$%^&*()_+-=[]{}|;:,.<>?","*":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=[]{}|;:,.<>?"},o=e;t&&t>e.length?o=e.repeat(Math.ceil(t/e.length)).slice(0,t):t&&(o=e.slice(0,t));let s="";for(let a of o)if(n[a]){let l=n[a],u=eN(0,l.length);s+=l[u]}else s+=a;return s},"customRandomatic"),rN=i((e,t,r)=>tN(e,t,r),"createRandomString"),nN=i(()=>Uh.uni(),"createCryptoRandomString");var Oc={};se(Oc,{makeEnvObject:()=>iN});var iN=i(function(e){let t={},r=/(.*)=(.*)/;if(typeof e<"u")for(let n in e){let o=r.exec(e[n]);t[o[1]]=o[2]}return t},"makeEnvObject");var Ac={};se(Ac,{indent:()=>sN,indentWithPrefix:()=>aN,normalize:()=>lN});var Wh=i(e=>{let t=e.split(`
35
+ `);return oN(t)},"splitStringAtLineBreak"),jh=i(e=>{let t="";for(let r of e)t=t+r+`
36
+ `;return t},"joinStringWithLineBreaks"),oN=i(e=>{let t=/^[\s]*$/;return t.test(e[0])&&e.shift(),t.test(e[e.length-1])&&e.pop(),e},"cleanStringArray"),sN=i((e,t)=>{let r=Wh(e);for(let o of r)o=" ".repeat(t)+o;return jh(r)},"indent"),aN=i((e,t)=>{let r,n=Wh(e),o=[];for(let s of n)o.push(t+s);return r=jh(o),r},"indentWithPrefix"),lN=i(e=>{let t,r=Wh(e),n,o=/^(\s*)/,s=/^(\s*)$/;for(let l of r){let u=o.exec(l)[1];(typeof n>"u"||u.length<n)&&!s.test(l)&&(n=u.length)}let a=[];for(let l of r)a.push(l.substr(n));return t=jh(a),t},"normalize");var Mc={};se(Mc,{replaceAll:()=>rv,standard:()=>cN});var rv=i((e,t,r)=>e.replace(new RegExp(t,"g"),r),"replaceAll"),uN=i(e=>{let t=e.split(`
37
37
  `),r=1/0;for(let n of t)if(n.trim().length>0){let o=n.match(/^(\s*)/);o&&(r=Math.min(r,o[1].length))}return r===1/0||r===0?e:t.map(n=>n.length>=r?n.slice(r):n).join(`
38
- `)},"stripIndent"),pP=i((e,t)=>{let r=e;return(!t||t.stripIndent)&&(r=fP(r)),(!t||t.normalizeNewline)&&(r=r.replace(/\r\n/g,`
39
- `)),(!t||t.replaceTabs)&&(r=iv(r," /"," ")),(!t||t.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!t||t.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r},"standard");var _c={};se(_c,{isBase64:()=>mP,isUtf8:()=>hP});var qh={encode:i(e=>{if(typeof Buffer<"u")return Buffer.from(e,"utf8").toString("base64");if(typeof btoa<"u"){let t=new TextEncoder().encode(e),r=Array.from(t,n=>String.fromCharCode(n)).join("");return btoa(r)}else{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new TextEncoder().encode(e),n="",o=0;for(;o<r.length;){let s=r[o++],a=o<r.length?r[o++]:0,l=o<r.length?r[o++]:0,u=s<<16|a<<8|l;n+=t.charAt(u>>18&63),n+=t.charAt(u>>12&63),n+=o-2<r.length?t.charAt(u>>6&63):"=",n+=o-1<r.length?t.charAt(u&63):"="}return n}},"encode"),decode:i(e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"=");if(typeof Buffer<"u")return Buffer.from(t,"base64").toString("utf8");if(typeof atob<"u"){let r=atob(t),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return new TextDecoder().decode(n)}else{let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=[],o=0;for(;o<t.length;){let s=r.indexOf(t.charAt(o++)),a=r.indexOf(t.charAt(o++)),l=r.indexOf(t.charAt(o++)),u=r.indexOf(t.charAt(o++)),c=s<<18|a<<12|l<<6|u;n.push(c>>16&255),l!==64&&n.push(c>>8&255),u!==64&&n.push(c&255)}return new TextDecoder().decode(new Uint8Array(n))}},"decode")},Mc=class{static{i(this,"Base64")}constructor(t,r){switch(r){case"string":this.refString=t;break;case"base64":this.refString=Ro.decode(t);break;case"base64uri":this.refString=Ro.decode(t)}}get simpleString(){return this.refString}get base64String(){return Ro.encode(this.refString)}get base64UriString(){return Ro.encodeUri(this.refString)}},Ro={encode:i(e=>qh.encode(e),"encode"),encodeUri:i(e=>qh.encode(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),"encodeUri"),decode:i(e=>qh.decode(e),"decode"),isBase64:i(e=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(e),"isBase64")};var hP=i(e=>{let r=new TextEncoder().encode(e),n=0;for(;n<r.length;){if(r[n]===9||r[n]===10||r[n]===13||32<=r[n]&&r[n]<=126){n+=1;continue}if(194<=r[n]&&r[n]<=223&&128<=r[n+1]&&r[n+1]<=191){n+=2;continue}if(r[n]===224&&160<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||(225<=r[n]&&r[n]<=236||r[n]===238||r[n]===239)&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||r[n]===237&&128<=r[n+1]&&r[n+1]<=159&&128<=r[n+2]&&r[n+2]<=191){n+=3;continue}if(r[n]===240&&144<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||241<=r[n]&&r[n]<=243&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||r[n]===244&&128<=r[n+1]&&r[n+1]<=143&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191){n+=4;continue}return!1}return!0},"isUtf8"),mP=i(e=>{let t=/[^A-Z0-9+\/=]/i,r=e.length;if(!r||r%4!==0||t.test(e))return!1;let n=e.indexOf("=");return n===-1||n===r-1||n===r-2&&e[r-1]==="="},"isBase64");var Pc=class{static{i(this,"Domain")}constructor(t){this.protocol=this._protocolRegex(t),this.protocol||(t=`https://${t}`),this.nodeParsedUrl=new URL(t),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(t.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let n=1;n<=5;n++)if(r[n-1]){let o=r[n-1];this["level"+n.toString()]=o,this.fullName===""?this.fullName=o:this.fullName=o+"."+this.fullName}else this["level"+n.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(t){let n=/([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(t);return n.reverse(),n.pop(),n.filter(function(s){return s!==""})}_protocolRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}_portRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}};var Nc=class{static{i(this,"GitRepo")}constructor(t,r){let n=dP(t);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=ov(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=ov(this.host,this.user,this.repo,this.accessToken,"https")}},dP=i(function(e){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(e)},"gitRegex"),ov=i(function(e,t,r,n="",o){let s;switch(n!==""&&(n=n+"@"),o){case"https":s="https://"+n+e+"/"+t+"/"+r+".git";break;case"ssh":s="git@"+e+":"+t+"/"+r+".git";break;default:console.error("Link Type "+o+" not known");break}return s},"gitLink");var Uc=St(sm(),1),Qv=St(am(),1),jc=Qv.default;function jN(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(String.fromCharCode(...e))}i(jN,"base64Encode");function qN(e){if(typeof Buffer<"u"){let t=Buffer.from(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}i(qN,"base64Decode");function um(e,t){return JSON.stringify(e,qc,t)}i(um,"stringify");function cm(e){return JSON.parse(e,Gv)}i(cm,"parse");var qc=i((e,t)=>{if(VN(t)){let r;if("data"in t&&Jv(t.data))r=new Uint8Array(t.data);else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+jN(r)}}return t},"replacer"),Gv=i((e,t)=>{if(YN(t)&&lm(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return qN(r)}return t},"reviver");function YN(e){return Xv(e)&&e.type==="EncodedBuffer"&&lm(e.data)}i(YN,"isEncodedBuffer");function VN(e){return Xv(e)&&e.type==="Buffer"&&(Jv(e.data)||lm(e.data))||e instanceof Uint8Array}i(VN,"isBufferLike");function Jv(e){return Array.isArray(e)}i(Jv,"isArray");function lm(e){return typeof e=="string"}i(lm,"isString");function Xv(e){return typeof e=="object"&&e!==null}i(Xv,"isObject");var Yc=cm,fm=i(e=>e.split(`
40
- `).reduce((n,o)=>{let s=o.trim();return s.length>0&&n.push(Yc(s)),n},[]),"parseJsonL"),GN=i(e=>e.map(t=>hi(t)).join(`
41
- `),"stringifyJsonL"),JN=i((e,t,r={})=>{let n=new WeakSet,o=i(l=>{if(l===null||typeof l!="object")return l;let u=qc("",l);if(u&&u.type==="EncodedBuffer"&&typeof u.data=="string")return u;if(n.has(l))return"__cycle__";if(n.add(l),Array.isArray(l))return l.map(f=>o(f));let c={};for(let f of Object.keys(l))try{c[f]=o(l[f])}catch{c[f]="__unserializable__"}return c},"sanitize"),s=o(e),a={...r,cycles:!0};if(t&&!a.cmp){let l=new Map;t.forEach((u,c)=>l.set(u,c)),a.cmp=(u,c)=>{let f=l.has(u.key)?l.get(u.key):Number.POSITIVE_INFINITY,p=l.has(c.key)?l.get(c.key):Number.POSITIVE_INFINITY;return f!==p?f-p:u.key<c.key?-1:u.key>c.key?1:0}}return jc(s,a)},"stableOneWayStringify"),hi=i((e,t,r={})=>{let n=um(e);e=JSON.parse(n);let o={...r};if(t&&!o.cmp){let a=new Map;t.forEach((l,u)=>a.set(l,u)),o.cmp=(l,u)=>{let c=a.has(l.key)?a.get(l.key):Number.POSITIVE_INFINITY,f=a.has(u.key)?a.get(u.key):Number.POSITIVE_INFINITY;return c!==f?c-f:l.key<u.key?-1:l.key>u.key?1:0}}return jc(e,o)},"stringify"),XN=i(e=>{let t=hi(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},"stringifyPretty"),ZN=i((...e)=>{let t=hi(...e);return xt.base64.encodeUri(t)},"stringifyBase64"),KN=i(e=>{let t=xt.base64,n=(t.decodeUri||t.decode)(e);return Yc(n)},"parseBase64"),pm=class e{static{i(this,"Smartjson")}static enfoldFromObject(t){let r=new this,n=r.saveableProperties||[];for(let o in t)n.indexOf(o)!==-1&&(r[o]=t[o]);return r}static enfoldFromJson(t){let r=Yc(t);return this.enfoldFromObject(r)}saveableProperties;foldToObject(){let t=new Set;return t.add(this),this.foldToObjectInternal(t)}foldToObjectInternal(t){let r={},n=i(s=>{if(s instanceof e){if(t.has(s))throw new Error("cycle detected");return t.add(s),s.foldToObjectInternal(t)}return Array.isArray(s)?s.map(a=>n(a)):Uc.default(s)},"foldValue"),o=this.saveableProperties||[];for(let s of o){let a=this[s];r[s]=n(a)}return r}foldToJson(){let t=this.foldToObject();return hi(t)}},eF=i(()=>(e,t)=>{let r=String(t.name);t.addInitializer(function(){this.saveableProperties||(this.saveableProperties=[]),this.saveableProperties.includes(r)||this.saveableProperties.push(r)})},"foldDec"),Zv=i((e,t)=>{let r=hi(e),n=hi(t);return r===n},"deepEqualObjects"),tF=i((e,t)=>{let r=fm(e),n=fm(t);return Zv(r,n)},"deepEqualJsonLStrings");var or={};se(or,{TypedrequestCache:()=>wm,WebStore:()=>aa});var sa={};se(sa,{deleteDB:()=>ak,openDB:()=>sk,unwrap:()=>oa,wrap:()=>Mr});var hm=i((e,t)=>t.some(r=>e instanceof r),"instanceOfAny"),Kv,ek;function rF(){return Kv||(Kv=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}i(rF,"getIdbProxyableTypes");function nF(){return ek||(ek=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}i(nF,"getCursorAdvanceMethods");var mm=new WeakMap,dm=new WeakMap,Vc=new WeakMap;function iF(e){let t=new Promise((r,n)=>{let o=i(()=>{e.removeEventListener("success",s),e.removeEventListener("error",a)},"unlisten"),s=i(()=>{r(Mr(e.result)),o()},"success"),a=i(()=>{n(e.error),o()},"error");e.addEventListener("success",s),e.addEventListener("error",a)});return Vc.set(t,e),t}i(iF,"promisifyRequest");function oF(e){if(mm.has(e))return;let t=new Promise((r,n)=>{let o=i(()=>{e.removeEventListener("complete",s),e.removeEventListener("error",a),e.removeEventListener("abort",a)},"unlisten"),s=i(()=>{r(),o()},"complete"),a=i(()=>{n(e.error||new DOMException("AbortError","AbortError")),o()},"error");e.addEventListener("complete",s),e.addEventListener("error",a),e.addEventListener("abort",a)});mm.set(e,t)}i(oF,"cacheDonePromiseForTransaction");var gm={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return mm.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Mr(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function tk(e){gm=e(gm)}i(tk,"replaceTraps");function sF(e){return nF().includes(e)?function(...t){return e.apply(oa(this),t),Mr(this.request)}:function(...t){return Mr(e.apply(oa(this),t))}}i(sF,"wrapFunction");function aF(e){return typeof e=="function"?sF(e):(e instanceof IDBTransaction&&oF(e),hm(e,rF())?new Proxy(e,gm):e)}i(aF,"transformCachableValue");function Mr(e){if(e instanceof IDBRequest)return iF(e);if(dm.has(e))return dm.get(e);let t=aF(e);return t!==e&&(dm.set(e,t),Vc.set(t,e)),t}i(Mr,"wrap");var oa=i(e=>Vc.get(e),"unwrap");function sk(e,t,{blocked:r,upgrade:n,blocking:o,terminated:s}={}){let a=indexedDB.open(e,t),l=Mr(a);return n&&a.addEventListener("upgradeneeded",u=>{n(Mr(a.result),u.oldVersion,u.newVersion,Mr(a.transaction),u)}),r&&a.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),l.then(u=>{s&&u.addEventListener("close",()=>s()),o&&u.addEventListener("versionchange",c=>o(c.oldVersion,c.newVersion,c))}).catch(()=>{}),l}i(sk,"openDB");function ak(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",n=>t(n.oldVersion,n)),Mr(r).then(()=>{})}i(ak,"deleteDB");var lF=["get","getKey","getAll","getAllKeys","count"],uF=["put","add","delete","clear"],xm=new Map;function rk(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(xm.get(t))return xm.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,o=uF.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||lF.includes(r)))return;let s=i(async function(a,...l){let u=this.transaction(a,o?"readwrite":"readonly"),c=u.store;return n&&(c=c.index(l.shift())),(await Promise.all([c[r](...l),o&&u.done]))[0]},"method");return xm.set(t,s),s}i(rk,"getMethod"),tk(e=>({...e,get:i((t,r,n)=>rk(t,r)||e.get(t,r,n),"get"),has:i((t,r)=>!!rk(t,r)||e.has(t,r),"has")}));var cF=["continue","continuePrimaryKey","advance"],nk={},ym=new WeakMap,ik=new WeakMap,fF={get(e,t){if(!cF.includes(t))return e[t];let r=nk[t];return r||(r=nk[t]=function(...n){ym.set(this,ik.get(this)[t](...n))}),r}};async function*pF(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let r=new Proxy(t,fF);for(ik.set(r,t),Vc.set(r,oa(t));t;)yield r,t=await(ym.get(r)||t.continue()),ym.delete(r)}i(pF,"iterate");function ok(e,t){return t===Symbol.asyncIterator&&hm(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&hm(e,[IDBIndex,IDBObjectStore])}i(ok,"isIteratorProp"),tk(e=>({...e,get(t,r,n){return ok(t,r)?pF:e.get(t,r,n)},has(t,r){return ok(t,r)||e.has(t,r)}}));var aa=class{static{i(this,"WebStore")}constructor(t){this.initCalled=!1,this.readyDeferred=J.defer(),this.options=t}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let t=new Yr.Smartenv;if(!t.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await t.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await t.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await sa.openDB(this.options.dbName,1,{upgrade:i(r=>{r.createObjectStore(this.options.storeName)},"upgrade")}),this.readyDeferred.resolve()}async get(t){return await this.init(),this.db.get(this.options.storeName,t)}async check(t){return await this.init(),!!await this.get(t)}async set(t,r){return await this.init(),this.db.put(this.options.storeName,r,t)}async delete(t){return await this.init(),this.db.delete(this.options.storeName,t)}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 wm=class{static{i(this,"TypedrequestCache")}constructor(t="default"){this.webstore=new aa({dbName:"trStore",storeName:`trStore-${t}`})}buildKey(t){return Et.stringify({method:t.method,request:t.request})}async setByRequest(t){if(!t.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(t),t)}async getByRequest(t){return await this.webstore.get(this.buildKey(t))}};var Wo=class{static{i(this,"CacheStore")}constructor(t="webrequest-v4",r="cache"){this.webstore=new or.WebStore({dbName:t,storeName:r}),this.initPromise=this.init()}async init(){}generateCacheKey(t){let r=t.url,n=t.method;return n==="GET"?r:`${n}:${r}`}async set(t,r){await this.initPromise,await this.webstore.set(t,r)}async get(t){await this.initPromise;try{return await this.webstore.get(t)||null}catch{return null}}async has(t){return await this.initPromise,await this.webstore.check(t)}async delete(t){await this.initPromise,await this.webstore.delete(t)}async clear(){await this.initPromise,await this.webstore.clear()}responseFromCacheEntry(t){let r=new Headers(t.headers);return new Response(t.response,{status:t.status,statusText:t.statusText,headers:r})}async cacheEntryFromResponse(t,r,n){let o=r.clone(),s=await o.arrayBuffer(),a={};return o.headers.forEach((l,u)=>{a[u]=l}),{response:s,headers:a,timestamp:Date.now(),etag:n?.etag||o.headers.get("etag")||void 0,lastModified:n?.lastModified||o.headers.get("last-modified")||void 0,maxAge:n?.maxAge,url:t,status:o.status,statusText:o.statusText}}async pruneExpired(){return await this.initPromise,0}};function hF(e){let t={maxAge:0,immutable:!1,noCache:!1,noStore:!1,mustRevalidate:!1};if(!e)return t;let r=e.toLowerCase().split(",").map(n=>n.trim());for(let n of r)if(n==="no-cache")t.noCache=!0;else if(n==="no-store")t.noStore=!0;else if(n==="immutable")t.immutable=!0;else if(n==="must-revalidate")t.mustRevalidate=!0;else if(n.startsWith("max-age=")){let o=parseInt(n.split("=")[1],10);isNaN(o)||(t.maxAge=o*1e3)}return t}i(hF,"parseCacheControl");function mF(e){if(e)try{return new Date(e).getTime()}catch{return}}i(mF,"parseExpires");function _r(e){let t=e.get("cache-control"),r=e.get("expires"),n=e.get("etag"),o=e.get("last-modified"),s=hF(t);if(s.maxAge===0&&r){let a=mF(r);a&&(s.maxAge=Math.max(0,a-Date.now()))}return{maxAge:s.maxAge||0,etag:n||void 0,lastModified:o||void 0,immutable:s.immutable||!1,noCache:s.noCache||!1,noStore:s.noStore||!1,mustRevalidate:s.mustRevalidate||!1}}i(_r,"extractCacheMetadata");function la(e,t){if(t.noStore)return!1;if(t.immutable)return!0;let r=Date.now()-e.timestamp,n=e.maxAge||t.maxAge||0;return n===0?!1:r<n}i(la,"isFresh");function ua(e){return e.noCache||e.mustRevalidate}i(ua,"requiresRevalidation");function Gc(e){let t={};return e.etag&&(t["if-none-match"]=e.etag),e.lastModified&&(t["if-modified-since"]=e.lastModified),t}i(Gc,"createConditionalHeaders");function Jc(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}i(Jc,"headersToObject");function uk(e){let t=new Headers;return Object.entries(e).forEach(([r,n])=>{t.set(r,n)}),t}i(uk,"objectToHeaders");var Xc=class{static{i(this,"NetworkFirstStrategy")}async execute(t){try{let r=await t.fetchFn(t.request);return r.ok&&await this.cacheResponse(t,r),{response:r,fromCache:!1,revalidated:!1}}catch(r){t.logging&&console.log("[webrequest] Network failed, trying cache:",r);let n=await t.cacheStore.get(t.cacheKey);if(n)return{response:t.cacheStore.responseFromCacheEntry(n),fromCache:!0,revalidated:!1};throw r}}async cacheResponse(t,r){let n=_r(r.headers);if(n.noStore)return;let o=await t.cacheStore.cacheEntryFromResponse(t.request.url,r,n);await t.cacheStore.set(t.cacheKey,o)}},bm=class{static{i(this,"CacheFirstStrategy")}async execute(t){let r=await t.cacheStore.get(t.cacheKey);if(r){let s=_r(new Headers(r.headers));if(la(r,s))return t.logging&&console.log("[webrequest] Cache hit (fresh):",t.request.url),{response:t.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1};if(ua(s)&&(r.etag||r.lastModified))return await this.revalidate(t,r)}t.logging&&console.log("[webrequest] Cache miss, fetching:",t.request.url);let n=await t.fetchFn(t.request),o=_r(n.headers);if(!o.noStore){let s=await t.cacheStore.cacheEntryFromResponse(t.request.url,n,o);await t.cacheStore.set(t.cacheKey,s)}return{response:n,fromCache:!1,revalidated:!1}}async revalidate(t,r){let n=Gc(r),o=new Request(t.request.url,{method:t.request.method,headers:{...Jc(t.request.headers),...n}});try{let s=await t.fetchFn(o);if(s.status===304)return t.logging&&console.log("[webrequest] Cache revalidated (304):",t.request.url),r.timestamp=Date.now(),await t.cacheStore.set(t.cacheKey,r),{response:t.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!0};if(s.ok){let a=_r(s.headers);if(!a.noStore){let l=await t.cacheStore.cacheEntryFromResponse(t.request.url,s,a);await t.cacheStore.set(t.cacheKey,l)}}return{response:s,fromCache:!1,revalidated:!0}}catch(s){return t.logging&&console.log("[webrequest] Revalidation failed, using cache:",s),{response:t.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1}}}},vm=class{static{i(this,"StaleWhileRevalidateStrategy")}async execute(t){let r=await t.cacheStore.get(t.cacheKey);if(r){let s=t.cacheStore.responseFromCacheEntry(r);return this.revalidateInBackground(t,r).catch(a=>{t.logging&&console.warn("[webrequest] Background revalidation failed:",a)}),{response:s,fromCache:!0,revalidated:!1}}let n=await t.fetchFn(t.request),o=_r(n.headers);if(!o.noStore&&n.ok){let s=await t.cacheStore.cacheEntryFromResponse(t.request.url,n,o);await t.cacheStore.set(t.cacheKey,s)}return{response:n,fromCache:!1,revalidated:!1}}async revalidateInBackground(t,r){let n=_r(new Headers(r.headers));if(!(la(r,n)&&!ua(n)))try{let o=await t.fetchFn(t.request);if(o.ok){let s=_r(o.headers);if(!s.noStore){let a=await t.cacheStore.cacheEntryFromResponse(t.request.url,o,s);await t.cacheStore.set(t.cacheKey,a),t.logging&&console.log("[webrequest] Background revalidation complete:",t.request.url)}}}catch(o){t.logging&&console.warn("[webrequest] Background revalidation failed:",o)}}},km=class{static{i(this,"NetworkOnlyStrategy")}async execute(t){return{response:await t.fetchFn(t.request),fromCache:!1,revalidated:!1}}},Sm=class{static{i(this,"CacheOnlyStrategy")}async execute(t){let r=await t.cacheStore.get(t.cacheKey);if(!r)throw new Error(`Cache miss for ${t.request.url} (cache-only mode)`);return{response:t.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1}}};function ck(e){switch(e){case"network-first":return new Xc;case"cache-first":return new bm;case"stale-while-revalidate":return new vm;case"network-only":return new km;case"cache-only":return new Sm;default:return new Xc}}i(ck,"getStrategyHandler");var Uo=class{static{i(this,"CacheManager")}constructor(t,r){this.cacheStore=new Wo(t,r)}async execute(t,r,n){let o=this.determineStrategy(t,r);if(o==="network-only")return{response:await n(t),fromCache:!1,revalidated:!1};let s=this.generateCacheKey(t,r),a=ck(o),l={request:t,cacheKey:s,cacheStore:this.cacheStore,fetchFn:n,logging:r.logging};return await a.execute(l)}determineStrategy(t,r){return r.cacheStrategy?r.cacheStrategy:r.cache?this.mapCacheModeToStrategy(r.cache):t.cache?this.mapCacheModeToStrategy(t.cache):"network-first"}mapCacheModeToStrategy(t){switch(t){case"default":return"network-first";case"no-store":case"reload":return"network-only";case"no-cache":return"network-first";case"force-cache":return"cache-first";case"only-if-cached":return"cache-only";default:return"network-first"}}generateCacheKey(t,r){return r.cacheKey?typeof r.cacheKey=="function"?r.cacheKey(t):r.cacheKey:this.cacheStore.generateCacheKey(t)}async clear(){await this.cacheStore.clear()}async delete(t){await this.cacheStore.delete(t)}async has(t){return await this.cacheStore.has(t)}getStore(){return this.cacheStore}};var Zc=class{static{i(this,"ExponentialBackoff")}calculate(t,r,n){let o=r*Math.pow(2,t-1);return Math.min(o,n)}},Tm=class{static{i(this,"LinearBackoff")}calculate(t,r,n){let o=r*t;return Math.min(o,n)}},Em=class{static{i(this,"ConstantBackoff")}calculate(t,r,n){return Math.min(r,n)}};function fk(e){switch(e){case"exponential":return new Zc;case"linear":return new Tm;case"constant":return new Em;default:return new Zc}}i(fk,"getBackoffCalculator");function pk(e,t=.1){let r=e*t*Math.random();return e+r}i(pk,"addJitter");var jo=class{static{i(this,"RetryManager")}constructor(t={}){this.options={maxAttempts:t.maxAttempts??3,backoff:t.backoff??"exponential",initialDelay:t.initialDelay??1e3,maxDelay:t.maxDelay??3e4,retryOn:t.retryOn??[408,429,500,502,503,504],onRetry:t.onRetry??(()=>{})}}async execute(t,r){let n,o;for(let s=1;s<=this.options.maxAttempts;s++)try{let a=await t();if(a instanceof Response&&this.shouldRetryResponse(a)){if(o=a,s===this.options.maxAttempts)return a;let l=this.calculateDelay(s);this.options.onRetry(s,new Error(`HTTP ${a.status}`),l),await this.delay(l);continue}return a}catch(a){n=a instanceof Error?a:new Error(String(a));let l=r?r(a,s):this.shouldRetryError(a);if(s===this.options.maxAttempts||!l)throw n;let u=this.calculateDelay(s);this.options.onRetry(s,n,u),await this.delay(u)}throw n||new Error("Max retry attempts reached")}async executeWithFallbacks(t,r,n){if(t.length===0)throw new Error("No URLs provided for fallback execution");let o,s=[];for(let a of t)try{let l=await this.execute(async()=>await n(a,r));if(l.status<400||l.status>=400&&l.status<500&&l.status!==408)return l;s.push(a),o=new Error(`Request failed with status ${l.status}`)}catch(l){s.push(a),o=l instanceof Error?l:new Error(String(l))}throw new Error(`All URLs failed: ${s.join(", ")}. Last error: ${o?.message||"Unknown error"}`)}shouldRetryResponse(t){let r=this.options.retryOn;return typeof r=="function"?r(t):Array.isArray(r)?r.includes(t.status):!1}shouldRetryError(t){if(t instanceof TypeError&&t.message.includes("fetch")||t.name==="AbortError"||t.message.includes("timeout"))return!0;let r=this.options.retryOn;return typeof r=="function"?r(void 0,t):!1}calculateDelay(t){let n=fk(this.options.backoff).calculate(t,this.options.initialDelay,this.options.maxDelay);return pk(n)}async delay(t){await he.delayFor(t)}};var qo=class{static{i(this,"RequestDeduplicator")}constructor(){this.inFlightRequests=new Map}generateKey(t){let r=t.url,n=t.method;return n==="GET"||n==="HEAD"?`${n}:${r}`:`${n}:${r}:${Date.now()}`}async execute(t,r){let n=this.inFlightRequests.get(t);if(n)return{response:(await n.promise).clone(),wasDeduplicated:!0};let o=J.defer();this.inFlightRequests.set(t,o);try{let s=await r();return o.resolve(s),this.inFlightRequests.delete(t),{response:s,wasDeduplicated:!1}}catch(s){throw o.reject(s),this.inFlightRequests.delete(t),s}}isInFlight(t){return this.inFlightRequests.has(t)}getInFlightCount(){return this.inFlightRequests.size}clear(){this.inFlightRequests.clear()}};function dF(e){let t=new AbortController,r=new he.Timeout(e,null);return r.promise.then(()=>{t.abort()}),{controller:t,cleanup:i(()=>{r.cancel()},"cleanup")}}i(dF,"createTimeoutController");async function Dm(e,t,r){let{controller:n,cleanup:o}=dF(r);try{let s=await fetch(e,{...t,signal:n.signal});return o(),s}catch(s){throw o(),s instanceof Error&&s.name==="AbortError"?new Error(`Request timeout after ${r}ms: ${e}`):s}}i(Dm,"fetchWithTimeout");var mi=class{static{i(this,"WebrequestClient")}constructor(t={}){this.defaultOptions=t,this.interceptorManager=new Lo,this.cacheManager=new Uo,this.deduplicator=new qo}addRequestInterceptor(t){this.interceptorManager.addRequestInterceptor(t)}addResponseInterceptor(t){this.interceptorManager.addResponseInterceptor(t)}addErrorInterceptor(t){this.interceptorManager.addErrorInterceptor(t)}removeRequestInterceptor(t){this.interceptorManager.removeRequestInterceptor(t)}removeResponseInterceptor(t){this.interceptorManager.removeResponseInterceptor(t)}removeErrorInterceptor(t){this.interceptorManager.removeErrorInterceptor(t)}clearInterceptors(){this.interceptorManager.clearAll()}async clearCache(){await this.cacheManager.clear()}async request(t,r={}){let n={...this.defaultOptions,...r},o;if(typeof t=="string"?o=new Request(t,n):o=t,o=await this.interceptorManager.processRequest(o),n.interceptors?.request)for(let a of n.interceptors.request)o=await a(o);if(n.deduplicate??!1){let a=this.deduplicator.generateKey(o);return(await this.deduplicator.execute(a,async()=>await this.executeRequest(o,n))).response}return await this.executeRequest(o,n)}async executeRequest(t,r){try{let n=typeof r.retry=="object"?r.retry:r.retry?{}:void 0,o=i(async l=>{let u=r.timeout??6e4;return await Dm(l.url,{method:l.method,headers:l.headers,body:l.body,...r},u)},"fetchFnForRequest"),s=i(async(l,u)=>{let c=r.timeout??6e4;return await Dm(l,u,c)},"fetchFnForFallbacks"),a;if(n){let l=new jo(n);if(r.fallbackUrls&&r.fallbackUrls.length>0){let u=[t.url,...r.fallbackUrls];a=await l.executeWithFallbacks(u,{method:t.method,headers:t.headers,body:t.body,...r},s)}else a=await l.execute(async()=>(await this.cacheManager.execute(t,r,o)).response)}else a=(await this.cacheManager.execute(t,r,o)).response;if(a=await this.interceptorManager.processResponse(a),r.interceptors?.response)for(let l of r.interceptors.response)a=await l(a);return a}catch(n){throw await this.interceptorManager.processError(n instanceof Error?n:new Error(String(n)))}}async getJson(t,r={}){let n=await this.request(t,{...r,method:"GET",headers:{Accept:"application/json",...r.headers||{}}});if(!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);return await n.json()}async postJson(t,r,n={}){let o=await this.request(t,{...n,method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",...n.headers||{}},body:JSON.stringify(r)});if(!o.ok)throw new Error(`HTTP ${o.status}: ${o.statusText}`);return await o.json()}async putJson(t,r,n={}){let o=await this.request(t,{...n,method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json",...n.headers||{}},body:JSON.stringify(r)});if(!o.ok)throw new Error(`HTTP ${o.status}: ${o.statusText}`);return await o.json()}async deleteJson(t,r={}){let n=await this.request(t,{...r,method:"DELETE",headers:{Accept:"application/json",...r.headers||{}}});if(!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);return await n.json()}};var sr=new mi;async function Wt(e,t){let r=e instanceof Request?e.url:String(e),n=e instanceof Request?e:new Request(r,t);return await sr.request(n,t)}i(Wt,"webrequest"),Wt.getJson=async function(e,t){return await sr.getJson(e,t)},Wt.postJson=async function(e,t,r){return await sr.postJson(e,t,r)},Wt.putJson=async function(e,t,r){return await sr.putJson(e,t,r)},Wt.deleteJson=async function(e,t){return await sr.deleteJson(e,t)},Wt.addRequestInterceptor=function(e){sr.addRequestInterceptor(e)},Wt.addResponseInterceptor=function(e){sr.addResponseInterceptor(e)},Wt.addErrorInterceptor=function(e){sr.addErrorInterceptor(e)},Wt.clearInterceptors=function(){sr.clearInterceptors()},Wt.clearCache=async function(){await sr.clearCache()},Wt.createClient=function(e){return new mi(e)},Wt.getDefaultClient=function(){return sr};var Dn=St($p(),1);var ar=class{static{i(this,"TypedResponseError")}constructor(t,r){this.errorText=t,this.errorData=r}};var ef=class{static{i(this,"TypedTools")}constructor(){this.localData={}}async passGuards(t,r){let n=new ta.GuardSet(t);if(!await n.allGuardsPass(r)){let s=await n.getFailedHint(r);throw new ar(`guard failed: ${s}`,{failedHint:s})}}};var Cm=class{static{i(this,"TypedHandler")}constructor(t,r){this.method=t,this.handlerFunction=r}async addResponse(t){if(t.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,n=new ef;t.localData&&(n.localData=t.localData);let o=await this.handlerFunction(t.request,n).catch(s=>{s instanceof ar?r=s:console.log(s)});return r&&(t.error={text:r.errorText,data:r.errorData}),o&&(t.response=o),t?.correlation?.phase&&(t.correlation.phase="response"),t}};var gi=class e{static{i(this,"TypedRouter")}constructor(){this.hooks={},this.routerMap=new Ze.ObjectMap,this.handlerMap=new Ze.ObjectMap,this.registeredVirtualStreams=new Ze.ObjectMap,this.middlewares=[],this.fireEventInterestMap=new Ze.InterestMap(t=>t)}static get globalHooks(){return globalThis.__typedRouterGlobalHooks||(globalThis.__typedRouterGlobalHooks={}),globalThis.__typedRouterGlobalHooks}static set globalHooks(t){globalThis.__typedRouterGlobalHooks=t}static setGlobalHooks(t){let r=e.globalHooks;e.globalHooks={...r,...t}}static clearGlobalHooks(){globalThis.__typedRouterGlobalHooks={}}setHooks(t){this.hooks={...this.hooks,...t}}callHook(t,r){try{e.globalHooks[t]?.(r),this.hooks[t]?.(r)}catch(n){console.error(`TypedRouter hook error (${t}):`,n)}}addMiddleware(t){this.middlewares.push(t)}addTypedHandler(t){if(this.getTypedHandlerForMethod(t.method))throw new Error(`a TypedHandler for ${t.method} alredy exists! Can't add another one.`);this.handlerMap.add(t)}addTypedRouter(t){this.routerMap.findSync(n=>n===t)||(this.routerMap.add(t),t.addTypedRouter(this))}checkForTypedHandler(t){return!!this.getTypedHandlerForMethod(t)}getTypedHandlerForMethod(t,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(o=>o.method===t),n||this.routerMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(t,r))}),n}getTypedHandlerAndRouter(t,r=[]){r.push(this);let n=this.handlerMap.findSync(o=>o.method===t);if(n)return{handler:n,router:this};for(let o of this.routerMap.getArray())if(!r.includes(o)){let s=o.getTypedHandlerAndRouter(t,r);if(s)return s}return null}static{this.defaultRouteOptions={localRequest:!1,skipHooks:!1}}async routeAndAddResponse(t,r={}){let n={...e.defaultRouteOptions,...r};if(t=lr.decodePayloadFromNetwork(t,{typedrouter:this}),t.localData=t.localData||{},t.localData.firstTypedrouter=this,t.method==="##VirtualStream##"){let o=await this.handleStreamTypedRequest(t);return o.localData=null,o}if(t?.correlation?.phase==="request"||n.localRequest){let o=Date.now();n.skipHooks||this.callHook("onIncomingRequest",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"incoming",phase:"request",timestamp:o,payload:t.request});let s=this.getTypedHandlerAndRouter(t.method);if(!s)return console.log(`Cannot find handler for methodname ${t.method}`),t.error={text:"There is no available method for this call on the server side",data:{}},t.correlation.phase="response",t.localData=null,t=lr.encodePayloadForNetwork(t,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:t.response,error:t.error?.text}),t;let{handler:a,router:l}=s;if(l.middlewares.length>0)try{for(let u of l.middlewares)await u(t)}catch(u){return u instanceof ar?t.error={text:u.errorText,data:u.errorData||{}}:t.error={text:u.message||"Middleware error",data:{}},t.correlation.phase="response",t.localData=null,t=lr.encodePayloadForNetwork(t,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:t.response,error:t.error?.text}),t}return t=await a.addResponse(t),t.localData=null,t=lr.encodePayloadForNetwork(t,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:t.response,error:t.error?.text}),t}else return t?.correlation?.phase==="response"?(n.skipHooks||this.callHook("onIncomingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"incoming",phase:"response",timestamp:Date.now(),payload:t.response,error:t.error?.text}),this.fireEventInterestMap.findInterest(t.correlation.id)?.fullfillInterest(t),null):(console.log("received weirdly shaped request"),console.log(t),null)}async handleStreamTypedRequest(t){let r=await this.registeredVirtualStreams.find(async o=>o.streamId===t.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${t.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${t.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),t;return await r.handleStreamTr(t)}};var hk="#############CLOSING BIT#############",lr=class e{static{i(this,"VirtualStream")}static encodePayloadForNetwork(t,r,n,o=[]){return!t||Fo.isBufferLike(t)?t:t instanceof e?(!t.side&&r.sendMethod&&(t.side="requesting",t.sendMethod=r.sendMethod),!t.side&&r.typedrouter&&(t.side="responding",t.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(t)),!n.response||o.includes("response")?(t.startKeepAliveLoop(),{_isVirtualStream:!0,streamId:t.streamId}):{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: obmitted for deduplication reasons in response cycle."}):Array.isArray(t)?t.map((s,a)=>e.encodePayloadForNetwork(s,r,n||t,o.concat(String(a)))):t!==null&&typeof t=="object"?Object.entries(t).reduce((s,[a,l])=>{let u=o.concat(a);return s[a]=e.encodePayloadForNetwork(l,r,n||t,u),s},{}):t}static decodePayloadFromNetwork(t,r){if(Fo.isBufferLike(t)||t instanceof gi)return t;if(t!==null&&typeof t=="object"){if(t instanceof Set||t instanceof Map||t instanceof Date||t instanceof RegExp||t instanceof Error||t instanceof Promise||typeof t.then=="function")return t;if(t._isVirtualStream){let n=new e;return n.streamId=t.streamId,!n.side&&r.sendMethod&&(n.side="requesting",n.sendMethod=r.sendMethod),!n.side&&r.typedrouter&&(n.side="responding",n.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(n)),n.startKeepAliveLoop(),n}else if(Array.isArray(t)){let n=[];for(let o of t)n.push(e.decodePayloadFromNetwork(o,r));return n}else return Object.keys(t).reduce((n,o)=>(n[o]=e.decodePayloadFromNetwork(t[o],r),n),{})}else return t}constructor(){this.streamId=Dn.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new Ze.BackpressuredArray(16),this.receiveBackpressuredArray=new Ze.BackpressuredArray(16)}static reconstituteBinaryData(t){if(t==null||t instanceof Uint8Array||typeof Buffer<"u"&&Buffer.isBuffer(t))return t;if(typeof t=="object"){if(t.type==="Buffer"&&Array.isArray(t.data))return new Uint8Array(t.data);let r=Object.keys(t);if(r.length>0&&r.every(n=>/^\d+$/.test(n))){let n=new Array(r.length);for(let o of r)n[Number(o)]=t[o];if(n.every(o=>typeof o=="number"))return new Uint8Array(n)}}return t}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=J.defer(),this.side==="requesting"){let t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,n=!1,o=i(async()=>{let s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Dn.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});s&&s.response&&(n=s.response.backpressure,r=s.response.next)},"getFeedback");for(await o();this.sendBackpressuredArray.data.length>0||r;){if(n)for(;n;)console.log("waiting for feedback because of backpressure..."),await he.delayFor(50),await o();let s;this.sendBackpressuredArray.data.length>0&&(s=this.sendBackpressuredArray.shift());let a;a=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Dn.uni(),cycle:"request",mainPurpose:s?"chunk":"read",backpressure:t,next:this.sendBackpressuredArray.data.length>0,...s?{chunkData:s}:{}},response:null}).catch(()=>(console.log("stream ended immaturely"),this.keepAlive=!1,null)),a&&a.response&&a.response.chunkData&&this.receiveBackpressuredArray.push(e.reconstituteBinaryData(a.response.chunkData)),n=a&&a.response&&a.response.backpressure,t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=a&&a.response&&a.response.next}}this.workingDeferred.resolve(),this.workingDeferred=null}async handleStreamTr(t){if(t.request.keepAlive===!0&&this.keepAlive===!0?this.lastKeepAliveEvent=Date.now():t.request.keepAlive===!1&&(this.keepAlive=!1),t.request.mainPurpose==="keepAlive"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"keepAlive",keepAlive:this.keepAlive,next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="feedback"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="chunk"){if(this.receiveBackpressuredArray.push(e.reconstituteBinaryData(t.request.chunkData)),this.sendBackpressuredArray.data.length>0&&t.response.backpressure===!1){let r=this.sendBackpressuredArray.shift();t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"chunk",next:this.sendBackpressuredArray.data.length>1,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable(),chunkData:this.sendBackpressuredArray.shift()}}else t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()};t.request=null}return t}async cleanup(){this.typedrouter&&this.typedrouter.registeredVirtualStreams.remove(this)}async startKeepAliveLoop(){if(this.side==="responding")return;await he.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let t=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await he.delayFor(1e3);await he.delayFor(1e3),await this.cleanup(),console.log(`cleaned up for stream ${this.streamId}`)}async triggerKeepAlive(){if(this.side==="requesting"){console.log("keepalive sent.");let t=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Dn.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:this.keepAlive},response:null}).catch(()=>{this.keepAlive=!1});t&&t.response&&t.response.keepAlive===!1?this.keepAlive=!1:this.lastKeepAliveEvent=Date.now(),t&&t.response&&t.response.next&&this.workOnQueue()}Date.now()-this.lastKeepAliveEvent>1e4&&(console.log(`closing stream for ${this.streamId}`),this.keepAlive=!1)}async sendData(t){this.sendBackpressuredArray.push(t),this.workOnQueue(),await this.sendBackpressuredArray.waitForSpace()}async fetchData(){return this.receiveBackpressuredArray.hasSpace,await this.receiveBackpressuredArray.waitForItems(),this.receiveBackpressuredArray.shift()}async readFromWebstream(t,r=!0){let n=t.getReader(),o=!1;for(;!o;){let{value:s,done:a}=await n.read();s&&await this.sendData(s),o=a}r&&await this.close(!0)}async writeToWebstream(t){let r=t.getWriter();for(;this.keepAlive||this.receiveBackpressuredArray.checkHasItems();){let n=await this.fetchData();if(n===hk){r.releaseLock(),await t.close();break}await r.write(n)}}async close(t=!1){t&&this.sendData(hk),this.keepAlive=!1}};var Om=class{static{i(this,"TypedTarget")}constructor(t){if(t.postMethodWithTypedRouter&&!t.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=t}async post(t){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(t.correlation.id,t));let o=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(t),s;return r?s=await r.interestFullfilled:o?s=o:s=t,s}};var gF=new di.WebrequestClient;function mk(e,t){try{gi.globalHooks[e]?.(t)}catch(r){console.error(`TypedRequest hook error (${e}):`,r)}}i(mk,"callGlobalHook");var tf=class{static{i(this,"TypedRequest")}constructor(t,r){this.skipHooks=!1,typeof t=="string"?this.urlEndPoint=t:this.typedTarget=t,this.method=r}async fire(t,r=!1){let n=Date.now(),o={method:this.method,request:t,response:null,correlation:{id:Dn.uni(),phase:"request"}};o=lr.encodePayloadForNetwork(o,{sendMethod:i(a=>this.postTrObject(a),"sendMethod")}),this.skipHooks||mk("onOutgoingRequest",{correlationId:o.correlation.id,method:this.method,direction:"outgoing",phase:"request",timestamp:n,payload:t});let s;return s=await this.postTrObject(o,r),s=lr.decodePayloadFromNetwork(s,{sendMethod:i(a=>this.postTrObject(a),"sendMethod")}),this.skipHooks||mk("onIncomingResponse",{correlationId:o.correlation.id,method:this.method,direction:"incoming",phase:"response",timestamp:Date.now(),durationMs:Date.now()-n,payload:s?.response,error:s?.error?.text}),s.response}async postTrObject(t,r=!1){let n;if(this.urlEndPoint?n=await gF.postJson(this.urlEndPoint,t,r?{cacheStrategy:"cache-first"}:{}):n=await this.typedTarget.post(t),n.error){if(console.error(`method: >>${this.method}<< got an ERROR: "${n.error.text}" with data ${JSON.stringify(n.error.data,null,2)}`),!n.retry)throw new ar(n.error.text,n.error.data);return null}return n.retry&&(console.log(`server requested retry for the following reason: ${n.retry.reason}`),await he.delayFor(n.retry.waitForMs),n=await this.postTrObject(t,r)),n}};function dk(e){return e&&typeof e.then=="function"}i(dk,"isPromise");var gk=Promise.resolve(!1),hMe=Promise.resolve(!0),Pr=Promise.resolve();function rf(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}i(rf,"sleep");function xk(e,t){return Math.floor(Math.random()*(t-e+1)+e)}i(xk,"randomInt");function ca(){return Math.random().toString(36).substring(2)}i(ca,"randomToken");var Im=0;function Gr(){var e=Date.now()*1e3;return e<=Im&&(e=Im+1),Im=e,e}i(Gr,"microSeconds");function mMe(){return typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function"}i(mMe,"supportsWebLockAPI");var xF=Gr,yF="native";function wF(e){var t={time:Gr(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(r){t.messagesCallback&&t.messagesCallback(r.data)},t}i(wF,"create");function bF(e){e.bc.close(),e.subFns=[]}i(bF,"close");function vF(e,t){try{return e.bc.postMessage(t,!1),Pr}catch(r){return Promise.reject(r)}}i(vF,"postMessage");function kF(e,t){e.messagesCallback=t}i(kF,"onMessage");function SF(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}i(SF,"canBeUsed");function TF(){return 150}i(TF,"averageResponseTime");var yk={create:wF,close:bF,onMessage:kF,postMessage:vF,canBeUsed:SF,type:yF,averageResponseTime:TF,microSeconds:xF};var Yo=class{static{i(this,"ObliviousSet")}ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){let r=this.map.get(t);return typeof r>"u"?!1:r<Am()-this.ttl?(this.map.delete(t),!1):!0}add(t){this.map.delete(t),this.map.set(t,Am()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,EF(this)},0))}clear(){this.map.clear()}};function EF(e){let t=Am()-e.ttl,r=e.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)break;let o=n[0];if(n[1]<t)e.map.delete(o);else break}}i(EF,"removeTooOldValues");function Am(){return Date.now()}i(Am,"now");function xi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}i(xi,"fillOptionsWithDefaults");var DF=Gr,CF="pubkey.broadcast-channel-0-",ur="messages",fa={durability:"relaxed"},OF="idb";function wk(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}i(wk,"getIdb");function nf(e){e.commit&&e.commit()}i(nf,"commitIndexedDBTransaction");function IF(e){var t=wk(),r=CF+e,n=t.open(r);return n.onupgradeneeded=function(o){var s=o.target.result;s.createObjectStore(ur,{keyPath:"id",autoIncrement:!0})},new Promise(function(o,s){n.onerror=function(a){return s(a)},n.onsuccess=function(){o(n.result)}})}i(IF,"createDatabase");function AF(e,t,r){var n=Date.now(),o={uuid:t,time:n,data:r},s=e.transaction([ur],"readwrite",fa);return new Promise(function(a,l){s.oncomplete=function(){return a()},s.onerror=function(c){return l(c)};var u=s.objectStore(ur);u.add(o),nf(s)})}i(AF,"writeMessage");function CMe(e){var t=e.transaction(ur,"readonly",fa),r=t.objectStore(ur),n=[];return new Promise(function(o){r.openCursor().onsuccess=function(s){var a=s.target.result;a?(n.push(a.value),a.continue()):(nf(t),o(n))}})}i(CMe,"getAllMessages");function MF(e,t){var r=e.transaction(ur,"readonly",fa),n=r.objectStore(ur),o=[],s=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var a=n.getAll(s);return new Promise(function(u,c){a.onerror=function(f){return c(f)},a.onsuccess=function(f){u(f.target.result)}})}function l(){try{return s=IDBKeyRange.bound(t+1,1/0),n.openCursor(s)}catch{return n.openCursor()}}return i(l,"openCursor"),new Promise(function(u,c){var f=l();f.onerror=function(p){return c(p)},f.onsuccess=function(p){var h=p.target.result;h?h.value.id<t+1?h.continue(t+1):(o.push(h.value),h.continue()):(nf(r),u(o))}})}i(MF,"getMessagesHigherThan");function _F(e,t){if(e.closed)return Promise.resolve([]);var r=e.db.transaction(ur,"readwrite",fa),n=r.objectStore(ur);return Promise.all(t.map(function(o){var s=n.delete(o);return new Promise(function(a){s.onsuccess=function(){return a()}})}))}i(_F,"removeMessagesById");function PF(e,t){var r=Date.now()-t,n=e.transaction(ur,"readonly",fa),o=n.objectStore(ur),s=[];return new Promise(function(a){o.openCursor().onsuccess=function(l){var u=l.target.result;if(u){var c=u.value;c.time<r?(s.push(c),u.continue()):(nf(n),a(s))}else a(s)}})}i(PF,"getOldMessages");function NF(e){return PF(e.db,e.options.idb.ttl).then(function(t){return _F(e,t.map(function(r){return r.id}))})}i(NF,"cleanOldMessages");function FF(e,t){return t=xi(t),IF(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:ca(),eMIs:new Yo(t.idb.ttl*2),writeBlockPromise:Pr,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},bk(n),n})}i(FF,"create");function bk(e){e.closed||vk(e).then(function(){return rf(e.options.idb.fallbackInterval)}).then(function(){return bk(e)})}i(bk,"_readLoop");function LF(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}i(LF,"_filterMessage");function vk(e){return e.closed?Pr:e.messagesCallback?MF(e.db,e.lastCursorId).then(function(t){var r=t.filter(function(n){return!!n}).map(function(n){return n.id>e.lastCursorId&&(e.lastCursorId=n.id),n}).filter(function(n){return LF(n,e)}).sort(function(n,o){return n.time-o.time});return r.forEach(function(n){e.messagesCallback&&(e.eMIs.add(n.id),e.messagesCallback(n.data))}),Pr}):Pr}i(vk,"readNewMessages");function RF(e){e.closed=!0,e.db.close()}i(RF,"close");function BF(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return AF(e.db,e.uuid,t)}).then(function(){xk(0,10)===0&&NF(e)}),e.writeBlockPromise}i(BF,"postMessage");function zF(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,vk(e)}i(zF,"onMessage");function $F(){return!!wk()}i($F,"canBeUsed");function HF(e){return e.idb.fallbackInterval*2}i(HF,"averageResponseTime");var kk={create:FF,close:RF,onMessage:zF,postMessage:BF,canBeUsed:$F,type:OF,averageResponseTime:HF,microSeconds:DF};var WF=Gr,UF="pubkey.broadcastChannel-",jF="localstorage";function Sk(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}i(Sk,"getLocalStorage");function Tk(e){return UF+e}i(Tk,"storageKey");function qF(e,t){return new Promise(function(r){rf().then(function(){var n=Tk(e.channelName),o={token:ca(),time:Date.now(),data:t,uuid:e.uuid},s=JSON.stringify(o);Sk().setItem(n,s);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=n,a.newValue=s,window.dispatchEvent(a),r()})})}i(qF,"postMessage");function YF(e,t){var r=Tk(e),n=i(function(s){s.key===r&&t(JSON.parse(s.newValue))},"listener");return window.addEventListener("storage",n),n}i(YF,"addStorageEventListener");function VF(e){window.removeEventListener("storage",e)}i(VF,"removeStorageEventListener");function QF(e,t){if(t=xi(t),!Ek())throw new Error("BroadcastChannel: localstorage cannot be used");var r=ca(),n=new Yo(t.localstorage.removeTimeout),o={channelName:e,uuid:r,eMIs:n};return o.listener=YF(e,function(s){o.messagesCallback&&s.uuid!==r&&(!s.token||n.has(s.token)||s.data.time&&s.data.time<o.messagesCallbackTime||(n.add(s.token),o.messagesCallback(s.data)))}),o}i(QF,"create");function GF(e){VF(e.listener)}i(GF,"close");function JF(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}i(JF,"onMessage");function Ek(){var e=Sk();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}i(Ek,"canBeUsed");function XF(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}i(XF,"averageResponseTime");var Dk={create:QF,close:GF,onMessage:JF,postMessage:qF,canBeUsed:Ek,type:jF,averageResponseTime:XF,microSeconds:WF};var Ck=Gr,ZF="simulate",Mm=new Set;function KF(e){var t={time:Ck(),name:e,messagesCallback:null};return Mm.add(t),t}i(KF,"create");function eL(e){Mm.delete(e)}i(eL,"close");var Ok=5;function tL(e,t){return new Promise(function(r){return setTimeout(function(){var n=Array.from(Mm);n.forEach(function(o){o.name===e.name&&o!==e&&o.messagesCallback&&o.time<t.time&&o.messagesCallback(t)}),r()},Ok)})}i(tL,"postMessage");function rL(e,t){e.messagesCallback=t}i(rL,"onMessage");function nL(){return!0}i(nL,"canBeUsed");function iL(){return Ok}i(iL,"averageResponseTime");var Ik={create:KF,close:eL,onMessage:rL,postMessage:tL,canBeUsed:nL,type:ZF,averageResponseTime:iL,microSeconds:Ck};var Ak=[yk,kk,Dk];function _m(e){var t=[].concat(e.methods,Ak).filter(Boolean);if(e.type){if(e.type==="simulate")return Ik;var r=t.find(function(o){return o.type===e.type});if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(o){return o.type!=="idb"}));var n=t.find(function(o){return o.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(Ak.map(function(o){return o.type})))}i(_m,"chooseMethod");var Nm=new Set,oL=0,yi=i(function(t,r){this.id=oL++,Nm.add(this),this.name=t,Pm&&(r=Pm),this.options=xi(r),this.method=_m(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,lL(this)},"BroadcastChannel");yi._pubkey=!0;function sL(e){e=xi(e);var t=_m(e);return t.type==="node"?t.clearNodeFolder().then(function(){return!0}):gk}i(sL,"clearNodeFolder");var Pm;function aL(e){Pm=e}i(aL,"enforceOptions"),yi.prototype={postMessage:i(function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return Mk(this,"message",t)},"postMessage"),postInternal:i(function(t){return Mk(this,"internal",t)},"postInternal"),set onmessage(e){var t=this.method.microSeconds(),r={time:t,fn:e};Nk(this,"message",this._onML),e&&typeof e=="function"?(this._onML=r,Pk(this,"message",r)):this._onML=null},addEventListener:i(function(t,r){var n=this.method.microSeconds(),o={time:n,fn:r};Pk(this,t,o)},"addEventListener"),removeEventListener:i(function(t,r){var n=this._addEL[t].find(function(o){return o.fn===r});Nk(this,t,n)},"removeEventListener"),close:i(function(){var t=this;if(!this.closed){Nm.delete(this),this.closed=!0;var r=this._prepP?this._prepP:Pr;return this._onML=null,this._addEL.message=[],r.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(n){return n()}))}).then(function(){return t.method.close(t._state)})}},"close"),get type(){return this.method.type},get isClosed(){return this.closed}};function Mk(e,t,r){var n=e.method.microSeconds(),o={time:n,type:t,data:r},s=e._prepP?e._prepP:Pr;return s.then(function(){var a=e.method.postMessage(e._state,o);return e._uMP.add(a),a.catch().then(function(){return e._uMP.delete(a)}),a})}i(Mk,"_post");function lL(e){var t=e.method.create(e.name,e.options);dk(t)?(e._prepP=t,t.then(function(r){e._state=r})):e._state=t}i(lL,"_prepareChannel");function _k(e){return e._addEL.message.length>0||e._addEL.internal.length>0}i(_k,"_hasMessageListeners");function Pk(e,t,r){e._addEL[t].push(r),uL(e)}i(Pk,"_addListenerObject");function Nk(e,t,r){e._addEL[t]=e._addEL[t].filter(function(n){return n!==r}),cL(e)}i(Nk,"_removeListenerObject");function uL(e){if(!e._iL&&_k(e)){var t=i(function(o){e._addEL[o.type].forEach(function(s){o.time>=s.time&&s.fn(o.data)})},"listenerFn"),r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}i(uL,"_startListening");function cL(e){if(e._iL&&!_k(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}i(cL,"_stopListening");var Fm=globalThis.BroadcastChannel;Fm||(Fm=yi);var Lm=class{static{i(this,"DeesComms")}constructor(){this.broadcastChannel=new Fm("dees-comms"),this.typedrouter=new Dt.TypedRouter,this.typedtarget=new Dt.TypedTarget({postMethodWithTypedRouter:i(async t=>{this.postMessage(t)},"postMethodWithTypedRouter"),typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async t=>{let r=t.method?t:t.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r,{skipHooks:!0});n&&!n.error&&this.postMessage(n)}}createTypedRequest(t){return new Dt.TypedRequest(this.typedtarget,t)}async postMessage(t){this.broadcastChannel.postMessage(t)}async createTypedHandler(t,r){this.typedrouter.addTypedHandler(new Dt.TypedHandler(t,r))}};var ys={};se(ys,{SmartMarkdown:()=>Gg});function Gm(e){if(e)throw e}i(Gm,"bail");function wa(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}i(wa,"isPlainObject");function Jm(){let e=[],t={run:r,use:n};return t;function r(...o){let s=-1,a=o.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);l(null,...o);function l(u,...c){let f=e[++s],p=-1;if(u){a(u);return}for(;++p<o.length;)(c[p]===null||c[p]===void 0)&&(c[p]=o[p]);o=c,f?B1(f,l)(...c):a(null,...c)}i(l,"next")}function n(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}i(Jm,"trough");function B1(e,t){let r;return n;function n(...a){let l=e.length>a.length,u;l&&a.push(o);try{u=e.apply(this,a)}catch(c){let f=c;if(l&&r)throw f;return o(f)}l||(u&&u.then&&typeof u.then=="function"?u.then(s,o):u instanceof Error?o(u):s(u))}function o(a,...l){r||(r=!0,t(a,...l))}function s(a){o(null,a)}}i(B1,"wrap");function In(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?z1(e.position):"start"in e||"end"in e?z1(e):"line"in e||"column"in e?Xm(e):""}i(In,"stringifyPosition");function Xm(e){return $1(e&&e.line)+":"+$1(e&&e.column)}i(Xm,"point");function z1(e){return Xm(e&&e.start)+"-"+Xm(e&&e.end)}i(z1,"position");function $1(e){return e&&typeof e=="number"?e:1}i($1,"index");var ot=class extends Error{static{i(this,"VFileMessage")}constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let o="",s={},a=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?o=t:!s.cause&&t&&(a=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof n=="string"){let u=n.indexOf(":");u===-1?s.ruleId=n:(s.source=n.slice(0,u),s.ruleId=n.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){let u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}let l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=l?l.line:void 0,this.name=In(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};ot.prototype.file="",ot.prototype.name="",ot.prototype.reason="",ot.prototype.message="",ot.prototype.stack="",ot.prototype.column=void 0,ot.prototype.line=void 0,ot.prototype.ancestors=void 0,ot.prototype.cause=void 0,ot.prototype.fatal=void 0,ot.prototype.place=void 0,ot.prototype.ruleId=void 0,ot.prototype.source=void 0;var cr={basename:G2,dirname:J2,extname:X2,join:Z2,sep:"/"};function G2(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ba(e);let r=0,n=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else n<0&&(s=!0,n=o+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let a=-1,l=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else a<0&&(s=!0,a=o+1),l>-1&&(e.codePointAt(o)===t.codePointAt(l--)?l<0&&(n=o):(l=-1,n=a));return r===n?n=a:n<0&&(n=e.length),e.slice(r,n)}i(G2,"basename");function J2(e){if(ba(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}i(J2,"dirname");function X2(e){ba(e);let t=e.length,r=-1,n=0,o=-1,s=0,a;for(;t--;){let l=e.codePointAt(t);if(l===47){if(a){n=t+1;break}continue}r<0&&(a=!0,r=t+1),l===46?o<0?o=t:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===n+1?"":e.slice(o,r)}i(X2,"extname");function Z2(...e){let t=-1,r;for(;++t<e.length;)ba(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":K2(r)}i(Z2,"join");function K2(e){ba(e);let t=e.codePointAt(0)===47,r=eB(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}i(K2,"normalize");function eB(e,t){let r="",n=0,o=-1,s=0,a=-1,l,u;for(;++a<=e.length;){if(a<e.length)l=e.codePointAt(a);else{if(l===47)break;l=47}if(l===47){if(!(o===a-1||s===1))if(o!==a-1&&s===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(u=r.lastIndexOf("/"),u!==r.length-1){u<0?(r="",n=0):(r=r.slice(0,u),n=r.length-1-r.lastIndexOf("/")),o=a,s=0;continue}}else if(r.length>0){r="",n=0,o=a,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),n=a-o-1;o=a,s=0}else l===46&&s>-1?s++:s=-1}return r}i(eB,"normalizeString");function ba(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}i(ba,"assertPath");var H1={cwd:tB};function tB(){return"/"}i(tB,"cwd");function es(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}i(es,"isUrl");function W1(e){if(typeof e=="string")e=new URL(e);else if(!es(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return rB(e)}i(W1,"urlToPath");function rB(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){let n=t.codePointAt(r+2);if(n===70||n===102){let o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}i(rB,"getPathFromURLPosix");var Zm=["history","path","basename","stem","extname","dirname"],va=class{static{i(this,"VFile")}constructor(t){let r;t?es(t)?r={path:t}:typeof t=="string"||nB(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":H1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Zm.length;){let s=Zm[n];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)Zm.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?cr.basename(this.path):void 0}set basename(t){ed(t,"basename"),Km(t,"basename"),this.path=cr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?cr.dirname(this.path):void 0}set dirname(t){U1(this.basename,"dirname"),this.path=cr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?cr.extname(this.path):void 0}set extname(t){if(Km(t,"extname"),U1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=cr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){es(t)&&(t=W1(t)),ed(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?cr.basename(this.path,this.extname):void 0}set stem(t){ed(t,"stem"),Km(t,"stem"),this.path=cr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){let o=this.message(t,r,n);throw o.fatal=!0,o}info(t,r,n){let o=this.message(t,r,n);return o.fatal=void 0,o}message(t,r,n){let o=new ot(t,r,n);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Km(e,t){if(e&&e.includes(cr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+cr.sep+"`")}i(Km,"assertPart");function ed(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}i(ed,"assertNonEmpty");function U1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}i(U1,"assertPath");function nB(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}i(nB,"isUint8Array");var j1=i((function(e){let n=this.constructor.prototype,o=n[e],s=i(function(){return o.apply(s,arguments)},"apply");return Object.setPrototypeOf(s,n),s}),"CallableInstance");var xf=St(R1(),1),iB={}.hasOwnProperty,td=class e extends j1{static{i(this,"Processor")}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Jm()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];t.use(...n)}return t.data((0,xf.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(id("data",this.frozen),this.namespace[t]=r,this):iB.call(this.namespace,t)&&this.namespace[t]||void 0:t?(id("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let o=r.call(t,...n);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=gf(t),n=this.parser||this.Parser;return rd("parse",n),n(String(r),r)}process(t,r){let n=this;return this.freeze(),rd("process",this.parser||this.Parser),nd("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,a){let l=gf(t),u=n.parse(l);n.run(u,l,function(f,p,h){if(f||!p||!h)return c(f);let m=p,d=n.stringify(m,h);sB(d)?h.value=d:h.result=d,c(f,h)});function c(f,p){f||!p?a(f):s?s(p):r(void 0,p)}i(c,"realDone")}i(o,"executor")}processSync(t){let r=!1,n;return this.freeze(),rd("processSync",this.parser||this.Parser),nd("processSync",this.compiler||this.Compiler),this.process(t,o),Y1("processSync","process",r),n;function o(s,a){r=!0,Gm(s),n=a}i(o,"realDone")}run(t,r,n){q1(t),this.freeze();let o=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?s(void 0,n):new Promise(s);function s(a,l){let u=gf(r);o.run(t,u,c);function c(f,p,h){let m=p||t;f?l(f):a?a(m):n(void 0,m,h)}i(c,"realDone")}i(s,"executor")}runSync(t,r){let n=!1,o;return this.run(t,r,s),Y1("runSync","run",n),o;function s(a,l){Gm(a),o=l,n=!0}i(s,"realDone")}stringify(t,r){this.freeze();let n=gf(r),o=this.compiler||this.Compiler;return nd("stringify",o),q1(t),o(t,n)}use(t,...r){let n=this.attachers,o=this.namespace;if(id("use",this.frozen),t!=null)if(typeof t=="function")u(t,r);else if(typeof t=="object")Array.isArray(t)?l(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){let[f,...p]=c;u(f,p)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(c.plugins),c.settings&&(o.settings=(0,xf.default)(!0,o.settings,c.settings))}function l(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){let p=c[f];s(p)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,f){let p=-1,h=-1;for(;++p<n.length;)if(n[p][0]===c){h=p;break}if(h===-1)n.push([c,...f]);else if(f.length>0){let[m,...d]=f,g=n[h][1];wa(g)&&wa(m)&&(m=(0,xf.default)(!0,g,m)),n[h]=[c,m,...d]}}}},ka=new td().freeze();function rd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}i(rd,"assertParser");function nd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}i(nd,"assertCompiler");function id(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}i(id,"assertUnfrozen");function q1(e){if(!wa(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}i(q1,"assertNode");function Y1(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}i(Y1,"assertDone");function gf(e){return oB(e)?e:new va(e)}i(gf,"vfile");function oB(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}i(oB,"looksLikeAVFile");function sB(e){return typeof e=="string"||aB(e)}i(sB,"looksLikeAValue");function aB(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}i(aB,"isUint8Array");function rs(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,o=r.indexOf(t);for(;o!==-1;)n++,o=r.indexOf(t,o+t.length);return n}i(rs,"ccount");var et=An(/[A-Za-z]/),$e=An(/[\dA-Za-z]/),V1=An(/[#-'*+\--9=?A-Z^-~]/);function Di(e){return e!==null&&(e<32||e===127)}i(Di,"asciiControl");var Sa=An(/\d/),Q1=An(/[\dA-Fa-f]/),G1=An(/[!-/:-@[-`{-~]/);function j(e){return e!==null&&e<-2}i(j,"markdownLineEnding");function de(e){return e!==null&&(e<0||e===32)}i(de,"markdownLineEndingOrSpace");function Z(e){return e===-2||e===-1||e===32}i(Z,"markdownSpace");var Ci=An(/\p{P}|\p{S}/u),Lr=An(/\s/);function An(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}i(An,"regexCheck");var X1=i((function(e,t,r,n,o){let s=Xr(t);if(r!=null&&(typeof r!="number"||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(n!=null&&(!X1(n)||!n.children))throw new Error("Expected parent node");if(n==null!=(r==null))throw new Error("Expected both parent and index");return J1(e)?s.call(o,e,r,n):!1}),"is"),Xr=i((function(e){if(e==null)return fB;if(typeof e=="function")return yf(e);if(typeof e=="object")return Array.isArray(e)?lB(e):uB(e);if(typeof e=="string")return cB(e);throw new Error("Expected function, string, or object as test")}),"convert");function lB(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Xr(e[r]);return yf(n);function n(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}i(lB,"anyFactory");function uB(e){let t=e;return yf(r);function r(n){let o=n,s;for(s in e)if(o[s]!==t[s])return!1;return!0}}i(uB,"propertiesFactory");function cB(e){return yf(t);function t(r){return r&&r.type===e}}i(cB,"typeFactory");function yf(e){return t;function t(r,n,o){return!!(J1(r)&&e.call(this,r,typeof n=="number"?n:void 0,o||void 0))}}i(yf,"castFactory");function fB(){return!0}i(fB,"ok");function J1(e){return e!==null&&typeof e=="object"&&"type"in e}i(J1,"looksLikeANode");var Z1=[],wf=!0,Oi=!1,bf="skip";function Ta(e,t,r,n){let o;typeof t=="function"&&typeof r!="function"?(n=r,r=t):o=t;let s=Xr(o),a=n?-1:1;l(e,void 0,[])();function l(u,c,f){let p=u&&typeof u=="object"?u:{};if(typeof p.type=="string"){let m=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return h;function h(){let m=Z1,d,g,x;if((!t||s(u,c,f[f.length-1]||void 0))&&(m=pB(r(u,f)),m[0]===Oi))return m;if("children"in u&&u.children){let b=u;if(b.children&&m[0]!==bf)for(g=(n?b.children.length:-1)+a,x=f.concat(b);g>-1&&g<b.children.length;){let T=b.children[g];if(d=l(T,g,x)(),d[0]===Oi)return d;g=typeof d[1]=="number"?d[1]:g+a}}return m}}i(l,"factory")}i(Ta,"visitParents");function pB(e){return Array.isArray(e)?e:typeof e=="number"?[wf,e]:e==null?Z1:[e]}i(pB,"toResult");function od(e,t,r){let o=Xr((r||{}).ignore||[]),s=hB(t),a=-1;for(;++a<s.length;)Ta(e,"text",l);function l(c,f){let p=-1,h;for(;++p<f.length;){let m=f[p],d=h?h.children:void 0;if(o(m,d?d.indexOf(m):void 0,h))return;h=m}if(h)return u(c,f)}i(l,"visitor");function u(c,f){let p=f[f.length-1],h=s[a][0],m=s[a][1],d=0,x=p.children.indexOf(c),b=!1,T=[];h.lastIndex=0;let D=h.exec(c.value);for(;D;){let q=D.index,H={index:D.index,input:D.input,stack:[...f,c]},O=m(...D,H);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?h.lastIndex=q+1:(d!==q&&T.push({type:"text",value:c.value.slice(d,q)}),Array.isArray(O)?T.push(...O):O&&T.push(O),d=q+D[0].length,b=!0),!h.global)break;D=h.exec(c.value)}return b?(d<c.value.length&&T.push({type:"text",value:c.value.slice(d)}),p.children.splice(x,1,...T)):T=[c],x+T.length}i(u,"handler")}i(od,"findAndReplace");function hB(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){let o=r[n];t.push([mB(o[0]),dB(o[1])])}return t}i(hB,"toPairs");function mB(e){return typeof e=="string"?new RegExp(Qn(e),"g"):e}i(mB,"toExpression");function dB(e){return typeof e=="function"?e:function(){return e}}i(dB,"toFunction");var sd="phrasing",ad=["autolink","link","image","label"];function ud(){return{transforms:[vB],enter:{literalAutolink:gB,literalAutolinkEmail:ld,literalAutolinkHttp:ld,literalAutolinkWww:ld},exit:{literalAutolink:bB,literalAutolinkEmail:wB,literalAutolinkHttp:xB,literalAutolinkWww:yB}}}i(ud,"gfmAutolinkLiteralFromMarkdown");function cd(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:sd,notInConstruct:ad},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:sd,notInConstruct:ad},{character:":",before:"[ps]",after:"\\/",inConstruct:sd,notInConstruct:ad}]}}i(cd,"gfmAutolinkLiteralToMarkdown");function gB(e){this.enter({type:"link",title:null,url:"",children:[]},e)}i(gB,"enterLiteralAutolink");function ld(e){this.config.enter.autolinkProtocol.call(this,e)}i(ld,"enterLiteralAutolinkValue");function xB(e){this.config.exit.autolinkProtocol.call(this,e)}i(xB,"exitLiteralAutolinkHttp");function yB(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}i(yB,"exitLiteralAutolinkWww");function wB(e){this.config.exit.autolinkEmail.call(this,e)}i(wB,"exitLiteralAutolinkEmail");function bB(e){this.exit(e)}i(bB,"exitLiteralAutolink");function vB(e){od(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,kB],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,SB]],{ignore:["link","linkReference"]})}i(vB,"transformGfmAutolinkLiterals");function kB(e,t,r,n,o){let s="";if(!K1(o)||(/^w/i.test(t)&&(r=t+r,t="",s="http://"),!TB(r)))return!1;let a=EB(r+n);if(!a[0])return!1;let l={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}i(kB,"findUrl");function SB(e,t,r,n){return!K1(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}i(SB,"findEmail");function TB(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}i(TB,"isCorrectDomain");function EB(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),o=rs(e,"("),s=rs(e,")");for(;n!==-1&&o>s;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),s++;return[e,r]}i(EB,"splitUrl");function K1(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||Lr(r)||Ci(r))&&(!t||r!==47)}i(K1,"previous");function He(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}i(He,"normalizeIdentifier");eT.peek=NB;function DB(){this.buffer()}i(DB,"enterFootnoteCallString");function CB(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}i(CB,"enterFootnoteCall");function OB(){this.buffer()}i(OB,"enterFootnoteDefinitionLabelString");function IB(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}i(IB,"enterFootnoteDefinition");function AB(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=He(this.sliceSerialize(e)).toLowerCase(),r.label=t}i(AB,"exitFootnoteCallString");function MB(e){this.exit(e)}i(MB,"exitFootnoteCall");function _B(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=He(this.sliceSerialize(e)).toLowerCase(),r.label=t}i(_B,"exitFootnoteDefinitionLabelString");function PB(e){this.exit(e)}i(PB,"exitFootnoteDefinition");function NB(){return"["}i(NB,"footnoteReferencePeek");function eT(e,t,r,n){let o=r.createTracker(n),s=o.move("[^"),a=r.enter("footnoteReference"),l=r.enter("reference");return s+=o.move(r.safe(r.associationId(e),{after:"]",before:s})),l(),a(),s+=o.move("]"),s}i(eT,"footnoteReference");function fd(){return{enter:{gfmFootnoteCallString:DB,gfmFootnoteCall:CB,gfmFootnoteDefinitionLabelString:OB,gfmFootnoteDefinition:IB},exit:{gfmFootnoteCallString:AB,gfmFootnoteCall:MB,gfmFootnoteDefinitionLabelString:_B,gfmFootnoteDefinition:PB}}}i(fd,"gfmFootnoteFromMarkdown");function pd(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:eT},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,o,s,a){let l=s.createTracker(a),u=l.move("[^"),c=s.enter("footnoteDefinition"),f=s.enter("label");return u+=l.move(s.safe(s.associationId(n),{before:u,after:"]"})),f(),u+=l.move("]:"),n.children&&n.children.length>0&&(l.shift(4),u+=l.move((t?`
42
- `:" ")+s.indentLines(s.containerFlow(n,l.current()),t?tT:FB))),c(),u}i(r,"footnoteDefinition")}i(pd,"gfmFootnoteToMarkdown");function FB(e,t,r){return t===0?e:tT(e,t,r)}i(FB,"mapExceptFirst");function tT(e,t,r){return(r?"":" ")+e}i(tT,"mapAll");var LB=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];rT.peek=zB;function hd(){return{canContainEols:["delete"],enter:{strikethrough:RB},exit:{strikethrough:BB}}}i(hd,"gfmStrikethroughFromMarkdown");function md(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:LB}],handlers:{delete:rT}}}i(md,"gfmStrikethroughToMarkdown");function RB(e){this.enter({type:"delete",children:[]},e)}i(RB,"enterStrikethrough");function BB(e){this.exit(e)}i(BB,"exitStrikethrough");function rT(e,t,r,n){let o=r.createTracker(n),s=r.enter("strikethrough"),a=o.move("~~");return a+=r.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),s(),a}i(rT,"handleDelete");function zB(){return"~"}i(zB,"peekDelete");function $B(e){return e.length}i($B,"defaultStringLength");function iT(e,t){let r=t||{},n=(r.align||[]).concat(),o=r.stringLength||$B,s=[],a=[],l=[],u=[],c=0,f=-1;for(;++f<e.length;){let g=[],x=[],b=-1;for(e[f].length>c&&(c=e[f].length);++b<e[f].length;){let T=HB(e[f][b]);if(r.alignDelimiters!==!1){let D=o(T);x[b]=D,(u[b]===void 0||D>u[b])&&(u[b]=D)}g.push(T)}a[f]=g,l[f]=x}let p=-1;if(typeof n=="object"&&"length"in n)for(;++p<c;)s[p]=nT(n[p]);else{let g=nT(n);for(;++p<c;)s[p]=g}p=-1;let h=[],m=[];for(;++p<c;){let g=s[p],x="",b="";g===99?(x=":",b=":"):g===108?x=":":g===114&&(b=":");let T=r.alignDelimiters===!1?1:Math.max(1,u[p]-x.length-b.length),D=x+"-".repeat(T)+b;r.alignDelimiters!==!1&&(T=x.length+T+b.length,T>u[p]&&(u[p]=T),m[p]=T),h[p]=D}a.splice(1,0,h),l.splice(1,0,m),f=-1;let d=[];for(;++f<a.length;){let g=a[f],x=l[f];p=-1;let b=[];for(;++p<c;){let T=g[p]||"",D="",q="";if(r.alignDelimiters!==!1){let H=u[p]-(x[p]||0),O=s[p];O===114?D=" ".repeat(H):O===99?H%2?(D=" ".repeat(H/2+.5),q=" ".repeat(H/2-.5)):(D=" ".repeat(H/2),q=D):q=" ".repeat(H)}r.delimiterStart!==!1&&!p&&b.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||p)&&b.push(" "),r.alignDelimiters!==!1&&b.push(D),b.push(T),r.alignDelimiters!==!1&&b.push(q),r.padding!==!1&&b.push(" "),(r.delimiterEnd!==!1||p!==c-1)&&b.push("|")}d.push(r.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return d.join(`
43
- `)}i(iT,"markdownTable");function HB(e){return e==null?"":String(e)}i(HB,"serialize");function nT(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}i(nT,"toAlignment");var oT={}.hasOwnProperty;function vf(e,t){let r=t||{};function n(o,...s){let a=n.invalid,l=n.handlers;if(o&&oT.call(o,e)){let u=String(o[e]);a=oT.call(l,u)?l[u]:n.unknown}if(a)return a.call(this,o,...s)}return i(n,"one"),n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}i(vf,"zwitch");var WB={}.hasOwnProperty;function dd(e,t){let r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)dd(e,t.extensions[r]);for(n in t)if(WB.call(t,n))switch(n){case"extensions":break;case"unsafe":{sT(e[n],t[n]);break}case"join":{sT(e[n],t[n]);break}case"handlers":{UB(e[n],t[n]);break}default:e.options[n]=t[n]}return e}i(dd,"configure");function sT(e,t){t&&e.push(...t)}i(sT,"list");function UB(e,t){t&&Object.assign(e,t)}i(UB,"map");function aT(e,t,r,n){let o=r.enter("blockquote"),s=r.createTracker(n);s.move("> "),s.shift(2);let a=r.indentLines(r.containerFlow(e,s.current()),jB);return o(),a}i(aT,"blockquote");function jB(e,t,r){return">"+(r?"":" ")+e}i(jB,"map");function kf(e,t){return lT(e,t.inConstruct,!0)&&!lT(e,t.notInConstruct,!1)}i(kf,"patternInScope");function lT(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}i(lT,"listInScope");function gd(e,t,r,n){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
44
- `&&kf(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return`\\
45
- `}i(gd,"hardBreak");function uT(e,t){let r=String(e),n=r.indexOf(t),o=n,s=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===o?++s>a&&(a=s):s=1,o=n+t.length,n=r.indexOf(t,o);return a}i(uT,"longestStreak");function Ea(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}i(Ea,"formatCodeAsIndented");function cT(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}i(cT,"checkFence");function fT(e,t,r,n){let o=cT(r),s=e.value||"",a=o==="`"?"GraveAccent":"Tilde";if(Ea(e,r)){let p=r.enter("codeIndented"),h=r.indentLines(s,qB);return p(),h}let l=r.createTracker(n),u=o.repeat(Math.max(uT(s,o)+1,3)),c=r.enter("codeFenced"),f=l.move(u);if(e.lang){let p=r.enter(`codeFencedLang${a}`);f+=l.move(r.safe(e.lang,{before:f,after:" ",encode:["`"],...l.current()})),p()}if(e.lang&&e.meta){let p=r.enter(`codeFencedMeta${a}`);f+=l.move(" "),f+=l.move(r.safe(e.meta,{before:f,after:`
38
+ `)},"stripIndent"),cN=i((e,t)=>{let r=e;return(!t||t.stripIndent)&&(r=uN(r)),(!t||t.normalizeNewline)&&(r=r.replace(/\r\n/g,`
39
+ `)),(!t||t.replaceTabs)&&(r=rv(r," /"," ")),(!t||t.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!t||t.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r},"standard");var Nc={};se(Nc,{isBase64:()=>pN,isUtf8:()=>fN});var qh={encode:i(e=>{if(typeof Buffer<"u")return Buffer.from(e,"utf8").toString("base64");if(typeof btoa<"u"){let t=new TextEncoder().encode(e),r=Array.from(t,n=>String.fromCharCode(n)).join("");return btoa(r)}else{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new TextEncoder().encode(e),n="",o=0;for(;o<r.length;){let s=r[o++],a=o<r.length?r[o++]:0,l=o<r.length?r[o++]:0,u=s<<16|a<<8|l;n+=t.charAt(u>>18&63),n+=t.charAt(u>>12&63),n+=o-2<r.length?t.charAt(u>>6&63):"=",n+=o-1<r.length?t.charAt(u&63):"="}return n}},"encode"),decode:i(e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"=");if(typeof Buffer<"u")return Buffer.from(t,"base64").toString("utf8");if(typeof atob<"u"){let r=atob(t),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return new TextDecoder().decode(n)}else{let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=[],o=0;for(;o<t.length;){let s=r.indexOf(t.charAt(o++)),a=r.indexOf(t.charAt(o++)),l=r.indexOf(t.charAt(o++)),u=r.indexOf(t.charAt(o++)),c=s<<18|a<<12|l<<6|u;n.push(c>>16&255),l!==64&&n.push(c>>8&255),u!==64&&n.push(c&255)}return new TextDecoder().decode(new Uint8Array(n))}},"decode")},_c=class{static{i(this,"Base64")}constructor(t,r){switch(r){case"string":this.refString=t;break;case"base64":this.refString=Ro.decode(t);break;case"base64uri":this.refString=Ro.decode(t)}}get simpleString(){return this.refString}get base64String(){return Ro.encode(this.refString)}get base64UriString(){return Ro.encodeUri(this.refString)}},Ro={encode:i(e=>qh.encode(e),"encode"),encodeUri:i(e=>qh.encode(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),"encodeUri"),decode:i(e=>qh.decode(e),"decode"),isBase64:i(e=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(e),"isBase64")};var fN=i(e=>{let r=new TextEncoder().encode(e),n=0;for(;n<r.length;){if(r[n]===9||r[n]===10||r[n]===13||32<=r[n]&&r[n]<=126){n+=1;continue}if(194<=r[n]&&r[n]<=223&&128<=r[n+1]&&r[n+1]<=191){n+=2;continue}if(r[n]===224&&160<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||(225<=r[n]&&r[n]<=236||r[n]===238||r[n]===239)&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||r[n]===237&&128<=r[n+1]&&r[n+1]<=159&&128<=r[n+2]&&r[n+2]<=191){n+=3;continue}if(r[n]===240&&144<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||241<=r[n]&&r[n]<=243&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||r[n]===244&&128<=r[n+1]&&r[n+1]<=143&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191){n+=4;continue}return!1}return!0},"isUtf8"),pN=i(e=>{let t=/[^A-Z0-9+\/=]/i,r=e.length;if(!r||r%4!==0||t.test(e))return!1;let n=e.indexOf("=");return n===-1||n===r-1||n===r-2&&e[r-1]==="="},"isBase64");var Pc=class{static{i(this,"Domain")}constructor(t){this.protocol=this._protocolRegex(t),this.protocol||(t=`https://${t}`),this.nodeParsedUrl=new URL(t),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(t.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let n=1;n<=5;n++)if(r[n-1]){let o=r[n-1];this["level"+n.toString()]=o,this.fullName===""?this.fullName=o:this.fullName=o+"."+this.fullName}else this["level"+n.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(t){let n=/([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(t);return n.reverse(),n.pop(),n.filter(function(s){return s!==""})}_protocolRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}_portRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}};var Fc=class{static{i(this,"GitRepo")}constructor(t,r){let n=hN(t);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=nv(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=nv(this.host,this.user,this.repo,this.accessToken,"https")}},hN=i(function(e){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(e)},"gitRegex"),nv=i(function(e,t,r,n="",o){let s;switch(n!==""&&(n=n+"@"),o){case"https":s="https://"+n+e+"/"+t+"/"+r+".git";break;case"ssh":s="git@"+e+":"+t+"/"+r+".git";break;default:console.error("Link Type "+o+" not known");break}return s},"gitLink");var jc=It(sm(),1),Yv=It(am(),1),qc=Yv.default;function UP(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(String.fromCharCode(...e))}i(UP,"base64Encode");function WP(e){if(typeof Buffer<"u"){let t=Buffer.from(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}i(WP,"base64Decode");function um(e,t){return JSON.stringify(e,Yc,t)}i(um,"stringify");function cm(e){return JSON.parse(e,Vv)}i(cm,"parse");var Yc=i((e,t)=>{if(qP(t)){let r;if("data"in t&&Qv(t.data))r=new Uint8Array(t.data);else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+UP(r)}}return t},"replacer"),Vv=i((e,t)=>{if(jP(t)&&lm(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return WP(r)}return t},"reviver");function jP(e){return Gv(e)&&e.type==="EncodedBuffer"&&lm(e.data)}i(jP,"isEncodedBuffer");function qP(e){return Gv(e)&&e.type==="Buffer"&&(Qv(e.data)||lm(e.data))||e instanceof Uint8Array}i(qP,"isBufferLike");function Qv(e){return Array.isArray(e)}i(Qv,"isArray");function lm(e){return typeof e=="string"}i(lm,"isString");function Gv(e){return typeof e=="object"&&e!==null}i(Gv,"isObject");var Vc=cm,fm=i(e=>e.split(`
40
+ `).reduce((n,o)=>{let s=o.trim();return s.length>0&&n.push(Vc(s)),n},[]),"parseJsonL"),VP=i(e=>e.map(t=>ci(t)).join(`
41
+ `),"stringifyJsonL"),QP=i((e,t,r={})=>{let n=new WeakSet,o=i(l=>{if(l===null||typeof l!="object")return l;let u=Yc("",l);if(u&&u.type==="EncodedBuffer"&&typeof u.data=="string")return u;if(n.has(l))return"__cycle__";if(n.add(l),Array.isArray(l))return l.map(f=>o(f));let c={};for(let f of Object.keys(l))try{c[f]=o(l[f])}catch{c[f]="__unserializable__"}return c},"sanitize"),s=o(e),a={...r,cycles:!0};if(t&&!a.cmp){let l=new Map;t.forEach((u,c)=>l.set(u,c)),a.cmp=(u,c)=>{let f=l.has(u.key)?l.get(u.key):Number.POSITIVE_INFINITY,p=l.has(c.key)?l.get(c.key):Number.POSITIVE_INFINITY;return f!==p?f-p:u.key<c.key?-1:u.key>c.key?1:0}}return qc(s,a)},"stableOneWayStringify"),ci=i((e,t,r={})=>{let n=um(e);e=JSON.parse(n);let o={...r};if(t&&!o.cmp){let a=new Map;t.forEach((l,u)=>a.set(l,u)),o.cmp=(l,u)=>{let c=a.has(l.key)?a.get(l.key):Number.POSITIVE_INFINITY,f=a.has(u.key)?a.get(u.key):Number.POSITIVE_INFINITY;return c!==f?c-f:l.key<u.key?-1:l.key>u.key?1:0}}return qc(e,o)},"stringify"),GP=i(e=>{let t=ci(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},"stringifyPretty"),JP=i((...e)=>{let t=ci(...e);return St.base64.encodeUri(t)},"stringifyBase64"),KP=i(e=>{let t=St.base64,n=(t.decodeUri||t.decode)(e);return Vc(n)},"parseBase64"),pm=class e{static{i(this,"Smartjson")}static enfoldFromObject(t){let r=new this,n=r.saveableProperties||[];for(let o in t)n.indexOf(o)!==-1&&(r[o]=t[o]);return r}static enfoldFromJson(t){let r=Vc(t);return this.enfoldFromObject(r)}saveableProperties;foldToObject(){let t=new Set;return t.add(this),this.foldToObjectInternal(t)}foldToObjectInternal(t){let r={},n=i(s=>{if(s instanceof e){if(t.has(s))throw new Error("cycle detected");return t.add(s),s.foldToObjectInternal(t)}return Array.isArray(s)?s.map(a=>n(a)):jc.default(s)},"foldValue"),o=this.saveableProperties||[];for(let s of o){let a=this[s];r[s]=n(a)}return r}foldToJson(){let t=this.foldToObject();return ci(t)}},XP=i(()=>(e,t)=>{let r=String(t.name);t.addInitializer(function(){this.saveableProperties||(this.saveableProperties=[]),this.saveableProperties.includes(r)||this.saveableProperties.push(r)})},"foldDec"),Jv=i((e,t)=>{let r=ci(e),n=ci(t);return r===n},"deepEqualObjects"),ZP=i((e,t)=>{let r=fm(e),n=fm(t);return Jv(r,n)},"deepEqualJsonLStrings");var or={};se(or,{TypedrequestCache:()=>wm,WebStore:()=>la});var aa={};se(aa,{deleteDB:()=>ok,openDB:()=>ik,unwrap:()=>sa,wrap:()=>Mr});var hm=i((e,t)=>t.some(r=>e instanceof r),"instanceOfAny"),Kv,Xv;function eF(){return Kv||(Kv=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}i(eF,"getIdbProxyableTypes");function tF(){return Xv||(Xv=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}i(tF,"getCursorAdvanceMethods");var mm=new WeakMap,dm=new WeakMap,Qc=new WeakMap;function rF(e){let t=new Promise((r,n)=>{let o=i(()=>{e.removeEventListener("success",s),e.removeEventListener("error",a)},"unlisten"),s=i(()=>{r(Mr(e.result)),o()},"success"),a=i(()=>{n(e.error),o()},"error");e.addEventListener("success",s),e.addEventListener("error",a)});return Qc.set(t,e),t}i(rF,"promisifyRequest");function nF(e){if(mm.has(e))return;let t=new Promise((r,n)=>{let o=i(()=>{e.removeEventListener("complete",s),e.removeEventListener("error",a),e.removeEventListener("abort",a)},"unlisten"),s=i(()=>{r(),o()},"complete"),a=i(()=>{n(e.error||new DOMException("AbortError","AbortError")),o()},"error");e.addEventListener("complete",s),e.addEventListener("error",a),e.addEventListener("abort",a)});mm.set(e,t)}i(nF,"cacheDonePromiseForTransaction");var gm={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return mm.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Mr(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function Zv(e){gm=e(gm)}i(Zv,"replaceTraps");function iF(e){return tF().includes(e)?function(...t){return e.apply(sa(this),t),Mr(this.request)}:function(...t){return Mr(e.apply(sa(this),t))}}i(iF,"wrapFunction");function oF(e){return typeof e=="function"?iF(e):(e instanceof IDBTransaction&&nF(e),hm(e,eF())?new Proxy(e,gm):e)}i(oF,"transformCachableValue");function Mr(e){if(e instanceof IDBRequest)return rF(e);if(dm.has(e))return dm.get(e);let t=oF(e);return t!==e&&(dm.set(e,t),Qc.set(t,e)),t}i(Mr,"wrap");var sa=i(e=>Qc.get(e),"unwrap");function ik(e,t,{blocked:r,upgrade:n,blocking:o,terminated:s}={}){let a=indexedDB.open(e,t),l=Mr(a);return n&&a.addEventListener("upgradeneeded",u=>{n(Mr(a.result),u.oldVersion,u.newVersion,Mr(a.transaction),u)}),r&&a.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),l.then(u=>{s&&u.addEventListener("close",()=>s()),o&&u.addEventListener("versionchange",c=>o(c.oldVersion,c.newVersion,c))}).catch(()=>{}),l}i(ik,"openDB");function ok(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",n=>t(n.oldVersion,n)),Mr(r).then(()=>{})}i(ok,"deleteDB");var sF=["get","getKey","getAll","getAllKeys","count"],aF=["put","add","delete","clear"],xm=new Map;function ek(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(xm.get(t))return xm.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,o=aF.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||sF.includes(r)))return;let s=i(async function(a,...l){let u=this.transaction(a,o?"readwrite":"readonly"),c=u.store;return n&&(c=c.index(l.shift())),(await Promise.all([c[r](...l),o&&u.done]))[0]},"method");return xm.set(t,s),s}i(ek,"getMethod"),Zv(e=>({...e,get:i((t,r,n)=>ek(t,r)||e.get(t,r,n),"get"),has:i((t,r)=>!!ek(t,r)||e.has(t,r),"has")}));var lF=["continue","continuePrimaryKey","advance"],tk={},ym=new WeakMap,rk=new WeakMap,uF={get(e,t){if(!lF.includes(t))return e[t];let r=tk[t];return r||(r=tk[t]=function(...n){ym.set(this,rk.get(this)[t](...n))}),r}};async function*cF(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let r=new Proxy(t,uF);for(rk.set(r,t),Qc.set(r,sa(t));t;)yield r,t=await(ym.get(r)||t.continue()),ym.delete(r)}i(cF,"iterate");function nk(e,t){return t===Symbol.asyncIterator&&hm(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&hm(e,[IDBIndex,IDBObjectStore])}i(nk,"isIteratorProp"),Zv(e=>({...e,get(t,r,n){return nk(t,r)?cF:e.get(t,r,n)},has(t,r){return nk(t,r)||e.has(t,r)}}));var la=class{static{i(this,"WebStore")}constructor(t){this.initCalled=!1,this.readyDeferred=J.defer(),this.options=t}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let t=new Yr.Smartenv;if(!t.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await t.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await t.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await aa.openDB(this.options.dbName,1,{upgrade:i(r=>{r.createObjectStore(this.options.storeName)},"upgrade")}),this.readyDeferred.resolve()}async get(t){return await this.init(),this.db.get(this.options.storeName,t)}async check(t){return await this.init(),!!await this.get(t)}async set(t,r){return await this.init(),this.db.put(this.options.storeName,r,t)}async delete(t){return await this.init(),this.db.delete(this.options.storeName,t)}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 wm=class{static{i(this,"TypedrequestCache")}constructor(t="default"){this.webstore=new la({dbName:"trStore",storeName:`trStore-${t}`})}buildKey(t){return Tt.stringify({method:t.method,request:t.request})}async setByRequest(t){if(!t.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(t),t)}async getByRequest(t){return await this.webstore.get(this.buildKey(t))}};var Uo=class{static{i(this,"CacheStore")}constructor(t="webrequest-v4",r="cache"){this.webstore=new or.WebStore({dbName:t,storeName:r}),this.initPromise=this.init()}async init(){}generateCacheKey(t){let r=t.url,n=t.method;return n==="GET"?r:`${n}:${r}`}async set(t,r){await this.initPromise,await this.webstore.set(t,r)}async get(t){await this.initPromise;try{return await this.webstore.get(t)||null}catch{return null}}async has(t){return await this.initPromise,await this.webstore.check(t)}async delete(t){await this.initPromise,await this.webstore.delete(t)}async clear(){await this.initPromise,await this.webstore.clear()}responseFromCacheEntry(t){let r=new Headers(t.headers);return new Response(t.response,{status:t.status,statusText:t.statusText,headers:r})}async cacheEntryFromResponse(t,r,n){let o=r.clone(),s=await o.arrayBuffer(),a={};return o.headers.forEach((l,u)=>{a[u]=l}),{response:s,headers:a,timestamp:Date.now(),etag:n?.etag||o.headers.get("etag")||void 0,lastModified:n?.lastModified||o.headers.get("last-modified")||void 0,maxAge:n?.maxAge,url:t,status:o.status,statusText:o.statusText}}async pruneExpired(){return await this.initPromise,0}};function fF(e){let t={maxAge:0,immutable:!1,noCache:!1,noStore:!1,mustRevalidate:!1};if(!e)return t;let r=e.toLowerCase().split(",").map(n=>n.trim());for(let n of r)if(n==="no-cache")t.noCache=!0;else if(n==="no-store")t.noStore=!0;else if(n==="immutable")t.immutable=!0;else if(n==="must-revalidate")t.mustRevalidate=!0;else if(n.startsWith("max-age=")){let o=parseInt(n.split("=")[1],10);isNaN(o)||(t.maxAge=o*1e3)}return t}i(fF,"parseCacheControl");function pF(e){if(e)try{return new Date(e).getTime()}catch{return}}i(pF,"parseExpires");function _r(e){let t=e.get("cache-control"),r=e.get("expires"),n=e.get("etag"),o=e.get("last-modified"),s=fF(t);if(s.maxAge===0&&r){let a=pF(r);a&&(s.maxAge=Math.max(0,a-Date.now()))}return{maxAge:s.maxAge||0,etag:n||void 0,lastModified:o||void 0,immutable:s.immutable||!1,noCache:s.noCache||!1,noStore:s.noStore||!1,mustRevalidate:s.mustRevalidate||!1}}i(_r,"extractCacheMetadata");function ua(e,t){if(t.noStore)return!1;if(t.immutable)return!0;let r=Date.now()-e.timestamp,n=e.maxAge||t.maxAge||0;return n===0?!1:r<n}i(ua,"isFresh");function ca(e){return e.noCache||e.mustRevalidate}i(ca,"requiresRevalidation");function Jc(e){let t={};return e.etag&&(t["if-none-match"]=e.etag),e.lastModified&&(t["if-modified-since"]=e.lastModified),t}i(Jc,"createConditionalHeaders");function Kc(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}i(Kc,"headersToObject");function ak(e){let t=new Headers;return Object.entries(e).forEach(([r,n])=>{t.set(r,n)}),t}i(ak,"objectToHeaders");var Xc=class{static{i(this,"NetworkFirstStrategy")}async execute(t){try{let r=await t.fetchFn(t.request);return r.ok&&await this.cacheResponse(t,r),{response:r,fromCache:!1,revalidated:!1}}catch(r){t.logging&&console.log("[webrequest] Network failed, trying cache:",r);let n=await t.cacheStore.get(t.cacheKey);if(n)return{response:t.cacheStore.responseFromCacheEntry(n),fromCache:!0,revalidated:!1};throw r}}async cacheResponse(t,r){let n=_r(r.headers);if(n.noStore)return;let o=await t.cacheStore.cacheEntryFromResponse(t.request.url,r,n);await t.cacheStore.set(t.cacheKey,o)}},bm=class{static{i(this,"CacheFirstStrategy")}async execute(t){let r=await t.cacheStore.get(t.cacheKey);if(r){let s=_r(new Headers(r.headers));if(ua(r,s))return t.logging&&console.log("[webrequest] Cache hit (fresh):",t.request.url),{response:t.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1};if(ca(s)&&(r.etag||r.lastModified))return await this.revalidate(t,r)}t.logging&&console.log("[webrequest] Cache miss, fetching:",t.request.url);let n=await t.fetchFn(t.request),o=_r(n.headers);if(!o.noStore){let s=await t.cacheStore.cacheEntryFromResponse(t.request.url,n,o);await t.cacheStore.set(t.cacheKey,s)}return{response:n,fromCache:!1,revalidated:!1}}async revalidate(t,r){let n=Jc(r),o=new Request(t.request.url,{method:t.request.method,headers:{...Kc(t.request.headers),...n}});try{let s=await t.fetchFn(o);if(s.status===304)return t.logging&&console.log("[webrequest] Cache revalidated (304):",t.request.url),r.timestamp=Date.now(),await t.cacheStore.set(t.cacheKey,r),{response:t.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!0};if(s.ok){let a=_r(s.headers);if(!a.noStore){let l=await t.cacheStore.cacheEntryFromResponse(t.request.url,s,a);await t.cacheStore.set(t.cacheKey,l)}}return{response:s,fromCache:!1,revalidated:!0}}catch(s){return t.logging&&console.log("[webrequest] Revalidation failed, using cache:",s),{response:t.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1}}}},vm=class{static{i(this,"StaleWhileRevalidateStrategy")}async execute(t){let r=await t.cacheStore.get(t.cacheKey);if(r){let s=t.cacheStore.responseFromCacheEntry(r);return this.revalidateInBackground(t,r).catch(a=>{t.logging&&console.warn("[webrequest] Background revalidation failed:",a)}),{response:s,fromCache:!0,revalidated:!1}}let n=await t.fetchFn(t.request),o=_r(n.headers);if(!o.noStore&&n.ok){let s=await t.cacheStore.cacheEntryFromResponse(t.request.url,n,o);await t.cacheStore.set(t.cacheKey,s)}return{response:n,fromCache:!1,revalidated:!1}}async revalidateInBackground(t,r){let n=_r(new Headers(r.headers));if(!(ua(r,n)&&!ca(n)))try{let o=await t.fetchFn(t.request);if(o.ok){let s=_r(o.headers);if(!s.noStore){let a=await t.cacheStore.cacheEntryFromResponse(t.request.url,o,s);await t.cacheStore.set(t.cacheKey,a),t.logging&&console.log("[webrequest] Background revalidation complete:",t.request.url)}}}catch(o){t.logging&&console.warn("[webrequest] Background revalidation failed:",o)}}},km=class{static{i(this,"NetworkOnlyStrategy")}async execute(t){return{response:await t.fetchFn(t.request),fromCache:!1,revalidated:!1}}},Sm=class{static{i(this,"CacheOnlyStrategy")}async execute(t){let r=await t.cacheStore.get(t.cacheKey);if(!r)throw new Error(`Cache miss for ${t.request.url} (cache-only mode)`);return{response:t.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1}}};function lk(e){switch(e){case"network-first":return new Xc;case"cache-first":return new bm;case"stale-while-revalidate":return new vm;case"network-only":return new km;case"cache-only":return new Sm;default:return new Xc}}i(lk,"getStrategyHandler");var Wo=class{static{i(this,"CacheManager")}constructor(t,r){this.cacheStore=new Uo(t,r)}async execute(t,r,n){let o=this.determineStrategy(t,r);if(o==="network-only")return{response:await n(t),fromCache:!1,revalidated:!1};let s=this.generateCacheKey(t,r),a=lk(o),l={request:t,cacheKey:s,cacheStore:this.cacheStore,fetchFn:n,logging:r.logging};return await a.execute(l)}determineStrategy(t,r){return r.cacheStrategy?r.cacheStrategy:r.cache?this.mapCacheModeToStrategy(r.cache):t.cache?this.mapCacheModeToStrategy(t.cache):"network-first"}mapCacheModeToStrategy(t){switch(t){case"default":return"network-first";case"no-store":case"reload":return"network-only";case"no-cache":return"network-first";case"force-cache":return"cache-first";case"only-if-cached":return"cache-only";default:return"network-first"}}generateCacheKey(t,r){return r.cacheKey?typeof r.cacheKey=="function"?r.cacheKey(t):r.cacheKey:this.cacheStore.generateCacheKey(t)}async clear(){await this.cacheStore.clear()}async delete(t){await this.cacheStore.delete(t)}async has(t){return await this.cacheStore.has(t)}getStore(){return this.cacheStore}};var Zc=class{static{i(this,"ExponentialBackoff")}calculate(t,r,n){let o=r*Math.pow(2,t-1);return Math.min(o,n)}},Tm=class{static{i(this,"LinearBackoff")}calculate(t,r,n){let o=r*t;return Math.min(o,n)}},Em=class{static{i(this,"ConstantBackoff")}calculate(t,r,n){return Math.min(r,n)}};function uk(e){switch(e){case"exponential":return new Zc;case"linear":return new Tm;case"constant":return new Em;default:return new Zc}}i(uk,"getBackoffCalculator");function ck(e,t=.1){let r=e*t*Math.random();return e+r}i(ck,"addJitter");var jo=class{static{i(this,"RetryManager")}constructor(t={}){this.options={maxAttempts:t.maxAttempts??3,backoff:t.backoff??"exponential",initialDelay:t.initialDelay??1e3,maxDelay:t.maxDelay??3e4,retryOn:t.retryOn??[408,429,500,502,503,504],onRetry:t.onRetry??(()=>{})}}async execute(t,r){let n,o;for(let s=1;s<=this.options.maxAttempts;s++)try{let a=await t();if(a instanceof Response&&this.shouldRetryResponse(a)){if(o=a,s===this.options.maxAttempts)return a;let l=this.calculateDelay(s);this.options.onRetry(s,new Error(`HTTP ${a.status}`),l),await this.delay(l);continue}return a}catch(a){n=a instanceof Error?a:new Error(String(a));let l=r?r(a,s):this.shouldRetryError(a);if(s===this.options.maxAttempts||!l)throw n;let u=this.calculateDelay(s);this.options.onRetry(s,n,u),await this.delay(u)}throw n||new Error("Max retry attempts reached")}async executeWithFallbacks(t,r,n){if(t.length===0)throw new Error("No URLs provided for fallback execution");let o,s=[];for(let a of t)try{let l=await this.execute(async()=>await n(a,r));if(l.status<400||l.status>=400&&l.status<500&&l.status!==408)return l;s.push(a),o=new Error(`Request failed with status ${l.status}`)}catch(l){s.push(a),o=l instanceof Error?l:new Error(String(l))}throw new Error(`All URLs failed: ${s.join(", ")}. Last error: ${o?.message||"Unknown error"}`)}shouldRetryResponse(t){let r=this.options.retryOn;return typeof r=="function"?r(t):Array.isArray(r)?r.includes(t.status):!1}shouldRetryError(t){if(t instanceof TypeError&&t.message.includes("fetch")||t.name==="AbortError"||t.message.includes("timeout"))return!0;let r=this.options.retryOn;return typeof r=="function"?r(void 0,t):!1}calculateDelay(t){let n=uk(this.options.backoff).calculate(t,this.options.initialDelay,this.options.maxDelay);return ck(n)}async delay(t){await he.delayFor(t)}};var qo=class{static{i(this,"RequestDeduplicator")}constructor(){this.inFlightRequests=new Map}generateKey(t){let r=t.url,n=t.method;return n==="GET"||n==="HEAD"?`${n}:${r}`:`${n}:${r}:${Date.now()}`}async execute(t,r){let n=this.inFlightRequests.get(t);if(n)return{response:(await n.promise).clone(),wasDeduplicated:!0};let o=J.defer();this.inFlightRequests.set(t,o);try{let s=await r();return o.resolve(s),this.inFlightRequests.delete(t),{response:s,wasDeduplicated:!1}}catch(s){throw o.reject(s),this.inFlightRequests.delete(t),s}}isInFlight(t){return this.inFlightRequests.has(t)}getInFlightCount(){return this.inFlightRequests.size}clear(){this.inFlightRequests.clear()}};function hF(e){let t=new AbortController,r=new he.Timeout(e,null);return r.promise.then(()=>{t.abort()}),{controller:t,cleanup:i(()=>{r.cancel()},"cleanup")}}i(hF,"createTimeoutController");async function Dm(e,t,r){let{controller:n,cleanup:o}=hF(r);try{let s=await fetch(e,{...t,signal:n.signal});return o(),s}catch(s){throw o(),s instanceof Error&&s.name==="AbortError"?new Error(`Request timeout after ${r}ms: ${e}`):s}}i(Dm,"fetchWithTimeout");var fi=class{static{i(this,"WebrequestClient")}constructor(t={}){this.defaultOptions=t,this.interceptorManager=new Lo,this.cacheManager=new Wo,this.deduplicator=new qo}addRequestInterceptor(t){this.interceptorManager.addRequestInterceptor(t)}addResponseInterceptor(t){this.interceptorManager.addResponseInterceptor(t)}addErrorInterceptor(t){this.interceptorManager.addErrorInterceptor(t)}removeRequestInterceptor(t){this.interceptorManager.removeRequestInterceptor(t)}removeResponseInterceptor(t){this.interceptorManager.removeResponseInterceptor(t)}removeErrorInterceptor(t){this.interceptorManager.removeErrorInterceptor(t)}clearInterceptors(){this.interceptorManager.clearAll()}async clearCache(){await this.cacheManager.clear()}async request(t,r={}){let n={...this.defaultOptions,...r},o;if(typeof t=="string"?o=new Request(t,n):o=t,o=await this.interceptorManager.processRequest(o),n.interceptors?.request)for(let a of n.interceptors.request)o=await a(o);if(n.deduplicate??!1){let a=this.deduplicator.generateKey(o);return(await this.deduplicator.execute(a,async()=>await this.executeRequest(o,n))).response}return await this.executeRequest(o,n)}async executeRequest(t,r){try{let n=typeof r.retry=="object"?r.retry:r.retry?{}:void 0,o=i(async l=>{let u=r.timeout??6e4;return await Dm(l.url,{method:l.method,headers:l.headers,body:l.body,...r},u)},"fetchFnForRequest"),s=i(async(l,u)=>{let c=r.timeout??6e4;return await Dm(l,u,c)},"fetchFnForFallbacks"),a;if(n){let l=new jo(n);if(r.fallbackUrls&&r.fallbackUrls.length>0){let u=[t.url,...r.fallbackUrls];a=await l.executeWithFallbacks(u,{method:t.method,headers:t.headers,body:t.body,...r},s)}else a=await l.execute(async()=>(await this.cacheManager.execute(t,r,o)).response)}else a=(await this.cacheManager.execute(t,r,o)).response;if(a=await this.interceptorManager.processResponse(a),r.interceptors?.response)for(let l of r.interceptors.response)a=await l(a);return a}catch(n){throw await this.interceptorManager.processError(n instanceof Error?n:new Error(String(n)))}}async getJson(t,r={}){let n=await this.request(t,{...r,method:"GET",headers:{Accept:"application/json",...r.headers||{}}});if(!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);return await n.json()}async postJson(t,r,n={}){let o=await this.request(t,{...n,method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",...n.headers||{}},body:JSON.stringify(r)});if(!o.ok)throw new Error(`HTTP ${o.status}: ${o.statusText}`);return await o.json()}async putJson(t,r,n={}){let o=await this.request(t,{...n,method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json",...n.headers||{}},body:JSON.stringify(r)});if(!o.ok)throw new Error(`HTTP ${o.status}: ${o.statusText}`);return await o.json()}async deleteJson(t,r={}){let n=await this.request(t,{...r,method:"DELETE",headers:{Accept:"application/json",...r.headers||{}}});if(!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);return await n.json()}};var sr=new fi;async function Ut(e,t){let r=e instanceof Request?e.url:String(e),n=e instanceof Request?e:new Request(r,t);return await sr.request(n,t)}i(Ut,"webrequest"),Ut.getJson=async function(e,t){return await sr.getJson(e,t)},Ut.postJson=async function(e,t,r){return await sr.postJson(e,t,r)},Ut.putJson=async function(e,t,r){return await sr.putJson(e,t,r)},Ut.deleteJson=async function(e,t){return await sr.deleteJson(e,t)},Ut.addRequestInterceptor=function(e){sr.addRequestInterceptor(e)},Ut.addResponseInterceptor=function(e){sr.addResponseInterceptor(e)},Ut.addErrorInterceptor=function(e){sr.addErrorInterceptor(e)},Ut.clearInterceptors=function(){sr.clearInterceptors()},Ut.clearCache=async function(){await sr.clearCache()},Ut.createClient=function(e){return new fi(e)},Ut.getDefaultClient=function(){return sr};var Dn=It($p(),1);var ar=class{static{i(this,"TypedResponseError")}constructor(t,r){this.errorText=t,this.errorData=r}};var tf=class{static{i(this,"TypedTools")}constructor(){this.localData={}}async passGuards(t,r){let n=new ra.GuardSet(t);if(!await n.allGuardsPass(r)){let s=await n.getFailedHint(r);throw new ar(`guard failed: ${s}`,{failedHint:s})}}};var Cm=class{static{i(this,"TypedHandler")}constructor(t,r){this.method=t,this.handlerFunction=r}async addResponse(t){if(t.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,n=new tf;t.localData&&(n.localData=t.localData);let o=await this.handlerFunction(t.request,n).catch(s=>{s instanceof ar?r=s:console.log(s)});return r&&(t.error={text:r.errorText,data:r.errorData}),o&&(t.response=o),t?.correlation?.phase&&(t.correlation.phase="response"),t}};var hi=class e{static{i(this,"TypedRouter")}constructor(){this.hooks={},this.routerMap=new Xe.ObjectMap,this.handlerMap=new Xe.ObjectMap,this.registeredVirtualStreams=new Xe.ObjectMap,this.middlewares=[],this.fireEventInterestMap=new Xe.InterestMap(t=>t)}static get globalHooks(){return globalThis.__typedRouterGlobalHooks||(globalThis.__typedRouterGlobalHooks={}),globalThis.__typedRouterGlobalHooks}static set globalHooks(t){globalThis.__typedRouterGlobalHooks=t}static setGlobalHooks(t){let r=e.globalHooks;e.globalHooks={...r,...t}}static clearGlobalHooks(){globalThis.__typedRouterGlobalHooks={}}setHooks(t){this.hooks={...this.hooks,...t}}callHook(t,r){try{e.globalHooks[t]?.(r),this.hooks[t]?.(r)}catch(n){console.error(`TypedRouter hook error (${t}):`,n)}}addMiddleware(t){this.middlewares.push(t)}addTypedHandler(t){if(this.getTypedHandlerForMethod(t.method))throw new Error(`a TypedHandler for ${t.method} alredy exists! Can't add another one.`);this.handlerMap.add(t)}addTypedRouter(t){this.routerMap.findSync(n=>n===t)||(this.routerMap.add(t),t.addTypedRouter(this))}checkForTypedHandler(t){return!!this.getTypedHandlerForMethod(t)}getTypedHandlerForMethod(t,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(o=>o.method===t),n||this.routerMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(t,r))}),n}getTypedHandlerAndRouter(t,r=[]){r.push(this);let n=this.handlerMap.findSync(o=>o.method===t);if(n)return{handler:n,router:this};for(let o of this.routerMap.getArray())if(!r.includes(o)){let s=o.getTypedHandlerAndRouter(t,r);if(s)return s}return null}static{this.defaultRouteOptions={localRequest:!1,skipHooks:!1}}async routeAndAddResponse(t,r={}){let n={...e.defaultRouteOptions,...r};if(t=lr.decodePayloadFromNetwork(t,{typedrouter:this}),t.localData=t.localData||{},t.localData.firstTypedrouter=this,t.method==="##VirtualStream##"){let o=await this.handleStreamTypedRequest(t);return o.localData=null,o}if(t?.correlation?.phase==="request"||n.localRequest){let o=Date.now();n.skipHooks||this.callHook("onIncomingRequest",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"incoming",phase:"request",timestamp:o,payload:t.request});let s=this.getTypedHandlerAndRouter(t.method);if(!s)return console.log(`Cannot find handler for methodname ${t.method}`),t.error={text:"There is no available method for this call on the server side",data:{}},t.correlation.phase="response",t.localData=null,t=lr.encodePayloadForNetwork(t,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:t.response,error:t.error?.text}),t;let{handler:a,router:l}=s;if(l.middlewares.length>0)try{for(let u of l.middlewares)await u(t)}catch(u){return u instanceof ar?t.error={text:u.errorText,data:u.errorData||{}}:t.error={text:u.message||"Middleware error",data:{}},t.correlation.phase="response",t.localData=null,t=lr.encodePayloadForNetwork(t,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:t.response,error:t.error?.text}),t}return t=await a.addResponse(t),t.localData=null,t=lr.encodePayloadForNetwork(t,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:t.response,error:t.error?.text}),t}else return t?.correlation?.phase==="response"?(n.skipHooks||this.callHook("onIncomingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"incoming",phase:"response",timestamp:Date.now(),payload:t.response,error:t.error?.text}),this.fireEventInterestMap.findInterest(t.correlation.id)?.fullfillInterest(t),null):(console.log("received weirdly shaped request"),console.log(t),null)}async handleStreamTypedRequest(t){let r=await this.registeredVirtualStreams.find(async o=>o.streamId===t.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${t.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${t.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),t;return await r.handleStreamTr(t)}};var fk="#############CLOSING BIT#############",lr=class e{static{i(this,"VirtualStream")}static encodePayloadForNetwork(t,r,n,o=[]){return!t||Fo.isBufferLike(t)?t:t instanceof e?(!t.side&&r.sendMethod&&(t.side="requesting",t.sendMethod=r.sendMethod),!t.side&&r.typedrouter&&(t.side="responding",t.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(t)),!n.response||o.includes("response")?(t.startKeepAliveLoop(),{_isVirtualStream:!0,streamId:t.streamId}):{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: obmitted for deduplication reasons in response cycle."}):Array.isArray(t)?t.map((s,a)=>e.encodePayloadForNetwork(s,r,n||t,o.concat(String(a)))):t!==null&&typeof t=="object"?Object.entries(t).reduce((s,[a,l])=>{let u=o.concat(a);return s[a]=e.encodePayloadForNetwork(l,r,n||t,u),s},{}):t}static decodePayloadFromNetwork(t,r){if(Fo.isBufferLike(t)||t instanceof hi)return t;if(t!==null&&typeof t=="object"){if(t instanceof Set||t instanceof Map||t instanceof Date||t instanceof RegExp||t instanceof Error||t instanceof Promise||typeof t.then=="function")return t;if(t._isVirtualStream){let n=new e;return n.streamId=t.streamId,!n.side&&r.sendMethod&&(n.side="requesting",n.sendMethod=r.sendMethod),!n.side&&r.typedrouter&&(n.side="responding",n.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(n)),n.startKeepAliveLoop(),n}else if(Array.isArray(t)){let n=[];for(let o of t)n.push(e.decodePayloadFromNetwork(o,r));return n}else return Object.keys(t).reduce((n,o)=>(n[o]=e.decodePayloadFromNetwork(t[o],r),n),{})}else return t}constructor(){this.streamId=Dn.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new Xe.BackpressuredArray(16),this.receiveBackpressuredArray=new Xe.BackpressuredArray(16)}static reconstituteBinaryData(t){if(t==null||t instanceof Uint8Array||typeof Buffer<"u"&&Buffer.isBuffer(t))return t;if(typeof t=="object"){if(t.type==="Buffer"&&Array.isArray(t.data))return new Uint8Array(t.data);let r=Object.keys(t);if(r.length>0&&r.every(n=>/^\d+$/.test(n))){let n=new Array(r.length);for(let o of r)n[Number(o)]=t[o];if(n.every(o=>typeof o=="number"))return new Uint8Array(n)}}return t}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=J.defer(),this.side==="requesting"){let t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,n=!1,o=i(async()=>{let s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Dn.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});s&&s.response&&(n=s.response.backpressure,r=s.response.next)},"getFeedback");for(await o();this.sendBackpressuredArray.data.length>0||r;){if(n)for(;n;)console.log("waiting for feedback because of backpressure..."),await he.delayFor(50),await o();let s;this.sendBackpressuredArray.data.length>0&&(s=this.sendBackpressuredArray.shift());let a;a=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Dn.uni(),cycle:"request",mainPurpose:s?"chunk":"read",backpressure:t,next:this.sendBackpressuredArray.data.length>0,...s?{chunkData:s}:{}},response:null}).catch(()=>(console.log("stream ended immaturely"),this.keepAlive=!1,null)),a&&a.response&&a.response.chunkData&&this.receiveBackpressuredArray.push(e.reconstituteBinaryData(a.response.chunkData)),n=a&&a.response&&a.response.backpressure,t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=a&&a.response&&a.response.next}}this.workingDeferred.resolve(),this.workingDeferred=null}async handleStreamTr(t){if(t.request.keepAlive===!0&&this.keepAlive===!0?this.lastKeepAliveEvent=Date.now():t.request.keepAlive===!1&&(this.keepAlive=!1),t.request.mainPurpose==="keepAlive"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"keepAlive",keepAlive:this.keepAlive,next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="feedback"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="chunk"){if(this.receiveBackpressuredArray.push(e.reconstituteBinaryData(t.request.chunkData)),this.sendBackpressuredArray.data.length>0&&t.response.backpressure===!1){let r=this.sendBackpressuredArray.shift();t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"chunk",next:this.sendBackpressuredArray.data.length>1,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable(),chunkData:this.sendBackpressuredArray.shift()}}else t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()};t.request=null}return t}async cleanup(){this.typedrouter&&this.typedrouter.registeredVirtualStreams.remove(this)}async startKeepAliveLoop(){if(this.side==="responding")return;await he.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let t=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await he.delayFor(1e3);await he.delayFor(1e3),await this.cleanup(),console.log(`cleaned up for stream ${this.streamId}`)}async triggerKeepAlive(){if(this.side==="requesting"){console.log("keepalive sent.");let t=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Dn.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:this.keepAlive},response:null}).catch(()=>{this.keepAlive=!1});t&&t.response&&t.response.keepAlive===!1?this.keepAlive=!1:this.lastKeepAliveEvent=Date.now(),t&&t.response&&t.response.next&&this.workOnQueue()}Date.now()-this.lastKeepAliveEvent>1e4&&(console.log(`closing stream for ${this.streamId}`),this.keepAlive=!1)}async sendData(t){this.sendBackpressuredArray.push(t),this.workOnQueue(),await this.sendBackpressuredArray.waitForSpace()}async fetchData(){return this.receiveBackpressuredArray.hasSpace,await this.receiveBackpressuredArray.waitForItems(),this.receiveBackpressuredArray.shift()}async readFromWebstream(t,r=!0){let n=t.getReader(),o=!1;for(;!o;){let{value:s,done:a}=await n.read();s&&await this.sendData(s),o=a}r&&await this.close(!0)}async writeToWebstream(t){let r=t.getWriter();for(;this.keepAlive||this.receiveBackpressuredArray.checkHasItems();){let n=await this.fetchData();if(n===fk){r.releaseLock(),await t.close();break}await r.write(n)}}async close(t=!1){t&&this.sendData(fk),this.keepAlive=!1}};var Im=class{static{i(this,"TypedTarget")}constructor(t){if(t.postMethodWithTypedRouter&&!t.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=t}async post(t){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(t.correlation.id,t));let o=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(t),s;return r?s=await r.interestFullfilled:o?s=o:s=t,s}};var mF=new pi.WebrequestClient;function pk(e,t){try{hi.globalHooks[e]?.(t)}catch(r){console.error(`TypedRequest hook error (${e}):`,r)}}i(pk,"callGlobalHook");var rf=class{static{i(this,"TypedRequest")}constructor(t,r){this.skipHooks=!1,typeof t=="string"?this.urlEndPoint=t:this.typedTarget=t,this.method=r}async fire(t,r=!1){let n=Date.now(),o={method:this.method,request:t,response:null,correlation:{id:Dn.uni(),phase:"request"}};o=lr.encodePayloadForNetwork(o,{sendMethod:i(a=>this.postTrObject(a),"sendMethod")}),this.skipHooks||pk("onOutgoingRequest",{correlationId:o.correlation.id,method:this.method,direction:"outgoing",phase:"request",timestamp:n,payload:t});let s;return s=await this.postTrObject(o,r),s=lr.decodePayloadFromNetwork(s,{sendMethod:i(a=>this.postTrObject(a),"sendMethod")}),this.skipHooks||pk("onIncomingResponse",{correlationId:o.correlation.id,method:this.method,direction:"incoming",phase:"response",timestamp:Date.now(),durationMs:Date.now()-n,payload:s?.response,error:s?.error?.text}),s.response}async postTrObject(t,r=!1){let n;if(this.urlEndPoint?n=await mF.postJson(this.urlEndPoint,t,r?{cacheStrategy:"cache-first"}:{}):n=await this.typedTarget.post(t),n.error){if(console.error(`method: >>${this.method}<< got an ERROR: "${n.error.text}" with data ${JSON.stringify(n.error.data,null,2)}`),!n.retry)throw new ar(n.error.text,n.error.data);return null}return n.retry&&(console.log(`server requested retry for the following reason: ${n.retry.reason}`),await he.delayFor(n.retry.waitForMs),n=await this.postTrObject(t,r)),n}};function hk(e){return e&&typeof e.then=="function"}i(hk,"isPromise");var mk=Promise.resolve(!1),pMe=Promise.resolve(!0),Nr=Promise.resolve();function nf(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}i(nf,"sleep");function dk(e,t){return Math.floor(Math.random()*(t-e+1)+e)}i(dk,"randomInt");function fa(){return Math.random().toString(36).substring(2)}i(fa,"randomToken");var Om=0;function Gr(){var e=Date.now()*1e3;return e<=Om&&(e=Om+1),Om=e,e}i(Gr,"microSeconds");function hMe(){return typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function"}i(hMe,"supportsWebLockAPI");var dF=Gr,gF="native";function xF(e){var t={time:Gr(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(r){t.messagesCallback&&t.messagesCallback(r.data)},t}i(xF,"create");function yF(e){e.bc.close(),e.subFns=[]}i(yF,"close");function wF(e,t){try{return e.bc.postMessage(t,!1),Nr}catch(r){return Promise.reject(r)}}i(wF,"postMessage");function bF(e,t){e.messagesCallback=t}i(bF,"onMessage");function vF(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}i(vF,"canBeUsed");function kF(){return 150}i(kF,"averageResponseTime");var gk={create:xF,close:yF,onMessage:bF,postMessage:wF,canBeUsed:vF,type:gF,averageResponseTime:kF,microSeconds:dF};var Yo=class{static{i(this,"ObliviousSet")}ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){let r=this.map.get(t);return typeof r>"u"?!1:r<Am()-this.ttl?(this.map.delete(t),!1):!0}add(t){this.map.delete(t),this.map.set(t,Am()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,SF(this)},0))}clear(){this.map.clear()}};function SF(e){let t=Am()-e.ttl,r=e.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)break;let o=n[0];if(n[1]<t)e.map.delete(o);else break}}i(SF,"removeTooOldValues");function Am(){return Date.now()}i(Am,"now");function mi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}i(mi,"fillOptionsWithDefaults");var TF=Gr,EF="pubkey.broadcast-channel-0-",ur="messages",pa={durability:"relaxed"},DF="idb";function xk(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}i(xk,"getIdb");function of(e){e.commit&&e.commit()}i(of,"commitIndexedDBTransaction");function CF(e){var t=xk(),r=EF+e,n=t.open(r);return n.onupgradeneeded=function(o){var s=o.target.result;s.createObjectStore(ur,{keyPath:"id",autoIncrement:!0})},new Promise(function(o,s){n.onerror=function(a){return s(a)},n.onsuccess=function(){o(n.result)}})}i(CF,"createDatabase");function IF(e,t,r){var n=Date.now(),o={uuid:t,time:n,data:r},s=e.transaction([ur],"readwrite",pa);return new Promise(function(a,l){s.oncomplete=function(){return a()},s.onerror=function(c){return l(c)};var u=s.objectStore(ur);u.add(o),of(s)})}i(IF,"writeMessage");function DMe(e){var t=e.transaction(ur,"readonly",pa),r=t.objectStore(ur),n=[];return new Promise(function(o){r.openCursor().onsuccess=function(s){var a=s.target.result;a?(n.push(a.value),a.continue()):(of(t),o(n))}})}i(DMe,"getAllMessages");function OF(e,t){var r=e.transaction(ur,"readonly",pa),n=r.objectStore(ur),o=[],s=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var a=n.getAll(s);return new Promise(function(u,c){a.onerror=function(f){return c(f)},a.onsuccess=function(f){u(f.target.result)}})}function l(){try{return s=IDBKeyRange.bound(t+1,1/0),n.openCursor(s)}catch{return n.openCursor()}}return i(l,"openCursor"),new Promise(function(u,c){var f=l();f.onerror=function(p){return c(p)},f.onsuccess=function(p){var h=p.target.result;h?h.value.id<t+1?h.continue(t+1):(o.push(h.value),h.continue()):(of(r),u(o))}})}i(OF,"getMessagesHigherThan");function AF(e,t){if(e.closed)return Promise.resolve([]);var r=e.db.transaction(ur,"readwrite",pa),n=r.objectStore(ur);return Promise.all(t.map(function(o){var s=n.delete(o);return new Promise(function(a){s.onsuccess=function(){return a()}})}))}i(AF,"removeMessagesById");function MF(e,t){var r=Date.now()-t,n=e.transaction(ur,"readonly",pa),o=n.objectStore(ur),s=[];return new Promise(function(a){o.openCursor().onsuccess=function(l){var u=l.target.result;if(u){var c=u.value;c.time<r?(s.push(c),u.continue()):(of(n),a(s))}else a(s)}})}i(MF,"getOldMessages");function _F(e){return MF(e.db,e.options.idb.ttl).then(function(t){return AF(e,t.map(function(r){return r.id}))})}i(_F,"cleanOldMessages");function NF(e,t){return t=mi(t),CF(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:fa(),eMIs:new Yo(t.idb.ttl*2),writeBlockPromise:Nr,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},yk(n),n})}i(NF,"create");function yk(e){e.closed||wk(e).then(function(){return nf(e.options.idb.fallbackInterval)}).then(function(){return yk(e)})}i(yk,"_readLoop");function PF(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}i(PF,"_filterMessage");function wk(e){return e.closed?Nr:e.messagesCallback?OF(e.db,e.lastCursorId).then(function(t){var r=t.filter(function(n){return!!n}).map(function(n){return n.id>e.lastCursorId&&(e.lastCursorId=n.id),n}).filter(function(n){return PF(n,e)}).sort(function(n,o){return n.time-o.time});return r.forEach(function(n){e.messagesCallback&&(e.eMIs.add(n.id),e.messagesCallback(n.data))}),Nr}):Nr}i(wk,"readNewMessages");function FF(e){e.closed=!0,e.db.close()}i(FF,"close");function LF(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return IF(e.db,e.uuid,t)}).then(function(){dk(0,10)===0&&_F(e)}),e.writeBlockPromise}i(LF,"postMessage");function RF(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,wk(e)}i(RF,"onMessage");function BF(){return!!xk()}i(BF,"canBeUsed");function zF(e){return e.idb.fallbackInterval*2}i(zF,"averageResponseTime");var bk={create:NF,close:FF,onMessage:RF,postMessage:LF,canBeUsed:BF,type:DF,averageResponseTime:zF,microSeconds:TF};var $F=Gr,HF="pubkey.broadcastChannel-",UF="localstorage";function vk(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}i(vk,"getLocalStorage");function kk(e){return HF+e}i(kk,"storageKey");function WF(e,t){return new Promise(function(r){nf().then(function(){var n=kk(e.channelName),o={token:fa(),time:Date.now(),data:t,uuid:e.uuid},s=JSON.stringify(o);vk().setItem(n,s);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=n,a.newValue=s,window.dispatchEvent(a),r()})})}i(WF,"postMessage");function jF(e,t){var r=kk(e),n=i(function(s){s.key===r&&t(JSON.parse(s.newValue))},"listener");return window.addEventListener("storage",n),n}i(jF,"addStorageEventListener");function qF(e){window.removeEventListener("storage",e)}i(qF,"removeStorageEventListener");function YF(e,t){if(t=mi(t),!Sk())throw new Error("BroadcastChannel: localstorage cannot be used");var r=fa(),n=new Yo(t.localstorage.removeTimeout),o={channelName:e,uuid:r,eMIs:n};return o.listener=jF(e,function(s){o.messagesCallback&&s.uuid!==r&&(!s.token||n.has(s.token)||s.data.time&&s.data.time<o.messagesCallbackTime||(n.add(s.token),o.messagesCallback(s.data)))}),o}i(YF,"create");function VF(e){qF(e.listener)}i(VF,"close");function QF(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}i(QF,"onMessage");function Sk(){var e=vk();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}i(Sk,"canBeUsed");function GF(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}i(GF,"averageResponseTime");var Tk={create:YF,close:VF,onMessage:QF,postMessage:WF,canBeUsed:Sk,type:UF,averageResponseTime:GF,microSeconds:$F};var Ek=Gr,JF="simulate",Mm=new Set;function KF(e){var t={time:Ek(),name:e,messagesCallback:null};return Mm.add(t),t}i(KF,"create");function XF(e){Mm.delete(e)}i(XF,"close");var Dk=5;function ZF(e,t){return new Promise(function(r){return setTimeout(function(){var n=Array.from(Mm);n.forEach(function(o){o.name===e.name&&o!==e&&o.messagesCallback&&o.time<t.time&&o.messagesCallback(t)}),r()},Dk)})}i(ZF,"postMessage");function eL(e,t){e.messagesCallback=t}i(eL,"onMessage");function tL(){return!0}i(tL,"canBeUsed");function rL(){return Dk}i(rL,"averageResponseTime");var Ck={create:KF,close:XF,onMessage:eL,postMessage:ZF,canBeUsed:tL,type:JF,averageResponseTime:rL,microSeconds:Ek};var Ik=[gk,bk,Tk];function _m(e){var t=[].concat(e.methods,Ik).filter(Boolean);if(e.type){if(e.type==="simulate")return Ck;var r=t.find(function(o){return o.type===e.type});if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(o){return o.type!=="idb"}));var n=t.find(function(o){return o.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(Ik.map(function(o){return o.type})))}i(_m,"chooseMethod");var Pm=new Set,nL=0,di=i(function(t,r){this.id=nL++,Pm.add(this),this.name=t,Nm&&(r=Nm),this.options=mi(r),this.method=_m(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,sL(this)},"BroadcastChannel");di._pubkey=!0;function iL(e){e=mi(e);var t=_m(e);return t.type==="node"?t.clearNodeFolder().then(function(){return!0}):mk}i(iL,"clearNodeFolder");var Nm;function oL(e){Nm=e}i(oL,"enforceOptions"),di.prototype={postMessage:i(function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return Ok(this,"message",t)},"postMessage"),postInternal:i(function(t){return Ok(this,"internal",t)},"postInternal"),set onmessage(e){var t=this.method.microSeconds(),r={time:t,fn:e};_k(this,"message",this._onML),e&&typeof e=="function"?(this._onML=r,Mk(this,"message",r)):this._onML=null},addEventListener:i(function(t,r){var n=this.method.microSeconds(),o={time:n,fn:r};Mk(this,t,o)},"addEventListener"),removeEventListener:i(function(t,r){var n=this._addEL[t].find(function(o){return o.fn===r});_k(this,t,n)},"removeEventListener"),close:i(function(){var t=this;if(!this.closed){Pm.delete(this),this.closed=!0;var r=this._prepP?this._prepP:Nr;return this._onML=null,this._addEL.message=[],r.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(n){return n()}))}).then(function(){return t.method.close(t._state)})}},"close"),get type(){return this.method.type},get isClosed(){return this.closed}};function Ok(e,t,r){var n=e.method.microSeconds(),o={time:n,type:t,data:r},s=e._prepP?e._prepP:Nr;return s.then(function(){var a=e.method.postMessage(e._state,o);return e._uMP.add(a),a.catch().then(function(){return e._uMP.delete(a)}),a})}i(Ok,"_post");function sL(e){var t=e.method.create(e.name,e.options);hk(t)?(e._prepP=t,t.then(function(r){e._state=r})):e._state=t}i(sL,"_prepareChannel");function Ak(e){return e._addEL.message.length>0||e._addEL.internal.length>0}i(Ak,"_hasMessageListeners");function Mk(e,t,r){e._addEL[t].push(r),aL(e)}i(Mk,"_addListenerObject");function _k(e,t,r){e._addEL[t]=e._addEL[t].filter(function(n){return n!==r}),lL(e)}i(_k,"_removeListenerObject");function aL(e){if(!e._iL&&Ak(e)){var t=i(function(o){e._addEL[o.type].forEach(function(s){o.time>=s.time&&s.fn(o.data)})},"listenerFn"),r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}i(aL,"_startListening");function lL(e){if(e._iL&&!Ak(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}i(lL,"_stopListening");var Fm=globalThis.BroadcastChannel;Fm||(Fm=di);var Lm=class{static{i(this,"DeesComms")}constructor(){this.broadcastChannel=new Fm("dees-comms"),this.typedrouter=new Nt.TypedRouter,this.typedtarget=new Nt.TypedTarget({postMethodWithTypedRouter:i(async t=>{this.postMessage(t)},"postMethodWithTypedRouter"),typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async t=>{let r=t.method?t:t.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r,{skipHooks:!0});n&&!n.error&&this.postMessage(n)}}createTypedRequest(t){return new Nt.TypedRequest(this.typedtarget,t)}async postMessage(t){this.broadcastChannel.postMessage(t)}async createTypedHandler(t,r){this.typedrouter.addTypedHandler(new Nt.TypedHandler(t,r))}};var qa={};se(qa,{SmartMarkdown:()=>Gg});function Gm(e){if(e)throw e}i(Gm,"bail");function ba(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}i(ba,"isPlainObject");function Jm(){let e=[],t={run:r,use:n};return t;function r(...o){let s=-1,a=o.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);l(null,...o);function l(u,...c){let f=e[++s],p=-1;if(u){a(u);return}for(;++p<o.length;)(c[p]===null||c[p]===void 0)&&(c[p]=o[p]);o=c,f?L1(f,l)(...c):a(null,...c)}i(l,"next")}function n(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}i(Jm,"trough");function L1(e,t){let r;return n;function n(...a){let l=e.length>a.length,u;l&&a.push(o);try{u=e.apply(this,a)}catch(c){let f=c;if(l&&r)throw f;return o(f)}l||(u&&u.then&&typeof u.then=="function"?u.then(s,o):u instanceof Error?o(u):s(u))}function o(a,...l){r||(r=!0,t(a,...l))}function s(a){o(null,a)}}i(L1,"wrap");function On(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?R1(e.position):"start"in e||"end"in e?R1(e):"line"in e||"column"in e?Km(e):""}i(On,"stringifyPosition");function Km(e){return B1(e&&e.line)+":"+B1(e&&e.column)}i(Km,"point");function R1(e){return Km(e&&e.start)+"-"+Km(e&&e.end)}i(R1,"position");function B1(e){return e&&typeof e=="number"?e:1}i(B1,"index");var ot=class extends Error{static{i(this,"VFileMessage")}constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let o="",s={},a=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?o=t:!s.cause&&t&&(a=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof n=="string"){let u=n.indexOf(":");u===-1?s.ruleId=n:(s.source=n.slice(0,u),s.ruleId=n.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){let u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}let l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=l?l.line:void 0,this.name=On(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};ot.prototype.file="",ot.prototype.name="",ot.prototype.reason="",ot.prototype.message="",ot.prototype.stack="",ot.prototype.column=void 0,ot.prototype.line=void 0,ot.prototype.ancestors=void 0,ot.prototype.cause=void 0,ot.prototype.fatal=void 0,ot.prototype.place=void 0,ot.prototype.ruleId=void 0,ot.prototype.source=void 0;var cr={basename:V2,dirname:Q2,extname:G2,join:J2,sep:"/"};function V2(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');va(e);let r=0,n=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else n<0&&(s=!0,n=o+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let a=-1,l=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else a<0&&(s=!0,a=o+1),l>-1&&(e.codePointAt(o)===t.codePointAt(l--)?l<0&&(n=o):(l=-1,n=a));return r===n?n=a:n<0&&(n=e.length),e.slice(r,n)}i(V2,"basename");function Q2(e){if(va(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}i(Q2,"dirname");function G2(e){va(e);let t=e.length,r=-1,n=0,o=-1,s=0,a;for(;t--;){let l=e.codePointAt(t);if(l===47){if(a){n=t+1;break}continue}r<0&&(a=!0,r=t+1),l===46?o<0?o=t:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===n+1?"":e.slice(o,r)}i(G2,"extname");function J2(...e){let t=-1,r;for(;++t<e.length;)va(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":K2(r)}i(J2,"join");function K2(e){va(e);let t=e.codePointAt(0)===47,r=X2(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}i(K2,"normalize");function X2(e,t){let r="",n=0,o=-1,s=0,a=-1,l,u;for(;++a<=e.length;){if(a<e.length)l=e.codePointAt(a);else{if(l===47)break;l=47}if(l===47){if(!(o===a-1||s===1))if(o!==a-1&&s===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(u=r.lastIndexOf("/"),u!==r.length-1){u<0?(r="",n=0):(r=r.slice(0,u),n=r.length-1-r.lastIndexOf("/")),o=a,s=0;continue}}else if(r.length>0){r="",n=0,o=a,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),n=a-o-1;o=a,s=0}else l===46&&s>-1?s++:s=-1}return r}i(X2,"normalizeString");function va(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}i(va,"assertPath");var z1={cwd:Z2};function Z2(){return"/"}i(Z2,"cwd");function es(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}i(es,"isUrl");function $1(e){if(typeof e=="string")e=new URL(e);else if(!es(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return eB(e)}i($1,"urlToPath");function eB(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){let n=t.codePointAt(r+2);if(n===70||n===102){let o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}i(eB,"getPathFromURLPosix");var Xm=["history","path","basename","stem","extname","dirname"],ka=class{static{i(this,"VFile")}constructor(t){let r;t?es(t)?r={path:t}:typeof t=="string"||tB(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":z1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Xm.length;){let s=Xm[n];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)Xm.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?cr.basename(this.path):void 0}set basename(t){ed(t,"basename"),Zm(t,"basename"),this.path=cr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?cr.dirname(this.path):void 0}set dirname(t){H1(this.basename,"dirname"),this.path=cr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?cr.extname(this.path):void 0}set extname(t){if(Zm(t,"extname"),H1(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=cr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){es(t)&&(t=$1(t)),ed(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?cr.basename(this.path,this.extname):void 0}set stem(t){ed(t,"stem"),Zm(t,"stem"),this.path=cr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){let o=this.message(t,r,n);throw o.fatal=!0,o}info(t,r,n){let o=this.message(t,r,n);return o.fatal=void 0,o}message(t,r,n){let o=new ot(t,r,n);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Zm(e,t){if(e&&e.includes(cr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+cr.sep+"`")}i(Zm,"assertPart");function ed(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}i(ed,"assertNonEmpty");function H1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}i(H1,"assertPath");function tB(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}i(tB,"isUint8Array");var U1=i((function(e){let n=this.constructor.prototype,o=n[e],s=i(function(){return o.apply(s,arguments)},"apply");return Object.setPrototypeOf(s,n),s}),"CallableInstance");var yf=It(F1(),1),rB={}.hasOwnProperty,td=class e extends U1{static{i(this,"Processor")}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Jm()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];t.use(...n)}return t.data((0,yf.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(id("data",this.frozen),this.namespace[t]=r,this):rB.call(this.namespace,t)&&this.namespace[t]||void 0:t?(id("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let o=r.call(t,...n);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=xf(t),n=this.parser||this.Parser;return rd("parse",n),n(String(r),r)}process(t,r){let n=this;return this.freeze(),rd("process",this.parser||this.Parser),nd("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,a){let l=xf(t),u=n.parse(l);n.run(u,l,function(f,p,h){if(f||!p||!h)return c(f);let m=p,d=n.stringify(m,h);iB(d)?h.value=d:h.result=d,c(f,h)});function c(f,p){f||!p?a(f):s?s(p):r(void 0,p)}i(c,"realDone")}i(o,"executor")}processSync(t){let r=!1,n;return this.freeze(),rd("processSync",this.parser||this.Parser),nd("processSync",this.compiler||this.Compiler),this.process(t,o),j1("processSync","process",r),n;function o(s,a){r=!0,Gm(s),n=a}i(o,"realDone")}run(t,r,n){W1(t),this.freeze();let o=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?s(void 0,n):new Promise(s);function s(a,l){let u=xf(r);o.run(t,u,c);function c(f,p,h){let m=p||t;f?l(f):a?a(m):n(void 0,m,h)}i(c,"realDone")}i(s,"executor")}runSync(t,r){let n=!1,o;return this.run(t,r,s),j1("runSync","run",n),o;function s(a,l){Gm(a),o=l,n=!0}i(s,"realDone")}stringify(t,r){this.freeze();let n=xf(r),o=this.compiler||this.Compiler;return nd("stringify",o),W1(t),o(t,n)}use(t,...r){let n=this.attachers,o=this.namespace;if(id("use",this.frozen),t!=null)if(typeof t=="function")u(t,r);else if(typeof t=="object")Array.isArray(t)?l(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){let[f,...p]=c;u(f,p)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(c.plugins),c.settings&&(o.settings=(0,yf.default)(!0,o.settings,c.settings))}function l(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){let p=c[f];s(p)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,f){let p=-1,h=-1;for(;++p<n.length;)if(n[p][0]===c){h=p;break}if(h===-1)n.push([c,...f]);else if(f.length>0){let[m,...d]=f,g=n[h][1];ba(g)&&ba(m)&&(m=(0,yf.default)(!0,g,m)),n[h]=[c,m,...d]}}}},Sa=new td().freeze();function rd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}i(rd,"assertParser");function nd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}i(nd,"assertCompiler");function id(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}i(id,"assertUnfrozen");function W1(e){if(!ba(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}i(W1,"assertNode");function j1(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}i(j1,"assertDone");function xf(e){return nB(e)?e:new ka(e)}i(xf,"vfile");function nB(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}i(nB,"looksLikeAVFile");function iB(e){return typeof e=="string"||oB(e)}i(iB,"looksLikeAValue");function oB(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}i(oB,"isUint8Array");function rs(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,o=r.indexOf(t);for(;o!==-1;)n++,o=r.indexOf(t,o+t.length);return n}i(rs,"ccount");var et=An(/[A-Za-z]/),$e=An(/[\dA-Za-z]/),q1=An(/[#-'*+\--9=?A-Z^-~]/);function Si(e){return e!==null&&(e<32||e===127)}i(Si,"asciiControl");var Ta=An(/\d/),Y1=An(/[\dA-Fa-f]/),V1=An(/[!-/:-@[-`{-~]/);function j(e){return e!==null&&e<-2}i(j,"markdownLineEnding");function de(e){return e!==null&&(e<0||e===32)}i(de,"markdownLineEndingOrSpace");function X(e){return e===-2||e===-1||e===32}i(X,"markdownSpace");var Ti=An(/\p{P}|\p{S}/u),Lr=An(/\s/);function An(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}i(An,"regexCheck");var G1=i((function(e,t,r,n,o){let s=Kr(t);if(r!=null&&(typeof r!="number"||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(n!=null&&(!G1(n)||!n.children))throw new Error("Expected parent node");if(n==null!=(r==null))throw new Error("Expected both parent and index");return Q1(e)?s.call(o,e,r,n):!1}),"is"),Kr=i((function(e){if(e==null)return uB;if(typeof e=="function")return wf(e);if(typeof e=="object")return Array.isArray(e)?sB(e):aB(e);if(typeof e=="string")return lB(e);throw new Error("Expected function, string, or object as test")}),"convert");function sB(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Kr(e[r]);return wf(n);function n(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}i(sB,"anyFactory");function aB(e){let t=e;return wf(r);function r(n){let o=n,s;for(s in e)if(o[s]!==t[s])return!1;return!0}}i(aB,"propertiesFactory");function lB(e){return wf(t);function t(r){return r&&r.type===e}}i(lB,"typeFactory");function wf(e){return t;function t(r,n,o){return!!(Q1(r)&&e.call(this,r,typeof n=="number"?n:void 0,o||void 0))}}i(wf,"castFactory");function uB(){return!0}i(uB,"ok");function Q1(e){return e!==null&&typeof e=="object"&&"type"in e}i(Q1,"looksLikeANode");var J1=[],bf=!0,Ei=!1,vf="skip";function Ea(e,t,r,n){let o;typeof t=="function"&&typeof r!="function"?(n=r,r=t):o=t;let s=Kr(o),a=n?-1:1;l(e,void 0,[])();function l(u,c,f){let p=u&&typeof u=="object"?u:{};if(typeof p.type=="string"){let m=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return h;function h(){let m=J1,d,g,x;if((!t||s(u,c,f[f.length-1]||void 0))&&(m=cB(r(u,f)),m[0]===Ei))return m;if("children"in u&&u.children){let b=u;if(b.children&&m[0]!==vf)for(g=(n?b.children.length:-1)+a,x=f.concat(b);g>-1&&g<b.children.length;){let T=b.children[g];if(d=l(T,g,x)(),d[0]===Ei)return d;g=typeof d[1]=="number"?d[1]:g+a}}return m}}i(l,"factory")}i(Ea,"visitParents");function cB(e){return Array.isArray(e)?e:typeof e=="number"?[bf,e]:e==null?J1:[e]}i(cB,"toResult");function od(e,t,r){let o=Kr((r||{}).ignore||[]),s=fB(t),a=-1;for(;++a<s.length;)Ea(e,"text",l);function l(c,f){let p=-1,h;for(;++p<f.length;){let m=f[p],d=h?h.children:void 0;if(o(m,d?d.indexOf(m):void 0,h))return;h=m}if(h)return u(c,f)}i(l,"visitor");function u(c,f){let p=f[f.length-1],h=s[a][0],m=s[a][1],d=0,x=p.children.indexOf(c),b=!1,T=[];h.lastIndex=0;let D=h.exec(c.value);for(;D;){let q=D.index,H={index:D.index,input:D.input,stack:[...f,c]},I=m(...D,H);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I===!1?h.lastIndex=q+1:(d!==q&&T.push({type:"text",value:c.value.slice(d,q)}),Array.isArray(I)?T.push(...I):I&&T.push(I),d=q+D[0].length,b=!0),!h.global)break;D=h.exec(c.value)}return b?(d<c.value.length&&T.push({type:"text",value:c.value.slice(d)}),p.children.splice(x,1,...T)):T=[c],x+T.length}i(u,"handler")}i(od,"findAndReplace");function fB(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){let o=r[n];t.push([pB(o[0]),hB(o[1])])}return t}i(fB,"toPairs");function pB(e){return typeof e=="string"?new RegExp(qn(e),"g"):e}i(pB,"toExpression");function hB(e){return typeof e=="function"?e:function(){return e}}i(hB,"toFunction");var sd="phrasing",ad=["autolink","link","image","label"];function ud(){return{transforms:[wB],enter:{literalAutolink:mB,literalAutolinkEmail:ld,literalAutolinkHttp:ld,literalAutolinkWww:ld},exit:{literalAutolink:yB,literalAutolinkEmail:xB,literalAutolinkHttp:dB,literalAutolinkWww:gB}}}i(ud,"gfmAutolinkLiteralFromMarkdown");function cd(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:sd,notInConstruct:ad},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:sd,notInConstruct:ad},{character:":",before:"[ps]",after:"\\/",inConstruct:sd,notInConstruct:ad}]}}i(cd,"gfmAutolinkLiteralToMarkdown");function mB(e){this.enter({type:"link",title:null,url:"",children:[]},e)}i(mB,"enterLiteralAutolink");function ld(e){this.config.enter.autolinkProtocol.call(this,e)}i(ld,"enterLiteralAutolinkValue");function dB(e){this.config.exit.autolinkProtocol.call(this,e)}i(dB,"exitLiteralAutolinkHttp");function gB(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}i(gB,"exitLiteralAutolinkWww");function xB(e){this.config.exit.autolinkEmail.call(this,e)}i(xB,"exitLiteralAutolinkEmail");function yB(e){this.exit(e)}i(yB,"exitLiteralAutolink");function wB(e){od(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bB],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,vB]],{ignore:["link","linkReference"]})}i(wB,"transformGfmAutolinkLiterals");function bB(e,t,r,n,o){let s="";if(!K1(o)||(/^w/i.test(t)&&(r=t+r,t="",s="http://"),!kB(r)))return!1;let a=SB(r+n);if(!a[0])return!1;let l={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}i(bB,"findUrl");function vB(e,t,r,n){return!K1(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}i(vB,"findEmail");function kB(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}i(kB,"isCorrectDomain");function SB(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),o=rs(e,"("),s=rs(e,")");for(;n!==-1&&o>s;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),s++;return[e,r]}i(SB,"splitUrl");function K1(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||Lr(r)||Ti(r))&&(!t||r!==47)}i(K1,"previous");function He(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}i(He,"normalizeIdentifier");X1.peek=_B;function TB(){this.buffer()}i(TB,"enterFootnoteCallString");function EB(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}i(EB,"enterFootnoteCall");function DB(){this.buffer()}i(DB,"enterFootnoteDefinitionLabelString");function CB(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}i(CB,"enterFootnoteDefinition");function IB(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=He(this.sliceSerialize(e)).toLowerCase(),r.label=t}i(IB,"exitFootnoteCallString");function OB(e){this.exit(e)}i(OB,"exitFootnoteCall");function AB(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=He(this.sliceSerialize(e)).toLowerCase(),r.label=t}i(AB,"exitFootnoteDefinitionLabelString");function MB(e){this.exit(e)}i(MB,"exitFootnoteDefinition");function _B(){return"["}i(_B,"footnoteReferencePeek");function X1(e,t,r,n){let o=r.createTracker(n),s=o.move("[^"),a=r.enter("footnoteReference"),l=r.enter("reference");return s+=o.move(r.safe(r.associationId(e),{after:"]",before:s})),l(),a(),s+=o.move("]"),s}i(X1,"footnoteReference");function fd(){return{enter:{gfmFootnoteCallString:TB,gfmFootnoteCall:EB,gfmFootnoteDefinitionLabelString:DB,gfmFootnoteDefinition:CB},exit:{gfmFootnoteCallString:IB,gfmFootnoteCall:OB,gfmFootnoteDefinitionLabelString:AB,gfmFootnoteDefinition:MB}}}i(fd,"gfmFootnoteFromMarkdown");function pd(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:X1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,o,s,a){let l=s.createTracker(a),u=l.move("[^"),c=s.enter("footnoteDefinition"),f=s.enter("label");return u+=l.move(s.safe(s.associationId(n),{before:u,after:"]"})),f(),u+=l.move("]:"),n.children&&n.children.length>0&&(l.shift(4),u+=l.move((t?`
42
+ `:" ")+s.indentLines(s.containerFlow(n,l.current()),t?Z1:NB))),c(),u}i(r,"footnoteDefinition")}i(pd,"gfmFootnoteToMarkdown");function NB(e,t,r){return t===0?e:Z1(e,t,r)}i(NB,"mapExceptFirst");function Z1(e,t,r){return(r?"":" ")+e}i(Z1,"mapAll");var PB=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];eT.peek=RB;function hd(){return{canContainEols:["delete"],enter:{strikethrough:FB},exit:{strikethrough:LB}}}i(hd,"gfmStrikethroughFromMarkdown");function md(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:PB}],handlers:{delete:eT}}}i(md,"gfmStrikethroughToMarkdown");function FB(e){this.enter({type:"delete",children:[]},e)}i(FB,"enterStrikethrough");function LB(e){this.exit(e)}i(LB,"exitStrikethrough");function eT(e,t,r,n){let o=r.createTracker(n),s=r.enter("strikethrough"),a=o.move("~~");return a+=r.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),s(),a}i(eT,"handleDelete");function RB(){return"~"}i(RB,"peekDelete");function BB(e){return e.length}i(BB,"defaultStringLength");function rT(e,t){let r=t||{},n=(r.align||[]).concat(),o=r.stringLength||BB,s=[],a=[],l=[],u=[],c=0,f=-1;for(;++f<e.length;){let g=[],x=[],b=-1;for(e[f].length>c&&(c=e[f].length);++b<e[f].length;){let T=zB(e[f][b]);if(r.alignDelimiters!==!1){let D=o(T);x[b]=D,(u[b]===void 0||D>u[b])&&(u[b]=D)}g.push(T)}a[f]=g,l[f]=x}let p=-1;if(typeof n=="object"&&"length"in n)for(;++p<c;)s[p]=tT(n[p]);else{let g=tT(n);for(;++p<c;)s[p]=g}p=-1;let h=[],m=[];for(;++p<c;){let g=s[p],x="",b="";g===99?(x=":",b=":"):g===108?x=":":g===114&&(b=":");let T=r.alignDelimiters===!1?1:Math.max(1,u[p]-x.length-b.length),D=x+"-".repeat(T)+b;r.alignDelimiters!==!1&&(T=x.length+T+b.length,T>u[p]&&(u[p]=T),m[p]=T),h[p]=D}a.splice(1,0,h),l.splice(1,0,m),f=-1;let d=[];for(;++f<a.length;){let g=a[f],x=l[f];p=-1;let b=[];for(;++p<c;){let T=g[p]||"",D="",q="";if(r.alignDelimiters!==!1){let H=u[p]-(x[p]||0),I=s[p];I===114?D=" ".repeat(H):I===99?H%2?(D=" ".repeat(H/2+.5),q=" ".repeat(H/2-.5)):(D=" ".repeat(H/2),q=D):q=" ".repeat(H)}r.delimiterStart!==!1&&!p&&b.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||p)&&b.push(" "),r.alignDelimiters!==!1&&b.push(D),b.push(T),r.alignDelimiters!==!1&&b.push(q),r.padding!==!1&&b.push(" "),(r.delimiterEnd!==!1||p!==c-1)&&b.push("|")}d.push(r.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return d.join(`
43
+ `)}i(rT,"markdownTable");function zB(e){return e==null?"":String(e)}i(zB,"serialize");function tT(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}i(tT,"toAlignment");var nT={}.hasOwnProperty;function kf(e,t){let r=t||{};function n(o,...s){let a=n.invalid,l=n.handlers;if(o&&nT.call(o,e)){let u=String(o[e]);a=nT.call(l,u)?l[u]:n.unknown}if(a)return a.call(this,o,...s)}return i(n,"one"),n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}i(kf,"zwitch");var $B={}.hasOwnProperty;function dd(e,t){let r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)dd(e,t.extensions[r]);for(n in t)if($B.call(t,n))switch(n){case"extensions":break;case"unsafe":{iT(e[n],t[n]);break}case"join":{iT(e[n],t[n]);break}case"handlers":{HB(e[n],t[n]);break}default:e.options[n]=t[n]}return e}i(dd,"configure");function iT(e,t){t&&e.push(...t)}i(iT,"list");function HB(e,t){t&&Object.assign(e,t)}i(HB,"map");function oT(e,t,r,n){let o=r.enter("blockquote"),s=r.createTracker(n);s.move("> "),s.shift(2);let a=r.indentLines(r.containerFlow(e,s.current()),UB);return o(),a}i(oT,"blockquote");function UB(e,t,r){return">"+(r?"":" ")+e}i(UB,"map");function Sf(e,t){return sT(e,t.inConstruct,!0)&&!sT(e,t.notInConstruct,!1)}i(Sf,"patternInScope");function sT(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}i(sT,"listInScope");function gd(e,t,r,n){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
44
+ `&&Sf(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return`\\
45
+ `}i(gd,"hardBreak");function aT(e,t){let r=String(e),n=r.indexOf(t),o=n,s=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===o?++s>a&&(a=s):s=1,o=n+t.length,n=r.indexOf(t,o);return a}i(aT,"longestStreak");function Da(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}i(Da,"formatCodeAsIndented");function lT(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}i(lT,"checkFence");function uT(e,t,r,n){let o=lT(r),s=e.value||"",a=o==="`"?"GraveAccent":"Tilde";if(Da(e,r)){let p=r.enter("codeIndented"),h=r.indentLines(s,WB);return p(),h}let l=r.createTracker(n),u=o.repeat(Math.max(aT(s,o)+1,3)),c=r.enter("codeFenced"),f=l.move(u);if(e.lang){let p=r.enter(`codeFencedLang${a}`);f+=l.move(r.safe(e.lang,{before:f,after:" ",encode:["`"],...l.current()})),p()}if(e.lang&&e.meta){let p=r.enter(`codeFencedMeta${a}`);f+=l.move(" "),f+=l.move(r.safe(e.meta,{before:f,after:`
46
46
  `,encode:["`"],...l.current()})),p()}return f+=l.move(`
47
47
  `),s&&(f+=l.move(s+`
48
- `)),f+=l.move(u),c(),f}i(fT,"code");function qB(e,t,r){return(r?"":" ")+e}i(qB,"map");function ns(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}i(ns,"checkQuote");function pT(e,t,r,n){let o=ns(r),s=o==='"'?"Quote":"Apostrophe",a=r.enter("definition"),l=r.enter("label"),u=r.createTracker(n),c=u.move("[");return c+=u.move(r.safe(r.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(r.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=r.enter("destinationRaw"),c+=u.move(r.safe(e.url,{before:c,after:e.title?" ":`
49
- `,...u.current()}))),l(),e.title&&(l=r.enter(`title${s}`),c+=u.move(" "+o),c+=u.move(r.safe(e.title,{before:c,after:o,...u.current()})),c+=u.move(o),l()),a(),c}i(pT,"definition");function hT(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}i(hT,"checkEmphasis");function Ut(e){return"&#x"+e.toString(16).toUpperCase()+";"}i(Ut,"encodeCharacterReference");function Zr(e){if(e===null||de(e)||Lr(e))return 1;if(Ci(e))return 2}i(Zr,"classifyCharacter");function is(e,t,r){let n=Zr(e),o=Zr(t);return n===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}i(is,"encodeInfo");xd.peek=YB;function xd(e,t,r,n){let o=hT(r),s=r.enter("emphasis"),a=r.createTracker(n),l=a.move(o),u=a.move(r.containerPhrasing(e,{after:o,before:l,...a.current()})),c=u.charCodeAt(0),f=is(n.before.charCodeAt(n.before.length-1),c,o);f.inside&&(u=Ut(c)+u.slice(1));let p=u.charCodeAt(u.length-1),h=is(n.after.charCodeAt(0),p,o);h.inside&&(u=u.slice(0,-1)+Ut(p));let m=a.move(o);return s(),r.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},l+u+m}i(xd,"emphasis");function YB(e,t,r){return r.options.emphasis||"*"}i(YB,"emphasisPeek");function Da(e,t,r,n){let o,s,a;typeof t=="function"&&typeof r!="function"?(s=void 0,a=t,o=r):(s=t,a=r,o=n),Ta(e,s,l,o);function l(u,c){let f=c[c.length-1],p=f?f.children.indexOf(u):void 0;return a(u,p,f)}i(l,"overload")}i(Da,"visit");var VB={};function Ii(e,t){let r=t||VB,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return mT(e,n,o)}i(Ii,"toString");function mT(e,t,r){if(QB(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return dT(e.children,t,r)}return Array.isArray(e)?dT(e,t,r):""}i(mT,"one");function dT(e,t,r){let n=[],o=-1;for(;++o<e.length;)n[o]=mT(e[o],t,r);return n.join("")}i(dT,"all");function QB(e){return!!(e&&typeof e=="object")}i(QB,"node");function Sf(e,t){let r=!1;return Da(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Oi}),!!((!e.depth||e.depth<3)&&Ii(e)&&(t.options.setext||r))}i(Sf,"formatHeadingAsSetext");function gT(e,t,r,n){let o=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(n);if(Sf(e,r)){let f=r.enter("headingSetext"),p=r.enter("phrasing"),h=r.containerPhrasing(e,{...s.current(),before:`
48
+ `)),f+=l.move(u),c(),f}i(uT,"code");function WB(e,t,r){return(r?"":" ")+e}i(WB,"map");function ns(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}i(ns,"checkQuote");function cT(e,t,r,n){let o=ns(r),s=o==='"'?"Quote":"Apostrophe",a=r.enter("definition"),l=r.enter("label"),u=r.createTracker(n),c=u.move("[");return c+=u.move(r.safe(r.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(r.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=r.enter("destinationRaw"),c+=u.move(r.safe(e.url,{before:c,after:e.title?" ":`
49
+ `,...u.current()}))),l(),e.title&&(l=r.enter(`title${s}`),c+=u.move(" "+o),c+=u.move(r.safe(e.title,{before:c,after:o,...u.current()})),c+=u.move(o),l()),a(),c}i(cT,"definition");function fT(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}i(fT,"checkEmphasis");function Wt(e){return"&#x"+e.toString(16).toUpperCase()+";"}i(Wt,"encodeCharacterReference");function Xr(e){if(e===null||de(e)||Lr(e))return 1;if(Ti(e))return 2}i(Xr,"classifyCharacter");function is(e,t,r){let n=Xr(e),o=Xr(t);return n===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}i(is,"encodeInfo");xd.peek=jB;function xd(e,t,r,n){let o=fT(r),s=r.enter("emphasis"),a=r.createTracker(n),l=a.move(o),u=a.move(r.containerPhrasing(e,{after:o,before:l,...a.current()})),c=u.charCodeAt(0),f=is(n.before.charCodeAt(n.before.length-1),c,o);f.inside&&(u=Wt(c)+u.slice(1));let p=u.charCodeAt(u.length-1),h=is(n.after.charCodeAt(0),p,o);h.inside&&(u=u.slice(0,-1)+Wt(p));let m=a.move(o);return s(),r.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},l+u+m}i(xd,"emphasis");function jB(e,t,r){return r.options.emphasis||"*"}i(jB,"emphasisPeek");function Ca(e,t,r,n){let o,s,a;typeof t=="function"&&typeof r!="function"?(s=void 0,a=t,o=r):(s=t,a=r,o=n),Ea(e,s,l,o);function l(u,c){let f=c[c.length-1],p=f?f.children.indexOf(u):void 0;return a(u,p,f)}i(l,"overload")}i(Ca,"visit");var qB={};function Di(e,t){let r=t||qB,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return pT(e,n,o)}i(Di,"toString");function pT(e,t,r){if(YB(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return hT(e.children,t,r)}return Array.isArray(e)?hT(e,t,r):""}i(pT,"one");function hT(e,t,r){let n=[],o=-1;for(;++o<e.length;)n[o]=pT(e[o],t,r);return n.join("")}i(hT,"all");function YB(e){return!!(e&&typeof e=="object")}i(YB,"node");function Tf(e,t){let r=!1;return Ca(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Ei}),!!((!e.depth||e.depth<3)&&Di(e)&&(t.options.setext||r))}i(Tf,"formatHeadingAsSetext");function mT(e,t,r,n){let o=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(n);if(Tf(e,r)){let f=r.enter("headingSetext"),p=r.enter("phrasing"),h=r.containerPhrasing(e,{...s.current(),before:`
50
50
  `,after:`
51
51
  `});return p(),f(),h+`
52
52
  `+(o===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
53
53
  `))+1))}let a="#".repeat(o),l=r.enter("headingAtx"),u=r.enter("phrasing");s.move(a+" ");let c=r.containerPhrasing(e,{before:"# ",after:`
54
- `,...s.current()});return/^[\t ]/.test(c)&&(c=Ut(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,r.options.closeAtx&&(c+=" "+a),u(),l(),c}i(gT,"heading");yd.peek=GB;function yd(e){return e.value||""}i(yd,"html");function GB(){return"<"}i(GB,"htmlPeek");wd.peek=JB;function wd(e,t,r,n){let o=ns(r),s=o==='"'?"Quote":"Apostrophe",a=r.enter("image"),l=r.enter("label"),u=r.createTracker(n),c=u.move("![");return c+=u.move(r.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(r.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=r.enter("destinationRaw"),c+=u.move(r.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=r.enter(`title${s}`),c+=u.move(" "+o),c+=u.move(r.safe(e.title,{before:c,after:o,...u.current()})),c+=u.move(o),l()),c+=u.move(")"),a(),c}i(wd,"image");function JB(){return"!"}i(JB,"imagePeek");bd.peek=XB;function bd(e,t,r,n){let o=e.referenceType,s=r.enter("imageReference"),a=r.enter("label"),l=r.createTracker(n),u=l.move("!["),c=r.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),a();let f=r.stack;r.stack=[],a=r.enter("reference");let p=r.safe(r.associationId(e),{before:u,after:"]",...l.current()});return a(),r.stack=f,s(),o==="full"||!c||c!==p?u+=l.move(p+"]"):o==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}i(bd,"imageReference");function XB(){return"!"}i(XB,"imageReferencePeek");vd.peek=ZB;function vd(e,t,r){let n=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(n);)o+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++s<r.unsafe.length;){let a=r.unsafe[s],l=r.compilePattern(a),u;if(a.atBreak)for(;u=l.exec(n);){let c=u.index;n.charCodeAt(c)===10&&n.charCodeAt(c-1)===13&&c--,n=n.slice(0,c)+" "+n.slice(u.index+1)}}return o+n+o}i(vd,"inlineCode");function ZB(){return"`"}i(ZB,"inlineCodePeek");function kd(e,t){let r=Ii(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}i(kd,"formatLinkAsAutolink");Sd.peek=KB;function Sd(e,t,r,n){let o=ns(r),s=o==='"'?"Quote":"Apostrophe",a=r.createTracker(n),l,u;if(kd(e,r)){let f=r.stack;r.stack=[],l=r.enter("autolink");let p=a.move("<");return p+=a.move(r.containerPhrasing(e,{before:p,after:">",...a.current()})),p+=a.move(">"),l(),r.stack=f,p}l=r.enter("link"),u=r.enter("label");let c=a.move("[");return c+=a.move(r.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(r.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(u=r.enter("destinationRaw"),c+=a.move(r.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=r.enter(`title${s}`),c+=a.move(" "+o),c+=a.move(r.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),u()),c+=a.move(")"),l(),c}i(Sd,"link");function KB(e,t,r){return kd(e,r)?"<":"["}i(KB,"linkPeek");Td.peek=ez;function Td(e,t,r,n){let o=e.referenceType,s=r.enter("linkReference"),a=r.enter("label"),l=r.createTracker(n),u=l.move("["),c=r.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),a();let f=r.stack;r.stack=[],a=r.enter("reference");let p=r.safe(r.associationId(e),{before:u,after:"]",...l.current()});return a(),r.stack=f,s(),o==="full"||!c||c!==p?u+=l.move(p+"]"):o==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}i(Td,"linkReference");function ez(){return"["}i(ez,"linkReferencePeek");function os(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}i(os,"checkBullet");function xT(e){let t=os(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}i(xT,"checkBulletOther");function yT(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}i(yT,"checkBulletOrdered");function Tf(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}i(Tf,"checkRule");function wT(e,t,r,n){let o=r.enter("list"),s=r.bulletCurrent,a=e.ordered?yT(r):os(r),l=e.ordered?a==="."?")":".":xT(r),u=t&&r.bulletLastUsed?a===r.bulletLastUsed:!1;if(!e.ordered){let f=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&f&&(!f.children||!f.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(u=!0),Tf(r)===a&&f){let p=-1;for(;++p<e.children.length;){let h=e.children[p];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(a=l),r.bulletCurrent=a;let c=r.containerFlow(e,n);return r.bulletLastUsed=a,r.bulletCurrent=s,o(),c}i(wT,"list");function bT(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}i(bT,"checkListItemIndent");function vT(e,t,r,n){let o=bT(r),s=r.bulletCurrent||os(r);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let a=s.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);let l=r.createTracker(n);l.move(s+" ".repeat(a-s.length)),l.shift(a);let u=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,l.current()),f);return u(),c;function f(p,h,m){return h?(m?"":" ".repeat(a))+p:(m?s:s+" ".repeat(a-s.length))+p}i(f,"map")}i(vT,"listItem");function kT(e,t,r,n){let o=r.enter("paragraph"),s=r.enter("phrasing"),a=r.containerPhrasing(e,n);return s(),o(),a}i(kT,"paragraph");var Ed=Xr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ST(e,t,r,n){return(e.children.some(function(a){return Ed(a)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}i(ST,"root");function TT(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}i(TT,"checkStrong");Dd.peek=tz;function Dd(e,t,r,n){let o=TT(r),s=r.enter("strong"),a=r.createTracker(n),l=a.move(o+o),u=a.move(r.containerPhrasing(e,{after:o,before:l,...a.current()})),c=u.charCodeAt(0),f=is(n.before.charCodeAt(n.before.length-1),c,o);f.inside&&(u=Ut(c)+u.slice(1));let p=u.charCodeAt(u.length-1),h=is(n.after.charCodeAt(0),p,o);h.inside&&(u=u.slice(0,-1)+Ut(p));let m=a.move(o+o);return s(),r.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},l+u+m}i(Dd,"strong");function tz(e,t,r){return r.options.strong||"*"}i(tz,"strongPeek");function ET(e,t,r,n){return r.safe(e.value,n)}i(ET,"text");function DT(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}i(DT,"checkRuleRepetition");function CT(e,t,r){let n=(Tf(r)+(r.options.ruleSpaces?" ":"")).repeat(DT(r));return r.options.ruleSpaces?n.slice(0,-1):n}i(CT,"thematicBreak");var Ai={blockquote:aT,break:gd,code:fT,definition:pT,emphasis:xd,hardBreak:gd,heading:gT,html:yd,image:wd,imageReference:bd,inlineCode:vd,link:Sd,linkReference:Td,list:wT,listItem:vT,paragraph:kT,root:ST,strong:Dd,text:ET,thematicBreak:CT};var OT=[rz];function rz(e,t,r,n){if(t.type==="code"&&Ea(t,n)&&(e.type==="list"||e.type===t.type&&Ea(e,n)))return!1;if("spread"in r&&typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&Sf(t,n))?void 0:r.spread?1:0}i(rz,"joinDefaults");var Mi=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],IT=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
55
- `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Mi},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
56
- ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Mi},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
57
- *])`},{character:"*",inConstruct:"phrasing",notInConstruct:Mi},{atBreak:!0,character:"+",after:`(?:[ \r
54
+ `,...s.current()});return/^[\t ]/.test(c)&&(c=Wt(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,r.options.closeAtx&&(c+=" "+a),u(),l(),c}i(mT,"heading");yd.peek=VB;function yd(e){return e.value||""}i(yd,"html");function VB(){return"<"}i(VB,"htmlPeek");wd.peek=QB;function wd(e,t,r,n){let o=ns(r),s=o==='"'?"Quote":"Apostrophe",a=r.enter("image"),l=r.enter("label"),u=r.createTracker(n),c=u.move("![");return c+=u.move(r.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(r.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=r.enter("destinationRaw"),c+=u.move(r.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=r.enter(`title${s}`),c+=u.move(" "+o),c+=u.move(r.safe(e.title,{before:c,after:o,...u.current()})),c+=u.move(o),l()),c+=u.move(")"),a(),c}i(wd,"image");function QB(){return"!"}i(QB,"imagePeek");bd.peek=GB;function bd(e,t,r,n){let o=e.referenceType,s=r.enter("imageReference"),a=r.enter("label"),l=r.createTracker(n),u=l.move("!["),c=r.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),a();let f=r.stack;r.stack=[],a=r.enter("reference");let p=r.safe(r.associationId(e),{before:u,after:"]",...l.current()});return a(),r.stack=f,s(),o==="full"||!c||c!==p?u+=l.move(p+"]"):o==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}i(bd,"imageReference");function GB(){return"!"}i(GB,"imageReferencePeek");vd.peek=JB;function vd(e,t,r){let n=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(n);)o+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++s<r.unsafe.length;){let a=r.unsafe[s],l=r.compilePattern(a),u;if(a.atBreak)for(;u=l.exec(n);){let c=u.index;n.charCodeAt(c)===10&&n.charCodeAt(c-1)===13&&c--,n=n.slice(0,c)+" "+n.slice(u.index+1)}}return o+n+o}i(vd,"inlineCode");function JB(){return"`"}i(JB,"inlineCodePeek");function kd(e,t){let r=Di(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}i(kd,"formatLinkAsAutolink");Sd.peek=KB;function Sd(e,t,r,n){let o=ns(r),s=o==='"'?"Quote":"Apostrophe",a=r.createTracker(n),l,u;if(kd(e,r)){let f=r.stack;r.stack=[],l=r.enter("autolink");let p=a.move("<");return p+=a.move(r.containerPhrasing(e,{before:p,after:">",...a.current()})),p+=a.move(">"),l(),r.stack=f,p}l=r.enter("link"),u=r.enter("label");let c=a.move("[");return c+=a.move(r.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(r.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(u=r.enter("destinationRaw"),c+=a.move(r.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=r.enter(`title${s}`),c+=a.move(" "+o),c+=a.move(r.safe(e.title,{before:c,after:o,...a.current()})),c+=a.move(o),u()),c+=a.move(")"),l(),c}i(Sd,"link");function KB(e,t,r){return kd(e,r)?"<":"["}i(KB,"linkPeek");Td.peek=XB;function Td(e,t,r,n){let o=e.referenceType,s=r.enter("linkReference"),a=r.enter("label"),l=r.createTracker(n),u=l.move("["),c=r.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(c+"]["),a();let f=r.stack;r.stack=[],a=r.enter("reference");let p=r.safe(r.associationId(e),{before:u,after:"]",...l.current()});return a(),r.stack=f,s(),o==="full"||!c||c!==p?u+=l.move(p+"]"):o==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}i(Td,"linkReference");function XB(){return"["}i(XB,"linkReferencePeek");function os(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}i(os,"checkBullet");function dT(e){let t=os(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}i(dT,"checkBulletOther");function gT(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}i(gT,"checkBulletOrdered");function Ef(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}i(Ef,"checkRule");function xT(e,t,r,n){let o=r.enter("list"),s=r.bulletCurrent,a=e.ordered?gT(r):os(r),l=e.ordered?a==="."?")":".":dT(r),u=t&&r.bulletLastUsed?a===r.bulletLastUsed:!1;if(!e.ordered){let f=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&f&&(!f.children||!f.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(u=!0),Ef(r)===a&&f){let p=-1;for(;++p<e.children.length;){let h=e.children[p];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(a=l),r.bulletCurrent=a;let c=r.containerFlow(e,n);return r.bulletLastUsed=a,r.bulletCurrent=s,o(),c}i(xT,"list");function yT(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}i(yT,"checkListItemIndent");function wT(e,t,r,n){let o=yT(r),s=r.bulletCurrent||os(r);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let a=s.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);let l=r.createTracker(n);l.move(s+" ".repeat(a-s.length)),l.shift(a);let u=r.enter("listItem"),c=r.indentLines(r.containerFlow(e,l.current()),f);return u(),c;function f(p,h,m){return h?(m?"":" ".repeat(a))+p:(m?s:s+" ".repeat(a-s.length))+p}i(f,"map")}i(wT,"listItem");function bT(e,t,r,n){let o=r.enter("paragraph"),s=r.enter("phrasing"),a=r.containerPhrasing(e,n);return s(),o(),a}i(bT,"paragraph");var Ed=Kr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function vT(e,t,r,n){return(e.children.some(function(a){return Ed(a)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}i(vT,"root");function kT(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}i(kT,"checkStrong");Dd.peek=ZB;function Dd(e,t,r,n){let o=kT(r),s=r.enter("strong"),a=r.createTracker(n),l=a.move(o+o),u=a.move(r.containerPhrasing(e,{after:o,before:l,...a.current()})),c=u.charCodeAt(0),f=is(n.before.charCodeAt(n.before.length-1),c,o);f.inside&&(u=Wt(c)+u.slice(1));let p=u.charCodeAt(u.length-1),h=is(n.after.charCodeAt(0),p,o);h.inside&&(u=u.slice(0,-1)+Wt(p));let m=a.move(o+o);return s(),r.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},l+u+m}i(Dd,"strong");function ZB(e,t,r){return r.options.strong||"*"}i(ZB,"strongPeek");function ST(e,t,r,n){return r.safe(e.value,n)}i(ST,"text");function TT(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}i(TT,"checkRuleRepetition");function ET(e,t,r){let n=(Ef(r)+(r.options.ruleSpaces?" ":"")).repeat(TT(r));return r.options.ruleSpaces?n.slice(0,-1):n}i(ET,"thematicBreak");var Ci={blockquote:oT,break:gd,code:uT,definition:cT,emphasis:xd,hardBreak:gd,heading:mT,html:yd,image:wd,imageReference:bd,inlineCode:vd,link:Sd,linkReference:Td,list:xT,listItem:wT,paragraph:bT,root:vT,strong:Dd,text:ST,thematicBreak:ET};var DT=[ez];function ez(e,t,r,n){if(t.type==="code"&&Da(t,n)&&(e.type==="list"||e.type===t.type&&Da(e,n)))return!1;if("spread"in r&&typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&Tf(t,n))?void 0:r.spread?1:0}i(ez,"joinDefaults");var Ii=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],CT=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
55
+ `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Ii},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
56
+ ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Ii},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
57
+ *])`},{character:"*",inConstruct:"phrasing",notInConstruct:Ii},{atBreak:!0,character:"+",after:`(?:[ \r
58
58
  ])`},{atBreak:!0,character:"-",after:`(?:[ \r
59
59
  -])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
60
- ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Mi},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Mi},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Mi},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Mi},{atBreak:!0,character:"~"}];var AT=document.createElement("i");function Mn(e){let t="&"+e+";";AT.innerHTML=t;let r=AT.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}i(Mn,"decodeNamedCharacterReference");function ss(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}i(ss,"decodeNumericCharacterReference");var nz=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ef(e){return e.replace(nz,iz)}i(Ef,"decodeString");function iz(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let o=r.charCodeAt(1),s=o===120||o===88;return ss(r.slice(s?2:1),s?16:10)}return Mn(r)||e}i(iz,"decode");function MT(e){return e.label||!e.identifier?e.label||"":Ef(e.identifier)}i(MT,"association");function _T(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}i(_T,"compilePattern");function PT(e,t,r){let n=t.indexStack,o=e.children||[],s=[],a=-1,l=r.before,u;n.push(-1);let c=t.createTracker(r);for(;++a<o.length;){let f=o[a],p;if(n[n.length-1]=a,a+1<o.length){let d=t.handle.handlers[o[a+1].type];d&&d.peek&&(d=d.peek),p=d?d(o[a+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else p=r.after;s.length>0&&(l==="\r"||l===`
61
- `)&&f.type==="html"&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=t.createTracker(r),c.move(s.join("")));let h=t.handle(f,e,t,{...c.current(),after:p,before:l});u&&u===h.slice(0,1)&&(h=Ut(u.charCodeAt(0))+h.slice(1));let m=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,u=void 0,m&&(s.length>0&&m.before&&l===s[s.length-1].slice(-1)&&(s[s.length-1]=s[s.length-1].slice(0,-1)+Ut(l.charCodeAt(0))),m.after&&(u=p)),c.move(h),s.push(h),l=h.slice(-1)}return n.pop(),s.join("")}i(PT,"containerPhrasing");function NT(e,t,r){let n=t.indexStack,o=e.children||[],s=t.createTracker(r),a=[],l=-1;for(n.push(-1);++l<o.length;){let u=o[l];n[n.length-1]=l,a.push(s.move(t.handle(u,e,t,{before:`
60
+ ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Ii},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Ii},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Ii},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Ii},{atBreak:!0,character:"~"}];var IT=document.createElement("i");function Mn(e){let t="&"+e+";";IT.innerHTML=t;let r=IT.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}i(Mn,"decodeNamedCharacterReference");function ss(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}i(ss,"decodeNumericCharacterReference");var tz=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Df(e){return e.replace(tz,rz)}i(Df,"decodeString");function rz(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let o=r.charCodeAt(1),s=o===120||o===88;return ss(r.slice(s?2:1),s?16:10)}return Mn(r)||e}i(rz,"decode");function OT(e){return e.label||!e.identifier?e.label||"":Df(e.identifier)}i(OT,"association");function AT(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}i(AT,"compilePattern");function MT(e,t,r){let n=t.indexStack,o=e.children||[],s=[],a=-1,l=r.before,u;n.push(-1);let c=t.createTracker(r);for(;++a<o.length;){let f=o[a],p;if(n[n.length-1]=a,a+1<o.length){let d=t.handle.handlers[o[a+1].type];d&&d.peek&&(d=d.peek),p=d?d(o[a+1],e,t,{before:"",after:"",...c.current()}).charAt(0):""}else p=r.after;s.length>0&&(l==="\r"||l===`
61
+ `)&&f.type==="html"&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=t.createTracker(r),c.move(s.join("")));let h=t.handle(f,e,t,{...c.current(),after:p,before:l});u&&u===h.slice(0,1)&&(h=Wt(u.charCodeAt(0))+h.slice(1));let m=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,u=void 0,m&&(s.length>0&&m.before&&l===s[s.length-1].slice(-1)&&(s[s.length-1]=s[s.length-1].slice(0,-1)+Wt(l.charCodeAt(0))),m.after&&(u=p)),c.move(h),s.push(h),l=h.slice(-1)}return n.pop(),s.join("")}i(MT,"containerPhrasing");function _T(e,t,r){let n=t.indexStack,o=e.children||[],s=t.createTracker(r),a=[],l=-1;for(n.push(-1);++l<o.length;){let u=o[l];n[n.length-1]=l,a.push(s.move(t.handle(u,e,t,{before:`
62
62
  `,after:`
63
- `,...s.current()}))),u.type!=="list"&&(t.bulletLastUsed=void 0),l<o.length-1&&a.push(s.move(oz(u,o[l+1],e,t)))}return n.pop(),a.join("")}i(NT,"containerFlow");function oz(e,t,r,n){let o=n.join.length;for(;o--;){let s=n.join[o](e,t,r,n);if(s===!0||s===1)break;if(typeof s=="number")return`
63
+ `,...s.current()}))),u.type!=="list"&&(t.bulletLastUsed=void 0),l<o.length-1&&a.push(s.move(nz(u,o[l+1],e,t)))}return n.pop(),a.join("")}i(_T,"containerFlow");function nz(e,t,r,n){let o=n.join.length;for(;o--;){let s=n.join[o](e,t,r,n);if(s===!0||s===1)break;if(typeof s=="number")return`
64
64
  `.repeat(1+s);if(s===!1)return`
65
65
 
66
66
  <!---->
67
67
 
68
68
  `}return`
69
69
 
70
- `}i(oz,"between");var sz=/\r?\n|\r/g;function FT(e,t){let r=[],n=0,o=0,s;for(;s=sz.exec(e);)a(e.slice(n,s.index)),r.push(s[0]),n=s.index+s[0].length,o++;return a(e.slice(n)),r.join("");function a(l){r.push(t(l,o,!l))}i(a,"one")}i(FT,"indentLines");function RT(e,t,r){let n=(r.before||"")+(t||"")+(r.after||""),o=[],s=[],a={},l=-1;for(;++l<e.unsafe.length;){let f=e.unsafe[l];if(!kf(e.stack,f))continue;let p=e.compilePattern(f),h;for(;h=p.exec(n);){let m="before"in f||!!f.atBreak,d="after"in f,g=h.index+(m?h[1].length:0);o.includes(g)?(a[g].before&&!m&&(a[g].before=!1),a[g].after&&!d&&(a[g].after=!1)):(o.push(g),a[g]={before:m,after:d})}}o.sort(az);let u=r.before?r.before.length:0,c=n.length-(r.after?r.after.length:0);for(l=-1;++l<o.length;){let f=o[l];f<u||f>=c||f+1<c&&o[l+1]===f+1&&a[f].after&&!a[f+1].before&&!a[f+1].after||o[l-1]===f-1&&a[f].before&&!a[f-1].before&&!a[f-1].after||(u!==f&&s.push(LT(n.slice(u,f),"\\")),u=f,/[!-/:-@[-`{-~]/.test(n.charAt(f))&&(!r.encode||!r.encode.includes(n.charAt(f)))?s.push("\\"):(s.push(Ut(n.charCodeAt(f))),u++))}return s.push(LT(n.slice(u,c),r.after)),s.join("")}i(RT,"safe");function az(e,t){return e-t}i(az,"numerical");function LT(e,t){let r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],s=e+t,a=-1,l=0,u;for(;u=r.exec(s);)n.push(u.index);for(;++a<n.length;)l!==n[a]&&o.push(e.slice(l,n[a])),o.push("\\"),l=n[a];return o.push(e.slice(l)),o.join("")}i(LT,"escapeBackslashes");function BT(e){let t=e||{},r=t.now||{},n=t.lineShift||0,o=r.line||1,s=r.column||1;return{move:u,current:a,shift:l};function a(){return{now:{line:o,column:s},lineShift:n}}function l(c){n+=c}function u(c){let f=c||"",p=f.split(/\r?\n|\r/g),h=p[p.length-1];return o+=p.length-1,s=p.length===1?s+h.length:1+h.length+n,f}}i(BT,"track");function Cd(e,t){let r=t||{},n={associationId:MT,containerPhrasing:fz,containerFlow:pz,createTracker:BT,compilePattern:_T,enter:s,handlers:{...Ai},handle:void 0,indentLines:FT,indexStack:[],join:[...OT],options:{},safe:hz,stack:[],unsafe:[...IT]};dd(n,r),n.options.tightDefinitions&&n.join.push(cz),n.handle=vf("type",{invalid:lz,unknown:uz,handlers:n.handlers});let o=n.handle(e,void 0,n,{before:`
70
+ `}i(nz,"between");var iz=/\r?\n|\r/g;function NT(e,t){let r=[],n=0,o=0,s;for(;s=iz.exec(e);)a(e.slice(n,s.index)),r.push(s[0]),n=s.index+s[0].length,o++;return a(e.slice(n)),r.join("");function a(l){r.push(t(l,o,!l))}i(a,"one")}i(NT,"indentLines");function FT(e,t,r){let n=(r.before||"")+(t||"")+(r.after||""),o=[],s=[],a={},l=-1;for(;++l<e.unsafe.length;){let f=e.unsafe[l];if(!Sf(e.stack,f))continue;let p=e.compilePattern(f),h;for(;h=p.exec(n);){let m="before"in f||!!f.atBreak,d="after"in f,g=h.index+(m?h[1].length:0);o.includes(g)?(a[g].before&&!m&&(a[g].before=!1),a[g].after&&!d&&(a[g].after=!1)):(o.push(g),a[g]={before:m,after:d})}}o.sort(oz);let u=r.before?r.before.length:0,c=n.length-(r.after?r.after.length:0);for(l=-1;++l<o.length;){let f=o[l];f<u||f>=c||f+1<c&&o[l+1]===f+1&&a[f].after&&!a[f+1].before&&!a[f+1].after||o[l-1]===f-1&&a[f].before&&!a[f-1].before&&!a[f-1].after||(u!==f&&s.push(PT(n.slice(u,f),"\\")),u=f,/[!-/:-@[-`{-~]/.test(n.charAt(f))&&(!r.encode||!r.encode.includes(n.charAt(f)))?s.push("\\"):(s.push(Wt(n.charCodeAt(f))),u++))}return s.push(PT(n.slice(u,c),r.after)),s.join("")}i(FT,"safe");function oz(e,t){return e-t}i(oz,"numerical");function PT(e,t){let r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],s=e+t,a=-1,l=0,u;for(;u=r.exec(s);)n.push(u.index);for(;++a<n.length;)l!==n[a]&&o.push(e.slice(l,n[a])),o.push("\\"),l=n[a];return o.push(e.slice(l)),o.join("")}i(PT,"escapeBackslashes");function LT(e){let t=e||{},r=t.now||{},n=t.lineShift||0,o=r.line||1,s=r.column||1;return{move:u,current:a,shift:l};function a(){return{now:{line:o,column:s},lineShift:n}}function l(c){n+=c}function u(c){let f=c||"",p=f.split(/\r?\n|\r/g),h=p[p.length-1];return o+=p.length-1,s=p.length===1?s+h.length:1+h.length+n,f}}i(LT,"track");function Cd(e,t){let r=t||{},n={associationId:OT,containerPhrasing:uz,containerFlow:cz,createTracker:LT,compilePattern:AT,enter:s,handlers:{...Ci},handle:void 0,indentLines:NT,indexStack:[],join:[...DT],options:{},safe:fz,stack:[],unsafe:[...CT]};dd(n,r),n.options.tightDefinitions&&n.join.push(lz),n.handle=kf("type",{invalid:sz,unknown:az,handlers:n.handlers});let o=n.handle(e,void 0,n,{before:`
71
71
  `,after:`
72
72
  `,now:{line:1,column:1},lineShift:0});return o&&o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
73
- `),o;function s(a){return n.stack.push(a),l;function l(){n.stack.pop()}i(l,"exit")}i(s,"enter")}i(Cd,"toMarkdown");function lz(e){throw new Error("Cannot handle value `"+e+"`, expected node")}i(lz,"invalid");function uz(e){let t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}i(uz,"unknown");function cz(e,t){if(e.type==="definition"&&e.type===t.type)return 0}i(cz,"joinDefinition");function fz(e,t){return PT(e,this,t)}i(fz,"containerPhrasingBound");function pz(e,t){return NT(e,this,t)}i(pz,"containerFlowBound");function hz(e,t){return RT(this,e,t)}i(hz,"safeBound");function Id(){return{enter:{table:mz,tableData:zT,tableHeader:zT,tableRow:gz},exit:{codeText:xz,table:dz,tableData:Od,tableHeader:Od,tableRow:Od}}}i(Id,"gfmTableFromMarkdown");function mz(e){let t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}i(mz,"enterTable");function dz(e){this.exit(e),this.data.inTable=void 0}i(dz,"exitTable");function gz(e){this.enter({type:"tableRow",children:[]},e)}i(gz,"enterRow");function Od(e){this.exit(e)}i(Od,"exit");function zT(e){this.enter({type:"tableCell",children:[]},e)}i(zT,"enterCell");function xz(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,yz));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}i(xz,"exitCodeText");function yz(e,t){return t==="|"?t:e}i(yz,"replace");function Ad(e){let t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
73
+ `),o;function s(a){return n.stack.push(a),l;function l(){n.stack.pop()}i(l,"exit")}i(s,"enter")}i(Cd,"toMarkdown");function sz(e){throw new Error("Cannot handle value `"+e+"`, expected node")}i(sz,"invalid");function az(e){let t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}i(az,"unknown");function lz(e,t){if(e.type==="definition"&&e.type===t.type)return 0}i(lz,"joinDefinition");function uz(e,t){return MT(e,this,t)}i(uz,"containerPhrasingBound");function cz(e,t){return _T(e,this,t)}i(cz,"containerFlowBound");function fz(e,t){return FT(this,e,t)}i(fz,"safeBound");function Od(){return{enter:{table:pz,tableData:RT,tableHeader:RT,tableRow:mz},exit:{codeText:dz,table:hz,tableData:Id,tableHeader:Id,tableRow:Id}}}i(Od,"gfmTableFromMarkdown");function pz(e){let t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}i(pz,"enterTable");function hz(e){this.exit(e),this.data.inTable=void 0}i(hz,"exitTable");function mz(e){this.enter({type:"tableRow",children:[]},e)}i(mz,"enterRow");function Id(e){this.exit(e)}i(Id,"exit");function RT(e){this.enter({type:"tableCell",children:[]},e)}i(RT,"enterCell");function dz(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,gz));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}i(dz,"exitCodeText");function gz(e,t){return t==="|"?t:e}i(gz,"replace");function Ad(e){let t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
74
74
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:a,tableCell:u,tableRow:l}};function a(m,d,g,x){return c(f(m,g,x),m.align)}function l(m,d,g,x){let b=p(m,g,x),T=c([b]);return T.slice(0,T.indexOf(`
75
- `))}function u(m,d,g,x){let b=g.enter("tableCell"),T=g.enter("phrasing"),D=g.containerPhrasing(m,{...x,before:s,after:s});return T(),b(),D}function c(m,d){return iT(m,{align:d,alignDelimiters:n,padding:r,stringLength:o})}function f(m,d,g){let x=m.children,b=-1,T=[],D=d.enter("table");for(;++b<x.length;)T[b]=p(x[b],d,g);return D(),T}function p(m,d,g){let x=m.children,b=-1,T=[],D=d.enter("tableRow");for(;++b<x.length;)T[b]=u(x[b],m,d,g);return D(),T}function h(m,d,g){let x=Ai.inlineCode(m,d,g);return g.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}i(Ad,"gfmTableToMarkdown");function Md(){return{exit:{taskListCheckValueChecked:$T,taskListCheckValueUnchecked:$T,paragraph:wz}}}i(Md,"gfmTaskListItemFromMarkdown");function _d(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:bz}}}i(_d,"gfmTaskListItemToMarkdown");function $T(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}i($T,"exitCheck");function wz(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let n=r.children[0];if(n&&n.type==="text"){let o=t.children,s=-1,a;for(;++s<o.length;){let l=o[s];if(l.type==="paragraph"){a=l;break}}a===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}i(wz,"exitParagraphWithTaskListItem");function bz(e,t,r,n){let o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",l=r.createTracker(n);s&&l.move(a);let u=Ai.listItem(e,t,r,{...n,...l.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(f){return f+a}i(c,"check")}i(bz,"listItemWithTaskListItem");function Pd(){return[ud(),fd(),hd(),Id(),Md()]}i(Pd,"gfmFromMarkdown");function Nd(e){return{extensions:[cd(),pd(e),md(),Ad(e),_d()]}}i(Nd,"gfmToMarkdown");function je(e,t,r,n){let o=e.length,s=0,a;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);s<n.length;)a=n.slice(s,s+1e4),a.unshift(t,0),e.splice(...a),s+=1e4,t+=1e4}i(je,"splice");function Qe(e,t){return e.length>0?(je(e,e.length,0,t),e):t}i(Qe,"push");var Fd={}.hasOwnProperty;function Df(e){let t={},r=-1;for(;++r<e.length;)vz(t,e[r]);return t}i(Df,"combineExtensions");function vz(e,t){let r;for(r in t){let o=(Fd.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r],a;if(s)for(a in s){Fd.call(o,a)||(o[a]=[]);let l=s[a];kz(o[a],Array.isArray(l)?l:l?[l]:[])}}}i(vz,"syntaxExtension");function kz(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);je(e,0,0,n)}i(kz,"constructs");function Cf(e){let t={},r=-1;for(;++r<e.length;)Sz(t,e[r]);return t}i(Cf,"combineHtmlExtensions");function Sz(e,t){let r;for(r in t){let o=(Fd.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r],a;if(s)for(a in s)o[a]=s[a]}}i(Sz,"htmlExtension");var Tz={tokenize:Iz,partial:!0},HT={tokenize:Az,partial:!0},WT={tokenize:Mz,partial:!0},UT={tokenize:_z,partial:!0},Ez={tokenize:Pz,partial:!0},jT={name:"wwwAutolink",tokenize:Cz,previous:YT},qT={name:"protocolAutolink",tokenize:Oz,previous:VT},Kr={name:"emailAutolink",tokenize:Dz,previous:QT},Rr={};function Bd(){return{text:Rr}}i(Bd,"gfmAutolinkLiteral");for(var _i=48;_i<123;)Rr[_i]=Kr,_i++,_i===58?_i=65:_i===91&&(_i=97);Rr[43]=Kr,Rr[45]=Kr,Rr[46]=Kr,Rr[95]=Kr,Rr[72]=[Kr,qT],Rr[104]=[Kr,qT],Rr[87]=[Kr,jT],Rr[119]=[Kr,jT];function Dz(e,t,r){let n=this,o,s;return a;function a(p){return!Ld(p)||!QT.call(n,n.previous)||Rd(n.events)?r(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(p))}function l(p){return Ld(p)?(e.consume(p),l):p===64?(e.consume(p),u):r(p)}function u(p){return p===46?e.check(Ez,f,c)(p):p===45||p===95||$e(p)?(s=!0,e.consume(p),u):f(p)}function c(p){return e.consume(p),o=!0,u}function f(p){return s&&o&&et(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):r(p)}}i(Dz,"tokenizeEmailAutolink");function Cz(e,t,r){let n=this;return o;function o(a){return a!==87&&a!==119||!YT.call(n,n.previous)||Rd(n.events)?r(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Tz,e.attempt(HT,e.attempt(WT,s),r),r)(a))}function s(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}i(Cz,"tokenizeWwwAutolink");function Oz(e,t,r){let n=this,o="",s=!1;return a;function a(p){return(p===72||p===104)&&VT.call(n,n.previous)&&!Rd(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(p),e.consume(p),l):r(p)}function l(p){if(et(p)&&o.length<5)return o+=String.fromCodePoint(p),e.consume(p),l;if(p===58){let h=o.toLowerCase();if(h==="http"||h==="https")return e.consume(p),u}return r(p)}function u(p){return p===47?(e.consume(p),s?c:(s=!0,u)):r(p)}function c(p){return p===null||Di(p)||de(p)||Lr(p)||Ci(p)?r(p):e.attempt(HT,e.attempt(WT,f),r)(p)}function f(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}i(Oz,"tokenizeProtocolAutolink");function Iz(e,t,r){let n=0;return o;function o(a){return(a===87||a===119)&&n<3?(n++,e.consume(a),o):a===46&&n===3?(e.consume(a),s):r(a)}function s(a){return a===null?r(a):t(a)}}i(Iz,"tokenizeWwwPrefix");function Az(e,t,r){let n,o,s;return a;function a(c){return c===46||c===95?e.check(UT,u,l)(c):c===null||de(c)||Lr(c)||c!==45&&Ci(c)?u(c):(s=!0,e.consume(c),a)}function l(c){return c===95?n=!0:(o=n,n=void 0),e.consume(c),a}function u(c){return o||n||!s?r(c):t(c)}}i(Az,"tokenizeDomain");function Mz(e,t){let r=0,n=0;return o;function o(a){return a===40?(r++,e.consume(a),o):a===41&&n<r?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(UT,t,s)(a):a===null||de(a)||Lr(a)?t(a):(e.consume(a),o)}function s(a){return a===41&&n++,e.consume(a),o}}i(Mz,"tokenizePath");function _z(e,t,r){return n;function n(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),n):l===38?(e.consume(l),s):l===93?(e.consume(l),o):l===60||l===null||de(l)||Lr(l)?t(l):r(l)}function o(l){return l===null||l===40||l===91||de(l)||Lr(l)?t(l):n(l)}function s(l){return et(l)?a(l):r(l)}function a(l){return l===59?(e.consume(l),n):et(l)?(e.consume(l),a):r(l)}}i(_z,"tokenizeTrail");function Pz(e,t,r){return n;function n(s){return e.consume(s),o}function o(s){return $e(s)?r(s):t(s)}}i(Pz,"tokenizeEmailDomainDotTrail");function YT(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||de(e)}i(YT,"previousWww");function VT(e){return!et(e)}i(VT,"previousProtocol");function QT(e){return!(e===47||Ld(e))}i(QT,"previousEmail");function Ld(e){return e===43||e===45||e===46||e===95||$e(e)}i(Ld,"gfmAtext");function Rd(e){let t=e.length,r=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}i(Rd,"previousUnbalanced");var Nz={'"':"quot","&":"amp","<":"lt",">":"gt"};function Of(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+Nz[r]+";"}}i(Of,"encode");function Br(e,t){let r=Of(jt(e||""));if(!t)return r;let n=r.indexOf(":"),o=r.indexOf("?"),s=r.indexOf("#"),a=r.indexOf("/");return n<0||a>-1&&n>a||o>-1&&n>o||s>-1&&n>s||t.test(r.slice(0,n))?r:""}i(Br,"sanitizeUri");function jt(e){let t=[],r=-1,n=0,o=0;for(;++r<e.length;){let s=e.charCodeAt(r),a="";if(s===37&&$e(e.charCodeAt(r+1))&&$e(e.charCodeAt(r+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){let l=e.charCodeAt(r+1);s<56320&&l>56319&&l<57344?(a=String.fromCharCode(s,l),o=1):a="\uFFFD"}else a=String.fromCharCode(s);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+o+1,a=""),o&&(r+=o,o=0)}return t.join("")+e.slice(n)}i(jt,"normalizeUri");function $d(){return{exit:{literalAutolinkEmail:Lz,literalAutolinkHttp:Rz,literalAutolinkWww:Fz}}}i($d,"gfmAutolinkLiteralHtml");function Fz(e){zd.call(this,e,"http://")}i(Fz,"literalAutolinkWww");function Lz(e){zd.call(this,e,"mailto:")}i(Lz,"literalAutolinkEmail");function Rz(e){zd.call(this,e)}i(Rz,"literalAutolinkHttp");function zd(e,t){let r=this.sliceSerialize(e);this.tag('<a href="'+Br((t||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}i(zd,"anchorFromToken");function _n(e,t,r){let n=[],o=-1;for(;++o<e.length;){let s=e[o].resolveAll;s&&!n.includes(s)&&(t=s(t,r),n.push(s))}return t}i(_n,"resolveAll");var Ca={name:"attention",resolveAll:Bz,tokenize:zz};function Bz(e,t){let r=-1,n,o,s,a,l,u,c,f;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let p={...e[n][1].end},h={...e[r][1].start};GT(p,-u),GT(h,u),a={type:u>1?"strongSequence":"emphasisSequence",start:p,end:{...e[n][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:h},s={type:u>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},o={type:u>1?"strong":"emphasis",start:{...a.start},end:{...l.end}},e[n][1].end={...a.start},e[r][1].start={...l.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Qe(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Qe(c,[["enter",o,t],["enter",a,t],["exit",a,t],["enter",s,t]]),c=Qe(c,_n(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),c=Qe(c,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(f=2,c=Qe(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):f=0,je(e,n-1,r-n+3,c),r=n+c.length-f-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}i(Bz,"resolveAllAttention");function zz(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=Zr(n),s;return a;function a(u){return s=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===s)return e.consume(u),l;let c=e.exit("attentionSequence"),f=Zr(u),p=!f||f===2&&o||r.includes(u),h=!o||o===2&&f||r.includes(n);return c._open=!!(s===42?p:p&&(o||!h)),c._close=!!(s===42?h:h&&(f||!p)),t(u)}}i(zz,"tokenizeAttention");function GT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}i(GT,"movePoint");var Hd={name:"autolink",tokenize:$z};function $z(e,t,r){let n=0;return o;function o(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(m){return et(m)?(e.consume(m),a):m===64?r(m):c(m)}function a(m){return m===43||m===45||m===46||$e(m)?(n=1,l(m)):c(m)}function l(m){return m===58?(e.consume(m),n=0,u):(m===43||m===45||m===46||$e(m))&&n++<32?(e.consume(m),l):(n=0,c(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Di(m)?r(m):(e.consume(m),u)}function c(m){return m===64?(e.consume(m),f):V1(m)?(e.consume(m),c):r(m)}function f(m){return $e(m)?p(m):r(m)}function p(m){return m===46?(e.consume(m),n=0,f):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):h(m)}function h(m){if((m===45||$e(m))&&n++<63){let d=m===45?h:p;return e.consume(m),d}return r(m)}}i($z,"tokenizeAutolink");function ne(e,t,r,n){let o=n?n-1:Number.POSITIVE_INFINITY,s=0;return a;function a(u){return Z(u)?(e.enter(r),l(u)):t(u)}function l(u){return Z(u)&&s++<o?(e.consume(u),l):(e.exit(r),t(u))}}i(ne,"factorySpace");var zr={partial:!0,tokenize:Hz};function Hz(e,t,r){return n;function n(s){return Z(s)?ne(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||j(s)?t(s):r(s)}}i(Hz,"tokenizeBlankLine");var If={continuation:{tokenize:Uz},exit:jz,name:"blockQuote",tokenize:Wz};function Wz(e,t,r){let n=this;return o;function o(a){if(a===62){let l=n.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),s}return r(a)}function s(a){return Z(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}i(Wz,"tokenizeBlockQuoteStart");function Uz(e,t,r){let n=this;return o;function o(a){return Z(a)?ne(e,s,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return e.attempt(If,t,r)(a)}}i(Uz,"tokenizeBlockQuoteContinuation");function jz(e){e.exit("blockQuote")}i(jz,"exit");var Af={name:"characterEscape",tokenize:qz};function qz(e,t,r){return n;function n(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return G1(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}i(qz,"tokenizeCharacterEscape");var Mf={name:"characterReference",tokenize:Yz};function Yz(e,t,r){let n=this,o=0,s,a;return l;function l(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),u}function u(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),s=31,a=$e,f(p))}function c(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,a=Q1,f):(e.enter("characterReferenceValue"),s=7,a=Sa,f(p))}function f(p){if(p===59&&o){let h=e.exit("characterReferenceValue");return a===$e&&!Mn(n.sliceSerialize(h))?r(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(p)&&o++<s?(e.consume(p),f):r(p)}}i(Yz,"tokenizeCharacterReference");var JT={partial:!0,tokenize:Qz},_f={concrete:!0,name:"codeFenced",tokenize:Vz};function Vz(e,t,r){let n=this,o={partial:!0,tokenize:H},s=0,a=0,l;return u;function u(O){return c(O)}function c(O){let $=n.events[n.events.length-1];return s=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,l=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(O)}function f(O){return O===l?(a++,e.consume(O),f):a<3?r(O):(e.exit("codeFencedFenceSequence"),Z(O)?ne(e,p,"whitespace")(O):p(O))}function p(O){return O===null||j(O)?(e.exit("codeFencedFence"),n.interrupt?t(O):e.check(JT,g,q)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(O))}function h(O){return O===null||j(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(O)):Z(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ne(e,m,"whitespace")(O)):O===96&&O===l?r(O):(e.consume(O),h)}function m(O){return O===null||j(O)?p(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(O))}function d(O){return O===null||j(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(O)):O===96&&O===l?r(O):(e.consume(O),d)}function g(O){return e.attempt(o,q,x)(O)}function x(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),b}function b(O){return s>0&&Z(O)?ne(e,T,"linePrefix",s+1)(O):T(O)}function T(O){return O===null||j(O)?e.check(JT,g,q)(O):(e.enter("codeFlowValue"),D(O))}function D(O){return O===null||j(O)?(e.exit("codeFlowValue"),T(O)):(e.consume(O),D)}function q(O){return e.exit("codeFenced"),t(O)}function H(O,$,K){let Y=0;return A;function A(L){return O.enter("lineEnding"),O.consume(L),O.exit("lineEnding"),De}function De(L){return O.enter("codeFencedFence"),Z(L)?ne(O,U,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):U(L)}function U(L){return L===l?(O.enter("codeFencedFenceSequence"),M(L)):K(L)}function M(L){return L===l?(Y++,O.consume(L),M):Y>=a?(O.exit("codeFencedFenceSequence"),Z(L)?ne(O,P,"whitespace")(L):P(L)):K(L)}function P(L){return L===null||j(L)?(O.exit("codeFencedFence"),$(L)):K(L)}}}i(Vz,"tokenizeCodeFenced");function Qz(e,t,r){let n=this;return o;function o(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s)}function s(a){return n.parser.lazy[n.now().line]?r(a):t(a)}}i(Qz,"tokenizeNonLazyContinuation");var Oa={name:"codeIndented",tokenize:Jz},Gz={partial:!0,tokenize:Xz};function Jz(e,t,r){let n=this;return o;function o(c){return e.enter("codeIndented"),ne(e,s,"linePrefix",5)(c)}function s(c){let f=n.events[n.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(c):r(c)}function a(c){return c===null?u(c):j(c)?e.attempt(Gz,a,u)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||j(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),l)}function u(c){return e.exit("codeIndented"),t(c)}}i(Jz,"tokenizeCodeIndented");function Xz(e,t,r){let n=this;return o;function o(a){return n.parser.lazy[n.now().line]?r(a):j(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):ne(e,s,"linePrefix",5)(a)}function s(a){let l=n.events[n.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):j(a)?o(a):r(a)}}i(Xz,"tokenizeFurtherStart");var Wd={name:"codeText",previous:Kz,resolve:Zz,tokenize:e$};function Zz(e){let t=e.length-4,r=3,n,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)o===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(o=n):(n===t||e[n][1].type==="lineEnding")&&(e[o][1].type="codeTextData",n!==o+2&&(e[o][1].end=e[n-1][1].end,e.splice(o+2,n-o-2),t-=n-o-2,n=o+2),o=void 0);return e}i(Zz,"resolveCodeText");function Kz(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}i(Kz,"previous");function e$(e,t,r){let n=this,o=0,s,a;return l;function l(h){return e.enter("codeText"),e.enter("codeTextSequence"),u(h)}function u(h){return h===96?(e.consume(h),o++,u):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?r(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(a=e.enter("codeTextSequence"),s=0,p(h)):j(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),f(h))}function f(h){return h===null||h===32||h===96||j(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),f)}function p(h){return h===96?(e.consume(h),s++,p):s===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",f(h))}}i(e$,"tokenizeCodeText");var Aa=class{static{i(this,"SpliceBuffer")}constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){let o=r||0;this.setCursor(Math.trunc(t));let s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return n&&Ia(this.left,n),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ia(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ia(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);Ia(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ia(this.left,r.reverse())}}};function Ia(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}i(Ia,"chunkedPush");function Pf(e){let t={},r=-1,n,o,s,a,l,u,c,f=new Aa(e);for(;++r<f.length;){for(;r in t;)r=t[r];if(n=f.get(r),r&&n[1].type==="chunkFlow"&&f.get(r-1)[1].type==="listItemPrefix"&&(u=n[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,t$(f,r)),r=t[r],c=!0);else if(n[1]._container){for(s=r,o=void 0;s--;)if(a=f.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(o&&(f.get(o)[1].type="lineEndingBlank"),a[1].type="lineEnding",o=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;o&&(n[1].end={...f.get(o)[1].start},l=f.slice(o,r),l.unshift(n),f.splice(o,r-o+1,l))}}return je(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}i(Pf,"subtokenize");function t$(e,t){let r=e.get(t)[1],n=e.get(t)[2],o=t-1,s=[],a=r._tokenizer;a||(a=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let l=a.events,u=[],c={},f,p,h=-1,m=r,d=0,g=0,x=[g];for(;m;){for(;e.get(++o)[1]!==m;);s.push(o),m._tokenizer||(f=n.sliceStream(m),m.next||f.push(null),p&&a.defineSkip(m.start),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=m,m=m.next}for(m=r;++h<l.length;)l[h][0]==="exit"&&l[h-1][0]==="enter"&&l[h][1].type===l[h-1][1].type&&l[h][1].start.line!==l[h][1].end.line&&(g=h+1,x.push(g),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(a.events=[],m?(m._tokenizer=void 0,m.previous=void 0):x.pop(),h=x.length;h--;){let b=l.slice(x[h],x[h+1]),T=s.pop();u.push([T,T+b.length-1]),e.splice(T,2,b)}for(u.reverse(),h=-1;++h<u.length;)c[d+u[h][0]]=d+u[h][1],d+=u[h][1]-u[h][0]-1;return c}i(t$,"subcontent");var Ud={resolve:n$,tokenize:i$},r$={partial:!0,tokenize:o$};function n$(e){return Pf(e),e}i(n$,"resolveContent");function i$(e,t){let r;return n;function n(l){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(l)}function o(l){return l===null?s(l):j(l)?e.check(r$,a,s)(l):(e.consume(l),o)}function s(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function a(l){return e.consume(l),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}i(i$,"tokenizeContent");function o$(e,t,r){let n=this;return o;function o(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ne(e,s,"linePrefix")}function s(a){if(a===null||j(a))return r(a);let l=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):e.interrupt(n.parser.constructs.flow,r,t)(a)}}i(o$,"tokenizeContinuation");function Nf(e,t,r,n,o,s,a,l,u){let c=u||Number.POSITIVE_INFINITY,f=0;return p;function p(b){return b===60?(e.enter(n),e.enter(o),e.enter(s),e.consume(b),e.exit(s),h):b===null||b===32||b===41||Di(b)?r(b):(e.enter(n),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(b))}function h(b){return b===62?(e.enter(s),e.consume(b),e.exit(s),e.exit(o),e.exit(n),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===62?(e.exit("chunkString"),e.exit(l),h(b)):b===null||b===60||j(b)?r(b):(e.consume(b),b===92?d:m)}function d(b){return b===60||b===62||b===92?(e.consume(b),m):m(b)}function g(b){return!f&&(b===null||b===41||de(b))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(n),t(b)):f<c&&b===40?(e.consume(b),f++,g):b===41?(e.consume(b),f--,g):b===null||b===32||b===40||Di(b)?r(b):(e.consume(b),b===92?x:g)}function x(b){return b===40||b===41||b===92?(e.consume(b),g):g(b)}}i(Nf,"factoryDestination");function Ff(e,t,r,n,o,s){let a=this,l=0,u;return c;function c(m){return e.enter(n),e.enter(o),e.consume(m),e.exit(o),e.enter(s),f}function f(m){return l>999||m===null||m===91||m===93&&!u||m===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?r(m):m===93?(e.exit(s),e.enter(o),e.consume(m),e.exit(o),e.exit(n),t):j(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===null||m===91||m===93||j(m)||l++>999?(e.exit("chunkString"),f(m)):(e.consume(m),u||(u=!Z(m)),m===92?h:p)}function h(m){return m===91||m===92||m===93?(e.consume(m),l++,p):p(m)}}i(Ff,"factoryLabel");function Lf(e,t,r,n,o,s){let a;return l;function l(h){return h===34||h===39||h===40?(e.enter(n),e.enter(o),e.consume(h),e.exit(o),a=h===40?41:h,u):r(h)}function u(h){return h===a?(e.enter(o),e.consume(h),e.exit(o),e.exit(n),t):(e.enter(s),c(h))}function c(h){return h===a?(e.exit(s),u(a)):h===null?r(h):j(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ne(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===a||h===null||j(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?p:f)}function p(h){return h===a||h===92?(e.consume(h),f):f(h)}}i(Lf,"factoryTitle");function Pi(e,t){let r;return n;function n(o){return j(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n):Z(o)?ne(e,n,r?"linePrefix":"lineSuffix")(o):t(o)}}i(Pi,"factoryWhitespace");var jd={name:"definition",tokenize:a$},s$={partial:!0,tokenize:l$};function a$(e,t,r){let n=this,o;return s;function s(m){return e.enter("definition"),a(m)}function a(m){return Ff.call(n,e,l,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function l(m){return o=He(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):r(m)}function u(m){return de(m)?Pi(e,c)(m):c(m)}function c(m){return Nf(e,f,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return e.attempt(s$,p,p)(m)}function p(m){return Z(m)?ne(e,h,"whitespace")(m):h(m)}function h(m){return m===null||j(m)?(e.exit("definition"),n.parser.defined.push(o),t(m)):r(m)}}i(a$,"tokenizeDefinition");function l$(e,t,r){return n;function n(l){return de(l)?Pi(e,o)(l):r(l)}function o(l){return Lf(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return Z(l)?ne(e,a,"whitespace")(l):a(l)}function a(l){return l===null||j(l)?t(l):r(l)}}i(l$,"tokenizeTitleBefore");var qd={name:"hardBreakEscape",tokenize:u$};function u$(e,t,r){return n;function n(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return j(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}i(u$,"tokenizeHardBreakEscape");var Yd={name:"headingAtx",resolve:c$,tokenize:f$};function c$(e,t){let r=e.length-2,n=3,o,s;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(o={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},s={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},je(e,n,r-n+1,[["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t]])),e}i(c$,"resolveHeadingAtx");function f$(e,t,r){let n=0;return o;function o(f){return e.enter("atxHeading"),s(f)}function s(f){return e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&n++<6?(e.consume(f),a):f===null||de(f)?(e.exit("atxHeadingSequence"),l(f)):r(f)}function l(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||j(f)?(e.exit("atxHeading"),t(f)):Z(f)?ne(e,l,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),l(f))}function c(f){return f===null||f===35||de(f)?(e.exit("atxHeadingText"),l(f)):(e.consume(f),c)}}i(f$,"tokenizeHeadingAtx");var XT=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Vd=["pre","script","style","textarea"];var Qd={concrete:!0,name:"htmlFlow",resolveTo:m$,tokenize:d$},p$={partial:!0,tokenize:x$},h$={partial:!0,tokenize:g$};function m$(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}i(m$,"resolveToHtmlFlow");function d$(e,t,r){let n=this,o,s,a,l,u;return c;function c(S){return f(S)}function f(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),p}function p(S){return S===33?(e.consume(S),h):S===47?(e.consume(S),s=!0,g):S===63?(e.consume(S),o=3,n.interrupt?t:w):et(S)?(e.consume(S),a=String.fromCharCode(S),x):r(S)}function h(S){return S===45?(e.consume(S),o=2,m):S===91?(e.consume(S),o=5,l=0,d):et(S)?(e.consume(S),o=4,n.interrupt?t:w):r(S)}function m(S){return S===45?(e.consume(S),n.interrupt?t:w):r(S)}function d(S){let Ne="CDATA[";return S===Ne.charCodeAt(l++)?(e.consume(S),l===Ne.length?n.interrupt?t:U:d):r(S)}function g(S){return et(S)?(e.consume(S),a=String.fromCharCode(S),x):r(S)}function x(S){if(S===null||S===47||S===62||de(S)){let Ne=S===47,Ue=a.toLowerCase();return!Ne&&!s&&Vd.includes(Ue)?(o=1,n.interrupt?t(S):U(S)):XT.includes(a.toLowerCase())?(o=6,Ne?(e.consume(S),b):n.interrupt?t(S):U(S)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(S):s?T(S):D(S))}return S===45||$e(S)?(e.consume(S),a+=String.fromCharCode(S),x):r(S)}function b(S){return S===62?(e.consume(S),n.interrupt?t:U):r(S)}function T(S){return Z(S)?(e.consume(S),T):A(S)}function D(S){return S===47?(e.consume(S),A):S===58||S===95||et(S)?(e.consume(S),q):Z(S)?(e.consume(S),D):A(S)}function q(S){return S===45||S===46||S===58||S===95||$e(S)?(e.consume(S),q):H(S)}function H(S){return S===61?(e.consume(S),O):Z(S)?(e.consume(S),H):D(S)}function O(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),u=S,$):Z(S)?(e.consume(S),O):K(S)}function $(S){return S===u?(e.consume(S),u=null,Y):S===null||j(S)?r(S):(e.consume(S),$)}function K(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||de(S)?H(S):(e.consume(S),K)}function Y(S){return S===47||S===62||Z(S)?D(S):r(S)}function A(S){return S===62?(e.consume(S),De):r(S)}function De(S){return S===null||j(S)?U(S):Z(S)?(e.consume(S),De):r(S)}function U(S){return S===45&&o===2?(e.consume(S),B):S===60&&o===1?(e.consume(S),V):S===62&&o===4?(e.consume(S),ge):S===63&&o===3?(e.consume(S),w):S===93&&o===5?(e.consume(S),ue):j(S)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(p$,be,M)(S)):S===null||j(S)?(e.exit("htmlFlowData"),M(S)):(e.consume(S),U)}function M(S){return e.check(h$,P,be)(S)}function P(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),L}function L(S){return S===null||j(S)?M(S):(e.enter("htmlFlowData"),U(S))}function B(S){return S===45?(e.consume(S),w):U(S)}function V(S){return S===47?(e.consume(S),a="",X):U(S)}function X(S){if(S===62){let Ne=a.toLowerCase();return Vd.includes(Ne)?(e.consume(S),ge):U(S)}return et(S)&&a.length<8?(e.consume(S),a+=String.fromCharCode(S),X):U(S)}function ue(S){return S===93?(e.consume(S),w):U(S)}function w(S){return S===62?(e.consume(S),ge):S===45&&o===2?(e.consume(S),w):U(S)}function ge(S){return S===null||j(S)?(e.exit("htmlFlowData"),be(S)):(e.consume(S),ge)}function be(S){return e.exit("htmlFlow"),t(S)}}i(d$,"tokenizeHtmlFlow");function g$(e,t,r){let n=this;return o;function o(a){return j(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):r(a)}function s(a){return n.parser.lazy[n.now().line]?r(a):t(a)}}i(g$,"tokenizeNonLazyContinuationStart");function x$(e,t,r){return n;function n(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(zr,t,r)}}i(x$,"tokenizeBlankLineBefore");var Gd={name:"htmlText",tokenize:y$};function y$(e,t,r){let n=this,o,s,a;return l;function l(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),c):w===47?(e.consume(w),H):w===63?(e.consume(w),D):et(w)?(e.consume(w),K):r(w)}function c(w){return w===45?(e.consume(w),f):w===91?(e.consume(w),s=0,d):et(w)?(e.consume(w),T):r(w)}function f(w){return w===45?(e.consume(w),m):r(w)}function p(w){return w===null?r(w):w===45?(e.consume(w),h):j(w)?(a=p,V(w)):(e.consume(w),p)}function h(w){return w===45?(e.consume(w),m):p(w)}function m(w){return w===62?B(w):w===45?h(w):p(w)}function d(w){let ge="CDATA[";return w===ge.charCodeAt(s++)?(e.consume(w),s===ge.length?g:d):r(w)}function g(w){return w===null?r(w):w===93?(e.consume(w),x):j(w)?(a=g,V(w)):(e.consume(w),g)}function x(w){return w===93?(e.consume(w),b):g(w)}function b(w){return w===62?B(w):w===93?(e.consume(w),b):g(w)}function T(w){return w===null||w===62?B(w):j(w)?(a=T,V(w)):(e.consume(w),T)}function D(w){return w===null?r(w):w===63?(e.consume(w),q):j(w)?(a=D,V(w)):(e.consume(w),D)}function q(w){return w===62?B(w):D(w)}function H(w){return et(w)?(e.consume(w),O):r(w)}function O(w){return w===45||$e(w)?(e.consume(w),O):$(w)}function $(w){return j(w)?(a=$,V(w)):Z(w)?(e.consume(w),$):B(w)}function K(w){return w===45||$e(w)?(e.consume(w),K):w===47||w===62||de(w)?Y(w):r(w)}function Y(w){return w===47?(e.consume(w),B):w===58||w===95||et(w)?(e.consume(w),A):j(w)?(a=Y,V(w)):Z(w)?(e.consume(w),Y):B(w)}function A(w){return w===45||w===46||w===58||w===95||$e(w)?(e.consume(w),A):De(w)}function De(w){return w===61?(e.consume(w),U):j(w)?(a=De,V(w)):Z(w)?(e.consume(w),De):Y(w)}function U(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(e.consume(w),o=w,M):j(w)?(a=U,V(w)):Z(w)?(e.consume(w),U):(e.consume(w),P)}function M(w){return w===o?(e.consume(w),o=void 0,L):w===null?r(w):j(w)?(a=M,V(w)):(e.consume(w),M)}function P(w){return w===null||w===34||w===39||w===60||w===61||w===96?r(w):w===47||w===62||de(w)?Y(w):(e.consume(w),P)}function L(w){return w===47||w===62||de(w)?Y(w):r(w)}function B(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):r(w)}function V(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),X}function X(w){return Z(w)?ne(e,ue,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ue(w)}function ue(w){return e.enter("htmlTextData"),a(w)}}i(y$,"tokenizeHtmlText");var Ni={name:"labelEnd",resolveAll:k$,resolveTo:S$,tokenize:T$},w$={tokenize:E$},b$={tokenize:D$},v$={tokenize:C$};function k$(e){let t=-1,r=[];for(;++t<e.length;){let n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let o=n.type==="labelImage"?4:2;n.type="data",t+=o}}return e.length!==r.length&&je(e,0,e.length,r),e}i(k$,"resolveAllLabelEnd");function S$(e,t){let r=e.length,n=0,o,s,a,l;for(;r--;)if(o=e[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(a){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){n=2;break}}else o.type==="labelEnd"&&(a=r);let u={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[s][1].start},end:{...e[a][1].end}},f={type:"labelText",start:{...e[s+n+2][1].end},end:{...e[a-2][1].start}};return l=[["enter",u,t],["enter",c,t]],l=Qe(l,e.slice(s+1,s+n+3)),l=Qe(l,[["enter",f,t]]),l=Qe(l,_n(t.parser.constructs.insideSpan.null,e.slice(s+n+4,a-3),t)),l=Qe(l,[["exit",f,t],e[a-2],e[a-1],["exit",c,t]]),l=Qe(l,e.slice(a+1)),l=Qe(l,[["exit",u,t]]),je(e,s,e.length,l),e}i(S$,"resolveToLabelEnd");function T$(e,t,r){let n=this,o=n.events.length,s,a;for(;o--;)if((n.events[o][1].type==="labelImage"||n.events[o][1].type==="labelLink")&&!n.events[o][1]._balanced){s=n.events[o][1];break}return l;function l(h){return s?s._inactive?p(h):(a=n.parser.defined.includes(He(n.sliceSerialize({start:s.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),u):r(h)}function u(h){return h===40?e.attempt(w$,f,a?f:p)(h):h===91?e.attempt(b$,f,a?c:p)(h):a?f(h):p(h)}function c(h){return e.attempt(v$,f,p)(h)}function f(h){return t(h)}function p(h){return s._balanced=!0,r(h)}}i(T$,"tokenizeLabelEnd");function E$(e,t,r){return n;function n(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),o}function o(p){return de(p)?Pi(e,s)(p):s(p)}function s(p){return p===41?f(p):Nf(e,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return de(p)?Pi(e,u)(p):f(p)}function l(p){return r(p)}function u(p){return p===34||p===39||p===40?Lf(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):f(p)}function c(p){return de(p)?Pi(e,f)(p):f(p)}function f(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):r(p)}}i(E$,"tokenizeResource");function D$(e,t,r){let n=this;return o;function o(l){return Ff.call(n,e,s,a,"reference","referenceMarker","referenceString")(l)}function s(l){return n.parser.defined.includes(He(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(l):r(l)}function a(l){return r(l)}}i(D$,"tokenizeReferenceFull");function C$(e,t,r){return n;function n(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}i(C$,"tokenizeReferenceCollapsed");var Jd={name:"labelStartImage",resolveAll:Ni.resolveAll,tokenize:O$};function O$(e,t,r){let n=this;return o;function o(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),s}function s(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),a):r(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(l):t(l)}}i(O$,"tokenizeLabelStartImage");var Xd={name:"labelStartLink",resolveAll:Ni.resolveAll,tokenize:I$};function I$(e,t,r){let n=this;return o;function o(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):t(a)}}i(I$,"tokenizeLabelStartLink");var Ma={name:"lineEnding",tokenize:A$};function A$(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ne(e,t,"linePrefix")}}i(A$,"tokenizeLineEnding");var Fi={name:"thematicBreak",tokenize:M$};function M$(e,t,r){let n=0,o;return s;function s(c){return e.enter("thematicBreak"),a(c)}function a(c){return o=c,l(c)}function l(c){return c===o?(e.enter("thematicBreakSequence"),u(c)):n>=3&&(c===null||j(c))?(e.exit("thematicBreak"),t(c)):r(c)}function u(c){return c===o?(e.consume(c),n++,u):(e.exit("thematicBreakSequence"),Z(c)?ne(e,l,"whitespace")(c):l(c))}}i(M$,"tokenizeThematicBreak");var wt={continuation:{tokenize:F$},exit:R$,name:"list",tokenize:N$},_$={partial:!0,tokenize:B$},P$={partial:!0,tokenize:L$};function N$(e,t,r){let n=this,o=n.events[n.events.length-1],s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,a=0;return l;function l(m){let d=n.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!n.containerState.marker||m===n.containerState.marker:Sa(m)){if(n.containerState.type||(n.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Fi,r,c)(m):c(m);if(!n.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return r(m)}function u(m){return Sa(m)&&++a<10?(e.consume(m),u):(!n.interrupt||a<2)&&(n.containerState.marker?m===n.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):r(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||m,e.check(zr,n.interrupt?r:f,e.attempt(_$,h,p))}function f(m){return n.containerState.initialBlankLine=!0,s++,h(m)}function p(m){return Z(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):r(m)}function h(m){return n.containerState.size=s+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}i(N$,"tokenizeListStart");function F$(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(zr,o,s);function o(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ne(e,t,"listItemIndent",n.containerState.size+1)(l)}i(o,"onBlank");function s(l){return n.containerState.furtherBlankLines||!Z(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(P$,t,a)(l))}i(s,"notBlank");function a(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,ne(e,e.attempt(wt,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}i(a,"notInCurrentItem")}i(F$,"tokenizeListContinuation");function L$(e,t,r){let n=this;return ne(e,o,"listItemIndent",n.containerState.size+1);function o(s){let a=n.events[n.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===n.containerState.size?t(s):r(s)}}i(L$,"tokenizeIndent");function R$(e){e.exit(this.containerState.type)}i(R$,"tokenizeListEnd");function B$(e,t,r){let n=this;return ne(e,o,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){let a=n.events[n.events.length-1];return!Z(s)&&a&&a[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}i(B$,"tokenizeListItemPrefixWhitespace");var Rf={name:"setextUnderline",resolveTo:z$,tokenize:$$};function z$(e,t){let r=e.length,n,o,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",a,t]),e.splice(s+1,0,["exit",e[n][1],t]),e[n][1].end={...e[s][1].end}):e[n][1]=a,e.push(["exit",a,t]),e}i(z$,"resolveToSetextUnderline");function $$(e,t,r){let n=this,o;return s;function s(c){let f=n.events.length,p;for(;f--;)if(n.events[f][1].type!=="lineEnding"&&n.events[f][1].type!=="linePrefix"&&n.events[f][1].type!=="content"){p=n.events[f][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||p)?(e.enter("setextHeadingLine"),o=c,a(c)):r(c)}function a(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===o?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),Z(c)?ne(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||j(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}i($$,"tokenizeSetextUnderline");var H$={tokenize:Q$,partial:!0};function Zd(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:q$,continuation:{tokenize:Y$},exit:V$}},text:{91:{name:"gfmFootnoteCall",tokenize:j$},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:W$,resolveTo:U$}}}}i(Zd,"gfmFootnote");function W$(e,t,r){let n=this,o=n.events.length,s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),a;for(;o--;){let u=n.events[o][1];if(u.type==="labelImage"){a=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!a||!a._balanced)return r(u);let c=He(n.sliceSerialize({start:a.end,end:n.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?r(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}i(W$,"tokenizePotentialGfmFootnoteCall");function U$(e,t){let r=e.length,n;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",s,t],["exit",s,t],["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...u),e}i(U$,"resolveToPotentialGfmFootnoteCall");function j$(e,t,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s=0,a;return l;function l(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),u}function u(p){return p!==94?r(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(p){if(s>999||p===93&&!a||p===null||p===91||de(p))return r(p);if(p===93){e.exit("chunkString");let h=e.exit("gfmFootnoteCallString");return o.includes(He(n.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(p)}return de(p)||(a=!0),s++,e.consume(p),p===92?f:c}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}}i(j$,"tokenizeGfmFootnoteCall");function q$(e,t,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s,a=0,l;return u;function u(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):r(d)}function f(d){if(a>999||d===93&&!l||d===null||d===91||de(d))return r(d);if(d===93){e.exit("chunkString");let g=e.exit("gfmFootnoteDefinitionLabelString");return s=He(n.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return de(d)||(l=!0),a++,e.consume(d),d===92?p:f}function p(d){return d===91||d===92||d===93?(e.consume(d),a++,f):f(d)}function h(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),o.includes(s)||o.push(s),ne(e,m,"gfmFootnoteDefinitionWhitespace")):r(d)}function m(d){return t(d)}}i(q$,"tokenizeDefinitionStart");function Y$(e,t,r){return e.check(zr,t,e.attempt(H$,t,r))}i(Y$,"tokenizeDefinitionContinuation");function V$(e){e.exit("gfmFootnoteDefinition")}i(V$,"gfmFootnoteDefinitionEnd");function Q$(e,t,r){let n=this;return ne(e,o,"gfmFootnoteDefinitionIndent",5);function o(s){let a=n.events[n.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(s):r(s)}}i(Q$,"tokenizeIndent");var G$={}.hasOwnProperty,J$={};function ZT(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}i(ZT,"defaultBackLabel");function Kd(e){let t=e||J$,r=t.label||"Footnotes",n=t.labelTagName||"h2",o=t.labelAttributes===null||t.labelAttributes===void 0?'class="sr-only"':t.labelAttributes,s=t.backLabel||ZT,a=t.clobberPrefix===null||t.clobberPrefix===void 0?"user-content-":t.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData("tightStack").push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let l=this.getData("gfmFootnoteDefinitions"),u=this.getData("gfmFootnoteDefinitionStack"),c=this.getData("tightStack"),f=u.pop(),p=this.resume();l||this.setData("gfmFootnoteDefinitions",l={}),G$.call(l,f)||(l[f]=p),c.pop(),this.setData("slurpOneLineEnding",!0),this.setData("lastWasTag")},gfmFootnoteDefinitionLabelString(l){let u=this.getData("gfmFootnoteDefinitionStack");u||this.setData("gfmFootnoteDefinitionStack",u=[]),u.push(He(this.sliceSerialize(l))),this.resume(),this.buffer()},gfmFootnoteCallString(l){let u=this.getData("gfmFootnoteCallOrder"),c=this.getData("gfmFootnoteCallCounts"),f=He(this.sliceSerialize(l)),p;this.resume(),u||this.setData("gfmFootnoteCallOrder",u=[]),c||this.setData("gfmFootnoteCallCounts",c={});let h=u.indexOf(f),m=Br(f.toLowerCase());h===-1?(u.push(f),c[f]=1,p=u.length):(c[f]++,p=h+1);let d=c[f];this.tag('<sup><a href="#'+a+"fn-"+m+'" id="'+a+"fnref-"+m+(d>1?"-"+d:"")+'" data-footnote-ref="" aria-describedby="footnote-label">'+String(p)+"</a></sup>")},null(){let l=this.getData("gfmFootnoteCallOrder")||[],u=this.getData("gfmFootnoteCallCounts")||{},c=this.getData("gfmFootnoteDefinitions")||{},f=-1;for(l.length>0&&(this.lineEndingIfNeeded(),this.tag('<section data-footnotes="" class="footnotes"><'+n+' id="footnote-label"'+(o?" "+o:"")+">"),this.raw(this.encode(r)),this.tag("</"+n+">"),this.lineEndingIfNeeded(),this.tag("<ol>"));++f<l.length;){let p=l[f],h=Br(p.toLowerCase()),m=0,d=[];for(;++m<=u[p];)d.push('<a href="#'+a+"fnref-"+h+(m>1?"-"+m:"")+'" data-footnote-backref="" aria-label="'+this.encode(typeof s=="string"?s:s(f,m))+'" class="data-footnote-backref">\u21A9'+(m>1?"<sup>"+m+"</sup>":"")+"</a>");let g=d.join(" "),x=!1;this.lineEndingIfNeeded(),this.tag('<li id="'+a+"fn-"+h+'">'),this.lineEndingIfNeeded(),this.tag(c[p].replace(/<\/p>(?:\r?\n|\r)?$/,function(b){return x=!0," "+g+b})),x||(this.lineEndingIfNeeded(),this.tag(g)),this.lineEndingIfNeeded(),this.tag("</li>")}l.length>0&&(this.lineEndingIfNeeded(),this.tag("</ol>"),this.lineEndingIfNeeded(),this.tag("</section>"))}}}}i(Kd,"gfmFootnoteHtml");function eg(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}i(eg,"gfmStrikethroughHtml");function tg(e){let r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function o(a,l){let u=-1;for(;++u<a.length;)if(a[u][0]==="enter"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._close){let c=u;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[u][1].end.offset-a[u][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[u][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";let f={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[u][1].end)},p={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[u][1].start)},h=[["enter",f,l],["enter",a[c][1],l],["exit",a[c][1],l],["enter",p,l]],m=l.parser.constructs.insideSpan.null;m&&je(h,h.length,0,_n(m,a.slice(c+1,u),l)),je(h,h.length,0,[["exit",p,l],["enter",a[u][1],l],["exit",a[u][1],l],["exit",f,l]]),je(a,c-1,u-c+3,h),u=c+h.length-2;break}}for(u=-1;++u<a.length;)a[u][1].type==="strikethroughSequenceTemporary"&&(a[u][1].type="data");return a}i(o,"resolveAllStrikethrough");function s(a,l,u){let c=this.previous,f=this.events,p=0;return h;function h(d){return c===126&&f[f.length-1][1].type!=="characterEscape"?u(d):(a.enter("strikethroughSequenceTemporary"),m(d))}function m(d){let g=Zr(c);if(d===126)return p>1?u(d):(a.consume(d),p++,m);if(p<2&&!r)return u(d);let x=a.exit("strikethroughSequenceTemporary"),b=Zr(d);return x._open=!b||b===2&&!!g,x._close=!g||g===2&&!!b,l(d)}}i(s,"tokenizeStrikethrough")}i(tg,"gfmStrikethrough");var rg={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function ng(){return{enter:{table(e){let t=e._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",t)},tableBody(){this.tag("<tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=rg[e[t]];r===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+r+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=rg[e[t]];this.lineEndingIfNeeded(),this.tag("<th"+r+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(e){let t=this.sliceSerialize(e);this.getData("tableAlign")&&(t=t.replace(/\\([\\|])/g,X$)),this.raw(this.encode(t))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");t in e?(this.tag("</td>"),this.setData("tableColumn",t+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){let e=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",e+1)},tableRow(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");for(;t<e.length;)this.lineEndingIfNeeded(),this.tag("<td"+rg[e[t]]+"></td>"),t++;this.setData("tableColumn",t),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}i(ng,"gfmTableHtml");function X$(e,t){return t==="|"?t:e}i(X$,"replace");var Bf=class{static{i(this,"EditMap")}constructor(){this.map=[]}add(t,r,n){Z$(this,t,r,n)}consume(t){if(this.map.sort(function(s,a){return s[0]-a[0]}),this.map.length===0)return;let r=this.map.length,n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let o=n.pop();for(;o;){for(let s of o)t.push(s);o=n.pop()}this.map.length=0}};function Z$(e,t,r,n){let o=0;if(!(r===0&&n.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=r,e.map[o][2].push(...n);return}o+=1}e.map.push([t,r,n])}}i(Z$,"addImplementation");function KT(e,t){let r=!1,n=[];for(;t<e.length;){let o=e[t];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let s=n.length-1;n[s]=n[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}i(KT,"gfmTableAlign");function ig(){return{flow:{null:{name:"table",tokenize:K$,resolveAll:eH}}}}i(ig,"gfmTable");function K$(e,t,r){let n=this,o=0,s=0,a;return l;function l(A){let De=n.events.length-1;for(;De>-1;){let P=n.events[De][1].type;if(P==="lineEnding"||P==="linePrefix")De--;else break}let U=De>-1?n.events[De][1].type:null,M=U==="tableHead"||U==="tableRow"?O:u;return M===O&&n.parser.lazy[n.now().line]?r(A):M(A)}function u(A){return e.enter("tableHead"),e.enter("tableRow"),c(A)}function c(A){return A===124||(a=!0,s+=1),f(A)}function f(A){return A===null?r(A):j(A)?s>1?(s=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),m):r(A):Z(A)?ne(e,f,"whitespace")(A):(s+=1,a&&(a=!1,o+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),a=!0,f):(e.enter("data"),p(A)))}function p(A){return A===null||A===124||de(A)?(e.exit("data"),f(A)):(e.consume(A),A===92?h:p)}function h(A){return A===92||A===124?(e.consume(A),p):p(A)}function m(A){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(A):(e.enter("tableDelimiterRow"),a=!1,Z(A)?ne(e,d,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):d(A))}function d(A){return A===45||A===58?x(A):A===124?(a=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),g):H(A)}function g(A){return Z(A)?ne(e,x,"whitespace")(A):x(A)}function x(A){return A===58?(s+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),b):A===45?(s+=1,b(A)):A===null||j(A)?q(A):H(A)}function b(A){return A===45?(e.enter("tableDelimiterFiller"),T(A)):H(A)}function T(A){return A===45?(e.consume(A),T):A===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),D):(e.exit("tableDelimiterFiller"),D(A))}function D(A){return Z(A)?ne(e,q,"whitespace")(A):q(A)}function q(A){return A===124?d(A):A===null||j(A)?!a||o!==s?H(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):H(A)}function H(A){return r(A)}function O(A){return e.enter("tableRow"),$(A)}function $(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),$):A===null||j(A)?(e.exit("tableRow"),t(A)):Z(A)?ne(e,$,"whitespace")(A):(e.enter("data"),K(A))}function K(A){return A===null||A===124||de(A)?(e.exit("data"),$(A)):(e.consume(A),A===92?Y:K)}function Y(A){return A===92||A===124?(e.consume(A),K):K(A)}}i(K$,"tokenizeTable");function eH(e,t){let r=-1,n=!0,o=0,s=[0,0,0,0],a=[0,0,0,0],l=!1,u=0,c,f,p,h=new Bf;for(;++r<e.length;){let m=e[r],d=m[1];m[0]==="enter"?d.type==="tableHead"?(l=!1,u!==0&&(eE(h,t,u,c,f),f=void 0,u=0),c={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(r,0,[["enter",c,t]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(n=!0,p=void 0,s=[0,0,0,0],a=[0,r+1,0,0],l&&(l=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(r,0,[["enter",f,t]])),o=d.type==="tableDelimiterRow"?2:f?3:1):o&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(n=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],p=zf(h,t,s,o,void 0,p),s=[0,0,0,0]),a[2]=r)):d.type==="tableCellDivider"&&(n?n=!1:(s[1]!==0&&(a[0]=a[1],p=zf(h,t,s,o,void 0,p)),s=a,a=[s[1],r,0,0])):d.type==="tableHead"?(l=!0,u=r):d.type==="tableRow"||d.type==="tableDelimiterRow"?(u=r,s[1]!==0?(a[0]=a[1],p=zf(h,t,s,o,r,p)):a[1]!==0&&(p=zf(h,t,a,o,r,p)),o=0):o&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(a[3]=r)}for(u!==0&&eE(h,t,u,c,f),h.consume(t.events),r=-1;++r<t.events.length;){let m=t.events[r];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=KT(t.events,r))}return e}i(eH,"resolveTable");function zf(e,t,r,n,o,s){let a=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";r[0]!==0&&(s.end=Object.assign({},as(t.events,r[0])),e.add(r[0],0,[["exit",s,t]]));let u=as(t.events,r[1]);if(s={type:a,start:Object.assign({},u),end:Object.assign({},u)},e.add(r[1],0,[["enter",s,t]]),r[2]!==0){let c=as(t.events,r[2]),f=as(t.events,r[3]),p={type:l,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(r[2],0,[["enter",p,t]]),n!==2){let h=t.events[r[2]],m=t.events[r[3]];if(h[1].end=Object.assign({},m[1].end),h[1].type="chunkText",h[1].contentType="text",r[3]>r[2]+1){let d=r[2]+1,g=r[3]-r[2]-1;e.add(d,g,[])}}e.add(r[3]+1,0,[["exit",p,t]])}return o!==void 0&&(s.end=Object.assign({},as(t.events,o)),e.add(o,0,[["exit",s,t]]),s=void 0),s}i(zf,"flushCell");function eE(e,t,r,n,o){let s=[],a=as(t.events,r);o&&(o.end=Object.assign({},a),s.push(["exit",o,t])),n.end=Object.assign({},a),s.push(["exit",n,t]),e.add(r+1,0,s)}i(eE,"flushTableEnd");function as(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}i(as,"getPoint");var tE=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,tH=new RegExp("^"+tE.source,"i");function og(){return{exit:{htmlFlowData(e){rE.call(this,e,tE)},htmlTextData(e){rE.call(this,e,tH)}}}}i(og,"gfmTagfilterHtml");function rE(e,t){let r=this.sliceSerialize(e);this.options.allowDangerousHtml&&(r=r.replace(t,"&lt;$1$2")),this.raw(this.encode(r))}i(rE,"exitHtmlData");function sg(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}i(sg,"gfmTaskListItemHtml");var rH={name:"tasklistCheck",tokenize:nH};function ag(){return{text:{91:rH}}}i(ag,"gfmTaskListItem");function nH(e,t,r){let n=this;return o;function o(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),s)}function s(u){return de(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),a):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),a):r(u)}function a(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):r(u)}function l(u){return j(u)?t(u):Z(u)?e.check({tokenize:iH},t,r)(u):r(u)}}i(nH,"tokenizeTasklistCheck");function iH(e,t,r){return ne(e,n,"whitespace");function n(o){return o===null?r(o):t(o)}}i(iH,"spaceThenNonSpace");function nE(e){return Df([Bd(),Zd(),tg(e),ig(),ag()])}i(nE,"gfm");function iWe(e){return Cf([$d(),Kd(e),eg(),ng(),og(),sg()])}i(iWe,"gfmHtml");var oH={};function ls(e){let t=this,r=e||oH,n=t.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(nE(r)),s.push(Pd()),a.push(Nd(r))}i(ls,"remarkGfm");var iE={}.hasOwnProperty,oE=/^(https?|ircs?|mailto|xmpp)$/i,sH=/^https?$/i;function lg(e){let t=e||{},r=!0,n={},o=[[]],s=[],a=[],u=Cf([{enter:{blockQuote:L,codeFenced:ue,codeFencedFenceInfo:x,codeFencedFenceMeta:x,codeIndented:be,codeText:kt,content:hr,definition:Ae,definitionDestinationString:Ot,definitionLabelString:x,definitionTitleString:x,emphasis:Yn,htmlFlow:Bt,htmlText:Yt,image:Ne,label:x,link:Ue,listItemMarker:De,listItemValue:A,listOrdered:K,listUnordered:Y,paragraph:V,reference:x,resource:C,resourceDestinationString:I,resourceTitleString:x,setextHeading:qt,strong:Vn},exit:{atxHeading:Re,atxHeadingSequence:Rt,autolinkEmail:VC,autolinkProtocol:YC,blockQuote:B,characterEscapeValue:z,characterReferenceMarkerHexadecimal:Vx,characterReferenceMarkerNumeric:Vx,characterReferenceValue:qC,codeFenced:S,codeFencedFence:ge,codeFencedFenceInfo:w,codeFencedFenceMeta:$,codeFlowValue:ce,codeIndented:S,codeText:nn,codeTextData:z,data:z,definition:er,definitionDestinationString:rt,definitionLabelString:ve,definitionTitleString:vt,emphasis:tr,hardBreakEscape:ke,hardBreakTrailing:ke,htmlFlow:dr,htmlFlowData:z,htmlText:dr,htmlTextData:z,image:_e,label:E,labelText:Lt,lineEnding:ie,link:_e,listOrdered:U,listUnordered:M,paragraph:X,reference:$,referenceString:k,resource:$,resourceDestinationString:F,resourceTitleString:te,setextHeading:_,setextHeadingLineSequence:mr,setextHeadingText:It,strong:UC,thematicBreak:jC}},...t.htmlExtensions||[]]),c={definitions:n,tightStack:a},f={buffer:x,encode:O,getData:g,lineEndingIfNeeded:H,options:t,raw:D,resume:b,setData:d,tag:T},p=t.defaultLineEnding;return h;function h(W){let re=-1,ct=0,rr=[],gr=[],Ur=[];for(;++re<W.length;)!p&&(W[re][1].type==="lineEnding"||W[re][1].type==="lineEndingBlank")&&(p=W[re][2].sliceSerialize(W[re][1])),(W[re][1].type==="listOrdered"||W[re][1].type==="listUnordered")&&(W[re][0]==="enter"?rr.push(re):m(W.slice(rr.pop(),re))),W[re][1].type==="definition"&&(W[re][0]==="enter"?(Ur=Qe(Ur,W.slice(ct,re)),ct=re):(gr=Qe(gr,W.slice(ct,re+1)),ct=re+1));gr=Qe(gr,Ur),gr=Qe(gr,W.slice(ct)),re=-1;let xr=gr;for(u.enter.null&&u.enter.null.call(f);++re<W.length;){let Qx=u[xr[re][0]],Gx=xr[re][1].type,Jx=Qx[Gx];iE.call(Qx,Gx)&&Jx&&Jx.call({sliceSerialize:xr[re][2].sliceSerialize,...f},xr[re][1])}return u.exit.null&&u.exit.null.call(f),o[0].join("")}function m(W){let re=W.length,ct=0,rr=0,gr=!1,Ur;for(;++ct<re;){let xr=W[ct];if(xr[1]._container)Ur=void 0,xr[0]==="enter"?rr++:rr--;else switch(xr[1].type){case"listItemPrefix":{xr[0]==="exit"&&(Ur=!0);break}case"linePrefix":break;case"lineEndingBlank":{xr[0]==="enter"&&!rr&&(Ur?Ur=void 0:gr=!0);break}default:Ur=void 0}}W[0][1]._loose=gr}function d(W,re){c[W]=re}function g(W){return c[W]}function x(){o.push([])}function b(){return o.pop().join("")}function T(W){r&&(d("lastWasTag",!0),o[o.length-1].push(W))}function D(W){d("lastWasTag"),o[o.length-1].push(W)}function q(){D(p||`
76
- `)}function H(){let W=o[o.length-1],re=W[W.length-1],ct=re?re.charCodeAt(re.length-1):null;ct===10||ct===13||ct===null||q()}function O(W){return g("ignoreEncode")?W:Of(W)}function $(){b()}function K(W){a.push(!W._loose),H(),T("<ol"),d("expectFirstItem",!0)}function Y(W){a.push(!W._loose),H(),T("<ul"),d("expectFirstItem",!0)}function A(W){if(g("expectFirstItem")){let re=Number.parseInt(this.sliceSerialize(W),10);re!==1&&T(' start="'+O(String(re))+'"')}}function De(){g("expectFirstItem")?T(">"):P(),H(),T("<li>"),d("expectFirstItem"),d("lastWasTag")}function U(){P(),a.pop(),q(),T("</ol>")}function M(){P(),a.pop(),q(),T("</ul>")}function P(){g("lastWasTag")&&!g("slurpAllLineEndings")&&H(),T("</li>"),d("slurpAllLineEndings")}function L(){a.push(!1),H(),T("<blockquote>")}function B(){a.pop(),H(),T("</blockquote>"),d("slurpAllLineEndings")}function V(){a[a.length-1]||(H(),T("<p>")),d("slurpAllLineEndings")}function X(){a[a.length-1]?d("slurpAllLineEndings",!0):T("</p>")}function ue(){H(),T("<pre><code"),d("fencesCount",0)}function w(){let W=b();T(' class="language-'+W+'"')}function ge(){let W=g("fencesCount")||0;W||(T(">"),d("slurpOneLineEnding",!0)),d("fencesCount",W+1)}function be(){H(),T("<pre><code>")}function S(){let W=g("fencesCount");W!==void 0&&W<2&&c.tightStack.length>0&&!g("lastWasTag")&&q(),g("flowCodeSeenData")&&H(),T("</code></pre>"),W!==void 0&&W<2&&H(),d("flowCodeSeenData"),d("fencesCount"),d("slurpOneLineEnding")}function Ne(){s.push({image:!0}),r=void 0}function Ue(){s.push({})}function Lt(W){s[s.length-1].labelId=this.sliceSerialize(W)}function E(){s[s.length-1].label=b()}function k(W){s[s.length-1].referenceId=this.sliceSerialize(W)}function C(){x(),s[s.length-1].destination=""}function I(){x(),d("ignoreEncode",!0)}function F(){s[s.length-1].destination=b(),d("ignoreEncode")}function te(){s[s.length-1].title=b()}function _e(){let W=s.length-1,re=s[W],ct=re.referenceId||re.labelId,rr=re.destination===void 0?n[He(ct)]:re;for(r=!0;W--;)if(s[W].image){r=void 0;break}re.image?(T('<img src="'+Br(rr.destination,t.allowDangerousProtocol?void 0:sH)+'" alt="'),D(re.label),T('"')):T('<a href="'+Br(rr.destination,t.allowDangerousProtocol?void 0:oE)+'"'),T(rr.title?' title="'+rr.title+'"':""),re.image?T(" />"):(T(">"),D(re.label),T("</a>")),s.pop()}function Ae(){x(),s.push({})}function ve(W){b(),s[s.length-1].labelId=this.sliceSerialize(W)}function Ot(){x(),d("ignoreEncode",!0)}function rt(){s[s.length-1].destination=b(),d("ignoreEncode")}function vt(){s[s.length-1].title=b()}function er(){let W=s[s.length-1],re=He(W.labelId);b(),iE.call(n,re)||(n[re]=s[s.length-1]),s.pop()}function hr(){d("slurpAllLineEndings",!0)}function Rt(W){g("headingRank")||(d("headingRank",this.sliceSerialize(W).length),H(),T("<h"+g("headingRank")+">"))}function qt(){x(),d("slurpAllLineEndings")}function It(){d("slurpAllLineEndings",!0)}function Re(){T("</h"+g("headingRank")+">"),d("headingRank")}function mr(W){d("headingRank",this.sliceSerialize(W).charCodeAt(0)===61?1:2)}function _(){let W=b();H(),T("<h"+g("headingRank")+">"),D(W),T("</h"+g("headingRank")+">"),d("slurpAllLineEndings"),d("headingRank")}function z(W){D(O(this.sliceSerialize(W)))}function ie(W){if(!g("slurpAllLineEndings")){if(g("slurpOneLineEnding")){d("slurpOneLineEnding");return}if(g("inCodeText")){D(" ");return}D(O(this.sliceSerialize(W)))}}function ce(W){D(O(this.sliceSerialize(W))),d("flowCodeSeenData",!0)}function ke(){T("<br />")}function Bt(){H(),Yt()}function dr(){d("ignoreEncode")}function Yt(){t.allowDangerousHtml&&d("ignoreEncode",!0)}function Yn(){T("<em>")}function Vn(){T("<strong>")}function kt(){d("inCodeText",!0),T("<code>")}function nn(){d("inCodeText"),T("</code>")}function tr(){T("</em>")}function UC(){T("</strong>")}function jC(){H(),T("<hr />")}function Vx(W){d("characterReferenceType",W.type)}function qC(W){let re=this.sliceSerialize(W),ct=g("characterReferenceType")?ss(re,g("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):Mn(re);D(O(ct)),d("characterReferenceType")}function YC(W){let re=this.sliceSerialize(W);T('<a href="'+Br(re,t.allowDangerousProtocol?void 0:oE)+'">'),D(O(re)),T("</a>")}function VC(W){let re=this.sliceSerialize(W);T('<a href="'+Br("mailto:"+re)+'">'),D(O(re)),T("</a>")}}i(lg,"compile");var sE={tokenize:aH};function aH(e){let t=e.attempt(this.parser.constructs.contentInitial,n,o),r;return t;function n(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ne(e,t,"linePrefix")}function o(l){return e.enter("paragraph"),s(l)}function s(l){let u=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,a(l)}function a(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return j(l)?(e.consume(l),e.exit("chunkText"),s):(e.consume(l),a)}}i(aH,"initializeContent");var lE={tokenize:lH},aE={tokenize:uH};function lH(e){let t=this,r=[],n=0,o,s,a;return l;function l(D){if(n<r.length){let q=r[n];return t.containerState=q[1],e.attempt(q[0].continuation,u,c)(D)}return c(D)}function u(D){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&T();let q=t.events.length,H=q,O;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){O=t.events[H][1].end;break}b(n);let $=q;for(;$<t.events.length;)t.events[$][1].end={...O},$++;return je(t.events,H+1,0,t.events.slice(q)),t.events.length=$,c(D)}return l(D)}function c(D){if(n===r.length){if(!o)return h(D);if(o.currentConstruct&&o.currentConstruct.concrete)return d(D);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(aE,f,p)(D)}function f(D){return o&&T(),b(n),h(D)}function p(D){return t.parser.lazy[t.now().line]=n!==r.length,a=t.now().offset,d(D)}function h(D){return t.containerState={},e.attempt(aE,m,d)(D)}function m(D){return n++,r.push([t.currentConstruct,t.containerState]),h(D)}function d(D){if(D===null){o&&T(),b(0),e.consume(D);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),g(D)}function g(D){if(D===null){x(e.exit("chunkFlow"),!0),b(0),e.consume(D);return}return j(D)?(e.consume(D),x(e.exit("chunkFlow")),n=0,t.interrupt=void 0,l):(e.consume(D),g)}function x(D,q){let H=t.sliceStream(D);if(q&&H.push(null),D.previous=s,s&&(s.next=D),s=D,o.defineSkip(D.start),o.write(H),t.parser.lazy[D.start.line]){let O=o.events.length;for(;O--;)if(o.events[O][1].start.offset<a&&(!o.events[O][1].end||o.events[O][1].end.offset>a))return;let $=t.events.length,K=$,Y,A;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if(Y){A=t.events[K][1].end;break}Y=!0}for(b(n),O=$;O<t.events.length;)t.events[O][1].end={...A},O++;je(t.events,K+1,0,t.events.slice($)),t.events.length=O}}function b(D){let q=r.length;for(;q-- >D;){let H=r[q];t.containerState=H[1],H[0].exit.call(t,e)}r.length=D}function T(){o.write([null]),s=void 0,o=void 0,t.containerState._closeFlow=void 0}}i(lH,"initializeDocument");function uH(e,t,r){return ne(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}i(uH,"tokenizeContainer");var uE={tokenize:cH};function cH(e){let t=this,r=e.attempt(zr,n,e.attempt(this.parser.constructs.flowInitial,o,ne(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Ud,o)),"linePrefix")));return r;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}i(cH,"initializeFlow");var pE={resolveAll:fE()},hE=cE("string"),mE=cE("text");function cE(e){return{resolveAll:fE(e==="text"?fH:void 0),tokenize:t};function t(r){let n=this,o=this.parser.constructs[e],s=r.attempt(o,a,l);return a;function a(f){return c(f)?s(f):l(f)}function l(f){if(f===null){r.consume(f);return}return r.enter("data"),r.consume(f),u}function u(f){return c(f)?(r.exit("data"),s(f)):(r.consume(f),u)}function c(f){if(f===null)return!0;let p=o[f],h=-1;if(p)for(;++h<p.length;){let m=p[h];if(!m.previous||m.previous.call(n,n.previous))return!0}return!1}}}i(cE,"initializeFactory");function fE(e){return t;function t(r,n){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(r,n):r}}i(fE,"createResolver");function fH(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let n=e[r-1][1],o=t.sliceStream(n),s=o.length,a=-1,l=0,u;for(;s--;){let c=o[s];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(c===-2)u=!0,l++;else if(c!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(l=0),l){let c={type:r===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:n.start._bufferIndex+a,_index:n.start._index+s,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}i(fH,"resolveAllLineSuffixes");var ug={};se(ug,{attentionMarkers:()=>wH,contentInitial:()=>hH,disable:()=>bH,document:()=>pH,flow:()=>dH,flowInitial:()=>mH,insideSpan:()=>yH,string:()=>gH,text:()=>xH});var pH={42:wt,43:wt,45:wt,48:wt,49:wt,50:wt,51:wt,52:wt,53:wt,54:wt,55:wt,56:wt,57:wt,62:If},hH={91:jd},mH={[-2]:Oa,[-1]:Oa,32:Oa},dH={35:Yd,42:Fi,45:[Rf,Fi],60:Qd,61:Rf,95:Fi,96:_f,126:_f},gH={38:Mf,92:Af},xH={[-5]:Ma,[-4]:Ma,[-3]:Ma,33:Jd,38:Mf,42:Ca,60:[Hd,Gd],91:Xd,92:[qd,Af],93:Ni,95:Ca,96:Wd},yH={null:[Ca,pE]},wH={null:[42,95]},bH={null:[]};function dE(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},o={},s=[],a=[],l=[],u=!0,c={attempt:Y($),check:Y(K),consume:q,enter:H,exit:O,interrupt:Y(K,{interrupt:!0})},f={code:null,containerState:{},defineSkip:b,events:[],now:x,parser:e,previous:null,sliceSerialize:d,sliceStream:g,write:m},p=t.tokenize.call(f,c),h;return t.resolveAll&&s.push(t),f;function m(M){return a=Qe(a,M),T(),a[a.length-1]!==null?[]:(A(t,0),f.events=_n(s,f.events,f),f.events)}i(m,"write");function d(M,P){return kH(g(M),P)}i(d,"sliceSerialize");function g(M){return vH(a,M)}i(g,"sliceStream");function x(){let{_bufferIndex:M,_index:P,line:L,column:B,offset:V}=n;return{_bufferIndex:M,_index:P,line:L,column:B,offset:V}}i(x,"now");function b(M){o[M.line]=M.column,U()}i(b,"defineSkip");function T(){let M;for(;n._index<a.length;){let P=a[n._index];if(typeof P=="string")for(M=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===M&&n._bufferIndex<P.length;)D(P.charCodeAt(n._bufferIndex));else D(P)}}i(T,"main");function D(M){u=void 0,h=M,p=p(M)}i(D,"go");function q(M){j(M)?(n.line++,n.column=1,n.offset+=M===-3?2:1,U()):M!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++)),f.previous=M,u=!0}i(q,"consume");function H(M,P){let L=P||{};return L.type=M,L.start=x(),f.events.push(["enter",L,f]),l.push(L),L}i(H,"enter");function O(M){let P=l.pop();return P.end=x(),f.events.push(["exit",P,f]),P}i(O,"exit");function $(M,P){A(M,P.from)}i($,"onsuccessfulconstruct");function K(M,P){P.restore()}i(K,"onsuccessfulcheck");function Y(M,P){return L;function L(B,V,X){let ue,w,ge,be;return Array.isArray(B)?Ne(B):"tokenize"in B?Ne([B]):S(B);function S(k){return C;function C(I){let F=I!==null&&k[I],te=I!==null&&k.null,_e=[...Array.isArray(F)?F:F?[F]:[],...Array.isArray(te)?te:te?[te]:[]];return Ne(_e)(I)}}function Ne(k){return ue=k,w=0,k.length===0?X:Ue(k[w])}function Ue(k){return C;function C(I){return be=De(),ge=k,k.partial||(f.currentConstruct=k),k.name&&f.parser.constructs.disable.null.includes(k.name)?E(I):k.tokenize.call(P?Object.assign(Object.create(f),P):f,c,Lt,E)(I)}}function Lt(k){return u=!0,M(ge,be),V}function E(k){return u=!0,be.restore(),++w<ue.length?Ue(ue[w]):X}}}i(Y,"constructFactory");function A(M,P){M.resolveAll&&!s.includes(M)&&s.push(M),M.resolve&&je(f.events,P,f.events.length-P,M.resolve(f.events.slice(P),f)),M.resolveTo&&(f.events=M.resolveTo(f.events,f))}i(A,"addResult");function De(){let M=x(),P=f.previous,L=f.currentConstruct,B=f.events.length,V=Array.from(l);return{from:B,restore:X};function X(){n=M,f.previous=P,f.currentConstruct=L,f.events.length=B,l=V,U()}}i(De,"store");function U(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}i(U,"accountForPotentialSkip")}i(dE,"createTokenizer");function vH(e,t){let r=t.start._index,n=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex,a;if(r===o)a=[e[r].slice(n,s)];else{if(a=e.slice(r,o),n>-1){let l=a[0];typeof l=="string"?a[0]=l.slice(n):a.shift()}s>0&&a.push(e[o].slice(0,s))}return a}i(vH,"sliceChunks");function kH(e,t){let r=-1,n=[],o;for(;++r<e.length;){let s=e[r],a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=`
75
+ `))}function u(m,d,g,x){let b=g.enter("tableCell"),T=g.enter("phrasing"),D=g.containerPhrasing(m,{...x,before:s,after:s});return T(),b(),D}function c(m,d){return rT(m,{align:d,alignDelimiters:n,padding:r,stringLength:o})}function f(m,d,g){let x=m.children,b=-1,T=[],D=d.enter("table");for(;++b<x.length;)T[b]=p(x[b],d,g);return D(),T}function p(m,d,g){let x=m.children,b=-1,T=[],D=d.enter("tableRow");for(;++b<x.length;)T[b]=u(x[b],m,d,g);return D(),T}function h(m,d,g){let x=Ci.inlineCode(m,d,g);return g.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}i(Ad,"gfmTableToMarkdown");function Md(){return{exit:{taskListCheckValueChecked:BT,taskListCheckValueUnchecked:BT,paragraph:xz}}}i(Md,"gfmTaskListItemFromMarkdown");function _d(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:yz}}}i(_d,"gfmTaskListItemToMarkdown");function BT(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}i(BT,"exitCheck");function xz(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let n=r.children[0];if(n&&n.type==="text"){let o=t.children,s=-1,a;for(;++s<o.length;){let l=o[s];if(l.type==="paragraph"){a=l;break}}a===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}i(xz,"exitParagraphWithTaskListItem");function yz(e,t,r,n){let o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",l=r.createTracker(n);s&&l.move(a);let u=Ci.listItem(e,t,r,{...n,...l.current()});return s&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),u;function c(f){return f+a}i(c,"check")}i(yz,"listItemWithTaskListItem");function Nd(){return[ud(),fd(),hd(),Od(),Md()]}i(Nd,"gfmFromMarkdown");function Pd(e){return{extensions:[cd(),pd(e),md(),Ad(e),_d()]}}i(Pd,"gfmToMarkdown");function je(e,t,r,n){let o=e.length,s=0,a;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);s<n.length;)a=n.slice(s,s+1e4),a.unshift(t,0),e.splice(...a),s+=1e4,t+=1e4}i(je,"splice");function Qe(e,t){return e.length>0?(je(e,e.length,0,t),e):t}i(Qe,"push");var Fd={}.hasOwnProperty;function Cf(e){let t={},r=-1;for(;++r<e.length;)wz(t,e[r]);return t}i(Cf,"combineExtensions");function wz(e,t){let r;for(r in t){let o=(Fd.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r],a;if(s)for(a in s){Fd.call(o,a)||(o[a]=[]);let l=s[a];bz(o[a],Array.isArray(l)?l:l?[l]:[])}}}i(wz,"syntaxExtension");function bz(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);je(e,0,0,n)}i(bz,"constructs");function If(e){let t={},r=-1;for(;++r<e.length;)vz(t,e[r]);return t}i(If,"combineHtmlExtensions");function vz(e,t){let r;for(r in t){let o=(Fd.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r],a;if(s)for(a in s)o[a]=s[a]}}i(vz,"htmlExtension");var kz={tokenize:Cz,partial:!0},zT={tokenize:Iz,partial:!0},$T={tokenize:Oz,partial:!0},HT={tokenize:Az,partial:!0},Sz={tokenize:Mz,partial:!0},UT={name:"wwwAutolink",tokenize:Ez,previous:jT},WT={name:"protocolAutolink",tokenize:Dz,previous:qT},Zr={name:"emailAutolink",tokenize:Tz,previous:YT},Rr={};function Bd(){return{text:Rr}}i(Bd,"gfmAutolinkLiteral");for(var Oi=48;Oi<123;)Rr[Oi]=Zr,Oi++,Oi===58?Oi=65:Oi===91&&(Oi=97);Rr[43]=Zr,Rr[45]=Zr,Rr[46]=Zr,Rr[95]=Zr,Rr[72]=[Zr,WT],Rr[104]=[Zr,WT],Rr[87]=[Zr,UT],Rr[119]=[Zr,UT];function Tz(e,t,r){let n=this,o,s;return a;function a(p){return!Ld(p)||!YT.call(n,n.previous)||Rd(n.events)?r(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(p))}function l(p){return Ld(p)?(e.consume(p),l):p===64?(e.consume(p),u):r(p)}function u(p){return p===46?e.check(Sz,f,c)(p):p===45||p===95||$e(p)?(s=!0,e.consume(p),u):f(p)}function c(p){return e.consume(p),o=!0,u}function f(p){return s&&o&&et(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):r(p)}}i(Tz,"tokenizeEmailAutolink");function Ez(e,t,r){let n=this;return o;function o(a){return a!==87&&a!==119||!jT.call(n,n.previous)||Rd(n.events)?r(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(kz,e.attempt(zT,e.attempt($T,s),r),r)(a))}function s(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}i(Ez,"tokenizeWwwAutolink");function Dz(e,t,r){let n=this,o="",s=!1;return a;function a(p){return(p===72||p===104)&&qT.call(n,n.previous)&&!Rd(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(p),e.consume(p),l):r(p)}function l(p){if(et(p)&&o.length<5)return o+=String.fromCodePoint(p),e.consume(p),l;if(p===58){let h=o.toLowerCase();if(h==="http"||h==="https")return e.consume(p),u}return r(p)}function u(p){return p===47?(e.consume(p),s?c:(s=!0,u)):r(p)}function c(p){return p===null||Si(p)||de(p)||Lr(p)||Ti(p)?r(p):e.attempt(zT,e.attempt($T,f),r)(p)}function f(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}i(Dz,"tokenizeProtocolAutolink");function Cz(e,t,r){let n=0;return o;function o(a){return(a===87||a===119)&&n<3?(n++,e.consume(a),o):a===46&&n===3?(e.consume(a),s):r(a)}function s(a){return a===null?r(a):t(a)}}i(Cz,"tokenizeWwwPrefix");function Iz(e,t,r){let n,o,s;return a;function a(c){return c===46||c===95?e.check(HT,u,l)(c):c===null||de(c)||Lr(c)||c!==45&&Ti(c)?u(c):(s=!0,e.consume(c),a)}function l(c){return c===95?n=!0:(o=n,n=void 0),e.consume(c),a}function u(c){return o||n||!s?r(c):t(c)}}i(Iz,"tokenizeDomain");function Oz(e,t){let r=0,n=0;return o;function o(a){return a===40?(r++,e.consume(a),o):a===41&&n<r?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(HT,t,s)(a):a===null||de(a)||Lr(a)?t(a):(e.consume(a),o)}function s(a){return a===41&&n++,e.consume(a),o}}i(Oz,"tokenizePath");function Az(e,t,r){return n;function n(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),n):l===38?(e.consume(l),s):l===93?(e.consume(l),o):l===60||l===null||de(l)||Lr(l)?t(l):r(l)}function o(l){return l===null||l===40||l===91||de(l)||Lr(l)?t(l):n(l)}function s(l){return et(l)?a(l):r(l)}function a(l){return l===59?(e.consume(l),n):et(l)?(e.consume(l),a):r(l)}}i(Az,"tokenizeTrail");function Mz(e,t,r){return n;function n(s){return e.consume(s),o}function o(s){return $e(s)?r(s):t(s)}}i(Mz,"tokenizeEmailDomainDotTrail");function jT(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||de(e)}i(jT,"previousWww");function qT(e){return!et(e)}i(qT,"previousProtocol");function YT(e){return!(e===47||Ld(e))}i(YT,"previousEmail");function Ld(e){return e===43||e===45||e===46||e===95||$e(e)}i(Ld,"gfmAtext");function Rd(e){let t=e.length,r=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}i(Rd,"previousUnbalanced");var _z={'"':"quot","&":"amp","<":"lt",">":"gt"};function Of(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+_z[r]+";"}}i(Of,"encode");function Br(e,t){let r=Of(jt(e||""));if(!t)return r;let n=r.indexOf(":"),o=r.indexOf("?"),s=r.indexOf("#"),a=r.indexOf("/");return n<0||a>-1&&n>a||o>-1&&n>o||s>-1&&n>s||t.test(r.slice(0,n))?r:""}i(Br,"sanitizeUri");function jt(e){let t=[],r=-1,n=0,o=0;for(;++r<e.length;){let s=e.charCodeAt(r),a="";if(s===37&&$e(e.charCodeAt(r+1))&&$e(e.charCodeAt(r+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){let l=e.charCodeAt(r+1);s<56320&&l>56319&&l<57344?(a=String.fromCharCode(s,l),o=1):a="\uFFFD"}else a=String.fromCharCode(s);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+o+1,a=""),o&&(r+=o,o=0)}return t.join("")+e.slice(n)}i(jt,"normalizeUri");function $d(){return{exit:{literalAutolinkEmail:Pz,literalAutolinkHttp:Fz,literalAutolinkWww:Nz}}}i($d,"gfmAutolinkLiteralHtml");function Nz(e){zd.call(this,e,"http://")}i(Nz,"literalAutolinkWww");function Pz(e){zd.call(this,e,"mailto:")}i(Pz,"literalAutolinkEmail");function Fz(e){zd.call(this,e)}i(Fz,"literalAutolinkHttp");function zd(e,t){let r=this.sliceSerialize(e);this.tag('<a href="'+Br((t||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}i(zd,"anchorFromToken");function _n(e,t,r){let n=[],o=-1;for(;++o<e.length;){let s=e[o].resolveAll;s&&!n.includes(s)&&(t=s(t,r),n.push(s))}return t}i(_n,"resolveAll");var Ia={name:"attention",resolveAll:Lz,tokenize:Rz};function Lz(e,t){let r=-1,n,o,s,a,l,u,c,f;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let p={...e[n][1].end},h={...e[r][1].start};VT(p,-u),VT(h,u),a={type:u>1?"strongSequence":"emphasisSequence",start:p,end:{...e[n][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:h},s={type:u>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},o={type:u>1?"strong":"emphasis",start:{...a.start},end:{...l.end}},e[n][1].end={...a.start},e[r][1].start={...l.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Qe(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Qe(c,[["enter",o,t],["enter",a,t],["exit",a,t],["enter",s,t]]),c=Qe(c,_n(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),c=Qe(c,[["exit",s,t],["enter",l,t],["exit",l,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(f=2,c=Qe(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):f=0,je(e,n-1,r-n+3,c),r=n+c.length-f-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}i(Lz,"resolveAllAttention");function Rz(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=Xr(n),s;return a;function a(u){return s=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===s)return e.consume(u),l;let c=e.exit("attentionSequence"),f=Xr(u),p=!f||f===2&&o||r.includes(u),h=!o||o===2&&f||r.includes(n);return c._open=!!(s===42?p:p&&(o||!h)),c._close=!!(s===42?h:h&&(f||!p)),t(u)}}i(Rz,"tokenizeAttention");function VT(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}i(VT,"movePoint");var Hd={name:"autolink",tokenize:Bz};function Bz(e,t,r){let n=0;return o;function o(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(m){return et(m)?(e.consume(m),a):m===64?r(m):c(m)}function a(m){return m===43||m===45||m===46||$e(m)?(n=1,l(m)):c(m)}function l(m){return m===58?(e.consume(m),n=0,u):(m===43||m===45||m===46||$e(m))&&n++<32?(e.consume(m),l):(n=0,c(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Si(m)?r(m):(e.consume(m),u)}function c(m){return m===64?(e.consume(m),f):q1(m)?(e.consume(m),c):r(m)}function f(m){return $e(m)?p(m):r(m)}function p(m){return m===46?(e.consume(m),n=0,f):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):h(m)}function h(m){if((m===45||$e(m))&&n++<63){let d=m===45?h:p;return e.consume(m),d}return r(m)}}i(Bz,"tokenizeAutolink");function ne(e,t,r,n){let o=n?n-1:Number.POSITIVE_INFINITY,s=0;return a;function a(u){return X(u)?(e.enter(r),l(u)):t(u)}function l(u){return X(u)&&s++<o?(e.consume(u),l):(e.exit(r),t(u))}}i(ne,"factorySpace");var zr={partial:!0,tokenize:zz};function zz(e,t,r){return n;function n(s){return X(s)?ne(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||j(s)?t(s):r(s)}}i(zz,"tokenizeBlankLine");var Af={continuation:{tokenize:Hz},exit:Uz,name:"blockQuote",tokenize:$z};function $z(e,t,r){let n=this;return o;function o(a){if(a===62){let l=n.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),s}return r(a)}function s(a){return X(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}i($z,"tokenizeBlockQuoteStart");function Hz(e,t,r){let n=this;return o;function o(a){return X(a)?ne(e,s,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return e.attempt(Af,t,r)(a)}}i(Hz,"tokenizeBlockQuoteContinuation");function Uz(e){e.exit("blockQuote")}i(Uz,"exit");var Mf={name:"characterEscape",tokenize:Wz};function Wz(e,t,r){return n;function n(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return V1(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}i(Wz,"tokenizeCharacterEscape");var _f={name:"characterReference",tokenize:jz};function jz(e,t,r){let n=this,o=0,s,a;return l;function l(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),u}function u(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),s=31,a=$e,f(p))}function c(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,a=Y1,f):(e.enter("characterReferenceValue"),s=7,a=Ta,f(p))}function f(p){if(p===59&&o){let h=e.exit("characterReferenceValue");return a===$e&&!Mn(n.sliceSerialize(h))?r(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(p)&&o++<s?(e.consume(p),f):r(p)}}i(jz,"tokenizeCharacterReference");var QT={partial:!0,tokenize:Yz},Nf={concrete:!0,name:"codeFenced",tokenize:qz};function qz(e,t,r){let n=this,o={partial:!0,tokenize:H},s=0,a=0,l;return u;function u(I){return c(I)}function c(I){let $=n.events[n.events.length-1];return s=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,l=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(I)}function f(I){return I===l?(a++,e.consume(I),f):a<3?r(I):(e.exit("codeFencedFenceSequence"),X(I)?ne(e,p,"whitespace")(I):p(I))}function p(I){return I===null||j(I)?(e.exit("codeFencedFence"),n.interrupt?t(I):e.check(QT,g,q)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(I))}function h(I){return I===null||j(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(I)):X(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ne(e,m,"whitespace")(I)):I===96&&I===l?r(I):(e.consume(I),h)}function m(I){return I===null||j(I)?p(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(I))}function d(I){return I===null||j(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(I)):I===96&&I===l?r(I):(e.consume(I),d)}function g(I){return e.attempt(o,q,x)(I)}function x(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),b}function b(I){return s>0&&X(I)?ne(e,T,"linePrefix",s+1)(I):T(I)}function T(I){return I===null||j(I)?e.check(QT,g,q)(I):(e.enter("codeFlowValue"),D(I))}function D(I){return I===null||j(I)?(e.exit("codeFlowValue"),T(I)):(e.consume(I),D)}function q(I){return e.exit("codeFenced"),t(I)}function H(I,$,Z){let Y=0;return A;function A(L){return I.enter("lineEnding"),I.consume(L),I.exit("lineEnding"),De}function De(L){return I.enter("codeFencedFence"),X(L)?ne(I,W,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):W(L)}function W(L){return L===l?(I.enter("codeFencedFenceSequence"),M(L)):Z(L)}function M(L){return L===l?(Y++,I.consume(L),M):Y>=a?(I.exit("codeFencedFenceSequence"),X(L)?ne(I,N,"whitespace")(L):N(L)):Z(L)}function N(L){return L===null||j(L)?(I.exit("codeFencedFence"),$(L)):Z(L)}}}i(qz,"tokenizeCodeFenced");function Yz(e,t,r){let n=this;return o;function o(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s)}function s(a){return n.parser.lazy[n.now().line]?r(a):t(a)}}i(Yz,"tokenizeNonLazyContinuation");var Oa={name:"codeIndented",tokenize:Qz},Vz={partial:!0,tokenize:Gz};function Qz(e,t,r){let n=this;return o;function o(c){return e.enter("codeIndented"),ne(e,s,"linePrefix",5)(c)}function s(c){let f=n.events[n.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(c):r(c)}function a(c){return c===null?u(c):j(c)?e.attempt(Vz,a,u)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||j(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),l)}function u(c){return e.exit("codeIndented"),t(c)}}i(Qz,"tokenizeCodeIndented");function Gz(e,t,r){let n=this;return o;function o(a){return n.parser.lazy[n.now().line]?r(a):j(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):ne(e,s,"linePrefix",5)(a)}function s(a){let l=n.events[n.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):j(a)?o(a):r(a)}}i(Gz,"tokenizeFurtherStart");var Ud={name:"codeText",previous:Kz,resolve:Jz,tokenize:Xz};function Jz(e){let t=e.length-4,r=3,n,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)o===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(o=n):(n===t||e[n][1].type==="lineEnding")&&(e[o][1].type="codeTextData",n!==o+2&&(e[o][1].end=e[n-1][1].end,e.splice(o+2,n-o-2),t-=n-o-2,n=o+2),o=void 0);return e}i(Jz,"resolveCodeText");function Kz(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}i(Kz,"previous");function Xz(e,t,r){let n=this,o=0,s,a;return l;function l(h){return e.enter("codeText"),e.enter("codeTextSequence"),u(h)}function u(h){return h===96?(e.consume(h),o++,u):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?r(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(a=e.enter("codeTextSequence"),s=0,p(h)):j(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),f(h))}function f(h){return h===null||h===32||h===96||j(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),f)}function p(h){return h===96?(e.consume(h),s++,p):s===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",f(h))}}i(Xz,"tokenizeCodeText");var Ma=class{static{i(this,"SpliceBuffer")}constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){let o=r||0;this.setCursor(Math.trunc(t));let s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return n&&Aa(this.left,n),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Aa(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Aa(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);Aa(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Aa(this.left,r.reverse())}}};function Aa(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}i(Aa,"chunkedPush");function Pf(e){let t={},r=-1,n,o,s,a,l,u,c,f=new Ma(e);for(;++r<f.length;){for(;r in t;)r=t[r];if(n=f.get(r),r&&n[1].type==="chunkFlow"&&f.get(r-1)[1].type==="listItemPrefix"&&(u=n[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Zz(f,r)),r=t[r],c=!0);else if(n[1]._container){for(s=r,o=void 0;s--;)if(a=f.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(o&&(f.get(o)[1].type="lineEndingBlank"),a[1].type="lineEnding",o=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;o&&(n[1].end={...f.get(o)[1].start},l=f.slice(o,r),l.unshift(n),f.splice(o,r-o+1,l))}}return je(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}i(Pf,"subtokenize");function Zz(e,t){let r=e.get(t)[1],n=e.get(t)[2],o=t-1,s=[],a=r._tokenizer;a||(a=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));let l=a.events,u=[],c={},f,p,h=-1,m=r,d=0,g=0,x=[g];for(;m;){for(;e.get(++o)[1]!==m;);s.push(o),m._tokenizer||(f=n.sliceStream(m),m.next||f.push(null),p&&a.defineSkip(m.start),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=m,m=m.next}for(m=r;++h<l.length;)l[h][0]==="exit"&&l[h-1][0]==="enter"&&l[h][1].type===l[h-1][1].type&&l[h][1].start.line!==l[h][1].end.line&&(g=h+1,x.push(g),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(a.events=[],m?(m._tokenizer=void 0,m.previous=void 0):x.pop(),h=x.length;h--;){let b=l.slice(x[h],x[h+1]),T=s.pop();u.push([T,T+b.length-1]),e.splice(T,2,b)}for(u.reverse(),h=-1;++h<u.length;)c[d+u[h][0]]=d+u[h][1],d+=u[h][1]-u[h][0]-1;return c}i(Zz,"subcontent");var Wd={resolve:t$,tokenize:r$},e$={partial:!0,tokenize:n$};function t$(e){return Pf(e),e}i(t$,"resolveContent");function r$(e,t){let r;return n;function n(l){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(l)}function o(l){return l===null?s(l):j(l)?e.check(e$,a,s)(l):(e.consume(l),o)}function s(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function a(l){return e.consume(l),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}i(r$,"tokenizeContent");function n$(e,t,r){let n=this;return o;function o(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ne(e,s,"linePrefix")}function s(a){if(a===null||j(a))return r(a);let l=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):e.interrupt(n.parser.constructs.flow,r,t)(a)}}i(n$,"tokenizeContinuation");function Ff(e,t,r,n,o,s,a,l,u){let c=u||Number.POSITIVE_INFINITY,f=0;return p;function p(b){return b===60?(e.enter(n),e.enter(o),e.enter(s),e.consume(b),e.exit(s),h):b===null||b===32||b===41||Si(b)?r(b):(e.enter(n),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(b))}function h(b){return b===62?(e.enter(s),e.consume(b),e.exit(s),e.exit(o),e.exit(n),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===62?(e.exit("chunkString"),e.exit(l),h(b)):b===null||b===60||j(b)?r(b):(e.consume(b),b===92?d:m)}function d(b){return b===60||b===62||b===92?(e.consume(b),m):m(b)}function g(b){return!f&&(b===null||b===41||de(b))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(n),t(b)):f<c&&b===40?(e.consume(b),f++,g):b===41?(e.consume(b),f--,g):b===null||b===32||b===40||Si(b)?r(b):(e.consume(b),b===92?x:g)}function x(b){return b===40||b===41||b===92?(e.consume(b),g):g(b)}}i(Ff,"factoryDestination");function Lf(e,t,r,n,o,s){let a=this,l=0,u;return c;function c(m){return e.enter(n),e.enter(o),e.consume(m),e.exit(o),e.enter(s),f}function f(m){return l>999||m===null||m===91||m===93&&!u||m===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?r(m):m===93?(e.exit(s),e.enter(o),e.consume(m),e.exit(o),e.exit(n),t):j(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===null||m===91||m===93||j(m)||l++>999?(e.exit("chunkString"),f(m)):(e.consume(m),u||(u=!X(m)),m===92?h:p)}function h(m){return m===91||m===92||m===93?(e.consume(m),l++,p):p(m)}}i(Lf,"factoryLabel");function Rf(e,t,r,n,o,s){let a;return l;function l(h){return h===34||h===39||h===40?(e.enter(n),e.enter(o),e.consume(h),e.exit(o),a=h===40?41:h,u):r(h)}function u(h){return h===a?(e.enter(o),e.consume(h),e.exit(o),e.exit(n),t):(e.enter(s),c(h))}function c(h){return h===a?(e.exit(s),u(a)):h===null?r(h):j(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ne(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===a||h===null||j(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?p:f)}function p(h){return h===a||h===92?(e.consume(h),f):f(h)}}i(Rf,"factoryTitle");function Ai(e,t){let r;return n;function n(o){return j(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n):X(o)?ne(e,n,r?"linePrefix":"lineSuffix")(o):t(o)}}i(Ai,"factoryWhitespace");var jd={name:"definition",tokenize:o$},i$={partial:!0,tokenize:s$};function o$(e,t,r){let n=this,o;return s;function s(m){return e.enter("definition"),a(m)}function a(m){return Lf.call(n,e,l,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function l(m){return o=He(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):r(m)}function u(m){return de(m)?Ai(e,c)(m):c(m)}function c(m){return Ff(e,f,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return e.attempt(i$,p,p)(m)}function p(m){return X(m)?ne(e,h,"whitespace")(m):h(m)}function h(m){return m===null||j(m)?(e.exit("definition"),n.parser.defined.push(o),t(m)):r(m)}}i(o$,"tokenizeDefinition");function s$(e,t,r){return n;function n(l){return de(l)?Ai(e,o)(l):r(l)}function o(l){return Rf(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return X(l)?ne(e,a,"whitespace")(l):a(l)}function a(l){return l===null||j(l)?t(l):r(l)}}i(s$,"tokenizeTitleBefore");var qd={name:"hardBreakEscape",tokenize:a$};function a$(e,t,r){return n;function n(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return j(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}i(a$,"tokenizeHardBreakEscape");var Yd={name:"headingAtx",resolve:l$,tokenize:u$};function l$(e,t){let r=e.length-2,n=3,o,s;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(o={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},s={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},je(e,n,r-n+1,[["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t]])),e}i(l$,"resolveHeadingAtx");function u$(e,t,r){let n=0;return o;function o(f){return e.enter("atxHeading"),s(f)}function s(f){return e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&n++<6?(e.consume(f),a):f===null||de(f)?(e.exit("atxHeadingSequence"),l(f)):r(f)}function l(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||j(f)?(e.exit("atxHeading"),t(f)):X(f)?ne(e,l,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),l(f))}function c(f){return f===null||f===35||de(f)?(e.exit("atxHeadingText"),l(f)):(e.consume(f),c)}}i(u$,"tokenizeHeadingAtx");var GT=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Vd=["pre","script","style","textarea"];var Qd={concrete:!0,name:"htmlFlow",resolveTo:p$,tokenize:h$},c$={partial:!0,tokenize:d$},f$={partial:!0,tokenize:m$};function p$(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}i(p$,"resolveToHtmlFlow");function h$(e,t,r){let n=this,o,s,a,l,u;return c;function c(S){return f(S)}function f(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),p}function p(S){return S===33?(e.consume(S),h):S===47?(e.consume(S),s=!0,g):S===63?(e.consume(S),o=3,n.interrupt?t:w):et(S)?(e.consume(S),a=String.fromCharCode(S),x):r(S)}function h(S){return S===45?(e.consume(S),o=2,m):S===91?(e.consume(S),o=5,l=0,d):et(S)?(e.consume(S),o=4,n.interrupt?t:w):r(S)}function m(S){return S===45?(e.consume(S),n.interrupt?t:w):r(S)}function d(S){let Pe="CDATA[";return S===Pe.charCodeAt(l++)?(e.consume(S),l===Pe.length?n.interrupt?t:W:d):r(S)}function g(S){return et(S)?(e.consume(S),a=String.fromCharCode(S),x):r(S)}function x(S){if(S===null||S===47||S===62||de(S)){let Pe=S===47,We=a.toLowerCase();return!Pe&&!s&&Vd.includes(We)?(o=1,n.interrupt?t(S):W(S)):GT.includes(a.toLowerCase())?(o=6,Pe?(e.consume(S),b):n.interrupt?t(S):W(S)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(S):s?T(S):D(S))}return S===45||$e(S)?(e.consume(S),a+=String.fromCharCode(S),x):r(S)}function b(S){return S===62?(e.consume(S),n.interrupt?t:W):r(S)}function T(S){return X(S)?(e.consume(S),T):A(S)}function D(S){return S===47?(e.consume(S),A):S===58||S===95||et(S)?(e.consume(S),q):X(S)?(e.consume(S),D):A(S)}function q(S){return S===45||S===46||S===58||S===95||$e(S)?(e.consume(S),q):H(S)}function H(S){return S===61?(e.consume(S),I):X(S)?(e.consume(S),H):D(S)}function I(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),u=S,$):X(S)?(e.consume(S),I):Z(S)}function $(S){return S===u?(e.consume(S),u=null,Y):S===null||j(S)?r(S):(e.consume(S),$)}function Z(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||de(S)?H(S):(e.consume(S),Z)}function Y(S){return S===47||S===62||X(S)?D(S):r(S)}function A(S){return S===62?(e.consume(S),De):r(S)}function De(S){return S===null||j(S)?W(S):X(S)?(e.consume(S),De):r(S)}function W(S){return S===45&&o===2?(e.consume(S),B):S===60&&o===1?(e.consume(S),V):S===62&&o===4?(e.consume(S),ge):S===63&&o===3?(e.consume(S),w):S===93&&o===5?(e.consume(S),ue):j(S)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(c$,be,M)(S)):S===null||j(S)?(e.exit("htmlFlowData"),M(S)):(e.consume(S),W)}function M(S){return e.check(f$,N,be)(S)}function N(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),L}function L(S){return S===null||j(S)?M(S):(e.enter("htmlFlowData"),W(S))}function B(S){return S===45?(e.consume(S),w):W(S)}function V(S){return S===47?(e.consume(S),a="",K):W(S)}function K(S){if(S===62){let Pe=a.toLowerCase();return Vd.includes(Pe)?(e.consume(S),ge):W(S)}return et(S)&&a.length<8?(e.consume(S),a+=String.fromCharCode(S),K):W(S)}function ue(S){return S===93?(e.consume(S),w):W(S)}function w(S){return S===62?(e.consume(S),ge):S===45&&o===2?(e.consume(S),w):W(S)}function ge(S){return S===null||j(S)?(e.exit("htmlFlowData"),be(S)):(e.consume(S),ge)}function be(S){return e.exit("htmlFlow"),t(S)}}i(h$,"tokenizeHtmlFlow");function m$(e,t,r){let n=this;return o;function o(a){return j(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),s):r(a)}function s(a){return n.parser.lazy[n.now().line]?r(a):t(a)}}i(m$,"tokenizeNonLazyContinuationStart");function d$(e,t,r){return n;function n(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(zr,t,r)}}i(d$,"tokenizeBlankLineBefore");var Gd={name:"htmlText",tokenize:g$};function g$(e,t,r){let n=this,o,s,a;return l;function l(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),u}function u(w){return w===33?(e.consume(w),c):w===47?(e.consume(w),H):w===63?(e.consume(w),D):et(w)?(e.consume(w),Z):r(w)}function c(w){return w===45?(e.consume(w),f):w===91?(e.consume(w),s=0,d):et(w)?(e.consume(w),T):r(w)}function f(w){return w===45?(e.consume(w),m):r(w)}function p(w){return w===null?r(w):w===45?(e.consume(w),h):j(w)?(a=p,V(w)):(e.consume(w),p)}function h(w){return w===45?(e.consume(w),m):p(w)}function m(w){return w===62?B(w):w===45?h(w):p(w)}function d(w){let ge="CDATA[";return w===ge.charCodeAt(s++)?(e.consume(w),s===ge.length?g:d):r(w)}function g(w){return w===null?r(w):w===93?(e.consume(w),x):j(w)?(a=g,V(w)):(e.consume(w),g)}function x(w){return w===93?(e.consume(w),b):g(w)}function b(w){return w===62?B(w):w===93?(e.consume(w),b):g(w)}function T(w){return w===null||w===62?B(w):j(w)?(a=T,V(w)):(e.consume(w),T)}function D(w){return w===null?r(w):w===63?(e.consume(w),q):j(w)?(a=D,V(w)):(e.consume(w),D)}function q(w){return w===62?B(w):D(w)}function H(w){return et(w)?(e.consume(w),I):r(w)}function I(w){return w===45||$e(w)?(e.consume(w),I):$(w)}function $(w){return j(w)?(a=$,V(w)):X(w)?(e.consume(w),$):B(w)}function Z(w){return w===45||$e(w)?(e.consume(w),Z):w===47||w===62||de(w)?Y(w):r(w)}function Y(w){return w===47?(e.consume(w),B):w===58||w===95||et(w)?(e.consume(w),A):j(w)?(a=Y,V(w)):X(w)?(e.consume(w),Y):B(w)}function A(w){return w===45||w===46||w===58||w===95||$e(w)?(e.consume(w),A):De(w)}function De(w){return w===61?(e.consume(w),W):j(w)?(a=De,V(w)):X(w)?(e.consume(w),De):Y(w)}function W(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(e.consume(w),o=w,M):j(w)?(a=W,V(w)):X(w)?(e.consume(w),W):(e.consume(w),N)}function M(w){return w===o?(e.consume(w),o=void 0,L):w===null?r(w):j(w)?(a=M,V(w)):(e.consume(w),M)}function N(w){return w===null||w===34||w===39||w===60||w===61||w===96?r(w):w===47||w===62||de(w)?Y(w):(e.consume(w),N)}function L(w){return w===47||w===62||de(w)?Y(w):r(w)}function B(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):r(w)}function V(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),K}function K(w){return X(w)?ne(e,ue,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ue(w)}function ue(w){return e.enter("htmlTextData"),a(w)}}i(g$,"tokenizeHtmlText");var Mi={name:"labelEnd",resolveAll:b$,resolveTo:v$,tokenize:k$},x$={tokenize:S$},y$={tokenize:T$},w$={tokenize:E$};function b$(e){let t=-1,r=[];for(;++t<e.length;){let n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let o=n.type==="labelImage"?4:2;n.type="data",t+=o}}return e.length!==r.length&&je(e,0,e.length,r),e}i(b$,"resolveAllLabelEnd");function v$(e,t){let r=e.length,n=0,o,s,a,l;for(;r--;)if(o=e[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(a){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){n=2;break}}else o.type==="labelEnd"&&(a=r);let u={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[s][1].start},end:{...e[a][1].end}},f={type:"labelText",start:{...e[s+n+2][1].end},end:{...e[a-2][1].start}};return l=[["enter",u,t],["enter",c,t]],l=Qe(l,e.slice(s+1,s+n+3)),l=Qe(l,[["enter",f,t]]),l=Qe(l,_n(t.parser.constructs.insideSpan.null,e.slice(s+n+4,a-3),t)),l=Qe(l,[["exit",f,t],e[a-2],e[a-1],["exit",c,t]]),l=Qe(l,e.slice(a+1)),l=Qe(l,[["exit",u,t]]),je(e,s,e.length,l),e}i(v$,"resolveToLabelEnd");function k$(e,t,r){let n=this,o=n.events.length,s,a;for(;o--;)if((n.events[o][1].type==="labelImage"||n.events[o][1].type==="labelLink")&&!n.events[o][1]._balanced){s=n.events[o][1];break}return l;function l(h){return s?s._inactive?p(h):(a=n.parser.defined.includes(He(n.sliceSerialize({start:s.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),u):r(h)}function u(h){return h===40?e.attempt(x$,f,a?f:p)(h):h===91?e.attempt(y$,f,a?c:p)(h):a?f(h):p(h)}function c(h){return e.attempt(w$,f,p)(h)}function f(h){return t(h)}function p(h){return s._balanced=!0,r(h)}}i(k$,"tokenizeLabelEnd");function S$(e,t,r){return n;function n(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),o}function o(p){return de(p)?Ai(e,s)(p):s(p)}function s(p){return p===41?f(p):Ff(e,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return de(p)?Ai(e,u)(p):f(p)}function l(p){return r(p)}function u(p){return p===34||p===39||p===40?Rf(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):f(p)}function c(p){return de(p)?Ai(e,f)(p):f(p)}function f(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):r(p)}}i(S$,"tokenizeResource");function T$(e,t,r){let n=this;return o;function o(l){return Lf.call(n,e,s,a,"reference","referenceMarker","referenceString")(l)}function s(l){return n.parser.defined.includes(He(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(l):r(l)}function a(l){return r(l)}}i(T$,"tokenizeReferenceFull");function E$(e,t,r){return n;function n(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}i(E$,"tokenizeReferenceCollapsed");var Jd={name:"labelStartImage",resolveAll:Mi.resolveAll,tokenize:D$};function D$(e,t,r){let n=this;return o;function o(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),s}function s(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),a):r(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(l):t(l)}}i(D$,"tokenizeLabelStartImage");var Kd={name:"labelStartLink",resolveAll:Mi.resolveAll,tokenize:C$};function C$(e,t,r){let n=this;return o;function o(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):t(a)}}i(C$,"tokenizeLabelStartLink");var _a={name:"lineEnding",tokenize:I$};function I$(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ne(e,t,"linePrefix")}}i(I$,"tokenizeLineEnding");var _i={name:"thematicBreak",tokenize:O$};function O$(e,t,r){let n=0,o;return s;function s(c){return e.enter("thematicBreak"),a(c)}function a(c){return o=c,l(c)}function l(c){return c===o?(e.enter("thematicBreakSequence"),u(c)):n>=3&&(c===null||j(c))?(e.exit("thematicBreak"),t(c)):r(c)}function u(c){return c===o?(e.consume(c),n++,u):(e.exit("thematicBreakSequence"),X(c)?ne(e,l,"whitespace")(c):l(c))}}i(O$,"tokenizeThematicBreak");var yt={continuation:{tokenize:N$},exit:F$,name:"list",tokenize:_$},A$={partial:!0,tokenize:L$},M$={partial:!0,tokenize:P$};function _$(e,t,r){let n=this,o=n.events[n.events.length-1],s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,a=0;return l;function l(m){let d=n.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!n.containerState.marker||m===n.containerState.marker:Ta(m)){if(n.containerState.type||(n.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(_i,r,c)(m):c(m);if(!n.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return r(m)}function u(m){return Ta(m)&&++a<10?(e.consume(m),u):(!n.interrupt||a<2)&&(n.containerState.marker?m===n.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),c(m)):r(m)}function c(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||m,e.check(zr,n.interrupt?r:f,e.attempt(A$,h,p))}function f(m){return n.containerState.initialBlankLine=!0,s++,h(m)}function p(m){return X(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),h):r(m)}function h(m){return n.containerState.size=s+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}i(_$,"tokenizeListStart");function N$(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(zr,o,s);function o(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ne(e,t,"listItemIndent",n.containerState.size+1)(l)}i(o,"onBlank");function s(l){return n.containerState.furtherBlankLines||!X(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(M$,t,a)(l))}i(s,"notBlank");function a(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,ne(e,e.attempt(yt,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}i(a,"notInCurrentItem")}i(N$,"tokenizeListContinuation");function P$(e,t,r){let n=this;return ne(e,o,"listItemIndent",n.containerState.size+1);function o(s){let a=n.events[n.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===n.containerState.size?t(s):r(s)}}i(P$,"tokenizeIndent");function F$(e){e.exit(this.containerState.type)}i(F$,"tokenizeListEnd");function L$(e,t,r){let n=this;return ne(e,o,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){let a=n.events[n.events.length-1];return!X(s)&&a&&a[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}i(L$,"tokenizeListItemPrefixWhitespace");var Bf={name:"setextUnderline",resolveTo:R$,tokenize:B$};function R$(e,t){let r=e.length,n,o,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);let a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",a,t]),e.splice(s+1,0,["exit",e[n][1],t]),e[n][1].end={...e[s][1].end}):e[n][1]=a,e.push(["exit",a,t]),e}i(R$,"resolveToSetextUnderline");function B$(e,t,r){let n=this,o;return s;function s(c){let f=n.events.length,p;for(;f--;)if(n.events[f][1].type!=="lineEnding"&&n.events[f][1].type!=="linePrefix"&&n.events[f][1].type!=="content"){p=n.events[f][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||p)?(e.enter("setextHeadingLine"),o=c,a(c)):r(c)}function a(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===o?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),X(c)?ne(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||j(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}i(B$,"tokenizeSetextUnderline");var z$={tokenize:Y$,partial:!0};function Xd(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:W$,continuation:{tokenize:j$},exit:q$}},text:{91:{name:"gfmFootnoteCall",tokenize:U$},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:$$,resolveTo:H$}}}}i(Xd,"gfmFootnote");function $$(e,t,r){let n=this,o=n.events.length,s=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),a;for(;o--;){let u=n.events[o][1];if(u.type==="labelImage"){a=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!a||!a._balanced)return r(u);let c=He(n.sliceSerialize({start:a.end,end:n.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?r(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}i($$,"tokenizePotentialGfmFootnoteCall");function H$(e,t){let r=e.length,n;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;let a={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",s,t],["exit",s,t],["enter",a,t],["enter",l,t],["exit",l,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...u),e}i(H$,"resolveToPotentialGfmFootnoteCall");function U$(e,t,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s=0,a;return l;function l(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),u}function u(p){return p!==94?r(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(p){if(s>999||p===93&&!a||p===null||p===91||de(p))return r(p);if(p===93){e.exit("chunkString");let h=e.exit("gfmFootnoteCallString");return o.includes(He(n.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(p)}return de(p)||(a=!0),s++,e.consume(p),p===92?f:c}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}}i(U$,"tokenizeGfmFootnoteCall");function W$(e,t,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s,a=0,l;return u;function u(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):r(d)}function f(d){if(a>999||d===93&&!l||d===null||d===91||de(d))return r(d);if(d===93){e.exit("chunkString");let g=e.exit("gfmFootnoteDefinitionLabelString");return s=He(n.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return de(d)||(l=!0),a++,e.consume(d),d===92?p:f}function p(d){return d===91||d===92||d===93?(e.consume(d),a++,f):f(d)}function h(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),o.includes(s)||o.push(s),ne(e,m,"gfmFootnoteDefinitionWhitespace")):r(d)}function m(d){return t(d)}}i(W$,"tokenizeDefinitionStart");function j$(e,t,r){return e.check(zr,t,e.attempt(z$,t,r))}i(j$,"tokenizeDefinitionContinuation");function q$(e){e.exit("gfmFootnoteDefinition")}i(q$,"gfmFootnoteDefinitionEnd");function Y$(e,t,r){let n=this;return ne(e,o,"gfmFootnoteDefinitionIndent",5);function o(s){let a=n.events[n.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(s):r(s)}}i(Y$,"tokenizeIndent");var V$={}.hasOwnProperty,Q$={};function JT(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}i(JT,"defaultBackLabel");function Zd(e){let t=e||Q$,r=t.label||"Footnotes",n=t.labelTagName||"h2",o=t.labelAttributes===null||t.labelAttributes===void 0?'class="sr-only"':t.labelAttributes,s=t.backLabel||JT,a=t.clobberPrefix===null||t.clobberPrefix===void 0?"user-content-":t.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData("tightStack").push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let l=this.getData("gfmFootnoteDefinitions"),u=this.getData("gfmFootnoteDefinitionStack"),c=this.getData("tightStack"),f=u.pop(),p=this.resume();l||this.setData("gfmFootnoteDefinitions",l={}),V$.call(l,f)||(l[f]=p),c.pop(),this.setData("slurpOneLineEnding",!0),this.setData("lastWasTag")},gfmFootnoteDefinitionLabelString(l){let u=this.getData("gfmFootnoteDefinitionStack");u||this.setData("gfmFootnoteDefinitionStack",u=[]),u.push(He(this.sliceSerialize(l))),this.resume(),this.buffer()},gfmFootnoteCallString(l){let u=this.getData("gfmFootnoteCallOrder"),c=this.getData("gfmFootnoteCallCounts"),f=He(this.sliceSerialize(l)),p;this.resume(),u||this.setData("gfmFootnoteCallOrder",u=[]),c||this.setData("gfmFootnoteCallCounts",c={});let h=u.indexOf(f),m=Br(f.toLowerCase());h===-1?(u.push(f),c[f]=1,p=u.length):(c[f]++,p=h+1);let d=c[f];this.tag('<sup><a href="#'+a+"fn-"+m+'" id="'+a+"fnref-"+m+(d>1?"-"+d:"")+'" data-footnote-ref="" aria-describedby="footnote-label">'+String(p)+"</a></sup>")},null(){let l=this.getData("gfmFootnoteCallOrder")||[],u=this.getData("gfmFootnoteCallCounts")||{},c=this.getData("gfmFootnoteDefinitions")||{},f=-1;for(l.length>0&&(this.lineEndingIfNeeded(),this.tag('<section data-footnotes="" class="footnotes"><'+n+' id="footnote-label"'+(o?" "+o:"")+">"),this.raw(this.encode(r)),this.tag("</"+n+">"),this.lineEndingIfNeeded(),this.tag("<ol>"));++f<l.length;){let p=l[f],h=Br(p.toLowerCase()),m=0,d=[];for(;++m<=u[p];)d.push('<a href="#'+a+"fnref-"+h+(m>1?"-"+m:"")+'" data-footnote-backref="" aria-label="'+this.encode(typeof s=="string"?s:s(f,m))+'" class="data-footnote-backref">\u21A9'+(m>1?"<sup>"+m+"</sup>":"")+"</a>");let g=d.join(" "),x=!1;this.lineEndingIfNeeded(),this.tag('<li id="'+a+"fn-"+h+'">'),this.lineEndingIfNeeded(),this.tag(c[p].replace(/<\/p>(?:\r?\n|\r)?$/,function(b){return x=!0," "+g+b})),x||(this.lineEndingIfNeeded(),this.tag(g)),this.lineEndingIfNeeded(),this.tag("</li>")}l.length>0&&(this.lineEndingIfNeeded(),this.tag("</ol>"),this.lineEndingIfNeeded(),this.tag("</section>"))}}}}i(Zd,"gfmFootnoteHtml");function eg(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}i(eg,"gfmStrikethroughHtml");function tg(e){let r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function o(a,l){let u=-1;for(;++u<a.length;)if(a[u][0]==="enter"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._close){let c=u;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[u][1].end.offset-a[u][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[u][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";let f={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[u][1].end)},p={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[u][1].start)},h=[["enter",f,l],["enter",a[c][1],l],["exit",a[c][1],l],["enter",p,l]],m=l.parser.constructs.insideSpan.null;m&&je(h,h.length,0,_n(m,a.slice(c+1,u),l)),je(h,h.length,0,[["exit",p,l],["enter",a[u][1],l],["exit",a[u][1],l],["exit",f,l]]),je(a,c-1,u-c+3,h),u=c+h.length-2;break}}for(u=-1;++u<a.length;)a[u][1].type==="strikethroughSequenceTemporary"&&(a[u][1].type="data");return a}i(o,"resolveAllStrikethrough");function s(a,l,u){let c=this.previous,f=this.events,p=0;return h;function h(d){return c===126&&f[f.length-1][1].type!=="characterEscape"?u(d):(a.enter("strikethroughSequenceTemporary"),m(d))}function m(d){let g=Xr(c);if(d===126)return p>1?u(d):(a.consume(d),p++,m);if(p<2&&!r)return u(d);let x=a.exit("strikethroughSequenceTemporary"),b=Xr(d);return x._open=!b||b===2&&!!g,x._close=!g||g===2&&!!b,l(d)}}i(s,"tokenizeStrikethrough")}i(tg,"gfmStrikethrough");var rg={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function ng(){return{enter:{table(e){let t=e._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",t)},tableBody(){this.tag("<tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=rg[e[t]];r===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+r+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=rg[e[t]];this.lineEndingIfNeeded(),this.tag("<th"+r+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(e){let t=this.sliceSerialize(e);this.getData("tableAlign")&&(t=t.replace(/\\([\\|])/g,G$)),this.raw(this.encode(t))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");t in e?(this.tag("</td>"),this.setData("tableColumn",t+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){let e=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",e+1)},tableRow(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");for(;t<e.length;)this.lineEndingIfNeeded(),this.tag("<td"+rg[e[t]]+"></td>"),t++;this.setData("tableColumn",t),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}i(ng,"gfmTableHtml");function G$(e,t){return t==="|"?t:e}i(G$,"replace");var zf=class{static{i(this,"EditMap")}constructor(){this.map=[]}add(t,r,n){J$(this,t,r,n)}consume(t){if(this.map.sort(function(s,a){return s[0]-a[0]}),this.map.length===0)return;let r=this.map.length,n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let o=n.pop();for(;o;){for(let s of o)t.push(s);o=n.pop()}this.map.length=0}};function J$(e,t,r,n){let o=0;if(!(r===0&&n.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=r,e.map[o][2].push(...n);return}o+=1}e.map.push([t,r,n])}}i(J$,"addImplementation");function KT(e,t){let r=!1,n=[];for(;t<e.length;){let o=e[t];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let s=n.length-1;n[s]=n[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}i(KT,"gfmTableAlign");function ig(){return{flow:{null:{name:"table",tokenize:K$,resolveAll:X$}}}}i(ig,"gfmTable");function K$(e,t,r){let n=this,o=0,s=0,a;return l;function l(A){let De=n.events.length-1;for(;De>-1;){let N=n.events[De][1].type;if(N==="lineEnding"||N==="linePrefix")De--;else break}let W=De>-1?n.events[De][1].type:null,M=W==="tableHead"||W==="tableRow"?I:u;return M===I&&n.parser.lazy[n.now().line]?r(A):M(A)}function u(A){return e.enter("tableHead"),e.enter("tableRow"),c(A)}function c(A){return A===124||(a=!0,s+=1),f(A)}function f(A){return A===null?r(A):j(A)?s>1?(s=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),m):r(A):X(A)?ne(e,f,"whitespace")(A):(s+=1,a&&(a=!1,o+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),a=!0,f):(e.enter("data"),p(A)))}function p(A){return A===null||A===124||de(A)?(e.exit("data"),f(A)):(e.consume(A),A===92?h:p)}function h(A){return A===92||A===124?(e.consume(A),p):p(A)}function m(A){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(A):(e.enter("tableDelimiterRow"),a=!1,X(A)?ne(e,d,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):d(A))}function d(A){return A===45||A===58?x(A):A===124?(a=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),g):H(A)}function g(A){return X(A)?ne(e,x,"whitespace")(A):x(A)}function x(A){return A===58?(s+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),b):A===45?(s+=1,b(A)):A===null||j(A)?q(A):H(A)}function b(A){return A===45?(e.enter("tableDelimiterFiller"),T(A)):H(A)}function T(A){return A===45?(e.consume(A),T):A===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),D):(e.exit("tableDelimiterFiller"),D(A))}function D(A){return X(A)?ne(e,q,"whitespace")(A):q(A)}function q(A){return A===124?d(A):A===null||j(A)?!a||o!==s?H(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):H(A)}function H(A){return r(A)}function I(A){return e.enter("tableRow"),$(A)}function $(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),$):A===null||j(A)?(e.exit("tableRow"),t(A)):X(A)?ne(e,$,"whitespace")(A):(e.enter("data"),Z(A))}function Z(A){return A===null||A===124||de(A)?(e.exit("data"),$(A)):(e.consume(A),A===92?Y:Z)}function Y(A){return A===92||A===124?(e.consume(A),Z):Z(A)}}i(K$,"tokenizeTable");function X$(e,t){let r=-1,n=!0,o=0,s=[0,0,0,0],a=[0,0,0,0],l=!1,u=0,c,f,p,h=new zf;for(;++r<e.length;){let m=e[r],d=m[1];m[0]==="enter"?d.type==="tableHead"?(l=!1,u!==0&&(XT(h,t,u,c,f),f=void 0,u=0),c={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(r,0,[["enter",c,t]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(n=!0,p=void 0,s=[0,0,0,0],a=[0,r+1,0,0],l&&(l=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},h.add(r,0,[["enter",f,t]])),o=d.type==="tableDelimiterRow"?2:f?3:1):o&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(n=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],p=$f(h,t,s,o,void 0,p),s=[0,0,0,0]),a[2]=r)):d.type==="tableCellDivider"&&(n?n=!1:(s[1]!==0&&(a[0]=a[1],p=$f(h,t,s,o,void 0,p)),s=a,a=[s[1],r,0,0])):d.type==="tableHead"?(l=!0,u=r):d.type==="tableRow"||d.type==="tableDelimiterRow"?(u=r,s[1]!==0?(a[0]=a[1],p=$f(h,t,s,o,r,p)):a[1]!==0&&(p=$f(h,t,a,o,r,p)),o=0):o&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(a[3]=r)}for(u!==0&&XT(h,t,u,c,f),h.consume(t.events),r=-1;++r<t.events.length;){let m=t.events[r];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=KT(t.events,r))}return e}i(X$,"resolveTable");function $f(e,t,r,n,o,s){let a=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";r[0]!==0&&(s.end=Object.assign({},as(t.events,r[0])),e.add(r[0],0,[["exit",s,t]]));let u=as(t.events,r[1]);if(s={type:a,start:Object.assign({},u),end:Object.assign({},u)},e.add(r[1],0,[["enter",s,t]]),r[2]!==0){let c=as(t.events,r[2]),f=as(t.events,r[3]),p={type:l,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(r[2],0,[["enter",p,t]]),n!==2){let h=t.events[r[2]],m=t.events[r[3]];if(h[1].end=Object.assign({},m[1].end),h[1].type="chunkText",h[1].contentType="text",r[3]>r[2]+1){let d=r[2]+1,g=r[3]-r[2]-1;e.add(d,g,[])}}e.add(r[3]+1,0,[["exit",p,t]])}return o!==void 0&&(s.end=Object.assign({},as(t.events,o)),e.add(o,0,[["exit",s,t]]),s=void 0),s}i($f,"flushCell");function XT(e,t,r,n,o){let s=[],a=as(t.events,r);o&&(o.end=Object.assign({},a),s.push(["exit",o,t])),n.end=Object.assign({},a),s.push(["exit",n,t]),e.add(r+1,0,s)}i(XT,"flushTableEnd");function as(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}i(as,"getPoint");var ZT=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,Z$=new RegExp("^"+ZT.source,"i");function og(){return{exit:{htmlFlowData(e){eE.call(this,e,ZT)},htmlTextData(e){eE.call(this,e,Z$)}}}}i(og,"gfmTagfilterHtml");function eE(e,t){let r=this.sliceSerialize(e);this.options.allowDangerousHtml&&(r=r.replace(t,"&lt;$1$2")),this.raw(this.encode(r))}i(eE,"exitHtmlData");function sg(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}i(sg,"gfmTaskListItemHtml");var eH={name:"tasklistCheck",tokenize:tH};function ag(){return{text:{91:eH}}}i(ag,"gfmTaskListItem");function tH(e,t,r){let n=this;return o;function o(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),s)}function s(u){return de(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),a):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),a):r(u)}function a(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):r(u)}function l(u){return j(u)?t(u):X(u)?e.check({tokenize:rH},t,r)(u):r(u)}}i(tH,"tokenizeTasklistCheck");function rH(e,t,r){return ne(e,n,"whitespace");function n(o){return o===null?r(o):t(o)}}i(rH,"spaceThenNonSpace");function tE(e){return Cf([Bd(),Xd(),tg(e),ig(),ag()])}i(tE,"gfm");function nUe(e){return If([$d(),Zd(e),eg(),ng(),og(),sg()])}i(nUe,"gfmHtml");var nH={};function ls(e){let t=this,r=e||nH,n=t.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(tE(r)),s.push(Nd()),a.push(Pd(r))}i(ls,"remarkGfm");var rE={}.hasOwnProperty,nE=/^(https?|ircs?|mailto|xmpp)$/i,iH=/^https?$/i;function lg(e){let t=e||{},r=!0,n={},o=[[]],s=[],a=[],u=If([{enter:{blockQuote:L,codeFenced:ue,codeFencedFenceInfo:x,codeFencedFenceMeta:x,codeIndented:be,codeText:vt,content:hr,definition:Ae,definitionDestinationString:Dt,definitionLabelString:x,definitionTitleString:x,emphasis:Wn,htmlFlow:Bt,htmlText:Yt,image:Pe,label:x,link:We,listItemMarker:De,listItemValue:A,listOrdered:Z,listUnordered:Y,paragraph:V,reference:x,resource:C,resourceDestinationString:O,resourceTitleString:x,setextHeading:qt,strong:jn},exit:{atxHeading:Re,atxHeadingSequence:Rt,autolinkEmail:qC,autolinkProtocol:jC,blockQuote:B,characterEscapeValue:z,characterReferenceMarkerHexadecimal:qx,characterReferenceMarkerNumeric:qx,characterReferenceValue:WC,codeFenced:S,codeFencedFence:ge,codeFencedFenceInfo:w,codeFencedFenceMeta:$,codeFlowValue:ce,codeIndented:S,codeText:nn,codeTextData:z,data:z,definition:er,definitionDestinationString:rt,definitionLabelString:ve,definitionTitleString:bt,emphasis:tr,hardBreakEscape:ke,hardBreakTrailing:ke,htmlFlow:dr,htmlFlowData:z,htmlText:dr,htmlTextData:z,image:_e,label:E,labelText:Lt,lineEnding:ie,link:_e,listOrdered:W,listUnordered:M,paragraph:K,reference:$,referenceString:k,resource:$,resourceDestinationString:F,resourceTitleString:te,setextHeading:_,setextHeadingLineSequence:mr,setextHeadingText:Ct,strong:HC,thematicBreak:UC}},...t.htmlExtensions||[]]),c={definitions:n,tightStack:a},f={buffer:x,encode:I,getData:g,lineEndingIfNeeded:H,options:t,raw:D,resume:b,setData:d,tag:T},p=t.defaultLineEnding;return h;function h(U){let re=-1,ct=0,rr=[],gr=[],Wr=[];for(;++re<U.length;)!p&&(U[re][1].type==="lineEnding"||U[re][1].type==="lineEndingBlank")&&(p=U[re][2].sliceSerialize(U[re][1])),(U[re][1].type==="listOrdered"||U[re][1].type==="listUnordered")&&(U[re][0]==="enter"?rr.push(re):m(U.slice(rr.pop(),re))),U[re][1].type==="definition"&&(U[re][0]==="enter"?(Wr=Qe(Wr,U.slice(ct,re)),ct=re):(gr=Qe(gr,U.slice(ct,re+1)),ct=re+1));gr=Qe(gr,Wr),gr=Qe(gr,U.slice(ct)),re=-1;let xr=gr;for(u.enter.null&&u.enter.null.call(f);++re<U.length;){let Yx=u[xr[re][0]],Vx=xr[re][1].type,Qx=Yx[Vx];rE.call(Yx,Vx)&&Qx&&Qx.call({sliceSerialize:xr[re][2].sliceSerialize,...f},xr[re][1])}return u.exit.null&&u.exit.null.call(f),o[0].join("")}function m(U){let re=U.length,ct=0,rr=0,gr=!1,Wr;for(;++ct<re;){let xr=U[ct];if(xr[1]._container)Wr=void 0,xr[0]==="enter"?rr++:rr--;else switch(xr[1].type){case"listItemPrefix":{xr[0]==="exit"&&(Wr=!0);break}case"linePrefix":break;case"lineEndingBlank":{xr[0]==="enter"&&!rr&&(Wr?Wr=void 0:gr=!0);break}default:Wr=void 0}}U[0][1]._loose=gr}function d(U,re){c[U]=re}function g(U){return c[U]}function x(){o.push([])}function b(){return o.pop().join("")}function T(U){r&&(d("lastWasTag",!0),o[o.length-1].push(U))}function D(U){d("lastWasTag"),o[o.length-1].push(U)}function q(){D(p||`
76
+ `)}function H(){let U=o[o.length-1],re=U[U.length-1],ct=re?re.charCodeAt(re.length-1):null;ct===10||ct===13||ct===null||q()}function I(U){return g("ignoreEncode")?U:Of(U)}function $(){b()}function Z(U){a.push(!U._loose),H(),T("<ol"),d("expectFirstItem",!0)}function Y(U){a.push(!U._loose),H(),T("<ul"),d("expectFirstItem",!0)}function A(U){if(g("expectFirstItem")){let re=Number.parseInt(this.sliceSerialize(U),10);re!==1&&T(' start="'+I(String(re))+'"')}}function De(){g("expectFirstItem")?T(">"):N(),H(),T("<li>"),d("expectFirstItem"),d("lastWasTag")}function W(){N(),a.pop(),q(),T("</ol>")}function M(){N(),a.pop(),q(),T("</ul>")}function N(){g("lastWasTag")&&!g("slurpAllLineEndings")&&H(),T("</li>"),d("slurpAllLineEndings")}function L(){a.push(!1),H(),T("<blockquote>")}function B(){a.pop(),H(),T("</blockquote>"),d("slurpAllLineEndings")}function V(){a[a.length-1]||(H(),T("<p>")),d("slurpAllLineEndings")}function K(){a[a.length-1]?d("slurpAllLineEndings",!0):T("</p>")}function ue(){H(),T("<pre><code"),d("fencesCount",0)}function w(){let U=b();T(' class="language-'+U+'"')}function ge(){let U=g("fencesCount")||0;U||(T(">"),d("slurpOneLineEnding",!0)),d("fencesCount",U+1)}function be(){H(),T("<pre><code>")}function S(){let U=g("fencesCount");U!==void 0&&U<2&&c.tightStack.length>0&&!g("lastWasTag")&&q(),g("flowCodeSeenData")&&H(),T("</code></pre>"),U!==void 0&&U<2&&H(),d("flowCodeSeenData"),d("fencesCount"),d("slurpOneLineEnding")}function Pe(){s.push({image:!0}),r=void 0}function We(){s.push({})}function Lt(U){s[s.length-1].labelId=this.sliceSerialize(U)}function E(){s[s.length-1].label=b()}function k(U){s[s.length-1].referenceId=this.sliceSerialize(U)}function C(){x(),s[s.length-1].destination=""}function O(){x(),d("ignoreEncode",!0)}function F(){s[s.length-1].destination=b(),d("ignoreEncode")}function te(){s[s.length-1].title=b()}function _e(){let U=s.length-1,re=s[U],ct=re.referenceId||re.labelId,rr=re.destination===void 0?n[He(ct)]:re;for(r=!0;U--;)if(s[U].image){r=void 0;break}re.image?(T('<img src="'+Br(rr.destination,t.allowDangerousProtocol?void 0:iH)+'" alt="'),D(re.label),T('"')):T('<a href="'+Br(rr.destination,t.allowDangerousProtocol?void 0:nE)+'"'),T(rr.title?' title="'+rr.title+'"':""),re.image?T(" />"):(T(">"),D(re.label),T("</a>")),s.pop()}function Ae(){x(),s.push({})}function ve(U){b(),s[s.length-1].labelId=this.sliceSerialize(U)}function Dt(){x(),d("ignoreEncode",!0)}function rt(){s[s.length-1].destination=b(),d("ignoreEncode")}function bt(){s[s.length-1].title=b()}function er(){let U=s[s.length-1],re=He(U.labelId);b(),rE.call(n,re)||(n[re]=s[s.length-1]),s.pop()}function hr(){d("slurpAllLineEndings",!0)}function Rt(U){g("headingRank")||(d("headingRank",this.sliceSerialize(U).length),H(),T("<h"+g("headingRank")+">"))}function qt(){x(),d("slurpAllLineEndings")}function Ct(){d("slurpAllLineEndings",!0)}function Re(){T("</h"+g("headingRank")+">"),d("headingRank")}function mr(U){d("headingRank",this.sliceSerialize(U).charCodeAt(0)===61?1:2)}function _(){let U=b();H(),T("<h"+g("headingRank")+">"),D(U),T("</h"+g("headingRank")+">"),d("slurpAllLineEndings"),d("headingRank")}function z(U){D(I(this.sliceSerialize(U)))}function ie(U){if(!g("slurpAllLineEndings")){if(g("slurpOneLineEnding")){d("slurpOneLineEnding");return}if(g("inCodeText")){D(" ");return}D(I(this.sliceSerialize(U)))}}function ce(U){D(I(this.sliceSerialize(U))),d("flowCodeSeenData",!0)}function ke(){T("<br />")}function Bt(){H(),Yt()}function dr(){d("ignoreEncode")}function Yt(){t.allowDangerousHtml&&d("ignoreEncode",!0)}function Wn(){T("<em>")}function jn(){T("<strong>")}function vt(){d("inCodeText",!0),T("<code>")}function nn(){d("inCodeText"),T("</code>")}function tr(){T("</em>")}function HC(){T("</strong>")}function UC(){H(),T("<hr />")}function qx(U){d("characterReferenceType",U.type)}function WC(U){let re=this.sliceSerialize(U),ct=g("characterReferenceType")?ss(re,g("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):Mn(re);D(I(ct)),d("characterReferenceType")}function jC(U){let re=this.sliceSerialize(U);T('<a href="'+Br(re,t.allowDangerousProtocol?void 0:nE)+'">'),D(I(re)),T("</a>")}function qC(U){let re=this.sliceSerialize(U);T('<a href="'+Br("mailto:"+re)+'">'),D(I(re)),T("</a>")}}i(lg,"compile");var iE={tokenize:oH};function oH(e){let t=e.attempt(this.parser.constructs.contentInitial,n,o),r;return t;function n(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ne(e,t,"linePrefix")}function o(l){return e.enter("paragraph"),s(l)}function s(l){let u=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,a(l)}function a(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return j(l)?(e.consume(l),e.exit("chunkText"),s):(e.consume(l),a)}}i(oH,"initializeContent");var sE={tokenize:sH},oE={tokenize:aH};function sH(e){let t=this,r=[],n=0,o,s,a;return l;function l(D){if(n<r.length){let q=r[n];return t.containerState=q[1],e.attempt(q[0].continuation,u,c)(D)}return c(D)}function u(D){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&T();let q=t.events.length,H=q,I;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){I=t.events[H][1].end;break}b(n);let $=q;for(;$<t.events.length;)t.events[$][1].end={...I},$++;return je(t.events,H+1,0,t.events.slice(q)),t.events.length=$,c(D)}return l(D)}function c(D){if(n===r.length){if(!o)return h(D);if(o.currentConstruct&&o.currentConstruct.concrete)return d(D);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(oE,f,p)(D)}function f(D){return o&&T(),b(n),h(D)}function p(D){return t.parser.lazy[t.now().line]=n!==r.length,a=t.now().offset,d(D)}function h(D){return t.containerState={},e.attempt(oE,m,d)(D)}function m(D){return n++,r.push([t.currentConstruct,t.containerState]),h(D)}function d(D){if(D===null){o&&T(),b(0),e.consume(D);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),g(D)}function g(D){if(D===null){x(e.exit("chunkFlow"),!0),b(0),e.consume(D);return}return j(D)?(e.consume(D),x(e.exit("chunkFlow")),n=0,t.interrupt=void 0,l):(e.consume(D),g)}function x(D,q){let H=t.sliceStream(D);if(q&&H.push(null),D.previous=s,s&&(s.next=D),s=D,o.defineSkip(D.start),o.write(H),t.parser.lazy[D.start.line]){let I=o.events.length;for(;I--;)if(o.events[I][1].start.offset<a&&(!o.events[I][1].end||o.events[I][1].end.offset>a))return;let $=t.events.length,Z=$,Y,A;for(;Z--;)if(t.events[Z][0]==="exit"&&t.events[Z][1].type==="chunkFlow"){if(Y){A=t.events[Z][1].end;break}Y=!0}for(b(n),I=$;I<t.events.length;)t.events[I][1].end={...A},I++;je(t.events,Z+1,0,t.events.slice($)),t.events.length=I}}function b(D){let q=r.length;for(;q-- >D;){let H=r[q];t.containerState=H[1],H[0].exit.call(t,e)}r.length=D}function T(){o.write([null]),s=void 0,o=void 0,t.containerState._closeFlow=void 0}}i(sH,"initializeDocument");function aH(e,t,r){return ne(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}i(aH,"tokenizeContainer");var aE={tokenize:lH};function lH(e){let t=this,r=e.attempt(zr,n,e.attempt(this.parser.constructs.flowInitial,o,ne(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Wd,o)),"linePrefix")));return r;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}i(lH,"initializeFlow");var cE={resolveAll:uE()},fE=lE("string"),pE=lE("text");function lE(e){return{resolveAll:uE(e==="text"?uH:void 0),tokenize:t};function t(r){let n=this,o=this.parser.constructs[e],s=r.attempt(o,a,l);return a;function a(f){return c(f)?s(f):l(f)}function l(f){if(f===null){r.consume(f);return}return r.enter("data"),r.consume(f),u}function u(f){return c(f)?(r.exit("data"),s(f)):(r.consume(f),u)}function c(f){if(f===null)return!0;let p=o[f],h=-1;if(p)for(;++h<p.length;){let m=p[h];if(!m.previous||m.previous.call(n,n.previous))return!0}return!1}}}i(lE,"initializeFactory");function uE(e){return t;function t(r,n){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(r,n):r}}i(uE,"createResolver");function uH(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let n=e[r-1][1],o=t.sliceStream(n),s=o.length,a=-1,l=0,u;for(;s--;){let c=o[s];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(c===-2)u=!0,l++;else if(c!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(l=0),l){let c={type:r===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:n.start._bufferIndex+a,_index:n.start._index+s,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}i(uH,"resolveAllLineSuffixes");var ug={};se(ug,{attentionMarkers:()=>xH,contentInitial:()=>fH,disable:()=>yH,document:()=>cH,flow:()=>hH,flowInitial:()=>pH,insideSpan:()=>gH,string:()=>mH,text:()=>dH});var cH={42:yt,43:yt,45:yt,48:yt,49:yt,50:yt,51:yt,52:yt,53:yt,54:yt,55:yt,56:yt,57:yt,62:Af},fH={91:jd},pH={[-2]:Oa,[-1]:Oa,32:Oa},hH={35:Yd,42:_i,45:[Bf,_i],60:Qd,61:Bf,95:_i,96:Nf,126:Nf},mH={38:_f,92:Mf},dH={[-5]:_a,[-4]:_a,[-3]:_a,33:Jd,38:_f,42:Ia,60:[Hd,Gd],91:Kd,92:[qd,Mf],93:Mi,95:Ia,96:Ud},gH={null:[Ia,cE]},xH={null:[42,95]},yH={null:[]};function hE(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},o={},s=[],a=[],l=[],u=!0,c={attempt:Y($),check:Y(Z),consume:q,enter:H,exit:I,interrupt:Y(Z,{interrupt:!0})},f={code:null,containerState:{},defineSkip:b,events:[],now:x,parser:e,previous:null,sliceSerialize:d,sliceStream:g,write:m},p=t.tokenize.call(f,c),h;return t.resolveAll&&s.push(t),f;function m(M){return a=Qe(a,M),T(),a[a.length-1]!==null?[]:(A(t,0),f.events=_n(s,f.events,f),f.events)}i(m,"write");function d(M,N){return bH(g(M),N)}i(d,"sliceSerialize");function g(M){return wH(a,M)}i(g,"sliceStream");function x(){let{_bufferIndex:M,_index:N,line:L,column:B,offset:V}=n;return{_bufferIndex:M,_index:N,line:L,column:B,offset:V}}i(x,"now");function b(M){o[M.line]=M.column,W()}i(b,"defineSkip");function T(){let M;for(;n._index<a.length;){let N=a[n._index];if(typeof N=="string")for(M=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===M&&n._bufferIndex<N.length;)D(N.charCodeAt(n._bufferIndex));else D(N)}}i(T,"main");function D(M){u=void 0,h=M,p=p(M)}i(D,"go");function q(M){j(M)?(n.line++,n.column=1,n.offset+=M===-3?2:1,W()):M!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++)),f.previous=M,u=!0}i(q,"consume");function H(M,N){let L=N||{};return L.type=M,L.start=x(),f.events.push(["enter",L,f]),l.push(L),L}i(H,"enter");function I(M){let N=l.pop();return N.end=x(),f.events.push(["exit",N,f]),N}i(I,"exit");function $(M,N){A(M,N.from)}i($,"onsuccessfulconstruct");function Z(M,N){N.restore()}i(Z,"onsuccessfulcheck");function Y(M,N){return L;function L(B,V,K){let ue,w,ge,be;return Array.isArray(B)?Pe(B):"tokenize"in B?Pe([B]):S(B);function S(k){return C;function C(O){let F=O!==null&&k[O],te=O!==null&&k.null,_e=[...Array.isArray(F)?F:F?[F]:[],...Array.isArray(te)?te:te?[te]:[]];return Pe(_e)(O)}}function Pe(k){return ue=k,w=0,k.length===0?K:We(k[w])}function We(k){return C;function C(O){return be=De(),ge=k,k.partial||(f.currentConstruct=k),k.name&&f.parser.constructs.disable.null.includes(k.name)?E(O):k.tokenize.call(N?Object.assign(Object.create(f),N):f,c,Lt,E)(O)}}function Lt(k){return u=!0,M(ge,be),V}function E(k){return u=!0,be.restore(),++w<ue.length?We(ue[w]):K}}}i(Y,"constructFactory");function A(M,N){M.resolveAll&&!s.includes(M)&&s.push(M),M.resolve&&je(f.events,N,f.events.length-N,M.resolve(f.events.slice(N),f)),M.resolveTo&&(f.events=M.resolveTo(f.events,f))}i(A,"addResult");function De(){let M=x(),N=f.previous,L=f.currentConstruct,B=f.events.length,V=Array.from(l);return{from:B,restore:K};function K(){n=M,f.previous=N,f.currentConstruct=L,f.events.length=B,l=V,W()}}i(De,"store");function W(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}i(W,"accountForPotentialSkip")}i(hE,"createTokenizer");function wH(e,t){let r=t.start._index,n=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex,a;if(r===o)a=[e[r].slice(n,s)];else{if(a=e.slice(r,o),n>-1){let l=a[0];typeof l=="string"?a[0]=l.slice(n):a.shift()}s>0&&a.push(e[o].slice(0,s))}return a}i(wH,"sliceChunks");function bH(e,t){let r=-1,n=[],o;for(;++r<e.length;){let s=e[r],a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=`
77
77
  `;break}case-3:{a=`\r
78
- `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&o)continue;a=" ";break}default:a=String.fromCharCode(s)}o=s===-2,n.push(a)}return n.join("")}i(kH,"serializeChunks");function _a(e){let n={constructs:Df([ug,...(e||{}).extensions||[]]),content:o(sE),defined:[],document:o(lE),flow:o(uE),lazy:{},string:o(hE),text:o(mE)};return n;function o(s){return a;function a(l){return dE(n,s,l)}}}i(_a,"parse");function Pa(e){for(;!Pf(e););return e}i(Pa,"postprocess");var gE=/[\0\t\n\r]/g;function Na(){let e=1,t="",r=!0,n;return o;function o(s,a,l){let u=[],c,f,p,h,m;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),p=0,t="",r&&(s.charCodeAt(0)===65279&&p++,r=void 0);p<s.length;){if(gE.lastIndex=p,c=gE.exec(s),h=c&&c.index!==void 0?c.index:s.length,m=s.charCodeAt(h),!c){t=s.slice(p);break}if(m===10&&p===h&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),p<h&&(u.push(s.slice(p,h)),e+=h-p),m){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:n=!0,e=1}p=h+1}return l&&(n&&u.push(-5),t&&u.push(t),u.push(null)),u}}i(Na,"preprocess");function uUe(e,t,r){return typeof t!="string"&&(r=t,t=void 0),lg(r)(Pa(_a(r).document().write(Na()(e,t,!0))))}i(uUe,"micromark");var xE={}.hasOwnProperty;function cg(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),SH(r)(Pa(_a(r).document().write(Na()(e,t,!0))))}i(cg,"fromMarkdown");function SH(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(er),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:s(ve),blockQuote:s(I),characterEscape:Y,characterReference:Y,codeFenced:s(F),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(F,a),codeText:s(te,a),codeTextData:Y,data:Y,codeFlowValue:Y,definition:s(_e),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(Ae),hardBreakEscape:s(Ot),hardBreakTrailing:s(Ot),htmlFlow:s(rt,a),htmlFlowData:Y,htmlText:s(rt,a),htmlTextData:Y,image:s(vt),label:a,link:s(er),listItem:s(Rt),listItemValue:h,listOrdered:s(hr,p),listUnordered:s(hr),paragraph:s(qt),reference:S,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(ve),strong:s(It),thematicBreak:s(mr)},exit:{atxHeading:u(),atxHeadingSequence:H,autolink:u(),autolinkEmail:C,autolinkProtocol:k,blockQuote:u(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:Ue,characterReferenceMarkerNumeric:Ue,characterReferenceValue:Lt,characterReference:E,codeFenced:u(x),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:d,codeFlowValue:A,codeIndented:u(b),codeText:u(L),codeTextData:A,data:A,definition:u(),definitionDestinationString:q,definitionLabelString:T,definitionTitleString:D,emphasis:u(),hardBreakEscape:u(U),hardBreakTrailing:u(U),htmlFlow:u(M),htmlFlowData:A,htmlText:u(P),htmlTextData:A,image:u(V),label:ue,labelText:X,lineEnding:De,link:u(B),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Ne,resourceDestinationString:w,resourceTitleString:ge,resource:be,setextHeading:u(K),setextHeadingLineSequence:$,setextHeadingText:O,strong:u(),thematicBreak:u()}};yE(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(_){let z={type:"root",children:[]},ie={stack:[z],tokenStack:[],config:t,enter:l,exit:c,buffer:a,resume:f,data:r},ce=[],ke=-1;for(;++ke<_.length;)if(_[ke][1].type==="listOrdered"||_[ke][1].type==="listUnordered")if(_[ke][0]==="enter")ce.push(ke);else{let Bt=ce.pop();ke=o(_,Bt,ke)}for(ke=-1;++ke<_.length;){let Bt=t[_[ke][0]];xE.call(Bt,_[ke][1].type)&&Bt[_[ke][1].type].call(Object.assign({sliceSerialize:_[ke][2].sliceSerialize},ie),_[ke][1])}if(ie.tokenStack.length>0){let Bt=ie.tokenStack[ie.tokenStack.length-1];(Bt[1]||wE).call(ie,void 0,Bt[0])}for(z.position={start:Pn(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:Pn(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},ke=-1;++ke<t.transforms.length;)z=t.transforms[ke](z)||z;return z}function o(_,z,ie){let ce=z-1,ke=-1,Bt=!1,dr,Yt,Yn,Vn;for(;++ce<=ie;){let kt=_[ce];switch(kt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{kt[0]==="enter"?ke++:ke--,Vn=void 0;break}case"lineEndingBlank":{kt[0]==="enter"&&(dr&&!Vn&&!ke&&!Yn&&(Yn=ce),Vn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Vn=void 0}if(!ke&&kt[0]==="enter"&&kt[1].type==="listItemPrefix"||ke===-1&&kt[0]==="exit"&&(kt[1].type==="listUnordered"||kt[1].type==="listOrdered")){if(dr){let nn=ce;for(Yt=void 0;nn--;){let tr=_[nn];if(tr[1].type==="lineEnding"||tr[1].type==="lineEndingBlank"){if(tr[0]==="exit")continue;Yt&&(_[Yt][1].type="lineEndingBlank",Bt=!0),tr[1].type="lineEnding",Yt=nn}else if(!(tr[1].type==="linePrefix"||tr[1].type==="blockQuotePrefix"||tr[1].type==="blockQuotePrefixWhitespace"||tr[1].type==="blockQuoteMarker"||tr[1].type==="listItemIndent"))break}Yn&&(!Yt||Yn<Yt)&&(dr._spread=!0),dr.end=Object.assign({},Yt?_[Yt][1].start:kt[1].end),_.splice(Yt||ce,0,["exit",dr,kt[2]]),ce++,ie++}if(kt[1].type==="listItemPrefix"){let nn={type:"listItem",_spread:!1,start:Object.assign({},kt[1].start),end:void 0};dr=nn,_.splice(ce,0,["enter",nn,kt[2]]),ce++,ie++,Yn=void 0,Vn=!0}}}return _[z][1]._spread=Bt,ie}function s(_,z){return ie;function ie(ce){l.call(this,_(ce),ce),z&&z.call(this,ce)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(_,z,ie){this.stack[this.stack.length-1].children.push(_),this.stack.push(_),this.tokenStack.push([z,ie||void 0]),_.position={start:Pn(z.start),end:void 0}}function u(_){return z;function z(ie){_&&_.call(this,ie),c.call(this,ie)}}function c(_,z){let ie=this.stack.pop(),ce=this.tokenStack.pop();if(ce)ce[0].type!==_.type&&(z?z.call(this,_,ce[0]):(ce[1]||wE).call(this,_,ce[0]));else throw new Error("Cannot close `"+_.type+"` ("+In({start:_.start,end:_.end})+"): it\u2019s not open");ie.position.end=Pn(_.end)}function f(){return Ii(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(_){if(this.data.expectingFirstListItemValue){let z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(_),10),this.data.expectingFirstListItemValue=void 0}}function m(){let _=this.resume(),z=this.stack[this.stack.length-1];z.lang=_}function d(){let _=this.resume(),z=this.stack[this.stack.length-1];z.meta=_}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){let _=this.resume(),z=this.stack[this.stack.length-1];z.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){let _=this.resume(),z=this.stack[this.stack.length-1];z.value=_.replace(/(\r?\n|\r)$/g,"")}function T(_){let z=this.resume(),ie=this.stack[this.stack.length-1];ie.label=z,ie.identifier=He(this.sliceSerialize(_)).toLowerCase()}function D(){let _=this.resume(),z=this.stack[this.stack.length-1];z.title=_}function q(){let _=this.resume(),z=this.stack[this.stack.length-1];z.url=_}function H(_){let z=this.stack[this.stack.length-1];if(!z.depth){let ie=this.sliceSerialize(_).length;z.depth=ie}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function $(_){let z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(_).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(_){let ie=this.stack[this.stack.length-1].children,ce=ie[ie.length-1];(!ce||ce.type!=="text")&&(ce=Re(),ce.position={start:Pn(_.start),end:void 0},ie.push(ce)),this.stack.push(ce)}function A(_){let z=this.stack.pop();z.value+=this.sliceSerialize(_),z.position.end=Pn(_.end)}function De(_){let z=this.stack[this.stack.length-1];if(this.data.atHardBreak){let ie=z.children[z.children.length-1];ie.position.end=Pn(_.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z.type)&&(Y.call(this,_),A.call(this,_))}function U(){this.data.atHardBreak=!0}function M(){let _=this.resume(),z=this.stack[this.stack.length-1];z.value=_}function P(){let _=this.resume(),z=this.stack[this.stack.length-1];z.value=_}function L(){let _=this.resume(),z=this.stack[this.stack.length-1];z.value=_}function B(){let _=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=z,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function V(){let _=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=z,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function X(_){let z=this.sliceSerialize(_),ie=this.stack[this.stack.length-2];ie.label=Ef(z),ie.identifier=He(z).toLowerCase()}function ue(){let _=this.stack[this.stack.length-1],z=this.resume(),ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,ie.type==="link"){let ce=_.children;ie.children=ce}else ie.alt=z}function w(){let _=this.resume(),z=this.stack[this.stack.length-1];z.url=_}function ge(){let _=this.resume(),z=this.stack[this.stack.length-1];z.title=_}function be(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function Ne(_){let z=this.resume(),ie=this.stack[this.stack.length-1];ie.label=z,ie.identifier=He(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function Ue(_){this.data.characterReferenceType=_.type}function Lt(_){let z=this.sliceSerialize(_),ie=this.data.characterReferenceType,ce;ie?(ce=ss(z,ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ce=Mn(z);let ke=this.stack[this.stack.length-1];ke.value+=ce}function E(_){let z=this.stack.pop();z.position.end=Pn(_.end)}function k(_){A.call(this,_);let z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(_)}function C(_){A.call(this,_);let z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(_)}function I(){return{type:"blockquote",children:[]}}function F(){return{type:"code",lang:null,meta:null,value:""}}function te(){return{type:"inlineCode",value:""}}function _e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ae(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function Ot(){return{type:"break"}}function rt(){return{type:"html",value:""}}function vt(){return{type:"image",title:null,url:"",alt:null}}function er(){return{type:"link",title:null,url:"",children:[]}}function hr(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function Rt(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function qt(){return{type:"paragraph",children:[]}}function It(){return{type:"strong",children:[]}}function Re(){return{type:"text",value:""}}function mr(){return{type:"thematicBreak"}}}i(SH,"compiler");function Pn(e){return{line:e.line,column:e.column,offset:e.offset}}i(Pn,"point");function yE(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?yE(e,n):TH(e,n)}}i(yE,"configure");function TH(e,t){let r;for(r in t)if(xE.call(t,r))switch(r){case"canContainEols":{let n=t[r];n&&e[r].push(...n);break}case"transforms":{let n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{let n=t[r];n&&Object.assign(e[r],n);break}}}i(TH,"extension");function wE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+In({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+In({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+In({start:t.start,end:t.end})+") is still open")}i(wE,"defaultOnError");function us(e){let t=this;t.parser=r;function r(n){return cg(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}i(r,"parser")}i(us,"remarkParse");var vE=St(bE(),1),Fa=Object.assign(Li(Error),{eval:Li(EvalError),range:Li(RangeError),reference:Li(ReferenceError),syntax:Li(SyntaxError),type:Li(TypeError),uri:Li(URIError)});function Li(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let o=r&&(0,vE.default)(r,...n);return new e(o)}i(t,"FormattedError")}i(Li,"create");var $f={}.hasOwnProperty,kE={yaml:"-",toml:"+"};function cs(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=EH(n[r]);return t}i(cs,"toMatters");function EH(e){let t=e;if(typeof t=="string"){if(!$f.call(kE,t))throw Fa("Missing matter definition for `%s`",t);t={type:t,marker:kE[t]}}else if(typeof t!="object")throw Fa("Expected matter to be an object, not `%j`",t);if(!$f.call(t,"type"))throw Fa("Missing `type` in matter `%j`",t);if(!$f.call(t,"fence")&&!$f.call(t,"marker"))throw Fa("Missing `marker` or `fence` in matter `%j`",t);return t}i(EH,"matter");function hg(e){let t=cs(e),r={},n=-1;for(;++n<t.length;){let o=t[n],s=pg(o,"open").charCodeAt(0),a=DH(o),l=r[s];Array.isArray(l)?l.push(a):r[s]=[a]}return{flow:r}}i(hg,"frontmatter");function DH(e){let t=e.anywhere,r=e.type,n=r+"Fence",o=n+"Sequence",s=r+"Value",a={tokenize:f,partial:!0},l,u=0;return{tokenize:c,concrete:!0};function c(p,h,m){let d=this;return g;function g($){let K=d.now();return K.column===1&&(K.line===1||t)&&(l=pg(e,"open"),u=0,$===l.charCodeAt(u))?(p.enter(r),p.enter(n),p.enter(o),x($)):m($)}function x($){return u===l.length?(p.exit(o),Z($)?(p.enter("whitespace"),b($)):T($)):$===l.charCodeAt(u++)?(p.consume($),x):m($)}function b($){return Z($)?(p.consume($),b):(p.exit("whitespace"),T($))}function T($){return j($)?(p.exit(n),p.enter("lineEnding"),p.consume($),p.exit("lineEnding"),l=pg(e,"close"),u=0,p.attempt(a,O,D)):m($)}function D($){return $===null||j($)?H($):(p.enter(s),q($))}function q($){return $===null||j($)?(p.exit(s),H($)):(p.consume($),q)}function H($){return $===null?m($):(p.enter("lineEnding"),p.consume($),p.exit("lineEnding"),p.attempt(a,O,D))}function O($){return p.exit(r),h($)}}function f(p,h,m){let d=0;return g;function g(D){return D===l.charCodeAt(d)?(p.enter(n),p.enter(o),x(D)):m(D)}function x(D){return d===l.length?(p.exit(o),Z(D)?(p.enter("whitespace"),b(D)):T(D)):D===l.charCodeAt(d++)?(p.consume(D),x):m(D)}function b(D){return Z(D)?(p.consume(D),b):(p.exit("whitespace"),T(D))}function T(D){return D===null||j(D)?(p.exit(n),h(D)):m(D)}}}i(DH,"createConstruct");function pg(e,t){return e.marker?SE(e.marker,t).repeat(3):SE(e.fence,t)}i(pg,"fence");function SE(e,t){return typeof e=="string"?e:e[t]}i(SE,"pick");function dg(e){let t=cs(e),r={},n={},o=-1;for(;++o<t.length;){let s=t[o];r[s.type]=CH(s),n[s.type]=OH,n[s.type+"Value"]=IH}return{enter:r,exit:n}}i(dg,"frontmatterFromMarkdown");function CH(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}i(CH,"opener");function OH(e){let t=this.resume(),r=this.stack[this.stack.length-1];"value"in r,this.exit(e),r.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}i(OH,"close");function IH(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}i(IH,"value");function gg(e){let t=[],r={},n=cs(e),o=-1;for(;++o<n.length;){let s=n[o];r[s.type]=AH(s);let a=mg(s,"open");t.push({atBreak:!0,character:a.charAt(0),after:Qn(a.charAt(1))})}return{unsafe:t,handlers:r}}i(gg,"frontmatterToMarkdown");function AH(e){let t=mg(e,"open"),r=mg(e,"close");return n;function n(o){return t+(o.value?`
78
+ `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&o)continue;a=" ";break}default:a=String.fromCharCode(s)}o=s===-2,n.push(a)}return n.join("")}i(bH,"serializeChunks");function Na(e){let n={constructs:Cf([ug,...(e||{}).extensions||[]]),content:o(iE),defined:[],document:o(sE),flow:o(aE),lazy:{},string:o(fE),text:o(pE)};return n;function o(s){return a;function a(l){return hE(n,s,l)}}}i(Na,"parse");function Pa(e){for(;!Pf(e););return e}i(Pa,"postprocess");var mE=/[\0\t\n\r]/g;function Fa(){let e=1,t="",r=!0,n;return o;function o(s,a,l){let u=[],c,f,p,h,m;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),p=0,t="",r&&(s.charCodeAt(0)===65279&&p++,r=void 0);p<s.length;){if(mE.lastIndex=p,c=mE.exec(s),h=c&&c.index!==void 0?c.index:s.length,m=s.charCodeAt(h),!c){t=s.slice(p);break}if(m===10&&p===h&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),p<h&&(u.push(s.slice(p,h)),e+=h-p),m){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:n=!0,e=1}p=h+1}return l&&(n&&u.push(-5),t&&u.push(t),u.push(null)),u}}i(Fa,"preprocess");function lWe(e,t,r){return typeof t!="string"&&(r=t,t=void 0),lg(r)(Pa(Na(r).document().write(Fa()(e,t,!0))))}i(lWe,"micromark");var dE={}.hasOwnProperty;function cg(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),vH(r)(Pa(Na(r).document().write(Fa()(e,t,!0))))}i(cg,"fromMarkdown");function vH(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(er),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:s(ve),blockQuote:s(O),characterEscape:Y,characterReference:Y,codeFenced:s(F),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(F,a),codeText:s(te,a),codeTextData:Y,data:Y,codeFlowValue:Y,definition:s(_e),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(Ae),hardBreakEscape:s(Dt),hardBreakTrailing:s(Dt),htmlFlow:s(rt,a),htmlFlowData:Y,htmlText:s(rt,a),htmlTextData:Y,image:s(bt),label:a,link:s(er),listItem:s(Rt),listItemValue:h,listOrdered:s(hr,p),listUnordered:s(hr),paragraph:s(qt),reference:S,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(ve),strong:s(Ct),thematicBreak:s(mr)},exit:{atxHeading:u(),atxHeadingSequence:H,autolink:u(),autolinkEmail:C,autolinkProtocol:k,blockQuote:u(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:We,characterReferenceMarkerNumeric:We,characterReferenceValue:Lt,characterReference:E,codeFenced:u(x),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:d,codeFlowValue:A,codeIndented:u(b),codeText:u(L),codeTextData:A,data:A,definition:u(),definitionDestinationString:q,definitionLabelString:T,definitionTitleString:D,emphasis:u(),hardBreakEscape:u(W),hardBreakTrailing:u(W),htmlFlow:u(M),htmlFlowData:A,htmlText:u(N),htmlTextData:A,image:u(V),label:ue,labelText:K,lineEnding:De,link:u(B),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Pe,resourceDestinationString:w,resourceTitleString:ge,resource:be,setextHeading:u(Z),setextHeadingLineSequence:$,setextHeadingText:I,strong:u(),thematicBreak:u()}};gE(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(_){let z={type:"root",children:[]},ie={stack:[z],tokenStack:[],config:t,enter:l,exit:c,buffer:a,resume:f,data:r},ce=[],ke=-1;for(;++ke<_.length;)if(_[ke][1].type==="listOrdered"||_[ke][1].type==="listUnordered")if(_[ke][0]==="enter")ce.push(ke);else{let Bt=ce.pop();ke=o(_,Bt,ke)}for(ke=-1;++ke<_.length;){let Bt=t[_[ke][0]];dE.call(Bt,_[ke][1].type)&&Bt[_[ke][1].type].call(Object.assign({sliceSerialize:_[ke][2].sliceSerialize},ie),_[ke][1])}if(ie.tokenStack.length>0){let Bt=ie.tokenStack[ie.tokenStack.length-1];(Bt[1]||xE).call(ie,void 0,Bt[0])}for(z.position={start:Nn(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:Nn(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},ke=-1;++ke<t.transforms.length;)z=t.transforms[ke](z)||z;return z}function o(_,z,ie){let ce=z-1,ke=-1,Bt=!1,dr,Yt,Wn,jn;for(;++ce<=ie;){let vt=_[ce];switch(vt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{vt[0]==="enter"?ke++:ke--,jn=void 0;break}case"lineEndingBlank":{vt[0]==="enter"&&(dr&&!jn&&!ke&&!Wn&&(Wn=ce),jn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:jn=void 0}if(!ke&&vt[0]==="enter"&&vt[1].type==="listItemPrefix"||ke===-1&&vt[0]==="exit"&&(vt[1].type==="listUnordered"||vt[1].type==="listOrdered")){if(dr){let nn=ce;for(Yt=void 0;nn--;){let tr=_[nn];if(tr[1].type==="lineEnding"||tr[1].type==="lineEndingBlank"){if(tr[0]==="exit")continue;Yt&&(_[Yt][1].type="lineEndingBlank",Bt=!0),tr[1].type="lineEnding",Yt=nn}else if(!(tr[1].type==="linePrefix"||tr[1].type==="blockQuotePrefix"||tr[1].type==="blockQuotePrefixWhitespace"||tr[1].type==="blockQuoteMarker"||tr[1].type==="listItemIndent"))break}Wn&&(!Yt||Wn<Yt)&&(dr._spread=!0),dr.end=Object.assign({},Yt?_[Yt][1].start:vt[1].end),_.splice(Yt||ce,0,["exit",dr,vt[2]]),ce++,ie++}if(vt[1].type==="listItemPrefix"){let nn={type:"listItem",_spread:!1,start:Object.assign({},vt[1].start),end:void 0};dr=nn,_.splice(ce,0,["enter",nn,vt[2]]),ce++,ie++,Wn=void 0,jn=!0}}}return _[z][1]._spread=Bt,ie}function s(_,z){return ie;function ie(ce){l.call(this,_(ce),ce),z&&z.call(this,ce)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(_,z,ie){this.stack[this.stack.length-1].children.push(_),this.stack.push(_),this.tokenStack.push([z,ie||void 0]),_.position={start:Nn(z.start),end:void 0}}function u(_){return z;function z(ie){_&&_.call(this,ie),c.call(this,ie)}}function c(_,z){let ie=this.stack.pop(),ce=this.tokenStack.pop();if(ce)ce[0].type!==_.type&&(z?z.call(this,_,ce[0]):(ce[1]||xE).call(this,_,ce[0]));else throw new Error("Cannot close `"+_.type+"` ("+On({start:_.start,end:_.end})+"): it\u2019s not open");ie.position.end=Nn(_.end)}function f(){return Di(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(_){if(this.data.expectingFirstListItemValue){let z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(_),10),this.data.expectingFirstListItemValue=void 0}}function m(){let _=this.resume(),z=this.stack[this.stack.length-1];z.lang=_}function d(){let _=this.resume(),z=this.stack[this.stack.length-1];z.meta=_}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){let _=this.resume(),z=this.stack[this.stack.length-1];z.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){let _=this.resume(),z=this.stack[this.stack.length-1];z.value=_.replace(/(\r?\n|\r)$/g,"")}function T(_){let z=this.resume(),ie=this.stack[this.stack.length-1];ie.label=z,ie.identifier=He(this.sliceSerialize(_)).toLowerCase()}function D(){let _=this.resume(),z=this.stack[this.stack.length-1];z.title=_}function q(){let _=this.resume(),z=this.stack[this.stack.length-1];z.url=_}function H(_){let z=this.stack[this.stack.length-1];if(!z.depth){let ie=this.sliceSerialize(_).length;z.depth=ie}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function $(_){let z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(_).codePointAt(0)===61?1:2}function Z(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(_){let ie=this.stack[this.stack.length-1].children,ce=ie[ie.length-1];(!ce||ce.type!=="text")&&(ce=Re(),ce.position={start:Nn(_.start),end:void 0},ie.push(ce)),this.stack.push(ce)}function A(_){let z=this.stack.pop();z.value+=this.sliceSerialize(_),z.position.end=Nn(_.end)}function De(_){let z=this.stack[this.stack.length-1];if(this.data.atHardBreak){let ie=z.children[z.children.length-1];ie.position.end=Nn(_.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z.type)&&(Y.call(this,_),A.call(this,_))}function W(){this.data.atHardBreak=!0}function M(){let _=this.resume(),z=this.stack[this.stack.length-1];z.value=_}function N(){let _=this.resume(),z=this.stack[this.stack.length-1];z.value=_}function L(){let _=this.resume(),z=this.stack[this.stack.length-1];z.value=_}function B(){let _=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=z,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function V(){let _=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=z,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function K(_){let z=this.sliceSerialize(_),ie=this.stack[this.stack.length-2];ie.label=Df(z),ie.identifier=He(z).toLowerCase()}function ue(){let _=this.stack[this.stack.length-1],z=this.resume(),ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,ie.type==="link"){let ce=_.children;ie.children=ce}else ie.alt=z}function w(){let _=this.resume(),z=this.stack[this.stack.length-1];z.url=_}function ge(){let _=this.resume(),z=this.stack[this.stack.length-1];z.title=_}function be(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function Pe(_){let z=this.resume(),ie=this.stack[this.stack.length-1];ie.label=z,ie.identifier=He(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function We(_){this.data.characterReferenceType=_.type}function Lt(_){let z=this.sliceSerialize(_),ie=this.data.characterReferenceType,ce;ie?(ce=ss(z,ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ce=Mn(z);let ke=this.stack[this.stack.length-1];ke.value+=ce}function E(_){let z=this.stack.pop();z.position.end=Nn(_.end)}function k(_){A.call(this,_);let z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(_)}function C(_){A.call(this,_);let z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(_)}function O(){return{type:"blockquote",children:[]}}function F(){return{type:"code",lang:null,meta:null,value:""}}function te(){return{type:"inlineCode",value:""}}function _e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ae(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function Dt(){return{type:"break"}}function rt(){return{type:"html",value:""}}function bt(){return{type:"image",title:null,url:"",alt:null}}function er(){return{type:"link",title:null,url:"",children:[]}}function hr(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function Rt(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function qt(){return{type:"paragraph",children:[]}}function Ct(){return{type:"strong",children:[]}}function Re(){return{type:"text",value:""}}function mr(){return{type:"thematicBreak"}}}i(vH,"compiler");function Nn(e){return{line:e.line,column:e.column,offset:e.offset}}i(Nn,"point");function gE(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?gE(e,n):kH(e,n)}}i(gE,"configure");function kH(e,t){let r;for(r in t)if(dE.call(t,r))switch(r){case"canContainEols":{let n=t[r];n&&e[r].push(...n);break}case"transforms":{let n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{let n=t[r];n&&Object.assign(e[r],n);break}}}i(kH,"extension");function xE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+On({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+On({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+On({start:t.start,end:t.end})+") is still open")}i(xE,"defaultOnError");function us(e){let t=this;t.parser=r;function r(n){return cg(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}i(r,"parser")}i(us,"remarkParse");var wE=It(yE(),1),La=Object.assign(Ni(Error),{eval:Ni(EvalError),range:Ni(RangeError),reference:Ni(ReferenceError),syntax:Ni(SyntaxError),type:Ni(TypeError),uri:Ni(URIError)});function Ni(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let o=r&&(0,wE.default)(r,...n);return new e(o)}i(t,"FormattedError")}i(Ni,"create");var Hf={}.hasOwnProperty,bE={yaml:"-",toml:"+"};function cs(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=SH(n[r]);return t}i(cs,"toMatters");function SH(e){let t=e;if(typeof t=="string"){if(!Hf.call(bE,t))throw La("Missing matter definition for `%s`",t);t={type:t,marker:bE[t]}}else if(typeof t!="object")throw La("Expected matter to be an object, not `%j`",t);if(!Hf.call(t,"type"))throw La("Missing `type` in matter `%j`",t);if(!Hf.call(t,"fence")&&!Hf.call(t,"marker"))throw La("Missing `marker` or `fence` in matter `%j`",t);return t}i(SH,"matter");function hg(e){let t=cs(e),r={},n=-1;for(;++n<t.length;){let o=t[n],s=pg(o,"open").charCodeAt(0),a=TH(o),l=r[s];Array.isArray(l)?l.push(a):r[s]=[a]}return{flow:r}}i(hg,"frontmatter");function TH(e){let t=e.anywhere,r=e.type,n=r+"Fence",o=n+"Sequence",s=r+"Value",a={tokenize:f,partial:!0},l,u=0;return{tokenize:c,concrete:!0};function c(p,h,m){let d=this;return g;function g($){let Z=d.now();return Z.column===1&&(Z.line===1||t)&&(l=pg(e,"open"),u=0,$===l.charCodeAt(u))?(p.enter(r),p.enter(n),p.enter(o),x($)):m($)}function x($){return u===l.length?(p.exit(o),X($)?(p.enter("whitespace"),b($)):T($)):$===l.charCodeAt(u++)?(p.consume($),x):m($)}function b($){return X($)?(p.consume($),b):(p.exit("whitespace"),T($))}function T($){return j($)?(p.exit(n),p.enter("lineEnding"),p.consume($),p.exit("lineEnding"),l=pg(e,"close"),u=0,p.attempt(a,I,D)):m($)}function D($){return $===null||j($)?H($):(p.enter(s),q($))}function q($){return $===null||j($)?(p.exit(s),H($)):(p.consume($),q)}function H($){return $===null?m($):(p.enter("lineEnding"),p.consume($),p.exit("lineEnding"),p.attempt(a,I,D))}function I($){return p.exit(r),h($)}}function f(p,h,m){let d=0;return g;function g(D){return D===l.charCodeAt(d)?(p.enter(n),p.enter(o),x(D)):m(D)}function x(D){return d===l.length?(p.exit(o),X(D)?(p.enter("whitespace"),b(D)):T(D)):D===l.charCodeAt(d++)?(p.consume(D),x):m(D)}function b(D){return X(D)?(p.consume(D),b):(p.exit("whitespace"),T(D))}function T(D){return D===null||j(D)?(p.exit(n),h(D)):m(D)}}}i(TH,"createConstruct");function pg(e,t){return e.marker?vE(e.marker,t).repeat(3):vE(e.fence,t)}i(pg,"fence");function vE(e,t){return typeof e=="string"?e:e[t]}i(vE,"pick");function dg(e){let t=cs(e),r={},n={},o=-1;for(;++o<t.length;){let s=t[o];r[s.type]=EH(s),n[s.type]=DH,n[s.type+"Value"]=CH}return{enter:r,exit:n}}i(dg,"frontmatterFromMarkdown");function EH(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}i(EH,"opener");function DH(e){let t=this.resume(),r=this.stack[this.stack.length-1];"value"in r,this.exit(e),r.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}i(DH,"close");function CH(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}i(CH,"value");function gg(e){let t=[],r={},n=cs(e),o=-1;for(;++o<n.length;){let s=n[o];r[s.type]=IH(s);let a=mg(s,"open");t.push({atBreak:!0,character:a.charAt(0),after:qn(a.charAt(1))})}return{unsafe:t,handlers:r}}i(gg,"frontmatterToMarkdown");function IH(e){let t=mg(e,"open"),r=mg(e,"close");return n;function n(o){return t+(o.value?`
79
79
  `+o.value:"")+`
80
- `+r}}i(AH,"handler");function mg(e,t){return e.marker?TE(e.marker,t).repeat(3):TE(e.fence,t)}i(mg,"fence");function TE(e,t){return typeof e=="string"?e:e[t]}i(TE,"pick");var MH="yaml";function fs(e){let t=this,r=e||MH,n=t.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(hg(r)),s.push(dg(r)),a.push(gg(r))}i(fs,"remarkFrontmatter");var EE=typeof self=="object"?self:globalThis,_H=i((e,t)=>{let r=i((o,s)=>(e.set(s,o),o),"as"),n=i(o=>{if(e.has(o))return e.get(o);let[s,a]=t[o];switch(s){case 0:case-1:return r(a,o);case 1:{let l=r([],o);for(let u of a)l.push(n(u));return l}case 2:{let l=r({},o);for(let[u,c]of a)l[n(u)]=n(c);return l}case 3:return r(new Date(a),o);case 4:{let{source:l,flags:u}=a;return r(new RegExp(l,u),o)}case 5:{let l=r(new Map,o);for(let[u,c]of a)l.set(n(u),n(c));return l}case 6:{let l=r(new Set,o);for(let u of a)l.add(n(u));return l}case 7:{let{name:l,message:u}=a;return r(new EE[l](u),o)}case 8:return r(BigInt(a),o);case"BigInt":return r(Object(BigInt(a)),o);case"ArrayBuffer":return r(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:l}=new Uint8Array(a);return r(new DataView(l),a)}}return r(new EE[s](a),o)},"unpair");return n},"deserializer"),qf=i(e=>_H(new Map,e)(0),"deserialize");var hs="",{toString:PH}={},{keys:NH}=Object,Ba=i(e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let r=PH.call(e).slice(8,-1);switch(r){case"Array":return[1,hs];case"Object":return[2,hs];case"Date":return[3,hs];case"RegExp":return[4,hs];case"Map":return[5,hs];case"Set":return[6,hs];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},"typeOf"),Yf=i(([e,t])=>e===0&&(t==="function"||t==="symbol"),"shouldSkip"),FH=i((e,t,r,n)=>{let o=i((a,l)=>{let u=n.push(a)-1;return r.set(l,u),u},"as"),s=i(a=>{if(r.has(a))return r.get(a);let[l,u]=Ba(a);switch(l){case 0:{let f=a;switch(u){case"bigint":l=8,f=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return o([-1],a)}return o([l,f],a)}case 1:{if(u){let h=a;return u==="DataView"?h=new Uint8Array(a.buffer):u==="ArrayBuffer"&&(h=new Uint8Array(a)),o([u,[...h]],a)}let f=[],p=o([l,f],a);for(let h of a)f.push(s(h));return p}case 2:{if(u)switch(u){case"BigInt":return o([u,a.toString()],a);case"Boolean":case"Number":case"String":return o([u,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());let f=[],p=o([l,f],a);for(let h of NH(a))(e||!Yf(Ba(a[h])))&&f.push([s(h),s(a[h])]);return p}case 3:return o([l,a.toISOString()],a);case 4:{let{source:f,flags:p}=a;return o([l,{source:f,flags:p}],a)}case 5:{let f=[],p=o([l,f],a);for(let[h,m]of a)(e||!(Yf(Ba(h))||Yf(Ba(m))))&&f.push([s(h),s(m)]);return p}case 6:{let f=[],p=o([l,f],a);for(let h of a)(e||!Yf(Ba(h)))&&f.push(s(h));return p}}let{message:c}=a;return o([l,{name:u,message:c}],a)},"pair");return s},"serializer"),Vf=i((e,{json:t,lossy:r}={})=>{let n=[];return FH(!(t||r),!!t,new Map,n)(e),n},"serialize");var Nn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?qf(Vf(e,t)):structuredClone(e):(e,t)=>qf(Vf(e,t));var Qf=DE("end"),Gf=DE("start");function DE(e){return t;function t(r){let n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}i(DE,"point");function za(e){let t=Gf(e),r=Qf(e);if(t&&r)return{start:t,end:r}}i(za,"position");var Ri=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Jf={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Ri,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Ri],h2:[["className","sr-only"]],img:[...Ri,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Ri,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Ri],table:[...Ri],ul:[...Ri,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]};var Fn={}.hasOwnProperty;function bg(e,t){let r={type:"root",children:[]},n={schema:t?{...Jf,...t}:Jf,stack:[]},o=CE(n,e);return o&&(Array.isArray(o)?o.length===1?r=o[0]:r.children=o:r=o),r}i(bg,"sanitize");function CE(e,t){if(t&&typeof t=="object"){let r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return LH(e,r);case"doctype":return RH(e,r);case"element":return BH(e,r);case"root":return zH(e,r);case"text":return $H(e,r);default:}}}i(CE,"transform");function LH(e,t){if(e.schema.allowComments){let r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),s={type:"comment",value:n<0?r:r.slice(0,n)};return $a(s,t),s}}i(LH,"comment");function RH(e,t){if(e.schema.allowDoctypes){let r={type:"doctype"};return $a(r,t),r}}i(RH,"doctype");function BH(e,t){let r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);let n=OE(e,t.children),o=HH(e,t.properties);e.stack.pop();let s=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(s=!0,e.schema.ancestors&&Fn.call(e.schema.ancestors,r))){let l=e.schema.ancestors[r],u=-1;for(s=!1;++u<l.length;)e.stack.includes(l[u])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;let a={type:"element",tagName:r,properties:o,children:n};return $a(a,t),a}i(BH,"element");function zH(e,t){let n={type:"root",children:OE(e,t.children)};return $a(n,t),n}i(zH,"root");function $H(e,t){let n={type:"text",value:typeof t.value=="string"?t.value:""};return $a(n,t),n}i($H,"text");function OE(e,t){let r=[];if(Array.isArray(t)){let n=t,o=-1;for(;++o<n.length;){let s=CE(e,n[o]);s&&(Array.isArray(s)?r.push(...s):r.push(s))}}return r}i(OE,"children");function HH(e,t){let r=e.stack[e.stack.length-1],n=e.schema.attributes,o=e.schema.required,s=n&&Fn.call(n,r)?n[r]:void 0,a=n&&Fn.call(n,"*")?n["*"]:void 0,l=t&&typeof t=="object"?t:{},u={},c;for(c in l)if(Fn.call(l,c)){let f=l[c],p=IE(e,ME(s,c),c,f);p==null&&(p=IE(e,ME(a,c),c,f)),p!=null&&(u[c]=p)}if(o&&Fn.call(o,r)){let f=o[r];for(c in f)Fn.call(f,c)&&!Fn.call(u,c)&&(u[c]=f[c])}return u}i(HH,"properties");function IE(e,t,r,n){return t?Array.isArray(n)?WH(e,t,r,n):AE(e,t,r,n):void 0}i(IE,"propertyValue");function WH(e,t,r,n){let o=-1,s=[];for(;++o<n.length;){let a=AE(e,t,r,n[o]);(typeof a=="number"||typeof a=="string")&&s.push(a)}return s}i(WH,"propertyValueMany");function AE(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&UH(e,r,n)){if(typeof t=="object"&&t.length>1){let o=!1,s=0;for(;++s<t.length;){let a=t[s];if(a&&typeof a=="object"&&"flags"in a){if(a.test(String(n))){o=!0;break}}else if(a===n){o=!0;break}}if(!o)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}i(AE,"propertyValuePrimitive");function UH(e,t,r){let n=e.schema.protocols&&Fn.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;let o=String(r),s=o.indexOf(":"),a=o.indexOf("?"),l=o.indexOf("#"),u=o.indexOf("/");if(s<0||u>-1&&s>u||a>-1&&s>a||l>-1&&s>l)return!0;let c=-1;for(;++c<n.length;){let f=n[c];if(s===f.length&&o.slice(0,f.length)===f)return!0}return!1}i(UH,"safeProtocol");function $a(e,t){let r=za(t);t.data&&(e.data=Nn(t.data)),r&&(e.position=r)}i($a,"patch");function ME(e,t){let r,n=-1;if(e)for(;++n<e.length;){let o=e[n],s=typeof o=="string"?o:o[0];if(s===t)return o;s==="data*"&&(r=o)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}i(ME,"findDefinition");function _E(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}i(_E,"blockquote");function PE(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
81
- `}]}i(PE,"hardBreak");function NE(e,t){let r=t.value?t.value+`
82
- `:"",n={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(n.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}i(NE,"code");function FE(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}i(FE,"strikethrough");function LE(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}i(LE,"emphasis");function RE(e,t){let r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),o=jt(n.toLowerCase()),s=e.footnoteOrder.indexOf(n),a,l=e.footnoteCounts.get(n);l===void 0?(l=0,e.footnoteOrder.push(n),a=e.footnoteOrder.length):a=s+1,l+=1,e.footnoteCounts.set(n,l);let u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,u);let c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)}i(RE,"footnoteReference");function BE(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}i(BE,"heading");function zE(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}i(zE,"html");function Xf(e,t){let r=t.referenceType,n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let o=e.all(t),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});let a=o[o.length-1];return a&&a.type==="text"?a.value+=n:o.push({type:"text",value:n}),o}i(Xf,"revert");function $E(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Xf(e,t);let o={src:jt(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(o.title=n.title);let s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,s),e.applyData(t,s)}i($E,"imageReference");function HE(e,t){let r={src:jt(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}i(HE,"image");function WE(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}i(WE,"inlineCode");function UE(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Xf(e,t);let o={href:jt(n.url||"")};n.title!==null&&n.title!==void 0&&(o.title=n.title);let s={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}i(UE,"linkReference");function jE(e,t){let r={href:jt(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}i(jE,"link");function YE(e,t,r){let n=e.all(t),o=r?jH(r):qE(t),s={},a=[];if(typeof t.checked=="boolean"){let f=n[0],p;f&&f.type==="element"&&f.tagName==="p"?p=f:(p={type:"element",tagName:"p",properties:{},children:[]},n.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let l=-1;for(;++l<n.length;){let f=n[l];(o||l!==0||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:`
80
+ `+r}}i(IH,"handler");function mg(e,t){return e.marker?kE(e.marker,t).repeat(3):kE(e.fence,t)}i(mg,"fence");function kE(e,t){return typeof e=="string"?e:e[t]}i(kE,"pick");var OH="yaml";function fs(e){let t=this,r=e||OH,n=t.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(hg(r)),s.push(dg(r)),a.push(gg(r))}i(fs,"remarkFrontmatter");var SE=typeof self=="object"?self:globalThis,AH=i((e,t)=>{let r=i((o,s)=>(e.set(s,o),o),"as"),n=i(o=>{if(e.has(o))return e.get(o);let[s,a]=t[o];switch(s){case 0:case-1:return r(a,o);case 1:{let l=r([],o);for(let u of a)l.push(n(u));return l}case 2:{let l=r({},o);for(let[u,c]of a)l[n(u)]=n(c);return l}case 3:return r(new Date(a),o);case 4:{let{source:l,flags:u}=a;return r(new RegExp(l,u),o)}case 5:{let l=r(new Map,o);for(let[u,c]of a)l.set(n(u),n(c));return l}case 6:{let l=r(new Set,o);for(let u of a)l.add(n(u));return l}case 7:{let{name:l,message:u}=a;return r(new SE[l](u),o)}case 8:return r(BigInt(a),o);case"BigInt":return r(Object(BigInt(a)),o);case"ArrayBuffer":return r(new Uint8Array(a).buffer,a);case"DataView":{let{buffer:l}=new Uint8Array(a);return r(new DataView(l),a)}}return r(new SE[s](a),o)},"unpair");return n},"deserializer"),Yf=i(e=>AH(new Map,e)(0),"deserialize");var hs="",{toString:MH}={},{keys:_H}=Object,za=i(e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let r=MH.call(e).slice(8,-1);switch(r){case"Array":return[1,hs];case"Object":return[2,hs];case"Date":return[3,hs];case"RegExp":return[4,hs];case"Map":return[5,hs];case"Set":return[6,hs];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},"typeOf"),Vf=i(([e,t])=>e===0&&(t==="function"||t==="symbol"),"shouldSkip"),NH=i((e,t,r,n)=>{let o=i((a,l)=>{let u=n.push(a)-1;return r.set(l,u),u},"as"),s=i(a=>{if(r.has(a))return r.get(a);let[l,u]=za(a);switch(l){case 0:{let f=a;switch(u){case"bigint":l=8,f=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return o([-1],a)}return o([l,f],a)}case 1:{if(u){let h=a;return u==="DataView"?h=new Uint8Array(a.buffer):u==="ArrayBuffer"&&(h=new Uint8Array(a)),o([u,[...h]],a)}let f=[],p=o([l,f],a);for(let h of a)f.push(s(h));return p}case 2:{if(u)switch(u){case"BigInt":return o([u,a.toString()],a);case"Boolean":case"Number":case"String":return o([u,a.valueOf()],a)}if(t&&"toJSON"in a)return s(a.toJSON());let f=[],p=o([l,f],a);for(let h of _H(a))(e||!Vf(za(a[h])))&&f.push([s(h),s(a[h])]);return p}case 3:return o([l,a.toISOString()],a);case 4:{let{source:f,flags:p}=a;return o([l,{source:f,flags:p}],a)}case 5:{let f=[],p=o([l,f],a);for(let[h,m]of a)(e||!(Vf(za(h))||Vf(za(m))))&&f.push([s(h),s(m)]);return p}case 6:{let f=[],p=o([l,f],a);for(let h of a)(e||!Vf(za(h)))&&f.push(s(h));return p}}let{message:c}=a;return o([l,{name:u,message:c}],a)},"pair");return s},"serializer"),Qf=i((e,{json:t,lossy:r}={})=>{let n=[];return NH(!(t||r),!!t,new Map,n)(e),n},"serialize");var Pn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Yf(Qf(e,t)):structuredClone(e):(e,t)=>Yf(Qf(e,t));var Gf=TE("end"),Jf=TE("start");function TE(e){return t;function t(r){let n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}i(TE,"point");function $a(e){let t=Jf(e),r=Gf(e);if(t&&r)return{start:t,end:r}}i($a,"position");var Pi=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Kf={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Pi,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Pi],h2:[["className","sr-only"]],img:[...Pi,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Pi,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Pi],table:[...Pi],ul:[...Pi,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]};var Fn={}.hasOwnProperty;function bg(e,t){let r={type:"root",children:[]},n={schema:t?{...Kf,...t}:Kf,stack:[]},o=EE(n,e);return o&&(Array.isArray(o)?o.length===1?r=o[0]:r.children=o:r=o),r}i(bg,"sanitize");function EE(e,t){if(t&&typeof t=="object"){let r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return PH(e,r);case"doctype":return FH(e,r);case"element":return LH(e,r);case"root":return RH(e,r);case"text":return BH(e,r);default:}}}i(EE,"transform");function PH(e,t){if(e.schema.allowComments){let r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),s={type:"comment",value:n<0?r:r.slice(0,n)};return Ha(s,t),s}}i(PH,"comment");function FH(e,t){if(e.schema.allowDoctypes){let r={type:"doctype"};return Ha(r,t),r}}i(FH,"doctype");function LH(e,t){let r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);let n=DE(e,t.children),o=zH(e,t.properties);e.stack.pop();let s=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(s=!0,e.schema.ancestors&&Fn.call(e.schema.ancestors,r))){let l=e.schema.ancestors[r],u=-1;for(s=!1;++u<l.length;)e.stack.includes(l[u])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;let a={type:"element",tagName:r,properties:o,children:n};return Ha(a,t),a}i(LH,"element");function RH(e,t){let n={type:"root",children:DE(e,t.children)};return Ha(n,t),n}i(RH,"root");function BH(e,t){let n={type:"text",value:typeof t.value=="string"?t.value:""};return Ha(n,t),n}i(BH,"text");function DE(e,t){let r=[];if(Array.isArray(t)){let n=t,o=-1;for(;++o<n.length;){let s=EE(e,n[o]);s&&(Array.isArray(s)?r.push(...s):r.push(s))}}return r}i(DE,"children");function zH(e,t){let r=e.stack[e.stack.length-1],n=e.schema.attributes,o=e.schema.required,s=n&&Fn.call(n,r)?n[r]:void 0,a=n&&Fn.call(n,"*")?n["*"]:void 0,l=t&&typeof t=="object"?t:{},u={},c;for(c in l)if(Fn.call(l,c)){let f=l[c],p=CE(e,OE(s,c),c,f);p==null&&(p=CE(e,OE(a,c),c,f)),p!=null&&(u[c]=p)}if(o&&Fn.call(o,r)){let f=o[r];for(c in f)Fn.call(f,c)&&!Fn.call(u,c)&&(u[c]=f[c])}return u}i(zH,"properties");function CE(e,t,r,n){return t?Array.isArray(n)?$H(e,t,r,n):IE(e,t,r,n):void 0}i(CE,"propertyValue");function $H(e,t,r,n){let o=-1,s=[];for(;++o<n.length;){let a=IE(e,t,r,n[o]);(typeof a=="number"||typeof a=="string")&&s.push(a)}return s}i($H,"propertyValueMany");function IE(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&HH(e,r,n)){if(typeof t=="object"&&t.length>1){let o=!1,s=0;for(;++s<t.length;){let a=t[s];if(a&&typeof a=="object"&&"flags"in a){if(a.test(String(n))){o=!0;break}}else if(a===n){o=!0;break}}if(!o)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}i(IE,"propertyValuePrimitive");function HH(e,t,r){let n=e.schema.protocols&&Fn.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;let o=String(r),s=o.indexOf(":"),a=o.indexOf("?"),l=o.indexOf("#"),u=o.indexOf("/");if(s<0||u>-1&&s>u||a>-1&&s>a||l>-1&&s>l)return!0;let c=-1;for(;++c<n.length;){let f=n[c];if(s===f.length&&o.slice(0,f.length)===f)return!0}return!1}i(HH,"safeProtocol");function Ha(e,t){let r=$a(t);t.data&&(e.data=Pn(t.data)),r&&(e.position=r)}i(Ha,"patch");function OE(e,t){let r,n=-1;if(e)for(;++n<e.length;){let o=e[n],s=typeof o=="string"?o:o[0];if(s===t)return o;s==="data*"&&(r=o)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}i(OE,"findDefinition");function AE(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}i(AE,"blockquote");function ME(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
81
+ `}]}i(ME,"hardBreak");function _E(e,t){let r=t.value?t.value+`
82
+ `:"",n={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(n.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}i(_E,"code");function NE(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}i(NE,"strikethrough");function PE(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}i(PE,"emphasis");function FE(e,t){let r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),o=jt(n.toLowerCase()),s=e.footnoteOrder.indexOf(n),a,l=e.footnoteCounts.get(n);l===void 0?(l=0,e.footnoteOrder.push(n),a=e.footnoteOrder.length):a=s+1,l+=1,e.footnoteCounts.set(n,l);let u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,u);let c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)}i(FE,"footnoteReference");function LE(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}i(LE,"heading");function RE(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}i(RE,"html");function Xf(e,t){let r=t.referenceType,n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let o=e.all(t),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});let a=o[o.length-1];return a&&a.type==="text"?a.value+=n:o.push({type:"text",value:n}),o}i(Xf,"revert");function BE(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Xf(e,t);let o={src:jt(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(o.title=n.title);let s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,s),e.applyData(t,s)}i(BE,"imageReference");function zE(e,t){let r={src:jt(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}i(zE,"image");function $E(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}i($E,"inlineCode");function HE(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Xf(e,t);let o={href:jt(n.url||"")};n.title!==null&&n.title!==void 0&&(o.title=n.title);let s={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}i(HE,"linkReference");function UE(e,t){let r={href:jt(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}i(UE,"link");function jE(e,t,r){let n=e.all(t),o=r?UH(r):WE(t),s={},a=[];if(typeof t.checked=="boolean"){let f=n[0],p;f&&f.type==="element"&&f.tagName==="p"?p=f:(p={type:"element",tagName:"p",properties:{},children:[]},n.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let l=-1;for(;++l<n.length;){let f=n[l];(o||l!==0||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:`
83
83
  `}),f.type==="element"&&f.tagName==="p"&&!o?a.push(...f.children):a.push(f)}let u=n[n.length-1];u&&(o||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
84
- `});let c={type:"element",tagName:"li",properties:s,children:a};return e.patch(t,c),e.applyData(t,c)}i(YE,"listItem");function jH(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n<r.length;)t=qE(r[n])}return t}i(jH,"listLoose");function qE(e){let t=e.spread;return t??e.children.length>1}i(qE,"listItemLoose");function VE(e,t){let r={},n=e.all(t),o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<n.length;){let a=n[o];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,s),e.applyData(t,s)}i(VE,"list");function QE(e,t){let r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}i(QE,"paragraph");function GE(e,t){let r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}i(GE,"root");function JE(e,t){let r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}i(JE,"strong");function XE(e,t){let r=e.all(t),n=r.shift(),o=[];if(n){let a={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],a),o.push(a)}if(r.length>0){let a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},l=Gf(t.children[1]),u=Qf(t.children[t.children.length-1]);l&&u&&(a.position={start:l,end:u}),o.push(a)}let s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}i(XE,"table");function ZE(e,t,r){let n=r?r.children:void 0,s=(n?n.indexOf(t):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,l=a?a.length:t.children.length,u=-1,c=[];for(;++u<l;){let p=t.children[u],h={},m=a?a[u]:void 0;m&&(h.align=m);let d={type:"element",tagName:s,properties:h,children:[]};p&&(d.children=e.all(p),e.patch(p,d),d=e.applyData(p,d)),c.push(d)}let f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}i(ZE,"tableRow");function KE(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}i(KE,"tableCell");var C3e=9,O3e=32;function tD(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),o=0,s=[];for(;n;)s.push(eD(t.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(t);return s.push(eD(t.slice(o),o>0,!1)),s.join("")}i(tD,"trimLines");function eD(e,t,r){let n=0,o=e.length;if(t){let s=e.codePointAt(n);for(;s===9||s===32;)n++,s=e.codePointAt(n)}if(r){let s=e.codePointAt(o-1);for(;s===9||s===32;)o--,s=e.codePointAt(o-1)}return o>n?e.slice(n,o):""}i(eD,"trimLine");function rD(e,t){let r={type:"text",value:tD(String(t.value))};return e.patch(t,r),e.applyData(t,r)}i(rD,"text");function nD(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}i(nD,"thematicBreak");var vg={blockquote:_E,break:PE,code:NE,delete:FE,emphasis:LE,footnoteReference:RE,heading:BE,html:zE,imageReference:$E,image:HE,inlineCode:WE,linkReference:UE,link:jE,listItem:YE,list:VE,paragraph:QE,root:GE,strong:JE,table:XE,tableCell:KE,tableRow:ZE,text:rD,thematicBreak:nD,toml:Zf,yaml:Zf,definition:Zf,footnoteDefinition:Zf};function Zf(){}i(Zf,"ignore");function iD(e,t){let r=[{type:"text",value:"\u21A9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}i(iD,"defaultFootnoteBackContent");function oD(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}i(oD,"defaultFootnoteBackLabel");function sD(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||iD,n=e.options.footnoteBackLabel||oD,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[],u=-1;for(;++u<e.footnoteOrder.length;){let c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;let f=e.all(c),p=String(c.identifier).toUpperCase(),h=jt(p.toLowerCase()),m=0,d=[],g=e.footnoteCounts.get(p);for(;g!==void 0&&++m<=g;){d.length>0&&d.push({type:"text",value:" "});let T=typeof r=="string"?r:r(u,m);typeof T=="string"&&(T={type:"text",value:T}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(u,m),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}let x=f[f.length-1];if(x&&x.type==="element"&&x.tagName==="p"){let T=x.children[x.children.length-1];T&&T.type==="text"?T.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...d)}else f.push(...d);let b={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(c,b),l.push(b)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Nn(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
84
+ `});let c={type:"element",tagName:"li",properties:s,children:a};return e.patch(t,c),e.applyData(t,c)}i(jE,"listItem");function UH(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n<r.length;)t=WE(r[n])}return t}i(UH,"listLoose");function WE(e){let t=e.spread;return t??e.children.length>1}i(WE,"listItemLoose");function qE(e,t){let r={},n=e.all(t),o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<n.length;){let a=n[o];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,s),e.applyData(t,s)}i(qE,"list");function YE(e,t){let r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}i(YE,"paragraph");function VE(e,t){let r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}i(VE,"root");function QE(e,t){let r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}i(QE,"strong");function GE(e,t){let r=e.all(t),n=r.shift(),o=[];if(n){let a={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],a),o.push(a)}if(r.length>0){let a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},l=Jf(t.children[1]),u=Gf(t.children[t.children.length-1]);l&&u&&(a.position={start:l,end:u}),o.push(a)}let s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}i(GE,"table");function JE(e,t,r){let n=r?r.children:void 0,s=(n?n.indexOf(t):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,l=a?a.length:t.children.length,u=-1,c=[];for(;++u<l;){let p=t.children[u],h={},m=a?a[u]:void 0;m&&(h.align=m);let d={type:"element",tagName:s,properties:h,children:[]};p&&(d.children=e.all(p),e.patch(p,d),d=e.applyData(p,d)),c.push(d)}let f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}i(JE,"tableRow");function KE(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}i(KE,"tableCell");var D3e=9,C3e=32;function ZE(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),o=0,s=[];for(;n;)s.push(XE(t.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(t);return s.push(XE(t.slice(o),o>0,!1)),s.join("")}i(ZE,"trimLines");function XE(e,t,r){let n=0,o=e.length;if(t){let s=e.codePointAt(n);for(;s===9||s===32;)n++,s=e.codePointAt(n)}if(r){let s=e.codePointAt(o-1);for(;s===9||s===32;)o--,s=e.codePointAt(o-1)}return o>n?e.slice(n,o):""}i(XE,"trimLine");function eD(e,t){let r={type:"text",value:ZE(String(t.value))};return e.patch(t,r),e.applyData(t,r)}i(eD,"text");function tD(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}i(tD,"thematicBreak");var vg={blockquote:AE,break:ME,code:_E,delete:NE,emphasis:PE,footnoteReference:FE,heading:LE,html:RE,imageReference:BE,image:zE,inlineCode:$E,linkReference:HE,link:UE,listItem:jE,list:qE,paragraph:YE,root:VE,strong:QE,table:GE,tableCell:KE,tableRow:JE,text:eD,thematicBreak:tD,toml:Zf,yaml:Zf,definition:Zf,footnoteDefinition:Zf};function Zf(){}i(Zf,"ignore");function rD(e,t){let r=[{type:"text",value:"\u21A9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}i(rD,"defaultFootnoteBackContent");function nD(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}i(nD,"defaultFootnoteBackLabel");function iD(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||rD,n=e.options.footnoteBackLabel||nD,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[],u=-1;for(;++u<e.footnoteOrder.length;){let c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;let f=e.all(c),p=String(c.identifier).toUpperCase(),h=jt(p.toLowerCase()),m=0,d=[],g=e.footnoteCounts.get(p);for(;g!==void 0&&++m<=g;){d.length>0&&d.push({type:"text",value:" "});let T=typeof r=="string"?r:r(u,m);typeof T=="string"&&(T={type:"text",value:T}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(u,m),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}let x=f[f.length-1];if(x&&x.type==="element"&&x.tagName==="p"){let T=x.children[x.children.length-1];T&&T.type==="text"?T.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...d)}else f.push(...d);let b={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(c,b),l.push(b)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Pn(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
85
85
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
86
- `}]}}i(sD,"footer");var kg={}.hasOwnProperty,qH={};function lD(e,t){let r=t||qH,n=new Map,o=new Map,s=new Map,a={...vg,...r.handlers},l={all:c,applyData:VH,definitionById:n,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:a,one:u,options:r,patch:YH,wrap:GH};return Da(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){let p=f.type==="definition"?n:o,h=String(f.identifier).toUpperCase();p.has(h)||p.set(h,f)}}),l;function u(f,p){let h=f.type,m=l.handlers[h];if(kg.call(l.handlers,h)&&m)return m(l,f,p);if(l.options.passThrough&&l.options.passThrough.includes(h)){if("children"in f){let{children:g,...x}=f,b=Nn(x);return b.children=l.all(f),b}return Nn(f)}return(l.options.unknownHandler||QH)(l,f,p)}i(u,"one");function c(f){let p=[];if("children"in f){let h=f.children,m=-1;for(;++m<h.length;){let d=l.one(h[m],f);if(d){if(m&&h[m-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=aD(d.value)),!Array.isArray(d)&&d.type==="element")){let g=d.children[0];g&&g.type==="text"&&(g.value=aD(g.value))}Array.isArray(d)?p.push(...d):p.push(d)}}}return p}i(c,"all")}i(lD,"createState");function YH(e,t){e.position&&(t.position=za(e))}i(YH,"patch");function VH(e,t){let r=t;if(e&&e.data){let n=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{let a="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:a}}r.type==="element"&&s&&Object.assign(r.properties,Nn(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}i(VH,"applyData");function QH(e,t){let r=t.data||{},n="value"in t&&!(kg.call(r,"hProperties")||kg.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}i(QH,"defaultUnknownHandler");function GH(e,t){let r=[],n=-1;for(t&&r.push({type:"text",value:`
86
+ `}]}}i(iD,"footer");var kg={}.hasOwnProperty,WH={};function sD(e,t){let r=t||WH,n=new Map,o=new Map,s=new Map,a={...vg,...r.handlers},l={all:c,applyData:qH,definitionById:n,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:a,one:u,options:r,patch:jH,wrap:VH};return Ca(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){let p=f.type==="definition"?n:o,h=String(f.identifier).toUpperCase();p.has(h)||p.set(h,f)}}),l;function u(f,p){let h=f.type,m=l.handlers[h];if(kg.call(l.handlers,h)&&m)return m(l,f,p);if(l.options.passThrough&&l.options.passThrough.includes(h)){if("children"in f){let{children:g,...x}=f,b=Pn(x);return b.children=l.all(f),b}return Pn(f)}return(l.options.unknownHandler||YH)(l,f,p)}i(u,"one");function c(f){let p=[];if("children"in f){let h=f.children,m=-1;for(;++m<h.length;){let d=l.one(h[m],f);if(d){if(m&&h[m-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=oD(d.value)),!Array.isArray(d)&&d.type==="element")){let g=d.children[0];g&&g.type==="text"&&(g.value=oD(g.value))}Array.isArray(d)?p.push(...d):p.push(d)}}}return p}i(c,"all")}i(sD,"createState");function jH(e,t){e.position&&(t.position=$a(e))}i(jH,"patch");function qH(e,t){let r=t;if(e&&e.data){let n=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{let a="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:a}}r.type==="element"&&s&&Object.assign(r.properties,Pn(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}i(qH,"applyData");function YH(e,t){let r=t.data||{},n="value"in t&&!(kg.call(r,"hProperties")||kg.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}i(YH,"defaultUnknownHandler");function VH(e,t){let r=[],n=-1;for(t&&r.push({type:"text",value:`
87
87
  `});++n<e.length;)n&&r.push({type:"text",value:`
88
88
  `}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
89
- `}),r}i(GH,"wrap");function aD(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}i(aD,"trimMarkdownSpaceStart");function Sg(e,t){let r=lD(e,t),n=r.one(e,void 0),o=sD(r),s=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return o&&("children"in s,s.children.push({type:"text",value:`
90
- `},o)),s}i(Sg,"toHast");var uD=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var en=class{static{i(this,"Schema")}constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}};en.prototype.normal={},en.prototype.property={},en.prototype.space=void 0;function Tg(e,t){let r={},n={};for(let o of e)Object.assign(r,o.property),Object.assign(n,o.normal);return new en(r,n,t)}i(Tg,"merge");function ms(e){return e.toLowerCase()}i(ms,"normalize");var st=class{static{i(this,"Info")}constructor(t,r){this.attribute=r,this.property=t}};st.prototype.attribute="",st.prototype.booleanish=!1,st.prototype.boolean=!1,st.prototype.commaOrSpaceSeparated=!1,st.prototype.commaSeparated=!1,st.prototype.defined=!1,st.prototype.mustUseProperty=!1,st.prototype.number=!1,st.prototype.overloadedBoolean=!1,st.prototype.property="",st.prototype.spaceSeparated=!1,st.prototype.space=void 0;var Ha={};se(Ha,{boolean:()=>le,booleanish:()=>We,commaOrSpaceSeparated:()=>Ft,commaSeparated:()=>Ln,number:()=>R,overloadedBoolean:()=>Kf,spaceSeparated:()=>Ie});var JH=0,le=Bi(),We=Bi(),Kf=Bi(),R=Bi(),Ie=Bi(),Ln=Bi(),Ft=Bi();function Bi(){return 2**++JH}i(Bi,"increment");var Eg=Object.keys(Ha),zi=class extends st{static{i(this,"DefinedInfo")}constructor(t,r,n,o){let s=-1;if(super(t,r),cD(this,"space",o),typeof n=="number")for(;++s<Eg.length;){let a=Eg[s];cD(this,Eg[s],(n&Ha[a])===Ha[a])}}};zi.prototype.defined=!0;function cD(e,t,r){r&&(e[t]=r)}i(cD,"mark");function Zt(e){let t={},r={};for(let[n,o]of Object.entries(e.properties)){let s=new zi(n,e.transform(e.attributes||{},n),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(s.mustUseProperty=!0),t[n]=s,r[ms(n)]=n,r[ms(s.attribute)]=n}return new en(t,r,e.space)}i(Zt,"create");var Dg=Zt({properties:{ariaActiveDescendant:null,ariaAtomic:We,ariaAutoComplete:null,ariaBusy:We,ariaChecked:We,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:We,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:We,ariaFlowTo:Ie,ariaGrabbed:We,ariaHasPopup:null,ariaHidden:We,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:R,ariaLive:null,ariaModal:We,ariaMultiLine:We,ariaMultiSelectable:We,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:We,ariaReadOnly:We,ariaRelevant:null,ariaRequired:We,ariaRoleDescription:Ie,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:We,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ep(e,t){return t in e?e[t]:t}i(ep,"caseSensitiveTransform");function tp(e,t){return ep(e,t.toLowerCase())}i(tp,"caseInsensitiveTransform");var fD=Zt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ln,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:Ie,autoFocus:le,autoPlay:le,blocking:Ie,capture:null,charSet:null,checked:le,cite:null,className:Ie,cols:R,colSpan:null,content:null,contentEditable:We,controls:le,controlsList:Ie,coords:R|Ln,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:Kf,draggable:We,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:Ie,height:R,hidden:Kf,high:R,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:le,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:le,optimum:R,pattern:null,ping:Ie,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:Ie,required:le,reversed:le,rows:R,rowSpan:R,sandbox:Ie,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:We,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:We,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:We,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:tp});var pD=Zt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ft,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:Ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ln,g2:Ln,glyphName:Ln,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:Ft,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:R,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ft,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ft,rev:Ft,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ft,requiredFeatures:Ft,requiredFonts:Ft,requiredFormats:Ft,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:Ft,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ft,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ft,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ep});var Cg=Zt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var Og=Zt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tp});var Ig=Zt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var XH=/[A-Z]/g,hD=/-[a-z]/g,ZH=/^data[-\w.:]+$/i;function Ag(e,t){let r=ms(t),n=t,o=st;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&ZH.test(t)){if(t.charAt(4)==="-"){let s=t.slice(5).replace(hD,eW);n="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{let s=t.slice(4);if(!hD.test(s)){let a=s.replace(XH,KH);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}o=zi}return new o(n,t)}i(Ag,"find");function KH(e){return"-"+e.toLowerCase()}i(KH,"kebab");function eW(e){return e.charAt(1).toUpperCase()}i(eW,"camelcase");var mD=Tg([Dg,fD,Cg,Og,Ig],"html"),rp=Tg([Dg,pD,Cg,Og,Ig],"svg");var tW=/["&'<>`]/g,rW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nW=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,iW=/[|\\{}()[\]^$+*?.]/g,dD=new WeakMap;function Mg(e,t){if(e=e.replace(t.subset?oW(t.subset):tW,n),t.subset||t.escapeOnly)return e;return e.replace(rW,r).replace(nW,n);function r(o,s,a){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),t)}function n(o,s,a){return t.format(o.charCodeAt(0),a.charCodeAt(s+1),t)}}i(Mg,"core");function oW(e){let t=dD.get(e);return t||(t=sW(e),dD.set(e,t)),t}i(oW,"charactersToExpressionCached");function sW(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(iW,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}i(sW,"charactersToExpression");var aW=/[\dA-Fa-f]/;function gD(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!aW.test(String.fromCharCode(t))?n:n+";"}i(gD,"toHexadecimal");var lW=/\d/;function xD(e,t,r){let n="&#"+String(e);return r&&t&&!lW.test(String.fromCharCode(t))?n:n+";"}i(xD,"toDecimal");var yD=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var np={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var wD=["cent","copy","divide","gt","lt","not","para","times"];var bD={}.hasOwnProperty,_g={},ip;for(ip in np)bD.call(np,ip)&&(_g[np[ip]]=ip);var uW=/[^\dA-Za-z]/;function vD(e,t,r,n){let o=String.fromCharCode(e);if(bD.call(_g,o)){let s=_g[o],a="&"+s;return r&&yD.includes(s)&&!wD.includes(s)&&(!n||t&&t!==61&&uW.test(String.fromCharCode(t)))?a:a+";"}return""}i(vD,"toNamed");function kD(e,t,r){let n=gD(e,t,r.omitOptionalSemicolons),o;if((r.useNamedReferences||r.useShortestReferences)&&(o=vD(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!o)&&r.useShortestReferences){let s=xD(e,t,r.omitOptionalSemicolons);s.length<n.length&&(n=s)}return o&&(!r.useShortestReferences||o.length<n.length)?o:n}i(kD,"formatSmart");function SD(e){return"&#x"+e.toString(16).toUpperCase()+";"}i(SD,"formatBasic");function tn(e,t){return Mg(e,Object.assign({format:kD},t))}i(tn,"stringifyEntities");function tqe(e,t){return Mg(e,Object.assign({format:SD},t))}i(tqe,"stringifyEntitiesLight");var cW=/^>|^->|<!--|-->|--!>|<!-$/g,fW=[">"],pW=["<",">"];function TD(e,t,r,n){return n.settings.bogusComments?"<?"+tn(e.value,Object.assign({},n.settings.characterReferences,{subset:fW}))+">":"<!--"+e.value.replace(cW,o)+"-->";function o(s){return tn(s,Object.assign({},n.settings.characterReferences,{subset:pW}))}}i(TD,"comment");function ED(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}i(ED,"doctype");function uqe(e){let t=[],r=String(e||""),n=r.indexOf(","),o=0,s=!1;for(;!s;){n===-1&&(n=r.length,s=!0);let a=r.slice(o,n).trim();(a||!s)&&t.push(a),o=n+1,n=r.indexOf(",",o)}return t}i(uqe,"parse");function DD(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}i(DD,"stringify");function pqe(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}i(pqe,"parse");function CD(e){return e.join(" ").trim()}i(CD,"stringify");var hW=/[ \t\n\f\r]/g;function $i(e){return typeof e=="object"?e.type==="text"?OD(e.value):!1:OD(e)}i($i,"whitespace");function OD(e){return e.replace(hW,"")===""}i(OD,"empty");var qe=ID(1),Pg=ID(-1),mW=[];function ID(e){return t;function t(r,n,o){let s=r?r.children:mW,a=(n||0)+e,l=s[a];if(!o)for(;l&&$i(l);)a+=e,l=s[a];return l}}i(ID,"siblings");var dW={}.hasOwnProperty;function op(e){return t;function t(r,n,o){return dW.call(e,r.tagName)&&e[r.tagName](r,n,o)}}i(op,"omission");var Wa=op({body:xW,caption:Ng,colgroup:Ng,dd:vW,dt:bW,head:Ng,html:gW,li:wW,optgroup:kW,option:SW,p:yW,rp:AD,rt:AD,tbody:EW,td:MD,tfoot:DW,th:MD,thead:TW,tr:CW});function Ng(e,t,r){let n=qe(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&$i(n.value.charAt(0)))}i(Ng,"headOrColgroupOrCaption");function gW(e,t,r){let n=qe(r,t);return!n||n.type!=="comment"}i(gW,"html");function xW(e,t,r){let n=qe(r,t);return!n||n.type!=="comment"}i(xW,"body");function yW(e,t,r){let n=qe(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}i(yW,"p");function wW(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&n.tagName==="li"}i(wW,"li");function bW(e,t,r){let n=qe(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}i(bW,"dt");function vW(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}i(vW,"dd");function AD(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}i(AD,"rubyElement");function kW(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}i(kW,"optgroup");function SW(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}i(SW,"option");function TW(e,t,r){let n=qe(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}i(TW,"thead");function EW(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}i(EW,"tbody");function DW(e,t,r){return!qe(r,t)}i(DW,"tfoot");function CW(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&n.tagName==="tr"}i(CW,"tr");function MD(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}i(MD,"cells");var _D=op({body:AW,colgroup:MW,head:IW,html:OW,tbody:_W});function OW(e){let t=qe(e,-1);return!t||t.type!=="comment"}i(OW,"html");function IW(e){let t=new Set;for(let n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}let r=e.children[0];return!r||r.type==="element"}i(IW,"head");function AW(e){let t=qe(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&$i(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}i(AW,"body");function MW(e,t,r){let n=Pg(r,t),o=qe(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Wa(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}i(MW,"colgroup");function _W(e,t,r){let n=Pg(r,t),o=qe(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Wa(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}i(_W,"tbody");var sp={name:[[`
89
+ `}),r}i(VH,"wrap");function oD(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}i(oD,"trimMarkdownSpaceStart");function Sg(e,t){let r=sD(e,t),n=r.one(e,void 0),o=iD(r),s=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return o&&("children"in s,s.children.push({type:"text",value:`
90
+ `},o)),s}i(Sg,"toHast");var aD=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var en=class{static{i(this,"Schema")}constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}};en.prototype.normal={},en.prototype.property={},en.prototype.space=void 0;function Tg(e,t){let r={},n={};for(let o of e)Object.assign(r,o.property),Object.assign(n,o.normal);return new en(r,n,t)}i(Tg,"merge");function ms(e){return e.toLowerCase()}i(ms,"normalize");var st=class{static{i(this,"Info")}constructor(t,r){this.attribute=r,this.property=t}};st.prototype.attribute="",st.prototype.booleanish=!1,st.prototype.boolean=!1,st.prototype.commaOrSpaceSeparated=!1,st.prototype.commaSeparated=!1,st.prototype.defined=!1,st.prototype.mustUseProperty=!1,st.prototype.number=!1,st.prototype.overloadedBoolean=!1,st.prototype.property="",st.prototype.spaceSeparated=!1,st.prototype.space=void 0;var Ua={};se(Ua,{boolean:()=>le,booleanish:()=>Ue,commaOrSpaceSeparated:()=>Ft,commaSeparated:()=>Ln,number:()=>R,overloadedBoolean:()=>ep,spaceSeparated:()=>Ie});var QH=0,le=Fi(),Ue=Fi(),ep=Fi(),R=Fi(),Ie=Fi(),Ln=Fi(),Ft=Fi();function Fi(){return 2**++QH}i(Fi,"increment");var Eg=Object.keys(Ua),Li=class extends st{static{i(this,"DefinedInfo")}constructor(t,r,n,o){let s=-1;if(super(t,r),lD(this,"space",o),typeof n=="number")for(;++s<Eg.length;){let a=Eg[s];lD(this,Eg[s],(n&Ua[a])===Ua[a])}}};Li.prototype.defined=!0;function lD(e,t,r){r&&(e[t]=r)}i(lD,"mark");function Xt(e){let t={},r={};for(let[n,o]of Object.entries(e.properties)){let s=new Li(n,e.transform(e.attributes||{},n),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(s.mustUseProperty=!0),t[n]=s,r[ms(n)]=n,r[ms(s.attribute)]=n}return new en(t,r,e.space)}i(Xt,"create");var Dg=Xt({properties:{ariaActiveDescendant:null,ariaAtomic:Ue,ariaAutoComplete:null,ariaBusy:Ue,ariaChecked:Ue,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:Ue,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:Ue,ariaFlowTo:Ie,ariaGrabbed:Ue,ariaHasPopup:null,ariaHidden:Ue,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:R,ariaLive:null,ariaModal:Ue,ariaMultiLine:Ue,ariaMultiSelectable:Ue,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:Ue,ariaReadOnly:Ue,ariaRelevant:null,ariaRequired:Ue,ariaRoleDescription:Ie,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:Ue,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function tp(e,t){return t in e?e[t]:t}i(tp,"caseSensitiveTransform");function rp(e,t){return tp(e,t.toLowerCase())}i(rp,"caseInsensitiveTransform");var uD=Xt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ln,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:Ie,autoFocus:le,autoPlay:le,blocking:Ie,capture:null,charSet:null,checked:le,cite:null,className:Ie,cols:R,colSpan:null,content:null,contentEditable:Ue,controls:le,controlsList:Ie,coords:R|Ln,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:ep,draggable:Ue,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:Ie,height:R,hidden:ep,high:R,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:le,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:le,muted:le,name:null,nonce:null,noModule:le,noValidate:le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:le,optimum:R,pattern:null,ping:Ie,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:Ie,required:le,reversed:le,rows:R,rowSpan:R,sandbox:Ie,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:Ue,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:Ue,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:le,declare:le,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:Ue,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:rp});var cD=Xt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ft,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:Ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ln,g2:Ln,glyphName:Ln,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:Ft,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:R,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ft,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ft,rev:Ft,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ft,requiredFeatures:Ft,requiredFonts:Ft,requiredFormats:Ft,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:Ft,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ft,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ft,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:tp});var Cg=Xt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var Ig=Xt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:rp});var Og=Xt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var GH=/[A-Z]/g,fD=/-[a-z]/g,JH=/^data[-\w.:]+$/i;function Ag(e,t){let r=ms(t),n=t,o=st;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&JH.test(t)){if(t.charAt(4)==="-"){let s=t.slice(5).replace(fD,XH);n="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{let s=t.slice(4);if(!fD.test(s)){let a=s.replace(GH,KH);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}o=Li}return new o(n,t)}i(Ag,"find");function KH(e){return"-"+e.toLowerCase()}i(KH,"kebab");function XH(e){return e.charAt(1).toUpperCase()}i(XH,"camelcase");var pD=Tg([Dg,uD,Cg,Ig,Og],"html"),np=Tg([Dg,cD,Cg,Ig,Og],"svg");var ZH=/["&'<>`]/g,eU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tU=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,rU=/[|\\{}()[\]^$+*?.]/g,hD=new WeakMap;function Mg(e,t){if(e=e.replace(t.subset?nU(t.subset):ZH,n),t.subset||t.escapeOnly)return e;return e.replace(eU,r).replace(tU,n);function r(o,s,a){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),t)}function n(o,s,a){return t.format(o.charCodeAt(0),a.charCodeAt(s+1),t)}}i(Mg,"core");function nU(e){let t=hD.get(e);return t||(t=iU(e),hD.set(e,t)),t}i(nU,"charactersToExpressionCached");function iU(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(rU,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}i(iU,"charactersToExpression");var oU=/[\dA-Fa-f]/;function mD(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!oU.test(String.fromCharCode(t))?n:n+";"}i(mD,"toHexadecimal");var sU=/\d/;function dD(e,t,r){let n="&#"+String(e);return r&&t&&!sU.test(String.fromCharCode(t))?n:n+";"}i(dD,"toDecimal");var gD=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var ip={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var xD=["cent","copy","divide","gt","lt","not","para","times"];var yD={}.hasOwnProperty,_g={},op;for(op in ip)yD.call(ip,op)&&(_g[ip[op]]=op);var aU=/[^\dA-Za-z]/;function wD(e,t,r,n){let o=String.fromCharCode(e);if(yD.call(_g,o)){let s=_g[o],a="&"+s;return r&&gD.includes(s)&&!xD.includes(s)&&(!n||t&&t!==61&&aU.test(String.fromCharCode(t)))?a:a+";"}return""}i(wD,"toNamed");function bD(e,t,r){let n=mD(e,t,r.omitOptionalSemicolons),o;if((r.useNamedReferences||r.useShortestReferences)&&(o=wD(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!o)&&r.useShortestReferences){let s=dD(e,t,r.omitOptionalSemicolons);s.length<n.length&&(n=s)}return o&&(!r.useShortestReferences||o.length<n.length)?o:n}i(bD,"formatSmart");function vD(e){return"&#x"+e.toString(16).toUpperCase()+";"}i(vD,"formatBasic");function tn(e,t){return Mg(e,Object.assign({format:bD},t))}i(tn,"stringifyEntities");function eqe(e,t){return Mg(e,Object.assign({format:vD},t))}i(eqe,"stringifyEntitiesLight");var lU=/^>|^->|<!--|-->|--!>|<!-$/g,uU=[">"],cU=["<",">"];function kD(e,t,r,n){return n.settings.bogusComments?"<?"+tn(e.value,Object.assign({},n.settings.characterReferences,{subset:uU}))+">":"<!--"+e.value.replace(lU,o)+"-->";function o(s){return tn(s,Object.assign({},n.settings.characterReferences,{subset:cU}))}}i(kD,"comment");function SD(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}i(SD,"doctype");function lqe(e){let t=[],r=String(e||""),n=r.indexOf(","),o=0,s=!1;for(;!s;){n===-1&&(n=r.length,s=!0);let a=r.slice(o,n).trim();(a||!s)&&t.push(a),o=n+1,n=r.indexOf(",",o)}return t}i(lqe,"parse");function TD(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}i(TD,"stringify");function fqe(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}i(fqe,"parse");function ED(e){return e.join(" ").trim()}i(ED,"stringify");var fU=/[ \t\n\f\r]/g;function Ri(e){return typeof e=="object"?e.type==="text"?DD(e.value):!1:DD(e)}i(Ri,"whitespace");function DD(e){return e.replace(fU,"")===""}i(DD,"empty");var qe=CD(1),Ng=CD(-1),pU=[];function CD(e){return t;function t(r,n,o){let s=r?r.children:pU,a=(n||0)+e,l=s[a];if(!o)for(;l&&Ri(l);)a+=e,l=s[a];return l}}i(CD,"siblings");var hU={}.hasOwnProperty;function sp(e){return t;function t(r,n,o){return hU.call(e,r.tagName)&&e[r.tagName](r,n,o)}}i(sp,"omission");var Wa=sp({body:dU,caption:Pg,colgroup:Pg,dd:wU,dt:yU,head:Pg,html:mU,li:xU,optgroup:bU,option:vU,p:gU,rp:ID,rt:ID,tbody:SU,td:OD,tfoot:TU,th:OD,thead:kU,tr:EU});function Pg(e,t,r){let n=qe(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Ri(n.value.charAt(0)))}i(Pg,"headOrColgroupOrCaption");function mU(e,t,r){let n=qe(r,t);return!n||n.type!=="comment"}i(mU,"html");function dU(e,t,r){let n=qe(r,t);return!n||n.type!=="comment"}i(dU,"body");function gU(e,t,r){let n=qe(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}i(gU,"p");function xU(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&n.tagName==="li"}i(xU,"li");function yU(e,t,r){let n=qe(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}i(yU,"dt");function wU(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}i(wU,"dd");function ID(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}i(ID,"rubyElement");function bU(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}i(bU,"optgroup");function vU(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}i(vU,"option");function kU(e,t,r){let n=qe(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}i(kU,"thead");function SU(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}i(SU,"tbody");function TU(e,t,r){return!qe(r,t)}i(TU,"tfoot");function EU(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&n.tagName==="tr"}i(EU,"tr");function OD(e,t,r){let n=qe(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}i(OD,"cells");var AD=sp({body:IU,colgroup:OU,head:CU,html:DU,tbody:AU});function DU(e){let t=qe(e,-1);return!t||t.type!=="comment"}i(DU,"html");function CU(e){let t=new Set;for(let n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}let r=e.children[0];return!r||r.type==="element"}i(CU,"head");function IU(e){let t=qe(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ri(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}i(IU,"body");function OU(e,t,r){let n=Ng(r,t),o=qe(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Wa(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}i(OU,"colgroup");function AU(e,t,r){let n=Ng(r,t),o=qe(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Wa(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}i(AU,"tbody");var ap={name:[[`
91
91
  \f\r &/=>`.split(""),`
92
92
  \f\r "&'/=>\``.split("")],[`\0
93
93
  \f\r "&'/<=>`.split(""),`\0
@@ -95,14 +95,14 @@ ${o}
95
95
  \f\r &>`.split(""),`\0
96
96
  \f\r "&'<=>\``.split("")],[`\0
97
97
  \f\r "&'<=>\``.split(""),`\0
98
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function PD(e,t,r,n){let o=n.schema,s=o.space==="svg"?!1:n.settings.omitOptionalTags,a=o.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),l=[],u;o.space==="html"&&e.tagName==="svg"&&(n.schema=rp);let c=PW(n,e.properties),f=n.all(o.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=o,f&&(a=!1),(c||!s||!_D(e,t,r))&&(l.push("<",e.tagName,c?" "+c:""),a&&(o.space==="svg"||n.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!n.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(f),!a&&(!s||!Wa(e,t,r))&&l.push("</"+e.tagName+">"),l.join("")}i(PD,"element");function PW(e,t){let r=[],n=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){let s=NW(e,o,t[o]);s&&r.push(s)}}for(;++n<r.length;){let s=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&s!=='"'&&s!=="'"&&(r[n]+=" ")}return r.join("")}i(PW,"serializeAttributes");function NW(e,t,r){let n=Ag(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1,a=e.quote,l;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let u=tn(n.attribute,Object.assign({},e.settings.characterReferences,{subset:sp.name[o][s]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?DD:CD)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?u:(e.settings.preferUnquoted&&(l=tn(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:sp.unquoted[o][s]}))),l!==r&&(e.settings.quoteSmart&&rs(r,a)>rs(r,e.alternative)&&(a=e.alternative),l=a+tn(r,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?sp.single:sp.double)[o][s],attribute:!0}))+a),u+(l&&"="+l))}i(NW,"serializeAttribute");var FW=["<","&"];function ap(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:tn(e.value,Object.assign({},n.settings.characterReferences,{subset:FW}))}i(ap,"text");function ND(e,t,r,n){return n.settings.allowDangerousHtml?e.value:ap(e,t,r,n)}i(ND,"raw");function FD(e,t,r,n){return n.all(e)}i(FD,"root");var LD=vf("type",{invalid:LW,unknown:RW,handlers:{comment:TD,doctype:ED,element:PD,raw:ND,root:FD,text:ap}});function LW(e){throw new Error("Expected node, not `"+e+"`")}i(LW,"invalid");function RW(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}i(RW,"unknown");var BW={},zW={},$W=[];function Fg(e,t){let r=t||BW,n=r.quote||'"',o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:HW,all:WW,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||uD,characterReferences:r.characterReferences||zW,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?rp:mD,quote:n,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}i(Fg,"toHtml");function HW(e,t,r){return LD(e,t,r,this)}i(HW,"one");function WW(e){let t=[],r=e&&e.children||$W,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}i(WW,"all");var UW={};function ds(e){let t=this,{handlers:r,sanitize:n,...o}=e||UW,s=!1,a;typeof n=="boolean"?s=!n:n&&(a=n),t.compiler=l;function l(u,c){let f=Sg(u,{handlers:r,allowDangerousHtml:s}),p=s?f:bg(f,a),h=Fg(p,{...o,allowDangerousHtml:s});return c.extname&&(c.extname=".html"),u&&u.type==="root"&&h&&/[^\r\n]/.test(h.charAt(h.length-1))?h+`
99
- `:h}i(l,"compiler")}i(ds,"remarkHtml");function gs(e){let t=this;t.compiler=r;function r(n){return Cd(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}i(r,"compiler")}i(gs,"remarkStringify");function jW(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}i(jW,"extend");function Lg(e,t){return Array(t+1).join(e)}i(Lg,"repeat");function RD(e){return e.replace(/^\n*/,"")}i(RD,"trimLeadingNewlines");function BD(e){for(var t=e.length;t>0&&e[t-1]===`
100
- `;)t--;return e.substring(0,t)}i(BD,"trimTrailingNewlines");function zD(e){return BD(RD(e))}i(zD,"trimNewlines");var qW=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function Rg(e){return Bg(e,qW)}i(Rg,"isBlock");var $D=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function HD(e){return Bg(e,$D)}i(HD,"isVoid");function YW(e){return UD(e,$D)}i(YW,"hasVoid");var WD=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function VW(e){return Bg(e,WD)}i(VW,"isMeaningfulWhenBlank");function QW(e){return UD(e,WD)}i(QW,"hasMeaningfulWhenBlank");function Bg(e,t){return t.indexOf(e.nodeName)>=0}i(Bg,"is");function UD(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}i(UD,"has");var bt={};bt.paragraph={filter:"p",replacement:i(function(e){return`
98
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function MD(e,t,r,n){let o=n.schema,s=o.space==="svg"?!1:n.settings.omitOptionalTags,a=o.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),l=[],u;o.space==="html"&&e.tagName==="svg"&&(n.schema=np);let c=MU(n,e.properties),f=n.all(o.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=o,f&&(a=!1),(c||!s||!AD(e,t,r))&&(l.push("<",e.tagName,c?" "+c:""),a&&(o.space==="svg"||n.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!n.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(f),!a&&(!s||!Wa(e,t,r))&&l.push("</"+e.tagName+">"),l.join("")}i(MD,"element");function MU(e,t){let r=[],n=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){let s=_U(e,o,t[o]);s&&r.push(s)}}for(;++n<r.length;){let s=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&s!=='"'&&s!=="'"&&(r[n]+=" ")}return r.join("")}i(MU,"serializeAttributes");function _U(e,t,r){let n=Ag(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1,a=e.quote,l;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let u=tn(n.attribute,Object.assign({},e.settings.characterReferences,{subset:ap.name[o][s]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?TD:ED)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?u:(e.settings.preferUnquoted&&(l=tn(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ap.unquoted[o][s]}))),l!==r&&(e.settings.quoteSmart&&rs(r,a)>rs(r,e.alternative)&&(a=e.alternative),l=a+tn(r,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?ap.single:ap.double)[o][s],attribute:!0}))+a),u+(l&&"="+l))}i(_U,"serializeAttribute");var NU=["<","&"];function lp(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:tn(e.value,Object.assign({},n.settings.characterReferences,{subset:NU}))}i(lp,"text");function _D(e,t,r,n){return n.settings.allowDangerousHtml?e.value:lp(e,t,r,n)}i(_D,"raw");function ND(e,t,r,n){return n.all(e)}i(ND,"root");var PD=kf("type",{invalid:PU,unknown:FU,handlers:{comment:kD,doctype:SD,element:MD,raw:_D,root:ND,text:lp}});function PU(e){throw new Error("Expected node, not `"+e+"`")}i(PU,"invalid");function FU(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}i(FU,"unknown");var LU={},RU={},BU=[];function Fg(e,t){let r=t||LU,n=r.quote||'"',o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:zU,all:$U,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||aD,characterReferences:r.characterReferences||RU,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?np:pD,quote:n,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}i(Fg,"toHtml");function zU(e,t,r){return PD(e,t,r,this)}i(zU,"one");function $U(e){let t=[],r=e&&e.children||BU,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}i($U,"all");var HU={};function ds(e){let t=this,{handlers:r,sanitize:n,...o}=e||HU,s=!1,a;typeof n=="boolean"?s=!n:n&&(a=n),t.compiler=l;function l(u,c){let f=Sg(u,{handlers:r,allowDangerousHtml:s}),p=s?f:bg(f,a),h=Fg(p,{...o,allowDangerousHtml:s});return c.extname&&(c.extname=".html"),u&&u.type==="root"&&h&&/[^\r\n]/.test(h.charAt(h.length-1))?h+`
99
+ `:h}i(l,"compiler")}i(ds,"remarkHtml");function gs(e){let t=this;t.compiler=r;function r(n){return Cd(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}i(r,"compiler")}i(gs,"remarkStringify");function UU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}i(UU,"extend");function Lg(e,t){return Array(t+1).join(e)}i(Lg,"repeat");function FD(e){return e.replace(/^\n*/,"")}i(FD,"trimLeadingNewlines");function LD(e){for(var t=e.length;t>0&&e[t-1]===`
100
+ `;)t--;return e.substring(0,t)}i(LD,"trimTrailingNewlines");function RD(e){return LD(FD(e))}i(RD,"trimNewlines");var WU=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function Rg(e){return Bg(e,WU)}i(Rg,"isBlock");var BD=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function zD(e){return Bg(e,BD)}i(zD,"isVoid");function jU(e){return HD(e,BD)}i(jU,"hasVoid");var $D=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function qU(e){return Bg(e,$D)}i(qU,"isMeaningfulWhenBlank");function YU(e){return HD(e,$D)}i(YU,"hasMeaningfulWhenBlank");function Bg(e,t){return t.indexOf(e.nodeName)>=0}i(Bg,"is");function HD(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}i(HD,"has");var wt={};wt.paragraph={filter:"p",replacement:i(function(e){return`
101
101
 
102
102
  `+e+`
103
103
 
104
- `},"replacement")},bt.lineBreak={filter:"br",replacement:i(function(e,t,r){return r.br+`
105
- `},"replacement")},bt.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:i(function(e,t,r){var n=Number(t.nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var o=Lg(n===1?"=":"-",e.length);return`
104
+ `},"replacement")},wt.lineBreak={filter:"br",replacement:i(function(e,t,r){return r.br+`
105
+ `},"replacement")},wt.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:i(function(e,t,r){var n=Number(t.nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var o=Lg(n===1?"=":"-",e.length);return`
106
106
 
107
107
  `+e+`
108
108
  `+o+`
@@ -111,40 +111,40 @@ ${o}
111
111
 
112
112
  `+Lg("#",n)+" "+e+`
113
113
 
114
- `},"replacement")},bt.blockquote={filter:"blockquote",replacement:i(function(e){return e=zD(e).replace(/^/gm,"> "),`
114
+ `},"replacement")},wt.blockquote={filter:"blockquote",replacement:i(function(e){return e=RD(e).replace(/^/gm,"> "),`
115
115
 
116
116
  `+e+`
117
117
 
118
- `},"replacement")},bt.list={filter:["ul","ol"],replacement:i(function(e,t){var r=t.parentNode;return r.nodeName==="LI"&&r.lastElementChild===t?`
118
+ `},"replacement")},wt.list={filter:["ul","ol"],replacement:i(function(e,t){var r=t.parentNode;return r.nodeName==="LI"&&r.lastElementChild===t?`
119
119
  `+e:`
120
120
 
121
121
  `+e+`
122
122
 
123
- `},"replacement")},bt.listItem={filter:"li",replacement:i(function(e,t,r){var n=r.bulletListMarker+" ",o=t.parentNode;if(o.nodeName==="OL"){var s=o.getAttribute("start"),a=Array.prototype.indexOf.call(o.children,t);n=(s?Number(s)+a:a+1)+". "}var l=/\n$/.test(e);return e=zD(e)+(l?`
123
+ `},"replacement")},wt.listItem={filter:"li",replacement:i(function(e,t,r){var n=r.bulletListMarker+" ",o=t.parentNode;if(o.nodeName==="OL"){var s=o.getAttribute("start"),a=Array.prototype.indexOf.call(o.children,t);n=(s?Number(s)+a:a+1)+". "}var l=/\n$/.test(e);return e=RD(e)+(l?`
124
124
  `:""),e=e.replace(/\n/gm,`
125
125
  `+" ".repeat(n.length)),n+e+(t.nextSibling?`
126
- `:"")},"replacement")},bt.indentedCodeBlock={filter:i(function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},"filter"),replacement:i(function(e,t,r){return`
126
+ `:"")},"replacement")},wt.indentedCodeBlock={filter:i(function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},"filter"),replacement:i(function(e,t,r){return`
127
127
 
128
128
  `+t.firstChild.textContent.replace(/\n/g,`
129
129
  `)+`
130
130
 
131
- `},"replacement")},bt.fencedCodeBlock={filter:i(function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},"filter"),replacement:i(function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",o=(n.match(/language-(\S+)/)||[null,""])[1],s=t.firstChild.textContent,a=r.fence.charAt(0),l=3,u=new RegExp("^"+a+"{3,}","gm"),c;c=u.exec(s);)c[0].length>=l&&(l=c[0].length+1);var f=Lg(a,l);return`
131
+ `},"replacement")},wt.fencedCodeBlock={filter:i(function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},"filter"),replacement:i(function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",o=(n.match(/language-(\S+)/)||[null,""])[1],s=t.firstChild.textContent,a=r.fence.charAt(0),l=3,u=new RegExp("^"+a+"{3,}","gm"),c;c=u.exec(s);)c[0].length>=l&&(l=c[0].length+1);var f=Lg(a,l);return`
132
132
 
133
133
  `+f+o+`
134
134
  `+s.replace(/\n$/,"")+`
135
135
  `+f+`
136
136
 
137
- `},"replacement")},bt.horizontalRule={filter:"hr",replacement:i(function(e,t,r){return`
137
+ `},"replacement")},wt.horizontalRule={filter:"hr",replacement:i(function(e,t,r){return`
138
138
 
139
139
  `+r.hr+`
140
140
 
141
- `},"replacement")},bt.inlineLink={filter:i(function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},"filter"),replacement:i(function(e,t){var r=t.getAttribute("href");r&&(r=r.replace(/([()])/g,"\\$1"));var n=lp(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"},"replacement")},bt.referenceLink={filter:i(function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},"filter"),replacement:i(function(e,t,r){var n=t.getAttribute("href"),o=lp(t.getAttribute("title"));o&&(o=' "'+o+'"');var s,a;switch(r.linkReferenceStyle){case"collapsed":s="["+e+"][]",a="["+e+"]: "+n+o;break;case"shortcut":s="["+e+"]",a="["+e+"]: "+n+o;break;default:var l=this.references.length+1;s="["+e+"]["+l+"]",a="["+l+"]: "+n+o}return this.references.push(a),s},"replacement"),references:[],append:i(function(e){var t="";return this.references.length&&(t=`
141
+ `},"replacement")},wt.inlineLink={filter:i(function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},"filter"),replacement:i(function(e,t){var r=t.getAttribute("href");r&&(r=r.replace(/([()])/g,"\\$1"));var n=up(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"},"replacement")},wt.referenceLink={filter:i(function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},"filter"),replacement:i(function(e,t,r){var n=t.getAttribute("href"),o=up(t.getAttribute("title"));o&&(o=' "'+o+'"');var s,a;switch(r.linkReferenceStyle){case"collapsed":s="["+e+"][]",a="["+e+"]: "+n+o;break;case"shortcut":s="["+e+"]",a="["+e+"]: "+n+o;break;default:var l=this.references.length+1;s="["+e+"]["+l+"]",a="["+l+"]: "+n+o}return this.references.push(a),s},"replacement"),references:[],append:i(function(e){var t="";return this.references.length&&(t=`
142
142
 
143
143
  `+this.references.join(`
144
144
  `)+`
145
145
 
146
- `,this.references=[]),t},"append")},bt.emphasis={filter:["em","i"],replacement:i(function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""},"replacement")},bt.strong={filter:["strong","b"],replacement:i(function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""},"replacement")},bt.code={filter:i(function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},"filter"),replacement:i(function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r},"replacement")},bt.image={filter:"img",replacement:i(function(e,t){var r=lp(t.getAttribute("alt")),n=t.getAttribute("src")||"",o=lp(t.getAttribute("title")),s=o?' "'+o+'"':"";return n?"!["+r+"]("+n+s+")":""},"replacement")};function lp(e){return e?e.replace(/(\n+\s*)+/g,`
147
- `):""}i(lp,"cleanAttribute");function jD(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}i(jD,"Rules"),jD.prototype={add:i(function(e,t){this.array.unshift(t)},"add"),keep:i(function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},"keep"),remove:i(function(e){this._remove.unshift({filter:e,replacement:i(function(){return""},"replacement")})},"remove"),forNode:i(function(e){if(e.isBlank)return this.blankRule;var t;return(t=zg(this.array,e,this.options))||(t=zg(this._keep,e,this.options))||(t=zg(this._remove,e,this.options))?t:this.defaultRule},"forNode"),forEach:i(function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)},"forEach")};function zg(e,t,r){for(var n=0;n<e.length;n++){var o=e[n];if(GW(o,t,r))return o}}i(zg,"findRule");function GW(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}i(GW,"filterValue");function JW(e){var t=e.element,r=e.isBlock,n=e.isVoid,o=e.isPre||function(p){return p.nodeName==="PRE"};if(!(!t.firstChild||o(t))){for(var s=null,a=!1,l=null,u=qD(l,t,o);u!==t;){if(u.nodeType===3||u.nodeType===4){var c=u.data.replace(/[ \r\n\t]+/g," ");if((!s||/ $/.test(s.data))&&!a&&c[0]===" "&&(c=c.substr(1)),!c){u=$g(u);continue}u.data=c,s=u}else if(u.nodeType===1)r(u)||u.nodeName==="BR"?(s&&(s.data=s.data.replace(/ $/,"")),s=null,a=!1):n(u)||o(u)?(s=null,a=!0):s&&(a=!1);else{u=$g(u);continue}var f=qD(l,u,o);l=u,u=f}s&&(s.data=s.data.replace(/ $/,""),s.data||$g(s))}}i(JW,"collapseWhitespace");function $g(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}i($g,"remove");function qD(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}i(qD,"next");var Hg=typeof window<"u"?window:{};function XW(){var e=Hg.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}i(XW,"canParseHTMLNatively");function ZW(){var e=i(function(){},"Parser");return KW()?e.prototype.parseFromString=function(t){var r=new window.ActiveXObject("htmlfile");return r.designMode="on",r.open(),r.write(t),r.close(),r}:e.prototype.parseFromString=function(t){var r=document.implementation.createHTMLDocument("");return r.open(),r.write(t),r.close(),r},e}i(ZW,"createHTMLParser");function KW(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch{Hg.ActiveXObject&&(e=!0)}return e}i(KW,"shouldUseActiveX");var eU=XW()?Hg.DOMParser:ZW();function tU(e,t){var r;if(typeof e=="string"){var n=rU().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return JW({element:r,isBlock:Rg,isVoid:HD,isPre:t.preformattedCode?nU:null}),r}i(tU,"RootNode");var Wg;function rU(){return Wg=Wg||new eU,Wg}i(rU,"htmlParser");function nU(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}i(nU,"isPreOrCode");function iU(e,t){return e.isBlock=Rg(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=oU(e),e.flankingWhitespace=sU(e,t),e}i(iU,"Node");function oU(e){return!HD(e)&&!VW(e)&&/^\s*$/i.test(e.textContent)&&!YW(e)&&!QW(e)}i(oU,"isBlank");function sU(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=aU(e.textContent);return r.leadingAscii&&YD("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&YD("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}i(sU,"flankingWhitespace");function aU(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}i(aU,"edgeWhitespace");function YD(e,t,r){var n,o,s;return e==="left"?(n=t.previousSibling,o=/ $/):(n=t.nextSibling,o=/^ /),n&&(n.nodeType===3?s=o.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?s=!1:n.nodeType===1&&!Rg(n)&&(s=o.test(n.textContent))),s}i(YD,"isFlankedByWhitespace");var lU=Array.prototype.reduce,uU=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function up(e){if(!(this instanceof up))return new up(e);var t={rules:bt,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:i(function(r,n){return n.isBlock?`
146
+ `,this.references=[]),t},"append")},wt.emphasis={filter:["em","i"],replacement:i(function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""},"replacement")},wt.strong={filter:["strong","b"],replacement:i(function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""},"replacement")},wt.code={filter:i(function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},"filter"),replacement:i(function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r},"replacement")},wt.image={filter:"img",replacement:i(function(e,t){var r=up(t.getAttribute("alt")),n=t.getAttribute("src")||"",o=up(t.getAttribute("title")),s=o?' "'+o+'"':"";return n?"!["+r+"]("+n+s+")":""},"replacement")};function up(e){return e?e.replace(/(\n+\s*)+/g,`
147
+ `):""}i(up,"cleanAttribute");function UD(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}i(UD,"Rules"),UD.prototype={add:i(function(e,t){this.array.unshift(t)},"add"),keep:i(function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},"keep"),remove:i(function(e){this._remove.unshift({filter:e,replacement:i(function(){return""},"replacement")})},"remove"),forNode:i(function(e){if(e.isBlank)return this.blankRule;var t;return(t=zg(this.array,e,this.options))||(t=zg(this._keep,e,this.options))||(t=zg(this._remove,e,this.options))?t:this.defaultRule},"forNode"),forEach:i(function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)},"forEach")};function zg(e,t,r){for(var n=0;n<e.length;n++){var o=e[n];if(VU(o,t,r))return o}}i(zg,"findRule");function VU(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}i(VU,"filterValue");function QU(e){var t=e.element,r=e.isBlock,n=e.isVoid,o=e.isPre||function(p){return p.nodeName==="PRE"};if(!(!t.firstChild||o(t))){for(var s=null,a=!1,l=null,u=WD(l,t,o);u!==t;){if(u.nodeType===3||u.nodeType===4){var c=u.data.replace(/[ \r\n\t]+/g," ");if((!s||/ $/.test(s.data))&&!a&&c[0]===" "&&(c=c.substr(1)),!c){u=$g(u);continue}u.data=c,s=u}else if(u.nodeType===1)r(u)||u.nodeName==="BR"?(s&&(s.data=s.data.replace(/ $/,"")),s=null,a=!1):n(u)||o(u)?(s=null,a=!0):s&&(a=!1);else{u=$g(u);continue}var f=WD(l,u,o);l=u,u=f}s&&(s.data=s.data.replace(/ $/,""),s.data||$g(s))}}i(QU,"collapseWhitespace");function $g(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}i($g,"remove");function WD(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}i(WD,"next");var Hg=typeof window<"u"?window:{};function GU(){var e=Hg.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}i(GU,"canParseHTMLNatively");function JU(){var e=i(function(){},"Parser");return KU()?e.prototype.parseFromString=function(t){var r=new window.ActiveXObject("htmlfile");return r.designMode="on",r.open(),r.write(t),r.close(),r}:e.prototype.parseFromString=function(t){var r=document.implementation.createHTMLDocument("");return r.open(),r.write(t),r.close(),r},e}i(JU,"createHTMLParser");function KU(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch{Hg.ActiveXObject&&(e=!0)}return e}i(KU,"shouldUseActiveX");var XU=GU()?Hg.DOMParser:JU();function ZU(e,t){var r;if(typeof e=="string"){var n=eW().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return QU({element:r,isBlock:Rg,isVoid:zD,isPre:t.preformattedCode?tW:null}),r}i(ZU,"RootNode");var Ug;function eW(){return Ug=Ug||new XU,Ug}i(eW,"htmlParser");function tW(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}i(tW,"isPreOrCode");function rW(e,t){return e.isBlock=Rg(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=nW(e),e.flankingWhitespace=iW(e,t),e}i(rW,"Node");function nW(e){return!zD(e)&&!qU(e)&&/^\s*$/i.test(e.textContent)&&!jU(e)&&!YU(e)}i(nW,"isBlank");function iW(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=oW(e.textContent);return r.leadingAscii&&jD("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&jD("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}i(iW,"flankingWhitespace");function oW(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}i(oW,"edgeWhitespace");function jD(e,t,r){var n,o,s;return e==="left"?(n=t.previousSibling,o=/ $/):(n=t.nextSibling,o=/^ /),n&&(n.nodeType===3?s=o.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?s=!1:n.nodeType===1&&!Rg(n)&&(s=o.test(n.textContent))),s}i(jD,"isFlankedByWhitespace");var sW=Array.prototype.reduce,aW=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function cp(e){if(!(this instanceof cp))return new cp(e);var t={rules:wt,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:i(function(r,n){return n.isBlock?`
148
148
 
149
149
  `:""},"blankReplacement"),keepReplacement:i(function(r,n){return n.isBlock?`
150
150
 
@@ -154,28 +154,28 @@ ${o}
154
154
 
155
155
  `+r+`
156
156
 
157
- `:r},"defaultReplacement")};this.options=jW({},t,e),this.rules=new jD(this.options)}i(up,"TurndownService"),up.prototype={turndown:i(function(e){if(!pU(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=VD.call(this,new tU(e,this.options));return cU.call(this,t)},"turndown"),use:i(function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},"use"),addRule:i(function(e,t){return this.rules.add(e,t),this},"addRule"),keep:i(function(e){return this.rules.keep(e),this},"keep"),remove:i(function(e){return this.rules.remove(e),this},"remove"),escape:i(function(e){return uU.reduce(function(t,r){return t.replace(r[0],r[1])},e)},"escape")};function VD(e){var t=this;return lU.call(e.childNodes,function(r,n){n=new iU(n,t.options);var o="";return n.nodeType===3?o=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(o=fU.call(t,n)),QD(r,o)},"")}i(VD,"process");function cU(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=QD(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}i(cU,"postProcess");function fU(e){var t=this.rules.forNode(e),r=VD.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}i(fU,"replacementForNode");function QD(e,t){var r=BD(e),n=RD(t),o=Math.max(e.length-r.length,t.length-n.length),s=`
157
+ `:r},"defaultReplacement")};this.options=UU({},t,e),this.rules=new UD(this.options)}i(cp,"TurndownService"),cp.prototype={turndown:i(function(e){if(!cW(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=qD.call(this,new ZU(e,this.options));return lW.call(this,t)},"turndown"),use:i(function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},"use"),addRule:i(function(e,t){return this.rules.add(e,t),this},"addRule"),keep:i(function(e){return this.rules.keep(e),this},"keep"),remove:i(function(e){return this.rules.remove(e),this},"remove"),escape:i(function(e){return aW.reduce(function(t,r){return t.replace(r[0],r[1])},e)},"escape")};function qD(e){var t=this;return sW.call(e.childNodes,function(r,n){n=new rW(n,t.options);var o="";return n.nodeType===3?o=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(o=uW.call(t,n)),YD(r,o)},"")}i(qD,"process");function lW(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=YD(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}i(lW,"postProcess");function uW(e){var t=this.rules.forNode(e),r=qD.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}i(uW,"replacementForNode");function YD(e,t){var r=LD(e),n=FD(t),o=Math.max(e.length-r.length,t.length-n.length),s=`
158
158
 
159
- `.substring(0,o);return r+s+n}i(QD,"join");function pU(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}i(pU,"canConvert");var cp=up;var Ua={};se(Ua,{gfm:()=>XD,highlightedCodeBlock:()=>jg,strikethrough:()=>qg,tables:()=>Yg,taskListItems:()=>Vg});var GD=/highlight-(?:text|source)-([a-z0-9]+)/;function jg(e){e.addRule("highlightedCodeBlock",{filter:i(function(t){var r=t.firstChild;return t.nodeName==="DIV"&&GD.test(t.className)&&r&&r.nodeName==="PRE"},"filter"),replacement:i(function(t,r,n){var o=r.className||"",s=(o.match(GD)||[null,""])[1];return`
159
+ `.substring(0,o);return r+s+n}i(YD,"join");function cW(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}i(cW,"canConvert");var fp=cp;var ja={};se(ja,{gfm:()=>GD,highlightedCodeBlock:()=>jg,strikethrough:()=>qg,tables:()=>Yg,taskListItems:()=>Vg});var VD=/highlight-(?:text|source)-([a-z0-9]+)/;function jg(e){e.addRule("highlightedCodeBlock",{filter:i(function(t){var r=t.firstChild;return t.nodeName==="DIV"&&VD.test(t.className)&&r&&r.nodeName==="PRE"},"filter"),replacement:i(function(t,r,n){var o=r.className||"",s=(o.match(VD)||[null,""])[1];return`
160
160
 
161
161
  `+n.fence+s+`
162
162
  `+r.firstChild.textContent+`
163
163
  `+n.fence+`
164
164
 
165
- `},"replacement")})}i(jg,"highlightedCodeBlock");function qg(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:i(function(t){return"~"+t+"~"},"replacement")})}i(qg,"strikethrough");var hU=Array.prototype.indexOf,mU=Array.prototype.every,xs={};xs.tableCell={filter:["th","td"],replacement:i(function(e,t){return JD(e,t)},"replacement")},xs.tableRow={filter:"tr",replacement:i(function(e,t){var r="",n={left:":--",right:"--:",center:":-:"};if(Ug(t))for(var o=0;o<t.childNodes.length;o++){var s="---",a=(t.childNodes[o].getAttribute("align")||"").toLowerCase();a&&(s=n[a]||s),r+=JD(s,t.childNodes[o])}return`
165
+ `},"replacement")})}i(jg,"highlightedCodeBlock");function qg(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:i(function(t){return"~"+t+"~"},"replacement")})}i(qg,"strikethrough");var fW=Array.prototype.indexOf,pW=Array.prototype.every,xs={};xs.tableCell={filter:["th","td"],replacement:i(function(e,t){return QD(e,t)},"replacement")},xs.tableRow={filter:"tr",replacement:i(function(e,t){var r="",n={left:":--",right:"--:",center:":-:"};if(Wg(t))for(var o=0;o<t.childNodes.length;o++){var s="---",a=(t.childNodes[o].getAttribute("align")||"").toLowerCase();a&&(s=n[a]||s),r+=QD(s,t.childNodes[o])}return`
166
166
  `+e+(r?`
167
- `+r:"")},"replacement")},xs.table={filter:i(function(e){return e.nodeName==="TABLE"&&Ug(e.rows[0])},"filter"),replacement:i(function(e){return e=e.replace(`
167
+ `+r:"")},"replacement")},xs.table={filter:i(function(e){return e.nodeName==="TABLE"&&Wg(e.rows[0])},"filter"),replacement:i(function(e){return e=e.replace(`
168
168
 
169
169
  `,`
170
170
  `),`
171
171
 
172
172
  `+e+`
173
173
 
174
- `},"replacement")},xs.tableSection={filter:["thead","tbody","tfoot"],replacement:i(function(e){return e},"replacement")};function Ug(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||dU(t))&&mU.call(e.childNodes,function(r){return r.nodeName==="TH"})}i(Ug,"isHeadingRow");function dU(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}i(dU,"isFirstTbody");function JD(e,t){var r=hU.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}i(JD,"cell");function Yg(e){e.keep(function(r){return r.nodeName==="TABLE"&&!Ug(r.rows[0])});for(var t in xs)e.addRule(t,xs[t])}i(Yg,"tables");function Vg(e){e.addRule("taskListItems",{filter:i(function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},"filter"),replacement:i(function(t,r){return(r.checked?"[x]":"[ ]")+" "},"replacement")})}i(Vg,"taskListItems");function XD(e){e.use([jg,qg,Yg,Vg])}i(XD,"gfm");var Qg=St(O1(),1);var fp=class e{static{i(this,"MdParsedResult")}static async createFromMarkdownString(t){let r=new e;return await r.updateFromMarkdownString(t),r}async updateFromMarkdownString(t){let r,n=await ka().use(us).use(ls).use(fs,["yaml","toml"]).use(gs).use(ds).use(()=>o=>{console.dir(o);let s=o.children.find(a=>a.type==="yaml");s&&(r=s.value)}).process(t);this.html=n.toString(),r?this.frontmatterData=await Qg.yamlStringToObject(r):this.frontmatterData={}}};var Gg=class e{static{i(this,"SmartMarkdown")}static async easyMarkdownToHtml(t){return(await new e().getMdParsedResultFromMarkdown(t)).html}constructor(){}async getMdParsedResultFromMarkdown(t){return await fp.createFromMarkdownString(t)}htmlToMarkdown(t){let r=new cp({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(Ua.gfm),r.turndown(t)}};var $n={};se($n,{SmartRouter:()=>rx});var tx=St(oC(),1);var hp=class{static{i(this,"QueryParams")}constructor(){}getAllAsObject(){let t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())}setQueryParam(t,r,n="replace"){var o=new URLSearchParams(window.location.search);o.set(t,r),n==="push"?history.pushState(null,null,"?"+o.toString()):history.replaceState(null,null,"?"+o.toString())}deleteQueryParam(t,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(t),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(t){return this.getAllAsObject()[t]}};var YYe=i(e=>{console.log(`%c[Router]%c ${e}`,"color: rgb(255, 105, 100);","color: inherit")},"routeLog"),rx=class e{static{i(this,"SmartRouter")}constructor(t,r=""){this.options={debug:!1},this.queryParams=new hp,this.routes=[],this.options={...this.options,...t},this.basePath=r,this.popstateListener=n=>{n.preventDefault(),this._handleRouteState()},window.addEventListener("popstate",this.popstateListener)}createSubRouter(t,r){let n=`${this.basePath}${t}`;return new e({...this.options,...r},n)}async pushUrl(t="/",r={}){let n=`${this.basePath}${t}`;n!==window.location.pathname?window.history.pushState(r,window.document.title,n):window.history.replaceState(r,window.document.title,n),await this._handleRouteState()}on(t,r){let n=`${this.basePath}${t}`,o={matchFunction:tx.match(n),handler:r};return this.routes.push(o),i(()=>{this.routes.splice(this.routes.indexOf(o),1)},"removeFunction")}async _handleRouteState(){let t=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(t));for(let n of r){let o=n.matchFunction(t);n.handler({...o.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var Hn={};se(Hn,{Smartstate:()=>fx,StateAction:()=>Va,StatePart:()=>Qa,StateProcess:()=>ws,attachContextProvider:()=>KU,computed:()=>cx});var Ya={};se(Ya,{md5FromString:()=>GU,sha256FromBuffer:()=>qU,sha256FromFile:()=>QU,sha256FromStream:()=>VU,sha256FromString:()=>hC,sha256FromStringSync:()=>jU,sha265FromObject:()=>YU});var ja={};se(ja,{Smartenv:()=>nx});var nx=class{static{i(this,"Smartenv")}constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}. This does not throw.`);return}let n=await new Function(`return import('${t}')`)();return r&&await r(n),n}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=J.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=t,document.head.appendChild(o)}return await n.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 qa={};se(qa,{Smartjson:()=>lx,deepEqualJsonLStrings:()=>zU,deepEqualObjects:()=>cC,foldDec:()=>BU,parse:()=>xp,parseBase64:()=>RU,parseJsonL:()=>ax,stableOneWayStringify:()=>NU,stringify:()=>Hi,stringifyBase64:()=>LU,stringifyJsonL:()=>PU,stringifyPretty:()=>FU});var mp=St(sm(),1),sC=St(am(),1),dp=sC.default;function OU(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(String.fromCharCode(...e))}i(OU,"base64Encode");function IU(e){if(typeof Buffer<"u"){let t=Buffer.from(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}i(IU,"base64Decode");function ox(e,t){return JSON.stringify(e,gp,t)}i(ox,"stringify");function sx(e){return JSON.parse(e,aC)}i(sx,"parse");var gp=i((e,t)=>{if(MU(t)){let r;if("data"in t&&lC(t.data))r=new Uint8Array(t.data);else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+OU(r)}}return t},"replacer"),aC=i((e,t)=>{if(AU(t)&&ix(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return IU(r)}return t},"reviver");function AU(e){return uC(e)&&e.type==="EncodedBuffer"&&ix(e.data)}i(AU,"isEncodedBuffer");function MU(e){return uC(e)&&e.type==="Buffer"&&(lC(e.data)||ix(e.data))||e instanceof Uint8Array}i(MU,"isBufferLike");function lC(e){return Array.isArray(e)}i(lC,"isArray");function ix(e){return typeof e=="string"}i(ix,"isString");function uC(e){return typeof e=="object"&&e!==null}i(uC,"isObject");var xp=sx,ax=i(e=>e.split(`
175
- `).reduce((n,o)=>{let s=o.trim();return s.length>0&&n.push(xp(s)),n},[]),"parseJsonL"),PU=i(e=>e.map(t=>Hi(t)).join(`
176
- `),"stringifyJsonL"),NU=i((e,t,r={})=>{let n=new WeakSet,o=i(l=>{if(l===null||typeof l!="object")return l;let u=gp("",l);if(u&&u.type==="EncodedBuffer"&&typeof u.data=="string")return u;if(n.has(l))return"__cycle__";if(n.add(l),Array.isArray(l))return l.map(f=>o(f));let c={};for(let f of Object.keys(l))try{c[f]=o(l[f])}catch{c[f]="__unserializable__"}return c},"sanitize"),s=o(e),a={...r,cycles:!0};if(t&&!a.cmp){let l=new Map;t.forEach((u,c)=>l.set(u,c)),a.cmp=(u,c)=>{let f=l.has(u.key)?l.get(u.key):Number.POSITIVE_INFINITY,p=l.has(c.key)?l.get(c.key):Number.POSITIVE_INFINITY;return f!==p?f-p:u.key<c.key?-1:u.key>c.key?1:0}}return dp(s,a)},"stableOneWayStringify"),Hi=i((e,t,r={})=>{let n=ox(e);e=JSON.parse(n);let o={...r};if(t&&!o.cmp){let a=new Map;t.forEach((l,u)=>a.set(l,u)),o.cmp=(l,u)=>{let c=a.has(l.key)?a.get(l.key):Number.POSITIVE_INFINITY,f=a.has(u.key)?a.get(u.key):Number.POSITIVE_INFINITY;return c!==f?c-f:l.key<u.key?-1:l.key>u.key?1:0}}return dp(e,o)},"stringify"),FU=i(e=>{let t=Hi(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},"stringifyPretty"),LU=i((...e)=>{let t=Hi(...e);return xt.base64.encodeUri(t)},"stringifyBase64"),RU=i(e=>{let t=xt.base64,n=(t.decodeUri||t.decode)(e);return xp(n)},"parseBase64"),lx=class e{static{i(this,"Smartjson")}static enfoldFromObject(t){let r=new this,n=r.saveableProperties||[];for(let o in t)n.indexOf(o)!==-1&&(r[o]=t[o]);return r}static enfoldFromJson(t){let r=xp(t);return this.enfoldFromObject(r)}foldToObject(){let t=new Set;return t.add(this),this.foldToObjectInternal(t)}foldToObjectInternal(t){let r={},n=i(s=>{if(s instanceof e){if(t.has(s))throw new Error("cycle detected");return t.add(s),s.foldToObjectInternal(t)}return Array.isArray(s)?s.map(a=>n(a)):mp.default(s)},"foldValue"),o=this.saveableProperties||[];for(let s of o){let a=this[s];r[s]=n(a)}return r}foldToJson(){let t=this.foldToObject();return Hi(t)}},BU=i(()=>(e,t)=>{e.saveableProperties||(e.saveableProperties=[]),e.saveableProperties.push(t)},"foldDec"),cC=i((e,t)=>{let r=Hi(e),n=Hi(t);return r===n},"deepEqualObjects"),zU=i((e,t)=>{let r=ax(e),n=ax(t);return cC(r,n)},"deepEqualJsonLStrings");var HU=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],WU=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function $r(e,t){return e>>>t|e<<32-t}i($r,"rotr");function UU(e,t){let r=t[0],n=t[1],o=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7];for(let f=0;f<64;f++){if(f>=16){let b=$r(e[f-15],7)^$r(e[f-15],18)^e[f-15]>>>3,T=$r(e[f-2],17)^$r(e[f-2],19)^e[f-2]>>>10;e[f]=e[f-16]+b+e[f-7]+T>>>0}let p=$r(a,6)^$r(a,11)^$r(a,25),h=a&l^~a&u,m=c+p+h+HU[f]+e[f]>>>0,d=$r(r,2)^$r(r,13)^$r(r,22),g=r&n^r&o^n&o,x=d+g>>>0;c=u,u=l,l=a,a=s+m>>>0,s=o,o=n,n=r,r=m+x>>>0}t[0]=t[0]+r>>>0,t[1]=t[1]+n>>>0,t[2]=t[2]+o>>>0,t[3]=t[3]+s>>>0,t[4]=t[4]+a>>>0,t[5]=t[5]+l>>>0,t[6]=t[6]+u>>>0,t[7]=t[7]+c>>>0}i(UU,"sha256Transform");function ux(e){let t=[...WU],r=e.length,n=r*8,o=r%64<56?56-r%64:120-r%64,s=new Uint8Array(r+o+8);s.set(e),s[r]=128;let a=new DataView(s.buffer);a.setUint32(s.length-8,0,!1),a.setUint32(s.length-4,n>>>0,!1);for(let u=0;u<s.length;u+=64){let c=new Array(64);for(let f=0;f<16;f++)c[f]=a.getUint32(u+f*4,!1);UU(c,t)}let l="";for(let u=0;u<8;u++)l+=t[u].toString(16).padStart(8,"0");return l}i(ux,"sha256Fallback");var fC=i(e=>{let t=[],r=new DataView(e);for(let n=0;n<r.byteLength;n+=4){let s=r.getUint32(n).toString(16),a="00000000",l=(a+s).slice(-a.length);t.push(l)}return t.join("")},"hex"),pC=i(()=>typeof crypto<"u"&&crypto.subtle!==void 0,"isCryptoSubtleAvailable"),hC=i(async e=>{let t=new TextEncoder().encode(e);if(pC()){let r=await crypto.subtle.digest("SHA-256",t);return fC(r)}else return ux(t)},"sha256FromString"),jU=i(e=>{throw console.warn("sha256FromStringSync is not truly synchronous in browser environment"),new Error("sha256FromStringSync is not supported in browser environment. Use sha256FromString instead.")},"sha256FromStringSync"),qU=i(async e=>{if(pC()){let t;if(e instanceof Uint8Array){let o=e;t=o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}else t=e;let r=await crypto.subtle.digest("SHA-256",t);return fC(r)}else{let t=e instanceof Uint8Array?e:new Uint8Array(e);return ux(t)}},"sha256FromBuffer"),YU=i(async e=>{let t=qa.stringify(e);return await hC(t)},"sha265FromObject"),VU=i(e=>{throw new Error("sha256FromStream is not supported in browser environment")},"sha256FromStream"),QU=i(async e=>{throw new Error("sha256FromFile is not supported in browser environment")},"sha256FromFile"),GU=i(async e=>{throw new Error("md5FromString is not supported in browser environment. Web Crypto API does not support MD5.")},"md5FromString");var Va=class{static{i(this,"StateAction")}constructor(t,r){this.statePartRef=t,this.actionDef=r}trigger(t){return this.statePartRef.dispatchAction(this,t)}};function XU(){return typeof document>"u"?As(!0):new ye(e=>{e.next(!document.hidden);let t=i(()=>e.next(!document.hidden),"handler");return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)})}i(XU,"createVisibilityObservable");var ws=class{static{i(this,"StateProcess")}constructor(t,r){this.statusSubject=new to("idle"),this.producerSubscription=null,this.autoPauseSubscription=null,this.processingQueue=Promise.resolve(),this.statePartRef=t,this.producerFn=r.producer,this.reducer=r.reducer,this.sideEffect=r.sideEffect,this.autoPauseOption=r.autoPause??!1}get status(){return this.statusSubject.getValue()}get status$(){return this.statusSubject.asObservable()}start(){if(this.status==="disposed")throw new Error("Cannot start a disposed process");this.status!=="running"&&(this.statusSubject.next("running"),this.subscribeProducer(),this.setupAutoPause())}pause(){if(this.status==="disposed")throw new Error("Cannot pause a disposed process");this.status==="running"&&(this.statusSubject.next("paused"),this.unsubscribeProducer())}resume(){if(this.status==="disposed")throw new Error("Cannot resume a disposed process");this.status==="paused"&&(this.statusSubject.next("running"),this.subscribeProducer())}dispose(){this.status!=="disposed"&&(this.unsubscribeProducer(),this.teardownAutoPause(),this.statusSubject.next("disposed"),this.statusSubject.complete(),this.statePartRef._removeProcess(this))}subscribeProducer(){this.unsubscribeProducer();let t=this.producerFn();this.producerSubscription=t.subscribe({next:i(r=>{this.processingQueue=this.processingQueue.then(async()=>{try{if(this.sideEffect)await this.sideEffect(r);else if(this.reducer){let n=this.statePartRef.getState();n!==void 0&&await this.statePartRef.setState(this.reducer(n,r))}}catch(n){console.error("StateProcess value handling error:",n)}})},"next"),error:i(r=>{console.error("StateProcess producer error:",r),this.status==="running"&&(this.statusSubject.next("paused"),this.unsubscribeProducer())},"error")})}unsubscribeProducer(){this.producerSubscription&&(this.producerSubscription.unsubscribe(),this.producerSubscription=null)}setupAutoPause(){if(this.teardownAutoPause(),!this.autoPauseOption)return;let t=this.autoPauseOption==="visibility"?XU():this.autoPauseOption;this.autoPauseSubscription=t.subscribe(r=>{!r&&this.status==="running"?this.pause():r&&this.status==="paused"&&this.resume()})}teardownAutoPause(){this.autoPauseSubscription&&(this.autoPauseSubscription.unsubscribe(),this.autoPauseSubscription=null)}};function ZU(e){return new ye(t=>{if(e.aborted){t.next(),t.complete();return}let r=i(()=>{t.next(),t.complete()},"handler");return e.addEventListener("abort",r),()=>e.removeEventListener("abort",r)})}i(ZU,"fromAbortSignal");var Qa=class e{static{i(this,"StatePart")}static{this.MAX_NESTED_DISPATCH_DEPTH=10}constructor(t,r){this.state=new to(void 0),this.disposed=!1,this.cumulativeDeferred=J.cumulativeDefer(),this.mutationQueue=Promise.resolve(),this.pendingCumulativeNotification=null,this.webStore=null,this.middlewares=[],this.processes=[],this.selectorCache=new WeakMap,this.defaultSelectObservable=null,this.name=t,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new or.WebStore(this.webStoreOptions),await this.webStore.init();let t=await this.webStore.get(String(this.name));t&&this.validateState(t)&&(this.stateStore=t,await this.notifyChange())}}getState(){return this.stateStore}addMiddleware(t){return this.middlewares.push(t),()=>{let r=this.middlewares.indexOf(t);r!==-1&&this.middlewares.splice(r,1)}}async setState(t){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);return this.mutationQueue=this.mutationQueue.then(()=>this.applyState(t),()=>this.applyState(t))}async applyState(t){let r=t;for(let n of this.middlewares)r=await n(r,this.stateStore);if(!this.validateState(r))throw new Error(`Invalid state structure for state part '${this.name}'`);return this.webStore&&await this.webStore.set(String(this.name),r),this.stateStore=r,await this.notifyChange(),this.stateStore}validateState(t){return t!=null}async notifyChange(){let t=this.stateStore;if(t===void 0)return;if(this.smartstateRef?.isBatching){this.smartstateRef.registerPendingNotification(this);return}let r=i(async n=>await Ya.sha256FromString(Et.stableOneWayStringify(n)),"createStateHash");try{let n=await r(t);if(this.lastStateNotificationPayloadHash&&n===this.lastStateNotificationPayloadHash)return;this.lastStateNotificationPayloadHash=n}catch(n){console.error(`State hash computation failed for '${this.name}':`,n)}this.state.next(t)}notifyChangeCumulative(){this.pendingCumulativeNotification&&clearTimeout(this.pendingCumulativeNotification),this.pendingCumulativeNotification=setTimeout(()=>{this.pendingCumulativeNotification=null,this.stateStore!==void 0&&this.notifyChange().catch(t=>{console.error(`notifyChangeCumulative failed for '${this.name}':`,t)})},0)}select(t,r){let n=r?.signal!=null;if(!n){if(t){if(this.selectorCache.has(t))return this.selectorCache.get(t)}else if(this.defaultSelectObservable)return this.defaultSelectObservable}let o=t||(u=>u),s=Symbol("selector-error"),a=this.state.pipe(Ce.rxjs.ops.filter(u=>u!==void 0),Ce.rxjs.ops.map(u=>{try{return o(u)}catch(c){return console.error(`Selector error in state part '${this.name}':`,c),s}}),Ce.rxjs.ops.filter(u=>u!==s),so((u,c)=>JSON.stringify(u)===JSON.stringify(c)));if(n)return a=a.pipe(ao(ZU(r.signal))),a;let l=a.pipe(Rl({bufferSize:1,refCount:!0}));return t?this.selectorCache.set(t,l):this.defaultSelectObservable=l,l}createAction(t){return new Va(this,t)}createActionContext(t){let r=this;return{dispatch:i(async(n,o)=>{if(t>=e.MAX_NESTED_DISPATCH_DEPTH)throw new Error(`Maximum nested action dispatch depth (${e.MAX_NESTED_DISPATCH_DEPTH}) exceeded. Check for circular action dispatches.`);let s=r.createActionContext(t+1),a=await n.actionDef(r,o,s);return r.applyState(a)},"dispatch")}}async dispatchAction(t,r){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);await this.cumulativeDeferred.promise;let n=i(async()=>{let o=this.createActionContext(0),s=await t.actionDef(this,r,o);return this.applyState(s)},"execute");return this.mutationQueue=this.mutationQueue.then(n,n)}async waitUntilPresent(t,r){let n,o;typeof r=="number"?n=r:r&&(n=r.timeoutMs,o=r.signal);let s=J.defer(),a=this.select(t),l=!1;if(o?.aborted)throw new Error("Aborted");let u=a.subscribe(p=>{p!=null&&!l&&(l=!0,s.resolve(p))}),c;n&&(c=setTimeout(()=>{l||(l=!0,u.unsubscribe(),s.reject(new Error(`waitUntilPresent timed out after ${n}ms`)))},n));let f=o?()=>{l||(l=!0,u.unsubscribe(),c&&clearTimeout(c),s.reject(new Error("Aborted")))}:void 0;o&&f&&o.addEventListener("abort",f);try{return await s.promise}finally{u.unsubscribe(),c&&clearTimeout(c),o&&f&&o.removeEventListener("abort",f)}}async stateSetup(t){let r=t(this);this.cumulativeDeferred.addPromise(r),await this.setState(await r)}createProcess(t){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);let r=new ws(this,t);return this.processes.push(r),t.autoStart&&r.start(),r}createScheduledAction(t){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);let r=new ws(this,{producer:i(()=>ch(t.intervalMs),"producer"),sideEffect:i(async()=>{await t.action.trigger(t.payload)},"sideEffect"),autoPause:t.autoPause??!1});return this.processes.push(r),r.start(),r}_removeProcess(t){let r=this.processes.indexOf(t);r!==-1&&this.processes.splice(r,1)}dispose(){if(!this.disposed){this.disposed=!0;for(let t of[...this.processes])t.dispose();this.processes.length=0,this.state.complete(),this.mutationQueue=Promise.resolve(),this.pendingCumulativeNotification&&(clearTimeout(this.pendingCumulativeNotification),this.pendingCumulativeNotification=null),this.middlewares.length=0,this.selectorCache=new WeakMap,this.defaultSelectObservable=null,this.webStore=null,this.smartstateRef=void 0,this.stateStore=void 0}}};function cx(e,t){return uh(e.map(r=>r.select())).pipe(Sr(r=>t(...r)),so((r,n)=>JSON.stringify(r)===JSON.stringify(n)))}i(cx,"computed");var fx=class{static{i(this,"Smartstate")}constructor(){this.statePartMap={},this.pendingStatePartCreation=new Map,this.batchDepth=0,this.isFlushing=!1,this.pendingNotifications=new Set}get isBatching(){return this.batchDepth>0}registerPendingNotification(t){this.pendingNotifications.add(t)}async batch(t){this.batchDepth++;try{await t()}finally{if(this.batchDepth--,this.batchDepth===0&&!this.isFlushing){this.isFlushing=!0;try{for(;this.pendingNotifications.size>0;){let r=[...this.pendingNotifications];this.pendingNotifications.clear();for(let n of r)try{await n.notifyChange()}catch(o){console.error("Error flushing notification for state part:",o)}}}finally{this.isFlushing=!1}}}}computed(t,r){return cx(t,r)}dispose(){for(let t of Object.keys(this.statePartMap)){let r=this.statePartMap[t];r&&r.dispose()}this.statePartMap={},this.pendingStatePartCreation.clear(),this.pendingNotifications.clear()}async getStatePart(t,r,n="soft"){let o=this.pendingStatePartCreation.get(t);if(o)return o;let s=this.statePartMap[t];if(s)switch(n){case"mandatory":throw new Error(`State part '${t}' already exists, but initMode is 'mandatory'`);case"force":s.dispose();break;default:return s}else if(r===void 0)throw new Error(`State part '${t}' does not exist and no initial state provided`);let a=this.createStatePart(t,r,n);this.pendingStatePartCreation.set(t,a);try{return await a}finally{this.pendingStatePartCreation.delete(t)}}async createStatePart(t,r,n="soft"){let o=new Qa(t,n==="persistent"?{dbName:"smartstate",storeName:t}:void 0);o.smartstateRef=this,await o.init();let s=o.getState();return n==="persistent"&&s!==void 0?await o.setState({...r,...s}):await o.setState(r),this.statePartMap[t]=o,o}};function KU(e,t){let{context:r,statePart:n,selectorFn:o}=t,s=new Set,a=n.select(o).subscribe(c=>{for(let f of s)f(c)}),l=i(()=>{let c=n.getState();if(c!==void 0)return o?o(c):c},"getValue"),u=i(c=>{let f=c,p=f.detail;if(!(!p||p.context!==r))if(f.stopPropagation(),p.subscribe){let h=p.callback;s.add(h);let m=i(()=>s.delete(h),"unsubscribe");h(l(),m)}else p.callback(l())},"handler");return e.addEventListener("context-request",u),()=>{e.removeEventListener("context-request",u),a.unsubscribe(),s.clear()}}i(KU,"attachContextProvider");var Wn={};se(Wn,{Smarturl:()=>px});var px=class e{static{i(this,"Smarturl")}static createFromUrl(t,r){let n=new URL(t),o={},s=[];n.search&&n.search.replace("?","").split("&").map(c=>{s.push({key:c.split("=")[0],value:c.split("=")[1]})});for(let c of s)o[c.key]=c.value;if(r?.searchParams)for(let c of Object.keys(r.searchParams))o[c]=r.searchParams[c];let a=n.pathname||"";if(Object.keys(o).length>0){a+="?";let c=!0;for(let f of Object.keys(o))c?c=!1:a+="&",a+=`${f}=${o[f]}`}let l={...n,href:n.href,origin:n.origin,protocol:n.protocol,username:n.username,password:n.password,host:n.host,hostname:n.hostname,port:n.port,path:a,pathname:n.pathname,search:n.search,searchParams:o,hash:n.hash};!l.port&&l.protocol==="https:"&&(l.port="443"),!l.port&&l.protocol==="http:"&&(l.port="80");let u=new e;return Object.assign(u,l),u}static createFromParsedUrl(t){let r=new e;return Object.assign(r,t),r}constructor(){this.searchParams={}}clone(){let t=new e;return Object.assign(t,this),t.searchParams={...this.searchParams},t}set(t,r){return this[t]=r,this}toString(){let t="";return this.username&&!this.password&&(t=`${this.username}@`),this.username&&this.password&&(t=`${this.username}:${this.password}@`),`${this.protocol}//${t}${this.hostname}:${this.port}${this.path}`}};var Cx={};se(Cx,{JsonLdTag:()=>ji,MetaTag:()=>Kt,OpengraphTag:()=>Ct,Title:()=>Dx,WebSetup:()=>Ga});var hx={};se(hx,{Timeout:()=>bp,delayFor:()=>dC,delayForRandom:()=>sj});var Ui={};se(Ui,{CumulativeDeferred:()=>wp,Deferred:()=>yp,cumulativeDefer:()=>ej,defer:()=>Wi,getFirstTrueOrFalse:()=>oj,map:()=>nj,rejectedPromise:()=>rj,resolvedPromise:()=>tj,timeoutAndContinue:()=>ij,timeoutWrap:()=>mC});var yp=class{static{i(this,"Deferred")}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((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},Wi=i(()=>new yp,"defer");var wp=class{static{i(this,"CumulativeDeferred")}constructor(){this.accumulatedPromises=[],this.deferred=Wi(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(t){this.accumulatedPromises.push(t)}},ej=i(()=>new wp,"cumulativeDefer");var tj=i(e=>Promise.resolve(e),"resolvedPromise"),rj=i(e=>Promise.reject(e),"rejectedPromise"),nj=i(async(e,t)=>{let r=[],n=[];for(let o of e){let s=t(o);r.push(s),s.then(a=>{n.push(a)})}return await Promise.all(r),n},"map"),mC=i(async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),"timeoutWrap"),ij=i(async(e,t=6e4)=>mC(e,t,!1),"timeoutAndContinue"),oj=i(async e=>{let t=Wi();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise},"getFirstTrueOrFalse");var dC=i(async(e,t,r=!1)=>(await new bp(e,null,r).promise,t),"delayFor"),sj=i(async(e,t,r,n=!1)=>(await dC(Math.random()*(t-e)+e,null,n),r),"delayForRandom"),bp=class{static{i(this,"Timeout")}constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=Wi(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},t),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let t=this.started+this.timeoutInMillis-Date.now();return t>0?t:0}};var Ex={};se(Ex,{business:()=>vp,code:()=>xx,container:()=>yx,content:()=>wx,database:()=>gx,finance:()=>mx,general:()=>bx,network:()=>kp,saas:()=>kx,storage:()=>Sx,website:()=>Tx});var vp={};se(vp,{IJob:()=>dx});var mx={};var dx=class{static{i(this,"IJob")}};var gx={};var xx={};var yx={};var wx={};var bx={};var kp={};se(kp,{ICnameDescriptor:()=>vx});var vx=class{static{i(this,"ICnameDescriptor")}};var kx={};var Sx={};var Tx={};var Un=class{static{i(this,"Tag")}appendToDom(){!this.elementRef.parentElement&&!this.elementRef.parentNode&&document.getElementsByTagName("head")[0].appendChild(this.elementRef)}removeFromDom(){this.elementRef.parentElement?this.elementRef.parentElement.removeChild(this.elementRef):this.elementRef.parentNode&&this.elementRef.parentNode.removeChild(this.elementRef)}};var ji=class e extends Un{static{i(this,"JsonLdTag")}static createCompanyJsonLd(t){let r={"@context":"https://schema.org","@type":"Corporation",name:t.name,alternateName:t.name.replace(" GmbH",""),url:t.contact.website,logo:t.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:t.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return t.contact.facebookUrl&&r.sameAs.push(t.contact.facebookUrl),t.contact.twitterUrl&&r.sameAs.push(t.contact.twitterUrl),new e(r)}static createNewsArticleJsonLd(t){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[t.featuredImageUrl],datePublished:new Date(t.timestamp).toISOString(),dateModified:new Date(t.timestamp).toISOString(),author:{"@type":"Person",name:`${t.author.firstName} ${t.author.surName}`},publisher:{"@type":"Organization",name:t.author.surName,logo:{"@type":"ImageObject",url:t.author.surName}},description:t.author.firstName};return new e(r)}static createProductJsonLd(t,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:t.name,description:t.description,operatingSystem:t.os,applicationCategory:t.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:this.createCompanyJsonLd(r).elementRef.textContent,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new e(n)}constructor(t){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(t),this.elementRef=r}};var Ct=class e extends Un{static{i(this,"OpengraphTag")}static createNewsArticleOgTags(t){let r=[];return r.push(new e("og:url",t.url)),r.push(new e("og:title",t.title)),r.push(new e("og:description",t.content)),r.push(new e("og:image",t.featuredImageUrl)),r}static createProductOgTags(t){let r=[];return r.push(new e("og:url",globalThis.location.href)),r.push(new e("og:title",`${t.name} - ${t.slogan}`)),r.push(new e("og:site_name",t.name)),r.push(new e("og:description",t.description)),r.push(new e("og:image",t.logoLink)),r}constructor(t,r){super();let n=document.createElement("meta");n.setAttribute("property",t),n.content=r,this.elementRef=n}};var bs=class{static{i(this,"TagLevel")}set title(t){this.titleStore=t,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(t,r){this.tags=[],this.state="disabled",this.tagManagerRef=t}addTag(t){if(t instanceof Array)for(let r of t)this.addTag(r);else this.tags.push(t),this.state==="enabled"&&t.appendToDom()}async addCompanyInfo(t){this.addTag(ji.createCompanyJsonLd(t)),this.addTag(new Ct("og:type","business.business")),this.addTag(new Ct("og:title",t.name)),this.addTag(new Ct("og:url",t.contact.website)),this.addTag(new Ct("og:image",t.contact.logoUrl)),this.addTag(new Ct("business:contact_data:street_address",`${t.contact.address.streetName} ${t.contact.address.houseNumber}`)),this.addTag(new Ct("business:contact_data:locality",t.contact.address.postalCode)),this.addTag(new Ct("business:contact_data:region",t.contact.address.city)),this.addTag(new Ct("business:contact_data:postal_code",t.contact.address.postalCode)),this.addTag(new Ct("business:contact_data:country_name",t.contact.address.country))}addNewsArticleInfo(t){this.addTag(ji.createNewsArticleJsonLd(t)),this.addTag(Ct.createNewsArticleOgTags(t))}addProductInfo(t,r){this.addTag(ji.createProductJsonLd(t,r)),this.addTag(Ct.createProductOgTags(t))}async enable(){this.title&&(document.title=this.title);for(let t of this.tags)t.appendToDom();this.state="enabled"}async disable(){for(let t of this.tags)t.removeFromDom();this.state="disabled"}};var Kt=class extends Un{static{i(this,"MetaTag")}constructor(t,r){super();let n=document.createElement("meta");n.name=t,n.content=r,this.elementRef=n}};var Sp=class{static{i(this,"TagManager")}constructor(){this.globalLevel=new bs(this,"global"),this.baseLevel=new bs(this,"base")}async setup(t){switch(this.globalLevel.addTag(new Kt("google","notranslate")),this.globalLevel.addTag(new Kt("revisit-after","1 days")),t.twitterHandle&&(this.globalLevel.addTag(new Kt("twitter:card","summary_large_image")),this.globalLevel.addTag(new Kt("twitter:site",t.twitterHandle)),this.globalLevel.addTag(new Kt("twitter:creator",t.twitterHandle))),this.baseLevel.title=t.title,t.description&&this.baseLevel.addTag(new Kt("description",t.description)),t.canonicalDomain&&this.baseLevel.addTag(new Kt("canonical",t.canonicalDomain)),!0){case(t.ldCompany&&!t.ldProduct):this.baseLevel.addCompanyInfo(t.ldCompany);break;case!!t.ldProduct:this.baseLevel.addProductInfo(t.ldProduct,t.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(t){let r=new bs(this,"subpage");return r.title=t.title,t.description&&r.addTag(new Kt("description",t.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var Ga=class{static{i(this,"WebSetup")}constructor(t){this.tagManager=new Sp,this.readyDeferred=Ui.defer(),this.readyForSmartssrDeferred=Ui.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=t,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(t){t&&(this.options=t),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(t){return await this.tagManager.setSubPageLevel(t)}flashTitle(t){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var Dx=class{static{i(this,"Title")}};var lj="1.3.17";function gC(e,t,r){return Math.max(e,Math.min(t,r))}i(gC,"clamp");function uj(e,t,r){return(1-r)*e+r*t}i(uj,"lerp");function cj(e,t,r,n){return uj(e,t,1-Math.exp(-r*n))}i(cj,"damp");function fj(e,t){return(e%t+t)%t}i(fj,"modulo");var pj=class{static{i(this,"Animate")}isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let r=gC(0,this.currentTime/this.duration,1);t=r>=1;let n=t?1:this.easing(r);this.value=this.from+(this.to-this.from)*n}else this.lerp?(this.value=cj(this.value,this.to,this.lerp*60,e),Math.round(this.value)===this.to&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:r,duration:n,easing:o,onStart:s,onUpdate:a}){this.from=this.value=e,this.to=t,this.lerp=r,this.duration=n,this.easing=o,this.currentTime=0,this.isRunning=!0,s?.(),this.onUpdate=a}};function hj(e,t){let r;return function(...n){let o=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,e.apply(o,n)},t)}}i(hj,"debounce");var mj=class{static{i(this,"Dimensions")}constructor(e,t,{autoResize:r=!0,debounce:n=250}={}){this.wrapper=e,this.content=t,r&&(this.debouncedResize=hj(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=i(()=>{this.onWrapperResize(),this.onContentResize()},"resize");onWrapperResize=i(()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)},"onWrapperResize");onContentResize=i(()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)},"onContentResize");get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},xC=class{static{i(this,"Emitter")}events={};emit(e,...t){let r=this.events[e]||[];for(let n=0,o=r.length;n<o;n++)r[n]?.(...t)}on(e,t){return this.events[e]?.push(t)||(this.events[e]=[t]),()=>{this.events[e]=this.events[e]?.filter(r=>t!==r)}}off(e,t){this.events[e]=this.events[e]?.filter(r=>t!==r)}destroy(){this.events={}}},yC=100/6,jn={passive:!1},dj=class{static{i(this,"VirtualScroll")}constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,jn),this.element.addEventListener("touchstart",this.onTouchStart,jn),this.element.addEventListener("touchmove",this.onTouchMove,jn),this.element.addEventListener("touchend",this.onTouchEnd,jn)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new xC;on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,jn),this.element.removeEventListener("touchstart",this.onTouchStart,jn),this.element.removeEventListener("touchmove",this.onTouchMove,jn),this.element.removeEventListener("touchend",this.onTouchEnd,jn)}onTouchStart=i(e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})},"onTouchStart");onTouchMove=i(e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e,n=-(t-this.touchStart.x)*this.options.touchMultiplier,o=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:n,y:o},this.emitter.emit("scroll",{deltaX:n,deltaY:o,event:e})},"onTouchMove");onTouchEnd=i(e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})},"onTouchEnd");onWheel=i(e=>{let{deltaX:t,deltaY:r,deltaMode:n}=e,o=n===1?yC:n===2?this.window.width:1,s=n===1?yC:n===2?this.window.height:1;t*=o,r*=s,t*=this.options.wheelMultiplier,r*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:r,event:e})},"onWheel");onWindowResize=i(()=>{this.window={width:window.innerWidth,height:window.innerHeight}},"onWindowResize")},wC=i(e=>Math.min(1,1.001-Math.pow(2,-10*e)),"defaultEasing"),Ja=class{static{i(this,"Lenis")}_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new pj;emitter=new xC;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:r=e,smoothWheel:n=!0,syncTouch:o=!1,syncTouchLerp:s=.075,touchInertiaExponent:a=1.7,duration:l,easing:u,lerp:c=.1,infinite:f=!1,orientation:p="vertical",gestureOrientation:h=p==="horizontal"?"both":"vertical",touchMultiplier:m=1,wheelMultiplier:d=1,autoResize:g=!0,prevent:x,virtualScroll:b,overscroll:T=!0,autoRaf:D=!1,anchors:q=!1,autoToggle:H=!1,allowNestedScroll:O=!1,__experimental__naiveDimensions:$=!1,naiveDimensions:K=$,stopInertiaOnNavigate:Y=!1}={}){window.lenisVersion=lj,(!e||e===document.documentElement)&&(e=window),typeof l=="number"&&typeof u!="function"?u=wC:typeof u=="function"&&typeof l!="number"&&(l=1),this.options={wrapper:e,content:t,eventsTarget:r,smoothWheel:n,syncTouch:o,syncTouchLerp:s,touchInertiaExponent:a,duration:l,easing:u,lerp:c,infinite:f,gestureOrientation:h,orientation:p,touchMultiplier:m,wheelMultiplier:d,autoResize:g,prevent:x,virtualScroll:b,overscroll:T,autoRaf:D,anchors:q,autoToggle:H,allowNestedScroll:O,naiveDimensions:K,stopInertiaOnNavigate:Y},this.dimensions=new mj(e,t,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new dj(r,{touchMultiplier:m,wheelMultiplier:d}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=i(e=>{e instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&e.stopPropagation()},"onScrollEnd");dispatchScrollendEvent=i(()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))},"dispatchScrollendEvent");get overflow(){let e=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[e]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=i(e=>{e.propertyName.includes("overflow")&&this.checkOverflow()},"onTransitionEnd");setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}onClick=i(e=>{let r=e.composedPath().filter(n=>n instanceof HTMLAnchorElement&&n.getAttribute("href"));if(this.options.anchors){let n=r.find(o=>o.getAttribute("href")?.includes("#"));if(n){let o=n.getAttribute("href");if(o){let s=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,a=`#${o.split("#")[1]}`;this.scrollTo(a,s)}}}this.options.stopInertiaOnNavigate&&r.find(o=>o.host===window.location.host)&&this.reset()},"onClick");onPointerDown=i(e=>{e.button===1&&this.reset()},"onPointerDown");onVirtualScroll=i(e=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(e)===!1)return;let{deltaX:t,deltaY:r,event:n}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:r,event:n}),n.ctrlKey||n.lenisStopPropagation)return;let o=n.type.includes("touch"),s=n.type.includes("wheel");this.isTouching=n.type==="touchstart"||n.type==="touchmove";let a=t===0&&r===0;if(this.options.syncTouch&&o&&n.type==="touchstart"&&a&&!this.isStopped&&!this.isLocked){this.reset();return}let u=this.options.gestureOrientation==="vertical"&&r===0||this.options.gestureOrientation==="horizontal"&&t===0;if(a||u)return;let c=n.composedPath();c=c.slice(0,c.indexOf(this.rootElement));let f=this.options.prevent;if(c.find(x=>x instanceof HTMLElement&&(typeof f=="function"&&f?.(x)||x.hasAttribute?.("data-lenis-prevent")||o&&x.hasAttribute?.("data-lenis-prevent-touch")||s&&x.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(x,{deltaX:t,deltaY:r}))))return;if(this.isStopped||this.isLocked){n.cancelable&&n.preventDefault();return}if(!(this.options.syncTouch&&o||this.options.smoothWheel&&s)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let h=r;this.options.gestureOrientation==="both"?h=Math.abs(r)>Math.abs(t)?r:t:this.options.gestureOrientation==="horizontal"&&(h=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&r>0||this.animatedScroll===this.limit&&r<0))&&(n.lenisStopPropagation=!0),n.cancelable&&n.preventDefault();let m=o&&this.options.syncTouch,g=o&&n.type==="touchend";g&&(h=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+h,{programmatic:!1,...m?{lerp:g?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})},"onVirtualScroll");resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=i(()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}},"onNativeScroll");reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=i(e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))},"raf");scrollTo(e,{offset:t=0,immediate:r=!1,lock:n=!1,programmatic:o=!0,lerp:s=o?this.options.lerp:void 0,duration:a=o?this.options.duration:void 0,easing:l=o?this.options.easing:void 0,onStart:u,onComplete:c,force:f=!1,userData:p}={}){if(!((this.isStopped||this.isLocked)&&!f)){if(typeof e=="string"&&["top","left","start","#"].includes(e))e=0;else if(typeof e=="string"&&["bottom","right","end"].includes(e))e=this.limit;else{let h;if(typeof e=="string"?(h=document.querySelector(e),h||(e==="#top"?e=0:console.warn("Lenis: Target not found",e))):e instanceof HTMLElement&&e?.nodeType&&(h=e),h){if(this.options.wrapper!==window){let d=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?d.left:d.top}let m=h.getBoundingClientRect();e=(this.isHorizontal?m.left:m.top)+this.animatedScroll}}if(typeof e=="number"){if(e+=t,e=Math.round(e),this.options.infinite){if(o){this.targetScroll=this.animatedScroll=this.scroll;let h=e-this.animatedScroll;h>this.limit/2?e=e-this.limit:h<-this.limit/2&&(e=e+this.limit)}}else e=gC(0,e,this.limit);if(e===this.targetScroll){u?.(this),c?.(this);return}if(this.userData=p??{},r){this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),c?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}o||(this.targetScroll=e),typeof a=="number"&&typeof l!="function"?l=wC:typeof l=="function"&&typeof a!="number"&&(a=1),this.animate.fromTo(this.animatedScroll,e,{duration:a,easing:l,lerp:s,onStart:i(()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",u?.(this)},"onStart"),onUpdate:i((h,m)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=h-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=h,this.setScroll(this.scroll),o&&(this.targetScroll=h),m||this.emit(),m&&(this.reset(),this.emit(),c?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())},"onUpdate")})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(e,{deltaX:t,deltaY:r}){let n=Date.now(),o=e._lenis??={},s,a,l,u,c,f,p,h,m=this.options.gestureOrientation;if(n-(o.time??0)>2e3){o.time=Date.now();let H=window.getComputedStyle(e);o.computedStyle=H;let O=H.overflowX,$=H.overflowY;if(s=["auto","overlay","scroll"].includes(O),a=["auto","overlay","scroll"].includes($),o.hasOverflowX=s,o.hasOverflowY=a,!s&&!a||m==="vertical"&&!a||m==="horizontal"&&!s)return!1;c=e.scrollWidth,f=e.scrollHeight,p=e.clientWidth,h=e.clientHeight,l=c>p,u=f>h,o.isScrollableX=l,o.isScrollableY=u,o.scrollWidth=c,o.scrollHeight=f,o.clientWidth=p,o.clientHeight=h}else l=o.isScrollableX,u=o.isScrollableY,s=o.hasOverflowX,a=o.hasOverflowY,c=o.scrollWidth,f=o.scrollHeight,p=o.clientWidth,h=o.clientHeight;if(!s&&!a||!l&&!u||m==="vertical"&&(!a||!u)||m==="horizontal"&&(!s||!l))return!1;let d;if(m==="horizontal")d="x";else if(m==="vertical")d="y";else{let H=t!==0,O=r!==0;H&&s&&l&&(d="x"),O&&a&&u&&(d="y")}if(!d)return!1;let g,x,b,T,D;if(d==="x")g=e.scrollLeft,x=c-p,b=t,T=s,D=l;else if(d==="y")g=e.scrollTop,x=f-h,b=r,T=a,D=u;else return!1;return(b>0?g<x:g>0)&&T&&D}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?fj(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isScrolling==="smooth"&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};var Tp=St(Ax(),1),Xa={ObjectMap:qr,Stringmap:Gs,FastMap:ui};var Dp=class{static{i(this,"Scroller")}domtoolsInstance;scrollCallbacks=[];lenisInstance=null;handleNativeScroll=i(t=>{this.executeScrollCallbacks()},"handleNativeScroll");handleLenisScroll=i(t=>{this.executeScrollCallbacks()},"handleLenisScroll");constructor(t){this.domtoolsInstance=t,this.attachNativeScrollListener()}sweetScroller=new Tp.default({});async toElement(t,r){this.sweetScroller.toElement(t,r),r?.duration&&await he.delayFor(r.duration)}async detectNativeSmoothScroll(){let t=J.defer(),r=100,n=3,o=.75,s=[];function a(u){s.push(u.deltaY),s.length>=r&&(window.removeEventListener("wheel",a),l())}i(a,"onWheel");function l(){let u=s.length-1,c=0;for(let p=0;p<u;p++)Math.abs(s[p+1]-s[p])<=n&&c++;c/u>=o?(console.log("Smooth scrolling detected."),t.resolve(!0)):(console.log("Smooth scrolling NOT detected."),t.resolve(!1))}return i(l,"analyzeEvents"),window.addEventListener("wheel",a),t.promise}async enableLenisScroll(t){let r=new Ja({autoRaf:!0});if(t?.disableOnNativeSmoothScroll&&await this.detectNativeSmoothScroll()){r.destroy();return}this.lenisInstance=r,this.detachNativeScrollListener(),this.attachLenisScrollListener();let n=r.destroy.bind(r);r.destroy=()=>{n(),this.detachLenisScrollListener(),this.attachNativeScrollListener(),this.lenisInstance=null}}onScroll(t){this.scrollCallbacks.push(t)}executeScrollCallbacks(){this.scrollCallbacks.forEach(t=>{try{t()}catch(r){console.error("Error in scroll callback:",r)}})}attachNativeScrollListener(){window.addEventListener("scroll",this.handleNativeScroll)}detachNativeScrollListener(){window.removeEventListener("scroll",this.handleNativeScroll)}attachLenisScrollListener(){this.lenisInstance&&this.lenisInstance.on("scroll",this.handleLenisScroll)}detachLenisScrollListener(){this.lenisInstance&&this.lenisInstance.off("scroll",this.handleLenisScroll)}};var Cp=class{static{i(this,"ThemeManager")}domtoolsRef;goBrightBoolean=!1;preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)");themeObservable=new Ce.rxjs.ReplaySubject(1);constructor(t){this.domtoolsRef=t,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async enableAutomaticGlobalThemeChange(){document.body&&document.body.style&&this.themeObservable.subscribe({next:i(t=>{document.body.style.background=t?"#fff":"#000"},"next")})}async updateAllConnectedElements(){this.themeObservable.next(this.goBrightBoolean)}goBright(){this.goBrightBoolean=!0,this.updateAllConnectedElements()}goDark(){this.goBrightBoolean=!1,this.updateAllConnectedElements()}toggleDarkBright(){this.goBrightBoolean=!this.goBrightBoolean,this.updateAllConnectedElements()}};var bC=(v=>(v[v.Backspace=8]="Backspace",v[v.Tab=9]="Tab",v[v.Enter=13]="Enter",v[v.Shift=16]="Shift",v[v.Ctrl=17]="Ctrl",v[v.Alt=18]="Alt",v[v.PauseBreak=19]="PauseBreak",v[v.CapsLock=20]="CapsLock",v[v.Escape=27]="Escape",v[v.Space=32]="Space",v[v.PageUp=33]="PageUp",v[v.PageDown=34]="PageDown",v[v.End=35]="End",v[v.Home=36]="Home",v[v.LeftArrow=37]="LeftArrow",v[v.UpArrow=38]="UpArrow",v[v.RightArrow=39]="RightArrow",v[v.DownArrow=40]="DownArrow",v[v.Insert=45]="Insert",v[v.Delete=46]="Delete",v[v.Zero=48]="Zero",v[v.ClosedParen=48]="ClosedParen",v[v.One=49]="One",v[v.ExclamationMark=49]="ExclamationMark",v[v.Two=50]="Two",v[v.AtSign=50]="AtSign",v[v.Three=51]="Three",v[v.PoundSign=51]="PoundSign",v[v.Hash=51]="Hash",v[v.Four=52]="Four",v[v.DollarSign=52]="DollarSign",v[v.Five=53]="Five",v[v.PercentSign=53]="PercentSign",v[v.Six=54]="Six",v[v.Caret=54]="Caret",v[v.Hat=54]="Hat",v[v.Seven=55]="Seven",v[v.Ampersand=55]="Ampersand",v[v.Eight=56]="Eight",v[v.Star=56]="Star",v[v.Asterik=56]="Asterik",v[v.Nine=57]="Nine",v[v.OpenParen=57]="OpenParen",v[v.A=65]="A",v[v.B=66]="B",v[v.C=67]="C",v[v.D=68]="D",v[v.E=69]="E",v[v.F=70]="F",v[v.G=71]="G",v[v.H=72]="H",v[v.I=73]="I",v[v.J=74]="J",v[v.K=75]="K",v[v.L=76]="L",v[v.M=77]="M",v[v.N=78]="N",v[v.O=79]="O",v[v.P=80]="P",v[v.Q=81]="Q",v[v.R=82]="R",v[v.S=83]="S",v[v.T=84]="T",v[v.U=85]="U",v[v.V=86]="V",v[v.W=87]="W",v[v.X=88]="X",v[v.Y=89]="Y",v[v.Z=90]="Z",v[v.LeftWindowKey=91]="LeftWindowKey",v[v.RightWindowKey=92]="RightWindowKey",v[v.SelectKey=93]="SelectKey",v[v.Numpad0=96]="Numpad0",v[v.Numpad1=97]="Numpad1",v[v.Numpad2=98]="Numpad2",v[v.Numpad3=99]="Numpad3",v[v.Numpad4=100]="Numpad4",v[v.Numpad5=101]="Numpad5",v[v.Numpad6=102]="Numpad6",v[v.Numpad7=103]="Numpad7",v[v.Numpad8=104]="Numpad8",v[v.Numpad9=105]="Numpad9",v[v.Multiply=106]="Multiply",v[v.Add=107]="Add",v[v.Subtract=109]="Subtract",v[v.DecimalPoint=110]="DecimalPoint",v[v.Divide=111]="Divide",v[v.F1=112]="F1",v[v.F2=113]="F2",v[v.F3=114]="F3",v[v.F4=115]="F4",v[v.F5=116]="F5",v[v.F6=117]="F6",v[v.F7=118]="F7",v[v.F8=119]="F8",v[v.F9=120]="F9",v[v.F10=121]="F10",v[v.F11=122]="F11",v[v.F12=123]="F12",v[v.NumLock=144]="NumLock",v[v.ScrollLock=145]="ScrollLock",v[v.SemiColon=186]="SemiColon",v[v.Equals=187]="Equals",v[v.Comma=188]="Comma",v[v.Dash=189]="Dash",v[v.Period=190]="Period",v[v.UnderScore=189]="UnderScore",v[v.PlusSign=187]="PlusSign",v[v.ForwardSlash=191]="ForwardSlash",v[v.Tilde=192]="Tilde",v[v.GraveAccent=192]="GraveAccent",v[v.OpenBracket=219]="OpenBracket",v[v.ClosedBracket=221]="ClosedBracket",v[v.Quote=222]="Quote",v))(bC||{}),Op=class{constructor(t){this.domNode=t;this.startListening()}static{i(this,"Keyboard")}mapCombosToHandlers=new Map;pressedKeys=new Set;keyEnum=bC;on(t){let r=new Ce.rxjs.Subject;return this.registerKeys(t,r),r}triggerKeyPress(t){for(let r of t)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of t)this.pressedKeys.delete(r)}startListening(){this.domNode.addEventListener("keydown",this.handleKeyDown),this.domNode.addEventListener("keyup",this.handleKeyUp)}stopListening(){this.domNode.removeEventListener("keydown",this.handleKeyDown),this.domNode.removeEventListener("keyup",this.handleKeyUp)}clear(){this.stopListening(),this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}handleKeyDown=i(t=>{this.pressedKeys.add(t.keyCode),this.checkMatchingKeyboardSubjects(t)},"handleKeyDown");checkMatchingKeyboardSubjects(t){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(t)})}handleKeyUp=i(t=>{this.pressedKeys.delete(t.keyCode)},"handleKeyUp");areAllKeysPressed(t){let r=!0;return t.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(t,r){if(!this.mapCombosToHandlers.has(t))this.mapCombosToHandlers.set(t,r);else return this.mapCombosToHandlers.get(t)}};var Za=class e{static{i(this,"DomTools")}static initializationPromise=null;static async setupDomTools(t={}){return!t.ignoreGlobal&&e.initializationPromise?await e.initializationPromise:t.ignoreGlobal?new e(t):(e.initializationPromise=(async()=>{let r;if(globalThis.deesDomTools)r=globalThis.deesDomTools;else{globalThis.deesDomTools=new e(t),r=globalThis.deesDomTools;let n=i(()=>{(document.readyState==="interactive"||document.readyState==="complete")&&(r.elements.headElement=document.querySelector("head"),r.elements.bodyElement=document.querySelector("body"),r.keyboard=new Op(document.body),r.domReady.resolve())},"readyStateChangedFunc");document.readyState==="interactive"||document.readyState==="complete"?n():document.addEventListener("readystatechange",n),r.domToolsReady.resolve()}return await r.domToolsReady.promise,r})(),await e.initializationPromise)}static getGlobalDomToolsSync(){if(!globalThis.deesDomTools)throw new Error("You tried to access domtools synchronously too early");return globalThis.deesDomTools}elements={headElement:null,bodyElement:null};websetup=new Ga({metaObject:{title:""}});smartstate=new Hn.Smartstate;domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:""});router=new $n.SmartRouter({debug:!1});convenience={typedrequest:Dt,smartdelay:he,smartjson:Et,smarturl:Wn};deesComms=new pa.DeesComms;scroller=new Dp(this);themeManager=new Cp(this);keyboard=null;domToolsReady=J.defer();domReady=J.defer();globalStylesReady=J.defer();constructor(t){}runOnceTrackerStringMap=new Xa.Stringmap;runOnceResultMap=new Xa.FastMap;runOnceErrorMap=new Xa.FastMap;async runOnce(t,r){let n=`${t}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(t)){this.runOnceTrackerStringMap.addString(t),this.runOnceTrackerStringMap.addString(n);try{let o=await r();this.runOnceResultMap.addToMap(t,o)}catch(o){this.runOnceErrorMap.addToMap(t,o)}finally{this.runOnceTrackerStringMap.removeString(n)}}return await this.runOnceTrackerStringMap.registerUntilTrue(o=>!o?.includes(n),()=>{let o=this.runOnceErrorMap.getByKey(t);if(o)throw o;return this.runOnceResultMap.getByKey(t)})}async setGlobalStyles(t){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(t)),this.elements.headElement.appendChild(r)}async setExternalScript(t){await this.domReady.promise;let r=J.defer(),n=document.createElement("script");n.src=t,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(t){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=t,document.head.append(r)}async setWebsiteInfo(t){await this.websetup.setup(t),await this.websetup.readyPromise}};var Ip=globalThis,Ka=Ip.ShadowRoot&&(Ip.ShadyCSS===void 0||Ip.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mx=Symbol(),vC=new WeakMap,vs=class{static{i(this,"n")}constructor(t,r,n){if(this._$cssResult$=!0,n!==Mx)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Ka&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=vC.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&vC.set(r,t))}return t}toString(){return this.cssText}},pr=i(e=>new vs(typeof e=="string"?e:e+"",void 0,Mx),"r"),Hr=i((e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,o,s)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[s+1],e[0]);return new vs(r,e,Mx)},"i"),Ap=i((e,t)=>{if(Ka)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),o=Ip.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},"S"),el=Ka?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return pr(r)})(e):e;var{is:gj,defineProperty:xj,getOwnPropertyDescriptor:yj,getOwnPropertyNames:wj,getOwnPropertySymbols:bj,getPrototypeOf:vj}=Object,Mp=globalThis,kC=Mp.trustedTypes,kj=kC?kC.emptyScript:"",Sj=Mp.reactiveElementPolyfillSupport,tl=i((e,t)=>e,"d"),_p={toAttribute(e,t){switch(t){case Boolean:e=e?kj:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},_x=i((e,t)=>!gj(e,t),"f"),SC={attribute:!0,type:String,converter:_p,reflect:!1,useDefault:!1,hasChanged:_x};Symbol.metadata??=Symbol("metadata"),Mp.litPropertyMetadata??=new WeakMap;var Wr=class extends HTMLElement{static{i(this,"y")}static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=SC){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(t,n,r);o!==void 0&&xj(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){let{get:o,set:s}=yj(this.prototype,t)??{get(){return this[r]},set(a){this[r]=a}};return{get:o,set(a){let l=o?.call(this);s?.call(this,a),this.requestUpdate(t,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??SC}static _$Ei(){if(this.hasOwnProperty(tl("elementProperties")))return;let t=vj(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(tl("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(tl("properties"))){let r=this.properties,n=[...wj(r),...bj(r)];for(let o of n)this.createProperty(o,r[o])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(el(o))}else t!==void 0&&r.push(el(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.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(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ap(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){let n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){let s=(n.converter?.toAttribute!==void 0?n.converter:_p).toAttribute(r,n.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,r){let n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=n.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:_p;this._$Em=o;let l=a.fromAttribute(r,s.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(t,r,n,o=!1,s){if(t!==void 0){let a=this.constructor;if(o===!1&&(s=this[t]),n??=a.getPropertyOptions(t),!((n.hasChanged??_x)(s,r)||n.useDefault&&n.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:o,wrapped:s},a){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,a??r??this[t]),s!==!0||a!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[o,s]of n){let{wrapped:a}=s,l=this[o];a!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,s,l)}}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(t){}firstUpdated(t){}};Wr.elementStyles=[],Wr.shadowRootOptions={mode:"open"},Wr[tl("elementProperties")]=new Map,Wr[tl("finalized")]=new Map,Sj?.({ReactiveElement:Wr}),(Mp.reactiveElementVersions??=[]).push("2.1.2");var Px=globalThis,TC=i(e=>e,"i"),Pp=Px.trustedTypes,EC=Pp?Pp.createPolicy("lit-html",{createHTML:i(e=>e,"createHTML")}):void 0,Nx="$lit$",rn=`lit$${Math.random().toFixed(9).slice(2)}$`,Fx="?"+rn,Tj=`<${Fx}>`,qi=document,rl=i(()=>qi.createComment(""),"c"),nl=i(e=>e===null||typeof e!="object"&&typeof e!="function","a"),Lx=Array.isArray,DC=i(e=>Lx(e)||typeof e?.[Symbol.iterator]=="function","d"),Rx=`[
177
- \f\r]`,il=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,CC=/-->/g,OC=/>/g,Yi=RegExp(`>|${Rx}(?:([^\\s"'>=/]+)(${Rx}*=${Rx}*(?:[^
178
- \f\r"'\`<>=]|("|')|))|$)`,"g"),IC=/'/g,AC=/"/g,MC=/^(?:script|style|textarea|title)$/i,Bx=i(e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),"x"),zx=Bx(1),Ej=Bx(2),Dj=Bx(3),qn=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),_C=new WeakMap,Vi=qi.createTreeWalker(qi,129);function PC(e,t){if(!Lx(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return EC!==void 0?EC.createHTML(t):t}i(PC,"V");var NC=i((e,t)=>{let r=e.length-1,n=[],o,s=t===2?"<svg>":t===3?"<math>":"",a=il;for(let l=0;l<r;l++){let u=e[l],c,f,p=-1,h=0;for(;h<u.length&&(a.lastIndex=h,f=a.exec(u),f!==null);)h=a.lastIndex,a===il?f[1]==="!--"?a=CC:f[1]!==void 0?a=OC:f[2]!==void 0?(MC.test(f[2])&&(o=RegExp("</"+f[2],"g")),a=Yi):f[3]!==void 0&&(a=Yi):a===Yi?f[0]===">"?(a=o??il,p=-1):f[1]===void 0?p=-2:(p=a.lastIndex-f[2].length,c=f[1],a=f[3]===void 0?Yi:f[3]==='"'?AC:IC):a===AC||a===IC?a=Yi:a===CC||a===OC?a=il:(a=Yi,o=void 0);let m=a===Yi&&e[l+1].startsWith("/>")?" ":"";s+=a===il?u+Tj:p>=0?(n.push(c),u.slice(0,p)+Nx+u.slice(p)+rn+m):u+rn+(p===-2?l:m)}return[PC(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},"N"),ol=class e{static{i(this,"S")}constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let s=0,a=0,l=t.length-1,u=this.parts,[c,f]=NC(t,r);if(this.el=e.createElement(c,n),Vi.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=Vi.nextNode())!==null&&u.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Nx)){let h=f[a++],m=o.getAttribute(p).split(rn),d=/([.?@])?(.*)/.exec(h);u.push({type:1,index:s,name:d[2],strings:m,ctor:d[1]==="."?Fp:d[1]==="?"?Lp:d[1]==="@"?Rp:Gi}),o.removeAttribute(p)}else p.startsWith(rn)&&(u.push({type:6,index:s}),o.removeAttribute(p));if(MC.test(o.tagName)){let p=o.textContent.split(rn),h=p.length-1;if(h>0){o.textContent=Pp?Pp.emptyScript:"";for(let m=0;m<h;m++)o.append(p[m],rl()),Vi.nextNode(),u.push({type:2,index:++s});o.append(p[h],rl())}}}else if(o.nodeType===8)if(o.data===Fx)u.push({type:2,index:s});else{let p=-1;for(;(p=o.data.indexOf(rn,p+1))!==-1;)u.push({type:7,index:s}),p+=rn.length-1}s++}}static createElement(t,r){let n=qi.createElement("template");return n.innerHTML=t,n}};function Qi(e,t,r=e,n){if(t===qn)return t;let o=n!==void 0?r._$Co?.[n]:r._$Cl,s=nl(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(e),o._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(t=Qi(e,o._$AS(e,t.values),o,n)),t}i(Qi,"M");var Np=class{static{i(this,"R")}constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,o=(t?.creationScope??qi).importNode(r,!0);Vi.currentNode=o;let s=Vi.nextNode(),a=0,l=0,u=n[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new ks(s,s.nextSibling,this,t):u.type===1?c=new u.ctor(s,u.name,u.strings,this,t):u.type===6&&(c=new Bp(s,this,t)),this._$AV.push(c),u=n[++l]}a!==u?.index&&(s=Vi.nextNode(),a++)}return Vi.currentNode=qi,o}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},ks=class e{static{i(this,"k")}get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Qi(this,t,r),nl(t)?t===tt||t==null||t===""?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==qn&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):DC(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==tt&&nl(this._$AH)?this._$AA.nextSibling.data=t:this.T(qi.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=ol.createElement(PC(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let s=new Np(o,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(t){let r=_C.get(t.strings);return r===void 0&&_C.set(t.strings,r=new ol(t)),r}k(t){Lx(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,o=0;for(let s of t)o===r.length?r.push(n=new e(this.O(rl()),this.O(rl()),this,this.options)):n=r[o],n._$AI(s),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=TC(t).nextSibling;TC(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Gi=class{static{i(this,"H")}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,s){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=r,this._$AM=o,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=tt}_$AI(t,r=this,n,o){let s=this.strings,a=!1;if(s===void 0)t=Qi(this,t,r,0),a=!nl(t)||t!==this._$AH&&t!==qn,a&&(this._$AH=t);else{let l=t,u,c;for(t=s[0],u=0;u<s.length-1;u++)c=Qi(this,l[n+u],r,u),c===qn&&(c=this._$AH[u]),a||=!nl(c)||c!==this._$AH[u],c===tt?t=tt:t!==tt&&(t+=(c??"")+s[u+1]),this._$AH[u]=c}a&&!o&&this.j(t)}j(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Fp=class extends Gi{static{i(this,"I")}constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===tt?void 0:t}},Lp=class extends Gi{static{i(this,"L")}constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}},Rp=class extends Gi{static{i(this,"z")}constructor(t,r,n,o,s){super(t,r,n,o,s),this.type=5}_$AI(t,r=this){if((t=Qi(this,t,r,0)??tt)===qn)return;let n=this._$AH,o=t===tt&&n!==tt||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==tt&&(n===tt||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Bp=class{static{i(this,"Z")}constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Qi(this,t)}},Cj={M:Nx,P:rn,A:Fx,C:1,L:NC,R:Np,D:DC,V:Qi,I:ks,H:Gi,N:Lp,U:Rp,B:Fp,F:Bp},Oj=Px.litHtmlPolyfillSupport;Oj?.(ol,ks),(Px.litHtmlVersions??=[]).push("3.3.2");var $x=i((e,t,r)=>{let n=r?.renderBefore??t,o=n._$litPart$;if(o===void 0){let s=r?.renderBefore??null;n._$litPart$=o=new ks(t.insertBefore(rl(),s),s,void 0,r??{})}return o._$AI(e),o},"D");var Hx=globalThis,Ji=class extends Wr{static{i(this,"i")}constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=$x(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return qn}};Ji._$litElement$=!0,Ji.finalized=!0,Hx.litElementHydrateSupport?.({LitElement:Ji});var Ij=Hx.litElementPolyfillSupport;Ij?.({LitElement:Ji});var Aj={_$AK:i((e,t,r)=>{e._$AK(t,r)},"_$AK"),_$AL:i(e=>e._$AL,"_$AL")};(Hx.litElementVersions??=[]).push("4.2.2");var Mj=!1;var zp=(()=>{let e=navigator.userAgent.indexOf("Mac OS X")===-1?Hr``.cssText:"";return Hr`
174
+ `},"replacement")},xs.tableSection={filter:["thead","tbody","tfoot"],replacement:i(function(e){return e},"replacement")};function Wg(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||hW(t))&&pW.call(e.childNodes,function(r){return r.nodeName==="TH"})}i(Wg,"isHeadingRow");function hW(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}i(hW,"isFirstTbody");function QD(e,t){var r=fW.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}i(QD,"cell");function Yg(e){e.keep(function(r){return r.nodeName==="TABLE"&&!Wg(r.rows[0])});for(var t in xs)e.addRule(t,xs[t])}i(Yg,"tables");function Vg(e){e.addRule("taskListItems",{filter:i(function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},"filter"),replacement:i(function(t,r){return(r.checked?"[x]":"[ ]")+" "},"replacement")})}i(Vg,"taskListItems");function GD(e){e.use([jg,qg,Yg,Vg])}i(GD,"gfm");var Qg=It(D1(),1);var pp=class e{static{i(this,"MdParsedResult")}static async createFromMarkdownString(t){let r=new e;return await r.updateFromMarkdownString(t),r}async updateFromMarkdownString(t){let r,n=await Sa().use(us).use(ls).use(fs,["yaml","toml"]).use(gs).use(ds).use(()=>o=>{console.dir(o);let s=o.children.find(a=>a.type==="yaml");s&&(r=s.value)}).process(t);this.html=n.toString(),r?this.frontmatterData=await Qg.yamlStringToObject(r):this.frontmatterData={}}};var Gg=class e{static{i(this,"SmartMarkdown")}static async easyMarkdownToHtml(t){return(await new e().getMdParsedResultFromMarkdown(t)).html}constructor(){}async getMdParsedResultFromMarkdown(t){return await pp.createFromMarkdownString(t)}htmlToMarkdown(t){let r=new fp({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(ja.gfm),r.turndown(t)}};var Bi={};se(Bi,{SmartRouter:()=>rx});var tx=It(nC(),1);var mp=class{static{i(this,"QueryParams")}constructor(){}getAllAsObject(){let t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())}setQueryParam(t,r,n="replace"){var o=new URLSearchParams(window.location.search);o.set(t,r),n==="push"?history.pushState(null,null,"?"+o.toString()):history.replaceState(null,null,"?"+o.toString())}deleteQueryParam(t,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(t),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(t){return this.getAllAsObject()[t]}};var qYe=i(e=>{console.log(`%c[Router]%c ${e}`,"color: rgb(255, 105, 100);","color: inherit")},"routeLog"),rx=class e{static{i(this,"SmartRouter")}constructor(t,r=""){this.options={debug:!1},this.queryParams=new mp,this.routes=[],this.options={...this.options,...t},this.basePath=r,this.popstateListener=n=>{n.preventDefault(),this._handleRouteState()},window.addEventListener("popstate",this.popstateListener)}createSubRouter(t,r){let n=`${this.basePath}${t}`;return new e({...this.options,...r},n)}async pushUrl(t="/",r={}){let n=`${this.basePath}${t}`;n!==window.location.pathname?window.history.pushState(r,window.document.title,n):window.history.replaceState(r,window.document.title,n),await this._handleRouteState()}on(t,r){let n=`${this.basePath}${t}`,o={matchFunction:tx.match(n),handler:r};return this.routes.push(o),i(()=>{this.routes.splice(this.routes.indexOf(o),1)},"removeFunction")}async _handleRouteState(){let t=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(t));for(let n of r){let o=n.matchFunction(t);n.handler({...o.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var $i={};se($i,{Smartstate:()=>fx,StateAction:()=>Ga,StatePart:()=>Ja,StateProcess:()=>ys,attachContextProvider:()=>KW,computed:()=>cx});var Qa={};se(Qa,{md5FromString:()=>VW,sha256FromBuffer:()=>WW,sha256FromFile:()=>YW,sha256FromStream:()=>qW,sha256FromString:()=>fC,sha256FromStringSync:()=>UW,sha265FromObject:()=>jW});var Ya={};se(Ya,{Smartenv:()=>nx});var nx=class{static{i(this,"Smartenv")}constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}. This does not throw.`);return}let n=await new Function(`return import('${t}')`)();return r&&await r(n),n}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=J.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=t,document.head.appendChild(o)}return await n.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 Va={};se(Va,{Smartjson:()=>lx,deepEqualJsonLStrings:()=>RW,deepEqualObjects:()=>lC,foldDec:()=>LW,parse:()=>yp,parseBase64:()=>FW,parseJsonL:()=>ax,stableOneWayStringify:()=>_W,stringify:()=>zi,stringifyBase64:()=>PW,stringifyJsonL:()=>MW,stringifyPretty:()=>NW});var dp=It(sm(),1),iC=It(am(),1),gp=iC.default;function DW(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(String.fromCharCode(...e))}i(DW,"base64Encode");function CW(e){if(typeof Buffer<"u"){let t=Buffer.from(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}i(CW,"base64Decode");function ox(e,t){return JSON.stringify(e,xp,t)}i(ox,"stringify");function sx(e){return JSON.parse(e,oC)}i(sx,"parse");var xp=i((e,t)=>{if(OW(t)){let r;if("data"in t&&sC(t.data))r=new Uint8Array(t.data);else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+DW(r)}}return t},"replacer"),oC=i((e,t)=>{if(IW(t)&&ix(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return CW(r)}return t},"reviver");function IW(e){return aC(e)&&e.type==="EncodedBuffer"&&ix(e.data)}i(IW,"isEncodedBuffer");function OW(e){return aC(e)&&e.type==="Buffer"&&(sC(e.data)||ix(e.data))||e instanceof Uint8Array}i(OW,"isBufferLike");function sC(e){return Array.isArray(e)}i(sC,"isArray");function ix(e){return typeof e=="string"}i(ix,"isString");function aC(e){return typeof e=="object"&&e!==null}i(aC,"isObject");var yp=sx,ax=i(e=>e.split(`
175
+ `).reduce((n,o)=>{let s=o.trim();return s.length>0&&n.push(yp(s)),n},[]),"parseJsonL"),MW=i(e=>e.map(t=>zi(t)).join(`
176
+ `),"stringifyJsonL"),_W=i((e,t,r={})=>{let n=new WeakSet,o=i(l=>{if(l===null||typeof l!="object")return l;let u=xp("",l);if(u&&u.type==="EncodedBuffer"&&typeof u.data=="string")return u;if(n.has(l))return"__cycle__";if(n.add(l),Array.isArray(l))return l.map(f=>o(f));let c={};for(let f of Object.keys(l))try{c[f]=o(l[f])}catch{c[f]="__unserializable__"}return c},"sanitize"),s=o(e),a={...r,cycles:!0};if(t&&!a.cmp){let l=new Map;t.forEach((u,c)=>l.set(u,c)),a.cmp=(u,c)=>{let f=l.has(u.key)?l.get(u.key):Number.POSITIVE_INFINITY,p=l.has(c.key)?l.get(c.key):Number.POSITIVE_INFINITY;return f!==p?f-p:u.key<c.key?-1:u.key>c.key?1:0}}return gp(s,a)},"stableOneWayStringify"),zi=i((e,t,r={})=>{let n=ox(e);e=JSON.parse(n);let o={...r};if(t&&!o.cmp){let a=new Map;t.forEach((l,u)=>a.set(l,u)),o.cmp=(l,u)=>{let c=a.has(l.key)?a.get(l.key):Number.POSITIVE_INFINITY,f=a.has(u.key)?a.get(u.key):Number.POSITIVE_INFINITY;return c!==f?c-f:l.key<u.key?-1:l.key>u.key?1:0}}return gp(e,o)},"stringify"),NW=i(e=>{let t=zi(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},"stringifyPretty"),PW=i((...e)=>{let t=zi(...e);return St.base64.encodeUri(t)},"stringifyBase64"),FW=i(e=>{let t=St.base64,n=(t.decodeUri||t.decode)(e);return yp(n)},"parseBase64"),lx=class e{static{i(this,"Smartjson")}static enfoldFromObject(t){let r=new this,n=r.saveableProperties||[];for(let o in t)n.indexOf(o)!==-1&&(r[o]=t[o]);return r}static enfoldFromJson(t){let r=yp(t);return this.enfoldFromObject(r)}foldToObject(){let t=new Set;return t.add(this),this.foldToObjectInternal(t)}foldToObjectInternal(t){let r={},n=i(s=>{if(s instanceof e){if(t.has(s))throw new Error("cycle detected");return t.add(s),s.foldToObjectInternal(t)}return Array.isArray(s)?s.map(a=>n(a)):dp.default(s)},"foldValue"),o=this.saveableProperties||[];for(let s of o){let a=this[s];r[s]=n(a)}return r}foldToJson(){let t=this.foldToObject();return zi(t)}},LW=i(()=>(e,t)=>{e.saveableProperties||(e.saveableProperties=[]),e.saveableProperties.push(t)},"foldDec"),lC=i((e,t)=>{let r=zi(e),n=zi(t);return r===n},"deepEqualObjects"),RW=i((e,t)=>{let r=ax(e),n=ax(t);return lC(r,n)},"deepEqualJsonLStrings");var zW=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],$W=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function $r(e,t){return e>>>t|e<<32-t}i($r,"rotr");function HW(e,t){let r=t[0],n=t[1],o=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7];for(let f=0;f<64;f++){if(f>=16){let b=$r(e[f-15],7)^$r(e[f-15],18)^e[f-15]>>>3,T=$r(e[f-2],17)^$r(e[f-2],19)^e[f-2]>>>10;e[f]=e[f-16]+b+e[f-7]+T>>>0}let p=$r(a,6)^$r(a,11)^$r(a,25),h=a&l^~a&u,m=c+p+h+zW[f]+e[f]>>>0,d=$r(r,2)^$r(r,13)^$r(r,22),g=r&n^r&o^n&o,x=d+g>>>0;c=u,u=l,l=a,a=s+m>>>0,s=o,o=n,n=r,r=m+x>>>0}t[0]=t[0]+r>>>0,t[1]=t[1]+n>>>0,t[2]=t[2]+o>>>0,t[3]=t[3]+s>>>0,t[4]=t[4]+a>>>0,t[5]=t[5]+l>>>0,t[6]=t[6]+u>>>0,t[7]=t[7]+c>>>0}i(HW,"sha256Transform");function ux(e){let t=[...$W],r=e.length,n=r*8,o=r%64<56?56-r%64:120-r%64,s=new Uint8Array(r+o+8);s.set(e),s[r]=128;let a=new DataView(s.buffer);a.setUint32(s.length-8,0,!1),a.setUint32(s.length-4,n>>>0,!1);for(let u=0;u<s.length;u+=64){let c=new Array(64);for(let f=0;f<16;f++)c[f]=a.getUint32(u+f*4,!1);HW(c,t)}let l="";for(let u=0;u<8;u++)l+=t[u].toString(16).padStart(8,"0");return l}i(ux,"sha256Fallback");var uC=i(e=>{let t=[],r=new DataView(e);for(let n=0;n<r.byteLength;n+=4){let s=r.getUint32(n).toString(16),a="00000000",l=(a+s).slice(-a.length);t.push(l)}return t.join("")},"hex"),cC=i(()=>typeof crypto<"u"&&crypto.subtle!==void 0,"isCryptoSubtleAvailable"),fC=i(async e=>{let t=new TextEncoder().encode(e);if(cC()){let r=await crypto.subtle.digest("SHA-256",t);return uC(r)}else return ux(t)},"sha256FromString"),UW=i(e=>{throw console.warn("sha256FromStringSync is not truly synchronous in browser environment"),new Error("sha256FromStringSync is not supported in browser environment. Use sha256FromString instead.")},"sha256FromStringSync"),WW=i(async e=>{if(cC()){let t;if(e instanceof Uint8Array){let o=e;t=o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}else t=e;let r=await crypto.subtle.digest("SHA-256",t);return uC(r)}else{let t=e instanceof Uint8Array?e:new Uint8Array(e);return ux(t)}},"sha256FromBuffer"),jW=i(async e=>{let t=Va.stringify(e);return await fC(t)},"sha265FromObject"),qW=i(e=>{throw new Error("sha256FromStream is not supported in browser environment")},"sha256FromStream"),YW=i(async e=>{throw new Error("sha256FromFile is not supported in browser environment")},"sha256FromFile"),VW=i(async e=>{throw new Error("md5FromString is not supported in browser environment. Web Crypto API does not support MD5.")},"md5FromString");var Ga=class{static{i(this,"StateAction")}constructor(t,r){this.statePartRef=t,this.actionDef=r}trigger(t){return this.statePartRef.dispatchAction(this,t)}};function GW(){return typeof document>"u"?Ms(!0):new ye(e=>{e.next(!document.hidden);let t=i(()=>e.next(!document.hidden),"handler");return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)})}i(GW,"createVisibilityObservable");var ys=class{static{i(this,"StateProcess")}constructor(t,r){this.statusSubject=new to("idle"),this.producerSubscription=null,this.autoPauseSubscription=null,this.processingQueue=Promise.resolve(),this.statePartRef=t,this.producerFn=r.producer,this.reducer=r.reducer,this.sideEffect=r.sideEffect,this.autoPauseOption=r.autoPause??!1}get status(){return this.statusSubject.getValue()}get status$(){return this.statusSubject.asObservable()}start(){if(this.status==="disposed")throw new Error("Cannot start a disposed process");this.status!=="running"&&(this.statusSubject.next("running"),this.subscribeProducer(),this.setupAutoPause())}pause(){if(this.status==="disposed")throw new Error("Cannot pause a disposed process");this.status==="running"&&(this.statusSubject.next("paused"),this.unsubscribeProducer())}resume(){if(this.status==="disposed")throw new Error("Cannot resume a disposed process");this.status==="paused"&&(this.statusSubject.next("running"),this.subscribeProducer())}dispose(){this.status!=="disposed"&&(this.unsubscribeProducer(),this.teardownAutoPause(),this.statusSubject.next("disposed"),this.statusSubject.complete(),this.statePartRef._removeProcess(this))}subscribeProducer(){this.unsubscribeProducer();let t=this.producerFn();this.producerSubscription=t.subscribe({next:i(r=>{this.processingQueue=this.processingQueue.then(async()=>{try{if(this.sideEffect)await this.sideEffect(r);else if(this.reducer){let n=this.statePartRef.getState();n!==void 0&&await this.statePartRef.setState(this.reducer(n,r))}}catch(n){console.error("StateProcess value handling error:",n)}})},"next"),error:i(r=>{console.error("StateProcess producer error:",r),this.status==="running"&&(this.statusSubject.next("paused"),this.unsubscribeProducer())},"error")})}unsubscribeProducer(){this.producerSubscription&&(this.producerSubscription.unsubscribe(),this.producerSubscription=null)}setupAutoPause(){if(this.teardownAutoPause(),!this.autoPauseOption)return;let t=this.autoPauseOption==="visibility"?GW():this.autoPauseOption;this.autoPauseSubscription=t.subscribe(r=>{!r&&this.status==="running"?this.pause():r&&this.status==="paused"&&this.resume()})}teardownAutoPause(){this.autoPauseSubscription&&(this.autoPauseSubscription.unsubscribe(),this.autoPauseSubscription=null)}};function JW(e){return new ye(t=>{if(e.aborted){t.next(),t.complete();return}let r=i(()=>{t.next(),t.complete()},"handler");return e.addEventListener("abort",r),()=>e.removeEventListener("abort",r)})}i(JW,"fromAbortSignal");var Ja=class e{static{i(this,"StatePart")}static{this.MAX_NESTED_DISPATCH_DEPTH=10}constructor(t,r){this.state=new to(void 0),this.disposed=!1,this.cumulativeDeferred=J.cumulativeDefer(),this.mutationQueue=Promise.resolve(),this.pendingCumulativeNotification=null,this.webStore=null,this.middlewares=[],this.processes=[],this.selectorCache=new WeakMap,this.defaultSelectObservable=null,this.name=t,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new or.WebStore(this.webStoreOptions),await this.webStore.init();let t=await this.webStore.get(String(this.name));t&&this.validateState(t)&&(this.stateStore=t,await this.notifyChange())}}getState(){return this.stateStore}addMiddleware(t){return this.middlewares.push(t),()=>{let r=this.middlewares.indexOf(t);r!==-1&&this.middlewares.splice(r,1)}}async setState(t){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);return this.mutationQueue=this.mutationQueue.then(()=>this.applyState(t),()=>this.applyState(t))}async applyState(t){let r=t;for(let n of this.middlewares)r=await n(r,this.stateStore);if(!this.validateState(r))throw new Error(`Invalid state structure for state part '${this.name}'`);return this.webStore&&await this.webStore.set(String(this.name),r),this.stateStore=r,await this.notifyChange(),this.stateStore}validateState(t){return t!=null}async notifyChange(){let t=this.stateStore;if(t===void 0)return;if(this.smartstateRef?.isBatching){this.smartstateRef.registerPendingNotification(this);return}let r=i(async n=>await Qa.sha256FromString(Tt.stableOneWayStringify(n)),"createStateHash");try{let n=await r(t);if(this.lastStateNotificationPayloadHash&&n===this.lastStateNotificationPayloadHash)return;this.lastStateNotificationPayloadHash=n}catch(n){console.error(`State hash computation failed for '${this.name}':`,n)}this.state.next(t)}notifyChangeCumulative(){this.pendingCumulativeNotification&&clearTimeout(this.pendingCumulativeNotification),this.pendingCumulativeNotification=setTimeout(()=>{this.pendingCumulativeNotification=null,this.stateStore!==void 0&&this.notifyChange().catch(t=>{console.error(`notifyChangeCumulative failed for '${this.name}':`,t)})},0)}select(t,r){let n=r?.signal!=null;if(!n){if(t){if(this.selectorCache.has(t))return this.selectorCache.get(t)}else if(this.defaultSelectObservable)return this.defaultSelectObservable}let o=t||(u=>u),s=Symbol("selector-error"),a=this.state.pipe(Oe.rxjs.ops.filter(u=>u!==void 0),Oe.rxjs.ops.map(u=>{try{return o(u)}catch(c){return console.error(`Selector error in state part '${this.name}':`,c),s}}),Oe.rxjs.ops.filter(u=>u!==s),so((u,c)=>JSON.stringify(u)===JSON.stringify(c)));if(n)return a=a.pipe(ao(JW(r.signal))),a;let l=a.pipe(Bl({bufferSize:1,refCount:!0}));return t?this.selectorCache.set(t,l):this.defaultSelectObservable=l,l}createAction(t){return new Ga(this,t)}createActionContext(t){let r=this;return{dispatch:i(async(n,o)=>{if(t>=e.MAX_NESTED_DISPATCH_DEPTH)throw new Error(`Maximum nested action dispatch depth (${e.MAX_NESTED_DISPATCH_DEPTH}) exceeded. Check for circular action dispatches.`);let s=r.createActionContext(t+1),a=await n.actionDef(r,o,s);return r.applyState(a)},"dispatch")}}async dispatchAction(t,r){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);await this.cumulativeDeferred.promise;let n=i(async()=>{let o=this.createActionContext(0),s=await t.actionDef(this,r,o);return this.applyState(s)},"execute");return this.mutationQueue=this.mutationQueue.then(n,n)}async waitUntilPresent(t,r){let n,o;typeof r=="number"?n=r:r&&(n=r.timeoutMs,o=r.signal);let s=J.defer(),a=this.select(t),l=!1;if(o?.aborted)throw new Error("Aborted");let u=a.subscribe(p=>{p!=null&&!l&&(l=!0,s.resolve(p))}),c;n&&(c=setTimeout(()=>{l||(l=!0,u.unsubscribe(),s.reject(new Error(`waitUntilPresent timed out after ${n}ms`)))},n));let f=o?()=>{l||(l=!0,u.unsubscribe(),c&&clearTimeout(c),s.reject(new Error("Aborted")))}:void 0;o&&f&&o.addEventListener("abort",f);try{return await s.promise}finally{u.unsubscribe(),c&&clearTimeout(c),o&&f&&o.removeEventListener("abort",f)}}async stateSetup(t){let r=t(this);this.cumulativeDeferred.addPromise(r),await this.setState(await r)}createProcess(t){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);let r=new ys(this,t);return this.processes.push(r),t.autoStart&&r.start(),r}createScheduledAction(t){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);let r=new ys(this,{producer:i(()=>ch(t.intervalMs),"producer"),sideEffect:i(async()=>{await t.action.trigger(t.payload)},"sideEffect"),autoPause:t.autoPause??!1});return this.processes.push(r),r.start(),r}_removeProcess(t){let r=this.processes.indexOf(t);r!==-1&&this.processes.splice(r,1)}dispose(){if(!this.disposed){this.disposed=!0;for(let t of[...this.processes])t.dispose();this.processes.length=0,this.state.complete(),this.mutationQueue=Promise.resolve(),this.pendingCumulativeNotification&&(clearTimeout(this.pendingCumulativeNotification),this.pendingCumulativeNotification=null),this.middlewares.length=0,this.selectorCache=new WeakMap,this.defaultSelectObservable=null,this.webStore=null,this.smartstateRef=void 0,this.stateStore=void 0}}};function cx(e,t){return uh(e.map(r=>r.select())).pipe(Sr(r=>t(...r)),so((r,n)=>JSON.stringify(r)===JSON.stringify(n)))}i(cx,"computed");var fx=class{static{i(this,"Smartstate")}constructor(){this.statePartMap={},this.pendingStatePartCreation=new Map,this.batchDepth=0,this.isFlushing=!1,this.pendingNotifications=new Set}get isBatching(){return this.batchDepth>0}registerPendingNotification(t){this.pendingNotifications.add(t)}async batch(t){this.batchDepth++;try{await t()}finally{if(this.batchDepth--,this.batchDepth===0&&!this.isFlushing){this.isFlushing=!0;try{for(;this.pendingNotifications.size>0;){let r=[...this.pendingNotifications];this.pendingNotifications.clear();for(let n of r)try{await n.notifyChange()}catch(o){console.error("Error flushing notification for state part:",o)}}}finally{this.isFlushing=!1}}}}computed(t,r){return cx(t,r)}dispose(){for(let t of Object.keys(this.statePartMap)){let r=this.statePartMap[t];r&&r.dispose()}this.statePartMap={},this.pendingStatePartCreation.clear(),this.pendingNotifications.clear()}async getStatePart(t,r,n="soft"){let o=this.pendingStatePartCreation.get(t);if(o)return o;let s=this.statePartMap[t];if(s)switch(n){case"mandatory":throw new Error(`State part '${t}' already exists, but initMode is 'mandatory'`);case"force":s.dispose();break;default:return s}else if(r===void 0)throw new Error(`State part '${t}' does not exist and no initial state provided`);let a=this.createStatePart(t,r,n);this.pendingStatePartCreation.set(t,a);try{return await a}finally{this.pendingStatePartCreation.delete(t)}}async createStatePart(t,r,n="soft"){let o=new Ja(t,n==="persistent"?{dbName:"smartstate",storeName:t}:void 0);o.smartstateRef=this,await o.init();let s=o.getState();return n==="persistent"&&s!==void 0?await o.setState({...r,...s}):await o.setState(r),this.statePartMap[t]=o,o}};function KW(e,t){let{context:r,statePart:n,selectorFn:o}=t,s=new Set,a=n.select(o).subscribe(c=>{for(let f of s)f(c)}),l=i(()=>{let c=n.getState();if(c!==void 0)return o?o(c):c},"getValue"),u=i(c=>{let f=c,p=f.detail;if(!(!p||p.context!==r))if(f.stopPropagation(),p.subscribe){let h=p.callback;s.add(h);let m=i(()=>s.delete(h),"unsubscribe");h(l(),m)}else p.callback(l())},"handler");return e.addEventListener("context-request",u),()=>{e.removeEventListener("context-request",u),a.unsubscribe(),s.clear()}}i(KW,"attachContextProvider");var Hi={};se(Hi,{Smarturl:()=>px});var px=class e{static{i(this,"Smarturl")}static createFromUrl(t,r){let n=new URL(t),o={},s=[];n.search&&n.search.replace("?","").split("&").map(c=>{s.push({key:c.split("=")[0],value:c.split("=")[1]})});for(let c of s)o[c.key]=c.value;if(r?.searchParams)for(let c of Object.keys(r.searchParams))o[c]=r.searchParams[c];let a=n.pathname||"";if(Object.keys(o).length>0){a+="?";let c=!0;for(let f of Object.keys(o))c?c=!1:a+="&",a+=`${f}=${o[f]}`}let l={...n,href:n.href,origin:n.origin,protocol:n.protocol,username:n.username,password:n.password,host:n.host,hostname:n.hostname,port:n.port,path:a,pathname:n.pathname,search:n.search,searchParams:o,hash:n.hash};!l.port&&l.protocol==="https:"&&(l.port="443"),!l.port&&l.protocol==="http:"&&(l.port="80");let u=new e;return Object.assign(u,l),u}static createFromParsedUrl(t){let r=new e;return Object.assign(r,t),r}constructor(){this.searchParams={}}clone(){let t=new e;return Object.assign(t,this),t.searchParams={...this.searchParams},t}set(t,r){return this[t]=r,this}toString(){let t="";return this.username&&!this.password&&(t=`${this.username}@`),this.username&&this.password&&(t=`${this.username}:${this.password}@`),`${this.protocol}//${t}${this.hostname}:${this.port}${this.path}`}};var Cx={};se(Cx,{JsonLdTag:()=>ji,MetaTag:()=>Zt,OpengraphTag:()=>Et,Title:()=>Dx,WebSetup:()=>Ka});var hx={};se(hx,{Timeout:()=>vp,delayFor:()=>hC,delayForRandom:()=>ij});var Wi={};se(Wi,{CumulativeDeferred:()=>bp,Deferred:()=>wp,cumulativeDefer:()=>XW,defer:()=>Ui,getFirstTrueOrFalse:()=>nj,map:()=>tj,rejectedPromise:()=>ej,resolvedPromise:()=>ZW,timeoutAndContinue:()=>rj,timeoutWrap:()=>pC});var wp=class{static{i(this,"Deferred")}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((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},Ui=i(()=>new wp,"defer");var bp=class{static{i(this,"CumulativeDeferred")}constructor(){this.accumulatedPromises=[],this.deferred=Ui(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(t){this.accumulatedPromises.push(t)}},XW=i(()=>new bp,"cumulativeDefer");var ZW=i(e=>Promise.resolve(e),"resolvedPromise"),ej=i(e=>Promise.reject(e),"rejectedPromise"),tj=i(async(e,t)=>{let r=[],n=[];for(let o of e){let s=t(o);r.push(s),s.then(a=>{n.push(a)})}return await Promise.all(r),n},"map"),pC=i(async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),"timeoutWrap"),rj=i(async(e,t=6e4)=>pC(e,t,!1),"timeoutAndContinue"),nj=i(async e=>{let t=Ui();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise},"getFirstTrueOrFalse");var hC=i(async(e,t,r=!1)=>(await new vp(e,null,r).promise,t),"delayFor"),ij=i(async(e,t,r,n=!1)=>(await hC(Math.random()*(t-e)+e,null,n),r),"delayForRandom"),vp=class{static{i(this,"Timeout")}constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=Ui(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},t),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let t=this.started+this.timeoutInMillis-Date.now();return t>0?t:0}};var Ex={};se(Ex,{business:()=>kp,code:()=>xx,container:()=>yx,content:()=>wx,database:()=>gx,finance:()=>mx,general:()=>bx,network:()=>Sp,saas:()=>kx,storage:()=>Sx,website:()=>Tx});var kp={};se(kp,{IJob:()=>dx});var mx={};var dx=class{static{i(this,"IJob")}};var gx={};var xx={};var yx={};var wx={};var bx={};var Sp={};se(Sp,{ICnameDescriptor:()=>vx});var vx=class{static{i(this,"ICnameDescriptor")}};var kx={};var Sx={};var Tx={};var $n=class{static{i(this,"Tag")}appendToDom(){!this.elementRef.parentElement&&!this.elementRef.parentNode&&document.getElementsByTagName("head")[0].appendChild(this.elementRef)}removeFromDom(){this.elementRef.parentElement?this.elementRef.parentElement.removeChild(this.elementRef):this.elementRef.parentNode&&this.elementRef.parentNode.removeChild(this.elementRef)}};var ji=class e extends $n{static{i(this,"JsonLdTag")}static createCompanyJsonLd(t){let r={"@context":"https://schema.org","@type":"Corporation",name:t.name,alternateName:t.name.replace(" GmbH",""),url:t.contact.website,logo:t.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:t.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return t.contact.facebookUrl&&r.sameAs.push(t.contact.facebookUrl),t.contact.twitterUrl&&r.sameAs.push(t.contact.twitterUrl),new e(r)}static createNewsArticleJsonLd(t){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[t.featuredImageUrl],datePublished:new Date(t.timestamp).toISOString(),dateModified:new Date(t.timestamp).toISOString(),author:{"@type":"Person",name:`${t.author.firstName} ${t.author.surName}`},publisher:{"@type":"Organization",name:t.author.surName,logo:{"@type":"ImageObject",url:t.author.surName}},description:t.author.firstName};return new e(r)}static createProductJsonLd(t,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:t.name,description:t.description,operatingSystem:t.os,applicationCategory:t.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:this.createCompanyJsonLd(r).elementRef.textContent,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new e(n)}constructor(t){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(t),this.elementRef=r}};var Et=class e extends $n{static{i(this,"OpengraphTag")}static createNewsArticleOgTags(t){let r=[];return r.push(new e("og:url",t.url)),r.push(new e("og:title",t.title)),r.push(new e("og:description",t.content)),r.push(new e("og:image",t.featuredImageUrl)),r}static createProductOgTags(t){let r=[];return r.push(new e("og:url",globalThis.location.href)),r.push(new e("og:title",`${t.name} - ${t.slogan}`)),r.push(new e("og:site_name",t.name)),r.push(new e("og:description",t.description)),r.push(new e("og:image",t.logoLink)),r}constructor(t,r){super();let n=document.createElement("meta");n.setAttribute("property",t),n.content=r,this.elementRef=n}};var ws=class{static{i(this,"TagLevel")}set title(t){this.titleStore=t,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(t,r){this.tags=[],this.state="disabled",this.tagManagerRef=t}addTag(t){if(t instanceof Array)for(let r of t)this.addTag(r);else this.tags.push(t),this.state==="enabled"&&t.appendToDom()}async addCompanyInfo(t){this.addTag(ji.createCompanyJsonLd(t)),this.addTag(new Et("og:type","business.business")),this.addTag(new Et("og:title",t.name)),this.addTag(new Et("og:url",t.contact.website)),this.addTag(new Et("og:image",t.contact.logoUrl)),this.addTag(new Et("business:contact_data:street_address",`${t.contact.address.streetName} ${t.contact.address.houseNumber}`)),this.addTag(new Et("business:contact_data:locality",t.contact.address.postalCode)),this.addTag(new Et("business:contact_data:region",t.contact.address.city)),this.addTag(new Et("business:contact_data:postal_code",t.contact.address.postalCode)),this.addTag(new Et("business:contact_data:country_name",t.contact.address.country))}addNewsArticleInfo(t){this.addTag(ji.createNewsArticleJsonLd(t)),this.addTag(Et.createNewsArticleOgTags(t))}addProductInfo(t,r){this.addTag(ji.createProductJsonLd(t,r)),this.addTag(Et.createProductOgTags(t))}async enable(){this.title&&(document.title=this.title);for(let t of this.tags)t.appendToDom();this.state="enabled"}async disable(){for(let t of this.tags)t.removeFromDom();this.state="disabled"}};var Zt=class extends $n{static{i(this,"MetaTag")}constructor(t,r){super();let n=document.createElement("meta");n.name=t,n.content=r,this.elementRef=n}};var Tp=class{static{i(this,"TagManager")}constructor(){this.globalLevel=new ws(this,"global"),this.baseLevel=new ws(this,"base")}async setup(t){switch(this.globalLevel.addTag(new Zt("google","notranslate")),this.globalLevel.addTag(new Zt("revisit-after","1 days")),t.twitterHandle&&(this.globalLevel.addTag(new Zt("twitter:card","summary_large_image")),this.globalLevel.addTag(new Zt("twitter:site",t.twitterHandle)),this.globalLevel.addTag(new Zt("twitter:creator",t.twitterHandle))),this.baseLevel.title=t.title,t.description&&this.baseLevel.addTag(new Zt("description",t.description)),t.canonicalDomain&&this.baseLevel.addTag(new Zt("canonical",t.canonicalDomain)),!0){case(t.ldCompany&&!t.ldProduct):this.baseLevel.addCompanyInfo(t.ldCompany);break;case!!t.ldProduct:this.baseLevel.addProductInfo(t.ldProduct,t.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(t){let r=new ws(this,"subpage");return r.title=t.title,t.description&&r.addTag(new Zt("description",t.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var Ka=class{static{i(this,"WebSetup")}constructor(t){this.tagManager=new Tp,this.readyDeferred=Wi.defer(),this.readyForSmartssrDeferred=Wi.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=t,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(t){t&&(this.options=t),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(t){return await this.tagManager.setSubPageLevel(t)}flashTitle(t){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var Dx=class{static{i(this,"Title")}};var sj="1.3.17";function mC(e,t,r){return Math.max(e,Math.min(t,r))}i(mC,"clamp");function aj(e,t,r){return(1-r)*e+r*t}i(aj,"lerp");function lj(e,t,r,n){return aj(e,t,1-Math.exp(-r*n))}i(lj,"damp");function uj(e,t){return(e%t+t)%t}i(uj,"modulo");var cj=class{static{i(this,"Animate")}isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let r=mC(0,this.currentTime/this.duration,1);t=r>=1;let n=t?1:this.easing(r);this.value=this.from+(this.to-this.from)*n}else this.lerp?(this.value=lj(this.value,this.to,this.lerp*60,e),Math.round(this.value)===this.to&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:r,duration:n,easing:o,onStart:s,onUpdate:a}){this.from=this.value=e,this.to=t,this.lerp=r,this.duration=n,this.easing=o,this.currentTime=0,this.isRunning=!0,s?.(),this.onUpdate=a}};function fj(e,t){let r;return function(...n){let o=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,e.apply(o,n)},t)}}i(fj,"debounce");var pj=class{static{i(this,"Dimensions")}constructor(e,t,{autoResize:r=!0,debounce:n=250}={}){this.wrapper=e,this.content=t,r&&(this.debouncedResize=fj(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=i(()=>{this.onWrapperResize(),this.onContentResize()},"resize");onWrapperResize=i(()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)},"onWrapperResize");onContentResize=i(()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)},"onContentResize");get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},dC=class{static{i(this,"Emitter")}events={};emit(e,...t){let r=this.events[e]||[];for(let n=0,o=r.length;n<o;n++)r[n]?.(...t)}on(e,t){return this.events[e]?.push(t)||(this.events[e]=[t]),()=>{this.events[e]=this.events[e]?.filter(r=>t!==r)}}off(e,t){this.events[e]=this.events[e]?.filter(r=>t!==r)}destroy(){this.events={}}},gC=100/6,Hn={passive:!1},hj=class{static{i(this,"VirtualScroll")}constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Hn),this.element.addEventListener("touchstart",this.onTouchStart,Hn),this.element.addEventListener("touchmove",this.onTouchMove,Hn),this.element.addEventListener("touchend",this.onTouchEnd,Hn)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new dC;on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,Hn),this.element.removeEventListener("touchstart",this.onTouchStart,Hn),this.element.removeEventListener("touchmove",this.onTouchMove,Hn),this.element.removeEventListener("touchend",this.onTouchEnd,Hn)}onTouchStart=i(e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})},"onTouchStart");onTouchMove=i(e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e,n=-(t-this.touchStart.x)*this.options.touchMultiplier,o=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:n,y:o},this.emitter.emit("scroll",{deltaX:n,deltaY:o,event:e})},"onTouchMove");onTouchEnd=i(e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})},"onTouchEnd");onWheel=i(e=>{let{deltaX:t,deltaY:r,deltaMode:n}=e,o=n===1?gC:n===2?this.window.width:1,s=n===1?gC:n===2?this.window.height:1;t*=o,r*=s,t*=this.options.wheelMultiplier,r*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:r,event:e})},"onWheel");onWindowResize=i(()=>{this.window={width:window.innerWidth,height:window.innerHeight}},"onWindowResize")},xC=i(e=>Math.min(1,1.001-Math.pow(2,-10*e)),"defaultEasing"),Xa=class{static{i(this,"Lenis")}_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new cj;emitter=new dC;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:r=e,smoothWheel:n=!0,syncTouch:o=!1,syncTouchLerp:s=.075,touchInertiaExponent:a=1.7,duration:l,easing:u,lerp:c=.1,infinite:f=!1,orientation:p="vertical",gestureOrientation:h=p==="horizontal"?"both":"vertical",touchMultiplier:m=1,wheelMultiplier:d=1,autoResize:g=!0,prevent:x,virtualScroll:b,overscroll:T=!0,autoRaf:D=!1,anchors:q=!1,autoToggle:H=!1,allowNestedScroll:I=!1,__experimental__naiveDimensions:$=!1,naiveDimensions:Z=$,stopInertiaOnNavigate:Y=!1}={}){window.lenisVersion=sj,(!e||e===document.documentElement)&&(e=window),typeof l=="number"&&typeof u!="function"?u=xC:typeof u=="function"&&typeof l!="number"&&(l=1),this.options={wrapper:e,content:t,eventsTarget:r,smoothWheel:n,syncTouch:o,syncTouchLerp:s,touchInertiaExponent:a,duration:l,easing:u,lerp:c,infinite:f,gestureOrientation:h,orientation:p,touchMultiplier:m,wheelMultiplier:d,autoResize:g,prevent:x,virtualScroll:b,overscroll:T,autoRaf:D,anchors:q,autoToggle:H,allowNestedScroll:I,naiveDimensions:Z,stopInertiaOnNavigate:Y},this.dimensions=new pj(e,t,{autoResize:g}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.addEventListener("scrollend",this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new hj(r,{touchMultiplier:m,wheelMultiplier:d}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener("transitionend",this.onTransitionEnd,{passive:!0})),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.options.wrapper.removeEventListener("scrollend",this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener("pointerdown",this.onPointerDown,!1),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=i(e=>{e instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&e.stopPropagation()},"onScrollEnd");dispatchScrollendEvent=i(()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))},"dispatchScrollendEvent");get overflow(){let e=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[e]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=i(e=>{e.propertyName.includes("overflow")&&this.checkOverflow()},"onTransitionEnd");setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}onClick=i(e=>{let r=e.composedPath().filter(n=>n instanceof HTMLAnchorElement&&n.getAttribute("href"));if(this.options.anchors){let n=r.find(o=>o.getAttribute("href")?.includes("#"));if(n){let o=n.getAttribute("href");if(o){let s=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,a=`#${o.split("#")[1]}`;this.scrollTo(a,s)}}}this.options.stopInertiaOnNavigate&&r.find(o=>o.host===window.location.host)&&this.reset()},"onClick");onPointerDown=i(e=>{e.button===1&&this.reset()},"onPointerDown");onVirtualScroll=i(e=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(e)===!1)return;let{deltaX:t,deltaY:r,event:n}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:r,event:n}),n.ctrlKey||n.lenisStopPropagation)return;let o=n.type.includes("touch"),s=n.type.includes("wheel");this.isTouching=n.type==="touchstart"||n.type==="touchmove";let a=t===0&&r===0;if(this.options.syncTouch&&o&&n.type==="touchstart"&&a&&!this.isStopped&&!this.isLocked){this.reset();return}let u=this.options.gestureOrientation==="vertical"&&r===0||this.options.gestureOrientation==="horizontal"&&t===0;if(a||u)return;let c=n.composedPath();c=c.slice(0,c.indexOf(this.rootElement));let f=this.options.prevent;if(c.find(x=>x instanceof HTMLElement&&(typeof f=="function"&&f?.(x)||x.hasAttribute?.("data-lenis-prevent")||o&&x.hasAttribute?.("data-lenis-prevent-touch")||s&&x.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(x,{deltaX:t,deltaY:r}))))return;if(this.isStopped||this.isLocked){n.cancelable&&n.preventDefault();return}if(!(this.options.syncTouch&&o||this.options.smoothWheel&&s)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let h=r;this.options.gestureOrientation==="both"?h=Math.abs(r)>Math.abs(t)?r:t:this.options.gestureOrientation==="horizontal"&&(h=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&r>0||this.animatedScroll===this.limit&&r<0))&&(n.lenisStopPropagation=!0),n.cancelable&&n.preventDefault();let m=o&&this.options.syncTouch,g=o&&n.type==="touchend";g&&(h=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+h,{programmatic:!1,...m?{lerp:g?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})},"onVirtualScroll");resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=i(()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}},"onNativeScroll");reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty("overflow");return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty("overflow","clip");return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=i(e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))},"raf");scrollTo(e,{offset:t=0,immediate:r=!1,lock:n=!1,programmatic:o=!0,lerp:s=o?this.options.lerp:void 0,duration:a=o?this.options.duration:void 0,easing:l=o?this.options.easing:void 0,onStart:u,onComplete:c,force:f=!1,userData:p}={}){if(!((this.isStopped||this.isLocked)&&!f)){if(typeof e=="string"&&["top","left","start","#"].includes(e))e=0;else if(typeof e=="string"&&["bottom","right","end"].includes(e))e=this.limit;else{let h;if(typeof e=="string"?(h=document.querySelector(e),h||(e==="#top"?e=0:console.warn("Lenis: Target not found",e))):e instanceof HTMLElement&&e?.nodeType&&(h=e),h){if(this.options.wrapper!==window){let d=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?d.left:d.top}let m=h.getBoundingClientRect();e=(this.isHorizontal?m.left:m.top)+this.animatedScroll}}if(typeof e=="number"){if(e+=t,e=Math.round(e),this.options.infinite){if(o){this.targetScroll=this.animatedScroll=this.scroll;let h=e-this.animatedScroll;h>this.limit/2?e=e-this.limit:h<-this.limit/2&&(e=e+this.limit)}}else e=mC(0,e,this.limit);if(e===this.targetScroll){u?.(this),c?.(this);return}if(this.userData=p??{},r){this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),c?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}o||(this.targetScroll=e),typeof a=="number"&&typeof l!="function"?l=xC:typeof l=="function"&&typeof a!="number"&&(a=1),this.animate.fromTo(this.animatedScroll,e,{duration:a,easing:l,lerp:s,onStart:i(()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",u?.(this)},"onStart"),onUpdate:i((h,m)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=h-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=h,this.setScroll(this.scroll),o&&(this.targetScroll=h),m||this.emit(),m&&(this.reset(),this.emit(),c?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())},"onUpdate")})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(e,{deltaX:t,deltaY:r}){let n=Date.now(),o=e._lenis??={},s,a,l,u,c,f,p,h,m=this.options.gestureOrientation;if(n-(o.time??0)>2e3){o.time=Date.now();let H=window.getComputedStyle(e);o.computedStyle=H;let I=H.overflowX,$=H.overflowY;if(s=["auto","overlay","scroll"].includes(I),a=["auto","overlay","scroll"].includes($),o.hasOverflowX=s,o.hasOverflowY=a,!s&&!a||m==="vertical"&&!a||m==="horizontal"&&!s)return!1;c=e.scrollWidth,f=e.scrollHeight,p=e.clientWidth,h=e.clientHeight,l=c>p,u=f>h,o.isScrollableX=l,o.isScrollableY=u,o.scrollWidth=c,o.scrollHeight=f,o.clientWidth=p,o.clientHeight=h}else l=o.isScrollableX,u=o.isScrollableY,s=o.hasOverflowX,a=o.hasOverflowY,c=o.scrollWidth,f=o.scrollHeight,p=o.clientWidth,h=o.clientHeight;if(!s&&!a||!l&&!u||m==="vertical"&&(!a||!u)||m==="horizontal"&&(!s||!l))return!1;let d;if(m==="horizontal")d="x";else if(m==="vertical")d="y";else{let H=t!==0,I=r!==0;H&&s&&l&&(d="x"),I&&a&&u&&(d="y")}if(!d)return!1;let g,x,b,T,D;if(d==="x")g=e.scrollLeft,x=c-p,b=t,T=s,D=l;else if(d==="y")g=e.scrollTop,x=f-h,b=r,T=a,D=u;else return!1;return(b>0?g<x:g>0)&&T&&D}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?uj(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isScrolling==="smooth"&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};var bs=It(yC(),1),mj={ObjectMap:qr,Stringmap:Js,FastMap:si};var Dp=class{static{i(this,"Scroller")}domtoolsInstance;disposed=!1;scrollCallbacks=[];lenisInstance=null;lenisScrollUnsubscribe=null;nativeScrollListenerAttached=!1;handleNativeScroll=i(t=>{this.executeScrollCallbacks()},"handleNativeScroll");handleLenisScroll=i(t=>{this.executeScrollCallbacks()},"handleLenisScroll");constructor(t){this.domtoolsInstance=t,this.attachNativeScrollListener()}sweetScroller=new bs.default({});async toElement(t,r){this.sweetScroller.toElement(t,r),r?.duration&&await he.delayFor(r.duration)}async detectNativeSmoothScroll(){let t=getComputedStyle(document.documentElement).scrollBehavior,r=document.body?getComputedStyle(document.body).scrollBehavior:"auto";if(t==="smooth"||r==="smooth")return!0;let n=J.defer(),o=12,s=3,a=.75,l=1200,u=[],c=i(m=>{window.removeEventListener("wheel",f),window.clearTimeout(h),n.resolve(m)},"finalize");function f(m){u.push(m.deltaY),u.length>=o&&p()}i(f,"onWheel");function p(){if(u.length<2){c(!1);return}let m=u.length-1,d=0;for(let x=0;x<m;x++)Math.abs(u[x+1]-u[x])<=s&&d++;let g=d/m;c(g>=a)}i(p,"analyzeEvents");let h=window.setTimeout(()=>{p()},l);return window.addEventListener("wheel",f,{passive:!0}),n.promise}async enableLenisScroll(t){if(this.disposed)return;this.lenisInstance&&this.disableLenisScroll();let r=new Xa({autoRaf:!0});if(t?.disableOnNativeSmoothScroll&&await this.detectNativeSmoothScroll()){r.destroy();return}this.lenisInstance=r,this.detachNativeScrollListener(),this.attachLenisScrollListener()}disableLenisScroll(){this.lenisInstance&&(this.detachLenisScrollListener(),this.lenisInstance.destroy(),this.lenisInstance=null,this.attachNativeScrollListener())}onScroll(t){return this.scrollCallbacks.push(t),()=>{this.scrollCallbacks=this.scrollCallbacks.filter(r=>r!==t)}}executeScrollCallbacks(){this.scrollCallbacks.forEach(t=>{try{t()}catch(r){console.error("Error in scroll callback:",r)}})}attachNativeScrollListener(){this.nativeScrollListenerAttached||this.disposed||(window.addEventListener("scroll",this.handleNativeScroll),this.nativeScrollListenerAttached=!0)}detachNativeScrollListener(){this.nativeScrollListenerAttached&&(window.removeEventListener("scroll",this.handleNativeScroll),this.nativeScrollListenerAttached=!1)}attachLenisScrollListener(){this.lenisInstance&&!this.lenisScrollUnsubscribe&&(this.lenisScrollUnsubscribe=this.lenisInstance.on("scroll",this.handleLenisScroll))}detachLenisScrollListener(){this.lenisScrollUnsubscribe&&(this.lenisScrollUnsubscribe(),this.lenisScrollUnsubscribe=null)}dispose(){this.disposed||(this.disposed=!0,this.detachLenisScrollListener(),this.lenisInstance?.destroy(),this.lenisInstance=null,this.detachNativeScrollListener(),this.scrollCallbacks=[],this.sweetScroller.destroy())}};var Cp=class{static{i(this,"ThemeManager")}domtoolsRef;goBrightBoolean=!1;preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)");themeObservable=new Oe.rxjs.ReplaySubject(1);automaticGlobalThemeChangeSubscription=null;preferredColorSchemeChangeHandler=i(t=>{this.goBrightBoolean=t.matches,this.updateAllConnectedElements()},"preferredColorSchemeChangeHandler");constructor(t){this.domtoolsRef=t,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",this.preferredColorSchemeChangeHandler),this.updateAllConnectedElements()}async enableAutomaticGlobalThemeChange(){await this.domtoolsRef.domReady.promise,this.automaticGlobalThemeChangeSubscription||(this.automaticGlobalThemeChangeSubscription=this.themeObservable.subscribe({next:i(t=>{document.body.style.background=t?"#fff":"#000"},"next")}))}updateAllConnectedElements(){this.domtoolsRef.disposed||this.themeObservable.next(this.goBrightBoolean)}goBright(){this.goBrightBoolean=!0,this.updateAllConnectedElements()}goDark(){this.goBrightBoolean=!1,this.updateAllConnectedElements()}toggleDarkBright(){this.goBrightBoolean=!this.goBrightBoolean,this.updateAllConnectedElements()}dispose(){this.preferredColorSchemeMediaMatch.removeEventListener("change",this.preferredColorSchemeChangeHandler),this.automaticGlobalThemeChangeSubscription?.unsubscribe(),this.automaticGlobalThemeChangeSubscription=null,this.themeObservable.complete()}};var vs=(v=>(v[v.Backspace=8]="Backspace",v[v.Tab=9]="Tab",v[v.Enter=13]="Enter",v[v.Shift=16]="Shift",v[v.Ctrl=17]="Ctrl",v[v.Alt=18]="Alt",v[v.PauseBreak=19]="PauseBreak",v[v.CapsLock=20]="CapsLock",v[v.Escape=27]="Escape",v[v.Space=32]="Space",v[v.PageUp=33]="PageUp",v[v.PageDown=34]="PageDown",v[v.End=35]="End",v[v.Home=36]="Home",v[v.LeftArrow=37]="LeftArrow",v[v.UpArrow=38]="UpArrow",v[v.RightArrow=39]="RightArrow",v[v.DownArrow=40]="DownArrow",v[v.Insert=45]="Insert",v[v.Delete=46]="Delete",v[v.Zero=48]="Zero",v[v.ClosedParen=48]="ClosedParen",v[v.One=49]="One",v[v.ExclamationMark=49]="ExclamationMark",v[v.Two=50]="Two",v[v.AtSign=50]="AtSign",v[v.Three=51]="Three",v[v.PoundSign=51]="PoundSign",v[v.Hash=51]="Hash",v[v.Four=52]="Four",v[v.DollarSign=52]="DollarSign",v[v.Five=53]="Five",v[v.PercentSign=53]="PercentSign",v[v.Six=54]="Six",v[v.Caret=54]="Caret",v[v.Hat=54]="Hat",v[v.Seven=55]="Seven",v[v.Ampersand=55]="Ampersand",v[v.Eight=56]="Eight",v[v.Star=56]="Star",v[v.Asterik=56]="Asterik",v[v.Nine=57]="Nine",v[v.OpenParen=57]="OpenParen",v[v.A=65]="A",v[v.B=66]="B",v[v.C=67]="C",v[v.D=68]="D",v[v.E=69]="E",v[v.F=70]="F",v[v.G=71]="G",v[v.H=72]="H",v[v.I=73]="I",v[v.J=74]="J",v[v.K=75]="K",v[v.L=76]="L",v[v.M=77]="M",v[v.N=78]="N",v[v.O=79]="O",v[v.P=80]="P",v[v.Q=81]="Q",v[v.R=82]="R",v[v.S=83]="S",v[v.T=84]="T",v[v.U=85]="U",v[v.V=86]="V",v[v.W=87]="W",v[v.X=88]="X",v[v.Y=89]="Y",v[v.Z=90]="Z",v[v.LeftWindowKey=91]="LeftWindowKey",v[v.RightWindowKey=92]="RightWindowKey",v[v.SelectKey=93]="SelectKey",v[v.Numpad0=96]="Numpad0",v[v.Numpad1=97]="Numpad1",v[v.Numpad2=98]="Numpad2",v[v.Numpad3=99]="Numpad3",v[v.Numpad4=100]="Numpad4",v[v.Numpad5=101]="Numpad5",v[v.Numpad6=102]="Numpad6",v[v.Numpad7=103]="Numpad7",v[v.Numpad8=104]="Numpad8",v[v.Numpad9=105]="Numpad9",v[v.Multiply=106]="Multiply",v[v.Add=107]="Add",v[v.Subtract=109]="Subtract",v[v.DecimalPoint=110]="DecimalPoint",v[v.Divide=111]="Divide",v[v.F1=112]="F1",v[v.F2=113]="F2",v[v.F3=114]="F3",v[v.F4=115]="F4",v[v.F5=116]="F5",v[v.F6=117]="F6",v[v.F7=118]="F7",v[v.F8=119]="F8",v[v.F9=120]="F9",v[v.F10=121]="F10",v[v.F11=122]="F11",v[v.F12=123]="F12",v[v.NumLock=144]="NumLock",v[v.ScrollLock=145]="ScrollLock",v[v.SemiColon=186]="SemiColon",v[v.Equals=187]="Equals",v[v.Comma=188]="Comma",v[v.Dash=189]="Dash",v[v.Period=190]="Period",v[v.UnderScore=189]="UnderScore",v[v.PlusSign=187]="PlusSign",v[v.ForwardSlash=191]="ForwardSlash",v[v.Tilde=192]="Tilde",v[v.GraveAccent=192]="GraveAccent",v[v.OpenBracket=219]="OpenBracket",v[v.ClosedBracket=221]="ClosedBracket",v[v.Quote=222]="Quote",v))(vs||{}),Ip=class{constructor(t){this.domNode=t;this.startListening()}static{i(this,"Keyboard")}mapCombosToHandlers=new Map;pressedKeys=new Set;listening=!1;keyEnum=vs;on(t){let r=new Oe.rxjs.Subject;return this.registerKeys(t,r),r}triggerKeyPress(t){let r=this.normalizeKeys(t);for(let n of r)this.pressedKeys.add(n);this.checkMatchingKeyboardSubjects(this.createKeyboardEvent(r));for(let n of r)this.pressedKeys.delete(n)}startListening(){this.listening||(this.domNode.addEventListener("keydown",this.handleKeyDown),this.domNode.addEventListener("keyup",this.handleKeyUp),this.listening=!0)}stopListening(){this.listening&&(this.domNode.removeEventListener("keydown",this.handleKeyDown),this.domNode.removeEventListener("keyup",this.handleKeyUp),this.listening=!1)}clear(){this.stopListening();for(let t of this.mapCombosToHandlers.values())for(let r of t.subjects)r.complete();this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}dispose(){this.clear()}handleKeyDown=i(t=>{let r=this.resolveKey(t);r!==null&&(this.pressedKeys.add(r),this.checkMatchingKeyboardSubjects(t))},"handleKeyDown");checkMatchingKeyboardSubjects(t){this.mapCombosToHandlers.forEach(r=>{if(this.areAllKeysPressed(r.keys))for(let n of r.subjects)n.next(t)})}handleKeyUp=i(t=>{let r=this.resolveKey(t);r!==null&&this.pressedKeys.delete(r)},"handleKeyUp");areAllKeysPressed(t){let r=!0;return t.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(t,r){let n=this.normalizeKeys(t),o=n.join("+"),s=this.mapCombosToHandlers.get(o);if(!s){this.mapCombosToHandlers.set(o,{keys:n,subjects:[r]});return}s.subjects.push(r)}normalizeKeys(t){return[...new Set(t)].sort((r,n)=>r-n)}resolveKey(t){return this.resolveKeyFromCode(t.code)??this.resolveKeyFromKey(t.key)??this.resolveKeyFromKeyCode(t.keyCode)}resolveKeyFromCode(t){if(!t)return null;if(t.startsWith("Key")&&t.length===4)return vs[t.slice(3)]??null;if(t.startsWith("Digit")&&t.length===6)return this.resolveKeyFromKey(t.slice(5));switch(t){case"Backspace":return 8;case"Tab":return 9;case"Enter":case"NumpadEnter":return 13;case"ShiftLeft":case"ShiftRight":return 16;case"ControlLeft":case"ControlRight":return 17;case"AltLeft":case"AltRight":return 18;case"Pause":return 19;case"CapsLock":return 20;case"Escape":return 27;case"Space":return 32;case"PageUp":return 33;case"PageDown":return 34;case"End":return 35;case"Home":return 36;case"ArrowLeft":return 37;case"ArrowUp":return 38;case"ArrowRight":return 39;case"ArrowDown":return 40;case"Insert":return 45;case"Delete":return 46;case"MetaLeft":return 91;case"MetaRight":return 92;case"ContextMenu":return 93;case"Numpad0":return 96;case"Numpad1":return 97;case"Numpad2":return 98;case"Numpad3":return 99;case"Numpad4":return 100;case"Numpad5":return 101;case"Numpad6":return 102;case"Numpad7":return 103;case"Numpad8":return 104;case"Numpad9":return 105;case"NumpadMultiply":return 106;case"NumpadAdd":return 107;case"NumpadSubtract":return 109;case"NumpadDecimal":return 110;case"NumpadDivide":return 111;case"F1":return 112;case"F2":return 113;case"F3":return 114;case"F4":return 115;case"F5":return 116;case"F6":return 117;case"F7":return 118;case"F8":return 119;case"F9":return 120;case"F10":return 121;case"F11":return 122;case"F12":return 123;case"NumLock":return 144;case"ScrollLock":return 145;case"Semicolon":return 186;case"Equal":return 187;case"Comma":return 188;case"Minus":return 189;case"Period":return 190;case"Slash":return 191;case"Backquote":return 192;case"BracketLeft":return 219;case"BracketRight":return 221;case"Quote":return 222;default:return null}}resolveKeyFromKey(t){if(!t)return null;if(t.length===1){let r=t.toUpperCase();if(r>="A"&&r<="Z")return vs[r]??null;switch(t){case"0":return 48;case"1":return 49;case"2":return 50;case"3":return 51;case"4":return 52;case"5":return 53;case"6":return 54;case"7":return 55;case"8":return 56;case"9":return 57;case" ":return 32;case";":return 186;case"=":return 187;case",":return 188;case"-":return 189;case".":return 190;case"/":return 191;case"`":return 192;case"[":return 219;case"]":return 221;case"'":return 222;default:return null}}switch(t){case"Backspace":return 8;case"Tab":return 9;case"Enter":return 13;case"Shift":return 16;case"Control":return 17;case"Alt":return 18;case"Pause":return 19;case"CapsLock":return 20;case"Escape":return 27;case"PageUp":return 33;case"PageDown":return 34;case"End":return 35;case"Home":return 36;case"ArrowLeft":return 37;case"ArrowUp":return 38;case"ArrowRight":return 39;case"ArrowDown":return 40;case"Insert":return 45;case"Delete":return 46;case"Meta":return 91;case"ContextMenu":return 93;case"NumLock":return 144;case"ScrollLock":return 145;default:return null}}resolveKeyFromKeyCode(t){return typeof t!="number"?null:typeof vs[t]<"u"?t:null}createKeyboardEvent(t){let r=t[t.length-1]??13,n=this.getKeyDescriptor(r);return new KeyboardEvent("keydown",{key:n.key,code:n.code,ctrlKey:t.includes(17),shiftKey:t.includes(16),altKey:t.includes(18),metaKey:t.includes(91)||t.includes(92)})}getKeyDescriptor(t){switch(t){case 17:return{key:"Control",code:"ControlLeft"};case 16:return{key:"Shift",code:"ShiftLeft"};case 18:return{key:"Alt",code:"AltLeft"};case 13:return{key:"Enter",code:"Enter"};case 32:return{key:" ",code:"Space"};default:{let r=vs[t];if(r&&r.length===1&&r>="A"&&r<="Z")return{key:r.toLowerCase(),code:`Key${r}`};if(t>=48&&t<=57){let n=String(t-48);return{key:n,code:`Digit${n}`}}return{key:r??"Unidentified",code:"Unidentified"}}}}};var Za=class e{static{i(this,"DomTools")}static initializationPromise=null;static async setupDomTools(t={}){if(t.ignoreGlobal){let r=new e(t);return await r.initializationPromise,r}if(globalThis.deesDomTools&&!globalThis.deesDomTools.disposed)return await globalThis.deesDomTools.initializationPromise,globalThis.deesDomTools;if(!e.initializationPromise){let r=new e(t);globalThis.deesDomTools=r,e.initializationPromise=r.initializationPromise.then(()=>r).catch(n=>{throw globalThis.deesDomTools===r&&(globalThis.deesDomTools=void 0),e.initializationPromise=null,n})}return await e.initializationPromise}static getGlobalDomToolsSync(){let t=globalThis.deesDomTools;if(!t||t.disposed)throw new Error("You tried to access domtools synchronously too early");return t}elements={headElement:null,bodyElement:null};websetup=new Ka({metaObject:{title:""}});smartstate=new $i.Smartstate;domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:""});router=new Bi.SmartRouter({debug:!1});convenience={typedrequest:Nt,smartdelay:he,smartjson:Tt,smarturl:Hi};deesComms=new ha.DeesComms;scroller=new Dp(this);themeManager=new Cp(this);keyboard=null;disposed=!1;domToolsReady=J.defer();domReady=J.defer();globalStylesReady=J.defer();initializationPromise;managedDomNodes=[];readyStateChangedFunc=i(()=>{this.tryMarkDomReady()},"readyStateChangedFunc");constructor(t){this.initializationPromise=this.initialize()}runOncePromiseMap=new Map;async initialize(){this.tryMarkDomReady(),this.domReady.status==="pending"&&document.addEventListener("readystatechange",this.readyStateChangedFunc),this.domToolsReady.status==="pending"&&this.domToolsReady.resolve()}tryMarkDomReady(){this.disposed||this.domReady.status!=="pending"||document.readyState!=="interactive"&&document.readyState!=="complete"||!document.head||!document.body||(this.elements.headElement=document.head,this.elements.bodyElement=document.body,this.keyboard||(this.keyboard=new Ip(document.body)),document.removeEventListener("readystatechange",this.readyStateChangedFunc),this.domReady.resolve())}trackManagedDomNode(t){return this.managedDomNodes.push(t),t}getHeadOrBodyElement(){let t=this.elements.headElement||document.head||this.elements.bodyElement||document.body;if(!t)throw new Error("DomTools could not find a DOM target element to attach resources to");return t}async runOnce(t,r){let n=this.runOncePromiseMap.get(t);return n||(n=Promise.resolve().then(async()=>await r()),this.runOncePromiseMap.set(t,n)),await n}async setGlobalStyles(t){await this.domReady.promise;let r=this.trackManagedDomNode(document.createElement("style"));r.type="text/css",r.appendChild(document.createTextNode(t)),this.getHeadOrBodyElement().appendChild(r)}async setExternalScript(t){await this.domReady.promise;let r=J.defer(),n=this.trackManagedDomNode(document.createElement("script"));n.src=t,n.addEventListener("load",()=>{r.resolve()}),n.addEventListener("error",()=>{r.reject(new Error(`Failed to load external script: ${t}`))}),this.getHeadOrBodyElement().append(n),await r.promise}async setExternalCss(t){await this.domReady.promise;let r=J.defer(),n=this.trackManagedDomNode(document.createElement("link"));n.rel="stylesheet",n.crossOrigin="anonymous",n.href=t,n.addEventListener("load",()=>{r.resolve()}),n.addEventListener("error",()=>{r.reject(new Error(`Failed to load external stylesheet: ${t}`))}),this.getHeadOrBodyElement().append(n),await r.promise}async setWebsiteInfo(t){await this.websetup.setup(t),await this.websetup.readyPromise}dispose(){if(!this.disposed){this.disposed=!0,document.removeEventListener("readystatechange",this.readyStateChangedFunc),this.keyboard?.dispose(),this.keyboard=null,this.scroller.dispose(),this.themeManager.dispose();for(let t of this.managedDomNodes)t.remove();this.managedDomNodes.length=0,globalThis.deesDomTools===this&&(globalThis.deesDomTools=void 0,e.initializationPromise=null)}}};var Op=globalThis,el=Op.ShadowRoot&&(Op.ShadyCSS===void 0||Op.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ax=Symbol(),wC=new WeakMap,ks=class{static{i(this,"n")}constructor(t,r,n){if(this._$cssResult$=!0,n!==Ax)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(el&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=wC.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&wC.set(r,t))}return t}toString(){return this.cssText}},pr=i(e=>new ks(typeof e=="string"?e:e+"",void 0,Ax),"r"),Hr=i((e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,o,s)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[s+1],e[0]);return new ks(r,e,Ax)},"i"),Ap=i((e,t)=>{if(el)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),o=Op.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},"S"),tl=el?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return pr(r)})(e):e;var{is:dj,defineProperty:gj,getOwnPropertyDescriptor:xj,getOwnPropertyNames:yj,getOwnPropertySymbols:wj,getPrototypeOf:bj}=Object,Mp=globalThis,bC=Mp.trustedTypes,vj=bC?bC.emptyScript:"",kj=Mp.reactiveElementPolyfillSupport,rl=i((e,t)=>e,"d"),_p={toAttribute(e,t){switch(t){case Boolean:e=e?vj:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Mx=i((e,t)=>!dj(e,t),"f"),vC={attribute:!0,type:String,converter:_p,reflect:!1,useDefault:!1,hasChanged:Mx};Symbol.metadata??=Symbol("metadata"),Mp.litPropertyMetadata??=new WeakMap;var Ur=class extends HTMLElement{static{i(this,"y")}static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=vC){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(t,n,r);o!==void 0&&gj(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){let{get:o,set:s}=xj(this.prototype,t)??{get(){return this[r]},set(a){this[r]=a}};return{get:o,set(a){let l=o?.call(this);s?.call(this,a),this.requestUpdate(t,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??vC}static _$Ei(){if(this.hasOwnProperty(rl("elementProperties")))return;let t=bj(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(rl("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(rl("properties"))){let r=this.properties,n=[...yj(r),...wj(r)];for(let o of n)this.createProperty(o,r[o])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(tl(o))}else t!==void 0&&r.push(tl(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.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(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ap(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){let n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){let s=(n.converter?.toAttribute!==void 0?n.converter:_p).toAttribute(r,n.type);this._$Em=t,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,r){let n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let s=n.getPropertyOptions(o),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:_p;this._$Em=o;let l=a.fromAttribute(r,s.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(t,r,n,o=!1,s){if(t!==void 0){let a=this.constructor;if(o===!1&&(s=this[t]),n??=a.getPropertyOptions(t),!((n.hasChanged??Mx)(s,r)||n.useDefault&&n.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:o,wrapped:s},a){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,a??r??this[t]),s!==!0||a!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,s]of this._$Ep)this[o]=s;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[o,s]of n){let{wrapped:a}=s,l=this[o];a!==!0||this._$AL.has(o)||l===void 0||this.C(o,void 0,s,l)}}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(t){}firstUpdated(t){}};Ur.elementStyles=[],Ur.shadowRootOptions={mode:"open"},Ur[rl("elementProperties")]=new Map,Ur[rl("finalized")]=new Map,kj?.({ReactiveElement:Ur}),(Mp.reactiveElementVersions??=[]).push("2.1.2");var _x=globalThis,kC=i(e=>e,"i"),Np=_x.trustedTypes,SC=Np?Np.createPolicy("lit-html",{createHTML:i(e=>e,"createHTML")}):void 0,Nx="$lit$",rn=`lit$${Math.random().toFixed(9).slice(2)}$`,Px="?"+rn,Sj=`<${Px}>`,qi=document,nl=i(()=>qi.createComment(""),"c"),il=i(e=>e===null||typeof e!="object"&&typeof e!="function","a"),Fx=Array.isArray,TC=i(e=>Fx(e)||typeof e?.[Symbol.iterator]=="function","d"),Lx=`[
177
+ \f\r]`,ol=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,EC=/-->/g,DC=/>/g,Yi=RegExp(`>|${Lx}(?:([^\\s"'>=/]+)(${Lx}*=${Lx}*(?:[^
178
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),CC=/'/g,IC=/"/g,OC=/^(?:script|style|textarea|title)$/i,Rx=i(e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),"x"),Bx=Rx(1),Tj=Rx(2),Ej=Rx(3),Un=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),AC=new WeakMap,Vi=qi.createTreeWalker(qi,129);function MC(e,t){if(!Fx(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return SC!==void 0?SC.createHTML(t):t}i(MC,"V");var _C=i((e,t)=>{let r=e.length-1,n=[],o,s=t===2?"<svg>":t===3?"<math>":"",a=ol;for(let l=0;l<r;l++){let u=e[l],c,f,p=-1,h=0;for(;h<u.length&&(a.lastIndex=h,f=a.exec(u),f!==null);)h=a.lastIndex,a===ol?f[1]==="!--"?a=EC:f[1]!==void 0?a=DC:f[2]!==void 0?(OC.test(f[2])&&(o=RegExp("</"+f[2],"g")),a=Yi):f[3]!==void 0&&(a=Yi):a===Yi?f[0]===">"?(a=o??ol,p=-1):f[1]===void 0?p=-2:(p=a.lastIndex-f[2].length,c=f[1],a=f[3]===void 0?Yi:f[3]==='"'?IC:CC):a===IC||a===CC?a=Yi:a===EC||a===DC?a=ol:(a=Yi,o=void 0);let m=a===Yi&&e[l+1].startsWith("/>")?" ":"";s+=a===ol?u+Sj:p>=0?(n.push(c),u.slice(0,p)+Nx+u.slice(p)+rn+m):u+rn+(p===-2?l:m)}return[MC(e,s+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},"N"),sl=class e{static{i(this,"S")}constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let s=0,a=0,l=t.length-1,u=this.parts,[c,f]=_C(t,r);if(this.el=e.createElement(c,n),Vi.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=Vi.nextNode())!==null&&u.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Nx)){let h=f[a++],m=o.getAttribute(p).split(rn),d=/([.?@])?(.*)/.exec(h);u.push({type:1,index:s,name:d[2],strings:m,ctor:d[1]==="."?Fp:d[1]==="?"?Lp:d[1]==="@"?Rp:Gi}),o.removeAttribute(p)}else p.startsWith(rn)&&(u.push({type:6,index:s}),o.removeAttribute(p));if(OC.test(o.tagName)){let p=o.textContent.split(rn),h=p.length-1;if(h>0){o.textContent=Np?Np.emptyScript:"";for(let m=0;m<h;m++)o.append(p[m],nl()),Vi.nextNode(),u.push({type:2,index:++s});o.append(p[h],nl())}}}else if(o.nodeType===8)if(o.data===Px)u.push({type:2,index:s});else{let p=-1;for(;(p=o.data.indexOf(rn,p+1))!==-1;)u.push({type:7,index:s}),p+=rn.length-1}s++}}static createElement(t,r){let n=qi.createElement("template");return n.innerHTML=t,n}};function Qi(e,t,r=e,n){if(t===Un)return t;let o=n!==void 0?r._$Co?.[n]:r._$Cl,s=il(t)?void 0:t._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(e),o._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(t=Qi(e,o._$AS(e,t.values),o,n)),t}i(Qi,"M");var Pp=class{static{i(this,"R")}constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,o=(t?.creationScope??qi).importNode(r,!0);Vi.currentNode=o;let s=Vi.nextNode(),a=0,l=0,u=n[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new Ss(s,s.nextSibling,this,t):u.type===1?c=new u.ctor(s,u.name,u.strings,this,t):u.type===6&&(c=new Bp(s,this,t)),this._$AV.push(c),u=n[++l]}a!==u?.index&&(s=Vi.nextNode(),a++)}return Vi.currentNode=qi,o}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},Ss=class e{static{i(this,"k")}get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Qi(this,t,r),il(t)?t===tt||t==null||t===""?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==Un&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):TC(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==tt&&il(this._$AH)?this._$AA.nextSibling.data=t:this.T(qi.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=sl.createElement(MC(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let s=new Pp(o,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(t){let r=AC.get(t.strings);return r===void 0&&AC.set(t.strings,r=new sl(t)),r}k(t){Fx(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,o=0;for(let s of t)o===r.length?r.push(n=new e(this.O(nl()),this.O(nl()),this,this.options)):n=r[o],n._$AI(s),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=kC(t).nextSibling;kC(t).remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Gi=class{static{i(this,"H")}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,s){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=r,this._$AM=o,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=tt}_$AI(t,r=this,n,o){let s=this.strings,a=!1;if(s===void 0)t=Qi(this,t,r,0),a=!il(t)||t!==this._$AH&&t!==Un,a&&(this._$AH=t);else{let l=t,u,c;for(t=s[0],u=0;u<s.length-1;u++)c=Qi(this,l[n+u],r,u),c===Un&&(c=this._$AH[u]),a||=!il(c)||c!==this._$AH[u],c===tt?t=tt:t!==tt&&(t+=(c??"")+s[u+1]),this._$AH[u]=c}a&&!o&&this.j(t)}j(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Fp=class extends Gi{static{i(this,"I")}constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===tt?void 0:t}},Lp=class extends Gi{static{i(this,"L")}constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}},Rp=class extends Gi{static{i(this,"z")}constructor(t,r,n,o,s){super(t,r,n,o,s),this.type=5}_$AI(t,r=this){if((t=Qi(this,t,r,0)??tt)===Un)return;let n=this._$AH,o=t===tt&&n!==tt||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,s=t!==tt&&(n===tt||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Bp=class{static{i(this,"Z")}constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Qi(this,t)}},Dj={M:Nx,P:rn,A:Px,C:1,L:_C,R:Pp,D:TC,V:Qi,I:Ss,H:Gi,N:Lp,U:Rp,B:Fp,F:Bp},Cj=_x.litHtmlPolyfillSupport;Cj?.(sl,Ss),(_x.litHtmlVersions??=[]).push("3.3.2");var zx=i((e,t,r)=>{let n=r?.renderBefore??t,o=n._$litPart$;if(o===void 0){let s=r?.renderBefore??null;n._$litPart$=o=new Ss(t.insertBefore(nl(),s),s,void 0,r??{})}return o._$AI(e),o},"D");var $x=globalThis,Ji=class extends Ur{static{i(this,"i")}constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=zx(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Un}};Ji._$litElement$=!0,Ji.finalized=!0,$x.litElementHydrateSupport?.({LitElement:Ji});var Ij=$x.litElementPolyfillSupport;Ij?.({LitElement:Ji});var Oj={_$AK:i((e,t,r)=>{e._$AK(t,r)},"_$AK"),_$AL:i(e=>e._$AL,"_$AL")};($x.litElementVersions??=[]).push("4.2.2");var Aj=!1;var zp=(()=>{let e=navigator.userAgent.indexOf("Mac OS X")===-1?Hr``.cssText:"";return Hr`
179
179
  /* width */
180
180
  ::-webkit-scrollbar {
181
181
  width: 0px;
@@ -183,7 +183,7 @@ ${o}
183
183
  body {
184
184
  scrollbar-width: none;
185
185
  }
186
- `.cssText})(),FC=Hr`
186
+ `.cssText})(),NC=Hr`
187
187
  /*
188
188
  @font-face {
189
189
  font-family: 'Material Icons';
@@ -202,7 +202,7 @@ ${o}
202
202
 
203
203
  /* scroll bar styles */
204
204
  ${pr(zp)}
205
- `.cssText;var _j=Hr`
205
+ `.cssText;var Mj=Hr`
206
206
  * {
207
207
  transition: background 0.1s, color 0.1s;
208
208
  box-sizing: border-box;
@@ -214,7 +214,7 @@ ${o}
214
214
  }
215
215
 
216
216
  ${pr(zp)}
217
- `,Pj=zx`
217
+ `,_j=Bx`
218
218
  <style>
219
219
  * {
220
220
  transition: background 0.1s, color 0.1s;
@@ -227,23 +227,23 @@ ${o}
227
227
 
228
228
  ${zp}
229
229
  </style>
230
- `,Nj=i(async(e,t={})=>{let r=await Za.setupDomTools(t);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(FC)}),r},"setup");var Ux={};se(Ux,{containerContextStyles:()=>Rj,cssForConstraint:()=>Fj,cssForConstraintContainer:()=>Lj,cssForContainer:()=>WC,cssForDesktop:()=>Bj,cssForNotebook:()=>zj,cssForPhablet:()=>Hj,cssForPhone:()=>Wj,cssForTablet:()=>$j,cssForViewport:()=>Xi,desktop:()=>RC,notebook:()=>BC,phablet:()=>$C,phone:()=>HC,tablet:()=>zC});var RC=1600,BC=1240,zC=1024,$C=600,HC=400,LC=i(e=>{let t=[];return e.minWidth&&t.push(`(min-width: ${e.minWidth}px)`),e.maxWidth&&t.push(`(max-width: ${e.maxWidth}px)`),t.join(" and ")},"buildCondition"),Xi=i((e,t)=>pr(`
230
+ `,Nj=i(async(e,t={})=>{let r=await Za.setupDomTools(t);return await r.runOnce("elementBasicSetup",async()=>{await r.setGlobalStyles(NC)}),r.globalStylesReady.status==="pending"&&r.globalStylesReady.resolve(),await r.globalStylesReady.promise,r},"setup");var Ux={};se(Ux,{containerContextStyles:()=>Lj,cssForConstraint:()=>Pj,cssForConstraintContainer:()=>Fj,cssForContainer:()=>$C,cssForDesktop:()=>Rj,cssForNotebook:()=>Bj,cssForPhablet:()=>$j,cssForPhone:()=>Hj,cssForTablet:()=>zj,cssForViewport:()=>Ki,desktop:()=>FC,notebook:()=>LC,phablet:()=>BC,phone:()=>zC,tablet:()=>RC});var FC=1600,LC=1240,RC=1024,BC=600,zC=400,PC=i(e=>{let t=[];return e.minWidth&&t.push(`(min-width: ${e.minWidth}px)`),e.maxWidth&&t.push(`(max-width: ${e.maxWidth}px)`),t.join(" and ")},"buildCondition"),Ki=i((e,t)=>pr(`
231
231
  @container wccToolsViewport ${t} {
232
232
  ${e.cssText}
233
233
  }
234
234
  @media ${t} {
235
235
  ${e.cssText}
236
236
  }
237
- `),"cssForViewport"),WC=i((e,t,r)=>pr(`
237
+ `),"cssForViewport"),$C=i((e,t,r)=>pr(`
238
238
  @container ${r} ${t} {
239
239
  ${e.cssText}
240
240
  }
241
- `),"cssForContainer"),Fj=i(e=>t=>Xi(t,LC(e)),"cssForConstraint"),Lj=i((e,t)=>r=>WC(r,LC(e),t),"cssForConstraintContainer"),Rj=i(e=>Hr`
241
+ `),"cssForContainer"),Pj=i(e=>t=>Ki(t,PC(e)),"cssForConstraint"),Fj=i((e,t)=>r=>$C(r,PC(e),t),"cssForConstraintContainer"),Lj=i(e=>Hr`
242
242
  :host {
243
243
  container-type: inline-size;
244
244
  container-name: ${pr(e)};
245
245
  }
246
- `,"containerContextStyles"),Bj=i(e=>Xi(e,`(min-width: ${RC}px)`),"cssForDesktop"),zj=i(e=>Xi(e,`(max-width: ${BC}px)`),"cssForNotebook"),$j=i(e=>Xi(e,`(max-width: ${zC}px)`),"cssForTablet"),Hj=i(e=>Xi(e,`(max-width: ${$C}px)`),"cssForPhablet"),Wj=i(e=>Xi(e,`(max-width: ${HC}px)`),"cssForPhone");var jx={};se(jx,{cssGridColumns:()=>Uj});var Uj=i((e,t)=>{let r="";for(let n=0;n<e;n++)r+=` calc((100%/${e}) - (${t*(e-1)}px/${e}))`;return r},"cssGridColumns");var Yx={};se(Yx,{SweetScroll:()=>qx.default,smartdelay:()=>he,smartmarkdown:()=>ys,smartpromise:()=>J,smartrouter:()=>$n,smartrx:()=>Ce,smartstate:()=>Hn,smartstring:()=>xt,smarturl:()=>Wn,typedrequest:()=>Dt});var qx=St(Ax(),1);export{Za as DomTools,tf as TypedRequest,Ux as breakpoints,jx as css,Wx as elementBasic,Yx as plugins};
246
+ `,"containerContextStyles"),Rj=i(e=>Ki(e,`(min-width: ${FC}px)`),"cssForDesktop"),Bj=i(e=>Ki(e,`(max-width: ${LC}px)`),"cssForNotebook"),zj=i(e=>Ki(e,`(max-width: ${RC}px)`),"cssForTablet"),$j=i(e=>Ki(e,`(max-width: ${BC}px)`),"cssForPhablet"),Hj=i(e=>Ki(e,`(max-width: ${zC}px)`),"cssForPhone");var Wx={};se(Wx,{cssGridColumns:()=>Uj});var Uj=i((e,t)=>{let r="";for(let n=0;n<e;n++)r+=` calc((100%/${e}) - (${t*(e-1)}px/${e}))`;return r},"cssGridColumns");var jx={};se(jx,{SweetScroll:()=>bs.default,smartdelay:()=>he,smartmarkdown:()=>qa,smartpromise:()=>J,smartrouter:()=>Bi,smartrx:()=>Oe,smartstate:()=>$i,smartstring:()=>St,smarturl:()=>Hi,typedrequest:()=>Nt});export{Za as DomTools,rf as TypedRequest,Ux as breakpoints,Wx as css,Hx as elementBasic,jx as plugins};
247
247
  /*! Bundled license information:
248
248
 
249
249
  sweet-scroll/sweet-scroll.js:
@@ -286,4 +286,4 @@ lit-html/is-server.js:
286
286
  * SPDX-License-Identifier: BSD-3-Clause
287
287
  *)
288
288
  */
289
- //# sourceMappingURL=bundle-1774641641245.js.map
289
+ //# sourceMappingURL=bundle-1777006488019.js.map