@consent.software/catalog 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.smartconfig.json +55 -0
- package/dist_bundle/bundle.js +221 -238
- package/dist_bundle/bundle.js.map +1 -7
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/consentsoftware-cookieconsent.d.ts +3 -0
- package/dist_ts_web/elements/consentsoftware-cookieconsent.js +71 -44
- package/dist_ts_web/elements/consentsoftware-tabs.js +1 -1
- package/dist_ts_web/elements/consentsoftware-toggle.js +3 -3
- package/dist_watch/bundle.js +95 -63
- package/dist_watch/bundle.js.map +3 -3
- package/license.md +21 -0
- package/package.json +9 -7
- package/readme.md +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/consentsoftware-cookieconsent.ts +82 -46
- package/ts_web/elements/consentsoftware-tabs.ts +2 -2
- package/ts_web/elements/consentsoftware-toggle.ts +2 -2
- package/npmextra.json +0 -31
- package/readme.hints.md +0 -0
package/dist_bundle/bundle.js
CHANGED
|
@@ -1,104 +1,94 @@
|
|
|
1
|
-
var dw=Object.create;var Bi=Object.defineProperty;var gw=Object.getOwnPropertyDescriptor;var hF=Object.getOwnPropertyNames;var mF=Object.getPrototypeOf,dF=Object.prototype.hasOwnProperty;var xw=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),$i=e=>{throw TypeError(e)};var yw=(e,t,r)=>t in e?Bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var pw=(e,t)=>Bi(e,"name",{value:t,configurable:!0}),Nu=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),te=(e,t)=>{for(var r in t)Bi(e,r,{get:t[r],enumerable:!0})},gF=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of hF(t))!dF.call(e,o)&&o!==r&&Bi(e,o,{get:()=>t[o],enumerable:!(n=gw(t,o))||n.enumerable});return e};var je=(e,t,r)=>(r=e!=null?dw(mF(e)):{},gF(t||!e||!e.__esModule?Bi(r,"default",{value:e,enumerable:!0}):r,e));var Br=e=>[,,,dw(e?.[xw("metadata")]??null)],bw=["class","method","getter","setter","accessor","field","value","get","set"],Ma=e=>e!==void 0&&typeof e!="function"?$i("Function expected"):e,xF=(e,t,r,n,o)=>({kind:bw[e],name:t,metadata:n,addInitializer:i=>r._?$i("Already initialized"):o.push(Ma(i||null))}),yF=(e,t)=>yw(t,xw("metadata"),e[3]),pt=(e,t,r,n)=>{for(var o=0,i=e[t>>1],s=i&&i.length;o<s;o++)t&1?i[o].call(r):n=i[o].call(r,n);return n},Yt=(e,t,r,n,o,i)=>{var s,a,l,u,c,f=t&7,p=!!(t&8),h=!!(t&16),m=f>3?e.length+1:f?p?1:2:0,d=bw[f+5],g=f>3&&(e[m-1]=[]),y=e[m]||(e[m]=[]),S=f&&(!h&&!p&&(o=o.prototype),f<5&&(f>3||!h)&&gw(f<4?o:{get[r](){return hw(this,i)},set[r](N){return mw(this,i,N)}},r));f?h&&f<4&&pw(i,(f>2?"set ":f>1?"get ":"")+r):pw(o,r);for(var k=n.length-1;k>=0;k--)u=xF(f,r,l={},e[3],y),f&&(u.static=p,u.private=h,c=u.access={has:h?N=>bF(o,N):N=>r in N},f^3&&(c.get=h?N=>(f^1?hw:wF)(N,o,f^4?i:S.get):N=>N[r]),f>2&&(c.set=h?(N,R)=>mw(N,o,R,f^4?i:S.set):(N,R)=>N[r]=R)),a=(0,n[k])(f?f<4?h?i:S[d]:f>4?void 0:{get:S.get,set:S.set}:o,u),l._=1,f^4||a===void 0?Ma(a)&&(f>4?g.unshift(a):f?h?i=a:S[d]=a:o=a):typeof a!="object"||a===null?$i("Object expected"):(Ma(s=a.get)&&(S.get=s),Ma(s=a.set)&&(S.set=s),Ma(s=a.init)&&g.unshift(s));return f||yF(e,o),S&&Bi(o,r,S),h?f^4?i:S:o},Vt=(e,t,r)=>yw(e,typeof t!="symbol"?t+"":t,r),Bm=(e,t,r)=>t.has(e)||$i("Cannot "+r),bF=(e,t)=>Object(t)!==t?$i('Cannot use the "in" operator on this value'):e.has(t),hw=(e,t,r)=>(Bm(e,t,"read from private field"),r?r.call(e):t.get(e)),Ui=(e,t,r)=>t.has(e)?$i("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),mw=(e,t,r,n)=>(Bm(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),wF=(e,t,r)=>(Bm(e,t,"access private method"),r);var $a=U(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.uni=void 0;var FF=(e="uni")=>`${e}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}`;Yu.uni=FF});var f1=U((Od,Md)=>{(function(e,t){typeof Od=="object"&&typeof Md<"u"?Md.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Od,(function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",a="day",l="week",u="month",c="quarter",f="year",p="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var O=["th","st","nd","rd"],M=j%100;return"["+j+(O[(M-20)%10]||O[M]||O[0])+"]"}},y=function(j,O,M){var P=String(j);return!P||P.length>=O?j:""+Array(O+1-P.length).join(M)+j},S={s:y,z:function(j){var O=-j.utcOffset(),M=Math.abs(O),P=Math.floor(M/60),B=M%60;return(O<=0?"+":"-")+y(P,2,"0")+":"+y(B,2,"0")},m:function j(O,M){if(O.date()<M.date())return-j(M,O);var P=12*(M.year()-O.year())+(M.month()-O.month()),B=O.clone().add(P,u),Q=M-B<0,F=O.clone().add(P+(Q?-1:1),u);return+(-(P+(M-B)/(Q?B-F:F-B))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:u,y:f,w:l,d:a,D:p,h:s,m:i,s:o,ms:n,Q:c}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},k="en",N={};N[k]=g;var R="$isDayjsObject",T=function(j){return j instanceof D||!(!j||!j[R])},$=function j(O,M,P){var B;if(!O)return k;if(typeof O=="string"){var Q=O.toLowerCase();N[Q]&&(B=Q),M&&(N[Q]=M,B=Q);var F=O.split("-");if(!B&&F.length>1)return j(F[0])}else{var W=O.name;N[W]=O,B=W}return!P&&B&&(k=B),B||!P&&k},J=function(j,O){if(T(j))return j.clone();var M=typeof O=="object"?O:{};return M.date=j,M.args=arguments,new D(M)},H=S;H.l=$,H.i=T,H.w=function(j,O){return J(j,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var D=(function(){function j(M){this.$L=$(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[R]=!0}var O=j.prototype;return O.parse=function(M){this.$d=(function(P){var B=P.date,Q=P.utc;if(B===null)return new Date(NaN);if(H.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var F=B.match(m);if(F){var W=F[2]-1||0,x=(F[7]||"0").substring(0,3);return Q?new Date(Date.UTC(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,x)):new Date(F[1],W,F[3]||1,F[4]||0,F[5]||0,F[6]||0,x)}}return new Date(B)})(M),this.init()},O.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},O.$utils=function(){return H},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(M,P){var B=J(M);return this.startOf(P)<=B&&B<=this.endOf(P)},O.isAfter=function(M,P){return J(M)<this.startOf(P)},O.isBefore=function(M,P){return this.endOf(P)<J(M)},O.$g=function(M,P,B){return H.u(M)?this[P]:this.set(B,M)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(M,P){var B=this,Q=!!H.u(P)||P,F=H.p(M),W=function(A,v){var E=H.w(B.$u?Date.UTC(B.$y,v,A):new Date(B.$y,v,A),B);return Q?E:E.endOf(a)},x=function(A,v){return H.w(B.toDate()[A].apply(B.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(v)),B)},ee=this.$W,se=this.$M,w=this.$D,he="set"+(this.$u?"UTC":"");switch(F){case f:return Q?W(1,0):W(31,11);case u:return Q?W(1,se):W(0,se+1);case l:var Se=this.$locale().weekStart||0,Re=(ee<Se?ee+7:ee)-Se;return W(Q?w-Re:w+(6-Re),se);case a:case p:return x(he+"Hours",0);case s:return x(he+"Minutes",1);case i:return x(he+"Seconds",2);case o:return x(he+"Milliseconds",3);default:return this.clone()}},O.endOf=function(M){return this.startOf(M,!1)},O.$set=function(M,P){var B,Q=H.p(M),F="set"+(this.$u?"UTC":""),W=(B={},B[a]=F+"Date",B[p]=F+"Date",B[u]=F+"Month",B[f]=F+"FullYear",B[s]=F+"Hours",B[i]=F+"Minutes",B[o]=F+"Seconds",B[n]=F+"Milliseconds",B)[Q],x=Q===a?this.$D+(P-this.$W):P;if(Q===u||Q===f){var ee=this.clone().set(p,1);ee.$d[W](x),ee.init(),this.$d=ee.set(p,Math.min(this.$D,ee.daysInMonth())).$d}else W&&this.$d[W](x);return this.init(),this},O.set=function(M,P){return this.clone().$set(M,P)},O.get=function(M){return this[H.p(M)]()},O.add=function(M,P){var B,Q=this;M=Number(M);var F=H.p(P),W=function(se){var w=J(Q);return H.w(w.date(w.date()+Math.round(se*M)),Q)};if(F===u)return this.set(u,this.$M+M);if(F===f)return this.set(f,this.$y+M);if(F===a)return W(1);if(F===l)return W(7);var x=(B={},B[i]=t,B[s]=r,B[o]=e,B)[F]||1,ee=this.$d.getTime()+M*x;return H.w(ee,this)},O.subtract=function(M,P){return this.add(-1*M,P)},O.format=function(M){var P=this,B=this.$locale();if(!this.isValid())return B.invalidDate||h;var Q=M||"YYYY-MM-DDTHH:mm:ssZ",F=H.z(this),W=this.$H,x=this.$m,ee=this.$M,se=B.weekdays,w=B.months,he=B.meridiem,Se=function(v,E,C,I){return v&&(v[E]||v(P,Q))||C[E].slice(0,I)},Re=function(v){return H.s(W%12||12,v,"0")},A=he||function(v,E,C){var I=v<12?"AM":"PM";return C?I.toLowerCase():I};return Q.replace(d,(function(v,E){return E||(function(C){switch(C){case"YY":return String(P.$y).slice(-2);case"YYYY":return H.s(P.$y,4,"0");case"M":return ee+1;case"MM":return H.s(ee+1,2,"0");case"MMM":return Se(B.monthsShort,ee,w,3);case"MMMM":return Se(w,ee);case"D":return P.$D;case"DD":return H.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return Se(B.weekdaysMin,P.$W,se,2);case"ddd":return Se(B.weekdaysShort,P.$W,se,3);case"dddd":return se[P.$W];case"H":return String(W);case"HH":return H.s(W,2,"0");case"h":return Re(1);case"hh":return Re(2);case"a":return A(W,x,!0);case"A":return A(W,x,!1);case"m":return String(x);case"mm":return H.s(x,2,"0");case"s":return String(P.$s);case"ss":return H.s(P.$s,2,"0");case"SSS":return H.s(P.$ms,3,"0");case"Z":return F}return null})(v)||F.replace(":","")}))},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(M,P,B){var Q,F=this,W=H.p(P),x=J(M),ee=(x.utcOffset()-this.utcOffset())*t,se=this-x,w=function(){return H.m(F,x)};switch(W){case f:Q=w()/12;break;case u:Q=w();break;case c:Q=w()/3;break;case l:Q=(se-ee)/6048e5;break;case a:Q=(se-ee)/864e5;break;case s:Q=se/r;break;case i:Q=se/t;break;case o:Q=se/e;break;default:Q=se}return B?Q:H.a(Q)},O.daysInMonth=function(){return this.endOf(u).$D},O.$locale=function(){return N[this.$L]},O.locale=function(M,P){if(!M)return this.$L;var B=this.clone(),Q=$(M,P,!0);return Q&&(B.$L=Q),B},O.clone=function(){return H.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},j})(),xe=D.prototype;return J.prototype=xe,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",u],["$y",f],["$D",p]].forEach((function(j){xe[j[1]]=function(O){return this.$g(O,j[0],j[1])}})),J.extend=function(j,O){return j.$i||(j(O,D,J),j.$i=!0),J},J.locale=$,J.isDayjs=T,J.unix=function(j){return J(1e3*j)},J.en=N[k],J.Ls=N,J.p={},J}))});var p1=U((_d,Id)=>{(function(e,t){typeof _d=="object"&&typeof Id<"u"?Id.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(_d,(function(){"use strict";return function(e,t,r){t.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}}))});var x1=U((FMe,g1)=>{"use strict";g1.exports=class{constructor(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.childrenVersion=0,this.childIndexCachedUpTo=null,this.cachedIndex=-1,this.cachedIndexVersion=NaN}get isAttached(){return!!(this.parent||this.previousSibling||this.nextSibling)}get hasChildren(){return!!this.firstChild}childrenChanged(){this.childrenVersion=this.childrenVersion+1&4294967295,this.childIndexCachedUpTo=null}getCachedIndex(t){return this.cachedIndexVersion!==t.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(t,r){this.cachedIndexVersion=t.childrenVersion,this.cachedIndex=r}}});var b1=U((NMe,y1)=>{"use strict";y1.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var T1=U((LMe,k1)=>{"use strict";var w1=Symbol(),v1=Symbol(),eo=Symbol(),S1=Symbol(),Or=class{constructor(t,r,n,o){this[w1]=t,this[v1]=r,this[eo]=n,this[S1]=o}next(){let t=this[w1],r=this[S1],n=this[v1];if(!this[eo])return{done:!0,value:n};let o=this[eo];return r===1?this[eo]=t._node(o).previousSibling:r===2?this[eo]=t._node(o).nextSibling:r===3?this[eo]=t._node(o).parent:r===4?this[eo]=t.preceding(o,{root:n}):this[eo]=t.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(Or.prototype,Symbol.iterator,{value:function(){return this},writable:!1}),Or.PREV=1,Or.NEXT=2,Or.PARENT=3,Or.PRECEDING=4,Or.FOLLOWING=5,Object.freeze(Or),Object.freeze(Or.prototype),k1.exports=Or});var ip=U((RMe,E1)=>{"use strict";var iB=x1(),to=b1(),xr=T1();function zd(){return!0}function Os(e,t){return e[e.length-1-t]}var op=class{constructor(t){this.symbol=Symbol(t||"SymbolTree data")}initialize(t){return this._node(t),t}_node(t){if(!t)return null;let r=t[this.symbol];return r||(t[this.symbol]=new iB)}hasChildren(t){return this._node(t).hasChildren}firstChild(t){return this._node(t).firstChild}lastChild(t){return this._node(t).lastChild}previousSibling(t){return this._node(t).previousSibling}nextSibling(t){return this._node(t).nextSibling}parent(t){return this._node(t).parent}lastInclusiveDescendant(t){let r,n=t;for(;r=this._node(n).lastChild;)n=r;return n}preceding(t,r){let n=r&&r.root;if(t===n)return null;let o=this._node(t).previousSibling;return o?this.lastInclusiveDescendant(o):this._node(t).parent}following(t,r){let n=r&&r.root,i=!(r&&r.skipChildren)&&this._node(t).firstChild;if(i)return i;let s=t;do{if(s===n)return null;let a=this._node(s).nextSibling;if(a)return a;s=this._node(s).parent}while(s);return null}childrenToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||zd,i=r&&r.thisArg||void 0,s=this._node(t),a=s.firstChild,l=0;for(;a;){let u=this._node(a);u.setCachedIndex(s,l),o.call(i,a)&&n.push(a),a=u.nextSibling,++l}return n}ancestorsToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||zd,i=r&&r.thisArg||void 0,s=t;for(;s;)o.call(i,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(t,r){let n=r&&r.array||[],o=r&&r.filter||zd,i=r&&r.thisArg||void 0,s=t;for(;s;)o.call(i,s)&&n.push(s),s=this.following(s,{root:t});return n}childrenIterator(t,r){let n=r&&r.reverse,o=this._node(t);return new xr(this,t,n?o.lastChild:o.firstChild,n?xr.PREV:xr.NEXT)}previousSiblingsIterator(t){return new xr(this,t,this._node(t).previousSibling,xr.PREV)}nextSiblingsIterator(t){return new xr(this,t,this._node(t).nextSibling,xr.NEXT)}ancestorsIterator(t){return new xr(this,t,t,xr.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new xr(this,t,n?this.lastInclusiveDescendant(t):t,n?xr.PRECEDING:xr.FOLLOWING)}index(t){let r=this._node(t),n=this._node(r.parent);if(!n)return-1;let o=r.getCachedIndex(n);if(o>=0)return o;o=0;let i=n.firstChild;if(n.childIndexCachedUpTo){let s=this._node(n.childIndexCachedUpTo);i=s.nextSibling,o=s.getCachedIndex(n)+1}for(;i;){let s=this._node(i);if(s.setCachedIndex(n,o),i===t)break;++o,i=s.nextSibling}return n.childIndexCachedUpTo=t,o}childrenCount(t){let r=this._node(t);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(t,r){if(t===r)return 0;let n=[];{let c=t;for(;c;){if(c===r)return to.CONTAINS|to.PRECEDING;n.push(c),c=this.parent(c)}}let o=[];{let c=r;for(;c;){if(c===t)return to.CONTAINED_BY|to.FOLLOWING;o.push(c),c=this.parent(c)}}let i=Os(n,0);if(!i||i!==Os(o,0))return to.DISCONNECTED;let s=0,a=Math.min(n.length,o.length);for(let c=0;c<a;++c){let f=Os(n,c),p=Os(o,c);if(f!==p)break;s=c}let l=this.index(Os(n,s+1));return this.index(Os(o,s+1))<l?to.PRECEDING:to.FOLLOWING}remove(t){let r=this._node(t),n=this._node(r.parent),o=this._node(r.previousSibling),i=this._node(r.nextSibling);return n&&(n.firstChild===t&&(n.firstChild=r.nextSibling),n.lastChild===t&&(n.lastChild=r.previousSibling)),o&&(o.nextSibling=r.nextSibling),i&&(i.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,n&&n.childrenChanged(),t}insertBefore(t,r){let n=this._node(t),o=this._node(n.previousSibling),i=this._node(r),s=this._node(n.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=n.parent,i.previousSibling=n.previousSibling,i.nextSibling=t,n.previousSibling=r,o&&(o.nextSibling=r),s&&s.firstChild===t&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(t,r){let n=this._node(t),o=this._node(n.nextSibling),i=this._node(r),s=this._node(n.parent);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return i.parent=n.parent,i.previousSibling=t,i.nextSibling=n.nextSibling,n.nextSibling=r,o&&(o.previousSibling=r),s&&s.lastChild===t&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(t,r){let n=this._node(t),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(o.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(t,r){let n=this._node(t),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(o.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};E1.exports=op,op.TreePosition=to});var L1=U((_s,Is)=>{(function(e){var t=typeof _s=="object"&&_s&&!_s.nodeType&&_s,r=typeof Is=="object"&&Is&&!Is.nodeType&&Is,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(e=n);var o,i=2147483647,s=36,a=1,l=26,u=38,c=700,f=72,p=128,h="-",m=/^xn--/,d=/[^\x20-\x7E]/,g=/[\x2E\u3002\uFF0E\uFF61]/g,y={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=s-a,k=Math.floor,N=String.fromCharCode,R;function T(F){throw new RangeError(y[F])}function $(F,W){for(var x=F.length,ee=[];x--;)ee[x]=W(F[x]);return ee}function J(F,W){var x=F.split("@"),ee="";x.length>1&&(ee=x[0]+"@",F=x[1]),F=F.replace(g,".");var se=F.split("."),w=$(se,W).join(".");return ee+w}function H(F){for(var W=[],x=0,ee=F.length,se,w;x<ee;)se=F.charCodeAt(x++),se>=55296&&se<=56319&&x<ee?(w=F.charCodeAt(x++),(w&64512)==56320?W.push(((se&1023)<<10)+(w&1023)+65536):(W.push(se),x--)):W.push(se);return W}function D(F){return $(F,function(W){var x="";return W>65535&&(W-=65536,x+=N(W>>>10&1023|55296),W=56320|W&1023),x+=N(W),x}).join("")}function xe(F){return F-48<10?F-22:F-65<26?F-65:F-97<26?F-97:s}function j(F,W){return F+22+75*(F<26)-((W!=0)<<5)}function O(F,W,x){var ee=0;for(F=x?k(F/c):F>>1,F+=k(F/W);F>S*l>>1;ee+=s)F=k(F/S);return k(ee+(S+1)*F/(F+u))}function M(F){var W=[],x=F.length,ee,se=0,w=p,he=f,Se,Re,A,v,E,C,I,Z,ke;for(Se=F.lastIndexOf(h),Se<0&&(Se=0),Re=0;Re<Se;++Re)F.charCodeAt(Re)>=128&&T("not-basic"),W.push(F.charCodeAt(Re));for(A=Se>0?Se+1:0;A<x;){for(v=se,E=1,C=s;A>=x&&T("invalid-input"),I=xe(F.charCodeAt(A++)),(I>=s||I>k((i-se)/E))&&T("overflow"),se+=I*E,Z=C<=he?a:C>=he+l?l:C-he,!(I<Z);C+=s)ke=s-Z,E>k(i/ke)&&T("overflow"),E*=ke;ee=W.length+1,he=O(se-v,ee,v==0),k(se/ee)>i-w&&T("overflow"),w+=k(se/ee),se%=ee,W.splice(se++,0,w)}return D(W)}function P(F){var W,x,ee,se,w,he,Se,Re,A,v,E,C=[],I,Z,ke,Ae;for(F=H(F),I=F.length,W=p,x=0,w=f,he=0;he<I;++he)E=F[he],E<128&&C.push(N(E));for(ee=se=C.length,se&&C.push(h);ee<I;){for(Se=i,he=0;he<I;++he)E=F[he],E>=W&&E<Se&&(Se=E);for(Z=ee+1,Se-W>k((i-x)/Z)&&T("overflow"),x+=(Se-W)*Z,W=Se,he=0;he<I;++he)if(E=F[he],E<W&&++x>i&&T("overflow"),E==W){for(Re=x,A=s;v=A<=w?a:A>=w+l?l:A-w,!(Re<v);A+=s)Ae=Re-v,ke=s-v,C.push(N(j(v+Ae%ke,0))),Re=k(Ae/ke);C.push(N(j(Re,0))),w=O(x,Z,ee==se),x=0,++ee}++x,++W}return C.join("")}function B(F){return J(F,function(W){return m.test(W)?M(W.slice(4).toLowerCase()):W})}function Q(F){return J(F,function(W){return d.test(W)?"xn--"+P(W):W})}if(o={version:"1.4.1",ucs2:{decode:H,encode:D},decode:M,encode:P,toASCII:Q,toUnicode:B},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return o});else if(t&&r)if(Is.exports==t)r.exports=o;else for(R in o)o.hasOwnProperty(R)&&(t[R]=o[R]);else e.punycode=o})(_s)});var Ko=U((N_e,R1)=>{"use strict";R1.exports=TypeError});var B1=U(()=>{});var vl=U((B_e,oT)=>{var Xd=typeof Map=="function"&&Map.prototype,Zd=Object.getOwnPropertyDescriptor&&Xd?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ap=Xd&&Zd&&typeof Zd.get=="function"?Zd.get:null,$1=Xd&&Map.prototype.forEach,Kd=typeof Set=="function"&&Set.prototype,eg=Object.getOwnPropertyDescriptor&&Kd?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,lp=Kd&&eg&&typeof eg.get=="function"?eg.get:null,U1=Kd&&Set.prototype.forEach,NB=typeof WeakMap=="function"&&WeakMap.prototype,yl=NB?WeakMap.prototype.has:null,LB=typeof WeakSet=="function"&&WeakSet.prototype,bl=LB?WeakSet.prototype.has:null,RB=typeof WeakRef=="function"&&WeakRef.prototype,z1=RB?WeakRef.prototype.deref:null,BB=Boolean.prototype.valueOf,$B=Object.prototype.toString,UB=Function.prototype.toString,zB=String.prototype.match,tg=String.prototype.slice,io=String.prototype.replace,jB=String.prototype.toUpperCase,j1=String.prototype.toLowerCase,q1=RegExp.prototype.test,H1=Array.prototype.concat,Jr=Array.prototype.join,qB=Array.prototype.slice,W1=Math.floor,rg=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ng=Object.getOwnPropertySymbols,og=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Mt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ps||!0)?Symbol.toStringTag:null,Y1=Object.prototype.propertyIsEnumerable,V1=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function G1(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||q1.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-W1(-e):W1(e);if(n!==e){var o=String(n),i=tg.call(t,o.length+1);return io.call(o,r,"$&_")+"."+io.call(io.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return io.call(t,r,"$&_")}var ig=B1(),Q1=ig.custom,J1=eT(Q1)?Q1:null,X1={__proto__:null,double:'"',single:"'"},HB={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};oT.exports=function e(t,r,n,o){var i=r||{};if(Sn(i,"quoteStyle")&&!Sn(X1,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Sn(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Sn(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Sn(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Sn(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return rT(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?G1(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?G1(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return sg(t)?"[Array]":"[Object]";var f=l$(i,n);if(typeof o>"u")o=[];else if(tT(o,t)>=0)return"[Circular]";function p(O,M,P){if(M&&(o=qB.call(o),o.push(M)),P){var B={depth:i.depth};return Sn(i,"quoteStyle")&&(B.quoteStyle=i.quoteStyle),e(O,B,n+1,o)}return e(O,i,n+1,o)}if(typeof t=="function"&&!K1(t)){var h=KB(t),m=up(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+Jr.call(m,", ")+" }":"")}if(eT(t)){var d=Ps?io.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):og.call(t);return typeof t=="object"&&!Ps?wl(d):d}if(i$(t)){for(var g="<"+j1.call(String(t.nodeName)),y=t.attributes||[],S=0;S<y.length;S++)g+=" "+y[S].name+"="+Z1(WB(y[S].value),"double",i);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+j1.call(String(t.nodeName))+">",g}if(sg(t)){if(t.length===0)return"[]";var k=up(t,p);return f&&!a$(k)?"["+lg(k,f)+"]":"[ "+Jr.call(k,", ")+" ]"}if(VB(t)){var N=up(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Y1.call(t,"cause")?"{ ["+String(t)+"] "+Jr.call(H1.call("[cause]: "+p(t.cause),N),", ")+" }":N.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Jr.call(N,", ")+" }"}if(typeof t=="object"&&s){if(J1&&typeof t[J1]=="function"&&ig)return ig(t,{depth:c-n});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(e$(t)){var R=[];return $1&&$1.call(t,function(O,M){R.push(p(M,t,!0)+" => "+p(O,t))}),nT("Map",ap.call(t),R,f)}if(n$(t)){var T=[];return U1&&U1.call(t,function(O){T.push(p(O,t))}),nT("Set",lp.call(t),T,f)}if(t$(t))return ag("WeakMap");if(o$(t))return ag("WeakSet");if(r$(t))return ag("WeakRef");if(QB(t))return wl(p(Number(t)));if(XB(t))return wl(p(rg.call(t)));if(JB(t))return wl(BB.call(t));if(GB(t))return wl(p(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!YB(t)&&!K1(t)){var $=up(t,p),J=V1?V1(t)===Object.prototype:t instanceof Object||t.constructor===Object,H=t instanceof Object?"":"null prototype",D=!J&&Mt&&Object(t)===t&&Mt in t?tg.call(so(t),8,-1):H?"Object":"",xe=J||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",j=xe+(D||H?"["+Jr.call(H1.call([],D||[],H||[]),": ")+"] ":"");return $.length===0?j+"{}":f?j+"{"+lg($,f)+"}":j+"{ "+Jr.call($,", ")+" }"}return String(t)};function Z1(e,t,r){var n=r.quoteStyle||t,o=X1[n];return o+e+o}function WB(e){return io.call(String(e),/"/g,""")}function sg(e){return so(e)==="[object Array]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function YB(e){return so(e)==="[object Date]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function K1(e){return so(e)==="[object RegExp]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function VB(e){return so(e)==="[object Error]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function GB(e){return so(e)==="[object String]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function QB(e){return so(e)==="[object Number]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function JB(e){return so(e)==="[object Boolean]"&&(!Mt||!(typeof e=="object"&&Mt in e))}function eT(e){if(Ps)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!og)return!1;try{return og.call(e),!0}catch{}return!1}function XB(e){if(!e||typeof e!="object"||!rg)return!1;try{return rg.call(e),!0}catch{}return!1}var ZB=Object.prototype.hasOwnProperty||function(e){return e in this};function Sn(e,t){return ZB.call(e,t)}function so(e){return $B.call(e)}function KB(e){if(e.name)return e.name;var t=zB.call(UB.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function tT(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function e$(e){if(!ap||!e||typeof e!="object")return!1;try{ap.call(e);try{lp.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function t$(e){if(!yl||!e||typeof e!="object")return!1;try{yl.call(e,yl);try{bl.call(e,bl)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function r$(e){if(!z1||!e||typeof e!="object")return!1;try{return z1.call(e),!0}catch{}return!1}function n$(e){if(!lp||!e||typeof e!="object")return!1;try{lp.call(e);try{ap.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function o$(e){if(!bl||!e||typeof e!="object")return!1;try{bl.call(e,bl);try{yl.call(e,yl)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function i$(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function rT(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return rT(tg.call(e,0,t.maxStringLength),t)+n}var o=HB[t.quoteStyle||"single"];o.lastIndex=0;var i=io.call(io.call(e,o,"\\$1"),/[\x00-\x1f]/g,s$);return Z1(i,"single",t)}function s$(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+jB.call(t.toString(16))}function wl(e){return"Object("+e+")"}function ag(e){return e+" { ? }"}function nT(e,t,r,n){var o=n?lg(r,n):Jr.call(r,", ");return e+" ("+t+") {"+o+"}"}function a$(e){for(var t=0;t<e.length;t++)if(tT(e[t],`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
`+t.prev}function up(e,t){var r=sg(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=Sn(e,o)?t(e[o],e):""}var i=typeof ng=="function"?ng(e):[],s;if(Ps){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var l in e)Sn(e,l)&&(r&&String(Number(l))===l&&l<e.length||Ps&&s["$"+l]instanceof Symbol||(q1.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof ng=="function")for(var u=0;u<i.length;u++)Y1.call(e,i[u])&&n.push("["+t(i[u])+"]: "+t(e[i[u]],e));return n}});var sT=U(($_e,iT)=>{"use strict";var u$=vl(),c$=Ko(),cp=function(e,t,r){for(var n=e,o;(o=n.next)!=null;n=o)if(o.key===t)return n.next=o.next,r||(o.next=e.next,e.next=o),o},f$=function(e,t){if(e){var r=cp(e,t);return r&&r.value}},p$=function(e,t,r){var n=cp(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},h$=function(e,t){return e?!!cp(e,t):!1},m$=function(e,t){if(e)return cp(e,t,!0)};iT.exports=function(){var t,r={assert:function(n){if(!r.has(n))throw new c$("Side channel does not contain "+u$(n))},delete:function(n){var o=t&&t.next,i=m$(t,n);return i&&o&&o===i&&(t=void 0),!!i},get:function(n){return f$(t,n)},has:function(n){return h$(t,n)},set:function(n,o){t||(t={next:void 0}),p$(t,n,o)}};return r}});var ug=U((U_e,aT)=>{"use strict";aT.exports=Object});var uT=U((z_e,lT)=>{"use strict";lT.exports=Error});var fT=U((j_e,cT)=>{"use strict";cT.exports=EvalError});var hT=U((q_e,pT)=>{"use strict";pT.exports=RangeError});var dT=U((H_e,mT)=>{"use strict";mT.exports=ReferenceError});var xT=U((W_e,gT)=>{"use strict";gT.exports=SyntaxError});var bT=U((Y_e,yT)=>{"use strict";yT.exports=URIError});var vT=U((V_e,wT)=>{"use strict";wT.exports=Math.abs});var kT=U((G_e,ST)=>{"use strict";ST.exports=Math.floor});var ET=U((Q_e,TT)=>{"use strict";TT.exports=Math.max});var DT=U((J_e,AT)=>{"use strict";AT.exports=Math.min});var OT=U((X_e,CT)=>{"use strict";CT.exports=Math.pow});var _T=U((Z_e,MT)=>{"use strict";MT.exports=Math.round});var PT=U((K_e,IT)=>{"use strict";IT.exports=Number.isNaN||function(t){return t!==t}});var NT=U((eIe,FT)=>{"use strict";var d$=PT();FT.exports=function(t){return d$(t)||t===0?t:t<0?-1:1}});var RT=U((tIe,LT)=>{"use strict";LT.exports=Object.getOwnPropertyDescriptor});var cg=U((rIe,BT)=>{"use strict";var fp=RT();if(fp)try{fp([],"length")}catch{fp=null}BT.exports=fp});var UT=U((nIe,$T)=>{"use strict";var pp=Object.defineProperty||!1;if(pp)try{pp({},"a",{value:1})}catch{pp=!1}$T.exports=pp});var jT=U((oIe,zT)=>{"use strict";zT.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0}});var WT=U((iIe,HT)=>{"use strict";var qT=typeof Symbol<"u"&&Symbol,g$=jT();HT.exports=function(){return typeof qT!="function"||typeof Symbol!="function"||typeof qT("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:g$()}});var fg=U((sIe,YT)=>{"use strict";YT.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var pg=U((aIe,VT)=>{"use strict";var x$=ug();VT.exports=x$.getPrototypeOf||null});var JT=U((lIe,QT)=>{"use strict";var y$="Function.prototype.bind called on incompatible ",b$=Object.prototype.toString,w$=Math.max,v$="[object Function]",GT=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},S$=function(t,r){for(var n=[],o=r||0,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},k$=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};QT.exports=function(t){var r=this;if(typeof r!="function"||b$.apply(r)!==v$)throw new TypeError(y$+r);for(var n=S$(arguments,1),o,i=function(){if(this instanceof o){var c=r.apply(this,GT(n,arguments));return Object(c)===c?c:this}return r.apply(t,GT(n,arguments))},s=w$(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(o=Function("binder","return function ("+k$(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var u=function(){};u.prototype=r.prototype,o.prototype=new u,u.prototype=null}return o}});var Sl=U((uIe,XT)=>{"use strict";var T$=JT();XT.exports=Function.prototype.bind||T$});var hp=U((cIe,ZT)=>{"use strict";ZT.exports=Function.prototype.call});var hg=U((fIe,KT)=>{"use strict";KT.exports=Function.prototype.apply});var tE=U((pIe,eE)=>{"use strict";eE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var nE=U((hIe,rE)=>{"use strict";var E$=Sl(),A$=hg(),D$=hp(),C$=tE();rE.exports=C$||E$.call(D$,A$)});var mg=U((mIe,oE)=>{"use strict";var O$=Sl(),M$=Ko(),_$=hp(),I$=nE();oE.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new M$("a function is required");return I$(O$,_$,t)}});var cE=U((dIe,uE)=>{"use strict";var P$=mg(),iE=cg(),sE;try{sE=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var dg=!!sE&&iE&&iE(Object.prototype,"__proto__"),aE=Object,lE=aE.getPrototypeOf;uE.exports=dg&&typeof dg.get=="function"?P$([dg.get]):typeof lE=="function"?function(t){return lE(t==null?t:aE(t))}:!1});var dE=U((gIe,mE)=>{"use strict";var fE=fg(),pE=pg(),hE=cE();mE.exports=fE?function(t){return fE(t)}:pE?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return pE(t)}:hE?function(t){return hE(t)}:null});var xE=U((xIe,gE)=>{"use strict";var F$=Function.prototype.call,N$=Object.prototype.hasOwnProperty,L$=Sl();gE.exports=L$.call(F$,N$)});var gp=U((yIe,kE)=>{"use strict";var we,R$=ug(),B$=uT(),$$=fT(),U$=hT(),z$=dT(),Fs=xT(),Ns=Ko(),j$=bT(),q$=vT(),H$=kT(),W$=ET(),Y$=DT(),V$=OT(),G$=_T(),Q$=NT(),yE=Function,gg=function(e){try{return yE('"use strict"; return ('+e+").constructor;")()}catch{}},kl=cg(),J$=UT(),xg=function(){throw new Ns},X$=kl?(function(){try{return arguments.callee,xg}catch{try{return kl(arguments,"callee").get}catch{return xg}}})():xg,Ls=WT()(),dt=dE(),Z$=pg(),K$=fg(),bE=hg(),Tl=hp(),Rs={},eU=typeof Uint8Array>"u"||!dt?we:dt(Uint8Array),ei={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?we:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?we:ArrayBuffer,"%ArrayIteratorPrototype%":Ls&&dt?dt([][Symbol.iterator]()):we,"%AsyncFromSyncIteratorPrototype%":we,"%AsyncFunction%":Rs,"%AsyncGenerator%":Rs,"%AsyncGeneratorFunction%":Rs,"%AsyncIteratorPrototype%":Rs,"%Atomics%":typeof Atomics>"u"?we:Atomics,"%BigInt%":typeof BigInt>"u"?we:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?we:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?we:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?we:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":B$,"%eval%":eval,"%EvalError%":$$,"%Float32Array%":typeof Float32Array>"u"?we:Float32Array,"%Float64Array%":typeof Float64Array>"u"?we:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?we:FinalizationRegistry,"%Function%":yE,"%GeneratorFunction%":Rs,"%Int8Array%":typeof Int8Array>"u"?we:Int8Array,"%Int16Array%":typeof Int16Array>"u"?we:Int16Array,"%Int32Array%":typeof Int32Array>"u"?we:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ls&&dt?dt(dt([][Symbol.iterator]())):we,"%JSON%":typeof JSON=="object"?JSON:we,"%Map%":typeof Map>"u"?we:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ls||!dt?we:dt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":R$,"%Object.getOwnPropertyDescriptor%":kl,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?we:Promise,"%Proxy%":typeof Proxy>"u"?we:Proxy,"%RangeError%":U$,"%ReferenceError%":z$,"%Reflect%":typeof Reflect>"u"?we:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?we:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ls||!dt?we:dt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?we:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ls&&dt?dt(""[Symbol.iterator]()):we,"%Symbol%":Ls?Symbol:we,"%SyntaxError%":Fs,"%ThrowTypeError%":X$,"%TypedArray%":eU,"%TypeError%":Ns,"%Uint8Array%":typeof Uint8Array>"u"?we:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?we:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?we:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?we:Uint32Array,"%URIError%":j$,"%WeakMap%":typeof WeakMap>"u"?we:WeakMap,"%WeakRef%":typeof WeakRef>"u"?we:WeakRef,"%WeakSet%":typeof WeakSet>"u"?we:WeakSet,"%Function.prototype.call%":Tl,"%Function.prototype.apply%":bE,"%Object.defineProperty%":J$,"%Object.getPrototypeOf%":Z$,"%Math.abs%":q$,"%Math.floor%":H$,"%Math.max%":W$,"%Math.min%":Y$,"%Math.pow%":V$,"%Math.round%":G$,"%Math.sign%":Q$,"%Reflect.getPrototypeOf%":K$};if(dt)try{null.error}catch(e){wE=dt(dt(e)),ei["%Error.prototype%"]=wE}var tU=function e(t){var r;if(t==="%AsyncFunction%")r=gg("async function () {}");else if(t==="%GeneratorFunction%")r=gg("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=gg("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&dt&&(r=dt(o.prototype))}return ei[t]=r,r},vE={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},El=Sl(),mp=xE(),rU=El.call(Tl,Array.prototype.concat),nU=El.call(bE,Array.prototype.splice),SE=El.call(Tl,String.prototype.replace),dp=El.call(Tl,String.prototype.slice),oU=El.call(Tl,RegExp.prototype.exec),iU=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,sU=/\\(\\)?/g,aU=function(t){var r=dp(t,0,1),n=dp(t,-1);if(r==="%"&&n!=="%")throw new Fs("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Fs("invalid intrinsic syntax, expected opening `%`");var o=[];return SE(t,iU,function(i,s,a,l){o[o.length]=a?SE(l,sU,"$1"):s||i}),o},lU=function(t,r){var n=t,o;if(mp(vE,n)&&(o=vE[n],n="%"+o[0]+"%"),mp(ei,n)){var i=ei[n];if(i===Rs&&(i=tU(n)),typeof i>"u"&&!r)throw new Ns("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new Fs("intrinsic "+t+" does not exist!")};kE.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Ns("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Ns('"allowMissing" argument must be a boolean');if(oU(/^%?[^%]*%?$/,t)===null)throw new Fs("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=aU(t),o=n.length>0?n[0]:"",i=lU("%"+o+"%",r),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],nU(n,rU([0,1],u)));for(var c=1,f=!0;c<n.length;c+=1){var p=n[c],h=dp(p,0,1),m=dp(p,-1);if((h==='"'||h==="'"||h==="`"||m==='"'||m==="'"||m==="`")&&h!==m)throw new Fs("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(l=!0),o+="."+p,s="%"+o+"%",mp(ei,s))a=ei[s];else if(a!=null){if(!(p in a)){if(!r)throw new Ns("base intrinsic for "+t+" exists, but the property is not available.");return}if(kl&&c+1>=n.length){var d=kl(a,p);f=!!d,f&&"get"in d&&!("originalValue"in d.get)?a=d.get:a=a[p]}else f=mp(a,p),a=a[p];f&&!l&&(ei[s]=a)}}return a};var wE});var yg=U((bIe,AE)=>{"use strict";var TE=gp(),EE=mg(),uU=EE([TE("%String.prototype.indexOf%")]);AE.exports=function(t,r){var n=TE(t,!!r);return typeof n=="function"&&uU(t,".prototype.")>-1?EE([n]):n}});var bg=U((wIe,CE)=>{"use strict";var cU=gp(),Al=yg(),fU=vl(),pU=Ko(),DE=cU("%Map%",!0),hU=Al("Map.prototype.get",!0),mU=Al("Map.prototype.set",!0),dU=Al("Map.prototype.has",!0),gU=Al("Map.prototype.delete",!0),xU=Al("Map.prototype.size",!0);CE.exports=!!DE&&function(){var t,r={assert:function(n){if(!r.has(n))throw new pU("Side channel does not contain "+fU(n))},delete:function(n){if(t){var o=gU(t,n);return xU(t)===0&&(t=void 0),o}return!1},get:function(n){if(t)return hU(t,n)},has:function(n){return t?dU(t,n):!1},set:function(n,o){t||(t=new DE),mU(t,n,o)}};return r}});var ME=U((vIe,OE)=>{"use strict";var yU=gp(),xp=yg(),bU=vl(),yp=bg(),wU=Ko(),Bs=yU("%WeakMap%",!0),vU=xp("WeakMap.prototype.get",!0),SU=xp("WeakMap.prototype.set",!0),kU=xp("WeakMap.prototype.has",!0),TU=xp("WeakMap.prototype.delete",!0);OE.exports=Bs?function(){var t,r,n={assert:function(o){if(!n.has(o))throw new wU("Side channel does not contain "+bU(o))},delete:function(o){if(Bs&&o&&(typeof o=="object"||typeof o=="function")){if(t)return TU(t,o)}else if(yp&&r)return r.delete(o);return!1},get:function(o){return Bs&&o&&(typeof o=="object"||typeof o=="function")&&t?vU(t,o):r&&r.get(o)},has:function(o){return Bs&&o&&(typeof o=="object"||typeof o=="function")&&t?kU(t,o):!!r&&r.has(o)},set:function(o,i){Bs&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Bs),SU(t,o,i)):yp&&(r||(r=yp()),r.set(o,i))}};return n}:yp});var IE=U((SIe,_E)=>{"use strict";var EU=Ko(),AU=vl(),DU=sT(),CU=bg(),OU=ME(),MU=OU||CU||DU;_E.exports=function(){var t,r={assert:function(n){if(!r.has(n))throw new EU("Side channel does not contain "+AU(n))},delete:function(n){return!!t&&t.delete(n)},get:function(n){return t&&t.get(n)},has:function(n){return!!t&&t.has(n)},set:function(n,o){t||(t=MU()),t.set(n,o)}};return r}});var bp=U((kIe,PE)=>{"use strict";var _U=String.prototype.replace,IU=/%20/g,wg={RFC1738:"RFC1738",RFC3986:"RFC3986"};PE.exports={default:wg.RFC3986,formatters:{RFC1738:function(e){return _U.call(e,IU,"+")},RFC3986:function(e){return String(e)}},RFC1738:wg.RFC1738,RFC3986:wg.RFC3986}});var kg=U((TIe,NE)=>{"use strict";var PU=bp(),vg=Object.prototype.hasOwnProperty,ti=Array.isArray,Xr=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),FU=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(ti(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},FE=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},o=0;o<t.length;++o)typeof t[o]<"u"&&(n[o]=t[o]);return n},NU=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(ti(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!vg.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var o=t;return ti(t)&&!ti(r)&&(o=FE(t,n)),ti(t)&&ti(r)?(r.forEach(function(i,s){if(vg.call(t,s)){var a=t[s];a&&typeof a=="object"&&i&&typeof i=="object"?t[s]=e(a,i,n):t.push(i)}else t[s]=i}),t):Object.keys(r).reduce(function(i,s){var a=r[s];return vg.call(i,s)?i[s]=e(i[s],a,n):i[s]=a,i},o)},LU=function(t,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},t)},RU=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Sg=1024,BU=function(t,r,n,o,i){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(h){return"%26%23"+parseInt(h.slice(2),16)+"%3B"});for(var a="",l=0;l<s.length;l+=Sg){for(var u=s.length>=Sg?s.slice(l,l+Sg):s,c=[],f=0;f<u.length;++f){var p=u.charCodeAt(f);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===PU.RFC1738&&(p===40||p===41)){c[c.length]=u.charAt(f);continue}if(p<128){c[c.length]=Xr[p];continue}if(p<2048){c[c.length]=Xr[192|p>>6]+Xr[128|p&63];continue}if(p<55296||p>=57344){c[c.length]=Xr[224|p>>12]+Xr[128|p>>6&63]+Xr[128|p&63];continue}f+=1,p=65536+((p&1023)<<10|u.charCodeAt(f)&1023),c[c.length]=Xr[240|p>>18]+Xr[128|p>>12&63]+Xr[128|p>>6&63]+Xr[128|p&63]}a+=c.join("")}return a},$U=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],s=i.obj[i.prop],a=Object.keys(s),l=0;l<a.length;++l){var u=a[l],c=s[u];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(r.push({obj:s,prop:u}),n.push(c))}return FU(r),t},UU=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},zU=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},jU=function(t,r){return[].concat(t,r)},qU=function(t,r){if(ti(t)){for(var n=[],o=0;o<t.length;o+=1)n.push(r(t[o]));return n}return r(t)};NE.exports={arrayToObject:FE,assign:LU,combine:jU,compact:$U,decode:RU,encode:BU,isBuffer:zU,isRegExp:UU,maybeMap:qU,merge:NU}});var zE=U((EIe,UE)=>{"use strict";var LE=IE(),wp=kg(),Dl=bp(),HU=Object.prototype.hasOwnProperty,RE={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Zr=Array.isArray,WU=Array.prototype.push,BE=function(e,t){WU.apply(e,Zr(t)?t:[t])},YU=Date.prototype.toISOString,$E=Dl.default,at={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:wp.encode,encodeValuesOnly:!1,filter:void 0,format:$E,formatter:Dl.formatters[$E],indices:!1,serializeDate:function(t){return YU.call(t)},skipNulls:!1,strictNullHandling:!1},VU=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Tg={},GU=function e(t,r,n,o,i,s,a,l,u,c,f,p,h,m,d,g,y,S){for(var k=t,N=S,R=0,T=!1;(N=N.get(Tg))!==void 0&&!T;){var $=N.get(t);if(R+=1,typeof $<"u"){if($===R)throw new RangeError("Cyclic object value");T=!0}typeof N.get(Tg)>"u"&&(R=0)}if(typeof c=="function"?k=c(r,k):k instanceof Date?k=h(k):n==="comma"&&Zr(k)&&(k=wp.maybeMap(k,function(x){return x instanceof Date?h(x):x})),k===null){if(s)return u&&!g?u(r,at.encoder,y,"key",m):r;k=""}if(VU(k)||wp.isBuffer(k)){if(u){var J=g?r:u(r,at.encoder,y,"key",m);return[d(J)+"="+d(u(k,at.encoder,y,"value",m))]}return[d(r)+"="+d(String(k))]}var H=[];if(typeof k>"u")return H;var D;if(n==="comma"&&Zr(k))g&&u&&(k=wp.maybeMap(k,u)),D=[{value:k.length>0?k.join(",")||null:void 0}];else if(Zr(c))D=c;else{var xe=Object.keys(k);D=f?xe.sort(f):xe}var j=l?String(r).replace(/\./g,"%2E"):String(r),O=o&&Zr(k)&&k.length===1?j+"[]":j;if(i&&Zr(k)&&k.length===0)return O+"[]";for(var M=0;M<D.length;++M){var P=D[M],B=typeof P=="object"&&P&&typeof P.value<"u"?P.value:k[P];if(!(a&&B===null)){var Q=p&&l?String(P).replace(/\./g,"%2E"):String(P),F=Zr(k)?typeof n=="function"?n(O,Q):O:O+(p?"."+Q:"["+Q+"]");S.set(t,R);var W=LE();W.set(Tg,S),BE(H,e(B,F,n,o,i,s,a,l,n==="comma"&&g&&Zr(k)?null:u,c,f,p,h,m,d,g,y,W))}}return H},QU=function(t){if(!t)return at;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||at.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Dl.default;if(typeof t.format<"u"){if(!HU.call(Dl.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var o=Dl.formatters[n],i=at.filter;(typeof t.filter=="function"||Zr(t.filter))&&(i=t.filter);var s;if(t.arrayFormat in RE?s=t.arrayFormat:"indices"in t?s=t.indices?"indices":"repeat":s=at.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:at.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:at.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:at.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:at.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?at.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:at.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:at.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:at.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:at.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:at.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:at.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:at.strictNullHandling}};UE.exports=function(e,t){var r=e,n=QU(t),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):Zr(n.filter)&&(i=n.filter,o=i);var s=[];if(typeof r!="object"||r===null)return"";var a=RE[n.arrayFormat],l=a==="comma"&&n.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var u=LE(),c=0;c<o.length;++c){var f=o[c],p=r[f];n.skipNulls&&p===null||BE(s,GU(p,f,a,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,u))}var h=s.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),h.length>0?m+h:""}});var HE=U((AIe,qE)=>{"use strict";var $s=kg(),Eg=Object.prototype.hasOwnProperty,JU=Array.isArray,We={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:$s.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},XU=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},jE=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},ZU="utf8=%26%2310003%3B",KU="utf8=%E2%9C%93",ez=function(t,r){var n={__proto__:null},o=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=o.split(r.delimiter,i),a=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===KU?u="utf-8":s[l]===ZU&&(u="iso-8859-1"),a=l,l=s.length);for(l=0;l<s.length;++l)if(l!==a){var c=s[l],f=c.indexOf("]="),p=f===-1?c.indexOf("="):f+1,h,m;p===-1?(h=r.decoder(c,We.decoder,u,"key"),m=r.strictNullHandling?null:""):(h=r.decoder(c.slice(0,p),We.decoder,u,"key"),m=$s.maybeMap(jE(c.slice(p+1),r),function(g){return r.decoder(g,We.decoder,u,"value")})),m&&r.interpretNumericEntities&&u==="iso-8859-1"&&(m=XU(String(m))),c.indexOf("[]=")>-1&&(m=JU(m)?[m]:m);var d=Eg.call(n,h);d&&r.duplicates==="combine"?n[h]=$s.combine(n[h],m):(!d||r.duplicates==="last")&&(n[h]=m)}return n},tz=function(e,t,r,n){for(var o=n?t:jE(t,r),i=e.length-1;i>=0;--i){var s,a=e[i];if(a==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&(o===""||r.strictNullHandling&&o===null)?[]:[].concat(o);else{s=r.plainObjects?{__proto__:null}:{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,c=parseInt(u,10);!r.parseArrays&&u===""?s={0:o}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},rz=function(t,r,n,o){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(i),u=l?i.slice(0,l.index):i,c=[];if(u){if(!n.plainObjects&&Eg.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var f=0;n.depth>0&&(l=a.exec(i))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&Eg.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+i.slice(l.index)+"]")}return tz(c,r,n,o)}},nz=function(t){if(!t)return We;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?We.charset:t.charset,n=typeof t.duplicates>"u"?We.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:We.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:We.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:We.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:We.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:We.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:We.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:We.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:We.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:We.decoder,delimiter:typeof t.delimiter=="string"||$s.isRegExp(t.delimiter)?t.delimiter:We.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:We.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:We.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:We.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:We.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:We.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:We.strictNullHandling}};qE.exports=function(e,t){var r=nz(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?ez(e,r):e,o=r.plainObjects?{__proto__:null}:{},i=Object.keys(n),s=0;s<i.length;++s){var a=i[s],l=rz(a,n[a],r,typeof e=="string");o=$s.merge(o,l,r)}return r.allowSparse===!0?o:$s.compact(o)}});var YE=U((DIe,WE)=>{"use strict";var oz=zE(),iz=HE(),sz=bp();WE.exports={formats:sz,parse:iz,stringify:oz}});var JE=U(zs=>{"use strict";var az=L1();function yr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var lz=/^([a-z0-9.+-]+:)/i,uz=/:[0-9]*$/,cz=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,fz=["<",">",'"',"`"," ","\r",`
|
|
5
|
-
`," "],pz=["{","}","|","\\","^","`"].concat(fz),Ag=["'"].concat(pz),VE=["%","/","?",";","#"].concat(Ag),GE=["/","?","#"],hz=255,QE=/^[+a-z0-9A-Z_-]{0,63}$/,mz=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,dz={javascript:!0,"javascript:":!0},Dg={javascript:!0,"javascript:":!0},Us={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Cg=YE();function Cl(e,t,r){if(e&&typeof e=="object"&&e instanceof yr)return e;var n=new yr;return n.parse(e,t,r),n}yr.prototype.parse=function(e,t,r){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),o=n!==-1&&n<e.indexOf("#")?"?":"#",i=e.split(o),s=/\\/g;i[0]=i[0].replace(s,"/"),e=i.join(o);var a=e;if(a=a.trim(),!r&&e.split("#").length===1){var l=cz.exec(a);if(l)return this.path=a,this.href=a,this.pathname=l[1],l[2]?(this.search=l[2],t?this.query=Cg.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=lz.exec(a);if(u){u=u[0];var c=u.toLowerCase();this.protocol=c,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@/]+@[^@/]+/)){var f=a.substr(0,2)==="//";f&&!(u&&Dg[u])&&(a=a.substr(2),this.slashes=!0)}if(!Dg[u]&&(f||u&&!Us[u])){for(var p=-1,h=0;h<GE.length;h++){var m=a.indexOf(GE[h]);m!==-1&&(p===-1||m<p)&&(p=m)}var d,g;p===-1?g=a.lastIndexOf("@"):g=a.lastIndexOf("@",p),g!==-1&&(d=a.slice(0,g),a=a.slice(g+1),this.auth=decodeURIComponent(d)),p=-1;for(var h=0;h<VE.length;h++){var m=a.indexOf(VE[h]);m!==-1&&(p===-1||m<p)&&(p=m)}p===-1&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y)for(var S=this.hostname.split(/\./),h=0,k=S.length;h<k;h++){var N=S[h];if(N&&!N.match(QE)){for(var R="",T=0,$=N.length;T<$;T++)N.charCodeAt(T)>127?R+="x":R+=N[T];if(!R.match(QE)){var J=S.slice(0,h),H=S.slice(h+1),D=N.match(mz);D&&(J.push(D[1]),H.unshift(D[2])),H.length&&(a="/"+H.join(".")+a),this.hostname=J.join(".");break}}}this.hostname.length>hz?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=az.toASCII(this.hostname));var xe=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+xe,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!dz[c])for(var h=0,k=Ag.length;h<k;h++){var O=Ag[h];if(a.indexOf(O)!==-1){var M=encodeURIComponent(O);M===O&&(M=escape(O)),a=a.split(O).join(M)}}var P=a.indexOf("#");P!==-1&&(this.hash=a.substr(P),a=a.slice(0,P));var B=a.indexOf("?");if(B!==-1?(this.search=a.substr(B),this.query=a.substr(B+1),t&&(this.query=Cg.parse(this.query)),a=a.slice(0,B)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Us[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var xe=this.pathname||"",Q=this.search||"";this.path=xe+Q}return this.href=this.format(),this};function gz(e){return typeof e=="string"&&(e=Cl(e)),e instanceof yr?e.format():yr.prototype.format.call(e)}yr.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=Cg.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Us[t])&&o!==!1?(o="//"+(o||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):o||(o=""),n&&n.charAt(0)!=="#"&&(n="#"+n),s&&s.charAt(0)!=="?"&&(s="?"+s),r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),t+o+r+s+n};function xz(e,t){return Cl(e,!1,!0).resolve(t)}yr.prototype.resolve=function(e){return this.resolveObject(Cl(e,!1,!0)).format()};function yz(e,t){return e?Cl(e,!1,!0).resolveObject(t):t}yr.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new yr;t.parse(e,!1,!0),e=t}for(var r=new yr,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),a=0;a<s.length;a++){var l=s[a];l!=="protocol"&&(r[l]=e[l])}return Us[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!Us[e.protocol]){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u[c];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,!e.host&&!Dg[e.protocol]){for(var k=(e.pathname||"").split("/");k.length&&!(e.host=k.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),k[0]!==""&&k.unshift(""),k.length<2&&k.unshift(""),r.pathname=k.join("/")}else r.pathname=e.pathname;if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var p=r.pathname||"",h=r.search||"";r.path=p+h}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&r.pathname.charAt(0)==="/",d=e.host||e.pathname&&e.pathname.charAt(0)==="/",g=d||m||r.host&&e.pathname,y=g,S=r.pathname&&r.pathname.split("/")||[],k=e.pathname&&e.pathname.split("/")||[],N=r.protocol&&!Us[r.protocol];if(N&&(r.hostname="",r.port=null,r.host&&(S[0]===""?S[0]=r.host:S.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(k[0]===""?k[0]=e.host:k.unshift(e.host)),e.host=null),g=g&&(k[0]===""||S[0]==="")),d)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,S=k;else if(k.length)S||(S=[]),S.pop(),S=S.concat(k),r.search=e.search,r.query=e.query;else if(e.search!=null){if(N){r.host=S.shift(),r.hostname=r.host;var R=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;R&&(r.auth=R.shift(),r.hostname=R.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var T=S.slice(-1)[0],$=(r.host||e.host||S.length>1)&&(T==="."||T==="..")||T==="",J=0,H=S.length;H>=0;H--)T=S[H],T==="."?S.splice(H,1):T===".."?(S.splice(H,1),J++):J&&(S.splice(H,1),J--);if(!g&&!y)for(;J--;J)S.unshift("..");g&&S[0]!==""&&(!S[0]||S[0].charAt(0)!=="/")&&S.unshift(""),$&&S.join("/").substr(-1)!=="/"&&S.push("");var D=S[0]===""||S[0]&&S[0].charAt(0)==="/";if(N){r.hostname=D?"":S.length?S.shift():"",r.host=r.hostname;var R=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;R&&(r.auth=R.shift(),r.hostname=R.shift(),r.host=r.hostname)}return g=g||r.host&&S.length,g&&!D&&S.unshift(""),S.length>0?r.pathname=S.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},yr.prototype.parseHost=function(){var e=this.host,t=uz.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},zs.parse=Cl,zs.resolve=xz,zs.resolveObject=yz,zs.format=gz,zs.Url=yr});var cA=U((MIe,uA)=>{"use strict";uA.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var hA=U((IIe,pA)=>{"use strict";pA.exports=function(t){var r=typeof t;if(r==="string"||t instanceof String){if(!t.trim())return!1}else if(r!=="number"&&!(t instanceof Number))return!1;return t-t+1>=0}});var gA=U((PIe,dA)=>{var Az=Object.prototype.toString;dA.exports=function(t){if(t===void 0)return"undefined";if(t===null)return"null";var r=typeof t;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return _z(t)?"generatorfunction":"function";if(Dz(t))return"array";if(Fz(t))return"buffer";if(Pz(t))return"arguments";if(Oz(t))return"date";if(Cz(t))return"error";if(Mz(t))return"regexp";switch(mA(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(Iz(t))return"generator";switch(r=Az.call(t),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function mA(e){return typeof e.constructor=="function"?e.constructor.name:null}function Dz(e){return Array.isArray?Array.isArray(e):e instanceof Array}function Cz(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Oz(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Mz(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function _z(e,t){return mA(e)==="GeneratorFunction"}function Iz(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function Pz(e){try{if(typeof e.length=="number"&&typeof e.callee=="function")return!0}catch(t){if(t.message.indexOf("callee")!==-1)return!0}return!1}function Fz(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}});var yA=U((FIe,xA)=>{xA.exports=(function(e){var t="Uint32Array"in e,r=e.crypto||e.msCrypto,n=r&&typeof r.getRandomValues=="function",o=t&&n;if(!o)return Math.random;var i=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(i),i[0]/s}return a.cryptographic=!0,a})(typeof self<"u"?self:window)});var vA=U((NIe,Bg)=>{"use strict";var Nz=hA(),bA=gA(),wA=yA();Bg.exports=Lz,Bg.exports.isCrypto=!!wA.cryptographic;var Kr={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};Kr.all=Kr.lower+Kr.upper+Kr.number+Kr.special;function Lz(e,t,r){if(typeof e>"u")throw new Error("randomatic expects a string or number.");var n=!1;arguments.length===1&&(typeof e=="string"?t=e.length:Nz(e)&&(r={},t=e,e="*")),bA(t)==="object"&&t.hasOwnProperty("chars")&&(r=t,e=r.chars,t=e.length,n=!0);var o=r||{},i="",s="";if(e.indexOf("?")!==-1&&(i+=o.chars),e.indexOf("a")!==-1&&(i+=Kr.lower),e.indexOf("A")!==-1&&(i+=Kr.upper),e.indexOf("0")!==-1&&(i+=Kr.number),e.indexOf("!")!==-1&&(i+=Kr.special),e.indexOf("*")!==-1&&(i+=Kr.all),n&&(i+=e),o.exclude){var a=bA(o.exclude)==="string"?o.exclude:o.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),i=i.replace(new RegExp("["+a+"]+","g"),""),o.exclude.indexOf("]")!==-1&&(i=i.replace(new RegExp("[\\]]+","g"),""))}for(;t--;)s+=i.charAt(parseInt(wA()*i.length,10));return s}});var nx=U((Nl,Gs)=>{var Gz=200,TA="__lodash_hash_undefined__",EA=9007199254740991,qg="[object Arguments]",Qz="[object Array]",AA="[object Boolean]",DA="[object Date]",Jz="[object Error]",Hg="[object Function]",CA="[object GeneratorFunction]",Np="[object Map]",OA="[object Number]",Wg="[object Object]",MA="[object Promise]",_A="[object RegExp]",Lp="[object Set]",IA="[object String]",PA="[object Symbol]",Yg="[object WeakMap]",FA="[object ArrayBuffer]",Rp="[object DataView]",NA="[object Float32Array]",LA="[object Float64Array]",RA="[object Int8Array]",BA="[object Int16Array]",$A="[object Int32Array]",UA="[object Uint8Array]",zA="[object Uint8ClampedArray]",jA="[object Uint16Array]",qA="[object Uint32Array]",Xz=/[\\^$.*+?()[\]{}|]/g,Zz=/\w*$/,Kz=/^\[object .+?Constructor\]$/,e3=/^(?:0|[1-9]\d*)$/,Le={};Le[qg]=Le[Qz]=Le[FA]=Le[Rp]=Le[AA]=Le[DA]=Le[NA]=Le[LA]=Le[RA]=Le[BA]=Le[$A]=Le[Np]=Le[OA]=Le[Wg]=Le[_A]=Le[Lp]=Le[IA]=Le[PA]=Le[UA]=Le[zA]=Le[jA]=Le[qA]=!0,Le[Jz]=Le[Hg]=Le[Yg]=!1;var t3=typeof global=="object"&&global&&global.Object===Object&&global,r3=typeof self=="object"&&self&&self.Object===Object&&self,kn=t3||r3||Function("return this")(),HA=typeof Nl=="object"&&Nl&&!Nl.nodeType&&Nl,WA=HA&&typeof Gs=="object"&&Gs&&!Gs.nodeType&&Gs,n3=WA&&WA.exports===HA;function o3(e,t){return e.set(t[0],t[1]),e}function i3(e,t){return e.add(t),e}function s3(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function a3(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function YA(e,t,r,n){var o=-1,i=e?e.length:0;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function l3(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function u3(e,t){return e?.[t]}function VA(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function GA(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Vg(e,t){return function(r){return e(t(r))}}function QA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var c3=Array.prototype,f3=Function.prototype,Bp=Object.prototype,Gg=kn["__core-js_shared__"],JA=(function(){var e=/[^.]+$/.exec(Gg&&Gg.keys&&Gg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),XA=f3.toString,lo=Bp.hasOwnProperty,$p=Bp.toString,p3=RegExp("^"+XA.call(lo).replace(Xz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ZA=n3?kn.Buffer:void 0,KA=kn.Symbol,eD=kn.Uint8Array,h3=Vg(Object.getPrototypeOf,Object),m3=Object.create,d3=Bp.propertyIsEnumerable,g3=c3.splice,tD=Object.getOwnPropertySymbols,x3=ZA?ZA.isBuffer:void 0,y3=Vg(Object.keys,Object),Qg=Vs(kn,"DataView"),Pl=Vs(kn,"Map"),Jg=Vs(kn,"Promise"),Xg=Vs(kn,"Set"),Zg=Vs(kn,"WeakMap"),Fl=Vs(Object,"create"),b3=ii(Qg),w3=ii(Pl),v3=ii(Jg),S3=ii(Xg),k3=ii(Zg),rD=KA?KA.prototype:void 0,nD=rD?rD.valueOf:void 0;function ni(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function T3(){this.__data__=Fl?Fl(null):{}}function E3(e){return this.has(e)&&delete this.__data__[e]}function A3(e){var t=this.__data__;if(Fl){var r=t[e];return r===TA?void 0:r}return lo.call(t,e)?t[e]:void 0}function D3(e){var t=this.__data__;return Fl?t[e]!==void 0:lo.call(t,e)}function C3(e,t){var r=this.__data__;return r[e]=Fl&&t===void 0?TA:t,this}ni.prototype.clear=T3,ni.prototype.delete=E3,ni.prototype.get=A3,ni.prototype.has=D3,ni.prototype.set=C3;function Tn(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function O3(){this.__data__=[]}function M3(e){var t=this.__data__,r=Up(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():g3.call(t,r,1),!0}function _3(e){var t=this.__data__,r=Up(t,e);return r<0?void 0:t[r][1]}function I3(e){return Up(this.__data__,e)>-1}function P3(e,t){var r=this.__data__,n=Up(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Tn.prototype.clear=O3,Tn.prototype.delete=M3,Tn.prototype.get=_3,Tn.prototype.has=I3,Tn.prototype.set=P3;function Ws(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function F3(){this.__data__={hash:new ni,map:new(Pl||Tn),string:new ni}}function N3(e){return zp(this,e).delete(e)}function L3(e){return zp(this,e).get(e)}function R3(e){return zp(this,e).has(e)}function B3(e,t){return zp(this,e).set(e,t),this}Ws.prototype.clear=F3,Ws.prototype.delete=N3,Ws.prototype.get=L3,Ws.prototype.has=R3,Ws.prototype.set=B3;function Ys(e){this.__data__=new Tn(e)}function $3(){this.__data__=new Tn}function U3(e){return this.__data__.delete(e)}function z3(e){return this.__data__.get(e)}function j3(e){return this.__data__.has(e)}function q3(e,t){var r=this.__data__;if(r instanceof Tn){var n=r.__data__;if(!Pl||n.length<Gz-1)return n.push([e,t]),this;r=this.__data__=new Ws(n)}return r.set(e,t),this}Ys.prototype.clear=$3,Ys.prototype.delete=U3,Ys.prototype.get=z3,Ys.prototype.has=j3,Ys.prototype.set=q3;function H3(e,t){var r=tx(e)||mj(e)?l3(e.length,String):[],n=r.length,o=!!n;for(var i in e)(t||lo.call(e,i))&&!(o&&(i=="length"||cj(i,n)))&&r.push(i);return r}function oD(e,t,r){var n=e[t];(!(lo.call(e,t)&&lD(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Up(e,t){for(var r=e.length;r--;)if(lD(e[r][0],t))return r;return-1}function W3(e,t){return e&&iD(t,rx(t),e)}function Kg(e,t,r,n,o,i,s){var a;if(n&&(a=i?n(e,o,i,s):n(e)),a!==void 0)return a;if(!jp(e))return e;var l=tx(e);if(l){if(a=aj(e),!t)return oj(e,a)}else{var u=oi(e),c=u==Hg||u==CA;if(gj(e))return X3(e,t);if(u==Wg||u==qg||c&&!i){if(VA(e))return i?e:{};if(a=lj(c?{}:e),!t)return ij(e,W3(a,e))}else{if(!Le[u])return i?e:{};a=uj(e,u,Kg,t)}}s||(s=new Ys);var f=s.get(e);if(f)return f;if(s.set(e,a),!l)var p=r?sj(e):rx(e);return s3(p||e,function(h,m){p&&(m=h,h=e[m]),oD(a,m,Kg(h,t,r,n,m,e,s))}),a}function Y3(e){return jp(e)?m3(e):{}}function V3(e,t,r){var n=t(e);return tx(e)?n:a3(n,r(e))}function G3(e){return $p.call(e)}function Q3(e){if(!jp(e)||pj(e))return!1;var t=cD(e)||VA(e)?p3:Kz;return t.test(ii(e))}function J3(e){if(!aD(e))return y3(e);var t=[];for(var r in Object(e))lo.call(e,r)&&r!="constructor"&&t.push(r);return t}function X3(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function ex(e){var t=new e.constructor(e.byteLength);return new eD(t).set(new eD(e)),t}function Z3(e,t){var r=t?ex(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function K3(e,t,r){var n=t?r(GA(e),!0):GA(e);return YA(n,o3,new e.constructor)}function ej(e){var t=new e.constructor(e.source,Zz.exec(e));return t.lastIndex=e.lastIndex,t}function tj(e,t,r){var n=t?r(QA(e),!0):QA(e);return YA(n,i3,new e.constructor)}function rj(e){return nD?Object(nD.call(e)):{}}function nj(e,t){var r=t?ex(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function oj(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function iD(e,t,r,n){r||(r={});for(var o=-1,i=t.length;++o<i;){var s=t[o],a=n?n(r[s],e[s],s,r,e):void 0;oD(r,s,a===void 0?e[s]:a)}return r}function ij(e,t){return iD(e,sD(e),t)}function sj(e){return V3(e,rx,sD)}function zp(e,t){var r=e.__data__;return fj(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Vs(e,t){var r=u3(e,t);return Q3(r)?r:void 0}var sD=tD?Vg(tD,Object):bj,oi=G3;(Qg&&oi(new Qg(new ArrayBuffer(1)))!=Rp||Pl&&oi(new Pl)!=Np||Jg&&oi(Jg.resolve())!=MA||Xg&&oi(new Xg)!=Lp||Zg&&oi(new Zg)!=Yg)&&(oi=function(e){var t=$p.call(e),r=t==Wg?e.constructor:void 0,n=r?ii(r):void 0;if(n)switch(n){case b3:return Rp;case w3:return Np;case v3:return MA;case S3:return Lp;case k3:return Yg}return t});function aj(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&lo.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function lj(e){return typeof e.constructor=="function"&&!aD(e)?Y3(h3(e)):{}}function uj(e,t,r,n){var o=e.constructor;switch(t){case FA:return ex(e);case AA:case DA:return new o(+e);case Rp:return Z3(e,n);case NA:case LA:case RA:case BA:case $A:case UA:case zA:case jA:case qA:return nj(e,n);case Np:return K3(e,n,r);case OA:case IA:return new o(e);case _A:return ej(e);case Lp:return tj(e,n,r);case PA:return rj(e)}}function cj(e,t){return t=t??EA,!!t&&(typeof e=="number"||e3.test(e))&&e>-1&&e%1==0&&e<t}function fj(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pj(e){return!!JA&&JA in e}function aD(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Bp;return e===r}function ii(e){if(e!=null){try{return XA.call(e)}catch{}try{return e+""}catch{}}return""}function hj(e){return Kg(e,!0,!0)}function lD(e,t){return e===t||e!==e&&t!==t}function mj(e){return dj(e)&&lo.call(e,"callee")&&(!d3.call(e,"callee")||$p.call(e)==qg)}var tx=Array.isArray;function uD(e){return e!=null&&xj(e.length)&&!cD(e)}function dj(e){return yj(e)&&uD(e)}var gj=x3||wj;function cD(e){var t=jp(e)?$p.call(e):"";return t==Hg||t==CA}function xj(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=EA}function jp(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function yj(e){return!!e&&typeof e=="object"}function rx(e){return uD(e)?H3(e):J3(e)}function bj(){return[]}function wj(){return!1}Gs.exports=hj});var ox=U((JIe,fD)=>{"use strict";fD.exports=function(e,t){t||(t={}),typeof t=="function"&&(t={cmp:t});var r=typeof t.cycles=="boolean"?t.cycles:!1,n=t.cmp&&(function(i){return function(s){return function(a,l){var u={key:a,value:s[a]},c={key:l,value:s[l]};return i(u,c)}}})(t.cmp),o=[];return(function i(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var a,l;if(Array.isArray(s)){for(l="[",a=0;a<s.length;a++)a&&(l+=","),l+=i(s[a])||"null";return l+"]"}if(s===null)return"null";if(o.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=o.push(s)-1,c=Object.keys(s).sort(n&&n(s));for(l="",a=0;a<c.length;a++){var f=c[a],p=i(s[f]);p&&(l&&(l+=","),l+=JSON.stringify(f)+":"+p)}return o.splice(u,1),"{"+l+"}"}})(e)}});var fi=U((FFe,ci)=>{"use strict";function nC(e){return typeof e>"u"||e===null}function gq(e){return typeof e=="object"&&e!==null}function xq(e){return Array.isArray(e)?e:nC(e)?[]:[e]}function yq(e,t){var r,n,o,i;if(t)for(i=Object.keys(t),r=0,n=i.length;r<n;r+=1)o=i[r],e[o]=t[o];return e}function bq(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function wq(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}ci.exports.isNothing=nC,ci.exports.isObject=gq,ci.exports.toArray=xq,ci.exports.repeat=bq,ci.exports.isNegativeZero=wq,ci.exports.extend=yq});var Ks=U((NFe,oC)=>{"use strict";function Wl(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Wl.prototype=Object.create(Error.prototype),Wl.prototype.constructor=Wl,Wl.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},oC.exports=Wl});var aC=U((LFe,sC)=>{"use strict";var iC=fi();function Rx(e,t,r,n,o){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=o}Rx.prototype.getSnippet=function(t,r){var n,o,i,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",o=this.position;o>0&&`\0\r
|
|
6
|
-
\
|
|
7
|
-
\x85\u2028\u2029
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
`,
|
|
13
|
-
`,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
`,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
`:"")+$O(l,t),o=i}return n}function $O(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,o=0,i,s=0,a=0,l="";n=r.exec(e);)a=n.index,a-o>t&&(i=s>o?s:a,l+=`
|
|
31
|
-
|
|
32
|
-
`,e.length-o>t&&s>o?l+=e.slice(o,s)+`
|
|
33
|
-
`+e.slice(s+1):l+=e.slice(o),l.slice(1)}function B4(e){for(var t="",r,n,o,i=0;i<e.length;i++){if(r=e.charCodeAt(i),r>=55296&&r<=56319&&(n=e.charCodeAt(i+1),n>=56320&&n<=57343)){t+=OO((r-55296)*1024+n-56320+65536),i++;continue}o=_t[r],t+=!o&&ia(r)?e[i]:o||OO(r)}return t}function $4(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i<s;i+=1)gi(e,t,r[i],!1,!1)&&(i!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function U4(e,t,r,n){var o="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)gi(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(o+=Wx(e,t)),e.dump&&Jl===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=i,e.dump=o||"[]"}function z4(e,t,r){var n="",o=e.tag,i=Object.keys(r),s,a,l,u,c;for(s=0,a=i.length;s<a;s+=1)c="",s!==0&&(c+=", "),e.condenseFlow&&(c+='"'),l=i[s],u=r[l],gi(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),gi(e,t,u,!1,!1)&&(c+=e.dump,n+=c));e.tag=o,e.dump="{"+n+"}"}function j4(e,t,r,n){var o="",i=e.tag,s=Object.keys(r),a,l,u,c,f,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Ql("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)p="",(!n||a!==0)&&(p+=Wx(e,t)),u=s[a],c=r[u],gi(e,t+1,u,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Jl===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=Wx(e,t)),gi(e,t+1,c,!0,f)&&(e.dump&&Jl===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,o+=p));e.tag=i,e.dump=o||"{}"}function UO(e,t,r){var n,o,i,s,a,l;for(o=r?e.explicitTypes:e.implicitTypes,i=0,s=o.length;i<s;i+=1)if(a=o[i],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=r?a.tag:"?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,wO.call(a.represent)==="[object Function]")n=a.represent(t,l);else if(vO.call(a.represent,l))n=a.represent[l](t,l);else throw new Ql("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function gi(e,t,r,n,o,i){e.tag=null,e.dump=r,UO(e,r,!1)||UO(e,r,!0);var s=wO.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var a=s==="[object Object]"||s==="[object Array]",l,u;if(a&&(l=e.duplicates.indexOf(r),u=l!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&t>0)&&(o=!1),u&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(a&&u&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(j4(e,t,e.dump,o),u&&(e.dump="&ref_"+l+e.dump)):(z4(e,t,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump));else if(s==="[object Array]"){var c=e.noArrayIndent&&t>0?t-1:t;n&&e.dump.length!==0?(U4(e,c,e.dump,o),u&&(e.dump="&ref_"+l+e.dump)):($4(e,c,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump))}else if(s==="[object String]")e.tag!=="?"&&L4(e,e.dump,t,i);else{if(e.skipInvalid)return!1;throw new Ql("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function q4(e,t){var r=[],n=[],o,i;for(Vx(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function Vx(e,t,r){var n,o,i;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(t.push(e),Array.isArray(e))for(o=0,i=e.length;o<i;o+=1)Vx(e[o],t,r);else for(n=Object.keys(e),o=0,i=n.length;o<i;o+=1)Vx(e[n[o]],t,r)}function zO(e,t){t=t||{};var r=new _4(t);return r.noRefs||q4(e,r),gi(r,0,e,!0,!0)?r.dump+`
|
|
34
|
-
`:""}function H4(e,t){return zO(e,Gl.extend({schema:p4},t))}Gx.exports.dump=zO,Gx.exports.safeDump=H4});var HO=U((cNe,Ye)=>{"use strict";var dh=bO(),qO=jO();function gh(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}Ye.exports.Type=ut(),Ye.exports.Schema=pi(),Ye.exports.FAILSAFE_SCHEMA=lh(),Ye.exports.JSON_SCHEMA=$x(),Ye.exports.CORE_SCHEMA=Ux(),Ye.exports.DEFAULT_SAFE_SCHEMA=ta(),Ye.exports.DEFAULT_FULL_SCHEMA=Yl(),Ye.exports.load=dh.load,Ye.exports.loadAll=dh.loadAll,Ye.exports.safeLoad=dh.safeLoad,Ye.exports.safeLoadAll=dh.safeLoadAll,Ye.exports.dump=qO.dump,Ye.exports.safeDump=qO.safeDump,Ye.exports.YAMLException=Ks(),Ye.exports.MINIMAL_SCHEMA=lh(),Ye.exports.SAFE_SCHEMA=ta(),Ye.exports.DEFAULT_SCHEMA=Yl(),Ye.exports.scan=gh("scan"),Ye.exports.parse=gh("parse"),Ye.exports.compose=gh("compose"),Ye.exports.addConstructor=gh("addConstructor")});var YO=U((fNe,WO)=>{"use strict";var W4=HO();WO.exports=W4});var VO=U(on=>{"use strict";var Y4=on&&on.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),V4=on&&on.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),G4=on&&on.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&Y4(t,e,r);return V4(t,e),t};Object.defineProperty(on,"__esModule",{value:!0}),on.jsYaml=void 0;var Q4=G4(YO());on.jsYaml=Q4});var QO=U(br=>{"use strict";var J4=br&&br.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),X4=br&&br.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),Z4=br&&br.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&J4(t,e,r);return X4(t,e),t};Object.defineProperty(br,"__esModule",{value:!0}),br.objectToYamlString=br.yamlStringToObject=void 0;var GO=Z4(VO());br.yamlStringToObject=async(e,t={})=>GO.jsYaml.safeLoad(e),br.objectToYamlString=async(e,t={})=>GO.jsYaml.safeDump(e)});var oM=U((dNe,nM)=>{"use strict";var xh=Object.prototype.hasOwnProperty,JO=Object.prototype.toString,XO=Object.defineProperty,ZO=Object.getOwnPropertyDescriptor,KO=function(t){return typeof Array.isArray=="function"?Array.isArray(t):JO.call(t)==="[object Array]"},eM=function(t){if(!t||JO.call(t)!=="[object Object]")return!1;var r=xh.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&xh.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var o;for(o in t);return typeof o>"u"||xh.call(t,o)},tM=function(t,r){XO&&r.name==="__proto__"?XO(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},rM=function(t,r){if(r==="__proto__")if(xh.call(t,r)){if(ZO)return ZO(t,r).value}else return;return t[r]};nM.exports=function e(){var t,r,n,o,i,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(t=arguments[l],t!=null)for(r in t)n=rM(a,r),o=rM(t,r),a!==o&&(c&&o&&(eM(o)||(i=KO(o)))?(i?(i=!1,s=n&&KO(n)?n:[]):s=n&&eM(n)?n:{},tM(a,{name:r,newValue:e(c,s,o)})):typeof o<"u"&&tM(a,{name:r,newValue:o}));return a}});var U_=U((ije,fb)=>{(function(){var e;typeof fb<"u"?e=fb.exports=n:e=(function(){return this||(0,eval)("this")})(),e.format=n,e.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(n.apply(null,arguments))}function r(o,i){return n.apply(null,[o].concat(i))}function n(o){for(var i=1,s=[].slice.call(arguments),a=0,l=o.length,u="",c,f=!1,p,h,m=!1,d,g=function(){return s[i++]},y=function(){for(var S="";/\d/.test(o[a]);)S+=o[a++],c=o[a];return S.length>0?parseInt(S):null};a<l;++a)if(c=o[a],f)switch(f=!1,c=="."?(m=!1,c=o[++a]):c=="0"&&o[a+1]=="."?(m=!0,a+=2,c=o[a]):m=!0,d=y(),c){case"b":u+=parseInt(g(),10).toString(2);break;case"c":p=g(),typeof p=="string"||p instanceof String?u+=p:u+=String.fromCharCode(parseInt(p,10));break;case"d":u+=parseInt(g(),10);break;case"f":h=String(parseFloat(g()).toFixed(d||6)),u+=m?h:h.replace(/^0/,"");break;case"j":u+=JSON.stringify(g());break;case"o":u+="0"+parseInt(g(),10).toString(8);break;case"s":u+=g();break;case"x":u+="0x"+parseInt(g(),10).toString(16);break;case"X":u+="0x"+parseInt(g(),10).toString(16).toUpperCase();break;default:u+=c;break}else c==="%"?f=!0:u+=c;return u}})()});var wP=U(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.TokenData=void 0,Pn.parse=c0,Pn.compile=DV,Pn.match=OV,Pn.pathToRegexp=bP,Pn.stringify=IV;var s0="/",a0=e=>e,xP=/^[$_\p{ID_Start}]$/u,l0=/^[$\u200c\u200d\p{ID_Continue}]$/u,mm="https://git.new/pathToRegexpError",TV={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function EV(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function cn(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*AV(e){let t=[...e],r=0;function n(){let o="";if(xP.test(t[++r]))for(o+=t[r];l0.test(t[++r]);)o+=t[r];else if(t[r]==='"'){let i=r;for(;r<t.length;){if(t[++r]==='"'){r++,i=0;break}t[r]==="\\"?o+=t[++r]:o+=t[r]}if(i)throw new TypeError(`Unterminated quote at ${i}: ${mm}`)}if(!o)throw new TypeError(`Missing parameter name at ${r}: ${mm}`);return o}for(;r<t.length;){let o=t[r],i=TV[o];if(i)yield{type:i,index:r++,value:o};else if(o==="\\")yield{type:"ESCAPED",index:r++,value:t[r++]};else if(o===":"){let s=n();yield{type:"PARAM",index:r,value:s}}else if(o==="*"){let s=n();yield{type:"WILDCARD",index:r,value:s}}else yield{type:"CHAR",index:r,value:t[r++]}}return{type:"END",index:r,value:""}}var u0=class{constructor(t){this.tokens=t}peek(){if(!this._peek){let t=this.tokens.next();this._peek=t.value}return this._peek}tryConsume(t){let r=this.peek();if(r.type===t)return this._peek=void 0,r.value}consume(t){let r=this.tryConsume(t);if(r!==void 0)return r;let{type:n,index:o}=this.peek();throw new TypeError(`Unexpected ${n} at ${o}, expected ${t}: ${mm}`)}text(){let t="",r;for(;r=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=r;return t}},Ta=class{constructor(t){this.tokens=t}};Pn.TokenData=Ta;function c0(e,t={}){let{encodePath:r=a0}=t,n=new u0(AV(e));function o(s){let a=[];for(;;){let l=n.text();l&&a.push({type:"text",value:r(l)});let u=n.tryConsume("PARAM");if(u){a.push({type:"param",name:u});continue}let c=n.tryConsume("WILDCARD");if(c){a.push({type:"wildcard",name:c});continue}if(n.tryConsume("{")){a.push({type:"group",tokens:o("}")});continue}return n.consume(s),a}}let i=o("END");return new Ta(i)}function DV(e,t={}){let{encode:r=encodeURIComponent,delimiter:n=s0}=t,o=e instanceof Ta?e:c0(e,t),i=yP(o.tokens,n,r);return function(a={}){let[l,...u]=i(a);if(u.length)throw new TypeError(`Missing parameters: ${u.join(", ")}`);return l}}function yP(e,t,r){let n=e.map(o=>CV(o,t,r));return o=>{let i=[""];for(let s of n){let[a,...l]=s(o);i[0]+=a,i.push(...l)}return i}}function CV(e,t,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){let o=yP(e.tokens,t,r);return i=>{let[s,...a]=o(i);return a.length?[""]:[s]}}let n=r||a0;return e.type==="wildcard"&&r!==!1?o=>{let i=o[e.name];if(i==null)return["",e.name];if(!Array.isArray(i)||i.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[i.map((s,a)=>{if(typeof s!="string")throw new TypeError(`Expected "${e.name}/${a}" to be a string`);return n(s)}).join(t)]}:o=>{let i=o[e.name];if(i==null)return["",e.name];if(typeof i!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[n(i)]}}function OV(e,t={}){let{decode:r=decodeURIComponent,delimiter:n=s0}=t,{regexp:o,keys:i}=bP(e,t),s=i.map(a=>r===!1?a0:a.type==="param"?r:l=>l.split(n).map(r));return function(l){let u=o.exec(l);if(!u)return!1;let c=u[0],f=Object.create(null);for(let p=1;p<u.length;p++){if(u[p]===void 0)continue;let h=i[p-1],m=s[p-1];f[h.name]=m(u[p])}return{path:c,params:f}}}function bP(e,t={}){let{delimiter:r=s0,end:n=!0,sensitive:o=!1,trailing:i=!0}=t,s=[],a=[],l=o?"":"i",c=(Array.isArray(e)?e:[e]).map(h=>h instanceof Ta?h:c0(h,t));for(let{tokens:h}of c)for(let m of dm(h,0,[])){let d=MV(m,r,s);a.push(d)}let f=`^(?:${a.join("|")})`;return i&&(f+=`(?:${cn(r)}$)?`),f+=n?"$":`(?=${cn(r)}|$)`,{regexp:new RegExp(f,l),keys:s}}function*dm(e,t,r){if(t===e.length)return yield r;let n=e[t];if(n.type==="group"){let o=r.slice();for(let i of dm(n.tokens,0,o))yield*dm(e,t+1,i)}else r.push(n);yield*dm(e,t+1,r)}function MV(e,t,r){let n="",o="",i=!0;for(let s=0;s<e.length;s++){let a=e[s];if(a.type==="text"){n+=cn(a.value),o+=a.value,i||(i=a.value.includes(t));continue}if(a.type==="param"||a.type==="wildcard"){if(!i&&!o)throw new TypeError(`Missing text after "${a.name}": ${mm}`);a.type==="param"?n+=`(${_V(t,i?"":o)}+)`:n+="([\\s\\S]+)",r.push(a),o="",i=!1;continue}}return n}function _V(e,t){return t.length<2?e.length<2?`[^${cn(e+t)}]`:`(?:(?!${cn(e)})[^${cn(t)}])`:e.length<2?`(?:(?!${cn(t)})[^${cn(e)}])`:`(?:(?!${cn(t)}|${cn(e)})[\\s\\S])`}function IV(e){return e.tokens.map(function t(r,n,o){if(r.type==="text")return EV(r.value);if(r.type==="group")return`{${r.tokens.map(t).join("")}}`;let s=PV(r.name)&&FV(o[n+1])?r.name:JSON.stringify(r.name);if(r.type==="param")return`:${s}`;if(r.type==="wildcard")return`*${s}`;throw new TypeError(`Unexpected token: ${r}`)}).join("")}function PV(e){let[t,...r]=e;return xP.test(t)?r.every(n=>l0.test(n)):!1}function FV(e){return e?.type!=="text"?!0:!l0.test(e.value[0])}});var P0=U((_0,I0)=>{(function(e,t){typeof _0=="object"&&typeof I0<"u"?I0.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(_0,function(){"use strict";var e=function(){return e=Object.assign||function(v){for(var E,C=1,I=arguments.length;C<I;C++){E=arguments[C];for(var Z in E)Object.prototype.hasOwnProperty.call(E,Z)&&(v[Z]=E[Z])}return v},e.apply(this,arguments)},t=!!(typeof window<"u"&&window.document&&window.document.createElement),r=t?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=(function(){var A=!1;if(!t)return A;try{var v=window,E=Object.defineProperty({},"passive",{get:function(){A=!0}});v.addEventListener("test",null,E),v.removeEventListener("test",null,E)}catch{}return A})(),o=function(A){return typeof A=="string"},i=function(A){return typeof A=="function"},s=function(A){return Array.isArray(A)},a=function(A){return!s(A)&&A-parseFloat(A)+1>=0},l=function(A,v){return A&&A.hasOwnProperty(v)},u=t?window.requestAnimationFrame.bind(window):null,c=t?window.cancelAnimationFrame.bind(window):null,f=Math.cos,p=Math.sin,h=Math.pow,m=Math.sqrt,d=Math.PI,g={linear:function(A){return A},easeInQuad:function(A,v,E,C,I){return C*(v/=I)*v+E},easeOutQuad:function(A,v,E,C,I){return-C*(v/=I)*(v-2)+E},easeInOutQuad:function(A,v,E,C,I){return(v/=I/2)<1?C/2*v*v+E:-C/2*(--v*(v-2)-1)+E},easeInCubic:function(A,v,E,C,I){return C*(v/=I)*v*v+E},easeOutCubic:function(A,v,E,C,I){return C*((v=v/I-1)*v*v+1)+E},easeInOutCubic:function(A,v,E,C,I){return(v/=I/2)<1?C/2*v*v*v+E:C/2*((v-=2)*v*v+2)+E},easeInQuart:function(A,v,E,C,I){return C*(v/=I)*v*v*v+E},easeOutQuart:function(A,v,E,C,I){return-C*((v=v/I-1)*v*v*v-1)+E},easeInOutQuart:function(A,v,E,C,I){return(v/=I/2)<1?C/2*v*v*v*v+E:-C/2*((v-=2)*v*v*v-2)+E},easeInQuint:function(A,v,E,C,I){return C*(v/=I)*v*v*v*v+E},easeOutQuint:function(A,v,E,C,I){return C*((v=v/I-1)*v*v*v*v+1)+E},easeInOutQuint:function(A,v,E,C,I){return(v/=I/2)<1?C/2*v*v*v*v*v+E:C/2*((v-=2)*v*v*v*v+2)+E},easeInSine:function(A,v,E,C,I){return-C*f(v/I*(d/2))+C+E},easeOutSine:function(A,v,E,C,I){return C*p(v/I*(d/2))+E},easeInOutSine:function(A,v,E,C,I){return-C/2*(f(d*v/I)-1)+E},easeInExpo:function(A,v,E,C,I){return v===0?E:C*h(2,10*(v/I-1))+E},easeOutExpo:function(A,v,E,C,I){return v===I?E+C:C*(-h(2,-10*v/I)+1)+E},easeInOutExpo:function(A,v,E,C,I){return v===0?E:v===I?E+C:(v/=I/2)<1?C/2*h(2,10*(v-1))+E:C/2*(-h(2,-10*--v)+2)+E},easeInCirc:function(A,v,E,C,I){return-C*(m(1-(v/=I)*v)-1)+E},easeOutCirc:function(A,v,E,C,I){return C*m(1-(v=v/I-1)*v)+E},easeInOutCirc:function(A,v,E,C,I){return(v/=I/2)<1?-C/2*(m(1-v*v)-1)+E:C/2*(m(1-(v-=2)*v)+1)+E}},y=function(A){return Array.prototype.slice.call(A?document.querySelectorAll(A):[])},S=function(A){return y(A).shift()||null},k=function(A){return A instanceof Element},N=function(A){return A===window},R=function(A){return A===document.documentElement||A===document.body},T=function(A,v){if(k(v))return A===v;for(var E=y(v),C=E.length;--C>=0&&E[C]!==A;);return C>-1},$=function(A){return Math.max(A.scrollHeight,A.clientHeight,A.offsetHeight)},J=function(A){return Math.max(A.scrollWidth,A.clientWidth,A.offsetWidth)},H=function(A){return{width:J(A),height:$(A)}},D=function(A){var v=N(A)||R(A);return{viewport:{width:v?Math.min(window.innerWidth,document.documentElement.clientWidth):A.clientWidth,height:v?window.innerHeight:A.clientHeight},size:v?{width:Math.max(J(document.body),J(document.documentElement)),height:Math.max($(document.body),$(document.documentElement))}:H(A)}},xe={y:"scrollTop",x:"scrollLeft"},j={y:"pageYOffset",x:"pageXOffset"},O=function(A,v){return N(A)?A[j[v]]:A[xe[v]]},M=function(A,v,E){if(N(A)){var C=E==="y";A.scrollTo(C?A.pageXOffset:v,C?v:A.pageYOffset)}else A[xe[E]]=v},P=function(A,v){var E=A.getBoundingClientRect();if(E.width||E.height){var C={top:0,left:0},I=void 0;if(N(v)||R(v))I=document.documentElement,C.top=window[j.y],C.left=window[j.x];else{I=v;var Z=I.getBoundingClientRect();C.top=Z.top*-1+I[xe.y],C.left=Z.left*-1+I[xe.x]}return{top:E.top+C.top-I.clientTop,left:E.left+C.left-I.clientLeft}}return E},B=(function(){return t?"onwheel"in document?"wheel":"mousewheel":"wheel"})(),Q=function(A){return A==="wheel"?B:A},F=function(A,v,E,C,I){E.split(" ").forEach(function(Z){A[v](Q(Z),C,n?{passive:I}:!1)})},W=function(A,v,E,C){return F(A,"addEventListener",v,E,C)},x=function(A,v,E,C){return F(A,"removeEventListener",v,E,C)},ee=/^(\+|-)=(\d+(?:\.\d+)?)$/,se=function(A,v){var E={top:0,left:0,relative:!1};if(l(A,"top")||l(A,"left"))E=e({},E,A);else if(s(A))if(A.length>1)E.top=A[0],E.left=A[1];else if(A.length===1)E.top=v?A[0]:0,E.left=v?0:A[0];else return null;else if(a(A))v?E.top=A:E.left=A;else if(o(A)){var C=A.trim().match(ee);if(!C)return null;var I=C[1],Z=parseInt(C[2],10);I==="+"?(E.top=v?Z:0,E.left=v?0:Z):(E.top=v?-Z:0,E.left=v?0:-Z),E.relative=!0}else return null;return E},w={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},he="click",Se="wheel touchstart touchmove",Re=(function(){function A(v,E){var C=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(Z){var ke=C,Ae=ke.$el,De=ke.ctx;if(De.start||(De.start=Z),!De.progress||!Ae){C.stop();return}var Ht=De.opts,ft=De.pos,Lt=De.start,Tr=De.startPos,Pr=De.easing,er=Ht.duration,cr={top:"y",left:"x"},Wt=Z-Lt,ze=Math.min(1,Math.max(Wt/er,0));Object.keys(ft).forEach(function(Fr){var _=ft[Fr],q=Tr[Fr],ae=_-q;if(ae!==0){var me=Pr(ze,er*ze,0,1,er);M(Ae,Math.round(q+ae*me),cr[Fr])}}),Wt<=er?(C.hook(Ht,"step",ze),De.id=A.raf(C.loop)):C.stop(!0)},this.handleClick=function(Z){for(var ke=C.opts,Ae=Z.target;Ae&&Ae!==document;Ae=Ae.parentNode)if(T(Ae,ke.trigger)){var De=JSON.parse(Ae.getAttribute("data-scroll-options")||"{}"),Ht=Ae.getAttribute("data-scroll"),ft=Ht||Ae.getAttribute("href"),Lt=e({},ke,De),Tr=Lt.preventDefault,Pr=Lt.stopPropagation,er=Lt.vertical,cr=Lt.horizontal;Tr&&Z.preventDefault(),Pr&&Z.stopPropagation(),C.ctx.$trigger=Ae,cr&&er?C.to(ft,Lt):er?C.toTop(ft,Lt):cr&&C.toLeft(ft,Lt);break}},this.handleStop=function(Z){var ke=C.ctx,Ae=ke.opts;Ae&&Ae.cancellable?(ke.cancel=!0,C.stop()):Z.preventDefault()},this.opts=e({},w,v||{});var I=null;t&&(typeof E=="string"?I=S(E):E!=null?I=E:I=window),this.$el=I,I&&this.bind(!0,!1)}return A.create=function(v,E){return new A(v,E)},A.prototype.to=function(v,E){if(t){var C=this,I=C.$el,Z=C.ctx,ke=C.opts,Ae=Z.$trigger,De=e({},ke,E||{}),Ht=De.offset,ft=De.vertical,Lt=De.horizontal,Tr=k(De.header)?De.header:S(De.header),Pr=/^#/,er=o(v)&&Pr.test(v)?v:null;if(Z.opts=De,Z.cancel=!1,Z.hash=er,this.stop(),!!I){var cr=se(Ht,ft),Wt=se(v,ft),ze={top:0,left:0};if(Wt)if(Wt.relative){var Fr=O(I,ft?"y":"x");ze.top=ft?Fr+Wt.top:Wt.top,ze.left=ft?Wt.left:Fr+Wt.left}else ze=Wt;else if(o(v)&&v!=="#"){var _=S(v);if(!_)return;ze=P(_,I)}cr&&(ze.top+=cr.top,ze.left+=cr.left),Tr&&(ze.top=Math.max(0,ze.top-H(Tr).height));var q=D(I),ae=q.viewport,me=q.size;if(ze.top=ft?Math.max(0,Math.min(me.height-ae.height,ze.top)):O(I,"y"),ze.left=Lt?Math.max(0,Math.min(me.width-ae.width,ze.left)):O(I,"x"),this.hook(De,"before",ze,Ae)===!1){Z.opts=null;return}Z.pos=ze,this.start(De),this.bind(!1,!0)}}},A.prototype.toTop=function(v,E){this.to(v,e({},E||{},{vertical:!0,horizontal:!1}))},A.prototype.toLeft=function(v,E){this.to(v,e({},E||{},{vertical:!1,horizontal:!0}))},A.prototype.toElement=function(v,E){var C=this.$el;!t||!C||this.to(P(v,C),E||{})},A.prototype.stop=function(v){v===void 0&&(v=!1);var E=this,C=E.$el,I=E.ctx,Z=I.pos;!C||!I.progress||(A.caf(I.id),I.progress=!1,I.start=0,I.id=0,v&&Z&&(M(C,Z.left,"x"),M(C,Z.top,"y")),this.complete())},A.prototype.update=function(v){if(this.$el){var E=e({},this.opts,v);this.stop(),this.unbind(!0,!0),this.opts=E,this.bind(!0,!1)}},A.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},A.prototype.onBefore=function(v,E){return!0},A.prototype.onStep=function(v){},A.prototype.onAfter=function(v,E){},A.prototype.onCancel=function(){},A.prototype.onComplete=function(v){},A.prototype.start=function(v){var E=this.ctx;E.opts=v,E.progress=!0,E.easing=i(v.easing)?v.easing:g[v.easing];var C=this.$el,I={top:O(C,"y"),left:O(C,"x")};E.startPos=I,E.id=A.raf(this.loop)},A.prototype.complete=function(){var v=this,E=v.$el,C=v.ctx,I=C.hash,Z=C.cancel,ke=C.opts,Ae=C.pos,De=C.$trigger;if(!(!E||!ke)){if(I!=null&&I!==window.location.hash){var Ht=ke.updateURL;t&&r&&Ht!==!1&&window.history[Ht==="replace"?"replaceState":"pushState"](null,"",I)}this.unbind(!1,!0),C.opts=null,C.$trigger=null,Z?this.hook(ke,"cancel"):this.hook(ke,"after",Ae,De),this.hook(ke,"complete",Z)}},A.prototype.hook=function(v,E){for(var C=[],I=2;I<arguments.length;I++)C[I-2]=arguments[I];var Z,ke=v[E],Ae,De;return i(ke)&&(Ae=ke.apply(this,C.concat([this]))),De=(Z=this)["on"+(E[0].toUpperCase()+E.slice(1))].apply(Z,C),Ae!==void 0?Ae:De},A.prototype.bind=function(v,E){var C=this,I=C.$el,Z=C.ctx.opts;I&&(v&&W(I,he,this.handleClick,!1),E&&W(I,Se,this.handleStop,Z?Z.cancellable:!0))},A.prototype.unbind=function(v,E){var C=this,I=C.$el,Z=C.ctx.opts;I&&(v&&x(I,he,this.handleClick,!1),E&&x(I,Se,this.handleStop,Z?Z.cancellable:!0))},A.raf=u,A.caf=c,A})();return Re})});var Lu=globalThis,_a=Lu.ShadowRoot&&(Lu.ShadyCSS===void 0||Lu.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$m=Symbol(),ww=new WeakMap,zi=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==$m)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(_a&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=ww.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&ww.set(r,t))}return t}toString(){return this.cssText}},$e=e=>new zi(typeof e=="string"?e:e+"",void 0,$m),Je=(e,...t)=>{let r=e.length===1?e[0]:t.reduce(((n,o,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+e[i+1]),e[0]);return new zi(r,e,$m)},Ru=(e,t)=>{if(_a)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of t){let n=document.createElement("style"),o=Lu.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},Ia=_a?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return $e(r)})(e):e;var{is:vF,defineProperty:SF,getOwnPropertyDescriptor:kF,getOwnPropertyNames:TF,getOwnPropertySymbols:EF,getPrototypeOf:AF}=Object,Bu=globalThis,vw=Bu.trustedTypes,DF=vw?vw.emptyScript:"",CF=Bu.reactiveElementPolyfillSupport,Pa=(e,t)=>e,ji={toAttribute(e,t){switch(t){case Boolean:e=e?DF:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Fa=(e,t)=>!vF(e,t),Sw={attribute:!0,type:String,converter:ji,reflect:!1,useDefault:!1,hasChanged:Fa};Symbol.metadata??=Symbol("metadata"),Bu.litPropertyMetadata??=new WeakMap;var $r=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Sw){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(t,n,r);o!==void 0&&SF(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){let{get:o,set:i}=kF(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get:o,set(s){let a=o?.call(this);i?.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Sw}static _$Ei(){if(this.hasOwnProperty(Pa("elementProperties")))return;let t=AF(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Pa("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pa("properties"))){let r=this.properties,n=[...TF(r),...EF(r)];for(let o of n)this.createProperty(o,r[o])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let o of n)r.unshift(Ia(o))}else t!==void 0&&r.push(Ia(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ru(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$ET(t,r){let n=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,n);if(o!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:ji).toAttribute(r,n.type);this._$Em=t,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(t,r){let n=this.constructor,o=n._$Eh.get(t);if(o!==void 0&&this._$Em!==o){let i=n.getPropertyOptions(o),s=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:ji;this._$Em=o;let a=s.fromAttribute(r,i.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){let o=this.constructor,i=this[t];if(n??=o.getPropertyOptions(t),!((n.hasChanged??Fa)(i,r)||n.useDefault&&n.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,n))))return;this.C(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:n,reflect:o,wrapped:i},s){n&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,s??r??this[t]),i!==!0||s!==void 0)||(this._$AL.has(t)||(this.hasUpdated||n||(r=void 0),this._$AL.set(t,r)),o===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[o,i]of n){let{wrapped:s}=i,a=this[o];s!==!0||this._$AL.has(o)||a===void 0||this.C(o,void 0,i,a)}}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(r)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach((r=>r.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((r=>this._$ET(r,this[r]))),this._$EM()}updated(t){}firstUpdated(t){}};$r.elementStyles=[],$r.shadowRootOptions={mode:"open"},$r[Pa("elementProperties")]=new Map,$r[Pa("finalized")]=new Map,CF?.({ReactiveElement:$r}),(Bu.reactiveElementVersions??=[]).push("2.1.1");var Um=globalThis,$u=Um.trustedTypes,kw=$u?$u.createPolicy("lit-html",{createHTML:e=>e}):void 0,zm="$lit$",gn=`lit$${Math.random().toFixed(9).slice(2)}$`,jm="?"+gn,OF=`<${jm}>`,Po=document,Na=()=>Po.createComment(""),La=e=>e===null||typeof e!="object"&&typeof e!="function",qm=Array.isArray,Tw=e=>qm(e)||typeof e?.[Symbol.iterator]=="function",Hm=`[
|
|
35
|
-
\f\r]`,Ra=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ew=/-->/g,Aw=/>/g,Fo=RegExp(`>|${Hm}(?:([^\\s"'>=/]+)(${Hm}*=${Hm}*(?:[^
|
|
36
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Dw=/'/g,Cw=/"/g,Ow=/^(?:script|style|textarea|title)$/i,Wm=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),et=Wm(1),Ym=Wm(2),Vm=Wm(3),Ue=Symbol.for("lit-noChange"),qe=Symbol.for("lit-nothing"),Mw=new WeakMap,No=Po.createTreeWalker(Po,129);function _w(e,t){if(!qm(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return kw!==void 0?kw.createHTML(t):t}var Iw=(e,t)=>{let r=e.length-1,n=[],o,i=t===2?"<svg>":t===3?"<math>":"",s=Ra;for(let a=0;a<r;a++){let l=e[a],u,c,f=-1,p=0;for(;p<l.length&&(s.lastIndex=p,c=s.exec(l),c!==null);)p=s.lastIndex,s===Ra?c[1]==="!--"?s=Ew:c[1]!==void 0?s=Aw:c[2]!==void 0?(Ow.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=Fo):c[3]!==void 0&&(s=Fo):s===Fo?c[0]===">"?(s=o??Ra,f=-1):c[1]===void 0?f=-2:(f=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?Fo:c[3]==='"'?Cw:Dw):s===Cw||s===Dw?s=Fo:s===Ew||s===Aw?s=Ra:(s=Fo,o=void 0);let h=s===Fo&&e[a+1].startsWith("/>")?" ":"";i+=s===Ra?l+OF:f>=0?(n.push(u),l.slice(0,f)+zm+l.slice(f)+gn+h):l+gn+(f===-2?a:h)}return[_w(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Ba=class e{constructor({strings:t,_$litType$:r},n){let o;this.parts=[];let i=0,s=0,a=t.length-1,l=this.parts,[u,c]=Iw(t,r);if(this.el=e.createElement(u,n),No.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=No.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let f of o.getAttributeNames())if(f.endsWith(zm)){let p=c[s++],h=o.getAttribute(f).split(gn),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:m[2],strings:h,ctor:m[1]==="."?zu:m[1]==="?"?ju:m[1]==="@"?qu:Ro}),o.removeAttribute(f)}else f.startsWith(gn)&&(l.push({type:6,index:i}),o.removeAttribute(f));if(Ow.test(o.tagName)){let f=o.textContent.split(gn),p=f.length-1;if(p>0){o.textContent=$u?$u.emptyScript:"";for(let h=0;h<p;h++)o.append(f[h],Na()),No.nextNode(),l.push({type:2,index:++i});o.append(f[p],Na())}}}else if(o.nodeType===8)if(o.data===jm)l.push({type:2,index:i});else{let f=-1;for(;(f=o.data.indexOf(gn,f+1))!==-1;)l.push({type:7,index:i}),f+=gn.length-1}i++}}static createElement(t,r){let n=Po.createElement("template");return n.innerHTML=t,n}};function Lo(e,t,r=e,n){if(t===Ue)return t;let o=n!==void 0?r._$Co?.[n]:r._$Cl,i=La(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(e),o._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(t=Lo(e,o._$AS(e,t.values),o,n)),t}var Uu=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,o=(t?.creationScope??Po).importNode(r,!0);No.currentNode=o;let i=No.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new qi(i,i.nextSibling,this,t):l.type===1?u=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(u=new Hu(i,this,t)),this._$AV.push(u),l=n[++a]}s!==l?.index&&(i=No.nextNode(),s++)}return No.currentNode=Po,o}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},qi=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=qe,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Lo(this,t,r),La(t)?t===qe||t==null||t===""?(this._$AH!==qe&&this._$AR(),this._$AH=qe):t!==this._$AH&&t!==Ue&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Tw(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==qe&&La(this._$AH)?this._$AA.nextSibling.data=t:this.T(Po.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,o=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Ba.createElement(_w(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let i=new Uu(o,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(t){let r=Mw.get(t.strings);return r===void 0&&Mw.set(t.strings,r=new Ba(t)),r}k(t){qm(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,o=0;for(let i of t)o===r.length?r.push(n=new e(this.O(Na()),this.O(Na()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Ro=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,i){this.type=1,this._$AH=qe,this._$AN=void 0,this.element=t,this.name=r,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=qe}_$AI(t,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)t=Lo(this,t,r,0),s=!La(t)||t!==this._$AH&&t!==Ue,s&&(this._$AH=t);else{let a=t,l,u;for(t=i[0],l=0;l<i.length-1;l++)u=Lo(this,a[n+l],r,l),u===Ue&&(u=this._$AH[l]),s||=!La(u)||u!==this._$AH[l],u===qe?t=qe:t!==qe&&(t+=(u??"")+i[l+1]),this._$AH[l]=u}s&&!o&&this.j(t)}j(t){t===qe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},zu=class extends Ro{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===qe?void 0:t}},ju=class extends Ro{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==qe)}},qu=class extends Ro{constructor(t,r,n,o,i){super(t,r,n,o,i),this.type=5}_$AI(t,r=this){if((t=Lo(this,t,r,0)??qe)===Ue)return;let n=this._$AH,o=t===qe&&n!==qe||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==qe&&(n===qe||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Hu=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Lo(this,t)}},Gm={M:zm,P:gn,A:jm,C:1,L:Iw,R:Uu,D:Tw,V:Lo,I:qi,H:Ro,N:ju,U:qu,B:zu,F:Hu},MF=Um.litHtmlPolyfillSupport;MF?.(Ba,qi),(Um.litHtmlVersions??=[]).push("3.3.1");var Wu=(e,t,r)=>{let n=r?.renderBefore??t,o=n._$litPart$;if(o===void 0){let i=r?.renderBefore??null;n._$litPart$=o=new qi(t.insertBefore(Na(),i),i,void 0,r??{})}return o._$AI(e),o};var Qm=globalThis,xn=class extends $r{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Wu(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ue}};xn._$litElement$=!0,xn.finalized=!0,Qm.litElementHydrateSupport?.({LitElement:xn});var _F=Qm.litElementPolyfillSupport;_F?.({LitElement:xn});var IF={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(Qm.litElementVersions??=[]).push("4.2.1");var PF=!1;var Xe={};te(Xe,{ObservableIntake:()=>xd,Observablemap:()=>gd,fromStreamWithBackpressure:()=>hR,rxjs:()=>ns});var Pe={};te(Pe,{CumulativeDeferred:()=>Gu,Deferred:()=>Vu,cumulativeDefer:()=>NF,defer:()=>Hi,fromCallback:()=>zF,getFirstTrueOrFalse:()=>UF,map:()=>BF,rejectedPromise:()=>RF,resolvedPromise:()=>LF,timeoutAndContinue:()=>$F,timeoutWrap:()=>Pw});var Vu=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},Hi=()=>new Vu;var Gu=class{constructor(){this.accumulatedPromises=[],this.deferred=Hi(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}subDefer(){let t=Hi();return this.addPromise(t.promise),t}addPromise(t){this.accumulatedPromises.push(t)}},NF=()=>new Gu;var LF=e=>Promise.resolve(e),RF=e=>Promise.reject(e),BF=async(e,t)=>{let r=[],n=[];for(let o of e){let i=t(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},Pw=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),$F=async(e,t=6e4)=>Pw(e,t,!1),UF=async e=>{let t=Hi();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise},zF=e=>new Promise((t,r)=>{e((n,o)=>{n?r(n):t(o)})});var ns={};te(ns,{Observable:()=>Ee,ReplaySubject:()=>Vi,Subject:()=>$t,Subscription:()=>kt,from:()=>bn,fromEvent:()=>Cr,of:()=>Va,ops:()=>pR});var Jm=function(e,t){return Jm=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])},Jm(e,t)};function xt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Jm(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Xm=function(){return Xm=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Xm.apply(this,arguments)};function qF(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function HF(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function WF(e,t){return function(r,n){t(r,n,e)}}function yG(e,t,r,n,o,i){function s(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var a=n.kind,l=a==="getter"?"get":a==="setter"?"set":"value",u=!t&&e?n.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f,p=!1,h=r.length-1;h>=0;h--){var m={};for(var d in n)m[d]=d==="access"?{}:n[d];for(var d in n.access)m.access[d]=n.access[d];m.addInitializer=function(y){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(y||null))};var g=(0,r[h])(a==="accessor"?{get:c.get,set:c.set}:c[l],m);if(a==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(f=s(g.get))&&(c.get=f),(f=s(g.set))&&(c.set=f),(f=s(g.init))&&o.unshift(f)}else(f=s(g))&&(a==="field"?o.unshift(f):c[l]=f)}u&&Object.defineProperty(u,n.name,c),p=!0}function bG(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function wG(e){return typeof e=="symbol"?e:"".concat(e)}function vG(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function YF(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Km(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(c){try{u(n.next(c))}catch(f){s(f)}}function l(c){try{u(n.throw(c))}catch(f){s(f)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function Ua(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(r=0)),r;)try{if(n=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],o=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var Zm=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});function VF(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Zm(t,e,r)}function St(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function GF(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Bt(arguments[t]));return e}function QF(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function pr(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function yn(e){return this instanceof yn?(this.v=e,this):new yn(e)}function ed(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(p){n[p]&&(o[p]=function(h){return new Promise(function(m,d){i.push([p,h,m,d])>1||a(p,h)})})}function a(p,h){try{l(n[p](h))}catch(m){f(i[0][3],m)}}function l(p){p.value instanceof yn?Promise.resolve(p.value.v).then(u,c):f(i[0][2],p)}function u(p){a("next",p)}function c(p){a("throw",p)}function f(p,h){p(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function JF(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(s){return(r=!r)?{value:yn(e[o](s)),done:!1}:i?i(s):s}:i}}function td(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof St=="function"?St(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}}function XF(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var ZF=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t};function KF(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Zm(t,e,r);return ZF(t,e),t}function eN(e){return e&&e.__esModule?e:{default:e}}function tN(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function rN(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function nN(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function oN(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var iN=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function sN(e){function t(n){e.error=e.hasError?new iN(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,function(i){return t(i),r()})}catch(i){t(i)}}if(e.hasError)throw e.error}return r()}var SG={__extends:xt,__assign:Xm,__rest:qF,__decorate:HF,__param:WF,__metadata:YF,__awaiter:Km,__generator:Ua,__createBinding:Zm,__exportStar:VF,__values:St,__read:Bt,__spread:GF,__spreadArrays:QF,__spreadArray:pr,__await:yn,__asyncGenerator:ed,__asyncDelegator:JF,__asyncValues:td,__makeTemplateObject:XF,__importStar:KF,__importDefault:eN,__classPrivateFieldGet:tN,__classPrivateFieldSet:rN,__classPrivateFieldIn:nN,__addDisposableResource:oN,__disposeResources:sN};function de(e){return typeof e=="function"}function Qu(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var za=Qu(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
1
|
+
var sw=Object.create;var Eo=Object.defineProperty;var aw=Object.getOwnPropertyDescriptor;var uO=Object.getOwnPropertyNames;var cO=Object.getPrototypeOf,fO=Object.prototype.hasOwnProperty;var lw=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Do=t=>{throw TypeError(t)};var uw=(t,e,r)=>e in t?Eo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var i=(t,e)=>Eo(t,"name",{value:e,configurable:!0}),Kl=(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 ce=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},le=(t,e)=>{for(var r in e)Eo(t,r,{get:e[r],enumerable:!0})},pO=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of uO(e))!fO.call(t,o)&&o!==r&&Eo(t,o,{get:()=>e[o],enumerable:!(n=aw(e,o))||n.enumerable});return t};var Qt=(t,e,r)=>(r=t!=null?sw(cO(t)):{},pO(e||!t||!t.__esModule?Eo(r,"default",{value:t,enumerable:!0}):r,t));var $r=t=>[,,,sw(t?.[lw("metadata")]??null)],cw=["class","method","getter","setter","accessor","field","value","get","set"],ua=t=>t!==void 0&&typeof t!="function"?Do("Function expected"):t,hO=(t,e,r,n,o)=>({kind:cw[t],name:e,metadata:n,addInitializer:s=>r._?Do("Already initialized"):o.push(ua(s||null))}),dO=(t,e)=>uw(e,lw("metadata"),t[3]),ft=(t,e,r,n)=>{for(var o=0,s=t[e>>1],a=s&&s.length;o<a;o++)e&1?s[o].call(r):n=s[o].call(r,n);return n},Bt=(t,e,r,n,o,s)=>{var a,l,u,c,f,p=e&7,h=!!(e&8),d=!!(e&16),m=p>3?t.length+1:p?h?1:2:0,g=cw[p+5],x=p>3&&(t[m-1]=[]),y=t[m]||(t[m]=[]),S=p&&(!d&&!h&&(o=o.prototype),p<5&&(p>3||!d)&&aw(p<4?o:{get[r](){return iw(this,s)},set[r](H){return ow(this,s,H)}},r));p?d&&p<4&&i(s,(p>2?"set ":p>1?"get ":"")+r):i(o,r);for(var T=n.length-1;T>=0;T--)c=hO(p,r,u={},t[3],y),p&&(c.static=h,c.private=d,f=c.access={has:d?H=>mO(o,H):H=>r in H},p^3&&(f.get=d?H=>(p^1?iw:gO)(H,o,p^4?s:S.get):H=>H[r]),p>2&&(f.set=d?(H,z)=>ow(H,o,z,p^4?s:S.set):(H,z)=>H[r]=z)),l=(0,n[T])(p?p<4?d?s:S[g]:p>4?void 0:{get:S.get,set:S.set}:o,c),u._=1,p^4||l===void 0?ua(l)&&(p>4?x.unshift(l):p?d?s=l:S[g]=l:o=l):typeof l!="object"||l===null?Do("Object expected"):(ua(a=l.get)&&(S.get=a),ua(a=l.set)&&(S.set=a),ua(a=l.init)&&x.unshift(a));return p||dO(t,o),S&&Eo(o,r,S),d?p^4?s:S:o},$t=(t,e,r)=>uw(t,typeof e!="symbol"?e+"":e,r),Gh=(t,e,r)=>e.has(t)||Do("Cannot "+r),mO=(t,e)=>Object(e)!==e?Do('Cannot use the "in" operator on this value'):t.has(e),iw=(t,e,r)=>(Gh(t,e,"read from private field"),r?r.call(t):e.get(t)),Co=(t,e,r)=>e.has(t)?Do("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),ow=(t,e,r,n)=>(Gh(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),gO=(t,e,r)=>(Gh(t,e,"access private method"),r);var ya=ce(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0}),cu.uni=void 0;var IO=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");cu.uni=IO});var ok=ce((zd,Wd)=>{(function(t,e){typeof zd=="object"&&typeof Wd<"u"?Wd.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(zd,(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",d="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|YYYY|YY|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(j){var I=["th","st","nd","rd"],R=j%100;return"["+j+(I[(R-20)%10]||I[R]||I[0])+"]"},"ordinal")},y=i(function(j,I,R){var L=String(j);return!L||L.length>=I?j:""+Array(I+1-L.length).join(R)+j},"m"),S={s:y,z:i(function(j){var I=-j.utcOffset(),R=Math.abs(I),L=Math.floor(R/60),B=R%60;return(I<=0?"+":"-")+y(L,2,"0")+":"+y(B,2,"0")},"z"),m:i(function j(I,R){if(I.date()<R.date())return-j(R,I);var L=12*(R.year()-I.year())+(R.month()-I.month()),B=I.clone().add(L,c),G=R-B<0,X=I.clone().add(L+(G?-1:1),c);return+(-(L+(R-B)/(G?B-X:X-B))||0)},"t"),a:i(function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},"a"),p:i(function(j){return{M:c,y:p,w:u,d:l,D:h,h:a,m:s,s:o,ms:n,Q:f}[j]||String(j||"").toLowerCase().replace(/s$/,"")},"p"),u:i(function(j){return j===void 0},"u")},T="en",H={};H[T]=x;var z="$isDayjsObject",C=i(function(j){return j instanceof O||!(!j||!j[z])},"S"),W=i(function j(I,R,L){var B;if(!I)return T;if(typeof I=="string"){var G=I.toLowerCase();H[G]&&(B=G),R&&(H[G]=R,B=G);var X=I.split("-");if(!B&&X.length>1)return j(X[0])}else{var pe=I.name;H[pe]=I,B=pe}return!L&&B&&(T=B),B||!L&&T},"t"),ee=i(function(j,I){if(C(j))return j.clone();var R=typeof I=="object"?I:{};return R.date=j,R.args=arguments,new O(R)},"O"),V=S;V.l=W,V.i=C,V.w=function(j,I){return ee(j,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var O=(function(){function j(R){this.$L=W(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[z]=!0}i(j,"M");var I=j.prototype;return I.parse=function(R){this.$d=(function(L){var B=L.date,G=L.utc;if(B===null)return new Date(NaN);if(V.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var X=B.match(m);if(X){var pe=X[2]-1||0,b=(X[7]||"0").substring(0,3);return G?new Date(Date.UTC(X[1],pe,X[3]||1,X[4]||0,X[5]||0,X[6]||0,b)):new Date(X[1],pe,X[3]||1,X[4]||0,X[5]||0,X[6]||0,b)}}return new Date(B)})(R),this.init()},I.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},I.$utils=function(){return V},I.isValid=function(){return this.$d.toString()!==d},I.isSame=function(R,L){var B=ee(R);return this.startOf(L)<=B&&B<=this.endOf(L)},I.isAfter=function(R,L){return ee(R)<this.startOf(L)},I.isBefore=function(R,L){return this.endOf(L)<ee(R)},I.$g=function(R,L,B){return V.u(R)?this[L]:this.set(B,R)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(R,L){var B=this,G=!!V.u(L)||L,X=V.p(R),pe=i(function(E,v){var D=V.w(B.$u?Date.UTC(B.$y,v,E):new Date(B.$y,v,E),B);return G?D:D.endOf(l)},"l"),b=i(function(E,v){return V.w(B.toDate()[E].apply(B.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(v)),B)},"$"),ye=this.$W,ke=this.$M,k=this.$D,Ae="set"+(this.$u?"UTC":"");switch(X){case p:return G?pe(1,0):pe(31,11);case c:return G?pe(1,ke):pe(0,ke+1);case u:var Ze=this.$locale().weekStart||0,Yt=(ye<Ze?ye+7:ye)-Ze;return pe(G?k-Yt:k+(6-Yt),ke);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()}},I.endOf=function(R){return this.startOf(R,!1)},I.$set=function(R,L){var B,G=V.p(R),X="set"+(this.$u?"UTC":""),pe=(B={},B[l]=X+"Date",B[h]=X+"Date",B[c]=X+"Month",B[p]=X+"FullYear",B[a]=X+"Hours",B[s]=X+"Minutes",B[o]=X+"Seconds",B[n]=X+"Milliseconds",B)[G],b=G===l?this.$D+(L-this.$W):L;if(G===c||G===p){var ye=this.clone().set(h,1);ye.$d[pe](b),ye.init(),this.$d=ye.set(h,Math.min(this.$D,ye.daysInMonth())).$d}else pe&&this.$d[pe](b);return this.init(),this},I.set=function(R,L){return this.clone().$set(R,L)},I.get=function(R){return this[V.p(R)]()},I.add=function(R,L){var B,G=this;R=Number(R);var X=V.p(L),pe=i(function(ke){var k=ee(G);return V.w(k.date(k.date()+Math.round(ke*R)),G)},"y");if(X===c)return this.set(c,this.$M+R);if(X===p)return this.set(p,this.$y+R);if(X===l)return pe(1);if(X===u)return pe(7);var b=(B={},B[s]=e,B[a]=r,B[o]=t,B)[X]||1,ye=this.$d.getTime()+R*b;return V.w(ye,this)},I.subtract=function(R,L){return this.add(-1*R,L)},I.format=function(R){var L=this,B=this.$locale();if(!this.isValid())return B.invalidDate||d;var G=R||"YYYY-MM-DDTHH:mm:ssZ",X=V.z(this),pe=this.$H,b=this.$m,ye=this.$M,ke=B.weekdays,k=B.months,Ae=B.meridiem,Ze=i(function(v,D,M,F){return v&&(v[D]||v(L,G))||M[D].slice(0,F)},"h"),Yt=i(function(v){return V.s(pe%12||12,v,"0")},"d"),E=Ae||function(v,D,M){var F=v<12?"AM":"PM";return M?F.toLowerCase():F};return G.replace(g,(function(v,D){return D||(function(M){switch(M){case"YY":return String(L.$y).slice(-2);case"YYYY":return V.s(L.$y,4,"0");case"M":return ye+1;case"MM":return V.s(ye+1,2,"0");case"MMM":return Ze(B.monthsShort,ye,k,3);case"MMMM":return Ze(k,ye);case"D":return L.$D;case"DD":return V.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Ze(B.weekdaysMin,L.$W,ke,2);case"ddd":return Ze(B.weekdaysShort,L.$W,ke,3);case"dddd":return ke[L.$W];case"H":return String(pe);case"HH":return V.s(pe,2,"0");case"h":return Yt(1);case"hh":return Yt(2);case"a":return E(pe,b,!0);case"A":return E(pe,b,!1);case"m":return String(b);case"mm":return V.s(b,2,"0");case"s":return String(L.$s);case"ss":return V.s(L.$s,2,"0");case"SSS":return V.s(L.$ms,3,"0");case"Z":return X}return null})(v)||X.replace(":","")}))},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(R,L,B){var G,X=this,pe=V.p(L),b=ee(R),ye=(b.utcOffset()-this.utcOffset())*e,ke=this-b,k=i(function(){return V.m(X,b)},"D");switch(pe){case p:G=k()/12;break;case c:G=k();break;case f:G=k()/3;break;case u:G=(ke-ye)/6048e5;break;case l:G=(ke-ye)/864e5;break;case a:G=ke/r;break;case s:G=ke/e;break;case o:G=ke/t;break;default:G=ke}return B?G:V.a(G)},I.daysInMonth=function(){return this.endOf(c).$D},I.$locale=function(){return H[this.$L]},I.locale=function(R,L){if(!R)return this.$L;var B=this.clone(),G=W(R,L,!0);return G&&(B.$L=G),B},I.clone=function(){return V.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},j})(),_e=O.prototype;return ee.prototype=_e,[["$ms",n],["$s",o],["$m",s],["$H",a],["$W",l],["$M",c],["$y",p],["$D",h]].forEach((function(j){_e[j[1]]=function(I){return this.$g(I,j[0],j[1])}})),ee.extend=function(j,I){return j.$i||(j(I,O,ee),j.$i=!0),ee},ee.locale=W,ee.isDayjs=C,ee.unix=function(j){return ee(1e3*j)},ee.en=H[T],ee.Ls=H,ee.p={},ee}))});var sk=ce((qd,jd)=>{(function(t,e){typeof qd=="object"&&typeof jd<"u"?jd.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(qd,(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 ck=ce((xMe,uk)=>{"use strict";uk.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 pk=ce((wMe,fk)=>{"use strict";fk.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var xk=ce((bMe,gk)=>{"use strict";var hk=Symbol(),dk=Symbol(),Zn=Symbol(),mk=Symbol(),Tr=class{static{i(this,"TreeIterator")}constructor(e,r,n,o){this[hk]=e,this[dk]=r,this[Zn]=n,this[mk]=o}next(){let e=this[hk],r=this[mk],n=this[dk];if(!this[Zn])return{done:!0,value:n};let o=this[Zn];return r===1?this[Zn]=e._node(o).previousSibling:r===2?this[Zn]=e._node(o).nextSibling:r===3?this[Zn]=e._node(o).parent:r===4?this[Zn]=e.preceding(o,{root:n}):this[Zn]=e.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(Tr.prototype,Symbol.iterator,{value:i(function(){return this},"value"),writable:!1}),Tr.PREV=1,Tr.NEXT=2,Tr.PARENT=3,Tr.PRECEDING=4,Tr.FOLLOWING=5,Object.freeze(Tr),Object.freeze(Tr.prototype),gk.exports=Tr});var wk=ce((kMe,yk)=>{"use strict";var nN=ck(),Kn=pk(),fr=xk();function Zd(){return!0}i(Zd,"returnTrue");function fs(t,e){return t[t.length-1-e]}i(fs,"reverseArrayIndex");var Of=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 nN)}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||Zd,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||Zd,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||Zd,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 fr(this,e,n?o.lastChild:o.firstChild,n?fr.PREV:fr.NEXT)}previousSiblingsIterator(e){return new fr(this,e,this._node(e).previousSibling,fr.PREV)}nextSiblingsIterator(e){return new fr(this,e,this._node(e).nextSibling,fr.NEXT)}ancestorsIterator(e){return new fr(this,e,e,fr.PARENT)}treeIterator(e,r){let n=r&&r.reverse;return new fr(this,e,n?this.lastInclusiveDescendant(e):e,n?fr.PRECEDING:fr.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 Kn.CONTAINS|Kn.PRECEDING;n.push(f),f=this.parent(f)}}let o=[];{let f=r;for(;f;){if(f===e)return Kn.CONTAINED_BY|Kn.FOLLOWING;o.push(f),f=this.parent(f)}}let s=fs(n,0);if(!s||s!==fs(o,0))return Kn.DISCONNECTED;let a=0,l=Math.min(n.length,o.length);for(let f=0;f<l;++f){let p=fs(n,f),h=fs(o,f);if(p!==h)break;a=f}let u=this.index(fs(n,a+1));return this.index(fs(o,a+1))<u?Kn.PRECEDING:Kn.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}};yk.exports=Of,Of.TreePosition=Kn});var Nk=ce((sIe,Rk)=>{"use strict";Rk.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=ce((BRe,Vi)=>{"use strict";function US(t){return typeof t>"u"||t===null}i(US,"isNothing");function bL(t){return typeof t=="object"&&t!==null}i(bL,"isObject");function vL(t){return Array.isArray(t)?t:US(t)?[]:[t]}i(vL,"toArray");function kL(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(kL,"extend");function SL(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}i(SL,"repeat");function TL(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}i(TL,"isNegativeZero"),Vi.exports.isNothing=US,Vi.exports.isObject=bL,Vi.exports.toArray=vL,Vi.exports.repeat=SL,Vi.exports.isNegativeZero=TL,Vi.exports.extend=kL});var Ps=ce((HRe,YS)=>{"use strict";function ul(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(ul,"YAMLException"),ul.prototype=Object.create(Error.prototype),ul.prototype.constructor=ul,ul.prototype.toString=i(function(e){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!e&&this.mark&&(r+=" "+this.mark.toString()),r},"toString"),YS.exports=ul});var QS=ce((WRe,GS)=>{"use strict";var VS=Gi();function Wm(t,e,r,n,o){this.name=t,this.buffer=e,this.position=r,this.line=n,this.column=o}i(Wm,"Mark"),Wm.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
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(o-1))===-1;)if(o-=1,this.position-o>r/2-1){n=" ... ",o+=5;break}for(s="",a=this.position;a<this.buffer.length&&`\0\r
|
|
3
|
+
\x85\u2028\u2029`.indexOf(this.buffer.charAt(a))===-1;)if(a+=1,a-this.position>r/2-1){s=" ... ",a-=5;break}return l=this.buffer.slice(o,a),VS.repeat(" ",e)+n+l+s+`
|
|
4
|
+
`+VS.repeat(" ",e+this.position-o+n.length)+"^"},"getSnippet"),Wm.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"),GS.exports=Wm});var lt=ce((jRe,XS)=>{"use strict";var JS=Ps(),EL=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],DL=["scalar","sequence","mapping"];function CL(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}i(CL,"compileStyleAliases");function ML(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(EL.indexOf(r)===-1)throw new JS('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=CL(e.styleAliases||null),DL.indexOf(this.kind)===-1)throw new JS('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}i(ML,"Type"),XS.exports=ML});var Qi=ce((YRe,KS)=>{"use strict";var ZS=Gi(),wp=Ps(),OL=lt();function qm(t,e,r){var n=[];return t.include.forEach(function(o){r=qm(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(qm,"compileList");function IL(){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(IL,"compileMap");function _s(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 wp("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=qm(this,"implicit",[]),this.compiledExplicit=qm(this,"explicit",[]),this.compiledTypeMap=IL(this.compiledImplicit,this.compiledExplicit)}i(_s,"Schema"),_s.DEFAULT=null,_s.create=i(function(){var e,r;switch(arguments.length){case 1:e=_s.DEFAULT,r=arguments[0];break;case 2:e=arguments[0],r=arguments[1];break;default:throw new wp("Wrong number of arguments for Schema.create function")}if(e=ZS.toArray(e),r=ZS.toArray(r),!e.every(function(n){return n instanceof _s}))throw new wp("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof OL}))throw new wp("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new _s({include:e,explicit:r})},"createSchema"),KS.exports=_s});var tT=ce((GRe,eT)=>{"use strict";var PL=lt();eT.exports=new PL("tag:yaml.org,2002:str",{kind:"scalar",construct:i(function(t){return t!==null?t:""},"construct")})});var nT=ce((JRe,rT)=>{"use strict";var _L=lt();rT.exports=new _L("tag:yaml.org,2002:seq",{kind:"sequence",construct:i(function(t){return t!==null?t:[]},"construct")})});var oT=ce((ZRe,iT)=>{"use strict";var RL=lt();iT.exports=new RL("tag:yaml.org,2002:map",{kind:"mapping",construct:i(function(t){return t!==null?t:{}},"construct")})});var bp=ce((eNe,sT)=>{"use strict";var NL=Qi();sT.exports=new NL({explicit:[tT(),nT(),oT()]})});var lT=ce((tNe,aT)=>{"use strict";var FL=lt();function LL(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}i(LL,"resolveYamlNull");function AL(){return null}i(AL,"constructYamlNull");function BL(t){return t===null}i(BL,"isNull"),aT.exports=new FL("tag:yaml.org,2002:null",{kind:"scalar",resolve:LL,construct:AL,predicate:BL,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 cT=ce((nNe,uT)=>{"use strict";var $L=lt();function HL(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(HL,"resolveYamlBoolean");function zL(t){return t==="true"||t==="True"||t==="TRUE"}i(zL,"constructYamlBoolean");function WL(t){return Object.prototype.toString.call(t)==="[object Boolean]"}i(WL,"isBoolean"),uT.exports=new $L("tag:yaml.org,2002:bool",{kind:"scalar",resolve:HL,construct:zL,predicate:WL,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 pT=ce((oNe,fT)=>{"use strict";var qL=Gi(),jL=lt();function UL(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}i(UL,"isHexCode");function YL(t){return 48<=t&&t<=55}i(YL,"isOctCode");function VL(t){return 48<=t&&t<=57}i(VL,"isDecCode");function GL(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(!UL(t.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}for(;r<e;r++)if(o=t[r],o!=="_"){if(!YL(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(!VL(t.charCodeAt(r)))return!1;n=!0}return!n||o==="_"?!1:o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(r))}i(GL,"resolveYamlInteger");function QL(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(QL,"constructYamlInteger");function JL(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!qL.isNegativeZero(t)}i(JL,"isInteger"),fT.exports=new jL("tag:yaml.org,2002:int",{kind:"scalar",resolve:GL,construct:QL,predicate:JL,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 mT=ce((aNe,dT)=>{"use strict";var hT=Gi(),XL=lt(),ZL=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 KL(t){return!(t===null||!ZL.test(t)||t[t.length-1]==="_")}i(KL,"resolveYamlFloat");function eA(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(eA,"constructYamlFloat");var tA=/^[-+]?[0-9]+e/;function rA(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(hT.isNegativeZero(t))return"-0.0";return r=t.toString(10),tA.test(r)?r.replace("e",".e"):r}i(rA,"representYamlFloat");function nA(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||hT.isNegativeZero(t))}i(nA,"isFloat"),dT.exports=new XL("tag:yaml.org,2002:float",{kind:"scalar",resolve:KL,construct:eA,predicate:nA,represent:rA,defaultStyle:"lowercase"})});var jm=ce((uNe,gT)=>{"use strict";var iA=Qi();gT.exports=new iA({include:[bp()],implicit:[lT(),cT(),pT(),mT()]})});var Um=ce((cNe,xT)=>{"use strict";var oA=Qi();xT.exports=new oA({include:[jm()]})});var vT=ce((fNe,bT)=>{"use strict";var sA=lt(),yT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),wT=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 aA(t){return t===null?!1:yT.exec(t)!==null||wT.exec(t)!==null}i(aA,"resolveYamlTimestamp");function lA(t){var e,r,n,o,s,a,l,u=0,c=null,f,p,h;if(e=yT.exec(t),e===null&&(e=wT.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(lA,"constructYamlTimestamp");function uA(t){return t.toISOString()}i(uA,"representYamlTimestamp"),bT.exports=new sA("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:aA,construct:lA,instanceOf:Date,represent:uA})});var ST=ce((hNe,kT)=>{"use strict";var cA=lt();function fA(t){return t==="<<"||t===null}i(fA,"resolveYamlMerge"),kT.exports=new cA("tag:yaml.org,2002:merge",{kind:"scalar",resolve:fA})});var DT=ce((mNe,ET)=>{"use strict";var Ji;try{TT=Kl,Ji=TT("buffer").Buffer}catch{}var pA=lt(),Ym=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
6
|
+
\r`;function hA(t){if(t===null)return!1;var e,r,n=0,o=t.length,s=Ym;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(hA,"resolveYamlBinary");function dA(t){var e,r,n=t.replace(/[\r\n=]/g,""),o=n.length,s=Ym,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),Ji?Ji.from?Ji.from(l):new Ji(l):l}i(dA,"constructYamlBinary");function mA(t){var e="",r=0,n,o,s=t.length,a=Ym;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(mA,"representYamlBinary");function gA(t){return Ji&&Ji.isBuffer(t)}i(gA,"isBinary"),ET.exports=new pA("tag:yaml.org,2002:binary",{kind:"scalar",resolve:hA,construct:dA,predicate:gA,represent:mA});var TT});var MT=ce((xNe,CT)=>{"use strict";var xA=lt(),yA=Object.prototype.hasOwnProperty,wA=Object.prototype.toString;function bA(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,wA.call(o)!=="[object Object]")return!1;for(s in o)if(yA.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(bA,"resolveYamlOmap");function vA(t){return t!==null?t:[]}i(vA,"constructYamlOmap"),CT.exports=new xA("tag:yaml.org,2002:omap",{kind:"sequence",resolve:bA,construct:vA})});var IT=ce((wNe,OT)=>{"use strict";var kA=lt(),SA=Object.prototype.toString;function TA(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],SA.call(n)!=="[object Object]"||(o=Object.keys(n),o.length!==1))return!1;s[e]=[o[0],n[o[0]]]}return!0}i(TA,"resolveYamlPairs");function EA(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(EA,"constructYamlPairs"),OT.exports=new kA("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:TA,construct:EA})});var _T=ce((vNe,PT)=>{"use strict";var DA=lt(),CA=Object.prototype.hasOwnProperty;function MA(t){if(t===null)return!0;var e,r=t;for(e in r)if(CA.call(r,e)&&r[e]!==null)return!1;return!0}i(MA,"resolveYamlSet");function OA(t){return t!==null?t:{}}i(OA,"constructYamlSet"),PT.exports=new DA("tag:yaml.org,2002:set",{kind:"mapping",resolve:MA,construct:OA})});var Rs=ce((SNe,RT)=>{"use strict";var IA=Qi();RT.exports=new IA({include:[Um()],implicit:[vT(),ST()],explicit:[DT(),MT(),IT(),_T()]})});var FT=ce((TNe,NT)=>{"use strict";var PA=lt();function _A(){return!0}i(_A,"resolveJavascriptUndefined");function RA(){}i(RA,"constructJavascriptUndefined");function NA(){return""}i(NA,"representJavascriptUndefined");function FA(t){return typeof t>"u"}i(FA,"isUndefined"),NT.exports=new PA("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:_A,construct:RA,predicate:FA,represent:NA})});var AT=ce((DNe,LT)=>{"use strict";var LA=lt();function AA(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(AA,"resolveJavascriptRegExp");function BA(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(BA,"constructJavascriptRegExp");function $A(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}i($A,"representJavascriptRegExp");function HA(t){return Object.prototype.toString.call(t)==="[object RegExp]"}i(HA,"isRegExp"),LT.exports=new LA("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:AA,construct:BA,predicate:HA,represent:$A})});var HT=ce((MNe,$T)=>{"use strict";var vp;try{BT=Kl,vp=BT("esprima")}catch{typeof window<"u"&&(vp=window.esprima)}var zA=lt();function WA(t){if(t===null)return!1;try{var e="("+t+")",r=vp.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(WA,"resolveJavascriptFunction");function qA(t){var e="("+t+")",r=vp.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(qA,"constructJavascriptFunction");function jA(t){return t.toString()}i(jA,"representJavascriptFunction");function UA(t){return Object.prototype.toString.call(t)==="[object Function]"}i(UA,"isFunction"),$T.exports=new zA("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:WA,construct:qA,predicate:UA,represent:jA});var BT});var cl=ce((INe,WT)=>{"use strict";var zT=Qi();WT.exports=zT.DEFAULT=new zT({include:[Rs()],explicit:[FT(),AT(),HT()]})});var a1=ce((PNe,fl)=>{"use strict";var En=Gi(),qT=Ps(),YA=QS(),jT=Rs(),VA=cl(),si=Object.prototype.hasOwnProperty,kp=1,UT=2,YT=3,Sp=4,Vm=1,GA=2,VT=3,QA=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,JA=/[\x85\u2028\u2029]/,XA=/[,\[\]\{\}]/,GT=/^(?:!|!!|![a-z\-]+!)$/i,QT=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function JT(t){return Object.prototype.toString.call(t)}i(JT,"_class");function on(t){return t===10||t===13}i(on,"is_EOL");function Xi(t){return t===9||t===32}i(Xi,"is_WHITE_SPACE");function jt(t){return t===9||t===32||t===10||t===13}i(jt,"is_WS_OR_EOL");function Ns(t){return t===44||t===91||t===93||t===123||t===125}i(Ns,"is_FLOW_INDICATOR");function ZA(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}i(ZA,"fromHexCode");function KA(t){return t===120?2:t===117?4:t===85?8:0}i(KA,"escapedHexLen");function e2(t){return 48<=t&&t<=57?t-48:-1}i(e2,"fromDecimalCode");function XT(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(XT,"simpleEscapeSequence");function t2(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}i(t2,"charFromCodepoint");var ZT=new Array(256),KT=new Array(256);for(Zi=0;Zi<256;Zi++)ZT[Zi]=XT(Zi)?1:0,KT[Zi]=XT(Zi);function r2(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||VA,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(r2,"State");function e1(t,e){return new qT(e,new YA(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}i(e1,"generateError");function se(t,e){throw e1(t,e)}i(se,"throwError");function Tp(t,e){t.onWarning&&t.onWarning.call(null,e1(t,e))}i(Tp,"throwWarning");var t1={YAML:i(function(e,r,n){var o,s,a;e.version!==null&&se(e,"duplication of %YAML directive"),n.length!==1&&se(e,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&se(e,"ill-formed argument of the YAML directive"),s=parseInt(o[1],10),a=parseInt(o[2],10),s!==1&&se(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&Tp(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:i(function(e,r,n){var o,s;n.length!==2&&se(e,"TAG directive accepts exactly two arguments"),o=n[0],s=n[1],GT.test(o)||se(e,"ill-formed tag handle (first argument) of the TAG directive"),si.call(e.tagMap,o)&&se(e,'there is a previously declared suffix for "'+o+'" tag handle'),QT.test(s)||se(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[o]=s},"handleTagDirective")};function ai(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||se(t,"expected valid JSON character");else QA.test(l)&&se(t,"the stream contains non-printable characters");t.result+=l}}i(ai,"captureSegment");function r1(t,e,r,n){var o,s,a,l;for(En.isObject(r)||se(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],si.call(e,s)||(e[s]=r[s],n[s]=!0)}i(r1,"mergeMappings");function Fs(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])&&se(t,"nested arrays are not supported inside keys"),typeof o=="object"&&JT(o[u])==="[object Object]"&&(o[u]="[object Object]");if(typeof o=="object"&&JT(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)r1(t,e,s[u],r);else r1(t,e,s,r);else!t.json&&!si.call(r,o)&&si.call(e,o)&&(t.line=a||t.line,t.position=l||t.position,se(t,"duplicated mapping key")),e[o]=s,delete r[o];return e}i(Fs,"storeMappingPair");function Gm(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++):se(t,"a line break is expected"),t.line+=1,t.lineStart=t.position}i(Gm,"readLineBreak");function tt(t,e,r){for(var n=0,o=t.input.charCodeAt(t.position);o!==0;){for(;Xi(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(on(o))for(Gm(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&&Tp(t,"deficient indentation"),n}i(tt,"skipSeparationSpace");function Ep(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||jt(r)))}i(Ep,"testDocumentSeparator");function Qm(t,e){e===1?t.result+=" ":e>1&&(t.result+=En.repeat(`
|
|
8
|
+
`,e-1))}i(Qm,"writeFoldedLines");function n2(t,e,r){var n,o,s,a,l,u,c,f,p=t.kind,h=t.result,d;if(d=t.input.charCodeAt(t.position),jt(d)||Ns(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(o=t.input.charCodeAt(t.position+1),jt(o)||r&&Ns(o)))return!1;for(t.kind="scalar",t.result="",s=a=t.position,l=!1;d!==0;){if(d===58){if(o=t.input.charCodeAt(t.position+1),jt(o)||r&&Ns(o))break}else if(d===35){if(n=t.input.charCodeAt(t.position-1),jt(n))break}else{if(t.position===t.lineStart&&Ep(t)||r&&Ns(d))break;if(on(d))if(u=t.line,c=t.lineStart,f=t.lineIndent,tt(t,!1,-1),t.lineIndent>=e){l=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=u,t.lineStart=c,t.lineIndent=f;break}}l&&(ai(t,s,a,!1),Qm(t,t.line-u),s=a=t.position,l=!1),Xi(d)||(a=t.position+1),d=t.input.charCodeAt(++t.position)}return ai(t,s,a,!1),t.result?!0:(t.kind=p,t.result=h,!1)}i(n2,"readPlainScalar");function i2(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(ai(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 on(r)?(ai(t,n,o,!0),Qm(t,tt(t,!1,e)),n=o=t.position):t.position===t.lineStart&&Ep(t)?se(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);se(t,"unexpected end of the stream within a single quoted scalar")}i(i2,"readSingleQuotedScalar");function o2(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 ai(t,r,t.position,!0),t.position++,!0;if(l===92){if(ai(t,r,t.position,!0),l=t.input.charCodeAt(++t.position),on(l))tt(t,!1,e);else if(l<256&&ZT[l])t.result+=KT[l],t.position++;else if((a=KA(l))>0){for(o=a,s=0;o>0;o--)l=t.input.charCodeAt(++t.position),(a=ZA(l))>=0?s=(s<<4)+a:se(t,"expected hexadecimal character");t.result+=t2(s),t.position++}else se(t,"unknown escape sequence");r=n=t.position}else on(l)?(ai(t,r,n,!0),Qm(t,tt(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Ep(t)?se(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}se(t,"unexpected end of the stream within a double quoted scalar")}i(o2,"readDoubleQuotedScalar");function s2(t,e){var r=!0,n,o=t.tag,s,a=t.anchor,l,u,c,f,p,h={},d,m,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(tt(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||se(t,"missed comma between flow collection entries"),m=d=g=null,c=f=!1,x===63&&(l=t.input.charCodeAt(t.position+1),jt(l)&&(c=f=!0,t.position++,tt(t,!0,e))),n=t.line,Ls(t,e,kp,!1,!0),m=t.tag,d=t.result,tt(t,!0,e),x=t.input.charCodeAt(t.position),(f||t.line===n)&&x===58&&(c=!0,x=t.input.charCodeAt(++t.position),tt(t,!0,e),Ls(t,e,kp,!1,!0),g=t.result),p?Fs(t,s,h,m,d,g):c?s.push(Fs(t,null,h,m,d,g)):s.push(d),tt(t,!0,e),x=t.input.charCodeAt(t.position),x===44?(r=!0,x=t.input.charCodeAt(++t.position)):r=!1}se(t,"unexpected end of the stream within a flow collection")}i(s2,"readFlowCollection");function a2(t,e){var r,n,o=Vm,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)Vm===o?o=p===43?VT:GA:se(t,"repeat of a chomping mode identifier");else if((f=e2(p))>=0)f===0?se(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?se(t,"repeat of an indentation width identifier"):(l=e+f-1,a=!0);else break;if(Xi(p)){do p=t.input.charCodeAt(++t.position);while(Xi(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!on(p)&&p!==0)}for(;p!==0;){for(Gm(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),on(p)){u++;continue}if(t.lineIndent<l){o===VT?t.result+=En.repeat(`
|
|
9
|
+
`,s?1+u:u):o===Vm&&s&&(t.result+=`
|
|
10
|
+
`);break}for(n?Xi(p)?(c=!0,t.result+=En.repeat(`
|
|
11
|
+
`,s?1+u:u)):c?(c=!1,t.result+=En.repeat(`
|
|
12
|
+
`,u+1)):u===0?s&&(t.result+=" "):t.result+=En.repeat(`
|
|
13
|
+
`,u):t.result+=En.repeat(`
|
|
14
|
+
`,s?1+u:u),s=!0,a=!0,u=0,r=t.position;!on(p)&&p!==0;)p=t.input.charCodeAt(++t.position);ai(t,r,t.position,!1)}return!0}i(a2,"readBlockScalar");function n1(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),!jt(a)));){if(l=!0,t.position++,tt(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,Ls(t,e,YT,!1,!0),s.push(t.result),tt(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)se(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(n1,"readBlockSequence");function l2(t,e,r){var n,o,s,a,l=t.tag,u=t.anchor,c={},f={},p=null,h=null,d=null,m=!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)&&jt(n))x===63?(m&&(Fs(t,c,f,p,h,null),p=h=d=null),g=!0,m=!0,o=!0):m?(m=!1,o=!0):se(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(Ls(t,r,UT,!1,!0))if(t.line===s){for(x=t.input.charCodeAt(t.position);Xi(x);)x=t.input.charCodeAt(++t.position);if(x===58)x=t.input.charCodeAt(++t.position),jt(x)||se(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Fs(t,c,f,p,h,null),p=h=d=null),g=!0,m=!1,o=!1,p=t.tag,h=t.result;else if(g)se(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=u,!0}else if(g)se(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)&&(Ls(t,e,Sp,!0,o)&&(m?h=t.result:d=t.result),m||(Fs(t,c,f,p,h,d,s,a),p=h=d=null),tt(t,!0,-1),x=t.input.charCodeAt(t.position)),t.lineIndent>e&&x!==0)se(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&Fs(t,c,f,p,h,null),g&&(t.tag=l,t.anchor=u,t.kind="mapping",t.result=c),g}i(l2,"readBlockMapping");function u2(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&&se(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)):se(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!jt(a);)a===33&&(n?se(t,"tag suffix cannot contain exclamation marks"):(o=t.input.slice(e-1,t.position+1),GT.test(o)||se(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),XA.test(s)&&se(t,"tag suffix cannot contain flow indicator characters")}return s&&!QT.test(s)&&se(t,"tag name cannot contain such characters: "+s),r?t.tag=s:si.call(t.tagMap,o)?t.tag=t.tagMap[o]+s:o==="!"?t.tag="!"+s:o==="!!"?t.tag="tag:yaml.org,2002:"+s:se(t,'undeclared tag handle "'+o+'"'),!0}i(u2,"readTagProperty");function c2(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&se(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!jt(r)&&!Ns(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&se(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}i(c2,"readAnchorProperty");function f2(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&&!jt(n)&&!Ns(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&se(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),si.call(t.anchorMap,r)||se(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],tt(t,!0,-1),!0}i(f2,"readAlias");function Ls(t,e,r,n,o){var s,a,l,u=1,c=!1,f=!1,p,h,d,m,g;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=a=l=Sp===r||YT===r,n&&tt(t,!0,-1)&&(c=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;u2(t)||c2(t);)tt(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||Sp===r)&&(kp===r||UT===r?m=e:m=e+1,g=t.position-t.lineStart,u===1?l&&(n1(t,g)||l2(t,g,m))||s2(t,m)?f=!0:(a&&a2(t,m)||i2(t,m)||o2(t,m)?f=!0:f2(t)?(f=!0,(t.tag!==null||t.anchor!==null)&&se(t,"alias node should not have any properties")):n2(t,m,kp===r)&&(f=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(f=l&&n1(t,g))),t.tag!==null&&t.tag!=="!")if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&se(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),p=0,h=t.implicitTypes.length;p<h;p+=1)if(d=t.implicitTypes[p],d.resolve(t.result)){t.result=d.construct(t.result),t.tag=d.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else si.call(t.typeMap[t.kind||"fallback"],t.tag)?(d=t.typeMap[t.kind||"fallback"][t.tag],t.result!==null&&d.kind!==t.kind&&se(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result)?(t.result=d.construct(t.result),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):se(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):se(t,"unknown tag !<"+t.tag+">");return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||f}i(Ls,"composeNode");function p2(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&&(tt(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&&!jt(a);)a=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),o=[],n.length<1&&se(t,"directive name must not be less than one character in length");a!==0;){for(;Xi(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!on(a));break}if(on(a))break;for(r=t.position;a!==0&&!jt(a);)a=t.input.charCodeAt(++t.position);o.push(t.input.slice(r,t.position))}a!==0&&Gm(t),si.call(t1,n)?t1[n](t,n,o):Tp(t,'unknown document directive "'+n+'"')}if(tt(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,tt(t,!0,-1)):s&&se(t,"directives end mark is expected"),Ls(t,t.lineIndent-1,Sp,!1,!0),tt(t,!0,-1),t.checkLineBreaks&&JA.test(t.input.slice(e,t.position))&&Tp(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Ep(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,tt(t,!0,-1));return}if(t.position<t.length-1)se(t,"end of the stream or a document separator is expected");else return}i(p2,"readDocument");function i1(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 r2(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,se(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;)p2(r);return r.documents}i(i1,"loadDocuments");function o1(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=i1(t,r);if(typeof e!="function")return n;for(var o=0,s=n.length;o<s;o+=1)e(n[o])}i(o1,"loadAll");function s1(t,e){var r=i1(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new qT("expected a single document in the stream, but found more")}}i(s1,"load");function h2(t,e,r){return typeof e=="object"&&e!==null&&typeof r>"u"&&(r=e,e=null),o1(t,e,En.extend({schema:jT},r))}i(h2,"safeLoadAll");function d2(t,e){return s1(t,En.extend({schema:jT},e))}i(d2,"safeLoad"),fl.exports.loadAll=o1,fl.exports.load=s1,fl.exports.safeLoadAll=h2,fl.exports.safeLoad=d2;var Zi});var I1=ce((RNe,Km)=>{"use strict";var pl=Gi(),hl=Ps(),m2=cl(),g2=Rs(),l1=Object.prototype.toString,u1=Object.prototype.hasOwnProperty,x2=9,dl=10,y2=13,w2=32,b2=33,v2=34,c1=35,k2=37,S2=38,T2=39,E2=42,f1=44,D2=45,p1=58,C2=61,M2=62,O2=63,I2=64,h1=91,d1=93,P2=96,m1=123,_2=124,g1=125,Ct={};Ct[0]="\\0",Ct[7]="\\a",Ct[8]="\\b",Ct[9]="\\t",Ct[10]="\\n",Ct[11]="\\v",Ct[12]="\\f",Ct[13]="\\r",Ct[27]="\\e",Ct[34]='\\"',Ct[92]="\\\\",Ct[133]="\\N",Ct[160]="\\_",Ct[8232]="\\L",Ct[8233]="\\P";var R2=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function N2(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&&u1.call(u.styleAliases,l)&&(l=u.styleAliases[l]),r[a]=l;return r}i(N2,"compileStyleMap");function x1(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 hl("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+pl.repeat("0",n-e.length)+e}i(x1,"encodeHex");function F2(t){this.schema=t.schema||m2,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=pl.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=N2(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(F2,"State");function y1(t,e){for(var r=pl.repeat(" ",e),n=0,o=-1,s="",a,l=t.length;n<l;)o=t.indexOf(`
|
|
16
|
+
`,n),o===-1?(a=t.slice(n),n=l):(a=t.slice(n,o+1),n=o+1),a.length&&a!==`
|
|
17
|
+
`&&(s+=r),s+=a;return s}i(y1,"indentString");function Jm(t,e){return`
|
|
18
|
+
`+pl.repeat(" ",t.indent*e)}i(Jm,"generateNextLine");function L2(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(L2,"testImplicitResolving");function Xm(t){return t===w2||t===x2}i(Xm,"isWhitespace");function As(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(As,"isPrintable");function A2(t){return As(t)&&!Xm(t)&&t!==65279&&t!==y2&&t!==dl}i(A2,"isNsChar");function w1(t,e){return As(t)&&t!==65279&&t!==f1&&t!==h1&&t!==d1&&t!==m1&&t!==g1&&t!==p1&&(t!==c1||e&&A2(e))}i(w1,"isPlainSafe");function B2(t){return As(t)&&t!==65279&&!Xm(t)&&t!==D2&&t!==O2&&t!==p1&&t!==f1&&t!==h1&&t!==d1&&t!==m1&&t!==g1&&t!==c1&&t!==S2&&t!==E2&&t!==b2&&t!==_2&&t!==C2&&t!==M2&&t!==T2&&t!==v2&&t!==k2&&t!==I2&&t!==P2}i(B2,"isPlainSafeFirst");function b1(t){var e=/^\n* /;return e.test(t)}i(b1,"needIndentIndicator");var v1=1,k1=2,S1=3,T1=4,Dp=5;function $2(t,e,r,n,o){var s,a,l,u=!1,c=!1,f=n!==-1,p=-1,h=B2(t.charCodeAt(0))&&!Xm(t.charCodeAt(t.length-1));if(e)for(s=0;s<t.length;s++){if(a=t.charCodeAt(s),!As(a))return Dp;l=s>0?t.charCodeAt(s-1):null,h=h&&w1(a,l)}else{for(s=0;s<t.length;s++){if(a=t.charCodeAt(s),a===dl)u=!0,f&&(c=c||s-p-1>n&&t[p+1]!==" ",p=s);else if(!As(a))return Dp;l=s>0?t.charCodeAt(s-1):null,h=h&&w1(a,l)}c=c||f&&s-p-1>n&&t[p+1]!==" "}return!u&&!c?h&&!o(t)?v1:k1:r>9&&b1(t)?Dp:c?T1:S1}i($2,"chooseScalarStyle");function H2(t,e,r,n){t.dump=(function(){if(e.length===0)return"''";if(!t.noCompatMode&&R2.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 L2(t,u)}switch(i(l,"testAmbiguity"),$2(e,a,t.indent,s,l)){case v1:return e;case k1:return"'"+e.replace(/'/g,"''")+"'";case S1:return"|"+E1(e,t.indent)+D1(y1(e,o));case T1:return">"+E1(e,t.indent)+D1(y1(z2(e,s),o));case Dp:return'"'+W2(e,s)+'"';default:throw new hl("impossible error: invalid scalar style")}})()}i(H2,"writeScalar");function E1(t,e){var r=b1(t)?String(e):"",n=t[t.length-1]===`
|
|
19
|
+
`,o=n&&(t[t.length-2]===`
|
|
20
|
+
`||t===`
|
|
21
|
+
`),s=o?"+":n?"":"-";return r+s+`
|
|
22
|
+
`}i(E1,"blockHeader");function D1(t){return t[t.length-1]===`
|
|
23
|
+
`?t.slice(0,-1):t}i(D1,"dropEndingNewline");function z2(t,e){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=t.indexOf(`
|
|
24
|
+
`);return c=c!==-1?c:t.length,r.lastIndex=c,C1(t.slice(0,c),e)})(),o=t[0]===`
|
|
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
|
+
`:"")+C1(u,e),o=s}return n}i(z2,"foldString");function C1(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
|
+
`+t.slice(o,s),o=s+1),a=l;return u+=`
|
|
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(C1,"foldLine");function W2(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+=x1((r-55296)*1024+n-56320+65536),s++;continue}o=Ct[r],e+=!o&&As(r)?t[s]:o||x1(r)}return e}i(W2,"escapeString");function q2(t,e,r){var n="",o=t.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Ki(t,e,r[s],!1,!1)&&(s!==0&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=o,t.dump="["+n+"]"}i(q2,"writeFlowSequence");function j2(t,e,r,n){var o="",s=t.tag,a,l;for(a=0,l=r.length;a<l;a+=1)Ki(t,e+1,r[a],!0,!0)&&((!n||a!==0)&&(o+=Jm(t,e)),t.dump&&dl===t.dump.charCodeAt(0)?o+="-":o+="- ",o+=t.dump);t.tag=s,t.dump=o||"[]"}i(j2,"writeBlockSequence");function U2(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],Ki(t,e,u,!1,!1)&&(t.dump.length>1024&&(f+="? "),f+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Ki(t,e,c,!1,!1)&&(f+=t.dump,n+=f));t.tag=o,t.dump="{"+n+"}"}i(U2,"writeFlowMapping");function Y2(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 hl("sortKeys must be a boolean or a function");for(l=0,u=a.length;l<u;l+=1)h="",(!n||l!==0)&&(h+=Jm(t,e)),c=a[l],f=r[c],Ki(t,e+1,c,!0,!0,!0)&&(p=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,p&&(t.dump&&dl===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,p&&(h+=Jm(t,e)),Ki(t,e+1,f,!0,p)&&(t.dump&&dl===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,o+=h));t.tag=s,t.dump=o||"{}"}i(Y2,"writeBlockMapping");function M1(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,l1.call(l.represent)==="[object Function]")n=l.represent(e,u);else if(u1.call(l.represent,u))n=l.represent[u](e,u);else throw new hl("!<"+l.tag+'> tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}i(M1,"detectType");function Ki(t,e,r,n,o,s){t.tag=null,t.dump=r,M1(t,r,!1)||M1(t,r,!0);var a=l1.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?(Y2(t,e,t.dump,o),c&&(t.dump="&ref_"+u+t.dump)):(U2(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?(j2(t,f,t.dump,o),c&&(t.dump="&ref_"+u+t.dump)):(q2(t,f,t.dump),c&&(t.dump="&ref_"+u+" "+t.dump))}else if(a==="[object String]")t.tag!=="?"&&H2(t,t.dump,e,s);else{if(t.skipInvalid)return!1;throw new hl("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}i(Ki,"writeNode");function V2(t,e){var r=[],n=[],o,s;for(Zm(t,r,n),o=0,s=n.length;o<s;o+=1)e.duplicates.push(r[n[o]]);e.usedDuplicates=new Array(s)}i(V2,"getDuplicateReferences");function Zm(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)Zm(t[o],e,r);else for(n=Object.keys(t),o=0,s=n.length;o<s;o+=1)Zm(t[n[o]],e,r)}i(Zm,"inspectNode");function O1(t,e){e=e||{};var r=new F2(e);return r.noRefs||V2(t,r),Ki(r,0,t,!0,!0)?r.dump+`
|
|
30
|
+
`:""}i(O1,"dump");function G2(t,e){return O1(t,pl.extend({schema:g2},e))}i(G2,"safeDump"),Km.exports.dump=O1,Km.exports.safeDump=G2});var _1=ce((FNe,Ye)=>{"use strict";var Cp=a1(),P1=I1();function Mp(t){return function(){throw new Error("Function "+t+" is deprecated and cannot be used.")}}i(Mp,"deprecated"),Ye.exports.Type=lt(),Ye.exports.Schema=Qi(),Ye.exports.FAILSAFE_SCHEMA=bp(),Ye.exports.JSON_SCHEMA=jm(),Ye.exports.CORE_SCHEMA=Um(),Ye.exports.DEFAULT_SAFE_SCHEMA=Rs(),Ye.exports.DEFAULT_FULL_SCHEMA=cl(),Ye.exports.load=Cp.load,Ye.exports.loadAll=Cp.loadAll,Ye.exports.safeLoad=Cp.safeLoad,Ye.exports.safeLoadAll=Cp.safeLoadAll,Ye.exports.dump=P1.dump,Ye.exports.safeDump=P1.safeDump,Ye.exports.YAMLException=Ps(),Ye.exports.MINIMAL_SCHEMA=bp(),Ye.exports.SAFE_SCHEMA=Rs(),Ye.exports.DEFAULT_SCHEMA=cl(),Ye.exports.scan=Mp("scan"),Ye.exports.parse=Mp("parse"),Ye.exports.compose=Mp("compose"),Ye.exports.addConstructor=Mp("addConstructor")});var N1=ce((ANe,R1)=>{"use strict";var Q2=_1();R1.exports=Q2});var F1=ce(sn=>{"use strict";var J2=sn&&sn.__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]})),X2=sn&&sn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Z2=sn&&sn.__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)&&J2(e,t,r);return X2(e,t),e};Object.defineProperty(sn,"__esModule",{value:!0}),sn.jsYaml=void 0;var K2=Z2(N1());sn.jsYaml=K2});var A1=ce(dr=>{"use strict";var eB=dr&&dr.__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]})),tB=dr&&dr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rB=dr&&dr.__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)&&eB(e,t,r);return tB(e,t),e};Object.defineProperty(dr,"__esModule",{value:!0}),dr.objectToYamlString=dr.yamlStringToObject=void 0;var L1=rB(F1());dr.yamlStringToObject=async(t,e={})=>L1.jsYaml.safeLoad(t),dr.objectToYamlString=async(t,e={})=>L1.jsYaml.safeDump(t)});var Y1=ce((jNe,U1)=>{"use strict";var Op=Object.prototype.hasOwnProperty,B1=Object.prototype.toString,$1=Object.defineProperty,H1=Object.getOwnPropertyDescriptor,z1=i(function(e){return typeof Array.isArray=="function"?Array.isArray(e):B1.call(e)==="[object Array]"},"isArray"),W1=i(function(e){if(!e||B1.call(e)!=="[object Object]")return!1;var r=Op.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Op.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;var o;for(o in e);return typeof o>"u"||Op.call(e,o)},"isPlainObject"),q1=i(function(e,r){$1&&r.name==="__proto__"?$1(e,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):e[r.name]=r.newValue},"setProperty"),j1=i(function(e,r){if(r==="__proto__")if(Op.call(e,r)){if(H1)return H1(e,r).value}else return;return e[r]},"getProperty");U1.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=j1(l,r),o=j1(e,r),l!==o&&(f&&o&&(W1(o)||(s=z1(o)))?(s?(s=!1,a=n&&z1(n)?n:[]):a=n&&W1(n)?n:{},q1(l,{name:r,newValue:t(f,a,o)})):typeof o<"u"&&q1(l,{name:r,newValue:o}));return l},"extend")});var MD=ce((fUe,gx)=>{(function(){var t;typeof gx<"u"?t=gx.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,d,m=!1,g,x=i(function(){return a[s++]},"nextArg"),y=i(function(){for(var S="";/\d/.test(o[l]);)S+=o[l++],f=o[l];return S.length>0?parseInt(S):null},"slurpNumber");l<u;++l)if(f=o[l],p)switch(p=!1,f=="."?(m=!1,f=o[++l]):f=="0"&&o[l+1]=="."?(m=!0,l+=2,f=o[l]):m=!0,g=y(),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":d=String(parseFloat(x()).toFixed(g||6)),c+=m?d:d.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 aM=ce(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.TokenData=void 0,Pn.parse=sy,Pn.compile=Pq,Pn.match=Rq,Pn.pathToRegexp=sM,Pn.stringify=Lq;var ry="/",ny=i(t=>t,"NOOP_VALUE"),iM=/^[$_\p{ID_Start}]$/u,iy=/^[$\u200c\u200d\p{ID_Continue}]$/u,Eh="https://git.new/pathToRegexpError",Mq={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function Oq(t){return t.replace(/[{}()\[\]+?!:*]/g,"\\$&")}i(Oq,"escapeText");function fn(t){return t.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}i(fn,"escape");function*Iq(t){let e=[...t],r=0;function n(){let o="";if(iM.test(e[++r]))for(o+=e[r];iy.test(e[++r]);)o+=e[r];else if(e[r]==='"'){let s=r;for(;r<e.length;){if(e[++r]==='"'){r++,s=0;break}e[r]==="\\"?o+=e[++r]:o+=e[r]}if(s)throw new TypeError(`Unterminated quote at ${s}: ${Eh}`)}if(!o)throw new TypeError(`Missing parameter name at ${r}: ${Eh}`);return o}for(i(n,"name");r<e.length;){let o=e[r],s=Mq[o];if(s)yield{type:s,index:r++,value:o};else if(o==="\\")yield{type:"ESCAPED",index:r++,value:e[r++]};else if(o===":"){let a=n();yield{type:"PARAM",index:r,value:a}}else if(o==="*"){let a=n();yield{type:"WILDCARD",index:r,value:a}}else yield{type:"CHAR",index:r,value:e[r++]}}return{type:"END",index:r,value:""}}i(Iq,"lexer");var oy=class{static{i(this,"Iter")}constructor(e){this.tokens=e}peek(){if(!this._peek){let e=this.tokens.next();this._peek=e.value}return this._peek}tryConsume(e){let r=this.peek();if(r.type===e)return this._peek=void 0,r.value}consume(e){let r=this.tryConsume(e);if(r!==void 0)return r;let{type:n,index:o}=this.peek();throw new TypeError(`Unexpected ${n} at ${o}, expected ${e}: ${Eh}`)}text(){let e="",r;for(;r=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)e+=r;return e}},ta=class{static{i(this,"TokenData")}constructor(e){this.tokens=e}};Pn.TokenData=ta;function sy(t,e={}){let{encodePath:r=ny}=e,n=new oy(Iq(t));function o(a){let l=[];for(;;){let u=n.text();u&&l.push({type:"text",value:r(u)});let c=n.tryConsume("PARAM");if(c){l.push({type:"param",name:c});continue}let f=n.tryConsume("WILDCARD");if(f){l.push({type:"wildcard",name:f});continue}if(n.tryConsume("{")){l.push({type:"group",tokens:o("}")});continue}return n.consume(a),l}}i(o,"consume");let s=o("END");return new ta(s)}i(sy,"parse");function Pq(t,e={}){let{encode:r=encodeURIComponent,delimiter:n=ry}=e,o=t instanceof ta?t:sy(t,e),s=oM(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(Pq,"compile");function oM(t,e,r){let n=t.map(o=>_q(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(oM,"tokensToFunction");function _q(t,e,r){if(t.type==="text")return()=>[t.value];if(t.type==="group"){let o=oM(t.tokens,e,r);return s=>{let[a,...l]=o(s);return l.length?[""]:[a]}}let n=r||ny;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(_q,"tokenToFunction");function Rq(t,e={}){let{decode:r=decodeURIComponent,delimiter:n=ry}=e,{regexp:o,keys:s}=sM(t,e),a=s.map(l=>r===!1?ny: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 d=s[h-1],m=a[h-1];p[d.name]=m(c[h])}return{path:f,params:p}},"match")}i(Rq,"match");function sM(t,e={}){let{delimiter:r=ry,end:n=!0,sensitive:o=!1,trailing:s=!0}=e,a=[],l=[],u=o?"":"i",f=(Array.isArray(t)?t:[t]).map(d=>d instanceof ta?d:sy(d,e));for(let{tokens:d}of f)for(let m of Dh(d,0,[])){let g=Nq(m,r,a);l.push(g)}let p=`^(?:${l.join("|")})`;return s&&(p+=`(?:${fn(r)}$)?`),p+=n?"$":`(?=${fn(r)}|$)`,{regexp:new RegExp(p,u),keys:a}}i(sM,"pathToRegexp");function*Dh(t,e,r){if(e===t.length)return yield r;let n=t[e];if(n.type==="group"){let o=r.slice();for(let s of Dh(n.tokens,0,o))yield*Dh(t,e+1,s)}else r.push(n);yield*Dh(t,e+1,r)}i(Dh,"flatten");function Nq(t,e,r){let n="",o="",s=!0;for(let a=0;a<t.length;a++){let l=t[a];if(l.type==="text"){n+=fn(l.value),o+=l.value,s||(s=l.value.includes(e));continue}if(l.type==="param"||l.type==="wildcard"){if(!s&&!o)throw new TypeError(`Missing text after "${l.name}": ${Eh}`);l.type==="param"?n+=`(${Fq(e,s?"":o)}+)`:n+="([\\s\\S]+)",r.push(l),o="",s=!1;continue}}return n}i(Nq,"sequenceToRegExp");function Fq(t,e){return e.length<2?t.length<2?`[^${fn(t+e)}]`:`(?:(?!${fn(t)})[^${fn(e)}])`:t.length<2?`(?:(?!${fn(e)})[^${fn(t)}])`:`(?:(?!${fn(e)}|${fn(t)})[\\s\\S])`}i(Fq,"negate");function Lq(t){return t.tokens.map(i(function e(r,n,o){if(r.type==="text")return Oq(r.value);if(r.type==="group")return`{${r.tokens.map(e).join("")}}`;let a=Aq(r.name)&&Bq(o[n+1])?r.name:JSON.stringify(r.name);if(r.type==="param")return`:${a}`;if(r.type==="wildcard")return`*${a}`;throw new TypeError(`Unexpected token: ${r}`)},"stringifyToken")).join("")}i(Lq,"stringify");function Aq(t){let[e,...r]=t;return iM.test(e)?r.every(n=>iy.test(n)):!1}i(Aq,"isNameSafe");function Bq(t){return t?.type!=="text"?!0:!iy.test(t.value[0])}i(Bq,"isNextNameSafe")});var yM=ce((Oy,Iy)=>{(function(t,e){typeof Oy=="object"&&typeof Iy<"u"?Iy.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.SweetScroll=e())})(Oy,function(){"use strict";var t=i(function(){return t=Object.assign||i(function(v){for(var D,M=1,F=arguments.length;M<F;M++){D=arguments[M];for(var te in D)Object.prototype.hasOwnProperty.call(D,te)&&(v[te]=D[te])}return v},"__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 E=!1;if(!e)return E;try{var v=window,D=Object.defineProperty({},"passive",{get:i(function(){E=!0},"get")});v.addEventListener("test",null,D),v.removeEventListener("test",null,D)}catch{}return E})(),o=i(function(E){return typeof E=="string"},"isString"),s=i(function(E){return typeof E=="function"},"isFunction"),a=i(function(E){return Array.isArray(E)},"isArray"),l=i(function(E){return!a(E)&&E-parseFloat(E)+1>=0},"isNumeric"),u=i(function(E,v){return E&&E.hasOwnProperty(v)},"hasProp"),c=e?window.requestAnimationFrame.bind(window):null,f=e?window.cancelAnimationFrame.bind(window):null,p=Math.cos,h=Math.sin,d=Math.pow,m=Math.sqrt,g=Math.PI,x={linear:i(function(E){return E},"linear"),easeInQuad:i(function(E,v,D,M,F){return M*(v/=F)*v+D},"easeInQuad"),easeOutQuad:i(function(E,v,D,M,F){return-M*(v/=F)*(v-2)+D},"easeOutQuad"),easeInOutQuad:i(function(E,v,D,M,F){return(v/=F/2)<1?M/2*v*v+D:-M/2*(--v*(v-2)-1)+D},"easeInOutQuad"),easeInCubic:i(function(E,v,D,M,F){return M*(v/=F)*v*v+D},"easeInCubic"),easeOutCubic:i(function(E,v,D,M,F){return M*((v=v/F-1)*v*v+1)+D},"easeOutCubic"),easeInOutCubic:i(function(E,v,D,M,F){return(v/=F/2)<1?M/2*v*v*v+D:M/2*((v-=2)*v*v+2)+D},"easeInOutCubic"),easeInQuart:i(function(E,v,D,M,F){return M*(v/=F)*v*v*v+D},"easeInQuart"),easeOutQuart:i(function(E,v,D,M,F){return-M*((v=v/F-1)*v*v*v-1)+D},"easeOutQuart"),easeInOutQuart:i(function(E,v,D,M,F){return(v/=F/2)<1?M/2*v*v*v*v+D:-M/2*((v-=2)*v*v*v-2)+D},"easeInOutQuart"),easeInQuint:i(function(E,v,D,M,F){return M*(v/=F)*v*v*v*v+D},"easeInQuint"),easeOutQuint:i(function(E,v,D,M,F){return M*((v=v/F-1)*v*v*v*v+1)+D},"easeOutQuint"),easeInOutQuint:i(function(E,v,D,M,F){return(v/=F/2)<1?M/2*v*v*v*v*v+D:M/2*((v-=2)*v*v*v*v+2)+D},"easeInOutQuint"),easeInSine:i(function(E,v,D,M,F){return-M*p(v/F*(g/2))+M+D},"easeInSine"),easeOutSine:i(function(E,v,D,M,F){return M*h(v/F*(g/2))+D},"easeOutSine"),easeInOutSine:i(function(E,v,D,M,F){return-M/2*(p(g*v/F)-1)+D},"easeInOutSine"),easeInExpo:i(function(E,v,D,M,F){return v===0?D:M*d(2,10*(v/F-1))+D},"easeInExpo"),easeOutExpo:i(function(E,v,D,M,F){return v===F?D+M:M*(-d(2,-10*v/F)+1)+D},"easeOutExpo"),easeInOutExpo:i(function(E,v,D,M,F){return v===0?D:v===F?D+M:(v/=F/2)<1?M/2*d(2,10*(v-1))+D:M/2*(-d(2,-10*--v)+2)+D},"easeInOutExpo"),easeInCirc:i(function(E,v,D,M,F){return-M*(m(1-(v/=F)*v)-1)+D},"easeInCirc"),easeOutCirc:i(function(E,v,D,M,F){return M*m(1-(v=v/F-1)*v)+D},"easeOutCirc"),easeInOutCirc:i(function(E,v,D,M,F){return(v/=F/2)<1?-M/2*(m(1-v*v)-1)+D:M/2*(m(1-(v-=2)*v)+1)+D},"easeInOutCirc")},y=i(function(E){return Array.prototype.slice.call(E?document.querySelectorAll(E):[])},"$$"),S=i(function(E){return y(E).shift()||null},"$"),T=i(function(E){return E instanceof Element},"isElement"),H=i(function(E){return E===window},"isWindow"),z=i(function(E){return E===document.documentElement||E===document.body},"isRootContainer"),C=i(function(E,v){if(T(v))return E===v;for(var D=y(v),M=D.length;--M>=0&&D[M]!==E;);return M>-1},"matches"),W=i(function(E){return Math.max(E.scrollHeight,E.clientHeight,E.offsetHeight)},"getHeight"),ee=i(function(E){return Math.max(E.scrollWidth,E.clientWidth,E.offsetWidth)},"getWidth"),V=i(function(E){return{width:ee(E),height:W(E)}},"getSize"),O=i(function(E){var v=H(E)||z(E);return{viewport:{width:v?Math.min(window.innerWidth,document.documentElement.clientWidth):E.clientWidth,height:v?window.innerHeight:E.clientHeight},size:v?{width:Math.max(ee(document.body),ee(document.documentElement)),height:Math.max(W(document.body),W(document.documentElement))}:V(E)}},"getViewportAndElementSizes"),_e={y:"scrollTop",x:"scrollLeft"},j={y:"pageYOffset",x:"pageXOffset"},I=i(function(E,v){return H(E)?E[j[v]]:E[_e[v]]},"getScroll"),R=i(function(E,v,D){if(H(E)){var M=D==="y";E.scrollTo(M?E.pageXOffset:v,M?v:E.pageYOffset)}else E[_e[D]]=v},"setScroll"),L=i(function(E,v){var D=E.getBoundingClientRect();if(D.width||D.height){var M={top:0,left:0},F=void 0;if(H(v)||z(v))F=document.documentElement,M.top=window[j.y],M.left=window[j.x];else{F=v;var te=F.getBoundingClientRect();M.top=te.top*-1+F[_e.y],M.left=te.left*-1+F[_e.x]}return{top:D.top+M.top-F.clientTop,left:D.left+M.left-F.clientLeft}}return D},"getOffset"),B=(function(){return e?"onwheel"in document?"wheel":"mousewheel":"wheel"})(),G=i(function(E){return E==="wheel"?B:E},"eventName"),X=i(function(E,v,D,M,F){D.split(" ").forEach(function(te){E[v](G(te),M,n?{passive:F}:!1)})},"apply"),pe=i(function(E,v,D,M){return X(E,"addEventListener",v,D,M)},"addEvent"),b=i(function(E,v,D,M){return X(E,"removeEventListener",v,D,M)},"removeEvent"),ye=/^(\+|-)=(\d+(?:\.\d+)?)$/,ke=i(function(E,v){var D={top:0,left:0,relative:!1};if(u(E,"top")||u(E,"left"))D=t({},D,E);else if(a(E))if(E.length>1)D.top=E[0],D.left=E[1];else if(E.length===1)D.top=v?E[0]:0,D.left=v?0:E[0];else return null;else if(l(E))v?D.top=E:D.left=E;else if(o(E)){var M=E.trim().match(ye);if(!M)return null;var F=M[1],te=parseInt(M[2],10);F==="+"?(D.top=v?te:0,D.left=v?0:te):(D.top=v?-te:0,D.left=v?0:-te),D.relative=!0}else return null;return D},"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",Ze="wheel touchstart touchmove",Yt=(function(){function E(v,D){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(te){var Le=M,Re=Le.$el,Se=Le.ctx;if(Se.start||(Se.start=te),!Se.progress||!Re){M.stop();return}var Lt=Se.opts,ct=Se.pos,Pt=Se.start,wr=Se.startPos,Nr=Se.easing,Vt=Lt.duration,or={top:"y",left:"x"},At=te-Pt,je=Math.min(1,Math.max(At/Vt,0));Object.keys(ct).forEach(function(Fr){var _=ct[Fr],$=wr[Fr],oe=_-$;if(oe!==0){var he=Nr(je,Vt*je,0,1,Vt);R(Re,Math.round($+oe*he),or[Fr])}}),At<=Vt?(M.hook(Lt,"step",je),Se.id=E.raf(M.loop)):M.stop(!0)},this.handleClick=function(te){for(var Le=M.opts,Re=te.target;Re&&Re!==document;Re=Re.parentNode)if(C(Re,Le.trigger)){var Se=JSON.parse(Re.getAttribute("data-scroll-options")||"{}"),Lt=Re.getAttribute("data-scroll"),ct=Lt||Re.getAttribute("href"),Pt=t({},Le,Se),wr=Pt.preventDefault,Nr=Pt.stopPropagation,Vt=Pt.vertical,or=Pt.horizontal;wr&&te.preventDefault(),Nr&&te.stopPropagation(),M.ctx.$trigger=Re,or&&Vt?M.to(ct,Pt):Vt?M.toTop(ct,Pt):or&&M.toLeft(ct,Pt);break}},this.handleStop=function(te){var Le=M.ctx,Re=Le.opts;Re&&Re.cancellable?(Le.cancel=!0,M.stop()):te.preventDefault()},this.opts=t({},k,v||{});var F=null;e&&(typeof D=="string"?F=S(D):D!=null?F=D:F=window),this.$el=F,F&&this.bind(!0,!1)}return i(E,"SweetScroll"),E.create=function(v,D){return new E(v,D)},E.prototype.to=function(v,D){if(e){var M=this,F=M.$el,te=M.ctx,Le=M.opts,Re=te.$trigger,Se=t({},Le,D||{}),Lt=Se.offset,ct=Se.vertical,Pt=Se.horizontal,wr=T(Se.header)?Se.header:S(Se.header),Nr=/^#/,Vt=o(v)&&Nr.test(v)?v:null;if(te.opts=Se,te.cancel=!1,te.hash=Vt,this.stop(),!!F){var or=ke(Lt,ct),At=ke(v,ct),je={top:0,left:0};if(At)if(At.relative){var Fr=I(F,ct?"y":"x");je.top=ct?Fr+At.top:At.top,je.left=ct?At.left:Fr+At.left}else je=At;else if(o(v)&&v!=="#"){var _=S(v);if(!_)return;je=L(_,F)}or&&(je.top+=or.top,je.left+=or.left),wr&&(je.top=Math.max(0,je.top-V(wr).height));var $=O(F),oe=$.viewport,he=$.size;if(je.top=ct?Math.max(0,Math.min(he.height-oe.height,je.top)):I(F,"y"),je.left=Pt?Math.max(0,Math.min(he.width-oe.width,je.left)):I(F,"x"),this.hook(Se,"before",je,Re)===!1){te.opts=null;return}te.pos=je,this.start(Se),this.bind(!1,!0)}}},E.prototype.toTop=function(v,D){this.to(v,t({},D||{},{vertical:!0,horizontal:!1}))},E.prototype.toLeft=function(v,D){this.to(v,t({},D||{},{vertical:!1,horizontal:!0}))},E.prototype.toElement=function(v,D){var M=this.$el;!e||!M||this.to(L(v,M),D||{})},E.prototype.stop=function(v){v===void 0&&(v=!1);var D=this,M=D.$el,F=D.ctx,te=F.pos;!M||!F.progress||(E.caf(F.id),F.progress=!1,F.start=0,F.id=0,v&&te&&(R(M,te.left,"x"),R(M,te.top,"y")),this.complete())},E.prototype.update=function(v){if(this.$el){var D=t({},this.opts,v);this.stop(),this.unbind(!0,!0),this.opts=D,this.bind(!0,!1)}},E.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},E.prototype.onBefore=function(v,D){return!0},E.prototype.onStep=function(v){},E.prototype.onAfter=function(v,D){},E.prototype.onCancel=function(){},E.prototype.onComplete=function(v){},E.prototype.start=function(v){var D=this.ctx;D.opts=v,D.progress=!0,D.easing=s(v.easing)?v.easing:x[v.easing];var M=this.$el,F={top:I(M,"y"),left:I(M,"x")};D.startPos=F,D.id=E.raf(this.loop)},E.prototype.complete=function(){var v=this,D=v.$el,M=v.ctx,F=M.hash,te=M.cancel,Le=M.opts,Re=M.pos,Se=M.$trigger;if(!(!D||!Le)){if(F!=null&&F!==window.location.hash){var Lt=Le.updateURL;e&&r&&Lt!==!1&&window.history[Lt==="replace"?"replaceState":"pushState"](null,"",F)}this.unbind(!1,!0),M.opts=null,M.$trigger=null,te?this.hook(Le,"cancel"):this.hook(Le,"after",Re,Se),this.hook(Le,"complete",te)}},E.prototype.hook=function(v,D){for(var M=[],F=2;F<arguments.length;F++)M[F-2]=arguments[F];var te,Le=v[D],Re,Se;return s(Le)&&(Re=Le.apply(this,M.concat([this]))),Se=(te=this)["on"+(D[0].toUpperCase()+D.slice(1))].apply(te,M),Re!==void 0?Re:Se},E.prototype.bind=function(v,D){var M=this,F=M.$el,te=M.ctx.opts;F&&(v&&pe(F,Ae,this.handleClick,!1),D&&pe(F,Ze,this.handleStop,te?te.cancellable:!0))},E.prototype.unbind=function(v,D){var M=this,F=M.$el,te=M.ctx.opts;F&&(v&&b(F,Ae,this.handleClick,!1),D&&b(F,Ze,this.handleStop,te?te.cancellable:!0))},E.raf=c,E.caf=f,E})();return Yt})});var eu=globalThis,ca=eu.ShadowRoot&&(eu.ShadyCSS===void 0||eu.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qh=Symbol(),fw=new WeakMap,Mo=class{static{i(this,"n")}constructor(e,r,n){if(this._$cssResult$=!0,n!==Qh)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(ca&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=fw.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&fw.set(r,e))}return e}toString(){return this.cssText}},Ee=i(t=>new Mo(typeof t=="string"?t:t+"",void 0,Qh),"r"),ze=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 Mo(r,t,Qh)},"i"),tu=i((t,e)=>{if(ca)t.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let n=document.createElement("style"),o=eu.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)}},"S"),fa=ca?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return Ee(r)})(t):t;var{is:xO,defineProperty:yO,getOwnPropertyDescriptor:wO,getOwnPropertyNames:bO,getOwnPropertySymbols:vO,getPrototypeOf:kO}=Object,ru=globalThis,pw=ru.trustedTypes,SO=pw?pw.emptyScript:"",TO=ru.reactiveElementPolyfillSupport,pa=i((t,e)=>t,"d"),Oo={toAttribute(t,e){switch(e){case Boolean:t=t?SO: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}},ha=i((t,e)=>!xO(t,e),"f"),hw={attribute:!0,type:String,converter:Oo,reflect:!1,useDefault:!1,hasChanged:ha};Symbol.metadata??=Symbol("metadata"),ru.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=hw){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&&yO(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){let{get:o,set:s}=wO(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)??hw}static _$Ei(){if(this.hasOwnProperty(pa("elementProperties")))return;let e=kO(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(pa("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pa("properties"))){let r=this.properties,n=[...bO(r),...vO(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(fa(o))}else e!==void 0&&r.push(fa(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 tu(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:Oo).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:Oo;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){if(e!==void 0){let o=this.constructor,s=this[e];if(n??=o.getPropertyOptions(e),!((n.hasChanged??ha)(s,r)||n.useDefault&&n.reflect&&s===this._$Ej?.get(e)&&!this.hasAttribute(o._$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[pa("elementProperties")]=new Map,Hr[pa("finalized")]=new Map,TO?.({ReactiveElement:Hr}),(ru.reactiveElementVersions??=[]).push("2.1.1");var Jh=globalThis,nu=Jh.trustedTypes,dw=nu?nu.createPolicy("lit-html",{createHTML:i(t=>t,"createHTML")}):void 0,Xh="$lit$",xn=`lit$${Math.random().toFixed(9).slice(2)}$`,Zh="?"+xn,EO=`<${Zh}>`,vi=document,da=i(()=>vi.createComment(""),"l"),ma=i(t=>t===null||typeof t!="object"&&typeof t!="function","c"),Kh=Array.isArray,mw=i(t=>Kh(t)||typeof t?.[Symbol.iterator]=="function","u"),ed=`[
|
|
31
|
+
\f\r]`,ga=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gw=/-->/g,xw=/>/g,ki=RegExp(`>|${ed}(?:([^\\s"'>=/]+)(${ed}*=${ed}*(?:[^
|
|
32
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),yw=/'/g,ww=/"/g,bw=/^(?:script|style|textarea|title)$/i,td=i(t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),"y"),Ke=td(1),rd=td(2),nd=td(3),Be=Symbol.for("lit-noChange"),He=Symbol.for("lit-nothing"),vw=new WeakMap,Si=vi.createTreeWalker(vi,129);function kw(t,e){if(!Kh(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return dw!==void 0?dw.createHTML(e):e}i(kw,"P");var Sw=i((t,e)=>{let r=t.length-1,n=[],o,s=e===2?"<svg>":e===3?"<math>":"",a=ga;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===ga?f[1]==="!--"?a=gw:f[1]!==void 0?a=xw:f[2]!==void 0?(bw.test(f[2])&&(o=RegExp("</"+f[2],"g")),a=ki):f[3]!==void 0&&(a=ki):a===ki?f[0]===">"?(a=o??ga,p=-1):f[1]===void 0?p=-2:(p=a.lastIndex-f[2].length,c=f[1],a=f[3]===void 0?ki:f[3]==='"'?ww:yw):a===ww||a===yw?a=ki:a===gw||a===xw?a=ga:(a=ki,o=void 0);let d=a===ki&&t[l+1].startsWith("/>")?" ":"";s+=a===ga?u+EO:p>=0?(n.push(c),u.slice(0,p)+Xh+u.slice(p)+xn+d):u+xn+(p===-2?l:d)}return[kw(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},"V"),xa=class t{static{i(this,"N")}constructor({strings:e,_$litType$:r},n){let o;this.parts=[];let s=0,a=0,l=e.length-1,u=this.parts,[c,f]=Sw(e,r);if(this.el=t.createElement(c,n),Si.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=Si.nextNode())!==null&&u.length<l;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Xh)){let h=f[a++],d=o.getAttribute(p).split(xn),m=/([.?@])?(.*)/.exec(h);u.push({type:1,index:s,name:m[2],strings:d,ctor:m[1]==="."?ou:m[1]==="?"?su:m[1]==="@"?au:Ei}),o.removeAttribute(p)}else p.startsWith(xn)&&(u.push({type:6,index:s}),o.removeAttribute(p));if(bw.test(o.tagName)){let p=o.textContent.split(xn),h=p.length-1;if(h>0){o.textContent=nu?nu.emptyScript:"";for(let d=0;d<h;d++)o.append(p[d],da()),Si.nextNode(),u.push({type:2,index:++s});o.append(p[h],da())}}}else if(o.nodeType===8)if(o.data===Zh)u.push({type:2,index:s});else{let p=-1;for(;(p=o.data.indexOf(xn,p+1))!==-1;)u.push({type:7,index:s}),p+=xn.length-1}s++}}static createElement(e,r){let n=vi.createElement("template");return n.innerHTML=e,n}};function Ti(t,e,r=t,n){if(e===Be)return e;let o=n!==void 0?r._$Co?.[n]:r._$Cl,s=ma(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=Ti(t,o._$AS(t,e.values),o,n)),e}i(Ti,"S");var iu=class{static{i(this,"M")}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);Si.currentNode=o;let s=Si.nextNode(),a=0,l=0,u=n[0];for(;u!==void 0;){if(a===u.index){let c;u.type===2?c=new Io(s,s.nextSibling,this,e):u.type===1?c=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(c=new lu(s,this,e)),this._$AV.push(c),u=n[++l]}a!==u?.index&&(s=Si.nextNode(),a++)}return Si.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++}},Io=class t{static{i(this,"R")}get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,o){this.type=2,this._$AH=He,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=Ti(this,e,r),ma(e)?e===He||e==null||e===""?(this._$AH!==He&&this._$AR(),this._$AH=He):e!==this._$AH&&e!==Be&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):mw(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!==He&&ma(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=xa.createElement(kw(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let s=new iu(o,this),a=s.u(this.options);s.p(r),this.T(a),this._$AH=s}}_$AC(e){let r=vw.get(e.strings);return r===void 0&&vw.set(e.strings,r=new xa(e)),r}k(e){Kh(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(da()),this.O(da()),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=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ei=class{static{i(this,"k")}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,o,s){this.type=1,this._$AH=He,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=He}_$AI(e,r=this,n,o){let s=this.strings,a=!1;if(s===void 0)e=Ti(this,e,r,0),a=!ma(e)||e!==this._$AH&&e!==Be,a&&(this._$AH=e);else{let l=e,u,c;for(e=s[0],u=0;u<s.length-1;u++)c=Ti(this,l[n+u],r,u),c===Be&&(c=this._$AH[u]),a||=!ma(c)||c!==this._$AH[u],c===He?e=He:e!==He&&(e+=(c??"")+s[u+1]),this._$AH[u]=c}a&&!o&&this.j(e)}j(e){e===He?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ou=class extends Ei{static{i(this,"H")}constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===He?void 0:e}},su=class extends Ei{static{i(this,"I")}constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==He)}},au=class extends Ei{static{i(this,"L")}constructor(e,r,n,o,s){super(e,r,n,o,s),this.type=5}_$AI(e,r=this){if((e=Ti(this,e,r,0)??He)===Be)return;let n=this._$AH,o=e===He&&n!==He||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==He&&(n===He||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)}},lu=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){Ti(this,e)}},id={M:Xh,P:xn,A:Zh,C:1,L:Sw,R:iu,D:mw,V:Ti,I:Io,H:Ei,N:su,U:au,B:ou,F:lu},DO=Jh.litHtmlPolyfillSupport;DO?.(xa,Io),(Jh.litHtmlVersions??=[]).push("3.3.1");var uu=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 Io(e.insertBefore(da(),s),s,void 0,r??{})}return o._$AI(t),o},"B");var od=globalThis,yn=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=uu(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Be}};yn._$litElement$=!0,yn.finalized=!0,od.litElementHydrateSupport?.({LitElement:yn});var CO=od.litElementPolyfillSupport;CO?.({LitElement:yn});var MO={_$AK:i((t,e,r)=>{t._$AK(e,r)},"_$AK"),_$AL:i(t=>t._$AL,"_$AL")};(od.litElementVersions??=[]).push("4.2.1");var OO=!1;var Me={};le(Me,{ObservableIntake:()=>Id,Observablemap:()=>Od,fromStreamWithBackpressure:()=>y_,rxjs:()=>Ho});var ie={};le(ie,{CumulativeDeferred:()=>pu,Deferred:()=>fu,cumulativeDefer:()=>PO,defer:()=>An,fromCallback:()=>AO,getFirstTrueOrFalse:()=>LO,map:()=>NO,rejectedPromise:()=>RO,resolvedPromise:()=>_O,timeoutAndContinue:()=>FO,timeoutWrap:()=>Tw});var fu=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"})}},An=i(()=>new fu,"defer");var pu=class{static{i(this,"CumulativeDeferred")}constructor(){this.accumulatedPromises=[],this.deferred=An(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}subDefer(){let e=An();return this.addPromise(e.promise),e}addPromise(e){this.accumulatedPromises.push(e)}},PO=i(()=>new pu,"cumulativeDefer");function _O(t){return Promise.resolve(t)}i(_O,"resolvedPromise");var RO=i(t=>Promise.reject(t),"rejectedPromise"),NO=i(async(t,e)=>Promise.all(t.map(e)),"map"),Tw=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"),FO=i(async(t,e=6e4)=>Tw(t,e,!1),"timeoutAndContinue"),LO=i(async t=>{let e=An();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 Ho={};le(Ho,{Observable:()=>be,ReplaySubject:()=>No,Subject:()=>Wt,Subscription:()=>zt,from:()=>Ur,fromEvent:()=>Ii,of:()=>Ta,ops:()=>x_});var sd=i(function(t,e){return sd=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])},sd(t,e)},"extendStatics");function it(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");sd(t,e);function r(){this.constructor=t}i(r,"__"),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}i(it,"__extends");var ad=i(function(){return ad=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"),ad.apply(this,arguments)},"__assign");function $O(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($O,"__rest");function HO(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(HO,"__decorate");function zO(t,e){return function(r,n){e(r,n,t)}}i(zO,"__param");function WO(t,e,r,n,o,s){function a(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}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,d=r.length-1;d>=0;d--){var m={};for(var g in n)m[g]=g==="access"?{}:n[g];for(var g in n.access)m.access[g]=n.access[g];m.addInitializer=function(y){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(y||null))};var x=(0,r[d])(l==="accessor"?{get:f.get,set:f.set}:f[u],m);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(WO,"__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 jO(t){return typeof t=="symbol"?t:"".concat(t)}i(jO,"__propKey");function UO(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(UO,"__setFunctionName");function YO(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}i(YO,"__metadata");function cd(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(cd,"__awaiter");function wa(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(wa,"__generator");var ld=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 VO(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ld(e,t,r)}i(VO,"__exportStar");function bt(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(bt,"__values");function gt(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(gt,"__read");function GO(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(gt(arguments[e]));return t}i(GO,"__spread");function QO(){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(QO,"__spreadArrays");function Ht(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(Ht,"__spreadArray");function wn(t){return this instanceof wn?(this.v=t,this):new wn(t)}i(wn,"__await");function fd(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(d){return function(m){return Promise.resolve(m).then(d,p)}}function l(d,m){n[d]&&(o[d]=function(g){return new Promise(function(x,y){s.push([d,g,x,y])>1||u(d,g)})},m&&(o[d]=m(o[d])))}function u(d,m){try{c(n[d](m))}catch(g){h(s[0][3],g)}}function c(d){d.value instanceof wn?Promise.resolve(d.value.v).then(f,p):h(s[0][2],d)}function f(d){u("next",d)}function p(d){u("throw",d)}function h(d,m){d(m),s.shift(),s.length&&u(s[0][0],s[0][1])}}i(fd,"__asyncGenerator");function JO(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:wn(t[o](a)),done:!1}:s?s(a):a}:s}}i(JO,"__asyncDelegator");function pd(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 bt=="function"?bt(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(pd,"__asyncValues");function XO(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}i(XO,"__makeTemplateObject");var ZO=Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e},ud=i(function(t){return ud=Object.getOwnPropertyNames||function(e){var r=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[r.length]=n);return r},ud(t)},"ownKeys");function KO(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=ud(t),n=0;n<r.length;n++)r[n]!=="default"&&ld(e,t,r[n]);return ZO(e,t),e}i(KO,"__importStar");function eI(t){return t&&t.__esModule?t:{default:t}}i(eI,"__importDefault");function tI(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(tI,"__classPrivateFieldGet");function rI(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(rI,"__classPrivateFieldSet");function nI(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(nI,"__classPrivateFieldIn");function iI(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(iI,"__addDisposableResource");var oI=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 sI(t){function e(s){t.error=t.hasError?new oI(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(sI,"__disposeResources");function aI(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(aI,"__rewriteRelativeImportExtension");var LU={__extends:it,__assign:ad,__rest:$O,__decorate:HO,__param:zO,__esDecorate:WO,__runInitializers:qO,__propKey:jO,__setFunctionName:UO,__metadata:YO,__awaiter:cd,__generator:wa,__createBinding:ld,__exportStar:VO,__values:bt,__read:gt,__spread:GO,__spreadArrays:QO,__spreadArray:Ht,__await:wn,__asyncGenerator:fd,__asyncDelegator:JO,__asyncValues:pd,__makeTemplateObject:XO,__importStar:KO,__importDefault:eI,__classPrivateFieldGet:tI,__classPrivateFieldSet:rI,__classPrivateFieldIn:nI,__addDisposableResource:iI,__disposeResources:sI,__rewriteRelativeImportExtension:aI};function de(t){return typeof t=="function"}i(de,"isFunction");function hu(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(hu,"createErrorClass");var ba=hu(function(t){return i(function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
37
33
|
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
38
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function Dr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var kt=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=St(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(d){t={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(de(c))try{c()}catch(d){i=d instanceof za?d.errors:[d]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=St(f),h=p.next();!h.done;h=p.next()){var m=h.value;try{Fw(m)}catch(d){i=i??[],d instanceof za?i=pr(pr([],Bt(i)),Bt(d.errors)):i.push(d)}}}catch(d){n={error:d}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new za(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Fw(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Dr(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Dr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),rd=kt.EMPTY;function Ju(e){return e instanceof kt||e&&"closed"in e&&de(e.remove)&&de(e.add)&&de(e.unsubscribe)}function Fw(e){de(e)?e():e.unsubscribe()}var hr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Wi={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Wi.delegate;return o?.setTimeout?o.setTimeout.apply(o,pr([e,t],Bt(r))):setTimeout.apply(void 0,pr([e,t],Bt(r)))},clearTimeout:function(e){var t=Wi.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Xu(e){Wi.setTimeout(function(){var t=hr.onUnhandledError;if(t)t(e);else throw e})}function Ur(){}var Nw=(function(){return nd("C",void 0,void 0)})();function Lw(e){return nd("E",void 0,e)}function Rw(e){return nd("N",e,void 0)}function nd(e,t,r){return{kind:e,value:t,error:r}}var Bo=null;function Yi(e){if(hr.useDeprecatedSynchronousErrorHandling){var t=!Bo;if(t&&(Bo={errorThrown:!1,error:null}),e(),t){var r=Bo,n=r.errorThrown,o=r.error;if(Bo=null,n)throw o}}else e()}function Bw(e){hr.useDeprecatedSynchronousErrorHandling&&Bo&&(Bo.errorThrown=!0,Bo.error=e)}var $o=(function(e){xt(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Ju(r)&&r.add(n)):n.destination=cN,n}return t.create=function(r,n,o){return new ja(r,n,o)},t.prototype.next=function(r){this.isStopped?id(Rw(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?id(Lw(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?id(Nw,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(kt),aN=Function.prototype.bind;function od(e,t){return aN.call(e,t)}var lN=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Zu(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Zu(n)}else Zu(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Zu(r)}},e})(),ja=(function(e){xt(t,e);function t(r,n,o){var i=e.call(this)||this,s;if(de(r)||!r)s={next:r??void 0,error:n??void 0,complete:o??void 0};else{var a;i&&hr.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&od(r.next,a),error:r.error&&od(r.error,a),complete:r.complete&&od(r.complete,a)}):s=r}return i.destination=new lN(s),i}return t})($o);function Zu(e){hr.useDeprecatedSynchronousErrorHandling?Bw(e):Xu(e)}function uN(e){throw e}function id(e,t){var r=hr.onStoppedNotification;r&&Wi.setTimeout(function(){return r(e,t)})}var cN={closed:!0,next:Ur,error:uN,complete:Ur};var Uo=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function qa(e){return e}function fN(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sd(e)}function sd(e){return e.length===0?qa:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var Ee=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=hN(t)?t:new ja(t,r,n);return Yi(function(){var s=o,a=s.operator,l=s.source;i.add(a?a.call(i,l):l?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=$w(r),new r(function(o,i){var s=new ja({next:function(a){try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Uo]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return sd(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=$w(t),new t(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},e.create=function(t){return new e(t)},e})();function $w(e){var t;return(t=e??hr.Promise)!==null&&t!==void 0?t:Promise}function pN(e){return e&&de(e.next)&&de(e.error)&&de(e.complete)}function hN(e){return e&&e instanceof $o||pN(e)&&Ju(e)}function mN(e){return de(e?.lift)}function Fe(e){return function(t){if(mN(t))return t.lift(function(r){try{return e(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ne(e,t,r,n,o){return new Uw(e,t,r,n,o)}var Uw=(function(e){xt(t,e);function t(r,n,o,i,s,a){var l=e.call(this,r)||this;return l.onFinalize=s,l.shouldUnsubscribe=a,l._next=n?function(u){try{n(u)}catch(c){r.error(c)}}:e.prototype._next,l._error=i?function(u){try{i(u)}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=o?function(){try{o()}catch(u){r.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})($o);var ad=Qu(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var $t=(function(e){xt(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new ld(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new ad},t.prototype.next=function(r){var n=this;Yi(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=St(n.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;Yi(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;Yi(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?rd:(this.currentObservers=null,a.push(r),new kt(function(){n.currentObservers=null,Dr(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new Ee;return r.source=this,r},t.create=function(r,n){return new ld(r,n)},t})(Ee),ld=(function(e){xt(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:rd},t})($t);var Ha={now:function(){return(Ha.delegate||Date).now()},delegate:void 0};var Vi=(function(e){xt(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Ha);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,l=n._windowTime;o||(i.push(r),!s&&i.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),l=0;l<a.length&&!r.closed;l+=i?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var l=o.now(),u=0,c=1;c<i.length&&i[c]<=l;c+=2)u=c;u&&i.splice(0,u+1)}},t})($t);var ud=(function(e){xt(t,e);function t(r,n){return e.call(this)||this}return t.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},t})(kt);var Wa={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Wa.delegate;return o?.setInterval?o.setInterval.apply(o,pr([e,t],Bt(r))):setInterval.apply(void 0,pr([e,t],Bt(r)))},clearInterval:function(e){var t=Wa.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var cd=(function(e){xt(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return t.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Wa.setInterval(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Wa.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(s){o=!0,i=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Dr(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(ud);var Ya=(function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=Ha.now,e})();var fd=(function(e){xt(t,e);function t(r,n){n===void 0&&(n=Ya.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},t})(Ya);var Bn=new fd(cd),pd=Bn;function Ku(e){return e&&de(e.schedule)}function hd(e){return e[e.length-1]}function KQ(e){return de(hd(e))?e.pop():void 0}function $n(e){return Ku(hd(e))?e.pop():void 0}function eJ(e,t){return typeof hd(e)=="number"?e.pop():t}var Gi=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function ec(e){return de(e?.then)}function tc(e){return de(e[Uo])}function rc(e){return Symbol.asyncIterator&&de(e?.[Symbol.asyncIterator])}function nc(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function dN(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oc=dN();function ic(e){return de(e?.[oc])}function sc(e){return ed(this,arguments,function(){var r,n,o,i;return Ua(this,function(s){switch(s.label){case 0:r=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,yn(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,yn(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,yn(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function ac(e){return de(e?.getReader)}function tt(e){if(e instanceof Ee)return e;if(e!=null){if(tc(e))return gN(e);if(Gi(e))return xN(e);if(ec(e))return yN(e);if(rc(e))return zw(e);if(ic(e))return bN(e);if(ac(e))return wN(e)}throw nc(e)}function gN(e){return new Ee(function(t){var r=e[Uo]();if(de(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function xN(e){return new Ee(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function yN(e){return new Ee(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Xu)})}function bN(e){return new Ee(function(t){var r,n;try{for(var o=St(e),i=o.next();!i.done;i=o.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()})}function zw(e){return new Ee(function(t){vN(e,t).catch(function(r){return t.error(r)})})}function wN(e){return zw(sc(e))}function vN(e,t){var r,n,o,i;return Km(this,void 0,void 0,function(){var s,a;return Ua(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=td(e),l.label=1;case 1:return[4,r.next()];case 2:if(n=l.sent(),!!n.done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),o={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Ut(e,t,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(i),!o)return i}function Qi(e,t){return t===void 0&&(t=0),Fe(function(r,n){r.subscribe(Ne(n,function(o){return Ut(n,e,function(){return n.next(o)},t)},function(){return Ut(n,e,function(){return n.complete()},t)},function(o){return Ut(n,e,function(){return n.error(o)},t)}))})}function Ji(e,t){return t===void 0&&(t=0),Fe(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function jw(e,t){return tt(e).pipe(Ji(t),Qi(t))}function qw(e,t){return tt(e).pipe(Ji(t),Qi(t))}function Hw(e,t){return new Ee(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Ww(e,t){return new Ee(function(r){var n;return Ut(r,t,function(){n=e[oc](),Ut(r,t,function(){var o,i,s;try{o=n.next(),i=o.value,s=o.done}catch(a){r.error(a);return}s?r.complete():r.next(i)},0,!0)}),function(){return de(n?.return)&&n.return()}})}function lc(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ee(function(r){Ut(r,t,function(){var n=e[Symbol.asyncIterator]();Ut(r,t,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Yw(e,t){return lc(sc(e),t)}function md(e,t){if(e!=null){if(tc(e))return jw(e,t);if(Gi(e))return Hw(e,t);if(ec(e))return qw(e,t);if(rc(e))return lc(e,t);if(ic(e))return Ww(e,t);if(ac(e))return Yw(e,t)}throw nc(e)}function bn(e,t){return t?md(e,t):tt(e)}function Va(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=$n(e);return bn(e,r)}function Vw(e){return e instanceof Date&&!isNaN(e)}function zr(e,t){return Fe(function(r,n){var o=0;r.subscribe(Ne(n,function(i){n.next(e.call(t,i,o++))}))})}var SN=Array.isArray;function kN(e,t){return SN(t)?e.apply(void 0,pr([],Bt(t))):e(t)}function Gw(e){return zr(function(t){return kN(e,t)})}function Qw(e,t,r,n,o,i,s,a){var l=[],u=0,c=0,f=!1,p=function(){f&&!l.length&&!u&&t.complete()},h=function(d){return u<n?m(d):l.push(d)},m=function(d){i&&t.next(d),u++;var g=!1;tt(r(d,c++)).subscribe(Ne(t,function(y){o?.(y),i?h(y):t.next(y)},function(){g=!0},void 0,function(){if(g)try{u--;for(var y=function(){var S=l.shift();s?Ut(t,s,function(){return m(S)}):m(S)};l.length&&u<n;)y();p()}catch(S){t.error(S)}}))};return e.subscribe(Ne(t,h,function(){f=!0,p()})),function(){a?.()}}function zo(e,t,r){return r===void 0&&(r=1/0),de(t)?zo(function(n,o){return zr(function(i,s){return t(n,i,o,s)})(tt(e(n,o)))},r):(typeof t=="number"&&(r=t),Fe(function(n,o){return Qw(n,o,e,r)}))}function uc(e){return e===void 0&&(e=1/0),zo(qa,e)}function cc(){return uc(1)}function fc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return cc()(bn(e,$n(e)))}var TN=["addListener","removeListener"],EN=["addEventListener","removeEventListener"],AN=["on","off"];function Cr(e,t,r,n){if(de(r)&&(n=r,r=void 0),n)return Cr(e,t,r).pipe(Gw(n));var o=Bt(ON(e)?EN.map(function(a){return function(l){return e[a](t,l,r)}}):DN(e)?TN.map(Jw(e,t)):CN(e)?AN.map(Jw(e,t)):[],2),i=o[0],s=o[1];if(!i&&Gi(e))return zo(function(a){return Cr(a,t,r)})(tt(e));if(!i)throw new TypeError("Invalid event target");return new Ee(function(a){var l=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return a.next(1<u.length?u:u[0])};return i(l),function(){return s(l)}})}function Jw(e,t){return function(r){return function(n){return e[r](t,n)}}}function DN(e){return de(e.addListener)&&de(e.removeListener)}function CN(e){return de(e.on)&&de(e.off)}function ON(e){return de(e.addEventListener)&&de(e.removeEventListener)}function dd(e,t,r){e===void 0&&(e=0),r===void 0&&(r=pd);var n=-1;return t!=null&&(Ku(t)?r=t:n=t),new Ee(function(o){var i=Vw(e)?+e-r.now():e;i<0&&(i=0);var s=0;return r.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function Xi(e,t){return Fe(function(r,n){var o=0;r.subscribe(Ne(n,function(i){return e.call(t,i,o++)&&n.next(i)}))})}function pc(e){return Fe(function(t,r){var n=[];return t.subscribe(Ne(r,function(o){return n.push(o)},function(){r.next(n),r.complete()})),tt(e).subscribe(Ne(r,function(){var o=n;n=[],r.next(o)},Ur)),function(){n=null}})}function hc(e,t){return t===void 0&&(t=null),t=t??e,Fe(function(r,n){var o=[],i=0;r.subscribe(Ne(n,function(s){var a,l,u,c,f=null;i++%t===0&&o.push([]);try{for(var p=St(o),h=p.next();!h.done;h=p.next()){var m=h.value;m.push(s),e<=m.length&&(f=f??[],f.push(m))}}catch(y){a={error:y}}finally{try{h&&!h.done&&(l=p.return)&&l.call(p)}finally{if(a)throw a.error}}if(f)try{for(var d=St(f),g=d.next();!g.done;g=d.next()){var m=g.value;Dr(o,m),n.next(m)}}catch(y){u={error:y}}finally{try{g&&!g.done&&(c=d.return)&&c.call(d)}finally{if(u)throw u.error}}},function(){var s,a;try{for(var l=St(o),u=l.next();!u.done;u=l.next()){var c=u.value;n.next(c)}}catch(f){s={error:f}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}n.complete()},void 0,function(){o=null}))})}function mc(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=(t=$n(n))!==null&&t!==void 0?t:Bn,s=(r=n[0])!==null&&r!==void 0?r:null,a=n[1]||1/0;return Fe(function(l,u){var c=[],f=!1,p=function(d){var g=d.buffer,y=d.subs;y.unsubscribe(),Dr(c,d),u.next(g),f&&h()},h=function(){if(c){var d=new kt;u.add(d);var g=[],y={buffer:g,subs:d};c.push(y),Ut(d,i,function(){return p(y)},e)}};s!==null&&s>=0?Ut(u,i,h,s,!0):f=!0,h();var m=Ne(u,function(d){var g,y,S=c.slice();try{for(var k=St(S),N=k.next();!N.done;N=k.next()){var R=N.value,T=R.buffer;T.push(d),a<=T.length&&p(R)}}catch($){g={error:$}}finally{try{N&&!N.done&&(y=k.return)&&y.call(k)}finally{if(g)throw g.error}}},function(){for(;c?.length;)u.next(c.shift().buffer);m?.unsubscribe(),u.complete(),u.unsubscribe()},void 0,function(){return c=null});l.subscribe(m)})}function Zi(e){return Fe(function(t,r){var n=!1,o=null,i=null,s=function(){if(i?.unsubscribe(),i=null,n){n=!1;var a=o;o=null,r.next(a)}};t.subscribe(Ne(r,function(a){i?.unsubscribe(),n=!0,o=a,i=Ne(r,s,Ur),tt(e(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function Ki(e,t){return t===void 0&&(t=Bn),Fe(function(r,n){var o=null,i=null,s=null,a=function(){if(o){o.unsubscribe(),o=null;var u=i;i=null,n.next(u)}};function l(){var u=s+e,c=t.now();if(c<u){o=this.schedule(void 0,u-c),n.add(o);return}a()}r.subscribe(Ne(n,function(u){i=u,s=t.now(),o||(o=t.schedule(l,e),n.add(o))},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function es(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=$n(e);return Fe(function(n,o){(r?fc(e,n,r):fc(e,n)).subscribe(o)})}function ts(e){return Fe(function(t,r){tt(e).subscribe(Ne(r,function(){return r.complete()},Ur)),!r.closed&&t.subscribe(r)})}function dc(e,t){return Fe(function(r,n){var o=t??{},i=o.leading,s=i===void 0?!0:i,a=o.trailing,l=a===void 0?!1:a,u=!1,c=null,f=null,p=!1,h=function(){f?.unsubscribe(),f=null,l&&(g(),p&&n.complete())},m=function(){f=null,p&&n.complete()},d=function(y){return f=tt(e(y)).subscribe(Ne(n,h,m))},g=function(){if(u){u=!1;var y=c;c=null,n.next(y),!p&&d(y)}};r.subscribe(Ne(n,function(y){u=!0,c=y,!(f&&!f.closed)&&(s?g():d(y))},function(){p=!0,!(l&&u&&f&&!f.closed)&&n.complete()}))})}function rs(e,t,r){t===void 0&&(t=Bn);var n=dd(e,t);return dc(function(){return n},r)}var pR={buffer:pc,bufferCount:hc,bufferTime:mc,debounce:Zi,debounceTime:Ki,filter:Xi,map:zr,startWith:es,takeUntil:ts,throttleTime:rs};var gd=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(t,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let o=Cr(t,r),i=new $t;o.subscribe(i);let s={subject:i,eventRef:t,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(t,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let i={subject:new $t,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var xd=class{constructor(){this.observableFunctions={next:t=>{},complete:t=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new Ee(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=Pe.defer(),this.completed=this.completedDeffered.promise}setObservable(t){this.observable=t}push(t){this.buffered?this.payloadBuffer.push(t):this.internalPush(t)}pushMany(t){for(let r of t)this.push(r)}setGenerator(t){this.generator=t}makeBuffered(){this.buffered=!0}subscribe(...t){return this.observable.subscribe(...t)}request(t){if(t!==0)for(let r=0;r!==t;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(t){this.observableFunctions.next(t)}};function hR(e){return new Ee(t=>{let r=()=>e.pause(),n=()=>process.nextTick(()=>e.resume()),o=i=>{r(),t.next(i),n()};return e.on("data",o),e.on("error",i=>t.error(i)),e.on("end",()=>t.complete()),e.on("close",()=>t.complete()),()=>{e.removeListener("data",o),e.removeListener("error",t.error),e.removeListener("end",t.complete),e.removeListener("close",t.complete)}})}var mR={attribute:!0,type:String,converter:ji,reflect:!1,hasChanged:Fa},Xw=(e=mR,t,r)=>{let{kind:n,metadata:o}=r,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),n==="setter"&&((e=Object.create(e)).wrapped=!0),i.set(r.name,e),n==="accessor"){let{name:s}=r;return{set(a){let l=t.get.call(this);t.set.call(this,a),this.requestUpdate(s,l,e)},init(a){return a!==void 0&&this.C(s,void 0,e,a),a}}}if(n==="setter"){let{name:s}=r;return function(a){let l=this[s];t.call(this,a),this.requestUpdate(s,l,e)}}throw Error("Unsupported decorator location: "+n)};function mr(e){return(t,r)=>typeof r=="object"?Xw(e,t,r):((n,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,n),s?Object.getOwnPropertyDescriptor(o,i):void 0})(e,t,r)}var mn={};te(mn,{DomTools:()=>hn,TypedRequest:()=>Ul,breakpoints:()=>pn,css:()=>_m,elementBasic:()=>Da,plugins:()=>Im});var Da={};te(Da,{setup:()=>x7,staticStyles:()=>d7,styles:()=>g7});var ql={};te(ql,{DeesComms:()=>Ax});var ce={};te(ce,{Timeout:()=>yc,delayFor:()=>wn,delayForRandom:()=>SR});var ue={};te(ue,{CumulativeDeferred:()=>xc,Deferred:()=>gc,cumulativeDefer:()=>dR,defer:()=>jo,fromCallback:()=>vR,getFirstTrueOrFalse:()=>wR,map:()=>yR,rejectedPromise:()=>xR,resolvedPromise:()=>gR,timeoutAndContinue:()=>bR,timeoutWrap:()=>Zw});var gc=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},jo=()=>new gc;var xc=class{constructor(){this.accumulatedPromises=[],this.deferred=jo(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(t){this.accumulatedPromises.push(t)}},dR=()=>new xc;var gR=e=>Promise.resolve(e),xR=e=>Promise.reject(e),yR=async(e,t)=>{let r=[],n=[];for(let o of e){let i=t(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},Zw=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),bR=async(e,t=6e4)=>Zw(e,t,!1),wR=async e=>{let t=jo();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise},vR=e=>new Promise((t,r)=>{e((n,o)=>{n?r(n):t(o)})});var wn=async(e,t,r=!1)=>(await new yc(e,null,r).promise,t),SR=async(e,t,r,n=!1)=>(await wn(Math.random()*(t-e)+e,null,n),r),yc=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=jo(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},t),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let t=this.started+this.timeoutInMillis-Date.now();return t>0?t:0}};var Un={};var lt={};te(lt,{TypedHandler:()=>yx,TypedRequest:()=>Ul,TypedResponseError:()=>En,TypedRouter:()=>$l,TypedTarget:()=>bx,VirtualStream:()=>tn});var bt={};te(bt,{AsyncExecutionStack:()=>jd,BackpressuredArray:()=>qd,FastMap:()=>cl,Interest:()=>fl,InterestMap:()=>Hd,LimitedArray:()=>Wd,LoopTracker:()=>Yd,ObjectMap:()=>Zo,Stringmap:()=>Vd,TimedAggregtor:()=>Gd,Tree:()=>Qd,uni:()=>A1});var rr={};te(rr,{SmartMatch:()=>bd});var Ga={};te(Ga,{isMatch:()=>ER,matcher:()=>TR});function qo(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var yd=new Map,Kw=(e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},kR=(e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(yd.has(r))return yd.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=qo(e).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return o.negated=n,yd.set(r,o),o},ev=(e,t,r,n)=>{if(e=Kw(e,"inputs"),t=Kw(t,"patterns"),t.length===0)return[];t=t.map(s=>kR(s,r));let{allPatterns:o}=r||{},i=[];for(let s of e){let a,l=[...t].fill(!1);for(let[u,c]of t.entries())if(c.test(s)&&(l[u]=!0,a=!c.negated,!a))break;if(!(a===!1||a===void 0&&t.some(u=>!u.negated)||o&&l.some((u,c)=>!u&&!t[c].negated))&&(i.push(s),n))break}return i};function TR(e,t,r){return ev(e,t,r,!1)}function ER(e,t,r){return ev(e,t,r,!0).length>0}var bd=class{constructor(t){this.wildcard=t}match(t){return Ga.isMatch(t,this.wildcard)}};var Be={};te(Be,{ObservableIntake:()=>vd,Observablemap:()=>wd,rxjs:()=>os});var os={};te(os,{Observable:()=>Ee,ReplaySubject:()=>Vi,Subject:()=>$t,Subscription:()=>kt,from:()=>bn,fromEvent:()=>Cr,of:()=>Va,ops:()=>CR});var CR={debounce:Zi,debounceTime:Ki,map:zr,startWith:es,takeUntil:ts,throttleTime:rs,filter:Xi};var wd=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(t,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let o=Cr(t,r),i=new $t;o.subscribe(i);let s={subject:i,eventRef:t,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(t,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===t&&o.event===r);if(n)return n.subject;{let i={subject:new $t,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var vd=class{constructor(){this.observableFunctions={next:t=>{},complete:t=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new Ee(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=ue.defer(),this.completed=this.completedDeffered.promise}setObservable(t){this.observable=t}push(t){this.buffered?this.payloadBuffer.push(t):this.internalPush(t)}pushMany(t){for(let r of t)this.push(r)}setGenerator(t){this.generator=t}makeBuffered(){this.buffered=!0}subscribe(...t){return this.observable.subscribe(...t)}request(t){if(t!==0)for(let r=0;r!==t;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(t){this.observableFunctions.next(t)}};var st={};te(st,{CronJob:()=>ul,CronManager:()=>Ld,ExtendedDate:()=>Rd,HrtMeasurement:()=>Bd,Interval:()=>$d,TimeStamp:()=>Cs,Timer:()=>Ud,getMilliSecondsAsHumanReadableAgoTime:()=>nB,getMilliSecondsAsHumanReadableString:()=>Nd,getMilliSecondsFromUnits:()=>Fd,units:()=>Kn});var Xa={};te(Xa,{Cron:()=>iv,CronDate:()=>Gt,CronPattern:()=>bc,scheduledJobs:()=>is});function Tt(e,t,r,n,o,i,s,a){return Tt.fromTZ(Tt.tp(e,t,r,n,o,i,s),a)}Tt.fromTZISO=(e,t,r)=>Tt.fromTZ(OR(e,t),r),Tt.fromTZ=function(e,t){let r=new Date(Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)),n=Sd(e.tz,r),o=new Date(r.getTime()-n),i=Sd(e.tz,o);if(i-n===0)return o;{let s=new Date(r.getTime()-i),a=Sd(e.tz,s);if(a-i===0||!t&&a-i>0)return s;if(t)throw new Error("Invalid date passed to fromTZ()");return o}},Tt.toTZ=function(e,t){let r=e.toLocaleString("en-US",{timeZone:t}).replace(/[\u202f]/," "),n=new Date(r);return{y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),tz:t}},Tt.tp=(e,t,r,n,o,i,s)=>({y:e,m:t,d:r,h:n,i:o,s:i,tz:s});function Sd(e,t=new Date){let r=t.toLocaleString("en-US",{timeZone:e,timeZoneName:"shortOffset"}).split(" ").slice(-1)[0],n=t.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function OR(e,t){let r=new Date(Date.parse(e));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let n=e.substring(9);return e.includes("Z")||n.includes("-")||n.includes("+")?Tt.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Tt.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}Tt.minitz=Tt;var kd=32,Qa=31|kd,tv=[1,2,4,8,16],bc=class{pattern;timezone;second;minute;hour;day;month;dayOfWeek;lastDayOfMonth;starDOM;starDOW;constructor(e,t){this.pattern=e,this.timezone=t,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}parse(){if(!(typeof this.pattern=="string"||this.pattern instanceof String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let e=this.pattern.replace(/\s+/g," ").split(" ");if(e.length<5||e.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five or six space separated parts are required.");if(e.length===5&&e.unshift("0"),e[3].indexOf("L")>=0&&(e[3]=e[3].replace("L",""),this.lastDayOfMonth=!0),e[3]=="*"&&(this.starDOM=!0),e[4].length>=3&&(e[4]=this.replaceAlphaMonths(e[4])),e[5].length>=3&&(e[5]=this.replaceAlphaDays(e[5])),e[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let t=new Gt(new Date,this.timezone).getDate(!0);e[0]=e[0].replace("?",t.getSeconds().toString()),e[1]=e[1].replace("?",t.getMinutes().toString()),e[2]=e[2].replace("?",t.getHours().toString()),this.starDOM||(e[3]=e[3].replace("?",t.getDate().toString())),e[4]=e[4].replace("?",(t.getMonth()+1).toString()),this.starDOW||(e[5]=e[5].replace("?",t.getDay().toString()))}this.throwAtIllegalCharacters(e),this.partToArray("second",e[0],0,1),this.partToArray("minute",e[1],0,1),this.partToArray("hour",e[2],0,1),this.partToArray("day",e[3],-1,1),this.partToArray("month",e[4],-1,1),this.partToArray("dayOfWeek",e[5],0,Qa),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(e,t,r,n){let o=this[e],i=e==="day"&&this.lastDayOfMonth;if(t===""&&!i)throw new TypeError("CronPattern: configuration entry "+e+" ("+t+") is empty, check for trailing spaces.");if(t==="*")return o.fill(n);let s=t.split(",");if(s.length>1)for(let a=0;a<s.length;a++)this.partToArray(e,s[a],r,n);else t.indexOf("-")!==-1&&t.indexOf("/")!==-1?this.handleRangeWithStepping(t,e,r,n):t.indexOf("-")!==-1?this.handleRange(t,e,r,n):t.indexOf("/")!==-1?this.handleStepping(t,e,r,n):t!==""&&this.handleNumber(t,e,r,n)}throwAtIllegalCharacters(e){for(let t=0;t<e.length;t++)if((t===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(e[t]))throw new TypeError("CronPattern: configuration entry "+t+" ("+e[t]+") contains illegal characters.")}handleNumber(e,t,r,n){let o=this.extractNth(e,t),i=parseInt(o[0],10)+r;if(isNaN(i))throw new TypeError("CronPattern: "+t+" is not a number: '"+e+"'");this.setPart(t,i,o[1]||n)}setPart(e,t,r){if(!Object.prototype.hasOwnProperty.call(this,e))throw new TypeError("CronPattern: Invalid part specified: "+e);if(e==="dayOfWeek"){if(t===7&&(t=0),t<0||t>6)throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+t);this.setNthWeekdayOfMonth(t,r);return}if(e==="second"||e==="minute"){if(t<0||t>=60)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="hour"){if(t<0||t>=24)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="day"){if(t<0||t>=31)throw new RangeError("CronPattern: Invalid value for "+e+": "+t)}else if(e==="month"&&(t<0||t>=12))throw new RangeError("CronPattern: Invalid value for "+e+": "+t);this[e][t]=r}handleRangeWithStepping(e,t,r,n){let o=this.extractNth(e,t),i=o[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(i===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+e+"'");let[,s,a,l]=i,u=parseInt(s,10)+r,c=parseInt(a,10)+r,f=parseInt(l,10);if(isNaN(u))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(c))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(f))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(f===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(f>this[t].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[t].length+")");if(u>c)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let p=u;p<=c;p+=f)this.setPart(t,p,o[1]||n)}extractNth(e,t){let r=e,n;if(r.includes("#")){if(t!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");n=r.split("#")[1],r=r.split("#")[0]}return[r,n]}handleRange(e,t,r,n){let o=this.extractNth(e,t),i=o[0].split("-");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+e+"'");let s=parseInt(i[0],10)+r,a=parseInt(i[1],10)+r;if(isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let l=s;l<=a;l++)this.setPart(t,l,o[1]||n)}handleStepping(e,t,r,n){let o=this.extractNth(e,t),i=o[0].split("/");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+e+"'");i[0]===""&&(i[0]="*");let s=0;i[0]!=="*"&&(s=parseInt(i[0],10)+r);let a=parseInt(i[1],10);if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(a===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(a>this[t].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[t].length+")");for(let l=s;l<this[t].length;l+=a)this.setPart(t,l,o[1]||n)}replaceAlphaDays(e){return e.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")}replaceAlphaMonths(e){return e.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")}handleNicknames(e){let t=e.trim().toLowerCase();return t==="@yearly"||t==="@annually"?"0 0 1 1 *":t==="@monthly"?"0 0 1 * *":t==="@weekly"?"0 0 * * 0":t==="@daily"?"0 0 * * *":t==="@hourly"?"0 * * * *":e}setNthWeekdayOfMonth(e,t){if(typeof t!="number"&&t==="L")this.dayOfWeek[e]=this.dayOfWeek[e]|kd;else if(t===Qa)this.dayOfWeek[e]=Qa;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|tv[t-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${t}, Type: ${typeof t}`)}},rv=[31,28,31,30,31,30,31,31,30,31,30,31],vn=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],Gt=class ov{tz;ms;second;minute;hour;day;month;year;constructor(t,r){if(this.tz=r,t&&t instanceof Date)if(!isNaN(t))this.fromDate(t);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(t===void 0)this.fromDate(new Date);else if(t&&typeof t=="string")this.fromString(t);else if(t instanceof ov)this.fromCronDate(t);else throw new TypeError("CronDate: Invalid type ("+typeof t+") passed to CronDate constructor")}isNthWeekdayOfMonth(t,r,n,o){let i=new Date(Date.UTC(t,r,n)).getUTCDay(),s=0;for(let a=1;a<=n;a++)new Date(Date.UTC(t,r,a)).getUTCDay()===i&&s++;if(o&Qa&&tv[s-1]&o)return!0;if(o&kd){let a=new Date(Date.UTC(t,r+1,0)).getUTCDate();for(let l=n+1;l<=a;l++)if(new Date(Date.UTC(t,r,l)).getUTCDay()===i)return!1;return!0}return!1}fromDate(t){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=t.getUTCMilliseconds(),this.second=t.getUTCSeconds(),this.minute=t.getUTCMinutes()+this.tz,this.hour=t.getUTCHours(),this.day=t.getUTCDate(),this.month=t.getUTCMonth(),this.year=t.getUTCFullYear(),this.apply();else{let r=Tt.toTZ(t,this.tz);this.ms=t.getMilliseconds(),this.second=r.s,this.minute=r.i,this.hour=r.h,this.day=r.d,this.month=r.m-1,this.year=r.y}else this.ms=t.getMilliseconds(),this.second=t.getSeconds(),this.minute=t.getMinutes(),this.hour=t.getHours(),this.day=t.getDate(),this.month=t.getMonth(),this.year=t.getFullYear()}fromCronDate(t){this.tz=t.tz,this.year=t.year,this.month=t.month,this.day=t.day,this.hour=t.hour,this.minute=t.minute,this.second=t.second,this.ms=t.ms}apply(){if(this.month>11||this.day>rv[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let t=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=t.getUTCMilliseconds(),this.second=t.getUTCSeconds(),this.minute=t.getUTCMinutes(),this.hour=t.getUTCHours(),this.day=t.getUTCDate(),this.month=t.getUTCMonth(),this.year=t.getUTCFullYear(),!0}else return!1}fromString(t){if(typeof this.tz=="number"){let r=Tt.fromTZISO(t);this.ms=r.getUTCMilliseconds(),this.second=r.getUTCSeconds(),this.minute=r.getUTCMinutes(),this.hour=r.getUTCHours(),this.day=r.getUTCDate(),this.month=r.getUTCMonth(),this.year=r.getUTCFullYear(),this.apply()}else return this.fromDate(Tt.fromTZISO(t,this.tz))}findNext(t,r,n,o){let i=this[r],s;n.lastDayOfMonth&&(this.month!==1?s=rv[this.month]:s=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let a=!n.starDOW&&r=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let l=this[r]+o;l<n[r].length;l++){let u=n[r][l];if(r==="day"&&n.lastDayOfMonth&&l-o==s&&(u=1),r==="day"&&!n.starDOW){let c=n.dayOfWeek[(a+(l-o-1))%7];if(c&&c&Qa)c=this.isNthWeekdayOfMonth(this.year,this.month,l-o,c)?1:0;else if(c)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${c}`);t.legacyMode&&!n.starDOM?u=u||c:u=u&&c}if(u)return this[r]=l-o,i!==this[r]?2:1}return 3}recurse(t,r,n){let o=this.findNext(r,vn[n][0],t,vn[n][2]);if(o>1){let i=n+1;for(;i<vn.length;)this[vn[i][0]]=-vn[i][2],i++;if(o===3)return this[vn[n][1]]++,this[vn[n][0]]=-vn[n][2],this.apply(),this.recurse(t,r,0);if(this.apply())return this.recurse(t,r,n-1)}return n+=1,n>=vn.length?this:this.year>=3e3?null:this.recurse(t,r,n)}increment(t,r,n){return this.second+=r.interval!==void 0&&r.interval>1&&n?r.interval:1,this.ms=0,this.apply(),this.recurse(t,r,0)}getDate(t){return t||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):Tt.fromTZ(Tt.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function MR(e){if(e===void 0&&(e={}),delete e.name,e.legacyMode=e.legacyMode===void 0?!0:e.legacyMode,e.paused=e.paused===void 0?!1:e.paused,e.maxRuns=e.maxRuns===void 0?1/0:e.maxRuns,e.catch=e.catch===void 0?!1:e.catch,e.interval=e.interval===void 0?0:parseInt(e.interval.toString(),10),e.utcOffset=e.utcOffset===void 0?void 0:parseInt(e.utcOffset.toString(),10),e.unref=e.unref===void 0?!1:e.unref,e.startAt&&(e.startAt=new Gt(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new Gt(e.stopAt,e.timezone)),e.interval!==null){if(isNaN(e.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(e.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(e.utcOffset!==void 0){if(isNaN(e.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(e.utcOffset<-870||e.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(e.utcOffset!==void 0&&e.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(e.unref!==!0&&e.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return e}function Ja(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}function _R(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}var nv=30*1e3,is=[],iv=class{name;options;_states;fn;constructor(e,t,r){let n,o;if(Ja(t))o=t;else if(typeof t=="object")n=t;else if(t!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Ja(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=MR(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 bc("* * * * *")},e&&(e instanceof Date||typeof e=="string"&&e.indexOf(":")>0)?this._states.once=new Gt(e,this.options.timezone||this.options.utcOffset):this._states.pattern=new bc(e,this.options.timezone),this.name){if(is.find(i=>i.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");is.push(this)}return o!==void 0&&Ja(o)&&(this.fn=o,this.schedule()),this}nextRun(e){let t=this._next(e);return t?t.getDate(!1):null}nextRuns(e,t){this._states.maxRuns!==void 0&&e>this._states.maxRuns&&(e=this._states.maxRuns);let r=[],n=t||this._states.currentRun||void 0;for(;e--&&(n=this.nextRun(n));)r.push(n);return r}getPattern(){return this._states.pattern?this._states.pattern.pattern:void 0}isRunning(){let e=this.nextRun(this._states.currentRun),t=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return t&&r&&n&&e!==null}isStopped(){return this._states.kill}isBusy(){return this._states.blocking}currentRun(){return this._states.currentRun?this._states.currentRun.getDate():null}previousRun(){return this._states.previousRun?this._states.previousRun.getDate():null}msToNext(e){e=e||new Date;let t=this._next(e);return t?e instanceof Gt||e instanceof Date?t.getTime()-e.getTime():t.getTime()-new Gt(e).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=is.indexOf(this);e>=0&&is.splice(e,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(e){if(e&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");e&&(this.fn=e);let t=this.msToNext(),r=this.nextRun(this._states.currentRun);return t==null||isNaN(t)||r===null?this:(t>nv&&(t=nv),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&_R(this._states.currentTimeout),this)}async _trigger(e){if(this._states.blocking=!0,this._states.currentRun=new Gt(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(t){Ja(this.options.catch)&&this.options.catch(t,this)}else this.fn!==void 0&&await this.fn(this,this.options.context);this._states.previousRun=new Gt(e,this.options.timezone||this.options.utcOffset),this._states.blocking=!1}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(e){let t=new Date,r=!this._states.paused&&t.getTime()>=e.getTime(),n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):r&&n&&Ja(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(e){let t=!!(e||this._states.currentRun),r=!1;!e&&this.options.startAt&&this.options.interval&&([e,t]=this._calculatePreviousRun(e,t),r=!e),e=new Gt(e,this.options.timezone||this.options.utcOffset),this.options.startAt&&e&&e.getTime()<this.options.startAt.getTime()&&(e=this.options.startAt);let n=this._states.once||new Gt(e,this.options.timezone||this.options.utcOffset);return!r&&n!==this._states.once&&(n=n.increment(this._states.pattern,this.options,t)),this._states.once&&this._states.once.getTime()<=e.getTime()||n===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&n.getTime()>=this.options.stopAt.getTime()?null:n}_calculatePreviousRun(e,t){let r=new Gt(void 0,this.options.timezone||this.options.utcOffset),n=e;if(this.options.startAt.getTime()<=r.getTime()){n=this.options.startAt;let o=n.getTime()+this.options.interval*1e3;for(;o<=r.getTime();)n=new Gt(n,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,!0),o=n.getTime()+this.options.interval*1e3;t=!0}return n===null&&(n=void 0),[n,t]}};var al={};te(al,{add:()=>jn,addBusinessDays:()=>Oc,addDays:()=>it,addHours:()=>Mc,addISOWeekYears:()=>Ic,addMilliseconds:()=>qn,addMinutes:()=>us,addMonths:()=>qr,addQuarters:()=>cs,addSeconds:()=>Pc,addWeeks:()=>Hn,addYears:()=>Fc,areIntervalsOverlapping:()=>cv,clamp:()=>fv,closestIndexTo:()=>Rc,closestTo:()=>pv,compareAsc:()=>At,compareDesc:()=>hv,constructFrom:()=>L,constructNow:()=>ye,daysToWeeks:()=>mv,differenceInBusinessDays:()=>dv,differenceInCalendarDays:()=>ht,differenceInCalendarISOWeekYears:()=>$c,differenceInCalendarISOWeeks:()=>gv,differenceInCalendarMonths:()=>Wo,differenceInCalendarQuarters:()=>fs,differenceInCalendarWeeks:()=>Yo,differenceInCalendarYears:()=>Wn,differenceInDays:()=>ps,differenceInHours:()=>Vo,differenceInISOWeekYears:()=>yv,differenceInMilliseconds:()=>hs,differenceInMinutes:()=>Go,differenceInMonths:()=>Yn,differenceInQuarters:()=>bv,differenceInSeconds:()=>Vr,differenceInWeeks:()=>wv,differenceInYears:()=>jc,eachDayOfInterval:()=>qc,eachHourOfInterval:()=>vv,eachMinuteOfInterval:()=>Sv,eachMonthOfInterval:()=>kv,eachQuarterOfInterval:()=>Tv,eachWeekOfInterval:()=>Ev,eachWeekendOfInterval:()=>gs,eachWeekendOfMonth:()=>Av,eachWeekendOfYear:()=>Dv,eachYearOfInterval:()=>Cv,endOfDay:()=>ms,endOfDecade:()=>Ov,endOfHour:()=>Mv,endOfISOWeek:()=>_v,endOfISOWeekYear:()=>Iv,endOfMinute:()=>Pv,endOfMonth:()=>ds,endOfQuarter:()=>Fv,endOfSecond:()=>Nv,endOfToday:()=>Lv,endOfTomorrow:()=>Rv,endOfWeek:()=>Wc,endOfYear:()=>Hc,endOfYesterday:()=>Bv,format:()=>rl,formatDate:()=>rl,formatDistance:()=>Jc,formatDistanceStrict:()=>Xc,formatDistanceToNow:()=>Qv,formatDistanceToNowStrict:()=>Jv,formatDuration:()=>Xv,formatISO:()=>Zv,formatISO9075:()=>Kv,formatISODuration:()=>eS,formatRFC3339:()=>tS,formatRFC7231:()=>rS,formatRelative:()=>nS,formatters:()=>el,fromUnixTime:()=>oS,getDate:()=>Zc,getDay:()=>Jn,getDayOfYear:()=>Vc,getDaysInMonth:()=>Kc,getDaysInYear:()=>iS,getDecade:()=>sS,getDefaultOptions:()=>tf,getHours:()=>aS,getISODay:()=>rf,getISOWeek:()=>ws,getISOWeekYear:()=>zt,getISOWeeksInYear:()=>lS,getMilliseconds:()=>uS,getMinutes:()=>cS,getMonth:()=>fS,getOverlappingDaysInIntervals:()=>pS,getQuarter:()=>Ka,getSeconds:()=>hS,getTime:()=>mS,getUnixTime:()=>dS,getWeek:()=>vs,getWeekOfMonth:()=>gS,getWeekYear:()=>Gn,getWeeksInMonth:()=>xS,getYear:()=>yS,hoursToMilliseconds:()=>bS,hoursToMinutes:()=>wS,hoursToSeconds:()=>vS,interval:()=>SS,intervalToDuration:()=>kS,intlFormat:()=>TS,intlFormatDistance:()=>ES,isAfter:()=>AS,isBefore:()=>DS,isDate:()=>Bc,isEqual:()=>CS,isExists:()=>OS,isFirstDayOfMonth:()=>MS,isFriday:()=>_S,isFuture:()=>IS,isLastDayOfMonth:()=>zc,isLeapYear:()=>ef,isMatch:()=>PS,isMonday:()=>FS,isPast:()=>NS,isSameDay:()=>Yr,isSameHour:()=>Gf,isSameISOWeek:()=>Qf,isSameISOWeekYear:()=>LS,isSameMinute:()=>Jf,isSameMonth:()=>Xf,isSameQuarter:()=>Zf,isSameSecond:()=>Kf,isSameWeek:()=>Es,isSameYear:()=>ep,isSaturday:()=>Dc,isSunday:()=>Cc,isThisHour:()=>RS,isThisISOWeek:()=>BS,isThisMinute:()=>$S,isThisMonth:()=>US,isThisQuarter:()=>zS,isThisSecond:()=>jS,isThisWeek:()=>qS,isThisYear:()=>HS,isThursday:()=>WS,isToday:()=>YS,isTomorrow:()=>VS,isTuesday:()=>GS,isValid:()=>yt,isWednesday:()=>QS,isWeekend:()=>Hr,isWithinInterval:()=>JS,isYesterday:()=>XS,lastDayOfDecade:()=>ZS,lastDayOfISOWeek:()=>KS,lastDayOfISOWeekYear:()=>ek,lastDayOfMonth:()=>nf,lastDayOfQuarter:()=>tk,lastDayOfWeek:()=>tp,lastDayOfYear:()=>rk,lightFormat:()=>nk,lightFormatters:()=>ir,longFormatters:()=>Qn,max:()=>Nc,milliseconds:()=>ok,millisecondsToHours:()=>ik,millisecondsToMinutes:()=>sk,millisecondsToSeconds:()=>ak,min:()=>Lc,minutesToHours:()=>lk,minutesToMilliseconds:()=>uk,minutesToSeconds:()=>ck,monthsToQuarters:()=>fk,monthsToYears:()=>pk,nextDay:()=>Ct,nextFriday:()=>hk,nextMonday:()=>mk,nextSaturday:()=>dk,nextSunday:()=>gk,nextThursday:()=>xk,nextTuesday:()=>yk,nextWednesday:()=>bk,parse:()=>Vf,parseISO:()=>vk,parseJSON:()=>Sk,parsers:()=>Yf,previousDay:()=>Ot,previousFriday:()=>kk,previousMonday:()=>Tk,previousSaturday:()=>Ek,previousSunday:()=>Ak,previousThursday:()=>Dk,previousTuesday:()=>Ck,previousWednesday:()=>Ok,quartersToMonths:()=>Mk,quartersToYears:()=>_k,roundToNearestHours:()=>Ik,roundToNearestMinutes:()=>Pk,secondsToHours:()=>Fk,secondsToMilliseconds:()=>Nk,secondsToMinutes:()=>Lk,set:()=>Rk,setDate:()=>Bk,setDay:()=>Xn,setDayOfYear:()=>$k,setDefaultOptions:()=>Uk,setHours:()=>zk,setISODay:()=>Mf,setISOWeek:()=>kf,setISOWeekYear:()=>_c,setMilliseconds:()=>jk,setMinutes:()=>qk,setMonth:()=>As,setQuarter:()=>Hk,setSeconds:()=>Wk,setWeek:()=>vf,setWeekYear:()=>Yk,setYear:()=>Vk,startOfDay:()=>Wr,startOfDecade:()=>Gk,startOfHour:()=>nl,startOfISOWeek:()=>rt,startOfISOWeekYear:()=>or,startOfMinute:()=>ol,startOfMonth:()=>Vn,startOfQuarter:()=>Gr,startOfSecond:()=>il,startOfToday:()=>Qk,startOfTomorrow:()=>Jk,startOfWeek:()=>Ie,startOfWeekYear:()=>Qo,startOfYear:()=>xs,startOfYesterday:()=>Xk,sub:()=>Zk,subBusinessDays:()=>Kk,subDays:()=>Zn,subHours:()=>e1,subISOWeekYears:()=>Uc,subMilliseconds:()=>t1,subMinutes:()=>r1,subMonths:()=>np,subQuarters:()=>n1,subSeconds:()=>o1,subWeeks:()=>i1,subYears:()=>s1,toDate:()=>b,transpose:()=>of,weeksToDays:()=>a1,yearsToDays:()=>l1,yearsToMonths:()=>u1,yearsToQuarters:()=>c1});var vc=7,Za=365.2425,IR=Math.pow(10,8)*24*60*60*1e3,Qie=-IR,jr=6048e5,Sc=864e5,Et=6e4,nr=36e5,ss=1e3,Td=525600,zn=43200,as=1440,kc=60,Tc=3,Ec=12,Ac=4,Ho=3600,ls=60,wc=Ho*24,sv=wc*7,Ed=wc*365.2425,Ad=Ed/12,av=Ad*3,Dd=Symbol.for("constructDateFrom");function L(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Dd in e?e[Dd](t):e instanceof Date?new e.constructor(t):new Date(t)}var Zie=L;function b(e,t){return L(t||e,e)}var tse=b;function it(e,t,r){let n=b(e,r?.in);return isNaN(t)?L(r?.in||e,NaN):(t&&n.setDate(n.getDate()+t),n)}var ise=it;function qr(e,t,r){let n=b(e,r?.in);if(isNaN(t))return L(r?.in||e,NaN);if(!t)return n;let o=n.getDate(),i=L(r?.in||e,n.getTime());i.setMonth(n.getMonth()+t+1,0);let s=i.getDate();return o>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}var use=qr;function jn(e,t,r){let{years:n=0,months:o=0,weeks:i=0,days:s=0,hours:a=0,minutes:l=0,seconds:u=0}=t,c=b(e,r?.in),f=o||n?qr(c,o+n*12):c,p=s||i?it(f,s+i*7):f,h=l+a*60,d=(u+h*60)*1e3;return L(r?.in||e,+p+d)}var dse=jn;function Dc(e,t){return b(e,t?.in).getDay()===6}var yse=Dc;function Cc(e,t){return b(e,t?.in).getDay()===0}var vse=Cc;function Hr(e,t){let r=b(e,t?.in).getDay();return r===0||r===6}var Tse=Hr;function Oc(e,t,r){let n=b(e,r?.in),o=Hr(n,r);if(isNaN(t))return L(r?.in,NaN);let i=n.getHours(),s=t<0?-1:1,a=Math.trunc(t/5);n.setDate(n.getDate()+a*7);let l=Math.abs(t%5);for(;l>0;)n.setDate(n.getDate()+s),Hr(n,r)||(l-=1);return o&&Hr(n,r)&&t!==0&&(Dc(n,r)&&n.setDate(n.getDate()+(s<0?2:-1)),Cc(n,r)&&n.setDate(n.getDate()+(s<0?1:-2))),n.setHours(i),n}var _se=Oc;function qn(e,t,r){return L(r?.in||e,+b(e)+t)}var Nse=qn;function Mc(e,t,r){return qn(e,t*nr,r)}var $se=Mc;var lv={};function Oe(){return lv}function uv(e){lv=e}function Ie(e,t){let r=Oe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=b(e,t?.in),i=o.getDay(),s=(i<n?7:0)+i-n;return o.setDate(o.getDate()-s),o.setHours(0,0,0,0),o}var Hse=Ie;function rt(e,t){return Ie(e,{...t,weekStartsOn:1})}var Vse=rt;function zt(e,t){let r=b(e,t?.in),n=r.getFullYear(),o=L(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let i=rt(o),s=L(r,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);let a=rt(s);return r.getTime()>=i.getTime()?n+1:r.getTime()>=a.getTime()?n:n-1}var Zse=zt;function He(e){let t=b(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function ne(e,...t){let r=L.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function Wr(e,t){let r=b(e,t?.in);return r.setHours(0,0,0,0),r}var iae=Wr;function ht(e,t,r){let[n,o]=ne(r?.in,e,t),i=Wr(n),s=Wr(o),a=+i-He(i),l=+s-He(s);return Math.round((a-l)/Sc)}var fae=ht;function or(e,t){let r=zt(e,t),n=L(t?.in||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),rt(n)}var gae=or;function _c(e,t,r){let n=b(e,r?.in),o=ht(n,or(n,r)),i=L(r?.in||e,0);return i.setFullYear(t,0,4),i.setHours(0,0,0,0),n=or(i),n.setDate(n.getDate()+o),n}var Sae=_c;function Ic(e,t,r){return _c(e,zt(e,r)+t,r)}var Aae=Ic;function us(e,t,r){let n=b(e,r?.in);return n.setTime(n.getTime()+t*Et),n}var Mae=us;function cs(e,t,r){return qr(e,t*3,r)}var Pae=cs;function Pc(e,t,r){return qn(e,t*1e3,r)}var Lae=Pc;function Hn(e,t,r){return it(e,t*7,r)}var $ae=Hn;function Fc(e,t,r){return qr(e,t*12,r)}var jae=Fc;function cv(e,t,r){let[n,o]=[+b(e.start,r?.in),+b(e.end,r?.in)].sort((a,l)=>a-l),[i,s]=[+b(t.start,r?.in),+b(t.end,r?.in)].sort((a,l)=>a-l);return r?.inclusive?n<=s&&i<=o:n<s&&i<o}var Wae=cv;function Nc(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=L.bind(null,o));let i=b(o,n);(!r||r<i||isNaN(+i))&&(r=i)}),L(n,r||NaN)}var Qae=Nc;function Lc(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=L.bind(null,o));let i=b(o,n);(!r||r>i||isNaN(+i))&&(r=i)}),L(n,r||NaN)}var Kae=Lc;function fv(e,t,r){let[n,o,i]=ne(r?.in,e,t.start,t.end);return Lc([Nc([n,o],r),i],r)}var ole=fv;function Rc(e,t){let r=+b(e);if(isNaN(r))return NaN;let n,o;return t.forEach((i,s)=>{let a=b(i);if(isNaN(+a)){n=NaN,o=NaN;return}let l=Math.abs(r-+a);(n==null||l<o)&&(n=s,o=l)}),n}var ale=Rc;function pv(e,t,r){let[n,...o]=ne(r?.in,e,...t),i=Rc(n,o);if(typeof i=="number"&&isNaN(i))return L(n,NaN);if(i!==void 0)return o[i]}var ple=pv;function At(e,t){let r=+b(e)-+b(t);return r<0?-1:r>0?1:r}var dle=At;function hv(e,t){let r=+b(e)-+b(t);return r>0?-1:r<0?1:r}var yle=hv;function ye(e){return L(e,Date.now())}var vle=ye;function mv(e){let t=Math.trunc(e/7);return t===0?0:t}var Tle=mv;function Yr(e,t,r){let[n,o]=ne(r?.in,e,t);return+Wr(n)==+Wr(o)}var Cle=Yr;function Bc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var Mle=Bc;function yt(e){return!(!Bc(e)&&typeof e!="number"||isNaN(+b(e)))}var Fle=yt;function dv(e,t,r){let[n,o]=ne(r?.in,e,t);if(!yt(n)||!yt(o))return NaN;let i=ht(n,o),s=i<0?-1:1,a=Math.trunc(i/7),l=a*5,u=it(o,a*7);for(;!Yr(n,u);)l+=Hr(u,r)?0:s,u=it(u,s);return l===0?0:l}var jle=dv;function $c(e,t,r){let[n,o]=ne(r?.in,e,t);return zt(n,r)-zt(o,r)}var Yle=$c;function gv(e,t,r){let[n,o]=ne(r?.in,e,t),i=rt(n),s=rt(o),a=+i-He(i),l=+s-He(s);return Math.round((a-l)/jr)}var Zle=gv;function Wo(e,t,r){let[n,o]=ne(r?.in,e,t),i=n.getFullYear()-o.getFullYear(),s=n.getMonth()-o.getMonth();return i*12+s}var tue=Wo;function Ka(e,t){let r=b(e,t?.in);return Math.trunc(r.getMonth()/3)+1}var oue=Ka;function fs(e,t,r){let[n,o]=ne(r?.in,e,t),i=n.getFullYear()-o.getFullYear(),s=Ka(n)-Ka(o);return i*4+s}var lue=fs;function Yo(e,t,r){let[n,o]=ne(r?.in,e,t),i=Ie(n,r),s=Ie(o,r),a=+i-He(i),l=+s-He(s);return Math.round((a-l)/jr)}var mue=Yo;function Wn(e,t,r){let[n,o]=ne(r?.in,e,t);return n.getFullYear()-o.getFullYear()}var xue=Wn;function ps(e,t,r){let[n,o]=ne(r?.in,e,t),i=xv(n,o),s=Math.abs(ht(n,o));n.setDate(n.getDate()-i*s);let a=+(xv(n,o)===-i),l=i*(s-a);return l===0?0:l}function xv(e,t){let r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}var vue=ps;function Dt(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function Vo(e,t,r){let[n,o]=ne(r?.in,e,t),i=(+n-+o)/nr;return Dt(r?.roundingMethod)(i)}var Due=Vo;function Uc(e,t,r){return Ic(e,-t,r)}var Mue=Uc;function yv(e,t,r){let[n,o]=ne(r?.in,e,t),i=At(n,o),s=Math.abs($c(n,o,r)),a=Uc(n,i*s,r),l=+(At(a,o)===-i),u=i*(s-l);return u===0?0:u}var Lue=yv;function hs(e,t){return+b(e)-+b(t)}var $ue=hs;function Go(e,t,r){let n=hs(e,t)/Et;return Dt(r?.roundingMethod)(n)}var Hue=Go;function ms(e,t){let r=b(e,t?.in);return r.setHours(23,59,59,999),r}var Vue=ms;function ds(e,t){let r=b(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}var Jue=ds;function zc(e,t){let r=b(e,t?.in);return+ms(r,t)==+ds(r,t)}var tce=zc;function Yn(e,t,r){let[n,o,i]=ne(r?.in,e,e,t),s=At(o,i),a=Math.abs(Wo(o,i));if(a<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-s*a);let l=At(o,i)===-s;zc(n)&&a===1&&At(n,i)===1&&(l=!1);let u=s*(a-+l);return u===0?0:u}var ace=Yn;function bv(e,t,r){let n=Yn(e,t,r)/3;return Dt(r?.roundingMethod)(n)}var fce=bv;function Vr(e,t,r){let n=hs(e,t)/1e3;return Dt(r?.roundingMethod)(n)}var dce=Vr;function wv(e,t,r){let n=ps(e,t,r)/7;return Dt(r?.roundingMethod)(n)}var bce=wv;function jc(e,t,r){let[n,o]=ne(r?.in,e,t),i=At(n,o),s=Math.abs(Wn(n,o));n.setFullYear(1584),o.setFullYear(1584);let a=At(n,o)===-i,l=i*(s-+a);return l===0?0:l}var Tce=jc;function mt(e,t){let[r,n]=ne(e,t.start,t.end);return{start:r,end:n}}function qc(e,t){let{start:r,end:n}=mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(L(r,s)),s.setDate(s.getDate()+a),s.setHours(0,0,0,0);return o?l.reverse():l}var Mce=qc;function vv(e,t){let{start:r,end:n}=mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setMinutes(0,0,0);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(L(r,s)),s.setHours(s.getHours()+a);return o?l.reverse():l}var Fce=vv;function Sv(e,t){let{start:r,end:n}=mt(t?.in,e);r.setSeconds(0,0);let o=+r>+n,i=o?+r:+n,s=o?n:r,a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(L(r,s)),s=us(s,a);return o?l.reverse():l}var $ce=Sv;function kv(e,t){let{start:r,end:n}=mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setDate(1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(L(r,s)),s.setMonth(s.getMonth()+a);return o?l.reverse():l}var qce=kv;function Gr(e,t){let r=b(e,t?.in),n=r.getMonth(),o=n-n%3;return r.setMonth(o,1),r.setHours(0,0,0,0),r}var Yce=Gr;function Tv(e,t){let{start:r,end:n}=mt(t?.in,e),o=+r>+n,i=o?+Gr(r):+Gr(n),s=o?Gr(n):Gr(r),a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(L(r,s)),s=cs(s,a);return o?l.reverse():l}var Zce=Tv;function Ev(e,t){let{start:r,end:n}=mt(t?.in,e),o=+r>+n,i=o?Ie(n,t):Ie(r,t),s=o?Ie(r,t):Ie(n,t);i.setHours(15),s.setHours(15);let a=+s.getTime(),l=i,u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);let c=[];for(;+l<=a;)l.setHours(0),c.push(L(r,l)),l=Hn(l,u),l.setHours(15);return o?c.reverse():c}var ofe=Ev;function gs(e,t){let{start:r,end:n}=mt(t?.in,e),o=qc({start:r,end:n},t),i=[],s=0;for(;s<o.length;){let a=o[s++];Hr(a)&&i.push(L(r,a))}return i}var cfe=gs;function Vn(e,t){let r=b(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}var hfe=Vn;function Av(e,t){let r=Vn(e,t),n=ds(e,t);return gs({start:r,end:n},t)}var yfe=Av;function Hc(e,t){let r=b(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}var vfe=Hc;function xs(e,t){let r=b(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var Tfe=xs;function Dv(e,t){let r=xs(e,t),n=Hc(e,t);return gs({start:r,end:n},t)}var Ofe=Dv;function Cv(e,t){let{start:r,end:n}=mt(t?.in,e),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setMonth(0,1);let a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(L(r,s)),s.setFullYear(s.getFullYear()+a);return o?l.reverse():l}var Pfe=Cv;function Ov(e,t){let r=b(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o,11,31),r.setHours(23,59,59,999),r}var Lfe=Ov;function Mv(e,t){let r=b(e,t?.in);return r.setMinutes(59,59,999),r}var $fe=Mv;function Wc(e,t){let r=Oe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=b(e,t?.in),i=o.getDay(),s=(i<n?-7:0)+6-(i-n);return o.setDate(o.getDate()+s),o.setHours(23,59,59,999),o}var qfe=Wc;function _v(e,t){return Wc(e,{...t,weekStartsOn:1})}var Yfe=_v;function Iv(e,t){let r=zt(e,t),n=L(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=rt(n,t);return o.setMilliseconds(o.getMilliseconds()-1),o}var Xfe=Iv;function Pv(e,t){let r=b(e,t?.in);return r.setSeconds(59,999),r}var epe=Pv;function Fv(e,t){let r=b(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(23,59,59,999),r}var npe=Fv;function Nv(e,t){let r=b(e,t?.in);return r.setMilliseconds(999),r}var spe=Nv;function Lv(e){return ms(Date.now(),e)}var upe=Lv;function Rv(e){let t=ye(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=ye(e?.in);return i.setFullYear(r,n,o+1),i.setHours(23,59,59,999),e?.in?e.in(i):i}var ppe=Rv;function Bv(e){let t=ye(e?.in),r=L(e?.in,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()-1),r.setHours(23,59,59,999),r}var gpe=Bv;var PR={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"}},$v=(e,t,r)=>{let n,o=PR[e];return typeof o=="string"?n=o:t===1?n=o.one:n=o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Yc(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var FR={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},NR={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},LR={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Uv={date:Yc({formats:FR,defaultWidth:"full"}),time:Yc({formats:NR,defaultWidth:"full"}),dateTime:Yc({formats:LR,defaultWidth:"full"})};var RR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zv=(e,t,r,n)=>RR[e];function ys(e){return(t,r)=>{let n=r?.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){let s=e.defaultFormattingWidth||e.defaultWidth,a=r?.width?String(r.width):s;o=e.formattingValues[a]||e.formattingValues[s]}else{let s=e.defaultWidth,a=r?.width?String(r.width):e.defaultWidth;o=e.values[a]||e.values[s]}let i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}var BR={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$R={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},UR={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"]},zR={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"]},jR={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"}},qR={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"}},HR=(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},jv={ordinalNumber:HR,era:ys({values:BR,defaultWidth:"wide"}),quarter:ys({values:$R,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ys({values:UR,defaultWidth:"wide"}),day:ys({values:zR,defaultWidth:"wide"}),dayPeriod:ys({values:jR,defaultWidth:"wide",formattingValues:qR,defaultFormattingWidth:"wide"})};function bs(e){return(t,r={})=>{let n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;let s=i[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?YR(a,f=>f.test(s)):WR(a,f=>f.test(s)),u;u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;let c=t.slice(s.length);return{value:u,rest:c}}}function WR(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function YR(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function qv(e){return(t,r={})=>{let n=t.match(e.matchPattern);if(!n)return null;let o=n[0],i=t.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=r.valueCallback?r.valueCallback(s):s;let a=t.slice(o.length);return{value:s,rest:a}}}var VR=/^(\d+)(th|st|nd|rd)?/i,GR=/\d+/i,QR={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},JR={any:[/^b/i,/^(a|c)/i]},XR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ZR={any:[/1/i,/2/i,/3/i,/4/i]},KR={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},e2={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]},t2={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},r2={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]},n2={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},o2={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}},Hv={ordinalNumber:qv({matchPattern:VR,parsePattern:GR,valueCallback:e=>parseInt(e,10)}),era:bs({matchPatterns:QR,defaultMatchWidth:"wide",parsePatterns:JR,defaultParseWidth:"any"}),quarter:bs({matchPatterns:XR,defaultMatchWidth:"wide",parsePatterns:ZR,defaultParseWidth:"any",valueCallback:e=>e+1}),month:bs({matchPatterns:KR,defaultMatchWidth:"wide",parsePatterns:e2,defaultParseWidth:"any"}),day:bs({matchPatterns:t2,defaultMatchWidth:"wide",parsePatterns:r2,defaultParseWidth:"any"}),dayPeriod:bs({matchPatterns:n2,defaultMatchWidth:"any",parsePatterns:o2,defaultParseWidth:"any"})};var Qt={code:"en-US",formatDistance:$v,formatLong:Uv,formatRelative:zv,localize:jv,match:Hv,options:{weekStartsOn:0,firstWeekContainsDate:1}},Lpe=Qt;function Vc(e,t){let r=b(e,t?.in);return ht(r,xs(r))+1}var qpe=Vc;function ws(e,t){let r=b(e,t?.in),n=+rt(r)-+or(r);return Math.round(n/jr)+1}var Qpe=ws;function Gn(e,t){let r=b(e,t?.in),n=r.getFullYear(),o=Oe(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=L(t?.in||e,0);s.setFullYear(n+1,0,i),s.setHours(0,0,0,0);let a=Ie(s,t),l=L(t?.in||e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);let u=Ie(l,t);return+r>=+a?n+1:+r>=+u?n:n-1}var the=Gn;function Qo(e,t){let r=Oe(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=Gn(e,t),i=L(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),Ie(i,t)}var ahe=Qo;function vs(e,t){let r=b(e,t?.in),n=+Ie(r,t)-+Qo(r,t);return Math.round(n/jr)+1}var hhe=vs;function K(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var ir={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return K(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):K(r+1,2)},d(e,t){return K(e.getDate(),t.length)},a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return K(e.getHours()%12||12,t.length)},H(e,t){return K(e.getHours(),t.length)},m(e,t){return K(e.getMinutes(),t.length)},s(e,t){return K(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return K(o,t.length)}};var Ss={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},el={G:function(e,t,r){let n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){let n=e.getFullYear(),o=n>0?n:1-n;return r.ordinalNumber(o,{unit:"year"})}return ir.y(e,t)},Y:function(e,t,r,n){let o=Gn(e,n),i=o>0?o:1-o;if(t==="YY"){let s=i%100;return K(s,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):K(i,t.length)},R:function(e,t){let r=zt(e);return K(r,t.length)},u:function(e,t){let r=e.getFullYear();return K(r,t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return K(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"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return K(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"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return ir.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return K(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"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let o=vs(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):K(o,t.length)},I:function(e,t,r){let n=ws(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):K(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):ir.d(e,t)},D:function(e,t,r){let n=Vc(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):K(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return K(i,2);case"eo":return r.ordinalNumber(i,{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"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return K(i,t.length);case"co":return r.ordinalNumber(i,{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"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),o=n===0?7:n;switch(t){case"i":return String(o);case"ii":return K(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n=e.getHours(),o;switch(n===12?o=Ss.noon:n===0?o=Ss.midnight:o=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n=e.getHours(),o;switch(n>=17?o=Ss.evening:n>=12?o=Ss.afternoon:n>=4?o=Ss.morning:o=Ss.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return ir.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):ir.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):K(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):K(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):ir.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):ir.s(e,t)},S:function(e,t){return ir.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Yv(n);case"XXXX":case"XX":return Jo(n);case"XXXXX":case"XXX":default:return Jo(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Yv(n);case"xxxx":case"xx":return Jo(n);case"xxxxx":case"xxx":default:return Jo(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Wv(n,":");case"OOOO":default:return"GMT"+Jo(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Wv(n,":");case"zzzz":default:return"GMT"+Jo(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return K(n,t.length)},T:function(e,t,r){return K(+e,t.length)}};function Wv(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),i=n%60;return i===0?r+String(o):r+String(o)+t+K(i,2)}function Yv(e,t){return e%60===0?(e>0?"-":"+")+K(Math.abs(e)/60,2):Jo(e,t)}function Jo(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=K(Math.trunc(n/60),2),i=K(n%60,2);return r+o+t+i}var Vv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Gv=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},i2=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Vv(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Vv(n,t)).replace("{{time}}",Gv(o,t))},Qn={p:Gv,P:i2};var s2=/^D+$/,a2=/^Y+$/,l2=["D","DD","YY","YYYY"];function Gc(e){return s2.test(e)}function Qc(e){return a2.test(e)}function tl(e,t,r){let n=u2(e,t,r);if(console.warn(n),l2.includes(e))throw new RangeError(n)}function u2(e,t,r){let n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var c2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,f2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p2=/^'([^]*?)'?$/,h2=/''/g,m2=/[a-zA-Z]/;function rl(e,t,r){let n=Oe(),o=r?.locale??n.locale??Qt,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=b(e,r?.in);if(!yt(a))throw new RangeError("Invalid time value");let l=t.match(f2).map(c=>{let f=c[0];if(f==="p"||f==="P"){let p=Qn[f];return p(c,o.formatLong)}return c}).join("").match(c2).map(c=>{if(c==="''")return{isToken:!1,value:"'"};let f=c[0];if(f==="'")return{isToken:!1,value:d2(c)};if(el[f])return{isToken:!0,value:c};if(f.match(m2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:c}});o.localize.preprocessor&&(l=o.localize.preprocessor(a,l));let u={firstWeekContainsDate:i,weekStartsOn:s,locale:o};return l.map(c=>{if(!c.isToken)return c.value;let f=c.value;(!r?.useAdditionalWeekYearTokens&&Qc(f)||!r?.useAdditionalDayOfYearTokens&&Gc(f))&&tl(f,t,String(e));let p=el[f[0]];return p(a,f,o.localize,u)}).join("")}function d2(e){let t=e.match(p2);return t?t[1].replace(h2,"'"):e}var Nhe=rl;function Jc(e,t,r){let n=Oe(),o=r?.locale??n.locale??Qt,i=2520,s=At(e,t);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[l,u]=ne(r?.in,...s>0?[t,e]:[e,t]),c=Vr(u,l),f=(He(u)-He(l))/1e3,p=Math.round((c-f)/60),h;if(p<2)return r?.includeSeconds?c<5?o.formatDistance("lessThanXSeconds",5,a):c<10?o.formatDistance("lessThanXSeconds",10,a):c<20?o.formatDistance("lessThanXSeconds",20,a):c<40?o.formatDistance("halfAMinute",0,a):c<60?o.formatDistance("lessThanXMinutes",1,a):o.formatDistance("xMinutes",1,a):p===0?o.formatDistance("lessThanXMinutes",1,a):o.formatDistance("xMinutes",p,a);if(p<45)return o.formatDistance("xMinutes",p,a);if(p<90)return o.formatDistance("aboutXHours",1,a);if(p<as){let m=Math.round(p/60);return o.formatDistance("aboutXHours",m,a)}else{if(p<i)return o.formatDistance("xDays",1,a);if(p<zn){let m=Math.round(p/as);return o.formatDistance("xDays",m,a)}else if(p<zn*2)return h=Math.round(p/zn),o.formatDistance("aboutXMonths",h,a)}if(h=Yn(u,l),h<12){let m=Math.round(p/zn);return o.formatDistance("xMonths",m,a)}else{let m=h%12,d=Math.trunc(h/12);return m<3?o.formatDistance("aboutXYears",d,a):m<9?o.formatDistance("overXYears",d,a):o.formatDistance("almostXYears",d+1,a)}}var Whe=Jc;function Xc(e,t,r){let n=Oe(),o=r?.locale??n.locale??Qt,i=At(e,t);if(isNaN(i))throw new RangeError("Invalid time value");let s=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:i}),[a,l]=ne(r?.in,...i>0?[t,e]:[e,t]),u=Dt(r?.roundingMethod??"round"),c=l.getTime()-a.getTime(),f=c/Et,p=He(l)-He(a),h=(c-p)/Et,m=r?.unit,d;if(m?d=m:f<1?d="second":f<60?d="minute":f<as?d="hour":h<zn?d="day":h<Td?d="month":d="year",d==="second"){let g=u(c/1e3);return o.formatDistance("xSeconds",g,s)}else if(d==="minute"){let g=u(f);return o.formatDistance("xMinutes",g,s)}else if(d==="hour"){let g=u(f/60);return o.formatDistance("xHours",g,s)}else if(d==="day"){let g=u(h/as);return o.formatDistance("xDays",g,s)}else if(d==="month"){let g=u(h/zn);return g===12&&m!=="month"?o.formatDistance("xYears",1,s):o.formatDistance("xMonths",g,s)}else{let g=u(h/Td);return o.formatDistance("xYears",g,s)}}var eme=Xc;function Qv(e,t){return Jc(e,ye(e),t)}var ome=Qv;function Jv(e,t){return Xc(e,ye(e),t)}var lme=Jv;var g2=["years","months","weeks","days","hours","minutes","seconds"];function Xv(e,t){let r=Oe(),n=t?.locale??r.locale??Qt,o=t?.format??g2,i=t?.zero??!1,s=t?.delimiter??" ";return n.formatDistance?o.reduce((l,u)=>{let c=`x${u.replace(/(^.)/,p=>p.toUpperCase())}`,f=e[u];return f!==void 0&&(i||e[u])?l.concat(n.formatDistance(c,f)):l},[]).join(s):""}var pme=Xv;function Zv(e,t){let r=b(e,t?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let n=t?.format??"extended",o=t?.representation??"complete",i="",s="",a=n==="extended"?"-":"",l=n==="extended"?":":"";if(o!=="time"){let u=K(r.getDate(),2),c=K(r.getMonth()+1,2);i=`${K(r.getFullYear(),4)}${a}${c}${a}${u}`}if(o!=="date"){let u=r.getTimezoneOffset();if(u!==0){let d=Math.abs(u),g=K(Math.trunc(d/60),2),y=K(d%60,2);s=`${u<0?"+":"-"}${g}:${y}`}else s="Z";let c=K(r.getHours(),2),f=K(r.getMinutes(),2),p=K(r.getSeconds(),2),h=i===""?"":"T",m=[c,f,p].join(l);i=`${i}${h}${m}${s}`}return i}var gme=Zv;function Kv(e,t){let r=b(e,t?.in);if(!yt(r))throw new RangeError("Invalid time value");let n=t?.format??"extended",o=t?.representation??"complete",i="",s=n==="extended"?"-":"",a=n==="extended"?":":"";if(o!=="time"){let l=K(r.getDate(),2),u=K(r.getMonth()+1,2);i=`${K(r.getFullYear(),4)}${s}${u}${s}${l}`}if(o!=="date"){let l=K(r.getHours(),2),u=K(r.getMinutes(),2),c=K(r.getSeconds(),2);i=`${i}${i===""?"":" "}${l}${a}${u}${a}${c}`}return i}var vme=Kv;function eS(e){let{years:t=0,months:r=0,days:n=0,hours:o=0,minutes:i=0,seconds:s=0}=e;return`P${t}Y${r}M${n}DT${o}H${i}M${s}S`}var kme=eS;function tS(e,t){let r=b(e,t?.in);if(!yt(r))throw new RangeError("Invalid time value");let n=t?.fractionDigits??0,o=K(r.getDate(),2),i=K(r.getMonth()+1,2),s=r.getFullYear(),a=K(r.getHours(),2),l=K(r.getMinutes(),2),u=K(r.getSeconds(),2),c="";if(n>0){let h=r.getMilliseconds(),m=Math.trunc(h*Math.pow(10,n-3));c="."+K(m,n)}let f="",p=r.getTimezoneOffset();if(p!==0){let h=Math.abs(p),m=K(Math.trunc(h/60),2),d=K(h%60,2);f=`${p<0?"+":"-"}${m}:${d}`}else f="Z";return`${s}-${i}-${o}T${a}:${l}:${u}${c}${f}`}var Cme=tS;var x2=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],y2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function rS(e){let t=b(e);if(!yt(t))throw new RangeError("Invalid time value");let r=x2[t.getUTCDay()],n=K(t.getUTCDate(),2),o=y2[t.getUTCMonth()],i=t.getUTCFullYear(),s=K(t.getUTCHours(),2),a=K(t.getUTCMinutes(),2),l=K(t.getUTCSeconds(),2);return`${r}, ${n} ${o} ${i} ${s}:${a}:${l} GMT`}var Pme=rS;function nS(e,t,r){let[n,o]=ne(r?.in,e,t),i=Oe(),s=r?.locale??i.locale??Qt,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=ht(n,o);if(isNaN(l))throw new RangeError("Invalid time value");let u;l<-6?u="other":l<-1?u="lastWeek":l<0?u="yesterday":l<1?u="today":l<2?u="tomorrow":l<7?u="nextWeek":u="other";let c=s.formatRelative(u,n,o,{locale:s,weekStartsOn:a});return rl(n,c,{locale:s,weekStartsOn:a})}var Ume=nS;function oS(e,t){return b(e*1e3,t?.in)}var qme=oS;function Zc(e,t){return b(e,t?.in).getDate()}var Yme=Zc;function Jn(e,t){return b(e,t?.in).getDay()}var Qme=Jn;function Kc(e,t){let r=b(e,t?.in),n=r.getFullYear(),o=r.getMonth(),i=L(r,0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}var Kme=Kc;function ef(e,t){let n=b(e,t?.in).getFullYear();return n%400===0||n%4===0&&n%100!==0}var rde=ef;function iS(e,t){let r=b(e,t?.in);return Number.isNaN(+r)?NaN:ef(r)?366:365}var sde=iS;function sS(e,t){let n=b(e,t?.in).getFullYear();return Math.floor(n/10)*10}var ude=sS;function tf(){return Object.assign({},Oe())}var pde=tf;function aS(e,t){return b(e,t?.in).getHours()}var dde=aS;function rf(e,t){let r=b(e,t?.in).getDay();return r===0?7:r}var yde=rf;function lS(e,t){let r=or(e,t),o=+or(Hn(r,60))-+r;return Math.round(o/jr)}var kde=lS;function uS(e){return b(e).getMilliseconds()}var Ade=uS;function cS(e,t){return b(e,t?.in).getMinutes()}var Ode=cS;function fS(e,t){return b(e,t?.in).getMonth()}var Ide=fS;function pS(e,t){let[r,n]=[+b(e.start),+b(e.end)].sort((f,p)=>f-p),[o,i]=[+b(t.start),+b(t.end)].sort((f,p)=>f-p);if(!(r<i&&o<n))return 0;let a=o<r?r:o,l=a-He(a),u=i>n?n:i,c=u-He(u);return Math.ceil((c-l)/Sc)}var Rde=pS;function hS(e){return b(e).getSeconds()}var Ude=hS;function mS(e){return+b(e)}var qde=mS;function dS(e){return Math.trunc(+b(e)/1e3)}var Yde=dS;function gS(e,t){let r=Oe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Zc(b(e,t?.in));if(isNaN(o))return NaN;let i=Jn(Vn(e,t)),s=n-i;s<=0&&(s+=7);let a=o-s;return Math.ceil(a/7)+1}var Kde=gS;function nf(e,t){let r=b(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),b(r,t?.in)}var rge=nf;function xS(e,t){let r=b(e,t?.in);return Yo(nf(r,t),Vn(r,t),t)+1}var lge=xS;function yS(e,t){return b(e,t?.in).getFullYear()}var fge=yS;function bS(e){return Math.trunc(e*nr)}var mge=bS;function wS(e){return Math.trunc(e*kc)}var xge=wS;function vS(e){return Math.trunc(e*Ho)}var wge=vS;function SS(e,t,r){let[n,o]=ne(r?.in,e,t);if(isNaN(+n))throw new TypeError("Start date is invalid");if(isNaN(+o))throw new TypeError("End date is invalid");if(r?.assertPositive&&+n>+o)throw new TypeError("End date must be after start date");return{start:n,end:o}}var kge=SS;function kS(e,t){let{start:r,end:n}=mt(t?.in,e),o={},i=jc(n,r);i&&(o.years=i);let s=jn(r,{years:o.years}),a=Yn(n,s);a&&(o.months=a);let l=jn(s,{months:o.months}),u=ps(n,l);u&&(o.days=u);let c=jn(l,{days:o.days}),f=Vo(n,c);f&&(o.hours=f);let p=jn(c,{hours:o.hours}),h=Go(n,p);h&&(o.minutes=h);let m=jn(p,{minutes:o.minutes}),d=Vr(n,m);return d&&(o.seconds=d),o}var Pge=kS;function TS(e,t,r){let n;return b2(t)?n=t:r=t,new Intl.DateTimeFormat(r?.locale,n).format(b(e))}function b2(e){return e!==void 0&&!("locale"in e)}var Lge=TS;function ES(e,t,r){let n=0,o,[i,s]=ne(r?.in,e,t);if(r?.unit)o=r?.unit,o==="second"?n=Vr(i,s):o==="minute"?n=Go(i,s):o==="hour"?n=Vo(i,s):o==="day"?n=ht(i,s):o==="week"?n=Yo(i,s):o==="month"?n=Wo(i,s):o==="quarter"?n=fs(i,s):o==="year"&&(n=Wn(i,s));else{let l=Vr(i,s);Math.abs(l)<ls?(n=Vr(i,s),o="second"):Math.abs(l)<Ho?(n=Go(i,s),o="minute"):Math.abs(l)<wc&&Math.abs(ht(i,s))<1?(n=Vo(i,s),o="hour"):Math.abs(l)<sv&&(n=ht(i,s))&&Math.abs(n)<7?o="day":Math.abs(l)<Ad?(n=Yo(i,s),o="week"):Math.abs(l)<av?(n=Wo(i,s),o="month"):Math.abs(l)<Ed?fs(i,s)<4?(n=fs(i,s),o="quarter"):(n=Wn(i,s),o="year"):(n=Wn(i,s),o="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(n,o)}var Gge=ES;function AS(e,t){return+b(e)>+b(t)}var Xge=AS;function DS(e,t){return+b(e)<+b(t)}var exe=DS;function CS(e,t){return+b(e)==+b(t)}var nxe=CS;function OS(e,t,r){let n=new Date(e,t,r);return n.getFullYear()===e&&n.getMonth()===t&&n.getDate()===r}var ixe=OS;function MS(e,t){return b(e,t?.in).getDate()===1}var lxe=MS;function _S(e,t){return b(e,t?.in).getDay()===5}var fxe=_S;function IS(e){return+b(e)>Date.now()}var mxe=IS;function of(e,t){let r=w2(t)?new t(0):L(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}function w2(e){return typeof e=="function"&&e.prototype?.constructor===e}var xxe=of;var v2=10,sf=class{subPriority=0;validate(t,r){return!0}},af=class extends sf{constructor(t,r,n,o,i){super(),this.value=t,this.validateValue=r,this.setValue=n,this.priority=o,i&&(this.subPriority=i)}validate(t,r){return this.validateValue(t,this.value,r)}set(t,r,n){return this.setValue(t,r,this.value,n)}},lf=class extends sf{priority=v2;subPriority=-1;constructor(t,r){super(),this.context=t||(n=>L(r,n))}set(t,r){return r.timestampIsSet?t:L(t,of(t,this.context))}};var X=class{run(t,r,n,o){let i=this.parse(t,r,n,o);return i?{setter:new af(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,r,n){return!0}};var uf=class extends X{priority=140;parse(t,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,r,n){return r.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]};var Te={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}/},dr={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 Me(e,t){return e&&{value:t(e.value),rest:e.rest}}function ve(e,t){let r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function gr(e,t){let r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};let n=r[1]==="+"?1:-1,o=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:n*(o*nr+i*Et+s*ss),rest:t.slice(r[0].length)}}function cf(e){return ve(Te.anyDigitsSigned,e)}function ge(e,t){switch(e){case 1:return ve(Te.singleDigit,t);case 2:return ve(Te.twoDigits,t);case 3:return ve(Te.threeDigits,t);case 4:return ve(Te.fourDigits,t);default:return ve(new RegExp("^\\d{1,"+e+"}"),t)}}function ks(e,t){switch(e){case 1:return ve(Te.singleDigitSigned,t);case 2:return ve(Te.twoDigitsSigned,t);case 3:return ve(Te.threeDigitsSigned,t);case 4:return ve(Te.fourDigitsSigned,t);default:return ve(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Ts(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ff(e,t){let r=t>0,n=r?t:1-t,o;if(n<=50)o=e||100;else{let i=n+50,s=Math.trunc(i/100)*100,a=e>=i%100;o=e+s-(a?100:0)}return r?o:1-o}function pf(e){return e%400===0||e%4===0&&e%100!==0}var hf=class extends X{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,r,n){let o=i=>({year:i,isTwoDigitYear:r==="yy"});switch(r){case"y":return Me(ge(4,t),o);case"yo":return Me(n.ordinalNumber(t,{unit:"year"}),o);default:return Me(ge(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n){let o=t.getFullYear();if(n.isTwoDigitYear){let s=ff(n.year,o);return t.setFullYear(s,0,1),t.setHours(0,0,0,0),t}let i=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}};var mf=class extends X{priority=130;parse(t,r,n){let o=i=>({year:i,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Me(ge(4,t),o);case"Yo":return Me(n.ordinalNumber(t,{unit:"year"}),o);default:return Me(ge(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n,o){let i=Gn(t,o);if(n.isTwoDigitYear){let a=ff(n.year,i);return t.setFullYear(a,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Ie(t,o)}let s=!("era"in r)||r.era===1?n.year:1-n.year;return t.setFullYear(s,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Ie(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var df=class extends X{priority=130;parse(t,r){return r==="R"?ks(4,t):ks(r.length,t)}set(t,r,n){let o=L(t,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),rt(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var gf=class extends X{priority=130;parse(t,r){return r==="u"?ks(4,t):ks(r.length,t)}set(t,r,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var xf=class extends X{priority=120;parse(t,r,n){switch(r){case"Q":case"QQ":return ge(r.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var yf=class extends X{priority=120;parse(t,r,n){switch(r){case"q":case"qq":return ge(r.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,n){return t.setMonth((n-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var bf=class extends X{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,r,n){let o=i=>i-1;switch(r){case"M":return Me(ve(Te.month,t),o);case"MM":return Me(ge(2,t),o);case"Mo":return Me(n.ordinalNumber(t,{unit:"month"}),o);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}};var wf=class extends X{priority=110;parse(t,r,n){let o=i=>i-1;switch(r){case"L":return Me(ve(Te.month,t),o);case"LL":return Me(ge(2,t),o);case"Lo":return Me(n.ordinalNumber(t,{unit:"month"}),o);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function vf(e,t,r){let n=b(e,r?.in),o=vs(n,r)-t;return n.setDate(n.getDate()-o*7),b(n,r?.in)}var lye=vf;var Sf=class extends X{priority=100;parse(t,r,n){switch(r){case"w":return ve(Te.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return ge(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n,o){return Ie(vf(t,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function kf(e,t,r){let n=b(e,r?.in),o=ws(n,r)-t;return n.setDate(n.getDate()-o*7),n}var yye=kf;var Tf=class extends X{priority=100;parse(t,r,n){switch(r){case"I":return ve(Te.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return ge(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n){return rt(kf(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var S2=[31,28,31,30,31,30,31,31,30,31,30,31],k2=[31,29,31,30,31,30,31,31,30,31,30,31],Ef=class extends X{priority=90;subPriority=1;parse(t,r,n){switch(r){case"d":return ve(Te.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return ge(r.length,t)}}validate(t,r){let n=t.getFullYear(),o=pf(n),i=t.getMonth();return o?r>=1&&r<=k2[i]:r>=1&&r<=S2[i]}set(t,r,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var Af=class extends X{priority=90;subpriority=1;parse(t,r,n){switch(r){case"D":case"DD":return ve(Te.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return ge(r.length,t)}}validate(t,r){let n=t.getFullYear();return pf(n)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function Xn(e,t,r){let n=Oe(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=b(e,r?.in),s=i.getDay(),l=(t%7+7)%7,u=7-o,c=t<0||t>6?t-(s+u)%7:(l+u)%7-(s+u)%7;return it(i,c,r)}var Rye=Xn;var Df=class extends X{priority=90;parse(t,r,n){switch(r){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=Xn(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};var Cf=class extends X{priority=90;parse(t,r,n,o){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+a};switch(r){case"e":case"ee":return Me(ge(r.length,t),i);case"eo":return Me(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=Xn(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var Of=class extends X{priority=90;parse(t,r,n,o){let i=s=>{let a=Math.floor((s-1)/7)*7;return(s+o.weekStartsOn+6)%7+a};switch(r){case"c":case"cc":return Me(ge(r.length,t),i);case"co":return Me(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,n,o){return t=Xn(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function Mf(e,t,r){let n=b(e,r?.in),o=rf(n,r),i=t-o;return it(n,i,r)}var Kye=Mf;var _f=class extends X{priority=90;parse(t,r,n){let o=i=>i===0?7:i;switch(r){case"i":case"ii":return ge(r.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return Me(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return Me(n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Me(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return Me(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,r){return r>=1&&r<=7}set(t,r,n){return t=Mf(t,n),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var If=class extends X{priority=80;parse(t,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(Ts(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]};var Pf=class extends X{priority=80;parse(t,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(Ts(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]};var Ff=class extends X{priority=80;parse(t,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,n){return t.setHours(Ts(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]};var Nf=class extends X{priority=70;parse(t,r,n){switch(r){case"h":return ve(Te.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return ge(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,n){let o=t.getHours()>=12;return o&&n<12?t.setHours(n+12,0,0,0):!o&&n===12?t.setHours(0,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]};var Lf=class extends X{priority=70;parse(t,r,n){switch(r){case"H":return ve(Te.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return ge(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]};var Rf=class extends X{priority=70;parse(t,r,n){switch(r){case"K":return ve(Te.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return ge(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]};var Bf=class extends X{priority=70;parse(t,r,n){switch(r){case"k":return ve(Te.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return ge(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,n){let o=n<=24?n%24:n;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]};var $f=class extends X{priority=60;parse(t,r,n){switch(r){case"m":return ve(Te.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return ge(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]};var Uf=class extends X{priority=50;parse(t,r,n){switch(r){case"s":return ve(Te.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return ge(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]};var zf=class extends X{priority=30;parse(t,r){let n=o=>Math.trunc(o*Math.pow(10,-r.length+3));return Me(ge(r.length,t),n)}set(t,r,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]};var jf=class extends X{priority=10;parse(t,r){switch(r){case"X":return gr(dr.basicOptionalMinutes,t);case"XX":return gr(dr.basic,t);case"XXXX":return gr(dr.basicOptionalSeconds,t);case"XXXXX":return gr(dr.extendedOptionalSeconds,t);case"XXX":default:return gr(dr.extended,t)}}set(t,r,n){return r.timestampIsSet?t:L(t,t.getTime()-He(t)-n)}incompatibleTokens=["t","T","x"]};var qf=class extends X{priority=10;parse(t,r){switch(r){case"x":return gr(dr.basicOptionalMinutes,t);case"xx":return gr(dr.basic,t);case"xxxx":return gr(dr.basicOptionalSeconds,t);case"xxxxx":return gr(dr.extendedOptionalSeconds,t);case"xxx":default:return gr(dr.extended,t)}}set(t,r,n){return r.timestampIsSet?t:L(t,t.getTime()-He(t)-n)}incompatibleTokens=["t","T","X"]};var Hf=class extends X{priority=40;parse(t){return cf(t)}set(t,r,n){return[L(t,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Wf=class extends X{priority=20;parse(t){return cf(t)}set(t,r,n){return[L(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"};var Yf={G:new uf,y:new hf,Y:new mf,R:new df,u:new gf,Q:new xf,q:new yf,M:new bf,L:new wf,w:new Sf,I:new Tf,d:new Ef,D:new Af,E:new Df,e:new Cf,c:new Of,i:new _f,a:new If,b:new Pf,B:new Ff,h:new Nf,H:new Lf,K:new Rf,k:new Bf,m:new $f,s:new Uf,S:new zf,X:new jf,x:new qf,t:new Hf,T:new Wf};var T2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,E2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A2=/^'([^]*?)'?$/,D2=/''/g,C2=/\S/,O2=/[a-zA-Z]/;function Vf(e,t,r,n){let o=()=>L(n?.in||r,NaN),i=tf(),s=n?.locale??i.locale??Qt,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,l=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return e?o():b(r,n?.in);let u={firstWeekContainsDate:a,weekStartsOn:l,locale:s},c=[new lf(n?.in,r)],f=t.match(E2).map(g=>{let y=g[0];if(y in Qn){let S=Qn[y];return S(g,s.formatLong)}return g}).join("").match(T2),p=[];for(let g of f){!n?.useAdditionalWeekYearTokens&&Qc(g)&&tl(g,t,e),!n?.useAdditionalDayOfYearTokens&&Gc(g)&&tl(g,t,e);let y=g[0],S=Yf[y];if(S){let{incompatibleTokens:k}=S;if(Array.isArray(k)){let R=p.find(T=>k.includes(T.token)||T.token===y);if(R)throw new RangeError(`The format string mustn't contain \`${R.fullToken}\` and \`${g}\` at the same time`)}else if(S.incompatibleTokens==="*"&&p.length>0)throw new RangeError(`The format string mustn't contain \`${g}\` and any other token at the same time`);p.push({token:y,fullToken:g});let N=S.run(e,g,s.match,u);if(!N)return o();c.push(N.setter),e=N.rest}else{if(y.match(O2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(g==="''"?g="'":y==="'"&&(g=M2(g)),e.indexOf(g)===0)e=e.slice(g.length);else return o()}}if(e.length>0&&C2.test(e))return o();let h=c.map(g=>g.priority).sort((g,y)=>y-g).filter((g,y,S)=>S.indexOf(g)===y).map(g=>c.filter(y=>y.priority===g).sort((y,S)=>S.subPriority-y.subPriority)).map(g=>g[0]),m=b(r,n?.in);if(isNaN(+m))return o();let d={};for(let g of h){if(!g.validate(m,u))return o();let y=g.set(m,d,u);Array.isArray(y)?(m=y[0],Object.assign(d,y[1])):m=y}return m}function M2(e){return e.match(A2)[1].replace(D2,"'")}var V0e=Vf;function PS(e,t,r){return yt(Vf(e,t,new Date,r))}var X0e=PS;function FS(e,t){return b(e,t?.in).getDay()===1}var ewe=FS;function NS(e){return+b(e)<Date.now()}var nwe=NS;function nl(e,t){let r=b(e,t?.in);return r.setMinutes(0,0,0),r}var swe=nl;function Gf(e,t,r){let[n,o]=ne(r?.in,e,t);return+nl(n)==+nl(o)}var cwe=Gf;function Es(e,t,r){let[n,o]=ne(r?.in,e,t);return+Ie(n,r)==+Ie(o,r)}var mwe=Es;function Qf(e,t,r){return Es(e,t,{...r,weekStartsOn:1})}var xwe=Qf;function LS(e,t,r){let[n,o]=ne(r?.in,e,t);return+or(n)==+or(o)}var vwe=LS;function ol(e,t){let r=b(e,t?.in);return r.setSeconds(0,0),r}var Twe=ol;function Jf(e,t){return+ol(e)==+ol(t)}var Dwe=Jf;function Xf(e,t,r){let[n,o]=ne(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}var Mwe=Xf;function Zf(e,t,r){let[n,o]=ne(r?.in,e,t);return+Gr(n)==+Gr(o)}var Fwe=Zf;function il(e,t){let r=b(e,t?.in);return r.setMilliseconds(0),r}var Rwe=il;function Kf(e,t){return+il(e)==+il(t)}var Uwe=Kf;function ep(e,t,r){let[n,o]=ne(r?.in,e,t);return n.getFullYear()===o.getFullYear()}var qwe=ep;function RS(e,t){return Gf(b(e,t?.in),ye(t?.in||e))}var Gwe=RS;function BS(e,t){return Qf(L(t?.in||e,e),ye(t?.in||e))}var Kwe=BS;function $S(e){return Jf(e,ye(e))}var nve=$S;function US(e,t){return Xf(L(t?.in||e,e),ye(t?.in||e))}var lve=US;function zS(e,t){return Zf(L(t?.in||e,e),ye(t?.in||e))}var hve=zS;function jS(e){return Kf(e,ye(e))}var xve=jS;function qS(e,t){return Es(L(t?.in||e,e),ye(t?.in||e),t)}var Sve=qS;function HS(e,t){return ep(L(t?.in||e,e),ye(t?.in||e))}var Dve=HS;function WS(e,t){return b(e,t?.in).getDay()===4}var Mve=WS;function YS(e,t){return Yr(L(t?.in||e,e),ye(t?.in||e))}var Nve=YS;function VS(e,t){return Yr(e,it(ye(t?.in||e),1),t)}var Uve=VS;function GS(e,t){return b(e,t?.in).getDay()===2}var qve=GS;function QS(e,t){return b(e,t?.in).getDay()===3}var Yve=QS;function JS(e,t,r){let n=+b(e,r?.in),[o,i]=[+b(t.start,r?.in),+b(t.end,r?.in)].sort((s,a)=>s-a);return n>=o&&n<=i}var Qve=JS;function Zn(e,t,r){return it(e,-t,r)}var Zve=Zn;function XS(e,t){return Yr(L(t?.in||e,e),Zn(ye(t?.in||e),1))}var oSe=XS;function ZS(e,t){let r=b(e,t?.in),n=r.getFullYear(),o=9+Math.floor(n/10)*10;return r.setFullYear(o+1,0,0),r.setHours(0,0,0,0),b(r,t?.in)}var aSe=ZS;function tp(e,t){let r=Oe(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=b(e,t?.in),i=o.getDay(),s=(i<n?-7:0)+6-(i-n);return o.setHours(0,0,0,0),o.setDate(o.getDate()+s),o}var fSe=tp;function KS(e,t){return tp(e,{...t,weekStartsOn:1})}var mSe=KS;function ek(e,t){let r=zt(e,t),n=L(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=rt(n,t);return o.setDate(o.getDate()-1),o}var bSe=ek;function tk(e,t){let r=b(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(0,0,0,0),r}var SSe=tk;function rk(e,t){let r=b(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),r}var ESe=rk;var _2=/(\w)\1*|''|'(''|[^'])+('|$)|./g,I2=/^'([^]*?)'?$/,P2=/''/g,F2=/[a-zA-Z]/;function nk(e,t){let r=b(e);if(!yt(r))throw new RangeError("Invalid time value");let n=t.match(_2);return n?n.map(i=>{if(i==="''")return"'";let s=i[0];if(s==="'")return N2(i);let a=ir[s];if(a)return a(r,i);if(s.match(F2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return i}).join(""):""}function N2(e){let t=e.match(I2);return t?t[1].replace(P2,"'"):e}var MSe=nk;function ok({years:e,months:t,weeks:r,days:n,hours:o,minutes:i,seconds:s}){let a=0;e&&(a+=e*365.2425),t&&(a+=t*(365.2425/12)),r&&(a+=r*7),n&&(a+=n);let l=a*24*60*60;return o&&(l+=o*60*60),i&&(l+=i*60),s&&(l+=s),Math.trunc(l*1e3)}var PSe=ok;function ik(e){let t=e/nr;return Math.trunc(t)}var LSe=ik;function sk(e){let t=e/Et;return Math.trunc(t)}var $Se=sk;function ak(e){let t=e/ss;return Math.trunc(t)}var jSe=ak;function lk(e){let t=e/kc;return Math.trunc(t)}var WSe=lk;function uk(e){return Math.trunc(e*Et)}var GSe=uk;function ck(e){return Math.trunc(e*ls)}var XSe=ck;function fk(e){let t=e/Tc;return Math.trunc(t)}var eke=fk;function pk(e){let t=e/Ec;return Math.trunc(t)}var nke=pk;function Ct(e,t,r){let n=t-Jn(e,r);return n<=0&&(n+=7),it(e,n,r)}var ake=Ct;function hk(e,t){return Ct(e,5,t)}var cke=hk;function mk(e,t){return Ct(e,1,t)}var hke=mk;function dk(e,t){return Ct(e,6,t)}var gke=dk;function gk(e,t){return Ct(e,0,t)}var bke=gk;function xk(e,t){return Ct(e,4,t)}var Ske=xk;function yk(e,t){return Ct(e,2,t)}var Eke=yk;function bk(e,t){return Ct(e,3,t)}var Cke=bk;function vk(e,t){let r=()=>L(t?.in,NaN),n=t?.additionalDigits??2,o=$2(e),i;if(o.date){let u=U2(o.date,n);i=z2(u.restDateString,u.year)}if(!i||isNaN(+i))return r();let s=+i,a=0,l;if(o.time&&(a=j2(o.time),isNaN(a)))return r();if(o.timezone){if(l=q2(o.timezone),isNaN(l))return r()}else{let u=new Date(s+a),c=b(0,t?.in);return c.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),c.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),c}return b(s+a+l,t?.in)}var rp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},L2=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,R2=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,B2=/^([+-])(\d{2})(?::?(\d{2}))?$/;function $2(e){let t={},r=e.split(rp.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],rp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(rp.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){let o=rp.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}function U2(e,t){let r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};let o=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((n[1]||n[2]).length)}}function z2(e,t){if(t===null)return new Date(NaN);let r=e.match(L2);if(!r)return new Date(NaN);let n=!!r[4],o=sl(r[1]),i=sl(r[2])-1,s=sl(r[3]),a=sl(r[4]),l=sl(r[5])-1;if(n)return G2(t,a,l)?H2(t,a,l):new Date(NaN);{let u=new Date(0);return!Y2(t,i,s)||!V2(t,o)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(o,s)),u)}}function sl(e){return e?parseInt(e):1}function j2(e){let t=e.match(R2);if(!t)return NaN;let r=Cd(t[1]),n=Cd(t[2]),o=Cd(t[3]);return Q2(r,n,o)?r*nr+n*Et+o*1e3:NaN}function Cd(e){return e&&parseFloat(e.replace(",","."))||0}function q2(e){if(e==="Z")return 0;let t=e.match(B2);if(!t)return 0;let r=t[1]==="+"?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return J2(n,o)?r*(n*nr+o*Et):NaN}function H2(e,t,r){let n=new Date(0);n.setUTCFullYear(e,0,4);let o=n.getUTCDay()||7,i=(t-1)*7+r+1-o;return n.setUTCDate(n.getUTCDate()+i),n}var W2=[31,null,31,30,31,30,31,31,30,31,30,31];function wk(e){return e%400===0||e%4===0&&e%100!==0}function Y2(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(W2[t]||(wk(e)?29:28))}function V2(e,t){return t>=1&&t<=(wk(e)?366:365)}function G2(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function Q2(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function J2(e,t){return t>=0&&t<=59}var Pke=vk;function Sk(e,t){let r=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return r?b(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4]-(+r[9]||0)*(r[8]=="-"?-1:1),+r[5]-(+r[10]||0)*(r[8]=="-"?-1:1),+r[6],+((r[7]||"0")+"00").substring(0,3)),t?.in):b(NaN,t?.in)}var Lke=Sk;function Ot(e,t,r){let n=Jn(e,r)-t;return n<=0&&(n+=7),Zn(e,n,r)}var Uke=Ot;function kk(e,t){return Ot(e,5,t)}var qke=kk;function Tk(e,t){return Ot(e,1,t)}var Yke=Tk;function Ek(e,t){return Ot(e,6,t)}var Qke=Ek;function Ak(e,t){return Ot(e,0,t)}var Zke=Ak;function Dk(e,t){return Ot(e,4,t)}var t1e=Dk;function Ck(e,t){return Ot(e,2,t)}var o1e=Ck;function Ok(e,t){return Ot(e,3,t)}var a1e=Ok;function Mk(e){return Math.trunc(e*Tc)}var c1e=Mk;function _k(e){let t=e/Ac;return Math.trunc(t)}var h1e=_k;function Ik(e,t){let r=t?.nearestTo??1;if(r<1||r>12)return L(t?.in||e,NaN);let n=b(e,t?.in),o=n.getMinutes()/60,i=n.getSeconds()/60/60,s=n.getMilliseconds()/1e3/60/60,a=n.getHours()+o+i+s,l=t?.roundingMethod??"round",c=Dt(l)(a/r)*r;return n.setHours(c,0,0,0),n}var y1e=Ik;function Pk(e,t){let r=t?.nearestTo??1;if(r<1||r>30)return L(e,NaN);let n=b(e,t?.in),o=n.getSeconds()/60,i=n.getMilliseconds()/1e3/60,s=n.getMinutes()+o+i,a=t?.roundingMethod??"round",u=Dt(a)(s/r)*r;return n.setMinutes(u,0,0),n}var k1e=Pk;function Fk(e){let t=e/Ho;return Math.trunc(t)}var A1e=Fk;function Nk(e){return e*ss}var O1e=Nk;function Lk(e){let t=e/ls;return Math.trunc(t)}var I1e=Lk;function As(e,t,r){let n=b(e,r?.in),o=n.getFullYear(),i=n.getDate(),s=L(r?.in||e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);let a=Kc(s);return n.setMonth(t,Math.min(i,a)),n}var R1e=As;function Rk(e,t,r){let n=b(e,r?.in);return isNaN(+n)?L(r?.in||e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=As(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}var j1e=Rk;function Bk(e,t,r){let n=b(e,r?.in);return n.setDate(t),n}var W1e=Bk;function $k(e,t,r){let n=b(e,r?.in);return n.setMonth(0),n.setDate(t),n}var G1e=$k;function Uk(e){let t={},r=Oe();for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]===void 0?delete t[n]:t[n]=e[n]);uv(t)}var X1e=Uk;function zk(e,t,r){let n=b(e,r?.in);return n.setHours(t),n}var eTe=zk;function jk(e,t,r){let n=b(e,r?.in);return n.setMilliseconds(t),n}var nTe=jk;function qk(e,t,r){let n=b(e,r?.in);return n.setMinutes(t),n}var sTe=qk;function Hk(e,t,r){let n=b(e,r?.in),o=Math.trunc(n.getMonth()/3)+1,i=t-o;return As(n,n.getMonth()+i*3)}var cTe=Hk;function Wk(e,t,r){let n=b(e,r?.in);return n.setSeconds(t),n}var hTe=Wk;function Yk(e,t,r){let n=Oe(),o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=ht(b(e,r?.in),Qo(e,r),r),s=L(r?.in||e,0);s.setFullYear(t,0,o),s.setHours(0,0,0,0);let a=Qo(s,r);return a.setDate(a.getDate()+i),a}var wTe=Yk;function Vk(e,t,r){let n=b(e,r?.in);return isNaN(+n)?L(r?.in||e,NaN):(n.setFullYear(t),n)}var TTe=Vk;function Gk(e,t){let r=b(e,t?.in),n=r.getFullYear(),o=Math.floor(n/10)*10;return r.setFullYear(o,0,1),r.setHours(0,0,0,0),r}var DTe=Gk;function Qk(e){return Wr(Date.now(),e)}var MTe=Qk;function Jk(e){let t=ye(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=L(e?.in,0);return i.setFullYear(r,n,o+1),i.setHours(0,0,0,0),i}var FTe=Jk;function Xk(e){let t=ye(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=ye(e?.in);return i.setFullYear(r,n,o-1),i.setHours(0,0,0,0),i}var RTe=Xk;function np(e,t,r){return qr(e,-t,r)}var UTe=np;function Zk(e,t,r){let{years:n=0,months:o=0,weeks:i=0,days:s=0,hours:a=0,minutes:l=0,seconds:u=0}=t,c=np(e,o+n*12,r),f=Zn(c,s+i*7,r),p=l+a*60,m=(u+p*60)*1e3;return L(r?.in||e,+f-m)}var WTe=Zk;function Kk(e,t,r){return Oc(e,-t,r)}var GTe=Kk;function e1(e,t,r){return Mc(e,-t,r)}var XTe=e1;function t1(e,t,r){return qn(e,-t,r)}var eEe=t1;function r1(e,t,r){return us(e,-t,r)}var nEe=r1;function n1(e,t,r){return cs(e,-t,r)}var sEe=n1;function o1(e,t,r){return Pc(e,-t,r)}var uEe=o1;function i1(e,t,r){return Hn(e,-t,r)}var pEe=i1;function s1(e,t,r){return Fc(e,-t,r)}var dEe=s1;function a1(e){return Math.trunc(e*7)}var yEe=a1;function l1(e){return Math.trunc(e*365.2425)}var vEe=l1;function u1(e){return Math.trunc(e*Ec)}var TEe=u1;function c1(e){return Math.trunc(e*Ac)}var DEe=c1;var h1=e=>Number.isFinite(e)?e:0;function X2(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(h1(e*1e3)%1e3),nanoseconds:Math.trunc(h1(e*1e6)%1e3)}}function Z2(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}function Pd(e){switch(typeof e){case"number":{if(Number.isFinite(e))return X2(e);break}case"bigint":return Z2(e)}throw new TypeError("Expected a finite number or bigint")}var K2=e=>e===0||e===0n,eB=(e,t)=>t===1||t===1n?e:`${e}s`,tB=1e-7,rB=24n*60n*60n*1000n;function ll(e,t){let r=typeof e=="bigint";if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");t={...t};let n=e<0?"-":"";e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let o=[],i=(c,f)=>{let p=Math.floor(c*10**f+tB);return(Math.round(p)/10**f).toFixed(f)},s=(c,f,p,h)=>{if(!((o.length===0||!t.colonNotation)&&K2(c)&&!(t.colonNotation&&p==="m"))){if(h??=String(c),t.colonNotation){let m=h.includes(".")?h.split(".")[0].length:h.length,d=o.length>0?2:1;h="0".repeat(Math.max(0,d-m))+h}else h+=t.verbose?" "+eB(f,c):p;o.push(h)}},a=Pd(e),l=BigInt(a.days);if(t.hideYearAndDays?s(BigInt(l)*24n+BigInt(a.hours),"hour","h"):(t.hideYear?s(l,"day","d"):(s(l/365n,"year","y"),s(l%365n,"day","d")),s(Number(a.hours),"hour","h")),s(Number(a.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3){let c=Number(a.seconds),f=Number(a.milliseconds),p=Number(a.microseconds),h=Number(a.nanoseconds);if(s(c,"second","s"),t.formatSubMilliseconds)s(f,"millisecond","ms"),s(p,"microsecond","\xB5s"),s(h,"nanosecond","ns");else{let m=f+p/1e3+h/1e6,d=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,g=m>=1?Math.round(m):Math.ceil(m),y=d?m.toFixed(d):g;s(Number.parseFloat(y),"millisecond","ms",y)}}else{let c=(r?Number(e%rB):e)/1e3%60,f=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,p=i(c,f),h=t.keepDecimalsOnWholeSeconds?p:p.replace(/\.0+$/,"");s(Number.parseFloat(h),"second","s",h)}if(o.length===0)return n+"0"+(t.verbose?" milliseconds":"ms");let u=t.colonNotation?":":" ";return typeof t.unitCount=="number"&&(o=o.slice(0,Math.max(t.unitCount,1))),n+o.join(u)}var Xo=je(f1(),1),m1=je(p1(),1);Xo.default.extend(m1.default);var d1=class{get cronArray(){return this.cronExpression.split(" ")}constructor(t){if(this.cronExpression=t,this.cronArray.length<6)throw new Error("CronParser needs second level accuracy")}getNextPartMatch(t,r,n){if(t==="*")return r;if(t.includes("/")){let o=parseInt(t.split("/")[1],10),i=s=>s%o===0?s:i(s+1);return i(r)}if(parseInt(t,10)||t==="0")return parseInt(t,10)}msToNext(){let t=this.cronArray,r=t[0],n=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=new Date,u=l.getSeconds()+1,c=l.getMinutes(),f=l.getHours(),p=l.getDate(),h=l.getMonth(),m=l.getFullYear(),d=this.getNextPartMatch(r,u,59);d<u&&(c=(c+1)%59);let g=this.getNextPartMatch(n,c,59);g<c&&(f=(f+1)%23);let y=this.getNextPartMatch(o,f,23);y<f&&(p=(p+1)%30);let S=p;S<p&&(h=(h+1)%11);let k=h;k<h&&(m=m+1);let N=m;return new Date(N,k,S,y,g,d).getTime()-Date.now()}};var ul=class{constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=new Xa.Cron(r)}checkExecution(){if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let t=this.jobFunction(this.nextExecutionUnix);t instanceof Promise&&t.catch(r=>console.log(r)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()}start(){this.status="started"}stop(){this.status="stopped"}};var Kn={years:(e=1)=>e*3154e7,months:(e=1)=>e*2628e6,weeks:(e=1)=>e*6048e5,days:(e=1)=>e*864e5,hours:(e=1)=>e*36e5,minutes:(e=1)=>e*6e4,seconds:(e=1)=>e*1e3},Fd=e=>{let t=0,r=n=>{t=t+n};return e.years&&r(Kn.years(e.years)),e.months&&r(Kn.months(e.months)),e.weeks&&r(Kn.weeks(e.weeks)),e.days&&r(Kn.days(e.days)),e.hours&&r(Kn.hours(e.hours)),e.minutes&&r(Kn.minutes(e.minutes)),e.seconds&&r(Kn.seconds(e.seconds)),t},Nd=e=>ll(e),nB=e=>al.formatDistanceToNow(new Date(e));var Ld=class{constructor(){this.status="stopped",this.cronjobs=new bt.ObjectMap}addCronjob(t,r){let n=new ul(this,t,r);return this.cronjobs.add(n),this.status==="started"&&n.start(),n}removeCronjob(t){t.stop(),this.cronjobs.remove(t)}start(){if(this.status!=="started"){this.status="started";for(let t of this.cronjobs.getArray())t.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new ce.Timeout(0);do{let t;for(let r of this.cronjobs.getArray())r.checkExecution(),(!t||r.getTimeToNextExecution()<t.getTimeToNextExecution())&&(t=r);t?(this.executionTimeout=new ce.Timeout(t.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${Nd(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new ce.Timeout(1e3),console.log("no cronjobs specified! Checking again in 1 second")),await this.executionTimeout.promise}while(this.status==="started")}stop(){this.status==="started"?(this.status="stopped",this.executionTimeout.cancel()):console.log("You tried to stop a CronManager that was not actually started.");for(let t of this.cronjobs.getArray())t.stop()}};var Rd=class e extends Date{static fromMillis(t){return new e(t)}static fromDate(t){return new e(t.getTime())}static fromEuropeanDate(t){let r=/(.*)\.(.*)\.(.*)/.exec(t),o=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new e(o)}static fromHyphedDate(t){let r=new Date(t).getTime();return new e(r)}static fromEuropeanDateAndTime(t,r="12:00:00",n="Europe/Berlin"){let o=/(.*)\.(.*)\.(.*)/.exec(t),i=u=>`0${u}`.slice(-2),s=`${o[3]}-${i(o[2])}-${i(o[1])}T${r}`,l=Xo.default(s).toDate().getTime();return new e(l)}constructor(t=Date.now()){super(t)}exportToEuropeanDate(){let t=this.exportToUnits();return`${t.dayString}.${t.monthString}.${t.yearString}`}exportToHyphedSortableDate(){let t=this.exportToUnits();return`${t.yearString}-${t.monthString}-${t.dayString}`}exportToUnits(){let t=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return{year:this.getFullYear(),yearString:`${this.getFullYear()}`,month:this.getMonth()+1,monthString:("0"+(this.getMonth()+1)).slice(-2),monthName:t[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(t){return Xo.default(this.getTime()).format(t)}isToday(){return Xo.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=Fd(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var Bd=class{constructor(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}start(){this._started=!0,this._milliStart=Date.now()}stop(){if(this._started===!1){console.log("Hasn't started yet");return}return this._milliDiff=Date.now()-this._milliStart,this.nanoSeconds=this._milliDiff*1e3,this.milliSeconds=this._milliDiff,this}reset(){this.nanoSeconds=null,this.milliSeconds=null,this._milliStart=null,this._milliDiff=null,this._started=!1}};var $d=class{constructor(t){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=t}start(){this.status="started";let t=new Date;this.statusAuthorization=t,(async()=>{for(;this.status==="started"&&this.statusAuthorization===t;)await ce.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(t){this.intervalJobs.push(t)}executeIntervalJobs(){for(let t of this.intervalJobs)t()}};var Cs=class e{static fromMilliSeconds(t){return new e(t)}static fromTimeStamp(t){let r=new e;return r.change=r.milliSeconds-t.milliSeconds,r}constructor(t){this.change=null,t?typeof t=="number"&&(this.date=new Date(t)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(t,r=0){return this.milliSeconds<t.milliSeconds-r}isOlderThan(t,r=0){return this.milliSeconds+r<t.milliSeconds}isYoungerThanOtherTimeStamp(t,r=0){return this.milliSeconds>t.milliSeconds+r}isYoungerThanMilliSeconds(t){let n=new e().epochtime-t,o=new e(n);return this.isYoungerThanOtherTimeStamp(o)}};var Ud=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=ue.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new Cs;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Cs.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 sp=je(ip(),1);var jd=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(t,r){let n=ue.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=ue.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let t=this.executionSlots[0];if(t.mode==="exclusive")await this.executeExclusiveSlot(t),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(t){try{if(t.timeout){let r=await Promise.race([t.funcToExecute(),ce.delayFor(t.timeout).then(()=>{throw new Error("Timeout reached")})]);t.executionDeferred.resolve(r)}else{let r=await t.funcToExecute();t.executionDeferred.resolve(r)}}catch(r){t.executionDeferred.reject(r)}}async executeNonExclusiveSlots(t){let r=t.map(async n=>{try{if(n.timeout){let o=await Promise.race([n.funcToExecute(),ce.delayFor(n.timeout).then(()=>{throw new Error("Timeout reached")})]);n.executionDeferred.resolve(o)}else{let o=await n.funcToExecute();n.executionDeferred.resolve(o)}}catch(o){n.executionDeferred.reject(o)}});await Promise.all(r)}};var qd=class{constructor(t=16){this.hasSpace=new Be.rxjs.Subject,this.itemsAvailable=new Be.rxjs.Subject,this.data=[],this.highWaterMark=t}push(t){this.data.push(t),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}shift(){let t=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),t}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(t=>{if(this.checkSpaceAvailable())t();else{let r=this.hasSpace.subscribe(()=>{r.unsubscribe(),t()})}})}waitForItems(){return new Promise(t=>{if(this.data.length>0)t();else{let r=this.itemsAvailable.subscribe(()=>{r.unsubscribe(),t()})}})}};var cl=class e{constructor(){this.mapObject={}}isUniqueKey(t){return!this.mapObject[t]}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject[t]=r,!0):!1}getByKey(t){return this.mapObject[t]}removeFromMap(t){let r=this.getByKey(t);return delete this.mapObject[t],r}getKeys(){let t=[];for(let r in this.mapObject)this.mapObject[r]&&t.push(r);return t}clean(){this.mapObject={}}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}};var A1=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),Zo=class e{constructor(){this.fastMap=new cl,this.eventSubject=new Be.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=A1("key");return this.addMappedUnique(r,t),this.eventSubject.next({operation:"add",payload:t}),r}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return!!this.getKeyForObject(t)}getKeyForObject(t){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===t)r=n;else continue;return r}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let t=[];for(let r of this.fastMap.getKeys())t.push(this.fastMap.getByKey(r));return t}isEmpty(){return this.fastMap.getKeys().length===0}remove(t){if(this.checkForObject(t)){let r=this.getKeyForObject(t),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let t of this.fastMap.getKeys())this.fastMap.removeFromMap(t)}concat(t){let r=new e;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap),r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap)}};var fl=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(t){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(t)}constructor(t,r,n,o){this.destructionTimer=new st.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new ue.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=t,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&ce.delayFor(this.options.markLostAfterDefault).then(this.markLost)}destroy(){this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options.defaultFullfillment&&this.fullfillInterest(this.options.defaultFullfillment)}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var Hd=class{constructor(t,r={}){this.interestObjectMap=new Zo,this.interestObservable=new Be.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),o,i=new fl(this,t,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===i.comparisonString&&(console.log("info",`interest already exists for ${i.comparisonString}`),s=!0,o=a,o.renew())}),o||(o=i,this.interestObjectMap.add(o)),this.interestObservable.push(o),o}removeInterest(t){let r=this.interestObjectMap.findOneAndRemoveSync(n=>t.comparisonString===n.comparisonString)}checkInterest(t){let r=this.comparisonFunc(t);return this.checkInterestByString(r)}checkInterestByString(t){return!!this.interestObjectMap.findSync(n=>n.comparisonString===t)}informLostInterest(t){let r=this.findInterest(t);r&&r.markLost()}findInterest(t){let r=this.comparisonFunc(t);return this.interestObjectMap.findSync(o=>o.comparisonString===r)}};var Wd=class{constructor(t){this.array=[],this.arrayLimit=t}addOne(t){this.array.unshift(t),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(t){for(let r of t)this.addOne(r)}setLimit(t){this.arrayLimit=t,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let t=0;for(let r of this.array)t=t+r;return t/this.array.length}else return null}};var Yd=class{constructor(){this.referenceObjectMap=new Zo}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var Vd=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){for(let r in this._stringArray)this._stringArray[r]===t&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new rr.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=ue.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var Gd=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new st.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],t(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||t()}add(t){this.storageArray.push(t),this.checkAggregationStatus()}};var Qd=class{constructor(){this.symbolTree=new sp.default}initialize(t){return this.symbolTree.initialize(t)}hasChildren(t){return this.symbolTree.hasChildren(t)}firstChild(t){return this.symbolTree.firstChild(t)}lastChild(t){return this.symbolTree.lastChild(t)}previousSibling(t){return this.symbolTree.previousSibling(t)}nextSibling(t){return this.symbolTree.nextSibling(t)}parent(t){return this.symbolTree.parent(t)}lastInclusiveDescendant(t){return this.symbolTree.lastInclusiveDescendant(t)}preceding(t,r){return this.symbolTree.preceding(t,r)}following(t,r){return this.symbolTree.following(t,r)}childrenToArray(t,r){return this.symbolTree.childrenToArray(t,r)}ancestorsToArray(t,r){return this.symbolTree.ancestorsToArray(t,r)}treeToArray(t,r){return this.symbolTree.treeToArray(t,r)}childrenIterator(t,r){return this.symbolTree.childrenIterator(t,r)}previousSiblingsIterator(t){return this.symbolTree.previousSiblingsIterator(t)}nextSiblingsIterator(t){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(t){this.symbolTree.ancestorsIterator()}treeIterator(t,r){return this.symbolTree.treeIterator(t)}index(t){return this.symbolTree.index(t)}childrenCount(t){return this.symbolTree.childrenCount(t)}compareTreePosition(t,r){return this.compareTreePosition(t,r)}remove(t){return this.symbolTree.remove(t)}insertBefore(t,r){return this.symbolTree.insertBefore(t,r)}insertAfter(t,r){return this.symbolTree.insertAfter(t,r)}prependChild(t,r){return this.symbolTree.prependChild(t,r)}appendChild(t,r){return this.symbolTree.appendChild(t,r)}toJsonWithHierachy(t){let r=this.treeIterator(t,{});for(let n of r)console.log(n)}fromJsonWithHierachy(t){}};var Ms={};te(Ms,{base64ToUint8Array:()=>OB,ensurePureUint8Array:()=>IB,isBufferLike:()=>_B,isUint8Array:()=>MB,uInt8ArrayExtras:()=>DB,uInt8ArrayToBase64:()=>CB});var oo={};te(oo,{areUint8ArraysEqual:()=>hB,assertUint8Array:()=>no,assertUint8ArrayOrArrayBuffer:()=>M1,base64ToString:()=>wB,base64ToUint8Array:()=>F1,compareUint8Arrays:()=>mB,concatUint8Arrays:()=>pB,getUintBE:()=>TB,hexToUint8Array:()=>kB,includes:()=>EB,indexOf:()=>N1,isUint8Array:()=>Jd,stringToBase64:()=>bB,stringToUint8Array:()=>I1,toUint8Array:()=>fB,uint8ArrayToBase64:()=>P1,uint8ArrayToHex:()=>SB,uint8ArrayToString:()=>_1});var sB=Object.prototype.toString,aB="[object Uint8Array]",lB="[object ArrayBuffer]";function D1(e,t,r){return e?e.constructor===t?!0:sB.call(e)===r:!1}function Jd(e){return D1(e,Uint8Array,aB)}function uB(e){return D1(e,ArrayBuffer,lB)}function cB(e){return Jd(e)||uB(e)}function no(e){if(!Jd(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function M1(e){if(!cB(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function fB(e){if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new TypeError(`Unsupported value, got \`${typeof e}\`.`)}function pB(e,t){if(e.length===0)return new Uint8Array(0);t??=e.reduce((o,i)=>o+i.length,0);let r=new Uint8Array(t),n=0;for(let o of e)no(o),r.set(o,n),n+=o.length;return r}function hB(e,t){if(no(e),no(t),e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function mB(e,t){no(e),no(t);let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]-t[n];if(o!==0)return Math.sign(o)}return Math.sign(e.length-t.length)}var C1={utf8:new globalThis.TextDecoder("utf8")};function _1(e,t="utf8"){return M1(e),C1[t]??=new globalThis.TextDecoder(t),C1[t].decode(e)}function pl(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}var dB=new globalThis.TextEncoder;function I1(e){return pl(e),dB.encode(e)}function gB(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function xB(e){return e.replaceAll("-","+").replaceAll("_","/")}var yB=65535;function P1(e,{urlSafe:t=!1}={}){no(e);let r;if(e.length<yB)r=globalThis.btoa(String.fromCodePoint.apply(this,e));else{r="";for(let n of e)r+=String.fromCodePoint(n);r=globalThis.btoa(r)}return t?gB(r):r}function F1(e){return pl(e),Uint8Array.from(globalThis.atob(xB(e)),t=>t.codePointAt(0))}function bB(e,{urlSafe:t=!1}={}){return pl(e),P1(I1(e),{urlSafe:t})}function wB(e){return pl(e),_1(F1(e))}var vB=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function SB(e){no(e);let t="";for(let r=0;r<e.length;r++)t+=vB[e[r]];return t}var O1={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 kB(e){if(pl(e),e.length%2!==0)throw new Error("Invalid Hex string length.");let t=e.length/2,r=new Uint8Array(t);for(let n=0;n<t;n++){let o=O1[e[n*2]],i=O1[e[n*2+1]];if(o===void 0||i===void 0)throw new Error(`Invalid Hex character encountered at position ${n*2}`);r[n]=o<<4|i}return r}function TB(e){let{byteLength:t}=e;if(t===6)return e.getUint16(0)*2**32+e.getUint32(2);if(t===5)return e.getUint8(0)*2**32+e.getUint32(1);if(t===4)return e.getUint32(0);if(t===3)return e.getUint8(0)*2**16+e.getUint16(1);if(t===2)return e.getUint16(0);if(t===1)return e.getUint8(0)}function N1(e,t){let r=e.length,n=t.length;if(n===0||n>r)return-1;let o=r-n;for(let i=0;i<=o;i++){let s=!0;for(let a=0;a<n;a++)if(e[i+a]!==t[a]){s=!1;break}if(s)return i}return-1}function EB(e,t){return N1(e,t)!==-1}var DB=oo;function CB(e){return oo.uint8ArrayToBase64(e)}function OB(e){return oo.base64ToUint8Array(e)}var MB=e=>oo.isUint8Array(e);function _B(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}function IB(e){let t=new Uint8Array(e.length);return t.set(e),t}var gl={};te(gl,{Guard:()=>hl,GuardError:()=>ml,GuardSet:()=>dl,passGuardsOrReject:()=>PB});var hl=class{constructor(t,r){this.guardFunction=t,this.options=r}async exec(t){return await this.guardFunction(t)}async getFailedHint(t){return await this.exec(t)?null:this.options.failedHint}};var ml=class extends Error{constructor(t){super(t),this.name="GuardError"}};var dl=class extends hl{constructor(t=[]){super(async r=>this.allGuardsPass(r)),this.guards=t}async execAllWithData(t,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let i of this.guards){let s=i.exec(t);if(r.mode==="serial"&&await s,n.push(s),r.stopOnFail&&!await s)return await Promise.all(n)}return await Promise.all(n)}async allGuardsPass(t,r={mode:"parallel",stopOnFail:!1}){return(await this.execAllWithData(t,r)).every(o=>o)}async anyGuardsPass(t){return(await this.execAllWithData(t,{mode:"parallel",stopOnFail:!1})).some(n=>n)}getFailedHint(t){for(let r of this.guards){let n=r.getFailedHint(t);if(n)return n}}};var PB=async(e,t)=>{let r=new dl(t);if(!await r.allGuardsPass(e)){let o=await r.getFailedHint(e);throw new ml(`Guards failed:
|
|
34
|
+
`):"",this.name="UnsubscriptionError",this.errors=r},"UnsubscriptionErrorImpl")});function kr(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}i(kr,"arrRemove");var zt=(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=bt(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(de(f))try{f()}catch(g){s=g instanceof ba?g.errors:[g]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=bt(p),d=h.next();!d.done;d=h.next()){var m=d.value;try{Ew(m)}catch(g){s=s??[],g instanceof ba?s=Ht(Ht([],gt(s)),gt(g.errors)):s.push(g)}}}catch(g){n={error:g}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(s)throw new ba(s)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Ew(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)&&kr(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&kr(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=(function(){var e=new t;return e.closed=!0,e})(),t})(),hd=zt.EMPTY;function du(t){return t instanceof zt||t&&"closed"in t&&de(t.remove)&&de(t.add)&&de(t.unsubscribe)}i(du,"isSubscription");function Ew(t){de(t)?t():t.unsubscribe()}i(Ew,"execFinalizer");var ar={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Po={setTimeout:i(function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Po.delegate;return o?.setTimeout?o.setTimeout.apply(o,Ht([t,e],gt(r))):setTimeout.apply(void 0,Ht([t,e],gt(r)))},"setTimeout"),clearTimeout:i(function(t){var e=Po.delegate;return(e?.clearTimeout||clearTimeout)(t)},"clearTimeout"),delegate:void 0};function mu(t){Po.setTimeout(function(){var e=ar.onUnhandledError;if(e)e(t);else throw t})}i(mu,"reportUnhandledError");function zr(){}i(zr,"noop");var Dw=(function(){return dd("C",void 0,void 0)})();function Cw(t){return dd("E",void 0,t)}i(Cw,"errorNotification");function Mw(t){return dd("N",t,void 0)}i(Mw,"nextNotification");function dd(t,e,r){return{kind:t,value:e,error:r}}i(dd,"createNotification");var Di=null;function _o(t){if(ar.useDeprecatedSynchronousErrorHandling){var e=!Di;if(e&&(Di={errorThrown:!1,error:null}),t(),e){var r=Di,n=r.errorThrown,o=r.error;if(Di=null,n)throw o}}else t()}i(_o,"errorContext");function Ow(t){ar.useDeprecatedSynchronousErrorHandling&&Di&&(Di.errorThrown=!0,Di.error=t)}i(Ow,"captureError");var Ci=(function(t){it(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,du(r)&&r.add(n)):n.destination=fI,n}return i(e,"Subscriber"),e.create=function(r,n,o){return new Bn(r,n,o)},e.prototype.next=function(r){this.isStopped?gd(Mw(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?gd(Cw(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?gd(Dw,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})(zt),lI=Function.prototype.bind;function md(t,e){return lI.call(t,e)}i(md,"bind");var uI=(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){gu(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){gu(n)}else gu(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){gu(r)}},t})(),Bn=(function(t){it(e,t);function e(r,n,o){var s=t.call(this)||this,a;if(de(r)||!r)a={next:r??void 0,error:n??void 0,complete:o??void 0};else{var l;s&&ar.useDeprecatedNextContext?(l=Object.create(r),l.unsubscribe=function(){return s.unsubscribe()},a={next:r.next&&md(r.next,l),error:r.error&&md(r.error,l),complete:r.complete&&md(r.complete,l)}):a=r}return s.destination=new uI(a),s}return i(e,"SafeSubscriber"),e})(Ci);function gu(t){ar.useDeprecatedSynchronousErrorHandling?Ow(t):mu(t)}i(gu,"handleUnhandledError");function cI(t){throw t}i(cI,"defaultErrorHandler");function gd(t,e){var r=ar.onStoppedNotification;r&&Po.setTimeout(function(){return r(t,e)})}i(gd,"handleStoppedNotification");var fI={closed:!0,next:zr,error:cI,complete:zr};var Mi=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Wr(t){return t}i(Wr,"identity");function pI(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return xd(t)}i(pI,"pipe");function xd(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(xd,"pipeFromArray");var be=(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=dI(e)?e:new Bn(e,r,n);return _o(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=Iw(r),new r(function(o,s){var a=new Bn({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[Mi]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return xd(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Iw(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 Iw(t){var e;return(e=t??ar.Promise)!==null&&e!==void 0?e:Promise}i(Iw,"getPromiseCtor");function hI(t){return t&&de(t.next)&&de(t.error)&&de(t.complete)}i(hI,"isObserver");function dI(t){return t&&t instanceof Ci||hI(t)&&du(t)}i(dI,"isSubscriber");function mI(t){return de(t?.lift)}i(mI,"hasLift");function De(t){return function(e){if(mI(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(De,"operate");function Ce(t,e,r,n,o){return new Pw(t,e,r,n,o)}i(Ce,"createOperatorSubscriber");var Pw=(function(t){it(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})(Ci);var yd=hu(function(t){return i(function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"},"ObjectUnsubscribedErrorImpl")});var Wt=(function(t){it(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 wd(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new yd},e.prototype.next=function(r){var n=this;_o(function(){var o,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=bt(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;_o(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;_o(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?hd:(this.currentObservers=null,l.push(r),new zt(function(){n.currentObservers=null,kr(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 be;return r.source=this,r},e.create=function(r,n){return new wd(r,n)},e})(be),wd=(function(t){it(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:hd},e})(Wt);var Ro=(function(t){it(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})(Wt);var va={now:i(function(){return(va.delegate||Date).now()},"now"),delegate:void 0};var No=(function(t){it(e,t);function e(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=va);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})(Wt);var bd=(function(t){it(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})(zt);var ka={setInterval:i(function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=ka.delegate;return o?.setInterval?o.setInterval.apply(o,Ht([t,e],gt(r))):setInterval.apply(void 0,Ht([t,e],gt(r)))},"setInterval"),clearInterval:i(function(t){var e=ka.delegate;return(e?.clearInterval||clearInterval)(t)},"clearInterval"),delegate:void 0};var vd=(function(t){it(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),ka.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&&ka.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,kr(s,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e})(bd);var Sa=(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=va.now,t})();var kd=(function(t){it(e,t);function e(r,n){n===void 0&&(n=Sa.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})(Sa);var qr=new kd(vd),Sd=qr;function xu(t){return t&&de(t.schedule)}i(xu,"isScheduler");function Td(t){return t[t.length-1]}i(Td,"last");function _w(t){return de(Td(t))?t.pop():void 0}i(_w,"popResultSelector");function jr(t){return xu(Td(t))?t.pop():void 0}i(jr,"popScheduler");function j4(t,e){return typeof Td(t)=="number"?t.pop():e}i(j4,"popNumber");var Fo=i((function(t){return t&&typeof t.length=="number"&&typeof t!="function"}),"isArrayLike");function yu(t){return de(t?.then)}i(yu,"isPromise");function wu(t){return de(t[Mi])}i(wu,"isInteropObservable");function bu(t){return Symbol.asyncIterator&&de(t?.[Symbol.asyncIterator])}i(bu,"isAsyncIterable");function vu(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(vu,"createInvalidObservableTypeError");function gI(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}i(gI,"getSymbolIterator");var ku=gI();function Su(t){return de(t?.[ku])}i(Su,"isIterable");function Tu(t){return fd(this,arguments,i(function(){var r,n,o,s;return wa(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,wn(r.read())];case 3:return n=a.sent(),o=n.value,s=n.done,s?[4,wn(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,wn(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(Tu,"readableStreamLikeToAsyncGenerator");function Eu(t){return de(t?.getReader)}i(Eu,"isReadableStreamLike");function We(t){if(t instanceof be)return t;if(t!=null){if(wu(t))return xI(t);if(Fo(t))return yI(t);if(yu(t))return wI(t);if(bu(t))return Rw(t);if(Su(t))return bI(t);if(Eu(t))return vI(t)}throw vu(t)}i(We,"innerFrom");function xI(t){return new be(function(e){var r=t[Mi]();if(de(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}i(xI,"fromInteropObservable");function yI(t){return new be(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}i(yI,"fromArrayLike");function wI(t){return new be(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,mu)})}i(wI,"fromPromise");function bI(t){return new be(function(e){var r,n;try{for(var o=bt(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(bI,"fromIterable");function Rw(t){return new be(function(e){kI(t,e).catch(function(r){return e.error(r)})})}i(Rw,"fromAsyncIterable");function vI(t){return Rw(Tu(t))}i(vI,"fromReadableStreamLike");function kI(t,e){var r,n,o,s;return cd(this,void 0,void 0,function(){var a,l;return wa(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=pd(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(kI,"process");function xt(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(xt,"executeSchedule");function Lo(t,e){return e===void 0&&(e=0),De(function(r,n){r.subscribe(Ce(n,function(o){return xt(n,t,function(){return n.next(o)},e)},function(){return xt(n,t,function(){return n.complete()},e)},function(o){return xt(n,t,function(){return n.error(o)},e)}))})}i(Lo,"observeOn");function Ao(t,e){return e===void 0&&(e=0),De(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}i(Ao,"subscribeOn");function Nw(t,e){return We(t).pipe(Ao(e),Lo(e))}i(Nw,"scheduleObservable");function Fw(t,e){return We(t).pipe(Ao(e),Lo(e))}i(Fw,"schedulePromise");function Lw(t,e){return new be(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}i(Lw,"scheduleArray");function Aw(t,e){return new be(function(r){var n;return xt(r,e,function(){n=t[ku](),xt(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 de(n?.return)&&n.return()}})}i(Aw,"scheduleIterable");function Du(t,e){if(!t)throw new Error("Iterable cannot be null");return new be(function(r){xt(r,e,function(){var n=t[Symbol.asyncIterator]();xt(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}i(Du,"scheduleAsyncIterable");function Bw(t,e){return Du(Tu(t),e)}i(Bw,"scheduleReadableStreamLike");function Ed(t,e){if(t!=null){if(wu(t))return Nw(t,e);if(Fo(t))return Lw(t,e);if(yu(t))return Fw(t,e);if(bu(t))return Du(t,e);if(Su(t))return Aw(t,e);if(Eu(t))return Bw(t,e)}throw vu(t)}i(Ed,"scheduled");function Ur(t,e){return e?Ed(t,e):We(t)}i(Ur,"from");function Ta(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=jr(t);return Ur(t,r)}i(Ta,"of");function $w(t){return t instanceof Date&&!isNaN(t)}i($w,"isValidDate");function Yr(t,e){return De(function(r,n){var o=0;r.subscribe(Ce(n,function(s){n.next(t.call(e,s,o++))}))})}i(Yr,"map");var SI=Array.isArray;function TI(t,e){return SI(e)?t.apply(void 0,Ht([],gt(e))):t(e)}i(TI,"callOrApply");function Cu(t){return Yr(function(e){return TI(t,e)})}i(Cu,"mapOneOrManyArgs");var EI=Array.isArray,DI=Object.getPrototypeOf,CI=Object.prototype,MI=Object.keys;function Hw(t){if(t.length===1){var e=t[0];if(EI(e))return{args:e,keys:null};if(OI(e)){var r=MI(e);return{args:r.map(function(n){return e[n]}),keys:r}}}return{args:t,keys:null}}i(Hw,"argsArgArrayOrObject");function OI(t){return t&&typeof t=="object"&&DI(t)===CI}i(OI,"isPOJO");function zw(t,e){return t.reduce(function(r,n,o){return r[n]=e[o],r},{})}i(zw,"createObject");function Dd(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=jr(t),n=_w(t),o=Hw(t),s=o.args,a=o.keys;if(s.length===0)return Ur([],r);var l=new be(II(s,r,a?function(u){return zw(a,u)}:Wr));return n?l.pipe(Cu(n)):l}i(Dd,"combineLatest");function II(t,e,r){return r===void 0&&(r=Wr),function(n){Ww(e,function(){for(var o=t.length,s=new Array(o),a=o,l=o,u=i(function(f){Ww(e,function(){var p=Ur(t[f],e),h=!1;p.subscribe(Ce(n,function(d){s[f]=d,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(II,"combineLatestInit");function Ww(t,e,r){t?xt(r,t,e):e()}i(Ww,"maybeSchedule");function qw(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"),d=i(function(g){return c<n?m(g):u.push(g)},"outerNext"),m=i(function(g){s&&e.next(g),c++;var x=!1;We(r(g,f++)).subscribe(Ce(e,function(y){o?.(y),s?d(y):e.next(y)},function(){x=!0},void 0,function(){if(x)try{c--;for(var y=i(function(){var S=u.shift();a?xt(e,a,function(){return m(S)}):m(S)},"_loop_1");u.length&&c<n;)y();h()}catch(S){e.error(S)}}))},"doInnerSub");return t.subscribe(Ce(e,d,function(){p=!0,h()})),function(){l?.()}}i(qw,"mergeInternals");function Oi(t,e,r){return r===void 0&&(r=1/0),de(e)?Oi(function(n,o){return Yr(function(s,a){return e(n,s,o,a)})(We(t(n,o)))},r):(typeof e=="number"&&(r=e),De(function(n,o){return qw(n,o,t,r)}))}i(Oi,"mergeMap");function Mu(t){return t===void 0&&(t=1/0),Oi(Wr,t)}i(Mu,"mergeAll");function Ou(){return Mu(1)}i(Ou,"concatAll");function Iu(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ou()(Ur(t,jr(t)))}i(Iu,"concat");var PI=["addListener","removeListener"],_I=["addEventListener","removeEventListener"],RI=["on","off"];function Ii(t,e,r,n){if(de(r)&&(n=r,r=void 0),n)return Ii(t,e,r).pipe(Cu(n));var o=gt(LI(t)?_I.map(function(l){return function(u){return t[l](e,u,r)}}):NI(t)?PI.map(jw(t,e)):FI(t)?RI.map(jw(t,e)):[],2),s=o[0],a=o[1];if(!s&&Fo(t))return Oi(function(l){return Ii(l,e,r)})(We(t));if(!s)throw new TypeError("Invalid event target");return new be(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(Ii,"fromEvent");function jw(t,e){return function(r){return function(n){return t[r](e,n)}}}i(jw,"toCommonHandlerRegistry");function NI(t){return de(t.addListener)&&de(t.removeListener)}i(NI,"isNodeStyleEventEmitter");function FI(t){return de(t.on)&&de(t.off)}i(FI,"isJQueryStyleEventEmitter");function LI(t){return de(t.addEventListener)&&de(t.removeEventListener)}i(LI,"isEventTarget");function Ea(t,e,r){t===void 0&&(t=0),r===void 0&&(r=Sd);var n=-1;return e!=null&&(xu(e)?r=e:n=e),new be(function(o){var s=$w(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(Ea,"timer");function Cd(t,e){return t===void 0&&(t=0),e===void 0&&(e=qr),t<0&&(t=0),Ea(t,t,e)}i(Cd,"interval");function Pu(t,e){return De(function(r,n){var o=0;r.subscribe(Ce(n,function(s){return t.call(e,s,o++)&&n.next(s)}))})}i(Pu,"filter");function _u(t){return De(function(e,r){var n=[];return e.subscribe(Ce(r,function(o){return n.push(o)},function(){r.next(n),r.complete()})),We(t).subscribe(Ce(r,function(){var o=n;n=[],r.next(o)},zr)),function(){n=null}})}i(_u,"buffer");function Ru(t,e){return e===void 0&&(e=null),e=e??t,De(function(r,n){var o=[],s=0;r.subscribe(Ce(n,function(a){var l,u,c,f,p=null;s++%e===0&&o.push([]);try{for(var h=bt(o),d=h.next();!d.done;d=h.next()){var m=d.value;m.push(a),t<=m.length&&(p=p??[],p.push(m))}}catch(y){l={error:y}}finally{try{d&&!d.done&&(u=h.return)&&u.call(h)}finally{if(l)throw l.error}}if(p)try{for(var g=bt(p),x=g.next();!x.done;x=g.next()){var m=x.value;kr(o,m),n.next(m)}}catch(y){c={error:y}}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=bt(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(Ru,"bufferCount");function Nu(t){for(var e,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var s=(e=jr(n))!==null&&e!==void 0?e:qr,a=(r=n[0])!==null&&r!==void 0?r:null,l=n[1]||1/0;return De(function(u,c){var f=[],p=!1,h=i(function(g){var x=g.buffer,y=g.subs;y.unsubscribe(),kr(f,g),c.next(x),p&&d()},"emit"),d=i(function(){if(f){var g=new zt;c.add(g);var x=[],y={buffer:x,subs:g};f.push(y),xt(g,s,function(){return h(y)},t)}},"startBuffer");a!==null&&a>=0?xt(c,s,d,a,!0):p=!0,d();var m=Ce(c,function(g){var x,y,S=f.slice();try{for(var T=bt(S),H=T.next();!H.done;H=T.next()){var z=H.value,C=z.buffer;C.push(g),l<=C.length&&h(z)}}catch(W){x={error:W}}finally{try{H&&!H.done&&(y=T.return)&&y.call(T)}finally{if(x)throw x.error}}},function(){for(;f?.length;)c.next(f.shift().buffer);m?.unsubscribe(),c.complete(),c.unsubscribe()},void 0,function(){return f=null});u.subscribe(m)})}i(Nu,"bufferTime");function Fu(t){return De(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(Ce(r,function(l){s?.unsubscribe(),n=!0,o=l,s=Ce(r,a,zr),We(t(l)).subscribe(s)},function(){a(),r.complete()},void 0,function(){o=s=null}))})}i(Fu,"debounce");function Lu(t,e){return e===void 0&&(e=qr),De(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(Ce(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(Lu,"debounceTime");function Bo(t,e){return e===void 0&&(e=Wr),t=t??AI,De(function(r,n){var o,s=!0;r.subscribe(Ce(n,function(a){var l=e(a);(s||!t(o,l))&&(s=!1,o=l,n.next(a))}))})}i(Bo,"distinctUntilChanged");function AI(t,e){return t===e}i(AI,"defaultCompare");function Au(t){t===void 0&&(t={});var e=t.connector,r=e===void 0?function(){return new Wt}: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,d=0,m=!1,g=!1,x=i(function(){p?.unsubscribe(),p=void 0},"cancelReset"),y=i(function(){x(),f=h=void 0,m=g=!1},"reset"),S=i(function(){var T=f;y(),T?.unsubscribe()},"resetAndUnsubscribe");return De(function(T,H){d++,!g&&!m&&x();var z=h=h??r();H.add(function(){d--,d===0&&!g&&!m&&(p=Md(S,u))}),z.subscribe(H),!f&&d>0&&(f=new Bn({next:i(function(C){return z.next(C)},"next"),error:i(function(C){g=!0,x(),p=Md(y,o,C),z.error(C)},"error"),complete:i(function(){m=!0,x(),p=Md(y,a),z.complete()},"complete")}),We(T).subscribe(f))})(c)}}i(Au,"share");function Md(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 Bn({next:i(function(){o.unsubscribe(),t()},"next")});return We(e.apply(void 0,Ht([],gt(r)))).subscribe(o)}}i(Md,"handleReset");function Bu(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,Au({connector:i(function(){return new No(a,e,r)},"connector"),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}i(Bu,"shareReplay");function $u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=jr(t);return De(function(n,o){(r?Iu(t,n,r):Iu(t,n)).subscribe(o)})}i($u,"startWith");function $o(t){return De(function(e,r){We(t).subscribe(Ce(r,function(){return r.complete()},zr)),!r.closed&&e.subscribe(r)})}i($o,"takeUntil");function Hu(t,e){return De(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,d=i(function(){p?.unsubscribe(),p=null,u&&(x(),h&&n.complete())},"endThrottling"),m=i(function(){p=null,h&&n.complete()},"cleanupThrottling"),g=i(function(y){return p=We(t(y)).subscribe(Ce(n,d,m))},"startThrottle"),x=i(function(){if(c){c=!1;var y=f;f=null,n.next(y),!h&&g(y)}},"send");r.subscribe(Ce(n,function(y){c=!0,f=y,!(p&&!p.closed)&&(a?x():g(y))},function(){h=!0,!(u&&c&&p&&!p.closed)&&n.complete()}))})}i(Hu,"throttle");function zu(t,e,r){e===void 0&&(e=qr);var n=Ea(t,e);return Hu(function(){return n},r)}i(zu,"throttleTime");var x_={buffer:_u,bufferCount:Ru,bufferTime:Nu,debounce:Fu,debounceTime:Lu,filter:Pu,map:Yr,startWith:$u,takeUntil:$o,throttleTime:zu};var Od=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=Ii(e,r),s=new Wt;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 Wt,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(s),s.subject}}};var Id=class{static{i(this,"ObservableIntake")}constructor(){this.observableFunctions={next:i(e=>{},"next"),complete:i(e=>{},"complete")},this.buffered=!1,this.payloadBuffer=[],this.observable=new be(e=>{this.observableFunctions.next=r=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=ie.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 y_(t){return new be(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(y_,"fromStreamWithBackpressure");var w_={attribute:!0,type:String,converter:Oo,reflect:!1,hasChanged:ha},Uw=i((t=w_,e,r)=>{let{kind:n,metadata:o}=r,s=globalThis.litPropertyMetadata.get(o);if(s===void 0&&globalThis.litPropertyMetadata.set(o,s=new Map),n==="setter"&&((t=Object.create(t)).wrapped=!0),s.set(r.name,t),n==="accessor"){let{name:a}=r;return{set(l){let u=e.get.call(this);e.set.call(this,l),this.requestUpdate(a,u,t)},init(l){return l!==void 0&&this.C(a,void 0,t,l),l}}}if(n==="setter"){let{name:a}=r;return function(l){let u=this[a];e.call(this,l),this.requestUpdate(a,u,t)}}throw Error("Unsupported decorator location: "+n)},"r");function lr(t){return(e,r)=>typeof r=="object"?Uw(t,e,r):((n,o,s)=>{let a=o.hasOwnProperty(s);return o.constructor.createProperty(s,n),a?Object.getOwnPropertyDescriptor(o,s):void 0})(t,e,r)}i(lr,"n");var Ir={};le(Ir,{DomTools:()=>hn,TypedRequest:()=>ll,breakpoints:()=>qe,css:()=>Hh,elementBasic:()=>sa,plugins:()=>zh});var sa={};le(sa,{setup:()=>Cj,staticStyles:()=>Ej,styles:()=>Dj});var ol={};le(ol,{DeesComms:()=>Bm});var ue={};le(ue,{Timeout:()=>Wu,delayFor:()=>Vr,delayForRandom:()=>b_});var Vr=i(async(t,e,r=!1)=>(await new Wu(t,null,r).promise,e),"delayFor"),b_=i(async(t,e,r,n=!1)=>(await Vr(Math.random()*(e-t)+t,null,n),r),"delayForRandom"),Wu=class{static{i(this,"Timeout")}constructor(e,r,n=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=An(),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 qu={};var ii={};le(ii,{TYPED_REQUEST_REDACTED_PAYLOAD:()=>vs,TypedHandler:()=>Cm,TypedRequest:()=>Im,TypedRequestRetryLimitError:()=>ap,TypedRequestTimeoutError:()=>sp,TypedResponseError:()=>pr,TypedRouter:()=>Mm,TypedTarget:()=>Om,VirtualStream:()=>Dr,VirtualStreamActivationScope:()=>kn,VirtualStreamClosedError:()=>qi,VirtualStreamLifecycleContractError:()=>Xf,VirtualStreamOpenTimeoutError:()=>ji,getTypedRequestResponseInterestKey:()=>np});var Fe={};le(Fe,{AsyncExecutionStack:()=>Kd,BackpressuredArray:()=>em,FastMap:()=>Hi,Interest:()=>ja,InterestMap:()=>tm,LimitedArray:()=>rm,LoopTracker:()=>nm,ObjectMap:()=>bn,Stringmap:()=>Ua,TimedAggregator:()=>Ya,TimedAggregtor:()=>Ya,Tree:()=>im,uni:()=>bk});var Ca={};le(Ca,{SmartMatch:()=>_d});var Da={};le(Da,{isMatch:()=>S_,matcher:()=>k_});function Pi(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}i(Pi,"escapeStringRegexp");var Pd=new Map,Yw=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"),v_=i((t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(Pd.has(r))return Pd.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=Pi(t).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return o.negated=n,Pd.set(r,o),o},"makeRegexp"),Vw=i((t,e,r,n)=>{if(t=Yw(t,"inputs"),e=Yw(e,"patterns"),e.length===0)return[];e=e.map(a=>v_(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 k_(t,e,r){return Vw(t,e,r,!1)}i(k_,"matcher");function S_(t,e,r){return Vw(t,e,r,!0).length>0}i(S_,"isMatch");var _d=class{static{i(this,"SmartMatch")}constructor(e){this.wildcard=e}match(e){return Da.isMatch(e,this.wildcard)}};var Sr={};le(Sr,{CronJob:()=>qa,CronManager:()=>Yd,ExtendedDate:()=>Gd,HrtMeasurement:()=>Qd,Interval:()=>Jd,TimeStamp:()=>cs,Timer:()=>Xd,getMilliSecondsAsHumanReadableAgoTime:()=>tN,getMilliSecondsAsHumanReadableString:()=>eN,getMilliSecondsFromUnits:()=>Vd,units:()=>Xn});var Pa={};le(Pa,{Cron:()=>Kw,CronDate:()=>ot,CronPattern:()=>ju,scheduledJobs:()=>zo});function Ma(t){return Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)}i(Ma,"T");function Rd(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(Rd,"D");function E_(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("-")?Nd(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):Nd(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}i(E_,"A");function Gw(t,e,r){return Qw(E_(t,e),r)}i(Gw,"v");function Qw(t,e){let r=new Date(Ma(t)),n=Oa(r,t.tz),o=Ma(t),s=Ma(n),a=o-s,l=new Date(r.getTime()+a),u=Oa(l,t.tz);if(Rd(u,t)){let p=new Date(l.getTime()-36e5),h=Oa(p,t.tz);return Rd(h,t)?p:l}let c=new Date(l.getTime()+Ma(t)-Ma(u)),f=Oa(c,t.tz);if(Rd(f,t))return c;if(e)throw new Error("Invalid date passed to fromTZ()");return l.getTime()>c.getTime()?l:c}i(Qw,"k");function Oa(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(Oa,"g");function Nd(t,e,r,n,o,s,a){return{y:t,m:e,d:r,h:n,i:o,s,tz:a}}i(Nd,"b");var Jw=[1,2,4,8,16],ju=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]|Jw[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},Fd=[31,28,31,30,31,30,31,31,30,31,30,31],$e=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],ot=class Zw{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 Zw)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}getLastDayOfMonth(e,r){return r!==1?Fd[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&&Jw[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=Oa(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>Fd[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=Gw(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(Gw(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 d=0;d<n.nearestWeekdays.length;d++)if(n.nearestWeekdays[d]){let m=this.getNearestWeekday(this.year,this.month,d-o);if(m===-1)continue;if(m===p-o){h=1;break}}}if(r==="day"&&n.lastWeekday){let d=this.getLastWeekday(this.year,this.month);p-o===d&&(h=1)}if(r==="day"&&n.lastDayOfMonth&&p-o==l&&(h=1),r==="day"&&!n.starDOW){let d=n.dayOfWeek[(u+(p-o-1))%7];if(d&&d&63)d=this.isNthWeekdayOfMonth(this.year,this.month,p-o,d)?1:0;else if(d)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${d}`);n.useAndLogic?h=h&&d:!e.domAndDow&&!n.starDOM?h=h||d:h=h&&d}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,$e[n][0],e,$e[n][2]);if(o>1){let s=n+1;for(;s<$e.length;)this[$e[s][0]]=-$e[s][2],s++;if(o===3){if(this[$e[n][1]]++,this[$e[n][0]]=-$e[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>=$e.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,$e[n][0],e,$e[n][2]);if(s>1){let a=n+1;for(;a<$e.length;){let l=$e[a][0],u=$e[a][2],c=this.getMaxPatternValue(l,e,u);this[l]=c,a++}if(s===3){if(this[$e[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?Fd[p]:new Date(Date.UTC(f,p+1,0)).getUTCDate();this.day>h&&(this.day=h)}this.apply();let l=$e[n][0],u=$e[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=$e[1][2],p=this.getMaxPatternValue("day",e,f),h=this.getLastDayOfMonth(this.year,this.month),d=Math.min(p,h);d!==this.day&&(this.day=d,this.hour=this.getMaxPatternValue("hour",e,$e[2][2]),this.minute=this.getMaxPatternValue("minute",e,$e[3][2]),this.second=this.getMaxPatternValue("second",e,$e[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>=$e.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)):Qw(Nd(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<$e.length;n++){let o=$e[n][0],s=$e[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 D_(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 ot(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new ot(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(D_,"R");function Ia(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}i(Ia,"p");function C_(t){return Ia(t)}i(C_,"_");function M_(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}i(M_,"x");var Xw=30*1e3,zo=[],Kw=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(Ia(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(Ia(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=D_(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 ju("* * * * *",void 0,{mode:"auto"})},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new ot(t,this.getTz()):this._states.pattern=new ju(t,this.options.timezone,{mode:this.options.mode,alternativeWeekdays:this.options.alternativeWeekdays,sloppyRanges:this.options.sloppyRanges}),this.name){if(zo.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");zo.push(this)}return o!==void 0&&C_(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 ot(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 ot(t,this.getTz());r.ms=0;let n=new ot(this._states.once,this.getTz());return n.ms=0,r.getTime()===n.getTime()}let e=new ot(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 ot||t instanceof Date?e.getTime()-t.getTime():e.getTime()-new ot(t).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=zo.indexOf(this);t>=0&&zo.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>Xw&&(e=Xw),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&M_(this._states.currentTimeout),this)}async _trigger(t){this._states.blocking=!0,this._states.currentRun=new ot(void 0,this.getTz());try{if(this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(e){if(Ia(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 ot(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&&Ia(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 ot(t,this.getTz()),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let n=this._states.once||new ot(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 ot(t,this.getTz());this.options.stopAt&&e.getTime()>this.options.stopAt.getTime()&&(e=this.options.stopAt);let r=new ot(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 ot(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 ot(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 za={};le(za,{add:()=>Hn,addBusinessDays:()=>ec,addDays:()=>st,addHours:()=>tc,addISOWeekYears:()=>nc,addMilliseconds:()=>zn,addMinutes:()=>Uo,addMonths:()=>Qr,addQuarters:()=>Yo,addSeconds:()=>ic,addWeeks:()=>Wn,addYears:()=>oc,areIntervalsOverlapping:()=>ib,clamp:()=>ob,closestIndexTo:()=>lc,closestTo:()=>sb,compareAsc:()=>kt,compareDesc:()=>ab,constructFrom:()=>N,constructNow:()=>ge,daysToWeeks:()=>lb,differenceInBusinessDays:()=>ub,differenceInCalendarDays:()=>pt,differenceInCalendarISOWeekYears:()=>cc,differenceInCalendarISOWeeks:()=>cb,differenceInCalendarMonths:()=>Ri,differenceInCalendarQuarters:()=>Vo,differenceInCalendarWeeks:()=>Ni,differenceInCalendarYears:()=>qn,differenceInDays:()=>Go,differenceInHours:()=>Fi,differenceInISOWeekYears:()=>pb,differenceInMilliseconds:()=>Qo,differenceInMinutes:()=>Li,differenceInMonths:()=>jn,differenceInQuarters:()=>hb,differenceInSeconds:()=>Kr,differenceInWeeks:()=>db,differenceInYears:()=>hc,eachDayOfInterval:()=>dc,eachHourOfInterval:()=>mb,eachMinuteOfInterval:()=>gb,eachMonthOfInterval:()=>xb,eachQuarterOfInterval:()=>yb,eachWeekOfInterval:()=>wb,eachWeekendOfInterval:()=>Zo,eachWeekendOfMonth:()=>bb,eachWeekendOfYear:()=>vb,eachYearOfInterval:()=>kb,endOfDay:()=>Jo,endOfDecade:()=>Sb,endOfHour:()=>Tb,endOfISOWeek:()=>Eb,endOfISOWeekYear:()=>Db,endOfMinute:()=>Cb,endOfMonth:()=>Xo,endOfQuarter:()=>Mb,endOfSecond:()=>Ob,endOfToday:()=>Ib,endOfTomorrow:()=>Pb,endOfWeek:()=>gc,endOfYear:()=>mc,endOfYesterday:()=>_b,format:()=>La,formatDate:()=>La,formatDistance:()=>vc,formatDistanceStrict:()=>kc,formatDistanceToNow:()=>qb,formatDistanceToNowStrict:()=>jb,formatDuration:()=>Ub,formatISO:()=>Yb,formatISO9075:()=>Vb,formatISODuration:()=>Gb,formatRFC3339:()=>Qb,formatRFC7231:()=>Jb,formatRelative:()=>Xb,formatters:()=>Na,fromUnixTime:()=>Zb,getDate:()=>Sc,getDay:()=>Gn,getDayOfYear:()=>yc,getDaysInMonth:()=>Tc,getDaysInYear:()=>Kb,getDecade:()=>e0,getDefaultOptions:()=>Dc,getHours:()=>t0,getISODay:()=>Cc,getISOWeek:()=>rs,getISOWeekYear:()=>Rt,getISOWeeksInYear:()=>r0,getMilliseconds:()=>n0,getMinutes:()=>i0,getMonth:()=>o0,getOverlappingDaysInIntervals:()=>s0,getQuarter:()=>Ra,getSeconds:()=>a0,getTime:()=>l0,getUnixTime:()=>u0,getWeek:()=>ns,getWeekOfMonth:()=>c0,getWeekYear:()=>Yn,getWeeksInMonth:()=>f0,getYear:()=>p0,hoursToMilliseconds:()=>h0,hoursToMinutes:()=>d0,hoursToSeconds:()=>m0,interval:()=>g0,intervalToDuration:()=>x0,intlFormat:()=>y0,intlFormatDistance:()=>w0,isAfter:()=>b0,isBefore:()=>v0,isDate:()=>uc,isEqual:()=>k0,isExists:()=>S0,isFirstDayOfMonth:()=>T0,isFriday:()=>E0,isFuture:()=>D0,isLastDayOfMonth:()=>pc,isLeapYear:()=>Ec,isMatch:()=>C0,isMonday:()=>M0,isPast:()=>O0,isSameDay:()=>Zr,isSameHour:()=>wf,isSameISOWeek:()=>bf,isSameISOWeekYear:()=>I0,isSameMinute:()=>vf,isSameMonth:()=>kf,isSameQuarter:()=>Sf,isSameSecond:()=>Tf,isSameWeek:()=>as,isSameYear:()=>Ef,isSaturday:()=>Zu,isSunday:()=>Ku,isThisHour:()=>P0,isThisISOWeek:()=>_0,isThisMinute:()=>R0,isThisMonth:()=>N0,isThisQuarter:()=>F0,isThisSecond:()=>L0,isThisWeek:()=>A0,isThisYear:()=>B0,isThursday:()=>$0,isToday:()=>H0,isTomorrow:()=>z0,isTuesday:()=>W0,isValid:()=>yt,isWednesday:()=>q0,isWeekend:()=>Jr,isWithinInterval:()=>j0,isYesterday:()=>U0,lastDayOfDecade:()=>Y0,lastDayOfISOWeek:()=>V0,lastDayOfISOWeekYear:()=>G0,lastDayOfMonth:()=>Mc,lastDayOfQuarter:()=>Q0,lastDayOfWeek:()=>Df,lastDayOfYear:()=>J0,lightFormat:()=>X0,lightFormatters:()=>Zt,longFormatters:()=>Vn,max:()=>sc,milliseconds:()=>Z0,millisecondsToHours:()=>K0,millisecondsToMinutes:()=>ev,millisecondsToSeconds:()=>tv,min:()=>ac,minutesToHours:()=>rv,minutesToMilliseconds:()=>nv,minutesToSeconds:()=>iv,monthsToQuarters:()=>ov,monthsToYears:()=>sv,nextDay:()=>Tt,nextFriday:()=>av,nextMonday:()=>lv,nextSaturday:()=>uv,nextSunday:()=>cv,nextThursday:()=>fv,nextTuesday:()=>pv,nextWednesday:()=>hv,parse:()=>yf,parseISO:()=>mv,parseJSON:()=>gv,parsers:()=>xf,previousDay:()=>Et,previousFriday:()=>xv,previousMonday:()=>yv,previousSaturday:()=>wv,previousSunday:()=>bv,previousThursday:()=>vv,previousTuesday:()=>kv,previousWednesday:()=>Sv,quartersToMonths:()=>Tv,quartersToYears:()=>Ev,roundToNearestHours:()=>Dv,roundToNearestMinutes:()=>Cv,secondsToHours:()=>Mv,secondsToMilliseconds:()=>Ov,secondsToMinutes:()=>Iv,set:()=>Pv,setDate:()=>_v,setDay:()=>Qn,setDayOfYear:()=>Rv,setDefaultOptions:()=>Nv,setHours:()=>Fv,setISODay:()=>ef,setISOWeek:()=>Vc,setISOWeekYear:()=>rc,setMilliseconds:()=>Lv,setMinutes:()=>Av,setMonth:()=>ls,setQuarter:()=>Bv,setSeconds:()=>$v,setWeek:()=>Uc,setWeekYear:()=>Hv,setYear:()=>zv,startOfDay:()=>Xr,startOfDecade:()=>Wv,startOfHour:()=>Aa,startOfISOWeek:()=>et,startOfISOWeekYear:()=>Xt,startOfMinute:()=>Ba,startOfMonth:()=>Un,startOfQuarter:()=>en,startOfSecond:()=>$a,startOfToday:()=>qv,startOfTomorrow:()=>jv,startOfWeek:()=>Ne,startOfWeekYear:()=>Ai,startOfYear:()=>Ko,startOfYesterday:()=>Uv,sub:()=>Yv,subBusinessDays:()=>Vv,subDays:()=>Jn,subHours:()=>Gv,subISOWeekYears:()=>fc,subMilliseconds:()=>Qv,subMinutes:()=>Jv,subMonths:()=>Mf,subQuarters:()=>Xv,subSeconds:()=>Zv,subWeeks:()=>Kv,subYears:()=>ek,toDate:()=>w,transpose:()=>Oc,weeksToDays:()=>tk,yearsToDays:()=>rk,yearsToMonths:()=>nk,yearsToQuarters:()=>ik});var Yu=7,_a=365.2425,O_=Math.pow(10,8)*24*60*60*1e3,eZ=-O_,Gr=6048e5,Vu=864e5,vt=6e4,Jt=36e5,Wo=1e3,Ld=525600,$n=43200,qo=1440,Gu=60,Qu=3,Ju=12,Xu=4,_i=3600,jo=60,Uu=_i*24,eb=Uu*7,Ad=Uu*365.2425,Bd=Ad/12,tb=Bd*3,$d=Symbol.for("constructDateFrom");function N(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&$d in t?t[$d](e):t instanceof Date?new t.constructor(e):new Date(e)}i(N,"constructFrom");var nZ=N;function w(t,e){return N(e||t,t)}i(w,"toDate");var aZ=w;function st(t,e,r){let n=w(t,r?.in);return isNaN(e)?N(r?.in||t,NaN):(e&&n.setDate(n.getDate()+e),n)}i(st,"addDays");var pZ=st;function Qr(t,e,r){let n=w(t,r?.in);if(isNaN(e))return N(r?.in||t,NaN);if(!e)return n;let o=n.getDate(),s=N(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(Qr,"addMonths");var xZ=Qr;function Hn(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=w(t,r?.in),p=o||n?Qr(f,o+n*12):f,h=a||s?st(p,a+s*7):p,d=u+l*60,g=(c+d*60)*1e3;return N(r?.in||t,+h+g)}i(Hn,"add");var TZ=Hn;function Zu(t,e){return w(t,e?.in).getDay()===6}i(Zu,"isSaturday");var MZ=Zu;function Ku(t,e){return w(t,e?.in).getDay()===0}i(Ku,"isSunday");var _Z=Ku;function Jr(t,e){let r=w(t,e?.in).getDay();return r===0||r===6}i(Jr,"isWeekend");var LZ=Jr;function ec(t,e,r){let n=w(t,r?.in),o=Jr(n,r);if(isNaN(e))return N(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),Jr(n,r)||(u-=1);return o&&Jr(n,r)&&e!==0&&(Zu(n,r)&&n.setDate(n.getDate()+(a<0?2:-1)),Ku(n,r)&&n.setDate(n.getDate()+(a<0?1:-2))),n.setHours(s),n}i(ec,"addBusinessDays");var jZ=ec;function zn(t,e,r){return N(r?.in||t,+w(t)+e)}i(zn,"addMilliseconds");var QZ=zn;function tc(t,e,r){return zn(t,e*Jt,r)}i(tc,"addHours");var eK=tc;var rb={};function Oe(){return rb}i(Oe,"getDefaultOptions");function nb(t){rb=t}i(nb,"setDefaultOptions");function Ne(t,e){let r=Oe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=w(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(Ne,"startOfWeek");var aK=Ne;function et(t,e){return Ne(t,{...e,weekStartsOn:1})}i(et,"startOfISOWeek");var fK=et;function Rt(t,e){let r=w(t,e?.in),n=r.getFullYear(),o=N(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let s=et(o),a=N(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);let l=et(a);return r.getTime()>=s.getTime()?n+1:r.getTime()>=l.getTime()?n:n-1}i(Rt,"getISOWeekYear");var xK=Rt;function Ue(t){let e=w(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(Ue,"getTimezoneOffsetInMilliseconds");function K(t,...e){let r=N.bind(null,t||e.find(n=>typeof n=="object"));return e.map(r)}i(K,"normalizeDates");function Xr(t,e){let r=w(t,e?.in);return r.setHours(0,0,0,0),r}i(Xr,"startOfDay");var CK=Xr;function pt(t,e,r){let[n,o]=K(r?.in,t,e),s=Xr(n),a=Xr(o),l=+s-Ue(s),u=+a-Ue(a);return Math.round((l-u)/Vu)}i(pt,"differenceInCalendarDays");var NK=pt;function Xt(t,e){let r=Rt(t,e),n=N(e?.in||t,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),et(n)}i(Xt,"startOfISOWeekYear");var HK=Xt;function rc(t,e,r){let n=w(t,r?.in),o=pt(n,Xt(n,r)),s=N(r?.in||t,0);return s.setFullYear(e,0,4),s.setHours(0,0,0,0),n=Xt(s),n.setDate(n.getDate()+o),n}i(rc,"setISOWeekYear");var VK=rc;function nc(t,e,r){return rc(t,Rt(t,r)+e,r)}i(nc,"addISOWeekYears");var ZK=nc;function Uo(t,e,r){let n=w(t,r?.in);return n.setTime(n.getTime()+e*vt),n}i(Uo,"addMinutes");var nee=Uo;function Yo(t,e,r){return Qr(t,e*3,r)}i(Yo,"addQuarters");var aee=Yo;function ic(t,e,r){return zn(t,e*1e3,r)}i(ic,"addSeconds");var fee=ic;function Wn(t,e,r){return st(t,e*7,r)}i(Wn,"addWeeks");var mee=Wn;function oc(t,e,r){return Qr(t,e*12,r)}i(oc,"addYears");var wee=oc;function ib(t,e,r){let[n,o]=[+w(t.start,r?.in),+w(t.end,r?.in)].sort((l,u)=>l-u),[s,a]=[+w(e.start,r?.in),+w(e.end,r?.in)].sort((l,u)=>l-u);return r?.inclusive?n<=a&&s<=o:n<a&&s<o}i(ib,"areIntervalsOverlapping");var See=ib;function sc(t,e){let r,n=e?.in;return t.forEach(o=>{!n&&typeof o=="object"&&(n=N.bind(null,o));let s=w(o,n);(!r||r<s||isNaN(+s))&&(r=s)}),N(n,r||NaN)}i(sc,"max");var Mee=sc;function ac(t,e){let r,n=e?.in;return t.forEach(o=>{!n&&typeof o=="object"&&(n=N.bind(null,o));let s=w(o,n);(!r||r>s||isNaN(+s))&&(r=s)}),N(n,r||NaN)}i(ac,"min");var Ree=ac;function ob(t,e,r){let[n,o,s]=K(r?.in,t,e.start,e.end);return ac([sc([n,o],r),s],r)}i(ob,"clamp");var $ee=ob;function lc(t,e){let r=+w(t);if(isNaN(r))return NaN;let n,o;return e.forEach((s,a)=>{let l=w(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(lc,"closestIndexTo");var qee=lc;function sb(t,e,r){let[n,...o]=K(r?.in,t,...e),s=lc(n,o);if(typeof s=="number"&&isNaN(s))return N(n,NaN);if(s!==void 0)return o[s]}i(sb,"closestTo");var Qee=sb;function kt(t,e){let r=+w(t)-+w(e);return r<0?-1:r>0?1:r}i(kt,"compareAsc");var Kee=kt;function ab(t,e){let r=+w(t)-+w(e);return r>0?-1:r<0?1:r}i(ab,"compareDesc");var nte=ab;function ge(t){return N(t,Date.now())}i(ge,"constructNow");var ate=ge;function lb(t){let e=Math.trunc(t/7);return e===0?0:e}i(lb,"daysToWeeks");var fte=lb;function Zr(t,e,r){let[n,o]=K(r?.in,t,e);return+Xr(n)==+Xr(o)}i(Zr,"isSameDay");var gte=Zr;function uc(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}i(uc,"isDate");var wte=uc;function yt(t){return!(!uc(t)&&typeof t!="number"||isNaN(+w(t)))}i(yt,"isValid");var Tte=yt;function ub(t,e,r){let[n,o]=K(r?.in,t,e);if(!yt(n)||!yt(o))return NaN;let s=pt(n,o),a=s<0?-1:1,l=Math.trunc(s/7),u=l*5,c=st(o,l*7);for(;!Zr(n,c);)u+=Jr(c,r)?0:a,c=st(c,a);return u===0?0:u}i(ub,"differenceInBusinessDays");var Rte=ub;function cc(t,e,r){let[n,o]=K(r?.in,t,e);return Rt(n,r)-Rt(o,r)}i(cc,"differenceInCalendarISOWeekYears");var Bte=cc;function cb(t,e,r){let[n,o]=K(r?.in,t,e),s=et(n),a=et(o),l=+s-Ue(s),u=+a-Ue(a);return Math.round((l-u)/Gr)}i(cb,"differenceInCalendarISOWeeks");var Ute=cb;function Ri(t,e,r){let[n,o]=K(r?.in,t,e),s=n.getFullYear()-o.getFullYear(),a=n.getMonth()-o.getMonth();return s*12+a}i(Ri,"differenceInCalendarMonths");var Qte=Ri;function Ra(t,e){let r=w(t,e?.in);return Math.trunc(r.getMonth()/3)+1}i(Ra,"getQuarter");var Kte=Ra;function Vo(t,e,r){let[n,o]=K(r?.in,t,e),s=n.getFullYear()-o.getFullYear(),a=Ra(n)-Ra(o);return s*4+a}i(Vo,"differenceInCalendarQuarters");var ire=Vo;function Ni(t,e,r){let[n,o]=K(r?.in,t,e),s=Ne(n,r),a=Ne(o,r),l=+s-Ue(s),u=+a-Ue(a);return Math.round((l-u)/Gr)}i(Ni,"differenceInCalendarWeeks");var fre=Ni;function qn(t,e,r){let[n,o]=K(r?.in,t,e);return n.getFullYear()-o.getFullYear()}i(qn,"differenceInCalendarYears");var mre=qn;function Go(t,e,r){let[n,o]=K(r?.in,t,e),s=fb(n,o),a=Math.abs(pt(n,o));n.setDate(n.getDate()-s*a);let l=+(fb(n,o)===-s),u=s*(a-l);return u===0?0:u}i(Go,"differenceInDays");function fb(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(fb,"compareLocalAsc");var bre=Go;function St(t){return e=>{let n=(t?Math[t]:Math.trunc)(e);return n===0?0:n}}i(St,"getRoundingMethod");function Fi(t,e,r){let[n,o]=K(r?.in,t,e),s=(+n-+o)/Jt;return St(r?.roundingMethod)(s)}i(Fi,"differenceInHours");var Mre=Fi;function fc(t,e,r){return nc(t,-e,r)}i(fc,"subISOWeekYears");var _re=fc;function pb(t,e,r){let[n,o]=K(r?.in,t,e),s=kt(n,o),a=Math.abs(cc(n,o,r)),l=fc(n,s*a,r),u=+(kt(l,o)===-s),c=s*(a-u);return c===0?0:c}i(pb,"differenceInISOWeekYears");var $re=pb;function Qo(t,e){return+w(t)-+w(e)}i(Qo,"differenceInMilliseconds");var qre=Qo;function Li(t,e,r){let n=Qo(t,e)/vt;return St(r?.roundingMethod)(n)}i(Li,"differenceInMinutes");var Qre=Li;function Jo(t,e){let r=w(t,e?.in);return r.setHours(23,59,59,999),r}i(Jo,"endOfDay");var Kre=Jo;function Xo(t,e){let r=w(t,e?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}i(Xo,"endOfMonth");var nne=Xo;function pc(t,e){let r=w(t,e?.in);return+Jo(r,e)==+Xo(r,e)}i(pc,"isLastDayOfMonth");var une=pc;function jn(t,e,r){let[n,o,s]=K(r?.in,t,t,e),a=kt(o,s),l=Math.abs(Ri(o,s));if(l<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-a*l);let u=kt(o,s)===-a;pc(n)&&l===1&&kt(n,s)===1&&(u=!1);let c=a*(l-+u);return c===0?0:c}i(jn,"differenceInMonths");var gne=jn;function hb(t,e,r){let n=jn(t,e,r)/3;return St(r?.roundingMethod)(n)}i(hb,"differenceInQuarters");var vne=hb;function Kr(t,e,r){let n=Qo(t,e)/1e3;return St(r?.roundingMethod)(n)}i(Kr,"differenceInSeconds");var Dne=Kr;function db(t,e,r){let n=Go(t,e,r)/7;return St(r?.roundingMethod)(n)}i(db,"differenceInWeeks");var Pne=db;function hc(t,e,r){let[n,o]=K(r?.in,t,e),s=kt(n,o),a=Math.abs(qn(n,o));n.setFullYear(1584),o.setFullYear(1584);let l=kt(n,o)===-s,u=s*(a-+l);return u===0?0:u}i(hc,"differenceInYears");var Ane=hc;function ht(t,e){let[r,n]=K(t,e.start,e.end);return{start:r,end:n}}i(ht,"normalizeInterval");function dc(t,e){let{start:r,end:n}=ht(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(N(r,a)),a.setDate(a.getDate()+l),a.setHours(0,0,0,0);return o?u.reverse():u}i(dc,"eachDayOfInterval");var Une=dc;function mb(t,e){let{start:r,end:n}=ht(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(N(r,a)),a.setHours(a.getHours()+l);return o?u.reverse():u}i(mb,"eachHourOfInterval");var Jne=mb;function gb(t,e){let{start:r,end:n}=ht(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(N(r,a)),a=Uo(a,l);return o?u.reverse():u}i(gb,"eachMinuteOfInterval");var rie=gb;function xb(t,e){let{start:r,end:n}=ht(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(N(r,a)),a.setMonth(a.getMonth()+l);return o?u.reverse():u}i(xb,"eachMonthOfInterval");var aie=xb;function en(t,e){let r=w(t,e?.in),n=r.getMonth(),o=n-n%3;return r.setMonth(o,1),r.setHours(0,0,0,0),r}i(en,"startOfQuarter");var fie=en;function yb(t,e){let{start:r,end:n}=ht(e?.in,t),o=+r>+n,s=o?+en(r):+en(n),a=o?en(n):en(r),l=e?.step??1;if(!l)return[];l<0&&(l=-l,o=!o);let u=[];for(;+a<=s;)u.push(N(r,a)),a=Yo(a,l);return o?u.reverse():u}i(yb,"eachQuarterOfInterval");var yie=yb;function wb(t,e){let{start:r,end:n}=ht(e?.in,t),o=+r>+n,s=o?Ne(n,e):Ne(r,e),a=o?Ne(r,e):Ne(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(N(r,u)),u=Wn(u,c),u.setHours(15);return o?f.reverse():f}i(wb,"eachWeekOfInterval");var Eie=wb;function Zo(t,e){let{start:r,end:n}=ht(e?.in,t),o=dc({start:r,end:n},e),s=[],a=0;for(;a<o.length;){let l=o[a++];Jr(l)&&s.push(N(r,l))}return s}i(Zo,"eachWeekendOfInterval");var _ie=Zo;function Un(t,e){let r=w(t,e?.in);return r.setDate(1),r.setHours(0,0,0,0),r}i(Un,"startOfMonth");var Lie=Un;function bb(t,e){let r=Un(t,e),n=Xo(t,e);return Zo({start:r,end:n},e)}i(bb,"eachWeekendOfMonth");var Wie=bb;function mc(t,e){let r=w(t,e?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}i(mc,"endOfYear");var Yie=mc;function Ko(t,e){let r=w(t,e?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}i(Ko,"startOfYear");var Jie=Ko;function vb(t,e){let r=Ko(t,e),n=mc(t,e);return Zo({start:r,end:n},e)}i(vb,"eachWeekendOfYear");var roe=vb;function kb(t,e){let{start:r,end:n}=ht(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(N(r,a)),a.setFullYear(a.getFullYear()+l);return o?u.reverse():u}i(kb,"eachYearOfInterval");var aoe=kb;function Sb(t,e){let r=w(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(Sb,"endOfDecade");var foe=Sb;function Tb(t,e){let r=w(t,e?.in);return r.setMinutes(59,59,999),r}i(Tb,"endOfHour");var moe=Tb;function gc(t,e){let r=Oe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=w(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(gc,"endOfWeek");var boe=gc;function Eb(t,e){return gc(t,{...e,weekStartsOn:1})}i(Eb,"endOfISOWeek");var Toe=Eb;function Db(t,e){let r=Rt(t,e),n=N(e?.in||t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=et(n,e);return o.setMilliseconds(o.getMilliseconds()-1),o}i(Db,"endOfISOWeekYear");var Ioe=Db;function Cb(t,e){let r=w(t,e?.in);return r.setSeconds(59,999),r}i(Cb,"endOfMinute");var Noe=Cb;function Mb(t,e){let r=w(t,e?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(23,59,59,999),r}i(Mb,"endOfQuarter");var Boe=Mb;function Ob(t,e){let r=w(t,e?.in);return r.setMilliseconds(999),r}i(Ob,"endOfSecond");var Woe=Ob;function Ib(t){return Jo(Date.now(),t)}i(Ib,"endOfToday");var Yoe=Ib;function Pb(t){let e=ge(t?.in),r=e.getFullYear(),n=e.getMonth(),o=e.getDate(),s=ge(t?.in);return s.setFullYear(r,n,o+1),s.setHours(23,59,59,999),t?.in?t.in(s):s}i(Pb,"endOfTomorrow");var Joe=Pb;function _b(t){let e=ge(t?.in),r=N(t?.in,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()-1),r.setHours(23,59,59,999),r}i(_b,"endOfYesterday");var tse=_b;var I_={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"}},Rb=i((t,e,r)=>{let n,o=I_[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 xc(t){return(e={})=>{let r=e.width?String(e.width):t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}i(xc,"buildFormatLongFn");var P_={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},__={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},R_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nb={date:xc({formats:P_,defaultWidth:"full"}),time:xc({formats:__,defaultWidth:"full"}),dateTime:xc({formats:R_,defaultWidth:"full"})};var N_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fb=i((t,e,r,n)=>N_[t],"formatRelative");function es(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(es,"buildLocalizeFn");var F_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},L_={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"]},B_={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"]},$_={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"}},H_={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"}},z_=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"),Lb={ordinalNumber:z_,era:es({values:F_,defaultWidth:"wide"}),quarter:es({values:L_,defaultWidth:"wide",argumentCallback:i(t=>t-1,"argumentCallback")}),month:es({values:A_,defaultWidth:"wide"}),day:es({values:B_,defaultWidth:"wide"}),dayPeriod:es({values:$_,defaultWidth:"wide",formattingValues:H_,defaultFormattingWidth:"wide"})};function ts(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)?q_(l,p=>p.test(a)):W_(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(ts,"buildMatchFn");function W_(t,e){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return r}i(W_,"findKey");function q_(t,e){for(let r=0;r<t.length;r++)if(e(t[r]))return r}i(q_,"findIndex");function Ab(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(Ab,"buildMatchPatternFn");var j_=/^(\d+)(th|st|nd|rd)?/i,U_=/\d+/i,Y_={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},V_={any:[/^b/i,/^(a|c)/i]},G_={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]},J_={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},X_={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]},Z_={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},K_={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]},eR={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},tR={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}},Bb={ordinalNumber:Ab({matchPattern:j_,parsePattern:U_,valueCallback:i(t=>parseInt(t,10),"valueCallback")}),era:ts({matchPatterns:Y_,defaultMatchWidth:"wide",parsePatterns:V_,defaultParseWidth:"any"}),quarter:ts({matchPatterns:G_,defaultMatchWidth:"wide",parsePatterns:Q_,defaultParseWidth:"any",valueCallback:i(t=>t+1,"valueCallback")}),month:ts({matchPatterns:J_,defaultMatchWidth:"wide",parsePatterns:X_,defaultParseWidth:"any"}),day:ts({matchPatterns:Z_,defaultMatchWidth:"wide",parsePatterns:K_,defaultParseWidth:"any"}),dayPeriod:ts({matchPatterns:eR,defaultMatchWidth:"any",parsePatterns:tR,defaultParseWidth:"any"})};var qt={code:"en-US",formatDistance:Rb,formatLong:Nb,formatRelative:Fb,localize:Lb,match:Bb,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ise=qt;function yc(t,e){let r=w(t,e?.in);return pt(r,Ko(r))+1}i(yc,"getDayOfYear");var Ase=yc;function rs(t,e){let r=w(t,e?.in),n=+et(r)-+Xt(r);return Math.round(n/Gr)+1}i(rs,"getISOWeek");var jse=rs;function Yn(t,e){let r=w(t,e?.in),n=r.getFullYear(),o=Oe(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=N(e?.in||t,0);a.setFullYear(n+1,0,s),a.setHours(0,0,0,0);let l=Ne(a,e),u=N(e?.in||t,0);u.setFullYear(n,0,s),u.setHours(0,0,0,0);let c=Ne(u,e);return+r>=+l?n+1:+r>=+c?n:n-1}i(Yn,"getWeekYear");var Xse=Yn;function Ai(t,e){let r=Oe(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=Yn(t,e),s=N(e?.in||t,0);return s.setFullYear(o,0,n),s.setHours(0,0,0,0),Ne(s,e)}i(Ai,"startOfWeekYear");var iae=Ai;function ns(t,e){let r=w(t,e?.in),n=+Ne(r,e)-+Ai(r,e);return Math.round(n/Gr)+1}i(ns,"getWeek");var fae=ns;function J(t,e){let r=t<0?"-":"",n=Math.abs(t).toString().padStart(e,"0");return r+n}i(J,"addLeadingZeros");var Zt={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 is={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Na={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 Zt.y(t,e)},"y"),Y:i(function(t,e,r,n){let o=Yn(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=Rt(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 Zt.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=ns(t,n);return e==="wo"?r.ordinalNumber(o,{unit:"week"}):J(o,e.length)},"w"),I:i(function(t,e,r){let n=rs(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"}):Zt.d(t,e)},"d"),D:i(function(t,e,r){let n=yc(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=is.noon:n===0?o=is.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=is.evening:n>=12?o=is.afternoon:n>=4?o=is.morning:o=is.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 Zt.h(t,e)},"h"),H:i(function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getHours(),{unit:"hour"}):Zt.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"}):Zt.m(t,e)},"m"),s:i(function(t,e,r){return e==="so"?r.ordinalNumber(t.getSeconds(),{unit:"second"}):Zt.s(t,e)},"s"),S:i(function(t,e){return Zt.S(t,e)},"S"),X:i(function(t,e,r){let n=t.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return Hb(n);case"XXXX":case"XX":return Bi(n);default:return Bi(n,":")}},"X"),x:i(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"x":return Hb(n);case"xxxx":case"xx":return Bi(n);default:return Bi(n,":")}},"x"),O:i(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+$b(n,":");default:return"GMT"+Bi(n,":")}},"O"),z:i(function(t,e,r){let n=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+$b(n,":");default:return"GMT"+Bi(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 $b(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($b,"formatTimezoneShort");function Hb(t,e){return t%60===0?(t>0?"-":"+")+J(Math.abs(t)/60,2):Bi(t,e)}i(Hb,"formatTimezoneWithOptionalMinutes");function Bi(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(Bi,"formatTimezone");var zb=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"),Wb=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"),rR=i((t,e)=>{let r=t.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return zb(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}}",zb(n,e)).replace("{{time}}",Wb(o,e))},"dateTimeLongFormatter"),Vn={p:Wb,P:rR};var nR=/^D+$/,iR=/^Y+$/,oR=["D","DD","YY","YYYY"];function wc(t){return nR.test(t)}i(wc,"isProtectedDayOfYearToken");function bc(t){return iR.test(t)}i(bc,"isProtectedWeekYearToken");function Fa(t,e,r){let n=sR(t,e,r);if(console.warn(n),oR.includes(t))throw new RangeError(n)}i(Fa,"warnOrThrowProtectedError");function sR(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(sR,"message");var aR=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,lR=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uR=/^'([^]*?)'?$/,cR=/''/g,fR=/[a-zA-Z]/;function La(t,e,r){let n=Oe(),o=r?.locale??n.locale??qt,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=w(t,r?.in);if(!yt(l))throw new RangeError("Invalid time value");let u=e.match(lR).map(f=>{let p=f[0];if(p==="p"||p==="P"){let h=Vn[p];return h(f,o.formatLong)}return f}).join("").match(aR).map(f=>{if(f==="''")return{isToken:!1,value:"'"};let p=f[0];if(p==="'")return{isToken:!1,value:pR(f)};if(Na[p])return{isToken:!0,value:f};if(p.match(fR))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&&bc(p)||!r?.useAdditionalDayOfYearTokens&&wc(p))&&Fa(p,e,String(t));let h=Na[p[0]];return h(l,p,o.localize,c)}).join("")}i(La,"format");function pR(t){let e=t.match(uR);return e?e[1].replace(cR,"'"):t}i(pR,"cleanEscapedString");var Bae=La;function vc(t,e,r){let n=Oe(),o=r?.locale??n.locale??qt,s=2520,a=kt(t,e);if(isNaN(a))throw new RangeError("Invalid time value");let l=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:a}),[u,c]=K(r?.in,...a>0?[e,t]:[t,e]),f=Kr(c,u),p=(Ue(c)-Ue(u))/1e3,h=Math.round((f-p)/60),d;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<qo){let m=Math.round(h/60);return o.formatDistance("aboutXHours",m,l)}else{if(h<s)return o.formatDistance("xDays",1,l);if(h<$n){let m=Math.round(h/qo);return o.formatDistance("xDays",m,l)}else if(h<$n*2)return d=Math.round(h/$n),o.formatDistance("aboutXMonths",d,l)}if(d=jn(c,u),d<12){let m=Math.round(h/$n);return o.formatDistance("xMonths",m,l)}else{let m=d%12,g=Math.trunc(d/12);return m<3?o.formatDistance("aboutXYears",g,l):m<9?o.formatDistance("overXYears",g,l):o.formatDistance("almostXYears",g+1,l)}}i(vc,"formatDistance");var Qae=vc;function kc(t,e,r){let n=Oe(),o=r?.locale??n.locale??qt,s=kt(t,e);if(isNaN(s))throw new RangeError("Invalid time value");let a=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:s}),[l,u]=K(r?.in,...s>0?[e,t]:[t,e]),c=St(r?.roundingMethod??"round"),f=u.getTime()-l.getTime(),p=f/vt,h=Ue(u)-Ue(l),d=(f-h)/vt,m=r?.unit,g;if(m?g=m:p<1?g="second":p<60?g="minute":p<qo?g="hour":d<$n?g="day":d<Ld?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(d/qo);return o.formatDistance("xDays",x,a)}else if(g==="month"){let x=c(d/$n);return x===12&&m!=="month"?o.formatDistance("xYears",1,a):o.formatDistance("xMonths",x,a)}else{let x=c(d/Ld);return o.formatDistance("xYears",x,a)}}i(kc,"formatDistanceStrict");var ole=kc;function qb(t,e){return vc(t,ge(t),e)}i(qb,"formatDistanceToNow");var cle=qb;function jb(t,e){return kc(t,ge(t),e)}i(jb,"formatDistanceToNowStrict");var mle=jb;var hR=["years","months","weeks","days","hours","minutes","seconds"];function Ub(t,e){let r=Oe(),n=e?.locale??r.locale??qt,o=e?.format??hR,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(Ub,"formatDuration");var ble=Ub;function Yb(t,e){let r=w(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),y=J(g%60,2);a=`${c<0?"+":"-"}${x}:${y}`}else a="Z";let f=J(r.getHours(),2),p=J(r.getMinutes(),2),h=J(r.getSeconds(),2),d=s===""?"":"T",m=[f,p,h].join(u);s=`${s}${d}${m}${a}`}return s}i(Yb,"formatISO");var Ele=Yb;function Vb(t,e){let r=w(t,e?.in);if(!yt(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(Vb,"formatISO9075");var Ple=Vb;function Gb(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(Gb,"formatISODuration");var Nle=Gb;function Qb(t,e){let r=w(t,e?.in);if(!yt(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 d=r.getMilliseconds(),m=Math.trunc(d*Math.pow(10,n-3));f="."+J(m,n)}let p="",h=r.getTimezoneOffset();if(h!==0){let d=Math.abs(h),m=J(Math.trunc(d/60),2),g=J(d%60,2);p=`${h<0?"+":"-"}${m}:${g}`}else p="Z";return`${a}-${s}-${o}T${l}:${u}:${c}${f}${p}`}i(Qb,"formatRFC3339");var Hle=Qb;var dR=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],mR=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Jb(t){let e=w(t);if(!yt(e))throw new RangeError("Invalid time value");let r=dR[e.getUTCDay()],n=J(e.getUTCDate(),2),o=mR[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(Jb,"formatRFC7231");var Yle=Jb;function Xb(t,e,r){let[n,o]=K(r?.in,t,e),s=Oe(),a=r?.locale??s.locale??qt,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0,u=pt(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 La(n,f,{locale:a,weekStartsOn:l})}i(Xb,"formatRelative");var eue=Xb;function Zb(t,e){return w(t*1e3,e?.in)}i(Zb,"fromUnixTime");var iue=Zb;function Sc(t,e){return w(t,e?.in).getDate()}i(Sc,"getDate");var lue=Sc;function Gn(t,e){return w(t,e?.in).getDay()}i(Gn,"getDay");var pue=Gn;function Tc(t,e){let r=w(t,e?.in),n=r.getFullYear(),o=r.getMonth(),s=N(r,0);return s.setFullYear(n,o+1,0),s.setHours(0,0,0,0),s.getDate()}i(Tc,"getDaysInMonth");var xue=Tc;function Ec(t,e){let n=w(t,e?.in).getFullYear();return n%400===0||n%4===0&&n%100!==0}i(Ec,"isLeapYear");var vue=Ec;function Kb(t,e){let r=w(t,e?.in);return Number.isNaN(+r)?NaN:Ec(r)?366:365}i(Kb,"getDaysInYear");var Due=Kb;function e0(t,e){let n=w(t,e?.in).getFullYear();return Math.floor(n/10)*10}i(e0,"getDecade");var Iue=e0;function Dc(){return Object.assign({},Oe())}i(Dc,"getDefaultOptions");var Nue=Dc;function t0(t,e){return w(t,e?.in).getHours()}i(t0,"getHours");var Bue=t0;function Cc(t,e){let r=w(t,e?.in).getDay();return r===0?7:r}i(Cc,"getISODay");var Wue=Cc;function r0(t,e){let r=Xt(t,e),o=+Xt(Wn(r,60))-+r;return Math.round(o/Gr)}i(r0,"getISOWeeksInYear");var Gue=r0;function n0(t){return w(t).getMilliseconds()}i(n0,"getMilliseconds");var Zue=n0;function i0(t,e){return w(t,e?.in).getMinutes()}i(i0,"getMinutes");var rce=i0;function o0(t,e){return w(t,e?.in).getMonth()}i(o0,"getMonth");var sce=o0;function s0(t,e){let[r,n]=[+w(t.start),+w(t.end)].sort((p,h)=>p-h),[o,s]=[+w(e.start),+w(e.end)].sort((p,h)=>p-h);if(!(r<s&&o<n))return 0;let l=o<r?r:o,u=l-Ue(l),c=s>n?n:s,f=c-Ue(c);return Math.ceil((f-u)/Vu)}i(s0,"getOverlappingDaysInIntervals");var pce=s0;function a0(t){return w(t).getSeconds()}i(a0,"getSeconds");var gce=a0;function l0(t){return+w(t)}i(l0,"getTime");var bce=l0;function u0(t){return Math.trunc(+w(t)/1e3)}i(u0,"getUnixTime");var Tce=u0;function c0(t,e){let r=Oe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Sc(w(t,e?.in));if(isNaN(o))return NaN;let s=Gn(Un(t,e)),a=n-s;a<=0&&(a+=7);let l=o-a;return Math.ceil(l/7)+1}i(c0,"getWeekOfMonth");var _ce=c0;function Mc(t,e){let r=w(t,e?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),w(r,e?.in)}i(Mc,"lastDayOfMonth");var Lce=Mc;function f0(t,e){let r=w(t,e?.in);return Ni(Mc(r,e),Un(r,e),e)+1}i(f0,"getWeeksInMonth");var qce=f0;function p0(t,e){return w(t,e?.in).getFullYear()}i(p0,"getYear");var Vce=p0;function h0(t){return Math.trunc(t*Jt)}i(h0,"hoursToMilliseconds");var Xce=h0;function d0(t){return Math.trunc(t*Gu)}i(d0,"hoursToMinutes");var tfe=d0;function m0(t){return Math.trunc(t*_i)}i(m0,"hoursToSeconds");var ofe=m0;function g0(t,e,r){let[n,o]=K(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(g0,"interval");var ufe=g0;function x0(t,e){let{start:r,end:n}=ht(e?.in,t),o={},s=hc(n,r);s&&(o.years=s);let a=Hn(r,{years:o.years}),l=jn(n,a);l&&(o.months=l);let u=Hn(a,{months:o.months}),c=Go(n,u);c&&(o.days=c);let f=Hn(u,{days:o.days}),p=Fi(n,f);p&&(o.hours=p);let h=Hn(f,{hours:o.hours}),d=Li(n,h);d&&(o.minutes=d);let m=Hn(h,{minutes:o.minutes}),g=Kr(n,m);return g&&(o.seconds=g),o}i(x0,"intervalToDuration");var bfe=x0;function y0(t,e,r){let n;return gR(e)?n=e:r=e,new Intl.DateTimeFormat(r?.locale,n).format(w(t))}i(y0,"intlFormat");function gR(t){return t!==void 0&&!("locale"in t)}i(gR,"isFormatOptions");var Tfe=y0;function w0(t,e,r){let n=0,o,[s,a]=K(r?.in,t,e);if(r?.unit)o=r?.unit,o==="second"?n=Kr(s,a):o==="minute"?n=Li(s,a):o==="hour"?n=Fi(s,a):o==="day"?n=pt(s,a):o==="week"?n=Ni(s,a):o==="month"?n=Ri(s,a):o==="quarter"?n=Vo(s,a):o==="year"&&(n=qn(s,a));else{let u=Kr(s,a);Math.abs(u)<jo?(n=Kr(s,a),o="second"):Math.abs(u)<_i?(n=Li(s,a),o="minute"):Math.abs(u)<Uu&&Math.abs(pt(s,a))<1?(n=Fi(s,a),o="hour"):Math.abs(u)<eb&&(n=pt(s,a))&&Math.abs(n)<7?o="day":Math.abs(u)<Bd?(n=Ni(s,a),o="week"):Math.abs(u)<tb?(n=Ri(s,a),o="month"):Math.abs(u)<Ad?Vo(s,a)<4?(n=Vo(s,a),o="quarter"):(n=qn(s,a),o="year"):(n=qn(s,a),o="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(n,o)}i(w0,"intlFormatDistance");var Afe=w0;function b0(t,e){return+w(t)>+w(e)}i(b0,"isAfter");var zfe=b0;function v0(t,e){return+w(t)<+w(e)}i(v0,"isBefore");var Ufe=v0;function k0(t,e){return+w(t)==+w(e)}i(k0,"isEqual");var Qfe=k0;function S0(t,e,r){let n=new Date(t,e,r);return n.getFullYear()===t&&n.getMonth()===e&&n.getDate()===r}i(S0,"isExists");var Zfe=S0;function T0(t,e){return w(t,e?.in).getDate()===1}i(T0,"isFirstDayOfMonth");var rpe=T0;function E0(t,e){return w(t,e?.in).getDay()===5}i(E0,"isFriday");var spe=E0;function D0(t){return+w(t)>Date.now()}i(D0,"isFuture");var cpe=D0;function Oc(t,e){let r=xR(e)?new e(0):N(e,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),r}i(Oc,"transpose");function xR(t){return typeof t=="function"&&t.prototype?.constructor===t}i(xR,"isConstructor");var dpe=Oc;var yR=10,Ic=class{static{i(this,"Setter")}subPriority=0;validate(e,r){return!0}},Pc=class extends Ic{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)}},_c=class extends Ic{static{i(this,"DateTimezoneSetter")}priority=yR;subPriority=-1;constructor(e,r){super(),this.context=e||(n=>N(r,n))}set(e,r){return r.timestampIsSet?e:N(e,Oc(e,this.context))}};var Q=class{static{i(this,"Parser")}run(e,r,n,o){let s=this.parse(e,r,n,o);return s?{setter:new Pc(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,r,n){return!0}};var Rc=class extends Q{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 ve={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}/},ur={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 Ie(t,e){return t&&{value:e(t.value),rest:t.rest}}i(Ie,"mapValue");function we(t,e){let r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}i(we,"parseNumericPattern");function cr(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*Jt+s*vt+a*Wo),rest:e.slice(r[0].length)}}i(cr,"parseTimezonePattern");function Nc(t){return we(ve.anyDigitsSigned,t)}i(Nc,"parseAnyDigitsSigned");function me(t,e){switch(t){case 1:return we(ve.singleDigit,e);case 2:return we(ve.twoDigits,e);case 3:return we(ve.threeDigits,e);case 4:return we(ve.fourDigits,e);default:return we(new RegExp("^\\d{1,"+t+"}"),e)}}i(me,"parseNDigits");function os(t,e){switch(t){case 1:return we(ve.singleDigitSigned,e);case 2:return we(ve.twoDigitsSigned,e);case 3:return we(ve.threeDigitsSigned,e);case 4:return we(ve.fourDigitsSigned,e);default:return we(new RegExp("^-?\\d{1,"+t+"}"),e)}}i(os,"parseNDigitsSigned");function ss(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}i(ss,"dayPeriodEnumToHours");function Fc(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(Fc,"normalizeTwoDigitYear");function Lc(t){return t%400===0||t%4===0&&t%100!==0}i(Lc,"isLeapYearIndex");var Ac=class extends Q{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 Ie(me(4,e),o);case"yo":return Ie(n.ordinalNumber(e,{unit:"year"}),o);default:return Ie(me(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=Fc(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 Bc=class extends Q{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 Ie(me(4,e),o);case"Yo":return Ie(n.ordinalNumber(e,{unit:"year"}),o);default:return Ie(me(r.length,e),o)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n,o){let s=Yn(e,o);if(n.isTwoDigitYear){let l=Fc(n.year,s);return e.setFullYear(l,0,o.firstWeekContainsDate),e.setHours(0,0,0,0),Ne(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),Ne(e,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var $c=class extends Q{static{i(this,"ISOWeekYearParser")}priority=130;parse(e,r){return r==="R"?os(4,e):os(r.length,e)}set(e,r,n){let o=N(e,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),et(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Hc=class extends Q{static{i(this,"ExtendedYearParser")}priority=130;parse(e,r){return r==="u"?os(4,e):os(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 zc=class extends Q{static{i(this,"QuarterParser")}priority=120;parse(e,r,n){switch(r){case"Q":case"QQ":return me(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 Wc=class extends Q{static{i(this,"StandAloneQuarterParser")}priority=120;parse(e,r,n){switch(r){case"q":case"qq":return me(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 qc=class extends Q{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 Ie(we(ve.month,e),o);case"MM":return Ie(me(2,e),o);case"Mo":return Ie(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 jc=class extends Q{static{i(this,"StandAloneMonthParser")}priority=110;parse(e,r,n){let o=i(s=>s-1,"valueCallback");switch(r){case"L":return Ie(we(ve.month,e),o);case"LL":return Ie(me(2,e),o);case"Lo":return Ie(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 Uc(t,e,r){let n=w(t,r?.in),o=ns(n,r)-e;return n.setDate(n.getDate()-o*7),w(n,r?.in)}i(Uc,"setWeek");var yhe=Uc;var Yc=class extends Q{static{i(this,"LocalWeekParser")}priority=100;parse(e,r,n){switch(r){case"w":return we(ve.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return me(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n,o){return Ne(Uc(e,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function Vc(t,e,r){let n=w(t,r?.in),o=rs(n,r)-e;return n.setDate(n.getDate()-o*7),n}i(Vc,"setISOWeek");var Ihe=Vc;var Gc=class extends Q{static{i(this,"ISOWeekParser")}priority=100;parse(e,r,n){switch(r){case"I":return we(ve.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return me(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n){return et(Vc(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var wR=[31,28,31,30,31,30,31,31,30,31,30,31],bR=[31,29,31,30,31,30,31,31,30,31,30,31],Qc=class extends Q{static{i(this,"DateParser")}priority=90;subPriority=1;parse(e,r,n){switch(r){case"d":return we(ve.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return me(r.length,e)}}validate(e,r){let n=e.getFullYear(),o=Lc(n),s=e.getMonth();return o?r>=1&&r<=bR[s]:r>=1&&r<=wR[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 Jc=class extends Q{static{i(this,"DayOfYearParser")}priority=90;subpriority=1;parse(e,r,n){switch(r){case"D":case"DD":return we(ve.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return me(r.length,e)}}validate(e,r){let n=e.getFullYear();return Lc(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 Qn(t,e,r){let n=Oe(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=w(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 st(s,f,r)}i(Qn,"setDay");var Khe=Qn;var Xc=class extends Q{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=Qn(e,n,o),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]};var Zc=class extends Q{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 Ie(me(r.length,e),s);case"eo":return Ie(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=Qn(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 Kc=class extends Q{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 Ie(me(r.length,e),s);case"co":return Ie(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=Qn(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 ef(t,e,r){let n=w(t,r?.in),o=Cc(n,r),s=e-o;return st(n,s,r)}i(ef,"setISODay");var wde=ef;var tf=class extends Q{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 me(r.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Ie(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 Ie(n.day(e,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Ie(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),o);default:return Ie(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=ef(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 rf=class extends Q{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(ss(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};var nf=class extends Q{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(ss(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};var of=class extends Q{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(ss(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]};var sf=class extends Q{static{i(this,"Hour1to12Parser")}priority=70;parse(e,r,n){switch(r){case"h":return we(ve.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return me(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 af=class extends Q{static{i(this,"Hour0to23Parser")}priority=70;parse(e,r,n){switch(r){case"H":return we(ve.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return me(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 lf=class extends Q{static{i(this,"Hour0To11Parser")}priority=70;parse(e,r,n){switch(r){case"K":return we(ve.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return me(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 uf=class extends Q{static{i(this,"Hour1To24Parser")}priority=70;parse(e,r,n){switch(r){case"k":return we(ve.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return me(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 cf=class extends Q{static{i(this,"MinuteParser")}priority=60;parse(e,r,n){switch(r){case"m":return we(ve.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return me(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 ff=class extends Q{static{i(this,"SecondParser")}priority=50;parse(e,r,n){switch(r){case"s":return we(ve.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return me(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 pf=class extends Q{static{i(this,"FractionOfSecondParser")}priority=30;parse(e,r){let n=i(o=>Math.trunc(o*Math.pow(10,-r.length+3)),"valueCallback");return Ie(me(r.length,e),n)}set(e,r,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]};var hf=class extends Q{static{i(this,"ISOTimezoneWithZParser")}priority=10;parse(e,r){switch(r){case"X":return cr(ur.basicOptionalMinutes,e);case"XX":return cr(ur.basic,e);case"XXXX":return cr(ur.basicOptionalSeconds,e);case"XXXXX":return cr(ur.extendedOptionalSeconds,e);default:return cr(ur.extended,e)}}set(e,r,n){return r.timestampIsSet?e:N(e,e.getTime()-Ue(e)-n)}incompatibleTokens=["t","T","x"]};var df=class extends Q{static{i(this,"ISOTimezoneParser")}priority=10;parse(e,r){switch(r){case"x":return cr(ur.basicOptionalMinutes,e);case"xx":return cr(ur.basic,e);case"xxxx":return cr(ur.basicOptionalSeconds,e);case"xxxxx":return cr(ur.extendedOptionalSeconds,e);default:return cr(ur.extended,e)}}set(e,r,n){return r.timestampIsSet?e:N(e,e.getTime()-Ue(e)-n)}incompatibleTokens=["t","T","X"]};var mf=class extends Q{static{i(this,"TimestampSecondsParser")}priority=40;parse(e){return Nc(e)}set(e,r,n){return[N(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var gf=class extends Q{static{i(this,"TimestampMillisecondsParser")}priority=20;parse(e){return Nc(e)}set(e,r,n){return[N(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"};var xf={G:new Rc,y:new Ac,Y:new Bc,R:new $c,u:new Hc,Q:new zc,q:new Wc,M:new qc,L:new jc,w:new Yc,I:new Gc,d:new Qc,D:new Jc,E:new Xc,e:new Zc,c:new Kc,i:new tf,a:new rf,b:new nf,B:new of,h:new sf,H:new af,K:new lf,k:new uf,m:new cf,s:new ff,S:new pf,X:new hf,x:new df,t:new mf,T:new gf};var vR=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kR=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,SR=/^'([^]*?)'?$/,TR=/''/g,ER=/\S/,DR=/[a-zA-Z]/;function yf(t,e,r,n){let o=i(()=>N(n?.in||r,NaN),"invalidDate"),s=Dc(),a=n?.locale??s.locale??qt,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():w(r,n?.in);let c={firstWeekContainsDate:l,weekStartsOn:u,locale:a},f=[new _c(n?.in,r)],p=e.match(kR).map(x=>{let y=x[0];if(y in Vn){let S=Vn[y];return S(x,a.formatLong)}return x}).join("").match(vR),h=[];for(let x of p){!n?.useAdditionalWeekYearTokens&&bc(x)&&Fa(x,e,t),!n?.useAdditionalDayOfYearTokens&&wc(x)&&Fa(x,e,t);let y=x[0],S=xf[y];if(S){let{incompatibleTokens:T}=S;if(Array.isArray(T)){let z=h.find(C=>T.includes(C.token)||C.token===y);if(z)throw new RangeError(`The format string mustn't contain \`${z.fullToken}\` and \`${x}\` at the same time`)}else if(S.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:y,fullToken:x});let H=S.run(t,x,a.match,c);if(!H)return o();f.push(H.setter),t=H.rest}else{if(y.match(DR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(x==="''"?x="'":y==="'"&&(x=CR(x)),t.indexOf(x)===0)t=t.slice(x.length);else return o()}}if(t.length>0&&ER.test(t))return o();let d=f.map(x=>x.priority).sort((x,y)=>y-x).filter((x,y,S)=>S.indexOf(x)===y).map(x=>f.filter(y=>y.priority===x).sort((y,S)=>S.subPriority-y.subPriority)).map(x=>x[0]),m=w(r,n?.in);if(isNaN(+m))return o();let g={};for(let x of d){if(!x.validate(m,c))return o();let y=x.set(m,g,c);Array.isArray(y)?(m=y[0],Object.assign(g,y[1])):m=y}return m}i(yf,"parse");function CR(t){return t.match(SR)[1].replace(TR,"'")}i(CR,"cleanEscapedString");var Oge=yf;function C0(t,e,r){return yt(yf(t,e,new Date,r))}i(C0,"isMatch");var Nge=C0;function M0(t,e){return w(t,e?.in).getDay()===1}i(M0,"isMonday");var Bge=M0;function O0(t){return+w(t)<Date.now()}i(O0,"isPast");var Wge=O0;function Aa(t,e){let r=w(t,e?.in);return r.setMinutes(0,0,0),r}i(Aa,"startOfHour");var Yge=Aa;function wf(t,e,r){let[n,o]=K(r?.in,t,e);return+Aa(n)==+Aa(o)}i(wf,"isSameHour");var Xge=wf;function as(t,e,r){let[n,o]=K(r?.in,t,e);return+Ne(n,r)==+Ne(o,r)}i(as,"isSameWeek");var rxe=as;function bf(t,e,r){return as(t,e,{...r,weekStartsOn:1})}i(bf,"isSameISOWeek");var sxe=bf;function I0(t,e,r){let[n,o]=K(r?.in,t,e);return+Xt(n)==+Xt(o)}i(I0,"isSameISOWeekYear");var fxe=I0;function Ba(t,e){let r=w(t,e?.in);return r.setSeconds(0,0),r}i(Ba,"startOfMinute");var mxe=Ba;function vf(t,e){return+Ba(t)==+Ba(e)}i(vf,"isSameMinute");var wxe=vf;function kf(t,e,r){let[n,o]=K(r?.in,t,e);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}i(kf,"isSameMonth");var Sxe=kf;function Sf(t,e,r){let[n,o]=K(r?.in,t,e);return+en(n)==+en(o)}i(Sf,"isSameQuarter");var Mxe=Sf;function $a(t,e){let r=w(t,e?.in);return r.setMilliseconds(0),r}i($a,"startOfSecond");var _xe=$a;function Tf(t,e){return+$a(t)==+$a(e)}i(Tf,"isSameSecond");var Lxe=Tf;function Ef(t,e,r){let[n,o]=K(r?.in,t,e);return n.getFullYear()===o.getFullYear()}i(Ef,"isSameYear");var Hxe=Ef;function P0(t,e){return wf(w(t,e?.in),ge(e?.in||t))}i(P0,"isThisHour");var Yxe=P0;function _0(t,e){return bf(N(e?.in||t,t),ge(e?.in||t))}i(_0,"isThisISOWeek");var Zxe=_0;function R0(t){return vf(t,ge(t))}i(R0,"isThisMinute");var nye=R0;function N0(t,e){return kf(N(e?.in||t,t),ge(e?.in||t))}i(N0,"isThisMonth");var uye=N0;function F0(t,e){return Sf(N(e?.in||t,t),ge(e?.in||t))}i(F0,"isThisQuarter");var mye=F0;function L0(t){return Tf(t,ge(t))}i(L0,"isThisSecond");var bye=L0;function A0(t,e){return as(N(e?.in||t,t),ge(e?.in||t),e)}i(A0,"isThisWeek");var Dye=A0;function B0(t,e){return Ef(N(e?.in||t,t),ge(e?.in||t))}i(B0,"isThisYear");var _ye=B0;function $0(t,e){return w(t,e?.in).getDay()===4}i($0,"isThursday");var Lye=$0;function H0(t,e){return Zr(N(e?.in||t,t),ge(e?.in||t))}i(H0,"isToday");var Wye=H0;function z0(t,e){return Zr(t,st(ge(e?.in||t),1),e)}i(z0,"isTomorrow");var Gye=z0;function W0(t,e){return w(t,e?.in).getDay()===2}i(W0,"isTuesday");var Zye=W0;function q0(t,e){return w(t,e?.in).getDay()===3}i(q0,"isWednesday");var rwe=q0;function j0(t,e,r){let n=+w(t,r?.in),[o,s]=[+w(e.start,r?.in),+w(e.end,r?.in)].sort((a,l)=>a-l);return n>=o&&n<=s}i(j0,"isWithinInterval");var swe=j0;function Jn(t,e,r){return st(t,-e,r)}i(Jn,"subDays");var cwe=Jn;function U0(t,e){return Zr(N(e?.in||t,t),Jn(ge(e?.in||t),1))}i(U0,"isYesterday");var xwe=U0;function Y0(t,e){let r=w(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),w(r,e?.in)}i(Y0,"lastDayOfDecade");var vwe=Y0;function Df(t,e){let r=Oe(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=w(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(Df,"lastDayOfWeek");var Dwe=Df;function V0(t,e){return Df(t,{...e,weekStartsOn:1})}i(V0,"lastDayOfISOWeek");var Iwe=V0;function G0(t,e){let r=Rt(t,e),n=N(e?.in||t,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=et(n,e);return o.setDate(o.getDate()-1),o}i(G0,"lastDayOfISOWeekYear");var Lwe=G0;function Q0(t,e){let r=w(t,e?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(0,0,0,0),r}i(Q0,"lastDayOfQuarter");var Hwe=Q0;function J0(t,e){let r=w(t,e?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),r}i(J0,"lastDayOfYear");var jwe=J0;var MR=/(\w)\1*|''|'(''|[^'])+('|$)|./g,OR=/^'([^]*?)'?$/,IR=/''/g,PR=/[a-zA-Z]/;function X0(t,e){let r=w(t);if(!yt(r))throw new RangeError("Invalid time value");let n=e.match(MR);return n?n.map(s=>{if(s==="''")return"'";let a=s[0];if(a==="'")return _R(s);let l=Zt[a];if(l)return l(r,s);if(a.match(PR))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return s}).join(""):""}i(X0,"lightFormat");function _R(t){let e=t.match(OR);return e?e[1].replace(IR,"'"):t}i(_R,"cleanEscapedString");var Jwe=X0;function Z0({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(Z0,"milliseconds");var ebe=Z0;function K0(t){let e=t/Jt;return Math.trunc(e)}i(K0,"millisecondsToHours");var ibe=K0;function ev(t){let e=t/vt;return Math.trunc(e)}i(ev,"millisecondsToMinutes");var lbe=ev;function tv(t){let e=t/Wo;return Math.trunc(e)}i(tv,"millisecondsToSeconds");var pbe=tv;function rv(t){let e=t/Gu;return Math.trunc(e)}i(rv,"minutesToHours");var gbe=rv;function nv(t){return Math.trunc(t*vt)}i(nv,"minutesToMilliseconds");var bbe=nv;function iv(t){return Math.trunc(t*jo)}i(iv,"minutesToSeconds");var Tbe=iv;function ov(t){let e=t/Qu;return Math.trunc(e)}i(ov,"monthsToQuarters");var Mbe=ov;function sv(t){let e=t/Ju;return Math.trunc(e)}i(sv,"monthsToYears");var _be=sv;function Tt(t,e,r){let n=e-Gn(t,r);return n<=0&&(n+=7),st(t,n,r)}i(Tt,"nextDay");var Abe=Tt;function av(t,e){return Tt(t,5,e)}i(av,"nextFriday");var zbe=av;function lv(t,e){return Tt(t,1,e)}i(lv,"nextMonday");var Ube=lv;function uv(t,e){return Tt(t,6,e)}i(uv,"nextSaturday");var Qbe=uv;function cv(t,e){return Tt(t,0,e)}i(cv,"nextSunday");var Kbe=cv;function fv(t,e){return Tt(t,4,e)}i(fv,"nextThursday");var n0e=fv;function pv(t,e){return Tt(t,2,e)}i(pv,"nextTuesday");var a0e=pv;function hv(t,e){return Tt(t,3,e)}i(hv,"nextWednesday");var f0e=hv;function mv(t,e){let r=i(()=>N(e?.in,NaN),"invalidDate"),n=e?.additionalDigits??2,o=LR(t),s;if(o.date){let c=AR(o.date,n);s=BR(c.restDateString,c.year)}if(!s||isNaN(+s))return r();let a=+s,l=0,u;if(o.time&&(l=$R(o.time),isNaN(l)))return r();if(o.timezone){if(u=HR(o.timezone),isNaN(u))return r()}else{let c=new Date(a+l),f=w(0,e?.in);return f.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),f.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),f}return w(a+l+u,e?.in)}i(mv,"parseISO");var Cf={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},RR=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,NR=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,FR=/^([+-])(\d{2})(?::?(\d{2}))?$/;function LR(t){let e={},r=t.split(Cf.dateTimeDelimiter),n;if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],Cf.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Cf.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){let o=Cf.timezone.exec(n);o?(e.time=n.replace(o[1],""),e.timezone=o[1]):e.time=n}return e}i(LR,"splitDateString");function AR(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(AR,"parseYear");function BR(t,e){if(e===null)return new Date(NaN);let r=t.match(RR);if(!r)return new Date(NaN);let n=!!r[4],o=Ha(r[1]),s=Ha(r[2])-1,a=Ha(r[3]),l=Ha(r[4]),u=Ha(r[5])-1;if(n)return UR(e,l,u)?zR(e,l,u):new Date(NaN);{let c=new Date(0);return!qR(e,s,a)||!jR(e,o)?new Date(NaN):(c.setUTCFullYear(e,s,Math.max(o,a)),c)}}i(BR,"parseDate");function Ha(t){return t?parseInt(t):1}i(Ha,"parseDateUnit");function $R(t){let e=t.match(NR);if(!e)return NaN;let r=Hd(e[1]),n=Hd(e[2]),o=Hd(e[3]);return YR(r,n,o)?r*Jt+n*vt+o*1e3:NaN}i($R,"parseTime");function Hd(t){return t&&parseFloat(t.replace(",","."))||0}i(Hd,"parseTimeUnit");function HR(t){if(t==="Z")return 0;let e=t.match(FR);if(!e)return 0;let r=e[1]==="+"?-1:1,n=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return VR(n,o)?r*(n*Jt+o*vt):NaN}i(HR,"parseTimezone");function zR(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(zR,"dayOfISOWeekYear");var WR=[31,null,31,30,31,30,31,31,30,31,30,31];function dv(t){return t%400===0||t%4===0&&t%100!==0}i(dv,"isLeapYearIndex");function qR(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(WR[e]||(dv(t)?29:28))}i(qR,"validateDate");function jR(t,e){return e>=1&&e<=(dv(t)?366:365)}i(jR,"validateDayOfYearDate");function UR(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}i(UR,"validateWeekDate");function YR(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}i(YR,"validateTime");function VR(t,e){return e>=0&&e<=59}i(VR,"validateTimezone");var x0e=mv;function gv(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?w(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):w(NaN,e?.in)}i(gv,"parseJSON");var v0e=gv;function Et(t,e,r){let n=Gn(t,r)-e;return n<=0&&(n+=7),Jn(t,n,r)}i(Et,"previousDay");var D0e=Et;function xv(t,e){return Et(t,5,e)}i(xv,"previousFriday");var I0e=xv;function yv(t,e){return Et(t,1,e)}i(yv,"previousMonday");var N0e=yv;function wv(t,e){return Et(t,6,e)}i(wv,"previousSaturday");var B0e=wv;function bv(t,e){return Et(t,0,e)}i(bv,"previousSunday");var W0e=bv;function vv(t,e){return Et(t,4,e)}i(vv,"previousThursday");var Y0e=vv;function kv(t,e){return Et(t,2,e)}i(kv,"previousTuesday");var J0e=kv;function Sv(t,e){return Et(t,3,e)}i(Sv,"previousWednesday");var eve=Sv;function Tv(t){return Math.trunc(t*Qu)}i(Tv,"quartersToMonths");var ive=Tv;function Ev(t){let e=t/Xu;return Math.trunc(e)}i(Ev,"quartersToYears");var lve=Ev;function Dv(t,e){let r=e?.nearestTo??1;if(r<1||r>12)return N(e?.in||t,NaN);let n=w(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=St(u)(l/r)*r;return n.setHours(f,0,0,0),n}i(Dv,"roundToNearestHours");var dve=Dv;function Cv(t,e){let r=e?.nearestTo??1;if(r<1||r>30)return N(t,NaN);let n=w(t,e?.in),o=n.getSeconds()/60,s=n.getMilliseconds()/1e3/60,a=n.getMinutes()+o+s,l=e?.roundingMethod??"round",c=St(l)(a/r)*r;return n.setMinutes(c,0,0),n}i(Cv,"roundToNearestMinutes");var bve=Cv;function Mv(t){let e=t/_i;return Math.trunc(e)}i(Mv,"secondsToHours");var Tve=Mv;function Ov(t){return t*Wo}i(Ov,"secondsToMilliseconds");var Mve=Ov;function Iv(t){let e=t/jo;return Math.trunc(e)}i(Iv,"secondsToMinutes");var _ve=Iv;function ls(t,e,r){let n=w(t,r?.in),o=n.getFullYear(),s=n.getDate(),a=N(r?.in||t,0);a.setFullYear(o,e,15),a.setHours(0,0,0,0);let l=Tc(a);return n.setMonth(e,Math.min(s,l)),n}i(ls,"setMonth");var Bve=ls;function Pv(t,e,r){let n=w(t,r?.in);return isNaN(+n)?N(r?.in||t,NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=ls(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(Pv,"set");var jve=Pv;function _v(t,e,r){let n=w(t,r?.in);return n.setDate(e),n}i(_v,"setDate");var Gve=_v;function Rv(t,e,r){let n=w(t,r?.in);return n.setMonth(0),n.setDate(e),n}i(Rv,"setDayOfYear");var Zve=Rv;function Nv(t){let e={},r=Oe();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]);nb(e)}i(Nv,"setDefaultOptions");var rke=Nv;function Fv(t,e,r){let n=w(t,r?.in);return n.setHours(e),n}i(Fv,"setHours");var ske=Fv;function Lv(t,e,r){let n=w(t,r?.in);return n.setMilliseconds(e),n}i(Lv,"setMilliseconds");var cke=Lv;function Av(t,e,r){let n=w(t,r?.in);return n.setMinutes(e),n}i(Av,"setMinutes");var dke=Av;function Bv(t,e,r){let n=w(t,r?.in),o=Math.trunc(n.getMonth()/3)+1,s=e-o;return ls(n,n.getMonth()+s*3)}i(Bv,"setQuarter");var wke=Bv;function $v(t,e,r){let n=w(t,r?.in);return n.setSeconds(e),n}i($v,"setSeconds");var Ske=$v;function Hv(t,e,r){let n=Oe(),o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=pt(w(t,r?.in),Ai(t,r),r),a=N(r?.in||t,0);a.setFullYear(e,0,o),a.setHours(0,0,0,0);let l=Ai(a,r);return l.setDate(l.getDate()+s),l}i(Hv,"setWeekYear");var Pke=Hv;function zv(t,e,r){let n=w(t,r?.in);return isNaN(+n)?N(r?.in||t,NaN):(n.setFullYear(e),n)}i(zv,"setYear");var Lke=zv;function Wv(t,e){let r=w(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(Wv,"startOfDecade");var Hke=Wv;function qv(t){return Xr(Date.now(),t)}i(qv,"startOfToday");var jke=qv;function jv(t){let e=ge(t?.in),r=e.getFullYear(),n=e.getMonth(),o=e.getDate(),s=N(t?.in,0);return s.setFullYear(r,n,o+1),s.setHours(0,0,0,0),s}i(jv,"startOfTomorrow");var Qke=jv;function Uv(t){let e=ge(t?.in),r=e.getFullYear(),n=e.getMonth(),o=e.getDate(),s=ge(t?.in);return s.setFullYear(r,n,o-1),s.setHours(0,0,0,0),s}i(Uv,"startOfYesterday");var Kke=Uv;function Mf(t,e,r){return Qr(t,-e,r)}i(Mf,"subMonths");var nSe=Mf;function Yv(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=Mf(t,o+n*12,r),p=Jn(f,a+s*7,r),h=u+l*60,m=(c+h*60)*1e3;return N(r?.in||t,+p-m)}i(Yv,"sub");var uSe=Yv;function Vv(t,e,r){return ec(t,-e,r)}i(Vv,"subBusinessDays");var hSe=Vv;function Gv(t,e,r){return tc(t,-e,r)}i(Gv,"subHours");var xSe=Gv;function Qv(t,e,r){return zn(t,-e,r)}i(Qv,"subMilliseconds");var vSe=Qv;function Jv(t,e,r){return Uo(t,-e,r)}i(Jv,"subMinutes");var ESe=Jv;function Xv(t,e,r){return Yo(t,-e,r)}i(Xv,"subQuarters");var OSe=Xv;function Zv(t,e,r){return ic(t,-e,r)}i(Zv,"subSeconds");var RSe=Zv;function Kv(t,e,r){return Wn(t,-e,r)}i(Kv,"subWeeks");var ASe=Kv;function ek(t,e,r){return oc(t,-e,r)}i(ek,"subYears");var zSe=ek;function tk(t){return Math.trunc(t*7)}i(tk,"weeksToDays");var USe=tk;function rk(t){return Math.trunc(t*365.2425)}i(rk,"yearsToDays");var QSe=rk;function nk(t){return Math.trunc(t*Ju)}i(nk,"yearsToMonths");var KSe=nk;function ik(t){return Math.trunc(t*Xu)}i(ik,"yearsToQuarters");var nTe=ik;var ak=i(t=>Number.isFinite(t)?t:0,"toZeroIfInfinity");function GR(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(ak(t*1e3)%1e3),nanoseconds:Math.trunc(ak(t*1e6)%1e3)}}i(GR,"parseNumber");function QR(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(QR,"parseBigint");function Ud(t){switch(typeof t){case"number":{if(Number.isFinite(t))return GR(t);break}case"bigint":return QR(t)}throw new TypeError("Expected a finite number or bigint")}i(Ud,"parseMilliseconds");var JR=i(t=>t===0||t===0n,"isZero"),XR=i((t,e)=>e===1||e===1n?t:`${t}s`,"pluralize"),ZR=1e-7,KR=24n*60n*60n*1000n;function Wa(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+ZR);return(Math.round(h)/10**p).toFixed(p)},"floorDecimals"),a=i((f,p,h,d)=>{if(!((o.length===0||!e.colonNotation)&&JR(f)&&!(e.colonNotation&&h==="m"))){if(d??=String(f),e.colonNotation){let m=d.includes(".")?d.split(".")[0].length:d.length,g=o.length>0?2:1;d="0".repeat(Math.max(0,g-m))+d}else d+=e.verbose?" "+XR(p,f):h;o.push(d)}},"add"),l=Ud(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),d=Number(l.nanoseconds);if(a(f,"second","s"),e.formatSubMilliseconds)a(p,"millisecond","ms"),a(h,"microsecond","\xB5s"),a(d,"nanosecond","ns");else{let m=p+h/1e3+d/1e6,g=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,x=m>=1?Math.round(m):Math.ceil(m),y=1e3-10**-g,S=g?Math.min(m,y).toFixed(g):Math.min(x,y);a(Number.parseFloat(S),"millisecond","ms",S)}}else{let f=(r?Number(t%KR):t)/1e3%60,p=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,h=s(f,p),d=e.keepDecimalsOnWholeSeconds?h:h.replace(/\.0+$/,"");a(Number.parseFloat(d),"second","s",d)}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(Wa,"prettyMilliseconds");var $i=Qt(ok(),1),lk=Qt(sk(),1);$i.default.extend(lk.default);var qa=class{static{i(this,"CronJob")}constructor(e,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=new Pa.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 Yd=class{static{i(this,"CronManager")}constructor(){this.status="stopped",this.cronjobs=new Fe.ObjectMap,this.cycleWakeDeferred=null}wakeCycle(){this.cycleWakeDeferred&&this.cycleWakeDeferred.status==="pending"&&this.cycleWakeDeferred.resolve()}addCronjob(e,r){let n=new qa(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 ie.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 ue.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 Xn={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")},Vd=i(t=>{let e=0,r=i(n=>{e=e+n},"addMilliSeconds");return t.years&&r(Xn.years(t.years)),t.months&&r(Xn.months(t.months)),t.weeks&&r(Xn.weeks(t.weeks)),t.days&&r(Xn.days(t.days)),t.hours&&r(Xn.hours(t.hours)),t.minutes&&r(Xn.minutes(t.minutes)),t.seconds&&r(Xn.seconds(t.seconds)),e},"getMilliSecondsFromUnits"),eN=i(t=>Wa(t),"getMilliSecondsAsHumanReadableString"),tN=i(t=>za.formatDistanceToNow(new Date(t)),"getMilliSecondsAsHumanReadableAgoTime");var Gd=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=$i.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 $i.default(this.getTime()).format(e)}isToday(){return $i.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=Vd(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Qd=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 Jd=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 ue.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 cs=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 Xd=class{static{i(this,"Timer")}get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=ie.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new cs;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=cs.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 If=Qt(wk(),1);var Kd=class{static{i(this,"AsyncExecutionStack")}executionSlots=[];isProcessing=!1;nonExclusiveMaxConcurrency=1/0;nonExclusiveCurrentCount=0;nonExclusivePendingQueue=[];async getExclusiveExecutionSlot(e,r){let n=ie.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=ie.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 ue.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 ue.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 Hi=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 bk=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"),bn=class t{static{i(this,"ObjectMap")}fastMap=new Hi;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=bk("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 ja=class{static{i(this,"Interest")}options;interestMapRef;originalInterest;comparisonFunc;destructionTimer=new Sr.Timer(1e4);isFullfilled=!1;isDestroyed=!1;fullfillmentStore=[];markLostTimeout=null;get comparisonString(){return this.comparisonFunc(this.originalInterest)}interestDeferred=new ie.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 ue.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 bn;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 ja(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 bn;constructor(){}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}reset(){this.referenceObjectMap.wipe()}destroy(){this.referenceObjectMap.destroy()}};var Ua=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 Ca.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=ie.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 Ya=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 Sr.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 If.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 Kt={};le(Kt,{base64ToUint8Array:()=>DN,ensurePureUint8Array:()=>ON,isBufferLike:()=>MN,isUint8Array:()=>CN,uInt8ArrayExtras:()=>TN,uInt8ArrayToBase64:()=>EN});var ri={};le(ri,{areUint8ArraysEqual:()=>fN,assertUint8Array:()=>ti,assertUint8ArrayOrArrayBuffer:()=>Ek,base64ToString:()=>xN,base64ToUint8Array:()=>Ok,compareUint8Arrays:()=>pN,concatUint8Arrays:()=>cN,getUintBE:()=>vN,hexToUint8Array:()=>bN,includes:()=>kN,indexOf:()=>Ik,isUint8Array:()=>om,stringToBase64:()=>gN,stringToUint8Array:()=>Ck,toUint8Array:()=>uN,uint8ArrayToBase64:()=>Mk,uint8ArrayToHex:()=>wN,uint8ArrayToString:()=>Dk});var iN=Object.prototype.toString,oN="[object Uint8Array]",sN="[object ArrayBuffer]";function vk(t,e,r){return t?t.constructor===e?!0:iN.call(t)===r:!1}i(vk,"isType");function om(t){return vk(t,Uint8Array,oN)}i(om,"isUint8Array");function aN(t){return vk(t,ArrayBuffer,sN)}i(aN,"isArrayBuffer");function lN(t){return om(t)||aN(t)}i(lN,"isUint8ArrayOrArrayBuffer");function ti(t){if(!om(t))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof t}\``)}i(ti,"assertUint8Array");function Ek(t){if(!lN(t))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof t}\``)}i(Ek,"assertUint8ArrayOrArrayBuffer");function uN(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(uN,"toUint8Array");function cN(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)ti(o),r.set(o,n),n+=o.length;return r}i(cN,"concatUint8Arrays");function fN(t,e){if(ti(t),ti(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(fN,"areUint8ArraysEqual");function pN(t,e){ti(t),ti(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(pN,"compareUint8Arrays");var kk={utf8:new globalThis.TextDecoder("utf8")};function Dk(t,e="utf8"){return Ek(t),kk[e]??=new globalThis.TextDecoder(e),kk[e].decode(t)}i(Dk,"uint8ArrayToString");function Va(t){if(typeof t!="string")throw new TypeError(`Expected \`string\`, got \`${typeof t}\``)}i(Va,"assertString");var hN=new globalThis.TextEncoder;function Ck(t){return Va(t),hN.encode(t)}i(Ck,"stringToUint8Array");function dN(t){return t.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}i(dN,"base64ToBase64Url");function mN(t){let e=t.replaceAll("-","+").replaceAll("_","/"),r=(4-e.length%4)%4;return e+"=".repeat(r)}i(mN,"base64UrlToBase64");var Sk=65535;function Mk(t,{urlSafe:e=!1}={}){ti(t);let r="";for(let n=0;n<t.length;n+=Sk){let o=t.subarray(n,n+Sk);r+=globalThis.btoa(String.fromCodePoint.apply(void 0,o))}return e?dN(r):r}i(Mk,"uint8ArrayToBase64");function Ok(t){return Va(t),Uint8Array.from(globalThis.atob(mN(t)),e=>e.codePointAt(0))}i(Ok,"base64ToUint8Array");function gN(t,{urlSafe:e=!1}={}){return Va(t),Mk(Ck(t),{urlSafe:e})}i(gN,"stringToBase64");function xN(t){return Va(t),Dk(Ok(t))}i(xN,"base64ToString");var yN=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function wN(t){ti(t);let e="";for(let r=0;r<t.length;r++)e+=yN[t[r]];return e}i(wN,"uint8ArrayToHex");var Tk={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 bN(t){if(Va(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=Tk[t[n*2]],s=Tk[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(bN,"hexToUint8Array");function vN(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(vN,"getUintBE");function Ik(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(Ik,"indexOf");function kN(t,e){return Ik(t,e)!==-1}i(kN,"includes");var TN=ri;function EN(t){return ri.uint8ArrayToBase64(t)}i(EN,"uInt8ArrayToBase64");function DN(t){return ri.base64ToUint8Array(t)}i(DN,"base64ToUint8Array");var CN=i(t=>ri.isUint8Array(t),"isUint8Array");function MN(t){return t&&typeof t.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(t):!1}i(MN,"isBufferLike");function ON(t){let e=new Uint8Array(t.length);return e.set(t),e}i(ON,"ensurePureUint8Array");var vn={};le(vn,{Guard:()=>Ga,GuardError:()=>Qa,GuardSet:()=>Ja,passGuardsOrReject:()=>IN});var Ga=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 Qa=class extends Error{static{i(this,"GuardError")}constructor(e){super(e),this.name="GuardError"}};var Ja=class extends Ga{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 IN=i(async(t,e)=>{let r=new Ja(e);if(!await r.allGuardsPass(t)){let o=await r.getFailedHint(t);throw new Qa(`Guards failed:
|
|
39
35
|
${o}
|
|
40
|
-
`)}};var
|
|
41
|
-
`);return
|
|
42
|
-
`;return
|
|
43
|
-
`)
|
|
44
|
-
`)
|
|
45
|
-
`).
|
|
46
|
-
`).forEach(o=>{o&&n.push(Qs(o))}),xD(r,n)};var jt={};te(jt,{TypedrequestCache:()=>gx,WebStore:()=>Bl});var Rl={};te(Rl,{deleteDB:()=>AD,openDB:()=>ED,unwrap:()=>Ll,wrap:()=>en});var cx=(e,t)=>t.some(r=>e instanceof r),yD,bD;function Pj(){return yD||(yD=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Fj(){return bD||(bD=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var fx=new WeakMap,px=new WeakMap,Hp=new WeakMap;function Nj(e){let t=new Promise((r,n)=>{let o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{r(en(e.result)),o()},s=()=>{n(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return Hp.set(t,e),t}function Lj(e){if(fx.has(e))return;let t=new Promise((r,n)=>{let o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});fx.set(e,t)}var hx={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return fx.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return en(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function wD(e){hx=e(hx)}function Rj(e){return Fj().includes(e)?function(...t){return e.apply(Ll(this),t),en(this.request)}:function(...t){return en(e.apply(Ll(this),t))}}function Bj(e){return typeof e=="function"?Rj(e):(e instanceof IDBTransaction&&Lj(e),cx(e,Pj())?new Proxy(e,hx):e)}function en(e){if(e instanceof IDBRequest)return Nj(e);if(px.has(e))return px.get(e);let t=Bj(e);return t!==e&&(px.set(e,t),Hp.set(t,e)),t}var Ll=e=>Hp.get(e);function ED(e,t,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){let s=indexedDB.open(e,t),a=en(s);return n&&s.addEventListener("upgradeneeded",l=>{n(en(s.result),l.oldVersion,l.newVersion,en(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",u=>o(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}function AD(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",n=>t(n.oldVersion,n)),en(r).then(()=>{})}var $j=["get","getKey","getAll","getAllKeys","count"],Uj=["put","add","delete","clear"],mx=new Map;function vD(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(mx.get(t))return mx.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,o=Uj.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||$j.includes(r)))return;let i=async function(s,...a){let l=this.transaction(s,o?"readwrite":"readonly"),u=l.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),o&&l.done]))[0]};return mx.set(t,i),i}wD(e=>({...e,get:(t,r,n)=>vD(t,r)||e.get(t,r,n),has:(t,r)=>!!vD(t,r)||e.has(t,r)}));var zj=["continue","continuePrimaryKey","advance"],SD={},dx=new WeakMap,kD=new WeakMap,jj={get(e,t){if(!zj.includes(t))return e[t];let r=SD[t];return r||(r=SD[t]=function(...n){dx.set(this,kD.get(this)[t](...n))}),r}};async function*qj(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let r=new Proxy(t,jj);for(kD.set(r,t),Hp.set(r,Ll(t));t;)yield r,t=await(dx.get(r)||t.continue()),dx.delete(r)}function TD(e,t){return t===Symbol.asyncIterator&&cx(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&cx(e,[IDBIndex,IDBObjectStore])}wD(e=>({...e,get(t,r,n){return TD(t,r)?qj:e.get(t,r,n)},has(t,r){return TD(t,r)||e.has(t,r)}}));var Bl=class{constructor(t){this.initCalled=!1,this.readyDeferred=ue.defer(),this.options=t}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let t=new Qr.Smartenv;if(!t.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await t.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await t.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await Rl.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(t){return await this.init(),this.db.get(this.options.storeName,t)}async check(t){return await this.init(),!!await this.get(t)}async set(t,r){return await this.init(),this.db.put(this.options.storeName,r,t)}async delete(t){return await this.init(),this.db.delete(this.options.storeName,t)}async clear(){return await this.init(),this.db.clear(this.options.storeName)}async keys(){return await this.init(),this.db.getAllKeys(this.options.storeName)}};var gx=class{constructor(t="default"){this.webstore=new Bl({dbName:"trStore",storeName:`trStore-${t}`})}buildKey(t){return Jt.stringify({method:t.method,request:t.request})}async setByRequest(t){if(!t.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(t),t)}async getByRequest(t){return await this.webstore.get(this.buildKey(t))}};var xx=class{constructor(t={}){this.optionsArg=t,this.cacheStore=new jt.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...t}}async getJson(t,r=!1){let o=await(await this.request(t,{method:"GET",useCache:r})).text();return Jt.parse(o)}async postJson(t,r,n=!1){let i=await(await this.request(t,{method:"POST",headers:{"Content-Type":"application/json"},body:Jt.stringify(r),useCache:n})).text();return Jt.parse(i)}async putJson(t,r,n=!1){let i=await(await this.request(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:Jt.stringify(r)})).text();return Jt.parse(i)}async deleteJson(t,r=!1){let o=await(await this.request(t,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return Jt.parse(o)}async request(t,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;ce.delayFor(r.timeoutMs).then(()=>{n.abort()});let o=ue.defer(),i=!1;if(r.useCache&&await this.cacheStore.check(t)){let a=await this.cacheStore.get(t);o.resolve(new Response(a,{}))}else o.resolve(null);let s=await fetch(t,{signal:n.signal,method:r.method,headers:{...r.headers||{}},body:r.body}).catch(async a=>r.useCache&&await o.promise?(i=!0,o.promise):a);if(r.useCache&&await o.promise&&s.status===500&&(i=!0,s=await o.promise),!i&&r.useCache&&s.status<300){let a=await s.clone().arrayBuffer();await this.cacheStore.set(t,a)}return this.log(`${t} answers with status: ${s.status}`),s}async requestMultiEndpoint(t,r){let n,o=0;Array.isArray(t)?n=t:n=[t];let i=[],s=async u=>{i.push(u),u==="429"&&(console.log("got 429, so waiting a little bit."),await ce.delayFor(Math.floor(Math.random()*1001)+1e3));let c=0;for(let f of i)f===u&&c++;c>2*n.length*o&&o++},a=async u=>{if(!u)throw new Error("request failed permanently");this.log(`Getting ${u} with method ${r.method}`);let c=await fetch(u,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${u} answers with status: ${c.status}`),c.status>=200&&c.status<300?c:(await s(c.status.toString()),await a(n[o]))};return await a(n[o])}log(t){this.options.logging&&console.log(t)}};var uo=je($a(),1);var En=class{constructor(t,r){this.errorText=t,this.errorData=r}};var Yp=class{async passGuards(t,r){let n=new gl.GuardSet(t);if(!await n.allGuardsPass(r)){let i=await n.getFailedHint(r);throw new En(`guard failed: ${i}`,{failedHint:i})}}};var yx=class{constructor(t,r){this.method=t,this.handlerFunction=r}async addResponse(t){if(t.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,n=new Yp,o=await this.handlerFunction(t.request,n).catch(i=>{i instanceof En?r=i:console.log(i)});return r&&(t.error={text:r.errorText,data:r.errorData}),o&&(t.response=o),t?.correlation?.phase&&(t.correlation.phase="response"),t}};var $l=class{constructor(){this.routerMap=new bt.ObjectMap,this.handlerMap=new bt.ObjectMap,this.registeredVirtualStreams=new bt.ObjectMap,this.fireEventInterestMap=new bt.InterestMap(t=>t)}addTypedHandler(t){if(this.getTypedHandlerForMethod(t.method))throw new Error(`a TypedHandler for ${t.method} alredy exists! Can't add another one.`);this.handlerMap.add(t)}addTypedRouter(t){this.routerMap.findSync(n=>n===t)||(this.routerMap.add(t),t.addTypedRouter(this))}checkForTypedHandler(t){return!!this.getTypedHandlerForMethod(t)}getTypedHandlerForMethod(t,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(o=>o.method===t),n||this.routerMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(t,r))}),n}async routeAndAddResponse(t,r=!1){if(t=tn.decodePayloadFromNetwork(t,{typedrouter:this}),t.localData=t.localData||{},t.localData.firstTypedrouter=this,t.method==="##VirtualStream##"){let n=await this.handleStreamTypedRequest(t);return n.localData=null,n}if(t?.correlation?.phase==="request"||r){let n=this.getTypedHandlerForMethod(t.method);return n?(t=await n.addResponse(t),t.localData=null,t=tn.encodePayloadForNetwork(t,{typedrouter:this}),t):(console.log(`Cannot find handler for methodname ${t.method}`),t.error={text:"There is no available method for this call on the server side",data:{}},t.correlation.phase="response",t.localData=null,t=tn.encodePayloadForNetwork(t,{typedrouter:this}),t)}else return t?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(t.correlation.id)?.fullfillInterest(t),null):(console.log("received weirdly shaped request"),console.log(t),null)}async handleStreamTypedRequest(t){let r=await this.registeredVirtualStreams.find(async o=>o.streamId===t.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${t.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${t.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),t;return await r.handleStreamTr(t)}};var CD="#############CLOSING BIT#############",tn=class e{static encodePayloadForNetwork(t,r,n,o=[]){return!t||Ms.isBufferLike(t)?t:t instanceof e?(!t.side&&r.sendMethod&&(t.side="requesting",t.sendMethod=r.sendMethod),!t.side&&r.typedrouter&&(t.side="responding",t.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(t)),!n.response||o.includes("response")?(t.startKeepAliveLoop(),{_isVirtualStream:!0,streamId:t.streamId}):{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: obmitted for deduplication reasons in response cycle."}):Array.isArray(t)?t.map((i,s)=>e.encodePayloadForNetwork(i,r,n||t,o.concat(String(s)))):t!==null&&typeof t=="object"?Object.entries(t).reduce((i,[s,a])=>{let l=o.concat(s);return i[s]=e.encodePayloadForNetwork(a,r,n||t,l),i},{}):t}static decodePayloadFromNetwork(t,r){if(Ms.isBufferLike(t)||t instanceof $l)return t;if(t!==null&&typeof t=="object")if(t._isVirtualStream){let n=new e;return n.streamId=t.streamId,!n.side&&r.sendMethod&&(n.side="requesting",n.sendMethod=r.sendMethod),!n.side&&r.typedrouter&&(n.side="responding",n.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(n)),n.startKeepAliveLoop(),n}else if(Array.isArray(t)){let n=[];for(let o of t)n.push(e.decodePayloadFromNetwork(o,r));return n}else return Object.keys(t).reduce((n,o)=>(n[o]=e.decodePayloadFromNetwork(t[o],r),n),{});else return t}constructor(){this.streamId=uo.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new bt.BackpressuredArray(16),this.receiveBackpressuredArray=new bt.BackpressuredArray(16)}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=ue.defer(),this.side==="requesting"){let t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,n=!1,o=async()=>{let i=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:uo.uni(),cycle:"request",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()},response:null}).catch(()=>{console.log("stream ended immaturely"),this.keepAlive=!1});i&&i.response&&(n=i.response.backpressure,r=i.response.next)};for(await o();this.sendBackpressuredArray.data.length>0||r;){if(n)for(;n;)console.log("waiting for feedback because of backpressure..."),await ce.delayFor(50),await o();let i;this.sendBackpressuredArray.data.length>0&&(i=this.sendBackpressuredArray.shift());let s;s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:uo.uni(),cycle:"request",mainPurpose:i?"chunk":"read",backpressure:t,next:this.sendBackpressuredArray.data.length>0,...i?{chunkData:i}:{}},response:null}).catch(()=>(console.log("stream ended immaturely"),this.keepAlive=!1,null)),s&&s.response&&s.response.chunkData&&this.receiveBackpressuredArray.push(s.response.chunkData),n=s&&s.response&&s.response.backpressure,t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=s&&s.response&&s.response.next}}this.workingDeferred.resolve(),this.workingDeferred=null}async handleStreamTr(t){if(t.request.keepAlive===!0&&this.keepAlive===!0?this.lastKeepAliveEvent=Date.now():t.request.keepAlive===!1&&(this.keepAlive=!1),t.request.mainPurpose==="keepAlive"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"keepAlive",keepAlive:this.keepAlive,next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="feedback"&&(t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()}),t.request.mainPurpose==="chunk"){if(this.receiveBackpressuredArray.push(t.request.chunkData),this.sendBackpressuredArray.data.length>0&&t.response.backpressure===!1){let r=this.sendBackpressuredArray.shift();t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"chunk",next:this.sendBackpressuredArray.data.length>1,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable(),chunkData:this.sendBackpressuredArray.shift()}}else t.response={streamId:this.streamId,cycleId:t.request.cycleId,cycle:"response",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()};t.request=null}return t}async cleanup(){this.typedrouter&&this.typedrouter.registeredVirtualStreams.remove(this)}async startKeepAliveLoop(){if(this.side==="responding")return;await ce.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let t=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await ce.delayFor(1e3);await ce.delayFor(1e3),await this.cleanup(),console.log(`cleaned up for stream ${this.streamId}`)}async triggerKeepAlive(){if(this.side==="requesting"){console.log("keepalive sent.");let t=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:uo.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:this.keepAlive},response:null}).catch(()=>{this.keepAlive=!1});t&&t.response&&t.response.keepAlive===!1?this.keepAlive=!1:this.lastKeepAliveEvent=Date.now(),t&&t.response&&t.response.next&&this.workOnQueue()}Date.now()-this.lastKeepAliveEvent>1e4&&(console.log(`closing stream for ${this.streamId}`),this.keepAlive=!1)}async sendData(t){this.sendBackpressuredArray.push(t),this.workOnQueue(),await this.sendBackpressuredArray.waitForSpace()}async fetchData(){return this.receiveBackpressuredArray.hasSpace,await this.receiveBackpressuredArray.waitForItems(),this.receiveBackpressuredArray.shift()}async readFromWebstream(t,r=!0){let n=t.getReader(),o=!1;for(;!o;){let{value:i,done:s}=await n.read();i&&await this.sendData(i),o=s}r&&await this.close(!0)}async writeToWebstream(t){let r=t.getWriter();for(;this.keepAlive||this.receiveBackpressuredArray.checkHasItems();){let n=await this.fetchData();if(n===CD){r.releaseLock(),await t.close();break}await r.write(n)}}async close(t=!1){t&&this.sendData(CD),this.keepAlive=!1}};var bx=class{constructor(t){if(t.postMethodWithTypedRouter&&!t.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=t}async post(t){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(t.correlation.id,t));let o=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(t),i;return r?i=await r.interestFullfilled:o?i=o:i=t,i}};var Wj=new si.WebRequest,Ul=class{constructor(t,r){typeof t=="string"?this.urlEndPoint=t:this.typedTarget=t,this.method=r}async fire(t,r=!1){let n={method:this.method,request:t,response:null,correlation:{id:uo.uni(),phase:"request"}};n=tn.encodePayloadForNetwork(n,{sendMethod:i=>this.postTrObject(i)});let o;return o=await this.postTrObject(n,r),o=tn.decodePayloadFromNetwork(o,{sendMethod:i=>this.postTrObject(i)}),o.response}async postTrObject(t,r=!1){let n;if(this.urlEndPoint?n=await Wj.postJson(this.urlEndPoint,t,r):n=await this.typedTarget.post(t),n.error){if(console.error(`method: >>${this.method}<< got an ERROR: "${n.error.text}" with data ${JSON.stringify(n.error.data,null,2)}`),!n.retry)throw new En(n.error.text,n.error.data);return null}return n.retry&&(console.log(`server requested retry for the following reason: ${n.retry.reason}`),await ce.delayFor(n.retry.waitForMs),n=await this.postTrObject(t,r)),n}};function OD(e){return e&&typeof e.then=="function"}var MD=Promise.resolve(!1),LPe=Promise.resolve(!0),rn=Promise.resolve();function Vp(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}function _D(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function zl(){return Math.random().toString(36).substring(2)}var wx=0;function An(){var e=Date.now()*1e3;return e<=wx&&(e=wx+1),wx=e,e}function RPe(){return typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function"}var Yj=An,Vj="native";function Gj(e){var t={time:An(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(r){t.messagesCallback&&t.messagesCallback(r.data)},t}function Qj(e){e.bc.close(),e.subFns=[]}function Jj(e,t){try{return e.bc.postMessage(t,!1),rn}catch(r){return Promise.reject(r)}}function Xj(e,t){e.messagesCallback=t}function Zj(){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}function Kj(){return 150}var ID={create:Gj,close:Qj,onMessage:Xj,postMessage:Jj,canBeUsed:Zj,type:Vj,averageResponseTime:Kj,microSeconds:Yj};var Xs=class{ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){return this.map.has(t)}add(t){this.map.set(t,PD()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,e6(this)},0))}clear(){this.map.clear()}};function e6(e){let t=PD()-e.ttl,r=e.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)return;let o=n[0];if(n[1]<t)e.map.delete(o);else return}}function PD(){return Date.now()}function ai(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var t6=An,r6="pubkey.broadcast-channel-0-",Mr="messages",jl={durability:"relaxed"},n6="idb";function FD(){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}function Gp(e){e.commit&&e.commit()}function o6(e){var t=FD(),r=r6+e,n=t.open(r);return n.onupgradeneeded=function(o){var i=o.target.result;i.createObjectStore(Mr,{keyPath:"id",autoIncrement:!0})},new Promise(function(o,i){n.onerror=function(s){return i(s)},n.onsuccess=function(){o(n.result)}})}function i6(e,t,r){var n=Date.now(),o={uuid:t,time:n,data:r},i=e.transaction([Mr],"readwrite",jl);return new Promise(function(s,a){i.oncomplete=function(){return s()},i.onerror=function(u){return a(u)};var l=i.objectStore(Mr);l.add(o),Gp(i)})}function YPe(e){var t=e.transaction(Mr,"readonly",jl),r=t.objectStore(Mr),n=[];return new Promise(function(o){r.openCursor().onsuccess=function(i){var s=i.target.result;s?(n.push(s.value),s.continue()):(Gp(t),o(n))}})}function s6(e,t){var r=e.transaction(Mr,"readonly",jl),n=r.objectStore(Mr),o=[],i=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var s=n.getAll(i);return new Promise(function(l,u){s.onerror=function(c){return u(c)},s.onsuccess=function(c){l(c.target.result)}})}function a(){try{return i=IDBKeyRange.bound(t+1,1/0),n.openCursor(i)}catch{return n.openCursor()}}return new Promise(function(l,u){var c=a();c.onerror=function(f){return u(f)},c.onsuccess=function(f){var p=f.target.result;p?p.value.id<t+1?p.continue(t+1):(o.push(p.value),p.continue()):(Gp(r),l(o))}})}function a6(e,t){if(e.closed)return Promise.resolve([]);var r=e.db.transaction(Mr,"readwrite",jl),n=r.objectStore(Mr);return Promise.all(t.map(function(o){var i=n.delete(o);return new Promise(function(s){i.onsuccess=function(){return s()}})}))}function l6(e,t){var r=Date.now()-t,n=e.transaction(Mr,"readonly",jl),o=n.objectStore(Mr),i=[];return new Promise(function(s){o.openCursor().onsuccess=function(a){var l=a.target.result;if(l){var u=l.value;u.time<r?(i.push(u),l.continue()):(Gp(n),s(i))}else s(i)}})}function u6(e){return l6(e.db,e.options.idb.ttl).then(function(t){return a6(e,t.map(function(r){return r.id}))})}function c6(e,t){return t=ai(t),o6(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:zl(),eMIs:new Xs(t.idb.ttl*2),writeBlockPromise:rn,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},ND(n),n})}function ND(e){e.closed||LD(e).then(function(){return Vp(e.options.idb.fallbackInterval)}).then(function(){return ND(e)})}function f6(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function LD(e){return e.closed?rn:e.messagesCallback?s6(e.db,e.lastCursorId).then(function(t){var r=t.filter(function(n){return!!n}).map(function(n){return n.id>e.lastCursorId&&(e.lastCursorId=n.id),n}).filter(function(n){return f6(n,e)}).sort(function(n,o){return n.time-o.time});return r.forEach(function(n){e.messagesCallback&&(e.eMIs.add(n.id),e.messagesCallback(n.data))}),rn}):rn}function p6(e){e.closed=!0,e.db.close()}function h6(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return i6(e.db,e.uuid,t)}).then(function(){_D(0,10)===0&&u6(e)}),e.writeBlockPromise}function m6(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,LD(e)}function d6(){return!!FD()}function g6(e){return e.idb.fallbackInterval*2}var RD={create:c6,close:p6,onMessage:m6,postMessage:h6,canBeUsed:d6,type:n6,averageResponseTime:g6,microSeconds:t6};var x6=An,y6="pubkey.broadcastChannel-",b6="localstorage";function BD(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function $D(e){return y6+e}function w6(e,t){return new Promise(function(r){Vp().then(function(){var n=$D(e.channelName),o={token:zl(),time:Date.now(),data:t,uuid:e.uuid},i=JSON.stringify(o);BD().setItem(n,i);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=i,window.dispatchEvent(s),r()})})}function v6(e,t){var r=$D(e),n=function(i){i.key===r&&t(JSON.parse(i.newValue))};return window.addEventListener("storage",n),n}function S6(e){window.removeEventListener("storage",e)}function k6(e,t){if(t=ai(t),!UD())throw new Error("BroadcastChannel: localstorage cannot be used");var r=zl(),n=new Xs(t.localstorage.removeTimeout),o={channelName:e,uuid:r,eMIs:n};return o.listener=v6(e,function(i){o.messagesCallback&&i.uuid!==r&&(!i.token||n.has(i.token)||i.data.time&&i.data.time<o.messagesCallbackTime||(n.add(i.token),o.messagesCallback(i.data)))}),o}function T6(e){S6(e.listener)}function E6(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function UD(){var e=BD();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function A6(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var zD={create:k6,close:T6,onMessage:E6,postMessage:w6,canBeUsed:UD,type:b6,averageResponseTime:A6,microSeconds:x6};var jD=An,D6="simulate",vx=new Set;function C6(e){var t={time:jD(),name:e,messagesCallback:null};return vx.add(t),t}function O6(e){vx.delete(e)}var qD=5;function M6(e,t){return new Promise(function(r){return setTimeout(function(){var n=Array.from(vx);n.forEach(function(o){o.name===e.name&&o!==e&&o.messagesCallback&&o.time<t.time&&o.messagesCallback(t)}),r()},qD)})}function _6(e,t){e.messagesCallback=t}function I6(){return!0}function P6(){return qD}var HD={create:C6,close:O6,onMessage:_6,postMessage:M6,canBeUsed:I6,type:D6,averageResponseTime:P6,microSeconds:jD};var WD=[ID,RD,zD];function Sx(e){var t=[].concat(e.methods,WD).filter(Boolean);if(e.type){if(e.type==="simulate")return HD;var r=t.find(function(o){return o.type===e.type});if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(o){return o.type!=="idb"}));var n=t.find(function(o){return o.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(WD.map(function(o){return o.type})))}var Tx=new Set,F6=0,li=function(t,r){this.id=F6++,Tx.add(this),this.name=t,kx&&(r=kx),this.options=ai(r),this.method=Sx(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,R6(this)};li._pubkey=!0;function N6(e){e=ai(e);var t=Sx(e);return t.type==="node"?t.clearNodeFolder().then(function(){return!0}):MD}var kx;function L6(e){kx=e}li.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return YD(this,"message",t)},postInternal:function(t){return YD(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),r={time:t,fn:e};QD(this,"message",this._onML),e&&typeof e=="function"?(this._onML=r,GD(this,"message",r)):this._onML=null},addEventListener:function(t,r){var n=this.method.microSeconds(),o={time:n,fn:r};GD(this,t,o)},removeEventListener:function(t,r){var n=this._addEL[t].find(function(o){return o.fn===r});QD(this,t,n)},close:function(){var t=this;if(!this.closed){Tx.delete(this),this.closed=!0;var r=this._prepP?this._prepP:rn;return this._onML=null,this._addEL.message=[],r.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(n){return n()}))}).then(function(){return t.method.close(t._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function YD(e,t,r){var n=e.method.microSeconds(),o={time:n,type:t,data:r},i=e._prepP?e._prepP:rn;return i.then(function(){var s=e.method.postMessage(e._state,o);return e._uMP.add(s),s.catch().then(function(){return e._uMP.delete(s)}),s})}function R6(e){var t=e.method.create(e.name,e.options);OD(t)?(e._prepP=t,t.then(function(r){e._state=r})):e._state=t}function VD(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function GD(e,t,r){e._addEL[t].push(r),B6(e)}function QD(e,t,r){e._addEL[t]=e._addEL[t].filter(function(n){return n!==r}),$6(e)}function B6(e){if(!e._iL&&VD(e)){var t=function(o){e._addEL[o.type].forEach(function(i){o.time>=i.time&&i.fn(o.data)})},r=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,r)}):(e._iL=!0,e.method.onMessage(e._state,t,r))}}function $6(e){if(e._iL&&!VD(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}var Ex=globalThis.BroadcastChannel;Ex||(Ex=li);var Ax=class{constructor(){this.broadcastChannel=new Ex("dees-comms"),this.typedrouter=new lt.TypedRouter,this.typedtarget=new lt.TypedTarget({postMethodWithTypedRouter:async t=>{this.postMessage(t)},typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async t=>{let r=t.method?t:t.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r);n&&!n.error&&this.postMessage(n)}}createTypedRequest(t){return new lt.TypedRequest(this.typedtarget,t)}async postMessage(t){this.broadcastChannel.postMessage(t)}async createTypedHandler(t,r){this.typedrouter.addTypedHandler(new lt.TypedHandler(t,r))}};var sr={};te(sr,{Smartjson:()=>Lx,deepEqualJsonLStrings:()=>dq,deepEqualObjects:()=>rC,foldDec:()=>mq,parse:()=>sh,parseBase64:()=>hq,parseJsonL:()=>Nx,stableOneWayStringify:()=>cq,stringify:()=>ui,stringifyBase64:()=>pq,stringifyJsonL:()=>uq,stringifyPretty:()=>fq});var Hl={};te(Hl,{Smartenv:()=>Dx});var Dx=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(t){if(this.isNode)return await this.getSafeNodeModule(t.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(t.webUrlArg,t.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(t,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}. This does not throw.`);return}let n=await new Function(`return import('${t}')`)();return r&&await r(n),n}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=Pe.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=t,document.head.appendChild(o)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var _r={};te(_r,{Base64:()=>Kp,Domain:()=>th,GitRepo:()=>rh,base64:()=>Zs,create:()=>Qp,docker:()=>Jp,indent:()=>Xp,normalize:()=>Zp,type:()=>eh});var Qp={};te(Qp,{createCryptoRandomString:()=>Y6,createRandomString:()=>W6});var Cx=je($a(),1);var q6=(e,t)=>{if(typeof globalThis<"u"&&globalThis.crypto&&globalThis.crypto.getRandomValues){let r=t-e,n=new Uint32Array(1);return globalThis.crypto.getRandomValues(n),e+n[0]%r}else return Math.floor(Math.random()*(t-e))+e},H6=(e,t,r)=>{let n={A:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",a:"abcdefghijklmnopqrstuvwxyz",0:"0123456789","!":"!@#$%^&*()_+-=[]{}|;:,.<>?","*":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+-=[]{}|;:,.<>?"},o=e;t&&t>e.length?o=e.repeat(Math.ceil(t/e.length)).slice(0,t):t&&(o=e.slice(0,t));let i="";for(let s of o)if(n[s]){let a=n[s],l=q6(0,a.length);i+=a[l]}else i+=s;return i},W6=(e,t,r)=>H6(e,t,r),Y6=()=>Cx.uni();var Jp={};te(Jp,{makeEnvObject:()=>V6});var V6=function(e){let t={},r=/(.*)=(.*)/;if(typeof e<"u")for(let n in e){let o=r.exec(e[n]);t[o[1]]=o[2]}return t};var Xp={};te(Xp,{indent:()=>Q6,indentWithPrefix:()=>J6,normalize:()=>X6});var Ox=e=>{let t=e.split(`
|
|
47
|
-
`);return G6(t)},Mx=e=>{let t="";for(let r of e)t=t+r+`
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
`
|
|
51
|
-
|
|
52
|
-
`)
|
|
53
|
-
`),cq=(e,t,r={})=>{let n=new WeakSet,o=a=>{if(a===null||typeof a!="object")return a;let l=ih("",a);if(l&&l.type==="EncodedBuffer"&&typeof l.data=="string")return l;if(n.has(a))return"__cycle__";if(n.add(a),Array.isArray(a))return a.map(c=>o(c));let u={};for(let c of Object.keys(a))try{u[c]=o(a[c])}catch{u[c]="__unserializable__"}return u},i=o(e),s={...r,cycles:!0};if(t&&!s.cmp){let a=new Map;t.forEach((l,u)=>a.set(l,u)),s.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 oh(i,s)},ui=(e,t,r={})=>{let n=Px(e);e=JSON.parse(n);let o={...r};if(t&&!o.cmp){let s=new Map;t.forEach((a,l)=>s.set(a,l)),o.cmp=(a,l)=>{let u=s.has(a.key)?s.get(a.key):Number.POSITIVE_INFINITY,c=s.has(l.key)?s.get(l.key):Number.POSITIVE_INFINITY;return u!==c?u-c:a.key<l.key?-1:a.key>l.key?1:0}}return oh(e,o)},fq=e=>{let t=ui(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},pq=(...e)=>{let t=ui(...e);return _r.base64.encodeUri(t)},hq=e=>{let t=_r.base64,n=(t.decodeUri||t.decode)(e);return sh(n)},Lx=class e{static enfoldFromObject(t){let r=new this,n=r.saveableProperties||[];for(let o in t)n.indexOf(o)!==-1&&(r[o]=t[o]);return r}static enfoldFromJson(t){let r=sh(t);return this.enfoldFromObject(r)}foldToObject(){let t=new Set;return t.add(this),this.foldToObjectInternal(t)}foldToObjectInternal(t){let r={},n=i=>{if(i instanceof e){if(t.has(i))throw new Error("cycle detected");return t.add(i),i.foldToObjectInternal(t)}return Array.isArray(i)?i.map(s=>n(s)):nh.default(i)},o=this.saveableProperties||[];for(let i of o){let s=this[i];r[i]=n(s)}return r}foldToJson(){let t=this.foldToObject();return ui(t)}},mq=()=>(e,t)=>{e.saveableProperties||(e.saveableProperties=[]),e.saveableProperties.push(t)},rC=(e,t)=>{let r=ui(e),n=ui(t);return r===n},dq=(e,t)=>{let r=Nx(e),n=Nx(t);return rC(r,n)};var ka={};te(ka,{SmartMarkdown:()=>Jb});function Qx(e){if(e)throw e}function Xl(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Jx(){let e=[],t={run:r,use:n};return t;function r(...o){let i=-1,s=o.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...o);function a(l,...u){let c=e[++i],f=-1;if(l){s(l);return}for(;++f<o.length;)(u[f]===null||u[f]===void 0)&&(u[f]=o[f]);o=u,c?iM(c,a)(...u):s(null,...u)}}function n(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function iM(e,t){let r;return n;function n(...s){let a=e.length>s.length,l;a&&s.push(o);try{l=e.apply(this,s)}catch(u){let c=u;if(a&&r)throw c;return o(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(i,o):l instanceof Error?o(l):i(l))}function o(s,...a){r||(r=!0,t(s,...a))}function i(s){o(null,s)}}function po(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?sM(e.position):"start"in e||"end"in e?sM(e):"line"in e||"column"in e?Xx(e):""}function Xx(e){return aM(e&&e.line)+":"+aM(e&&e.column)}function sM(e){return Xx(e&&e.start)+"-"+Xx(e&&e.end)}function aM(e){return e&&typeof e=="number"?e:1}var gt=class extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let o="",i={},s=!1;if(r&&("line"in r&&"column"in r?i={place:r}:"start"in r&&"end"in r?i={place:r}:"type"in r?i={ancestors:[r],place:r.position}:i={...r}),typeof t=="string"?o=t:!i.cause&&t&&(s=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof n=="string"){let l=n.indexOf(":");l===-1?i.ruleId=n:(i.source=n.slice(0,l),i.ruleId=n.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){let l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}let a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=a?a.line:void 0,this.name=po(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}};gt.prototype.file="",gt.prototype.name="",gt.prototype.reason="",gt.prototype.message="",gt.prototype.stack="",gt.prototype.column=void 0,gt.prototype.line=void 0,gt.prototype.ancestors=void 0,gt.prototype.cause=void 0,gt.prototype.fatal=void 0,gt.prototype.place=void 0,gt.prototype.ruleId=void 0,gt.prototype.source=void 0;var Ir={basename:K4,dirname:eW,extname:tW,join:rW,sep:"/"};function K4(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Zl(e);let r=0,n=-1,o=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(i){r=o+1;break}}else n<0&&(i=!0,n=o+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(i){r=o+1;break}}else s<0&&(i=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(n=o):(a=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function eW(e){if(Zl(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function tW(e){Zl(e);let t=e.length,r=-1,n=0,o=-1,i=0,s;for(;t--;){let a=e.codePointAt(t);if(a===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),a===46?o<0?o=t:i!==1&&(i=1):o>-1&&(i=-1)}return o<0||r<0||i===0||i===1&&o===r-1&&o===n+1?"":e.slice(o,r)}function rW(...e){let t=-1,r;for(;++t<e.length;)Zl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":nW(r)}function nW(e){Zl(e);let t=e.codePointAt(0)===47,r=oW(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function oW(e,t){let r="",n=0,o=-1,i=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(o===s-1||i===1))if(o!==s-1&&i===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),o=s,i=0;continue}}else if(r.length>0){r="",n=0,o=s,i=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(o+1,s):r=e.slice(o+1,s),n=s-o-1;o=s,i=0}else a===46&&i>-1?i++:i=-1}return r}function Zl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var lM={cwd:iW};function iW(){return"/"}function sa(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function uM(e){if(typeof e=="string")e=new URL(e);else if(!sa(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return sW(e)}function sW(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){let n=t.codePointAt(r+2);if(n===70||n===102){let o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}var Zx=["history","path","basename","stem","extname","dirname"],Kl=class{constructor(t){let r;t?sa(t)?r={path:t}:typeof t=="string"||aW(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":lM.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Zx.length;){let i=Zx[n];i in r&&r[i]!==void 0&&r[i]!==null&&(this[i]=i==="history"?[...r[i]]:r[i])}let o;for(o in r)Zx.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Ir.basename(this.path):void 0}set basename(t){ey(t,"basename"),Kx(t,"basename"),this.path=Ir.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ir.dirname(this.path):void 0}set dirname(t){cM(this.basename,"dirname"),this.path=Ir.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ir.extname(this.path):void 0}set extname(t){if(Kx(t,"extname"),cM(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ir.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){sa(t)&&(t=uM(t)),ey(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ir.basename(this.path,this.extname):void 0}set stem(t){ey(t,"stem"),Kx(t,"stem"),this.path=Ir.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){let o=this.message(t,r,n);throw o.fatal=!0,o}info(t,r,n){let o=this.message(t,r,n);return o.fatal=void 0,o}message(t,r,n){let o=new gt(t,r,n);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Kx(e,t){if(e&&e.includes(Ir.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ir.sep+"`")}function ey(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function cM(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function aW(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var fM=(function(e){let n=this.constructor.prototype,o=n[e],i=function(){return o.apply(i,arguments)};return Object.setPrototypeOf(i,n),i});var bh=je(oM(),1),lW={}.hasOwnProperty,ty=class e extends fM{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=Jx()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];t.use(...n)}return t.data((0,bh.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(oy("data",this.frozen),this.namespace[t]=r,this):lW.call(this.namespace,t)&&this.namespace[t]||void 0:t?(oy("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let o=r.call(t,...n);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=yh(t),n=this.parser||this.Parser;return ry("parse",n),n(String(r),r)}process(t,r){let n=this;return this.freeze(),ry("process",this.parser||this.Parser),ny("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(i,s){let a=yh(t),l=n.parse(a);n.run(l,a,function(c,f,p){if(c||!f||!p)return u(c);let h=f,m=n.stringify(h,p);cW(m)?p.value=m:p.result=m,u(c,p)});function u(c,f){c||!f?s(c):i?i(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),ry("processSync",this.parser||this.Parser),ny("processSync",this.compiler||this.Compiler),this.process(t,o),hM("processSync","process",r),n;function o(i,s){r=!0,Qx(i),n=s}}run(t,r,n){pM(t),this.freeze();let o=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?i(void 0,n):new Promise(i);function i(s,a){let l=yh(r);o.run(t,l,u);function u(c,f,p){let h=f||t;c?a(c):s?s(h):n(void 0,h,p)}}}runSync(t,r){let n=!1,o;return this.run(t,r,i),hM("runSync","run",n),o;function i(s,a){Qx(s),o=a,n=!0}}stringify(t,r){this.freeze();let n=yh(r),o=this.compiler||this.Compiler;return ny("stringify",o),pM(t),o(t,n)}use(t,...r){let n=this.attachers,o=this.namespace;if(oy("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))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");a(u.plugins),u.settings&&(o.settings=(0,bh.default)(!0,o.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let f=u[c];i(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,p=-1;for(;++f<n.length;)if(n[f][0]===u){p=f;break}if(p===-1)n.push([u,...c]);else if(c.length>0){let[h,...m]=c,d=n[p][1];Xl(d)&&Xl(h)&&(h=(0,bh.default)(!0,d,h)),n[p]=[u,h,...m]}}}},eu=new ty().freeze();function ry(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ny(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function oy(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function pM(e){if(!Xl(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hM(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function yh(e){return uW(e)?e:new Kl(e)}function uW(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function cW(e){return typeof e=="string"||fW(e)}function fW(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function la(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,o=r.indexOf(t);for(;o!==-1;)n++,o=r.indexOf(t,o+t.length);return n}var ct=ho(/[A-Za-z]/),Ve=ho(/[\dA-Za-z]/),mM=ho(/[#-'*+\--9=?A-Z^-~]/);function xi(e){return e!==null&&(e<32||e===127)}var tu=ho(/\d/),dM=ho(/[\dA-Fa-f]/),gM=ho(/[!-/:-@[-`{-~]/);function G(e){return e!==null&&e<-2}function be(e){return e!==null&&(e<0||e===32)}function re(e){return e===-2||e===-1||e===32}var yi=ho(/\p{P}|\p{S}/u),sn=ho(/\s/);function ho(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}var yM=(function(e,t,r,n,o){let i=Cn(t);if(r!=null&&(typeof r!="number"||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(n!=null&&(!yM(n)||!n.children))throw new Error("Expected parent node");if(n==null!=(r==null))throw new Error("Expected both parent and index");return xM(e)?i.call(o,e,r,n):!1}),Cn=(function(e){if(e==null)return dW;if(typeof e=="function")return wh(e);if(typeof e=="object")return Array.isArray(e)?pW(e):hW(e);if(typeof e=="string")return mW(e);throw new Error("Expected function, string, or object as test")});function pW(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Cn(e[r]);return wh(n);function n(...o){let i=-1;for(;++i<t.length;)if(t[i].apply(this,o))return!0;return!1}}function hW(e){let t=e;return wh(r);function r(n){let o=n,i;for(i in e)if(o[i]!==t[i])return!1;return!0}}function mW(e){return wh(t);function t(r){return r&&r.type===e}}function wh(e){return t;function t(r,n,o){return!!(xM(r)&&e.call(this,r,typeof n=="number"?n:void 0,o||void 0))}}function dW(){return!0}function xM(e){return e!==null&&typeof e=="object"&&"type"in e}var bM=[],vh=!0,bi=!1,Sh="skip";function ru(e,t,r,n){let o;typeof t=="function"&&typeof r!="function"?(n=r,r=t):o=t;let i=Cn(o),s=n?-1:1;a(e,void 0,[])();function a(l,u,c){let f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){let h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=bM,m,d,g;if((!t||i(l,u,c[c.length-1]||void 0))&&(h=gW(r(l,c)),h[0]===bi))return h;if("children"in l&&l.children){let y=l;if(y.children&&h[0]!==Sh)for(d=(n?y.children.length:-1)+s,g=c.concat(y);d>-1&&d<y.children.length;){let S=y.children[d];if(m=a(S,d,g)(),m[0]===bi)return m;d=typeof m[1]=="number"?m[1]:d+s}}return h}}}function gW(e){return Array.isArray(e)?e:typeof e=="number"?[vh,e]:e==null?bM:[e]}function iy(e,t,r){let o=Cn((r||{}).ignore||[]),i=xW(t),s=-1;for(;++s<i.length;)ru(e,"text",a);function a(u,c){let f=-1,p;for(;++f<c.length;){let h=c[f],m=p?p.children:void 0;if(o(h,m?m.indexOf(h):void 0,p))return;p=h}if(p)return l(u,c)}function l(u,c){let f=c[c.length-1],p=i[s][0],h=i[s][1],m=0,g=f.children.indexOf(u),y=!1,S=[];p.lastIndex=0;let k=p.exec(u.value);for(;k;){let N=k.index,R={index:k.index,input:k.input,stack:[...c,u]},T=h(...k,R);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?p.lastIndex=N+1:(m!==N&&S.push({type:"text",value:u.value.slice(m,N)}),Array.isArray(T)?S.push(...T):T&&S.push(T),m=N+k[0].length,y=!0),!p.global)break;k=p.exec(u.value)}return y?(m<u.value.length&&S.push({type:"text",value:u.value.slice(m)}),f.children.splice(g,1,...S)):S=[u],g+S.length}}function xW(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){let o=r[n];t.push([yW(o[0]),bW(o[1])])}return t}function yW(e){return typeof e=="string"?new RegExp(qo(e),"g"):e}function bW(e){return typeof e=="function"?e:function(){return e}}var sy="phrasing",ay=["autolink","link","image","label"];function uy(){return{transforms:[EW],enter:{literalAutolink:wW,literalAutolinkEmail:ly,literalAutolinkHttp:ly,literalAutolinkWww:ly},exit:{literalAutolink:TW,literalAutolinkEmail:kW,literalAutolinkHttp:vW,literalAutolinkWww:SW}}}function cy(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:sy,notInConstruct:ay},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:sy,notInConstruct:ay},{character:":",before:"[ps]",after:"\\/",inConstruct:sy,notInConstruct:ay}]}}function wW(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ly(e){this.config.enter.autolinkProtocol.call(this,e)}function vW(e){this.config.exit.autolinkProtocol.call(this,e)}function SW(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function kW(e){this.config.exit.autolinkEmail.call(this,e)}function TW(e){this.exit(e)}function EW(e){iy(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,AW],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,DW]],{ignore:["link","linkReference"]})}function AW(e,t,r,n,o){let i="";if(!wM(o)||(/^w/i.test(t)&&(r=t+r,t="",i="http://"),!CW(r)))return!1;let s=OW(r+n);if(!s[0])return!1;let a={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function DW(e,t,r,n){return!wM(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function CW(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function OW(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),o=la(e,"("),i=la(e,")");for(;n!==-1&&o>i;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),i++;return[e,r]}function wM(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||sn(r)||yi(r))&&(!t||r!==47)}function Ge(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}vM.peek=BW;function fy(){return{enter:{gfmFootnoteDefinition:MW,gfmFootnoteDefinitionLabelString:_W,gfmFootnoteCall:FW,gfmFootnoteCallString:NW},exit:{gfmFootnoteDefinition:PW,gfmFootnoteDefinitionLabelString:IW,gfmFootnoteCall:RW,gfmFootnoteCallString:LW}}}function py(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:$W,footnoteReference:vM}}}function MW(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function _W(){this.buffer()}function IW(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=Ge(this.sliceSerialize(e)).toLowerCase()}function PW(e){this.exit(e)}function FW(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function NW(){this.buffer()}function LW(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=Ge(this.sliceSerialize(e)).toLowerCase()}function RW(e){this.exit(e)}function vM(e,t,r,n){let o=r.createTracker(n),i=o.move("[^"),s=r.enter("footnoteReference"),a=r.enter("reference");return i+=o.move(r.safe(r.associationId(e),{...o.current(),before:i,after:"]"})),a(),s(),i+=o.move("]"),i}function BW(){return"["}function $W(e,t,r,n){let o=r.createTracker(n),i=o.move("[^"),s=r.enter("footnoteDefinition"),a=r.enter("label");return i+=o.move(r.safe(r.associationId(e),{...o.current(),before:i,after:"]"})),a(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(r.indentLines(r.containerFlow(e,o.current()),UW)),s(),i}function UW(e,t,r){return t===0?e:(r?"":" ")+e}var zW=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];SM.peek=HW;function hy(){return{canContainEols:["delete"],enter:{strikethrough:jW},exit:{strikethrough:qW}}}function my(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:zW}],handlers:{delete:SM}}}function jW(e){this.enter({type:"delete",children:[]},e)}function qW(e){this.exit(e)}function SM(e,t,r,n){let o=r.createTracker(n),i=r.enter("strikethrough"),s=o.move("~~");return s+=r.containerPhrasing(e,{...o.current(),before:s,after:"~"}),s+=o.move("~~"),i(),s}function HW(){return"~"}function WW(e){return e.length}function TM(e,t){let r=t||{},n=(r.align||[]).concat(),o=r.stringLength||WW,i=[],s=[],a=[],l=[],u=0,c=-1;for(;++c<e.length;){let d=[],g=[],y=-1;for(e[c].length>u&&(u=e[c].length);++y<e[c].length;){let S=YW(e[c][y]);if(r.alignDelimiters!==!1){let k=o(S);g[y]=k,(l[y]===void 0||k>l[y])&&(l[y]=k)}d.push(S)}s[c]=d,a[c]=g}let f=-1;if(typeof n=="object"&&"length"in n)for(;++f<u;)i[f]=kM(n[f]);else{let d=kM(n);for(;++f<u;)i[f]=d}f=-1;let p=[],h=[];for(;++f<u;){let d=i[f],g="",y="";d===99?(g=":",y=":"):d===108?g=":":d===114&&(y=":");let S=r.alignDelimiters===!1?1:Math.max(1,l[f]-g.length-y.length),k=g+"-".repeat(S)+y;r.alignDelimiters!==!1&&(S=g.length+S+y.length,S>l[f]&&(l[f]=S),h[f]=S),p[f]=k}s.splice(1,0,p),a.splice(1,0,h),c=-1;let m=[];for(;++c<s.length;){let d=s[c],g=a[c];f=-1;let y=[];for(;++f<u;){let S=d[f]||"",k="",N="";if(r.alignDelimiters!==!1){let R=l[f]-(g[f]||0),T=i[f];T===114?k=" ".repeat(R):T===99?R%2?(k=" ".repeat(R/2+.5),N=" ".repeat(R/2-.5)):(k=" ".repeat(R/2),N=k):N=" ".repeat(R)}r.delimiterStart!==!1&&!f&&y.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&S==="")&&(r.delimiterStart!==!1||f)&&y.push(" "),r.alignDelimiters!==!1&&y.push(k),y.push(S),r.alignDelimiters!==!1&&y.push(N),r.padding!==!1&&y.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&y.push("|")}m.push(r.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return m.join(`
|
|
54
|
-
|
|
55
|
-
`&&Th(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
56
|
-
`}function OM(e,t){let r=String(e),n=r.indexOf(t),o=n,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===o?++i>s&&(s=i):i=1,o=n+t.length,n=r.indexOf(t,o);return s}function nu(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function MM(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function _M(e,t,r,n){let o=MM(r),i=e.value||"",s=o==="`"?"GraveAccent":"Tilde";if(nu(e,r)){let f=r.enter("codeIndented"),p=r.indentLines(i,JW);return f(),p}let a=r.createTracker(n),l=o.repeat(Math.max(OM(i,o)+1,3)),u=r.enter("codeFenced"),c=a.move(l);if(e.lang){let f=r.enter(`codeFencedLang${s}`);c+=a.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){let f=r.enter(`codeFencedMeta${s}`);c+=a.move(" "),c+=a.move(r.safe(e.meta,{before:c,after:`
|
|
57
|
-
`,encode:["`"],...a.current()})),f()}return c+=a.move(`
|
|
58
|
-
`),i&&(c+=a.move(i+`
|
|
59
|
-
`)),c+=a.move(l),u(),c}function JW(e,t,r){return(r?"":" ")+e}function ua(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function IM(e,t,r,n){let o=ua(r),i=o==='"'?"Quote":"Apostrophe",s=r.enter("definition"),a=r.enter("label"),l=r.createTracker(n),u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
|
|
60
|
-
`,...l.current()}))),a(),e.title&&(a=r.enter(`title${i}`),u+=l.move(" "+o),u+=l.move(r.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),a()),s(),u}function PM(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ar(e){return"&#x"+e.toString(16).toUpperCase()+";"}function On(e){if(e===null||be(e)||sn(e))return 1;if(yi(e))return 2}function ca(e,t,r){let n=On(e),o=On(t);return n===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}xy.peek=XW;function xy(e,t,r,n){let o=PM(r),i=r.enter("emphasis"),s=r.createTracker(n),a=s.move(o),l=s.move(r.containerPhrasing(e,{after:o,before:a,...s.current()})),u=l.charCodeAt(0),c=ca(n.before.charCodeAt(n.before.length-1),u,o);c.inside&&(l=ar(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=ca(n.after.charCodeAt(0),f,o);p.inside&&(l=l.slice(0,-1)+ar(f));let h=s.move(o);return i(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+h}function XW(e,t,r){return r.options.emphasis||"*"}function ou(e,t,r,n){let o,i,s;typeof t=="function"&&typeof r!="function"?(i=void 0,s=t,o=r):(i=t,s=r,o=n),ru(e,i,a,o);function a(l,u){let c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}var ZW={};function wi(e,t){let r=t||ZW,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return FM(e,n,o)}function FM(e,t,r){if(KW(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return NM(e.children,t,r)}return Array.isArray(e)?NM(e,t,r):""}function NM(e,t,r){let n=[],o=-1;for(;++o<e.length;)n[o]=FM(e[o],t,r);return n.join("")}function KW(e){return!!(e&&typeof e=="object")}function Eh(e,t){let r=!1;return ou(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,bi}),!!((!e.depth||e.depth<3)&&wi(e)&&(t.options.setext||r))}function LM(e,t,r,n){let o=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(Eh(e,r)){let c=r.enter("headingSetext"),f=r.enter("phrasing"),p=r.containerPhrasing(e,{...i.current(),before:`
|
|
36
|
+
`)}},"passGuardsOrReject");var er={};le(er,{CacheManager:()=>ys,CacheStore:()=>ms,InterceptorManager:()=>ps,RequestDeduplicator:()=>bs,RetryManager:()=>ws,WebrequestClient:()=>Wi,createConditionalHeaders:()=>Yf,defaultCacheMaxEntries:()=>Ka,extractCacheMetadata:()=>rn,headersToObject:()=>Vf,isFresh:()=>Uf,isWebrequestTimeoutError:()=>el,objectToHeaders:()=>Gk,requiresRevalidation:()=>gs,webrequest:()=>dt});var ps=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 Er={};le(Er,{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=ie.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 at={};le(at,{Smartjson:()=>dm,deepEqualJsonLStrings:()=>nF,deepEqualObjects:()=>qk,foldDec:()=>rF,parse:()=>Hf,parseBase64:()=>tF,parseJsonL:()=>hm,stableOneWayStringify:()=>ZN,stringify:()=>zi,stringifyBase64:()=>eF,stringifyJsonL:()=>XN,stringifyPretty:()=>KN});var tn={};le(tn,{Base64:()=>Ff,Domain:()=>Af,GitRepo:()=>Bf,base64:()=>hs,create:()=>Pf,docker:()=>_f,indent:()=>Rf,normalize:()=>Nf,type:()=>Lf});var Pf={};le(Pf,{createCryptoRandomString:()=>LN,createRandomString:()=>FN});var am=Qt(ya(),1);var RN=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"),NN=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=RN(0,l.length);s+=l[u]}else s+=a;return s},"customRandomatic"),FN=i((t,e,r)=>NN(t,e,r),"createRandomString"),LN=i(()=>am.uni(),"createCryptoRandomString");var _f={};le(_f,{makeEnvObject:()=>AN});var AN=i(function(t){let e={},r=/(.*)=(.*)/;if(typeof t<"u")for(let n of t){let o=r.exec(n);o&&(e[o[1]]=o[2])}return e},"makeEnvObject");var Rf={};le(Rf,{indent:()=>$N,indentWithPrefix:()=>HN,normalize:()=>zN});var lm=i(t=>{let e=t.split(`
|
|
37
|
+
`);return BN(e)},"splitStringAtLineBreak"),um=i(t=>{let e="";for(let r of t)e=e+r+`
|
|
38
|
+
`;return e},"joinStringWithLineBreaks"),BN=i(t=>{let e=/^[\s]*$/;return e.test(t[0])&&t.shift(),e.test(t[t.length-1])&&t.pop(),t},"cleanStringArray"),$N=i((t,e)=>{let r=lm(t);for(let o of r)o=" ".repeat(e)+o;return um(r)},"indent"),HN=i((t,e)=>{let r,n=lm(t),o=[];for(let s of n)o.push(e+s);return r=um(o),r},"indentWithPrefix"),zN=i(t=>{let e,r=lm(t),n,o=/^(\s*)/,s=/^(\s*)$/;for(let u of r){let c=o.exec(u),f=c?c[1]:"";(typeof n>"u"||f.length<n)&&!s.test(u)&&(n=f.length)}let a=[],l=n||0;for(let u of r)a.push(u.substr(l));return e=um(a),e},"normalize");var Nf={};le(Nf,{replaceAll:()=>Pk,standard:()=>qN});var Pk=i((t,e,r)=>t.replace(new RegExp(e,"g"),r),"replaceAll"),WN=i(t=>{let e=t.split(`
|
|
39
|
+
`),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(`
|
|
40
|
+
`)},"stripIndent"),qN=i((t,e)=>{let r=t;return(!e||e.stripIndent)&&(r=WN(r)),(!e||e.normalizeNewline)&&(r=r.replace(/\r\n/g,`
|
|
41
|
+
`)),(!e||e.replaceTabs)&&(r=Pk(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 Lf={};le(Lf,{isBase64:()=>UN,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")},Ff=class{static{i(this,"Base64")}constructor(e,r){switch(r){case"string":this.refString=e;break;case"base64":this.refString=hs.decode(e);break;case"base64uri":this.refString=hs.decode(e)}}get simpleString(){return this.refString}get base64String(){return hs.encode(this.refString)}get base64UriString(){return hs.encodeUri(this.refString)}},hs={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"),UN=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 Af=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.level1,this.level2,this.level3,this.level4,this.level5]=r,this.fullName="";for(let n of r)this.fullName===""?this.fullName=n:this.fullName=n+"."+this.fullName;this.zoneName=[this.level2,this.level1].filter(Boolean).join("."),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);if(!n)return[];let o=[...n].reverse();return o.pop(),o.filter(function(a){return a!==""})}_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 Bf=class{static{i(this,"GitRepo")}constructor(e,r){let n=YN(e);if(!n)throw new Error(`Invalid git repository URL: ${e}`);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=_k(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=_k(this.host,this.user,this.repo,this.accessToken,"https")}},YN=i(function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},"gitRegex"),_k=i(function(t,e,r,n="",o){switch(n!==""&&(n=n+"@"),o){case"https":return"https://"+n+t+"/"+e+"/"+r+".git";case"ssh":return"git@"+t+":"+e+"/"+r+".git"}},"gitLink");var Fk=Qt(Nk(),1),ds=Fk.default;var Ak=i(()=>globalThis.Buffer,"getNodeBuffer");function VN(t){let e=Ak();return e?e.from(t).toString("base64"):btoa(String.fromCharCode(...t))}i(VN,"base64Encode");function GN(t){let e=Ak();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(GN,"base64Decode");function Xa(t,e){return JSON.stringify(t,$f,e)}i(Xa,"stringify");function pm(t){return JSON.parse(t,Bk)}i(pm,"parse");var $f=i((t,e)=>{if(JN(e)){let r;if("data"in e&&$k(e.data))r=new Uint8Array(e.data);else if(e instanceof Uint8Array)r=e;else return e;return{type:"EncodedBuffer",data:"base64:"+VN(r)}}return e},"replacer"),Bk=i((t,e)=>{if(QN(e)&&fm(e.data)&&e.data.startsWith("base64:")){let r=e.data.slice(7);return GN(r)}return e},"reviver");function QN(t){return Hk(t)&&t.type==="EncodedBuffer"&&fm(t.data)}i(QN,"isEncodedBuffer");function JN(t){return Hk(t)&&t.type==="Buffer"&&($k(t.data)||fm(t.data))||t instanceof Uint8Array}i(JN,"isBufferLike");function $k(t){return Array.isArray(t)}i($k,"isArray");function fm(t){return typeof t=="string"}i(fm,"isString");function Hk(t){return typeof t=="object"&&t!==null}i(Hk,"isObject");var Wk=i(t=>{let e=JSON.parse(Xa(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):ds(e,{})},"stableStringify");var Hf=pm,hm=i(t=>t.split(`
|
|
42
|
+
`).reduce((n,o)=>{let s=o.trim();return s.length>0&&n.push(Hf(s)),n},[]),"parseJsonL"),XN=i(t=>t.map(e=>zi(e)).join(`
|
|
43
|
+
`),"stringifyJsonL"),ZN=i((t,e,r={})=>{let n=new WeakSet,o=i(l=>{if(l===null||typeof l!="object")return l;let u=$f("",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 ds(s,a)},"stableOneWayStringify"),zi=i((t,e,r=void 0)=>{if(r===void 0&&e===void 0)return Wk(t);let n=Xa(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 ds(t,o)},"stringify"),KN=i(t=>{let e=zi(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},"stringifyPretty"),eF=i((...t)=>{let e=zi(...t);return tn.base64.encodeUri(e)},"stringifyBase64"),tF=i(t=>{let e=tn.base64,n=(e.decodeUri||e.decode)(t);return Hf(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=Hf(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 zi(e)}},rF=i(()=>(t,e)=>{let r=String(e.name);e.addInitializer(function(){this.saveableProperties||(this.saveableProperties=[]),this.saveableProperties.includes(r)||this.saveableProperties.push(r)})},"foldDec"),qk=i((t,e)=>{let r=zi(t),n=zi(e);return r===n},"deepEqualObjects"),nF=i((t,e)=>{let r=hm(t),n=hm(e);return qk(r,n)},"deepEqualJsonLStrings");var Nt={};le(Nt,{TypedrequestCache:()=>mm,WebStore:()=>Za});var zf={};var Wf=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([iF(l),oF(s)]),c]);return p}catch(p){throw o.signal?.aborted?o.signal.reason:p}finally{o.signal?.removeEventListener("abort",f)}}},Uk=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"),iF=i(t=>new Promise((e,r)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>r(qf("IndexedDB request failed",t.error))}),"indexedDbRequestToPromise"),oF=i(t=>new Promise((e,r)=>{t.oncomplete=()=>e(),t.onabort=()=>r(qf("IndexedDB transaction aborted",t.error)),t.onerror=()=>r(qf("IndexedDB transaction failed",t.error))}),"indexedDbTransactionToPromise"),qf=i((t,e)=>e?new Error(`${t}: ${e.message}`,{cause:e}):new Error(t),"createIndexedDbError"),Yk=i((t,e)=>{t.objectStoreNames.contains(e)||t.createObjectStore(e)},"ensureObjectStore"),Vk=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(qf(`Failed to open IndexedDB database "${t}"`,a.error)),a.onblocked=()=>l(new Error(`Opening IndexedDB database "${t}" was blocked by another connection`))})},"openNativeDb"),sF=i(async(t,e)=>{let r=await Vk(t,void 0,o=>Yk(o,e));if(r.objectStoreNames.contains(e))return new Wf(r);let n=r.version+1;if(r.close(),r=await Vk(t,n,o=>Yk(o,e)),!r.objectStoreNames.contains(e))throw r.close(),new Error(`Failed to create IndexedDB object store "${e}" in database "${t}"`);return new Wf(r)},"openWebStoreDb"),Za=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 Uk(r,e),e?.throwIfAborted()),this.initPromise||(this.initPromise=this.runInit().catch(n=>{throw this.initPromise=void 0,n})),Uk(this.initPromise,e)}async runInit(){let e=new Er.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 sF(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 mm=class{static{i(this,"TypedrequestCache")}constructor(e="default"){this.webstore=new Za({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return at.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 Ka=256,ms=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 Nt.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??Ka;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 aF(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((m,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 m=await Promise.race([s.read(),c]);if(m.done)break;a.push(m.value),l+=m.value.byteLength}}finally{r.removeEventListener("abort",p),f&&await f;try{s.releaseLock()}catch{}}let h=new Uint8Array(l),d=0;for(let m of a)h.set(m,d),d+=m.byteLength;return h.buffer}},aF=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 lF(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(lF,"parseCacheControl");function uF(t){if(t)try{return new Date(t).getTime()}catch{return}}i(uF,"parseExpires");function rn(t){let e=t.get("cache-control"),r=t.get("expires"),n=t.get("etag"),o=t.get("last-modified"),s=lF(e);if(s.maxAge===0&&r){let a=uF(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(rn,"extractCacheMetadata");function Uf(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(Uf,"isFresh");function gs(t){return t.noCache||t.mustRevalidate}i(gs,"requiresRevalidation");function Yf(t){let e={};return t.etag&&(e["if-none-match"]=t.etag),t.lastModified&&(e["if-modified-since"]=t.lastModified),e}i(Yf,"createConditionalHeaders");function Vf(t){let e={};return t.forEach((r,n)=>{e[n]=r}),e}i(Vf,"headersToObject");function Gk(t){let e=new Headers;return Object.entries(t).forEach(([r,n])=>{e.set(r,n)}),e}i(Gk,"objectToHeaders");function cF(t){let e=new AbortController,r=!1,n=!1,o=new ue.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(cF,"createTimeoutController");var Qk=Symbol("webrequestTimeoutError"),ni=i((t,e)=>{let r=new Error(`Request timeout after ${e}ms: ${t}`);return Object.defineProperty(r,Qk,{configurable:!1,enumerable:!1,value:!0,writable:!1}),r},"createTimeoutError"),el=i(t=>t instanceof Error&&Reflect.get(t,Qk)===!0,"isWebrequestTimeoutError");async function gm(t,e,r){let n=t instanceof Request?t.url:String(t),{controller:o,cleanup:s,didTimeout:a}=cF(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()?ni(n,r):u}}i(gm,"fetchWithTimeout");var Jk=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 Xk(t,e){if(e.signal?.aborted){let f=Jk(e.signal);throw await t.body?.cancel(f).catch(()=>{}),f}if(e.bodyTimeoutMs!==void 0&&e.bodyTimeoutMs<=0){let f=ni(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(Jk(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(ni(e.url,f))},e.bodyTimeoutMs)}let c=i(async()=>{let f=new TextDecoder,p="";for(;;){let h;try{h=await r.read()}catch(d){throw n||d}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(Xk,"consumeJsonWithTimeout");var Gf=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 xs(r,n,e.request.signal),e.signal?.aborted)throw e.signal.reason;if(el(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=rn(r.headers);if(n.maxAge=tl(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})}},xm=class{static{i(this,"CacheFirstStrategy")}async execute(e){let r=await e.cacheStore.get(e.cacheKey,{signal:e.signal});if(r){let s=rn(new Headers(r.headers));if(Zk(e,r,s)&&!gs(s))return e.logging&&console.log("[webrequest] Cache hit (fresh):",e.request.url),{response:e.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1};if(gs(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=rn(n.headers);if(o.maxAge=tl(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 xs(n,s,e.request.signal),s}return{response:n,fromCache:!1,revalidated:!1}}async revalidate(e,r){let n=Yf(r),o=new Request(e.request.url,{method:e.request.method,headers:{...Vf(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 xs(s,"304 response replaced by cached response",o.signal),{response:e.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!0};if(s.ok){let a=rn(s.headers);if(a.maxAge=tl(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 xs(s,a,o.signal),e.signal?.aborted)throw e.signal.reason;if(el(a))throw a;return e.logging&&console.log("[webrequest] Revalidation failed, using cache:",a),{response:e.cacheStore.responseFromCacheEntry(r),fromCache:!0,revalidated:!1}}}},ym=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=rn(n.headers);if(o.maxAge=tl(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 xs(n,s,e.request.signal),s}return{response:n,fromCache:!1,revalidated:!1}}async revalidateInBackground(e,r){let n=rn(new Headers(r.headers));if(Zk(e,r,n)&&!gs(n))return;let o;try{if(e.signal?.throwIfAborted(),o=await e.fetchFn(e.request),o.ok){let s=rn(o.headers);if(s.maxAge=tl(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 xs(o,"background revalidation response discarded",e.request.signal)}}},wm=class{static{i(this,"NetworkOnlyStrategy")}async execute(e){return{response:await e.fetchFn(e.request),fromCache:!1,revalidated:!1}}},bm=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}}},tl=i((t,e)=>e===void 0?t:Math.min(t,e),"resolveEffectiveMaxAge"),Zk=i((t,e,r)=>Uf(e,r)?t.cacheMaxAge===void 0?!0:Date.now()-e.timestamp<t.cacheMaxAge:!1,"isFreshForContext"),xs=i(async(t,e,r)=>{!t?.body||t.bodyUsed||r?.aborted||await t.body.cancel(e).catch(()=>{})},"cancelDiscardedResponse");function Kk(t){switch(t){case"network-first":return new Gf;case"cache-first":return new xm;case"stale-while-revalidate":return new ym;case"network-only":return new wm;case"cache-only":return new bm;default:return new Gf}}i(Kk,"getStrategyHandler");var ys=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 ms(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??Ka;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(ni(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=Kk(o),h={request:e,cacheKey:f,cacheStore:this.cacheStore,fetchFn:n,logging:r.logging,signal:c,cacheMaxAge:r.cacheMaxAge,cacheMaxEntries:s,scheduleBackgroundRevalidation:i(d=>{this.scheduleBackgroundRevalidation(f,e.url,a,d)},"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(ni(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 Qf=class{static{i(this,"ExponentialBackoff")}calculate(e,r,n){let o=r*Math.pow(2,e-1);return Math.min(o,n)}},vm=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 eS(t){switch(t){case"exponential":return new Qf;case"linear":return new vm;case"constant":return new km;default:return new Qf}}i(eS,"getBackoffCalculator");function tS(t,e=.1){let r=t*e*Math.random();return t+r}i(tS,"addJitter");var ws=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=eS(this.options.backoff).calculate(e,this.options.initialDelay,this.options.maxDelay);return tS(n)}async delay(e){if(!this.signal){await ue.delayFor(e);return}if(this.signal.aborted)throw this.getAbortError();let r=new ue.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 bs=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=ie.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 Wi=class{static{i(this,"WebrequestClient")}constructor(e={}){this.closeReason=new Error("Webrequest client is closed"),this.disposed=!1,this.defaultOptions=e,this.interceptorManager=new ps,this.cacheManager=new ys,this.deduplicator=new bs}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 gm(u,{...f,signal:u.signal},c)},"fetchFnForRequest"),s=i(async(u,c)=>{let f=r.timeout??6e4;return await gm(u,c,f)},"fetchFnForFallbacks"),a;if(n){let u=new ws(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 fF(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(ni(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 Xk(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||{}}})}},fF=i((t,e)=>{let r=Object.freeze({fromCache:e.fromCache,revalidated:e.revalidated});return Object.freeze({response:t,metadata:r})},"createResponseResult");var Dt=new Wi;async function dt(t,e){let r=t instanceof Request?t.url:String(t),n=t instanceof Request?t:new Request(r,e);return await Dt.request(n,e)}i(dt,"webrequest"),dt.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 Dt.requestWithMetadata(n,e)},dt.getJson=async function(t,e){return await Dt.getJson(t,e)},dt.getJsonWithMetadata=async function(t,e){return await Dt.getJsonWithMetadata(t,e)},dt.postJson=async function(t,e,r){return await Dt.postJson(t,e,r)},dt.postJsonWithMetadata=async function(t,e,r){return await Dt.postJsonWithMetadata(t,e,r)},dt.putJson=async function(t,e,r){return await Dt.putJson(t,e,r)},dt.putJsonWithMetadata=async function(t,e,r){return await Dt.putJsonWithMetadata(t,e,r)},dt.deleteJson=async function(t,e){return await Dt.deleteJson(t,e)},dt.deleteJsonWithMetadata=async function(t,e){return await Dt.deleteJsonWithMetadata(t,e)},dt.addRequestInterceptor=function(t){Dt.addRequestInterceptor(t)},dt.addResponseInterceptor=function(t){Dt.addResponseInterceptor(t)},dt.addErrorInterceptor=function(t){Dt.addErrorInterceptor(t)},dt.clearInterceptors=function(){Dt.clearInterceptors()},dt.clearCache=async function(){await Dt.clearCache()},dt.createClient=function(t){return new Wi(t)},dt.getDefaultClient=function(){return Dt};var rl=Qt(ya(),1);var pF=1e4,rS=new WeakSet,nS=new WeakMap,Sm=i(t=>{rS.add(t)},"authorizeVirtualStreamApplicationUse"),qi=class extends Error{static{i(this,"VirtualStreamClosedError")}constructor(e="VirtualStream is closed",r){super(e,r),this.name="VirtualStreamClosedError"}},ji=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"}},Xf=class extends Error{static{i(this,"VirtualStreamLifecycleContractError")}constructor(e){super(`VirtualStream endpoint closed before terminal ${e} produced a receipt`),this.name="VirtualStreamLifecycleContractError"}},kn=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=nS.get(e);if(r&&r!==this)throw new Error("VirtualStream is already owned by another activation scope");r||nS.set(e,this),this.trackedStreams.add(e),this.hasAuthorizedTrackedStreams&&Sm(e),this.published&&e.publishActivation()}authorizeApplicationUse(){if(!(this.settled||this.hasAuthorizedTrackedStreams)){this.hasAuthorizedTrackedStreams=!0;for(let e of this.trackedStreams)Sm(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)))}},Dr=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||Kt.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 kn,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),d=await t.openVirtualStreamWithTimeout(f,p.descriptor,h,u,r.abortSignal);p.stream.bindOpenedEndpoint(d)}}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||Kt.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(Kt.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()+pF;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 ji(0,e);return r}static async openVirtualStreamWithTimeout(e,r,n,o,s){let a=new ji(n,o),l=new AbortController,u,c,f,p=Promise.resolve().then(()=>e.openVirtualStream(r,{abortSignal:l.signal,timeoutMs:n}));p.then(async d=>{u!==void 0&&await t.abortLateOpenedEndpoint(d,u)},()=>{});let h=new Promise((d,m)=>{c=setTimeout(()=>{u=a,l.abort(a),m(a)},n),s&&(f=i(()=>{let g=s.reason??new DOMException("The operation was aborted","AbortError");u=g,l.abort(g),m(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&&Sm(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 qi("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(!rS.has(this))throw new Error("VirtualStream application use is not authorized")}assertApplicationOperation(e){if(this.assertApplicationOperationsAllowed(),this.assertNotClosed(),this.terminalPromise)throw new qi("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 qi("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 qi(`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 Xf(r)}})();return this.terminalPromise=c,c}};var pr=class extends Error{static{i(this,"TypedResponseError")}constructor(e,r){super(e),this.name="TypedResponseError",this.errorText=e,this.errorData=r??{}}};var vs=Object.freeze({redacted:!0});var iS=Object.freeze(["onOutgoingRequest","onIncomingResponse","onIncomingRequest","onOutgoingResponse"]),oS=Symbol.for("@api.global/typedrequest:global-hooks:3.8"),sS=i(t=>({payloadProjector:t?.payloadProjector,errorProjector:t?.errorProjector}),"copyProjectionOptions"),Kf=i((t={})=>({hooks:t,projectedRegistrationsByPhase:{}}),"createTypedRouterHookRegistrationState"),hF=i(t=>iS.filter(e=>Object.hasOwn(t,e)).map(e=>[e,t[e]]),"getSuppliedHookEntries"),ep=i((t,e,r)=>{let n=hF(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:sS(r)}}},"mergeTypedRouterHookRegistrations"),tp=i((t,e)=>{t.hooks=e;for(let r of iS)delete t.projectedRegistrationsByPhase[r]},"replaceTypedRouterHookRegistrations"),ks=i(()=>{let t=globalThis[oS];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:Kf(),subscribers:new Map};return globalThis[oS]=e,e},"getRealmGlobalHookState"),lS=i(()=>ks().legacy.hooks,"getLegacyGlobalHooks"),uS=i(t=>{tp(ks().legacy,t)},"replaceLegacyGlobalHooks"),cS=i((t,e)=>{ep(ks().legacy,t,e)},"mergeLegacyGlobalHooks"),fS=i((t,e)=>{let r=ks(),n=Symbol("typedrequest-hook-subscriber"),o=Kf();ep(o,t,e),r.subscribers.set(n,o);let s=!1;return()=>{s||(s=!0,r.subscribers.delete(n))}},"addGlobalHookSubscriber"),pS=i(()=>{let t=ks();tp(t.legacy,{}),t.subscribers.clear()},"clearGlobalHookRegistrations"),Zf=i(t=>{try{console.error(`TypedRequest hook projection failed (${t})`)}catch{}},"logProjectionFailure"),Tm=i(t=>{try{console.error(`TypedRequest hook callback failed (${t})`)}catch{}},"logCallbackFailure"),dF=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{Zf(e);return}},"createMetadata"),aS=i(t=>typeof SharedArrayBuffer>"u"?!1:t instanceof SharedArrayBuffer||Object.prototype.toString.call(t)==="[object SharedArrayBuffer]","isSharedArrayBuffer"),Ss=i((t,e=new Set)=>{if(!(t===null||typeof t!="object"&&typeof t!="function")){if(aS(t))throw new TypeError("TypedRequest hook projections cannot contain SharedArrayBuffer");if(ArrayBuffer.isView(t)){if(aS(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)Ss(r,e),Ss(n,e);return}if(t instanceof Set){for(let r of t)Ss(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");Ss(n.value,e)}}}}},"assertNoSharedArrayBuffer"),mF=i((t,e,r,n)=>{if(!e||!r.payloadProjector)return{payload:vs,payloadRedacted:!0};try{let o=r.payloadProjector(t,e);Ss(o);let s=structuredClone(o);return Ss(s),s!==null&&(typeof s=="object"||typeof s=="function")&&Object.freeze(s),{payload:s,payloadRedacted:!1}}catch{return Zf(n),{payload:vs,payloadRedacted:!0}}},"snapshotPayload"),gF=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{Zf(n);return}},"snapshotError"),xF=i((t,e,r)=>{let n=dF(t,r),o=mF(t.payload,n,e,r),s=gF(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{Zf(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:vs,payloadRedacted:!0};try{return Object.freeze(l)}catch{return l}}},"projectLogEntry"),Em=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?sS(n.projectionOptions):{}}}catch{Tm(e);return}},"snapshotDispatchRecipient"),Dm=i((t,e,r)=>{let n=xF(r,t.projectionOptions,e);try{let o=t.callback(n);o&&typeof o.then=="function"&&Promise.resolve(o).catch(()=>{Tm(e)})}catch{Tm(e)}},"dispatchToRecipient"),Ts=i((t,e,r)=>{let n=ks();if(n.subscribers.size===0){let a=Em(n.legacy,t),l=r?Em(r,t):void 0;if(!a&&!l)return;a&&Dm(a,t,e),l&&Dm(l,t,e);return}let s=[n.legacy,...Array.from(n.subscribers.values()),...r?[r]:[]].map(a=>Em(a,t)).filter(a=>!!a);for(let a of s)Dm(a,t,e)},"dispatchTypedRequestHook");var rp=class{static{i(this,"TypedTools")}constructor(e){this.localData={},this.abortSignal=e??new AbortController().signal}async passGuards(e,r){let n=new vn.GuardSet(e);if(!await n.allGuardsPass(r)){let s=await n.getFailedHint(r);throw new pr(`guard failed: ${s}`,{failedHint:s})}}};var Cm=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 rp(r);e.localData&&(o.localData=e.localData);let s=await this.handlerFunction(e.request,o).catch(a=>{a instanceof pr?n=a:(console.error(`TypedRequest handler '${this.method}' failed`),n=new pr(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 np(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(np,"getTypedRequestResponseInterestKey");var Mm=class t{static{i(this,"TypedRouter")}constructor(){this.hookRegistrationState=Kf(),this.routerMap=new Fe.ObjectMap,this.fallbackRouterMap=new Fe.ObjectMap,this.fallbackParentRouters=new Set,this.handlerMap=new Fe.ObjectMap,this.middlewares=[],this.fireEventInterestMap=new Fe.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 lS()}static set globalHooks(e){uS(e)}static setGlobalHooks(e,r){cS(e,r)}static addGlobalHooks(e,r){return fS(e,r)}static clearGlobalHooks(){pS()}get hooks(){return this.hookRegistrationState.hooks}set hooks(e){tp(this.hookRegistrationState,e)}setHooks(e,r){ep(this.hookRegistrationState,e,r)}callHook(e,r){Ts(e,r,this.hookRegistrationState)}setErrorFromCaughtError(e,r,n){if(r instanceof pr){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 m=np(e);if(!m)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(m)?.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 m=Object.freeze({typedRouter:this,trustedLocalData:s,wireLocalDataPresent:n}),g=!1;try{g=this.incomingRequestAuthorityGuard(e,m)===!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 m=Object.freeze({typedRouter:this,trustedLocalData:s,wireLocalDataPresent:n});try{a=this.incomingRequestSignalResolver(e,m)}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(m){try{a?.complete()}catch{}throw m}let c=new kn,f=new kn,p=i(async m=>{await Promise.allSettled([c.rollback(m),f.rollback(m)])},"rollbackRouteActivations"),h=i(()=>{c.commit(),f.commit()},"commitRouteActivations"),d=i(async()=>(delete e.localData,Dr.encodePayloadForNetwork(e,{side:"responding",virtualStreamTransport:u,activationScope:f})),"encodeResponse");try{if(e=await Dr.decodePayloadFromNetworkAsync(e,{side:"responding",virtualStreamTransport:u,activationScope:c,abortSignal:l}),e.localData={...s},e.localData.firstTypedrouter=this,e?.correlation?.phase==="request"){let m=Date.now();o.skipHooks||this.callHook("onIncomingRequest",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"incoming",phase:"request",timestamp:m,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 d(),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()-m,payload:e.response,errorText:e.error?.text}),this.assertTrustedAbortSignalActive(l),e;let{handler:x,router:y}=g;if(y.middlewares.length>0)try{for(let T of y.middlewares)await T(e)}catch(T){return this.setErrorFromCaughtError(e,T,`middleware for method '${e.method}'`),e.correlation.phase="response",e=await d(),await p(T),o.skipHooks||this.callHook("onOutgoingResponse",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-m,payload:e.response,errorText:e.error?.text}),this.assertTrustedAbortSignalActive(l),e}c.authorizeApplicationUse(),e=await x.addResponse(e,l);let S=!!e.error;return e=await d(),S&&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()-m,payload:e.response,errorText:e.error?.text}),S||(this.assertTrustedAbortSignalActive(l),h()),this.assertTrustedAbortSignalActive(l),e}return await p(new Error("TypedRouter received an unroutable request DTO")),this.assertTrustedAbortSignalActive(l),null}catch(m){throw await p(m),m}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 Om=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=np(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 ip=new er.WebrequestClient,op=2147483647,sp=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}},ap=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}},Im=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 kn,l={method:this.method,request:e,response:null,requestInstanceId:rl.uni(),correlation:{id:rl.uni(),phase:"request"}};try{this.assertActive(o);let u=Dr.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||Ts("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||Ts("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 pr(p.text,p.data);let h=f.response;if(!this.urlEndPoint&&this.typedTarget.options.supportsAbortSignal!==!0&&Dr.containsNetworkDescriptor(h))throw new Error("VirtualStreams require TypedTarget AbortSignal transport support");try{h=await Dr.decodePayloadFromNetworkAsync(h,{side:"requesting",activationScope:a,virtualStreamTransport:this.typedTarget?.options.virtualStreamTransport,openDeadlineAt:o.deadlineAt,abortSignal:o.abortSignal})}catch(d){throw d instanceof ji&&o.deadlineAt!==void 0&&d.deadlineAt===o.deadlineAt?this.createTimeoutError(o):d}return this.assertActive(o),a.authorizeApplicationUse(),this.skipHooks||Ts("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 ip.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 ip.deleteCache(r.cacheKey),r.abortSignal?.aborted?this.getAbortReason(r):r.timeoutMs!==void 0&&(this.hasDeadlineExpired(r)||er.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 ip.deleteCache(r.cacheKey),l}r.cacheKey&&!this.isReusableCachedHttpEnvelope(s)&&await ip.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 ap(this.method,r.maxRetries);n+=1,await this.waitForRetry(s.retry.waitForMs,r),e.requestInstanceId=rl.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>op))throw new RangeError(`TypedRequest timeoutMs must be a positive safe integer no greater than ${op}`);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 sp(this.method,e.timeoutMs)}async waitForRetry(e,r){if(!Number.isSafeInteger(e)||e<=0||e>op)throw new RangeError(`TypedRequest retry waitForMs must be a positive safe integer no greater than ${op}`);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 ue.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")&&!Dr.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 hS(t){return t&&typeof t.then=="function"}i(hS,"isPromise");var dS=Promise.resolve(!1),t_e=Promise.resolve(!0),nn=Promise.resolve();function lp(t,e){return t||(t=0),new Promise(function(r){return setTimeout(function(){return r(e)},t)})}i(lp,"sleep");function mS(t,e){return Math.floor(Math.random()*(e-t+1)+t)}i(mS,"randomInt");function nl(){return Math.random().toString(36).substring(2)}i(nl,"randomToken");var Pm=0;function Sn(){var t=Date.now()*1e3;return t<=Pm&&(t=Pm+1),Pm=t,t}i(Sn,"microSeconds");function r_e(){return typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function"}i(r_e,"supportsWebLockAPI");var yF=Sn,wF="native";function bF(t){var e={time:Sn(),messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(r){e.messagesCallback&&e.messagesCallback(r.data)},e}i(bF,"create");function vF(t){t.bc.close(),t.subFns=[]}i(vF,"close");function kF(t,e){try{return t.bc.postMessage(e,!1),nn}catch(r){return Promise.reject(r)}}i(kF,"postMessage");function SF(t,e){t.messagesCallback=e}i(SF,"onMessage");function TF(){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(TF,"canBeUsed");function EF(){return 150}i(EF,"averageResponseTime");var gS={create:bF,close:vF,onMessage:SF,postMessage:kF,canBeUsed:TF,type:wF,averageResponseTime:EF,microSeconds:yF};var Es=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<_m()-this.ttl?(this.map.delete(e),!1):!0}add(e){this.map.delete(e),this.map.set(e,_m()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,DF(this)},0))}clear(){this.map.clear()}};function DF(t){let e=_m()-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(DF,"removeTooOldValues");function _m(){return Date.now()}i(_m,"now");function Ui(){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(Ui,"fillOptionsWithDefaults");var CF=Sn,MF="pubkey.broadcast-channel-0-",Cr="messages",il={durability:"relaxed"},OF="idb";function xS(){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(xS,"getIdb");function up(t){t.commit&&t.commit()}i(up,"commitIndexedDBTransaction");function IF(t){var e=xS(),r=MF+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(IF,"createDatabase");function PF(t,e,r){var n=Date.now(),o={uuid:e,time:n,data:r},s=t.transaction([Cr],"readwrite",il);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),up(s)})}i(PF,"writeMessage");function m_e(t){var e=t.transaction(Cr,"readonly",il),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()):(up(e),o(n))}})}i(m_e,"getAllMessages");function _F(t,e){var r=t.transaction(Cr,"readonly",il),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()):(up(r),u(o))}})}i(_F,"getMessagesHigherThan");function RF(t,e){if(t.closed)return Promise.resolve([]);var r=t.db.transaction(Cr,"readwrite",il),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(RF,"removeMessagesById");function NF(t,e){var r=Date.now()-e,n=t.transaction(Cr,"readonly",il),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()):(up(n),a(s))}else a(s)}})}i(NF,"getOldMessages");function FF(t){return NF(t.db,t.options.idb.ttl).then(function(e){return RF(t,e.map(function(r){return r.id}))})}i(FF,"cleanOldMessages");function LF(t,e){return e=Ui(e),IF(t).then(function(r){var n={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:nl(),eMIs:new Es(e.idb.ttl*2),writeBlockPromise:nn,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,e.idb.onclose&&e.idb.onclose()},yS(n),n})}i(LF,"create");function yS(t){t.closed||wS(t).then(function(){return lp(t.options.idb.fallbackInterval)}).then(function(){return yS(t)})}i(yS,"_readLoop");function AF(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}i(AF,"_filterMessage");function wS(t){return t.closed?nn:t.messagesCallback?_F(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 AF(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))}),nn}):nn}i(wS,"readNewMessages");function BF(t){t.closed=!0,t.db.close()}i(BF,"close");function $F(t,e){return t.writeBlockPromise=t.writeBlockPromise.then(function(){return PF(t.db,t.uuid,e)}).then(function(){mS(0,10)===0&&FF(t)}),t.writeBlockPromise}i($F,"postMessage");function HF(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e,wS(t)}i(HF,"onMessage");function zF(){return!!xS()}i(zF,"canBeUsed");function WF(t){return t.idb.fallbackInterval*2}i(WF,"averageResponseTime");var bS={create:LF,close:BF,onMessage:HF,postMessage:$F,canBeUsed:zF,type:OF,averageResponseTime:WF,microSeconds:CF};var qF=Sn,jF="pubkey.broadcastChannel-",UF="localstorage";function vS(){var t;if(typeof window>"u")return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return t}i(vS,"getLocalStorage");function kS(t){return jF+t}i(kS,"storageKey");function YF(t,e){return new Promise(function(r){lp().then(function(){var n=kS(t.channelName),o={token:nl(),time:Date.now(),data:e,uuid:t.uuid},s=JSON.stringify(o);vS().setItem(n,s);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=n,a.newValue=s,window.dispatchEvent(a),r()})})}i(YF,"postMessage");function VF(t,e){var r=kS(t),n=i(function(s){s.key===r&&e(JSON.parse(s.newValue))},"listener");return window.addEventListener("storage",n),n}i(VF,"addStorageEventListener");function GF(t){window.removeEventListener("storage",t)}i(GF,"removeStorageEventListener");function QF(t,e){if(e=Ui(e),!SS())throw new Error("BroadcastChannel: localstorage cannot be used");var r=nl(),n=new Es(e.localstorage.removeTimeout),o={channelName:t,uuid:r,eMIs:n};return o.listener=VF(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(QF,"create");function JF(t){GF(t.listener)}i(JF,"close");function XF(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e}i(XF,"onMessage");function SS(){var t=vS();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch{return!1}return!0}i(SS,"canBeUsed");function ZF(){var t=120,e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?t*2:t}i(ZF,"averageResponseTime");var TS={create:QF,close:JF,onMessage:XF,postMessage:YF,canBeUsed:SS,type:UF,averageResponseTime:ZF,microSeconds:qF};var ES=Sn,KF="simulate",Rm=new Set;function eL(t){var e={time:ES(),name:t,messagesCallback:null};return Rm.add(e),e}i(eL,"create");function tL(t){Rm.delete(t)}i(tL,"close");var DS=5;function rL(t,e){return new Promise(function(r){return setTimeout(function(){var n=Array.from(Rm);n.forEach(function(o){o.name===t.name&&o!==t&&o.messagesCallback&&o.time<e.time&&o.messagesCallback(e)}),r()},DS)})}i(rL,"postMessage");function nL(t,e){t.messagesCallback=e}i(nL,"onMessage");function iL(){return!0}i(iL,"canBeUsed");function oL(){return DS}i(oL,"averageResponseTime");var CS={create:eL,close:tL,onMessage:nL,postMessage:rL,canBeUsed:iL,type:KF,averageResponseTime:oL,microSeconds:ES};var MS=[gS,bS,TS];function Nm(t){var e=[].concat(t.methods,MS).filter(Boolean);if(t.type){if(t.type==="simulate")return CS;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(MS.map(function(o){return o.type})))}i(Nm,"chooseMethod");var Lm=new Set,sL=0,Yi=i(function(e,r){this.id=sL++,Lm.add(this),this.name=e,Fm&&(r=Fm),this.options=Ui(r),this.method=Nm(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,uL(this)},"BroadcastChannel");Yi._pubkey=!0;function aL(t){t=Ui(t);var e=Nm(t);return e.type==="node"?e.clearNodeFolder().then(function(){return!0}):dS}i(aL,"clearNodeFolder");var Fm;function lL(t){Fm=t}i(lL,"enforceOptions"),Yi.prototype={postMessage:i(function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return OS(this,"message",e)},"postMessage"),postInternal:i(function(e){return OS(this,"internal",e)},"postInternal"),set onmessage(t){var e=this.method.microSeconds(),r={time:e,fn:t};_S(this,"message",this._onML),t&&typeof t=="function"?(this._onML=r,PS(this,"message",r)):this._onML=null},addEventListener:i(function(e,r){var n=this.method.microSeconds(),o={time:n,fn:r};PS(this,e,o)},"addEventListener"),removeEventListener:i(function(e,r){var n=this._addEL[e].find(function(o){return o.fn===r});_S(this,e,n)},"removeEventListener"),close:i(function(){var e=this;if(!this.closed){Lm.delete(this),this.closed=!0;var r=this._prepP?this._prepP:nn;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 OS(t,e,r){var n=t.method.microSeconds(),o={time:n,type:e,data:r},s=t._prepP?t._prepP:nn;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(OS,"_post");function uL(t){var e=t.method.create(t.name,t.options);hS(e)?(t._prepP=e,e.then(function(r){t._state=r})):t._state=e}i(uL,"_prepareChannel");function IS(t){return t._addEL.message.length>0||t._addEL.internal.length>0}i(IS,"_hasMessageListeners");function PS(t,e,r){t._addEL[e].push(r),cL(t)}i(PS,"_addListenerObject");function _S(t,e,r){t._addEL[e]=t._addEL[e].filter(function(n){return n!==r}),fL(t)}i(_S,"_removeListenerObject");function cL(t){if(!t._iL&&IS(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(cL,"_startListening");function fL(t){if(t._iL&&!IS(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}i(fL,"_stopListening");var Am=globalThis.BroadcastChannel;Am||(Am=Yi);var Bm=class{static{i(this,"DeesComms")}constructor(){this.broadcastChannel=new Am("dees-comms"),this.typedrouter=new ii.TypedRouter,this.typedtarget=new ii.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 ii.TypedRequest(this.typedtarget,e)}async postMessage(e){this.broadcastChannel.postMessage(e)}async createTypedHandler(e,r){this.typedrouter.addTypedHandler(new ii.TypedHandler(e,r))}};var Mr={};le(Mr,{TYPED_REQUEST_REDACTED_PAYLOAD:()=>Ds,TypedHandler:()=>$m,TypedRequest:()=>ll,TypedRequestRetryLimitError:()=>yp,TypedRequestTimeoutError:()=>xp,TypedResponseError:()=>hr,TypedRouter:()=>sl,TypedTarget:()=>zm,VirtualStream:()=>tr,VirtualStreamActivationScope:()=>al,VirtualStreamClosedError:()=>oi});var RS={};var Tn=Qt(ya(),1);var hr=class extends Error{static{i(this,"TypedResponseError")}constructor(e,r){super(e),this.name="TypedResponseError",this.errorText=e,this.errorData=r??{}}};var fp=class{static{i(this,"TypedTools")}constructor(){this.localData={}}async passGuards(e,r){let n=new vn.GuardSet(e);if(!await n.allGuardsPass(r)){let s=await n.getFailedHint(r);throw new hr(`guard failed: ${s}`,{failedHint:s})}}};var $m=class t{static{i(this,"TypedHandler")}static{this.internalErrorMessage="Internal server error"}constructor(e,r){this.method=e,this.handlerFunction=r}async addResponse(e){if(e.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,n=new fp;e.localData&&(n.localData=e.localData);let o=await this.handlerFunction(e.request,n).catch(s=>{s instanceof hr?r=s:(console.error(`TypedRequest handler '${this.method}' failed`),r=new hr(t.internalErrorMessage))});return r&&(e.error={text:r.errorText,data:r.errorData}),o&&(e.response=o),e?.correlation?.phase&&(e.correlation.phase="response"),e}};var Ds=Object.freeze({redacted:!0});var NS=Object.freeze(["onOutgoingRequest","onIncomingResponse","onIncomingRequest","onOutgoingResponse"]),FS=Symbol.for("@api.global/typedrequest:global-hooks:3.8"),LS=i(t=>({payloadProjector:t?.payloadProjector,errorProjector:t?.errorProjector}),"copyProjectionOptions"),hp=i((t={})=>({hooks:t,projectedRegistrationsByPhase:{}}),"createTypedRouterHookRegistrationState"),hL=i(t=>NS.filter(e=>Object.hasOwn(t,e)).map(e=>[e,t[e]]),"getSuppliedHookEntries"),dp=i((t,e,r)=>{let n=hL(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:LS(r)}}},"mergeTypedRouterHookRegistrations"),mp=i((t,e)=>{t.hooks=e;for(let r of NS)delete t.projectedRegistrationsByPhase[r]},"replaceTypedRouterHookRegistrations"),Cs=i(()=>{let t=globalThis[FS];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:hp(),subscribers:new Map};return globalThis[FS]=e,e},"getRealmGlobalHookState"),BS=i(()=>Cs().legacy.hooks,"getLegacyGlobalHooks"),$S=i(t=>{mp(Cs().legacy,t)},"replaceLegacyGlobalHooks"),HS=i((t,e)=>{dp(Cs().legacy,t,e)},"mergeLegacyGlobalHooks"),zS=i((t,e)=>{let r=Cs(),n=Symbol("typedrequest-hook-subscriber"),o=hp();dp(o,t,e),r.subscribers.set(n,o);let s=!1;return()=>{s||(s=!0,r.subscribers.delete(n))}},"addGlobalHookSubscriber"),WS=i(()=>{let t=Cs();mp(t.legacy,{}),t.subscribers.clear()},"clearGlobalHookRegistrations"),pp=i(t=>{try{console.error(`TypedRequest hook projection failed (${t})`)}catch{}},"logProjectionFailure"),Hm=i(t=>{try{console.error(`TypedRequest hook callback failed (${t})`)}catch{}},"logCallbackFailure"),dL=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{pp(e);return}},"createMetadata"),AS=i(t=>typeof SharedArrayBuffer>"u"?!1:t instanceof SharedArrayBuffer||Object.prototype.toString.call(t)==="[object SharedArrayBuffer]","isSharedArrayBuffer"),Ms=i((t,e=new Set)=>{if(!(t===null||typeof t!="object"&&typeof t!="function")){if(AS(t))throw new TypeError("TypedRequest hook projections cannot contain SharedArrayBuffer");if(ArrayBuffer.isView(t)){if(AS(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)Ms(r,e),Ms(n,e);return}if(t instanceof Set){for(let r of t)Ms(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");Ms(n.value,e)}}}}},"assertNoSharedArrayBuffer"),mL=i((t,e,r,n)=>{if(!e||!r.payloadProjector)return{payload:Ds,payloadRedacted:!0};try{let o=r.payloadProjector(t,e);Ms(o);let s=structuredClone(o);return Ms(s),s!==null&&(typeof s=="object"||typeof s=="function")&&Object.freeze(s),{payload:s,payloadRedacted:!1}}catch{return pp(n),{payload:Ds,payloadRedacted:!0}}},"snapshotPayload"),gL=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{pp(n);return}},"snapshotError"),xL=i((t,e,r)=>{let n=dL(t,r),o=mL(t.payload,n,e,r),s=gL(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{pp(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:Ds,payloadRedacted:!0};try{return Object.freeze(l)}catch{return l}}},"projectLogEntry"),yL=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?LS(n.projectionOptions):{}}}catch{Hm(e);return}},"snapshotDispatchRecipient"),wL=i((t,e,r)=>{let n=xL(r,t.projectionOptions,e);try{let o=t.callback(n);o&&typeof o.then=="function"&&Promise.resolve(o).catch(()=>{Hm(e)})}catch{Hm(e)}},"dispatchToRecipient"),Os=i((t,e,r)=>{let n=Cs(),s=[n.legacy,...Array.from(n.subscribers.values()),...r?[r]:[]].map(a=>yL(a,t)).filter(a=>!!a);for(let a of s)wL(a,t,e)},"dispatchTypedRequestHook");var sl=class t{static{i(this,"TypedRouter")}constructor(){this.hookRegistrationState=hp(),this.routerMap=new Fe.ObjectMap,this.fallbackRouterMap=new Fe.ObjectMap,this.fallbackParentRouters=new Set,this.handlerMap=new Fe.ObjectMap,this.registeredVirtualStreams=new Fe.ObjectMap,this.middlewares=[],this.fireEventInterestMap=new Fe.InterestMap(e=>e)}static{this.internalErrorMessage="Internal server error"}static get globalHooks(){return BS()}static set globalHooks(e){$S(e)}static setGlobalHooks(e,r){HS(e,r)}static addGlobalHooks(e,r){return zS(e,r)}static clearGlobalHooks(){WS()}get hooks(){return this.hookRegistrationState.hooks}set hooks(e){mp(this.hookRegistrationState,e)}setHooks(e,r){dp(this.hookRegistrationState,e,r)}callHook(e,r){Os(e,r,this.hookRegistrationState)}setErrorFromCaughtError(e,r,n){if(r instanceof hr){e.error={text:r.errorText,data:r.errorData??{}};return}console.error(`TypedRequest ${n} failed`),e.error={text:t.internalErrorMessage,data:{}}}getRegisteredVirtualStreamById(e){return this.registeredVirtualStreams.findSync(r=>r.streamId===e)}registerVirtualStream(e){let r=this.getRegisteredVirtualStreamById(e.streamId);return r||(this.registeredVirtualStreams.add(e),e)}unregisterVirtualStream(e){this.registeredVirtualStreams.remove(e)}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(n=>n===e)){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(s){throw this.routerMap.remove(e),e.routerMap.remove(this),s}}}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={}){let n={...t.defaultRouteOptions,...r};if(e=tr.decodePayloadFromNetwork(e,{typedrouter:this}),e.localData=n.trustedLocalData?{...n.trustedLocalData}:e.localData||{},e.localData.firstTypedrouter=this,e.method==="##VirtualStream##"){let o=await this.handleStreamTypedRequest(e);return o.localData=null,o}if(e?.correlation?.phase==="request"||n.localRequest){let o=Date.now();n.skipHooks||this.callHook("onIncomingRequest",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"incoming",phase:"request",timestamp:o,payload:e.request});let s=this.getTypedHandlerAndRouter(e.method);if(!s)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.localData=void 0,e=tr.encodePayloadForNetwork(e,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:e.response,errorText:e.error?.text}),e;let{handler:a,router:l}=s;if(l.middlewares.length>0)try{for(let u of l.middlewares)await u(e)}catch(u){return this.setErrorFromCaughtError(e,u,`middleware for method '${e.method}'`),e.correlation.phase="response",e.localData=void 0,e=tr.encodePayloadForNetwork(e,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:e.response,errorText:e.error?.text}),e}return e=await a.addResponse(e),e.localData=void 0,e=tr.encodePayloadForNetwork(e,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:e.response,errorText:e.error?.text}),e}else return e?.correlation?.phase==="response"?(n.skipHooks||this.callHook("onIncomingResponse",{correlationId:e.correlation?.id||"unknown",method:e.method,direction:"incoming",phase:"response",timestamp:Date.now(),payload:e.response,errorText:e.error?.text}),this.fireEventInterestMap.findInterest(e.correlation.id)?.fullfillInterest(e),null):(console.log("TypedRouter received a malformed request DTO"),null)}async handleStreamTypedRequest(e){let r=this.getRegisteredVirtualStreamById(e.request.streamId);return r?r.handleStreamTr(e):(e.response={streamId:e.request.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"end",keepAlive:!1,next:!1,backpressure:!1},e)}};var Is="#############CLOSING BIT#############",oi=class extends Error{static{i(this,"VirtualStreamClosedError")}constructor(e="VirtualStream is closed",r){super(e,r),this.name="VirtualStreamClosedError"}},al=class{static{i(this,"VirtualStreamActivationScope")}constructor(){this.trackedStreams=new Set,this.settled=!1}track(e){this.settled||this.trackedStreams.add(e)}commit(){let e=[...this.trackedStreams];this.settled=!0,this.trackedStreams.clear();for(let r of e)r.commitActivation()}async rollback(e){if(this.settled)return;this.settled=!0;let r=[...this.trackedStreams];this.trackedStreams.clear(),await Promise.all(r.map(n=>n.abort(e)))}},tr=class t{static{i(this,"VirtualStream")}constructor(){this.streamId=Tn.uni(),this.lifecycleStateInternal="idle",this.keepAlive=!0,this.sendAdmissionTail=Promise.resolve(),this.frameAdmissionTail=Promise.resolve(),this.closeStarted=!1,this.activationCommitted=!1,this.activationResolvers=new Set,this.respondingDrainResolvers=new Set,this.sendBackpressuredArray=new Fe.BackpressuredArray(16),this.receiveBackpressuredArray=new Fe.BackpressuredArray(16)}static{this.respondingRegistrationIdleTimeoutMs=15e3}static{this.gracefulCloseTimeoutMs=1e4}static encodePayloadForNetwork(e,r,n,o=[]){return!e||Kt.isBufferLike(e)?e:e instanceof t?(e.activate(r),!n?.response||o.includes("response")?{_isVirtualStream:!0,streamId:e.streamId}:{_OBMITTED_VIRTUAL_STREAM:!0,reason:"path is under .request: omitted for deduplication reasons in response cycle."}):Array.isArray(e)?e.map((s,a)=>t.encodePayloadForNetwork(s,r,n||e,o.concat(String(a)))):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"?e:Object.entries(e).reduce((s,[a,l])=>(s[a]=t.encodePayloadForNetwork(l,r,n||e,o.concat(a)),s),{}):e}static decodePayloadFromNetwork(e,r){return t.decodePayloadFromNetworkInternal(e,r,new Map)}static containsNetworkDescriptor(e){return!e||Kt.isBufferLike(e)||typeof e!="object"?!1:e._isVirtualStream===!0?!0:Array.isArray(e)?e.some(r=>t.containsNetworkDescriptor(r)):Object.values(e).some(r=>t.containsNetworkDescriptor(r))}static decodePayloadFromNetworkInternal(e,r,n){if(Kt.isBufferLike(e)||e instanceof sl||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){if(typeof e.streamId!="string"||e.streamId.length===0)throw new TypeError("VirtualStream network descriptor requires a non-empty streamId");let o=n.get(e.streamId);if(o)return o;let s=r.typedrouter?.getRegisteredVirtualStreamById(e.streamId);if(s)return s.refreshRespondingRegistration(),n.set(e.streamId,s),s;let a=new t;return a.streamId=e.streamId,a.activate(r),n.set(e.streamId,a),a}return Array.isArray(e)?e.map(o=>t.decodePayloadFromNetworkInternal(o,r,n)):Object.keys(e).reduce((o,s)=>(o[s]=t.decodePayloadFromNetworkInternal(e[s],r,n),o),{})}get lifecycleState(){return this.lifecycleStateInternal}activate(e){if(this.lifecycleStateInternal==="closed")throw this.getCloseError();let r=e.sendMethod?"requesting":e.typedrouter?"responding":void 0;if(!r)throw new Error("VirtualStream requires a send method or TypedRouter");if(this.lifecycleStateInternal==="active"&&this.side!==r)throw new Error(`VirtualStream ${this.streamId} is already active on the ${this.side} side`);let n=this.lifecycleStateInternal==="idle";if(this.lifecycleStateInternal="active",this.keepAlive=!0,this.side=r,r==="requesting")this.sendMethod=e.sendMethod;else{if(this.typedrouter=e.typedrouter,this.typedrouter.registerVirtualStream(this)!==this)throw this.lifecycleStateInternal="idle",this.typedrouter=void 0,new Error(`VirtualStream ${this.streamId} is already registered on this router`);this.refreshRespondingRegistration()}n&&(e.activationScope?e.activationScope.track(this):this.commitActivation())}commitActivation(){if(this.lifecycleStateInternal==="active"&&this.side==="requesting"){this.activationCommitted=!0;let e=[...this.activationResolvers];this.activationResolvers.clear();for(let r of e)r();this.startKeepAliveLoop(),this.ensureQueueWork()}}getCloseError(e){return this.closeError||(this.closeError=new oi("VirtualStream is closed",e===void 0?void 0:{cause:e})),this.closeError}assertNotClosed(){if(this.lifecycleStateInternal==="closed")throw this.getCloseError()}assertCanSend(){if(this.assertNotClosed(),this.closeStarted)throw new oi("VirtualStream is closing")}async acquireSendAdmission(){let e=this.sendAdmissionTail,r;return this.sendAdmissionTail=new Promise(n=>{r=n}),await e,r}async acquireFrameAdmission(){let e=this.frameAdmissionTail,r;return this.frameAdmissionTail=new Promise(n=>{r=n}),await e,r}async waitForOutboundDrain(){for(;this.sendBackpressuredArray.data.length>0||this.queueWorkPromise;){this.assertNotClosed(),this.ensureQueueWork();let e=this.queueWorkPromise;e?await e:this.activationCommitted||await new Promise(r=>{this.activationResolvers.add(r)})}this.assertNotClosed()}async waitWithinGracefulCloseDeadline(e){let r,n=new Promise((o,s)=>{r=setTimeout(()=>{s(new oi("VirtualStream graceful close timed out"))},t.gracefulCloseTimeoutMs),r.unref?.()});try{await Promise.race([e,n])}finally{r&&clearTimeout(r)}}async waitForRespondingDrain(){this.sendBackpressuredArray.data.length!==0&&await new Promise(e=>{this.respondingDrainResolvers.add(e)})}resolveRespondingDrain(){if(this.sendBackpressuredArray.data.length>0)return;let e=[...this.respondingDrainResolvers];this.respondingDrainResolvers.clear();for(let r of e)r()}static reconstituteBinaryData(e){if(e==null||e instanceof Uint8Array||typeof Buffer<"u"&&Buffer.isBuffer(e))return e;if(typeof e=="object"){if(e.type==="EncodedBuffer"&&typeof e.data=="string"&&e.data.startsWith("base64:")){let n=e.data.slice(7);if(typeof Buffer<"u"){let o=Buffer.from(n,"base64");return new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}return new Uint8Array(Array.from(atob(n)).map(o=>o.charCodeAt(0)))}if(e.type==="Buffer"&&Array.isArray(e.data))return new Uint8Array(e.data);let r=Object.keys(e);if(r.length>0&&r.every(n=>/^\d+$/.test(n))){let n=new Array(r.length);for(let o of r)n[Number(o)]=e[o];if(n.every(o=>typeof o=="number"))return new Uint8Array(n)}}return e}ensureQueueWork(){this.lifecycleStateInternal==="closed"||this.side!=="requesting"||!this.activationCommitted||this.queueWorkPromise||(this.queueWorkPromise=this.workOnQueue().catch(async e=>{await this.abort(e)}).finally(()=>{this.queueWorkPromise=void 0,this.lifecycleStateInternal==="active"&&this.side==="requesting"&&this.sendBackpressuredArray.data.length>0&&this.ensureQueueWork()}))}async workOnQueue(){this.assertNotClosed();let e=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,n=!1,o=i(async()=>{let s=await this.sendStreamRequest({streamId:this.streamId,cycleId:Tn.uni(),cycle:"request",mainPurpose:"feedback",next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()});this.acceptRemoteResponse(s)&&(n=!!s.response?.backpressure,r=!!s.response?.next)},"getFeedback");for(await o();this.sendBackpressuredArray.data.length>0||r;){for(this.assertNotClosed(),r&&this.sendBackpressuredArray.data.length===0&&!this.receiveBackpressuredArray.checkSpaceAvailable()&&(await this.receiveBackpressuredArray.waitForSpace(),this.assertNotClosed(),e=!this.receiveBackpressuredArray.checkSpaceAvailable());n;)await ue.delayFor(50),this.assertNotClosed(),await o();let s=this.sendBackpressuredArray.data.length>0?this.sendBackpressuredArray.shift():void 0,a=await this.sendStreamRequest({streamId:this.streamId,cycleId:Tn.uni(),cycle:"request",mainPurpose:s===void 0?"read":"chunk",backpressure:e,next:this.sendBackpressuredArray.data.length>0,...s===void 0?{}:{chunkData:s}});if(!this.acceptRemoteResponse(a))return;n=!!a.response?.backpressure,e=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!!a.response?.next}}async sendStreamRequest(e){let r=await this.acquireFrameAdmission();try{if(this.assertNotClosed(),!this.sendMethod)throw new Error("VirtualStream is missing a send method");return await this.sendMethod({method:"##VirtualStream##",request:e,response:null})}finally{r()}}acceptRemoteResponse(e){if(this.lifecycleStateInternal==="closed")return!1;let r=e.response?.chunkData;return r!==void 0&&this.receiveBackpressuredArray.push(t.reconstituteBinaryData(r)),e.response?.keepAlive===!1||e.response?.mainPurpose==="end"?(this.terminate(new oi("Remote VirtualStream is closed"),r===Is),!1):!0}async handleStreamTr(e){if(this.lifecycleStateInternal==="closed")return e.response=this.createClosedResponse(e),e;if(this.refreshRespondingRegistration(),e.request.keepAlive===!1||e.request.mainPurpose==="end")return e.response=this.createClosedResponse(e),await this.abort(),e;let r=e.request.chunkData===Is;e.request.chunkData!==void 0&&this.receiveBackpressuredArray.push(t.reconstituteBinaryData(e.request.chunkData));let n=!!e.request.backpressure,o=!r&&!n&&this.sendBackpressuredArray.data.length>0?this.sendBackpressuredArray.shift():void 0;this.resolveRespondingDrain();let s=o===Is;return e.response={streamId:this.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:s?"end":o!==void 0?"chunk":e.request.mainPurpose==="keepAlive"?"keepAlive":"feedback",keepAlive:!s,next:this.sendBackpressuredArray.data.length>0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable(),...o===void 0?{}:{chunkData:o}},(r||s)&&(e.response.mainPurpose="end",e.response.keepAlive=!1,this.terminate(void 0,r)),e}createClosedResponse(e){return{streamId:e.request.streamId,cycleId:e.request.cycleId,cycle:"response",mainPurpose:"end",keepAlive:!1,next:!1,backpressure:!1}}refreshRespondingRegistration(){this.side!=="responding"||this.lifecycleStateInternal!=="active"||(this.respondingExpiryTimer&&clearTimeout(this.respondingExpiryTimer),this.respondingExpiryTimer=setTimeout(()=>{this.abort(new oi("Responding VirtualStream registration expired"))},t.respondingRegistrationIdleTimeoutMs),this.respondingExpiryTimer.unref?.())}async cleanup(){await this.abort()}cleanupRegistration(){if(this.respondingExpiryTimer&&(clearTimeout(this.respondingExpiryTimer),this.respondingExpiryTimer=void 0),this.typedrouter){let e=this.typedrouter;this.typedrouter=void 0,e.unregisterVirtualStream(this)}}startKeepAliveLoop(){this.side!=="requesting"||this.lifecycleStateInternal==="closed"||this.keepAliveLoopPromise||(this.keepAliveLoopPromise=this.runKeepAliveLoop().catch(async e=>{await this.abort(e)}).finally(()=>{this.keepAliveLoopPromise=void 0}))}async runKeepAliveLoop(){for(await ue.delayFor(0);this.keepAlive&&this.lifecycleStateInternal==="active";)await this.triggerKeepAlive(),this.keepAlive&&this.lifecycleStateInternal==="active"&&await ue.delayFor(1e3)}async triggerKeepAlive(){let e=await this.sendStreamRequest({streamId:this.streamId,cycleId:Tn.uni(),cycle:"request",mainPurpose:"keepAlive",keepAlive:!0,backpressure:!this.receiveBackpressuredArray.checkSpaceAvailable()});this.acceptRemoteResponse(e)&&e.response?.next&&this.ensureQueueWork()}async sendData(e){let r=await this.acquireSendAdmission();try{this.assertCanSend(),await this.sendBackpressuredArray.waitForSpace(),this.assertCanSend(),this.sendBackpressuredArray.push(e),this.ensureQueueWork(),await this.sendBackpressuredArray.waitForSpace(),this.assertCanSend()}finally{r()}}async fetchData(){if(this.receiveBackpressuredArray.checkHasItems())return this.receiveBackpressuredArray.shift();if(this.assertNotClosed(),await this.receiveBackpressuredArray.waitForItems(),!this.receiveBackpressuredArray.checkHasItems())throw this.getCloseError();return this.receiveBackpressuredArray.shift()}async readFromWebstream(e,r=!0){let n=e.getReader();try{let o=!1;for(;!o;){let{value:s,done:a}=await n.read();s!==void 0&&await this.sendData(s),o=a}r&&await this.close(!0)}finally{n.releaseLock()}}async writeToWebstream(e){let r=e.getWriter();try{for(;this.lifecycleStateInternal!=="closed"||this.receiveBackpressuredArray.checkHasItems();){let n=await this.fetchData();if(n===Is)break;await r.write(n)}await r.close()}finally{r.releaseLock()}}async close(e=!1){if(this.lifecycleStateInternal!=="closed"){if(this.closeStarted=!0,e){if(this.side==="requesting"&&this.sendMethod)try{await this.waitWithinGracefulCloseDeadline(this.waitForOutboundDrain()),await this.sendStreamRequest({streamId:this.streamId,cycleId:Tn.uni(),cycle:"request",mainPurpose:"chunk",chunkData:Is,next:!1,backpressure:!1})}catch{}else if(this.side==="responding"){this.sendBackpressuredArray.push(Is);try{await this.waitWithinGracefulCloseDeadline(this.waitForRespondingDrain())}catch{}}}await this.abort()}}async abort(e){this.terminate(e)}terminate(e,r=!1){if(this.lifecycleStateInternal==="closed")return;this.getCloseError(e),this.lifecycleStateInternal="closed",this.keepAlive=!1,this.activationCommitted=!1,this.sendMethod=void 0,this.sendBackpressuredArray.data.length=0,r||(this.receiveBackpressuredArray.data.length=0),this.sendBackpressuredArray.destroy(),this.receiveBackpressuredArray.destroy();let n=[...this.activationResolvers];this.activationResolvers.clear();for(let s of n)s();let o=[...this.respondingDrainResolvers];this.respondingDrainResolvers.clear();for(let s of o)s();this.cleanupRegistration()}};var zm=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;this.options.typedRouterRef&&(o=await this.options.typedRouterRef.fireEventInterestMap.addInterest(e.correlation.id,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 qS=new er.WebrequestClient,gp=2147483647,jS=1e4,xp=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}},yp=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}},ll=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=new al,a={method:this.method,request:e,response:null,correlation:{id:Tn.uni(),phase:"request"}};try{a=tr.encodePayloadForNetwork(a,{sendMethod:i(p=>this.postStreamTrObject(p),"sendMethod"),activationScope:s});let l=tr.containsNetworkDescriptor(a);if(l&&!this.urlEndPoint&&this.typedTarget.options.supportsAbortSignal!==!0)throw new Error("VirtualStreams require TypedTarget AbortSignal transport support");if(o.useCache&&l)throw new Error("TypedRequest response caching is not supported for requests containing VirtualStreams");this.assertDeadline(o),o.useCache&&(o.cacheKey=await this.createCacheKey(a),this.assertDeadline(o)),this.skipHooks||Os("onOutgoingRequest",{correlationId:a.correlation.id,method:this.method,direction:"outgoing",phase:"request",timestamp:n,payload:e});let u=await this.postTrObject(a,o),c=u.error;if(this.assertDeadline(o),c)throw this.skipHooks||Os("onIncomingResponse",{correlationId:a.correlation.id,method:this.method,direction:"incoming",phase:"response",timestamp:Date.now(),durationMs:Date.now()-n,payload:u.response,errorText:c.text}),this.assertDeadline(o),new hr(c.text,c.data);let f=tr.containsNetworkDescriptor(u);if(f&&!this.urlEndPoint&&this.typedTarget.options.supportsAbortSignal!==!0)throw new Error("VirtualStreams require TypedTarget AbortSignal transport support");return o.useCache&&o.cacheKey&&f&&(await qS.deleteCache(o.cacheKey),this.assertDeadline(o)),u=tr.decodePayloadFromNetwork(u,{sendMethod:i(p=>this.postStreamTrObject(p),"sendMethod"),activationScope:s}),this.assertDeadline(o),this.skipHooks||Os("onIncomingResponse",{correlationId:a.correlation.id,method:this.method,direction:"incoming",phase:"response",timestamp:Date.now(),durationMs:Date.now()-n,payload:u?.response}),this.assertDeadline(o),s.commit(),u.response}catch(l){throw await s.rollback(l),l}}async postTrObject(e,r={useCache:!1,maxRetries:3}){let n=0;for(;;){this.assertDeadline(r);let o;if(this.urlEndPoint)try{o=await qS.postJson(this.urlEndPoint,e,{cacheKey:r.cacheKey,cacheStrategy:r.useCache?"cache-first":"network-only",timeout:this.getRemainingTimeout(r)})}catch(s){throw r.timeoutMs!==void 0&&(this.hasDeadlineExpired(r)||er.isWebrequestTimeoutError(s))?this.createTimeoutError(r):s}else o=await this.postTypedTarget(e,r);if(this.assertDeadline(r),o.error&&!o.retry||!o.retry)return o;if(console.log(`Server requested a retry for TypedRequest method '${this.method}'`),n>=r.maxRetries)throw new yp(this.method,r.maxRetries);n+=1,await this.waitForRetry(o.retry.waitForMs,r)}}async postStreamTrObject(e){let r={useCache:!1,maxRetries:3,timeoutMs:jS,deadlineAt:performance.now()+jS};return this.postTrObject(e,r)}async postTypedTarget(e,r){let n=this.getRemainingTimeout(r);if(n===void 0)return this.typedTarget.post(e);let o=new AbortController,s=setTimeout(()=>{o.abort(this.createTimeoutError(r))},n);s.unref?.();try{return await this.typedTarget.post(e,{signal:o.signal})}catch(a){throw o.signal.aborted?this.createTimeoutError(r):a}finally{clearTimeout(s)}}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>gp))throw new RangeError(`TypedRequest timeoutMs must be a positive safe integer no greater than ${gp}`);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&&!this.urlEndPoint&&this.typedTarget.options.supportsAbortSignal!==!0)throw new Error("TypedRequest timeoutMs requires an HTTP URL or a TypedTarget with AbortSignal support");return{useCache:r.useCache??!1,timeoutMs:r.timeoutMs,maxRetries:r.maxRetries??3,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)}hasDeadlineExpired(e){return e.deadlineAt!==void 0&&performance.now()>=e.deadlineAt}createTimeoutError(e){return new xp(this.method,e.timeoutMs)}async waitForRetry(e,r){if(!Number.isSafeInteger(e)||e<=0||e>gp)throw new RangeError(`TypedRequest retry waitForMs must be a positive safe integer no greater than ${gp}`);let n=this.getRemainingTimeout(r);if(n===void 0){await ue.delayFor(e);return}if(e>=n)throw await ue.delayFor(n),this.createTimeoutError(r);await ue.delayFor(e),this.assertDeadline(r)}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("")}`}};var zl={};le(zl,{SmartMarkdown:()=>ty});function eg(t){if(t)throw t}i(eg,"bail");function ml(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(ml,"isPlainObject");function tg(){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?V1(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(tg,"trough");function V1(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(V1,"wrap");function li(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?G1(t.position):"start"in t||"end"in t?G1(t):"line"in t||"column"in t?rg(t):""}i(li,"stringifyPosition");function rg(t){return Q1(t&&t.line)+":"+Q1(t&&t.column)}i(rg,"point");function G1(t){return rg(t&&t.start)+"-"+rg(t&&t.end)}i(G1,"position");function Q1(t){return t&&typeof t=="number"?t:1}i(Q1,"index");var mt=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=li(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,this.expected,this.note,this.url}};mt.prototype.file="",mt.prototype.name="",mt.prototype.reason="",mt.prototype.message="",mt.prototype.stack="",mt.prototype.column=void 0,mt.prototype.line=void 0,mt.prototype.ancestors=void 0,mt.prototype.cause=void 0,mt.prototype.fatal=void 0,mt.prototype.place=void 0,mt.prototype.ruleId=void 0,mt.prototype.source=void 0;var Or={basename:nB,dirname:iB,extname:oB,join:sB,sep:"/"};function nB(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');gl(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(nB,"basename");function iB(t){if(gl(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(iB,"dirname");function oB(t){gl(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(oB,"extname");function sB(...t){let e=-1,r;for(;++e<t.length;)gl(t[e]),t[e]&&(r=r===void 0?t[e]:r+"/"+t[e]);return r===void 0?".":aB(r)}i(sB,"join");function aB(t){gl(t);let e=t.codePointAt(0)===47,r=lB(t,!e);return r.length===0&&!e&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),e?"/"+r:r}i(aB,"normalize");function lB(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(lB,"normalizeString");function gl(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}i(gl,"assertPath");var J1={cwd:uB};function uB(){return"/"}i(uB,"cwd");function Bs(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}i(Bs,"isUrl");function X1(t){if(typeof t=="string")t=new URL(t);else if(!Bs(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 cB(t)}i(X1,"urlToPath");function cB(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(cB,"getPathFromURLPosix");var ng=["history","path","basename","stem","extname","dirname"],xl=class{static{i(this,"VFile")}constructor(e){let r;e?Bs(e)?r={path:e}:typeof e=="string"||fB(e)?r={value:e}:r=e:r={},this.cwd="cwd"in r?"":J1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<ng.length;){let s=ng[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)ng.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Or.basename(this.path):void 0}set basename(e){og(e,"basename"),ig(e,"basename"),this.path=Or.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Or.dirname(this.path):void 0}set dirname(e){Z1(this.basename,"dirname"),this.path=Or.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Or.extname(this.path):void 0}set extname(e){if(ig(e,"extname"),Z1(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=Or.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Bs(e)&&(e=X1(e)),og(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Or.basename(this.path,this.extname):void 0}set stem(e){og(e,"stem"),ig(e,"stem"),this.path=Or.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 mt(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 ig(t,e){if(t&&t.includes(Or.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Or.sep+"`")}i(ig,"assertPart");function og(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}i(og,"assertNonEmpty");function Z1(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}i(Z1,"assertPath");function fB(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}i(fB,"isUint8Array");var K1=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 Pp=Qt(Y1(),1),pB={}.hasOwnProperty,sg=class t extends K1{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=tg()}copy(){let e=new t,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];e.use(...n)}return e.data((0,Pp.default)(!0,{},this.namespace)),e}data(e,r){return typeof e=="string"?arguments.length===2?(ug("data",this.frozen),this.namespace[e]=r,this):pB.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ug("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=Ip(e),n=this.parser||this.Parser;return ag("parse",n),n(String(r),r)}process(e,r){let n=this;return this.freeze(),ag("process",this.parser||this.Parser),lg("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,a){let l=Ip(e),u=n.parse(l);n.run(u,l,function(f,p,h){if(f||!p||!h)return c(f);let d=p,m=n.stringify(d,h);dB(m)?h.value=m:h.result=m,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(),ag("processSync",this.parser||this.Parser),lg("processSync",this.compiler||this.Compiler),this.process(e,o),tE("processSync","process",r),n;function o(s,a){r=!0,eg(s),n=a}i(o,"realDone")}run(e,r,n){eE(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=Ip(r);o.run(e,u,c);function c(f,p,h){let d=p||e;f?l(f):a?a(d):n(void 0,d,h)}i(c,"realDone")}i(s,"executor")}runSync(e,r){let n=!1,o;return this.run(e,r,s),tE("runSync","run",n),o;function s(a,l){eg(a),o=l,n=!0}i(s,"realDone")}stringify(e,r){this.freeze();let n=Ip(r),o=this.compiler||this.Compiler;return lg("stringify",o),eE(e),o(e,n)}use(e,...r){let n=this.attachers,o=this.namespace;if(ug("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,Pp.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[d,...m]=f,g=n[h][1];ml(g)&&ml(d)&&(d=(0,Pp.default)(!0,g,d)),n[h]=[c,d,...m]}}}},yl=new sg().freeze();function ag(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}i(ag,"assertParser");function lg(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}i(lg,"assertCompiler");function ug(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(ug,"assertUnfrozen");function eE(t){if(!ml(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}i(eE,"assertNode");function tE(t,e,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}i(tE,"assertDone");function Ip(t){return hB(t)?t:new xl(t)}i(Ip,"vfile");function hB(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}i(hB,"looksLikeAVFile");function dB(t){return typeof t=="string"||mB(t)}i(dB,"looksLikeAValue");function mB(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}i(mB,"isUint8Array");function Hs(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(Hs,"ccount");var ut=ui(/[A-Za-z]/),Ve=ui(/[\dA-Za-z]/),rE=ui(/[#-'*+\--9=?A-Z^-~]/);function eo(t){return t!==null&&(t<32||t===127)}i(eo,"asciiControl");var wl=ui(/\d/),nE=ui(/[\dA-Fa-f]/),iE=ui(/[!-/:-@[-`{-~]/);function Y(t){return t!==null&&t<-2}i(Y,"markdownLineEnding");function xe(t){return t!==null&&(t<0||t===32)}i(xe,"markdownLineEndingOrSpace");function Z(t){return t===-2||t===-1||t===32}i(Z,"markdownSpace");var to=ui(/\p{P}|\p{S}/u),an=ui(/\s/);function ui(t){return e;function e(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}i(ui,"regexCheck");var sE=i((function(t,e,r,n,o){let s=Dn(e);if(r!=null&&(typeof r!="number"||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(n!=null&&(!sE(n)||!n.children))throw new Error("Expected parent node");if(n==null!=(r==null))throw new Error("Expected both parent and index");return oE(t)?s.call(o,t,r,n):!1}),"is"),Dn=i((function(t){if(t==null)return wB;if(typeof t=="function")return _p(t);if(typeof t=="object")return Array.isArray(t)?gB(t):xB(t);if(typeof t=="string")return yB(t);throw new Error("Expected function, string, or object as test")}),"convert");function gB(t){let e=[],r=-1;for(;++r<t.length;)e[r]=Dn(t[r]);return _p(n);function n(...o){let s=-1;for(;++s<e.length;)if(e[s].apply(this,o))return!0;return!1}}i(gB,"anyFactory");function xB(t){let e=t;return _p(r);function r(n){let o=n,s;for(s in t)if(o[s]!==e[s])return!1;return!0}}i(xB,"propsFactory");function yB(t){return _p(e);function e(r){return r&&r.type===t}}i(yB,"typeFactory");function _p(t){return e;function e(r,n,o){return!!(oE(r)&&t.call(this,r,typeof n=="number"?n:void 0,o||void 0))}}i(_p,"castFactory");function wB(){return!0}i(wB,"ok");function oE(t){return t!==null&&typeof t=="object"&&"type"in t}i(oE,"looksLikeANode");var aE=[],Rp=!0,ro=!1,Np="skip";function bl(t,e,r,n){let o;typeof e=="function"&&typeof r!="function"?(n=r,r=e):o=e;let s=Dn(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 d=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u.type+(d?"<"+d+">":""))+")"})}return h;function h(){let d=aE,m,g,x;if((!e||s(u,c,f[f.length-1]||void 0))&&(d=bB(r(u,f)),d[0]===ro))return d;if("children"in u&&u.children){let y=u;if(y.children&&d[0]!==Np)for(g=(n?y.children.length:-1)+a,x=f.concat(y);g>-1&&g<y.children.length;){let S=y.children[g];if(m=l(S,g,x)(),m[0]===ro)return m;g=typeof m[1]=="number"?m[1]:g+a}}return d}}i(l,"factory")}i(bl,"visitParents");function bB(t){return Array.isArray(t)?t:typeof t=="number"?[Rp,t]:t==null?aE:[t]}i(bB,"toResult");function cg(t,e,r){let o=Dn((r||{}).ignore||[]),s=vB(e),a=-1;for(;++a<s.length;)bl(t,"text",l);function l(c,f){let p=-1,h;for(;++p<f.length;){let d=f[p],m=h?h.children:void 0;if(o(d,m?m.indexOf(d):void 0,h))return;h=d}if(h)return u(c,f)}i(l,"visitor");function u(c,f){let p=f[f.length-1],h=s[a][0],d=s[a][1],m=0,x=p.children.indexOf(c),y=!1,S=[];h.lastIndex=0;let T=h.exec(c.value);for(;T;){let H=T.index,z={index:T.index,input:T.input,stack:[...f,c]},C=d(...T,z);if(typeof C=="string"&&(C=C.length>0?{type:"text",value:C}:void 0),C===!1?h.lastIndex=H+1:(m!==H&&S.push({type:"text",value:c.value.slice(m,H)}),Array.isArray(C)?S.push(...C):C&&S.push(C),m=H+T[0].length,y=!0),!h.global)break;T=h.exec(c.value)}return y?(m<c.value.length&&S.push({type:"text",value:c.value.slice(m)}),p.children.splice(x,1,...S)):S=[c],x+S.length}i(u,"handler")}i(cg,"findAndReplace");function vB(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([kB(o[0]),SB(o[1])])}return e}i(vB,"toPairs");function kB(t){return typeof t=="string"?new RegExp(Pi(t),"g"):t}i(kB,"toExpression");function SB(t){return typeof t=="function"?t:function(){return t}}i(SB,"toFunction");var fg="phrasing",pg=["autolink","link","image","label"];function dg(){return{transforms:[OB],enter:{literalAutolink:TB,literalAutolinkEmail:hg,literalAutolinkHttp:hg,literalAutolinkWww:hg},exit:{literalAutolink:MB,literalAutolinkEmail:CB,literalAutolinkHttp:EB,literalAutolinkWww:DB}}}i(dg,"gfmAutolinkLiteralFromMarkdown");function mg(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:fg,notInConstruct:pg},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:fg,notInConstruct:pg},{character:":",before:"[ps]",after:"\\/",inConstruct:fg,notInConstruct:pg}]}}i(mg,"gfmAutolinkLiteralToMarkdown");function TB(t){this.enter({type:"link",title:null,url:"",children:[]},t)}i(TB,"enterLiteralAutolink");function hg(t){this.config.enter.autolinkProtocol.call(this,t)}i(hg,"enterLiteralAutolinkValue");function EB(t){this.config.exit.autolinkProtocol.call(this,t)}i(EB,"exitLiteralAutolinkHttp");function DB(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(DB,"exitLiteralAutolinkWww");function CB(t){this.config.exit.autolinkEmail.call(this,t)}i(CB,"exitLiteralAutolinkEmail");function MB(t){this.exit(t)}i(MB,"exitLiteralAutolink");function OB(t){cg(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,IB],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,PB]],{ignore:["link","linkReference"]})}i(OB,"transformGfmAutolinkLiterals");function IB(t,e,r,n,o){let s="";if(!lE(o)||(/^w/i.test(e)&&(r=e+r,e="",s="http://"),!_B(r)))return!1;let a=RB(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(IB,"findUrl");function PB(t,e,r,n){return!lE(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+r,children:[{type:"text",value:e+"@"+r}]}}i(PB,"findEmail");function _B(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(_B,"isCorrectDomain");function RB(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=Hs(t,"("),s=Hs(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(RB,"splitUrl");function lE(t,e){let r=t.input.charCodeAt(t.index-1);return(t.index===0||an(r)||to(r))&&(!e||r!==47)}i(lE,"previous");function Ge(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}i(Ge,"normalizeIdentifier");uE.peek=WB;function gg(){return{enter:{gfmFootnoteDefinition:NB,gfmFootnoteDefinitionLabelString:FB,gfmFootnoteCall:BB,gfmFootnoteCallString:$B},exit:{gfmFootnoteDefinition:AB,gfmFootnoteDefinitionLabelString:LB,gfmFootnoteCall:zB,gfmFootnoteCallString:HB}}}i(gg,"gfmFootnoteFromMarkdown");function xg(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:qB,footnoteReference:uE}}}i(xg,"gfmFootnoteToMarkdown");function NB(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}i(NB,"enterFootnoteDefinition");function FB(){this.buffer()}i(FB,"enterFootnoteDefinitionLabelString");function LB(t){let e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=e,r.identifier=Ge(this.sliceSerialize(t)).toLowerCase()}i(LB,"exitFootnoteDefinitionLabelString");function AB(t){this.exit(t)}i(AB,"exitFootnoteDefinition");function BB(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}i(BB,"enterFootnoteCall");function $B(){this.buffer()}i($B,"enterFootnoteCallString");function HB(t){let e=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=e,r.identifier=Ge(this.sliceSerialize(t)).toLowerCase()}i(HB,"exitFootnoteCallString");function zB(t){this.exit(t)}i(zB,"exitFootnoteCall");function uE(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),{...o.current(),before:s,after:"]"})),l(),a(),s+=o.move("]"),s}i(uE,"footnoteReference");function WB(){return"["}i(WB,"footnoteReferencePeek");function qB(t,e,r,n){let o=r.createTracker(n),s=o.move("[^"),a=r.enter("footnoteDefinition"),l=r.enter("label");return s+=o.move(r.safe(r.associationId(t),{...o.current(),before:s,after:"]"})),l(),s+=o.move("]:"+(t.children&&t.children.length>0?" ":"")),o.shift(4),s+=o.move(r.indentLines(r.containerFlow(t,o.current()),jB)),a(),s}i(qB,"footnoteDefinition");function jB(t,e,r){return e===0?t:(r?"":" ")+t}i(jB,"map");var UB=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];cE.peek=GB;function yg(){return{canContainEols:["delete"],enter:{strikethrough:YB},exit:{strikethrough:VB}}}i(yg,"gfmStrikethroughFromMarkdown");function wg(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:UB}],handlers:{delete:cE}}}i(wg,"gfmStrikethroughToMarkdown");function YB(t){this.enter({type:"delete",children:[]},t)}i(YB,"enterStrikethrough");function VB(t){this.exit(t)}i(VB,"exitStrikethrough");function cE(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(cE,"handleDelete");function GB(){return"~"}i(GB,"peekDelete");function QB(t){return t.length}i(QB,"defaultStringLength");function pE(t,e){let r=e||{},n=(r.align||[]).concat(),o=r.stringLength||QB,s=[],a=[],l=[],u=[],c=0,f=-1;for(;++f<t.length;){let g=[],x=[],y=-1;for(t[f].length>c&&(c=t[f].length);++y<t[f].length;){let S=JB(t[f][y]);if(r.alignDelimiters!==!1){let T=o(S);x[y]=T,(u[y]===void 0||T>u[y])&&(u[y]=T)}g.push(S)}a[f]=g,l[f]=x}let p=-1;if(typeof n=="object"&&"length"in n)for(;++p<c;)s[p]=fE(n[p]);else{let g=fE(n);for(;++p<c;)s[p]=g}p=-1;let h=[],d=[];for(;++p<c;){let g=s[p],x="",y="";g===99?(x=":",y=":"):g===108?x=":":g===114&&(y=":");let S=r.alignDelimiters===!1?1:Math.max(1,u[p]-x.length-y.length),T=x+"-".repeat(S)+y;r.alignDelimiters!==!1&&(S=x.length+S+y.length,S>u[p]&&(u[p]=S),d[p]=S),h[p]=T}a.splice(1,0,h),l.splice(1,0,d),f=-1;let m=[];for(;++f<a.length;){let g=a[f],x=l[f];p=-1;let y=[];for(;++p<c;){let S=g[p]||"",T="",H="";if(r.alignDelimiters!==!1){let z=u[p]-(x[p]||0),C=s[p];C===114?T=" ".repeat(z):C===99?z%2?(T=" ".repeat(z/2+.5),H=" ".repeat(z/2-.5)):(T=" ".repeat(z/2),H=T):H=" ".repeat(z)}r.delimiterStart!==!1&&!p&&y.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&S==="")&&(r.delimiterStart!==!1||p)&&y.push(" "),r.alignDelimiters!==!1&&y.push(T),y.push(S),r.alignDelimiters!==!1&&y.push(H),r.padding!==!1&&y.push(" "),(r.delimiterEnd!==!1||p!==c-1)&&y.push("|")}m.push(r.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return m.join(`
|
|
44
|
+
`)}i(pE,"markdownTable");function JB(t){return t==null?"":String(t)}i(JB,"serialize");function fE(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(fE,"toAlignment");var hE={}.hasOwnProperty;function Fp(t,e){let r=e||{};function n(o,...s){let a=n.invalid,l=n.handlers;if(o&&hE.call(o,t)){let u=String(o[t]);a=hE.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(Fp,"zwitch");var XB={}.hasOwnProperty;function bg(t,e){let r=-1,n;if(e.extensions)for(;++r<e.extensions.length;)bg(t,e.extensions[r]);for(n in e)if(XB.call(e,n))switch(n){case"extensions":break;case"unsafe":{dE(t[n],e[n]);break}case"join":{dE(t[n],e[n]);break}case"handlers":{ZB(t[n],e[n]);break}default:t.options[n]=e[n]}return t}i(bg,"configure");function dE(t,e){e&&t.push(...e)}i(dE,"list");function ZB(t,e){e&&Object.assign(t,e)}i(ZB,"map");function mE(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()),KB);return o(),a}i(mE,"blockquote");function KB(t,e,r){return">"+(r?"":" ")+t}i(KB,"map");function Lp(t,e){return gE(t,e.inConstruct,!0)&&!gE(t,e.notInConstruct,!1)}i(Lp,"patternInScope");function gE(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(gE,"listInScope");function vg(t,e,r,n){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
|
|
45
|
+
`&&Lp(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
46
|
+
`}i(vg,"hardBreak");function xE(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(xE,"longestStreak");function vl(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(vl,"formatCodeAsIndented");function yE(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(yE,"checkFence");function wE(t,e,r,n){let o=yE(r),s=t.value||"",a=o==="`"?"GraveAccent":"Tilde";if(vl(t,r)){let p=r.enter("codeIndented"),h=r.indentLines(s,e$);return p(),h}let l=r.createTracker(n),u=o.repeat(Math.max(xE(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:`
|
|
47
|
+
`,encode:["`"],...l.current()})),p()}return f+=l.move(`
|
|
48
|
+
`),s&&(f+=l.move(s+`
|
|
49
|
+
`)),f+=l.move(u),c(),f}i(wE,"code");function e$(t,e,r){return(r?"":" ")+t}i(e$,"map");function zs(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(zs,"checkQuote");function bE(t,e,r,n){let o=zs(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?" ":`
|
|
50
|
+
`,...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(bE,"definition");function vE(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(vE,"checkEmphasis");function rr(t){return"&#x"+t.toString(16).toUpperCase()+";"}i(rr,"encodeCharacterReference");function Cn(t){if(t===null||xe(t)||an(t))return 1;if(to(t))return 2}i(Cn,"classifyCharacter");function Ws(t,e,r){let n=Cn(t),o=Cn(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(Ws,"encodeInfo");kg.peek=t$;function kg(t,e,r,n){let o=vE(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=Ws(n.before.charCodeAt(n.before.length-1),c,o);f.inside&&(u=rr(c)+u.slice(1));let p=u.charCodeAt(u.length-1),h=Ws(n.after.charCodeAt(0),p,o);h.inside&&(u=u.slice(0,-1)+rr(p));let d=a.move(o);return s(),r.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},l+u+d}i(kg,"emphasis");function t$(t,e,r){return r.options.emphasis||"*"}i(t$,"emphasisPeek");function kl(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),bl(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(kl,"visit");var r$={};function no(t,e){let r=e||r$,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return kE(t,n,o)}i(no,"toString");function kE(t,e,r){if(n$(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 SE(t.children,e,r)}return Array.isArray(t)?SE(t,e,r):""}i(kE,"one");function SE(t,e,r){let n=[],o=-1;for(;++o<t.length;)n[o]=kE(t[o],e,r);return n.join("")}i(SE,"all");function n$(t){return!!(t&&typeof t=="object")}i(n$,"node");function Ap(t,e){let r=!1;return kl(t,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,ro}),!!((!t.depth||t.depth<3)&&no(t)&&(e.options.setext||r))}i(Ap,"formatHeadingAsSetext");function TE(t,e,r,n){let o=Math.max(Math.min(6,t.depth||1),1),s=r.createTracker(n);if(Ap(t,r)){let f=r.enter("headingSetext"),p=r.enter("phrasing"),h=r.containerPhrasing(t,{...s.current(),before:`
|
|
61
51
|
`,after:`
|
|
62
|
-
`});return
|
|
63
|
-
`+(o===1?"=":"-").repeat(
|
|
64
|
-
`))+1))}let
|
|
65
|
-
`,...
|
|
66
|
-
`,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:
|
|
67
|
-
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:
|
|
68
|
-
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:
|
|
52
|
+
`});return p(),f(),h+`
|
|
53
|
+
`+(o===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
54
|
+
`))+1))}let a="#".repeat(o),l=r.enter("headingAtx"),u=r.enter("phrasing");s.move(a+" ");let c=r.containerPhrasing(t,{before:"# ",after:`
|
|
55
|
+
`,...s.current()});return/^[\t ]/.test(c)&&(c=rr(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,r.options.closeAtx&&(c+=" "+a),u(),l(),c}i(TE,"heading");Sg.peek=i$;function Sg(t){return t.value||""}i(Sg,"html");function i$(){return"<"}i(i$,"htmlPeek");Tg.peek=o$;function Tg(t,e,r,n){let o=zs(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(Tg,"image");function o$(){return"!"}i(o$,"imagePeek");Eg.peek=s$;function Eg(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(Eg,"imageReference");function s$(){return"!"}i(s$,"imageReferencePeek");Dg.peek=a$;function Dg(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(Dg,"inlineCode");function a$(){return"`"}i(a$,"inlineCodePeek");function Cg(t,e){let r=no(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(Cg,"formatLinkAsAutolink");Mg.peek=l$;function Mg(t,e,r,n){let o=zs(r),s=o==='"'?"Quote":"Apostrophe",a=r.createTracker(n),l,u;if(Cg(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(Mg,"link");function l$(t,e,r){return Cg(t,r)?"<":"["}i(l$,"linkPeek");Og.peek=u$;function Og(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(Og,"linkReference");function u$(){return"["}i(u$,"linkReferencePeek");function qs(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(qs,"checkBullet");function EE(t){let e=qs(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(EE,"checkBulletOther");function DE(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(DE,"checkBulletOrdered");function Bp(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(Bp,"checkRule");function CE(t,e,r,n){let o=r.enter("list"),s=r.bulletCurrent,a=t.ordered?DE(r):qs(r),l=t.ordered?a==="."?")":".":EE(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),Bp(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(CE,"list");function ME(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(ME,"checkListItemIndent");function OE(t,e,r,n){let o=ME(r),s=r.bulletCurrent||qs(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,d){return h?(d?"":" ".repeat(a))+p:(d?s:s+" ".repeat(a-s.length))+p}i(f,"map")}i(OE,"listItem");function IE(t,e,r,n){let o=r.enter("paragraph"),s=r.enter("phrasing"),a=r.containerPhrasing(t,n);return s(),o(),a}i(IE,"paragraph");var Ig=Dn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function PE(t,e,r,n){return(t.children.some(function(a){return Ig(a)})?r.containerPhrasing:r.containerFlow).call(r,t,n)}i(PE,"root");function _E(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(_E,"checkStrong");Pg.peek=c$;function Pg(t,e,r,n){let o=_E(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=Ws(n.before.charCodeAt(n.before.length-1),c,o);f.inside&&(u=rr(c)+u.slice(1));let p=u.charCodeAt(u.length-1),h=Ws(n.after.charCodeAt(0),p,o);h.inside&&(u=u.slice(0,-1)+rr(p));let d=a.move(o+o);return s(),r.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},l+u+d}i(Pg,"strong");function c$(t,e,r){return r.options.strong||"*"}i(c$,"strongPeek");function RE(t,e,r,n){return r.safe(t.value,n)}i(RE,"text");function NE(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(NE,"checkRuleRepetition");function FE(t,e,r){let n=(Bp(r)+(r.options.ruleSpaces?" ":"")).repeat(NE(r));return r.options.ruleSpaces?n.slice(0,-1):n}i(FE,"thematicBreak");var io={blockquote:mE,break:vg,code:wE,definition:bE,emphasis:kg,hardBreak:vg,heading:TE,html:Sg,image:Tg,imageReference:Eg,inlineCode:Dg,link:Mg,linkReference:Og,list:CE,listItem:OE,paragraph:IE,root:PE,strong:Pg,text:RE,thematicBreak:FE};var LE=[f$];function f$(t,e,r,n){if(e.type==="code"&&vl(e,n)&&(t.type==="list"||t.type===e.type&&vl(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"&&Ap(e,n))?void 0:r.spread?1:0}i(f$,"joinDefaults");var oo=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],AE=[{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:`
|
|
56
|
+
`,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:oo},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
57
|
+
]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:oo},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
58
|
+
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:oo},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
69
59
|
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
70
60
|
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
71
|
-
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:
|
|
72
|
-
`)&&
|
|
61
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:oo},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:oo},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:oo},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:oo},{atBreak:!0,character:"~"}];var BE=document.createElement("i");function ci(t){let e="&"+t+";";BE.innerHTML=e;let r=BE.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===e?!1:r}i(ci,"decodeNamedCharacterReference");function js(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(js,"decodeNumericCharacterReference");var p$=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $p(t){return t.replace(p$,h$)}i($p,"decodeString");function h$(t,e,r){if(e)return e;if(r.charCodeAt(0)===35){let o=r.charCodeAt(1),s=o===120||o===88;return js(r.slice(s?2:1),s?16:10)}return ci(r)||t}i(h$,"decode");function $E(t){return t.label||!t.identifier?t.label||"":$p(t.identifier)}i($E,"association");function HE(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(HE,"compilePattern");function zE(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 m=e.handle.handlers[o[a+1].type];m&&m.peek&&(m=m.peek),p=m?m(o[a+1],t,e,{before:"",after:"",...c.current()}).charAt(0):""}else p=r.after;s.length>0&&(l==="\r"||l===`
|
|
62
|
+
`)&&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=rr(u.charCodeAt(0))+h.slice(1));let d=e.attentionEncodeSurroundingInfo;e.attentionEncodeSurroundingInfo=void 0,u=void 0,d&&(s.length>0&&d.before&&l===s[s.length-1].slice(-1)&&(s[s.length-1]=s[s.length-1].slice(0,-1)+rr(l.charCodeAt(0))),d.after&&(u=p)),c.move(h),s.push(h),l=h.slice(-1)}return n.pop(),s.join("")}i(zE,"containerPhrasing");function WE(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:`
|
|
73
63
|
`,after:`
|
|
74
|
-
`,...
|
|
75
|
-
`.repeat(1+
|
|
64
|
+
`,...s.current()}))),u.type!=="list"&&(e.bulletLastUsed=void 0),l<o.length-1&&a.push(s.move(d$(u,o[l+1],t,e)))}return n.pop(),a.join("")}i(WE,"containerFlow");function d$(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`
|
|
65
|
+
`.repeat(1+s);if(s===!1)return`
|
|
76
66
|
|
|
77
67
|
<!---->
|
|
78
68
|
|
|
79
69
|
`}return`
|
|
80
70
|
|
|
81
|
-
`}var
|
|
71
|
+
`}i(d$,"between");var m$=/\r?\n|\r/g;function qE(t,e){let r=[],n=0,o=0,s;for(;s=m$.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(qE,"indentLines");function UE(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(!Lp(t.stack,f))continue;let p=t.compilePattern(f),h;for(;h=p.exec(n);){let d="before"in f||!!f.atBreak,m="after"in f,g=h.index+(d?h[1].length:0);o.includes(g)?(a[g].before&&!d&&(a[g].before=!1),a[g].after&&!m&&(a[g].after=!1)):(o.push(g),a[g]={before:d,after:m})}}o.sort(g$);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(jE(n.slice(u,f),"\\")),u=f,/[!-/:-@[-`{-~]/.test(n.charAt(f))&&(!r.encode||!r.encode.includes(n.charAt(f)))?s.push("\\"):(s.push(rr(n.charCodeAt(f))),u++))}return s.push(jE(n.slice(u,c),r.after)),s.join("")}i(UE,"safe");function g$(t,e){return t-e}i(g$,"numerical");function jE(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(jE,"escapeBackslashes");function YE(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(YE,"track");function _g(t,e){let r=e||{},n={associationId:$E,containerPhrasing:b$,containerFlow:v$,createTracker:YE,compilePattern:HE,enter:s,handlers:{...io},handle:void 0,indentLines:qE,indexStack:[],join:[...LE],options:{},safe:k$,stack:[],unsafe:[...AE]};bg(n,r),n.options.tightDefinitions&&n.join.push(w$),n.handle=Fp("type",{invalid:x$,unknown:y$,handlers:n.handlers});let o=n.handle(t,void 0,n,{before:`
|
|
82
72
|
`,after:`
|
|
83
73
|
`,now:{line:1,column:1},lineShift:0});return o&&o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
|
|
84
|
-
`),o;function
|
|
85
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:
|
|
86
|
-
`))}function l(h,m,d,g){let y=d.enter("tableCell"),S=d.enter("phrasing"),k=d.containerPhrasing(h,{...g,before:i,after:i});return S(),y(),k}function u(h,m){return TM(h,{align:m,alignDelimiters:n,padding:r,stringLength:o})}function c(h,m,d){let g=h.children,y=-1,S=[],k=m.enter("table");for(;++y<g.length;)S[y]=f(g[y],m,d);return k(),S}function f(h,m,d){let g=h.children,y=-1,S=[],k=m.enter("tableRow");for(;++y<g.length;)S[y]=l(g[y],h,m,d);return k(),S}function p(h,m,d){let g=vi.inlineCode(h,m,d);return d.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function _y(){return{exit:{taskListCheckValueChecked:s_,taskListCheckValueUnchecked:s_,paragraph:T5}}}function Iy(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:E5}}}function s_(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function T5(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let r=this.stack[this.stack.length-1];r.type;let n=r.children[0];if(n&&n.type==="text"){let o=t.children,i=-1,s;for(;++i<o.length;){let a=o[i];if(a.type==="paragraph"){s=a;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function E5(e,t,r,n){let o=e.children[0],i=typeof e.checked=="boolean"&&o&&o.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=r.createTracker(n);i&&a.move(s);let l=vi.listItem(e,t,r,{...n,...a.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function Py(){return[uy(),fy(),hy(),Oy(),_y()]}function Fy(e){return{extensions:[cy(),py(),my(),My(e),Iy()]}}function Ze(e,t,r,n){let o=e.length,i=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);i<n.length;)s=n.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function ot(e,t){return e.length>0?(Ze(e,e.length,0,t),e):t}var Ny={}.hasOwnProperty;function Ch(e){let t={},r=-1;for(;++r<e.length;)A5(t,e[r]);return t}function A5(e,t){let r;for(r in t){let o=(Ny.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r],s;if(i)for(s in i){Ny.call(o,s)||(o[s]=[]);let a=i[s];D5(o[s],Array.isArray(a)?a:a?[a]:[])}}}function D5(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Ze(e,0,0,n)}function Oh(e){let t={},r=-1;for(;++r<e.length;)C5(t,e[r]);return t}function C5(e,t){let r;for(r in t){let o=(Ny.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r],s;if(i)for(s in i)o[s]=i[s]}}var O5={tokenize:F5,partial:!0},a_={tokenize:N5,partial:!0},l_={tokenize:L5,partial:!0},u_={tokenize:R5,partial:!0},M5={tokenize:B5,partial:!0},c_={name:"wwwAutolink",tokenize:I5,previous:p_},f_={name:"protocolAutolink",tokenize:P5,previous:h_},Mn={name:"emailAutolink",tokenize:_5,previous:m_},an={};function By(){return{text:an}}for(var ki=48;ki<123;)an[ki]=Mn,ki++,ki===58?ki=65:ki===91&&(ki=97);an[43]=Mn,an[45]=Mn,an[46]=Mn,an[95]=Mn,an[72]=[Mn,f_],an[104]=[Mn,f_],an[87]=[Mn,c_],an[119]=[Mn,c_];function _5(e,t,r){let n=this,o,i;return s;function s(f){return!Ly(f)||!m_.call(n,n.previous)||Ry(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return Ly(f)?(e.consume(f),a):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(M5,c,u)(f):f===45||f===95||Ve(f)?(i=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),o=!0,l}function c(f){return i&&o&&ct(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function I5(e,t,r){let n=this;return o;function o(s){return s!==87&&s!==119||!p_.call(n,n.previous)||Ry(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(O5,e.attempt(a_,e.attempt(l_,i),r),r)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function P5(e,t,r){let n=this,o="",i=!1;return s;function s(f){return(f===72||f===104)&&h_.call(n,n.previous)&&!Ry(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(f),e.consume(f),a):r(f)}function a(f){if(ct(f)&&o.length<5)return o+=String.fromCodePoint(f),e.consume(f),a;if(f===58){let p=o.toLowerCase();if(p==="http"||p==="https")return e.consume(f),l}return r(f)}function l(f){return f===47?(e.consume(f),i?u:(i=!0,l)):r(f)}function u(f){return f===null||xi(f)||be(f)||sn(f)||yi(f)?r(f):e.attempt(a_,e.attempt(l_,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function F5(e,t,r){let n=0;return o;function o(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),o):s===46&&n===3?(e.consume(s),i):r(s)}function i(s){return s===null?r(s):t(s)}}function N5(e,t,r){let n,o,i;return s;function s(u){return u===46||u===95?e.check(u_,l,a)(u):u===null||be(u)||sn(u)||u!==45&&yi(u)?l(u):(i=!0,e.consume(u),s)}function a(u){return u===95?n=!0:(o=n,n=void 0),e.consume(u),s}function l(u){return o||n||!i?r(u):t(u)}}function L5(e,t){let r=0,n=0;return o;function o(s){return s===40?(r++,e.consume(s),o):s===41&&n<r?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(u_,t,i)(s):s===null||be(s)||sn(s)?t(s):(e.consume(s),o)}function i(s){return s===41&&n++,e.consume(s),o}}function R5(e,t,r){return n;function n(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),n):a===38?(e.consume(a),i):a===93?(e.consume(a),o):a===60||a===null||be(a)||sn(a)?t(a):r(a)}function o(a){return a===null||a===40||a===91||be(a)||sn(a)?t(a):n(a)}function i(a){return ct(a)?s(a):r(a)}function s(a){return a===59?(e.consume(a),n):ct(a)?(e.consume(a),s):r(a)}}function B5(e,t,r){return n;function n(i){return e.consume(i),o}function o(i){return Ve(i)?r(i):t(i)}}function p_(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||be(e)}function h_(e){return!ct(e)}function m_(e){return!(e===47||Ly(e))}function Ly(e){return e===43||e===45||e===46||e===95||Ve(e)}function Ry(e){let t=e.length,r=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}var $5={'"':"quot","&":"amp","<":"lt",">":"gt"};function Mh(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+$5[r]+";"}}function ln(e,t){let r=Mh(lr(e||""));if(!t)return r;let n=r.indexOf(":"),o=r.indexOf("?"),i=r.indexOf("#"),s=r.indexOf("/");return n<0||s>-1&&n>s||o>-1&&n>o||i>-1&&n>i||t.test(r.slice(0,n))?r:""}function lr(e){let t=[],r=-1,n=0,o=0;for(;++r<e.length;){let i=e.charCodeAt(r),s="";if(i===37&&Ve(e.charCodeAt(r+1))&&Ve(e.charCodeAt(r+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){let a=e.charCodeAt(r+1);i<56320&&a>56319&&a<57344?(s=String.fromCharCode(i,a),o=1):s="\uFFFD"}else s=String.fromCharCode(i);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+o+1,s=""),o&&(r+=o,o=0)}return t.join("")+e.slice(n)}function Uy(){return{exit:{literalAutolinkEmail:z5,literalAutolinkHttp:j5,literalAutolinkWww:U5}}}function U5(e){$y.call(this,e,"http://")}function z5(e){$y.call(this,e,"mailto:")}function j5(e){$y.call(this,e)}function $y(e,t){let r=this.sliceSerialize(e);this.tag('<a href="'+ln((t||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}function go(e,t,r){let n=[],o=-1;for(;++o<e.length;){let i=e[o].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}var iu={name:"attention",resolveAll:q5,tokenize:H5};function q5(e,t){let r=-1,n,o,i,s,a,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let f={...e[n][1].end},p={...e[r][1].start};d_(f,-l),d_(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:p},i={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},o={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[n][1].end={...s.start},e[r][1].start={...a.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=ot(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ot(u,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",i,t]]),u=ot(u,go(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ot(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=ot(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ze(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function H5(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=On(n),i;return s;function s(l){return i=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===i)return e.consume(l),a;let u=e.exit("attentionSequence"),c=On(l),f=!c||c===2&&o||r.includes(l),p=!o||o===2&&c||r.includes(n);return u._open=!!(i===42?f:f&&(o||!p)),u._close=!!(i===42?p:p&&(c||!f)),t(l)}}function d_(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var zy={name:"autolink",tokenize:W5};function W5(e,t,r){let n=0;return o;function o(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(h){return ct(h)?(e.consume(h),s):h===64?r(h):u(h)}function s(h){return h===43||h===45||h===46||Ve(h)?(n=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Ve(h))&&n++<32?(e.consume(h),a):(n=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||xi(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):mM(h)?(e.consume(h),u):r(h)}function c(h){return Ve(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||Ve(h))&&n++<63){let m=h===45?p:f;return e.consume(h),m}return r(h)}}function ie(e,t,r,n){let o=n?n-1:Number.POSITIVE_INFINITY,i=0;return s;function s(l){return re(l)?(e.enter(r),a(l)):t(l)}function a(l){return re(l)&&i++<o?(e.consume(l),a):(e.exit(r),t(l))}}var un={partial:!0,tokenize:Y5};function Y5(e,t,r){return n;function n(i){return re(i)?ie(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||G(i)?t(i):r(i)}}var _h={continuation:{tokenize:G5},exit:Q5,name:"blockQuote",tokenize:V5};function V5(e,t,r){let n=this;return o;function o(s){if(s===62){let a=n.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return r(s)}function i(s){return re(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function G5(e,t,r){let n=this;return o;function o(s){return re(s)?ie(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(_h,t,r)(s)}}function Q5(e){e.exit("blockQuote")}var Ih={name:"characterEscape",tokenize:J5};function J5(e,t,r){return n;function n(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return gM(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}var Ph={name:"characterReference",tokenize:X5};function X5(e,t,r){let n=this,o=0,i,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,s=Ve,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=dM,c):(e.enter("characterReferenceValue"),i=7,s=tu,c(f))}function c(f){if(f===59&&o){let p=e.exit("characterReferenceValue");return s===Ve&&!mo(n.sliceSerialize(p))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&o++<i?(e.consume(f),c):r(f)}}var g_={partial:!0,tokenize:K5},Fh={concrete:!0,name:"codeFenced",tokenize:Z5};function Z5(e,t,r){let n=this,o={partial:!0,tokenize:R},i=0,s=0,a;return l;function l(T){return u(T)}function u(T){let $=n.events[n.events.length-1];return i=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,a=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(T)}function c(T){return T===a?(s++,e.consume(T),c):s<3?r(T):(e.exit("codeFencedFenceSequence"),re(T)?ie(e,f,"whitespace")(T):f(T))}function f(T){return T===null||G(T)?(e.exit("codeFencedFence"),n.interrupt?t(T):e.check(g_,d,N)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(T))}function p(T){return T===null||G(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(T)):re(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ie(e,h,"whitespace")(T)):T===96&&T===a?r(T):(e.consume(T),p)}function h(T){return T===null||G(T)?f(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(T))}function m(T){return T===null||G(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(T)):T===96&&T===a?r(T):(e.consume(T),m)}function d(T){return e.attempt(o,N,g)(T)}function g(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),y}function y(T){return i>0&&re(T)?ie(e,S,"linePrefix",i+1)(T):S(T)}function S(T){return T===null||G(T)?e.check(g_,d,N)(T):(e.enter("codeFlowValue"),k(T))}function k(T){return T===null||G(T)?(e.exit("codeFlowValue"),S(T)):(e.consume(T),k)}function N(T){return e.exit("codeFenced"),t(T)}function R(T,$,J){let H=0;return D;function D(P){return T.enter("lineEnding"),T.consume(P),T.exit("lineEnding"),xe}function xe(P){return T.enter("codeFencedFence"),re(P)?ie(T,j,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):j(P)}function j(P){return P===a?(T.enter("codeFencedFenceSequence"),O(P)):J(P)}function O(P){return P===a?(H++,T.consume(P),O):H>=s?(T.exit("codeFencedFenceSequence"),re(P)?ie(T,M,"whitespace")(P):M(P)):J(P)}function M(P){return P===null||G(P)?(T.exit("codeFencedFence"),$(P)):J(P)}}}function K5(e,t,r){let n=this;return o;function o(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}var su={name:"codeIndented",tokenize:tY},eY={partial:!0,tokenize:rY};function tY(e,t,r){let n=this;return o;function o(u){return e.enter("codeIndented"),ie(e,i,"linePrefix",5)(u)}function i(u){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):G(u)?e.attempt(eY,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||G(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function rY(e,t,r){let n=this;return o;function o(s){return n.parser.lazy[n.now().line]?r(s):G(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):ie(e,i,"linePrefix",5)(s)}function i(s){let a=n.events[n.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):G(s)?o(s):r(s)}}var jy={name:"codeText",previous:oY,resolve:nY,tokenize:iY};function nY(e){let t=e.length-4,r=3,n,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)o===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(o=n):(n===t||e[n][1].type==="lineEnding")&&(e[o][1].type="codeTextData",n!==o+2&&(e[o][1].end=e[n-1][1].end,e.splice(o+2,n-o-2),t-=n-o-2,n=o+2),o=void 0);return e}function oY(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function iY(e,t,r){let n=this,o=0,i,s;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),o++,l):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?r(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(s=e.enter("codeTextSequence"),i=0,f(p)):G(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||G(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),c)}function f(p){return p===96?(e.consume(p),i++,f):i===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",c(p))}}var lu=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){let n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){let o=r||0;this.setCursor(Math.trunc(t));let i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return n&&au(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),au(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),au(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let r=this.left.splice(t,Number.POSITIVE_INFINITY);au(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);au(this.left,r.reverse())}}};function au(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Nh(e){let t={},r=-1,n,o,i,s,a,l,u,c=new lu(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,sY(c,r)),r=t[r],u=!0);else if(n[1]._container){for(i=r,o=void 0;i--&&(s=c.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(o&&(c.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=i);o&&(n[1].end={...c.get(o)[1].start},a=c.slice(o,r),a.unshift(n),c.splice(o,r-o+1,a))}}return Ze(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function sY(e,t){let r=e.get(t)[1],n=e.get(t)[2],o=t-1,i=[],s=r._tokenizer||n.parser[r.contentType](r.start),a=s.events,l=[],u={},c,f,p=-1,h=r,m=0,d=0,g=[d];for(;h;){for(;e.get(++o)[1]!==h;);i.push(o),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),f&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=r;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(d=p+1,g.push(d),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){let y=a.slice(g[p],g[p+1]),S=i.pop();l.push([S,S+y.length-1]),e.splice(S,2,y)}for(l.reverse(),p=-1;++p<l.length;)u[m+l[p][0]]=m+l[p][1],m+=l[p][1]-l[p][0]-1;return u}var qy={resolve:lY,tokenize:uY},aY={partial:!0,tokenize:cY};function lY(e){return Nh(e),e}function uY(e,t){let r;return n;function n(a){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(a)}function o(a){return a===null?i(a):G(a)?e.check(aY,s,i)(a):(e.consume(a),o)}function i(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function cY(e,t,r){let n=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ie(e,i,"linePrefix")}function i(s){if(s===null||G(s))return r(s);let a=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function Lh(e,t,r,n,o,i,s,a,l){let u=l||Number.POSITIVE_INFINITY,c=0;return f;function f(y){return y===60?(e.enter(n),e.enter(o),e.enter(i),e.consume(y),e.exit(i),p):y===null||y===32||y===41||xi(y)?r(y):(e.enter(n),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),d(y))}function p(y){return y===62?(e.enter(i),e.consume(y),e.exit(i),e.exit(o),e.exit(n),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||G(y)?r(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function d(y){return!c&&(y===null||y===41||be(y))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(n),t(y)):c<u&&y===40?(e.consume(y),c++,d):y===41?(e.consume(y),c--,d):y===null||y===32||y===40||xi(y)?r(y):(e.consume(y),y===92?g:d)}function g(y){return y===40||y===41||y===92?(e.consume(y),d):d(y)}}function Rh(e,t,r,n,o,i){let s=this,a=0,l;return u;function u(h){return e.enter(n),e.enter(o),e.consume(h),e.exit(o),e.enter(i),c}function c(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?r(h):h===93?(e.exit(i),e.enter(o),e.consume(h),e.exit(o),e.exit(n),t):G(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||G(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!re(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function Bh(e,t,r,n,o,i){let s;return a;function a(p){return p===34||p===39||p===40?(e.enter(n),e.enter(o),e.consume(p),e.exit(o),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(o),e.consume(p),e.exit(o),e.exit(n),t):(e.enter(i),u(p))}function u(p){return p===s?(e.exit(i),l(s)):p===null?r(p):G(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ie(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||G(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===s||p===92?(e.consume(p),c):c(p)}}function Ti(e,t){let r;return n;function n(o){return G(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n):re(o)?ie(e,n,r?"linePrefix":"lineSuffix")(o):t(o)}}var Hy={name:"definition",tokenize:pY},fY={partial:!0,tokenize:hY};function pY(e,t,r){let n=this,o;return i;function i(h){return e.enter("definition"),s(h)}function s(h){return Rh.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return o=Ge(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return be(h)?Ti(e,u)(h):u(h)}function u(h){return Lh(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(fY,f,f)(h)}function f(h){return re(h)?ie(e,p,"whitespace")(h):p(h)}function p(h){return h===null||G(h)?(e.exit("definition"),n.parser.defined.push(o),t(h)):r(h)}}function hY(e,t,r){return n;function n(a){return be(a)?Ti(e,o)(a):r(a)}function o(a){return Bh(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return re(a)?ie(e,s,"whitespace")(a):s(a)}function s(a){return a===null||G(a)?t(a):r(a)}}var Wy={name:"hardBreakEscape",tokenize:mY};function mY(e,t,r){return n;function n(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return G(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}var Yy={name:"headingAtx",resolve:dY,tokenize:gY};function dY(e,t){let r=e.length-2,n=3,o,i;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(o={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},i={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Ze(e,n,r-n+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function gY(e,t,r){let n=0;return o;function o(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&n++<6?(e.consume(c),s):c===null||be(c)?(e.exit("atxHeadingSequence"),a(c)):r(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||G(c)?(e.exit("atxHeading"),t(c)):re(c)?ie(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||be(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}var x_=["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"],Vy=["pre","script","style","textarea"];var Gy={concrete:!0,name:"htmlFlow",resolveTo:bY,tokenize:wY},xY={partial:!0,tokenize:SY},yY={partial:!0,tokenize:vY};function bY(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function wY(e,t,r){let n=this,o,i,s,a,l;return u;function u(w){return c(w)}function c(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),f}function f(w){return w===33?(e.consume(w),p):w===47?(e.consume(w),i=!0,d):w===63?(e.consume(w),o=3,n.interrupt?t:x):ct(w)?(e.consume(w),s=String.fromCharCode(w),g):r(w)}function p(w){return w===45?(e.consume(w),o=2,h):w===91?(e.consume(w),o=5,a=0,m):ct(w)?(e.consume(w),o=4,n.interrupt?t:x):r(w)}function h(w){return w===45?(e.consume(w),n.interrupt?t:x):r(w)}function m(w){let he="CDATA[";return w===he.charCodeAt(a++)?(e.consume(w),a===he.length?n.interrupt?t:j:m):r(w)}function d(w){return ct(w)?(e.consume(w),s=String.fromCharCode(w),g):r(w)}function g(w){if(w===null||w===47||w===62||be(w)){let he=w===47,Se=s.toLowerCase();return!he&&!i&&Vy.includes(Se)?(o=1,n.interrupt?t(w):j(w)):x_.includes(s.toLowerCase())?(o=6,he?(e.consume(w),y):n.interrupt?t(w):j(w)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(w):i?S(w):k(w))}return w===45||Ve(w)?(e.consume(w),s+=String.fromCharCode(w),g):r(w)}function y(w){return w===62?(e.consume(w),n.interrupt?t:j):r(w)}function S(w){return re(w)?(e.consume(w),S):D(w)}function k(w){return w===47?(e.consume(w),D):w===58||w===95||ct(w)?(e.consume(w),N):re(w)?(e.consume(w),k):D(w)}function N(w){return w===45||w===46||w===58||w===95||Ve(w)?(e.consume(w),N):R(w)}function R(w){return w===61?(e.consume(w),T):re(w)?(e.consume(w),R):k(w)}function T(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(e.consume(w),l=w,$):re(w)?(e.consume(w),T):J(w)}function $(w){return w===l?(e.consume(w),l=null,H):w===null||G(w)?r(w):(e.consume(w),$)}function J(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||be(w)?R(w):(e.consume(w),J)}function H(w){return w===47||w===62||re(w)?k(w):r(w)}function D(w){return w===62?(e.consume(w),xe):r(w)}function xe(w){return w===null||G(w)?j(w):re(w)?(e.consume(w),xe):r(w)}function j(w){return w===45&&o===2?(e.consume(w),B):w===60&&o===1?(e.consume(w),Q):w===62&&o===4?(e.consume(w),ee):w===63&&o===3?(e.consume(w),x):w===93&&o===5?(e.consume(w),W):G(w)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(xY,se,O)(w)):w===null||G(w)?(e.exit("htmlFlowData"),O(w)):(e.consume(w),j)}function O(w){return e.check(yY,M,se)(w)}function M(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),P}function P(w){return w===null||G(w)?O(w):(e.enter("htmlFlowData"),j(w))}function B(w){return w===45?(e.consume(w),x):j(w)}function Q(w){return w===47?(e.consume(w),s="",F):j(w)}function F(w){if(w===62){let he=s.toLowerCase();return Vy.includes(he)?(e.consume(w),ee):j(w)}return ct(w)&&s.length<8?(e.consume(w),s+=String.fromCharCode(w),F):j(w)}function W(w){return w===93?(e.consume(w),x):j(w)}function x(w){return w===62?(e.consume(w),ee):w===45&&o===2?(e.consume(w),x):j(w)}function ee(w){return w===null||G(w)?(e.exit("htmlFlowData"),se(w)):(e.consume(w),ee)}function se(w){return e.exit("htmlFlow"),t(w)}}function vY(e,t,r){let n=this;return o;function o(s){return G(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):r(s)}function i(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function SY(e,t,r){return n;function n(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(un,t,r)}}var Qy={name:"htmlText",tokenize:kY};function kY(e,t,r){let n=this,o,i,s;return a;function a(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),l}function l(x){return x===33?(e.consume(x),u):x===47?(e.consume(x),R):x===63?(e.consume(x),k):ct(x)?(e.consume(x),J):r(x)}function u(x){return x===45?(e.consume(x),c):x===91?(e.consume(x),i=0,m):ct(x)?(e.consume(x),S):r(x)}function c(x){return x===45?(e.consume(x),h):r(x)}function f(x){return x===null?r(x):x===45?(e.consume(x),p):G(x)?(s=f,Q(x)):(e.consume(x),f)}function p(x){return x===45?(e.consume(x),h):f(x)}function h(x){return x===62?B(x):x===45?p(x):f(x)}function m(x){let ee="CDATA[";return x===ee.charCodeAt(i++)?(e.consume(x),i===ee.length?d:m):r(x)}function d(x){return x===null?r(x):x===93?(e.consume(x),g):G(x)?(s=d,Q(x)):(e.consume(x),d)}function g(x){return x===93?(e.consume(x),y):d(x)}function y(x){return x===62?B(x):x===93?(e.consume(x),y):d(x)}function S(x){return x===null||x===62?B(x):G(x)?(s=S,Q(x)):(e.consume(x),S)}function k(x){return x===null?r(x):x===63?(e.consume(x),N):G(x)?(s=k,Q(x)):(e.consume(x),k)}function N(x){return x===62?B(x):k(x)}function R(x){return ct(x)?(e.consume(x),T):r(x)}function T(x){return x===45||Ve(x)?(e.consume(x),T):$(x)}function $(x){return G(x)?(s=$,Q(x)):re(x)?(e.consume(x),$):B(x)}function J(x){return x===45||Ve(x)?(e.consume(x),J):x===47||x===62||be(x)?H(x):r(x)}function H(x){return x===47?(e.consume(x),B):x===58||x===95||ct(x)?(e.consume(x),D):G(x)?(s=H,Q(x)):re(x)?(e.consume(x),H):B(x)}function D(x){return x===45||x===46||x===58||x===95||Ve(x)?(e.consume(x),D):xe(x)}function xe(x){return x===61?(e.consume(x),j):G(x)?(s=xe,Q(x)):re(x)?(e.consume(x),xe):H(x)}function j(x){return x===null||x===60||x===61||x===62||x===96?r(x):x===34||x===39?(e.consume(x),o=x,O):G(x)?(s=j,Q(x)):re(x)?(e.consume(x),j):(e.consume(x),M)}function O(x){return x===o?(e.consume(x),o=void 0,P):x===null?r(x):G(x)?(s=O,Q(x)):(e.consume(x),O)}function M(x){return x===null||x===34||x===39||x===60||x===61||x===96?r(x):x===47||x===62||be(x)?H(x):(e.consume(x),M)}function P(x){return x===47||x===62||be(x)?H(x):r(x)}function B(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),t):r(x)}function Q(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),F}function F(x){return re(x)?ie(e,W,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):W(x)}function W(x){return e.enter("htmlTextData"),s(x)}}var Ei={name:"labelEnd",resolveAll:DY,resolveTo:CY,tokenize:OY},TY={tokenize:MY},EY={tokenize:_Y},AY={tokenize:IY};function DY(e){let t=-1,r=[];for(;++t<e.length;){let n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let o=n.type==="labelImage"?4:2;n.type="data",t+=o}}return e.length!==r.length&&Ze(e,0,e.length,r),e}function CY(e,t){let r=e.length,n=0,o,i,s,a;for(;r--;)if(o=e[r][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=r,o.type!=="labelLink")){n=2;break}}else o.type==="labelEnd"&&(s=r);let l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[i+n+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=ot(a,e.slice(i+1,i+n+3)),a=ot(a,[["enter",c,t]]),a=ot(a,go(t.parser.constructs.insideSpan.null,e.slice(i+n+4,s-3),t)),a=ot(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=ot(a,e.slice(s+1)),a=ot(a,[["exit",l,t]]),Ze(e,i,e.length,a),e}function OY(e,t,r){let n=this,o=n.events.length,i,s;for(;o--;)if((n.events[o][1].type==="labelImage"||n.events[o][1].type==="labelLink")&&!n.events[o][1]._balanced){i=n.events[o][1];break}return a;function a(p){return i?i._inactive?f(p):(s=n.parser.defined.includes(Ge(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):r(p)}function l(p){return p===40?e.attempt(TY,c,s?c:f)(p):p===91?e.attempt(EY,c,s?u:f)(p):s?c(p):f(p)}function u(p){return e.attempt(AY,c,f)(p)}function c(p){return t(p)}function f(p){return i._balanced=!0,r(p)}}function MY(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),o}function o(f){return be(f)?Ti(e,i)(f):i(f)}function i(f){return f===41?c(f):Lh(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return be(f)?Ti(e,l)(f):c(f)}function a(f){return r(f)}function l(f){return f===34||f===39||f===40?Bh(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return be(f)?Ti(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function _Y(e,t,r){let n=this;return o;function o(a){return Rh.call(n,e,i,s,"reference","referenceMarker","referenceString")(a)}function i(a){return n.parser.defined.includes(Ge(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(a):r(a)}function s(a){return r(a)}}function IY(e,t,r){return n;function n(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):r(i)}}var Jy={name:"labelStartImage",resolveAll:Ei.resolveAll,tokenize:PY};function PY(e,t,r){let n=this;return o;function o(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):r(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):t(a)}}var Xy={name:"labelStartLink",resolveAll:Ei.resolveAll,tokenize:FY};function FY(e,t,r){let n=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}var uu={name:"lineEnding",tokenize:NY};function NY(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ie(e,t,"linePrefix")}}var Ai={name:"thematicBreak",tokenize:LY};function LY(e,t,r){let n=0,o;return i;function i(u){return e.enter("thematicBreak"),s(u)}function s(u){return o=u,a(u)}function a(u){return u===o?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||G(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===o?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),re(u)?ie(e,a,"whitespace")(u):a(u))}}var It={continuation:{tokenize:UY},exit:jY,name:"list",tokenize:$Y},RY={partial:!0,tokenize:qY},BY={partial:!0,tokenize:zY};function $Y(e,t,r){let n=this,o=n.events[n.events.length-1],i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return a;function a(h){let m=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:tu(h)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Ai,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return tu(h)&&++s<10?(e.consume(h),l):(!n.interrupt||s<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(un,n.interrupt?r:c,e.attempt(RY,p,f))}function c(h){return n.containerState.initialBlankLine=!0,i++,p(h)}function f(h){return re(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):r(h)}function p(h){return n.containerState.size=i+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function UY(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(un,o,i);function o(a){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ie(e,t,"listItemIndent",n.containerState.size+1)(a)}function i(a){return n.containerState.furtherBlankLines||!re(a)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(a)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(BY,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,ie(e,e.attempt(It,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function zY(e,t,r){let n=this;return ie(e,o,"listItemIndent",n.containerState.size+1);function o(i){let s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(i):r(i)}}function jY(e){e.exit(this.containerState.type)}function qY(e,t,r){let n=this;return ie(e,o,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){let s=n.events[n.events.length-1];return!re(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):r(i)}}var $h={name:"setextUnderline",resolveTo:HY,tokenize:WY};function HY(e,t){let r=e.length,n,o,i;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!i&&e[r][1].type==="definition"&&(i=r);let s={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function WY(e,t,r){let n=this,o;return i;function i(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),o=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===o?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),re(u)?ie(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||G(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}var YY={tokenize:KY,partial:!0};function Zy(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:JY,continuation:{tokenize:XY},exit:ZY}},text:{91:{name:"gfmFootnoteCall",tokenize:QY},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:VY,resolveTo:GY}}}}function VY(e,t,r){let n=this,o=n.events.length,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s;for(;o--;){let l=n.events[o][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return r(l);let u=Ge(n.sliceSerialize({start:s.end,end:n.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function GY(e,t){let r=e.length,n;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let o={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[r+1],e[r+2],["enter",o,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(r,e.length-r+1,...l),e}function QY(e,t,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),i=0,s;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(i>999||f===93&&!s||f===null||f===91||be(f))return r(f);if(f===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return o.includes(Ge(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return be(f)||(s=!0),i++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),i++,u):u(f)}}function JY(e,t,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),i,s=0,a;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(m)}function c(m){if(s>999||m===93&&!a||m===null||m===91||be(m))return r(m);if(m===93){e.exit("chunkString");let d=e.exit("gfmFootnoteDefinitionLabelString");return i=Ge(n.sliceSerialize(d)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return be(m)||(a=!0),s++,e.consume(m),m===92?f:c}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),o.includes(i)||o.push(i),ie(e,h,"gfmFootnoteDefinitionWhitespace")):r(m)}function h(m){return t(m)}}function XY(e,t,r){return e.check(un,t,e.attempt(YY,t,r))}function ZY(e){e.exit("gfmFootnoteDefinition")}function KY(e,t,r){let n=this;return ie(e,o,"gfmFootnoteDefinitionIndent",5);function o(i){let s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):r(i)}}var e8={}.hasOwnProperty,t8={};function y_(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ky(e){let t=e||t8,r=t.label||"Footnotes",n=t.labelTagName||"h2",o=t.labelAttributes===null||t.labelAttributes===void 0?'class="sr-only"':t.labelAttributes,i=t.backLabel||y_,s=t.clobberPrefix===null||t.clobberPrefix===void 0?"user-content-":t.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData("tightStack").push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let a=this.getData("gfmFootnoteDefinitions"),l=this.getData("gfmFootnoteDefinitionStack"),u=this.getData("tightStack"),c=l.pop(),f=this.resume();a||this.setData("gfmFootnoteDefinitions",a={}),e8.call(a,c)||(a[c]=f),u.pop(),this.setData("slurpOneLineEnding",!0),this.setData("lastWasTag")},gfmFootnoteDefinitionLabelString(a){let l=this.getData("gfmFootnoteDefinitionStack");l||this.setData("gfmFootnoteDefinitionStack",l=[]),l.push(Ge(this.sliceSerialize(a))),this.resume(),this.buffer()},gfmFootnoteCallString(a){let l=this.getData("gfmFootnoteCallOrder"),u=this.getData("gfmFootnoteCallCounts"),c=Ge(this.sliceSerialize(a)),f;this.resume(),l||this.setData("gfmFootnoteCallOrder",l=[]),u||this.setData("gfmFootnoteCallCounts",u={});let p=l.indexOf(c),h=ln(c.toLowerCase());p===-1?(l.push(c),u[c]=1,f=l.length):(u[c]++,f=p+1);let m=u[c];this.tag('<sup><a href="#'+s+"fn-"+h+'" id="'+s+"fnref-"+h+(m>1?"-"+m:"")+'" data-footnote-ref="" aria-describedby="footnote-label">'+String(f)+"</a></sup>")},null(){let a=this.getData("gfmFootnoteCallOrder")||[],l=this.getData("gfmFootnoteCallCounts")||{},u=this.getData("gfmFootnoteDefinitions")||{},c=-1;for(a.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>"));++c<a.length;){let f=a[c],p=ln(f.toLowerCase()),h=0,m=[];for(;++h<=l[f];)m.push('<a href="#'+s+"fnref-"+p+(h>1?"-"+h:"")+'" data-footnote-backref="" aria-label="'+this.encode(typeof i=="string"?i:i(c,h))+'" class="data-footnote-backref">\u21A9'+(h>1?"<sup>"+h+"</sup>":"")+"</a>");let d=m.join(" "),g=!1;this.lineEndingIfNeeded(),this.tag('<li id="'+s+"fn-"+p+'">'),this.lineEndingIfNeeded(),this.tag(u[f].replace(/<\/p>(?:\r?\n|\r)?$/,function(y){return g=!0," "+d+y})),g||(this.lineEndingIfNeeded(),this.tag(d)),this.lineEndingIfNeeded(),this.tag("</li>")}a.length>0&&(this.lineEndingIfNeeded(),this.tag("</ol>"),this.lineEndingIfNeeded(),this.tag("</section>"))}}}}function eb(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}function tb(e){let r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:i,resolveAll:o};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function o(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",c,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",f,a]],h=a.parser.constructs.insideSpan.null;h&&Ze(p,p.length,0,go(h,s.slice(u+1,l),a)),Ze(p,p.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),Ze(s,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,a,l){let u=this.previous,c=this.events,f=0;return p;function p(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(m):(s.enter("strikethroughSequenceTemporary"),h(m))}function h(m){let d=On(u);if(m===126)return f>1?l(m):(s.consume(m),f++,h);if(f<2&&!r)return l(m);let g=s.exit("strikethroughSequenceTemporary"),y=On(m);return g._open=!y||y===2&&!!d,g._close=!d||d===2&&!!y,a(m)}}}var rb={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function nb(){return{enter:{table(e){let t=e._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",t)},tableBody(){this.tag("<tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=rb[e[t]];r===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+r+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){let e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=rb[e[t]];this.lineEndingIfNeeded(),this.tag("<th"+r+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(e){let t=this.sliceSerialize(e);this.getData("tableAlign")&&(t=t.replace(/\\([\\|])/g,r8)),this.raw(this.encode(t))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");t in e?(this.tag("</td>"),this.setData("tableColumn",t+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){let e=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",e+1)},tableRow(){let e=this.getData("tableAlign"),t=this.getData("tableColumn");for(;t<e.length;)this.lineEndingIfNeeded(),this.tag("<td"+rb[e[t]]+"></td>"),t++;this.setData("tableColumn",t),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}function r8(e,t){return t==="|"?t:e}var Uh=class{constructor(){this.map=[]}add(t,r,n){n8(this,t,r,n)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let r=this.map.length,n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push([...t]),t.length=0;let o=n.pop();for(;o;)t.push(...o),o=n.pop();this.map.length=0}};function n8(e,t,r,n){let o=0;if(!(r===0&&n.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=r,e.map[o][2].push(...n);return}o+=1}e.map.push([t,r,n])}}function b_(e,t){let r=!1,n=[];for(;t<e.length;){let o=e[t];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let i=n.length-1;n[i]=n[i]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function ob(){return{flow:{null:{name:"table",tokenize:o8,resolveAll:i8}}}}function o8(e,t,r){let n=this,o=0,i=0,s;return a;function a(D){let xe=n.events.length-1;for(;xe>-1;){let M=n.events[xe][1].type;if(M==="lineEnding"||M==="linePrefix")xe--;else break}let j=xe>-1?n.events[xe][1].type:null,O=j==="tableHead"||j==="tableRow"?T:l;return O===T&&n.parser.lazy[n.now().line]?r(D):O(D)}function l(D){return e.enter("tableHead"),e.enter("tableRow"),u(D)}function u(D){return D===124||(s=!0,i+=1),c(D)}function c(D){return D===null?r(D):G(D)?i>1?(i=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),h):r(D):re(D)?ie(e,c,"whitespace")(D):(i+=1,s&&(s=!1,o+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(D)))}function f(D){return D===null||D===124||be(D)?(e.exit("data"),c(D)):(e.consume(D),D===92?p:f)}function p(D){return D===92||D===124?(e.consume(D),f):f(D)}function h(D){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(D):(e.enter("tableDelimiterRow"),s=!1,re(D)?ie(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):m(D))}function m(D){return D===45||D===58?g(D):D===124?(s=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),d):R(D)}function d(D){return re(D)?ie(e,g,"whitespace")(D):g(D)}function g(D){return D===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),y):D===45?(i+=1,y(D)):D===null||G(D)?N(D):R(D)}function y(D){return D===45?(e.enter("tableDelimiterFiller"),S(D)):R(D)}function S(D){return D===45?(e.consume(D),S):D===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(D))}function k(D){return re(D)?ie(e,N,"whitespace")(D):N(D)}function N(D){return D===124?m(D):D===null||G(D)?!s||o!==i?R(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):R(D)}function R(D){return r(D)}function T(D){return e.enter("tableRow"),$(D)}function $(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),$):D===null||G(D)?(e.exit("tableRow"),t(D)):re(D)?ie(e,$,"whitespace")(D):(e.enter("data"),J(D))}function J(D){return D===null||D===124||be(D)?(e.exit("data"),$(D)):(e.consume(D),D===92?H:J)}function H(D){return D===92||D===124?(e.consume(D),J):J(D)}}function i8(e,t){let r=-1,n=!0,o=0,i=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,c,f,p=new Uh;for(;++r<e.length;){let h=e[r],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,l!==0&&(w_(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,f=void 0,i=[0,0,0,0],s=[0,r+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(r,0,[["enter",c,t]])),o=m.type==="tableDelimiterRow"?2:c?3:1):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],f=zh(p,t,i,o,void 0,f),i=[0,0,0,0]),s[2]=r)):m.type==="tableCellDivider"&&(n?n=!1:(i[1]!==0&&(s[0]=s[1],f=zh(p,t,i,o,void 0,f)),i=s,s=[i[1],r,0,0])):m.type==="tableHead"?(a=!0,l=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=r,i[1]!==0?(s[0]=s[1],f=zh(p,t,i,o,r,f)):s[1]!==0&&(f=zh(p,t,s,o,r,f)),o=0):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&w_(p,t,l,u,c),p.consume(t.events),r=-1;++r<t.events.length;){let h=t.events[r];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=b_(t.events,r))}return e}function zh(e,t,r,n,o,i){let s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",a="tableContent";r[0]!==0&&(i.end=Object.assign({},ha(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));let l=ha(t.events,r[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",i,t]]),r[2]!==0){let u=ha(t.events,r[2]),c=ha(t.events,r[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",f,t]]),n!==2){let p=t.events[r[2]],h=t.events[r[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){let m=r[2]+1,d=r[3]-r[2]-1;e.add(m,d,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return o!==void 0&&(i.end=Object.assign({},ha(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function w_(e,t,r,n,o){let i=[],s=ha(t.events,r);o&&(o.end=Object.assign({},s),i.push(["exit",o,t])),n.end=Object.assign({},s),i.push(["exit",n,t]),e.add(r+1,0,i)}function ha(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var v_=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,s8=new RegExp("^"+v_.source,"i");function ib(){return{exit:{htmlFlowData(e){S_.call(this,e,v_)},htmlTextData(e){S_.call(this,e,s8)}}}}function S_(e,t){let r=this.sliceSerialize(e);this.options.allowDangerousHtml&&(r=r.replace(t,"<$1$2")),this.raw(this.encode(r))}function sb(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}var a8={name:"tasklistCheck",tokenize:l8};function ab(){return{text:{91:a8}}}function l8(e,t,r){let n=this;return o;function o(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return be(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):r(l)}function a(l){return G(l)?t(l):re(l)?e.check({tokenize:u8},t,r)(l):r(l)}}function u8(e,t,r){return ie(e,n,"whitespace");function n(o){return o===null?r(o):t(o)}}function k_(e){return Ch([By(),Zy(),tb(e),ob(),ab()])}function Wze(e){return Oh([Uy(),Ky(e),eb(),nb(),ib(),sb()])}var c8={};function ma(e){let t=this,r=e||c8,n=t.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(k_(r)),i.push(Py()),s.push(Fy(r))}var T_={}.hasOwnProperty,E_=/^(https?|ircs?|mailto|xmpp)$/i,f8=/^https?$/i;function lb(e){let t=e||{},r=!0,n={},o=[[]],i=[],s=[],l=Oh([{enter:{blockQuote:P,codeFenced:W,codeFencedFenceInfo:g,codeFencedFenceMeta:g,codeIndented:se,codeText:Rt,content:Pr,definition:Ae,definitionDestinationString:Ht,definitionLabelString:g,definitionTitleString:g,emphasis:_o,htmlFlow:tr,htmlText:fr,image:he,label:g,link:Se,listItemMarker:xe,listItemValue:D,listOrdered:J,listUnordered:H,paragraph:Q,reference:g,resource:E,resourceDestinationString:C,resourceTitleString:g,setextHeading:cr,strong:Io},exit:{atxHeading:ze,atxHeadingSequence:er,autolinkEmail:pF,autolinkProtocol:fF,blockQuote:B,characterEscapeValue:q,characterReferenceMarkerHexadecimal:lw,characterReferenceMarkerNumeric:lw,characterReferenceValue:cF,codeFenced:w,codeFencedFence:ee,codeFencedFenceInfo:x,codeFencedFenceMeta:$,codeFlowValue:me,codeIndented:w,codeText:Rn,codeTextData:q,data:q,definition:Tr,definitionDestinationString:ft,definitionLabelString:De,definitionTitleString:Lt,emphasis:Er,hardBreakEscape:Ce,hardBreakTrailing:Ce,htmlFlow:Nr,htmlFlowData:q,htmlText:Nr,htmlTextData:q,image:ke,label:A,labelText:Re,lineEnding:ae,link:ke,listOrdered:j,listUnordered:O,paragraph:F,reference:$,referenceString:v,resource:$,resourceDestinationString:I,resourceTitleString:Z,setextHeading:_,setextHeadingLineSequence:Fr,setextHeadingText:Wt,strong:lF,thematicBreak:uF}},...t.htmlExtensions||[]]),u={definitions:n,tightStack:s},c={buffer:g,encode:T,getData:d,lineEndingIfNeeded:R,options:t,raw:k,resume:y,setData:m,tag:S},f=t.defaultLineEnding;return p;function p(Y){let oe=-1,vt=0,Ar=[],Lr=[],dn=[];for(;++oe<Y.length;)!f&&(Y[oe][1].type==="lineEnding"||Y[oe][1].type==="lineEndingBlank")&&(f=Y[oe][2].sliceSerialize(Y[oe][1])),(Y[oe][1].type==="listOrdered"||Y[oe][1].type==="listUnordered")&&(Y[oe][0]==="enter"?Ar.push(oe):h(Y.slice(Ar.pop(),oe))),Y[oe][1].type==="definition"&&(Y[oe][0]==="enter"?(dn=ot(dn,Y.slice(vt,oe)),vt=oe):(Lr=ot(Lr,Y.slice(vt,oe+1)),vt=oe+1));Lr=ot(Lr,dn),Lr=ot(Lr,Y.slice(vt)),oe=-1;let Rr=Lr;for(l.enter.null&&l.enter.null.call(c);++oe<Y.length;){let uw=l[Rr[oe][0]],cw=Rr[oe][1].type,fw=uw[cw];T_.call(uw,cw)&&fw&&fw.call({sliceSerialize:Rr[oe][2].sliceSerialize,...c},Rr[oe][1])}return l.exit.null&&l.exit.null.call(c),o[0].join("")}function h(Y){let oe=Y.length,vt=0,Ar=0,Lr=!1,dn;for(;++vt<oe;){let Rr=Y[vt];if(Rr[1]._container)dn=void 0,Rr[0]==="enter"?Ar++:Ar--;else switch(Rr[1].type){case"listItemPrefix":{Rr[0]==="exit"&&(dn=!0);break}case"linePrefix":break;case"lineEndingBlank":{Rr[0]==="enter"&&!Ar&&(dn?dn=void 0:Lr=!0);break}default:dn=void 0}}Y[0][1]._loose=Lr}function m(Y,oe){u[Y]=oe}function d(Y){return u[Y]}function g(){o.push([])}function y(){return o.pop().join("")}function S(Y){r&&(m("lastWasTag",!0),o[o.length-1].push(Y))}function k(Y){m("lastWasTag"),o[o.length-1].push(Y)}function N(){k(f||`
|
|
87
|
-
`)}function R(){let Y=o[o.length-1],oe=Y[Y.length-1],vt=oe?oe.charCodeAt(oe.length-1):null;vt===10||vt===13||vt===null||N()}function T(Y){return d("ignoreEncode")?Y:Mh(Y)}function $(){y()}function J(Y){s.push(!Y._loose),R(),S("<ol"),m("expectFirstItem",!0)}function H(Y){s.push(!Y._loose),R(),S("<ul"),m("expectFirstItem",!0)}function D(Y){if(d("expectFirstItem")){let oe=Number.parseInt(this.sliceSerialize(Y),10);oe!==1&&S(' start="'+T(String(oe))+'"')}}function xe(){d("expectFirstItem")?S(">"):M(),R(),S("<li>"),m("expectFirstItem"),m("lastWasTag")}function j(){M(),s.pop(),N(),S("</ol>")}function O(){M(),s.pop(),N(),S("</ul>")}function M(){d("lastWasTag")&&!d("slurpAllLineEndings")&&R(),S("</li>"),m("slurpAllLineEndings")}function P(){s.push(!1),R(),S("<blockquote>")}function B(){s.pop(),R(),S("</blockquote>"),m("slurpAllLineEndings")}function Q(){s[s.length-1]||(R(),S("<p>")),m("slurpAllLineEndings")}function F(){s[s.length-1]?m("slurpAllLineEndings",!0):S("</p>")}function W(){R(),S("<pre><code"),m("fencesCount",0)}function x(){let Y=y();S(' class="language-'+Y+'"')}function ee(){let Y=d("fencesCount")||0;Y||(S(">"),m("slurpOneLineEnding",!0)),m("fencesCount",Y+1)}function se(){R(),S("<pre><code>")}function w(){let Y=d("fencesCount");Y!==void 0&&Y<2&&u.tightStack.length>0&&!d("lastWasTag")&&N(),d("flowCodeSeenData")&&R(),S("</code></pre>"),Y!==void 0&&Y<2&&R(),m("flowCodeSeenData"),m("fencesCount"),m("slurpOneLineEnding")}function he(){i.push({image:!0}),r=void 0}function Se(){i.push({})}function Re(Y){i[i.length-1].labelId=this.sliceSerialize(Y)}function A(){i[i.length-1].label=y()}function v(Y){i[i.length-1].referenceId=this.sliceSerialize(Y)}function E(){g(),i[i.length-1].destination=""}function C(){g(),m("ignoreEncode",!0)}function I(){i[i.length-1].destination=y(),m("ignoreEncode")}function Z(){i[i.length-1].title=y()}function ke(){let Y=i.length-1,oe=i[Y],vt=oe.referenceId||oe.labelId,Ar=oe.destination===void 0?n[Ge(vt)]:oe;for(r=!0;Y--;)if(i[Y].image){r=void 0;break}oe.image?(S('<img src="'+ln(Ar.destination,t.allowDangerousProtocol?void 0:f8)+'" alt="'),k(oe.label),S('"')):S('<a href="'+ln(Ar.destination,t.allowDangerousProtocol?void 0:E_)+'"'),S(Ar.title?' title="'+Ar.title+'"':""),oe.image?S(" />"):(S(">"),k(oe.label),S("</a>")),i.pop()}function Ae(){g(),i.push({})}function De(Y){y(),i[i.length-1].labelId=this.sliceSerialize(Y)}function Ht(){g(),m("ignoreEncode",!0)}function ft(){i[i.length-1].destination=y(),m("ignoreEncode")}function Lt(){i[i.length-1].title=y()}function Tr(){let Y=i[i.length-1],oe=Ge(Y.labelId);y(),T_.call(n,oe)||(n[oe]=i[i.length-1]),i.pop()}function Pr(){m("slurpAllLineEndings",!0)}function er(Y){d("headingRank")||(m("headingRank",this.sliceSerialize(Y).length),R(),S("<h"+d("headingRank")+">"))}function cr(){g(),m("slurpAllLineEndings")}function Wt(){m("slurpAllLineEndings",!0)}function ze(){S("</h"+d("headingRank")+">"),m("headingRank")}function Fr(Y){m("headingRank",this.sliceSerialize(Y).charCodeAt(0)===61?1:2)}function _(){let Y=y();R(),S("<h"+d("headingRank")+">"),k(Y),S("</h"+d("headingRank")+">"),m("slurpAllLineEndings"),m("headingRank")}function q(Y){k(T(this.sliceSerialize(Y)))}function ae(Y){if(!d("slurpAllLineEndings")){if(d("slurpOneLineEnding")){m("slurpOneLineEnding");return}if(d("inCodeText")){k(" ");return}k(T(this.sliceSerialize(Y)))}}function me(Y){k(T(this.sliceSerialize(Y))),m("flowCodeSeenData",!0)}function Ce(){S("<br />")}function tr(){R(),fr()}function Nr(){m("ignoreEncode")}function fr(){t.allowDangerousHtml&&m("ignoreEncode",!0)}function _o(){S("<em>")}function Io(){S("<strong>")}function Rt(){m("inCodeText",!0),S("<code>")}function Rn(){m("inCodeText"),S("</code>")}function Er(){S("</em>")}function lF(){S("</strong>")}function uF(){R(),S("<hr />")}function lw(Y){m("characterReferenceType",Y.type)}function cF(Y){let oe=this.sliceSerialize(Y),vt=d("characterReferenceType")?pa(oe,d("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):mo(oe);k(T(vt)),m("characterReferenceType")}function fF(Y){let oe=this.sliceSerialize(Y);S('<a href="'+ln(oe,t.allowDangerousProtocol?void 0:E_)+'">'),k(T(oe)),S("</a>")}function pF(Y){let oe=this.sliceSerialize(Y);S('<a href="'+ln("mailto:"+oe)+'">'),k(T(oe)),S("</a>")}}var A_={tokenize:p8};function p8(e){let t=e.attempt(this.parser.constructs.contentInitial,n,o),r;return t;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ie(e,t,"linePrefix")}function o(a){return e.enter("paragraph"),i(a)}function i(a){let l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return G(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),s)}}var C_={tokenize:h8},D_={tokenize:m8};function h8(e){let t=this,r=[],n=0,o,i,s;return a;function a(k){if(n<r.length){let N=r[n];return t.containerState=N[1],e.attempt(N[0].continuation,l,u)(k)}return u(k)}function l(k){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&S();let N=t.events.length,R=N,T;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){T=t.events[R][1].end;break}y(n);let $=N;for(;$<t.events.length;)t.events[$][1].end={...T},$++;return Ze(t.events,R+1,0,t.events.slice(N)),t.events.length=$,u(k)}return a(k)}function u(k){if(n===r.length){if(!o)return p(k);if(o.currentConstruct&&o.currentConstruct.concrete)return m(k);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(D_,c,f)(k)}function c(k){return o&&S(),y(n),p(k)}function f(k){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,m(k)}function p(k){return t.containerState={},e.attempt(D_,h,m)(k)}function h(k){return n++,r.push([t.currentConstruct,t.containerState]),p(k)}function m(k){if(k===null){o&&S(),y(0),e.consume(k);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),d(k)}function d(k){if(k===null){g(e.exit("chunkFlow"),!0),y(0),e.consume(k);return}return G(k)?(e.consume(k),g(e.exit("chunkFlow")),n=0,t.interrupt=void 0,a):(e.consume(k),d)}function g(k,N){let R=t.sliceStream(k);if(N&&R.push(null),k.previous=i,i&&(i.next=k),i=k,o.defineSkip(k.start),o.write(R),t.parser.lazy[k.start.line]){let T=o.events.length;for(;T--;)if(o.events[T][1].start.offset<s&&(!o.events[T][1].end||o.events[T][1].end.offset>s))return;let $=t.events.length,J=$,H,D;for(;J--;)if(t.events[J][0]==="exit"&&t.events[J][1].type==="chunkFlow"){if(H){D=t.events[J][1].end;break}H=!0}for(y(n),T=$;T<t.events.length;)t.events[T][1].end={...D},T++;Ze(t.events,J+1,0,t.events.slice($)),t.events.length=T}}function y(k){let N=r.length;for(;N-- >k;){let R=r[N];t.containerState=R[1],R[0].exit.call(t,e)}r.length=k}function S(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function m8(e,t,r){return ie(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var O_={tokenize:d8};function d8(e){let t=this,r=e.attempt(un,n,e.attempt(this.parser.constructs.flowInitial,o,ie(e,e.attempt(this.parser.constructs.flow,o,e.attempt(qy,o)),"linePrefix")));return r;function n(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var I_={resolveAll:__()},P_=M_("string"),F_=M_("text");function M_(e){return{resolveAll:__(e==="text"?g8:void 0),tokenize:t};function t(r){let n=this,o=this.parser.constructs[e],i=r.attempt(o,s,a);return s;function s(c){return u(c)?i(c):a(c)}function a(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),i(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;let f=o[c],p=-1;if(f)for(;++p<f.length;){let h=f[p];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function __(e){return t;function t(r,n){let o=-1,i;for(;++o<=r.length;)i===void 0?r[o]&&r[o][1].type==="data"&&(i=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==i+2&&(r[i][1].end=r[o-1][1].end,r.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(r,n):r}}function g8(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){let n=e[r-1][1],o=t.sliceStream(n),i=o.length,s=-1,a=0,l;for(;i--;){let u=o[i];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){i++;break}}if(a){let u={type:r===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:n.start._bufferIndex+s,_index:n.start._index+i,line:n.end.line,column:n.end.column-a,offset:n.end.offset-a},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}var ub={};te(ub,{attentionMarkers:()=>T8,contentInitial:()=>y8,disable:()=>E8,document:()=>x8,flow:()=>w8,flowInitial:()=>b8,insideSpan:()=>k8,string:()=>v8,text:()=>S8});var x8={42:It,43:It,45:It,48:It,49:It,50:It,51:It,52:It,53:It,54:It,55:It,56:It,57:It,62:_h},y8={91:Hy},b8={[-2]:su,[-1]:su,32:su},w8={35:Yy,42:Ai,45:[$h,Ai],60:Gy,61:$h,95:Ai,96:Fh,126:Fh},v8={38:Ph,92:Ih},S8={[-5]:uu,[-4]:uu,[-3]:uu,33:Jy,38:Ph,42:iu,60:[zy,Qy],91:Xy,92:[Wy,Ih],93:Ei,95:iu,96:jy},k8={null:[iu,I_]},T8={null:[42,95]},E8={null:[]};function N_(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},o={},i=[],s=[],a=[],l=!0,u={attempt:H($),check:H(J),consume:N,enter:R,exit:T,interrupt:H(J,{interrupt:!0})},c={code:null,containerState:{},defineSkip:y,events:[],now:g,parser:e,previous:null,sliceSerialize:m,sliceStream:d,write:h},f=t.tokenize.call(c,u),p;return t.resolveAll&&i.push(t),c;function h(O){return s=ot(s,O),S(),s[s.length-1]!==null?[]:(D(t,0),c.events=go(i,c.events,c),c.events)}function m(O,M){return D8(d(O),M)}function d(O){return A8(s,O)}function g(){let{_bufferIndex:O,_index:M,line:P,column:B,offset:Q}=n;return{_bufferIndex:O,_index:M,line:P,column:B,offset:Q}}function y(O){o[O.line]=O.column,j()}function S(){let O;for(;n._index<s.length;){let M=s[n._index];if(typeof M=="string")for(O=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===O&&n._bufferIndex<M.length;)k(M.charCodeAt(n._bufferIndex));else k(M)}}function k(O){l=void 0,p=O,f=f(O)}function N(O){G(O)?(n.line++,n.column=1,n.offset+=O===-3?2:1,j()):O!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=O,l=!0}function R(O,M){let P=M||{};return P.type=O,P.start=g(),c.events.push(["enter",P,c]),a.push(P),P}function T(O){let M=a.pop();return M.end=g(),c.events.push(["exit",M,c]),M}function $(O,M){D(O,M.from)}function J(O,M){M.restore()}function H(O,M){return P;function P(B,Q,F){let W,x,ee,se;return Array.isArray(B)?he(B):"tokenize"in B?he([B]):w(B);function w(v){return E;function E(C){let I=C!==null&&v[C],Z=C!==null&&v.null,ke=[...Array.isArray(I)?I:I?[I]:[],...Array.isArray(Z)?Z:Z?[Z]:[]];return he(ke)(C)}}function he(v){return W=v,x=0,v.length===0?F:Se(v[x])}function Se(v){return E;function E(C){return se=xe(),ee=v,v.partial||(c.currentConstruct=v),v.name&&c.parser.constructs.disable.null.includes(v.name)?A(C):v.tokenize.call(M?Object.assign(Object.create(c),M):c,u,Re,A)(C)}}function Re(v){return l=!0,O(ee,se),Q}function A(v){return l=!0,se.restore(),++x<W.length?Se(W[x]):F}}}function D(O,M){O.resolveAll&&!i.includes(O)&&i.push(O),O.resolve&&Ze(c.events,M,c.events.length-M,O.resolve(c.events.slice(M),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function xe(){let O=g(),M=c.previous,P=c.currentConstruct,B=c.events.length,Q=Array.from(a);return{from:B,restore:F};function F(){n=O,c.previous=M,c.currentConstruct=P,c.events.length=B,a=Q,j()}}function j(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}}function A8(e,t){let r=t.start._index,n=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex,s;if(r===o)s=[e[r].slice(n,i)];else{if(s=e.slice(r,o),n>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(n):s.shift()}i>0&&s.push(e[o].slice(0,i))}return s}function D8(e,t){let r=-1,n=[],o;for(;++r<e.length;){let i=e[r],s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
88
|
-
`;break}case-3:{
|
|
89
|
-
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&o)continue;s=" ";break}default:s=String.fromCharCode(i)}o=i===-2,n.push(s)}return n.join("")}function cu(e){let n={constructs:Ch([ub,...(e||{}).extensions||[]]),content:o(A_),defined:[],document:o(C_),flow:o(O_),lazy:{},string:o(P_),text:o(F_)};return n;function o(i){return s;function s(a){return N_(n,i,a)}}}function fu(e){for(;!Nh(e););return e}var L_=/[\0\t\n\r]/g;function pu(){let e=1,t="",r=!0,n;return o;function o(i,s,a){let l=[],u,c,f,p,h;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t="",r&&(i.charCodeAt(0)===65279&&f++,r=void 0);f<i.length;){if(L_.lastIndex=f,u=L_.exec(i),p=u&&u.index!==void 0?u.index:i.length,h=i.charCodeAt(p),!u){t=i.slice(f);break}if(h===10&&f===p&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<p&&(l.push(i.slice(f,p)),e+=p-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=p+1}return a&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}function $3e(e,t,r){return typeof t!="string"&&(r=t,t=void 0),lb(r)(fu(cu(r).document().write(pu()(e,t,!0))))}var R_={}.hasOwnProperty;function cb(e,t,r){return typeof t!="string"&&(r=t,t=void 0),C8(r)(fu(cu(r).document().write(pu()(e,t,!0))))}function C8(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Tr),autolinkProtocol:H,autolinkEmail:H,atxHeading:i(De),blockQuote:i(C),characterEscape:H,characterReference:H,codeFenced:i(I),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(I,s),codeText:i(Z,s),codeTextData:H,data:H,codeFlowValue:H,definition:i(ke),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Ae),hardBreakEscape:i(Ht),hardBreakTrailing:i(Ht),htmlFlow:i(ft,s),htmlFlowData:H,htmlText:i(ft,s),htmlTextData:H,image:i(Lt),label:s,link:i(Tr),listItem:i(er),listItemValue:p,listOrdered:i(Pr,f),listUnordered:i(Pr),paragraph:i(cr),reference:w,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(De),strong:i(Wt),thematicBreak:i(Fr)},exit:{atxHeading:l(),atxHeadingSequence:R,autolink:l(),autolinkEmail:E,autolinkProtocol:v,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:Re,characterReference:A,codeFenced:l(g),codeFencedFence:d,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:D,codeIndented:l(y),codeText:l(P),codeTextData:D,data:D,definition:l(),definitionDestinationString:N,definitionLabelString:S,definitionTitleString:k,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(O),htmlFlowData:D,htmlText:l(M),htmlTextData:D,image:l(Q),label:W,labelText:F,lineEnding:xe,link:l(B),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:he,resourceDestinationString:x,resourceTitleString:ee,resource:se,setextHeading:l(J),setextHeadingLineSequence:$,setextHeadingText:T,strong:l(),thematicBreak:l()}};B_(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(_){let q={type:"root",children:[]},ae={stack:[q],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:r},me=[],Ce=-1;for(;++Ce<_.length;)if(_[Ce][1].type==="listOrdered"||_[Ce][1].type==="listUnordered")if(_[Ce][0]==="enter")me.push(Ce);else{let tr=me.pop();Ce=o(_,tr,Ce)}for(Ce=-1;++Ce<_.length;){let tr=t[_[Ce][0]];R_.call(tr,_[Ce][1].type)&&tr[_[Ce][1].type].call(Object.assign({sliceSerialize:_[Ce][2].sliceSerialize},ae),_[Ce][1])}if(ae.tokenStack.length>0){let tr=ae.tokenStack[ae.tokenStack.length-1];(tr[1]||$_).call(ae,void 0,tr[0])}for(q.position={start:xo(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:xo(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},Ce=-1;++Ce<t.transforms.length;)q=t.transforms[Ce](q)||q;return q}function o(_,q,ae){let me=q-1,Ce=-1,tr=!1,Nr,fr,_o,Io;for(;++me<=ae;){let Rt=_[me];switch(Rt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Rt[0]==="enter"?Ce++:Ce--,Io=void 0;break}case"lineEndingBlank":{Rt[0]==="enter"&&(Nr&&!Io&&!Ce&&!_o&&(_o=me),Io=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Io=void 0}if(!Ce&&Rt[0]==="enter"&&Rt[1].type==="listItemPrefix"||Ce===-1&&Rt[0]==="exit"&&(Rt[1].type==="listUnordered"||Rt[1].type==="listOrdered")){if(Nr){let Rn=me;for(fr=void 0;Rn--;){let Er=_[Rn];if(Er[1].type==="lineEnding"||Er[1].type==="lineEndingBlank"){if(Er[0]==="exit")continue;fr&&(_[fr][1].type="lineEndingBlank",tr=!0),Er[1].type="lineEnding",fr=Rn}else if(!(Er[1].type==="linePrefix"||Er[1].type==="blockQuotePrefix"||Er[1].type==="blockQuotePrefixWhitespace"||Er[1].type==="blockQuoteMarker"||Er[1].type==="listItemIndent"))break}_o&&(!fr||_o<fr)&&(Nr._spread=!0),Nr.end=Object.assign({},fr?_[fr][1].start:Rt[1].end),_.splice(fr||me,0,["exit",Nr,Rt[2]]),me++,ae++}if(Rt[1].type==="listItemPrefix"){let Rn={type:"listItem",_spread:!1,start:Object.assign({},Rt[1].start),end:void 0};Nr=Rn,_.splice(me,0,["enter",Rn,Rt[2]]),me++,ae++,_o=void 0,Io=!0}}}return _[q][1]._spread=tr,ae}function i(_,q){return ae;function ae(me){a.call(this,_(me),me),q&&q.call(this,me)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(_,q,ae){this.stack[this.stack.length-1].children.push(_),this.stack.push(_),this.tokenStack.push([q,ae||void 0]),_.position={start:xo(q.start),end:void 0}}function l(_){return q;function q(ae){_&&_.call(this,ae),u.call(this,ae)}}function u(_,q){let ae=this.stack.pop(),me=this.tokenStack.pop();if(me)me[0].type!==_.type&&(q?q.call(this,_,me[0]):(me[1]||$_).call(this,_,me[0]));else throw new Error("Cannot close `"+_.type+"` ("+po({start:_.start,end:_.end})+"): it\u2019s not open");ae.position.end=xo(_.end)}function c(){return wi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(_){if(this.data.expectingFirstListItemValue){let q=this.stack[this.stack.length-2];q.start=Number.parseInt(this.sliceSerialize(_),10),this.data.expectingFirstListItemValue=void 0}}function h(){let _=this.resume(),q=this.stack[this.stack.length-1];q.lang=_}function m(){let _=this.resume(),q=this.stack[this.stack.length-1];q.meta=_}function d(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let _=this.resume(),q=this.stack[this.stack.length-1];q.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){let _=this.resume(),q=this.stack[this.stack.length-1];q.value=_.replace(/(\r?\n|\r)$/g,"")}function S(_){let q=this.resume(),ae=this.stack[this.stack.length-1];ae.label=q,ae.identifier=Ge(this.sliceSerialize(_)).toLowerCase()}function k(){let _=this.resume(),q=this.stack[this.stack.length-1];q.title=_}function N(){let _=this.resume(),q=this.stack[this.stack.length-1];q.url=_}function R(_){let q=this.stack[this.stack.length-1];if(!q.depth){let ae=this.sliceSerialize(_).length;q.depth=ae}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function $(_){let q=this.stack[this.stack.length-1];q.depth=this.sliceSerialize(_).codePointAt(0)===61?1:2}function J(){this.data.setextHeadingSlurpLineEnding=void 0}function H(_){let ae=this.stack[this.stack.length-1].children,me=ae[ae.length-1];(!me||me.type!=="text")&&(me=ze(),me.position={start:xo(_.start),end:void 0},ae.push(me)),this.stack.push(me)}function D(_){let q=this.stack.pop();q.value+=this.sliceSerialize(_),q.position.end=xo(_.end)}function xe(_){let q=this.stack[this.stack.length-1];if(this.data.atHardBreak){let ae=q.children[q.children.length-1];ae.position.end=xo(_.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(q.type)&&(H.call(this,_),D.call(this,_))}function j(){this.data.atHardBreak=!0}function O(){let _=this.resume(),q=this.stack[this.stack.length-1];q.value=_}function M(){let _=this.resume(),q=this.stack[this.stack.length-1];q.value=_}function P(){let _=this.resume(),q=this.stack[this.stack.length-1];q.value=_}function B(){let _=this.stack[this.stack.length-1];if(this.data.inReference){let q=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=q,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function Q(){let _=this.stack[this.stack.length-1];if(this.data.inReference){let q=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=q,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function F(_){let q=this.sliceSerialize(_),ae=this.stack[this.stack.length-2];ae.label=Dh(q),ae.identifier=Ge(q).toLowerCase()}function W(){let _=this.stack[this.stack.length-1],q=this.resume(),ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,ae.type==="link"){let me=_.children;ae.children=me}else ae.alt=q}function x(){let _=this.resume(),q=this.stack[this.stack.length-1];q.url=_}function ee(){let _=this.resume(),q=this.stack[this.stack.length-1];q.title=_}function se(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function he(_){let q=this.resume(),ae=this.stack[this.stack.length-1];ae.label=q,ae.identifier=Ge(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function Se(_){this.data.characterReferenceType=_.type}function Re(_){let q=this.sliceSerialize(_),ae=this.data.characterReferenceType,me;ae?(me=pa(q,ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):me=mo(q);let Ce=this.stack[this.stack.length-1];Ce.value+=me}function A(_){let q=this.stack.pop();q.position.end=xo(_.end)}function v(_){D.call(this,_);let q=this.stack[this.stack.length-1];q.url=this.sliceSerialize(_)}function E(_){D.call(this,_);let q=this.stack[this.stack.length-1];q.url="mailto:"+this.sliceSerialize(_)}function C(){return{type:"blockquote",children:[]}}function I(){return{type:"code",lang:null,meta:null,value:""}}function Z(){return{type:"inlineCode",value:""}}function ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ae(){return{type:"emphasis",children:[]}}function De(){return{type:"heading",depth:0,children:[]}}function Ht(){return{type:"break"}}function ft(){return{type:"html",value:""}}function Lt(){return{type:"image",title:null,url:"",alt:null}}function Tr(){return{type:"link",title:null,url:"",children:[]}}function Pr(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function er(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function cr(){return{type:"paragraph",children:[]}}function Wt(){return{type:"strong",children:[]}}function ze(){return{type:"text",value:""}}function Fr(){return{type:"thematicBreak"}}}function xo(e){return{line:e.line,column:e.column,offset:e.offset}}function B_(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?B_(e,n):O8(e,n)}}function O8(e,t){let r;for(r in t)if(R_.call(t,r))switch(r){case"canContainEols":{let n=t[r];n&&e[r].push(...n);break}case"transforms":{let n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{let n=t[r];n&&Object.assign(e[r],n);break}}}function $_(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+po({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+po({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+po({start:t.start,end:t.end})+") is still open")}function da(e){let t=this;t.parser=r;function r(n){return cb(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var z_=je(U_(),1),hu=Object.assign(Di(Error),{eval:Di(EvalError),range:Di(RangeError),reference:Di(ReferenceError),syntax:Di(SyntaxError),type:Di(TypeError),uri:Di(URIError)});function Di(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let o=r&&(0,z_.default)(r,...n);return new e(o)}}var jh={}.hasOwnProperty,j_={yaml:"-",toml:"+"};function ga(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=M8(n[r]);return t}function M8(e){let t=e;if(typeof t=="string"){if(!jh.call(j_,t))throw hu("Missing matter definition for `%s`",t);t={type:t,marker:j_[t]}}else if(typeof t!="object")throw hu("Expected matter to be an object, not `%j`",t);if(!jh.call(t,"type"))throw hu("Missing `type` in matter `%j`",t);if(!jh.call(t,"fence")&&!jh.call(t,"marker"))throw hu("Missing `marker` or `fence` in matter `%j`",t);return t}function hb(e){let t=ga(e),r={},n=-1;for(;++n<t.length;){let o=t[n],i=pb(o,"open").charCodeAt(0),s=_8(o),a=r[i];Array.isArray(a)?a.push(s):r[i]=[s]}return{flow:r}}function _8(e){let t=e.anywhere,r=e.type,n=r+"Fence",o=n+"Sequence",i=r+"Value",s={tokenize:c,partial:!0},a,l=0;return{tokenize:u,concrete:!0};function u(f,p,h){let m=this;return d;function d($){let J=m.now();return J.column===1&&(J.line===1||t)&&(a=pb(e,"open"),l=0,$===a.charCodeAt(l))?(f.enter(r),f.enter(n),f.enter(o),g($)):h($)}function g($){return l===a.length?(f.exit(o),re($)?(f.enter("whitespace"),y($)):S($)):$===a.charCodeAt(l++)?(f.consume($),g):h($)}function y($){return re($)?(f.consume($),y):(f.exit("whitespace"),S($))}function S($){return G($)?(f.exit(n),f.enter("lineEnding"),f.consume($),f.exit("lineEnding"),a=pb(e,"close"),l=0,f.attempt(s,T,k)):h($)}function k($){return $===null||G($)?R($):(f.enter(i),N($))}function N($){return $===null||G($)?(f.exit(i),R($)):(f.consume($),N)}function R($){return $===null?h($):(f.enter("lineEnding"),f.consume($),f.exit("lineEnding"),f.attempt(s,T,k))}function T($){return f.exit(r),p($)}}function c(f,p,h){let m=0;return d;function d(k){return k===a.charCodeAt(m)?(f.enter(n),f.enter(o),g(k)):h(k)}function g(k){return m===a.length?(f.exit(o),re(k)?(f.enter("whitespace"),y(k)):S(k)):k===a.charCodeAt(m++)?(f.consume(k),g):h(k)}function y(k){return re(k)?(f.consume(k),y):(f.exit("whitespace"),S(k))}function S(k){return k===null||G(k)?(f.exit(n),p(k)):h(k)}}}function pb(e,t){return e.marker?q_(e.marker,t).repeat(3):q_(e.fence,t)}function q_(e,t){return typeof e=="string"?e:e[t]}function db(e){let t=ga(e),r={},n={},o=-1;for(;++o<t.length;){let i=t[o];r[i.type]=I8(i),n[i.type]=P8,n[i.type+"Value"]=F8}return{enter:r,exit:n}}function I8(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function P8(e){let t=this.resume(),r=this.stack[this.stack.length-1];"value"in r,this.exit(e),r.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function F8(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function gb(e){let t=[],r={},n=ga(e),o=-1;for(;++o<n.length;){let i=n[o];r[i.type]=N8(i);let s=mb(i,"open");t.push({atBreak:!0,character:s.charAt(0),after:qo(s.charAt(1))})}return{unsafe:t,handlers:r}}function N8(e){let t=mb(e,"open"),r=mb(e,"close");return n;function n(o){return t+(o.value?`
|
|
74
|
+
`),o;function s(a){return n.stack.push(a),l;function l(){n.stack.pop()}i(l,"exit")}i(s,"enter")}i(_g,"toMarkdown");function x$(t){throw new Error("Cannot handle value `"+t+"`, expected node")}i(x$,"invalid");function y$(t){let e=t;throw new Error("Cannot handle unknown node `"+e.type+"`")}i(y$,"unknown");function w$(t,e){if(t.type==="definition"&&t.type===e.type)return 0}i(w$,"joinDefinition");function b$(t,e){return zE(t,this,e)}i(b$,"containerPhrasingBound");function v$(t,e){return WE(t,this,e)}i(v$,"containerFlowBound");function k$(t,e){return UE(this,t,e)}i(k$,"safeBound");function Ng(){return{enter:{table:S$,tableData:VE,tableHeader:VE,tableRow:E$},exit:{codeText:D$,table:T$,tableData:Rg,tableHeader:Rg,tableRow:Rg}}}i(Ng,"gfmTableFromMarkdown");function S$(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(S$,"enterTable");function T$(t){this.exit(t),this.data.inTable=void 0}i(T$,"exitTable");function E$(t){this.enter({type:"tableRow",children:[]},t)}i(E$,"enterRow");function Rg(t){this.exit(t)}i(Rg,"exit");function VE(t){this.enter({type:"tableCell",children:[]},t)}i(VE,"enterCell");function D$(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,C$));let r=this.stack[this.stack.length-1];r.type,r.value=e,this.exit(t)}i(D$,"exitCodeText");function C$(t,e){return e==="|"?e:t}i(C$,"replace");function Fg(t){let e=t||{},r=e.tableCellPadding,n=e.tablePipeAlign,o=e.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
75
|
+
`,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(d,m,g,x){return c(f(d,g,x),d.align)}function l(d,m,g,x){let y=p(d,g,x),S=c([y]);return S.slice(0,S.indexOf(`
|
|
76
|
+
`))}function u(d,m,g,x){let y=g.enter("tableCell"),S=g.enter("phrasing"),T=g.containerPhrasing(d,{...x,before:s,after:s});return S(),y(),T}function c(d,m){return pE(d,{align:m,alignDelimiters:n,padding:r,stringLength:o})}function f(d,m,g){let x=d.children,y=-1,S=[],T=m.enter("table");for(;++y<x.length;)S[y]=p(x[y],m,g);return T(),S}function p(d,m,g){let x=d.children,y=-1,S=[],T=m.enter("tableRow");for(;++y<x.length;)S[y]=u(x[y],d,m,g);return T(),S}function h(d,m,g){let x=io.inlineCode(d,m,g);return g.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}i(Fg,"gfmTableToMarkdown");function Lg(){return{exit:{taskListCheckValueChecked:GE,taskListCheckValueUnchecked:GE,paragraph:M$}}}i(Lg,"gfmTaskListItemFromMarkdown");function Ag(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:O$}}}i(Ag,"gfmTaskListItemToMarkdown");function GE(t){let e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}i(GE,"exitCheck");function M$(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(M$,"exitParagraphWithTaskListItem");function O$(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=io.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(O$,"listItemWithTaskListItem");function Bg(){return[dg(),gg(),yg(),Ng(),Lg()]}i(Bg,"gfmFromMarkdown");function $g(t){return{extensions:[mg(),xg(),wg(),Fg(t),Ag()]}}i($g,"gfmToMarkdown");function Je(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(Je,"splice");function rt(t,e){return t.length>0?(Je(t,t.length,0,e),t):e}i(rt,"push");var Hg={}.hasOwnProperty;function Hp(t){let e={},r=-1;for(;++r<t.length;)I$(e,t[r]);return e}i(Hp,"combineExtensions");function I$(t,e){let r;for(r in e){let o=(Hg.call(t,r)?t[r]:void 0)||(t[r]={}),s=e[r],a;if(s)for(a in s){Hg.call(o,a)||(o[a]=[]);let l=s[a];P$(o[a],Array.isArray(l)?l:l?[l]:[])}}}i(I$,"syntaxExtension");function P$(t,e){let r=-1,n=[];for(;++r<e.length;)(e[r].add==="after"?t:n).push(e[r]);Je(t,0,0,n)}i(P$,"constructs");function zp(t){let e={},r=-1;for(;++r<t.length;)_$(e,t[r]);return e}i(zp,"combineHtmlExtensions");function _$(t,e){let r;for(r in e){let o=(Hg.call(t,r)?t[r]:void 0)||(t[r]={}),s=e[r],a;if(s)for(a in s)o[a]=s[a]}}i(_$,"htmlExtension");var R$={tokenize:B$,partial:!0},QE={tokenize:$$,partial:!0},JE={tokenize:H$,partial:!0},XE={tokenize:z$,partial:!0},N$={tokenize:W$,partial:!0},ZE={name:"wwwAutolink",tokenize:L$,previous:eD},KE={name:"protocolAutolink",tokenize:A$,previous:tD},Mn={name:"emailAutolink",tokenize:F$,previous:rD},ln={};function qg(){return{text:ln}}i(qg,"gfmAutolinkLiteral");for(var so=48;so<123;)ln[so]=Mn,so++,so===58?so=65:so===91&&(so=97);ln[43]=Mn,ln[45]=Mn,ln[46]=Mn,ln[95]=Mn,ln[72]=[Mn,KE],ln[104]=[Mn,KE],ln[87]=[Mn,ZE],ln[119]=[Mn,ZE];function F$(t,e,r){let n=this,o,s;return a;function a(p){return!zg(p)||!rD.call(n,n.previous)||Wg(n.events)?r(p):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),l(p))}function l(p){return zg(p)?(t.consume(p),l):p===64?(t.consume(p),u):r(p)}function u(p){return p===46?t.check(N$,f,c)(p):p===45||p===95||Ve(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&&ut(n.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(p)):r(p)}}i(F$,"tokenizeEmailAutolink");function L$(t,e,r){let n=this;return o;function o(a){return a!==87&&a!==119||!eD.call(n,n.previous)||Wg(n.events)?r(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(R$,t.attempt(QE,t.attempt(JE,s),r),r)(a))}function s(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(a)}}i(L$,"tokenizeWwwAutolink");function A$(t,e,r){let n=this,o="",s=!1;return a;function a(p){return(p===72||p===104)&&tD.call(n,n.previous)&&!Wg(n.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(p),t.consume(p),l):r(p)}function l(p){if(ut(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||eo(p)||xe(p)||an(p)||to(p)?r(p):t.attempt(QE,t.attempt(JE,f),r)(p)}function f(p){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(p)}}i(A$,"tokenizeProtocolAutolink");function B$(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(B$,"tokenizeWwwPrefix");function $$(t,e,r){let n,o,s;return a;function a(c){return c===46||c===95?t.check(XE,u,l)(c):c===null||xe(c)||an(c)||c!==45&&to(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($$,"tokenizeDomain");function H$(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(XE,e,s)(a):a===null||xe(a)||an(a)?e(a):(t.consume(a),o)}function s(a){return a===41&&n++,t.consume(a),o}}i(H$,"tokenizePath");function z$(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||xe(l)||an(l)?e(l):r(l)}function o(l){return l===null||l===40||l===91||xe(l)||an(l)?e(l):n(l)}function s(l){return ut(l)?a(l):r(l)}function a(l){return l===59?(t.consume(l),n):ut(l)?(t.consume(l),a):r(l)}}i(z$,"tokenizeTrail");function W$(t,e,r){return n;function n(s){return t.consume(s),o}function o(s){return Ve(s)?r(s):e(s)}}i(W$,"tokenizeEmailDomainDotTrail");function eD(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||xe(t)}i(eD,"previousWww");function tD(t){return!ut(t)}i(tD,"previousProtocol");function rD(t){return!(t===47||zg(t))}i(rD,"previousEmail");function zg(t){return t===43||t===45||t===46||t===95||Ve(t)}i(zg,"gfmAtext");function Wg(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(Wg,"previousUnbalanced");var q$={'"':"quot","&":"amp","<":"lt",">":"gt"};function Wp(t){return t.replace(/["&<>]/g,e);function e(r){return"&"+q$[r]+";"}}i(Wp,"encode");function un(t,e){let r=Wp(nr(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(un,"sanitizeUri");function nr(t){let e=[],r=-1,n=0,o=0;for(;++r<t.length;){let s=t.charCodeAt(r),a="";if(s===37&&Ve(t.charCodeAt(r+1))&&Ve(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(nr,"normalizeUri");function Ug(){return{exit:{literalAutolinkEmail:U$,literalAutolinkHttp:Y$,literalAutolinkWww:j$}}}i(Ug,"gfmAutolinkLiteralHtml");function j$(t){jg.call(this,t,"http://")}i(j$,"literalAutolinkWww");function U$(t){jg.call(this,t,"mailto:")}i(U$,"literalAutolinkEmail");function Y$(t){jg.call(this,t)}i(Y$,"literalAutolinkHttp");function jg(t,e){let r=this.sliceSerialize(t);this.tag('<a href="'+un((e||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}i(jg,"anchorFromToken");function fi(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(fi,"resolveAll");var Sl={name:"attention",resolveAll:V$,tokenize:G$};function V$(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};nD(p,-u),nD(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=rt(c,[["enter",t[n][1],e],["exit",t[n][1],e]])),c=rt(c,[["enter",o,e],["enter",a,e],["exit",a,e],["enter",s,e]]),c=rt(c,fi(e.parser.constructs.insideSpan.null,t.slice(n+1,r),e)),c=rt(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=rt(c,[["enter",t[r][1],e],["exit",t[r][1],e]])):f=0,Je(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(V$,"resolveAllAttention");function G$(t,e){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=Cn(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=Cn(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(G$,"tokenizeAttention");function nD(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}i(nD,"movePoint");var Yg={name:"autolink",tokenize:Q$};function Q$(t,e,r){let n=0;return o;function o(d){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(d){return ut(d)?(t.consume(d),a):d===64?r(d):c(d)}function a(d){return d===43||d===45||d===46||Ve(d)?(n=1,l(d)):c(d)}function l(d){return d===58?(t.consume(d),n=0,u):(d===43||d===45||d===46||Ve(d))&&n++<32?(t.consume(d),l):(n=0,c(d))}function u(d){return d===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.exit("autolink"),e):d===null||d===32||d===60||eo(d)?r(d):(t.consume(d),u)}function c(d){return d===64?(t.consume(d),f):rE(d)?(t.consume(d),c):r(d)}function f(d){return Ve(d)?p(d):r(d)}function p(d){return d===46?(t.consume(d),n=0,f):d===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.exit("autolink"),e):h(d)}function h(d){if((d===45||Ve(d))&&n++<63){let m=d===45?h:p;return t.consume(d),m}return r(d)}}i(Q$,"tokenizeAutolink");function ne(t,e,r,n){let o=n?n-1:Number.POSITIVE_INFINITY,s=0;return a;function a(u){return Z(u)?(t.enter(r),l(u)):e(u)}function l(u){return Z(u)&&s++<o?(t.consume(u),l):(t.exit(r),e(u))}}i(ne,"factorySpace");var cn={partial:!0,tokenize:J$};function J$(t,e,r){return n;function n(s){return Z(s)?ne(t,o,"linePrefix")(s):o(s)}function o(s){return s===null||Y(s)?e(s):r(s)}}i(J$,"tokenizeBlankLine");var qp={continuation:{tokenize:Z$},exit:K$,name:"blockQuote",tokenize:X$};function X$(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 Z(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(a))}}i(X$,"tokenizeBlockQuoteStart");function Z$(t,e,r){let n=this;return o;function o(a){return Z(a)?ne(t,s,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return t.attempt(qp,e,r)(a)}}i(Z$,"tokenizeBlockQuoteContinuation");function K$(t){t.exit("blockQuote")}i(K$,"exit");var jp={name:"characterEscape",tokenize:eH};function eH(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 iE(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):r(s)}}i(eH,"tokenizeCharacterEscape");var Up={name:"characterReference",tokenize:tH};function tH(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=Ve,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=nE,f):(t.enter("characterReferenceValue"),s=7,a=wl,f(p))}function f(p){if(p===59&&o){let h=t.exit("characterReferenceValue");return a===Ve&&!ci(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(tH,"tokenizeCharacterReference");var iD={partial:!0,tokenize:nH},Yp={concrete:!0,name:"codeFenced",tokenize:rH};function rH(t,e,r){let n=this,o={partial:!0,tokenize:z},s=0,a=0,l;return u;function u(C){return c(C)}function c(C){let W=n.events[n.events.length-1];return s=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,l=C,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),f(C)}function f(C){return C===l?(a++,t.consume(C),f):a<3?r(C):(t.exit("codeFencedFenceSequence"),Z(C)?ne(t,p,"whitespace")(C):p(C))}function p(C){return C===null||Y(C)?(t.exit("codeFencedFence"),n.interrupt?e(C):t.check(iD,g,H)(C)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),h(C))}function h(C){return C===null||Y(C)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),p(C)):Z(C)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),ne(t,d,"whitespace")(C)):C===96&&C===l?r(C):(t.consume(C),h)}function d(C){return C===null||Y(C)?p(C):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),m(C))}function m(C){return C===null||Y(C)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),p(C)):C===96&&C===l?r(C):(t.consume(C),m)}function g(C){return t.attempt(o,H,x)(C)}function x(C){return t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),y}function y(C){return s>0&&Z(C)?ne(t,S,"linePrefix",s+1)(C):S(C)}function S(C){return C===null||Y(C)?t.check(iD,g,H)(C):(t.enter("codeFlowValue"),T(C))}function T(C){return C===null||Y(C)?(t.exit("codeFlowValue"),S(C)):(t.consume(C),T)}function H(C){return t.exit("codeFenced"),e(C)}function z(C,W,ee){let V=0;return O;function O(L){return C.enter("lineEnding"),C.consume(L),C.exit("lineEnding"),_e}function _e(L){return C.enter("codeFencedFence"),Z(L)?ne(C,j,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):j(L)}function j(L){return L===l?(C.enter("codeFencedFenceSequence"),I(L)):ee(L)}function I(L){return L===l?(V++,C.consume(L),I):V>=a?(C.exit("codeFencedFenceSequence"),Z(L)?ne(C,R,"whitespace")(L):R(L)):ee(L)}function R(L){return L===null||Y(L)?(C.exit("codeFencedFence"),W(L)):ee(L)}}}i(rH,"tokenizeCodeFenced");function nH(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(nH,"tokenizeNonLazyContinuation");var Tl={name:"codeIndented",tokenize:oH},iH={partial:!0,tokenize:sH};function oH(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):Y(c)?t.attempt(iH,a,u)(c):(t.enter("codeFlowValue"),l(c))}function l(c){return c===null||Y(c)?(t.exit("codeFlowValue"),a(c)):(t.consume(c),l)}function u(c){return t.exit("codeIndented"),e(c)}}i(oH,"tokenizeCodeIndented");function sH(t,e,r){let n=this;return o;function o(a){return n.parser.lazy[n.now().line]?r(a):Y(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):Y(a)?o(a):r(a)}}i(sH,"tokenizeFurtherStart");var Vg={name:"codeText",previous:lH,resolve:aH,tokenize:uH};function aH(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(aH,"resolveCodeText");function lH(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}i(lH,"previous");function uH(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)):Y(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||Y(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(uH,"tokenizeCodeText");var Dl=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&&El(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),El(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),El(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);El(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);El(this.left,r.reverse())}}};function El(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(El,"chunkedPush");function Vp(t){let e={},r=-1,n,o,s,a,l,u,c,f=new Dl(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,cH(f,r)),r=e[r],c=!0);else if(n[1]._container){for(s=r,o=void 0;s--&&(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);o&&(n[1].end={...f.get(o)[1].start},l=f.slice(o,r),l.unshift(n),f.splice(o,r-o+1,l))}}return Je(t,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}i(Vp,"subtokenize");function cH(t,e){let r=t.get(e)[1],n=t.get(e)[2],o=e-1,s=[],a=r._tokenizer||n.parser[r.contentType](r.start),l=a.events,u=[],c={},f,p,h=-1,d=r,m=0,g=0,x=[g];for(;d;){for(;t.get(++o)[1]!==d;);s.push(o),d._tokenizer||(f=n.sliceStream(d),d.next||f.push(null),p&&a.defineSkip(d.start),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=d,d=d.next}for(d=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),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(a.events=[],d?(d._tokenizer=void 0,d.previous=void 0):x.pop(),h=x.length;h--;){let y=l.slice(x[h],x[h+1]),S=s.pop();u.push([S,S+y.length-1]),t.splice(S,2,y)}for(u.reverse(),h=-1;++h<u.length;)c[m+u[h][0]]=m+u[h][1],m+=u[h][1]-u[h][0]-1;return c}i(cH,"subcontent");var Gg={resolve:pH,tokenize:hH},fH={partial:!0,tokenize:dH};function pH(t){return Vp(t),t}i(pH,"resolveContent");function hH(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):Y(l)?t.check(fH,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(hH,"tokenizeContent");function dH(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||Y(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(dH,"tokenizeContinuation");function Gp(t,e,r,n,o,s,a,l,u){let c=u||Number.POSITIVE_INFINITY,f=0;return p;function p(y){return y===60?(t.enter(n),t.enter(o),t.enter(s),t.consume(y),t.exit(s),h):y===null||y===32||y===41||eo(y)?r(y):(t.enter(n),t.enter(a),t.enter(l),t.enter("chunkString",{contentType:"string"}),g(y))}function h(y){return y===62?(t.enter(s),t.consume(y),t.exit(s),t.exit(o),t.exit(n),e):(t.enter(l),t.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(t.exit("chunkString"),t.exit(l),h(y)):y===null||y===60||Y(y)?r(y):(t.consume(y),y===92?m:d)}function m(y){return y===60||y===62||y===92?(t.consume(y),d):d(y)}function g(y){return!f&&(y===null||y===41||xe(y))?(t.exit("chunkString"),t.exit(l),t.exit(a),t.exit(n),e(y)):f<c&&y===40?(t.consume(y),f++,g):y===41?(t.consume(y),f--,g):y===null||y===32||y===40||eo(y)?r(y):(t.consume(y),y===92?x:g)}function x(y){return y===40||y===41||y===92?(t.consume(y),g):g(y)}}i(Gp,"factoryDestination");function Qp(t,e,r,n,o,s){let a=this,l=0,u;return c;function c(d){return t.enter(n),t.enter(o),t.consume(d),t.exit(o),t.enter(s),f}function f(d){return l>999||d===null||d===91||d===93&&!u||d===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):d===93?(t.exit(s),t.enter(o),t.consume(d),t.exit(o),t.exit(n),e):Y(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),f):(t.enter("chunkString",{contentType:"string"}),p(d))}function p(d){return d===null||d===91||d===93||Y(d)||l++>999?(t.exit("chunkString"),f(d)):(t.consume(d),u||(u=!Z(d)),d===92?h:p)}function h(d){return d===91||d===92||d===93?(t.consume(d),l++,p):p(d)}}i(Qp,"factoryLabel");function Jp(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):Y(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||Y(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(Jp,"factoryTitle");function ao(t,e){let r;return n;function n(o){return Y(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r=!0,n):Z(o)?ne(t,n,r?"linePrefix":"lineSuffix")(o):e(o)}}i(ao,"factoryWhitespace");var Qg={name:"definition",tokenize:gH},mH={partial:!0,tokenize:xH};function gH(t,e,r){let n=this,o;return s;function s(d){return t.enter("definition"),a(d)}function a(d){return Qp.call(n,t,l,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function l(d){return o=Ge(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),d===58?(t.enter("definitionMarker"),t.consume(d),t.exit("definitionMarker"),u):r(d)}function u(d){return xe(d)?ao(t,c)(d):c(d)}function c(d){return Gp(t,f,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function f(d){return t.attempt(mH,p,p)(d)}function p(d){return Z(d)?ne(t,h,"whitespace")(d):h(d)}function h(d){return d===null||Y(d)?(t.exit("definition"),n.parser.defined.push(o),e(d)):r(d)}}i(gH,"tokenizeDefinition");function xH(t,e,r){return n;function n(l){return xe(l)?ao(t,o)(l):r(l)}function o(l){return Jp(t,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return Z(l)?ne(t,a,"whitespace")(l):a(l)}function a(l){return l===null||Y(l)?e(l):r(l)}}i(xH,"tokenizeTitleBefore");var Jg={name:"hardBreakEscape",tokenize:yH};function yH(t,e,r){return n;function n(s){return t.enter("hardBreakEscape"),t.consume(s),o}function o(s){return Y(s)?(t.exit("hardBreakEscape"),e(s)):r(s)}}i(yH,"tokenizeHardBreakEscape");var Xg={name:"headingAtx",resolve:wH,tokenize:bH};function wH(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"},Je(t,n,r-n+1,[["enter",o,e],["enter",s,e],["exit",s,e],["exit",o,e]])),t}i(wH,"resolveHeadingAtx");function bH(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||xe(f)?(t.exit("atxHeadingSequence"),l(f)):r(f)}function l(f){return f===35?(t.enter("atxHeadingSequence"),u(f)):f===null||Y(f)?(t.exit("atxHeading"),e(f)):Z(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||xe(f)?(t.exit("atxHeadingText"),l(f)):(t.consume(f),c)}}i(bH,"tokenizeHeadingAtx");var oD=["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"],Zg=["pre","script","style","textarea"];var Kg={concrete:!0,name:"htmlFlow",resolveTo:SH,tokenize:TH},vH={partial:!0,tokenize:DH},kH={partial:!0,tokenize:EH};function SH(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(SH,"resolveToHtmlFlow");function TH(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):ut(k)?(t.consume(k),a=String.fromCharCode(k),x):r(k)}function h(k){return k===45?(t.consume(k),o=2,d):k===91?(t.consume(k),o=5,l=0,m):ut(k)?(t.consume(k),o=4,n.interrupt?e:b):r(k)}function d(k){return k===45?(t.consume(k),n.interrupt?e:b):r(k)}function m(k){let Ae="CDATA[";return k===Ae.charCodeAt(l++)?(t.consume(k),l===Ae.length?n.interrupt?e:j:m):r(k)}function g(k){return ut(k)?(t.consume(k),a=String.fromCharCode(k),x):r(k)}function x(k){if(k===null||k===47||k===62||xe(k)){let Ae=k===47,Ze=a.toLowerCase();return!Ae&&!s&&Zg.includes(Ze)?(o=1,n.interrupt?e(k):j(k)):oD.includes(a.toLowerCase())?(o=6,Ae?(t.consume(k),y):n.interrupt?e(k):j(k)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(k):s?S(k):T(k))}return k===45||Ve(k)?(t.consume(k),a+=String.fromCharCode(k),x):r(k)}function y(k){return k===62?(t.consume(k),n.interrupt?e:j):r(k)}function S(k){return Z(k)?(t.consume(k),S):O(k)}function T(k){return k===47?(t.consume(k),O):k===58||k===95||ut(k)?(t.consume(k),H):Z(k)?(t.consume(k),T):O(k)}function H(k){return k===45||k===46||k===58||k===95||Ve(k)?(t.consume(k),H):z(k)}function z(k){return k===61?(t.consume(k),C):Z(k)?(t.consume(k),z):T(k)}function C(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(t.consume(k),u=k,W):Z(k)?(t.consume(k),C):ee(k)}function W(k){return k===u?(t.consume(k),u=null,V):k===null||Y(k)?r(k):(t.consume(k),W)}function ee(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||xe(k)?z(k):(t.consume(k),ee)}function V(k){return k===47||k===62||Z(k)?T(k):r(k)}function O(k){return k===62?(t.consume(k),_e):r(k)}function _e(k){return k===null||Y(k)?j(k):Z(k)?(t.consume(k),_e):r(k)}function j(k){return k===45&&o===2?(t.consume(k),B):k===60&&o===1?(t.consume(k),G):k===62&&o===4?(t.consume(k),ye):k===63&&o===3?(t.consume(k),b):k===93&&o===5?(t.consume(k),pe):Y(k)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(vH,ke,I)(k)):k===null||Y(k)?(t.exit("htmlFlowData"),I(k)):(t.consume(k),j)}function I(k){return t.check(kH,R,ke)(k)}function R(k){return t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),L}function L(k){return k===null||Y(k)?I(k):(t.enter("htmlFlowData"),j(k))}function B(k){return k===45?(t.consume(k),b):j(k)}function G(k){return k===47?(t.consume(k),a="",X):j(k)}function X(k){if(k===62){let Ae=a.toLowerCase();return Zg.includes(Ae)?(t.consume(k),ye):j(k)}return ut(k)&&a.length<8?(t.consume(k),a+=String.fromCharCode(k),X):j(k)}function pe(k){return k===93?(t.consume(k),b):j(k)}function b(k){return k===62?(t.consume(k),ye):k===45&&o===2?(t.consume(k),b):j(k)}function ye(k){return k===null||Y(k)?(t.exit("htmlFlowData"),ke(k)):(t.consume(k),ye)}function ke(k){return t.exit("htmlFlow"),e(k)}}i(TH,"tokenizeHtmlFlow");function EH(t,e,r){let n=this;return o;function o(a){return Y(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(EH,"tokenizeNonLazyContinuationStart");function DH(t,e,r){return n;function n(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(cn,e,r)}}i(DH,"tokenizeBlankLineBefore");var ex={name:"htmlText",tokenize:CH};function CH(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),z):b===63?(t.consume(b),T):ut(b)?(t.consume(b),ee):r(b)}function c(b){return b===45?(t.consume(b),f):b===91?(t.consume(b),s=0,m):ut(b)?(t.consume(b),S):r(b)}function f(b){return b===45?(t.consume(b),d):r(b)}function p(b){return b===null?r(b):b===45?(t.consume(b),h):Y(b)?(a=p,G(b)):(t.consume(b),p)}function h(b){return b===45?(t.consume(b),d):p(b)}function d(b){return b===62?B(b):b===45?h(b):p(b)}function m(b){let ye="CDATA[";return b===ye.charCodeAt(s++)?(t.consume(b),s===ye.length?g:m):r(b)}function g(b){return b===null?r(b):b===93?(t.consume(b),x):Y(b)?(a=g,G(b)):(t.consume(b),g)}function x(b){return b===93?(t.consume(b),y):g(b)}function y(b){return b===62?B(b):b===93?(t.consume(b),y):g(b)}function S(b){return b===null||b===62?B(b):Y(b)?(a=S,G(b)):(t.consume(b),S)}function T(b){return b===null?r(b):b===63?(t.consume(b),H):Y(b)?(a=T,G(b)):(t.consume(b),T)}function H(b){return b===62?B(b):T(b)}function z(b){return ut(b)?(t.consume(b),C):r(b)}function C(b){return b===45||Ve(b)?(t.consume(b),C):W(b)}function W(b){return Y(b)?(a=W,G(b)):Z(b)?(t.consume(b),W):B(b)}function ee(b){return b===45||Ve(b)?(t.consume(b),ee):b===47||b===62||xe(b)?V(b):r(b)}function V(b){return b===47?(t.consume(b),B):b===58||b===95||ut(b)?(t.consume(b),O):Y(b)?(a=V,G(b)):Z(b)?(t.consume(b),V):B(b)}function O(b){return b===45||b===46||b===58||b===95||Ve(b)?(t.consume(b),O):_e(b)}function _e(b){return b===61?(t.consume(b),j):Y(b)?(a=_e,G(b)):Z(b)?(t.consume(b),_e):V(b)}function j(b){return b===null||b===60||b===61||b===62||b===96?r(b):b===34||b===39?(t.consume(b),o=b,I):Y(b)?(a=j,G(b)):Z(b)?(t.consume(b),j):(t.consume(b),R)}function I(b){return b===o?(t.consume(b),o=void 0,L):b===null?r(b):Y(b)?(a=I,G(b)):(t.consume(b),I)}function R(b){return b===null||b===34||b===39||b===60||b===61||b===96?r(b):b===47||b===62||xe(b)?V(b):(t.consume(b),R)}function L(b){return b===47||b===62||xe(b)?V(b):r(b)}function B(b){return b===62?(t.consume(b),t.exit("htmlTextData"),t.exit("htmlText"),e):r(b)}function G(b){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),X}function X(b){return Z(b)?ne(t,pe,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):pe(b)}function pe(b){return t.enter("htmlTextData"),a(b)}}i(CH,"tokenizeHtmlText");var lo={name:"labelEnd",resolveAll:PH,resolveTo:_H,tokenize:RH},MH={tokenize:NH},OH={tokenize:FH},IH={tokenize:LH};function PH(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&&Je(t,0,t.length,r),t}i(PH,"resolveAllLabelEnd");function _H(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=rt(l,t.slice(s+1,s+n+3)),l=rt(l,[["enter",f,e]]),l=rt(l,fi(e.parser.constructs.insideSpan.null,t.slice(s+n+4,a-3),e)),l=rt(l,[["exit",f,e],t[a-2],t[a-1],["exit",c,e]]),l=rt(l,t.slice(a+1)),l=rt(l,[["exit",u,e]]),Je(t,s,t.length,l),t}i(_H,"resolveToLabelEnd");function RH(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(Ge(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(MH,f,a?f:p)(h):h===91?t.attempt(OH,f,a?c:p)(h):a?f(h):p(h)}function c(h){return t.attempt(IH,f,p)(h)}function f(h){return e(h)}function p(h){return s._balanced=!0,r(h)}}i(RH,"tokenizeLabelEnd");function NH(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 xe(p)?ao(t,s)(p):s(p)}function s(p){return p===41?f(p):Gp(t,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return xe(p)?ao(t,u)(p):f(p)}function l(p){return r(p)}function u(p){return p===34||p===39||p===40?Jp(t,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):f(p)}function c(p){return xe(p)?ao(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(NH,"tokenizeResource");function FH(t,e,r){let n=this;return o;function o(l){return Qp.call(n,t,s,a,"reference","referenceMarker","referenceString")(l)}function s(l){return n.parser.defined.includes(Ge(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?e(l):r(l)}function a(l){return r(l)}}i(FH,"tokenizeReferenceFull");function LH(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(LH,"tokenizeReferenceCollapsed");var tx={name:"labelStartImage",resolveAll:lo.resolveAll,tokenize:AH};function AH(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(AH,"tokenizeLabelStartImage");var rx={name:"labelStartLink",resolveAll:lo.resolveAll,tokenize:BH};function BH(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(BH,"tokenizeLabelStartLink");var Cl={name:"lineEnding",tokenize:$H};function $H(t,e){return r;function r(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),ne(t,e,"linePrefix")}}i($H,"tokenizeLineEnding");var uo={name:"thematicBreak",tokenize:HH};function HH(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||Y(c))?(t.exit("thematicBreak"),e(c)):r(c)}function u(c){return c===o?(t.consume(c),n++,u):(t.exit("thematicBreakSequence"),Z(c)?ne(t,l,"whitespace")(c):l(c))}}i(HH,"tokenizeThematicBreak");var Mt={continuation:{tokenize:jH},exit:YH,name:"list",tokenize:qH},zH={partial:!0,tokenize:VH},WH={partial:!0,tokenize:UH};function qH(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(d){let m=n.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||d===n.containerState.marker:wl(d)){if(n.containerState.type||(n.containerState.type=m,t.enter(m,{_container:!0})),m==="listUnordered")return t.enter("listItemPrefix"),d===42||d===45?t.check(uo,r,c)(d):c(d);if(!n.interrupt||d===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),u(d)}return r(d)}function u(d){return wl(d)&&++a<10?(t.consume(d),u):(!n.interrupt||a<2)&&(n.containerState.marker?d===n.containerState.marker:d===41||d===46)?(t.exit("listItemValue"),c(d)):r(d)}function c(d){return t.enter("listItemMarker"),t.consume(d),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||d,t.check(cn,n.interrupt?r:f,t.attempt(zH,h,p))}function f(d){return n.containerState.initialBlankLine=!0,s++,h(d)}function p(d){return Z(d)?(t.enter("listItemPrefixWhitespace"),t.consume(d),t.exit("listItemPrefixWhitespace"),h):r(d)}function h(d){return n.containerState.size=s+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(d)}}i(qH,"tokenizeListStart");function jH(t,e,r){let n=this;return n.containerState._closeFlow=void 0,t.check(cn,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||!Z(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(WH,e,a)(l))}i(s,"notBlank");function a(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,ne(t,t.attempt(Mt,e,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}i(a,"notInCurrentItem")}i(jH,"tokenizeListContinuation");function UH(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(UH,"tokenizeIndent");function YH(t){t.exit(this.containerState.type)}i(YH,"tokenizeListEnd");function VH(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!Z(s)&&a&&a[1].type==="listItemPrefixWhitespace"?e(s):r(s)}}i(VH,"tokenizeListItemPrefixWhitespace");var Xp={name:"setextUnderline",resolveTo:GH,tokenize:QH};function GH(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[o][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(GH,"resolveToSetextUnderline");function QH(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"),Z(c)?ne(t,u,"lineSuffix")(c):u(c))}function u(c){return c===null||Y(c)?(t.exit("setextHeadingLine"),e(c)):r(c)}}i(QH,"tokenizeSetextUnderline");var JH={tokenize:nz,partial:!0};function nx(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ez,continuation:{tokenize:tz},exit:rz}},text:{91:{name:"gfmFootnoteCall",tokenize:KH},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:XH,resolveTo:ZH}}}}i(nx,"gfmFootnote");function XH(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=Ge(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(XH,"tokenizePotentialGfmFootnoteCall");function ZH(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(ZH,"resolveToPotentialGfmFootnoteCall");function KH(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||xe(p))return r(p);if(p===93){t.exit("chunkString");let h=t.exit("gfmFootnoteCallString");return o.includes(Ge(n.sliceSerialize(h)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):r(p)}return xe(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(KH,"tokenizeGfmFootnoteCall");function ez(t,e,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s,a=0,l;return u;function u(m){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",f):r(m)}function f(m){if(a>999||m===93&&!l||m===null||m===91||xe(m))return r(m);if(m===93){t.exit("chunkString");let g=t.exit("gfmFootnoteDefinitionLabelString");return s=Ge(n.sliceSerialize(g)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(m),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),h}return xe(m)||(l=!0),a++,t.consume(m),m===92?p:f}function p(m){return m===91||m===92||m===93?(t.consume(m),a++,f):f(m)}function h(m){return m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),o.includes(s)||o.push(s),ne(t,d,"gfmFootnoteDefinitionWhitespace")):r(m)}function d(m){return e(m)}}i(ez,"tokenizeDefinitionStart");function tz(t,e,r){return t.check(cn,e,t.attempt(JH,e,r))}i(tz,"tokenizeDefinitionContinuation");function rz(t){t.exit("gfmFootnoteDefinition")}i(rz,"gfmFootnoteDefinitionEnd");function nz(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(nz,"tokenizeIndent");var iz={}.hasOwnProperty,oz={};function sD(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}i(sD,"defaultBackLabel");function ix(t){let e=t||oz,r=e.label||"Footnotes",n=e.labelTagName||"h2",o=e.labelAttributes===null||e.labelAttributes===void 0?'class="sr-only"':e.labelAttributes,s=e.backLabel||sD,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={}),iz.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(Ge(this.sliceSerialize(l))),this.resume(),this.buffer()},gfmFootnoteCallString(l){let u=this.getData("gfmFootnoteCallOrder"),c=this.getData("gfmFootnoteCallCounts"),f=Ge(this.sliceSerialize(l)),p;this.resume(),u||this.setData("gfmFootnoteCallOrder",u=[]),c||this.setData("gfmFootnoteCallCounts",c={});let h=u.indexOf(f),d=un(f.toLowerCase());h===-1?(u.push(f),c[f]=1,p=u.length):(c[f]++,p=h+1);let m=c[f];this.tag('<sup><a href="#'+a+"fn-"+d+'" id="'+a+"fnref-"+d+(m>1?"-"+m:"")+'" 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=un(p.toLowerCase()),d=0,m=[];for(;++d<=u[p];)m.push('<a href="#'+a+"fnref-"+h+(d>1?"-"+d:"")+'" data-footnote-backref="" aria-label="'+this.encode(typeof s=="string"?s:s(f,d))+'" class="data-footnote-backref">\u21A9'+(d>1?"<sup>"+d+"</sup>":"")+"</a>");let g=m.join(" "),x=!1;this.lineEndingIfNeeded(),this.tag('<li id="'+a+"fn-"+h+'">'),this.lineEndingIfNeeded(),this.tag(c[p].replace(/<\/p>(?:\r?\n|\r)?$/,function(y){return x=!0," "+g+y})),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(ix,"gfmFootnoteHtml");function ox(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}i(ox,"gfmStrikethroughHtml");function sx(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]],d=l.parser.constructs.insideSpan.null;d&&Je(h,h.length,0,fi(d,a.slice(c+1,u),l)),Je(h,h.length,0,[["exit",p,l],["enter",a[u][1],l],["exit",a[u][1],l],["exit",f,l]]),Je(a,c-1,u-c+3,h),u=c+h.length-2;break}}for(u=-1;++u<a.length;)a[u][1].type==="strikethroughSequenceTemporary"&&(a[u][1].type="data");return a}i(o,"resolveAllStrikethrough");function s(a,l,u){let c=this.previous,f=this.events,p=0;return h;function h(m){return c===126&&f[f.length-1][1].type!=="characterEscape"?u(m):(a.enter("strikethroughSequenceTemporary"),d(m))}function d(m){let g=Cn(c);if(m===126)return p>1?u(m):(a.consume(m),p++,d);if(p<2&&!r)return u(m);let x=a.exit("strikethroughSequenceTemporary"),y=Cn(m);return x._open=!y||y===2&&!!g,x._close=!g||g===2&&!!y,l(m)}}i(s,"tokenizeStrikethrough")}i(sx,"gfmStrikethrough");var ax={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function lx(){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=ax[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=ax[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,sz)),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"+ax[t[e]]+"></td>"),e++;this.setData("tableColumn",e),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}i(lx,"gfmTableHtml");function sz(t,e){return e==="|"?e:t}i(sz,"replace");var Zp=class{static{i(this,"EditMap")}constructor(){this.map=[]}add(e,r,n){az(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]),e.length=0;let o=n.pop();for(;o;)e.push(...o),o=n.pop();this.map.length=0}};function az(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(az,"addImplementation");function aD(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(aD,"gfmTableAlign");function ux(){return{flow:{null:{name:"table",tokenize:lz,resolveAll:uz}}}}i(ux,"gfmTable");function lz(t,e,r){let n=this,o=0,s=0,a;return l;function l(O){let _e=n.events.length-1;for(;_e>-1;){let R=n.events[_e][1].type;if(R==="lineEnding"||R==="linePrefix")_e--;else break}let j=_e>-1?n.events[_e][1].type:null,I=j==="tableHead"||j==="tableRow"?C:u;return I===C&&n.parser.lazy[n.now().line]?r(O):I(O)}function u(O){return t.enter("tableHead"),t.enter("tableRow"),c(O)}function c(O){return O===124||(a=!0,s+=1),f(O)}function f(O){return O===null?r(O):Y(O)?s>1?(s=0,n.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),d):r(O):Z(O)?ne(t,f,"whitespace")(O):(s+=1,a&&(a=!1,o+=1),O===124?(t.enter("tableCellDivider"),t.consume(O),t.exit("tableCellDivider"),a=!0,f):(t.enter("data"),p(O)))}function p(O){return O===null||O===124||xe(O)?(t.exit("data"),f(O)):(t.consume(O),O===92?h:p)}function h(O){return O===92||O===124?(t.consume(O),p):p(O)}function d(O){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(O):(t.enter("tableDelimiterRow"),a=!1,Z(O)?ne(t,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):m(O))}function m(O){return O===45||O===58?x(O):O===124?(a=!0,t.enter("tableCellDivider"),t.consume(O),t.exit("tableCellDivider"),g):z(O)}function g(O){return Z(O)?ne(t,x,"whitespace")(O):x(O)}function x(O){return O===58?(s+=1,a=!0,t.enter("tableDelimiterMarker"),t.consume(O),t.exit("tableDelimiterMarker"),y):O===45?(s+=1,y(O)):O===null||Y(O)?H(O):z(O)}function y(O){return O===45?(t.enter("tableDelimiterFiller"),S(O)):z(O)}function S(O){return O===45?(t.consume(O),S):O===58?(a=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(O),t.exit("tableDelimiterMarker"),T):(t.exit("tableDelimiterFiller"),T(O))}function T(O){return Z(O)?ne(t,H,"whitespace")(O):H(O)}function H(O){return O===124?m(O):O===null||Y(O)?!a||o!==s?z(O):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(O)):z(O)}function z(O){return r(O)}function C(O){return t.enter("tableRow"),W(O)}function W(O){return O===124?(t.enter("tableCellDivider"),t.consume(O),t.exit("tableCellDivider"),W):O===null||Y(O)?(t.exit("tableRow"),e(O)):Z(O)?ne(t,W,"whitespace")(O):(t.enter("data"),ee(O))}function ee(O){return O===null||O===124||xe(O)?(t.exit("data"),W(O)):(t.consume(O),O===92?V:ee)}function V(O){return O===92||O===124?(t.consume(O),ee):ee(O)}}i(lz,"tokenizeTable");function uz(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 Zp;for(;++r<t.length;){let d=t[r],m=d[1];d[0]==="enter"?m.type==="tableHead"?(l=!1,u!==0&&(lD(h,e,u,c,f),f=void 0,u=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},h.add(r,0,[["enter",c,e]])):m.type==="tableRow"||m.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({},m.start),end:Object.assign({},m.end)},h.add(r,0,[["enter",f,e]])),o=m.type==="tableDelimiterRow"?2:f?3:1):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],p=Kp(h,e,s,o,void 0,p),s=[0,0,0,0]),a[2]=r)):m.type==="tableCellDivider"&&(n?n=!1:(s[1]!==0&&(a[0]=a[1],p=Kp(h,e,s,o,void 0,p)),s=a,a=[s[1],r,0,0])):m.type==="tableHead"?(l=!0,u=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(u=r,s[1]!==0?(a[0]=a[1],p=Kp(h,e,s,o,r,p)):a[1]!==0&&(p=Kp(h,e,a,o,r,p)),o=0):o&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(a[3]=r)}for(u!==0&&lD(h,e,u,c,f),h.consume(e.events),r=-1;++r<e.events.length;){let d=e.events[r];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=aD(e.events,r))}return t}i(uz,"resolveTable");function Kp(t,e,r,n,o,s){let a=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";r[0]!==0&&(s.end=Object.assign({},Us(e.events,r[0])),t.add(r[0],0,[["exit",s,e]]));let u=Us(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=Us(e.events,r[2]),f=Us(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]],d=e.events[r[3]];if(h[1].end=Object.assign({},d[1].end),h[1].type="chunkText",h[1].contentType="text",r[3]>r[2]+1){let m=r[2]+1,g=r[3]-r[2]-1;t.add(m,g,[])}}t.add(r[3]+1,0,[["exit",p,e]])}return o!==void 0&&(s.end=Object.assign({},Us(e.events,o)),t.add(o,0,[["exit",s,e]]),s=void 0),s}i(Kp,"flushCell");function lD(t,e,r,n,o){let s=[],a=Us(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(lD,"flushTableEnd");function Us(t,e){let r=t[e],n=r[0]==="enter"?"start":"end";return r[1][n]}i(Us,"getPoint");var uD=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,cz=new RegExp("^"+uD.source,"i");function cx(){return{exit:{htmlFlowData(t){cD.call(this,t,uD)},htmlTextData(t){cD.call(this,t,cz)}}}}i(cx,"gfmTagfilterHtml");function cD(t,e){let r=this.sliceSerialize(t);this.options.allowDangerousHtml&&(r=r.replace(e,"<$1$2")),this.raw(this.encode(r))}i(cD,"exitHtmlData");function fx(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}i(fx,"gfmTaskListItemHtml");var fz={name:"tasklistCheck",tokenize:pz};function px(){return{text:{91:fz}}}i(px,"gfmTaskListItem");function pz(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 xe(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 Y(u)?e(u):Z(u)?t.check({tokenize:hz},e,r)(u):r(u)}}i(pz,"tokenizeTasklistCheck");function hz(t,e,r){return ne(t,n,"whitespace");function n(o){return o===null?r(o):e(o)}}i(hz,"spaceThenNonSpace");function fD(t){return Hp([qg(),nx(),sx(t),ux(),px()])}i(fD,"gfm");function Aqe(t){return zp([Ug(),ix(t),ox(),lx(),cx(),fx()])}i(Aqe,"gfmHtml");var dz={};function Ys(t){let e=this,r=t||dz,n=e.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(fD(r)),s.push(Bg()),a.push($g(r))}i(Ys,"remarkGfm");var pD={}.hasOwnProperty,hD=/^(https?|ircs?|mailto|xmpp)$/i,mz=/^https?$/i;function hx(t){let e=t||{},r=!0,n={},o=[[]],s=[],a=[],u=zp([{enter:{blockQuote:L,codeFenced:pe,codeFencedFenceInfo:x,codeFencedFenceMeta:x,codeIndented:ke,codeText:_t,content:Nr,definition:Re,definitionDestinationString:Lt,definitionLabelString:x,definitionTitleString:x,emphasis:wi,htmlFlow:Gt,htmlText:sr,image:Ae,label:x,link:Ze,listItemMarker:_e,listItemValue:O,listOrdered:ee,listUnordered:V,paragraph:G,reference:x,resource:D,resourceDestinationString:M,resourceTitleString:x,setextHeading:or,strong:bi},exit:{atxHeading:je,atxHeadingSequence:Vt,autolinkEmail:lO,autolinkProtocol:aO,blockQuote:B,characterEscapeValue:$,characterReferenceMarkerHexadecimal:ew,characterReferenceMarkerNumeric:ew,characterReferenceValue:sO,codeFenced:k,codeFencedFence:ye,codeFencedFenceInfo:b,codeFencedFenceMeta:W,codeFlowValue:he,codeIndented:k,codeText:Ln,codeTextData:$,data:$,definition:wr,definitionDestinationString:ct,definitionLabelString:Se,definitionTitleString:Pt,emphasis:br,hardBreakEscape:Te,hardBreakTrailing:Te,htmlFlow:Lr,htmlFlowData:$,htmlText:Lr,htmlTextData:$,image:Le,label:E,labelText:Yt,lineEnding:oe,link:Le,listOrdered:j,listUnordered:I,paragraph:X,reference:W,referenceString:v,resource:W,resourceDestinationString:F,resourceTitleString:te,setextHeading:_,setextHeadingLineSequence:Fr,setextHeadingText:At,strong:iO,thematicBreak:oO}},...e.htmlExtensions||[]]),c={definitions:n,tightStack:a},f={buffer:x,encode:C,getData:g,lineEndingIfNeeded:z,options:e,raw:T,resume:y,setData:m,tag:S},p=e.defaultLineEnding;return h;function h(q){let re=-1,wt=0,vr=[],Ar=[],gn=[];for(;++re<q.length;)!p&&(q[re][1].type==="lineEnding"||q[re][1].type==="lineEndingBlank")&&(p=q[re][2].sliceSerialize(q[re][1])),(q[re][1].type==="listOrdered"||q[re][1].type==="listUnordered")&&(q[re][0]==="enter"?vr.push(re):d(q.slice(vr.pop(),re))),q[re][1].type==="definition"&&(q[re][0]==="enter"?(gn=rt(gn,q.slice(wt,re)),wt=re):(Ar=rt(Ar,q.slice(wt,re+1)),wt=re+1));Ar=rt(Ar,gn),Ar=rt(Ar,q.slice(wt)),re=-1;let Br=Ar;for(u.enter.null&&u.enter.null.call(f);++re<q.length;){let tw=u[Br[re][0]],rw=Br[re][1].type,nw=tw[rw];pD.call(tw,rw)&&nw&&nw.call({sliceSerialize:Br[re][2].sliceSerialize,...f},Br[re][1])}return u.exit.null&&u.exit.null.call(f),o[0].join("")}function d(q){let re=q.length,wt=0,vr=0,Ar=!1,gn;for(;++wt<re;){let Br=q[wt];if(Br[1]._container)gn=void 0,Br[0]==="enter"?vr++:vr--;else switch(Br[1].type){case"listItemPrefix":{Br[0]==="exit"&&(gn=!0);break}case"linePrefix":break;case"lineEndingBlank":{Br[0]==="enter"&&!vr&&(gn?gn=void 0:Ar=!0);break}default:gn=void 0}}q[0][1]._loose=Ar}function m(q,re){c[q]=re}function g(q){return c[q]}function x(){o.push([])}function y(){return o.pop().join("")}function S(q){r&&(m("lastWasTag",!0),o[o.length-1].push(q))}function T(q){m("lastWasTag"),o[o.length-1].push(q)}function H(){T(p||`
|
|
77
|
+
`)}function z(){let q=o[o.length-1],re=q[q.length-1],wt=re?re.charCodeAt(re.length-1):null;wt===10||wt===13||wt===null||H()}function C(q){return g("ignoreEncode")?q:Wp(q)}function W(){y()}function ee(q){a.push(!q._loose),z(),S("<ol"),m("expectFirstItem",!0)}function V(q){a.push(!q._loose),z(),S("<ul"),m("expectFirstItem",!0)}function O(q){if(g("expectFirstItem")){let re=Number.parseInt(this.sliceSerialize(q),10);re!==1&&S(' start="'+C(String(re))+'"')}}function _e(){g("expectFirstItem")?S(">"):R(),z(),S("<li>"),m("expectFirstItem"),m("lastWasTag")}function j(){R(),a.pop(),H(),S("</ol>")}function I(){R(),a.pop(),H(),S("</ul>")}function R(){g("lastWasTag")&&!g("slurpAllLineEndings")&&z(),S("</li>"),m("slurpAllLineEndings")}function L(){a.push(!1),z(),S("<blockquote>")}function B(){a.pop(),z(),S("</blockquote>"),m("slurpAllLineEndings")}function G(){a[a.length-1]||(z(),S("<p>")),m("slurpAllLineEndings")}function X(){a[a.length-1]?m("slurpAllLineEndings",!0):S("</p>")}function pe(){z(),S("<pre><code"),m("fencesCount",0)}function b(){let q=y();S(' class="language-'+q+'"')}function ye(){let q=g("fencesCount")||0;q||(S(">"),m("slurpOneLineEnding",!0)),m("fencesCount",q+1)}function ke(){z(),S("<pre><code>")}function k(){let q=g("fencesCount");q!==void 0&&q<2&&c.tightStack.length>0&&!g("lastWasTag")&&H(),g("flowCodeSeenData")&&z(),S("</code></pre>"),q!==void 0&&q<2&&z(),m("flowCodeSeenData"),m("fencesCount"),m("slurpOneLineEnding")}function Ae(){s.push({image:!0}),r=void 0}function Ze(){s.push({})}function Yt(q){s[s.length-1].labelId=this.sliceSerialize(q)}function E(){s[s.length-1].label=y()}function v(q){s[s.length-1].referenceId=this.sliceSerialize(q)}function D(){x(),s[s.length-1].destination=""}function M(){x(),m("ignoreEncode",!0)}function F(){s[s.length-1].destination=y(),m("ignoreEncode")}function te(){s[s.length-1].title=y()}function Le(){let q=s.length-1,re=s[q],wt=re.referenceId||re.labelId,vr=re.destination===void 0?n[Ge(wt)]:re;for(r=!0;q--;)if(s[q].image){r=void 0;break}re.image?(S('<img src="'+un(vr.destination,e.allowDangerousProtocol?void 0:mz)+'" alt="'),T(re.label),S('"')):S('<a href="'+un(vr.destination,e.allowDangerousProtocol?void 0:hD)+'"'),S(vr.title?' title="'+vr.title+'"':""),re.image?S(" />"):(S(">"),T(re.label),S("</a>")),s.pop()}function Re(){x(),s.push({})}function Se(q){y(),s[s.length-1].labelId=this.sliceSerialize(q)}function Lt(){x(),m("ignoreEncode",!0)}function ct(){s[s.length-1].destination=y(),m("ignoreEncode")}function Pt(){s[s.length-1].title=y()}function wr(){let q=s[s.length-1],re=Ge(q.labelId);y(),pD.call(n,re)||(n[re]=s[s.length-1]),s.pop()}function Nr(){m("slurpAllLineEndings",!0)}function Vt(q){g("headingRank")||(m("headingRank",this.sliceSerialize(q).length),z(),S("<h"+g("headingRank")+">"))}function or(){x(),m("slurpAllLineEndings")}function At(){m("slurpAllLineEndings",!0)}function je(){S("</h"+g("headingRank")+">"),m("headingRank")}function Fr(q){m("headingRank",this.sliceSerialize(q).charCodeAt(0)===61?1:2)}function _(){let q=y();z(),S("<h"+g("headingRank")+">"),T(q),S("</h"+g("headingRank")+">"),m("slurpAllLineEndings"),m("headingRank")}function $(q){T(C(this.sliceSerialize(q)))}function oe(q){if(!g("slurpAllLineEndings")){if(g("slurpOneLineEnding")){m("slurpOneLineEnding");return}if(g("inCodeText")){T(" ");return}T(C(this.sliceSerialize(q)))}}function he(q){T(C(this.sliceSerialize(q))),m("flowCodeSeenData",!0)}function Te(){S("<br />")}function Gt(){z(),sr()}function Lr(){m("ignoreEncode")}function sr(){e.allowDangerousHtml&&m("ignoreEncode",!0)}function wi(){S("<em>")}function bi(){S("<strong>")}function _t(){m("inCodeText",!0),S("<code>")}function Ln(){m("inCodeText"),S("</code>")}function br(){S("</em>")}function iO(){S("</strong>")}function oO(){z(),S("<hr />")}function ew(q){m("characterReferenceType",q.type)}function sO(q){let re=this.sliceSerialize(q),wt=g("characterReferenceType")?js(re,g("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):ci(re);T(C(wt)),m("characterReferenceType")}function aO(q){let re=this.sliceSerialize(q);S('<a href="'+un(re,e.allowDangerousProtocol?void 0:hD)+'">'),T(C(re)),S("</a>")}function lO(q){let re=this.sliceSerialize(q);S('<a href="'+un("mailto:"+re)+'">'),T(C(re)),S("</a>")}}i(hx,"compile");var dD={tokenize:gz};function gz(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 Y(l)?(t.consume(l),t.exit("chunkText"),s):(t.consume(l),a)}}i(gz,"initializeContent");var gD={tokenize:xz},mD={tokenize:yz};function xz(t){let e=this,r=[],n=0,o,s,a;return l;function l(T){if(n<r.length){let H=r[n];return e.containerState=H[1],t.attempt(H[0].continuation,u,c)(T)}return c(T)}function u(T){if(n++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,o&&S();let H=e.events.length,z=H,C;for(;z--;)if(e.events[z][0]==="exit"&&e.events[z][1].type==="chunkFlow"){C=e.events[z][1].end;break}y(n);let W=H;for(;W<e.events.length;)e.events[W][1].end={...C},W++;return Je(e.events,z+1,0,e.events.slice(H)),e.events.length=W,c(T)}return l(T)}function c(T){if(n===r.length){if(!o)return h(T);if(o.currentConstruct&&o.currentConstruct.concrete)return m(T);e.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(mD,f,p)(T)}function f(T){return o&&S(),y(n),h(T)}function p(T){return e.parser.lazy[e.now().line]=n!==r.length,a=e.now().offset,m(T)}function h(T){return e.containerState={},t.attempt(mD,d,m)(T)}function d(T){return n++,r.push([e.currentConstruct,e.containerState]),h(T)}function m(T){if(T===null){o&&S(),y(0),t.consume(T);return}return o=o||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),g(T)}function g(T){if(T===null){x(t.exit("chunkFlow"),!0),y(0),t.consume(T);return}return Y(T)?(t.consume(T),x(t.exit("chunkFlow")),n=0,e.interrupt=void 0,l):(t.consume(T),g)}function x(T,H){let z=e.sliceStream(T);if(H&&z.push(null),T.previous=s,s&&(s.next=T),s=T,o.defineSkip(T.start),o.write(z),e.parser.lazy[T.start.line]){let C=o.events.length;for(;C--;)if(o.events[C][1].start.offset<a&&(!o.events[C][1].end||o.events[C][1].end.offset>a))return;let W=e.events.length,ee=W,V,O;for(;ee--;)if(e.events[ee][0]==="exit"&&e.events[ee][1].type==="chunkFlow"){if(V){O=e.events[ee][1].end;break}V=!0}for(y(n),C=W;C<e.events.length;)e.events[C][1].end={...O},C++;Je(e.events,ee+1,0,e.events.slice(W)),e.events.length=C}}function y(T){let H=r.length;for(;H-- >T;){let z=r[H];e.containerState=z[1],z[0].exit.call(e,t)}r.length=T}function S(){o.write([null]),s=void 0,o=void 0,e.containerState._closeFlow=void 0}}i(xz,"initializeDocument");function yz(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(yz,"tokenizeContainer");var xD={tokenize:wz};function wz(t){let e=this,r=t.attempt(cn,n,t.attempt(this.parser.constructs.flowInitial,o,ne(t,t.attempt(this.parser.constructs.flow,o,t.attempt(Gg,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(wz,"initializeFlow");var bD={resolveAll:wD()},vD=yD("string"),kD=yD("text");function yD(t){return{resolveAll:wD(t==="text"?bz: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 d=p[h];if(!d.previous||d.previous.call(n,n.previous))return!0}return!1}}}i(yD,"initializeFactory");function wD(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(wD,"createResolver");function bz(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(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(bz,"resolveAllLineSuffixes");var dx={};le(dx,{attentionMarkers:()=>Mz,contentInitial:()=>kz,disable:()=>Oz,document:()=>vz,flow:()=>Tz,flowInitial:()=>Sz,insideSpan:()=>Cz,string:()=>Ez,text:()=>Dz});var vz={42:Mt,43:Mt,45:Mt,48:Mt,49:Mt,50:Mt,51:Mt,52:Mt,53:Mt,54:Mt,55:Mt,56:Mt,57:Mt,62:qp},kz={91:Qg},Sz={[-2]:Tl,[-1]:Tl,32:Tl},Tz={35:Xg,42:uo,45:[Xp,uo],60:Kg,61:Xp,95:uo,96:Yp,126:Yp},Ez={38:Up,92:jp},Dz={[-5]:Cl,[-4]:Cl,[-3]:Cl,33:tx,38:Up,42:Sl,60:[Yg,ex],91:rx,92:[Jg,jp],93:lo,95:Sl,96:Vg},Cz={null:[Sl,bD]},Mz={null:[42,95]},Oz={null:[]};function SD(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:V(W),check:V(ee),consume:H,enter:z,exit:C,interrupt:V(ee,{interrupt:!0})},f={code:null,containerState:{},defineSkip:y,events:[],now:x,parser:t,previous:null,sliceSerialize:m,sliceStream:g,write:d},p=e.tokenize.call(f,c),h;return e.resolveAll&&s.push(e),f;function d(I){return a=rt(a,I),S(),a[a.length-1]!==null?[]:(O(e,0),f.events=fi(s,f.events,f),f.events)}i(d,"write");function m(I,R){return Pz(g(I),R)}i(m,"sliceSerialize");function g(I){return Iz(a,I)}i(g,"sliceStream");function x(){let{_bufferIndex:I,_index:R,line:L,column:B,offset:G}=n;return{_bufferIndex:I,_index:R,line:L,column:B,offset:G}}i(x,"now");function y(I){o[I.line]=I.column,j()}i(y,"defineSkip");function S(){let I;for(;n._index<a.length;){let R=a[n._index];if(typeof R=="string")for(I=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===I&&n._bufferIndex<R.length;)T(R.charCodeAt(n._bufferIndex));else T(R)}}i(S,"main");function T(I){u=void 0,h=I,p=p(I)}i(T,"go");function H(I){Y(I)?(n.line++,n.column=1,n.offset+=I===-3?2:1,j()):I!==-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=I,u=!0}i(H,"consume");function z(I,R){let L=R||{};return L.type=I,L.start=x(),f.events.push(["enter",L,f]),l.push(L),L}i(z,"enter");function C(I){let R=l.pop();return R.end=x(),f.events.push(["exit",R,f]),R}i(C,"exit");function W(I,R){O(I,R.from)}i(W,"onsuccessfulconstruct");function ee(I,R){R.restore()}i(ee,"onsuccessfulcheck");function V(I,R){return L;function L(B,G,X){let pe,b,ye,ke;return Array.isArray(B)?Ae(B):"tokenize"in B?Ae([B]):k(B);function k(v){return D;function D(M){let F=M!==null&&v[M],te=M!==null&&v.null,Le=[...Array.isArray(F)?F:F?[F]:[],...Array.isArray(te)?te:te?[te]:[]];return Ae(Le)(M)}}function Ae(v){return pe=v,b=0,v.length===0?X:Ze(v[b])}function Ze(v){return D;function D(M){return ke=_e(),ye=v,v.partial||(f.currentConstruct=v),v.name&&f.parser.constructs.disable.null.includes(v.name)?E(M):v.tokenize.call(R?Object.assign(Object.create(f),R):f,c,Yt,E)(M)}}function Yt(v){return u=!0,I(ye,ke),G}function E(v){return u=!0,ke.restore(),++b<pe.length?Ze(pe[b]):X}}}i(V,"constructFactory");function O(I,R){I.resolveAll&&!s.includes(I)&&s.push(I),I.resolve&&Je(f.events,R,f.events.length-R,I.resolve(f.events.slice(R),f)),I.resolveTo&&(f.events=I.resolveTo(f.events,f))}i(O,"addResult");function _e(){let I=x(),R=f.previous,L=f.currentConstruct,B=f.events.length,G=Array.from(l);return{from:B,restore:X};function X(){n=I,f.previous=R,f.currentConstruct=L,f.events.length=B,l=G,j()}}i(_e,"store");function j(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}i(j,"accountForPotentialSkip")}i(SD,"createTokenizer");function Iz(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(Iz,"sliceChunks");function Pz(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=`
|
|
78
|
+
`;break}case-3:{a=`\r
|
|
79
|
+
`;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(Pz,"serializeChunks");function Ml(t){let n={constructs:Hp([dx,...(t||{}).extensions||[]]),content:o(dD),defined:[],document:o(gD),flow:o(xD),lazy:{},string:o(vD),text:o(kD)};return n;function o(s){return a;function a(l){return SD(n,s,l)}}}i(Ml,"parse");function Ol(t){for(;!Vp(t););return t}i(Ol,"postprocess");var TD=/[\0\t\n\r]/g;function Il(){let t=1,e="",r=!0,n;return o;function o(s,a,l){let u=[],c,f,p,h,d;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(TD.lastIndex=p,c=TD.exec(s),h=c&&c.index!==void 0?c.index:s.length,d=s.charCodeAt(h),!c){e=s.slice(p);break}if(d===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),d){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(Il,"preprocess");function Wje(t,e,r){return typeof e!="string"&&(r=e,e=void 0),hx(r)(Ol(Ml(r).document().write(Il()(t,e,!0))))}i(Wje,"micromark");var ED={}.hasOwnProperty;function mx(t,e,r){return typeof e!="string"&&(r=e,e=void 0),_z(r)(Ol(Ml(r).document().write(Il()(t,e,!0))))}i(mx,"fromMarkdown");function _z(t){let e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(wr),autolinkProtocol:V,autolinkEmail:V,atxHeading:s(Se),blockQuote:s(M),characterEscape:V,characterReference:V,codeFenced:s(F),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(F,a),codeText:s(te,a),codeTextData:V,data:V,codeFlowValue:V,definition:s(Le),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(Re),hardBreakEscape:s(Lt),hardBreakTrailing:s(Lt),htmlFlow:s(ct,a),htmlFlowData:V,htmlText:s(ct,a),htmlTextData:V,image:s(Pt),label:a,link:s(wr),listItem:s(Vt),listItemValue:h,listOrdered:s(Nr,p),listUnordered:s(Nr),paragraph:s(or),reference:k,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(Se),strong:s(At),thematicBreak:s(Fr)},exit:{atxHeading:u(),atxHeadingSequence:z,autolink:u(),autolinkEmail:D,autolinkProtocol:v,blockQuote:u(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:Ze,characterReferenceMarkerNumeric:Ze,characterReferenceValue:Yt,characterReference:E,codeFenced:u(x),codeFencedFence:g,codeFencedFenceInfo:d,codeFencedFenceMeta:m,codeFlowValue:O,codeIndented:u(y),codeText:u(L),codeTextData:O,data:O,definition:u(),definitionDestinationString:H,definitionLabelString:S,definitionTitleString:T,emphasis:u(),hardBreakEscape:u(j),hardBreakTrailing:u(j),htmlFlow:u(I),htmlFlowData:O,htmlText:u(R),htmlTextData:O,image:u(G),label:pe,labelText:X,lineEnding:_e,link:u(B),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Ae,resourceDestinationString:b,resourceTitleString:ye,resource:ke,setextHeading:u(ee),setextHeadingLineSequence:W,setextHeadingText:C,strong:u(),thematicBreak:u()}};DD(e,(t||{}).mdastExtensions||[]);let r={};return n;function n(_){let $={type:"root",children:[]},oe={stack:[$],tokenStack:[],config:e,enter:l,exit:c,buffer:a,resume:f,data:r},he=[],Te=-1;for(;++Te<_.length;)if(_[Te][1].type==="listOrdered"||_[Te][1].type==="listUnordered")if(_[Te][0]==="enter")he.push(Te);else{let Gt=he.pop();Te=o(_,Gt,Te)}for(Te=-1;++Te<_.length;){let Gt=e[_[Te][0]];ED.call(Gt,_[Te][1].type)&&Gt[_[Te][1].type].call(Object.assign({sliceSerialize:_[Te][2].sliceSerialize},oe),_[Te][1])}if(oe.tokenStack.length>0){let Gt=oe.tokenStack[oe.tokenStack.length-1];(Gt[1]||CD).call(oe,void 0,Gt[0])}for($.position={start:pi(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:pi(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},Te=-1;++Te<e.transforms.length;)$=e.transforms[Te]($)||$;return $}function o(_,$,oe){let he=$-1,Te=-1,Gt=!1,Lr,sr,wi,bi;for(;++he<=oe;){let _t=_[he];switch(_t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{_t[0]==="enter"?Te++:Te--,bi=void 0;break}case"lineEndingBlank":{_t[0]==="enter"&&(Lr&&!bi&&!Te&&!wi&&(wi=he),bi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:bi=void 0}if(!Te&&_t[0]==="enter"&&_t[1].type==="listItemPrefix"||Te===-1&&_t[0]==="exit"&&(_t[1].type==="listUnordered"||_t[1].type==="listOrdered")){if(Lr){let Ln=he;for(sr=void 0;Ln--;){let br=_[Ln];if(br[1].type==="lineEnding"||br[1].type==="lineEndingBlank"){if(br[0]==="exit")continue;sr&&(_[sr][1].type="lineEndingBlank",Gt=!0),br[1].type="lineEnding",sr=Ln}else if(!(br[1].type==="linePrefix"||br[1].type==="blockQuotePrefix"||br[1].type==="blockQuotePrefixWhitespace"||br[1].type==="blockQuoteMarker"||br[1].type==="listItemIndent"))break}wi&&(!sr||wi<sr)&&(Lr._spread=!0),Lr.end=Object.assign({},sr?_[sr][1].start:_t[1].end),_.splice(sr||he,0,["exit",Lr,_t[2]]),he++,oe++}if(_t[1].type==="listItemPrefix"){let Ln={type:"listItem",_spread:!1,start:Object.assign({},_t[1].start),end:void 0};Lr=Ln,_.splice(he,0,["enter",Ln,_t[2]]),he++,oe++,wi=void 0,bi=!0}}}return _[$][1]._spread=Gt,oe}function s(_,$){return oe;function oe(he){l.call(this,_(he),he),$&&$.call(this,he)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(_,$,oe){this.stack[this.stack.length-1].children.push(_),this.stack.push(_),this.tokenStack.push([$,oe||void 0]),_.position={start:pi($.start),end:void 0}}function u(_){return $;function $(oe){_&&_.call(this,oe),c.call(this,oe)}}function c(_,$){let oe=this.stack.pop(),he=this.tokenStack.pop();if(he)he[0].type!==_.type&&($?$.call(this,_,he[0]):(he[1]||CD).call(this,_,he[0]));else throw new Error("Cannot close `"+_.type+"` ("+li({start:_.start,end:_.end})+"): it\u2019s not open");oe.position.end=pi(_.end)}function f(){return no(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(_){if(this.data.expectingFirstListItemValue){let $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(_),10),this.data.expectingFirstListItemValue=void 0}}function d(){let _=this.resume(),$=this.stack[this.stack.length-1];$.lang=_}function m(){let _=this.resume(),$=this.stack[this.stack.length-1];$.meta=_}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){let _=this.resume(),$=this.stack[this.stack.length-1];$.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){let _=this.resume(),$=this.stack[this.stack.length-1];$.value=_.replace(/(\r?\n|\r)$/g,"")}function S(_){let $=this.resume(),oe=this.stack[this.stack.length-1];oe.label=$,oe.identifier=Ge(this.sliceSerialize(_)).toLowerCase()}function T(){let _=this.resume(),$=this.stack[this.stack.length-1];$.title=_}function H(){let _=this.resume(),$=this.stack[this.stack.length-1];$.url=_}function z(_){let $=this.stack[this.stack.length-1];if(!$.depth){let oe=this.sliceSerialize(_).length;$.depth=oe}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function W(_){let $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(_).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function V(_){let oe=this.stack[this.stack.length-1].children,he=oe[oe.length-1];(!he||he.type!=="text")&&(he=je(),he.position={start:pi(_.start),end:void 0},oe.push(he)),this.stack.push(he)}function O(_){let $=this.stack.pop();$.value+=this.sliceSerialize(_),$.position.end=pi(_.end)}function _e(_){let $=this.stack[this.stack.length-1];if(this.data.atHardBreak){let oe=$.children[$.children.length-1];oe.position.end=pi(_.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes($.type)&&(V.call(this,_),O.call(this,_))}function j(){this.data.atHardBreak=!0}function I(){let _=this.resume(),$=this.stack[this.stack.length-1];$.value=_}function R(){let _=this.resume(),$=this.stack[this.stack.length-1];$.value=_}function L(){let _=this.resume(),$=this.stack[this.stack.length-1];$.value=_}function B(){let _=this.stack[this.stack.length-1];if(this.data.inReference){let $=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=$,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function G(){let _=this.stack[this.stack.length-1];if(this.data.inReference){let $=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=$,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function X(_){let $=this.sliceSerialize(_),oe=this.stack[this.stack.length-2];oe.label=$p($),oe.identifier=Ge($).toLowerCase()}function pe(){let _=this.stack[this.stack.length-1],$=this.resume(),oe=this.stack[this.stack.length-1];if(this.data.inReference=!0,oe.type==="link"){let he=_.children;oe.children=he}else oe.alt=$}function b(){let _=this.resume(),$=this.stack[this.stack.length-1];$.url=_}function ye(){let _=this.resume(),$=this.stack[this.stack.length-1];$.title=_}function ke(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function Ae(_){let $=this.resume(),oe=this.stack[this.stack.length-1];oe.label=$,oe.identifier=Ge(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function Ze(_){this.data.characterReferenceType=_.type}function Yt(_){let $=this.sliceSerialize(_),oe=this.data.characterReferenceType,he;oe?(he=js($,oe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):he=ci($);let Te=this.stack[this.stack.length-1];Te.value+=he}function E(_){let $=this.stack.pop();$.position.end=pi(_.end)}function v(_){O.call(this,_);let $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(_)}function D(_){O.call(this,_);let $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(_)}function M(){return{type:"blockquote",children:[]}}function F(){return{type:"code",lang:null,meta:null,value:""}}function te(){return{type:"inlineCode",value:""}}function Le(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Re(){return{type:"emphasis",children:[]}}function Se(){return{type:"heading",depth:0,children:[]}}function Lt(){return{type:"break"}}function ct(){return{type:"html",value:""}}function Pt(){return{type:"image",title:null,url:"",alt:null}}function wr(){return{type:"link",title:null,url:"",children:[]}}function Nr(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function Vt(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function or(){return{type:"paragraph",children:[]}}function At(){return{type:"strong",children:[]}}function je(){return{type:"text",value:""}}function Fr(){return{type:"thematicBreak"}}}i(_z,"compiler");function pi(t){return{line:t.line,column:t.column,offset:t.offset}}i(pi,"point");function DD(t,e){let r=-1;for(;++r<e.length;){let n=e[r];Array.isArray(n)?DD(t,n):Rz(t,n)}}i(DD,"configure");function Rz(t,e){let r;for(r in e)if(ED.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(Rz,"extension");function CD(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+li({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+li({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+li({start:e.start,end:e.end})+") is still open")}i(CD,"defaultOnError");function Vs(t){let e=this;e.parser=r;function r(n){return mx(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}i(r,"parser")}i(Vs,"remarkParse");var OD=Qt(MD(),1),Pl=Object.assign(co(Error),{eval:co(EvalError),range:co(RangeError),reference:co(ReferenceError),syntax:co(SyntaxError),type:co(TypeError),uri:co(URIError)});function co(t){return e.displayName=t.displayName||t.name,e;function e(r,...n){let o=r&&(0,OD.default)(r,...n);return new t(o)}i(e,"FormattedError")}i(co,"create");var eh={}.hasOwnProperty,ID={yaml:"-",toml:"+"};function Gs(t){let e=[],r=-1,n=Array.isArray(t)?t:t?[t]:["yaml"];for(;++r<n.length;)e[r]=Nz(n[r]);return e}i(Gs,"toMatters");function Nz(t){let e=t;if(typeof e=="string"){if(!eh.call(ID,e))throw Pl("Missing matter definition for `%s`",e);e={type:e,marker:ID[e]}}else if(typeof e!="object")throw Pl("Expected matter to be an object, not `%j`",e);if(!eh.call(e,"type"))throw Pl("Missing `type` in matter `%j`",e);if(!eh.call(e,"fence")&&!eh.call(e,"marker"))throw Pl("Missing `marker` or `fence` in matter `%j`",e);return e}i(Nz,"matter");function yx(t){let e=Gs(t),r={},n=-1;for(;++n<e.length;){let o=e[n],s=xx(o,"open").charCodeAt(0),a=Fz(o),l=r[s];Array.isArray(l)?l.push(a):r[s]=[a]}return{flow:r}}i(yx,"frontmatter");function Fz(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,d){let m=this;return g;function g(W){let ee=m.now();return ee.column===1&&(ee.line===1||e)&&(l=xx(t,"open"),u=0,W===l.charCodeAt(u))?(p.enter(r),p.enter(n),p.enter(o),x(W)):d(W)}function x(W){return u===l.length?(p.exit(o),Z(W)?(p.enter("whitespace"),y(W)):S(W)):W===l.charCodeAt(u++)?(p.consume(W),x):d(W)}function y(W){return Z(W)?(p.consume(W),y):(p.exit("whitespace"),S(W))}function S(W){return Y(W)?(p.exit(n),p.enter("lineEnding"),p.consume(W),p.exit("lineEnding"),l=xx(t,"close"),u=0,p.attempt(a,C,T)):d(W)}function T(W){return W===null||Y(W)?z(W):(p.enter(s),H(W))}function H(W){return W===null||Y(W)?(p.exit(s),z(W)):(p.consume(W),H)}function z(W){return W===null?d(W):(p.enter("lineEnding"),p.consume(W),p.exit("lineEnding"),p.attempt(a,C,T))}function C(W){return p.exit(r),h(W)}}function f(p,h,d){let m=0;return g;function g(T){return T===l.charCodeAt(m)?(p.enter(n),p.enter(o),x(T)):d(T)}function x(T){return m===l.length?(p.exit(o),Z(T)?(p.enter("whitespace"),y(T)):S(T)):T===l.charCodeAt(m++)?(p.consume(T),x):d(T)}function y(T){return Z(T)?(p.consume(T),y):(p.exit("whitespace"),S(T))}function S(T){return T===null||Y(T)?(p.exit(n),h(T)):d(T)}}}i(Fz,"createConstruct");function xx(t,e){return t.marker?PD(t.marker,e).repeat(3):PD(t.fence,e)}i(xx,"fence");function PD(t,e){return typeof t=="string"?t:t[e]}i(PD,"pick");function bx(t){let e=Gs(t),r={},n={},o=-1;for(;++o<e.length;){let s=e[o];r[s.type]=Lz(s),n[s.type]=Az,n[s.type+"Value"]=Bz}return{enter:r,exit:n}}i(bx,"frontmatterFromMarkdown");function Lz(t){return e;function e(r){this.enter({type:t.type,value:""},r),this.buffer()}}i(Lz,"opener");function Az(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(Az,"close");function Bz(t){this.config.enter.data.call(this,t),this.config.exit.data.call(this,t)}i(Bz,"value");function vx(t){let e=[],r={},n=Gs(t),o=-1;for(;++o<n.length;){let s=n[o];r[s.type]=$z(s);let a=wx(s,"open");e.push({atBreak:!0,character:a.charAt(0),after:Pi(a.charAt(1))})}return{unsafe:e,handlers:r}}i(vx,"frontmatterToMarkdown");function $z(t){let e=wx(t,"open"),r=wx(t,"close");return n;function n(o){return e+(o.value?`
|
|
90
80
|
`+o.value:"")+`
|
|
91
|
-
`+r}}function
|
|
92
|
-
`}]}function
|
|
93
|
-
`:"",n={};
|
|
94
|
-
`}),
|
|
95
|
-
`});let
|
|
96
|
-
`},{type:"element",tagName:"ol",properties:{},children:
|
|
97
|
-
`}]}}var
|
|
98
|
-
`});++n<
|
|
99
|
-
`}),r.push(
|
|
100
|
-
`}),r}function
|
|
101
|
-
`},o)),i}var OI=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var _n=class{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}};_n.prototype.property={},_n.prototype.normal={},_n.prototype.space=null;function Tb(e,t){let r={},n={},o=-1;for(;++o<e.length;)Object.assign(r,e[o].property),Object.assign(n,e[o].normal);return new _n(r,n,t)}function ba(e){return e.toLowerCase()}var Pt=class{constructor(t,r){this.property=t,this.attribute=r}};Pt.prototype.space=null,Pt.prototype.boolean=!1,Pt.prototype.booleanish=!1,Pt.prototype.overloadedBoolean=!1,Pt.prototype.number=!1,Pt.prototype.commaSeparated=!1,Pt.prototype.spaceSeparated=!1,Pt.prototype.commaOrSpaceSeparated=!1,Pt.prototype.mustUseProperty=!1,Pt.prototype.defined=!1;var wu={};te(wu,{boolean:()=>pe,booleanish:()=>Qe,commaOrSpaceSeparated:()=>Zt,commaSeparated:()=>wo,number:()=>z,overloadedBoolean:()=>Eb,spaceSeparated:()=>_e});var t9=0,pe=Oi(),Qe=Oi(),Eb=Oi(),z=Oi(),_e=Oi(),wo=Oi(),Zt=Oi();function Oi(){return 2**++t9}var Ab=Object.keys(wu),Mi=class extends Pt{constructor(t,r,n,o){let i=-1;if(super(t,r),MI(this,"space",o),typeof n=="number")for(;++i<Ab.length;){let s=Ab[i];MI(this,Ab[i],(n&wu[s])===wu[s])}}};Mi.prototype.defined=!0;function MI(e,t,r){r&&(e[t]=r)}var r9={}.hasOwnProperty;function wr(e){let t={},r={},n;for(n in e.properties)if(r9.call(e.properties,n)){let o=e.properties[n],i=new Mi(n,e.transform(e.attributes||{},n),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[ba(n)]=n,r[ba(i.attribute)]=n}return new _n(t,r,e.space)}var Db=wr({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var Cb=wr({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function tm(e,t){return t in e?e[t]:t}function rm(e,t){return tm(e,t.toLowerCase())}var Ob=wr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:rm,properties:{xmlns:null,xmlnsXLink:null}});var Mb=wr({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:_e,ariaCurrent:null,ariaDescribedBy:_e,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:_e,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:_e,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_e,ariaLevel:z,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:_e,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:_e,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:Qe,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null}});var _I=wr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:rm,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wo,acceptCharset:_e,accessKey:_e,action:null,allow:null,allowFullScreen:pe,allowPaymentRequest:pe,allowUserMedia:pe,alt:null,as:null,async:pe,autoCapitalize:null,autoComplete:_e,autoFocus:pe,autoPlay:pe,blocking:_e,capture:null,charSet:null,checked:pe,cite:null,className:_e,cols:z,colSpan:null,content:null,contentEditable:Qe,controls:pe,controlsList:_e,coords:z|wo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:pe,defer:pe,dir:null,dirName:null,disabled:pe,download:Eb,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:pe,formTarget:null,headers:_e,height:z,hidden:pe,high:z,href:null,hrefLang:null,htmlFor:_e,httpEquiv:_e,id:null,imageSizes:null,imageSrcSet:null,inert:pe,inputMode:null,integrity:null,is:null,isMap:pe,itemId:null,itemProp:_e,itemRef:_e,itemScope:pe,itemType:_e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:pe,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:pe,muted:pe,name:null,nonce:null,noModule:pe,noValidate:pe,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:pe,optimum:z,pattern:null,ping:_e,placeholder:null,playsInline:pe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:pe,referrerPolicy:null,rel:_e,required:pe,reversed:pe,rows:z,rowSpan:z,sandbox:_e,scope:null,scoped:pe,seamless:pe,selected:pe,shadowRootClonable:pe,shadowRootDelegatesFocus:pe,shadowRootMode:null,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:pe,useMap:null,value:Qe,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_e,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:pe,declare:pe,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:pe,noHref:pe,noShade:pe,noWrap:pe,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:pe,disableRemotePlayback:pe,prefix:null,property:null,results:z,security:null,unselectable:null}});var II=wr({space:"svg",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"},transform:tm,properties:{about:Zt,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:_e,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:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:pe,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,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:wo,g2:wo,glyphName:wo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:Zt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,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:z,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:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Zt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Zt,rev:Zt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Zt,requiredFeatures:Zt,requiredFonts:Zt,requiredFormats:Zt,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:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:Zt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Zt,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Zt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var n9=/^data[-\w.:]+$/i,PI=/-[a-z]/g,o9=/[A-Z]/g;function _b(e,t){let r=ba(t),n=t,o=Pt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&n9.test(t)){if(t.charAt(4)==="-"){let i=t.slice(5).replace(PI,s9);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{let i=t.slice(4);if(!PI.test(i)){let s=i.replace(o9,i9);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Mi}return new o(n,t)}function i9(e){return"-"+e.toLowerCase()}function s9(e){return e.charAt(1).toUpperCase()}var FI=Tb([Cb,Db,Ob,Mb,_I],"html"),nm=Tb([Cb,Db,Ob,Mb,II],"svg");var a9=/["&'<>`]/g,l9=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u9=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,c9=/[|\\{}()[\]^$+*?.]/g,NI=new WeakMap;function Ib(e,t){if(e=e.replace(t.subset?f9(t.subset):a9,n),t.subset||t.escapeOnly)return e;return e.replace(l9,r).replace(u9,n);function r(o,i,s){return t.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),t)}function n(o,i,s){return t.format(o.charCodeAt(0),s.charCodeAt(i+1),t)}}function f9(e){let t=NI.get(e);return t||(t=p9(e),NI.set(e,t)),t}function p9(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(c9,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var h9=/[\dA-Fa-f]/;function LI(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!h9.test(String.fromCharCode(t))?n:n+";"}var m9=/\d/;function RI(e,t,r){let n="&#"+String(e);return r&&t&&!m9.test(String.fromCharCode(t))?n:n+";"}var BI=["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 om={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 $I=["cent","copy","divide","gt","lt","not","para","times"];var UI={}.hasOwnProperty,Pb={},im;for(im in om)UI.call(om,im)&&(Pb[om[im]]=im);var d9=/[^\dA-Za-z]/;function zI(e,t,r,n){let o=String.fromCharCode(e);if(UI.call(Pb,o)){let i=Pb[o],s="&"+i;return r&&BI.includes(i)&&!$I.includes(i)&&(!n||t&&t!==61&&d9.test(String.fromCharCode(t)))?s:s+";"}return""}function jI(e,t,r){let n=LI(e,t,r.omitOptionalSemicolons),o;if((r.useNamedReferences||r.useShortestReferences)&&(o=zI(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!o)&&r.useShortestReferences){let i=RI(e,t,r.omitOptionalSemicolons);i.length<n.length&&(n=i)}return o&&(!r.useShortestReferences||o.length<n.length)?o:n}function qI(e){return"&#x"+e.toString(16).toUpperCase()+";"}function In(e,t){return Ib(e,Object.assign({format:jI},t))}function DHe(e,t){return Ib(e,Object.assign({format:qI},t))}var g9=/^>|^->|<!--|-->|--!>|<!-$/g,x9=[">"],y9=["<",">"];function HI(e,t,r,n){return n.settings.bogusComments?"<?"+In(e.value,Object.assign({},n.settings.characterReferences,{subset:x9}))+">":"<!--"+e.value.replace(g9,o)+"-->";function o(i){return In(i,Object.assign({},n.settings.characterReferences,{subset:y9}))}}function WI(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function IHe(e){let t=[],r=String(e||""),n=r.indexOf(","),o=0,i=!1;for(;!i;){n===-1&&(n=r.length,i=!0);let s=r.slice(o,n).trim();(s||!i)&&t.push(s),o=n+1,n=r.indexOf(",",o)}return t}function YI(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function FHe(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function VI(e){return e.join(" ").trim()}var b9=/[ \t\n\f\r]/g;function _i(e){return typeof e=="object"?e.type==="text"?GI(e.value):!1:GI(e)}function GI(e){return e.replace(b9,"")===""}var Ke=QI(1),Fb=QI(-1),w9=[];function QI(e){return t;function t(r,n,o){let i=r?r.children:w9,s=(n||0)+e,a=i[s];if(!o)for(;a&&_i(a);)s+=e,a=i[s];return a}}var v9={}.hasOwnProperty;function sm(e){return t;function t(r,n,o){return v9.call(e,r.tagName)&&e[r.tagName](r,n,o)}}var vu=sm({body:k9,caption:Nb,colgroup:Nb,dd:D9,dt:A9,head:Nb,html:S9,li:E9,optgroup:C9,option:O9,p:T9,rp:JI,rt:JI,tbody:_9,td:XI,tfoot:I9,th:XI,thead:M9,tr:P9});function Nb(e,t,r){let n=Ke(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&_i(n.value.charAt(0)))}function S9(e,t,r){let n=Ke(r,t);return!n||n.type!=="comment"}function k9(e,t,r){let n=Ke(r,t);return!n||n.type!=="comment"}function T9(e,t,r){let n=Ke(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function E9(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&n.tagName==="li"}function A9(e,t,r){let n=Ke(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function D9(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function JI(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function C9(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function O9(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function M9(e,t,r){let n=Ke(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function _9(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function I9(e,t,r){return!Ke(r,t)}function P9(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function XI(e,t,r){let n=Ke(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}var ZI=sm({body:L9,colgroup:R9,head:N9,html:F9,tbody:B9});function F9(e){let t=Ke(e,-1);return!t||t.type!=="comment"}function N9(e){let t=new Set;for(let n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}let r=e.children[0];return!r||r.type==="element"}function L9(e){let t=Ke(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&_i(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function R9(e,t,r){let n=Fb(r,t),o=Ke(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&vu(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function B9(e,t,r){let n=Fb(r,t),o=Ke(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&vu(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}var am={name:[[`
|
|
81
|
+
`+r}}i($z,"handler");function wx(t,e){return t.marker?_D(t.marker,e).repeat(3):_D(t.fence,e)}i(wx,"fence");function _D(t,e){return typeof t=="string"?t:t[e]}i(_D,"pick");var Hz="yaml";function Qs(t){let e=this,r=t||Hz,n=e.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),s=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(yx(r)),s.push(bx(r)),a.push(vx(r))}i(Qs,"remarkFrontmatter");var RD=typeof self=="object"?self:globalThis,zz=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 RD[l](u),o)}case 8:return r(BigInt(a),o);case"BigInt":return r(Object(BigInt(a)),o)}return r(new RD[s](a),o)},"unpair");return n},"deserializer"),oh=i(t=>zz(new Map,t)(0),"deserialize");var Js="",{toString:Wz}={},{keys:qz}=Object,Fl=i(t=>{let e=typeof t;if(e!=="object"||!t)return[0,e];let r=Wz.call(t).slice(8,-1);switch(r){case"Array":return[1,Js];case"Object":return[2,Js];case"Date":return[3,Js];case"RegExp":return[4,Js];case"Map":return[5,Js];case"Set":return[6,Js]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},"typeOf"),sh=i(([t,e])=>t===0&&(e==="function"||e==="symbol"),"shouldSkip"),jz=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]=Fl(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)return o([u,[...a]],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 qz(a))(t||!sh(Fl(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,d]of a)(t||!(sh(Fl(h))||sh(Fl(d))))&&f.push([s(h),s(d)]);return p}case 6:{let f=[],p=o([l,f],a);for(let h of a)(t||!sh(Fl(h)))&&f.push(s(h));return p}}let{message:c}=a;return o([l,{name:u,message:c}],a)},"pair");return s},"serializer"),ah=i((t,{json:e,lossy:r}={})=>{let n=[];return jz(!(e||r),!!e,new Map,n)(t),n},"serialize");var hi=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?oh(ah(t,e)):structuredClone(t):(t,e)=>oh(ah(t,e));var lh=ND("end"),uh=ND("start");function ND(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(ND,"point");function Ll(t){let e=uh(t),r=lh(t);if(e&&r)return{start:e,end:r}}i(Ll,"position");var fo=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],ch={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...fo,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...fo],h2:[["className","sr-only"]],img:[...fo,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...fo,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...fo],table:[...fo],ul:[...fo,["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 di={}.hasOwnProperty;function Ex(t,e){let r={type:"root",children:[]},n={schema:e?{...ch,...e}:ch,stack:[]},o=FD(n,t);return o&&(Array.isArray(o)?o.length===1?r=o[0]:r.children=o:r=o),r}i(Ex,"sanitize");function FD(t,e){if(e&&typeof e=="object"){let r=e;switch(typeof r.type=="string"?r.type:""){case"comment":return Uz(t,r);case"doctype":return Yz(t,r);case"element":return Vz(t,r);case"root":return Gz(t,r);case"text":return Qz(t,r);default:}}}i(FD,"transform");function Uz(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 Al(s,e),s}}i(Uz,"comment");function Yz(t,e){if(t.schema.allowDoctypes){let r={type:"doctype"};return Al(r,e),r}}i(Yz,"doctype");function Vz(t,e){let r=typeof e.tagName=="string"?e.tagName:"";t.stack.push(r);let n=LD(t,e.children),o=Jz(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&&di.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 Al(a,e),a}i(Vz,"element");function Gz(t,e){let n={type:"root",children:LD(t,e.children)};return Al(n,e),n}i(Gz,"root");function Qz(t,e){let n={type:"text",value:typeof e.value=="string"?e.value:""};return Al(n,e),n}i(Qz,"text");function LD(t,e){let r=[];if(Array.isArray(e)){let n=e,o=-1;for(;++o<n.length;){let s=FD(t,n[o]);s&&(Array.isArray(s)?r.push(...s):r.push(s))}}return r}i(LD,"children");function Jz(t,e){let r=t.stack[t.stack.length-1],n=t.schema.attributes,o=t.schema.required,s=n&&di.call(n,r)?n[r]:void 0,a=n&&di.call(n,"*")?n["*"]:void 0,l=e&&typeof e=="object"?e:{},u={},c;for(c in l)if(di.call(l,c)){let f=l[c],p=AD(t,$D(s,c),c,f);p==null&&(p=AD(t,$D(a,c),c,f)),p!=null&&(u[c]=p)}if(o&&di.call(o,r)){let f=o[r];for(c in f)di.call(f,c)&&!di.call(u,c)&&(u[c]=f[c])}return u}i(Jz,"properties");function AD(t,e,r,n){return e?Array.isArray(n)?Xz(t,e,r,n):BD(t,e,r,n):void 0}i(AD,"propertyValue");function Xz(t,e,r,n){let o=-1,s=[];for(;++o<n.length;){let a=BD(t,e,r,n[o]);(typeof a=="number"||typeof a=="string")&&s.push(a)}return s}i(Xz,"propertyValueMany");function BD(t,e,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&Zz(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(BD,"propertyValuePrimitive");function Zz(t,e,r){let n=t.schema.protocols&&di.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(Zz,"safeProtocol");function Al(t,e){let r=Ll(e);e.data&&(t.data=hi(e.data)),r&&(t.position=r)}i(Al,"patch");function $D(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($D,"findDefinition");function HD(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(HD,"blockquote");function zD(t,e){let r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,r),[t.applyData(e,r),{type:"text",value:`
|
|
82
|
+
`}]}i(zD,"hardBreak");function WD(t,e){let r=e.value?e.value+`
|
|
83
|
+
`:"",n={};e.lang&&(n.className=["language-"+e.lang]);let o={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return e.meta&&(o.data={meta:e.meta}),t.patch(e,o),o=t.applyData(e,o),o={type:"element",tagName:"pre",properties:{},children:[o]},t.patch(e,o),o}i(WD,"code");function qD(t,e){let r={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(qD,"strikethrough");function jD(t,e){let r={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(jD,"emphasis");function UD(t,e){let r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=String(e.identifier).toUpperCase(),o=nr(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(UD,"footnoteReference");function YD(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(YD,"heading");function VD(t,e){if(t.options.allowDangerousHtml){let r={type:"raw",value:e.value};return t.patch(e,r),t.applyData(e,r)}}i(VD,"html");function fh(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(fh,"revert");function GD(t,e){let r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return fh(t,e);let o={src:nr(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(GD,"imageReference");function QD(t,e){let r={src:nr(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(QD,"image");function JD(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(JD,"inlineCode");function XD(t,e){let r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return fh(t,e);let o={href:nr(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(XD,"linkReference");function ZD(t,e){let r={href:nr(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(ZD,"link");function eC(t,e,r){let n=t.all(e),o=r?Kz(r):KD(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:`
|
|
84
|
+
`}),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:`
|
|
85
|
+
`});let c={type:"element",tagName:"li",properties:s,children:a};return t.patch(e,c),t.applyData(e,c)}i(eC,"listItem");function Kz(t){let e=!1;if(t.type==="list"){e=t.spread||!1;let r=t.children,n=-1;for(;!e&&++n<r.length;)e=KD(r[n])}return e}i(Kz,"listLoose");function KD(t){let e=t.spread;return e??t.children.length>1}i(KD,"listItemLoose");function tC(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(tC,"list");function rC(t,e){let r={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(rC,"paragraph");function nC(t,e){let r={type:"root",children:t.wrap(t.all(e))};return t.patch(e,r),t.applyData(e,r)}i(nC,"root");function iC(t,e){let r={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(iC,"strong");function oC(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=uh(e.children[1]),u=lh(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(oC,"table");function sC(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={},d=a?a[u]:void 0;d&&(h.align=d);let m={type:"element",tagName:s,properties:h,children:[]};p&&(m.children=t.all(p),t.patch(p,m),m=t.applyData(p,m)),c.push(m)}let f={type:"element",tagName:"tr",properties:{},children:t.wrap(c,!0)};return t.patch(e,f),t.applyData(e,f)}i(sC,"tableRow");function aC(t,e){let r={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}i(aC,"tableCell");var s4e=9,a4e=32;function uC(t){let e=String(t),r=/\r?\n|\r/g,n=r.exec(e),o=0,s=[];for(;n;)s.push(lC(e.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(e);return s.push(lC(e.slice(o),o>0,!1)),s.join("")}i(uC,"trimLines");function lC(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(lC,"trimLine");function cC(t,e){let r={type:"text",value:uC(String(e.value))};return t.patch(e,r),t.applyData(e,r)}i(cC,"text");function fC(t,e){let r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,r),t.applyData(e,r)}i(fC,"thematicBreak");var Dx={blockquote:HD,break:zD,code:WD,delete:qD,emphasis:jD,footnoteReference:UD,heading:YD,html:VD,imageReference:GD,image:QD,inlineCode:JD,linkReference:XD,link:ZD,listItem:eC,list:tC,paragraph:rC,root:nC,strong:iC,table:oC,tableCell:aC,tableRow:sC,text:cC,thematicBreak:fC,toml:ph,yaml:ph,definition:ph,footnoteDefinition:ph};function ph(){}i(ph,"ignore");function pC(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(pC,"defaultFootnoteBackContent");function hC(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}i(hC,"defaultFootnoteBackLabel");function dC(t){let e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||pC,n=t.options.footnoteBackLabel||hC,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=nr(p.toLowerCase()),d=0,m=[],g=t.footnoteCounts.get(p);for(;g!==void 0&&++d<=g;){m.length>0&&m.push({type:"text",value:" "});let S=typeof r=="string"?r:r(u,d);typeof S=="string"&&(S={type:"text",value:S}),m.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+h+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(u,d),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}let x=f[f.length-1];if(x&&x.type==="element"&&x.tagName==="p"){let S=x.children[x.children.length-1];S&&S.type==="text"?S.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...m)}else f.push(...m);let y={type:"element",tagName:"li",properties:{id:e+"fn-"+h},children:t.wrap(f,!0)};t.patch(c,y),l.push(y)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...hi(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
86
|
+
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(l,!0)},{type:"text",value:`
|
|
87
|
+
`}]}}i(dC,"footer");var Cx={}.hasOwnProperty,eW={};function gC(t,e){let r=e||eW,n=new Map,o=new Map,s=new Map,a={...Dx,...r.handlers},l={all:c,applyData:rW,definitionById:n,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:a,one:u,options:r,patch:tW,wrap:iW};return kl(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,d=l.handlers[h];if(Cx.call(l.handlers,h)&&d)return d(l,f,p);if(l.options.passThrough&&l.options.passThrough.includes(h)){if("children"in f){let{children:g,...x}=f,y=hi(x);return y.children=l.all(f),y}return hi(f)}return(l.options.unknownHandler||nW)(l,f,p)}i(u,"one");function c(f){let p=[];if("children"in f){let h=f.children,d=-1;for(;++d<h.length;){let m=l.one(h[d],f);if(m){if(d&&h[d-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=mC(m.value)),!Array.isArray(m)&&m.type==="element")){let g=m.children[0];g&&g.type==="text"&&(g.value=mC(g.value))}Array.isArray(m)?p.push(...m):p.push(m)}}}return p}i(c,"all")}i(gC,"createState");function tW(t,e){t.position&&(e.position=Ll(t))}i(tW,"patch");function rW(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,hi(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}i(rW,"applyData");function nW(t,e){let r=e.data||{},n="value"in e&&!(Cx.call(r,"hProperties")||Cx.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(nW,"defaultUnknownHandler");function iW(t,e){let r=[],n=-1;for(e&&r.push({type:"text",value:`
|
|
88
|
+
`});++n<t.length;)n&&r.push({type:"text",value:`
|
|
89
|
+
`}),r.push(t[n]);return e&&t.length>0&&r.push({type:"text",value:`
|
|
90
|
+
`}),r}i(iW,"wrap");function mC(t){let e=0,r=t.charCodeAt(e);for(;r===9||r===32;)e++,r=t.charCodeAt(e);return t.slice(e)}i(mC,"trimMarkdownSpaceStart");function Mx(t,e){let r=gC(t,e),n=r.one(t,void 0),o=dC(r),s=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return o&&("children"in s,s.children.push({type:"text",value:`
|
|
91
|
+
`},o)),s}i(Mx,"toHast");var xC=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var On=class{static{i(this,"Schema")}constructor(e,r,n){this.property=e,this.normal=r,n&&(this.space=n)}};On.prototype.property={},On.prototype.normal={},On.prototype.space=null;function Ox(t,e){let r={},n={},o=-1;for(;++o<t.length;)Object.assign(r,t[o].property),Object.assign(n,t[o].normal);return new On(r,n,e)}i(Ox,"merge");function Xs(t){return t.toLowerCase()}i(Xs,"normalize");var Ot=class{static{i(this,"Info")}constructor(e,r){this.property=e,this.attribute=r}};Ot.prototype.space=null,Ot.prototype.boolean=!1,Ot.prototype.booleanish=!1,Ot.prototype.overloadedBoolean=!1,Ot.prototype.number=!1,Ot.prototype.commaSeparated=!1,Ot.prototype.spaceSeparated=!1,Ot.prototype.commaOrSpaceSeparated=!1,Ot.prototype.mustUseProperty=!1,Ot.prototype.defined=!1;var Bl={};le(Bl,{boolean:()=>fe,booleanish:()=>Qe,commaOrSpaceSeparated:()=>Ut,commaSeparated:()=>mi,number:()=>A,overloadedBoolean:()=>Ix,spaceSeparated:()=>Pe});var oW=0,fe=po(),Qe=po(),Ix=po(),A=po(),Pe=po(),mi=po(),Ut=po();function po(){return 2**++oW}i(po,"increment");var Px=Object.keys(Bl),ho=class extends Ot{static{i(this,"DefinedInfo")}constructor(e,r,n,o){let s=-1;if(super(e,r),yC(this,"space",o),typeof n=="number")for(;++s<Px.length;){let a=Px[s];yC(this,Px[s],(n&Bl[a])===Bl[a])}}};ho.prototype.defined=!0;function yC(t,e,r){r&&(t[e]=r)}i(yC,"mark");var sW={}.hasOwnProperty;function mr(t){let e={},r={},n;for(n in t.properties)if(sW.call(t.properties,n)){let o=t.properties[n],s=new ho(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 On(e,r,t.space)}i(mr,"create");var _x=mr({space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var Rx=mr({space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function hh(t,e){return e in t?t[e]:e}i(hh,"caseSensitiveTransform");function dh(t,e){return hh(t,e.toLowerCase())}i(dh,"caseInsensitiveTransform");var Nx=mr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:dh,properties:{xmlns:null,xmlnsXLink:null}});var Fx=mr({transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Qe,ariaAutoComplete:null,ariaBusy:Qe,ariaChecked:Qe,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:Pe,ariaCurrent:null,ariaDescribedBy:Pe,ariaDetails:null,ariaDisabled:Qe,ariaDropEffect:Pe,ariaErrorMessage:null,ariaExpanded:Qe,ariaFlowTo:Pe,ariaGrabbed:Qe,ariaHasPopup:null,ariaHidden:Qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pe,ariaLevel:A,ariaLive:null,ariaModal:Qe,ariaMultiLine:Qe,ariaMultiSelectable:Qe,ariaOrientation:null,ariaOwns:Pe,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:Qe,ariaReadOnly:Qe,ariaRelevant:null,ariaRequired:Qe,ariaRoleDescription:Pe,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:Qe,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null}});var wC=mr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:dh,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mi,acceptCharset:Pe,accessKey:Pe,action:null,allow:null,allowFullScreen:fe,allowPaymentRequest:fe,allowUserMedia:fe,alt:null,as:null,async:fe,autoCapitalize:null,autoComplete:Pe,autoFocus:fe,autoPlay:fe,blocking:Pe,capture:null,charSet:null,checked:fe,cite:null,className:Pe,cols:A,colSpan:null,content:null,contentEditable:Qe,controls:fe,controlsList:Pe,coords:A|mi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:fe,defer:fe,dir:null,dirName:null,disabled:fe,download:Ix,draggable:Qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:fe,formTarget:null,headers:Pe,height:A,hidden:fe,high:A,href:null,hrefLang:null,htmlFor:Pe,httpEquiv:Pe,id:null,imageSizes:null,imageSrcSet:null,inert:fe,inputMode:null,integrity:null,is:null,isMap:fe,itemId:null,itemProp:Pe,itemRef:Pe,itemScope:fe,itemType:Pe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:fe,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:fe,muted:fe,name:null,nonce:null,noModule:fe,noValidate:fe,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:fe,optimum:A,pattern:null,ping:Pe,placeholder:null,playsInline:fe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:fe,referrerPolicy:null,rel:Pe,required:fe,reversed:fe,rows:A,rowSpan:A,sandbox:Pe,scope:null,scoped:fe,seamless:fe,selected:fe,shadowRootClonable:fe,shadowRootDelegatesFocus:fe,shadowRootMode:null,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:Qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:fe,useMap:null,value:Qe,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pe,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:fe,declare:fe,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:fe,noHref:fe,noShade:fe,noWrap:fe,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:Qe,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:fe,disableRemotePlayback:fe,prefix:null,property:null,results:A,security:null,unselectable:null}});var bC=mr({space:"svg",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"},transform:hh,properties:{about:Ut,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:Pe,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:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:fe,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,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:mi,g2:mi,glyphName:mi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:Ut,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,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:A,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:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ut,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ut,rev:Ut,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ut,requiredFeatures:Ut,requiredFonts:Ut,requiredFormats:Ut,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:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:Ut,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ut,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ut,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var aW=/^data[-\w.:]+$/i,vC=/-[a-z]/g,lW=/[A-Z]/g;function Lx(t,e){let r=Xs(e),n=e,o=Ot;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&aW.test(e)){if(e.charAt(4)==="-"){let s=e.slice(5).replace(vC,cW);n="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{let s=e.slice(4);if(!vC.test(s)){let a=s.replace(lW,uW);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}o=ho}return new o(n,e)}i(Lx,"find");function uW(t){return"-"+t.toLowerCase()}i(uW,"kebab");function cW(t){return t.charAt(1).toUpperCase()}i(cW,"camelcase");var kC=Ox([Rx,_x,Nx,Fx,wC],"html"),mh=Ox([Rx,_x,Nx,Fx,bC],"svg");var fW=/["&'<>`]/g,pW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hW=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,dW=/[|\\{}()[\]^$+*?.]/g,SC=new WeakMap;function Ax(t,e){if(t=t.replace(e.subset?mW(e.subset):fW,n),e.subset||e.escapeOnly)return t;return t.replace(pW,r).replace(hW,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(Ax,"core");function mW(t){let e=SC.get(t);return e||(e=gW(t),SC.set(t,e)),e}i(mW,"charactersToExpressionCached");function gW(t){let e=[],r=-1;for(;++r<t.length;)e.push(t[r].replace(dW,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}i(gW,"charactersToExpression");var xW=/[\dA-Fa-f]/;function TC(t,e,r){let n="&#x"+t.toString(16).toUpperCase();return r&&e&&!xW.test(String.fromCharCode(e))?n:n+";"}i(TC,"toHexadecimal");var yW=/\d/;function EC(t,e,r){let n="&#"+String(t);return r&&e&&!yW.test(String.fromCharCode(e))?n:n+";"}i(EC,"toDecimal");var DC=["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 gh={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 CC=["cent","copy","divide","gt","lt","not","para","times"];var MC={}.hasOwnProperty,Bx={},xh;for(xh in gh)MC.call(gh,xh)&&(Bx[gh[xh]]=xh);var wW=/[^\dA-Za-z]/;function OC(t,e,r,n){let o=String.fromCharCode(t);if(MC.call(Bx,o)){let s=Bx[o],a="&"+s;return r&&DC.includes(s)&&!CC.includes(s)&&(!n||e&&e!==61&&wW.test(String.fromCharCode(e)))?a:a+";"}return""}i(OC,"toNamed");function IC(t,e,r){let n=TC(t,e,r.omitOptionalSemicolons),o;if((r.useNamedReferences||r.useShortestReferences)&&(o=OC(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!o)&&r.useShortestReferences){let s=EC(t,e,r.omitOptionalSemicolons);s.length<n.length&&(n=s)}return o&&(!r.useShortestReferences||o.length<n.length)?o:n}i(IC,"formatSmart");function PC(t){return"&#x"+t.toString(16).toUpperCase()+";"}i(PC,"formatBasic");function In(t,e){return Ax(t,Object.assign({format:IC},e))}i(In,"stringifyEntities");function NYe(t,e){return Ax(t,Object.assign({format:PC},e))}i(NYe,"stringifyEntitiesLight");var bW=/^>|^->|<!--|-->|--!>|<!-$/g,vW=[">"],kW=["<",">"];function _C(t,e,r,n){return n.settings.bogusComments?"<?"+In(t.value,Object.assign({},n.settings.characterReferences,{subset:vW}))+">":"<!--"+t.value.replace(bW,o)+"-->";function o(s){return In(s,Object.assign({},n.settings.characterReferences,{subset:kW}))}}i(_C,"comment");function RC(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}i(RC,"doctype");function WYe(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(WYe,"parse");function NC(t,e){let r=e||{};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}i(NC,"stringify");function UYe(t){let e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}i(UYe,"parse");function FC(t){return t.join(" ").trim()}i(FC,"stringify");var SW=/[ \t\n\f\r]/g;function mo(t){return typeof t=="object"?t.type==="text"?LC(t.value):!1:LC(t)}i(mo,"whitespace");function LC(t){return t.replace(SW,"")===""}i(LC,"empty");var Xe=AC(1),$x=AC(-1),TW=[];function AC(t){return e;function e(r,n,o){let s=r?r.children:TW,a=(n||0)+t,l=s[a];if(!o)for(;l&&mo(l);)a+=t,l=s[a];return l}}i(AC,"siblings");var EW={}.hasOwnProperty;function yh(t){return e;function e(r,n,o){return EW.call(t,r.tagName)&&t[r.tagName](r,n,o)}}i(yh,"omission");var $l=yh({body:CW,caption:Hx,colgroup:Hx,dd:PW,dt:IW,head:Hx,html:DW,li:OW,optgroup:_W,option:RW,p:MW,rp:BC,rt:BC,tbody:FW,td:$C,tfoot:LW,th:$C,thead:NW,tr:AW});function Hx(t,e,r){let n=Xe(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&mo(n.value.charAt(0)))}i(Hx,"headOrColgroupOrCaption");function DW(t,e,r){let n=Xe(r,e);return!n||n.type!=="comment"}i(DW,"html");function CW(t,e,r){let n=Xe(r,e);return!n||n.type!=="comment"}i(CW,"body");function MW(t,e,r){let n=Xe(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(MW,"p");function OW(t,e,r){let n=Xe(r,e);return!n||n.type==="element"&&n.tagName==="li"}i(OW,"li");function IW(t,e,r){let n=Xe(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}i(IW,"dt");function PW(t,e,r){let n=Xe(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}i(PW,"dd");function BC(t,e,r){let n=Xe(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}i(BC,"rubyElement");function _W(t,e,r){let n=Xe(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}i(_W,"optgroup");function RW(t,e,r){let n=Xe(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}i(RW,"option");function NW(t,e,r){let n=Xe(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}i(NW,"thead");function FW(t,e,r){let n=Xe(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}i(FW,"tbody");function LW(t,e,r){return!Xe(r,e)}i(LW,"tfoot");function AW(t,e,r){let n=Xe(r,e);return!n||n.type==="element"&&n.tagName==="tr"}i(AW,"tr");function $C(t,e,r){let n=Xe(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}i($C,"cells");var HC=yh({body:HW,colgroup:zW,head:$W,html:BW,tbody:WW});function BW(t){let e=Xe(t,-1);return!e||e.type!=="comment"}i(BW,"html");function $W(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($W,"head");function HW(t){let e=Xe(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&mo(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}i(HW,"body");function zW(t,e,r){let n=$x(r,e),o=Xe(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&$l(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}i(zW,"colgroup");function WW(t,e,r){let n=$x(r,e),o=Xe(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&$l(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}i(WW,"tbody");var wh={name:[[`
|
|
102
92
|
\f\r &/=>`.split(""),`
|
|
103
93
|
\f\r "&'/=>\``.split("")],[`\0
|
|
104
94
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -106,118 +96,99 @@ ${o}
|
|
|
106
96
|
\f\r &>`.split(""),`\0
|
|
107
97
|
\f\r "&'<=>\``.split("")],[`\0
|
|
108
98
|
\f\r "&'<=>\``.split(""),`\0
|
|
109
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function
|
|
110
|
-
`:
|
|
111
|
-
`;)
|
|
99
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function zC(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=mh);let c=qW(n,t.properties),f=n.all(o.space==="html"&&t.tagName==="template"?t.content:t);return n.schema=o,f&&(a=!1),(c||!s||!HC(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||!$l(t,e,r))&&l.push("</"+t.tagName+">"),l.join("")}i(zC,"element");function qW(t,e){let r=[],n=-1,o;if(e){for(o in e)if(e[o]!==null&&e[o]!==void 0){let s=jW(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(qW,"serializeAttributes");function jW(t,e,r){let n=Lx(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=In(n.attribute,Object.assign({},t.settings.characterReferences,{subset:wh.name[o][s]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?NC:FC)(r,{padLeft:!t.settings.tightCommaSeparatedLists}):String(r),t.settings.collapseEmptyAttributes&&!r)?u:(t.settings.preferUnquoted&&(l=In(r,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:wh.unquoted[o][s]}))),l!==r&&(t.settings.quoteSmart&&Hs(r,a)>Hs(r,t.alternative)&&(a=t.alternative),l=a+In(r,Object.assign({},t.settings.characterReferences,{subset:(a==="'"?wh.single:wh.double)[o][s],attribute:!0}))+a),u+(l&&"="+l))}i(jW,"serializeAttribute");var UW=["<","&"];function bh(t,e,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?t.value:In(t.value,Object.assign({},n.settings.characterReferences,{subset:UW}))}i(bh,"text");function WC(t,e,r,n){return n.settings.allowDangerousHtml?t.value:bh(t,e,r,n)}i(WC,"raw");function qC(t,e,r,n){return n.all(t)}i(qC,"root");var jC=Fp("type",{invalid:YW,unknown:VW,handlers:{comment:_C,doctype:RC,element:zC,raw:WC,root:qC,text:bh}});function YW(t){throw new Error("Expected node, not `"+t+"`")}i(YW,"invalid");function VW(t){let e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}i(VW,"unknown");var GW={},QW={},JW=[];function zx(t,e){let r=e||GW,n=r.quote||'"',o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:XW,all:ZW,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||xC,characterReferences:r.characterReferences||QW,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?mh:kC,quote:n,alternative:o}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}i(zx,"toHtml");function XW(t,e,r){return jC(t,e,r,this)}i(XW,"one");function ZW(t){let e=[],r=t&&t.children||JW,n=-1;for(;++n<r.length;)e[n]=this.one(r[n],n,t);return e.join("")}i(ZW,"all");var KW={};function Zs(t){let e=this,{handlers:r,sanitize:n,...o}=t||KW,s=!1,a;typeof n=="boolean"?s=!n:n&&(a=n),e.compiler=l;function l(u,c){let f=Mx(u,{handlers:r,allowDangerousHtml:s}),p=s?f:Ex(f,a),h=zx(p,{...o,allowDangerousHtml:s});return c.extname&&(c.extname=".html"),u&&u.type==="root"&&h&&/[^\r\n]/.test(h.charAt(h.length-1))?h+`
|
|
100
|
+
`:h}i(l,"compiler")}i(Zs,"remarkHtml");function Ks(t){let e=this;e.compiler=r;function r(n){return _g(n,{...e.data("settings"),...t,extensions:e.data("toMarkdownExtensions")||[]})}i(r,"compiler")}i(Ks,"remarkStringify");function eq(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(eq,"extend");function Wx(t,e){return Array(e+1).join(t)}i(Wx,"repeat");function tq(t){return t.replace(/^\n*/,"")}i(tq,"trimLeadingNewlines");function rq(t){for(var e=t.length;e>0&&t[e-1]===`
|
|
101
|
+
`;)e--;return t.substring(0,e)}i(rq,"trimTrailingNewlines");var nq=["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 qx(t){return jx(t,nq)}i(qx,"isBlock");var UC=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function YC(t){return jx(t,UC)}i(YC,"isVoid");function iq(t){return GC(t,UC)}i(iq,"hasVoid");var VC=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function oq(t){return jx(t,VC)}i(oq,"isMeaningfulWhenBlank");function sq(t){return GC(t,VC)}i(sq,"hasMeaningfulWhenBlank");function jx(t,e){return e.indexOf(t.nodeName)>=0}i(jx,"is");function GC(t,e){return t.getElementsByTagName&&e.some(function(r){return t.getElementsByTagName(r).length})}i(GC,"has");var It={};It.paragraph={filter:"p",replacement:i(function(t){return`
|
|
112
102
|
|
|
113
|
-
`+
|
|
103
|
+
`+t+`
|
|
114
104
|
|
|
115
|
-
`}},
|
|
116
|
-
`}},
|
|
105
|
+
`},"replacement")},It.lineBreak={filter:"br",replacement:i(function(t,e,r){return r.br+`
|
|
106
|
+
`},"replacement")},It.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:i(function(t,e,r){var n=Number(e.nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var o=Wx(n===1?"=":"-",t.length);return`
|
|
117
107
|
|
|
118
|
-
`+
|
|
108
|
+
`+t+`
|
|
119
109
|
`+o+`
|
|
120
110
|
|
|
121
111
|
`}else return`
|
|
122
112
|
|
|
123
|
-
`+
|
|
113
|
+
`+Wx("#",n)+" "+t+`
|
|
124
114
|
|
|
125
|
-
`}},
|
|
115
|
+
`},"replacement")},It.blockquote={filter:"blockquote",replacement:i(function(t){return t=t.replace(/^\n+|\n+$/g,""),t=t.replace(/^/gm,"> "),`
|
|
126
116
|
|
|
127
|
-
`+
|
|
117
|
+
`+t+`
|
|
128
118
|
|
|
129
|
-
`}},
|
|
130
|
-
`+
|
|
119
|
+
`},"replacement")},It.list={filter:["ul","ol"],replacement:i(function(t,e){var r=e.parentNode;return r.nodeName==="LI"&&r.lastElementChild===e?`
|
|
120
|
+
`+t:`
|
|
131
121
|
|
|
132
|
-
`+
|
|
122
|
+
`+t+`
|
|
133
123
|
|
|
134
|
-
`}},
|
|
124
|
+
`},"replacement")},It.listItem={filter:"li",replacement:i(function(t,e,r){t=t.replace(/^\n+/,"").replace(/\n+$/,`
|
|
135
125
|
`).replace(/\n/gm,`
|
|
136
|
-
`);var n=r.bulletListMarker+" ",o=
|
|
137
|
-
`:"")}},
|
|
126
|
+
`);var n=r.bulletListMarker+" ",o=e.parentNode;if(o.nodeName==="OL"){var s=o.getAttribute("start"),a=Array.prototype.indexOf.call(o.children,e);n=(s?Number(s)+a:a+1)+". "}return n+t+(e.nextSibling&&!/\n$/.test(t)?`
|
|
127
|
+
`:"")},"replacement")},It.indentedCodeBlock={filter:i(function(t,e){return e.codeBlockStyle==="indented"&&t.nodeName==="PRE"&&t.firstChild&&t.firstChild.nodeName==="CODE"},"filter"),replacement:i(function(t,e,r){return`
|
|
138
128
|
|
|
139
|
-
`+
|
|
129
|
+
`+e.firstChild.textContent.replace(/\n/g,`
|
|
140
130
|
`)+`
|
|
141
131
|
|
|
142
|
-
`}},
|
|
132
|
+
`},"replacement")},It.fencedCodeBlock={filter:i(function(t,e){return e.codeBlockStyle==="fenced"&&t.nodeName==="PRE"&&t.firstChild&&t.firstChild.nodeName==="CODE"},"filter"),replacement:i(function(t,e,r){for(var n=e.firstChild.getAttribute("class")||"",o=(n.match(/language-(\S+)/)||[null,""])[1],s=e.firstChild.textContent,a=r.fence.charAt(0),l=3,u=new RegExp("^"+a+"{3,}","gm"),c;c=u.exec(s);)c[0].length>=l&&(l=c[0].length+1);var f=Wx(a,l);return`
|
|
143
133
|
|
|
144
|
-
`+
|
|
145
|
-
`+
|
|
146
|
-
`+
|
|
134
|
+
`+f+o+`
|
|
135
|
+
`+s.replace(/\n$/,"")+`
|
|
136
|
+
`+f+`
|
|
147
137
|
|
|
148
|
-
`}},
|
|
138
|
+
`},"replacement")},It.horizontalRule={filter:"hr",replacement:i(function(t,e,r){return`
|
|
149
139
|
|
|
150
140
|
`+r.hr+`
|
|
151
141
|
|
|
152
|
-
`}},
|
|
142
|
+
`},"replacement")},It.inlineLink={filter:i(function(t,e){return e.linkStyle==="inlined"&&t.nodeName==="A"&&t.getAttribute("href")},"filter"),replacement:i(function(t,e){var r=e.getAttribute("href");r&&(r=r.replace(/([()])/g,"\\$1"));var n=vh(e.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+t+"]("+r+n+")"},"replacement")},It.referenceLink={filter:i(function(t,e){return e.linkStyle==="referenced"&&t.nodeName==="A"&&t.getAttribute("href")},"filter"),replacement:i(function(t,e,r){var n=e.getAttribute("href"),o=vh(e.getAttribute("title"));o&&(o=' "'+o+'"');var s,a;switch(r.linkReferenceStyle){case"collapsed":s="["+t+"][]",a="["+t+"]: "+n+o;break;case"shortcut":s="["+t+"]",a="["+t+"]: "+n+o;break;default:var l=this.references.length+1;s="["+t+"]["+l+"]",a="["+l+"]: "+n+o}return this.references.push(a),s},"replacement"),references:[],append:i(function(t){var e="";return this.references.length&&(e=`
|
|
153
143
|
|
|
154
144
|
`+this.references.join(`
|
|
155
145
|
`)+`
|
|
156
146
|
|
|
157
|
-
`,this.references=[]),
|
|
158
|
-
`):""}function
|
|
147
|
+
`,this.references=[]),e},"append")},It.emphasis={filter:["em","i"],replacement:i(function(t,e,r){return t.trim()?r.emDelimiter+t+r.emDelimiter:""},"replacement")},It.strong={filter:["strong","b"],replacement:i(function(t,e,r){return t.trim()?r.strongDelimiter+t+r.strongDelimiter:""},"replacement")},It.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")},It.image={filter:"img",replacement:i(function(t,e){var r=vh(e.getAttribute("alt")),n=e.getAttribute("src")||"",o=vh(e.getAttribute("title")),s=o?' "'+o+'"':"";return n?"":""},"replacement")};function vh(t){return t?t.replace(/(\n+\s*)+/g,`
|
|
148
|
+
`):""}i(vh,"cleanAttribute");function QC(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(QC,"Rules"),QC.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=Ux(this.array,t,this.options))||(e=Ux(this._keep,t,this.options))||(e=Ux(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 Ux(t,e,r){for(var n=0;n<t.length;n++){var o=t[n];if(aq(o,e,r))return o}}i(Ux,"findRule");function aq(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(aq,"filterValue");function lq(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=JC(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=Yx(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=Yx(u);continue}var f=JC(l,u,o);l=u,u=f}s&&(s.data=s.data.replace(/ $/,""),s.data||Yx(s))}}i(lq,"collapseWhitespace");function Yx(t){var e=t.nextSibling||t.parentNode;return t.parentNode.removeChild(t),e}i(Yx,"remove");function JC(t,e,r){return t&&t.parentNode===e||r(e)?e.nextSibling||e.parentNode:e.firstChild||e.nextSibling||e.parentNode}i(JC,"next");var Vx=typeof window<"u"?window:{};function uq(){var t=Vx.DOMParser,e=!1;try{new t().parseFromString("","text/html")&&(e=!0)}catch{}return e}i(uq,"canParseHTMLNatively");function cq(){var t=i(function(){},"Parser");return fq()?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(cq,"createHTMLParser");function fq(){var t=!1;try{document.implementation.createHTMLDocument("").open()}catch{Vx.ActiveXObject&&(t=!0)}return t}i(fq,"shouldUseActiveX");var pq=uq()?Vx.DOMParser:cq();function hq(t,e){var r;if(typeof t=="string"){var n=dq().parseFromString('<x-turndown id="turndown-root">'+t+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=t.cloneNode(!0);return lq({element:r,isBlock:qx,isVoid:YC,isPre:e.preformattedCode?mq:null}),r}i(hq,"RootNode");var Gx;function dq(){return Gx=Gx||new pq,Gx}i(dq,"htmlParser");function mq(t){return t.nodeName==="PRE"||t.nodeName==="CODE"}i(mq,"isPreOrCode");function gq(t,e){return t.isBlock=qx(t),t.isCode=t.nodeName==="CODE"||t.parentNode.isCode,t.isBlank=xq(t),t.flankingWhitespace=yq(t,e),t}i(gq,"Node");function xq(t){return!YC(t)&&!oq(t)&&/^\s*$/i.test(t.textContent)&&!iq(t)&&!sq(t)}i(xq,"isBlank");function yq(t,e){if(t.isBlock||e.preformattedCode&&t.isCode)return{leading:"",trailing:""};var r=wq(t.textContent);return r.leadingAscii&&XC("left",t,e)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&XC("right",t,e)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}i(yq,"flankingWhitespace");function wq(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(wq,"edgeWhitespace");function XC(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&&!qx(n)&&(s=o.test(n.textContent))),s}i(XC,"isFlankedByWhitespace");var bq=Array.prototype.reduce,vq=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function kh(t){if(!(this instanceof kh))return new kh(t);var e={rules:It,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:i(function(r,n){return n.isBlock?`
|
|
159
149
|
|
|
160
|
-
`:""},keepReplacement:function(r,n){return n.isBlock?`
|
|
150
|
+
`:""},"blankReplacement"),keepReplacement:i(function(r,n){return n.isBlock?`
|
|
161
151
|
|
|
162
152
|
`+n.outerHTML+`
|
|
163
153
|
|
|
164
|
-
`:n.outerHTML},defaultReplacement:function(r,n){return n.isBlock?`
|
|
154
|
+
`:n.outerHTML},"keepReplacement"),defaultReplacement:i(function(r,n){return n.isBlock?`
|
|
165
155
|
|
|
166
156
|
`+r+`
|
|
167
157
|
|
|
168
|
-
`:r}};this.options=
|
|
158
|
+
`:r},"defaultReplacement")};this.options=eq({},e,t),this.rules=new QC(this.options)}i(kh,"TurndownService"),kh.prototype={turndown:i(function(t){if(!Tq(t))throw new TypeError(t+" is not a string, or an element/document/fragment node.");if(t==="")return"";var e=ZC.call(this,new hq(t,this.options));return kq.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 vq.reduce(function(e,r){return e.replace(r[0],r[1])},t)},"escape")};function ZC(t){var e=this;return bq.call(t.childNodes,function(r,n){n=new gq(n,e.options);var o="";return n.nodeType===3?o=n.isCode?n.nodeValue:e.escape(n.nodeValue):n.nodeType===1&&(o=Sq.call(e,n)),KC(r,o)},"")}i(ZC,"process");function kq(t){var e=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(t=KC(t,r.append(e.options)))}),t.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}i(kq,"postProcess");function Sq(t){var e=this.rules.forNode(t),r=ZC.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(Sq,"replacementForNode");function KC(t,e){var r=rq(t),n=tq(e),o=Math.max(t.length-r.length,e.length-n.length),s=`
|
|
169
159
|
|
|
170
|
-
`.substring(0,o);return r+
|
|
160
|
+
`.substring(0,o);return r+s+n}i(KC,"join");function Tq(t){return t!=null&&(typeof t=="string"||t.nodeType&&(t.nodeType===1||t.nodeType===9||t.nodeType===11))}i(Tq,"canConvert");var Sh=kh;var Hl={};le(Hl,{gfm:()=>rM,highlightedCodeBlock:()=>Jx,strikethrough:()=>Xx,tables:()=>Zx,taskListItems:()=>Kx});var eM=/highlight-(?:text|source)-([a-z0-9]+)/;function Jx(t){t.addRule("highlightedCodeBlock",{filter:i(function(e){var r=e.firstChild;return e.nodeName==="DIV"&&eM.test(e.className)&&r&&r.nodeName==="PRE"},"filter"),replacement:i(function(e,r,n){var o=r.className||"",s=(o.match(eM)||[null,""])[1];return`
|
|
171
161
|
|
|
172
|
-
`+n.fence+
|
|
162
|
+
`+n.fence+s+`
|
|
173
163
|
`+r.firstChild.textContent+`
|
|
174
164
|
`+n.fence+`
|
|
175
165
|
|
|
176
|
-
`}})}function
|
|
177
|
-
`+
|
|
178
|
-
`+r:"")}},
|
|
166
|
+
`},"replacement")})}i(Jx,"highlightedCodeBlock");function Xx(t){t.addRule("strikethrough",{filter:["del","s","strike"],replacement:i(function(e){return"~"+e+"~"},"replacement")})}i(Xx,"strikethrough");var Eq=Array.prototype.indexOf,Dq=Array.prototype.every,ea={};ea.tableCell={filter:["th","td"],replacement:i(function(t,e){return tM(t,e)},"replacement")},ea.tableRow={filter:"tr",replacement:i(function(t,e){var r="",n={left:":--",right:"--:",center:":-:"};if(Qx(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+=tM(s,e.childNodes[o])}return`
|
|
167
|
+
`+t+(r?`
|
|
168
|
+
`+r:"")},"replacement")},ea.table={filter:i(function(t){return t.nodeName==="TABLE"&&Qx(t.rows[0])},"filter"),replacement:i(function(t){return t=t.replace(`
|
|
179
169
|
|
|
180
170
|
`,`
|
|
181
171
|
`),`
|
|
182
172
|
|
|
183
|
-
`+
|
|
173
|
+
`+t+`
|
|
184
174
|
|
|
185
|
-
`}},Sa.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function Hb(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||kV(t))&&SV.call(e.childNodes,function(r){return r.nodeName==="TH"})}function kV(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function hP(e,t){var r=vV.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}function Vb(e){e.keep(function(r){return r.nodeName==="TABLE"&&!Hb(r.rows[0])});for(var t in Sa)e.addRule(t,Sa[t])}function Gb(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,r){return(r.checked?"[x]":"[ ]")+" "}})}function mP(e){e.use([Wb,Yb,Vb,Gb])}var Qb=je(QO(),1);var pm=class e{static async createFromMarkdownString(t){let r=new e;return await r.updateFromMarkdownString(t),r}async updateFromMarkdownString(t){let r,n=await eu().use(da).use(ma).use(xa,["yaml","toml"]).use(va).use(wa).use(()=>o=>{console.dir(o);let i=o.children.find(s=>s.type==="yaml");i&&(r=i.value)}).process(t);this.html=n.toString(),r?this.frontmatterData=await Qb.yamlStringToObject(r):this.frontmatterData={}}};var Jb=class e{static async easyMarkdownToHtml(t){return(await new e().getMdParsedResultFromMarkdown(t)).html}constructor(){}async getMdParsedResultFromMarkdown(t){return await pm.createFromMarkdownString(t)}htmlToMarkdown(t){let r=new fm({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(Su.gfm),r.turndown(t)}};var So={};te(So,{SmartRouter:()=>p0});var i0={};te(i0,{AsyncExecutionStack:()=>Xb,BackpressuredArray:()=>Zb,FastMap:()=>ku,Interest:()=>Tu,InterestMap:()=>Kb,LimitedArray:()=>e0,LoopTracker:()=>t0,ObjectMap:()=>Ii,Stringmap:()=>r0,TimedAggregtor:()=>n0,Tree:()=>o0,uni:()=>gP});var hm=je(ip(),1);var Xb=class{constructor(){this.executionSlots=[],this.isProcessing=!1,this.nonExclusiveMaxConcurrency=1/0,this.nonExclusiveCurrentCount=0,this.nonExclusivePendingQueue=[]}async getExclusiveExecutionSlot(t,r){let n=ue.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=ue.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}setNonExclusiveMaxConcurrency(t){if(!Number.isFinite(t)||t<1)throw new Error("nonExclusiveMaxConcurrency must be a finite number >= 1");this.nonExclusiveMaxConcurrency=t}getNonExclusiveMaxConcurrency(){return this.nonExclusiveMaxConcurrency}getActiveNonExclusiveCount(){return this.nonExclusiveCurrentCount}getPendingNonExclusiveCount(){return this.nonExclusivePendingQueue.length}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let t=this.executionSlots[0];if(t.mode==="exclusive")await this.executeExclusiveSlot(t),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(t){try{if(t.timeout){let r=await Promise.race([t.funcToExecute(),ce.delayFor(t.timeout).then(()=>{throw new Error("Timeout reached")})]);t.executionDeferred.resolve(r)}else{let r=await t.funcToExecute();t.executionDeferred.resolve(r)}}catch(r){t.executionDeferred.reject(r)}}async executeNonExclusiveSlots(t){let r=t.map(async n=>{await this.waitForNonExclusiveSlot();try{if(n.timeout){let o=await Promise.race([n.funcToExecute(),ce.delayFor(n.timeout).then(()=>{throw new Error("Timeout reached")})]);n.executionDeferred.resolve(o)}else{let o=await n.funcToExecute();n.executionDeferred.resolve(o)}}catch(o){n.executionDeferred.reject(o)}finally{this.releaseNonExclusiveSlot()}});await Promise.all(r)}waitForNonExclusiveSlot(){return this.nonExclusiveCurrentCount<this.nonExclusiveMaxConcurrency?(this.nonExclusiveCurrentCount++,Promise.resolve()):new Promise(t=>{this.nonExclusivePendingQueue.push(()=>{this.nonExclusiveCurrentCount++,t()})})}releaseNonExclusiveSlot(){this.nonExclusiveCurrentCount--;let t=this.nonExclusivePendingQueue.shift();t&&t()}};var Zb=class{constructor(t=16){this.hasSpace=new Be.rxjs.Subject,this.itemsAvailable=new Be.rxjs.Subject,this.data=[],this.highWaterMark=t}push(t){this.data.push(t),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}shift(){let t=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),t}checkSpaceAvailable(){return this.data.length<this.highWaterMark}checkHasItems(){return this.data.length>0}waitForSpace(){return new Promise(t=>{if(this.checkSpaceAvailable())t();else{let r=this.hasSpace.subscribe(()=>{r.unsubscribe(),t()})}})}waitForItems(){return new Promise(t=>{if(this.data.length>0)t();else{let r=this.itemsAvailable.subscribe(()=>{r.unsubscribe(),t()})}})}};var ku=class e{constructor(){this.mapObject={}}isUniqueKey(t){return!this.mapObject[t]}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject[t]=r,!0):!1}getByKey(t){return this.mapObject[t]}removeFromMap(t){let r=this.getByKey(t);return delete this.mapObject[t],r}getKeys(){let t=[];for(let r in this.mapObject)this.mapObject[r]&&t.push(r);return t}clean(){this.mapObject={}}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}};var gP=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),Ii=class e{constructor(){this.fastMap=new ku,this.eventSubject=new Be.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=gP("key");return this.addMappedUnique(r,t),this.eventSubject.next({operation:"add",payload:t}),r}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return!!this.getKeyForObject(t)}getKeyForObject(t){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===t)r=n;else continue;return r}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let t=[];for(let r of this.fastMap.getKeys())t.push(this.fastMap.getByKey(r));return t}isEmpty(){return this.fastMap.getKeys().length===0}remove(t){if(this.checkForObject(t)){let r=this.getKeyForObject(t),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let t of this.fastMap.getKeys())this.fastMap.removeFromMap(t)}concat(t){let r=new e;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap),r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap)}};var Tu=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(t){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(t)}constructor(t,r,n,o){this.destructionTimer=new st.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new ue.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=t,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&ce.delayFor(this.options.markLostAfterDefault).then(this.markLost)}destroy(){this.interestMapRef.removeInterest(this),!this.isFullfilled&&this.options.defaultFullfillment&&this.fullfillInterest(this.options.defaultFullfillment)}markLost(){this.destructionTimer.start()}renew(){this.destructionTimer.reset()}};var Kb=class{constructor(t,r={}){this.interestObjectMap=new Ii,this.interestObservable=new Be.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),o,i=new Tu(this,t,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===i.comparisonString&&(console.log("info",`interest already exists for ${i.comparisonString}`),s=!0,o=a,o.renew())}),o||(o=i,this.interestObjectMap.add(o)),this.interestObservable.push(o),o}removeInterest(t){let r=this.interestObjectMap.findOneAndRemoveSync(n=>t.comparisonString===n.comparisonString)}checkInterest(t){let r=this.comparisonFunc(t);return this.checkInterestByString(r)}checkInterestByString(t){return!!this.interestObjectMap.findSync(n=>n.comparisonString===t)}informLostInterest(t){let r=this.findInterest(t);r&&r.markLost()}findInterest(t){let r=this.comparisonFunc(t);return this.interestObjectMap.findSync(o=>o.comparisonString===r)}};var e0=class{constructor(t){this.array=[],this.arrayLimit=t}addOne(t){this.array.unshift(t),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(t){for(let r of t)this.addOne(r)}setLimit(t){this.arrayLimit=t,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let t=0;for(let r of this.array)t=t+r;return t/this.array.length}else return null}};var t0=class{constructor(){this.referenceObjectMap=new Ii}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var r0=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){for(let r in this._stringArray)this._stringArray[r]===t&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new rr.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=ue.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var n0=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new st.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],t(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||t()}add(t){this.storageArray.push(t),this.checkAggregationStatus()}};var o0=class{constructor(){this.symbolTree=new hm.default}initialize(t){return this.symbolTree.initialize(t)}hasChildren(t){return this.symbolTree.hasChildren(t)}firstChild(t){return this.symbolTree.firstChild(t)}lastChild(t){return this.symbolTree.lastChild(t)}previousSibling(t){return this.symbolTree.previousSibling(t)}nextSibling(t){return this.symbolTree.nextSibling(t)}parent(t){return this.symbolTree.parent(t)}lastInclusiveDescendant(t){return this.symbolTree.lastInclusiveDescendant(t)}preceding(t,r){return this.symbolTree.preceding(t,r)}following(t,r){return this.symbolTree.following(t,r)}childrenToArray(t,r){return this.symbolTree.childrenToArray(t,r)}ancestorsToArray(t,r){return this.symbolTree.ancestorsToArray(t,r)}treeToArray(t,r){return this.symbolTree.treeToArray(t,r)}childrenIterator(t,r){return this.symbolTree.childrenIterator(t,r)}previousSiblingsIterator(t){return this.symbolTree.previousSiblingsIterator(t)}nextSiblingsIterator(t){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(t){this.symbolTree.ancestorsIterator()}treeIterator(t,r){return this.symbolTree.treeIterator(t)}index(t){return this.symbolTree.index(t)}childrenCount(t){return this.symbolTree.childrenCount(t)}compareTreePosition(t,r){return this.compareTreePosition(t,r)}remove(t){return this.symbolTree.remove(t)}insertBefore(t,r){return this.symbolTree.insertBefore(t,r)}insertAfter(t,r){return this.symbolTree.insertAfter(t,r)}prependChild(t,r){return this.symbolTree.prependChild(t,r)}appendChild(t,r){return this.symbolTree.appendChild(t,r)}toJsonWithHierachy(t){let r=this.treeIterator(t,{});for(let n of r)console.log(n)}fromJsonWithHierachy(t){}};var f0=je(wP(),1);var gm=class{constructor(){}getAllAsObject(){let t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())}setQueryParam(t,r,n="replace"){var o=new URLSearchParams(window.location.search);o.set(t,r),n==="push"?history.pushState(null,null,"?"+o.toString()):history.replaceState(null,null,"?"+o.toString())}deleteQueryParam(t,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(t),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(t){return this.getAllAsObject()[t]}};var EWe=e=>{console.log(`%c[Router]%c ${e}`,"color: rgb(255, 105, 100);","color: inherit")},p0=class e{constructor(t,r=""){this.options={debug:!1},this.queryParams=new gm,this.routes=[],this.options={...this.options,...t},this.basePath=r,this.popstateListener=n=>{n.preventDefault(),this._handleRouteState()},window.addEventListener("popstate",this.popstateListener)}createSubRouter(t,r){let n=`${this.basePath}${t}`;return new e({...this.options,...r},n)}async pushUrl(t="/",r={}){let n=`${this.basePath}${t}`;n!==window.location.pathname?window.history.pushState(r,window.document.title,n):window.history.replaceState(r,window.document.title,n),await this._handleRouteState()}on(t,r){let n=`${this.basePath}${t}`,o={matchFunction:f0.match(n),handler:r};return this.routes.push(o),()=>{this.routes.splice(this.routes.indexOf(o),1)}}async _handleRouteState(){let t=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(t));for(let n of r){let o=n.matchFunction(t);n.handler({...o.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var ko={};te(ko,{Smartstate:()=>m0,StateAction:()=>Au,StatePart:()=>Du});var Eu={};te(Eu,{md5FromString:()=>WV,sha256FromBuffer:()=>zV,sha256FromFile:()=>HV,sha256FromStream:()=>qV,sha256FromString:()=>kP,sha256FromStringSync:()=>UV,sha265FromObject:()=>jV});var RV=[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],BV=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function fn(e,t){return e>>>t|e<<32-t}function $V(e,t){let r=t[0],n=t[1],o=t[2],i=t[3],s=t[4],a=t[5],l=t[6],u=t[7];for(let c=0;c<64;c++){if(c>=16){let y=fn(e[c-15],7)^fn(e[c-15],18)^e[c-15]>>>3,S=fn(e[c-2],17)^fn(e[c-2],19)^e[c-2]>>>10;e[c]=e[c-16]+y+e[c-7]+S>>>0}let f=fn(s,6)^fn(s,11)^fn(s,25),p=s&a^~s&l,h=u+f+p+RV[c]+e[c]>>>0,m=fn(r,2)^fn(r,13)^fn(r,22),d=r&n^r&o^n&o,g=m+d>>>0;u=l,l=a,a=s,s=i+h>>>0,i=o,o=n,n=r,r=h+g>>>0}t[0]=t[0]+r>>>0,t[1]=t[1]+n>>>0,t[2]=t[2]+o>>>0,t[3]=t[3]+i>>>0,t[4]=t[4]+s>>>0,t[5]=t[5]+a>>>0,t[6]=t[6]+l>>>0,t[7]=t[7]+u>>>0}function h0(e){let t=[...BV],r=e.length,n=r*8,o=r%64<56?56-r%64:120-r%64,i=new Uint8Array(r+o+8);i.set(e),i[r]=128;let s=new DataView(i.buffer);s.setUint32(i.length-8,0,!1),s.setUint32(i.length-4,n>>>0,!1);for(let l=0;l<i.length;l+=64){let u=new Array(64);for(let c=0;c<16;c++)u[c]=s.getUint32(l+c*4,!1);$V(u,t)}let a="";for(let l=0;l<8;l++)a+=t[l].toString(16).padStart(8,"0");return a}var vP=e=>{let t=[],r=new DataView(e);for(let n=0;n<r.byteLength;n+=4){let i=r.getUint32(n).toString(16),s="00000000",a=(s+i).slice(-s.length);t.push(a)}return t.join("")},SP=()=>typeof crypto<"u"&&crypto.subtle!==void 0,kP=async e=>{let t=new TextEncoder().encode(e);if(SP()){let r=await crypto.subtle.digest("SHA-256",t);return vP(r)}else return h0(t)},UV=e=>{throw console.warn("sha256FromStringSync is not truly synchronous in browser environment"),new Error("sha256FromStringSync is not supported in browser environment. Use sha256FromString instead.")},zV=async e=>{if(SP()){let t;if(e instanceof Uint8Array){let o=e;t=o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength)}else t=e;let r=await crypto.subtle.digest("SHA-256",t);return vP(r)}else{let t=e instanceof Uint8Array?e:new Uint8Array(e);return h0(t)}},jV=async e=>{let t=sr.stringify(e);return await kP(t)},qV=e=>{throw new Error("sha256FromStream is not supported in browser environment")},HV=async e=>{throw new Error("sha256FromFile is not supported in browser environment")},WV=async e=>{throw new Error("md5FromString is not supported in browser environment. Web Crypto API does not support MD5.")};var Au=class{constructor(t,r){this.statePartRef=t,this.actionDef=r}trigger(t){return this.statePartRef.dispatchAction(this,t)}};var Du=class{constructor(t,r){this.state=new Xe.rxjs.Subject,this.cumulativeDeferred=Pe.cumulativeDefer(),this.webStore=null,this.name=t,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new jt.WebStore(this.webStoreOptions),await this.webStore.init();let t=await this.webStore.get(String(this.name));t&&this.validateState(t)&&(this.stateStore=t,await this.notifyChange())}}getState(){return this.stateStore}async setState(t){if(!this.validateState(t))throw new Error(`Invalid state structure for state part '${this.name}'`);return this.stateStore=t,await this.notifyChange(),this.webStore&&await this.webStore.set(String(this.name),t),this.stateStore}validateState(t){return t!=null}async notifyChange(){if(!this.stateStore)return;let r=await(async n=>await Eu.sha256FromString(sr.stableOneWayStringify(n)))(this.stateStore);this.lastStateNotificationPayloadHash&&r===this.lastStateNotificationPayloadHash||(this.lastStateNotificationPayloadHash=r,this.state.next(this.stateStore))}notifyChangeCumulative(){setTimeout(async()=>{this.stateStore&&await this.notifyChange()},0)}select(t){return t||(t=n=>n),this.state.pipe(Xe.rxjs.ops.startWith(this.getState()),Xe.rxjs.ops.filter(n=>n!==void 0),Xe.rxjs.ops.map(n=>{try{return t(n)}catch{}}))}createAction(t){return new Au(this,t)}async dispatchAction(t,r){await this.cumulativeDeferred.promise;let n=await t.actionDef(this,r);return await this.setState(n),this.getState()}async waitUntilPresent(t){let r=Pe.defer(),o=this.select(t).subscribe(async s=>{s&&r.resolve(s)}),i=await r.promise;return o.unsubscribe(),i}async stateSetup(t){let r=t(this);this.cumulativeDeferred.addPromise(r),this.setState(await r)}};var m0=class{constructor(){this.statePartMap={}}async getStatePart(t,r,n="soft"){let o=this.statePartMap[t];if(o)switch(n){case"mandatory":throw new Error(`State part '${t}' already exists, but initMode is 'mandatory'`);case"force":return this.createStatePart(t,r,n);case"soft":case"persistent":default:return o}else{if(!r)throw new Error(`State part '${t}' does not exist and no initial state provided`);return this.createStatePart(t,r,n)}}async createStatePart(t,r,n="soft"){let o=new Du(t,n==="persistent"?{dbName:"smartstate",storeName:t}:null);await o.init();let i=o.getState();return await o.setState({...i,...r}),this.statePartMap[t]=o,o}};var To={};te(To,{Smarturl:()=>d0});var d0=class e{static createFromUrl(t,r){let n=new URL(t),o={},i=[];n.search&&n.search.replace("?","").split("&").map(u=>{i.push({key:u.split("=")[0],value:u.split("=")[1]})});for(let u of i)o[u.key]=u.value;if(r?.searchParams)for(let u of Object.keys(r.searchParams))o[u]=r.searchParams[u];let s=n.pathname||"";if(Object.keys(o).length>0){s+="?";let u=!0;for(let c of Object.keys(o))u?u=!1:s+="&",s+=`${c}=${o[c]}`}let a={...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:s,pathname:n.pathname,search:n.search,searchParams:o,hash:n.hash};!a.port&&a.protocol==="https:"&&(a.port="443"),!a.port&&a.protocol==="http:"&&(a.port="80");let l=new e;return Object.assign(l,a),l}static createFromParsedUrl(t){let r=new e;return Object.assign(r,t),r}constructor(){this.searchParams={}}clone(){let t=new e;return Object.assign(t,this),t.searchParams={...this.searchParams},t}set(t,r){return this[t]=r,this}toString(){let t="";return this.username&&!this.password&&(t=`${this.username}@`),this.username&&this.password&&(t=`${this.username}:${this.password}@`),`${this.protocol}//${t}${this.hostname}:${this.port}${this.path}`}};var M0={};te(M0,{JsonLdTag:()=>Ni,MetaTag:()=>vr,OpengraphTag:()=>qt,Title:()=>O0,WebSetup:()=>Cu});var g0={};te(g0,{Timeout:()=>bm,delayFor:()=>EP,delayForRandom:()=>KV});var Fi={};te(Fi,{CumulativeDeferred:()=>ym,Deferred:()=>xm,cumulativeDefer:()=>VV,defer:()=>Pi,getFirstTrueOrFalse:()=>ZV,map:()=>JV,rejectedPromise:()=>QV,resolvedPromise:()=>GV,timeoutAndContinue:()=>XV,timeoutWrap:()=>TP});var xm=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),t(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},Pi=()=>new xm;var ym=class{constructor(){this.accumulatedPromises=[],this.deferred=Pi(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(t){this.accumulatedPromises.push(t)}},VV=()=>new ym;var GV=e=>Promise.resolve(e),QV=e=>Promise.reject(e),JV=async(e,t)=>{let r=[],n=[];for(let o of e){let i=t(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},TP=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),XV=async(e,t=6e4)=>TP(e,t,!1),ZV=async e=>{let t=Pi();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var EP=async(e,t,r=!1)=>(await new bm(e,null,r).promise,t),KV=async(e,t,r,n=!1)=>(await EP(Math.random()*(t-e)+e,null,n),r),bm=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=Pi(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},t),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let t=this.started+this.timeoutInMillis-Date.now();return t>0?t:0}};var C0={};te(C0,{business:()=>wm,code:()=>w0,container:()=>v0,content:()=>S0,database:()=>b0,finance:()=>x0,general:()=>k0,network:()=>vm,saas:()=>E0,storage:()=>A0,website:()=>D0});var wm={};te(wm,{IJob:()=>y0});var x0={};var y0=class{};var b0={};var w0={};var v0={};var S0={};var k0={};var vm={};te(vm,{ICnameDescriptor:()=>T0});var T0=class{};var E0={};var A0={};var D0={};var Eo=class{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 Ni=class e extends Eo{static createCompanyJsonLd(t){let r={"@context":"https://schema.org","@type":"Corporation",name:t.name,alternateName:t.name.replace(" GmbH",""),url:t.contact.website,logo:t.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:t.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return t.contact.facebookUrl&&r.sameAs.push(t.contact.facebookUrl),t.contact.twitterUrl&&r.sameAs.push(t.contact.twitterUrl),new e(r)}static createNewsArticleJsonLd(t){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[t.featuredImageUrl],datePublished:new Date(t.timestamp).toISOString(),dateModified:new Date(t.timestamp).toISOString(),author:{"@type":"Person",name:`${t.author.firstName} ${t.author.surName}`},publisher:{"@type":"Organization",name:t.author.surName,logo:{"@type":"ImageObject",url:t.author.surName}},description:t.author.firstName};return new e(r)}static createProductJsonLd(t,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:t.name,description:t.description,operatingSystem:t.os,applicationCategory:t.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:this.createCompanyJsonLd(r).elementRef.textContent,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new e(n)}constructor(t){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(t),this.elementRef=r}};var qt=class e extends Eo{static createNewsArticleOgTags(t){let r=[];return r.push(new e("og:url",t.url)),r.push(new e("og:title",t.title)),r.push(new e("og:description",t.content)),r.push(new e("og:image",t.featuredImageUrl)),r}static createProductOgTags(t){let r=[];return r.push(new e("og:url",globalThis.location.href)),r.push(new e("og:title",`${t.name} - ${t.slogan}`)),r.push(new e("og:site_name",t.name)),r.push(new e("og:description",t.description)),r.push(new e("og:image",t.logoLink)),r}constructor(t,r){super();let n=document.createElement("meta");n.setAttribute("property",t),n.content=r,this.elementRef=n}};var Ea=class{set title(t){this.titleStore=t,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(t,r){this.tags=[],this.state="disabled",this.tagManagerRef=t}addTag(t){if(t instanceof Array)for(let r of t)this.addTag(r);else this.tags.push(t),this.state==="enabled"&&t.appendToDom()}async addCompanyInfo(t){this.addTag(Ni.createCompanyJsonLd(t)),this.addTag(new qt("og:type","business.business")),this.addTag(new qt("og:title",t.name)),this.addTag(new qt("og:url",t.contact.website)),this.addTag(new qt("og:image",t.contact.logoUrl)),this.addTag(new qt("business:contact_data:street_address",`${t.contact.address.streetName} ${t.contact.address.houseNumber}`)),this.addTag(new qt("business:contact_data:locality",t.contact.address.postalCode)),this.addTag(new qt("business:contact_data:region",t.contact.address.city)),this.addTag(new qt("business:contact_data:postal_code",t.contact.address.postalCode)),this.addTag(new qt("business:contact_data:country_name",t.contact.address.country))}addNewsArticleInfo(t){this.addTag(Ni.createNewsArticleJsonLd(t)),this.addTag(qt.createNewsArticleOgTags(t))}addProductInfo(t,r){this.addTag(Ni.createProductJsonLd(t,r)),this.addTag(qt.createProductOgTags(t))}async enable(){this.title&&(document.title=this.title);for(let t of this.tags)t.appendToDom();this.state="enabled"}async disable(){for(let t of this.tags)t.removeFromDom();this.state="disabled"}};var vr=class extends Eo{constructor(t,r){super();let n=document.createElement("meta");n.name=t,n.content=r,this.elementRef=n}};var Sm=class{constructor(){this.globalLevel=new Ea(this,"global"),this.baseLevel=new Ea(this,"base")}async setup(t){switch(this.globalLevel.addTag(new vr("google","notranslate")),this.globalLevel.addTag(new vr("revisit-after","1 days")),t.twitterHandle&&(this.globalLevel.addTag(new vr("twitter:card","summary_large_image")),this.globalLevel.addTag(new vr("twitter:site",t.twitterHandle)),this.globalLevel.addTag(new vr("twitter:creator",t.twitterHandle))),this.baseLevel.title=t.title,t.description&&this.baseLevel.addTag(new vr("description",t.description)),t.canonicalDomain&&this.baseLevel.addTag(new vr("canonical",t.canonicalDomain)),!0){case(t.ldCompany&&!t.ldProduct):this.baseLevel.addCompanyInfo(t.ldCompany);break;case!!t.ldProduct:this.baseLevel.addProductInfo(t.ldProduct,t.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(t){let r=new Ea(this,"subpage");return r.title=t.title,t.description&&r.addTag(new vr("description",t.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var Cu=class{constructor(t){this.tagManager=new Sm,this.readyDeferred=Fi.defer(),this.readyForSmartssrDeferred=Fi.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=t,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(t){t&&(this.options=t),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(t){return await this.tagManager.setSubPageLevel(t)}flashTitle(t){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var O0=class{};var AP=je(ip(),1);var Aa=class e{constructor(){this.mapObject={}}isUniqueKey(t){return!this.mapObject[t]}addToMap(t,r,n){return this.isUniqueKey(t)||n&&n.force?(this.mapObject[t]=r,!0):!1}getByKey(t){return this.mapObject[t]}removeFromMap(t){let r=this.getByKey(t);return delete this.mapObject[t],r}getKeys(){let t=[];for(let r in this.mapObject)this.mapObject[r]&&t.push(r);return t}clean(){this.mapObject={}}concat(t){let r=new e;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of t.getKeys())r.addToMap(n,t.getByKey(n),{force:!0});return r}addAllFromOther(t){for(let r of t.getKeys())this.addToMap(r,t.getByKey(r),{force:!0})}async find(t){for(let r of this.getKeys()){let n=this.getByKey(r);if(await t(n))return n}}};var t7=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),km=class e{constructor(){this.fastMap=new Aa,this.eventSubject=new Be.rxjs.Subject}addMappedUnique(t,r){this.fastMap.addToMap(t,r)}getMappedUnique(t){return this.fastMap.getByKey(t)}removeMappedUnique(t){let r=this.getMappedUnique(t)}add(t){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===t)return n;let r=t7("key");return this.addMappedUnique(r,t),this.eventSubject.next({operation:"add",payload:t}),r}addArray(t){for(let r of t)this.add(r)}checkForObject(t){return!!this.getKeyForObject(t)}getKeyForObject(t){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===t)r=n;else continue;return r}async find(t){return this.fastMap.find(t)}findSync(t){for(let r of this.fastMap.getKeys())if(t(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(t){let r=await this.find(t);return r&&this.remove(r),r}findOneAndRemoveSync(t){let r=this.findSync(t);return r&&this.remove(r),r}async forEach(t){for(let r of this.fastMap.getKeys())await t(this.fastMap.getByKey(r))}getOneAndRemove(){let t=this.fastMap.getKeys();if(t.length===0)return null;{let r=t[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let t=[];for(let r of this.fastMap.getKeys())t.push(this.fastMap.getByKey(r));return t}isEmpty(){return this.fastMap.getKeys().length===0}remove(t){if(this.checkForObject(t)){let r=this.getKeyForObject(t),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let t of this.fastMap.getKeys())this.fastMap.removeFromMap(t)}concat(t){let r=new e;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(t.fastMap),r}addAllFromOther(t){this.fastMap.addAllFromOther(t.fastMap)}};var Tm=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(t){this._stringArray.push(t),this.notifyTrigger()}addStringArray(t){for(let r of t)this.addString(r)}removeString(t){for(let r in this._stringArray)this._stringArray[r]===t&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(t){return this._stringArray.indexOf(t)!==-1}checkMinimatch(t){let r=new rr.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=ue.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var r7="1.3.15";function CP(e,t,r){return Math.max(e,Math.min(t,r))}function n7(e,t,r){return(1-r)*e+r*t}function o7(e,t,r,n){return n7(e,t,1-Math.exp(-r*n))}function i7(e,t){return(e%t+t)%t}var s7=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let r=CP(0,this.currentTime/this.duration,1);t=r>=1;let n=t?1:this.easing(r);this.value=this.from+(this.to-this.from)*n}else this.lerp?(this.value=o7(this.value,this.to,this.lerp*60,e),Math.round(this.value)===this.to&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:r,duration:n,easing:o,onStart:i,onUpdate:s}){this.from=this.value=e,this.to=t,this.lerp=r,this.duration=n,this.easing=o,this.currentTime=0,this.isRunning=!0,i?.(),this.onUpdate=s}};function a7(e,t){let r;return function(...n){let o=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,e.apply(o,n)},t)}}var l7=class{constructor(e,t,{autoResize:r=!0,debounce:n=250}={}){this.wrapper=e,this.content=t,r&&(this.debouncedResize=a7(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=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},OP=class{events={};emit(e,...t){let r=this.events[e]||[];for(let n=0,o=r.length;n<o;n++)r[n]?.(...t)}on(e,t){return this.events[e]?.push(t)||(this.events[e]=[t]),()=>{this.events[e]=this.events[e]?.filter(r=>t!==r)}}off(e,t){this.events[e]=this.events[e]?.filter(r=>t!==r)}destroy(){this.events={}}},MP=100/6,Ao={passive:!1},u7=class{constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,Ao),this.element.addEventListener("touchstart",this.onTouchStart,Ao),this.element.addEventListener("touchmove",this.onTouchMove,Ao),this.element.addEventListener("touchend",this.onTouchEnd,Ao)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new OP;on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,Ao),this.element.removeEventListener("touchstart",this.onTouchStart,Ao),this.element.removeEventListener("touchmove",this.onTouchMove,Ao),this.element.removeEventListener("touchend",this.onTouchEnd,Ao)}onTouchStart=e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:r}=e.targetTouches?e.targetTouches[0]:e,n=-(t-this.touchStart.x)*this.options.touchMultiplier,o=-(r-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=r,this.lastDelta={x:n,y:o},this.emitter.emit("scroll",{deltaX:n,deltaY:o,event:e})};onTouchEnd=e=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:r,deltaMode:n}=e,o=n===1?MP:n===2?this.window.width:1,i=n===1?MP:n===2?this.window.height:1;t*=o,r*=i,t*=this.options.wheelMultiplier,r*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:t,deltaY:r,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},_P=e=>Math.min(1,1.001-Math.pow(2,-10*e)),Ou=class{_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 s7;emitter=new OP;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:r=e,smoothWheel:n=!0,syncTouch:o=!1,syncTouchLerp:i=.075,touchInertiaExponent:s=1.7,duration:a,easing:l,lerp:u=.1,infinite:c=!1,orientation:f="vertical",gestureOrientation:p=f==="horizontal"?"both":"vertical",touchMultiplier:h=1,wheelMultiplier:m=1,autoResize:d=!0,prevent:g,virtualScroll:y,overscroll:S=!0,autoRaf:k=!1,anchors:N=!1,autoToggle:R=!1,allowNestedScroll:T=!1,__experimental__naiveDimensions:$=!1}={}){window.lenisVersion=r7,(!e||e===document.documentElement)&&(e=window),typeof a=="number"&&typeof l!="function"?l=_P:typeof l=="function"&&typeof a!="number"&&(a=1),this.options={wrapper:e,content:t,eventsTarget:r,smoothWheel:n,syncTouch:o,syncTouchLerp:i,touchInertiaExponent:s,duration:a,easing:l,lerp:u,infinite:c,gestureOrientation:p,orientation:f,touchMultiplier:h,wheelMultiplier:m,autoResize:d,prevent:g,virtualScroll:y,overscroll:S,autoRaf:k,anchors:N,autoToggle:R,allowNestedScroll:T,__experimental__naiveDimensions:$},this.dimensions=new l7(e,t,{autoResize:d}),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.wrapper===window&&this.options.wrapper.addEventListener("click",this.onClick,!1),this.options.wrapper.addEventListener("pointerdown",this.onPointerDown,!1),this.virtualScroll=new u7(r,{touchMultiplier:h,wheelMultiplier:m}),this.virtualScroll.on("scroll",this.onVirtualScroll),this.options.autoToggle&&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.wrapper===window&&this.options.wrapper.removeEventListener("click",this.onClick,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this.__rafID&&cancelAnimationFrame(this.__rafID)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||(this.isScrolling==="smooth"||this.isScrolling===!1)&&e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent("scrollend",{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};onTransitionEnd=e=>{if(e.propertyName.includes("overflow")){let t=this.isHorizontal?"overflow-x":"overflow-y",r=getComputedStyle(this.rootElement)[t];["hidden","clip"].includes(r)?this.internalStop():this.internalStart()}};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:"instant"}):this.options.wrapper.scrollTo({top:e,behavior:"instant"})}onClick=e=>{let r=e.composedPath().find(n=>n instanceof HTMLAnchorElement&&n.getAttribute("href")?.includes("#"));if(r){let n=r.getAttribute("href");if(n){let o=typeof this.options.anchors=="object"&&this.options.anchors?this.options.anchors:void 0,i=`#${n.split("#")[1]}`;this.scrollTo(i,o)}}};onPointerDown=e=>{e.button===1&&this.reset()};onVirtualScroll=e=>{if(typeof this.options.virtualScroll=="function"&&this.options.virtualScroll(e)===!1)return;let{deltaX:t,deltaY:r,event:n}=e;if(this.emitter.emit("virtual-scroll",{deltaX:t,deltaY:r,event:n}),n.ctrlKey||n.lenisStopPropagation)return;let o=n.type.includes("touch"),i=n.type.includes("wheel");this.isTouching=n.type==="touchstart"||n.type==="touchmove";let s=t===0&&r===0;if(this.options.syncTouch&&o&&n.type==="touchstart"&&s&&!this.isStopped&&!this.isLocked){this.reset();return}let l=this.options.gestureOrientation==="vertical"&&r===0||this.options.gestureOrientation==="horizontal"&&t===0;if(s||l)return;let u=n.composedPath();u=u.slice(0,u.indexOf(this.rootElement));let c=this.options.prevent;if(u.find(g=>g instanceof HTMLElement&&(typeof c=="function"&&c?.(g)||g.hasAttribute?.("data-lenis-prevent")||o&&g.hasAttribute?.("data-lenis-prevent-touch")||i&&g.hasAttribute?.("data-lenis-prevent-wheel")||this.options.allowNestedScroll&&this.checkNestedScroll(g,{deltaX:t,deltaY:r}))))return;if(this.isStopped||this.isLocked){n.cancelable&&n.preventDefault();return}if(!(this.options.syncTouch&&o||this.options.smoothWheel&&i)){this.isScrolling="native",this.animate.stop(),n.lenisStopPropagation=!0;return}let p=r;this.options.gestureOrientation==="both"?p=Math.abs(r)>Math.abs(t)?r:t:this.options.gestureOrientation==="horizontal"&&(p=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&r>0||this.animatedScroll===this.limit&&r<0))&&(n.lenisStopPropagation=!0),n.cancelable&&n.preventDefault();let h=o&&this.options.syncTouch,d=o&&n.type==="touchend";d&&(p=Math.sign(this.velocity)*Math.pow(Math.abs(this.velocity),this.options.touchInertiaExponent)),this.scrollTo(this.targetScroll+p,{programmatic:!1,...h?{lerp:d?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit()}emit(){this.emitter.emit("scroll",this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling==="native"){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling="native"),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};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=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this.__rafID=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:r=!1,lock:n=!1,duration:o=this.options.duration,easing:i=this.options.easing,lerp:s=this.options.lerp,onStart:a,onComplete:l,force:u=!1,programmatic:c=!0,userData:f}={}){if(!((this.isStopped||this.isLocked)&&!u)){if(typeof e=="string"&&["top","left","start","#"].includes(e))e=0;else if(typeof e=="string"&&["bottom","right","end"].includes(e))e=this.limit;else{let p;if(typeof e=="string"?(p=document.querySelector(e),p||(e==="#top"?e=0:console.warn("Lenis: Target not found",e))):e instanceof HTMLElement&&e?.nodeType&&(p=e),p){if(this.options.wrapper!==window){let m=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?m.left:m.top}let h=p.getBoundingClientRect();e=(this.isHorizontal?h.left:h.top)+this.animatedScroll}}if(typeof e=="number"){if(e+=t,e=Math.round(e),this.options.infinite){if(c){this.targetScroll=this.animatedScroll=this.scroll;let p=e-this.animatedScroll;p>this.limit/2?e=e-this.limit:p<-this.limit/2&&(e=e+this.limit)}}else e=CP(0,e,this.limit);if(e===this.targetScroll){a?.(this),l?.(this);return}if(this.userData=f??{},r){this.animatedScroll=this.targetScroll=e,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}c||(this.targetScroll=e),typeof o=="number"&&typeof i!="function"?i=_P:typeof i=="function"&&typeof o!="number"&&(o=1),this.animate.fromTo(this.animatedScroll,e,{duration:o,easing:i,lerp:s,onStart:()=>{n&&(this.isLocked=!0),this.isScrolling="smooth",a?.(this)},onUpdate:(p,h)=>{this.isScrolling="smooth",this.lastVelocity=this.velocity,this.velocity=p-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=p,this.setScroll(this.scroll),c&&(this.targetScroll=p),h||this.emit(),h&&(this.reset(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}checkNestedScroll(e,{deltaX:t,deltaY:r}){let n=Date.now(),o=e._lenis??={},i,s,a,l,u,c,f,p,h=this.options.gestureOrientation;if(n-(o.time??0)>2e3){o.time=Date.now();let R=window.getComputedStyle(e);o.computedStyle=R;let T=R.overflowX,$=R.overflowY;if(i=["auto","overlay","scroll"].includes(T),s=["auto","overlay","scroll"].includes($),o.hasOverflowX=i,o.hasOverflowY=s,!i&&!s||h==="vertical"&&!s||h==="horizontal"&&!i)return!1;u=e.scrollWidth,c=e.scrollHeight,f=e.clientWidth,p=e.clientHeight,a=u>f,l=c>p,o.isScrollableX=a,o.isScrollableY=l,o.scrollWidth=u,o.scrollHeight=c,o.clientWidth=f,o.clientHeight=p}else a=o.isScrollableX,l=o.isScrollableY,i=o.hasOverflowX,s=o.hasOverflowY,u=o.scrollWidth,c=o.scrollHeight,f=o.clientWidth,p=o.clientHeight;if(!i&&!s||!a&&!l||h==="vertical"&&(!s||!l)||h==="horizontal"&&(!i||!a))return!1;let m;if(h==="horizontal")m="x";else if(h==="vertical")m="y";else{let R=t!==0,T=r!==0;R&&i&&a&&(m="x"),T&&s&&l&&(m="y")}if(!m)return!1;let d,g,y,S,k;if(m==="x")d=e.scrollLeft,g=u-f,y=t,S=i,k=a;else if(m==="y")d=e.scrollTop,g=c-p,y=r,S=s,k=l;else return!1;return(y>0?d<g:d>0)&&S&&k}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}get isHorizontal(){return this.options.orientation==="horizontal"}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?i7(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling==="smooth"}get className(){let e="lenis";return this.options.autoToggle&&(e+=" lenis-autoToggle"),this.isStopped&&(e+=" lenis-stopped"),this.isLocked&&(e+=" lenis-locked"),this.isScrolling&&(e+=" lenis-scrolling"),this.isScrolling==="smooth"&&(e+=" lenis-smooth"),e}updateClassName(){this.cleanUpClassName(),this.rootElement.className=`${this.rootElement.className} ${this.className}`.trim()}cleanUpClassName(){this.rootElement.className=this.rootElement.className.replace(/lenis(-\w+)?/g,"").trim()}};var Em=je(P0(),1),Mu={ObjectMap:km,Stringmap:Tm,FastMap:Aa};var pn={};te(pn,{cssForDesktop:()=>c7,cssForNotebook:()=>f7,cssForPhablet:()=>h7,cssForPhone:()=>m7,cssForTablet:()=>p7,desktop:()=>F0,notebook:()=>N0,phablet:()=>R0,phone:()=>B0,tablet:()=>L0});var F0=1600,N0=1240,L0=1024,R0=600,B0=400,c7=e=>$e(`
|
|
186
|
-
@container wccToolsViewport
|
|
187
|
-
${
|
|
175
|
+
`},"replacement")},ea.tableSection={filter:["thead","tbody","tfoot"],replacement:i(function(t){return t},"replacement")};function Qx(t){var e=t.parentNode;return e.nodeName==="THEAD"||e.firstChild===t&&(e.nodeName==="TABLE"||Cq(e))&&Dq.call(t.childNodes,function(r){return r.nodeName==="TH"})}i(Qx,"isHeadingRow");function Cq(t){var e=t.previousSibling;return t.nodeName==="TBODY"&&(!e||e.nodeName==="THEAD"&&/^\s*$/i.test(e.textContent))}i(Cq,"isFirstTbody");function tM(t,e){var r=Eq.call(e.parentNode.childNodes,e),n=" ";return r===0&&(n="| "),n+t+" |"}i(tM,"cell");function Zx(t){t.keep(function(r){return r.nodeName==="TABLE"&&!Qx(r.rows[0])});for(var e in ea)t.addRule(e,ea[e])}i(Zx,"tables");function Kx(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(Kx,"taskListItems");function rM(t){t.use([Jx,Xx,Zx,Kx])}i(rM,"gfm");var ey=Qt(A1(),1);var Th=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 yl().use(Vs).use(Ys).use(Qs,["yaml","toml"]).use(Ks).use(Zs).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 ey.yamlStringToObject(r):this.frontmatterData={}}};var ty=class t{static{i(this,"SmartMarkdown")}static async easyMarkdownToHtml(e){return(await new t().getMdParsedResultFromMarkdown(e)).html}constructor(){}async getMdParsedResultFromMarkdown(e){return await Th.createFromMarkdownString(e)}htmlToMarkdown(e){let r=new Sh({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(Hl.gfm),r.turndown(e)}};var go={};le(go,{SmartRouter:()=>ly});var ay=Qt(aM(),1);var Ch=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 E9e=i(t=>{console.log(`%c[Router]%c ${t}`,"color: rgb(255, 105, 100);","color: inherit")},"routeLog"),ly=class t{static{i(this,"SmartRouter")}constructor(e,r=""){this.options={debug:!1},this.queryParams=new Ch,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:ay.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 xo={};le(xo,{Smartstate:()=>py,StateAction:()=>ql,StatePart:()=>jl,StateProcess:()=>na,attachContextProvider:()=>Kq,computed:()=>fy});var Wl={};le(Wl,{createSha256Hasher:()=>ra,md5FromString:()=>Qq,sha256FromBuffer:()=>Uq,sha256FromFile:()=>Gq,sha256FromStream:()=>Vq,sha256FromString:()=>cM,sha256FromStringSync:()=>jq,sha265FromObject:()=>Yq});var zq=new Uint32Array([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]),Wq=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),pn=i((t,e)=>t>>>e|t<<32-e,"rotateRight"),qq=i(t=>t instanceof Uint8Array?t:new Uint8Array(t),"asBytes"),uy=class{static{i(this,"BrowserSha256Hasher")}constructor(){this.state=new Uint32Array(Wq),this.block=new Uint8Array(64),this.words=new Uint32Array(64),this.blockLength=0,this.totalBytesHigh=0,this.totalBytesLow=0,this.finalized=!1}update(e){if(this.finalized)throw new Error("SHA-256 hasher is already finalized.");let r=qq(e);this.addByteLength(r.byteLength);let n=0;if(this.blockLength>0){let o=Math.min(64-this.blockLength,r.byteLength);this.block.set(r.subarray(0,o),this.blockLength),this.blockLength+=o,n=o,this.blockLength===64&&(this.processBlock(this.block,0),this.blockLength=0)}for(;n+64<=r.byteLength;)this.processBlock(r,n),n+=64;return n<r.byteLength&&(this.block.set(r.subarray(n),0),this.blockLength=r.byteLength-n),this}digest(){if(this.finalized)throw new Error("SHA-256 hasher is already finalized.");this.finalized=!0;let e=this.blockLength<56?64:128,r=new Uint8Array(e);r.set(this.block.subarray(0,this.blockLength)),r[this.blockLength]=128;let n=(this.totalBytesHigh<<3|this.totalBytesLow>>>29)>>>0,o=this.totalBytesLow<<3>>>0,s=new DataView(r.buffer);s.setUint32(e-8,n,!1),s.setUint32(e-4,o,!1);for(let l=0;l<e;l+=64)this.processBlock(r,l);let a="";for(let l of this.state)a+=l.toString(16).padStart(8,"0");return this.block.fill(0),this.words.fill(0),a}addByteLength(e){let r=this.totalBytesLow;this.totalBytesLow=this.totalBytesLow+e>>>0,this.totalBytesHigh=this.totalBytesHigh+Math.floor(e/4294967296)+(this.totalBytesLow<r?1:0)>>>0}processBlock(e,r){let n=this.words;for(let h=0;h<16;h++){let d=r+h*4;n[h]=(e[d]<<24|e[d+1]<<16|e[d+2]<<8|e[d+3])>>>0}for(let h=16;h<64;h++){let d=n[h-15],m=n[h-2],g=pn(d,7)^pn(d,18)^d>>>3,x=pn(m,17)^pn(m,19)^m>>>10;n[h]=n[h-16]+g+n[h-7]+x>>>0}let o=this.state[0],s=this.state[1],a=this.state[2],l=this.state[3],u=this.state[4],c=this.state[5],f=this.state[6],p=this.state[7];for(let h=0;h<64;h++){let d=pn(u,6)^pn(u,11)^pn(u,25),m=u&c^~u&f,g=p+d+m+zq[h]+n[h]>>>0,x=pn(o,2)^pn(o,13)^pn(o,22),y=o&s^o&a^s&a,S=x+y>>>0;p=f,f=c,c=u,u=l+g>>>0,l=a,a=s,s=o,o=g+S>>>0}this.state[0]=this.state[0]+o>>>0,this.state[1]=this.state[1]+s>>>0,this.state[2]=this.state[2]+a>>>0,this.state[3]=this.state[3]+l>>>0,this.state[4]=this.state[4]+u>>>0,this.state[5]=this.state[5]+c>>>0,this.state[6]=this.state[6]+f>>>0,this.state[7]=this.state[7]+p>>>0}},ra=i(()=>new uy,"createSha256Hasher");function cy(t){return ra().update(t).digest()}i(cy,"sha256Fallback");var lM=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"),uM=i(()=>typeof crypto<"u"&&crypto.subtle!==void 0,"isCryptoSubtleAvailable"),cM=i(async t=>{let e=new TextEncoder().encode(t);if(uM()){let r=await crypto.subtle.digest("SHA-256",e);return lM(r)}else return cy(e)},"sha256FromString"),jq=i(t=>ra().update(new TextEncoder().encode(t)).digest(),"sha256FromStringSync"),Uq=i(async t=>{if(uM()){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 lM(r)}else{let e=t instanceof Uint8Array?t:new Uint8Array(t);return cy(e)}},"sha256FromBuffer"),Yq=i(async t=>{let e=at.stringify(t);return await cM(e)},"sha265FromObject"),Vq=i(async t=>{if(!t||typeof t.getReader!="function")throw new TypeError("sha256FromStream requires a readable Web stream.");let e=ra(),r=t.getReader(),n=!1;try{for(;;){let{value:o,done:s}=await r.read();if(s)return n=!0,e.digest();if(!(o instanceof Uint8Array))throw new TypeError("SHA-256 Web streams must emit Uint8Arrays.");e.update(o)}}catch(o){throw n||await r.cancel(o).catch(()=>{}),o}finally{r.releaseLock()}},"sha256FromStream"),Gq=i(async t=>{throw new Error("sha256FromFile is not supported in browser environment")},"sha256FromFile"),Qq=i(async t=>{throw new Error("md5FromString is not supported in browser environment. Web Crypto API does not support MD5.")},"md5FromString");var ql=class{static{i(this,"StateAction")}constructor(e,r){this.statePartRef=e,this.actionDef=r}trigger(e){return this.statePartRef.dispatchAction(this,e)}};function Xq(){return typeof document>"u"?Ta(!0):new be(t=>{t.next(!document.hidden);let e=i(()=>t.next(!document.hidden),"handler");return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)})}i(Xq,"createVisibilityObservable");var na=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"?Xq():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)}};var fM=i(t=>{let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},"isPlainObject"),Mh=i((t,e)=>{let r=new WeakMap,n=new WeakMap,o=i((s,a)=>{if(Object.is(s,a))return!0;if(s===null||a===null||typeof s!="object"||typeof a!="object")return!1;if(s instanceof Date||a instanceof Date)return s instanceof Date&&a instanceof Date&&Object.is(s.getTime(),a.getTime());let l=Array.isArray(s),u=Array.isArray(a);if(l!==u||!l&&(!fM(s)||!fM(a)))return!1;let c=r.get(s);if(c)return c===a;let f=n.get(a);if(f)return f===s;if(r.set(s,a),n.set(a,s),l&&u){if(s.length!==a.length)return!1;for(let g=0;g<s.length;g++)if(!o(s[g],a[g]))return!1;return!0}let p=s,h=a,d=Object.keys(p),m=Object.keys(h);if(d.length!==m.length)return!1;for(let g of d)if(!Object.prototype.hasOwnProperty.call(h,g)||!o(p[g],h[g]))return!1;return!0},"compare");return o(t,e)},"isStateSelectionEqual");function Zq(t){return new be(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(Zq,"fromAbortSignal");var jl=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=ie.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 Nt.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 Wl.sha256FromString(at.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),Bo(Mh));if(n)return a=a.pipe($o(Zq(r.signal))),a;let l=a.pipe(Bu({bufferSize:1,refCount:!0}));return e?this.selectorCache.set(e,l):this.defaultSelectObservable=l,l}createAction(e){return new ql(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=ie.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 na(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 na(this,{producer:i(()=>Cd(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 fy(t,e){return Dd(t.map(r=>r.select())).pipe(Yr(r=>e(...r)),Bo(Mh))}i(fy,"computed");var py=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 fy(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 jl(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 Kq(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 d=i(()=>s.delete(h),"unsubscribe");h(l(),d)}else p.callback(l())},"handler");return t.addEventListener("context-request",u),()=>{t.removeEventListener("context-request",u),a.unsubscribe(),s.clear()}}i(Kq,"attachContextProvider");var yo={};le(yo,{Smarturl:()=>hy});var hy=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 My={};le(My,{JsonLdTag:()=>vo,MetaTag:()=>gr,OpengraphTag:()=>Ft,Title:()=>Cy,WebSetup:()=>Ul});var dy={};le(dy,{Timeout:()=>Ph,delayFor:()=>hM,delayForRandom:()=>sj});var bo={};le(bo,{CumulativeDeferred:()=>Ih,Deferred:()=>Oh,cumulativeDefer:()=>ej,defer:()=>wo,getFirstTrueOrFalse:()=>oj,map:()=>nj,rejectedPromise:()=>rj,resolvedPromise:()=>tj,timeoutAndContinue:()=>ij,timeoutWrap:()=>pM});var Oh=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"})}},wo=i(()=>new Oh,"defer");var Ih=class{static{i(this,"CumulativeDeferred")}constructor(){this.accumulatedPromises=[],this.deferred=wo(),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)}},ej=i(()=>new Ih,"cumulativeDefer");var tj=i(t=>Promise.resolve(t),"resolvedPromise"),rj=i(t=>Promise.reject(t),"rejectedPromise"),nj=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"),pM=i(async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),"timeoutWrap"),ij=i(async(t,e=6e4)=>pM(t,e,!1),"timeoutAndContinue"),oj=i(async t=>{let e=wo();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 hM=i(async(t,e,r=!1)=>(await new Ph(t,null,r).promise,e),"delayFor"),sj=i(async(t,e,r,n=!1)=>(await hM(Math.random()*(e-t)+t,null,n),r),"delayForRandom"),Ph=class{static{i(this,"Timeout")}constructor(e,r,n=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=wo(),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 Dy={};le(Dy,{business:()=>_h,code:()=>yy,container:()=>wy,content:()=>by,database:()=>xy,finance:()=>my,general:()=>vy,network:()=>Rh,saas:()=>Sy,storage:()=>Ty,website:()=>Ey});var _h={};le(_h,{IJob:()=>gy});var my={};var gy=class{static{i(this,"IJob")}};var xy={};var yy={};var wy={};var by={};var vy={};var Rh={};le(Rh,{ICnameDescriptor:()=>ky});var ky=class{static{i(this,"ICnameDescriptor")}};var Sy={};var Ty={};var Ey={};var gi=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 vo=class t extends gi{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 Ft=class t extends gi{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 ia=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(vo.createCompanyJsonLd(e)),this.addTag(new Ft("og:type","business.business")),this.addTag(new Ft("og:title",e.name)),this.addTag(new Ft("og:url",e.contact.website)),this.addTag(new Ft("og:image",e.contact.logoUrl)),this.addTag(new Ft("business:contact_data:street_address",`${e.contact.address.streetName} ${e.contact.address.houseNumber}`)),this.addTag(new Ft("business:contact_data:locality",e.contact.address.postalCode)),this.addTag(new Ft("business:contact_data:region",e.contact.address.city)),this.addTag(new Ft("business:contact_data:postal_code",e.contact.address.postalCode)),this.addTag(new Ft("business:contact_data:country_name",e.contact.address.country))}addNewsArticleInfo(e){this.addTag(vo.createNewsArticleJsonLd(e)),this.addTag(Ft.createNewsArticleOgTags(e))}addProductInfo(e,r){this.addTag(vo.createProductJsonLd(e,r)),this.addTag(Ft.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 gr=class extends gi{static{i(this,"MetaTag")}constructor(e,r){super();let n=document.createElement("meta");n.name=e,n.content=r,this.elementRef=n}};var Nh=class{static{i(this,"TagManager")}constructor(){this.globalLevel=new ia(this,"global"),this.baseLevel=new ia(this,"base")}async setup(e){switch(this.globalLevel.addTag(new gr("google","notranslate")),this.globalLevel.addTag(new gr("revisit-after","1 days")),e.twitterHandle&&(this.globalLevel.addTag(new gr("twitter:card","summary_large_image")),this.globalLevel.addTag(new gr("twitter:site",e.twitterHandle)),this.globalLevel.addTag(new gr("twitter:creator",e.twitterHandle))),this.baseLevel.title=e.title,e.description&&this.baseLevel.addTag(new gr("description",e.description)),e.canonicalDomain&&this.baseLevel.addTag(new gr("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 ia(this,"subpage");return r.title=e.title,e.description&&r.addTag(new gr("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 Ul=class{static{i(this,"WebSetup")}constructor(e){this.tagManager=new Nh,this.readyDeferred=bo.defer(),this.readyForSmartssrDeferred=bo.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 Cy=class{static{i(this,"Title")}};var lj="1.3.17";function dM(t,e,r){return Math.max(t,Math.min(e,r))}i(dM,"clamp");function uj(t,e,r){return(1-r)*t+r*e}i(uj,"lerp");function cj(t,e,r,n){return uj(t,e,1-Math.exp(-r*n))}i(cj,"damp");function fj(t,e){return(t%e+e)%e}i(fj,"modulo");var pj=class{static{i(this,"Animate")}isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(t){if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;let r=dM(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=cj(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 hj(t,e){let r;return function(...n){let o=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,t.apply(o,n)},e)}}i(hj,"debounce");var dj=class{static{i(this,"Dimensions")}constructor(t,e,{autoResize:r=!0,debounce:n=250}={}){this.wrapper=t,this.content=e,r&&(this.debouncedResize=hj(this.resize,n),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}resize=i(()=>{this.onWrapperResize(),this.onContentResize()},"resize");onWrapperResize=i(()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)},"onWrapperResize");onContentResize=i(()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)},"onContentResize");get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},mM=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={}}},gM=100/6,xi={passive:!1},mj=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,xi),this.element.addEventListener("touchstart",this.onTouchStart,xi),this.element.addEventListener("touchmove",this.onTouchMove,xi),this.element.addEventListener("touchend",this.onTouchEnd,xi)}touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new mM;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,xi),this.element.removeEventListener("touchstart",this.onTouchStart,xi),this.element.removeEventListener("touchmove",this.onTouchMove,xi),this.element.removeEventListener("touchend",this.onTouchEnd,xi)}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?gM:n===2?this.window.width:1,s=n===1?gM: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")},xM=i(t=>Math.min(1,1.001-Math.pow(2,-10*t)),"defaultEasing"),Yl=class{static{i(this,"Lenis")}_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;isTouching;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new pj;emitter=new mM;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:d=1,wheelMultiplier:m=1,autoResize:g=!0,prevent:x,virtualScroll:y,overscroll:S=!0,autoRaf:T=!1,anchors:H=!1,autoToggle:z=!1,allowNestedScroll:C=!1,__experimental__naiveDimensions:W=!1,naiveDimensions:ee=W,stopInertiaOnNavigate:V=!1}={}){window.lenisVersion=lj,(!t||t===document.documentElement)&&(t=window),typeof l=="number"&&typeof u!="function"?u=xM: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:d,wheelMultiplier:m,autoResize:g,prevent:x,virtualScroll:y,overscroll:S,autoRaf:T,anchors:H,autoToggle:z,allowNestedScroll:C,naiveDimensions:ee,stopInertiaOnNavigate:V},this.dimensions=new dj(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 mj(r,{touchMultiplier:d,wheelMultiplier:m}),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 d=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,...d?{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 m=this.rootElement.getBoundingClientRect();e-=this.isHorizontal?m.left:m.top}let d=h.getBoundingClientRect();t=(this.isHorizontal?d.left:d.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=dM(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=xM: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,d)=>{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),d||this.emit(),d&&(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,d=this.options.gestureOrientation;if(n-(o.time??0)>2e3){o.time=Date.now();let z=window.getComputedStyle(t);o.computedStyle=z;let C=z.overflowX,W=z.overflowY;if(s=["auto","overlay","scroll"].includes(C),a=["auto","overlay","scroll"].includes(W),o.hasOverflowX=s,o.hasOverflowY=a,!s&&!a||d==="vertical"&&!a||d==="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||d==="vertical"&&(!a||!u)||d==="horizontal"&&(!s||!l))return!1;let m;if(d==="horizontal")m="x";else if(d==="vertical")m="y";else{let z=e!==0,C=r!==0;z&&s&&l&&(m="x"),C&&a&&u&&(m="y")}if(!m)return!1;let g,x,y,S,T;if(m==="x")g=t.scrollLeft,x=c-p,y=e,S=s,T=l;else if(m==="y")g=t.scrollTop,x=f-h,y=r,S=a,T=u;else return!1;return(y>0?g<x:g>0)&&S&&T}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?fj(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(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 oa=Qt(yM(),1),gj={ObjectMap:bn,Stringmap:Ua,FastMap:Hi};var qe={};le(qe,{containerContextStyles:()=>wj,cssForConstraint:()=>xj,cssForConstraintContainer:()=>yj,cssForContainer:()=>EM,cssForDesktop:()=>bj,cssForNotebook:()=>vj,cssForPhablet:()=>Sj,cssForPhone:()=>Tj,cssForTablet:()=>kj,cssForViewport:()=>ko,desktop:()=>bM,notebook:()=>vM,phablet:()=>SM,phone:()=>TM,tablet:()=>kM});var bM=1600,vM=1240,kM=1024,SM=600,TM=400,wM=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"),ko=i((t,e)=>Ee(`
|
|
176
|
+
@container wccToolsViewport ${e} {
|
|
177
|
+
${t.cssText}
|
|
188
178
|
}
|
|
189
|
-
@media
|
|
190
|
-
${
|
|
179
|
+
@media ${e} {
|
|
180
|
+
${t.cssText}
|
|
191
181
|
}
|
|
192
|
-
`),
|
|
193
|
-
@container
|
|
194
|
-
${
|
|
182
|
+
`),"cssForViewport"),EM=i((t,e,r)=>Ee(`
|
|
183
|
+
@container ${r} ${e} {
|
|
184
|
+
${t.cssText}
|
|
195
185
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
${e.cssText}
|
|
202
|
-
}
|
|
203
|
-
@media (max-width: ${L0}px) {
|
|
204
|
-
${e.cssText}
|
|
205
|
-
}
|
|
206
|
-
`),h7=e=>$e(`
|
|
207
|
-
@container wccToolsViewport (max-width: ${R0}px) {
|
|
208
|
-
${e.cssText}
|
|
209
|
-
}
|
|
210
|
-
@media (max-width: ${R0}px) {
|
|
211
|
-
${e.cssText}
|
|
212
|
-
}
|
|
213
|
-
`),m7=e=>$e(`
|
|
214
|
-
@container wccToolsViewport (max-width: ${B0}px) {
|
|
215
|
-
${e.cssText}
|
|
216
|
-
}
|
|
217
|
-
@media (max-width: ${B0}px) {
|
|
218
|
-
${e.cssText}
|
|
219
|
-
}
|
|
220
|
-
`);var Dm=class{constructor(t){this.scrollCallbacks=[],this.lenisInstance=null,this.handleNativeScroll=r=>{this.executeScrollCallbacks()},this.handleLenisScroll=r=>{this.executeScrollCallbacks()},this.sweetScroller=new Em.default({}),this.domtoolsInstance=t,this.attachNativeScrollListener()}async toElement(t,r){this.sweetScroller.toElement(t,r),await ce.delayFor(r.duration)}async detectNativeSmoothScroll(){let t=Pe.defer(),r=100,n=3,o=.75,i=[];function s(l){i.push(l.deltaY),i.length>=r&&(window.removeEventListener("wheel",s),a())}function a(){let l=i.length-1,u=0;for(let f=0;f<l;f++)Math.abs(i[f+1]-i[f])<=n&&u++;u/l>=o?(console.log("Smooth scrolling detected."),t.resolve(!0)):(console.log("Smooth scrolling NOT detected."),t.resolve(!1))}return window.addEventListener("wheel",s),t.promise}async enableLenisScroll(t){let r=new Ou({autoRaf:!0});if(t?.disableOnNativeSmoothScroll&&await this.detectNativeSmoothScroll()){r.destroy();return}this.lenisInstance=r,this.detachNativeScrollListener(),this.attachLenisScrollListener();let n=r.destroy.bind(r);r.destroy=()=>{n(),this.detachLenisScrollListener(),this.attachNativeScrollListener(),this.lenisInstance=null}}onScroll(t){this.scrollCallbacks.push(t)}executeScrollCallbacks(){this.scrollCallbacks.forEach(t=>{try{t()}catch(r){console.error("Error in scroll callback:",r)}})}attachNativeScrollListener(){window.addEventListener("scroll",this.handleNativeScroll)}detachNativeScrollListener(){window.removeEventListener("scroll",this.handleNativeScroll)}attachLenisScrollListener(){this.lenisInstance&&this.lenisInstance.on("scroll",this.handleLenisScroll)}detachLenisScrollListener(){this.lenisInstance&&this.lenisInstance.off("scroll",this.handleLenisScroll)}};var Cm=class{constructor(t){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new Xe.rxjs.ReplaySubject(1),this.domtoolsRef=t,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async enableAutomaticGlobalThemeChange(){document.body&&document.body.style&&this.themeObservable.subscribe({next:t=>{document.body.style.background=t?"#fff":"#000"}})}async updateAllConnectedElements(){this.themeObservable.next(this.goBrightBoolean)}goBright(){this.goBrightBoolean=!0,this.updateAllConnectedElements()}goDark(){this.goBrightBoolean=!1,this.updateAllConnectedElements()}toggleDarkBright(){this.goBrightBoolean=!this.goBrightBoolean,this.updateAllConnectedElements()}};var $0;(function(e){e[e.Backspace=8]="Backspace",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Shift=16]="Shift",e[e.Ctrl=17]="Ctrl",e[e.Alt=18]="Alt",e[e.PauseBreak=19]="PauseBreak",e[e.CapsLock=20]="CapsLock",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.LeftArrow=37]="LeftArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.DownArrow=40]="DownArrow",e[e.Insert=45]="Insert",e[e.Delete=46]="Delete",e[e.Zero=48]="Zero",e[e.ClosedParen=48]="ClosedParen",e[e.One=49]="One",e[e.ExclamationMark=49]="ExclamationMark",e[e.Two=50]="Two",e[e.AtSign=50]="AtSign",e[e.Three=51]="Three",e[e.PoundSign=51]="PoundSign",e[e.Hash=51]="Hash",e[e.Four=52]="Four",e[e.DollarSign=52]="DollarSign",e[e.Five=53]="Five",e[e.PercentSign=53]="PercentSign",e[e.Six=54]="Six",e[e.Caret=54]="Caret",e[e.Hat=54]="Hat",e[e.Seven=55]="Seven",e[e.Ampersand=55]="Ampersand",e[e.Eight=56]="Eight",e[e.Star=56]="Star",e[e.Asterik=56]="Asterik",e[e.Nine=57]="Nine",e[e.OpenParen=57]="OpenParen",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.LeftWindowKey=91]="LeftWindowKey",e[e.RightWindowKey=92]="RightWindowKey",e[e.SelectKey=93]="SelectKey",e[e.Numpad0=96]="Numpad0",e[e.Numpad1=97]="Numpad1",e[e.Numpad2=98]="Numpad2",e[e.Numpad3=99]="Numpad3",e[e.Numpad4=100]="Numpad4",e[e.Numpad5=101]="Numpad5",e[e.Numpad6=102]="Numpad6",e[e.Numpad7=103]="Numpad7",e[e.Numpad8=104]="Numpad8",e[e.Numpad9=105]="Numpad9",e[e.Multiply=106]="Multiply",e[e.Add=107]="Add",e[e.Subtract=109]="Subtract",e[e.DecimalPoint=110]="DecimalPoint",e[e.Divide=111]="Divide",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.NumLock=144]="NumLock",e[e.ScrollLock=145]="ScrollLock",e[e.SemiColon=186]="SemiColon",e[e.Equals=187]="Equals",e[e.Comma=188]="Comma",e[e.Dash=189]="Dash",e[e.Period=190]="Period",e[e.UnderScore=189]="UnderScore",e[e.PlusSign=187]="PlusSign",e[e.ForwardSlash=191]="ForwardSlash",e[e.Tilde=192]="Tilde",e[e.GraveAccent=192]="GraveAccent",e[e.OpenBracket=219]="OpenBracket",e[e.ClosedBracket=221]="ClosedBracket",e[e.Quote=222]="Quote"})($0||($0={}));var Om=class{constructor(t){this.domNode=t,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=$0,this.handleKeyDown=r=>{this.pressedKeys.add(r.keyCode),this.checkMatchingKeyboardSubjects(r)},this.handleKeyUp=r=>{this.pressedKeys.delete(r.keyCode)},this.startListening()}on(t){let r=new Xe.rxjs.Subject;return this.registerKeys(t,r),r}triggerKeyPress(t){for(let r of t)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of t)this.pressedKeys.delete(r)}startListening(){this.domNode.addEventListener("keydown",this.handleKeyDown),this.domNode.addEventListener("keyup",this.handleKeyUp)}stopListening(){this.domNode.removeEventListener("keydown",this.handleKeyDown),this.domNode.removeEventListener("keyup",this.handleKeyUp)}clear(){this.stopListening(),this.mapCombosToHandlers.clear(),this.pressedKeys.clear()}checkMatchingKeyboardSubjects(t){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(t)})}areAllKeysPressed(t){let r=!0;return t.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(t,r){if(!this.mapCombosToHandlers.has(t))this.mapCombosToHandlers.set(t,r);else return this.mapCombosToHandlers.get(t)}};var hn=class e{static{this.initializationPromise=null}static async setupDomTools(t={}){return!t.ignoreGlobal&&e.initializationPromise?await e.initializationPromise:t.ignoreGlobal?new e(t):(e.initializationPromise=(async()=>{let r;if(globalThis.deesDomTools)r=globalThis.deesDomTools;else{globalThis.deesDomTools=new e(t),r=globalThis.deesDomTools;let n=()=>{(document.readyState==="interactive"||document.readyState==="complete")&&(r.elements.headElement=document.querySelector("head"),r.elements.bodyElement=document.querySelector("body"),r.keyboard=new Om(document.body),r.domReady.resolve())};document.readyState==="interactive"||document.readyState==="complete"?n():document.addEventListener("readystatechange",n),r.domToolsReady.resolve()}return await r.domToolsReady.promise,r})(),await e.initializationPromise)}static getGlobalDomToolsSync(){if(!globalThis.deesDomTools)throw new Error("You tried to access domtools synchronously too early");return globalThis.deesDomTools}constructor(t){this.elements={headElement:null,bodyElement:null},this.websetup=new Cu({metaObject:{title:"loading..."}}),this.smartstate=new ko.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new So.SmartRouter({debug:!1}),this.convenience={typedrequest:lt,smartdelay:ce,smartjson:sr,smarturl:To},this.deesComms=new ql.DeesComms,this.scroller=new Dm(this),this.themeManager=new Cm(this),this.keyboard=null,this.domToolsReady=Pe.defer(),this.domReady=Pe.defer(),this.globalStylesReady=Pe.defer(),this.runOnceTrackerStringMap=new Mu.Stringmap,this.runOnceResultMap=new Mu.FastMap,this.runOnceErrorMap=new Mu.FastMap}async runOnce(t,r){let n=`${t}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(t)){this.runOnceTrackerStringMap.addString(t),this.runOnceTrackerStringMap.addString(n);try{let o=await r();this.runOnceResultMap.addToMap(t,o)}catch(o){this.runOnceErrorMap.addToMap(t,o)}finally{this.runOnceTrackerStringMap.removeString(n)}}return await this.runOnceTrackerStringMap.registerUntilTrue(o=>!o.includes(n),()=>{let o=this.runOnceErrorMap.getByKey(t);if(o)throw o;return this.runOnceResultMap.getByKey(t)})}async setGlobalStyles(t){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(t)),this.elements.headElement.appendChild(r)}async setExternalScript(t){await this.domReady.promise;let r=Pe.defer(),n=document.createElement("script");n.src=t,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(t){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=t,document.head.append(r)}async setWebsiteInfo(t){await this.websetup.setup(t),await this.websetup.readyPromise}};var Mm=(()=>{let e=navigator.userAgent.indexOf("Mac OS X")===-1?Je``.cssText:"";return Je`
|
|
186
|
+
`),"cssForContainer"),xj=i(t=>e=>ko(e,wM(t)),"cssForConstraint"),yj=i((t,e)=>r=>EM(r,wM(t),e),"cssForConstraintContainer"),wj=i(t=>ze`
|
|
187
|
+
:host {
|
|
188
|
+
container-type: inline-size;
|
|
189
|
+
container-name: ${Ee(t)};
|
|
190
|
+
}
|
|
191
|
+
`,"containerContextStyles"),bj=i(t=>ko(t,`(min-width: ${bM}px)`),"cssForDesktop"),vj=i(t=>ko(t,`(max-width: ${vM}px)`),"cssForNotebook"),kj=i(t=>ko(t,`(max-width: ${kM}px)`),"cssForTablet"),Sj=i(t=>ko(t,`(max-width: ${SM}px)`),"cssForPhablet"),Tj=i(t=>ko(t,`(max-width: ${TM}px)`),"cssForPhone");var Lh=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 oa.default({});async toElement(e,r){this.sweetScroller.toElement(e,r),r?.duration&&await ue.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=ie.defer(),o=12,s=3,a=.75,l=1200,u=[],c=i(d=>{window.removeEventListener("wheel",f),window.clearTimeout(h),n.resolve(d)},"finalize");function f(d){u.push(d.deltaY),u.length>=o&&p()}i(f,"onWheel");function p(){if(u.length<2){c(!1);return}let d=u.length-1,m=0;for(let x=0;x<d;x++)Math.abs(u[x+1]-u[x])<=s&&m++;let g=m/d;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 Yl({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 Ah=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 P;(function(t){t[t.Backspace=8]="Backspace",t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Shift=16]="Shift",t[t.Ctrl=17]="Ctrl",t[t.Alt=18]="Alt",t[t.PauseBreak=19]="PauseBreak",t[t.CapsLock=20]="CapsLock",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.LeftArrow=37]="LeftArrow",t[t.UpArrow=38]="UpArrow",t[t.RightArrow=39]="RightArrow",t[t.DownArrow=40]="DownArrow",t[t.Insert=45]="Insert",t[t.Delete=46]="Delete",t[t.Zero=48]="Zero",t[t.ClosedParen=48]="ClosedParen",t[t.One=49]="One",t[t.ExclamationMark=49]="ExclamationMark",t[t.Two=50]="Two",t[t.AtSign=50]="AtSign",t[t.Three=51]="Three",t[t.PoundSign=51]="PoundSign",t[t.Hash=51]="Hash",t[t.Four=52]="Four",t[t.DollarSign=52]="DollarSign",t[t.Five=53]="Five",t[t.PercentSign=53]="PercentSign",t[t.Six=54]="Six",t[t.Caret=54]="Caret",t[t.Hat=54]="Hat",t[t.Seven=55]="Seven",t[t.Ampersand=55]="Ampersand",t[t.Eight=56]="Eight",t[t.Star=56]="Star",t[t.Asterik=56]="Asterik",t[t.Nine=57]="Nine",t[t.OpenParen=57]="OpenParen",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.LeftWindowKey=91]="LeftWindowKey",t[t.RightWindowKey=92]="RightWindowKey",t[t.SelectKey=93]="SelectKey",t[t.Numpad0=96]="Numpad0",t[t.Numpad1=97]="Numpad1",t[t.Numpad2=98]="Numpad2",t[t.Numpad3=99]="Numpad3",t[t.Numpad4=100]="Numpad4",t[t.Numpad5=101]="Numpad5",t[t.Numpad6=102]="Numpad6",t[t.Numpad7=103]="Numpad7",t[t.Numpad8=104]="Numpad8",t[t.Numpad9=105]="Numpad9",t[t.Multiply=106]="Multiply",t[t.Add=107]="Add",t[t.Subtract=109]="Subtract",t[t.DecimalPoint=110]="DecimalPoint",t[t.Divide=111]="Divide",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.NumLock=144]="NumLock",t[t.ScrollLock=145]="ScrollLock",t[t.SemiColon=186]="SemiColon",t[t.Equals=187]="Equals",t[t.Comma=188]="Comma",t[t.Dash=189]="Dash",t[t.Period=190]="Period",t[t.UnderScore=189]="UnderScore",t[t.PlusSign=187]="PlusSign",t[t.ForwardSlash=191]="ForwardSlash",t[t.Tilde=192]="Tilde",t[t.GraveAccent=192]="GraveAccent",t[t.OpenBracket=219]="OpenBracket",t[t.ClosedBracket=221]="ClosedBracket",t[t.Quote=222]="Quote"})(P||(P={}));var Bh=class{static{i(this,"Keyboard")}domNode;mapCombosToHandlers=new Map;pressedKeys=new Set;listening=!1;constructor(e){this.domNode=e,this.startListening()}keyEnum=P;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 P[e.slice(3)]??null;if(e.startsWith("Digit")&&e.length===6)return this.resolveKeyFromKey(e.slice(5));switch(e){case"Backspace":return P.Backspace;case"Tab":return P.Tab;case"Enter":case"NumpadEnter":return P.Enter;case"ShiftLeft":case"ShiftRight":return P.Shift;case"ControlLeft":case"ControlRight":return P.Ctrl;case"AltLeft":case"AltRight":return P.Alt;case"Pause":return P.PauseBreak;case"CapsLock":return P.CapsLock;case"Escape":return P.Escape;case"Space":return P.Space;case"PageUp":return P.PageUp;case"PageDown":return P.PageDown;case"End":return P.End;case"Home":return P.Home;case"ArrowLeft":return P.LeftArrow;case"ArrowUp":return P.UpArrow;case"ArrowRight":return P.RightArrow;case"ArrowDown":return P.DownArrow;case"Insert":return P.Insert;case"Delete":return P.Delete;case"MetaLeft":return P.LeftWindowKey;case"MetaRight":return P.RightWindowKey;case"ContextMenu":return P.SelectKey;case"Numpad0":return P.Numpad0;case"Numpad1":return P.Numpad1;case"Numpad2":return P.Numpad2;case"Numpad3":return P.Numpad3;case"Numpad4":return P.Numpad4;case"Numpad5":return P.Numpad5;case"Numpad6":return P.Numpad6;case"Numpad7":return P.Numpad7;case"Numpad8":return P.Numpad8;case"Numpad9":return P.Numpad9;case"NumpadMultiply":return P.Multiply;case"NumpadAdd":return P.Add;case"NumpadSubtract":return P.Subtract;case"NumpadDecimal":return P.DecimalPoint;case"NumpadDivide":return P.Divide;case"F1":return P.F1;case"F2":return P.F2;case"F3":return P.F3;case"F4":return P.F4;case"F5":return P.F5;case"F6":return P.F6;case"F7":return P.F7;case"F8":return P.F8;case"F9":return P.F9;case"F10":return P.F10;case"F11":return P.F11;case"F12":return P.F12;case"NumLock":return P.NumLock;case"ScrollLock":return P.ScrollLock;case"Semicolon":return P.SemiColon;case"Equal":return P.Equals;case"Comma":return P.Comma;case"Minus":return P.Dash;case"Period":return P.Period;case"Slash":return P.ForwardSlash;case"Backquote":return P.Tilde;case"BracketLeft":return P.OpenBracket;case"BracketRight":return P.ClosedBracket;case"Quote":return P.Quote;default:return null}}resolveKeyFromKey(e){if(!e)return null;if(e.length===1){let r=e.toUpperCase();if(r>="A"&&r<="Z")return P[r]??null;switch(e){case"0":return P.Zero;case"1":return P.One;case"2":return P.Two;case"3":return P.Three;case"4":return P.Four;case"5":return P.Five;case"6":return P.Six;case"7":return P.Seven;case"8":return P.Eight;case"9":return P.Nine;case" ":return P.Space;case";":return P.SemiColon;case"=":return P.Equals;case",":return P.Comma;case"-":return P.Dash;case".":return P.Period;case"/":return P.ForwardSlash;case"`":return P.Tilde;case"[":return P.OpenBracket;case"]":return P.ClosedBracket;case"'":return P.Quote;default:return null}}switch(e){case"Backspace":return P.Backspace;case"Tab":return P.Tab;case"Enter":return P.Enter;case"Shift":return P.Shift;case"Control":return P.Ctrl;case"Alt":return P.Alt;case"Pause":return P.PauseBreak;case"CapsLock":return P.CapsLock;case"Escape":return P.Escape;case"PageUp":return P.PageUp;case"PageDown":return P.PageDown;case"End":return P.End;case"Home":return P.Home;case"ArrowLeft":return P.LeftArrow;case"ArrowUp":return P.UpArrow;case"ArrowRight":return P.RightArrow;case"ArrowDown":return P.DownArrow;case"Insert":return P.Insert;case"Delete":return P.Delete;case"Meta":return P.LeftWindowKey;case"ContextMenu":return P.SelectKey;case"NumLock":return P.NumLock;case"ScrollLock":return P.ScrollLock;default:return null}}resolveKeyFromKeyCode(e){return typeof e!="number"?null:typeof P[e]<"u"?e:null}createKeyboardEvent(e){let r=e[e.length-1]??P.Enter,n=this.getKeyDescriptor(r);return new KeyboardEvent("keydown",{key:n.key,code:n.code,ctrlKey:e.includes(P.Ctrl),shiftKey:e.includes(P.Shift),altKey:e.includes(P.Alt),metaKey:e.includes(P.LeftWindowKey)||e.includes(P.RightWindowKey)})}getKeyDescriptor(e){switch(e){case P.Ctrl:return{key:"Control",code:"ControlLeft"};case P.Shift:return{key:"Shift",code:"ShiftLeft"};case P.Alt:return{key:"Alt",code:"AltLeft"};case P.Enter:return{key:"Enter",code:"Enter"};case P.Space:return{key:" ",code:"Space"};default:{let r=P[e];if(r&&r.length===1&&r>="A"&&r<="Z")return{key:r.toLowerCase(),code:`Key${r}`};if(e>=P.Zero&&e<=P.Nine){let n=String(e-P.Zero);return{key:n,code:`Digit${n}`}}return{key:r??"Unidentified",code:"Unidentified"}}}}};var hn=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 Ul({metaObject:{title:""}});smartstate=new xo.Smartstate;domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:""});router=new go.SmartRouter({debug:!1});convenience={typedrequest:Mr,smartdelay:ue,smartjson:at,smarturl:yo};deesComms=new ol.DeesComms;scroller=new Lh(this);themeManager=new Ah(this);keyboard=null;disposed=!1;domToolsReady=ie.defer();domReady=ie.defer();globalStylesReady=ie.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 Bh(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=ie.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=ie.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 $h=(()=>{let t=navigator.userAgent.indexOf("Mac OS X")===-1?ze``.cssText:"";return ze`
|
|
221
192
|
/* width */
|
|
222
193
|
::-webkit-scrollbar {
|
|
223
194
|
width: 0px;
|
|
@@ -225,7 +196,7 @@ ${o}
|
|
|
225
196
|
body {
|
|
226
197
|
scrollbar-width: none;
|
|
227
198
|
}
|
|
228
|
-
`.cssText})(),
|
|
199
|
+
`.cssText})(),DM=ze`
|
|
229
200
|
/*
|
|
230
201
|
@font-face {
|
|
231
202
|
font-family: 'Material Icons';
|
|
@@ -243,8 +214,8 @@ ${o}
|
|
|
243
214
|
}
|
|
244
215
|
|
|
245
216
|
/* scroll bar styles */
|
|
246
|
-
${$
|
|
247
|
-
`.cssText;var
|
|
217
|
+
${Ee($h)}
|
|
218
|
+
`.cssText;var Ej=ze`
|
|
248
219
|
* {
|
|
249
220
|
transition: background 0.1s, color 0.1s;
|
|
250
221
|
box-sizing: border-box;
|
|
@@ -255,8 +226,8 @@ ${o}
|
|
|
255
226
|
font-family: 'Geist Sans', 'Inter', sans-serif;
|
|
256
227
|
}
|
|
257
228
|
|
|
258
|
-
${$
|
|
259
|
-
`,
|
|
229
|
+
${Ee($h)}
|
|
230
|
+
`,Dj=Ke`
|
|
260
231
|
<style>
|
|
261
232
|
* {
|
|
262
233
|
transition: background 0.1s, color 0.1s;
|
|
@@ -267,10 +238,10 @@ ${o}
|
|
|
267
238
|
font-family: 'Geist Sans', 'Inter', sans-serif;
|
|
268
239
|
}
|
|
269
240
|
|
|
270
|
-
${
|
|
241
|
+
${$h}
|
|
271
242
|
</style>
|
|
272
|
-
`,
|
|
273
|
-
take care to ensure page security.`)})(n)+e[o+1]),e[0]),r:j0}),FP=new Map,Fm=e=>(t,...r)=>{let n=r.length,o,i,s=[],a=[],l,u=0,c=!1;for(;u<n;){for(l=t[u];u<n&&(i=r[u],(o=b7(i))!==void 0);)l+=o+t[++u],c=!0;u!==n&&a.push(i),s.push(l),u++}if(u===n&&s.push(t[n]),c){let f=s.join("$$lit$$");(t=FP.get(f))===void 0&&(s.raw=s,FP.set(f,t=s)),r=a}return e(t,...r)},LP=Fm(et),v7=Fm(Ym),S7=Fm(Vm);var Oo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Nt=e=>(...t)=>({_$litDirective$:e,values:t}),Co=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this._$Ct=t,this._$AM=r,this._$Ci=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var Ca=class extends Co{constructor(t){if(super(t),this.it=qe,t.type!==Oo.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===qe||t==null)return this._t=void 0,this.it=t;if(t===Ue)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Ca.directiveName="unsafeHTML",Ca.resultType=1;var RP=Nt(Ca);var Sr=e=>(t,r)=>{r!==void 0?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)};function BP(e){return mr({...e,state:!0,attribute:!1})}function k7(e){return(t,r)=>{let n=typeof t=="function"?t:t[r];Object.assign(n,e)}}var kr=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function $P(e,t){return(r,n,o)=>{let i=s=>s.renderRoot?.querySelector(e)??null;if(t){let{get:s,set:a}=typeof n=="object"?r:o??(()=>{let l=Symbol();return{get(){return this[l]},set(u){this[l]=u}}})();return kr(r,n,{get(){let l=s.call(this);return l===void 0&&(l=i(this),(l!==null||this.hasUpdated)&&a.call(this,l)),l}})}return kr(r,n,{get(){return i(this)}})}}var T7;function UP(e){return(t,r)=>kr(t,r,{get(){return(this.renderRoot??(T7??=document.createDocumentFragment())).querySelectorAll(e)}})}function zP(e){return(t,r)=>kr(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function E7(e){return(t,r)=>{let{slot:n,selector:o}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return kr(t,r,{get(){let s=this.renderRoot?.querySelector(i),a=s?.assignedElements(e)??[];return o===void 0?a:a.filter((l=>l.matches(o)))}})}}function A7(e){return(t,r)=>{let{slot:n}=e??{},o="slot"+(n?`[name=${n}]`:":not([name])");return kr(t,r,{get(){return this.renderRoot?.querySelector(o)?.assignedNodes(e)??[]}})}}var jP=function(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i},qP=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Kt=class extends Do.LitElement{constructor(t={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=mn.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.startupFunctions=[],this.garbageFunctions=[],this.domtoolsPromise=mn.elementBasic.setup(this,t),this.domtoolsPromise.then(r=>{this.domtools=r})}async connectedCallback(){super.connectedCallback();let t=await this.domtoolsPromise;this.themeSubscription=t.themeManager.themeObservable.subscribe(r=>{this.goBright=r,this.themeChanged&&this.themeChanged(r)}),this.rxSubscriptions.push(this.themeSubscription);for(let r of this.startupFunctions)await r();this.dispatchEvent(new CustomEvent("deesElementConnected"))}firstUpdated(t){super.firstUpdated(t),this.elementDomReadyDeferred.resolve()}registerStartupFunction(t){this.startupFunctions.push(t)}registerGarbageFunction(t){this.garbageFunctions.push(t)}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let t of this.rxSubscriptions)t.unsubscribe();for(let t of this.garbageFunctions)await t();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}};jP([Do.property({type:Boolean}),qP("design:type",Boolean)],Kt.prototype,"goBright",void 0),jP([Do.property(),qP("design:type",mn.DomTools)],Kt.prototype,"domtools",void 0);var ew={};te(ew,{asyncAppend:()=>K0,resolve:()=>YP,resolveExec:()=>U7,subscribe:()=>z7,subscribeWithTemplate:()=>VP,until:()=>Z0});var{I:D7}=Gm,q0=e=>e===null||typeof e!="object"&&typeof e!="function",C7={HTML:1,SVG:2,MATHML:3},O7=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,M7=e=>e?._$litType$?.h!=null,_7=e=>e?._$litDirective$!==void 0,I7=e=>e?._$litDirective$,H0=e=>e.strings===void 0,HP=()=>document.createComment(""),W0=(e,t,r)=>{let n=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(r===void 0){let i=n.insertBefore(HP(),o),s=n.insertBefore(HP(),o);r=new D7(i,s,e,e.options)}else{let i=r._$AB.nextSibling,s=r._$AM,a=s!==e;if(a){let l;r._$AQ?.(e),r._$AM=e,r._$AP!==void 0&&(l=e._$AU)!==s._$AU&&r._$AP(l)}if(i!==o||a){let l=r._$AA;for(;l!==i;){let u=l.nextSibling;n.insertBefore(l,o),l=u}}}return r},Y0=(e,t,r=e)=>(e._$AI(t,r),e),P7={},F7=(e,t=P7)=>e._$AH=t,N7=e=>e._$AH,L7=e=>{e._$AR(),e._$AA.remove()},V0=e=>{e._$AR()};var _u=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),_u(n,t);return!0},Nm=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},WP=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),$7(t)}};function R7(e){this._$AN!==void 0?(Nm(this),this._$AM=e,WP(this)):this._$AM=e}function B7(e,t=!1,r=0){let n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(t)if(Array.isArray(n))for(let i=r;i<n.length;i++)_u(n[i],!1),Nm(n[i]);else n!=null&&(_u(n,!1),Nm(n));else _u(this,e)}var $7=e=>{e.type==Oo.CHILD&&(e._$AP??=B7,e._$AQ??=R7)},ur=class extends Co{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),WP(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(_u(this,t),Nm(this))}setValue(t){if(H0(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var G0=class extends ur{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(t){return this.promise!==t&&(this.promise=t,this.isConnected&&this.handlePromise(t)),Ue}handlePromise(t){this.hasPromiseSettled=!1,t.then(r=>{this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)}).catch(r=>{this.promise===t&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)})}disconnected(){this.hasPromiseSettled=!0}reconnected(){this.hasPromiseSettled||this.handlePromise(this.promise)}},YP=Nt(G0),U7=e=>YP(e());var Q0=class extends ur{constructor(){super(...arguments),this.sub=null}render(t){return this.observable!==t&&(this.sub?.unsubscribe(),this.observable=t,this.isConnected&&this.subscribe(t)),Ue}subscribe(t){this.sub=t.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},z7=Nt(Q0);var J0=class extends ur{constructor(){super(...arguments),this.sub=null}render(t,r){return(this.observable!==t||this.templateFn!==r)&&(this.sub?.unsubscribe(),this.observable=t,this.templateFn=r,this.isConnected&&this.startSubscription()),Ue}startSubscription(){this.sub=this.observable.subscribe(t=>{let r=this.templateFn(t);this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.startSubscription()}},VP=Nt(J0);var X0=async(e,t)=>{for await(let r of e)if(await t(r)===!1)return},Li=class{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}},Ri=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise((t=>this.Z=t))}resume(){this.Z?.(),this.Y=this.Z=void 0}};var GP=e=>!q0(e)&&typeof e.then=="function",QP=1073741823,Lm=class extends ur{constructor(){super(...arguments),this._$Cwt=QP,this._$Cbt=[],this._$CK=new Li(this),this._$CX=new Ri}render(...t){return t.find((r=>!GP(r)))??Ue}update(t,r){let n=this._$Cbt,o=n.length;this._$Cbt=r;let i=this._$CK,s=this._$CX;this.isConnected||this.disconnected();for(let a=0;a<r.length&&!(a>this._$Cwt);a++){let l=r[a];if(!GP(l))return this._$Cwt=a,l;a<o&&l===n[a]||(this._$Cwt=QP,o=0,Promise.resolve(l).then((async u=>{for(;s.get();)await s.get();let c=i.deref();if(c!==void 0){let f=c._$Cbt.indexOf(l);f>-1&&f<c._$Cwt&&(c._$Cwt=f,c.setValue(u))}})))}return Ue}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},Z0=Nt(Lm);var Oa=class extends ur{constructor(){super(...arguments),this._$CK=new Li(this),this._$CX=new Ri}render(t,r){return Ue}update(t,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CJ)return Ue;this._$CJ=r;let o=0,{_$CK:i,_$CX:s}=this;return X0(r,(async a=>{for(;s.get();)await s.get();let l=i.deref();if(l!==void 0){if(l._$CJ!==r)return!1;n!==void 0&&(a=n(a,o)),l.commitValue(a,o),o++}return!0})),Ue}commitValue(t,r){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},j7=Nt(Oa);var K0=Nt(class extends Oa{constructor(e){if(super(e),e.type!==Oo.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(e,t){return this._$Ctt=e,super.update(e,t)}commitValue(e,t){t===0&&V0(this._$Ctt);let r=W0(this._$Ctt);Y0(r,e)}});var fe=Pm.getSingleton();var PVe=$e('system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'),V={light:{background:"#ffffff",foreground:"#09090b",muted:"#f4f4f5",mutedForeground:"#71717a",border:"#e4e4e7",input:"#e4e4e7",primary:"#18181b",primaryForeground:"#fafafa",secondary:"#f4f4f5",secondaryForeground:"#18181b",accent:"#f4f4f5",accentForeground:"#18181b",ring:"#a1a1aa"},dark:{background:"#09090b",foreground:"#fafafa",muted:"#27272a",mutedForeground:"#a1a1aa",border:"#27272a",input:"#27272a",primary:"#fafafa",primaryForeground:"#18181b",secondary:"#27272a",secondaryForeground:"#fafafa",accent:"#27272a",accentForeground:"#fafafa",ring:"#52525b"}};var JP={};var Rm=class{constructor(){this.webstore=new jt.WebStore({dbName:"consentsoftware",storeName:"webclient"})}async isCookieLevelSet(){return!!await this.webstore.get("acceptedCookieLevels")}async setCookieLevels(t){return await this.webstore.set("acceptedCookieLevels",{acceptanceTimestamp:Date.now(),acceptedCookieLevels:t}),!0}async getCookieLevels(){return(await this.webstore.get("acceptedCookieLevels"))?.acceptedCookieLevels}async isCookieLevelStillValid(){return!(!this.isCookieLevelSet||(await this.webstore.get("acceptedCookieLevels")).acceptanceTimestamp<Date.now()-st.getMilliSecondsFromUnits({months:3}))}async getAndRunConsentTuples(t){let r=await this.getCookieLevels();if(!r){console.log("You need to set accepted cookielevels first");return}let n=new lt.TypedRequest("https://connect.api.global/consentsoftware","getDomainSettings"),o=t||window.location.hostname,i=await n.fire({domain:o});for(let s of i.consentTuples)if(s.level==="functional"||r.includes(s.level)){let a=s.script,l=new Function("dataArg","cookieLevelsArg",`return (${a})(dataArg, cookieLevelsArg)`);if(typeof l=="function")await l(s.scriptExecutionDataArg,await this.getCookieLevels());else{let u="got malformed script to execuute";throw console.error(u),new Error(u)}console.log(`Successfully executed ConsentTuple >>${s.name}<< -> ${s.description}`)}}};var XP,tw,W7;XP=[Sr("consentsoftware-cookieconsent")];var Iu=class extends(W7=Kt){static demo=()=>et`<consentsoftware-cookieconsent></consentsoftware-cookieconsent>`;csWebclientInstance=new Rm;csWebclientRan=!1;static styles=[fe.defaultStyles,Je`
|
|
243
|
+
`,Cj=i(async(t,e={})=>{let r=await hn.setupDomTools(e);return await r.runOnce("elementBasicSetup",async()=>{await r.setGlobalStyles(DM)}),r.globalStylesReady.status==="pending"&&r.globalStylesReady.resolve(),await r.globalStylesReady.promise,r},"setup");var Hh={};le(Hh,{cssGridColumns:()=>Mj});var Mj=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 zh={};le(zh,{SweetScroll:()=>oa.default,smartdelay:()=>ue,smartmarkdown:()=>zl,smartpromise:()=>ie,smartrouter:()=>go,smartrx:()=>Me,smartstate:()=>xo,smartstring:()=>tn,smarturl:()=>yo,typedrequest:()=>Mr});var Py=Qt(ya(),1),yi={css:ze,unsafeCSS:Ee,LitElement:yn,property:lr};var Wh=class t{static{i(this,"CssManager")}static instance=null;static getSingleton(){return t.instance||(t.instance=new t),t.instance}domtoolsPromise=hn.setupDomTools();goBright=!1;bdVarTripletStore=[];constructor(){this.domtoolsPromise.then(async e=>{e.themeManager.themeObservable.subscribe(async r=>{this.goBright=r,await e.domReady.promise;for(let n of this.bdVarTripletStore)document.body.style.setProperty(n.cssVarName,this.goBright?n.brightValue:n.darkValue)})})}get defaultStyles(){return sa.staticStyles}getContainerNameFromClass(e){return e.is||e.name.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}cssForDesktop(e,r){return r?Ee(qe.cssForContainer(e,`(min-width: ${qe.desktop}px)`,this.getContainerNameFromClass(r))):Ee(qe.cssForDesktop(e))}cssForNotebook(e,r){return r?Ee(qe.cssForContainer(e,`(max-width: ${qe.notebook}px)`,this.getContainerNameFromClass(r))):Ee(qe.cssForNotebook(e))}cssForTablet(e,r){return r?Ee(qe.cssForContainer(e,`(max-width: ${qe.tablet}px)`,this.getContainerNameFromClass(r))):Ee(qe.cssForTablet(e))}cssForPhablet(e,r){return r?Ee(qe.cssForContainer(e,`(max-width: ${qe.phablet}px)`,this.getContainerNameFromClass(r))):Ee(qe.cssForPhablet(e))}cssForPhone(e,r){return r?Ee(qe.cssForContainer(e,`(max-width: ${qe.phone}px)`,this.getContainerNameFromClass(r))):Ee(qe.cssForPhone(e))}cssForConstraint(e){return r=>Ee(qe.cssForConstraint(e)(r))}bdTheme(e,r){let n,o;hn.getGlobalDomToolsSync()?o=hn.getGlobalDomToolsSync().themeManager.goBrightBoolean?e:r:o=r;let s=this.bdVarTripletStore.find(a=>a.darkValue===r&&a.brightValue===e);if(s)n=s.cssVarName;else{let a={cssVarName:`--${Py.uni()}`,brightValue:e,darkValue:r};this.bdVarTripletStore.push(a),this.domtoolsPromise.then(async l=>{await l.domReady.promise,document.body.style.setProperty(a.cssVarName,o)}),n=a.cssVarName}return yi.unsafeCSS(`var(${n}, ${o})`)}cssGridColumns=i((e,r)=>{let n="";for(let o=0;o<e;o++)n+=` calc((100%/${e}) - (${r*(e-1)}px/${e}))`;return yi.unsafeCSS(n)},"cssGridColumns")};var _y=Symbol.for(""),Oj=i(t=>{if(t?.r===_y)return t?._$litStatic$},"o"),OM=i(t=>({_$litStatic$:t,r:_y}),"s"),Ij=i((t,...e)=>({_$litStatic$:e.reduce(((r,n,o)=>r+(s=>{if(s._$litStatic$!==void 0)return s._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${s}. Use 'unsafeStatic' to pass non-literal values, but
|
|
244
|
+
take care to ensure page security.`)})(n)+t[o+1]),t[0]),r:_y}),"i"),MM=new Map,qh=i(t=>(e,...r)=>{let n=r.length,o,s,a=[],l=[],u,c=0,f=!1;for(;c<n;){for(u=e[c];c<n&&(s=r[c],(o=Oj(s))!==void 0);)u+=o+e[++c],f=!0;c!==n&&l.push(s),a.push(u),c++}if(c===n&&a.push(e[n]),f){let p=a.join("$$lit$$");(e=MM.get(p))===void 0&&(a.raw=a,MM.set(p,e=a)),r=l}return t(e,...r)},"n"),IM=qh(Ke),Pj=qh(rd),_j=qh(nd);var dn={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},nt=i(t=>(...e)=>({_$litDirective$:t,values:e}),"e"),xr=class{static{i(this,"i")}constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var aa=class extends xr{static{i(this,"e")}constructor(e){if(super(e),this.it=He,e.type!==dn.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===He||e==null)return this._t=void 0,this.it=e;if(e===Be)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};aa.directiveName="unsafeHTML",aa.resultType=1;var PM=nt(aa);var Ry=i(t=>(e,r)=>{r!==void 0?r.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},"t");var Rj=i(t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),"camelToKebab");function Pr(t){return(e,r)=>{if(e.is=t,e.name){let n=Rj(e.name);n!==t&&console.warn(`[dees-element] Class "${e.name}" kebab-cases to "${n}" but tag is "${t}". Container queries use .is ("${t}").`)}return Ry(t)(e,r)}}i(Pr,"customElement");function _M(t){return lr({...t,state:!0,attribute:!1})}i(_M,"r");function Nj(t){return(e,r)=>{let n=typeof e=="function"?e:e[r];Object.assign(n,t)}}i(Nj,"t");var yr=i((t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r),"e");function RM(t,e){return(r,n,o)=>{let s=i(a=>a.renderRoot?.querySelector(t)??null,"o");if(e){let{get:a,set:l}=typeof n=="object"?r:o??(()=>{let u=Symbol();return{get(){return this[u]},set(c){this[u]=c}}})();return yr(r,n,{get(){let u=a.call(this);return u===void 0&&(u=s(this),(u!==null||this.hasUpdated)&&l.call(this,u)),u}})}return yr(r,n,{get(){return s(this)}})}}i(RM,"e");var Fj;function NM(t){return(e,r)=>yr(e,r,{get(){return(this.renderRoot??(Fj??=document.createDocumentFragment())).querySelectorAll(t)}})}i(NM,"r");function FM(t){return(e,r)=>yr(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}i(FM,"r");function Lj(t){return(e,r)=>{let{slot:n,selector:o}=t??{},s="slot"+(n?`[name=${n}]`:":not([name])");return yr(e,r,{get(){let a=this.renderRoot?.querySelector(s),l=a?.assignedElements(t)??[];return o===void 0?l:l.filter((u=>u.matches(o)))}})}}i(Lj,"o");function Aj(t){return(e,r)=>{let{slot:n}=t??{},o="slot"+(n?`[name=${n}]`:":not([name])");return yr(e,r,{get(){return this.renderRoot?.querySelector(o)?.assignedNodes(t)??[]}})}}i(Aj,"n");var LM=function(t,e,r,n,o,s){function a(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}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,d=r.length-1;d>=0;d--){var m={};for(var g in n)m[g]=g==="access"?{}:n[g];for(var g in n.access)m.access[g]=n.access[g];m.addInitializer=function(y){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(y||null))};var x=(0,r[d])(l==="accessor"?{get:f.get,set:f.set}:f[u],m);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},jh=function(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},_r=(()=>{let t=yi.LitElement,e,r=[],n=[],o,s=[],a=[];return class extends t{static{i(this,"DeesElement")}static{let u=typeof Symbol=="function"&&Symbol.metadata?Object.create(t[Symbol.metadata]??null):void 0;e=[yi.property({type:Boolean,reflect:!0})],o=[yi.property()],LM(this,null,e,{kind:"accessor",name:"goBright",static:!1,private:!1,access:{has:i(c=>"goBright"in c,"has"),get:i(c=>c.goBright,"get"),set:i((c,f)=>{c.goBright=f},"set")},metadata:u},r,n),LM(this,null,o,{kind:"accessor",name:"domtools",static:!1,private:!1,access:{has:i(c=>"domtools"in c,"has"),get:i(c=>c.domtools,"get"),set:i((c,f)=>{c.domtools=f},"set")},metadata:u},s,a),u&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u})}static getContainerName(){return this.is||this.name.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}static cssForConstraint(u){return c=>Ir.breakpoints.cssForConstraintContainer(u,this.getContainerName())(c)}#e=jh(this,r,!1);get goBright(){return this.#e}set goBright(u){this.#e=u}domtoolsPromise=jh(this,n);#t=jh(this,s,void 0);get domtools(){return this.#t}set domtools(u){this.#t=u}rxSubscriptions=(jh(this,a),[]);themeSubscription;elementDomReadyDeferred=Ir.plugins.smartpromise.defer();elementDomReady=this.elementDomReadyDeferred.promise;constructor(u={}){super(),this.domtoolsPromise=Ir.elementBasic.setup(this,u),this.domtoolsPromise.then(c=>{this.domtools=c})}async connectedCallback(){super.connectedCallback();let u=await this.domtoolsPromise;this.themeSubscription=u.themeManager.themeObservable.subscribe(c=>{this.goBright=c,this.themeChanged&&this.themeChanged(c)}),this.rxSubscriptions.push(this.themeSubscription);for(let c of this.startupFunctions)await c();this.dispatchEvent(new CustomEvent("deesElementConnected"))}firstUpdated(u){super.firstUpdated(u),this.elementDomReadyDeferred.resolve()}startupFunctions=[];registerStartupFunction(u){this.startupFunctions.push(u)}garbageFunctions=[];registerGarbageFunction(u){this.garbageFunctions.push(u)}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let u of this.rxSubscriptions)u.unsubscribe();for(let u of this.garbageFunctions)await u();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}}})();var Bj=i(t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),"camelToKebab");function $j(){return function(t){let e=t.is||t.name.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=t.name?Bj(t.name):null;if(r&&r!==e){let s=i(l=>l&&l.cssText&&l.cssText.includes(`@container ${r}`)?Ee(l.cssText.replaceAll(`@container ${r}`,`@container ${e}`)):l,"fixStyle"),a=t.styles;Array.isArray(a)?t.styles=a.map(s):a&&(t.styles=s(a))}let n=qe.containerContextStyles(e),o=t.styles;return Array.isArray(o)?t.styles=[...o,n]:o?t.styles=[o,n]:t.styles=[n],t}}i($j,"containerResponsive");var Yy={};le(Yy,{asyncAppend:()=>qy,keyed:()=>jy,repeat:()=>Uy,resolve:()=>$M,resolveExec:()=>Jj,subscribe:()=>Xj,subscribeWithTemplate:()=>HM,until:()=>Wy});var{I:Hj}=id,Ny=i(t=>t===null||typeof t!="object"&&typeof t!="function","i"),zj={HTML:1,SVG:2,MATHML:3},Wj=i((t,e)=>e===void 0?t?._$litType$!==void 0:t?._$litType$===e,"e"),qj=i(t=>t?._$litType$?.h!=null,"l"),jj=i(t=>t?._$litDirective$!==void 0,"d"),Uj=i(t=>t?._$litDirective$,"c"),Fy=i(t=>t.strings===void 0,"f"),AM=i(()=>document.createComment(""),"r"),_n=i((t,e,r)=>{let n=t._$AA.parentNode,o=e===void 0?t._$AB:e._$AA;if(r===void 0){let s=n.insertBefore(AM(),o),a=n.insertBefore(AM(),o);r=new Hj(s,a,t,t.options)}else{let s=r._$AB.nextSibling,a=r._$AM,l=a!==t;if(l){let u;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(u=t._$AU)!==a._$AU&&r._$AP(u)}if(s!==o||l){let u=r._$AA;for(;u!==s;){let c=u.nextSibling;n.insertBefore(u,o),u=c}}}return r},"s"),Rr=i((t,e,r=t)=>(t._$AI(e,r),t),"v"),Yj={},Vl=i((t,e=Yj)=>t._$AH=e,"m"),Ly=i(t=>t._$AH,"p"),Gl=i(t=>{t._$AR(),t._$AA.remove()},"M"),Ay=i(t=>{t._$AR()},"h");var Ql=i((t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),Ql(n,e);return!0},"s"),Uh=i(t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},"o"),BM=i(t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),Qj(e)}},"r");function Vj(t){this._$AN!==void 0?(Uh(this),this._$AM=t,BM(this)):this._$AM=t}i(Vj,"h");function Gj(t,e=!1,r=0){let n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(n))for(let s=r;s<n.length;s++)Ql(n[s],!1),Uh(n[s]);else n!=null&&(Ql(n,!1),Uh(n));else Ql(this,t)}i(Gj,"n");var Qj=i(t=>{t.type==dn.CHILD&&(t._$AP??=Gj,t._$AQ??=Vj)},"c"),ir=class extends xr{static{i(this,"f")}constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),BM(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Ql(this,e),Uh(this))}setValue(e){if(Fy(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var By=class extends ir{static{i(this,"ResolveDirective")}promise;hasPromiseSettled=!1;render(e){return this.promise!==e&&(this.promise=e,this.isConnected&&this.handlePromise(e)),Be}handlePromise(e){this.hasPromiseSettled=!1,e.then(r=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)}).catch(r=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)})}disconnected(){this.hasPromiseSettled=!0}reconnected(){this.hasPromiseSettled||this.handlePromise(this.promise)}},$M=nt(By),Jj=i(t=>$M(t()),"resolveExec");var $y=class extends ir{static{i(this,"SubscribeDirective")}observable;sub=null;render(e){return this.observable!==e&&(this.sub?.unsubscribe(),this.observable=e,this.isConnected&&this.subscribe(e)),Be}subscribe(e){this.sub=e.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},Xj=nt($y);var Hy=class extends ir{static{i(this,"SubscribeWithTemplateDirective")}observable;templateFn;sub=null;render(e,r){return(this.observable!==e||this.templateFn!==r)&&(this.sub?.unsubscribe(),this.observable=e,this.templateFn=r,this.isConnected&&this.startSubscription()),Be}startSubscription(){this.sub=this.observable.subscribe(e=>{let r=this.templateFn(e);this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.startSubscription()}},HM=nt(Hy);var zy=i(async(t,e)=>{for await(let r of t)if(await e(r)===!1)return},"t"),So=class{static{i(this,"s")}constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}},To=class{static{i(this,"i")}constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise((e=>this.Z=e))}resume(){this.Z?.(),this.Y=this.Z=void 0}};var zM=i(t=>!Ny(t)&&typeof t.then=="function","n"),WM=1073741823,Yh=class extends ir{static{i(this,"c")}constructor(){super(...arguments),this._$Cwt=WM,this._$Cbt=[],this._$CK=new So(this),this._$CX=new To}render(...e){return e.find((r=>!zM(r)))??Be}update(e,r){let n=this._$Cbt,o=n.length;this._$Cbt=r;let s=this._$CK,a=this._$CX;this.isConnected||this.disconnected();for(let l=0;l<r.length&&!(l>this._$Cwt);l++){let u=r[l];if(!zM(u))return this._$Cwt=l,u;l<o&&u===n[l]||(this._$Cwt=WM,o=0,Promise.resolve(u).then((async c=>{for(;a.get();)await a.get();let f=s.deref();if(f!==void 0){let p=f._$Cbt.indexOf(u);p>-1&&p<f._$Cwt&&(f._$Cwt=p,f.setValue(c))}})))}return Be}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},Wy=nt(Yh);var la=class extends ir{static{i(this,"o")}constructor(){super(...arguments),this._$CK=new So(this),this._$CX=new To}render(e,r){return Be}update(e,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CJ)return Be;this._$CJ=r;let o=0,{_$CK:s,_$CX:a}=this;return zy(r,(async l=>{for(;a.get();)await a.get();let u=s.deref();if(u!==void 0){if(u._$CJ!==r)return!1;n!==void 0&&(l=n(l,o)),u.commitValue(l,o),o++}return!0})),Be}commitValue(e,r){this.setValue(e)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},Zj=nt(la);var qy=nt(class extends la{constructor(t){if(super(t),t.type!==dn.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$Ctt=t,super.update(t,e)}commitValue(t,e){e===0&&Ay(this._$Ctt);let r=_n(this._$Ctt);Rr(r,t)}});var jy=nt(class extends xr{constructor(){super(...arguments),this.key=He}render(t,e){return this.key=t,e}update(t,[e,r]){return e!==this.key&&(Vl(t),this.key=e),r}});var qM=i((t,e,r)=>{let n=new Map;for(let o=e;o<=r;o++)n.set(t[o],o);return n},"u"),Uy=nt(class extends xr{constructor(t){if(super(t),t.type!==dn.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let n;r===void 0?r=e:e!==void 0&&(n=e);let o=[],s=[],a=0;for(let l of t)o[a]=n?n(l,a):a,s[a]=r(l,a),a++;return{values:s,keys:o}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,n]){let o=Ly(t),{values:s,keys:a}=this.dt(e,r,n);if(!Array.isArray(o))return this.ut=a,s;let l=this.ut??=[],u=[],c,f,p=0,h=o.length-1,d=0,m=s.length-1;for(;p<=h&&d<=m;)if(o[p]===null)p++;else if(o[h]===null)h--;else if(l[p]===a[d])u[d]=Rr(o[p],s[d]),p++,d++;else if(l[h]===a[m])u[m]=Rr(o[h],s[m]),h--,m--;else if(l[p]===a[m])u[m]=Rr(o[p],s[m]),_n(t,u[m+1],o[p]),p++,m--;else if(l[h]===a[d])u[d]=Rr(o[h],s[d]),_n(t,o[p],o[h]),h--,d++;else if(c===void 0&&(c=qM(a,d,m),f=qM(l,p,h)),c.has(l[p]))if(c.has(l[h])){let g=f.get(a[d]),x=g!==void 0?o[g]:null;if(x===null){let y=_n(t,o[p]);Rr(y,s[d]),u[d]=y}else u[d]=Rr(x,s[d]),_n(t,o[p],x),o[g]=null;d++}else Gl(o[h]),h--;else Gl(o[p]),p++;for(;d<=m;){let g=_n(t,u[m+1]);Rr(g,s[d]),u[d++]=g}for(;p<=h;){let g=o[p++];g!==null&&Gl(g)}return this.ut=a,Vl(t,u),Be}});var ae=Wh.getSingleton();var kXe=Ee('system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'),U={light:{background:"#ffffff",foreground:"#09090b",muted:"#f4f4f5",mutedForeground:"#71717a",border:"#e4e4e7",input:"#e4e4e7",primary:"#18181b",primaryForeground:"#fafafa",secondary:"#f4f4f5",secondaryForeground:"#18181b",accent:"#f4f4f5",accentForeground:"#18181b",ring:"#a1a1aa"},dark:{background:"#09090b",foreground:"#fafafa",muted:"#27272a",mutedForeground:"#a1a1aa",border:"#27272a",input:"#27272a",primary:"#fafafa",primaryForeground:"#18181b",secondary:"#27272a",secondaryForeground:"#fafafa",accent:"#27272a",accentForeground:"#fafafa",ring:"#52525b"}};var jM={};var Vh=class{static{i(this,"CsWebclient")}constructor(){this.webstore=new Nt.WebStore({dbName:"consentsoftware",storeName:"webclient"})}async isCookieLevelSet(){return!!await this.webstore.get("acceptedCookieLevels")}async setCookieLevels(e){return await this.webstore.set("acceptedCookieLevels",{acceptanceTimestamp:Date.now(),acceptedCookieLevels:e}),!0}async getCookieLevels(){return(await this.webstore.get("acceptedCookieLevels"))?.acceptedCookieLevels}async isCookieLevelStillValid(){return!(!this.isCookieLevelSet||(await this.webstore.get("acceptedCookieLevels")).acceptanceTimestamp<Date.now()-Sr.getMilliSecondsFromUnits({months:3}))}async getAndRunConsentTuples(e){let r=await this.getCookieLevels();if(!r){console.log("You need to set accepted cookielevels first");return}let n=new Mr.TypedRequest("https://connect.api.global/consentsoftware","getDomainSettings"),o=e||window.location.hostname,s=await n.fire({domain:o});for(let a of s.consentTuples)if(a.level==="functional"||r.includes(a.level)){let l=a.script,u=new Function("dataArg","cookieLevelsArg",`return (${l})(dataArg, cookieLevelsArg)`);if(typeof u=="function")await u(a.scriptExecutionDataArg,await this.getCookieLevels());else{let c="got malformed script to execuute";throw console.error(c),new Error(c)}console.log(`Successfully executed ConsentTuple >>${a.name}<< -> ${a.description}`)}}};var UM,Vy,tU;UM=[Pr("consentsoftware-cookieconsent")];var Jl=class extends(tU=_r){static{i(this,"ConsentsoftwareCookieconsent")}static demo=i(()=>Ke`<consentsoftware-cookieconsent></consentsoftware-cookieconsent>`,"demo");csWebclientInstance=new Vh;csWebclientRan=!1;isMobile=!1;static styles=[ae.defaultStyles,ze`
|
|
274
245
|
:host {
|
|
275
246
|
font-size: 14px;
|
|
276
247
|
user-select: none;
|
|
@@ -285,7 +256,7 @@ ${o}
|
|
|
285
256
|
z-index: 1000;
|
|
286
257
|
background: rgba(0, 0, 0, 0);
|
|
287
258
|
backdrop-filter: blur(0px);
|
|
288
|
-
transition:
|
|
259
|
+
transition: background 0.3s ease, backdrop-filter 0.3s ease;
|
|
289
260
|
}
|
|
290
261
|
|
|
291
262
|
.pageOverlay.shake {
|
|
@@ -294,29 +265,53 @@ ${o}
|
|
|
294
265
|
|
|
295
266
|
.modalBox {
|
|
296
267
|
display: block;
|
|
297
|
-
color: ${
|
|
298
|
-
background: ${
|
|
268
|
+
color: ${ae.bdTheme(U.light.foreground,U.dark.foreground)};
|
|
269
|
+
background: ${ae.bdTheme(U.light.background,U.dark.background)};
|
|
299
270
|
box-shadow:
|
|
300
|
-
0 0 0 1px ${
|
|
301
|
-
0 16px 70px ${
|
|
271
|
+
0 0 0 1px ${ae.bdTheme(U.light.border,U.dark.border)},
|
|
272
|
+
0 16px 70px ${ae.bdTheme("rgba(0, 0, 0, 0.15)","rgba(0, 0, 0, 0.35)")};
|
|
302
273
|
position: relative;
|
|
303
274
|
border-radius: 8px;
|
|
304
275
|
max-width: 520px;
|
|
305
276
|
min-width: 320px;
|
|
306
277
|
box-sizing: border-box;
|
|
307
278
|
overflow: hidden;
|
|
308
|
-
will-change: transform;
|
|
309
|
-
transition:
|
|
310
|
-
transform: scale(0.
|
|
279
|
+
will-change: transform, opacity;
|
|
280
|
+
transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
|
|
281
|
+
transform: scale(0.92) translateY(20px);
|
|
311
282
|
opacity: 0;
|
|
312
283
|
}
|
|
313
284
|
|
|
285
|
+
.modalBox.visible {
|
|
286
|
+
transform: scale(1) translateY(0);
|
|
287
|
+
opacity: 1;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.modalBox.hiding {
|
|
291
|
+
transform: scale(0.95) translateY(10px);
|
|
292
|
+
opacity: 0;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* Mobile: slide up from bottom */
|
|
314
296
|
@media (max-width: 560px) {
|
|
297
|
+
.pageOverlay {
|
|
298
|
+
align-items: flex-end;
|
|
299
|
+
}
|
|
300
|
+
|
|
315
301
|
.modalBox {
|
|
316
302
|
max-width: 100%;
|
|
317
303
|
min-width: 100%;
|
|
318
|
-
|
|
319
|
-
|
|
304
|
+
border-radius: 16px 16px 0 0;
|
|
305
|
+
transform: translateY(100%);
|
|
306
|
+
opacity: 1;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.modalBox.visible {
|
|
310
|
+
transform: translateY(0);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.modalBox.hiding {
|
|
314
|
+
transform: translateY(100%);
|
|
320
315
|
}
|
|
321
316
|
}
|
|
322
317
|
|
|
@@ -341,11 +336,11 @@ ${o}
|
|
|
341
336
|
padding: 12px 16px;
|
|
342
337
|
font-size: 0.9em;
|
|
343
338
|
line-height: 1.5;
|
|
344
|
-
color: ${
|
|
339
|
+
color: ${ae.bdTheme(U.light.mutedForeground,U.dark.mutedForeground)};
|
|
345
340
|
}
|
|
346
341
|
|
|
347
342
|
.text-container a {
|
|
348
|
-
color: ${
|
|
343
|
+
color: ${ae.bdTheme(U.light.foreground,U.dark.foreground)};
|
|
349
344
|
text-decoration: underline;
|
|
350
345
|
text-underline-offset: 2px;
|
|
351
346
|
}
|
|
@@ -364,31 +359,36 @@ ${o}
|
|
|
364
359
|
@media (max-width: 560px) {
|
|
365
360
|
.button-container {
|
|
366
361
|
grid-template-columns: 1fr;
|
|
362
|
+
padding-bottom: max(16px, env(safe-area-inset-bottom));
|
|
367
363
|
}
|
|
368
364
|
}
|
|
369
365
|
|
|
370
366
|
.consent-button {
|
|
371
367
|
border-radius: 6px;
|
|
372
|
-
background: ${
|
|
373
|
-
border: 1px solid ${
|
|
368
|
+
background: ${ae.bdTheme(U.light.secondary,U.dark.secondary)};
|
|
369
|
+
border: 1px solid ${ae.bdTheme(U.light.border,U.dark.border)};
|
|
374
370
|
padding: 8px 16px;
|
|
375
371
|
font-size: 0.85em;
|
|
376
372
|
font-weight: 500;
|
|
377
373
|
text-align: center;
|
|
378
374
|
cursor: pointer;
|
|
379
375
|
transition: all 0.15s ease;
|
|
380
|
-
color: ${
|
|
376
|
+
color: ${ae.bdTheme(U.light.secondaryForeground,U.dark.secondaryForeground)};
|
|
381
377
|
}
|
|
382
378
|
|
|
383
379
|
.consent-button:hover {
|
|
384
|
-
background: ${
|
|
385
|
-
border-color: ${
|
|
380
|
+
background: ${ae.bdTheme(U.light.accent,U.dark.accent)};
|
|
381
|
+
border-color: ${ae.bdTheme(U.light.ring,U.dark.ring)};
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.consent-button:active {
|
|
385
|
+
transform: scale(0.98);
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
.consent-button:last-child {
|
|
389
|
-
background: ${
|
|
390
|
-
color: ${
|
|
391
|
-
border-color: ${
|
|
389
|
+
background: ${ae.bdTheme(U.light.primary,U.dark.primary)};
|
|
390
|
+
color: ${ae.bdTheme(U.light.primaryForeground,U.dark.primaryForeground)};
|
|
391
|
+
border-color: ${ae.bdTheme(U.light.primary,U.dark.primary)};
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
.consent-button:last-child:hover {
|
|
@@ -398,21 +398,21 @@ ${o}
|
|
|
398
398
|
.info-container {
|
|
399
399
|
text-align: center;
|
|
400
400
|
padding: 10px 16px;
|
|
401
|
-
background: ${
|
|
402
|
-
border-top: 1px solid ${
|
|
401
|
+
background: ${ae.bdTheme(U.light.muted,U.dark.muted)};
|
|
402
|
+
border-top: 1px solid ${ae.bdTheme(U.light.border,U.dark.border)};
|
|
403
403
|
font-size: 0.75em;
|
|
404
|
-
color: ${
|
|
404
|
+
color: ${ae.bdTheme(U.light.mutedForeground,U.dark.mutedForeground)};
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
.info-container a {
|
|
408
|
-
color: ${
|
|
408
|
+
color: ${ae.bdTheme(U.light.foreground,U.dark.foreground)};
|
|
409
409
|
text-decoration: none;
|
|
410
410
|
}
|
|
411
411
|
|
|
412
412
|
.info-container a:hover {
|
|
413
413
|
text-decoration: underline;
|
|
414
414
|
}
|
|
415
|
-
`];constructor(){super(),this.setAttribute("show","false")}render(){return
|
|
415
|
+
`];constructor(){super(),this.setAttribute("show","false")}render(){return Ke`
|
|
416
416
|
<div class="pageOverlay" @click=${this.pageOverlayClick}>
|
|
417
417
|
<div class="modalBox">
|
|
418
418
|
<div class="content">
|
|
@@ -429,19 +429,19 @@ ${o}
|
|
|
429
429
|
<div class="button-container">
|
|
430
430
|
<div
|
|
431
431
|
class="consent-button"
|
|
432
|
-
@click=${
|
|
432
|
+
@click=${e=>this.handleConsentButtonClick(e,["functional"])}
|
|
433
433
|
>
|
|
434
434
|
Deny
|
|
435
435
|
</div>
|
|
436
436
|
<div
|
|
437
437
|
class="consent-button"
|
|
438
|
-
@click=${
|
|
438
|
+
@click=${e=>this.handleConsentButtonClick(e,["functional","analytics"])}
|
|
439
439
|
>
|
|
440
440
|
Accept selection
|
|
441
441
|
</div>
|
|
442
442
|
<div
|
|
443
443
|
class="consent-button"
|
|
444
|
-
@click=${
|
|
444
|
+
@click=${e=>this.handleConsentButtonClick(e,["functional","analytics","marketing"])}
|
|
445
445
|
>
|
|
446
446
|
Accept all cookies
|
|
447
447
|
</div>
|
|
@@ -453,11 +453,11 @@ ${o}
|
|
|
453
453
|
</div>
|
|
454
454
|
</div>
|
|
455
455
|
</div>
|
|
456
|
-
`}async connectedCallback(){await super.connectedCallback(),await this.csWebclientInstance.getCookieLevels()?this.setAttribute("show","false"):(this.setAttribute("show","true"),
|
|
456
|
+
`}async connectedCallback(){await super.connectedCallback(),this.isMobile=window.matchMedia("(max-width: 560px)").matches,await this.csWebclientInstance.getCookieLevels()?this.setAttribute("show","false"):(this.setAttribute("show","true"),await Vr(50),this.animateIn())}async firstUpdated(){let e=await this.csWebclientInstance.getCookieLevels();!this.csWebclientRan&&e&&(this.csWebclientRan=!0,await this.csWebclientInstance.getAndRunConsentTuples())}animateIn(){let e=this.shadowRoot?.querySelector(".pageOverlay"),r=this.shadowRoot?.querySelector(".modalBox");e&&(e.style.background="rgba(0, 0, 0, 0.5)",e.style.backdropFilter="blur(4px)"),r&&(r.classList.remove("hiding"),r.classList.add("visible"))}async animateOut(){let e=this.shadowRoot?.querySelector(".pageOverlay"),r=this.shadowRoot?.querySelector(".modalBox");e&&(e.style.background="rgba(0, 0, 0, 0)",e.style.backdropFilter="blur(0px)"),r&&(r.classList.remove("visible"),r.classList.add("hiding")),await Vr(350)}async handleConsentButtonClick(e,r){console.log(`Set level to ${r}`),await this.animateOut(),await this.csWebclientInstance.setCookieLevels(r),this.setAttribute("show","false"),this.csWebclientRan||(this.csWebclientRan=!0,await this.csWebclientInstance.getAndRunConsentTuples())}async pageOverlayClick(e){if(e.target===e.currentTarget){let r=this.shadowRoot?.querySelector(".modalBox");r&&(r.classList.add("shake"),await Vr(300),r.classList.remove("shake"))}}};Vy=$r(tU),Jl=Bt(Vy,0,"ConsentsoftwareCookieconsent",UM,Jl),ft(Vy,1,Jl);var YM,Gy,rU;YM=[Pr("consentsoftware-header")];var Xl=class extends(rU=_r){static{i(this,"ConsentsoftwareHeader")}static demo=i(()=>Ke`<consentsoftware-header></consentsoftware-header>`,"demo");static styles=[ae.defaultStyles,ze`
|
|
457
457
|
:host {
|
|
458
458
|
display: block;
|
|
459
459
|
padding: 14px 16px;
|
|
460
|
-
border-bottom: 1px solid ${
|
|
460
|
+
border-bottom: 1px solid ${ae.bdTheme(U.light.border,U.dark.border)};
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
.heading {
|
|
@@ -466,7 +466,7 @@ ${o}
|
|
|
466
466
|
gap: 8px;
|
|
467
467
|
font-size: 0.95em;
|
|
468
468
|
font-weight: 600;
|
|
469
|
-
color: ${
|
|
469
|
+
color: ${ae.bdTheme(U.light.foreground,U.dark.foreground)};
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
.icon {
|
|
@@ -474,7 +474,7 @@ ${o}
|
|
|
474
474
|
height: 18px;
|
|
475
475
|
opacity: 0.7;
|
|
476
476
|
}
|
|
477
|
-
`];render(){return
|
|
477
|
+
`];render(){return Ke`
|
|
478
478
|
<div class="heading">
|
|
479
479
|
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
480
480
|
<circle cx="12" cy="12" r="10"/>
|
|
@@ -483,7 +483,7 @@ ${o}
|
|
|
483
483
|
</svg>
|
|
484
484
|
Cookie Preferences
|
|
485
485
|
</div>
|
|
486
|
-
`}};
|
|
486
|
+
`}};Gy=$r(rU),Xl=Bt(Gy,0,"ConsentsoftwareHeader",YM,Xl),ft(Gy,1,Xl);var GM,QM,JM,XM,Rn,Qy,Jy;XM=[Pr("consentsoftware-mainselection")];var mn=class mn extends(JM=_r,QM=[lr({type:Boolean})],GM=[lr({type:Boolean})],JM){constructor(){super(...arguments);Co(this,Qy,ft(Rn,8,this,!1)),ft(Rn,11,this);Co(this,Jy,ft(Rn,12,this,!1)),ft(Rn,15,this)}render(){return Ke`
|
|
487
487
|
<div class="maincontainer">
|
|
488
488
|
<div class="itemBox">
|
|
489
489
|
<consentsoftware-toggle required>Required</consentsoftware-toggle>
|
|
@@ -498,7 +498,7 @@ ${o}
|
|
|
498
498
|
<consentsoftware-toggle>Marketing</consentsoftware-toggle>
|
|
499
499
|
</div>
|
|
500
500
|
</div>
|
|
501
|
-
`}async getResults(){}};
|
|
501
|
+
`}async getResults(){}};Rn=$r(JM),Qy=new WeakMap,Jy=new WeakMap,Bt(Rn,4,"required",QM,mn,Qy),Bt(Rn,4,"selected",GM,mn,Jy),mn=Bt(Rn,0,"ConsentsoftwareMainSelection",XM,mn),i(mn,"ConsentsoftwareMainSelection"),$t(mn,"demo",i(()=>Ke`<consentsoftware-mainselection></consentsoftware-mainselection>`,"demo")),$t(mn,"styles",[ae.defaultStyles,ze`
|
|
502
502
|
:host {
|
|
503
503
|
display: block;
|
|
504
504
|
position: relative;
|
|
@@ -520,7 +520,7 @@ ${o}
|
|
|
520
520
|
.itemBox {
|
|
521
521
|
padding: 12px 8px;
|
|
522
522
|
text-align: center;
|
|
523
|
-
border-right: 1px solid ${
|
|
523
|
+
border-right: 1px solid ${ae.bdTheme(U.light.border,U.dark.border)};
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
.itemBox:last-child {
|
|
@@ -531,18 +531,18 @@ ${o}
|
|
|
531
531
|
.itemBox {
|
|
532
532
|
padding: 10px 8px;
|
|
533
533
|
border-right: none;
|
|
534
|
-
border-bottom: 1px solid ${
|
|
534
|
+
border-bottom: 1px solid ${ae.bdTheme(U.light.border,U.dark.border)};
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
.itemBox:nth-child(odd) {
|
|
538
|
-
border-right: 1px solid ${
|
|
538
|
+
border-right: 1px solid ${ae.bdTheme(U.light.border,U.dark.border)};
|
|
539
539
|
}
|
|
540
540
|
|
|
541
541
|
.itemBox:nth-last-child(-n+2) {
|
|
542
542
|
border-bottom: none;
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
|
-
`]),
|
|
545
|
+
`]),ft(Rn,1,mn);var VM=mn;var KM,eO,tO,rO,Nn,Xy,Zy;rO=[Pr("consentsoftware-toggle")];var Fn=class Fn extends(tO=_r,eO=[lr({type:Boolean})],KM=[lr({type:Boolean,reflect:!0})],tO){constructor(){super(...arguments);Co(this,Xy,ft(Nn,8,this,!1)),ft(Nn,11,this);Co(this,Zy,ft(Nn,12,this,!1)),ft(Nn,15,this);$t(this,"currentX",0);$t(this,"isDragging",!1);$t(this,"hasDragged",!1);$t(this,"startX",0);$t(this,"trackWidth",36);$t(this,"trackHeight",20);$t(this,"knobSize",14);$t(this,"padding",2);$t(this,"maxTravel",16)}render(){return Ke`
|
|
546
546
|
<div class="label">${this.getText()}</div>
|
|
547
547
|
<!-- A user can click anywhere in this toggle area. -->
|
|
548
548
|
<div class="toggle" @click=${this.handleClick}>
|
|
@@ -560,7 +560,7 @@ ${o}
|
|
|
560
560
|
</div>
|
|
561
561
|
</div>
|
|
562
562
|
</div>
|
|
563
|
-
`}async firstUpdated(r){await super.firstUpdated(r),this.required?(this.selected=!0,this.currentX=this.maxTravel,this.requestUpdate()):(this.currentX=this.selected?this.maxTravel:0,this.requestUpdate())}async handleClick(r){if(this.isDragging||this.hasDragged){r.stopPropagation(),r.preventDefault();return}if(this.required){this.currentX=this.maxTravel,this.requestUpdate(),await new Promise(n=>setTimeout(n,10)),this.currentX=this.maxTravel-3,this.requestUpdate(),await
|
|
563
|
+
`}async firstUpdated(r){await super.firstUpdated(r),this.required?(this.selected=!0,this.currentX=this.maxTravel,this.requestUpdate()):(this.currentX=this.selected?this.maxTravel:0,this.requestUpdate())}async handleClick(r){if(this.isDragging||this.hasDragged){r.stopPropagation(),r.preventDefault();return}if(this.required){this.currentX=this.maxTravel,this.requestUpdate(),await new Promise(n=>setTimeout(n,10)),this.currentX=this.maxTravel-3,this.requestUpdate(),await Vr(150),this.currentX=this.maxTravel,this.requestUpdate();return}r.stopPropagation(),r.preventDefault(),this.selected=!this.selected,this.currentX=this.selected?this.maxTravel:0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("toggle",{detail:{selected:this.selected}})),Vr(0).then(()=>{this.hasDragged=!1})}onPointerDown(r){this.required||(this.isDragging=!0,this.startX=r.clientX-this.currentX,r.target.setPointerCapture(r.pointerId))}onPointerMove(r){if(!this.isDragging)return;let n=r.clientX-this.startX;this.hasDragged=!0,r.currentTarget.classList.add("dragging"),this.currentX=Math.max(0,Math.min(n,this.maxTravel)),this.requestUpdate()}onPointerUp(r){if(!this.isDragging||(r.target.releasePointerCapture(r.pointerId),this.isDragging=!1,!this.hasDragged))return;r.currentTarget.classList.remove("dragging");let o=this.maxTravel/2;this.selected=this.currentX>o,this.currentX=this.selected?this.maxTravel:0,this.requestUpdate(),this.dispatchEvent(new CustomEvent("toggle",{detail:{selected:this.selected}})),Vr(0).then(()=>{this.hasDragged=!1})}updated(r){r.has("selected")&&!this.isDragging&&!this.hasDragged&&!this.required&&(this.currentX=this.selected?this.maxTravel:0,this.requestUpdate()),super.updated(r)}getText(){return this.textContent}};Nn=$r(tO),Xy=new WeakMap,Zy=new WeakMap,Bt(Nn,4,"required",eO,Fn,Xy),Bt(Nn,4,"selected",KM,Fn,Zy),Fn=Bt(Nn,0,"ConsentsoftwareToggle",rO,Fn),i(Fn,"ConsentsoftwareToggle"),$t(Fn,"styles",[ae.defaultStyles,ze`
|
|
564
564
|
:host {
|
|
565
565
|
display: block;
|
|
566
566
|
position: relative;
|
|
@@ -570,7 +570,7 @@ ${o}
|
|
|
570
570
|
margin-bottom: 8px;
|
|
571
571
|
font-size: 0.8em;
|
|
572
572
|
font-weight: 500;
|
|
573
|
-
color: ${
|
|
573
|
+
color: ${ae.bdTheme(U.light.mutedForeground,U.dark.mutedForeground)};
|
|
574
574
|
}
|
|
575
575
|
|
|
576
576
|
.toggle {
|
|
@@ -583,20 +583,20 @@ ${o}
|
|
|
583
583
|
height: 20px;
|
|
584
584
|
width: 36px;
|
|
585
585
|
border-radius: 10px;
|
|
586
|
-
background: ${
|
|
587
|
-
border: 1px solid ${
|
|
586
|
+
background: ${ae.bdTheme(U.light.input,U.dark.input)};
|
|
587
|
+
border: 1px solid ${ae.bdTheme(U.light.border,U.dark.border)};
|
|
588
588
|
overflow: hidden;
|
|
589
589
|
transition: all 0.15s ease;
|
|
590
590
|
cursor: pointer;
|
|
591
591
|
}
|
|
592
592
|
|
|
593
593
|
.toggleKnobArea:hover {
|
|
594
|
-
border-color: ${
|
|
594
|
+
border-color: ${ae.bdTheme(U.light.ring,U.dark.ring)};
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
:host([selected]) .toggleKnobArea {
|
|
598
|
-
background: ${
|
|
599
|
-
border-color: ${
|
|
598
|
+
background: ${ae.bdTheme(U.light.primary,U.dark.primary)};
|
|
599
|
+
border-color: ${ae.bdTheme(U.light.primary,U.dark.primary)};
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
.toggleKnobMover {
|
|
@@ -611,7 +611,7 @@ ${o}
|
|
|
611
611
|
width: 14px;
|
|
612
612
|
height: 14px;
|
|
613
613
|
border-radius: 7px;
|
|
614
|
-
background: ${
|
|
614
|
+
background: ${ae.bdTheme(U.light.mutedForeground,U.dark.mutedForeground)};
|
|
615
615
|
transition: left 0.15s ease, background 0.15s ease;
|
|
616
616
|
touch-action: none;
|
|
617
617
|
}
|
|
@@ -621,7 +621,7 @@ ${o}
|
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
:host([selected]) .toggleKnobInner {
|
|
624
|
-
background: ${
|
|
624
|
+
background: ${ae.bdTheme(U.light.primaryForeground,U.dark.primaryForeground)};
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
:host([required]) .toggleKnobArea {
|
|
@@ -629,18 +629,18 @@ ${o}
|
|
|
629
629
|
}
|
|
630
630
|
|
|
631
631
|
:host([required][selected]) .toggleKnobArea {
|
|
632
|
-
background: ${
|
|
633
|
-
border-color: ${
|
|
632
|
+
background: ${ae.bdTheme(U.light.ring,U.dark.ring)};
|
|
633
|
+
border-color: ${ae.bdTheme(U.light.ring,U.dark.ring)};
|
|
634
634
|
}
|
|
635
635
|
|
|
636
636
|
:host([required][selected]) .toggleKnobInner {
|
|
637
|
-
background: ${
|
|
637
|
+
background: ${ae.bdTheme(U.light.muted,U.dark.muted)};
|
|
638
638
|
}
|
|
639
|
-
`]),
|
|
639
|
+
`]),ft(Nn,1,Fn);var ZM=Fn;var nO,Ky,nU;nO=[Pr("consentsoftware-tabs")];var Zl=class extends(nU=_r){static{i(this,"ConsentsoftwareTabs")}static demo=i(()=>Ke`<consentsoftware-tabs></consentsoftware-tabs>`,"demo");static styles=[ae.defaultStyles,ze`
|
|
640
640
|
:host {
|
|
641
641
|
display: block;
|
|
642
642
|
position: relative;
|
|
643
|
-
background: ${
|
|
643
|
+
background: ${ae.bdTheme(U.light.muted,U.dark.muted)};
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
.tabs {
|
|
@@ -653,13 +653,13 @@ ${o}
|
|
|
653
653
|
padding: 8px 0;
|
|
654
654
|
font-size: 0.8em;
|
|
655
655
|
font-weight: 500;
|
|
656
|
-
color: ${
|
|
656
|
+
color: ${ae.bdTheme(U.light.mutedForeground,U.dark.mutedForeground)};
|
|
657
657
|
cursor: pointer;
|
|
658
658
|
transition: color 0.15s ease;
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
.tabs .tab:hover {
|
|
662
|
-
color: ${
|
|
662
|
+
color: ${ae.bdTheme(U.light.foreground,U.dark.foreground)};
|
|
663
663
|
}
|
|
664
664
|
|
|
665
665
|
@media (max-width: 560px) {
|
|
@@ -675,39 +675,20 @@ ${o}
|
|
|
675
675
|
height: 2px;
|
|
676
676
|
left: 0;
|
|
677
677
|
bottom: 0;
|
|
678
|
-
background: ${
|
|
678
|
+
background: ${ae.bdTheme(U.light.foreground,U.dark.foreground)};
|
|
679
679
|
transition: all 0.2s ease-out;
|
|
680
680
|
border-radius: 1px;
|
|
681
681
|
}
|
|
682
|
-
`];render(){return
|
|
682
|
+
`];render(){return Ke`
|
|
683
683
|
<div class="tabs">
|
|
684
684
|
<div class="tab" @click=${this.handleClick}>Consent</div>
|
|
685
685
|
<div class="tab" @click=${this.handleClick}>Details</div>
|
|
686
686
|
<div class="tab" @click=${this.handleClick}>Cookie Policy</div>
|
|
687
687
|
</div>
|
|
688
688
|
<div class="selector"></div>
|
|
689
|
-
`}async handleClick(
|
|
689
|
+
`}async handleClick(e){let n=e.target.closest(".tab");if(n){let o=this.shadowRoot?.querySelector(".selector");o&&(o.style.left=`${n.offsetLeft}px`,o.style.width=`${n.offsetWidth}px`)}}};Ky=$r(nU),Zl=Bt(Ky,0,"ConsentsoftwareTabs",nO,Zl),ft(Ky,1,Zl);export{Jl as ConsentsoftwareCookieconsent,Xl as ConsentsoftwareHeader,VM as ConsentsoftwareMainSelection,Zl as ConsentsoftwareTabs,ZM as ConsentsoftwareToggle};
|
|
690
690
|
/*! Bundled license information:
|
|
691
691
|
|
|
692
|
-
punycode/punycode.js:
|
|
693
|
-
(*! https://mths.be/punycode v1.4.1 by @mathias *)
|
|
694
|
-
|
|
695
|
-
is-number/index.js:
|
|
696
|
-
(*!
|
|
697
|
-
* is-number <https://github.com/jonschlinkert/is-number>
|
|
698
|
-
*
|
|
699
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
700
|
-
* Released under the MIT License.
|
|
701
|
-
*)
|
|
702
|
-
|
|
703
|
-
randomatic/index.js:
|
|
704
|
-
(*!
|
|
705
|
-
* randomatic <https://github.com/jonschlinkert/randomatic>
|
|
706
|
-
*
|
|
707
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
708
|
-
* Released under the MIT License.
|
|
709
|
-
*)
|
|
710
|
-
|
|
711
692
|
sweet-scroll/sweet-scroll.js:
|
|
712
693
|
(*! @preserve sweet-scroll v4.0.0 - tsuyoshiwada | MIT License *)
|
|
713
694
|
(*! *****************************************************************************
|
|
@@ -750,6 +731,7 @@ lit-html/async-directive.js:
|
|
|
750
731
|
lit-html/directives/until.js:
|
|
751
732
|
lit-html/directives/async-replace.js:
|
|
752
733
|
lit-html/directives/async-append.js:
|
|
734
|
+
lit-html/directives/repeat.js:
|
|
753
735
|
(**
|
|
754
736
|
* @license
|
|
755
737
|
* Copyright 2017 Google LLC
|
|
@@ -773,6 +755,7 @@ lit-html/directive-helpers.js:
|
|
|
773
755
|
|
|
774
756
|
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
775
757
|
lit-html/directives/private-async-helpers.js:
|
|
758
|
+
lit-html/directives/keyed.js:
|
|
776
759
|
(**
|
|
777
760
|
* @license
|
|
778
761
|
* Copyright 2021 Google LLC
|