@design.estate/dees-domtools 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,93 +1,93 @@
1
- var vO=Object.create;var dl=Object.defineProperty;var SO=Object.getOwnPropertyDescriptor;var kO=Object.getOwnPropertyNames;var TO=Object.getPrototypeOf,EO=Object.prototype.hasOwnProperty;var i=(t,e)=>dl(t,"name",{value:e,configurable:!0}),gl=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var se=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},ae=(t,e)=>{for(var r in e)dl(t,r,{get:e[r],enumerable:!0})},DO=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of kO(e))!EO.call(t,o)&&o!==r&&dl(t,o,{get:()=>e[o],enumerable:!(n=SO(e,o))||n.enumerable});return t};var jt=(t,e,r)=>(r=t!=null?vO(TO(t)):{},DO(e||!t||!t.__esModule?dl(r,"default",{value:t,enumerable:!0}):r,t));var oh=se(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0}),vl.uni=void 0;var RO=i((t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}`,"uni");vl.uni=RO});var Y0=se((Hh,Wh)=>{(function(t,e){typeof Hh=="object"&&typeof Wh<"u"?Wh.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Hh,(function(){"use strict";var t=1e3,e=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($){var _=["th","st","nd","rd"],N=$%100;return"["+$+(_[(N-20)%10]||_[N]||_[0])+"]"},"ordinal")},w=i(function($,_,N){var F=String($);return!F||F.length>=_?$:""+Array(_+1-F.length).join(N)+$},"m"),T={s:w,z:i(function($){var _=-$.utcOffset(),N=Math.abs(_),F=Math.floor(N/60),B=N%60;return(_<=0?"+":"-")+w(F,2,"0")+":"+w(B,2,"0")},"z"),m:i(function $(_,N){if(_.date()<N.date())return-$(N,_);var F=12*(N.year()-_.year())+(N.month()-_.month()),B=_.clone().add(F,c),V=N-B<0,Q=_.clone().add(F+(V?-1:1),c);return+(-(F+(N-B)/(V?B-Q:Q-B))||0)},"t"),a:i(function($){return $<0?Math.ceil($)||0:Math.floor($)},"a"),p:i(function($){return{M:c,y:p,w:u,d:l,D:h,h:a,m:s,s:o,ms:n,Q:f}[$]||String($||"").toLowerCase().replace(/s$/,"")},"p"),u:i(function($){return $===void 0},"u")},E="en",q={};q[E]=x;var H="$isDayjsObject",O=i(function($){return $ instanceof I||!(!$||!$[H])},"S"),j=i(function $(_,N,F){var B;if(!_)return E;if(typeof _=="string"){var V=_.toLowerCase();q[V]&&(B=V),N&&(q[V]=N,B=V);var Q=_.split("-");if(!B&&Q.length>1)return $(Q[0])}else{var ue=_.name;q[ue]=_,B=ue}return!F&&B&&(E=B),B||!F&&E},"t"),X=i(function($,_){if(O($))return $.clone();var N=typeof _=="object"?_:{};return N.date=$,N.args=arguments,new I(N)},"O"),Y=T;Y.l=j,Y.i=O,Y.w=function($,_){return X($,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var I=(function(){function $(N){this.$L=j(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[H]=!0}i($,"M");var _=$.prototype;return _.parse=function(N){this.$d=(function(F){var B=F.date,V=F.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 Q=B.match(d);if(Q){var ue=Q[2]-1||0,b=(Q[7]||"0").substring(0,3);return V?new Date(Date.UTC(Q[1],ue,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,b)):new Date(Q[1],ue,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,b)}}return new Date(B)})(N),this.init()},_.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()},_.$utils=function(){return Y},_.isValid=function(){return this.$d.toString()!==m},_.isSame=function(N,F){var B=X(N);return this.startOf(F)<=B&&B<=this.endOf(F)},_.isAfter=function(N,F){return X(N)<this.startOf(F)},_.isBefore=function(N,F){return this.endOf(F)<X(N)},_.$g=function(N,F,B){return Y.u(N)?this[F]:this.set(B,N)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(N,F){var B=this,V=!!Y.u(F)||F,Q=Y.p(N),ue=i(function(D,S){var C=Y.w(B.$u?Date.UTC(B.$y,S,D):new Date(B.$y,S,D),B);return V?C:C.endOf(l)},"l"),b=i(function(D,S){return Y.w(B.toDate()[D].apply(B.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(S)),B)},"$"),de=this.$W,be=this.$M,k=this.$D,Ae="set"+(this.$u?"UTC":"");switch(Q){case p:return V?ue(1,0):ue(31,11);case c:return V?ue(1,be):ue(0,be+1);case u:var $e=this.$locale().weekStart||0,Lt=(de<$e?de+7:de)-$e;return ue(V?k-Lt:k+(6-Lt),be);case l:case h:return b(Ae+"Hours",0);case a:return b(Ae+"Minutes",1);case s:return b(Ae+"Seconds",2);case o:return b(Ae+"Milliseconds",3);default:return this.clone()}},_.endOf=function(N){return this.startOf(N,!1)},_.$set=function(N,F){var B,V=Y.p(N),Q="set"+(this.$u?"UTC":""),ue=(B={},B[l]=Q+"Date",B[h]=Q+"Date",B[c]=Q+"Month",B[p]=Q+"FullYear",B[a]=Q+"Hours",B[s]=Q+"Minutes",B[o]=Q+"Seconds",B[n]=Q+"Milliseconds",B)[V],b=V===l?this.$D+(F-this.$W):F;if(V===c||V===p){var de=this.clone().set(h,1);de.$d[ue](b),de.init(),this.$d=de.set(h,Math.min(this.$D,de.daysInMonth())).$d}else ue&&this.$d[ue](b);return this.init(),this},_.set=function(N,F){return this.clone().$set(N,F)},_.get=function(N){return this[Y.p(N)]()},_.add=function(N,F){var B,V=this;N=Number(N);var Q=Y.p(F),ue=i(function(be){var k=X(V);return Y.w(k.date(k.date()+Math.round(be*N)),V)},"y");if(Q===c)return this.set(c,this.$M+N);if(Q===p)return this.set(p,this.$y+N);if(Q===l)return ue(1);if(Q===u)return ue(7);var b=(B={},B[s]=e,B[a]=r,B[o]=t,B)[Q]||1,de=this.$d.getTime()+N*b;return Y.w(de,this)},_.subtract=function(N,F){return this.add(-1*N,F)},_.format=function(N){var F=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var V=N||"YYYY-MM-DDTHH:mm:ssZ",Q=Y.z(this),ue=this.$H,b=this.$m,de=this.$M,be=B.weekdays,k=B.months,Ae=B.meridiem,$e=i(function(S,C,M,R){return S&&(S[C]||S(F,V))||M[C].slice(0,R)},"h"),Lt=i(function(S){return Y.s(ue%12||12,S,"0")},"d"),D=Ae||function(S,C,M){var R=S<12?"AM":"PM";return M?R.toLowerCase():R};return V.replace(g,(function(S,C){return C||(function(M){switch(M){case"YY":return String(F.$y).slice(-2);case"YYYY":return Y.s(F.$y,4,"0");case"M":return de+1;case"MM":return Y.s(de+1,2,"0");case"MMM":return $e(B.monthsShort,de,k,3);case"MMMM":return $e(k,de);case"D":return F.$D;case"DD":return Y.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return $e(B.weekdaysMin,F.$W,be,2);case"ddd":return $e(B.weekdaysShort,F.$W,be,3);case"dddd":return be[F.$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 D(ue,b,!0);case"A":return D(ue,b,!1);case"m":return String(b);case"mm":return Y.s(b,2,"0");case"s":return String(F.$s);case"ss":return Y.s(F.$s,2,"0");case"SSS":return Y.s(F.$ms,3,"0");case"Z":return Q}return null})(S)||Q.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(N,F,B){var V,Q=this,ue=Y.p(F),b=X(N),de=(b.utcOffset()-this.utcOffset())*e,be=this-b,k=i(function(){return Y.m(Q,b)},"D");switch(ue){case p:V=k()/12;break;case c:V=k();break;case f:V=k()/3;break;case u:V=(be-de)/6048e5;break;case l:V=(be-de)/864e5;break;case a:V=be/r;break;case s:V=be/e;break;case o:V=be/t;break;default:V=be}return B?V:Y.a(V)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return q[this.$L]},_.locale=function(N,F){if(!N)return this.$L;var B=this.clone(),V=j(N,F,!0);return V&&(B.$L=V),B},_.clone=function(){return Y.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},$})(),De=I.prototype;return X.prototype=De,[["$ms",n],["$s",o],["$m",s],["$H",a],["$W",l],["$M",c],["$y",p],["$D",h]].forEach((function($){De[$[1]]=function(_){return this.$g(_,$[0],$[1])}})),X.extend=function($,_){return $.$i||($(_,I,X),$.$i=!0),X},X.locale=j,X.isDayjs=O,X.unix=function($){return X(1e3*$)},X.en=q[E],X.Ls=q,X.p={},X}))});var V0=se(($h,Uh)=>{(function(t,e){typeof $h=="object"&&typeof Uh<"u"?Uh.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})($h,(function(){"use strict";return function(t,e,r){e.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}}))});var K0=se((sOe,Q0)=>{"use strict";Q0.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(e){return this.cachedIndexVersion!==e.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(e,r){this.cachedIndexVersion=e.childrenVersion,this.cachedIndex=r}}});var Z0=se((lOe,X0)=>{"use strict";X0.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var iv=se((uOe,nv)=>{"use strict";var ev=Symbol(),tv=Symbol(),bn=Symbol(),rv=Symbol(),sr=class{static{i(this,"TreeIterator")}constructor(e,r,n,o){this[ev]=e,this[tv]=r,this[bn]=n,this[rv]=o}next(){let e=this[ev],r=this[rv],n=this[tv];if(!this[bn])return{done:!0,value:n};let o=this[bn];return r===1?this[bn]=e._node(o).previousSibling:r===2?this[bn]=e._node(o).nextSibling:r===3?this[bn]=e._node(o).parent:r===4?this[bn]=e.preceding(o,{root:n}):this[bn]=e.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(sr.prototype,Symbol.iterator,{value:i(function(){return this},"value"),writable:!1}),sr.PREV=1,sr.NEXT=2,sr.PARENT=3,sr.PRECEDING=4,sr.FOLLOWING=5,Object.freeze(sr),Object.freeze(sr.prototype),nv.exports=sr});var sv=se((fOe,ov)=>{"use strict";var ZP=K0(),vn=Z0(),Kt=iv();function Xh(){return!0}i(Xh,"returnTrue");function Ro(t,e){return t[t.length-1-e]}i(Ro,"reverseArrayIndex");var Rc=class{static{i(this,"SymbolTree")}constructor(e){this.symbol=Symbol(e||"SymbolTree data")}initialize(e){return this._node(e),e}_node(e){if(!e)return null;let r=e[this.symbol];return r||(e[this.symbol]=new ZP)}hasChildren(e){return this._node(e).hasChildren}firstChild(e){return this._node(e).firstChild}lastChild(e){return this._node(e).lastChild}previousSibling(e){return this._node(e).previousSibling}nextSibling(e){return this._node(e).nextSibling}parent(e){return this._node(e).parent}lastInclusiveDescendant(e){let r,n=e;for(;r=this._node(n).lastChild;)n=r;return n}preceding(e,r){let n=r&&r.root;if(e===n)return null;let o=this._node(e).previousSibling;return o?this.lastInclusiveDescendant(o):this._node(e).parent}following(e,r){let n=r&&r.root,s=!(r&&r.skipChildren)&&this._node(e).firstChild;if(s)return s;let a=e;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(e,r){let n=r&&r.array||[],o=r&&r.filter||Xh,s=r&&r.thisArg||void 0,a=this._node(e),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(e,r){let n=r&&r.array||[],o=r&&r.filter||Xh,s=r&&r.thisArg||void 0,a=e;for(;a;)o.call(s,a)&&n.push(a),a=this._node(a).parent;return n}treeToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||Xh,s=r&&r.thisArg||void 0,a=e;for(;a;)o.call(s,a)&&n.push(a),a=this.following(a,{root:e});return n}childrenIterator(e,r){let n=r&&r.reverse,o=this._node(e);return new Kt(this,e,n?o.lastChild:o.firstChild,n?Kt.PREV:Kt.NEXT)}previousSiblingsIterator(e){return new Kt(this,e,this._node(e).previousSibling,Kt.PREV)}nextSiblingsIterator(e){return new Kt(this,e,this._node(e).nextSibling,Kt.NEXT)}ancestorsIterator(e){return new Kt(this,e,e,Kt.PARENT)}treeIterator(e,r){let n=r&&r.reverse;return new Kt(this,e,n?this.lastInclusiveDescendant(e):e,n?Kt.PRECEDING:Kt.FOLLOWING)}index(e){let r=this._node(e),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===e)break;++o,s=a.nextSibling}return n.childIndexCachedUpTo=e,o}childrenCount(e){let r=this._node(e);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(e,r){if(e===r)return 0;let n=[];{let f=e;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===e)return vn.CONTAINED_BY|vn.FOLLOWING;o.push(f),f=this.parent(f)}}let s=Ro(n,0);if(!s||s!==Ro(o,0))return vn.DISCONNECTED;let a=0,l=Math.min(n.length,o.length);for(let f=0;f<l;++f){let p=Ro(n,f),h=Ro(o,f);if(p!==h)break;a=f}let u=this.index(Ro(n,a+1));return this.index(Ro(o,a+1))<u?vn.PRECEDING:vn.FOLLOWING}remove(e){let r=this._node(e),n=this._node(r.parent),o=this._node(r.previousSibling),s=this._node(r.nextSibling);return n&&(n.firstChild===e&&(n.firstChild=r.nextSibling),n.lastChild===e&&(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(),e}insertBefore(e,r){let n=this._node(e),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=e,n.previousSibling=r,o&&(o.nextSibling=r),a&&a.firstChild===e&&(a.firstChild=r),a&&a.childrenChanged(),r}insertAfter(e,r){let n=this._node(e),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=e,s.nextSibling=n.nextSibling,n.nextSibling=r,o&&(o.previousSibling=r),a&&a.lastChild===e&&(a.lastChild=r),a&&a.childrenChanged(),r}prependChild(e,r){let n=this._node(e),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=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(e,r){let n=this._node(e),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=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};ov.exports=Rc,Rc.TreePosition=vn});var fm=se((QMe,bv)=>{"use strict";bv.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,n=e.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)}}})(e.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")(t)}});var gi=se((LPe,di)=>{"use strict";function bS(t){return typeof t>"u"||t===null}i(bS,"isNothing");function uR(t){return typeof t=="object"&&t!==null}i(uR,"isObject");function cR(t){return Array.isArray(t)?t:bS(t)?[]:[t]}i(cR,"toArray");function fR(t,e){var r,n,o,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)o=s[r],t[o]=e[o];return t}i(fR,"extend");function pR(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}i(pR,"repeat");function hR(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}i(hR,"isNegativeZero"),di.exports.isNothing=bS,di.exports.isObject=uR,di.exports.toArray=cR,di.exports.repeat=pR,di.exports.isNegativeZero=hR,di.exports.extend=fR});var Qo=se((zPe,vS)=>{"use strict";function wa(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}i(wa,"YAMLException"),wa.prototype=Object.create(Error.prototype),wa.prototype.constructor=wa,wa.prototype.toString=i(function(e){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!e&&this.mark&&(r+=" "+this.mark.toString()),r},"toString"),vS.exports=wa});var TS=se((HPe,kS)=>{"use strict";var SS=gi();function zm(t,e,r,n,o){this.name=t,this.buffer=e,this.position=r,this.line=n,this.column=o}i(zm,"Mark"),zm.prototype.getSnippet=i(function(e,r){var n,o,s,a,l;if(!this.buffer)return null;for(e=e||4,r=r||75,n="",o=this.position;o>0&&`\0\r
1
+ var SO=Object.create;var dl=Object.defineProperty;var kO=Object.getOwnPropertyDescriptor;var TO=Object.getOwnPropertyNames;var EO=Object.getPrototypeOf,DO=Object.prototype.hasOwnProperty;var i=(t,e)=>dl(t,"name",{value:e,configurable:!0}),gl=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var se=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},ae=(t,e)=>{for(var r in e)dl(t,r,{get:e[r],enumerable:!0})},CO=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of TO(e))!DO.call(t,o)&&o!==r&&dl(t,o,{get:()=>e[o],enumerable:!(n=kO(e,o))||n.enumerable});return t};var jt=(t,e,r)=>(r=t!=null?SO(EO(t)):{},CO(e||!t||!t.__esModule?dl(r,"default",{value:t,enumerable:!0}):r,t));var oh=se(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0}),vl.uni=void 0;var FO=i((t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}`,"uni");vl.uni=FO});var Y0=se((Hh,Wh)=>{(function(t,e){typeof Hh=="object"&&typeof Wh<"u"?Wh.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Hh,(function(){"use strict";var t=1e3,e=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($){var _=["th","st","nd","rd"],N=$%100;return"["+$+(_[(N-20)%10]||_[N]||_[0])+"]"},"ordinal")},w=i(function($,_,N){var F=String($);return!F||F.length>=_?$:""+Array(_+1-F.length).join(N)+$},"m"),T={s:w,z:i(function($){var _=-$.utcOffset(),N=Math.abs(_),F=Math.floor(N/60),B=N%60;return(_<=0?"+":"-")+w(F,2,"0")+":"+w(B,2,"0")},"z"),m:i(function $(_,N){if(_.date()<N.date())return-$(N,_);var F=12*(N.year()-_.year())+(N.month()-_.month()),B=_.clone().add(F,c),V=N-B<0,Q=_.clone().add(F+(V?-1:1),c);return+(-(F+(N-B)/(V?B-Q:Q-B))||0)},"t"),a:i(function($){return $<0?Math.ceil($)||0:Math.floor($)},"a"),p:i(function($){return{M:c,y:p,w:u,d:l,D:h,h:a,m:s,s:o,ms:n,Q:f}[$]||String($||"").toLowerCase().replace(/s$/,"")},"p"),u:i(function($){return $===void 0},"u")},E="en",q={};q[E]=x;var H="$isDayjsObject",O=i(function($){return $ instanceof I||!(!$||!$[H])},"S"),j=i(function $(_,N,F){var B;if(!_)return E;if(typeof _=="string"){var V=_.toLowerCase();q[V]&&(B=V),N&&(q[V]=N,B=V);var Q=_.split("-");if(!B&&Q.length>1)return $(Q[0])}else{var ue=_.name;q[ue]=_,B=ue}return!F&&B&&(E=B),B||!F&&E},"t"),X=i(function($,_){if(O($))return $.clone();var N=typeof _=="object"?_:{};return N.date=$,N.args=arguments,new I(N)},"O"),Y=T;Y.l=j,Y.i=O,Y.w=function($,_){return X($,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var I=(function(){function $(N){this.$L=j(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[H]=!0}i($,"M");var _=$.prototype;return _.parse=function(N){this.$d=(function(F){var B=F.date,V=F.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 Q=B.match(d);if(Q){var ue=Q[2]-1||0,b=(Q[7]||"0").substring(0,3);return V?new Date(Date.UTC(Q[1],ue,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,b)):new Date(Q[1],ue,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,b)}}return new Date(B)})(N),this.init()},_.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()},_.$utils=function(){return Y},_.isValid=function(){return this.$d.toString()!==m},_.isSame=function(N,F){var B=X(N);return this.startOf(F)<=B&&B<=this.endOf(F)},_.isAfter=function(N,F){return X(N)<this.startOf(F)},_.isBefore=function(N,F){return this.endOf(F)<X(N)},_.$g=function(N,F,B){return Y.u(N)?this[F]:this.set(B,N)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(N,F){var B=this,V=!!Y.u(F)||F,Q=Y.p(N),ue=i(function(D,S){var C=Y.w(B.$u?Date.UTC(B.$y,S,D):new Date(B.$y,S,D),B);return V?C:C.endOf(l)},"l"),b=i(function(D,S){return Y.w(B.toDate()[D].apply(B.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(S)),B)},"$"),de=this.$W,be=this.$M,k=this.$D,Ae="set"+(this.$u?"UTC":"");switch(Q){case p:return V?ue(1,0):ue(31,11);case c:return V?ue(1,be):ue(0,be+1);case u:var $e=this.$locale().weekStart||0,Lt=(de<$e?de+7:de)-$e;return ue(V?k-Lt:k+(6-Lt),be);case l:case h:return b(Ae+"Hours",0);case a:return b(Ae+"Minutes",1);case s:return b(Ae+"Seconds",2);case o:return b(Ae+"Milliseconds",3);default:return this.clone()}},_.endOf=function(N){return this.startOf(N,!1)},_.$set=function(N,F){var B,V=Y.p(N),Q="set"+(this.$u?"UTC":""),ue=(B={},B[l]=Q+"Date",B[h]=Q+"Date",B[c]=Q+"Month",B[p]=Q+"FullYear",B[a]=Q+"Hours",B[s]=Q+"Minutes",B[o]=Q+"Seconds",B[n]=Q+"Milliseconds",B)[V],b=V===l?this.$D+(F-this.$W):F;if(V===c||V===p){var de=this.clone().set(h,1);de.$d[ue](b),de.init(),this.$d=de.set(h,Math.min(this.$D,de.daysInMonth())).$d}else ue&&this.$d[ue](b);return this.init(),this},_.set=function(N,F){return this.clone().$set(N,F)},_.get=function(N){return this[Y.p(N)]()},_.add=function(N,F){var B,V=this;N=Number(N);var Q=Y.p(F),ue=i(function(be){var k=X(V);return Y.w(k.date(k.date()+Math.round(be*N)),V)},"y");if(Q===c)return this.set(c,this.$M+N);if(Q===p)return this.set(p,this.$y+N);if(Q===l)return ue(1);if(Q===u)return ue(7);var b=(B={},B[s]=e,B[a]=r,B[o]=t,B)[Q]||1,de=this.$d.getTime()+N*b;return Y.w(de,this)},_.subtract=function(N,F){return this.add(-1*N,F)},_.format=function(N){var F=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var V=N||"YYYY-MM-DDTHH:mm:ssZ",Q=Y.z(this),ue=this.$H,b=this.$m,de=this.$M,be=B.weekdays,k=B.months,Ae=B.meridiem,$e=i(function(S,C,M,R){return S&&(S[C]||S(F,V))||M[C].slice(0,R)},"h"),Lt=i(function(S){return Y.s(ue%12||12,S,"0")},"d"),D=Ae||function(S,C,M){var R=S<12?"AM":"PM";return M?R.toLowerCase():R};return V.replace(g,(function(S,C){return C||(function(M){switch(M){case"YY":return String(F.$y).slice(-2);case"YYYY":return Y.s(F.$y,4,"0");case"M":return de+1;case"MM":return Y.s(de+1,2,"0");case"MMM":return $e(B.monthsShort,de,k,3);case"MMMM":return $e(k,de);case"D":return F.$D;case"DD":return Y.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return $e(B.weekdaysMin,F.$W,be,2);case"ddd":return $e(B.weekdaysShort,F.$W,be,3);case"dddd":return be[F.$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 D(ue,b,!0);case"A":return D(ue,b,!1);case"m":return String(b);case"mm":return Y.s(b,2,"0");case"s":return String(F.$s);case"ss":return Y.s(F.$s,2,"0");case"SSS":return Y.s(F.$ms,3,"0");case"Z":return Q}return null})(S)||Q.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(N,F,B){var V,Q=this,ue=Y.p(F),b=X(N),de=(b.utcOffset()-this.utcOffset())*e,be=this-b,k=i(function(){return Y.m(Q,b)},"D");switch(ue){case p:V=k()/12;break;case c:V=k();break;case f:V=k()/3;break;case u:V=(be-de)/6048e5;break;case l:V=(be-de)/864e5;break;case a:V=be/r;break;case s:V=be/e;break;case o:V=be/t;break;default:V=be}return B?V:Y.a(V)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return q[this.$L]},_.locale=function(N,F){if(!N)return this.$L;var B=this.clone(),V=j(N,F,!0);return V&&(B.$L=V),B},_.clone=function(){return Y.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},$})(),De=I.prototype;return X.prototype=De,[["$ms",n],["$s",o],["$m",s],["$H",a],["$W",l],["$M",c],["$y",p],["$D",h]].forEach((function($){De[$[1]]=function(_){return this.$g(_,$[0],$[1])}})),X.extend=function($,_){return $.$i||($(_,I,X),$.$i=!0),X},X.locale=j,X.isDayjs=O,X.unix=function($){return X(1e3*$)},X.en=q[E],X.Ls=q,X.p={},X}))});var V0=se(($h,Uh)=>{(function(t,e){typeof $h=="object"&&typeof Uh<"u"?Uh.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})($h,(function(){"use strict";return function(t,e,r){e.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}}))});var K0=se((uOe,Q0)=>{"use strict";Q0.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(e){return this.cachedIndexVersion!==e.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(e,r){this.cachedIndexVersion=e.childrenVersion,this.cachedIndex=r}}});var Z0=se((fOe,X0)=>{"use strict";X0.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var iv=se((pOe,nv)=>{"use strict";var ev=Symbol(),tv=Symbol(),bn=Symbol(),rv=Symbol(),ar=class{static{i(this,"TreeIterator")}constructor(e,r,n,o){this[ev]=e,this[tv]=r,this[bn]=n,this[rv]=o}next(){let e=this[ev],r=this[rv],n=this[tv];if(!this[bn])return{done:!0,value:n};let o=this[bn];return r===1?this[bn]=e._node(o).previousSibling:r===2?this[bn]=e._node(o).nextSibling:r===3?this[bn]=e._node(o).parent:r===4?this[bn]=e.preceding(o,{root:n}):this[bn]=e.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(ar.prototype,Symbol.iterator,{value:i(function(){return this},"value"),writable:!1}),ar.PREV=1,ar.NEXT=2,ar.PARENT=3,ar.PRECEDING=4,ar.FOLLOWING=5,Object.freeze(ar),Object.freeze(ar.prototype),nv.exports=ar});var sv=se((mOe,ov)=>{"use strict";var eN=K0(),vn=Z0(),Xt=iv();function Xh(){return!0}i(Xh,"returnTrue");function Ro(t,e){return t[t.length-1-e]}i(Ro,"reverseArrayIndex");var Rc=class{static{i(this,"SymbolTree")}constructor(e){this.symbol=Symbol(e||"SymbolTree data")}initialize(e){return this._node(e),e}_node(e){if(!e)return null;let r=e[this.symbol];return r||(e[this.symbol]=new eN)}hasChildren(e){return this._node(e).hasChildren}firstChild(e){return this._node(e).firstChild}lastChild(e){return this._node(e).lastChild}previousSibling(e){return this._node(e).previousSibling}nextSibling(e){return this._node(e).nextSibling}parent(e){return this._node(e).parent}lastInclusiveDescendant(e){let r,n=e;for(;r=this._node(n).lastChild;)n=r;return n}preceding(e,r){let n=r&&r.root;if(e===n)return null;let o=this._node(e).previousSibling;return o?this.lastInclusiveDescendant(o):this._node(e).parent}following(e,r){let n=r&&r.root,s=!(r&&r.skipChildren)&&this._node(e).firstChild;if(s)return s;let a=e;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(e,r){let n=r&&r.array||[],o=r&&r.filter||Xh,s=r&&r.thisArg||void 0,a=this._node(e),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(e,r){let n=r&&r.array||[],o=r&&r.filter||Xh,s=r&&r.thisArg||void 0,a=e;for(;a;)o.call(s,a)&&n.push(a),a=this._node(a).parent;return n}treeToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||Xh,s=r&&r.thisArg||void 0,a=e;for(;a;)o.call(s,a)&&n.push(a),a=this.following(a,{root:e});return n}childrenIterator(e,r){let n=r&&r.reverse,o=this._node(e);return new Xt(this,e,n?o.lastChild:o.firstChild,n?Xt.PREV:Xt.NEXT)}previousSiblingsIterator(e){return new Xt(this,e,this._node(e).previousSibling,Xt.PREV)}nextSiblingsIterator(e){return new Xt(this,e,this._node(e).nextSibling,Xt.NEXT)}ancestorsIterator(e){return new Xt(this,e,e,Xt.PARENT)}treeIterator(e,r){let n=r&&r.reverse;return new Xt(this,e,n?this.lastInclusiveDescendant(e):e,n?Xt.PRECEDING:Xt.FOLLOWING)}index(e){let r=this._node(e),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===e)break;++o,s=a.nextSibling}return n.childIndexCachedUpTo=e,o}childrenCount(e){let r=this._node(e);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(e,r){if(e===r)return 0;let n=[];{let f=e;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===e)return vn.CONTAINED_BY|vn.FOLLOWING;o.push(f),f=this.parent(f)}}let s=Ro(n,0);if(!s||s!==Ro(o,0))return vn.DISCONNECTED;let a=0,l=Math.min(n.length,o.length);for(let f=0;f<l;++f){let p=Ro(n,f),h=Ro(o,f);if(p!==h)break;a=f}let u=this.index(Ro(n,a+1));return this.index(Ro(o,a+1))<u?vn.PRECEDING:vn.FOLLOWING}remove(e){let r=this._node(e),n=this._node(r.parent),o=this._node(r.previousSibling),s=this._node(r.nextSibling);return n&&(n.firstChild===e&&(n.firstChild=r.nextSibling),n.lastChild===e&&(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(),e}insertBefore(e,r){let n=this._node(e),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=e,n.previousSibling=r,o&&(o.nextSibling=r),a&&a.firstChild===e&&(a.firstChild=r),a&&a.childrenChanged(),r}insertAfter(e,r){let n=this._node(e),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=e,s.nextSibling=n.nextSibling,n.nextSibling=r,o&&(o.previousSibling=r),a&&a.lastChild===e&&(a.lastChild=r),a&&a.childrenChanged(),r}prependChild(e,r){let n=this._node(e),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=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(e,r){let n=this._node(e),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=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};ov.exports=Rc,Rc.TreePosition=vn});var fm=se((ZMe,bv)=>{"use strict";bv.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,n=e.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)}}})(e.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")(t)}});var gi=se((jPe,di)=>{"use strict";function bS(t){return typeof t>"u"||t===null}i(bS,"isNothing");function cR(t){return typeof t=="object"&&t!==null}i(cR,"isObject");function fR(t){return Array.isArray(t)?t:bS(t)?[]:[t]}i(fR,"toArray");function pR(t,e){var r,n,o,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)o=s[r],t[o]=e[o];return t}i(pR,"extend");function hR(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}i(hR,"repeat");function mR(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}i(mR,"isNegativeZero"),di.exports.isNothing=bS,di.exports.isObject=cR,di.exports.toArray=fR,di.exports.repeat=hR,di.exports.isNegativeZero=mR,di.exports.extend=pR});var Qo=se((WPe,vS)=>{"use strict";function wa(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}i(wa,"YAMLException"),wa.prototype=Object.create(Error.prototype),wa.prototype.constructor=wa,wa.prototype.toString=i(function(e){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!e&&this.mark&&(r+=" "+this.mark.toString()),r},"toString"),vS.exports=wa});var TS=se((UPe,kS)=>{"use strict";var SS=gi();function zm(t,e,r,n,o){this.name=t,this.buffer=e,this.position=r,this.line=n,this.column=o}i(zm,"Mark"),zm.prototype.getSnippet=i(function(e,r){var n,o,s,a,l;if(!this.buffer)return null;for(e=e||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
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),SS.repeat(" ",e)+n+l+s+`
4
4
  `+SS.repeat(" ",e+this.position-o+n.length)+"^"},"getSnippet"),zm.prototype.toString=i(function(e){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(r=this.getSnippet(),r&&(n+=`:
5
- `+r)),n},"toString"),kS.exports=zm});var Xe=se(($Pe,DS)=>{"use strict";var ES=Qo(),mR=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],dR=["scalar","sequence","mapping"];function gR(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}i(gR,"compileStyleAliases");function xR(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(mR.indexOf(r)===-1)throw new ES('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=gR(e.styleAliases||null),dR.indexOf(this.kind)===-1)throw new ES('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}i(xR,"Type"),DS.exports=xR});var xi=se((qPe,OS)=>{"use strict";var CS=gi(),xf=Qo(),yR=Xe();function jm(t,e,r){var n=[];return t.include.forEach(function(o){r=jm(o,e,r)}),t[e].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(jm,"compileList");function wR(){var t={scalar:{},sequence:{},mapping:{},fallback:{}},e,r;function n(o){t[o.kind][o.tag]=t.fallback[o.tag]=o}for(i(n,"collectType"),e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}i(wR,"compileMap");function Ko(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&e.loadKind!=="scalar")throw new xf("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=jm(this,"implicit",[]),this.compiledExplicit=jm(this,"explicit",[]),this.compiledTypeMap=wR(this.compiledImplicit,this.compiledExplicit)}i(Ko,"Schema"),Ko.DEFAULT=null,Ko.create=i(function(){var e,r;switch(arguments.length){case 1:e=Ko.DEFAULT,r=arguments[0];break;case 2:e=arguments[0],r=arguments[1];break;default:throw new xf("Wrong number of arguments for Schema.create function")}if(e=CS.toArray(e),r=CS.toArray(r),!e.every(function(n){return n instanceof Ko}))throw new xf("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof yR}))throw new xf("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Ko({include:e,explicit:r})},"createSchema"),OS.exports=Ko});var IS=se((VPe,MS)=>{"use strict";var bR=Xe();MS.exports=new bR("tag:yaml.org,2002:str",{kind:"scalar",construct:i(function(t){return t!==null?t:""},"construct")})});var PS=se((JPe,_S)=>{"use strict";var vR=Xe();_S.exports=new vR("tag:yaml.org,2002:seq",{kind:"sequence",construct:i(function(t){return t!==null?t:[]},"construct")})});var AS=se((KPe,NS)=>{"use strict";var SR=Xe();NS.exports=new SR("tag:yaml.org,2002:map",{kind:"mapping",construct:i(function(t){return t!==null?t:{}},"construct")})});var yf=se((ZPe,RS)=>{"use strict";var kR=xi();RS.exports=new kR({explicit:[IS(),PS(),AS()]})});var LS=se((eNe,FS)=>{"use strict";var TR=Xe();function ER(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}i(ER,"resolveYamlNull");function DR(){return null}i(DR,"constructYamlNull");function CR(t){return t===null}i(CR,"isNull"),FS.exports=new TR("tag:yaml.org,2002:null",{kind:"scalar",resolve:ER,construct:DR,predicate:CR,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 zS=se((rNe,BS)=>{"use strict";var OR=Xe();function MR(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}i(MR,"resolveYamlBoolean");function IR(t){return t==="true"||t==="True"||t==="TRUE"}i(IR,"constructYamlBoolean");function _R(t){return Object.prototype.toString.call(t)==="[object Boolean]"}i(_R,"isBoolean"),BS.exports=new OR("tag:yaml.org,2002:bool",{kind:"scalar",resolve:MR,construct:IR,predicate:_R,represent:{lowercase:i(function(t){return t?"true":"false"},"lowercase"),uppercase:i(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:i(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var HS=se((iNe,jS)=>{"use strict";var PR=gi(),NR=Xe();function AR(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}i(AR,"isHexCode");function RR(t){return 48<=t&&t<=55}i(RR,"isOctCode");function FR(t){return 48<=t&&t<=57}i(FR,"isDecCode");function LR(t){if(t===null)return!1;var e=t.length,r=0,n=!1,o;if(!e)return!1;if(o=t[r],(o==="-"||o==="+")&&(o=t[++r]),o==="0"){if(r+1===e)return!0;if(o=t[++r],o==="b"){for(r++;r<e;r++)if(o=t[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;n=!0}return n&&o!=="_"}if(o==="x"){for(r++;r<e;r++)if(o=t[r],o!=="_"){if(!AR(t.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}for(;r<e;r++)if(o=t[r],o!=="_"){if(!RR(t.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}if(o==="_")return!1;for(;r<e;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!FR(t.charCodeAt(r)))return!1;n=!0}return!n||o==="_"?!1:o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r))}i(LR,"resolveYamlInteger");function BR(t){var e=t,r=1,n,o,s=[];return e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0"?0:n==="0"?e[1]==="b"?r*parseInt(e.slice(2),2):e[1]==="x"?r*parseInt(e,16):r*parseInt(e,8):e.indexOf(":")!==-1?(e.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),e=0,o=1,s.forEach(function(a){e+=a*o,o*=60}),r*e):r*parseInt(e,10)}i(BR,"constructYamlInteger");function zR(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!PR.isNegativeZero(t)}i(zR,"isInteger"),jS.exports=new NR("tag:yaml.org,2002:int",{kind:"scalar",resolve:LR,construct:BR,predicate:zR,represent:{binary:i(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:i(function(t){return t>=0?"0"+t.toString(8):"-0"+t.toString(8).slice(1)},"octal"),decimal:i(function(t){return t.toString(10)},"decimal"),hexadecimal:i(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var US=se((sNe,$S)=>{"use strict";var WS=gi(),jR=Xe(),HR=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 WR(t){return!(t===null||!HR.test(t)||t[t.length-1]==="_")}i(WR,"resolveYamlFloat");function $R(t){var e,r,n,o;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,o=[],"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:e.indexOf(":")>=0?(e.split(":").forEach(function(s){o.unshift(parseFloat(s,10))}),e=0,n=1,o.forEach(function(s){e+=s*n,n*=60}),r*e):r*parseFloat(e,10)}i($R,"constructYamlFloat");var UR=/^[-+]?[0-9]+e/;function qR(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(WS.isNegativeZero(t))return"-0.0";return r=t.toString(10),UR.test(r)?r.replace("e",".e"):r}i(qR,"representYamlFloat");function YR(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||WS.isNegativeZero(t))}i(YR,"isFloat"),$S.exports=new jR("tag:yaml.org,2002:float",{kind:"scalar",resolve:WR,construct:$R,predicate:YR,represent:qR,defaultStyle:"lowercase"})});var Hm=se((lNe,qS)=>{"use strict";var VR=xi();qS.exports=new VR({include:[yf()],implicit:[LS(),zS(),HS(),US()]})});var Wm=se((uNe,YS)=>{"use strict";var GR=xi();YS.exports=new GR({include:[Hm()]})});var QS=se((cNe,JS)=>{"use strict";var JR=Xe(),VS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),GS=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 QR(t){return t===null?!1:VS.exec(t)!==null||GS.exec(t)!==null}i(QR,"resolveYamlTimestamp");function KR(t){var e,r,n,o,s,a,l,u=0,c=null,f,p,h;if(e=VS.exec(t),e===null&&(e=GS.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,o=+e[3],!e[4])return new Date(Date.UTC(r,n,o));if(s=+e[4],a=+e[5],l=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(f=+e[10],p=+(e[11]||0),c=(f*60+p)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,o,s,a,l,u)),c&&h.setTime(h.getTime()-c),h}i(KR,"constructYamlTimestamp");function XR(t){return t.toISOString()}i(XR,"representYamlTimestamp"),JS.exports=new JR("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:QR,construct:KR,instanceOf:Date,represent:XR})});var XS=se((pNe,KS)=>{"use strict";var ZR=Xe();function eF(t){return t==="<<"||t===null}i(eF,"resolveYamlMerge"),KS.exports=new ZR("tag:yaml.org,2002:merge",{kind:"scalar",resolve:eF})});var tk=se((mNe,ek)=>{"use strict";var yi;try{ZS=gl,yi=ZS("buffer").Buffer}catch{}var tF=Xe(),$m=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
- \r`;function rF(t){if(t===null)return!1;var e,r,n=0,o=t.length,s=$m;for(r=0;r<o;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}i(rF,"resolveYamlBinary");function nF(t){var e,r,n=t.replace(/[\r\n=]/g,""),o=n.length,s=$m,a=0,l=[];for(e=0;e<o;e++)e%4===0&&e&&(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)),a=a<<6|s.indexOf(n.charAt(e));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),yi?yi.from?yi.from(l):new yi(l):l}i(nF,"constructYamlBinary");function iF(t){var e="",r=0,n,o,s=t.length,a=$m;for(n=0;n<s;n++)n%3===0&&n&&(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[n];return o=s%3,o===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):o===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):o===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}i(iF,"representYamlBinary");function oF(t){return yi&&yi.isBuffer(t)}i(oF,"isBinary"),ek.exports=new tF("tag:yaml.org,2002:binary",{kind:"scalar",resolve:rF,construct:nF,predicate:oF,represent:iF});var ZS});var nk=se((gNe,rk)=>{"use strict";var sF=Xe(),aF=Object.prototype.hasOwnProperty,lF=Object.prototype.toString;function uF(t){if(t===null)return!0;var e=[],r,n,o,s,a,l=t;for(r=0,n=l.length;r<n;r+=1){if(o=l[r],a=!1,lF.call(o)!=="[object Object]")return!1;for(s in o)if(aF.call(o,s))if(!a)a=!0;else return!1;if(!a)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}i(uF,"resolveYamlOmap");function cF(t){return t!==null?t:[]}i(cF,"constructYamlOmap"),rk.exports=new sF("tag:yaml.org,2002:omap",{kind:"sequence",resolve:uF,construct:cF})});var ok=se((yNe,ik)=>{"use strict";var fF=Xe(),pF=Object.prototype.toString;function hF(t){if(t===null)return!0;var e,r,n,o,s,a=t;for(s=new Array(a.length),e=0,r=a.length;e<r;e+=1){if(n=a[e],pF.call(n)!=="[object Object]"||(o=Object.keys(n),o.length!==1))return!1;s[e]=[o[0],n[o[0]]]}return!0}i(hF,"resolveYamlPairs");function mF(t){if(t===null)return[];var e,r,n,o,s,a=t;for(s=new Array(a.length),e=0,r=a.length;e<r;e+=1)n=a[e],o=Object.keys(n),s[e]=[o[0],n[o[0]]];return s}i(mF,"constructYamlPairs"),ik.exports=new fF("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:hF,construct:mF})});var ak=se((bNe,sk)=>{"use strict";var dF=Xe(),gF=Object.prototype.hasOwnProperty;function xF(t){if(t===null)return!0;var e,r=t;for(e in r)if(gF.call(r,e)&&r[e]!==null)return!1;return!0}i(xF,"resolveYamlSet");function yF(t){return t!==null?t:{}}i(yF,"constructYamlSet"),sk.exports=new dF("tag:yaml.org,2002:set",{kind:"mapping",resolve:xF,construct:yF})});var Xo=se((SNe,lk)=>{"use strict";var wF=xi();lk.exports=new wF({include:[Wm()],implicit:[QS(),XS()],explicit:[tk(),nk(),ok(),ak()]})});var ck=se((kNe,uk)=>{"use strict";var bF=Xe();function vF(){return!0}i(vF,"resolveJavascriptUndefined");function SF(){}i(SF,"constructJavascriptUndefined");function kF(){return""}i(kF,"representJavascriptUndefined");function TF(t){return typeof t>"u"}i(TF,"isUndefined"),uk.exports=new bF("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:vF,construct:SF,predicate:TF,represent:kF})});var pk=se((ENe,fk)=>{"use strict";var EF=Xe();function DF(t){if(t===null||t.length===0)return!1;var e=t,r=/\/([gim]*)$/.exec(t),n="";return!(e[0]==="/"&&(r&&(n=r[1]),n.length>3||e[e.length-n.length-1]!=="/"))}i(DF,"resolveJavascriptRegExp");function CF(t){var e=t,r=/\/([gim]*)$/.exec(t),n="";return e[0]==="/"&&(r&&(n=r[1]),e=e.slice(1,e.length-n.length-1)),new RegExp(e,n)}i(CF,"constructJavascriptRegExp");function OF(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}i(OF,"representJavascriptRegExp");function MF(t){return Object.prototype.toString.call(t)==="[object RegExp]"}i(MF,"isRegExp"),fk.exports=new EF("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:DF,construct:CF,predicate:MF,represent:OF})});var dk=se((CNe,mk)=>{"use strict";var wf;try{hk=gl,wf=hk("esprima")}catch{typeof window<"u"&&(wf=window.esprima)}var IF=Xe();function _F(t){if(t===null)return!1;try{var e="("+t+")",r=wf.parse(e,{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(_F,"resolveJavascriptFunction");function PF(t){var e="("+t+")",r=wf.parse(e,{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,e.slice(o[0]+1,o[1]-1)):new Function(n,"return "+e.slice(o[0],o[1]))}i(PF,"constructJavascriptFunction");function NF(t){return t.toString()}i(NF,"representJavascriptFunction");function AF(t){return Object.prototype.toString.call(t)==="[object Function]"}i(AF,"isFunction"),mk.exports=new IF("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:_F,construct:PF,predicate:AF,represent:NF});var hk});var ba=se((MNe,xk)=>{"use strict";var gk=xi();xk.exports=gk.DEFAULT=new gk({include:[Xo()],explicit:[ck(),pk(),dk()]})});var Lk=se((INe,va)=>{"use strict";var Gr=gi(),yk=Qo(),RF=TS(),wk=Xo(),FF=ba(),Cn=Object.prototype.hasOwnProperty,bf=1,bk=2,vk=3,vf=4,Um=1,LF=2,Sk=3,BF=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,zF=/[\x85\u2028\u2029]/,jF=/[,\[\]\{\}]/,kk=/^(?:!|!!|![a-z\-]+!)$/i,Tk=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ek(t){return Object.prototype.toString.call(t)}i(Ek,"_class");function Nr(t){return t===10||t===13}i(Nr,"is_EOL");function wi(t){return t===9||t===32}i(wi,"is_WHITE_SPACE");function Rt(t){return t===9||t===32||t===10||t===13}i(Rt,"is_WS_OR_EOL");function Zo(t){return t===44||t===91||t===93||t===123||t===125}i(Zo,"is_FLOW_INDICATOR");function HF(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}i(HF,"fromHexCode");function WF(t){return t===120?2:t===117?4:t===85?8:0}i(WF,"escapedHexLen");function $F(t){return 48<=t&&t<=57?t-48:-1}i($F,"fromDecimalCode");function Dk(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
7
- `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}i(Dk,"simpleEscapeSequence");function UF(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}i(UF,"charFromCodepoint");function Ck(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}i(Ck,"setProperty");var Ok=new Array(256),Mk=new Array(256);for(bi=0;bi<256;bi++)Ok[bi]=Dk(bi)?1:0,Mk[bi]=Dk(bi);function qF(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||FF,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}i(qF,"State");function Ik(t,e){return new yk(e,new RF(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}i(Ik,"generateError");function oe(t,e){throw Ik(t,e)}i(oe,"throwError");function Sf(t,e){t.onWarning&&t.onWarning.call(null,Ik(t,e))}i(Sf,"throwWarning");var _k={YAML:i(function(e,r,n){var o,s,a;e.version!==null&&oe(e,"duplication of %YAML directive"),n.length!==1&&oe(e,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&oe(e,"ill-formed argument of the YAML directive"),s=parseInt(o[1],10),a=parseInt(o[2],10),s!==1&&oe(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&Sf(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:i(function(e,r,n){var o,s;n.length!==2&&oe(e,"TAG directive accepts exactly two arguments"),o=n[0],s=n[1],kk.test(o)||oe(e,"ill-formed tag handle (first argument) of the TAG directive"),Cn.call(e.tagMap,o)&&oe(e,'there is a previously declared suffix for "'+o+'" tag handle'),Tk.test(s)||oe(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[o]=s},"handleTagDirective")};function On(t,e,r,n){var o,s,a,l;if(e<r){if(l=t.input.slice(e,r),n)for(o=0,s=l.length;o<s;o+=1)a=l.charCodeAt(o),a===9||32<=a&&a<=1114111||oe(t,"expected valid JSON character");else BF.test(l)&&oe(t,"the stream contains non-printable characters");t.result+=l}}i(On,"captureSegment");function Pk(t,e,r,n){var o,s,a,l;for(Gr.isObject(r)||oe(t,"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(e,s)||(Ck(e,s,r[s]),n[s]=!0)}i(Pk,"mergeMappings");function es(t,e,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(t,"nested arrays are not supported inside keys"),typeof o=="object"&&Ek(o[u])==="[object Object]"&&(o[u]="[object Object]");if(typeof o=="object"&&Ek(o)==="[object Object]"&&(o="[object Object]"),o=String(o),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,c=s.length;u<c;u+=1)Pk(t,e,s[u],r);else Pk(t,e,s,r);else!t.json&&!Cn.call(r,o)&&Cn.call(e,o)&&(t.line=a||t.line,t.position=l||t.position,oe(t,"duplicated mapping key")),Ck(e,o,s),delete r[o];return e}i(es,"storeMappingPair");function qm(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):oe(t,"a line break is expected"),t.line+=1,t.lineStart=t.position}i(qm,"readLineBreak");function Ve(t,e,r){for(var n=0,o=t.input.charCodeAt(t.position);o!==0;){for(;wi(o);)o=t.input.charCodeAt(++t.position);if(e&&o===35)do o=t.input.charCodeAt(++t.position);while(o!==10&&o!==13&&o!==0);if(Nr(o))for(qm(t),o=t.input.charCodeAt(t.position),n++,t.lineIndent=0;o===32;)t.lineIndent++,o=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&Sf(t,"deficient indentation"),n}i(Ve,"skipSeparationSpace");function kf(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Rt(r)))}i(kf,"testDocumentSeparator");function Ym(t,e){e===1?t.result+=" ":e>1&&(t.result+=Gr.repeat(`
8
- `,e-1))}i(Ym,"writeFoldedLines");function YF(t,e,r){var n,o,s,a,l,u,c,f,p=t.kind,h=t.result,m;if(m=t.input.charCodeAt(t.position),Rt(m)||Zo(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=t.input.charCodeAt(t.position+1),Rt(o)||r&&Zo(o)))return!1;for(t.kind="scalar",t.result="",s=a=t.position,l=!1;m!==0;){if(m===58){if(o=t.input.charCodeAt(t.position+1),Rt(o)||r&&Zo(o))break}else if(m===35){if(n=t.input.charCodeAt(t.position-1),Rt(n))break}else{if(t.position===t.lineStart&&kf(t)||r&&Zo(m))break;if(Nr(m))if(u=t.line,c=t.lineStart,f=t.lineIndent,Ve(t,!1,-1),t.lineIndent>=e){l=!0,m=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=u,t.lineStart=c,t.lineIndent=f;break}}l&&(On(t,s,a,!1),Ym(t,t.line-u),s=a=t.position,l=!1),wi(m)||(a=t.position+1),m=t.input.charCodeAt(++t.position)}return On(t,s,a,!1),t.result?!0:(t.kind=p,t.result=h,!1)}i(YF,"readPlainScalar");function VF(t,e){var r,n,o;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=o=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(On(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,o=t.position;else return!0;else Nr(r)?(On(t,n,o,!0),Ym(t,Ve(t,!1,e)),n=o=t.position):t.position===t.lineStart&&kf(t)?oe(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);oe(t,"unexpected end of the stream within a single quoted scalar")}i(VF,"readSingleQuotedScalar");function GF(t,e){var r,n,o,s,a,l;if(l=t.input.charCodeAt(t.position),l!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(l=t.input.charCodeAt(t.position))!==0;){if(l===34)return On(t,r,t.position,!0),t.position++,!0;if(l===92){if(On(t,r,t.position,!0),l=t.input.charCodeAt(++t.position),Nr(l))Ve(t,!1,e);else if(l<256&&Ok[l])t.result+=Mk[l],t.position++;else if((a=WF(l))>0){for(o=a,s=0;o>0;o--)l=t.input.charCodeAt(++t.position),(a=HF(l))>=0?s=(s<<4)+a:oe(t,"expected hexadecimal character");t.result+=UF(s),t.position++}else oe(t,"unknown escape sequence");r=n=t.position}else Nr(l)?(On(t,r,n,!0),Ym(t,Ve(t,!1,e)),r=n=t.position):t.position===t.lineStart&&kf(t)?oe(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}oe(t,"unexpected end of the stream within a double quoted scalar")}i(GF,"readDoubleQuotedScalar");function JF(t,e){var r=!0,n,o=t.tag,s,a=t.anchor,l,u,c,f,p,h={},m,d,g,x;if(x=t.input.charCodeAt(t.position),x===91)u=93,p=!1,s=[];else if(x===123)u=125,p=!0,s={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),x=t.input.charCodeAt(++t.position);x!==0;){if(Ve(t,!0,e),x=t.input.charCodeAt(t.position),x===u)return t.position++,t.tag=o,t.anchor=a,t.kind=p?"mapping":"sequence",t.result=s,!0;r||oe(t,"missed comma between flow collection entries"),d=m=g=null,c=f=!1,x===63&&(l=t.input.charCodeAt(t.position+1),Rt(l)&&(c=f=!0,t.position++,Ve(t,!0,e))),n=t.line,ts(t,e,bf,!1,!0),d=t.tag,m=t.result,Ve(t,!0,e),x=t.input.charCodeAt(t.position),(f||t.line===n)&&x===58&&(c=!0,x=t.input.charCodeAt(++t.position),Ve(t,!0,e),ts(t,e,bf,!1,!0),g=t.result),p?es(t,s,h,d,m,g):c?s.push(es(t,null,h,d,m,g)):s.push(m),Ve(t,!0,e),x=t.input.charCodeAt(t.position),x===44?(r=!0,x=t.input.charCodeAt(++t.position)):r=!1}oe(t,"unexpected end of the stream within a flow collection")}i(JF,"readFlowCollection");function QF(t,e){var r,n,o=Um,s=!1,a=!1,l=e,u=0,c=!1,f,p;if(p=t.input.charCodeAt(t.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(t.kind="scalar",t.result="";p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)Um===o?o=p===43?Sk:LF:oe(t,"repeat of a chomping mode identifier");else if((f=$F(p))>=0)f===0?oe(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?oe(t,"repeat of an indentation width identifier"):(l=e+f-1,a=!0);else break;if(wi(p)){do p=t.input.charCodeAt(++t.position);while(wi(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!Nr(p)&&p!==0)}for(;p!==0;){for(qm(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!a||t.lineIndent<l)&&p===32;)t.lineIndent++,p=t.input.charCodeAt(++t.position);if(!a&&t.lineIndent>l&&(l=t.lineIndent),Nr(p)){u++;continue}if(t.lineIndent<l){o===Sk?t.result+=Gr.repeat(`
5
+ `+r)),n},"toString"),kS.exports=zm});var Xe=se((YPe,DS)=>{"use strict";var ES=Qo(),dR=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],gR=["scalar","sequence","mapping"];function xR(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}i(xR,"compileStyleAliases");function yR(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(dR.indexOf(r)===-1)throw new ES('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=xR(e.styleAliases||null),gR.indexOf(this.kind)===-1)throw new ES('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}i(yR,"Type"),DS.exports=yR});var xi=se((GPe,OS)=>{"use strict";var CS=gi(),xf=Qo(),wR=Xe();function jm(t,e,r){var n=[];return t.include.forEach(function(o){r=jm(o,e,r)}),t[e].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(jm,"compileList");function bR(){var t={scalar:{},sequence:{},mapping:{},fallback:{}},e,r;function n(o){t[o.kind][o.tag]=t.fallback[o.tag]=o}for(i(n,"collectType"),e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}i(bR,"compileMap");function Ko(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&e.loadKind!=="scalar")throw new xf("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=jm(this,"implicit",[]),this.compiledExplicit=jm(this,"explicit",[]),this.compiledTypeMap=bR(this.compiledImplicit,this.compiledExplicit)}i(Ko,"Schema"),Ko.DEFAULT=null,Ko.create=i(function(){var e,r;switch(arguments.length){case 1:e=Ko.DEFAULT,r=arguments[0];break;case 2:e=arguments[0],r=arguments[1];break;default:throw new xf("Wrong number of arguments for Schema.create function")}if(e=CS.toArray(e),r=CS.toArray(r),!e.every(function(n){return n instanceof Ko}))throw new xf("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof wR}))throw new xf("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Ko({include:e,explicit:r})},"createSchema"),OS.exports=Ko});var IS=se((QPe,MS)=>{"use strict";var vR=Xe();MS.exports=new vR("tag:yaml.org,2002:str",{kind:"scalar",construct:i(function(t){return t!==null?t:""},"construct")})});var PS=se((XPe,_S)=>{"use strict";var SR=Xe();_S.exports=new SR("tag:yaml.org,2002:seq",{kind:"sequence",construct:i(function(t){return t!==null?t:[]},"construct")})});var AS=se((eNe,NS)=>{"use strict";var kR=Xe();NS.exports=new kR("tag:yaml.org,2002:map",{kind:"mapping",construct:i(function(t){return t!==null?t:{}},"construct")})});var yf=se((rNe,RS)=>{"use strict";var TR=xi();RS.exports=new TR({explicit:[IS(),PS(),AS()]})});var LS=se((nNe,FS)=>{"use strict";var ER=Xe();function DR(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}i(DR,"resolveYamlNull");function CR(){return null}i(CR,"constructYamlNull");function OR(t){return t===null}i(OR,"isNull"),FS.exports=new ER("tag:yaml.org,2002:null",{kind:"scalar",resolve:DR,construct:CR,predicate:OR,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 zS=se((oNe,BS)=>{"use strict";var MR=Xe();function IR(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}i(IR,"resolveYamlBoolean");function _R(t){return t==="true"||t==="True"||t==="TRUE"}i(_R,"constructYamlBoolean");function PR(t){return Object.prototype.toString.call(t)==="[object Boolean]"}i(PR,"isBoolean"),BS.exports=new MR("tag:yaml.org,2002:bool",{kind:"scalar",resolve:IR,construct:_R,predicate:PR,represent:{lowercase:i(function(t){return t?"true":"false"},"lowercase"),uppercase:i(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:i(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"})});var HS=se((aNe,jS)=>{"use strict";var NR=gi(),AR=Xe();function RR(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}i(RR,"isHexCode");function FR(t){return 48<=t&&t<=55}i(FR,"isOctCode");function LR(t){return 48<=t&&t<=57}i(LR,"isDecCode");function BR(t){if(t===null)return!1;var e=t.length,r=0,n=!1,o;if(!e)return!1;if(o=t[r],(o==="-"||o==="+")&&(o=t[++r]),o==="0"){if(r+1===e)return!0;if(o=t[++r],o==="b"){for(r++;r<e;r++)if(o=t[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;n=!0}return n&&o!=="_"}if(o==="x"){for(r++;r<e;r++)if(o=t[r],o!=="_"){if(!RR(t.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}for(;r<e;r++)if(o=t[r],o!=="_"){if(!FR(t.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}if(o==="_")return!1;for(;r<e;r++)if(o=t[r],o!=="_"){if(o===":")break;if(!LR(t.charCodeAt(r)))return!1;n=!0}return!n||o==="_"?!1:o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r))}i(BR,"resolveYamlInteger");function zR(t){var e=t,r=1,n,o,s=[];return e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0"?0:n==="0"?e[1]==="b"?r*parseInt(e.slice(2),2):e[1]==="x"?r*parseInt(e,16):r*parseInt(e,8):e.indexOf(":")!==-1?(e.split(":").forEach(function(a){s.unshift(parseInt(a,10))}),e=0,o=1,s.forEach(function(a){e+=a*o,o*=60}),r*e):r*parseInt(e,10)}i(zR,"constructYamlInteger");function jR(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!NR.isNegativeZero(t)}i(jR,"isInteger"),jS.exports=new AR("tag:yaml.org,2002:int",{kind:"scalar",resolve:BR,construct:zR,predicate:jR,represent:{binary:i(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:i(function(t){return t>=0?"0"+t.toString(8):"-0"+t.toString(8).slice(1)},"octal"),decimal:i(function(t){return t.toString(10)},"decimal"),hexadecimal:i(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var US=se((uNe,$S)=>{"use strict";var WS=gi(),HR=Xe(),WR=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 $R(t){return!(t===null||!WR.test(t)||t[t.length-1]==="_")}i($R,"resolveYamlFloat");function UR(t){var e,r,n,o;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,o=[],"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:e.indexOf(":")>=0?(e.split(":").forEach(function(s){o.unshift(parseFloat(s,10))}),e=0,n=1,o.forEach(function(s){e+=s*n,n*=60}),r*e):r*parseFloat(e,10)}i(UR,"constructYamlFloat");var qR=/^[-+]?[0-9]+e/;function YR(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(WS.isNegativeZero(t))return"-0.0";return r=t.toString(10),qR.test(r)?r.replace("e",".e"):r}i(YR,"representYamlFloat");function VR(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||WS.isNegativeZero(t))}i(VR,"isFloat"),$S.exports=new HR("tag:yaml.org,2002:float",{kind:"scalar",resolve:$R,construct:UR,predicate:VR,represent:YR,defaultStyle:"lowercase"})});var Hm=se((fNe,qS)=>{"use strict";var GR=xi();qS.exports=new GR({include:[yf()],implicit:[LS(),zS(),HS(),US()]})});var Wm=se((pNe,YS)=>{"use strict";var JR=xi();YS.exports=new JR({include:[Hm()]})});var QS=se((hNe,JS)=>{"use strict";var QR=Xe(),VS=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),GS=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 KR(t){return t===null?!1:VS.exec(t)!==null||GS.exec(t)!==null}i(KR,"resolveYamlTimestamp");function XR(t){var e,r,n,o,s,a,l,u=0,c=null,f,p,h;if(e=VS.exec(t),e===null&&(e=GS.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,o=+e[3],!e[4])return new Date(Date.UTC(r,n,o));if(s=+e[4],a=+e[5],l=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(f=+e[10],p=+(e[11]||0),c=(f*60+p)*6e4,e[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,o,s,a,l,u)),c&&h.setTime(h.getTime()-c),h}i(XR,"constructYamlTimestamp");function ZR(t){return t.toISOString()}i(ZR,"representYamlTimestamp"),JS.exports=new QR("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:KR,construct:XR,instanceOf:Date,represent:ZR})});var XS=se((dNe,KS)=>{"use strict";var eF=Xe();function tF(t){return t==="<<"||t===null}i(tF,"resolveYamlMerge"),KS.exports=new eF("tag:yaml.org,2002:merge",{kind:"scalar",resolve:tF})});var tk=se((xNe,ek)=>{"use strict";var yi;try{ZS=gl,yi=ZS("buffer").Buffer}catch{}var rF=Xe(),$m=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
+ \r`;function nF(t){if(t===null)return!1;var e,r,n=0,o=t.length,s=$m;for(r=0;r<o;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}i(nF,"resolveYamlBinary");function iF(t){var e,r,n=t.replace(/[\r\n=]/g,""),o=n.length,s=$m,a=0,l=[];for(e=0;e<o;e++)e%4===0&&e&&(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)),a=a<<6|s.indexOf(n.charAt(e));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),yi?yi.from?yi.from(l):new yi(l):l}i(iF,"constructYamlBinary");function oF(t){var e="",r=0,n,o,s=t.length,a=$m;for(n=0;n<s;n++)n%3===0&&n&&(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[n];return o=s%3,o===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):o===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):o===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}i(oF,"representYamlBinary");function sF(t){return yi&&yi.isBuffer(t)}i(sF,"isBinary"),ek.exports=new rF("tag:yaml.org,2002:binary",{kind:"scalar",resolve:nF,construct:iF,predicate:sF,represent:oF});var ZS});var nk=se((wNe,rk)=>{"use strict";var aF=Xe(),lF=Object.prototype.hasOwnProperty,uF=Object.prototype.toString;function cF(t){if(t===null)return!0;var e=[],r,n,o,s,a,l=t;for(r=0,n=l.length;r<n;r+=1){if(o=l[r],a=!1,uF.call(o)!=="[object Object]")return!1;for(s in o)if(lF.call(o,s))if(!a)a=!0;else return!1;if(!a)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}i(cF,"resolveYamlOmap");function fF(t){return t!==null?t:[]}i(fF,"constructYamlOmap"),rk.exports=new aF("tag:yaml.org,2002:omap",{kind:"sequence",resolve:cF,construct:fF})});var ok=se((vNe,ik)=>{"use strict";var pF=Xe(),hF=Object.prototype.toString;function mF(t){if(t===null)return!0;var e,r,n,o,s,a=t;for(s=new Array(a.length),e=0,r=a.length;e<r;e+=1){if(n=a[e],hF.call(n)!=="[object Object]"||(o=Object.keys(n),o.length!==1))return!1;s[e]=[o[0],n[o[0]]]}return!0}i(mF,"resolveYamlPairs");function dF(t){if(t===null)return[];var e,r,n,o,s,a=t;for(s=new Array(a.length),e=0,r=a.length;e<r;e+=1)n=a[e],o=Object.keys(n),s[e]=[o[0],n[o[0]]];return s}i(dF,"constructYamlPairs"),ik.exports=new pF("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:mF,construct:dF})});var ak=se((kNe,sk)=>{"use strict";var gF=Xe(),xF=Object.prototype.hasOwnProperty;function yF(t){if(t===null)return!0;var e,r=t;for(e in r)if(xF.call(r,e)&&r[e]!==null)return!1;return!0}i(yF,"resolveYamlSet");function wF(t){return t!==null?t:{}}i(wF,"constructYamlSet"),sk.exports=new gF("tag:yaml.org,2002:set",{kind:"mapping",resolve:yF,construct:wF})});var Xo=se((ENe,lk)=>{"use strict";var bF=xi();lk.exports=new bF({include:[Wm()],implicit:[QS(),XS()],explicit:[tk(),nk(),ok(),ak()]})});var ck=se((DNe,uk)=>{"use strict";var vF=Xe();function SF(){return!0}i(SF,"resolveJavascriptUndefined");function kF(){}i(kF,"constructJavascriptUndefined");function TF(){return""}i(TF,"representJavascriptUndefined");function EF(t){return typeof t>"u"}i(EF,"isUndefined"),uk.exports=new vF("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:SF,construct:kF,predicate:EF,represent:TF})});var pk=se((ONe,fk)=>{"use strict";var DF=Xe();function CF(t){if(t===null||t.length===0)return!1;var e=t,r=/\/([gim]*)$/.exec(t),n="";return!(e[0]==="/"&&(r&&(n=r[1]),n.length>3||e[e.length-n.length-1]!=="/"))}i(CF,"resolveJavascriptRegExp");function OF(t){var e=t,r=/\/([gim]*)$/.exec(t),n="";return e[0]==="/"&&(r&&(n=r[1]),e=e.slice(1,e.length-n.length-1)),new RegExp(e,n)}i(OF,"constructJavascriptRegExp");function MF(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}i(MF,"representJavascriptRegExp");function IF(t){return Object.prototype.toString.call(t)==="[object RegExp]"}i(IF,"isRegExp"),fk.exports=new DF("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:CF,construct:OF,predicate:IF,represent:MF})});var dk=se((INe,mk)=>{"use strict";var wf;try{hk=gl,wf=hk("esprima")}catch{typeof window<"u"&&(wf=window.esprima)}var _F=Xe();function PF(t){if(t===null)return!1;try{var e="("+t+")",r=wf.parse(e,{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(PF,"resolveJavascriptFunction");function NF(t){var e="("+t+")",r=wf.parse(e,{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,e.slice(o[0]+1,o[1]-1)):new Function(n,"return "+e.slice(o[0],o[1]))}i(NF,"constructJavascriptFunction");function AF(t){return t.toString()}i(AF,"representJavascriptFunction");function RF(t){return Object.prototype.toString.call(t)==="[object Function]"}i(RF,"isFunction"),mk.exports=new _F("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:PF,construct:NF,predicate:RF,represent:AF});var hk});var ba=se((PNe,xk)=>{"use strict";var gk=xi();xk.exports=gk.DEFAULT=new gk({include:[Xo()],explicit:[ck(),pk(),dk()]})});var Lk=se((NNe,va)=>{"use strict";var Gr=gi(),yk=Qo(),FF=TS(),wk=Xo(),LF=ba(),Cn=Object.prototype.hasOwnProperty,bf=1,bk=2,vk=3,vf=4,Um=1,BF=2,Sk=3,zF=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,jF=/[\x85\u2028\u2029]/,HF=/[,\[\]\{\}]/,kk=/^(?:!|!!|![a-z\-]+!)$/i,Tk=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ek(t){return Object.prototype.toString.call(t)}i(Ek,"_class");function Ar(t){return t===10||t===13}i(Ar,"is_EOL");function wi(t){return t===9||t===32}i(wi,"is_WHITE_SPACE");function Rt(t){return t===9||t===32||t===10||t===13}i(Rt,"is_WS_OR_EOL");function Zo(t){return t===44||t===91||t===93||t===123||t===125}i(Zo,"is_FLOW_INDICATOR");function WF(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}i(WF,"fromHexCode");function $F(t){return t===120?2:t===117?4:t===85?8:0}i($F,"escapedHexLen");function UF(t){return 48<=t&&t<=57?t-48:-1}i(UF,"fromDecimalCode");function Dk(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
7
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}i(Dk,"simpleEscapeSequence");function qF(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}i(qF,"charFromCodepoint");function Ck(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}i(Ck,"setProperty");var Ok=new Array(256),Mk=new Array(256);for(bi=0;bi<256;bi++)Ok[bi]=Dk(bi)?1:0,Mk[bi]=Dk(bi);function YF(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||LF,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}i(YF,"State");function Ik(t,e){return new yk(e,new FF(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}i(Ik,"generateError");function oe(t,e){throw Ik(t,e)}i(oe,"throwError");function Sf(t,e){t.onWarning&&t.onWarning.call(null,Ik(t,e))}i(Sf,"throwWarning");var _k={YAML:i(function(e,r,n){var o,s,a;e.version!==null&&oe(e,"duplication of %YAML directive"),n.length!==1&&oe(e,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&oe(e,"ill-formed argument of the YAML directive"),s=parseInt(o[1],10),a=parseInt(o[2],10),s!==1&&oe(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&Sf(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:i(function(e,r,n){var o,s;n.length!==2&&oe(e,"TAG directive accepts exactly two arguments"),o=n[0],s=n[1],kk.test(o)||oe(e,"ill-formed tag handle (first argument) of the TAG directive"),Cn.call(e.tagMap,o)&&oe(e,'there is a previously declared suffix for "'+o+'" tag handle'),Tk.test(s)||oe(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[o]=s},"handleTagDirective")};function On(t,e,r,n){var o,s,a,l;if(e<r){if(l=t.input.slice(e,r),n)for(o=0,s=l.length;o<s;o+=1)a=l.charCodeAt(o),a===9||32<=a&&a<=1114111||oe(t,"expected valid JSON character");else zF.test(l)&&oe(t,"the stream contains non-printable characters");t.result+=l}}i(On,"captureSegment");function Pk(t,e,r,n){var o,s,a,l;for(Gr.isObject(r)||oe(t,"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(e,s)||(Ck(e,s,r[s]),n[s]=!0)}i(Pk,"mergeMappings");function es(t,e,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(t,"nested arrays are not supported inside keys"),typeof o=="object"&&Ek(o[u])==="[object Object]"&&(o[u]="[object Object]");if(typeof o=="object"&&Ek(o)==="[object Object]"&&(o="[object Object]"),o=String(o),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,c=s.length;u<c;u+=1)Pk(t,e,s[u],r);else Pk(t,e,s,r);else!t.json&&!Cn.call(r,o)&&Cn.call(e,o)&&(t.line=a||t.line,t.position=l||t.position,oe(t,"duplicated mapping key")),Ck(e,o,s),delete r[o];return e}i(es,"storeMappingPair");function qm(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):oe(t,"a line break is expected"),t.line+=1,t.lineStart=t.position}i(qm,"readLineBreak");function Ve(t,e,r){for(var n=0,o=t.input.charCodeAt(t.position);o!==0;){for(;wi(o);)o=t.input.charCodeAt(++t.position);if(e&&o===35)do o=t.input.charCodeAt(++t.position);while(o!==10&&o!==13&&o!==0);if(Ar(o))for(qm(t),o=t.input.charCodeAt(t.position),n++,t.lineIndent=0;o===32;)t.lineIndent++,o=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&Sf(t,"deficient indentation"),n}i(Ve,"skipSeparationSpace");function kf(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Rt(r)))}i(kf,"testDocumentSeparator");function Ym(t,e){e===1?t.result+=" ":e>1&&(t.result+=Gr.repeat(`
8
+ `,e-1))}i(Ym,"writeFoldedLines");function VF(t,e,r){var n,o,s,a,l,u,c,f,p=t.kind,h=t.result,m;if(m=t.input.charCodeAt(t.position),Rt(m)||Zo(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=t.input.charCodeAt(t.position+1),Rt(o)||r&&Zo(o)))return!1;for(t.kind="scalar",t.result="",s=a=t.position,l=!1;m!==0;){if(m===58){if(o=t.input.charCodeAt(t.position+1),Rt(o)||r&&Zo(o))break}else if(m===35){if(n=t.input.charCodeAt(t.position-1),Rt(n))break}else{if(t.position===t.lineStart&&kf(t)||r&&Zo(m))break;if(Ar(m))if(u=t.line,c=t.lineStart,f=t.lineIndent,Ve(t,!1,-1),t.lineIndent>=e){l=!0,m=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=u,t.lineStart=c,t.lineIndent=f;break}}l&&(On(t,s,a,!1),Ym(t,t.line-u),s=a=t.position,l=!1),wi(m)||(a=t.position+1),m=t.input.charCodeAt(++t.position)}return On(t,s,a,!1),t.result?!0:(t.kind=p,t.result=h,!1)}i(VF,"readPlainScalar");function GF(t,e){var r,n,o;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=o=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(On(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,o=t.position;else return!0;else Ar(r)?(On(t,n,o,!0),Ym(t,Ve(t,!1,e)),n=o=t.position):t.position===t.lineStart&&kf(t)?oe(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);oe(t,"unexpected end of the stream within a single quoted scalar")}i(GF,"readSingleQuotedScalar");function JF(t,e){var r,n,o,s,a,l;if(l=t.input.charCodeAt(t.position),l!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(l=t.input.charCodeAt(t.position))!==0;){if(l===34)return On(t,r,t.position,!0),t.position++,!0;if(l===92){if(On(t,r,t.position,!0),l=t.input.charCodeAt(++t.position),Ar(l))Ve(t,!1,e);else if(l<256&&Ok[l])t.result+=Mk[l],t.position++;else if((a=$F(l))>0){for(o=a,s=0;o>0;o--)l=t.input.charCodeAt(++t.position),(a=WF(l))>=0?s=(s<<4)+a:oe(t,"expected hexadecimal character");t.result+=qF(s),t.position++}else oe(t,"unknown escape sequence");r=n=t.position}else Ar(l)?(On(t,r,n,!0),Ym(t,Ve(t,!1,e)),r=n=t.position):t.position===t.lineStart&&kf(t)?oe(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}oe(t,"unexpected end of the stream within a double quoted scalar")}i(JF,"readDoubleQuotedScalar");function QF(t,e){var r=!0,n,o=t.tag,s,a=t.anchor,l,u,c,f,p,h={},m,d,g,x;if(x=t.input.charCodeAt(t.position),x===91)u=93,p=!1,s=[];else if(x===123)u=125,p=!0,s={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),x=t.input.charCodeAt(++t.position);x!==0;){if(Ve(t,!0,e),x=t.input.charCodeAt(t.position),x===u)return t.position++,t.tag=o,t.anchor=a,t.kind=p?"mapping":"sequence",t.result=s,!0;r||oe(t,"missed comma between flow collection entries"),d=m=g=null,c=f=!1,x===63&&(l=t.input.charCodeAt(t.position+1),Rt(l)&&(c=f=!0,t.position++,Ve(t,!0,e))),n=t.line,ts(t,e,bf,!1,!0),d=t.tag,m=t.result,Ve(t,!0,e),x=t.input.charCodeAt(t.position),(f||t.line===n)&&x===58&&(c=!0,x=t.input.charCodeAt(++t.position),Ve(t,!0,e),ts(t,e,bf,!1,!0),g=t.result),p?es(t,s,h,d,m,g):c?s.push(es(t,null,h,d,m,g)):s.push(m),Ve(t,!0,e),x=t.input.charCodeAt(t.position),x===44?(r=!0,x=t.input.charCodeAt(++t.position)):r=!1}oe(t,"unexpected end of the stream within a flow collection")}i(QF,"readFlowCollection");function KF(t,e){var r,n,o=Um,s=!1,a=!1,l=e,u=0,c=!1,f,p;if(p=t.input.charCodeAt(t.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(t.kind="scalar",t.result="";p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)Um===o?o=p===43?Sk:BF:oe(t,"repeat of a chomping mode identifier");else if((f=UF(p))>=0)f===0?oe(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?oe(t,"repeat of an indentation width identifier"):(l=e+f-1,a=!0);else break;if(wi(p)){do p=t.input.charCodeAt(++t.position);while(wi(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!Ar(p)&&p!==0)}for(;p!==0;){for(qm(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!a||t.lineIndent<l)&&p===32;)t.lineIndent++,p=t.input.charCodeAt(++t.position);if(!a&&t.lineIndent>l&&(l=t.lineIndent),Ar(p)){u++;continue}if(t.lineIndent<l){o===Sk?t.result+=Gr.repeat(`
9
9
  `,s?1+u:u):o===Um&&s&&(t.result+=`
10
10
  `);break}for(n?wi(p)?(c=!0,t.result+=Gr.repeat(`
11
11
  `,s?1+u:u)):c?(c=!1,t.result+=Gr.repeat(`
12
12
  `,u+1)):u===0?s&&(t.result+=" "):t.result+=Gr.repeat(`
13
13
  `,u):t.result+=Gr.repeat(`
14
- `,s?1+u:u),s=!0,a=!0,u=0,r=t.position;!Nr(p)&&p!==0;)p=t.input.charCodeAt(++t.position);On(t,r,t.position,!1)}return!0}i(QF,"readBlockScalar");function Nk(t,e){var r,n=t.tag,o=t.anchor,s=[],a,l=!1,u;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),u=t.input.charCodeAt(t.position);u!==0&&!(u!==45||(a=t.input.charCodeAt(t.position+1),!Rt(a)));){if(l=!0,t.position++,Ve(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,ts(t,e,vk,!1,!0),s.push(t.result),Ve(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)oe(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return l?(t.tag=n,t.anchor=o,t.kind="sequence",t.result=s,!0):!1}i(Nk,"readBlockSequence");function KF(t,e,r){var n,o,s,a,l=t.tag,u=t.anchor,c={},f={},p=null,h=null,m=null,d=!1,g=!1,x;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),x=t.input.charCodeAt(t.position);x!==0;){if(n=t.input.charCodeAt(t.position+1),s=t.line,a=t.position,(x===63||x===58)&&Rt(n))x===63?(d&&(es(t,c,f,p,h,null),p=h=m=null),g=!0,d=!0,o=!0):d?(d=!1,o=!0):oe(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,x=n;else if(ts(t,r,bk,!1,!0))if(t.line===s){for(x=t.input.charCodeAt(t.position);wi(x);)x=t.input.charCodeAt(++t.position);if(x===58)x=t.input.charCodeAt(++t.position),Rt(x)||oe(t,"a whitespace character is expected after the key-value separator within a block mapping"),d&&(es(t,c,f,p,h,null),p=h=m=null),g=!0,d=!1,o=!1,p=t.tag,h=t.result;else if(g)oe(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=u,!0}else if(g)oe(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=u,!0;else break;if((t.line===s||t.lineIndent>e)&&(ts(t,e,vf,!0,o)&&(d?h=t.result:m=t.result),d||(es(t,c,f,p,h,m,s,a),p=h=m=null),Ve(t,!0,-1),x=t.input.charCodeAt(t.position)),t.lineIndent>e&&x!==0)oe(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return d&&es(t,c,f,p,h,null),g&&(t.tag=l,t.anchor=u,t.kind="mapping",t.result=c),g}i(KF,"readBlockMapping");function XF(t){var e,r=!1,n=!1,o,s,a;if(a=t.input.charCodeAt(t.position),a!==33)return!1;if(t.tag!==null&&oe(t,"duplication of a tag property"),a=t.input.charCodeAt(++t.position),a===60?(r=!0,a=t.input.charCodeAt(++t.position)):a===33?(n=!0,o="!!",a=t.input.charCodeAt(++t.position)):o="!",e=t.position,r){do a=t.input.charCodeAt(++t.position);while(a!==0&&a!==62);t.position<t.length?(s=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):oe(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Rt(a);)a===33&&(n?oe(t,"tag suffix cannot contain exclamation marks"):(o=t.input.slice(e-1,t.position+1),kk.test(o)||oe(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),jF.test(s)&&oe(t,"tag suffix cannot contain flow indicator characters")}return s&&!Tk.test(s)&&oe(t,"tag name cannot contain such characters: "+s),r?t.tag=s:Cn.call(t.tagMap,o)?t.tag=t.tagMap[o]+s:o==="!"?t.tag="!"+s:o==="!!"?t.tag="tag:yaml.org,2002:"+s:oe(t,'undeclared tag handle "'+o+'"'),!0}i(XF,"readTagProperty");function ZF(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&oe(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Rt(r)&&!Zo(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&oe(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}i(ZF,"readAnchorProperty");function eL(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!Rt(n)&&!Zo(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&oe(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Cn.call(t.anchorMap,r)||oe(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Ve(t,!0,-1),!0}i(eL,"readAlias");function ts(t,e,r,n,o){var s,a,l,u=1,c=!1,f=!1,p,h,m,d,g;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=a=l=vf===r||vk===r,n&&Ve(t,!0,-1)&&(c=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;XF(t)||ZF(t);)Ve(t,!0,-1)?(c=!0,l=s,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):l=!1;if(l&&(l=c||o),(u===1||vf===r)&&(bf===r||bk===r?d=e:d=e+1,g=t.position-t.lineStart,u===1?l&&(Nk(t,g)||KF(t,g,d))||JF(t,d)?f=!0:(a&&QF(t,d)||VF(t,d)||GF(t,d)?f=!0:eL(t)?(f=!0,(t.tag!==null||t.anchor!==null)&&oe(t,"alias node should not have any properties")):YF(t,d,bf===r)&&(f=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(f=l&&Nk(t,g))),t.tag!==null&&t.tag!=="!")if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&oe(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),p=0,h=t.implicitTypes.length;p<h;p+=1)if(m=t.implicitTypes[p],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else Cn.call(t.typeMap[t.kind||"fallback"],t.tag)?(m=t.typeMap[t.kind||"fallback"][t.tag],t.result!==null&&m.kind!==t.kind&&oe(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result)?(t.result=m.construct(t.result),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):oe(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):oe(t,"unknown tag !<"+t.tag+">");return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||f}i(ts,"composeNode");function tL(t){var e=t.position,r,n,o,s=!1,a;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap={},t.anchorMap={};(a=t.input.charCodeAt(t.position))!==0&&(Ve(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||a!==37));){for(s=!0,a=t.input.charCodeAt(++t.position),r=t.position;a!==0&&!Rt(a);)a=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),o=[],n.length<1&&oe(t,"directive name must not be less than one character in length");a!==0;){for(;wi(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!Nr(a));break}if(Nr(a))break;for(r=t.position;a!==0&&!Rt(a);)a=t.input.charCodeAt(++t.position);o.push(t.input.slice(r,t.position))}a!==0&&qm(t),Cn.call(_k,n)?_k[n](t,n,o):Sf(t,'unknown document directive "'+n+'"')}if(Ve(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Ve(t,!0,-1)):s&&oe(t,"directives end mark is expected"),ts(t,t.lineIndent-1,vf,!1,!0),Ve(t,!0,-1),t.checkLineBreaks&&zF.test(t.input.slice(e,t.position))&&Sf(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&kf(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Ve(t,!0,-1));return}if(t.position<t.length-1)oe(t,"end of the stream or a document separator is expected");else return}i(tL,"readDocument");function Ak(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
15
- `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new qF(t,e),n=t.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;)tL(r);return r.documents}i(Ak,"loadDocuments");function Rk(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=Ak(t,r);if(typeof e!="function")return n;for(var o=0,s=n.length;o<s;o+=1)e(n[o])}i(Rk,"loadAll");function Fk(t,e){var r=Ak(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new yk("expected a single document in the stream, but found more")}}i(Fk,"load");function rL(t,e,r){return typeof e=="object"&&e!==null&&typeof r>"u"&&(r=e,e=null),Rk(t,e,Gr.extend({schema:wk},r))}i(rL,"safeLoadAll");function nL(t,e){return Fk(t,Gr.extend({schema:wk},e))}i(nL,"safeLoad"),va.exports.loadAll=Rk,va.exports.load=Fk,va.exports.safeLoadAll=rL,va.exports.safeLoad=nL;var bi});var s1=se((PNe,Qm)=>{"use strict";var Sa=gi(),ka=Qo(),iL=ba(),oL=Xo(),Bk=Object.prototype.toString,zk=Object.prototype.hasOwnProperty,sL=9,Ta=10,aL=13,lL=32,uL=33,cL=34,jk=35,fL=37,pL=38,hL=39,mL=42,Hk=44,dL=45,Wk=58,gL=61,xL=62,yL=63,wL=64,$k=91,Uk=93,bL=96,qk=123,vL=124,Yk=125,wt={};wt[0]="\\0",wt[7]="\\a",wt[8]="\\b",wt[9]="\\t",wt[10]="\\n",wt[11]="\\v",wt[12]="\\f",wt[13]="\\r",wt[27]="\\e",wt[34]='\\"',wt[92]="\\\\",wt[133]="\\N",wt[160]="\\_",wt[8232]="\\L",wt[8233]="\\P";var SL=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function kL(t,e){var r,n,o,s,a,l,u;if(e===null)return{};for(r={},n=Object.keys(e),o=0,s=n.length;o<s;o+=1)a=n[o],l=String(e[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=t.compiledTypeMap.fallback[a],u&&zk.call(u.styleAliases,l)&&(l=u.styleAliases[l]),r[a]=l;return r}i(kL,"compileStyleMap");function Vk(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new ka("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Sa.repeat("0",n-e.length)+e}i(Vk,"encodeHex");function TL(t){this.schema=t.schema||iL,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Sa.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=kL(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}i(TL,"State");function Gk(t,e){for(var r=Sa.repeat(" ",e),n=0,o=-1,s="",a,l=t.length;n<l;)o=t.indexOf(`
14
+ `,s?1+u:u),s=!0,a=!0,u=0,r=t.position;!Ar(p)&&p!==0;)p=t.input.charCodeAt(++t.position);On(t,r,t.position,!1)}return!0}i(KF,"readBlockScalar");function Nk(t,e){var r,n=t.tag,o=t.anchor,s=[],a,l=!1,u;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),u=t.input.charCodeAt(t.position);u!==0&&!(u!==45||(a=t.input.charCodeAt(t.position+1),!Rt(a)));){if(l=!0,t.position++,Ve(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,ts(t,e,vk,!1,!0),s.push(t.result),Ve(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)oe(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return l?(t.tag=n,t.anchor=o,t.kind="sequence",t.result=s,!0):!1}i(Nk,"readBlockSequence");function XF(t,e,r){var n,o,s,a,l=t.tag,u=t.anchor,c={},f={},p=null,h=null,m=null,d=!1,g=!1,x;for(t.anchor!==null&&(t.anchorMap[t.anchor]=c),x=t.input.charCodeAt(t.position);x!==0;){if(n=t.input.charCodeAt(t.position+1),s=t.line,a=t.position,(x===63||x===58)&&Rt(n))x===63?(d&&(es(t,c,f,p,h,null),p=h=m=null),g=!0,d=!0,o=!0):d?(d=!1,o=!0):oe(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,x=n;else if(ts(t,r,bk,!1,!0))if(t.line===s){for(x=t.input.charCodeAt(t.position);wi(x);)x=t.input.charCodeAt(++t.position);if(x===58)x=t.input.charCodeAt(++t.position),Rt(x)||oe(t,"a whitespace character is expected after the key-value separator within a block mapping"),d&&(es(t,c,f,p,h,null),p=h=m=null),g=!0,d=!1,o=!1,p=t.tag,h=t.result;else if(g)oe(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=u,!0}else if(g)oe(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=u,!0;else break;if((t.line===s||t.lineIndent>e)&&(ts(t,e,vf,!0,o)&&(d?h=t.result:m=t.result),d||(es(t,c,f,p,h,m,s,a),p=h=m=null),Ve(t,!0,-1),x=t.input.charCodeAt(t.position)),t.lineIndent>e&&x!==0)oe(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return d&&es(t,c,f,p,h,null),g&&(t.tag=l,t.anchor=u,t.kind="mapping",t.result=c),g}i(XF,"readBlockMapping");function ZF(t){var e,r=!1,n=!1,o,s,a;if(a=t.input.charCodeAt(t.position),a!==33)return!1;if(t.tag!==null&&oe(t,"duplication of a tag property"),a=t.input.charCodeAt(++t.position),a===60?(r=!0,a=t.input.charCodeAt(++t.position)):a===33?(n=!0,o="!!",a=t.input.charCodeAt(++t.position)):o="!",e=t.position,r){do a=t.input.charCodeAt(++t.position);while(a!==0&&a!==62);t.position<t.length?(s=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):oe(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Rt(a);)a===33&&(n?oe(t,"tag suffix cannot contain exclamation marks"):(o=t.input.slice(e-1,t.position+1),kk.test(o)||oe(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),HF.test(s)&&oe(t,"tag suffix cannot contain flow indicator characters")}return s&&!Tk.test(s)&&oe(t,"tag name cannot contain such characters: "+s),r?t.tag=s:Cn.call(t.tagMap,o)?t.tag=t.tagMap[o]+s:o==="!"?t.tag="!"+s:o==="!!"?t.tag="tag:yaml.org,2002:"+s:oe(t,'undeclared tag handle "'+o+'"'),!0}i(ZF,"readTagProperty");function eL(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&oe(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Rt(r)&&!Zo(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&oe(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}i(eL,"readAnchorProperty");function tL(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!Rt(n)&&!Zo(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&oe(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Cn.call(t.anchorMap,r)||oe(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Ve(t,!0,-1),!0}i(tL,"readAlias");function ts(t,e,r,n,o){var s,a,l,u=1,c=!1,f=!1,p,h,m,d,g;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=a=l=vf===r||vk===r,n&&Ve(t,!0,-1)&&(c=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;ZF(t)||eL(t);)Ve(t,!0,-1)?(c=!0,l=s,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):l=!1;if(l&&(l=c||o),(u===1||vf===r)&&(bf===r||bk===r?d=e:d=e+1,g=t.position-t.lineStart,u===1?l&&(Nk(t,g)||XF(t,g,d))||QF(t,d)?f=!0:(a&&KF(t,d)||GF(t,d)||JF(t,d)?f=!0:tL(t)?(f=!0,(t.tag!==null||t.anchor!==null)&&oe(t,"alias node should not have any properties")):VF(t,d,bf===r)&&(f=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(f=l&&Nk(t,g))),t.tag!==null&&t.tag!=="!")if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&oe(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),p=0,h=t.implicitTypes.length;p<h;p+=1)if(m=t.implicitTypes[p],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else Cn.call(t.typeMap[t.kind||"fallback"],t.tag)?(m=t.typeMap[t.kind||"fallback"][t.tag],t.result!==null&&m.kind!==t.kind&&oe(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result)?(t.result=m.construct(t.result),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):oe(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):oe(t,"unknown tag !<"+t.tag+">");return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||f}i(ts,"composeNode");function rL(t){var e=t.position,r,n,o,s=!1,a;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap={},t.anchorMap={};(a=t.input.charCodeAt(t.position))!==0&&(Ve(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||a!==37));){for(s=!0,a=t.input.charCodeAt(++t.position),r=t.position;a!==0&&!Rt(a);)a=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),o=[],n.length<1&&oe(t,"directive name must not be less than one character in length");a!==0;){for(;wi(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!Ar(a));break}if(Ar(a))break;for(r=t.position;a!==0&&!Rt(a);)a=t.input.charCodeAt(++t.position);o.push(t.input.slice(r,t.position))}a!==0&&qm(t),Cn.call(_k,n)?_k[n](t,n,o):Sf(t,'unknown document directive "'+n+'"')}if(Ve(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Ve(t,!0,-1)):s&&oe(t,"directives end mark is expected"),ts(t,t.lineIndent-1,vf,!1,!0),Ve(t,!0,-1),t.checkLineBreaks&&jF.test(t.input.slice(e,t.position))&&Sf(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&kf(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Ve(t,!0,-1));return}if(t.position<t.length-1)oe(t,"end of the stream or a document separator is expected");else return}i(rL,"readDocument");function Ak(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
15
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new YF(t,e),n=t.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;)rL(r);return r.documents}i(Ak,"loadDocuments");function Rk(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=Ak(t,r);if(typeof e!="function")return n;for(var o=0,s=n.length;o<s;o+=1)e(n[o])}i(Rk,"loadAll");function Fk(t,e){var r=Ak(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new yk("expected a single document in the stream, but found more")}}i(Fk,"load");function nL(t,e,r){return typeof e=="object"&&e!==null&&typeof r>"u"&&(r=e,e=null),Rk(t,e,Gr.extend({schema:wk},r))}i(nL,"safeLoadAll");function iL(t,e){return Fk(t,Gr.extend({schema:wk},e))}i(iL,"safeLoad"),va.exports.loadAll=Rk,va.exports.load=Fk,va.exports.safeLoadAll=nL,va.exports.safeLoad=iL;var bi});var s1=se((RNe,Qm)=>{"use strict";var Sa=gi(),ka=Qo(),oL=ba(),sL=Xo(),Bk=Object.prototype.toString,zk=Object.prototype.hasOwnProperty,aL=9,Ta=10,lL=13,uL=32,cL=33,fL=34,jk=35,pL=37,hL=38,mL=39,dL=42,Hk=44,gL=45,Wk=58,xL=61,yL=62,wL=63,bL=64,$k=91,Uk=93,vL=96,qk=123,SL=124,Yk=125,wt={};wt[0]="\\0",wt[7]="\\a",wt[8]="\\b",wt[9]="\\t",wt[10]="\\n",wt[11]="\\v",wt[12]="\\f",wt[13]="\\r",wt[27]="\\e",wt[34]='\\"',wt[92]="\\\\",wt[133]="\\N",wt[160]="\\_",wt[8232]="\\L",wt[8233]="\\P";var kL=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function TL(t,e){var r,n,o,s,a,l,u;if(e===null)return{};for(r={},n=Object.keys(e),o=0,s=n.length;o<s;o+=1)a=n[o],l=String(e[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=t.compiledTypeMap.fallback[a],u&&zk.call(u.styleAliases,l)&&(l=u.styleAliases[l]),r[a]=l;return r}i(TL,"compileStyleMap");function Vk(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new ka("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Sa.repeat("0",n-e.length)+e}i(Vk,"encodeHex");function EL(t){this.schema=t.schema||oL,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Sa.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=TL(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}i(EL,"State");function Gk(t,e){for(var r=Sa.repeat(" ",e),n=0,o=-1,s="",a,l=t.length;n<l;)o=t.indexOf(`
16
16
  `,n),o===-1?(a=t.slice(n),n=l):(a=t.slice(n,o+1),n=o+1),a.length&&a!==`
17
17
  `&&(s+=r),s+=a;return s}i(Gk,"indentString");function Vm(t,e){return`
18
- `+Sa.repeat(" ",t.indent*e)}i(Vm,"generateNextLine");function EL(t,e){var r,n,o;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(o=t.implicitTypes[r],o.resolve(e))return!0;return!1}i(EL,"testImplicitResolving");function Gm(t){return t===lL||t===sL}i(Gm,"isWhitespace");function rs(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==65279||65536<=t&&t<=1114111}i(rs,"isPrintable");function DL(t){return rs(t)&&!Gm(t)&&t!==65279&&t!==aL&&t!==Ta}i(DL,"isNsChar");function Jk(t,e){return rs(t)&&t!==65279&&t!==Hk&&t!==$k&&t!==Uk&&t!==qk&&t!==Yk&&t!==Wk&&(t!==jk||e&&DL(e))}i(Jk,"isPlainSafe");function CL(t){return rs(t)&&t!==65279&&!Gm(t)&&t!==dL&&t!==yL&&t!==Wk&&t!==Hk&&t!==$k&&t!==Uk&&t!==qk&&t!==Yk&&t!==jk&&t!==pL&&t!==mL&&t!==uL&&t!==vL&&t!==gL&&t!==xL&&t!==hL&&t!==cL&&t!==fL&&t!==wL&&t!==bL}i(CL,"isPlainSafeFirst");function Qk(t){var e=/^\n* /;return e.test(t)}i(Qk,"needIndentIndicator");var Kk=1,Xk=2,Zk=3,e1=4,Tf=5;function OL(t,e,r,n,o){var s,a,l,u=!1,c=!1,f=n!==-1,p=-1,h=CL(t.charCodeAt(0))&&!Gm(t.charCodeAt(t.length-1));if(e)for(s=0;s<t.length;s++){if(a=t.charCodeAt(s),!rs(a))return Tf;l=s>0?t.charCodeAt(s-1):null,h=h&&Jk(a,l)}else{for(s=0;s<t.length;s++){if(a=t.charCodeAt(s),a===Ta)u=!0,f&&(c=c||s-p-1>n&&t[p+1]!==" ",p=s);else if(!rs(a))return Tf;l=s>0?t.charCodeAt(s-1):null,h=h&&Jk(a,l)}c=c||f&&s-p-1>n&&t[p+1]!==" "}return!u&&!c?h&&!o(t)?Kk:Xk:r>9&&Qk(t)?Tf:c?e1:Zk}i(OL,"chooseScalarStyle");function ML(t,e,r,n){t.dump=(function(){if(e.length===0)return"''";if(!t.noCompatMode&&SL.indexOf(e)!==-1)return"'"+e+"'";var o=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),a=n||t.flowLevel>-1&&r>=t.flowLevel;function l(u){return EL(t,u)}switch(i(l,"testAmbiguity"),OL(e,a,t.indent,s,l)){case Kk:return e;case Xk:return"'"+e.replace(/'/g,"''")+"'";case Zk:return"|"+t1(e,t.indent)+r1(Gk(e,o));case e1:return">"+t1(e,t.indent)+r1(Gk(IL(e,s),o));case Tf:return'"'+_L(e,s)+'"';default:throw new ka("impossible error: invalid scalar style")}})()}i(ML,"writeScalar");function t1(t,e){var r=Qk(t)?String(e):"",n=t[t.length-1]===`
18
+ `+Sa.repeat(" ",t.indent*e)}i(Vm,"generateNextLine");function DL(t,e){var r,n,o;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(o=t.implicitTypes[r],o.resolve(e))return!0;return!1}i(DL,"testImplicitResolving");function Gm(t){return t===uL||t===aL}i(Gm,"isWhitespace");function rs(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==65279||65536<=t&&t<=1114111}i(rs,"isPrintable");function CL(t){return rs(t)&&!Gm(t)&&t!==65279&&t!==lL&&t!==Ta}i(CL,"isNsChar");function Jk(t,e){return rs(t)&&t!==65279&&t!==Hk&&t!==$k&&t!==Uk&&t!==qk&&t!==Yk&&t!==Wk&&(t!==jk||e&&CL(e))}i(Jk,"isPlainSafe");function OL(t){return rs(t)&&t!==65279&&!Gm(t)&&t!==gL&&t!==wL&&t!==Wk&&t!==Hk&&t!==$k&&t!==Uk&&t!==qk&&t!==Yk&&t!==jk&&t!==hL&&t!==dL&&t!==cL&&t!==SL&&t!==xL&&t!==yL&&t!==mL&&t!==fL&&t!==pL&&t!==bL&&t!==vL}i(OL,"isPlainSafeFirst");function Qk(t){var e=/^\n* /;return e.test(t)}i(Qk,"needIndentIndicator");var Kk=1,Xk=2,Zk=3,e1=4,Tf=5;function ML(t,e,r,n,o){var s,a,l,u=!1,c=!1,f=n!==-1,p=-1,h=OL(t.charCodeAt(0))&&!Gm(t.charCodeAt(t.length-1));if(e)for(s=0;s<t.length;s++){if(a=t.charCodeAt(s),!rs(a))return Tf;l=s>0?t.charCodeAt(s-1):null,h=h&&Jk(a,l)}else{for(s=0;s<t.length;s++){if(a=t.charCodeAt(s),a===Ta)u=!0,f&&(c=c||s-p-1>n&&t[p+1]!==" ",p=s);else if(!rs(a))return Tf;l=s>0?t.charCodeAt(s-1):null,h=h&&Jk(a,l)}c=c||f&&s-p-1>n&&t[p+1]!==" "}return!u&&!c?h&&!o(t)?Kk:Xk:r>9&&Qk(t)?Tf:c?e1:Zk}i(ML,"chooseScalarStyle");function IL(t,e,r,n){t.dump=(function(){if(e.length===0)return"''";if(!t.noCompatMode&&kL.indexOf(e)!==-1)return"'"+e+"'";var o=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),a=n||t.flowLevel>-1&&r>=t.flowLevel;function l(u){return DL(t,u)}switch(i(l,"testAmbiguity"),ML(e,a,t.indent,s,l)){case Kk:return e;case Xk:return"'"+e.replace(/'/g,"''")+"'";case Zk:return"|"+t1(e,t.indent)+r1(Gk(e,o));case e1:return">"+t1(e,t.indent)+r1(Gk(_L(e,s),o));case Tf:return'"'+PL(e,s)+'"';default:throw new ka("impossible error: invalid scalar style")}})()}i(IL,"writeScalar");function t1(t,e){var r=Qk(t)?String(e):"",n=t[t.length-1]===`
19
19
  `,o=n&&(t[t.length-2]===`
20
20
  `||t===`
21
21
  `),s=o?"+":n?"":"-";return r+s+`
22
22
  `}i(t1,"blockHeader");function r1(t){return t[t.length-1]===`
23
- `?t.slice(0,-1):t}i(r1,"dropEndingNewline");function IL(t,e){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=t.indexOf(`
23
+ `?t.slice(0,-1):t}i(r1,"dropEndingNewline");function _L(t,e){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=t.indexOf(`
24
24
  `);return c=c!==-1?c:t.length,r.lastIndex=c,n1(t.slice(0,c),e)})(),o=t[0]===`
25
25
  `||t[0]===" ",s,a;a=r.exec(t);){var l=a[1],u=a[2];s=u[0]===" ",n+=l+(!o&&!s&&u!==""?`
26
- `:"")+n1(u,e),o=s}return n}i(IL,"foldString");function n1(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,o=0,s,a=0,l=0,u="";n=r.exec(t);)l=n.index,l-o>e&&(s=a>o?a:l,u+=`
26
+ `:"")+n1(u,e),o=s}return n}i(_L,"foldString");function n1(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,o=0,s,a=0,l=0,u="";n=r.exec(t);)l=n.index,l-o>e&&(s=a>o?a:l,u+=`
27
27
  `+t.slice(o,s),o=s+1),a=l;return u+=`
28
28
  `,t.length-o>e&&a>o?u+=t.slice(o,a)+`
29
- `+t.slice(a+1):u+=t.slice(o),u.slice(1)}i(n1,"foldLine");function _L(t){for(var e="",r,n,o,s=0;s<t.length;s++){if(r=t.charCodeAt(s),r>=55296&&r<=56319&&(n=t.charCodeAt(s+1),n>=56320&&n<=57343)){e+=Vk((r-55296)*1024+n-56320+65536),s++;continue}o=wt[r],e+=!o&&rs(r)?t[s]:o||Vk(r)}return e}i(_L,"escapeString");function PL(t,e,r){var n="",o=t.tag,s,a;for(s=0,a=r.length;s<a;s+=1)vi(t,e,r[s],!1,!1)&&(s!==0&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=o,t.dump="["+n+"]"}i(PL,"writeFlowSequence");function NL(t,e,r,n){var o="",s=t.tag,a,l;for(a=0,l=r.length;a<l;a+=1)vi(t,e+1,r[a],!0,!0)&&((!n||a!==0)&&(o+=Vm(t,e)),t.dump&&Ta===t.dump.charCodeAt(0)?o+="-":o+="- ",o+=t.dump);t.tag=s,t.dump=o||"[]"}i(NL,"writeBlockSequence");function AL(t,e,r){var n="",o=t.tag,s=Object.keys(r),a,l,u,c,f;for(a=0,l=s.length;a<l;a+=1)f="",a!==0&&(f+=", "),t.condenseFlow&&(f+='"'),u=s[a],c=r[u],vi(t,e,u,!1,!1)&&(t.dump.length>1024&&(f+="? "),f+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),vi(t,e,c,!1,!1)&&(f+=t.dump,n+=f));t.tag=o,t.dump="{"+n+"}"}i(AL,"writeFlowMapping");function RL(t,e,r,n){var o="",s=t.tag,a=Object.keys(r),l,u,c,f,p,h;if(t.sortKeys===!0)a.sort();else if(typeof t.sortKeys=="function")a.sort(t.sortKeys);else if(t.sortKeys)throw new ka("sortKeys must be a boolean or a function");for(l=0,u=a.length;l<u;l+=1)h="",(!n||l!==0)&&(h+=Vm(t,e)),c=a[l],f=r[c],vi(t,e+1,c,!0,!0,!0)&&(p=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,p&&(t.dump&&Ta===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,p&&(h+=Vm(t,e)),vi(t,e+1,f,!0,p)&&(t.dump&&Ta===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,o+=h));t.tag=s,t.dump=o||"{}"}i(RL,"writeBlockMapping");function i1(t,e,r){var n,o,s,a,l,u;for(o=r?t.explicitTypes:t.implicitTypes,s=0,a=o.length;s<a;s+=1)if(l=o[s],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof e=="object"&&e instanceof l.instanceOf)&&(!l.predicate||l.predicate(e))){if(t.tag=r?l.tag:"?",l.represent){if(u=t.styleMap[l.tag]||l.defaultStyle,Bk.call(l.represent)==="[object Function]")n=l.represent(e,u);else if(zk.call(l.represent,u))n=l.represent[u](e,u);else throw new ka("!<"+l.tag+'> tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}i(i1,"detectType");function vi(t,e,r,n,o,s){t.tag=null,t.dump=r,i1(t,r,!1)||i1(t,r,!0);var a=Bk.call(t.dump);n&&(n=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",u,c;if(l&&(u=t.duplicates.indexOf(r),c=u!==-1),(t.tag!==null&&t.tag!=="?"||c||t.indent!==2&&e>0)&&(o=!1),c&&t.usedDuplicates[u])t.dump="*ref_"+u;else{if(l&&c&&!t.usedDuplicates[u]&&(t.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(t.dump).length!==0?(RL(t,e,t.dump,o),c&&(t.dump="&ref_"+u+t.dump)):(AL(t,e,t.dump),c&&(t.dump="&ref_"+u+" "+t.dump));else if(a==="[object Array]"){var f=t.noArrayIndent&&e>0?e-1:e;n&&t.dump.length!==0?(NL(t,f,t.dump,o),c&&(t.dump="&ref_"+u+t.dump)):(PL(t,f,t.dump),c&&(t.dump="&ref_"+u+" "+t.dump))}else if(a==="[object String]")t.tag!=="?"&&ML(t,t.dump,e,s);else{if(t.skipInvalid)return!1;throw new ka("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}i(vi,"writeNode");function FL(t,e){var r=[],n=[],o,s;for(Jm(t,r,n),o=0,s=n.length;o<s;o+=1)e.duplicates.push(r[n[o]]);e.usedDuplicates=new Array(s)}i(FL,"getDuplicateReferences");function Jm(t,e,r){var n,o,s;if(t!==null&&typeof t=="object")if(o=e.indexOf(t),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(e.push(t),Array.isArray(t))for(o=0,s=t.length;o<s;o+=1)Jm(t[o],e,r);else for(n=Object.keys(t),o=0,s=n.length;o<s;o+=1)Jm(t[n[o]],e,r)}i(Jm,"inspectNode");function o1(t,e){e=e||{};var r=new TL(e);return r.noRefs||FL(t,r),vi(r,0,t,!0,!0)?r.dump+`
30
- `:""}i(o1,"dump");function LL(t,e){return o1(t,Sa.extend({schema:oL},e))}i(LL,"safeDump"),Qm.exports.dump=o1,Qm.exports.safeDump=LL});var l1=se((ANe,ze)=>{"use strict";var Ef=Lk(),a1=s1();function Df(t){return function(){throw new Error("Function "+t+" is deprecated and cannot be used.")}}i(Df,"deprecated"),ze.exports.Type=Xe(),ze.exports.Schema=xi(),ze.exports.FAILSAFE_SCHEMA=yf(),ze.exports.JSON_SCHEMA=Hm(),ze.exports.CORE_SCHEMA=Wm(),ze.exports.DEFAULT_SAFE_SCHEMA=Xo(),ze.exports.DEFAULT_FULL_SCHEMA=ba(),ze.exports.load=Ef.load,ze.exports.loadAll=Ef.loadAll,ze.exports.safeLoad=Ef.safeLoad,ze.exports.safeLoadAll=Ef.safeLoadAll,ze.exports.dump=a1.dump,ze.exports.safeDump=a1.safeDump,ze.exports.YAMLException=Qo(),ze.exports.MINIMAL_SCHEMA=yf(),ze.exports.SAFE_SCHEMA=Xo(),ze.exports.DEFAULT_SCHEMA=ba(),ze.exports.scan=Df("scan"),ze.exports.parse=Df("parse"),ze.exports.compose=Df("compose"),ze.exports.addConstructor=Df("addConstructor")});var c1=se((FNe,u1)=>{"use strict";var BL=l1();u1.exports=BL});var f1=se(Ar=>{"use strict";var zL=Ar&&Ar.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:i(function(){return e[r]},"get")})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),jL=Ar&&Ar.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),HL=Ar&&Ar.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&zL(e,t,r);return jL(e,t),e};Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.jsYaml=void 0;var WL=HL(c1());Ar.jsYaml=WL});var h1=se(Zt=>{"use strict";var $L=Zt&&Zt.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:i(function(){return e[r]},"get")})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),UL=Zt&&Zt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qL=Zt&&Zt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&$L(e,t,r);return UL(e,t),e};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.objectToYamlString=Zt.yamlStringToObject=void 0;var p1=qL(f1());Zt.yamlStringToObject=async(t,e={})=>p1.jsYaml.safeLoad(t),Zt.objectToYamlString=async(t,e={})=>p1.jsYaml.safeDump(t)});var S1=se(($Ne,v1)=>{"use strict";var Cf=Object.prototype.hasOwnProperty,m1=Object.prototype.toString,d1=Object.defineProperty,g1=Object.getOwnPropertyDescriptor,x1=i(function(e){return typeof Array.isArray=="function"?Array.isArray(e):m1.call(e)==="[object Array]"},"isArray"),y1=i(function(e){if(!e||m1.call(e)!=="[object Object]")return!1;var r=Cf.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Cf.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;var o;for(o in e);return typeof o>"u"||Cf.call(e,o)},"isPlainObject"),w1=i(function(e,r){d1&&r.name==="__proto__"?d1(e,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):e[r.name]=r.newValue},"setProperty"),b1=i(function(e,r){if(r==="__proto__")if(Cf.call(e,r)){if(g1)return g1(e,r).value}else return;return e[r]},"getProperty");v1.exports=i(function t(){var e,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(e=arguments[u],e!=null)for(r in e)n=b1(l,r),o=b1(e,r),l!==o&&(f&&o&&(y1(o)||(s=x1(o)))?(s?(s=!1,a=n&&x1(n)?n:[]):a=n&&y1(n)?n:{},w1(l,{name:r,newValue:t(f,a,o)})):typeof o<"u"&&w1(l,{name:r,newValue:o}));return l},"extend")});var oE=se((cUe,hg)=>{(function(){var t;typeof hg<"u"?t=hg.exports=n:t=(function(){return this||(0,eval)("this")})(),t.format=n,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=e);function e(){console.log(n.apply(null,arguments))}i(e,"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"),w=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=w(),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 UD=se(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0}),fr.PathError=fr.TokenData=void 0,fr.parse=ex,fr.compile=xW,fr.match=wW,fr.pathToRegexp=jD,fr.stringify=vW;var Xg="/",Zg=i(t=>t,"NOOP_VALUE"),hW=/^[$_\p{ID_Start}]$/u,BD=/^[$\u200c\u200d\p{ID_Continue}]$/u,mW=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u,dW="{}()[]+?!";function gW(t){return t.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}i(gW,"escapeText");function Ln(t){return t.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}i(Ln,"escape");var Tp=class{static{i(this,"TokenData")}constructor(e,r){this.tokens=e,this.originalPath=r}};fr.TokenData=Tp;var Bn=class extends TypeError{static{i(this,"PathError")}constructor(e,r){let n=e;r&&(n+=`: ${r}`),n+="; visit https://git.new/pathToRegexpError for info",super(n),this.originalPath=r}};fr.PathError=Bn;function ex(t,e={}){let{encodePath:r=Zg}=e,n=[...t],o=[],s=0,a=0;function l(){let c="";if(hW.test(n[s]))do c+=n[s++];while(BD.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}`,t)}if(!c)throw new Bn(`Missing parameter name at index ${s}`,t);return c}for(i(l,"name");s<n.length;){let c=n[s++];dW.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}`,t)}return f}return i(u,"consumeUntil"),new Tp(u("end"),t)}i(ex,"parse");function xW(t,e={}){let{encode:r=encodeURIComponent,delimiter:n=Xg}=e,o=typeof t=="object"?t:ex(t,e),s=zD(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(xW,"compile");function zD(t,e,r){let n=t.map(o=>yW(o,e,r));return o=>{let s=[""];for(let a of n){let[l,...u]=a(o);s[0]+=l,s.push(...u)}return s}}i(zD,"tokensToFunction");function yW(t,e,r){if(t.type==="text")return()=>[t.value];if(t.type==="group"){let o=zD(t.tokens,e,r);return s=>{let[a,...l]=o(s);return l.length?[""]:[a]}}let n=r||Zg;return t.type==="wildcard"&&r!==!1?o=>{let s=o[t.name];if(s==null)return["",t.name];if(!Array.isArray(s)||s.length===0)throw new TypeError(`Expected "${t.name}" to be a non-empty array`);return[s.map((a,l)=>{if(typeof a!="string")throw new TypeError(`Expected "${t.name}/${l}" to be a string`);return n(a)}).join(e)]}:o=>{let s=o[t.name];if(s==null)return["",t.name];if(typeof s!="string")throw new TypeError(`Expected "${t.name}" to be a string`);return[n(s)]}}i(yW,"tokenToFunction");function wW(t,e={}){let{decode:r=decodeURIComponent,delimiter:n=Xg}=e,{regexp:o,keys:s}=jD(t,e),a=s.map(l=>r===!1?Zg: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(wW,"match");function jD(t,e={}){let{delimiter:r=Xg,end:n=!0,sensitive:o=!1,trailing:s=!0}=e,a=new tx("^"),l=[t],u=0;for(;l.length;){let p=l.shift();if(Array.isArray(p)){l.push(...p);continue}let h=typeof p=="object"?p:ex(p,e);rx(h.tokens,0,[],m=>{if(u++>=256)throw new Bn("Too many path combinations",h.originalPath);let d=a;for(let g of bW(m,r,h.originalPath))d=d.add(g.source,g.key);d.add("")})}let c=[],f=HD(a,c);return s&&(f+="(?:"+Ln(r)+"$)?"),f+=n?"$":"(?="+Ln(r)+"|$)",{regexp:new RegExp(f,o?"":"i"),keys:c}}i(jD,"pathToRegexp");function HD(t,e){t.key&&e.push(t.key);let r=Object.keys(t.children),n=r.map(o=>HD(t.children[o],e)).join("|");return t.source+(r.length<2?n:`(?:${n})`)}i(HD,"toRegExp");var tx=class t{static{i(this,"SourceNode")}constructor(e,r){this.source=e,this.key=r,this.children=Object.create(null)}add(e,r){var n;let o=e+":"+(r?r.name:"");return(n=this.children)[o]||(n[o]=new t(e,r))}};function rx(t,e,r,n){for(;e<t.length;){let o=t[e++];if(o.type==="group"){rx(o.tokens,0,r.slice(),s=>rx(t,e,s,n));continue}r.push(o)}n(r)}i(rx,"flatten");function bW(t,e,r){let n=[],o="",s="",a=0,l=0,u=0;function c(p,h){for(;p<t.length;){let m=t[p++];if(m.type===h)return!0;if(m.type==="text"&&m.value.includes(e))break}return!1}i(c,"hasInSegment");function f(p){let h="";for(;p<t.length;){let m=t[p++];if(m.type!=="text")break;h+=m.value}return h}for(i(f,"peekText");u<t.length;){let p=t[u++];if(p.type==="text"){n.push({source:Ln(p.value)}),o+=p.value,a===2&&(s+=p.value),p.value.includes(e)&&(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(e,o)}+?)`:c(u,"wildcard")?`(${zn(e,f(u))}+?)`:`(${zn(e,"")}+?)`,key:p}),l|=a=1):(n.push({source:l&2?`(${zn(o,"")}+?)`:l&1?`(${zn(s,"")}+?)`:s?`(${zn(s,"")}+?|${zn(e,"")}+?)`:"([^]+?)",key:p}),s="",l|=a=2),o="";continue}throw new TypeError(`Unknown token type: ${p.type}`)}return n}i(bW,"toRegExpSource");function zn(t,e){return e.length>t.length?zn(e,t):(t===e&&(e=""),e.length>1?`(?:(?!${Ln(t)}|${Ln(e)})[^])`:t.length>1?`(?:(?!${Ln(t)})[^${Ln(e)}])`:`[^${Ln(t+e)}]`)}i(zn,"negate");function WD(t,e){let r="";for(;e<t.length;){let n=t[e++];if(n.type==="text"){r+=gW(n.value);continue}if(n.type==="group"){r+="{"+WD(n.tokens,0)+"}";continue}if(n.type==="param"){r+=":"+$D(n.name,t[e]);continue}if(n.type==="wildcard"){r+="*"+$D(n.name,t[e]);continue}throw new TypeError(`Unknown token type: ${n.type}`)}return r}i(WD,"stringifyTokens");function vW(t){return WD(t.tokens,0)}i(vW,"stringify");function $D(t,e){return!mW.test(t)||e?.type==="text"&&BD.test(e.value[0])?JSON.stringify(t):t}i($D,"stringifyName")});var PC=se((el,Ts)=>{var TW=200,qD="__lodash_hash_undefined__",YD=9007199254740991,sx="[object Arguments]",EW="[object Array]",VD="[object Boolean]",GD="[object Date]",DW="[object Error]",ax="[object Function]",JD="[object GeneratorFunction]",Dp="[object Map]",QD="[object Number]",lx="[object Object]",KD="[object Promise]",XD="[object RegExp]",Cp="[object Set]",ZD="[object String]",eC="[object Symbol]",ux="[object WeakMap]",tC="[object ArrayBuffer]",Op="[object DataView]",rC="[object Float32Array]",nC="[object Float64Array]",iC="[object Int8Array]",oC="[object Int16Array]",sC="[object Int32Array]",aC="[object Uint8Array]",lC="[object Uint8ClampedArray]",uC="[object Uint16Array]",cC="[object Uint32Array]",CW=/[\\^$.*+?()[\]{}|]/g,OW=/\w*$/,MW=/^\[object .+?Constructor\]$/,IW=/^(?:0|[1-9]\d*)$/,Ne={};Ne[sx]=Ne[EW]=Ne[tC]=Ne[Op]=Ne[VD]=Ne[GD]=Ne[rC]=Ne[nC]=Ne[iC]=Ne[oC]=Ne[sC]=Ne[Dp]=Ne[QD]=Ne[lx]=Ne[XD]=Ne[Cp]=Ne[ZD]=Ne[eC]=Ne[aC]=Ne[lC]=Ne[uC]=Ne[cC]=!0,Ne[DW]=Ne[ax]=Ne[ux]=!1;var _W=typeof global=="object"&&global&&global.Object===Object&&global,PW=typeof self=="object"&&self&&self.Object===Object&&self,en=_W||PW||Function("return this")(),fC=typeof el=="object"&&el&&!el.nodeType&&el,pC=fC&&typeof Ts=="object"&&Ts&&!Ts.nodeType&&Ts,NW=pC&&pC.exports===fC;function AW(t,e){return t.set(e[0],e[1]),t}i(AW,"addMapEntry");function RW(t,e){return t.add(e),t}i(RW,"addSetEntry");function FW(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}i(FW,"arrayEach");function LW(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}i(LW,"arrayPush");function hC(t,e,r,n){var o=-1,s=t?t.length:0;for(n&&s&&(r=t[++o]);++o<s;)r=e(r,t[o],o,t);return r}i(hC,"arrayReduce");function BW(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}i(BW,"baseTimes");function zW(t,e){return t?.[e]}i(zW,"getValue");function mC(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}i(mC,"isHostObject");function dC(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}i(dC,"mapToArray");function cx(t,e){return function(r){return t(e(r))}}i(cx,"overArg");function gC(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}i(gC,"setToArray");var jW=Array.prototype,HW=Function.prototype,Mp=Object.prototype,fx=en["__core-js_shared__"],xC=(function(){var t=/[^.]+$/.exec(fx&&fx.keys&&fx.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),yC=HW.toString,jn=Mp.hasOwnProperty,Ip=Mp.toString,WW=RegExp("^"+yC.call(jn).replace(CW,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wC=NW?en.Buffer:void 0,bC=en.Symbol,vC=en.Uint8Array,$W=cx(Object.getPrototypeOf,Object),UW=Object.create,qW=Mp.propertyIsEnumerable,YW=jW.splice,SC=Object.getOwnPropertySymbols,VW=wC?wC.isBuffer:void 0,GW=cx(Object.keys,Object),px=ks(en,"DataView"),Xa=ks(en,"Map"),hx=ks(en,"Promise"),mx=ks(en,"Set"),dx=ks(en,"WeakMap"),Za=ks(Object,"create"),JW=ji(px),QW=ji(Xa),KW=ji(hx),XW=ji(mx),ZW=ji(dx),kC=bC?bC.prototype:void 0,TC=kC?kC.valueOf:void 0;function Bi(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}i(Bi,"Hash");function e$(){this.__data__=Za?Za(null):{}}i(e$,"hashClear");function t$(t){return this.has(t)&&delete this.__data__[t]}i(t$,"hashDelete");function r$(t){var e=this.__data__;if(Za){var r=e[t];return r===qD?void 0:r}return jn.call(e,t)?e[t]:void 0}i(r$,"hashGet");function n$(t){var e=this.__data__;return Za?e[t]!==void 0:jn.call(e,t)}i(n$,"hashHas");function i$(t,e){var r=this.__data__;return r[t]=Za&&e===void 0?qD:e,this}i(i$,"hashSet"),Bi.prototype.clear=e$,Bi.prototype.delete=t$,Bi.prototype.get=r$,Bi.prototype.has=n$,Bi.prototype.set=i$;function tn(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}i(tn,"ListCache");function o$(){this.__data__=[]}i(o$,"listCacheClear");function s$(t){var e=this.__data__,r=_p(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():YW.call(e,r,1),!0}i(s$,"listCacheDelete");function a$(t){var e=this.__data__,r=_p(e,t);return r<0?void 0:e[r][1]}i(a$,"listCacheGet");function l$(t){return _p(this.__data__,t)>-1}i(l$,"listCacheHas");function u$(t,e){var r=this.__data__,n=_p(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}i(u$,"listCacheSet"),tn.prototype.clear=o$,tn.prototype.delete=s$,tn.prototype.get=a$,tn.prototype.has=l$,tn.prototype.set=u$;function vs(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}i(vs,"MapCache");function c$(){this.__data__={hash:new Bi,map:new(Xa||tn),string:new Bi}}i(c$,"mapCacheClear");function f$(t){return Pp(this,t).delete(t)}i(f$,"mapCacheDelete");function p$(t){return Pp(this,t).get(t)}i(p$,"mapCacheGet");function h$(t){return Pp(this,t).has(t)}i(h$,"mapCacheHas");function m$(t,e){return Pp(this,t).set(t,e),this}i(m$,"mapCacheSet"),vs.prototype.clear=c$,vs.prototype.delete=f$,vs.prototype.get=p$,vs.prototype.has=h$,vs.prototype.set=m$;function Ss(t){this.__data__=new tn(t)}i(Ss,"Stack");function d$(){this.__data__=new tn}i(d$,"stackClear");function g$(t){return this.__data__.delete(t)}i(g$,"stackDelete");function x$(t){return this.__data__.get(t)}i(x$,"stackGet");function y$(t){return this.__data__.has(t)}i(y$,"stackHas");function w$(t,e){var r=this.__data__;if(r instanceof tn){var n=r.__data__;if(!Xa||n.length<TW-1)return n.push([t,e]),this;r=this.__data__=new vs(n)}return r.set(t,e),this}i(w$,"stackSet"),Ss.prototype.clear=d$,Ss.prototype.delete=g$,Ss.prototype.get=x$,Ss.prototype.has=y$,Ss.prototype.set=w$;function b$(t,e){var r=yx(t)||U$(t)?BW(t.length,String):[],n=r.length,o=!!n;for(var s in t)(e||jn.call(t,s))&&!(o&&(s=="length"||j$(s,n)))&&r.push(s);return r}i(b$,"arrayLikeKeys");function EC(t,e,r){var n=t[e];(!(jn.call(t,e)&&MC(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}i(EC,"assignValue");function _p(t,e){for(var r=t.length;r--;)if(MC(t[r][0],e))return r;return-1}i(_p,"assocIndexOf");function v$(t,e){return t&&DC(e,wx(e),t)}i(v$,"baseAssign");function gx(t,e,r,n,o,s,a){var l;if(n&&(l=s?n(t,o,s,a):n(t)),l!==void 0)return l;if(!Np(t))return t;var u=yx(t);if(u){if(l=L$(t),!e)return A$(t,l)}else{var c=zi(t),f=c==ax||c==JD;if(Y$(t))return C$(t,e);if(c==lx||c==sx||f&&!s){if(mC(t))return s?t:{};if(l=B$(f?{}:t),!e)return R$(t,v$(l,t))}else{if(!Ne[c])return s?t:{};l=z$(t,c,gx,e)}}a||(a=new Ss);var p=a.get(t);if(p)return p;if(a.set(t,l),!u)var h=r?F$(t):wx(t);return FW(h||t,function(m,d){h&&(d=m,m=t[d]),EC(l,d,gx(m,e,r,n,d,t,a))}),l}i(gx,"baseClone");function S$(t){return Np(t)?UW(t):{}}i(S$,"baseCreate");function k$(t,e,r){var n=e(t);return yx(t)?n:LW(n,r(t))}i(k$,"baseGetAllKeys");function T$(t){return Ip.call(t)}i(T$,"baseGetTag");function E$(t){if(!Np(t)||W$(t))return!1;var e=_C(t)||mC(t)?WW:MW;return e.test(ji(t))}i(E$,"baseIsNative");function D$(t){if(!OC(t))return GW(t);var e=[];for(var r in Object(t))jn.call(t,r)&&r!="constructor"&&e.push(r);return e}i(D$,"baseKeys");function C$(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}i(C$,"cloneBuffer");function xx(t){var e=new t.constructor(t.byteLength);return new vC(e).set(new vC(t)),e}i(xx,"cloneArrayBuffer");function O$(t,e){var r=e?xx(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}i(O$,"cloneDataView");function M$(t,e,r){var n=e?r(dC(t),!0):dC(t);return hC(n,AW,new t.constructor)}i(M$,"cloneMap");function I$(t){var e=new t.constructor(t.source,OW.exec(t));return e.lastIndex=t.lastIndex,e}i(I$,"cloneRegExp");function _$(t,e,r){var n=e?r(gC(t),!0):gC(t);return hC(n,RW,new t.constructor)}i(_$,"cloneSet");function P$(t){return TC?Object(TC.call(t)):{}}i(P$,"cloneSymbol");function N$(t,e){var r=e?xx(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}i(N$,"cloneTypedArray");function A$(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}i(A$,"copyArray");function DC(t,e,r,n){r||(r={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=n?n(r[a],t[a],a,r,t):void 0;EC(r,a,l===void 0?t[a]:l)}return r}i(DC,"copyObject");function R$(t,e){return DC(t,CC(t),e)}i(R$,"copySymbols");function F$(t){return k$(t,wx,CC)}i(F$,"getAllKeys");function Pp(t,e){var r=t.__data__;return H$(e)?r[typeof e=="string"?"string":"hash"]:r.map}i(Pp,"getMapData");function ks(t,e){var r=zW(t,e);return E$(r)?r:void 0}i(ks,"getNative");var CC=SC?cx(SC,Object):J$,zi=T$;(px&&zi(new px(new ArrayBuffer(1)))!=Op||Xa&&zi(new Xa)!=Dp||hx&&zi(hx.resolve())!=KD||mx&&zi(new mx)!=Cp||dx&&zi(new dx)!=ux)&&(zi=i(function(t){var e=Ip.call(t),r=e==lx?t.constructor:void 0,n=r?ji(r):void 0;if(n)switch(n){case JW:return Op;case QW:return Dp;case KW:return KD;case XW:return Cp;case ZW:return ux}return e},"getTag"));function L$(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&jn.call(t,"index")&&(r.index=t.index,r.input=t.input),r}i(L$,"initCloneArray");function B$(t){return typeof t.constructor=="function"&&!OC(t)?S$($W(t)):{}}i(B$,"initCloneObject");function z$(t,e,r,n){var o=t.constructor;switch(e){case tC:return xx(t);case VD:case GD:return new o(+t);case Op:return O$(t,n);case rC:case nC:case iC:case oC:case sC:case aC:case lC:case uC:case cC:return N$(t,n);case Dp:return M$(t,n,r);case QD:case ZD:return new o(t);case XD:return I$(t);case Cp:return _$(t,n,r);case eC:return P$(t)}}i(z$,"initCloneByTag");function j$(t,e){return e=e??YD,!!e&&(typeof t=="number"||IW.test(t))&&t>-1&&t%1==0&&t<e}i(j$,"isIndex");function H$(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}i(H$,"isKeyable");function W$(t){return!!xC&&xC in t}i(W$,"isMasked");function OC(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Mp;return t===r}i(OC,"isPrototype");function ji(t){if(t!=null){try{return yC.call(t)}catch{}try{return t+""}catch{}}return""}i(ji,"toSource");function $$(t){return gx(t,!0,!0)}i($$,"cloneDeep");function MC(t,e){return t===e||t!==t&&e!==e}i(MC,"eq");function U$(t){return q$(t)&&jn.call(t,"callee")&&(!qW.call(t,"callee")||Ip.call(t)==sx)}i(U$,"isArguments");var yx=Array.isArray;function IC(t){return t!=null&&V$(t.length)&&!_C(t)}i(IC,"isArrayLike");function q$(t){return G$(t)&&IC(t)}i(q$,"isArrayLikeObject");var Y$=VW||Q$;function _C(t){var e=Np(t)?Ip.call(t):"";return e==ax||e==JD}i(_C,"isFunction");function V$(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=YD}i(V$,"isLength");function Np(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}i(Np,"isObject");function G$(t){return!!t&&typeof t=="object"}i(G$,"isObjectLike");function wx(t){return IC(t)?b$(t):D$(t)}i(wx,"keys");function J$(){return[]}i(J$,"stubArray");function Q$(){return!1}i(Q$,"stubFalse"),Ts.exports=$$});var VC=se((Ux,qx)=>{(function(t,e){typeof Ux=="object"&&typeof qx<"u"?qx.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.SweetScroll=e())})(Ux,function(){"use strict";var t=i(function(){return t=Object.assign||i(function(S){for(var C,M=1,R=arguments.length;M<R;M++){C=arguments[M];for(var ee in C)Object.prototype.hasOwnProperty.call(C,ee)&&(S[ee]=C[ee])}return S},"__assign"),t.apply(this,arguments)},"__assign"),e=!!(typeof window<"u"&&window.document&&window.document.createElement),r=e?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=(function(){var D=!1;if(!e)return D;try{var S=window,C=Object.defineProperty({},"passive",{get:i(function(){D=!0},"get")});S.addEventListener("test",null,C),S.removeEventListener("test",null,C)}catch{}return D})(),o=i(function(D){return typeof D=="string"},"isString"),s=i(function(D){return typeof D=="function"},"isFunction"),a=i(function(D){return Array.isArray(D)},"isArray"),l=i(function(D){return!a(D)&&D-parseFloat(D)+1>=0},"isNumeric"),u=i(function(D,S){return D&&D.hasOwnProperty(S)},"hasProp"),c=e?window.requestAnimationFrame.bind(window):null,f=e?window.cancelAnimationFrame.bind(window):null,p=Math.cos,h=Math.sin,m=Math.pow,d=Math.sqrt,g=Math.PI,x={linear:i(function(D){return D},"linear"),easeInQuad:i(function(D,S,C,M,R){return M*(S/=R)*S+C},"easeInQuad"),easeOutQuad:i(function(D,S,C,M,R){return-M*(S/=R)*(S-2)+C},"easeOutQuad"),easeInOutQuad:i(function(D,S,C,M,R){return(S/=R/2)<1?M/2*S*S+C:-M/2*(--S*(S-2)-1)+C},"easeInOutQuad"),easeInCubic:i(function(D,S,C,M,R){return M*(S/=R)*S*S+C},"easeInCubic"),easeOutCubic:i(function(D,S,C,M,R){return M*((S=S/R-1)*S*S+1)+C},"easeOutCubic"),easeInOutCubic:i(function(D,S,C,M,R){return(S/=R/2)<1?M/2*S*S*S+C:M/2*((S-=2)*S*S+2)+C},"easeInOutCubic"),easeInQuart:i(function(D,S,C,M,R){return M*(S/=R)*S*S*S+C},"easeInQuart"),easeOutQuart:i(function(D,S,C,M,R){return-M*((S=S/R-1)*S*S*S-1)+C},"easeOutQuart"),easeInOutQuart:i(function(D,S,C,M,R){return(S/=R/2)<1?M/2*S*S*S*S+C:-M/2*((S-=2)*S*S*S-2)+C},"easeInOutQuart"),easeInQuint:i(function(D,S,C,M,R){return M*(S/=R)*S*S*S*S+C},"easeInQuint"),easeOutQuint:i(function(D,S,C,M,R){return M*((S=S/R-1)*S*S*S*S+1)+C},"easeOutQuint"),easeInOutQuint:i(function(D,S,C,M,R){return(S/=R/2)<1?M/2*S*S*S*S*S+C:M/2*((S-=2)*S*S*S*S+2)+C},"easeInOutQuint"),easeInSine:i(function(D,S,C,M,R){return-M*p(S/R*(g/2))+M+C},"easeInSine"),easeOutSine:i(function(D,S,C,M,R){return M*h(S/R*(g/2))+C},"easeOutSine"),easeInOutSine:i(function(D,S,C,M,R){return-M/2*(p(g*S/R)-1)+C},"easeInOutSine"),easeInExpo:i(function(D,S,C,M,R){return S===0?C:M*m(2,10*(S/R-1))+C},"easeInExpo"),easeOutExpo:i(function(D,S,C,M,R){return S===R?C+M:M*(-m(2,-10*S/R)+1)+C},"easeOutExpo"),easeInOutExpo:i(function(D,S,C,M,R){return S===0?C:S===R?C+M:(S/=R/2)<1?M/2*m(2,10*(S-1))+C:M/2*(-m(2,-10*--S)+2)+C},"easeInOutExpo"),easeInCirc:i(function(D,S,C,M,R){return-M*(d(1-(S/=R)*S)-1)+C},"easeInCirc"),easeOutCirc:i(function(D,S,C,M,R){return M*d(1-(S=S/R-1)*S)+C},"easeOutCirc"),easeInOutCirc:i(function(D,S,C,M,R){return(S/=R/2)<1?-M/2*(d(1-S*S)-1)+C:M/2*(d(1-(S-=2)*S)+1)+C},"easeInOutCirc")},w=i(function(D){return Array.prototype.slice.call(D?document.querySelectorAll(D):[])},"$$"),T=i(function(D){return w(D).shift()||null},"$"),E=i(function(D){return D instanceof Element},"isElement"),q=i(function(D){return D===window},"isWindow"),H=i(function(D){return D===document.documentElement||D===document.body},"isRootContainer"),O=i(function(D,S){if(E(S))return D===S;for(var C=w(S),M=C.length;--M>=0&&C[M]!==D;);return M>-1},"matches"),j=i(function(D){return Math.max(D.scrollHeight,D.clientHeight,D.offsetHeight)},"getHeight"),X=i(function(D){return Math.max(D.scrollWidth,D.clientWidth,D.offsetWidth)},"getWidth"),Y=i(function(D){return{width:X(D),height:j(D)}},"getSize"),I=i(function(D){var S=q(D)||H(D);return{viewport:{width:S?Math.min(window.innerWidth,document.documentElement.clientWidth):D.clientWidth,height:S?window.innerHeight:D.clientHeight},size:S?{width:Math.max(X(document.body),X(document.documentElement)),height:Math.max(j(document.body),j(document.documentElement))}:Y(D)}},"getViewportAndElementSizes"),De={y:"scrollTop",x:"scrollLeft"},$={y:"pageYOffset",x:"pageXOffset"},_=i(function(D,S){return q(D)?D[$[S]]:D[De[S]]},"getScroll"),N=i(function(D,S,C){if(q(D)){var M=C==="y";D.scrollTo(M?D.pageXOffset:S,M?S:D.pageYOffset)}else D[De[C]]=S},"setScroll"),F=i(function(D,S){var C=D.getBoundingClientRect();if(C.width||C.height){var M={top:0,left:0},R=void 0;if(q(S)||H(S))R=document.documentElement,M.top=window[$.y],M.left=window[$.x];else{R=S;var ee=R.getBoundingClientRect();M.top=ee.top*-1+R[De.y],M.left=ee.left*-1+R[De.x]}return{top:C.top+M.top-R.clientTop,left:C.left+M.left-R.clientLeft}}return C},"getOffset"),B=(function(){return e?"onwheel"in document?"wheel":"mousewheel":"wheel"})(),V=i(function(D){return D==="wheel"?B:D},"eventName"),Q=i(function(D,S,C,M,R){C.split(" ").forEach(function(ee){D[S](V(ee),M,n?{passive:R}:!1)})},"apply"),ue=i(function(D,S,C,M){return Q(D,"addEventListener",S,C,M)},"addEvent"),b=i(function(D,S,C,M){return Q(D,"removeEventListener",S,C,M)},"removeEvent"),de=/^(\+|-)=(\d+(?:\.\d+)?)$/,be=i(function(D,S){var C={top:0,left:0,relative:!1};if(u(D,"top")||u(D,"left"))C=t({},C,D);else if(a(D))if(D.length>1)C.top=D[0],C.left=D[1];else if(D.length===1)C.top=S?D[0]:0,C.left=S?0:D[0];else return null;else if(l(D))S?C.top=D:C.left=D;else if(o(D)){var M=D.trim().match(de);if(!M)return null;var R=M[1],ee=parseInt(M[2],10);R==="+"?(C.top=S?ee:0,C.left=S?0:ee):(C.top=S?-ee:0,C.left=S?0:-ee),C.relative=!0}else return null;return C},"parseCoordinate"),k={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},Ae="click",$e="wheel touchstart touchmove",Lt=(function(){function D(S,C){var M=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(ee){var Pe=M,Ie=Pe.$el,ve=Pe.ctx;if(ve.start||(ve.start=ee),!ve.progress||!Ie){M.stop();return}var Ot=ve.opts,tt=ve.pos,St=ve.start,rr=ve.startPos,hr=ve.easing,Bt=Ot.duration,Yt={top:"y",left:"x"},Mt=ee-St,Le=Math.min(1,Math.max(Mt/Bt,0));Object.keys(tt).forEach(function(mr){var P=tt[mr],z=rr[mr],ie=P-z;if(ie!==0){var ce=hr(Le,Bt*Le,0,1,Bt);N(Ie,Math.round(z+ie*ce),Yt[mr])}}),Mt<=Bt?(M.hook(Ot,"step",Le),ve.id=D.raf(M.loop)):M.stop(!0)},this.handleClick=function(ee){for(var Pe=M.opts,Ie=ee.target;Ie&&Ie!==document;Ie=Ie.parentNode)if(O(Ie,Pe.trigger)){var ve=JSON.parse(Ie.getAttribute("data-scroll-options")||"{}"),Ot=Ie.getAttribute("data-scroll"),tt=Ot||Ie.getAttribute("href"),St=t({},Pe,ve),rr=St.preventDefault,hr=St.stopPropagation,Bt=St.vertical,Yt=St.horizontal;rr&&ee.preventDefault(),hr&&ee.stopPropagation(),M.ctx.$trigger=Ie,Yt&&Bt?M.to(tt,St):Bt?M.toTop(tt,St):Yt&&M.toLeft(tt,St);break}},this.handleStop=function(ee){var Pe=M.ctx,Ie=Pe.opts;Ie&&Ie.cancellable?(Pe.cancel=!0,M.stop()):ee.preventDefault()},this.opts=t({},k,S||{});var R=null;e&&(typeof C=="string"?R=T(C):C!=null?R=C:R=window),this.$el=R,R&&this.bind(!0,!1)}return i(D,"SweetScroll"),D.create=function(S,C){return new D(S,C)},D.prototype.to=function(S,C){if(e){var M=this,R=M.$el,ee=M.ctx,Pe=M.opts,Ie=ee.$trigger,ve=t({},Pe,C||{}),Ot=ve.offset,tt=ve.vertical,St=ve.horizontal,rr=E(ve.header)?ve.header:T(ve.header),hr=/^#/,Bt=o(S)&&hr.test(S)?S:null;if(ee.opts=ve,ee.cancel=!1,ee.hash=Bt,this.stop(),!!R){var Yt=be(Ot,tt),Mt=be(S,tt),Le={top:0,left:0};if(Mt)if(Mt.relative){var mr=_(R,tt?"y":"x");Le.top=tt?mr+Mt.top:Mt.top,Le.left=tt?Mt.left:mr+Mt.left}else Le=Mt;else if(o(S)&&S!=="#"){var P=T(S);if(!P)return;Le=F(P,R)}Yt&&(Le.top+=Yt.top,Le.left+=Yt.left),rr&&(Le.top=Math.max(0,Le.top-Y(rr).height));var z=I(R),ie=z.viewport,ce=z.size;if(Le.top=tt?Math.max(0,Math.min(ce.height-ie.height,Le.top)):_(R,"y"),Le.left=St?Math.max(0,Math.min(ce.width-ie.width,Le.left)):_(R,"x"),this.hook(ve,"before",Le,Ie)===!1){ee.opts=null;return}ee.pos=Le,this.start(ve),this.bind(!1,!0)}}},D.prototype.toTop=function(S,C){this.to(S,t({},C||{},{vertical:!0,horizontal:!1}))},D.prototype.toLeft=function(S,C){this.to(S,t({},C||{},{vertical:!1,horizontal:!0}))},D.prototype.toElement=function(S,C){var M=this.$el;!e||!M||this.to(F(S,M),C||{})},D.prototype.stop=function(S){S===void 0&&(S=!1);var C=this,M=C.$el,R=C.ctx,ee=R.pos;!M||!R.progress||(D.caf(R.id),R.progress=!1,R.start=0,R.id=0,S&&ee&&(N(M,ee.left,"x"),N(M,ee.top,"y")),this.complete())},D.prototype.update=function(S){if(this.$el){var C=t({},this.opts,S);this.stop(),this.unbind(!0,!0),this.opts=C,this.bind(!0,!1)}},D.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},D.prototype.onBefore=function(S,C){return!0},D.prototype.onStep=function(S){},D.prototype.onAfter=function(S,C){},D.prototype.onCancel=function(){},D.prototype.onComplete=function(S){},D.prototype.start=function(S){var C=this.ctx;C.opts=S,C.progress=!0,C.easing=s(S.easing)?S.easing:x[S.easing];var M=this.$el,R={top:_(M,"y"),left:_(M,"x")};C.startPos=R,C.id=D.raf(this.loop)},D.prototype.complete=function(){var S=this,C=S.$el,M=S.ctx,R=M.hash,ee=M.cancel,Pe=M.opts,Ie=M.pos,ve=M.$trigger;if(!(!C||!Pe)){if(R!=null&&R!==window.location.hash){var Ot=Pe.updateURL;e&&r&&Ot!==!1&&window.history[Ot==="replace"?"replaceState":"pushState"](null,"",R)}this.unbind(!1,!0),M.opts=null,M.$trigger=null,ee?this.hook(Pe,"cancel"):this.hook(Pe,"after",Ie,ve),this.hook(Pe,"complete",ee)}},D.prototype.hook=function(S,C){for(var M=[],R=2;R<arguments.length;R++)M[R-2]=arguments[R];var ee,Pe=S[C],Ie,ve;return s(Pe)&&(Ie=Pe.apply(this,M.concat([this]))),ve=(ee=this)["on"+(C[0].toUpperCase()+C.slice(1))].apply(ee,M),Ie!==void 0?Ie:ve},D.prototype.bind=function(S,C){var M=this,R=M.$el,ee=M.ctx.opts;R&&(S&&ue(R,Ae,this.handleClick,!1),C&&ue(R,$e,this.handleStop,ee?ee.cancellable:!0))},D.prototype.unbind=function(S,C){var M=this,R=M.$el,ee=M.ctx.opts;R&&(S&&b(R,Ae,this.handleClick,!1),C&&b(R,$e,this.handleStop,ee?ee.cancellable:!0))},D.raf=c,D.caf=f,D})();return Lt})});var iy={};ae(iy,{setup:()=>hq,staticStyles:()=>fq,styles:()=>pq});var ya={};ae(ya,{DeesComms:()=>Bm});var ge={};ae(ge,{Timeout:()=>wl,delayFor:()=>py,delayForRandom:()=>AO});var re={};ae(re,{CumulativeDeferred:()=>yl,Deferred:()=>xl,cumulativeDefer:()=>CO,defer:()=>on,fromCallback:()=>NO,getFirstTrueOrFalse:()=>PO,map:()=>IO,rejectedPromise:()=>MO,resolvedPromise:()=>OO,timeoutAndContinue:()=>_O,timeoutWrap:()=>fy});var xl=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((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},on=i(()=>new xl,"defer");var yl=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 e=on();return this.addPromise(e.promise),e}addPromise(e){this.accumulatedPromises.push(e)}},CO=i(()=>new yl,"cumulativeDefer");function OO(t){return Promise.resolve(t)}i(OO,"resolvedPromise");var MO=i(t=>Promise.reject(t),"rejectedPromise"),IO=i(async(t,e)=>Promise.all(t.map(e)),"map"),fy=i(async(t,e,r=!0)=>new Promise((n,o)=>{let s,a=i(()=>{s!==void 0&&(clearTimeout(s),s=void 0)},"releaseTimeout");s=setTimeout(()=>{s=void 0,r?o(new Error("timeout")):n(null)},e),t.then(l=>{a(),n(l)},l=>{a(),o(l)})}),"timeoutWrap"),_O=i(async(t,e=6e4)=>fy(t,e,!1),"timeoutAndContinue"),PO=i(async t=>{let e=on();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise},"getFirstTrueOrFalse"),NO=i(t=>new Promise((e,r)=>{t((n,o)=>{n?r(n):e(o)})}),"fromCallback");var py=i(async(t,e,r=!1)=>(await new wl(t,null,r).promise,e),"delayFor"),AO=i(async(t,e,r,n=!1)=>(await py(Math.random()*(e-t)+t,null,n),r),"delayForRandom"),wl=class{static{i(this,"Timeout")}constructor(e,r,n=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=on(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},e),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref?.()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}};var bl={};var At={};ae(At,{TYPED_REQUEST_REDACTED_PAYLOAD:()=>qo,TypedHandler:()=>Om,TypedRequest:()=>mf,TypedRequestRetryLimitError:()=>hf,TypedRequestTimeoutError:()=>pf,TypedResponseError:()=>Xt,TypedRouter:()=>Mm,TypedTarget:()=>Im,VirtualStream:()=>lr,VirtualStreamActivationScope:()=>Yr,VirtualStreamClosedError:()=>fi,VirtualStreamLifecycleContractError:()=>rf,VirtualStreamOpenTimeoutError:()=>pi,getTypedRequestResponseInterestKey:()=>uf});var xt={};ae(xt,{AsyncExecutionStack:()=>Zh,BackpressuredArray:()=>em,FastMap:()=>ai,Interest:()=>ra,InterestMap:()=>tm,LimitedArray:()=>rm,LoopTracker:()=>nm,ObjectMap:()=>Ur,Stringmap:()=>na,TimedAggregator:()=>ia,TimedAggregtor:()=>ia,Tree:()=>im,uni:()=>av});var Ps={};ae(Ps,{SmartMatch:()=>ah});var _s={};ae(_s,{isMatch:()=>BO,matcher:()=>LO});function Yn(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}i(Yn,"escapeStringRegexp");var sh=new Map,hy=i((t,e)=>{if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},"sanitizeArray"),FO=i((t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(sh.has(r))return sh.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=Yn(t).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return o.negated=n,sh.set(r,o),o},"makeRegexp"),my=i((t,e,r,n)=>{if(t=hy(t,"inputs"),e=hy(e,"patterns"),e.length===0)return[];e=e.map(a=>FO(a,r));let{allPatterns:o}=r||{},s=[];for(let a of t){let l,u=[...e].fill(!1);for(let[c,f]of e.entries())if(f.test(a)&&(u[c]=!0,l=!f.negated,!l))break;if(!(l===!1||l===void 0&&e.some(c=>!c.negated)||o&&u.some((c,f)=>!c&&!e[f].negated))&&(s.push(a),n))break}return s},"baseMatcher");function LO(t,e,r){return my(t,e,r,!1)}i(LO,"matcher");function BO(t,e,r){return my(t,e,r,!0).length>0}i(BO,"isMatch");var ah=class{static{i(this,"SmartMatch")}constructor(e){this.wildcard=e}match(e){return _s.isMatch(e,this.wildcard)}};var Me={};ae(Me,{ObservableIntake:()=>Ph,Observablemap:()=>_h,fromStreamWithBackpressure:()=>b_,rxjs:()=>uo});var uo={};ae(uo,{Observable:()=>ye,ReplaySubject:()=>no,Subject:()=>Pt,Subscription:()=>_t,from:()=>Sr,fromEvent:()=>Kn,of:()=>Bs,ops:()=>w_});var lh=i(function(t,e){return lh=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])},lh(t,e)},"extendStatics");function Je(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");lh(t,e);function r(){this.constructor=t}i(r,"__"),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}i(Je,"__extends");var uh=i(function(){return uh=Object.assign||i(function(e){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)&&(e[s]=r[s])}return e},"__assign"),uh.apply(this,arguments)},"__assign");function HO(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}i(HO,"__rest");function WO(t,e,r,n){var o=arguments.length,s=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(e,r,s):a(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s}i(WO,"__decorate");function $O(t,e){return function(r,n){e(r,n,t)}}i($O,"__param");function UO(t,e,r,n,o,s){function a(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}i(a,"accept");for(var l=n.kind,u=l==="getter"?"get":l==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,f=e||(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(w){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(w||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(UO,"__esDecorate");function qO(t,e,r){for(var n=arguments.length>2,o=0;o<e.length;o++)r=n?e[o].call(t,r):e[o].call(t);return n?r:void 0}i(qO,"__runInitializers");function YO(t){return typeof t=="symbol"?t:"".concat(t)}i(YO,"__propKey");function VO(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}i(VO,"__setFunctionName");function GO(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}i(GO,"__metadata");function ph(t,e,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(t,e||[])).next())})}i(ph,"__awaiter");function Ns(t,e){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=e.call(t,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(Ns,"__generator");var ch=Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]});function JO(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ch(e,t,r)}i(JO,"__exportStar");function ft(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:i(function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}},"next")};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}i(ft,"__values");function at(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,s=[],a;try{for(;(e===void 0||e-- >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 QO(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(at(arguments[e]));return t}i(QO,"__spread");function KO(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<r;e++)for(var s=arguments[e],a=0,l=s.length;a<l;a++,o++)n[o]=s[a];return n}i(KO,"__spreadArrays");function It(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,s;n<o;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}i(It,"__spreadArray");function $r(t){return this instanceof $r?(this.v=t,this):new $r(t)}i($r,"__await");function hh(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),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,w){s.push([m,g,x,w])>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 $r?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(hh,"__asyncGenerator");function XO(t){var e,r;return e={},n("next"),n("throw",function(o){throw o}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(o,s){e[o]=t[o]?function(a){return(r=!r)?{value:$r(t[o](a)),done:!1}:s?s(a):a}:s}}i(XO,"__asyncDelegator");function mh(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof ft=="function"?ft(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(l,u){a=t[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(mh,"__asyncValues");function ZO(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}i(ZO,"__makeTemplateObject");var eM=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e},fh=i(function(t){return fh=Object.getOwnPropertyNames||function(e){var r=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[r.length]=n);return r},fh(t)},"ownKeys");function tM(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=fh(t),n=0;n<r.length;n++)r[n]!=="default"&&ch(e,t,r[n]);return eM(e,t),e}i(tM,"__importStar");function rM(t){return t&&t.__esModule?t:{default:t}}i(rM,"__importDefault");function nM(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}i(nM,"__classPrivateFieldGet");function iM(t,e,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 e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r}i(iM,"__classPrivateFieldSet");function oM(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}i(oM,"__classPrivateFieldIn");function sM(t,e,r){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[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")),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}i(sM,"__addDisposableResource");var aM=typeof SuppressedError=="function"?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function lM(t){function e(s){t.error=t.hasError?new aM(s,t.error,"An error was suppressed during disposal."):s,t.hasError=!0}i(e,"fail");var r,n=0;function o(){for(;r=t.stack.pop();)try{if(!r.async&&n===1)return n=0,t.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 e(a),o()})}else n|=1}catch(a){e(a)}if(n===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return i(o,"next"),o()}i(lM,"__disposeResources");function uM(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,o,s,a){return n?e?".jsx":".js":o&&(!s||!a)?r:o+s+"."+a.toLowerCase()+"js"}):t}i(uM,"__rewriteRelativeImportExtension");var Fq={__extends:Je,__assign:uh,__rest:HO,__decorate:WO,__param:$O,__esDecorate:UO,__runInitializers:qO,__propKey:YO,__setFunctionName:VO,__metadata:GO,__awaiter:ph,__generator:Ns,__createBinding:ch,__exportStar:JO,__values:ft,__read:at,__spread:QO,__spreadArrays:KO,__spreadArray:It,__await:$r,__asyncGenerator:hh,__asyncDelegator:XO,__asyncValues:mh,__makeTemplateObject:ZO,__importStar:tM,__importDefault:rM,__classPrivateFieldGet:nM,__classPrivateFieldSet:iM,__classPrivateFieldIn:oM,__addDisposableResource:sM,__disposeResources:lM,__rewriteRelativeImportExtension:uM};function fe(t){return typeof t=="function"}i(fe,"isFunction");function Sl(t){var e=i(function(n){Error.call(n),n.stack=new Error().stack},"_super"),r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}i(Sl,"createErrorClass");var As=Sl(function(t){return i(function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
29
+ `+t.slice(a+1):u+=t.slice(o),u.slice(1)}i(n1,"foldLine");function PL(t){for(var e="",r,n,o,s=0;s<t.length;s++){if(r=t.charCodeAt(s),r>=55296&&r<=56319&&(n=t.charCodeAt(s+1),n>=56320&&n<=57343)){e+=Vk((r-55296)*1024+n-56320+65536),s++;continue}o=wt[r],e+=!o&&rs(r)?t[s]:o||Vk(r)}return e}i(PL,"escapeString");function NL(t,e,r){var n="",o=t.tag,s,a;for(s=0,a=r.length;s<a;s+=1)vi(t,e,r[s],!1,!1)&&(s!==0&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=o,t.dump="["+n+"]"}i(NL,"writeFlowSequence");function AL(t,e,r,n){var o="",s=t.tag,a,l;for(a=0,l=r.length;a<l;a+=1)vi(t,e+1,r[a],!0,!0)&&((!n||a!==0)&&(o+=Vm(t,e)),t.dump&&Ta===t.dump.charCodeAt(0)?o+="-":o+="- ",o+=t.dump);t.tag=s,t.dump=o||"[]"}i(AL,"writeBlockSequence");function RL(t,e,r){var n="",o=t.tag,s=Object.keys(r),a,l,u,c,f;for(a=0,l=s.length;a<l;a+=1)f="",a!==0&&(f+=", "),t.condenseFlow&&(f+='"'),u=s[a],c=r[u],vi(t,e,u,!1,!1)&&(t.dump.length>1024&&(f+="? "),f+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),vi(t,e,c,!1,!1)&&(f+=t.dump,n+=f));t.tag=o,t.dump="{"+n+"}"}i(RL,"writeFlowMapping");function FL(t,e,r,n){var o="",s=t.tag,a=Object.keys(r),l,u,c,f,p,h;if(t.sortKeys===!0)a.sort();else if(typeof t.sortKeys=="function")a.sort(t.sortKeys);else if(t.sortKeys)throw new ka("sortKeys must be a boolean or a function");for(l=0,u=a.length;l<u;l+=1)h="",(!n||l!==0)&&(h+=Vm(t,e)),c=a[l],f=r[c],vi(t,e+1,c,!0,!0,!0)&&(p=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,p&&(t.dump&&Ta===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,p&&(h+=Vm(t,e)),vi(t,e+1,f,!0,p)&&(t.dump&&Ta===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,o+=h));t.tag=s,t.dump=o||"{}"}i(FL,"writeBlockMapping");function i1(t,e,r){var n,o,s,a,l,u;for(o=r?t.explicitTypes:t.implicitTypes,s=0,a=o.length;s<a;s+=1)if(l=o[s],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof e=="object"&&e instanceof l.instanceOf)&&(!l.predicate||l.predicate(e))){if(t.tag=r?l.tag:"?",l.represent){if(u=t.styleMap[l.tag]||l.defaultStyle,Bk.call(l.represent)==="[object Function]")n=l.represent(e,u);else if(zk.call(l.represent,u))n=l.represent[u](e,u);else throw new ka("!<"+l.tag+'> tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}i(i1,"detectType");function vi(t,e,r,n,o,s){t.tag=null,t.dump=r,i1(t,r,!1)||i1(t,r,!0);var a=Bk.call(t.dump);n&&(n=t.flowLevel<0||t.flowLevel>e);var l=a==="[object Object]"||a==="[object Array]",u,c;if(l&&(u=t.duplicates.indexOf(r),c=u!==-1),(t.tag!==null&&t.tag!=="?"||c||t.indent!==2&&e>0)&&(o=!1),c&&t.usedDuplicates[u])t.dump="*ref_"+u;else{if(l&&c&&!t.usedDuplicates[u]&&(t.usedDuplicates[u]=!0),a==="[object Object]")n&&Object.keys(t.dump).length!==0?(FL(t,e,t.dump,o),c&&(t.dump="&ref_"+u+t.dump)):(RL(t,e,t.dump),c&&(t.dump="&ref_"+u+" "+t.dump));else if(a==="[object Array]"){var f=t.noArrayIndent&&e>0?e-1:e;n&&t.dump.length!==0?(AL(t,f,t.dump,o),c&&(t.dump="&ref_"+u+t.dump)):(NL(t,f,t.dump),c&&(t.dump="&ref_"+u+" "+t.dump))}else if(a==="[object String]")t.tag!=="?"&&IL(t,t.dump,e,s);else{if(t.skipInvalid)return!1;throw new ka("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}i(vi,"writeNode");function LL(t,e){var r=[],n=[],o,s;for(Jm(t,r,n),o=0,s=n.length;o<s;o+=1)e.duplicates.push(r[n[o]]);e.usedDuplicates=new Array(s)}i(LL,"getDuplicateReferences");function Jm(t,e,r){var n,o,s;if(t!==null&&typeof t=="object")if(o=e.indexOf(t),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(e.push(t),Array.isArray(t))for(o=0,s=t.length;o<s;o+=1)Jm(t[o],e,r);else for(n=Object.keys(t),o=0,s=n.length;o<s;o+=1)Jm(t[n[o]],e,r)}i(Jm,"inspectNode");function o1(t,e){e=e||{};var r=new EL(e);return r.noRefs||LL(t,r),vi(r,0,t,!0,!0)?r.dump+`
30
+ `:""}i(o1,"dump");function BL(t,e){return o1(t,Sa.extend({schema:sL},e))}i(BL,"safeDump"),Qm.exports.dump=o1,Qm.exports.safeDump=BL});var l1=se((LNe,ze)=>{"use strict";var Ef=Lk(),a1=s1();function Df(t){return function(){throw new Error("Function "+t+" is deprecated and cannot be used.")}}i(Df,"deprecated"),ze.exports.Type=Xe(),ze.exports.Schema=xi(),ze.exports.FAILSAFE_SCHEMA=yf(),ze.exports.JSON_SCHEMA=Hm(),ze.exports.CORE_SCHEMA=Wm(),ze.exports.DEFAULT_SAFE_SCHEMA=Xo(),ze.exports.DEFAULT_FULL_SCHEMA=ba(),ze.exports.load=Ef.load,ze.exports.loadAll=Ef.loadAll,ze.exports.safeLoad=Ef.safeLoad,ze.exports.safeLoadAll=Ef.safeLoadAll,ze.exports.dump=a1.dump,ze.exports.safeDump=a1.safeDump,ze.exports.YAMLException=Qo(),ze.exports.MINIMAL_SCHEMA=yf(),ze.exports.SAFE_SCHEMA=Xo(),ze.exports.DEFAULT_SCHEMA=ba(),ze.exports.scan=Df("scan"),ze.exports.parse=Df("parse"),ze.exports.compose=Df("compose"),ze.exports.addConstructor=Df("addConstructor")});var c1=se((zNe,u1)=>{"use strict";var zL=l1();u1.exports=zL});var f1=se(Rr=>{"use strict";var jL=Rr&&Rr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:i(function(){return e[r]},"get")})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),HL=Rr&&Rr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WL=Rr&&Rr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&jL(e,t,r);return HL(e,t),e};Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.jsYaml=void 0;var $L=WL(c1());Rr.jsYaml=$L});var h1=se(er=>{"use strict";var UL=er&&er.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:i(function(){return e[r]},"get")})}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qL=er&&er.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YL=er&&er.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.hasOwnProperty.call(t,r)&&UL(e,t,r);return qL(e,t),e};Object.defineProperty(er,"__esModule",{value:!0}),er.objectToYamlString=er.yamlStringToObject=void 0;var p1=YL(f1());er.yamlStringToObject=async(t,e={})=>p1.jsYaml.safeLoad(t),er.objectToYamlString=async(t,e={})=>p1.jsYaml.safeDump(t)});var S1=se((YNe,v1)=>{"use strict";var Cf=Object.prototype.hasOwnProperty,m1=Object.prototype.toString,d1=Object.defineProperty,g1=Object.getOwnPropertyDescriptor,x1=i(function(e){return typeof Array.isArray=="function"?Array.isArray(e):m1.call(e)==="[object Array]"},"isArray"),y1=i(function(e){if(!e||m1.call(e)!=="[object Object]")return!1;var r=Cf.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Cf.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;var o;for(o in e);return typeof o>"u"||Cf.call(e,o)},"isPlainObject"),w1=i(function(e,r){d1&&r.name==="__proto__"?d1(e,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):e[r.name]=r.newValue},"setProperty"),b1=i(function(e,r){if(r==="__proto__")if(Cf.call(e,r)){if(g1)return g1(e,r).value}else return;return e[r]},"getProperty");v1.exports=i(function t(){var e,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(e=arguments[u],e!=null)for(r in e)n=b1(l,r),o=b1(e,r),l!==o&&(f&&o&&(y1(o)||(s=x1(o)))?(s?(s=!1,a=n&&x1(n)?n:[]):a=n&&y1(n)?n:{},w1(l,{name:r,newValue:t(f,a,o)})):typeof o<"u"&&w1(l,{name:r,newValue:o}));return l},"extend")});var oE=se((hUe,hg)=>{(function(){var t;typeof hg<"u"?t=hg.exports=n:t=(function(){return this||(0,eval)("this")})(),t.format=n,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=e);function e(){console.log(n.apply(null,arguments))}i(e,"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"),w=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=w(),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 UD=se(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0}),pr.PathError=pr.TokenData=void 0,pr.parse=ex,pr.compile=yW,pr.match=bW,pr.pathToRegexp=jD,pr.stringify=SW;var Xg="/",Zg=i(t=>t,"NOOP_VALUE"),mW=/^[$_\p{ID_Start}]$/u,BD=/^[$\u200c\u200d\p{ID_Continue}]$/u,dW=/^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u,gW="{}()[]+?!";function xW(t){return t.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}i(xW,"escapeText");function Ln(t){return t.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}i(Ln,"escape");var Tp=class{static{i(this,"TokenData")}constructor(e,r){this.tokens=e,this.originalPath=r}};pr.TokenData=Tp;var Bn=class extends TypeError{static{i(this,"PathError")}constructor(e,r){let n=e;r&&(n+=`: ${r}`),n+="; visit https://git.new/pathToRegexpError for info",super(n),this.originalPath=r}};pr.PathError=Bn;function ex(t,e={}){let{encodePath:r=Zg}=e,n=[...t],o=[],s=0,a=0;function l(){let c="";if(mW.test(n[s]))do c+=n[s++];while(BD.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}`,t)}if(!c)throw new Bn(`Missing parameter name at index ${s}`,t);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}`,t)}return f}return i(u,"consumeUntil"),new Tp(u("end"),t)}i(ex,"parse");function yW(t,e={}){let{encode:r=encodeURIComponent,delimiter:n=Xg}=e,o=typeof t=="object"?t:ex(t,e),s=zD(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 zD(t,e,r){let n=t.map(o=>wW(o,e,r));return o=>{let s=[""];for(let a of n){let[l,...u]=a(o);s[0]+=l,s.push(...u)}return s}}i(zD,"tokensToFunction");function wW(t,e,r){if(t.type==="text")return()=>[t.value];if(t.type==="group"){let o=zD(t.tokens,e,r);return s=>{let[a,...l]=o(s);return l.length?[""]:[a]}}let n=r||Zg;return t.type==="wildcard"&&r!==!1?o=>{let s=o[t.name];if(s==null)return["",t.name];if(!Array.isArray(s)||s.length===0)throw new TypeError(`Expected "${t.name}" to be a non-empty array`);return[s.map((a,l)=>{if(typeof a!="string")throw new TypeError(`Expected "${t.name}/${l}" to be a string`);return n(a)}).join(e)]}:o=>{let s=o[t.name];if(s==null)return["",t.name];if(typeof s!="string")throw new TypeError(`Expected "${t.name}" to be a string`);return[n(s)]}}i(wW,"tokenToFunction");function bW(t,e={}){let{decode:r=decodeURIComponent,delimiter:n=Xg}=e,{regexp:o,keys:s}=jD(t,e),a=s.map(l=>r===!1?Zg: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 jD(t,e={}){let{delimiter:r=Xg,end:n=!0,sensitive:o=!1,trailing:s=!0}=e,a=new tx("^"),l=[t],u=0;for(;l.length;){let p=l.shift();if(Array.isArray(p)){l.push(...p);continue}let h=typeof p=="object"?p:ex(p,e);rx(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=HD(a,c);return s&&(f+="(?:"+Ln(r)+"$)?"),f+=n?"$":"(?="+Ln(r)+"|$)",{regexp:new RegExp(f,o?"":"i"),keys:c}}i(jD,"pathToRegexp");function HD(t,e){t.key&&e.push(t.key);let r=Object.keys(t.children),n=r.map(o=>HD(t.children[o],e)).join("|");return t.source+(r.length<2?n:`(?:${n})`)}i(HD,"toRegExp");var tx=class t{static{i(this,"SourceNode")}constructor(e,r){this.source=e,this.key=r,this.children=Object.create(null)}add(e,r){var n;let o=e+":"+(r?r.name:"");return(n=this.children)[o]||(n[o]=new t(e,r))}};function rx(t,e,r,n){for(;e<t.length;){let o=t[e++];if(o.type==="group"){rx(o.tokens,0,r.slice(),s=>rx(t,e,s,n));continue}r.push(o)}n(r)}i(rx,"flatten");function vW(t,e,r){let n=[],o="",s="",a=0,l=0,u=0;function c(p,h){for(;p<t.length;){let m=t[p++];if(m.type===h)return!0;if(m.type==="text"&&m.value.includes(e))break}return!1}i(c,"hasInSegment");function f(p){let h="";for(;p<t.length;){let m=t[p++];if(m.type!=="text")break;h+=m.value}return h}for(i(f,"peekText");u<t.length;){let p=t[u++];if(p.type==="text"){n.push({source:Ln(p.value)}),o+=p.value,a===2&&(s+=p.value),p.value.includes(e)&&(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(e,o)}+?)`:c(u,"wildcard")?`(${zn(e,f(u))}+?)`:`(${zn(e,"")}+?)`,key:p}),l|=a=1):(n.push({source:l&2?`(${zn(o,"")}+?)`:l&1?`(${zn(s,"")}+?)`:s?`(${zn(s,"")}+?|${zn(e,"")}+?)`:"([^]+?)",key:p}),s="",l|=a=2),o="";continue}throw new TypeError(`Unknown token type: ${p.type}`)}return n}i(vW,"toRegExpSource");function zn(t,e){return e.length>t.length?zn(e,t):(t===e&&(e=""),e.length>1?`(?:(?!${Ln(t)}|${Ln(e)})[^])`:t.length>1?`(?:(?!${Ln(t)})[^${Ln(e)}])`:`[^${Ln(t+e)}]`)}i(zn,"negate");function WD(t,e){let r="";for(;e<t.length;){let n=t[e++];if(n.type==="text"){r+=xW(n.value);continue}if(n.type==="group"){r+="{"+WD(n.tokens,0)+"}";continue}if(n.type==="param"){r+=":"+$D(n.name,t[e]);continue}if(n.type==="wildcard"){r+="*"+$D(n.name,t[e]);continue}throw new TypeError(`Unknown token type: ${n.type}`)}return r}i(WD,"stringifyTokens");function SW(t){return WD(t.tokens,0)}i(SW,"stringify");function $D(t,e){return!dW.test(t)||e?.type==="text"&&BD.test(e.value[0])?JSON.stringify(t):t}i($D,"stringifyName")});var PC=se((el,Ts)=>{var EW=200,qD="__lodash_hash_undefined__",YD=9007199254740991,sx="[object Arguments]",DW="[object Array]",VD="[object Boolean]",GD="[object Date]",CW="[object Error]",ax="[object Function]",JD="[object GeneratorFunction]",Dp="[object Map]",QD="[object Number]",lx="[object Object]",KD="[object Promise]",XD="[object RegExp]",Cp="[object Set]",ZD="[object String]",eC="[object Symbol]",ux="[object WeakMap]",tC="[object ArrayBuffer]",Op="[object DataView]",rC="[object Float32Array]",nC="[object Float64Array]",iC="[object Int8Array]",oC="[object Int16Array]",sC="[object Int32Array]",aC="[object Uint8Array]",lC="[object Uint8ClampedArray]",uC="[object Uint16Array]",cC="[object Uint32Array]",OW=/[\\^$.*+?()[\]{}|]/g,MW=/\w*$/,IW=/^\[object .+?Constructor\]$/,_W=/^(?:0|[1-9]\d*)$/,Ne={};Ne[sx]=Ne[DW]=Ne[tC]=Ne[Op]=Ne[VD]=Ne[GD]=Ne[rC]=Ne[nC]=Ne[iC]=Ne[oC]=Ne[sC]=Ne[Dp]=Ne[QD]=Ne[lx]=Ne[XD]=Ne[Cp]=Ne[ZD]=Ne[eC]=Ne[aC]=Ne[lC]=Ne[uC]=Ne[cC]=!0,Ne[CW]=Ne[ax]=Ne[ux]=!1;var PW=typeof global=="object"&&global&&global.Object===Object&&global,NW=typeof self=="object"&&self&&self.Object===Object&&self,en=PW||NW||Function("return this")(),fC=typeof el=="object"&&el&&!el.nodeType&&el,pC=fC&&typeof Ts=="object"&&Ts&&!Ts.nodeType&&Ts,AW=pC&&pC.exports===fC;function RW(t,e){return t.set(e[0],e[1]),t}i(RW,"addMapEntry");function FW(t,e){return t.add(e),t}i(FW,"addSetEntry");function LW(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}i(LW,"arrayEach");function BW(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}i(BW,"arrayPush");function hC(t,e,r,n){var o=-1,s=t?t.length:0;for(n&&s&&(r=t[++o]);++o<s;)r=e(r,t[o],o,t);return r}i(hC,"arrayReduce");function zW(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}i(zW,"baseTimes");function jW(t,e){return t?.[e]}i(jW,"getValue");function mC(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}i(mC,"isHostObject");function dC(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}i(dC,"mapToArray");function cx(t,e){return function(r){return t(e(r))}}i(cx,"overArg");function gC(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}i(gC,"setToArray");var HW=Array.prototype,WW=Function.prototype,Mp=Object.prototype,fx=en["__core-js_shared__"],xC=(function(){var t=/[^.]+$/.exec(fx&&fx.keys&&fx.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),yC=WW.toString,jn=Mp.hasOwnProperty,Ip=Mp.toString,$W=RegExp("^"+yC.call(jn).replace(OW,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wC=AW?en.Buffer:void 0,bC=en.Symbol,vC=en.Uint8Array,UW=cx(Object.getPrototypeOf,Object),qW=Object.create,YW=Mp.propertyIsEnumerable,VW=HW.splice,SC=Object.getOwnPropertySymbols,GW=wC?wC.isBuffer:void 0,JW=cx(Object.keys,Object),px=ks(en,"DataView"),Xa=ks(en,"Map"),hx=ks(en,"Promise"),mx=ks(en,"Set"),dx=ks(en,"WeakMap"),Za=ks(Object,"create"),QW=ji(px),KW=ji(Xa),XW=ji(hx),ZW=ji(mx),e$=ji(dx),kC=bC?bC.prototype:void 0,TC=kC?kC.valueOf:void 0;function Bi(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}i(Bi,"Hash");function t$(){this.__data__=Za?Za(null):{}}i(t$,"hashClear");function r$(t){return this.has(t)&&delete this.__data__[t]}i(r$,"hashDelete");function n$(t){var e=this.__data__;if(Za){var r=e[t];return r===qD?void 0:r}return jn.call(e,t)?e[t]:void 0}i(n$,"hashGet");function i$(t){var e=this.__data__;return Za?e[t]!==void 0:jn.call(e,t)}i(i$,"hashHas");function o$(t,e){var r=this.__data__;return r[t]=Za&&e===void 0?qD:e,this}i(o$,"hashSet"),Bi.prototype.clear=t$,Bi.prototype.delete=r$,Bi.prototype.get=n$,Bi.prototype.has=i$,Bi.prototype.set=o$;function tn(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}i(tn,"ListCache");function s$(){this.__data__=[]}i(s$,"listCacheClear");function a$(t){var e=this.__data__,r=_p(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():VW.call(e,r,1),!0}i(a$,"listCacheDelete");function l$(t){var e=this.__data__,r=_p(e,t);return r<0?void 0:e[r][1]}i(l$,"listCacheGet");function u$(t){return _p(this.__data__,t)>-1}i(u$,"listCacheHas");function c$(t,e){var r=this.__data__,n=_p(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}i(c$,"listCacheSet"),tn.prototype.clear=s$,tn.prototype.delete=a$,tn.prototype.get=l$,tn.prototype.has=u$,tn.prototype.set=c$;function vs(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}i(vs,"MapCache");function f$(){this.__data__={hash:new Bi,map:new(Xa||tn),string:new Bi}}i(f$,"mapCacheClear");function p$(t){return Pp(this,t).delete(t)}i(p$,"mapCacheDelete");function h$(t){return Pp(this,t).get(t)}i(h$,"mapCacheGet");function m$(t){return Pp(this,t).has(t)}i(m$,"mapCacheHas");function d$(t,e){return Pp(this,t).set(t,e),this}i(d$,"mapCacheSet"),vs.prototype.clear=f$,vs.prototype.delete=p$,vs.prototype.get=h$,vs.prototype.has=m$,vs.prototype.set=d$;function Ss(t){this.__data__=new tn(t)}i(Ss,"Stack");function g$(){this.__data__=new tn}i(g$,"stackClear");function x$(t){return this.__data__.delete(t)}i(x$,"stackDelete");function y$(t){return this.__data__.get(t)}i(y$,"stackGet");function w$(t){return this.__data__.has(t)}i(w$,"stackHas");function b$(t,e){var r=this.__data__;if(r instanceof tn){var n=r.__data__;if(!Xa||n.length<EW-1)return n.push([t,e]),this;r=this.__data__=new vs(n)}return r.set(t,e),this}i(b$,"stackSet"),Ss.prototype.clear=g$,Ss.prototype.delete=x$,Ss.prototype.get=y$,Ss.prototype.has=w$,Ss.prototype.set=b$;function v$(t,e){var r=yx(t)||q$(t)?zW(t.length,String):[],n=r.length,o=!!n;for(var s in t)(e||jn.call(t,s))&&!(o&&(s=="length"||H$(s,n)))&&r.push(s);return r}i(v$,"arrayLikeKeys");function EC(t,e,r){var n=t[e];(!(jn.call(t,e)&&MC(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}i(EC,"assignValue");function _p(t,e){for(var r=t.length;r--;)if(MC(t[r][0],e))return r;return-1}i(_p,"assocIndexOf");function S$(t,e){return t&&DC(e,wx(e),t)}i(S$,"baseAssign");function gx(t,e,r,n,o,s,a){var l;if(n&&(l=s?n(t,o,s,a):n(t)),l!==void 0)return l;if(!Np(t))return t;var u=yx(t);if(u){if(l=B$(t),!e)return R$(t,l)}else{var c=zi(t),f=c==ax||c==JD;if(V$(t))return O$(t,e);if(c==lx||c==sx||f&&!s){if(mC(t))return s?t:{};if(l=z$(f?{}:t),!e)return F$(t,S$(l,t))}else{if(!Ne[c])return s?t:{};l=j$(t,c,gx,e)}}a||(a=new Ss);var p=a.get(t);if(p)return p;if(a.set(t,l),!u)var h=r?L$(t):wx(t);return LW(h||t,function(m,d){h&&(d=m,m=t[d]),EC(l,d,gx(m,e,r,n,d,t,a))}),l}i(gx,"baseClone");function k$(t){return Np(t)?qW(t):{}}i(k$,"baseCreate");function T$(t,e,r){var n=e(t);return yx(t)?n:BW(n,r(t))}i(T$,"baseGetAllKeys");function E$(t){return Ip.call(t)}i(E$,"baseGetTag");function D$(t){if(!Np(t)||$$(t))return!1;var e=_C(t)||mC(t)?$W:IW;return e.test(ji(t))}i(D$,"baseIsNative");function C$(t){if(!OC(t))return JW(t);var e=[];for(var r in Object(t))jn.call(t,r)&&r!="constructor"&&e.push(r);return e}i(C$,"baseKeys");function O$(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}i(O$,"cloneBuffer");function xx(t){var e=new t.constructor(t.byteLength);return new vC(e).set(new vC(t)),e}i(xx,"cloneArrayBuffer");function M$(t,e){var r=e?xx(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}i(M$,"cloneDataView");function I$(t,e,r){var n=e?r(dC(t),!0):dC(t);return hC(n,RW,new t.constructor)}i(I$,"cloneMap");function _$(t){var e=new t.constructor(t.source,MW.exec(t));return e.lastIndex=t.lastIndex,e}i(_$,"cloneRegExp");function P$(t,e,r){var n=e?r(gC(t),!0):gC(t);return hC(n,FW,new t.constructor)}i(P$,"cloneSet");function N$(t){return TC?Object(TC.call(t)):{}}i(N$,"cloneSymbol");function A$(t,e){var r=e?xx(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}i(A$,"cloneTypedArray");function R$(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}i(R$,"copyArray");function DC(t,e,r,n){r||(r={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=n?n(r[a],t[a],a,r,t):void 0;EC(r,a,l===void 0?t[a]:l)}return r}i(DC,"copyObject");function F$(t,e){return DC(t,CC(t),e)}i(F$,"copySymbols");function L$(t){return T$(t,wx,CC)}i(L$,"getAllKeys");function Pp(t,e){var r=t.__data__;return W$(e)?r[typeof e=="string"?"string":"hash"]:r.map}i(Pp,"getMapData");function ks(t,e){var r=jW(t,e);return D$(r)?r:void 0}i(ks,"getNative");var CC=SC?cx(SC,Object):Q$,zi=E$;(px&&zi(new px(new ArrayBuffer(1)))!=Op||Xa&&zi(new Xa)!=Dp||hx&&zi(hx.resolve())!=KD||mx&&zi(new mx)!=Cp||dx&&zi(new dx)!=ux)&&(zi=i(function(t){var e=Ip.call(t),r=e==lx?t.constructor:void 0,n=r?ji(r):void 0;if(n)switch(n){case QW:return Op;case KW:return Dp;case XW:return KD;case ZW:return Cp;case e$:return ux}return e},"getTag"));function B$(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&jn.call(t,"index")&&(r.index=t.index,r.input=t.input),r}i(B$,"initCloneArray");function z$(t){return typeof t.constructor=="function"&&!OC(t)?k$(UW(t)):{}}i(z$,"initCloneObject");function j$(t,e,r,n){var o=t.constructor;switch(e){case tC:return xx(t);case VD:case GD:return new o(+t);case Op:return M$(t,n);case rC:case nC:case iC:case oC:case sC:case aC:case lC:case uC:case cC:return A$(t,n);case Dp:return I$(t,n,r);case QD:case ZD:return new o(t);case XD:return _$(t);case Cp:return P$(t,n,r);case eC:return N$(t)}}i(j$,"initCloneByTag");function H$(t,e){return e=e??YD,!!e&&(typeof t=="number"||_W.test(t))&&t>-1&&t%1==0&&t<e}i(H$,"isIndex");function W$(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}i(W$,"isKeyable");function $$(t){return!!xC&&xC in t}i($$,"isMasked");function OC(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Mp;return t===r}i(OC,"isPrototype");function ji(t){if(t!=null){try{return yC.call(t)}catch{}try{return t+""}catch{}}return""}i(ji,"toSource");function U$(t){return gx(t,!0,!0)}i(U$,"cloneDeep");function MC(t,e){return t===e||t!==t&&e!==e}i(MC,"eq");function q$(t){return Y$(t)&&jn.call(t,"callee")&&(!YW.call(t,"callee")||Ip.call(t)==sx)}i(q$,"isArguments");var yx=Array.isArray;function IC(t){return t!=null&&G$(t.length)&&!_C(t)}i(IC,"isArrayLike");function Y$(t){return J$(t)&&IC(t)}i(Y$,"isArrayLikeObject");var V$=GW||K$;function _C(t){var e=Np(t)?Ip.call(t):"";return e==ax||e==JD}i(_C,"isFunction");function G$(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=YD}i(G$,"isLength");function Np(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}i(Np,"isObject");function J$(t){return!!t&&typeof t=="object"}i(J$,"isObjectLike");function wx(t){return IC(t)?v$(t):C$(t)}i(wx,"keys");function Q$(){return[]}i(Q$,"stubArray");function K$(){return!1}i(K$,"stubFalse"),Ts.exports=U$});var VC=se((Ux,qx)=>{(function(t,e){typeof Ux=="object"&&typeof qx<"u"?qx.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.SweetScroll=e())})(Ux,function(){"use strict";var t=i(function(){return t=Object.assign||i(function(S){for(var C,M=1,R=arguments.length;M<R;M++){C=arguments[M];for(var ee in C)Object.prototype.hasOwnProperty.call(C,ee)&&(S[ee]=C[ee])}return S},"__assign"),t.apply(this,arguments)},"__assign"),e=!!(typeof window<"u"&&window.document&&window.document.createElement),r=e?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=(function(){var D=!1;if(!e)return D;try{var S=window,C=Object.defineProperty({},"passive",{get:i(function(){D=!0},"get")});S.addEventListener("test",null,C),S.removeEventListener("test",null,C)}catch{}return D})(),o=i(function(D){return typeof D=="string"},"isString"),s=i(function(D){return typeof D=="function"},"isFunction"),a=i(function(D){return Array.isArray(D)},"isArray"),l=i(function(D){return!a(D)&&D-parseFloat(D)+1>=0},"isNumeric"),u=i(function(D,S){return D&&D.hasOwnProperty(S)},"hasProp"),c=e?window.requestAnimationFrame.bind(window):null,f=e?window.cancelAnimationFrame.bind(window):null,p=Math.cos,h=Math.sin,m=Math.pow,d=Math.sqrt,g=Math.PI,x={linear:i(function(D){return D},"linear"),easeInQuad:i(function(D,S,C,M,R){return M*(S/=R)*S+C},"easeInQuad"),easeOutQuad:i(function(D,S,C,M,R){return-M*(S/=R)*(S-2)+C},"easeOutQuad"),easeInOutQuad:i(function(D,S,C,M,R){return(S/=R/2)<1?M/2*S*S+C:-M/2*(--S*(S-2)-1)+C},"easeInOutQuad"),easeInCubic:i(function(D,S,C,M,R){return M*(S/=R)*S*S+C},"easeInCubic"),easeOutCubic:i(function(D,S,C,M,R){return M*((S=S/R-1)*S*S+1)+C},"easeOutCubic"),easeInOutCubic:i(function(D,S,C,M,R){return(S/=R/2)<1?M/2*S*S*S+C:M/2*((S-=2)*S*S+2)+C},"easeInOutCubic"),easeInQuart:i(function(D,S,C,M,R){return M*(S/=R)*S*S*S+C},"easeInQuart"),easeOutQuart:i(function(D,S,C,M,R){return-M*((S=S/R-1)*S*S*S-1)+C},"easeOutQuart"),easeInOutQuart:i(function(D,S,C,M,R){return(S/=R/2)<1?M/2*S*S*S*S+C:-M/2*((S-=2)*S*S*S-2)+C},"easeInOutQuart"),easeInQuint:i(function(D,S,C,M,R){return M*(S/=R)*S*S*S*S+C},"easeInQuint"),easeOutQuint:i(function(D,S,C,M,R){return M*((S=S/R-1)*S*S*S*S+1)+C},"easeOutQuint"),easeInOutQuint:i(function(D,S,C,M,R){return(S/=R/2)<1?M/2*S*S*S*S*S+C:M/2*((S-=2)*S*S*S*S+2)+C},"easeInOutQuint"),easeInSine:i(function(D,S,C,M,R){return-M*p(S/R*(g/2))+M+C},"easeInSine"),easeOutSine:i(function(D,S,C,M,R){return M*h(S/R*(g/2))+C},"easeOutSine"),easeInOutSine:i(function(D,S,C,M,R){return-M/2*(p(g*S/R)-1)+C},"easeInOutSine"),easeInExpo:i(function(D,S,C,M,R){return S===0?C:M*m(2,10*(S/R-1))+C},"easeInExpo"),easeOutExpo:i(function(D,S,C,M,R){return S===R?C+M:M*(-m(2,-10*S/R)+1)+C},"easeOutExpo"),easeInOutExpo:i(function(D,S,C,M,R){return S===0?C:S===R?C+M:(S/=R/2)<1?M/2*m(2,10*(S-1))+C:M/2*(-m(2,-10*--S)+2)+C},"easeInOutExpo"),easeInCirc:i(function(D,S,C,M,R){return-M*(d(1-(S/=R)*S)-1)+C},"easeInCirc"),easeOutCirc:i(function(D,S,C,M,R){return M*d(1-(S=S/R-1)*S)+C},"easeOutCirc"),easeInOutCirc:i(function(D,S,C,M,R){return(S/=R/2)<1?-M/2*(d(1-S*S)-1)+C:M/2*(d(1-(S-=2)*S)+1)+C},"easeInOutCirc")},w=i(function(D){return Array.prototype.slice.call(D?document.querySelectorAll(D):[])},"$$"),T=i(function(D){return w(D).shift()||null},"$"),E=i(function(D){return D instanceof Element},"isElement"),q=i(function(D){return D===window},"isWindow"),H=i(function(D){return D===document.documentElement||D===document.body},"isRootContainer"),O=i(function(D,S){if(E(S))return D===S;for(var C=w(S),M=C.length;--M>=0&&C[M]!==D;);return M>-1},"matches"),j=i(function(D){return Math.max(D.scrollHeight,D.clientHeight,D.offsetHeight)},"getHeight"),X=i(function(D){return Math.max(D.scrollWidth,D.clientWidth,D.offsetWidth)},"getWidth"),Y=i(function(D){return{width:X(D),height:j(D)}},"getSize"),I=i(function(D){var S=q(D)||H(D);return{viewport:{width:S?Math.min(window.innerWidth,document.documentElement.clientWidth):D.clientWidth,height:S?window.innerHeight:D.clientHeight},size:S?{width:Math.max(X(document.body),X(document.documentElement)),height:Math.max(j(document.body),j(document.documentElement))}:Y(D)}},"getViewportAndElementSizes"),De={y:"scrollTop",x:"scrollLeft"},$={y:"pageYOffset",x:"pageXOffset"},_=i(function(D,S){return q(D)?D[$[S]]:D[De[S]]},"getScroll"),N=i(function(D,S,C){if(q(D)){var M=C==="y";D.scrollTo(M?D.pageXOffset:S,M?S:D.pageYOffset)}else D[De[C]]=S},"setScroll"),F=i(function(D,S){var C=D.getBoundingClientRect();if(C.width||C.height){var M={top:0,left:0},R=void 0;if(q(S)||H(S))R=document.documentElement,M.top=window[$.y],M.left=window[$.x];else{R=S;var ee=R.getBoundingClientRect();M.top=ee.top*-1+R[De.y],M.left=ee.left*-1+R[De.x]}return{top:C.top+M.top-R.clientTop,left:C.left+M.left-R.clientLeft}}return C},"getOffset"),B=(function(){return e?"onwheel"in document?"wheel":"mousewheel":"wheel"})(),V=i(function(D){return D==="wheel"?B:D},"eventName"),Q=i(function(D,S,C,M,R){C.split(" ").forEach(function(ee){D[S](V(ee),M,n?{passive:R}:!1)})},"apply"),ue=i(function(D,S,C,M){return Q(D,"addEventListener",S,C,M)},"addEvent"),b=i(function(D,S,C,M){return Q(D,"removeEventListener",S,C,M)},"removeEvent"),de=/^(\+|-)=(\d+(?:\.\d+)?)$/,be=i(function(D,S){var C={top:0,left:0,relative:!1};if(u(D,"top")||u(D,"left"))C=t({},C,D);else if(a(D))if(D.length>1)C.top=D[0],C.left=D[1];else if(D.length===1)C.top=S?D[0]:0,C.left=S?0:D[0];else return null;else if(l(D))S?C.top=D:C.left=D;else if(o(D)){var M=D.trim().match(de);if(!M)return null;var R=M[1],ee=parseInt(M[2],10);R==="+"?(C.top=S?ee:0,C.left=S?0:ee):(C.top=S?-ee:0,C.left=S?0:-ee),C.relative=!0}else return null;return C},"parseCoordinate"),k={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},Ae="click",$e="wheel touchstart touchmove",Lt=(function(){function D(S,C){var M=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(ee){var Pe=M,Ie=Pe.$el,ve=Pe.ctx;if(ve.start||(ve.start=ee),!ve.progress||!Ie){M.stop();return}var Ot=ve.opts,tt=ve.pos,St=ve.start,nr=ve.startPos,mr=ve.easing,Bt=Ot.duration,Vt={top:"y",left:"x"},Mt=ee-St,Le=Math.min(1,Math.max(Mt/Bt,0));Object.keys(tt).forEach(function(dr){var P=tt[dr],z=nr[dr],ie=P-z;if(ie!==0){var ce=mr(Le,Bt*Le,0,1,Bt);N(Ie,Math.round(z+ie*ce),Vt[dr])}}),Mt<=Bt?(M.hook(Ot,"step",Le),ve.id=D.raf(M.loop)):M.stop(!0)},this.handleClick=function(ee){for(var Pe=M.opts,Ie=ee.target;Ie&&Ie!==document;Ie=Ie.parentNode)if(O(Ie,Pe.trigger)){var ve=JSON.parse(Ie.getAttribute("data-scroll-options")||"{}"),Ot=Ie.getAttribute("data-scroll"),tt=Ot||Ie.getAttribute("href"),St=t({},Pe,ve),nr=St.preventDefault,mr=St.stopPropagation,Bt=St.vertical,Vt=St.horizontal;nr&&ee.preventDefault(),mr&&ee.stopPropagation(),M.ctx.$trigger=Ie,Vt&&Bt?M.to(tt,St):Bt?M.toTop(tt,St):Vt&&M.toLeft(tt,St);break}},this.handleStop=function(ee){var Pe=M.ctx,Ie=Pe.opts;Ie&&Ie.cancellable?(Pe.cancel=!0,M.stop()):ee.preventDefault()},this.opts=t({},k,S||{});var R=null;e&&(typeof C=="string"?R=T(C):C!=null?R=C:R=window),this.$el=R,R&&this.bind(!0,!1)}return i(D,"SweetScroll"),D.create=function(S,C){return new D(S,C)},D.prototype.to=function(S,C){if(e){var M=this,R=M.$el,ee=M.ctx,Pe=M.opts,Ie=ee.$trigger,ve=t({},Pe,C||{}),Ot=ve.offset,tt=ve.vertical,St=ve.horizontal,nr=E(ve.header)?ve.header:T(ve.header),mr=/^#/,Bt=o(S)&&mr.test(S)?S:null;if(ee.opts=ve,ee.cancel=!1,ee.hash=Bt,this.stop(),!!R){var Vt=be(Ot,tt),Mt=be(S,tt),Le={top:0,left:0};if(Mt)if(Mt.relative){var dr=_(R,tt?"y":"x");Le.top=tt?dr+Mt.top:Mt.top,Le.left=tt?Mt.left:dr+Mt.left}else Le=Mt;else if(o(S)&&S!=="#"){var P=T(S);if(!P)return;Le=F(P,R)}Vt&&(Le.top+=Vt.top,Le.left+=Vt.left),nr&&(Le.top=Math.max(0,Le.top-Y(nr).height));var z=I(R),ie=z.viewport,ce=z.size;if(Le.top=tt?Math.max(0,Math.min(ce.height-ie.height,Le.top)):_(R,"y"),Le.left=St?Math.max(0,Math.min(ce.width-ie.width,Le.left)):_(R,"x"),this.hook(ve,"before",Le,Ie)===!1){ee.opts=null;return}ee.pos=Le,this.start(ve),this.bind(!1,!0)}}},D.prototype.toTop=function(S,C){this.to(S,t({},C||{},{vertical:!0,horizontal:!1}))},D.prototype.toLeft=function(S,C){this.to(S,t({},C||{},{vertical:!1,horizontal:!0}))},D.prototype.toElement=function(S,C){var M=this.$el;!e||!M||this.to(F(S,M),C||{})},D.prototype.stop=function(S){S===void 0&&(S=!1);var C=this,M=C.$el,R=C.ctx,ee=R.pos;!M||!R.progress||(D.caf(R.id),R.progress=!1,R.start=0,R.id=0,S&&ee&&(N(M,ee.left,"x"),N(M,ee.top,"y")),this.complete())},D.prototype.update=function(S){if(this.$el){var C=t({},this.opts,S);this.stop(),this.unbind(!0,!0),this.opts=C,this.bind(!0,!1)}},D.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},D.prototype.onBefore=function(S,C){return!0},D.prototype.onStep=function(S){},D.prototype.onAfter=function(S,C){},D.prototype.onCancel=function(){},D.prototype.onComplete=function(S){},D.prototype.start=function(S){var C=this.ctx;C.opts=S,C.progress=!0,C.easing=s(S.easing)?S.easing:x[S.easing];var M=this.$el,R={top:_(M,"y"),left:_(M,"x")};C.startPos=R,C.id=D.raf(this.loop)},D.prototype.complete=function(){var S=this,C=S.$el,M=S.ctx,R=M.hash,ee=M.cancel,Pe=M.opts,Ie=M.pos,ve=M.$trigger;if(!(!C||!Pe)){if(R!=null&&R!==window.location.hash){var Ot=Pe.updateURL;e&&r&&Ot!==!1&&window.history[Ot==="replace"?"replaceState":"pushState"](null,"",R)}this.unbind(!1,!0),M.opts=null,M.$trigger=null,ee?this.hook(Pe,"cancel"):this.hook(Pe,"after",Ie,ve),this.hook(Pe,"complete",ee)}},D.prototype.hook=function(S,C){for(var M=[],R=2;R<arguments.length;R++)M[R-2]=arguments[R];var ee,Pe=S[C],Ie,ve;return s(Pe)&&(Ie=Pe.apply(this,M.concat([this]))),ve=(ee=this)["on"+(C[0].toUpperCase()+C.slice(1))].apply(ee,M),Ie!==void 0?Ie:ve},D.prototype.bind=function(S,C){var M=this,R=M.$el,ee=M.ctx.opts;R&&(S&&ue(R,Ae,this.handleClick,!1),C&&ue(R,$e,this.handleStop,ee?ee.cancellable:!0))},D.prototype.unbind=function(S,C){var M=this,R=M.$el,ee=M.ctx.opts;R&&(S&&b(R,Ae,this.handleClick,!1),C&&b(R,$e,this.handleStop,ee?ee.cancellable:!0))},D.raf=c,D.caf=f,D})();return Lt})});var iy={};ae(iy,{setup:()=>gq,staticStyles:()=>mq,styles:()=>dq});var ya={};ae(ya,{DeesComms:()=>Bm});var ge={};ae(ge,{Timeout:()=>wl,delayFor:()=>py,delayForRandom:()=>RO});var re={};ae(re,{CumulativeDeferred:()=>yl,Deferred:()=>xl,cumulativeDefer:()=>OO,defer:()=>on,fromCallback:()=>AO,getFirstTrueOrFalse:()=>NO,map:()=>_O,rejectedPromise:()=>IO,resolvedPromise:()=>MO,timeoutAndContinue:()=>PO,timeoutWrap:()=>fy});var xl=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((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},on=i(()=>new xl,"defer");var yl=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 e=on();return this.addPromise(e.promise),e}addPromise(e){this.accumulatedPromises.push(e)}},OO=i(()=>new yl,"cumulativeDefer");function MO(t){return Promise.resolve(t)}i(MO,"resolvedPromise");var IO=i(t=>Promise.reject(t),"rejectedPromise"),_O=i(async(t,e)=>Promise.all(t.map(e)),"map"),fy=i(async(t,e,r=!0)=>new Promise((n,o)=>{let s,a=i(()=>{s!==void 0&&(clearTimeout(s),s=void 0)},"releaseTimeout");s=setTimeout(()=>{s=void 0,r?o(new Error("timeout")):n(null)},e),t.then(l=>{a(),n(l)},l=>{a(),o(l)})}),"timeoutWrap"),PO=i(async(t,e=6e4)=>fy(t,e,!1),"timeoutAndContinue"),NO=i(async t=>{let e=on();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise},"getFirstTrueOrFalse"),AO=i(t=>new Promise((e,r)=>{t((n,o)=>{n?r(n):e(o)})}),"fromCallback");var py=i(async(t,e,r=!1)=>(await new wl(t,null,r).promise,e),"delayFor"),RO=i(async(t,e,r,n=!1)=>(await py(Math.random()*(e-t)+t,null,n),r),"delayForRandom"),wl=class{static{i(this,"Timeout")}constructor(e,r,n=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=on(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},e),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref?.()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}};var bl={};var At={};ae(At,{TYPED_REQUEST_REDACTED_PAYLOAD:()=>qo,TypedHandler:()=>Om,TypedRequest:()=>mf,TypedRequestRetryLimitError:()=>hf,TypedRequestTimeoutError:()=>pf,TypedResponseError:()=>Zt,TypedRouter:()=>Mm,TypedTarget:()=>Im,VirtualStream:()=>ur,VirtualStreamActivationScope:()=>Yr,VirtualStreamClosedError:()=>fi,VirtualStreamLifecycleContractError:()=>rf,VirtualStreamOpenTimeoutError:()=>pi,getTypedRequestResponseInterestKey:()=>uf});var xt={};ae(xt,{AsyncExecutionStack:()=>Zh,BackpressuredArray:()=>em,FastMap:()=>ai,Interest:()=>ra,InterestMap:()=>tm,LimitedArray:()=>rm,LoopTracker:()=>nm,ObjectMap:()=>Ur,Stringmap:()=>na,TimedAggregator:()=>ia,TimedAggregtor:()=>ia,Tree:()=>im,uni:()=>av});var Ps={};ae(Ps,{SmartMatch:()=>ah});var _s={};ae(_s,{isMatch:()=>zO,matcher:()=>BO});function Yn(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}i(Yn,"escapeStringRegexp");var sh=new Map,hy=i((t,e)=>{if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},"sanitizeArray"),LO=i((t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(sh.has(r))return sh.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=Yn(t).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return o.negated=n,sh.set(r,o),o},"makeRegexp"),my=i((t,e,r,n)=>{if(t=hy(t,"inputs"),e=hy(e,"patterns"),e.length===0)return[];e=e.map(a=>LO(a,r));let{allPatterns:o}=r||{},s=[];for(let a of t){let l,u=[...e].fill(!1);for(let[c,f]of e.entries())if(f.test(a)&&(u[c]=!0,l=!f.negated,!l))break;if(!(l===!1||l===void 0&&e.some(c=>!c.negated)||o&&u.some((c,f)=>!c&&!e[f].negated))&&(s.push(a),n))break}return s},"baseMatcher");function BO(t,e,r){return my(t,e,r,!1)}i(BO,"matcher");function zO(t,e,r){return my(t,e,r,!0).length>0}i(zO,"isMatch");var ah=class{static{i(this,"SmartMatch")}constructor(e){this.wildcard=e}match(e){return _s.isMatch(e,this.wildcard)}};var Me={};ae(Me,{ObservableIntake:()=>Ph,Observablemap:()=>_h,fromStreamWithBackpressure:()=>v_,rxjs:()=>uo});var uo={};ae(uo,{Observable:()=>ye,ReplaySubject:()=>no,Subject:()=>Pt,Subscription:()=>_t,from:()=>kr,fromEvent:()=>Kn,of:()=>Bs,ops:()=>b_});var lh=i(function(t,e){return lh=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])},lh(t,e)},"extendStatics");function Je(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");lh(t,e);function r(){this.constructor=t}i(r,"__"),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}i(Je,"__extends");var uh=i(function(){return uh=Object.assign||i(function(e){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)&&(e[s]=r[s])}return e},"__assign"),uh.apply(this,arguments)},"__assign");function WO(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}i(WO,"__rest");function $O(t,e,r,n){var o=arguments.length,s=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(e,r,s):a(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s}i($O,"__decorate");function UO(t,e){return function(r,n){e(r,n,t)}}i(UO,"__param");function qO(t,e,r,n,o,s){function a(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}i(a,"accept");for(var l=n.kind,u=l==="getter"?"get":l==="setter"?"set":"value",c=!e&&t?n.static?t:t.prototype:null,f=e||(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(w){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(w||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(qO,"__esDecorate");function YO(t,e,r){for(var n=arguments.length>2,o=0;o<e.length;o++)r=n?e[o].call(t,r):e[o].call(t);return n?r:void 0}i(YO,"__runInitializers");function VO(t){return typeof t=="symbol"?t:"".concat(t)}i(VO,"__propKey");function GO(t,e,r){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:r?"".concat(r," ",e):e})}i(GO,"__setFunctionName");function JO(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}i(JO,"__metadata");function ph(t,e,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(t,e||[])).next())})}i(ph,"__awaiter");function Ns(t,e){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=e.call(t,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(Ns,"__generator");var ch=Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]});function QO(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ch(e,t,r)}i(QO,"__exportStar");function ft(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:i(function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}},"next")};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}i(ft,"__values");function at(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,s=[],a;try{for(;(e===void 0||e-- >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 KO(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(at(arguments[e]));return t}i(KO,"__spread");function XO(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<r;e++)for(var s=arguments[e],a=0,l=s.length;a<l;a++,o++)n[o]=s[a];return n}i(XO,"__spreadArrays");function It(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,s;n<o;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}i(It,"__spreadArray");function $r(t){return this instanceof $r?(this.v=t,this):new $r(t)}i($r,"__await");function hh(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),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,w){s.push([m,g,x,w])>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 $r?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(hh,"__asyncGenerator");function ZO(t){var e,r;return e={},n("next"),n("throw",function(o){throw o}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(o,s){e[o]=t[o]?function(a){return(r=!r)?{value:$r(t[o](a)),done:!1}:s?s(a):a}:s}}i(ZO,"__asyncDelegator");function mh(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof ft=="function"?ft(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(l,u){a=t[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(mh,"__asyncValues");function eM(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}i(eM,"__makeTemplateObject");var tM=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e},fh=i(function(t){return fh=Object.getOwnPropertyNames||function(e){var r=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[r.length]=n);return r},fh(t)},"ownKeys");function rM(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=fh(t),n=0;n<r.length;n++)r[n]!=="default"&&ch(e,t,r[n]);return tM(e,t),e}i(rM,"__importStar");function nM(t){return t&&t.__esModule?t:{default:t}}i(nM,"__importDefault");function iM(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}i(iM,"__classPrivateFieldGet");function oM(t,e,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 e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r}i(oM,"__classPrivateFieldSet");function sM(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}i(sM,"__classPrivateFieldIn");function aM(t,e,r){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=e[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=e[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")),t.stack.push({value:e,dispose:n,async:r})}else r&&t.stack.push({async:!0});return e}i(aM,"__addDisposableResource");var lM=typeof SuppressedError=="function"?SuppressedError:function(t,e,r){var n=new Error(r);return n.name="SuppressedError",n.error=t,n.suppressed=e,n};function uM(t){function e(s){t.error=t.hasError?new lM(s,t.error,"An error was suppressed during disposal."):s,t.hasError=!0}i(e,"fail");var r,n=0;function o(){for(;r=t.stack.pop();)try{if(!r.async&&n===1)return n=0,t.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 e(a),o()})}else n|=1}catch(a){e(a)}if(n===1)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}return i(o,"next"),o()}i(uM,"__disposeResources");function cM(t,e){return typeof t=="string"&&/^\.\.?\//.test(t)?t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,o,s,a){return n?e?".jsx":".js":o&&(!s||!a)?r:o+s+"."+a.toLowerCase()+"js"}):t}i(cM,"__rewriteRelativeImportExtension");var zq={__extends:Je,__assign:uh,__rest:WO,__decorate:$O,__param:UO,__esDecorate:qO,__runInitializers:YO,__propKey:VO,__setFunctionName:GO,__metadata:JO,__awaiter:ph,__generator:Ns,__createBinding:ch,__exportStar:QO,__values:ft,__read:at,__spread:KO,__spreadArrays:XO,__spreadArray:It,__await:$r,__asyncGenerator:hh,__asyncDelegator:ZO,__asyncValues:mh,__makeTemplateObject:eM,__importStar:rM,__importDefault:nM,__classPrivateFieldGet:iM,__classPrivateFieldSet:oM,__classPrivateFieldIn:sM,__addDisposableResource:aM,__disposeResources:uM,__rewriteRelativeImportExtension:cM};function fe(t){return typeof t=="function"}i(fe,"isFunction");function Sl(t){var e=i(function(n){Error.call(n),n.stack=new Error().stack},"_super"),r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}i(Sl,"createErrorClass");var As=Sl(function(t){return i(function(r){t(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 or(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}i(or,"arrRemove");var _t=(function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i(t,"Subscription"),t.prototype.unsubscribe=function(){var e,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){e={error:g}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}else a.remove(this);var f=this.initialTeardown;if(fe(f))try{f()}catch(g){s=g instanceof As?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{dy(d)}catch(g){s=s??[],g instanceof As?s=It(It([],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 As(s)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)dy(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&or(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&or(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=(function(){var e=new t;return e.closed=!0,e})(),t})(),dh=_t.EMPTY;function kl(t){return t instanceof _t||t&&"closed"in t&&fe(t.remove)&&fe(t.add)&&fe(t.unsubscribe)}i(kl,"isSubscription");function dy(t){fe(t)?t():t.unsubscribe()}i(dy,"execFinalizer");var Gt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var eo={setTimeout:i(function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=eo.delegate;return o?.setTimeout?o.setTimeout.apply(o,It([t,e],at(r))):setTimeout.apply(void 0,It([t,e],at(r)))},"setTimeout"),clearTimeout:i(function(t){var e=eo.delegate;return(e?.clearTimeout||clearTimeout)(t)},"clearTimeout"),delegate:void 0};function Tl(t){eo.setTimeout(function(){var e=Gt.onUnhandledError;if(e)e(t);else throw t})}i(Tl,"reportUnhandledError");function yr(){}i(yr,"noop");var gy=(function(){return gh("C",void 0,void 0)})();function xy(t){return gh("E",void 0,t)}i(xy,"errorNotification");function yy(t){return gh("N",t,void 0)}i(yy,"nextNotification");function gh(t,e,r){return{kind:t,value:e,error:r}}i(gh,"createNotification");var Vn=null;function to(t){if(Gt.useDeprecatedSynchronousErrorHandling){var e=!Vn;if(e&&(Vn={errorThrown:!1,error:null}),t(),e){var r=Vn,n=r.errorThrown,o=r.error;if(Vn=null,n)throw o}}else t()}i(to,"errorContext");function wy(t){Gt.useDeprecatedSynchronousErrorHandling&&Vn&&(Vn.errorThrown=!0,Vn.error=t)}i(wy,"captureError");var Gn=(function(t){Je(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,kl(r)&&r.add(n)):n.destination=hM,n}return i(e,"Subscriber"),e.create=function(r,n,o){return new sn(r,n,o)},e.prototype.next=function(r){this.isStopped?yh(yy(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?yh(xy(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?yh(gy,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e})(_t),cM=Function.prototype.bind;function xh(t,e){return cM.call(t,e)}i(xh,"bind");var fM=(function(){function t(e){this.partialObserver=e}return i(t,"ConsumerObserver"),t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){El(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){El(n)}else El(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){El(r)}},t})(),sn=(function(t){Je(e,t);function e(r,n,o){var s=t.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&&Gt.useDeprecatedNextContext?(l=Object.create(r),l.unsubscribe=function(){return s.unsubscribe()},a={next:r.next&&xh(r.next,l),error:r.error&&xh(r.error,l),complete:r.complete&&xh(r.complete,l)}):a=r}return s.destination=new fM(a),s}return i(e,"SafeSubscriber"),e})(Gn);function El(t){Gt.useDeprecatedSynchronousErrorHandling?wy(t):Tl(t)}i(El,"handleUnhandledError");function pM(t){throw t}i(pM,"defaultErrorHandler");function yh(t,e){var r=Gt.onStoppedNotification;r&&eo.setTimeout(function(){return r(t,e)})}i(yh,"handleStoppedNotification");var hM={closed:!0,next:yr,error:pM,complete:yr};var Jn=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function wr(t){return t}i(wr,"identity");function mM(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return wh(t)}i(mM,"pipe");function wh(t){return t.length===0?wr:t.length===1?t[0]:i(function(r){return t.reduce(function(n,o){return o(n)},r)},"piped")}i(wh,"pipeFromArray");var ye=(function(){function t(e){e&&(this._subscribe=e)}return i(t,"Observable"),t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var o=this,s=gM(e)?e:new sn(e,r,n);return to(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},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=by(r),new r(function(o,s){var a=new sn({next:i(function(l){try{e(l)}catch(u){s(u),a.unsubscribe()}},"next"),error:s,complete:o});n.subscribe(a)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[Jn]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return wh(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=by(e),new e(function(n,o){var s;r.subscribe(function(a){return s=a},function(a){return o(a)},function(){return n(s)})})},t.create=function(e){return new t(e)},t})();function by(t){var e;return(e=t??Gt.Promise)!==null&&e!==void 0?e:Promise}i(by,"getPromiseCtor");function dM(t){return t&&fe(t.next)&&fe(t.error)&&fe(t.complete)}i(dM,"isObserver");function gM(t){return t&&t instanceof Gn||dM(t)&&kl(t)}i(gM,"isSubscriber");function xM(t){return fe(t?.lift)}i(xM,"hasLift");function ke(t){return function(e){if(xM(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}i(ke,"operate");function Te(t,e,r,n,o){return new vy(t,e,r,n,o)}i(Te,"createOperatorSubscriber");var vy=(function(t){Je(e,t);function e(r,n,o,s,a,l){var u=t.call(this,r)||this;return u.onFinalize=a,u.shouldUnsubscribe=l,u._next=n?function(c){try{n(c)}catch(f){r.error(f)}}:t.prototype._next,u._error=s?function(c){try{s(c)}catch(f){r.error(f)}finally{this.unsubscribe()}}:t.prototype._error,u._complete=o?function(){try{o()}catch(c){r.error(c)}finally{this.unsubscribe()}}:t.prototype._complete,u}return i(e,"OperatorSubscriber"),e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e})(Gn);var bh=Sl(function(t){return i(function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"},"ObjectUnsubscribedErrorImpl")});var Pt=(function(t){Je(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return i(e,"Subject"),e.prototype.lift=function(r){var n=new vh(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new bh},e.prototype.next=function(r){var n=this;to(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}}}})},e.prototype.error=function(r){var n=this;to(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)}})},e.prototype.complete=function(){var r=this;to(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.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}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,o=this,s=o.hasError,a=o.isStopped,l=o.observers;return s||a?dh:(this.currentObservers=null,l.push(r),new _t(function(){n.currentObservers=null,or(l,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,s=n.thrownError,a=n.isStopped;o?r.error(s):a&&r.complete()},e.prototype.asObservable=function(){var r=new ye;return r.source=this,r},e.create=function(r,n){return new vh(r,n)},e})(ye),vh=(function(t){Je(e,t);function e(r,n){var o=t.call(this)||this;return o.destination=r,o.source=n,o}return i(e,"AnonymousSubject"),e.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)},e.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)},e.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)},e.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:dh},e})(Pt);var ro=(function(t){Je(e,t);function e(r){var n=t.call(this)||this;return n._value=r,n}return i(e,"BehaviorSubject"),Object.defineProperty(e.prototype,"value",{get:i(function(){return this.getValue()},"get"),enumerable:!1,configurable:!0}),e.prototype._subscribe=function(r){var n=t.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},e.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,s=r._value;if(n)throw o;return this._throwIfClosed(),s},e.prototype.next=function(r){t.prototype.next.call(this,this._value=r)},e})(Pt);var Rs={now:i(function(){return(Rs.delegate||Date).now()},"now"),delegate:void 0};var no=(function(t){Je(e,t);function e(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Rs);var s=t.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(e,"ReplaySubject"),e.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(),t.prototype.next.call(this,r)},e.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},e.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)}},e})(Pt);var Sh=(function(t){Je(e,t);function e(r,n){return t.call(this)||this}return i(e,"Action"),e.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},e})(_t);var Fs={setInterval:i(function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Fs.delegate;return o?.setInterval?o.setInterval.apply(o,It([t,e],at(r))):setInterval.apply(void 0,It([t,e],at(r)))},"setInterval"),clearInterval:i(function(t){var e=Fs.delegate;return(e?.clearInterval||clearInterval)(t)},"clearInterval"),delegate:void 0};var kh=(function(t){Je(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return i(e,"AsyncAction"),e.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},e.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Fs.setInterval(r.flush.bind(r,this),o)},e.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Fs.clearInterval(n)},e.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))},e.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},e.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,or(s,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e})(Sh);var Ls=(function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return i(t,"Scheduler"),t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=Rs.now,t})();var Th=(function(t){Je(e,t);function e(r,n){n===void 0&&(n=Ls.now);var o=t.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return i(e,"AsyncScheduler"),e.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}},e})(Ls);var br=new Th(kh),Eh=br;function Dl(t){return t&&fe(t.schedule)}i(Dl,"isScheduler");function Dh(t){return t[t.length-1]}i(Dh,"last");function Sy(t){return fe(Dh(t))?t.pop():void 0}i(Sy,"popResultSelector");function vr(t){return Dl(Dh(t))?t.pop():void 0}i(vr,"popScheduler");function U4(t,e){return typeof Dh(t)=="number"?t.pop():e}i(U4,"popNumber");var io=i((function(t){return t&&typeof t.length=="number"&&typeof t!="function"}),"isArrayLike");function Cl(t){return fe(t?.then)}i(Cl,"isPromise");function Ol(t){return fe(t[Jn])}i(Ol,"isInteropObservable");function Ml(t){return Symbol.asyncIterator&&fe(t?.[Symbol.asyncIterator])}i(Ml,"isAsyncIterable");function Il(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}i(Il,"createInvalidObservableTypeError");function yM(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}i(yM,"getSymbolIterator");var _l=yM();function Pl(t){return fe(t?.[_l])}i(Pl,"isIterable");function Nl(t){return hh(this,arguments,i(function(){var r,n,o,s;return Ns(this,function(a){switch(a.label){case 0:r=t.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,$r(r.read())];case 3:return n=a.sent(),o=n.value,s=n.done,s?[4,$r(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,$r(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(Nl,"readableStreamLikeToAsyncGenerator");function Al(t){return fe(t?.getReader)}i(Al,"isReadableStreamLike");function Fe(t){if(t instanceof ye)return t;if(t!=null){if(Ol(t))return wM(t);if(io(t))return bM(t);if(Cl(t))return vM(t);if(Ml(t))return ky(t);if(Pl(t))return SM(t);if(Al(t))return kM(t)}throw Il(t)}i(Fe,"innerFrom");function wM(t){return new ye(function(e){var r=t[Jn]();if(fe(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}i(wM,"fromInteropObservable");function bM(t){return new ye(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}i(bM,"fromArrayLike");function vM(t){return new ye(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,Tl)})}i(vM,"fromPromise");function SM(t){return new ye(function(e){var r,n;try{for(var o=ft(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(l){r={error:l}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.complete()})}i(SM,"fromIterable");function ky(t){return new ye(function(e){TM(t,e).catch(function(r){return e.error(r)})})}i(ky,"fromAsyncIterable");function kM(t){return ky(Nl(t))}i(kM,"fromReadableStreamLike");function TM(t,e){var r,n,o,s;return ph(this,void 0,void 0,function(){var a,l;return Ns(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=mh(t),u.label=1;case 1:return[4,r.next()];case 2:if(n=u.sent(),!!n.done)return[3,4];if(a=n.value,e.next(a),e.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 e.complete(),[2]}})})}i(TM,"process");function lt(t,e,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var s=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!o)return s}i(lt,"executeSchedule");function oo(t,e){return e===void 0&&(e=0),ke(function(r,n){r.subscribe(Te(n,function(o){return lt(n,t,function(){return n.next(o)},e)},function(){return lt(n,t,function(){return n.complete()},e)},function(o){return lt(n,t,function(){return n.error(o)},e)}))})}i(oo,"observeOn");function so(t,e){return e===void 0&&(e=0),ke(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}i(so,"subscribeOn");function Ty(t,e){return Fe(t).pipe(so(e),oo(e))}i(Ty,"scheduleObservable");function Ey(t,e){return Fe(t).pipe(so(e),oo(e))}i(Ey,"schedulePromise");function Dy(t,e){return new ye(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}i(Dy,"scheduleArray");function Cy(t,e){return new ye(function(r){var n;return lt(r,e,function(){n=t[_l](),lt(r,e,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(Cy,"scheduleIterable");function Rl(t,e){if(!t)throw new Error("Iterable cannot be null");return new ye(function(r){lt(r,e,function(){var n=t[Symbol.asyncIterator]();lt(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}i(Rl,"scheduleAsyncIterable");function Oy(t,e){return Rl(Nl(t),e)}i(Oy,"scheduleReadableStreamLike");function Ch(t,e){if(t!=null){if(Ol(t))return Ty(t,e);if(io(t))return Dy(t,e);if(Cl(t))return Ey(t,e);if(Ml(t))return Rl(t,e);if(Pl(t))return Cy(t,e);if(Al(t))return Oy(t,e)}throw Il(t)}i(Ch,"scheduled");function Sr(t,e){return e?Ch(t,e):Fe(t)}i(Sr,"from");function Bs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=vr(t);return Sr(t,r)}i(Bs,"of");function My(t){return t instanceof Date&&!isNaN(t)}i(My,"isValidDate");function kr(t,e){return ke(function(r,n){var o=0;r.subscribe(Te(n,function(s){n.next(t.call(e,s,o++))}))})}i(kr,"map");var EM=Array.isArray;function DM(t,e){return EM(e)?t.apply(void 0,It([],at(e))):t(e)}i(DM,"callOrApply");function Fl(t){return kr(function(e){return DM(t,e)})}i(Fl,"mapOneOrManyArgs");var CM=Array.isArray,OM=Object.getPrototypeOf,MM=Object.prototype,IM=Object.keys;function Iy(t){if(t.length===1){var e=t[0];if(CM(e))return{args:e,keys:null};if(_M(e)){var r=IM(e);return{args:r.map(function(n){return e[n]}),keys:r}}}return{args:t,keys:null}}i(Iy,"argsArgArrayOrObject");function _M(t){return t&&typeof t=="object"&&OM(t)===MM}i(_M,"isPOJO");function _y(t,e){return t.reduce(function(r,n,o){return r[n]=e[o],r},{})}i(_y,"createObject");function Oh(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=vr(t),n=Sy(t),o=Iy(t),s=o.args,a=o.keys;if(s.length===0)return Sr([],r);var l=new ye(PM(s,r,a?function(u){return _y(a,u)}:wr));return n?l.pipe(Fl(n)):l}i(Oh,"combineLatest");function PM(t,e,r){return r===void 0&&(r=wr),function(n){Py(e,function(){for(var o=t.length,s=new Array(o),a=o,l=o,u=i(function(f){Py(e,function(){var p=Sr(t[f],e),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(PM,"combineLatestInit");function Py(t,e,r){t?lt(r,t,e):e()}i(Py,"maybeSchedule");function Ny(t,e,r,n,o,s,a,l){var u=[],c=0,f=0,p=!1,h=i(function(){p&&!u.length&&!c&&e.complete()},"checkComplete"),m=i(function(g){return c<n?d(g):u.push(g)},"outerNext"),d=i(function(g){s&&e.next(g),c++;var x=!1;Fe(r(g,f++)).subscribe(Te(e,function(w){o?.(w),s?m(w):e.next(w)},function(){x=!0},void 0,function(){if(x)try{c--;for(var w=i(function(){var T=u.shift();a?lt(e,a,function(){return d(T)}):d(T)},"_loop_1");u.length&&c<n;)w();h()}catch(T){e.error(T)}}))},"doInnerSub");return t.subscribe(Te(e,m,function(){p=!0,h()})),function(){l?.()}}i(Ny,"mergeInternals");function Qn(t,e,r){return r===void 0&&(r=1/0),fe(e)?Qn(function(n,o){return kr(function(s,a){return e(n,s,o,a)})(Fe(t(n,o)))},r):(typeof e=="number"&&(r=e),ke(function(n,o){return Ny(n,o,t,r)}))}i(Qn,"mergeMap");function Ll(t){return t===void 0&&(t=1/0),Qn(wr,t)}i(Ll,"mergeAll");function Bl(){return Ll(1)}i(Bl,"concatAll");function zl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Bl()(Sr(t,vr(t)))}i(zl,"concat");var NM=["addListener","removeListener"],AM=["addEventListener","removeEventListener"],RM=["on","off"];function Kn(t,e,r,n){if(fe(r)&&(n=r,r=void 0),n)return Kn(t,e,r).pipe(Fl(n));var o=at(BM(t)?AM.map(function(l){return function(u){return t[l](e,u,r)}}):FM(t)?NM.map(Ay(t,e)):LM(t)?RM.map(Ay(t,e)):[],2),s=o[0],a=o[1];if(!s&&io(t))return Qn(function(l){return Kn(l,e,r)})(Fe(t));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 Ay(t,e){return function(r){return function(n){return t[r](e,n)}}}i(Ay,"toCommonHandlerRegistry");function FM(t){return fe(t.addListener)&&fe(t.removeListener)}i(FM,"isNodeStyleEventEmitter");function LM(t){return fe(t.on)&&fe(t.off)}i(LM,"isJQueryStyleEventEmitter");function BM(t){return fe(t.addEventListener)&&fe(t.removeEventListener)}i(BM,"isEventTarget");function zs(t,e,r){t===void 0&&(t=0),r===void 0&&(r=Eh);var n=-1;return e!=null&&(Dl(e)?r=e:n=e),new ye(function(o){var s=My(t)?+t-r.now():t;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(zs,"timer");function Mh(t,e){return t===void 0&&(t=0),e===void 0&&(e=br),t<0&&(t=0),zs(t,t,e)}i(Mh,"interval");function jl(t,e){return ke(function(r,n){var o=0;r.subscribe(Te(n,function(s){return t.call(e,s,o++)&&n.next(s)}))})}i(jl,"filter");function Hl(t){return ke(function(e,r){var n=[];return e.subscribe(Te(r,function(o){return n.push(o)},function(){r.next(n),r.complete()})),Fe(t).subscribe(Te(r,function(){var o=n;n=[],r.next(o)},yr)),function(){n=null}})}i(Hl,"buffer");function Wl(t,e){return e===void 0&&(e=null),e=e??t,ke(function(r,n){var o=[],s=0;r.subscribe(Te(n,function(a){var l,u,c,f,p=null;s++%e===0&&o.push([]);try{for(var h=ft(o),m=h.next();!m.done;m=h.next()){var d=m.value;d.push(a),t<=d.length&&(p=p??[],p.push(d))}}catch(w){l={error:w}}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;or(o,d),n.next(d)}}catch(w){c={error:w}}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(Wl,"bufferCount");function $l(t){for(var e,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var s=(e=vr(n))!==null&&e!==void 0?e:br,a=(r=n[0])!==null&&r!==void 0?r:null,l=n[1]||1/0;return ke(function(u,c){var f=[],p=!1,h=i(function(g){var x=g.buffer,w=g.subs;w.unsubscribe(),or(f,g),c.next(x),p&&m()},"emit"),m=i(function(){if(f){var g=new _t;c.add(g);var x=[],w={buffer:x,subs:g};f.push(w),lt(g,s,function(){return h(w)},t)}},"startBuffer");a!==null&&a>=0?lt(c,s,m,a,!0):p=!0,m();var d=Te(c,function(g){var x,w,T=f.slice();try{for(var E=ft(T),q=E.next();!q.done;q=E.next()){var H=q.value,O=H.buffer;O.push(g),l<=O.length&&h(H)}}catch(j){x={error:j}}finally{try{q&&!q.done&&(w=E.return)&&w.call(E)}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($l,"bufferTime");function Ul(t){return ke(function(e,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");e.subscribe(Te(r,function(l){s?.unsubscribe(),n=!0,o=l,s=Te(r,a,yr),Fe(t(l)).subscribe(s)},function(){a(),r.complete()},void 0,function(){o=s=null}))})}i(Ul,"debounce");function ql(t,e){return e===void 0&&(e=br),ke(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+t,f=e.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=e.now(),o||(o=e.schedule(u,t),n.add(o))},function(){l(),n.complete()},void 0,function(){s=o=null}))})}i(ql,"debounceTime");function ao(t,e){return e===void 0&&(e=wr),t=t??zM,ke(function(r,n){var o,s=!0;r.subscribe(Te(n,function(a){var l=e(a);(s||!t(o,l))&&(s=!1,o=l,n.next(a))}))})}i(ao,"distinctUntilChanged");function zM(t,e){return t===e}i(zM,"defaultCompare");function Yl(t){t===void 0&&(t={});var e=t.connector,r=e===void 0?function(){return new Pt}:e,n=t.resetOnError,o=n===void 0?!0:n,s=t.resetOnComplete,a=s===void 0?!0:s,l=t.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"),w=i(function(){x(),f=h=void 0,d=g=!1},"reset"),T=i(function(){var E=f;w(),E?.unsubscribe()},"resetAndUnsubscribe");return ke(function(E,q){m++,!g&&!d&&x();var H=h=h??r();q.add(function(){m--,m===0&&!g&&!d&&(p=Ih(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=Ih(w,o,O),H.error(O)},"error"),complete:i(function(){d=!0,x(),p=Ih(w,a),H.complete()},"complete")}),Fe(E).subscribe(f))})(c)}}i(Yl,"share");function Ih(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(e===!0){t();return}if(e!==!1){var o=new sn({next:i(function(){o.unsubscribe(),t()},"next")});return Fe(e.apply(void 0,It([],at(r)))).subscribe(o)}}i(Ih,"handleReset");function Vl(t,e,r){var n,o,s,a,l=!1;return t&&typeof t=="object"?(n=t.bufferSize,a=n===void 0?1/0:n,o=t.windowTime,e=o===void 0?1/0:o,s=t.refCount,l=s===void 0?!1:s,r=t.scheduler):a=t??1/0,Yl({connector:i(function(){return new no(a,e,r)},"connector"),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}i(Vl,"shareReplay");function Gl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=vr(t);return ke(function(n,o){(r?zl(t,n,r):zl(t,n)).subscribe(o)})}i(Gl,"startWith");function lo(t){return ke(function(e,r){Fe(t).subscribe(Te(r,function(){return r.complete()},yr)),!r.closed&&e.subscribe(r)})}i(lo,"takeUntil");function Jl(t,e){return ke(function(r,n){var o=e??{},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(w){return p=Fe(t(w)).subscribe(Te(n,m,d))},"startThrottle"),x=i(function(){if(c){c=!1;var w=f;f=null,n.next(w),!h&&g(w)}},"send");r.subscribe(Te(n,function(w){c=!0,f=w,!(p&&!p.closed)&&(a?x():g(w))},function(){h=!0,!(u&&c&&p&&!p.closed)&&n.complete()}))})}i(Jl,"throttle");function Ql(t,e,r){e===void 0&&(e=br);var n=zs(t,e);return Jl(function(){return n},r)}i(Ql,"throttleTime");var w_={buffer:Hl,bufferCount:Wl,bufferTime:$l,debounce:Ul,debounceTime:ql,filter:jl,map:kr,startWith:Gl,takeUntil:lo,throttleTime:Ql};var _h=class{static{i(this,"Observablemap")}constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let o=Kn(e,r),s=new Pt;o.subscribe(s);let a={subject:s,eventRef:e,event:r};return this.observableEventEmitterBundleArray.push(a),a.subject}}getSubjectForEventTarget(e,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let s={subject:new Pt,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(s),s.subject}}};var Ph=class{static{i(this,"ObservableIntake")}constructor(){this.observableFunctions={next:i(e=>{},"next"),complete:i(e=>{},"complete")},this.buffered=!1,this.payloadBuffer=[],this.observable=new ye(e=>{this.observableFunctions.next=r=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=re.defer(),this.completed=this.completedDeffered.promise}setObservable(e){this.observable=e}push(e){this.buffered?this.payloadBuffer.push(e):this.internalPush(e)}pushMany(e){for(let r of e)this.push(r)}setGenerator(e){this.generator=e}makeBuffered(){this.buffered=!0}subscribe(...e){return this.observable.subscribe(...e)}request(e){if(e!==0)for(let r=0;r!==e;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{if(!this.generator)throw new Error("Cannot request an unbuffered value before setting a generator");let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}};function b_(t){return new ye(e=>{let r=i(()=>t.pause(),"pauseStream"),n=i(()=>process.nextTick(()=>t.resume()),"resumeStream"),o=i(s=>{r(),e.next(s),n()},"onData");return t.on("data",o),t.on("error",s=>e.error(s)),t.on("end",()=>e.complete()),t.on("close",()=>e.complete()),()=>{t.removeListener("data",o),t.removeListener("error",e.error),t.removeListener("end",e.complete),t.removeListener("close",e.complete)}})}i(b_,"fromStreamWithBackpressure");var si={};ae(si,{CronJob:()=>ta,CronManager:()=>Yh,ExtendedDate:()=>Gh,HrtMeasurement:()=>Jh,Interval:()=>Qh,TimeStamp:()=>Ao,Timer:()=>Kh,getMilliSecondsAsHumanReadableAgoTime:()=>KP,getMilliSecondsAsHumanReadableString:()=>QP,getMilliSecondsFromUnits:()=>Vh,units:()=>wn});var $s={};ae($s,{Cron:()=>jy,CronDate:()=>Qe,CronPattern:()=>Kl,scheduledJobs:()=>co});function js(t){return Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)}i(js,"T");function Nh(t,e){return t.y===e.y&&t.m===e.m&&t.d===e.d&&t.h===e.h&&t.i===e.i&&t.s===e.s}i(Nh,"D");function v_(t,e){let r=new Date(Date.parse(t));if(isNaN(r))throw new Error("Invalid ISO8601 passed to timezone parser.");let n=t.substring(9);return n.includes("Z")||n.includes("+")||n.includes("-")?Ah(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Ah(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}i(v_,"A");function Ry(t,e,r){return Fy(v_(t,e),r)}i(Ry,"v");function Fy(t,e){let r=new Date(js(t)),n=Hs(r,t.tz),o=js(t),s=js(n),a=o-s,l=new Date(r.getTime()+a),u=Hs(l,t.tz);if(Nh(u,t)){let p=new Date(l.getTime()-36e5),h=Hs(p,t.tz);return Nh(h,t)?p:l}let c=new Date(l.getTime()+js(t)-js(u)),f=Hs(c,t.tz);if(Nh(f,t))return c;if(e)throw new Error("Invalid date passed to fromTZ()");return l.getTime()>c.getTime()?l:c}i(Fy,"k");function Hs(t,e){let r,n;try{r=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1}),n=r.formatToParts(t)}catch(s){let a=s instanceof Error?s.message:String(s);throw new RangeError(`toTZ: Invalid timezone '${e}' 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 '${e}'. 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:e}}i(Hs,"g");function Ah(t,e,r,n,o,s,a){return{y:t,m:e,d:r,h:n,i:o,s,tz:a}}i(Ah,"b");var Ly=[1,2,4,8,16],Kl=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(t,e,r){this.pattern=t,this.timezone=e,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 t=this.pattern.match(/\S+/g)||[""],e=t.length;if(t.length<5||t.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(e):e===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 ${e} parts.`)}}if(t.length===5&&t.unshift("0"),t.length===6&&t.push("*"),t[3].toUpperCase()==="LW"?(this.lastWeekday=!0,t[3]=""):t[3].toUpperCase().indexOf("L")>=0&&(t[3]=t[3].replace(/L/gi,""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[6]=="*"&&(this.starYear=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.alternativeWeekdays?this.replaceAlphaDaysQuartz(t[5]):this.replaceAlphaDays(t[5])),t[5].startsWith("+")&&(this.useAndLogic=!0,t[5]=t[5].substring(1),t[5]===""))throw new TypeError("CronPattern: Day-of-week field cannot be empty after '+' modifier.");switch(t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0&&(t[0]=t[0].replace(/\?/g,"*"),t[1]=t[1].replace(/\?/g,"*"),t[2]=t[2].replace(/\?/g,"*"),t[3]=t[3].replace(/\?/g,"*"),t[4]=t[4].replace(/\?/g,"*"),t[5]=t[5].replace(/\?/g,"*"),t[6]&&(t[6]=t[6].replace(/\?/g,"*"))),this.mode){case"5-part":t[0]="0",t[6]="*";break;case"6-part":t[6]="*";break;case"5-or-6-parts":t[6]="*";break;case"6-or-7-parts":break;case"7-part":case"auto":break}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0,1),this.partToArray("minute",t[1],0,1),this.partToArray("hour",t[2],0,1),this.partToArray("day",t[3],-1,1),this.partToArray("month",t[4],-1,1);let r=this.alternativeWeekdays?-1:0;this.partToArray("dayOfWeek",t[5],r,63),this.partToArray("year",t[6],0,1),!this.alternativeWeekdays&&this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(t,e,r,n){let o=this[t],s=t==="day"&&this.lastDayOfMonth,a=t==="day"&&this.lastWeekday;if(e===""&&!s&&!a)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return o.fill(n);let l=e.split(",");if(l.length>1)for(let u=0;u<l.length;u++)this.partToArray(t,l[u],r,n);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,r,n):e.indexOf("-")!==-1?this.handleRange(e,t,r,n):e.indexOf("/")!==-1?this.handleStepping(e,t,r,n):e!==""&&this.handleNumber(e,t,r,n)}throwAtIllegalCharacters(t){for(let e=0;e<t.length;e++)if((e===3?/[^/*0-9,\-WwLl]+/:e===5?/[^/*0-9,\-#Ll]+/:/[^/*0-9,\-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")}handleNumber(t,e,r,n){let o=this.extractNth(t,e),s=t.toUpperCase().includes("W");if(e!=="day"&&s)throw new TypeError("CronPattern: Nearest weekday modifier (W) only allowed in day-of-month.");s&&(e="nearestWeekdays");let a=parseInt(o[0],10)+r;if(isNaN(a))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,a,o[1]||n)}setPart(t,e,r){if(!Object.prototype.hasOwnProperty.call(this,t))throw new TypeError("CronPattern: Invalid part specified: "+t);if(t==="dayOfWeek"){if(e===7&&(e=0),e<0||e>6)throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+e);this.setNthWeekdayOfMonth(e,r);return}if(t==="second"||t==="minute"){if(e<0||e>=60)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="hour"){if(e<0||e>=24)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="day"||t==="nearestWeekdays"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"){if(e<0||e>=12)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="year"&&(e<1||e>=1e4))throw new RangeError("CronPattern: Invalid value for "+t+": "+e+" (supported range: 1-9999)");this[t][e]=r}validateNotNaN(t,e){if(isNaN(t))throw new TypeError(e)}validateRange(t,e,r,n,o){if(t>e)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(t,e,r,n){if(t.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in ranges with stepping.");let o=this.extractNth(t,e),s=o[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(s===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");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,e,t);for(let h=c;h<=f;h+=p)this.setPart(e,h,o[1]||n)}extractNth(t,e){let r=t,n;if(r.includes("#")){if(e!=="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(e!=="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(t,e,r,n){if(t.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in a range.");let o=this.extractNth(t,e),s=o[0].split("-");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");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,e,t);for(let u=a;u<=l;u++)this.setPart(e,u,o[1]||n)}handleStepping(t,e,r,n){if(t.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in parts with stepping.");let o=this.extractNth(t,e),s=o[0].split("/");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");if(this.sloppyRanges)s[0]===""&&(s[0]="*");else{if(s[0]==="")throw new TypeError("CronPattern: Syntax error, stepping with missing prefix ('"+t+"') 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 ('"+t+"') 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[e].length-1,l,e,t);for(let u=a;u<this[e].length;u+=l)this.setPart(e,u,o[1]||n)}replaceAlphaDays(t){return t.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")}replaceAlphaDaysQuartz(t){return t.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(t){return t.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")}handleNicknames(t){let e=t.trim().toLowerCase();if(e==="@yearly"||e==="@annually")return"0 0 1 1 *";if(e==="@monthly")return"0 0 1 * *";if(e==="@weekly")return"0 0 * * 0";if(e==="@daily"||e==="@midnight")return"0 0 * * *";if(e==="@hourly")return"0 * * * *";if(e==="@reboot")throw new TypeError("CronPattern: @reboot is not supported in this environment. This is an event-based trigger that requires system startup detection.");return t}setNthWeekdayOfMonth(t,e){if(typeof e!="number"&&e.toUpperCase()==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|32;else if(e===63)this.dayOfWeek[t]=63;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|Ly[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},Rh=[31,28,31,30,31,30,31,31,30,31,30,31],Re=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Qe=class zy{static{i(this,"s")}tz;ms;second;minute;hour;day;month;year;constructor(e,r){if(this.tz=r,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e==null)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof zy)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}getLastDayOfMonth(e,r){return r!==1?Rh[r]:new Date(Date.UTC(e,r+1,0)).getUTCDate()}getLastWeekday(e,r){let n=this.getLastDayOfMonth(e,r),o=new Date(Date.UTC(e,r,n)).getUTCDay();return o===0?n-2:o===6?n-1:n}getNearestWeekday(e,r,n){let o=this.getLastDayOfMonth(e,r);if(n>o)return-1;let s=new Date(Date.UTC(e,r,n)).getUTCDay();return s===0?n===o?n-2:n+1:s===6?n===1?n+2:n-1:n}isNthWeekdayOfMonth(e,r,n,o){let s=new Date(Date.UTC(e,r,n)).getUTCDay(),a=0;for(let l=1;l<=n;l++)new Date(Date.UTC(e,r,l)).getUTCDay()===s&&a++;if(o&63&&Ly[a-1]&o)return!0;if(o&32){let l=this.getLastDayOfMonth(e,r);for(let u=n+1;u<=l;u++)if(new Date(Date.UTC(e,r,u)).getUTCDay()===s)return!1;return!0}return!1}fromDate(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else try{let r=Hs(e,this.tz);this.ms=e.getMilliseconds(),this.second=r.s,this.minute=r.i,this.hour=r.h,this.day=r.d,this.month=r.m-1,this.year=r.y}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=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()}fromCronDate(e){this.tz=e.tz,this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=e.second,this.ms=e.ms}apply(){if(this.month>11||this.month<0||this.day>Rh[this.month]||this.day<1||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1}fromString(e){if(typeof this.tz=="number"){let r=Ry(e);this.ms=r.getUTCMilliseconds(),this.second=r.getUTCSeconds(),this.minute=r.getUTCMinutes(),this.hour=r.getUTCHours(),this.day=r.getUTCDate(),this.month=r.getUTCMonth(),this.year=r.getUTCFullYear(),this.apply()}else return this.fromDate(Ry(e,this.tz))}findNext(e,r,n,o){return this._findMatch(e,r,n,o,1)}_findMatch(e,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:!e.domAndDow&&!n.starDOM?h=h||m:h=h&&m}if(h)return this[r]=p-o,a!==this[r]?2:1}return 3}recurse(e,r,n){if(n===0&&!e.starYear){if(this.year>=0&&this.year<e.year.length&&e.year[this.year]===0){let s=-1;for(let a=this.year+1;a<e.year.length&&a<1e4;a++)if(e.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,Re[n][0],e,Re[n][2]);if(o>1){let s=n+1;for(;s<Re.length;)this[Re[s][0]]=-Re[s][2],s++;if(o===3){if(this[Re[n][1]]++,this[Re[n][0]]=-Re[n][2],this.apply(),n===0&&!e.starYear){for(;this.year>=0&&this.year<e.year.length&&e.year[this.year]===0&&this.year<1e4;)this.year++;if(this.year>=1e4||this.year>=e.year.length)return null}return this.recurse(e,r,0)}else if(this.apply())return this.recurse(e,r,n-1)}return n+=1,n>=Re.length?this:(e.starYear?this.year>=3e3:this.year>=1e4)?null:this.recurse(e,r,n)}increment(e,r,n){return this.second+=r.interval!==void 0&&r.interval>1&&n?r.interval:1,this.ms=0,this.apply(),this.recurse(e,r,0)}decrement(e,r){return this.second-=r.interval!==void 0&&r.interval>1?r.interval:1,this.ms=0,this.apply(),this.recurseBackward(e,r,0,0)}recurseBackward(e,r,n,o=0){if(o>1e4)return null;if(n===0&&!e.starYear){if(this.year>=0&&this.year<e.year.length&&e.year[this.year]===0){let a=-1;for(let l=this.year-1;l>=0;l--)if(e.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,Re[n][0],e,Re[n][2]);if(s>1){let a=n+1;for(;a<Re.length;){let l=Re[a][0],u=Re[a][2],c=this.getMaxPatternValue(l,e,u);this[l]=c,a++}if(s===3){if(this[Re[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?Rh[p]:new Date(Date.UTC(f,p+1,0)).getUTCDate();this.day>h&&(this.day=h)}this.apply();let l=Re[n][0],u=Re[n][2],c=this.getMaxPatternValue(l,e,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=Re[1][2],p=this.getMaxPatternValue("day",e,f),h=this.getLastDayOfMonth(this.year,this.month),m=Math.min(p,h);m!==this.day&&(this.day=m,this.hour=this.getMaxPatternValue("hour",e,Re[2][2]),this.minute=this.getMaxPatternValue("minute",e,Re[3][2]),this.second=this.getMaxPatternValue("second",e,Re[4][2]))}if(n===0&&!e.starYear){for(;this.year>=0&&this.year<e.year.length&&e.year[this.year]===0;)this.year--;if(this.year<0)return null}return this.recurseBackward(e,r,0,o+1)}else if(this.apply())return this.recurseBackward(e,r,n-1,o+1)}return n+=1,n>=Re.length?this:this.year<0?null:this.recurseBackward(e,r,n,o+1)}getMaxPatternValue(e,r,n){if(e==="day"&&r.lastDayOfMonth)return this.getLastDayOfMonth(this.year,this.month);if(e==="day"&&!r.starDOW)return this.getLastDayOfMonth(this.year,this.month);for(let o=r[e].length-1;o>=0;o--)if(r[e][o])return o-n;return r[e].length-1-n}findPrevious(e,r,n,o){return this._findMatch(e,r,n,o,-1)}getDate(e){return e||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):Fy(Ah(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}match(e,r){if(!e.starYear&&(this.year<0||this.year>=e.year.length||e.year[this.year]===0))return!1;for(let n=0;n<Re.length;n++){let o=Re[n][0],s=Re[n][2],a=this[o];if(a+s<0||a+s>=e[o].length)return!1;let l=e[o][a+s];if(o==="day"){if(!l){for(let u=0;u<e.nearestWeekdays.length;u++)if(e.nearestWeekdays[u]){let c=this.getNearestWeekday(this.year,this.month,u-s);if(c!==-1&&c===a){l=1;break}}}if(e.lastWeekday){let u=this.getLastWeekday(this.year,this.month);a===u&&(l=1)}if(e.lastDayOfMonth){let u=this.getLastDayOfMonth(this.year,this.month);a===u&&(l=1)}if(!e.starDOW){let u=new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay(),c=e.dayOfWeek[(u+(a-1))%7];c&&c&63&&(c=this.isNthWeekdayOfMonth(this.year,this.month,a,c)?1:0),e.useAndLogic?l=l&&c:!r.domAndDow&&!e.starDOM?l=l||c:l=l&&c}}if(!l)return!1}return!0}};function S_(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode!==void 0&&t.domAndDow===void 0?t.domAndDow=!t.legacyMode:t.domAndDow===void 0&&(t.domAndDow=!1),t.legacyMode=!t.domAndDow,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval.toString(),10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset.toString(),10),t.dayOffset=t.dayOffset===void 0?0:parseInt(t.dayOffset.toString(),10),t.unref=t.unref===void 0?!1:t.unref,t.mode=t.mode===void 0?"auto":t.mode,t.alternativeWeekdays=t.alternativeWeekdays===void 0?!1:t.alternativeWeekdays,t.sloppyRanges=t.sloppyRanges===void 0?!1:t.sloppyRanges,!["auto","5-part","6-part","7-part","5-or-6-parts","6-or-7-parts"].includes(t.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(t.startAt&&(t.startAt=new Qe(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new Qe(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");if(t.dayOffset!==void 0&&t.dayOffset!==0&&isNaN(t.dayOffset))throw new Error("CronOptions: Invalid value passed for dayOffset, should be a number representing days to offset.");return t}i(S_,"R");function Ws(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}i(Ws,"p");function k_(t){return Ws(t)}i(k_,"_");function T_(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}i(T_,"x");var By=30*1e3,co=[],jy=class{static{i(this,"E")}name;options;_states;fn;getTz(){return this.options.timezone||this.options.utcOffset}applyDayOffset(t){if(this.options.dayOffset!==void 0&&this.options.dayOffset!==0){let e=this.options.dayOffset*24*60*60*1e3;return new Date(t.getTime()+e)}return t}constructor(t,e,r){let n,o;if(Ws(e))o=e;else if(typeof e=="object")n=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Ws(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=S_(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 Kl("* * * * *",void 0,{mode:"auto"})},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new Qe(t,this.getTz()):this._states.pattern=new Kl(t,this.options.timezone,{mode:this.options.mode,alternativeWeekdays:this.options.alternativeWeekdays,sloppyRanges:this.options.sloppyRanges}),this.name){if(co.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");co.push(this)}return o!==void 0&&k_(o)&&(this.fn=o,this.schedule()),this}nextRun(t){let e=this._next(t);return e?this.applyDayOffset(e.getDate(!1)):null}nextRuns(t,e){this._states.maxRuns!==void 0&&t>this._states.maxRuns&&(t=this._states.maxRuns);let r=e||this._states.currentRun||void 0;return this._enumerateRuns(t,r,"next")}previousRuns(t,e){return this._enumerateRuns(t,e||void 0,"previous")}_enumerateRuns(t,e,r){let n=[],o=e?new Qe(e,this.getTz()):null,s=r==="next"?this._next:this._previous;for(;t--;){let a=s.call(this,o);if(!a)break;let l=a.getDate(!1);n.push(this.applyDayOffset(l)),o=a}return n}match(t){if(this._states.once){let r=new Qe(t,this.getTz());r.ms=0;let n=new Qe(this._states.once,this.getTz());return n.ms=0,r.getTime()===n.getTime()}let e=new Qe(t,this.getTz());return e.ms=0,e.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 t=this.nextRun(this._states.currentRun),e=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return e&&r&&n&&t!==null}isStopped(){return this._states.kill}isBusy(){return this._states.blocking}currentRun(){return this._states.currentRun?this._states.currentRun.getDate():null}previousRun(){return this._states.previousRun?this._states.previousRun.getDate():null}msToNext(t){let e=this._next(t);return e?t instanceof Qe||t instanceof Date?e.getTime()-t.getTime():e.getTime()-new Qe(t).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=co.indexOf(this);t>=0&&co.splice(t,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(t){if(t&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");t&&(this.fn=t);let e=this.msToNext(),r=this.nextRun(this._states.currentRun);return e==null||isNaN(e)||r===null?this:(e>By&&(e=By),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&T_(this._states.currentTimeout),this)}async _trigger(t){this._states.blocking=!0,this._states.currentRun=new Qe(void 0,this.getTz());try{if(this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(e){if(Ws(this.options.catch))try{this.options.catch(e,this)}catch{}}else this.fn!==void 0&&await this.fn(this,this.options.context)}finally{this._states.previousRun=new Qe(t,this.getTz()),this._states.blocking=!1}}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(t){let e=new Date,r=!this._states.paused&&e.getTime()>=t.getTime(),n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):r&&n&&Ws(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(t){let e=!!(t||this._states.currentRun),r=!1;!t&&this.options.startAt&&this.options.interval&&([t,e]=this._calculatePreviousRun(t,e),r=!t),t=new Qe(t,this.getTz()),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let n=this._states.once||new Qe(t,this.getTz());return!r&&n!==this._states.once&&(n=n.increment(this._states.pattern,this.options,e)),this._states.once&&this._states.once.getTime()<=t.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(t){let e=new Qe(t,this.getTz());this.options.stopAt&&e.getTime()>this.options.stopAt.getTime()&&(e=this.options.stopAt);let r=new Qe(e,this.getTz());return this._states.once?this._states.once.getTime()<e.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(t,e){let r=new Qe(void 0,this.getTz()),n=t;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 Qe(n,this.getTz()).increment(this._states.pattern,this.options,!0),o=n.getTime()+this.options.interval*1e3;e=!0}return n===null&&(n=void 0),[n,e]}};var Zs={};ae(Zs,{add:()=>ln,addBusinessDays:()=>au,addDays:()=>Ke,addHours:()=>lu,addISOWeekYears:()=>cu,addMilliseconds:()=>un,addMinutes:()=>mo,addMonths:()=>Er,addQuarters:()=>go,addSeconds:()=>fu,addWeeks:()=>cn,addYears:()=>pu,areIntervalsOverlapping:()=>qy,clamp:()=>Yy,closestIndexTo:()=>du,closestTo:()=>Vy,compareAsc:()=>ht,compareDesc:()=>Gy,constructFrom:()=>A,constructNow:()=>he,daysToWeeks:()=>Jy,differenceInBusinessDays:()=>Qy,differenceInCalendarDays:()=>rt,differenceInCalendarISOWeekYears:()=>xu,differenceInCalendarISOWeeks:()=>Ky,differenceInCalendarMonths:()=>Zn,differenceInCalendarQuarters:()=>xo,differenceInCalendarWeeks:()=>ei,differenceInCalendarYears:()=>fn,differenceInDays:()=>yo,differenceInHours:()=>ti,differenceInISOWeekYears:()=>Zy,differenceInMilliseconds:()=>wo,differenceInMinutes:()=>ri,differenceInMonths:()=>pn,differenceInQuarters:()=>ew,differenceInSeconds:()=>Mr,differenceInWeeks:()=>tw,differenceInYears:()=>bu,eachDayOfInterval:()=>vu,eachHourOfInterval:()=>rw,eachMinuteOfInterval:()=>nw,eachMonthOfInterval:()=>iw,eachQuarterOfInterval:()=>ow,eachWeekOfInterval:()=>sw,eachWeekendOfInterval:()=>So,eachWeekendOfMonth:()=>aw,eachWeekendOfYear:()=>lw,eachYearOfInterval:()=>uw,endOfDay:()=>bo,endOfDecade:()=>cw,endOfHour:()=>fw,endOfISOWeek:()=>pw,endOfISOWeekYear:()=>hw,endOfMinute:()=>mw,endOfMonth:()=>vo,endOfQuarter:()=>dw,endOfSecond:()=>gw,endOfToday:()=>xw,endOfTomorrow:()=>yw,endOfWeek:()=>ku,endOfYear:()=>Su,endOfYesterday:()=>ww,format:()=>Gs,formatDate:()=>Gs,formatDistance:()=>Ou,formatDistanceStrict:()=>Mu,formatDistanceToNow:()=>Iw,formatDistanceToNowStrict:()=>_w,formatDuration:()=>Pw,formatISO:()=>Nw,formatISO9075:()=>Aw,formatISODuration:()=>Rw,formatRFC3339:()=>Fw,formatRFC7231:()=>Lw,formatRelative:()=>Bw,formatters:()=>Ys,fromUnixTime:()=>zw,getDate:()=>Iu,getDay:()=>gn,getDayOfYear:()=>Eu,getDaysInMonth:()=>_u,getDaysInYear:()=>jw,getDecade:()=>Hw,getDefaultOptions:()=>Nu,getHours:()=>Ww,getISODay:()=>Au,getISOWeek:()=>Do,getISOWeekYear:()=>Tt,getISOWeeksInYear:()=>$w,getMilliseconds:()=>Uw,getMinutes:()=>qw,getMonth:()=>Yw,getOverlappingDaysInIntervals:()=>Vw,getQuarter:()=>qs,getSeconds:()=>Gw,getTime:()=>Jw,getUnixTime:()=>Qw,getWeek:()=>Co,getWeekOfMonth:()=>Kw,getWeekYear:()=>mn,getWeeksInMonth:()=>Xw,getYear:()=>Zw,hoursToMilliseconds:()=>eb,hoursToMinutes:()=>tb,hoursToSeconds:()=>rb,interval:()=>nb,intervalToDuration:()=>ib,intlFormat:()=>ob,intlFormatDistance:()=>sb,isAfter:()=>ab,isBefore:()=>lb,isDate:()=>gu,isEqual:()=>ub,isExists:()=>cb,isFirstDayOfMonth:()=>fb,isFriday:()=>pb,isFuture:()=>hb,isLastDayOfMonth:()=>wu,isLeapYear:()=>Pu,isMatch:()=>mb,isMonday:()=>db,isPast:()=>gb,isSameDay:()=>Or,isSameHour:()=>Ec,isSameISOWeek:()=>Dc,isSameISOWeekYear:()=>xb,isSameMinute:()=>Cc,isSameMonth:()=>Oc,isSameQuarter:()=>Mc,isSameSecond:()=>Ic,isSameWeek:()=>_o,isSameYear:()=>_c,isSaturday:()=>ou,isSunday:()=>su,isThisHour:()=>yb,isThisISOWeek:()=>wb,isThisMinute:()=>bb,isThisMonth:()=>vb,isThisQuarter:()=>Sb,isThisSecond:()=>kb,isThisWeek:()=>Tb,isThisYear:()=>Eb,isThursday:()=>Db,isToday:()=>Cb,isTomorrow:()=>Ob,isTuesday:()=>Mb,isValid:()=>ut,isWednesday:()=>Ib,isWeekend:()=>Dr,isWithinInterval:()=>_b,isYesterday:()=>Pb,lastDayOfDecade:()=>Nb,lastDayOfISOWeek:()=>Ab,lastDayOfISOWeekYear:()=>Rb,lastDayOfMonth:()=>Ru,lastDayOfQuarter:()=>Fb,lastDayOfWeek:()=>Pc,lastDayOfYear:()=>Lb,lightFormat:()=>Bb,lightFormatters:()=>$t,longFormatters:()=>dn,max:()=>hu,milliseconds:()=>zb,millisecondsToHours:()=>jb,millisecondsToMinutes:()=>Hb,millisecondsToSeconds:()=>Wb,min:()=>mu,minutesToHours:()=>$b,minutesToMilliseconds:()=>Ub,minutesToSeconds:()=>qb,monthsToQuarters:()=>Yb,monthsToYears:()=>Vb,nextDay:()=>dt,nextFriday:()=>Gb,nextMonday:()=>Jb,nextSaturday:()=>Qb,nextSunday:()=>Kb,nextThursday:()=>Xb,nextTuesday:()=>Zb,nextWednesday:()=>e0,parse:()=>Tc,parseISO:()=>r0,parseJSON:()=>n0,parsers:()=>kc,previousDay:()=>gt,previousFriday:()=>i0,previousMonday:()=>o0,previousSaturday:()=>s0,previousSunday:()=>a0,previousThursday:()=>l0,previousTuesday:()=>u0,previousWednesday:()=>c0,quartersToMonths:()=>f0,quartersToYears:()=>p0,roundToNearestHours:()=>h0,roundToNearestMinutes:()=>m0,secondsToHours:()=>d0,secondsToMilliseconds:()=>g0,secondsToMinutes:()=>x0,set:()=>y0,setDate:()=>w0,setDay:()=>xn,setDayOfYear:()=>b0,setDefaultOptions:()=>v0,setHours:()=>S0,setISODay:()=>ac,setISOWeek:()=>ec,setISOWeekYear:()=>uu,setMilliseconds:()=>k0,setMinutes:()=>T0,setMonth:()=>Po,setQuarter:()=>E0,setSeconds:()=>D0,setWeek:()=>Xu,setWeekYear:()=>C0,setYear:()=>O0,startOfDay:()=>Cr,startOfDecade:()=>M0,startOfHour:()=>Js,startOfISOWeek:()=>Ye,startOfISOWeekYear:()=>Wt,startOfMinute:()=>Qs,startOfMonth:()=>hn,startOfQuarter:()=>Ir,startOfSecond:()=>Ks,startOfToday:()=>I0,startOfTomorrow:()=>_0,startOfWeek:()=>_e,startOfWeekYear:()=>ni,startOfYear:()=>ko,startOfYesterday:()=>P0,sub:()=>N0,subBusinessDays:()=>A0,subDays:()=>yn,subHours:()=>R0,subISOWeekYears:()=>yu,subMilliseconds:()=>F0,subMinutes:()=>L0,subMonths:()=>Ac,subQuarters:()=>B0,subSeconds:()=>z0,subWeeks:()=>j0,subYears:()=>H0,toDate:()=>y,transpose:()=>Fu,weeksToDays:()=>W0,yearsToDays:()=>$0,yearsToMonths:()=>U0,yearsToQuarters:()=>q0});var Zl=7,Us=365.2425,E_=Math.pow(10,8)*24*60*60*1e3,$K=-E_,Tr=6048e5,eu=864e5,pt=6e4,Ht=36e5,fo=1e3,Fh=525600,an=43200,po=1440,tu=60,ru=3,nu=12,iu=4,Xn=3600,ho=60,Xl=Xn*24,Hy=Xl*7,Lh=Xl*365.2425,Bh=Lh/12,Wy=Bh*3,zh=Symbol.for("constructDateFrom");function A(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&zh in t?t[zh](e):t instanceof Date?new t.constructor(e):new Date(e)}i(A,"constructFrom");var YK=A;function y(t,e){return A(e||t,t)}i(y,"toDate");var QK=y;function Ke(t,e,r){let n=y(t,r?.in);return isNaN(e)?A(r?.in||t,NaN):(e&&n.setDate(n.getDate()+e),n)}i(Ke,"addDays");var tX=Ke;function Er(t,e,r){let n=y(t,r?.in);if(isNaN(e))return A(r?.in||t,NaN);if(!e)return n;let o=n.getDate(),s=A(r?.in||t,n.getTime());s.setMonth(n.getMonth()+e+1,0);let a=s.getDate();return o>=a?s:(n.setFullYear(s.getFullYear(),s.getMonth(),o),n)}i(Er,"addMonths");var sX=Er;function ln(t,e,r){let{years:n=0,months:o=0,weeks:s=0,days:a=0,hours:l=0,minutes:u=0,seconds:c=0}=e,f=y(t,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 A(r?.in||t,+h+g)}i(ln,"add");var hX=ln;function ou(t,e){return y(t,e?.in).getDay()===6}i(ou,"isSaturday");var xX=ou;function su(t,e){return y(t,e?.in).getDay()===0}i(su,"isSunday");var vX=su;function Dr(t,e){let r=y(t,e?.in).getDay();return r===0||r===6}i(Dr,"isWeekend");var EX=Dr;function au(t,e,r){let n=y(t,r?.in),o=Dr(n,r);if(isNaN(e))return A(r?.in,NaN);let s=n.getHours(),a=e<0?-1:1,l=Math.trunc(e/5);n.setDate(n.getDate()+l*7);let u=Math.abs(e%5);for(;u>0;)n.setDate(n.getDate()+a),Dr(n,r)||(u-=1);return o&&Dr(n,r)&&e!==0&&(ou(n,r)&&n.setDate(n.getDate()+(a<0?2:-1)),su(n,r)&&n.setDate(n.getDate()+(a<0?1:-2))),n.setHours(s),n}i(au,"addBusinessDays");var NX=au;function un(t,e,r){return A(r?.in||t,+y(t)+e)}i(un,"addMilliseconds");var BX=un;function lu(t,e,r){return un(t,e*Ht,r)}i(lu,"addHours");var $X=lu;var $y={};function Ee(){return $y}i(Ee,"getDefaultOptions");function Uy(t){$y=t}i(Uy,"setDefaultOptions");function _e(t,e){let r=Ee(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=y(t,e?.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(_e,"startOfWeek");var QX=_e;function Ye(t,e){return _e(t,{...e,weekStartsOn:1})}i(Ye,"startOfISOWeek");var eZ=Ye;function Tt(t,e){let r=y(t,e?.in),n=r.getFullYear(),o=A(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let s=Ye(o),a=A(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 sZ=Tt;function Be(t){let e=y(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}i(Be,"getTimezoneOffsetInMilliseconds");function Z(t,...e){let r=A.bind(null,t||e.find(n=>typeof n=="object"));return e.map(r)}i(Z,"normalizeDates");function Cr(t,e){let r=y(t,e?.in);return r.setHours(0,0,0,0),r}i(Cr,"startOfDay");var gZ=Cr;function rt(t,e,r){let[n,o]=Z(r?.in,t,e),s=Cr(n),a=Cr(o),l=+s-Be(s),u=+a-Be(a);return Math.round((l-u)/eu)}i(rt,"differenceInCalendarDays");var kZ=rt;function Wt(t,e){let r=Tt(t,e),n=A(e?.in||t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ye(n)}i(Wt,"startOfISOWeekYear");var MZ=Wt;function uu(t,e,r){let n=y(t,r?.in),o=rt(n,Wt(n,r)),s=A(r?.in||t,0);return s.setFullYear(e,0,4),s.setHours(0,0,0,0),n=Wt(s),n.setDate(n.getDate()+o),n}i(uu,"setISOWeekYear");var FZ=uu;function cu(t,e,r){return uu(t,Tt(t,r)+e,r)}i(cu,"addISOWeekYears");var HZ=cu;function mo(t,e,r){let n=y(t,r?.in);return n.setTime(n.getTime()+e*pt),n}i(mo,"addMinutes");var YZ=mo;function go(t,e,r){return Er(t,e*3,r)}i(go,"addQuarters");var QZ=go;function fu(t,e,r){return un(t,e*1e3,r)}i(fu,"addSeconds");var eee=fu;function cn(t,e,r){return Ke(t,e*7,r)}i(cn,"addWeeks");var iee=cn;function pu(t,e,r){return Er(t,e*12,r)}i(pu,"addYears");var lee=pu;function qy(t,e,r){let[n,o]=[+y(t.start,r?.in),+y(t.end,r?.in)].sort((l,u)=>l-u),[s,a]=[+y(e.start,r?.in),+y(e.end,r?.in)].sort((l,u)=>l-u);return r?.inclusive?n<=a&&s<=o:n<a&&s<o}i(qy,"areIntervalsOverlapping");var pee=qy;function hu(t,e){let r,n=e?.in;return t.forEach(o=>{!n&&typeof o=="object"&&(n=A.bind(null,o));let s=y(o,n);(!r||r<s||isNaN(+s))&&(r=s)}),A(n,r||NaN)}i(hu,"max");var xee=hu;function mu(t,e){let r,n=e?.in;return t.forEach(o=>{!n&&typeof o=="object"&&(n=A.bind(null,o));let s=y(o,n);(!r||r>s||isNaN(+s))&&(r=s)}),A(n,r||NaN)}i(mu,"min");var See=mu;function Yy(t,e,r){let[n,o,s]=Z(r?.in,t,e.start,e.end);return mu([hu([n,o],r),s],r)}i(Yy,"clamp");var Oee=Yy;function du(t,e){let r=+y(t);if(isNaN(r))return NaN;let n,o;return e.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(du,"closestIndexTo");var Pee=du;function Vy(t,e,r){let[n,...o]=Z(r?.in,t,...e),s=du(n,o);if(typeof s=="number"&&isNaN(s))return A(n,NaN);if(s!==void 0)return o[s]}i(Vy,"closestTo");var Bee=Vy;function ht(t,e){let r=+y(t)-+y(e);return r<0?-1:r>0?1:r}i(ht,"compareAsc");var Wee=ht;function Gy(t,e){let r=+y(t)-+y(e);return r>0?-1:r<0?1:r}i(Gy,"compareDesc");var Yee=Gy;function he(t){return A(t,Date.now())}i(he,"constructNow");var Qee=he;function Jy(t){let e=Math.trunc(t/7);return e===0?0:e}i(Jy,"daysToWeeks");var ete=Jy;function Or(t,e,r){let[n,o]=Z(r?.in,t,e);return+Cr(n)==+Cr(o)}i(Or,"isSameDay");var ote=Or;function gu(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}i(gu,"isDate");var lte=gu;function ut(t){return!(!gu(t)&&typeof t!="number"||isNaN(+y(t)))}i(ut,"isValid");var hte=ut;function Qy(t,e,r){let[n,o]=Z(r?.in,t,e);if(!ut(n)||!ut(o))return NaN;let s=rt(n,o),a=s<0?-1:1,l=Math.trunc(s/7),u=l*5,c=Ke(o,l*7);for(;!Or(n,c);)u+=Dr(c,r)?0:a,c=Ke(c,a);return u===0?0:u}i(Qy,"differenceInBusinessDays");var Ste=Qy;function xu(t,e,r){let[n,o]=Z(r?.in,t,e);return Tt(n,r)-Tt(o,r)}i(xu,"differenceInCalendarISOWeekYears");var Cte=xu;function Ky(t,e,r){let[n,o]=Z(r?.in,t,e),s=Ye(n),a=Ye(o),l=+s-Be(s),u=+a-Be(a);return Math.round((l-u)/Tr)}i(Ky,"differenceInCalendarISOWeeks");var Ate=Ky;function Zn(t,e,r){let[n,o]=Z(r?.in,t,e),s=n.getFullYear()-o.getFullYear(),a=n.getMonth()-o.getMonth();return s*12+a}i(Zn,"differenceInCalendarMonths");var Bte=Zn;function qs(t,e){let r=y(t,e?.in);return Math.trunc(r.getMonth()/3)+1}i(qs,"getQuarter");var Wte=qs;function xo(t,e,r){let[n,o]=Z(r?.in,t,e),s=n.getFullYear()-o.getFullYear(),a=qs(n)-qs(o);return s*4+a}i(xo,"differenceInCalendarQuarters");var Vte=xo;function ei(t,e,r){let[n,o]=Z(r?.in,t,e),s=_e(n,r),a=_e(o,r),l=+s-Be(s),u=+a-Be(a);return Math.round((l-u)/Tr)}i(ei,"differenceInCalendarWeeks");var ere=ei;function fn(t,e,r){let[n,o]=Z(r?.in,t,e);return n.getFullYear()-o.getFullYear()}i(fn,"differenceInCalendarYears");var ire=fn;function yo(t,e,r){let[n,o]=Z(r?.in,t,e),s=Xy(n,o),a=Math.abs(rt(n,o));n.setDate(n.getDate()-s*a);let l=+(Xy(n,o)===-s),u=s*(a-l);return u===0?0:u}i(yo,"differenceInDays");function Xy(t,e){let r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}i(Xy,"compareLocalAsc");var ure=yo;function mt(t){return e=>{let n=(t?Math[t]:Math.trunc)(e);return n===0?0:n}}i(mt,"getRoundingMethod");function ti(t,e,r){let[n,o]=Z(r?.in,t,e),s=(+n-+o)/Ht;return mt(r?.roundingMethod)(s)}i(ti,"differenceInHours");var xre=ti;function yu(t,e,r){return cu(t,-e,r)}i(yu,"subISOWeekYears");var vre=yu;function Zy(t,e,r){let[n,o]=Z(r?.in,t,e),s=ht(n,o),a=Math.abs(xu(n,o,r)),l=yu(n,s*a,r),u=+(ht(l,o)===-s),c=s*(a-u);return c===0?0:c}i(Zy,"differenceInISOWeekYears");var Ore=Zy;function wo(t,e){return+y(t)-+y(e)}i(wo,"differenceInMilliseconds");var Pre=wo;function ri(t,e,r){let n=wo(t,e)/pt;return mt(r?.roundingMethod)(n)}i(ri,"differenceInMinutes");var Bre=ri;function bo(t,e){let r=y(t,e?.in);return r.setHours(23,59,59,999),r}i(bo,"endOfDay");var Wre=bo;function vo(t,e){let r=y(t,e?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}i(vo,"endOfMonth");var Yre=vo;function wu(t,e){let r=y(t,e?.in);return+bo(r,e)==+vo(r,e)}i(wu,"isLastDayOfMonth");var Xre=wu;function pn(t,e,r){let[n,o,s]=Z(r?.in,t,t,e),a=ht(o,s),l=Math.abs(Zn(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;wu(n)&&l===1&&ht(n,s)===1&&(u=!1);let c=a*(l-+u);return c===0?0:c}i(pn,"differenceInMonths");var one=pn;function ew(t,e,r){let n=pn(t,e,r)/3;return mt(r?.roundingMethod)(n)}i(ew,"differenceInQuarters");var cne=ew;function Mr(t,e,r){let n=wo(t,e)/1e3;return mt(r?.roundingMethod)(n)}i(Mr,"differenceInSeconds");var dne=Mr;function tw(t,e,r){let n=yo(t,e,r)/7;return mt(r?.roundingMethod)(n)}i(tw,"differenceInWeeks");var bne=tw;function bu(t,e,r){let[n,o]=Z(r?.in,t,e),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(bu,"differenceInYears");var Dne=bu;function nt(t,e){let[r,n]=Z(t,e.start,e.end);return{start:r,end:n}}i(nt,"normalizeInterval");function vu(t,e){let{start:r,end:n}=nt(e?.in,t),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(A(r,a)),a.setDate(a.getDate()+l),a.setHours(0,0,0,0);return o?u.reverse():u}i(vu,"eachDayOfInterval");var Ane=vu;function rw(t,e){let{start:r,end:n}=nt(e?.in,t),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setMinutes(0,0,0);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(A(r,a)),a.setHours(a.getHours()+l);return o?u.reverse():u}i(rw,"eachHourOfInterval");var zne=rw;function nw(t,e){let{start:r,end:n}=nt(e?.in,t);r.setSeconds(0,0);let o=+r>+n,s=o?+r:+n,a=o?n:r,l=e?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(A(r,a)),a=mo(a,l);return o?u.reverse():u}i(nw,"eachMinuteOfInterval");var qne=nw;function iw(t,e){let{start:r,end:n}=nt(e?.in,t),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0),a.setDate(1);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(A(r,a)),a.setMonth(a.getMonth()+l);return o?u.reverse():u}i(iw,"eachMonthOfInterval");var Qne=iw;function Ir(t,e){let r=y(t,e?.in),n=r.getMonth(),o=n-n%3;return r.setMonth(o,1),r.setHours(0,0,0,0),r}i(Ir,"startOfQuarter");var eie=Ir;function ow(t,e){let{start:r,end:n}=nt(e?.in,t),o=+r>+n,s=o?+Ir(r):+Ir(n),a=o?Ir(n):Ir(r),l=e?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(A(r,a)),a=go(a,l);return o?u.reverse():u}i(ow,"eachQuarterOfInterval");var aie=ow;function sw(t,e){let{start:r,end:n}=nt(e?.in,t),o=+r>+n,s=o?_e(n,e):_e(r,e),a=o?_e(r,e):_e(n,e);s.setHours(15),a.setHours(15);let l=+a.getTime(),u=s,c=e?.step??1;if(!c)return[];c<0&&(c=-c,o=!o);let f=[];for(;+u<=l;)u.setHours(0),f.push(A(r,u)),u=cn(u,c),u.setHours(15);return o?f.reverse():f}i(sw,"eachWeekOfInterval");var mie=sw;function So(t,e){let{start:r,end:n}=nt(e?.in,t),o=vu({start:r,end:n},e),s=[],a=0;for(;a<o.length;){let l=o[a++];Dr(l)&&s.push(A(r,l))}return s}i(So,"eachWeekendOfInterval");var vie=So;function hn(t,e){let r=y(t,e?.in);return r.setDate(1),r.setHours(0,0,0,0),r}i(hn,"startOfMonth");var Eie=hn;function aw(t,e){let r=hn(t,e),n=vo(t,e);return So({start:r,end:n},e)}i(aw,"eachWeekendOfMonth");var _ie=aw;function Su(t,e){let r=y(t,e?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}i(Su,"endOfYear");var Rie=Su;function ko(t,e){let r=y(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}i(ko,"startOfYear");var zie=ko;function lw(t,e){let r=ko(t,e),n=Su(t,e);return So({start:r,end:n},e)}i(lw,"eachWeekendOfYear");var qie=lw;function uw(t,e){let{start:r,end:n}=nt(e?.in,t),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0),a.setMonth(0,1);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(A(r,a)),a.setFullYear(a.getFullYear()+l);return o?u.reverse():u}i(uw,"eachYearOfInterval");var Qie=uw;function cw(t,e){let r=y(t,e?.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(cw,"endOfDecade");var eoe=cw;function fw(t,e){let r=y(t,e?.in);return r.setMinutes(59,59,999),r}i(fw,"endOfHour");var ioe=fw;function ku(t,e){let r=Ee(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=y(t,e?.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(ku,"endOfWeek");var uoe=ku;function pw(t,e){return ku(t,{...e,weekStartsOn:1})}i(pw,"endOfISOWeek");var hoe=pw;function hw(t,e){let r=Tt(t,e),n=A(e?.in||t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=Ye(n,e);return o.setMilliseconds(o.getMilliseconds()-1),o}i(hw,"endOfISOWeekYear");var woe=hw;function mw(t,e){let r=y(t,e?.in);return r.setSeconds(59,999),r}i(mw,"endOfMinute");var koe=mw;function dw(t,e){let r=y(t,e?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(23,59,59,999),r}i(dw,"endOfQuarter");var Coe=dw;function gw(t,e){let r=y(t,e?.in);return r.setMilliseconds(999),r}i(gw,"endOfSecond");var _oe=gw;function xw(t){return bo(Date.now(),t)}i(xw,"endOfToday");var Roe=xw;function yw(t){let e=he(t?.in),r=e.getFullYear(),n=e.getMonth(),o=e.getDate(),s=he(t?.in);return s.setFullYear(r,n,o+1),s.setHours(23,59,59,999),t?.in?t.in(s):s}i(yw,"endOfTomorrow");var zoe=yw;function ww(t){let e=he(t?.in),r=A(t?.in,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),r.setHours(23,59,59,999),r}i(ww,"endOfYesterday");var Uoe=ww;var D_={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"}},bw=i((t,e,r)=>{let n,o=D_[t];return typeof o=="string"?n=o:e===1?n=o.one:n=o.other.replace("{{count}}",e.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},"formatDistance");function Tu(t){return(e={})=>{let r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}i(Tu,"buildFormatLongFn");var C_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},O_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},M_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vw={date:Tu({formats:C_,defaultWidth:"full"}),time:Tu({formats:O_,defaultWidth:"full"}),dateTime:Tu({formats:M_,defaultWidth:"full"})};var I_={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((t,e,r,n)=>I_[t],"formatRelative");function To(t){return(e,r)=>{let n=r?.context?String(r.context):"standalone",o;if(n==="formatting"&&t.formattingValues){let a=t.defaultFormattingWidth||t.defaultWidth,l=r?.width?String(r.width):a;o=t.formattingValues[l]||t.formattingValues[a]}else{let a=t.defaultWidth,l=r?.width?String(r.width):t.defaultWidth;o=t.values[l]||t.values[a]}let s=t.argumentCallback?t.argumentCallback(e):e;return o[s]}}i(To,"buildLocalizeFn");var __={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},P_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},N_={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"]},A_={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"]},R_={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"}},F_={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"}},L_=i((t,e)=>{let r=Number(t),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"),kw={ordinalNumber:L_,era:To({values:__,defaultWidth:"wide"}),quarter:To({values:P_,defaultWidth:"wide",argumentCallback:i(t=>t-1,"argumentCallback")}),month:To({values:N_,defaultWidth:"wide"}),day:To({values:A_,defaultWidth:"wide"}),dayPeriod:To({values:R_,defaultWidth:"wide",formattingValues:F_,defaultFormattingWidth:"wide"})};function Eo(t){return(e,r={})=>{let n=r.width,o=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],s=e.match(o);if(!s)return null;let a=s[0],l=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(l)?z_(l,p=>p.test(a)):B_(l,p=>p.test(a)),c;c=t.valueCallback?t.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;let f=e.slice(a.length);return{value:c,rest:f}}}i(Eo,"buildMatchFn");function B_(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}i(B_,"findKey");function z_(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}i(z_,"findIndex");function Tw(t){return(e,r={})=>{let n=e.match(t.matchPattern);if(!n)return null;let o=n[0],s=e.match(t.parsePattern);if(!s)return null;let a=t.valueCallback?t.valueCallback(s[0]):s[0];a=r.valueCallback?r.valueCallback(a):a;let l=e.slice(o.length);return{value:a,rest:l}}}i(Tw,"buildMatchPatternFn");var j_=/^(\d+)(th|st|nd|rd)?/i,H_=/\d+/i,W_={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},$_={any:[/^b/i,/^(a|c)/i]},U_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},q_={any:[/1/i,/2/i,/3/i,/4/i]},Y_={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},V_={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]},G_={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},J_={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]},Q_={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},K_={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}},Ew={ordinalNumber:Tw({matchPattern:j_,parsePattern:H_,valueCallback:i(t=>parseInt(t,10),"valueCallback")}),era:Eo({matchPatterns:W_,defaultMatchWidth:"wide",parsePatterns:$_,defaultParseWidth:"any"}),quarter:Eo({matchPatterns:U_,defaultMatchWidth:"wide",parsePatterns:q_,defaultParseWidth:"any",valueCallback:i(t=>t+1,"valueCallback")}),month:Eo({matchPatterns:Y_,defaultMatchWidth:"wide",parsePatterns:V_,defaultParseWidth:"any"}),day:Eo({matchPatterns:G_,defaultMatchWidth:"wide",parsePatterns:J_,defaultParseWidth:"any"}),dayPeriod:Eo({matchPatterns:Q_,defaultMatchWidth:"any",parsePatterns:K_,defaultParseWidth:"any"})};var Nt={code:"en-US",formatDistance:bw,formatLong:vw,formatRelative:Sw,localize:kw,match:Ew,options:{weekStartsOn:0,firstWeekContainsDate:1}},wse=Nt;function Eu(t,e){let r=y(t,e?.in);return rt(r,ko(r))+1}i(Eu,"getDayOfYear");var Dse=Eu;function Do(t,e){let r=y(t,e?.in),n=+Ye(r)-+Wt(r);return Math.round(n/Tr)+1}i(Do,"getISOWeek");var Nse=Do;function mn(t,e){let r=y(t,e?.in),n=r.getFullYear(),o=Ee(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=A(e?.in||t,0);a.setFullYear(n+1,0,s),a.setHours(0,0,0,0);let l=_e(a,e),u=A(e?.in||t,0);u.setFullYear(n,0,s),u.setHours(0,0,0,0);let c=_e(u,e);return+r>=+l?n+1:+r>=+c?n:n-1}i(mn,"getWeekYear");var jse=mn;function ni(t,e){let r=Ee(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=mn(t,e),s=A(e?.in||t,0);return s.setFullYear(o,0,n),s.setHours(0,0,0,0),_e(s,e)}i(ni,"startOfWeekYear");var Vse=ni;function Co(t,e){let r=y(t,e?.in),n=+_e(r,e)-+ni(r,e);return Math.round(n/Tr)+1}i(Co,"getWeek");var eae=Co;function J(t,e){let r=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return r+n}i(J,"addLeadingZeros");var $t={y(t,e){let r=t.getFullYear(),n=r>0?r:1-r;return J(e==="yy"?n%100:n,e.length)},M(t,e){let r=t.getMonth();return e==="M"?String(r+1):J(r+1,2)},d(t,e){return J(t.getDate(),e.length)},a(t,e){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(t,e){return J(t.getHours()%12||12,e.length)},H(t,e){return J(t.getHours(),e.length)},m(t,e){return J(t.getMinutes(),e.length)},s(t,e){return J(t.getSeconds(),e.length)},S(t,e){let r=e.length,n=t.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return J(o,e.length)}};var Oo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ys={G:i(function(t,e,r){let n=t.getFullYear()>0?1:0;switch(e){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(t,e,r){if(e==="yo"){let n=t.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return $t.y(t,e)},"y"),Y:i(function(t,e,r,n){let o=mn(t,n),s=o>0?o:1-o;if(e==="YY"){let a=s%100;return J(a,2)}return e==="Yo"?r.ordinalNumber(s,{unit:"year"}):J(s,e.length)},"Y"),R:i(function(t,e){let r=Tt(t);return J(r,e.length)},"R"),u:i(function(t,e){let r=t.getFullYear();return J(r,e.length)},"u"),Q:i(function(t,e,r){let n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return J(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(t,e,r){let n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return J(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(t,e,r){let n=t.getMonth();switch(e){case"M":case"MM":return $t.M(t,e);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(t,e,r){let n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return J(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(t,e,r,n){let o=Co(t,n);return e==="wo"?r.ordinalNumber(o,{unit:"week"}):J(o,e.length)},"w"),I:i(function(t,e,r){let n=Do(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):J(n,e.length)},"I"),d:i(function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):$t.d(t,e)},"d"),D:i(function(t,e,r){let n=Eu(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):J(n,e.length)},"D"),E:i(function(t,e,r){let n=t.getDay();switch(e){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(t,e,r,n){let o=t.getDay(),s=(o-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return J(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(t,e,r,n){let o=t.getDay(),s=(o-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return J(s,e.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(t,e,r){let n=t.getDay(),o=n===0?7:n;switch(e){case"i":return String(o);case"ii":return J(o,e.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(t,e,r){let o=t.getHours()/12>=1?"pm":"am";switch(e){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(t,e,r){let n=t.getHours(),o;switch(n===12?o=Oo.noon:n===0?o=Oo.midnight:o=n/12>=1?"pm":"am",e){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(t,e,r){let n=t.getHours(),o;switch(n>=17?o=Oo.evening:n>=12?o=Oo.afternoon:n>=4?o=Oo.morning:o=Oo.night,e){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(t,e,r){if(e==="ho"){let n=t.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return $t.h(t,e)},"h"),H:i(function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):$t.H(t,e)},"H"),K:i(function(t,e,r){let n=t.getHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):J(n,e.length)},"K"),k:i(function(t,e,r){let n=t.getHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):J(n,e.length)},"k"),m:i(function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):$t.m(t,e)},"m"),s:i(function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):$t.s(t,e)},"s"),S:i(function(t,e){return $t.S(t,e)},"S"),X:i(function(t,e,r){let n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return Cw(n);case"XXXX":case"XX":return ii(n);default:return ii(n,":")}},"X"),x:i(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"x":return Cw(n);case"xxxx":case"xx":return ii(n);default:return ii(n,":")}},"x"),O:i(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Dw(n,":");default:return"GMT"+ii(n,":")}},"O"),z:i(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Dw(n,":");default:return"GMT"+ii(n,":")}},"z"),t:i(function(t,e,r){let n=Math.trunc(+t/1e3);return J(n,e.length)},"t"),T:i(function(t,e,r){return J(+t,e.length)},"T")};function Dw(t,e=""){let r=t>0?"-":"+",n=Math.abs(t),o=Math.trunc(n/60),s=n%60;return s===0?r+String(o):r+String(o)+e+J(s,2)}i(Dw,"formatTimezoneShort");function Cw(t,e){return t%60===0?(t>0?"-":"+")+J(Math.abs(t)/60,2):ii(t,e)}i(Cw,"formatTimezoneWithOptionalMinutes");function ii(t,e=""){let r=t>0?"-":"+",n=Math.abs(t),o=J(Math.trunc(n/60),2),s=J(n%60,2);return r+o+e+s}i(ii,"formatTimezone");var Ow=i((t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},"dateLongFormatter"),Mw=i((t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},"timeLongFormatter"),X_=i((t,e)=>{let r=t.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Ow(t,e);let s;switch(n){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",Ow(n,e)).replace("{{time}}",Mw(o,e))},"dateTimeLongFormatter"),dn={p:Mw,P:X_};var Z_=/^D+$/,eP=/^Y+$/,tP=["D","DD","YY","YYYY"];function Du(t){return Z_.test(t)}i(Du,"isProtectedDayOfYearToken");function Cu(t){return eP.test(t)}i(Cu,"isProtectedWeekYearToken");function Vs(t,e,r){let n=rP(t,e,r);if(console.warn(n),tP.includes(t))throw new RangeError(n)}i(Vs,"warnOrThrowProtectedError");function rP(t,e,r){let n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}i(rP,"message");var nP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,iP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,oP=/^'([^]*?)'?$/,sP=/''/g,aP=/[a-zA-Z]/;function Gs(t,e,r){let n=Ee(),o=r?.locale??n.locale??Nt,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(t,r?.in);if(!ut(l))throw new RangeError("Invalid time value");let u=e.match(iP).map(f=>{let p=f[0];if(p==="p"||p==="P"){let h=dn[p];return h(f,o.formatLong)}return f}).join("").match(nP).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let p=f[0];if(p==="'")return{isToken:!1,value:lP(f)};if(Ys[p])return{isToken:!0,value:f};if(p.match(aP))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&&Cu(p)||!r?.useAdditionalDayOfYearTokens&&Du(p))&&Vs(p,e,String(t));let h=Ys[p[0]];return h(l,p,o.localize,c)}).join("")}i(Gs,"format");function lP(t){let e=t.match(oP);return e?e[1].replace(sP,"'"):t}i(lP,"cleanEscapedString");var Cae=Gs;function Ou(t,e,r){let n=Ee(),o=r?.locale??n.locale??Nt,s=2520,a=ht(t,e);if(isNaN(a))throw new RangeError("Invalid time value");let l=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:a}),[u,c]=Z(r?.in,...a>0?[e,t]:[t,e]),f=Mr(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<po){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/po);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(Ou,"formatDistance");var Bae=Ou;function Mu(t,e,r){let n=Ee(),o=r?.locale??n.locale??Nt,s=ht(t,e);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[l,u]=Z(r?.in,...s>0?[e,t]:[t,e]),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<po?g="hour":m<an?g="day":m<Fh?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/po);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/Fh);return o.formatDistance("xYears",x,a)}}i(Mu,"formatDistanceStrict");var Gae=Mu;function Iw(t,e){return Ou(t,he(t),e)}i(Iw,"formatDistanceToNow");var Zae=Iw;function _w(t,e){return Mu(t,he(t),e)}i(_w,"formatDistanceToNowStrict");var ile=_w;var uP=["years","months","weeks","days","hours","minutes","seconds"];function Pw(t,e){let r=Ee(),n=e?.locale??r.locale??Nt,o=e?.format??uP,s=e?.zero??!1,a=e?.delimiter??" ";return n.formatDistance?o.reduce((u,c)=>{let f=`x${c.replace(/(^.)/,h=>h.toUpperCase())}`,p=t[c];return p!==void 0&&(s||t[c])?u.concat(n.formatDistance(f,p)):u},[]).join(a):""}i(Pw,"formatDuration");var ule=Pw;function Nw(t,e){let r=y(t,e?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let n=e?.format??"extended",o=e?.representation??"complete",s="",a="",l=n==="extended"?"-":"",u=n==="extended"?":":"";if(o!=="time"){let c=J(r.getDate(),2),f=J(r.getMonth()+1,2);s=`${J(r.getFullYear(),4)}${l}${f}${l}${c}`}if(o!=="date"){let c=r.getTimezoneOffset();if(c!==0){let g=Math.abs(c),x=J(Math.trunc(g/60),2),w=J(g%60,2);a=`${c<0?"+":"-"}${x}:${w}`}else a="Z";let f=J(r.getHours(),2),p=J(r.getMinutes(),2),h=J(r.getSeconds(),2),m=s===""?"":"T",d=[f,p,h].join(u);s=`${s}${m}${d}${a}`}return s}i(Nw,"formatISO");var mle=Nw;function Aw(t,e){let r=y(t,e?.in);if(!ut(r))throw new RangeError("Invalid time value");let n=e?.format??"extended",o=e?.representation??"complete",s="",a=n==="extended"?"-":"",l=n==="extended"?":":"";if(o!=="time"){let u=J(r.getDate(),2),c=J(r.getMonth()+1,2);s=`${J(r.getFullYear(),4)}${a}${c}${a}${u}`}if(o!=="date"){let u=J(r.getHours(),2),c=J(r.getMinutes(),2),f=J(r.getSeconds(),2);s=`${s}${s===""?"":" "}${u}${l}${c}${l}${f}`}return s}i(Aw,"formatISO9075");var ble=Aw;function Rw(t){let{years:e=0,months:r=0,days:n=0,hours:o=0,minutes:s=0,seconds:a=0}=t;return`P${e}Y${r}M${n}DT${o}H${s}M${a}S`}i(Rw,"formatISODuration");var kle=Rw;function Fw(t,e){let r=y(t,e?.in);if(!ut(r))throw new RangeError("Invalid time value");let n=e?.fractionDigits??0,o=J(r.getDate(),2),s=J(r.getMonth()+1,2),a=r.getFullYear(),l=J(r.getHours(),2),u=J(r.getMinutes(),2),c=J(r.getSeconds(),2),f="";if(n>0){let m=r.getMilliseconds(),d=Math.trunc(m*Math.pow(10,n-3));f="."+J(d,n)}let p="",h=r.getTimezoneOffset();if(h!==0){let m=Math.abs(h),d=J(Math.trunc(m/60),2),g=J(m%60,2);p=`${h<0?"+":"-"}${d}:${g}`}else p="Z";return`${a}-${s}-${o}T${l}:${u}:${c}${f}${p}`}i(Fw,"formatRFC3339");var Mle=Fw;var cP=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],fP=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Lw(t){let e=y(t);if(!ut(e))throw new RangeError("Invalid time value");let r=cP[e.getUTCDay()],n=J(e.getUTCDate(),2),o=fP[e.getUTCMonth()],s=e.getUTCFullYear(),a=J(e.getUTCHours(),2),l=J(e.getUTCMinutes(),2),u=J(e.getUTCSeconds(),2);return`${r}, ${n} ${o} ${s} ${a}:${l}:${u} GMT`}i(Lw,"formatRFC7231");var Rle=Lw;function Bw(t,e,r){let[n,o]=Z(r?.in,t,e),s=Ee(),a=r?.locale??s.locale??Nt,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,u=rt(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 Gs(n,f,{locale:a,weekStartsOn:l})}i(Bw,"formatRelative");var $le=Bw;function zw(t,e){return y(t*1e3,e?.in)}i(zw,"fromUnixTime");var Vle=zw;function Iu(t,e){return y(t,e?.in).getDate()}i(Iu,"getDate");var Kle=Iu;function gn(t,e){return y(t,e?.in).getDay()}i(gn,"getDay");var tue=gn;function _u(t,e){let r=y(t,e?.in),n=r.getFullYear(),o=r.getMonth(),s=A(r,0);return s.setFullYear(n,o+1,0),s.setHours(0,0,0,0),s.getDate()}i(_u,"getDaysInMonth");var sue=_u;function Pu(t,e){let n=y(t,e?.in).getFullYear();return n%400===0||n%4===0&&n%100!==0}i(Pu,"isLeapYear");var cue=Pu;function jw(t,e){let r=y(t,e?.in);return Number.isNaN(+r)?NaN:Pu(r)?366:365}i(jw,"getDaysInYear");var due=jw;function Hw(t,e){let n=y(t,e?.in).getFullYear();return Math.floor(n/10)*10}i(Hw,"getDecade");var wue=Hw;function Nu(){return Object.assign({},Ee())}i(Nu,"getDefaultOptions");var kue=Nu;function Ww(t,e){return y(t,e?.in).getHours()}i(Ww,"getHours");var Cue=Ww;function Au(t,e){let r=y(t,e?.in).getDay();return r===0?7:r}i(Au,"getISODay");var _ue=Au;function $w(t,e){let r=Wt(t,e),o=+Wt(cn(r,60))-+r;return Math.round(o/Tr)}i($w,"getISOWeeksInYear");var Lue=$w;function Uw(t){return y(t).getMilliseconds()}i(Uw,"getMilliseconds");var Hue=Uw;function qw(t,e){return y(t,e?.in).getMinutes()}i(qw,"getMinutes");var que=qw;function Yw(t,e){return y(t,e?.in).getMonth()}i(Yw,"getMonth");var Jue=Yw;function Vw(t,e){let[r,n]=[+y(t.start),+y(t.end)].sort((p,h)=>p-h),[o,s]=[+y(e.start),+y(e.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)/eu)}i(Vw,"getOverlappingDaysInIntervals");var tce=Vw;function Gw(t){return y(t).getSeconds()}i(Gw,"getSeconds");var oce=Gw;function Jw(t){return+y(t)}i(Jw,"getTime");var uce=Jw;function Qw(t){return Math.trunc(+y(t)/1e3)}i(Qw,"getUnixTime");var hce=Qw;function Kw(t,e){let r=Ee(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Iu(y(t,e?.in));if(isNaN(o))return NaN;let s=gn(hn(t,e)),a=n-s;a<=0&&(a+=7);let l=o-a;return Math.ceil(l/7)+1}i(Kw,"getWeekOfMonth");var vce=Kw;function Ru(t,e){let r=y(t,e?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),y(r,e?.in)}i(Ru,"lastDayOfMonth");var Ece=Ru;function Xw(t,e){let r=y(t,e?.in);return ei(Ru(r,e),hn(r,e),e)+1}i(Xw,"getWeeksInMonth");var Pce=Xw;function Zw(t,e){return y(t,e?.in).getFullYear()}i(Zw,"getYear");var Fce=Zw;function eb(t){return Math.trunc(t*Ht)}i(eb,"hoursToMilliseconds");var jce=eb;function tb(t){return Math.trunc(t*tu)}i(tb,"hoursToMinutes");var Uce=tb;function rb(t){return Math.trunc(t*Xn)}i(rb,"hoursToSeconds");var Gce=rb;function nb(t,e,r){let[n,o]=Z(r?.in,t,e);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(nb,"interval");var Xce=nb;function ib(t,e){let{start:r,end:n}=nt(e?.in,t),o={},s=bu(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=yo(n,u);c&&(o.days=c);let f=ln(u,{days:o.days}),p=ti(n,f);p&&(o.hours=p);let h=ln(f,{hours:o.hours}),m=ri(n,h);m&&(o.minutes=m);let d=ln(h,{minutes:o.minutes}),g=Mr(n,d);return g&&(o.seconds=g),o}i(ib,"intervalToDuration");var ufe=ib;function ob(t,e,r){let n;return pP(e)?n=e:r=e,new Intl.DateTimeFormat(r?.locale,n).format(y(t))}i(ob,"intlFormat");function pP(t){return t!==void 0&&!("locale"in t)}i(pP,"isFormatOptions");var hfe=ob;function sb(t,e,r){let n=0,o,[s,a]=Z(r?.in,t,e);if(r?.unit)o=r?.unit,o==="second"?n=Mr(s,a):o==="minute"?n=ri(s,a):o==="hour"?n=ti(s,a):o==="day"?n=rt(s,a):o==="week"?n=ei(s,a):o==="month"?n=Zn(s,a):o==="quarter"?n=xo(s,a):o==="year"&&(n=fn(s,a));else{let u=Mr(s,a);Math.abs(u)<ho?(n=Mr(s,a),o="second"):Math.abs(u)<Xn?(n=ri(s,a),o="minute"):Math.abs(u)<Xl&&Math.abs(rt(s,a))<1?(n=ti(s,a),o="hour"):Math.abs(u)<Hy&&(n=rt(s,a))&&Math.abs(n)<7?o="day":Math.abs(u)<Bh?(n=ei(s,a),o="week"):Math.abs(u)<Wy?(n=Zn(s,a),o="month"):Math.abs(u)<Lh?xo(s,a)<4?(n=xo(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(sb,"intlFormatDistance");var Dfe=sb;function ab(t,e){return+y(t)>+y(e)}i(ab,"isAfter");var Ife=ab;function lb(t,e){return+y(t)<+y(e)}i(lb,"isBefore");var Afe=lb;function ub(t,e){return+y(t)==+y(e)}i(ub,"isEqual");var Bfe=ub;function cb(t,e,r){let n=new Date(t,e,r);return n.getFullYear()===t&&n.getMonth()===e&&n.getDate()===r}i(cb,"isExists");var Hfe=cb;function fb(t,e){return y(t,e?.in).getDate()===1}i(fb,"isFirstDayOfMonth");var qfe=fb;function pb(t,e){return y(t,e?.in).getDay()===5}i(pb,"isFriday");var Jfe=pb;function hb(t){return+y(t)>Date.now()}i(hb,"isFuture");var Zfe=hb;function Fu(t,e){let r=hP(e)?new e(0):A(e,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}i(Fu,"transpose");function hP(t){return typeof t=="function"&&t.prototype?.constructor===t}i(hP,"isConstructor");var npe=Fu;var mP=10,Lu=class{static{i(this,"Setter")}subPriority=0;validate(e,r){return!0}},Bu=class extends Lu{static{i(this,"ValueSetter")}constructor(e,r,n,o,s){super(),this.value=e,this.validateValue=r,this.setValue=n,this.priority=o,s&&(this.subPriority=s)}validate(e,r){return this.validateValue(e,this.value,r)}set(e,r,n){return this.setValue(e,r,this.value,n)}},zu=class extends Lu{static{i(this,"DateTimezoneSetter")}priority=mP;subPriority=-1;constructor(e,r){super(),this.context=e||(n=>A(r,n))}set(e,r){return r.timestampIsSet?e:A(e,Fu(e,this.context))}};var G=class{static{i(this,"Parser")}run(e,r,n,o){let s=this.parse(e,r,n,o);return s?{setter:new Bu(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,r,n){return!0}};var ju=class extends G{static{i(this,"EraParser")}priority=140;parse(e,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,r,n){return r.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}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}/},Jt={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(t,e){return t&&{value:e(t.value),rest:t.rest}}i(Ce,"mapValue");function xe(t,e){let r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}i(xe,"parseNumericPattern");function Qt(t,e){let r=e.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:e.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*Ht+s*pt+a*fo),rest:e.slice(r[0].length)}}i(Qt,"parseTimezonePattern");function Hu(t){return xe(we.anyDigitsSigned,t)}i(Hu,"parseAnyDigitsSigned");function pe(t,e){switch(t){case 1:return xe(we.singleDigit,e);case 2:return xe(we.twoDigits,e);case 3:return xe(we.threeDigits,e);case 4:return xe(we.fourDigits,e);default:return xe(new RegExp("^\\d{1,"+t+"}"),e)}}i(pe,"parseNDigits");function Mo(t,e){switch(t){case 1:return xe(we.singleDigitSigned,e);case 2:return xe(we.twoDigitsSigned,e);case 3:return xe(we.threeDigitsSigned,e);case 4:return xe(we.fourDigitsSigned,e);default:return xe(new RegExp("^-?\\d{1,"+t+"}"),e)}}i(Mo,"parseNDigitsSigned");function Io(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}i(Io,"dayPeriodEnumToHours");function Wu(t,e){let r=e>0,n=r?e:1-e,o;if(n<=50)o=t||100;else{let s=n+50,a=Math.trunc(s/100)*100,l=t>=s%100;o=t+a-(l?100:0)}return r?o:1-o}i(Wu,"normalizeTwoDigitYear");function $u(t){return t%400===0||t%4===0&&t%100!==0}i($u,"isLeapYearIndex");var Uu=class extends G{static{i(this,"YearParser")}priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,r,n){let o=i(s=>({year:s,isTwoDigitYear:r==="yy"}),"valueCallback");switch(r){case"y":return Ce(pe(4,e),o);case"yo":return Ce(n.ordinalNumber(e,{unit:"year"}),o);default:return Ce(pe(r.length,e),o)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n){let o=e.getFullYear();if(n.isTwoDigitYear){let a=Wu(n.year,o);return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}let s=!("era"in r)||r.era===1?n.year:1-n.year;return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}};var qu=class extends G{static{i(this,"LocalWeekYearParser")}priority=130;parse(e,r,n){let o=i(s=>({year:s,isTwoDigitYear:r==="YY"}),"valueCallback");switch(r){case"Y":return Ce(pe(4,e),o);case"Yo":return Ce(n.ordinalNumber(e,{unit:"year"}),o);default:return Ce(pe(r.length,e),o)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n,o){let s=mn(e,o);if(n.isTwoDigitYear){let l=Wu(n.year,s);return e.setFullYear(l,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),_e(e,o)}let a=!("era"in r)||r.era===1?n.year:1-n.year;return e.setFullYear(a,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),_e(e,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var Yu=class extends G{static{i(this,"ISOWeekYearParser")}priority=130;parse(e,r){return r==="R"?Mo(4,e):Mo(r.length,e)}set(e,r,n){let o=A(e,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 Vu=class extends G{static{i(this,"ExtendedYearParser")}priority=130;parse(e,r){return r==="u"?Mo(4,e):Mo(r.length,e)}set(e,r,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var Gu=class extends G{static{i(this,"QuarterParser")}priority=120;parse(e,r,n){switch(r){case"Q":case"QQ":return pe(r.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=1&&r<=4}set(e,r,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var Ju=class extends G{static{i(this,"StandAloneQuarterParser")}priority=120;parse(e,r,n){switch(r){case"q":case"qq":return pe(r.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=1&&r<=4}set(e,r,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Qu=class extends G{static{i(this,"MonthParser")}incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,r,n){let o=i(s=>s-1,"valueCallback");switch(r){case"M":return Ce(xe(we.month,e),o);case"MM":return Ce(pe(2,e),o);case"Mo":return Ce(n.ordinalNumber(e,{unit:"month"}),o);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}};var Ku=class extends G{static{i(this,"StandAloneMonthParser")}priority=110;parse(e,r,n){let o=i(s=>s-1,"valueCallback");switch(r){case"L":return Ce(xe(we.month,e),o);case"LL":return Ce(pe(2,e),o);case"Lo":return Ce(n.ordinalNumber(e,{unit:"month"}),o);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function Xu(t,e,r){let n=y(t,r?.in),o=Co(n,r)-e;return n.setDate(n.getDate()-o*7),y(n,r?.in)}i(Xu,"setWeek");var ahe=Xu;var Zu=class extends G{static{i(this,"LocalWeekParser")}priority=100;parse(e,r,n){switch(r){case"w":return xe(we.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return pe(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n,o){return _e(Xu(e,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function ec(t,e,r){let n=y(t,r?.in),o=Do(n,r)-e;return n.setDate(n.getDate()-o*7),n}i(ec,"setISOWeek");var whe=ec;var tc=class extends G{static{i(this,"ISOWeekParser")}priority=100;parse(e,r,n){switch(r){case"I":return xe(we.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return pe(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n){return Ye(ec(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var dP=[31,28,31,30,31,30,31,31,30,31,30,31],gP=[31,29,31,30,31,30,31,31,30,31,30,31],rc=class extends G{static{i(this,"DateParser")}priority=90;subPriority=1;parse(e,r,n){switch(r){case"d":return xe(we.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return pe(r.length,e)}}validate(e,r){let n=e.getFullYear(),o=$u(n),s=e.getMonth();return o?r>=1&&r<=gP[s]:r>=1&&r<=dP[s]}set(e,r,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var nc=class extends G{static{i(this,"DayOfYearParser")}priority=90;subpriority=1;parse(e,r,n){switch(r){case"D":case"DD":return xe(we.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return pe(r.length,e)}}validate(e,r){let n=e.getFullYear();return $u(n)?r>=1&&r<=366:r>=1&&r<=365}set(e,r,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function xn(t,e,r){let n=Ee(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=y(t,r?.in),a=s.getDay(),u=(e%7+7)%7,c=7-o,f=e<0||e>6?e-(a+c)%7:(u+c)%7-(a+c)%7;return Ke(s,f,r)}i(xn,"setDay");var Whe=xn;var ic=class extends G{static{i(this,"DayParser")}priority=90;parse(e,r,n){switch(r){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,o){return e=xn(e,n,o),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]};var oc=class extends G{static{i(this,"LocalDayParser")}priority=90;parse(e,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,e),s);case"eo":return Ce(n.ordinalNumber(e,{unit:"day"}),s);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,o){return e=xn(e,n,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var sc=class extends G{static{i(this,"StandAloneLocalDayParser")}priority=90;parse(e,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,e),s);case"co":return Ce(n.ordinalNumber(e,{unit:"day"}),s);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,o){return e=xn(e,n,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function ac(t,e,r){let n=y(t,r?.in),o=Au(n,r),s=e-o;return Ke(n,s,r)}i(ac,"setISODay");var lme=ac;var lc=class extends G{static{i(this,"ISODayParser")}priority=90;parse(e,r,n){let o=i(s=>s===0?7:s,"valueCallback");switch(r){case"i":case"ii":return pe(r.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Ce(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);case"iiiii":return Ce(n.day(e,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Ce(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);default:return Ce(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o)}}validate(e,r){return r>=1&&r<=7}set(e,r,n){return e=ac(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var uc=class extends G{static{i(this,"AMPMParser")}priority=80;parse(e,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(Io(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};var cc=class extends G{static{i(this,"AMPMMidnightParser")}priority=80;parse(e,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(Io(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};var fc=class extends G{static{i(this,"DayPeriodParser")}priority=80;parse(e,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(Io(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]};var pc=class extends G{static{i(this,"Hour1to12Parser")}priority=70;parse(e,r,n){switch(r){case"h":return xe(we.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return pe(r.length,e)}}validate(e,r){return r>=1&&r<=12}set(e,r,n){let o=e.getHours()>=12;return o&&n<12?e.setHours(n+12,0,0,0):!o&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]};var hc=class extends G{static{i(this,"Hour0to23Parser")}priority=70;parse(e,r,n){switch(r){case"H":return xe(we.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return pe(r.length,e)}}validate(e,r){return r>=0&&r<=23}set(e,r,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]};var mc=class extends G{static{i(this,"Hour0To11Parser")}priority=70;parse(e,r,n){switch(r){case"K":return xe(we.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return pe(r.length,e)}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]};var dc=class extends G{static{i(this,"Hour1To24Parser")}priority=70;parse(e,r,n){switch(r){case"k":return xe(we.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return pe(r.length,e)}}validate(e,r){return r>=1&&r<=24}set(e,r,n){let o=n<=24?n%24:n;return e.setHours(o,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]};var gc=class extends G{static{i(this,"MinuteParser")}priority=60;parse(e,r,n){switch(r){case"m":return xe(we.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return pe(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]};var xc=class extends G{static{i(this,"SecondParser")}priority=50;parse(e,r,n){switch(r){case"s":return xe(we.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return pe(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]};var yc=class extends G{static{i(this,"FractionOfSecondParser")}priority=30;parse(e,r){let n=i(o=>Math.trunc(o*Math.pow(10,-r.length+3)),"valueCallback");return Ce(pe(r.length,e),n)}set(e,r,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]};var wc=class extends G{static{i(this,"ISOTimezoneWithZParser")}priority=10;parse(e,r){switch(r){case"X":return Qt(Jt.basicOptionalMinutes,e);case"XX":return Qt(Jt.basic,e);case"XXXX":return Qt(Jt.basicOptionalSeconds,e);case"XXXXX":return Qt(Jt.extendedOptionalSeconds,e);default:return Qt(Jt.extended,e)}}set(e,r,n){return r.timestampIsSet?e:A(e,e.getTime()-Be(e)-n)}incompatibleTokens=["t","T","x"]};var bc=class extends G{static{i(this,"ISOTimezoneParser")}priority=10;parse(e,r){switch(r){case"x":return Qt(Jt.basicOptionalMinutes,e);case"xx":return Qt(Jt.basic,e);case"xxxx":return Qt(Jt.basicOptionalSeconds,e);case"xxxxx":return Qt(Jt.extendedOptionalSeconds,e);default:return Qt(Jt.extended,e)}}set(e,r,n){return r.timestampIsSet?e:A(e,e.getTime()-Be(e)-n)}incompatibleTokens=["t","T","X"]};var vc=class extends G{static{i(this,"TimestampSecondsParser")}priority=40;parse(e){return Hu(e)}set(e,r,n){return[A(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Sc=class extends G{static{i(this,"TimestampMillisecondsParser")}priority=20;parse(e){return Hu(e)}set(e,r,n){return[A(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"};var kc={G:new ju,y:new Uu,Y:new qu,R:new Yu,u:new Vu,Q:new Gu,q:new Ju,M:new Qu,L:new Ku,w:new Zu,I:new tc,d:new rc,D:new nc,E:new ic,e:new oc,c:new sc,i:new lc,a:new uc,b:new cc,B:new fc,h:new pc,H:new hc,K:new mc,k:new dc,m:new gc,s:new xc,S:new yc,X:new wc,x:new bc,t:new vc,T:new Sc};var xP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wP=/^'([^]*?)'?$/,bP=/''/g,vP=/\S/,SP=/[a-zA-Z]/;function Tc(t,e,r,n){let o=i(()=>A(n?.in||r,NaN),"invalidDate"),s=Nu(),a=n?.locale??s.locale??Nt,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(!e)return t?o():y(r,n?.in);let c={firstWeekContainsDate:l,weekStartsOn:u,locale:a},f=[new zu(n?.in,r)],p=e.match(yP).map(x=>{let w=x[0];if(w in dn){let T=dn[w];return T(x,a.formatLong)}return x}).join("").match(xP),h=[];for(let x of p){!n?.useAdditionalWeekYearTokens&&Cu(x)&&Vs(x,e,t),!n?.useAdditionalDayOfYearTokens&&Du(x)&&Vs(x,e,t);let w=x[0],T=kc[w];if(T){let{incompatibleTokens:E}=T;if(Array.isArray(E)){let H=h.find(O=>E.includes(O.token)||O.token===w);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:w,fullToken:x});let q=T.run(t,x,a.match,c);if(!q)return o();f.push(q.setter),t=q.rest}else{if(w.match(SP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");if(x==="''"?x="'":w==="'"&&(x=kP(x)),t.indexOf(x)===0)t=t.slice(x.length);else return o()}}if(t.length>0&&vP.test(t))return o();let m=f.map(x=>x.priority).sort((x,w)=>w-x).filter((x,w,T)=>T.indexOf(x)===w).map(x=>f.filter(w=>w.priority===x).sort((w,T)=>T.subPriority-w.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 w=x.set(d,g,c);Array.isArray(w)?(d=w[0],Object.assign(g,w[1])):d=w}return d}i(Tc,"parse");function kP(t){return t.match(wP)[1].replace(bP,"'")}i(kP,"cleanEscapedString");var yge=Tc;function mb(t,e,r){return ut(Tc(t,e,new Date,r))}i(mb,"isMatch");var kge=mb;function db(t,e){return y(t,e?.in).getDay()===1}i(db,"isMonday");var Cge=db;function gb(t){return+y(t)<Date.now()}i(gb,"isPast");var _ge=gb;function Js(t,e){let r=y(t,e?.in);return r.setMinutes(0,0,0),r}i(Js,"startOfHour");var Rge=Js;function Ec(t,e,r){let[n,o]=Z(r?.in,t,e);return+Js(n)==+Js(o)}i(Ec,"isSameHour");var jge=Ec;function _o(t,e,r){let[n,o]=Z(r?.in,t,e);return+_e(n,r)==+_e(o,r)}i(_o,"isSameWeek");var qge=_o;function Dc(t,e,r){return _o(t,e,{...r,weekStartsOn:1})}i(Dc,"isSameISOWeek");var Jge=Dc;function xb(t,e,r){let[n,o]=Z(r?.in,t,e);return+Wt(n)==+Wt(o)}i(xb,"isSameISOWeekYear");var exe=xb;function Qs(t,e){let r=y(t,e?.in);return r.setSeconds(0,0),r}i(Qs,"startOfMinute");var ixe=Qs;function Cc(t,e){return+Qs(t)==+Qs(e)}i(Cc,"isSameMinute");var lxe=Cc;function Oc(t,e,r){let[n,o]=Z(r?.in,t,e);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}i(Oc,"isSameMonth");var pxe=Oc;function Mc(t,e,r){let[n,o]=Z(r?.in,t,e);return+Ir(n)==+Ir(o)}i(Mc,"isSameQuarter");var xxe=Mc;function Ks(t,e){let r=y(t,e?.in);return r.setMilliseconds(0),r}i(Ks,"startOfSecond");var vxe=Ks;function Ic(t,e){return+Ks(t)==+Ks(e)}i(Ic,"isSameSecond");var Exe=Ic;function _c(t,e,r){let[n,o]=Z(r?.in,t,e);return n.getFullYear()===o.getFullYear()}i(_c,"isSameYear");var Mxe=_c;function yb(t,e){return Ec(y(t,e?.in),he(e?.in||t))}i(yb,"isThisHour");var Rxe=yb;function wb(t,e){return Dc(A(e?.in||t,t),he(e?.in||t))}i(wb,"isThisISOWeek");var Hxe=wb;function bb(t){return Cc(t,he(t))}i(bb,"isThisMinute");var Yxe=bb;function vb(t,e){return Oc(A(e?.in||t,t),he(e?.in||t))}i(vb,"isThisMonth");var Xxe=vb;function Sb(t,e){return Mc(A(e?.in||t,t),he(e?.in||t))}i(Sb,"isThisQuarter");var iye=Sb;function kb(t){return Ic(t,he(t))}i(kb,"isThisSecond");var uye=kb;function Tb(t,e){return _o(A(e?.in||t,t),he(e?.in||t),e)}i(Tb,"isThisWeek");var dye=Tb;function Eb(t,e){return _c(A(e?.in||t,t),he(e?.in||t))}i(Eb,"isThisYear");var vye=Eb;function Db(t,e){return y(t,e?.in).getDay()===4}i(Db,"isThursday");var Eye=Db;function Cb(t,e){return Or(A(e?.in||t,t),he(e?.in||t))}i(Cb,"isToday");var _ye=Cb;function Ob(t,e){return Or(t,Ke(he(e?.in||t),1),e)}i(Ob,"isTomorrow");var Lye=Ob;function Mb(t,e){return y(t,e?.in).getDay()===2}i(Mb,"isTuesday");var Hye=Mb;function Ib(t,e){return y(t,e?.in).getDay()===3}i(Ib,"isWednesday");var qye=Ib;function _b(t,e,r){let n=+y(t,r?.in),[o,s]=[+y(e.start,r?.in),+y(e.end,r?.in)].sort((a,l)=>a-l);return n>=o&&n<=s}i(_b,"isWithinInterval");var Jye=_b;function yn(t,e,r){return Ke(t,-e,r)}i(yn,"subDays");var Zye=yn;function Pb(t,e){return Or(A(e?.in||t,t),yn(he(e?.in||t),1))}i(Pb,"isYesterday");var swe=Pb;function Nb(t,e){let r=y(t,e?.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,e?.in)}i(Nb,"lastDayOfDecade");var cwe=Nb;function Pc(t,e){let r=Ee(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=y(t,e?.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(Pc,"lastDayOfWeek");var dwe=Pc;function Ab(t,e){return Pc(t,{...e,weekStartsOn:1})}i(Ab,"lastDayOfISOWeek");var wwe=Ab;function Rb(t,e){let r=Tt(t,e),n=A(e?.in||t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=Ye(n,e);return o.setDate(o.getDate()-1),o}i(Rb,"lastDayOfISOWeekYear");var Ewe=Rb;function Fb(t,e){let r=y(t,e?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(0,0,0,0),r}i(Fb,"lastDayOfQuarter");var Mwe=Fb;function Lb(t,e){let r=y(t,e?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),r}i(Lb,"lastDayOfYear");var Nwe=Lb;var TP=/(\w)\1*|''|'(''|[^'])+('|$)|./g,EP=/^'([^]*?)'?$/,DP=/''/g,CP=/[a-zA-Z]/;function Bb(t,e){let r=y(t);if(!ut(r))throw new RangeError("Invalid time value");let n=e.match(TP);return n?n.map(s=>{if(s==="''")return"'";let a=s[0];if(a==="'")return OP(s);let l=$t[a];if(l)return l(r,s);if(a.match(CP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return s}).join(""):""}i(Bb,"lightFormat");function OP(t){let e=t.match(EP);return e?e[1].replace(DP,"'"):t}i(OP,"cleanEscapedString");var zwe=Bb;function zb({years:t,months:e,weeks:r,days:n,hours:o,minutes:s,seconds:a}){let l=0;t&&(l+=t*365.2425),e&&(l+=e*(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(zb,"milliseconds");var $we=zb;function jb(t){let e=t/Ht;return Math.trunc(e)}i(jb,"millisecondsToHours");var Vwe=jb;function Hb(t){let e=t/pt;return Math.trunc(e)}i(Hb,"millisecondsToMinutes");var Kwe=Hb;function Wb(t){let e=t/fo;return Math.trunc(e)}i(Wb,"millisecondsToSeconds");var tbe=Wb;function $b(t){let e=t/tu;return Math.trunc(e)}i($b,"minutesToHours");var obe=$b;function Ub(t){return Math.trunc(t*pt)}i(Ub,"minutesToMilliseconds");var ube=Ub;function qb(t){return Math.trunc(t*ho)}i(qb,"minutesToSeconds");var hbe=qb;function Yb(t){let e=t/ru;return Math.trunc(e)}i(Yb,"monthsToQuarters");var xbe=Yb;function Vb(t){let e=t/nu;return Math.trunc(e)}i(Vb,"monthsToYears");var vbe=Vb;function dt(t,e,r){let n=e-gn(t,r);return n<=0&&(n+=7),Ke(t,n,r)}i(dt,"nextDay");var Dbe=dt;function Gb(t,e){return dt(t,5,e)}i(Gb,"nextFriday");var Ibe=Gb;function Jb(t,e){return dt(t,1,e)}i(Jb,"nextMonday");var Abe=Jb;function Qb(t,e){return dt(t,6,e)}i(Qb,"nextSaturday");var Bbe=Qb;function Kb(t,e){return dt(t,0,e)}i(Kb,"nextSunday");var Wbe=Kb;function Xb(t,e){return dt(t,4,e)}i(Xb,"nextThursday");var Ybe=Xb;function Zb(t,e){return dt(t,2,e)}i(Zb,"nextTuesday");var Qbe=Zb;function e0(t,e){return dt(t,3,e)}i(e0,"nextWednesday");var e0e=e0;function r0(t,e){let r=i(()=>A(e?.in,NaN),"invalidDate"),n=e?.additionalDigits??2,o=PP(t),s;if(o.date){let c=NP(o.date,n);s=AP(c.restDateString,c.year)}if(!s||isNaN(+s))return r();let a=+s,l=0,u;if(o.time&&(l=RP(o.time),isNaN(l)))return r();if(o.timezone){if(u=FP(o.timezone),isNaN(u))return r()}else{let c=new Date(a+l),f=y(0,e?.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,e?.in)}i(r0,"parseISO");var Nc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},MP=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,IP=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,_P=/^([+-])(\d{2})(?::?(\d{2}))?$/;function PP(t){let e={},r=t.split(Nc.dateTimeDelimiter),n;if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],Nc.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Nc.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){let o=Nc.timezone.exec(n);o?(e.time=n.replace(o[1],""),e.timezone=o[1]):e.time=n}return e}i(PP,"splitDateString");function NP(t,e){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.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:t.slice((n[1]||n[2]).length)}}i(NP,"parseYear");function AP(t,e){if(e===null)return new Date(NaN);let r=t.match(MP);if(!r)return new Date(NaN);let n=!!r[4],o=Xs(r[1]),s=Xs(r[2])-1,a=Xs(r[3]),l=Xs(r[4]),u=Xs(r[5])-1;if(n)return HP(e,l,u)?LP(e,l,u):new Date(NaN);{let c=new Date(0);return!zP(e,s,a)||!jP(e,o)?new Date(NaN):(c.setUTCFullYear(e,s,Math.max(o,a)),c)}}i(AP,"parseDate");function Xs(t){return t?parseInt(t):1}i(Xs,"parseDateUnit");function RP(t){let e=t.match(IP);if(!e)return NaN;let r=jh(e[1]),n=jh(e[2]),o=jh(e[3]);return WP(r,n,o)?r*Ht+n*pt+o*1e3:NaN}i(RP,"parseTime");function jh(t){return t&&parseFloat(t.replace(",","."))||0}i(jh,"parseTimeUnit");function FP(t){if(t==="Z")return 0;let e=t.match(_P);if(!e)return 0;let r=e[1]==="+"?-1:1,n=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return $P(n,o)?r*(n*Ht+o*pt):NaN}i(FP,"parseTimezone");function LP(t,e,r){let n=new Date(0);n.setUTCFullYear(t,0,4);let o=n.getUTCDay()||7,s=(e-1)*7+r+1-o;return n.setUTCDate(n.getUTCDate()+s),n}i(LP,"dayOfISOWeekYear");var BP=[31,null,31,30,31,30,31,31,30,31,30,31];function t0(t){return t%400===0||t%4===0&&t%100!==0}i(t0,"isLeapYearIndex");function zP(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(BP[e]||(t0(t)?29:28))}i(zP,"validateDate");function jP(t,e){return e>=1&&e<=(t0(t)?366:365)}i(jP,"validateDayOfYearDate");function HP(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}i(HP,"validateWeekDate");function WP(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}i(WP,"validateTime");function $P(t,e){return e>=0&&e<=59}i($P,"validateTimezone");var s0e=r0;function n0(t,e){let r=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return r?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)),e?.in):y(NaN,e?.in)}i(n0,"parseJSON");var c0e=n0;function gt(t,e,r){let n=gn(t,r)-e;return n<=0&&(n+=7),yn(t,n,r)}i(gt,"previousDay");var d0e=gt;function i0(t,e){return gt(t,5,e)}i(i0,"previousFriday");var w0e=i0;function o0(t,e){return gt(t,1,e)}i(o0,"previousMonday");var k0e=o0;function s0(t,e){return gt(t,6,e)}i(s0,"previousSaturday");var C0e=s0;function a0(t,e){return gt(t,0,e)}i(a0,"previousSunday");var _0e=a0;function l0(t,e){return gt(t,4,e)}i(l0,"previousThursday");var R0e=l0;function u0(t,e){return gt(t,2,e)}i(u0,"previousTuesday");var z0e=u0;function c0(t,e){return gt(t,3,e)}i(c0,"previousWednesday");var $0e=c0;function f0(t){return Math.trunc(t*ru)}i(f0,"quartersToMonths");var V0e=f0;function p0(t){let e=t/iu;return Math.trunc(e)}i(p0,"quartersToYears");var K0e=p0;function h0(t,e){let r=e?.nearestTo??1;if(r<1||r>12)return A(e?.in||t,NaN);let n=y(t,e?.in),o=n.getMinutes()/60,s=n.getSeconds()/60/60,a=n.getMilliseconds()/1e3/60/60,l=n.getHours()+o+s+a,u=e?.roundingMethod??"round",f=mt(u)(l/r)*r;return n.setHours(f,0,0,0),n}i(h0,"roundToNearestHours");var nve=h0;function m0(t,e){let r=e?.nearestTo??1;if(r<1||r>30)return A(t,NaN);let n=y(t,e?.in),o=n.getSeconds()/60,s=n.getMilliseconds()/1e3/60,a=n.getMinutes()+o+s,l=e?.roundingMethod??"round",c=mt(l)(a/r)*r;return n.setMinutes(c,0,0),n}i(m0,"roundToNearestMinutes");var uve=m0;function d0(t){let e=t/Xn;return Math.trunc(e)}i(d0,"secondsToHours");var hve=d0;function g0(t){return t*fo}i(g0,"secondsToMilliseconds");var xve=g0;function x0(t){let e=t/ho;return Math.trunc(e)}i(x0,"secondsToMinutes");var vve=x0;function Po(t,e,r){let n=y(t,r?.in),o=n.getFullYear(),s=n.getDate(),a=A(r?.in||t,0);a.setFullYear(o,e,15),a.setHours(0,0,0,0);let l=_u(a);return n.setMonth(e,Math.min(s,l)),n}i(Po,"setMonth");var Cve=Po;function y0(t,e,r){let n=y(t,r?.in);return isNaN(+n)?A(r?.in||t,NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Po(n,e.month)),e.date!=null&&n.setDate(e.date),e.hours!=null&&n.setHours(e.hours),e.minutes!=null&&n.setMinutes(e.minutes),e.seconds!=null&&n.setSeconds(e.seconds),e.milliseconds!=null&&n.setMilliseconds(e.milliseconds),n)}i(y0,"set");var Nve=y0;function w0(t,e,r){let n=y(t,r?.in);return n.setDate(e),n}i(w0,"setDate");var Lve=w0;function b0(t,e,r){let n=y(t,r?.in);return n.setMonth(0),n.setDate(e),n}i(b0,"setDayOfYear");var Hve=b0;function v0(t){let e={},r=Ee();for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]===void 0?delete e[n]:e[n]=t[n]);Uy(e)}i(v0,"setDefaultOptions");var qve=v0;function S0(t,e,r){let n=y(t,r?.in);return n.setHours(e),n}i(S0,"setHours");var Jve=S0;function k0(t,e,r){let n=y(t,r?.in);return n.setMilliseconds(e),n}i(k0,"setMilliseconds");var Zve=k0;function T0(t,e,r){let n=y(t,r?.in);return n.setMinutes(e),n}i(T0,"setMinutes");var nSe=T0;function E0(t,e,r){let n=y(t,r?.in),o=Math.trunc(n.getMonth()/3)+1,s=e-o;return Po(n,n.getMonth()+s*3)}i(E0,"setQuarter");var lSe=E0;function D0(t,e,r){let n=y(t,r?.in);return n.setSeconds(e),n}i(D0,"setSeconds");var pSe=D0;function C0(t,e,r){let n=Ee(),o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=rt(y(t,r?.in),ni(t,r),r),a=A(r?.in||t,0);a.setFullYear(e,0,o),a.setHours(0,0,0,0);let l=ni(a,r);return l.setDate(l.getDate()+s),l}i(C0,"setWeekYear");var bSe=C0;function O0(t,e,r){let n=y(t,r?.in);return isNaN(+n)?A(r?.in||t,NaN):(n.setFullYear(e),n)}i(O0,"setYear");var ESe=O0;function M0(t,e){let r=y(t,e?.in),n=r.getFullYear(),o=Math.floor(n/10)*10;return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r}i(M0,"startOfDecade");var MSe=M0;function I0(t){return Cr(Date.now(),t)}i(I0,"startOfToday");var NSe=I0;function _0(t){let e=he(t?.in),r=e.getFullYear(),n=e.getMonth(),o=e.getDate(),s=A(t?.in,0);return s.setFullYear(r,n,o+1),s.setHours(0,0,0,0),s}i(_0,"startOfTomorrow");var BSe=_0;function P0(t){let e=he(t?.in),r=e.getFullYear(),n=e.getMonth(),o=e.getDate(),s=he(t?.in);return s.setFullYear(r,n,o-1),s.setHours(0,0,0,0),s}i(P0,"startOfYesterday");var WSe=P0;function Ac(t,e,r){return Er(t,-e,r)}i(Ac,"subMonths");var YSe=Ac;function N0(t,e,r){let{years:n=0,months:o=0,weeks:s=0,days:a=0,hours:l=0,minutes:u=0,seconds:c=0}=e,f=Ac(t,o+n*12,r),p=yn(f,a+s*7,r),h=u+l*60,d=(c+h*60)*1e3;return A(r?.in||t,+p-d)}i(N0,"sub");var XSe=N0;function A0(t,e,r){return au(t,-e,r)}i(A0,"subBusinessDays");var rke=A0;function R0(t,e,r){return lu(t,-e,r)}i(R0,"subHours");var ske=R0;function F0(t,e,r){return un(t,-e,r)}i(F0,"subMilliseconds");var cke=F0;function L0(t,e,r){return mo(t,-e,r)}i(L0,"subMinutes");var mke=L0;function B0(t,e,r){return go(t,-e,r)}i(B0,"subQuarters");var yke=B0;function z0(t,e,r){return fu(t,-e,r)}i(z0,"subSeconds");var Ske=z0;function j0(t,e,r){return cn(t,-e,r)}i(j0,"subWeeks");var Dke=j0;function H0(t,e,r){return pu(t,-e,r)}i(H0,"subYears");var Ike=H0;function W0(t){return Math.trunc(t*7)}i(W0,"weeksToDays");var Ake=W0;function $0(t){return Math.trunc(t*365.2425)}i($0,"yearsToDays");var Bke=$0;function U0(t){return Math.trunc(t*nu)}i(U0,"yearsToMonths");var Wke=U0;function q0(t){return Math.trunc(t*iu)}i(q0,"yearsToQuarters");var Yke=q0;var G0=i(t=>Number.isFinite(t)?t:0,"toZeroIfInfinity");function UP(t){return{days:Math.trunc(t/864e5),hours:Math.trunc(t/36e5%24),minutes:Math.trunc(t/6e4%60),seconds:Math.trunc(t/1e3%60),milliseconds:Math.trunc(t%1e3),microseconds:Math.trunc(G0(t*1e3)%1e3),nanoseconds:Math.trunc(G0(t*1e6)%1e3)}}i(UP,"parseNumber");function qP(t){return{days:t/86400000n,hours:t/3600000n%24n,minutes:t/60000n%60n,seconds:t/1000n%60n,milliseconds:t%1000n,microseconds:0n,nanoseconds:0n}}i(qP,"parseBigint");function qh(t){switch(typeof t){case"number":{if(Number.isFinite(t))return UP(t);break}case"bigint":return qP(t)}throw new TypeError("Expected a finite number or bigint")}i(qh,"parseMilliseconds");var YP=i(t=>t===0||t===0n,"isZero"),VP=i((t,e)=>e===1||e===1n?t:`${t}s`,"pluralize"),GP=1e-7,JP=24n*60n*60n*1000n;function ea(t,e){let r=typeof t=="bigint";if(!r&&!Number.isFinite(t))throw new TypeError("Expected a finite number or bigint");e={...e};let n=t<0?"-":"";t=t<0?-t:t,e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.unitCount=1,e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let o=[],s=i((f,p)=>{let h=Math.floor(f*10**p+GP);return(Math.round(h)/10**p).toFixed(p)},"floorDecimals"),a=i((f,p,h,m)=>{if(!((o.length===0||!e.colonNotation)&&YP(f)&&!(e.colonNotation&&h==="m"))){if(m??=String(f),e.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+=e.verbose?" "+VP(p,f):h;o.push(m)}},"add"),l=qh(t),u=BigInt(l.days);if(e.hideYearAndDays?a(BigInt(u)*24n+BigInt(l.hours),"hour","h"):(e.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"),!e.hideSeconds)if(e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3&&!e.subSecondsAsDecimals){let f=Number(l.seconds),p=Number(l.milliseconds),h=Number(l.microseconds),m=Number(l.nanoseconds);if(a(f,"second","s"),e.formatSubMilliseconds)a(p,"millisecond","ms"),a(h,"microsecond","\xB5s"),a(m,"nanosecond","ns");else{let d=p+h/1e3+m/1e6,g=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,x=d>=1?Math.round(d):Math.ceil(d),w=g?d.toFixed(g):x;a(Number.parseFloat(w),"millisecond","ms",w)}}else{let f=(r?Number(t%JP):t)/1e3%60,p=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,h=s(f,p),m=e.keepDecimalsOnWholeSeconds?h:h.replace(/\.0+$/,"");a(Number.parseFloat(m),"second","s",m)}if(o.length===0)return n+"0"+(e.verbose?" milliseconds":"ms");let c=e.colonNotation?":":" ";return typeof e.unitCount=="number"&&(o=o.slice(0,Math.max(e.unitCount,1))),n+o.join(c)}i(ea,"prettyMilliseconds");var oi=jt(Y0(),1),J0=jt(V0(),1);oi.default.extend(J0.default);var ta=class{static{i(this,"CronJob")}constructor(e,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=new $s.Cron(r)}checkExecution(){if(this.status==="stopped")return this.nextExecutionUnix;if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let e=this.jobFunction(this.nextExecutionUnix);e instanceof Promise&&e.catch(r=>console.log(r)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()}start(){this.status="started"}stop(){this.status="stopped"}};var Yh=class{static{i(this,"CronManager")}constructor(){this.status="stopped",this.cronjobs=new xt.ObjectMap,this.cycleWakeDeferred=null}wakeCycle(){this.cycleWakeDeferred&&this.cycleWakeDeferred.status==="pending"&&this.cycleWakeDeferred.resolve()}addCronjob(e,r){let n=new ta(this,e,r);return this.cronjobs.add(n),this.status==="started"&&(n.start(),this.wakeCycle()),n}removeCronjob(e){e.stop(),this.cronjobs.remove(e),this.status==="started"&&this.wakeCycle()}start(){if(this.status!=="started"){this.status="started";for(let e of this.cronjobs.getArray())e.start();this.runCronCycle()}}async runCronCycle(){for(;this.status==="started";){this.cycleWakeDeferred=new re.Deferred;let e=1/0;for(let r of this.cronjobs.getArray()){r.checkExecution();let n=r.getTimeToNextExecution();n<e&&(e=n)}if(e<1/0&&e>0)this.executionTimeout=new ge.Timeout(e),await Promise.race([this.executionTimeout.promise,this.cycleWakeDeferred.promise]),this.executionTimeout.cancel();else{if(e<=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 e of this.cronjobs.getArray())e.stop()}};var wn={years:i((t=1)=>t*3154e7,"years"),months:i((t=1)=>t*2628e6,"months"),weeks:i((t=1)=>t*6048e5,"weeks"),days:i((t=1)=>t*864e5,"days"),hours:i((t=1)=>t*36e5,"hours"),minutes:i((t=1)=>t*6e4,"minutes"),seconds:i((t=1)=>t*1e3,"seconds")},Vh=i(t=>{let e=0,r=i(n=>{e=e+n},"addMilliSeconds");return t.years&&r(wn.years(t.years)),t.months&&r(wn.months(t.months)),t.weeks&&r(wn.weeks(t.weeks)),t.days&&r(wn.days(t.days)),t.hours&&r(wn.hours(t.hours)),t.minutes&&r(wn.minutes(t.minutes)),t.seconds&&r(wn.seconds(t.seconds)),e},"getMilliSecondsFromUnits"),QP=i(t=>ea(t),"getMilliSecondsAsHumanReadableString"),KP=i(t=>Zs.formatDistanceToNow(new Date(t)),"getMilliSecondsAsHumanReadableAgoTime");var Gh=class t extends Date{static{i(this,"ExtendedDate")}static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let r=/(.*)\.(.*)\.(.*)/.exec(e),o=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new t(o)}static fromHyphedDate(e){let r=new Date(e).getTime();return new t(r)}static fromEuropeanDateAndTime(e,r="12:00:00",n="Europe/Berlin"){let o=/(.*)\.(.*)\.(.*)/.exec(e),s=i(c=>`0${c}`.slice(-2),"sliceDate"),a=`${o[3]}-${s(o[2])}-${s(o[1])}T${r}`,u=oi.default(a).toDate().getTime();return new t(u)}constructor(e=Date.now()){super(e)}exportToEuropeanDate(){let e=this.exportToUnits();return`${e.dayString}.${e.monthString}.${e.yearString}`}exportToHyphedSortableDate(){let e=this.exportToUnits();return`${e.yearString}-${e.monthString}-${e.dayString}`}exportToUnits(){let e=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return{year:this.getFullYear(),yearString:`${this.getFullYear()}`,month:this.getMonth()+1,monthString:("0"+(this.getMonth()+1)).slice(-2),monthName:e[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(e){return oi.default(this.getTime()).format(e)}isToday(){return oi.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=Vh(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Jh=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 Qh=class{static{i(this,"Interval")}constructor(e){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=e}start(){this.status="started";let e=new Date;this.statusAuthorization=e,i(async()=>{for(;this.status==="started"&&this.statusAuthorization===e;)await ge.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()},"runInterval")()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(e){this.intervalJobs.push(e)}executeIntervalJobs(){for(let e of this.intervalJobs)e()}};var Ao=class t{static{i(this,"TimeStamp")}static fromMilliSeconds(e){return new t(e)}static fromTimeStamp(e){let r=new t;return r.change=r.milliSeconds-e.milliSeconds,r}constructor(e){this.change=null,e?typeof e=="number"&&(this.date=new Date(e)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,r=0){return this.milliSeconds<e.milliSeconds-r}isOlderThan(e,r=0){return this.milliSeconds+r<e.milliSeconds}isYoungerThanOtherTimeStamp(e,r=0){return this.milliSeconds>e.milliSeconds+r}isYoungerThanMilliSeconds(e){let n=new t().epochtime-e,o=new t(n);return this.isYoungerThanOtherTimeStamp(o)}};var Kh=class{static{i(this,"Timer")}get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=re.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new Ao;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Ao.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 Fc=jt(sv(),1);var Zh=class{static{i(this,"AsyncExecutionStack")}executionSlots=[];isProcessing=!1;nonExclusiveMaxConcurrency=1/0;nonExclusiveCurrentCount=0;nonExclusivePendingQueue=[];async getExclusiveExecutionSlot(e,r){let n=re.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(e,r){let n=re.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}setNonExclusiveMaxConcurrency(e){if(!Number.isFinite(e)||e<1)throw new Error("nonExclusiveMaxConcurrency must be a finite number >= 1");this.nonExclusiveMaxConcurrency=e}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 e=this.executionSlots[0];if(e.mode==="exclusive")await this.executeExclusiveSlot(e),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(e){try{if(e.timeout){let r=new ge.Timeout(e.timeout);try{let n=await Promise.race([e.funcToExecute(),r.promise.then(()=>{throw new Error("Timeout reached")})]);r.cancel(),e.executionDeferred.resolve(n)}catch(n){throw r.cancel(),n}}else{let r=await e.funcToExecute();e.executionDeferred.resolve(r)}}catch(r){e.executionDeferred.reject(r)}}async executeNonExclusiveSlots(e){let r=e.map(async n=>{await this.waitForNonExclusiveSlot();try{if(n.timeout){let o=new ge.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(e=>{this.nonExclusivePendingQueue.push(()=>{this.nonExclusiveCurrentCount++,e()})})}releaseNonExclusiveSlot(){this.nonExclusiveCurrentCount--;let e=this.nonExclusivePendingQueue.shift();e&&e()}};var em=class{static{i(this,"BackpressuredArray")}data;highWaterMark;hasSpace=new Me.rxjs.Subject;itemsAvailable=new Me.rxjs.Subject;isDestroyed=!1;constructor(e=16){this.data=[],this.highWaterMark=e}get length(){return this.data.length}push(e){this.data.push(e),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}pushMany(e){for(let r of e)this.push(r);return this.checkSpaceAvailable()}shift(){let e=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),e}peek(){return this.data[0]}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(e=>{if(this.checkSpaceAvailable()||this.isDestroyed)e();else{let r=this.hasSpace.subscribe({next:i(()=>{r.unsubscribe(),e()},"next"),complete:i(()=>{e()},"complete")})}})}waitForItems(){return new Promise(e=>{if(this.data.length>0||this.isDestroyed)e();else{let r=this.itemsAvailable.subscribe({next:i(()=>{r.unsubscribe(),e()},"next"),complete:i(()=>{e()},"complete")})}})}[Symbol.iterator](){return this.data[Symbol.iterator]()}destroy(){this.isDestroyed=!0,this.hasSpace.complete(),this.itemsAvailable.complete()}};var ai=class t{static{i(this,"FastMap")}mapObject=new Map;isUniqueKey(e){return!this.mapObject.has(e)}has(e){return this.mapObject.has(e)}get size(){return this.mapObject.size}addToMap(e,r,n){return this.isUniqueKey(e)||n&&n.force?(this.mapObject.set(e,r),!0):!1}getByKey(e){return this.mapObject.get(e)}removeFromMap(e){let r=this.mapObject.get(e);return this.mapObject.delete(e),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(e){let r=new t;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of e.getKeys())r.addToMap(n,e.getByKey(n),{force:!0});return r}addAllFromOther(e){for(let r of e.getKeys())this.addToMap(r,e.getByKey(r),{force:!0})}async find(e){for(let r of this.getKeys()){let n=this.getByKey(r);if(await e(n))return n}}[Symbol.iterator](){return this.mapObject.entries()}};var av=i((t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),"uni"),Ur=class t{static{i(this,"ObjectMap")}fastMap=new ai;reverseMap=new Map;eventSubject=new Me.rxjs.Subject;constructor(){}get length(){return this.fastMap.size}addMappedUnique(e,r){this.fastMap.addToMap(e,r),this.reverseMap.set(r,e)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let r=this.fastMap.removeFromMap(e);return r!==void 0&&(this.reverseMap.delete(r),this.eventSubject.next({operation:"remove",payload:r})),r}add(e){let r=this.reverseMap.get(e);if(r!==void 0)return r;let n=av("key");return this.addMappedUnique(n,e),this.eventSubject.next({operation:"add",payload:e}),n}addArray(e){for(let r of e)this.add(r)}checkForObject(e){return this.reverseMap.has(e)}getKeyForObject(e){return this.reverseMap.get(e)??null}async find(e){return this.fastMap.find(e)}findSync(e){for(let r of this.fastMap.getKeys())if(e(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(e){let r=await this.find(e);return r&&this.remove(r),r}findOneAndRemoveSync(e){let r=this.findSync(e);return r&&this.remove(r),r}async forEach(e){for(let r of this.fastMap.getKeys())await e(this.fastMap.getByKey(r))}getOneAndRemove(){let e=this.fastMap.getKeys();if(e.length===0)return null;{let r=e[0],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(e){let r=this.reverseMap.get(e);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 e=this.fastMap.getKeys();for(let r of e){let n=this.fastMap.removeFromMap(r);this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n})}}concat(e){let r=new t;r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(e.fastMap);for(let n of r.fastMap.getKeys())r.reverseMap.set(r.fastMap.getByKey(n),n);return r}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap);for(let r of e.fastMap.getKeys())this.reverseMap.set(e.fastMap.getByKey(r),r)}map(e){return this.getArray().map(e)}filter(e){return this.getArray().filter(e)}reduce(e,r){return this.getArray().reduce(e,r)}[Symbol.iterator](){return this.getArray()[Symbol.iterator]()}destroy(){this.wipe(),this.reverseMap.clear(),this.eventSubject.complete()}};var ra=class{static{i(this,"Interest")}options;interestMapRef;originalInterest;comparisonFunc;destructionTimer=new si.Timer(1e4);isFullfilled=!1;isDestroyed=!1;fullfillmentStore=[];markLostTimeout=null;get comparisonString(){return this.comparisonFunc(this.originalInterest)}interestDeferred=new re.Deferred;interestFullfilled=this.interestDeferred.promise;fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e),this.destroy()}constructor(e,r,n,o){this.interestMapRef=e,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.isDestroyed||this.destroy()}),this.options?.markLostAfterDefault&&(this.markLostTimeout=new ge.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 tm=class{static{i(this,"InterestMap")}options;interestObjectMap=new Ur;interestsByComparisonString=new Map;comparisonStringsByInterest=new WeakMap;comparisonFunc;constructor(e,r={}){this.comparisonFunc=e,this.options=r}async addInterest(e,r){let n=this.comparisonFunc(e),o,s=this.interestsByComparisonString.get(n);return s?(o=s,o.renew()):(o=new ra(this,e,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),this.interestObjectMap.add(o),this.comparisonStringsByInterest.set(o,n),this.interestsByComparisonString.set(n,o)),this.interestObservable.push(o),o}interestObservable=new Me.ObservableIntake;removeInterest(e){if(!this.comparisonStringsByInterest.has(e))return;let r=this.comparisonStringsByInterest.get(e);this.interestObjectMap.remove(e),this.comparisonStringsByInterest.delete(e),this.interestsByComparisonString.get(r)===e&&this.interestsByComparisonString.delete(r)}checkInterest(e){let r=this.comparisonFunc(e);return this.checkInterestByString(r)}checkInterestByString(e){return this.interestsByComparisonString.has(e)}informLostInterest(e){let r=this.findInterest(e);r&&r.markLost()}findInterest(e){let r=this.comparisonFunc(e);return this.interestsByComparisonString.get(r)??null}destroy(){let e=this.interestObjectMap.getArray();for(let r of e)r.destroy();this.interestObjectMap.wipe(),this.interestsByComparisonString.clear(),this.interestObservable.signalComplete()}};var rm=class{static{i(this,"LimitedArray")}array=[];arrayLimit;constructor(e){this.arrayLimit=e}get length(){return this.array.length}addOne(e){this.array.unshift(e),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(e){for(let r of e)this.addOne(r)}setLimit(e){this.arrayLimit=e,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(this.array.length===0)return 0;if(typeof this.array[0]=="number"){let e=0;for(let r of this.array)e=e+r;return e/this.array.length}else return null}remove(e){let r=this.array.indexOf(e);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 nm=class{static{i(this,"LoopTracker")}referenceObjectMap=new Ur;constructor(){}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}reset(){this.referenceObjectMap.wipe()}destroy(){this.referenceObjectMap.destroy()}};var na=class{static{i(this,"Stringmap")}_stringArray=[];_triggerUntilTrueFunctionArray=[];constructor(){}addString(e){this._stringArray.push(e),this.notifyTrigger()}addStringArray(e){for(let r of e)this.addString(r)}removeString(e){this._stringArray=this._stringArray.filter(r=>r!==e),this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(e){return this._stringArray.indexOf(e)!==-1}checkMinimatch(e){let r=new Ps.SmartMatch(e),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let e=[];for(let r of this._stringArray)e.push(r);return e}registerUntilTrue(e,r){let n=re.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=e(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=e}destroy(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}};var ia=class{static{i(this,"TimedAggregtor")}options;storageArray=[];isStopped=!1;constructor(e){this.options=e}aggregationTimer;checkAggregationStatus(){if(this.isStopped)return;let e=i(()=>{this.aggregationTimer=new si.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=[],e(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()},"addAggregationTimer");this.aggregationTimer||e()}add(e){this.isStopped||(this.storageArray.push(e),this.checkAggregationStatus())}stop(e=!1){if(this.isStopped=!0,this.aggregationTimer&&(this.aggregationTimer.reset(),this.aggregationTimer=null),e&&this.storageArray.length>0){let r=this.storageArray;this.storageArray=[],this.options.functionForAggregation(r)}else this.storageArray=[]}restart(){this.isStopped=!1}};var im=class{static{i(this,"Tree")}symbolTree;constructor(){this.symbolTree=new Fc.default}initialize(e){return this.symbolTree.initialize(e)}hasChildren(e){return this.symbolTree.hasChildren(e)}firstChild(e){return this.symbolTree.firstChild(e)}lastChild(e){return this.symbolTree.lastChild(e)}previousSibling(e){return this.symbolTree.previousSibling(e)}nextSibling(e){return this.symbolTree.nextSibling(e)}parent(e){return this.symbolTree.parent(e)}lastInclusiveDescendant(e){return this.symbolTree.lastInclusiveDescendant(e)}preceding(e,r){return this.symbolTree.preceding(e,r)}following(e,r){return this.symbolTree.following(e,r)}childrenToArray(e,r){return this.symbolTree.childrenToArray(e,r)}ancestorsToArray(e,r){return this.symbolTree.ancestorsToArray(e,r)}treeToArray(e,r){return this.symbolTree.treeToArray(e,r)}childrenIterator(e,r){return this.symbolTree.childrenIterator(e,r)}previousSiblingsIterator(e){return this.symbolTree.previousSiblingsIterator(e)}nextSiblingsIterator(e){return this.symbolTree.nextSiblingsIterator(e)}ancestorsIterator(e){return this.symbolTree.ancestorsIterator(e)}treeIterator(e,r){return this.symbolTree.treeIterator(e,r)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,r){return this.symbolTree.compareTreePosition(e,r)}remove(e){return this.symbolTree.remove(e)}insertBefore(e,r){return this.symbolTree.insertBefore(e,r)}insertAfter(e,r){return this.symbolTree.insertAfter(e,r)}prependChild(e,r){return this.symbolTree.prependChild(e,r)}appendChild(e,r){return this.symbolTree.appendChild(e,r)}toJsonWithHierachy(e){let r=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(e)}fromJsonWithHierachy(e,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(e)}};var li={};ae(li,{base64ToUint8Array:()=>SN,ensurePureUint8Array:()=>EN,isBufferLike:()=>TN,isUint8Array:()=>kN,uInt8ArrayExtras:()=>bN,uInt8ArrayToBase64:()=>vN});var Tn={};ae(Tn,{areUint8ArraysEqual:()=>aN,assertUint8Array:()=>kn,assertUint8ArrayOrArrayBuffer:()=>pv,base64ToString:()=>hN,base64ToUint8Array:()=>gv,compareUint8Arrays:()=>lN,concatUint8Arrays:()=>sN,getUintBE:()=>xN,hexToUint8Array:()=>gN,includes:()=>yN,indexOf:()=>xv,isUint8Array:()=>om,stringToBase64:()=>pN,stringToUint8Array:()=>mv,toUint8Array:()=>oN,uint8ArrayToBase64:()=>dv,uint8ArrayToHex:()=>dN,uint8ArrayToString:()=>hv});var eN=Object.prototype.toString,tN="[object Uint8Array]",rN="[object ArrayBuffer]";function lv(t,e,r){return t?t.constructor===e?!0:eN.call(t)===r:!1}i(lv,"isType");function om(t){return lv(t,Uint8Array,tN)}i(om,"isUint8Array");function nN(t){return lv(t,ArrayBuffer,rN)}i(nN,"isArrayBuffer");function iN(t){return om(t)||nN(t)}i(iN,"isUint8ArrayOrArrayBuffer");function kn(t){if(!om(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}i(kn,"assertUint8Array");function pv(t){if(!iN(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}i(pv,"assertUint8ArrayOrArrayBuffer");function oN(t){if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new TypeError(`Unsupported value, got \`${typeof t}\`.`)}i(oN,"toUint8Array");function sN(t,e){if(t.length===0)return new Uint8Array(0);e??=t.reduce((o,s)=>o+s.length,0);let r=new Uint8Array(e),n=0;for(let o of t)kn(o),r.set(o,n),n+=o.length;return r}i(sN,"concatUint8Arrays");function aN(t,e){if(kn(t),kn(e),t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}i(aN,"areUint8ArraysEqual");function lN(t,e){kn(t),kn(e);let r=Math.min(t.length,e.length);for(let n=0;n<r;n++){let o=t[n]-e[n];if(o!==0)return Math.sign(o)}return Math.sign(t.length-e.length)}i(lN,"compareUint8Arrays");var uv={utf8:new globalThis.TextDecoder("utf8")};function hv(t,e="utf8"){return pv(t),uv[e]??=new globalThis.TextDecoder(e),uv[e].decode(t)}i(hv,"uint8ArrayToString");function oa(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}i(oa,"assertString");var uN=new globalThis.TextEncoder;function mv(t){return oa(t),uN.encode(t)}i(mv,"stringToUint8Array");function cN(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}i(cN,"base64ToBase64Url");function fN(t){let e=t.replaceAll("-","+").replaceAll("_","/"),r=(4-e.length%4)%4;return e+"=".repeat(r)}i(fN,"base64UrlToBase64");var cv=65535;function dv(t,{urlSafe:e=!1}={}){kn(t);let r="";for(let n=0;n<t.length;n+=cv){let o=t.subarray(n,n+cv);r+=globalThis.btoa(String.fromCodePoint.apply(void 0,o))}return e?cN(r):r}i(dv,"uint8ArrayToBase64");function gv(t){return oa(t),Uint8Array.from(globalThis.atob(fN(t)),e=>e.codePointAt(0))}i(gv,"base64ToUint8Array");function pN(t,{urlSafe:e=!1}={}){return oa(t),dv(mv(t),{urlSafe:e})}i(pN,"stringToBase64");function hN(t){return oa(t),hv(gv(t))}i(hN,"base64ToString");var mN=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function dN(t){kn(t);let e="";for(let r=0;r<t.length;r++)e+=mN[t[r]];return e}i(dN,"uint8ArrayToHex");var fv={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 gN(t){if(oa(t),t.length%2!==0)throw new Error("Invalid Hex string length.");let e=t.length/2,r=new Uint8Array(e);for(let n=0;n<e;n++){let o=fv[t[n*2]],s=fv[t[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(gN,"hexToUint8Array");function xN(t){let{byteLength:e}=t;if(e===6)return t.getUint16(0)*2**32+t.getUint32(2);if(e===5)return t.getUint8(0)*2**32+t.getUint32(1);if(e===4)return t.getUint32(0);if(e===3)return t.getUint8(0)*2**16+t.getUint16(1);if(e===2)return t.getUint16(0);if(e===1)return t.getUint8(0)}i(xN,"getUintBE");function xv(t,e){let r=t.length,n=e.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(t[s+l]!==e[l]){a=!1;break}if(a)return s}return-1}i(xv,"indexOf");function yN(t,e){return xv(t,e)!==-1}i(yN,"includes");var bN=Tn;function vN(t){return Tn.uint8ArrayToBase64(t)}i(vN,"uInt8ArrayToBase64");function SN(t){return Tn.base64ToUint8Array(t)}i(SN,"base64ToUint8Array");var kN=i(t=>Tn.isUint8Array(t),"isUint8Array");function TN(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}i(TN,"isBufferLike");function EN(t){let e=new Uint8Array(t.length);return e.set(t),e}i(EN,"ensurePureUint8Array");var ua={};ae(ua,{Guard:()=>sa,GuardError:()=>aa,GuardSet:()=>la,passGuardsOrReject:()=>DN});var sa=class{static{i(this,"Guard")}constructor(e,r){this.guardFunction=e,this.options=r||{}}async exec(e){return await this.guardFunction(e)}async getFailedHint(e){return await this.exec(e)?null:this.options.failedHint||null}};var aa=class extends Error{static{i(this,"GuardError")}constructor(e){super(e),this.name="GuardError"}};var la=class extends sa{static{i(this,"GuardSet")}constructor(e=[]){super(async r=>this.allGuardsPass(r)),this.guards=e}async execAllWithData(e,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let s of this.guards){let a=s.exec(e);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(e,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(e,r)).every(o=>o)}async anyGuardsPass(e){return(await this.execAllWithData(e,{mode:"parallel",stopOnFail:!1})).some(n=>n)}async getFailedHint(e){for(let r of this.guards){let n=await r.getFailedHint(e);if(n)return n}return null}};var DN=i(async(t,e)=>{let r=new la(e);if(!await r.allGuardsPass(t)){let o=await r.getFailedHint(t);throw new aa(`Guards failed:
32
+ `):"",this.name="UnsubscriptionError",this.errors=r},"UnsubscriptionErrorImpl")});function sr(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}i(sr,"arrRemove");var _t=(function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return i(t,"Subscription"),t.prototype.unsubscribe=function(){var e,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){e={error:g}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(e)throw e.error}}else a.remove(this);var f=this.initialTeardown;if(fe(f))try{f()}catch(g){s=g instanceof As?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{dy(d)}catch(g){s=s??[],g instanceof As?s=It(It([],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 As(s)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)dy(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&sr(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&sr(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=(function(){var e=new t;return e.closed=!0,e})(),t})(),dh=_t.EMPTY;function kl(t){return t instanceof _t||t&&"closed"in t&&fe(t.remove)&&fe(t.add)&&fe(t.unsubscribe)}i(kl,"isSubscription");function dy(t){fe(t)?t():t.unsubscribe()}i(dy,"execFinalizer");var Jt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var eo={setTimeout:i(function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=eo.delegate;return o?.setTimeout?o.setTimeout.apply(o,It([t,e],at(r))):setTimeout.apply(void 0,It([t,e],at(r)))},"setTimeout"),clearTimeout:i(function(t){var e=eo.delegate;return(e?.clearTimeout||clearTimeout)(t)},"clearTimeout"),delegate:void 0};function Tl(t){eo.setTimeout(function(){var e=Jt.onUnhandledError;if(e)e(t);else throw t})}i(Tl,"reportUnhandledError");function wr(){}i(wr,"noop");var gy=(function(){return gh("C",void 0,void 0)})();function xy(t){return gh("E",void 0,t)}i(xy,"errorNotification");function yy(t){return gh("N",t,void 0)}i(yy,"nextNotification");function gh(t,e,r){return{kind:t,value:e,error:r}}i(gh,"createNotification");var Vn=null;function to(t){if(Jt.useDeprecatedSynchronousErrorHandling){var e=!Vn;if(e&&(Vn={errorThrown:!1,error:null}),t(),e){var r=Vn,n=r.errorThrown,o=r.error;if(Vn=null,n)throw o}}else t()}i(to,"errorContext");function wy(t){Jt.useDeprecatedSynchronousErrorHandling&&Vn&&(Vn.errorThrown=!0,Vn.error=t)}i(wy,"captureError");var Gn=(function(t){Je(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,kl(r)&&r.add(n)):n.destination=mM,n}return i(e,"Subscriber"),e.create=function(r,n,o){return new sn(r,n,o)},e.prototype.next=function(r){this.isStopped?yh(yy(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?yh(xy(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?yh(gy,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e})(_t),fM=Function.prototype.bind;function xh(t,e){return fM.call(t,e)}i(xh,"bind");var pM=(function(){function t(e){this.partialObserver=e}return i(t,"ConsumerObserver"),t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){El(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){El(n)}else El(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){El(r)}},t})(),sn=(function(t){Je(e,t);function e(r,n,o){var s=t.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&&Jt.useDeprecatedNextContext?(l=Object.create(r),l.unsubscribe=function(){return s.unsubscribe()},a={next:r.next&&xh(r.next,l),error:r.error&&xh(r.error,l),complete:r.complete&&xh(r.complete,l)}):a=r}return s.destination=new pM(a),s}return i(e,"SafeSubscriber"),e})(Gn);function El(t){Jt.useDeprecatedSynchronousErrorHandling?wy(t):Tl(t)}i(El,"handleUnhandledError");function hM(t){throw t}i(hM,"defaultErrorHandler");function yh(t,e){var r=Jt.onStoppedNotification;r&&eo.setTimeout(function(){return r(t,e)})}i(yh,"handleStoppedNotification");var mM={closed:!0,next:wr,error:hM,complete:wr};var Jn=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function br(t){return t}i(br,"identity");function dM(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return wh(t)}i(dM,"pipe");function wh(t){return t.length===0?br:t.length===1?t[0]:i(function(r){return t.reduce(function(n,o){return o(n)},r)},"piped")}i(wh,"pipeFromArray");var ye=(function(){function t(e){e&&(this._subscribe=e)}return i(t,"Observable"),t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var o=this,s=xM(e)?e:new sn(e,r,n);return to(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},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=by(r),new r(function(o,s){var a=new sn({next:i(function(l){try{e(l)}catch(u){s(u),a.unsubscribe()}},"next"),error:s,complete:o});n.subscribe(a)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[Jn]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return wh(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=by(e),new e(function(n,o){var s;r.subscribe(function(a){return s=a},function(a){return o(a)},function(){return n(s)})})},t.create=function(e){return new t(e)},t})();function by(t){var e;return(e=t??Jt.Promise)!==null&&e!==void 0?e:Promise}i(by,"getPromiseCtor");function gM(t){return t&&fe(t.next)&&fe(t.error)&&fe(t.complete)}i(gM,"isObserver");function xM(t){return t&&t instanceof Gn||gM(t)&&kl(t)}i(xM,"isSubscriber");function yM(t){return fe(t?.lift)}i(yM,"hasLift");function ke(t){return function(e){if(yM(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}i(ke,"operate");function Te(t,e,r,n,o){return new vy(t,e,r,n,o)}i(Te,"createOperatorSubscriber");var vy=(function(t){Je(e,t);function e(r,n,o,s,a,l){var u=t.call(this,r)||this;return u.onFinalize=a,u.shouldUnsubscribe=l,u._next=n?function(c){try{n(c)}catch(f){r.error(f)}}:t.prototype._next,u._error=s?function(c){try{s(c)}catch(f){r.error(f)}finally{this.unsubscribe()}}:t.prototype._error,u._complete=o?function(){try{o()}catch(c){r.error(c)}finally{this.unsubscribe()}}:t.prototype._complete,u}return i(e,"OperatorSubscriber"),e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e})(Gn);var bh=Sl(function(t){return i(function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"},"ObjectUnsubscribedErrorImpl")});var Pt=(function(t){Je(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return i(e,"Subject"),e.prototype.lift=function(r){var n=new vh(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new bh},e.prototype.next=function(r){var n=this;to(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}}}})},e.prototype.error=function(r){var n=this;to(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)}})},e.prototype.complete=function(){var r=this;to(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.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}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,o=this,s=o.hasError,a=o.isStopped,l=o.observers;return s||a?dh:(this.currentObservers=null,l.push(r),new _t(function(){n.currentObservers=null,sr(l,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,s=n.thrownError,a=n.isStopped;o?r.error(s):a&&r.complete()},e.prototype.asObservable=function(){var r=new ye;return r.source=this,r},e.create=function(r,n){return new vh(r,n)},e})(ye),vh=(function(t){Je(e,t);function e(r,n){var o=t.call(this)||this;return o.destination=r,o.source=n,o}return i(e,"AnonymousSubject"),e.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)},e.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)},e.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)},e.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:dh},e})(Pt);var ro=(function(t){Je(e,t);function e(r){var n=t.call(this)||this;return n._value=r,n}return i(e,"BehaviorSubject"),Object.defineProperty(e.prototype,"value",{get:i(function(){return this.getValue()},"get"),enumerable:!1,configurable:!0}),e.prototype._subscribe=function(r){var n=t.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},e.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,s=r._value;if(n)throw o;return this._throwIfClosed(),s},e.prototype.next=function(r){t.prototype.next.call(this,this._value=r)},e})(Pt);var Rs={now:i(function(){return(Rs.delegate||Date).now()},"now"),delegate:void 0};var no=(function(t){Je(e,t);function e(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Rs);var s=t.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(e,"ReplaySubject"),e.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(),t.prototype.next.call(this,r)},e.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},e.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)}},e})(Pt);var Sh=(function(t){Je(e,t);function e(r,n){return t.call(this)||this}return i(e,"Action"),e.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},e})(_t);var Fs={setInterval:i(function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Fs.delegate;return o?.setInterval?o.setInterval.apply(o,It([t,e],at(r))):setInterval.apply(void 0,It([t,e],at(r)))},"setInterval"),clearInterval:i(function(t){var e=Fs.delegate;return(e?.clearInterval||clearInterval)(t)},"clearInterval"),delegate:void 0};var kh=(function(t){Je(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return i(e,"AsyncAction"),e.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},e.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Fs.setInterval(r.flush.bind(r,this),o)},e.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Fs.clearInterval(n)},e.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))},e.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},e.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,sr(s,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e})(Sh);var Ls=(function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return i(t,"Scheduler"),t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=Rs.now,t})();var Th=(function(t){Je(e,t);function e(r,n){n===void 0&&(n=Ls.now);var o=t.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return i(e,"AsyncScheduler"),e.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}},e})(Ls);var vr=new Th(kh),Eh=vr;function Dl(t){return t&&fe(t.schedule)}i(Dl,"isScheduler");function Dh(t){return t[t.length-1]}i(Dh,"last");function Sy(t){return fe(Dh(t))?t.pop():void 0}i(Sy,"popResultSelector");function Sr(t){return Dl(Dh(t))?t.pop():void 0}i(Sr,"popScheduler");function V4(t,e){return typeof Dh(t)=="number"?t.pop():e}i(V4,"popNumber");var io=i((function(t){return t&&typeof t.length=="number"&&typeof t!="function"}),"isArrayLike");function Cl(t){return fe(t?.then)}i(Cl,"isPromise");function Ol(t){return fe(t[Jn])}i(Ol,"isInteropObservable");function Ml(t){return Symbol.asyncIterator&&fe(t?.[Symbol.asyncIterator])}i(Ml,"isAsyncIterable");function Il(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}i(Il,"createInvalidObservableTypeError");function wM(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}i(wM,"getSymbolIterator");var _l=wM();function Pl(t){return fe(t?.[_l])}i(Pl,"isIterable");function Nl(t){return hh(this,arguments,i(function(){var r,n,o,s;return Ns(this,function(a){switch(a.label){case 0:r=t.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,$r(r.read())];case 3:return n=a.sent(),o=n.value,s=n.done,s?[4,$r(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,$r(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(Nl,"readableStreamLikeToAsyncGenerator");function Al(t){return fe(t?.getReader)}i(Al,"isReadableStreamLike");function Fe(t){if(t instanceof ye)return t;if(t!=null){if(Ol(t))return bM(t);if(io(t))return vM(t);if(Cl(t))return SM(t);if(Ml(t))return ky(t);if(Pl(t))return kM(t);if(Al(t))return TM(t)}throw Il(t)}i(Fe,"innerFrom");function bM(t){return new ye(function(e){var r=t[Jn]();if(fe(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}i(bM,"fromInteropObservable");function vM(t){return new ye(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}i(vM,"fromArrayLike");function SM(t){return new ye(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,Tl)})}i(SM,"fromPromise");function kM(t){return new ye(function(e){var r,n;try{for(var o=ft(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(l){r={error:l}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.complete()})}i(kM,"fromIterable");function ky(t){return new ye(function(e){EM(t,e).catch(function(r){return e.error(r)})})}i(ky,"fromAsyncIterable");function TM(t){return ky(Nl(t))}i(TM,"fromReadableStreamLike");function EM(t,e){var r,n,o,s;return ph(this,void 0,void 0,function(){var a,l;return Ns(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=mh(t),u.label=1;case 1:return[4,r.next()];case 2:if(n=u.sent(),!!n.done)return[3,4];if(a=n.value,e.next(a),e.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 e.complete(),[2]}})})}i(EM,"process");function lt(t,e,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var s=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!o)return s}i(lt,"executeSchedule");function oo(t,e){return e===void 0&&(e=0),ke(function(r,n){r.subscribe(Te(n,function(o){return lt(n,t,function(){return n.next(o)},e)},function(){return lt(n,t,function(){return n.complete()},e)},function(o){return lt(n,t,function(){return n.error(o)},e)}))})}i(oo,"observeOn");function so(t,e){return e===void 0&&(e=0),ke(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}i(so,"subscribeOn");function Ty(t,e){return Fe(t).pipe(so(e),oo(e))}i(Ty,"scheduleObservable");function Ey(t,e){return Fe(t).pipe(so(e),oo(e))}i(Ey,"schedulePromise");function Dy(t,e){return new ye(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}i(Dy,"scheduleArray");function Cy(t,e){return new ye(function(r){var n;return lt(r,e,function(){n=t[_l](),lt(r,e,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(Cy,"scheduleIterable");function Rl(t,e){if(!t)throw new Error("Iterable cannot be null");return new ye(function(r){lt(r,e,function(){var n=t[Symbol.asyncIterator]();lt(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}i(Rl,"scheduleAsyncIterable");function Oy(t,e){return Rl(Nl(t),e)}i(Oy,"scheduleReadableStreamLike");function Ch(t,e){if(t!=null){if(Ol(t))return Ty(t,e);if(io(t))return Dy(t,e);if(Cl(t))return Ey(t,e);if(Ml(t))return Rl(t,e);if(Pl(t))return Cy(t,e);if(Al(t))return Oy(t,e)}throw Il(t)}i(Ch,"scheduled");function kr(t,e){return e?Ch(t,e):Fe(t)}i(kr,"from");function Bs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Sr(t);return kr(t,r)}i(Bs,"of");function My(t){return t instanceof Date&&!isNaN(t)}i(My,"isValidDate");function Tr(t,e){return ke(function(r,n){var o=0;r.subscribe(Te(n,function(s){n.next(t.call(e,s,o++))}))})}i(Tr,"map");var DM=Array.isArray;function CM(t,e){return DM(e)?t.apply(void 0,It([],at(e))):t(e)}i(CM,"callOrApply");function Fl(t){return Tr(function(e){return CM(t,e)})}i(Fl,"mapOneOrManyArgs");var OM=Array.isArray,MM=Object.getPrototypeOf,IM=Object.prototype,_M=Object.keys;function Iy(t){if(t.length===1){var e=t[0];if(OM(e))return{args:e,keys:null};if(PM(e)){var r=_M(e);return{args:r.map(function(n){return e[n]}),keys:r}}}return{args:t,keys:null}}i(Iy,"argsArgArrayOrObject");function PM(t){return t&&typeof t=="object"&&MM(t)===IM}i(PM,"isPOJO");function _y(t,e){return t.reduce(function(r,n,o){return r[n]=e[o],r},{})}i(_y,"createObject");function Oh(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Sr(t),n=Sy(t),o=Iy(t),s=o.args,a=o.keys;if(s.length===0)return kr([],r);var l=new ye(NM(s,r,a?function(u){return _y(a,u)}:br));return n?l.pipe(Fl(n)):l}i(Oh,"combineLatest");function NM(t,e,r){return r===void 0&&(r=br),function(n){Py(e,function(){for(var o=t.length,s=new Array(o),a=o,l=o,u=i(function(f){Py(e,function(){var p=kr(t[f],e),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(NM,"combineLatestInit");function Py(t,e,r){t?lt(r,t,e):e()}i(Py,"maybeSchedule");function Ny(t,e,r,n,o,s,a,l){var u=[],c=0,f=0,p=!1,h=i(function(){p&&!u.length&&!c&&e.complete()},"checkComplete"),m=i(function(g){return c<n?d(g):u.push(g)},"outerNext"),d=i(function(g){s&&e.next(g),c++;var x=!1;Fe(r(g,f++)).subscribe(Te(e,function(w){o?.(w),s?m(w):e.next(w)},function(){x=!0},void 0,function(){if(x)try{c--;for(var w=i(function(){var T=u.shift();a?lt(e,a,function(){return d(T)}):d(T)},"_loop_1");u.length&&c<n;)w();h()}catch(T){e.error(T)}}))},"doInnerSub");return t.subscribe(Te(e,m,function(){p=!0,h()})),function(){l?.()}}i(Ny,"mergeInternals");function Qn(t,e,r){return r===void 0&&(r=1/0),fe(e)?Qn(function(n,o){return Tr(function(s,a){return e(n,s,o,a)})(Fe(t(n,o)))},r):(typeof e=="number"&&(r=e),ke(function(n,o){return Ny(n,o,t,r)}))}i(Qn,"mergeMap");function Ll(t){return t===void 0&&(t=1/0),Qn(br,t)}i(Ll,"mergeAll");function Bl(){return Ll(1)}i(Bl,"concatAll");function zl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Bl()(kr(t,Sr(t)))}i(zl,"concat");var AM=["addListener","removeListener"],RM=["addEventListener","removeEventListener"],FM=["on","off"];function Kn(t,e,r,n){if(fe(r)&&(n=r,r=void 0),n)return Kn(t,e,r).pipe(Fl(n));var o=at(zM(t)?RM.map(function(l){return function(u){return t[l](e,u,r)}}):LM(t)?AM.map(Ay(t,e)):BM(t)?FM.map(Ay(t,e)):[],2),s=o[0],a=o[1];if(!s&&io(t))return Qn(function(l){return Kn(l,e,r)})(Fe(t));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 Ay(t,e){return function(r){return function(n){return t[r](e,n)}}}i(Ay,"toCommonHandlerRegistry");function LM(t){return fe(t.addListener)&&fe(t.removeListener)}i(LM,"isNodeStyleEventEmitter");function BM(t){return fe(t.on)&&fe(t.off)}i(BM,"isJQueryStyleEventEmitter");function zM(t){return fe(t.addEventListener)&&fe(t.removeEventListener)}i(zM,"isEventTarget");function zs(t,e,r){t===void 0&&(t=0),r===void 0&&(r=Eh);var n=-1;return e!=null&&(Dl(e)?r=e:n=e),new ye(function(o){var s=My(t)?+t-r.now():t;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(zs,"timer");function Mh(t,e){return t===void 0&&(t=0),e===void 0&&(e=vr),t<0&&(t=0),zs(t,t,e)}i(Mh,"interval");function jl(t,e){return ke(function(r,n){var o=0;r.subscribe(Te(n,function(s){return t.call(e,s,o++)&&n.next(s)}))})}i(jl,"filter");function Hl(t){return ke(function(e,r){var n=[];return e.subscribe(Te(r,function(o){return n.push(o)},function(){r.next(n),r.complete()})),Fe(t).subscribe(Te(r,function(){var o=n;n=[],r.next(o)},wr)),function(){n=null}})}i(Hl,"buffer");function Wl(t,e){return e===void 0&&(e=null),e=e??t,ke(function(r,n){var o=[],s=0;r.subscribe(Te(n,function(a){var l,u,c,f,p=null;s++%e===0&&o.push([]);try{for(var h=ft(o),m=h.next();!m.done;m=h.next()){var d=m.value;d.push(a),t<=d.length&&(p=p??[],p.push(d))}}catch(w){l={error:w}}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;sr(o,d),n.next(d)}}catch(w){c={error:w}}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(Wl,"bufferCount");function $l(t){for(var e,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var s=(e=Sr(n))!==null&&e!==void 0?e:vr,a=(r=n[0])!==null&&r!==void 0?r:null,l=n[1]||1/0;return ke(function(u,c){var f=[],p=!1,h=i(function(g){var x=g.buffer,w=g.subs;w.unsubscribe(),sr(f,g),c.next(x),p&&m()},"emit"),m=i(function(){if(f){var g=new _t;c.add(g);var x=[],w={buffer:x,subs:g};f.push(w),lt(g,s,function(){return h(w)},t)}},"startBuffer");a!==null&&a>=0?lt(c,s,m,a,!0):p=!0,m();var d=Te(c,function(g){var x,w,T=f.slice();try{for(var E=ft(T),q=E.next();!q.done;q=E.next()){var H=q.value,O=H.buffer;O.push(g),l<=O.length&&h(H)}}catch(j){x={error:j}}finally{try{q&&!q.done&&(w=E.return)&&w.call(E)}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($l,"bufferTime");function Ul(t){return ke(function(e,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");e.subscribe(Te(r,function(l){s?.unsubscribe(),n=!0,o=l,s=Te(r,a,wr),Fe(t(l)).subscribe(s)},function(){a(),r.complete()},void 0,function(){o=s=null}))})}i(Ul,"debounce");function ql(t,e){return e===void 0&&(e=vr),ke(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+t,f=e.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=e.now(),o||(o=e.schedule(u,t),n.add(o))},function(){l(),n.complete()},void 0,function(){s=o=null}))})}i(ql,"debounceTime");function ao(t,e){return e===void 0&&(e=br),t=t??jM,ke(function(r,n){var o,s=!0;r.subscribe(Te(n,function(a){var l=e(a);(s||!t(o,l))&&(s=!1,o=l,n.next(a))}))})}i(ao,"distinctUntilChanged");function jM(t,e){return t===e}i(jM,"defaultCompare");function Yl(t){t===void 0&&(t={});var e=t.connector,r=e===void 0?function(){return new Pt}:e,n=t.resetOnError,o=n===void 0?!0:n,s=t.resetOnComplete,a=s===void 0?!0:s,l=t.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"),w=i(function(){x(),f=h=void 0,d=g=!1},"reset"),T=i(function(){var E=f;w(),E?.unsubscribe()},"resetAndUnsubscribe");return ke(function(E,q){m++,!g&&!d&&x();var H=h=h??r();q.add(function(){m--,m===0&&!g&&!d&&(p=Ih(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=Ih(w,o,O),H.error(O)},"error"),complete:i(function(){d=!0,x(),p=Ih(w,a),H.complete()},"complete")}),Fe(E).subscribe(f))})(c)}}i(Yl,"share");function Ih(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(e===!0){t();return}if(e!==!1){var o=new sn({next:i(function(){o.unsubscribe(),t()},"next")});return Fe(e.apply(void 0,It([],at(r)))).subscribe(o)}}i(Ih,"handleReset");function Vl(t,e,r){var n,o,s,a,l=!1;return t&&typeof t=="object"?(n=t.bufferSize,a=n===void 0?1/0:n,o=t.windowTime,e=o===void 0?1/0:o,s=t.refCount,l=s===void 0?!1:s,r=t.scheduler):a=t??1/0,Yl({connector:i(function(){return new no(a,e,r)},"connector"),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}i(Vl,"shareReplay");function Gl(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Sr(t);return ke(function(n,o){(r?zl(t,n,r):zl(t,n)).subscribe(o)})}i(Gl,"startWith");function lo(t){return ke(function(e,r){Fe(t).subscribe(Te(r,function(){return r.complete()},wr)),!r.closed&&e.subscribe(r)})}i(lo,"takeUntil");function Jl(t,e){return ke(function(r,n){var o=e??{},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(w){return p=Fe(t(w)).subscribe(Te(n,m,d))},"startThrottle"),x=i(function(){if(c){c=!1;var w=f;f=null,n.next(w),!h&&g(w)}},"send");r.subscribe(Te(n,function(w){c=!0,f=w,!(p&&!p.closed)&&(a?x():g(w))},function(){h=!0,!(u&&c&&p&&!p.closed)&&n.complete()}))})}i(Jl,"throttle");function Ql(t,e,r){e===void 0&&(e=vr);var n=zs(t,e);return Jl(function(){return n},r)}i(Ql,"throttleTime");var b_={buffer:Hl,bufferCount:Wl,bufferTime:$l,debounce:Ul,debounceTime:ql,filter:jl,map:Tr,startWith:Gl,takeUntil:lo,throttleTime:Ql};var _h=class{static{i(this,"Observablemap")}constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let o=Kn(e,r),s=new Pt;o.subscribe(s);let a={subject:s,eventRef:e,event:r};return this.observableEventEmitterBundleArray.push(a),a.subject}}getSubjectForEventTarget(e,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let s={subject:new Pt,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(s),s.subject}}};var Ph=class{static{i(this,"ObservableIntake")}constructor(){this.observableFunctions={next:i(e=>{},"next"),complete:i(e=>{},"complete")},this.buffered=!1,this.payloadBuffer=[],this.observable=new ye(e=>{this.observableFunctions.next=r=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=re.defer(),this.completed=this.completedDeffered.promise}setObservable(e){this.observable=e}push(e){this.buffered?this.payloadBuffer.push(e):this.internalPush(e)}pushMany(e){for(let r of e)this.push(r)}setGenerator(e){this.generator=e}makeBuffered(){this.buffered=!0}subscribe(...e){return this.observable.subscribe(...e)}request(e){if(e!==0)for(let r=0;r!==e;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{if(!this.generator)throw new Error("Cannot request an unbuffered value before setting a generator");let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}};function v_(t){return new ye(e=>{let r=i(()=>t.pause(),"pauseStream"),n=i(()=>process.nextTick(()=>t.resume()),"resumeStream"),o=i(s=>{r(),e.next(s),n()},"onData");return t.on("data",o),t.on("error",s=>e.error(s)),t.on("end",()=>e.complete()),t.on("close",()=>e.complete()),()=>{t.removeListener("data",o),t.removeListener("error",e.error),t.removeListener("end",e.complete),t.removeListener("close",e.complete)}})}i(v_,"fromStreamWithBackpressure");var si={};ae(si,{CronJob:()=>ta,CronManager:()=>Yh,ExtendedDate:()=>Gh,HrtMeasurement:()=>Jh,Interval:()=>Qh,TimeStamp:()=>Ao,Timer:()=>Kh,getMilliSecondsAsHumanReadableAgoTime:()=>XP,getMilliSecondsAsHumanReadableString:()=>KP,getMilliSecondsFromUnits:()=>Vh,units:()=>wn});var $s={};ae($s,{Cron:()=>jy,CronDate:()=>Qe,CronPattern:()=>Kl,scheduledJobs:()=>co});function js(t){return Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)}i(js,"T");function Nh(t,e){return t.y===e.y&&t.m===e.m&&t.d===e.d&&t.h===e.h&&t.i===e.i&&t.s===e.s}i(Nh,"D");function S_(t,e){let r=new Date(Date.parse(t));if(isNaN(r))throw new Error("Invalid ISO8601 passed to timezone parser.");let n=t.substring(9);return n.includes("Z")||n.includes("+")||n.includes("-")?Ah(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Ah(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}i(S_,"A");function Ry(t,e,r){return Fy(S_(t,e),r)}i(Ry,"v");function Fy(t,e){let r=new Date(js(t)),n=Hs(r,t.tz),o=js(t),s=js(n),a=o-s,l=new Date(r.getTime()+a),u=Hs(l,t.tz);if(Nh(u,t)){let p=new Date(l.getTime()-36e5),h=Hs(p,t.tz);return Nh(h,t)?p:l}let c=new Date(l.getTime()+js(t)-js(u)),f=Hs(c,t.tz);if(Nh(f,t))return c;if(e)throw new Error("Invalid date passed to fromTZ()");return l.getTime()>c.getTime()?l:c}i(Fy,"k");function Hs(t,e){let r,n;try{r=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1}),n=r.formatToParts(t)}catch(s){let a=s instanceof Error?s.message:String(s);throw new RangeError(`toTZ: Invalid timezone '${e}' 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 '${e}'. 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:e}}i(Hs,"g");function Ah(t,e,r,n,o,s,a){return{y:t,m:e,d:r,h:n,i:o,s,tz:a}}i(Ah,"b");var Ly=[1,2,4,8,16],Kl=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(t,e,r){this.pattern=t,this.timezone=e,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 t=this.pattern.match(/\S+/g)||[""],e=t.length;if(t.length<5||t.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(e):e===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 ${e} parts.`)}}if(t.length===5&&t.unshift("0"),t.length===6&&t.push("*"),t[3].toUpperCase()==="LW"?(this.lastWeekday=!0,t[3]=""):t[3].toUpperCase().indexOf("L")>=0&&(t[3]=t[3].replace(/L/gi,""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[6]=="*"&&(this.starYear=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.alternativeWeekdays?this.replaceAlphaDaysQuartz(t[5]):this.replaceAlphaDays(t[5])),t[5].startsWith("+")&&(this.useAndLogic=!0,t[5]=t[5].substring(1),t[5]===""))throw new TypeError("CronPattern: Day-of-week field cannot be empty after '+' modifier.");switch(t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0&&(t[0]=t[0].replace(/\?/g,"*"),t[1]=t[1].replace(/\?/g,"*"),t[2]=t[2].replace(/\?/g,"*"),t[3]=t[3].replace(/\?/g,"*"),t[4]=t[4].replace(/\?/g,"*"),t[5]=t[5].replace(/\?/g,"*"),t[6]&&(t[6]=t[6].replace(/\?/g,"*"))),this.mode){case"5-part":t[0]="0",t[6]="*";break;case"6-part":t[6]="*";break;case"5-or-6-parts":t[6]="*";break;case"6-or-7-parts":break;case"7-part":case"auto":break}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0,1),this.partToArray("minute",t[1],0,1),this.partToArray("hour",t[2],0,1),this.partToArray("day",t[3],-1,1),this.partToArray("month",t[4],-1,1);let r=this.alternativeWeekdays?-1:0;this.partToArray("dayOfWeek",t[5],r,63),this.partToArray("year",t[6],0,1),!this.alternativeWeekdays&&this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(t,e,r,n){let o=this[t],s=t==="day"&&this.lastDayOfMonth,a=t==="day"&&this.lastWeekday;if(e===""&&!s&&!a)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return o.fill(n);let l=e.split(",");if(l.length>1)for(let u=0;u<l.length;u++)this.partToArray(t,l[u],r,n);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,r,n):e.indexOf("-")!==-1?this.handleRange(e,t,r,n):e.indexOf("/")!==-1?this.handleStepping(e,t,r,n):e!==""&&this.handleNumber(e,t,r,n)}throwAtIllegalCharacters(t){for(let e=0;e<t.length;e++)if((e===3?/[^/*0-9,\-WwLl]+/:e===5?/[^/*0-9,\-#Ll]+/:/[^/*0-9,\-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")}handleNumber(t,e,r,n){let o=this.extractNth(t,e),s=t.toUpperCase().includes("W");if(e!=="day"&&s)throw new TypeError("CronPattern: Nearest weekday modifier (W) only allowed in day-of-month.");s&&(e="nearestWeekdays");let a=parseInt(o[0],10)+r;if(isNaN(a))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,a,o[1]||n)}setPart(t,e,r){if(!Object.prototype.hasOwnProperty.call(this,t))throw new TypeError("CronPattern: Invalid part specified: "+t);if(t==="dayOfWeek"){if(e===7&&(e=0),e<0||e>6)throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+e);this.setNthWeekdayOfMonth(e,r);return}if(t==="second"||t==="minute"){if(e<0||e>=60)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="hour"){if(e<0||e>=24)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="day"||t==="nearestWeekdays"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"){if(e<0||e>=12)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="year"&&(e<1||e>=1e4))throw new RangeError("CronPattern: Invalid value for "+t+": "+e+" (supported range: 1-9999)");this[t][e]=r}validateNotNaN(t,e){if(isNaN(t))throw new TypeError(e)}validateRange(t,e,r,n,o){if(t>e)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(t,e,r,n){if(t.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in ranges with stepping.");let o=this.extractNth(t,e),s=o[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(s===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");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,e,t);for(let h=c;h<=f;h+=p)this.setPart(e,h,o[1]||n)}extractNth(t,e){let r=t,n;if(r.includes("#")){if(e!=="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(e!=="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(t,e,r,n){if(t.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in a range.");let o=this.extractNth(t,e),s=o[0].split("-");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");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,e,t);for(let u=a;u<=l;u++)this.setPart(e,u,o[1]||n)}handleStepping(t,e,r,n){if(t.toUpperCase().includes("W"))throw new TypeError("CronPattern: Syntax error, W is not allowed in parts with stepping.");let o=this.extractNth(t,e),s=o[0].split("/");if(s.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");if(this.sloppyRanges)s[0]===""&&(s[0]="*");else{if(s[0]==="")throw new TypeError("CronPattern: Syntax error, stepping with missing prefix ('"+t+"') 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 ('"+t+"') 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[e].length-1,l,e,t);for(let u=a;u<this[e].length;u+=l)this.setPart(e,u,o[1]||n)}replaceAlphaDays(t){return t.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")}replaceAlphaDaysQuartz(t){return t.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(t){return t.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")}handleNicknames(t){let e=t.trim().toLowerCase();if(e==="@yearly"||e==="@annually")return"0 0 1 1 *";if(e==="@monthly")return"0 0 1 * *";if(e==="@weekly")return"0 0 * * 0";if(e==="@daily"||e==="@midnight")return"0 0 * * *";if(e==="@hourly")return"0 * * * *";if(e==="@reboot")throw new TypeError("CronPattern: @reboot is not supported in this environment. This is an event-based trigger that requires system startup detection.");return t}setNthWeekdayOfMonth(t,e){if(typeof e!="number"&&e.toUpperCase()==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|32;else if(e===63)this.dayOfWeek[t]=63;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|Ly[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},Rh=[31,28,31,30,31,30,31,31,30,31,30,31],Re=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Qe=class zy{static{i(this,"s")}tz;ms;second;minute;hour;day;month;year;constructor(e,r){if(this.tz=r,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e==null)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof zy)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}getLastDayOfMonth(e,r){return r!==1?Rh[r]:new Date(Date.UTC(e,r+1,0)).getUTCDate()}getLastWeekday(e,r){let n=this.getLastDayOfMonth(e,r),o=new Date(Date.UTC(e,r,n)).getUTCDay();return o===0?n-2:o===6?n-1:n}getNearestWeekday(e,r,n){let o=this.getLastDayOfMonth(e,r);if(n>o)return-1;let s=new Date(Date.UTC(e,r,n)).getUTCDay();return s===0?n===o?n-2:n+1:s===6?n===1?n+2:n-1:n}isNthWeekdayOfMonth(e,r,n,o){let s=new Date(Date.UTC(e,r,n)).getUTCDay(),a=0;for(let l=1;l<=n;l++)new Date(Date.UTC(e,r,l)).getUTCDay()===s&&a++;if(o&63&&Ly[a-1]&o)return!0;if(o&32){let l=this.getLastDayOfMonth(e,r);for(let u=n+1;u<=l;u++)if(new Date(Date.UTC(e,r,u)).getUTCDay()===s)return!1;return!0}return!1}fromDate(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else try{let r=Hs(e,this.tz);this.ms=e.getMilliseconds(),this.second=r.s,this.minute=r.i,this.hour=r.h,this.day=r.d,this.month=r.m-1,this.year=r.y}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=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()}fromCronDate(e){this.tz=e.tz,this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=e.second,this.ms=e.ms}apply(){if(this.month>11||this.month<0||this.day>Rh[this.month]||this.day<1||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1}fromString(e){if(typeof this.tz=="number"){let r=Ry(e);this.ms=r.getUTCMilliseconds(),this.second=r.getUTCSeconds(),this.minute=r.getUTCMinutes(),this.hour=r.getUTCHours(),this.day=r.getUTCDate(),this.month=r.getUTCMonth(),this.year=r.getUTCFullYear(),this.apply()}else return this.fromDate(Ry(e,this.tz))}findNext(e,r,n,o){return this._findMatch(e,r,n,o,1)}_findMatch(e,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:!e.domAndDow&&!n.starDOM?h=h||m:h=h&&m}if(h)return this[r]=p-o,a!==this[r]?2:1}return 3}recurse(e,r,n){if(n===0&&!e.starYear){if(this.year>=0&&this.year<e.year.length&&e.year[this.year]===0){let s=-1;for(let a=this.year+1;a<e.year.length&&a<1e4;a++)if(e.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,Re[n][0],e,Re[n][2]);if(o>1){let s=n+1;for(;s<Re.length;)this[Re[s][0]]=-Re[s][2],s++;if(o===3){if(this[Re[n][1]]++,this[Re[n][0]]=-Re[n][2],this.apply(),n===0&&!e.starYear){for(;this.year>=0&&this.year<e.year.length&&e.year[this.year]===0&&this.year<1e4;)this.year++;if(this.year>=1e4||this.year>=e.year.length)return null}return this.recurse(e,r,0)}else if(this.apply())return this.recurse(e,r,n-1)}return n+=1,n>=Re.length?this:(e.starYear?this.year>=3e3:this.year>=1e4)?null:this.recurse(e,r,n)}increment(e,r,n){return this.second+=r.interval!==void 0&&r.interval>1&&n?r.interval:1,this.ms=0,this.apply(),this.recurse(e,r,0)}decrement(e,r){return this.second-=r.interval!==void 0&&r.interval>1?r.interval:1,this.ms=0,this.apply(),this.recurseBackward(e,r,0,0)}recurseBackward(e,r,n,o=0){if(o>1e4)return null;if(n===0&&!e.starYear){if(this.year>=0&&this.year<e.year.length&&e.year[this.year]===0){let a=-1;for(let l=this.year-1;l>=0;l--)if(e.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,Re[n][0],e,Re[n][2]);if(s>1){let a=n+1;for(;a<Re.length;){let l=Re[a][0],u=Re[a][2],c=this.getMaxPatternValue(l,e,u);this[l]=c,a++}if(s===3){if(this[Re[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?Rh[p]:new Date(Date.UTC(f,p+1,0)).getUTCDate();this.day>h&&(this.day=h)}this.apply();let l=Re[n][0],u=Re[n][2],c=this.getMaxPatternValue(l,e,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=Re[1][2],p=this.getMaxPatternValue("day",e,f),h=this.getLastDayOfMonth(this.year,this.month),m=Math.min(p,h);m!==this.day&&(this.day=m,this.hour=this.getMaxPatternValue("hour",e,Re[2][2]),this.minute=this.getMaxPatternValue("minute",e,Re[3][2]),this.second=this.getMaxPatternValue("second",e,Re[4][2]))}if(n===0&&!e.starYear){for(;this.year>=0&&this.year<e.year.length&&e.year[this.year]===0;)this.year--;if(this.year<0)return null}return this.recurseBackward(e,r,0,o+1)}else if(this.apply())return this.recurseBackward(e,r,n-1,o+1)}return n+=1,n>=Re.length?this:this.year<0?null:this.recurseBackward(e,r,n,o+1)}getMaxPatternValue(e,r,n){if(e==="day"&&r.lastDayOfMonth)return this.getLastDayOfMonth(this.year,this.month);if(e==="day"&&!r.starDOW)return this.getLastDayOfMonth(this.year,this.month);for(let o=r[e].length-1;o>=0;o--)if(r[e][o])return o-n;return r[e].length-1-n}findPrevious(e,r,n,o){return this._findMatch(e,r,n,o,-1)}getDate(e){return e||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):Fy(Ah(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}match(e,r){if(!e.starYear&&(this.year<0||this.year>=e.year.length||e.year[this.year]===0))return!1;for(let n=0;n<Re.length;n++){let o=Re[n][0],s=Re[n][2],a=this[o];if(a+s<0||a+s>=e[o].length)return!1;let l=e[o][a+s];if(o==="day"){if(!l){for(let u=0;u<e.nearestWeekdays.length;u++)if(e.nearestWeekdays[u]){let c=this.getNearestWeekday(this.year,this.month,u-s);if(c!==-1&&c===a){l=1;break}}}if(e.lastWeekday){let u=this.getLastWeekday(this.year,this.month);a===u&&(l=1)}if(e.lastDayOfMonth){let u=this.getLastDayOfMonth(this.year,this.month);a===u&&(l=1)}if(!e.starDOW){let u=new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay(),c=e.dayOfWeek[(u+(a-1))%7];c&&c&63&&(c=this.isNthWeekdayOfMonth(this.year,this.month,a,c)?1:0),e.useAndLogic?l=l&&c:!r.domAndDow&&!e.starDOM?l=l||c:l=l&&c}}if(!l)return!1}return!0}};function k_(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode!==void 0&&t.domAndDow===void 0?t.domAndDow=!t.legacyMode:t.domAndDow===void 0&&(t.domAndDow=!1),t.legacyMode=!t.domAndDow,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval.toString(),10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset.toString(),10),t.dayOffset=t.dayOffset===void 0?0:parseInt(t.dayOffset.toString(),10),t.unref=t.unref===void 0?!1:t.unref,t.mode=t.mode===void 0?"auto":t.mode,t.alternativeWeekdays=t.alternativeWeekdays===void 0?!1:t.alternativeWeekdays,t.sloppyRanges=t.sloppyRanges===void 0?!1:t.sloppyRanges,!["auto","5-part","6-part","7-part","5-or-6-parts","6-or-7-parts"].includes(t.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(t.startAt&&(t.startAt=new Qe(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new Qe(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");if(t.dayOffset!==void 0&&t.dayOffset!==0&&isNaN(t.dayOffset))throw new Error("CronOptions: Invalid value passed for dayOffset, should be a number representing days to offset.");return t}i(k_,"R");function Ws(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}i(Ws,"p");function T_(t){return Ws(t)}i(T_,"_");function E_(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}i(E_,"x");var By=30*1e3,co=[],jy=class{static{i(this,"E")}name;options;_states;fn;getTz(){return this.options.timezone||this.options.utcOffset}applyDayOffset(t){if(this.options.dayOffset!==void 0&&this.options.dayOffset!==0){let e=this.options.dayOffset*24*60*60*1e3;return new Date(t.getTime()+e)}return t}constructor(t,e,r){let n,o;if(Ws(e))o=e;else if(typeof e=="object")n=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Ws(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=k_(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 Kl("* * * * *",void 0,{mode:"auto"})},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new Qe(t,this.getTz()):this._states.pattern=new Kl(t,this.options.timezone,{mode:this.options.mode,alternativeWeekdays:this.options.alternativeWeekdays,sloppyRanges:this.options.sloppyRanges}),this.name){if(co.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");co.push(this)}return o!==void 0&&T_(o)&&(this.fn=o,this.schedule()),this}nextRun(t){let e=this._next(t);return e?this.applyDayOffset(e.getDate(!1)):null}nextRuns(t,e){this._states.maxRuns!==void 0&&t>this._states.maxRuns&&(t=this._states.maxRuns);let r=e||this._states.currentRun||void 0;return this._enumerateRuns(t,r,"next")}previousRuns(t,e){return this._enumerateRuns(t,e||void 0,"previous")}_enumerateRuns(t,e,r){let n=[],o=e?new Qe(e,this.getTz()):null,s=r==="next"?this._next:this._previous;for(;t--;){let a=s.call(this,o);if(!a)break;let l=a.getDate(!1);n.push(this.applyDayOffset(l)),o=a}return n}match(t){if(this._states.once){let r=new Qe(t,this.getTz());r.ms=0;let n=new Qe(this._states.once,this.getTz());return n.ms=0,r.getTime()===n.getTime()}let e=new Qe(t,this.getTz());return e.ms=0,e.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 t=this.nextRun(this._states.currentRun),e=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return e&&r&&n&&t!==null}isStopped(){return this._states.kill}isBusy(){return this._states.blocking}currentRun(){return this._states.currentRun?this._states.currentRun.getDate():null}previousRun(){return this._states.previousRun?this._states.previousRun.getDate():null}msToNext(t){let e=this._next(t);return e?t instanceof Qe||t instanceof Date?e.getTime()-t.getTime():e.getTime()-new Qe(t).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=co.indexOf(this);t>=0&&co.splice(t,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(t){if(t&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");t&&(this.fn=t);let e=this.msToNext(),r=this.nextRun(this._states.currentRun);return e==null||isNaN(e)||r===null?this:(e>By&&(e=By),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&E_(this._states.currentTimeout),this)}async _trigger(t){this._states.blocking=!0,this._states.currentRun=new Qe(void 0,this.getTz());try{if(this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(e){if(Ws(this.options.catch))try{this.options.catch(e,this)}catch{}}else this.fn!==void 0&&await this.fn(this,this.options.context)}finally{this._states.previousRun=new Qe(t,this.getTz()),this._states.blocking=!1}}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(t){let e=new Date,r=!this._states.paused&&e.getTime()>=t.getTime(),n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):r&&n&&Ws(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(t){let e=!!(t||this._states.currentRun),r=!1;!t&&this.options.startAt&&this.options.interval&&([t,e]=this._calculatePreviousRun(t,e),r=!t),t=new Qe(t,this.getTz()),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let n=this._states.once||new Qe(t,this.getTz());return!r&&n!==this._states.once&&(n=n.increment(this._states.pattern,this.options,e)),this._states.once&&this._states.once.getTime()<=t.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(t){let e=new Qe(t,this.getTz());this.options.stopAt&&e.getTime()>this.options.stopAt.getTime()&&(e=this.options.stopAt);let r=new Qe(e,this.getTz());return this._states.once?this._states.once.getTime()<e.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(t,e){let r=new Qe(void 0,this.getTz()),n=t;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 Qe(n,this.getTz()).increment(this._states.pattern,this.options,!0),o=n.getTime()+this.options.interval*1e3;e=!0}return n===null&&(n=void 0),[n,e]}};var Zs={};ae(Zs,{add:()=>ln,addBusinessDays:()=>au,addDays:()=>Ke,addHours:()=>lu,addISOWeekYears:()=>cu,addMilliseconds:()=>un,addMinutes:()=>mo,addMonths:()=>Dr,addQuarters:()=>go,addSeconds:()=>fu,addWeeks:()=>cn,addYears:()=>pu,areIntervalsOverlapping:()=>qy,clamp:()=>Yy,closestIndexTo:()=>du,closestTo:()=>Vy,compareAsc:()=>ht,compareDesc:()=>Gy,constructFrom:()=>A,constructNow:()=>he,daysToWeeks:()=>Jy,differenceInBusinessDays:()=>Qy,differenceInCalendarDays:()=>rt,differenceInCalendarISOWeekYears:()=>xu,differenceInCalendarISOWeeks:()=>Ky,differenceInCalendarMonths:()=>Zn,differenceInCalendarQuarters:()=>xo,differenceInCalendarWeeks:()=>ei,differenceInCalendarYears:()=>fn,differenceInDays:()=>yo,differenceInHours:()=>ti,differenceInISOWeekYears:()=>Zy,differenceInMilliseconds:()=>wo,differenceInMinutes:()=>ri,differenceInMonths:()=>pn,differenceInQuarters:()=>ew,differenceInSeconds:()=>Ir,differenceInWeeks:()=>tw,differenceInYears:()=>bu,eachDayOfInterval:()=>vu,eachHourOfInterval:()=>rw,eachMinuteOfInterval:()=>nw,eachMonthOfInterval:()=>iw,eachQuarterOfInterval:()=>ow,eachWeekOfInterval:()=>sw,eachWeekendOfInterval:()=>So,eachWeekendOfMonth:()=>aw,eachWeekendOfYear:()=>lw,eachYearOfInterval:()=>uw,endOfDay:()=>bo,endOfDecade:()=>cw,endOfHour:()=>fw,endOfISOWeek:()=>pw,endOfISOWeekYear:()=>hw,endOfMinute:()=>mw,endOfMonth:()=>vo,endOfQuarter:()=>dw,endOfSecond:()=>gw,endOfToday:()=>xw,endOfTomorrow:()=>yw,endOfWeek:()=>ku,endOfYear:()=>Su,endOfYesterday:()=>ww,format:()=>Gs,formatDate:()=>Gs,formatDistance:()=>Ou,formatDistanceStrict:()=>Mu,formatDistanceToNow:()=>Iw,formatDistanceToNowStrict:()=>_w,formatDuration:()=>Pw,formatISO:()=>Nw,formatISO9075:()=>Aw,formatISODuration:()=>Rw,formatRFC3339:()=>Fw,formatRFC7231:()=>Lw,formatRelative:()=>Bw,formatters:()=>Ys,fromUnixTime:()=>zw,getDate:()=>Iu,getDay:()=>gn,getDayOfYear:()=>Eu,getDaysInMonth:()=>_u,getDaysInYear:()=>jw,getDecade:()=>Hw,getDefaultOptions:()=>Nu,getHours:()=>Ww,getISODay:()=>Au,getISOWeek:()=>Do,getISOWeekYear:()=>Tt,getISOWeeksInYear:()=>$w,getMilliseconds:()=>Uw,getMinutes:()=>qw,getMonth:()=>Yw,getOverlappingDaysInIntervals:()=>Vw,getQuarter:()=>qs,getSeconds:()=>Gw,getTime:()=>Jw,getUnixTime:()=>Qw,getWeek:()=>Co,getWeekOfMonth:()=>Kw,getWeekYear:()=>mn,getWeeksInMonth:()=>Xw,getYear:()=>Zw,hoursToMilliseconds:()=>eb,hoursToMinutes:()=>tb,hoursToSeconds:()=>rb,interval:()=>nb,intervalToDuration:()=>ib,intlFormat:()=>ob,intlFormatDistance:()=>sb,isAfter:()=>ab,isBefore:()=>lb,isDate:()=>gu,isEqual:()=>ub,isExists:()=>cb,isFirstDayOfMonth:()=>fb,isFriday:()=>pb,isFuture:()=>hb,isLastDayOfMonth:()=>wu,isLeapYear:()=>Pu,isMatch:()=>mb,isMonday:()=>db,isPast:()=>gb,isSameDay:()=>Mr,isSameHour:()=>Ec,isSameISOWeek:()=>Dc,isSameISOWeekYear:()=>xb,isSameMinute:()=>Cc,isSameMonth:()=>Oc,isSameQuarter:()=>Mc,isSameSecond:()=>Ic,isSameWeek:()=>_o,isSameYear:()=>_c,isSaturday:()=>ou,isSunday:()=>su,isThisHour:()=>yb,isThisISOWeek:()=>wb,isThisMinute:()=>bb,isThisMonth:()=>vb,isThisQuarter:()=>Sb,isThisSecond:()=>kb,isThisWeek:()=>Tb,isThisYear:()=>Eb,isThursday:()=>Db,isToday:()=>Cb,isTomorrow:()=>Ob,isTuesday:()=>Mb,isValid:()=>ut,isWednesday:()=>Ib,isWeekend:()=>Cr,isWithinInterval:()=>_b,isYesterday:()=>Pb,lastDayOfDecade:()=>Nb,lastDayOfISOWeek:()=>Ab,lastDayOfISOWeekYear:()=>Rb,lastDayOfMonth:()=>Ru,lastDayOfQuarter:()=>Fb,lastDayOfWeek:()=>Pc,lastDayOfYear:()=>Lb,lightFormat:()=>Bb,lightFormatters:()=>$t,longFormatters:()=>dn,max:()=>hu,milliseconds:()=>zb,millisecondsToHours:()=>jb,millisecondsToMinutes:()=>Hb,millisecondsToSeconds:()=>Wb,min:()=>mu,minutesToHours:()=>$b,minutesToMilliseconds:()=>Ub,minutesToSeconds:()=>qb,monthsToQuarters:()=>Yb,monthsToYears:()=>Vb,nextDay:()=>dt,nextFriday:()=>Gb,nextMonday:()=>Jb,nextSaturday:()=>Qb,nextSunday:()=>Kb,nextThursday:()=>Xb,nextTuesday:()=>Zb,nextWednesday:()=>e0,parse:()=>Tc,parseISO:()=>r0,parseJSON:()=>n0,parsers:()=>kc,previousDay:()=>gt,previousFriday:()=>i0,previousMonday:()=>o0,previousSaturday:()=>s0,previousSunday:()=>a0,previousThursday:()=>l0,previousTuesday:()=>u0,previousWednesday:()=>c0,quartersToMonths:()=>f0,quartersToYears:()=>p0,roundToNearestHours:()=>h0,roundToNearestMinutes:()=>m0,secondsToHours:()=>d0,secondsToMilliseconds:()=>g0,secondsToMinutes:()=>x0,set:()=>y0,setDate:()=>w0,setDay:()=>xn,setDayOfYear:()=>b0,setDefaultOptions:()=>v0,setHours:()=>S0,setISODay:()=>ac,setISOWeek:()=>ec,setISOWeekYear:()=>uu,setMilliseconds:()=>k0,setMinutes:()=>T0,setMonth:()=>Po,setQuarter:()=>E0,setSeconds:()=>D0,setWeek:()=>Xu,setWeekYear:()=>C0,setYear:()=>O0,startOfDay:()=>Or,startOfDecade:()=>M0,startOfHour:()=>Js,startOfISOWeek:()=>Ye,startOfISOWeekYear:()=>Wt,startOfMinute:()=>Qs,startOfMonth:()=>hn,startOfQuarter:()=>_r,startOfSecond:()=>Ks,startOfToday:()=>I0,startOfTomorrow:()=>_0,startOfWeek:()=>_e,startOfWeekYear:()=>ni,startOfYear:()=>ko,startOfYesterday:()=>P0,sub:()=>N0,subBusinessDays:()=>A0,subDays:()=>yn,subHours:()=>R0,subISOWeekYears:()=>yu,subMilliseconds:()=>F0,subMinutes:()=>L0,subMonths:()=>Ac,subQuarters:()=>B0,subSeconds:()=>z0,subWeeks:()=>j0,subYears:()=>H0,toDate:()=>y,transpose:()=>Fu,weeksToDays:()=>W0,yearsToDays:()=>$0,yearsToMonths:()=>U0,yearsToQuarters:()=>q0});var Zl=7,Us=365.2425,D_=Math.pow(10,8)*24*60*60*1e3,YK=-D_,Er=6048e5,eu=864e5,pt=6e4,Ht=36e5,fo=1e3,Fh=525600,an=43200,po=1440,tu=60,ru=3,nu=12,iu=4,Xn=3600,ho=60,Xl=Xn*24,Hy=Xl*7,Lh=Xl*365.2425,Bh=Lh/12,Wy=Bh*3,zh=Symbol.for("constructDateFrom");function A(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&zh in t?t[zh](e):t instanceof Date?new t.constructor(e):new Date(e)}i(A,"constructFrom");var JK=A;function y(t,e){return A(e||t,t)}i(y,"toDate");var ZK=y;function Ke(t,e,r){let n=y(t,r?.in);return isNaN(e)?A(r?.in||t,NaN):(e&&n.setDate(n.getDate()+e),n)}i(Ke,"addDays");var iX=Ke;function Dr(t,e,r){let n=y(t,r?.in);if(isNaN(e))return A(r?.in||t,NaN);if(!e)return n;let o=n.getDate(),s=A(r?.in||t,n.getTime());s.setMonth(n.getMonth()+e+1,0);let a=s.getDate();return o>=a?s:(n.setFullYear(s.getFullYear(),s.getMonth(),o),n)}i(Dr,"addMonths");var uX=Dr;function ln(t,e,r){let{years:n=0,months:o=0,weeks:s=0,days:a=0,hours:l=0,minutes:u=0,seconds:c=0}=e,f=y(t,r?.in),p=o||n?Dr(f,o+n*12):f,h=a||s?Ke(p,a+s*7):p,m=u+l*60,g=(c+m*60)*1e3;return A(r?.in||t,+h+g)}i(ln,"add");var gX=ln;function ou(t,e){return y(t,e?.in).getDay()===6}i(ou,"isSaturday");var bX=ou;function su(t,e){return y(t,e?.in).getDay()===0}i(su,"isSunday");var TX=su;function Cr(t,e){let r=y(t,e?.in).getDay();return r===0||r===6}i(Cr,"isWeekend");var OX=Cr;function au(t,e,r){let n=y(t,r?.in),o=Cr(n,r);if(isNaN(e))return A(r?.in,NaN);let s=n.getHours(),a=e<0?-1:1,l=Math.trunc(e/5);n.setDate(n.getDate()+l*7);let u=Math.abs(e%5);for(;u>0;)n.setDate(n.getDate()+a),Cr(n,r)||(u-=1);return o&&Cr(n,r)&&e!==0&&(ou(n,r)&&n.setDate(n.getDate()+(a<0?2:-1)),su(n,r)&&n.setDate(n.getDate()+(a<0?1:-2))),n.setHours(s),n}i(au,"addBusinessDays");var FX=au;function un(t,e,r){return A(r?.in||t,+y(t)+e)}i(un,"addMilliseconds");var HX=un;function lu(t,e,r){return un(t,e*Ht,r)}i(lu,"addHours");var YX=lu;var $y={};function Ee(){return $y}i(Ee,"getDefaultOptions");function Uy(t){$y=t}i(Uy,"setDefaultOptions");function _e(t,e){let r=Ee(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=y(t,e?.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(_e,"startOfWeek");var ZX=_e;function Ye(t,e){return _e(t,{...e,weekStartsOn:1})}i(Ye,"startOfISOWeek");var nZ=Ye;function Tt(t,e){let r=y(t,e?.in),n=r.getFullYear(),o=A(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let s=Ye(o),a=A(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 uZ=Tt;function Be(t){let e=y(t),r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),+t-+r}i(Be,"getTimezoneOffsetInMilliseconds");function Z(t,...e){let r=A.bind(null,t||e.find(n=>typeof n=="object"));return e.map(r)}i(Z,"normalizeDates");function Or(t,e){let r=y(t,e?.in);return r.setHours(0,0,0,0),r}i(Or,"startOfDay");var wZ=Or;function rt(t,e,r){let[n,o]=Z(r?.in,t,e),s=Or(n),a=Or(o),l=+s-Be(s),u=+a-Be(a);return Math.round((l-u)/eu)}i(rt,"differenceInCalendarDays");var DZ=rt;function Wt(t,e){let r=Tt(t,e),n=A(e?.in||t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),Ye(n)}i(Wt,"startOfISOWeekYear");var PZ=Wt;function uu(t,e,r){let n=y(t,r?.in),o=rt(n,Wt(n,r)),s=A(r?.in||t,0);return s.setFullYear(e,0,4),s.setHours(0,0,0,0),n=Wt(s),n.setDate(n.getDate()+o),n}i(uu,"setISOWeekYear");var zZ=uu;function cu(t,e,r){return uu(t,Tt(t,r)+e,r)}i(cu,"addISOWeekYears");var UZ=cu;function mo(t,e,r){let n=y(t,r?.in);return n.setTime(n.getTime()+e*pt),n}i(mo,"addMinutes");var JZ=mo;function go(t,e,r){return Dr(t,e*3,r)}i(go,"addQuarters");var ZZ=go;function fu(t,e,r){return un(t,e*1e3,r)}i(fu,"addSeconds");var nee=fu;function cn(t,e,r){return Ke(t,e*7,r)}i(cn,"addWeeks");var aee=cn;function pu(t,e,r){return Dr(t,e*12,r)}i(pu,"addYears");var fee=pu;function qy(t,e,r){let[n,o]=[+y(t.start,r?.in),+y(t.end,r?.in)].sort((l,u)=>l-u),[s,a]=[+y(e.start,r?.in),+y(e.end,r?.in)].sort((l,u)=>l-u);return r?.inclusive?n<=a&&s<=o:n<a&&s<o}i(qy,"areIntervalsOverlapping");var dee=qy;function hu(t,e){let r,n=e?.in;return t.forEach(o=>{!n&&typeof o=="object"&&(n=A.bind(null,o));let s=y(o,n);(!r||r<s||isNaN(+s))&&(r=s)}),A(n,r||NaN)}i(hu,"max");var bee=hu;function mu(t,e){let r,n=e?.in;return t.forEach(o=>{!n&&typeof o=="object"&&(n=A.bind(null,o));let s=y(o,n);(!r||r>s||isNaN(+s))&&(r=s)}),A(n,r||NaN)}i(mu,"min");var Eee=mu;function Yy(t,e,r){let[n,o,s]=Z(r?.in,t,e.start,e.end);return mu([hu([n,o],r),s],r)}i(Yy,"clamp");var _ee=Yy;function du(t,e){let r=+y(t);if(isNaN(r))return NaN;let n,o;return e.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(du,"closestIndexTo");var Ree=du;function Vy(t,e,r){let[n,...o]=Z(r?.in,t,...e),s=du(n,o);if(typeof s=="number"&&isNaN(s))return A(n,NaN);if(s!==void 0)return o[s]}i(Vy,"closestTo");var Hee=Vy;function ht(t,e){let r=+y(t)-+y(e);return r<0?-1:r>0?1:r}i(ht,"compareAsc");var qee=ht;function Gy(t,e){let r=+y(t)-+y(e);return r>0?-1:r<0?1:r}i(Gy,"compareDesc");var Jee=Gy;function he(t){return A(t,Date.now())}i(he,"constructNow");var Zee=he;function Jy(t){let e=Math.trunc(t/7);return e===0?0:e}i(Jy,"daysToWeeks");var nte=Jy;function Mr(t,e,r){let[n,o]=Z(r?.in,t,e);return+Or(n)==+Or(o)}i(Mr,"isSameDay");var lte=Mr;function gu(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}i(gu,"isDate");var fte=gu;function ut(t){return!(!gu(t)&&typeof t!="number"||isNaN(+y(t)))}i(ut,"isValid");var gte=ut;function Qy(t,e,r){let[n,o]=Z(r?.in,t,e);if(!ut(n)||!ut(o))return NaN;let s=rt(n,o),a=s<0?-1:1,l=Math.trunc(s/7),u=l*5,c=Ke(o,l*7);for(;!Mr(n,c);)u+=Cr(c,r)?0:a,c=Ke(c,a);return u===0?0:u}i(Qy,"differenceInBusinessDays");var Ete=Qy;function xu(t,e,r){let[n,o]=Z(r?.in,t,e);return Tt(n,r)-Tt(o,r)}i(xu,"differenceInCalendarISOWeekYears");var Ite=xu;function Ky(t,e,r){let[n,o]=Z(r?.in,t,e),s=Ye(n),a=Ye(o),l=+s-Be(s),u=+a-Be(a);return Math.round((l-u)/Er)}i(Ky,"differenceInCalendarISOWeeks");var Lte=Ky;function Zn(t,e,r){let[n,o]=Z(r?.in,t,e),s=n.getFullYear()-o.getFullYear(),a=n.getMonth()-o.getMonth();return s*12+a}i(Zn,"differenceInCalendarMonths");var Hte=Zn;function qs(t,e){let r=y(t,e?.in);return Math.trunc(r.getMonth()/3)+1}i(qs,"getQuarter");var qte=qs;function xo(t,e,r){let[n,o]=Z(r?.in,t,e),s=n.getFullYear()-o.getFullYear(),a=qs(n)-qs(o);return s*4+a}i(xo,"differenceInCalendarQuarters");var Qte=xo;function ei(t,e,r){let[n,o]=Z(r?.in,t,e),s=_e(n,r),a=_e(o,r),l=+s-Be(s),u=+a-Be(a);return Math.round((l-u)/Er)}i(ei,"differenceInCalendarWeeks");var nre=ei;function fn(t,e,r){let[n,o]=Z(r?.in,t,e);return n.getFullYear()-o.getFullYear()}i(fn,"differenceInCalendarYears");var are=fn;function yo(t,e,r){let[n,o]=Z(r?.in,t,e),s=Xy(n,o),a=Math.abs(rt(n,o));n.setDate(n.getDate()-s*a);let l=+(Xy(n,o)===-s),u=s*(a-l);return u===0?0:u}i(yo,"differenceInDays");function Xy(t,e){let r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}i(Xy,"compareLocalAsc");var pre=yo;function mt(t){return e=>{let n=(t?Math[t]:Math.trunc)(e);return n===0?0:n}}i(mt,"getRoundingMethod");function ti(t,e,r){let[n,o]=Z(r?.in,t,e),s=(+n-+o)/Ht;return mt(r?.roundingMethod)(s)}i(ti,"differenceInHours");var bre=ti;function yu(t,e,r){return cu(t,-e,r)}i(yu,"subISOWeekYears");var Tre=yu;function Zy(t,e,r){let[n,o]=Z(r?.in,t,e),s=ht(n,o),a=Math.abs(xu(n,o,r)),l=yu(n,s*a,r),u=+(ht(l,o)===-s),c=s*(a-u);return c===0?0:c}i(Zy,"differenceInISOWeekYears");var _re=Zy;function wo(t,e){return+y(t)-+y(e)}i(wo,"differenceInMilliseconds");var Rre=wo;function ri(t,e,r){let n=wo(t,e)/pt;return mt(r?.roundingMethod)(n)}i(ri,"differenceInMinutes");var Hre=ri;function bo(t,e){let r=y(t,e?.in);return r.setHours(23,59,59,999),r}i(bo,"endOfDay");var qre=bo;function vo(t,e){let r=y(t,e?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}i(vo,"endOfMonth");var Jre=vo;function wu(t,e){let r=y(t,e?.in);return+bo(r,e)==+vo(r,e)}i(wu,"isLastDayOfMonth");var tne=wu;function pn(t,e,r){let[n,o,s]=Z(r?.in,t,t,e),a=ht(o,s),l=Math.abs(Zn(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;wu(n)&&l===1&&ht(n,s)===1&&(u=!1);let c=a*(l-+u);return c===0?0:c}i(pn,"differenceInMonths");var lne=pn;function ew(t,e,r){let n=pn(t,e,r)/3;return mt(r?.roundingMethod)(n)}i(ew,"differenceInQuarters");var hne=ew;function Ir(t,e,r){let n=wo(t,e)/1e3;return mt(r?.roundingMethod)(n)}i(Ir,"differenceInSeconds");var yne=Ir;function tw(t,e,r){let n=yo(t,e,r)/7;return mt(r?.roundingMethod)(n)}i(tw,"differenceInWeeks");var kne=tw;function bu(t,e,r){let[n,o]=Z(r?.in,t,e),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(bu,"differenceInYears");var Mne=bu;function nt(t,e){let[r,n]=Z(t,e.start,e.end);return{start:r,end:n}}i(nt,"normalizeInterval");function vu(t,e){let{start:r,end:n}=nt(e?.in,t),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(A(r,a)),a.setDate(a.getDate()+l),a.setHours(0,0,0,0);return o?u.reverse():u}i(vu,"eachDayOfInterval");var Lne=vu;function rw(t,e){let{start:r,end:n}=nt(e?.in,t),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setMinutes(0,0,0);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(A(r,a)),a.setHours(a.getHours()+l);return o?u.reverse():u}i(rw,"eachHourOfInterval");var Wne=rw;function nw(t,e){let{start:r,end:n}=nt(e?.in,t);r.setSeconds(0,0);let o=+r>+n,s=o?+r:+n,a=o?n:r,l=e?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(A(r,a)),a=mo(a,l);return o?u.reverse():u}i(nw,"eachMinuteOfInterval");var Gne=nw;function iw(t,e){let{start:r,end:n}=nt(e?.in,t),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0),a.setDate(1);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(A(r,a)),a.setMonth(a.getMonth()+l);return o?u.reverse():u}i(iw,"eachMonthOfInterval");var Zne=iw;function _r(t,e){let r=y(t,e?.in),n=r.getMonth(),o=n-n%3;return r.setMonth(o,1),r.setHours(0,0,0,0),r}i(_r,"startOfQuarter");var nie=_r;function ow(t,e){let{start:r,end:n}=nt(e?.in,t),o=+r>+n,s=o?+_r(r):+_r(n),a=o?_r(n):_r(r),l=e?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(A(r,a)),a=go(a,l);return o?u.reverse():u}i(ow,"eachQuarterOfInterval");var cie=ow;function sw(t,e){let{start:r,end:n}=nt(e?.in,t),o=+r>+n,s=o?_e(n,e):_e(r,e),a=o?_e(r,e):_e(n,e);s.setHours(15),a.setHours(15);let l=+a.getTime(),u=s,c=e?.step??1;if(!c)return[];c<0&&(c=-c,o=!o);let f=[];for(;+u<=l;)u.setHours(0),f.push(A(r,u)),u=cn(u,c),u.setHours(15);return o?f.reverse():f}i(sw,"eachWeekOfInterval");var xie=sw;function So(t,e){let{start:r,end:n}=nt(e?.in,t),o=vu({start:r,end:n},e),s=[],a=0;for(;a<o.length;){let l=o[a++];Cr(l)&&s.push(A(r,l))}return s}i(So,"eachWeekendOfInterval");var Tie=So;function hn(t,e){let r=y(t,e?.in);return r.setDate(1),r.setHours(0,0,0,0),r}i(hn,"startOfMonth");var Oie=hn;function aw(t,e){let r=hn(t,e),n=vo(t,e);return So({start:r,end:n},e)}i(aw,"eachWeekendOfMonth");var Aie=aw;function Su(t,e){let r=y(t,e?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}i(Su,"endOfYear");var Bie=Su;function ko(t,e){let r=y(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}i(ko,"startOfYear");var Wie=ko;function lw(t,e){let r=ko(t,e),n=Su(t,e);return So({start:r,end:n},e)}i(lw,"eachWeekendOfYear");var Gie=lw;function uw(t,e){let{start:r,end:n}=nt(e?.in,t),o=+r>+n,s=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0),a.setMonth(0,1);let l=e?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(A(r,a)),a.setFullYear(a.getFullYear()+l);return o?u.reverse():u}i(uw,"eachYearOfInterval");var Zie=uw;function cw(t,e){let r=y(t,e?.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(cw,"endOfDecade");var noe=cw;function fw(t,e){let r=y(t,e?.in);return r.setMinutes(59,59,999),r}i(fw,"endOfHour");var aoe=fw;function ku(t,e){let r=Ee(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=y(t,e?.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(ku,"endOfWeek");var poe=ku;function pw(t,e){return ku(t,{...e,weekStartsOn:1})}i(pw,"endOfISOWeek");var goe=pw;function hw(t,e){let r=Tt(t,e),n=A(e?.in||t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=Ye(n,e);return o.setMilliseconds(o.getMilliseconds()-1),o}i(hw,"endOfISOWeekYear");var Soe=hw;function mw(t,e){let r=y(t,e?.in);return r.setSeconds(59,999),r}i(mw,"endOfMinute");var Doe=mw;function dw(t,e){let r=y(t,e?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(23,59,59,999),r}i(dw,"endOfQuarter");var Ioe=dw;function gw(t,e){let r=y(t,e?.in);return r.setMilliseconds(999),r}i(gw,"endOfSecond");var Aoe=gw;function xw(t){return bo(Date.now(),t)}i(xw,"endOfToday");var Boe=xw;function yw(t){let e=he(t?.in),r=e.getFullYear(),n=e.getMonth(),o=e.getDate(),s=he(t?.in);return s.setFullYear(r,n,o+1),s.setHours(23,59,59,999),t?.in?t.in(s):s}i(yw,"endOfTomorrow");var Woe=yw;function ww(t){let e=he(t?.in),r=A(t?.in,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),r.setHours(23,59,59,999),r}i(ww,"endOfYesterday");var Voe=ww;var C_={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"}},bw=i((t,e,r)=>{let n,o=C_[t];return typeof o=="string"?n=o:e===1?n=o.one:n=o.other.replace("{{count}}",e.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},"formatDistance");function Tu(t){return(e={})=>{let r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}i(Tu,"buildFormatLongFn");var O_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},M_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},I_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vw={date:Tu({formats:O_,defaultWidth:"full"}),time:Tu({formats:M_,defaultWidth:"full"}),dateTime:Tu({formats:I_,defaultWidth:"full"})};var __={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((t,e,r,n)=>__[t],"formatRelative");function To(t){return(e,r)=>{let n=r?.context?String(r.context):"standalone",o;if(n==="formatting"&&t.formattingValues){let a=t.defaultFormattingWidth||t.defaultWidth,l=r?.width?String(r.width):a;o=t.formattingValues[l]||t.formattingValues[a]}else{let a=t.defaultWidth,l=r?.width?String(r.width):t.defaultWidth;o=t.values[l]||t.values[a]}let s=t.argumentCallback?t.argumentCallback(e):e;return o[s]}}i(To,"buildLocalizeFn");var P_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},N_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},A_={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"]},R_={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"]},F_={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"}},L_={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"}},B_=i((t,e)=>{let r=Number(t),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"),kw={ordinalNumber:B_,era:To({values:P_,defaultWidth:"wide"}),quarter:To({values:N_,defaultWidth:"wide",argumentCallback:i(t=>t-1,"argumentCallback")}),month:To({values:A_,defaultWidth:"wide"}),day:To({values:R_,defaultWidth:"wide"}),dayPeriod:To({values:F_,defaultWidth:"wide",formattingValues:L_,defaultFormattingWidth:"wide"})};function Eo(t){return(e,r={})=>{let n=r.width,o=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],s=e.match(o);if(!s)return null;let a=s[0],l=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(l)?j_(l,p=>p.test(a)):z_(l,p=>p.test(a)),c;c=t.valueCallback?t.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;let f=e.slice(a.length);return{value:c,rest:f}}}i(Eo,"buildMatchFn");function z_(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}i(z_,"findKey");function j_(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}i(j_,"findIndex");function Tw(t){return(e,r={})=>{let n=e.match(t.matchPattern);if(!n)return null;let o=n[0],s=e.match(t.parsePattern);if(!s)return null;let a=t.valueCallback?t.valueCallback(s[0]):s[0];a=r.valueCallback?r.valueCallback(a):a;let l=e.slice(o.length);return{value:a,rest:l}}}i(Tw,"buildMatchPatternFn");var H_=/^(\d+)(th|st|nd|rd)?/i,W_=/\d+/i,$_={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},U_={any:[/^b/i,/^(a|c)/i]},q_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Y_={any:[/1/i,/2/i,/3/i,/4/i]},V_={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},G_={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]},J_={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},Q_={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]},K_={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},X_={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}},Ew={ordinalNumber:Tw({matchPattern:H_,parsePattern:W_,valueCallback:i(t=>parseInt(t,10),"valueCallback")}),era:Eo({matchPatterns:$_,defaultMatchWidth:"wide",parsePatterns:U_,defaultParseWidth:"any"}),quarter:Eo({matchPatterns:q_,defaultMatchWidth:"wide",parsePatterns:Y_,defaultParseWidth:"any",valueCallback:i(t=>t+1,"valueCallback")}),month:Eo({matchPatterns:V_,defaultMatchWidth:"wide",parsePatterns:G_,defaultParseWidth:"any"}),day:Eo({matchPatterns:J_,defaultMatchWidth:"wide",parsePatterns:Q_,defaultParseWidth:"any"}),dayPeriod:Eo({matchPatterns:K_,defaultMatchWidth:"any",parsePatterns:X_,defaultParseWidth:"any"})};var Nt={code:"en-US",formatDistance:bw,formatLong:vw,formatRelative:Sw,localize:kw,match:Ew,options:{weekStartsOn:0,firstWeekContainsDate:1}},Sse=Nt;function Eu(t,e){let r=y(t,e?.in);return rt(r,ko(r))+1}i(Eu,"getDayOfYear");var Mse=Eu;function Do(t,e){let r=y(t,e?.in),n=+Ye(r)-+Wt(r);return Math.round(n/Er)+1}i(Do,"getISOWeek");var Fse=Do;function mn(t,e){let r=y(t,e?.in),n=r.getFullYear(),o=Ee(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=A(e?.in||t,0);a.setFullYear(n+1,0,s),a.setHours(0,0,0,0);let l=_e(a,e),u=A(e?.in||t,0);u.setFullYear(n,0,s),u.setHours(0,0,0,0);let c=_e(u,e);return+r>=+l?n+1:+r>=+c?n:n-1}i(mn,"getWeekYear");var $se=mn;function ni(t,e){let r=Ee(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=mn(t,e),s=A(e?.in||t,0);return s.setFullYear(o,0,n),s.setHours(0,0,0,0),_e(s,e)}i(ni,"startOfWeekYear");var Qse=ni;function Co(t,e){let r=y(t,e?.in),n=+_e(r,e)-+ni(r,e);return Math.round(n/Er)+1}i(Co,"getWeek");var nae=Co;function J(t,e){let r=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return r+n}i(J,"addLeadingZeros");var $t={y(t,e){let r=t.getFullYear(),n=r>0?r:1-r;return J(e==="yy"?n%100:n,e.length)},M(t,e){let r=t.getMonth();return e==="M"?String(r+1):J(r+1,2)},d(t,e){return J(t.getDate(),e.length)},a(t,e){let r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(t,e){return J(t.getHours()%12||12,e.length)},H(t,e){return J(t.getHours(),e.length)},m(t,e){return J(t.getMinutes(),e.length)},s(t,e){return J(t.getSeconds(),e.length)},S(t,e){let r=e.length,n=t.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return J(o,e.length)}};var Oo={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ys={G:i(function(t,e,r){let n=t.getFullYear()>0?1:0;switch(e){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(t,e,r){if(e==="yo"){let n=t.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return $t.y(t,e)},"y"),Y:i(function(t,e,r,n){let o=mn(t,n),s=o>0?o:1-o;if(e==="YY"){let a=s%100;return J(a,2)}return e==="Yo"?r.ordinalNumber(s,{unit:"year"}):J(s,e.length)},"Y"),R:i(function(t,e){let r=Tt(t);return J(r,e.length)},"R"),u:i(function(t,e){let r=t.getFullYear();return J(r,e.length)},"u"),Q:i(function(t,e,r){let n=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return J(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(t,e,r){let n=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return J(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(t,e,r){let n=t.getMonth();switch(e){case"M":case"MM":return $t.M(t,e);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(t,e,r){let n=t.getMonth();switch(e){case"L":return String(n+1);case"LL":return J(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(t,e,r,n){let o=Co(t,n);return e==="wo"?r.ordinalNumber(o,{unit:"week"}):J(o,e.length)},"w"),I:i(function(t,e,r){let n=Do(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):J(n,e.length)},"I"),d:i(function(t,e,r){return e==="do"?r.ordinalNumber(t.getDate(),{unit:"date"}):$t.d(t,e)},"d"),D:i(function(t,e,r){let n=Eu(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):J(n,e.length)},"D"),E:i(function(t,e,r){let n=t.getDay();switch(e){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(t,e,r,n){let o=t.getDay(),s=(o-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return J(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(t,e,r,n){let o=t.getDay(),s=(o-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return J(s,e.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(t,e,r){let n=t.getDay(),o=n===0?7:n;switch(e){case"i":return String(o);case"ii":return J(o,e.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(t,e,r){let o=t.getHours()/12>=1?"pm":"am";switch(e){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(t,e,r){let n=t.getHours(),o;switch(n===12?o=Oo.noon:n===0?o=Oo.midnight:o=n/12>=1?"pm":"am",e){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(t,e,r){let n=t.getHours(),o;switch(n>=17?o=Oo.evening:n>=12?o=Oo.afternoon:n>=4?o=Oo.morning:o=Oo.night,e){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(t,e,r){if(e==="ho"){let n=t.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return $t.h(t,e)},"h"),H:i(function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):$t.H(t,e)},"H"),K:i(function(t,e,r){let n=t.getHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):J(n,e.length)},"K"),k:i(function(t,e,r){let n=t.getHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):J(n,e.length)},"k"),m:i(function(t,e,r){return e==="mo"?r.ordinalNumber(t.getMinutes(),{unit:"minute"}):$t.m(t,e)},"m"),s:i(function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):$t.s(t,e)},"s"),S:i(function(t,e){return $t.S(t,e)},"S"),X:i(function(t,e,r){let n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return Cw(n);case"XXXX":case"XX":return ii(n);default:return ii(n,":")}},"X"),x:i(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"x":return Cw(n);case"xxxx":case"xx":return ii(n);default:return ii(n,":")}},"x"),O:i(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Dw(n,":");default:return"GMT"+ii(n,":")}},"O"),z:i(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Dw(n,":");default:return"GMT"+ii(n,":")}},"z"),t:i(function(t,e,r){let n=Math.trunc(+t/1e3);return J(n,e.length)},"t"),T:i(function(t,e,r){return J(+t,e.length)},"T")};function Dw(t,e=""){let r=t>0?"-":"+",n=Math.abs(t),o=Math.trunc(n/60),s=n%60;return s===0?r+String(o):r+String(o)+e+J(s,2)}i(Dw,"formatTimezoneShort");function Cw(t,e){return t%60===0?(t>0?"-":"+")+J(Math.abs(t)/60,2):ii(t,e)}i(Cw,"formatTimezoneWithOptionalMinutes");function ii(t,e=""){let r=t>0?"-":"+",n=Math.abs(t),o=J(Math.trunc(n/60),2),s=J(n%60,2);return r+o+e+s}i(ii,"formatTimezone");var Ow=i((t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},"dateLongFormatter"),Mw=i((t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},"timeLongFormatter"),Z_=i((t,e)=>{let r=t.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Ow(t,e);let s;switch(n){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",Ow(n,e)).replace("{{time}}",Mw(o,e))},"dateTimeLongFormatter"),dn={p:Mw,P:Z_};var eP=/^D+$/,tP=/^Y+$/,rP=["D","DD","YY","YYYY"];function Du(t){return eP.test(t)}i(Du,"isProtectedDayOfYearToken");function Cu(t){return tP.test(t)}i(Cu,"isProtectedWeekYearToken");function Vs(t,e,r){let n=nP(t,e,r);if(console.warn(n),rP.includes(t))throw new RangeError(n)}i(Vs,"warnOrThrowProtectedError");function nP(t,e,r){let n=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}i(nP,"message");var iP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sP=/^'([^]*?)'?$/,aP=/''/g,lP=/[a-zA-Z]/;function Gs(t,e,r){let n=Ee(),o=r?.locale??n.locale??Nt,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(t,r?.in);if(!ut(l))throw new RangeError("Invalid time value");let u=e.match(oP).map(f=>{let p=f[0];if(p==="p"||p==="P"){let h=dn[p];return h(f,o.formatLong)}return f}).join("").match(iP).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let p=f[0];if(p==="'")return{isToken:!1,value:uP(f)};if(Ys[p])return{isToken:!0,value:f};if(p.match(lP))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&&Cu(p)||!r?.useAdditionalDayOfYearTokens&&Du(p))&&Vs(p,e,String(t));let h=Ys[p[0]];return h(l,p,o.localize,c)}).join("")}i(Gs,"format");function uP(t){let e=t.match(sP);return e?e[1].replace(aP,"'"):t}i(uP,"cleanEscapedString");var Iae=Gs;function Ou(t,e,r){let n=Ee(),o=r?.locale??n.locale??Nt,s=2520,a=ht(t,e);if(isNaN(a))throw new RangeError("Invalid time value");let l=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:a}),[u,c]=Z(r?.in,...a>0?[e,t]:[t,e]),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<po){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/po);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(Ou,"formatDistance");var Hae=Ou;function Mu(t,e,r){let n=Ee(),o=r?.locale??n.locale??Nt,s=ht(t,e);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[l,u]=Z(r?.in,...s>0?[e,t]:[t,e]),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<po?g="hour":m<an?g="day":m<Fh?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/po);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/Fh);return o.formatDistance("xYears",x,a)}}i(Mu,"formatDistanceStrict");var Kae=Mu;function Iw(t,e){return Ou(t,he(t),e)}i(Iw,"formatDistanceToNow");var rle=Iw;function _w(t,e){return Mu(t,he(t),e)}i(_w,"formatDistanceToNowStrict");var ale=_w;var cP=["years","months","weeks","days","hours","minutes","seconds"];function Pw(t,e){let r=Ee(),n=e?.locale??r.locale??Nt,o=e?.format??cP,s=e?.zero??!1,a=e?.delimiter??" ";return n.formatDistance?o.reduce((u,c)=>{let f=`x${c.replace(/(^.)/,h=>h.toUpperCase())}`,p=t[c];return p!==void 0&&(s||t[c])?u.concat(n.formatDistance(f,p)):u},[]).join(a):""}i(Pw,"formatDuration");var ple=Pw;function Nw(t,e){let r=y(t,e?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let n=e?.format??"extended",o=e?.representation??"complete",s="",a="",l=n==="extended"?"-":"",u=n==="extended"?":":"";if(o!=="time"){let c=J(r.getDate(),2),f=J(r.getMonth()+1,2);s=`${J(r.getFullYear(),4)}${l}${f}${l}${c}`}if(o!=="date"){let c=r.getTimezoneOffset();if(c!==0){let g=Math.abs(c),x=J(Math.trunc(g/60),2),w=J(g%60,2);a=`${c<0?"+":"-"}${x}:${w}`}else a="Z";let f=J(r.getHours(),2),p=J(r.getMinutes(),2),h=J(r.getSeconds(),2),m=s===""?"":"T",d=[f,p,h].join(u);s=`${s}${m}${d}${a}`}return s}i(Nw,"formatISO");var xle=Nw;function Aw(t,e){let r=y(t,e?.in);if(!ut(r))throw new RangeError("Invalid time value");let n=e?.format??"extended",o=e?.representation??"complete",s="",a=n==="extended"?"-":"",l=n==="extended"?":":"";if(o!=="time"){let u=J(r.getDate(),2),c=J(r.getMonth()+1,2);s=`${J(r.getFullYear(),4)}${a}${c}${a}${u}`}if(o!=="date"){let u=J(r.getHours(),2),c=J(r.getMinutes(),2),f=J(r.getSeconds(),2);s=`${s}${s===""?"":" "}${u}${l}${c}${l}${f}`}return s}i(Aw,"formatISO9075");var kle=Aw;function Rw(t){let{years:e=0,months:r=0,days:n=0,hours:o=0,minutes:s=0,seconds:a=0}=t;return`P${e}Y${r}M${n}DT${o}H${s}M${a}S`}i(Rw,"formatISODuration");var Dle=Rw;function Fw(t,e){let r=y(t,e?.in);if(!ut(r))throw new RangeError("Invalid time value");let n=e?.fractionDigits??0,o=J(r.getDate(),2),s=J(r.getMonth()+1,2),a=r.getFullYear(),l=J(r.getHours(),2),u=J(r.getMinutes(),2),c=J(r.getSeconds(),2),f="";if(n>0){let m=r.getMilliseconds(),d=Math.trunc(m*Math.pow(10,n-3));f="."+J(d,n)}let p="",h=r.getTimezoneOffset();if(h!==0){let m=Math.abs(h),d=J(Math.trunc(m/60),2),g=J(m%60,2);p=`${h<0?"+":"-"}${d}:${g}`}else p="Z";return`${a}-${s}-${o}T${l}:${u}:${c}${f}${p}`}i(Fw,"formatRFC3339");var Ple=Fw;var fP=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],pP=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Lw(t){let e=y(t);if(!ut(e))throw new RangeError("Invalid time value");let r=fP[e.getUTCDay()],n=J(e.getUTCDate(),2),o=pP[e.getUTCMonth()],s=e.getUTCFullYear(),a=J(e.getUTCHours(),2),l=J(e.getUTCMinutes(),2),u=J(e.getUTCSeconds(),2);return`${r}, ${n} ${o} ${s} ${a}:${l}:${u} GMT`}i(Lw,"formatRFC7231");var Ble=Lw;function Bw(t,e,r){let[n,o]=Z(r?.in,t,e),s=Ee(),a=r?.locale??s.locale??Nt,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,u=rt(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 Gs(n,f,{locale:a,weekStartsOn:l})}i(Bw,"formatRelative");var Yle=Bw;function zw(t,e){return y(t*1e3,e?.in)}i(zw,"fromUnixTime");var Qle=zw;function Iu(t,e){return y(t,e?.in).getDate()}i(Iu,"getDate");var eue=Iu;function gn(t,e){return y(t,e?.in).getDay()}i(gn,"getDay");var iue=gn;function _u(t,e){let r=y(t,e?.in),n=r.getFullYear(),o=r.getMonth(),s=A(r,0);return s.setFullYear(n,o+1,0),s.setHours(0,0,0,0),s.getDate()}i(_u,"getDaysInMonth");var uue=_u;function Pu(t,e){let n=y(t,e?.in).getFullYear();return n%400===0||n%4===0&&n%100!==0}i(Pu,"isLeapYear");var hue=Pu;function jw(t,e){let r=y(t,e?.in);return Number.isNaN(+r)?NaN:Pu(r)?366:365}i(jw,"getDaysInYear");var yue=jw;function Hw(t,e){let n=y(t,e?.in).getFullYear();return Math.floor(n/10)*10}i(Hw,"getDecade");var Sue=Hw;function Nu(){return Object.assign({},Ee())}i(Nu,"getDefaultOptions");var Due=Nu;function Ww(t,e){return y(t,e?.in).getHours()}i(Ww,"getHours");var Iue=Ww;function Au(t,e){let r=y(t,e?.in).getDay();return r===0?7:r}i(Au,"getISODay");var Aue=Au;function $w(t,e){let r=Wt(t,e),o=+Wt(cn(r,60))-+r;return Math.round(o/Er)}i($w,"getISOWeeksInYear");var jue=$w;function Uw(t){return y(t).getMilliseconds()}i(Uw,"getMilliseconds");var Uue=Uw;function qw(t,e){return y(t,e?.in).getMinutes()}i(qw,"getMinutes");var Gue=qw;function Yw(t,e){return y(t,e?.in).getMonth()}i(Yw,"getMonth");var Xue=Yw;function Vw(t,e){let[r,n]=[+y(t.start),+y(t.end)].sort((p,h)=>p-h),[o,s]=[+y(e.start),+y(e.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)/eu)}i(Vw,"getOverlappingDaysInIntervals");var ice=Vw;function Gw(t){return y(t).getSeconds()}i(Gw,"getSeconds");var lce=Gw;function Jw(t){return+y(t)}i(Jw,"getTime");var pce=Jw;function Qw(t){return Math.trunc(+y(t)/1e3)}i(Qw,"getUnixTime");var gce=Qw;function Kw(t,e){let r=Ee(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Iu(y(t,e?.in));if(isNaN(o))return NaN;let s=gn(hn(t,e)),a=n-s;a<=0&&(a+=7);let l=o-a;return Math.ceil(l/7)+1}i(Kw,"getWeekOfMonth");var Tce=Kw;function Ru(t,e){let r=y(t,e?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),y(r,e?.in)}i(Ru,"lastDayOfMonth");var Oce=Ru;function Xw(t,e){let r=y(t,e?.in);return ei(Ru(r,e),hn(r,e),e)+1}i(Xw,"getWeeksInMonth");var Rce=Xw;function Zw(t,e){return y(t,e?.in).getFullYear()}i(Zw,"getYear");var zce=Zw;function eb(t){return Math.trunc(t*Ht)}i(eb,"hoursToMilliseconds");var $ce=eb;function tb(t){return Math.trunc(t*tu)}i(tb,"hoursToMinutes");var Vce=tb;function rb(t){return Math.trunc(t*Xn)}i(rb,"hoursToSeconds");var Kce=rb;function nb(t,e,r){let[n,o]=Z(r?.in,t,e);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(nb,"interval");var tfe=nb;function ib(t,e){let{start:r,end:n}=nt(e?.in,t),o={},s=bu(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=yo(n,u);c&&(o.days=c);let f=ln(u,{days:o.days}),p=ti(n,f);p&&(o.hours=p);let h=ln(f,{hours:o.hours}),m=ri(n,h);m&&(o.minutes=m);let d=ln(h,{minutes:o.minutes}),g=Ir(n,d);return g&&(o.seconds=g),o}i(ib,"intervalToDuration");var pfe=ib;function ob(t,e,r){let n;return hP(e)?n=e:r=e,new Intl.DateTimeFormat(r?.locale,n).format(y(t))}i(ob,"intlFormat");function hP(t){return t!==void 0&&!("locale"in t)}i(hP,"isFormatOptions");var gfe=ob;function sb(t,e,r){let n=0,o,[s,a]=Z(r?.in,t,e);if(r?.unit)o=r?.unit,o==="second"?n=Ir(s,a):o==="minute"?n=ri(s,a):o==="hour"?n=ti(s,a):o==="day"?n=rt(s,a):o==="week"?n=ei(s,a):o==="month"?n=Zn(s,a):o==="quarter"?n=xo(s,a):o==="year"&&(n=fn(s,a));else{let u=Ir(s,a);Math.abs(u)<ho?(n=Ir(s,a),o="second"):Math.abs(u)<Xn?(n=ri(s,a),o="minute"):Math.abs(u)<Xl&&Math.abs(rt(s,a))<1?(n=ti(s,a),o="hour"):Math.abs(u)<Hy&&(n=rt(s,a))&&Math.abs(n)<7?o="day":Math.abs(u)<Bh?(n=ei(s,a),o="week"):Math.abs(u)<Wy?(n=Zn(s,a),o="month"):Math.abs(u)<Lh?xo(s,a)<4?(n=xo(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(sb,"intlFormatDistance");var Mfe=sb;function ab(t,e){return+y(t)>+y(e)}i(ab,"isAfter");var Nfe=ab;function lb(t,e){return+y(t)<+y(e)}i(lb,"isBefore");var Lfe=lb;function ub(t,e){return+y(t)==+y(e)}i(ub,"isEqual");var Hfe=ub;function cb(t,e,r){let n=new Date(t,e,r);return n.getFullYear()===t&&n.getMonth()===e&&n.getDate()===r}i(cb,"isExists");var Ufe=cb;function fb(t,e){return y(t,e?.in).getDate()===1}i(fb,"isFirstDayOfMonth");var Gfe=fb;function pb(t,e){return y(t,e?.in).getDay()===5}i(pb,"isFriday");var Xfe=pb;function hb(t){return+y(t)>Date.now()}i(hb,"isFuture");var rpe=hb;function Fu(t,e){let r=mP(e)?new e(0):A(e,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}i(Fu,"transpose");function mP(t){return typeof t=="function"&&t.prototype?.constructor===t}i(mP,"isConstructor");var spe=Fu;var dP=10,Lu=class{static{i(this,"Setter")}subPriority=0;validate(e,r){return!0}},Bu=class extends Lu{static{i(this,"ValueSetter")}constructor(e,r,n,o,s){super(),this.value=e,this.validateValue=r,this.setValue=n,this.priority=o,s&&(this.subPriority=s)}validate(e,r){return this.validateValue(e,this.value,r)}set(e,r,n){return this.setValue(e,r,this.value,n)}},zu=class extends Lu{static{i(this,"DateTimezoneSetter")}priority=dP;subPriority=-1;constructor(e,r){super(),this.context=e||(n=>A(r,n))}set(e,r){return r.timestampIsSet?e:A(e,Fu(e,this.context))}};var G=class{static{i(this,"Parser")}run(e,r,n,o){let s=this.parse(e,r,n,o);return s?{setter:new Bu(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,r,n){return!0}};var ju=class extends G{static{i(this,"EraParser")}priority=140;parse(e,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,r,n){return r.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}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(t,e){return t&&{value:e(t.value),rest:t.rest}}i(Ce,"mapValue");function xe(t,e){let r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}i(xe,"parseNumericPattern");function Kt(t,e){let r=e.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:e.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*Ht+s*pt+a*fo),rest:e.slice(r[0].length)}}i(Kt,"parseTimezonePattern");function Hu(t){return xe(we.anyDigitsSigned,t)}i(Hu,"parseAnyDigitsSigned");function pe(t,e){switch(t){case 1:return xe(we.singleDigit,e);case 2:return xe(we.twoDigits,e);case 3:return xe(we.threeDigits,e);case 4:return xe(we.fourDigits,e);default:return xe(new RegExp("^\\d{1,"+t+"}"),e)}}i(pe,"parseNDigits");function Mo(t,e){switch(t){case 1:return xe(we.singleDigitSigned,e);case 2:return xe(we.twoDigitsSigned,e);case 3:return xe(we.threeDigitsSigned,e);case 4:return xe(we.fourDigitsSigned,e);default:return xe(new RegExp("^-?\\d{1,"+t+"}"),e)}}i(Mo,"parseNDigitsSigned");function Io(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}i(Io,"dayPeriodEnumToHours");function Wu(t,e){let r=e>0,n=r?e:1-e,o;if(n<=50)o=t||100;else{let s=n+50,a=Math.trunc(s/100)*100,l=t>=s%100;o=t+a-(l?100:0)}return r?o:1-o}i(Wu,"normalizeTwoDigitYear");function $u(t){return t%400===0||t%4===0&&t%100!==0}i($u,"isLeapYearIndex");var Uu=class extends G{static{i(this,"YearParser")}priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,r,n){let o=i(s=>({year:s,isTwoDigitYear:r==="yy"}),"valueCallback");switch(r){case"y":return Ce(pe(4,e),o);case"yo":return Ce(n.ordinalNumber(e,{unit:"year"}),o);default:return Ce(pe(r.length,e),o)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n){let o=e.getFullYear();if(n.isTwoDigitYear){let a=Wu(n.year,o);return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}let s=!("era"in r)||r.era===1?n.year:1-n.year;return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}};var qu=class extends G{static{i(this,"LocalWeekYearParser")}priority=130;parse(e,r,n){let o=i(s=>({year:s,isTwoDigitYear:r==="YY"}),"valueCallback");switch(r){case"Y":return Ce(pe(4,e),o);case"Yo":return Ce(n.ordinalNumber(e,{unit:"year"}),o);default:return Ce(pe(r.length,e),o)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n,o){let s=mn(e,o);if(n.isTwoDigitYear){let l=Wu(n.year,s);return e.setFullYear(l,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),_e(e,o)}let a=!("era"in r)||r.era===1?n.year:1-n.year;return e.setFullYear(a,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),_e(e,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var Yu=class extends G{static{i(this,"ISOWeekYearParser")}priority=130;parse(e,r){return r==="R"?Mo(4,e):Mo(r.length,e)}set(e,r,n){let o=A(e,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 Vu=class extends G{static{i(this,"ExtendedYearParser")}priority=130;parse(e,r){return r==="u"?Mo(4,e):Mo(r.length,e)}set(e,r,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var Gu=class extends G{static{i(this,"QuarterParser")}priority=120;parse(e,r,n){switch(r){case"Q":case"QQ":return pe(r.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=1&&r<=4}set(e,r,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var Ju=class extends G{static{i(this,"StandAloneQuarterParser")}priority=120;parse(e,r,n){switch(r){case"q":case"qq":return pe(r.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=1&&r<=4}set(e,r,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var Qu=class extends G{static{i(this,"MonthParser")}incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,r,n){let o=i(s=>s-1,"valueCallback");switch(r){case"M":return Ce(xe(we.month,e),o);case"MM":return Ce(pe(2,e),o);case"Mo":return Ce(n.ordinalNumber(e,{unit:"month"}),o);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}};var Ku=class extends G{static{i(this,"StandAloneMonthParser")}priority=110;parse(e,r,n){let o=i(s=>s-1,"valueCallback");switch(r){case"L":return Ce(xe(we.month,e),o);case"LL":return Ce(pe(2,e),o);case"Lo":return Ce(n.ordinalNumber(e,{unit:"month"}),o);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function Xu(t,e,r){let n=y(t,r?.in),o=Co(n,r)-e;return n.setDate(n.getDate()-o*7),y(n,r?.in)}i(Xu,"setWeek");var che=Xu;var Zu=class extends G{static{i(this,"LocalWeekParser")}priority=100;parse(e,r,n){switch(r){case"w":return xe(we.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return pe(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n,o){return _e(Xu(e,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function ec(t,e,r){let n=y(t,r?.in),o=Do(n,r)-e;return n.setDate(n.getDate()-o*7),n}i(ec,"setISOWeek");var She=ec;var tc=class extends G{static{i(this,"ISOWeekParser")}priority=100;parse(e,r,n){switch(r){case"I":return xe(we.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return pe(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n){return Ye(ec(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var gP=[31,28,31,30,31,30,31,31,30,31,30,31],xP=[31,29,31,30,31,30,31,31,30,31,30,31],rc=class extends G{static{i(this,"DateParser")}priority=90;subPriority=1;parse(e,r,n){switch(r){case"d":return xe(we.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return pe(r.length,e)}}validate(e,r){let n=e.getFullYear(),o=$u(n),s=e.getMonth();return o?r>=1&&r<=xP[s]:r>=1&&r<=gP[s]}set(e,r,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var nc=class extends G{static{i(this,"DayOfYearParser")}priority=90;subpriority=1;parse(e,r,n){switch(r){case"D":case"DD":return xe(we.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return pe(r.length,e)}}validate(e,r){let n=e.getFullYear();return $u(n)?r>=1&&r<=366:r>=1&&r<=365}set(e,r,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function xn(t,e,r){let n=Ee(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=y(t,r?.in),a=s.getDay(),u=(e%7+7)%7,c=7-o,f=e<0||e>6?e-(a+c)%7:(u+c)%7-(a+c)%7;return Ke(s,f,r)}i(xn,"setDay");var qhe=xn;var ic=class extends G{static{i(this,"DayParser")}priority=90;parse(e,r,n){switch(r){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,o){return e=xn(e,n,o),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]};var oc=class extends G{static{i(this,"LocalDayParser")}priority=90;parse(e,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,e),s);case"eo":return Ce(n.ordinalNumber(e,{unit:"day"}),s);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,o){return e=xn(e,n,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var sc=class extends G{static{i(this,"StandAloneLocalDayParser")}priority=90;parse(e,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,e),s);case"co":return Ce(n.ordinalNumber(e,{unit:"day"}),s);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,o){return e=xn(e,n,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function ac(t,e,r){let n=y(t,r?.in),o=Au(n,r),s=e-o;return Ke(n,s,r)}i(ac,"setISODay");var fme=ac;var lc=class extends G{static{i(this,"ISODayParser")}priority=90;parse(e,r,n){let o=i(s=>s===0?7:s,"valueCallback");switch(r){case"i":case"ii":return pe(r.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Ce(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);case"iiiii":return Ce(n.day(e,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Ce(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);default:return Ce(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o)}}validate(e,r){return r>=1&&r<=7}set(e,r,n){return e=ac(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var uc=class extends G{static{i(this,"AMPMParser")}priority=80;parse(e,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(Io(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};var cc=class extends G{static{i(this,"AMPMMidnightParser")}priority=80;parse(e,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(Io(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};var fc=class extends G{static{i(this,"DayPeriodParser")}priority=80;parse(e,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setHours(Io(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]};var pc=class extends G{static{i(this,"Hour1to12Parser")}priority=70;parse(e,r,n){switch(r){case"h":return xe(we.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return pe(r.length,e)}}validate(e,r){return r>=1&&r<=12}set(e,r,n){let o=e.getHours()>=12;return o&&n<12?e.setHours(n+12,0,0,0):!o&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]};var hc=class extends G{static{i(this,"Hour0to23Parser")}priority=70;parse(e,r,n){switch(r){case"H":return xe(we.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return pe(r.length,e)}}validate(e,r){return r>=0&&r<=23}set(e,r,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]};var mc=class extends G{static{i(this,"Hour0To11Parser")}priority=70;parse(e,r,n){switch(r){case"K":return xe(we.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return pe(r.length,e)}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]};var dc=class extends G{static{i(this,"Hour1To24Parser")}priority=70;parse(e,r,n){switch(r){case"k":return xe(we.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return pe(r.length,e)}}validate(e,r){return r>=1&&r<=24}set(e,r,n){let o=n<=24?n%24:n;return e.setHours(o,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]};var gc=class extends G{static{i(this,"MinuteParser")}priority=60;parse(e,r,n){switch(r){case"m":return xe(we.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return pe(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]};var xc=class extends G{static{i(this,"SecondParser")}priority=50;parse(e,r,n){switch(r){case"s":return xe(we.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return pe(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]};var yc=class extends G{static{i(this,"FractionOfSecondParser")}priority=30;parse(e,r){let n=i(o=>Math.trunc(o*Math.pow(10,-r.length+3)),"valueCallback");return Ce(pe(r.length,e),n)}set(e,r,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]};var wc=class extends G{static{i(this,"ISOTimezoneWithZParser")}priority=10;parse(e,r){switch(r){case"X":return Kt(Qt.basicOptionalMinutes,e);case"XX":return Kt(Qt.basic,e);case"XXXX":return Kt(Qt.basicOptionalSeconds,e);case"XXXXX":return Kt(Qt.extendedOptionalSeconds,e);default:return Kt(Qt.extended,e)}}set(e,r,n){return r.timestampIsSet?e:A(e,e.getTime()-Be(e)-n)}incompatibleTokens=["t","T","x"]};var bc=class extends G{static{i(this,"ISOTimezoneParser")}priority=10;parse(e,r){switch(r){case"x":return Kt(Qt.basicOptionalMinutes,e);case"xx":return Kt(Qt.basic,e);case"xxxx":return Kt(Qt.basicOptionalSeconds,e);case"xxxxx":return Kt(Qt.extendedOptionalSeconds,e);default:return Kt(Qt.extended,e)}}set(e,r,n){return r.timestampIsSet?e:A(e,e.getTime()-Be(e)-n)}incompatibleTokens=["t","T","X"]};var vc=class extends G{static{i(this,"TimestampSecondsParser")}priority=40;parse(e){return Hu(e)}set(e,r,n){return[A(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Sc=class extends G{static{i(this,"TimestampMillisecondsParser")}priority=20;parse(e){return Hu(e)}set(e,r,n){return[A(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"};var kc={G:new ju,y:new Uu,Y:new qu,R:new Yu,u:new Vu,Q:new Gu,q:new Ju,M:new Qu,L:new Ku,w:new Zu,I:new tc,d:new rc,D:new nc,E:new ic,e:new oc,c:new sc,i:new lc,a:new uc,b:new cc,B:new fc,h:new pc,H:new hc,K:new mc,k:new dc,m:new gc,s:new xc,S:new yc,X:new wc,x:new bc,t:new vc,T:new Sc};var yP=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wP=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bP=/^'([^]*?)'?$/,vP=/''/g,SP=/\S/,kP=/[a-zA-Z]/;function Tc(t,e,r,n){let o=i(()=>A(n?.in||r,NaN),"invalidDate"),s=Nu(),a=n?.locale??s.locale??Nt,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(!e)return t?o():y(r,n?.in);let c={firstWeekContainsDate:l,weekStartsOn:u,locale:a},f=[new zu(n?.in,r)],p=e.match(wP).map(x=>{let w=x[0];if(w in dn){let T=dn[w];return T(x,a.formatLong)}return x}).join("").match(yP),h=[];for(let x of p){!n?.useAdditionalWeekYearTokens&&Cu(x)&&Vs(x,e,t),!n?.useAdditionalDayOfYearTokens&&Du(x)&&Vs(x,e,t);let w=x[0],T=kc[w];if(T){let{incompatibleTokens:E}=T;if(Array.isArray(E)){let H=h.find(O=>E.includes(O.token)||O.token===w);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:w,fullToken:x});let q=T.run(t,x,a.match,c);if(!q)return o();f.push(q.setter),t=q.rest}else{if(w.match(kP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");if(x==="''"?x="'":w==="'"&&(x=TP(x)),t.indexOf(x)===0)t=t.slice(x.length);else return o()}}if(t.length>0&&SP.test(t))return o();let m=f.map(x=>x.priority).sort((x,w)=>w-x).filter((x,w,T)=>T.indexOf(x)===w).map(x=>f.filter(w=>w.priority===x).sort((w,T)=>T.subPriority-w.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 w=x.set(d,g,c);Array.isArray(w)?(d=w[0],Object.assign(g,w[1])):d=w}return d}i(Tc,"parse");function TP(t){return t.match(bP)[1].replace(vP,"'")}i(TP,"cleanEscapedString");var vge=Tc;function mb(t,e,r){return ut(Tc(t,e,new Date,r))}i(mb,"isMatch");var Dge=mb;function db(t,e){return y(t,e?.in).getDay()===1}i(db,"isMonday");var Ige=db;function gb(t){return+y(t)<Date.now()}i(gb,"isPast");var Age=gb;function Js(t,e){let r=y(t,e?.in);return r.setMinutes(0,0,0),r}i(Js,"startOfHour");var Bge=Js;function Ec(t,e,r){let[n,o]=Z(r?.in,t,e);return+Js(n)==+Js(o)}i(Ec,"isSameHour");var $ge=Ec;function _o(t,e,r){let[n,o]=Z(r?.in,t,e);return+_e(n,r)==+_e(o,r)}i(_o,"isSameWeek");var Gge=_o;function Dc(t,e,r){return _o(t,e,{...r,weekStartsOn:1})}i(Dc,"isSameISOWeek");var Xge=Dc;function xb(t,e,r){let[n,o]=Z(r?.in,t,e);return+Wt(n)==+Wt(o)}i(xb,"isSameISOWeekYear");var nxe=xb;function Qs(t,e){let r=y(t,e?.in);return r.setSeconds(0,0),r}i(Qs,"startOfMinute");var axe=Qs;function Cc(t,e){return+Qs(t)==+Qs(e)}i(Cc,"isSameMinute");var fxe=Cc;function Oc(t,e,r){let[n,o]=Z(r?.in,t,e);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}i(Oc,"isSameMonth");var dxe=Oc;function Mc(t,e,r){let[n,o]=Z(r?.in,t,e);return+_r(n)==+_r(o)}i(Mc,"isSameQuarter");var bxe=Mc;function Ks(t,e){let r=y(t,e?.in);return r.setMilliseconds(0),r}i(Ks,"startOfSecond");var Txe=Ks;function Ic(t,e){return+Ks(t)==+Ks(e)}i(Ic,"isSameSecond");var Oxe=Ic;function _c(t,e,r){let[n,o]=Z(r?.in,t,e);return n.getFullYear()===o.getFullYear()}i(_c,"isSameYear");var Pxe=_c;function yb(t,e){return Ec(y(t,e?.in),he(e?.in||t))}i(yb,"isThisHour");var Bxe=yb;function wb(t,e){return Dc(A(e?.in||t,t),he(e?.in||t))}i(wb,"isThisISOWeek");var Uxe=wb;function bb(t){return Cc(t,he(t))}i(bb,"isThisMinute");var Jxe=bb;function vb(t,e){return Oc(A(e?.in||t,t),he(e?.in||t))}i(vb,"isThisMonth");var tye=vb;function Sb(t,e){return Mc(A(e?.in||t,t),he(e?.in||t))}i(Sb,"isThisQuarter");var aye=Sb;function kb(t){return Ic(t,he(t))}i(kb,"isThisSecond");var pye=kb;function Tb(t,e){return _o(A(e?.in||t,t),he(e?.in||t),e)}i(Tb,"isThisWeek");var yye=Tb;function Eb(t,e){return _c(A(e?.in||t,t),he(e?.in||t))}i(Eb,"isThisYear");var Tye=Eb;function Db(t,e){return y(t,e?.in).getDay()===4}i(Db,"isThursday");var Oye=Db;function Cb(t,e){return Mr(A(e?.in||t,t),he(e?.in||t))}i(Cb,"isToday");var Aye=Cb;function Ob(t,e){return Mr(t,Ke(he(e?.in||t),1),e)}i(Ob,"isTomorrow");var jye=Ob;function Mb(t,e){return y(t,e?.in).getDay()===2}i(Mb,"isTuesday");var Uye=Mb;function Ib(t,e){return y(t,e?.in).getDay()===3}i(Ib,"isWednesday");var Gye=Ib;function _b(t,e,r){let n=+y(t,r?.in),[o,s]=[+y(e.start,r?.in),+y(e.end,r?.in)].sort((a,l)=>a-l);return n>=o&&n<=s}i(_b,"isWithinInterval");var Xye=_b;function yn(t,e,r){return Ke(t,-e,r)}i(yn,"subDays");var rwe=yn;function Pb(t,e){return Mr(A(e?.in||t,t),yn(he(e?.in||t),1))}i(Pb,"isYesterday");var uwe=Pb;function Nb(t,e){let r=y(t,e?.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,e?.in)}i(Nb,"lastDayOfDecade");var hwe=Nb;function Pc(t,e){let r=Ee(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=y(t,e?.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(Pc,"lastDayOfWeek");var ywe=Pc;function Ab(t,e){return Pc(t,{...e,weekStartsOn:1})}i(Ab,"lastDayOfISOWeek");var Swe=Ab;function Rb(t,e){let r=Tt(t,e),n=A(e?.in||t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=Ye(n,e);return o.setDate(o.getDate()-1),o}i(Rb,"lastDayOfISOWeekYear");var Owe=Rb;function Fb(t,e){let r=y(t,e?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(0,0,0,0),r}i(Fb,"lastDayOfQuarter");var Pwe=Fb;function Lb(t,e){let r=y(t,e?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),r}i(Lb,"lastDayOfYear");var Fwe=Lb;var EP=/(\w)\1*|''|'(''|[^'])+('|$)|./g,DP=/^'([^]*?)'?$/,CP=/''/g,OP=/[a-zA-Z]/;function Bb(t,e){let r=y(t);if(!ut(r))throw new RangeError("Invalid time value");let n=e.match(EP);return n?n.map(s=>{if(s==="''")return"'";let a=s[0];if(a==="'")return MP(s);let l=$t[a];if(l)return l(r,s);if(a.match(OP))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return s}).join(""):""}i(Bb,"lightFormat");function MP(t){let e=t.match(DP);return e?e[1].replace(CP,"'"):t}i(MP,"cleanEscapedString");var Wwe=Bb;function zb({years:t,months:e,weeks:r,days:n,hours:o,minutes:s,seconds:a}){let l=0;t&&(l+=t*365.2425),e&&(l+=e*(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(zb,"milliseconds");var Ywe=zb;function jb(t){let e=t/Ht;return Math.trunc(e)}i(jb,"millisecondsToHours");var Qwe=jb;function Hb(t){let e=t/pt;return Math.trunc(e)}i(Hb,"millisecondsToMinutes");var ebe=Hb;function Wb(t){let e=t/fo;return Math.trunc(e)}i(Wb,"millisecondsToSeconds");var ibe=Wb;function $b(t){let e=t/tu;return Math.trunc(e)}i($b,"minutesToHours");var lbe=$b;function Ub(t){return Math.trunc(t*pt)}i(Ub,"minutesToMilliseconds");var pbe=Ub;function qb(t){return Math.trunc(t*ho)}i(qb,"minutesToSeconds");var gbe=qb;function Yb(t){let e=t/ru;return Math.trunc(e)}i(Yb,"monthsToQuarters");var bbe=Yb;function Vb(t){let e=t/nu;return Math.trunc(e)}i(Vb,"monthsToYears");var Tbe=Vb;function dt(t,e,r){let n=e-gn(t,r);return n<=0&&(n+=7),Ke(t,n,r)}i(dt,"nextDay");var Mbe=dt;function Gb(t,e){return dt(t,5,e)}i(Gb,"nextFriday");var Nbe=Gb;function Jb(t,e){return dt(t,1,e)}i(Jb,"nextMonday");var Lbe=Jb;function Qb(t,e){return dt(t,6,e)}i(Qb,"nextSaturday");var Hbe=Qb;function Kb(t,e){return dt(t,0,e)}i(Kb,"nextSunday");var qbe=Kb;function Xb(t,e){return dt(t,4,e)}i(Xb,"nextThursday");var Jbe=Xb;function Zb(t,e){return dt(t,2,e)}i(Zb,"nextTuesday");var Zbe=Zb;function e0(t,e){return dt(t,3,e)}i(e0,"nextWednesday");var n0e=e0;function r0(t,e){let r=i(()=>A(e?.in,NaN),"invalidDate"),n=e?.additionalDigits??2,o=NP(t),s;if(o.date){let c=AP(o.date,n);s=RP(c.restDateString,c.year)}if(!s||isNaN(+s))return r();let a=+s,l=0,u;if(o.time&&(l=FP(o.time),isNaN(l)))return r();if(o.timezone){if(u=LP(o.timezone),isNaN(u))return r()}else{let c=new Date(a+l),f=y(0,e?.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,e?.in)}i(r0,"parseISO");var Nc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},IP=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,_P=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,PP=/^([+-])(\d{2})(?::?(\d{2}))?$/;function NP(t){let e={},r=t.split(Nc.dateTimeDelimiter),n;if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],Nc.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Nc.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){let o=Nc.timezone.exec(n);o?(e.time=n.replace(o[1],""),e.timezone=o[1]):e.time=n}return e}i(NP,"splitDateString");function AP(t,e){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.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:t.slice((n[1]||n[2]).length)}}i(AP,"parseYear");function RP(t,e){if(e===null)return new Date(NaN);let r=t.match(IP);if(!r)return new Date(NaN);let n=!!r[4],o=Xs(r[1]),s=Xs(r[2])-1,a=Xs(r[3]),l=Xs(r[4]),u=Xs(r[5])-1;if(n)return WP(e,l,u)?BP(e,l,u):new Date(NaN);{let c=new Date(0);return!jP(e,s,a)||!HP(e,o)?new Date(NaN):(c.setUTCFullYear(e,s,Math.max(o,a)),c)}}i(RP,"parseDate");function Xs(t){return t?parseInt(t):1}i(Xs,"parseDateUnit");function FP(t){let e=t.match(_P);if(!e)return NaN;let r=jh(e[1]),n=jh(e[2]),o=jh(e[3]);return $P(r,n,o)?r*Ht+n*pt+o*1e3:NaN}i(FP,"parseTime");function jh(t){return t&&parseFloat(t.replace(",","."))||0}i(jh,"parseTimeUnit");function LP(t){if(t==="Z")return 0;let e=t.match(PP);if(!e)return 0;let r=e[1]==="+"?-1:1,n=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return UP(n,o)?r*(n*Ht+o*pt):NaN}i(LP,"parseTimezone");function BP(t,e,r){let n=new Date(0);n.setUTCFullYear(t,0,4);let o=n.getUTCDay()||7,s=(e-1)*7+r+1-o;return n.setUTCDate(n.getUTCDate()+s),n}i(BP,"dayOfISOWeekYear");var zP=[31,null,31,30,31,30,31,31,30,31,30,31];function t0(t){return t%400===0||t%4===0&&t%100!==0}i(t0,"isLeapYearIndex");function jP(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(zP[e]||(t0(t)?29:28))}i(jP,"validateDate");function HP(t,e){return e>=1&&e<=(t0(t)?366:365)}i(HP,"validateDayOfYearDate");function WP(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}i(WP,"validateWeekDate");function $P(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}i($P,"validateTime");function UP(t,e){return e>=0&&e<=59}i(UP,"validateTimezone");var u0e=r0;function n0(t,e){let r=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return r?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)),e?.in):y(NaN,e?.in)}i(n0,"parseJSON");var h0e=n0;function gt(t,e,r){let n=gn(t,r)-e;return n<=0&&(n+=7),yn(t,n,r)}i(gt,"previousDay");var y0e=gt;function i0(t,e){return gt(t,5,e)}i(i0,"previousFriday");var S0e=i0;function o0(t,e){return gt(t,1,e)}i(o0,"previousMonday");var D0e=o0;function s0(t,e){return gt(t,6,e)}i(s0,"previousSaturday");var I0e=s0;function a0(t,e){return gt(t,0,e)}i(a0,"previousSunday");var A0e=a0;function l0(t,e){return gt(t,4,e)}i(l0,"previousThursday");var B0e=l0;function u0(t,e){return gt(t,2,e)}i(u0,"previousTuesday");var W0e=u0;function c0(t,e){return gt(t,3,e)}i(c0,"previousWednesday");var Y0e=c0;function f0(t){return Math.trunc(t*ru)}i(f0,"quartersToMonths");var Q0e=f0;function p0(t){let e=t/iu;return Math.trunc(e)}i(p0,"quartersToYears");var eve=p0;function h0(t,e){let r=e?.nearestTo??1;if(r<1||r>12)return A(e?.in||t,NaN);let n=y(t,e?.in),o=n.getMinutes()/60,s=n.getSeconds()/60/60,a=n.getMilliseconds()/1e3/60/60,l=n.getHours()+o+s+a,u=e?.roundingMethod??"round",f=mt(u)(l/r)*r;return n.setHours(f,0,0,0),n}i(h0,"roundToNearestHours");var sve=h0;function m0(t,e){let r=e?.nearestTo??1;if(r<1||r>30)return A(t,NaN);let n=y(t,e?.in),o=n.getSeconds()/60,s=n.getMilliseconds()/1e3/60,a=n.getMinutes()+o+s,l=e?.roundingMethod??"round",c=mt(l)(a/r)*r;return n.setMinutes(c,0,0),n}i(m0,"roundToNearestMinutes");var pve=m0;function d0(t){let e=t/Xn;return Math.trunc(e)}i(d0,"secondsToHours");var gve=d0;function g0(t){return t*fo}i(g0,"secondsToMilliseconds");var bve=g0;function x0(t){let e=t/ho;return Math.trunc(e)}i(x0,"secondsToMinutes");var Tve=x0;function Po(t,e,r){let n=y(t,r?.in),o=n.getFullYear(),s=n.getDate(),a=A(r?.in||t,0);a.setFullYear(o,e,15),a.setHours(0,0,0,0);let l=_u(a);return n.setMonth(e,Math.min(s,l)),n}i(Po,"setMonth");var Ive=Po;function y0(t,e,r){let n=y(t,r?.in);return isNaN(+n)?A(r?.in||t,NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Po(n,e.month)),e.date!=null&&n.setDate(e.date),e.hours!=null&&n.setHours(e.hours),e.minutes!=null&&n.setMinutes(e.minutes),e.seconds!=null&&n.setSeconds(e.seconds),e.milliseconds!=null&&n.setMilliseconds(e.milliseconds),n)}i(y0,"set");var Fve=y0;function w0(t,e,r){let n=y(t,r?.in);return n.setDate(e),n}i(w0,"setDate");var jve=w0;function b0(t,e,r){let n=y(t,r?.in);return n.setMonth(0),n.setDate(e),n}i(b0,"setDayOfYear");var Uve=b0;function v0(t){let e={},r=Ee();for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]===void 0?delete e[n]:e[n]=t[n]);Uy(e)}i(v0,"setDefaultOptions");var Gve=v0;function S0(t,e,r){let n=y(t,r?.in);return n.setHours(e),n}i(S0,"setHours");var Xve=S0;function k0(t,e,r){let n=y(t,r?.in);return n.setMilliseconds(e),n}i(k0,"setMilliseconds");var rSe=k0;function T0(t,e,r){let n=y(t,r?.in);return n.setMinutes(e),n}i(T0,"setMinutes");var sSe=T0;function E0(t,e,r){let n=y(t,r?.in),o=Math.trunc(n.getMonth()/3)+1,s=e-o;return Po(n,n.getMonth()+s*3)}i(E0,"setQuarter");var fSe=E0;function D0(t,e,r){let n=y(t,r?.in);return n.setSeconds(e),n}i(D0,"setSeconds");var dSe=D0;function C0(t,e,r){let n=Ee(),o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=rt(y(t,r?.in),ni(t,r),r),a=A(r?.in||t,0);a.setFullYear(e,0,o),a.setHours(0,0,0,0);let l=ni(a,r);return l.setDate(l.getDate()+s),l}i(C0,"setWeekYear");var kSe=C0;function O0(t,e,r){let n=y(t,r?.in);return isNaN(+n)?A(r?.in||t,NaN):(n.setFullYear(e),n)}i(O0,"setYear");var OSe=O0;function M0(t,e){let r=y(t,e?.in),n=r.getFullYear(),o=Math.floor(n/10)*10;return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r}i(M0,"startOfDecade");var PSe=M0;function I0(t){return Or(Date.now(),t)}i(I0,"startOfToday");var FSe=I0;function _0(t){let e=he(t?.in),r=e.getFullYear(),n=e.getMonth(),o=e.getDate(),s=A(t?.in,0);return s.setFullYear(r,n,o+1),s.setHours(0,0,0,0),s}i(_0,"startOfTomorrow");var HSe=_0;function P0(t){let e=he(t?.in),r=e.getFullYear(),n=e.getMonth(),o=e.getDate(),s=he(t?.in);return s.setFullYear(r,n,o-1),s.setHours(0,0,0,0),s}i(P0,"startOfYesterday");var qSe=P0;function Ac(t,e,r){return Dr(t,-e,r)}i(Ac,"subMonths");var JSe=Ac;function N0(t,e,r){let{years:n=0,months:o=0,weeks:s=0,days:a=0,hours:l=0,minutes:u=0,seconds:c=0}=e,f=Ac(t,o+n*12,r),p=yn(f,a+s*7,r),h=u+l*60,d=(c+h*60)*1e3;return A(r?.in||t,+p-d)}i(N0,"sub");var tke=N0;function A0(t,e,r){return au(t,-e,r)}i(A0,"subBusinessDays");var oke=A0;function R0(t,e,r){return lu(t,-e,r)}i(R0,"subHours");var uke=R0;function F0(t,e,r){return un(t,-e,r)}i(F0,"subMilliseconds");var hke=F0;function L0(t,e,r){return mo(t,-e,r)}i(L0,"subMinutes");var xke=L0;function B0(t,e,r){return go(t,-e,r)}i(B0,"subQuarters");var vke=B0;function z0(t,e,r){return fu(t,-e,r)}i(z0,"subSeconds");var Eke=z0;function j0(t,e,r){return cn(t,-e,r)}i(j0,"subWeeks");var Mke=j0;function H0(t,e,r){return pu(t,-e,r)}i(H0,"subYears");var Nke=H0;function W0(t){return Math.trunc(t*7)}i(W0,"weeksToDays");var Lke=W0;function $0(t){return Math.trunc(t*365.2425)}i($0,"yearsToDays");var Hke=$0;function U0(t){return Math.trunc(t*nu)}i(U0,"yearsToMonths");var qke=U0;function q0(t){return Math.trunc(t*iu)}i(q0,"yearsToQuarters");var Jke=q0;var G0=i(t=>Number.isFinite(t)?t:0,"toZeroIfInfinity");function qP(t){return{days:Math.trunc(t/864e5),hours:Math.trunc(t/36e5%24),minutes:Math.trunc(t/6e4%60),seconds:Math.trunc(t/1e3%60),milliseconds:Math.trunc(t%1e3),microseconds:Math.trunc(G0(t*1e3)%1e3),nanoseconds:Math.trunc(G0(t*1e6)%1e3)}}i(qP,"parseNumber");function YP(t){return{days:t/86400000n,hours:t/3600000n%24n,minutes:t/60000n%60n,seconds:t/1000n%60n,milliseconds:t%1000n,microseconds:0n,nanoseconds:0n}}i(YP,"parseBigint");function qh(t){switch(typeof t){case"number":{if(Number.isFinite(t))return qP(t);break}case"bigint":return YP(t)}throw new TypeError("Expected a finite number or bigint")}i(qh,"parseMilliseconds");var VP=i(t=>t===0||t===0n,"isZero"),GP=i((t,e)=>e===1||e===1n?t:`${t}s`,"pluralize"),JP=1e-7,QP=24n*60n*60n*1000n;function ea(t,e){let r=typeof t=="bigint";if(!r&&!Number.isFinite(t))throw new TypeError("Expected a finite number or bigint");e={...e};let n=t<0?"-":"";t=t<0?-t:t,e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.unitCount=1,e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let o=[],s=i((f,p)=>{let h=Math.floor(f*10**p+JP);return(Math.round(h)/10**p).toFixed(p)},"floorDecimals"),a=i((f,p,h,m)=>{if(!((o.length===0||!e.colonNotation)&&VP(f)&&!(e.colonNotation&&h==="m"))){if(m??=String(f),e.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+=e.verbose?" "+GP(p,f):h;o.push(m)}},"add"),l=qh(t),u=BigInt(l.days);if(e.hideYearAndDays?a(BigInt(u)*24n+BigInt(l.hours),"hour","h"):(e.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"),!e.hideSeconds)if(e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3&&!e.subSecondsAsDecimals){let f=Number(l.seconds),p=Number(l.milliseconds),h=Number(l.microseconds),m=Number(l.nanoseconds);if(a(f,"second","s"),e.formatSubMilliseconds)a(p,"millisecond","ms"),a(h,"microsecond","\xB5s"),a(m,"nanosecond","ns");else{let d=p+h/1e3+m/1e6,g=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,x=d>=1?Math.round(d):Math.ceil(d),w=g?d.toFixed(g):x;a(Number.parseFloat(w),"millisecond","ms",w)}}else{let f=(r?Number(t%QP):t)/1e3%60,p=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,h=s(f,p),m=e.keepDecimalsOnWholeSeconds?h:h.replace(/\.0+$/,"");a(Number.parseFloat(m),"second","s",m)}if(o.length===0)return n+"0"+(e.verbose?" milliseconds":"ms");let c=e.colonNotation?":":" ";return typeof e.unitCount=="number"&&(o=o.slice(0,Math.max(e.unitCount,1))),n+o.join(c)}i(ea,"prettyMilliseconds");var oi=jt(Y0(),1),J0=jt(V0(),1);oi.default.extend(J0.default);var ta=class{static{i(this,"CronJob")}constructor(e,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=new $s.Cron(r)}checkExecution(){if(this.status==="stopped")return this.nextExecutionUnix;if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let e=this.jobFunction(this.nextExecutionUnix);e instanceof Promise&&e.catch(r=>console.log(r)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()}start(){this.status="started"}stop(){this.status="stopped"}};var Yh=class{static{i(this,"CronManager")}constructor(){this.status="stopped",this.cronjobs=new xt.ObjectMap,this.cycleWakeDeferred=null}wakeCycle(){this.cycleWakeDeferred&&this.cycleWakeDeferred.status==="pending"&&this.cycleWakeDeferred.resolve()}addCronjob(e,r){let n=new ta(this,e,r);return this.cronjobs.add(n),this.status==="started"&&(n.start(),this.wakeCycle()),n}removeCronjob(e){e.stop(),this.cronjobs.remove(e),this.status==="started"&&this.wakeCycle()}start(){if(this.status!=="started"){this.status="started";for(let e of this.cronjobs.getArray())e.start();this.runCronCycle()}}async runCronCycle(){for(;this.status==="started";){this.cycleWakeDeferred=new re.Deferred;let e=1/0;for(let r of this.cronjobs.getArray()){r.checkExecution();let n=r.getTimeToNextExecution();n<e&&(e=n)}if(e<1/0&&e>0)this.executionTimeout=new ge.Timeout(e),await Promise.race([this.executionTimeout.promise,this.cycleWakeDeferred.promise]),this.executionTimeout.cancel();else{if(e<=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 e of this.cronjobs.getArray())e.stop()}};var wn={years:i((t=1)=>t*3154e7,"years"),months:i((t=1)=>t*2628e6,"months"),weeks:i((t=1)=>t*6048e5,"weeks"),days:i((t=1)=>t*864e5,"days"),hours:i((t=1)=>t*36e5,"hours"),minutes:i((t=1)=>t*6e4,"minutes"),seconds:i((t=1)=>t*1e3,"seconds")},Vh=i(t=>{let e=0,r=i(n=>{e=e+n},"addMilliSeconds");return t.years&&r(wn.years(t.years)),t.months&&r(wn.months(t.months)),t.weeks&&r(wn.weeks(t.weeks)),t.days&&r(wn.days(t.days)),t.hours&&r(wn.hours(t.hours)),t.minutes&&r(wn.minutes(t.minutes)),t.seconds&&r(wn.seconds(t.seconds)),e},"getMilliSecondsFromUnits"),KP=i(t=>ea(t),"getMilliSecondsAsHumanReadableString"),XP=i(t=>Zs.formatDistanceToNow(new Date(t)),"getMilliSecondsAsHumanReadableAgoTime");var Gh=class t extends Date{static{i(this,"ExtendedDate")}static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let r=/(.*)\.(.*)\.(.*)/.exec(e),o=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new t(o)}static fromHyphedDate(e){let r=new Date(e).getTime();return new t(r)}static fromEuropeanDateAndTime(e,r="12:00:00",n="Europe/Berlin"){let o=/(.*)\.(.*)\.(.*)/.exec(e),s=i(c=>`0${c}`.slice(-2),"sliceDate"),a=`${o[3]}-${s(o[2])}-${s(o[1])}T${r}`,u=oi.default(a).toDate().getTime();return new t(u)}constructor(e=Date.now()){super(e)}exportToEuropeanDate(){let e=this.exportToUnits();return`${e.dayString}.${e.monthString}.${e.yearString}`}exportToHyphedSortableDate(){let e=this.exportToUnits();return`${e.yearString}-${e.monthString}-${e.dayString}`}exportToUnits(){let e=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return{year:this.getFullYear(),yearString:`${this.getFullYear()}`,month:this.getMonth()+1,monthString:("0"+(this.getMonth()+1)).slice(-2),monthName:e[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(e){return oi.default(this.getTime()).format(e)}isToday(){return oi.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=Vh(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Jh=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 Qh=class{static{i(this,"Interval")}constructor(e){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=e}start(){this.status="started";let e=new Date;this.statusAuthorization=e,i(async()=>{for(;this.status==="started"&&this.statusAuthorization===e;)await ge.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()},"runInterval")()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(e){this.intervalJobs.push(e)}executeIntervalJobs(){for(let e of this.intervalJobs)e()}};var Ao=class t{static{i(this,"TimeStamp")}static fromMilliSeconds(e){return new t(e)}static fromTimeStamp(e){let r=new t;return r.change=r.milliSeconds-e.milliSeconds,r}constructor(e){this.change=null,e?typeof e=="number"&&(this.date=new Date(e)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,r=0){return this.milliSeconds<e.milliSeconds-r}isOlderThan(e,r=0){return this.milliSeconds+r<e.milliSeconds}isYoungerThanOtherTimeStamp(e,r=0){return this.milliSeconds>e.milliSeconds+r}isYoungerThanMilliSeconds(e){let n=new t().epochtime-e,o=new t(n);return this.isYoungerThanOtherTimeStamp(o)}};var Kh=class{static{i(this,"Timer")}get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=re.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new Ao;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Ao.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 Fc=jt(sv(),1);var Zh=class{static{i(this,"AsyncExecutionStack")}executionSlots=[];isProcessing=!1;nonExclusiveMaxConcurrency=1/0;nonExclusiveCurrentCount=0;nonExclusivePendingQueue=[];async getExclusiveExecutionSlot(e,r){let n=re.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(e,r){let n=re.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}setNonExclusiveMaxConcurrency(e){if(!Number.isFinite(e)||e<1)throw new Error("nonExclusiveMaxConcurrency must be a finite number >= 1");this.nonExclusiveMaxConcurrency=e}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 e=this.executionSlots[0];if(e.mode==="exclusive")await this.executeExclusiveSlot(e),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(e){try{if(e.timeout){let r=new ge.Timeout(e.timeout);try{let n=await Promise.race([e.funcToExecute(),r.promise.then(()=>{throw new Error("Timeout reached")})]);r.cancel(),e.executionDeferred.resolve(n)}catch(n){throw r.cancel(),n}}else{let r=await e.funcToExecute();e.executionDeferred.resolve(r)}}catch(r){e.executionDeferred.reject(r)}}async executeNonExclusiveSlots(e){let r=e.map(async n=>{await this.waitForNonExclusiveSlot();try{if(n.timeout){let o=new ge.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(e=>{this.nonExclusivePendingQueue.push(()=>{this.nonExclusiveCurrentCount++,e()})})}releaseNonExclusiveSlot(){this.nonExclusiveCurrentCount--;let e=this.nonExclusivePendingQueue.shift();e&&e()}};var em=class{static{i(this,"BackpressuredArray")}data;highWaterMark;hasSpace=new Me.rxjs.Subject;itemsAvailable=new Me.rxjs.Subject;isDestroyed=!1;constructor(e=16){this.data=[],this.highWaterMark=e}get length(){return this.data.length}push(e){this.data.push(e),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}pushMany(e){for(let r of e)this.push(r);return this.checkSpaceAvailable()}shift(){let e=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),e}peek(){return this.data[0]}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(e=>{if(this.checkSpaceAvailable()||this.isDestroyed)e();else{let r=this.hasSpace.subscribe({next:i(()=>{r.unsubscribe(),e()},"next"),complete:i(()=>{e()},"complete")})}})}waitForItems(){return new Promise(e=>{if(this.data.length>0||this.isDestroyed)e();else{let r=this.itemsAvailable.subscribe({next:i(()=>{r.unsubscribe(),e()},"next"),complete:i(()=>{e()},"complete")})}})}[Symbol.iterator](){return this.data[Symbol.iterator]()}destroy(){this.isDestroyed=!0,this.hasSpace.complete(),this.itemsAvailable.complete()}};var ai=class t{static{i(this,"FastMap")}mapObject=new Map;isUniqueKey(e){return!this.mapObject.has(e)}has(e){return this.mapObject.has(e)}get size(){return this.mapObject.size}addToMap(e,r,n){return this.isUniqueKey(e)||n&&n.force?(this.mapObject.set(e,r),!0):!1}getByKey(e){return this.mapObject.get(e)}removeFromMap(e){let r=this.mapObject.get(e);return this.mapObject.delete(e),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(e){let r=new t;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of e.getKeys())r.addToMap(n,e.getByKey(n),{force:!0});return r}addAllFromOther(e){for(let r of e.getKeys())this.addToMap(r,e.getByKey(r),{force:!0})}async find(e){for(let r of this.getKeys()){let n=this.getByKey(r);if(await e(n))return n}}[Symbol.iterator](){return this.mapObject.entries()}};var av=i((t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),"uni"),Ur=class t{static{i(this,"ObjectMap")}fastMap=new ai;reverseMap=new Map;eventSubject=new Me.rxjs.Subject;constructor(){}get length(){return this.fastMap.size}addMappedUnique(e,r){this.fastMap.addToMap(e,r),this.reverseMap.set(r,e)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let r=this.fastMap.removeFromMap(e);return r!==void 0&&(this.reverseMap.delete(r),this.eventSubject.next({operation:"remove",payload:r})),r}add(e){let r=this.reverseMap.get(e);if(r!==void 0)return r;let n=av("key");return this.addMappedUnique(n,e),this.eventSubject.next({operation:"add",payload:e}),n}addArray(e){for(let r of e)this.add(r)}checkForObject(e){return this.reverseMap.has(e)}getKeyForObject(e){return this.reverseMap.get(e)??null}async find(e){return this.fastMap.find(e)}findSync(e){for(let r of this.fastMap.getKeys())if(e(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(e){let r=await this.find(e);return r&&this.remove(r),r}findOneAndRemoveSync(e){let r=this.findSync(e);return r&&this.remove(r),r}async forEach(e){for(let r of this.fastMap.getKeys())await e(this.fastMap.getByKey(r))}getOneAndRemove(){let e=this.fastMap.getKeys();if(e.length===0)return null;{let r=e[0],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(e){let r=this.reverseMap.get(e);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 e=this.fastMap.getKeys();for(let r of e){let n=this.fastMap.removeFromMap(r);this.reverseMap.delete(n),this.eventSubject.next({operation:"remove",payload:n})}}concat(e){let r=new t;r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(e.fastMap);for(let n of r.fastMap.getKeys())r.reverseMap.set(r.fastMap.getByKey(n),n);return r}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap);for(let r of e.fastMap.getKeys())this.reverseMap.set(e.fastMap.getByKey(r),r)}map(e){return this.getArray().map(e)}filter(e){return this.getArray().filter(e)}reduce(e,r){return this.getArray().reduce(e,r)}[Symbol.iterator](){return this.getArray()[Symbol.iterator]()}destroy(){this.wipe(),this.reverseMap.clear(),this.eventSubject.complete()}};var ra=class{static{i(this,"Interest")}options;interestMapRef;originalInterest;comparisonFunc;destructionTimer=new si.Timer(1e4);isFullfilled=!1;isDestroyed=!1;fullfillmentStore=[];markLostTimeout=null;get comparisonString(){return this.comparisonFunc(this.originalInterest)}interestDeferred=new re.Deferred;interestFullfilled=this.interestDeferred.promise;fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e),this.destroy()}constructor(e,r,n,o){this.interestMapRef=e,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.isDestroyed||this.destroy()}),this.options?.markLostAfterDefault&&(this.markLostTimeout=new ge.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 tm=class{static{i(this,"InterestMap")}options;interestObjectMap=new Ur;interestsByComparisonString=new Map;comparisonStringsByInterest=new WeakMap;comparisonFunc;constructor(e,r={}){this.comparisonFunc=e,this.options=r}async addInterest(e,r){let n=this.comparisonFunc(e),o,s=this.interestsByComparisonString.get(n);return s?(o=s,o.renew()):(o=new ra(this,e,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),this.interestObjectMap.add(o),this.comparisonStringsByInterest.set(o,n),this.interestsByComparisonString.set(n,o)),this.interestObservable.push(o),o}interestObservable=new Me.ObservableIntake;removeInterest(e){if(!this.comparisonStringsByInterest.has(e))return;let r=this.comparisonStringsByInterest.get(e);this.interestObjectMap.remove(e),this.comparisonStringsByInterest.delete(e),this.interestsByComparisonString.get(r)===e&&this.interestsByComparisonString.delete(r)}checkInterest(e){let r=this.comparisonFunc(e);return this.checkInterestByString(r)}checkInterestByString(e){return this.interestsByComparisonString.has(e)}informLostInterest(e){let r=this.findInterest(e);r&&r.markLost()}findInterest(e){let r=this.comparisonFunc(e);return this.interestsByComparisonString.get(r)??null}destroy(){let e=this.interestObjectMap.getArray();for(let r of e)r.destroy();this.interestObjectMap.wipe(),this.interestsByComparisonString.clear(),this.interestObservable.signalComplete()}};var rm=class{static{i(this,"LimitedArray")}array=[];arrayLimit;constructor(e){this.arrayLimit=e}get length(){return this.array.length}addOne(e){this.array.unshift(e),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(e){for(let r of e)this.addOne(r)}setLimit(e){this.arrayLimit=e,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(this.array.length===0)return 0;if(typeof this.array[0]=="number"){let e=0;for(let r of this.array)e=e+r;return e/this.array.length}else return null}remove(e){let r=this.array.indexOf(e);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 nm=class{static{i(this,"LoopTracker")}referenceObjectMap=new Ur;constructor(){}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}reset(){this.referenceObjectMap.wipe()}destroy(){this.referenceObjectMap.destroy()}};var na=class{static{i(this,"Stringmap")}_stringArray=[];_triggerUntilTrueFunctionArray=[];constructor(){}addString(e){this._stringArray.push(e),this.notifyTrigger()}addStringArray(e){for(let r of e)this.addString(r)}removeString(e){this._stringArray=this._stringArray.filter(r=>r!==e),this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(e){return this._stringArray.indexOf(e)!==-1}checkMinimatch(e){let r=new Ps.SmartMatch(e),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let e=[];for(let r of this._stringArray)e.push(r);return e}registerUntilTrue(e,r){let n=re.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=e(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=e}destroy(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}};var ia=class{static{i(this,"TimedAggregtor")}options;storageArray=[];isStopped=!1;constructor(e){this.options=e}aggregationTimer;checkAggregationStatus(){if(this.isStopped)return;let e=i(()=>{this.aggregationTimer=new si.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=[],e(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()},"addAggregationTimer");this.aggregationTimer||e()}add(e){this.isStopped||(this.storageArray.push(e),this.checkAggregationStatus())}stop(e=!1){if(this.isStopped=!0,this.aggregationTimer&&(this.aggregationTimer.reset(),this.aggregationTimer=null),e&&this.storageArray.length>0){let r=this.storageArray;this.storageArray=[],this.options.functionForAggregation(r)}else this.storageArray=[]}restart(){this.isStopped=!1}};var im=class{static{i(this,"Tree")}symbolTree;constructor(){this.symbolTree=new Fc.default}initialize(e){return this.symbolTree.initialize(e)}hasChildren(e){return this.symbolTree.hasChildren(e)}firstChild(e){return this.symbolTree.firstChild(e)}lastChild(e){return this.symbolTree.lastChild(e)}previousSibling(e){return this.symbolTree.previousSibling(e)}nextSibling(e){return this.symbolTree.nextSibling(e)}parent(e){return this.symbolTree.parent(e)}lastInclusiveDescendant(e){return this.symbolTree.lastInclusiveDescendant(e)}preceding(e,r){return this.symbolTree.preceding(e,r)}following(e,r){return this.symbolTree.following(e,r)}childrenToArray(e,r){return this.symbolTree.childrenToArray(e,r)}ancestorsToArray(e,r){return this.symbolTree.ancestorsToArray(e,r)}treeToArray(e,r){return this.symbolTree.treeToArray(e,r)}childrenIterator(e,r){return this.symbolTree.childrenIterator(e,r)}previousSiblingsIterator(e){return this.symbolTree.previousSiblingsIterator(e)}nextSiblingsIterator(e){return this.symbolTree.nextSiblingsIterator(e)}ancestorsIterator(e){return this.symbolTree.ancestorsIterator(e)}treeIterator(e,r){return this.symbolTree.treeIterator(e,r)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,r){return this.symbolTree.compareTreePosition(e,r)}remove(e){return this.symbolTree.remove(e)}insertBefore(e,r){return this.symbolTree.insertBefore(e,r)}insertAfter(e,r){return this.symbolTree.insertAfter(e,r)}prependChild(e,r){return this.symbolTree.prependChild(e,r)}appendChild(e,r){return this.symbolTree.appendChild(e,r)}toJsonWithHierachy(e){let r=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(e)}fromJsonWithHierachy(e,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(e)}};var li={};ae(li,{base64ToUint8Array:()=>kN,ensurePureUint8Array:()=>DN,isBufferLike:()=>EN,isUint8Array:()=>TN,uInt8ArrayExtras:()=>vN,uInt8ArrayToBase64:()=>SN});var Tn={};ae(Tn,{areUint8ArraysEqual:()=>lN,assertUint8Array:()=>kn,assertUint8ArrayOrArrayBuffer:()=>pv,base64ToString:()=>mN,base64ToUint8Array:()=>gv,compareUint8Arrays:()=>uN,concatUint8Arrays:()=>aN,getUintBE:()=>yN,hexToUint8Array:()=>xN,includes:()=>wN,indexOf:()=>xv,isUint8Array:()=>om,stringToBase64:()=>hN,stringToUint8Array:()=>mv,toUint8Array:()=>sN,uint8ArrayToBase64:()=>dv,uint8ArrayToHex:()=>gN,uint8ArrayToString:()=>hv});var tN=Object.prototype.toString,rN="[object Uint8Array]",nN="[object ArrayBuffer]";function lv(t,e,r){return t?t.constructor===e?!0:tN.call(t)===r:!1}i(lv,"isType");function om(t){return lv(t,Uint8Array,rN)}i(om,"isUint8Array");function iN(t){return lv(t,ArrayBuffer,nN)}i(iN,"isArrayBuffer");function oN(t){return om(t)||iN(t)}i(oN,"isUint8ArrayOrArrayBuffer");function kn(t){if(!om(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}i(kn,"assertUint8Array");function pv(t){if(!oN(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}i(pv,"assertUint8ArrayOrArrayBuffer");function sN(t){if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new TypeError(`Unsupported value, got \`${typeof t}\`.`)}i(sN,"toUint8Array");function aN(t,e){if(t.length===0)return new Uint8Array(0);e??=t.reduce((o,s)=>o+s.length,0);let r=new Uint8Array(e),n=0;for(let o of t)kn(o),r.set(o,n),n+=o.length;return r}i(aN,"concatUint8Arrays");function lN(t,e){if(kn(t),kn(e),t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}i(lN,"areUint8ArraysEqual");function uN(t,e){kn(t),kn(e);let r=Math.min(t.length,e.length);for(let n=0;n<r;n++){let o=t[n]-e[n];if(o!==0)return Math.sign(o)}return Math.sign(t.length-e.length)}i(uN,"compareUint8Arrays");var uv={utf8:new globalThis.TextDecoder("utf8")};function hv(t,e="utf8"){return pv(t),uv[e]??=new globalThis.TextDecoder(e),uv[e].decode(t)}i(hv,"uint8ArrayToString");function oa(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}i(oa,"assertString");var cN=new globalThis.TextEncoder;function mv(t){return oa(t),cN.encode(t)}i(mv,"stringToUint8Array");function fN(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}i(fN,"base64ToBase64Url");function pN(t){let e=t.replaceAll("-","+").replaceAll("_","/"),r=(4-e.length%4)%4;return e+"=".repeat(r)}i(pN,"base64UrlToBase64");var cv=65535;function dv(t,{urlSafe:e=!1}={}){kn(t);let r="";for(let n=0;n<t.length;n+=cv){let o=t.subarray(n,n+cv);r+=globalThis.btoa(String.fromCodePoint.apply(void 0,o))}return e?fN(r):r}i(dv,"uint8ArrayToBase64");function gv(t){return oa(t),Uint8Array.from(globalThis.atob(pN(t)),e=>e.codePointAt(0))}i(gv,"base64ToUint8Array");function hN(t,{urlSafe:e=!1}={}){return oa(t),dv(mv(t),{urlSafe:e})}i(hN,"stringToBase64");function mN(t){return oa(t),hv(gv(t))}i(mN,"base64ToString");var dN=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function gN(t){kn(t);let e="";for(let r=0;r<t.length;r++)e+=dN[t[r]];return e}i(gN,"uint8ArrayToHex");var fv={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 xN(t){if(oa(t),t.length%2!==0)throw new Error("Invalid Hex string length.");let e=t.length/2,r=new Uint8Array(e);for(let n=0;n<e;n++){let o=fv[t[n*2]],s=fv[t[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(xN,"hexToUint8Array");function yN(t){let{byteLength:e}=t;if(e===6)return t.getUint16(0)*2**32+t.getUint32(2);if(e===5)return t.getUint8(0)*2**32+t.getUint32(1);if(e===4)return t.getUint32(0);if(e===3)return t.getUint8(0)*2**16+t.getUint16(1);if(e===2)return t.getUint16(0);if(e===1)return t.getUint8(0)}i(yN,"getUintBE");function xv(t,e){let r=t.length,n=e.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(t[s+l]!==e[l]){a=!1;break}if(a)return s}return-1}i(xv,"indexOf");function wN(t,e){return xv(t,e)!==-1}i(wN,"includes");var vN=Tn;function SN(t){return Tn.uint8ArrayToBase64(t)}i(SN,"uInt8ArrayToBase64");function kN(t){return Tn.base64ToUint8Array(t)}i(kN,"base64ToUint8Array");var TN=i(t=>Tn.isUint8Array(t),"isUint8Array");function EN(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}i(EN,"isBufferLike");function DN(t){let e=new Uint8Array(t.length);return e.set(t),e}i(DN,"ensurePureUint8Array");var ua={};ae(ua,{Guard:()=>sa,GuardError:()=>aa,GuardSet:()=>la,passGuardsOrReject:()=>CN});var sa=class{static{i(this,"Guard")}constructor(e,r){this.guardFunction=e,this.options=r||{}}async exec(e){return await this.guardFunction(e)}async getFailedHint(e){return await this.exec(e)?null:this.options.failedHint||null}};var aa=class extends Error{static{i(this,"GuardError")}constructor(e){super(e),this.name="GuardError"}};var la=class extends sa{static{i(this,"GuardSet")}constructor(e=[]){super(async r=>this.allGuardsPass(r)),this.guards=e}async execAllWithData(e,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let s of this.guards){let a=s.exec(e);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(e,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(e,r)).every(o=>o)}async anyGuardsPass(e){return(await this.execAllWithData(e,{mode:"parallel",stopOnFail:!1})).some(n=>n)}async getFailedHint(e){for(let r of this.guards){let n=await r.getFailedHint(e);if(n)return n}return null}};var CN=i(async(t,e)=>{let r=new la(e);if(!await r.allGuardsPass(t)){let o=await r.getFailedHint(t);throw new aa(`Guards failed:
33
33
  ${o}
34
- `)}},"passGuardsOrReject");var Dn={};ae(Dn,{CacheManager:()=>Wo,CacheStore:()=>zo,InterceptorManager:()=>Fo,RequestDeduplicator:()=>Uo,RetryManager:()=>$o,WebrequestClient:()=>ci,createConditionalHeaders:()=>Kc,defaultCacheMaxEntries:()=>pa,extractCacheMetadata:()=>_r,headersToObject:()=>Xc,isFresh:()=>Qc,isWebrequestTimeoutError:()=>ha,objectToHeaders:()=>Rv,requiresRevalidation:()=>jo,webrequest:()=>it});var Fo=class{static{i(this,"InterceptorManager")}constructor(){this.requestInterceptors=[],this.responseInterceptors=[],this.errorInterceptors=[]}addRequestInterceptor(e){this.requestInterceptors.push(e)}addResponseInterceptor(e){this.responseInterceptors.push(e)}addErrorInterceptor(e){this.errorInterceptors.push(e)}removeRequestInterceptor(e){let r=this.requestInterceptors.indexOf(e);r>-1&&this.requestInterceptors.splice(r,1)}removeResponseInterceptor(e){let r=this.responseInterceptors.indexOf(e);r>-1&&this.responseInterceptors.splice(r,1)}removeErrorInterceptor(e){let r=this.errorInterceptors.indexOf(e);r>-1&&this.errorInterceptors.splice(r,1)}clearAll(){this.requestInterceptors=[],this.responseInterceptors=[],this.errorInterceptors=[]}async processRequest(e){let r=e;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(e){let r=e;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(e){let r=e;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 qr={};ae(qr,{Smartenv:()=>sm});var sm=class{static{i(this,"Smartenv")}constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e,r){if(!this.isNode&&!this.isDeno&&!this.isBun){console.error(`You tried to load a server module in a wrong context: ${e}. This does not throw.`);return}let n=await new Function(`return import('${e}')`)();return r&&await r(n),n}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let n=re.defer(),o=globalThis;if(o.importScripts)o.importScripts(e),n.resolve();else{let s=document.createElement("script");s.onload=()=>{n.resolve()},s.src=e,document.head.appendChild(s)}return await n.promise,r()}get runtimeEnv(){let e=globalThis;return typeof e.Deno<"u"&&typeof e.Deno.version<"u"?"deno":typeof e.Bun<"u"&&typeof e.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":"undefined"}get bunVersion(){return this.isBun?globalThis.Bun?.version??"undefined":"undefined"}async getSafeModuleFor(e,r,n){let o;if(Array.isArray(e)?o=e.flatMap(s=>s==="server"?["node","deno","bun"]:[s]):e==="server"?o=["node","deno","bun"]:o=[e],!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||this.isDeno||this.isBun?(await this.getSafeNodeModule(this.isDeno?"node:os":"os"))?.platform()==="darwin":!1}async isWindowsAsync(){return this.isNode||this.isDeno||this.isBun?(await this.getSafeNodeModule(this.isDeno?"node:os":"os"))?.platform()==="win32":!1}async isLinuxAsync(){return this.isNode||this.isDeno||this.isBun?(await this.getSafeNodeModule(this.isDeno?"node:os":"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 Dt={};ae(Dt,{Smartjson:()=>dm,deepEqualJsonLStrings:()=>ZN,deepEqualObjects:()=>Mv,foldDec:()=>XN,parse:()=>Yc,parseBase64:()=>KN,parseJsonL:()=>mm,stableOneWayStringify:()=>GN,stringify:()=>ui,stringifyBase64:()=>QN,stringifyJsonL:()=>VN,stringifyPretty:()=>JN});var Et={};ae(Et,{Base64:()=>Hc,Domain:()=>$c,GitRepo:()=>Uc,base64:()=>Lo,create:()=>Lc,docker:()=>Bc,indent:()=>zc,normalize:()=>jc,type:()=>Wc});var Lc={};ae(Lc,{createCryptoRandomString:()=>PN,createRandomString:()=>_N});var am=jt(oh(),1);var MN=i((t,e)=>{if(typeof globalThis<"u"&&globalThis.crypto&&globalThis.crypto.getRandomValues){let r=e-t,n=new Uint32Array(1);return globalThis.crypto.getRandomValues(n),t+n[0]%r}else return Math.floor(Math.random()*(e-t))+t},"getRandomInt"),IN=i((t,e,r)=>{let n={A:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",a:"abcdefghijklmnopqrstuvwxyz",0:"0123456789","!":"!@#$%^&*()_+-=[]{}|;:,.<>?","*":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=[]{}|;:,.<>?"},o=t;e&&e>t.length?o=t.repeat(Math.ceil(e/t.length)).slice(0,e):e&&(o=t.slice(0,e));let s="";for(let a of o)if(n[a]){let l=n[a],u=MN(0,l.length);s+=l[u]}else s+=a;return s},"customRandomatic"),_N=i((t,e,r)=>IN(t,e,r),"createRandomString"),PN=i(()=>am.uni(),"createCryptoRandomString");var Bc={};ae(Bc,{makeEnvObject:()=>NN});var NN=i(function(t){let e={},r=/(.*)=(.*)/;if(typeof t<"u")for(let n in t){let o=r.exec(t[n]);e[o[1]]=o[2]}return e},"makeEnvObject");var zc={};ae(zc,{indent:()=>RN,indentWithPrefix:()=>FN,normalize:()=>LN});var lm=i(t=>{let e=t.split(`
35
- `);return AN(e)},"splitStringAtLineBreak"),um=i(t=>{let e="";for(let r of t)e=e+r+`
36
- `;return e},"joinStringWithLineBreaks"),AN=i(t=>{let e=/^[\s]*$/;return e.test(t[0])&&t.shift(),e.test(t[t.length-1])&&t.pop(),t},"cleanStringArray"),RN=i((t,e)=>{let r=lm(t);for(let o of r)o=" ".repeat(e)+o;return um(r)},"indent"),FN=i((t,e)=>{let r,n=lm(t),o=[];for(let s of n)o.push(e+s);return r=um(o),r},"indentWithPrefix"),LN=i(t=>{let e,r=lm(t),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 e=um(a),e},"normalize");var jc={};ae(jc,{replaceAll:()=>yv,standard:()=>zN});var yv=i((t,e,r)=>t.replace(new RegExp(e,"g"),r),"replaceAll"),BN=i(t=>{let e=t.split(`
34
+ `)}},"passGuardsOrReject");var Dn={};ae(Dn,{CacheManager:()=>Wo,CacheStore:()=>zo,InterceptorManager:()=>Fo,RequestDeduplicator:()=>Uo,RetryManager:()=>$o,WebrequestClient:()=>ci,createConditionalHeaders:()=>Kc,defaultCacheMaxEntries:()=>pa,extractCacheMetadata:()=>Pr,headersToObject:()=>Xc,isFresh:()=>Qc,isWebrequestTimeoutError:()=>ha,objectToHeaders:()=>Rv,requiresRevalidation:()=>jo,webrequest:()=>it});var Fo=class{static{i(this,"InterceptorManager")}constructor(){this.requestInterceptors=[],this.responseInterceptors=[],this.errorInterceptors=[]}addRequestInterceptor(e){this.requestInterceptors.push(e)}addResponseInterceptor(e){this.responseInterceptors.push(e)}addErrorInterceptor(e){this.errorInterceptors.push(e)}removeRequestInterceptor(e){let r=this.requestInterceptors.indexOf(e);r>-1&&this.requestInterceptors.splice(r,1)}removeResponseInterceptor(e){let r=this.responseInterceptors.indexOf(e);r>-1&&this.responseInterceptors.splice(r,1)}removeErrorInterceptor(e){let r=this.errorInterceptors.indexOf(e);r>-1&&this.errorInterceptors.splice(r,1)}clearAll(){this.requestInterceptors=[],this.responseInterceptors=[],this.errorInterceptors=[]}async processRequest(e){let r=e;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(e){let r=e;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(e){let r=e;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 qr={};ae(qr,{Smartenv:()=>sm});var sm=class{static{i(this,"Smartenv")}constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e,r){if(!this.isNode&&!this.isDeno&&!this.isBun){console.error(`You tried to load a server module in a wrong context: ${e}. This does not throw.`);return}let n=await new Function(`return import('${e}')`)();return r&&await r(n),n}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let n=re.defer(),o=globalThis;if(o.importScripts)o.importScripts(e),n.resolve();else{let s=document.createElement("script");s.onload=()=>{n.resolve()},s.src=e,document.head.appendChild(s)}return await n.promise,r()}get runtimeEnv(){let e=globalThis;return typeof e.Deno<"u"&&typeof e.Deno.version<"u"?"deno":typeof e.Bun<"u"&&typeof e.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":"undefined"}get bunVersion(){return this.isBun?globalThis.Bun?.version??"undefined":"undefined"}async getSafeModuleFor(e,r,n){let o;if(Array.isArray(e)?o=e.flatMap(s=>s==="server"?["node","deno","bun"]:[s]):e==="server"?o=["node","deno","bun"]:o=[e],!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||this.isDeno||this.isBun?(await this.getSafeNodeModule(this.isDeno?"node:os":"os"))?.platform()==="darwin":!1}async isWindowsAsync(){return this.isNode||this.isDeno||this.isBun?(await this.getSafeNodeModule(this.isDeno?"node:os":"os"))?.platform()==="win32":!1}async isLinuxAsync(){return this.isNode||this.isDeno||this.isBun?(await this.getSafeNodeModule(this.isDeno?"node:os":"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 Dt={};ae(Dt,{Smartjson:()=>dm,deepEqualJsonLStrings:()=>eA,deepEqualObjects:()=>Mv,foldDec:()=>ZN,parse:()=>Yc,parseBase64:()=>XN,parseJsonL:()=>mm,stableOneWayStringify:()=>JN,stringify:()=>ui,stringifyBase64:()=>KN,stringifyJsonL:()=>GN,stringifyPretty:()=>QN});var Et={};ae(Et,{Base64:()=>Hc,Domain:()=>$c,GitRepo:()=>Uc,base64:()=>Lo,create:()=>Lc,docker:()=>Bc,indent:()=>zc,normalize:()=>jc,type:()=>Wc});var Lc={};ae(Lc,{createCryptoRandomString:()=>NN,createRandomString:()=>PN});var am=jt(oh(),1);var IN=i((t,e)=>{if(typeof globalThis<"u"&&globalThis.crypto&&globalThis.crypto.getRandomValues){let r=e-t,n=new Uint32Array(1);return globalThis.crypto.getRandomValues(n),t+n[0]%r}else return Math.floor(Math.random()*(e-t))+t},"getRandomInt"),_N=i((t,e,r)=>{let n={A:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",a:"abcdefghijklmnopqrstuvwxyz",0:"0123456789","!":"!@#$%^&*()_+-=[]{}|;:,.<>?","*":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=[]{}|;:,.<>?"},o=t;e&&e>t.length?o=t.repeat(Math.ceil(e/t.length)).slice(0,e):e&&(o=t.slice(0,e));let s="";for(let a of o)if(n[a]){let l=n[a],u=IN(0,l.length);s+=l[u]}else s+=a;return s},"customRandomatic"),PN=i((t,e,r)=>_N(t,e,r),"createRandomString"),NN=i(()=>am.uni(),"createCryptoRandomString");var Bc={};ae(Bc,{makeEnvObject:()=>AN});var AN=i(function(t){let e={},r=/(.*)=(.*)/;if(typeof t<"u")for(let n in t){let o=r.exec(t[n]);e[o[1]]=o[2]}return e},"makeEnvObject");var zc={};ae(zc,{indent:()=>FN,indentWithPrefix:()=>LN,normalize:()=>BN});var lm=i(t=>{let e=t.split(`
35
+ `);return RN(e)},"splitStringAtLineBreak"),um=i(t=>{let e="";for(let r of t)e=e+r+`
36
+ `;return e},"joinStringWithLineBreaks"),RN=i(t=>{let e=/^[\s]*$/;return e.test(t[0])&&t.shift(),e.test(t[t.length-1])&&t.pop(),t},"cleanStringArray"),FN=i((t,e)=>{let r=lm(t);for(let o of r)o=" ".repeat(e)+o;return um(r)},"indent"),LN=i((t,e)=>{let r,n=lm(t),o=[];for(let s of n)o.push(e+s);return r=um(o),r},"indentWithPrefix"),BN=i(t=>{let e,r=lm(t),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 e=um(a),e},"normalize");var jc={};ae(jc,{replaceAll:()=>yv,standard:()=>jN});var yv=i((t,e,r)=>t.replace(new RegExp(e,"g"),r),"replaceAll"),zN=i(t=>{let e=t.split(`
37
37
  `),r=1/0;for(let n of e)if(n.trim().length>0){let o=n.match(/^(\s*)/);o&&(r=Math.min(r,o[1].length))}return r===1/0||r===0?t:e.map(n=>n.length>=r?n.slice(r):n).join(`
38
- `)},"stripIndent"),zN=i((t,e)=>{let r=t;return(!e||e.stripIndent)&&(r=BN(r)),(!e||e.normalizeNewline)&&(r=r.replace(/\r\n/g,`
39
- `)),(!e||e.replaceTabs)&&(r=yv(r," /"," ")),(!e||e.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!e||e.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r},"standard");var Wc={};ae(Wc,{isBase64:()=>HN,isUtf8:()=>jN});var cm={encode:i(t=>{if(typeof Buffer<"u")return Buffer.from(t,"utf8").toString("base64");if(typeof btoa<"u"){let e=new TextEncoder().encode(t),r=Array.from(e,n=>String.fromCharCode(n)).join("");return btoa(r)}else{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new TextEncoder().encode(t),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+=e.charAt(u>>18&63),n+=e.charAt(u>>12&63),n+=o-2<r.length?e.charAt(u>>6&63):"=",n+=o-1<r.length?e.charAt(u&63):"="}return n}},"encode"),decode:i(t=>{let e=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"=");if(typeof Buffer<"u")return Buffer.from(e,"base64").toString("utf8");if(typeof atob<"u"){let r=atob(e),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<e.length;){let s=r.indexOf(e.charAt(o++)),a=r.indexOf(e.charAt(o++)),l=r.indexOf(e.charAt(o++)),u=r.indexOf(e.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")},Hc=class{static{i(this,"Base64")}constructor(e,r){switch(r){case"string":this.refString=e;break;case"base64":this.refString=Lo.decode(e);break;case"base64uri":this.refString=Lo.decode(e)}}get simpleString(){return this.refString}get base64String(){return Lo.encode(this.refString)}get base64UriString(){return Lo.encodeUri(this.refString)}},Lo={encode:i(t=>cm.encode(t),"encode"),encodeUri:i(t=>cm.encode(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),"encodeUri"),decode:i(t=>cm.decode(t),"decode"),isBase64:i(t=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(t),"isBase64")};var jN=i(t=>{let r=new TextEncoder().encode(t),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"),HN=i(t=>{let e=/[^A-Z0-9+\/=]/i,r=t.length;if(!r||r%4!==0||e.test(t))return!1;let n=t.indexOf("=");return n===-1||n===r-1||n===r-2&&t[r-1]==="="},"isBase64");var $c=class{static{i(this,"Domain")}constructor(e){this.protocol=this._protocolRegex(e),this.protocol||(e=`https://${e}`),this.nodeParsedUrl=new URL(e),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(e.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(e){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(e);return n.reverse(),n.pop(),n.filter(function(s){return s!==""})}_protocolRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}_portRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}};var Uc=class{static{i(this,"GitRepo")}constructor(e,r){let n=WN(e);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=wv(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=wv(this.host,this.user,this.repo,this.accessToken,"https")}},WN=i(function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},"gitRegex"),wv=i(function(t,e,r,n="",o){let s;switch(n!==""&&(n=n+"@"),o){case"https":s="https://"+n+t+"/"+e+"/"+r+".git";break;case"ssh":s="git@"+t+":"+e+"/"+r+".git";break;default:console.error("Link Type "+o+" not known");break}return s},"gitLink");var vv=jt(fm(),1),Bo=vv.default;var kv=i(()=>globalThis.Buffer,"getNodeBuffer");function $N(t){let e=kv();return e?e.from(t).toString("base64"):btoa(String.fromCharCode(...t))}i($N,"base64Encode");function UN(t){let e=kv();if(e){let r=e.from(t,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}return new Uint8Array(Array.from(atob(t)).map(r=>r.charCodeAt(0)))}i(UN,"base64Decode");function ca(t,e){return JSON.stringify(t,qc,e)}i(ca,"stringify");function hm(t){return JSON.parse(t,Tv)}i(hm,"parse");var qc=i((t,e)=>{if(YN(e)){let r;if("data"in e&&Ev(e.data))r=new Uint8Array(e.data);else if(e instanceof Uint8Array)r=e;else return e;return{type:"EncodedBuffer",data:"base64:"+$N(r)}}return e},"replacer"),Tv=i((t,e)=>{if(qN(e)&&pm(e.data)&&e.data.startsWith("base64:")){let r=e.data.slice(7);return UN(r)}return e},"reviver");function qN(t){return Dv(t)&&t.type==="EncodedBuffer"&&pm(t.data)}i(qN,"isEncodedBuffer");function YN(t){return Dv(t)&&t.type==="Buffer"&&(Ev(t.data)||pm(t.data))||t instanceof Uint8Array}i(YN,"isBufferLike");function Ev(t){return Array.isArray(t)}i(Ev,"isArray");function pm(t){return typeof t=="string"}i(pm,"isString");function Dv(t){return typeof t=="object"&&t!==null}i(Dv,"isObject");var Ov=i(t=>{let e=JSON.parse(ca(t)),r=!0,n=i(s=>{if(Array.isArray(s))return s.map(c=>n(c));if(s===null||typeof s!="object")return s;let a=Object.keys(s).sort(),l={};for(let c of a){let f=n(s[c]);c in l?Object.defineProperty(l,c,{configurable:!0,enumerable:!0,value:f,writable:!0}):l[c]=f}let u=Object.keys(l);return(u.length!==a.length||u.some((c,f)=>c!==a[f]))&&(r=!1),l},"createSortedValue"),o=n(e);return r?JSON.stringify(o):Bo(e,{})},"stableStringify");var Yc=hm,mm=i(t=>t.split(`
40
- `).reduce((n,o)=>{let s=o.trim();return s.length>0&&n.push(Yc(s)),n},[]),"parseJsonL"),VN=i(t=>t.map(e=>ui(e)).join(`
41
- `),"stringifyJsonL"),GN=i((t,e,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(t),a={...r,cycles:!0};if(e&&!a.cmp){let l=new Map;e.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 Bo(s,a)},"stableOneWayStringify"),ui=i((t,e,r=void 0)=>{if(r===void 0&&e===void 0)return Ov(t);let n=ca(t);t=JSON.parse(n);let o={...r};if(e&&!o.cmp){let a=new Map;e.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 Bo(t,o)},"stringify"),JN=i(t=>{let e=ui(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},"stringifyPretty"),QN=i((...t)=>{let e=ui(...t);return Et.base64.encodeUri(e)},"stringifyBase64"),KN=i(t=>{let e=Et.base64,n=(e.decodeUri||e.decode)(t);return Yc(n)},"parseBase64"),dm=class t{static{i(this,"Smartjson")}static enfoldFromObject(e){let r=new this,n=r.saveableProperties||[];for(let o in e)n.indexOf(o)!==-1&&(r[o]=e[o]);return r}static enfoldFromJson(e){let r=Yc(e);return this.enfoldFromObject(r)}saveableProperties=[];foldToObject(){let e=new Set;return e.add(this),this.foldToObjectInternal(e)}foldToObjectInternal(e){let r={},n=i(s=>{if(s instanceof t){if(e.has(s))throw new Error("cycle detected");return e.add(s),s.foldToObjectInternal(e)}return Array.isArray(s)?s.map(a=>n(a)):structuredClone(s)},"foldValue"),o=this.saveableProperties||[];for(let s of o){let a=this[s];r[s]=n(a)}return r}foldToJson(){let e=this.foldToObject();return ui(e)}},XN=i(()=>(t,e)=>{let r=String(e.name);e.addInitializer(function(){this.saveableProperties||(this.saveableProperties=[]),this.saveableProperties.includes(r)||this.saveableProperties.push(r)})},"foldDec"),Mv=i((t,e)=>{let r=ui(t),n=ui(e);return r===n},"deepEqualObjects"),ZN=i((t,e)=>{let r=mm(t),n=mm(e);return Mv(r,n)},"deepEqualJsonLStrings");var ar={};ae(ar,{TypedrequestCache:()=>gm,WebStore:()=>fa});var Iv={};var Vc=class{static{i(this,"WebStoreDb")}constructor(e){this.nativeDb=e}async get(e,r,n={}){return this.runObjectStoreRequest(e,"readonly",o=>o.get(r),n)}async getKey(e,r,n={}){return this.runObjectStoreRequest(e,"readonly",o=>o.getKey(r),n)}async put(e,r,n,o={}){return this.runObjectStoreRequest(e,"readwrite",s=>n===void 0?s.put(r):s.put(r,n),o)}async delete(e,r,n={}){await this.runObjectStoreRequest(e,"readwrite",o=>o.delete(r),n)}async clear(e,r={}){await this.runObjectStoreRequest(e,"readwrite",n=>n.clear(),r)}async getAllKeys(e,r={}){return this.runObjectStoreRequest(e,"readonly",n=>n.getAllKeys(),r)}close(){this.nativeDb.close()}async runObjectStoreRequest(e,r,n,o){o.signal?.throwIfAborted();let s=this.nativeDb.transaction(e,r),a=s.objectStore(e),l=n(a),u,c=new Promise((p,h)=>{u=h}),f=i(()=>{try{s.abort()}catch(p){if(!(p instanceof DOMException)||p.name!=="InvalidStateError"){u(p);return}}o.signal&&u(o.signal.reason)},"abortTransaction");o.signal?.addEventListener("abort",f,{once:!0});try{let[p]=await Promise.race([Promise.all([eA(l),tA(s)]),c]);return p}catch(p){throw o.signal?.aborted?o.signal.reason:p}finally{o.signal?.removeEventListener("abort",f)}}},Pv=i(async(t,e)=>{if(e?.throwIfAborted(),!e)return t;let r,n=new Promise((s,a)=>{r=a}),o=i(()=>{r(e.reason)},"abortListener");e.addEventListener("abort",o,{once:!0});try{return await Promise.race([t,n])}finally{e.removeEventListener("abort",o)}},"awaitWithSignal"),eA=i(t=>new Promise((e,r)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>r(Gc("IndexedDB request failed",t.error))}),"indexedDbRequestToPromise"),tA=i(t=>new Promise((e,r)=>{t.oncomplete=()=>e(),t.onabort=()=>r(Gc("IndexedDB transaction aborted",t.error)),t.onerror=()=>r(Gc("IndexedDB transaction failed",t.error))}),"indexedDbTransactionToPromise"),Gc=i((t,e)=>e?new Error(`${t}: ${e.message}`,{cause:e}):new Error(t),"createIndexedDbError"),Nv=i((t,e)=>{t.objectStoreNames.contains(e)||t.createObjectStore(e)},"ensureObjectStore"),Av=i(async(t,e,r)=>{if(!globalThis.indexedDB)throw new Error("IndexedDB is not available in this runtime");return new Promise((n,o)=>{let s=!1,a=typeof e=="number"?globalThis.indexedDB.open(t,e):globalThis.indexedDB.open(t),l=i(u=>{s||(s=!0,o(u instanceof Error?u:new Error(String(u))))},"rejectOnce");a.onupgradeneeded=()=>{if(r)try{r(a.result)}catch(u){a.transaction?.abort(),l(u)}},a.onsuccess=()=>{if(s){a.result.close();return}s=!0;let u=a.result;u.onversionchange=()=>u.close(),n(u)},a.onerror=()=>l(Gc(`Failed to open IndexedDB database "${t}"`,a.error)),a.onblocked=()=>l(new Error(`Opening IndexedDB database "${t}" was blocked by another connection`))})},"openNativeDb"),rA=i(async(t,e)=>{let r=await Av(t,void 0,o=>Nv(o,e));if(r.objectStoreNames.contains(e))return new Vc(r);let n=r.version+1;if(r.close(),r=await Av(t,n,o=>Nv(o,e)),!r.objectStoreNames.contains(e))throw r.close(),new Error(`Failed to create IndexedDB object store "${e}" in database "${t}"`);return new Vc(r)},"openWebStoreDb"),fa=class{static{i(this,"WebStore")}constructor(e){this.lifecycleGeneration=0,this.closeCoveredGeneration=0,this.activeOperations=new Set,this.options=e}trackOperation(e){this.lifecycleGeneration+=1;let r;return r=(async()=>e())().finally(()=>{this.activeOperations.delete(r)}),this.activeOperations.add(r),r}init(e={}){return this.trackOperation(()=>this.initForOperation(e.signal))}async initForOperation(e){e?.throwIfAborted();let r=this.closePromise;return r&&(await Pv(r,e),e?.throwIfAborted()),this.initPromise||(this.initPromise=this.runInit().catch(n=>{throw this.initPromise=void 0,n})),Pv(this.initPromise,e)}async runInit(){let e=new qr.Smartenv;if(!e.isBrowser&&!globalThis.indexedDB&&(await e.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await e.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await rA(this.options.dbName,this.options.storeName)}runDataOperation(e,r){return this.trackOperation(async()=>(await this.initForOperation(r.signal),r.signal?.throwIfAborted(),e(this.db)))}close(){let e=this.lifecycleGeneration;if(this.closePromise&&e<=this.closeCoveredGeneration)return this.closePromise;let r=this.closePromise,n=[...this.activeOperations];if(!r&&!this.initPromise&&n.length===0)return Promise.resolve();let o;return o=(async()=>{try{if(r)try{await r}catch{}await Promise.allSettled(n);let s=this.initPromise;if(!s)return;try{await s}catch{return}finally{this.initPromise===s&&(this.initPromise=void 0)}this.db.close()}finally{this.closePromise===o&&(this.closePromise=void 0)}})(),this.closePromise=o,this.closeCoveredGeneration=e,o}async get(e,r={}){return this.runDataOperation(n=>n.get(this.options.storeName,e,r),r)}async check(e,r={}){return this.runDataOperation(async n=>await n.getKey(this.options.storeName,e,r)!==void 0,r)}async set(e,r,n={}){return this.runDataOperation(o=>o.put(this.options.storeName,r,e,n),n)}async delete(e,r={}){return this.runDataOperation(n=>n.delete(this.options.storeName,e,r),r)}async clear(e={}){return this.runDataOperation(r=>r.clear(this.options.storeName,e),e)}async keys(e={}){return this.runDataOperation(r=>r.getAllKeys(this.options.storeName,e),e)}};var gm=class{static{i(this,"TypedrequestCache")}constructor(e="default"){this.webstore=new fa({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return Dt.stringify({method:e.method,request:e.request})}async setByRequest(e){if(!e.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(e),e)}async getByRequest(e){return await this.webstore.get(this.buildKey(e))}};var pa=256,zo=class{static{i(this,"CacheStore")}constructor(e="webrequest-v4",r="cache"){this.lifecycleController=new AbortController,this.closeReason=new Error("Webrequest cache store is closed"),this.disposed=!1,this.pruneGeneration=0,this.pruneWaiters=new Set,this.activeOwnedOperations=new Set,this.webstore=new ar.WebStore({dbName:e,storeName:r}),this.initPromise=this.init()}async init(){}generateCacheKey(e){let r=e.url,n=e.method;return n==="GET"?r:`${n}:${r}`}async set(e,r,n={}){await this.initPromise;let o=this.getOperationSignal(n.signal),s=n.maxEntries??pa;if(!Number.isSafeInteger(s)||s<=0)throw new RangeError("webrequest cache maxEntries must be a positive safe integer");await this.webstore.set(e,r,{signal:o}),await this.schedulePrune(s,o)}async get(e,r={}){await this.initPromise;let n=this.getOperationSignal(r.signal);try{let o=await this.webstore.get(e,{signal:n});return o===void 0?null:this.isCacheEntry(o)?o:(await this.webstore.delete(e,{signal:n}),null)}catch{if(n.aborted)throw n.reason;return null}}async has(e,r={}){return await this.get(e,r)!==null}async delete(e,r={}){await this.initPromise;let n=this.getOperationSignal(r.signal);await this.webstore.delete(e,{signal:n})}async clear(e={}){await this.initPromise;let r=this.getOperationSignal(e.signal);await this.webstore.clear({signal:r})}responseFromCacheEntry(e){let r=new Headers(e.headers);return new Response(e.response,{status:e.status,statusText:e.statusText,headers:r})}cacheEntryFromResponse(e,r,n,o={}){return this.trackOwnedOperation(async()=>{let s=this.getOperationSignal(o.signal),a=o.preserveResponse!==!1,l=a?r.clone():r,u=await this.consumeArrayBuffer(l,s,a?r.body:void 0,o.responseSignal),c={};return l.headers.forEach((f,p)=>{c[p]=f}),{response:u,headers:c,timestamp:Date.now(),etag:n?.etag||l.headers.get("etag")||void 0,lastModified:n?.lastModified||l.headers.get("last-modified")||void 0,maxAge:n?.maxAge,url:e,status:l.status,statusText:l.statusText}})}async pruneExpired(e={}){await this.initPromise;let r=this.getOperationSignal(e.signal),n=await this.collectEntries(r),o=0;for(let s of n)r.throwIfAborted(),!(s.valid&&!this.isExpired(s))&&(await this.webstore.delete(s.key,{signal:r}),o+=1);return o}async schedulePrune(e,r){r?.throwIfAborted();let n=++this.pruneGeneration;this.pendingPruneMaxEntries=this.pendingPruneMaxEntries===void 0?e:Math.min(this.pendingPruneMaxEntries,e);let o,s,a=new Promise((u,c)=>{o=u,s=c}),l={generation:n,resolve:o,reject:s};this.pruneWaiters.add(l),this.ensurePruneLoop();try{await nA(a,r)}finally{this.pruneWaiters.delete(l)}}ensurePruneLoop(){if(this.pruneLoopPromise)return this.pruneLoopPromise;let e;return e=this.runPruneLoop().catch(r=>{this.pendingPruneMaxEntries=void 0,this.settlePruneWaiters(this.pruneGeneration,r)}).finally(()=>{this.pruneLoopPromise===e&&(this.pruneLoopPromise=void 0,this.pendingPruneMaxEntries!==void 0&&!this.disposed&&this.ensurePruneLoop())}),this.pruneLoopPromise=e,e}async runPruneLoop(){for(;this.pendingPruneMaxEntries!==void 0;){let e=this.pendingPruneMaxEntries;this.pendingPruneMaxEntries=void 0;let r=this.pruneGeneration;await this.pruneToLimit(e,this.lifecycleController.signal),this.settlePruneWaiters(r)}}settlePruneWaiters(e,r){for(let n of this.pruneWaiters)n.generation>e||(this.pruneWaiters.delete(n),r===void 0?n.resolve():n.reject(r))}async pruneToLimit(e,r){let n=await this.collectEntries(r),o=n.filter(l=>!l.valid||this.isExpired(l));for(let l of o)r?.throwIfAborted(),await this.webstore.delete(l.key,{signal:r});let s=n.filter(l=>l.valid&&!this.isExpired(l)).sort((l,u)=>l.timestamp===u.timestamp?l.key.localeCompare(u.key):(l.timestamp??0)-(u.timestamp??0)),a=Math.max(0,s.length-e);for(let l of s.slice(0,a))r?.throwIfAborted(),await this.webstore.delete(l.key,{signal:r})}async collectEntries(e){e?.throwIfAborted();let r=await this.webstore.keys({signal:e}),n=[];for(let o of r)if(e?.throwIfAborted(),typeof o=="string")try{let s=await this.webstore.get(o,{signal:e});n.push(this.isCacheEntry(s)?{key:o,valid:!0,timestamp:s.timestamp,maxAge:s.maxAge}:{key:o,valid:!1,timestamp:0})}catch{if(e?.aborted)throw e.reason;continue}return n}isCacheEntry(e){if(!e||typeof e!="object")return!1;let r=Reflect.get(e,"response"),n=Reflect.get(e,"headers"),o=Reflect.get(e,"timestamp"),s=Reflect.get(e,"url"),a=Reflect.get(e,"status"),l=Reflect.get(e,"statusText");return r instanceof ArrayBuffer&&typeof n=="object"&&n!==null&&Number.isFinite(o)&&typeof s=="string"&&Number.isInteger(a)&&typeof l=="string"}isExpired(e){return e.maxAge!==void 0&&e.maxAge>0&&Date.now()-e.timestamp>=e.maxAge}getOperationSignal(e){if(this.disposed)throw this.closeReason;return e?.throwIfAborted(),e?AbortSignal.any([e,this.lifecycleController.signal]):this.lifecycleController.signal}trackOwnedOperation(e){let r;return r=e().finally(()=>{this.activeOwnedOperations.delete(r)}),this.activeOwnedOperations.add(r),r}close(){if(this.closePromise)return this.closePromise;this.disposed=!0,this.lifecycleController.abort(this.closeReason);let e=this.pruneLoopPromise,r=[...this.activeOwnedOperations];return this.closePromise=(async()=>{await Promise.allSettled([...r,...e?[e]:[]]),await this.webstore.close()})(),this.closePromise}async consumeArrayBuffer(e,r,n,o){if(r?.throwIfAborted(),!r)return e.arrayBuffer();let s=e.body?.getReader();if(!s)return new ArrayBuffer(0);let a=[],l=0,u,c=new Promise((d,g)=>{u=g}),f,p=i(()=>{u(r.reason),o?.aborted||(f=Promise.all([s.cancel(r.reason).catch(()=>{}),n?.cancel(r.reason).catch(()=>{})]).then(()=>{}))},"abortListener");r.addEventListener("abort",p,{once:!0});try{for(;;){let d=await Promise.race([s.read(),c]);if(d.done)break;a.push(d.value),l+=d.value.byteLength}}finally{r.removeEventListener("abort",p),f&&await f;try{s.releaseLock()}catch{}}let h=new Uint8Array(l),m=0;for(let d of a)h.set(d,m),m+=d.byteLength;return h.buffer}},nA=i(async(t,e)=>{if(e?.throwIfAborted(),!e)return t;let r,n=new Promise((s,a)=>{r=a}),o=i(()=>{r(e.reason)},"abortListener");e.addEventListener("abort",o,{once:!0});try{return await Promise.race([t,n])}finally{e.removeEventListener("abort",o)}},"awaitWithSignal");function iA(t){let e={maxAge:0,immutable:!1,noCache:!1,noStore:!1,mustRevalidate:!1};if(!t)return e;let r=t.toLowerCase().split(",").map(n=>n.trim());for(let n of r)if(n==="no-cache")e.noCache=!0;else if(n==="no-store")e.noStore=!0;else if(n==="immutable")e.immutable=!0;else if(n==="must-revalidate")e.mustRevalidate=!0;else if(n.startsWith("max-age=")){let o=parseInt(n.split("=")[1],10);isNaN(o)||(e.maxAge=o*1e3)}return e}i(iA,"parseCacheControl");function oA(t){if(t)try{return new Date(t).getTime()}catch{return}}i(oA,"parseExpires");function _r(t){let e=t.get("cache-control"),r=t.get("expires"),n=t.get("etag"),o=t.get("last-modified"),s=iA(e);if(s.maxAge===0&&r){let a=oA(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 Qc(t,e){if(e.noStore)return!1;if(e.immutable)return!0;let r=Date.now()-t.timestamp,n=t.maxAge||e.maxAge||0;return n===0?!1:r<n}i(Qc,"isFresh");function jo(t){return t.noCache||t.mustRevalidate}i(jo,"requiresRevalidation");function Kc(t){let e={};return t.etag&&(e["if-none-match"]=t.etag),t.lastModified&&(e["if-modified-since"]=t.lastModified),e}i(Kc,"createConditionalHeaders");function Xc(t){let e={};return t.forEach((r,n)=>{e[n]=r}),e}i(Xc,"headersToObject");function Rv(t){let e=new Headers;return Object.entries(t).forEach(([r,n])=>{e.set(r,n)}),e}i(Rv,"objectToHeaders");function sA(t){let e=new AbortController,r=!1,n=!1,o=new ge.Timeout(t,null);return o.promise.then(()=>{r=!0,e.abort()}),{controller:e,cleanup:i(()=>{n||(n=!0,o.cancel())},"cleanup"),didTimeout:i(()=>r,"didTimeout")}}i(sA,"createTimeoutController");var Fv=Symbol("webrequestTimeoutError"),En=i((t,e)=>{let r=new Error(`Request timeout after ${e}ms: ${t}`);return Object.defineProperty(r,Fv,{configurable:!1,enumerable:!1,value:!0,writable:!1}),r},"createTimeoutError"),ha=i(t=>t instanceof Error&&Reflect.get(t,Fv)===!0,"isWebrequestTimeoutError");async function xm(t,e,r){let n=t instanceof Request?t.url:String(t),{controller:o,cleanup:s,didTimeout:a}=sA(r),l=e.signal?AbortSignal.any([e.signal,o.signal]):o.signal;try{let u=await fetch(t,{...e,signal:l});return s(),u}catch(u){throw s(),a()?En(n,r):u}}i(xm,"fetchWithTimeout");var Lv=i(t=>{if(t.reason instanceof Error)return t.reason;let e=new Error("The request was aborted");return e.name="AbortError",e},"normalizeAbortReason");async function Bv(t,e){if(e.signal?.aborted){let f=Lv(e.signal);throw await t.body?.cancel(f).catch(()=>{}),f}if(e.bodyTimeoutMs!==void 0&&e.bodyTimeoutMs<=0){let f=En(e.url,e.reportedTimeoutMs??e.bodyTimeoutMs);throw await t.body?.cancel(f).catch(()=>{}),f}if(e.bodyTimeoutMs===void 0&&!e.signal)return await t.json();let r=t.body?.getReader();if(!r)return JSON.parse("");let n,o,s,a=new Promise((f,p)=>{s=p}),l=i(f=>{n||(n=f,r.cancel(f).catch(()=>{}),s(f))},"terminate"),u=i(()=>{e.signal&&l(Lv(e.signal))},"abortListener");if(e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u,{once:!0})),e.bodyTimeoutMs!==void 0){let f=e.reportedTimeoutMs??e.bodyTimeoutMs;o=setTimeout(()=>{l(En(e.url,f))},e.bodyTimeoutMs)}let c=i(async()=>{let f=new TextDecoder,p="";for(;;){let h;try{h=await r.read()}catch(m){throw n||m}if(n)throw n;if(h.done)break;p+=f.decode(h.value,{stream:!0})}if(p+=f.decode(),n)throw n;return JSON.parse(p)},"readBody");try{return await Promise.race([c(),a])}finally{o!==void 0&&clearTimeout(o),e.signal?.removeEventListener("abort",u);try{r.releaseLock()}catch{}}}i(Bv,"consumeJsonWithTimeout");var Zc=class{static{i(this,"NetworkFirstStrategy")}async execute(e){let r;try{return r=await e.fetchFn(e.request),r.ok&&await this.cacheResponse(e,r),{response:r,fromCache:!1,revalidated:!1}}catch(n){if(await Ho(r,n,e.request.signal),e.signal?.aborted)throw e.signal.reason;if(ha(n))throw n;e.logging&&console.log("[webrequest] Network failed, trying cache:",n);let o=await e.cacheStore.get(e.cacheKey,{signal:e.signal});if(o)return{response:e.cacheStore.responseFromCacheEntry(o),fromCache:!0,revalidated:!1};throw n}}async cacheResponse(e,r){let n=_r(r.headers);if(n.maxAge=ma(n.maxAge,e.cacheMaxAge),n.noStore)return;let o=await e.cacheStore.cacheEntryFromResponse(e.request.url,r,n,{signal:e.signal,responseSignal:e.request.signal});await e.cacheStore.set(e.cacheKey,o,{signal:e.signal,maxEntries:e.cacheMaxEntries})}},ym=class{static{i(this,"CacheFirstStrategy")}async execute(e){let r=await e.cacheStore.get(e.cacheKey,{signal:e.signal});if(r){let s=_r(new Headers(r.headers));if(zv(e,r,s)&&!jo(s))return e.logging&&console.log("[webrequest] Cache hit (fresh):",e.request.url),{response:e.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1};if(jo(s)&&(r.etag||r.lastModified))return await this.revalidate(e,r)}e.logging&&console.log("[webrequest] Cache miss, fetching:",e.request.url);let n=await e.fetchFn(e.request),o=_r(n.headers);if(o.maxAge=ma(o.maxAge,e.cacheMaxAge),!o.noStore)try{let s=await e.cacheStore.cacheEntryFromResponse(e.request.url,n,o,{signal:e.signal,responseSignal:e.request.signal});await e.cacheStore.set(e.cacheKey,s,{signal:e.signal,maxEntries:e.cacheMaxEntries})}catch(s){throw await Ho(n,s,e.request.signal),s}return{response:n,fromCache:!1,revalidated:!1}}async revalidate(e,r){let n=Kc(r),o=new Request(e.request.url,{method:e.request.method,headers:{...Xc(e.request.headers),...n},signal:e.signal}),s;try{if(s=await e.fetchFn(o),s.status===304)return e.logging&&console.log("[webrequest] Cache revalidated (304):",e.request.url),r.timestamp=Date.now(),await e.cacheStore.set(e.cacheKey,r,{signal:e.signal,maxEntries:e.cacheMaxEntries}),await Ho(s,"304 response replaced by cached response",o.signal),{response:e.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!0};if(s.ok){let a=_r(s.headers);if(a.maxAge=ma(a.maxAge,e.cacheMaxAge),!a.noStore){let l=await e.cacheStore.cacheEntryFromResponse(e.request.url,s,a,{signal:e.signal,responseSignal:o.signal});await e.cacheStore.set(e.cacheKey,l,{signal:e.signal,maxEntries:e.cacheMaxEntries})}}return{response:s,fromCache:!1,revalidated:!0}}catch(a){if(await Ho(s,a,o.signal),e.signal?.aborted)throw e.signal.reason;if(ha(a))throw a;return e.logging&&console.log("[webrequest] Revalidation failed, using cache:",a),{response:e.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1}}}},wm=class{static{i(this,"StaleWhileRevalidateStrategy")}async execute(e){let r=await e.cacheStore.get(e.cacheKey,{signal:e.signal});if(r){let s=e.cacheStore.responseFromCacheEntry(r);return e.scheduleBackgroundRevalidation(async a=>{let l={...e,request:new Request(e.request,{signal:a}),signal:a};await this.revalidateInBackground(l,r)}),{response:s,fromCache:!0,revalidated:!1}}let n=await e.fetchFn(e.request),o=_r(n.headers);if(o.maxAge=ma(o.maxAge,e.cacheMaxAge),!o.noStore&&n.ok)try{let s=await e.cacheStore.cacheEntryFromResponse(e.request.url,n,o,{signal:e.signal,responseSignal:e.request.signal});await e.cacheStore.set(e.cacheKey,s,{signal:e.signal,maxEntries:e.cacheMaxEntries})}catch(s){throw await Ho(n,s,e.request.signal),s}return{response:n,fromCache:!1,revalidated:!1}}async revalidateInBackground(e,r){let n=_r(new Headers(r.headers));if(zv(e,r,n)&&!jo(n))return;let o;try{if(e.signal?.throwIfAborted(),o=await e.fetchFn(e.request),o.ok){let s=_r(o.headers);if(s.maxAge=ma(s.maxAge,e.cacheMaxAge),!s.noStore){let a=await e.cacheStore.cacheEntryFromResponse(e.request.url,o,s,{signal:e.signal,responseSignal:e.request.signal,preserveResponse:!1});await e.cacheStore.set(e.cacheKey,a,{signal:e.signal,maxEntries:e.cacheMaxEntries}),e.logging&&console.log("[webrequest] Background revalidation complete:",e.request.url)}}}catch(s){if(e.signal?.aborted)return;e.logging&&console.warn("[webrequest] Background revalidation failed:",s)}finally{await Ho(o,"background revalidation response discarded",e.request.signal)}}},bm=class{static{i(this,"NetworkOnlyStrategy")}async execute(e){return{response:await e.fetchFn(e.request),fromCache:!1,revalidated:!1}}},vm=class{static{i(this,"CacheOnlyStrategy")}async execute(e){let r=await e.cacheStore.get(e.cacheKey,{signal:e.signal});if(!r)throw new Error(`Cache miss for ${e.request.url} (cache-only mode)`);return{response:e.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1}}},ma=i((t,e)=>e===void 0?t:Math.min(t,e),"resolveEffectiveMaxAge"),zv=i((t,e,r)=>Qc(e,r)?t.cacheMaxAge===void 0?!0:Date.now()-e.timestamp<t.cacheMaxAge:!1,"isFreshForContext"),Ho=i(async(t,e,r)=>{!t?.body||t.bodyUsed||r?.aborted||await t.body.cancel(e).catch(()=>{})},"cancelDiscardedResponse");function jv(t){switch(t){case"network-first":return new Zc;case"cache-first":return new ym;case"stale-while-revalidate":return new wm;case"network-only":return new bm;case"cache-only":return new vm;default:return new Zc}}i(jv,"getStrategyHandler");var Wo=class{static{i(this,"CacheManager")}constructor(e,r,n){this.lifecycleController=new AbortController,this.closeReason=new Error("Webrequest cache manager is closed"),this.disposed=!1,this.backgroundRevalidations=new Map,this.cacheStore=n??new zo(e,r)}async execute(e,r,n){if(this.disposed)throw this.closeReason;e.signal.throwIfAborted();let o=this.determineStrategy(e,r);if(o==="network-only")return{response:await n(e),fromCache:!1,revalidated:!1};let s=r.cacheMaxEntries??pa;if(!Number.isSafeInteger(s)||s<=0)throw new RangeError("webrequest cacheMaxEntries must be a positive safe integer");if(r.cacheMaxAge!==void 0&&(!Number.isSafeInteger(r.cacheMaxAge)||r.cacheMaxAge<0))throw new RangeError("webrequest cacheMaxAge must be a non-negative safe integer");let a=r.timeout??6e4,l=new AbortController,u=setTimeout(()=>{l.abort(En(e.url,a))},Math.max(0,a)),c=AbortSignal.any([e.signal,this.lifecycleController.signal,l.signal]);try{let f=this.generateCacheKey(e,r),p=jv(o),h={request:e,cacheKey:f,cacheStore:this.cacheStore,fetchFn:n,logging:r.logging,signal:c,cacheMaxAge:r.cacheMaxAge,cacheMaxEntries:s,scheduleBackgroundRevalidation:i(m=>{this.scheduleBackgroundRevalidation(f,e.url,a,m)},"scheduleBackgroundRevalidation")};return await p.execute(h)}finally{clearTimeout(u)}}determineStrategy(e,r){return r.cacheStrategy?r.cacheStrategy:r.cache?this.mapCacheModeToStrategy(r.cache):e.cache?this.mapCacheModeToStrategy(e.cache):"network-first"}mapCacheModeToStrategy(e){switch(e){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(e,r){return r.cacheKey?typeof r.cacheKey=="function"?r.cacheKey(e):r.cacheKey:this.cacheStore.generateCacheKey(e)}async clear(){await this.cacheStore.clear()}async delete(e){await this.cacheStore.delete(e)}async has(e){return await this.cacheStore.has(e)}getStore(){return this.cacheStore}scheduleBackgroundRevalidation(e,r,n,o){if(this.disposed||this.backgroundRevalidations.has(e))return;let s=new AbortController,a=AbortSignal.any([this.lifecycleController.signal,s.signal]),l=setTimeout(()=>{s.abort(En(r,n))},Math.max(0,n)),u;u=o(a).catch(()=>{}).finally(()=>{clearTimeout(l),this.backgroundRevalidations.get(e)===u&&this.backgroundRevalidations.delete(e)}),this.backgroundRevalidations.set(e,u)}close(){if(this.closePromise)return this.closePromise;this.disposed=!0,this.lifecycleController.abort(this.closeReason);let e=[...this.backgroundRevalidations.values()];return this.closePromise=(async()=>{await Promise.allSettled(e),await this.cacheStore.close()})(),this.closePromise}};var ef=class{static{i(this,"ExponentialBackoff")}calculate(e,r,n){let o=r*Math.pow(2,e-1);return Math.min(o,n)}},Sm=class{static{i(this,"LinearBackoff")}calculate(e,r,n){let o=r*e;return Math.min(o,n)}},km=class{static{i(this,"ConstantBackoff")}calculate(e,r,n){return Math.min(r,n)}};function Hv(t){switch(t){case"exponential":return new ef;case"linear":return new Sm;case"constant":return new km;default:return new ef}}i(Hv,"getBackoffCalculator");function Wv(t,e=.1){let r=t*e*Math.random();return t+r}i(Wv,"addJitter");var $o=class{static{i(this,"RetryManager")}constructor(e={},r){this.signal=r,this.options={maxAttempts:e.maxAttempts??3,backoff:e.backoff??"exponential",initialDelay:e.initialDelay??1e3,maxDelay:e.maxDelay??3e4,retryOn:e.retryOn??[408,429,500,502,503,504],onRetry:e.onRetry??(()=>{})}}async execute(e,r){let n;for(let o=1;o<=this.options.maxAttempts;o++){this.throwIfAborted();try{let s=await e();if(s instanceof Response&&this.shouldRetryResponse(s)){if(o===this.options.maxAttempts)return s;await this.cancelResponseBody(s,`Retrying after HTTP ${s.status}`);let a=this.calculateDelay(o);this.options.onRetry(o,new Error(`HTTP ${s.status}`),a),await this.delay(a);continue}return s}catch(s){if(this.signal?.aborted)throw this.getAbortError();n=s instanceof Error?s:new Error(String(s));let a=r?r(s,o):this.shouldRetryError(s);if(o===this.options.maxAttempts||!a)throw n;let l=this.calculateDelay(o);this.options.onRetry(o,n,l),await this.delay(l)}}throw n||new Error("Max retry attempts reached")}async executeWithFallbacks(e,r,n){if(e.length===0)throw new Error("No URLs provided for fallback execution");let o,s=[];for(let a of e){this.throwIfAborted();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;await this.cancelResponseBody(l,`Trying fallback after HTTP ${l.status}`),s.push(a),o=new Error(`Request failed with status ${l.status}`)}catch(l){if(this.signal?.aborted)throw this.getAbortError();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(e){let r=this.options.retryOn;return typeof r=="function"?r(e):Array.isArray(r)?r.includes(e.status):!1}shouldRetryError(e){if(e instanceof TypeError&&e.message.includes("fetch")||e.name==="AbortError"||e.message.includes("timeout"))return!0;let r=this.options.retryOn;return typeof r=="function"?r(void 0,e):!1}calculateDelay(e){let n=Hv(this.options.backoff).calculate(e,this.options.initialDelay,this.options.maxDelay);return Wv(n)}async delay(e){if(!this.signal){await ge.delayFor(e);return}if(this.signal.aborted)throw this.getAbortError();let r=new ge.Timeout(e,null),n,o=new Promise((a,l)=>{n=l}),s=i(()=>{r.cancel(),n(this.getAbortError())},"abortListener");try{this.signal.addEventListener("abort",s,{once:!0}),this.signal.aborted&&s(),await Promise.race([r.promise,o])}finally{r.cancel(),this.signal.removeEventListener("abort",s)}}async cancelResponseBody(e,r){await e.body?.cancel(r).catch(()=>{})}throwIfAborted(){if(this.signal?.aborted)throw this.getAbortError()}getAbortError(){if(this.signal?.reason instanceof Error)return this.signal.reason;let e=new Error("The request was aborted");return e.name="AbortError",e}};var Uo=class{static{i(this,"RequestDeduplicator")}constructor(){this.inFlightRequests=new Map}generateKey(e){let r=e.url,n=e.method;return n==="GET"||n==="HEAD"?`${n}:${r}`:`${n}:${r}:${Date.now()}`}async execute(e,r){let n=this.inFlightRequests.get(e);if(n){let s=await n.promise;return{response:this.cloneValue(s),wasDeduplicated:!0}}let o=re.defer();this.inFlightRequests.set(e,o);try{let s=await r();return o.resolve(s),this.inFlightRequests.delete(e),{response:s,wasDeduplicated:!1}}catch(s){throw o.reject(s),this.inFlightRequests.delete(e),s}}isInFlight(e){return this.inFlightRequests.has(e)}getInFlightCount(){return this.inFlightRequests.size}clear(){this.inFlightRequests.clear()}cloneValue(e){return e instanceof Response?e.clone():{...e,response:e.response.clone()}}};var ci=class{static{i(this,"WebrequestClient")}constructor(e={}){this.closeReason=new Error("Webrequest client is closed"),this.disposed=!1,this.defaultOptions=e,this.interceptorManager=new Fo,this.cacheManager=new Wo,this.deduplicator=new Uo}addRequestInterceptor(e){this.interceptorManager.addRequestInterceptor(e)}addResponseInterceptor(e){this.interceptorManager.addResponseInterceptor(e)}addErrorInterceptor(e){this.interceptorManager.addErrorInterceptor(e)}removeRequestInterceptor(e){this.interceptorManager.removeRequestInterceptor(e)}removeResponseInterceptor(e){this.interceptorManager.removeResponseInterceptor(e)}removeErrorInterceptor(e){this.interceptorManager.removeErrorInterceptor(e)}clearInterceptors(){this.interceptorManager.clearAll()}async clearCache(){await this.cacheManager.clear()}async deleteCache(e){await this.cacheManager.delete(e)}async request(e,r={}){return(await this.requestWithMetadata(e,r)).response}async requestWithMetadata(e,r={}){if(this.disposed)throw this.closeReason;let n={...this.defaultOptions,...r},o;if(typeof e=="string"?o=new Request(e,n):o=e,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(e,r){try{let n=typeof r.retry=="object"?r.retry:r.retry?{}:void 0,o=i(async u=>{let c=r.timeout??6e4,f={...r};return delete f.body,delete f.headers,delete f.method,delete f.signal,await xm(u,{...f,signal:u.signal},c)},"fetchFnForRequest"),s=i(async(u,c)=>{let f=r.timeout??6e4;return await xm(u,c,f)},"fetchFnForFallbacks"),a;if(n){let u=new $o(n,r.signal);if(r.fallbackUrls&&r.fallbackUrls.length>0){let c=[e.url,...r.fallbackUrls];a={response:await u.executeWithFallbacks(c,{method:e.method,headers:e.headers,body:e.body,...r},s),fromCache:!1,revalidated:!1}}else{let c,f=await u.execute(async()=>{let p=await this.cacheManager.execute(e,r,o);return c=p,p.response});a=c?.response===f?c:{response:f,fromCache:!1,revalidated:!1}}}else a=await this.cacheManager.execute(e,r,o);let l=await this.interceptorManager.processResponse(a.response);if(r.interceptors?.response)for(let u of r.interceptors.response)l=await u(l);return aA(l,a)}catch(n){throw await this.interceptorManager.processError(n instanceof Error?n:new Error(String(n)))}}async close(){return this.closePromise?this.closePromise:(this.disposed=!0,this.closePromise=this.cacheManager.close(),this.closePromise)}async requestJsonWithMetadata(e,r){let n={...this.defaultOptions,...r},o=n.timeout??6e4,s=n.retry?void 0:performance.now()+o,a=s===void 0?void 0:new AbortController,l=a?n.signal?AbortSignal.any([n.signal,a.signal]):a.signal:n.signal,u=a===void 0?void 0:setTimeout(()=>{a.abort(En(e,o))},Math.max(0,o));try{let c=await this.requestWithMetadata(e,{...r,signal:l}),f=c.response;if(l?.aborted)throw await f.body?.cancel(l.reason).catch(()=>{}),l.reason instanceof Error?l.reason:new Error("The request was aborted");if(!f.ok)throw await f.body?.cancel(`HTTP ${f.status}`).catch(()=>{}),new Error(`HTTP ${f.status}: ${f.statusText}`);let p=s===void 0?o:s-performance.now(),h=await Bv(f,{bodyTimeoutMs:p,reportedTimeoutMs:o,signal:l,url:e});return Object.freeze({data:h,response:f,metadata:c.metadata})}catch(c){throw l?.aborted&&l.reason instanceof Error?l.reason:c}finally{u!==void 0&&clearTimeout(u)}}async getJson(e,r={}){return(await this.getJsonWithMetadata(e,r)).data}async getJsonWithMetadata(e,r={}){return await this.requestJsonWithMetadata(e,{...r,method:"GET",headers:{Accept:"application/json",...r.headers||{}}})}async postJson(e,r,n={}){return(await this.postJsonWithMetadata(e,r,n)).data}async postJsonWithMetadata(e,r,n={}){return await this.requestJsonWithMetadata(e,{...n,method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",...n.headers||{}},body:JSON.stringify(r)})}async putJson(e,r,n={}){return(await this.putJsonWithMetadata(e,r,n)).data}async putJsonWithMetadata(e,r,n={}){return await this.requestJsonWithMetadata(e,{...n,method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json",...n.headers||{}},body:JSON.stringify(r)})}async deleteJson(e,r={}){return(await this.deleteJsonWithMetadata(e,r)).data}async deleteJsonWithMetadata(e,r={}){return await this.requestJsonWithMetadata(e,{...r,method:"DELETE",headers:{Accept:"application/json",...r.headers||{}}})}},aA=i((t,e)=>{let r=Object.freeze({fromCache:e.fromCache,revalidated:e.revalidated});return Object.freeze({response:t,metadata:r})},"createResponseResult");var yt=new ci;async function it(t,e){let r=t instanceof Request?t.url:String(t),n=t instanceof Request?t:new Request(r,e);return await yt.request(n,e)}i(it,"webrequest"),it.requestWithMetadata=async function(t,e){let r=t instanceof Request?t.url:String(t),n=t instanceof Request?t:new Request(r,e);return await yt.requestWithMetadata(n,e)},it.getJson=async function(t,e){return await yt.getJson(t,e)},it.getJsonWithMetadata=async function(t,e){return await yt.getJsonWithMetadata(t,e)},it.postJson=async function(t,e,r){return await yt.postJson(t,e,r)},it.postJsonWithMetadata=async function(t,e,r){return await yt.postJsonWithMetadata(t,e,r)},it.putJson=async function(t,e,r){return await yt.putJson(t,e,r)},it.putJsonWithMetadata=async function(t,e,r){return await yt.putJsonWithMetadata(t,e,r)},it.deleteJson=async function(t,e){return await yt.deleteJson(t,e)},it.deleteJsonWithMetadata=async function(t,e){return await yt.deleteJsonWithMetadata(t,e)},it.addRequestInterceptor=function(t){yt.addRequestInterceptor(t)},it.addResponseInterceptor=function(t){yt.addResponseInterceptor(t)},it.addErrorInterceptor=function(t){yt.addErrorInterceptor(t)},it.clearInterceptors=function(){yt.clearInterceptors()},it.clearCache=async function(){await yt.clearCache()},it.createClient=function(t){return new ci(t)},it.getDefaultClient=function(){return yt};var da=jt(oh(),1);var lA=1e4,$v=new WeakSet,Uv=new WeakMap,Tm=i(t=>{$v.add(t)},"authorizeVirtualStreamApplicationUse"),fi=class extends Error{static{i(this,"VirtualStreamClosedError")}constructor(e="VirtualStream is closed",r){super(e,r),this.name="VirtualStreamClosedError"}},pi=class extends Error{static{i(this,"VirtualStreamOpenTimeoutError")}constructor(e,r){super(e>0?`VirtualStream transport staging timed out after ${e}ms`:"VirtualStream transport staging deadline is exhausted"),this.timeoutMs=e,this.deadlineAt=r,this.name="VirtualStreamOpenTimeoutError"}},rf=class extends Error{static{i(this,"VirtualStreamLifecycleContractError")}constructor(e){super(`VirtualStream endpoint closed before terminal ${e} produced a receipt`),this.name="VirtualStreamLifecycleContractError"}},Yr=class{static{i(this,"VirtualStreamActivationScope")}constructor(){this.trackedStreams=new Set,this.hasAuthorizedTrackedStreams=!1,this.published=!1,this.settled=!1}track(e){if(this.settled)throw new Error("Cannot track a VirtualStream in a settled activation scope");let r=Uv.get(e);if(r&&r!==this)throw new Error("VirtualStream is already owned by another activation scope");r||Uv.set(e,this),this.trackedStreams.add(e),this.hasAuthorizedTrackedStreams&&Tm(e),this.published&&e.publishActivation()}authorizeApplicationUse(){if(!(this.settled||this.hasAuthorizedTrackedStreams)){this.hasAuthorizedTrackedStreams=!0;for(let e of this.trackedStreams)Tm(e)}}publish(){if(!(this.settled||this.published)){this.published=!0;for(let e of this.trackedStreams)e.publishActivation()}}commit(){this.publish(),this.settled=!0,this.trackedStreams.clear()}async rollback(e){if(this.settled)return;this.settled=!0;let r=[...this.trackedStreams];this.trackedStreams.clear(),await Promise.allSettled(r.map(n=>n.rollbackActivation(e)))}},lr=class t{static{i(this,"VirtualStream")}static{this.maximumStreamIdLength=256}static fromRegistration(e){let r=e.registration?.dispose,n=i(()=>{let o=r;r=void 0,o?.()},"disposeOnce");try{if(t.validateTransport(e.transport),typeof e.registration?.dispose!="function")throw new TypeError("VirtualStream registration requires a synchronous disposer");return t.validateNetworkDescriptor(e.registration.descriptor),t.validateEndpoint(e.registration.endpoint,e.registration.descriptor,e.registration.descriptor.creatorDirection),new t({transport:e.transport,descriptor:e.registration.descriptor,endpoint:e.registration.endpoint,registrationDispose:n,explicitRegistration:!0})}catch(o){throw n(),o}}static encodePayloadForNetwork(e,r){let n=e?.correlation?.phase==="response";return t.encodePayloadValue(e,r,n,!1,!0,{standard:new WeakMap,omittingResponseRequestStreams:new WeakMap})}static encodePayloadForNetworkWithMetadata(e,r){let n=e?.correlation?.phase==="response",o={standard:new WeakMap,omittingResponseRequestStreams:new WeakMap,containsNetworkDescriptor:!1,requiresNetworkDescriptorScan:!1},s=t.encodePayloadValue(e,r,n,!1,!0,o),a=o.requiresNetworkDescriptorScan||t.encodedContainerPrototypesMayExposeNetworkDescriptor();return{payload:s,containsNetworkDescriptor:a?t.containsNetworkDescriptor(s):o.containsNetworkDescriptor}}static encodePayloadValue(e,r,n,o,s,a){if(!e||li.isBufferLike(e))return e;if(e instanceof t)return o?{_OMITTED_VIRTUAL_STREAM:!0,reason:"Streams beneath an echoed response.request are omitted."}:(a.containsNetworkDescriptor!==void 0&&(a.containsNetworkDescriptor=!0),e.activateForEncoding(r));if(e instanceof Set||e instanceof Map||e instanceof Date||e instanceof RegExp||e instanceof Error||e instanceof Promise||typeof e.then=="function")return a.containsNetworkDescriptor!==void 0&&typeof e=="object"&&(a.requiresNetworkDescriptorScan=!0),e;if(typeof e!="object")return e;let u=o?a.omittingResponseRequestStreams:a.standard,c=u.get(e);if(c)return c;if(Array.isArray(e)){let p=[];u.set(e,p);for(let h=0;h<e.length;h++)p.push(t.encodePayloadValue(e[h],r,n,o,!1,a));return a.containsNetworkDescriptor!==void 0&&Object.getPrototypeOf(p)!==Array.prototype&&(a.requiresNetworkDescriptorScan=!0),p}let f={};u.set(e,f);for(let p of Object.keys(e)){let h=o||n&&s&&p==="request";f[p]=t.encodePayloadValue(e[p],r,n,h,!1,a)}return a.containsNetworkDescriptor!==void 0&&Object.getPrototypeOf(f)!==Object.prototype&&(a.requiresNetworkDescriptorScan=!0),a.containsNetworkDescriptor!==void 0&&Object.hasOwn(f,"_isVirtualStream")&&f._isVirtualStream===!0&&(a.containsNetworkDescriptor=!0),f}static async decodePayloadFromNetworkAsync(e,r){let n=new Map,o=[],s=[],a=r.activationScope??new Yr,l=!r.activationScope,u=t.resolveOpenDeadlineAt(r.openDeadlineAt);try{let c=t.preparePayloadFromNetwork(e,{...r,activationScope:a},n,o,s,new WeakMap);if(o.length>0){let f=r.virtualStreamTransport;if(!f)throw new Error("VirtualStream descriptor requires a virtual stream transport");t.validateTransport(f);for(let p of o){let h=t.getRemainingOpenTimeoutMs(u),m=await t.openVirtualStreamWithTimeout(f,p.descriptor,h,u,r.abortSignal);p.stream.bindOpenedEndpoint(m)}}return l&&(a.authorizeApplicationUse(),a.commit()),c}catch(c){throw await Promise.allSettled(s.map(f=>f.rollbackActivation(c))),c}}static containsNetworkDescriptor(e,r=new WeakSet){return!e||li.isBufferLike(e)||typeof e!="object"?!1:e._isVirtualStream===!0?!0:r.has(e)?!1:(r.add(e),Array.isArray(e)?e.some(n=>t.containsNetworkDescriptor(n,r)):e instanceof Set||e instanceof Map||e instanceof Date||e instanceof RegExp||e instanceof Error||e instanceof Promise||typeof e.then=="function"?!1:Object.values(e).some(n=>t.containsNetworkDescriptor(n,r)))}static encodedContainerPrototypesMayExposeNetworkDescriptor(){return Object.getPrototypeOf(Object.prototype)!==null||Object.getPrototypeOf(Array.prototype)!==Object.prototype||Object.getOwnPropertyDescriptor(Object.prototype,"_isVirtualStream")!==void 0||Object.getOwnPropertyDescriptor(Array.prototype,"_isVirtualStream")!==void 0}static preparePayloadFromNetwork(e,r,n,o,s,a){if(li.isBufferLike(e)||e===null||typeof e!="object"||e instanceof Set||e instanceof Map||e instanceof Date||e instanceof RegExp||e instanceof Error||e instanceof Promise||typeof e.then=="function")return e;if(e._isVirtualStream===!0){t.validateNetworkDescriptor(e);let c=e,f=n.get(c.streamId);if(f){if(!t.descriptorMetadataMatches(f.descriptor,c))throw new TypeError(`Conflicting VirtualStream metadata for streamId "${c.streamId}"`);return f.stream}let p=r.virtualStreamTransport,h=new t({transport:p,descriptor:c,explicitRegistration:!1});return n.set(c.streamId,{stream:h,descriptor:c}),o.push({stream:h,descriptor:c}),s.push(h),r.activationScope?.track(h),h}let l=a.get(e);if(l)return l;if(Array.isArray(e)){let c=[];a.set(e,c);for(let f of e)c.push(t.preparePayloadFromNetwork(f,r,n,o,s,a));return c}let u={};a.set(e,u);for(let c of Object.keys(e))Object.defineProperty(u,c,{value:t.preparePayloadFromNetwork(e[c],r,n,o,s,a),configurable:!0,enumerable:!0,writable:!0});return u}static resolveOpenDeadlineAt(e){let r=performance.now()+lA;if(e===void 0)return r;if(!Number.isFinite(e)||e<0)throw new RangeError("VirtualStream openDeadlineAt must be a non-negative finite number");return Math.min(e,r)}static getRemainingOpenTimeoutMs(e){let r=Math.ceil(e-performance.now());if(!Number.isSafeInteger(r)||r<=0)throw new pi(0,e);return r}static async openVirtualStreamWithTimeout(e,r,n,o,s){let a=new pi(n,o),l=new AbortController,u,c,f,p=Promise.resolve().then(()=>e.openVirtualStream(r,{abortSignal:l.signal,timeoutMs:n}));p.then(async m=>{u!==void 0&&await t.abortLateOpenedEndpoint(m,u)},()=>{});let h=new Promise((m,d)=>{c=setTimeout(()=>{u=a,l.abort(a),d(a)},n),s&&(f=i(()=>{let g=s.reason??new DOMException("The operation was aborted","AbortError");u=g,l.abort(g),d(g)},"parentAbortListener"),s.addEventListener("abort",f,{once:!0}),s.aborted&&f())});try{return await Promise.race([p,h])}finally{c&&clearTimeout(c),s&&f&&s.removeEventListener("abort",f)}}static async abortLateOpenedEndpoint(e,r){let n;try{n=Promise.resolve(e.abort(r))}catch{}n?.catch(()=>{});try{await e.closed}catch{}}static validateTransport(e){if(!e||typeof e!="object"||typeof e.openVirtualStream!="function")throw new TypeError("VirtualStream transport is invalid")}static validateNetworkDescriptor(e){if(!t.isPlainObject(e))throw new TypeError("VirtualStream descriptor must be a plain object");let r=t.getOwnDataProperty(e,"_isVirtualStream"),n=t.getOwnDataProperty(e,"protocol"),o=t.getOwnDataProperty(e,"streamId"),s=t.getOwnDataProperty(e,"creatorDirection");if(r!==!0||n!=="virtual-stream-v1")throw new TypeError("VirtualStream descriptor requires protocol virtual-stream-v1");if(typeof o!="string"||o.length===0||o.length>t.maximumStreamIdLength)throw new TypeError(`VirtualStream descriptor streamId must contain 1-${t.maximumStreamIdLength} characters`);if(s!=="send"&&s!=="receive")throw new TypeError("VirtualStream descriptor creatorDirection must be send or receive");let a=Object.getOwnPropertyDescriptor(e,"contentType");if(a&&(!("value"in a)||typeof a.value!="string"||a.value.length===0))throw new TypeError("VirtualStream descriptor contentType must be a non-empty string");let l=Object.getOwnPropertyDescriptor(e,"integrity");if(l){if(!("value"in l))throw new TypeError("VirtualStream descriptor integrity must be data");t.validateIntegrity(l.value)}let u=Object.getOwnPropertyDescriptor(e,"transport");if(!u||!("value"in u))throw new TypeError("VirtualStream descriptor requires an own transport property");if(!t.isJsonCompatible(u.value,new WeakSet))throw new TypeError("VirtualStream descriptor transport must be JSON-compatible")}static validateIntegrity(e){if(!t.isPlainObject(e))throw new TypeError("VirtualStream integrity must be a plain object");let r=t.getOwnDataProperty(e,"algorithm"),n=t.getOwnDataProperty(e,"byteLength"),o=t.getOwnDataProperty(e,"digest");if(r!=="sha256")throw new TypeError("VirtualStream integrity algorithm must be sha256");if(!Number.isSafeInteger(n)||n<0)throw new TypeError("VirtualStream integrity byteLength must be a non-negative safe integer");if(typeof o!="string"||!/^sha256:[0-9a-f]{64}$/.test(o))throw new TypeError("VirtualStream integrity digest is invalid")}static validateEndpoint(e,r,n){if(!e||typeof e!="object")throw new TypeError("VirtualStream transport returned an invalid endpoint");let o=e;if(o.protocol!=="virtual-stream-v1"||o.direction!==n||o.streamId!==r.streamId||o.contentType!==r.contentType||!t.integrityMatches(o.integrity,r.integrity))throw new TypeError("VirtualStream endpoint direction or metadata does not match its descriptor");if(!("opened"in o)||!("completion"in o)||!o.closed||typeof o.closed.then!="function"||typeof o.abort!="function")throw new TypeError("VirtualStream endpoint lacks lifecycle contracts");if(n==="send"){if(typeof o.send!="function"||typeof o.close!="function"||!("writable"in o))throw new TypeError("VirtualStream sender endpoint is invalid")}else if(typeof o.receive!="function"||typeof o.accept!="function"||typeof o.reject!="function"||!("readable"in o))throw new TypeError("VirtualStream receiver endpoint is invalid")}static descriptorMetadataMatches(e,r){return e.creatorDirection===r.creatorDirection&&e.contentType===r.contentType&&t.integrityMatches(e.integrity,r.integrity)}static integrityMatches(e,r){return!e||!r?e===r:e.algorithm===r.algorithm&&e.byteLength===r.byteLength&&e.digest===r.digest}static getOwnDataProperty(e,r){let n=Object.getOwnPropertyDescriptor(e,r);if(!(!n||!("value"in n)))return n.value}static isPlainObject(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;let r=Object.getPrototypeOf(e);return r===Object.prototype||r===null}static isJsonCompatible(e,r){if(e===null||typeof e=="string"||typeof e=="boolean")return!0;if(typeof e=="number")return Number.isFinite(e);if(!e||typeof e!="object"||r.has(e))return!1;r.add(e);try{if(Array.isArray(e)){for(let n=0;n<e.length;n++){let o=Object.getOwnPropertyDescriptor(e,String(n));if(!o||!("value"in o)||!t.isJsonCompatible(o.value,r))return!1}return Reflect.ownKeys(e).every(n=>n==="length"||typeof n=="string"&&/^(0|[1-9][0-9]*)$/.test(n)&&Number(n)<e.length)}if(!t.isPlainObject(e))return!1;for(let n of Reflect.ownKeys(e)){if(typeof n!="string")return!1;let o=Object.getOwnPropertyDescriptor(e,n);if(!o.enumerable||!("value"in o)||!t.isJsonCompatible(o.value,r))return!1}return!0}finally{r.delete(e)}}constructor(e){this.activationPublished=!1,this.endpointUseStarted=!1,this.endpointClosed=!1,this.locallyDisposed=!1,this.transport=e.transport,this.descriptor=e.descriptor,this.endpoint=e.endpoint,this.registrationDispose=e.registrationDispose,this.explicitRegistration=e.explicitRegistration,this.explicitRegistration&&Tm(this),this.endpoint&&this.observeEndpoint(this.endpoint)}get protocol(){return"virtual-stream-v1"}get direction(){return this.endpoint?this.endpoint.direction:this.descriptor.creatorDirection==="send"?"receive":"send"}get streamId(){return this.descriptor.streamId}get contentType(){return this.descriptor.contentType}get integrity(){return this.descriptor.integrity}get opened(){try{this.assertApplicationOperationsAllowed(),this.assertNotClosed(),this.endpointUseStarted=!0;let e=this.requireEndpoint().opened;if(!e||typeof e.then!="function")throw new TypeError("VirtualStream endpoint opened contract is invalid");return e}catch(e){return Promise.reject(e)}}get completion(){let e=this.requireEndpoint().completion;if(!e||typeof e.then!="function")throw new TypeError("VirtualStream endpoint completion contract is invalid");return e}get closed(){return this.requireEndpoint().closed}get writable(){return this.assertApplicationOperation("send"),this.endpointUseStarted=!0,this.requireEndpoint().writable}get readable(){return this.assertApplicationOperation("receive"),this.endpointUseStarted=!0,this.requireEndpoint().readable}publishActivation(){this.explicitRegistration&&!this.locallyDisposed&&(this.activationPublished=!0)}async rollbackActivation(e){if(!this.locallyDisposed){if(this.explicitRegistration&&!this.activationPublished&&!this.endpointUseStarted){this.disposeUnpublishedRegistration();return}this.endpoint&&await this.abort(e)}}async send(e){if(this.assertApplicationOperation("send"),!(e instanceof Uint8Array))throw new TypeError("VirtualStream.send accepts only Uint8Array chunks");this.endpointUseStarted=!0,await this.requireEndpoint().send(e)}async receive(){return this.assertApplicationOperation("receive"),this.endpointUseStarted=!0,this.requireEndpoint().receive()}close(){if(this.terminalPromise)return this.followTerminal("close");try{this.assertApplicationOperation("send"),this.endpointUseStarted=!0;let e=this.requireEndpoint();return this.terminateEndpoint(()=>e.close(),"close")}catch(e){return Promise.reject(e)}}accept(){if(this.terminalPromise)return this.followTerminal("accept");try{this.assertApplicationOperation("receive"),this.endpointUseStarted=!0;let e=this.requireEndpoint();return this.terminateEndpoint(()=>e.accept(),"accept")}catch(e){return Promise.reject(e)}}reject(e){if(this.terminalPromise)return this.followTerminal("reject");try{this.assertApplicationOperation("receive"),this.endpointUseStarted=!0;let r=this.requireEndpoint();return this.terminateEndpoint(()=>r.reject(e),"reject")}catch(r){return Promise.reject(r)}}abort(e){if(this.terminalPromise)return this.followTerminal("abort");if(this.locallyDisposed||this.endpointClosed)return Promise.resolve();let r=this.endpoint;return r?(this.endpointUseStarted=!0,this.terminateEndpoint(()=>r.abort(e),"abort")):Promise.resolve()}activateForEncoding(e){e.activationScope?.track(this);try{if(!e.virtualStreamTransport)throw new Error("VirtualStream requires a virtual stream transport");if(this.transport!==e.virtualStreamTransport)throw new Error("VirtualStream cannot be encoded through a different virtual stream transport");if(this.assertNotClosed(),this.terminalPromise)throw new fi("VirtualStream has a terminal operation");return e.activationScope||this.publishActivation(),this.descriptor}catch(r){throw e.activationScope||this.rollbackActivation(r).catch(()=>{}),r}}bindOpenedEndpoint(e){this.endpoint=e;let r=this.descriptor.creatorDirection==="send"?"receive":"send";t.validateEndpoint(e,this.descriptor,r),this.observeEndpoint(e)}observeEndpoint(e){let r=e.completion;if(!r||typeof r.then!="function")throw new TypeError("VirtualStream endpoint completion contract is invalid");r.then(n=>{this.completionOutcome={status:"fulfilled",value:n}},n=>{this.completionOutcome={status:"rejected",error:n}}),e.closed.then(()=>this.markEndpointClosed(),n=>this.markEndpointClosed(n))}markEndpointClosed(e){e!==void 0&&this.getCloseError(e),this.endpointClosed=!0,this.disposeRegistration()}disposeRegistration(){let e=this.registrationDispose;this.registrationDispose=void 0,e?.()}disposeUnpublishedRegistration(){this.locallyDisposed||(this.locallyDisposed=!0,this.disposeRegistration())}requireEndpoint(){if(!this.endpoint)throw new Error("VirtualStream endpoint is not staged");return this.endpoint}assertApplicationOperationsAllowed(){if(!$v.has(this))throw new Error("VirtualStream application use is not authorized")}assertApplicationOperation(e){if(this.assertApplicationOperationsAllowed(),this.assertNotClosed(),this.terminalPromise)throw new fi("VirtualStream has a terminal operation");if(this.direction!==e)throw new TypeError(`${this.direction} VirtualStreams cannot perform ${e} operations`)}assertNotClosed(){if(this.endpointClosed||this.locallyDisposed)throw this.getCloseError()}getCloseError(e){return this.closeError||(this.closeError=new fi("VirtualStream is closed",e===void 0?void 0:{cause:e})),this.closeError}followTerminal(e){let r=this.terminalPromise;if(this.terminalKind===e)return r;let n=new fi(`VirtualStream terminal ${this.terminalKind} already completed`);return r.then(()=>Promise.reject(n),()=>Promise.reject(n))}terminateEndpoint(e,r){if(this.terminalPromise)return this.followTerminal(r);let n=this.requireEndpoint();this.terminalKind=r;let o=e,s=Promise.resolve().then(()=>{let f=o;return o=void 0,f()});s.catch(()=>{});let a=s.then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",error:f})),l;a.then(f=>{l=f});let u=n.closed.then(()=>({status:"closed"}),f=>({status:"closedError",error:f})),c=(async()=>{let f=await Promise.race([a,u]);if(f.status==="fulfilled"||f.status==="rejected"){let p=await u;if(this.endpointClosed=!0,this.disposeRegistration(),f.status==="rejected")throw f.error;if(p.status==="closedError")throw p.error;return f.value}if(this.endpointClosed=!0,this.disposeRegistration(),f.status==="closedError")throw f.error;if(await Promise.resolve(),await Promise.resolve(),l?.status==="rejected")throw l.error;if(l?.status==="fulfilled")return l.value;if(r==="close"||r==="accept"){if(this.completionOutcome?.status==="fulfilled")return this.completionOutcome.value;throw this.completionOutcome?.status==="rejected"?this.completionOutcome.error:new rf(r)}})();return this.terminalPromise=c,c}};var Xt=class extends Error{static{i(this,"TypedResponseError")}constructor(e,r){super(e),this.name="TypedResponseError",this.errorText=e,this.errorData=r??{}}};var qo=Object.freeze({redacted:!0});var qv=Object.freeze(["onOutgoingRequest","onIncomingResponse","onIncomingRequest","onOutgoingResponse"]),Yv=Symbol.for("@api.global/typedrequest:global-hooks:3.8"),Vv=i(t=>({payloadProjector:t?.payloadProjector,errorProjector:t?.errorProjector}),"copyProjectionOptions"),of=i((t={})=>({hooks:t,projectedRegistrationsByPhase:{}}),"createTypedRouterHookRegistrationState"),uA=i(t=>qv.filter(e=>Object.hasOwn(t,e)).map(e=>[e,t[e]]),"getSuppliedHookEntries"),sf=i((t,e,r)=>{let n=uA(e);t.hooks={...t.hooks,...e};for(let[o]of n){let s=t.hooks[o];if(typeof s!="function"){delete t.projectedRegistrationsByPhase[o];continue}t.projectedRegistrationsByPhase[o]={callback:s,projectionOptions:Vv(r)}}},"mergeTypedRouterHookRegistrations"),af=i((t,e)=>{t.hooks=e;for(let r of qv)delete t.projectedRegistrationsByPhase[r]},"replaceTypedRouterHookRegistrations"),Yo=i(()=>{let t=globalThis[Yv];if(t?.version==="3.8"&&t.stateShape==="callback-bound-projections-v1"&&t.subscribers instanceof Map)return t;let e={version:"3.8",stateShape:"callback-bound-projections-v1",legacy:of(),subscribers:new Map};return globalThis[Yv]=e,e},"getRealmGlobalHookState"),Jv=i(()=>Yo().legacy.hooks,"getLegacyGlobalHooks"),Qv=i(t=>{af(Yo().legacy,t)},"replaceLegacyGlobalHooks"),Kv=i((t,e)=>{sf(Yo().legacy,t,e)},"mergeLegacyGlobalHooks"),Xv=i((t,e)=>{let r=Yo(),n=Symbol("typedrequest-hook-subscriber"),o=of();sf(o,t,e),r.subscribers.set(n,o);let s=!1;return()=>{s||(s=!0,r.subscribers.delete(n))}},"addGlobalHookSubscriber"),Zv=i(()=>{let t=Yo();af(t.legacy,{}),t.subscribers.clear()},"clearGlobalHookRegistrations"),nf=i(t=>{try{console.error(`TypedRequest hook projection failed (${t})`)}catch{}},"logProjectionFailure"),Em=i(t=>{try{console.error(`TypedRequest hook callback failed (${t})`)}catch{}},"logCallbackFailure"),cA=i((t,e)=>{let r={correlationId:t.correlationId,method:t.method,direction:t.direction,phase:t.phase,timestamp:t.timestamp,...t.durationMs===void 0?{}:{durationMs:t.durationMs},hasError:t.errorText!==void 0};try{return Object.freeze(r)}catch{nf(e);return}},"createMetadata"),Gv=i(t=>typeof SharedArrayBuffer>"u"?!1:t instanceof SharedArrayBuffer||Object.prototype.toString.call(t)==="[object SharedArrayBuffer]","isSharedArrayBuffer"),Vo=i((t,e=new Set)=>{if(!(t===null||typeof t!="object"&&typeof t!="function")){if(Gv(t))throw new TypeError("TypedRequest hook projections cannot contain SharedArrayBuffer");if(ArrayBuffer.isView(t)){if(Gv(t.buffer))throw new TypeError("TypedRequest hook projections cannot contain SharedArrayBuffer-backed views");return}if(!e.has(t)){if(e.add(t),t instanceof Map){for(let[r,n]of t)Vo(r,e),Vo(n,e);return}if(t instanceof Set){for(let r of t)Vo(r,e);return}for(let r of Reflect.ownKeys(t)){let n=Reflect.getOwnPropertyDescriptor(t,r);if(n){if(!Object.hasOwn(n,"value"))throw new TypeError("TypedRequest hook projections cannot contain accessor properties");Vo(n.value,e)}}}}},"assertNoSharedArrayBuffer"),fA=i((t,e,r,n)=>{if(!e||!r.payloadProjector)return{payload:qo,payloadRedacted:!0};try{let o=r.payloadProjector(t,e);Vo(o);let s=structuredClone(o);return Vo(s),s!==null&&(typeof s=="object"||typeof s=="function")&&Object.freeze(s),{payload:s,payloadRedacted:!1}}catch{return nf(n),{payload:qo,payloadRedacted:!0}}},"snapshotPayload"),pA=i((t,e,r,n)=>{if(!(!e||t.errorText===void 0||!r.errorProjector))try{let o=r.errorProjector(t.errorText,e);if(o===void 0)return;let s=structuredClone(o);if(typeof s!="string")throw new TypeError("TypedRequest error projector must return a string or undefined");return s}catch{nf(n);return}},"snapshotError"),hA=i((t,e,r)=>{let n=cA(t,r),o=fA(t.payload,n,e,r),s=pA(t,n,e,r),a={correlationId:t.correlationId,method:t.method,direction:t.direction,phase:t.phase,timestamp:t.timestamp,...t.durationMs===void 0?{}:{durationMs:t.durationMs},hasError:t.errorText!==void 0,...o,...s===void 0?{}:{error:s}};try{return Object.freeze(a)}catch{nf(r);let l={correlationId:t.correlationId,method:t.method,direction:t.direction,phase:t.phase,timestamp:t.timestamp,...t.durationMs===void 0?{}:{durationMs:t.durationMs},hasError:t.errorText!==void 0,payload:qo,payloadRedacted:!0};try{return Object.freeze(l)}catch{return l}}},"projectLogEntry"),Dm=i((t,e)=>{try{let r=t.hooks[e];if(typeof r!="function")return;let n=t.projectedRegistrationsByPhase[e];return{callback:r,projectionOptions:n?.callback===r?Vv(n.projectionOptions):{}}}catch{Em(e);return}},"snapshotDispatchRecipient"),Cm=i((t,e,r)=>{let n=hA(r,t.projectionOptions,e);try{let o=t.callback(n);o&&typeof o.then=="function"&&Promise.resolve(o).catch(()=>{Em(e)})}catch{Em(e)}},"dispatchToRecipient"),Go=i((t,e,r)=>{let n=Yo();if(n.subscribers.size===0){let a=Dm(n.legacy,t),l=r?Dm(r,t):void 0;if(!a&&!l)return;a&&Cm(a,t,e),l&&Cm(l,t,e);return}let s=[n.legacy,...Array.from(n.subscribers.values()),...r?[r]:[]].map(a=>Dm(a,t)).filter(a=>!!a);for(let a of s)Cm(a,t,e)},"dispatchTypedRequestHook");var lf=class{static{i(this,"TypedTools")}constructor(e){this.localData={},this.abortSignal=e??new AbortController().signal}async passGuards(e,r){let n=new ua.GuardSet(e);if(!await n.allGuardsPass(r)){let s=await n.getFailedHint(r);throw new Xt(`guard failed: ${s}`,{failedHint:s})}}};var Om=class t{static{i(this,"TypedHandler")}static{this.internalErrorMessage="Internal server error"}constructor(e,r){this.method=e,this.handlerFunction=r}async addResponse(e,r){if(e.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let n,o=new lf(r);e.localData&&(o.localData=e.localData);let s=await this.handlerFunction(e.request,o).catch(a=>{a instanceof Xt?n=a:(console.error(`TypedRequest handler '${this.method}' failed`),n=new Xt(t.internalErrorMessage))});return n&&(e.error={text:n.errorText,data:n.errorData}),s&&(e.response=s),e?.correlation?.phase&&(e.correlation.phase="response"),e}};function uf(t){let e=t?.method,r=t?.correlation?.id,n=t?.requestInstanceId;if(!(typeof e!="string"||e.length===0||typeof r!="string"||r.length===0||typeof n!="string"||n.length===0))return JSON.stringify([e,r,n])}i(uf,"getTypedRequestResponseInterestKey");var Mm=class t{static{i(this,"TypedRouter")}constructor(){this.hookRegistrationState=of(),this.routerMap=new xt.ObjectMap,this.fallbackRouterMap=new xt.ObjectMap,this.fallbackParentRouters=new Set,this.handlerMap=new xt.ObjectMap,this.middlewares=[],this.fireEventInterestMap=new xt.InterestMap(e=>e)}static{this.internalErrorMessage="Internal server error"}registerVirtualStreamTransportResolver(e){if(typeof e!="function")throw new TypeError("TypedRouter virtual stream transport resolver must be a function");if(this.virtualStreamTransportResolver)throw new Error("TypedRouter already has a virtual stream transport resolver owner");this.virtualStreamTransportResolver=e;let r=!1;return()=>{r||(r=!0,this.virtualStreamTransportResolver===e&&(this.virtualStreamTransportResolver=void 0))}}registerIncomingRequestAuthorityGuard(e){if(typeof e!="function")throw new TypeError("TypedRouter incoming request authority guard must be a function");if(this.incomingRequestAuthorityGuard)throw new Error("TypedRouter already has an incoming request authority guard owner");this.incomingRequestAuthorityGuard=e;let r=!1;return()=>{r||(r=!0,this.incomingRequestAuthorityGuard===e&&(this.incomingRequestAuthorityGuard=void 0))}}registerIncomingRequestSignalResolver(e){if(typeof e!="function")throw new TypeError("TypedRouter incoming request signal resolver must be a function");if(this.incomingRequestSignalResolver)throw new Error("TypedRouter already has an incoming request signal resolver owner");this.incomingRequestSignalResolver=e;let r=!1;return()=>{r||(r=!0,this.incomingRequestSignalResolver===e&&(this.incomingRequestSignalResolver=void 0))}}registerIncomingResponseAuthorityGuard(e){if(typeof e!="function")throw new TypeError("TypedRouter incoming response authority guard must be a function");if(this.incomingResponseAuthorityGuard)throw new Error("TypedRouter already has an incoming response authority guard owner");this.incomingResponseAuthorityGuard=e;let r=!1;return()=>{r||(r=!0,this.incomingResponseAuthorityGuard===e&&(this.incomingResponseAuthorityGuard=void 0))}}static get globalHooks(){return Jv()}static set globalHooks(e){Qv(e)}static setGlobalHooks(e,r){Kv(e,r)}static addGlobalHooks(e,r){return Xv(e,r)}static clearGlobalHooks(){Zv()}get hooks(){return this.hookRegistrationState.hooks}set hooks(e){af(this.hookRegistrationState,e)}setHooks(e,r){sf(this.hookRegistrationState,e,r)}callHook(e,r){Go(e,r,this.hookRegistrationState)}setErrorFromCaughtError(e,r,n){if(r instanceof Xt){e.error={text:r.errorText,data:r.errorData??{}};return}console.error(`TypedRequest ${n} failed`),e.error={text:t.internalErrorMessage,data:{}}}addMiddleware(e){this.middlewares.push(e)}addTypedHandler(e){if(this.getTypedHandlerForMethod(e.method))throw new Error(`a TypedHandler for ${e.method} alredy exists! Can't add another one.`);this.handlerMap.add(e);try{this.validateAffectedCompositionRoots()}catch(n){throw this.handlerMap.remove(e),n}}addTypedRouter(e){if(e===this)throw new Error("A TypedRouter cannot be composed with itself.");if(this.routerMap.findSync(a=>a===e))return()=>{};let n=this.canReachRouter(e),o=e.canReachRouter(this);if(n!==o)throw new Error("Cannot add a bidirectional TypedRouter edge across an existing composition boundary.");this.routerMap.add(e),e.routerMap.add(this);try{this.validateAffectedCompositionRoots()}catch(a){throw this.routerMap.remove(e),e.routerMap.remove(this),a}let s=!1;return()=>{s||(s=!0,this.routerMap.remove(e),e.routerMap.remove(this))}}addFallbackRouter(e){if(e===this)throw new Error("A TypedRouter cannot use itself as a fallback.");if(this.fallbackRouterMap.findSync(n=>n===e))return()=>{};if(e.canReachRouter(this))throw new Error("Adding this fallback would create a TypedRouter composition cycle.");this.fallbackRouterMap.add(e),e.fallbackParentRouters.add(this);try{this.validateAffectedCompositionRoots()}catch(n){throw this.fallbackRouterMap.remove(e),e.fallbackParentRouters.delete(this),n}let r=!1;return()=>{r||(r=!0,this.fallbackRouterMap.remove(e),e.fallbackParentRouters.delete(this))}}getMethodNames(){return[...this.collectReachableHandlers().keys()].sort()}canReachRouter(e,r=new Set){if(this===e)return!0;if(r.has(this))return!1;r.add(this);for(let n of[...this.routerMap.getArray(),...this.fallbackRouterMap.getArray()])if(n.canReachRouter(e,r))return!0;return!1}collectReachableHandlers(e=new Set,r=new Map){if(e.has(this))return r;e.add(this);for(let n of this.handlerMap.getArray()){let o=r.get(n.method);o||(o=new Set,r.set(n.method,o)),o.add(this)}for(let n of[...this.routerMap.getArray(),...this.fallbackRouterMap.getArray()])n.collectReachableHandlers(e,r);return r}getAffectedCompositionRoots(){let e=new Set,r=[this];for(;r.length>0;){let n=r.pop();e.has(n)||(e.add(n),r.push(...n.routerMap.getArray(),...n.fallbackParentRouters))}return e}validateAffectedCompositionRoots(){for(let e of this.getAffectedCompositionRoots())for(let[r,n]of e.collectReachableHandlers())if(n.size>1)throw new Error(`TypedRouter composition exposes more than one handler for method "${r}".`)}checkForTypedHandler(e){return!!this.getTypedHandlerForMethod(e)}getTypedHandlerForMethod(e,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(o=>o.method===e),n||this.routerMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(e,r))}),n||this.fallbackRouterMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(e,r))}),n}getTypedHandlerAndRouter(e,r=[]){r.push(this);let n=this.handlerMap.findSync(o=>o.method===e);if(n)return{handler:n,router:this};for(let o of this.routerMap.getArray())if(!r.includes(o)){let s=o.getTypedHandlerAndRouter(e,r);if(s)return s}for(let o of this.fallbackRouterMap.getArray())if(!r.includes(o)){let s=o.getTypedHandlerAndRouter(e,r);if(s)return s}return null}static{this.defaultRouteOptions={localRequest:!1,skipHooks:!1}}async routeAndAddResponse(e,r={}){if(!e||typeof e!="object")return null;let n;try{n=Object.prototype.propertyIsEnumerable.call(e,"localData")}catch{return null}let o={...t.defaultRouteOptions,...r};if(!this.sanitizeIncomingLocalData(e))return null;let s=Object.freeze({...o.trustedLocalData??{}});if(e?.correlation?.phase==="response"){let d=uf(e);if(!d)return null;if(this.incomingResponseAuthorityGuard){let g=Object.freeze({typedRouter:this,trustedLocalData:s,wireLocalDataPresent:n}),x=!1;try{x=this.incomingResponseAuthorityGuard(e,g)===!0}catch{}if(!x)return null}return o.skipHooks||this.callHook("onIncomingResponse",{correlationId:e.correlation.id,method:e.method,direction:"incoming",phase:"response",timestamp:Date.now(),payload:e.response,errorText:e.error?.text}),this.fireEventInterestMap.findInterest(d)?.fullfillInterest(e),null}if(e?.correlation?.phase!=="request"||typeof e.correlation.id!="string"||e.correlation.id.length===0||typeof e.method!="string"||e.method.length===0||!e.request||typeof e.request!="object")return console.log("TypedRouter received a malformed request DTO"),null;if(this.incomingRequestAuthorityGuard){let d=Object.freeze({typedRouter:this,trustedLocalData:s,wireLocalDataPresent:n}),g=!1;try{g=this.incomingRequestAuthorityGuard(e,d)===!0}catch{}if(!g)return null}let a,l=o.trustedAbortSignal;if(l!==void 0&&!this.isAbortSignal(l))throw new TypeError("TypedRouter trustedAbortSignal must be an AbortSignal");if(!l&&this.incomingRequestSignalResolver){if(typeof e.requestInstanceId!="string"||e.requestInstanceId.length===0)return null;let d=Object.freeze({typedRouter:this,trustedLocalData:s,wireLocalDataPresent:n});try{a=this.incomingRequestSignalResolver(e,d)}catch{return null}if(a&&(!this.isAbortSignal(a.abortSignal)||typeof a.complete!="function")){try{a.complete?.()}catch{}return null}l=a?.abortSignal}let u;try{u=this.virtualStreamTransportResolver?.(s)}catch(d){try{a?.complete()}catch{}throw d}let c=new Yr,f=new Yr,p=i(async d=>{await Promise.allSettled([c.rollback(d),f.rollback(d)])},"rollbackRouteActivations"),h=i(()=>{c.commit(),f.commit()},"commitRouteActivations"),m=i(async()=>(delete e.localData,lr.encodePayloadForNetwork(e,{side:"responding",virtualStreamTransport:u,activationScope:f})),"encodeResponse");try{if(e=await lr.decodePayloadFromNetworkAsync(e,{side:"responding",virtualStreamTransport:u,activationScope:c,abortSignal:l}),e.localData={...s},e.localData.firstTypedrouter=this,e?.correlation?.phase==="request"){let d=Date.now();o.skipHooks||this.callHook("onIncomingRequest",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"incoming",phase:"request",timestamp:d,payload:e.request});let g=this.getTypedHandlerAndRouter(e.method);if(!g)return console.log(`Cannot find handler for methodname ${e.method}`),e.error={text:"There is no available method for this call on the server side",data:{}},e.correlation.phase="response",e=await m(),await p(e.error),o.skipHooks||this.callHook("onOutgoingResponse",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-d,payload:e.response,errorText:e.error?.text}),this.assertTrustedAbortSignalActive(l),e;let{handler:x,router:w}=g;if(w.middlewares.length>0)try{for(let E of w.middlewares)await E(e)}catch(E){return this.setErrorFromCaughtError(e,E,`middleware for method '${e.method}'`),e.correlation.phase="response",e=await m(),await p(E),o.skipHooks||this.callHook("onOutgoingResponse",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-d,payload:e.response,errorText:e.error?.text}),this.assertTrustedAbortSignalActive(l),e}c.authorizeApplicationUse(),e=await x.addResponse(e,l);let T=!!e.error;return e=await m(),T&&await p(e.error),o.skipHooks||this.callHook("onOutgoingResponse",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-d,payload:e.response,errorText:e.error?.text}),T||(this.assertTrustedAbortSignalActive(l),h()),this.assertTrustedAbortSignalActive(l),e}return await p(new Error("TypedRouter received an unroutable request DTO")),this.assertTrustedAbortSignalActive(l),null}catch(d){throw await p(d),d}finally{try{a?.complete()}catch{}}}sanitizeIncomingLocalData(e){try{let r=Reflect.getOwnPropertyDescriptor(e,"localData");if(r&&(r.configurable!==!0||!Reflect.deleteProperty(e,"localData")))return!1;if(!Reflect.has(e,"localData"))return!0;if(!Reflect.isExtensible(e)||!Reflect.defineProperty(e,"localData",{configurable:!0,enumerable:!1,value:void 0,writable:!0}))return!1;let n=Reflect.getOwnPropertyDescriptor(e,"localData");return!!(n&&n.configurable===!0&&n.enumerable===!1&&n.value===void 0&&n.writable===!0)}catch{return!1}}isAbortSignal(e){return!!(e&&typeof e=="object"&&typeof Reflect.get(e,"aborted")=="boolean"&&typeof Reflect.get(e,"addEventListener")=="function"&&typeof Reflect.get(e,"removeEventListener")=="function")}assertTrustedAbortSignalActive(e){if(e?.aborted)throw e.reason??new DOMException("The operation was aborted","AbortError")}};var Im=class{static{i(this,"TypedTarget")}constructor(e){if(this.isAsync=!1,e.postMethodWithTypedRouter&&!e.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");let r=e.responseTimeoutMs??3e4;if(!Number.isSafeInteger(r)||r<=0||r>2147483647)throw new RangeError("TypedTarget responseTimeoutMs must be a positive safe integer no greater than 2147483647");this.options=e,this.responseTimeoutMs=r}async post(e,r={}){if(r.signal&&this.options.supportsAbortSignal!==!0)throw new Error("TypedTarget does not declare AbortSignal transport support");let n=this.options.postMethod||this.options.postMethodWithTypedRouter;if(!n)throw new Error("TypedTarget requires a post method");let o;if(this.options.typedRouterRef){let f=uf(e);if(!f)throw new TypeError("TypedTarget request response identity is malformed");o=await this.options.typedRouterRef.fireEventInterestMap.addInterest(f,e)}let s=r.signal;if(s?.aborted)throw o?.destroy(),s.reason??new DOMException("The operation was aborted","AbortError");let a,l=s?new Promise((f,p)=>{a=i(()=>{o?.destroy(),p(s.reason??new DOMException("The operation was aborted","AbortError"))},"abortListener"),s.addEventListener("abort",a,{once:!0})}):void 0,u,c=o?new Promise((f,p)=>{u=setTimeout(()=>{p(new Error(`TypedTarget response timed out after ${this.responseTimeoutMs}ms`))},this.responseTimeoutMs),u.unref?.()}):void 0;try{let f=Promise.resolve(n(e,r)),p=await Promise.race([f,...c?[c]:[],...l?[l]:[]]);return o?await Promise.race([o.interestFullfilled,c,...l?[l]:[]]):p||e}finally{u&&clearTimeout(u),s&&a&&s.removeEventListener("abort",a),o?.destroy()}}};var cf=new Dn.WebrequestClient,ff=2147483647,pf=class extends Error{static{i(this,"TypedRequestTimeoutError")}constructor(e,r){super(`Typed request "${e}" timed out after ${r}ms`),this.name="TypedRequestTimeoutError",this.method=e,this.timeoutMs=r}},hf=class extends Error{static{i(this,"TypedRequestRetryLimitError")}constructor(e,r){super(`Typed request "${e}" exceeded its ${r} server-directed retries`),this.name="TypedRequestRetryLimitError",this.method=e,this.maxRetries=r}},mf=class{static{i(this,"TypedRequest")}constructor(e,r){this.skipHooks=!1,typeof e=="string"?this.urlEndPoint=e:this.typedTarget=e,this.method=r}async fire(e,r=!1){let n=Date.now(),o=this.resolveFireOptions(r),s=this.createAbortContext(o);o.abortSignal=s.signal;let a=new Yr,l={method:this.method,request:e,response:null,requestInstanceId:da.uni(),correlation:{id:da.uni(),phase:"request"}};try{this.assertActive(o);let u=lr.encodePayloadForNetworkWithMetadata(l,{side:"requesting",activationScope:a,virtualStreamTransport:this.typedTarget?.options.virtualStreamTransport});l=u.payload;let c=u.containsNetworkDescriptor;if(c&&!this.urlEndPoint&&this.typedTarget.options.supportsAbortSignal!==!0)throw new Error("VirtualStreams require TypedTarget AbortSignal transport support");if(o.useCache&&c)throw new Error("TypedRequest response caching is not supported for requests containing VirtualStreams");this.assertActive(o),o.useCache&&(o.cacheKey=await this.createCacheKey(l),this.assertActive(o)),this.skipHooks||Go("onOutgoingRequest",{correlationId:l.correlation.id,method:this.method,direction:"outgoing",phase:"request",timestamp:n,payload:e}),a.publish();let f=await this.postTrObject(l,o);delete f.localData;let p=f.error;if(this.assertActive(o),p)throw this.skipHooks||Go("onIncomingResponse",{correlationId:l.correlation.id,method:this.method,direction:"incoming",phase:"response",timestamp:Date.now(),durationMs:Date.now()-n,payload:f.response,errorText:p.text}),this.assertActive(o),new Xt(p.text,p.data);let h=f.response;if(!this.urlEndPoint&&this.typedTarget.options.supportsAbortSignal!==!0&&lr.containsNetworkDescriptor(h))throw new Error("VirtualStreams require TypedTarget AbortSignal transport support");try{h=await lr.decodePayloadFromNetworkAsync(h,{side:"requesting",activationScope:a,virtualStreamTransport:this.typedTarget?.options.virtualStreamTransport,openDeadlineAt:o.deadlineAt,abortSignal:o.abortSignal})}catch(m){throw m instanceof pi&&o.deadlineAt!==void 0&&m.deadlineAt===o.deadlineAt?this.createTimeoutError(o):m}return this.assertActive(o),a.authorizeApplicationUse(),this.skipHooks||Go("onIncomingResponse",{correlationId:l.correlation.id,method:this.method,direction:"incoming",phase:"response",timestamp:Date.now(),durationMs:Date.now()-n,payload:h}),this.assertActive(o),a.commit(),h}catch(u){throw await a.rollback(u),u}finally{s.cleanup()}}async postTrObject(e,r={useCache:!1,maxRetries:3}){let n=0;for(;;){this.assertActive(r);let o=this.createRequestIdentitySnapshot(e),s;if(this.urlEndPoint){let a;try{a=await cf.postJsonWithMetadata(this.urlEndPoint,e,{cacheStrategy:r.useCache?"cache-first":"network-only",cacheKey:r.cacheKey,timeout:this.getRemainingTimeout(r),signal:r.abortSignal})}catch(l){throw r.cacheKey&&l instanceof SyntaxError&&await cf.deleteCache(r.cacheKey),r.abortSignal?.aborted?this.getAbortReason(r):r.timeoutMs!==void 0&&(this.hasDeadlineExpired(r)||Dn.isWebrequestTimeoutError(l))?this.createTimeoutError(r):l}s=a.data;try{a.metadata.fromCache?s=this.reconstructCachedHttpResponse(s,e,o):this.assertResponseEnvelope(s,o)}catch(l){throw r.cacheKey&&await cf.deleteCache(r.cacheKey),l}r.cacheKey&&!this.isReusableCachedHttpEnvelope(s)&&await cf.deleteCache(r.cacheKey)}else s=await this.postTypedTarget(e,r);if(this.assertResponseEnvelope(s,o),this.assertActive(r),s.error&&!s.retry||!s.retry)return s;if(console.log(`Server requested a retry for TypedRequest method '${this.method}'`),n>=r.maxRetries)throw new hf(this.method,r.maxRetries);n+=1,await this.waitForRetry(s.retry.waitForMs,r),e.requestInstanceId=da.uni(),e.correlation.phase="request",e.response=null,delete e.error,delete e.retry}}assertResponseEnvelope(e,r){let n=e?.error,o=e?.requestInstanceId,s=r.requestInstanceId;if(!e||typeof e!="object"||e.method!==r.method||e.correlation?.phase!=="response"||typeof e.correlation.id!="string"||e.correlation.id.length===0||!Object.hasOwn(e,"response")||typeof o!="string"||o.length===0||typeof s!="string"||s.length===0||o!==s||n!==void 0&&(!n||typeof n!="object"||typeof n.text!="string")||e.correlation.id!==r.correlationId)throw new TypeError("TypedRequest received an invalid response envelope")}async postTypedTarget(e,r){this.assertActive(r);try{return await this.typedTarget.post(e,{signal:r.abortSignal})}catch(n){throw r.abortSignal?.aborted?this.getAbortReason(r):n}}resolveFireOptions(e){let r=typeof e=="boolean"?{useCache:e}:e;if(!r||typeof r!="object")throw new TypeError("TypedRequest fire options must be a boolean or an options object");if(r.useCache!==void 0&&typeof r.useCache!="boolean")throw new TypeError("TypedRequest useCache must be a boolean");if(r.timeoutMs!==void 0&&(!Number.isSafeInteger(r.timeoutMs)||r.timeoutMs<=0||r.timeoutMs>ff))throw new RangeError(`TypedRequest timeoutMs must be a positive safe integer no greater than ${ff}`);if(r.abortSignal!==void 0&&!this.isAbortSignal(r.abortSignal))throw new TypeError("TypedRequest abortSignal must be an AbortSignal");if(r.maxRetries!==void 0&&(!Number.isSafeInteger(r.maxRetries)||r.maxRetries<0||r.maxRetries>1e3))throw new RangeError("TypedRequest maxRetries must be a safe integer between 0 and 1000");if((r.timeoutMs!==void 0||r.abortSignal!==void 0)&&!this.urlEndPoint&&this.typedTarget.options.supportsAbortSignal!==!0)throw new Error(r.abortSignal?"TypedRequest cancellation requires an HTTP URL or a TypedTarget with AbortSignal support":"TypedRequest timeoutMs requires an HTTP URL or a TypedTarget with AbortSignal support");return{useCache:r.useCache??!1,timeoutMs:r.timeoutMs,maxRetries:r.maxRetries??3,abortSignal:r.abortSignal,deadlineAt:r.timeoutMs===void 0?void 0:performance.now()+r.timeoutMs}}getRemainingTimeout(e){if(e.deadlineAt===void 0||e.timeoutMs===void 0)return;let r=Math.ceil(e.deadlineAt-performance.now());if(r<=0)throw this.createTimeoutError(e);return r}assertDeadline(e){this.getRemainingTimeout(e)}assertActive(e){if(e.abortSignal?.aborted)throw this.getAbortReason(e);this.assertDeadline(e)}hasDeadlineExpired(e){return e.deadlineAt!==void 0&&performance.now()>=e.deadlineAt}createTimeoutError(e){return new pf(this.method,e.timeoutMs)}async waitForRetry(e,r){if(!Number.isSafeInteger(e)||e<=0||e>ff)throw new RangeError(`TypedRequest retry waitForMs must be a positive safe integer no greater than ${ff}`);this.assertActive(r);let n=this.getRemainingTimeout(r);if(n===void 0){await this.delayWithAbort(e,r);return}if(e>=n)throw await this.delayWithAbort(n,r),this.createTimeoutError(r);await this.delayWithAbort(e,r),this.assertActive(r)}async delayWithAbort(e,r){let n=r.abortSignal;if(!n){await ge.delayFor(e);return}await new Promise((o,s)=>{let a=setTimeout(()=>{n.removeEventListener("abort",l),o()},e),l=i(()=>{clearTimeout(a),n.removeEventListener("abort",l),s(this.getAbortReason(r))},"onAbort");n.addEventListener("abort",l,{once:!0}),n.aborted&&l()})}createAbortContext(e){let r=e.abortSignal;if(e.timeoutMs===void 0)return{signal:r,cleanup:i(()=>{},"cleanup")};let n=new AbortController,o=i(()=>{n.abort(r?.reason??new DOMException("The operation was aborted","AbortError"))},"onCallerAbort");r?.aborted?o():r?.addEventListener("abort",o,{once:!0});let s=Math.max(0,Math.ceil(e.deadlineAt-performance.now())),a=setTimeout(()=>{n.abort(this.createTimeoutError(e))},s);return a.unref?.(),{signal:n.signal,cleanup:i(()=>{clearTimeout(a),r?.removeEventListener("abort",o)},"cleanup")}}getAbortReason(e){return e.abortSignal?.reason??new DOMException("The operation was aborted","AbortError")}reconstructCachedHttpResponse(e,r,n){if(!e||typeof e!="object"||Array.isArray(e)||e.method!==n.method||!Object.hasOwn(e,"response")||!e.response||typeof e.response!="object"||!this.isReusableCachedHttpEnvelope(e))throw new TypeError("TypedRequest received an invalid cached response envelope");return{method:n.method,request:r.request,response:e.response,requestInstanceId:n.requestInstanceId,correlation:{id:n.correlationId,phase:"response"}}}createRequestIdentitySnapshot(e){return Object.freeze({method:e.method,correlationId:e.correlation?.id,requestInstanceId:e.requestInstanceId})}isReusableCachedHttpEnvelope(e){return!Object.hasOwn(e,"error")&&!Object.hasOwn(e,"retry")&&!lr.containsNetworkDescriptor(e)}isAbortSignal(e){return!!(e&&typeof e=="object"&&typeof Reflect.get(e,"aborted")=="boolean"&&typeof Reflect.get(e,"addEventListener")=="function"&&typeof Reflect.get(e,"removeEventListener")=="function")}async createCacheKey(e){let r=JSON.stringify({endpoint:this.urlEndPoint,method:e.method,request:e.request}),n=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(r));return`typedrequest:v1:${Array.from(new Uint8Array(n),s=>s.toString(16).padStart(2,"0")).join("")}`}};function eS(t){return t&&typeof t.then=="function"}i(eS,"isPromise");var tS=Promise.resolve(!1),q_e=Promise.resolve(!0),Pr=Promise.resolve();function df(t,e){return t||(t=0),new Promise(function(r){return setTimeout(function(){return r(e)},t)})}i(df,"sleep");function rS(t,e){return Math.floor(Math.random()*(e-t+1)+t)}i(rS,"randomInt");function ga(){return Math.random().toString(36).substring(2)}i(ga,"randomToken");var _m=0;function Vr(){var t=Date.now()*1e3;return t<=_m&&(t=_m+1),_m=t,t}i(Vr,"microSeconds");function Y_e(){return typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function"}i(Y_e,"supportsWebLockAPI");var mA=Vr,dA="native";function gA(t){var e={time:Vr(),messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(r){e.messagesCallback&&e.messagesCallback(r.data)},e}i(gA,"create");function xA(t){t.bc.close(),t.subFns=[]}i(xA,"close");function yA(t,e){try{return t.bc.postMessage(e,!1),Pr}catch(r){return Promise.reject(r)}}i(yA,"postMessage");function wA(t,e){t.messagesCallback=e}i(wA,"onMessage");function bA(){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(bA,"canBeUsed");function vA(){return 150}i(vA,"averageResponseTime");var nS={create:gA,close:xA,onMessage:wA,postMessage:yA,canBeUsed:bA,type:dA,averageResponseTime:vA,microSeconds:mA};var Jo=class{static{i(this,"ObliviousSet")}ttl;map=new Map;_to=!1;constructor(e){this.ttl=e}has(e){let r=this.map.get(e);return typeof r>"u"?!1:r<Pm()-this.ttl?(this.map.delete(e),!1):!0}add(e){this.map.delete(e),this.map.set(e,Pm()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,SA(this)},0))}clear(){this.map.clear()}};function SA(t){let e=Pm()-t.ttl,r=t.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)break;let o=n[0];if(n[1]<e)t.map.delete(o);else break}}i(SA,"removeTooOldValues");function Pm(){return Date.now()}i(Pm,"now");function hi(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return typeof e.webWorkerSupport>"u"&&(e.webWorkerSupport=!0),e.idb||(e.idb={}),e.idb.ttl||(e.idb.ttl=1e3*45),e.idb.fallbackInterval||(e.idb.fallbackInterval=150),t.idb&&typeof t.idb.onclose=="function"&&(e.idb.onclose=t.idb.onclose),e.localstorage||(e.localstorage={}),e.localstorage.removeTimeout||(e.localstorage.removeTimeout=1e3*60),t.methods&&(e.methods=t.methods),e.node||(e.node={}),e.node.ttl||(e.node.ttl=1e3*60*2),e.node.maxParallelWrites||(e.node.maxParallelWrites=2048),typeof e.node.useFastPath>"u"&&(e.node.useFastPath=!0),e}i(hi,"fillOptionsWithDefaults");var kA=Vr,TA="pubkey.broadcast-channel-0-",ur="messages",xa={durability:"relaxed"},EA="idb";function iS(){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(iS,"getIdb");function gf(t){t.commit&&t.commit()}i(gf,"commitIndexedDBTransaction");function DA(t){var e=iS(),r=TA+t,n=e.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(DA,"createDatabase");function CA(t,e,r){var n=Date.now(),o={uuid:e,time:n,data:r},s=t.transaction([ur],"readwrite",xa);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),gf(s)})}i(CA,"writeMessage");function oPe(t){var e=t.transaction(ur,"readonly",xa),r=e.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()):(gf(e),o(n))}})}i(oPe,"getAllMessages");function OA(t,e){var r=t.transaction(ur,"readonly",xa),n=r.objectStore(ur),o=[],s=IDBKeyRange.bound(e+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(e+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<e+1?h.continue(e+1):(o.push(h.value),h.continue()):(gf(r),u(o))}})}i(OA,"getMessagesHigherThan");function MA(t,e){if(t.closed)return Promise.resolve([]);var r=t.db.transaction(ur,"readwrite",xa),n=r.objectStore(ur);return Promise.all(e.map(function(o){var s=n.delete(o);return new Promise(function(a){s.onsuccess=function(){return a()}})}))}i(MA,"removeMessagesById");function IA(t,e){var r=Date.now()-e,n=t.transaction(ur,"readonly",xa),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()):(gf(n),a(s))}else a(s)}})}i(IA,"getOldMessages");function _A(t){return IA(t.db,t.options.idb.ttl).then(function(e){return MA(t,e.map(function(r){return r.id}))})}i(_A,"cleanOldMessages");function PA(t,e){return e=hi(e),DA(t).then(function(r){var n={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:ga(),eMIs:new Jo(e.idb.ttl*2),writeBlockPromise:Pr,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,e.idb.onclose&&e.idb.onclose()},oS(n),n})}i(PA,"create");function oS(t){t.closed||sS(t).then(function(){return df(t.options.idb.fallbackInterval)}).then(function(){return oS(t)})}i(oS,"_readLoop");function NA(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}i(NA,"_filterMessage");function sS(t){return t.closed?Pr:t.messagesCallback?OA(t.db,t.lastCursorId).then(function(e){var r=e.filter(function(n){return!!n}).map(function(n){return n.id>t.lastCursorId&&(t.lastCursorId=n.id),n}).filter(function(n){return NA(n,t)}).sort(function(n,o){return n.time-o.time});return r.forEach(function(n){t.messagesCallback&&(t.eMIs.add(n.id),t.messagesCallback(n.data))}),Pr}):Pr}i(sS,"readNewMessages");function AA(t){t.closed=!0,t.db.close()}i(AA,"close");function RA(t,e){return t.writeBlockPromise=t.writeBlockPromise.then(function(){return CA(t.db,t.uuid,e)}).then(function(){rS(0,10)===0&&_A(t)}),t.writeBlockPromise}i(RA,"postMessage");function FA(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e,sS(t)}i(FA,"onMessage");function LA(){return!!iS()}i(LA,"canBeUsed");function BA(t){return t.idb.fallbackInterval*2}i(BA,"averageResponseTime");var aS={create:PA,close:AA,onMessage:FA,postMessage:RA,canBeUsed:LA,type:EA,averageResponseTime:BA,microSeconds:kA};var zA=Vr,jA="pubkey.broadcastChannel-",HA="localstorage";function lS(){var t;if(typeof window>"u")return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return t}i(lS,"getLocalStorage");function uS(t){return jA+t}i(uS,"storageKey");function WA(t,e){return new Promise(function(r){df().then(function(){var n=uS(t.channelName),o={token:ga(),time:Date.now(),data:e,uuid:t.uuid},s=JSON.stringify(o);lS().setItem(n,s);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=n,a.newValue=s,window.dispatchEvent(a),r()})})}i(WA,"postMessage");function $A(t,e){var r=uS(t),n=i(function(s){s.key===r&&e(JSON.parse(s.newValue))},"listener");return window.addEventListener("storage",n),n}i($A,"addStorageEventListener");function UA(t){window.removeEventListener("storage",t)}i(UA,"removeStorageEventListener");function qA(t,e){if(e=hi(e),!cS())throw new Error("BroadcastChannel: localstorage cannot be used");var r=ga(),n=new Jo(e.localstorage.removeTimeout),o={channelName:t,uuid:r,eMIs:n};return o.listener=$A(t,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(qA,"create");function YA(t){UA(t.listener)}i(YA,"close");function VA(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e}i(VA,"onMessage");function cS(){var t=lS();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch{return!1}return!0}i(cS,"canBeUsed");function GA(){var t=120,e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?t*2:t}i(GA,"averageResponseTime");var fS={create:qA,close:YA,onMessage:VA,postMessage:WA,canBeUsed:cS,type:HA,averageResponseTime:GA,microSeconds:zA};var pS=Vr,JA="simulate",Nm=new Set;function QA(t){var e={time:pS(),name:t,messagesCallback:null};return Nm.add(e),e}i(QA,"create");function KA(t){Nm.delete(t)}i(KA,"close");var hS=5;function XA(t,e){return new Promise(function(r){return setTimeout(function(){var n=Array.from(Nm);n.forEach(function(o){o.name===t.name&&o!==t&&o.messagesCallback&&o.time<e.time&&o.messagesCallback(e)}),r()},hS)})}i(XA,"postMessage");function ZA(t,e){t.messagesCallback=e}i(ZA,"onMessage");function eR(){return!0}i(eR,"canBeUsed");function tR(){return hS}i(tR,"averageResponseTime");var mS={create:QA,close:KA,onMessage:ZA,postMessage:XA,canBeUsed:eR,type:JA,averageResponseTime:tR,microSeconds:pS};var dS=[nS,aS,fS];function Am(t){var e=[].concat(t.methods,dS).filter(Boolean);if(t.type){if(t.type==="simulate")return mS;var r=e.find(function(o){return o.type===t.type});if(r)return r;throw new Error("method-type "+t.type+" not found")}t.webWorkerSupport||(e=e.filter(function(o){return o.type!=="idb"}));var n=e.find(function(o){return o.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(dS.map(function(o){return o.type})))}i(Am,"chooseMethod");var Fm=new Set,rR=0,mi=i(function(e,r){this.id=rR++,Fm.add(this),this.name=e,Rm&&(r=Rm),this.options=hi(r),this.method=Am(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,oR(this)},"BroadcastChannel");mi._pubkey=!0;function nR(t){t=hi(t);var e=Am(t);return e.type==="node"?e.clearNodeFolder().then(function(){return!0}):tS}i(nR,"clearNodeFolder");var Rm;function iR(t){Rm=t}i(iR,"enforceOptions"),mi.prototype={postMessage:i(function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return gS(this,"message",e)},"postMessage"),postInternal:i(function(e){return gS(this,"internal",e)},"postInternal"),set onmessage(t){var e=this.method.microSeconds(),r={time:e,fn:t};wS(this,"message",this._onML),t&&typeof t=="function"?(this._onML=r,yS(this,"message",r)):this._onML=null},addEventListener:i(function(e,r){var n=this.method.microSeconds(),o={time:n,fn:r};yS(this,e,o)},"addEventListener"),removeEventListener:i(function(e,r){var n=this._addEL[e].find(function(o){return o.fn===r});wS(this,e,n)},"removeEventListener"),close:i(function(){var e=this;if(!this.closed){Fm.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(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},"close"),get type(){return this.method.type},get isClosed(){return this.closed}};function gS(t,e,r){var n=t.method.microSeconds(),o={time:n,type:e,data:r},s=t._prepP?t._prepP:Pr;return s.then(function(){var a=t.method.postMessage(t._state,o);return t._uMP.add(a),a.catch().then(function(){return t._uMP.delete(a)}),a})}i(gS,"_post");function oR(t){var e=t.method.create(t.name,t.options);eS(e)?(t._prepP=e,e.then(function(r){t._state=r})):t._state=e}i(oR,"_prepareChannel");function xS(t){return t._addEL.message.length>0||t._addEL.internal.length>0}i(xS,"_hasMessageListeners");function yS(t,e,r){t._addEL[e].push(r),sR(t)}i(yS,"_addListenerObject");function wS(t,e,r){t._addEL[e]=t._addEL[e].filter(function(n){return n!==r}),aR(t)}i(wS,"_removeListenerObject");function sR(t){if(!t._iL&&xS(t)){var e=i(function(o){t._addEL[o.type].forEach(function(s){o.time>=s.time&&s.fn(o.data)})},"listenerFn"),r=t.method.microSeconds();t._prepP?t._prepP.then(function(){t._iL=!0,t.method.onMessage(t._state,e,r)}):(t._iL=!0,t.method.onMessage(t._state,e,r))}}i(sR,"_startListening");function aR(t){if(t._iL&&!xS(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}i(aR,"_stopListening");var Lm=globalThis.BroadcastChannel;Lm||(Lm=mi);var Bm=class{static{i(this,"DeesComms")}constructor(){this.broadcastChannel=new Lm("dees-comms"),this.typedrouter=new At.TypedRouter,this.typedtarget=new At.TypedTarget({postMethodWithTypedRouter:i(async e=>{this.postMessage(e)},"postMethodWithTypedRouter"),typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async e=>{let r=e.method?e:e.data,n=await this.typedrouter.routeAndAddResponse(r,{skipHooks:!0});n&&!n.error&&this.postMessage(n)}}createTypedRequest(e){return new At.TypedRequest(this.typedtarget,e)}async postMessage(e){this.broadcastChannel.postMessage(e)}async createTypedHandler(e,r){this.typedrouter.addTypedHandler(new At.TypedHandler(e,r))}};var Qa={};ae(Qa,{SmartMarkdown:()=>Kg});function Km(t){if(t)throw t}i(Km,"bail");function Ea(t){if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}i(Ea,"isPlainObject");function Xm(){let t=[],e={run:r,use:n};return e;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=t[++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?k1(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 t.push(o),e}}i(Xm,"trough");function k1(t,e){let r;return n;function n(...a){let l=t.length>a.length,u;l&&a.push(o);try{u=t.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,e(a,...l))}function s(a){o(null,a)}}i(k1,"wrap");function Mn(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?T1(t.position):"start"in t||"end"in t?T1(t):"line"in t||"column"in t?Zm(t):""}i(Mn,"stringifyPosition");function Zm(t){return E1(t&&t.line)+":"+E1(t&&t.column)}i(Zm,"point");function T1(t){return Zm(t&&t.start)+"-"+Zm(t&&t.end)}i(T1,"position");function E1(t){return t&&typeof t=="number"?t:1}i(E1,"index");var ot=class extends Error{static{i(this,"VFileMessage")}constructor(e,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 e=="string"?o=e:!s.cause&&e&&(a=!0,o=e.message,s.cause=e),!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=Mn(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:YL,dirname:VL,extname:GL,join:JL,sep:"/"};function YL(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Da(t);let r=0,n=-1,o=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else n<0&&(s=!0,n=o+1);return n<0?"":t.slice(r,n)}if(e===t)return"";let a=-1,l=e.length-1;for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else a<0&&(s=!0,a=o+1),l>-1&&(t.codePointAt(o)===e.codePointAt(l--)?l<0&&(n=o):(l=-1,n=a));return r===n?n=a:n<0&&(n=t.length),t.slice(r,n)}i(YL,"basename");function VL(t){if(Da(t),t.length===0)return".";let e=-1,r=t.length,n;for(;--r;)if(t.codePointAt(r)===47){if(n){e=r;break}}else n||(n=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}i(VL,"dirname");function GL(t){Da(t);let e=t.length,r=-1,n=0,o=-1,s=0,a;for(;e--;){let l=t.codePointAt(e);if(l===47){if(a){n=e+1;break}continue}r<0&&(a=!0,r=e+1),l===46?o<0?o=e:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===n+1?"":t.slice(o,r)}i(GL,"extname");function JL(...t){let e=-1,r;for(;++e<t.length;)Da(t[e]),t[e]&&(r=r===void 0?t[e]:r+"/"+t[e]);return r===void 0?".":QL(r)}i(JL,"join");function QL(t){Da(t);let e=t.codePointAt(0)===47,r=KL(t,!e);return r.length===0&&!e&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),e?"/"+r:r}i(QL,"normalize");function KL(t,e){let r="",n=0,o=-1,s=0,a=-1,l,u;for(;++a<=t.length;){if(a<t.length)l=t.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}}e&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+t.slice(o+1,a):r=t.slice(o+1,a),n=a-o-1;o=a,s=0}else l===46&&s>-1?s++:s=-1}return r}i(KL,"normalizeString");function Da(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}i(Da,"assertPath");var D1={cwd:XL};function XL(){return"/"}i(XL,"cwd");function ns(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}i(ns,"isUrl");function C1(t){if(typeof t=="string")t=new URL(t);else if(!ns(t)){let e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){let e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return ZL(t)}i(C1,"urlToPath");function ZL(t){if(t.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 e=t.pathname,r=-1;for(;++r<e.length;)if(e.codePointAt(r)===37&&e.codePointAt(r+1)===50){let n=e.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(e)}i(ZL,"getPathFromURLPosix");var ed=["history","path","basename","stem","extname","dirname"],Ca=class{static{i(this,"VFile")}constructor(e){let r;e?ns(e)?r={path:e}:typeof e=="string"||e2(e)?r={value:e}:r=e:r={},this.cwd="cwd"in r?"":D1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<ed.length;){let s=ed[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)ed.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?cr.basename(this.path):void 0}set basename(e){rd(e,"basename"),td(e,"basename"),this.path=cr.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?cr.dirname(this.path):void 0}set dirname(e){O1(this.basename,"dirname"),this.path=cr.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?cr.extname(this.path):void 0}set extname(e){if(td(e,"extname"),O1(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=cr.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ns(e)&&(e=C1(e)),rd(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?cr.basename(this.path,this.extname):void 0}set stem(e){rd(e,"stem"),td(e,"stem"),this.path=cr.join(this.dirname||"",e+(this.extname||""))}fail(e,r,n){let o=this.message(e,r,n);throw o.fatal=!0,o}info(e,r,n){let o=this.message(e,r,n);return o.fatal=void 0,o}message(e,r,n){let o=new ot(e,r,n);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function td(t,e){if(t&&t.includes(cr.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+cr.sep+"`")}i(td,"assertPart");function rd(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}i(rd,"assertNonEmpty");function O1(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}i(O1,"assertPath");function e2(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}i(e2,"isUint8Array");var M1=i((function(t){let n=this.constructor.prototype,o=n[t],s=i(function(){return o.apply(s,arguments)},"apply");return Object.setPrototypeOf(s,n),s}),"CallableInstance");var Mf=jt(S1(),1),t2={}.hasOwnProperty,nd=class t extends M1{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=Xm()}copy(){let e=new t,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];e.use(...n)}return e.data((0,Mf.default)(!0,{},this.namespace)),e}data(e,r){return typeof e=="string"?arguments.length===2?(sd("data",this.frozen),this.namespace[e]=r,this):t2.call(this.namespace,e)&&this.namespace[e]||void 0:e?(sd("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=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(e,...n);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let r=Of(e),n=this.parser||this.Parser;return id("parse",n),n(String(r),r)}process(e,r){let n=this;return this.freeze(),id("process",this.parser||this.Parser),od("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,a){let l=Of(e),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);n2(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(e){let r=!1,n;return this.freeze(),id("processSync",this.parser||this.Parser),od("processSync",this.compiler||this.Compiler),this.process(e,o),_1("processSync","process",r),n;function o(s,a){r=!0,Km(s),n=a}i(o,"realDone")}run(e,r,n){I1(e),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=Of(r);o.run(e,u,c);function c(f,p,h){let m=p||e;f?l(f):a?a(m):n(void 0,m,h)}i(c,"realDone")}i(s,"executor")}runSync(e,r){let n=!1,o;return this.run(e,r,s),_1("runSync","run",n),o;function s(a,l){Km(a),o=l,n=!0}i(s,"realDone")}stringify(e,r){this.freeze();let n=Of(r),o=this.compiler||this.Compiler;return od("stringify",o),I1(e),o(e,n)}use(e,...r){let n=this.attachers,o=this.namespace;if(sd("use",this.frozen),e!=null)if(typeof e=="function")u(e,r);else if(typeof e=="object")Array.isArray(e)?l(e):a(e);else throw new TypeError("Expected usable value, not `"+e+"`");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,Mf.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];Ea(g)&&Ea(m)&&(m=(0,Mf.default)(!0,g,m)),n[h]=[c,m,...d]}}}},Oa=new nd().freeze();function id(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}i(id,"assertParser");function od(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}i(od,"assertCompiler");function sd(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}i(sd,"assertUnfrozen");function I1(t){if(!Ea(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}i(I1,"assertNode");function _1(t,e,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}i(_1,"assertDone");function Of(t){return r2(t)?t:new Ca(t)}i(Of,"vfile");function r2(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}i(r2,"looksLikeAVFile");function n2(t){return typeof t=="string"||i2(t)}i(n2,"looksLikeAValue");function i2(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}i(i2,"isUint8Array");function os(t,e){let r=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,o=r.indexOf(e);for(;o!==-1;)n++,o=r.indexOf(e,o+e.length);return n}i(os,"ccount");var Ze=In(/[A-Za-z]/),je=In(/[\dA-Za-z]/),P1=In(/[#-'*+\--9=?A-Z^-~]/);function Si(t){return t!==null&&(t<32||t===127)}i(Si,"asciiControl");var Ma=In(/\d/),N1=In(/[\dA-Fa-f]/),A1=In(/[!-/:-@[-`{-~]/);function U(t){return t!==null&&t<-2}i(U,"markdownLineEnding");function me(t){return t!==null&&(t<0||t===32)}i(me,"markdownLineEndingOrSpace");function K(t){return t===-2||t===-1||t===32}i(K,"markdownSpace");var ki=In(/\p{P}|\p{S}/u),Rr=In(/\s/);function In(t){return e;function e(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}i(In,"regexCheck");var F1=i((function(t,e,r,n,o){let s=Jr(e);if(r!=null&&(typeof r!="number"||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(n!=null&&(!F1(n)||!n.children))throw new Error("Expected parent node");if(n==null!=(r==null))throw new Error("Expected both parent and index");return R1(t)?s.call(o,t,r,n):!1}),"is"),Jr=i((function(t){if(t==null)return l2;if(typeof t=="function")return If(t);if(typeof t=="object")return Array.isArray(t)?o2(t):s2(t);if(typeof t=="string")return a2(t);throw new Error("Expected function, string, or object as test")}),"convert");function o2(t){let e=[],r=-1;for(;++r<t.length;)e[r]=Jr(t[r]);return If(n);function n(...o){let s=-1;for(;++s<e.length;)if(e[s].apply(this,o))return!0;return!1}}i(o2,"anyFactory");function s2(t){let e=t;return If(r);function r(n){let o=n,s;for(s in t)if(o[s]!==e[s])return!1;return!0}}i(s2,"propertiesFactory");function a2(t){return If(e);function e(r){return r&&r.type===t}}i(a2,"typeFactory");function If(t){return e;function e(r,n,o){return!!(R1(r)&&t.call(this,r,typeof n=="number"?n:void 0,o||void 0))}}i(If,"castFactory");function l2(){return!0}i(l2,"ok");function R1(t){return t!==null&&typeof t=="object"&&"type"in t}i(R1,"looksLikeANode");var L1=[],_f=!0,Ti=!1,Pf="skip";function Ia(t,e,r,n){let o;typeof e=="function"&&typeof r!="function"?(n=r,r=e):o=e;let s=Jr(o),a=n?-1:1;l(t,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=L1,d,g,x;if((!e||s(u,c,f[f.length-1]||void 0))&&(m=u2(r(u,f)),m[0]===Ti))return m;if("children"in u&&u.children){let w=u;if(w.children&&m[0]!==Pf)for(g=(n?w.children.length:-1)+a,x=f.concat(w);g>-1&&g<w.children.length;){let T=w.children[g];if(d=l(T,g,x)(),d[0]===Ti)return d;g=typeof d[1]=="number"?d[1]:g+a}}return m}}i(l,"factory")}i(Ia,"visitParents");function u2(t){return Array.isArray(t)?t:typeof t=="number"?[_f,t]:t==null?L1:[t]}i(u2,"toResult");function ad(t,e,r){let o=Jr((r||{}).ignore||[]),s=c2(e),a=-1;for(;++a<s.length;)Ia(t,"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),w=!1,T=[];h.lastIndex=0;let E=h.exec(c.value);for(;E;){let q=E.index,H={index:E.index,input:E.input,stack:[...f,c]},O=m(...E,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+E[0].length,w=!0),!h.global)break;E=h.exec(c.value)}return w?(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(ad,"findAndReplace");function c2(t){let e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!t[0]||Array.isArray(t[0])?t:[t],n=-1;for(;++n<r.length;){let o=r[n];e.push([f2(o[0]),p2(o[1])])}return e}i(c2,"toPairs");function f2(t){return typeof t=="string"?new RegExp(Yn(t),"g"):t}i(f2,"toExpression");function p2(t){return typeof t=="function"?t:function(){return t}}i(p2,"toFunction");var ld="phrasing",ud=["autolink","link","image","label"];function fd(){return{transforms:[y2],enter:{literalAutolink:h2,literalAutolinkEmail:cd,literalAutolinkHttp:cd,literalAutolinkWww:cd},exit:{literalAutolink:x2,literalAutolinkEmail:g2,literalAutolinkHttp:m2,literalAutolinkWww:d2}}}i(fd,"gfmAutolinkLiteralFromMarkdown");function pd(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ld,notInConstruct:ud},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ld,notInConstruct:ud},{character:":",before:"[ps]",after:"\\/",inConstruct:ld,notInConstruct:ud}]}}i(pd,"gfmAutolinkLiteralToMarkdown");function h2(t){this.enter({type:"link",title:null,url:"",children:[]},t)}i(h2,"enterLiteralAutolink");function cd(t){this.config.enter.autolinkProtocol.call(this,t)}i(cd,"enterLiteralAutolinkValue");function m2(t){this.config.exit.autolinkProtocol.call(this,t)}i(m2,"exitLiteralAutolinkHttp");function d2(t){this.config.exit.data.call(this,t);let e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}i(d2,"exitLiteralAutolinkWww");function g2(t){this.config.exit.autolinkEmail.call(this,t)}i(g2,"exitLiteralAutolinkEmail");function x2(t){this.exit(t)}i(x2,"exitLiteralAutolink");function y2(t){ad(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,w2],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,b2]],{ignore:["link","linkReference"]})}i(y2,"transformGfmAutolinkLiterals");function w2(t,e,r,n,o){let s="";if(!B1(o)||(/^w/i.test(e)&&(r=e+r,e="",s="http://"),!v2(r)))return!1;let a=S2(r+n);if(!a[0])return!1;let l={type:"link",title:null,url:s+e+a[0],children:[{type:"text",value:e+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}i(w2,"findUrl");function b2(t,e,r,n){return!B1(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+r,children:[{type:"text",value:e+"@"+r}]}}i(b2,"findEmail");function v2(t){let e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}i(v2,"isCorrectDomain");function S2(t){let e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let r=e[0],n=r.indexOf(")"),o=os(t,"("),s=os(t,")");for(;n!==-1&&o>s;)t+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),s++;return[t,r]}i(S2,"splitUrl");function B1(t,e){let r=t.input.charCodeAt(t.index-1);return(t.index===0||Rr(r)||ki(r))&&(!e||r!==47)}i(B1,"previous");function He(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}i(He,"normalizeIdentifier");z1.peek=_2;function k2(){this.buffer()}i(k2,"enterFootnoteCallString");function T2(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}i(T2,"enterFootnoteCall");function E2(){this.buffer()}i(E2,"enterFootnoteDefinitionLabelString");function D2(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}i(D2,"enterFootnoteDefinition");function C2(t){let e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=He(this.sliceSerialize(t)).toLowerCase(),r.label=e}i(C2,"exitFootnoteCallString");function O2(t){this.exit(t)}i(O2,"exitFootnoteCall");function M2(t){let e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=He(this.sliceSerialize(t)).toLowerCase(),r.label=e}i(M2,"exitFootnoteDefinitionLabelString");function I2(t){this.exit(t)}i(I2,"exitFootnoteDefinition");function _2(){return"["}i(_2,"footnoteReferencePeek");function z1(t,e,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(t),{after:"]",before:s})),l(),a(),s+=o.move("]"),s}i(z1,"footnoteReference");function hd(){return{enter:{gfmFootnoteCallString:k2,gfmFootnoteCall:T2,gfmFootnoteDefinitionLabelString:E2,gfmFootnoteDefinition:D2},exit:{gfmFootnoteCallString:C2,gfmFootnoteCall:O2,gfmFootnoteDefinitionLabelString:M2,gfmFootnoteDefinition:I2}}}i(hd,"gfmFootnoteFromMarkdown");function md(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:r,footnoteReference:z1},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((e?`
42
- `:" ")+s.indentLines(s.containerFlow(n,l.current()),e?j1:P2))),c(),u}i(r,"footnoteDefinition")}i(md,"gfmFootnoteToMarkdown");function P2(t,e,r){return e===0?t:j1(t,e,r)}i(P2,"mapExceptFirst");function j1(t,e,r){return(r?"":" ")+t}i(j1,"mapAll");var N2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];H1.peek=F2;function dd(){return{canContainEols:["delete"],enter:{strikethrough:A2},exit:{strikethrough:R2}}}i(dd,"gfmStrikethroughFromMarkdown");function gd(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:N2}],handlers:{delete:H1}}}i(gd,"gfmStrikethroughToMarkdown");function A2(t){this.enter({type:"delete",children:[]},t)}i(A2,"enterStrikethrough");function R2(t){this.exit(t)}i(R2,"exitStrikethrough");function H1(t,e,r,n){let o=r.createTracker(n),s=r.enter("strikethrough"),a=o.move("~~");return a+=r.containerPhrasing(t,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),s(),a}i(H1,"handleDelete");function F2(){return"~"}i(F2,"peekDelete");function L2(t){return t.length}i(L2,"defaultStringLength");function $1(t,e){let r=e||{},n=(r.align||[]).concat(),o=r.stringLength||L2,s=[],a=[],l=[],u=[],c=0,f=-1;for(;++f<t.length;){let g=[],x=[],w=-1;for(t[f].length>c&&(c=t[f].length);++w<t[f].length;){let T=B2(t[f][w]);if(r.alignDelimiters!==!1){let E=o(T);x[w]=E,(u[w]===void 0||E>u[w])&&(u[w]=E)}g.push(T)}a[f]=g,l[f]=x}let p=-1;if(typeof n=="object"&&"length"in n)for(;++p<c;)s[p]=W1(n[p]);else{let g=W1(n);for(;++p<c;)s[p]=g}p=-1;let h=[],m=[];for(;++p<c;){let g=s[p],x="",w="";g===99?(x=":",w=":"):g===108?x=":":g===114&&(w=":");let T=r.alignDelimiters===!1?1:Math.max(1,u[p]-x.length-w.length),E=x+"-".repeat(T)+w;r.alignDelimiters!==!1&&(T=x.length+T+w.length,T>u[p]&&(u[p]=T),m[p]=T),h[p]=E}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 w=[];for(;++p<c;){let T=g[p]||"",E="",q="";if(r.alignDelimiters!==!1){let H=u[p]-(x[p]||0),O=s[p];O===114?E=" ".repeat(H):O===99?H%2?(E=" ".repeat(H/2+.5),q=" ".repeat(H/2-.5)):(E=" ".repeat(H/2),q=E):q=" ".repeat(H)}r.delimiterStart!==!1&&!p&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||p)&&w.push(" "),r.alignDelimiters!==!1&&w.push(E),w.push(T),r.alignDelimiters!==!1&&w.push(q),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||p!==c-1)&&w.push("|")}d.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return d.join(`
43
- `)}i($1,"markdownTable");function B2(t){return t==null?"":String(t)}i(B2,"serialize");function W1(t){let e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}i(W1,"toAlignment");var U1={}.hasOwnProperty;function Nf(t,e){let r=e||{};function n(o,...s){let a=n.invalid,l=n.handlers;if(o&&U1.call(o,t)){let u=String(o[t]);a=U1.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(Nf,"zwitch");var z2={}.hasOwnProperty;function xd(t,e){let r=-1,n;if(e.extensions)for(;++r<e.extensions.length;)xd(t,e.extensions[r]);for(n in e)if(z2.call(e,n))switch(n){case"extensions":break;case"unsafe":{q1(t[n],e[n]);break}case"join":{q1(t[n],e[n]);break}case"handlers":{j2(t[n],e[n]);break}default:t.options[n]=e[n]}return t}i(xd,"configure");function q1(t,e){e&&t.push(...e)}i(q1,"list");function j2(t,e){e&&Object.assign(t,e)}i(j2,"map");function Y1(t,e,r,n){let o=r.enter("blockquote"),s=r.createTracker(n);s.move("> "),s.shift(2);let a=r.indentLines(r.containerFlow(t,s.current()),H2);return o(),a}i(Y1,"blockquote");function H2(t,e,r){return">"+(r?"":" ")+t}i(H2,"map");function Af(t,e){return V1(t,e.inConstruct,!0)&&!V1(t,e.notInConstruct,!1)}i(Af,"patternInScope");function V1(t,e,r){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return r;let n=-1;for(;++n<e.length;)if(t.includes(e[n]))return!0;return!1}i(V1,"listInScope");function yd(t,e,r,n){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
38
+ `)},"stripIndent"),jN=i((t,e)=>{let r=t;return(!e||e.stripIndent)&&(r=zN(r)),(!e||e.normalizeNewline)&&(r=r.replace(/\r\n/g,`
39
+ `)),(!e||e.replaceTabs)&&(r=yv(r," /"," ")),(!e||e.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!e||e.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r},"standard");var Wc={};ae(Wc,{isBase64:()=>WN,isUtf8:()=>HN});var cm={encode:i(t=>{if(typeof Buffer<"u")return Buffer.from(t,"utf8").toString("base64");if(typeof btoa<"u"){let e=new TextEncoder().encode(t),r=Array.from(e,n=>String.fromCharCode(n)).join("");return btoa(r)}else{let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new TextEncoder().encode(t),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+=e.charAt(u>>18&63),n+=e.charAt(u>>12&63),n+=o-2<r.length?e.charAt(u>>6&63):"=",n+=o-1<r.length?e.charAt(u&63):"="}return n}},"encode"),decode:i(t=>{let e=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"=");if(typeof Buffer<"u")return Buffer.from(e,"base64").toString("utf8");if(typeof atob<"u"){let r=atob(e),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<e.length;){let s=r.indexOf(e.charAt(o++)),a=r.indexOf(e.charAt(o++)),l=r.indexOf(e.charAt(o++)),u=r.indexOf(e.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")},Hc=class{static{i(this,"Base64")}constructor(e,r){switch(r){case"string":this.refString=e;break;case"base64":this.refString=Lo.decode(e);break;case"base64uri":this.refString=Lo.decode(e)}}get simpleString(){return this.refString}get base64String(){return Lo.encode(this.refString)}get base64UriString(){return Lo.encodeUri(this.refString)}},Lo={encode:i(t=>cm.encode(t),"encode"),encodeUri:i(t=>cm.encode(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),"encodeUri"),decode:i(t=>cm.decode(t),"decode"),isBase64:i(t=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(t),"isBase64")};var HN=i(t=>{let r=new TextEncoder().encode(t),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"),WN=i(t=>{let e=/[^A-Z0-9+\/=]/i,r=t.length;if(!r||r%4!==0||e.test(t))return!1;let n=t.indexOf("=");return n===-1||n===r-1||n===r-2&&t[r-1]==="="},"isBase64");var $c=class{static{i(this,"Domain")}constructor(e){this.protocol=this._protocolRegex(e),this.protocol||(e=`https://${e}`),this.nodeParsedUrl=new URL(e),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(e.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(e){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(e);return n.reverse(),n.pop(),n.filter(function(s){return s!==""})}_protocolRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}_portRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}};var Uc=class{static{i(this,"GitRepo")}constructor(e,r){let n=$N(e);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=wv(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=wv(this.host,this.user,this.repo,this.accessToken,"https")}},$N=i(function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},"gitRegex"),wv=i(function(t,e,r,n="",o){let s;switch(n!==""&&(n=n+"@"),o){case"https":s="https://"+n+t+"/"+e+"/"+r+".git";break;case"ssh":s="git@"+t+":"+e+"/"+r+".git";break;default:console.error("Link Type "+o+" not known");break}return s},"gitLink");var vv=jt(fm(),1),Bo=vv.default;var kv=i(()=>globalThis.Buffer,"getNodeBuffer");function UN(t){let e=kv();return e?e.from(t).toString("base64"):btoa(String.fromCharCode(...t))}i(UN,"base64Encode");function qN(t){let e=kv();if(e){let r=e.from(t,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}return new Uint8Array(Array.from(atob(t)).map(r=>r.charCodeAt(0)))}i(qN,"base64Decode");function ca(t,e){return JSON.stringify(t,qc,e)}i(ca,"stringify");function hm(t){return JSON.parse(t,Tv)}i(hm,"parse");var qc=i((t,e)=>{if(VN(e)){let r;if("data"in e&&Ev(e.data))r=new Uint8Array(e.data);else if(e instanceof Uint8Array)r=e;else return e;return{type:"EncodedBuffer",data:"base64:"+UN(r)}}return e},"replacer"),Tv=i((t,e)=>{if(YN(e)&&pm(e.data)&&e.data.startsWith("base64:")){let r=e.data.slice(7);return qN(r)}return e},"reviver");function YN(t){return Dv(t)&&t.type==="EncodedBuffer"&&pm(t.data)}i(YN,"isEncodedBuffer");function VN(t){return Dv(t)&&t.type==="Buffer"&&(Ev(t.data)||pm(t.data))||t instanceof Uint8Array}i(VN,"isBufferLike");function Ev(t){return Array.isArray(t)}i(Ev,"isArray");function pm(t){return typeof t=="string"}i(pm,"isString");function Dv(t){return typeof t=="object"&&t!==null}i(Dv,"isObject");var Ov=i(t=>{let e=JSON.parse(ca(t)),r=!0,n=i(s=>{if(Array.isArray(s))return s.map(c=>n(c));if(s===null||typeof s!="object")return s;let a=Object.keys(s).sort(),l={};for(let c of a){let f=n(s[c]);c in l?Object.defineProperty(l,c,{configurable:!0,enumerable:!0,value:f,writable:!0}):l[c]=f}let u=Object.keys(l);return(u.length!==a.length||u.some((c,f)=>c!==a[f]))&&(r=!1),l},"createSortedValue"),o=n(e);return r?JSON.stringify(o):Bo(e,{})},"stableStringify");var Yc=hm,mm=i(t=>t.split(`
40
+ `).reduce((n,o)=>{let s=o.trim();return s.length>0&&n.push(Yc(s)),n},[]),"parseJsonL"),GN=i(t=>t.map(e=>ui(e)).join(`
41
+ `),"stringifyJsonL"),JN=i((t,e,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(t),a={...r,cycles:!0};if(e&&!a.cmp){let l=new Map;e.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 Bo(s,a)},"stableOneWayStringify"),ui=i((t,e,r=void 0)=>{if(r===void 0&&e===void 0)return Ov(t);let n=ca(t);t=JSON.parse(n);let o={...r};if(e&&!o.cmp){let a=new Map;e.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 Bo(t,o)},"stringify"),QN=i(t=>{let e=ui(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},"stringifyPretty"),KN=i((...t)=>{let e=ui(...t);return Et.base64.encodeUri(e)},"stringifyBase64"),XN=i(t=>{let e=Et.base64,n=(e.decodeUri||e.decode)(t);return Yc(n)},"parseBase64"),dm=class t{static{i(this,"Smartjson")}static enfoldFromObject(e){let r=new this,n=r.saveableProperties||[];for(let o in e)n.indexOf(o)!==-1&&(r[o]=e[o]);return r}static enfoldFromJson(e){let r=Yc(e);return this.enfoldFromObject(r)}saveableProperties=[];foldToObject(){let e=new Set;return e.add(this),this.foldToObjectInternal(e)}foldToObjectInternal(e){let r={},n=i(s=>{if(s instanceof t){if(e.has(s))throw new Error("cycle detected");return e.add(s),s.foldToObjectInternal(e)}return Array.isArray(s)?s.map(a=>n(a)):structuredClone(s)},"foldValue"),o=this.saveableProperties||[];for(let s of o){let a=this[s];r[s]=n(a)}return r}foldToJson(){let e=this.foldToObject();return ui(e)}},ZN=i(()=>(t,e)=>{let r=String(e.name);e.addInitializer(function(){this.saveableProperties||(this.saveableProperties=[]),this.saveableProperties.includes(r)||this.saveableProperties.push(r)})},"foldDec"),Mv=i((t,e)=>{let r=ui(t),n=ui(e);return r===n},"deepEqualObjects"),eA=i((t,e)=>{let r=mm(t),n=mm(e);return Mv(r,n)},"deepEqualJsonLStrings");var lr={};ae(lr,{TypedrequestCache:()=>gm,WebStore:()=>fa});var Iv={};var Vc=class{static{i(this,"WebStoreDb")}constructor(e){this.nativeDb=e}async get(e,r,n={}){return this.runObjectStoreRequest(e,"readonly",o=>o.get(r),n)}async getKey(e,r,n={}){return this.runObjectStoreRequest(e,"readonly",o=>o.getKey(r),n)}async put(e,r,n,o={}){return this.runObjectStoreRequest(e,"readwrite",s=>n===void 0?s.put(r):s.put(r,n),o)}async delete(e,r,n={}){await this.runObjectStoreRequest(e,"readwrite",o=>o.delete(r),n)}async clear(e,r={}){await this.runObjectStoreRequest(e,"readwrite",n=>n.clear(),r)}async getAllKeys(e,r={}){return this.runObjectStoreRequest(e,"readonly",n=>n.getAllKeys(),r)}close(){this.nativeDb.close()}async runObjectStoreRequest(e,r,n,o){o.signal?.throwIfAborted();let s=this.nativeDb.transaction(e,r),a=s.objectStore(e),l=n(a),u,c=new Promise((p,h)=>{u=h}),f=i(()=>{try{s.abort()}catch(p){if(!(p instanceof DOMException)||p.name!=="InvalidStateError"){u(p);return}}o.signal&&u(o.signal.reason)},"abortTransaction");o.signal?.addEventListener("abort",f,{once:!0});try{let[p]=await Promise.race([Promise.all([tA(l),rA(s)]),c]);return p}catch(p){throw o.signal?.aborted?o.signal.reason:p}finally{o.signal?.removeEventListener("abort",f)}}},Pv=i(async(t,e)=>{if(e?.throwIfAborted(),!e)return t;let r,n=new Promise((s,a)=>{r=a}),o=i(()=>{r(e.reason)},"abortListener");e.addEventListener("abort",o,{once:!0});try{return await Promise.race([t,n])}finally{e.removeEventListener("abort",o)}},"awaitWithSignal"),tA=i(t=>new Promise((e,r)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>r(Gc("IndexedDB request failed",t.error))}),"indexedDbRequestToPromise"),rA=i(t=>new Promise((e,r)=>{t.oncomplete=()=>e(),t.onabort=()=>r(Gc("IndexedDB transaction aborted",t.error)),t.onerror=()=>r(Gc("IndexedDB transaction failed",t.error))}),"indexedDbTransactionToPromise"),Gc=i((t,e)=>e?new Error(`${t}: ${e.message}`,{cause:e}):new Error(t),"createIndexedDbError"),Nv=i((t,e)=>{t.objectStoreNames.contains(e)||t.createObjectStore(e)},"ensureObjectStore"),Av=i(async(t,e,r)=>{if(!globalThis.indexedDB)throw new Error("IndexedDB is not available in this runtime");return new Promise((n,o)=>{let s=!1,a=typeof e=="number"?globalThis.indexedDB.open(t,e):globalThis.indexedDB.open(t),l=i(u=>{s||(s=!0,o(u instanceof Error?u:new Error(String(u))))},"rejectOnce");a.onupgradeneeded=()=>{if(r)try{r(a.result)}catch(u){a.transaction?.abort(),l(u)}},a.onsuccess=()=>{if(s){a.result.close();return}s=!0;let u=a.result;u.onversionchange=()=>u.close(),n(u)},a.onerror=()=>l(Gc(`Failed to open IndexedDB database "${t}"`,a.error)),a.onblocked=()=>l(new Error(`Opening IndexedDB database "${t}" was blocked by another connection`))})},"openNativeDb"),nA=i(async(t,e)=>{let r=await Av(t,void 0,o=>Nv(o,e));if(r.objectStoreNames.contains(e))return new Vc(r);let n=r.version+1;if(r.close(),r=await Av(t,n,o=>Nv(o,e)),!r.objectStoreNames.contains(e))throw r.close(),new Error(`Failed to create IndexedDB object store "${e}" in database "${t}"`);return new Vc(r)},"openWebStoreDb"),fa=class{static{i(this,"WebStore")}constructor(e){this.lifecycleGeneration=0,this.closeCoveredGeneration=0,this.activeOperations=new Set,this.options=e}trackOperation(e){this.lifecycleGeneration+=1;let r;return r=(async()=>e())().finally(()=>{this.activeOperations.delete(r)}),this.activeOperations.add(r),r}init(e={}){return this.trackOperation(()=>this.initForOperation(e.signal))}async initForOperation(e){e?.throwIfAborted();let r=this.closePromise;return r&&(await Pv(r,e),e?.throwIfAborted()),this.initPromise||(this.initPromise=this.runInit().catch(n=>{throw this.initPromise=void 0,n})),Pv(this.initPromise,e)}async runInit(){let e=new qr.Smartenv;if(!e.isBrowser&&!globalThis.indexedDB&&(await e.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await e.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await nA(this.options.dbName,this.options.storeName)}runDataOperation(e,r){return this.trackOperation(async()=>(await this.initForOperation(r.signal),r.signal?.throwIfAborted(),e(this.db)))}close(){let e=this.lifecycleGeneration;if(this.closePromise&&e<=this.closeCoveredGeneration)return this.closePromise;let r=this.closePromise,n=[...this.activeOperations];if(!r&&!this.initPromise&&n.length===0)return Promise.resolve();let o;return o=(async()=>{try{if(r)try{await r}catch{}await Promise.allSettled(n);let s=this.initPromise;if(!s)return;try{await s}catch{return}finally{this.initPromise===s&&(this.initPromise=void 0)}this.db.close()}finally{this.closePromise===o&&(this.closePromise=void 0)}})(),this.closePromise=o,this.closeCoveredGeneration=e,o}async get(e,r={}){return this.runDataOperation(n=>n.get(this.options.storeName,e,r),r)}async check(e,r={}){return this.runDataOperation(async n=>await n.getKey(this.options.storeName,e,r)!==void 0,r)}async set(e,r,n={}){return this.runDataOperation(o=>o.put(this.options.storeName,r,e,n),n)}async delete(e,r={}){return this.runDataOperation(n=>n.delete(this.options.storeName,e,r),r)}async clear(e={}){return this.runDataOperation(r=>r.clear(this.options.storeName,e),e)}async keys(e={}){return this.runDataOperation(r=>r.getAllKeys(this.options.storeName,e),e)}};var gm=class{static{i(this,"TypedrequestCache")}constructor(e="default"){this.webstore=new fa({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return Dt.stringify({method:e.method,request:e.request})}async setByRequest(e){if(!e.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(e),e)}async getByRequest(e){return await this.webstore.get(this.buildKey(e))}};var pa=256,zo=class{static{i(this,"CacheStore")}constructor(e="webrequest-v4",r="cache"){this.lifecycleController=new AbortController,this.closeReason=new Error("Webrequest cache store is closed"),this.disposed=!1,this.pruneGeneration=0,this.pruneWaiters=new Set,this.activeOwnedOperations=new Set,this.webstore=new lr.WebStore({dbName:e,storeName:r}),this.initPromise=this.init()}async init(){}generateCacheKey(e){let r=e.url,n=e.method;return n==="GET"?r:`${n}:${r}`}async set(e,r,n={}){await this.initPromise;let o=this.getOperationSignal(n.signal),s=n.maxEntries??pa;if(!Number.isSafeInteger(s)||s<=0)throw new RangeError("webrequest cache maxEntries must be a positive safe integer");await this.webstore.set(e,r,{signal:o}),await this.schedulePrune(s,o)}async get(e,r={}){await this.initPromise;let n=this.getOperationSignal(r.signal);try{let o=await this.webstore.get(e,{signal:n});return o===void 0?null:this.isCacheEntry(o)?o:(await this.webstore.delete(e,{signal:n}),null)}catch{if(n.aborted)throw n.reason;return null}}async has(e,r={}){return await this.get(e,r)!==null}async delete(e,r={}){await this.initPromise;let n=this.getOperationSignal(r.signal);await this.webstore.delete(e,{signal:n})}async clear(e={}){await this.initPromise;let r=this.getOperationSignal(e.signal);await this.webstore.clear({signal:r})}responseFromCacheEntry(e){let r=new Headers(e.headers);return new Response(e.response,{status:e.status,statusText:e.statusText,headers:r})}cacheEntryFromResponse(e,r,n,o={}){return this.trackOwnedOperation(async()=>{let s=this.getOperationSignal(o.signal),a=o.preserveResponse!==!1,l=a?r.clone():r,u=await this.consumeArrayBuffer(l,s,a?r.body:void 0,o.responseSignal),c={};return l.headers.forEach((f,p)=>{c[p]=f}),{response:u,headers:c,timestamp:Date.now(),etag:n?.etag||l.headers.get("etag")||void 0,lastModified:n?.lastModified||l.headers.get("last-modified")||void 0,maxAge:n?.maxAge,url:e,status:l.status,statusText:l.statusText}})}async pruneExpired(e={}){await this.initPromise;let r=this.getOperationSignal(e.signal),n=await this.collectEntries(r),o=0;for(let s of n)r.throwIfAborted(),!(s.valid&&!this.isExpired(s))&&(await this.webstore.delete(s.key,{signal:r}),o+=1);return o}async schedulePrune(e,r){r?.throwIfAborted();let n=++this.pruneGeneration;this.pendingPruneMaxEntries=this.pendingPruneMaxEntries===void 0?e:Math.min(this.pendingPruneMaxEntries,e);let o,s,a=new Promise((u,c)=>{o=u,s=c}),l={generation:n,resolve:o,reject:s};this.pruneWaiters.add(l),this.ensurePruneLoop();try{await iA(a,r)}finally{this.pruneWaiters.delete(l)}}ensurePruneLoop(){if(this.pruneLoopPromise)return this.pruneLoopPromise;let e;return e=this.runPruneLoop().catch(r=>{this.pendingPruneMaxEntries=void 0,this.settlePruneWaiters(this.pruneGeneration,r)}).finally(()=>{this.pruneLoopPromise===e&&(this.pruneLoopPromise=void 0,this.pendingPruneMaxEntries!==void 0&&!this.disposed&&this.ensurePruneLoop())}),this.pruneLoopPromise=e,e}async runPruneLoop(){for(;this.pendingPruneMaxEntries!==void 0;){let e=this.pendingPruneMaxEntries;this.pendingPruneMaxEntries=void 0;let r=this.pruneGeneration;await this.pruneToLimit(e,this.lifecycleController.signal),this.settlePruneWaiters(r)}}settlePruneWaiters(e,r){for(let n of this.pruneWaiters)n.generation>e||(this.pruneWaiters.delete(n),r===void 0?n.resolve():n.reject(r))}async pruneToLimit(e,r){let n=await this.collectEntries(r),o=n.filter(l=>!l.valid||this.isExpired(l));for(let l of o)r?.throwIfAborted(),await this.webstore.delete(l.key,{signal:r});let s=n.filter(l=>l.valid&&!this.isExpired(l)).sort((l,u)=>l.timestamp===u.timestamp?l.key.localeCompare(u.key):(l.timestamp??0)-(u.timestamp??0)),a=Math.max(0,s.length-e);for(let l of s.slice(0,a))r?.throwIfAborted(),await this.webstore.delete(l.key,{signal:r})}async collectEntries(e){e?.throwIfAborted();let r=await this.webstore.keys({signal:e}),n=[];for(let o of r)if(e?.throwIfAborted(),typeof o=="string")try{let s=await this.webstore.get(o,{signal:e});n.push(this.isCacheEntry(s)?{key:o,valid:!0,timestamp:s.timestamp,maxAge:s.maxAge}:{key:o,valid:!1,timestamp:0})}catch{if(e?.aborted)throw e.reason;continue}return n}isCacheEntry(e){if(!e||typeof e!="object")return!1;let r=Reflect.get(e,"response"),n=Reflect.get(e,"headers"),o=Reflect.get(e,"timestamp"),s=Reflect.get(e,"url"),a=Reflect.get(e,"status"),l=Reflect.get(e,"statusText");return r instanceof ArrayBuffer&&typeof n=="object"&&n!==null&&Number.isFinite(o)&&typeof s=="string"&&Number.isInteger(a)&&typeof l=="string"}isExpired(e){return e.maxAge!==void 0&&e.maxAge>0&&Date.now()-e.timestamp>=e.maxAge}getOperationSignal(e){if(this.disposed)throw this.closeReason;return e?.throwIfAborted(),e?AbortSignal.any([e,this.lifecycleController.signal]):this.lifecycleController.signal}trackOwnedOperation(e){let r;return r=e().finally(()=>{this.activeOwnedOperations.delete(r)}),this.activeOwnedOperations.add(r),r}close(){if(this.closePromise)return this.closePromise;this.disposed=!0,this.lifecycleController.abort(this.closeReason);let e=this.pruneLoopPromise,r=[...this.activeOwnedOperations];return this.closePromise=(async()=>{await Promise.allSettled([...r,...e?[e]:[]]),await this.webstore.close()})(),this.closePromise}async consumeArrayBuffer(e,r,n,o){if(r?.throwIfAborted(),!r)return e.arrayBuffer();let s=e.body?.getReader();if(!s)return new ArrayBuffer(0);let a=[],l=0,u,c=new Promise((d,g)=>{u=g}),f,p=i(()=>{u(r.reason),o?.aborted||(f=Promise.all([s.cancel(r.reason).catch(()=>{}),n?.cancel(r.reason).catch(()=>{})]).then(()=>{}))},"abortListener");r.addEventListener("abort",p,{once:!0});try{for(;;){let d=await Promise.race([s.read(),c]);if(d.done)break;a.push(d.value),l+=d.value.byteLength}}finally{r.removeEventListener("abort",p),f&&await f;try{s.releaseLock()}catch{}}let h=new Uint8Array(l),m=0;for(let d of a)h.set(d,m),m+=d.byteLength;return h.buffer}},iA=i(async(t,e)=>{if(e?.throwIfAborted(),!e)return t;let r,n=new Promise((s,a)=>{r=a}),o=i(()=>{r(e.reason)},"abortListener");e.addEventListener("abort",o,{once:!0});try{return await Promise.race([t,n])}finally{e.removeEventListener("abort",o)}},"awaitWithSignal");function oA(t){let e={maxAge:0,immutable:!1,noCache:!1,noStore:!1,mustRevalidate:!1};if(!t)return e;let r=t.toLowerCase().split(",").map(n=>n.trim());for(let n of r)if(n==="no-cache")e.noCache=!0;else if(n==="no-store")e.noStore=!0;else if(n==="immutable")e.immutable=!0;else if(n==="must-revalidate")e.mustRevalidate=!0;else if(n.startsWith("max-age=")){let o=parseInt(n.split("=")[1],10);isNaN(o)||(e.maxAge=o*1e3)}return e}i(oA,"parseCacheControl");function sA(t){if(t)try{return new Date(t).getTime()}catch{return}}i(sA,"parseExpires");function Pr(t){let e=t.get("cache-control"),r=t.get("expires"),n=t.get("etag"),o=t.get("last-modified"),s=oA(e);if(s.maxAge===0&&r){let a=sA(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(Pr,"extractCacheMetadata");function Qc(t,e){if(e.noStore)return!1;if(e.immutable)return!0;let r=Date.now()-t.timestamp,n=t.maxAge||e.maxAge||0;return n===0?!1:r<n}i(Qc,"isFresh");function jo(t){return t.noCache||t.mustRevalidate}i(jo,"requiresRevalidation");function Kc(t){let e={};return t.etag&&(e["if-none-match"]=t.etag),t.lastModified&&(e["if-modified-since"]=t.lastModified),e}i(Kc,"createConditionalHeaders");function Xc(t){let e={};return t.forEach((r,n)=>{e[n]=r}),e}i(Xc,"headersToObject");function Rv(t){let e=new Headers;return Object.entries(t).forEach(([r,n])=>{e.set(r,n)}),e}i(Rv,"objectToHeaders");function aA(t){let e=new AbortController,r=!1,n=!1,o=new ge.Timeout(t,null);return o.promise.then(()=>{r=!0,e.abort()}),{controller:e,cleanup:i(()=>{n||(n=!0,o.cancel())},"cleanup"),didTimeout:i(()=>r,"didTimeout")}}i(aA,"createTimeoutController");var Fv=Symbol("webrequestTimeoutError"),En=i((t,e)=>{let r=new Error(`Request timeout after ${e}ms: ${t}`);return Object.defineProperty(r,Fv,{configurable:!1,enumerable:!1,value:!0,writable:!1}),r},"createTimeoutError"),ha=i(t=>t instanceof Error&&Reflect.get(t,Fv)===!0,"isWebrequestTimeoutError");async function xm(t,e,r){let n=t instanceof Request?t.url:String(t),{controller:o,cleanup:s,didTimeout:a}=aA(r),l=e.signal?AbortSignal.any([e.signal,o.signal]):o.signal;try{let u=await fetch(t,{...e,signal:l});return s(),u}catch(u){throw s(),a()?En(n,r):u}}i(xm,"fetchWithTimeout");var Lv=i(t=>{if(t.reason instanceof Error)return t.reason;let e=new Error("The request was aborted");return e.name="AbortError",e},"normalizeAbortReason");async function Bv(t,e){if(e.signal?.aborted){let f=Lv(e.signal);throw await t.body?.cancel(f).catch(()=>{}),f}if(e.bodyTimeoutMs!==void 0&&e.bodyTimeoutMs<=0){let f=En(e.url,e.reportedTimeoutMs??e.bodyTimeoutMs);throw await t.body?.cancel(f).catch(()=>{}),f}if(e.bodyTimeoutMs===void 0&&!e.signal)return await t.json();let r=t.body?.getReader();if(!r)return JSON.parse("");let n,o,s,a=new Promise((f,p)=>{s=p}),l=i(f=>{n||(n=f,r.cancel(f).catch(()=>{}),s(f))},"terminate"),u=i(()=>{e.signal&&l(Lv(e.signal))},"abortListener");if(e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u,{once:!0})),e.bodyTimeoutMs!==void 0){let f=e.reportedTimeoutMs??e.bodyTimeoutMs;o=setTimeout(()=>{l(En(e.url,f))},e.bodyTimeoutMs)}let c=i(async()=>{let f=new TextDecoder,p="";for(;;){let h;try{h=await r.read()}catch(m){throw n||m}if(n)throw n;if(h.done)break;p+=f.decode(h.value,{stream:!0})}if(p+=f.decode(),n)throw n;return JSON.parse(p)},"readBody");try{return await Promise.race([c(),a])}finally{o!==void 0&&clearTimeout(o),e.signal?.removeEventListener("abort",u);try{r.releaseLock()}catch{}}}i(Bv,"consumeJsonWithTimeout");var Zc=class{static{i(this,"NetworkFirstStrategy")}async execute(e){let r;try{return r=await e.fetchFn(e.request),r.ok&&await this.cacheResponse(e,r),{response:r,fromCache:!1,revalidated:!1}}catch(n){if(await Ho(r,n,e.request.signal),e.signal?.aborted)throw e.signal.reason;if(ha(n))throw n;e.logging&&console.log("[webrequest] Network failed, trying cache:",n);let o=await e.cacheStore.get(e.cacheKey,{signal:e.signal});if(o)return{response:e.cacheStore.responseFromCacheEntry(o),fromCache:!0,revalidated:!1};throw n}}async cacheResponse(e,r){let n=Pr(r.headers);if(n.maxAge=ma(n.maxAge,e.cacheMaxAge),n.noStore)return;let o=await e.cacheStore.cacheEntryFromResponse(e.request.url,r,n,{signal:e.signal,responseSignal:e.request.signal});await e.cacheStore.set(e.cacheKey,o,{signal:e.signal,maxEntries:e.cacheMaxEntries})}},ym=class{static{i(this,"CacheFirstStrategy")}async execute(e){let r=await e.cacheStore.get(e.cacheKey,{signal:e.signal});if(r){let s=Pr(new Headers(r.headers));if(zv(e,r,s)&&!jo(s))return e.logging&&console.log("[webrequest] Cache hit (fresh):",e.request.url),{response:e.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1};if(jo(s)&&(r.etag||r.lastModified))return await this.revalidate(e,r)}e.logging&&console.log("[webrequest] Cache miss, fetching:",e.request.url);let n=await e.fetchFn(e.request),o=Pr(n.headers);if(o.maxAge=ma(o.maxAge,e.cacheMaxAge),!o.noStore)try{let s=await e.cacheStore.cacheEntryFromResponse(e.request.url,n,o,{signal:e.signal,responseSignal:e.request.signal});await e.cacheStore.set(e.cacheKey,s,{signal:e.signal,maxEntries:e.cacheMaxEntries})}catch(s){throw await Ho(n,s,e.request.signal),s}return{response:n,fromCache:!1,revalidated:!1}}async revalidate(e,r){let n=Kc(r),o=new Request(e.request.url,{method:e.request.method,headers:{...Xc(e.request.headers),...n},signal:e.signal}),s;try{if(s=await e.fetchFn(o),s.status===304)return e.logging&&console.log("[webrequest] Cache revalidated (304):",e.request.url),r.timestamp=Date.now(),await e.cacheStore.set(e.cacheKey,r,{signal:e.signal,maxEntries:e.cacheMaxEntries}),await Ho(s,"304 response replaced by cached response",o.signal),{response:e.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!0};if(s.ok){let a=Pr(s.headers);if(a.maxAge=ma(a.maxAge,e.cacheMaxAge),!a.noStore){let l=await e.cacheStore.cacheEntryFromResponse(e.request.url,s,a,{signal:e.signal,responseSignal:o.signal});await e.cacheStore.set(e.cacheKey,l,{signal:e.signal,maxEntries:e.cacheMaxEntries})}}return{response:s,fromCache:!1,revalidated:!0}}catch(a){if(await Ho(s,a,o.signal),e.signal?.aborted)throw e.signal.reason;if(ha(a))throw a;return e.logging&&console.log("[webrequest] Revalidation failed, using cache:",a),{response:e.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1}}}},wm=class{static{i(this,"StaleWhileRevalidateStrategy")}async execute(e){let r=await e.cacheStore.get(e.cacheKey,{signal:e.signal});if(r){let s=e.cacheStore.responseFromCacheEntry(r);return e.scheduleBackgroundRevalidation(async a=>{let l={...e,request:new Request(e.request,{signal:a}),signal:a};await this.revalidateInBackground(l,r)}),{response:s,fromCache:!0,revalidated:!1}}let n=await e.fetchFn(e.request),o=Pr(n.headers);if(o.maxAge=ma(o.maxAge,e.cacheMaxAge),!o.noStore&&n.ok)try{let s=await e.cacheStore.cacheEntryFromResponse(e.request.url,n,o,{signal:e.signal,responseSignal:e.request.signal});await e.cacheStore.set(e.cacheKey,s,{signal:e.signal,maxEntries:e.cacheMaxEntries})}catch(s){throw await Ho(n,s,e.request.signal),s}return{response:n,fromCache:!1,revalidated:!1}}async revalidateInBackground(e,r){let n=Pr(new Headers(r.headers));if(zv(e,r,n)&&!jo(n))return;let o;try{if(e.signal?.throwIfAborted(),o=await e.fetchFn(e.request),o.ok){let s=Pr(o.headers);if(s.maxAge=ma(s.maxAge,e.cacheMaxAge),!s.noStore){let a=await e.cacheStore.cacheEntryFromResponse(e.request.url,o,s,{signal:e.signal,responseSignal:e.request.signal,preserveResponse:!1});await e.cacheStore.set(e.cacheKey,a,{signal:e.signal,maxEntries:e.cacheMaxEntries}),e.logging&&console.log("[webrequest] Background revalidation complete:",e.request.url)}}}catch(s){if(e.signal?.aborted)return;e.logging&&console.warn("[webrequest] Background revalidation failed:",s)}finally{await Ho(o,"background revalidation response discarded",e.request.signal)}}},bm=class{static{i(this,"NetworkOnlyStrategy")}async execute(e){return{response:await e.fetchFn(e.request),fromCache:!1,revalidated:!1}}},vm=class{static{i(this,"CacheOnlyStrategy")}async execute(e){let r=await e.cacheStore.get(e.cacheKey,{signal:e.signal});if(!r)throw new Error(`Cache miss for ${e.request.url} (cache-only mode)`);return{response:e.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1}}},ma=i((t,e)=>e===void 0?t:Math.min(t,e),"resolveEffectiveMaxAge"),zv=i((t,e,r)=>Qc(e,r)?t.cacheMaxAge===void 0?!0:Date.now()-e.timestamp<t.cacheMaxAge:!1,"isFreshForContext"),Ho=i(async(t,e,r)=>{!t?.body||t.bodyUsed||r?.aborted||await t.body.cancel(e).catch(()=>{})},"cancelDiscardedResponse");function jv(t){switch(t){case"network-first":return new Zc;case"cache-first":return new ym;case"stale-while-revalidate":return new wm;case"network-only":return new bm;case"cache-only":return new vm;default:return new Zc}}i(jv,"getStrategyHandler");var Wo=class{static{i(this,"CacheManager")}constructor(e,r,n){this.lifecycleController=new AbortController,this.closeReason=new Error("Webrequest cache manager is closed"),this.disposed=!1,this.backgroundRevalidations=new Map,this.cacheStore=n??new zo(e,r)}async execute(e,r,n){if(this.disposed)throw this.closeReason;e.signal.throwIfAborted();let o=this.determineStrategy(e,r);if(o==="network-only")return{response:await n(e),fromCache:!1,revalidated:!1};let s=r.cacheMaxEntries??pa;if(!Number.isSafeInteger(s)||s<=0)throw new RangeError("webrequest cacheMaxEntries must be a positive safe integer");if(r.cacheMaxAge!==void 0&&(!Number.isSafeInteger(r.cacheMaxAge)||r.cacheMaxAge<0))throw new RangeError("webrequest cacheMaxAge must be a non-negative safe integer");let a=r.timeout??6e4,l=new AbortController,u=setTimeout(()=>{l.abort(En(e.url,a))},Math.max(0,a)),c=AbortSignal.any([e.signal,this.lifecycleController.signal,l.signal]);try{let f=this.generateCacheKey(e,r),p=jv(o),h={request:e,cacheKey:f,cacheStore:this.cacheStore,fetchFn:n,logging:r.logging,signal:c,cacheMaxAge:r.cacheMaxAge,cacheMaxEntries:s,scheduleBackgroundRevalidation:i(m=>{this.scheduleBackgroundRevalidation(f,e.url,a,m)},"scheduleBackgroundRevalidation")};return await p.execute(h)}finally{clearTimeout(u)}}determineStrategy(e,r){return r.cacheStrategy?r.cacheStrategy:r.cache?this.mapCacheModeToStrategy(r.cache):e.cache?this.mapCacheModeToStrategy(e.cache):"network-first"}mapCacheModeToStrategy(e){switch(e){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(e,r){return r.cacheKey?typeof r.cacheKey=="function"?r.cacheKey(e):r.cacheKey:this.cacheStore.generateCacheKey(e)}async clear(){await this.cacheStore.clear()}async delete(e){await this.cacheStore.delete(e)}async has(e){return await this.cacheStore.has(e)}getStore(){return this.cacheStore}scheduleBackgroundRevalidation(e,r,n,o){if(this.disposed||this.backgroundRevalidations.has(e))return;let s=new AbortController,a=AbortSignal.any([this.lifecycleController.signal,s.signal]),l=setTimeout(()=>{s.abort(En(r,n))},Math.max(0,n)),u;u=o(a).catch(()=>{}).finally(()=>{clearTimeout(l),this.backgroundRevalidations.get(e)===u&&this.backgroundRevalidations.delete(e)}),this.backgroundRevalidations.set(e,u)}close(){if(this.closePromise)return this.closePromise;this.disposed=!0,this.lifecycleController.abort(this.closeReason);let e=[...this.backgroundRevalidations.values()];return this.closePromise=(async()=>{await Promise.allSettled(e),await this.cacheStore.close()})(),this.closePromise}};var ef=class{static{i(this,"ExponentialBackoff")}calculate(e,r,n){let o=r*Math.pow(2,e-1);return Math.min(o,n)}},Sm=class{static{i(this,"LinearBackoff")}calculate(e,r,n){let o=r*e;return Math.min(o,n)}},km=class{static{i(this,"ConstantBackoff")}calculate(e,r,n){return Math.min(r,n)}};function Hv(t){switch(t){case"exponential":return new ef;case"linear":return new Sm;case"constant":return new km;default:return new ef}}i(Hv,"getBackoffCalculator");function Wv(t,e=.1){let r=t*e*Math.random();return t+r}i(Wv,"addJitter");var $o=class{static{i(this,"RetryManager")}constructor(e={},r){this.signal=r,this.options={maxAttempts:e.maxAttempts??3,backoff:e.backoff??"exponential",initialDelay:e.initialDelay??1e3,maxDelay:e.maxDelay??3e4,retryOn:e.retryOn??[408,429,500,502,503,504],onRetry:e.onRetry??(()=>{})}}async execute(e,r){let n;for(let o=1;o<=this.options.maxAttempts;o++){this.throwIfAborted();try{let s=await e();if(s instanceof Response&&this.shouldRetryResponse(s)){if(o===this.options.maxAttempts)return s;await this.cancelResponseBody(s,`Retrying after HTTP ${s.status}`);let a=this.calculateDelay(o);this.options.onRetry(o,new Error(`HTTP ${s.status}`),a),await this.delay(a);continue}return s}catch(s){if(this.signal?.aborted)throw this.getAbortError();n=s instanceof Error?s:new Error(String(s));let a=r?r(s,o):this.shouldRetryError(s);if(o===this.options.maxAttempts||!a)throw n;let l=this.calculateDelay(o);this.options.onRetry(o,n,l),await this.delay(l)}}throw n||new Error("Max retry attempts reached")}async executeWithFallbacks(e,r,n){if(e.length===0)throw new Error("No URLs provided for fallback execution");let o,s=[];for(let a of e){this.throwIfAborted();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;await this.cancelResponseBody(l,`Trying fallback after HTTP ${l.status}`),s.push(a),o=new Error(`Request failed with status ${l.status}`)}catch(l){if(this.signal?.aborted)throw this.getAbortError();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(e){let r=this.options.retryOn;return typeof r=="function"?r(e):Array.isArray(r)?r.includes(e.status):!1}shouldRetryError(e){if(e instanceof TypeError&&e.message.includes("fetch")||e.name==="AbortError"||e.message.includes("timeout"))return!0;let r=this.options.retryOn;return typeof r=="function"?r(void 0,e):!1}calculateDelay(e){let n=Hv(this.options.backoff).calculate(e,this.options.initialDelay,this.options.maxDelay);return Wv(n)}async delay(e){if(!this.signal){await ge.delayFor(e);return}if(this.signal.aborted)throw this.getAbortError();let r=new ge.Timeout(e,null),n,o=new Promise((a,l)=>{n=l}),s=i(()=>{r.cancel(),n(this.getAbortError())},"abortListener");try{this.signal.addEventListener("abort",s,{once:!0}),this.signal.aborted&&s(),await Promise.race([r.promise,o])}finally{r.cancel(),this.signal.removeEventListener("abort",s)}}async cancelResponseBody(e,r){await e.body?.cancel(r).catch(()=>{})}throwIfAborted(){if(this.signal?.aborted)throw this.getAbortError()}getAbortError(){if(this.signal?.reason instanceof Error)return this.signal.reason;let e=new Error("The request was aborted");return e.name="AbortError",e}};var Uo=class{static{i(this,"RequestDeduplicator")}constructor(){this.inFlightRequests=new Map}generateKey(e){let r=e.url,n=e.method;return n==="GET"||n==="HEAD"?`${n}:${r}`:`${n}:${r}:${Date.now()}`}async execute(e,r){let n=this.inFlightRequests.get(e);if(n){let s=await n.promise;return{response:this.cloneValue(s),wasDeduplicated:!0}}let o=re.defer();this.inFlightRequests.set(e,o);try{let s=await r();return o.resolve(s),this.inFlightRequests.delete(e),{response:s,wasDeduplicated:!1}}catch(s){throw o.reject(s),this.inFlightRequests.delete(e),s}}isInFlight(e){return this.inFlightRequests.has(e)}getInFlightCount(){return this.inFlightRequests.size}clear(){this.inFlightRequests.clear()}cloneValue(e){return e instanceof Response?e.clone():{...e,response:e.response.clone()}}};var ci=class{static{i(this,"WebrequestClient")}constructor(e={}){this.closeReason=new Error("Webrequest client is closed"),this.disposed=!1,this.defaultOptions=e,this.interceptorManager=new Fo,this.cacheManager=new Wo,this.deduplicator=new Uo}addRequestInterceptor(e){this.interceptorManager.addRequestInterceptor(e)}addResponseInterceptor(e){this.interceptorManager.addResponseInterceptor(e)}addErrorInterceptor(e){this.interceptorManager.addErrorInterceptor(e)}removeRequestInterceptor(e){this.interceptorManager.removeRequestInterceptor(e)}removeResponseInterceptor(e){this.interceptorManager.removeResponseInterceptor(e)}removeErrorInterceptor(e){this.interceptorManager.removeErrorInterceptor(e)}clearInterceptors(){this.interceptorManager.clearAll()}async clearCache(){await this.cacheManager.clear()}async deleteCache(e){await this.cacheManager.delete(e)}async request(e,r={}){return(await this.requestWithMetadata(e,r)).response}async requestWithMetadata(e,r={}){if(this.disposed)throw this.closeReason;let n={...this.defaultOptions,...r},o;if(typeof e=="string"?o=new Request(e,n):o=e,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(e,r){try{let n=typeof r.retry=="object"?r.retry:r.retry?{}:void 0,o=i(async u=>{let c=r.timeout??6e4,f={...r};return delete f.body,delete f.headers,delete f.method,delete f.signal,await xm(u,{...f,signal:u.signal},c)},"fetchFnForRequest"),s=i(async(u,c)=>{let f=r.timeout??6e4;return await xm(u,c,f)},"fetchFnForFallbacks"),a;if(n){let u=new $o(n,r.signal);if(r.fallbackUrls&&r.fallbackUrls.length>0){let c=[e.url,...r.fallbackUrls];a={response:await u.executeWithFallbacks(c,{method:e.method,headers:e.headers,body:e.body,...r},s),fromCache:!1,revalidated:!1}}else{let c,f=await u.execute(async()=>{let p=await this.cacheManager.execute(e,r,o);return c=p,p.response});a=c?.response===f?c:{response:f,fromCache:!1,revalidated:!1}}}else a=await this.cacheManager.execute(e,r,o);let l=await this.interceptorManager.processResponse(a.response);if(r.interceptors?.response)for(let u of r.interceptors.response)l=await u(l);return lA(l,a)}catch(n){throw await this.interceptorManager.processError(n instanceof Error?n:new Error(String(n)))}}async close(){return this.closePromise?this.closePromise:(this.disposed=!0,this.closePromise=this.cacheManager.close(),this.closePromise)}async requestJsonWithMetadata(e,r){let n={...this.defaultOptions,...r},o=n.timeout??6e4,s=n.retry?void 0:performance.now()+o,a=s===void 0?void 0:new AbortController,l=a?n.signal?AbortSignal.any([n.signal,a.signal]):a.signal:n.signal,u=a===void 0?void 0:setTimeout(()=>{a.abort(En(e,o))},Math.max(0,o));try{let c=await this.requestWithMetadata(e,{...r,signal:l}),f=c.response;if(l?.aborted)throw await f.body?.cancel(l.reason).catch(()=>{}),l.reason instanceof Error?l.reason:new Error("The request was aborted");if(!f.ok)throw await f.body?.cancel(`HTTP ${f.status}`).catch(()=>{}),new Error(`HTTP ${f.status}: ${f.statusText}`);let p=s===void 0?o:s-performance.now(),h=await Bv(f,{bodyTimeoutMs:p,reportedTimeoutMs:o,signal:l,url:e});return Object.freeze({data:h,response:f,metadata:c.metadata})}catch(c){throw l?.aborted&&l.reason instanceof Error?l.reason:c}finally{u!==void 0&&clearTimeout(u)}}async getJson(e,r={}){return(await this.getJsonWithMetadata(e,r)).data}async getJsonWithMetadata(e,r={}){return await this.requestJsonWithMetadata(e,{...r,method:"GET",headers:{Accept:"application/json",...r.headers||{}}})}async postJson(e,r,n={}){return(await this.postJsonWithMetadata(e,r,n)).data}async postJsonWithMetadata(e,r,n={}){return await this.requestJsonWithMetadata(e,{...n,method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",...n.headers||{}},body:JSON.stringify(r)})}async putJson(e,r,n={}){return(await this.putJsonWithMetadata(e,r,n)).data}async putJsonWithMetadata(e,r,n={}){return await this.requestJsonWithMetadata(e,{...n,method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json",...n.headers||{}},body:JSON.stringify(r)})}async deleteJson(e,r={}){return(await this.deleteJsonWithMetadata(e,r)).data}async deleteJsonWithMetadata(e,r={}){return await this.requestJsonWithMetadata(e,{...r,method:"DELETE",headers:{Accept:"application/json",...r.headers||{}}})}},lA=i((t,e)=>{let r=Object.freeze({fromCache:e.fromCache,revalidated:e.revalidated});return Object.freeze({response:t,metadata:r})},"createResponseResult");var yt=new ci;async function it(t,e){let r=t instanceof Request?t.url:String(t),n=t instanceof Request?t:new Request(r,e);return await yt.request(n,e)}i(it,"webrequest"),it.requestWithMetadata=async function(t,e){let r=t instanceof Request?t.url:String(t),n=t instanceof Request?t:new Request(r,e);return await yt.requestWithMetadata(n,e)},it.getJson=async function(t,e){return await yt.getJson(t,e)},it.getJsonWithMetadata=async function(t,e){return await yt.getJsonWithMetadata(t,e)},it.postJson=async function(t,e,r){return await yt.postJson(t,e,r)},it.postJsonWithMetadata=async function(t,e,r){return await yt.postJsonWithMetadata(t,e,r)},it.putJson=async function(t,e,r){return await yt.putJson(t,e,r)},it.putJsonWithMetadata=async function(t,e,r){return await yt.putJsonWithMetadata(t,e,r)},it.deleteJson=async function(t,e){return await yt.deleteJson(t,e)},it.deleteJsonWithMetadata=async function(t,e){return await yt.deleteJsonWithMetadata(t,e)},it.addRequestInterceptor=function(t){yt.addRequestInterceptor(t)},it.addResponseInterceptor=function(t){yt.addResponseInterceptor(t)},it.addErrorInterceptor=function(t){yt.addErrorInterceptor(t)},it.clearInterceptors=function(){yt.clearInterceptors()},it.clearCache=async function(){await yt.clearCache()},it.createClient=function(t){return new ci(t)},it.getDefaultClient=function(){return yt};var da=jt(oh(),1);var uA=1e4,$v=new WeakSet,Uv=new WeakMap,Tm=i(t=>{$v.add(t)},"authorizeVirtualStreamApplicationUse"),fi=class extends Error{static{i(this,"VirtualStreamClosedError")}constructor(e="VirtualStream is closed",r){super(e,r),this.name="VirtualStreamClosedError"}},pi=class extends Error{static{i(this,"VirtualStreamOpenTimeoutError")}constructor(e,r){super(e>0?`VirtualStream transport staging timed out after ${e}ms`:"VirtualStream transport staging deadline is exhausted"),this.timeoutMs=e,this.deadlineAt=r,this.name="VirtualStreamOpenTimeoutError"}},rf=class extends Error{static{i(this,"VirtualStreamLifecycleContractError")}constructor(e){super(`VirtualStream endpoint closed before terminal ${e} produced a receipt`),this.name="VirtualStreamLifecycleContractError"}},Yr=class{static{i(this,"VirtualStreamActivationScope")}constructor(){this.trackedStreams=new Set,this.hasAuthorizedTrackedStreams=!1,this.published=!1,this.settled=!1}track(e){if(this.settled)throw new Error("Cannot track a VirtualStream in a settled activation scope");let r=Uv.get(e);if(r&&r!==this)throw new Error("VirtualStream is already owned by another activation scope");r||Uv.set(e,this),this.trackedStreams.add(e),this.hasAuthorizedTrackedStreams&&Tm(e),this.published&&e.publishActivation()}authorizeApplicationUse(){if(!(this.settled||this.hasAuthorizedTrackedStreams)){this.hasAuthorizedTrackedStreams=!0;for(let e of this.trackedStreams)Tm(e)}}publish(){if(!(this.settled||this.published)){this.published=!0;for(let e of this.trackedStreams)e.publishActivation()}}commit(){this.publish(),this.settled=!0,this.trackedStreams.clear()}async rollback(e){if(this.settled)return;this.settled=!0;let r=[...this.trackedStreams];this.trackedStreams.clear(),await Promise.allSettled(r.map(n=>n.rollbackActivation(e)))}},ur=class t{static{i(this,"VirtualStream")}static{this.maximumStreamIdLength=256}static fromRegistration(e){let r=e.registration?.dispose,n=i(()=>{let o=r;r=void 0,o?.()},"disposeOnce");try{if(t.validateTransport(e.transport),typeof e.registration?.dispose!="function")throw new TypeError("VirtualStream registration requires a synchronous disposer");return t.validateNetworkDescriptor(e.registration.descriptor),t.validateEndpoint(e.registration.endpoint,e.registration.descriptor,e.registration.descriptor.creatorDirection),new t({transport:e.transport,descriptor:e.registration.descriptor,endpoint:e.registration.endpoint,registrationDispose:n,explicitRegistration:!0})}catch(o){throw n(),o}}static encodePayloadForNetwork(e,r){let n=e?.correlation?.phase==="response";return t.encodePayloadValue(e,r,n,!1,!0,{standard:new WeakMap,omittingResponseRequestStreams:new WeakMap})}static encodePayloadForNetworkWithMetadata(e,r){let n=e?.correlation?.phase==="response",o={standard:new WeakMap,omittingResponseRequestStreams:new WeakMap,containsNetworkDescriptor:!1,requiresNetworkDescriptorScan:!1},s=t.encodePayloadValue(e,r,n,!1,!0,o),a=o.requiresNetworkDescriptorScan||t.encodedContainerPrototypesMayExposeNetworkDescriptor();return{payload:s,containsNetworkDescriptor:a?t.containsNetworkDescriptor(s):o.containsNetworkDescriptor}}static encodePayloadValue(e,r,n,o,s,a){if(!e||li.isBufferLike(e))return e;if(e instanceof t)return o?{_OMITTED_VIRTUAL_STREAM:!0,reason:"Streams beneath an echoed response.request are omitted."}:(a.containsNetworkDescriptor!==void 0&&(a.containsNetworkDescriptor=!0),e.activateForEncoding(r));if(e instanceof Set||e instanceof Map||e instanceof Date||e instanceof RegExp||e instanceof Error||e instanceof Promise||typeof e.then=="function")return a.containsNetworkDescriptor!==void 0&&typeof e=="object"&&(a.requiresNetworkDescriptorScan=!0),e;if(typeof e!="object")return e;let u=o?a.omittingResponseRequestStreams:a.standard,c=u.get(e);if(c)return c;if(Array.isArray(e)){let p=[];u.set(e,p);for(let h=0;h<e.length;h++)p.push(t.encodePayloadValue(e[h],r,n,o,!1,a));return a.containsNetworkDescriptor!==void 0&&Object.getPrototypeOf(p)!==Array.prototype&&(a.requiresNetworkDescriptorScan=!0),p}let f={};u.set(e,f);for(let p of Object.keys(e)){let h=o||n&&s&&p==="request";f[p]=t.encodePayloadValue(e[p],r,n,h,!1,a)}return a.containsNetworkDescriptor!==void 0&&Object.getPrototypeOf(f)!==Object.prototype&&(a.requiresNetworkDescriptorScan=!0),a.containsNetworkDescriptor!==void 0&&Object.hasOwn(f,"_isVirtualStream")&&f._isVirtualStream===!0&&(a.containsNetworkDescriptor=!0),f}static async decodePayloadFromNetworkAsync(e,r){let n=new Map,o=[],s=[],a=r.activationScope??new Yr,l=!r.activationScope,u=t.resolveOpenDeadlineAt(r.openDeadlineAt);try{let c=t.preparePayloadFromNetwork(e,{...r,activationScope:a},n,o,s,new WeakMap);if(o.length>0){let f=r.virtualStreamTransport;if(!f)throw new Error("VirtualStream descriptor requires a virtual stream transport");t.validateTransport(f);for(let p of o){let h=t.getRemainingOpenTimeoutMs(u),m=await t.openVirtualStreamWithTimeout(f,p.descriptor,h,u,r.abortSignal);p.stream.bindOpenedEndpoint(m)}}return l&&(a.authorizeApplicationUse(),a.commit()),c}catch(c){throw await Promise.allSettled(s.map(f=>f.rollbackActivation(c))),c}}static containsNetworkDescriptor(e,r=new WeakSet){return!e||li.isBufferLike(e)||typeof e!="object"?!1:e._isVirtualStream===!0?!0:r.has(e)?!1:(r.add(e),Array.isArray(e)?e.some(n=>t.containsNetworkDescriptor(n,r)):e instanceof Set||e instanceof Map||e instanceof Date||e instanceof RegExp||e instanceof Error||e instanceof Promise||typeof e.then=="function"?!1:Object.values(e).some(n=>t.containsNetworkDescriptor(n,r)))}static encodedContainerPrototypesMayExposeNetworkDescriptor(){return Object.getPrototypeOf(Object.prototype)!==null||Object.getPrototypeOf(Array.prototype)!==Object.prototype||Object.getOwnPropertyDescriptor(Object.prototype,"_isVirtualStream")!==void 0||Object.getOwnPropertyDescriptor(Array.prototype,"_isVirtualStream")!==void 0}static preparePayloadFromNetwork(e,r,n,o,s,a){if(li.isBufferLike(e)||e===null||typeof e!="object"||e instanceof Set||e instanceof Map||e instanceof Date||e instanceof RegExp||e instanceof Error||e instanceof Promise||typeof e.then=="function")return e;if(e._isVirtualStream===!0){t.validateNetworkDescriptor(e);let c=e,f=n.get(c.streamId);if(f){if(!t.descriptorMetadataMatches(f.descriptor,c))throw new TypeError(`Conflicting VirtualStream metadata for streamId "${c.streamId}"`);return f.stream}let p=r.virtualStreamTransport,h=new t({transport:p,descriptor:c,explicitRegistration:!1});return n.set(c.streamId,{stream:h,descriptor:c}),o.push({stream:h,descriptor:c}),s.push(h),r.activationScope?.track(h),h}let l=a.get(e);if(l)return l;if(Array.isArray(e)){let c=[];a.set(e,c);for(let f of e)c.push(t.preparePayloadFromNetwork(f,r,n,o,s,a));return c}let u={};a.set(e,u);for(let c of Object.keys(e))Object.defineProperty(u,c,{value:t.preparePayloadFromNetwork(e[c],r,n,o,s,a),configurable:!0,enumerable:!0,writable:!0});return u}static resolveOpenDeadlineAt(e){let r=performance.now()+uA;if(e===void 0)return r;if(!Number.isFinite(e)||e<0)throw new RangeError("VirtualStream openDeadlineAt must be a non-negative finite number");return Math.min(e,r)}static getRemainingOpenTimeoutMs(e){let r=Math.ceil(e-performance.now());if(!Number.isSafeInteger(r)||r<=0)throw new pi(0,e);return r}static async openVirtualStreamWithTimeout(e,r,n,o,s){let a=new pi(n,o),l=new AbortController,u,c,f,p=Promise.resolve().then(()=>e.openVirtualStream(r,{abortSignal:l.signal,timeoutMs:n}));p.then(async m=>{u!==void 0&&await t.abortLateOpenedEndpoint(m,u)},()=>{});let h=new Promise((m,d)=>{c=setTimeout(()=>{u=a,l.abort(a),d(a)},n),s&&(f=i(()=>{let g=s.reason??new DOMException("The operation was aborted","AbortError");u=g,l.abort(g),d(g)},"parentAbortListener"),s.addEventListener("abort",f,{once:!0}),s.aborted&&f())});try{return await Promise.race([p,h])}finally{c&&clearTimeout(c),s&&f&&s.removeEventListener("abort",f)}}static async abortLateOpenedEndpoint(e,r){let n;try{n=Promise.resolve(e.abort(r))}catch{}n?.catch(()=>{});try{await e.closed}catch{}}static validateTransport(e){if(!e||typeof e!="object"||typeof e.openVirtualStream!="function")throw new TypeError("VirtualStream transport is invalid")}static validateNetworkDescriptor(e){if(!t.isPlainObject(e))throw new TypeError("VirtualStream descriptor must be a plain object");let r=t.getOwnDataProperty(e,"_isVirtualStream"),n=t.getOwnDataProperty(e,"protocol"),o=t.getOwnDataProperty(e,"streamId"),s=t.getOwnDataProperty(e,"creatorDirection");if(r!==!0||n!=="virtual-stream-v1")throw new TypeError("VirtualStream descriptor requires protocol virtual-stream-v1");if(typeof o!="string"||o.length===0||o.length>t.maximumStreamIdLength)throw new TypeError(`VirtualStream descriptor streamId must contain 1-${t.maximumStreamIdLength} characters`);if(s!=="send"&&s!=="receive")throw new TypeError("VirtualStream descriptor creatorDirection must be send or receive");let a=Object.getOwnPropertyDescriptor(e,"contentType");if(a&&(!("value"in a)||typeof a.value!="string"||a.value.length===0))throw new TypeError("VirtualStream descriptor contentType must be a non-empty string");let l=Object.getOwnPropertyDescriptor(e,"integrity");if(l){if(!("value"in l))throw new TypeError("VirtualStream descriptor integrity must be data");t.validateIntegrity(l.value)}let u=Object.getOwnPropertyDescriptor(e,"transport");if(!u||!("value"in u))throw new TypeError("VirtualStream descriptor requires an own transport property");if(!t.isJsonCompatible(u.value,new WeakSet))throw new TypeError("VirtualStream descriptor transport must be JSON-compatible")}static validateIntegrity(e){if(!t.isPlainObject(e))throw new TypeError("VirtualStream integrity must be a plain object");let r=t.getOwnDataProperty(e,"algorithm"),n=t.getOwnDataProperty(e,"byteLength"),o=t.getOwnDataProperty(e,"digest");if(r!=="sha256")throw new TypeError("VirtualStream integrity algorithm must be sha256");if(!Number.isSafeInteger(n)||n<0)throw new TypeError("VirtualStream integrity byteLength must be a non-negative safe integer");if(typeof o!="string"||!/^sha256:[0-9a-f]{64}$/.test(o))throw new TypeError("VirtualStream integrity digest is invalid")}static validateEndpoint(e,r,n){if(!e||typeof e!="object")throw new TypeError("VirtualStream transport returned an invalid endpoint");let o=e;if(o.protocol!=="virtual-stream-v1"||o.direction!==n||o.streamId!==r.streamId||o.contentType!==r.contentType||!t.integrityMatches(o.integrity,r.integrity))throw new TypeError("VirtualStream endpoint direction or metadata does not match its descriptor");if(!("opened"in o)||!("completion"in o)||!o.closed||typeof o.closed.then!="function"||typeof o.abort!="function")throw new TypeError("VirtualStream endpoint lacks lifecycle contracts");if(n==="send"){if(typeof o.send!="function"||typeof o.close!="function"||!("writable"in o))throw new TypeError("VirtualStream sender endpoint is invalid")}else if(typeof o.receive!="function"||typeof o.accept!="function"||typeof o.reject!="function"||!("readable"in o))throw new TypeError("VirtualStream receiver endpoint is invalid")}static descriptorMetadataMatches(e,r){return e.creatorDirection===r.creatorDirection&&e.contentType===r.contentType&&t.integrityMatches(e.integrity,r.integrity)}static integrityMatches(e,r){return!e||!r?e===r:e.algorithm===r.algorithm&&e.byteLength===r.byteLength&&e.digest===r.digest}static getOwnDataProperty(e,r){let n=Object.getOwnPropertyDescriptor(e,r);if(!(!n||!("value"in n)))return n.value}static isPlainObject(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;let r=Object.getPrototypeOf(e);return r===Object.prototype||r===null}static isJsonCompatible(e,r){if(e===null||typeof e=="string"||typeof e=="boolean")return!0;if(typeof e=="number")return Number.isFinite(e);if(!e||typeof e!="object"||r.has(e))return!1;r.add(e);try{if(Array.isArray(e)){for(let n=0;n<e.length;n++){let o=Object.getOwnPropertyDescriptor(e,String(n));if(!o||!("value"in o)||!t.isJsonCompatible(o.value,r))return!1}return Reflect.ownKeys(e).every(n=>n==="length"||typeof n=="string"&&/^(0|[1-9][0-9]*)$/.test(n)&&Number(n)<e.length)}if(!t.isPlainObject(e))return!1;for(let n of Reflect.ownKeys(e)){if(typeof n!="string")return!1;let o=Object.getOwnPropertyDescriptor(e,n);if(!o.enumerable||!("value"in o)||!t.isJsonCompatible(o.value,r))return!1}return!0}finally{r.delete(e)}}constructor(e){this.activationPublished=!1,this.endpointUseStarted=!1,this.endpointClosed=!1,this.locallyDisposed=!1,this.transport=e.transport,this.descriptor=e.descriptor,this.endpoint=e.endpoint,this.registrationDispose=e.registrationDispose,this.explicitRegistration=e.explicitRegistration,this.explicitRegistration&&Tm(this),this.endpoint&&this.observeEndpoint(this.endpoint)}get protocol(){return"virtual-stream-v1"}get direction(){return this.endpoint?this.endpoint.direction:this.descriptor.creatorDirection==="send"?"receive":"send"}get streamId(){return this.descriptor.streamId}get contentType(){return this.descriptor.contentType}get integrity(){return this.descriptor.integrity}get opened(){try{this.assertApplicationOperationsAllowed(),this.assertNotClosed(),this.endpointUseStarted=!0;let e=this.requireEndpoint().opened;if(!e||typeof e.then!="function")throw new TypeError("VirtualStream endpoint opened contract is invalid");return e}catch(e){return Promise.reject(e)}}get completion(){let e=this.requireEndpoint().completion;if(!e||typeof e.then!="function")throw new TypeError("VirtualStream endpoint completion contract is invalid");return e}get closed(){return this.requireEndpoint().closed}get writable(){return this.assertApplicationOperation("send"),this.endpointUseStarted=!0,this.requireEndpoint().writable}get readable(){return this.assertApplicationOperation("receive"),this.endpointUseStarted=!0,this.requireEndpoint().readable}publishActivation(){this.explicitRegistration&&!this.locallyDisposed&&(this.activationPublished=!0)}async rollbackActivation(e){if(!this.locallyDisposed){if(this.explicitRegistration&&!this.activationPublished&&!this.endpointUseStarted){this.disposeUnpublishedRegistration();return}this.endpoint&&await this.abort(e)}}async send(e){if(this.assertApplicationOperation("send"),!(e instanceof Uint8Array))throw new TypeError("VirtualStream.send accepts only Uint8Array chunks");this.endpointUseStarted=!0,await this.requireEndpoint().send(e)}async receive(){return this.assertApplicationOperation("receive"),this.endpointUseStarted=!0,this.requireEndpoint().receive()}close(){if(this.terminalPromise)return this.followTerminal("close");try{this.assertApplicationOperation("send"),this.endpointUseStarted=!0;let e=this.requireEndpoint();return this.terminateEndpoint(()=>e.close(),"close")}catch(e){return Promise.reject(e)}}accept(){if(this.terminalPromise)return this.followTerminal("accept");try{this.assertApplicationOperation("receive"),this.endpointUseStarted=!0;let e=this.requireEndpoint();return this.terminateEndpoint(()=>e.accept(),"accept")}catch(e){return Promise.reject(e)}}reject(e){if(this.terminalPromise)return this.followTerminal("reject");try{this.assertApplicationOperation("receive"),this.endpointUseStarted=!0;let r=this.requireEndpoint();return this.terminateEndpoint(()=>r.reject(e),"reject")}catch(r){return Promise.reject(r)}}abort(e){if(this.terminalPromise)return this.followTerminal("abort");if(this.locallyDisposed||this.endpointClosed)return Promise.resolve();let r=this.endpoint;return r?(this.endpointUseStarted=!0,this.terminateEndpoint(()=>r.abort(e),"abort")):Promise.resolve()}activateForEncoding(e){e.activationScope?.track(this);try{if(!e.virtualStreamTransport)throw new Error("VirtualStream requires a virtual stream transport");if(this.transport!==e.virtualStreamTransport)throw new Error("VirtualStream cannot be encoded through a different virtual stream transport");if(this.assertNotClosed(),this.terminalPromise)throw new fi("VirtualStream has a terminal operation");return e.activationScope||this.publishActivation(),this.descriptor}catch(r){throw e.activationScope||this.rollbackActivation(r).catch(()=>{}),r}}bindOpenedEndpoint(e){this.endpoint=e;let r=this.descriptor.creatorDirection==="send"?"receive":"send";t.validateEndpoint(e,this.descriptor,r),this.observeEndpoint(e)}observeEndpoint(e){let r=e.completion;if(!r||typeof r.then!="function")throw new TypeError("VirtualStream endpoint completion contract is invalid");r.then(n=>{this.completionOutcome={status:"fulfilled",value:n}},n=>{this.completionOutcome={status:"rejected",error:n}}),e.closed.then(()=>this.markEndpointClosed(),n=>this.markEndpointClosed(n))}markEndpointClosed(e){e!==void 0&&this.getCloseError(e),this.endpointClosed=!0,this.disposeRegistration()}disposeRegistration(){let e=this.registrationDispose;this.registrationDispose=void 0,e?.()}disposeUnpublishedRegistration(){this.locallyDisposed||(this.locallyDisposed=!0,this.disposeRegistration())}requireEndpoint(){if(!this.endpoint)throw new Error("VirtualStream endpoint is not staged");return this.endpoint}assertApplicationOperationsAllowed(){if(!$v.has(this))throw new Error("VirtualStream application use is not authorized")}assertApplicationOperation(e){if(this.assertApplicationOperationsAllowed(),this.assertNotClosed(),this.terminalPromise)throw new fi("VirtualStream has a terminal operation");if(this.direction!==e)throw new TypeError(`${this.direction} VirtualStreams cannot perform ${e} operations`)}assertNotClosed(){if(this.endpointClosed||this.locallyDisposed)throw this.getCloseError()}getCloseError(e){return this.closeError||(this.closeError=new fi("VirtualStream is closed",e===void 0?void 0:{cause:e})),this.closeError}followTerminal(e){let r=this.terminalPromise;if(this.terminalKind===e)return r;let n=new fi(`VirtualStream terminal ${this.terminalKind} already completed`);return r.then(()=>Promise.reject(n),()=>Promise.reject(n))}terminateEndpoint(e,r){if(this.terminalPromise)return this.followTerminal(r);let n=this.requireEndpoint();this.terminalKind=r;let o=e,s=Promise.resolve().then(()=>{let f=o;return o=void 0,f()});s.catch(()=>{});let a=s.then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",error:f})),l;a.then(f=>{l=f});let u=n.closed.then(()=>({status:"closed"}),f=>({status:"closedError",error:f})),c=(async()=>{let f=await Promise.race([a,u]);if(f.status==="fulfilled"||f.status==="rejected"){let p=await u;if(this.endpointClosed=!0,this.disposeRegistration(),f.status==="rejected")throw f.error;if(p.status==="closedError")throw p.error;return f.value}if(this.endpointClosed=!0,this.disposeRegistration(),f.status==="closedError")throw f.error;if(await Promise.resolve(),await Promise.resolve(),l?.status==="rejected")throw l.error;if(l?.status==="fulfilled")return l.value;if(r==="close"||r==="accept"){if(this.completionOutcome?.status==="fulfilled")return this.completionOutcome.value;throw this.completionOutcome?.status==="rejected"?this.completionOutcome.error:new rf(r)}})();return this.terminalPromise=c,c}};var Zt=class extends Error{static{i(this,"TypedResponseError")}constructor(e,r){super(e),this.name="TypedResponseError",this.errorText=e,this.errorData=r??{}}};var qo=Object.freeze({redacted:!0});var qv=Object.freeze(["onOutgoingRequest","onIncomingResponse","onIncomingRequest","onOutgoingResponse"]),Yv=Symbol.for("@api.global/typedrequest:global-hooks:3.8"),Vv=i(t=>({payloadProjector:t?.payloadProjector,errorProjector:t?.errorProjector}),"copyProjectionOptions"),of=i((t={})=>({hooks:t,projectedRegistrationsByPhase:{}}),"createTypedRouterHookRegistrationState"),cA=i(t=>qv.filter(e=>Object.hasOwn(t,e)).map(e=>[e,t[e]]),"getSuppliedHookEntries"),sf=i((t,e,r)=>{let n=cA(e);t.hooks={...t.hooks,...e};for(let[o]of n){let s=t.hooks[o];if(typeof s!="function"){delete t.projectedRegistrationsByPhase[o];continue}t.projectedRegistrationsByPhase[o]={callback:s,projectionOptions:Vv(r)}}},"mergeTypedRouterHookRegistrations"),af=i((t,e)=>{t.hooks=e;for(let r of qv)delete t.projectedRegistrationsByPhase[r]},"replaceTypedRouterHookRegistrations"),Yo=i(()=>{let t=globalThis[Yv];if(t?.version==="3.8"&&t.stateShape==="callback-bound-projections-v1"&&t.subscribers instanceof Map)return t;let e={version:"3.8",stateShape:"callback-bound-projections-v1",legacy:of(),subscribers:new Map};return globalThis[Yv]=e,e},"getRealmGlobalHookState"),Jv=i(()=>Yo().legacy.hooks,"getLegacyGlobalHooks"),Qv=i(t=>{af(Yo().legacy,t)},"replaceLegacyGlobalHooks"),Kv=i((t,e)=>{sf(Yo().legacy,t,e)},"mergeLegacyGlobalHooks"),Xv=i((t,e)=>{let r=Yo(),n=Symbol("typedrequest-hook-subscriber"),o=of();sf(o,t,e),r.subscribers.set(n,o);let s=!1;return()=>{s||(s=!0,r.subscribers.delete(n))}},"addGlobalHookSubscriber"),Zv=i(()=>{let t=Yo();af(t.legacy,{}),t.subscribers.clear()},"clearGlobalHookRegistrations"),nf=i(t=>{try{console.error(`TypedRequest hook projection failed (${t})`)}catch{}},"logProjectionFailure"),Em=i(t=>{try{console.error(`TypedRequest hook callback failed (${t})`)}catch{}},"logCallbackFailure"),fA=i((t,e)=>{let r={correlationId:t.correlationId,method:t.method,direction:t.direction,phase:t.phase,timestamp:t.timestamp,...t.durationMs===void 0?{}:{durationMs:t.durationMs},hasError:t.errorText!==void 0};try{return Object.freeze(r)}catch{nf(e);return}},"createMetadata"),Gv=i(t=>typeof SharedArrayBuffer>"u"?!1:t instanceof SharedArrayBuffer||Object.prototype.toString.call(t)==="[object SharedArrayBuffer]","isSharedArrayBuffer"),Vo=i((t,e=new Set)=>{if(!(t===null||typeof t!="object"&&typeof t!="function")){if(Gv(t))throw new TypeError("TypedRequest hook projections cannot contain SharedArrayBuffer");if(ArrayBuffer.isView(t)){if(Gv(t.buffer))throw new TypeError("TypedRequest hook projections cannot contain SharedArrayBuffer-backed views");return}if(!e.has(t)){if(e.add(t),t instanceof Map){for(let[r,n]of t)Vo(r,e),Vo(n,e);return}if(t instanceof Set){for(let r of t)Vo(r,e);return}for(let r of Reflect.ownKeys(t)){let n=Reflect.getOwnPropertyDescriptor(t,r);if(n){if(!Object.hasOwn(n,"value"))throw new TypeError("TypedRequest hook projections cannot contain accessor properties");Vo(n.value,e)}}}}},"assertNoSharedArrayBuffer"),pA=i((t,e,r,n)=>{if(!e||!r.payloadProjector)return{payload:qo,payloadRedacted:!0};try{let o=r.payloadProjector(t,e);Vo(o);let s=structuredClone(o);return Vo(s),s!==null&&(typeof s=="object"||typeof s=="function")&&Object.freeze(s),{payload:s,payloadRedacted:!1}}catch{return nf(n),{payload:qo,payloadRedacted:!0}}},"snapshotPayload"),hA=i((t,e,r,n)=>{if(!(!e||t.errorText===void 0||!r.errorProjector))try{let o=r.errorProjector(t.errorText,e);if(o===void 0)return;let s=structuredClone(o);if(typeof s!="string")throw new TypeError("TypedRequest error projector must return a string or undefined");return s}catch{nf(n);return}},"snapshotError"),mA=i((t,e,r)=>{let n=fA(t,r),o=pA(t.payload,n,e,r),s=hA(t,n,e,r),a={correlationId:t.correlationId,method:t.method,direction:t.direction,phase:t.phase,timestamp:t.timestamp,...t.durationMs===void 0?{}:{durationMs:t.durationMs},hasError:t.errorText!==void 0,...o,...s===void 0?{}:{error:s}};try{return Object.freeze(a)}catch{nf(r);let l={correlationId:t.correlationId,method:t.method,direction:t.direction,phase:t.phase,timestamp:t.timestamp,...t.durationMs===void 0?{}:{durationMs:t.durationMs},hasError:t.errorText!==void 0,payload:qo,payloadRedacted:!0};try{return Object.freeze(l)}catch{return l}}},"projectLogEntry"),Dm=i((t,e)=>{try{let r=t.hooks[e];if(typeof r!="function")return;let n=t.projectedRegistrationsByPhase[e];return{callback:r,projectionOptions:n?.callback===r?Vv(n.projectionOptions):{}}}catch{Em(e);return}},"snapshotDispatchRecipient"),Cm=i((t,e,r)=>{let n=mA(r,t.projectionOptions,e);try{let o=t.callback(n);o&&typeof o.then=="function"&&Promise.resolve(o).catch(()=>{Em(e)})}catch{Em(e)}},"dispatchToRecipient"),Go=i((t,e,r)=>{let n=Yo();if(n.subscribers.size===0){let a=Dm(n.legacy,t),l=r?Dm(r,t):void 0;if(!a&&!l)return;a&&Cm(a,t,e),l&&Cm(l,t,e);return}let s=[n.legacy,...Array.from(n.subscribers.values()),...r?[r]:[]].map(a=>Dm(a,t)).filter(a=>!!a);for(let a of s)Cm(a,t,e)},"dispatchTypedRequestHook");var lf=class{static{i(this,"TypedTools")}constructor(e){this.localData={},this.abortSignal=e??new AbortController().signal}async passGuards(e,r){let n=new ua.GuardSet(e);if(!await n.allGuardsPass(r)){let s=await n.getFailedHint(r);throw new Zt(`guard failed: ${s}`,{failedHint:s})}}};var Om=class t{static{i(this,"TypedHandler")}static{this.internalErrorMessage="Internal server error"}constructor(e,r){this.method=e,this.handlerFunction=r}async addResponse(e,r){if(e.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let n,o=new lf(r);e.localData&&(o.localData=e.localData);let s=await this.handlerFunction(e.request,o).catch(a=>{a instanceof Zt?n=a:(console.error(`TypedRequest handler '${this.method}' failed`),n=new Zt(t.internalErrorMessage))});return n&&(e.error={text:n.errorText,data:n.errorData}),s&&(e.response=s),e?.correlation?.phase&&(e.correlation.phase="response"),e}};function uf(t){let e=t?.method,r=t?.correlation?.id,n=t?.requestInstanceId;if(!(typeof e!="string"||e.length===0||typeof r!="string"||r.length===0||typeof n!="string"||n.length===0))return JSON.stringify([e,r,n])}i(uf,"getTypedRequestResponseInterestKey");var Mm=class t{static{i(this,"TypedRouter")}constructor(){this.hookRegistrationState=of(),this.routerMap=new xt.ObjectMap,this.fallbackRouterMap=new xt.ObjectMap,this.fallbackParentRouters=new Set,this.handlerMap=new xt.ObjectMap,this.middlewares=[],this.fireEventInterestMap=new xt.InterestMap(e=>e)}static{this.internalErrorMessage="Internal server error"}registerVirtualStreamTransportResolver(e){if(typeof e!="function")throw new TypeError("TypedRouter virtual stream transport resolver must be a function");if(this.virtualStreamTransportResolver)throw new Error("TypedRouter already has a virtual stream transport resolver owner");this.virtualStreamTransportResolver=e;let r=!1;return()=>{r||(r=!0,this.virtualStreamTransportResolver===e&&(this.virtualStreamTransportResolver=void 0))}}registerIncomingRequestAuthorityGuard(e){if(typeof e!="function")throw new TypeError("TypedRouter incoming request authority guard must be a function");if(this.incomingRequestAuthorityGuard)throw new Error("TypedRouter already has an incoming request authority guard owner");this.incomingRequestAuthorityGuard=e;let r=!1;return()=>{r||(r=!0,this.incomingRequestAuthorityGuard===e&&(this.incomingRequestAuthorityGuard=void 0))}}registerIncomingRequestSignalResolver(e){if(typeof e!="function")throw new TypeError("TypedRouter incoming request signal resolver must be a function");if(this.incomingRequestSignalResolver)throw new Error("TypedRouter already has an incoming request signal resolver owner");this.incomingRequestSignalResolver=e;let r=!1;return()=>{r||(r=!0,this.incomingRequestSignalResolver===e&&(this.incomingRequestSignalResolver=void 0))}}registerIncomingResponseAuthorityGuard(e){if(typeof e!="function")throw new TypeError("TypedRouter incoming response authority guard must be a function");if(this.incomingResponseAuthorityGuard)throw new Error("TypedRouter already has an incoming response authority guard owner");this.incomingResponseAuthorityGuard=e;let r=!1;return()=>{r||(r=!0,this.incomingResponseAuthorityGuard===e&&(this.incomingResponseAuthorityGuard=void 0))}}static get globalHooks(){return Jv()}static set globalHooks(e){Qv(e)}static setGlobalHooks(e,r){Kv(e,r)}static addGlobalHooks(e,r){return Xv(e,r)}static clearGlobalHooks(){Zv()}get hooks(){return this.hookRegistrationState.hooks}set hooks(e){af(this.hookRegistrationState,e)}setHooks(e,r){sf(this.hookRegistrationState,e,r)}callHook(e,r){Go(e,r,this.hookRegistrationState)}setErrorFromCaughtError(e,r,n){if(r instanceof Zt){e.error={text:r.errorText,data:r.errorData??{}};return}console.error(`TypedRequest ${n} failed`),e.error={text:t.internalErrorMessage,data:{}}}addMiddleware(e){this.middlewares.push(e)}addTypedHandler(e){if(this.getTypedHandlerForMethod(e.method))throw new Error(`a TypedHandler for ${e.method} alredy exists! Can't add another one.`);this.handlerMap.add(e);try{this.validateAffectedCompositionRoots()}catch(n){throw this.handlerMap.remove(e),n}}addTypedRouter(e){if(e===this)throw new Error("A TypedRouter cannot be composed with itself.");if(this.routerMap.findSync(a=>a===e))return()=>{};let n=this.canReachRouter(e),o=e.canReachRouter(this);if(n!==o)throw new Error("Cannot add a bidirectional TypedRouter edge across an existing composition boundary.");this.routerMap.add(e),e.routerMap.add(this);try{this.validateAffectedCompositionRoots()}catch(a){throw this.routerMap.remove(e),e.routerMap.remove(this),a}let s=!1;return()=>{s||(s=!0,this.routerMap.remove(e),e.routerMap.remove(this))}}addFallbackRouter(e){if(e===this)throw new Error("A TypedRouter cannot use itself as a fallback.");if(this.fallbackRouterMap.findSync(n=>n===e))return()=>{};if(e.canReachRouter(this))throw new Error("Adding this fallback would create a TypedRouter composition cycle.");this.fallbackRouterMap.add(e),e.fallbackParentRouters.add(this);try{this.validateAffectedCompositionRoots()}catch(n){throw this.fallbackRouterMap.remove(e),e.fallbackParentRouters.delete(this),n}let r=!1;return()=>{r||(r=!0,this.fallbackRouterMap.remove(e),e.fallbackParentRouters.delete(this))}}getMethodNames(){return[...this.collectReachableHandlers().keys()].sort()}canReachRouter(e,r=new Set){if(this===e)return!0;if(r.has(this))return!1;r.add(this);for(let n of[...this.routerMap.getArray(),...this.fallbackRouterMap.getArray()])if(n.canReachRouter(e,r))return!0;return!1}collectReachableHandlers(e=new Set,r=new Map){if(e.has(this))return r;e.add(this);for(let n of this.handlerMap.getArray()){let o=r.get(n.method);o||(o=new Set,r.set(n.method,o)),o.add(this)}for(let n of[...this.routerMap.getArray(),...this.fallbackRouterMap.getArray()])n.collectReachableHandlers(e,r);return r}getAffectedCompositionRoots(){let e=new Set,r=[this];for(;r.length>0;){let n=r.pop();e.has(n)||(e.add(n),r.push(...n.routerMap.getArray(),...n.fallbackParentRouters))}return e}validateAffectedCompositionRoots(){for(let e of this.getAffectedCompositionRoots())for(let[r,n]of e.collectReachableHandlers())if(n.size>1)throw new Error(`TypedRouter composition exposes more than one handler for method "${r}".`)}checkForTypedHandler(e){return!!this.getTypedHandlerForMethod(e)}getTypedHandlerForMethod(e,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(o=>o.method===e),n||this.routerMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(e,r))}),n||this.fallbackRouterMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(e,r))}),n}getTypedHandlerAndRouter(e,r=[]){r.push(this);let n=this.handlerMap.findSync(o=>o.method===e);if(n)return{handler:n,router:this};for(let o of this.routerMap.getArray())if(!r.includes(o)){let s=o.getTypedHandlerAndRouter(e,r);if(s)return s}for(let o of this.fallbackRouterMap.getArray())if(!r.includes(o)){let s=o.getTypedHandlerAndRouter(e,r);if(s)return s}return null}static{this.defaultRouteOptions={localRequest:!1,skipHooks:!1}}async routeAndAddResponse(e,r={}){if(!e||typeof e!="object")return null;let n;try{n=Object.prototype.propertyIsEnumerable.call(e,"localData")}catch{return null}let o={...t.defaultRouteOptions,...r};if(!this.sanitizeIncomingLocalData(e))return null;let s=Object.freeze({...o.trustedLocalData??{}});if(e?.correlation?.phase==="response"){let d=uf(e);if(!d)return null;if(this.incomingResponseAuthorityGuard){let g=Object.freeze({typedRouter:this,trustedLocalData:s,wireLocalDataPresent:n}),x=!1;try{x=this.incomingResponseAuthorityGuard(e,g)===!0}catch{}if(!x)return null}return o.skipHooks||this.callHook("onIncomingResponse",{correlationId:e.correlation.id,method:e.method,direction:"incoming",phase:"response",timestamp:Date.now(),payload:e.response,errorText:e.error?.text}),this.fireEventInterestMap.findInterest(d)?.fullfillInterest(e),null}if(e?.correlation?.phase!=="request"||typeof e.correlation.id!="string"||e.correlation.id.length===0||typeof e.method!="string"||e.method.length===0||!e.request||typeof e.request!="object")return console.log("TypedRouter received a malformed request DTO"),null;if(this.incomingRequestAuthorityGuard){let d=Object.freeze({typedRouter:this,trustedLocalData:s,wireLocalDataPresent:n}),g=!1;try{g=this.incomingRequestAuthorityGuard(e,d)===!0}catch{}if(!g)return null}let a,l=o.trustedAbortSignal;if(l!==void 0&&!this.isAbortSignal(l))throw new TypeError("TypedRouter trustedAbortSignal must be an AbortSignal");if(!l&&this.incomingRequestSignalResolver){if(typeof e.requestInstanceId!="string"||e.requestInstanceId.length===0)return null;let d=Object.freeze({typedRouter:this,trustedLocalData:s,wireLocalDataPresent:n});try{a=this.incomingRequestSignalResolver(e,d)}catch{return null}if(a&&(!this.isAbortSignal(a.abortSignal)||typeof a.complete!="function")){try{a.complete?.()}catch{}return null}l=a?.abortSignal}let u;try{u=this.virtualStreamTransportResolver?.(s)}catch(d){try{a?.complete()}catch{}throw d}let c=new Yr,f=new Yr,p=i(async d=>{await Promise.allSettled([c.rollback(d),f.rollback(d)])},"rollbackRouteActivations"),h=i(()=>{c.commit(),f.commit()},"commitRouteActivations"),m=i(async()=>(delete e.localData,ur.encodePayloadForNetwork(e,{side:"responding",virtualStreamTransport:u,activationScope:f})),"encodeResponse");try{if(e=await ur.decodePayloadFromNetworkAsync(e,{side:"responding",virtualStreamTransport:u,activationScope:c,abortSignal:l}),e.localData={...s},e.localData.firstTypedrouter=this,e?.correlation?.phase==="request"){let d=Date.now();o.skipHooks||this.callHook("onIncomingRequest",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"incoming",phase:"request",timestamp:d,payload:e.request});let g=this.getTypedHandlerAndRouter(e.method);if(!g)return console.log(`Cannot find handler for methodname ${e.method}`),e.error={text:"There is no available method for this call on the server side",data:{}},e.correlation.phase="response",e=await m(),await p(e.error),o.skipHooks||this.callHook("onOutgoingResponse",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-d,payload:e.response,errorText:e.error?.text}),this.assertTrustedAbortSignalActive(l),e;let{handler:x,router:w}=g;if(w.middlewares.length>0)try{for(let E of w.middlewares)await E(e)}catch(E){return this.setErrorFromCaughtError(e,E,`middleware for method '${e.method}'`),e.correlation.phase="response",e=await m(),await p(E),o.skipHooks||this.callHook("onOutgoingResponse",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-d,payload:e.response,errorText:e.error?.text}),this.assertTrustedAbortSignalActive(l),e}c.authorizeApplicationUse(),e=await x.addResponse(e,l);let T=!!e.error;return e=await m(),T&&await p(e.error),o.skipHooks||this.callHook("onOutgoingResponse",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-d,payload:e.response,errorText:e.error?.text}),T||(this.assertTrustedAbortSignalActive(l),h()),this.assertTrustedAbortSignalActive(l),e}return await p(new Error("TypedRouter received an unroutable request DTO")),this.assertTrustedAbortSignalActive(l),null}catch(d){throw await p(d),d}finally{try{a?.complete()}catch{}}}sanitizeIncomingLocalData(e){try{let r=Reflect.getOwnPropertyDescriptor(e,"localData");if(r&&(r.configurable!==!0||!Reflect.deleteProperty(e,"localData")))return!1;if(!Reflect.has(e,"localData"))return!0;if(!Reflect.isExtensible(e)||!Reflect.defineProperty(e,"localData",{configurable:!0,enumerable:!1,value:void 0,writable:!0}))return!1;let n=Reflect.getOwnPropertyDescriptor(e,"localData");return!!(n&&n.configurable===!0&&n.enumerable===!1&&n.value===void 0&&n.writable===!0)}catch{return!1}}isAbortSignal(e){return!!(e&&typeof e=="object"&&typeof Reflect.get(e,"aborted")=="boolean"&&typeof Reflect.get(e,"addEventListener")=="function"&&typeof Reflect.get(e,"removeEventListener")=="function")}assertTrustedAbortSignalActive(e){if(e?.aborted)throw e.reason??new DOMException("The operation was aborted","AbortError")}};var Im=class{static{i(this,"TypedTarget")}constructor(e){if(this.isAsync=!1,e.postMethodWithTypedRouter&&!e.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");let r=e.responseTimeoutMs??3e4;if(!Number.isSafeInteger(r)||r<=0||r>2147483647)throw new RangeError("TypedTarget responseTimeoutMs must be a positive safe integer no greater than 2147483647");this.options=e,this.responseTimeoutMs=r}async post(e,r={}){if(r.signal&&this.options.supportsAbortSignal!==!0)throw new Error("TypedTarget does not declare AbortSignal transport support");let n=this.options.postMethod||this.options.postMethodWithTypedRouter;if(!n)throw new Error("TypedTarget requires a post method");let o;if(this.options.typedRouterRef){let f=uf(e);if(!f)throw new TypeError("TypedTarget request response identity is malformed");o=await this.options.typedRouterRef.fireEventInterestMap.addInterest(f,e)}let s=r.signal;if(s?.aborted)throw o?.destroy(),s.reason??new DOMException("The operation was aborted","AbortError");let a,l=s?new Promise((f,p)=>{a=i(()=>{o?.destroy(),p(s.reason??new DOMException("The operation was aborted","AbortError"))},"abortListener"),s.addEventListener("abort",a,{once:!0})}):void 0,u,c=o?new Promise((f,p)=>{u=setTimeout(()=>{p(new Error(`TypedTarget response timed out after ${this.responseTimeoutMs}ms`))},this.responseTimeoutMs),u.unref?.()}):void 0;try{let f=Promise.resolve(n(e,r)),p=await Promise.race([f,...c?[c]:[],...l?[l]:[]]);return o?await Promise.race([o.interestFullfilled,c,...l?[l]:[]]):p||e}finally{u&&clearTimeout(u),s&&a&&s.removeEventListener("abort",a),o?.destroy()}}};var cf=new Dn.WebrequestClient,ff=2147483647,pf=class extends Error{static{i(this,"TypedRequestTimeoutError")}constructor(e,r){super(`Typed request "${e}" timed out after ${r}ms`),this.name="TypedRequestTimeoutError",this.method=e,this.timeoutMs=r}},hf=class extends Error{static{i(this,"TypedRequestRetryLimitError")}constructor(e,r){super(`Typed request "${e}" exceeded its ${r} server-directed retries`),this.name="TypedRequestRetryLimitError",this.method=e,this.maxRetries=r}},mf=class{static{i(this,"TypedRequest")}constructor(e,r){this.skipHooks=!1,typeof e=="string"?this.urlEndPoint=e:this.typedTarget=e,this.method=r}async fire(e,r=!1){let n=Date.now(),o=this.resolveFireOptions(r),s=this.createAbortContext(o);o.abortSignal=s.signal;let a=new Yr,l={method:this.method,request:e,response:null,requestInstanceId:da.uni(),correlation:{id:da.uni(),phase:"request"}};try{this.assertActive(o);let u=ur.encodePayloadForNetworkWithMetadata(l,{side:"requesting",activationScope:a,virtualStreamTransport:this.typedTarget?.options.virtualStreamTransport});l=u.payload;let c=u.containsNetworkDescriptor;if(c&&!this.urlEndPoint&&this.typedTarget.options.supportsAbortSignal!==!0)throw new Error("VirtualStreams require TypedTarget AbortSignal transport support");if(o.useCache&&c)throw new Error("TypedRequest response caching is not supported for requests containing VirtualStreams");this.assertActive(o),o.useCache&&(o.cacheKey=await this.createCacheKey(l),this.assertActive(o)),this.skipHooks||Go("onOutgoingRequest",{correlationId:l.correlation.id,method:this.method,direction:"outgoing",phase:"request",timestamp:n,payload:e}),a.publish();let f=await this.postTrObject(l,o);delete f.localData;let p=f.error;if(this.assertActive(o),p)throw this.skipHooks||Go("onIncomingResponse",{correlationId:l.correlation.id,method:this.method,direction:"incoming",phase:"response",timestamp:Date.now(),durationMs:Date.now()-n,payload:f.response,errorText:p.text}),this.assertActive(o),new Zt(p.text,p.data);let h=f.response;if(!this.urlEndPoint&&this.typedTarget.options.supportsAbortSignal!==!0&&ur.containsNetworkDescriptor(h))throw new Error("VirtualStreams require TypedTarget AbortSignal transport support");try{h=await ur.decodePayloadFromNetworkAsync(h,{side:"requesting",activationScope:a,virtualStreamTransport:this.typedTarget?.options.virtualStreamTransport,openDeadlineAt:o.deadlineAt,abortSignal:o.abortSignal})}catch(m){throw m instanceof pi&&o.deadlineAt!==void 0&&m.deadlineAt===o.deadlineAt?this.createTimeoutError(o):m}return this.assertActive(o),a.authorizeApplicationUse(),this.skipHooks||Go("onIncomingResponse",{correlationId:l.correlation.id,method:this.method,direction:"incoming",phase:"response",timestamp:Date.now(),durationMs:Date.now()-n,payload:h}),this.assertActive(o),a.commit(),h}catch(u){throw await a.rollback(u),u}finally{s.cleanup()}}async postTrObject(e,r={useCache:!1,maxRetries:3}){let n=0;for(;;){this.assertActive(r);let o=this.createRequestIdentitySnapshot(e),s;if(this.urlEndPoint){let a;try{a=await cf.postJsonWithMetadata(this.urlEndPoint,e,{cacheStrategy:r.useCache?"cache-first":"network-only",cacheKey:r.cacheKey,timeout:this.getRemainingTimeout(r),signal:r.abortSignal})}catch(l){throw r.cacheKey&&l instanceof SyntaxError&&await cf.deleteCache(r.cacheKey),r.abortSignal?.aborted?this.getAbortReason(r):r.timeoutMs!==void 0&&(this.hasDeadlineExpired(r)||Dn.isWebrequestTimeoutError(l))?this.createTimeoutError(r):l}s=a.data;try{a.metadata.fromCache?s=this.reconstructCachedHttpResponse(s,e,o):this.assertResponseEnvelope(s,o)}catch(l){throw r.cacheKey&&await cf.deleteCache(r.cacheKey),l}r.cacheKey&&!this.isReusableCachedHttpEnvelope(s)&&await cf.deleteCache(r.cacheKey)}else s=await this.postTypedTarget(e,r);if(this.assertResponseEnvelope(s,o),this.assertActive(r),s.error&&!s.retry||!s.retry)return s;if(console.log(`Server requested a retry for TypedRequest method '${this.method}'`),n>=r.maxRetries)throw new hf(this.method,r.maxRetries);n+=1,await this.waitForRetry(s.retry.waitForMs,r),e.requestInstanceId=da.uni(),e.correlation.phase="request",e.response=null,delete e.error,delete e.retry}}assertResponseEnvelope(e,r){let n=e?.error,o=e?.requestInstanceId,s=r.requestInstanceId;if(!e||typeof e!="object"||e.method!==r.method||e.correlation?.phase!=="response"||typeof e.correlation.id!="string"||e.correlation.id.length===0||!Object.hasOwn(e,"response")||typeof o!="string"||o.length===0||typeof s!="string"||s.length===0||o!==s||n!==void 0&&(!n||typeof n!="object"||typeof n.text!="string")||e.correlation.id!==r.correlationId)throw new TypeError("TypedRequest received an invalid response envelope")}async postTypedTarget(e,r){this.assertActive(r);try{return await this.typedTarget.post(e,{signal:r.abortSignal})}catch(n){throw r.abortSignal?.aborted?this.getAbortReason(r):n}}resolveFireOptions(e){let r=typeof e=="boolean"?{useCache:e}:e;if(!r||typeof r!="object")throw new TypeError("TypedRequest fire options must be a boolean or an options object");if(r.useCache!==void 0&&typeof r.useCache!="boolean")throw new TypeError("TypedRequest useCache must be a boolean");if(r.timeoutMs!==void 0&&(!Number.isSafeInteger(r.timeoutMs)||r.timeoutMs<=0||r.timeoutMs>ff))throw new RangeError(`TypedRequest timeoutMs must be a positive safe integer no greater than ${ff}`);if(r.abortSignal!==void 0&&!this.isAbortSignal(r.abortSignal))throw new TypeError("TypedRequest abortSignal must be an AbortSignal");if(r.maxRetries!==void 0&&(!Number.isSafeInteger(r.maxRetries)||r.maxRetries<0||r.maxRetries>1e3))throw new RangeError("TypedRequest maxRetries must be a safe integer between 0 and 1000");if((r.timeoutMs!==void 0||r.abortSignal!==void 0)&&!this.urlEndPoint&&this.typedTarget.options.supportsAbortSignal!==!0)throw new Error(r.abortSignal?"TypedRequest cancellation requires an HTTP URL or a TypedTarget with AbortSignal support":"TypedRequest timeoutMs requires an HTTP URL or a TypedTarget with AbortSignal support");return{useCache:r.useCache??!1,timeoutMs:r.timeoutMs,maxRetries:r.maxRetries??3,abortSignal:r.abortSignal,deadlineAt:r.timeoutMs===void 0?void 0:performance.now()+r.timeoutMs}}getRemainingTimeout(e){if(e.deadlineAt===void 0||e.timeoutMs===void 0)return;let r=Math.ceil(e.deadlineAt-performance.now());if(r<=0)throw this.createTimeoutError(e);return r}assertDeadline(e){this.getRemainingTimeout(e)}assertActive(e){if(e.abortSignal?.aborted)throw this.getAbortReason(e);this.assertDeadline(e)}hasDeadlineExpired(e){return e.deadlineAt!==void 0&&performance.now()>=e.deadlineAt}createTimeoutError(e){return new pf(this.method,e.timeoutMs)}async waitForRetry(e,r){if(!Number.isSafeInteger(e)||e<=0||e>ff)throw new RangeError(`TypedRequest retry waitForMs must be a positive safe integer no greater than ${ff}`);this.assertActive(r);let n=this.getRemainingTimeout(r);if(n===void 0){await this.delayWithAbort(e,r);return}if(e>=n)throw await this.delayWithAbort(n,r),this.createTimeoutError(r);await this.delayWithAbort(e,r),this.assertActive(r)}async delayWithAbort(e,r){let n=r.abortSignal;if(!n){await ge.delayFor(e);return}await new Promise((o,s)=>{let a=setTimeout(()=>{n.removeEventListener("abort",l),o()},e),l=i(()=>{clearTimeout(a),n.removeEventListener("abort",l),s(this.getAbortReason(r))},"onAbort");n.addEventListener("abort",l,{once:!0}),n.aborted&&l()})}createAbortContext(e){let r=e.abortSignal;if(e.timeoutMs===void 0)return{signal:r,cleanup:i(()=>{},"cleanup")};let n=new AbortController,o=i(()=>{n.abort(r?.reason??new DOMException("The operation was aborted","AbortError"))},"onCallerAbort");r?.aborted?o():r?.addEventListener("abort",o,{once:!0});let s=Math.max(0,Math.ceil(e.deadlineAt-performance.now())),a=setTimeout(()=>{n.abort(this.createTimeoutError(e))},s);return a.unref?.(),{signal:n.signal,cleanup:i(()=>{clearTimeout(a),r?.removeEventListener("abort",o)},"cleanup")}}getAbortReason(e){return e.abortSignal?.reason??new DOMException("The operation was aborted","AbortError")}reconstructCachedHttpResponse(e,r,n){if(!e||typeof e!="object"||Array.isArray(e)||e.method!==n.method||!Object.hasOwn(e,"response")||!e.response||typeof e.response!="object"||!this.isReusableCachedHttpEnvelope(e))throw new TypeError("TypedRequest received an invalid cached response envelope");return{method:n.method,request:r.request,response:e.response,requestInstanceId:n.requestInstanceId,correlation:{id:n.correlationId,phase:"response"}}}createRequestIdentitySnapshot(e){return Object.freeze({method:e.method,correlationId:e.correlation?.id,requestInstanceId:e.requestInstanceId})}isReusableCachedHttpEnvelope(e){return!Object.hasOwn(e,"error")&&!Object.hasOwn(e,"retry")&&!ur.containsNetworkDescriptor(e)}isAbortSignal(e){return!!(e&&typeof e=="object"&&typeof Reflect.get(e,"aborted")=="boolean"&&typeof Reflect.get(e,"addEventListener")=="function"&&typeof Reflect.get(e,"removeEventListener")=="function")}async createCacheKey(e){let r=JSON.stringify({endpoint:this.urlEndPoint,method:e.method,request:e.request}),n=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(r));return`typedrequest:v1:${Array.from(new Uint8Array(n),s=>s.toString(16).padStart(2,"0")).join("")}`}};function eS(t){return t&&typeof t.then=="function"}i(eS,"isPromise");var tS=Promise.resolve(!1),G_e=Promise.resolve(!0),Nr=Promise.resolve();function df(t,e){return t||(t=0),new Promise(function(r){return setTimeout(function(){return r(e)},t)})}i(df,"sleep");function rS(t,e){return Math.floor(Math.random()*(e-t+1)+t)}i(rS,"randomInt");function ga(){return Math.random().toString(36).substring(2)}i(ga,"randomToken");var _m=0;function Vr(){var t=Date.now()*1e3;return t<=_m&&(t=_m+1),_m=t,t}i(Vr,"microSeconds");function J_e(){return typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function"}i(J_e,"supportsWebLockAPI");var dA=Vr,gA="native";function xA(t){var e={time:Vr(),messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(r){e.messagesCallback&&e.messagesCallback(r.data)},e}i(xA,"create");function yA(t){t.bc.close(),t.subFns=[]}i(yA,"close");function wA(t,e){try{return t.bc.postMessage(e,!1),Nr}catch(r){return Promise.reject(r)}}i(wA,"postMessage");function bA(t,e){t.messagesCallback=e}i(bA,"onMessage");function vA(){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(vA,"canBeUsed");function SA(){return 150}i(SA,"averageResponseTime");var nS={create:xA,close:yA,onMessage:bA,postMessage:wA,canBeUsed:vA,type:gA,averageResponseTime:SA,microSeconds:dA};var Jo=class{static{i(this,"ObliviousSet")}ttl;map=new Map;_to=!1;constructor(e){this.ttl=e}has(e){let r=this.map.get(e);return typeof r>"u"?!1:r<Pm()-this.ttl?(this.map.delete(e),!1):!0}add(e){this.map.delete(e),this.map.set(e,Pm()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,kA(this)},0))}clear(){this.map.clear()}};function kA(t){let e=Pm()-t.ttl,r=t.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)break;let o=n[0];if(n[1]<e)t.map.delete(o);else break}}i(kA,"removeTooOldValues");function Pm(){return Date.now()}i(Pm,"now");function hi(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return typeof e.webWorkerSupport>"u"&&(e.webWorkerSupport=!0),e.idb||(e.idb={}),e.idb.ttl||(e.idb.ttl=1e3*45),e.idb.fallbackInterval||(e.idb.fallbackInterval=150),t.idb&&typeof t.idb.onclose=="function"&&(e.idb.onclose=t.idb.onclose),e.localstorage||(e.localstorage={}),e.localstorage.removeTimeout||(e.localstorage.removeTimeout=1e3*60),t.methods&&(e.methods=t.methods),e.node||(e.node={}),e.node.ttl||(e.node.ttl=1e3*60*2),e.node.maxParallelWrites||(e.node.maxParallelWrites=2048),typeof e.node.useFastPath>"u"&&(e.node.useFastPath=!0),e}i(hi,"fillOptionsWithDefaults");var TA=Vr,EA="pubkey.broadcast-channel-0-",cr="messages",xa={durability:"relaxed"},DA="idb";function iS(){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(iS,"getIdb");function gf(t){t.commit&&t.commit()}i(gf,"commitIndexedDBTransaction");function CA(t){var e=iS(),r=EA+t,n=e.open(r);return n.onupgradeneeded=function(o){var s=o.target.result;s.createObjectStore(cr,{keyPath:"id",autoIncrement:!0})},new Promise(function(o,s){n.onerror=function(a){return s(a)},n.onsuccess=function(){o(n.result)}})}i(CA,"createDatabase");function OA(t,e,r){var n=Date.now(),o={uuid:e,time:n,data:r},s=t.transaction([cr],"readwrite",xa);return new Promise(function(a,l){s.oncomplete=function(){return a()},s.onerror=function(c){return l(c)};var u=s.objectStore(cr);u.add(o),gf(s)})}i(OA,"writeMessage");function lPe(t){var e=t.transaction(cr,"readonly",xa),r=e.objectStore(cr),n=[];return new Promise(function(o){r.openCursor().onsuccess=function(s){var a=s.target.result;a?(n.push(a.value),a.continue()):(gf(e),o(n))}})}i(lPe,"getAllMessages");function MA(t,e){var r=t.transaction(cr,"readonly",xa),n=r.objectStore(cr),o=[],s=IDBKeyRange.bound(e+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(e+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<e+1?h.continue(e+1):(o.push(h.value),h.continue()):(gf(r),u(o))}})}i(MA,"getMessagesHigherThan");function IA(t,e){if(t.closed)return Promise.resolve([]);var r=t.db.transaction(cr,"readwrite",xa),n=r.objectStore(cr);return Promise.all(e.map(function(o){var s=n.delete(o);return new Promise(function(a){s.onsuccess=function(){return a()}})}))}i(IA,"removeMessagesById");function _A(t,e){var r=Date.now()-e,n=t.transaction(cr,"readonly",xa),o=n.objectStore(cr),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()):(gf(n),a(s))}else a(s)}})}i(_A,"getOldMessages");function PA(t){return _A(t.db,t.options.idb.ttl).then(function(e){return IA(t,e.map(function(r){return r.id}))})}i(PA,"cleanOldMessages");function NA(t,e){return e=hi(e),CA(t).then(function(r){var n={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:ga(),eMIs:new Jo(e.idb.ttl*2),writeBlockPromise:Nr,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,e.idb.onclose&&e.idb.onclose()},oS(n),n})}i(NA,"create");function oS(t){t.closed||sS(t).then(function(){return df(t.options.idb.fallbackInterval)}).then(function(){return oS(t)})}i(oS,"_readLoop");function AA(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}i(AA,"_filterMessage");function sS(t){return t.closed?Nr:t.messagesCallback?MA(t.db,t.lastCursorId).then(function(e){var r=e.filter(function(n){return!!n}).map(function(n){return n.id>t.lastCursorId&&(t.lastCursorId=n.id),n}).filter(function(n){return AA(n,t)}).sort(function(n,o){return n.time-o.time});return r.forEach(function(n){t.messagesCallback&&(t.eMIs.add(n.id),t.messagesCallback(n.data))}),Nr}):Nr}i(sS,"readNewMessages");function RA(t){t.closed=!0,t.db.close()}i(RA,"close");function FA(t,e){return t.writeBlockPromise=t.writeBlockPromise.then(function(){return OA(t.db,t.uuid,e)}).then(function(){rS(0,10)===0&&PA(t)}),t.writeBlockPromise}i(FA,"postMessage");function LA(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e,sS(t)}i(LA,"onMessage");function BA(){return!!iS()}i(BA,"canBeUsed");function zA(t){return t.idb.fallbackInterval*2}i(zA,"averageResponseTime");var aS={create:NA,close:RA,onMessage:LA,postMessage:FA,canBeUsed:BA,type:DA,averageResponseTime:zA,microSeconds:TA};var jA=Vr,HA="pubkey.broadcastChannel-",WA="localstorage";function lS(){var t;if(typeof window>"u")return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return t}i(lS,"getLocalStorage");function uS(t){return HA+t}i(uS,"storageKey");function $A(t,e){return new Promise(function(r){df().then(function(){var n=uS(t.channelName),o={token:ga(),time:Date.now(),data:e,uuid:t.uuid},s=JSON.stringify(o);lS().setItem(n,s);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=n,a.newValue=s,window.dispatchEvent(a),r()})})}i($A,"postMessage");function UA(t,e){var r=uS(t),n=i(function(s){s.key===r&&e(JSON.parse(s.newValue))},"listener");return window.addEventListener("storage",n),n}i(UA,"addStorageEventListener");function qA(t){window.removeEventListener("storage",t)}i(qA,"removeStorageEventListener");function YA(t,e){if(e=hi(e),!cS())throw new Error("BroadcastChannel: localstorage cannot be used");var r=ga(),n=new Jo(e.localstorage.removeTimeout),o={channelName:t,uuid:r,eMIs:n};return o.listener=UA(t,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(YA,"create");function VA(t){qA(t.listener)}i(VA,"close");function GA(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e}i(GA,"onMessage");function cS(){var t=lS();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch{return!1}return!0}i(cS,"canBeUsed");function JA(){var t=120,e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?t*2:t}i(JA,"averageResponseTime");var fS={create:YA,close:VA,onMessage:GA,postMessage:$A,canBeUsed:cS,type:WA,averageResponseTime:JA,microSeconds:jA};var pS=Vr,QA="simulate",Nm=new Set;function KA(t){var e={time:pS(),name:t,messagesCallback:null};return Nm.add(e),e}i(KA,"create");function XA(t){Nm.delete(t)}i(XA,"close");var hS=5;function ZA(t,e){return new Promise(function(r){return setTimeout(function(){var n=Array.from(Nm);n.forEach(function(o){o.name===t.name&&o!==t&&o.messagesCallback&&o.time<e.time&&o.messagesCallback(e)}),r()},hS)})}i(ZA,"postMessage");function eR(t,e){t.messagesCallback=e}i(eR,"onMessage");function tR(){return!0}i(tR,"canBeUsed");function rR(){return hS}i(rR,"averageResponseTime");var mS={create:KA,close:XA,onMessage:eR,postMessage:ZA,canBeUsed:tR,type:QA,averageResponseTime:rR,microSeconds:pS};var dS=[nS,aS,fS];function Am(t){var e=[].concat(t.methods,dS).filter(Boolean);if(t.type){if(t.type==="simulate")return mS;var r=e.find(function(o){return o.type===t.type});if(r)return r;throw new Error("method-type "+t.type+" not found")}t.webWorkerSupport||(e=e.filter(function(o){return o.type!=="idb"}));var n=e.find(function(o){return o.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(dS.map(function(o){return o.type})))}i(Am,"chooseMethod");var Fm=new Set,nR=0,mi=i(function(e,r){this.id=nR++,Fm.add(this),this.name=e,Rm&&(r=Rm),this.options=hi(r),this.method=Am(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,sR(this)},"BroadcastChannel");mi._pubkey=!0;function iR(t){t=hi(t);var e=Am(t);return e.type==="node"?e.clearNodeFolder().then(function(){return!0}):tS}i(iR,"clearNodeFolder");var Rm;function oR(t){Rm=t}i(oR,"enforceOptions"),mi.prototype={postMessage:i(function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return gS(this,"message",e)},"postMessage"),postInternal:i(function(e){return gS(this,"internal",e)},"postInternal"),set onmessage(t){var e=this.method.microSeconds(),r={time:e,fn:t};wS(this,"message",this._onML),t&&typeof t=="function"?(this._onML=r,yS(this,"message",r)):this._onML=null},addEventListener:i(function(e,r){var n=this.method.microSeconds(),o={time:n,fn:r};yS(this,e,o)},"addEventListener"),removeEventListener:i(function(e,r){var n=this._addEL[e].find(function(o){return o.fn===r});wS(this,e,n)},"removeEventListener"),close:i(function(){var e=this;if(!this.closed){Fm.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(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},"close"),get type(){return this.method.type},get isClosed(){return this.closed}};function gS(t,e,r){var n=t.method.microSeconds(),o={time:n,type:e,data:r},s=t._prepP?t._prepP:Nr;return s.then(function(){var a=t.method.postMessage(t._state,o);return t._uMP.add(a),a.catch().then(function(){return t._uMP.delete(a)}),a})}i(gS,"_post");function sR(t){var e=t.method.create(t.name,t.options);eS(e)?(t._prepP=e,e.then(function(r){t._state=r})):t._state=e}i(sR,"_prepareChannel");function xS(t){return t._addEL.message.length>0||t._addEL.internal.length>0}i(xS,"_hasMessageListeners");function yS(t,e,r){t._addEL[e].push(r),aR(t)}i(yS,"_addListenerObject");function wS(t,e,r){t._addEL[e]=t._addEL[e].filter(function(n){return n!==r}),lR(t)}i(wS,"_removeListenerObject");function aR(t){if(!t._iL&&xS(t)){var e=i(function(o){t._addEL[o.type].forEach(function(s){o.time>=s.time&&s.fn(o.data)})},"listenerFn"),r=t.method.microSeconds();t._prepP?t._prepP.then(function(){t._iL=!0,t.method.onMessage(t._state,e,r)}):(t._iL=!0,t.method.onMessage(t._state,e,r))}}i(aR,"_startListening");function lR(t){if(t._iL&&!xS(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}i(lR,"_stopListening");var Lm=globalThis.BroadcastChannel;Lm||(Lm=mi);var Bm=class{static{i(this,"DeesComms")}constructor(){this.broadcastChannel=new Lm("dees-comms"),this.typedrouter=new At.TypedRouter,this.typedtarget=new At.TypedTarget({postMethodWithTypedRouter:i(async e=>{this.postMessage(e)},"postMethodWithTypedRouter"),typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async e=>{let r=e.method?e:e.data,n=await this.typedrouter.routeAndAddResponse(r,{skipHooks:!0});n&&!n.error&&this.postMessage(n)}}createTypedRequest(e){return new At.TypedRequest(this.typedtarget,e)}async postMessage(e){this.broadcastChannel.postMessage(e)}async createTypedHandler(e,r){this.typedrouter.addTypedHandler(new At.TypedHandler(e,r))}};var Qa={};ae(Qa,{SmartMarkdown:()=>Kg});function Km(t){if(t)throw t}i(Km,"bail");function Ea(t){if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}i(Ea,"isPlainObject");function Xm(){let t=[],e={run:r,use:n};return e;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=t[++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?k1(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 t.push(o),e}}i(Xm,"trough");function k1(t,e){let r;return n;function n(...a){let l=t.length>a.length,u;l&&a.push(o);try{u=t.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,e(a,...l))}function s(a){o(null,a)}}i(k1,"wrap");function Mn(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?T1(t.position):"start"in t||"end"in t?T1(t):"line"in t||"column"in t?Zm(t):""}i(Mn,"stringifyPosition");function Zm(t){return E1(t&&t.line)+":"+E1(t&&t.column)}i(Zm,"point");function T1(t){return Zm(t&&t.start)+"-"+Zm(t&&t.end)}i(T1,"position");function E1(t){return t&&typeof t=="number"?t:1}i(E1,"index");var ot=class extends Error{static{i(this,"VFileMessage")}constructor(e,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 e=="string"?o=e:!s.cause&&e&&(a=!0,o=e.message,s.cause=e),!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=Mn(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 fr={basename:VL,dirname:GL,extname:JL,join:QL,sep:"/"};function VL(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Da(t);let r=0,n=-1,o=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else n<0&&(s=!0,n=o+1);return n<0?"":t.slice(r,n)}if(e===t)return"";let a=-1,l=e.length-1;for(;o--;)if(t.codePointAt(o)===47){if(s){r=o+1;break}}else a<0&&(s=!0,a=o+1),l>-1&&(t.codePointAt(o)===e.codePointAt(l--)?l<0&&(n=o):(l=-1,n=a));return r===n?n=a:n<0&&(n=t.length),t.slice(r,n)}i(VL,"basename");function GL(t){if(Da(t),t.length===0)return".";let e=-1,r=t.length,n;for(;--r;)if(t.codePointAt(r)===47){if(n){e=r;break}}else n||(n=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}i(GL,"dirname");function JL(t){Da(t);let e=t.length,r=-1,n=0,o=-1,s=0,a;for(;e--;){let l=t.codePointAt(e);if(l===47){if(a){n=e+1;break}continue}r<0&&(a=!0,r=e+1),l===46?o<0?o=e:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===n+1?"":t.slice(o,r)}i(JL,"extname");function QL(...t){let e=-1,r;for(;++e<t.length;)Da(t[e]),t[e]&&(r=r===void 0?t[e]:r+"/"+t[e]);return r===void 0?".":KL(r)}i(QL,"join");function KL(t){Da(t);let e=t.codePointAt(0)===47,r=XL(t,!e);return r.length===0&&!e&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),e?"/"+r:r}i(KL,"normalize");function XL(t,e){let r="",n=0,o=-1,s=0,a=-1,l,u;for(;++a<=t.length;){if(a<t.length)l=t.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}}e&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+t.slice(o+1,a):r=t.slice(o+1,a),n=a-o-1;o=a,s=0}else l===46&&s>-1?s++:s=-1}return r}i(XL,"normalizeString");function Da(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}i(Da,"assertPath");var D1={cwd:ZL};function ZL(){return"/"}i(ZL,"cwd");function ns(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}i(ns,"isUrl");function C1(t){if(typeof t=="string")t=new URL(t);else if(!ns(t)){let e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){let e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return e2(t)}i(C1,"urlToPath");function e2(t){if(t.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 e=t.pathname,r=-1;for(;++r<e.length;)if(e.codePointAt(r)===37&&e.codePointAt(r+1)===50){let n=e.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(e)}i(e2,"getPathFromURLPosix");var ed=["history","path","basename","stem","extname","dirname"],Ca=class{static{i(this,"VFile")}constructor(e){let r;e?ns(e)?r={path:e}:typeof e=="string"||t2(e)?r={value:e}:r=e:r={},this.cwd="cwd"in r?"":D1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<ed.length;){let s=ed[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)ed.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?fr.basename(this.path):void 0}set basename(e){rd(e,"basename"),td(e,"basename"),this.path=fr.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?fr.dirname(this.path):void 0}set dirname(e){O1(this.basename,"dirname"),this.path=fr.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?fr.extname(this.path):void 0}set extname(e){if(td(e,"extname"),O1(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=fr.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ns(e)&&(e=C1(e)),rd(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?fr.basename(this.path,this.extname):void 0}set stem(e){rd(e,"stem"),td(e,"stem"),this.path=fr.join(this.dirname||"",e+(this.extname||""))}fail(e,r,n){let o=this.message(e,r,n);throw o.fatal=!0,o}info(e,r,n){let o=this.message(e,r,n);return o.fatal=void 0,o}message(e,r,n){let o=new ot(e,r,n);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function td(t,e){if(t&&t.includes(fr.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+fr.sep+"`")}i(td,"assertPart");function rd(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}i(rd,"assertNonEmpty");function O1(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}i(O1,"assertPath");function t2(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}i(t2,"isUint8Array");var M1=i((function(t){let n=this.constructor.prototype,o=n[t],s=i(function(){return o.apply(s,arguments)},"apply");return Object.setPrototypeOf(s,n),s}),"CallableInstance");var Mf=jt(S1(),1),r2={}.hasOwnProperty,nd=class t extends M1{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=Xm()}copy(){let e=new t,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];e.use(...n)}return e.data((0,Mf.default)(!0,{},this.namespace)),e}data(e,r){return typeof e=="string"?arguments.length===2?(sd("data",this.frozen),this.namespace[e]=r,this):r2.call(this.namespace,e)&&this.namespace[e]||void 0:e?(sd("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=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(e,...n);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let r=Of(e),n=this.parser||this.Parser;return id("parse",n),n(String(r),r)}process(e,r){let n=this;return this.freeze(),id("process",this.parser||this.Parser),od("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,a){let l=Of(e),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);i2(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(e){let r=!1,n;return this.freeze(),id("processSync",this.parser||this.Parser),od("processSync",this.compiler||this.Compiler),this.process(e,o),_1("processSync","process",r),n;function o(s,a){r=!0,Km(s),n=a}i(o,"realDone")}run(e,r,n){I1(e),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=Of(r);o.run(e,u,c);function c(f,p,h){let m=p||e;f?l(f):a?a(m):n(void 0,m,h)}i(c,"realDone")}i(s,"executor")}runSync(e,r){let n=!1,o;return this.run(e,r,s),_1("runSync","run",n),o;function s(a,l){Km(a),o=l,n=!0}i(s,"realDone")}stringify(e,r){this.freeze();let n=Of(r),o=this.compiler||this.Compiler;return od("stringify",o),I1(e),o(e,n)}use(e,...r){let n=this.attachers,o=this.namespace;if(sd("use",this.frozen),e!=null)if(typeof e=="function")u(e,r);else if(typeof e=="object")Array.isArray(e)?l(e):a(e);else throw new TypeError("Expected usable value, not `"+e+"`");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,Mf.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];Ea(g)&&Ea(m)&&(m=(0,Mf.default)(!0,g,m)),n[h]=[c,m,...d]}}}},Oa=new nd().freeze();function id(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}i(id,"assertParser");function od(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}i(od,"assertCompiler");function sd(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}i(sd,"assertUnfrozen");function I1(t){if(!Ea(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}i(I1,"assertNode");function _1(t,e,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}i(_1,"assertDone");function Of(t){return n2(t)?t:new Ca(t)}i(Of,"vfile");function n2(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}i(n2,"looksLikeAVFile");function i2(t){return typeof t=="string"||o2(t)}i(i2,"looksLikeAValue");function o2(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}i(o2,"isUint8Array");function os(t,e){let r=String(t);if(typeof e!="string")throw new TypeError("Expected character");let n=0,o=r.indexOf(e);for(;o!==-1;)n++,o=r.indexOf(e,o+e.length);return n}i(os,"ccount");var Ze=In(/[A-Za-z]/),je=In(/[\dA-Za-z]/),P1=In(/[#-'*+\--9=?A-Z^-~]/);function Si(t){return t!==null&&(t<32||t===127)}i(Si,"asciiControl");var Ma=In(/\d/),N1=In(/[\dA-Fa-f]/),A1=In(/[!-/:-@[-`{-~]/);function U(t){return t!==null&&t<-2}i(U,"markdownLineEnding");function me(t){return t!==null&&(t<0||t===32)}i(me,"markdownLineEndingOrSpace");function K(t){return t===-2||t===-1||t===32}i(K,"markdownSpace");var ki=In(/\p{P}|\p{S}/u),Fr=In(/\s/);function In(t){return e;function e(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}i(In,"regexCheck");var F1=i((function(t,e,r,n,o){let s=Jr(e);if(r!=null&&(typeof r!="number"||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(n!=null&&(!F1(n)||!n.children))throw new Error("Expected parent node");if(n==null!=(r==null))throw new Error("Expected both parent and index");return R1(t)?s.call(o,t,r,n):!1}),"is"),Jr=i((function(t){if(t==null)return u2;if(typeof t=="function")return If(t);if(typeof t=="object")return Array.isArray(t)?s2(t):a2(t);if(typeof t=="string")return l2(t);throw new Error("Expected function, string, or object as test")}),"convert");function s2(t){let e=[],r=-1;for(;++r<t.length;)e[r]=Jr(t[r]);return If(n);function n(...o){let s=-1;for(;++s<e.length;)if(e[s].apply(this,o))return!0;return!1}}i(s2,"anyFactory");function a2(t){let e=t;return If(r);function r(n){let o=n,s;for(s in t)if(o[s]!==e[s])return!1;return!0}}i(a2,"propertiesFactory");function l2(t){return If(e);function e(r){return r&&r.type===t}}i(l2,"typeFactory");function If(t){return e;function e(r,n,o){return!!(R1(r)&&t.call(this,r,typeof n=="number"?n:void 0,o||void 0))}}i(If,"castFactory");function u2(){return!0}i(u2,"ok");function R1(t){return t!==null&&typeof t=="object"&&"type"in t}i(R1,"looksLikeANode");var L1=[],_f=!0,Ti=!1,Pf="skip";function Ia(t,e,r,n){let o;typeof e=="function"&&typeof r!="function"?(n=r,r=e):o=e;let s=Jr(o),a=n?-1:1;l(t,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=L1,d,g,x;if((!e||s(u,c,f[f.length-1]||void 0))&&(m=c2(r(u,f)),m[0]===Ti))return m;if("children"in u&&u.children){let w=u;if(w.children&&m[0]!==Pf)for(g=(n?w.children.length:-1)+a,x=f.concat(w);g>-1&&g<w.children.length;){let T=w.children[g];if(d=l(T,g,x)(),d[0]===Ti)return d;g=typeof d[1]=="number"?d[1]:g+a}}return m}}i(l,"factory")}i(Ia,"visitParents");function c2(t){return Array.isArray(t)?t:typeof t=="number"?[_f,t]:t==null?L1:[t]}i(c2,"toResult");function ad(t,e,r){let o=Jr((r||{}).ignore||[]),s=f2(e),a=-1;for(;++a<s.length;)Ia(t,"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),w=!1,T=[];h.lastIndex=0;let E=h.exec(c.value);for(;E;){let q=E.index,H={index:E.index,input:E.input,stack:[...f,c]},O=m(...E,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+E[0].length,w=!0),!h.global)break;E=h.exec(c.value)}return w?(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(ad,"findAndReplace");function f2(t){let e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!t[0]||Array.isArray(t[0])?t:[t],n=-1;for(;++n<r.length;){let o=r[n];e.push([p2(o[0]),h2(o[1])])}return e}i(f2,"toPairs");function p2(t){return typeof t=="string"?new RegExp(Yn(t),"g"):t}i(p2,"toExpression");function h2(t){return typeof t=="function"?t:function(){return t}}i(h2,"toFunction");var ld="phrasing",ud=["autolink","link","image","label"];function fd(){return{transforms:[w2],enter:{literalAutolink:m2,literalAutolinkEmail:cd,literalAutolinkHttp:cd,literalAutolinkWww:cd},exit:{literalAutolink:y2,literalAutolinkEmail:x2,literalAutolinkHttp:d2,literalAutolinkWww:g2}}}i(fd,"gfmAutolinkLiteralFromMarkdown");function pd(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ld,notInConstruct:ud},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ld,notInConstruct:ud},{character:":",before:"[ps]",after:"\\/",inConstruct:ld,notInConstruct:ud}]}}i(pd,"gfmAutolinkLiteralToMarkdown");function m2(t){this.enter({type:"link",title:null,url:"",children:[]},t)}i(m2,"enterLiteralAutolink");function cd(t){this.config.enter.autolinkProtocol.call(this,t)}i(cd,"enterLiteralAutolinkValue");function d2(t){this.config.exit.autolinkProtocol.call(this,t)}i(d2,"exitLiteralAutolinkHttp");function g2(t){this.config.exit.data.call(this,t);let e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}i(g2,"exitLiteralAutolinkWww");function x2(t){this.config.exit.autolinkEmail.call(this,t)}i(x2,"exitLiteralAutolinkEmail");function y2(t){this.exit(t)}i(y2,"exitLiteralAutolink");function w2(t){ad(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,b2],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,v2]],{ignore:["link","linkReference"]})}i(w2,"transformGfmAutolinkLiterals");function b2(t,e,r,n,o){let s="";if(!B1(o)||(/^w/i.test(e)&&(r=e+r,e="",s="http://"),!S2(r)))return!1;let a=k2(r+n);if(!a[0])return!1;let l={type:"link",title:null,url:s+e+a[0],children:[{type:"text",value:e+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}i(b2,"findUrl");function v2(t,e,r,n){return!B1(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+r,children:[{type:"text",value:e+"@"+r}]}}i(v2,"findEmail");function S2(t){let e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}i(S2,"isCorrectDomain");function k2(t){let e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let r=e[0],n=r.indexOf(")"),o=os(t,"("),s=os(t,")");for(;n!==-1&&o>s;)t+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),s++;return[t,r]}i(k2,"splitUrl");function B1(t,e){let r=t.input.charCodeAt(t.index-1);return(t.index===0||Fr(r)||ki(r))&&(!e||r!==47)}i(B1,"previous");function He(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}i(He,"normalizeIdentifier");z1.peek=P2;function T2(){this.buffer()}i(T2,"enterFootnoteCallString");function E2(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}i(E2,"enterFootnoteCall");function D2(){this.buffer()}i(D2,"enterFootnoteDefinitionLabelString");function C2(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}i(C2,"enterFootnoteDefinition");function O2(t){let e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=He(this.sliceSerialize(t)).toLowerCase(),r.label=e}i(O2,"exitFootnoteCallString");function M2(t){this.exit(t)}i(M2,"exitFootnoteCall");function I2(t){let e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=He(this.sliceSerialize(t)).toLowerCase(),r.label=e}i(I2,"exitFootnoteDefinitionLabelString");function _2(t){this.exit(t)}i(_2,"exitFootnoteDefinition");function P2(){return"["}i(P2,"footnoteReferencePeek");function z1(t,e,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(t),{after:"]",before:s})),l(),a(),s+=o.move("]"),s}i(z1,"footnoteReference");function hd(){return{enter:{gfmFootnoteCallString:T2,gfmFootnoteCall:E2,gfmFootnoteDefinitionLabelString:D2,gfmFootnoteDefinition:C2},exit:{gfmFootnoteCallString:O2,gfmFootnoteCall:M2,gfmFootnoteDefinitionLabelString:I2,gfmFootnoteDefinition:_2}}}i(hd,"gfmFootnoteFromMarkdown");function md(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:r,footnoteReference:z1},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((e?`
42
+ `:" ")+s.indentLines(s.containerFlow(n,l.current()),e?j1:N2))),c(),u}i(r,"footnoteDefinition")}i(md,"gfmFootnoteToMarkdown");function N2(t,e,r){return e===0?t:j1(t,e,r)}i(N2,"mapExceptFirst");function j1(t,e,r){return(r?"":" ")+t}i(j1,"mapAll");var A2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];H1.peek=L2;function dd(){return{canContainEols:["delete"],enter:{strikethrough:R2},exit:{strikethrough:F2}}}i(dd,"gfmStrikethroughFromMarkdown");function gd(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:A2}],handlers:{delete:H1}}}i(gd,"gfmStrikethroughToMarkdown");function R2(t){this.enter({type:"delete",children:[]},t)}i(R2,"enterStrikethrough");function F2(t){this.exit(t)}i(F2,"exitStrikethrough");function H1(t,e,r,n){let o=r.createTracker(n),s=r.enter("strikethrough"),a=o.move("~~");return a+=r.containerPhrasing(t,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),s(),a}i(H1,"handleDelete");function L2(){return"~"}i(L2,"peekDelete");function B2(t){return t.length}i(B2,"defaultStringLength");function $1(t,e){let r=e||{},n=(r.align||[]).concat(),o=r.stringLength||B2,s=[],a=[],l=[],u=[],c=0,f=-1;for(;++f<t.length;){let g=[],x=[],w=-1;for(t[f].length>c&&(c=t[f].length);++w<t[f].length;){let T=z2(t[f][w]);if(r.alignDelimiters!==!1){let E=o(T);x[w]=E,(u[w]===void 0||E>u[w])&&(u[w]=E)}g.push(T)}a[f]=g,l[f]=x}let p=-1;if(typeof n=="object"&&"length"in n)for(;++p<c;)s[p]=W1(n[p]);else{let g=W1(n);for(;++p<c;)s[p]=g}p=-1;let h=[],m=[];for(;++p<c;){let g=s[p],x="",w="";g===99?(x=":",w=":"):g===108?x=":":g===114&&(w=":");let T=r.alignDelimiters===!1?1:Math.max(1,u[p]-x.length-w.length),E=x+"-".repeat(T)+w;r.alignDelimiters!==!1&&(T=x.length+T+w.length,T>u[p]&&(u[p]=T),m[p]=T),h[p]=E}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 w=[];for(;++p<c;){let T=g[p]||"",E="",q="";if(r.alignDelimiters!==!1){let H=u[p]-(x[p]||0),O=s[p];O===114?E=" ".repeat(H):O===99?H%2?(E=" ".repeat(H/2+.5),q=" ".repeat(H/2-.5)):(E=" ".repeat(H/2),q=E):q=" ".repeat(H)}r.delimiterStart!==!1&&!p&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||p)&&w.push(" "),r.alignDelimiters!==!1&&w.push(E),w.push(T),r.alignDelimiters!==!1&&w.push(q),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||p!==c-1)&&w.push("|")}d.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return d.join(`
43
+ `)}i($1,"markdownTable");function z2(t){return t==null?"":String(t)}i(z2,"serialize");function W1(t){let e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}i(W1,"toAlignment");var U1={}.hasOwnProperty;function Nf(t,e){let r=e||{};function n(o,...s){let a=n.invalid,l=n.handlers;if(o&&U1.call(o,t)){let u=String(o[t]);a=U1.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(Nf,"zwitch");var j2={}.hasOwnProperty;function xd(t,e){let r=-1,n;if(e.extensions)for(;++r<e.extensions.length;)xd(t,e.extensions[r]);for(n in e)if(j2.call(e,n))switch(n){case"extensions":break;case"unsafe":{q1(t[n],e[n]);break}case"join":{q1(t[n],e[n]);break}case"handlers":{H2(t[n],e[n]);break}default:t.options[n]=e[n]}return t}i(xd,"configure");function q1(t,e){e&&t.push(...e)}i(q1,"list");function H2(t,e){e&&Object.assign(t,e)}i(H2,"map");function Y1(t,e,r,n){let o=r.enter("blockquote"),s=r.createTracker(n);s.move("> "),s.shift(2);let a=r.indentLines(r.containerFlow(t,s.current()),W2);return o(),a}i(Y1,"blockquote");function W2(t,e,r){return">"+(r?"":" ")+t}i(W2,"map");function Af(t,e){return V1(t,e.inConstruct,!0)&&!V1(t,e.notInConstruct,!1)}i(Af,"patternInScope");function V1(t,e,r){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return r;let n=-1;for(;++n<e.length;)if(t.includes(e[n]))return!0;return!1}i(V1,"listInScope");function yd(t,e,r,n){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
44
44
  `&&Af(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return`\\
45
- `}i(yd,"hardBreak");function G1(t,e){let r=String(t),n=r.indexOf(e),o=n,s=0,a=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===o?++s>a&&(a=s):s=1,o=n+e.length,n=r.indexOf(e,o);return a}i(G1,"longestStreak");function _a(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}i(_a,"formatCodeAsIndented");function J1(t){let e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}i(J1,"checkFence");function Q1(t,e,r,n){let o=J1(r),s=t.value||"",a=o==="`"?"GraveAccent":"Tilde";if(_a(t,r)){let p=r.enter("codeIndented"),h=r.indentLines(s,W2);return p(),h}let l=r.createTracker(n),u=o.repeat(Math.max(G1(s,o)+1,3)),c=r.enter("codeFenced"),f=l.move(u);if(t.lang){let p=r.enter(`codeFencedLang${a}`);f+=l.move(r.safe(t.lang,{before:f,after:" ",encode:["`"],...l.current()})),p()}if(t.lang&&t.meta){let p=r.enter(`codeFencedMeta${a}`);f+=l.move(" "),f+=l.move(r.safe(t.meta,{before:f,after:`
45
+ `}i(yd,"hardBreak");function G1(t,e){let r=String(t),n=r.indexOf(e),o=n,s=0,a=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===o?++s>a&&(a=s):s=1,o=n+e.length,n=r.indexOf(e,o);return a}i(G1,"longestStreak");function _a(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}i(_a,"formatCodeAsIndented");function J1(t){let e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}i(J1,"checkFence");function Q1(t,e,r,n){let o=J1(r),s=t.value||"",a=o==="`"?"GraveAccent":"Tilde";if(_a(t,r)){let p=r.enter("codeIndented"),h=r.indentLines(s,$2);return p(),h}let l=r.createTracker(n),u=o.repeat(Math.max(G1(s,o)+1,3)),c=r.enter("codeFenced"),f=l.move(u);if(t.lang){let p=r.enter(`codeFencedLang${a}`);f+=l.move(r.safe(t.lang,{before:f,after:" ",encode:["`"],...l.current()})),p()}if(t.lang&&t.meta){let p=r.enter(`codeFencedMeta${a}`);f+=l.move(" "),f+=l.move(r.safe(t.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(Q1,"code");function W2(t,e,r){return(r?"":" ")+t}i(W2,"map");function ss(t){let e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}i(ss,"checkQuote");function K1(t,e,r,n){let o=ss(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(t),{before:c,after:"]",...u.current()})),c+=u.move("]: "),l(),!t.url||/[\0- \u007F]/.test(t.url)?(l=r.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(r.safe(t.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=r.enter("destinationRaw"),c+=u.move(r.safe(t.url,{before:c,after:t.title?" ":`
49
- `,...u.current()}))),l(),t.title&&(l=r.enter(`title${s}`),c+=u.move(" "+o),c+=u.move(r.safe(t.title,{before:c,after:o,...u.current()})),c+=u.move(o),l()),a(),c}i(K1,"definition");function X1(t){let e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}i(X1,"checkEmphasis");function Ut(t){return"&#x"+t.toString(16).toUpperCase()+";"}i(Ut,"encodeCharacterReference");function Qr(t){if(t===null||me(t)||Rr(t))return 1;if(ki(t))return 2}i(Qr,"classifyCharacter");function as(t,e,r){let n=Qr(t),o=Qr(e);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(as,"encodeInfo");wd.peek=$2;function wd(t,e,r,n){let o=X1(r),s=r.enter("emphasis"),a=r.createTracker(n),l=a.move(o),u=a.move(r.containerPhrasing(t,{after:o,before:l,...a.current()})),c=u.charCodeAt(0),f=as(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=as(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(wd,"emphasis");function $2(t,e,r){return r.options.emphasis||"*"}i($2,"emphasisPeek");function Pa(t,e,r,n){let o,s,a;typeof e=="function"&&typeof r!="function"?(s=void 0,a=e,o=r):(s=e,a=r,o=n),Ia(t,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(Pa,"visit");var U2={};function Ei(t,e){let r=e||U2,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Z1(t,n,o)}i(Ei,"toString");function Z1(t,e,r){if(q2(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return eT(t.children,e,r)}return Array.isArray(t)?eT(t,e,r):""}i(Z1,"one");function eT(t,e,r){let n=[],o=-1;for(;++o<t.length;)n[o]=Z1(t[o],e,r);return n.join("")}i(eT,"all");function q2(t){return!!(t&&typeof t=="object")}i(q2,"node");function Rf(t,e){let r=!1;return Pa(t,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Ti}),!!((!t.depth||t.depth<3)&&Ei(t)&&(e.options.setext||r))}i(Rf,"formatHeadingAsSetext");function tT(t,e,r,n){let o=Math.max(Math.min(6,t.depth||1),1),s=r.createTracker(n);if(Rf(t,r)){let f=r.enter("headingSetext"),p=r.enter("phrasing"),h=r.containerPhrasing(t,{...s.current(),before:`
48
+ `)),f+=l.move(u),c(),f}i(Q1,"code");function $2(t,e,r){return(r?"":" ")+t}i($2,"map");function ss(t){let e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}i(ss,"checkQuote");function K1(t,e,r,n){let o=ss(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(t),{before:c,after:"]",...u.current()})),c+=u.move("]: "),l(),!t.url||/[\0- \u007F]/.test(t.url)?(l=r.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(r.safe(t.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=r.enter("destinationRaw"),c+=u.move(r.safe(t.url,{before:c,after:t.title?" ":`
49
+ `,...u.current()}))),l(),t.title&&(l=r.enter(`title${s}`),c+=u.move(" "+o),c+=u.move(r.safe(t.title,{before:c,after:o,...u.current()})),c+=u.move(o),l()),a(),c}i(K1,"definition");function X1(t){let e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}i(X1,"checkEmphasis");function Ut(t){return"&#x"+t.toString(16).toUpperCase()+";"}i(Ut,"encodeCharacterReference");function Qr(t){if(t===null||me(t)||Fr(t))return 1;if(ki(t))return 2}i(Qr,"classifyCharacter");function as(t,e,r){let n=Qr(t),o=Qr(e);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(as,"encodeInfo");wd.peek=U2;function wd(t,e,r,n){let o=X1(r),s=r.enter("emphasis"),a=r.createTracker(n),l=a.move(o),u=a.move(r.containerPhrasing(t,{after:o,before:l,...a.current()})),c=u.charCodeAt(0),f=as(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=as(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(wd,"emphasis");function U2(t,e,r){return r.options.emphasis||"*"}i(U2,"emphasisPeek");function Pa(t,e,r,n){let o,s,a;typeof e=="function"&&typeof r!="function"?(s=void 0,a=e,o=r):(s=e,a=r,o=n),Ia(t,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(Pa,"visit");var q2={};function Ei(t,e){let r=e||q2,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Z1(t,n,o)}i(Ei,"toString");function Z1(t,e,r){if(Y2(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return eT(t.children,e,r)}return Array.isArray(t)?eT(t,e,r):""}i(Z1,"one");function eT(t,e,r){let n=[],o=-1;for(;++o<t.length;)n[o]=Z1(t[o],e,r);return n.join("")}i(eT,"all");function Y2(t){return!!(t&&typeof t=="object")}i(Y2,"node");function Rf(t,e){let r=!1;return Pa(t,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Ti}),!!((!t.depth||t.depth<3)&&Ei(t)&&(e.options.setext||r))}i(Rf,"formatHeadingAsSetext");function tT(t,e,r,n){let o=Math.max(Math.min(6,t.depth||1),1),s=r.createTracker(n);if(Rf(t,r)){let f=r.enter("headingSetext"),p=r.enter("phrasing"),h=r.containerPhrasing(t,{...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(t,{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(tT,"heading");bd.peek=Y2;function bd(t){return t.value||""}i(bd,"html");function Y2(){return"<"}i(Y2,"htmlPeek");vd.peek=V2;function vd(t,e,r,n){let o=ss(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(t.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=r.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(r.safe(t.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=r.enter("destinationRaw"),c+=u.move(r.safe(t.url,{before:c,after:t.title?" ":")",...u.current()}))),l(),t.title&&(l=r.enter(`title${s}`),c+=u.move(" "+o),c+=u.move(r.safe(t.title,{before:c,after:o,...u.current()})),c+=u.move(o),l()),c+=u.move(")"),a(),c}i(vd,"image");function V2(){return"!"}i(V2,"imagePeek");Sd.peek=G2;function Sd(t,e,r,n){let o=t.referenceType,s=r.enter("imageReference"),a=r.enter("label"),l=r.createTracker(n),u=l.move("!["),c=r.safe(t.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(t),{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(Sd,"imageReference");function G2(){return"!"}i(G2,"imageReferencePeek");kd.peek=J2;function kd(t,e,r){let n=t.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(kd,"inlineCode");function J2(){return"`"}i(J2,"inlineCodePeek");function Td(t,e){let r=Ei(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}i(Td,"formatLinkAsAutolink");Ed.peek=Q2;function Ed(t,e,r,n){let o=ss(r),s=o==='"'?"Quote":"Apostrophe",a=r.createTracker(n),l,u;if(Td(t,r)){let f=r.stack;r.stack=[],l=r.enter("autolink");let p=a.move("<");return p+=a.move(r.containerPhrasing(t,{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(t,{before:c,after:"](",...a.current()})),c+=a.move("]("),u(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(u=r.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(r.safe(t.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(u=r.enter("destinationRaw"),c+=a.move(r.safe(t.url,{before:c,after:t.title?" ":")",...a.current()}))),u(),t.title&&(u=r.enter(`title${s}`),c+=a.move(" "+o),c+=a.move(r.safe(t.title,{before:c,after:o,...a.current()})),c+=a.move(o),u()),c+=a.move(")"),l(),c}i(Ed,"link");function Q2(t,e,r){return Td(t,r)?"<":"["}i(Q2,"linkPeek");Dd.peek=K2;function Dd(t,e,r,n){let o=t.referenceType,s=r.enter("linkReference"),a=r.enter("label"),l=r.createTracker(n),u=l.move("["),c=r.containerPhrasing(t,{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(t),{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(Dd,"linkReference");function K2(){return"["}i(K2,"linkReferencePeek");function ls(t){let e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}i(ls,"checkBullet");function rT(t){let e=ls(t),r=t.options.bulletOther;if(!r)return e==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+r+"`) to be different");return r}i(rT,"checkBulletOther");function nT(t){let e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}i(nT,"checkBulletOrdered");function Ff(t){let e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}i(Ff,"checkRule");function iT(t,e,r,n){let o=r.enter("list"),s=r.bulletCurrent,a=t.ordered?nT(r):ls(r),l=t.ordered?a==="."?")":".":rT(r),u=e&&r.bulletLastUsed?a===r.bulletLastUsed:!1;if(!t.ordered){let f=t.children?t.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),Ff(r)===a&&f){let p=-1;for(;++p<t.children.length;){let h=t.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(t,n);return r.bulletLastUsed=a,r.bulletCurrent=s,o(),c}i(iT,"list");function oT(t){let e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}i(oT,"checkListItemIndent");function sT(t,e,r,n){let o=oT(r),s=r.bulletCurrent||ls(r);e&&e.type==="list"&&e.ordered&&(s=(typeof e.start=="number"&&e.start>-1?e.start:1)+(r.options.incrementListMarker===!1?0:e.children.indexOf(t))+s);let a=s.length+1;(o==="tab"||o==="mixed"&&(e&&e.type==="list"&&e.spread||t.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(t,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(sT,"listItem");function aT(t,e,r,n){let o=r.enter("paragraph"),s=r.enter("phrasing"),a=r.containerPhrasing(t,n);return s(),o(),a}i(aT,"paragraph");var Cd=Jr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lT(t,e,r,n){return(t.children.some(function(a){return Cd(a)})?r.containerPhrasing:r.containerFlow).call(r,t,n)}i(lT,"root");function uT(t){let e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}i(uT,"checkStrong");Od.peek=X2;function Od(t,e,r,n){let o=uT(r),s=r.enter("strong"),a=r.createTracker(n),l=a.move(o+o),u=a.move(r.containerPhrasing(t,{after:o,before:l,...a.current()})),c=u.charCodeAt(0),f=as(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=as(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(Od,"strong");function X2(t,e,r){return r.options.strong||"*"}i(X2,"strongPeek");function cT(t,e,r,n){return r.safe(t.value,n)}i(cT,"text");function fT(t){let e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}i(fT,"checkRuleRepetition");function pT(t,e,r){let n=(Ff(r)+(r.options.ruleSpaces?" ":"")).repeat(fT(r));return r.options.ruleSpaces?n.slice(0,-1):n}i(pT,"thematicBreak");var Di={blockquote:Y1,break:yd,code:Q1,definition:K1,emphasis:wd,hardBreak:yd,heading:tT,html:bd,image:vd,imageReference:Sd,inlineCode:kd,link:Ed,linkReference:Dd,list:iT,listItem:sT,paragraph:aT,root:lT,strong:Od,text:cT,thematicBreak:pT};var hT=[Z2];function Z2(t,e,r,n){if(e.type==="code"&&_a(e,n)&&(t.type==="list"||t.type===e.type&&_a(t,n)))return!1;if("spread"in r&&typeof r.spread=="boolean")return t.type==="paragraph"&&(t.type===e.type||e.type==="definition"||e.type==="heading"&&Rf(e,n))?void 0:r.spread?1:0}i(Z2,"joinDefaults");var Ci=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],mT=[{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:`
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(tT,"heading");bd.peek=V2;function bd(t){return t.value||""}i(bd,"html");function V2(){return"<"}i(V2,"htmlPeek");vd.peek=G2;function vd(t,e,r,n){let o=ss(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(t.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=r.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(r.safe(t.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=r.enter("destinationRaw"),c+=u.move(r.safe(t.url,{before:c,after:t.title?" ":")",...u.current()}))),l(),t.title&&(l=r.enter(`title${s}`),c+=u.move(" "+o),c+=u.move(r.safe(t.title,{before:c,after:o,...u.current()})),c+=u.move(o),l()),c+=u.move(")"),a(),c}i(vd,"image");function G2(){return"!"}i(G2,"imagePeek");Sd.peek=J2;function Sd(t,e,r,n){let o=t.referenceType,s=r.enter("imageReference"),a=r.enter("label"),l=r.createTracker(n),u=l.move("!["),c=r.safe(t.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(t),{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(Sd,"imageReference");function J2(){return"!"}i(J2,"imageReferencePeek");kd.peek=Q2;function kd(t,e,r){let n=t.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(kd,"inlineCode");function Q2(){return"`"}i(Q2,"inlineCodePeek");function Td(t,e){let r=Ei(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(r===t.url||"mailto:"+r===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}i(Td,"formatLinkAsAutolink");Ed.peek=K2;function Ed(t,e,r,n){let o=ss(r),s=o==='"'?"Quote":"Apostrophe",a=r.createTracker(n),l,u;if(Td(t,r)){let f=r.stack;r.stack=[],l=r.enter("autolink");let p=a.move("<");return p+=a.move(r.containerPhrasing(t,{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(t,{before:c,after:"](",...a.current()})),c+=a.move("]("),u(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(u=r.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(r.safe(t.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(u=r.enter("destinationRaw"),c+=a.move(r.safe(t.url,{before:c,after:t.title?" ":")",...a.current()}))),u(),t.title&&(u=r.enter(`title${s}`),c+=a.move(" "+o),c+=a.move(r.safe(t.title,{before:c,after:o,...a.current()})),c+=a.move(o),u()),c+=a.move(")"),l(),c}i(Ed,"link");function K2(t,e,r){return Td(t,r)?"<":"["}i(K2,"linkPeek");Dd.peek=X2;function Dd(t,e,r,n){let o=t.referenceType,s=r.enter("linkReference"),a=r.enter("label"),l=r.createTracker(n),u=l.move("["),c=r.containerPhrasing(t,{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(t),{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(Dd,"linkReference");function X2(){return"["}i(X2,"linkReferencePeek");function ls(t){let e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}i(ls,"checkBullet");function rT(t){let e=ls(t),r=t.options.bulletOther;if(!r)return e==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+r+"`) to be different");return r}i(rT,"checkBulletOther");function nT(t){let e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}i(nT,"checkBulletOrdered");function Ff(t){let e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}i(Ff,"checkRule");function iT(t,e,r,n){let o=r.enter("list"),s=r.bulletCurrent,a=t.ordered?nT(r):ls(r),l=t.ordered?a==="."?")":".":rT(r),u=e&&r.bulletLastUsed?a===r.bulletLastUsed:!1;if(!t.ordered){let f=t.children?t.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),Ff(r)===a&&f){let p=-1;for(;++p<t.children.length;){let h=t.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(t,n);return r.bulletLastUsed=a,r.bulletCurrent=s,o(),c}i(iT,"list");function oT(t){let e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}i(oT,"checkListItemIndent");function sT(t,e,r,n){let o=oT(r),s=r.bulletCurrent||ls(r);e&&e.type==="list"&&e.ordered&&(s=(typeof e.start=="number"&&e.start>-1?e.start:1)+(r.options.incrementListMarker===!1?0:e.children.indexOf(t))+s);let a=s.length+1;(o==="tab"||o==="mixed"&&(e&&e.type==="list"&&e.spread||t.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(t,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(sT,"listItem");function aT(t,e,r,n){let o=r.enter("paragraph"),s=r.enter("phrasing"),a=r.containerPhrasing(t,n);return s(),o(),a}i(aT,"paragraph");var Cd=Jr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lT(t,e,r,n){return(t.children.some(function(a){return Cd(a)})?r.containerPhrasing:r.containerFlow).call(r,t,n)}i(lT,"root");function uT(t){let e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}i(uT,"checkStrong");Od.peek=Z2;function Od(t,e,r,n){let o=uT(r),s=r.enter("strong"),a=r.createTracker(n),l=a.move(o+o),u=a.move(r.containerPhrasing(t,{after:o,before:l,...a.current()})),c=u.charCodeAt(0),f=as(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=as(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(Od,"strong");function Z2(t,e,r){return r.options.strong||"*"}i(Z2,"strongPeek");function cT(t,e,r,n){return r.safe(t.value,n)}i(cT,"text");function fT(t){let e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}i(fT,"checkRuleRepetition");function pT(t,e,r){let n=(Ff(r)+(r.options.ruleSpaces?" ":"")).repeat(fT(r));return r.options.ruleSpaces?n.slice(0,-1):n}i(pT,"thematicBreak");var Di={blockquote:Y1,break:yd,code:Q1,definition:K1,emphasis:wd,hardBreak:yd,heading:tT,html:bd,image:vd,imageReference:Sd,inlineCode:kd,link:Ed,linkReference:Dd,list:iT,listItem:sT,paragraph:aT,root:lT,strong:Od,text:cT,thematicBreak:pT};var hT=[eB];function eB(t,e,r,n){if(e.type==="code"&&_a(e,n)&&(t.type==="list"||t.type===e.type&&_a(t,n)))return!1;if("spread"in r&&typeof r.spread=="boolean")return t.type==="paragraph"&&(t.type===e.type||e.type==="definition"||e.type==="heading"&&Rf(e,n))?void 0:r.spread?1:0}i(eB,"joinDefaults");var Ci=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],mT=[{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
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:Ci},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
56
56
  ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Ci},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
57
57
  *])`},{character:"*",inConstruct:"phrasing",notInConstruct:Ci},{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:Ci},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Ci},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Ci},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Ci},{atBreak:!0,character:"~"}];var dT=document.createElement("i");function _n(t){let e="&"+t+";";dT.innerHTML=e;let r=dT.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===e?!1:r}i(_n,"decodeNamedCharacterReference");function us(t,e){let r=Number.parseInt(t,e);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(us,"decodeNumericCharacterReference");var eB=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Lf(t){return t.replace(eB,tB)}i(Lf,"decodeString");function tB(t,e,r){if(e)return e;if(r.charCodeAt(0)===35){let o=r.charCodeAt(1),s=o===120||o===88;return us(r.slice(s?2:1),s?16:10)}return _n(r)||t}i(tB,"decode");function gT(t){return t.label||!t.identifier?t.label||"":Lf(t.identifier)}i(gT,"association");function xT(t){if(!t._compiled){let e=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((e?"("+e+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}i(xT,"compilePattern");function yT(t,e,r){let n=e.indexStack,o=t.children||[],s=[],a=-1,l=r.before,u;n.push(-1);let c=e.createTracker(r);for(;++a<o.length;){let f=o[a],p;if(n[n.length-1]=a,a+1<o.length){let d=e.handle.handlers[o[a+1].type];d&&d.peek&&(d=d.peek),p=d?d(o[a+1],t,e,{before:"",after:"",...c.current()}).charAt(0):""}else p=r.after;s.length>0&&(l==="\r"||l===`
60
+ ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Ci},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Ci},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Ci},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Ci},{atBreak:!0,character:"~"}];var dT=document.createElement("i");function _n(t){let e="&"+t+";";dT.innerHTML=e;let r=dT.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===e?!1:r}i(_n,"decodeNamedCharacterReference");function us(t,e){let r=Number.parseInt(t,e);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(us,"decodeNumericCharacterReference");var tB=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Lf(t){return t.replace(tB,rB)}i(Lf,"decodeString");function rB(t,e,r){if(e)return e;if(r.charCodeAt(0)===35){let o=r.charCodeAt(1),s=o===120||o===88;return us(r.slice(s?2:1),s?16:10)}return _n(r)||t}i(rB,"decode");function gT(t){return t.label||!t.identifier?t.label||"":Lf(t.identifier)}i(gT,"association");function xT(t){if(!t._compiled){let e=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((e?"("+e+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}i(xT,"compilePattern");function yT(t,e,r){let n=e.indexStack,o=t.children||[],s=[],a=-1,l=r.before,u;n.push(-1);let c=e.createTracker(r);for(;++a<o.length;){let f=o[a],p;if(n[n.length-1]=a,a+1<o.length){let d=e.handle.handlers[o[a+1].type];d&&d.peek&&(d=d.peek),p=d?d(o[a+1],t,e,{before:"",after:"",...c.current()}).charAt(0):""}else p=r.after;s.length>0&&(l==="\r"||l===`
61
61
  `)&&f.type==="html"&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),l=" ",c=e.createTracker(r),c.move(s.join("")));let h=e.handle(f,t,e,{...c.current(),after:p,before:l});u&&u===h.slice(0,1)&&(h=Ut(u.charCodeAt(0))+h.slice(1));let m=e.attentionEncodeSurroundingInfo;e.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(yT,"containerPhrasing");function wT(t,e,r){let n=e.indexStack,o=t.children||[],s=e.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(e.handle(u,t,e,{before:`
62
62
  `,after:`
63
- `,...s.current()}))),u.type!=="list"&&(e.bulletLastUsed=void 0),l<o.length-1&&a.push(s.move(rB(u,o[l+1],t,e)))}return n.pop(),a.join("")}i(wT,"containerFlow");function rB(t,e,r,n){let o=n.join.length;for(;o--;){let s=n.join[o](t,e,r,n);if(s===!0||s===1)break;if(typeof s=="number")return`
63
+ `,...s.current()}))),u.type!=="list"&&(e.bulletLastUsed=void 0),l<o.length-1&&a.push(s.move(nB(u,o[l+1],t,e)))}return n.pop(),a.join("")}i(wT,"containerFlow");function nB(t,e,r,n){let o=n.join.length;for(;o--;){let s=n.join[o](t,e,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(rB,"between");var nB=/\r?\n|\r/g;function bT(t,e){let r=[],n=0,o=0,s;for(;s=nB.exec(t);)a(t.slice(n,s.index)),r.push(s[0]),n=s.index+s[0].length,o++;return a(t.slice(n)),r.join("");function a(l){r.push(e(l,o,!l))}i(a,"one")}i(bT,"indentLines");function ST(t,e,r){let n=(r.before||"")+(e||"")+(r.after||""),o=[],s=[],a={},l=-1;for(;++l<t.unsafe.length;){let f=t.unsafe[l];if(!Af(t.stack,f))continue;let p=t.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(iB);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(vT(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(vT(n.slice(u,c),r.after)),s.join("")}i(ST,"safe");function iB(t,e){return t-e}i(iB,"numerical");function vT(t,e){let r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],s=t+e,a=-1,l=0,u;for(;u=r.exec(s);)n.push(u.index);for(;++a<n.length;)l!==n[a]&&o.push(t.slice(l,n[a])),o.push("\\"),l=n[a];return o.push(t.slice(l)),o.join("")}i(vT,"escapeBackslashes");function kT(t){let e=t||{},r=e.now||{},n=e.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(kT,"track");function Md(t,e){let r=e||{},n={associationId:gT,containerPhrasing:lB,containerFlow:uB,createTracker:kT,compilePattern:xT,enter:s,handlers:{...Di},handle:void 0,indentLines:bT,indexStack:[],join:[...hT],options:{},safe:cB,stack:[],unsafe:[...mT]};xd(n,r),n.options.tightDefinitions&&n.join.push(aB),n.handle=Nf("type",{invalid:oB,unknown:sB,handlers:n.handlers});let o=n.handle(t,void 0,n,{before:`
70
+ `}i(nB,"between");var iB=/\r?\n|\r/g;function bT(t,e){let r=[],n=0,o=0,s;for(;s=iB.exec(t);)a(t.slice(n,s.index)),r.push(s[0]),n=s.index+s[0].length,o++;return a(t.slice(n)),r.join("");function a(l){r.push(e(l,o,!l))}i(a,"one")}i(bT,"indentLines");function ST(t,e,r){let n=(r.before||"")+(e||"")+(r.after||""),o=[],s=[],a={},l=-1;for(;++l<t.unsafe.length;){let f=t.unsafe[l];if(!Af(t.stack,f))continue;let p=t.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(oB);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(vT(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(vT(n.slice(u,c),r.after)),s.join("")}i(ST,"safe");function oB(t,e){return t-e}i(oB,"numerical");function vT(t,e){let r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],s=t+e,a=-1,l=0,u;for(;u=r.exec(s);)n.push(u.index);for(;++a<n.length;)l!==n[a]&&o.push(t.slice(l,n[a])),o.push("\\"),l=n[a];return o.push(t.slice(l)),o.join("")}i(vT,"escapeBackslashes");function kT(t){let e=t||{},r=e.now||{},n=e.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(kT,"track");function Md(t,e){let r=e||{},n={associationId:gT,containerPhrasing:uB,containerFlow:cB,createTracker:kT,compilePattern:xT,enter:s,handlers:{...Di},handle:void 0,indentLines:bT,indexStack:[],join:[...hT],options:{},safe:fB,stack:[],unsafe:[...mT]};xd(n,r),n.options.tightDefinitions&&n.join.push(lB),n.handle=Nf("type",{invalid:sB,unknown:aB,handlers:n.handlers});let o=n.handle(t,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(Md,"toMarkdown");function oB(t){throw new Error("Cannot handle value `"+t+"`, expected node")}i(oB,"invalid");function sB(t){let e=t;throw new Error("Cannot handle unknown node `"+e.type+"`")}i(sB,"unknown");function aB(t,e){if(t.type==="definition"&&t.type===e.type)return 0}i(aB,"joinDefinition");function lB(t,e){return yT(t,this,e)}i(lB,"containerPhrasingBound");function uB(t,e){return wT(t,this,e)}i(uB,"containerFlowBound");function cB(t,e){return ST(this,t,e)}i(cB,"safeBound");function _d(){return{enter:{table:fB,tableData:TT,tableHeader:TT,tableRow:hB},exit:{codeText:mB,table:pB,tableData:Id,tableHeader:Id,tableRow:Id}}}i(_d,"gfmTableFromMarkdown");function fB(t){let e=t._align;this.enter({type:"table",align:e.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}i(fB,"enterTable");function pB(t){this.exit(t),this.data.inTable=void 0}i(pB,"exitTable");function hB(t){this.enter({type:"tableRow",children:[]},t)}i(hB,"enterRow");function Id(t){this.exit(t)}i(Id,"exit");function TT(t){this.enter({type:"tableCell",children:[]},t)}i(TT,"enterCell");function mB(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,dB));let r=this.stack[this.stack.length-1];r.type,r.value=e,this.exit(t)}i(mB,"exitCodeText");function dB(t,e){return e==="|"?e:t}i(dB,"replace");function Pd(t){let e=t||{},r=e.tableCellPadding,n=e.tablePipeAlign,o=e.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(Md,"toMarkdown");function sB(t){throw new Error("Cannot handle value `"+t+"`, expected node")}i(sB,"invalid");function aB(t){let e=t;throw new Error("Cannot handle unknown node `"+e.type+"`")}i(aB,"unknown");function lB(t,e){if(t.type==="definition"&&t.type===e.type)return 0}i(lB,"joinDefinition");function uB(t,e){return yT(t,this,e)}i(uB,"containerPhrasingBound");function cB(t,e){return wT(t,this,e)}i(cB,"containerFlowBound");function fB(t,e){return ST(this,t,e)}i(fB,"safeBound");function _d(){return{enter:{table:pB,tableData:TT,tableHeader:TT,tableRow:mB},exit:{codeText:dB,table:hB,tableData:Id,tableHeader:Id,tableRow:Id}}}i(_d,"gfmTableFromMarkdown");function pB(t){let e=t._align;this.enter({type:"table",align:e.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}i(pB,"enterTable");function hB(t){this.exit(t),this.data.inTable=void 0}i(hB,"exitTable");function mB(t){this.enter({type:"tableRow",children:[]},t)}i(mB,"enterRow");function Id(t){this.exit(t)}i(Id,"exit");function TT(t){this.enter({type:"tableCell",children:[]},t)}i(TT,"enterCell");function dB(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,gB));let r=this.stack[this.stack.length-1];r.type,r.value=e,this.exit(t)}i(dB,"exitCodeText");function gB(t,e){return e==="|"?e:t}i(gB,"replace");function Pd(t){let e=t||{},r=e.tableCellPadding,n=e.tablePipeAlign,o=e.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 w=p(m,g,x),T=c([w]);return T.slice(0,T.indexOf(`
75
- `))}function u(m,d,g,x){let w=g.enter("tableCell"),T=g.enter("phrasing"),E=g.containerPhrasing(m,{...x,before:s,after:s});return T(),w(),E}function c(m,d){return $1(m,{align:d,alignDelimiters:n,padding:r,stringLength:o})}function f(m,d,g){let x=m.children,w=-1,T=[],E=d.enter("table");for(;++w<x.length;)T[w]=p(x[w],d,g);return E(),T}function p(m,d,g){let x=m.children,w=-1,T=[],E=d.enter("tableRow");for(;++w<x.length;)T[w]=u(x[w],m,d,g);return E(),T}function h(m,d,g){let x=Di.inlineCode(m,d,g);return g.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}i(Pd,"gfmTableToMarkdown");function Nd(){return{exit:{taskListCheckValueChecked:ET,taskListCheckValueUnchecked:ET,paragraph:gB}}}i(Nd,"gfmTaskListItemFromMarkdown");function Ad(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:xB}}}i(Ad,"gfmTaskListItemToMarkdown");function ET(t){let e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}i(ET,"exitCheck");function gB(t){let e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let n=r.children[0];if(n&&n.type==="text"){let o=e.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(t)}i(gB,"exitParagraphWithTaskListItem");function xB(t,e,r,n){let o=t.children[0],s=typeof t.checked=="boolean"&&o&&o.type==="paragraph",a="["+(t.checked?"x":" ")+"] ",l=r.createTracker(n);s&&l.move(a);let u=Di.listItem(t,e,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(xB,"listItemWithTaskListItem");function Rd(){return[fd(),hd(),dd(),_d(),Nd()]}i(Rd,"gfmFromMarkdown");function Fd(t){return{extensions:[pd(),md(t),gd(),Pd(t),Ad()]}}i(Fd,"gfmToMarkdown");function Ue(t,e,r,n){let o=t.length,s=0,a;if(e<0?e=-e>o?0:o+e:e=e>o?o:e,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(e,r),t.splice(...a);else for(r&&t.splice(e,r);s<n.length;)a=n.slice(s,s+1e4),a.unshift(e,0),t.splice(...a),s+=1e4,e+=1e4}i(Ue,"splice");function Ge(t,e){return t.length>0?(Ue(t,t.length,0,e),t):e}i(Ge,"push");var Ld={}.hasOwnProperty;function Bf(t){let e={},r=-1;for(;++r<t.length;)yB(e,t[r]);return e}i(Bf,"combineExtensions");function yB(t,e){let r;for(r in e){let o=(Ld.call(t,r)?t[r]:void 0)||(t[r]={}),s=e[r],a;if(s)for(a in s){Ld.call(o,a)||(o[a]=[]);let l=s[a];wB(o[a],Array.isArray(l)?l:l?[l]:[])}}}i(yB,"syntaxExtension");function wB(t,e){let r=-1,n=[];for(;++r<e.length;)(e[r].add==="after"?t:n).push(e[r]);Ue(t,0,0,n)}i(wB,"constructs");function zf(t){let e={},r=-1;for(;++r<t.length;)bB(e,t[r]);return e}i(zf,"combineHtmlExtensions");function bB(t,e){let r;for(r in e){let o=(Ld.call(t,r)?t[r]:void 0)||(t[r]={}),s=e[r],a;if(s)for(a in s)o[a]=s[a]}}i(bB,"htmlExtension");var vB={tokenize:DB,partial:!0},DT={tokenize:CB,partial:!0},CT={tokenize:OB,partial:!0},OT={tokenize:MB,partial:!0},SB={tokenize:IB,partial:!0},MT={name:"wwwAutolink",tokenize:TB,previous:_T},IT={name:"protocolAutolink",tokenize:EB,previous:PT},Kr={name:"emailAutolink",tokenize:kB,previous:NT},Fr={};function jd(){return{text:Fr}}i(jd,"gfmAutolinkLiteral");for(var Oi=48;Oi<123;)Fr[Oi]=Kr,Oi++,Oi===58?Oi=65:Oi===91&&(Oi=97);Fr[43]=Kr,Fr[45]=Kr,Fr[46]=Kr,Fr[95]=Kr,Fr[72]=[Kr,IT],Fr[104]=[Kr,IT],Fr[87]=[Kr,MT],Fr[119]=[Kr,MT];function kB(t,e,r){let n=this,o,s;return a;function a(p){return!Bd(p)||!NT.call(n,n.previous)||zd(n.events)?r(p):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),l(p))}function l(p){return Bd(p)?(t.consume(p),l):p===64?(t.consume(p),u):r(p)}function u(p){return p===46?t.check(SB,f,c)(p):p===45||p===95||je(p)?(s=!0,t.consume(p),u):f(p)}function c(p){return t.consume(p),o=!0,u}function f(p){return s&&o&&Ze(n.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(p)):r(p)}}i(kB,"tokenizeEmailAutolink");function TB(t,e,r){let n=this;return o;function o(a){return a!==87&&a!==119||!_T.call(n,n.previous)||zd(n.events)?r(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(vB,t.attempt(DT,t.attempt(CT,s),r),r)(a))}function s(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(a)}}i(TB,"tokenizeWwwAutolink");function EB(t,e,r){let n=this,o="",s=!1;return a;function a(p){return(p===72||p===104)&&PT.call(n,n.previous)&&!zd(n.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(p),t.consume(p),l):r(p)}function l(p){if(Ze(p)&&o.length<5)return o+=String.fromCodePoint(p),t.consume(p),l;if(p===58){let h=o.toLowerCase();if(h==="http"||h==="https")return t.consume(p),u}return r(p)}function u(p){return p===47?(t.consume(p),s?c:(s=!0,u)):r(p)}function c(p){return p===null||Si(p)||me(p)||Rr(p)||ki(p)?r(p):t.attempt(DT,t.attempt(CT,f),r)(p)}function f(p){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(p)}}i(EB,"tokenizeProtocolAutolink");function DB(t,e,r){let n=0;return o;function o(a){return(a===87||a===119)&&n<3?(n++,t.consume(a),o):a===46&&n===3?(t.consume(a),s):r(a)}function s(a){return a===null?r(a):e(a)}}i(DB,"tokenizeWwwPrefix");function CB(t,e,r){let n,o,s;return a;function a(c){return c===46||c===95?t.check(OT,u,l)(c):c===null||me(c)||Rr(c)||c!==45&&ki(c)?u(c):(s=!0,t.consume(c),a)}function l(c){return c===95?n=!0:(o=n,n=void 0),t.consume(c),a}function u(c){return o||n||!s?r(c):e(c)}}i(CB,"tokenizeDomain");function OB(t,e){let r=0,n=0;return o;function o(a){return a===40?(r++,t.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?t.check(OT,e,s)(a):a===null||me(a)||Rr(a)?e(a):(t.consume(a),o)}function s(a){return a===41&&n++,t.consume(a),o}}i(OB,"tokenizePath");function MB(t,e,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?(t.consume(l),n):l===38?(t.consume(l),s):l===93?(t.consume(l),o):l===60||l===null||me(l)||Rr(l)?e(l):r(l)}function o(l){return l===null||l===40||l===91||me(l)||Rr(l)?e(l):n(l)}function s(l){return Ze(l)?a(l):r(l)}function a(l){return l===59?(t.consume(l),n):Ze(l)?(t.consume(l),a):r(l)}}i(MB,"tokenizeTrail");function IB(t,e,r){return n;function n(s){return t.consume(s),o}function o(s){return je(s)?r(s):e(s)}}i(IB,"tokenizeEmailDomainDotTrail");function _T(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||me(t)}i(_T,"previousWww");function PT(t){return!Ze(t)}i(PT,"previousProtocol");function NT(t){return!(t===47||Bd(t))}i(NT,"previousEmail");function Bd(t){return t===43||t===45||t===46||t===95||je(t)}i(Bd,"gfmAtext");function zd(t){let e=t.length,r=!1;for(;e--;){let n=t[e][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}i(zd,"previousUnbalanced");var _B={'"':"quot","&":"amp","<":"lt",">":"gt"};function jf(t){return t.replace(/["&<>]/g,e);function e(r){return"&"+_B[r]+";"}}i(jf,"encode");function Lr(t,e){let r=jf(qt(t||""));if(!e)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||e.test(r.slice(0,n))?r:""}i(Lr,"sanitizeUri");function qt(t){let e=[],r=-1,n=0,o=0;for(;++r<t.length;){let s=t.charCodeAt(r),a="";if(s===37&&je(t.charCodeAt(r+1))&&je(t.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=t.charCodeAt(r+1);s<56320&&l>56319&&l<57344?(a=String.fromCharCode(s,l),o=1):a="\uFFFD"}else a=String.fromCharCode(s);a&&(e.push(t.slice(n,r),encodeURIComponent(a)),n=r+o+1,a=""),o&&(r+=o,o=0)}return e.join("")+t.slice(n)}i(qt,"normalizeUri");function Wd(){return{exit:{literalAutolinkEmail:NB,literalAutolinkHttp:AB,literalAutolinkWww:PB}}}i(Wd,"gfmAutolinkLiteralHtml");function PB(t){Hd.call(this,t,"http://")}i(PB,"literalAutolinkWww");function NB(t){Hd.call(this,t,"mailto:")}i(NB,"literalAutolinkEmail");function AB(t){Hd.call(this,t)}i(AB,"literalAutolinkHttp");function Hd(t,e){let r=this.sliceSerialize(t);this.tag('<a href="'+Lr((e||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}i(Hd,"anchorFromToken");function Pn(t,e,r){let n=[],o=-1;for(;++o<t.length;){let s=t[o].resolveAll;s&&!n.includes(s)&&(e=s(e,r),n.push(s))}return e}i(Pn,"resolveAll");var Na={name:"attention",resolveAll:RB,tokenize:FB};function RB(t,e){let r=-1,n,o,s,a,l,u,c,f;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(n=r;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[n][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;u=t[n][1].end.offset-t[n][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;let p={...t[n][1].end},h={...t[r][1].start};AT(p,-u),AT(h,u),a={type:u>1?"strongSequence":"emphasisSequence",start:p,end:{...t[n][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:h},s={type:u>1?"strongText":"emphasisText",start:{...t[n][1].end},end:{...t[r][1].start}},o={type:u>1?"strong":"emphasis",start:{...a.start},end:{...l.end}},t[n][1].end={...a.start},t[r][1].start={...l.end},c=[],t[n][1].end.offset-t[n][1].start.offset&&(c=Ge(c,[["enter",t[n][1],e],["exit",t[n][1],e]])),c=Ge(c,[["enter",o,e],["enter",a,e],["exit",a,e],["enter",s,e]]),c=Ge(c,Pn(e.parser.constructs.insideSpan.null,t.slice(n+1,r),e)),c=Ge(c,[["exit",s,e],["enter",l,e],["exit",l,e],["exit",o,e]]),t[r][1].end.offset-t[r][1].start.offset?(f=2,c=Ge(c,[["enter",t[r][1],e],["exit",t[r][1],e]])):f=0,Ue(t,n-1,r-n+3,c),r=n+c.length-f-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}i(RB,"resolveAllAttention");function FB(t,e){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=Qr(n),s;return a;function a(u){return s=u,t.enter("attentionSequence"),l(u)}function l(u){if(u===s)return t.consume(u),l;let c=t.exit("attentionSequence"),f=Qr(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)),e(u)}}i(FB,"tokenizeAttention");function AT(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}i(AT,"movePoint");var $d={name:"autolink",tokenize:LB};function LB(t,e,r){let n=0;return o;function o(m){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(m){return Ze(m)?(t.consume(m),a):m===64?r(m):c(m)}function a(m){return m===43||m===45||m===46||je(m)?(n=1,l(m)):c(m)}function l(m){return m===58?(t.consume(m),n=0,u):(m===43||m===45||m===46||je(m))&&n++<32?(t.consume(m),l):(n=0,c(m))}function u(m){return m===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):m===null||m===32||m===60||Si(m)?r(m):(t.consume(m),u)}function c(m){return m===64?(t.consume(m),f):P1(m)?(t.consume(m),c):r(m)}function f(m){return je(m)?p(m):r(m)}function p(m){return m===46?(t.consume(m),n=0,f):m===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):h(m)}function h(m){if((m===45||je(m))&&n++<63){let d=m===45?h:p;return t.consume(m),d}return r(m)}}i(LB,"tokenizeAutolink");function ne(t,e,r,n){let o=n?n-1:Number.POSITIVE_INFINITY,s=0;return a;function a(u){return K(u)?(t.enter(r),l(u)):e(u)}function l(u){return K(u)&&s++<o?(t.consume(u),l):(t.exit(r),e(u))}}i(ne,"factorySpace");var Br={partial:!0,tokenize:BB};function BB(t,e,r){return n;function n(s){return K(s)?ne(t,o,"linePrefix")(s):o(s)}function o(s){return s===null||U(s)?e(s):r(s)}}i(BB,"tokenizeBlankLine");var Hf={continuation:{tokenize:jB},exit:HB,name:"blockQuote",tokenize:zB};function zB(t,e,r){let n=this;return o;function o(a){if(a===62){let l=n.containerState;return l.open||(t.enter("blockQuote",{_container:!0}),l.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),s}return r(a)}function s(a){return K(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(a))}}i(zB,"tokenizeBlockQuoteStart");function jB(t,e,r){let n=this;return o;function o(a){return K(a)?ne(t,s,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return t.attempt(Hf,e,r)(a)}}i(jB,"tokenizeBlockQuoteContinuation");function HB(t){t.exit("blockQuote")}i(HB,"exit");var Wf={name:"characterEscape",tokenize:WB};function WB(t,e,r){return n;function n(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),o}function o(s){return A1(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):r(s)}}i(WB,"tokenizeCharacterEscape");var $f={name:"characterReference",tokenize:$B};function $B(t,e,r){let n=this,o=0,s,a;return l;function l(p){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),u}function u(p){return p===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(p),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),s=31,a=je,f(p))}function c(p){return p===88||p===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(p),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,a=N1,f):(t.enter("characterReferenceValue"),s=7,a=Ma,f(p))}function f(p){if(p===59&&o){let h=t.exit("characterReferenceValue");return a===je&&!_n(n.sliceSerialize(h))?r(p):(t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return a(p)&&o++<s?(t.consume(p),f):r(p)}}i($B,"tokenizeCharacterReference");var RT={partial:!0,tokenize:qB},Uf={concrete:!0,name:"codeFenced",tokenize:UB};function UB(t,e,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 j=n.events[n.events.length-1];return s=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,l=O,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),f(O)}function f(O){return O===l?(a++,t.consume(O),f):a<3?r(O):(t.exit("codeFencedFenceSequence"),K(O)?ne(t,p,"whitespace")(O):p(O))}function p(O){return O===null||U(O)?(t.exit("codeFencedFence"),n.interrupt?e(O):t.check(RT,g,q)(O)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),h(O))}function h(O){return O===null||U(O)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),p(O)):K(O)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ne(t,m,"whitespace")(O)):O===96&&O===l?r(O):(t.consume(O),h)}function m(O){return O===null||U(O)?p(O):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),d(O))}function d(O){return O===null||U(O)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),p(O)):O===96&&O===l?r(O):(t.consume(O),d)}function g(O){return t.attempt(o,q,x)(O)}function x(O){return t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),w}function w(O){return s>0&&K(O)?ne(t,T,"linePrefix",s+1)(O):T(O)}function T(O){return O===null||U(O)?t.check(RT,g,q)(O):(t.enter("codeFlowValue"),E(O))}function E(O){return O===null||U(O)?(t.exit("codeFlowValue"),T(O)):(t.consume(O),E)}function q(O){return t.exit("codeFenced"),e(O)}function H(O,j,X){let Y=0;return I;function I(F){return O.enter("lineEnding"),O.consume(F),O.exit("lineEnding"),De}function De(F){return O.enter("codeFencedFence"),K(F)?ne(O,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):$(F)}function $(F){return F===l?(O.enter("codeFencedFenceSequence"),_(F)):X(F)}function _(F){return F===l?(Y++,O.consume(F),_):Y>=a?(O.exit("codeFencedFenceSequence"),K(F)?ne(O,N,"whitespace")(F):N(F)):X(F)}function N(F){return F===null||U(F)?(O.exit("codeFencedFence"),j(F)):X(F)}}}i(UB,"tokenizeCodeFenced");function qB(t,e,r){let n=this;return o;function o(a){return a===null?r(a):(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),s)}function s(a){return n.parser.lazy[n.now().line]?r(a):e(a)}}i(qB,"tokenizeNonLazyContinuation");var Aa={name:"codeIndented",tokenize:VB},YB={partial:!0,tokenize:GB};function VB(t,e,r){let n=this;return o;function o(c){return t.enter("codeIndented"),ne(t,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):U(c)?t.attempt(YB,a,u)(c):(t.enter("codeFlowValue"),l(c))}function l(c){return c===null||U(c)?(t.exit("codeFlowValue"),a(c)):(t.consume(c),l)}function u(c){return t.exit("codeIndented"),e(c)}}i(VB,"tokenizeCodeIndented");function GB(t,e,r){let n=this;return o;function o(a){return n.parser.lazy[n.now().line]?r(a):U(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),o):ne(t,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?e(a):U(a)?o(a):r(a)}}i(GB,"tokenizeFurtherStart");var Ud={name:"codeText",previous:QB,resolve:JB,tokenize:KB};function JB(t){let e=t.length-4,r=3,n,o;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(n=r;++n<e;)if(t[n][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[e][1].type="codeTextPadding",r+=2,e-=2;break}}for(n=r-1,e++;++n<=e;)o===void 0?n!==e&&t[n][1].type!=="lineEnding"&&(o=n):(n===e||t[n][1].type==="lineEnding")&&(t[o][1].type="codeTextData",n!==o+2&&(t[o][1].end=t[n-1][1].end,t.splice(o+2,n-o-2),e-=n-o-2,n=o+2),o=void 0);return t}i(JB,"resolveCodeText");function QB(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}i(QB,"previous");function KB(t,e,r){let n=this,o=0,s,a;return l;function l(h){return t.enter("codeText"),t.enter("codeTextSequence"),u(h)}function u(h){return h===96?(t.consume(h),o++,u):(t.exit("codeTextSequence"),c(h))}function c(h){return h===null?r(h):h===32?(t.enter("space"),t.consume(h),t.exit("space"),c):h===96?(a=t.enter("codeTextSequence"),s=0,p(h)):U(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),c):(t.enter("codeTextData"),f(h))}function f(h){return h===null||h===32||h===96||U(h)?(t.exit("codeTextData"),c(h)):(t.consume(h),f)}function p(h){return h===96?(t.consume(h),s++,p):s===o?(t.exit("codeTextSequence"),t.exit("codeText"),e(h)):(a.type="codeTextData",f(h))}}i(KB,"tokenizeCodeText");var Fa=class{static{i(this,"SpliceBuffer")}constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,r){let n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,r,n){let o=r||0;this.setCursor(Math.trunc(e));let s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return n&&Ra(this.left,n),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ra(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ra(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let r=this.left.splice(e,Number.POSITIVE_INFINITY);Ra(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ra(this.left,r.reverse())}}};function Ra(t,e){let r=0;if(e.length<1e4)t.push(...e);else for(;r<e.length;)t.push(...e.slice(r,r+1e4)),r+=1e4}i(Ra,"chunkedPush");function qf(t){let e={},r=-1,n,o,s,a,l,u,c,f=new Fa(t);for(;++r<f.length;){for(;r in e;)r=e[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(e,XB(f,r)),r=e[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 Ue(t,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}i(qf,"subtokenize");function XB(t,e){let r=t.get(e)[1],n=t.get(e)[2],o=e-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(;t.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 w=l.slice(x[h],x[h+1]),T=s.pop();u.push([T,T+w.length-1]),t.splice(T,2,w)}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(XB,"subcontent");var qd={resolve:ez,tokenize:tz},ZB={partial:!0,tokenize:rz};function ez(t){return qf(t),t}i(ez,"resolveContent");function tz(t,e){let r;return n;function n(l){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),o(l)}function o(l){return l===null?s(l):U(l)?t.check(ZB,a,s)(l):(t.consume(l),o)}function s(l){return t.exit("chunkContent"),t.exit("content"),e(l)}function a(l){return t.consume(l),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}i(tz,"tokenizeContent");function rz(t,e,r){let n=this;return o;function o(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),ne(t,s,"linePrefix")}function s(a){if(a===null||U(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?e(a):t.interrupt(n.parser.constructs.flow,r,e)(a)}}i(rz,"tokenizeContinuation");function Yf(t,e,r,n,o,s,a,l,u){let c=u||Number.POSITIVE_INFINITY,f=0;return p;function p(w){return w===60?(t.enter(n),t.enter(o),t.enter(s),t.consume(w),t.exit(s),h):w===null||w===32||w===41||Si(w)?r(w):(t.enter(n),t.enter(a),t.enter(l),t.enter("chunkString",{contentType:"string"}),g(w))}function h(w){return w===62?(t.enter(s),t.consume(w),t.exit(s),t.exit(o),t.exit(n),e):(t.enter(l),t.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===62?(t.exit("chunkString"),t.exit(l),h(w)):w===null||w===60||U(w)?r(w):(t.consume(w),w===92?d:m)}function d(w){return w===60||w===62||w===92?(t.consume(w),m):m(w)}function g(w){return!f&&(w===null||w===41||me(w))?(t.exit("chunkString"),t.exit(l),t.exit(a),t.exit(n),e(w)):f<c&&w===40?(t.consume(w),f++,g):w===41?(t.consume(w),f--,g):w===null||w===32||w===40||Si(w)?r(w):(t.consume(w),w===92?x:g)}function x(w){return w===40||w===41||w===92?(t.consume(w),g):g(w)}}i(Yf,"factoryDestination");function Vf(t,e,r,n,o,s){let a=this,l=0,u;return c;function c(m){return t.enter(n),t.enter(o),t.consume(m),t.exit(o),t.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?(t.exit(s),t.enter(o),t.consume(m),t.exit(o),t.exit(n),e):U(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),f):(t.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===null||m===91||m===93||U(m)||l++>999?(t.exit("chunkString"),f(m)):(t.consume(m),u||(u=!K(m)),m===92?h:p)}function h(m){return m===91||m===92||m===93?(t.consume(m),l++,p):p(m)}}i(Vf,"factoryLabel");function Gf(t,e,r,n,o,s){let a;return l;function l(h){return h===34||h===39||h===40?(t.enter(n),t.enter(o),t.consume(h),t.exit(o),a=h===40?41:h,u):r(h)}function u(h){return h===a?(t.enter(o),t.consume(h),t.exit(o),t.exit(n),e):(t.enter(s),c(h))}function c(h){return h===a?(t.exit(s),u(a)):h===null?r(h):U(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),ne(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===a||h===null||U(h)?(t.exit("chunkString"),c(h)):(t.consume(h),h===92?p:f)}function p(h){return h===a||h===92?(t.consume(h),f):f(h)}}i(Gf,"factoryTitle");function Mi(t,e){let r;return n;function n(o){return U(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r=!0,n):K(o)?ne(t,n,r?"linePrefix":"lineSuffix")(o):e(o)}}i(Mi,"factoryWhitespace");var Yd={name:"definition",tokenize:iz},nz={partial:!0,tokenize:oz};function iz(t,e,r){let n=this,o;return s;function s(m){return t.enter("definition"),a(m)}function a(m){return Vf.call(n,t,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?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),u):r(m)}function u(m){return me(m)?Mi(t,c)(m):c(m)}function c(m){return Yf(t,f,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return t.attempt(nz,p,p)(m)}function p(m){return K(m)?ne(t,h,"whitespace")(m):h(m)}function h(m){return m===null||U(m)?(t.exit("definition"),n.parser.defined.push(o),e(m)):r(m)}}i(iz,"tokenizeDefinition");function oz(t,e,r){return n;function n(l){return me(l)?Mi(t,o)(l):r(l)}function o(l){return Gf(t,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return K(l)?ne(t,a,"whitespace")(l):a(l)}function a(l){return l===null||U(l)?e(l):r(l)}}i(oz,"tokenizeTitleBefore");var Vd={name:"hardBreakEscape",tokenize:sz};function sz(t,e,r){return n;function n(s){return t.enter("hardBreakEscape"),t.consume(s),o}function o(s){return U(s)?(t.exit("hardBreakEscape"),e(s)):r(s)}}i(sz,"tokenizeHardBreakEscape");var Gd={name:"headingAtx",resolve:az,tokenize:lz};function az(t,e){let r=t.length-2,n=3,o,s;return t[n][1].type==="whitespace"&&(n+=2),r-2>n&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&t[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(o={type:"atxHeadingText",start:t[n][1].start,end:t[r][1].end},s={type:"chunkText",start:t[n][1].start,end:t[r][1].end,contentType:"text"},Ue(t,n,r-n+1,[["enter",o,e],["enter",s,e],["exit",s,e],["exit",o,e]])),t}i(az,"resolveHeadingAtx");function lz(t,e,r){let n=0;return o;function o(f){return t.enter("atxHeading"),s(f)}function s(f){return t.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&n++<6?(t.consume(f),a):f===null||me(f)?(t.exit("atxHeadingSequence"),l(f)):r(f)}function l(f){return f===35?(t.enter("atxHeadingSequence"),u(f)):f===null||U(f)?(t.exit("atxHeading"),e(f)):K(f)?ne(t,l,"whitespace")(f):(t.enter("atxHeadingText"),c(f))}function u(f){return f===35?(t.consume(f),u):(t.exit("atxHeadingSequence"),l(f))}function c(f){return f===null||f===35||me(f)?(t.exit("atxHeadingText"),l(f)):(t.consume(f),c)}}i(lz,"tokenizeHeadingAtx");var FT=["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"],Jd=["pre","script","style","textarea"];var Qd={concrete:!0,name:"htmlFlow",resolveTo:fz,tokenize:pz},uz={partial:!0,tokenize:mz},cz={partial:!0,tokenize:hz};function fz(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}i(fz,"resolveToHtmlFlow");function pz(t,e,r){let n=this,o,s,a,l,u;return c;function c(k){return f(k)}function f(k){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(k),p}function p(k){return k===33?(t.consume(k),h):k===47?(t.consume(k),s=!0,g):k===63?(t.consume(k),o=3,n.interrupt?e:b):Ze(k)?(t.consume(k),a=String.fromCharCode(k),x):r(k)}function h(k){return k===45?(t.consume(k),o=2,m):k===91?(t.consume(k),o=5,l=0,d):Ze(k)?(t.consume(k),o=4,n.interrupt?e:b):r(k)}function m(k){return k===45?(t.consume(k),n.interrupt?e:b):r(k)}function d(k){let Ae="CDATA[";return k===Ae.charCodeAt(l++)?(t.consume(k),l===Ae.length?n.interrupt?e:$:d):r(k)}function g(k){return Ze(k)?(t.consume(k),a=String.fromCharCode(k),x):r(k)}function x(k){if(k===null||k===47||k===62||me(k)){let Ae=k===47,$e=a.toLowerCase();return!Ae&&!s&&Jd.includes($e)?(o=1,n.interrupt?e(k):$(k)):FT.includes(a.toLowerCase())?(o=6,Ae?(t.consume(k),w):n.interrupt?e(k):$(k)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(k):s?T(k):E(k))}return k===45||je(k)?(t.consume(k),a+=String.fromCharCode(k),x):r(k)}function w(k){return k===62?(t.consume(k),n.interrupt?e:$):r(k)}function T(k){return K(k)?(t.consume(k),T):I(k)}function E(k){return k===47?(t.consume(k),I):k===58||k===95||Ze(k)?(t.consume(k),q):K(k)?(t.consume(k),E):I(k)}function q(k){return k===45||k===46||k===58||k===95||je(k)?(t.consume(k),q):H(k)}function H(k){return k===61?(t.consume(k),O):K(k)?(t.consume(k),H):E(k)}function O(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(t.consume(k),u=k,j):K(k)?(t.consume(k),O):X(k)}function j(k){return k===u?(t.consume(k),u=null,Y):k===null||U(k)?r(k):(t.consume(k),j)}function X(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||me(k)?H(k):(t.consume(k),X)}function Y(k){return k===47||k===62||K(k)?E(k):r(k)}function I(k){return k===62?(t.consume(k),De):r(k)}function De(k){return k===null||U(k)?$(k):K(k)?(t.consume(k),De):r(k)}function $(k){return k===45&&o===2?(t.consume(k),B):k===60&&o===1?(t.consume(k),V):k===62&&o===4?(t.consume(k),de):k===63&&o===3?(t.consume(k),b):k===93&&o===5?(t.consume(k),ue):U(k)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(uz,be,_)(k)):k===null||U(k)?(t.exit("htmlFlowData"),_(k)):(t.consume(k),$)}function _(k){return t.check(cz,N,be)(k)}function N(k){return t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),F}function F(k){return k===null||U(k)?_(k):(t.enter("htmlFlowData"),$(k))}function B(k){return k===45?(t.consume(k),b):$(k)}function V(k){return k===47?(t.consume(k),a="",Q):$(k)}function Q(k){if(k===62){let Ae=a.toLowerCase();return Jd.includes(Ae)?(t.consume(k),de):$(k)}return Ze(k)&&a.length<8?(t.consume(k),a+=String.fromCharCode(k),Q):$(k)}function ue(k){return k===93?(t.consume(k),b):$(k)}function b(k){return k===62?(t.consume(k),de):k===45&&o===2?(t.consume(k),b):$(k)}function de(k){return k===null||U(k)?(t.exit("htmlFlowData"),be(k)):(t.consume(k),de)}function be(k){return t.exit("htmlFlow"),e(k)}}i(pz,"tokenizeHtmlFlow");function hz(t,e,r){let n=this;return o;function o(a){return U(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),s):r(a)}function s(a){return n.parser.lazy[n.now().line]?r(a):e(a)}}i(hz,"tokenizeNonLazyContinuationStart");function mz(t,e,r){return n;function n(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(Br,e,r)}}i(mz,"tokenizeBlankLineBefore");var Kd={name:"htmlText",tokenize:dz};function dz(t,e,r){let n=this,o,s,a;return l;function l(b){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(b),u}function u(b){return b===33?(t.consume(b),c):b===47?(t.consume(b),H):b===63?(t.consume(b),E):Ze(b)?(t.consume(b),X):r(b)}function c(b){return b===45?(t.consume(b),f):b===91?(t.consume(b),s=0,d):Ze(b)?(t.consume(b),T):r(b)}function f(b){return b===45?(t.consume(b),m):r(b)}function p(b){return b===null?r(b):b===45?(t.consume(b),h):U(b)?(a=p,V(b)):(t.consume(b),p)}function h(b){return b===45?(t.consume(b),m):p(b)}function m(b){return b===62?B(b):b===45?h(b):p(b)}function d(b){let de="CDATA[";return b===de.charCodeAt(s++)?(t.consume(b),s===de.length?g:d):r(b)}function g(b){return b===null?r(b):b===93?(t.consume(b),x):U(b)?(a=g,V(b)):(t.consume(b),g)}function x(b){return b===93?(t.consume(b),w):g(b)}function w(b){return b===62?B(b):b===93?(t.consume(b),w):g(b)}function T(b){return b===null||b===62?B(b):U(b)?(a=T,V(b)):(t.consume(b),T)}function E(b){return b===null?r(b):b===63?(t.consume(b),q):U(b)?(a=E,V(b)):(t.consume(b),E)}function q(b){return b===62?B(b):E(b)}function H(b){return Ze(b)?(t.consume(b),O):r(b)}function O(b){return b===45||je(b)?(t.consume(b),O):j(b)}function j(b){return U(b)?(a=j,V(b)):K(b)?(t.consume(b),j):B(b)}function X(b){return b===45||je(b)?(t.consume(b),X):b===47||b===62||me(b)?Y(b):r(b)}function Y(b){return b===47?(t.consume(b),B):b===58||b===95||Ze(b)?(t.consume(b),I):U(b)?(a=Y,V(b)):K(b)?(t.consume(b),Y):B(b)}function I(b){return b===45||b===46||b===58||b===95||je(b)?(t.consume(b),I):De(b)}function De(b){return b===61?(t.consume(b),$):U(b)?(a=De,V(b)):K(b)?(t.consume(b),De):Y(b)}function $(b){return b===null||b===60||b===61||b===62||b===96?r(b):b===34||b===39?(t.consume(b),o=b,_):U(b)?(a=$,V(b)):K(b)?(t.consume(b),$):(t.consume(b),N)}function _(b){return b===o?(t.consume(b),o=void 0,F):b===null?r(b):U(b)?(a=_,V(b)):(t.consume(b),_)}function N(b){return b===null||b===34||b===39||b===60||b===61||b===96?r(b):b===47||b===62||me(b)?Y(b):(t.consume(b),N)}function F(b){return b===47||b===62||me(b)?Y(b):r(b)}function B(b){return b===62?(t.consume(b),t.exit("htmlTextData"),t.exit("htmlText"),e):r(b)}function V(b){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),Q}function Q(b){return K(b)?ne(t,ue,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):ue(b)}function ue(b){return t.enter("htmlTextData"),a(b)}}i(dz,"tokenizeHtmlText");var Ii={name:"labelEnd",resolveAll:wz,resolveTo:bz,tokenize:vz},gz={tokenize:Sz},xz={tokenize:kz},yz={tokenize:Tz};function wz(t){let e=-1,r=[];for(;++e<t.length;){let n=t[e][1];if(r.push(t[e]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let o=n.type==="labelImage"?4:2;n.type="data",e+=o}}return t.length!==r.length&&Ue(t,0,t.length,r),t}i(wz,"resolveAllLabelEnd");function bz(t,e){let r=t.length,n=0,o,s,a,l;for(;r--;)if(o=t[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(a){if(t[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:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},c={type:"label",start:{...t[s][1].start},end:{...t[a][1].end}},f={type:"labelText",start:{...t[s+n+2][1].end},end:{...t[a-2][1].start}};return l=[["enter",u,e],["enter",c,e]],l=Ge(l,t.slice(s+1,s+n+3)),l=Ge(l,[["enter",f,e]]),l=Ge(l,Pn(e.parser.constructs.insideSpan.null,t.slice(s+n+4,a-3),e)),l=Ge(l,[["exit",f,e],t[a-2],t[a-1],["exit",c,e]]),l=Ge(l,t.slice(a+1)),l=Ge(l,[["exit",u,e]]),Ue(t,s,t.length,l),t}i(bz,"resolveToLabelEnd");function vz(t,e,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()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelEnd"),u):r(h)}function u(h){return h===40?t.attempt(gz,f,a?f:p)(h):h===91?t.attempt(xz,f,a?c:p)(h):a?f(h):p(h)}function c(h){return t.attempt(yz,f,p)(h)}function f(h){return e(h)}function p(h){return s._balanced=!0,r(h)}}i(vz,"tokenizeLabelEnd");function Sz(t,e,r){return n;function n(p){return t.enter("resource"),t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),o}function o(p){return me(p)?Mi(t,s)(p):s(p)}function s(p){return p===41?f(p):Yf(t,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return me(p)?Mi(t,u)(p):f(p)}function l(p){return r(p)}function u(p){return p===34||p===39||p===40?Gf(t,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):f(p)}function c(p){return me(p)?Mi(t,f)(p):f(p)}function f(p){return p===41?(t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),t.exit("resource"),e):r(p)}}i(Sz,"tokenizeResource");function kz(t,e,r){let n=this;return o;function o(l){return Vf.call(n,t,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)))?e(l):r(l)}function a(l){return r(l)}}i(kz,"tokenizeReferenceFull");function Tz(t,e,r){return n;function n(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),o}function o(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):r(s)}}i(Tz,"tokenizeReferenceCollapsed");var Xd={name:"labelStartImage",resolveAll:Ii.resolveAll,tokenize:Ez};function Ez(t,e,r){let n=this;return o;function o(l){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(l),t.exit("labelImageMarker"),s}function s(l){return l===91?(t.enter("labelMarker"),t.consume(l),t.exit("labelMarker"),t.exit("labelImage"),a):r(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(l):e(l)}}i(Ez,"tokenizeLabelStartImage");var Zd={name:"labelStartLink",resolveAll:Ii.resolveAll,tokenize:Dz};function Dz(t,e,r){let n=this;return o;function o(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):e(a)}}i(Dz,"tokenizeLabelStartLink");var La={name:"lineEnding",tokenize:Cz};function Cz(t,e){return r;function r(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ne(t,e,"linePrefix")}}i(Cz,"tokenizeLineEnding");var _i={name:"thematicBreak",tokenize:Oz};function Oz(t,e,r){let n=0,o;return s;function s(c){return t.enter("thematicBreak"),a(c)}function a(c){return o=c,l(c)}function l(c){return c===o?(t.enter("thematicBreakSequence"),u(c)):n>=3&&(c===null||U(c))?(t.exit("thematicBreak"),e(c)):r(c)}function u(c){return c===o?(t.consume(c),n++,u):(t.exit("thematicBreakSequence"),K(c)?ne(t,l,"whitespace")(c):l(c))}}i(Oz,"tokenizeThematicBreak");var bt={continuation:{tokenize:Pz},exit:Az,name:"list",tokenize:_z},Mz={partial:!0,tokenize:Rz},Iz={partial:!0,tokenize:Nz};function _z(t,e,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:Ma(m)){if(n.containerState.type||(n.containerState.type=d,t.enter(d,{_container:!0})),d==="listUnordered")return t.enter("listItemPrefix"),m===42||m===45?t.check(_i,r,c)(m):c(m);if(!n.interrupt||m===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),u(m)}return r(m)}function u(m){return Ma(m)&&++a<10?(t.consume(m),u):(!n.interrupt||a<2)&&(n.containerState.marker?m===n.containerState.marker:m===41||m===46)?(t.exit("listItemValue"),c(m)):r(m)}function c(m){return t.enter("listItemMarker"),t.consume(m),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||m,t.check(Br,n.interrupt?r:f,t.attempt(Mz,h,p))}function f(m){return n.containerState.initialBlankLine=!0,s++,h(m)}function p(m){return K(m)?(t.enter("listItemPrefixWhitespace"),t.consume(m),t.exit("listItemPrefixWhitespace"),h):r(m)}function h(m){return n.containerState.size=s+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(m)}}i(_z,"tokenizeListStart");function Pz(t,e,r){let n=this;return n.containerState._closeFlow=void 0,t.check(Br,o,s);function o(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ne(t,e,"listItemIndent",n.containerState.size+1)(l)}i(o,"onBlank");function s(l){return n.containerState.furtherBlankLines||!K(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(Iz,e,a)(l))}i(s,"notBlank");function a(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,ne(t,t.attempt(bt,e,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}i(a,"notInCurrentItem")}i(Pz,"tokenizeListContinuation");function Nz(t,e,r){let n=this;return ne(t,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?e(s):r(s)}}i(Nz,"tokenizeIndent");function Az(t){t.exit(this.containerState.type)}i(Az,"tokenizeListEnd");function Rz(t,e,r){let n=this;return ne(t,o,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){let a=n.events[n.events.length-1];return!K(s)&&a&&a[1].type==="listItemPrefixWhitespace"?e(s):r(s)}}i(Rz,"tokenizeListItemPrefixWhitespace");var Jf={name:"setextUnderline",resolveTo:Fz,tokenize:Lz};function Fz(t,e){let r=t.length,n,o,s;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){n=r;break}t[r][1].type==="paragraph"&&(o=r)}else t[r][1].type==="content"&&t.splice(r,1),!s&&t[r][1].type==="definition"&&(s=r);let a={type:"setextHeading",start:{...t[n][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",s?(t.splice(o,0,["enter",a,e]),t.splice(s+1,0,["exit",t[n][1],e]),t[n][1].end={...t[s][1].end}):t[n][1]=a,t.push(["exit",a,e]),t}i(Fz,"resolveToSetextUnderline");function Lz(t,e,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)?(t.enter("setextHeadingLine"),o=c,a(c)):r(c)}function a(c){return t.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===o?(t.consume(c),l):(t.exit("setextHeadingLineSequence"),K(c)?ne(t,u,"lineSuffix")(c):u(c))}function u(c){return c===null||U(c)?(t.exit("setextHeadingLine"),e(c)):r(c)}}i(Lz,"tokenizeSetextUnderline");var Bz={tokenize:qz,partial:!0};function eg(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Wz,continuation:{tokenize:$z},exit:Uz}},text:{91:{name:"gfmFootnoteCall",tokenize:Hz},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:zz,resolveTo:jz}}}}i(eg,"gfmFootnote");function zz(t,e,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):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(u),t.exit("gfmFootnoteCallLabelMarker"),e(u))}}i(zz,"tokenizePotentialGfmFootnoteCall");function jz(t,e){let r=t.length,n;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){n=t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";let o={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[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({},t[t.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[t[r+1],t[r+2],["enter",o,e],t[r+3],t[r+4],["enter",s,e],["exit",s,e],["enter",a,e],["enter",l,e],["exit",l,e],["exit",a,e],t[t.length-2],t[t.length-1],["exit",o,e]];return t.splice(r,t.length-r+1,...u),t}i(jz,"resolveToPotentialGfmFootnoteCall");function Hz(t,e,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s=0,a;return l;function l(p){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),u}function u(p){return p!==94?r(p):(t.enter("gfmFootnoteCallMarker"),t.consume(p),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(p){if(s>999||p===93&&!a||p===null||p===91||me(p))return r(p);if(p===93){t.exit("chunkString");let h=t.exit("gfmFootnoteCallString");return o.includes(He(n.sliceSerialize(h)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):r(p)}return me(p)||(a=!0),s++,t.consume(p),p===92?f:c}function f(p){return p===91||p===92||p===93?(t.consume(p),s++,c):c(p)}}i(Hz,"tokenizeGfmFootnoteCall");function Wz(t,e,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s,a=0,l;return u;function u(d){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(d),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(d){return d===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(d),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",f):r(d)}function f(d){if(a>999||d===93&&!l||d===null||d===91||me(d))return r(d);if(d===93){t.exit("chunkString");let g=t.exit("gfmFootnoteDefinitionLabelString");return s=He(n.sliceSerialize(g)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(d),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),h}return me(d)||(l=!0),a++,t.consume(d),d===92?p:f}function p(d){return d===91||d===92||d===93?(t.consume(d),a++,f):f(d)}function h(d){return d===58?(t.enter("definitionMarker"),t.consume(d),t.exit("definitionMarker"),o.includes(s)||o.push(s),ne(t,m,"gfmFootnoteDefinitionWhitespace")):r(d)}function m(d){return e(d)}}i(Wz,"tokenizeDefinitionStart");function $z(t,e,r){return t.check(Br,e,t.attempt(Bz,e,r))}i($z,"tokenizeDefinitionContinuation");function Uz(t){t.exit("gfmFootnoteDefinition")}i(Uz,"gfmFootnoteDefinitionEnd");function qz(t,e,r){let n=this;return ne(t,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?e(s):r(s)}}i(qz,"tokenizeIndent");var Yz={}.hasOwnProperty,Vz={};function LT(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}i(LT,"defaultBackLabel");function tg(t){let e=t||Vz,r=e.label||"Footnotes",n=e.labelTagName||"h2",o=e.labelAttributes===null||e.labelAttributes===void 0?'class="sr-only"':e.labelAttributes,s=e.backLabel||LT,a=e.clobberPrefix===null||e.clobberPrefix===void 0?"user-content-":e.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={}),Yz.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=Lr(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=Lr(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(w){return x=!0," "+g+w})),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(tg,"gfmFootnoteHtml");function rg(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}i(rg,"gfmStrikethroughHtml");function ng(t){let r=(t||{}).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&&Ue(h,h.length,0,Pn(m,a.slice(c+1,u),l)),Ue(h,h.length,0,[["exit",p,l],["enter",a[u][1],l],["exit",a[u][1],l],["exit",f,l]]),Ue(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=Qr(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"),w=Qr(d);return x._open=!w||w===2&&!!g,x._close=!g||g===2&&!!w,l(d)}}i(s,"tokenizeStrikethrough")}i(ng,"gfmStrikethrough");var ig={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function og(){return{enter:{table(t){let e=t._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",e)},tableBody(){this.tag("<tbody>")},tableData(){let t=this.getData("tableAlign"),e=this.getData("tableColumn"),r=ig[t[e]];r===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+r+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){let t=this.getData("tableAlign"),e=this.getData("tableColumn"),r=ig[t[e]];this.lineEndingIfNeeded(),this.tag("<th"+r+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(t){let e=this.sliceSerialize(t);this.getData("tableAlign")&&(e=e.replace(/\\([\\|])/g,Gz)),this.raw(this.encode(e))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){let t=this.getData("tableAlign"),e=this.getData("tableColumn");e in t?(this.tag("</td>"),this.setData("tableColumn",e+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){let t=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",t+1)},tableRow(){let t=this.getData("tableAlign"),e=this.getData("tableColumn");for(;e<t.length;)this.lineEndingIfNeeded(),this.tag("<td"+ig[t[e]]+"></td>"),e++;this.setData("tableColumn",e),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}i(og,"gfmTableHtml");function Gz(t,e){return e==="|"?e:t}i(Gz,"replace");var Qf=class{static{i(this,"EditMap")}constructor(){this.map=[]}add(e,r,n){Jz(this,e,r,n)}consume(e){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(e.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),e.length=this.map[r][0];n.push(e.slice()),e.length=0;let o=n.pop();for(;o;){for(let s of o)e.push(s);o=n.pop()}this.map.length=0}};function Jz(t,e,r,n){let o=0;if(!(r===0&&n.length===0)){for(;o<t.map.length;){if(t.map[o][0]===e){t.map[o][1]+=r,t.map[o][2].push(...n);return}o+=1}t.map.push([e,r,n])}}i(Jz,"addImplementation");function BT(t,e){let r=!1,n=[];for(;e<t.length;){let o=t[e];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&n.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[e-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);e+=1}return n}i(BT,"gfmTableAlign");function sg(){return{flow:{null:{name:"table",tokenize:Qz,resolveAll:Kz}}}}i(sg,"gfmTable");function Qz(t,e,r){let n=this,o=0,s=0,a;return l;function l(I){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 $=De>-1?n.events[De][1].type:null,_=$==="tableHead"||$==="tableRow"?O:u;return _===O&&n.parser.lazy[n.now().line]?r(I):_(I)}function u(I){return t.enter("tableHead"),t.enter("tableRow"),c(I)}function c(I){return I===124||(a=!0,s+=1),f(I)}function f(I){return I===null?r(I):U(I)?s>1?(s=0,n.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),m):r(I):K(I)?ne(t,f,"whitespace")(I):(s+=1,a&&(a=!1,o+=1),I===124?(t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),a=!0,f):(t.enter("data"),p(I)))}function p(I){return I===null||I===124||me(I)?(t.exit("data"),f(I)):(t.consume(I),I===92?h:p)}function h(I){return I===92||I===124?(t.consume(I),p):p(I)}function m(I){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(I):(t.enter("tableDelimiterRow"),a=!1,K(I)?ne(t,d,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):d(I))}function d(I){return I===45||I===58?x(I):I===124?(a=!0,t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),g):H(I)}function g(I){return K(I)?ne(t,x,"whitespace")(I):x(I)}function x(I){return I===58?(s+=1,a=!0,t.enter("tableDelimiterMarker"),t.consume(I),t.exit("tableDelimiterMarker"),w):I===45?(s+=1,w(I)):I===null||U(I)?q(I):H(I)}function w(I){return I===45?(t.enter("tableDelimiterFiller"),T(I)):H(I)}function T(I){return I===45?(t.consume(I),T):I===58?(a=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(I),t.exit("tableDelimiterMarker"),E):(t.exit("tableDelimiterFiller"),E(I))}function E(I){return K(I)?ne(t,q,"whitespace")(I):q(I)}function q(I){return I===124?d(I):I===null||U(I)?!a||o!==s?H(I):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(I)):H(I)}function H(I){return r(I)}function O(I){return t.enter("tableRow"),j(I)}function j(I){return I===124?(t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),j):I===null||U(I)?(t.exit("tableRow"),e(I)):K(I)?ne(t,j,"whitespace")(I):(t.enter("data"),X(I))}function X(I){return I===null||I===124||me(I)?(t.exit("data"),j(I)):(t.consume(I),I===92?Y:X)}function Y(I){return I===92||I===124?(t.consume(I),X):X(I)}}i(Qz,"tokenizeTable");function Kz(t,e){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 Qf;for(;++r<t.length;){let m=t[r],d=m[1];m[0]==="enter"?d.type==="tableHead"?(l=!1,u!==0&&(zT(h,e,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,e]])):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,e]])),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=Kf(h,e,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=Kf(h,e,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=Kf(h,e,s,o,r,p)):a[1]!==0&&(p=Kf(h,e,a,o,r,p)),o=0):o&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(a[3]=r)}for(u!==0&&zT(h,e,u,c,f),h.consume(e.events),r=-1;++r<e.events.length;){let m=e.events[r];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=BT(e.events,r))}return t}i(Kz,"resolveTable");function Kf(t,e,r,n,o,s){let a=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";r[0]!==0&&(s.end=Object.assign({},cs(e.events,r[0])),t.add(r[0],0,[["exit",s,e]]));let u=cs(e.events,r[1]);if(s={type:a,start:Object.assign({},u),end:Object.assign({},u)},t.add(r[1],0,[["enter",s,e]]),r[2]!==0){let c=cs(e.events,r[2]),f=cs(e.events,r[3]),p={type:l,start:Object.assign({},c),end:Object.assign({},f)};if(t.add(r[2],0,[["enter",p,e]]),n!==2){let h=e.events[r[2]],m=e.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;t.add(d,g,[])}}t.add(r[3]+1,0,[["exit",p,e]])}return o!==void 0&&(s.end=Object.assign({},cs(e.events,o)),t.add(o,0,[["exit",s,e]]),s=void 0),s}i(Kf,"flushCell");function zT(t,e,r,n,o){let s=[],a=cs(e.events,r);o&&(o.end=Object.assign({},a),s.push(["exit",o,e])),n.end=Object.assign({},a),s.push(["exit",n,e]),t.add(r+1,0,s)}i(zT,"flushTableEnd");function cs(t,e){let r=t[e],n=r[0]==="enter"?"start":"end";return r[1][n]}i(cs,"getPoint");var jT=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,Xz=new RegExp("^"+jT.source,"i");function ag(){return{exit:{htmlFlowData(t){HT.call(this,t,jT)},htmlTextData(t){HT.call(this,t,Xz)}}}}i(ag,"gfmTagfilterHtml");function HT(t,e){let r=this.sliceSerialize(t);this.options.allowDangerousHtml&&(r=r.replace(e,"&lt;$1$2")),this.raw(this.encode(r))}i(HT,"exitHtmlData");function lg(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}i(lg,"gfmTaskListItemHtml");var Zz={name:"tasklistCheck",tokenize:ej};function ug(){return{text:{91:Zz}}}i(ug,"gfmTaskListItem");function ej(t,e,r){let n=this;return o;function o(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),s)}function s(u){return me(u)?(t.enter("taskListCheckValueUnchecked"),t.consume(u),t.exit("taskListCheckValueUnchecked"),a):u===88||u===120?(t.enter("taskListCheckValueChecked"),t.consume(u),t.exit("taskListCheckValueChecked"),a):r(u)}function a(u){return u===93?(t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),l):r(u)}function l(u){return U(u)?e(u):K(u)?t.check({tokenize:tj},e,r)(u):r(u)}}i(ej,"tokenizeTasklistCheck");function tj(t,e,r){return ne(t,n,"whitespace");function n(o){return o===null?r(o):e(o)}}i(tj,"spaceThenNonSpace");function WT(t){return Bf([jd(),eg(),ng(t),sg(),ug()])}i(WT,"gfm");function FWe(t){return zf([Wd(),tg(t),rg(),og(),ag(),lg()])}i(FWe,"gfmHtml");var rj={};function fs(t){let e=this,r=t||rj,n=e.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(WT(r)),s.push(Rd()),a.push(Fd(r))}i(fs,"remarkGfm");var $T={}.hasOwnProperty,UT=/^(https?|ircs?|mailto|xmpp)$/i,nj=/^https?$/i;function cg(t){let e=t||{},r=!0,n={},o=[[]],s=[],a=[],u=zf([{enter:{blockQuote:F,codeFenced:ue,codeFencedFenceInfo:x,codeFencedFenceMeta:x,codeIndented:be,codeText:kt,content:hr,definition:Ie,definitionDestinationString:Ot,definitionLabelString:x,definitionTitleString:x,emphasis:Un,htmlFlow:zt,htmlText:Vt,image:Ae,label:x,link:$e,listItemMarker:De,listItemValue:I,listOrdered:X,listUnordered:Y,paragraph:V,reference:x,resource:C,resourceDestinationString:M,resourceTitleString:x,setextHeading:Yt,strong:qn},exit:{atxHeading:Le,atxHeadingSequence:Bt,autolinkEmail:bO,autolinkProtocol:wO,blockQuote:B,characterEscapeValue:z,characterReferenceMarkerHexadecimal:ay,characterReferenceMarkerNumeric:ay,characterReferenceValue:yO,codeFenced:k,codeFencedFence:de,codeFencedFenceInfo:b,codeFencedFenceMeta:j,codeFlowValue:ce,codeIndented:k,codeText:nn,codeTextData:z,data:z,definition:rr,definitionDestinationString:tt,definitionLabelString:ve,definitionTitleString:St,emphasis:nr,hardBreakEscape:Se,hardBreakTrailing:Se,htmlFlow:dr,htmlFlowData:z,htmlText:dr,htmlTextData:z,image:Pe,label:D,labelText:Lt,lineEnding:ie,link:Pe,listOrdered:$,listUnordered:_,paragraph:Q,reference:j,referenceString:S,resource:j,resourceDestinationString:R,resourceTitleString:ee,setextHeading:P,setextHeadingLineSequence:mr,setextHeadingText:Mt,strong:gO,thematicBreak:xO}},...e.htmlExtensions||[]]),c={definitions:n,tightStack:a},f={buffer:x,encode:O,getData:g,lineEndingIfNeeded:H,options:e,raw:E,resume:w,setData:d,tag:T},p=e.defaultLineEnding;return h;function h(W){let te=-1,ct=0,ir=[],gr=[],Wr=[];for(;++te<W.length;)!p&&(W[te][1].type==="lineEnding"||W[te][1].type==="lineEndingBlank")&&(p=W[te][2].sliceSerialize(W[te][1])),(W[te][1].type==="listOrdered"||W[te][1].type==="listUnordered")&&(W[te][0]==="enter"?ir.push(te):m(W.slice(ir.pop(),te))),W[te][1].type==="definition"&&(W[te][0]==="enter"?(Wr=Ge(Wr,W.slice(ct,te)),ct=te):(gr=Ge(gr,W.slice(ct,te+1)),ct=te+1));gr=Ge(gr,Wr),gr=Ge(gr,W.slice(ct)),te=-1;let xr=gr;for(u.enter.null&&u.enter.null.call(f);++te<W.length;){let ly=u[xr[te][0]],uy=xr[te][1].type,cy=ly[uy];$T.call(ly,uy)&&cy&&cy.call({sliceSerialize:xr[te][2].sliceSerialize,...f},xr[te][1])}return u.exit.null&&u.exit.null.call(f),o[0].join("")}function m(W){let te=W.length,ct=0,ir=0,gr=!1,Wr;for(;++ct<te;){let xr=W[ct];if(xr[1]._container)Wr=void 0,xr[0]==="enter"?ir++:ir--;else switch(xr[1].type){case"listItemPrefix":{xr[0]==="exit"&&(Wr=!0);break}case"linePrefix":break;case"lineEndingBlank":{xr[0]==="enter"&&!ir&&(Wr?Wr=void 0:gr=!0);break}default:Wr=void 0}}W[0][1]._loose=gr}function d(W,te){c[W]=te}function g(W){return c[W]}function x(){o.push([])}function w(){return o.pop().join("")}function T(W){r&&(d("lastWasTag",!0),o[o.length-1].push(W))}function E(W){d("lastWasTag"),o[o.length-1].push(W)}function q(){E(p||`
76
- `)}function H(){let W=o[o.length-1],te=W[W.length-1],ct=te?te.charCodeAt(te.length-1):null;ct===10||ct===13||ct===null||q()}function O(W){return g("ignoreEncode")?W:jf(W)}function j(){w()}function X(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 I(W){if(g("expectFirstItem")){let te=Number.parseInt(this.sliceSerialize(W),10);te!==1&&T(' start="'+O(String(te))+'"')}}function De(){g("expectFirstItem")?T(">"):N(),H(),T("<li>"),d("expectFirstItem"),d("lastWasTag")}function $(){N(),a.pop(),q(),T("</ol>")}function _(){N(),a.pop(),q(),T("</ul>")}function N(){g("lastWasTag")&&!g("slurpAllLineEndings")&&H(),T("</li>"),d("slurpAllLineEndings")}function F(){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 Q(){a[a.length-1]?d("slurpAllLineEndings",!0):T("</p>")}function ue(){H(),T("<pre><code"),d("fencesCount",0)}function b(){let W=w();T(' class="language-'+W+'"')}function de(){let W=g("fencesCount")||0;W||(T(">"),d("slurpOneLineEnding",!0)),d("fencesCount",W+1)}function be(){H(),T("<pre><code>")}function k(){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 Ae(){s.push({image:!0}),r=void 0}function $e(){s.push({})}function Lt(W){s[s.length-1].labelId=this.sliceSerialize(W)}function D(){s[s.length-1].label=w()}function S(W){s[s.length-1].referenceId=this.sliceSerialize(W)}function C(){x(),s[s.length-1].destination=""}function M(){x(),d("ignoreEncode",!0)}function R(){s[s.length-1].destination=w(),d("ignoreEncode")}function ee(){s[s.length-1].title=w()}function Pe(){let W=s.length-1,te=s[W],ct=te.referenceId||te.labelId,ir=te.destination===void 0?n[He(ct)]:te;for(r=!0;W--;)if(s[W].image){r=void 0;break}te.image?(T('<img src="'+Lr(ir.destination,e.allowDangerousProtocol?void 0:nj)+'" alt="'),E(te.label),T('"')):T('<a href="'+Lr(ir.destination,e.allowDangerousProtocol?void 0:UT)+'"'),T(ir.title?' title="'+ir.title+'"':""),te.image?T(" />"):(T(">"),E(te.label),T("</a>")),s.pop()}function Ie(){x(),s.push({})}function ve(W){w(),s[s.length-1].labelId=this.sliceSerialize(W)}function Ot(){x(),d("ignoreEncode",!0)}function tt(){s[s.length-1].destination=w(),d("ignoreEncode")}function St(){s[s.length-1].title=w()}function rr(){let W=s[s.length-1],te=He(W.labelId);w(),$T.call(n,te)||(n[te]=s[s.length-1]),s.pop()}function hr(){d("slurpAllLineEndings",!0)}function Bt(W){g("headingRank")||(d("headingRank",this.sliceSerialize(W).length),H(),T("<h"+g("headingRank")+">"))}function Yt(){x(),d("slurpAllLineEndings")}function Mt(){d("slurpAllLineEndings",!0)}function Le(){T("</h"+g("headingRank")+">"),d("headingRank")}function mr(W){d("headingRank",this.sliceSerialize(W).charCodeAt(0)===61?1:2)}function P(){let W=w();H(),T("<h"+g("headingRank")+">"),E(W),T("</h"+g("headingRank")+">"),d("slurpAllLineEndings"),d("headingRank")}function z(W){E(O(this.sliceSerialize(W)))}function ie(W){if(!g("slurpAllLineEndings")){if(g("slurpOneLineEnding")){d("slurpOneLineEnding");return}if(g("inCodeText")){E(" ");return}E(O(this.sliceSerialize(W)))}}function ce(W){E(O(this.sliceSerialize(W))),d("flowCodeSeenData",!0)}function Se(){T("<br />")}function zt(){H(),Vt()}function dr(){d("ignoreEncode")}function Vt(){e.allowDangerousHtml&&d("ignoreEncode",!0)}function Un(){T("<em>")}function qn(){T("<strong>")}function kt(){d("inCodeText",!0),T("<code>")}function nn(){d("inCodeText"),T("</code>")}function nr(){T("</em>")}function gO(){T("</strong>")}function xO(){H(),T("<hr />")}function ay(W){d("characterReferenceType",W.type)}function yO(W){let te=this.sliceSerialize(W),ct=g("characterReferenceType")?us(te,g("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):_n(te);E(O(ct)),d("characterReferenceType")}function wO(W){let te=this.sliceSerialize(W);T('<a href="'+Lr(te,e.allowDangerousProtocol?void 0:UT)+'">'),E(O(te)),T("</a>")}function bO(W){let te=this.sliceSerialize(W);T('<a href="'+Lr("mailto:"+te)+'">'),E(O(te)),T("</a>")}}i(cg,"compile");var qT={tokenize:ij};function ij(t){let e=t.attempt(this.parser.constructs.contentInitial,n,o),r;return e;function n(l){if(l===null){t.consume(l);return}return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),ne(t,e,"linePrefix")}function o(l){return t.enter("paragraph"),s(l)}function s(l){let u=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,a(l)}function a(l){if(l===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(l);return}return U(l)?(t.consume(l),t.exit("chunkText"),s):(t.consume(l),a)}}i(ij,"initializeContent");var VT={tokenize:oj},YT={tokenize:sj};function oj(t){let e=this,r=[],n=0,o,s,a;return l;function l(E){if(n<r.length){let q=r[n];return e.containerState=q[1],t.attempt(q[0].continuation,u,c)(E)}return c(E)}function u(E){if(n++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,o&&T();let q=e.events.length,H=q,O;for(;H--;)if(e.events[H][0]==="exit"&&e.events[H][1].type==="chunkFlow"){O=e.events[H][1].end;break}w(n);let j=q;for(;j<e.events.length;)e.events[j][1].end={...O},j++;return Ue(e.events,H+1,0,e.events.slice(q)),e.events.length=j,c(E)}return l(E)}function c(E){if(n===r.length){if(!o)return h(E);if(o.currentConstruct&&o.currentConstruct.concrete)return d(E);e.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(YT,f,p)(E)}function f(E){return o&&T(),w(n),h(E)}function p(E){return e.parser.lazy[e.now().line]=n!==r.length,a=e.now().offset,d(E)}function h(E){return e.containerState={},t.attempt(YT,m,d)(E)}function m(E){return n++,r.push([e.currentConstruct,e.containerState]),h(E)}function d(E){if(E===null){o&&T(),w(0),t.consume(E);return}return o=o||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),g(E)}function g(E){if(E===null){x(t.exit("chunkFlow"),!0),w(0),t.consume(E);return}return U(E)?(t.consume(E),x(t.exit("chunkFlow")),n=0,e.interrupt=void 0,l):(t.consume(E),g)}function x(E,q){let H=e.sliceStream(E);if(q&&H.push(null),E.previous=s,s&&(s.next=E),s=E,o.defineSkip(E.start),o.write(H),e.parser.lazy[E.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 j=e.events.length,X=j,Y,I;for(;X--;)if(e.events[X][0]==="exit"&&e.events[X][1].type==="chunkFlow"){if(Y){I=e.events[X][1].end;break}Y=!0}for(w(n),O=j;O<e.events.length;)e.events[O][1].end={...I},O++;Ue(e.events,X+1,0,e.events.slice(j)),e.events.length=O}}function w(E){let q=r.length;for(;q-- >E;){let H=r[q];e.containerState=H[1],H[0].exit.call(e,t)}r.length=E}function T(){o.write([null]),s=void 0,o=void 0,e.containerState._closeFlow=void 0}}i(oj,"initializeDocument");function sj(t,e,r){return ne(t,t.attempt(this.parser.constructs.document,e,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}i(sj,"tokenizeContainer");var GT={tokenize:aj};function aj(t){let e=this,r=t.attempt(Br,n,t.attempt(this.parser.constructs.flowInitial,o,ne(t,t.attempt(this.parser.constructs.flow,o,t.attempt(qd,o)),"linePrefix")));return r;function n(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,r}function o(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,r}}i(aj,"initializeFlow");var KT={resolveAll:QT()},XT=JT("string"),ZT=JT("text");function JT(t){return{resolveAll:QT(t==="text"?lj:void 0),tokenize:e};function e(r){let n=this,o=this.parser.constructs[t],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(JT,"initializeFactory");function QT(t){return e;function e(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 t?t(r,n):r}}i(QT,"createResolver");function lj(t,e){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){let n=t[r-1][1],o=e.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(e._contentTypeTextTrailing&&r===t.length&&(l=0),l){let c={type:r===t.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):(t.splice(r,0,["enter",c,e],["exit",c,e]),r+=2)}r++}return t}i(lj,"resolveAllLineSuffixes");var fg={};ae(fg,{attentionMarkers:()=>gj,contentInitial:()=>cj,disable:()=>xj,document:()=>uj,flow:()=>pj,flowInitial:()=>fj,insideSpan:()=>dj,string:()=>hj,text:()=>mj});var uj={42:bt,43:bt,45:bt,48:bt,49:bt,50:bt,51:bt,52:bt,53:bt,54:bt,55:bt,56:bt,57:bt,62:Hf},cj={91:Yd},fj={[-2]:Aa,[-1]:Aa,32:Aa},pj={35:Gd,42:_i,45:[Jf,_i],60:Qd,61:Jf,95:_i,96:Uf,126:Uf},hj={38:$f,92:Wf},mj={[-5]:La,[-4]:La,[-3]:La,33:Xd,38:$f,42:Na,60:[$d,Kd],91:Zd,92:[Vd,Wf],93:Ii,95:Na,96:Ud},dj={null:[Na,KT]},gj={null:[42,95]},xj={null:[]};function eE(t,e,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(j),check:Y(X),consume:q,enter:H,exit:O,interrupt:Y(X,{interrupt:!0})},f={code:null,containerState:{},defineSkip:w,events:[],now:x,parser:t,previous:null,sliceSerialize:d,sliceStream:g,write:m},p=e.tokenize.call(f,c),h;return e.resolveAll&&s.push(e),f;function m(_){return a=Ge(a,_),T(),a[a.length-1]!==null?[]:(I(e,0),f.events=Pn(s,f.events,f),f.events)}i(m,"write");function d(_,N){return wj(g(_),N)}i(d,"sliceSerialize");function g(_){return yj(a,_)}i(g,"sliceStream");function x(){let{_bufferIndex:_,_index:N,line:F,column:B,offset:V}=n;return{_bufferIndex:_,_index:N,line:F,column:B,offset:V}}i(x,"now");function w(_){o[_.line]=_.column,$()}i(w,"defineSkip");function T(){let _;for(;n._index<a.length;){let N=a[n._index];if(typeof N=="string")for(_=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===_&&n._bufferIndex<N.length;)E(N.charCodeAt(n._bufferIndex));else E(N)}}i(T,"main");function E(_){u=void 0,h=_,p=p(_)}i(E,"go");function q(_){U(_)?(n.line++,n.column=1,n.offset+=_===-3?2:1,$()):_!==-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=_,u=!0}i(q,"consume");function H(_,N){let F=N||{};return F.type=_,F.start=x(),f.events.push(["enter",F,f]),l.push(F),F}i(H,"enter");function O(_){let N=l.pop();return N.end=x(),f.events.push(["exit",N,f]),N}i(O,"exit");function j(_,N){I(_,N.from)}i(j,"onsuccessfulconstruct");function X(_,N){N.restore()}i(X,"onsuccessfulcheck");function Y(_,N){return F;function F(B,V,Q){let ue,b,de,be;return Array.isArray(B)?Ae(B):"tokenize"in B?Ae([B]):k(B);function k(S){return C;function C(M){let R=M!==null&&S[M],ee=M!==null&&S.null,Pe=[...Array.isArray(R)?R:R?[R]:[],...Array.isArray(ee)?ee:ee?[ee]:[]];return Ae(Pe)(M)}}function Ae(S){return ue=S,b=0,S.length===0?Q:$e(S[b])}function $e(S){return C;function C(M){return be=De(),de=S,S.partial||(f.currentConstruct=S),S.name&&f.parser.constructs.disable.null.includes(S.name)?D(M):S.tokenize.call(N?Object.assign(Object.create(f),N):f,c,Lt,D)(M)}}function Lt(S){return u=!0,_(de,be),V}function D(S){return u=!0,be.restore(),++b<ue.length?$e(ue[b]):Q}}}i(Y,"constructFactory");function I(_,N){_.resolveAll&&!s.includes(_)&&s.push(_),_.resolve&&Ue(f.events,N,f.events.length-N,_.resolve(f.events.slice(N),f)),_.resolveTo&&(f.events=_.resolveTo(f.events,f))}i(I,"addResult");function De(){let _=x(),N=f.previous,F=f.currentConstruct,B=f.events.length,V=Array.from(l);return{from:B,restore:Q};function Q(){n=_,f.previous=N,f.currentConstruct=F,f.events.length=B,l=V,$()}}i(De,"store");function $(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}i($,"accountForPotentialSkip")}i(eE,"createTokenizer");function yj(t,e){let r=e.start._index,n=e.start._bufferIndex,o=e.end._index,s=e.end._bufferIndex,a;if(r===o)a=[t[r].slice(n,s)];else{if(a=t.slice(r,o),n>-1){let l=a[0];typeof l=="string"?a[0]=l.slice(n):a.shift()}s>0&&a.push(t[o].slice(0,s))}return a}i(yj,"sliceChunks");function wj(t,e){let r=-1,n=[],o;for(;++r<t.length;){let s=t[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 w=g.enter("tableCell"),T=g.enter("phrasing"),E=g.containerPhrasing(m,{...x,before:s,after:s});return T(),w(),E}function c(m,d){return $1(m,{align:d,alignDelimiters:n,padding:r,stringLength:o})}function f(m,d,g){let x=m.children,w=-1,T=[],E=d.enter("table");for(;++w<x.length;)T[w]=p(x[w],d,g);return E(),T}function p(m,d,g){let x=m.children,w=-1,T=[],E=d.enter("tableRow");for(;++w<x.length;)T[w]=u(x[w],m,d,g);return E(),T}function h(m,d,g){let x=Di.inlineCode(m,d,g);return g.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}i(Pd,"gfmTableToMarkdown");function Nd(){return{exit:{taskListCheckValueChecked:ET,taskListCheckValueUnchecked:ET,paragraph:xB}}}i(Nd,"gfmTaskListItemFromMarkdown");function Ad(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:yB}}}i(Ad,"gfmTaskListItemToMarkdown");function ET(t){let e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}i(ET,"exitCheck");function xB(t){let e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let n=r.children[0];if(n&&n.type==="text"){let o=e.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(t)}i(xB,"exitParagraphWithTaskListItem");function yB(t,e,r,n){let o=t.children[0],s=typeof t.checked=="boolean"&&o&&o.type==="paragraph",a="["+(t.checked?"x":" ")+"] ",l=r.createTracker(n);s&&l.move(a);let u=Di.listItem(t,e,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(yB,"listItemWithTaskListItem");function Rd(){return[fd(),hd(),dd(),_d(),Nd()]}i(Rd,"gfmFromMarkdown");function Fd(t){return{extensions:[pd(),md(t),gd(),Pd(t),Ad()]}}i(Fd,"gfmToMarkdown");function Ue(t,e,r,n){let o=t.length,s=0,a;if(e<0?e=-e>o?0:o+e:e=e>o?o:e,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(e,r),t.splice(...a);else for(r&&t.splice(e,r);s<n.length;)a=n.slice(s,s+1e4),a.unshift(e,0),t.splice(...a),s+=1e4,e+=1e4}i(Ue,"splice");function Ge(t,e){return t.length>0?(Ue(t,t.length,0,e),t):e}i(Ge,"push");var Ld={}.hasOwnProperty;function Bf(t){let e={},r=-1;for(;++r<t.length;)wB(e,t[r]);return e}i(Bf,"combineExtensions");function wB(t,e){let r;for(r in e){let o=(Ld.call(t,r)?t[r]:void 0)||(t[r]={}),s=e[r],a;if(s)for(a in s){Ld.call(o,a)||(o[a]=[]);let l=s[a];bB(o[a],Array.isArray(l)?l:l?[l]:[])}}}i(wB,"syntaxExtension");function bB(t,e){let r=-1,n=[];for(;++r<e.length;)(e[r].add==="after"?t:n).push(e[r]);Ue(t,0,0,n)}i(bB,"constructs");function zf(t){let e={},r=-1;for(;++r<t.length;)vB(e,t[r]);return e}i(zf,"combineHtmlExtensions");function vB(t,e){let r;for(r in e){let o=(Ld.call(t,r)?t[r]:void 0)||(t[r]={}),s=e[r],a;if(s)for(a in s)o[a]=s[a]}}i(vB,"htmlExtension");var SB={tokenize:CB,partial:!0},DT={tokenize:OB,partial:!0},CT={tokenize:MB,partial:!0},OT={tokenize:IB,partial:!0},kB={tokenize:_B,partial:!0},MT={name:"wwwAutolink",tokenize:EB,previous:_T},IT={name:"protocolAutolink",tokenize:DB,previous:PT},Kr={name:"emailAutolink",tokenize:TB,previous:NT},Lr={};function jd(){return{text:Lr}}i(jd,"gfmAutolinkLiteral");for(var Oi=48;Oi<123;)Lr[Oi]=Kr,Oi++,Oi===58?Oi=65:Oi===91&&(Oi=97);Lr[43]=Kr,Lr[45]=Kr,Lr[46]=Kr,Lr[95]=Kr,Lr[72]=[Kr,IT],Lr[104]=[Kr,IT],Lr[87]=[Kr,MT],Lr[119]=[Kr,MT];function TB(t,e,r){let n=this,o,s;return a;function a(p){return!Bd(p)||!NT.call(n,n.previous)||zd(n.events)?r(p):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),l(p))}function l(p){return Bd(p)?(t.consume(p),l):p===64?(t.consume(p),u):r(p)}function u(p){return p===46?t.check(kB,f,c)(p):p===45||p===95||je(p)?(s=!0,t.consume(p),u):f(p)}function c(p){return t.consume(p),o=!0,u}function f(p){return s&&o&&Ze(n.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(p)):r(p)}}i(TB,"tokenizeEmailAutolink");function EB(t,e,r){let n=this;return o;function o(a){return a!==87&&a!==119||!_T.call(n,n.previous)||zd(n.events)?r(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(SB,t.attempt(DT,t.attempt(CT,s),r),r)(a))}function s(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(a)}}i(EB,"tokenizeWwwAutolink");function DB(t,e,r){let n=this,o="",s=!1;return a;function a(p){return(p===72||p===104)&&PT.call(n,n.previous)&&!zd(n.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(p),t.consume(p),l):r(p)}function l(p){if(Ze(p)&&o.length<5)return o+=String.fromCodePoint(p),t.consume(p),l;if(p===58){let h=o.toLowerCase();if(h==="http"||h==="https")return t.consume(p),u}return r(p)}function u(p){return p===47?(t.consume(p),s?c:(s=!0,u)):r(p)}function c(p){return p===null||Si(p)||me(p)||Fr(p)||ki(p)?r(p):t.attempt(DT,t.attempt(CT,f),r)(p)}function f(p){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(p)}}i(DB,"tokenizeProtocolAutolink");function CB(t,e,r){let n=0;return o;function o(a){return(a===87||a===119)&&n<3?(n++,t.consume(a),o):a===46&&n===3?(t.consume(a),s):r(a)}function s(a){return a===null?r(a):e(a)}}i(CB,"tokenizeWwwPrefix");function OB(t,e,r){let n,o,s;return a;function a(c){return c===46||c===95?t.check(OT,u,l)(c):c===null||me(c)||Fr(c)||c!==45&&ki(c)?u(c):(s=!0,t.consume(c),a)}function l(c){return c===95?n=!0:(o=n,n=void 0),t.consume(c),a}function u(c){return o||n||!s?r(c):e(c)}}i(OB,"tokenizeDomain");function MB(t,e){let r=0,n=0;return o;function o(a){return a===40?(r++,t.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?t.check(OT,e,s)(a):a===null||me(a)||Fr(a)?e(a):(t.consume(a),o)}function s(a){return a===41&&n++,t.consume(a),o}}i(MB,"tokenizePath");function IB(t,e,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?(t.consume(l),n):l===38?(t.consume(l),s):l===93?(t.consume(l),o):l===60||l===null||me(l)||Fr(l)?e(l):r(l)}function o(l){return l===null||l===40||l===91||me(l)||Fr(l)?e(l):n(l)}function s(l){return Ze(l)?a(l):r(l)}function a(l){return l===59?(t.consume(l),n):Ze(l)?(t.consume(l),a):r(l)}}i(IB,"tokenizeTrail");function _B(t,e,r){return n;function n(s){return t.consume(s),o}function o(s){return je(s)?r(s):e(s)}}i(_B,"tokenizeEmailDomainDotTrail");function _T(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||me(t)}i(_T,"previousWww");function PT(t){return!Ze(t)}i(PT,"previousProtocol");function NT(t){return!(t===47||Bd(t))}i(NT,"previousEmail");function Bd(t){return t===43||t===45||t===46||t===95||je(t)}i(Bd,"gfmAtext");function zd(t){let e=t.length,r=!1;for(;e--;){let n=t[e][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return t.length>0&&!r&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}i(zd,"previousUnbalanced");var PB={'"':"quot","&":"amp","<":"lt",">":"gt"};function jf(t){return t.replace(/["&<>]/g,e);function e(r){return"&"+PB[r]+";"}}i(jf,"encode");function Br(t,e){let r=jf(qt(t||""));if(!e)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||e.test(r.slice(0,n))?r:""}i(Br,"sanitizeUri");function qt(t){let e=[],r=-1,n=0,o=0;for(;++r<t.length;){let s=t.charCodeAt(r),a="";if(s===37&&je(t.charCodeAt(r+1))&&je(t.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=t.charCodeAt(r+1);s<56320&&l>56319&&l<57344?(a=String.fromCharCode(s,l),o=1):a="\uFFFD"}else a=String.fromCharCode(s);a&&(e.push(t.slice(n,r),encodeURIComponent(a)),n=r+o+1,a=""),o&&(r+=o,o=0)}return e.join("")+t.slice(n)}i(qt,"normalizeUri");function Wd(){return{exit:{literalAutolinkEmail:AB,literalAutolinkHttp:RB,literalAutolinkWww:NB}}}i(Wd,"gfmAutolinkLiteralHtml");function NB(t){Hd.call(this,t,"http://")}i(NB,"literalAutolinkWww");function AB(t){Hd.call(this,t,"mailto:")}i(AB,"literalAutolinkEmail");function RB(t){Hd.call(this,t)}i(RB,"literalAutolinkHttp");function Hd(t,e){let r=this.sliceSerialize(t);this.tag('<a href="'+Br((e||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}i(Hd,"anchorFromToken");function Pn(t,e,r){let n=[],o=-1;for(;++o<t.length;){let s=t[o].resolveAll;s&&!n.includes(s)&&(e=s(e,r),n.push(s))}return e}i(Pn,"resolveAll");var Na={name:"attention",resolveAll:FB,tokenize:LB};function FB(t,e){let r=-1,n,o,s,a,l,u,c,f;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(n=r;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[n][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;u=t[n][1].end.offset-t[n][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;let p={...t[n][1].end},h={...t[r][1].start};AT(p,-u),AT(h,u),a={type:u>1?"strongSequence":"emphasisSequence",start:p,end:{...t[n][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:h},s={type:u>1?"strongText":"emphasisText",start:{...t[n][1].end},end:{...t[r][1].start}},o={type:u>1?"strong":"emphasis",start:{...a.start},end:{...l.end}},t[n][1].end={...a.start},t[r][1].start={...l.end},c=[],t[n][1].end.offset-t[n][1].start.offset&&(c=Ge(c,[["enter",t[n][1],e],["exit",t[n][1],e]])),c=Ge(c,[["enter",o,e],["enter",a,e],["exit",a,e],["enter",s,e]]),c=Ge(c,Pn(e.parser.constructs.insideSpan.null,t.slice(n+1,r),e)),c=Ge(c,[["exit",s,e],["enter",l,e],["exit",l,e],["exit",o,e]]),t[r][1].end.offset-t[r][1].start.offset?(f=2,c=Ge(c,[["enter",t[r][1],e],["exit",t[r][1],e]])):f=0,Ue(t,n-1,r-n+3,c),r=n+c.length-f-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}i(FB,"resolveAllAttention");function LB(t,e){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=Qr(n),s;return a;function a(u){return s=u,t.enter("attentionSequence"),l(u)}function l(u){if(u===s)return t.consume(u),l;let c=t.exit("attentionSequence"),f=Qr(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)),e(u)}}i(LB,"tokenizeAttention");function AT(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}i(AT,"movePoint");var $d={name:"autolink",tokenize:BB};function BB(t,e,r){let n=0;return o;function o(m){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(m){return Ze(m)?(t.consume(m),a):m===64?r(m):c(m)}function a(m){return m===43||m===45||m===46||je(m)?(n=1,l(m)):c(m)}function l(m){return m===58?(t.consume(m),n=0,u):(m===43||m===45||m===46||je(m))&&n++<32?(t.consume(m),l):(n=0,c(m))}function u(m){return m===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):m===null||m===32||m===60||Si(m)?r(m):(t.consume(m),u)}function c(m){return m===64?(t.consume(m),f):P1(m)?(t.consume(m),c):r(m)}function f(m){return je(m)?p(m):r(m)}function p(m){return m===46?(t.consume(m),n=0,f):m===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):h(m)}function h(m){if((m===45||je(m))&&n++<63){let d=m===45?h:p;return t.consume(m),d}return r(m)}}i(BB,"tokenizeAutolink");function ne(t,e,r,n){let o=n?n-1:Number.POSITIVE_INFINITY,s=0;return a;function a(u){return K(u)?(t.enter(r),l(u)):e(u)}function l(u){return K(u)&&s++<o?(t.consume(u),l):(t.exit(r),e(u))}}i(ne,"factorySpace");var zr={partial:!0,tokenize:zB};function zB(t,e,r){return n;function n(s){return K(s)?ne(t,o,"linePrefix")(s):o(s)}function o(s){return s===null||U(s)?e(s):r(s)}}i(zB,"tokenizeBlankLine");var Hf={continuation:{tokenize:HB},exit:WB,name:"blockQuote",tokenize:jB};function jB(t,e,r){let n=this;return o;function o(a){if(a===62){let l=n.containerState;return l.open||(t.enter("blockQuote",{_container:!0}),l.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),s}return r(a)}function s(a){return K(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(a))}}i(jB,"tokenizeBlockQuoteStart");function HB(t,e,r){let n=this;return o;function o(a){return K(a)?ne(t,s,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return t.attempt(Hf,e,r)(a)}}i(HB,"tokenizeBlockQuoteContinuation");function WB(t){t.exit("blockQuote")}i(WB,"exit");var Wf={name:"characterEscape",tokenize:$B};function $B(t,e,r){return n;function n(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),o}function o(s){return A1(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):r(s)}}i($B,"tokenizeCharacterEscape");var $f={name:"characterReference",tokenize:UB};function UB(t,e,r){let n=this,o=0,s,a;return l;function l(p){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),u}function u(p){return p===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(p),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),s=31,a=je,f(p))}function c(p){return p===88||p===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(p),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,a=N1,f):(t.enter("characterReferenceValue"),s=7,a=Ma,f(p))}function f(p){if(p===59&&o){let h=t.exit("characterReferenceValue");return a===je&&!_n(n.sliceSerialize(h))?r(p):(t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return a(p)&&o++<s?(t.consume(p),f):r(p)}}i(UB,"tokenizeCharacterReference");var RT={partial:!0,tokenize:YB},Uf={concrete:!0,name:"codeFenced",tokenize:qB};function qB(t,e,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 j=n.events[n.events.length-1];return s=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,l=O,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),f(O)}function f(O){return O===l?(a++,t.consume(O),f):a<3?r(O):(t.exit("codeFencedFenceSequence"),K(O)?ne(t,p,"whitespace")(O):p(O))}function p(O){return O===null||U(O)?(t.exit("codeFencedFence"),n.interrupt?e(O):t.check(RT,g,q)(O)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),h(O))}function h(O){return O===null||U(O)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),p(O)):K(O)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ne(t,m,"whitespace")(O)):O===96&&O===l?r(O):(t.consume(O),h)}function m(O){return O===null||U(O)?p(O):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),d(O))}function d(O){return O===null||U(O)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),p(O)):O===96&&O===l?r(O):(t.consume(O),d)}function g(O){return t.attempt(o,q,x)(O)}function x(O){return t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),w}function w(O){return s>0&&K(O)?ne(t,T,"linePrefix",s+1)(O):T(O)}function T(O){return O===null||U(O)?t.check(RT,g,q)(O):(t.enter("codeFlowValue"),E(O))}function E(O){return O===null||U(O)?(t.exit("codeFlowValue"),T(O)):(t.consume(O),E)}function q(O){return t.exit("codeFenced"),e(O)}function H(O,j,X){let Y=0;return I;function I(F){return O.enter("lineEnding"),O.consume(F),O.exit("lineEnding"),De}function De(F){return O.enter("codeFencedFence"),K(F)?ne(O,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):$(F)}function $(F){return F===l?(O.enter("codeFencedFenceSequence"),_(F)):X(F)}function _(F){return F===l?(Y++,O.consume(F),_):Y>=a?(O.exit("codeFencedFenceSequence"),K(F)?ne(O,N,"whitespace")(F):N(F)):X(F)}function N(F){return F===null||U(F)?(O.exit("codeFencedFence"),j(F)):X(F)}}}i(qB,"tokenizeCodeFenced");function YB(t,e,r){let n=this;return o;function o(a){return a===null?r(a):(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),s)}function s(a){return n.parser.lazy[n.now().line]?r(a):e(a)}}i(YB,"tokenizeNonLazyContinuation");var Aa={name:"codeIndented",tokenize:GB},VB={partial:!0,tokenize:JB};function GB(t,e,r){let n=this;return o;function o(c){return t.enter("codeIndented"),ne(t,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):U(c)?t.attempt(VB,a,u)(c):(t.enter("codeFlowValue"),l(c))}function l(c){return c===null||U(c)?(t.exit("codeFlowValue"),a(c)):(t.consume(c),l)}function u(c){return t.exit("codeIndented"),e(c)}}i(GB,"tokenizeCodeIndented");function JB(t,e,r){let n=this;return o;function o(a){return n.parser.lazy[n.now().line]?r(a):U(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),o):ne(t,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?e(a):U(a)?o(a):r(a)}}i(JB,"tokenizeFurtherStart");var Ud={name:"codeText",previous:KB,resolve:QB,tokenize:XB};function QB(t){let e=t.length-4,r=3,n,o;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(n=r;++n<e;)if(t[n][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[e][1].type="codeTextPadding",r+=2,e-=2;break}}for(n=r-1,e++;++n<=e;)o===void 0?n!==e&&t[n][1].type!=="lineEnding"&&(o=n):(n===e||t[n][1].type==="lineEnding")&&(t[o][1].type="codeTextData",n!==o+2&&(t[o][1].end=t[n-1][1].end,t.splice(o+2,n-o-2),e-=n-o-2,n=o+2),o=void 0);return t}i(QB,"resolveCodeText");function KB(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}i(KB,"previous");function XB(t,e,r){let n=this,o=0,s,a;return l;function l(h){return t.enter("codeText"),t.enter("codeTextSequence"),u(h)}function u(h){return h===96?(t.consume(h),o++,u):(t.exit("codeTextSequence"),c(h))}function c(h){return h===null?r(h):h===32?(t.enter("space"),t.consume(h),t.exit("space"),c):h===96?(a=t.enter("codeTextSequence"),s=0,p(h)):U(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),c):(t.enter("codeTextData"),f(h))}function f(h){return h===null||h===32||h===96||U(h)?(t.exit("codeTextData"),c(h)):(t.consume(h),f)}function p(h){return h===96?(t.consume(h),s++,p):s===o?(t.exit("codeTextSequence"),t.exit("codeText"),e(h)):(a.type="codeTextData",f(h))}}i(XB,"tokenizeCodeText");var Fa=class{static{i(this,"SpliceBuffer")}constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,r){let n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,r,n){let o=r||0;this.setCursor(Math.trunc(e));let s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return n&&Ra(this.left,n),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ra(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ra(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let r=this.left.splice(e,Number.POSITIVE_INFINITY);Ra(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ra(this.left,r.reverse())}}};function Ra(t,e){let r=0;if(e.length<1e4)t.push(...e);else for(;r<e.length;)t.push(...e.slice(r,r+1e4)),r+=1e4}i(Ra,"chunkedPush");function qf(t){let e={},r=-1,n,o,s,a,l,u,c,f=new Fa(t);for(;++r<f.length;){for(;r in e;)r=e[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(e,ZB(f,r)),r=e[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 Ue(t,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}i(qf,"subtokenize");function ZB(t,e){let r=t.get(e)[1],n=t.get(e)[2],o=e-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(;t.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 w=l.slice(x[h],x[h+1]),T=s.pop();u.push([T,T+w.length-1]),t.splice(T,2,w)}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(ZB,"subcontent");var qd={resolve:tz,tokenize:rz},ez={partial:!0,tokenize:nz};function tz(t){return qf(t),t}i(tz,"resolveContent");function rz(t,e){let r;return n;function n(l){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),o(l)}function o(l){return l===null?s(l):U(l)?t.check(ez,a,s)(l):(t.consume(l),o)}function s(l){return t.exit("chunkContent"),t.exit("content"),e(l)}function a(l){return t.consume(l),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}i(rz,"tokenizeContent");function nz(t,e,r){let n=this;return o;function o(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),ne(t,s,"linePrefix")}function s(a){if(a===null||U(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?e(a):t.interrupt(n.parser.constructs.flow,r,e)(a)}}i(nz,"tokenizeContinuation");function Yf(t,e,r,n,o,s,a,l,u){let c=u||Number.POSITIVE_INFINITY,f=0;return p;function p(w){return w===60?(t.enter(n),t.enter(o),t.enter(s),t.consume(w),t.exit(s),h):w===null||w===32||w===41||Si(w)?r(w):(t.enter(n),t.enter(a),t.enter(l),t.enter("chunkString",{contentType:"string"}),g(w))}function h(w){return w===62?(t.enter(s),t.consume(w),t.exit(s),t.exit(o),t.exit(n),e):(t.enter(l),t.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===62?(t.exit("chunkString"),t.exit(l),h(w)):w===null||w===60||U(w)?r(w):(t.consume(w),w===92?d:m)}function d(w){return w===60||w===62||w===92?(t.consume(w),m):m(w)}function g(w){return!f&&(w===null||w===41||me(w))?(t.exit("chunkString"),t.exit(l),t.exit(a),t.exit(n),e(w)):f<c&&w===40?(t.consume(w),f++,g):w===41?(t.consume(w),f--,g):w===null||w===32||w===40||Si(w)?r(w):(t.consume(w),w===92?x:g)}function x(w){return w===40||w===41||w===92?(t.consume(w),g):g(w)}}i(Yf,"factoryDestination");function Vf(t,e,r,n,o,s){let a=this,l=0,u;return c;function c(m){return t.enter(n),t.enter(o),t.consume(m),t.exit(o),t.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?(t.exit(s),t.enter(o),t.consume(m),t.exit(o),t.exit(n),e):U(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),f):(t.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===null||m===91||m===93||U(m)||l++>999?(t.exit("chunkString"),f(m)):(t.consume(m),u||(u=!K(m)),m===92?h:p)}function h(m){return m===91||m===92||m===93?(t.consume(m),l++,p):p(m)}}i(Vf,"factoryLabel");function Gf(t,e,r,n,o,s){let a;return l;function l(h){return h===34||h===39||h===40?(t.enter(n),t.enter(o),t.consume(h),t.exit(o),a=h===40?41:h,u):r(h)}function u(h){return h===a?(t.enter(o),t.consume(h),t.exit(o),t.exit(n),e):(t.enter(s),c(h))}function c(h){return h===a?(t.exit(s),u(a)):h===null?r(h):U(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),ne(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===a||h===null||U(h)?(t.exit("chunkString"),c(h)):(t.consume(h),h===92?p:f)}function p(h){return h===a||h===92?(t.consume(h),f):f(h)}}i(Gf,"factoryTitle");function Mi(t,e){let r;return n;function n(o){return U(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r=!0,n):K(o)?ne(t,n,r?"linePrefix":"lineSuffix")(o):e(o)}}i(Mi,"factoryWhitespace");var Yd={name:"definition",tokenize:oz},iz={partial:!0,tokenize:sz};function oz(t,e,r){let n=this,o;return s;function s(m){return t.enter("definition"),a(m)}function a(m){return Vf.call(n,t,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?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),u):r(m)}function u(m){return me(m)?Mi(t,c)(m):c(m)}function c(m){return Yf(t,f,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return t.attempt(iz,p,p)(m)}function p(m){return K(m)?ne(t,h,"whitespace")(m):h(m)}function h(m){return m===null||U(m)?(t.exit("definition"),n.parser.defined.push(o),e(m)):r(m)}}i(oz,"tokenizeDefinition");function sz(t,e,r){return n;function n(l){return me(l)?Mi(t,o)(l):r(l)}function o(l){return Gf(t,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return K(l)?ne(t,a,"whitespace")(l):a(l)}function a(l){return l===null||U(l)?e(l):r(l)}}i(sz,"tokenizeTitleBefore");var Vd={name:"hardBreakEscape",tokenize:az};function az(t,e,r){return n;function n(s){return t.enter("hardBreakEscape"),t.consume(s),o}function o(s){return U(s)?(t.exit("hardBreakEscape"),e(s)):r(s)}}i(az,"tokenizeHardBreakEscape");var Gd={name:"headingAtx",resolve:lz,tokenize:uz};function lz(t,e){let r=t.length-2,n=3,o,s;return t[n][1].type==="whitespace"&&(n+=2),r-2>n&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&t[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(o={type:"atxHeadingText",start:t[n][1].start,end:t[r][1].end},s={type:"chunkText",start:t[n][1].start,end:t[r][1].end,contentType:"text"},Ue(t,n,r-n+1,[["enter",o,e],["enter",s,e],["exit",s,e],["exit",o,e]])),t}i(lz,"resolveHeadingAtx");function uz(t,e,r){let n=0;return o;function o(f){return t.enter("atxHeading"),s(f)}function s(f){return t.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&n++<6?(t.consume(f),a):f===null||me(f)?(t.exit("atxHeadingSequence"),l(f)):r(f)}function l(f){return f===35?(t.enter("atxHeadingSequence"),u(f)):f===null||U(f)?(t.exit("atxHeading"),e(f)):K(f)?ne(t,l,"whitespace")(f):(t.enter("atxHeadingText"),c(f))}function u(f){return f===35?(t.consume(f),u):(t.exit("atxHeadingSequence"),l(f))}function c(f){return f===null||f===35||me(f)?(t.exit("atxHeadingText"),l(f)):(t.consume(f),c)}}i(uz,"tokenizeHeadingAtx");var FT=["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"],Jd=["pre","script","style","textarea"];var Qd={concrete:!0,name:"htmlFlow",resolveTo:pz,tokenize:hz},cz={partial:!0,tokenize:dz},fz={partial:!0,tokenize:mz};function pz(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}i(pz,"resolveToHtmlFlow");function hz(t,e,r){let n=this,o,s,a,l,u;return c;function c(k){return f(k)}function f(k){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(k),p}function p(k){return k===33?(t.consume(k),h):k===47?(t.consume(k),s=!0,g):k===63?(t.consume(k),o=3,n.interrupt?e:b):Ze(k)?(t.consume(k),a=String.fromCharCode(k),x):r(k)}function h(k){return k===45?(t.consume(k),o=2,m):k===91?(t.consume(k),o=5,l=0,d):Ze(k)?(t.consume(k),o=4,n.interrupt?e:b):r(k)}function m(k){return k===45?(t.consume(k),n.interrupt?e:b):r(k)}function d(k){let Ae="CDATA[";return k===Ae.charCodeAt(l++)?(t.consume(k),l===Ae.length?n.interrupt?e:$:d):r(k)}function g(k){return Ze(k)?(t.consume(k),a=String.fromCharCode(k),x):r(k)}function x(k){if(k===null||k===47||k===62||me(k)){let Ae=k===47,$e=a.toLowerCase();return!Ae&&!s&&Jd.includes($e)?(o=1,n.interrupt?e(k):$(k)):FT.includes(a.toLowerCase())?(o=6,Ae?(t.consume(k),w):n.interrupt?e(k):$(k)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(k):s?T(k):E(k))}return k===45||je(k)?(t.consume(k),a+=String.fromCharCode(k),x):r(k)}function w(k){return k===62?(t.consume(k),n.interrupt?e:$):r(k)}function T(k){return K(k)?(t.consume(k),T):I(k)}function E(k){return k===47?(t.consume(k),I):k===58||k===95||Ze(k)?(t.consume(k),q):K(k)?(t.consume(k),E):I(k)}function q(k){return k===45||k===46||k===58||k===95||je(k)?(t.consume(k),q):H(k)}function H(k){return k===61?(t.consume(k),O):K(k)?(t.consume(k),H):E(k)}function O(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(t.consume(k),u=k,j):K(k)?(t.consume(k),O):X(k)}function j(k){return k===u?(t.consume(k),u=null,Y):k===null||U(k)?r(k):(t.consume(k),j)}function X(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||me(k)?H(k):(t.consume(k),X)}function Y(k){return k===47||k===62||K(k)?E(k):r(k)}function I(k){return k===62?(t.consume(k),De):r(k)}function De(k){return k===null||U(k)?$(k):K(k)?(t.consume(k),De):r(k)}function $(k){return k===45&&o===2?(t.consume(k),B):k===60&&o===1?(t.consume(k),V):k===62&&o===4?(t.consume(k),de):k===63&&o===3?(t.consume(k),b):k===93&&o===5?(t.consume(k),ue):U(k)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(cz,be,_)(k)):k===null||U(k)?(t.exit("htmlFlowData"),_(k)):(t.consume(k),$)}function _(k){return t.check(fz,N,be)(k)}function N(k){return t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),F}function F(k){return k===null||U(k)?_(k):(t.enter("htmlFlowData"),$(k))}function B(k){return k===45?(t.consume(k),b):$(k)}function V(k){return k===47?(t.consume(k),a="",Q):$(k)}function Q(k){if(k===62){let Ae=a.toLowerCase();return Jd.includes(Ae)?(t.consume(k),de):$(k)}return Ze(k)&&a.length<8?(t.consume(k),a+=String.fromCharCode(k),Q):$(k)}function ue(k){return k===93?(t.consume(k),b):$(k)}function b(k){return k===62?(t.consume(k),de):k===45&&o===2?(t.consume(k),b):$(k)}function de(k){return k===null||U(k)?(t.exit("htmlFlowData"),be(k)):(t.consume(k),de)}function be(k){return t.exit("htmlFlow"),e(k)}}i(hz,"tokenizeHtmlFlow");function mz(t,e,r){let n=this;return o;function o(a){return U(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),s):r(a)}function s(a){return n.parser.lazy[n.now().line]?r(a):e(a)}}i(mz,"tokenizeNonLazyContinuationStart");function dz(t,e,r){return n;function n(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(zr,e,r)}}i(dz,"tokenizeBlankLineBefore");var Kd={name:"htmlText",tokenize:gz};function gz(t,e,r){let n=this,o,s,a;return l;function l(b){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(b),u}function u(b){return b===33?(t.consume(b),c):b===47?(t.consume(b),H):b===63?(t.consume(b),E):Ze(b)?(t.consume(b),X):r(b)}function c(b){return b===45?(t.consume(b),f):b===91?(t.consume(b),s=0,d):Ze(b)?(t.consume(b),T):r(b)}function f(b){return b===45?(t.consume(b),m):r(b)}function p(b){return b===null?r(b):b===45?(t.consume(b),h):U(b)?(a=p,V(b)):(t.consume(b),p)}function h(b){return b===45?(t.consume(b),m):p(b)}function m(b){return b===62?B(b):b===45?h(b):p(b)}function d(b){let de="CDATA[";return b===de.charCodeAt(s++)?(t.consume(b),s===de.length?g:d):r(b)}function g(b){return b===null?r(b):b===93?(t.consume(b),x):U(b)?(a=g,V(b)):(t.consume(b),g)}function x(b){return b===93?(t.consume(b),w):g(b)}function w(b){return b===62?B(b):b===93?(t.consume(b),w):g(b)}function T(b){return b===null||b===62?B(b):U(b)?(a=T,V(b)):(t.consume(b),T)}function E(b){return b===null?r(b):b===63?(t.consume(b),q):U(b)?(a=E,V(b)):(t.consume(b),E)}function q(b){return b===62?B(b):E(b)}function H(b){return Ze(b)?(t.consume(b),O):r(b)}function O(b){return b===45||je(b)?(t.consume(b),O):j(b)}function j(b){return U(b)?(a=j,V(b)):K(b)?(t.consume(b),j):B(b)}function X(b){return b===45||je(b)?(t.consume(b),X):b===47||b===62||me(b)?Y(b):r(b)}function Y(b){return b===47?(t.consume(b),B):b===58||b===95||Ze(b)?(t.consume(b),I):U(b)?(a=Y,V(b)):K(b)?(t.consume(b),Y):B(b)}function I(b){return b===45||b===46||b===58||b===95||je(b)?(t.consume(b),I):De(b)}function De(b){return b===61?(t.consume(b),$):U(b)?(a=De,V(b)):K(b)?(t.consume(b),De):Y(b)}function $(b){return b===null||b===60||b===61||b===62||b===96?r(b):b===34||b===39?(t.consume(b),o=b,_):U(b)?(a=$,V(b)):K(b)?(t.consume(b),$):(t.consume(b),N)}function _(b){return b===o?(t.consume(b),o=void 0,F):b===null?r(b):U(b)?(a=_,V(b)):(t.consume(b),_)}function N(b){return b===null||b===34||b===39||b===60||b===61||b===96?r(b):b===47||b===62||me(b)?Y(b):(t.consume(b),N)}function F(b){return b===47||b===62||me(b)?Y(b):r(b)}function B(b){return b===62?(t.consume(b),t.exit("htmlTextData"),t.exit("htmlText"),e):r(b)}function V(b){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),Q}function Q(b){return K(b)?ne(t,ue,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):ue(b)}function ue(b){return t.enter("htmlTextData"),a(b)}}i(gz,"tokenizeHtmlText");var Ii={name:"labelEnd",resolveAll:bz,resolveTo:vz,tokenize:Sz},xz={tokenize:kz},yz={tokenize:Tz},wz={tokenize:Ez};function bz(t){let e=-1,r=[];for(;++e<t.length;){let n=t[e][1];if(r.push(t[e]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let o=n.type==="labelImage"?4:2;n.type="data",e+=o}}return t.length!==r.length&&Ue(t,0,t.length,r),t}i(bz,"resolveAllLabelEnd");function vz(t,e){let r=t.length,n=0,o,s,a,l;for(;r--;)if(o=t[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(a){if(t[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:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},c={type:"label",start:{...t[s][1].start},end:{...t[a][1].end}},f={type:"labelText",start:{...t[s+n+2][1].end},end:{...t[a-2][1].start}};return l=[["enter",u,e],["enter",c,e]],l=Ge(l,t.slice(s+1,s+n+3)),l=Ge(l,[["enter",f,e]]),l=Ge(l,Pn(e.parser.constructs.insideSpan.null,t.slice(s+n+4,a-3),e)),l=Ge(l,[["exit",f,e],t[a-2],t[a-1],["exit",c,e]]),l=Ge(l,t.slice(a+1)),l=Ge(l,[["exit",u,e]]),Ue(t,s,t.length,l),t}i(vz,"resolveToLabelEnd");function Sz(t,e,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()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelEnd"),u):r(h)}function u(h){return h===40?t.attempt(xz,f,a?f:p)(h):h===91?t.attempt(yz,f,a?c:p)(h):a?f(h):p(h)}function c(h){return t.attempt(wz,f,p)(h)}function f(h){return e(h)}function p(h){return s._balanced=!0,r(h)}}i(Sz,"tokenizeLabelEnd");function kz(t,e,r){return n;function n(p){return t.enter("resource"),t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),o}function o(p){return me(p)?Mi(t,s)(p):s(p)}function s(p){return p===41?f(p):Yf(t,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return me(p)?Mi(t,u)(p):f(p)}function l(p){return r(p)}function u(p){return p===34||p===39||p===40?Gf(t,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):f(p)}function c(p){return me(p)?Mi(t,f)(p):f(p)}function f(p){return p===41?(t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),t.exit("resource"),e):r(p)}}i(kz,"tokenizeResource");function Tz(t,e,r){let n=this;return o;function o(l){return Vf.call(n,t,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)))?e(l):r(l)}function a(l){return r(l)}}i(Tz,"tokenizeReferenceFull");function Ez(t,e,r){return n;function n(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),o}function o(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):r(s)}}i(Ez,"tokenizeReferenceCollapsed");var Xd={name:"labelStartImage",resolveAll:Ii.resolveAll,tokenize:Dz};function Dz(t,e,r){let n=this;return o;function o(l){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(l),t.exit("labelImageMarker"),s}function s(l){return l===91?(t.enter("labelMarker"),t.consume(l),t.exit("labelMarker"),t.exit("labelImage"),a):r(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(l):e(l)}}i(Dz,"tokenizeLabelStartImage");var Zd={name:"labelStartLink",resolveAll:Ii.resolveAll,tokenize:Cz};function Cz(t,e,r){let n=this;return o;function o(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):e(a)}}i(Cz,"tokenizeLabelStartLink");var La={name:"lineEnding",tokenize:Oz};function Oz(t,e){return r;function r(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ne(t,e,"linePrefix")}}i(Oz,"tokenizeLineEnding");var _i={name:"thematicBreak",tokenize:Mz};function Mz(t,e,r){let n=0,o;return s;function s(c){return t.enter("thematicBreak"),a(c)}function a(c){return o=c,l(c)}function l(c){return c===o?(t.enter("thematicBreakSequence"),u(c)):n>=3&&(c===null||U(c))?(t.exit("thematicBreak"),e(c)):r(c)}function u(c){return c===o?(t.consume(c),n++,u):(t.exit("thematicBreakSequence"),K(c)?ne(t,l,"whitespace")(c):l(c))}}i(Mz,"tokenizeThematicBreak");var bt={continuation:{tokenize:Nz},exit:Rz,name:"list",tokenize:Pz},Iz={partial:!0,tokenize:Fz},_z={partial:!0,tokenize:Az};function Pz(t,e,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:Ma(m)){if(n.containerState.type||(n.containerState.type=d,t.enter(d,{_container:!0})),d==="listUnordered")return t.enter("listItemPrefix"),m===42||m===45?t.check(_i,r,c)(m):c(m);if(!n.interrupt||m===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),u(m)}return r(m)}function u(m){return Ma(m)&&++a<10?(t.consume(m),u):(!n.interrupt||a<2)&&(n.containerState.marker?m===n.containerState.marker:m===41||m===46)?(t.exit("listItemValue"),c(m)):r(m)}function c(m){return t.enter("listItemMarker"),t.consume(m),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||m,t.check(zr,n.interrupt?r:f,t.attempt(Iz,h,p))}function f(m){return n.containerState.initialBlankLine=!0,s++,h(m)}function p(m){return K(m)?(t.enter("listItemPrefixWhitespace"),t.consume(m),t.exit("listItemPrefixWhitespace"),h):r(m)}function h(m){return n.containerState.size=s+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(m)}}i(Pz,"tokenizeListStart");function Nz(t,e,r){let n=this;return n.containerState._closeFlow=void 0,t.check(zr,o,s);function o(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ne(t,e,"listItemIndent",n.containerState.size+1)(l)}i(o,"onBlank");function s(l){return n.containerState.furtherBlankLines||!K(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(_z,e,a)(l))}i(s,"notBlank");function a(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,ne(t,t.attempt(bt,e,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}i(a,"notInCurrentItem")}i(Nz,"tokenizeListContinuation");function Az(t,e,r){let n=this;return ne(t,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?e(s):r(s)}}i(Az,"tokenizeIndent");function Rz(t){t.exit(this.containerState.type)}i(Rz,"tokenizeListEnd");function Fz(t,e,r){let n=this;return ne(t,o,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){let a=n.events[n.events.length-1];return!K(s)&&a&&a[1].type==="listItemPrefixWhitespace"?e(s):r(s)}}i(Fz,"tokenizeListItemPrefixWhitespace");var Jf={name:"setextUnderline",resolveTo:Lz,tokenize:Bz};function Lz(t,e){let r=t.length,n,o,s;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){n=r;break}t[r][1].type==="paragraph"&&(o=r)}else t[r][1].type==="content"&&t.splice(r,1),!s&&t[r][1].type==="definition"&&(s=r);let a={type:"setextHeading",start:{...t[n][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",s?(t.splice(o,0,["enter",a,e]),t.splice(s+1,0,["exit",t[n][1],e]),t[n][1].end={...t[s][1].end}):t[n][1]=a,t.push(["exit",a,e]),t}i(Lz,"resolveToSetextUnderline");function Bz(t,e,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)?(t.enter("setextHeadingLine"),o=c,a(c)):r(c)}function a(c){return t.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===o?(t.consume(c),l):(t.exit("setextHeadingLineSequence"),K(c)?ne(t,u,"lineSuffix")(c):u(c))}function u(c){return c===null||U(c)?(t.exit("setextHeadingLine"),e(c)):r(c)}}i(Bz,"tokenizeSetextUnderline");var zz={tokenize:Yz,partial:!0};function eg(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:$z,continuation:{tokenize:Uz},exit:qz}},text:{91:{name:"gfmFootnoteCall",tokenize:Wz},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:jz,resolveTo:Hz}}}}i(eg,"gfmFootnote");function jz(t,e,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):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(u),t.exit("gfmFootnoteCallLabelMarker"),e(u))}}i(jz,"tokenizePotentialGfmFootnoteCall");function Hz(t,e){let r=t.length,n;for(;r--;)if(t[r][1].type==="labelImage"&&t[r][0]==="enter"){n=t[r][1];break}t[r+1][1].type="data",t[r+3][1].type="gfmFootnoteCallLabelMarker";let o={type:"gfmFootnoteCall",start:Object.assign({},t[r+3][1].start),end:Object.assign({},t[t.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},t[r+3][1].end),end:Object.assign({},t[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({},t[t.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},u=[t[r+1],t[r+2],["enter",o,e],t[r+3],t[r+4],["enter",s,e],["exit",s,e],["enter",a,e],["enter",l,e],["exit",l,e],["exit",a,e],t[t.length-2],t[t.length-1],["exit",o,e]];return t.splice(r,t.length-r+1,...u),t}i(Hz,"resolveToPotentialGfmFootnoteCall");function Wz(t,e,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s=0,a;return l;function l(p){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),u}function u(p){return p!==94?r(p):(t.enter("gfmFootnoteCallMarker"),t.consume(p),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",c)}function c(p){if(s>999||p===93&&!a||p===null||p===91||me(p))return r(p);if(p===93){t.exit("chunkString");let h=t.exit("gfmFootnoteCallString");return o.includes(He(n.sliceSerialize(h)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):r(p)}return me(p)||(a=!0),s++,t.consume(p),p===92?f:c}function f(p){return p===91||p===92||p===93?(t.consume(p),s++,c):c(p)}}i(Wz,"tokenizeGfmFootnoteCall");function $z(t,e,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s,a=0,l;return u;function u(d){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(d),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(d){return d===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(d),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",f):r(d)}function f(d){if(a>999||d===93&&!l||d===null||d===91||me(d))return r(d);if(d===93){t.exit("chunkString");let g=t.exit("gfmFootnoteDefinitionLabelString");return s=He(n.sliceSerialize(g)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(d),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),h}return me(d)||(l=!0),a++,t.consume(d),d===92?p:f}function p(d){return d===91||d===92||d===93?(t.consume(d),a++,f):f(d)}function h(d){return d===58?(t.enter("definitionMarker"),t.consume(d),t.exit("definitionMarker"),o.includes(s)||o.push(s),ne(t,m,"gfmFootnoteDefinitionWhitespace")):r(d)}function m(d){return e(d)}}i($z,"tokenizeDefinitionStart");function Uz(t,e,r){return t.check(zr,e,t.attempt(zz,e,r))}i(Uz,"tokenizeDefinitionContinuation");function qz(t){t.exit("gfmFootnoteDefinition")}i(qz,"gfmFootnoteDefinitionEnd");function Yz(t,e,r){let n=this;return ne(t,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?e(s):r(s)}}i(Yz,"tokenizeIndent");var Vz={}.hasOwnProperty,Gz={};function LT(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}i(LT,"defaultBackLabel");function tg(t){let e=t||Gz,r=e.label||"Footnotes",n=e.labelTagName||"h2",o=e.labelAttributes===null||e.labelAttributes===void 0?'class="sr-only"':e.labelAttributes,s=e.backLabel||LT,a=e.clobberPrefix===null||e.clobberPrefix===void 0?"user-content-":e.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={}),Vz.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(w){return x=!0," "+g+w})),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(tg,"gfmFootnoteHtml");function rg(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}i(rg,"gfmStrikethroughHtml");function ng(t){let r=(t||{}).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&&Ue(h,h.length,0,Pn(m,a.slice(c+1,u),l)),Ue(h,h.length,0,[["exit",p,l],["enter",a[u][1],l],["exit",a[u][1],l],["exit",f,l]]),Ue(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=Qr(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"),w=Qr(d);return x._open=!w||w===2&&!!g,x._close=!g||g===2&&!!w,l(d)}}i(s,"tokenizeStrikethrough")}i(ng,"gfmStrikethrough");var ig={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function og(){return{enter:{table(t){let e=t._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",e)},tableBody(){this.tag("<tbody>")},tableData(){let t=this.getData("tableAlign"),e=this.getData("tableColumn"),r=ig[t[e]];r===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+r+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){let t=this.getData("tableAlign"),e=this.getData("tableColumn"),r=ig[t[e]];this.lineEndingIfNeeded(),this.tag("<th"+r+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(t){let e=this.sliceSerialize(t);this.getData("tableAlign")&&(e=e.replace(/\\([\\|])/g,Jz)),this.raw(this.encode(e))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){let t=this.getData("tableAlign"),e=this.getData("tableColumn");e in t?(this.tag("</td>"),this.setData("tableColumn",e+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){let t=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",t+1)},tableRow(){let t=this.getData("tableAlign"),e=this.getData("tableColumn");for(;e<t.length;)this.lineEndingIfNeeded(),this.tag("<td"+ig[t[e]]+"></td>"),e++;this.setData("tableColumn",e),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}i(og,"gfmTableHtml");function Jz(t,e){return e==="|"?e:t}i(Jz,"replace");var Qf=class{static{i(this,"EditMap")}constructor(){this.map=[]}add(e,r,n){Qz(this,e,r,n)}consume(e){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(e.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),e.length=this.map[r][0];n.push(e.slice()),e.length=0;let o=n.pop();for(;o;){for(let s of o)e.push(s);o=n.pop()}this.map.length=0}};function Qz(t,e,r,n){let o=0;if(!(r===0&&n.length===0)){for(;o<t.map.length;){if(t.map[o][0]===e){t.map[o][1]+=r,t.map[o][2].push(...n);return}o+=1}t.map.push([e,r,n])}}i(Qz,"addImplementation");function BT(t,e){let r=!1,n=[];for(;e<t.length;){let o=t[e];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&n.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[e-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);e+=1}return n}i(BT,"gfmTableAlign");function sg(){return{flow:{null:{name:"table",tokenize:Kz,resolveAll:Xz}}}}i(sg,"gfmTable");function Kz(t,e,r){let n=this,o=0,s=0,a;return l;function l(I){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 $=De>-1?n.events[De][1].type:null,_=$==="tableHead"||$==="tableRow"?O:u;return _===O&&n.parser.lazy[n.now().line]?r(I):_(I)}function u(I){return t.enter("tableHead"),t.enter("tableRow"),c(I)}function c(I){return I===124||(a=!0,s+=1),f(I)}function f(I){return I===null?r(I):U(I)?s>1?(s=0,n.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(I),t.exit("lineEnding"),m):r(I):K(I)?ne(t,f,"whitespace")(I):(s+=1,a&&(a=!1,o+=1),I===124?(t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),a=!0,f):(t.enter("data"),p(I)))}function p(I){return I===null||I===124||me(I)?(t.exit("data"),f(I)):(t.consume(I),I===92?h:p)}function h(I){return I===92||I===124?(t.consume(I),p):p(I)}function m(I){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(I):(t.enter("tableDelimiterRow"),a=!1,K(I)?ne(t,d,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):d(I))}function d(I){return I===45||I===58?x(I):I===124?(a=!0,t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),g):H(I)}function g(I){return K(I)?ne(t,x,"whitespace")(I):x(I)}function x(I){return I===58?(s+=1,a=!0,t.enter("tableDelimiterMarker"),t.consume(I),t.exit("tableDelimiterMarker"),w):I===45?(s+=1,w(I)):I===null||U(I)?q(I):H(I)}function w(I){return I===45?(t.enter("tableDelimiterFiller"),T(I)):H(I)}function T(I){return I===45?(t.consume(I),T):I===58?(a=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(I),t.exit("tableDelimiterMarker"),E):(t.exit("tableDelimiterFiller"),E(I))}function E(I){return K(I)?ne(t,q,"whitespace")(I):q(I)}function q(I){return I===124?d(I):I===null||U(I)?!a||o!==s?H(I):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(I)):H(I)}function H(I){return r(I)}function O(I){return t.enter("tableRow"),j(I)}function j(I){return I===124?(t.enter("tableCellDivider"),t.consume(I),t.exit("tableCellDivider"),j):I===null||U(I)?(t.exit("tableRow"),e(I)):K(I)?ne(t,j,"whitespace")(I):(t.enter("data"),X(I))}function X(I){return I===null||I===124||me(I)?(t.exit("data"),j(I)):(t.consume(I),I===92?Y:X)}function Y(I){return I===92||I===124?(t.consume(I),X):X(I)}}i(Kz,"tokenizeTable");function Xz(t,e){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 Qf;for(;++r<t.length;){let m=t[r],d=m[1];m[0]==="enter"?d.type==="tableHead"?(l=!1,u!==0&&(zT(h,e,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,e]])):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,e]])),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=Kf(h,e,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=Kf(h,e,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=Kf(h,e,s,o,r,p)):a[1]!==0&&(p=Kf(h,e,a,o,r,p)),o=0):o&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(a[3]=r)}for(u!==0&&zT(h,e,u,c,f),h.consume(e.events),r=-1;++r<e.events.length;){let m=e.events[r];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=BT(e.events,r))}return t}i(Xz,"resolveTable");function Kf(t,e,r,n,o,s){let a=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";r[0]!==0&&(s.end=Object.assign({},cs(e.events,r[0])),t.add(r[0],0,[["exit",s,e]]));let u=cs(e.events,r[1]);if(s={type:a,start:Object.assign({},u),end:Object.assign({},u)},t.add(r[1],0,[["enter",s,e]]),r[2]!==0){let c=cs(e.events,r[2]),f=cs(e.events,r[3]),p={type:l,start:Object.assign({},c),end:Object.assign({},f)};if(t.add(r[2],0,[["enter",p,e]]),n!==2){let h=e.events[r[2]],m=e.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;t.add(d,g,[])}}t.add(r[3]+1,0,[["exit",p,e]])}return o!==void 0&&(s.end=Object.assign({},cs(e.events,o)),t.add(o,0,[["exit",s,e]]),s=void 0),s}i(Kf,"flushCell");function zT(t,e,r,n,o){let s=[],a=cs(e.events,r);o&&(o.end=Object.assign({},a),s.push(["exit",o,e])),n.end=Object.assign({},a),s.push(["exit",n,e]),t.add(r+1,0,s)}i(zT,"flushTableEnd");function cs(t,e){let r=t[e],n=r[0]==="enter"?"start":"end";return r[1][n]}i(cs,"getPoint");var jT=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,Zz=new RegExp("^"+jT.source,"i");function ag(){return{exit:{htmlFlowData(t){HT.call(this,t,jT)},htmlTextData(t){HT.call(this,t,Zz)}}}}i(ag,"gfmTagfilterHtml");function HT(t,e){let r=this.sliceSerialize(t);this.options.allowDangerousHtml&&(r=r.replace(e,"&lt;$1$2")),this.raw(this.encode(r))}i(HT,"exitHtmlData");function lg(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}i(lg,"gfmTaskListItemHtml");var ej={name:"tasklistCheck",tokenize:tj};function ug(){return{text:{91:ej}}}i(ug,"gfmTaskListItem");function tj(t,e,r){let n=this;return o;function o(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),s)}function s(u){return me(u)?(t.enter("taskListCheckValueUnchecked"),t.consume(u),t.exit("taskListCheckValueUnchecked"),a):u===88||u===120?(t.enter("taskListCheckValueChecked"),t.consume(u),t.exit("taskListCheckValueChecked"),a):r(u)}function a(u){return u===93?(t.enter("taskListCheckMarker"),t.consume(u),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),l):r(u)}function l(u){return U(u)?e(u):K(u)?t.check({tokenize:rj},e,r)(u):r(u)}}i(tj,"tokenizeTasklistCheck");function rj(t,e,r){return ne(t,n,"whitespace");function n(o){return o===null?r(o):e(o)}}i(rj,"spaceThenNonSpace");function WT(t){return Bf([jd(),eg(),ng(t),sg(),ug()])}i(WT,"gfm");function zWe(t){return zf([Wd(),tg(t),rg(),og(),ag(),lg()])}i(zWe,"gfmHtml");var nj={};function fs(t){let e=this,r=t||nj,n=e.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(WT(r)),s.push(Rd()),a.push(Fd(r))}i(fs,"remarkGfm");var $T={}.hasOwnProperty,UT=/^(https?|ircs?|mailto|xmpp)$/i,ij=/^https?$/i;function cg(t){let e=t||{},r=!0,n={},o=[[]],s=[],a=[],u=zf([{enter:{blockQuote:F,codeFenced:ue,codeFencedFenceInfo:x,codeFencedFenceMeta:x,codeIndented:be,codeText:kt,content:mr,definition:Ie,definitionDestinationString:Ot,definitionLabelString:x,definitionTitleString:x,emphasis:Un,htmlFlow:zt,htmlText:Gt,image:Ae,label:x,link:$e,listItemMarker:De,listItemValue:I,listOrdered:X,listUnordered:Y,paragraph:V,reference:x,resource:C,resourceDestinationString:M,resourceTitleString:x,setextHeading:Vt,strong:qn},exit:{atxHeading:Le,atxHeadingSequence:Bt,autolinkEmail:vO,autolinkProtocol:bO,blockQuote:B,characterEscapeValue:z,characterReferenceMarkerHexadecimal:ay,characterReferenceMarkerNumeric:ay,characterReferenceValue:wO,codeFenced:k,codeFencedFence:de,codeFencedFenceInfo:b,codeFencedFenceMeta:j,codeFlowValue:ce,codeIndented:k,codeText:nn,codeTextData:z,data:z,definition:nr,definitionDestinationString:tt,definitionLabelString:ve,definitionTitleString:St,emphasis:ir,hardBreakEscape:Se,hardBreakTrailing:Se,htmlFlow:gr,htmlFlowData:z,htmlText:gr,htmlTextData:z,image:Pe,label:D,labelText:Lt,lineEnding:ie,link:Pe,listOrdered:$,listUnordered:_,paragraph:Q,reference:j,referenceString:S,resource:j,resourceDestinationString:R,resourceTitleString:ee,setextHeading:P,setextHeadingLineSequence:dr,setextHeadingText:Mt,strong:xO,thematicBreak:yO}},...e.htmlExtensions||[]]),c={definitions:n,tightStack:a},f={buffer:x,encode:O,getData:g,lineEndingIfNeeded:H,options:e,raw:E,resume:w,setData:d,tag:T},p=e.defaultLineEnding;return h;function h(W){let te=-1,ct=0,or=[],xr=[],Wr=[];for(;++te<W.length;)!p&&(W[te][1].type==="lineEnding"||W[te][1].type==="lineEndingBlank")&&(p=W[te][2].sliceSerialize(W[te][1])),(W[te][1].type==="listOrdered"||W[te][1].type==="listUnordered")&&(W[te][0]==="enter"?or.push(te):m(W.slice(or.pop(),te))),W[te][1].type==="definition"&&(W[te][0]==="enter"?(Wr=Ge(Wr,W.slice(ct,te)),ct=te):(xr=Ge(xr,W.slice(ct,te+1)),ct=te+1));xr=Ge(xr,Wr),xr=Ge(xr,W.slice(ct)),te=-1;let yr=xr;for(u.enter.null&&u.enter.null.call(f);++te<W.length;){let ly=u[yr[te][0]],uy=yr[te][1].type,cy=ly[uy];$T.call(ly,uy)&&cy&&cy.call({sliceSerialize:yr[te][2].sliceSerialize,...f},yr[te][1])}return u.exit.null&&u.exit.null.call(f),o[0].join("")}function m(W){let te=W.length,ct=0,or=0,xr=!1,Wr;for(;++ct<te;){let yr=W[ct];if(yr[1]._container)Wr=void 0,yr[0]==="enter"?or++:or--;else switch(yr[1].type){case"listItemPrefix":{yr[0]==="exit"&&(Wr=!0);break}case"linePrefix":break;case"lineEndingBlank":{yr[0]==="enter"&&!or&&(Wr?Wr=void 0:xr=!0);break}default:Wr=void 0}}W[0][1]._loose=xr}function d(W,te){c[W]=te}function g(W){return c[W]}function x(){o.push([])}function w(){return o.pop().join("")}function T(W){r&&(d("lastWasTag",!0),o[o.length-1].push(W))}function E(W){d("lastWasTag"),o[o.length-1].push(W)}function q(){E(p||`
76
+ `)}function H(){let W=o[o.length-1],te=W[W.length-1],ct=te?te.charCodeAt(te.length-1):null;ct===10||ct===13||ct===null||q()}function O(W){return g("ignoreEncode")?W:jf(W)}function j(){w()}function X(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 I(W){if(g("expectFirstItem")){let te=Number.parseInt(this.sliceSerialize(W),10);te!==1&&T(' start="'+O(String(te))+'"')}}function De(){g("expectFirstItem")?T(">"):N(),H(),T("<li>"),d("expectFirstItem"),d("lastWasTag")}function $(){N(),a.pop(),q(),T("</ol>")}function _(){N(),a.pop(),q(),T("</ul>")}function N(){g("lastWasTag")&&!g("slurpAllLineEndings")&&H(),T("</li>"),d("slurpAllLineEndings")}function F(){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 Q(){a[a.length-1]?d("slurpAllLineEndings",!0):T("</p>")}function ue(){H(),T("<pre><code"),d("fencesCount",0)}function b(){let W=w();T(' class="language-'+W+'"')}function de(){let W=g("fencesCount")||0;W||(T(">"),d("slurpOneLineEnding",!0)),d("fencesCount",W+1)}function be(){H(),T("<pre><code>")}function k(){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 Ae(){s.push({image:!0}),r=void 0}function $e(){s.push({})}function Lt(W){s[s.length-1].labelId=this.sliceSerialize(W)}function D(){s[s.length-1].label=w()}function S(W){s[s.length-1].referenceId=this.sliceSerialize(W)}function C(){x(),s[s.length-1].destination=""}function M(){x(),d("ignoreEncode",!0)}function R(){s[s.length-1].destination=w(),d("ignoreEncode")}function ee(){s[s.length-1].title=w()}function Pe(){let W=s.length-1,te=s[W],ct=te.referenceId||te.labelId,or=te.destination===void 0?n[He(ct)]:te;for(r=!0;W--;)if(s[W].image){r=void 0;break}te.image?(T('<img src="'+Br(or.destination,e.allowDangerousProtocol?void 0:ij)+'" alt="'),E(te.label),T('"')):T('<a href="'+Br(or.destination,e.allowDangerousProtocol?void 0:UT)+'"'),T(or.title?' title="'+or.title+'"':""),te.image?T(" />"):(T(">"),E(te.label),T("</a>")),s.pop()}function Ie(){x(),s.push({})}function ve(W){w(),s[s.length-1].labelId=this.sliceSerialize(W)}function Ot(){x(),d("ignoreEncode",!0)}function tt(){s[s.length-1].destination=w(),d("ignoreEncode")}function St(){s[s.length-1].title=w()}function nr(){let W=s[s.length-1],te=He(W.labelId);w(),$T.call(n,te)||(n[te]=s[s.length-1]),s.pop()}function mr(){d("slurpAllLineEndings",!0)}function Bt(W){g("headingRank")||(d("headingRank",this.sliceSerialize(W).length),H(),T("<h"+g("headingRank")+">"))}function Vt(){x(),d("slurpAllLineEndings")}function Mt(){d("slurpAllLineEndings",!0)}function Le(){T("</h"+g("headingRank")+">"),d("headingRank")}function dr(W){d("headingRank",this.sliceSerialize(W).charCodeAt(0)===61?1:2)}function P(){let W=w();H(),T("<h"+g("headingRank")+">"),E(W),T("</h"+g("headingRank")+">"),d("slurpAllLineEndings"),d("headingRank")}function z(W){E(O(this.sliceSerialize(W)))}function ie(W){if(!g("slurpAllLineEndings")){if(g("slurpOneLineEnding")){d("slurpOneLineEnding");return}if(g("inCodeText")){E(" ");return}E(O(this.sliceSerialize(W)))}}function ce(W){E(O(this.sliceSerialize(W))),d("flowCodeSeenData",!0)}function Se(){T("<br />")}function zt(){H(),Gt()}function gr(){d("ignoreEncode")}function Gt(){e.allowDangerousHtml&&d("ignoreEncode",!0)}function Un(){T("<em>")}function qn(){T("<strong>")}function kt(){d("inCodeText",!0),T("<code>")}function nn(){d("inCodeText"),T("</code>")}function ir(){T("</em>")}function xO(){T("</strong>")}function yO(){H(),T("<hr />")}function ay(W){d("characterReferenceType",W.type)}function wO(W){let te=this.sliceSerialize(W),ct=g("characterReferenceType")?us(te,g("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):_n(te);E(O(ct)),d("characterReferenceType")}function bO(W){let te=this.sliceSerialize(W);T('<a href="'+Br(te,e.allowDangerousProtocol?void 0:UT)+'">'),E(O(te)),T("</a>")}function vO(W){let te=this.sliceSerialize(W);T('<a href="'+Br("mailto:"+te)+'">'),E(O(te)),T("</a>")}}i(cg,"compile");var qT={tokenize:oj};function oj(t){let e=t.attempt(this.parser.constructs.contentInitial,n,o),r;return e;function n(l){if(l===null){t.consume(l);return}return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),ne(t,e,"linePrefix")}function o(l){return t.enter("paragraph"),s(l)}function s(l){let u=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,a(l)}function a(l){if(l===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(l);return}return U(l)?(t.consume(l),t.exit("chunkText"),s):(t.consume(l),a)}}i(oj,"initializeContent");var VT={tokenize:sj},YT={tokenize:aj};function sj(t){let e=this,r=[],n=0,o,s,a;return l;function l(E){if(n<r.length){let q=r[n];return e.containerState=q[1],t.attempt(q[0].continuation,u,c)(E)}return c(E)}function u(E){if(n++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,o&&T();let q=e.events.length,H=q,O;for(;H--;)if(e.events[H][0]==="exit"&&e.events[H][1].type==="chunkFlow"){O=e.events[H][1].end;break}w(n);let j=q;for(;j<e.events.length;)e.events[j][1].end={...O},j++;return Ue(e.events,H+1,0,e.events.slice(q)),e.events.length=j,c(E)}return l(E)}function c(E){if(n===r.length){if(!o)return h(E);if(o.currentConstruct&&o.currentConstruct.concrete)return d(E);e.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(YT,f,p)(E)}function f(E){return o&&T(),w(n),h(E)}function p(E){return e.parser.lazy[e.now().line]=n!==r.length,a=e.now().offset,d(E)}function h(E){return e.containerState={},t.attempt(YT,m,d)(E)}function m(E){return n++,r.push([e.currentConstruct,e.containerState]),h(E)}function d(E){if(E===null){o&&T(),w(0),t.consume(E);return}return o=o||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),g(E)}function g(E){if(E===null){x(t.exit("chunkFlow"),!0),w(0),t.consume(E);return}return U(E)?(t.consume(E),x(t.exit("chunkFlow")),n=0,e.interrupt=void 0,l):(t.consume(E),g)}function x(E,q){let H=e.sliceStream(E);if(q&&H.push(null),E.previous=s,s&&(s.next=E),s=E,o.defineSkip(E.start),o.write(H),e.parser.lazy[E.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 j=e.events.length,X=j,Y,I;for(;X--;)if(e.events[X][0]==="exit"&&e.events[X][1].type==="chunkFlow"){if(Y){I=e.events[X][1].end;break}Y=!0}for(w(n),O=j;O<e.events.length;)e.events[O][1].end={...I},O++;Ue(e.events,X+1,0,e.events.slice(j)),e.events.length=O}}function w(E){let q=r.length;for(;q-- >E;){let H=r[q];e.containerState=H[1],H[0].exit.call(e,t)}r.length=E}function T(){o.write([null]),s=void 0,o=void 0,e.containerState._closeFlow=void 0}}i(sj,"initializeDocument");function aj(t,e,r){return ne(t,t.attempt(this.parser.constructs.document,e,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}i(aj,"tokenizeContainer");var GT={tokenize:lj};function lj(t){let e=this,r=t.attempt(zr,n,t.attempt(this.parser.constructs.flowInitial,o,ne(t,t.attempt(this.parser.constructs.flow,o,t.attempt(qd,o)),"linePrefix")));return r;function n(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,r}function o(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,r}}i(lj,"initializeFlow");var KT={resolveAll:QT()},XT=JT("string"),ZT=JT("text");function JT(t){return{resolveAll:QT(t==="text"?uj:void 0),tokenize:e};function e(r){let n=this,o=this.parser.constructs[t],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(JT,"initializeFactory");function QT(t){return e;function e(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 t?t(r,n):r}}i(QT,"createResolver");function uj(t,e){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){let n=t[r-1][1],o=e.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(e._contentTypeTextTrailing&&r===t.length&&(l=0),l){let c={type:r===t.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):(t.splice(r,0,["enter",c,e],["exit",c,e]),r+=2)}r++}return t}i(uj,"resolveAllLineSuffixes");var fg={};ae(fg,{attentionMarkers:()=>xj,contentInitial:()=>fj,disable:()=>yj,document:()=>cj,flow:()=>hj,flowInitial:()=>pj,insideSpan:()=>gj,string:()=>mj,text:()=>dj});var cj={42:bt,43:bt,45:bt,48:bt,49:bt,50:bt,51:bt,52:bt,53:bt,54:bt,55:bt,56:bt,57:bt,62:Hf},fj={91:Yd},pj={[-2]:Aa,[-1]:Aa,32:Aa},hj={35:Gd,42:_i,45:[Jf,_i],60:Qd,61:Jf,95:_i,96:Uf,126:Uf},mj={38:$f,92:Wf},dj={[-5]:La,[-4]:La,[-3]:La,33:Xd,38:$f,42:Na,60:[$d,Kd],91:Zd,92:[Vd,Wf],93:Ii,95:Na,96:Ud},gj={null:[Na,KT]},xj={null:[42,95]},yj={null:[]};function eE(t,e,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(j),check:Y(X),consume:q,enter:H,exit:O,interrupt:Y(X,{interrupt:!0})},f={code:null,containerState:{},defineSkip:w,events:[],now:x,parser:t,previous:null,sliceSerialize:d,sliceStream:g,write:m},p=e.tokenize.call(f,c),h;return e.resolveAll&&s.push(e),f;function m(_){return a=Ge(a,_),T(),a[a.length-1]!==null?[]:(I(e,0),f.events=Pn(s,f.events,f),f.events)}i(m,"write");function d(_,N){return bj(g(_),N)}i(d,"sliceSerialize");function g(_){return wj(a,_)}i(g,"sliceStream");function x(){let{_bufferIndex:_,_index:N,line:F,column:B,offset:V}=n;return{_bufferIndex:_,_index:N,line:F,column:B,offset:V}}i(x,"now");function w(_){o[_.line]=_.column,$()}i(w,"defineSkip");function T(){let _;for(;n._index<a.length;){let N=a[n._index];if(typeof N=="string")for(_=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===_&&n._bufferIndex<N.length;)E(N.charCodeAt(n._bufferIndex));else E(N)}}i(T,"main");function E(_){u=void 0,h=_,p=p(_)}i(E,"go");function q(_){U(_)?(n.line++,n.column=1,n.offset+=_===-3?2:1,$()):_!==-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=_,u=!0}i(q,"consume");function H(_,N){let F=N||{};return F.type=_,F.start=x(),f.events.push(["enter",F,f]),l.push(F),F}i(H,"enter");function O(_){let N=l.pop();return N.end=x(),f.events.push(["exit",N,f]),N}i(O,"exit");function j(_,N){I(_,N.from)}i(j,"onsuccessfulconstruct");function X(_,N){N.restore()}i(X,"onsuccessfulcheck");function Y(_,N){return F;function F(B,V,Q){let ue,b,de,be;return Array.isArray(B)?Ae(B):"tokenize"in B?Ae([B]):k(B);function k(S){return C;function C(M){let R=M!==null&&S[M],ee=M!==null&&S.null,Pe=[...Array.isArray(R)?R:R?[R]:[],...Array.isArray(ee)?ee:ee?[ee]:[]];return Ae(Pe)(M)}}function Ae(S){return ue=S,b=0,S.length===0?Q:$e(S[b])}function $e(S){return C;function C(M){return be=De(),de=S,S.partial||(f.currentConstruct=S),S.name&&f.parser.constructs.disable.null.includes(S.name)?D(M):S.tokenize.call(N?Object.assign(Object.create(f),N):f,c,Lt,D)(M)}}function Lt(S){return u=!0,_(de,be),V}function D(S){return u=!0,be.restore(),++b<ue.length?$e(ue[b]):Q}}}i(Y,"constructFactory");function I(_,N){_.resolveAll&&!s.includes(_)&&s.push(_),_.resolve&&Ue(f.events,N,f.events.length-N,_.resolve(f.events.slice(N),f)),_.resolveTo&&(f.events=_.resolveTo(f.events,f))}i(I,"addResult");function De(){let _=x(),N=f.previous,F=f.currentConstruct,B=f.events.length,V=Array.from(l);return{from:B,restore:Q};function Q(){n=_,f.previous=N,f.currentConstruct=F,f.events.length=B,l=V,$()}}i(De,"store");function $(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}i($,"accountForPotentialSkip")}i(eE,"createTokenizer");function wj(t,e){let r=e.start._index,n=e.start._bufferIndex,o=e.end._index,s=e.end._bufferIndex,a;if(r===o)a=[t[r].slice(n,s)];else{if(a=t.slice(r,o),n>-1){let l=a[0];typeof l=="string"?a[0]=l.slice(n):a.shift()}s>0&&a.push(t[o].slice(0,s))}return a}i(wj,"sliceChunks");function bj(t,e){let r=-1,n=[],o;for(;++r<t.length;){let s=t[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=e?" ":" ";break}case-1:{if(!e&&o)continue;a=" ";break}default:a=String.fromCharCode(s)}o=s===-2,n.push(a)}return n.join("")}i(wj,"serializeChunks");function Ba(t){let n={constructs:Bf([fg,...(t||{}).extensions||[]]),content:o(qT),defined:[],document:o(VT),flow:o(GT),lazy:{},string:o(XT),text:o(ZT)};return n;function o(s){return a;function a(l){return eE(n,s,l)}}}i(Ba,"parse");function za(t){for(;!qf(t););return t}i(za,"postprocess");var tE=/[\0\t\n\r]/g;function ja(){let t=1,e="",r=!0,n;return o;function o(s,a,l){let u=[],c,f,p,h,m;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),p=0,e="",r&&(s.charCodeAt(0)===65279&&p++,r=void 0);p<s.length;){if(tE.lastIndex=p,c=tE.exec(s),h=c&&c.index!==void 0?c.index:s.length,m=s.charCodeAt(h),!c){e=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)),t+=h-p),m){case 0:{u.push(65533),t++;break}case 9:{for(f=Math.ceil(t/4)*4,u.push(-2);t++<f;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:n=!0,t=1}p=h+1}return l&&(n&&u.push(-5),e&&u.push(e),u.push(null)),u}}i(ja,"preprocess");function H$e(t,e,r){return typeof e!="string"&&(r=e,e=void 0),cg(r)(za(Ba(r).document().write(ja()(t,e,!0))))}i(H$e,"micromark");var rE={}.hasOwnProperty;function pg(t,e,r){return e&&typeof e=="object"&&(r=e,e=void 0),bj(r)(za(Ba(r).document().write(ja()(t,e,!0))))}i(pg,"fromMarkdown");function bj(t){let e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(rr),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:s(ve),blockQuote:s(M),characterEscape:Y,characterReference:Y,codeFenced:s(R),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(R,a),codeText:s(ee,a),codeTextData:Y,data:Y,codeFlowValue:Y,definition:s(Pe),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(Ie),hardBreakEscape:s(Ot),hardBreakTrailing:s(Ot),htmlFlow:s(tt,a),htmlFlowData:Y,htmlText:s(tt,a),htmlTextData:Y,image:s(St),label:a,link:s(rr),listItem:s(Bt),listItemValue:h,listOrdered:s(hr,p),listUnordered:s(hr),paragraph:s(Yt),reference:k,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(ve),strong:s(Mt),thematicBreak:s(mr)},exit:{atxHeading:u(),atxHeadingSequence:H,autolink:u(),autolinkEmail:C,autolinkProtocol:S,blockQuote:u(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:$e,characterReferenceMarkerNumeric:$e,characterReferenceValue:Lt,characterReference:D,codeFenced:u(x),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:d,codeFlowValue:I,codeIndented:u(w),codeText:u(F),codeTextData:I,data:I,definition:u(),definitionDestinationString:q,definitionLabelString:T,definitionTitleString:E,emphasis:u(),hardBreakEscape:u($),hardBreakTrailing:u($),htmlFlow:u(_),htmlFlowData:I,htmlText:u(N),htmlTextData:I,image:u(V),label:ue,labelText:Q,lineEnding:De,link:u(B),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Ae,resourceDestinationString:b,resourceTitleString:de,resource:be,setextHeading:u(X),setextHeadingLineSequence:j,setextHeadingText:O,strong:u(),thematicBreak:u()}};nE(e,(t||{}).mdastExtensions||[]);let r={};return n;function n(P){let z={type:"root",children:[]},ie={stack:[z],tokenStack:[],config:e,enter:l,exit:c,buffer:a,resume:f,data:r},ce=[],Se=-1;for(;++Se<P.length;)if(P[Se][1].type==="listOrdered"||P[Se][1].type==="listUnordered")if(P[Se][0]==="enter")ce.push(Se);else{let zt=ce.pop();Se=o(P,zt,Se)}for(Se=-1;++Se<P.length;){let zt=e[P[Se][0]];rE.call(zt,P[Se][1].type)&&zt[P[Se][1].type].call(Object.assign({sliceSerialize:P[Se][2].sliceSerialize},ie),P[Se][1])}if(ie.tokenStack.length>0){let zt=ie.tokenStack[ie.tokenStack.length-1];(zt[1]||iE).call(ie,void 0,zt[0])}for(z.position={start:Nn(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:Nn(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},Se=-1;++Se<e.transforms.length;)z=e.transforms[Se](z)||z;return z}function o(P,z,ie){let ce=z-1,Se=-1,zt=!1,dr,Vt,Un,qn;for(;++ce<=ie;){let kt=P[ce];switch(kt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{kt[0]==="enter"?Se++:Se--,qn=void 0;break}case"lineEndingBlank":{kt[0]==="enter"&&(dr&&!qn&&!Se&&!Un&&(Un=ce),qn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:qn=void 0}if(!Se&&kt[0]==="enter"&&kt[1].type==="listItemPrefix"||Se===-1&&kt[0]==="exit"&&(kt[1].type==="listUnordered"||kt[1].type==="listOrdered")){if(dr){let nn=ce;for(Vt=void 0;nn--;){let nr=P[nn];if(nr[1].type==="lineEnding"||nr[1].type==="lineEndingBlank"){if(nr[0]==="exit")continue;Vt&&(P[Vt][1].type="lineEndingBlank",zt=!0),nr[1].type="lineEnding",Vt=nn}else if(!(nr[1].type==="linePrefix"||nr[1].type==="blockQuotePrefix"||nr[1].type==="blockQuotePrefixWhitespace"||nr[1].type==="blockQuoteMarker"||nr[1].type==="listItemIndent"))break}Un&&(!Vt||Un<Vt)&&(dr._spread=!0),dr.end=Object.assign({},Vt?P[Vt][1].start:kt[1].end),P.splice(Vt||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,P.splice(ce,0,["enter",nn,kt[2]]),ce++,ie++,Un=void 0,qn=!0}}}return P[z][1]._spread=zt,ie}function s(P,z){return ie;function ie(ce){l.call(this,P(ce),ce),z&&z.call(this,ce)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(P,z,ie){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([z,ie||void 0]),P.position={start:Nn(z.start),end:void 0}}function u(P){return z;function z(ie){P&&P.call(this,ie),c.call(this,ie)}}function c(P,z){let ie=this.stack.pop(),ce=this.tokenStack.pop();if(ce)ce[0].type!==P.type&&(z?z.call(this,P,ce[0]):(ce[1]||iE).call(this,P,ce[0]));else throw new Error("Cannot close `"+P.type+"` ("+Mn({start:P.start,end:P.end})+"): it\u2019s not open");ie.position.end=Nn(P.end)}function f(){return Ei(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(P){if(this.data.expectingFirstListItemValue){let z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function m(){let P=this.resume(),z=this.stack[this.stack.length-1];z.lang=P}function d(){let P=this.resume(),z=this.stack[this.stack.length-1];z.meta=P}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){let P=this.resume(),z=this.stack[this.stack.length-1];z.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){let P=this.resume(),z=this.stack[this.stack.length-1];z.value=P.replace(/(\r?\n|\r)$/g,"")}function T(P){let z=this.resume(),ie=this.stack[this.stack.length-1];ie.label=z,ie.identifier=He(this.sliceSerialize(P)).toLowerCase()}function E(){let P=this.resume(),z=this.stack[this.stack.length-1];z.title=P}function q(){let P=this.resume(),z=this.stack[this.stack.length-1];z.url=P}function H(P){let z=this.stack[this.stack.length-1];if(!z.depth){let ie=this.sliceSerialize(P).length;z.depth=ie}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function j(P){let z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function X(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(P){let ie=this.stack[this.stack.length-1].children,ce=ie[ie.length-1];(!ce||ce.type!=="text")&&(ce=Le(),ce.position={start:Nn(P.start),end:void 0},ie.push(ce)),this.stack.push(ce)}function I(P){let z=this.stack.pop();z.value+=this.sliceSerialize(P),z.position.end=Nn(P.end)}function De(P){let z=this.stack[this.stack.length-1];if(this.data.atHardBreak){let ie=z.children[z.children.length-1];ie.position.end=Nn(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(z.type)&&(Y.call(this,P),I.call(this,P))}function $(){this.data.atHardBreak=!0}function _(){let P=this.resume(),z=this.stack[this.stack.length-1];z.value=P}function N(){let P=this.resume(),z=this.stack[this.stack.length-1];z.value=P}function F(){let P=this.resume(),z=this.stack[this.stack.length-1];z.value=P}function B(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=z,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function V(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=z,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function Q(P){let z=this.sliceSerialize(P),ie=this.stack[this.stack.length-2];ie.label=Lf(z),ie.identifier=He(z).toLowerCase()}function ue(){let P=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=P.children;ie.children=ce}else ie.alt=z}function b(){let P=this.resume(),z=this.stack[this.stack.length-1];z.url=P}function de(){let P=this.resume(),z=this.stack[this.stack.length-1];z.title=P}function be(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function Ae(P){let z=this.resume(),ie=this.stack[this.stack.length-1];ie.label=z,ie.identifier=He(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function $e(P){this.data.characterReferenceType=P.type}function Lt(P){let z=this.sliceSerialize(P),ie=this.data.characterReferenceType,ce;ie?(ce=us(z,ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ce=_n(z);let Se=this.stack[this.stack.length-1];Se.value+=ce}function D(P){let z=this.stack.pop();z.position.end=Nn(P.end)}function S(P){I.call(this,P);let z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(P)}function C(P){I.call(this,P);let z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(P)}function M(){return{type:"blockquote",children:[]}}function R(){return{type:"code",lang:null,meta:null,value:""}}function ee(){return{type:"inlineCode",value:""}}function Pe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ie(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function Ot(){return{type:"break"}}function tt(){return{type:"html",value:""}}function St(){return{type:"image",title:null,url:"",alt:null}}function rr(){return{type:"link",title:null,url:"",children:[]}}function hr(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function Bt(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function Yt(){return{type:"paragraph",children:[]}}function Mt(){return{type:"strong",children:[]}}function Le(){return{type:"text",value:""}}function mr(){return{type:"thematicBreak"}}}i(bj,"compiler");function Nn(t){return{line:t.line,column:t.column,offset:t.offset}}i(Nn,"point");function nE(t,e){let r=-1;for(;++r<e.length;){let n=e[r];Array.isArray(n)?nE(t,n):vj(t,n)}}i(nE,"configure");function vj(t,e){let r;for(r in e)if(rE.call(e,r))switch(r){case"canContainEols":{let n=e[r];n&&t[r].push(...n);break}case"transforms":{let n=e[r];n&&t[r].push(...n);break}case"enter":case"exit":{let n=e[r];n&&Object.assign(t[r],n);break}}}i(vj,"extension");function iE(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Mn({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Mn({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Mn({start:e.start,end:e.end})+") is still open")}i(iE,"defaultOnError");function ps(t){let e=this;e.parser=r;function r(n){return pg(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}i(r,"parser")}i(ps,"remarkParse");var sE=jt(oE(),1),Ha=Object.assign(Pi(Error),{eval:Pi(EvalError),range:Pi(RangeError),reference:Pi(ReferenceError),syntax:Pi(SyntaxError),type:Pi(TypeError),uri:Pi(URIError)});function Pi(t){return e.displayName=t.displayName||t.name,e;function e(r,...n){let o=r&&(0,sE.default)(r,...n);return new t(o)}i(e,"FormattedError")}i(Pi,"create");var Xf={}.hasOwnProperty,aE={yaml:"-",toml:"+"};function hs(t){let e=[],r=-1,n=Array.isArray(t)?t:t?[t]:["yaml"];for(;++r<n.length;)e[r]=Sj(n[r]);return e}i(hs,"toMatters");function Sj(t){let e=t;if(typeof e=="string"){if(!Xf.call(aE,e))throw Ha("Missing matter definition for `%s`",e);e={type:e,marker:aE[e]}}else if(typeof e!="object")throw Ha("Expected matter to be an object, not `%j`",e);if(!Xf.call(e,"type"))throw Ha("Missing `type` in matter `%j`",e);if(!Xf.call(e,"fence")&&!Xf.call(e,"marker"))throw Ha("Missing `marker` or `fence` in matter `%j`",e);return e}i(Sj,"matter");function dg(t){let e=hs(t),r={},n=-1;for(;++n<e.length;){let o=e[n],s=mg(o,"open").charCodeAt(0),a=kj(o),l=r[s];Array.isArray(l)?l.push(a):r[s]=[a]}return{flow:r}}i(dg,"frontmatter");function kj(t){let e=t.anywhere,r=t.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(j){let X=d.now();return X.column===1&&(X.line===1||e)&&(l=mg(t,"open"),u=0,j===l.charCodeAt(u))?(p.enter(r),p.enter(n),p.enter(o),x(j)):m(j)}function x(j){return u===l.length?(p.exit(o),K(j)?(p.enter("whitespace"),w(j)):T(j)):j===l.charCodeAt(u++)?(p.consume(j),x):m(j)}function w(j){return K(j)?(p.consume(j),w):(p.exit("whitespace"),T(j))}function T(j){return U(j)?(p.exit(n),p.enter("lineEnding"),p.consume(j),p.exit("lineEnding"),l=mg(t,"close"),u=0,p.attempt(a,O,E)):m(j)}function E(j){return j===null||U(j)?H(j):(p.enter(s),q(j))}function q(j){return j===null||U(j)?(p.exit(s),H(j)):(p.consume(j),q)}function H(j){return j===null?m(j):(p.enter("lineEnding"),p.consume(j),p.exit("lineEnding"),p.attempt(a,O,E))}function O(j){return p.exit(r),h(j)}}function f(p,h,m){let d=0;return g;function g(E){return E===l.charCodeAt(d)?(p.enter(n),p.enter(o),x(E)):m(E)}function x(E){return d===l.length?(p.exit(o),K(E)?(p.enter("whitespace"),w(E)):T(E)):E===l.charCodeAt(d++)?(p.consume(E),x):m(E)}function w(E){return K(E)?(p.consume(E),w):(p.exit("whitespace"),T(E))}function T(E){return E===null||U(E)?(p.exit(n),h(E)):m(E)}}}i(kj,"createConstruct");function mg(t,e){return t.marker?lE(t.marker,e).repeat(3):lE(t.fence,e)}i(mg,"fence");function lE(t,e){return typeof t=="string"?t:t[e]}i(lE,"pick");function xg(t){let e=hs(t),r={},n={},o=-1;for(;++o<e.length;){let s=e[o];r[s.type]=Tj(s),n[s.type]=Ej,n[s.type+"Value"]=Dj}return{enter:r,exit:n}}i(xg,"frontmatterFromMarkdown");function Tj(t){return e;function e(r){this.enter({type:t.type,value:""},r),this.buffer()}}i(Tj,"opener");function Ej(t){let e=this.resume(),r=this.stack[this.stack.length-1];"value"in r,this.exit(t),r.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}i(Ej,"close");function Dj(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}i(Dj,"value");function yg(t){let e=[],r={},n=hs(t),o=-1;for(;++o<n.length;){let s=n[o];r[s.type]=Cj(s);let a=gg(s,"open");e.push({atBreak:!0,character:a.charAt(0),after:Yn(a.charAt(1))})}return{unsafe:e,handlers:r}}i(yg,"frontmatterToMarkdown");function Cj(t){let e=gg(t,"open"),r=gg(t,"close");return n;function n(o){return e+(o.value?`
78
+ `;break}case-2:{a=e?" ":" ";break}case-1:{if(!e&&o)continue;a=" ";break}default:a=String.fromCharCode(s)}o=s===-2,n.push(a)}return n.join("")}i(bj,"serializeChunks");function Ba(t){let n={constructs:Bf([fg,...(t||{}).extensions||[]]),content:o(qT),defined:[],document:o(VT),flow:o(GT),lazy:{},string:o(XT),text:o(ZT)};return n;function o(s){return a;function a(l){return eE(n,s,l)}}}i(Ba,"parse");function za(t){for(;!qf(t););return t}i(za,"postprocess");var tE=/[\0\t\n\r]/g;function ja(){let t=1,e="",r=!0,n;return o;function o(s,a,l){let u=[],c,f,p,h,m;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),p=0,e="",r&&(s.charCodeAt(0)===65279&&p++,r=void 0);p<s.length;){if(tE.lastIndex=p,c=tE.exec(s),h=c&&c.index!==void 0?c.index:s.length,m=s.charCodeAt(h),!c){e=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)),t+=h-p),m){case 0:{u.push(65533),t++;break}case 9:{for(f=Math.ceil(t/4)*4,u.push(-2);t++<f;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:n=!0,t=1}p=h+1}return l&&(n&&u.push(-5),e&&u.push(e),u.push(null)),u}}i(ja,"preprocess");function U$e(t,e,r){return typeof e!="string"&&(r=e,e=void 0),cg(r)(za(Ba(r).document().write(ja()(t,e,!0))))}i(U$e,"micromark");var rE={}.hasOwnProperty;function pg(t,e,r){return e&&typeof e=="object"&&(r=e,e=void 0),vj(r)(za(Ba(r).document().write(ja()(t,e,!0))))}i(pg,"fromMarkdown");function vj(t){let e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(nr),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:s(ve),blockQuote:s(M),characterEscape:Y,characterReference:Y,codeFenced:s(R),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(R,a),codeText:s(ee,a),codeTextData:Y,data:Y,codeFlowValue:Y,definition:s(Pe),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(Ie),hardBreakEscape:s(Ot),hardBreakTrailing:s(Ot),htmlFlow:s(tt,a),htmlFlowData:Y,htmlText:s(tt,a),htmlTextData:Y,image:s(St),label:a,link:s(nr),listItem:s(Bt),listItemValue:h,listOrdered:s(mr,p),listUnordered:s(mr),paragraph:s(Vt),reference:k,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(ve),strong:s(Mt),thematicBreak:s(dr)},exit:{atxHeading:u(),atxHeadingSequence:H,autolink:u(),autolinkEmail:C,autolinkProtocol:S,blockQuote:u(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:$e,characterReferenceMarkerNumeric:$e,characterReferenceValue:Lt,characterReference:D,codeFenced:u(x),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:d,codeFlowValue:I,codeIndented:u(w),codeText:u(F),codeTextData:I,data:I,definition:u(),definitionDestinationString:q,definitionLabelString:T,definitionTitleString:E,emphasis:u(),hardBreakEscape:u($),hardBreakTrailing:u($),htmlFlow:u(_),htmlFlowData:I,htmlText:u(N),htmlTextData:I,image:u(V),label:ue,labelText:Q,lineEnding:De,link:u(B),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Ae,resourceDestinationString:b,resourceTitleString:de,resource:be,setextHeading:u(X),setextHeadingLineSequence:j,setextHeadingText:O,strong:u(),thematicBreak:u()}};nE(e,(t||{}).mdastExtensions||[]);let r={};return n;function n(P){let z={type:"root",children:[]},ie={stack:[z],tokenStack:[],config:e,enter:l,exit:c,buffer:a,resume:f,data:r},ce=[],Se=-1;for(;++Se<P.length;)if(P[Se][1].type==="listOrdered"||P[Se][1].type==="listUnordered")if(P[Se][0]==="enter")ce.push(Se);else{let zt=ce.pop();Se=o(P,zt,Se)}for(Se=-1;++Se<P.length;){let zt=e[P[Se][0]];rE.call(zt,P[Se][1].type)&&zt[P[Se][1].type].call(Object.assign({sliceSerialize:P[Se][2].sliceSerialize},ie),P[Se][1])}if(ie.tokenStack.length>0){let zt=ie.tokenStack[ie.tokenStack.length-1];(zt[1]||iE).call(ie,void 0,zt[0])}for(z.position={start:Nn(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:Nn(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},Se=-1;++Se<e.transforms.length;)z=e.transforms[Se](z)||z;return z}function o(P,z,ie){let ce=z-1,Se=-1,zt=!1,gr,Gt,Un,qn;for(;++ce<=ie;){let kt=P[ce];switch(kt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{kt[0]==="enter"?Se++:Se--,qn=void 0;break}case"lineEndingBlank":{kt[0]==="enter"&&(gr&&!qn&&!Se&&!Un&&(Un=ce),qn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:qn=void 0}if(!Se&&kt[0]==="enter"&&kt[1].type==="listItemPrefix"||Se===-1&&kt[0]==="exit"&&(kt[1].type==="listUnordered"||kt[1].type==="listOrdered")){if(gr){let nn=ce;for(Gt=void 0;nn--;){let ir=P[nn];if(ir[1].type==="lineEnding"||ir[1].type==="lineEndingBlank"){if(ir[0]==="exit")continue;Gt&&(P[Gt][1].type="lineEndingBlank",zt=!0),ir[1].type="lineEnding",Gt=nn}else if(!(ir[1].type==="linePrefix"||ir[1].type==="blockQuotePrefix"||ir[1].type==="blockQuotePrefixWhitespace"||ir[1].type==="blockQuoteMarker"||ir[1].type==="listItemIndent"))break}Un&&(!Gt||Un<Gt)&&(gr._spread=!0),gr.end=Object.assign({},Gt?P[Gt][1].start:kt[1].end),P.splice(Gt||ce,0,["exit",gr,kt[2]]),ce++,ie++}if(kt[1].type==="listItemPrefix"){let nn={type:"listItem",_spread:!1,start:Object.assign({},kt[1].start),end:void 0};gr=nn,P.splice(ce,0,["enter",nn,kt[2]]),ce++,ie++,Un=void 0,qn=!0}}}return P[z][1]._spread=zt,ie}function s(P,z){return ie;function ie(ce){l.call(this,P(ce),ce),z&&z.call(this,ce)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(P,z,ie){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([z,ie||void 0]),P.position={start:Nn(z.start),end:void 0}}function u(P){return z;function z(ie){P&&P.call(this,ie),c.call(this,ie)}}function c(P,z){let ie=this.stack.pop(),ce=this.tokenStack.pop();if(ce)ce[0].type!==P.type&&(z?z.call(this,P,ce[0]):(ce[1]||iE).call(this,P,ce[0]));else throw new Error("Cannot close `"+P.type+"` ("+Mn({start:P.start,end:P.end})+"): it\u2019s not open");ie.position.end=Nn(P.end)}function f(){return Ei(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(P){if(this.data.expectingFirstListItemValue){let z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function m(){let P=this.resume(),z=this.stack[this.stack.length-1];z.lang=P}function d(){let P=this.resume(),z=this.stack[this.stack.length-1];z.meta=P}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){let P=this.resume(),z=this.stack[this.stack.length-1];z.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){let P=this.resume(),z=this.stack[this.stack.length-1];z.value=P.replace(/(\r?\n|\r)$/g,"")}function T(P){let z=this.resume(),ie=this.stack[this.stack.length-1];ie.label=z,ie.identifier=He(this.sliceSerialize(P)).toLowerCase()}function E(){let P=this.resume(),z=this.stack[this.stack.length-1];z.title=P}function q(){let P=this.resume(),z=this.stack[this.stack.length-1];z.url=P}function H(P){let z=this.stack[this.stack.length-1];if(!z.depth){let ie=this.sliceSerialize(P).length;z.depth=ie}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function j(P){let z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function X(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(P){let ie=this.stack[this.stack.length-1].children,ce=ie[ie.length-1];(!ce||ce.type!=="text")&&(ce=Le(),ce.position={start:Nn(P.start),end:void 0},ie.push(ce)),this.stack.push(ce)}function I(P){let z=this.stack.pop();z.value+=this.sliceSerialize(P),z.position.end=Nn(P.end)}function De(P){let z=this.stack[this.stack.length-1];if(this.data.atHardBreak){let ie=z.children[z.children.length-1];ie.position.end=Nn(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(z.type)&&(Y.call(this,P),I.call(this,P))}function $(){this.data.atHardBreak=!0}function _(){let P=this.resume(),z=this.stack[this.stack.length-1];z.value=P}function N(){let P=this.resume(),z=this.stack[this.stack.length-1];z.value=P}function F(){let P=this.resume(),z=this.stack[this.stack.length-1];z.value=P}function B(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=z,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function V(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let z=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=z,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function Q(P){let z=this.sliceSerialize(P),ie=this.stack[this.stack.length-2];ie.label=Lf(z),ie.identifier=He(z).toLowerCase()}function ue(){let P=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=P.children;ie.children=ce}else ie.alt=z}function b(){let P=this.resume(),z=this.stack[this.stack.length-1];z.url=P}function de(){let P=this.resume(),z=this.stack[this.stack.length-1];z.title=P}function be(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function Ae(P){let z=this.resume(),ie=this.stack[this.stack.length-1];ie.label=z,ie.identifier=He(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function $e(P){this.data.characterReferenceType=P.type}function Lt(P){let z=this.sliceSerialize(P),ie=this.data.characterReferenceType,ce;ie?(ce=us(z,ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ce=_n(z);let Se=this.stack[this.stack.length-1];Se.value+=ce}function D(P){let z=this.stack.pop();z.position.end=Nn(P.end)}function S(P){I.call(this,P);let z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(P)}function C(P){I.call(this,P);let z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(P)}function M(){return{type:"blockquote",children:[]}}function R(){return{type:"code",lang:null,meta:null,value:""}}function ee(){return{type:"inlineCode",value:""}}function Pe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ie(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function Ot(){return{type:"break"}}function tt(){return{type:"html",value:""}}function St(){return{type:"image",title:null,url:"",alt:null}}function nr(){return{type:"link",title:null,url:"",children:[]}}function mr(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function Bt(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function Vt(){return{type:"paragraph",children:[]}}function Mt(){return{type:"strong",children:[]}}function Le(){return{type:"text",value:""}}function dr(){return{type:"thematicBreak"}}}i(vj,"compiler");function Nn(t){return{line:t.line,column:t.column,offset:t.offset}}i(Nn,"point");function nE(t,e){let r=-1;for(;++r<e.length;){let n=e[r];Array.isArray(n)?nE(t,n):Sj(t,n)}}i(nE,"configure");function Sj(t,e){let r;for(r in e)if(rE.call(e,r))switch(r){case"canContainEols":{let n=e[r];n&&t[r].push(...n);break}case"transforms":{let n=e[r];n&&t[r].push(...n);break}case"enter":case"exit":{let n=e[r];n&&Object.assign(t[r],n);break}}}i(Sj,"extension");function iE(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Mn({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Mn({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Mn({start:e.start,end:e.end})+") is still open")}i(iE,"defaultOnError");function ps(t){let e=this;e.parser=r;function r(n){return pg(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}i(r,"parser")}i(ps,"remarkParse");var sE=jt(oE(),1),Ha=Object.assign(Pi(Error),{eval:Pi(EvalError),range:Pi(RangeError),reference:Pi(ReferenceError),syntax:Pi(SyntaxError),type:Pi(TypeError),uri:Pi(URIError)});function Pi(t){return e.displayName=t.displayName||t.name,e;function e(r,...n){let o=r&&(0,sE.default)(r,...n);return new t(o)}i(e,"FormattedError")}i(Pi,"create");var Xf={}.hasOwnProperty,aE={yaml:"-",toml:"+"};function hs(t){let e=[],r=-1,n=Array.isArray(t)?t:t?[t]:["yaml"];for(;++r<n.length;)e[r]=kj(n[r]);return e}i(hs,"toMatters");function kj(t){let e=t;if(typeof e=="string"){if(!Xf.call(aE,e))throw Ha("Missing matter definition for `%s`",e);e={type:e,marker:aE[e]}}else if(typeof e!="object")throw Ha("Expected matter to be an object, not `%j`",e);if(!Xf.call(e,"type"))throw Ha("Missing `type` in matter `%j`",e);if(!Xf.call(e,"fence")&&!Xf.call(e,"marker"))throw Ha("Missing `marker` or `fence` in matter `%j`",e);return e}i(kj,"matter");function dg(t){let e=hs(t),r={},n=-1;for(;++n<e.length;){let o=e[n],s=mg(o,"open").charCodeAt(0),a=Tj(o),l=r[s];Array.isArray(l)?l.push(a):r[s]=[a]}return{flow:r}}i(dg,"frontmatter");function Tj(t){let e=t.anywhere,r=t.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(j){let X=d.now();return X.column===1&&(X.line===1||e)&&(l=mg(t,"open"),u=0,j===l.charCodeAt(u))?(p.enter(r),p.enter(n),p.enter(o),x(j)):m(j)}function x(j){return u===l.length?(p.exit(o),K(j)?(p.enter("whitespace"),w(j)):T(j)):j===l.charCodeAt(u++)?(p.consume(j),x):m(j)}function w(j){return K(j)?(p.consume(j),w):(p.exit("whitespace"),T(j))}function T(j){return U(j)?(p.exit(n),p.enter("lineEnding"),p.consume(j),p.exit("lineEnding"),l=mg(t,"close"),u=0,p.attempt(a,O,E)):m(j)}function E(j){return j===null||U(j)?H(j):(p.enter(s),q(j))}function q(j){return j===null||U(j)?(p.exit(s),H(j)):(p.consume(j),q)}function H(j){return j===null?m(j):(p.enter("lineEnding"),p.consume(j),p.exit("lineEnding"),p.attempt(a,O,E))}function O(j){return p.exit(r),h(j)}}function f(p,h,m){let d=0;return g;function g(E){return E===l.charCodeAt(d)?(p.enter(n),p.enter(o),x(E)):m(E)}function x(E){return d===l.length?(p.exit(o),K(E)?(p.enter("whitespace"),w(E)):T(E)):E===l.charCodeAt(d++)?(p.consume(E),x):m(E)}function w(E){return K(E)?(p.consume(E),w):(p.exit("whitespace"),T(E))}function T(E){return E===null||U(E)?(p.exit(n),h(E)):m(E)}}}i(Tj,"createConstruct");function mg(t,e){return t.marker?lE(t.marker,e).repeat(3):lE(t.fence,e)}i(mg,"fence");function lE(t,e){return typeof t=="string"?t:t[e]}i(lE,"pick");function xg(t){let e=hs(t),r={},n={},o=-1;for(;++o<e.length;){let s=e[o];r[s.type]=Ej(s),n[s.type]=Dj,n[s.type+"Value"]=Cj}return{enter:r,exit:n}}i(xg,"frontmatterFromMarkdown");function Ej(t){return e;function e(r){this.enter({type:t.type,value:""},r),this.buffer()}}i(Ej,"opener");function Dj(t){let e=this.resume(),r=this.stack[this.stack.length-1];"value"in r,this.exit(t),r.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}i(Dj,"close");function Cj(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}i(Cj,"value");function yg(t){let e=[],r={},n=hs(t),o=-1;for(;++o<n.length;){let s=n[o];r[s.type]=Oj(s);let a=gg(s,"open");e.push({atBreak:!0,character:a.charAt(0),after:Yn(a.charAt(1))})}return{unsafe:e,handlers:r}}i(yg,"frontmatterToMarkdown");function Oj(t){let e=gg(t,"open"),r=gg(t,"close");return n;function n(o){return e+(o.value?`
79
79
  `+o.value:"")+`
80
- `+r}}i(Cj,"handler");function gg(t,e){return t.marker?uE(t.marker,e).repeat(3):uE(t.fence,e)}i(gg,"fence");function uE(t,e){return typeof t=="string"?t:t[e]}i(uE,"pick");var Oj="yaml";function ms(t){let e=this,r=t||Oj,n=e.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(dg(r)),s.push(xg(r)),a.push(yg(r))}i(ms,"remarkFrontmatter");var cE=typeof self=="object"?self:globalThis,Mj=i((t,e)=>{let r=i((o,s)=>(t.set(s,o),o),"as"),n=i(o=>{if(t.has(o))return t.get(o);let[s,a]=e[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 cE[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 cE[s](a),o)},"unpair");return n},"deserializer"),np=i(t=>Mj(new Map,t)(0),"deserialize");var gs="",{toString:Ij}={},{keys:_j}=Object,Ua=i(t=>{let e=typeof t;if(e!=="object"||!t)return[0,e];let r=Ij.call(t).slice(8,-1);switch(r){case"Array":return[1,gs];case"Object":return[2,gs];case"Date":return[3,gs];case"RegExp":return[4,gs];case"Map":return[5,gs];case"Set":return[6,gs];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},"typeOf"),ip=i(([t,e])=>t===0&&(e==="function"||e==="symbol"),"shouldSkip"),Pj=i((t,e,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]=Ua(a);switch(l){case 0:{let f=a;switch(u){case"bigint":l=8,f=a.toString();break;case"function":case"symbol":if(t)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(e&&"toJSON"in a)return s(a.toJSON());let f=[],p=o([l,f],a);for(let h of _j(a))(t||!ip(Ua(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)(t||!(ip(Ua(h))||ip(Ua(m))))&&f.push([s(h),s(m)]);return p}case 6:{let f=[],p=o([l,f],a);for(let h of a)(t||!ip(Ua(h)))&&f.push(s(h));return p}}let{message:c}=a;return o([l,{name:u,message:c}],a)},"pair");return s},"serializer"),op=i((t,{json:e,lossy:r}={})=>{let n=[];return Pj(!(e||r),!!e,new Map,n)(t),n},"serialize");var An=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?np(op(t,e)):structuredClone(t):(t,e)=>np(op(t,e));var sp=fE("end"),ap=fE("start");function fE(t){return e;function e(r){let n=r&&r.position&&r.position[t]||{};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(fE,"point");function qa(t){let e=ap(t),r=sp(t);if(e&&r)return{start:e,end:r}}i(qa,"position");var Ni=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],lp={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Ni,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Ni],h2:[["className","sr-only"]],img:[...Ni,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Ni,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Ni],table:[...Ni],ul:[...Ni,["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 Rn={}.hasOwnProperty;function Sg(t,e){let r={type:"root",children:[]},n={schema:e?{...lp,...e}:lp,stack:[]},o=pE(n,t);return o&&(Array.isArray(o)?o.length===1?r=o[0]:r.children=o:r=o),r}i(Sg,"sanitize");function pE(t,e){if(e&&typeof e=="object"){let r=e;switch(typeof r.type=="string"?r.type:""){case"comment":return Nj(t,r);case"doctype":return Aj(t,r);case"element":return Rj(t,r);case"root":return Fj(t,r);case"text":return Lj(t,r);default:}}}i(pE,"transform");function Nj(t,e){if(t.schema.allowComments){let r=typeof e.value=="string"?e.value:"",n=r.indexOf("-->"),s={type:"comment",value:n<0?r:r.slice(0,n)};return Ya(s,e),s}}i(Nj,"comment");function Aj(t,e){if(t.schema.allowDoctypes){let r={type:"doctype"};return Ya(r,e),r}}i(Aj,"doctype");function Rj(t,e){let r=typeof e.tagName=="string"?e.tagName:"";t.stack.push(r);let n=hE(t,e.children),o=Bj(t,e.properties);t.stack.pop();let s=!1;if(r&&r!=="*"&&(!t.schema.tagNames||t.schema.tagNames.includes(r))&&(s=!0,t.schema.ancestors&&Rn.call(t.schema.ancestors,r))){let l=t.schema.ancestors[r],u=-1;for(s=!1;++u<l.length;)t.stack.includes(l[u])&&(s=!0)}if(!s)return t.schema.strip&&!t.schema.strip.includes(r)?n:void 0;let a={type:"element",tagName:r,properties:o,children:n};return Ya(a,e),a}i(Rj,"element");function Fj(t,e){let n={type:"root",children:hE(t,e.children)};return Ya(n,e),n}i(Fj,"root");function Lj(t,e){let n={type:"text",value:typeof e.value=="string"?e.value:""};return Ya(n,e),n}i(Lj,"text");function hE(t,e){let r=[];if(Array.isArray(e)){let n=e,o=-1;for(;++o<n.length;){let s=pE(t,n[o]);s&&(Array.isArray(s)?r.push(...s):r.push(s))}}return r}i(hE,"children");function Bj(t,e){let r=t.stack[t.stack.length-1],n=t.schema.attributes,o=t.schema.required,s=n&&Rn.call(n,r)?n[r]:void 0,a=n&&Rn.call(n,"*")?n["*"]:void 0,l=e&&typeof e=="object"?e:{},u={},c;for(c in l)if(Rn.call(l,c)){let f=l[c],p=mE(t,gE(s,c),c,f);p==null&&(p=mE(t,gE(a,c),c,f)),p!=null&&(u[c]=p)}if(o&&Rn.call(o,r)){let f=o[r];for(c in f)Rn.call(f,c)&&!Rn.call(u,c)&&(u[c]=f[c])}return u}i(Bj,"properties");function mE(t,e,r,n){return e?Array.isArray(n)?zj(t,e,r,n):dE(t,e,r,n):void 0}i(mE,"propertyValue");function zj(t,e,r,n){let o=-1,s=[];for(;++o<n.length;){let a=dE(t,e,r,n[o]);(typeof a=="number"||typeof a=="string")&&s.push(a)}return s}i(zj,"propertyValueMany");function dE(t,e,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&jj(t,r,n)){if(typeof e=="object"&&e.length>1){let o=!1,s=0;for(;++s<e.length;){let a=e[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 t.schema.clobber&&t.schema.clobberPrefix&&t.schema.clobber.includes(r)?t.schema.clobberPrefix+n:n}}i(dE,"propertyValuePrimitive");function jj(t,e,r){let n=t.schema.protocols&&Rn.call(t.schema.protocols,e)?t.schema.protocols[e]: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(jj,"safeProtocol");function Ya(t,e){let r=qa(e);e.data&&(t.data=An(e.data)),r&&(t.position=r)}i(Ya,"patch");function gE(t,e){let r,n=-1;if(t)for(;++n<t.length;){let o=t[n],s=typeof o=="string"?o:o[0];if(s===e)return o;s==="data*"&&(r=o)}if(e.length>4&&e.slice(0,4).toLowerCase()==="data")return r}i(gE,"findDefinition");function xE(t,e){let r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,r),t.applyData(e,r)}i(xE,"blockquote");function yE(t,e){let r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,r),[t.applyData(e,r),{type:"text",value:`
80
+ `+r}}i(Oj,"handler");function gg(t,e){return t.marker?uE(t.marker,e).repeat(3):uE(t.fence,e)}i(gg,"fence");function uE(t,e){return typeof t=="string"?t:t[e]}i(uE,"pick");var Mj="yaml";function ms(t){let e=this,r=t||Mj,n=e.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(dg(r)),s.push(xg(r)),a.push(yg(r))}i(ms,"remarkFrontmatter");var cE=typeof self=="object"?self:globalThis,Ij=i((t,e)=>{let r=i((o,s)=>(t.set(s,o),o),"as"),n=i(o=>{if(t.has(o))return t.get(o);let[s,a]=e[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 cE[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 cE[s](a),o)},"unpair");return n},"deserializer"),np=i(t=>Ij(new Map,t)(0),"deserialize");var gs="",{toString:_j}={},{keys:Pj}=Object,Ua=i(t=>{let e=typeof t;if(e!=="object"||!t)return[0,e];let r=_j.call(t).slice(8,-1);switch(r){case"Array":return[1,gs];case"Object":return[2,gs];case"Date":return[3,gs];case"RegExp":return[4,gs];case"Map":return[5,gs];case"Set":return[6,gs];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},"typeOf"),ip=i(([t,e])=>t===0&&(e==="function"||e==="symbol"),"shouldSkip"),Nj=i((t,e,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]=Ua(a);switch(l){case 0:{let f=a;switch(u){case"bigint":l=8,f=a.toString();break;case"function":case"symbol":if(t)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(e&&"toJSON"in a)return s(a.toJSON());let f=[],p=o([l,f],a);for(let h of Pj(a))(t||!ip(Ua(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)(t||!(ip(Ua(h))||ip(Ua(m))))&&f.push([s(h),s(m)]);return p}case 6:{let f=[],p=o([l,f],a);for(let h of a)(t||!ip(Ua(h)))&&f.push(s(h));return p}}let{message:c}=a;return o([l,{name:u,message:c}],a)},"pair");return s},"serializer"),op=i((t,{json:e,lossy:r}={})=>{let n=[];return Nj(!(e||r),!!e,new Map,n)(t),n},"serialize");var An=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?np(op(t,e)):structuredClone(t):(t,e)=>np(op(t,e));var sp=fE("end"),ap=fE("start");function fE(t){return e;function e(r){let n=r&&r.position&&r.position[t]||{};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(fE,"point");function qa(t){let e=ap(t),r=sp(t);if(e&&r)return{start:e,end:r}}i(qa,"position");var Ni=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],lp={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Ni,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Ni],h2:[["className","sr-only"]],img:[...Ni,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Ni,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Ni],table:[...Ni],ul:[...Ni,["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 Rn={}.hasOwnProperty;function Sg(t,e){let r={type:"root",children:[]},n={schema:e?{...lp,...e}:lp,stack:[]},o=pE(n,t);return o&&(Array.isArray(o)?o.length===1?r=o[0]:r.children=o:r=o),r}i(Sg,"sanitize");function pE(t,e){if(e&&typeof e=="object"){let r=e;switch(typeof r.type=="string"?r.type:""){case"comment":return Aj(t,r);case"doctype":return Rj(t,r);case"element":return Fj(t,r);case"root":return Lj(t,r);case"text":return Bj(t,r);default:}}}i(pE,"transform");function Aj(t,e){if(t.schema.allowComments){let r=typeof e.value=="string"?e.value:"",n=r.indexOf("-->"),s={type:"comment",value:n<0?r:r.slice(0,n)};return Ya(s,e),s}}i(Aj,"comment");function Rj(t,e){if(t.schema.allowDoctypes){let r={type:"doctype"};return Ya(r,e),r}}i(Rj,"doctype");function Fj(t,e){let r=typeof e.tagName=="string"?e.tagName:"";t.stack.push(r);let n=hE(t,e.children),o=zj(t,e.properties);t.stack.pop();let s=!1;if(r&&r!=="*"&&(!t.schema.tagNames||t.schema.tagNames.includes(r))&&(s=!0,t.schema.ancestors&&Rn.call(t.schema.ancestors,r))){let l=t.schema.ancestors[r],u=-1;for(s=!1;++u<l.length;)t.stack.includes(l[u])&&(s=!0)}if(!s)return t.schema.strip&&!t.schema.strip.includes(r)?n:void 0;let a={type:"element",tagName:r,properties:o,children:n};return Ya(a,e),a}i(Fj,"element");function Lj(t,e){let n={type:"root",children:hE(t,e.children)};return Ya(n,e),n}i(Lj,"root");function Bj(t,e){let n={type:"text",value:typeof e.value=="string"?e.value:""};return Ya(n,e),n}i(Bj,"text");function hE(t,e){let r=[];if(Array.isArray(e)){let n=e,o=-1;for(;++o<n.length;){let s=pE(t,n[o]);s&&(Array.isArray(s)?r.push(...s):r.push(s))}}return r}i(hE,"children");function zj(t,e){let r=t.stack[t.stack.length-1],n=t.schema.attributes,o=t.schema.required,s=n&&Rn.call(n,r)?n[r]:void 0,a=n&&Rn.call(n,"*")?n["*"]:void 0,l=e&&typeof e=="object"?e:{},u={},c;for(c in l)if(Rn.call(l,c)){let f=l[c],p=mE(t,gE(s,c),c,f);p==null&&(p=mE(t,gE(a,c),c,f)),p!=null&&(u[c]=p)}if(o&&Rn.call(o,r)){let f=o[r];for(c in f)Rn.call(f,c)&&!Rn.call(u,c)&&(u[c]=f[c])}return u}i(zj,"properties");function mE(t,e,r,n){return e?Array.isArray(n)?jj(t,e,r,n):dE(t,e,r,n):void 0}i(mE,"propertyValue");function jj(t,e,r,n){let o=-1,s=[];for(;++o<n.length;){let a=dE(t,e,r,n[o]);(typeof a=="number"||typeof a=="string")&&s.push(a)}return s}i(jj,"propertyValueMany");function dE(t,e,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&Hj(t,r,n)){if(typeof e=="object"&&e.length>1){let o=!1,s=0;for(;++s<e.length;){let a=e[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 t.schema.clobber&&t.schema.clobberPrefix&&t.schema.clobber.includes(r)?t.schema.clobberPrefix+n:n}}i(dE,"propertyValuePrimitive");function Hj(t,e,r){let n=t.schema.protocols&&Rn.call(t.schema.protocols,e)?t.schema.protocols[e]: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(Hj,"safeProtocol");function Ya(t,e){let r=qa(e);e.data&&(t.data=An(e.data)),r&&(t.position=r)}i(Ya,"patch");function gE(t,e){let r,n=-1;if(t)for(;++n<t.length;){let o=t[n],s=typeof o=="string"?o:o[0];if(s===e)return o;s==="data*"&&(r=o)}if(e.length>4&&e.slice(0,4).toLowerCase()==="data")return r}i(gE,"findDefinition");function xE(t,e){let r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,r),t.applyData(e,r)}i(xE,"blockquote");function yE(t,e){let r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,r),[t.applyData(e,r),{type:"text",value:`
81
81
  `}]}i(yE,"hardBreak");function wE(t,e){let r=e.value?e.value+`
82
- `:"",n={},o=e.lang?e.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 e.meta&&(s.data={meta:e.meta}),t.patch(e,s),s=t.applyData(e,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(e,s),s}i(wE,"code");function bE(t,e){let r={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(bE,"strikethrough");function vE(t,e){let r={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(vE,"emphasis");function SE(t,e){let r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=String(e.identifier).toUpperCase(),o=qt(n.toLowerCase()),s=t.footnoteOrder.indexOf(n),a,l=t.footnoteCounts.get(n);l===void 0?(l=0,t.footnoteOrder.push(n),a=t.footnoteOrder.length):a=s+1,l+=1,t.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)}]};t.patch(e,u);let c={type:"element",tagName:"sup",properties:{},children:[u]};return t.patch(e,c),t.applyData(e,c)}i(SE,"footnoteReference");function kE(t,e){let r={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(kE,"heading");function TE(t,e){if(t.options.allowDangerousHtml){let r={type:"raw",value:e.value};return t.patch(e,r),t.applyData(e,r)}}i(TE,"html");function up(t,e){let r=e.referenceType,n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+n}];let o=t.all(e),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(up,"revert");function EE(t,e){let r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return up(t,e);let o={src:qt(n.url||""),alt:e.alt};n.title!==null&&n.title!==void 0&&(o.title=n.title);let s={type:"element",tagName:"img",properties:o,children:[]};return t.patch(e,s),t.applyData(e,s)}i(EE,"imageReference");function DE(t,e){let r={src:qt(e.url)};e.alt!==null&&e.alt!==void 0&&(r.alt=e.alt),e.title!==null&&e.title!==void 0&&(r.title=e.title);let n={type:"element",tagName:"img",properties:r,children:[]};return t.patch(e,n),t.applyData(e,n)}i(DE,"image");function CE(t,e){let r={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(e,n),t.applyData(e,n)}i(CE,"inlineCode");function OE(t,e){let r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return up(t,e);let o={href:qt(n.url||"")};n.title!==null&&n.title!==void 0&&(o.title=n.title);let s={type:"element",tagName:"a",properties:o,children:t.all(e)};return t.patch(e,s),t.applyData(e,s)}i(OE,"linkReference");function ME(t,e){let r={href:qt(e.url)};e.title!==null&&e.title!==void 0&&(r.title=e.title);let n={type:"element",tagName:"a",properties:r,children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}i(ME,"link");function _E(t,e,r){let n=t.all(e),o=r?Hj(r):IE(e),s={},a=[];if(typeof e.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:e.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:`
82
+ `:"",n={},o=e.lang?e.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 e.meta&&(s.data={meta:e.meta}),t.patch(e,s),s=t.applyData(e,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(e,s),s}i(wE,"code");function bE(t,e){let r={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(bE,"strikethrough");function vE(t,e){let r={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(vE,"emphasis");function SE(t,e){let r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=String(e.identifier).toUpperCase(),o=qt(n.toLowerCase()),s=t.footnoteOrder.indexOf(n),a,l=t.footnoteCounts.get(n);l===void 0?(l=0,t.footnoteOrder.push(n),a=t.footnoteOrder.length):a=s+1,l+=1,t.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)}]};t.patch(e,u);let c={type:"element",tagName:"sup",properties:{},children:[u]};return t.patch(e,c),t.applyData(e,c)}i(SE,"footnoteReference");function kE(t,e){let r={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(kE,"heading");function TE(t,e){if(t.options.allowDangerousHtml){let r={type:"raw",value:e.value};return t.patch(e,r),t.applyData(e,r)}}i(TE,"html");function up(t,e){let r=e.referenceType,n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+n}];let o=t.all(e),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(up,"revert");function EE(t,e){let r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return up(t,e);let o={src:qt(n.url||""),alt:e.alt};n.title!==null&&n.title!==void 0&&(o.title=n.title);let s={type:"element",tagName:"img",properties:o,children:[]};return t.patch(e,s),t.applyData(e,s)}i(EE,"imageReference");function DE(t,e){let r={src:qt(e.url)};e.alt!==null&&e.alt!==void 0&&(r.alt=e.alt),e.title!==null&&e.title!==void 0&&(r.title=e.title);let n={type:"element",tagName:"img",properties:r,children:[]};return t.patch(e,n),t.applyData(e,n)}i(DE,"image");function CE(t,e){let r={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(e,n),t.applyData(e,n)}i(CE,"inlineCode");function OE(t,e){let r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return up(t,e);let o={href:qt(n.url||"")};n.title!==null&&n.title!==void 0&&(o.title=n.title);let s={type:"element",tagName:"a",properties:o,children:t.all(e)};return t.patch(e,s),t.applyData(e,s)}i(OE,"linkReference");function ME(t,e){let r={href:qt(e.url)};e.title!==null&&e.title!==void 0&&(r.title=e.title);let n={type:"element",tagName:"a",properties:r,children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}i(ME,"link");function _E(t,e,r){let n=t.all(e),o=r?Wj(r):IE(e),s={},a=[];if(typeof e.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:e.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 t.patch(e,c),t.applyData(e,c)}i(_E,"listItem");function Hj(t){let e=!1;if(t.type==="list"){e=t.spread||!1;let r=t.children,n=-1;for(;!e&&++n<r.length;)e=IE(r[n])}return e}i(Hj,"listLoose");function IE(t){let e=t.spread;return e??t.children.length>1}i(IE,"listItemLoose");function PE(t,e){let r={},n=t.all(e),o=-1;for(typeof e.start=="number"&&e.start!==1&&(r.start=e.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:e.ordered?"ol":"ul",properties:r,children:t.wrap(n,!0)};return t.patch(e,s),t.applyData(e,s)}i(PE,"list");function NE(t,e){let r={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(NE,"paragraph");function AE(t,e){let r={type:"root",children:t.wrap(t.all(e))};return t.patch(e,r),t.applyData(e,r)}i(AE,"root");function RE(t,e){let r={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(RE,"strong");function FE(t,e){let r=t.all(e),n=r.shift(),o=[];if(n){let a={type:"element",tagName:"thead",properties:{},children:t.wrap([n],!0)};t.patch(e.children[0],a),o.push(a)}if(r.length>0){let a={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},l=ap(e.children[1]),u=sp(e.children[e.children.length-1]);l&&u&&(a.position={start:l,end:u}),o.push(a)}let s={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(e,s),t.applyData(e,s)}i(FE,"table");function LE(t,e,r){let n=r?r.children:void 0,s=(n?n.indexOf(e):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,l=a?a.length:e.children.length,u=-1,c=[];for(;++u<l;){let p=e.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=t.all(p),t.patch(p,d),d=t.applyData(p,d)),c.push(d)}let f={type:"element",tagName:"tr",properties:{},children:t.wrap(c,!0)};return t.patch(e,f),t.applyData(e,f)}i(LE,"tableRow");function BE(t,e){let r={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(BE,"tableCell");var o3e=9,s3e=32;function jE(t){let e=String(t),r=/\r?\n|\r/g,n=r.exec(e),o=0,s=[];for(;n;)s.push(zE(e.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(e);return s.push(zE(e.slice(o),o>0,!1)),s.join("")}i(jE,"trimLines");function zE(t,e,r){let n=0,o=t.length;if(e){let s=t.codePointAt(n);for(;s===9||s===32;)n++,s=t.codePointAt(n)}if(r){let s=t.codePointAt(o-1);for(;s===9||s===32;)o--,s=t.codePointAt(o-1)}return o>n?t.slice(n,o):""}i(zE,"trimLine");function HE(t,e){let r={type:"text",value:jE(String(e.value))};return t.patch(e,r),t.applyData(e,r)}i(HE,"text");function WE(t,e){let r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,r),t.applyData(e,r)}i(WE,"thematicBreak");var kg={blockquote:xE,break:yE,code:wE,delete:bE,emphasis:vE,footnoteReference:SE,heading:kE,html:TE,imageReference:EE,image:DE,inlineCode:CE,linkReference:OE,link:ME,listItem:_E,list:PE,paragraph:NE,root:AE,strong:RE,table:FE,tableCell:BE,tableRow:LE,text:HE,thematicBreak:WE,toml:cp,yaml:cp,definition:cp,footnoteDefinition:cp};function cp(){}i(cp,"ignore");function $E(t,e){let r=[{type:"text",value:"\u21A9"}];return e>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),r}i($E,"defaultFootnoteBackContent");function UE(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}i(UE,"defaultFootnoteBackLabel");function qE(t){let e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||$E,n=t.options.footnoteBackLabel||UE,o=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",a=t.options.footnoteLabelProperties||{className:["sr-only"]},l=[],u=-1;for(;++u<t.footnoteOrder.length;){let c=t.footnoteById.get(t.footnoteOrder[u]);if(!c)continue;let f=t.all(c),p=String(c.identifier).toUpperCase(),h=qt(p.toLowerCase()),m=0,d=[],g=t.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:"#"+e+"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 w={type:"element",tagName:"li",properties:{id:e+"fn-"+h},children:t.wrap(f,!0)};t.patch(c,w),l.push(w)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...An(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
84
+ `});let c={type:"element",tagName:"li",properties:s,children:a};return t.patch(e,c),t.applyData(e,c)}i(_E,"listItem");function Wj(t){let e=!1;if(t.type==="list"){e=t.spread||!1;let r=t.children,n=-1;for(;!e&&++n<r.length;)e=IE(r[n])}return e}i(Wj,"listLoose");function IE(t){let e=t.spread;return e??t.children.length>1}i(IE,"listItemLoose");function PE(t,e){let r={},n=t.all(e),o=-1;for(typeof e.start=="number"&&e.start!==1&&(r.start=e.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:e.ordered?"ol":"ul",properties:r,children:t.wrap(n,!0)};return t.patch(e,s),t.applyData(e,s)}i(PE,"list");function NE(t,e){let r={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(NE,"paragraph");function AE(t,e){let r={type:"root",children:t.wrap(t.all(e))};return t.patch(e,r),t.applyData(e,r)}i(AE,"root");function RE(t,e){let r={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(RE,"strong");function FE(t,e){let r=t.all(e),n=r.shift(),o=[];if(n){let a={type:"element",tagName:"thead",properties:{},children:t.wrap([n],!0)};t.patch(e.children[0],a),o.push(a)}if(r.length>0){let a={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},l=ap(e.children[1]),u=sp(e.children[e.children.length-1]);l&&u&&(a.position={start:l,end:u}),o.push(a)}let s={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(e,s),t.applyData(e,s)}i(FE,"table");function LE(t,e,r){let n=r?r.children:void 0,s=(n?n.indexOf(e):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,l=a?a.length:e.children.length,u=-1,c=[];for(;++u<l;){let p=e.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=t.all(p),t.patch(p,d),d=t.applyData(p,d)),c.push(d)}let f={type:"element",tagName:"tr",properties:{},children:t.wrap(c,!0)};return t.patch(e,f),t.applyData(e,f)}i(LE,"tableRow");function BE(t,e){let r={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(BE,"tableCell");var l3e=9,u3e=32;function jE(t){let e=String(t),r=/\r?\n|\r/g,n=r.exec(e),o=0,s=[];for(;n;)s.push(zE(e.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(e);return s.push(zE(e.slice(o),o>0,!1)),s.join("")}i(jE,"trimLines");function zE(t,e,r){let n=0,o=t.length;if(e){let s=t.codePointAt(n);for(;s===9||s===32;)n++,s=t.codePointAt(n)}if(r){let s=t.codePointAt(o-1);for(;s===9||s===32;)o--,s=t.codePointAt(o-1)}return o>n?t.slice(n,o):""}i(zE,"trimLine");function HE(t,e){let r={type:"text",value:jE(String(e.value))};return t.patch(e,r),t.applyData(e,r)}i(HE,"text");function WE(t,e){let r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,r),t.applyData(e,r)}i(WE,"thematicBreak");var kg={blockquote:xE,break:yE,code:wE,delete:bE,emphasis:vE,footnoteReference:SE,heading:kE,html:TE,imageReference:EE,image:DE,inlineCode:CE,linkReference:OE,link:ME,listItem:_E,list:PE,paragraph:NE,root:AE,strong:RE,table:FE,tableCell:BE,tableRow:LE,text:HE,thematicBreak:WE,toml:cp,yaml:cp,definition:cp,footnoteDefinition:cp};function cp(){}i(cp,"ignore");function $E(t,e){let r=[{type:"text",value:"\u21A9"}];return e>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),r}i($E,"defaultFootnoteBackContent");function UE(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}i(UE,"defaultFootnoteBackLabel");function qE(t){let e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||$E,n=t.options.footnoteBackLabel||UE,o=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",a=t.options.footnoteLabelProperties||{className:["sr-only"]},l=[],u=-1;for(;++u<t.footnoteOrder.length;){let c=t.footnoteById.get(t.footnoteOrder[u]);if(!c)continue;let f=t.all(c),p=String(c.identifier).toUpperCase(),h=qt(p.toLowerCase()),m=0,d=[],g=t.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:"#"+e+"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 w={type:"element",tagName:"li",properties:{id:e+"fn-"+h},children:t.wrap(f,!0)};t.patch(c,w),l.push(w)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...An(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
85
85
  `},{type:"element",tagName:"ol",properties:{},children:t.wrap(l,!0)},{type:"text",value:`
86
- `}]}}i(qE,"footer");var Tg={}.hasOwnProperty,Wj={};function VE(t,e){let r=e||Wj,n=new Map,o=new Map,s=new Map,a={...kg,...r.handlers},l={all:c,applyData:Uj,definitionById:n,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:a,one:u,options:r,patch:$j,wrap:Yj};return Pa(t,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(Tg.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,w=An(x);return w.children=l.all(f),w}return An(f)}return(l.options.unknownHandler||qj)(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=YE(d.value)),!Array.isArray(d)&&d.type==="element")){let g=d.children[0];g&&g.type==="text"&&(g.value=YE(g.value))}Array.isArray(d)?p.push(...d):p.push(d)}}}return p}i(c,"all")}i(VE,"createState");function $j(t,e){t.position&&(e.position=qa(t))}i($j,"patch");function Uj(t,e){let r=e;if(t&&t.data){let n=t.data.hName,o=t.data.hChildren,s=t.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,An(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}i(Uj,"applyData");function qj(t,e){let r=e.data||{},n="value"in e&&!(Tg.call(r,"hProperties")||Tg.call(r,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}i(qj,"defaultUnknownHandler");function Yj(t,e){let r=[],n=-1;for(e&&r.push({type:"text",value:`
86
+ `}]}}i(qE,"footer");var Tg={}.hasOwnProperty,$j={};function VE(t,e){let r=e||$j,n=new Map,o=new Map,s=new Map,a={...kg,...r.handlers},l={all:c,applyData:qj,definitionById:n,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:a,one:u,options:r,patch:Uj,wrap:Vj};return Pa(t,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(Tg.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,w=An(x);return w.children=l.all(f),w}return An(f)}return(l.options.unknownHandler||Yj)(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=YE(d.value)),!Array.isArray(d)&&d.type==="element")){let g=d.children[0];g&&g.type==="text"&&(g.value=YE(g.value))}Array.isArray(d)?p.push(...d):p.push(d)}}}return p}i(c,"all")}i(VE,"createState");function Uj(t,e){t.position&&(e.position=qa(t))}i(Uj,"patch");function qj(t,e){let r=e;if(t&&t.data){let n=t.data.hName,o=t.data.hChildren,s=t.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,An(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}i(qj,"applyData");function Yj(t,e){let r=e.data||{},n="value"in e&&!(Tg.call(r,"hProperties")||Tg.call(r,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}i(Yj,"defaultUnknownHandler");function Vj(t,e){let r=[],n=-1;for(e&&r.push({type:"text",value:`
87
87
  `});++n<t.length;)n&&r.push({type:"text",value:`
88
88
  `}),r.push(t[n]);return e&&t.length>0&&r.push({type:"text",value:`
89
- `}),r}i(Yj,"wrap");function YE(t){let e=0,r=t.charCodeAt(e);for(;r===9||r===32;)e++,r=t.charCodeAt(e);return t.slice(e)}i(YE,"trimMarkdownSpaceStart");function Eg(t,e){let r=VE(t,e),n=r.one(t,void 0),o=qE(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(Eg,"toHast");var GE=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Xr=class{static{i(this,"Schema")}constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}};Xr.prototype.normal={},Xr.prototype.property={},Xr.prototype.space=void 0;function Dg(t,e){let r={},n={};for(let o of t)Object.assign(r,o.property),Object.assign(n,o.normal);return new Xr(r,n,e)}i(Dg,"merge");function xs(t){return t.toLowerCase()}i(xs,"normalize");var st=class{static{i(this,"Info")}constructor(e,r){this.attribute=r,this.property=e}};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 Va={};ae(Va,{boolean:()=>le,booleanish:()=>We,commaOrSpaceSeparated:()=>Ft,commaSeparated:()=>Fn,number:()=>L,overloadedBoolean:()=>fp,spaceSeparated:()=>Oe});var Vj=0,le=Ai(),We=Ai(),fp=Ai(),L=Ai(),Oe=Ai(),Fn=Ai(),Ft=Ai();function Ai(){return 2**++Vj}i(Ai,"increment");var Cg=Object.keys(Va),Ri=class extends st{static{i(this,"DefinedInfo")}constructor(e,r,n,o){let s=-1;if(super(e,r),JE(this,"space",o),typeof n=="number")for(;++s<Cg.length;){let a=Cg[s];JE(this,Cg[s],(n&Va[a])===Va[a])}}};Ri.prototype.defined=!0;function JE(t,e,r){r&&(t[e]=r)}i(JE,"mark");function er(t){let e={},r={};for(let[n,o]of Object.entries(t.properties)){let s=new Ri(n,t.transform(t.attributes||{},n),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(s.mustUseProperty=!0),e[n]=s,r[xs(n)]=n,r[xs(s.attribute)]=n}return new Xr(e,r,t.space)}i(er,"create");var Og=er({properties:{ariaActiveDescendant:null,ariaAtomic:We,ariaAutoComplete:null,ariaBusy:We,ariaChecked:We,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:Oe,ariaCurrent:null,ariaDescribedBy:Oe,ariaDetails:null,ariaDisabled:We,ariaDropEffect:Oe,ariaErrorMessage:null,ariaExpanded:We,ariaFlowTo:Oe,ariaGrabbed:We,ariaHasPopup:null,ariaHidden:We,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Oe,ariaLevel:L,ariaLive:null,ariaModal:We,ariaMultiLine:We,ariaMultiSelectable:We,ariaOrientation:null,ariaOwns:Oe,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:We,ariaReadOnly:We,ariaRelevant:null,ariaRequired:We,ariaRoleDescription:Oe,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:We,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function pp(t,e){return e in t?t[e]:e}i(pp,"caseSensitiveTransform");function hp(t,e){return pp(t,e.toLowerCase())}i(hp,"caseInsensitiveTransform");var QE=er({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fn,acceptCharset:Oe,accessKey:Oe,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:Oe,autoFocus:le,autoPlay:le,blocking:Oe,capture:null,charSet:null,checked:le,cite:null,className:Oe,cols:L,colSpan:null,content:null,contentEditable:We,controls:le,controlsList:Oe,coords:L|Fn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:fp,draggable:We,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:Oe,height:L,hidden:fp,high:L,href:null,hrefLang:null,htmlFor:Oe,httpEquiv:Oe,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:Oe,itemRef:Oe,itemScope:le,itemType:Oe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,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:L,pattern:null,ping:Oe,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:Oe,required:le,reversed:le,rows:L,rowSpan:L,sandbox:Oe,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:We,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:We,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Oe,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,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:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:We,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:L,security:null,unselectable:null},space:"html",transform:hp});var KE=er({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:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:Oe,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:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,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:Fn,g2:Fn,glyphName:Fn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:Ft,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,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:L,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:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Oe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,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:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:Ft,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ft,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,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:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pp});var Mg=er({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}});var Ig=er({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:hp});var _g=er({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}});var Gj=/[A-Z]/g,XE=/-[a-z]/g,Jj=/^data[-\w.:]+$/i;function Pg(t,e){let r=xs(e),n=e,o=st;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Jj.test(e)){if(e.charAt(4)==="-"){let s=e.slice(5).replace(XE,Kj);n="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{let s=e.slice(4);if(!XE.test(s)){let a=s.replace(Gj,Qj);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}o=Ri}return new o(n,e)}i(Pg,"find");function Qj(t){return"-"+t.toLowerCase()}i(Qj,"kebab");function Kj(t){return t.charAt(1).toUpperCase()}i(Kj,"camelcase");var ZE=Dg([Og,QE,Mg,Ig,_g],"html"),mp=Dg([Og,KE,Mg,Ig,_g],"svg");var Xj=/["&'<>`]/g,Zj=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eH=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tH=/[|\\{}()[\]^$+*?.]/g,eD=new WeakMap;function Ng(t,e){if(t=t.replace(e.subset?rH(e.subset):Xj,n),e.subset||e.escapeOnly)return t;return t.replace(Zj,r).replace(eH,n);function r(o,s,a){return e.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),e)}function n(o,s,a){return e.format(o.charCodeAt(0),a.charCodeAt(s+1),e)}}i(Ng,"core");function rH(t){let e=eD.get(t);return e||(e=nH(t),eD.set(t,e)),e}i(rH,"charactersToExpressionCached");function nH(t){let e=[],r=-1;for(;++r<t.length;)e.push(t[r].replace(tH,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}i(nH,"charactersToExpression");var iH=/[\dA-Fa-f]/;function tD(t,e,r){let n="&#x"+t.toString(16).toUpperCase();return r&&e&&!iH.test(String.fromCharCode(e))?n:n+";"}i(tD,"toHexadecimal");var oH=/\d/;function rD(t,e,r){let n="&#"+String(t);return r&&e&&!oH.test(String.fromCharCode(e))?n:n+";"}i(rD,"toDecimal");var nD=["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 dp={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 iD=["cent","copy","divide","gt","lt","not","para","times"];var oD={}.hasOwnProperty,Ag={},gp;for(gp in dp)oD.call(dp,gp)&&(Ag[dp[gp]]=gp);var sH=/[^\dA-Za-z]/;function sD(t,e,r,n){let o=String.fromCharCode(t);if(oD.call(Ag,o)){let s=Ag[o],a="&"+s;return r&&nD.includes(s)&&!iD.includes(s)&&(!n||e&&e!==61&&sH.test(String.fromCharCode(e)))?a:a+";"}return""}i(sD,"toNamed");function aD(t,e,r){let n=tD(t,e,r.omitOptionalSemicolons),o;if((r.useNamedReferences||r.useShortestReferences)&&(o=sD(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!o)&&r.useShortestReferences){let s=rD(t,e,r.omitOptionalSemicolons);s.length<n.length&&(n=s)}return o&&(!r.useShortestReferences||o.length<n.length)?o:n}i(aD,"formatSmart");function lD(t){return"&#x"+t.toString(16).toUpperCase()+";"}i(lD,"formatBasic");function Zr(t,e){return Ng(t,Object.assign({format:aD},e))}i(Zr,"stringifyEntities");function N6e(t,e){return Ng(t,Object.assign({format:lD},e))}i(N6e,"stringifyEntitiesLight");var aH=/^>|^->|<!--|-->|--!>|<!-$/g,lH=[">"],uH=["<",">"];function uD(t,e,r,n){return n.settings.bogusComments?"<?"+Zr(t.value,Object.assign({},n.settings.characterReferences,{subset:lH}))+">":"<!--"+t.value.replace(aH,o)+"-->";function o(s){return Zr(s,Object.assign({},n.settings.characterReferences,{subset:uH}))}}i(uD,"comment");function cD(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}i(cD,"doctype");function H6e(t){let e=[],r=String(t||""),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)&&e.push(a),o=n+1,n=r.indexOf(",",o)}return e}i(H6e,"parse");function fD(t,e){let r=e||{};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}i(fD,"stringify");function U6e(t){let e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}i(U6e,"parse");function pD(t){return t.join(" ").trim()}i(pD,"stringify");var cH=/[ \t\n\f\r]/g;function Fi(t){return typeof t=="object"?t.type==="text"?hD(t.value):!1:hD(t)}i(Fi,"whitespace");function hD(t){return t.replace(cH,"")===""}i(hD,"empty");var qe=mD(1),Rg=mD(-1),fH=[];function mD(t){return e;function e(r,n,o){let s=r?r.children:fH,a=(n||0)+t,l=s[a];if(!o)for(;l&&Fi(l);)a+=t,l=s[a];return l}}i(mD,"siblings");var pH={}.hasOwnProperty;function xp(t){return e;function e(r,n,o){return pH.call(t,r.tagName)&&t[r.tagName](r,n,o)}}i(xp,"omission");var Ga=xp({body:mH,caption:Fg,colgroup:Fg,dd:yH,dt:xH,head:Fg,html:hH,li:gH,optgroup:wH,option:bH,p:dH,rp:dD,rt:dD,tbody:SH,td:gD,tfoot:kH,th:gD,thead:vH,tr:TH});function Fg(t,e,r){let n=qe(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Fi(n.value.charAt(0)))}i(Fg,"headOrColgroupOrCaption");function hH(t,e,r){let n=qe(r,e);return!n||n.type!=="comment"}i(hH,"html");function mH(t,e,r){let n=qe(r,e);return!n||n.type!=="comment"}i(mH,"body");function dH(t,e,r){let n=qe(r,e);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(dH,"p");function gH(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&n.tagName==="li"}i(gH,"li");function xH(t,e,r){let n=qe(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}i(xH,"dt");function yH(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}i(yH,"dd");function dD(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}i(dD,"rubyElement");function wH(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}i(wH,"optgroup");function bH(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}i(bH,"option");function vH(t,e,r){let n=qe(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}i(vH,"thead");function SH(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}i(SH,"tbody");function kH(t,e,r){return!qe(r,e)}i(kH,"tfoot");function TH(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&n.tagName==="tr"}i(TH,"tr");function gD(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}i(gD,"cells");var xD=xp({body:CH,colgroup:OH,head:DH,html:EH,tbody:MH});function EH(t){let e=qe(t,-1);return!e||e.type!=="comment"}i(EH,"html");function DH(t){let e=new Set;for(let n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}let r=t.children[0];return!r||r.type==="element"}i(DH,"head");function CH(t){let e=qe(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Fi(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}i(CH,"body");function OH(t,e,r){let n=Rg(r,e),o=qe(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Ga(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}i(OH,"colgroup");function MH(t,e,r){let n=Rg(r,e),o=qe(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Ga(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}i(MH,"tbody");var yp={name:[[`
89
+ `}),r}i(Vj,"wrap");function YE(t){let e=0,r=t.charCodeAt(e);for(;r===9||r===32;)e++,r=t.charCodeAt(e);return t.slice(e)}i(YE,"trimMarkdownSpaceStart");function Eg(t,e){let r=VE(t,e),n=r.one(t,void 0),o=qE(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(Eg,"toHast");var GE=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Xr=class{static{i(this,"Schema")}constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}};Xr.prototype.normal={},Xr.prototype.property={},Xr.prototype.space=void 0;function Dg(t,e){let r={},n={};for(let o of t)Object.assign(r,o.property),Object.assign(n,o.normal);return new Xr(r,n,e)}i(Dg,"merge");function xs(t){return t.toLowerCase()}i(xs,"normalize");var st=class{static{i(this,"Info")}constructor(e,r){this.attribute=r,this.property=e}};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 Va={};ae(Va,{boolean:()=>le,booleanish:()=>We,commaOrSpaceSeparated:()=>Ft,commaSeparated:()=>Fn,number:()=>L,overloadedBoolean:()=>fp,spaceSeparated:()=>Oe});var Gj=0,le=Ai(),We=Ai(),fp=Ai(),L=Ai(),Oe=Ai(),Fn=Ai(),Ft=Ai();function Ai(){return 2**++Gj}i(Ai,"increment");var Cg=Object.keys(Va),Ri=class extends st{static{i(this,"DefinedInfo")}constructor(e,r,n,o){let s=-1;if(super(e,r),JE(this,"space",o),typeof n=="number")for(;++s<Cg.length;){let a=Cg[s];JE(this,Cg[s],(n&Va[a])===Va[a])}}};Ri.prototype.defined=!0;function JE(t,e,r){r&&(t[e]=r)}i(JE,"mark");function tr(t){let e={},r={};for(let[n,o]of Object.entries(t.properties)){let s=new Ri(n,t.transform(t.attributes||{},n),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(s.mustUseProperty=!0),e[n]=s,r[xs(n)]=n,r[xs(s.attribute)]=n}return new Xr(e,r,t.space)}i(tr,"create");var Og=tr({properties:{ariaActiveDescendant:null,ariaAtomic:We,ariaAutoComplete:null,ariaBusy:We,ariaChecked:We,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:Oe,ariaCurrent:null,ariaDescribedBy:Oe,ariaDetails:null,ariaDisabled:We,ariaDropEffect:Oe,ariaErrorMessage:null,ariaExpanded:We,ariaFlowTo:Oe,ariaGrabbed:We,ariaHasPopup:null,ariaHidden:We,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Oe,ariaLevel:L,ariaLive:null,ariaModal:We,ariaMultiLine:We,ariaMultiSelectable:We,ariaOrientation:null,ariaOwns:Oe,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:We,ariaReadOnly:We,ariaRelevant:null,ariaRequired:We,ariaRoleDescription:Oe,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:We,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function pp(t,e){return e in t?t[e]:e}i(pp,"caseSensitiveTransform");function hp(t,e){return pp(t,e.toLowerCase())}i(hp,"caseInsensitiveTransform");var QE=tr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fn,acceptCharset:Oe,accessKey:Oe,action:null,allow:null,allowFullScreen:le,allowPaymentRequest:le,allowUserMedia:le,alt:null,as:null,async:le,autoCapitalize:null,autoComplete:Oe,autoFocus:le,autoPlay:le,blocking:Oe,capture:null,charSet:null,checked:le,cite:null,className:Oe,cols:L,colSpan:null,content:null,contentEditable:We,controls:le,controlsList:Oe,coords:L|Fn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:le,defer:le,dir:null,dirName:null,disabled:le,download:fp,draggable:We,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:le,formTarget:null,headers:Oe,height:L,hidden:fp,high:L,href:null,hrefLang:null,htmlFor:Oe,httpEquiv:Oe,id:null,imageSizes:null,imageSrcSet:null,inert:le,inputMode:null,integrity:null,is:null,isMap:le,itemId:null,itemProp:Oe,itemRef:Oe,itemScope:le,itemType:Oe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:le,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,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:L,pattern:null,ping:Oe,placeholder:null,playsInline:le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:le,referrerPolicy:null,rel:Oe,required:le,reversed:le,rows:L,rowSpan:L,sandbox:Oe,scope:null,scoped:le,seamless:le,selected:le,shadowRootClonable:le,shadowRootDelegatesFocus:le,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:We,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:le,useMap:null,value:We,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Oe,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,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:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:le,noHref:le,noShade:le,noWrap:le,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:We,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:le,disableRemotePlayback:le,prefix:null,property:null,results:L,security:null,unselectable:null},space:"html",transform:hp});var KE=tr({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:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:Oe,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:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:le,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,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:Fn,g2:Fn,glyphName:Fn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:Ft,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,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:L,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:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Oe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,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:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:Ft,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ft,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,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:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pp});var Mg=tr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}});var Ig=tr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:hp});var _g=tr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}});var Jj=/[A-Z]/g,XE=/-[a-z]/g,Qj=/^data[-\w.:]+$/i;function Pg(t,e){let r=xs(e),n=e,o=st;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Qj.test(e)){if(e.charAt(4)==="-"){let s=e.slice(5).replace(XE,Xj);n="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{let s=e.slice(4);if(!XE.test(s)){let a=s.replace(Jj,Kj);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}o=Ri}return new o(n,e)}i(Pg,"find");function Kj(t){return"-"+t.toLowerCase()}i(Kj,"kebab");function Xj(t){return t.charAt(1).toUpperCase()}i(Xj,"camelcase");var ZE=Dg([Og,QE,Mg,Ig,_g],"html"),mp=Dg([Og,KE,Mg,Ig,_g],"svg");var Zj=/["&'<>`]/g,eH=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tH=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,rH=/[|\\{}()[\]^$+*?.]/g,eD=new WeakMap;function Ng(t,e){if(t=t.replace(e.subset?nH(e.subset):Zj,n),e.subset||e.escapeOnly)return t;return t.replace(eH,r).replace(tH,n);function r(o,s,a){return e.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),e)}function n(o,s,a){return e.format(o.charCodeAt(0),a.charCodeAt(s+1),e)}}i(Ng,"core");function nH(t){let e=eD.get(t);return e||(e=iH(t),eD.set(t,e)),e}i(nH,"charactersToExpressionCached");function iH(t){let e=[],r=-1;for(;++r<t.length;)e.push(t[r].replace(rH,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}i(iH,"charactersToExpression");var oH=/[\dA-Fa-f]/;function tD(t,e,r){let n="&#x"+t.toString(16).toUpperCase();return r&&e&&!oH.test(String.fromCharCode(e))?n:n+";"}i(tD,"toHexadecimal");var sH=/\d/;function rD(t,e,r){let n="&#"+String(t);return r&&e&&!sH.test(String.fromCharCode(e))?n:n+";"}i(rD,"toDecimal");var nD=["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 dp={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 iD=["cent","copy","divide","gt","lt","not","para","times"];var oD={}.hasOwnProperty,Ag={},gp;for(gp in dp)oD.call(dp,gp)&&(Ag[dp[gp]]=gp);var aH=/[^\dA-Za-z]/;function sD(t,e,r,n){let o=String.fromCharCode(t);if(oD.call(Ag,o)){let s=Ag[o],a="&"+s;return r&&nD.includes(s)&&!iD.includes(s)&&(!n||e&&e!==61&&aH.test(String.fromCharCode(e)))?a:a+";"}return""}i(sD,"toNamed");function aD(t,e,r){let n=tD(t,e,r.omitOptionalSemicolons),o;if((r.useNamedReferences||r.useShortestReferences)&&(o=sD(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!o)&&r.useShortestReferences){let s=rD(t,e,r.omitOptionalSemicolons);s.length<n.length&&(n=s)}return o&&(!r.useShortestReferences||o.length<n.length)?o:n}i(aD,"formatSmart");function lD(t){return"&#x"+t.toString(16).toUpperCase()+";"}i(lD,"formatBasic");function Zr(t,e){return Ng(t,Object.assign({format:aD},e))}i(Zr,"stringifyEntities");function F6e(t,e){return Ng(t,Object.assign({format:lD},e))}i(F6e,"stringifyEntitiesLight");var lH=/^>|^->|<!--|-->|--!>|<!-$/g,uH=[">"],cH=["<",">"];function uD(t,e,r,n){return n.settings.bogusComments?"<?"+Zr(t.value,Object.assign({},n.settings.characterReferences,{subset:uH}))+">":"<!--"+t.value.replace(lH,o)+"-->";function o(s){return Zr(s,Object.assign({},n.settings.characterReferences,{subset:cH}))}}i(uD,"comment");function cD(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}i(cD,"doctype");function U6e(t){let e=[],r=String(t||""),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)&&e.push(a),o=n+1,n=r.indexOf(",",o)}return e}i(U6e,"parse");function fD(t,e){let r=e||{};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}i(fD,"stringify");function V6e(t){let e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}i(V6e,"parse");function pD(t){return t.join(" ").trim()}i(pD,"stringify");var fH=/[ \t\n\f\r]/g;function Fi(t){return typeof t=="object"?t.type==="text"?hD(t.value):!1:hD(t)}i(Fi,"whitespace");function hD(t){return t.replace(fH,"")===""}i(hD,"empty");var qe=mD(1),Rg=mD(-1),pH=[];function mD(t){return e;function e(r,n,o){let s=r?r.children:pH,a=(n||0)+t,l=s[a];if(!o)for(;l&&Fi(l);)a+=t,l=s[a];return l}}i(mD,"siblings");var hH={}.hasOwnProperty;function xp(t){return e;function e(r,n,o){return hH.call(t,r.tagName)&&t[r.tagName](r,n,o)}}i(xp,"omission");var Ga=xp({body:dH,caption:Fg,colgroup:Fg,dd:wH,dt:yH,head:Fg,html:mH,li:xH,optgroup:bH,option:vH,p:gH,rp:dD,rt:dD,tbody:kH,td:gD,tfoot:TH,th:gD,thead:SH,tr:EH});function Fg(t,e,r){let n=qe(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Fi(n.value.charAt(0)))}i(Fg,"headOrColgroupOrCaption");function mH(t,e,r){let n=qe(r,e);return!n||n.type!=="comment"}i(mH,"html");function dH(t,e,r){let n=qe(r,e);return!n||n.type!=="comment"}i(dH,"body");function gH(t,e,r){let n=qe(r,e);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(gH,"p");function xH(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&n.tagName==="li"}i(xH,"li");function yH(t,e,r){let n=qe(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}i(yH,"dt");function wH(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}i(wH,"dd");function dD(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}i(dD,"rubyElement");function bH(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}i(bH,"optgroup");function vH(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}i(vH,"option");function SH(t,e,r){let n=qe(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}i(SH,"thead");function kH(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}i(kH,"tbody");function TH(t,e,r){return!qe(r,e)}i(TH,"tfoot");function EH(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&n.tagName==="tr"}i(EH,"tr");function gD(t,e,r){let n=qe(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}i(gD,"cells");var xD=xp({body:OH,colgroup:MH,head:CH,html:DH,tbody:IH});function DH(t){let e=qe(t,-1);return!e||e.type!=="comment"}i(DH,"html");function CH(t){let e=new Set;for(let n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}let r=t.children[0];return!r||r.type==="element"}i(CH,"head");function OH(t){let e=qe(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Fi(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}i(OH,"body");function MH(t,e,r){let n=Rg(r,e),o=qe(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Ga(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}i(MH,"colgroup");function IH(t,e,r){let n=Rg(r,e),o=qe(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Ga(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}i(IH,"tbody");var yp={name:[[`
91
91
  \f\r &/=>`.split(""),`
92
92
  \f\r "&'/=>\``.split("")],[`\0
93
93
  \f\r "&'/<=>`.split(""),`\0
@@ -95,9 +95,9 @@ ${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 yD(t,e,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(t.tagName.toLowerCase()),l=[],u;o.space==="html"&&t.tagName==="svg"&&(n.schema=mp);let c=IH(n,t.properties),f=n.all(o.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=o,f&&(a=!1),(c||!s||!xD(t,e,r))&&(l.push("<",t.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||!Ga(t,e,r))&&l.push("</"+t.tagName+">"),l.join("")}i(yD,"element");function IH(t,e){let r=[],n=-1,o;if(e){for(o in e)if(e[o]!==null&&e[o]!==void 0){let s=_H(t,o,e[o]);s&&r.push(s)}}for(;++n<r.length;){let s=t.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&s!=='"'&&s!=="'"&&(r[n]+=" ")}return r.join("")}i(IH,"serializeAttributes");function _H(t,e,r){let n=Pg(t.schema,e),o=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,s=t.settings.allowDangerousCharacters?0:1,a=t.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=Zr(n.attribute,Object.assign({},t.settings.characterReferences,{subset:yp.name[o][s]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?fD:pD)(r,{padLeft:!t.settings.tightCommaSeparatedLists}):String(r),t.settings.collapseEmptyAttributes&&!r)?u:(t.settings.preferUnquoted&&(l=Zr(r,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:yp.unquoted[o][s]}))),l!==r&&(t.settings.quoteSmart&&os(r,a)>os(r,t.alternative)&&(a=t.alternative),l=a+Zr(r,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?yp.single:yp.double)[o][s],attribute:!0}))+a),u+(l&&"="+l))}i(_H,"serializeAttribute");var PH=["<","&"];function wp(t,e,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?t.value:Zr(t.value,Object.assign({},n.settings.characterReferences,{subset:PH}))}i(wp,"text");function wD(t,e,r,n){return n.settings.allowDangerousHtml?t.value:wp(t,e,r,n)}i(wD,"raw");function bD(t,e,r,n){return n.all(t)}i(bD,"root");var vD=Nf("type",{invalid:NH,unknown:AH,handlers:{comment:uD,doctype:cD,element:yD,raw:wD,root:bD,text:wp}});function NH(t){throw new Error("Expected node, not `"+t+"`")}i(NH,"invalid");function AH(t){let e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}i(AH,"unknown");var RH={},FH={},LH=[];function Lg(t,e){let r=e||RH,n=r.quote||'"',o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:BH,all:zH,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||GE,characterReferences:r.characterReferences||FH,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?mp:ZE,quote:n,alternative:o}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}i(Lg,"toHtml");function BH(t,e,r){return vD(t,e,r,this)}i(BH,"one");function zH(t){let e=[],r=t&&t.children||LH,n=-1;for(;++n<r.length;)e[n]=this.one(r[n],n,t);return e.join("")}i(zH,"all");var jH={};function ys(t){let e=this,{handlers:r,sanitize:n,...o}=t||jH,s=!1,a;typeof n=="boolean"?s=!n:n&&(a=n),e.compiler=l;function l(u,c){let f=Eg(u,{handlers:r,allowDangerousHtml:s}),p=s?f:Sg(f,a),h=Lg(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(ys,"remarkHtml");function ws(t){let e=this;e.compiler=r;function r(n){return Md(n,{...e.data("settings"),...t,extensions:e.data("toMarkdownExtensions")||[]})}i(r,"compiler")}i(ws,"remarkStringify");function HH(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])}return t}i(HH,"extend");function Bg(t,e){return Array(e+1).join(t)}i(Bg,"repeat");function SD(t){return t.replace(/^\n*/,"")}i(SD,"trimLeadingNewlines");function kD(t){for(var e=t.length;e>0&&t[e-1]===`
100
- `;)e--;return t.substring(0,e)}i(kD,"trimTrailingNewlines");function TD(t){return kD(SD(t))}i(TD,"trimNewlines");var WH=["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 zg(t){return jg(t,WH)}i(zg,"isBlock");var ED=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function DD(t){return jg(t,ED)}i(DD,"isVoid");function $H(t){return OD(t,ED)}i($H,"hasVoid");var CD=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function UH(t){return jg(t,CD)}i(UH,"isMeaningfulWhenBlank");function qH(t){return OD(t,CD)}i(qH,"hasMeaningfulWhenBlank");function jg(t,e){return e.indexOf(t.nodeName)>=0}i(jg,"is");function OD(t,e){return t.getElementsByTagName&&e.some(function(r){return t.getElementsByTagName(r).length})}i(OD,"has");var vt={};vt.paragraph={filter:"p",replacement:i(function(t){return`
98
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function yD(t,e,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(t.tagName.toLowerCase()),l=[],u;o.space==="html"&&t.tagName==="svg"&&(n.schema=mp);let c=_H(n,t.properties),f=n.all(o.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=o,f&&(a=!1),(c||!s||!xD(t,e,r))&&(l.push("<",t.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||!Ga(t,e,r))&&l.push("</"+t.tagName+">"),l.join("")}i(yD,"element");function _H(t,e){let r=[],n=-1,o;if(e){for(o in e)if(e[o]!==null&&e[o]!==void 0){let s=PH(t,o,e[o]);s&&r.push(s)}}for(;++n<r.length;){let s=t.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&s!=='"'&&s!=="'"&&(r[n]+=" ")}return r.join("")}i(_H,"serializeAttributes");function PH(t,e,r){let n=Pg(t.schema,e),o=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,s=t.settings.allowDangerousCharacters?0:1,a=t.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=Zr(n.attribute,Object.assign({},t.settings.characterReferences,{subset:yp.name[o][s]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?fD:pD)(r,{padLeft:!t.settings.tightCommaSeparatedLists}):String(r),t.settings.collapseEmptyAttributes&&!r)?u:(t.settings.preferUnquoted&&(l=Zr(r,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:yp.unquoted[o][s]}))),l!==r&&(t.settings.quoteSmart&&os(r,a)>os(r,t.alternative)&&(a=t.alternative),l=a+Zr(r,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?yp.single:yp.double)[o][s],attribute:!0}))+a),u+(l&&"="+l))}i(PH,"serializeAttribute");var NH=["<","&"];function wp(t,e,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?t.value:Zr(t.value,Object.assign({},n.settings.characterReferences,{subset:NH}))}i(wp,"text");function wD(t,e,r,n){return n.settings.allowDangerousHtml?t.value:wp(t,e,r,n)}i(wD,"raw");function bD(t,e,r,n){return n.all(t)}i(bD,"root");var vD=Nf("type",{invalid:AH,unknown:RH,handlers:{comment:uD,doctype:cD,element:yD,raw:wD,root:bD,text:wp}});function AH(t){throw new Error("Expected node, not `"+t+"`")}i(AH,"invalid");function RH(t){let e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}i(RH,"unknown");var FH={},LH={},BH=[];function Lg(t,e){let r=e||FH,n=r.quote||'"',o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:zH,all:jH,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||GE,characterReferences:r.characterReferences||LH,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?mp:ZE,quote:n,alternative:o}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}i(Lg,"toHtml");function zH(t,e,r){return vD(t,e,r,this)}i(zH,"one");function jH(t){let e=[],r=t&&t.children||BH,n=-1;for(;++n<r.length;)e[n]=this.one(r[n],n,t);return e.join("")}i(jH,"all");var HH={};function ys(t){let e=this,{handlers:r,sanitize:n,...o}=t||HH,s=!1,a;typeof n=="boolean"?s=!n:n&&(a=n),e.compiler=l;function l(u,c){let f=Eg(u,{handlers:r,allowDangerousHtml:s}),p=s?f:Sg(f,a),h=Lg(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(ys,"remarkHtml");function ws(t){let e=this;e.compiler=r;function r(n){return Md(n,{...e.data("settings"),...t,extensions:e.data("toMarkdownExtensions")||[]})}i(r,"compiler")}i(ws,"remarkStringify");function WH(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])}return t}i(WH,"extend");function Bg(t,e){return Array(e+1).join(t)}i(Bg,"repeat");function SD(t){return t.replace(/^\n*/,"")}i(SD,"trimLeadingNewlines");function kD(t){for(var e=t.length;e>0&&t[e-1]===`
100
+ `;)e--;return t.substring(0,e)}i(kD,"trimTrailingNewlines");function TD(t){return kD(SD(t))}i(TD,"trimNewlines");var $H=["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 zg(t){return jg(t,$H)}i(zg,"isBlock");var ED=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function DD(t){return jg(t,ED)}i(DD,"isVoid");function UH(t){return OD(t,ED)}i(UH,"hasVoid");var CD=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function qH(t){return jg(t,CD)}i(qH,"isMeaningfulWhenBlank");function YH(t){return OD(t,CD)}i(YH,"hasMeaningfulWhenBlank");function jg(t,e){return e.indexOf(t.nodeName)>=0}i(jg,"is");function OD(t,e){return t.getElementsByTagName&&e.some(function(r){return t.getElementsByTagName(r).length})}i(OD,"has");var vt={};vt.paragraph={filter:"p",replacement:i(function(t){return`
101
101
 
102
102
  `+t+`
103
103
 
@@ -144,7 +144,7 @@ ${o}
144
144
  `)+`
145
145
 
146
146
  `,this.references=[]),e},"append")},vt.emphasis={filter:["em","i"],replacement:i(function(t,e,r){return t.trim()?r.emDelimiter+t+r.emDelimiter:""},"replacement")},vt.strong={filter:["strong","b"],replacement:i(function(t,e,r){return t.trim()?r.strongDelimiter+t+r.strongDelimiter:""},"replacement")},vt.code={filter:i(function(t){var e=t.previousSibling||t.nextSibling,r=t.parentNode.nodeName==="PRE"&&!e;return t.nodeName==="CODE"&&!r},"filter"),replacement:i(function(t){if(!t)return"";t=t.replace(/\r?\n|\r/g," ");for(var e=/^`|^ .*?[^ ].* $|`$/.test(t)?" ":"",r="`",n=t.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+e+t+e+r},"replacement")},vt.image={filter:"img",replacement:i(function(t,e){var r=bp(e.getAttribute("alt")),n=e.getAttribute("src")||"",o=bp(e.getAttribute("title")),s=o?' "'+o+'"':"";return n?"!["+r+"]("+n+s+")":""},"replacement")};function bp(t){return t?t.replace(/(\n+\s*)+/g,`
147
- `):""}i(bp,"cleanAttribute");function MD(t){this.options=t,this._keep=[],this._remove=[],this.blankRule={replacement:t.blankReplacement},this.keepReplacement=t.keepReplacement,this.defaultRule={replacement:t.defaultReplacement},this.array=[];for(var e in t.rules)this.array.push(t.rules[e])}i(MD,"Rules"),MD.prototype={add:i(function(t,e){this.array.unshift(e)},"add"),keep:i(function(t){this._keep.unshift({filter:t,replacement:this.keepReplacement})},"keep"),remove:i(function(t){this._remove.unshift({filter:t,replacement:i(function(){return""},"replacement")})},"remove"),forNode:i(function(t){if(t.isBlank)return this.blankRule;var e;return(e=Hg(this.array,t,this.options))||(e=Hg(this._keep,t,this.options))||(e=Hg(this._remove,t,this.options))?e:this.defaultRule},"forNode"),forEach:i(function(t){for(var e=0;e<this.array.length;e++)t(this.array[e],e)},"forEach")};function Hg(t,e,r){for(var n=0;n<t.length;n++){var o=t[n];if(YH(o,e,r))return o}}i(Hg,"findRule");function YH(t,e,r){var n=t.filter;if(typeof n=="string"){if(n===e.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(e.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(t,e,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}i(YH,"filterValue");function VH(t){var e=t.element,r=t.isBlock,n=t.isVoid,o=t.isPre||function(p){return p.nodeName==="PRE"};if(!(!e.firstChild||o(e))){for(var s=null,a=!1,l=null,u=ID(l,e,o);u!==e;){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=Wg(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=Wg(u);continue}var f=ID(l,u,o);l=u,u=f}s&&(s.data=s.data.replace(/ $/,""),s.data||Wg(s))}}i(VH,"collapseWhitespace");function Wg(t){var e=t.nextSibling||t.parentNode;return t.parentNode.removeChild(t),e}i(Wg,"remove");function ID(t,e,r){return t&&t.parentNode===e||r(e)?e.nextSibling||e.parentNode:e.firstChild||e.nextSibling||e.parentNode}i(ID,"next");var $g=typeof window<"u"?window:{};function GH(){var t=$g.DOMParser,e=!1;try{new t().parseFromString("","text/html")&&(e=!0)}catch{}return e}i(GH,"canParseHTMLNatively");function JH(){var t=i(function(){},"Parser");return QH()?t.prototype.parseFromString=function(e){var r=new window.ActiveXObject("htmlfile");return r.designMode="on",r.open(),r.write(e),r.close(),r}:t.prototype.parseFromString=function(e){var r=document.implementation.createHTMLDocument("");return r.open(),r.write(e),r.close(),r},t}i(JH,"createHTMLParser");function QH(){var t=!1;try{document.implementation.createHTMLDocument("").open()}catch{$g.ActiveXObject&&(t=!0)}return t}i(QH,"shouldUseActiveX");var KH=GH()?$g.DOMParser:JH();function XH(t,e){var r;if(typeof t=="string"){var n=ZH().parseFromString('<x-turndown id="turndown-root">'+t+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=t.cloneNode(!0);return VH({element:r,isBlock:zg,isVoid:DD,isPre:e.preformattedCode?eW:null}),r}i(XH,"RootNode");var Ug;function ZH(){return Ug=Ug||new KH,Ug}i(ZH,"htmlParser");function eW(t){return t.nodeName==="PRE"||t.nodeName==="CODE"}i(eW,"isPreOrCode");function tW(t,e){return t.isBlock=zg(t),t.isCode=t.nodeName==="CODE"||t.parentNode.isCode,t.isBlank=rW(t),t.flankingWhitespace=nW(t,e),t}i(tW,"Node");function rW(t){return!DD(t)&&!UH(t)&&/^\s*$/i.test(t.textContent)&&!$H(t)&&!qH(t)}i(rW,"isBlank");function nW(t,e){if(t.isBlock||e.preformattedCode&&t.isCode)return{leading:"",trailing:""};var r=iW(t.textContent);return r.leadingAscii&&_D("left",t,e)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&_D("right",t,e)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}i(nW,"flankingWhitespace");function iW(t){var e=t.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:e[1],leadingAscii:e[2],leadingNonAscii:e[3],trailing:e[4],trailingNonAscii:e[5],trailingAscii:e[6]}}i(iW,"edgeWhitespace");function _D(t,e,r){var n,o,s;return t==="left"?(n=e.previousSibling,o=/ $/):(n=e.nextSibling,o=/^ /),n&&(n.nodeType===3?s=o.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?s=!1:n.nodeType===1&&!zg(n)&&(s=o.test(n.textContent))),s}i(_D,"isFlankedByWhitespace");var oW=Array.prototype.reduce,sW=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function vp(t){if(!(this instanceof vp))return new vp(t);var e={rules:vt,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:i(function(r,n){return n.isBlock?`
147
+ `):""}i(bp,"cleanAttribute");function MD(t){this.options=t,this._keep=[],this._remove=[],this.blankRule={replacement:t.blankReplacement},this.keepReplacement=t.keepReplacement,this.defaultRule={replacement:t.defaultReplacement},this.array=[];for(var e in t.rules)this.array.push(t.rules[e])}i(MD,"Rules"),MD.prototype={add:i(function(t,e){this.array.unshift(e)},"add"),keep:i(function(t){this._keep.unshift({filter:t,replacement:this.keepReplacement})},"keep"),remove:i(function(t){this._remove.unshift({filter:t,replacement:i(function(){return""},"replacement")})},"remove"),forNode:i(function(t){if(t.isBlank)return this.blankRule;var e;return(e=Hg(this.array,t,this.options))||(e=Hg(this._keep,t,this.options))||(e=Hg(this._remove,t,this.options))?e:this.defaultRule},"forNode"),forEach:i(function(t){for(var e=0;e<this.array.length;e++)t(this.array[e],e)},"forEach")};function Hg(t,e,r){for(var n=0;n<t.length;n++){var o=t[n];if(VH(o,e,r))return o}}i(Hg,"findRule");function VH(t,e,r){var n=t.filter;if(typeof n=="string"){if(n===e.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(e.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(t,e,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}i(VH,"filterValue");function GH(t){var e=t.element,r=t.isBlock,n=t.isVoid,o=t.isPre||function(p){return p.nodeName==="PRE"};if(!(!e.firstChild||o(e))){for(var s=null,a=!1,l=null,u=ID(l,e,o);u!==e;){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=Wg(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=Wg(u);continue}var f=ID(l,u,o);l=u,u=f}s&&(s.data=s.data.replace(/ $/,""),s.data||Wg(s))}}i(GH,"collapseWhitespace");function Wg(t){var e=t.nextSibling||t.parentNode;return t.parentNode.removeChild(t),e}i(Wg,"remove");function ID(t,e,r){return t&&t.parentNode===e||r(e)?e.nextSibling||e.parentNode:e.firstChild||e.nextSibling||e.parentNode}i(ID,"next");var $g=typeof window<"u"?window:{};function JH(){var t=$g.DOMParser,e=!1;try{new t().parseFromString("","text/html")&&(e=!0)}catch{}return e}i(JH,"canParseHTMLNatively");function QH(){var t=i(function(){},"Parser");return KH()?t.prototype.parseFromString=function(e){var r=new window.ActiveXObject("htmlfile");return r.designMode="on",r.open(),r.write(e),r.close(),r}:t.prototype.parseFromString=function(e){var r=document.implementation.createHTMLDocument("");return r.open(),r.write(e),r.close(),r},t}i(QH,"createHTMLParser");function KH(){var t=!1;try{document.implementation.createHTMLDocument("").open()}catch{$g.ActiveXObject&&(t=!0)}return t}i(KH,"shouldUseActiveX");var XH=JH()?$g.DOMParser:QH();function ZH(t,e){var r;if(typeof t=="string"){var n=eW().parseFromString('<x-turndown id="turndown-root">'+t+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=t.cloneNode(!0);return GH({element:r,isBlock:zg,isVoid:DD,isPre:e.preformattedCode?tW:null}),r}i(ZH,"RootNode");var Ug;function eW(){return Ug=Ug||new XH,Ug}i(eW,"htmlParser");function tW(t){return t.nodeName==="PRE"||t.nodeName==="CODE"}i(tW,"isPreOrCode");function rW(t,e){return t.isBlock=zg(t),t.isCode=t.nodeName==="CODE"||t.parentNode.isCode,t.isBlank=nW(t),t.flankingWhitespace=iW(t,e),t}i(rW,"Node");function nW(t){return!DD(t)&&!qH(t)&&/^\s*$/i.test(t.textContent)&&!UH(t)&&!YH(t)}i(nW,"isBlank");function iW(t,e){if(t.isBlock||e.preformattedCode&&t.isCode)return{leading:"",trailing:""};var r=oW(t.textContent);return r.leadingAscii&&_D("left",t,e)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&_D("right",t,e)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}i(iW,"flankingWhitespace");function oW(t){var e=t.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:e[1],leadingAscii:e[2],leadingNonAscii:e[3],trailing:e[4],trailingNonAscii:e[5],trailingAscii:e[6]}}i(oW,"edgeWhitespace");function _D(t,e,r){var n,o,s;return t==="left"?(n=e.previousSibling,o=/ $/):(n=e.nextSibling,o=/^ /),n&&(n.nodeType===3?s=o.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?s=!1:n.nodeType===1&&!zg(n)&&(s=o.test(n.textContent))),s}i(_D,"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 vp(t){if(!(this instanceof vp))return new vp(t);var e={rules:vt,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,15 +154,15 @@ ${o}
154
154
 
155
155
  `+r+`
156
156
 
157
- `:r},"defaultReplacement")};this.options=HH({},e,t),this.rules=new MD(this.options)}i(vp,"TurndownService"),vp.prototype={turndown:i(function(t){if(!uW(t))throw new TypeError(t+" is not a string, or an element/document/fragment node.");if(t==="")return"";var e=PD.call(this,new XH(t,this.options));return aW.call(this,e)},"turndown"),use:i(function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.use(t[e]);else if(typeof t=="function")t(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},"use"),addRule:i(function(t,e){return this.rules.add(t,e),this},"addRule"),keep:i(function(t){return this.rules.keep(t),this},"keep"),remove:i(function(t){return this.rules.remove(t),this},"remove"),escape:i(function(t){return sW.reduce(function(e,r){return e.replace(r[0],r[1])},t)},"escape")};function PD(t){var e=this;return oW.call(t.childNodes,function(r,n){n=new tW(n,e.options);var o="";return n.nodeType===3?o=n.isCode?n.nodeValue:e.escape(n.nodeValue):n.nodeType===1&&(o=lW.call(e,n)),ND(r,o)},"")}i(PD,"process");function aW(t){var e=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(t=ND(t,r.append(e.options)))}),t.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}i(aW,"postProcess");function lW(t){var e=this.rules.forNode(t),r=PD.call(this,t),n=t.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+e.replacement(r,t,this.options)+n.trailing}i(lW,"replacementForNode");function ND(t,e){var r=kD(t),n=SD(e),o=Math.max(t.length-r.length,e.length-n.length),s=`
157
+ `:r},"defaultReplacement")};this.options=WH({},e,t),this.rules=new MD(this.options)}i(vp,"TurndownService"),vp.prototype={turndown:i(function(t){if(!cW(t))throw new TypeError(t+" is not a string, or an element/document/fragment node.");if(t==="")return"";var e=PD.call(this,new ZH(t,this.options));return lW.call(this,e)},"turndown"),use:i(function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.use(t[e]);else if(typeof t=="function")t(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},"use"),addRule:i(function(t,e){return this.rules.add(t,e),this},"addRule"),keep:i(function(t){return this.rules.keep(t),this},"keep"),remove:i(function(t){return this.rules.remove(t),this},"remove"),escape:i(function(t){return aW.reduce(function(e,r){return e.replace(r[0],r[1])},t)},"escape")};function PD(t){var e=this;return sW.call(t.childNodes,function(r,n){n=new rW(n,e.options);var o="";return n.nodeType===3?o=n.isCode?n.nodeValue:e.escape(n.nodeValue):n.nodeType===1&&(o=uW.call(e,n)),ND(r,o)},"")}i(PD,"process");function lW(t){var e=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(t=ND(t,r.append(e.options)))}),t.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}i(lW,"postProcess");function uW(t){var e=this.rules.forNode(t),r=PD.call(this,t),n=t.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+e.replacement(r,t,this.options)+n.trailing}i(uW,"replacementForNode");function ND(t,e){var r=kD(t),n=SD(e),o=Math.max(t.length-r.length,e.length-n.length),s=`
158
158
 
159
- `.substring(0,o);return r+s+n}i(ND,"join");function uW(t){return t!=null&&(typeof t=="string"||t.nodeType&&(t.nodeType===1||t.nodeType===9||t.nodeType===11))}i(uW,"canConvert");var Sp=vp;var Ja={};ae(Ja,{gfm:()=>FD,highlightedCodeBlock:()=>Yg,strikethrough:()=>Vg,tables:()=>Gg,taskListItems:()=>Jg});var AD=/highlight-(?:text|source)-([a-z0-9]+)/;function Yg(t){t.addRule("highlightedCodeBlock",{filter:i(function(e){var r=e.firstChild;return e.nodeName==="DIV"&&AD.test(e.className)&&r&&r.nodeName==="PRE"},"filter"),replacement:i(function(e,r,n){var o=r.className||"",s=(o.match(AD)||[null,""])[1];return`
159
+ `.substring(0,o);return r+s+n}i(ND,"join");function cW(t){return t!=null&&(typeof t=="string"||t.nodeType&&(t.nodeType===1||t.nodeType===9||t.nodeType===11))}i(cW,"canConvert");var Sp=vp;var Ja={};ae(Ja,{gfm:()=>FD,highlightedCodeBlock:()=>Yg,strikethrough:()=>Vg,tables:()=>Gg,taskListItems:()=>Jg});var AD=/highlight-(?:text|source)-([a-z0-9]+)/;function Yg(t){t.addRule("highlightedCodeBlock",{filter:i(function(e){var r=e.firstChild;return e.nodeName==="DIV"&&AD.test(e.className)&&r&&r.nodeName==="PRE"},"filter"),replacement:i(function(e,r,n){var o=r.className||"",s=(o.match(AD)||[null,""])[1];return`
160
160
 
161
161
  `+n.fence+s+`
162
162
  `+r.firstChild.textContent+`
163
163
  `+n.fence+`
164
164
 
165
- `},"replacement")})}i(Yg,"highlightedCodeBlock");function Vg(t){t.addRule("strikethrough",{filter:["del","s","strike"],replacement:i(function(e){return"~"+e+"~"},"replacement")})}i(Vg,"strikethrough");var cW=Array.prototype.indexOf,fW=Array.prototype.every,bs={};bs.tableCell={filter:["th","td"],replacement:i(function(t,e){return RD(t,e)},"replacement")},bs.tableRow={filter:"tr",replacement:i(function(t,e){var r="",n={left:":--",right:"--:",center:":-:"};if(qg(e))for(var o=0;o<e.childNodes.length;o++){var s="---",a=(e.childNodes[o].getAttribute("align")||"").toLowerCase();a&&(s=n[a]||s),r+=RD(s,e.childNodes[o])}return`
165
+ `},"replacement")})}i(Yg,"highlightedCodeBlock");function Vg(t){t.addRule("strikethrough",{filter:["del","s","strike"],replacement:i(function(e){return"~"+e+"~"},"replacement")})}i(Vg,"strikethrough");var fW=Array.prototype.indexOf,pW=Array.prototype.every,bs={};bs.tableCell={filter:["th","td"],replacement:i(function(t,e){return RD(t,e)},"replacement")},bs.tableRow={filter:"tr",replacement:i(function(t,e){var r="",n={left:":--",right:"--:",center:":-:"};if(qg(e))for(var o=0;o<e.childNodes.length;o++){var s="---",a=(e.childNodes[o].getAttribute("align")||"").toLowerCase();a&&(s=n[a]||s),r+=RD(s,e.childNodes[o])}return`
166
166
  `+t+(r?`
167
167
  `+r:"")},"replacement")},bs.table={filter:i(function(t){return t.nodeName==="TABLE"&&qg(t.rows[0])},"filter"),replacement:i(function(t){return t=t.replace(`
168
168
 
@@ -171,27 +171,27 @@ ${o}
171
171
 
172
172
  `+t+`
173
173
 
174
- `},"replacement")},bs.tableSection={filter:["thead","tbody","tfoot"],replacement:i(function(t){return t},"replacement")};function qg(t){var e=t.parentNode;return e.nodeName==="THEAD"||e.firstChild===t&&(e.nodeName==="TABLE"||pW(e))&&fW.call(t.childNodes,function(r){return r.nodeName==="TH"})}i(qg,"isHeadingRow");function pW(t){var e=t.previousSibling;return t.nodeName==="TBODY"&&(!e||e.nodeName==="THEAD"&&/^\s*$/i.test(e.textContent))}i(pW,"isFirstTbody");function RD(t,e){var r=cW.call(e.parentNode.childNodes,e),n=" ";return r===0&&(n="| "),n+t+" |"}i(RD,"cell");function Gg(t){t.keep(function(r){return r.nodeName==="TABLE"&&!qg(r.rows[0])});for(var e in bs)t.addRule(e,bs[e])}i(Gg,"tables");function Jg(t){t.addRule("taskListItems",{filter:i(function(e){return e.type==="checkbox"&&e.parentNode.nodeName==="LI"},"filter"),replacement:i(function(e,r){return(r.checked?"[x]":"[ ]")+" "},"replacement")})}i(Jg,"taskListItems");function FD(t){t.use([Yg,Vg,Gg,Jg])}i(FD,"gfm");var Qg=jt(h1(),1);var kp=class t{static{i(this,"MdParsedResult")}static async createFromMarkdownString(e){let r=new t;return await r.updateFromMarkdownString(e),r}async updateFromMarkdownString(e){let r,n=await Oa().use(ps).use(fs).use(ms,["yaml","toml"]).use(ws).use(ys).use(()=>o=>{console.dir(o);let s=o.children.find(a=>a.type==="yaml");s&&(r=s.value)}).process(e);this.html=n.toString(),r?this.frontmatterData=await Qg.yamlStringToObject(r):this.frontmatterData={}}};var Kg=class t{static{i(this,"SmartMarkdown")}static async easyMarkdownToHtml(e){return(await new t().getMdParsedResultFromMarkdown(e)).html}constructor(){}async getMdParsedResultFromMarkdown(e){return await kp.createFromMarkdownString(e)}htmlToMarkdown(e){let r=new Sp({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(Ja.gfm),r.turndown(e)}};var Li={};ae(Li,{SmartRouter:()=>ix});var nx=jt(UD(),1);var Ep=class{static{i(this,"QueryParams")}constructor(){}getAllAsObject(){let e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())}setQueryParam(e,r,n="replace"){var o=new URLSearchParams(window.location.search);o.set(e,r),n==="push"?history.pushState(null,null,"?"+o.toString()):history.replaceState(null,null,"?"+o.toString())}deleteQueryParam(e,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(e),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(e){return this.getAllAsObject()[e]}};var T5e=i(t=>{console.log(`%c[Router]%c ${t}`,"color: rgb(255, 105, 100);","color: inherit")},"routeLog"),ix=class t{static{i(this,"SmartRouter")}constructor(e,r=""){this.options={debug:!1},this.queryParams=new Ep,this.routes=[],this.options={...this.options,...e},this.basePath=r,this.popstateListener=n=>{n.preventDefault(),this._handleRouteState()},window.addEventListener("popstate",this.popstateListener)}createSubRouter(e,r){let n=`${this.basePath}${e}`;return new t({...this.options,...r},n)}async pushUrl(e="/",r={}){let n=`${this.basePath}${e}`;n!==window.location.pathname?window.history.pushState(r,window.document.title,n):window.history.replaceState(r,window.document.title,n),await this._handleRouteState()}on(e,r){let n=`${this.basePath}${e}`,o={matchFunction:nx.match(n),handler:r};return this.routes.push(o),i(()=>{this.routes.splice(this.routes.indexOf(o),1)},"removeFunction")}async _handleRouteState(){let e=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(e));for(let n of r){let o=n.matchFunction(e);n.handler({...o.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var Wi={};ae(Wi,{Smartstate:()=>Cx,StateAction:()=>nl,StatePart:()=>il,StateProcess:()=>Es,attachContextProvider:()=>kU,computed:()=>Dx});var rl={};ae(rl,{md5FromString:()=>wU,sha256FromBuffer:()=>dU,sha256FromFile:()=>yU,sha256FromStream:()=>xU,sha256FromString:()=>jC,sha256FromStringSync:()=>mU,sha265FromObject:()=>gU});var Ka={};ae(Ka,{Smartenv:()=>ox});var ox=class{static{i(this,"Smartenv")}constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}. This does not throw.`);return}let n=await new Function(`return import('${e}')`)();return r&&await r(n),n}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let n=re.defer();if(globalThis.importScripts)globalThis.importScripts(e),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=e,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 tl={};ae(tl,{Smartjson:()=>Tx,deepEqualJsonLStrings:()=>uU,deepEqualObjects:()=>LC,foldDec:()=>lU,parse:()=>Lp,parseBase64:()=>aU,parseJsonL:()=>kx,stableOneWayStringify:()=>iU,stringify:()=>Hi,stringifyBase64:()=>sU,stringifyJsonL:()=>nU,stringifyPretty:()=>oU});var Ap=jt(PC(),1),NC=jt(fm(),1),Rp=NC.default;function X$(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(String.fromCharCode(...t))}i(X$,"base64Encode");function Z$(t){if(typeof Buffer<"u"){let e=Buffer.from(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}return new Uint8Array(Array.from(atob(t)).map(e=>e.charCodeAt(0)))}i(Z$,"base64Decode");function vx(t,e){return JSON.stringify(t,Fp,e)}i(vx,"stringify");function Sx(t){return JSON.parse(t,AC)}i(Sx,"parse");var Fp=i((t,e)=>{if(tU(e)){let r;if("data"in e&&RC(e.data))r=new Uint8Array(e.data);else if(e instanceof Uint8Array)r=e;else return e;return{type:"EncodedBuffer",data:"base64:"+X$(r)}}return e},"replacer"),AC=i((t,e)=>{if(eU(e)&&bx(e.data)&&e.data.startsWith("base64:")){let r=e.data.slice(7);return Z$(r)}return e},"reviver");function eU(t){return FC(t)&&t.type==="EncodedBuffer"&&bx(t.data)}i(eU,"isEncodedBuffer");function tU(t){return FC(t)&&t.type==="Buffer"&&(RC(t.data)||bx(t.data))||t instanceof Uint8Array}i(tU,"isBufferLike");function RC(t){return Array.isArray(t)}i(RC,"isArray");function bx(t){return typeof t=="string"}i(bx,"isString");function FC(t){return typeof t=="object"&&t!==null}i(FC,"isObject");var Lp=Sx,kx=i(t=>t.split(`
175
- `).reduce((n,o)=>{let s=o.trim();return s.length>0&&n.push(Lp(s)),n},[]),"parseJsonL"),nU=i(t=>t.map(e=>Hi(e)).join(`
176
- `),"stringifyJsonL"),iU=i((t,e,r={})=>{let n=new WeakSet,o=i(l=>{if(l===null||typeof l!="object")return l;let u=Fp("",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(t),a={...r,cycles:!0};if(e&&!a.cmp){let l=new Map;e.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 Rp(s,a)},"stableOneWayStringify"),Hi=i((t,e,r={})=>{let n=vx(t);t=JSON.parse(n);let o={...r};if(e&&!o.cmp){let a=new Map;e.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 Rp(t,o)},"stringify"),oU=i(t=>{let e=Hi(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},"stringifyPretty"),sU=i((...t)=>{let e=Hi(...t);return Et.base64.encodeUri(e)},"stringifyBase64"),aU=i(t=>{let e=Et.base64,n=(e.decodeUri||e.decode)(t);return Lp(n)},"parseBase64"),Tx=class t{static{i(this,"Smartjson")}static enfoldFromObject(e){let r=new this,n=r.saveableProperties||[];for(let o in e)n.indexOf(o)!==-1&&(r[o]=e[o]);return r}static enfoldFromJson(e){let r=Lp(e);return this.enfoldFromObject(r)}foldToObject(){let e=new Set;return e.add(this),this.foldToObjectInternal(e)}foldToObjectInternal(e){let r={},n=i(s=>{if(s instanceof t){if(e.has(s))throw new Error("cycle detected");return e.add(s),s.foldToObjectInternal(e)}return Array.isArray(s)?s.map(a=>n(a)):Ap.default(s)},"foldValue"),o=this.saveableProperties||[];for(let s of o){let a=this[s];r[s]=n(a)}return r}foldToJson(){let e=this.foldToObject();return Hi(e)}},lU=i(()=>(t,e)=>{t.saveableProperties||(t.saveableProperties=[]),t.saveableProperties.push(e)},"foldDec"),LC=i((t,e)=>{let r=Hi(t),n=Hi(e);return r===n},"deepEqualObjects"),uU=i((t,e)=>{let r=kx(t),n=kx(e);return LC(r,n)},"deepEqualJsonLStrings");var fU=[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],pU=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function zr(t,e){return t>>>e|t<<32-e}i(zr,"rotr");function hU(t,e){let r=e[0],n=e[1],o=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7];for(let f=0;f<64;f++){if(f>=16){let w=zr(t[f-15],7)^zr(t[f-15],18)^t[f-15]>>>3,T=zr(t[f-2],17)^zr(t[f-2],19)^t[f-2]>>>10;t[f]=t[f-16]+w+t[f-7]+T>>>0}let p=zr(a,6)^zr(a,11)^zr(a,25),h=a&l^~a&u,m=c+p+h+fU[f]+t[f]>>>0,d=zr(r,2)^zr(r,13)^zr(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}e[0]=e[0]+r>>>0,e[1]=e[1]+n>>>0,e[2]=e[2]+o>>>0,e[3]=e[3]+s>>>0,e[4]=e[4]+a>>>0,e[5]=e[5]+l>>>0,e[6]=e[6]+u>>>0,e[7]=e[7]+c>>>0}i(hU,"sha256Transform");function Ex(t){let e=[...pU],r=t.length,n=r*8,o=r%64<56?56-r%64:120-r%64,s=new Uint8Array(r+o+8);s.set(t),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);hU(c,e)}let l="";for(let u=0;u<8;u++)l+=e[u].toString(16).padStart(8,"0");return l}i(Ex,"sha256Fallback");var BC=i(t=>{let e=[],r=new DataView(t);for(let n=0;n<r.byteLength;n+=4){let s=r.getUint32(n).toString(16),a="00000000",l=(a+s).slice(-a.length);e.push(l)}return e.join("")},"hex"),zC=i(()=>typeof crypto<"u"&&crypto.subtle!==void 0,"isCryptoSubtleAvailable"),jC=i(async t=>{let e=new TextEncoder().encode(t);if(zC()){let r=await crypto.subtle.digest("SHA-256",e);return BC(r)}else return Ex(e)},"sha256FromString"),mU=i(t=>{throw console.warn("sha256FromStringSync is not truly synchronous in browser environment"),new Error("sha256FromStringSync is not supported in browser environment. Use sha256FromString instead.")},"sha256FromStringSync"),dU=i(async t=>{if(zC()){let e;if(t instanceof Uint8Array){let o=t;e=o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}else e=t;let r=await crypto.subtle.digest("SHA-256",e);return BC(r)}else{let e=t instanceof Uint8Array?t:new Uint8Array(t);return Ex(e)}},"sha256FromBuffer"),gU=i(async t=>{let e=tl.stringify(t);return await jC(e)},"sha265FromObject"),xU=i(t=>{throw new Error("sha256FromStream is not supported in browser environment")},"sha256FromStream"),yU=i(async t=>{throw new Error("sha256FromFile is not supported in browser environment")},"sha256FromFile"),wU=i(async t=>{throw new Error("md5FromString is not supported in browser environment. Web Crypto API does not support MD5.")},"md5FromString");var nl=class{static{i(this,"StateAction")}constructor(e,r){this.statePartRef=e,this.actionDef=r}trigger(e){return this.statePartRef.dispatchAction(this,e)}};function vU(){return typeof document>"u"?Bs(!0):new ye(t=>{t.next(!document.hidden);let e=i(()=>t.next(!document.hidden),"handler");return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)})}i(vU,"createVisibilityObservable");var Es=class{static{i(this,"StateProcess")}constructor(e,r){this.statusSubject=new ro("idle"),this.producerSubscription=null,this.autoPauseSubscription=null,this.processingQueue=Promise.resolve(),this.statePartRef=e,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 e=this.producerFn();this.producerSubscription=e.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 e=this.autoPauseOption==="visibility"?vU():this.autoPauseOption;this.autoPauseSubscription=e.subscribe(r=>{!r&&this.status==="running"?this.pause():r&&this.status==="paused"&&this.resume()})}teardownAutoPause(){this.autoPauseSubscription&&(this.autoPauseSubscription.unsubscribe(),this.autoPauseSubscription=null)}};function SU(t){return new ye(e=>{if(t.aborted){e.next(),e.complete();return}let r=i(()=>{e.next(),e.complete()},"handler");return t.addEventListener("abort",r),()=>t.removeEventListener("abort",r)})}i(SU,"fromAbortSignal");var il=class t{static{i(this,"StatePart")}static{this.MAX_NESTED_DISPATCH_DEPTH=10}constructor(e,r){this.state=new ro(void 0),this.disposed=!1,this.cumulativeDeferred=re.cumulativeDefer(),this.mutationQueue=Promise.resolve(),this.pendingCumulativeNotification=null,this.webStore=null,this.middlewares=[],this.processes=[],this.selectorCache=new WeakMap,this.defaultSelectObservable=null,this.name=e,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new ar.WebStore(this.webStoreOptions),await this.webStore.init();let e=await this.webStore.get(String(this.name));e&&this.validateState(e)&&(this.stateStore=e,await this.notifyChange())}}getState(){return this.stateStore}addMiddleware(e){return this.middlewares.push(e),()=>{let r=this.middlewares.indexOf(e);r!==-1&&this.middlewares.splice(r,1)}}async setState(e){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);return this.mutationQueue=this.mutationQueue.then(()=>this.applyState(e),()=>this.applyState(e))}async applyState(e){let r=e;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(e){return e!=null}async notifyChange(){let e=this.stateStore;if(e===void 0)return;if(this.smartstateRef?.isBatching){this.smartstateRef.registerPendingNotification(this);return}let r=i(async n=>await rl.sha256FromString(Dt.stableOneWayStringify(n)),"createStateHash");try{let n=await r(e);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(e)}notifyChangeCumulative(){this.pendingCumulativeNotification&&clearTimeout(this.pendingCumulativeNotification),this.pendingCumulativeNotification=setTimeout(()=>{this.pendingCumulativeNotification=null,this.stateStore!==void 0&&this.notifyChange().catch(e=>{console.error(`notifyChangeCumulative failed for '${this.name}':`,e)})},0)}select(e,r){let n=r?.signal!=null;if(!n){if(e){if(this.selectorCache.has(e))return this.selectorCache.get(e)}else if(this.defaultSelectObservable)return this.defaultSelectObservable}let o=e||(u=>u),s=Symbol("selector-error"),a=this.state.pipe(Me.rxjs.ops.filter(u=>u!==void 0),Me.rxjs.ops.map(u=>{try{return o(u)}catch(c){return console.error(`Selector error in state part '${this.name}':`,c),s}}),Me.rxjs.ops.filter(u=>u!==s),ao((u,c)=>JSON.stringify(u)===JSON.stringify(c)));if(n)return a=a.pipe(lo(SU(r.signal))),a;let l=a.pipe(Vl({bufferSize:1,refCount:!0}));return e?this.selectorCache.set(e,l):this.defaultSelectObservable=l,l}createAction(e){return new nl(this,e)}createActionContext(e){let r=this;return{dispatch:i(async(n,o)=>{if(e>=t.MAX_NESTED_DISPATCH_DEPTH)throw new Error(`Maximum nested action dispatch depth (${t.MAX_NESTED_DISPATCH_DEPTH}) exceeded. Check for circular action dispatches.`);let s=r.createActionContext(e+1),a=await n.actionDef(r,o,s);return r.applyState(a)},"dispatch")}}async dispatchAction(e,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 e.actionDef(this,r,o);return this.applyState(s)},"execute");return this.mutationQueue=this.mutationQueue.then(n,n)}async waitUntilPresent(e,r){let n,o;typeof r=="number"?n=r:r&&(n=r.timeoutMs,o=r.signal);let s=re.defer(),a=this.select(e),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(e){let r=e(this);this.cumulativeDeferred.addPromise(r),await this.setState(await r)}createProcess(e){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);let r=new Es(this,e);return this.processes.push(r),e.autoStart&&r.start(),r}createScheduledAction(e){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);let r=new Es(this,{producer:i(()=>Mh(e.intervalMs),"producer"),sideEffect:i(async()=>{await e.action.trigger(e.payload)},"sideEffect"),autoPause:e.autoPause??!1});return this.processes.push(r),r.start(),r}_removeProcess(e){let r=this.processes.indexOf(e);r!==-1&&this.processes.splice(r,1)}dispose(){if(!this.disposed){this.disposed=!0;for(let e of[...this.processes])e.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 Dx(t,e){return Oh(t.map(r=>r.select())).pipe(kr(r=>e(...r)),ao((r,n)=>JSON.stringify(r)===JSON.stringify(n)))}i(Dx,"computed");var Cx=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(e){this.pendingNotifications.add(e)}async batch(e){this.batchDepth++;try{await e()}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(e,r){return Dx(e,r)}dispose(){for(let e of Object.keys(this.statePartMap)){let r=this.statePartMap[e];r&&r.dispose()}this.statePartMap={},this.pendingStatePartCreation.clear(),this.pendingNotifications.clear()}async getStatePart(e,r,n="soft"){let o=this.pendingStatePartCreation.get(e);if(o)return o;let s=this.statePartMap[e];if(s)switch(n){case"mandatory":throw new Error(`State part '${e}' already exists, but initMode is 'mandatory'`);case"force":s.dispose();break;default:return s}else if(r===void 0)throw new Error(`State part '${e}' does not exist and no initial state provided`);let a=this.createStatePart(e,r,n);this.pendingStatePartCreation.set(e,a);try{return await a}finally{this.pendingStatePartCreation.delete(e)}}async createStatePart(e,r,n="soft"){let o=new il(e,n==="persistent"?{dbName:"smartstate",storeName:e}: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[e]=o,o}};function kU(t,e){let{context:r,statePart:n,selectorFn:o}=e,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 t.addEventListener("context-request",u),()=>{t.removeEventListener("context-request",u),a.unsubscribe(),s.clear()}}i(kU,"attachContextProvider");var $i={};ae($i,{Smarturl:()=>Ox});var Ox=class t{static{i(this,"Smarturl")}static createFromUrl(e,r){let n=new URL(e),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 t;return Object.assign(u,l),u}static createFromParsedUrl(e){let r=new t;return Object.assign(r,e),r}constructor(){this.searchParams={}}clone(){let e=new t;return Object.assign(e,this),e.searchParams={...this.searchParams},e}set(e,r){return this[e]=r,this}toString(){let e="";return this.username&&!this.password&&(e=`${this.username}@`),this.username&&this.password&&(e=`${this.username}:${this.password}@`),`${this.protocol}//${e}${this.hostname}:${this.port}${this.path}`}};var $x={};ae($x,{JsonLdTag:()=>Yi,MetaTag:()=>tr,OpengraphTag:()=>Ct,Title:()=>Wx,WebSetup:()=>ol});var Mx={};ae(Mx,{Timeout:()=>jp,delayFor:()=>WC,delayForRandom:()=>IU});var qi={};ae(qi,{CumulativeDeferred:()=>zp,Deferred:()=>Bp,cumulativeDefer:()=>TU,defer:()=>Ui,getFirstTrueOrFalse:()=>MU,map:()=>CU,rejectedPromise:()=>DU,resolvedPromise:()=>EU,timeoutAndContinue:()=>OU,timeoutWrap:()=>HC});var Bp=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((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},Ui=i(()=>new Bp,"defer");var zp=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(e){this.accumulatedPromises.push(e)}},TU=i(()=>new zp,"cumulativeDefer");var EU=i(t=>Promise.resolve(t),"resolvedPromise"),DU=i(t=>Promise.reject(t),"rejectedPromise"),CU=i(async(t,e)=>{let r=[],n=[];for(let o of t){let s=e(o);r.push(s),s.then(a=>{n.push(a)})}return await Promise.all(r),n},"map"),HC=i(async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),"timeoutWrap"),OU=i(async(t,e=6e4)=>HC(t,e,!1),"timeoutAndContinue"),MU=i(async t=>{let e=Ui();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise},"getFirstTrueOrFalse");var WC=i(async(t,e,r=!1)=>(await new jp(t,null,r).promise,e),"delayFor"),IU=i(async(t,e,r,n=!1)=>(await WC(Math.random()*(e-t)+t,null,n),r),"delayForRandom"),jp=class{static{i(this,"Timeout")}constructor(e,r,n=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=Ui(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},e),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}};var Hx={};ae(Hx,{business:()=>Hp,code:()=>Nx,container:()=>Ax,content:()=>Rx,database:()=>Px,finance:()=>Ix,general:()=>Fx,network:()=>Wp,saas:()=>Bx,storage:()=>zx,website:()=>jx});var Hp={};ae(Hp,{IJob:()=>_x});var Ix={};var _x=class{static{i(this,"IJob")}};var Px={};var Nx={};var Ax={};var Rx={};var Fx={};var Wp={};ae(Wp,{ICnameDescriptor:()=>Lx});var Lx=class{static{i(this,"ICnameDescriptor")}};var Bx={};var zx={};var jx={};var Hn=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 Yi=class t extends Hn{static{i(this,"JsonLdTag")}static createCompanyJsonLd(e){let r={"@context":"https://schema.org","@type":"Corporation",name:e.name,alternateName:e.name.replace(" GmbH",""),url:e.contact.website,logo:e.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:e.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return e.contact.facebookUrl&&r.sameAs.push(e.contact.facebookUrl),e.contact.twitterUrl&&r.sameAs.push(e.contact.twitterUrl),new t(r)}static createNewsArticleJsonLd(e){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[e.featuredImageUrl],datePublished:new Date(e.timestamp).toISOString(),dateModified:new Date(e.timestamp).toISOString(),author:{"@type":"Person",name:`${e.author.firstName} ${e.author.surName}`},publisher:{"@type":"Organization",name:e.author.surName,logo:{"@type":"ImageObject",url:e.author.surName}},description:e.author.firstName};return new t(r)}static createProductJsonLd(e,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:e.name,description:e.description,operatingSystem:e.os,applicationCategory:e.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 t(n)}constructor(e){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(e),this.elementRef=r}};var Ct=class t extends Hn{static{i(this,"OpengraphTag")}static createNewsArticleOgTags(e){let r=[];return r.push(new t("og:url",e.url)),r.push(new t("og:title",e.title)),r.push(new t("og:description",e.content)),r.push(new t("og:image",e.featuredImageUrl)),r}static createProductOgTags(e){let r=[];return r.push(new t("og:url",globalThis.location.href)),r.push(new t("og:title",`${e.name} - ${e.slogan}`)),r.push(new t("og:site_name",e.name)),r.push(new t("og:description",e.description)),r.push(new t("og:image",e.logoLink)),r}constructor(e,r){super();let n=document.createElement("meta");n.setAttribute("property",e),n.content=r,this.elementRef=n}};var Ds=class{static{i(this,"TagLevel")}set title(e){this.titleStore=e,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(e,r){this.tags=[],this.state="disabled",this.tagManagerRef=e}addTag(e){if(e instanceof Array)for(let r of e)this.addTag(r);else this.tags.push(e),this.state==="enabled"&&e.appendToDom()}async addCompanyInfo(e){this.addTag(Yi.createCompanyJsonLd(e)),this.addTag(new Ct("og:type","business.business")),this.addTag(new Ct("og:title",e.name)),this.addTag(new Ct("og:url",e.contact.website)),this.addTag(new Ct("og:image",e.contact.logoUrl)),this.addTag(new Ct("business:contact_data:street_address",`${e.contact.address.streetName} ${e.contact.address.houseNumber}`)),this.addTag(new Ct("business:contact_data:locality",e.contact.address.postalCode)),this.addTag(new Ct("business:contact_data:region",e.contact.address.city)),this.addTag(new Ct("business:contact_data:postal_code",e.contact.address.postalCode)),this.addTag(new Ct("business:contact_data:country_name",e.contact.address.country))}addNewsArticleInfo(e){this.addTag(Yi.createNewsArticleJsonLd(e)),this.addTag(Ct.createNewsArticleOgTags(e))}addProductInfo(e,r){this.addTag(Yi.createProductJsonLd(e,r)),this.addTag(Ct.createProductOgTags(e))}async enable(){this.title&&(document.title=this.title);for(let e of this.tags)e.appendToDom();this.state="enabled"}async disable(){for(let e of this.tags)e.removeFromDom();this.state="disabled"}};var tr=class extends Hn{static{i(this,"MetaTag")}constructor(e,r){super();let n=document.createElement("meta");n.name=e,n.content=r,this.elementRef=n}};var $p=class{static{i(this,"TagManager")}constructor(){this.globalLevel=new Ds(this,"global"),this.baseLevel=new Ds(this,"base")}async setup(e){switch(this.globalLevel.addTag(new tr("google","notranslate")),this.globalLevel.addTag(new tr("revisit-after","1 days")),e.twitterHandle&&(this.globalLevel.addTag(new tr("twitter:card","summary_large_image")),this.globalLevel.addTag(new tr("twitter:site",e.twitterHandle)),this.globalLevel.addTag(new tr("twitter:creator",e.twitterHandle))),this.baseLevel.title=e.title,e.description&&this.baseLevel.addTag(new tr("description",e.description)),e.canonicalDomain&&this.baseLevel.addTag(new tr("canonical",e.canonicalDomain)),!0){case(e.ldCompany&&!e.ldProduct):this.baseLevel.addCompanyInfo(e.ldCompany);break;case!!e.ldProduct:this.baseLevel.addProductInfo(e.ldProduct,e.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(e){let r=new Ds(this,"subpage");return r.title=e.title,e.description&&r.addTag(new tr("description",e.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 ol=class{static{i(this,"WebSetup")}constructor(e){this.tagManager=new $p,this.readyDeferred=qi.defer(),this.readyForSmartssrDeferred=qi.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=e,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(e){e&&(this.options=e),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(e){return await this.tagManager.setSubPageLevel(e)}flashTitle(e){}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 Wx=class{static{i(this,"Title")}};var PU="1.3.17";function $C(t,e,r){return Math.max(t,Math.min(e,r))}i($C,"clamp");function NU(t,e,r){return(1-r)*t+r*e}i(NU,"lerp");function AU(t,e,r,n){return NU(t,e,1-Math.exp(-r*n))}i(AU,"damp");function RU(t,e){return(t%e+e)%e}i(RU,"modulo");var FU=class{static{i(this,"Animate")}isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let r=$C(0,this.currentTime/this.duration,1);e=r>=1;let n=e?1:this.easing(r);this.value=this.from+(this.to-this.from)*n}else this.lerp?(this.value=AU(this.value,this.to,this.lerp*60,t),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:r,duration:n,easing:o,onStart:s,onUpdate:a}){this.from=this.value=t,this.to=e,this.lerp=r,this.duration=n,this.easing=o,this.currentTime=0,this.isRunning=!0,s?.(),this.onUpdate=a}};function LU(t,e){let r;return function(...n){let o=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,t.apply(o,n)},e)}}i(LU,"debounce");var BU=class{static{i(this,"Dimensions")}constructor(t,e,{autoResize:r=!0,debounce:n=250}={}){this.wrapper=t,this.content=e,r&&(this.debouncedResize=LU(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}}},UC=class{static{i(this,"Emitter")}events={};emit(t,...e){let r=this.events[t]||[];for(let n=0,o=r.length;n<o;n++)r[n]?.(...e)}on(t,e){return this.events[t]?.push(e)||(this.events[t]=[e]),()=>{this.events[t]=this.events[t]?.filter(r=>e!==r)}}off(t,e){this.events[t]=this.events[t]?.filter(r=>e!==r)}destroy(){this.events={}}},qC=100/6,Wn={passive:!1},zU=class{static{i(this,"VirtualScroll")}constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Wn),this.element.addEventListener("touchstart",this.onTouchStart,Wn),this.element.addEventListener("touchmove",this.onTouchMove,Wn),this.element.addEventListener("touchend",this.onTouchEnd,Wn)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new UC;on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,Wn),this.element.removeEventListener("touchstart",this.onTouchStart,Wn),this.element.removeEventListener("touchmove",this.onTouchMove,Wn),this.element.removeEventListener("touchend",this.onTouchEnd,Wn)}onTouchStart=i(t=>{let{clientX:e,clientY:r}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})},"onTouchStart");onTouchMove=i(t=>{let{clientX:e,clientY:r}=t.targetTouches?t.targetTouches[0]:t,n=-(e-this.touchStart.x)*this.options.touchMultiplier,o=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=r,this.lastDelta={x:n,y:o},this.emitter.emit("scroll",{deltaX:n,deltaY:o,event:t})},"onTouchMove");onTouchEnd=i(t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})},"onTouchEnd");onWheel=i(t=>{let{deltaX:e,deltaY:r,deltaMode:n}=t,o=n===1?qC:n===2?this.window.width:1,s=n===1?qC:n===2?this.window.height:1;e*=o,r*=s,e*=this.options.wheelMultiplier,r*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:r,event:t})},"onWheel");onWindowResize=i(()=>{this.window={width:window.innerWidth,height:window.innerHeight}},"onWindowResize")},YC=i(t=>Math.min(1,1.001-Math.pow(2,-10*t)),"defaultEasing"),sl=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 FU;emitter=new UC;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:r=t,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:w,overscroll:T=!0,autoRaf:E=!1,anchors:q=!1,autoToggle:H=!1,allowNestedScroll:O=!1,__experimental__naiveDimensions:j=!1,naiveDimensions:X=j,stopInertiaOnNavigate:Y=!1}={}){window.lenisVersion=PU,(!t||t===document.documentElement)&&(t=window),typeof l=="number"&&typeof u!="function"?u=YC:typeof u=="function"&&typeof l!="number"&&(l=1),this.options={wrapper:t,content:e,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:w,overscroll:T,autoRaf:E,anchors:q,autoToggle:H,allowNestedScroll:O,naiveDimensions:X,stopInertiaOnNavigate:Y},this.dimensions=new BU(t,e,{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 zU(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(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=i(t=>{t instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&t.stopPropagation()},"onScrollEnd");dispatchScrollendEvent=i(()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))},"dispatchScrollendEvent");get overflow(){let t=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[t]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=i(t=>{t.propertyName.includes("overflow")&&this.checkOverflow()},"onTransitionEnd");setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=i(t=>{let r=t.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(t=>{t.button===1&&this.reset()},"onPointerDown");onVirtualScroll=i(t=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(t)===!1)return;let{deltaX:e,deltaY:r,event:n}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,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=e===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"&&e===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:e,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(e)?r:e:this.options.gestureOrientation==="horizontal"&&(h=e),(!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 t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),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(t=>{let e=t-(this.time||t);this.time=t,this.animate.advance(e*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))},"raf");scrollTo(t,{offset:e=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 t=="string"&&["top","left","start","#"].includes(t))t=0;else if(typeof t=="string"&&["bottom","right","end"].includes(t))t=this.limit;else{let h;if(typeof t=="string"?(h=document.querySelector(t),h||(t==="#top"?t=0:console.warn("Lenis: Target not found",t))):t instanceof HTMLElement&&t?.nodeType&&(h=t),h){if(this.options.wrapper!==window){let d=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?d.left:d.top}let m=h.getBoundingClientRect();t=(this.isHorizontal?m.left:m.top)+this.animatedScroll}}if(typeof t=="number"){if(t+=e,t=Math.round(t),this.options.infinite){if(o){this.targetScroll=this.animatedScroll=this.scroll;let h=t-this.animatedScroll;h>this.limit/2?t=t-this.limit:h<-this.limit/2&&(t=t+this.limit)}}else t=$C(0,t,this.limit);if(t===this.targetScroll){u?.(this),c?.(this);return}if(this.userData=p??{},r){this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),c?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}o||(this.targetScroll=t),typeof a=="number"&&typeof l!="function"?l=YC:typeof l=="function"&&typeof a!="number"&&(a=1),this.animate.fromTo(this.animatedScroll,t,{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(t,{deltaX:e,deltaY:r}){let n=Date.now(),o=t._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(t);o.computedStyle=H;let O=H.overflowX,j=H.overflowY;if(s=["auto","overlay","scroll"].includes(O),a=["auto","overlay","scroll"].includes(j),o.hasOverflowX=s,o.hasOverflowY=a,!s&&!a||m==="vertical"&&!a||m==="horizontal"&&!s)return!1;c=t.scrollWidth,f=t.scrollHeight,p=t.clientWidth,h=t.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=e!==0,O=r!==0;H&&s&&l&&(d="x"),O&&a&&u&&(d="y")}if(!d)return!1;let g,x,w,T,E;if(d==="x")g=t.scrollLeft,x=c-p,w=e,T=s,E=l;else if(d==="y")g=t.scrollTop,x=f-h,w=r,T=a,E=u;else return!1;return(w>0?g<x:g>0)&&T&&E}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 t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){return this.options.infinite?RU(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isScrolling==="smooth"&&(t+=" lenis-smooth"),t}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 Cs=jt(VC(),1),jU={ObjectMap:Ur,Stringmap:na,FastMap:ai};var ny={};ae(ny,{containerContextStyles:()=>oq,cssForConstraint:()=>nq,cssForConstraintContainer:()=>iq,cssForContainer:()=>mO,cssForDesktop:()=>sq,cssForNotebook:()=>aq,cssForPhablet:()=>uq,cssForPhone:()=>cq,cssForTablet:()=>lq,cssForViewport:()=>Zi,desktop:()=>uO,notebook:()=>cO,phablet:()=>pO,phone:()=>hO,tablet:()=>fO});var qp=globalThis,al=qp.ShadowRoot&&(qp.ShadyCSS===void 0||qp.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yx=Symbol(),GC=new WeakMap,Os=class{static{i(this,"n")}constructor(e,r,n){if(this._$cssResult$=!0,n!==Yx)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(al&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=GC.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&GC.set(r,e))}return e}toString(){return this.cssText}},pr=i(t=>new Os(typeof t=="string"?t:t+"",void 0,Yx),"r"),jr=i((t,...e)=>{let r=t.length===1?t[0]:e.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)+t[s+1],t[0]);return new Os(r,t,Yx)},"i"),Yp=i((t,e)=>{if(al)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),o=qp.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)}},"S"),ll=al?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return pr(r)})(t):t;var{is:HU,defineProperty:WU,getOwnPropertyDescriptor:$U,getOwnPropertyNames:UU,getOwnPropertySymbols:qU,getPrototypeOf:YU}=Object,Vp=globalThis,JC=Vp.trustedTypes,VU=JC?JC.emptyScript:"",GU=Vp.reactiveElementPolyfillSupport,ul=i((t,e)=>t,"d"),Gp={toAttribute(t,e){switch(e){case Boolean:t=t?VU:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Vx=i((t,e)=>!HU(t,e),"f"),QC={attribute:!0,type:String,converter:Gp,reflect:!1,useDefault:!1,hasChanged:Vx};Symbol.metadata??=Symbol("metadata"),Vp.litPropertyMetadata??=new WeakMap;var Hr=class extends HTMLElement{static{i(this,"y")}static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=QC){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(e,n,r);o!==void 0&&WU(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){let{get:o,set:s}=$U(this.prototype,e)??{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(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??QC}static _$Ei(){if(this.hasOwnProperty(ul("elementProperties")))return;let e=YU(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ul("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ul("properties"))){let r=this.properties,n=[...UU(r),...qU(r)];for(let o of n)this.createProperty(o,r[o])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);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(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let o of n)r.unshift(ll(o))}else e!==void 0&&r.push(ll(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Yp(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$ET(e,r){let n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(o!==void 0&&n.reflect===!0){let s=(n.converter?.toAttribute!==void 0?n.converter:Gp).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,r){let n=this.constructor,o=n._$Eh.get(e);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:Gp;this._$Em=o;let l=a.fromAttribute(r,s.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(e,r,n,o=!1,s){if(e!==void 0){let a=this.constructor;if(o===!1&&(s=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??Vx)(s,r)||n.useDefault&&n.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:o,wrapped:s},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??r??this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(r=void 0),this._$AL.set(e,r)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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 e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};Hr.elementStyles=[],Hr.shadowRootOptions={mode:"open"},Hr[ul("elementProperties")]=new Map,Hr[ul("finalized")]=new Map,GU?.({ReactiveElement:Hr}),(Vp.reactiveElementVersions??=[]).push("2.1.2");var Gx=globalThis,KC=i(t=>t,"i"),Jp=Gx.trustedTypes,XC=Jp?Jp.createPolicy("lit-html",{createHTML:i(t=>t,"createHTML")}):void 0,Jx="$lit$",rn=`lit$${Math.random().toFixed(9).slice(2)}$`,Qx="?"+rn,JU=`<${Qx}>`,Vi=document,cl=i(()=>Vi.createComment(""),"c"),fl=i(t=>t===null||typeof t!="object"&&typeof t!="function","a"),Kx=Array.isArray,ZC=i(t=>Kx(t)||typeof t?.[Symbol.iterator]=="function","d"),Xx=`[
174
+ `},"replacement")},bs.tableSection={filter:["thead","tbody","tfoot"],replacement:i(function(t){return t},"replacement")};function qg(t){var e=t.parentNode;return e.nodeName==="THEAD"||e.firstChild===t&&(e.nodeName==="TABLE"||hW(e))&&pW.call(t.childNodes,function(r){return r.nodeName==="TH"})}i(qg,"isHeadingRow");function hW(t){var e=t.previousSibling;return t.nodeName==="TBODY"&&(!e||e.nodeName==="THEAD"&&/^\s*$/i.test(e.textContent))}i(hW,"isFirstTbody");function RD(t,e){var r=fW.call(e.parentNode.childNodes,e),n=" ";return r===0&&(n="| "),n+t+" |"}i(RD,"cell");function Gg(t){t.keep(function(r){return r.nodeName==="TABLE"&&!qg(r.rows[0])});for(var e in bs)t.addRule(e,bs[e])}i(Gg,"tables");function Jg(t){t.addRule("taskListItems",{filter:i(function(e){return e.type==="checkbox"&&e.parentNode.nodeName==="LI"},"filter"),replacement:i(function(e,r){return(r.checked?"[x]":"[ ]")+" "},"replacement")})}i(Jg,"taskListItems");function FD(t){t.use([Yg,Vg,Gg,Jg])}i(FD,"gfm");var Qg=jt(h1(),1);var kp=class t{static{i(this,"MdParsedResult")}static async createFromMarkdownString(e){let r=new t;return await r.updateFromMarkdownString(e),r}async updateFromMarkdownString(e){let r,n=await Oa().use(ps).use(fs).use(ms,["yaml","toml"]).use(ws).use(ys).use(()=>o=>{console.dir(o);let s=o.children.find(a=>a.type==="yaml");s&&(r=s.value)}).process(e);this.html=n.toString(),r?this.frontmatterData=await Qg.yamlStringToObject(r):this.frontmatterData={}}};var Kg=class t{static{i(this,"SmartMarkdown")}static async easyMarkdownToHtml(e){return(await new t().getMdParsedResultFromMarkdown(e)).html}constructor(){}async getMdParsedResultFromMarkdown(e){return await kp.createFromMarkdownString(e)}htmlToMarkdown(e){let r=new Sp({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(Ja.gfm),r.turndown(e)}};var Li={};ae(Li,{SmartRouter:()=>ix});var nx=jt(UD(),1);var Ep=class{static{i(this,"QueryParams")}constructor(){}getAllAsObject(){let e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())}setQueryParam(e,r,n="replace"){var o=new URLSearchParams(window.location.search);o.set(e,r),n==="push"?history.pushState(null,null,"?"+o.toString()):history.replaceState(null,null,"?"+o.toString())}deleteQueryParam(e,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(e),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(e){return this.getAllAsObject()[e]}};var C5e=i(t=>{console.log(`%c[Router]%c ${t}`,"color: rgb(255, 105, 100);","color: inherit")},"routeLog"),ix=class t{static{i(this,"SmartRouter")}constructor(e,r=""){this.options={debug:!1},this.queryParams=new Ep,this.routes=[],this.options={...this.options,...e},this.basePath=r,this.popstateListener=n=>{n.preventDefault(),this._handleRouteState()},window.addEventListener("popstate",this.popstateListener)}createSubRouter(e,r){let n=`${this.basePath}${e}`;return new t({...this.options,...r},n)}async pushUrl(e="/",r={}){let n=`${this.basePath}${e}`;n!==window.location.pathname?window.history.pushState(r,window.document.title,n):window.history.replaceState(r,window.document.title,n),await this._handleRouteState()}on(e,r){let n=`${this.basePath}${e}`,o={matchFunction:nx.match(n),handler:r};return this.routes.push(o),i(()=>{this.routes.splice(this.routes.indexOf(o),1)},"removeFunction")}async _handleRouteState(){let e=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(e));for(let n of r){let o=n.matchFunction(e);n.handler({...o.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var Wi={};ae(Wi,{Smartstate:()=>Cx,StateAction:()=>nl,StatePart:()=>il,StateProcess:()=>Es,attachContextProvider:()=>TU,computed:()=>Dx});var rl={};ae(rl,{md5FromString:()=>bU,sha256FromBuffer:()=>gU,sha256FromFile:()=>wU,sha256FromStream:()=>yU,sha256FromString:()=>jC,sha256FromStringSync:()=>dU,sha265FromObject:()=>xU});var Ka={};ae(Ka,{Smartenv:()=>ox});var ox=class{static{i(this,"Smartenv")}constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}. This does not throw.`);return}let n=await new Function(`return import('${e}')`)();return r&&await r(n),n}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let n=re.defer();if(globalThis.importScripts)globalThis.importScripts(e),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=e,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 tl={};ae(tl,{Smartjson:()=>Tx,deepEqualJsonLStrings:()=>cU,deepEqualObjects:()=>LC,foldDec:()=>uU,parse:()=>Lp,parseBase64:()=>lU,parseJsonL:()=>kx,stableOneWayStringify:()=>oU,stringify:()=>Hi,stringifyBase64:()=>aU,stringifyJsonL:()=>iU,stringifyPretty:()=>sU});var Ap=jt(PC(),1),NC=jt(fm(),1),Rp=NC.default;function Z$(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(String.fromCharCode(...t))}i(Z$,"base64Encode");function eU(t){if(typeof Buffer<"u"){let e=Buffer.from(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}return new Uint8Array(Array.from(atob(t)).map(e=>e.charCodeAt(0)))}i(eU,"base64Decode");function vx(t,e){return JSON.stringify(t,Fp,e)}i(vx,"stringify");function Sx(t){return JSON.parse(t,AC)}i(Sx,"parse");var Fp=i((t,e)=>{if(rU(e)){let r;if("data"in e&&RC(e.data))r=new Uint8Array(e.data);else if(e instanceof Uint8Array)r=e;else return e;return{type:"EncodedBuffer",data:"base64:"+Z$(r)}}return e},"replacer"),AC=i((t,e)=>{if(tU(e)&&bx(e.data)&&e.data.startsWith("base64:")){let r=e.data.slice(7);return eU(r)}return e},"reviver");function tU(t){return FC(t)&&t.type==="EncodedBuffer"&&bx(t.data)}i(tU,"isEncodedBuffer");function rU(t){return FC(t)&&t.type==="Buffer"&&(RC(t.data)||bx(t.data))||t instanceof Uint8Array}i(rU,"isBufferLike");function RC(t){return Array.isArray(t)}i(RC,"isArray");function bx(t){return typeof t=="string"}i(bx,"isString");function FC(t){return typeof t=="object"&&t!==null}i(FC,"isObject");var Lp=Sx,kx=i(t=>t.split(`
175
+ `).reduce((n,o)=>{let s=o.trim();return s.length>0&&n.push(Lp(s)),n},[]),"parseJsonL"),iU=i(t=>t.map(e=>Hi(e)).join(`
176
+ `),"stringifyJsonL"),oU=i((t,e,r={})=>{let n=new WeakSet,o=i(l=>{if(l===null||typeof l!="object")return l;let u=Fp("",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(t),a={...r,cycles:!0};if(e&&!a.cmp){let l=new Map;e.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 Rp(s,a)},"stableOneWayStringify"),Hi=i((t,e,r={})=>{let n=vx(t);t=JSON.parse(n);let o={...r};if(e&&!o.cmp){let a=new Map;e.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 Rp(t,o)},"stringify"),sU=i(t=>{let e=Hi(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},"stringifyPretty"),aU=i((...t)=>{let e=Hi(...t);return Et.base64.encodeUri(e)},"stringifyBase64"),lU=i(t=>{let e=Et.base64,n=(e.decodeUri||e.decode)(t);return Lp(n)},"parseBase64"),Tx=class t{static{i(this,"Smartjson")}static enfoldFromObject(e){let r=new this,n=r.saveableProperties||[];for(let o in e)n.indexOf(o)!==-1&&(r[o]=e[o]);return r}static enfoldFromJson(e){let r=Lp(e);return this.enfoldFromObject(r)}foldToObject(){let e=new Set;return e.add(this),this.foldToObjectInternal(e)}foldToObjectInternal(e){let r={},n=i(s=>{if(s instanceof t){if(e.has(s))throw new Error("cycle detected");return e.add(s),s.foldToObjectInternal(e)}return Array.isArray(s)?s.map(a=>n(a)):Ap.default(s)},"foldValue"),o=this.saveableProperties||[];for(let s of o){let a=this[s];r[s]=n(a)}return r}foldToJson(){let e=this.foldToObject();return Hi(e)}},uU=i(()=>(t,e)=>{t.saveableProperties||(t.saveableProperties=[]),t.saveableProperties.push(e)},"foldDec"),LC=i((t,e)=>{let r=Hi(t),n=Hi(e);return r===n},"deepEqualObjects"),cU=i((t,e)=>{let r=kx(t),n=kx(e);return LC(r,n)},"deepEqualJsonLStrings");var pU=[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],hU=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function jr(t,e){return t>>>e|t<<32-e}i(jr,"rotr");function mU(t,e){let r=e[0],n=e[1],o=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7];for(let f=0;f<64;f++){if(f>=16){let w=jr(t[f-15],7)^jr(t[f-15],18)^t[f-15]>>>3,T=jr(t[f-2],17)^jr(t[f-2],19)^t[f-2]>>>10;t[f]=t[f-16]+w+t[f-7]+T>>>0}let p=jr(a,6)^jr(a,11)^jr(a,25),h=a&l^~a&u,m=c+p+h+pU[f]+t[f]>>>0,d=jr(r,2)^jr(r,13)^jr(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}e[0]=e[0]+r>>>0,e[1]=e[1]+n>>>0,e[2]=e[2]+o>>>0,e[3]=e[3]+s>>>0,e[4]=e[4]+a>>>0,e[5]=e[5]+l>>>0,e[6]=e[6]+u>>>0,e[7]=e[7]+c>>>0}i(mU,"sha256Transform");function Ex(t){let e=[...hU],r=t.length,n=r*8,o=r%64<56?56-r%64:120-r%64,s=new Uint8Array(r+o+8);s.set(t),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);mU(c,e)}let l="";for(let u=0;u<8;u++)l+=e[u].toString(16).padStart(8,"0");return l}i(Ex,"sha256Fallback");var BC=i(t=>{let e=[],r=new DataView(t);for(let n=0;n<r.byteLength;n+=4){let s=r.getUint32(n).toString(16),a="00000000",l=(a+s).slice(-a.length);e.push(l)}return e.join("")},"hex"),zC=i(()=>typeof crypto<"u"&&crypto.subtle!==void 0,"isCryptoSubtleAvailable"),jC=i(async t=>{let e=new TextEncoder().encode(t);if(zC()){let r=await crypto.subtle.digest("SHA-256",e);return BC(r)}else return Ex(e)},"sha256FromString"),dU=i(t=>{throw console.warn("sha256FromStringSync is not truly synchronous in browser environment"),new Error("sha256FromStringSync is not supported in browser environment. Use sha256FromString instead.")},"sha256FromStringSync"),gU=i(async t=>{if(zC()){let e;if(t instanceof Uint8Array){let o=t;e=o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}else e=t;let r=await crypto.subtle.digest("SHA-256",e);return BC(r)}else{let e=t instanceof Uint8Array?t:new Uint8Array(t);return Ex(e)}},"sha256FromBuffer"),xU=i(async t=>{let e=tl.stringify(t);return await jC(e)},"sha265FromObject"),yU=i(t=>{throw new Error("sha256FromStream is not supported in browser environment")},"sha256FromStream"),wU=i(async t=>{throw new Error("sha256FromFile is not supported in browser environment")},"sha256FromFile"),bU=i(async t=>{throw new Error("md5FromString is not supported in browser environment. Web Crypto API does not support MD5.")},"md5FromString");var nl=class{static{i(this,"StateAction")}constructor(e,r){this.statePartRef=e,this.actionDef=r}trigger(e){return this.statePartRef.dispatchAction(this,e)}};function SU(){return typeof document>"u"?Bs(!0):new ye(t=>{t.next(!document.hidden);let e=i(()=>t.next(!document.hidden),"handler");return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)})}i(SU,"createVisibilityObservable");var Es=class{static{i(this,"StateProcess")}constructor(e,r){this.statusSubject=new ro("idle"),this.producerSubscription=null,this.autoPauseSubscription=null,this.processingQueue=Promise.resolve(),this.statePartRef=e,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 e=this.producerFn();this.producerSubscription=e.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 e=this.autoPauseOption==="visibility"?SU():this.autoPauseOption;this.autoPauseSubscription=e.subscribe(r=>{!r&&this.status==="running"?this.pause():r&&this.status==="paused"&&this.resume()})}teardownAutoPause(){this.autoPauseSubscription&&(this.autoPauseSubscription.unsubscribe(),this.autoPauseSubscription=null)}};function kU(t){return new ye(e=>{if(t.aborted){e.next(),e.complete();return}let r=i(()=>{e.next(),e.complete()},"handler");return t.addEventListener("abort",r),()=>t.removeEventListener("abort",r)})}i(kU,"fromAbortSignal");var il=class t{static{i(this,"StatePart")}static{this.MAX_NESTED_DISPATCH_DEPTH=10}constructor(e,r){this.state=new ro(void 0),this.disposed=!1,this.cumulativeDeferred=re.cumulativeDefer(),this.mutationQueue=Promise.resolve(),this.pendingCumulativeNotification=null,this.webStore=null,this.middlewares=[],this.processes=[],this.selectorCache=new WeakMap,this.defaultSelectObservable=null,this.name=e,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new lr.WebStore(this.webStoreOptions),await this.webStore.init();let e=await this.webStore.get(String(this.name));e&&this.validateState(e)&&(this.stateStore=e,await this.notifyChange())}}getState(){return this.stateStore}addMiddleware(e){return this.middlewares.push(e),()=>{let r=this.middlewares.indexOf(e);r!==-1&&this.middlewares.splice(r,1)}}async setState(e){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);return this.mutationQueue=this.mutationQueue.then(()=>this.applyState(e),()=>this.applyState(e))}async applyState(e){let r=e;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(e){return e!=null}async notifyChange(){let e=this.stateStore;if(e===void 0)return;if(this.smartstateRef?.isBatching){this.smartstateRef.registerPendingNotification(this);return}let r=i(async n=>await rl.sha256FromString(Dt.stableOneWayStringify(n)),"createStateHash");try{let n=await r(e);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(e)}notifyChangeCumulative(){this.pendingCumulativeNotification&&clearTimeout(this.pendingCumulativeNotification),this.pendingCumulativeNotification=setTimeout(()=>{this.pendingCumulativeNotification=null,this.stateStore!==void 0&&this.notifyChange().catch(e=>{console.error(`notifyChangeCumulative failed for '${this.name}':`,e)})},0)}select(e,r){let n=r?.signal!=null;if(!n){if(e){if(this.selectorCache.has(e))return this.selectorCache.get(e)}else if(this.defaultSelectObservable)return this.defaultSelectObservable}let o=e||(u=>u),s=Symbol("selector-error"),a=this.state.pipe(Me.rxjs.ops.filter(u=>u!==void 0),Me.rxjs.ops.map(u=>{try{return o(u)}catch(c){return console.error(`Selector error in state part '${this.name}':`,c),s}}),Me.rxjs.ops.filter(u=>u!==s),ao((u,c)=>JSON.stringify(u)===JSON.stringify(c)));if(n)return a=a.pipe(lo(kU(r.signal))),a;let l=a.pipe(Vl({bufferSize:1,refCount:!0}));return e?this.selectorCache.set(e,l):this.defaultSelectObservable=l,l}createAction(e){return new nl(this,e)}createActionContext(e){let r=this;return{dispatch:i(async(n,o)=>{if(e>=t.MAX_NESTED_DISPATCH_DEPTH)throw new Error(`Maximum nested action dispatch depth (${t.MAX_NESTED_DISPATCH_DEPTH}) exceeded. Check for circular action dispatches.`);let s=r.createActionContext(e+1),a=await n.actionDef(r,o,s);return r.applyState(a)},"dispatch")}}async dispatchAction(e,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 e.actionDef(this,r,o);return this.applyState(s)},"execute");return this.mutationQueue=this.mutationQueue.then(n,n)}async waitUntilPresent(e,r){let n,o;typeof r=="number"?n=r:r&&(n=r.timeoutMs,o=r.signal);let s=re.defer(),a=this.select(e),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(e){let r=e(this);this.cumulativeDeferred.addPromise(r),await this.setState(await r)}createProcess(e){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);let r=new Es(this,e);return this.processes.push(r),e.autoStart&&r.start(),r}createScheduledAction(e){if(this.disposed)throw new Error(`StatePart '${this.name}' has been disposed`);let r=new Es(this,{producer:i(()=>Mh(e.intervalMs),"producer"),sideEffect:i(async()=>{await e.action.trigger(e.payload)},"sideEffect"),autoPause:e.autoPause??!1});return this.processes.push(r),r.start(),r}_removeProcess(e){let r=this.processes.indexOf(e);r!==-1&&this.processes.splice(r,1)}dispose(){if(!this.disposed){this.disposed=!0;for(let e of[...this.processes])e.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 Dx(t,e){return Oh(t.map(r=>r.select())).pipe(Tr(r=>e(...r)),ao((r,n)=>JSON.stringify(r)===JSON.stringify(n)))}i(Dx,"computed");var Cx=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(e){this.pendingNotifications.add(e)}async batch(e){this.batchDepth++;try{await e()}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(e,r){return Dx(e,r)}dispose(){for(let e of Object.keys(this.statePartMap)){let r=this.statePartMap[e];r&&r.dispose()}this.statePartMap={},this.pendingStatePartCreation.clear(),this.pendingNotifications.clear()}async getStatePart(e,r,n="soft"){let o=this.pendingStatePartCreation.get(e);if(o)return o;let s=this.statePartMap[e];if(s)switch(n){case"mandatory":throw new Error(`State part '${e}' already exists, but initMode is 'mandatory'`);case"force":s.dispose();break;default:return s}else if(r===void 0)throw new Error(`State part '${e}' does not exist and no initial state provided`);let a=this.createStatePart(e,r,n);this.pendingStatePartCreation.set(e,a);try{return await a}finally{this.pendingStatePartCreation.delete(e)}}async createStatePart(e,r,n="soft"){let o=new il(e,n==="persistent"?{dbName:"smartstate",storeName:e}: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[e]=o,o}};function TU(t,e){let{context:r,statePart:n,selectorFn:o}=e,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 t.addEventListener("context-request",u),()=>{t.removeEventListener("context-request",u),a.unsubscribe(),s.clear()}}i(TU,"attachContextProvider");var $i={};ae($i,{Smarturl:()=>Ox});var Ox=class t{static{i(this,"Smarturl")}static createFromUrl(e,r){let n=new URL(e),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 t;return Object.assign(u,l),u}static createFromParsedUrl(e){let r=new t;return Object.assign(r,e),r}constructor(){this.searchParams={}}clone(){let e=new t;return Object.assign(e,this),e.searchParams={...this.searchParams},e}set(e,r){return this[e]=r,this}toString(){let e="";return this.username&&!this.password&&(e=`${this.username}@`),this.username&&this.password&&(e=`${this.username}:${this.password}@`),`${this.protocol}//${e}${this.hostname}:${this.port}${this.path}`}};var $x={};ae($x,{JsonLdTag:()=>Yi,MetaTag:()=>rr,OpengraphTag:()=>Ct,Title:()=>Wx,WebSetup:()=>ol});var Mx={};ae(Mx,{Timeout:()=>jp,delayFor:()=>WC,delayForRandom:()=>_U});var qi={};ae(qi,{CumulativeDeferred:()=>zp,Deferred:()=>Bp,cumulativeDefer:()=>EU,defer:()=>Ui,getFirstTrueOrFalse:()=>IU,map:()=>OU,rejectedPromise:()=>CU,resolvedPromise:()=>DU,timeoutAndContinue:()=>MU,timeoutWrap:()=>HC});var Bp=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((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},Ui=i(()=>new Bp,"defer");var zp=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(e){this.accumulatedPromises.push(e)}},EU=i(()=>new zp,"cumulativeDefer");var DU=i(t=>Promise.resolve(t),"resolvedPromise"),CU=i(t=>Promise.reject(t),"rejectedPromise"),OU=i(async(t,e)=>{let r=[],n=[];for(let o of t){let s=e(o);r.push(s),s.then(a=>{n.push(a)})}return await Promise.all(r),n},"map"),HC=i(async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),"timeoutWrap"),MU=i(async(t,e=6e4)=>HC(t,e,!1),"timeoutAndContinue"),IU=i(async t=>{let e=Ui();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise},"getFirstTrueOrFalse");var WC=i(async(t,e,r=!1)=>(await new jp(t,null,r).promise,e),"delayFor"),_U=i(async(t,e,r,n=!1)=>(await WC(Math.random()*(e-t)+t,null,n),r),"delayForRandom"),jp=class{static{i(this,"Timeout")}constructor(e,r,n=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=Ui(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},e),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}};var Hx={};ae(Hx,{business:()=>Hp,code:()=>Nx,container:()=>Ax,content:()=>Rx,database:()=>Px,finance:()=>Ix,general:()=>Fx,network:()=>Wp,saas:()=>Bx,storage:()=>zx,website:()=>jx});var Hp={};ae(Hp,{IJob:()=>_x});var Ix={};var _x=class{static{i(this,"IJob")}};var Px={};var Nx={};var Ax={};var Rx={};var Fx={};var Wp={};ae(Wp,{ICnameDescriptor:()=>Lx});var Lx=class{static{i(this,"ICnameDescriptor")}};var Bx={};var zx={};var jx={};var Hn=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 Yi=class t extends Hn{static{i(this,"JsonLdTag")}static createCompanyJsonLd(e){let r={"@context":"https://schema.org","@type":"Corporation",name:e.name,alternateName:e.name.replace(" GmbH",""),url:e.contact.website,logo:e.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:e.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return e.contact.facebookUrl&&r.sameAs.push(e.contact.facebookUrl),e.contact.twitterUrl&&r.sameAs.push(e.contact.twitterUrl),new t(r)}static createNewsArticleJsonLd(e){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[e.featuredImageUrl],datePublished:new Date(e.timestamp).toISOString(),dateModified:new Date(e.timestamp).toISOString(),author:{"@type":"Person",name:`${e.author.firstName} ${e.author.surName}`},publisher:{"@type":"Organization",name:e.author.surName,logo:{"@type":"ImageObject",url:e.author.surName}},description:e.author.firstName};return new t(r)}static createProductJsonLd(e,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:e.name,description:e.description,operatingSystem:e.os,applicationCategory:e.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 t(n)}constructor(e){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(e),this.elementRef=r}};var Ct=class t extends Hn{static{i(this,"OpengraphTag")}static createNewsArticleOgTags(e){let r=[];return r.push(new t("og:url",e.url)),r.push(new t("og:title",e.title)),r.push(new t("og:description",e.content)),r.push(new t("og:image",e.featuredImageUrl)),r}static createProductOgTags(e){let r=[];return r.push(new t("og:url",globalThis.location.href)),r.push(new t("og:title",`${e.name} - ${e.slogan}`)),r.push(new t("og:site_name",e.name)),r.push(new t("og:description",e.description)),r.push(new t("og:image",e.logoLink)),r}constructor(e,r){super();let n=document.createElement("meta");n.setAttribute("property",e),n.content=r,this.elementRef=n}};var Ds=class{static{i(this,"TagLevel")}set title(e){this.titleStore=e,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(e,r){this.tags=[],this.state="disabled",this.tagManagerRef=e}addTag(e){if(e instanceof Array)for(let r of e)this.addTag(r);else this.tags.push(e),this.state==="enabled"&&e.appendToDom()}async addCompanyInfo(e){this.addTag(Yi.createCompanyJsonLd(e)),this.addTag(new Ct("og:type","business.business")),this.addTag(new Ct("og:title",e.name)),this.addTag(new Ct("og:url",e.contact.website)),this.addTag(new Ct("og:image",e.contact.logoUrl)),this.addTag(new Ct("business:contact_data:street_address",`${e.contact.address.streetName} ${e.contact.address.houseNumber}`)),this.addTag(new Ct("business:contact_data:locality",e.contact.address.postalCode)),this.addTag(new Ct("business:contact_data:region",e.contact.address.city)),this.addTag(new Ct("business:contact_data:postal_code",e.contact.address.postalCode)),this.addTag(new Ct("business:contact_data:country_name",e.contact.address.country))}addNewsArticleInfo(e){this.addTag(Yi.createNewsArticleJsonLd(e)),this.addTag(Ct.createNewsArticleOgTags(e))}addProductInfo(e,r){this.addTag(Yi.createProductJsonLd(e,r)),this.addTag(Ct.createProductOgTags(e))}async enable(){this.title&&(document.title=this.title);for(let e of this.tags)e.appendToDom();this.state="enabled"}async disable(){for(let e of this.tags)e.removeFromDom();this.state="disabled"}};var rr=class extends Hn{static{i(this,"MetaTag")}constructor(e,r){super();let n=document.createElement("meta");n.name=e,n.content=r,this.elementRef=n}};var $p=class{static{i(this,"TagManager")}constructor(){this.globalLevel=new Ds(this,"global"),this.baseLevel=new Ds(this,"base")}async setup(e){switch(this.globalLevel.addTag(new rr("google","notranslate")),this.globalLevel.addTag(new rr("revisit-after","1 days")),e.twitterHandle&&(this.globalLevel.addTag(new rr("twitter:card","summary_large_image")),this.globalLevel.addTag(new rr("twitter:site",e.twitterHandle)),this.globalLevel.addTag(new rr("twitter:creator",e.twitterHandle))),this.baseLevel.title=e.title,e.description&&this.baseLevel.addTag(new rr("description",e.description)),e.canonicalDomain&&this.baseLevel.addTag(new rr("canonical",e.canonicalDomain)),!0){case(e.ldCompany&&!e.ldProduct):this.baseLevel.addCompanyInfo(e.ldCompany);break;case!!e.ldProduct:this.baseLevel.addProductInfo(e.ldProduct,e.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(e){let r=new Ds(this,"subpage");return r.title=e.title,e.description&&r.addTag(new rr("description",e.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 ol=class{static{i(this,"WebSetup")}constructor(e){this.tagManager=new $p,this.readyDeferred=qi.defer(),this.readyForSmartssrDeferred=qi.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=e,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(e){e&&(this.options=e),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(e){return await this.tagManager.setSubPageLevel(e)}flashTitle(e){}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 Wx=class{static{i(this,"Title")}};var NU="1.3.17";function $C(t,e,r){return Math.max(t,Math.min(e,r))}i($C,"clamp");function AU(t,e,r){return(1-r)*t+r*e}i(AU,"lerp");function RU(t,e,r,n){return AU(t,e,1-Math.exp(-r*n))}i(RU,"damp");function FU(t,e){return(t%e+e)%e}i(FU,"modulo");var LU=class{static{i(this,"Animate")}isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let r=$C(0,this.currentTime/this.duration,1);e=r>=1;let n=e?1:this.easing(r);this.value=this.from+(this.to-this.from)*n}else this.lerp?(this.value=RU(this.value,this.to,this.lerp*60,t),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),this.onUpdate?.(this.value,e)}stop(){this.isRunning=!1}fromTo(t,e,{lerp:r,duration:n,easing:o,onStart:s,onUpdate:a}){this.from=this.value=t,this.to=e,this.lerp=r,this.duration=n,this.easing=o,this.currentTime=0,this.isRunning=!0,s?.(),this.onUpdate=a}};function BU(t,e){let r;return function(...n){let o=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,t.apply(o,n)},e)}}i(BU,"debounce");var zU=class{static{i(this,"Dimensions")}constructor(t,e,{autoResize:r=!0,debounce:n=250}={}){this.wrapper=t,this.content=e,r&&(this.debouncedResize=BU(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}}},UC=class{static{i(this,"Emitter")}events={};emit(t,...e){let r=this.events[t]||[];for(let n=0,o=r.length;n<o;n++)r[n]?.(...e)}on(t,e){return this.events[t]?.push(e)||(this.events[t]=[e]),()=>{this.events[t]=this.events[t]?.filter(r=>e!==r)}}off(t,e){this.events[t]=this.events[t]?.filter(r=>e!==r)}destroy(){this.events={}}},qC=100/6,Wn={passive:!1},jU=class{static{i(this,"VirtualScroll")}constructor(t,e={wheelMultiplier:1,touchMultiplier:1}){this.element=t,this.options=e,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Wn),this.element.addEventListener("touchstart",this.onTouchStart,Wn),this.element.addEventListener("touchmove",this.onTouchMove,Wn),this.element.addEventListener("touchend",this.onTouchEnd,Wn)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new UC;on(t,e){return this.emitter.on(t,e)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,Wn),this.element.removeEventListener("touchstart",this.onTouchStart,Wn),this.element.removeEventListener("touchmove",this.onTouchMove,Wn),this.element.removeEventListener("touchend",this.onTouchEnd,Wn)}onTouchStart=i(t=>{let{clientX:e,clientY:r}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=e,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})},"onTouchStart");onTouchMove=i(t=>{let{clientX:e,clientY:r}=t.targetTouches?t.targetTouches[0]:t,n=-(e-this.touchStart.x)*this.options.touchMultiplier,o=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=e,this.touchStart.y=r,this.lastDelta={x:n,y:o},this.emitter.emit("scroll",{deltaX:n,deltaY:o,event:t})},"onTouchMove");onTouchEnd=i(t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})},"onTouchEnd");onWheel=i(t=>{let{deltaX:e,deltaY:r,deltaMode:n}=t,o=n===1?qC:n===2?this.window.width:1,s=n===1?qC:n===2?this.window.height:1;e*=o,r*=s,e*=this.options.wheelMultiplier,r*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:r,event:t})},"onWheel");onWindowResize=i(()=>{this.window={width:window.innerWidth,height:window.innerHeight}},"onWindowResize")},YC=i(t=>Math.min(1,1.001-Math.pow(2,-10*t)),"defaultEasing"),sl=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 LU;emitter=new UC;dimensions;virtualScroll;constructor({wrapper:t=window,content:e=document.documentElement,eventsTarget:r=t,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:w,overscroll:T=!0,autoRaf:E=!1,anchors:q=!1,autoToggle:H=!1,allowNestedScroll:O=!1,__experimental__naiveDimensions:j=!1,naiveDimensions:X=j,stopInertiaOnNavigate:Y=!1}={}){window.lenisVersion=NU,(!t||t===document.documentElement)&&(t=window),typeof l=="number"&&typeof u!="function"?u=YC:typeof u=="function"&&typeof l!="number"&&(l=1),this.options={wrapper:t,content:e,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:w,overscroll:T,autoRaf:E,anchors:q,autoToggle:H,allowNestedScroll:O,naiveDimensions:X,stopInertiaOnNavigate:Y},this.dimensions=new zU(t,e,{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 jU(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(t,e){return this.emitter.on(t,e)}off(t,e){return this.emitter.off(t,e)}onScrollEnd=i(t=>{t instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&t.stopPropagation()},"onScrollEnd");dispatchScrollendEvent=i(()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))},"dispatchScrollendEvent");get overflow(){let t=this.isHorizontal?"overflow-x":"overflow-y";return getComputedStyle(this.rootElement)[t]}checkOverflow(){["hidden","clip"].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=i(t=>{t.propertyName.includes("overflow")&&this.checkOverflow()},"onTransitionEnd");setScroll(t){this.isHorizontal?this.options.wrapper.scrollTo({left:t,behavior:"instant"}):this.options.wrapper.scrollTo({top:t,behavior:"instant"})}onClick=i(t=>{let r=t.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(t=>{t.button===1&&this.reset()},"onPointerDown");onVirtualScroll=i(t=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(t)===!1)return;let{deltaX:e,deltaY:r,event:n}=t;if(this.emitter.emit("virtual-scroll",{deltaX:e,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=e===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"&&e===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:e,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(e)?r:e:this.options.gestureOrientation==="horizontal"&&(h=e),(!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 t=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-t,this.direction=Math.sign(this.animatedScroll-t),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(t=>{let e=t-(this.time||t);this.time=t,this.animate.advance(e*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))},"raf");scrollTo(t,{offset:e=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 t=="string"&&["top","left","start","#"].includes(t))t=0;else if(typeof t=="string"&&["bottom","right","end"].includes(t))t=this.limit;else{let h;if(typeof t=="string"?(h=document.querySelector(t),h||(t==="#top"?t=0:console.warn("Lenis: Target not found",t))):t instanceof HTMLElement&&t?.nodeType&&(h=t),h){if(this.options.wrapper!==window){let d=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?d.left:d.top}let m=h.getBoundingClientRect();t=(this.isHorizontal?m.left:m.top)+this.animatedScroll}}if(typeof t=="number"){if(t+=e,t=Math.round(t),this.options.infinite){if(o){this.targetScroll=this.animatedScroll=this.scroll;let h=t-this.animatedScroll;h>this.limit/2?t=t-this.limit:h<-this.limit/2&&(t=t+this.limit)}}else t=$C(0,t,this.limit);if(t===this.targetScroll){u?.(this),c?.(this);return}if(this.userData=p??{},r){this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),c?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}o||(this.targetScroll=t),typeof a=="number"&&typeof l!="function"?l=YC:typeof l=="function"&&typeof a!="number"&&(a=1),this.animate.fromTo(this.animatedScroll,t,{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(t,{deltaX:e,deltaY:r}){let n=Date.now(),o=t._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(t);o.computedStyle=H;let O=H.overflowX,j=H.overflowY;if(s=["auto","overlay","scroll"].includes(O),a=["auto","overlay","scroll"].includes(j),o.hasOverflowX=s,o.hasOverflowY=a,!s&&!a||m==="vertical"&&!a||m==="horizontal"&&!s)return!1;c=t.scrollWidth,f=t.scrollHeight,p=t.clientWidth,h=t.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=e!==0,O=r!==0;H&&s&&l&&(d="x"),O&&a&&u&&(d="y")}if(!d)return!1;let g,x,w,T,E;if(d==="x")g=t.scrollLeft,x=c-p,w=e,T=s,E=l;else if(d==="y")g=t.scrollTop,x=f-h,w=r,T=a,E=u;else return!1;return(w>0?g<x:g>0)&&T&&E}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 t=this.options.wrapper;return this.isHorizontal?t.scrollX??t.scrollLeft:t.scrollY??t.scrollTop}get scroll(){return this.options.infinite?FU(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(t){this._isScrolling!==t&&(this._isScrolling=t,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(t){this._isStopped!==t&&(this._isStopped=t,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(t){this._isLocked!==t&&(this._isLocked=t,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let t="lenis";return this.options.autoToggle&&(t+=" lenis-autoToggle"),this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isScrolling==="smooth"&&(t+=" lenis-smooth"),t}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 Cs=jt(VC(),1),HU={ObjectMap:Ur,Stringmap:na,FastMap:ai};var ny={};ae(ny,{containerContextStyles:()=>sq,cssForConstraint:()=>iq,cssForConstraintContainer:()=>oq,cssForContainer:()=>mO,cssForDesktop:()=>aq,cssForNotebook:()=>lq,cssForPhablet:()=>cq,cssForPhone:()=>fq,cssForTablet:()=>uq,cssForViewport:()=>Zi,desktop:()=>uO,notebook:()=>cO,phablet:()=>pO,phone:()=>hO,tablet:()=>fO});var qp=globalThis,al=qp.ShadowRoot&&(qp.ShadyCSS===void 0||qp.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yx=Symbol(),GC=new WeakMap,Os=class{static{i(this,"n")}constructor(e,r,n){if(this._$cssResult$=!0,n!==Yx)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(al&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=GC.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&GC.set(r,e))}return e}toString(){return this.cssText}},Yt=i(t=>new Os(typeof t=="string"?t:t+"",void 0,Yx),"r"),hr=i((t,...e)=>{let r=t.length===1?t[0]:e.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)+t[s+1],t[0]);return new Os(r,t,Yx)},"i"),Yp=i((t,e)=>{if(al)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),o=qp.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)}},"S"),ll=al?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return Yt(r)})(t):t;var{is:WU,defineProperty:$U,getOwnPropertyDescriptor:UU,getOwnPropertyNames:qU,getOwnPropertySymbols:YU,getPrototypeOf:VU}=Object,Vp=globalThis,JC=Vp.trustedTypes,GU=JC?JC.emptyScript:"",JU=Vp.reactiveElementPolyfillSupport,ul=i((t,e)=>t,"d"),Gp={toAttribute(t,e){switch(e){case Boolean:t=t?GU:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Vx=i((t,e)=>!WU(t,e),"f"),QC={attribute:!0,type:String,converter:Gp,reflect:!1,useDefault:!1,hasChanged:Vx};Symbol.metadata??=Symbol("metadata"),Vp.litPropertyMetadata??=new WeakMap;var Hr=class extends HTMLElement{static{i(this,"y")}static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=QC){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(e,n,r);o!==void 0&&$U(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){let{get:o,set:s}=UU(this.prototype,e)??{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(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??QC}static _$Ei(){if(this.hasOwnProperty(ul("elementProperties")))return;let e=VU(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ul("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ul("properties"))){let r=this.properties,n=[...qU(r),...YU(r)];for(let o of n)this.createProperty(o,r[o])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);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(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let o of n)r.unshift(ll(o))}else e!==void 0&&r.push(ll(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Yp(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$ET(e,r){let n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(o!==void 0&&n.reflect===!0){let s=(n.converter?.toAttribute!==void 0?n.converter:Gp).toAttribute(r,n.type);this._$Em=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(e,r){let n=this.constructor,o=n._$Eh.get(e);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:Gp;this._$Em=o;let l=a.fromAttribute(r,s.type);this[o]=l??this._$Ej?.get(o)??l,this._$Em=null}}requestUpdate(e,r,n,o=!1,s){if(e!==void 0){let a=this.constructor;if(o===!1&&(s=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??Vx)(s,r)||n.useDefault&&n.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,r,{useDefault:n,reflect:o,wrapped:s},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??r??this[e]),s!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(r=void 0),this._$AL.set(e,r)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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 e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(r=>this._$ET(r,this[r])),this._$EM()}updated(e){}firstUpdated(e){}};Hr.elementStyles=[],Hr.shadowRootOptions={mode:"open"},Hr[ul("elementProperties")]=new Map,Hr[ul("finalized")]=new Map,JU?.({ReactiveElement:Hr}),(Vp.reactiveElementVersions??=[]).push("2.1.2");var Gx=globalThis,KC=i(t=>t,"i"),Jp=Gx.trustedTypes,XC=Jp?Jp.createPolicy("lit-html",{createHTML:i(t=>t,"createHTML")}):void 0,Jx="$lit$",rn=`lit$${Math.random().toFixed(9).slice(2)}$`,Qx="?"+rn,QU=`<${Qx}>`,Vi=document,cl=i(()=>Vi.createComment(""),"c"),fl=i(t=>t===null||typeof t!="object"&&typeof t!="function","a"),Kx=Array.isArray,ZC=i(t=>Kx(t)||typeof t?.[Symbol.iterator]=="function","d"),Xx=`[
177
177
  \f\r]`,pl=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,eO=/-->/g,tO=/>/g,Gi=RegExp(`>|${Xx}(?:([^\\s"'>=/]+)(${Xx}*=${Xx}*(?:[^
178
- \f\r"'\`<>=]|("|')|))|$)`,"g"),rO=/'/g,nO=/"/g,iO=/^(?:script|style|textarea|title)$/i,Zx=i(t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),"x"),ey=Zx(1),QU=Zx(2),KU=Zx(3),$n=Symbol.for("lit-noChange"),et=Symbol.for("lit-nothing"),oO=new WeakMap,Ji=Vi.createTreeWalker(Vi,129);function sO(t,e){if(!Kx(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return XC!==void 0?XC.createHTML(e):e}i(sO,"V");var aO=i((t,e)=>{let r=t.length-1,n=[],o,s=e===2?"<svg>":e===3?"<math>":"",a=pl;for(let l=0;l<r;l++){let u=t[l],c,f,p=-1,h=0;for(;h<u.length&&(a.lastIndex=h,f=a.exec(u),f!==null);)h=a.lastIndex,a===pl?f[1]==="!--"?a=eO:f[1]!==void 0?a=tO:f[2]!==void 0?(iO.test(f[2])&&(o=RegExp("</"+f[2],"g")),a=Gi):f[3]!==void 0&&(a=Gi):a===Gi?f[0]===">"?(a=o??pl,p=-1):f[1]===void 0?p=-2:(p=a.lastIndex-f[2].length,c=f[1],a=f[3]===void 0?Gi:f[3]==='"'?nO:rO):a===nO||a===rO?a=Gi:a===eO||a===tO?a=pl:(a=Gi,o=void 0);let m=a===Gi&&t[l+1].startsWith("/>")?" ":"";s+=a===pl?u+JU:p>=0?(n.push(c),u.slice(0,p)+Jx+u.slice(p)+rn+m):u+rn+(p===-2?l:m)}return[sO(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},"N"),hl=class t{static{i(this,"S")}constructor({strings:e,_$litType$:r},n){let o;this.parts=[];let s=0,a=0,l=e.length-1,u=this.parts,[c,f]=aO(e,r);if(this.el=t.createElement(c,n),Ji.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=Ji.nextNode())!==null&&u.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Jx)){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]==="."?Kp:d[1]==="?"?Xp:d[1]==="@"?Zp:Ki}),o.removeAttribute(p)}else p.startsWith(rn)&&(u.push({type:6,index:s}),o.removeAttribute(p));if(iO.test(o.tagName)){let p=o.textContent.split(rn),h=p.length-1;if(h>0){o.textContent=Jp?Jp.emptyScript:"";for(let m=0;m<h;m++)o.append(p[m],cl()),Ji.nextNode(),u.push({type:2,index:++s});o.append(p[h],cl())}}}else if(o.nodeType===8)if(o.data===Qx)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(e,r){let n=Vi.createElement("template");return n.innerHTML=e,n}};function Qi(t,e,r=t,n){if(e===$n)return e;let o=n!==void 0?r._$Co?.[n]:r._$Cl,s=fl(e)?void 0:e._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(t),o._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(e=Qi(t,o._$AS(t,e.values),o,n)),e}i(Qi,"M");var Qp=class{static{i(this,"R")}constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,o=(e?.creationScope??Vi).importNode(r,!0);Ji.currentNode=o;let s=Ji.nextNode(),a=0,l=0,u=n[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new Ms(s,s.nextSibling,this,e):u.type===1?c=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(c=new eh(s,this,e)),this._$AV.push(c),u=n[++l]}a!==u?.index&&(s=Ji.nextNode(),a++)}return Ji.currentNode=Vi,o}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Ms=class t{static{i(this,"k")}get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,o){this.type=2,this._$AH=et,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Qi(this,e,r),fl(e)?e===et||e==null||e===""?(this._$AH!==et&&this._$AR(),this._$AH=et):e!==this._$AH&&e!==$n&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ZC(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==et&&fl(this._$AH)?this._$AA.nextSibling.data=e:this.T(Vi.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=hl.createElement(sO(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let s=new Qp(o,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=oO.get(e.strings);return r===void 0&&oO.set(e.strings,r=new hl(e)),r}k(e){Kx(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,o=0;for(let s of e)o===r.length?r.push(n=new t(this.O(cl()),this.O(cl()),this,this.options)):n=r[o],n._$AI(s),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let n=KC(e).nextSibling;KC(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ki=class{static{i(this,"H")}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,o,s){this.type=1,this._$AH=et,this._$AN=void 0,this.element=e,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=et}_$AI(e,r=this,n,o){let s=this.strings,a=!1;if(s===void 0)e=Qi(this,e,r,0),a=!fl(e)||e!==this._$AH&&e!==$n,a&&(this._$AH=e);else{let l=e,u,c;for(e=s[0],u=0;u<s.length-1;u++)c=Qi(this,l[n+u],r,u),c===$n&&(c=this._$AH[u]),a||=!fl(c)||c!==this._$AH[u],c===et?e=et:e!==et&&(e+=(c??"")+s[u+1]),this._$AH[u]=c}a&&!o&&this.j(e)}j(e){e===et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Kp=class extends Ki{static{i(this,"I")}constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===et?void 0:e}},Xp=class extends Ki{static{i(this,"L")}constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==et)}},Zp=class extends Ki{static{i(this,"z")}constructor(e,r,n,o,s){super(e,r,n,o,s),this.type=5}_$AI(e,r=this){if((e=Qi(this,e,r,0)??et)===$n)return;let n=this._$AH,o=e===et&&n!==et||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==et&&(n===et||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},eh=class{static{i(this,"Z")}constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Qi(this,e)}},XU={M:Jx,P:rn,A:Qx,C:1,L:aO,R:Qp,D:ZC,V:Qi,I:Ms,H:Ki,N:Xp,U:Zp,B:Kp,F:eh},ZU=Gx.litHtmlPolyfillSupport;ZU?.(hl,Ms),(Gx.litHtmlVersions??=[]).push("3.3.2");var ty=i((t,e,r)=>{let n=r?.renderBefore??e,o=n._$litPart$;if(o===void 0){let s=r?.renderBefore??null;n._$litPart$=o=new Ms(e.insertBefore(cl(),s),s,void 0,r??{})}return o._$AI(t),o},"D");var ry=globalThis,Xi=class extends Hr{static{i(this,"i")}constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ty(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return $n}};Xi._$litElement$=!0,Xi.finalized=!0,ry.litElementHydrateSupport?.({LitElement:Xi});var eq=ry.litElementPolyfillSupport;eq?.({LitElement:Xi});var tq={_$AK:i((t,e,r)=>{t._$AK(e,r)},"_$AK"),_$AL:i(t=>t._$AL,"_$AL")};(ry.litElementVersions??=[]).push("4.2.2");var rq=!1;var uO=1600,cO=1240,fO=1024,pO=600,hO=400,lO=i(t=>{let e=[];return t.minWidth&&e.push(`(min-width: ${t.minWidth}px)`),t.maxWidth&&e.push(`(max-width: ${t.maxWidth}px)`),e.join(" and ")},"buildCondition"),Zi=i((t,e)=>pr(`
178
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),rO=/'/g,nO=/"/g,iO=/^(?:script|style|textarea|title)$/i,Zx=i(t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),"x"),ey=Zx(1),KU=Zx(2),XU=Zx(3),$n=Symbol.for("lit-noChange"),et=Symbol.for("lit-nothing"),oO=new WeakMap,Ji=Vi.createTreeWalker(Vi,129);function sO(t,e){if(!Kx(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return XC!==void 0?XC.createHTML(e):e}i(sO,"V");var aO=i((t,e)=>{let r=t.length-1,n=[],o,s=e===2?"<svg>":e===3?"<math>":"",a=pl;for(let l=0;l<r;l++){let u=t[l],c,f,p=-1,h=0;for(;h<u.length&&(a.lastIndex=h,f=a.exec(u),f!==null);)h=a.lastIndex,a===pl?f[1]==="!--"?a=eO:f[1]!==void 0?a=tO:f[2]!==void 0?(iO.test(f[2])&&(o=RegExp("</"+f[2],"g")),a=Gi):f[3]!==void 0&&(a=Gi):a===Gi?f[0]===">"?(a=o??pl,p=-1):f[1]===void 0?p=-2:(p=a.lastIndex-f[2].length,c=f[1],a=f[3]===void 0?Gi:f[3]==='"'?nO:rO):a===nO||a===rO?a=Gi:a===eO||a===tO?a=pl:(a=Gi,o=void 0);let m=a===Gi&&t[l+1].startsWith("/>")?" ":"";s+=a===pl?u+QU:p>=0?(n.push(c),u.slice(0,p)+Jx+u.slice(p)+rn+m):u+rn+(p===-2?l:m)}return[sO(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},"N"),hl=class t{static{i(this,"S")}constructor({strings:e,_$litType$:r},n){let o;this.parts=[];let s=0,a=0,l=e.length-1,u=this.parts,[c,f]=aO(e,r);if(this.el=t.createElement(c,n),Ji.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=Ji.nextNode())!==null&&u.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Jx)){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]==="."?Kp:d[1]==="?"?Xp:d[1]==="@"?Zp:Ki}),o.removeAttribute(p)}else p.startsWith(rn)&&(u.push({type:6,index:s}),o.removeAttribute(p));if(iO.test(o.tagName)){let p=o.textContent.split(rn),h=p.length-1;if(h>0){o.textContent=Jp?Jp.emptyScript:"";for(let m=0;m<h;m++)o.append(p[m],cl()),Ji.nextNode(),u.push({type:2,index:++s});o.append(p[h],cl())}}}else if(o.nodeType===8)if(o.data===Qx)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(e,r){let n=Vi.createElement("template");return n.innerHTML=e,n}};function Qi(t,e,r=t,n){if(e===$n)return e;let o=n!==void 0?r._$Co?.[n]:r._$Cl,s=fl(e)?void 0:e._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),s===void 0?o=void 0:(o=new s(t),o._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(e=Qi(t,o._$AS(t,e.values),o,n)),e}i(Qi,"M");var Qp=class{static{i(this,"R")}constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,o=(e?.creationScope??Vi).importNode(r,!0);Ji.currentNode=o;let s=Ji.nextNode(),a=0,l=0,u=n[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new Ms(s,s.nextSibling,this,e):u.type===1?c=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(c=new eh(s,this,e)),this._$AV.push(c),u=n[++l]}a!==u?.index&&(s=Ji.nextNode(),a++)}return Ji.currentNode=Vi,o}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Ms=class t{static{i(this,"k")}get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,o){this.type=2,this._$AH=et,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Qi(this,e,r),fl(e)?e===et||e==null||e===""?(this._$AH!==et&&this._$AR(),this._$AH=et):e!==this._$AH&&e!==$n&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ZC(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==et&&fl(this._$AH)?this._$AA.nextSibling.data=e:this.T(Vi.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=hl.createElement(sO(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let s=new Qp(o,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=oO.get(e.strings);return r===void 0&&oO.set(e.strings,r=new hl(e)),r}k(e){Kx(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,o=0;for(let s of e)o===r.length?r.push(n=new t(this.O(cl()),this.O(cl()),this,this.options)):n=r[o],n._$AI(s),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let n=KC(e).nextSibling;KC(e).remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ki=class{static{i(this,"H")}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,o,s){this.type=1,this._$AH=et,this._$AN=void 0,this.element=e,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=et}_$AI(e,r=this,n,o){let s=this.strings,a=!1;if(s===void 0)e=Qi(this,e,r,0),a=!fl(e)||e!==this._$AH&&e!==$n,a&&(this._$AH=e);else{let l=e,u,c;for(e=s[0],u=0;u<s.length-1;u++)c=Qi(this,l[n+u],r,u),c===$n&&(c=this._$AH[u]),a||=!fl(c)||c!==this._$AH[u],c===et?e=et:e!==et&&(e+=(c??"")+s[u+1]),this._$AH[u]=c}a&&!o&&this.j(e)}j(e){e===et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Kp=class extends Ki{static{i(this,"I")}constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===et?void 0:e}},Xp=class extends Ki{static{i(this,"L")}constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==et)}},Zp=class extends Ki{static{i(this,"z")}constructor(e,r,n,o,s){super(e,r,n,o,s),this.type=5}_$AI(e,r=this){if((e=Qi(this,e,r,0)??et)===$n)return;let n=this._$AH,o=e===et&&n!==et||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==et&&(n===et||o);o&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},eh=class{static{i(this,"Z")}constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Qi(this,e)}},ZU={M:Jx,P:rn,A:Qx,C:1,L:aO,R:Qp,D:ZC,V:Qi,I:Ms,H:Ki,N:Xp,U:Zp,B:Kp,F:eh},eq=Gx.litHtmlPolyfillSupport;eq?.(hl,Ms),(Gx.litHtmlVersions??=[]).push("3.3.2");var ty=i((t,e,r)=>{let n=r?.renderBefore??e,o=n._$litPart$;if(o===void 0){let s=r?.renderBefore??null;n._$litPart$=o=new Ms(e.insertBefore(cl(),s),s,void 0,r??{})}return o._$AI(t),o},"D");var ry=globalThis,Xi=class extends Hr{static{i(this,"i")}constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ty(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return $n}};Xi._$litElement$=!0,Xi.finalized=!0,ry.litElementHydrateSupport?.({LitElement:Xi});var tq=ry.litElementPolyfillSupport;tq?.({LitElement:Xi});var rq={_$AK:i((t,e,r)=>{t._$AK(e,r)},"_$AK"),_$AL:i(t=>t._$AL,"_$AL")};(ry.litElementVersions??=[]).push("4.2.2");var nq=!1;var uO=1600,cO=1240,fO=1024,pO=600,hO=400,lO=i(t=>{let e=[];return t.minWidth&&e.push(`(min-width: ${t.minWidth}px)`),t.maxWidth&&e.push(`(max-width: ${t.maxWidth}px)`),e.join(" and ")},"buildCondition"),Zi=i((t,e)=>Yt(`
179
179
  @container wccToolsViewport ${e} {
180
180
  ${t.cssText}
181
181
  }
182
182
  @media ${e} {
183
183
  ${t.cssText}
184
184
  }
185
- `),"cssForViewport"),mO=i((t,e,r)=>pr(`
185
+ `),"cssForViewport"),mO=i((t,e,r)=>Yt(`
186
186
  @container ${r} ${e} {
187
187
  ${t.cssText}
188
188
  }
189
- `),"cssForContainer"),nq=i(t=>e=>Zi(e,lO(t)),"cssForConstraint"),iq=i((t,e)=>r=>mO(r,lO(t),e),"cssForConstraintContainer"),oq=i(t=>jr`
189
+ `),"cssForContainer"),iq=i(t=>e=>Zi(e,lO(t)),"cssForConstraint"),oq=i((t,e)=>r=>mO(r,lO(t),e),"cssForConstraintContainer"),sq=i(t=>hr`
190
190
  :host {
191
191
  container-type: inline-size;
192
- container-name: ${pr(t)};
192
+ container-name: ${Yt(t)};
193
193
  }
194
- `,"containerContextStyles"),sq=i(t=>Zi(t,`(min-width: ${uO}px)`),"cssForDesktop"),aq=i(t=>Zi(t,`(max-width: ${cO}px)`),"cssForNotebook"),lq=i(t=>Zi(t,`(max-width: ${fO}px)`),"cssForTablet"),uq=i(t=>Zi(t,`(max-width: ${pO}px)`),"cssForPhablet"),cq=i(t=>Zi(t,`(max-width: ${hO}px)`),"cssForPhone");var th=class{static{i(this,"Scroller")}domtoolsInstance;disposed=!1;scrollCallbacks=[];lenisInstance=null;lenisScrollUnsubscribe=null;nativeScrollListenerAttached=!1;handleNativeScroll=i(e=>{this.executeScrollCallbacks()},"handleNativeScroll");handleLenisScroll=i(e=>{this.executeScrollCallbacks()},"handleLenisScroll");constructor(e){this.domtoolsInstance=e,this.attachNativeScrollListener()}sweetScroller=new Cs.default({});async toElement(e,r){this.sweetScroller.toElement(e,r),r?.duration&&await ge.delayFor(r.duration)}async detectNativeSmoothScroll(){let e=getComputedStyle(document.documentElement).scrollBehavior,r=document.body?getComputedStyle(document.body).scrollBehavior:"auto";if(e==="smooth"||r==="smooth")return!0;let n=re.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(e){if(this.disposed)return;this.lenisInstance&&this.disableLenisScroll();let r=new sl({autoRaf:!0});if(e?.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(e){return this.scrollCallbacks.push(e),()=>{this.scrollCallbacks=this.scrollCallbacks.filter(r=>r!==e)}}executeScrollCallbacks(){this.scrollCallbacks.forEach(e=>{try{e()}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 rh=class{static{i(this,"ThemeManager")}domtoolsRef;goBrightBoolean=!1;preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)");themeObservable=new Me.rxjs.ReplaySubject(1);automaticGlobalThemeChangeSubscription=null;preferredColorSchemeChangeHandler=i(e=>{this.goBrightBoolean=e.matches,this.updateAllConnectedElements()},"preferredColorSchemeChangeHandler");constructor(e){this.domtoolsRef=e,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(e=>{document.body.style.background=e?"#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 Is=(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))(Is||{}),nh=class{constructor(e){this.domNode=e;this.startListening()}domNode;static{i(this,"Keyboard")}mapCombosToHandlers=new Map;pressedKeys=new Set;listening=!1;keyEnum=Is;on(e){let r=new Me.rxjs.Subject;return this.registerKeys(e,r),r}triggerKeyPress(e){let r=this.normalizeKeys(e);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 e of this.mapCombosToHandlers.values())for(let r of e.subjects)r.complete();this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}dispose(){this.clear()}handleKeyDown=i(e=>{let r=this.resolveKey(e);r!==null&&(this.pressedKeys.add(r),this.checkMatchingKeyboardSubjects(e))},"handleKeyDown");checkMatchingKeyboardSubjects(e){this.mapCombosToHandlers.forEach(r=>{if(this.areAllKeysPressed(r.keys))for(let n of r.subjects)n.next(e)})}handleKeyUp=i(e=>{let r=this.resolveKey(e);r!==null&&this.pressedKeys.delete(r)},"handleKeyUp");areAllKeysPressed(e){let r=!0;return e.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(e,r){let n=this.normalizeKeys(e),o=n.join("+"),s=this.mapCombosToHandlers.get(o);if(!s){this.mapCombosToHandlers.set(o,{keys:n,subjects:[r]});return}s.subjects.push(r)}normalizeKeys(e){return[...new Set(e)].sort((r,n)=>r-n)}resolveKey(e){return this.resolveKeyFromCode(e.code)??this.resolveKeyFromKey(e.key)??this.resolveKeyFromKeyCode(e.keyCode)}resolveKeyFromCode(e){if(!e)return null;if(e.startsWith("Key")&&e.length===4)return Is[e.slice(3)]??null;if(e.startsWith("Digit")&&e.length===6)return this.resolveKeyFromKey(e.slice(5));switch(e){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(e){if(!e)return null;if(e.length===1){let r=e.toUpperCase();if(r>="A"&&r<="Z")return Is[r]??null;switch(e){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(e){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(e){return typeof e!="number"?null:typeof Is[e]<"u"?e:null}createKeyboardEvent(e){let r=e[e.length-1]??13,n=this.getKeyDescriptor(r);return new KeyboardEvent("keydown",{key:n.key,code:n.code,ctrlKey:e.includes(17),shiftKey:e.includes(16),altKey:e.includes(18),metaKey:e.includes(91)||e.includes(92)})}getKeyDescriptor(e){switch(e){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=Is[e];if(r&&r.length===1&&r>="A"&&r<="Z")return{key:r.toLowerCase(),code:`Key${r}`};if(e>=48&&e<=57){let n=String(e-48);return{key:n,code:`Digit${n}`}}return{key:r??"Unidentified",code:"Unidentified"}}}}};var ml=class t{static{i(this,"DomTools")}static initializationPromise=null;static async setupDomTools(e={}){if(e.ignoreGlobal){let r=new t(e);return await r.initializationPromise,r}if(globalThis.deesDomTools&&!globalThis.deesDomTools.disposed)return await globalThis.deesDomTools.initializationPromise,globalThis.deesDomTools;if(!t.initializationPromise){let r=new t(e);globalThis.deesDomTools=r,t.initializationPromise=r.initializationPromise.then(()=>r).catch(n=>{throw globalThis.deesDomTools===r&&(globalThis.deesDomTools=void 0),t.initializationPromise=null,n})}return await t.initializationPromise}static getGlobalDomToolsSync(){let e=globalThis.deesDomTools;if(!e||e.disposed)throw new Error("You tried to access domtools synchronously too early");return e}elements={headElement:null,bodyElement:null};websetup=new ol({metaObject:{title:""}});smartstate=new Wi.Smartstate;domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:""});router=new Li.SmartRouter({debug:!1});convenience={typedrequest:At,smartdelay:ge,smartjson:Dt,smarturl:$i};deesComms=new ya.DeesComms;scroller=new th(this);themeManager=new rh(this);keyboard=null;disposed=!1;domToolsReady=re.defer();domReady=re.defer();globalStylesReady=re.defer();initializationPromise;managedDomNodes=[];readyStateChangedFunc=i(()=>{this.tryMarkDomReady()},"readyStateChangedFunc");constructor(e){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 nh(document.body)),document.removeEventListener("readystatechange",this.readyStateChangedFunc),this.domReady.resolve())}trackManagedDomNode(e){return this.managedDomNodes.push(e),e}getHeadOrBodyElement(){let e=this.elements.headElement||document.head||this.elements.bodyElement||document.body;if(!e)throw new Error("DomTools could not find a DOM target element to attach resources to");return e}async runOnce(e,r){let n=this.runOncePromiseMap.get(e);return n||(n=Promise.resolve().then(async()=>await r()),this.runOncePromiseMap.set(e,n)),await n}async setGlobalStyles(e){await this.domReady.promise;let r=this.trackManagedDomNode(document.createElement("style"));r.type="text/css",r.appendChild(document.createTextNode(e)),this.getHeadOrBodyElement().appendChild(r)}async setExternalScript(e){await this.domReady.promise;let r=re.defer(),n=this.trackManagedDomNode(document.createElement("script"));n.src=e,n.addEventListener("load",()=>{r.resolve()}),n.addEventListener("error",()=>{r.reject(new Error(`Failed to load external script: ${e}`))}),this.getHeadOrBodyElement().append(n),await r.promise}async setExternalCss(e){await this.domReady.promise;let r=re.defer(),n=this.trackManagedDomNode(document.createElement("link"));n.rel="stylesheet",n.crossOrigin="anonymous",n.href=e,n.addEventListener("load",()=>{r.resolve()}),n.addEventListener("error",()=>{r.reject(new Error(`Failed to load external stylesheet: ${e}`))}),this.getHeadOrBodyElement().append(n),await r.promise}async setWebsiteInfo(e){await this.websetup.setup(e),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 e of this.managedDomNodes)e.remove();this.managedDomNodes.length=0,globalThis.deesDomTools===this&&(globalThis.deesDomTools=void 0,t.initializationPromise=null)}}};var ih=(()=>{let t=navigator.userAgent.indexOf("Mac OS X")===-1?jr``.cssText:"";return jr`
194
+ `,"containerContextStyles"),aq=i(t=>Zi(t,`(min-width: ${uO}px)`),"cssForDesktop"),lq=i(t=>Zi(t,`(max-width: ${cO}px)`),"cssForNotebook"),uq=i(t=>Zi(t,`(max-width: ${fO}px)`),"cssForTablet"),cq=i(t=>Zi(t,`(max-width: ${pO}px)`),"cssForPhablet"),fq=i(t=>Zi(t,`(max-width: ${hO}px)`),"cssForPhone");var th=class{static{i(this,"Scroller")}domtoolsInstance;disposed=!1;scrollCallbacks=[];lenisInstance=null;lenisScrollUnsubscribe=null;nativeScrollListenerAttached=!1;handleNativeScroll=i(e=>{this.executeScrollCallbacks()},"handleNativeScroll");handleLenisScroll=i(e=>{this.executeScrollCallbacks()},"handleLenisScroll");constructor(e){this.domtoolsInstance=e,this.attachNativeScrollListener()}sweetScroller=new Cs.default({});async toElement(e,r){this.sweetScroller.toElement(e,r),r?.duration&&await ge.delayFor(r.duration)}async detectNativeSmoothScroll(){let e=getComputedStyle(document.documentElement).scrollBehavior,r=document.body?getComputedStyle(document.body).scrollBehavior:"auto";if(e==="smooth"||r==="smooth")return!0;let n=re.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(e){if(this.disposed)return;this.lenisInstance&&this.disableLenisScroll();let r=new sl({autoRaf:!0});if(e?.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(e){return this.scrollCallbacks.push(e),()=>{this.scrollCallbacks=this.scrollCallbacks.filter(r=>r!==e)}}executeScrollCallbacks(){this.scrollCallbacks.forEach(e=>{try{e()}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 rh=class{static{i(this,"ThemeManager")}domtoolsRef;goBrightBoolean=!1;preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)");themeObservable=new Me.rxjs.ReplaySubject(1);automaticGlobalThemeChangeSubscription=null;preferredColorSchemeChangeHandler=i(e=>{this.goBrightBoolean=e.matches,this.updateAllConnectedElements()},"preferredColorSchemeChangeHandler");constructor(e){this.domtoolsRef=e,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(e=>{document.body.style.background=e?"#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 Is=(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))(Is||{}),nh=class{constructor(e){this.domNode=e;this.startListening()}domNode;static{i(this,"Keyboard")}mapCombosToHandlers=new Map;pressedKeys=new Set;listening=!1;keyEnum=Is;on(e){let r=new Me.rxjs.Subject;return this.registerKeys(e,r),r}triggerKeyPress(e){let r=this.normalizeKeys(e);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 e of this.mapCombosToHandlers.values())for(let r of e.subjects)r.complete();this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}dispose(){this.clear()}handleKeyDown=i(e=>{let r=this.resolveKey(e);r!==null&&(this.pressedKeys.add(r),this.checkMatchingKeyboardSubjects(e))},"handleKeyDown");checkMatchingKeyboardSubjects(e){this.mapCombosToHandlers.forEach(r=>{if(this.areAllKeysPressed(r.keys))for(let n of r.subjects)n.next(e)})}handleKeyUp=i(e=>{let r=this.resolveKey(e);r!==null&&this.pressedKeys.delete(r)},"handleKeyUp");areAllKeysPressed(e){let r=!0;return e.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(e,r){let n=this.normalizeKeys(e),o=n.join("+"),s=this.mapCombosToHandlers.get(o);if(!s){this.mapCombosToHandlers.set(o,{keys:n,subjects:[r]});return}s.subjects.push(r)}normalizeKeys(e){return[...new Set(e)].sort((r,n)=>r-n)}resolveKey(e){return this.resolveKeyFromCode(e.code)??this.resolveKeyFromKey(e.key)??this.resolveKeyFromKeyCode(e.keyCode)}resolveKeyFromCode(e){if(!e)return null;if(e.startsWith("Key")&&e.length===4)return Is[e.slice(3)]??null;if(e.startsWith("Digit")&&e.length===6)return this.resolveKeyFromKey(e.slice(5));switch(e){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(e){if(!e)return null;if(e.length===1){let r=e.toUpperCase();if(r>="A"&&r<="Z")return Is[r]??null;switch(e){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(e){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(e){return typeof e!="number"?null:typeof Is[e]<"u"?e:null}createKeyboardEvent(e){let r=e[e.length-1]??13,n=this.getKeyDescriptor(r);return new KeyboardEvent("keydown",{key:n.key,code:n.code,ctrlKey:e.includes(17),shiftKey:e.includes(16),altKey:e.includes(18),metaKey:e.includes(91)||e.includes(92)})}getKeyDescriptor(e){switch(e){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=Is[e];if(r&&r.length===1&&r>="A"&&r<="Z")return{key:r.toLowerCase(),code:`Key${r}`};if(e>=48&&e<=57){let n=String(e-48);return{key:n,code:`Digit${n}`}}return{key:r??"Unidentified",code:"Unidentified"}}}}};var ml=class t{static{i(this,"DomTools")}static initializationPromise=null;static async setupDomTools(e={}){if(e.ignoreGlobal){let r=new t(e);return await r.initializationPromise,r}if(globalThis.deesDomTools&&!globalThis.deesDomTools.disposed)return await globalThis.deesDomTools.initializationPromise,globalThis.deesDomTools;if(!t.initializationPromise){let r=new t(e);globalThis.deesDomTools=r,t.initializationPromise=r.initializationPromise.then(()=>r).catch(n=>{throw globalThis.deesDomTools===r&&(globalThis.deesDomTools=void 0),t.initializationPromise=null,n})}return await t.initializationPromise}static getGlobalDomToolsSync(){let e=globalThis.deesDomTools;if(!e||e.disposed)throw new Error("You tried to access domtools synchronously too early");return e}elements={headElement:null,bodyElement:null};websetup=new ol({metaObject:{title:""}});smartstate=new Wi.Smartstate;domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:""});router=new Li.SmartRouter({debug:!1});convenience={typedrequest:At,smartdelay:ge,smartjson:Dt,smarturl:$i};deesComms=new ya.DeesComms;scroller=new th(this);themeManager=new rh(this);keyboard=null;disposed=!1;domToolsReady=re.defer();domReady=re.defer();globalStylesReady=re.defer();initializationPromise;managedDomNodes=[];readyStateChangedFunc=i(()=>{this.tryMarkDomReady()},"readyStateChangedFunc");constructor(e){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 nh(document.body)),document.removeEventListener("readystatechange",this.readyStateChangedFunc),this.domReady.resolve())}trackManagedDomNode(e){return this.managedDomNodes.push(e),e}getHeadOrBodyElement(){let e=this.elements.headElement||document.head||this.elements.bodyElement||document.body;if(!e)throw new Error("DomTools could not find a DOM target element to attach resources to");return e}async runOnce(e,r){let n=this.runOncePromiseMap.get(e);return n||(n=Promise.resolve().then(async()=>await r()),this.runOncePromiseMap.set(e,n)),await n}async setGlobalStyles(e){await this.domReady.promise;let r=this.trackManagedDomNode(document.createElement("style"));r.type="text/css",r.appendChild(document.createTextNode(e)),this.getHeadOrBodyElement().appendChild(r)}async setExternalScript(e){await this.domReady.promise;let r=re.defer(),n=this.trackManagedDomNode(document.createElement("script"));n.src=e,n.addEventListener("load",()=>{r.resolve()}),n.addEventListener("error",()=>{r.reject(new Error(`Failed to load external script: ${e}`))}),this.getHeadOrBodyElement().append(n),await r.promise}async setExternalCss(e){await this.domReady.promise;let r=re.defer(),n=this.trackManagedDomNode(document.createElement("link"));n.rel="stylesheet",n.crossOrigin="anonymous",n.href=e,n.addEventListener("load",()=>{r.resolve()}),n.addEventListener("error",()=>{r.reject(new Error(`Failed to load external stylesheet: ${e}`))}),this.getHeadOrBodyElement().append(n),await r.promise}async setWebsiteInfo(e){await this.websetup.setup(e),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 e of this.managedDomNodes)e.remove();this.managedDomNodes.length=0,globalThis.deesDomTools===this&&(globalThis.deesDomTools=void 0,t.initializationPromise=null)}}};var ih=(()=>{let t=navigator.userAgent.indexOf("Mac OS X")===-1?hr``.cssText:"";return hr`
195
195
  /* width */
196
196
  ::-webkit-scrollbar {
197
197
  width: 0px;
@@ -199,7 +199,7 @@ ${o}
199
199
  body {
200
200
  scrollbar-width: none;
201
201
  }
202
- `.cssText})(),dO=jr`
202
+ `.cssText})(),dO=hr`
203
203
  /*
204
204
  @font-face {
205
205
  font-family: 'Material Icons';
@@ -217,25 +217,29 @@ ${o}
217
217
  }
218
218
 
219
219
  /* scroll bar styles */
220
- ${pr(ih)}
221
- `.cssText;var fq=jr`
220
+ ${Yt(ih)}
221
+ `.cssText;var pq=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"],hq=[...pq,":not(xhtml|*)"].map(t=>`:where(${t})`).join(", "),gO=hr`
222
+ @namespace xhtml url('http://www.w3.org/1999/xhtml');
223
+
222
224
  * {
223
- transition: background 0.1s, color 0.1s;
224
225
  box-sizing: border-box;
225
226
  }
226
227
 
228
+ ${Yt(hq)} {
229
+ transition: background 0.1s, color 0.1s;
230
+ }
231
+ `.cssText,mq=hr`
232
+ ${Yt(gO)}
233
+
227
234
  :host {
228
235
  box-sizing: border-box;
229
236
  font-family: 'Geist Sans', 'Inter', sans-serif;
230
237
  }
231
238
 
232
- ${pr(ih)}
233
- `,pq=ey`
239
+ ${Yt(ih)}
240
+ `,dq=ey`
234
241
  <style>
235
- * {
236
- transition: background 0.1s, color 0.1s;
237
- box-sizing: border-box;
238
- }
242
+ ${gO}
239
243
 
240
244
  :host {
241
245
  font-family: 'Geist Sans', 'Inter', sans-serif;
@@ -243,7 +247,7 @@ ${o}
243
247
 
244
248
  ${ih}
245
249
  </style>
246
- `,hq=i(async(t,e={})=>{let r=await ml.setupDomTools(e);return await r.runOnce("elementBasicSetup",async()=>{await r.setGlobalStyles(dO)}),r.globalStylesReady.status==="pending"&&r.globalStylesReady.resolve(),await r.globalStylesReady.promise,r},"setup");var oy={};ae(oy,{cssGridColumns:()=>mq});var mq=i((t,e)=>{let r="";for(let n=0;n<t;n++)r+=` calc((100%/${t}) - (${e*(t-1)}px/${t}))`;return r},"cssGridColumns");var sy={};ae(sy,{SweetScroll:()=>Cs.default,smartdelay:()=>ge,smartmarkdown:()=>Qa,smartpromise:()=>re,smartrouter:()=>Li,smartrx:()=>Me,smartstate:()=>Wi,smartstring:()=>Et,smarturl:()=>$i,typedrequest:()=>At});export{ml as DomTools,mf as TypedRequest,ny as breakpoints,oy as css,iy as elementBasic,sy as plugins};
250
+ `,gq=i(async(t,e={})=>{let r=await ml.setupDomTools(e);return await r.runOnce("elementBasicSetup",async()=>{await r.setGlobalStyles(dO)}),r.globalStylesReady.status==="pending"&&r.globalStylesReady.resolve(),await r.globalStylesReady.promise,r},"setup");var oy={};ae(oy,{cssGridColumns:()=>xq});var xq=i((t,e)=>{let r="";for(let n=0;n<t;n++)r+=` calc((100%/${t}) - (${e*(t-1)}px/${t}))`;return r},"cssGridColumns");var sy={};ae(sy,{SweetScroll:()=>Cs.default,smartdelay:()=>ge,smartmarkdown:()=>Qa,smartpromise:()=>re,smartrouter:()=>Li,smartrx:()=>Me,smartstate:()=>Wi,smartstring:()=>Et,smarturl:()=>$i,typedrequest:()=>At});export{ml as DomTools,mf as TypedRequest,ny as breakpoints,oy as css,iy as elementBasic,sy as plugins};
247
251
  /*! Bundled license information:
248
252
 
249
253
  sweet-scroll/sweet-scroll.js: