@design.estate/dees-document 1.6.8 → 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.
Files changed (97) hide show
  1. package/dist_bundle/bundle.js +636 -590
  2. package/dist_bundle/bundle.js.map +4 -4
  3. package/dist_ts/00_commitinfo_data.js +1 -1
  4. package/dist_ts/classes.pdfservice.d.ts +3 -3
  5. package/dist_ts/classes.pdfservice.js +6 -3
  6. package/dist_ts/helpers.d.ts +1 -1
  7. package/dist_ts/helpers.js +2 -2
  8. package/dist_ts/paths.js +4 -2
  9. package/dist_ts/plugins.d.ts +2 -0
  10. package/dist_ts/plugins.js +3 -1
  11. package/dist_ts_shared/demoletter.d.ts +3 -3
  12. package/dist_ts_shared/demoletter.js +223 -192
  13. package/dist_ts_shared/index.d.ts +6 -7
  14. package/dist_ts_shared/index.js +10 -8
  15. package/dist_ts_shared/interfaces/document.d.ts +15 -2
  16. package/dist_ts_shared/interfaces/document.js +1 -1
  17. package/dist_ts_shared/translation.d.ts +79 -28
  18. package/dist_ts_shared/translation.js +121 -107
  19. package/dist_ts_web/00_commitinfo_data.js +2 -2
  20. package/dist_ts_web/elements/contentinvoice.js +54 -26
  21. package/dist_ts_web/elements/document.js +8 -18
  22. package/dist_ts_web/elements/letterheader.js +5 -12
  23. package/dist_ts_web/elements/page.js +10 -22
  24. package/dist_ts_web/elements/pagecontainer.js +4 -10
  25. package/dist_ts_web/elements/pagecontent.js +5 -12
  26. package/dist_ts_web/elements/pagefooter.js +6 -14
  27. package/dist_ts_web/elements/pageheader.js +6 -14
  28. package/dist_ts_web/elements/viewer.js +3 -8
  29. package/dist_ts_web/ts_shared/translation.d.ts +82 -0
  30. package/dist_ts_web/ts_shared/translation.js +134 -0
  31. package/dist_ts_web/ts_web/00_commitinfo_data.d.ts +8 -0
  32. package/dist_ts_web/ts_web/00_commitinfo_data.js +9 -0
  33. package/dist_ts_web/ts_web/elements/contentinvoice.d.ts +41 -0
  34. package/dist_ts_web/ts_web/elements/contentinvoice.js +466 -0
  35. package/dist_ts_web/ts_web/elements/document.d.ts +27 -0
  36. package/dist_ts_web/ts_web/elements/document.demo.d.ts +1 -0
  37. package/dist_ts_web/ts_web/elements/document.demo.js +9 -0
  38. package/dist_ts_web/ts_web/elements/document.js +306 -0
  39. package/dist_ts_web/ts_web/elements/index.d.ts +10 -0
  40. package/dist_ts_web/ts_web/elements/index.js +11 -0
  41. package/dist_ts_web/ts_web/elements/letterheader.d.ts +18 -0
  42. package/dist_ts_web/ts_web/elements/letterheader.js +224 -0
  43. package/dist_ts_web/ts_web/elements/page.d.ts +25 -0
  44. package/dist_ts_web/ts_web/elements/page.js +335 -0
  45. package/dist_ts_web/ts_web/elements/pagecontainer.d.ts +14 -0
  46. package/dist_ts_web/ts_web/elements/pagecontainer.js +114 -0
  47. package/dist_ts_web/ts_web/elements/pagecontent.d.ts +19 -0
  48. package/dist_ts_web/ts_web/elements/pagecontent.js +177 -0
  49. package/dist_ts_web/ts_web/elements/pagefooter.d.ts +17 -0
  50. package/dist_ts_web/ts_web/elements/pagefooter.js +234 -0
  51. package/dist_ts_web/ts_web/elements/pageheader.d.ts +17 -0
  52. package/dist_ts_web/ts_web/elements/pageheader.js +165 -0
  53. package/dist_ts_web/ts_web/elements/paymentcode.d.ts +19 -0
  54. package/dist_ts_web/ts_web/elements/paymentcode.js +162 -0
  55. package/dist_ts_web/ts_web/elements/viewer.d.ts +15 -0
  56. package/dist_ts_web/ts_web/elements/viewer.demo.d.ts +1 -0
  57. package/dist_ts_web/ts_web/elements/viewer.demo.js +9 -0
  58. package/dist_ts_web/ts_web/elements/viewer.js +150 -0
  59. package/dist_ts_web/ts_web/index.d.ts +1 -0
  60. package/dist_ts_web/ts_web/index.js +2 -0
  61. package/dist_ts_web/ts_web/pages/index.d.ts +2 -0
  62. package/dist_ts_web/ts_web/pages/index.js +3 -0
  63. package/dist_ts_web/ts_web/pages/page1.d.ts +1 -0
  64. package/dist_ts_web/ts_web/pages/page1.js +21 -0
  65. package/dist_ts_web/ts_web/pages/page2.d.ts +1 -0
  66. package/dist_ts_web/ts_web/pages/page2.js +18 -0
  67. package/dist_ts_web/ts_web/plugins.d.ts +9 -0
  68. package/dist_ts_web/ts_web/plugins.js +14 -0
  69. package/dist_ts_web/ts_web/style.d.ts +1 -0
  70. package/dist_ts_web/ts_web/style.js +38 -0
  71. package/dist_watch/bundle.js +20439 -12738
  72. package/dist_watch/bundle.js.map +4 -4
  73. package/license +2 -2
  74. package/package.json +21 -19
  75. package/readme.hints.md +40 -1
  76. package/readme.md +202 -125
  77. package/ts/00_commitinfo_data.ts +1 -1
  78. package/ts/classes.pdfservice.ts +15 -7
  79. package/ts/helpers.ts +1 -1
  80. package/ts/paths.ts +3 -1
  81. package/ts/plugins.ts +3 -0
  82. package/ts_web/00_commitinfo_data.ts +1 -1
  83. package/ts_web/elements/contentinvoice.ts +290 -203
  84. package/ts_web/elements/document.demo.ts +7 -4
  85. package/ts_web/elements/document.ts +68 -82
  86. package/ts_web/elements/index.ts +10 -9
  87. package/ts_web/elements/letterheader.ts +106 -39
  88. package/ts_web/elements/page.ts +106 -48
  89. package/ts_web/elements/pagecontainer.ts +14 -13
  90. package/ts_web/elements/pagecontent.ts +34 -53
  91. package/ts_web/elements/pagefooter.ts +125 -45
  92. package/ts_web/elements/pageheader.ts +22 -16
  93. package/ts_web/elements/paymentcode.ts +95 -0
  94. package/ts_web/elements/viewer.demo.ts +7 -4
  95. package/ts_web/elements/viewer.ts +26 -12
  96. package/ts_web/pages/page1.ts +10 -6
  97. package/ts_web/style.ts +34 -3
@@ -1,103 +1,102 @@
1
- var rT=Object.create;var ca=Object.defineProperty;var zd=Object.getOwnPropertyDescriptor;var nT=Object.getOwnPropertyNames;var iT=Object.getPrototypeOf,oT=Object.prototype.hasOwnProperty;var fa=(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 N=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ae=(e,t)=>{for(var r in t)ca(e,r,{get:t[r],enumerable:!0})},sT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of nT(t))!oT.call(e,i)&&i!==r&&ca(e,i,{get:()=>t[i],enumerable:!(n=zd(t,i))||n.enumerable});return e};var Ue=(e,t,r)=>(r=e!=null?rT(iT(e)):{},sT(t||!e||!e.__esModule?ca(r,"default",{value:e,enumerable:!0}):r,e));var X=(e,t,r,n)=>{for(var i=n>1?void 0:n?zd(t,r):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(n?s(t,r,i):s(i))||i);return n&&i&&ca(t,r,i),i};var Aa=N(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.uni=void 0;var xT=(e="uni")=>`${e}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)})}`;ka.uni=xT});var jg=N((Gc,Jc)=>{(function(e,t){typeof Gc=="object"&&typeof Jc<"u"?Jc.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Gc,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",o="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+)?$/,x=/\[([^\]]+)]|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,v={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(B){var _=["th","st","nd","rd"],I=B%100;return"["+B+(_[(I-20)%10]||_[I]||_[0])+"]"}},w=function(B,_,I){var D=String(B);return!D||D.length>=_?B:""+Array(_+1-D.length).join(I)+B},E={s:w,z:function(B){var _=-B.utcOffset(),I=Math.abs(_),D=Math.floor(I/60),F=I%60;return(_<=0?"+":"-")+w(D,2,"0")+":"+w(F,2,"0")},m:function B(_,I){if(_.date()<I.date())return-B(I,_);var D=12*(I.year()-_.year())+(I.month()-_.month()),F=_.clone().add(D,u),W=I-F<0,M=_.clone().add(D+(W?-1:1),u);return+(-(D+(I-F)/(W?F-M:M-F))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:u,y:f,w:l,d:a,D:p,h:s,m:o,s:i,ms:n,Q:c}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},b="en",z={};z[b]=v;var q="$isDayjsObject",A=function(B){return B instanceof C||!(!B||!B[q])},R=function B(_,I,D){var F;if(!_)return b;if(typeof _=="string"){var W=_.toLowerCase();z[W]&&(F=W),I&&(z[W]=I,F=W);var M=_.split("-");if(!F&&M.length>1)return B(M[0])}else{var U=_.name;z[U]=_,F=U}return!D&&F&&(b=F),F||!D&&b},V=function(B,_){if(A(B))return B.clone();var I=typeof _=="object"?_:{};return I.date=B,I.args=arguments,new C(I)},$=E;$.l=R,$.i=A,$.w=function(B,_){return V(B,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var C=function(){function B(I){this.$L=R(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[q]=!0}var _=B.prototype;return _.parse=function(I){this.$d=function(D){var F=D.date,W=D.utc;if(F===null)return new Date(NaN);if($.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var M=F.match(m);if(M){var U=M[2]-1||0,d=(M[7]||"0").substring(0,3);return W?new Date(Date.UTC(M[1],U,M[3]||1,M[4]||0,M[5]||0,M[6]||0,d)):new Date(M[1],U,M[3]||1,M[4]||0,M[5]||0,M[6]||0,d)}}return new Date(F)}(I),this.init()},_.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},_.$utils=function(){return $},_.isValid=function(){return this.$d.toString()!==h},_.isSame=function(I,D){var F=V(I);return this.startOf(D)<=F&&F<=this.endOf(D)},_.isAfter=function(I,D){return V(I)<this.startOf(D)},_.isBefore=function(I,D){return this.endOf(D)<V(I)},_.$g=function(I,D,F){return $.u(I)?this[D]:this.set(F,I)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(I,D){var F=this,W=!!$.u(D)||D,M=$.p(I),U=function(k,g){var S=$.w(F.$u?Date.UTC(F.$y,g,k):new Date(F.$y,g,k),F);return W?S:S.endOf(a)},d=function(k,g){return $.w(F.toDate()[k].apply(F.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(g)),F)},G=this.$W,K=this.$M,y=this.$D,se="set"+(this.$u?"UTC":"");switch(M){case f:return W?U(1,0):U(31,11);case u:return W?U(1,K):U(0,K+1);case l:var de=this.$locale().weekStart||0,Ie=(G<de?G+7:G)-de;return U(W?y-Ie:y+(6-Ie),K);case a:case p:return d(se+"Hours",0);case s:return d(se+"Minutes",1);case o:return d(se+"Seconds",2);case i:return d(se+"Milliseconds",3);default:return this.clone()}},_.endOf=function(I){return this.startOf(I,!1)},_.$set=function(I,D){var F,W=$.p(I),M="set"+(this.$u?"UTC":""),U=(F={},F[a]=M+"Date",F[p]=M+"Date",F[u]=M+"Month",F[f]=M+"FullYear",F[s]=M+"Hours",F[o]=M+"Minutes",F[i]=M+"Seconds",F[n]=M+"Milliseconds",F)[W],d=W===a?this.$D+(D-this.$W):D;if(W===u||W===f){var G=this.clone().set(p,1);G.$d[U](d),G.init(),this.$d=G.set(p,Math.min(this.$D,G.daysInMonth())).$d}else U&&this.$d[U](d);return this.init(),this},_.set=function(I,D){return this.clone().$set(I,D)},_.get=function(I){return this[$.p(I)]()},_.add=function(I,D){var F,W=this;I=Number(I);var M=$.p(D),U=function(K){var y=V(W);return $.w(y.date(y.date()+Math.round(K*I)),W)};if(M===u)return this.set(u,this.$M+I);if(M===f)return this.set(f,this.$y+I);if(M===a)return U(1);if(M===l)return U(7);var d=(F={},F[o]=t,F[s]=r,F[i]=e,F)[M]||1,G=this.$d.getTime()+I*d;return $.w(G,this)},_.subtract=function(I,D){return this.add(-1*I,D)},_.format=function(I){var D=this,F=this.$locale();if(!this.isValid())return F.invalidDate||h;var W=I||"YYYY-MM-DDTHH:mm:ssZ",M=$.z(this),U=this.$H,d=this.$m,G=this.$M,K=F.weekdays,y=F.months,se=F.meridiem,de=function(g,S,T,O){return g&&(g[S]||g(D,W))||T[S].slice(0,O)},Ie=function(g){return $.s(U%12||12,g,"0")},k=se||function(g,S,T){var O=g<12?"AM":"PM";return T?O.toLowerCase():O};return W.replace(x,function(g,S){return S||function(T){switch(T){case"YY":return String(D.$y).slice(-2);case"YYYY":return $.s(D.$y,4,"0");case"M":return G+1;case"MM":return $.s(G+1,2,"0");case"MMM":return de(F.monthsShort,G,y,3);case"MMMM":return de(y,G);case"D":return D.$D;case"DD":return $.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return de(F.weekdaysMin,D.$W,K,2);case"ddd":return de(F.weekdaysShort,D.$W,K,3);case"dddd":return K[D.$W];case"H":return String(U);case"HH":return $.s(U,2,"0");case"h":return Ie(1);case"hh":return Ie(2);case"a":return k(U,d,!0);case"A":return k(U,d,!1);case"m":return String(d);case"mm":return $.s(d,2,"0");case"s":return String(D.$s);case"ss":return $.s(D.$s,2,"0");case"SSS":return $.s(D.$ms,3,"0");case"Z":return M}return null}(g)||M.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(I,D,F){var W,M=this,U=$.p(D),d=V(I),G=(d.utcOffset()-this.utcOffset())*t,K=this-d,y=function(){return $.m(M,d)};switch(U){case f:W=y()/12;break;case u:W=y();break;case c:W=y()/3;break;case l:W=(K-G)/6048e5;break;case a:W=(K-G)/864e5;break;case s:W=K/r;break;case o:W=K/t;break;case i:W=K/e;break;default:W=K}return F?W:$.a(W)},_.daysInMonth=function(){return this.endOf(u).$D},_.$locale=function(){return z[this.$L]},_.locale=function(I,D){if(!I)return this.$L;var F=this.clone(),W=R(I,D,!0);return W&&(F.$L=W),F},_.clone=function(){return $.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},B}(),pe=C.prototype;return V.prototype=pe,[["$ms",n],["$s",i],["$m",o],["$H",s],["$W",a],["$M",u],["$y",f],["$D",p]].forEach(function(B){pe[B[1]]=function(_){return this.$g(_,B[0],B[1])}}),V.extend=function(B,_){return B.$i||(B(_,C,V),B.$i=!0),V},V.locale=R,V.isDayjs=A,V.unix=function(B){return V(1e3*B)},V.en=z[b],V.Ls=z,V.p={},V})});var zg=N((Qc,Zc)=>{(function(e,t){typeof Qc=="object"&&typeof Zc<"u"?Zc.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(Qc,function(){"use strict";return function(e,t,r){t.prototype.isToday=function(){var n="YYYY-MM-DD",i=r();return this.format(n)===i.format(n)}}})});var Vg=N((d5,Hg)=>{"use strict";Hg.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 Yg=N((g5,Wg)=>{"use strict";Wg.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var Xg=N((y5,Zg)=>{"use strict";var Gg=Symbol(),Jg=Symbol(),Br=Symbol(),Qg=Symbol(),Ut=class{constructor(t,r,n,i){this[Gg]=t,this[Jg]=r,this[Br]=n,this[Qg]=i}next(){let t=this[Gg],r=this[Qg],n=this[Jg];if(!this[Br])return{done:!0,value:n};let i=this[Br];return r===1?this[Br]=t._node(i).previousSibling:r===2?this[Br]=t._node(i).nextSibling:r===3?this[Br]=t._node(i).parent:r===4?this[Br]=t.preceding(i,{root:n}):this[Br]=t.following(i,{root:n}),{done:!1,value:i}}};Object.defineProperty(Ut.prototype,Symbol.iterator,{value:function(){return this},writable:!1});Ut.PREV=1;Ut.NEXT=2;Ut.PARENT=3;Ut.PRECEDING=4;Ut.FOLLOWING=5;Object.freeze(Ut);Object.freeze(Ut.prototype);Zg.exports=Ut});var lf=N((x5,Kg)=>{"use strict";var cE=Vg(),$r=Yg(),Tt=Xg();function af(){return!0}function Si(e,t){return e[e.length-1-t]}var Za=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 cE)}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 i=this._node(t).previousSibling;return i?this.lastInclusiveDescendant(i):this._node(t).parent}following(t,r){let n=r&&r.root,o=!(r&&r.skipChildren)&&this._node(t).firstChild;if(o)return o;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||[],i=r&&r.filter||af,o=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),i.call(o,a)&&n.push(a),a=u.nextSibling,++l}return n}ancestorsToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||af,o=r&&r.thisArg||void 0,s=t;for(;s;)i.call(o,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(t,r){let n=r&&r.array||[],i=r&&r.filter||af,o=r&&r.thisArg||void 0,s=t;for(;s;)i.call(o,s)&&n.push(s),s=this.following(s,{root:t});return n}childrenIterator(t,r){let n=r&&r.reverse,i=this._node(t);return new Tt(this,t,n?i.lastChild:i.firstChild,n?Tt.PREV:Tt.NEXT)}previousSiblingsIterator(t){return new Tt(this,t,this._node(t).previousSibling,Tt.PREV)}nextSiblingsIterator(t){return new Tt(this,t,this._node(t).nextSibling,Tt.NEXT)}ancestorsIterator(t){return new Tt(this,t,t,Tt.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new Tt(this,t,n?this.lastInclusiveDescendant(t):t,n?Tt.PRECEDING:Tt.FOLLOWING)}index(t){let r=this._node(t),n=this._node(r.parent);if(!n)return-1;let i=r.getCachedIndex(n);if(i>=0)return i;i=0;let o=n.firstChild;if(n.childIndexCachedUpTo){let s=this._node(n.childIndexCachedUpTo);o=s.nextSibling,i=s.getCachedIndex(n)+1}for(;o;){let s=this._node(o);if(s.setCachedIndex(n,i),o===t)break;++i,o=s.nextSibling}return n.childIndexCachedUpTo=t,i}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 $r.CONTAINS|$r.PRECEDING;n.push(c),c=this.parent(c)}}let i=[];{let c=r;for(;c;){if(c===t)return $r.CONTAINED_BY|$r.FOLLOWING;i.push(c),c=this.parent(c)}}let o=Si(n,0);if(!o||o!==Si(i,0))return $r.DISCONNECTED;let s=0,a=Math.min(n.length,i.length);for(let c=0;c<a;++c){let f=Si(n,c),p=Si(i,c);if(f!==p)break;s=c}let l=this.index(Si(n,s+1));return this.index(Si(i,s+1))<l?$r.PRECEDING:$r.FOLLOWING}remove(t){let r=this._node(t),n=this._node(r.parent),i=this._node(r.previousSibling),o=this._node(r.nextSibling);return n&&(n.firstChild===t&&(n.firstChild=r.nextSibling),n.lastChild===t&&(n.lastChild=r.previousSibling)),i&&(i.nextSibling=r.nextSibling),o&&(o.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),i=this._node(n.previousSibling),o=this._node(r),s=this._node(n.parent);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.parent=n.parent,o.previousSibling=n.previousSibling,o.nextSibling=t,n.previousSibling=r,i&&(i.nextSibling=r),s&&s.firstChild===t&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(t,r){let n=this._node(t),i=this._node(n.nextSibling),o=this._node(r),s=this._node(n.parent);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return o.parent=n.parent,o.previousSibling=t,o.nextSibling=n.nextSibling,n.nextSibling=r,i&&(i.previousSibling=r),s&&s.lastChild===t&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(t,r){let n=this._node(t),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(i.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(t,r){let n=this._node(t),i=this._node(r);if(i.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(i.parent=t,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};Kg.exports=Za;Za.TreePosition=$r});var cy=N((ki,Ai)=>{(function(e){var t=typeof ki=="object"&&ki&&!ki.nodeType&&ki,r=typeof Ai=="object"&&Ai&&!Ai.nodeType&&Ai,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(e=n);var i,o=2147483647,s=36,a=1,l=26,u=38,c=700,f=72,p=128,h="-",m=/^xn--/,x=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=s-a,b=Math.floor,z=String.fromCharCode,q;function A(M){throw new RangeError(w[M])}function R(M,U){for(var d=M.length,G=[];d--;)G[d]=U(M[d]);return G}function V(M,U){var d=M.split("@"),G="";d.length>1&&(G=d[0]+"@",M=d[1]),M=M.replace(v,".");var K=M.split("."),y=R(K,U).join(".");return G+y}function $(M){for(var U=[],d=0,G=M.length,K,y;d<G;)K=M.charCodeAt(d++),K>=55296&&K<=56319&&d<G?(y=M.charCodeAt(d++),(y&64512)==56320?U.push(((K&1023)<<10)+(y&1023)+65536):(U.push(K),d--)):U.push(K);return U}function C(M){return R(M,function(U){var d="";return U>65535&&(U-=65536,d+=z(U>>>10&1023|55296),U=56320|U&1023),d+=z(U),d}).join("")}function pe(M){return M-48<10?M-22:M-65<26?M-65:M-97<26?M-97:s}function B(M,U){return M+22+75*(M<26)-((U!=0)<<5)}function _(M,U,d){var G=0;for(M=d?b(M/c):M>>1,M+=b(M/U);M>E*l>>1;G+=s)M=b(M/E);return b(G+(E+1)*M/(M+u))}function I(M){var U=[],d=M.length,G,K=0,y=p,se=f,de,Ie,k,g,S,T,O,Y,ye;for(de=M.lastIndexOf(h),de<0&&(de=0),Ie=0;Ie<de;++Ie)M.charCodeAt(Ie)>=128&&A("not-basic"),U.push(M.charCodeAt(Ie));for(k=de>0?de+1:0;k<d;){for(g=K,S=1,T=s;k>=d&&A("invalid-input"),O=pe(M.charCodeAt(k++)),(O>=s||O>b((o-K)/S))&&A("overflow"),K+=O*S,Y=T<=se?a:T>=se+l?l:T-se,!(O<Y);T+=s)ye=s-Y,S>b(o/ye)&&A("overflow"),S*=ye;G=U.length+1,se=_(K-g,G,g==0),b(K/G)>o-y&&A("overflow"),y+=b(K/G),K%=G,U.splice(K++,0,y)}return C(U)}function D(M){var U,d,G,K,y,se,de,Ie,k,g,S,T=[],O,Y,ye,we;for(M=$(M),O=M.length,U=p,d=0,y=f,se=0;se<O;++se)S=M[se],S<128&&T.push(z(S));for(G=K=T.length,K&&T.push(h);G<O;){for(de=o,se=0;se<O;++se)S=M[se],S>=U&&S<de&&(de=S);for(Y=G+1,de-U>b((o-d)/Y)&&A("overflow"),d+=(de-U)*Y,U=de,se=0;se<O;++se)if(S=M[se],S<U&&++d>o&&A("overflow"),S==U){for(Ie=d,k=s;g=k<=y?a:k>=y+l?l:k-y,!(Ie<g);k+=s)we=Ie-g,ye=s-g,T.push(z(B(g+we%ye,0))),Ie=b(we/ye);T.push(z(B(Ie,0))),y=_(d,Y,G==K),d=0,++G}++d,++U}return T.join("")}function F(M){return V(M,function(U){return m.test(U)?I(U.slice(4).toLowerCase()):U})}function W(M){return V(M,function(U){return x.test(U)?"xn--"+D(U):U})}if(i={version:"1.4.1",ucs2:{decode:$,encode:C},decode:I,encode:D,toASCII:W,toUnicode:F},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return i});else if(t&&r)if(Ai.exports==t)r.exports=i;else for(q in i)i.hasOwnProperty(q)&&(t[q]=i[q]);else e.punycode=i})(ki)});var py=N((gH,fy)=>{"use strict";fy.exports=Error});var my=N((yH,hy)=>{"use strict";hy.exports=EvalError});var gy=N((xH,dy)=>{"use strict";dy.exports=RangeError});var xy=N((bH,yy)=>{"use strict";yy.exports=ReferenceError});var bf=N((wH,by)=>{"use strict";by.exports=SyntaxError});var Ci=N((vH,wy)=>{"use strict";wy.exports=TypeError});var Sy=N((SH,vy)=>{"use strict";vy.exports=URIError});var Ay=N((kH,ky)=>{"use strict";ky.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 i=42;t[r]=i;for(r 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 o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var Ey=N((AH,Ty)=>{"use strict";var Cy=typeof Symbol<"u"&&Symbol,UE=Ay();Ty.exports=function(){return typeof Cy!="function"||typeof Symbol!="function"||typeof Cy("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:UE()}});var Iy=N((CH,_y)=>{"use strict";var wf={__proto__:null,foo:{}},jE=Object;_y.exports=function(){return{__proto__:wf}.foo===wf.foo&&!(wf instanceof jE)}});var Dy=N((TH,Oy)=>{"use strict";var zE="Function.prototype.bind called on incompatible ",qE=Object.prototype.toString,HE=Math.max,VE="[object Function]",Py=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var o=0;o<r.length;o+=1)n[o+t.length]=r[o];return n},WE=function(t,r){for(var n=[],i=r||0,o=0;i<t.length;i+=1,o+=1)n[o]=t[i];return n},YE=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};Oy.exports=function(t){var r=this;if(typeof r!="function"||qE.apply(r)!==VE)throw new TypeError(zE+r);for(var n=WE(arguments,1),i,o=function(){if(this instanceof i){var c=r.apply(this,Py(n,arguments));return Object(c)===c?c:this}return r.apply(t,Py(n,arguments))},s=HE(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(i=Function("binder","return function ("+YE(a,",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}});var Ka=N((EH,My)=>{"use strict";var GE=Dy();My.exports=Function.prototype.bind||GE});var Fy=N((_H,Ny)=>{"use strict";var JE=Function.prototype.call,QE=Object.prototype.hasOwnProperty,ZE=Ka();Ny.exports=ZE.call(JE,QE)});var Dn=N((IH,Uy)=>{"use strict";var he,XE=py(),KE=my(),e_=gy(),t_=xy(),Ii=bf(),_i=Ci(),r_=Sy(),$y=Function,vf=function(e){try{return $y('"use strict"; return ('+e+").constructor;")()}catch{}},Pn=Object.getOwnPropertyDescriptor;if(Pn)try{Pn({},"")}catch{Pn=null}var Sf=function(){throw new _i},n_=Pn?function(){try{return arguments.callee,Sf}catch{try{return Pn(arguments,"callee").get}catch{return Sf}}}():Sf,Ti=Ey()(),i_=Iy()(),Ke=Object.getPrototypeOf||(i_?function(e){return e.__proto__}:null),Ei={},o_=typeof Uint8Array>"u"||!Ke?he:Ke(Uint8Array),On={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?he:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?he:ArrayBuffer,"%ArrayIteratorPrototype%":Ti&&Ke?Ke([][Symbol.iterator]()):he,"%AsyncFromSyncIteratorPrototype%":he,"%AsyncFunction%":Ei,"%AsyncGenerator%":Ei,"%AsyncGeneratorFunction%":Ei,"%AsyncIteratorPrototype%":Ei,"%Atomics%":typeof Atomics>"u"?he:Atomics,"%BigInt%":typeof BigInt>"u"?he:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?he:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?he:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?he:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":XE,"%eval%":eval,"%EvalError%":KE,"%Float32Array%":typeof Float32Array>"u"?he:Float32Array,"%Float64Array%":typeof Float64Array>"u"?he:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?he:FinalizationRegistry,"%Function%":$y,"%GeneratorFunction%":Ei,"%Int8Array%":typeof Int8Array>"u"?he:Int8Array,"%Int16Array%":typeof Int16Array>"u"?he:Int16Array,"%Int32Array%":typeof Int32Array>"u"?he:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ti&&Ke?Ke(Ke([][Symbol.iterator]())):he,"%JSON%":typeof JSON=="object"?JSON:he,"%Map%":typeof Map>"u"?he:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ti||!Ke?he:Ke(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?he:Promise,"%Proxy%":typeof Proxy>"u"?he:Proxy,"%RangeError%":e_,"%ReferenceError%":t_,"%Reflect%":typeof Reflect>"u"?he:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?he:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ti||!Ke?he:Ke(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?he:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ti&&Ke?Ke(""[Symbol.iterator]()):he,"%Symbol%":Ti?Symbol:he,"%SyntaxError%":Ii,"%ThrowTypeError%":n_,"%TypedArray%":o_,"%TypeError%":_i,"%Uint8Array%":typeof Uint8Array>"u"?he:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?he:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?he:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?he:Uint32Array,"%URIError%":r_,"%WeakMap%":typeof WeakMap>"u"?he:WeakMap,"%WeakRef%":typeof WeakRef>"u"?he:WeakRef,"%WeakSet%":typeof WeakSet>"u"?he:WeakSet};if(Ke)try{null.error}catch(e){Ry=Ke(Ke(e)),On["%Error.prototype%"]=Ry}var Ry,s_=function e(t){var r;if(t==="%AsyncFunction%")r=vf("async function () {}");else if(t==="%GeneratorFunction%")r=vf("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=vf("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ke&&(r=Ke(i.prototype))}return On[t]=r,r},Ly={__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"]},rs=Ka(),el=Fy(),a_=rs.call(Function.call,Array.prototype.concat),l_=rs.call(Function.apply,Array.prototype.splice),By=rs.call(Function.call,String.prototype.replace),tl=rs.call(Function.call,String.prototype.slice),u_=rs.call(Function.call,RegExp.prototype.exec),c_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,f_=/\\(\\)?/g,p_=function(t){var r=tl(t,0,1),n=tl(t,-1);if(r==="%"&&n!=="%")throw new Ii("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ii("invalid intrinsic syntax, expected opening `%`");var i=[];return By(t,c_,function(o,s,a,l){i[i.length]=a?By(l,f_,"$1"):s||o}),i},h_=function(t,r){var n=t,i;if(el(Ly,n)&&(i=Ly[n],n="%"+i[0]+"%"),el(On,n)){var o=On[n];if(o===Ei&&(o=s_(n)),typeof o>"u"&&!r)throw new _i("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Ii("intrinsic "+t+" does not exist!")};Uy.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new _i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new _i('"allowMissing" argument must be a boolean');if(u_(/^%?[^%]*%?$/,t)===null)throw new Ii("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=p_(t),i=n.length>0?n[0]:"",o=h_("%"+i+"%",r),s=o.name,a=o.value,l=!1,u=o.alias;u&&(i=u[0],l_(n,a_([0,1],u)));for(var c=1,f=!0;c<n.length;c+=1){var p=n[c],h=tl(p,0,1),m=tl(p,-1);if((h==='"'||h==="'"||h==="`"||m==='"'||m==="'"||m==="`")&&h!==m)throw new Ii("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(l=!0),i+="."+p,s="%"+i+"%",el(On,s))a=On[s];else if(a!=null){if(!(p in a)){if(!r)throw new _i("base intrinsic for "+t+" exists, but the property is not available.");return}if(Pn&&c+1>=n.length){var x=Pn(a,p);f=!!x,f&&"get"in x&&!("originalValue"in x.get)?a=x.get:a=a[p]}else f=el(a,p),a=a[p];f&&!l&&(On[s]=a)}}return a}});var nl=N((PH,jy)=>{"use strict";var m_=Dn(),rl=m_("%Object.defineProperty%",!0)||!1;if(rl)try{rl({},"a",{value:1})}catch{rl=!1}jy.exports=rl});var kf=N((OH,zy)=>{"use strict";var d_=Dn(),il=d_("%Object.getOwnPropertyDescriptor%",!0);if(il)try{il([],"length")}catch{il=null}zy.exports=il});var Wy=N((DH,Vy)=>{"use strict";var qy=nl(),g_=bf(),Pi=Ci(),Hy=kf();Vy.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Pi("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Pi("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Pi("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Pi("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Pi("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Pi("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Hy&&Hy(t,r);if(qy)qy(t,r,{configurable:s===null&&l?l.configurable:!s,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:o===null&&l?l.writable:!o});else if(a||!i&&!o&&!s)t[r]=n;else throw new g_("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Jy=N((MH,Gy)=>{"use strict";var Af=nl(),Yy=function(){return!!Af};Yy.hasArrayLengthDefineBug=function(){if(!Af)return null;try{return Af([],"length",{value:1}).length!==1}catch{return!0}};Gy.exports=Yy});var ex=N((NH,Ky)=>{"use strict";var y_=Dn(),Qy=Wy(),x_=Jy()(),Zy=kf(),Xy=Ci(),b_=y_("%Math.floor%");Ky.exports=function(t,r){if(typeof t!="function")throw new Xy("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||b_(r)!==r)throw new Xy("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,o=!0;if("length"in t&&Zy){var s=Zy(t,"length");s&&!s.configurable&&(i=!1),s&&!s.writable&&(o=!1)}return(i||o||!n)&&(x_?Qy(t,"length",r,!0,!0):Qy(t,"length",r)),t}});var sx=N((FH,ol)=>{"use strict";var Cf=Ka(),sl=Dn(),w_=ex(),v_=Ci(),nx=sl("%Function.prototype.apply%"),ix=sl("%Function.prototype.call%"),ox=sl("%Reflect.apply%",!0)||Cf.call(ix,nx),tx=nl(),S_=sl("%Math.max%");ol.exports=function(t){if(typeof t!="function")throw new v_("a function is required");var r=ox(Cf,ix,arguments);return w_(r,1+S_(0,t.length-(arguments.length-1)),!0)};var rx=function(){return ox(Cf,nx,arguments)};tx?tx(ol.exports,"apply",{value:rx}):ol.exports.apply=rx});var cx=N((RH,ux)=>{"use strict";var ax=Dn(),lx=sx(),k_=lx(ax("String.prototype.indexOf"));ux.exports=function(t,r){var n=ax(t,!!r);return typeof n=="function"&&k_(t,".prototype.")>-1?lx(n):n}});var fx=N(()=>{});var Dx=N(($H,Ox)=>{var Ff=typeof Map=="function"&&Map.prototype,Tf=Object.getOwnPropertyDescriptor&&Ff?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ll=Ff&&Tf&&typeof Tf.get=="function"?Tf.get:null,px=Ff&&Map.prototype.forEach,Rf=typeof Set=="function"&&Set.prototype,Ef=Object.getOwnPropertyDescriptor&&Rf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ul=Rf&&Ef&&typeof Ef.get=="function"?Ef.get:null,hx=Rf&&Set.prototype.forEach,A_=typeof WeakMap=="function"&&WeakMap.prototype,is=A_?WeakMap.prototype.has:null,C_=typeof WeakSet=="function"&&WeakSet.prototype,os=C_?WeakSet.prototype.has:null,T_=typeof WeakRef=="function"&&WeakRef.prototype,mx=T_?WeakRef.prototype.deref:null,E_=Boolean.prototype.valueOf,__=Object.prototype.toString,I_=Function.prototype.toString,P_=String.prototype.match,Lf=String.prototype.slice,zr=String.prototype.replace,O_=String.prototype.toUpperCase,dx=String.prototype.toLowerCase,Ax=RegExp.prototype.test,gx=Array.prototype.concat,Vt=Array.prototype.join,D_=Array.prototype.slice,yx=Math.floor,Pf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,_f=Object.getOwnPropertySymbols,Of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",it=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Oi||!0)?Symbol.toStringTag:null,Cx=Object.prototype.propertyIsEnumerable,xx=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function bx(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ax.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-yx(-e):yx(e);if(n!==e){var i=String(n),o=Lf.call(t,i.length+1);return zr.call(i,r,"$&_")+"."+zr.call(zr.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return zr.call(t,r,"$&_")}var Df=fx(),wx=Df.custom,vx=_x(wx)?wx:null,Tx={__proto__:null,double:'"',single:"'"},M_={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ox.exports=function e(t,r,n,i){var o=r||{};if(yr(o,"quoteStyle")&&!yr(Tx,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yr(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=yr(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(yr(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(yr(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.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 Px(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?bx(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?bx(t,u):u}var c=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return Mf(t)?"[Array]":"[Object]";var f=Z_(o,n);if(typeof i>"u")i=[];else if(Ix(i,t)>=0)return"[Circular]";function p(_,I,D){if(I&&(i=D_.call(i),i.push(I)),D){var F={depth:o.depth};return yr(o,"quoteStyle")&&(F.quoteStyle=o.quoteStyle),e(_,F,n+1,i)}return e(_,o,n+1,i)}if(typeof t=="function"&&!Sx(t)){var h=z_(t),m=al(t,p);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(m.length>0?" { "+Vt.call(m,", ")+" }":"")}if(_x(t)){var x=Oi?zr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Of.call(t);return typeof t=="object"&&!Oi?ns(x):x}if(G_(t)){for(var v="<"+dx.call(String(t.nodeName)),w=t.attributes||[],E=0;E<w.length;E++)v+=" "+w[E].name+"="+Ex(N_(w[E].value),"double",o);return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+dx.call(String(t.nodeName))+">",v}if(Mf(t)){if(t.length===0)return"[]";var b=al(t,p);return f&&!Q_(b)?"["+Nf(b,f)+"]":"[ "+Vt.call(b,", ")+" ]"}if(R_(t)){var z=al(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Cx.call(t,"cause")?"{ ["+String(t)+"] "+Vt.call(gx.call("[cause]: "+p(t.cause),z),", ")+" }":z.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Vt.call(z,", ")+" }"}if(typeof t=="object"&&s){if(vx&&typeof t[vx]=="function"&&Df)return Df(t,{depth:c-n});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(q_(t)){var q=[];return px&&px.call(t,function(_,I){q.push(p(I,t,!0)+" => "+p(_,t))}),kx("Map",ll.call(t),q,f)}if(W_(t)){var A=[];return hx&&hx.call(t,function(_){A.push(p(_,t))}),kx("Set",ul.call(t),A,f)}if(H_(t))return If("WeakMap");if(Y_(t))return If("WeakSet");if(V_(t))return If("WeakRef");if(B_(t))return ns(p(Number(t)));if(U_(t))return ns(p(Pf.call(t)));if($_(t))return ns(E_.call(t));if(L_(t))return ns(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(!F_(t)&&!Sx(t)){var R=al(t,p),V=xx?xx(t)===Object.prototype:t instanceof Object||t.constructor===Object,$=t instanceof Object?"":"null prototype",C=!V&&it&&Object(t)===t&&it in t?Lf.call(qr(t),8,-1):$?"Object":"",pe=V||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",B=pe+(C||$?"["+Vt.call(gx.call([],C||[],$||[]),": ")+"] ":"");return R.length===0?B+"{}":f?B+"{"+Nf(R,f)+"}":B+"{ "+Vt.call(R,", ")+" }"}return String(t)};function Ex(e,t,r){var n=r.quoteStyle||t,i=Tx[n];return i+e+i}function N_(e){return zr.call(String(e),/"/g,"&quot;")}function Mf(e){return qr(e)==="[object Array]"&&(!it||!(typeof e=="object"&&it in e))}function F_(e){return qr(e)==="[object Date]"&&(!it||!(typeof e=="object"&&it in e))}function Sx(e){return qr(e)==="[object RegExp]"&&(!it||!(typeof e=="object"&&it in e))}function R_(e){return qr(e)==="[object Error]"&&(!it||!(typeof e=="object"&&it in e))}function L_(e){return qr(e)==="[object String]"&&(!it||!(typeof e=="object"&&it in e))}function B_(e){return qr(e)==="[object Number]"&&(!it||!(typeof e=="object"&&it in e))}function $_(e){return qr(e)==="[object Boolean]"&&(!it||!(typeof e=="object"&&it in e))}function _x(e){if(Oi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Of)return!1;try{return Of.call(e),!0}catch{}return!1}function U_(e){if(!e||typeof e!="object"||!Pf)return!1;try{return Pf.call(e),!0}catch{}return!1}var j_=Object.prototype.hasOwnProperty||function(e){return e in this};function yr(e,t){return j_.call(e,t)}function qr(e){return __.call(e)}function z_(e){if(e.name)return e.name;var t=P_.call(I_.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Ix(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 q_(e){if(!ll||!e||typeof e!="object")return!1;try{ll.call(e);try{ul.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function H_(e){if(!is||!e||typeof e!="object")return!1;try{is.call(e,is);try{os.call(e,os)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function V_(e){if(!mx||!e||typeof e!="object")return!1;try{return mx.call(e),!0}catch{}return!1}function W_(e){if(!ul||!e||typeof e!="object")return!1;try{ul.call(e);try{ll.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Y_(e){if(!os||!e||typeof e!="object")return!1;try{os.call(e,os);try{is.call(e,is)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function G_(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Px(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Px(Lf.call(e,0,t.maxStringLength),t)+n}var i=M_[t.quoteStyle||"single"];i.lastIndex=0;var o=zr.call(zr.call(e,i,"\\$1"),/[\x00-\x1f]/g,J_);return Ex(o,"single",t)}function J_(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":"")+O_.call(t.toString(16))}function ns(e){return"Object("+e+")"}function If(e){return e+" { ? }"}function kx(e,t,r,n){var i=n?Nf(r,n):Vt.call(r,", ");return e+" ("+t+") {"+i+"}"}function Q_(e){for(var t=0;t<e.length;t++)if(Ix(e[t],`
2
- `)>=0)return!1;return!0}function Z_(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Vt.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Vt.call(Array(t+1),r)}}function Nf(e,t){if(e.length===0)return"";var r=`
3
- `+t.prev+t.base;return r+Vt.call(e,","+r)+`
4
- `+t.prev}function al(e,t){var r=Mf(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=yr(e,i)?t(e[i],e):""}var o=typeof _f=="function"?_f(e):[],s;if(Oi){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var l in e)yr(e,l)&&(r&&String(Number(l))===l&&l<e.length||Oi&&s["$"+l]instanceof Symbol||(Ax.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof _f=="function")for(var u=0;u<o.length;u++)Cx.call(e,o[u])&&n.push("["+t(o[u])+"]: "+t(e[o[u]],e));return n}});var Fx=N((UH,Nx)=>{"use strict";var Mx=Dn(),Di=cx(),X_=Dx(),K_=Ci(),cl=Mx("%WeakMap%",!0),fl=Mx("%Map%",!0),eI=Di("WeakMap.prototype.get",!0),tI=Di("WeakMap.prototype.set",!0),rI=Di("WeakMap.prototype.has",!0),nI=Di("Map.prototype.get",!0),iI=Di("Map.prototype.set",!0),oI=Di("Map.prototype.has",!0),Bf=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},sI=function(e,t){var r=Bf(e,t);return r&&r.value},aI=function(e,t,r){var n=Bf(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},lI=function(e,t){return!!Bf(e,t)};Nx.exports=function(){var t,r,n,i={assert:function(o){if(!i.has(o))throw new K_("Side channel does not contain "+X_(o))},get:function(o){if(cl&&o&&(typeof o=="object"||typeof o=="function")){if(t)return eI(t,o)}else if(fl){if(r)return nI(r,o)}else if(n)return sI(n,o)},has:function(o){if(cl&&o&&(typeof o=="object"||typeof o=="function")){if(t)return rI(t,o)}else if(fl){if(r)return oI(r,o)}else if(n)return lI(n,o);return!1},set:function(o,s){cl&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new cl),tI(t,o,s)):fl?(r||(r=new fl),iI(r,o,s)):(n||(n={key:{},next:null}),aI(n,o,s))}};return i}});var pl=N((jH,Rx)=>{"use strict";var uI=String.prototype.replace,cI=/%20/g,$f={RFC1738:"RFC1738",RFC3986:"RFC3986"};Rx.exports={default:$f.RFC3986,formatters:{RFC1738:function(e){return uI.call(e,cI,"+")},RFC3986:function(e){return String(e)}},RFC1738:$f.RFC1738,RFC3986:$f.RFC3986}});var zf=N((zH,Bx)=>{"use strict";var fI=pl(),Uf=Object.prototype.hasOwnProperty,Mn=Array.isArray,Wt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),pI=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Mn(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},Lx=function(t,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},hI=function e(t,r,n){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(Mn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Uf.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return Mn(t)&&!Mn(r)&&(i=Lx(t,n)),Mn(t)&&Mn(r)?(r.forEach(function(o,s){if(Uf.call(t,s)){var a=t[s];a&&typeof a=="object"&&o&&typeof o=="object"?t[s]=e(a,o,n):t.push(o)}else t[s]=o}),t):Object.keys(r).reduce(function(o,s){var a=r[s];return Uf.call(o,s)?o[s]=e(o[s],a,n):o[s]=a,o},i)},mI=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},dI=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}},jf=1024,gI=function(t,r,n,i,o){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+=jf){for(var u=s.length>=jf?s.slice(l,l+jf):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||o===fI.RFC1738&&(p===40||p===41)){c[c.length]=u.charAt(f);continue}if(p<128){c[c.length]=Wt[p];continue}if(p<2048){c[c.length]=Wt[192|p>>6]+Wt[128|p&63];continue}if(p<55296||p>=57344){c[c.length]=Wt[224|p>>12]+Wt[128|p>>6&63]+Wt[128|p&63];continue}f+=1,p=65536+((p&1023)<<10|u.charCodeAt(f)&1023),c[c.length]=Wt[240|p>>18]+Wt[128|p>>12&63]+Wt[128|p>>6&63]+Wt[128|p&63]}a+=c.join("")}return a},yI=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],s=o.obj[o.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 pI(r),t},xI=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},bI=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},wI=function(t,r){return[].concat(t,r)},vI=function(t,r){if(Mn(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)};Bx.exports={arrayToObject:Lx,assign:mI,combine:wI,compact:yI,decode:dI,encode:gI,isBuffer:bI,isRegExp:xI,maybeMap:vI,merge:hI}});var Hx=N((qH,qx)=>{"use strict";var Ux=Fx(),hl=zf(),ss=pl(),SI=Object.prototype.hasOwnProperty,jx={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Yt=Array.isArray,kI=Array.prototype.push,zx=function(e,t){kI.apply(e,Yt(t)?t:[t])},AI=Date.prototype.toISOString,$x=ss.default,Ge={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:hl.encode,encodeValuesOnly:!1,filter:void 0,format:$x,formatter:ss.formatters[$x],indices:!1,serializeDate:function(t){return AI.call(t)},skipNulls:!1,strictNullHandling:!1},CI=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},qf={},TI=function e(t,r,n,i,o,s,a,l,u,c,f,p,h,m,x,v,w,E){for(var b=t,z=E,q=0,A=!1;(z=z.get(qf))!==void 0&&!A;){var R=z.get(t);if(q+=1,typeof R<"u"){if(R===q)throw new RangeError("Cyclic object value");A=!0}typeof z.get(qf)>"u"&&(q=0)}if(typeof c=="function"?b=c(r,b):b instanceof Date?b=h(b):n==="comma"&&Yt(b)&&(b=hl.maybeMap(b,function(d){return d instanceof Date?h(d):d})),b===null){if(s)return u&&!v?u(r,Ge.encoder,w,"key",m):r;b=""}if(CI(b)||hl.isBuffer(b)){if(u){var V=v?r:u(r,Ge.encoder,w,"key",m);return[x(V)+"="+x(u(b,Ge.encoder,w,"value",m))]}return[x(r)+"="+x(String(b))]}var $=[];if(typeof b>"u")return $;var C;if(n==="comma"&&Yt(b))v&&u&&(b=hl.maybeMap(b,u)),C=[{value:b.length>0?b.join(",")||null:void 0}];else if(Yt(c))C=c;else{var pe=Object.keys(b);C=f?pe.sort(f):pe}var B=l?String(r).replace(/\./g,"%2E"):String(r),_=i&&Yt(b)&&b.length===1?B+"[]":B;if(o&&Yt(b)&&b.length===0)return _+"[]";for(var I=0;I<C.length;++I){var D=C[I],F=typeof D=="object"&&D&&typeof D.value<"u"?D.value:b[D];if(!(a&&F===null)){var W=p&&l?String(D).replace(/\./g,"%2E"):String(D),M=Yt(b)?typeof n=="function"?n(_,W):_:_+(p?"."+W:"["+W+"]");E.set(t,q);var U=Ux();U.set(qf,E),zx($,e(F,M,n,i,o,s,a,l,n==="comma"&&v&&Yt(b)?null:u,c,f,p,h,m,x,v,w,U))}}return $},EI=function(t){if(!t)return Ge;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||Ge.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=ss.default;if(typeof t.format<"u"){if(!SI.call(ss.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=ss.formatters[n],o=Ge.filter;(typeof t.filter=="function"||Yt(t.filter))&&(o=t.filter);var s;if(t.arrayFormat in jx?s=t.arrayFormat:"indices"in t?s=t.indices?"indices":"repeat":s=Ge.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:Ge.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Ge.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ge.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ge.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Ge.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Ge.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Ge.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Ge.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Ge.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Ge.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Ge.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ge.strictNullHandling}};qx.exports=function(e,t){var r=e,n=EI(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Yt(n.filter)&&(o=n.filter,i=o);var s=[];if(typeof r!="object"||r===null)return"";var a=jx[n.arrayFormat],l=a==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var u=Ux(),c=0;c<i.length;++c){var f=i[c],p=r[f];n.skipNulls&&p===null||zx(s,TI(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 Yx=N((HH,Wx)=>{"use strict";var Mi=zf(),Hf=Object.prototype.hasOwnProperty,_I=Array.isArray,Pe={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Mi.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},II=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Vx=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},PI="utf8=%26%2310003%3B",OI="utf8=%E2%9C%93",DI=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=r.parameterLimit===1/0?void 0:r.parameterLimit,s=i.split(r.delimiter,o),a=-1,l,u=r.charset;if(r.charsetSentinel)for(l=0;l<s.length;++l)s[l].indexOf("utf8=")===0&&(s[l]===OI?u="utf-8":s[l]===PI&&(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,Pe.decoder,u,"key"),m=r.strictNullHandling?null:""):(h=r.decoder(c.slice(0,p),Pe.decoder,u,"key"),m=Mi.maybeMap(Vx(c.slice(p+1),r),function(v){return r.decoder(v,Pe.decoder,u,"value")})),m&&r.interpretNumericEntities&&u==="iso-8859-1"&&(m=II(String(m))),c.indexOf("[]=")>-1&&(m=_I(m)?[m]:m);var x=Hf.call(n,h);x&&r.duplicates==="combine"?n[h]=Mi.combine(n[h],m):(!x||r.duplicates==="last")&&(n[h]=m)}return n},MI=function(e,t,r,n){for(var i=n?t:Vx(t,r),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&r.parseArrays)s=r.allowEmptyArrays&&(i===""||r.strictNullHandling&&i===null)?[]:[].concat(i);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:i}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=i):u!=="__proto__"&&(s[u]=i)}i=s}return i},NI=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(o),u=l?o.slice(0,l.index):o,c=[];if(u){if(!n.plainObjects&&Hf.call(Object.prototype,u)&&!n.allowPrototypes)return;c.push(u)}for(var f=0;n.depth>0&&(l=a.exec(o))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&Hf.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("["+o.slice(l.index)+"]")}return MI(c,r,n,i)}},FI=function(t){if(!t)return Pe;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"?Pe.charset:t.charset,n=typeof t.duplicates>"u"?Pe.duplicates:t.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Pe.allowDots:!!t.allowDots;return{allowDots:i,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Pe.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Pe.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Pe.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Pe.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Pe.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Pe.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Pe.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Pe.decoder,delimiter:typeof t.delimiter=="string"||Mi.isRegExp(t.delimiter)?t.delimiter:Pe.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Pe.depth,duplicates:n,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Pe.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Pe.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Pe.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Pe.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Pe.strictNullHandling}};Wx.exports=function(e,t){var r=FI(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var n=typeof e=="string"?DI(e,r):e,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),s=0;s<o.length;++s){var a=o[s],l=NI(a,n[a],r,typeof e=="string");i=Mi.merge(i,l,r)}return r.allowSparse===!0?i:Mi.compact(i)}});var Jx=N((VH,Gx)=>{"use strict";var RI=Hx(),LI=Yx(),BI=pl();Gx.exports={formats:BI,parse:LI,stringify:RI}});var Kx=N(Fi=>{"use strict";var $I=cy();function Et(){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 UI=/^([a-z0-9.+-]+:)/i,jI=/:[0-9]*$/,zI=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,qI=["<",">",'"',"`"," ","\r",`
5
- `," "],HI=["{","}","|","\\","^","`"].concat(qI),Vf=["'"].concat(HI),Qx=["%","/","?",";","#"].concat(Vf),Zx=["/","?","#"],VI=255,Xx=/^[+a-z0-9A-Z_-]{0,63}$/,WI=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,YI={javascript:!0,"javascript:":!0},Wf={javascript:!0,"javascript:":!0},Ni={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Yf=Jx();function as(e,t,r){if(e&&typeof e=="object"&&e instanceof Et)return e;var n=new Et;return n.parse(e,t,r),n}Et.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("?"),i=n!==-1&&n<e.indexOf("#")?"?":"#",o=e.split(i),s=/\\/g;o[0]=o[0].replace(s,"/"),e=o.join(i);var a=e;if(a=a.trim(),!r&&e.split("#").length===1){var l=zI.exec(a);if(l)return this.path=a,this.href=a,this.pathname=l[1],l[2]?(this.search=l[2],t?this.query=Yf.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=UI.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&&Wf[u])&&(a=a.substr(2),this.slashes=!0)}if(!Wf[u]&&(f||u&&!Ni[u])){for(var p=-1,h=0;h<Zx.length;h++){var m=a.indexOf(Zx[h]);m!==-1&&(p===-1||m<p)&&(p=m)}var x,v;p===-1?v=a.lastIndexOf("@"):v=a.lastIndexOf("@",p),v!==-1&&(x=a.slice(0,v),a=a.slice(v+1),this.auth=decodeURIComponent(x)),p=-1;for(var h=0;h<Qx.length;h++){var m=a.indexOf(Qx[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 w=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!w)for(var E=this.hostname.split(/\./),h=0,b=E.length;h<b;h++){var z=E[h];if(z&&!z.match(Xx)){for(var q="",A=0,R=z.length;A<R;A++)z.charCodeAt(A)>127?q+="x":q+=z[A];if(!q.match(Xx)){var V=E.slice(0,h),$=E.slice(h+1),C=z.match(WI);C&&(V.push(C[1]),$.unshift(C[2])),$.length&&(a="/"+$.join(".")+a),this.hostname=V.join(".");break}}}this.hostname.length>VI?this.hostname="":this.hostname=this.hostname.toLowerCase(),w||(this.hostname=$I.toASCII(this.hostname));var pe=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+pe,this.href+=this.host,w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!YI[c])for(var h=0,b=Vf.length;h<b;h++){var _=Vf[h];if(a.indexOf(_)!==-1){var I=encodeURIComponent(_);I===_&&(I=escape(_)),a=a.split(_).join(I)}}var D=a.indexOf("#");D!==-1&&(this.hash=a.substr(D),a=a.slice(0,D));var F=a.indexOf("?");if(F!==-1?(this.search=a.substr(F),this.query=a.substr(F+1),t&&(this.query=Yf.parse(this.query)),a=a.slice(0,F)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Ni[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var pe=this.pathname||"",W=this.search||"";this.path=pe+W}return this.href=this.format(),this};function GI(e){return typeof e=="string"&&(e=as(e)),e instanceof Et?e.format():Et.prototype.format.call(e)}Et.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||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=Yf.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Ni[t])&&i!==!1?(i="//"+(i||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):i||(i=""),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+i+r+s+n};function JI(e,t){return as(e,!1,!0).resolve(t)}Et.prototype.resolve=function(e){return this.resolveObject(as(e,!1,!0)).format()};function QI(e,t){return e?as(e,!1,!0).resolveObject(t):t}Et.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new Et;t.parse(e,!1,!0),e=t}for(var r=new Et,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}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 Ni[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(!Ni[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&&!Wf[e.protocol]){for(var b=(e.pathname||"").split("/");b.length&&!(e.host=b.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),b[0]!==""&&b.unshift(""),b.length<2&&b.unshift(""),r.pathname=b.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)==="/",x=e.host||e.pathname&&e.pathname.charAt(0)==="/",v=x||m||r.host&&e.pathname,w=v,E=r.pathname&&r.pathname.split("/")||[],b=e.pathname&&e.pathname.split("/")||[],z=r.protocol&&!Ni[r.protocol];if(z&&(r.hostname="",r.port=null,r.host&&(E[0]===""?E[0]=r.host:E.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(b[0]===""?b[0]=e.host:b.unshift(e.host)),e.host=null),v=v&&(b[0]===""||E[0]==="")),x)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,E=b;else if(b.length)E||(E=[]),E.pop(),E=E.concat(b),r.search=e.search,r.query=e.query;else if(e.search!=null){if(z){r.host=E.shift(),r.hostname=r.host;var q=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;q&&(r.auth=q.shift(),r.hostname=q.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(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var A=E.slice(-1)[0],R=(r.host||e.host||E.length>1)&&(A==="."||A==="..")||A==="",V=0,$=E.length;$>=0;$--)A=E[$],A==="."?E.splice($,1):A===".."?(E.splice($,1),V++):V&&(E.splice($,1),V--);if(!v&&!w)for(;V--;V)E.unshift("..");v&&E[0]!==""&&(!E[0]||E[0].charAt(0)!=="/")&&E.unshift(""),R&&E.join("/").substr(-1)!=="/"&&E.push("");var C=E[0]===""||E[0]&&E[0].charAt(0)==="/";if(z){r.hostname=C?"":E.length?E.shift():"",r.host=r.hostname;var q=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;q&&(r.auth=q.shift(),r.hostname=q.shift(),r.host=r.hostname)}return v=v||r.host&&E.length,v&&!C&&E.unshift(""),E.length>0?r.pathname=E.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};Et.prototype.parseHost=function(){var e=this.host,t=jI.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};Fi.parse=as;Fi.resolve=JI;Fi.resolveObject=QI;Fi.format=GI;Fi.Url=Et});var bb=N((GH,xb)=>{"use strict";xb.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var Sb=N((QH,vb)=>{"use strict";vb.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 Cb=N((ZH,Ab)=>{var aP=Object.prototype.toString;Ab.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 pP(t)?"generatorfunction":"function";if(lP(t))return"array";if(dP(t))return"buffer";if(mP(t))return"arguments";if(cP(t))return"date";if(uP(t))return"error";if(fP(t))return"regexp";switch(kb(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(hP(t))return"generator";switch(r=aP.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 kb(e){return typeof e.constructor=="function"?e.constructor.name:null}function lP(e){return Array.isArray?Array.isArray(e):e instanceof Array}function uP(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function cP(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function fP(e){return e instanceof RegExp?!0:typeof e.flags=="string"&&typeof e.ignoreCase=="boolean"&&typeof e.multiline=="boolean"&&typeof e.global=="boolean"}function pP(e,t){return kb(e)==="GeneratorFunction"}function hP(e){return typeof e.throw=="function"&&typeof e.return=="function"&&typeof e.next=="function"}function mP(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 dP(e){return e.constructor&&typeof e.constructor.isBuffer=="function"?e.constructor.isBuffer(e):!1}});var Eb=N((XH,Tb)=>{Tb.exports=function(e){var t="Uint32Array"in e,r=e.crypto||e.msCrypto,n=r&&typeof r.getRandomValues=="function",i=t&&n;if(!i)return Math.random;var o=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(o),o[0]/s}return a.cryptographic=!0,a}(typeof self<"u"?self:window)});var Pb=N((KH,Xf)=>{"use strict";var gP=Sb(),_b=Cb(),Ib=Eb();Xf.exports=yP;Xf.exports.isCrypto=!!Ib.cryptographic;var Gt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};Gt.all=Gt.lower+Gt.upper+Gt.number+Gt.special;function yP(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:gP(e)&&(r={},t=e,e="*")),_b(t)==="object"&&t.hasOwnProperty("chars")&&(r=t,e=r.chars,t=e.length,n=!0);var i=r||{},o="",s="";if(e.indexOf("?")!==-1&&(o+=i.chars),e.indexOf("a")!==-1&&(o+=Gt.lower),e.indexOf("A")!==-1&&(o+=Gt.upper),e.indexOf("0")!==-1&&(o+=Gt.number),e.indexOf("!")!==-1&&(o+=Gt.special),e.indexOf("*")!==-1&&(o+=Gt.all),n&&(o+=e),i.exclude){var a=_b(i.exclude)==="string"?i.exclude:i.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),o=o.replace(new RegExp("["+a+"]+","g"),""),i.exclude.indexOf("]")!==-1&&(o=o.replace(new RegExp("[\\]]+","g"),""))}for(;t--;)s+=o.charAt(parseInt(Ib()*o.length,10));return s}});var S0=N((cs,$i)=>{var IP=200,Wb="__lodash_hash_undefined__",Yb=9007199254740991,mp="[object Arguments]",PP="[object Array]",Gb="[object Boolean]",Jb="[object Date]",OP="[object Error]",dp="[object Function]",Qb="[object GeneratorFunction]",vl="[object Map]",Zb="[object Number]",gp="[object Object]",Fb="[object Promise]",Xb="[object RegExp]",Sl="[object Set]",Kb="[object String]",e0="[object Symbol]",lp="[object WeakMap]",t0="[object ArrayBuffer]",kl="[object DataView]",r0="[object Float32Array]",n0="[object Float64Array]",i0="[object Int8Array]",o0="[object Int16Array]",s0="[object Int32Array]",a0="[object Uint8Array]",l0="[object Uint8ClampedArray]",u0="[object Uint16Array]",c0="[object Uint32Array]",DP=/[\\^$.*+?()[\]{}|]/g,MP=/\w*$/,NP=/^\[object .+?Constructor\]$/,FP=/^(?:0|[1-9]\d*)$/,Ce={};Ce[mp]=Ce[PP]=Ce[t0]=Ce[kl]=Ce[Gb]=Ce[Jb]=Ce[r0]=Ce[n0]=Ce[i0]=Ce[o0]=Ce[s0]=Ce[vl]=Ce[Zb]=Ce[gp]=Ce[Xb]=Ce[Sl]=Ce[Kb]=Ce[e0]=Ce[a0]=Ce[l0]=Ce[u0]=Ce[c0]=!0;Ce[OP]=Ce[dp]=Ce[lp]=!1;var RP=typeof global=="object"&&global&&global.Object===Object&&global,LP=typeof self=="object"&&self&&self.Object===Object&&self,xr=RP||LP||Function("return this")(),f0=typeof cs=="object"&&cs&&!cs.nodeType&&cs,Rb=f0&&typeof $i=="object"&&$i&&!$i.nodeType&&$i,BP=Rb&&Rb.exports===f0;function $P(e,t){return e.set(t[0],t[1]),e}function UP(e,t){return e.add(t),e}function jP(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function zP(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function p0(e,t,r,n){var i=-1,o=e?e.length:0;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function qP(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function HP(e,t){return e?.[t]}function h0(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Lb(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function yp(e,t){return function(r){return e(t(r))}}function Bb(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var VP=Array.prototype,WP=Function.prototype,Al=Object.prototype,ap=xr["__core-js_shared__"],$b=function(){var e=/[^.]+$/.exec(ap&&ap.keys&&ap.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),m0=WP.toString,Vr=Al.hasOwnProperty,Cl=Al.toString,YP=RegExp("^"+m0.call(Vr).replace(DP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ub=BP?xr.Buffer:void 0,jb=xr.Symbol,zb=xr.Uint8Array,GP=yp(Object.getPrototypeOf,Object),JP=Object.create,QP=Al.propertyIsEnumerable,ZP=VP.splice,qb=Object.getOwnPropertySymbols,XP=Ub?Ub.isBuffer:void 0,KP=yp(Object.keys,Object),up=zi(xr,"DataView"),fs=zi(xr,"Map"),cp=zi(xr,"Promise"),fp=zi(xr,"Set"),pp=zi(xr,"WeakMap"),ps=zi(Object,"create"),eO=Rn(up),tO=Rn(fs),rO=Rn(cp),nO=Rn(fp),iO=Rn(pp),Hb=jb?jb.prototype:void 0,Vb=Hb?Hb.valueOf:void 0;function Fn(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 oO(){this.__data__=ps?ps(null):{}}function sO(e){return this.has(e)&&delete this.__data__[e]}function aO(e){var t=this.__data__;if(ps){var r=t[e];return r===Wb?void 0:r}return Vr.call(t,e)?t[e]:void 0}function lO(e){var t=this.__data__;return ps?t[e]!==void 0:Vr.call(t,e)}function uO(e,t){var r=this.__data__;return r[e]=ps&&t===void 0?Wb:t,this}Fn.prototype.clear=oO;Fn.prototype.delete=sO;Fn.prototype.get=aO;Fn.prototype.has=lO;Fn.prototype.set=uO;function br(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 cO(){this.__data__=[]}function fO(e){var t=this.__data__,r=Tl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():ZP.call(t,r,1),!0}function pO(e){var t=this.__data__,r=Tl(t,e);return r<0?void 0:t[r][1]}function hO(e){return Tl(this.__data__,e)>-1}function mO(e,t){var r=this.__data__,n=Tl(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}br.prototype.clear=cO;br.prototype.delete=fO;br.prototype.get=pO;br.prototype.has=hO;br.prototype.set=mO;function Ui(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 dO(){this.__data__={hash:new Fn,map:new(fs||br),string:new Fn}}function gO(e){return El(this,e).delete(e)}function yO(e){return El(this,e).get(e)}function xO(e){return El(this,e).has(e)}function bO(e,t){return El(this,e).set(e,t),this}Ui.prototype.clear=dO;Ui.prototype.delete=gO;Ui.prototype.get=yO;Ui.prototype.has=xO;Ui.prototype.set=bO;function ji(e){this.__data__=new br(e)}function wO(){this.__data__=new br}function vO(e){return this.__data__.delete(e)}function SO(e){return this.__data__.get(e)}function kO(e){return this.__data__.has(e)}function AO(e,t){var r=this.__data__;if(r instanceof br){var n=r.__data__;if(!fs||n.length<IP-1)return n.push([e,t]),this;r=this.__data__=new Ui(n)}return r.set(e,t),this}ji.prototype.clear=wO;ji.prototype.delete=vO;ji.prototype.get=SO;ji.prototype.has=kO;ji.prototype.set=AO;function CO(e,t){var r=bp(e)||JO(e)?qP(e.length,String):[],n=r.length,i=!!n;for(var o in e)(t||Vr.call(e,o))&&!(i&&(o=="length"||VO(o,n)))&&r.push(o);return r}function d0(e,t,r){var n=e[t];(!(Vr.call(e,t)&&b0(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Tl(e,t){for(var r=e.length;r--;)if(b0(e[r][0],t))return r;return-1}function TO(e,t){return e&&g0(t,wp(t),e)}function hp(e,t,r,n,i,o,s){var a;if(n&&(a=o?n(e,i,o,s):n(e)),a!==void 0)return a;if(!_l(e))return e;var l=bp(e);if(l){if(a=zO(e),!t)return $O(e,a)}else{var u=Nn(e),c=u==dp||u==Qb;if(ZO(e))return DO(e,t);if(u==gp||u==mp||c&&!o){if(h0(e))return o?e:{};if(a=qO(c?{}:e),!t)return UO(e,TO(a,e))}else{if(!Ce[u])return o?e:{};a=HO(e,u,hp,t)}}s||(s=new ji);var f=s.get(e);if(f)return f;if(s.set(e,a),!l)var p=r?jO(e):wp(e);return jP(p||e,function(h,m){p&&(m=h,h=e[m]),d0(a,m,hp(h,t,r,n,m,e,s))}),a}function EO(e){return _l(e)?JP(e):{}}function _O(e,t,r){var n=t(e);return bp(e)?n:zP(n,r(e))}function IO(e){return Cl.call(e)}function PO(e){if(!_l(e)||YO(e))return!1;var t=v0(e)||h0(e)?YP:NP;return t.test(Rn(e))}function OO(e){if(!x0(e))return KP(e);var t=[];for(var r in Object(e))Vr.call(e,r)&&r!="constructor"&&t.push(r);return t}function DO(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function xp(e){var t=new e.constructor(e.byteLength);return new zb(t).set(new zb(e)),t}function MO(e,t){var r=t?xp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function NO(e,t,r){var n=t?r(Lb(e),!0):Lb(e);return p0(n,$P,new e.constructor)}function FO(e){var t=new e.constructor(e.source,MP.exec(e));return t.lastIndex=e.lastIndex,t}function RO(e,t,r){var n=t?r(Bb(e),!0):Bb(e);return p0(n,UP,new e.constructor)}function LO(e){return Vb?Object(Vb.call(e)):{}}function BO(e,t){var r=t?xp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function $O(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function g0(e,t,r,n){r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],a=n?n(r[s],e[s],s,r,e):void 0;d0(r,s,a===void 0?e[s]:a)}return r}function UO(e,t){return g0(e,y0(e),t)}function jO(e){return _O(e,wp,y0)}function El(e,t){var r=e.__data__;return WO(t)?r[typeof t=="string"?"string":"hash"]:r.map}function zi(e,t){var r=HP(e,t);return PO(r)?r:void 0}var y0=qb?yp(qb,Object):eD,Nn=IO;(up&&Nn(new up(new ArrayBuffer(1)))!=kl||fs&&Nn(new fs)!=vl||cp&&Nn(cp.resolve())!=Fb||fp&&Nn(new fp)!=Sl||pp&&Nn(new pp)!=lp)&&(Nn=function(e){var t=Cl.call(e),r=t==gp?e.constructor:void 0,n=r?Rn(r):void 0;if(n)switch(n){case eO:return kl;case tO:return vl;case rO:return Fb;case nO:return Sl;case iO:return lp}return t});function zO(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&Vr.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function qO(e){return typeof e.constructor=="function"&&!x0(e)?EO(GP(e)):{}}function HO(e,t,r,n){var i=e.constructor;switch(t){case t0:return xp(e);case Gb:case Jb:return new i(+e);case kl:return MO(e,n);case r0:case n0:case i0:case o0:case s0:case a0:case l0:case u0:case c0:return BO(e,n);case vl:return NO(e,n,r);case Zb:case Kb:return new i(e);case Xb:return FO(e);case Sl:return RO(e,n,r);case e0:return LO(e)}}function VO(e,t){return t=t??Yb,!!t&&(typeof e=="number"||FP.test(e))&&e>-1&&e%1==0&&e<t}function WO(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function YO(e){return!!$b&&$b in e}function x0(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Al;return e===r}function Rn(e){if(e!=null){try{return m0.call(e)}catch{}try{return e+""}catch{}}return""}function GO(e){return hp(e,!0,!0)}function b0(e,t){return e===t||e!==e&&t!==t}function JO(e){return QO(e)&&Vr.call(e,"callee")&&(!QP.call(e,"callee")||Cl.call(e)==mp)}var bp=Array.isArray;function w0(e){return e!=null&&XO(e.length)&&!v0(e)}function QO(e){return KO(e)&&w0(e)}var ZO=XP||tD;function v0(e){var t=_l(e)?Cl.call(e):"";return t==dp||t==Qb}function XO(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yb}function _l(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function KO(e){return!!e&&typeof e=="object"}function wp(e){return w0(e)?CO(e):OO(e)}function eD(){return[]}function tD(){return!1}$i.exports=GO});var A0=N((m9,k0)=>{"use strict";k0.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(o){return function(s){return function(a,l){var u={key:a,value:s[a]},c={key:l,value:s[l]};return o(u,c)}}}(t.cmp),i=[];return function o(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+=o(s[a])||"null";return l+"]"}if(s===null)return"null";if(i.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=i.push(s)-1,c=Object.keys(s).sort(n&&n(s));for(l="",a=0;a<c.length;a++){var f=c[a],p=o(s[f]);p&&(l&&(l+=","),l+=JSON.stringify(f)+":"+p)}return i.splice(u,1),"{"+l+"}"}}(e)}});var $n=N((DV,Bn)=>{"use strict";function cw(e){return typeof e>"u"||e===null}function CM(e){return typeof e=="object"&&e!==null}function TM(e){return Array.isArray(e)?e:cw(e)?[]:[e]}function EM(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}function _M(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function IM(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Bn.exports.isNothing=cw;Bn.exports.isObject=CM;Bn.exports.toArray=TM;Bn.exports.repeat=_M;Bn.exports.isNegativeZero=IM;Bn.exports.extend=EM});var Yi=N((MV,fw)=>{"use strict";function bs(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||""}bs.prototype=Object.create(Error.prototype);bs.prototype.constructor=bs;bs.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r};fw.exports=bs});var mw=N((NV,hw)=>{"use strict";var pw=$n();function Up(e,t,r,n,i){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=i}Up.prototype.getSnippet=function(t,r){var n,i,o,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
6
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&`\0\r
7
- \x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>r/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),pw.repeat(" ",t)+n+a+o+`
8
- `+pw.repeat(" ",t+this.position-i+n.length)+"^"};Up.prototype.toString=function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
9
- `+r)),n};hw.exports=Up});var Je=N((FV,gw)=>{"use strict";var dw=Yi(),PM=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],OM=["scalar","sequence","mapping"];function DM(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function MM(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(PM.indexOf(r)===-1)throw new dw('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=DM(t.styleAliases||null),OM.indexOf(this.kind)===-1)throw new dw('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}gw.exports=MM});var Un=N((RV,xw)=>{"use strict";var yw=$n(),Ll=Yi(),NM=Je();function jp(e,t,r){var n=[];return e.include.forEach(function(i){r=jp(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,s){o.tag===i.tag&&o.kind===i.kind&&n.push(s)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}function FM(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(i){e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Gi(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new Ll("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=jp(this,"implicit",[]),this.compiledExplicit=jp(this,"explicit",[]),this.compiledTypeMap=FM(this.compiledImplicit,this.compiledExplicit)}Gi.DEFAULT=null;Gi.create=function(){var t,r;switch(arguments.length){case 1:t=Gi.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new Ll("Wrong number of arguments for Schema.create function")}if(t=yw.toArray(t),r=yw.toArray(r),!t.every(function(n){return n instanceof Gi}))throw new Ll("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof NM}))throw new Ll("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new Gi({include:t,explicit:r})};xw.exports=Gi});var ww=N((LV,bw)=>{"use strict";var RM=Je();bw.exports=new RM("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Sw=N((BV,vw)=>{"use strict";var LM=Je();vw.exports=new LM("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Aw=N(($V,kw)=>{"use strict";var BM=Je();kw.exports=new BM("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Bl=N((UV,Cw)=>{"use strict";var $M=Un();Cw.exports=new $M({explicit:[ww(),Sw(),Aw()]})});var Ew=N((jV,Tw)=>{"use strict";var UM=Je();function jM(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function zM(){return null}function qM(e){return e===null}Tw.exports=new UM("tag:yaml.org,2002:null",{kind:"scalar",resolve:jM,construct:zM,predicate:qM,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var Iw=N((zV,_w)=>{"use strict";var HM=Je();function VM(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function WM(e){return e==="true"||e==="True"||e==="TRUE"}function YM(e){return Object.prototype.toString.call(e)==="[object Boolean]"}_w.exports=new HM("tag:yaml.org,2002:bool",{kind:"scalar",resolve:VM,construct:WM,predicate:YM,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var Ow=N((qV,Pw)=>{"use strict";var GM=$n(),JM=Je();function QM(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function ZM(e){return 48<=e&&e<=55}function XM(e){return 48<=e&&e<=57}function KM(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!QM(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}for(;r<t;r++)if(i=e[r],i!=="_"){if(!ZM(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!XM(e.charCodeAt(r)))return!1;n=!0}return!n||i==="_"?!1:i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}function eN(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),r*t):r*parseInt(t,10)}function tN(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!GM.isNegativeZero(e)}Pw.exports=new JM("tag:yaml.org,2002:int",{kind:"scalar",resolve:KM,construct:eN,predicate:tN,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var Nw=N((HV,Mw)=>{"use strict";var Dw=$n(),rN=Je(),nN=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 iN(e){return!(e===null||!nN.test(e)||e[e.length-1]==="_")}function oN(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}var sN=/^[-+]?[0-9]+e/;function aN(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Dw.isNegativeZero(e))return"-0.0";return r=e.toString(10),sN.test(r)?r.replace("e",".e"):r}function lN(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Dw.isNegativeZero(e))}Mw.exports=new rN("tag:yaml.org,2002:float",{kind:"scalar",resolve:iN,construct:oN,predicate:lN,represent:aN,defaultStyle:"lowercase"})});var zp=N((VV,Fw)=>{"use strict";var uN=Un();Fw.exports=new uN({include:[Bl()],implicit:[Ew(),Iw(),Ow(),Nw()]})});var qp=N((WV,Rw)=>{"use strict";var cN=Un();Rw.exports=new cN({include:[zp()]})});var Uw=N((YV,$w)=>{"use strict";var fN=Je(),Lw=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Bw=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 pN(e){return e===null?!1:Lw.exec(e)!==null||Bw.exec(e)!==null}function hN(e){var t,r,n,i,o,s,a,l=0,u=null,c,f,p;if(t=Lw.exec(e),t===null&&(t=Bw.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],f=+(t[11]||0),u=(c*60+f)*6e4,t[9]==="-"&&(u=-u)),p=new Date(Date.UTC(r,n,i,o,s,a,l)),u&&p.setTime(p.getTime()-u),p}function mN(e){return e.toISOString()}$w.exports=new fN("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:pN,construct:hN,instanceOf:Date,represent:mN})});var zw=N((GV,jw)=>{"use strict";var dN=Je();function gN(e){return e==="<<"||e===null}jw.exports=new dN("tag:yaml.org,2002:merge",{kind:"scalar",resolve:gN})});var Vw=N((JV,Hw)=>{"use strict";var jn;try{qw=fa,jn=qw("buffer").Buffer}catch{}var qw,yN=Je(),Hp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
10
- \r`;function xN(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=Hp;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function bN(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=Hp,s=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),jn?jn.from?jn.from(a):new jn(a):a}function wN(e){var t="",r=0,n,i,o=e.length,s=Hp;for(n=0;n<o;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function vN(e){return jn&&jn.isBuffer(e)}Hw.exports=new yN("tag:yaml.org,2002:binary",{kind:"scalar",resolve:xN,construct:bN,predicate:vN,represent:wN})});var Yw=N((ZV,Ww)=>{"use strict";var SN=Je(),kN=Object.prototype.hasOwnProperty,AN=Object.prototype.toString;function CN(e){if(e===null)return!0;var t=[],r,n,i,o,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],s=!1,AN.call(i)!=="[object Object]")return!1;for(o in i)if(kN.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function TN(e){return e!==null?e:[]}Ww.exports=new SN("tag:yaml.org,2002:omap",{kind:"sequence",resolve:CN,construct:TN})});var Jw=N((XV,Gw)=>{"use strict";var EN=Je(),_N=Object.prototype.toString;function IN(e){if(e===null)return!0;var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],_N.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}function PN(e){if(e===null)return[];var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}Gw.exports=new EN("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:IN,construct:PN})});var Zw=N((KV,Qw)=>{"use strict";var ON=Je(),DN=Object.prototype.hasOwnProperty;function MN(e){if(e===null)return!0;var t,r=e;for(t in r)if(DN.call(r,t)&&r[t]!==null)return!1;return!0}function NN(e){return e!==null?e:{}}Qw.exports=new ON("tag:yaml.org,2002:set",{kind:"mapping",resolve:MN,construct:NN})});var Ji=N((eW,Xw)=>{"use strict";var FN=Un();Xw.exports=new FN({include:[qp()],implicit:[Uw(),zw()],explicit:[Vw(),Yw(),Jw(),Zw()]})});var ev=N((tW,Kw)=>{"use strict";var RN=Je();function LN(){return!0}function BN(){}function $N(){return""}function UN(e){return typeof e>"u"}Kw.exports=new RN("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:LN,construct:BN,predicate:UN,represent:$N})});var rv=N((rW,tv)=>{"use strict";var jN=Je();function zN(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}function qN(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function HN(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function VN(e){return Object.prototype.toString.call(e)==="[object RegExp]"}tv.exports=new jN("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:zN,construct:qN,predicate:VN,represent:HN})});var ov=N((nW,iv)=>{"use strict";var $l;try{nv=fa,$l=nv("esprima")}catch{typeof window<"u"&&($l=window.esprima)}var nv,WN=Je();function YN(e){if(e===null)return!1;try{var t="("+e+")",r=$l.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function GN(e){var t="("+e+")",r=$l.parse(t,{range:!0}),n=[],i;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(o){n.push(o.name)}),i=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(i[0]+1,i[1]-1)):new Function(n,"return "+t.slice(i[0],i[1]))}function JN(e){return e.toString()}function QN(e){return Object.prototype.toString.call(e)==="[object Function]"}iv.exports=new WN("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:YN,construct:GN,predicate:QN,represent:JN})});var ws=N((oW,av)=>{"use strict";var sv=Un();av.exports=sv.DEFAULT=new sv({include:[Ji()],explicit:[ev(),rv(),ov()]})});var Tv=N((sW,vs)=>{"use strict";var Ar=$n(),mv=Yi(),ZN=mw(),dv=Ji(),XN=ws(),Gr=Object.prototype.hasOwnProperty,Ul=1,gv=2,yv=3,jl=4,Vp=1,KN=2,lv=3,eF=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tF=/[\x85\u2028\u2029]/,rF=/[,\[\]\{\}]/,xv=/^(?:!|!!|![a-z\-]+!)$/i,bv=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function uv(e){return Object.prototype.toString.call(e)}function Zt(e){return e===10||e===13}function qn(e){return e===9||e===32}function dt(e){return e===9||e===32||e===10||e===13}function Qi(e){return e===44||e===91||e===93||e===123||e===125}function nF(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function iF(e){return e===120?2:e===117?4:e===85?8:0}function oF(e){return 48<=e&&e<=57?e-48:-1}function cv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
11
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function sF(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var wv=new Array(256),vv=new Array(256);for(zn=0;zn<256;zn++)wv[zn]=cv(zn)?1:0,vv[zn]=cv(zn);var zn;function aF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||XN,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Sv(e,t){return new mv(t,new ZN(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function ee(e,t){throw Sv(e,t)}function zl(e,t){e.onWarning&&e.onWarning.call(null,Sv(e,t))}var fv={YAML:function(t,r,n){var i,o,s;t.version!==null&&ee(t,"duplication of %YAML directive"),n.length!==1&&ee(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ee(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&ee(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&zl(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,o;n.length!==2&&ee(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],xv.test(i)||ee(t,"ill-formed tag handle (first argument) of the TAG directive"),Gr.call(t.tagMap,i)&&ee(t,'there is a previously declared suffix for "'+i+'" tag handle'),bv.test(o)||ee(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function Yr(e,t,r,n){var i,o,s,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||ee(e,"expected valid JSON character");else eF.test(a)&&ee(e,"the stream contains non-printable characters");e.result+=a}}function pv(e,t,r,n){var i,o,s,a;for(Ar.isObject(r)||ee(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,a=i.length;s<a;s+=1)o=i[s],Gr.call(t,o)||(t[o]=r[o],n[o]=!0)}function Zi(e,t,r,n,i,o,s,a){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&ee(e,"nested arrays are not supported inside keys"),typeof i=="object"&&uv(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&uv(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(l=0,u=o.length;l<u;l+=1)pv(e,t,o[l],r);else pv(e,t,o,r);else!e.json&&!Gr.call(r,i)&&Gr.call(t,i)&&(e.line=s||e.line,e.position=a||e.position,ee(e,"duplicated mapping key")),t[i]=o,delete r[i];return t}function Wp(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ee(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function qe(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;qn(i);)i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Zt(i))for(Wp(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&zl(e,"deficient indentation"),n}function ql(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||dt(r)))}function Yp(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ar.repeat(`
12
- `,t-1))}function lF(e,t,r){var n,i,o,s,a,l,u,c,f=e.kind,p=e.result,h;if(h=e.input.charCodeAt(e.position),dt(h)||Qi(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),dt(i)||r&&Qi(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),dt(i)||r&&Qi(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),dt(n))break}else{if(e.position===e.lineStart&&ql(e)||r&&Qi(h))break;if(Zt(h))if(l=e.line,u=e.lineStart,c=e.lineIndent,qe(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=u,e.lineIndent=c;break}}a&&(Yr(e,o,s,!1),Yp(e,e.line-l),o=s=e.position,a=!1),qn(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position)}return Yr(e,o,s,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function uF(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Yr(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Zt(r)?(Yr(e,n,i,!0),Yp(e,qe(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ql(e)?ee(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ee(e,"unexpected end of the stream within a single quoted scalar")}function cF(e,t){var r,n,i,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Yr(e,r,e.position,!0),e.position++,!0;if(a===92){if(Yr(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Zt(a))qe(e,!1,t);else if(a<256&&wv[a])e.result+=vv[a],e.position++;else if((s=iF(a))>0){for(i=s,o=0;i>0;i--)a=e.input.charCodeAt(++e.position),(s=nF(a))>=0?o=(o<<4)+s:ee(e,"expected hexadecimal character");e.result+=sF(o),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else Zt(a)?(Yr(e,r,n,!0),Yp(e,qe(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ql(e)?ee(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ee(e,"unexpected end of the stream within a double quoted scalar")}function fF(e,t){var r=!0,n,i=e.tag,o,s=e.anchor,a,l,u,c,f,p={},h,m,x,v;if(v=e.input.charCodeAt(e.position),v===91)l=93,f=!1,o=[];else if(v===123)l=125,f=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),v=e.input.charCodeAt(++e.position);v!==0;){if(qe(e,!0,t),v=e.input.charCodeAt(e.position),v===l)return e.position++,e.tag=i,e.anchor=s,e.kind=f?"mapping":"sequence",e.result=o,!0;r||ee(e,"missed comma between flow collection entries"),m=h=x=null,u=c=!1,v===63&&(a=e.input.charCodeAt(e.position+1),dt(a)&&(u=c=!0,e.position++,qe(e,!0,t))),n=e.line,Xi(e,t,Ul,!1,!0),m=e.tag,h=e.result,qe(e,!0,t),v=e.input.charCodeAt(e.position),(c||e.line===n)&&v===58&&(u=!0,v=e.input.charCodeAt(++e.position),qe(e,!0,t),Xi(e,t,Ul,!1,!0),x=e.result),f?Zi(e,o,p,m,h,x):u?o.push(Zi(e,null,p,m,h,x)):o.push(h),qe(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(r=!0,v=e.input.charCodeAt(++e.position)):r=!1}ee(e,"unexpected end of the stream within a flow collection")}function pF(e,t){var r,n,i=Vp,o=!1,s=!1,a=t,l=0,u=!1,c,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)Vp===i?i=f===43?lv:KN:ee(e,"repeat of a chomping mode identifier");else if((c=oF(f))>=0)c===0?ee(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?ee(e,"repeat of an indentation width identifier"):(a=t+c-1,s=!0);else break;if(qn(f)){do f=e.input.charCodeAt(++e.position);while(qn(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Zt(f)&&f!==0)}for(;f!==0;){for(Wp(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),Zt(f)){l++;continue}if(e.lineIndent<a){i===lv?e.result+=Ar.repeat(`
13
- `,o?1+l:l):i===Vp&&o&&(e.result+=`
14
- `);break}for(n?qn(f)?(u=!0,e.result+=Ar.repeat(`
15
- `,o?1+l:l)):u?(u=!1,e.result+=Ar.repeat(`
16
- `,l+1)):l===0?o&&(e.result+=" "):e.result+=Ar.repeat(`
17
- `,l):e.result+=Ar.repeat(`
18
- `,o?1+l:l),o=!0,s=!0,l=0,r=e.position;!Zt(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Yr(e,r,e.position,!1)}return!0}function hv(e,t){var r,n=e.tag,i=e.anchor,o=[],s,a=!1,l;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),l=e.input.charCodeAt(e.position);l!==0&&!(l!==45||(s=e.input.charCodeAt(e.position+1),!dt(s)));){if(a=!0,e.position++,qe(e,!0,-1)&&e.lineIndent<=t){o.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,Xi(e,t,yv,!1,!0),o.push(e.result),qe(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)ee(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function hF(e,t,r){var n,i,o,s,a=e.tag,l=e.anchor,u={},c={},f=null,p=null,h=null,m=!1,x=!1,v;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),v=e.input.charCodeAt(e.position);v!==0;){if(n=e.input.charCodeAt(e.position+1),o=e.line,s=e.position,(v===63||v===58)&&dt(n))v===63?(m&&(Zi(e,u,c,f,p,null),f=p=h=null),x=!0,m=!0,i=!0):m?(m=!1,i=!0):ee(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,v=n;else if(Xi(e,r,gv,!1,!0))if(e.line===o){for(v=e.input.charCodeAt(e.position);qn(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),dt(v)||ee(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Zi(e,u,c,f,p,null),f=p=h=null),x=!0,m=!1,i=!1,f=e.tag,p=e.result;else if(x)ee(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=l,!0}else if(x)ee(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=l,!0;else break;if((e.line===o||e.lineIndent>t)&&(Xi(e,t,jl,!0,i)&&(m?p=e.result:h=e.result),m||(Zi(e,u,c,f,p,h,o,s),f=p=h=null),qe(e,!0,-1),v=e.input.charCodeAt(e.position)),e.lineIndent>t&&v!==0)ee(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Zi(e,u,c,f,p,null),x&&(e.tag=a,e.anchor=l,e.kind="mapping",e.result=u),x}function mF(e){var t,r=!1,n=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&ee(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):ee(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!dt(s);)s===33&&(n?ee(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),xv.test(i)||ee(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),rF.test(o)&&ee(e,"tag suffix cannot contain flow indicator characters")}return o&&!bv.test(o)&&ee(e,"tag name cannot contain such characters: "+o),r?e.tag=o:Gr.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:ee(e,'undeclared tag handle "'+i+'"'),!0}function dF(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ee(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!dt(r)&&!Qi(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function gF(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!dt(n)&&!Qi(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Gr.call(e.anchorMap,r)||ee(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],qe(e,!0,-1),!0}function Xi(e,t,r,n,i){var o,s,a,l=1,u=!1,c=!1,f,p,h,m,x;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=jl===r||yv===r,n&&qe(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;mF(e)||dF(e);)qe(e,!0,-1)?(u=!0,a=o,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=u||i),(l===1||jl===r)&&(Ul===r||gv===r?m=t:m=t+1,x=e.position-e.lineStart,l===1?a&&(hv(e,x)||hF(e,x,m))||fF(e,m)?c=!0:(s&&pF(e,m)||uF(e,m)||cF(e,m)?c=!0:gF(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):lF(e,m,Ul===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=a&&hv(e,x))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ee(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(h=e.implicitTypes[f],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else Gr.call(e.typeMap[e.kind||"fallback"],e.tag)?(h=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&h.kind!==e.kind&&ee(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ee(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):ee(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function yF(e){var t=e.position,r,n,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(qe(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!dt(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ee(e,"directive name must not be less than one character in length");s!==0;){for(;qn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Zt(s));break}if(Zt(s))break;for(r=e.position;s!==0&&!dt(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&Wp(e),Gr.call(fv,n)?fv[n](e,n,i):zl(e,'unknown document directive "'+n+'"')}if(qe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,qe(e,!0,-1)):o&&ee(e,"directives end mark is expected"),Xi(e,e.lineIndent-1,jl,!1,!0),qe(e,!0,-1),e.checkLineBreaks&&tF.test(e.input.slice(t,e.position))&&zl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ql(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,qe(e,!0,-1));return}if(e.position<e.length-1)ee(e,"end of the stream or a document separator is expected");else return}function kv(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
19
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new aF(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ee(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;)yF(r);return r.documents}function Av(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=kv(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}function Cv(e,t){var r=kv(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new mv("expected a single document in the stream, but found more")}}function xF(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),Av(e,t,Ar.extend({schema:dv},r))}function bF(e,t){return Cv(e,Ar.extend({schema:dv},t))}vs.exports.loadAll=Av;vs.exports.load=Cv;vs.exports.safeLoadAll=xF;vs.exports.safeLoad=bF});var Jv=N((aW,Zp)=>{"use strict";var ks=$n(),As=Yi(),wF=ws(),vF=Ji(),Nv=Object.prototype.toString,Fv=Object.prototype.hasOwnProperty,SF=9,Ss=10,kF=13,AF=32,CF=33,TF=34,Rv=35,EF=37,_F=38,IF=39,PF=42,Lv=44,OF=45,Bv=58,DF=61,MF=62,NF=63,FF=64,$v=91,Uv=93,RF=96,jv=123,LF=124,zv=125,ot={};ot[0]="\\0";ot[7]="\\a";ot[8]="\\b";ot[9]="\\t";ot[10]="\\n";ot[11]="\\v";ot[12]="\\f";ot[13]="\\r";ot[27]="\\e";ot[34]='\\"';ot[92]="\\\\";ot[133]="\\N";ot[160]="\\_";ot[8232]="\\L";ot[8233]="\\P";var BF=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function $F(e,t){var r,n,i,o,s,a,l;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)s=n[i],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&Fv.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[s]=a;return r}function Ev(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new As("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ks.repeat("0",n-t.length)+t}function UF(e){this.schema=e.schema||wF,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ks.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=$F(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function _v(e,t){for(var r=ks.repeat(" ",t),n=0,i=-1,o="",s,a=e.length;n<a;)i=e.indexOf(`
20
- `,n),i===-1?(s=e.slice(n),n=a):(s=e.slice(n,i+1),n=i+1),s.length&&s!==`
21
- `&&(o+=r),o+=s;return o}function Gp(e,t){return`
22
- `+ks.repeat(" ",e.indent*t)}function jF(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function Qp(e){return e===AF||e===SF}function Ki(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function zF(e){return Ki(e)&&!Qp(e)&&e!==65279&&e!==kF&&e!==Ss}function Iv(e,t){return Ki(e)&&e!==65279&&e!==Lv&&e!==$v&&e!==Uv&&e!==jv&&e!==zv&&e!==Bv&&(e!==Rv||t&&zF(t))}function qF(e){return Ki(e)&&e!==65279&&!Qp(e)&&e!==OF&&e!==NF&&e!==Bv&&e!==Lv&&e!==$v&&e!==Uv&&e!==jv&&e!==zv&&e!==Rv&&e!==_F&&e!==PF&&e!==CF&&e!==LF&&e!==DF&&e!==MF&&e!==IF&&e!==TF&&e!==EF&&e!==FF&&e!==RF}function qv(e){var t=/^\n* /;return t.test(e)}var Hv=1,Vv=2,Wv=3,Yv=4,Hl=5;function HF(e,t,r,n,i){var o,s,a,l=!1,u=!1,c=n!==-1,f=-1,p=qF(e.charCodeAt(0))&&!Qp(e.charCodeAt(e.length-1));if(t)for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),!Ki(s))return Hl;a=o>0?e.charCodeAt(o-1):null,p=p&&Iv(s,a)}else{for(o=0;o<e.length;o++){if(s=e.charCodeAt(o),s===Ss)l=!0,c&&(u=u||o-f-1>n&&e[f+1]!==" ",f=o);else if(!Ki(s))return Hl;a=o>0?e.charCodeAt(o-1):null,p=p&&Iv(s,a)}u=u||c&&o-f-1>n&&e[f+1]!==" "}return!l&&!u?p&&!i(e)?Hv:Vv:r>9&&qv(e)?Hl:u?Yv:Wv}function VF(e,t,r,n){e.dump=function(){if(t.length===0)return"''";if(!e.noCompatMode&&BF.indexOf(t)!==-1)return"'"+t+"'";var i=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=n||e.flowLevel>-1&&r>=e.flowLevel;function a(l){return jF(e,l)}switch(HF(t,s,e.indent,o,a)){case Hv:return t;case Vv:return"'"+t.replace(/'/g,"''")+"'";case Wv:return"|"+Pv(t,e.indent)+Ov(_v(t,i));case Yv:return">"+Pv(t,e.indent)+Ov(_v(WF(t,o),i));case Hl:return'"'+YF(t,o)+'"';default:throw new As("impossible error: invalid scalar style")}}()}function Pv(e,t){var r=qv(e)?String(t):"",n=e[e.length-1]===`
23
- `,i=n&&(e[e.length-2]===`
1
+ var ow=Object.create;var Vi=Object.defineProperty;var iw=Object.getOwnPropertyDescriptor;var wN=Object.getOwnPropertyNames;var vN=Object.getPrototypeOf,SN=Object.prototype.hasOwnProperty;var sw=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Gi=e=>{throw TypeError(e)};var aw=(e,t,r)=>t in e?Vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var tw=(e,t)=>Vi(e,"name",{value:t,configurable:!0}),lu=(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 q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),le=(e,t)=>{for(var r in t)Vi(e,r,{get:t[r],enumerable:!0})},kN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of wN(t))!SN.call(e,o)&&o!==r&&Vi(e,o,{get:()=>t[o],enumerable:!(n=iw(t,o))||n.enumerable});return e};var bt=(e,t,r)=>(r=e!=null?ow(vN(e)):{},kN(t||!e||!e.__esModule?Vi(r,"default",{value:e,enumerable:!0}):r,e));var lt=e=>[,,,ow(e?.[sw("metadata")]??null)],lw=["class","method","getter","setter","accessor","field","value","get","set"],wa=e=>e!==void 0&&typeof e!="function"?Gi("Function expected"):e,TN=(e,t,r,n,o)=>({kind:lw[e],name:t,metadata:n,addInitializer:i=>r._?Gi("Already initialized"):o.push(wa(i||null))}),EN=(e,t)=>aw(t,sw("metadata"),e[3]),P=(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},Q=(e,t,r,n,o,i)=>{var s,a,l,u,c,f=t&7,p=!!(t&8),m=!!(t&16),h=f>3?e.length+1:f?p?1:2:0,d=lw[f+5],g=f>3&&(e[h-1]=[]),y=e[h]||(e[h]=[]),S=f&&(!m&&!p&&(o=o.prototype),f<5&&(f>3||!m)&&iw(f<4?o:{get[r](){return rw(this,i)},set[r](z){return nw(this,i,z)}},r));f?m&&f<4&&tw(i,(f>2?"set ":f>1?"get ":"")+r):tw(o,r);for(var k=n.length-1;k>=0;k--)u=TN(f,r,l={},e[3],y),f&&(u.static=p,u.private=m,c=u.access={has:m?z=>CN(o,z):z=>r in z},f^3&&(c.get=m?z=>(f^1?rw:DN)(z,o,f^4?i:S.get):z=>z[r]),f>2&&(c.set=m?(z,R)=>nw(z,o,R,f^4?i:S.set):(z,R)=>z[r]=R)),a=(0,n[k])(f?f<4?m?i:S[d]:f>4?void 0:{get:S.get,set:S.set}:o,u),l._=1,f^4||a===void 0?wa(a)&&(f>4?g.unshift(a):f?m?i=a:S[d]=a:o=a):typeof a!="object"||a===null?Gi("Object expected"):(wa(s=a.get)&&(S.get=s),wa(s=a.set)&&(S.set=s),wa(s=a.init)&&g.unshift(s));return f||EN(e,o),S&&Vi(o,r,S),m?f^4?i:S:o},we=(e,t,r)=>aw(e,typeof t!="symbol"?t+"":t,r),sh=(e,t,r)=>t.has(e)||Gi("Cannot "+r),CN=(e,t)=>Object(t)!==t?Gi('Cannot use the "in" operator on this value'):e.has(t),rw=(e,t,r)=>(sh(e,t,"read from private field"),r?r.call(e):t.get(e)),ae=(e,t,r)=>t.has(e)?Gi("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),nw=(e,t,r,n)=>(sh(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),DN=(e,t,r)=>(sh(e,t,"access private method"),r);var bu=q(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0}),yu.uni=void 0;var HN=(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=HN});var ek=q((Xh,Zh)=>{(function(e,t){typeof Xh=="object"&&typeof Zh<"u"?Zh.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Xh,(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",m="Invalid Date",h=/^(\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 I=["th","st","nd","rd"],_=j%100;return"["+j+(I[(_-20)%10]||I[_]||I[0])+"]"}},y=function(j,I,_){var F=String(j);return!F||F.length>=I?j:""+Array(I+1-F.length).join(_)+j},S={s:y,z:function(j){var I=-j.utcOffset(),_=Math.abs(I),F=Math.floor(_/60),B=_%60;return(I<=0?"+":"-")+y(F,2,"0")+":"+y(B,2,"0")},m:function j(I,_){if(I.date()<_.date())return-j(_,I);var F=12*(_.year()-I.year())+(_.month()-I.month()),B=I.clone().add(F,u),V=_-B<0,K=I.clone().add(F+(V?-1:1),u);return+(-(F+(_-B)/(V?B-K:K-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",z={};z[k]=g;var R="$isDayjsObject",T=function(j){return j instanceof A||!(!j||!j[R])},$=function j(I,_,F){var B;if(!I)return k;if(typeof I=="string"){var V=I.toLowerCase();z[V]&&(B=V),_&&(z[V]=_,B=V);var K=I.split("-");if(!B&&K.length>1)return j(K[0])}else{var he=I.name;z[he]=I,B=he}return!F&&B&&(k=B),B||!F&&k},te=function(j,I){if(T(j))return j.clone();var _=typeof I=="object"?I:{};return _.date=j,_.args=arguments,new A(_)},Y=S;Y.l=$,Y.i=T,Y.w=function(j,I){return te(j,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var A=(function(){function j(_){this.$L=$(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[R]=!0}var I=j.prototype;return I.parse=function(_){this.$d=(function(F){var B=F.date,V=F.utc;if(B===null)return new Date(NaN);if(Y.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var K=B.match(h);if(K){var he=K[2]-1||0,b=(K[7]||"0").substring(0,3);return V?new Date(Date.UTC(K[1],he,K[3]||1,K[4]||0,K[5]||0,K[6]||0,b)):new Date(K[1],he,K[3]||1,K[4]||0,K[5]||0,K[6]||0,b)}}return new Date(B)})(_),this.init()},I.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},I.$utils=function(){return Y},I.isValid=function(){return this.$d.toString()!==m},I.isSame=function(_,F){var B=te(_);return this.startOf(F)<=B&&B<=this.endOf(F)},I.isAfter=function(_,F){return te(_)<this.startOf(F)},I.isBefore=function(_,F){return this.endOf(F)<te(_)},I.$g=function(_,F,B){return Y.u(_)?this[F]:this.set(B,_)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(_,F){var B=this,V=!!Y.u(F)||F,K=Y.p(_),he=function(E,w){var C=Y.w(B.$u?Date.UTC(B.$y,w,E):new Date(B.$y,w,E),B);return V?C:C.endOf(a)},b=function(E,w){return Y.w(B.toDate()[E].apply(B.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(w)),B)},Se=this.$W,De=this.$M,v=this.$D,qe="set"+(this.$u?"UTC":"");switch(K){case f:return V?he(1,0):he(31,11);case u:return V?he(1,De):he(0,De+1);case l:var at=this.$locale().weekStart||0,or=(Se<at?Se+7:Se)-at;return he(V?v-or:v+(6-or),De);case a:case p:return b(qe+"Hours",0);case s:return b(qe+"Minutes",1);case i:return b(qe+"Seconds",2);case o:return b(qe+"Milliseconds",3);default:return this.clone()}},I.endOf=function(_){return this.startOf(_,!1)},I.$set=function(_,F){var B,V=Y.p(_),K="set"+(this.$u?"UTC":""),he=(B={},B[a]=K+"Date",B[p]=K+"Date",B[u]=K+"Month",B[f]=K+"FullYear",B[s]=K+"Hours",B[i]=K+"Minutes",B[o]=K+"Seconds",B[n]=K+"Milliseconds",B)[V],b=V===a?this.$D+(F-this.$W):F;if(V===u||V===f){var Se=this.clone().set(p,1);Se.$d[he](b),Se.init(),this.$d=Se.set(p,Math.min(this.$D,Se.daysInMonth())).$d}else he&&this.$d[he](b);return this.init(),this},I.set=function(_,F){return this.clone().$set(_,F)},I.get=function(_){return this[Y.p(_)]()},I.add=function(_,F){var B,V=this;_=Number(_);var K=Y.p(F),he=function(De){var v=te(V);return Y.w(v.date(v.date()+Math.round(De*_)),V)};if(K===u)return this.set(u,this.$M+_);if(K===f)return this.set(f,this.$y+_);if(K===a)return he(1);if(K===l)return he(7);var b=(B={},B[i]=t,B[s]=r,B[o]=e,B)[K]||1,Se=this.$d.getTime()+_*b;return Y.w(Se,this)},I.subtract=function(_,F){return this.add(-1*_,F)},I.format=function(_){var F=this,B=this.$locale();if(!this.isValid())return B.invalidDate||m;var V=_||"YYYY-MM-DDTHH:mm:ssZ",K=Y.z(this),he=this.$H,b=this.$m,Se=this.$M,De=B.weekdays,v=B.months,qe=B.meridiem,at=function(w,C,D,N){return w&&(w[C]||w(F,V))||D[C].slice(0,N)},or=function(w){return Y.s(he%12||12,w,"0")},E=qe||function(w,C,D){var N=w<12?"AM":"PM";return D?N.toLowerCase():N};return V.replace(d,(function(w,C){return C||(function(D){switch(D){case"YY":return String(F.$y).slice(-2);case"YYYY":return Y.s(F.$y,4,"0");case"M":return Se+1;case"MM":return Y.s(Se+1,2,"0");case"MMM":return at(B.monthsShort,Se,v,3);case"MMMM":return at(v,Se);case"D":return F.$D;case"DD":return Y.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return at(B.weekdaysMin,F.$W,De,2);case"ddd":return at(B.weekdaysShort,F.$W,De,3);case"dddd":return De[F.$W];case"H":return String(he);case"HH":return Y.s(he,2,"0");case"h":return or(1);case"hh":return or(2);case"a":return E(he,b,!0);case"A":return E(he,b,!1);case"m":return String(b);case"mm":return Y.s(b,2,"0");case"s":return String(F.$s);case"ss":return Y.s(F.$s,2,"0");case"SSS":return Y.s(F.$ms,3,"0");case"Z":return K}return null})(w)||K.replace(":","")}))},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(_,F,B){var V,K=this,he=Y.p(F),b=te(_),Se=(b.utcOffset()-this.utcOffset())*t,De=this-b,v=function(){return Y.m(K,b)};switch(he){case f:V=v()/12;break;case u:V=v();break;case c:V=v()/3;break;case l:V=(De-Se)/6048e5;break;case a:V=(De-Se)/864e5;break;case s:V=De/r;break;case i:V=De/t;break;case o:V=De/e;break;default:V=De}return B?V:Y.a(V)},I.daysInMonth=function(){return this.endOf(u).$D},I.$locale=function(){return z[this.$L]},I.locale=function(_,F){if(!_)return this.$L;var B=this.clone(),V=$(_,F,!0);return V&&(B.$L=V),B},I.clone=function(){return Y.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})(),Pe=A.prototype;return te.prototype=Pe,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",u],["$y",f],["$D",p]].forEach((function(j){Pe[j[1]]=function(I){return this.$g(I,j[0],j[1])}})),te.extend=function(j,I){return j.$i||(j(I,A,te),j.$i=!0),te},te.locale=$,te.isDayjs=T,te.unix=function(j){return te(1e3*j)},te.en=z[k],te.Ls=z,te.p={},te}))});var tk=q((Kh,ed)=>{(function(e,t){typeof Kh=="object"&&typeof ed<"u"?ed.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isToday=t()})(Kh,(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 sk=q((KCe,ik)=>{"use strict";ik.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 lk=q((eDe,ak)=>{"use strict";ak.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var mk=q((tDe,pk)=>{"use strict";var uk=Symbol(),ck=Symbol(),so=Symbol(),fk=Symbol(),Nr=class{constructor(t,r,n,o){this[uk]=t,this[ck]=r,this[so]=n,this[fk]=o}next(){let t=this[uk],r=this[fk],n=this[ck];if(!this[so])return{done:!0,value:n};let o=this[so];return r===1?this[so]=t._node(o).previousSibling:r===2?this[so]=t._node(o).nextSibling:r===3?this[so]=t._node(o).parent:r===4?this[so]=t.preceding(o,{root:n}):this[so]=t.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(Nr.prototype,Symbol.iterator,{value:function(){return this},writable:!1}),Nr.PREV=1,Nr.NEXT=2,Nr.PARENT=3,Nr.PRECEDING=4,Nr.FOLLOWING=5,Object.freeze(Nr),Object.freeze(Nr.prototype),pk.exports=Nr});var cd=q((rDe,hk)=>{"use strict";var uR=sk(),ao=lk(),vr=mk();function ud(){return!0}function Ms(e,t){return e[e.length-1-t]}var Lf=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 uR)}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||ud,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||ud,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||ud,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 vr(this,t,n?o.lastChild:o.firstChild,n?vr.PREV:vr.NEXT)}previousSiblingsIterator(t){return new vr(this,t,this._node(t).previousSibling,vr.PREV)}nextSiblingsIterator(t){return new vr(this,t,this._node(t).nextSibling,vr.NEXT)}ancestorsIterator(t){return new vr(this,t,t,vr.PARENT)}treeIterator(t,r){let n=r&&r.reverse;return new vr(this,t,n?this.lastInclusiveDescendant(t):t,n?vr.PRECEDING:vr.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 ao.CONTAINS|ao.PRECEDING;n.push(c),c=this.parent(c)}}let o=[];{let c=r;for(;c;){if(c===t)return ao.CONTAINED_BY|ao.FOLLOWING;o.push(c),c=this.parent(c)}}let i=Ms(n,0);if(!i||i!==Ms(o,0))return ao.DISCONNECTED;let s=0,a=Math.min(n.length,o.length);for(let c=0;c<a;++c){let f=Ms(n,c),p=Ms(o,c);if(f!==p)break;s=c}let l=this.index(Ms(n,s+1));return this.index(Ms(o,s+1))<l?ao.PRECEDING:ao.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}};hk.exports=Lf,Lf.TreePosition=ao});var $d=q((al,Ls)=>{var KR=200,Ak="__lodash_hash_undefined__",Ik=9007199254740991,Ed="[object Arguments]",eB="[object Array]",Mk="[object Boolean]",_k="[object Date]",tB="[object Error]",Cd="[object Function]",Ok="[object GeneratorFunction]",Yf="[object Map]",Nk="[object Number]",Dd="[object Object]",Pk="[object Promise]",Fk="[object RegExp]",Vf="[object Set]",Lk="[object String]",Rk="[object Symbol]",Ad="[object WeakMap]",Bk="[object ArrayBuffer]",Gf="[object DataView]",$k="[object Float32Array]",zk="[object Float64Array]",Hk="[object Int8Array]",Uk="[object Int16Array]",jk="[object Int32Array]",Wk="[object Uint8Array]",qk="[object Uint8ClampedArray]",Yk="[object Uint16Array]",Vk="[object Uint32Array]",rB=/[\\^$.*+?()[\]{}|]/g,nB=/\w*$/,oB=/^\[object .+?Constructor\]$/,iB=/^(?:0|[1-9]\d*)$/,Ue={};Ue[Ed]=Ue[eB]=Ue[Bk]=Ue[Gf]=Ue[Mk]=Ue[_k]=Ue[$k]=Ue[zk]=Ue[Hk]=Ue[Uk]=Ue[jk]=Ue[Yf]=Ue[Nk]=Ue[Dd]=Ue[Fk]=Ue[Vf]=Ue[Lk]=Ue[Rk]=Ue[Wk]=Ue[qk]=Ue[Yk]=Ue[Vk]=!0,Ue[tB]=Ue[Cd]=Ue[Ad]=!1;var sB=typeof global=="object"&&global&&global.Object===Object&&global,aB=typeof self=="object"&&self&&self.Object===Object&&self,Cn=sB||aB||Function("return this")(),Gk=typeof al=="object"&&al&&!al.nodeType&&al,Qk=Gk&&typeof Ls=="object"&&Ls&&!Ls.nodeType&&Ls,lB=Qk&&Qk.exports===Gk;function uB(e,t){return e.set(t[0],t[1]),e}function cB(e,t){return e.add(t),e}function fB(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function pB(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Jk(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 mB(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function hB(e,t){return e?.[t]}function Xk(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Zk(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Id(e,t){return function(r){return e(t(r))}}function Kk(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var dB=Array.prototype,gB=Function.prototype,Qf=Object.prototype,Md=Cn["__core-js_shared__"],eT=(function(){var e=/[^.]+$/.exec(Md&&Md.keys&&Md.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),tT=gB.toString,fo=Qf.hasOwnProperty,Jf=Qf.toString,xB=RegExp("^"+tT.call(fo).replace(rB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rT=lB?Cn.Buffer:void 0,nT=Cn.Symbol,oT=Cn.Uint8Array,yB=Id(Object.getPrototypeOf,Object),bB=Object.create,wB=Qf.propertyIsEnumerable,vB=dB.splice,iT=Object.getOwnPropertySymbols,SB=rT?rT.isBuffer:void 0,kB=Id(Object.keys,Object),_d=Fs(Cn,"DataView"),il=Fs(Cn,"Map"),Od=Fs(Cn,"Promise"),Nd=Fs(Cn,"Set"),Pd=Fs(Cn,"WeakMap"),sl=Fs(Object,"create"),TB=li(_d),EB=li(il),CB=li(Od),DB=li(Nd),AB=li(Pd),sT=nT?nT.prototype:void 0,aT=sT?sT.valueOf:void 0;function si(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 IB(){this.__data__=sl?sl(null):{}}function MB(e){return this.has(e)&&delete this.__data__[e]}function _B(e){var t=this.__data__;if(sl){var r=t[e];return r===Ak?void 0:r}return fo.call(t,e)?t[e]:void 0}function OB(e){var t=this.__data__;return sl?t[e]!==void 0:fo.call(t,e)}function NB(e,t){var r=this.__data__;return r[e]=sl&&t===void 0?Ak:t,this}si.prototype.clear=IB,si.prototype.delete=MB,si.prototype.get=_B,si.prototype.has=OB,si.prototype.set=NB;function Dn(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 PB(){this.__data__=[]}function FB(e){var t=this.__data__,r=Xf(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():vB.call(t,r,1),!0}function LB(e){var t=this.__data__,r=Xf(t,e);return r<0?void 0:t[r][1]}function RB(e){return Xf(this.__data__,e)>-1}function BB(e,t){var r=this.__data__,n=Xf(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Dn.prototype.clear=PB,Dn.prototype.delete=FB,Dn.prototype.get=LB,Dn.prototype.has=RB,Dn.prototype.set=BB;function Ns(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 $B(){this.__data__={hash:new si,map:new(il||Dn),string:new si}}function zB(e){return Zf(this,e).delete(e)}function HB(e){return Zf(this,e).get(e)}function UB(e){return Zf(this,e).has(e)}function jB(e,t){return Zf(this,e).set(e,t),this}Ns.prototype.clear=$B,Ns.prototype.delete=zB,Ns.prototype.get=HB,Ns.prototype.has=UB,Ns.prototype.set=jB;function Ps(e){this.__data__=new Dn(e)}function WB(){this.__data__=new Dn}function qB(e){return this.__data__.delete(e)}function YB(e){return this.__data__.get(e)}function VB(e){return this.__data__.has(e)}function GB(e,t){var r=this.__data__;if(r instanceof Dn){var n=r.__data__;if(!il||n.length<KR-1)return n.push([e,t]),this;r=this.__data__=new Ns(n)}return r.set(e,t),this}Ps.prototype.clear=WB,Ps.prototype.delete=qB,Ps.prototype.get=YB,Ps.prototype.has=VB,Ps.prototype.set=GB;function QB(e,t){var r=Rd(e)||b$(e)?mB(e.length,String):[],n=r.length,o=!!n;for(var i in e)(t||fo.call(e,i))&&!(o&&(i=="length"||d$(i,n)))&&r.push(i);return r}function lT(e,t,r){var n=e[t];(!(fo.call(e,t)&&pT(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function Xf(e,t){for(var r=e.length;r--;)if(pT(e[r][0],t))return r;return-1}function JB(e,t){return e&&uT(t,Bd(t),e)}function Fd(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(!Kf(e))return e;var l=Rd(e);if(l){if(a=p$(e),!t)return u$(e,a)}else{var u=ai(e),c=u==Cd||u==Ok;if(v$(e))return r$(e,t);if(u==Dd||u==Ed||c&&!i){if(Xk(e))return i?e:{};if(a=m$(c?{}:e),!t)return c$(e,JB(a,e))}else{if(!Ue[u])return i?e:{};a=h$(e,u,Fd,t)}}s||(s=new Ps);var f=s.get(e);if(f)return f;if(s.set(e,a),!l)var p=r?f$(e):Bd(e);return fB(p||e,function(m,h){p&&(h=m,m=e[h]),lT(a,h,Fd(m,t,r,n,h,e,s))}),a}function XB(e){return Kf(e)?bB(e):{}}function ZB(e,t,r){var n=t(e);return Rd(e)?n:pB(n,r(e))}function KB(e){return Jf.call(e)}function e$(e){if(!Kf(e)||x$(e))return!1;var t=hT(e)||Xk(e)?xB:oB;return t.test(li(e))}function t$(e){if(!fT(e))return kB(e);var t=[];for(var r in Object(e))fo.call(e,r)&&r!="constructor"&&t.push(r);return t}function r$(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function Ld(e){var t=new e.constructor(e.byteLength);return new oT(t).set(new oT(e)),t}function n$(e,t){var r=t?Ld(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function o$(e,t,r){var n=t?r(Zk(e),!0):Zk(e);return Jk(n,uB,new e.constructor)}function i$(e){var t=new e.constructor(e.source,nB.exec(e));return t.lastIndex=e.lastIndex,t}function s$(e,t,r){var n=t?r(Kk(e),!0):Kk(e);return Jk(n,cB,new e.constructor)}function a$(e){return aT?Object(aT.call(e)):{}}function l$(e,t){var r=t?Ld(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function u$(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function uT(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;lT(r,s,a===void 0?e[s]:a)}return r}function c$(e,t){return uT(e,cT(e),t)}function f$(e){return ZB(e,Bd,cT)}function Zf(e,t){var r=e.__data__;return g$(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Fs(e,t){var r=hB(e,t);return e$(r)?r:void 0}var cT=iT?Id(iT,Object):T$,ai=KB;(_d&&ai(new _d(new ArrayBuffer(1)))!=Gf||il&&ai(new il)!=Yf||Od&&ai(Od.resolve())!=Pk||Nd&&ai(new Nd)!=Vf||Pd&&ai(new Pd)!=Ad)&&(ai=function(e){var t=Jf.call(e),r=t==Dd?e.constructor:void 0,n=r?li(r):void 0;if(n)switch(n){case TB:return Gf;case EB:return Yf;case CB:return Pk;case DB:return Vf;case AB:return Ad}return t});function p$(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&fo.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function m$(e){return typeof e.constructor=="function"&&!fT(e)?XB(yB(e)):{}}function h$(e,t,r,n){var o=e.constructor;switch(t){case Bk:return Ld(e);case Mk:case _k:return new o(+e);case Gf:return n$(e,n);case $k:case zk:case Hk:case Uk:case jk:case Wk:case qk:case Yk:case Vk:return l$(e,n);case Yf:return o$(e,n,r);case Nk:case Lk:return new o(e);case Fk:return i$(e);case Vf:return s$(e,n,r);case Rk:return a$(e)}}function d$(e,t){return t=t??Ik,!!t&&(typeof e=="number"||iB.test(e))&&e>-1&&e%1==0&&e<t}function g$(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function x$(e){return!!eT&&eT in e}function fT(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Qf;return e===r}function li(e){if(e!=null){try{return tT.call(e)}catch{}try{return e+""}catch{}}return""}function y$(e){return Fd(e,!0,!0)}function pT(e,t){return e===t||e!==e&&t!==t}function b$(e){return w$(e)&&fo.call(e,"callee")&&(!wB.call(e,"callee")||Jf.call(e)==Ed)}var Rd=Array.isArray;function mT(e){return e!=null&&S$(e.length)&&!hT(e)}function w$(e){return k$(e)&&mT(e)}var v$=SB||E$;function hT(e){var t=Kf(e)?Jf.call(e):"";return t==Cd||t==Ok}function S$(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ik}function Kf(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function k$(e){return!!e&&typeof e=="object"}function Bd(e){return mT(e)?QB(e):t$(e)}function T$(){return[]}function E$(){return!1}Ls.exports=y$});var zd=q((fAe,dT)=>{"use strict";dT.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 di=q((OIe,hi)=>{"use strict";function KT(e){return typeof e>"u"||e===null}function V3(e){return typeof e=="object"&&e!==null}function G3(e){return Array.isArray(e)?e:KT(e)?[]:[e]}function Q3(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 J3(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function X3(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}hi.exports.isNothing=KT,hi.exports.isObject=V3,hi.exports.toArray=G3,hi.exports.repeat=J3,hi.exports.isNegativeZero=X3,hi.exports.extend=Q3});var Bs=q((NIe,eE)=>{"use strict";function dl(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||""}dl.prototype=Object.create(Error.prototype),dl.prototype.constructor=dl,dl.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},eE.exports=dl});var nE=q((PIe,rE)=>{"use strict";var tE=di();function cg(e,t,r,n,o){this.name=e,this.buffer=t,this.position=r,this.line=n,this.column=o}cg.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
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(i="",s=this.position;s<this.buffer.length&&`\0\r
3
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>r/2-1){i=" ... ",s-=5;break}return a=this.buffer.slice(o,s),tE.repeat(" ",t)+n+a+i+`
4
+ `+tE.repeat(" ",t+this.position-o+n.length)+"^"},cg.prototype.toString=function(t){var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
5
+ `+r)),n},rE.exports=cg});var gt=q((FIe,iE)=>{"use strict";var oE=Bs(),Z3=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],K3=["scalar","sequence","mapping"];function e4(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function t4(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Z3.indexOf(r)===-1)throw new oE('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=e4(t.styleAliases||null),K3.indexOf(this.kind)===-1)throw new oE('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}iE.exports=t4});var gi=q((LIe,aE)=>{"use strict";var sE=di(),up=Bs(),r4=gt();function fg(e,t,r){var n=[];return e.include.forEach(function(o){r=fg(o,t,r)}),e[t].forEach(function(o){r.forEach(function(i,s){i.tag===o.tag&&i.kind===o.kind&&n.push(s)}),r.push(o)}),r.filter(function(o,i){return n.indexOf(i)===-1})}function n4(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},t,r;function n(o){e[o.kind][o.tag]=e.fallback[o.tag]=o}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function $s(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&t.loadKind!=="scalar")throw new up("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=fg(this,"implicit",[]),this.compiledExplicit=fg(this,"explicit",[]),this.compiledTypeMap=n4(this.compiledImplicit,this.compiledExplicit)}$s.DEFAULT=null,$s.create=function(){var t,r;switch(arguments.length){case 1:t=$s.DEFAULT,r=arguments[0];break;case 2:t=arguments[0],r=arguments[1];break;default:throw new up("Wrong number of arguments for Schema.create function")}if(t=sE.toArray(t),r=sE.toArray(r),!t.every(function(n){return n instanceof $s}))throw new up("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!r.every(function(n){return n instanceof r4}))throw new up("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new $s({include:t,explicit:r})},aE.exports=$s});var uE=q((RIe,lE)=>{"use strict";var o4=gt();lE.exports=new o4("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var fE=q((BIe,cE)=>{"use strict";var i4=gt();cE.exports=new i4("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var mE=q(($Ie,pE)=>{"use strict";var s4=gt();pE.exports=new s4("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var cp=q((zIe,hE)=>{"use strict";var a4=gi();hE.exports=new a4({explicit:[uE(),fE(),mE()]})});var gE=q((HIe,dE)=>{"use strict";var l4=gt();function u4(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function c4(){return null}function f4(e){return e===null}dE.exports=new l4("tag:yaml.org,2002:null",{kind:"scalar",resolve:u4,construct:c4,predicate:f4,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var yE=q((UIe,xE)=>{"use strict";var p4=gt();function m4(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function h4(e){return e==="true"||e==="True"||e==="TRUE"}function d4(e){return Object.prototype.toString.call(e)==="[object Boolean]"}xE.exports=new p4("tag:yaml.org,2002:bool",{kind:"scalar",resolve:m4,construct:h4,predicate:d4,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var wE=q((jIe,bE)=>{"use strict";var g4=di(),x4=gt();function y4(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function b4(e){return 48<=e&&e<=55}function w4(e){return 48<=e&&e<=57}function v4(e){if(e===null)return!1;var t=e.length,r=0,n=!1,o;if(!t)return!1;if(o=e[r],(o==="-"||o==="+")&&(o=e[++r]),o==="0"){if(r+1===t)return!0;if(o=e[++r],o==="b"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;n=!0}return n&&o!=="_"}if(o==="x"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(!y4(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}for(;r<t;r++)if(o=e[r],o!=="_"){if(!b4(e.charCodeAt(r)))return!1;n=!0}return n&&o!=="_"}if(o==="_")return!1;for(;r<t;r++)if(o=e[r],o!=="_"){if(o===":")break;if(!w4(e.charCodeAt(r)))return!1;n=!0}return!n||o==="_"?!1:o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r))}function S4(e){var t=e,r=1,n,o,i=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){i.unshift(parseInt(s,10))}),t=0,o=1,i.forEach(function(s){t+=s*o,o*=60}),r*t):r*parseInt(t,10)}function k4(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!g4.isNegativeZero(e)}bE.exports=new x4("tag:yaml.org,2002:int",{kind:"scalar",resolve:v4,construct:S4,predicate:k4,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var kE=q((WIe,SE)=>{"use strict";var vE=di(),T4=gt(),E4=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 C4(e){return!(e===null||!E4.test(e)||e[e.length-1]==="_")}function D4(e){var t,r,n,o;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,o=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(i){o.unshift(parseFloat(i,10))}),t=0,n=1,o.forEach(function(i){t+=i*n,n*=60}),r*t):r*parseFloat(t,10)}var A4=/^[-+]?[0-9]+e/;function I4(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(vE.isNegativeZero(e))return"-0.0";return r=e.toString(10),A4.test(r)?r.replace("e",".e"):r}function M4(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||vE.isNegativeZero(e))}SE.exports=new T4("tag:yaml.org,2002:float",{kind:"scalar",resolve:C4,construct:D4,predicate:M4,represent:I4,defaultStyle:"lowercase"})});var pg=q((qIe,TE)=>{"use strict";var _4=gi();TE.exports=new _4({include:[cp()],implicit:[gE(),yE(),wE(),kE()]})});var mg=q((YIe,EE)=>{"use strict";var O4=gi();EE.exports=new O4({include:[pg()]})});var IE=q((VIe,AE)=>{"use strict";var N4=gt(),CE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),DE=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 P4(e){return e===null?!1:CE.exec(e)!==null||DE.exec(e)!==null}function F4(e){var t,r,n,o,i,s,a,l=0,u=null,c,f,p;if(t=CE.exec(e),t===null&&(t=DE.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(i=+t[4],s=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],f=+(t[11]||0),u=(c*60+f)*6e4,t[9]==="-"&&(u=-u)),p=new Date(Date.UTC(r,n,o,i,s,a,l)),u&&p.setTime(p.getTime()-u),p}function L4(e){return e.toISOString()}AE.exports=new N4("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:P4,construct:F4,instanceOf:Date,represent:L4})});var _E=q((GIe,ME)=>{"use strict";var R4=gt();function B4(e){return e==="<<"||e===null}ME.exports=new R4("tag:yaml.org,2002:merge",{kind:"scalar",resolve:B4})});var PE=q((QIe,NE)=>{"use strict";var xi;try{OE=lu,xi=OE("buffer").Buffer}catch{}var $4=gt(),hg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
6
+ \r`;function z4(e){if(e===null)return!1;var t,r,n=0,o=e.length,i=hg;for(r=0;r<o;r++)if(t=i.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function H4(e){var t,r,n=e.replace(/[\r\n=]/g,""),o=n.length,i=hg,s=0,a=[];for(t=0;t<o;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|i.indexOf(n.charAt(t));return r=o%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),xi?xi.from?xi.from(a):new xi(a):a}function U4(e){var t="",r=0,n,o,i=e.length,s=hg;for(n=0;n<i;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return o=i%3,o===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):o===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):o===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function j4(e){return xi&&xi.isBuffer(e)}NE.exports=new $4("tag:yaml.org,2002:binary",{kind:"scalar",resolve:z4,construct:H4,predicate:j4,represent:U4});var OE});var LE=q((XIe,FE)=>{"use strict";var W4=gt(),q4=Object.prototype.hasOwnProperty,Y4=Object.prototype.toString;function V4(e){if(e===null)return!0;var t=[],r,n,o,i,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(o=a[r],s=!1,Y4.call(o)!=="[object Object]")return!1;for(i in o)if(q4.call(o,i))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}function G4(e){return e!==null?e:[]}FE.exports=new W4("tag:yaml.org,2002:omap",{kind:"sequence",resolve:V4,construct:G4})});var BE=q((ZIe,RE)=>{"use strict";var Q4=gt(),J4=Object.prototype.toString;function X4(e){if(e===null)return!0;var t,r,n,o,i,s=e;for(i=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],J4.call(n)!=="[object Object]"||(o=Object.keys(n),o.length!==1))return!1;i[t]=[o[0],n[o[0]]]}return!0}function Z4(e){if(e===null)return[];var t,r,n,o,i,s=e;for(i=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],o=Object.keys(n),i[t]=[o[0],n[o[0]]];return i}RE.exports=new Q4("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:X4,construct:Z4})});var zE=q((KIe,$E)=>{"use strict";var K4=gt(),ez=Object.prototype.hasOwnProperty;function tz(e){if(e===null)return!0;var t,r=e;for(t in r)if(ez.call(r,t)&&r[t]!==null)return!1;return!0}function rz(e){return e!==null?e:{}}$E.exports=new K4("tag:yaml.org,2002:set",{kind:"mapping",resolve:tz,construct:rz})});var zs=q((eMe,HE)=>{"use strict";var nz=gi();HE.exports=new nz({include:[mg()],implicit:[IE(),_E()],explicit:[PE(),LE(),BE(),zE()]})});var jE=q((tMe,UE)=>{"use strict";var oz=gt();function iz(){return!0}function sz(){}function az(){return""}function lz(e){return typeof e>"u"}UE.exports=new oz("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:iz,construct:sz,predicate:lz,represent:az})});var qE=q((rMe,WE)=>{"use strict";var uz=gt();function cz(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";return!(t[0]==="/"&&(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/"))}function fz(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function pz(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function mz(e){return Object.prototype.toString.call(e)==="[object RegExp]"}WE.exports=new uz("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:cz,construct:fz,predicate:mz,represent:pz})});var GE=q((nMe,VE)=>{"use strict";var fp;try{YE=lu,fp=YE("esprima")}catch{typeof window<"u"&&(fp=window.esprima)}var hz=gt();function dz(e){if(e===null)return!1;try{var t="("+e+")",r=fp.parse(t,{range:!0});return!(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function gz(e){var t="("+e+")",r=fp.parse(t,{range:!0}),n=[],o;if(r.type!=="Program"||r.body.length!==1||r.body[0].type!=="ExpressionStatement"||r.body[0].expression.type!=="ArrowFunctionExpression"&&r.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(i){n.push(i.name)}),o=r.body[0].expression.body.range,r.body[0].expression.body.type==="BlockStatement"?new Function(n,t.slice(o[0]+1,o[1]-1)):new Function(n,"return "+t.slice(o[0],o[1]))}function xz(e){return e.toString()}function yz(e){return Object.prototype.toString.call(e)==="[object Function]"}VE.exports=new hz("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:dz,construct:gz,predicate:yz,represent:xz});var YE});var gl=q((iMe,JE)=>{"use strict";var QE=gi();JE.exports=QE.DEFAULT=new QE({include:[zs()],explicit:[jE(),qE(),GE()]})});var gC=q((sMe,xl)=>{"use strict";var Mn=di(),XE=Bs(),bz=nE(),ZE=zs(),wz=gl(),mo=Object.prototype.hasOwnProperty,pp=1,KE=2,eC=3,mp=4,dg=1,vz=2,tC=3,Sz=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,kz=/[\x85\u2028\u2029]/,Tz=/[,\[\]\{\}]/,rC=/^(?:!|!!|![a-z\-]+!)$/i,nC=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function oC(e){return Object.prototype.toString.call(e)}function cn(e){return e===10||e===13}function yi(e){return e===9||e===32}function rr(e){return e===9||e===32||e===10||e===13}function Hs(e){return e===44||e===91||e===93||e===123||e===125}function Ez(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Cz(e){return e===120?2:e===117?4:e===85?8:0}function Dz(e){return 48<=e&&e<=57?e-48:-1}function iC(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
7
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Az(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function sC(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}var aC=new Array(256),lC=new Array(256);for(bi=0;bi<256;bi++)aC[bi]=iC(bi)?1:0,lC[bi]=iC(bi);function Iz(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||wz,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function uC(e,t){return new XE(t,new bz(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function ce(e,t){throw uC(e,t)}function hp(e,t){e.onWarning&&e.onWarning.call(null,uC(e,t))}var cC={YAML:function(t,r,n){var o,i,s;t.version!==null&&ce(t,"duplication of %YAML directive"),n.length!==1&&ce(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&ce(t,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),s=parseInt(o[2],10),i!==1&&ce(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&hp(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var o,i;n.length!==2&&ce(t,"TAG directive accepts exactly two arguments"),o=n[0],i=n[1],rC.test(o)||ce(t,"ill-formed tag handle (first argument) of the TAG directive"),mo.call(t.tagMap,o)&&ce(t,'there is a previously declared suffix for "'+o+'" tag handle'),nC.test(i)||ce(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=i}};function ho(e,t,r,n){var o,i,s,a;if(t<r){if(a=e.input.slice(t,r),n)for(o=0,i=a.length;o<i;o+=1)s=a.charCodeAt(o),s===9||32<=s&&s<=1114111||ce(e,"expected valid JSON character");else Sz.test(a)&&ce(e,"the stream contains non-printable characters");e.result+=a}}function fC(e,t,r,n){var o,i,s,a;for(Mn.isObject(r)||ce(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(r),s=0,a=o.length;s<a;s+=1)i=o[s],mo.call(t,i)||(sC(t,i,r[i]),n[i]=!0)}function Us(e,t,r,n,o,i,s,a){var l,u;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),l=0,u=o.length;l<u;l+=1)Array.isArray(o[l])&&ce(e,"nested arrays are not supported inside keys"),typeof o=="object"&&oC(o[l])==="[object Object]"&&(o[l]="[object Object]");if(typeof o=="object"&&oC(o)==="[object Object]"&&(o="[object Object]"),o=String(o),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)fC(e,t,i[l],r);else fC(e,t,i,r);else!e.json&&!mo.call(r,o)&&mo.call(t,o)&&(e.line=s||e.line,e.position=a||e.position,ce(e,"duplicated mapping key")),sC(t,o,i),delete r[o];return t}function gg(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ce(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function ft(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;yi(o);)o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(cn(o))for(gg(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&hp(e,"deficient indentation"),n}function dp(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||rr(r)))}function xg(e,t){t===1?e.result+=" ":t>1&&(e.result+=Mn.repeat(`
8
+ `,t-1))}function Mz(e,t,r){var n,o,i,s,a,l,u,c,f=e.kind,p=e.result,m;if(m=e.input.charCodeAt(e.position),rr(m)||Hs(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(o=e.input.charCodeAt(e.position+1),rr(o)||r&&Hs(o)))return!1;for(e.kind="scalar",e.result="",i=s=e.position,a=!1;m!==0;){if(m===58){if(o=e.input.charCodeAt(e.position+1),rr(o)||r&&Hs(o))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),rr(n))break}else{if(e.position===e.lineStart&&dp(e)||r&&Hs(m))break;if(cn(m))if(l=e.line,u=e.lineStart,c=e.lineIndent,ft(e,!1,-1),e.lineIndent>=t){a=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=u,e.lineIndent=c;break}}a&&(ho(e,i,s,!1),xg(e,e.line-l),i=s=e.position,a=!1),yi(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return ho(e,i,s,!1),e.result?!0:(e.kind=f,e.result=p,!1)}function _z(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(ho(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,o=e.position;else return!0;else cn(r)?(ho(e,n,o,!0),xg(e,ft(e,!1,t)),n=o=e.position):e.position===e.lineStart&&dp(e)?ce(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);ce(e,"unexpected end of the stream within a single quoted scalar")}function Oz(e,t){var r,n,o,i,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return ho(e,r,e.position,!0),e.position++,!0;if(a===92){if(ho(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),cn(a))ft(e,!1,t);else if(a<256&&aC[a])e.result+=lC[a],e.position++;else if((s=Cz(a))>0){for(o=s,i=0;o>0;o--)a=e.input.charCodeAt(++e.position),(s=Ez(a))>=0?i=(i<<4)+s:ce(e,"expected hexadecimal character");e.result+=Az(i),e.position++}else ce(e,"unknown escape sequence");r=n=e.position}else cn(a)?(ho(e,r,n,!0),xg(e,ft(e,!1,t)),r=n=e.position):e.position===e.lineStart&&dp(e)?ce(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ce(e,"unexpected end of the stream within a double quoted scalar")}function Nz(e,t){var r=!0,n,o=e.tag,i,s=e.anchor,a,l,u,c,f,p={},m,h,d,g;if(g=e.input.charCodeAt(e.position),g===91)l=93,f=!1,i=[];else if(g===123)l=125,f=!0,i={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=i),g=e.input.charCodeAt(++e.position);g!==0;){if(ft(e,!0,t),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=o,e.anchor=s,e.kind=f?"mapping":"sequence",e.result=i,!0;r||ce(e,"missed comma between flow collection entries"),h=m=d=null,u=c=!1,g===63&&(a=e.input.charCodeAt(e.position+1),rr(a)&&(u=c=!0,e.position++,ft(e,!0,t))),n=e.line,js(e,t,pp,!1,!0),h=e.tag,m=e.result,ft(e,!0,t),g=e.input.charCodeAt(e.position),(c||e.line===n)&&g===58&&(u=!0,g=e.input.charCodeAt(++e.position),ft(e,!0,t),js(e,t,pp,!1,!0),d=e.result),f?Us(e,i,p,h,m,d):u?i.push(Us(e,null,p,h,m,d)):i.push(m),ft(e,!0,t),g=e.input.charCodeAt(e.position),g===44?(r=!0,g=e.input.charCodeAt(++e.position)):r=!1}ce(e,"unexpected end of the stream within a flow collection")}function Pz(e,t){var r,n,o=dg,i=!1,s=!1,a=t,l=0,u=!1,c,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)dg===o?o=f===43?tC:vz:ce(e,"repeat of a chomping mode identifier");else if((c=Dz(f))>=0)c===0?ce(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?ce(e,"repeat of an indentation width identifier"):(a=t+c-1,s=!0);else break;if(yi(f)){do f=e.input.charCodeAt(++e.position);while(yi(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!cn(f)&&f!==0)}for(;f!==0;){for(gg(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),cn(f)){l++;continue}if(e.lineIndent<a){o===tC?e.result+=Mn.repeat(`
9
+ `,i?1+l:l):o===dg&&i&&(e.result+=`
10
+ `);break}for(n?yi(f)?(u=!0,e.result+=Mn.repeat(`
11
+ `,i?1+l:l)):u?(u=!1,e.result+=Mn.repeat(`
12
+ `,l+1)):l===0?i&&(e.result+=" "):e.result+=Mn.repeat(`
13
+ `,l):e.result+=Mn.repeat(`
14
+ `,i?1+l:l),i=!0,s=!0,l=0,r=e.position;!cn(f)&&f!==0;)f=e.input.charCodeAt(++e.position);ho(e,r,e.position,!1)}return!0}function pC(e,t){var r,n=e.tag,o=e.anchor,i=[],s,a=!1,l;for(e.anchor!==null&&(e.anchorMap[e.anchor]=i),l=e.input.charCodeAt(e.position);l!==0&&!(l!==45||(s=e.input.charCodeAt(e.position+1),!rr(s)));){if(a=!0,e.position++,ft(e,!0,-1)&&e.lineIndent<=t){i.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,js(e,t,eC,!1,!0),i.push(e.result),ft(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)ce(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=o,e.kind="sequence",e.result=i,!0):!1}function Fz(e,t,r){var n,o,i,s,a=e.tag,l=e.anchor,u={},c={},f=null,p=null,m=null,h=!1,d=!1,g;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),g=e.input.charCodeAt(e.position);g!==0;){if(n=e.input.charCodeAt(e.position+1),i=e.line,s=e.position,(g===63||g===58)&&rr(n))g===63?(h&&(Us(e,u,c,f,p,null),f=p=m=null),d=!0,h=!0,o=!0):h?(h=!1,o=!0):ce(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else if(js(e,r,KE,!1,!0))if(e.line===i){for(g=e.input.charCodeAt(e.position);yi(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),rr(g)||ce(e,"a whitespace character is expected after the key-value separator within a block mapping"),h&&(Us(e,u,c,f,p,null),f=p=m=null),d=!0,h=!1,o=!1,f=e.tag,p=e.result;else if(d)ce(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=a,e.anchor=l,!0}else if(d)ce(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=a,e.anchor=l,!0;else break;if((e.line===i||e.lineIndent>t)&&(js(e,t,mp,!0,o)&&(h?p=e.result:m=e.result),h||(Us(e,u,c,f,p,m,i,s),f=p=m=null),ft(e,!0,-1),g=e.input.charCodeAt(e.position)),e.lineIndent>t&&g!==0)ce(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return h&&Us(e,u,c,f,p,null),d&&(e.tag=a,e.anchor=l,e.kind="mapping",e.result=u),d}function Lz(e){var t,r=!1,n=!1,o,i,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&ce(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,o="!!",s=e.input.charCodeAt(++e.position)):o="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(i=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):ce(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!rr(s);)s===33&&(n?ce(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),rC.test(o)||ce(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),Tz.test(i)&&ce(e,"tag suffix cannot contain flow indicator characters")}return i&&!nC.test(i)&&ce(e,"tag name cannot contain such characters: "+i),r?e.tag=i:mo.call(e.tagMap,o)?e.tag=e.tagMap[o]+i:o==="!"?e.tag="!"+i:o==="!!"?e.tag="tag:yaml.org,2002:"+i:ce(e,'undeclared tag handle "'+o+'"'),!0}function Rz(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ce(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!rr(r)&&!Hs(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ce(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Bz(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!rr(n)&&!Hs(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ce(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),mo.call(e.anchorMap,r)||ce(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ft(e,!0,-1),!0}function js(e,t,r,n,o){var i,s,a,l=1,u=!1,c=!1,f,p,m,h,d;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=s=a=mp===r||eC===r,n&&ft(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;Lz(e)||Rz(e);)ft(e,!0,-1)?(u=!0,a=i,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=u||o),(l===1||mp===r)&&(pp===r||KE===r?h=t:h=t+1,d=e.position-e.lineStart,l===1?a&&(pC(e,d)||Fz(e,d,h))||Nz(e,h)?c=!0:(s&&Pz(e,h)||_z(e,h)||Oz(e,h)?c=!0:Bz(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&ce(e,"alias node should not have any properties")):Mz(e,h,pp===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=a&&pC(e,d))),e.tag!==null&&e.tag!=="!")if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ce(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,p=e.implicitTypes.length;f<p;f+=1)if(m=e.implicitTypes[f],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else mo.call(e.typeMap[e.kind||"fallback"],e.tag)?(m=e.typeMap[e.kind||"fallback"][e.tag],e.result!==null&&m.kind!==e.kind&&ce(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ce(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):ce(e,"unknown tag !<"+e.tag+">");return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}function $z(e){var t=e.position,r,n,o,i=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(ft(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(i=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!rr(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&ce(e,"directive name must not be less than one character in length");s!==0;){for(;yi(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!cn(s));break}if(cn(s))break;for(r=e.position;s!==0&&!rr(s);)s=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}s!==0&&gg(e),mo.call(cC,n)?cC[n](e,n,o):hp(e,'unknown document directive "'+n+'"')}if(ft(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ft(e,!0,-1)):i&&ce(e,"directives end mark is expected"),js(e,e.lineIndent-1,mp,!1,!0),ft(e,!0,-1),e.checkLineBreaks&&kz.test(e.input.slice(t,e.position))&&hp(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&dp(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ft(e,!0,-1));return}if(e.position<e.length-1)ce(e,"end of the stream or a document separator is expected");else return}function mC(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
15
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Iz(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ce(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;)$z(r);return r.documents}function hC(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=mC(e,r);if(typeof t!="function")return n;for(var o=0,i=n.length;o<i;o+=1)t(n[o])}function dC(e,t){var r=mC(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new XE("expected a single document in the stream, but found more")}}function zz(e,t,r){return typeof t=="object"&&t!==null&&typeof r>"u"&&(r=t,t=null),hC(e,t,Mn.extend({schema:ZE},r))}function Hz(e,t){return dC(e,Mn.extend({schema:ZE},t))}xl.exports.loadAll=hC,xl.exports.load=dC,xl.exports.safeLoadAll=zz,xl.exports.safeLoad=Hz;var bi});var $C=q((aMe,vg)=>{"use strict";var yl=di(),bl=Bs(),Uz=gl(),jz=zs(),xC=Object.prototype.toString,yC=Object.prototype.hasOwnProperty,Wz=9,wl=10,qz=13,Yz=32,Vz=33,Gz=34,bC=35,Qz=37,Jz=38,Xz=39,Zz=42,wC=44,Kz=45,vC=58,eH=61,tH=62,rH=63,nH=64,SC=91,kC=93,oH=96,TC=123,iH=124,EC=125,Lt={};Lt[0]="\\0",Lt[7]="\\a",Lt[8]="\\b",Lt[9]="\\t",Lt[10]="\\n",Lt[11]="\\v",Lt[12]="\\f",Lt[13]="\\r",Lt[27]="\\e",Lt[34]='\\"',Lt[92]="\\\\",Lt[133]="\\N",Lt[160]="\\_",Lt[8232]="\\L",Lt[8233]="\\P";var sH=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function aH(e,t){var r,n,o,i,s,a,l;if(t===null)return{};for(r={},n=Object.keys(t),o=0,i=n.length;o<i;o+=1)s=n[o],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&yC.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[s]=a;return r}function CC(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new bl("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+yl.repeat("0",n-t.length)+t}function lH(e){this.schema=e.schema||Uz,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=yl.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=aH(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function DC(e,t){for(var r=yl.repeat(" ",t),n=0,o=-1,i="",s,a=e.length;n<a;)o=e.indexOf(`
16
+ `,n),o===-1?(s=e.slice(n),n=a):(s=e.slice(n,o+1),n=o+1),s.length&&s!==`
17
+ `&&(i+=r),i+=s;return i}function yg(e,t){return`
18
+ `+yl.repeat(" ",e.indent*t)}function uH(e,t){var r,n,o;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(o=e.implicitTypes[r],o.resolve(t))return!0;return!1}function bg(e){return e===Yz||e===Wz}function Ws(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==65279||65536<=e&&e<=1114111}function cH(e){return Ws(e)&&!bg(e)&&e!==65279&&e!==qz&&e!==wl}function AC(e,t){return Ws(e)&&e!==65279&&e!==wC&&e!==SC&&e!==kC&&e!==TC&&e!==EC&&e!==vC&&(e!==bC||t&&cH(t))}function fH(e){return Ws(e)&&e!==65279&&!bg(e)&&e!==Kz&&e!==rH&&e!==vC&&e!==wC&&e!==SC&&e!==kC&&e!==TC&&e!==EC&&e!==bC&&e!==Jz&&e!==Zz&&e!==Vz&&e!==iH&&e!==eH&&e!==tH&&e!==Xz&&e!==Gz&&e!==Qz&&e!==nH&&e!==oH}function IC(e){var t=/^\n* /;return t.test(e)}var MC=1,_C=2,OC=3,NC=4,gp=5;function pH(e,t,r,n,o){var i,s,a,l=!1,u=!1,c=n!==-1,f=-1,p=fH(e.charCodeAt(0))&&!bg(e.charCodeAt(e.length-1));if(t)for(i=0;i<e.length;i++){if(s=e.charCodeAt(i),!Ws(s))return gp;a=i>0?e.charCodeAt(i-1):null,p=p&&AC(s,a)}else{for(i=0;i<e.length;i++){if(s=e.charCodeAt(i),s===wl)l=!0,c&&(u=u||i-f-1>n&&e[f+1]!==" ",f=i);else if(!Ws(s))return gp;a=i>0?e.charCodeAt(i-1):null,p=p&&AC(s,a)}u=u||c&&i-f-1>n&&e[f+1]!==" "}return!l&&!u?p&&!o(e)?MC:_C:r>9&&IC(e)?gp:u?NC:OC}function mH(e,t,r,n){e.dump=(function(){if(t.length===0)return"''";if(!e.noCompatMode&&sH.indexOf(t)!==-1)return"'"+t+"'";var o=e.indent*Math.max(1,r),i=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=n||e.flowLevel>-1&&r>=e.flowLevel;function a(l){return uH(e,l)}switch(pH(t,s,e.indent,i,a)){case MC:return t;case _C:return"'"+t.replace(/'/g,"''")+"'";case OC:return"|"+PC(t,e.indent)+FC(DC(t,o));case NC:return">"+PC(t,e.indent)+FC(DC(hH(t,i),o));case gp:return'"'+dH(t,i)+'"';default:throw new bl("impossible error: invalid scalar style")}})()}function PC(e,t){var r=IC(e)?String(t):"",n=e[e.length-1]===`
19
+ `,o=n&&(e[e.length-2]===`
24
20
  `||e===`
25
- `),o=i?"+":n?"":"-";return r+o+`
26
- `}function Ov(e){return e[e.length-1]===`
27
- `?e.slice(0,-1):e}function WF(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
28
- `);return u=u!==-1?u:e.length,r.lastIndex=u,Dv(e.slice(0,u),t)}(),i=e[0]===`
29
- `||e[0]===" ",o,s;s=r.exec(e);){var a=s[1],l=s[2];o=l[0]===" ",n+=a+(!i&&!o&&l!==""?`
30
- `:"")+Dv(l,t),i=o}return n}function Dv(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,s=0,a=0,l="";n=r.exec(e);)a=n.index,a-i>t&&(o=s>i?s:a,l+=`
31
- `+e.slice(i,o),i=o+1),s=a;return l+=`
32
- `,e.length-i>t&&s>i?l+=e.slice(i,s)+`
33
- `+e.slice(s+1):l+=e.slice(i),l.slice(1)}function YF(e){for(var t="",r,n,i,o=0;o<e.length;o++){if(r=e.charCodeAt(o),r>=55296&&r<=56319&&(n=e.charCodeAt(o+1),n>=56320&&n<=57343)){t+=Ev((r-55296)*1024+n-56320+65536),o++;continue}i=ot[r],t+=!i&&Ki(r)?e[o]:i||Ev(r)}return t}function GF(e,t,r){var n="",i=e.tag,o,s;for(o=0,s=r.length;o<s;o+=1)Hn(e,t,r[o],!1,!1)&&(o!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function JF(e,t,r,n){var i="",o=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Hn(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(i+=Gp(e,t)),e.dump&&Ss===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function QF(e,t,r){var n="",i=e.tag,o=Object.keys(r),s,a,l,u,c;for(s=0,a=o.length;s<a;s+=1)c="",s!==0&&(c+=", "),e.condenseFlow&&(c+='"'),l=o[s],u=r[l],Hn(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Hn(e,t,u,!1,!1)&&(c+=e.dump,n+=c));e.tag=i,e.dump="{"+n+"}"}function ZF(e,t,r,n){var i="",o=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 As("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)p="",(!n||a!==0)&&(p+=Gp(e,t)),u=s[a],c=r[u],Hn(e,t+1,u,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Ss===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=Gp(e,t)),Hn(e,t+1,c,!0,f)&&(e.dump&&Ss===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}function Mv(e,t,r){var n,i,o,s,a,l;for(i=r?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(a=i[o],(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,Nv.call(a.represent)==="[object Function]")n=a.represent(t,l);else if(Fv.call(a.represent,l))n=a.represent[l](t,l);else throw new As("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function Hn(e,t,r,n,i,o){e.tag=null,e.dump=r,Mv(e,r,!1)||Mv(e,r,!0);var s=Nv.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)&&(i=!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?(ZF(e,t,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(QF(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?(JF(e,c,e.dump,i),u&&(e.dump="&ref_"+l+e.dump)):(GF(e,c,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump))}else if(s==="[object String]")e.tag!=="?"&&VF(e,e.dump,t,o);else{if(e.skipInvalid)return!1;throw new As("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function XF(e,t){var r=[],n=[],i,o;for(Jp(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}function Jp(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)Jp(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)Jp(e[n[i]],t,r)}function Gv(e,t){t=t||{};var r=new UF(t);return r.noRefs||XF(e,r),Hn(r,0,e,!0,!0)?r.dump+`
34
- `:""}function KF(e,t){return Gv(e,ks.extend({schema:vF},t))}Zp.exports.dump=Gv;Zp.exports.safeDump=KF});var Zv=N((lW,De)=>{"use strict";var Vl=Tv(),Qv=Jv();function Wl(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}De.exports.Type=Je();De.exports.Schema=Un();De.exports.FAILSAFE_SCHEMA=Bl();De.exports.JSON_SCHEMA=zp();De.exports.CORE_SCHEMA=qp();De.exports.DEFAULT_SAFE_SCHEMA=Ji();De.exports.DEFAULT_FULL_SCHEMA=ws();De.exports.load=Vl.load;De.exports.loadAll=Vl.loadAll;De.exports.safeLoad=Vl.safeLoad;De.exports.safeLoadAll=Vl.safeLoadAll;De.exports.dump=Qv.dump;De.exports.safeDump=Qv.safeDump;De.exports.YAMLException=Yi();De.exports.MINIMAL_SCHEMA=Bl();De.exports.SAFE_SCHEMA=Ji();De.exports.DEFAULT_SCHEMA=ws();De.exports.scan=Wl("scan");De.exports.parse=Wl("parse");De.exports.compose=Wl("compose");De.exports.addConstructor=Wl("addConstructor")});var Kv=N((uW,Xv)=>{"use strict";var eR=Zv();Xv.exports=eR});var eS=N(Xt=>{"use strict";var tR=Xt&&Xt.__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]}),rR=Xt&&Xt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),nR=Xt&&Xt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.hasOwnProperty.call(e,r)&&tR(t,e,r);return rR(t,e),t};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.jsYaml=void 0;var iR=nR(Kv());Xt.jsYaml=iR});var rS=N(It=>{"use strict";var oR=It&&It.__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]}),sR=It&&It.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),aR=It&&It.__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)&&oR(t,e,r);return sR(t,e),t};Object.defineProperty(It,"__esModule",{value:!0});It.objectToYamlString=It.yamlStringToObject=void 0;var tS=aR(eS());It.yamlStringToObject=async(e,t={})=>tS.jsYaml.safeLoad(e);It.objectToYamlString=async(e,t={})=>tS.jsYaml.safeDump(e)});var fS=N((hW,cS)=>{"use strict";var Yl=Object.prototype.hasOwnProperty,uS=Object.prototype.toString,nS=Object.defineProperty,iS=Object.getOwnPropertyDescriptor,oS=function(t){return typeof Array.isArray=="function"?Array.isArray(t):uS.call(t)==="[object Array]"},sS=function(t){if(!t||uS.call(t)!=="[object Object]")return!1;var r=Yl.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Yl.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Yl.call(t,i)},aS=function(t,r){nS&&r.name==="__proto__"?nS(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},lS=function(t,r){if(r==="__proto__")if(Yl.call(t,r)){if(iS)return iS(t,r).value}else return;return t[r]};cS.exports=function e(){var t,r,n,i,o,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=lS(a,r),i=lS(t,r),a!==i&&(c&&i&&(sS(i)||(o=oS(i)))?(o?(o=!1,s=n&&oS(n)?n:[]):s=n&&sS(n)?n:{},aS(a,{name:r,newValue:e(c,s,i)})):typeof i<"u"&&aS(a,{name:r,newValue:i}));return a}});var j1=N((xK,am)=>{(function(){var e;typeof am<"u"?e=am.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(i,o){return n.apply(null,[i].concat(o))}function n(i){for(var o=1,s=[].slice.call(arguments),a=0,l=i.length,u="",c,f=!1,p,h,m=!1,x,v=function(){return s[o++]},w=function(){for(var E="";/\d/.test(i[a]);)E+=i[a++],c=i[a];return E.length>0?parseInt(E):null};a<l;++a)if(c=i[a],f)switch(f=!1,c=="."?(m=!1,c=i[++a]):c=="0"&&i[a+1]=="."?(m=!0,a+=2,c=i[a]):m=!0,x=w(),c){case"b":u+=parseInt(v(),10).toString(2);break;case"c":p=v(),typeof p=="string"||p instanceof String?u+=p:u+=String.fromCharCode(parseInt(p,10));break;case"d":u+=parseInt(v(),10);break;case"f":h=String(parseFloat(v()).toFixed(x||6)),u+=m?h:h.replace(/^0/,"");break;case"j":u+=JSON.stringify(v());break;case"o":u+="0"+parseInt(v(),10).toString(8);break;case"s":u+=v();break;case"x":u+="0x"+parseInt(v(),10).toString(16);break;case"X":u+="0x"+parseInt(v(),10).toString(16).toUpperCase();break;default:u+=c;break}else c==="%"?f=!0:u+=c;return u}})()});var kA=N(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.TokenData=void 0;Ir.parse=Gm;Ir.compile=P3;Ir.match=D3;Ir.pathToRegexp=SA;Ir.stringify=F3;var Vm="/",Wm=e=>e,wA=/^[$_\p{ID_Start}]$/u,Ym=/^[$\u200c\u200d\p{ID_Continue}]$/u,qu="https://git.new/pathToRegexpError",E3={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function _3(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function rr(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*I3(e){let t=[...e],r=0;function n(){let i="";if(wA.test(t[++r]))for(i+=t[r];Ym.test(t[++r]);)i+=t[r];else if(t[r]==='"'){let o=r;for(;r<t.length;){if(t[++r]==='"'){r++,o=0;break}t[r]==="\\"?i+=t[++r]:i+=t[r]}if(o)throw new TypeError(`Unterminated quote at ${o}: ${qu}`)}if(!i)throw new TypeError(`Missing parameter name at ${r}: ${qu}`);return i}for(;r<t.length;){let i=t[r],o=E3[i];if(o)yield{type:o,index:r++,value:i};else if(i==="\\")yield{type:"ESCAPED",index:r++,value:t[r++]};else if(i===":"){let s=n();yield{type:"PARAM",index:r,value:s}}else if(i==="*"){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 Hm=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:i}=this.peek();throw new TypeError(`Unexpected ${n} at ${i}, expected ${t}: ${qu}`)}text(){let t="",r;for(;r=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=r;return t}},co=class{constructor(t){this.tokens=t}};Ir.TokenData=co;function Gm(e,t={}){let{encodePath:r=Wm}=t,n=new Hm(I3(e));function i(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:i("}")});continue}return n.consume(s),a}}let o=i("END");return new co(o)}function P3(e,t={}){let{encode:r=encodeURIComponent,delimiter:n=Vm}=t,i=e instanceof co?e:Gm(e,t),o=vA(i.tokens,n,r);return function(a={}){let[l,...u]=o(a);if(u.length)throw new TypeError(`Missing parameters: ${u.join(", ")}`);return l}}function vA(e,t,r){let n=e.map(i=>O3(i,t,r));return i=>{let o=[""];for(let s of n){let[a,...l]=s(i);o[0]+=a,o.push(...l)}return o}}function O3(e,t,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){let i=vA(e.tokens,t,r);return o=>{let[s,...a]=i(o);return a.length?[""]:[s]}}let n=r||Wm;return e.type==="wildcard"&&r!==!1?i=>{let o=i[e.name];if(o==null)return["",e.name];if(!Array.isArray(o)||o.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[o.map((s,a)=>{if(typeof s!="string")throw new TypeError(`Expected "${e.name}/${a}" to be a string`);return n(s)}).join(t)]}:i=>{let o=i[e.name];if(o==null)return["",e.name];if(typeof o!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[n(o)]}}function D3(e,t={}){let{decode:r=decodeURIComponent,delimiter:n=Vm}=t,{regexp:i,keys:o}=SA(e,t),s=o.map(a=>r===!1?Wm:a.type==="param"?r:l=>l.split(n).map(r));return function(l){let u=i.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=o[p-1],m=s[p-1];f[h.name]=m(u[p])}return{path:c,params:f}}}function SA(e,t={}){let{delimiter:r=Vm,end:n=!0,sensitive:i=!1,trailing:o=!0}=t,s=[],a=[],l=i?"":"i",c=(Array.isArray(e)?e:[e]).map(h=>h instanceof co?h:Gm(h,t));for(let{tokens:h}of c)for(let m of zu(h,0,[])){let x=M3(m,r,s);a.push(x)}let f=`^(?:${a.join("|")})`;return o&&(f+=`(?:${rr(r)}$)?`),f+=n?"$":`(?=${rr(r)}|$)`,{regexp:new RegExp(f,l),keys:s}}function*zu(e,t,r){if(t===e.length)return yield r;let n=e[t];if(n.type==="group"){let i=r.slice();for(let o of zu(n.tokens,0,i))yield*zu(e,t+1,o)}else r.push(n);yield*zu(e,t+1,r)}function M3(e,t,r){let n="",i="",o=!0;for(let s=0;s<e.length;s++){let a=e[s];if(a.type==="text"){n+=rr(a.value),i+=a.value,o||(o=a.value.includes(t));continue}if(a.type==="param"||a.type==="wildcard"){if(!o&&!i)throw new TypeError(`Missing text after "${a.name}": ${qu}`);a.type==="param"?n+=`(${N3(t,o?"":i)}+)`:n+="([\\s\\S]+)",r.push(a),i="",o=!1;continue}}return n}function N3(e,t){return t.length<2?e.length<2?`[^${rr(e+t)}]`:`(?:(?!${rr(e)})[^${rr(t)}])`:e.length<2?`(?:(?!${rr(t)})[^${rr(e)}])`:`(?:(?!${rr(t)}|${rr(e)})[\\s\\S])`}function F3(e){return e.tokens.map(function t(r,n,i){if(r.type==="text")return _3(r.value);if(r.type==="group")return`{${r.tokens.map(t).join("")}}`;let s=R3(r.name)&&L3(i[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 R3(e){let[t,...r]=e;return wA.test(t)?r.every(n=>Ym.test(n)):!1}function L3(e){return e?.type!=="text"?!0:!Ym.test(e.value[0])}});var CA=N(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.getFirstTrueOrFalse=He.timeoutAndContinue=He.timeoutWrap=He.map=He.rejectedPromise=He.resolvedPromise=He.defer=He.Deferred=void 0;var Vu=class{constructor(){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"})}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}};He.Deferred=Vu;He.defer=()=>new Vu;He.resolvedPromise=e=>Promise.resolve(e);He.rejectedPromise=e=>Promise.reject(e);He.map=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n};He.timeoutWrap=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)});He.timeoutAndContinue=async(e,t=6e4)=>He.timeoutWrap(e,t,!1);He.getFirstTrueOrFalse=async e=>{let t=He.defer();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise}});var rd=N((ed,td)=>{(function(e,t){typeof ed=="object"&&typeof td<"u"?td.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(ed,function(){"use strict";var e=function(){return e=Object.assign||function(g){for(var S,T=1,O=arguments.length;T<O;T++){S=arguments[T];for(var Y in S)Object.prototype.hasOwnProperty.call(S,Y)&&(g[Y]=S[Y])}return g},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 k=!1;if(!t)return k;try{var g=window,S=Object.defineProperty({},"passive",{get:function(){k=!0}});g.addEventListener("test",null,S),g.removeEventListener("test",null,S)}catch{}return k}(),i=function(k){return typeof k=="string"},o=function(k){return typeof k=="function"},s=function(k){return Array.isArray(k)},a=function(k){return!s(k)&&k-parseFloat(k)+1>=0},l=function(k,g){return k&&k.hasOwnProperty(g)},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,x=Math.PI,v={linear:function(k){return k},easeInQuad:function(k,g,S,T,O){return T*(g/=O)*g+S},easeOutQuad:function(k,g,S,T,O){return-T*(g/=O)*(g-2)+S},easeInOutQuad:function(k,g,S,T,O){return(g/=O/2)<1?T/2*g*g+S:-T/2*(--g*(g-2)-1)+S},easeInCubic:function(k,g,S,T,O){return T*(g/=O)*g*g+S},easeOutCubic:function(k,g,S,T,O){return T*((g=g/O-1)*g*g+1)+S},easeInOutCubic:function(k,g,S,T,O){return(g/=O/2)<1?T/2*g*g*g+S:T/2*((g-=2)*g*g+2)+S},easeInQuart:function(k,g,S,T,O){return T*(g/=O)*g*g*g+S},easeOutQuart:function(k,g,S,T,O){return-T*((g=g/O-1)*g*g*g-1)+S},easeInOutQuart:function(k,g,S,T,O){return(g/=O/2)<1?T/2*g*g*g*g+S:-T/2*((g-=2)*g*g*g-2)+S},easeInQuint:function(k,g,S,T,O){return T*(g/=O)*g*g*g*g+S},easeOutQuint:function(k,g,S,T,O){return T*((g=g/O-1)*g*g*g*g+1)+S},easeInOutQuint:function(k,g,S,T,O){return(g/=O/2)<1?T/2*g*g*g*g*g+S:T/2*((g-=2)*g*g*g*g+2)+S},easeInSine:function(k,g,S,T,O){return-T*f(g/O*(x/2))+T+S},easeOutSine:function(k,g,S,T,O){return T*p(g/O*(x/2))+S},easeInOutSine:function(k,g,S,T,O){return-T/2*(f(x*g/O)-1)+S},easeInExpo:function(k,g,S,T,O){return g===0?S:T*h(2,10*(g/O-1))+S},easeOutExpo:function(k,g,S,T,O){return g===O?S+T:T*(-h(2,-10*g/O)+1)+S},easeInOutExpo:function(k,g,S,T,O){return g===0?S:g===O?S+T:(g/=O/2)<1?T/2*h(2,10*(g-1))+S:T/2*(-h(2,-10*--g)+2)+S},easeInCirc:function(k,g,S,T,O){return-T*(m(1-(g/=O)*g)-1)+S},easeOutCirc:function(k,g,S,T,O){return T*m(1-(g=g/O-1)*g)+S},easeInOutCirc:function(k,g,S,T,O){return(g/=O/2)<1?-T/2*(m(1-g*g)-1)+S:T/2*(m(1-(g-=2)*g)+1)+S}},w=function(k){return Array.prototype.slice.call(k?document.querySelectorAll(k):[])},E=function(k){return w(k).shift()||null},b=function(k){return k instanceof Element},z=function(k){return k===window},q=function(k){return k===document.documentElement||k===document.body},A=function(k,g){if(b(g))return k===g;for(var S=w(g),T=S.length;--T>=0&&S[T]!==k;);return T>-1},R=function(k){return Math.max(k.scrollHeight,k.clientHeight,k.offsetHeight)},V=function(k){return Math.max(k.scrollWidth,k.clientWidth,k.offsetWidth)},$=function(k){return{width:V(k),height:R(k)}},C=function(k){var g=z(k)||q(k);return{viewport:{width:g?Math.min(window.innerWidth,document.documentElement.clientWidth):k.clientWidth,height:g?window.innerHeight:k.clientHeight},size:g?{width:Math.max(V(document.body),V(document.documentElement)),height:Math.max(R(document.body),R(document.documentElement))}:$(k)}},pe={y:"scrollTop",x:"scrollLeft"},B={y:"pageYOffset",x:"pageXOffset"},_=function(k,g){return z(k)?k[B[g]]:k[pe[g]]},I=function(k,g,S){if(z(k)){var T=S==="y";k.scrollTo(T?k.pageXOffset:g,T?g:k.pageYOffset)}else k[pe[S]]=g},D=function(k,g){var S=k.getBoundingClientRect();if(S.width||S.height){var T={top:0,left:0},O=void 0;if(z(g)||q(g))O=document.documentElement,T.top=window[B.y],T.left=window[B.x];else{O=g;var Y=O.getBoundingClientRect();T.top=Y.top*-1+O[pe.y],T.left=Y.left*-1+O[pe.x]}return{top:S.top+T.top-O.clientTop,left:S.left+T.left-O.clientLeft}}return S},F=function(){return t?"onwheel"in document?"wheel":"mousewheel":"wheel"}(),W=function(k){return k==="wheel"?F:k},M=function(k,g,S,T,O){S.split(" ").forEach(function(Y){k[g](W(Y),T,n?{passive:O}:!1)})},U=function(k,g,S,T){return M(k,"addEventListener",g,S,T)},d=function(k,g,S,T){return M(k,"removeEventListener",g,S,T)},G=/^(\+|-)=(\d+(?:\.\d+)?)$/,K=function(k,g){var S={top:0,left:0,relative:!1};if(l(k,"top")||l(k,"left"))S=e({},S,k);else if(s(k))if(k.length>1)S.top=k[0],S.left=k[1];else if(k.length===1)S.top=g?k[0]:0,S.left=g?0:k[0];else return null;else if(a(k))g?S.top=k:S.left=k;else if(i(k)){var T=k.trim().match(G);if(!T)return null;var O=T[1],Y=parseInt(T[2],10);O==="+"?(S.top=g?Y:0,S.left=g?0:Y):(S.top=g?-Y:0,S.left=g?0:-Y),S.relative=!0}else return null;return S},y={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},se="click",de="wheel touchstart touchmove",Ie=function(){function k(g,S){var T=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(Y){var ye=T,we=ye.$el,ve=ye.ctx;if(ve.start||(ve.start=Y),!ve.progress||!we){T.stop();return}var kt=ve.opts,rt=ve.pos,xt=ve.start,ur=ve.startPos,Nr=ve.easing,Ft=kt.duration,qt={top:"y",left:"x"},At=Y-xt,$e=Math.min(1,Math.max(At/Ft,0));Object.keys(rt).forEach(function(Fr){var P=rt[Fr],j=ur[Fr],te=P-j;if(te!==0){var ue=Nr($e,Ft*$e,0,1,Ft);I(we,Math.round(j+te*ue),qt[Fr])}}),At<=Ft?(T.hook(kt,"step",$e),ve.id=k.raf(T.loop)):T.stop(!0)},this.handleClick=function(Y){for(var ye=T.opts,we=Y.target;we&&we!==document;we=we.parentNode)if(A(we,ye.trigger)){var ve=JSON.parse(we.getAttribute("data-scroll-options")||"{}"),kt=we.getAttribute("data-scroll"),rt=kt||we.getAttribute("href"),xt=e({},ye,ve),ur=xt.preventDefault,Nr=xt.stopPropagation,Ft=xt.vertical,qt=xt.horizontal;ur&&Y.preventDefault(),Nr&&Y.stopPropagation(),T.ctx.$trigger=we,qt&&Ft?T.to(rt,xt):Ft?T.toTop(rt,xt):qt&&T.toLeft(rt,xt);break}},this.handleStop=function(Y){var ye=T.ctx,we=ye.opts;we&&we.cancellable?(ye.cancel=!0,T.stop()):Y.preventDefault()},this.opts=e({},y,g||{});var O=null;t&&(typeof S=="string"?O=E(S):S!=null?O=S:O=window),this.$el=O,O&&this.bind(!0,!1)}return k.create=function(g,S){return new k(g,S)},k.prototype.to=function(g,S){if(t){var T=this,O=T.$el,Y=T.ctx,ye=T.opts,we=Y.$trigger,ve=e({},ye,S||{}),kt=ve.offset,rt=ve.vertical,xt=ve.horizontal,ur=b(ve.header)?ve.header:E(ve.header),Nr=/^#/,Ft=i(g)&&Nr.test(g)?g:null;if(Y.opts=ve,Y.cancel=!1,Y.hash=Ft,this.stop(),!!O){var qt=K(kt,rt),At=K(g,rt),$e={top:0,left:0};if(At)if(At.relative){var Fr=_(O,rt?"y":"x");$e.top=rt?Fr+At.top:At.top,$e.left=rt?At.left:Fr+At.left}else $e=At;else if(i(g)&&g!=="#"){var P=E(g);if(!P)return;$e=D(P,O)}qt&&($e.top+=qt.top,$e.left+=qt.left),ur&&($e.top=Math.max(0,$e.top-$(ur).height));var j=C(O),te=j.viewport,ue=j.size;if($e.top=rt?Math.max(0,Math.min(ue.height-te.height,$e.top)):_(O,"y"),$e.left=xt?Math.max(0,Math.min(ue.width-te.width,$e.left)):_(O,"x"),this.hook(ve,"before",$e,we)===!1){Y.opts=null;return}Y.pos=$e,this.start(ve),this.bind(!1,!0)}}},k.prototype.toTop=function(g,S){this.to(g,e({},S||{},{vertical:!0,horizontal:!1}))},k.prototype.toLeft=function(g,S){this.to(g,e({},S||{},{vertical:!1,horizontal:!0}))},k.prototype.toElement=function(g,S){var T=this.$el;!t||!T||this.to(D(g,T),S||{})},k.prototype.stop=function(g){g===void 0&&(g=!1);var S=this,T=S.$el,O=S.ctx,Y=O.pos;!T||!O.progress||(k.caf(O.id),O.progress=!1,O.start=0,O.id=0,g&&Y&&(I(T,Y.left,"x"),I(T,Y.top,"y")),this.complete())},k.prototype.update=function(g){if(this.$el){var S=e({},this.opts,g);this.stop(),this.unbind(!0,!0),this.opts=S,this.bind(!0,!1)}},k.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},k.prototype.onBefore=function(g,S){return!0},k.prototype.onStep=function(g){},k.prototype.onAfter=function(g,S){},k.prototype.onCancel=function(){},k.prototype.onComplete=function(g){},k.prototype.start=function(g){var S=this.ctx;S.opts=g,S.progress=!0,S.easing=o(g.easing)?g.easing:v[g.easing];var T=this.$el,O={top:_(T,"y"),left:_(T,"x")};S.startPos=O,S.id=k.raf(this.loop)},k.prototype.complete=function(){var g=this,S=g.$el,T=g.ctx,O=T.hash,Y=T.cancel,ye=T.opts,we=T.pos,ve=T.$trigger;if(!(!S||!ye)){if(O!=null&&O!==window.location.hash){var kt=ye.updateURL;t&&r&&kt!==!1&&window.history[kt==="replace"?"replaceState":"pushState"](null,"",O)}this.unbind(!1,!0),T.opts=null,T.$trigger=null,Y?this.hook(ye,"cancel"):this.hook(ye,"after",we,ve),this.hook(ye,"complete",Y)}},k.prototype.hook=function(g,S){for(var T=[],O=2;O<arguments.length;O++)T[O-2]=arguments[O];var Y,ye=g[S],we,ve;return o(ye)&&(we=ye.apply(this,T.concat([this]))),ve=(Y=this)["on"+(S[0].toUpperCase()+S.slice(1))].apply(Y,T),we!==void 0?we:ve},k.prototype.bind=function(g,S){var T=this,O=T.$el,Y=T.ctx.opts;O&&(g&&U(O,se,this.handleClick,!1),S&&U(O,de,this.handleStop,Y?Y.cancellable:!0))},k.prototype.unbind=function(g,S){var T=this,O=T.$el,Y=T.ctx.opts;O&&(g&&d(O,se,this.handleClick,!1),S&&d(O,de,this.handleStop,Y?Y.cancellable:!0))},k.raf=u,k.caf=c,k}();return Ie})});var eC=N((lue,KA)=>{KA.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var on=N(li=>{var bd,_U=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];li.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};li.getSymbolTotalCodewords=function(t){return _U[t]};li.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};li.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');bd=t};li.isKanjiModeEnabled=function(){return typeof bd<"u"};li.toSJIS=function(t){return bd(t)}});var ac=N(Mt=>{Mt.L={bit:1};Mt.M={bit:0};Mt.Q={bit:3};Mt.H={bit:2};function IU(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Mt.L;case"m":case"medium":return Mt.M;case"q":case"quartile":return Mt.Q;case"h":case"high":return Mt.H;default:throw new Error("Unknown EC Level: "+e)}}Mt.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4};Mt.from=function(t,r){if(Mt.isValid(t))return t;try{return IU(t)}catch{return r}}});var nC=N((fue,rC)=>{function tC(){this.buffer=[],this.length=0}tC.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};rC.exports=tC});var oC=N((pue,iC)=>{function ra(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}ra.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)};ra.prototype.get=function(e,t){return this.data[e*this.size+t]};ra.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r};ra.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};iC.exports=ra});var sC=N(lc=>{var PU=on().getSymbolSize;lc.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=PU(t),i=n===145?26:Math.ceil((n-13)/(2*r-2))*2,o=[n-7];for(let s=1;s<r-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()};lc.getPositions=function(t){let r=[],n=lc.getRowColCoords(t),i=n.length;for(let o=0;o<i;o++)for(let s=0;s<i;s++)o===0&&s===0||o===0&&s===i-1||o===i-1&&s===0||r.push([n[o],n[s]]);return r}});var uC=N(lC=>{var OU=on().getSymbolSize,aC=7;lC.getPositions=function(t){let r=OU(t);return[[0,0],[r-aC,0],[0,r-aC]]}});var cC=N(Te=>{Te.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var ui={N1:3,N2:3,N3:40,N4:10};Te.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};Te.from=function(t){return Te.isValid(t)?parseInt(t,10):void 0};Te.getPenaltyN1=function(t){let r=t.size,n=0,i=0,o=0,s=null,a=null;for(let l=0;l<r;l++){i=o=0,s=a=null;for(let u=0;u<r;u++){let c=t.get(l,u);c===s?i++:(i>=5&&(n+=ui.N1+(i-5)),s=c,i=1),c=t.get(u,l),c===a?o++:(o>=5&&(n+=ui.N1+(o-5)),a=c,o=1)}i>=5&&(n+=ui.N1+(i-5)),o>=5&&(n+=ui.N1+(o-5))}return n};Te.getPenaltyN2=function(t){let r=t.size,n=0;for(let i=0;i<r-1;i++)for(let o=0;o<r-1;o++){let s=t.get(i,o)+t.get(i,o+1)+t.get(i+1,o)+t.get(i+1,o+1);(s===4||s===0)&&n++}return n*ui.N2};Te.getPenaltyN3=function(t){let r=t.size,n=0,i=0,o=0;for(let s=0;s<r;s++){i=o=0;for(let a=0;a<r;a++)i=i<<1&2047|t.get(s,a),a>=10&&(i===1488||i===93)&&n++,o=o<<1&2047|t.get(a,s),a>=10&&(o===1488||o===93)&&n++}return n*ui.N3};Te.getPenaltyN4=function(t){let r=0,n=t.data.length;for(let o=0;o<n;o++)r+=t.data[o];return Math.abs(Math.ceil(r*100/n/5)-10)*ui.N4};function DU(e,t,r){switch(e){case Te.Patterns.PATTERN000:return(t+r)%2===0;case Te.Patterns.PATTERN001:return t%2===0;case Te.Patterns.PATTERN010:return r%3===0;case Te.Patterns.PATTERN011:return(t+r)%3===0;case Te.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case Te.Patterns.PATTERN101:return t*r%2+t*r%3===0;case Te.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case Te.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}Te.applyMask=function(t,r){let n=r.size;for(let i=0;i<n;i++)for(let o=0;o<n;o++)r.isReserved(o,i)||r.xor(o,i,DU(t,o,i))};Te.getBestMask=function(t,r){let n=Object.keys(Te.Patterns).length,i=0,o=1/0;for(let s=0;s<n;s++){r(s),Te.applyMask(s,t);let a=Te.getPenaltyN1(t)+Te.getPenaltyN2(t)+Te.getPenaltyN3(t)+Te.getPenaltyN4(t);Te.applyMask(s,t),a<o&&(o=a,i=s)}return i}});var vd=N(wd=>{var sn=ac(),uc=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],cc=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];wd.getBlocksCount=function(t,r){switch(r){case sn.L:return uc[(t-1)*4+0];case sn.M:return uc[(t-1)*4+1];case sn.Q:return uc[(t-1)*4+2];case sn.H:return uc[(t-1)*4+3];default:return}};wd.getTotalCodewordsCount=function(t,r){switch(r){case sn.L:return cc[(t-1)*4+0];case sn.M:return cc[(t-1)*4+1];case sn.Q:return cc[(t-1)*4+2];case sn.H:return cc[(t-1)*4+3];default:return}}});var fC=N(pc=>{var na=new Uint8Array(512),fc=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)na[r]=t,fc[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)na[r]=na[r-255]})();pc.log=function(t){if(t<1)throw new Error("log("+t+")");return fc[t]};pc.exp=function(t){return na[t]};pc.mul=function(t,r){return t===0||r===0?0:na[fc[t]+fc[r]]}});var pC=N(ia=>{var Sd=fC();ia.mul=function(t,r){let n=new Uint8Array(t.length+r.length-1);for(let i=0;i<t.length;i++)for(let o=0;o<r.length;o++)n[i+o]^=Sd.mul(t[i],r[o]);return n};ia.mod=function(t,r){let n=new Uint8Array(t);for(;n.length-r.length>=0;){let i=n[0];for(let s=0;s<r.length;s++)n[s]^=Sd.mul(r[s],i);let o=0;for(;o<n.length&&n[o]===0;)o++;n=n.slice(o)}return n};ia.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=ia.mul(r,new Uint8Array([1,Sd.exp(n)]));return r}});var dC=N((bue,mC)=>{var hC=pC();function kd(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}kd.prototype.initialize=function(t){this.degree=t,this.genPoly=hC.generateECPolynomial(this.degree)};kd.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(t.length+this.degree);r.set(t);let n=hC.mod(r,this.genPoly),i=this.degree-n.length;if(i>0){let o=new Uint8Array(this.degree);return o.set(n,i),o}return n};mC.exports=kd});var Ad=N(gC=>{gC.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Cd=N(Or=>{var yC="[0-9]+",MU="[A-Z $%*+\\-./:]+",oa="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";oa=oa.replace(/u/g,"\\u");var NU="(?:(?![A-Z0-9 $%*+\\-./:]|"+oa+`)(?:.|[\r
35
- ]))+`;Or.KANJI=new RegExp(oa,"g");Or.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Or.BYTE=new RegExp(NU,"g");Or.NUMERIC=new RegExp(yC,"g");Or.ALPHANUMERIC=new RegExp(MU,"g");var FU=new RegExp("^"+oa+"$"),RU=new RegExp("^"+yC+"$"),LU=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Or.testKanji=function(t){return FU.test(t)};Or.testNumeric=function(t){return RU.test(t)};Or.testAlphanumeric=function(t){return LU.test(t)}});var an=N(Ve=>{var BU=Ad(),Td=Cd();Ve.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};Ve.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};Ve.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};Ve.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};Ve.MIXED={bit:-1};Ve.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!BU.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]};Ve.getBestModeForData=function(t){return Td.testNumeric(t)?Ve.NUMERIC:Td.testAlphanumeric(t)?Ve.ALPHANUMERIC:Td.testKanji(t)?Ve.KANJI:Ve.BYTE};Ve.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};Ve.isValid=function(t){return t&&t.bit&&t.ccBits};function $U(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return Ve.NUMERIC;case"alphanumeric":return Ve.ALPHANUMERIC;case"kanji":return Ve.KANJI;case"byte":return Ve.BYTE;default:throw new Error("Unknown mode: "+e)}}Ve.from=function(t,r){if(Ve.isValid(t))return t;try{return $U(t)}catch{return r}}});var SC=N(ci=>{var hc=on(),UU=vd(),xC=ac(),ln=an(),Ed=Ad(),wC=7973,bC=hc.getBCHDigit(wC);function jU(e,t,r){for(let n=1;n<=40;n++)if(t<=ci.getCapacity(n,r,e))return n}function vC(e,t){return ln.getCharCountIndicator(e,t)+4}function zU(e,t){let r=0;return e.forEach(function(n){let i=vC(n.mode,t);r+=i+n.getBitsLength()}),r}function qU(e,t){for(let r=1;r<=40;r++)if(zU(e,r)<=ci.getCapacity(r,t,ln.MIXED))return r}ci.from=function(t,r){return Ed.isValid(t)?parseInt(t,10):r};ci.getCapacity=function(t,r,n){if(!Ed.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=ln.BYTE);let i=hc.getSymbolTotalCodewords(t),o=UU.getTotalCodewordsCount(t,r),s=(i-o)*8;if(n===ln.MIXED)return s;let a=s-vC(n,t);switch(n){case ln.NUMERIC:return Math.floor(a/10*3);case ln.ALPHANUMERIC:return Math.floor(a/11*2);case ln.KANJI:return Math.floor(a/13);case ln.BYTE:default:return Math.floor(a/8)}};ci.getBestVersionForData=function(t,r){let n,i=xC.from(r,xC.M);if(Array.isArray(t)){if(t.length>1)return qU(t,i);if(t.length===0)return 1;n=t[0]}else n=t;return jU(n.mode,n.getLength(),i)};ci.getEncodedBits=function(t){if(!Ed.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;hc.getBCHDigit(r)-bC>=0;)r^=wC<<hc.getBCHDigit(r)-bC;return t<<12|r}});var TC=N(CC=>{var _d=on(),AC=1335,HU=21522,kC=_d.getBCHDigit(AC);CC.getEncodedBits=function(t,r){let n=t.bit<<3|r,i=n<<10;for(;_d.getBCHDigit(i)-kC>=0;)i^=AC<<_d.getBCHDigit(i)-kC;return(n<<10|i)^HU}});var _C=N((Cue,EC)=>{var VU=an();function Ao(e){this.mode=VU.NUMERIC,this.data=e.toString()}Ao.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};Ao.prototype.getLength=function(){return this.data.length};Ao.prototype.getBitsLength=function(){return Ao.getBitsLength(this.data.length)};Ao.prototype.write=function(t){let r,n,i;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),i=parseInt(n,10),t.put(i,10);let o=this.data.length-r;o>0&&(n=this.data.substr(r),i=parseInt(n,10),t.put(i,o*3+1))};EC.exports=Ao});var PC=N((Tue,IC)=>{var WU=an(),Id=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Co(e){this.mode=WU.ALPHANUMERIC,this.data=e}Co.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};Co.prototype.getLength=function(){return this.data.length};Co.prototype.getBitsLength=function(){return Co.getBitsLength(this.data.length)};Co.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=Id.indexOf(this.data[r])*45;n+=Id.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put(Id.indexOf(this.data[r]),6)};IC.exports=Co});var DC=N((Eue,OC)=>{var YU=an();function To(e){this.mode=YU.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}To.getBitsLength=function(t){return t*8};To.prototype.getLength=function(){return this.data.length};To.prototype.getBitsLength=function(){return To.getBitsLength(this.data.length)};To.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};OC.exports=To});var NC=N((_ue,MC)=>{var GU=an(),JU=on();function Eo(e){this.mode=GU.KANJI,this.data=e}Eo.getBitsLength=function(t){return t*13};Eo.prototype.getLength=function(){return this.data.length};Eo.prototype.getBitsLength=function(){return Eo.getBitsLength(this.data.length)};Eo.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=JU.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
36
- Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};MC.exports=Eo});var FC=N((Iue,Pd)=>{"use strict";var sa={single_source_shortest_paths:function(e,t,r){var n={},i={};i[t]=0;var o=sa.PriorityQueue.make();o.push(t,0);for(var s,a,l,u,c,f,p,h,m;!o.empty();){s=o.pop(),a=s.value,u=s.cost,c=e[a]||{};for(l in c)c.hasOwnProperty(l)&&(f=c[l],p=u+f,h=i[l],m=typeof i[l]>"u",(m||h>p)&&(i[l]=p,o.push(l,p),n[l]=a))}if(typeof r<"u"&&typeof i[r]>"u"){var x=["Could not find a path from ",t," to ",r,"."].join("");throw new Error(x)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t,i;n;)r.push(n),i=e[n],n=e[n];return r.reverse(),r},find_path:function(e,t,r){var n=sa.single_source_shortest_paths(e,t,r);return sa.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var t=sa.PriorityQueue,r={},n;e=e||{};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Pd<"u"&&(Pd.exports=sa)});var qC=N(_o=>{var be=an(),BC=_C(),$C=PC(),UC=DC(),jC=NC(),aa=Cd(),mc=on(),QU=FC();function RC(e){return unescape(encodeURIComponent(e)).length}function la(e,t,r){let n=[],i;for(;(i=e.exec(r))!==null;)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function zC(e){let t=la(aa.NUMERIC,be.NUMERIC,e),r=la(aa.ALPHANUMERIC,be.ALPHANUMERIC,e),n,i;return mc.isKanjiModeEnabled()?(n=la(aa.BYTE,be.BYTE,e),i=la(aa.KANJI,be.KANJI,e)):(n=la(aa.BYTE_KANJI,be.BYTE,e),i=[]),t.concat(r,n,i).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function Od(e,t){switch(t){case be.NUMERIC:return BC.getBitsLength(e);case be.ALPHANUMERIC:return $C.getBitsLength(e);case be.KANJI:return jC.getBitsLength(e);case be.BYTE:return UC.getBitsLength(e)}}function ZU(e){return e.reduce(function(t,r){let n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)},[])}function XU(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case be.NUMERIC:t.push([n,{data:n.data,mode:be.ALPHANUMERIC,length:n.length},{data:n.data,mode:be.BYTE,length:n.length}]);break;case be.ALPHANUMERIC:t.push([n,{data:n.data,mode:be.BYTE,length:n.length}]);break;case be.KANJI:t.push([n,{data:n.data,mode:be.BYTE,length:RC(n.data)}]);break;case be.BYTE:t.push([{data:n.data,mode:be.BYTE,length:RC(n.data)}])}}return t}function KU(e,t){let r={},n={start:{}},i=["start"];for(let o=0;o<e.length;o++){let s=e[o],a=[];for(let l=0;l<s.length;l++){let u=s[l],c=""+o+l;a.push(c),r[c]={node:u,lastCount:0},n[c]={};for(let f=0;f<i.length;f++){let p=i[f];r[p]&&r[p].node.mode===u.mode?(n[p][c]=Od(r[p].lastCount+u.length,u.mode)-Od(r[p].lastCount,u.mode),r[p].lastCount+=u.length):(r[p]&&(r[p].lastCount=u.length),n[p][c]=Od(u.length,u.mode)+4+be.getCharCountIndicator(u.mode,t))}}i=a}for(let o=0;o<i.length;o++)n[i[o]].end=0;return{map:n,table:r}}function LC(e,t){let r,n=be.getBestModeForData(e);if(r=be.from(t,n),r!==be.BYTE&&r.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+be.toString(r)+`.
37
- Suggested mode is: `+be.toString(n));switch(r===be.KANJI&&!mc.isKanjiModeEnabled()&&(r=be.BYTE),r){case be.NUMERIC:return new BC(e);case be.ALPHANUMERIC:return new $C(e);case be.KANJI:return new jC(e);case be.BYTE:return new UC(e)}}_o.fromArray=function(t){return t.reduce(function(r,n){return typeof n=="string"?r.push(LC(n,null)):n.data&&r.push(LC(n.data,n.mode)),r},[])};_o.fromString=function(t,r){let n=zC(t,mc.isKanjiModeEnabled()),i=XU(n),o=KU(i,r),s=QU.find_path(o.map,"start","end"),a=[];for(let l=1;l<s.length-1;l++)a.push(o.table[s[l]].node);return _o.fromArray(ZU(a))};_o.rawSplit=function(t){return _o.fromArray(zC(t,mc.isKanjiModeEnabled()))}});var VC=N(HC=>{var gc=on(),Dd=ac(),e4=nC(),t4=oC(),r4=sC(),n4=uC(),Fd=cC(),Rd=vd(),i4=dC(),dc=SC(),o4=TC(),s4=an(),Md=qC();function a4(e,t){let r=e.size,n=n4.getPositions(t);for(let i=0;i<n.length;i++){let o=n[i][0],s=n[i][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||r<=o+a))for(let l=-1;l<=7;l++)s+l<=-1||r<=s+l||(a>=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?e.set(o+a,s+l,!0,!0):e.set(o+a,s+l,!1,!0))}}function l4(e){let t=e.size;for(let r=8;r<t-8;r++){let n=r%2===0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}function u4(e,t){let r=r4.getPositions(t);for(let n=0;n<r.length;n++){let i=r[n][0],o=r[n][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?e.set(i+s,o+a,!0,!0):e.set(i+s,o+a,!1,!0)}}function c4(e,t){let r=e.size,n=dc.getEncodedBits(t),i,o,s;for(let a=0;a<18;a++)i=Math.floor(a/3),o=a%3+r-8-3,s=(n>>a&1)===1,e.set(i,o,s,!0),e.set(o,i,s,!0)}function Nd(e,t,r){let n=e.size,i=o4.getEncodedBits(t,r),o,s;for(o=0;o<15;o++)s=(i>>o&1)===1,o<6?e.set(o,8,s,!0):o<8?e.set(o+1,8,s,!0):e.set(n-15+o,8,s,!0),o<8?e.set(8,n-o-1,s,!0):o<9?e.set(8,15-o-1+1,s,!0):e.set(8,15-o-1,s,!0);e.set(n-8,8,1,!0)}function f4(e,t){let r=e.size,n=-1,i=r-1,o=7,s=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!e.isReserved(i,a-l)){let u=!1;s<t.length&&(u=(t[s]>>>o&1)===1),e.set(i,a-l,u),o--,o===-1&&(s++,o=7)}if(i+=n,i<0||r<=i){i-=n,n=-n;break}}}function p4(e,t,r){let n=new e4;r.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),s4.getCharCountIndicator(l.mode,e)),l.write(n)});let i=gc.getSymbolTotalCodewords(e),o=Rd.getTotalCodewordsCount(e,t),s=(i-o)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let a=(s-n.getLengthInBits())/8;for(let l=0;l<a;l++)n.put(l%2?17:236,8);return h4(n,e,t)}function h4(e,t,r){let n=gc.getSymbolTotalCodewords(t),i=Rd.getTotalCodewordsCount(t,r),o=n-i,s=Rd.getBlocksCount(t,r),a=n%s,l=s-a,u=Math.floor(n/s),c=Math.floor(o/s),f=c+1,p=u-c,h=new i4(p),m=0,x=new Array(s),v=new Array(s),w=0,E=new Uint8Array(e.buffer);for(let R=0;R<s;R++){let V=R<l?c:f;x[R]=E.slice(m,m+V),v[R]=h.encode(x[R]),m+=V,w=Math.max(w,V)}let b=new Uint8Array(n),z=0,q,A;for(q=0;q<w;q++)for(A=0;A<s;A++)q<x[A].length&&(b[z++]=x[A][q]);for(q=0;q<p;q++)for(A=0;A<s;A++)b[z++]=v[A][q];return b}function m4(e,t,r,n){let i;if(Array.isArray(e))i=Md.fromArray(e);else if(typeof e=="string"){let u=t;if(!u){let c=Md.rawSplit(e);u=dc.getBestVersionForData(c,r)}i=Md.fromString(e,u||40)}else throw new Error("Invalid data");let o=dc.getBestVersionForData(i,r);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
21
+ `),i=o?"+":n?"":"-";return r+i+`
22
+ `}function FC(e){return e[e.length-1]===`
23
+ `?e.slice(0,-1):e}function hH(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var u=e.indexOf(`
24
+ `);return u=u!==-1?u:e.length,r.lastIndex=u,LC(e.slice(0,u),t)})(),o=e[0]===`
25
+ `||e[0]===" ",i,s;s=r.exec(e);){var a=s[1],l=s[2];i=l[0]===" ",n+=a+(!o&&!i&&l!==""?`
26
+ `:"")+LC(l,t),o=i}return n}function LC(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+=`
27
+ `+e.slice(o,i),o=i+1),s=a;return l+=`
28
+ `,e.length-o>t&&s>o?l+=e.slice(o,s)+`
29
+ `+e.slice(s+1):l+=e.slice(o),l.slice(1)}function dH(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+=CC((r-55296)*1024+n-56320+65536),i++;continue}o=Lt[r],t+=!o&&Ws(r)?e[i]:o||CC(r)}return t}function gH(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i<s;i+=1)wi(e,t,r[i],!1,!1)&&(i!==0&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function xH(e,t,r,n){var o="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)wi(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(o+=yg(e,t)),e.dump&&wl===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=i,e.dump=o||"[]"}function yH(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],wi(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),wi(e,t,u,!1,!1)&&(c+=e.dump,n+=c));e.tag=o,e.dump="{"+n+"}"}function bH(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 bl("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)p="",(!n||a!==0)&&(p+=yg(e,t)),u=s[a],c=r[u],wi(e,t+1,u,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&wl===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,f&&(p+=yg(e,t)),wi(e,t+1,c,!0,f)&&(e.dump&&wl===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,o+=p));e.tag=i,e.dump=o||"{}"}function RC(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,xC.call(a.represent)==="[object Function]")n=a.represent(t,l);else if(yC.call(a.represent,l))n=a.represent[l](t,l);else throw new bl("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=n}return!0}return!1}function wi(e,t,r,n,o,i){e.tag=null,e.dump=r,RC(e,r,!1)||RC(e,r,!0);var s=xC.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?(bH(e,t,e.dump,o),u&&(e.dump="&ref_"+l+e.dump)):(yH(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?(xH(e,c,e.dump,o),u&&(e.dump="&ref_"+l+e.dump)):(gH(e,c,e.dump),u&&(e.dump="&ref_"+l+" "+e.dump))}else if(s==="[object String]")e.tag!=="?"&&mH(e,e.dump,t,i);else{if(e.skipInvalid)return!1;throw new bl("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function wH(e,t){var r=[],n=[],o,i;for(wg(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function wg(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)wg(e[o],t,r);else for(n=Object.keys(e),o=0,i=n.length;o<i;o+=1)wg(e[n[o]],t,r)}function BC(e,t){t=t||{};var r=new lH(t);return r.noRefs||wH(e,r),wi(r,0,e,!0,!0)?r.dump+`
30
+ `:""}function vH(e,t){return BC(e,yl.extend({schema:jz},t))}vg.exports.dump=BC,vg.exports.safeDump=vH});var HC=q((lMe,Ke)=>{"use strict";var xp=gC(),zC=$C();function yp(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}Ke.exports.Type=gt(),Ke.exports.Schema=gi(),Ke.exports.FAILSAFE_SCHEMA=cp(),Ke.exports.JSON_SCHEMA=pg(),Ke.exports.CORE_SCHEMA=mg(),Ke.exports.DEFAULT_SAFE_SCHEMA=zs(),Ke.exports.DEFAULT_FULL_SCHEMA=gl(),Ke.exports.load=xp.load,Ke.exports.loadAll=xp.loadAll,Ke.exports.safeLoad=xp.safeLoad,Ke.exports.safeLoadAll=xp.safeLoadAll,Ke.exports.dump=zC.dump,Ke.exports.safeDump=zC.safeDump,Ke.exports.YAMLException=Bs(),Ke.exports.MINIMAL_SCHEMA=cp(),Ke.exports.SAFE_SCHEMA=zs(),Ke.exports.DEFAULT_SCHEMA=gl(),Ke.exports.scan=yp("scan"),Ke.exports.parse=yp("parse"),Ke.exports.compose=yp("compose"),Ke.exports.addConstructor=yp("addConstructor")});var jC=q((uMe,UC)=>{"use strict";var SH=HC();UC.exports=SH});var WC=q(fn=>{"use strict";var kH=fn&&fn.__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]})),TH=fn&&fn.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),EH=fn&&fn.__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)&&kH(t,e,r);return TH(t,e),t};Object.defineProperty(fn,"__esModule",{value:!0}),fn.jsYaml=void 0;var CH=EH(jC());fn.jsYaml=CH});var YC=q(Sr=>{"use strict";var DH=Sr&&Sr.__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]})),AH=Sr&&Sr.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),IH=Sr&&Sr.__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)&&DH(t,e,r);return AH(t,e),t};Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.objectToYamlString=Sr.yamlStringToObject=void 0;var qC=IH(WC());Sr.yamlStringToObject=async(e,t={})=>qC.jsYaml.safeLoad(e),Sr.objectToYamlString=async(e,t={})=>qC.jsYaml.safeDump(e)});var tD=q((mMe,eD)=>{"use strict";var bp=Object.prototype.hasOwnProperty,VC=Object.prototype.toString,GC=Object.defineProperty,QC=Object.getOwnPropertyDescriptor,JC=function(t){return typeof Array.isArray=="function"?Array.isArray(t):VC.call(t)==="[object Array]"},XC=function(t){if(!t||VC.call(t)!=="[object Object]")return!1;var r=bp.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&bp.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var o;for(o in t);return typeof o>"u"||bp.call(t,o)},ZC=function(t,r){GC&&r.name==="__proto__"?GC(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},KC=function(t,r){if(r==="__proto__")if(bp.call(t,r)){if(QC)return QC(t,r).value}else return;return t[r]};eD.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=KC(a,r),o=KC(t,r),a!==o&&(c&&o&&(XC(o)||(i=JC(o)))?(i?(i=!1,s=n&&JC(n)?n:[]):s=n&&XC(n)?n:{},ZC(a,{name:r,newValue:e(c,s,o)})):typeof o<"u"&&ZC(a,{name:r,newValue:o}));return a}});var BA=q((nBe,Bx)=>{(function(){var e;typeof Bx<"u"?e=Bx.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,m,h=!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=="."?(h=!1,c=o[++a]):c=="0"&&o[a+1]=="."?(h=!0,a+=2,c=o[a]):h=!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":m=String(parseFloat(g()).toFixed(d||6)),u+=h?m:m.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 SM=q(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0}),Br.PathError=Br.TokenData=void 0,Br.parse=Cy,Br.compile=KW,Br.match=tq,Br.pathToRegexp=bM,Br.stringify=oq;var ky="/",Ty=e=>e,xM=/^[$_\p{ID_Start}]$/u,Ey=/^[$\u200c\u200d\p{ID_Continue}]$/u,XW={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function ZW(e){return e.replace(/[{}()\[\]+?!:*\\]/g,"\\$&")}function gn(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}var gm=class{constructor(t,r){this.tokens=t,this.originalPath=r}};Br.TokenData=gm;var Li=class extends TypeError{constructor(t,r){let n=t;r&&(n+=`: ${r}`),n+="; visit https://git.new/pathToRegexpError for info",super(n),this.originalPath=r}};Br.PathError=Li;function Cy(e,t={}){let{encodePath:r=Ty}=t,n=[...e],o=[],i=0,s=0;function a(){let u="";if(xM.test(n[i]))do u+=n[i++];while(Ey.test(n[i]));else if(n[i]==='"'){let c=i;for(;i++<n.length;){if(n[i]==='"'){i++,c=0;break}n[i]==="\\"&&i++,u+=n[i]}if(c)throw new Li(`Unterminated quote at index ${c}`,e)}if(!u)throw new Li(`Missing parameter name at index ${i}`,e);return u}for(;i<n.length;){let u=n[i],c=XW[u];c?o.push({type:c,index:i++,value:u}):u==="\\"?o.push({type:"escape",index:i++,value:n[i++]}):u===":"?o.push({type:"param",index:i++,value:a()}):u==="*"?o.push({type:"wildcard",index:i++,value:a()}):o.push({type:"char",index:i++,value:u})}o.push({type:"end",index:i,value:""});function l(u){let c=[];for(;;){let f=o[s++];if(f.type===u)break;if(f.type==="char"||f.type==="escape"){let p=f.value,m=o[s];for(;m.type==="char"||m.type==="escape";)p+=m.value,m=o[++s];c.push({type:"text",value:r(p)});continue}if(f.type==="param"||f.type==="wildcard"){c.push({type:f.type,name:f.value});continue}if(f.type==="{"){c.push({type:"group",tokens:l("}")});continue}throw new Li(`Unexpected ${f.type} at index ${f.index}, expected ${u}`,e)}return c}return new gm(l("end"),e)}function KW(e,t={}){let{encode:r=encodeURIComponent,delimiter:n=ky}=t,o=typeof e=="object"?e:Cy(e,t),i=yM(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 yM(e,t,r){let n=e.map(o=>eq(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 eq(e,t,r){if(e.type==="text")return()=>[e.value];if(e.type==="group"){let o=yM(e.tokens,t,r);return i=>{let[s,...a]=o(i);return a.length?[""]:[s]}}let n=r||Ty;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 tq(e,t={}){let{decode:r=decodeURIComponent,delimiter:n=ky}=t,{regexp:o,keys:i}=bM(e,t),s=i.map(a=>r===!1?Ty: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 m=i[p-1],h=s[p-1];f[m.name]=h(u[p])}return{path:c,params:f}}}function bM(e,t={}){let{delimiter:r=ky,end:n=!0,sensitive:o=!1,trailing:i=!0}=t,s=[],a=o?"":"i",l=[];for(let f of wM(e,[])){let p=typeof f=="object"?f:Cy(f,t);for(let m of xm(p.tokens,0,[]))l.push(rq(m,r,s,p.originalPath))}let u=`^(?:${l.join("|")})`;return i&&(u+=`(?:${gn(r)}$)?`),u+=n?"$":`(?=${gn(r)}|$)`,{regexp:new RegExp(u,a),keys:s}}function wM(e,t){if(Array.isArray(e))for(let r of e)wM(r,t);else t.push(e);return t}function*xm(e,t,r){if(t===e.length)return yield r;let n=e[t];if(n.type==="group")for(let o of xm(n.tokens,0,r.slice()))yield*xm(e,t+1,o);else r.push(n);yield*xm(e,t+1,r)}function rq(e,t,r,n){let o="",i="",s=!0;for(let a of e){if(a.type==="text"){o+=gn(a.value),i+=a.value,s||(s=a.value.includes(t));continue}if(a.type==="param"||a.type==="wildcard"){if(!s&&!i)throw new Li(`Missing text before "${a.name}" ${a.type}`,n);a.type==="param"?o+=`(${nq(t,s?"":i)}+)`:o+="([\\s\\S]+)",r.push(a),i="",s=!1;continue}}return o}function nq(e,t){return t.length<2?e.length<2?`[^${gn(e+t)}]`:`(?:(?!${gn(e)})[^${gn(t)}])`:e.length<2?`(?:(?!${gn(t)})[^${gn(e)}])`:`(?:(?!${gn(t)}|${gn(e)})[\\s\\S])`}function vM(e){let t="",r=0;function n(o){return iq(o)&&sq(e[r])?o:JSON.stringify(o)}for(;r<e.length;){let o=e[r++];if(o.type==="text"){t+=ZW(o.value);continue}if(o.type==="group"){t+=`{${vM(o.tokens)}}`;continue}if(o.type==="param"){t+=`:${n(o.name)}`;continue}if(o.type==="wildcard"){t+=`*${n(o.name)}`;continue}throw new TypeError(`Unknown token type: ${o.type}`)}return t}function oq(e){return vM(e.tokens)}function iq(e){let[t,...r]=e;return xM.test(t)&&r.every(n=>Ey.test(n))}function sq(e){return e&&e.type==="text"?!Ey.test(e.value[0]):!0}});var Qy=q((Vy,Gy)=>{(function(e,t){typeof Vy=="object"&&typeof Gy<"u"?Gy.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.SweetScroll=t())})(Vy,function(){"use strict";var e=function(){return e=Object.assign||function(w){for(var C,D=1,N=arguments.length;D<N;D++){C=arguments[D];for(var oe in C)Object.prototype.hasOwnProperty.call(C,oe)&&(w[oe]=C[oe])}return w},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 E=!1;if(!t)return E;try{var w=window,C=Object.defineProperty({},"passive",{get:function(){E=!0}});w.addEventListener("test",null,C),w.removeEventListener("test",null,C)}catch{}return E})(),o=function(E){return typeof E=="string"},i=function(E){return typeof E=="function"},s=function(E){return Array.isArray(E)},a=function(E){return!s(E)&&E-parseFloat(E)+1>=0},l=function(E,w){return E&&E.hasOwnProperty(w)},u=t?window.requestAnimationFrame.bind(window):null,c=t?window.cancelAnimationFrame.bind(window):null,f=Math.cos,p=Math.sin,m=Math.pow,h=Math.sqrt,d=Math.PI,g={linear:function(E){return E},easeInQuad:function(E,w,C,D,N){return D*(w/=N)*w+C},easeOutQuad:function(E,w,C,D,N){return-D*(w/=N)*(w-2)+C},easeInOutQuad:function(E,w,C,D,N){return(w/=N/2)<1?D/2*w*w+C:-D/2*(--w*(w-2)-1)+C},easeInCubic:function(E,w,C,D,N){return D*(w/=N)*w*w+C},easeOutCubic:function(E,w,C,D,N){return D*((w=w/N-1)*w*w+1)+C},easeInOutCubic:function(E,w,C,D,N){return(w/=N/2)<1?D/2*w*w*w+C:D/2*((w-=2)*w*w+2)+C},easeInQuart:function(E,w,C,D,N){return D*(w/=N)*w*w*w+C},easeOutQuart:function(E,w,C,D,N){return-D*((w=w/N-1)*w*w*w-1)+C},easeInOutQuart:function(E,w,C,D,N){return(w/=N/2)<1?D/2*w*w*w*w+C:-D/2*((w-=2)*w*w*w-2)+C},easeInQuint:function(E,w,C,D,N){return D*(w/=N)*w*w*w*w+C},easeOutQuint:function(E,w,C,D,N){return D*((w=w/N-1)*w*w*w*w+1)+C},easeInOutQuint:function(E,w,C,D,N){return(w/=N/2)<1?D/2*w*w*w*w*w+C:D/2*((w-=2)*w*w*w*w+2)+C},easeInSine:function(E,w,C,D,N){return-D*f(w/N*(d/2))+D+C},easeOutSine:function(E,w,C,D,N){return D*p(w/N*(d/2))+C},easeInOutSine:function(E,w,C,D,N){return-D/2*(f(d*w/N)-1)+C},easeInExpo:function(E,w,C,D,N){return w===0?C:D*m(2,10*(w/N-1))+C},easeOutExpo:function(E,w,C,D,N){return w===N?C+D:D*(-m(2,-10*w/N)+1)+C},easeInOutExpo:function(E,w,C,D,N){return w===0?C:w===N?C+D:(w/=N/2)<1?D/2*m(2,10*(w-1))+C:D/2*(-m(2,-10*--w)+2)+C},easeInCirc:function(E,w,C,D,N){return-D*(h(1-(w/=N)*w)-1)+C},easeOutCirc:function(E,w,C,D,N){return D*h(1-(w=w/N-1)*w)+C},easeInOutCirc:function(E,w,C,D,N){return(w/=N/2)<1?-D/2*(h(1-w*w)-1)+C:D/2*(h(1-(w-=2)*w)+1)+C}},y=function(E){return Array.prototype.slice.call(E?document.querySelectorAll(E):[])},S=function(E){return y(E).shift()||null},k=function(E){return E instanceof Element},z=function(E){return E===window},R=function(E){return E===document.documentElement||E===document.body},T=function(E,w){if(k(w))return E===w;for(var C=y(w),D=C.length;--D>=0&&C[D]!==E;);return D>-1},$=function(E){return Math.max(E.scrollHeight,E.clientHeight,E.offsetHeight)},te=function(E){return Math.max(E.scrollWidth,E.clientWidth,E.offsetWidth)},Y=function(E){return{width:te(E),height:$(E)}},A=function(E){var w=z(E)||R(E);return{viewport:{width:w?Math.min(window.innerWidth,document.documentElement.clientWidth):E.clientWidth,height:w?window.innerHeight:E.clientHeight},size:w?{width:Math.max(te(document.body),te(document.documentElement)),height:Math.max($(document.body),$(document.documentElement))}:Y(E)}},Pe={y:"scrollTop",x:"scrollLeft"},j={y:"pageYOffset",x:"pageXOffset"},I=function(E,w){return z(E)?E[j[w]]:E[Pe[w]]},_=function(E,w,C){if(z(E)){var D=C==="y";E.scrollTo(D?E.pageXOffset:w,D?w:E.pageYOffset)}else E[Pe[C]]=w},F=function(E,w){var C=E.getBoundingClientRect();if(C.width||C.height){var D={top:0,left:0},N=void 0;if(z(w)||R(w))N=document.documentElement,D.top=window[j.y],D.left=window[j.x];else{N=w;var oe=N.getBoundingClientRect();D.top=oe.top*-1+N[Pe.y],D.left=oe.left*-1+N[Pe.x]}return{top:C.top+D.top-N.clientTop,left:C.left+D.left-N.clientLeft}}return C},B=(function(){return t?"onwheel"in document?"wheel":"mousewheel":"wheel"})(),V=function(E){return E==="wheel"?B:E},K=function(E,w,C,D,N){C.split(" ").forEach(function(oe){E[w](V(oe),D,n?{passive:N}:!1)})},he=function(E,w,C,D){return K(E,"addEventListener",w,C,D)},b=function(E,w,C,D){return K(E,"removeEventListener",w,C,D)},Se=/^(\+|-)=(\d+(?:\.\d+)?)$/,De=function(E,w){var C={top:0,left:0,relative:!1};if(l(E,"top")||l(E,"left"))C=e({},C,E);else if(s(E))if(E.length>1)C.top=E[0],C.left=E[1];else if(E.length===1)C.top=w?E[0]:0,C.left=w?0:E[0];else return null;else if(a(E))w?C.top=E:C.left=E;else if(o(E)){var D=E.trim().match(Se);if(!D)return null;var N=D[1],oe=parseInt(D[2],10);N==="+"?(C.top=w?oe:0,C.left=w?0:oe):(C.top=w?-oe:0,C.left=w?0:-oe),C.relative=!0}else return null;return C},v={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},qe="click",at="wheel touchstart touchmove",or=(function(){function E(w,C){var D=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(oe){var $e=D,Le=$e.$el,Ae=$e.ctx;if(Ae.start||(Ae.start=oe),!Ae.progress||!Le){D.stop();return}var Xt=Ae.opts,yt=Ae.pos,zt=Ae.start,Ar=Ae.startPos,qr=Ae.easing,ir=Xt.duration,dr={top:"y",left:"x"},Zt=oe-zt,Je=Math.min(1,Math.max(Zt/ir,0));Object.keys(yt).forEach(function(Yr){var M=yt[Yr],H=Ar[Yr],ue=M-H;if(ue!==0){var de=qr(Je,ir*Je,0,1,ir);_(Le,Math.round(H+ue*de),dr[Yr])}}),Zt<=ir?(D.hook(Xt,"step",Je),Ae.id=E.raf(D.loop)):D.stop(!0)},this.handleClick=function(oe){for(var $e=D.opts,Le=oe.target;Le&&Le!==document;Le=Le.parentNode)if(T(Le,$e.trigger)){var Ae=JSON.parse(Le.getAttribute("data-scroll-options")||"{}"),Xt=Le.getAttribute("data-scroll"),yt=Xt||Le.getAttribute("href"),zt=e({},$e,Ae),Ar=zt.preventDefault,qr=zt.stopPropagation,ir=zt.vertical,dr=zt.horizontal;Ar&&oe.preventDefault(),qr&&oe.stopPropagation(),D.ctx.$trigger=Le,dr&&ir?D.to(yt,zt):ir?D.toTop(yt,zt):dr&&D.toLeft(yt,zt);break}},this.handleStop=function(oe){var $e=D.ctx,Le=$e.opts;Le&&Le.cancellable?($e.cancel=!0,D.stop()):oe.preventDefault()},this.opts=e({},v,w||{});var N=null;t&&(typeof C=="string"?N=S(C):C!=null?N=C:N=window),this.$el=N,N&&this.bind(!0,!1)}return E.create=function(w,C){return new E(w,C)},E.prototype.to=function(w,C){if(t){var D=this,N=D.$el,oe=D.ctx,$e=D.opts,Le=oe.$trigger,Ae=e({},$e,C||{}),Xt=Ae.offset,yt=Ae.vertical,zt=Ae.horizontal,Ar=k(Ae.header)?Ae.header:S(Ae.header),qr=/^#/,ir=o(w)&&qr.test(w)?w:null;if(oe.opts=Ae,oe.cancel=!1,oe.hash=ir,this.stop(),!!N){var dr=De(Xt,yt),Zt=De(w,yt),Je={top:0,left:0};if(Zt)if(Zt.relative){var Yr=I(N,yt?"y":"x");Je.top=yt?Yr+Zt.top:Zt.top,Je.left=yt?Zt.left:Yr+Zt.left}else Je=Zt;else if(o(w)&&w!=="#"){var M=S(w);if(!M)return;Je=F(M,N)}dr&&(Je.top+=dr.top,Je.left+=dr.left),Ar&&(Je.top=Math.max(0,Je.top-Y(Ar).height));var H=A(N),ue=H.viewport,de=H.size;if(Je.top=yt?Math.max(0,Math.min(de.height-ue.height,Je.top)):I(N,"y"),Je.left=zt?Math.max(0,Math.min(de.width-ue.width,Je.left)):I(N,"x"),this.hook(Ae,"before",Je,Le)===!1){oe.opts=null;return}oe.pos=Je,this.start(Ae),this.bind(!1,!0)}}},E.prototype.toTop=function(w,C){this.to(w,e({},C||{},{vertical:!0,horizontal:!1}))},E.prototype.toLeft=function(w,C){this.to(w,e({},C||{},{vertical:!1,horizontal:!0}))},E.prototype.toElement=function(w,C){var D=this.$el;!t||!D||this.to(F(w,D),C||{})},E.prototype.stop=function(w){w===void 0&&(w=!1);var C=this,D=C.$el,N=C.ctx,oe=N.pos;!D||!N.progress||(E.caf(N.id),N.progress=!1,N.start=0,N.id=0,w&&oe&&(_(D,oe.left,"x"),_(D,oe.top,"y")),this.complete())},E.prototype.update=function(w){if(this.$el){var C=e({},this.opts,w);this.stop(),this.unbind(!0,!0),this.opts=C,this.bind(!0,!1)}},E.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},E.prototype.onBefore=function(w,C){return!0},E.prototype.onStep=function(w){},E.prototype.onAfter=function(w,C){},E.prototype.onCancel=function(){},E.prototype.onComplete=function(w){},E.prototype.start=function(w){var C=this.ctx;C.opts=w,C.progress=!0,C.easing=i(w.easing)?w.easing:g[w.easing];var D=this.$el,N={top:I(D,"y"),left:I(D,"x")};C.startPos=N,C.id=E.raf(this.loop)},E.prototype.complete=function(){var w=this,C=w.$el,D=w.ctx,N=D.hash,oe=D.cancel,$e=D.opts,Le=D.pos,Ae=D.$trigger;if(!(!C||!$e)){if(N!=null&&N!==window.location.hash){var Xt=$e.updateURL;t&&r&&Xt!==!1&&window.history[Xt==="replace"?"replaceState":"pushState"](null,"",N)}this.unbind(!1,!0),D.opts=null,D.$trigger=null,oe?this.hook($e,"cancel"):this.hook($e,"after",Le,Ae),this.hook($e,"complete",oe)}},E.prototype.hook=function(w,C){for(var D=[],N=2;N<arguments.length;N++)D[N-2]=arguments[N];var oe,$e=w[C],Le,Ae;return i($e)&&(Le=$e.apply(this,D.concat([this]))),Ae=(oe=this)["on"+(C[0].toUpperCase()+C.slice(1))].apply(oe,D),Le!==void 0?Le:Ae},E.prototype.bind=function(w,C){var D=this,N=D.$el,oe=D.ctx.opts;N&&(w&&he(N,qe,this.handleClick,!1),C&&he(N,at,this.handleStop,oe?oe.cancellable:!0))},E.prototype.unbind=function(w,C){var D=this,N=D.$el,oe=D.ctx.opts;N&&(w&&b(N,qe,this.handleClick,!1),C&&b(N,at,this.handleStop,oe?oe.cancellable:!0))},E.raf=u,E.caf=c,E})();return or})});var i_=q((_qe,o_)=>{o_.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var No=q(ji=>{var Bb,BY=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];ji.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},ji.getSymbolTotalCodewords=function(t){return BY[t]},ji.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},ji.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Bb=t},ji.isKanjiModeEnabled=function(){return typeof Bb<"u"},ji.toSJIS=function(t){return Bb(t)}});var Gm=q(Dr=>{Dr.L={bit:1},Dr.M={bit:0},Dr.Q={bit:3},Dr.H={bit:2};function $Y(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Dr.L;case"m":case"medium":return Dr.M;case"q":case"quartile":return Dr.Q;case"h":case"high":return Dr.H;default:throw new Error("Unknown EC Level: "+e)}}Dr.isValid=function(t){return t&&typeof t.bit<"u"&&t.bit>=0&&t.bit<4},Dr.from=function(t,r){if(Dr.isValid(t))return t;try{return $Y(t)}catch{return r}}});var l_=q((Pqe,a_)=>{function s_(){this.buffer=[],this.length=0}s_.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},a_.exports=s_});var c_=q((Fqe,u_)=>{function eu(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}eu.prototype.set=function(e,t,r,n){let o=e*this.size+t;this.data[o]=r,n&&(this.reservedBit[o]=!0)},eu.prototype.get=function(e,t){return this.data[e*this.size+t]},eu.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},eu.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},u_.exports=eu});var f_=q(Qm=>{var zY=No().getSymbolSize;Qm.getRowColCoords=function(t){if(t===1)return[];let r=Math.floor(t/7)+2,n=zY(t),o=n===145?26:Math.ceil((n-13)/(2*r-2))*2,i=[n-7];for(let s=1;s<r-1;s++)i[s]=i[s-1]-o;return i.push(6),i.reverse()},Qm.getPositions=function(t){let r=[],n=Qm.getRowColCoords(t),o=n.length;for(let i=0;i<o;i++)for(let s=0;s<o;s++)i===0&&s===0||i===0&&s===o-1||i===o-1&&s===0||r.push([n[i],n[s]]);return r}});var h_=q(m_=>{var HY=No().getSymbolSize,p_=7;m_.getPositions=function(t){let r=HY(t);return[[0,0],[r-p_,0],[0,r-p_]]}});var d_=q(We=>{We.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Wi={N1:3,N2:3,N3:40,N4:10};We.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},We.from=function(t){return We.isValid(t)?parseInt(t,10):void 0},We.getPenaltyN1=function(t){let r=t.size,n=0,o=0,i=0,s=null,a=null;for(let l=0;l<r;l++){o=i=0,s=a=null;for(let u=0;u<r;u++){let c=t.get(l,u);c===s?o++:(o>=5&&(n+=Wi.N1+(o-5)),s=c,o=1),c=t.get(u,l),c===a?i++:(i>=5&&(n+=Wi.N1+(i-5)),a=c,i=1)}o>=5&&(n+=Wi.N1+(o-5)),i>=5&&(n+=Wi.N1+(i-5))}return n},We.getPenaltyN2=function(t){let r=t.size,n=0;for(let o=0;o<r-1;o++)for(let i=0;i<r-1;i++){let s=t.get(o,i)+t.get(o,i+1)+t.get(o+1,i)+t.get(o+1,i+1);(s===4||s===0)&&n++}return n*Wi.N2},We.getPenaltyN3=function(t){let r=t.size,n=0,o=0,i=0;for(let s=0;s<r;s++){o=i=0;for(let a=0;a<r;a++)o=o<<1&2047|t.get(s,a),a>=10&&(o===1488||o===93)&&n++,i=i<<1&2047|t.get(a,s),a>=10&&(i===1488||i===93)&&n++}return n*Wi.N3},We.getPenaltyN4=function(t){let r=0,n=t.data.length;for(let i=0;i<n;i++)r+=t.data[i];return Math.abs(Math.ceil(r*100/n/5)-10)*Wi.N4};function UY(e,t,r){switch(e){case We.Patterns.PATTERN000:return(t+r)%2===0;case We.Patterns.PATTERN001:return t%2===0;case We.Patterns.PATTERN010:return r%3===0;case We.Patterns.PATTERN011:return(t+r)%3===0;case We.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case We.Patterns.PATTERN101:return t*r%2+t*r%3===0;case We.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case We.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}We.applyMask=function(t,r){let n=r.size;for(let o=0;o<n;o++)for(let i=0;i<n;i++)r.isReserved(i,o)||r.xor(i,o,UY(t,i,o))},We.getBestMask=function(t,r){let n=Object.keys(We.Patterns).length,o=0,i=1/0;for(let s=0;s<n;s++){r(s),We.applyMask(s,t);let a=We.getPenaltyN1(t)+We.getPenaltyN2(t)+We.getPenaltyN3(t)+We.getPenaltyN4(t);We.applyMask(s,t),a<i&&(i=a,o=s)}return o}});var zb=q($b=>{var Po=Gm(),Jm=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Xm=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];$b.getBlocksCount=function(t,r){switch(r){case Po.L:return Jm[(t-1)*4+0];case Po.M:return Jm[(t-1)*4+1];case Po.Q:return Jm[(t-1)*4+2];case Po.H:return Jm[(t-1)*4+3];default:return}},$b.getTotalCodewordsCount=function(t,r){switch(r){case Po.L:return Xm[(t-1)*4+0];case Po.M:return Xm[(t-1)*4+1];case Po.Q:return Xm[(t-1)*4+2];case Po.H:return Xm[(t-1)*4+3];default:return}}});var g_=q(Km=>{var tu=new Uint8Array(512),Zm=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)tu[r]=t,Zm[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)tu[r]=tu[r-255]})(),Km.log=function(t){if(t<1)throw new Error("log("+t+")");return Zm[t]},Km.exp=function(t){return tu[t]},Km.mul=function(t,r){return t===0||r===0?0:tu[Zm[t]+Zm[r]]}});var x_=q(ru=>{var Hb=g_();ru.mul=function(t,r){let n=new Uint8Array(t.length+r.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<r.length;i++)n[o+i]^=Hb.mul(t[o],r[i]);return n},ru.mod=function(t,r){let n=new Uint8Array(t);for(;n.length-r.length>=0;){let o=n[0];for(let s=0;s<r.length;s++)n[s]^=Hb.mul(r[s],o);let i=0;for(;i<n.length&&n[i]===0;)i++;n=n.slice(i)}return n},ru.generateECPolynomial=function(t){let r=new Uint8Array([1]);for(let n=0;n<t;n++)r=ru.mul(r,new Uint8Array([1,Hb.exp(n)]));return r}});var w_=q((Uqe,b_)=>{var y_=x_();function Ub(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Ub.prototype.initialize=function(t){this.degree=t,this.genPoly=y_.generateECPolynomial(this.degree)},Ub.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(t.length+this.degree);r.set(t);let n=y_.mod(r,this.genPoly),o=this.degree-n.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(n,o),i}return n},b_.exports=Ub});var jb=q(v_=>{v_.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var Wb=q(Ln=>{var S_="[0-9]+",jY="[A-Z $%*+\\-./:]+",nu="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";nu=nu.replace(/u/g,"\\u");var WY="(?:(?![A-Z0-9 $%*+\\-./:]|"+nu+`)(?:.|[\r
31
+ ]))+`;Ln.KANJI=new RegExp(nu,"g"),Ln.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ln.BYTE=new RegExp(WY,"g"),Ln.NUMERIC=new RegExp(S_,"g"),Ln.ALPHANUMERIC=new RegExp(jY,"g");var qY=new RegExp("^"+nu+"$"),YY=new RegExp("^"+S_+"$"),VY=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Ln.testKanji=function(t){return qY.test(t)},Ln.testNumeric=function(t){return YY.test(t)},Ln.testAlphanumeric=function(t){return VY.test(t)}});var Fo=q(mt=>{var GY=jb(),qb=Wb();mt.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},mt.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},mt.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},mt.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},mt.MIXED={bit:-1},mt.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!GY.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]},mt.getBestModeForData=function(t){return qb.testNumeric(t)?mt.NUMERIC:qb.testAlphanumeric(t)?mt.ALPHANUMERIC:qb.testKanji(t)?mt.KANJI:mt.BYTE},mt.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},mt.isValid=function(t){return t&&t.bit&&t.ccBits};function QY(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return mt.NUMERIC;case"alphanumeric":return mt.ALPHANUMERIC;case"kanji":return mt.KANJI;case"byte":return mt.BYTE;default:throw new Error("Unknown mode: "+e)}}mt.from=function(t,r){if(mt.isValid(t))return t;try{return QY(t)}catch{return r}}});var D_=q(qi=>{var eh=No(),JY=zb(),k_=Gm(),Lo=Fo(),Yb=jb(),T_=7973,E_=eh.getBCHDigit(T_);function XY(e,t,r){for(let n=1;n<=40;n++)if(t<=qi.getCapacity(n,r,e))return n}function C_(e,t){return Lo.getCharCountIndicator(e,t)+4}function ZY(e,t){let r=0;return e.forEach(function(n){let o=C_(n.mode,t);r+=o+n.getBitsLength()}),r}function KY(e,t){for(let r=1;r<=40;r++)if(ZY(e,r)<=qi.getCapacity(r,t,Lo.MIXED))return r}qi.from=function(t,r){return Yb.isValid(t)?parseInt(t,10):r},qi.getCapacity=function(t,r,n){if(!Yb.isValid(t))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=Lo.BYTE);let o=eh.getSymbolTotalCodewords(t),i=JY.getTotalCodewordsCount(t,r),s=(o-i)*8;if(n===Lo.MIXED)return s;let a=s-C_(n,t);switch(n){case Lo.NUMERIC:return Math.floor(a/10*3);case Lo.ALPHANUMERIC:return Math.floor(a/11*2);case Lo.KANJI:return Math.floor(a/13);case Lo.BYTE:default:return Math.floor(a/8)}},qi.getBestVersionForData=function(t,r){let n,o=k_.from(r,k_.M);if(Array.isArray(t)){if(t.length>1)return KY(t,o);if(t.length===0)return 1;n=t[0]}else n=t;return XY(n.mode,n.getLength(),o)},qi.getEncodedBits=function(t){if(!Yb.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;eh.getBCHDigit(r)-E_>=0;)r^=T_<<eh.getBCHDigit(r)-E_;return t<<12|r}});var __=q(M_=>{var Vb=No(),A_=1335,e9=21522,I_=Vb.getBCHDigit(A_);M_.getEncodedBits=function(t,r){let n=t.bit<<3|r,o=n<<10;for(;Vb.getBCHDigit(o)-I_>=0;)o^=A_<<Vb.getBCHDigit(o)-I_;return(n<<10|o)^e9}});var N_=q((Gqe,O_)=>{var t9=Fo();function da(e){this.mode=t9.NUMERIC,this.data=e.toString()}da.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},da.prototype.getLength=function(){return this.data.length},da.prototype.getBitsLength=function(){return da.getBitsLength(this.data.length)},da.prototype.write=function(t){let r,n,o;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),o=parseInt(n,10),t.put(o,10);let i=this.data.length-r;i>0&&(n=this.data.substr(r),o=parseInt(n,10),t.put(o,i*3+1))},O_.exports=da});var F_=q((Qqe,P_)=>{var r9=Fo(),Gb=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ga(e){this.mode=r9.ALPHANUMERIC,this.data=e}ga.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},ga.prototype.getLength=function(){return this.data.length},ga.prototype.getBitsLength=function(){return ga.getBitsLength(this.data.length)},ga.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let n=Gb.indexOf(this.data[r])*45;n+=Gb.indexOf(this.data[r+1]),t.put(n,11)}this.data.length%2&&t.put(Gb.indexOf(this.data[r]),6)},P_.exports=ga});var R_=q((Jqe,L_)=>{var n9=Fo();function xa(e){this.mode=n9.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}xa.getBitsLength=function(t){return t*8},xa.prototype.getLength=function(){return this.data.length},xa.prototype.getBitsLength=function(){return xa.getBitsLength(this.data.length)},xa.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},L_.exports=xa});var $_=q((Xqe,B_)=>{var o9=Fo(),i9=No();function ya(e){this.mode=o9.KANJI,this.data=e}ya.getBitsLength=function(t){return t*13},ya.prototype.getLength=function(){return this.data.length},ya.prototype.getBitsLength=function(){return ya.getBitsLength(this.data.length)},ya.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=i9.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
32
+ Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}},B_.exports=ya});var z_=q((Zqe,Qb)=>{"use strict";var ou={single_source_shortest_paths:function(e,t,r){var n={},o={};o[t]=0;var i=ou.PriorityQueue.make();i.push(t,0);for(var s,a,l,u,c,f,p,m,h;!i.empty();){s=i.pop(),a=s.value,u=s.cost,c=e[a]||{};for(l in c)c.hasOwnProperty(l)&&(f=c[l],p=u+f,m=o[l],h=typeof o[l]>"u",(h||m>p)&&(o[l]=p,i.push(l,p),n[l]=a))}if(typeof r<"u"&&typeof o[r]>"u"){var d=["Could not find a path from ",t," to ",r,"."].join("");throw new Error(d)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t,o;n;)r.push(n),o=e[n],n=e[n];return r.reverse(),r},find_path:function(e,t,r){var n=ou.single_source_shortest_paths(e,t,r);return ou.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(e){var t=ou.PriorityQueue,r={},n;e=e||{};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Qb<"u"&&(Qb.exports=ou)});var G_=q(ba=>{var _e=Fo(),H_=N_(),U_=F_(),j_=R_(),W_=$_(),iu=Wb(),th=No(),s9=z_();function q_(e){return unescape(encodeURIComponent(e)).length}function su(e,t,r){let n=[],o;for(;(o=e.exec(r))!==null;)n.push({data:o[0],index:o.index,mode:t,length:o[0].length});return n}function Y_(e){let t=su(iu.NUMERIC,_e.NUMERIC,e),r=su(iu.ALPHANUMERIC,_e.ALPHANUMERIC,e),n,o;return th.isKanjiModeEnabled()?(n=su(iu.BYTE,_e.BYTE,e),o=su(iu.KANJI,_e.KANJI,e)):(n=su(iu.BYTE_KANJI,_e.BYTE,e),o=[]),t.concat(r,n,o).sort(function(s,a){return s.index-a.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function Jb(e,t){switch(t){case _e.NUMERIC:return H_.getBitsLength(e);case _e.ALPHANUMERIC:return U_.getBitsLength(e);case _e.KANJI:return W_.getBitsLength(e);case _e.BYTE:return j_.getBitsLength(e)}}function a9(e){return e.reduce(function(t,r){let n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===r.mode?(t[t.length-1].data+=r.data,t):(t.push(r),t)},[])}function l9(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case _e.NUMERIC:t.push([n,{data:n.data,mode:_e.ALPHANUMERIC,length:n.length},{data:n.data,mode:_e.BYTE,length:n.length}]);break;case _e.ALPHANUMERIC:t.push([n,{data:n.data,mode:_e.BYTE,length:n.length}]);break;case _e.KANJI:t.push([n,{data:n.data,mode:_e.BYTE,length:q_(n.data)}]);break;case _e.BYTE:t.push([{data:n.data,mode:_e.BYTE,length:q_(n.data)}])}}return t}function u9(e,t){let r={},n={start:{}},o=["start"];for(let i=0;i<e.length;i++){let s=e[i],a=[];for(let l=0;l<s.length;l++){let u=s[l],c=""+i+l;a.push(c),r[c]={node:u,lastCount:0},n[c]={};for(let f=0;f<o.length;f++){let p=o[f];r[p]&&r[p].node.mode===u.mode?(n[p][c]=Jb(r[p].lastCount+u.length,u.mode)-Jb(r[p].lastCount,u.mode),r[p].lastCount+=u.length):(r[p]&&(r[p].lastCount=u.length),n[p][c]=Jb(u.length,u.mode)+4+_e.getCharCountIndicator(u.mode,t))}}o=a}for(let i=0;i<o.length;i++)n[o[i]].end=0;return{map:n,table:r}}function V_(e,t){let r,n=_e.getBestModeForData(e);if(r=_e.from(t,n),r!==_e.BYTE&&r.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+_e.toString(r)+`.
33
+ Suggested mode is: `+_e.toString(n));switch(r===_e.KANJI&&!th.isKanjiModeEnabled()&&(r=_e.BYTE),r){case _e.NUMERIC:return new H_(e);case _e.ALPHANUMERIC:return new U_(e);case _e.KANJI:return new W_(e);case _e.BYTE:return new j_(e)}}ba.fromArray=function(t){return t.reduce(function(r,n){return typeof n=="string"?r.push(V_(n,null)):n.data&&r.push(V_(n.data,n.mode)),r},[])},ba.fromString=function(t,r){let n=Y_(t,th.isKanjiModeEnabled()),o=l9(n),i=u9(o,r),s=s9.find_path(i.map,"start","end"),a=[];for(let l=1;l<s.length-1;l++)a.push(i.table[s[l]].node);return ba.fromArray(a9(a))},ba.rawSplit=function(t){return ba.fromArray(Y_(t,th.isKanjiModeEnabled()))}});var J_=q(Q_=>{var rh=No(),Xb=Gm(),c9=l_(),f9=c_(),p9=f_(),m9=h_(),Zb=d_(),Kb=zb(),h9=w_(),nh=D_(),d9=__(),g9=Fo(),e0=G_();function x9(e,t){let r=e.size,n=m9.getPositions(t);for(let o=0;o<n.length;o++){let i=n[o][0],s=n[o][1];for(let a=-1;a<=7;a++)if(!(i+a<=-1||r<=i+a))for(let l=-1;l<=7;l++)s+l<=-1||r<=s+l||(a>=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?e.set(i+a,s+l,!0,!0):e.set(i+a,s+l,!1,!0))}}function y9(e){let t=e.size;for(let r=8;r<t-8;r++){let n=r%2===0;e.set(r,6,n,!0),e.set(6,r,n,!0)}}function b9(e,t){let r=p9.getPositions(t);for(let n=0;n<r.length;n++){let o=r[n][0],i=r[n][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?e.set(o+s,i+a,!0,!0):e.set(o+s,i+a,!1,!0)}}function w9(e,t){let r=e.size,n=nh.getEncodedBits(t),o,i,s;for(let a=0;a<18;a++)o=Math.floor(a/3),i=a%3+r-8-3,s=(n>>a&1)===1,e.set(o,i,s,!0),e.set(i,o,s,!0)}function t0(e,t,r){let n=e.size,o=d9.getEncodedBits(t,r),i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(n-15+i,8,s,!0),i<8?e.set(8,n-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(n-8,8,1,!0)}function v9(e,t){let r=e.size,n=-1,o=r-1,i=7,s=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!e.isReserved(o,a-l)){let u=!1;s<t.length&&(u=(t[s]>>>i&1)===1),e.set(o,a-l,u),i--,i===-1&&(s++,i=7)}if(o+=n,o<0||r<=o){o-=n,n=-n;break}}}function S9(e,t,r){let n=new c9;r.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),g9.getCharCountIndicator(l.mode,e)),l.write(n)});let o=rh.getSymbolTotalCodewords(e),i=Kb.getTotalCodewordsCount(e,t),s=(o-i)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let a=(s-n.getLengthInBits())/8;for(let l=0;l<a;l++)n.put(l%2?17:236,8);return k9(n,e,t)}function k9(e,t,r){let n=rh.getSymbolTotalCodewords(t),o=Kb.getTotalCodewordsCount(t,r),i=n-o,s=Kb.getBlocksCount(t,r),a=n%s,l=s-a,u=Math.floor(n/s),c=Math.floor(i/s),f=c+1,p=u-c,m=new h9(p),h=0,d=new Array(s),g=new Array(s),y=0,S=new Uint8Array(e.buffer);for(let $=0;$<s;$++){let te=$<l?c:f;d[$]=S.slice(h,h+te),g[$]=m.encode(d[$]),h+=te,y=Math.max(y,te)}let k=new Uint8Array(n),z=0,R,T;for(R=0;R<y;R++)for(T=0;T<s;T++)R<d[T].length&&(k[z++]=d[T][R]);for(R=0;R<p;R++)for(T=0;T<s;T++)k[z++]=g[T][R];return k}function T9(e,t,r,n){let o;if(Array.isArray(e))o=e0.fromArray(e);else if(typeof e=="string"){let u=t;if(!u){let c=e0.rawSplit(e);u=nh.getBestVersionForData(c,r)}o=e0.fromString(e,u||40)}else throw new Error("Invalid data");let i=nh.getBestVersionForData(o,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
38
34
  The chosen QR Code version cannot contain this amount of data.
39
- Minimum version required to store current data is: `+o+`.
40
- `);let s=p4(t,r,i),a=gc.getSymbolSize(t),l=new t4(a);return a4(l,t),l4(l),u4(l,t),Nd(l,r,0),t>=7&&c4(l,t),f4(l,s),isNaN(n)&&(n=Fd.getBestMask(l,Nd.bind(null,l,r))),Fd.applyMask(n,l),Nd(l,r,n),{modules:l,version:t,errorCorrectionLevel:r,maskPattern:n,segments:i}}HC.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=Dd.M,i,o;return typeof r<"u"&&(n=Dd.from(r.errorCorrectionLevel,Dd.M),i=dc.from(r.version),o=Fd.from(r.maskPattern),r.toSJISFunc&&gc.setToSJISFunction(r.toSJISFunc)),m4(t,i,n,o)}});var Ld=N(fi=>{function WC(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+t.slice(0,6).join("")}}fi.getOptions=function(t){t||(t={}),t.color||(t.color={});let r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:r,color:{dark:WC(t.color.dark||"#000000ff"),light:WC(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};fi.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale};fi.getImageWidth=function(t,r){let n=fi.getScale(t,r);return Math.floor((t+r.margin*2)*n)};fi.qrToImageData=function(t,r,n){let i=r.modules.size,o=r.modules.data,s=fi.getScale(i,n),a=Math.floor((i+n.margin*2)*s),l=n.margin*s,u=[n.color.light,n.color.dark];for(let c=0;c<a;c++)for(let f=0;f<a;f++){let p=(c*a+f)*4,h=n.color.light;if(c>=l&&f>=l&&c<a-l&&f<a-l){let m=Math.floor((c-l)/s),x=Math.floor((f-l)/s);h=u[o[m*i+x]?1:0]}t[p++]=h.r,t[p++]=h.g,t[p++]=h.b,t[p]=h.a}}});var YC=N(yc=>{var Bd=Ld();function d4(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}function g4(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}yc.render=function(t,r,n){let i=n,o=r;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),r||(o=g4()),i=Bd.getOptions(i);let s=Bd.getImageWidth(t.modules.size,i),a=o.getContext("2d"),l=a.createImageData(s,s);return Bd.qrToImageData(l.data,t,i),d4(a,o,s),a.putImageData(l,0,0),o};yc.renderToDataURL=function(t,r,n){let i=n;typeof i>"u"&&(!r||!r.getContext)&&(i=r,r=void 0),i||(i={});let o=yc.render(t,r,i),s=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(s,a.quality)}});var QC=N(JC=>{var y4=Ld();function GC(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function $d(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function x4(e,t,r){let n="",i=0,o=!1,s=0;for(let a=0;a<e.length;a++){let l=Math.floor(a%t),u=Math.floor(a/t);!l&&!o&&(o=!0),e[a]?(s++,a>0&&l>0&&e[a-1]||(n+=o?$d("M",l+r,.5+u+r):$d("m",i,0),i=0,o=!1),l+1<t&&e[a+1]||(n+=$d("h",s),s=0)):i++}return n}JC.render=function(t,r,n){let i=y4.getOptions(r),o=t.modules.size,s=t.modules.data,a=o+i.margin*2,l=i.color.light.a?"<path "+GC(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",u="<path "+GC(i.color.dark,"stroke")+' d="'+x4(s,o,i.margin)+'"/>',c='viewBox="0 0 '+a+" "+a+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+c+' shape-rendering="crispEdges">'+l+u+`</svg>
41
- `;return typeof n=="function"&&n(null,p),p}});var XC=N(ua=>{var b4=eC(),Ud=VC(),ZC=YC(),w4=QC();function jd(e,t,r,n,i){let o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!b4())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(i=r,r=t,t=n=void 0):s===3&&(t.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=n=void 0):s===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(l,u){try{let c=Ud.create(r,n);l(e(c,t,n))}catch(c){u(c)}})}try{let l=Ud.create(r,n);i(null,e(l,t,n))}catch(l){i(l)}}ua.create=Ud.create;ua.toCanvas=jd.bind(null,ZC.render);ua.toDataURL=jd.bind(null,ZC.renderToDataURL);ua.toString=jd.bind(null,function(e,t,r){return w4.render(e,r)})});var pa=globalThis,ha=pa.ShadowRoot&&(pa.ShadyCSS===void 0||pa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bc=Symbol(),qd=new WeakMap,Oo=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==bc)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(ha&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=qd.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&qd.set(r,t))}return t}toString(){return this.cssText}},le=e=>new Oo(typeof e=="string"?e:e+"",void 0,bc),xe=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((n,i,o)=>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.")})(i)+e[o+1],e[0]);return new Oo(r,e,bc)},wc=(e,t)=>{if(ha)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=pa.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},ma=ha?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return le(r)})(e):e;var{is:aT,defineProperty:lT,getOwnPropertyDescriptor:uT,getOwnPropertyNames:cT,getOwnPropertySymbols:fT,getPrototypeOf:pT}=Object,da=globalThis,Hd=da.trustedTypes,hT=Hd?Hd.emptyScript:"",mT=da.reactiveElementPolyfillSupport,Do=(e,t)=>e,Mo={toAttribute(e,t){switch(t){case Boolean:e=e?hT: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}},ga=(e,t)=>!aT(e,t),Vd={attribute:!0,type:String,converter:Mo,reflect:!1,hasChanged:ga};Symbol.metadata??=Symbol("metadata"),da.litPropertyMetadata??=new WeakMap;var pr=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=Vd){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&lT(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:o}=uT(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let a=i?.call(this);o.call(this,s),this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Vd}static _$Ei(){if(this.hasOwnProperty(Do("elementProperties")))return;let t=pT(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Do("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Do("properties"))){let r=this.properties,n=[...cT(r),...fT(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,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 i of n)r.unshift(ma(i))}else t!==void 0&&r.push(ma(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 wc(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)}_$EC(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let o=(n.converter?.toAttribute!==void 0?n.converter:Mo).toAttribute(r,n.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=n.getPropertyOptions(i),s=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:Mo;this._$Em=i,this[i]=s.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){if(n??=this.constructor.getPropertyOptions(t),!(n.hasChanged??ga)(this[t],r))return;this.P(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,n){this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){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[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,o]of n)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}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._$EU()}catch(n){throw t=!1,this._$EU(),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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(t){}firstUpdated(t){}};pr.elementStyles=[],pr.shadowRootOptions={mode:"open"},pr[Do("elementProperties")]=new Map,pr[Do("finalized")]=new Map,mT?.({ReactiveElement:pr}),(da.reactiveElementVersions??=[]).push("2.0.4");var Sc=globalThis,ya=Sc.trustedTypes,Wd=ya?ya.createPolicy("lit-html",{createHTML:e=>e}):void 0,kc="$lit$",hr=`lit$${Math.random().toFixed(9).slice(2)}$`,Ac="?"+hr,dT=`<${Ac}>`,mn=document,Fo=()=>mn.createComment(""),Ro=e=>e===null||typeof e!="object"&&typeof e!="function",Cc=Array.isArray,Xd=e=>Cc(e)||typeof e?.[Symbol.iterator]=="function",vc=`[
42
- \f\r]`,No=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yd=/-->/g,Gd=/>/g,pn=RegExp(`>|${vc}(?:([^\\s"'>=/]+)(${vc}*=${vc}*(?:[^
43
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Jd=/'/g,Qd=/"/g,Kd=/^(?:script|style|textarea|title)$/i,Tc=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),J=Tc(1),T4=Tc(2),E4=Tc(3),je=Symbol.for("lit-noChange"),Re=Symbol.for("lit-nothing"),Zd=new WeakMap,hn=mn.createTreeWalker(mn,129);function eg(e,t){if(!Cc(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wd!==void 0?Wd.createHTML(t):t}var tg=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=No;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===No?c[1]==="!--"?s=Yd:c[1]!==void 0?s=Gd:c[2]!==void 0?(Kd.test(c[2])&&(i=RegExp("</"+c[2],"g")),s=pn):c[3]!==void 0&&(s=pn):s===pn?c[0]===">"?(s=i??No,f=-1):c[1]===void 0?f=-2:(f=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?pn:c[3]==='"'?Qd:Jd):s===Qd||s===Jd?s=pn:s===Yd||s===Gd?s=No:(s=pn,i=void 0);let h=s===pn&&e[a+1].startsWith("/>")?" ":"";o+=s===No?l+dT:f>=0?(n.push(u),l.slice(0,f)+kc+l.slice(f)+hr+h):l+hr+(f===-2?a:h)}return[eg(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Lo=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[u,c]=tg(t,r);if(this.el=e.createElement(u,n),hn.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=hn.nextNode())!==null&&l.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(kc)){let p=c[s++],h=i.getAttribute(f).split(hr),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?ba:m[1]==="?"?wa:m[1]==="@"?va:gn}),i.removeAttribute(f)}else f.startsWith(hr)&&(l.push({type:6,index:o}),i.removeAttribute(f));if(Kd.test(i.tagName)){let f=i.textContent.split(hr),p=f.length-1;if(p>0){i.textContent=ya?ya.emptyScript:"";for(let h=0;h<p;h++)i.append(f[h],Fo()),hn.nextNode(),l.push({type:2,index:++o});i.append(f[p],Fo())}}}else if(i.nodeType===8)if(i.data===Ac)l.push({type:2,index:o});else{let f=-1;for(;(f=i.data.indexOf(hr,f+1))!==-1;)l.push({type:7,index:o}),f+=hr.length-1}o++}}static createElement(t,r){let n=mn.createElement("template");return n.innerHTML=t,n}};function dn(e,t,r=e,n){if(t===je)return t;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=Ro(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(t=dn(e,i._$AS(e,t.values),i,n)),t}var xa=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,i=(t?.creationScope??mn).importNode(r,!0);hn.currentNode=i;let o=hn.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new hi(o,o.nextSibling,this,t):l.type===1?u=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(u=new Sa(o,this,t)),this._$AV.push(u),l=n[++a]}s!==l?.index&&(o=hn.nextNode(),s++)}return hn.currentNode=mn,i}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++}},hi=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,i){this.type=2,this._$AH=Re,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.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=dn(this,t,r),Ro(t)?t===Re||t==null||t===""?(this._$AH!==Re&&this._$AR(),this._$AH=Re):t!==this._$AH&&t!==je&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Xd(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!==Re&&Ro(this._$AH)?this._$AA.nextSibling.data=t:this.T(mn.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Lo.createElement(eg(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new xa(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=Zd.get(t.strings);return r===void 0&&Zd.set(t.strings,r=new Lo(t)),r}k(t){Cc(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.O(Fo()),this.O(Fo()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},gn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=Re,this._$AN=void 0,this.element=t,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Re}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=dn(this,t,r,0),s=!Ro(t)||t!==this._$AH&&t!==je,s&&(this._$AH=t);else{let a=t,l,u;for(t=o[0],l=0;l<o.length-1;l++)u=dn(this,a[n+l],r,l),u===je&&(u=this._$AH[l]),s||=!Ro(u)||u!==this._$AH[l],u===Re?t=Re:t!==Re&&(t+=(u??"")+o[l+1]),this._$AH[l]=u}s&&!i&&this.j(t)}j(t){t===Re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ba=class extends gn{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Re?void 0:t}},wa=class extends gn{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Re)}},va=class extends gn{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=dn(this,t,r,0)??Re)===je)return;let n=this._$AH,i=t===Re&&n!==Re||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==Re&&(n===Re||i);i&&this.element.removeEventListener(this.name,this,n),o&&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)}},Sa=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){dn(this,t)}},rg={M:kc,P:hr,A:Ac,C:1,L:tg,R:xa,D:Xd,V:dn,I:hi,H:gn,N:wa,U:va,B:ba,F:Sa},gT=Sc.litHtmlPolyfillSupport;gT?.(Lo,hi),(Sc.litHtmlVersions??=[]).push("3.2.1");var Bo=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new hi(t.insertBefore(Fo(),o),o,void 0,r??{})}return i._$AI(e),i};var Rr=class extends pr{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=Bo(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return je}};Rr._$litElement$=!0,Rr.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Rr});var yT=globalThis.litElementPolyfillSupport;yT?.({LitElement:Rr});(globalThis.litElementVersions??=[]).push("4.1.1");var OA=Ue(Aa(),1);var Ae={};ae(Ae,{ObservableIntake:()=>qc,Observablemap:()=>zc,rxjs:()=>Ho});var ne={};ae(ne,{CumulativeDeferred:()=>Ta,Deferred:()=>Ca,cumulativeDefer:()=>bT,defer:()=>yn,getFirstTrueOrFalse:()=>AT,map:()=>ST,rejectedPromise:()=>vT,resolvedPromise:()=>wT,timeoutAndContinue:()=>kT,timeoutWrap:()=>ng});var Ca=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"})}},yn=()=>new Ca;var Ta=class{constructor(){this.accumulatedPromises=[],this.deferred=yn(),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)}},bT=()=>new Ta;var wT=e=>Promise.resolve(e),vT=e=>Promise.reject(e),ST=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n},ng=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)}),kT=async(e,t=6e4)=>ng(e,t,!1),AT=async e=>{let t=yn();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var Ho={};ae(Ho,{Observable:()=>Ee,ReplaySubject:()=>Dc,Subject:()=>dr,Subscription:()=>Bt,from:()=>Sn,fromEvent:()=>An,of:()=>Nc,ops:()=>QT});var Ec=function(e,t){return Ec=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ec(e,t)};function nt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ec(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function ig(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,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?o(c.value):i(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}function Ea(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.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,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(c){u=[6,c],i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function mr(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 wt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Lt(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function xn(e){return this instanceof xn?(this.v=e,this):new xn(e)}function og(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(m){return Promise.resolve(m).then(h,f)}}function a(h,m){n[h]&&(i[h]=function(x){return new Promise(function(v,w){o.push([h,x,v,w])>1||l(h,x)})},m&&(i[h]=m(i[h])))}function l(h,m){try{u(n[h](m))}catch(x){p(o[0][3],x)}}function u(h){h.value instanceof xn?Promise.resolve(h.value.v).then(c,f):p(o[0][2],h)}function c(h){l("next",h)}function f(h){l("throw",h)}function p(h,m){h(m),o.shift(),o.length&&l(o[0][0],o[0][1])}}function sg(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 mr=="function"?mr(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}}function ce(e){return typeof e=="function"}function _a(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 Ia=_a(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
44
- `+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
45
- `):"",this.name="UnsubscriptionError",this.errors=r}});function bn(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Bt=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,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=mr(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(x){t={error:x}}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(ce(c))try{c()}catch(x){o=x instanceof Ia?x.errors:[x]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=mr(f),h=p.next();!h.done;h=p.next()){var m=h.value;try{ag(m)}catch(x){o=o??[],x instanceof Ia?o=Lt(Lt([],wt(o)),wt(x.errors)):o.push(x)}}}catch(x){n={error:x}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}if(o)throw new Ia(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ag(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)&&bn(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&bn(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var _c=Bt.EMPTY;function Pa(e){return e instanceof Bt||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function ag(e){ce(e)?e():e.unsubscribe()}var $t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var mi={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=mi.delegate;return i?.setTimeout?i.setTimeout.apply(i,Lt([e,t],wt(r))):setTimeout.apply(void 0,Lt([e,t],wt(r)))},clearTimeout:function(e){var t=mi.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Oa(e){mi.setTimeout(function(){var t=$t.onUnhandledError;if(t)t(e);else throw e})}function wn(){}var lg=function(){return Ic("C",void 0,void 0)}();function ug(e){return Ic("E",void 0,e)}function cg(e){return Ic("N",e,void 0)}function Ic(e,t,r){return{kind:e,value:t,error:r}}var vn=null;function di(e){if($t.useDeprecatedSynchronousErrorHandling){var t=!vn;if(t&&(vn={errorThrown:!1,error:null}),e(),t){var r=vn,n=r.errorThrown,i=r.error;if(vn=null,n)throw i}}else e()}function fg(e){$t.useDeprecatedSynchronousErrorHandling&&vn&&(vn.errorThrown=!0,vn.error=e)}var $o=function(e){nt(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Pa(r)&&r.add(n)):n.destination=IT,n}return t.create=function(r,n,i){return new Ma(r,n,i)},t.prototype.next=function(r){this.isStopped?Oc(cg(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Oc(ug(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Oc(lg,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}(Bt);var TT=Function.prototype.bind;function Pc(e,t){return TT.call(e,t)}var ET=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){Da(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Da(n)}else Da(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Da(r)}},e}(),Ma=function(e){nt(t,e);function t(r,n,i){var o=e.call(this)||this,s;if(ce(r)||!r)s={next:r??void 0,error:n??void 0,complete:i??void 0};else{var a;o&&$t.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return o.unsubscribe()},s={next:r.next&&Pc(r.next,a),error:r.error&&Pc(r.error,a),complete:r.complete&&Pc(r.complete,a)}):s=r}return o.destination=new ET(s),o}return t}($o);function Da(e){$t.useDeprecatedSynchronousErrorHandling?fg(e):Oa(e)}function _T(e){throw e}function Oc(e,t){var r=$t.onStoppedNotification;r&&mi.setTimeout(function(){return r(e,t)})}var IT={closed:!0,next:wn,error:_T,complete:wn};var gi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Na(e){return e}function pg(e){return e.length===0?Na:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(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 i=this,o=OT(t)?t:new Ma(t,r,n);return di(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},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=hg(r),new r(function(i,o){var s=new Ma({next:function(a){try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});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[gi]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return pg(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=hg(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function hg(e){var t;return(t=e??$t.Promise)!==null&&t!==void 0?t:Promise}function PT(e){return e&&ce(e.next)&&ce(e.error)&&ce(e.complete)}function OT(e){return e&&e instanceof $o||PT(e)&&Pa(e)}function DT(e){return ce(e?.lift)}function ze(e){return function(t){if(DT(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 We(e,t,r,n,i){return new MT(e,t,r,n,i)}var MT=function(e){nt(t,e);function t(r,n,i,o,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=o?function(u){try{o(u)}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=i?function(){try{i()}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 mg=_a(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var dr=function(e){nt(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 dg(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new mg},t.prototype.next=function(r){var n=this;di(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=mr(n.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;di(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;di(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,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?_c:(this.currentObservers=null,a.push(r),new Bt(function(){n.currentObservers=null,bn(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Ee;return r.source=this,r},t.create=function(r,n){return new dg(r,n)},t}(Ee);var dg=function(e){nt(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.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,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:_c},t}(dr);var Uo={now:function(){return(Uo.delegate||Date).now()},delegate:void 0};var Dc=function(e){nt(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Uo);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,l=n._windowTime;i||(o.push(r),!s&&o.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),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),l=0;l<a.length&&!r.closed;l+=o?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=i.now(),u=0,c=1;c<o.length&&o[c]<=l;c+=2)u=c;u&&o.splice(0,u+1)}},t}(dr);var gg=function(e){nt(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}(Bt);var jo={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=jo.delegate;return i?.setInterval?i.setInterval.apply(i,Lt([e,t],wt(r))):setInterval.apply(void 0,Lt([e,t],wt(r)))},clearInterval:function(e){var t=jo.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var yg=function(e){nt(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,n),this},t.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),jo.setInterval(r.flush.bind(r,this),i)},t.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&jo.clearInterval(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var i=!1,o;try{this.work(r)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,bn(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(gg);var Mc=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=Uo.now,e}();var xg=function(e){nt(t,e);function t(r,n){n===void 0&&(n=Mc.now);var i=e.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},t}(Mc);var zo=new xg(yg),bg=zo;function Fa(e){return e&&ce(e.schedule)}function NT(e){return e[e.length-1]}function yi(e){return Fa(NT(e))?e.pop():void 0}var xi=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Ra(e){return ce(e?.then)}function La(e){return ce(e[gi])}function Ba(e){return Symbol.asyncIterator&&ce(e?.[Symbol.asyncIterator])}function $a(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 FT(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ua=FT();function ja(e){return ce(e?.[Ua])}function za(e){return og(this,arguments,function(){var r,n,i,o;return Ea(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,xn(r.read())];case 3:return n=s.sent(),i=n.value,o=n.done,o?[4,xn(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,xn(i)];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 qa(e){return ce(e?.getReader)}function Xe(e){if(e instanceof Ee)return e;if(e!=null){if(La(e))return RT(e);if(xi(e))return LT(e);if(Ra(e))return BT(e);if(Ba(e))return wg(e);if(ja(e))return $T(e);if(qa(e))return UT(e)}throw $a(e)}function RT(e){return new Ee(function(t){var r=e[gi]();if(ce(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function LT(e){return new Ee(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function BT(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,Oa)})}function $T(e){return new Ee(function(t){var r,n;try{for(var i=mr(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()})}function wg(e){return new Ee(function(t){jT(e,t).catch(function(r){return t.error(r)})})}function UT(e){return wg(za(e))}function jT(e,t){var r,n,i,o;return ig(this,void 0,void 0,function(){var s,a;return Ea(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=sg(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(),i={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Ct(e,t,r,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function Ha(e,t){return t===void 0&&(t=0),ze(function(r,n){r.subscribe(We(n,function(i){return Ct(n,e,function(){return n.next(i)},t)},function(){return Ct(n,e,function(){return n.complete()},t)},function(i){return Ct(n,e,function(){return n.error(i)},t)}))})}function Va(e,t){return t===void 0&&(t=0),ze(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function vg(e,t){return Xe(e).pipe(Va(t),Ha(t))}function Sg(e,t){return Xe(e).pipe(Va(t),Ha(t))}function kg(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 Ag(e,t){return new Ee(function(r){var n;return Ct(r,t,function(){n=e[Ua](),Ct(r,t,function(){var i,o,s;try{i=n.next(),o=i.value,s=i.done}catch(a){r.error(a);return}s?r.complete():r.next(o)},0,!0)}),function(){return ce(n?.return)&&n.return()}})}function Wa(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ee(function(r){Ct(r,t,function(){var n=e[Symbol.asyncIterator]();Ct(r,t,function(){n.next().then(function(i){i.done?r.complete():r.next(i.value)})},0,!0)})})}function Cg(e,t){return Wa(za(e),t)}function Tg(e,t){if(e!=null){if(La(e))return vg(e,t);if(xi(e))return kg(e,t);if(Ra(e))return Sg(e,t);if(Ba(e))return Wa(e,t);if(ja(e))return Ag(e,t);if(qa(e))return Cg(e,t)}throw $a(e)}function Sn(e,t){return t?Tg(e,t):Xe(e)}function Nc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=yi(e);return Sn(e,r)}function Eg(e){return e instanceof Date&&!isNaN(e)}function kn(e,t){return ze(function(r,n){var i=0;r.subscribe(We(n,function(o){n.next(e.call(t,o,i++))}))})}var zT=Array.isArray;function qT(e,t){return zT(t)?e.apply(void 0,Lt([],wt(t))):e(t)}function _g(e){return kn(function(t){return qT(e,t)})}function Ig(e,t,r,n,i,o,s,a){var l=[],u=0,c=0,f=!1,p=function(){f&&!l.length&&!u&&t.complete()},h=function(x){return u<n?m(x):l.push(x)},m=function(x){o&&t.next(x),u++;var v=!1;Xe(r(x,c++)).subscribe(We(t,function(w){i?.(w),o?h(w):t.next(w)},function(){v=!0},void 0,function(){if(v)try{u--;for(var w=function(){var E=l.shift();s?Ct(t,s,function(){return m(E)}):m(E)};l.length&&u<n;)w();p()}catch(E){t.error(E)}}))};return e.subscribe(We(t,h,function(){f=!0,p()})),function(){a?.()}}function qo(e,t,r){return r===void 0&&(r=1/0),ce(t)?qo(function(n,i){return kn(function(o,s){return t(n,o,i,s)})(Xe(e(n,i)))},r):(typeof t=="number"&&(r=t),ze(function(n,i){return Ig(n,i,e,r)}))}function Pg(e){return e===void 0&&(e=1/0),qo(Na,e)}function Og(){return Pg(1)}function Fc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Og()(Sn(e,yi(e)))}var HT=["addListener","removeListener"],VT=["addEventListener","removeEventListener"],WT=["on","off"];function An(e,t,r,n){if(ce(r)&&(n=r,r=void 0),n)return An(e,t,r).pipe(_g(n));var i=wt(JT(e)?VT.map(function(a){return function(l){return e[a](t,l,r)}}):YT(e)?HT.map(Dg(e,t)):GT(e)?WT.map(Dg(e,t)):[],2),o=i[0],s=i[1];if(!o&&xi(e))return qo(function(a){return An(a,t,r)})(Xe(e));if(!o)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 o(l),function(){return s(l)}})}function Dg(e,t){return function(r){return function(n){return e[r](t,n)}}}function YT(e){return ce(e.addListener)&&ce(e.removeListener)}function GT(e){return ce(e.on)&&ce(e.off)}function JT(e){return ce(e.addEventListener)&&ce(e.removeEventListener)}function Mg(e,t,r){e===void 0&&(e=0),r===void 0&&(r=bg);var n=-1;return t!=null&&(Fa(t)?r=t:n=t),new Ee(function(i){var o=Eg(e)?+e-r.now():e;o<0&&(o=0);var s=0;return r.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function Rc(e,t){return ze(function(r,n){var i=0;r.subscribe(We(n,function(o){return e.call(t,o,i++)&&n.next(o)}))})}function Lc(e){return ze(function(t,r){var n=!1,i=null,o=null,s=function(){if(o?.unsubscribe(),o=null,n){n=!1;var a=i;i=null,r.next(a)}};t.subscribe(We(r,function(a){o?.unsubscribe(),n=!0,i=a,o=We(r,s,wn),Xe(e(a)).subscribe(o)},function(){s(),r.complete()},void 0,function(){i=o=null}))})}function Bc(e,t){return t===void 0&&(t=zo),ze(function(r,n){var i=null,o=null,s=null,a=function(){if(i){i.unsubscribe(),i=null;var u=o;o=null,n.next(u)}};function l(){var u=s+e,c=t.now();if(c<u){i=this.schedule(void 0,u-c),n.add(i);return}a()}r.subscribe(We(n,function(u){o=u,s=t.now(),i||(i=t.schedule(l,e),n.add(i))},function(){a(),n.complete()},void 0,function(){o=i=null}))})}function $c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=yi(e);return ze(function(n,i){(r?Fc(e,n,r):Fc(e,n)).subscribe(i)})}function Uc(e){return ze(function(t,r){Xe(e).subscribe(We(r,function(){return r.complete()},wn)),!r.closed&&t.subscribe(r)})}function Ng(e,t){return ze(function(r,n){var i=t??{},o=i.leading,s=o===void 0?!0:o,a=i.trailing,l=a===void 0?!1:a,u=!1,c=null,f=null,p=!1,h=function(){f?.unsubscribe(),f=null,l&&(v(),p&&n.complete())},m=function(){f=null,p&&n.complete()},x=function(w){return f=Xe(e(w)).subscribe(We(n,h,m))},v=function(){if(u){u=!1;var w=c;c=null,n.next(w),!p&&x(w)}};r.subscribe(We(n,function(w){u=!0,c=w,!(f&&!f.closed)&&(s?v():x(w))},function(){p=!0,!(l&&u&&f&&!f.closed)&&n.complete()}))})}function jc(e,t,r){t===void 0&&(t=zo);var n=Mg(e,t);return Ng(function(){return n},r)}var QT={debounce:Lc,debounceTime:Bc,map:kn,startWith:$c,takeUntil:Uc,throttleTime:jc,filter:Rc};var zc=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(t,r){let n=this.observableEventEmitterBundleArray.find(i=>i.eventRef===t&&i.event===r);if(n)return n.subject;{let i=An(t,r),o=new dr;i.subscribe(o);let s={subject:o,eventRef:t,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(t,r){let n=this.observableEventTargetBundleArray.find(i=>i.eventRef===t&&i.event===r);if(n)return n.subject;{let o={subject:new dr,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(o),o.subject}}};var qc=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=ne.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 ZT={attribute:!0,type:String,converter:Mo,reflect:!1,hasChanged:ga},XT=(e=ZT,t,r)=>{let{kind:n,metadata:i}=r,o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.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.P(s,void 0,e),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 re(e){return(t,r)=>typeof r=="object"?XT(e,t,r):((n,i,o)=>{let s=i.hasOwnProperty(o);return i.constructor.createProperty(o,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(i,o):void 0})(e,t,r)}var ge={};ae(ge,{DomTools:()=>Dt,TypedRequest:()=>ys,breakpoints:()=>Pr,css:()=>pd,elementBasic:()=>si,plugins:()=>hd});var si={};ae(si,{setup:()=>cU,staticStyles:()=>lU,styles:()=>uU});var Rl={};ae(Rl,{DeesComms:()=>$p});var me={};ae(me,{Timeout:()=>Ya,delayFor:()=>Fg,delayForRandom:()=>KT});var Fg=async(e,t,r=!1)=>(await new Ya(e,null,r).promise,t),KT=async(e,t,r,n=!1)=>(await Fg(Math.random()*(t-e)+e,null,n),r),Ya=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=yn(),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 _t={};ae(_t,{TypedHandler:()=>Dp,TypedRequest:()=>ys,TypedResponseError:()=>vr,TypedRouter:()=>gs,TypedTarget:()=>Mp,VirtualStream:()=>Jt});var Ln=Ue(Aa(),1);var ft={};ae(ft,{AsyncExecutionStack:()=>cf,BackpressuredArray:()=>ff,FastMap:()=>Go,Interest:()=>Jo,InterestMap:()=>pf,LimitedArray:()=>hf,LoopTracker:()=>mf,ObjectMap:()=>En,Stringmap:()=>df,TimedAggregtor:()=>gf,Tree:()=>yf,uni:()=>ey});var Tn={};ae(Tn,{SmartMatch:()=>Vc});var Ga={};ae(Ga,{isMatch:()=>rE,matcher:()=>tE});function Cn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Hc=new Map,Rg=(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})},eE=(e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(Hc.has(r))return Hc.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Cn(e).replace(/\\\*/g,"[\\s\\S]*");let i=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return i.negated=n,Hc.set(r,i),i},Lg=(e,t,r,n)=>{if(e=Rg(e,"inputs"),t=Rg(t,"patterns"),t.length===0)return[];t=t.map(s=>eE(s,r));let{allPatterns:i}=r||{},o=[];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)||i&&l.some((u,c)=>!u&&!t[c].negated))&&(o.push(s),n))break}return o};function tE(e,t,r){return Lg(e,t,r,!1)}function rE(e,t,r){return Lg(e,t,r,!0).length>0}var Vc=class{constructor(t){this.wildcard=t}match(t){return Ga.isMatch(t,this.wildcard)}};var Ht={};ae(Ht,{CronJob:()=>Yo,CronManager:()=>tf,ExtendedDate:()=>rf,HrtMeasurement:()=>nf,Interval:()=>of,TimeStamp:()=>vi,Timer:()=>sf,getMilliSecondsAsHumanReadableString:()=>ef,getMilliSecondsFromUnits:()=>Kc,units:()=>Lr});function ht(e,t,r,n,i,o,s,a){return ht.fromTZ(ht.tp(e,t,r,n,i,o,s),a)}ht.fromTZISO=(e,t,r)=>ht.fromTZ(iE(e,t),r);ht.fromTZ=function(e,t){let r=new Date(Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)),n=Wc(e.tz,r),i=new Date(r.getTime()-n),o=Wc(e.tz,i);if(o-n===0)return i;{let s=new Date(r.getTime()-o),a=Wc(e.tz,s);if(a-o===0)return s;if(!t&&a-o>0)return s;if(t)throw new Error("Invalid date passed to fromTZ()");return i}};ht.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}};ht.tp=(e,t,r,n,i,o,s)=>({y:e,m:t,d:r,h:n,i,s:o,tz:s});function Wc(e,t=new Date){let r=t.toLocaleString("en-US",{timeZone:e,timeZoneName:"short"}).split(" ").slice(-1)[0];r=r.replace(/\bAKST\b/g,"-0900").replace(/\bAKDT\b/g,"-0800").replace(/\bAST\b/g,"-0400");let n=t.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function iE(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("+")?ht.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):ht.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}ht.minitz=ht;function oE(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,10),e.utcOffset=e.utcOffset===void 0?void 0:parseInt(e.utcOffset,10),e.unref=e.unref===void 0?!1:e.unref,e.startAt&&(e.startAt=new Ye(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new Ye(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}var Yc=32,Vo=31|Yc,$g=[1,2,4,8,16];function mt(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()}mt.prototype.parse=function(){if(!(typeof this.pattern=="string"||this.pattern.constructor===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+"'), exacly five or six space separated parts 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 Ye(new Date,this.timezone).getDate(!0);e[0]=e[0].replace("?",t.getSeconds()),e[1]=e[1].replace("?",t.getMinutes()),e[2]=e[2].replace("?",t.getHours()),this.starDOM||(e[3]=e[3].replace("?",t.getDate())),e[4]=e[4].replace("?",t.getMonth()+1),this.starDOW||(e[5]=e[5].replace("?",t.getDay()))}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,Vo),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])};mt.prototype.partToArray=function(e,t,r,n){let i=this[e],o=e==="day"&&this.lastDayOfMonth;if(t===""&&!o)throw new TypeError("CronPattern: configuration entry "+e+" ("+t+") is empty, check for trailing spaces.");if(t==="*")return i.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)};mt.prototype.throwAtIllegalCharacters=function(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.")};mt.prototype.handleNumber=function(e,t,r,n){let i=this.extractNth(e,t),o=parseInt(i[0],10)+r;if(isNaN(o))throw new TypeError("CronPattern: "+t+" is not a number: '"+e+"'");this.setPart(t,o,i[1]||n)};mt.prototype.setPart=function(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)&&t!=="L")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};mt.prototype.handleRangeWithStepping=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(o===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+e+"'");let[,s,a,l]=o;if(s=parseInt(s,10)+r,a=parseInt(a,10)+r,l=parseInt(l,10),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(isNaN(l))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(l===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(l>this[t].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[t].length+")");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+e+"'");for(let u=s;u<=a;u+=l)this.setPart(t,u,i[1]||n)};mt.prototype.extractNth=function(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]};mt.prototype.handleRange=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].split("-");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+e+"'");let s=parseInt(o[0],10)+r,a=parseInt(o[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,i[1]||n)};mt.prototype.handleStepping=function(e,t,r,n){let i=this.extractNth(e,t),o=i[0].split("/");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+e+"'");let s=0;o[0]!=="*"&&(s=parseInt(o[0],10)+r);let a=parseInt(o[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,i[1]||n)};mt.prototype.replaceAlphaDays=function(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")};mt.prototype.replaceAlphaMonths=function(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")};mt.prototype.handleNicknames=function(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};mt.prototype.setNthWeekdayOfMonth=function(e,t){if(t==="L")this.dayOfWeek[e]=this.dayOfWeek[e]|Yc;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|$g[t-1];else if(t===Vo)this.dayOfWeek[e]=Vo;else throw new TypeError(`CronPattern: nth weekday of of range, should be 1-5 or L. Value: ${t}`)};var Ug=[31,28,31,30,31,30,31,31,30,31,30,31],gr=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]];function Ye(e,t){if(this.tz=t,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e===void 0)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof Ye)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}Ye.prototype.isNthWeekdayOfMonth=function(e,t,r,n){let o=new Date(Date.UTC(e,t,r)).getUTCDay(),s=0;for(let a=1;a<=r;a++)new Date(Date.UTC(e,t,a)).getUTCDay()===o&&s++;if(n&Vo&&$g[s-1]&n)return!0;if(n&Yc){let a=new Date(Date.UTC(e,t+1,0)).getUTCDate();for(let l=r+1;l<=a;l++)if(new Date(Date.UTC(e,t,l)).getUTCDay()===o)return!1;return!0}return!1};Ye.prototype.fromDate=function(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else{let t=ht.toTZ(e,this.tz);this.ms=e.getMilliseconds(),this.second=t.s,this.minute=t.i,this.hour=t.h,this.day=t.d,this.month=t.m-1,this.year=t.y}else this.ms=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()};Ye.prototype.fromCronDate=function(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};Ye.prototype.apply=function(){if(this.month>11||this.day>Ug[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1};Ye.prototype.fromString=function(e){return this.fromDate(ht.fromTZISO(e,this.tz))};Ye.prototype.findNext=function(e,t,r,n){let i=this[t],o;r.lastDayOfMonth&&(this.month!==1?o=Ug[this.month]:o=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let s=!r.starDOW&&t=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let a=this[t]+n;a<r[t].length;a++){let l=r[t][a];if(t==="day"&&r.lastDayOfMonth&&a-n==o&&(l=!0),t==="day"&&!r.starDOW){let u=r.dayOfWeek[(s+(a-n-1))%7];if(u&&u&Vo)u=this.isNthWeekdayOfMonth(this.year,this.month,a-n,u);else if(u)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${u}`);e.legacyMode&&!r.starDOM?l=l||u:l=l&&u}if(l)return this[t]=a-n,i!==this[t]?2:1}return 3};Ye.prototype.recurse=function(e,t,r){let n=this.findNext(t,gr[r][0],e,gr[r][2]);if(n>1){let i=r+1;for(;i<gr.length;)this[gr[i][0]]=-gr[i][2],i++;if(n===3)return this[gr[r][1]]++,this[gr[r][0]]=-gr[r][2],this.apply(),this.recurse(e,t,0);if(this.apply())return this.recurse(e,t,r-1)}return r+=1,r>=gr.length?this:this.year>=3e3?null:this.recurse(e,t,r)};Ye.prototype.increment=function(e,t,r){return this.second+=t.interval>1&&r?t.interval:1,this.ms=0,this.apply(),this.recurse(e,t,0)};Ye.prototype.getDate=function(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)):ht(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz)};Ye.prototype.getTime=function(){return this.getDate().getTime()};function Ja(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}function sE(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}var Bg=30*1e3,Wo=[];function _e(e,t,r){if(!(this instanceof _e))return new _e(e,t,r);let n,i;if(Ja(t))i=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))i=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?n.name:void 0,this.options=oE(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:void 0},e&&(e instanceof Date||typeof e=="string"&&e.indexOf(":")>0)?this._states.once=new Ye(e,this.options.timezone||this.options.utcOffset):this._states.pattern=new mt(e,this.options.timezone),this.name){if(Wo.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");Wo.push(this)}return i!==void 0&&(this.fn=i,this.schedule()),this}_e.prototype.nextRun=function(e){let t=this._next(e);return t?t.getDate():null};_e.prototype.nextRuns=function(e,t){e>this._states.maxRuns&&(e=this._states.maxRuns);let r=[],n=t||this._states.currentRun;for(;e--&&(n=this.nextRun(n));)r.push(n);return r};_e.prototype.getPattern=function(){return this._states.pattern?this._states.pattern.pattern:void 0};_e.prototype.isRunning=function(){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};_e.prototype.isStopped=function(){return this._states.kill};_e.prototype.isBusy=function(){return this._states.blocking};_e.prototype.currentRun=function(){return this._states.currentRun?this._states.currentRun.getDate():null};_e.prototype.previousRun=function(){return this._states.previousRun?this._states.previousRun.getDate():null};_e.prototype.msToNext=function(e){e=e||new Date;let t=this._next(e);return t?t.getTime()-e.getTime():null};_e.prototype.stop=function(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=Wo.indexOf(this);e>=0&&Wo.splice(e,1)};_e.prototype.pause=function(){return this._states.paused=!0,!this._states.kill};_e.prototype.resume=function(){return this._states.paused=!1,!this._states.kill};_e.prototype.schedule=function(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||r===null?this:(t>Bg&&(t=Bg),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&sE(this._states.currentTimeout),this)};_e.prototype._trigger=async function(e){if(this._states.blocking=!0,this._states.currentRun=new Ye(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{await this.fn(this,this.options.context)}catch(t){Ja(this.options.catch)&&this.options.catch(t,this)}else await this.fn(this,this.options.context);this._states.previousRun=new Ye(e,this.options.timezone||this.options.utcOffset),this._states.blocking=!1};_e.prototype.trigger=async function(){await this._trigger()};_e.prototype._checkTrigger=function(e){let t=new Date,r=!this._states.paused&&t.getTime()>=e,n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns--,this._trigger()):r&&n&&Ja(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()};_e.prototype._next=function(e){let t=!!(e||this._states.currentRun);e=new Ye(e,this.options.timezone||this.options.utcOffset),this.options.startAt&&e&&e.getTime()<this.options.startAt.getTime()&&(e=this.options.startAt);let r=this._states.once||new Ye(e,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,t);return this._states.once&&this._states.once.getTime()<=e.getTime()||r===null||this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&r.getTime()>=this.options.stopAt.getTime()?null:r};_e.Cron=_e;_e.scheduledJobs=Wo;var bi=Ue(jg(),1),qg=Ue(zg(),1);function Xc(e){if(typeof e!="number")throw new TypeError("Expected a number");let t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}}var aE=(e,t)=>t===1?e:`${e}s`,lE=1e-7;function Qa(e,t={}){if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let r=[],n=(s,a)=>{let l=Math.floor(s*10**a+lE);return(Math.round(l)/10**a).toFixed(a)},i=(s,a,l,u)=>{if((r.length===0||!t.colonNotation)&&s===0&&!(t.colonNotation&&l==="m"))return;u=(u||s||"0").toString();let c,f;if(t.colonNotation){c=r.length>0?":":"",f="";let p=u.includes(".")?u.split(".")[0].length:u.length,h=r.length>0?2:1;u="0".repeat(Math.max(0,h-p))+u}else c="",f=t.verbose?" "+aE(a,s):l;r.push(c+u+f)},o=Xc(e);if(i(Math.trunc(o.days/365),"year","y"),i(o.days%365,"day","d"),i(o.hours,"hour","h"),i(o.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(i(o.seconds,"second","s"),t.formatSubMilliseconds)i(o.milliseconds,"millisecond","ms"),i(o.microseconds,"microsecond","\xB5s"),i(o.nanoseconds,"nanosecond","ns");else{let s=o.milliseconds+o.microseconds/1e3+o.nanoseconds/1e6,a=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,l=s>=1?Math.round(s):Math.ceil(s),u=a?s.toFixed(a):l;i(Number.parseFloat(u),"millisecond","ms",u)}else{let s=e/1e3%60,a=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,l=n(s,a),u=t.keepDecimalsOnWholeSeconds?l:l.replace(/\.0+$/,"");i(Number.parseFloat(u),"second","s",u)}if(r.length===0)return"0"+(t.verbose?" milliseconds":"ms");if(t.compact)return r[0];if(typeof t.unitCount=="number"){let s=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(s)}return t.colonNotation?r.join(""):r.join(" ")}bi.default.extend(qg.default);var Yo=class{constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=_e(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 Lr={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},Kc=e=>{let t=0,r=n=>{t=t+n};return e.years&&r(Lr.years(e.years)),e.months&&r(Lr.months(e.months)),e.weeks&&r(Lr.weeks(e.weeks)),e.days&&r(Lr.days(e.days)),e.hours&&r(Lr.hours(e.hours)),e.minutes&&r(Lr.minutes(e.minutes)),e.seconds&&r(Lr.seconds(e.seconds)),t},ef=e=>Qa(e);var tf=class{constructor(){this.status="stopped",this.cronjobs=new ft.ObjectMap}addCronjob(t,r){let n=new Yo(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 me.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 me.Timeout(t.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${ef(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new me.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 rf=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),i=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new e(i)}static fromHyphedDate(t){let r=new Date(t).getTime();return new e(r)}static fromEuropeanDateAndTime(t,r="12:00:00",n="Europe/Berlin"){let i=/(.*)\.(.*)\.(.*)/.exec(t),o=u=>`0${u}`.slice(-2),s=`${i[3]}-${o(i[2])}-${o(i[1])}T${r}`,l=bi.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 bi.default(this.getTime()).format(t)}isToday(){return bi.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=Kc(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var nf=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 of=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 me.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 vi=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,i=new e(n);return this.isYoungerThanOtherTimeStamp(i)}};var sf=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=ne.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new vi;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=vi.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 uf=Ue(lf(),1);var cf=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(t,r){let n=ne.defer(),i={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(i),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=ne.defer(),i={funcToExecute:t,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(i),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(),me.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 i=await Promise.race([n.funcToExecute(),me.delayFor(n.timeout).then(()=>{throw new Error("Timeout reached")})]);n.executionDeferred.resolve(i)}else{let i=await n.funcToExecute();n.executionDeferred.resolve(i)}}catch(i){n.executionDeferred.reject(i)}});await Promise.all(r)}};var ff=class{constructor(t=16){this.hasSpace=new Ae.rxjs.Subject,this.itemsAvailable=new Ae.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 Go=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 ey=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),En=class e{constructor(){this.fastMap=new Go,this.eventSubject=new Ae.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=ey("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 Jo=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(t){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(t)}constructor(t,r,n,i){this.destructionTimer=new Ht.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new ne.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=t,this.originalInterest=r,this.comparisonFunc=n,this.options=i,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&me.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 pf=class{constructor(t,r={}){this.interestObjectMap=new En,this.interestObservable=new Ae.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),i,o=new Jo(this,t,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===o.comparisonString&&(console.log("info",`interest already exists for ${o.comparisonString}`),s=!0,i=a,i.renew())}),i||(i=o,this.interestObjectMap.add(i)),this.interestObservable.push(i),i}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(i=>i.comparisonString===r)}};var hf=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 mf=class{constructor(){this.referenceObjectMap=new En}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var df=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 Tn.SmartMatch(t),n=!1;for(let i of this._stringArray)r.match(i)&&(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=ne.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let i=t(this.getStringArray());return i===!0&&(r&&r(),n.resolve()),i}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var gf=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new Ht.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 yf=class{constructor(){this.symbolTree=new uf.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 Zo={};ae(Zo,{base64ToUint8Array:()=>NE,ensurePureUint8Array:()=>LE,isBufferLike:()=>RE,isUint8Array:()=>FE,uInt8ArrayExtras:()=>DE,uInt8ArrayToBase64:()=>ME});var _n={};ae(_n,{areUint8ArraysEqual:()=>xE,assertUint8Array:()=>jr,assertUint8ArrayOrArrayBuffer:()=>iy,base64ToString:()=>CE,base64ToUint8Array:()=>ly,compareUint8Arrays:()=>bE,concatUint8Arrays:()=>yE,getUintBE:()=>IE,hexToUint8Array:()=>_E,includes:()=>PE,indexOf:()=>uy,isUint8Array:()=>xf,stringToBase64:()=>AE,stringToUint8Array:()=>sy,toUint8Array:()=>gE,uint8ArrayToBase64:()=>ay,uint8ArrayToHex:()=>EE,uint8ArrayToString:()=>oy});var fE=Object.prototype.toString,pE="[object Uint8Array]",hE="[object ArrayBuffer]";function ny(e,t,r){return e?e.constructor===t?!0:fE.call(e)===r:!1}function xf(e){return ny(e,Uint8Array,pE)}function mE(e){return ny(e,ArrayBuffer,hE)}function dE(e){return xf(e)||mE(e)}function jr(e){if(!xf(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function iy(e){if(!dE(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function gE(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 yE(e,t){if(e.length===0)return new Uint8Array(0);t??=e.reduce((i,o)=>i+o.length,0);let r=new Uint8Array(t),n=0;for(let i of e)jr(i),r.set(i,n),n+=i.length;return r}function xE(e,t){if(jr(e),jr(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 bE(e,t){jr(e),jr(t);let r=Math.min(e.length,t.length);for(let n=0;n<r;n++){let i=e[n]-t[n];if(i!==0)return Math.sign(i)}return Math.sign(e.length-t.length)}var ty={utf8:new globalThis.TextDecoder("utf8")};function oy(e,t="utf8"){return iy(e),ty[t]??=new globalThis.TextDecoder(t),ty[t].decode(e)}function Qo(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}var wE=new globalThis.TextEncoder;function sy(e){return Qo(e),wE.encode(e)}function vE(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function SE(e){return e.replaceAll("-","+").replaceAll("_","/")}var kE=65535;function ay(e,{urlSafe:t=!1}={}){jr(e);let r;if(e.length<kE)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?vE(r):r}function ly(e){return Qo(e),Uint8Array.from(globalThis.atob(SE(e)),t=>t.codePointAt(0))}function AE(e,{urlSafe:t=!1}={}){return Qo(e),ay(sy(e),{urlSafe:t})}function CE(e){return Qo(e),oy(ly(e))}var TE=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function EE(e){jr(e);let t="";for(let r=0;r<e.length;r++)t+=TE[e[r]];return t}var ry={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 _E(e){if(Qo(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 i=ry[e[n*2]],o=ry[e[n*2+1]];if(i===void 0||o===void 0)throw new Error(`Invalid Hex character encountered at position ${n*2}`);r[n]=i<<4|o}return r}function IE(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 uy(e,t){let r=e.length,n=t.length;if(n===0||n>r)return-1;let i=r-n;for(let o=0;o<=i;o++){let s=!0;for(let a=0;a<n;a++)if(e[o+a]!==t[a]){s=!1;break}if(s)return o}return-1}function PE(e,t){return uy(e,t)!==-1}var DE=_n;function ME(e){return _n.uint8ArrayToBase64(e)}function NE(e){return _n.base64ToUint8Array(e)}var FE=e=>_n.isUint8Array(e);function RE(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}function LE(e){let t=new Uint8Array(e.length);return t.set(e),t}var Xa={};ae(Xa,{Guard:()=>Xo,GuardError:()=>Ko,GuardSet:()=>es,passGuardsOrReject:()=>BE});var Xo=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 Ko=class extends Error{constructor(t){super(t),this.name="GuardError"}};var es=class extends Xo{constructor(t=[]){super(async r=>this.allGuardsPass(r)),this.guards=t}async execAllWithData(t,r={mode:"parallel",stopOnFail:!1}){let n=[];for(let o of this.guards){let s=o.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(i=>i)}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 BE=async(e,t)=>{let r=new es(t);if(!await r.allGuardsPass(e)){let i=await r.getFailedHint(e);throw new Ko(`Guards failed:
46
- ${i}
47
- `)}};var ds={};ae(ds,{WebRequest:()=>Op});var In={};ae(In,{Smartenv:()=>ts});var ts=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}`);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=ne.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let i=document.createElement("script");i.onload=()=>{n.resolve()},i.src=t,document.head.appendChild(i)}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 Oe={};ae(Oe,{Smartjson:()=>kp,deepEqualJsonLStrings:()=>dD,deepEqualObjects:()=>O0,foldDec:()=>mD,parse:()=>hs,parseBase64:()=>hD,parseJsonL:()=>cD,stringify:()=>qi,stringifyBase64:()=>pD,stringifyPretty:()=>fD});var Hr={};ae(Hr,{Base64:()=>xl,Domain:()=>bl,GitRepo:()=>wl,base64:()=>Bi,create:()=>ep,docker:()=>tp,indent:()=>ip,normalize:()=>op,type:()=>sp});var ep={};ae(ep,{createCryptoRandomString:()=>bP,createRandomString:()=>xP});var Ob=Ue(Aa(),1),Db=Ue(Kx(),1);var ob="3.7.7",ZI=ob,Li=typeof Buffer=="function",eb=typeof TextDecoder=="function"?new TextDecoder:void 0,tb=typeof TextEncoder=="function"?new TextEncoder:void 0,XI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ls=Array.prototype.slice.call(XI),ml=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(ls),KI=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,tt=String.fromCharCode.bind(String),rb=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),sb=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),ab=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),lb=e=>{let t,r,n,i,o="",s=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=ls[t>>18&63]+ls[t>>12&63]+ls[t>>6&63]+ls[t&63]}return s?o.slice(0,s-3)+"===".substring(s):o},Qf=typeof btoa=="function"?e=>btoa(e):Li?e=>Buffer.from(e,"binary").toString("base64"):lb,Gf=Li?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,i=e.length;n<i;n+=4096)r.push(tt.apply(null,e.subarray(n,n+4096)));return Qf(r.join(""))},dl=(e,t=!1)=>t?sb(Gf(e)):Gf(e),eP=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?tt(192|t>>>6)+tt(128|t&63):tt(224|t>>>12&15)+tt(128|t>>>6&63)+tt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return tt(240|t>>>18&7)+tt(128|t>>>12&63)+tt(128|t>>>6&63)+tt(128|t&63)}},tP=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ub=e=>e.replace(tP,eP),nb=Li?e=>Buffer.from(e,"utf8").toString("base64"):tb?e=>Gf(tb.encode(e)):e=>Qf(ub(e)),Ri=(e,t=!1)=>t?sb(nb(e)):nb(e),ib=e=>Ri(e,!0),rP=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,nP=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return tt((r>>>10)+55296)+tt((r&1023)+56320);case 3:return tt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return tt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},cb=e=>e.replace(rP,nP),fb=e=>{if(e=e.replace(/\s+/g,""),!KI.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,i;for(let o=0;o<e.length;)t=ml[e.charAt(o++)]<<18|ml[e.charAt(o++)]<<12|(n=ml[e.charAt(o++)])<<6|(i=ml[e.charAt(o++)]),r+=n===64?tt(t>>16&255):i===64?tt(t>>16&255,t>>8&255):tt(t>>16&255,t>>8&255,t&255);return r},Zf=typeof atob=="function"?e=>atob(ab(e)):Li?e=>Buffer.from(e,"base64").toString("binary"):fb,pb=Li?e=>rb(Buffer.from(e,"base64")):e=>rb(Zf(e).split("").map(t=>t.charCodeAt(0))),hb=e=>pb(mb(e)),iP=Li?e=>Buffer.from(e,"base64").toString("utf8"):eb?e=>eb.decode(pb(e)):e=>cb(Zf(e)),mb=e=>ab(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Jf=e=>iP(mb(e)),oP=e=>{if(typeof e!="string")return!1;let t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},db=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),gb=function(){let e=(t,r)=>Object.defineProperty(String.prototype,t,db(r));e("fromBase64",function(){return Jf(this)}),e("toBase64",function(t){return Ri(this,t)}),e("toBase64URI",function(){return Ri(this,!0)}),e("toBase64URL",function(){return Ri(this,!0)}),e("toUint8Array",function(){return hb(this)})},yb=function(){let e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,db(r));e("toBase64",function(t){return dl(this,t)}),e("toBase64URI",function(){return dl(this,!0)}),e("toBase64URL",function(){return dl(this,!0)})},sP=()=>{gb(),yb()},us={version:ob,VERSION:ZI,atob:Zf,atobPolyfill:fb,btoa:Qf,btoaPolyfill:lb,fromBase64:Jf,toBase64:Ri,encode:Ri,encodeURI:ib,encodeURL:ib,utob:ub,btou:cb,decode:Jf,isValid:oP,fromUint8Array:dl,toUint8Array:hb,extendString:gb,extendUint8Array:yb,extendBuiltins:sP};var wb=Ue(bb(),1);function gl(e){let t=(0,wb.default)(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}var Kf=Ue(Pb(),1),e9=new ts;var xP=(e,t,r)=>Kf.default(e,t,r),bP=()=>Ob.uni();var tp={};ae(tp,{makeEnvObject:()=>wP});var wP=function(e){let t={},r=/(.*)=(.*)/;if(typeof e<"u")for(let n in e){let i=r.exec(e[n]);t[i[1]]=i[2]}return t};var ip={};ae(ip,{indent:()=>SP,indentWithPrefix:()=>kP,normalize:()=>AP});var rp=e=>{let t=e.split(`
48
- `);return vP(t)},np=e=>{let t="";for(let r of e)t=t+r+`
49
- `;return t},vP=e=>{let t=/^[\s]*$/;return t.test(e[0])&&e.shift(),t.test(e[e.length-1])&&e.pop(),e},SP=(e,t)=>{let r=rp(e);for(let i of r)i=" ".repeat(t)+i;return np(r)},kP=(e,t)=>{let r,n=rp(e),i=[];for(let o of n)i.push(t+o);return r=np(i),r},AP=e=>{let t,r=rp(e),n,i=/^(\s*)/,o=/^(\s*)$/;for(let a of r){let l=i.exec(a)[1];(typeof n>"u"||l.length<n)&&!o.test(a)&&(n=l.length)}let s=[];for(let a of r)s.push(a.substr(n));return t=np(s),t};var op={};ae(op,{replaceAll:()=>Mb,standard:()=>CP});var Mb=(e,t,r)=>e.replace(new RegExp(t,"g"),r),CP=(e,t)=>{let r=e;return(!t||t.stripIndent)&&(r=gl(r)),(!t||t.normalizeNewline)&&(r=r.replace(/\r\n/g,`
50
- `)),(!t||t.replaceTabs)&&(r=Mb(r," /"," ")),(!t||t.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!t||t.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var sp={};ae(sp,{isBase64:()=>EP,isUtf8:()=>TP});var xl=class{constructor(t,r){switch(r){case"string":this.refString=t;break;case"base64":this.refString=Bi.decode(t);break;case"base64uri":this.refString=Bi.decode(t)}}get simpleString(){return this.refString}get base64String(){return Bi.encode(this.refString)}get base64UriString(){return Bi.encodeUri(this.refString)}},Bi={encode:e=>us.encode(e),encodeUri:e=>us.encodeURI(e),decode:e=>us.decode(e),isBase64:e=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(e)};var TP=e=>{let r=new TextEncoder().encode(e),n=0;for(;n<r.length;){if(r[n]===9||r[n]===10||r[n]===13||32<=r[n]&&r[n]<=126){n+=1;continue}if(194<=r[n]&&r[n]<=223&&128<=r[n+1]&&r[n+1]<=191){n+=2;continue}if(r[n]===224&&160<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||(225<=r[n]&&r[n]<=236||r[n]===238||r[n]===239)&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||r[n]===237&&128<=r[n+1]&&r[n+1]<=159&&128<=r[n+2]&&r[n+2]<=191){n+=3;continue}if(r[n]===240&&144<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||241<=r[n]&&r[n]<=243&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||r[n]===244&&128<=r[n+1]&&r[n+1]<=143&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191){n+=4;continue}return!1}return!0},EP=e=>{let t=/[^A-Z0-9+\/=]/i,r=e.length;if(!r||r%4!==0||t.test(e))return!1;let n=e.indexOf("=");return n===-1||n===r-1||n===r-2&&e[r-1]==="="};var bl=class{constructor(t){this.protocol=this._protocolRegex(t),this.protocol||(t=`https://${t}`),this.nodeParsedUrl=Db.parse(t),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(t.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let n=1;n<=5;n++)if(r[n-1]){let i=r[n-1];this["level"+n.toString()]=i,this.fullName===""?this.fullName=i:this.fullName=i+"."+this.fullName}else this["level"+n.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(t){let n=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(t);return n.reverse(),n.pop(),n.filter(function(o){return o!==""})}_protocolRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}_portRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}};var wl=class{constructor(t,r){let n=_P(t);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=Nb(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=Nb(this.host,this.user,this.repo,this.accessToken,"https")}},_P=function(e){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(e)},Nb=function(e,t,r,n="",i){let o;switch(n!==""&&(n=n+"@"),i){case"https":o="https://"+n+e+"/"+t+"/"+r+".git";break;case"ssh":o="git@"+e+":"+t+"/"+r+".git";break;default:console.error("Link Type "+i+" not known");break}return o};var vp=Ue(S0(),1),C0=Ue(A0(),1);var T0=C0.default;function nD(e){return btoa(String.fromCharCode(...e))}function iD(e){return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}function E0(e,t){return JSON.stringify(e,oD,t)}function _0(e){return JSON.parse(e,sD)}var oD=(e,t)=>{if(lD(t)){let r;if("data"in t&&I0(t.data))if(t.data.length>0)r=new Uint8Array(t.data);else return"";else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+nD(r)}}return t},sD=(e,t)=>{if(aD(t)&&Sp(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return iD(r)}return t};function aD(e){return P0(e)&&e.type==="EncodedBuffer"&&Sp(e.data)}function lD(e){return P0(e)&&e.type==="Buffer"&&(I0(e.data)||Sp(e.data))||e instanceof Uint8Array}function I0(e){return Array.isArray(e)}function Sp(e){return typeof e=="string"}function P0(e){return typeof e=="object"&&e!==null}var hs=_0,cD=e=>e.trim().split(`
51
- `).reduce((n,i)=>(i.trim().length>0&&n.push(JSON.parse(i)),n),[]),qi=(e,t,r={})=>{let n=E0(e);return e=JSON.parse(n),T0(e,r)},fD=e=>{let t=qi(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},pD=(...e)=>{let t=qi(...e);return Hr.base64.encodeUri(t)},hD=e=>{let t=Hr.base64.decode(e);return hs(t)},kp=class e{static enfoldFromObject(t){let r=new this;for(let n in t)r.saveableProperties.indexOf(n)!==-1&&(r[n]=t[n]);return r}static enfoldFromJson(t){let r=hs(t);return this.enfoldFromObject(r)}foldToObject(){let t={},r=[];for(let n of this.saveableProperties){let i=this[n];if(i instanceof e){if(r.includes(i))throw new Error("cycle detected");r.push(i),i=i.foldToObject()}t[n]=vp.default(i)}return t}foldToJson(){let t=this.foldToObject();return qi(t)}},mD=()=>(e,t)=>{e.saveableProperties||(e.saveableProperties=[]),e.saveableProperties.push(t)},O0=(e,t)=>{let r=qi(e),n=qi(t);return r===n},dD=(e,t)=>{let r=[];e.split(`
52
- `).forEach(i=>{i&&r.push(hs(i))});let n=[];return t.split(`
53
- `).forEach(i=>{i&&n.push(hs(i))}),O0(r,n)};var Wr={};ae(Wr,{TypedrequestCache:()=>Pp,WebStore:()=>ms});var Ol={};ae(Ol,{deleteDB:()=>kD,openDB:()=>SD,unwrap:()=>Il,wrap:()=>wr});var Tp=(e,t)=>t.some(r=>e instanceof r),D0,M0;function gD(){return D0||(D0=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function yD(){return M0||(M0=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Ep=new WeakMap,Ap=new WeakMap,Pl=new WeakMap;function xD(e){let t=new Promise((r,n)=>{let i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{r(wr(e.result)),i()},s=()=>{n(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return Pl.set(t,e),t}function bD(e){if(Ep.has(e))return;let t=new Promise((r,n)=>{let i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{r(),i()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Ep.set(e,t)}var _p={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return Ep.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return wr(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 L0(e){_p=e(_p)}function wD(e){return yD().includes(e)?function(...t){return e.apply(Il(this),t),wr(this.request)}:function(...t){return wr(e.apply(Il(this),t))}}function vD(e){return typeof e=="function"?wD(e):(e instanceof IDBTransaction&&bD(e),Tp(e,gD())?new Proxy(e,_p):e)}function wr(e){if(e instanceof IDBRequest)return xD(e);if(Ap.has(e))return Ap.get(e);let t=vD(e);return t!==e&&(Ap.set(e,t),Pl.set(t,e)),t}var Il=e=>Pl.get(e);function SD(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(e,t),a=wr(s);return n&&s.addEventListener("upgradeneeded",l=>{n(wr(s.result),l.oldVersion,l.newVersion,wr(s.transaction),l)}),r&&s.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}function kD(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",n=>t(n.oldVersion,n)),wr(r).then(()=>{})}var AD=["get","getKey","getAll","getAllKeys","count"],CD=["put","add","delete","clear"],Cp=new Map;function N0(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Cp.get(t))return Cp.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=CD.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||AD.includes(r)))return;let o=async function(s,...a){let l=this.transaction(s,i?"readwrite":"readonly"),u=l.store;return n&&(u=u.index(a.shift())),(await Promise.all([u[r](...a),i&&l.done]))[0]};return Cp.set(t,o),o}L0(e=>({...e,get:(t,r,n)=>N0(t,r)||e.get(t,r,n),has:(t,r)=>!!N0(t,r)||e.has(t,r)}));var TD=["continue","continuePrimaryKey","advance"],F0={},Ip=new WeakMap,B0=new WeakMap,ED={get(e,t){if(!TD.includes(t))return e[t];let r=F0[t];return r||(r=F0[t]=function(...n){Ip.set(this,B0.get(this)[t](...n))}),r}};async function*_D(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let r=new Proxy(t,ED);for(B0.set(r,t),Pl.set(r,Il(t));t;)yield r,t=await(Ip.get(r)||t.continue()),Ip.delete(r)}function R0(e,t){return t===Symbol.asyncIterator&&Tp(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Tp(e,[IDBIndex,IDBObjectStore])}L0(e=>({...e,get(t,r,n){return R0(t,r)?_D:e.get(t,r,n)},has(t,r){return R0(t,r)||e.has(t,r)}}));var ms=class{constructor(t){this.initCalled=!1,this.readyDeferred=ne.defer(),this.options=t}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let t=new In.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 Ol.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 Pp=class{constructor(t="default"){this.webstore=new ms({dbName:"trStore",storeName:`trStore-${t}`})}buildKey(t){return Oe.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 Op=class{constructor(t={}){this.optionsArg=t,this.cacheStore=new Wr.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...t}}async getJson(t,r=!1){let i=await(await this.request(t,{method:"GET",useCache:r})).text();return Oe.parse(i)}async postJson(t,r,n=!1){let o=await(await this.request(t,{method:"POST",headers:{"Content-Type":"application/json"},body:Oe.stringify(r),useCache:n})).text();return Oe.parse(o)}async putJson(t,r,n=!1){let o=await(await this.request(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:Oe.stringify(r)})).text();return Oe.parse(o)}async deleteJson(t,r=!1){let i=await(await this.request(t,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return Oe.parse(i)}async request(t,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;me.delayFor(r.timeoutMs).then(()=>{n.abort()});let i=ne.defer(),o=!1;if(r.useCache&&await this.cacheStore.check(t)){let a=await this.cacheStore.get(t);i.resolve(new Response(a,{}))}else i.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 i.promise?(o=!0,i.promise):a);if(r.useCache&&await i.promise&&s.status===500&&(o=!0,s=await i.promise),!o&&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,i=0;Array.isArray(t)?n=t:n=[t];let o=[],s=async u=>{o.push(u),u==="429"&&(console.log("got 429, so waiting a little bit."),await me.delayFor(Math.floor(Math.random()*1001)+1e3));let c=0;for(let f of o)f===u&&c++;c>2*n.length*i&&i++},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[i]))};return await a(n[i])}log(t){this.options.logging&&console.log(t)}};var vr=class{constructor(t,r){this.errorText=t,this.errorData=r}};var Ml=class{async passGuards(t,r){let n=new Xa.GuardSet(t);if(!await n.allGuardsPass(r)){let o=await n.getFailedHint(r);throw new vr(`guard failed: ${o}`,{failedHint:o})}}};var Dp=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 Ml,i=await this.handlerFunction(t.request,n).catch(o=>{o instanceof vr?r=o:console.log(o)});return r&&(t.error={text:r.errorText,data:r.errorData}),i&&(t.response=i),t?.correlation?.phase&&(t.correlation.phase="response"),t}};var gs=class{constructor(){this.routerMap=new ft.ObjectMap,this.handlerMap=new ft.ObjectMap,this.registeredVirtualStreams=new ft.ObjectMap,this.fireEventInterestMap=new ft.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(i=>i.method===t),n||this.routerMap.getArray().forEach(i=>{!n&&!r.includes(i)&&(n=i.getTypedHandlerForMethod(t,r))}),n}async routeAndAddResponse(t,r=!1){if(t=Jt.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=Jt.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=Jt.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 i=>i.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 j0="#############CLOSING BIT#############",Jt=class e{static encodePayloadForNetwork(t,r,n,i=[]){return!t||Zo.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||i.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((o,s)=>e.encodePayloadForNetwork(o,r,n||t,i.concat(String(s)))):t!==null&&typeof t=="object"?Object.entries(t).reduce((o,[s,a])=>{let l=i.concat(s);return o[s]=e.encodePayloadForNetwork(a,r,n||t,l),o},{}):t}static decodePayloadFromNetwork(t,r){if(Zo.isBufferLike(t)||t instanceof gs)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 i of t)n.push(e.decodePayloadFromNetwork(i,r));return n}else return Object.keys(t).reduce((n,i)=>(n[i]=e.decodePayloadFromNetwork(t[i],r),n),{});else return t}constructor(){this.streamId=Ln.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new ft.BackpressuredArray(16),this.receiveBackpressuredArray=new ft.BackpressuredArray(16)}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=ne.defer(),this.side==="requesting"){let t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,n=!1,i=async()=>{let o=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Ln.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});o&&o.response&&(n=o.response.backpressure,r=o.response.next)};for(await i();this.sendBackpressuredArray.data.length>0||r;){if(n)for(;n;)console.log("waiting for feedback because of backpressure..."),await me.delayFor(50),await i();let o;this.sendBackpressuredArray.data.length>0&&(o=this.sendBackpressuredArray.shift());let s;s=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:Ln.uni(),cycle:"request",mainPurpose:o?"chunk":"read",backpressure:t,next:this.sendBackpressuredArray.data.length>0,...o?{chunkData:o}:{}},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 me.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let t=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await me.delayFor(1e3);await me.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:Ln.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(),i=!1;for(;!i;){let{value:o,done:s}=await n.read();o&&await this.sendData(o),i=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===j0){r.releaseLock(),await t.close();break}await r.write(n)}}async close(t=!1){t&&this.sendData(j0),this.keepAlive=!1}};var Mp=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 i=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(t),o;return r?o=await r.interestFullfilled:i?o=i:o=t,o}};var PD=new ds.WebRequest,ys=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:Ln.uni(),phase:"request"}};n=Jt.encodePayloadForNetwork(n,{sendMethod:o=>this.postTrObject(o)});let i;return i=await this.postTrObject(n,r),i=Jt.decodePayloadFromNetwork(i,{sendMethod:o=>this.postTrObject(o)}),i.response}async postTrObject(t,r=!1){let n;if(this.urlEndPoint?n=await PD.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 vr(n.error.text,n.error.data);return null}return n.retry&&(console.log(`server requested retry for the following reason: ${n.retry.reason}`),await me.delayFor(n.retry.waitForMs),n=await this.postTrObject(t,r)),n}};function z0(e){return e&&typeof e.then=="function"}var OD=Promise.resolve(!1),eV=Promise.resolve(!0),Qt=Promise.resolve();function Nl(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}function q0(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function xs(){return Math.random().toString(36).substring(2)}var Np=0;function Sr(){var e=Date.now()*1e3;return e<=Np&&(e=Np+1),Np=e,e}var DD=Sr,MD="native";function ND(e){var t={time:Sr(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(r){t.messagesCallback&&t.messagesCallback(r.data)},t}function FD(e){e.bc.close(),e.subFns=[]}function RD(e,t){try{return e.bc.postMessage(t,!1),Qt}catch(r){return Promise.reject(r)}}function LD(e,t){e.messagesCallback=t}function BD(){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 $D(){return 150}var H0={create:ND,close:FD,onMessage:LD,postMessage:RD,canBeUsed:BD,type:MD,averageResponseTime:$D,microSeconds:DD};var Hi=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,V0()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,UD(this)},0))}clear(){this.map.clear()}};function UD(e){let t=V0()-e.ttl,r=e.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)return;let i=n[0];if(n[1]<t)e.map.delete(i);else return}}function V0(){return Date.now()}function Vi(){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 jD=Sr,zD="pubkey.broadcast-channel-0-",kr="messages",Fl={durability:"relaxed"},qD="idb";function W0(){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 Fp(e){e.commit&&e.commit()}function HD(e){var t=W0(),r=zD+e,n=t.open(r);return n.onupgradeneeded=function(i){var o=i.target.result;o.createObjectStore(kr,{keyPath:"id",autoIncrement:!0})},new Promise(function(i,o){n.onerror=function(s){return o(s)},n.onsuccess=function(){i(n.result)}})}function VD(e,t,r){var n=Date.now(),i={uuid:t,time:n,data:r},o=e.transaction([kr],"readwrite",Fl);return new Promise(function(s,a){o.oncomplete=function(){return s()},o.onerror=function(u){return a(u)};var l=o.objectStore(kr);l.add(i),Fp(o)})}function WD(e,t){var r=e.transaction(kr,"readonly",Fl),n=r.objectStore(kr),i=[],o=IDBKeyRange.bound(t+1,1/0);if(n.getAll){var s=n.getAll(o);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 o=IDBKeyRange.bound(t+1,1/0),n.openCursor(o)}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):(i.push(p.value),p.continue()):(Fp(r),l(i))}})}function YD(e,t){if(e.closed)return Promise.resolve([]);var r=e.db.transaction(kr,"readwrite",Fl),n=r.objectStore(kr);return Promise.all(t.map(function(i){var o=n.delete(i);return new Promise(function(s){o.onsuccess=function(){return s()}})}))}function GD(e,t){var r=Date.now()-t,n=e.transaction(kr,"readonly",Fl),i=n.objectStore(kr),o=[];return new Promise(function(s){i.openCursor().onsuccess=function(a){var l=a.target.result;if(l){var u=l.value;u.time<r?(o.push(u),l.continue()):(Fp(n),s(o))}else s(o)}})}function JD(e){return GD(e.db,e.options.idb.ttl).then(function(t){return YD(e,t.map(function(r){return r.id}))})}function QD(e,t){return t=Vi(t),HD(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:xs(),eMIs:new Hi(t.idb.ttl*2),writeBlockPromise:Qt,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},Y0(n),n})}function Y0(e){e.closed||G0(e).then(function(){return Nl(e.options.idb.fallbackInterval)}).then(function(){return Y0(e)})}function ZD(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function G0(e){return e.closed?Qt:e.messagesCallback?WD(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 ZD(n,e)}).sort(function(n,i){return n.time-i.time});return r.forEach(function(n){e.messagesCallback&&(e.eMIs.add(n.id),e.messagesCallback(n.data))}),Qt}):Qt}function XD(e){e.closed=!0,e.db.close()}function KD(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return VD(e.db,e.uuid,t)}).then(function(){q0(0,10)===0&&JD(e)}),e.writeBlockPromise}function eM(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,G0(e)}function tM(){return!!W0()}function rM(e){return e.idb.fallbackInterval*2}var J0={create:QD,close:XD,onMessage:eM,postMessage:KD,canBeUsed:tM,type:qD,averageResponseTime:rM,microSeconds:jD};var nM=Sr,iM="pubkey.broadcastChannel-",oM="localstorage";function Q0(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function Z0(e){return iM+e}function sM(e,t){return new Promise(function(r){Nl().then(function(){var n=Z0(e.channelName),i={token:xs(),time:Date.now(),data:t,uuid:e.uuid},o=JSON.stringify(i);Q0().setItem(n,o);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=o,window.dispatchEvent(s),r()})})}function aM(e,t){var r=Z0(e),n=function(o){o.key===r&&t(JSON.parse(o.newValue))};return window.addEventListener("storage",n),n}function lM(e){window.removeEventListener("storage",e)}function uM(e,t){if(t=Vi(t),!X0())throw new Error("BroadcastChannel: localstorage cannot be used");var r=xs(),n=new Hi(t.localstorage.removeTimeout),i={channelName:e,uuid:r,eMIs:n};return i.listener=aM(e,function(o){i.messagesCallback&&o.uuid!==r&&(!o.token||n.has(o.token)||o.data.time&&o.data.time<i.messagesCallbackTime||(n.add(o.token),i.messagesCallback(o.data)))}),i}function cM(e){lM(e.listener)}function fM(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function X0(){var e=Q0();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function pM(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var K0={create:uM,close:cM,onMessage:fM,postMessage:sM,canBeUsed:X0,type:oM,averageResponseTime:pM,microSeconds:nM};var ew=Sr,hM="simulate",Rp=new Set;function mM(e){var t={time:ew(),name:e,messagesCallback:null};return Rp.add(t),t}function dM(e){Rp.delete(e)}var tw=5;function gM(e,t){return new Promise(function(r){return setTimeout(function(){var n=Array.from(Rp);n.forEach(function(i){i.name===e.name&&i!==e&&i.messagesCallback&&i.time<t.time&&i.messagesCallback(t)}),r()},tw)})}function yM(e,t){e.messagesCallback=t}function xM(){return!0}function bM(){return tw}var rw={create:mM,close:dM,onMessage:yM,postMessage:gM,canBeUsed:xM,type:hM,averageResponseTime:bM,microSeconds:ew};var nw=[H0,J0,K0];function iw(e){var t=[].concat(e.methods,nw).filter(Boolean);if(e.type){if(e.type==="simulate")return rw;var r=t.find(function(i){return i.type===e.type});if(r)return r;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(i){return i.type!=="idb"}));var n=t.find(function(i){return i.canBeUsed()});if(n)return n;throw new Error("No usable method found in "+JSON.stringify(nw.map(function(i){return i.type})))}var Lp=new Set,wM=0,Wi=function(t,r){this.id=wM++,Lp.add(this),this.name=t,ow&&(r=ow),this.options=Vi(r),this.method=iw(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,vM(this)};Wi._pubkey=!0;var ow;Wi.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return sw(this,"message",t)},postInternal:function(t){return sw(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),r={time:t,fn:e};lw(this,"message",this._onML),e&&typeof e=="function"?(this._onML=r,aw(this,"message",r)):this._onML=null},addEventListener:function(t,r){var n=this.method.microSeconds(),i={time:n,fn:r};aw(this,t,i)},removeEventListener:function(t,r){var n=this._addEL[t].find(function(i){return i.fn===r});lw(this,t,n)},close:function(){var t=this;if(!this.closed){Lp.delete(this),this.closed=!0;var r=this._prepP?this._prepP:Qt;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 sw(e,t,r){var n=e.method.microSeconds(),i={time:n,type:t,data:r},o=e._prepP?e._prepP:Qt;return o.then(function(){var s=e.method.postMessage(e._state,i);return e._uMP.add(s),s.catch().then(function(){return e._uMP.delete(s)}),s})}function vM(e){var t=e.method.create(e.name,e.options);z0(t)?(e._prepP=t,t.then(function(r){e._state=r})):e._state=t}function uw(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function aw(e,t,r){e._addEL[t].push(r),SM(e)}function lw(e,t,r){e._addEL[t]=e._addEL[t].filter(function(n){return n!==r}),kM(e)}function SM(e){if(!e._iL&&uw(e)){var t=function(i){e._addEL[i.type].forEach(function(o){i.time>=o.time&&o.fn(i.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 kM(e){if(e._iL&&!uw(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}var Bp=globalThis.BroadcastChannel;Bp||(Bp=Wi);var $p=class{constructor(){this.broadcastChannel=new Bp("dees-comms"),this.typedrouter=new _t.TypedRouter,this.typedtarget=new _t.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 _t.TypedRequest(this.typedtarget,t)}async postMessage(t){this.broadcastChannel.postMessage(t)}async createTypedHandler(t,r){this.typedrouter.addTypedHandler(new _t.TypedHandler(t,r))}};var ju={};ae(ju,{SmartMarkdown:()=>qm});var xA=Ue(rS(),1);function Xp(e){if(e)throw e}var Jl=Ue(fS(),1);function Cs(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 Kp(){let e=[],t={run:r,use:n};return t;function r(...i){let o=-1,s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...u){let c=e[++o],f=-1;if(l){s(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?pS(c,a)(...u):s(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function pS(e,t){let r;return n;function n(...s){let a=e.length>s.length,l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){let c=u;if(a&&r)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){r||(r=!0,t(s,...a))}function o(s){i(null,s)}}function Jr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?hS(e.position):"start"in e||"end"in e?hS(e):"line"in e||"column"in e?eh(e):""}function eh(e){return mS(e&&e.line)+":"+mS(e&&e.column)}function hS(e){return eh(e&&e.start)+"-"+eh(e&&e.end)}function mS(e){return e&&typeof e=="number"?e:1}var et=class extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",o={},s=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof n=="string"){let l=n.indexOf(":");l===-1?o.ruleId=n:(o.source=n.slice(0,l),o.ruleId=n.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){let l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}let a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Jr(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}};et.prototype.file="";et.prototype.name="";et.prototype.reason="";et.prototype.message="";et.prototype.stack="";et.prototype.column=void 0;et.prototype.line=void 0;et.prototype.ancestors=void 0;et.prototype.cause=void 0;et.prototype.fatal=void 0;et.prototype.place=void 0;et.prototype.ruleId=void 0;et.prototype.source=void 0;var jt={basename:lR,dirname:uR,extname:cR,join:fR,sep:"/"};function lR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ts(e);let r=0,n=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else n<0&&(o=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(n=i):(a=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function uR(e){if(Ts(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 cR(e){Ts(e);let t=e.length,r=-1,n=0,i=-1,o=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?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||r<0||o===0||o===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function fR(...e){let t=-1,r;for(;++t<e.length;)Ts(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":pR(r)}function pR(e){Ts(e);let t=e.codePointAt(0)===47,r=hR(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function hR(e,t){let r="",n=0,i=-1,o=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(!(i===s-1||o===1))if(i!==s-1&&o===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("/")),i=s,o=0;continue}}else if(r.length>0){r="",n=0,i=s,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return r}function Ts(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var dS={cwd:mR};function mR(){return"/"}function eo(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function gS(e){if(typeof e=="string")e=new URL(e);else if(!eo(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 dR(e)}function dR(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 i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}var th=["history","path","basename","stem","extname","dirname"],Es=class{constructor(t){let r;t?eo(t)?r={path:t}:typeof t=="string"||gR(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":dS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<th.length;){let o=th[n];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let i;for(i in r)th.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?jt.basename(this.path):void 0}set basename(t){nh(t,"basename"),rh(t,"basename"),this.path=jt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?jt.dirname(this.path):void 0}set dirname(t){yS(this.basename,"dirname"),this.path=jt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?jt.extname(this.path):void 0}set extname(t){if(rh(t,"extname"),yS(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=jt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){eo(t)&&(t=gS(t)),nh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?jt.basename(this.path,this.extname):void 0}set stem(t){nh(t,"stem"),rh(t,"stem"),this.path=jt.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){let i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){let i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){let i=new et(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function rh(e,t){if(e&&e.includes(jt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+jt.sep+"`")}function nh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function yS(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function gR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var xS=function(e){let n=this.constructor.prototype,i=n[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,n),o};var yR={}.hasOwnProperty,ah=class e extends xS{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=Kp()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];t.use(...n)}return t.data((0,Jl.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(sh("data",this.frozen),this.namespace[t]=r,this):yR.call(this.namespace,t)&&this.namespace[t]||void 0:t?(sh("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 i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let r=Gl(t),n=this.parser||this.Parser;return ih("parse",n),n(String(r),r)}process(t,r){let n=this;return this.freeze(),ih("process",this.parser||this.Parser),oh("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(o,s){let a=Gl(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);bR(m)?p.value=m:p.result=m,u(c,p)});function u(c,f){c||!f?s(c):o?o(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),ih("processSync",this.parser||this.Parser),oh("processSync",this.compiler||this.Compiler),this.process(t,i),wS("processSync","process",r),n;function i(o,s){r=!0,Xp(o),n=s}}run(t,r,n){bS(t),this.freeze();let i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?o(void 0,n):new Promise(o);function o(s,a){let l=Gl(r);i.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,i;return this.run(t,r,o),wS("runSync","run",n),i;function o(s,a){Xp(s),i=a,n=!0}}stringify(t,r){this.freeze();let n=Gl(r),i=this.compiler||this.Compiler;return oh("stringify",i),bS(t),i(t,n)}use(t,...r){let n=this.attachers,i=this.namespace;if(sh("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 o(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&&(i.settings=(0,Jl.default)(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let f=u[c];o(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,x=n[p][1];Cs(x)&&Cs(h)&&(h=(0,Jl.default)(!0,x,h)),n[p]=[u,h,...m]}}}},Ql=new ah().freeze();function ih(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function oh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function sh(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 bS(e){if(!Cs(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function wS(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Gl(e){return xR(e)?e:new Es(e)}function xR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function bR(e){return typeof e=="string"||wR(e)}function wR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function to(e,t){let r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}var Qe=Qr(/[A-Za-z]/),Me=Qr(/[\dA-Za-z]/),vS=Qr(/[#-'*+\--9=?A-Z^-~]/);function Vn(e){return e!==null&&(e<32||e===127)}var _s=Qr(/\d/),SS=Qr(/[\dA-Fa-f]/),kS=Qr(/[!-/:-@[-`{-~]/);function H(e){return e!==null&&e<-2}function fe(e){return e!==null&&(e<0||e===32)}function Q(e){return e===-2||e===-1||e===32}var Wn=Qr(/\p{P}|\p{S}/u),Kt=Qr(/\s/);function Qr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}var Zr=function(e){if(e==null)return AR;if(typeof e=="function")return Zl(e);if(typeof e=="object")return Array.isArray(e)?vR(e):SR(e);if(typeof e=="string")return kR(e);throw new Error("Expected function, string, or object as test")};function vR(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Zr(e[r]);return Zl(n);function n(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function SR(e){let t=e;return Zl(r);function r(n){let i=n,o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function kR(e){return Zl(t);function t(r){return r&&r.type===e}}function Zl(e){return t;function t(r,n,i){return!!(CR(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function AR(){return!0}function CR(e){return e!==null&&typeof e=="object"&&"type"in e}var AS=[],Xl=!0,Yn=!1,Kl="skip";function Is(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;let o=Zr(i),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=AS,m,x,v;if((!t||o(l,u,c[c.length-1]||void 0))&&(h=TR(r(l,c)),h[0]===Yn))return h;if("children"in l&&l.children){let w=l;if(w.children&&h[0]!==Kl)for(x=(n?w.children.length:-1)+s,v=c.concat(w);x>-1&&x<w.children.length;){let E=w.children[x];if(m=a(E,x,v)(),m[0]===Yn)return m;x=typeof m[1]=="number"?m[1]:x+s}}return h}}}function TR(e){return Array.isArray(e)?e:typeof e=="number"?[Xl,e]:e==null?AS:[e]}function lh(e,t,r){let i=Zr((r||{}).ignore||[]),o=ER(t),s=-1;for(;++s<o.length;)Is(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(i(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=o[s][0],h=o[s][1],m=0,v=f.children.indexOf(u),w=!1,E=[];p.lastIndex=0;let b=p.exec(u.value);for(;b;){let z=b.index,q={index:b.index,input:b.input,stack:[...c,u]},A=h(...b,q);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?p.lastIndex=z+1:(m!==z&&E.push({type:"text",value:u.value.slice(m,z)}),Array.isArray(A)?E.push(...A):A&&E.push(A),m=z+b[0].length,w=!0),!p.global)break;b=p.exec(u.value)}return w?(m<u.value.length&&E.push({type:"text",value:u.value.slice(m)}),f.children.splice(v,1,...E)):E=[u],v+E.length}}function ER(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 i=r[n];t.push([_R(i[0]),IR(i[1])])}return t}function _R(e){return typeof e=="string"?new RegExp(Cn(e),"g"):e}function IR(e){return typeof e=="function"?e:function(){return e}}var uh="phrasing",ch=["autolink","link","image","label"];function ph(){return{transforms:[FR],enter:{literalAutolink:PR,literalAutolinkEmail:fh,literalAutolinkHttp:fh,literalAutolinkWww:fh},exit:{literalAutolink:NR,literalAutolinkEmail:MR,literalAutolinkHttp:OR,literalAutolinkWww:DR}}}function hh(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:uh,notInConstruct:ch},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:uh,notInConstruct:ch},{character:":",before:"[ps]",after:"\\/",inConstruct:uh,notInConstruct:ch}]}}function PR(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function fh(e){this.config.enter.autolinkProtocol.call(this,e)}function OR(e){this.config.exit.autolinkProtocol.call(this,e)}function DR(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 MR(e){this.config.exit.autolinkEmail.call(this,e)}function NR(e){this.exit(e)}function FR(e){lh(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,RR],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,LR]],{ignore:["link","linkReference"]})}function RR(e,t,r,n,i){let o="";if(!CS(i)||(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!BR(r)))return!1;let s=$R(r+n);if(!s[0])return!1;let a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function LR(e,t,r,n){return!CS(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function BR(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 $R(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),i=to(e,"("),o=to(e,")");for(;n!==-1&&i>o;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),o++;return[e,r]}function CS(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||Kt(r)||Wn(r))&&(!t||r!==47)}function st(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}TS.peek=GR;function mh(){return{enter:{gfmFootnoteDefinition:UR,gfmFootnoteDefinitionLabelString:jR,gfmFootnoteCall:HR,gfmFootnoteCallString:VR},exit:{gfmFootnoteDefinition:qR,gfmFootnoteDefinitionLabelString:zR,gfmFootnoteCall:YR,gfmFootnoteCallString:WR}}}function dh(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:JR,footnoteReference:TS}}}function UR(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function jR(){this.buffer()}function zR(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=st(this.sliceSerialize(e)).toLowerCase()}function qR(e){this.exit(e)}function HR(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function VR(){this.buffer()}function WR(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.label=t,r.identifier=st(this.sliceSerialize(e)).toLowerCase()}function YR(e){this.exit(e)}function TS(e,t,r,n){let i=r.createTracker(n),o=i.move("[^"),s=r.enter("footnoteReference"),a=r.enter("reference");return o+=i.move(r.safe(r.associationId(e),{...i.current(),before:o,after:"]"})),a(),s(),o+=i.move("]"),o}function GR(){return"["}function JR(e,t,r,n){let i=r.createTracker(n),o=i.move("[^"),s=r.enter("footnoteDefinition"),a=r.enter("label");return o+=i.move(r.safe(r.associationId(e),{...i.current(),before:o,after:"]"})),a(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(r.indentLines(r.containerFlow(e,i.current()),QR)),s(),o}function QR(e,t,r){return t===0?e:(r?"":" ")+e}var ZR=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ES.peek=e2;function gh(){return{canContainEols:["delete"],enter:{strikethrough:XR},exit:{strikethrough:KR}}}function yh(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ZR}],handlers:{delete:ES}}}function XR(e){this.enter({type:"delete",children:[]},e)}function KR(e){this.exit(e)}function ES(e,t,r,n){let i=r.createTracker(n),o=r.enter("strikethrough"),s=i.move("~~");return s+=r.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function e2(){return"~"}function t2(e){return e.length}function IS(e,t){let r=t||{},n=(r.align||[]).concat(),i=r.stringLength||t2,o=[],s=[],a=[],l=[],u=0,c=-1;for(;++c<e.length;){let x=[],v=[],w=-1;for(e[c].length>u&&(u=e[c].length);++w<e[c].length;){let E=r2(e[c][w]);if(r.alignDelimiters!==!1){let b=i(E);v[w]=b,(l[w]===void 0||b>l[w])&&(l[w]=b)}x.push(E)}s[c]=x,a[c]=v}let f=-1;if(typeof n=="object"&&"length"in n)for(;++f<u;)o[f]=_S(n[f]);else{let x=_S(n);for(;++f<u;)o[f]=x}f=-1;let p=[],h=[];for(;++f<u;){let x=o[f],v="",w="";x===99?(v=":",w=":"):x===108?v=":":x===114&&(w=":");let E=r.alignDelimiters===!1?1:Math.max(1,l[f]-v.length-w.length),b=v+"-".repeat(E)+w;r.alignDelimiters!==!1&&(E=v.length+E+w.length,E>l[f]&&(l[f]=E),h[f]=E),p[f]=b}s.splice(1,0,p),a.splice(1,0,h),c=-1;let m=[];for(;++c<s.length;){let x=s[c],v=a[c];f=-1;let w=[];for(;++f<u;){let E=x[f]||"",b="",z="";if(r.alignDelimiters!==!1){let q=l[f]-(v[f]||0),A=o[f];A===114?b=" ".repeat(q):A===99?q%2?(b=" ".repeat(q/2+.5),z=" ".repeat(q/2-.5)):(b=" ".repeat(q/2),z=b):z=" ".repeat(q)}r.delimiterStart!==!1&&!f&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&E==="")&&(r.delimiterStart!==!1||f)&&w.push(" "),r.alignDelimiters!==!1&&w.push(b),w.push(E),r.alignDelimiters!==!1&&w.push(z),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&w.push("|")}m.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return m.join(`
54
- `)}function r2(e){return e==null?"":String(e)}function _S(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var PS={}.hasOwnProperty;function eu(e,t){let r=t||{};function n(i,...o){let s=n.invalid,a=n.handlers;if(i&&PS.call(i,e)){let l=String(i[e]);s=PS.call(a,l)?a[l]:n.unknown}if(s)return s.call(this,i,...o)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}var n2={}.hasOwnProperty;function xh(e,t){let r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)xh(e,t.extensions[r]);for(n in t)if(n2.call(t,n))switch(n){case"extensions":break;case"unsafe":{OS(e[n],t[n]);break}case"join":{OS(e[n],t[n]);break}case"handlers":{i2(e[n],t[n]);break}default:e.options[n]=t[n]}return e}function OS(e,t){t&&e.push(...t)}function i2(e,t){t&&Object.assign(e,t)}function DS(e,t,r,n){let i=r.enter("blockquote"),o=r.createTracker(n);o.move("> "),o.shift(2);let s=r.indentLines(r.containerFlow(e,o.current()),o2);return i(),s}function o2(e,t,r){return">"+(r?"":" ")+e}function tu(e,t){return MS(e,t.inConstruct,!0)&&!MS(e,t.notInConstruct,!1)}function MS(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function bh(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
55
- `&&tu(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
56
- `}function NS(e,t){let r=String(e),n=r.indexOf(t),i=n,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++o>s&&(s=o):o=1,i=n+t.length,n=r.indexOf(t,i);return s}function Ps(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 FS(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 RS(e,t,r,n){let i=FS(r),o=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Ps(e,r)){let f=r.enter("codeIndented"),p=r.indentLines(o,s2);return f(),p}let a=r.createTracker(n),l=i.repeat(Math.max(NS(o,i)+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:`
35
+ Minimum version required to store current data is: `+i+`.
36
+ `);let s=S9(t,r,o),a=rh.getSymbolSize(t),l=new f9(a);return x9(l,t),y9(l),b9(l,t),t0(l,r,0),t>=7&&w9(l,t),v9(l,s),isNaN(n)&&(n=Zb.getBestMask(l,t0.bind(null,l,r))),Zb.applyMask(n,l),t0(l,r,n),{modules:l,version:t,errorCorrectionLevel:r,maskPattern:n,segments:o}}Q_.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let n=Xb.M,o,i;return typeof r<"u"&&(n=Xb.from(r.errorCorrectionLevel,Xb.M),o=nh.from(r.version),i=Zb.from(r.maskPattern),r.toSJISFunc&&rh.setToSJISFunction(r.toSJISFunc)),T9(t,o,n,i)}});var r0=q(Yi=>{function X_(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+t.slice(0,6).join("")}}Yi.getOptions=function(t){t||(t={}),t.color||(t.color={});let r=typeof t.margin>"u"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:n,scale:n?4:o,margin:r,color:{dark:X_(t.color.dark||"#000000ff"),light:X_(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},Yi.getScale=function(t,r){return r.width&&r.width>=t+r.margin*2?r.width/(t+r.margin*2):r.scale},Yi.getImageWidth=function(t,r){let n=Yi.getScale(t,r);return Math.floor((t+r.margin*2)*n)},Yi.qrToImageData=function(t,r,n){let o=r.modules.size,i=r.modules.data,s=Yi.getScale(o,n),a=Math.floor((o+n.margin*2)*s),l=n.margin*s,u=[n.color.light,n.color.dark];for(let c=0;c<a;c++)for(let f=0;f<a;f++){let p=(c*a+f)*4,m=n.color.light;if(c>=l&&f>=l&&c<a-l&&f<a-l){let h=Math.floor((c-l)/s),d=Math.floor((f-l)/s);m=u[i[h*o+d]?1:0]}t[p++]=m.r,t[p++]=m.g,t[p++]=m.b,t[p]=m.a}}});var Z_=q(oh=>{var n0=r0();function E9(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}function C9(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}oh.render=function(t,r,n){let o=n,i=r;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),r||(i=C9()),o=n0.getOptions(o);let s=n0.getImageWidth(t.modules.size,o),a=i.getContext("2d"),l=a.createImageData(s,s);return n0.qrToImageData(l.data,t,o),E9(a,i,s),a.putImageData(l,0,0),i},oh.renderToDataURL=function(t,r,n){let o=n;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),o||(o={});let i=oh.render(t,r,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}});var tO=q(eO=>{var D9=r0();function K_(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function o0(e,t,r){let n=e+t;return typeof r<"u"&&(n+=" "+r),n}function A9(e,t,r){let n="",o=0,i=!1,s=0;for(let a=0;a<e.length;a++){let l=Math.floor(a%t),u=Math.floor(a/t);!l&&!i&&(i=!0),e[a]?(s++,a>0&&l>0&&e[a-1]||(n+=i?o0("M",l+r,.5+u+r):o0("m",o,0),o=0,i=!1),l+1<t&&e[a+1]||(n+=o0("h",s),s=0)):o++}return n}eO.render=function(t,r,n){let o=D9.getOptions(r),i=t.modules.size,s=t.modules.data,a=i+o.margin*2,l=o.color.light.a?"<path "+K_(o.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",u="<path "+K_(o.color.dark,"stroke")+' d="'+A9(s,i,o.margin)+'"/>',c='viewBox="0 0 '+a+" "+a+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+c+' shape-rendering="crispEdges">'+l+u+`</svg>
37
+ `;return typeof n=="function"&&n(null,p),p}});var nO=q(au=>{var I9=i_(),i0=J_(),rO=Z_(),M9=tO();function s0(e,t,r,n,o){let i=[].slice.call(arguments,1),s=i.length,a=typeof i[s-1]=="function";if(!a&&!I9())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(o=r,r=t,t=n=void 0):s===3&&(t.getContext&&typeof o>"u"?(o=n,n=void 0):(o=n,n=r,r=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=t,t=n=void 0):s===2&&!t.getContext&&(n=r,r=t,t=void 0),new Promise(function(l,u){try{let c=i0.create(r,n);l(e(c,t,n))}catch(c){u(c)}})}try{let l=i0.create(r,n);o(null,e(l,t,n))}catch(l){o(l)}}au.create=i0.create,au.toCanvas=s0.bind(null,rO.render),au.toDataURL=s0.bind(null,rO.renderToDataURL),au.toString=s0.bind(null,function(e,t,r){return M9.render(e,r)})});var uu=globalThis,va=uu.ShadowRoot&&(uu.ShadyCSS===void 0||uu.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ah=Symbol(),uw=new WeakMap,Qi=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==ah)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(va&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=uw.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&uw.set(r,t))}return t}toString(){return this.cssText}},Ye=e=>new Qi(typeof e=="string"?e:e+"",void 0,ah),Ee=(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 Qi(r,e,ah)},cu=(e,t)=>{if(va)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of t){let n=document.createElement("style"),o=uu.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,e.appendChild(n)}},Sa=va?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Ye(r)})(e):e;var{is:AN,defineProperty:IN,getOwnPropertyDescriptor:MN,getOwnPropertyNames:_N,getOwnPropertySymbols:ON,getPrototypeOf:NN}=Object,fu=globalThis,cw=fu.trustedTypes,PN=cw?cw.emptyScript:"",FN=fu.reactiveElementPolyfillSupport,ka=(e,t)=>e,Ji={toAttribute(e,t){switch(t){case Boolean:e=e?PN: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}},Ta=(e,t)=>!AN(e,t),fw={attribute:!0,type:String,converter:Ji,reflect:!1,useDefault:!1,hasChanged:Ta};Symbol.metadata??=Symbol("metadata"),fu.litPropertyMetadata??=new WeakMap;var Jr=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=fw){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&&IN(this.prototype,t,o)}}static getPropertyDescriptor(t,r,n){let{get:o,set:i}=MN(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)??fw}static _$Ei(){if(this.hasOwnProperty(ka("elementProperties")))return;let t=NN(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ka("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ka("properties"))){let r=this.properties,n=[..._N(r),...ON(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(Sa(o))}else t!==void 0&&r.push(Sa(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 cu(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??Ta)(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){}};Jr.elementStyles=[],Jr.shadowRootOptions={mode:"open"},Jr[ka("elementProperties")]=new Map,Jr[ka("finalized")]=new Map,FN?.({ReactiveElement:Jr}),(fu.reactiveElementVersions??=[]).push("2.1.1");var lh=globalThis,pu=lh.trustedTypes,pw=pu?pu.createPolicy("lit-html",{createHTML:e=>e}):void 0,uh="$lit$",vn=`lit$${Math.random().toFixed(9).slice(2)}$`,ch="?"+vn,LN=`<${ch}>`,$o=document,Ea=()=>$o.createComment(""),Ca=e=>e===null||typeof e!="object"&&typeof e!="function",fh=Array.isArray,mw=e=>fh(e)||typeof e?.[Symbol.iterator]=="function",ph=`[
38
+ \f\r]`,Da=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hw=/-->/g,dw=/>/g,zo=RegExp(`>|${ph}(?:([^\\s"'>=/]+)(${ph}*=${ph}*(?:[^
39
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),gw=/'/g,xw=/"/g,yw=/^(?:script|style|textarea|title)$/i,mh=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Z=mh(1),hh=mh(2),dh=mh(3),Qe=Symbol.for("lit-noChange"),Xe=Symbol.for("lit-nothing"),bw=new WeakMap,Ho=$o.createTreeWalker($o,129);function ww(e,t){if(!fh(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return pw!==void 0?pw.createHTML(t):t}var vw=(e,t)=>{let r=e.length-1,n=[],o,i=t===2?"<svg>":t===3?"<math>":"",s=Da;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===Da?c[1]==="!--"?s=hw:c[1]!==void 0?s=dw:c[2]!==void 0?(yw.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=zo):c[3]!==void 0&&(s=zo):s===zo?c[0]===">"?(s=o??Da,f=-1):c[1]===void 0?f=-2:(f=s.lastIndex-c[2].length,u=c[1],s=c[3]===void 0?zo:c[3]==='"'?xw:gw):s===xw||s===gw?s=zo:s===hw||s===dw?s=Da:(s=zo,o=void 0);let m=s===zo&&e[a+1].startsWith("/>")?" ":"";i+=s===Da?l+LN:f>=0?(n.push(u),l.slice(0,f)+uh+l.slice(f)+vn+m):l+vn+(f===-2?a:m)}return[ww(e,i+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Aa=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]=vw(t,r);if(this.el=e.createElement(u,n),Ho.currentNode=this.el.content,r===2||r===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=Ho.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let f of o.getAttributeNames())if(f.endsWith(uh)){let p=c[s++],m=o.getAttribute(f).split(vn),h=/([.?@])?(.*)/.exec(p);l.push({type:1,index:i,name:h[2],strings:m,ctor:h[1]==="."?hu:h[1]==="?"?du:h[1]==="@"?gu:jo}),o.removeAttribute(f)}else f.startsWith(vn)&&(l.push({type:6,index:i}),o.removeAttribute(f));if(yw.test(o.tagName)){let f=o.textContent.split(vn),p=f.length-1;if(p>0){o.textContent=pu?pu.emptyScript:"";for(let m=0;m<p;m++)o.append(f[m],Ea()),Ho.nextNode(),l.push({type:2,index:++i});o.append(f[p],Ea())}}}else if(o.nodeType===8)if(o.data===ch)l.push({type:2,index:i});else{let f=-1;for(;(f=o.data.indexOf(vn,f+1))!==-1;)l.push({type:7,index:i}),f+=vn.length-1}i++}}static createElement(t,r){let n=$o.createElement("template");return n.innerHTML=t,n}};function Uo(e,t,r=e,n){if(t===Qe)return t;let o=n!==void 0?r._$Co?.[n]:r._$Cl,i=Ca(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=Uo(e,o._$AS(e,t.values),o,n)),t}var mu=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??$o).importNode(r,!0);Ho.currentNode=o;let i=Ho.nextNode(),s=0,a=0,l=n[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new Xi(i,i.nextSibling,this,t):l.type===1?u=new l.ctor(i,l.name,l.strings,this,t):l.type===6&&(u=new xu(i,this,t)),this._$AV.push(u),l=n[++a]}s!==l?.index&&(i=Ho.nextNode(),s++)}return Ho.currentNode=$o,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++}},Xi=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,n,o){this.type=2,this._$AH=Xe,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=Uo(this,t,r),Ca(t)?t===Xe||t==null||t===""?(this._$AH!==Xe&&this._$AR(),this._$AH=Xe):t!==this._$AH&&t!==Qe&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):mw(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!==Xe&&Ca(this._$AH)?this._$AA.nextSibling.data=t:this.T($o.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=Aa.createElement(ww(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let i=new mu(o,this),s=i.u(this.options);i.p(r),this.T(s),this._$AH=i}}_$AC(t){let r=bw.get(t.strings);return r===void 0&&bw.set(t.strings,r=new Aa(t)),r}k(t){fh(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(Ea()),this.O(Ea()),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))}},jo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,o,i){this.type=1,this._$AH=Xe,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=Xe}_$AI(t,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)t=Uo(this,t,r,0),s=!Ca(t)||t!==this._$AH&&t!==Qe,s&&(this._$AH=t);else{let a=t,l,u;for(t=i[0],l=0;l<i.length-1;l++)u=Uo(this,a[n+l],r,l),u===Qe&&(u=this._$AH[l]),s||=!Ca(u)||u!==this._$AH[l],u===Xe?t=Xe:t!==Xe&&(t+=(u??"")+i[l+1]),this._$AH[l]=u}s&&!o&&this.j(t)}j(t){t===Xe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},hu=class extends jo{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Xe?void 0:t}},du=class extends jo{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Xe)}},gu=class extends jo{constructor(t,r,n,o,i){super(t,r,n,o,i),this.type=5}_$AI(t,r=this){if((t=Uo(this,t,r,0)??Xe)===Qe)return;let n=this._$AH,o=t===Xe&&n!==Xe||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,i=t!==Xe&&(n===Xe||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)}},xu=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){Uo(this,t)}},gh={M:uh,P:vn,A:ch,C:1,L:vw,R:mu,D:mw,V:Uo,I:Xi,H:jo,N:du,U:gu,B:hu,F:xu},RN=lh.litHtmlPolyfillSupport;RN?.(Aa,Xi),(lh.litHtmlVersions??=[]).push("3.3.1");var Zi=(e,t,r)=>{let n=r?.renderBefore??t,o=n._$litPart$;if(o===void 0){let i=r?.renderBefore??null;n._$litPart$=o=new Xi(t.insertBefore(Ea(),i),i,void 0,r??{})}return o._$AI(e),o};var xh=globalThis,Sn=class extends Jr{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=Zi(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Qe}};Sn._$litElement$=!0,Sn.finalized=!0,xh.litElementHydrateSupport?.({LitElement:Sn});var BN=xh.litElementPolyfillSupport;BN?.({LitElement:Sn});var $N={_$AK:(e,t,r)=>{e._$AK(t,r)},_$AL:e=>e._$AL};(xh.litElementVersions??=[]).push("4.2.1");var zN=!1;var ve={};le(ve,{ObservableIntake:()=>Hh,Observablemap:()=>zh,fromStreamWithBackpressure:()=>E2,rxjs:()=>os});var J={};le(J,{CumulativeDeferred:()=>vu,Deferred:()=>wu,cumulativeDefer:()=>UN,defer:()=>jn,fromCallback:()=>GN,getFirstTrueOrFalse:()=>VN,map:()=>qN,rejectedPromise:()=>WN,resolvedPromise:()=>jN,timeoutAndContinue:()=>YN,timeoutWrap:()=>Sw});var wu=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"})}},jn=()=>new wu;var vu=class{constructor(){this.accumulatedPromises=[],this.deferred=jn(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}subDefer(){let t=jn();return this.addPromise(t.promise),t}addPromise(t){this.accumulatedPromises.push(t)}},UN=()=>new vu;var jN=e=>Promise.resolve(e),WN=e=>Promise.reject(e),qN=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},Sw=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),YN=async(e,t=6e4)=>Sw(e,t,!1),VN=async e=>{let t=jn();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise},GN=e=>new Promise((t,r)=>{e((n,o)=>{n?r(n):t(o)})});var os={};le(os,{Observable:()=>Fe,ReplaySubject:()=>Cu,Subject:()=>Zr,Subscription:()=>Kt,from:()=>Vo,fromEvent:()=>Qo,of:()=>Bh,ops:()=>T2});var yh=function(e,t){return yh=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])},yh(e,t)};function Tt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var bh=function(){return bh=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},bh.apply(this,arguments)};function JN(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 XN(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 ZN(e,t){return function(r,n){t(r,n,e)}}function KN(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,m=r.length-1;m>=0;m--){var h={};for(var d in n)h[d]=d==="access"?{}:n[d];for(var d in n.access)h.access[d]=n.access[d];h.addInitializer=function(y){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(y||null))};var g=(0,r[m])(a==="accessor"?{get:c.get,set:c.set}:c[l],h);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 eP(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 tP(e){return typeof e=="symbol"?e:"".concat(e)}function rP(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 nP(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Sh(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 Ia(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.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 wh=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 oP(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&wh(t,e,r)}function At(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 Ut(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 iP(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ut(arguments[t]));return e}function sP(){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 xr(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 kn(e){return this instanceof kn?(this.v=e,this):new kn(e)}function kh(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(m){return function(h){return Promise.resolve(h).then(m,f)}}function a(m,h){n[m]&&(o[m]=function(d){return new Promise(function(g,y){i.push([m,d,g,y])>1||l(m,d)})},h&&(o[m]=h(o[m])))}function l(m,h){try{u(n[m](h))}catch(d){p(i[0][3],d)}}function u(m){m.value instanceof kn?Promise.resolve(m.value.v).then(c,f):p(i[0][2],m)}function c(m){l("next",m)}function f(m){l("throw",m)}function p(m,h){m(h),i.shift(),i.length&&l(i[0][0],i[0][1])}}function aP(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:kn(e[o](s)),done:!1}:i?i(s):s}:i}}function Th(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 At=="function"?At(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 lP(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var uP=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},vh=function(e){return vh=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},vh(e)};function cP(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=vh(e),n=0;n<r.length;n++)r[n]!=="default"&&wh(t,e,r[n]);return uP(t,e),t}function fP(e){return e&&e.__esModule?e:{default:e}}function pP(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 mP(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 hP(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 dP(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var gP=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 xP(e){function t(i){e.error=e.hasError?new gP(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(o,function(s){return t(s),o()})}else n|=1}catch(s){t(s)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}function yP(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,o,i,s){return n?t?".jsx":".js":o&&(!i||!s)?r:o+i+"."+s.toLowerCase()+"js"}):e}var t8={__extends:Tt,__assign:bh,__rest:JN,__decorate:XN,__param:ZN,__esDecorate:KN,__runInitializers:eP,__propKey:tP,__setFunctionName:rP,__metadata:nP,__awaiter:Sh,__generator:Ia,__createBinding:wh,__exportStar:oP,__values:At,__read:Ut,__spread:iP,__spreadArrays:sP,__spreadArray:xr,__await:kn,__asyncGenerator:kh,__asyncDelegator:aP,__asyncValues:Th,__makeTemplateObject:lP,__importStar:cP,__importDefault:fP,__classPrivateFieldGet:pP,__classPrivateFieldSet:mP,__classPrivateFieldIn:hP,__addDisposableResource:dP,__disposeResources:xP,__rewriteRelativeImportExtension:yP};function ge(e){return typeof e=="function"}function Su(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 Ma=Su(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
40
+ `+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
41
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function _r(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=At(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(ge(c))try{c()}catch(d){i=d instanceof Ma?d.errors:[d]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=At(f),m=p.next();!m.done;m=p.next()){var h=m.value;try{kw(h)}catch(d){i=i??[],d instanceof Ma?i=xr(xr([],Ut(i)),Ut(d.errors)):i.push(d)}}}catch(d){n={error:d}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new Ma(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)kw(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)&&_r(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&_r(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Eh=Kt.EMPTY;function ku(e){return e instanceof Kt||e&&"closed"in e&&ge(e.remove)&&ge(e.add)&&ge(e.unsubscribe)}function kw(e){ge(e)?e():e.unsubscribe()}var yr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ki={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Ki.delegate;return o?.setTimeout?o.setTimeout.apply(o,xr([e,t],Ut(r))):setTimeout.apply(void 0,xr([e,t],Ut(r)))},clearTimeout:function(e){var t=Ki.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Tu(e){Ki.setTimeout(function(){var t=yr.onUnhandledError;if(t)t(e);else throw e})}function Xr(){}var Tw=(function(){return Ch("C",void 0,void 0)})();function Ew(e){return Ch("E",void 0,e)}function Cw(e){return Ch("N",e,void 0)}function Ch(e,t,r){return{kind:e,value:t,error:r}}var Wo=null;function es(e){if(yr.useDeprecatedSynchronousErrorHandling){var t=!Wo;if(t&&(Wo={errorThrown:!1,error:null}),e(),t){var r=Wo,n=r.errorThrown,o=r.error;if(Wo=null,n)throw o}}else e()}function Dw(e){yr.useDeprecatedSynchronousErrorHandling&&Wo&&(Wo.errorThrown=!0,Wo.error=e)}var qo=(function(e){Tt(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,ku(r)&&r.add(n)):n.destination=SP,n}return t.create=function(r,n,o){return new _a(r,n,o)},t.prototype.next=function(r){this.isStopped?Ah(Cw(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?Ah(Ew(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?Ah(Tw,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),bP=Function.prototype.bind;function Dh(e,t){return bP.call(e,t)}var wP=(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){Eu(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Eu(n)}else Eu(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Eu(r)}},e})(),_a=(function(e){Tt(t,e);function t(r,n,o){var i=e.call(this)||this,s;if(ge(r)||!r)s={next:r??void 0,error:n??void 0,complete:o??void 0};else{var a;i&&yr.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&Dh(r.next,a),error:r.error&&Dh(r.error,a),complete:r.complete&&Dh(r.complete,a)}):s=r}return i.destination=new wP(s),i}return t})(qo);function Eu(e){yr.useDeprecatedSynchronousErrorHandling?Dw(e):Tu(e)}function vP(e){throw e}function Ah(e,t){var r=yr.onStoppedNotification;r&&Ki.setTimeout(function(){return r(e,t)})}var SP={closed:!0,next:Xr,error:vP,complete:Xr};var Yo=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Oa(e){return e}function kP(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ih(e)}function Ih(e){return e.length===0?Oa:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var Fe=(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=EP(t)?t:new _a(t,r,n);return es(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=Aw(r),new r(function(o,i){var s=new _a({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[Yo]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Ih(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Aw(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 Aw(e){var t;return(t=e??yr.Promise)!==null&&t!==void 0?t:Promise}function TP(e){return e&&ge(e.next)&&ge(e.error)&&ge(e.complete)}function EP(e){return e&&e instanceof qo||TP(e)&&ku(e)}function CP(e){return ge(e?.lift)}function ze(e){return function(t){if(CP(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 He(e,t,r,n,o){return new Iw(e,t,r,n,o)}var Iw=(function(e){Tt(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})(qo);var Mh=Su(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var Zr=(function(e){Tt(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 _h(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Mh},t.prototype.next=function(r){var n=this;es(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=At(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;es(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;es(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?Eh:(this.currentObservers=null,a.push(r),new Kt(function(){n.currentObservers=null,_r(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 Fe;return r.source=this,r},t.create=function(r,n){return new _h(r,n)},t})(Fe),_h=(function(e){Tt(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:Eh},t})(Zr);var Na={now:function(){return(Na.delegate||Date).now()},delegate:void 0};var Cu=(function(e){Tt(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Na);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})(Zr);var Oh=(function(e){Tt(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 Pa={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Pa.delegate;return o?.setInterval?o.setInterval.apply(o,xr([e,t],Ut(r))):setInterval.apply(void 0,xr([e,t],Ut(r)))},clearInterval:function(e){var t=Pa.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Nh=(function(e){Tt(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),Pa.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&&Pa.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,_r(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(Oh);var Fa=(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=Na.now,e})();var Ph=(function(e){Tt(t,e);function t(r,n){n===void 0&&(n=Fa.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})(Fa);var Wn=new Ph(Nh),Fh=Wn;function Du(e){return e&&ge(e.schedule)}function Lh(e){return e[e.length-1]}function OV(e){return ge(Lh(e))?e.pop():void 0}function qn(e){return Du(Lh(e))?e.pop():void 0}function NV(e,t){return typeof Lh(e)=="number"?e.pop():t}var ts=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function Au(e){return ge(e?.then)}function Iu(e){return ge(e[Yo])}function Mu(e){return Symbol.asyncIterator&&ge(e?.[Symbol.asyncIterator])}function _u(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 DP(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ou=DP();function Nu(e){return ge(e?.[Ou])}function Pu(e){return kh(this,arguments,function(){var r,n,o,i;return Ia(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,kn(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,kn(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,kn(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 Fu(e){return ge(e?.getReader)}function ut(e){if(e instanceof Fe)return e;if(e!=null){if(Iu(e))return AP(e);if(ts(e))return IP(e);if(Au(e))return MP(e);if(Mu(e))return Mw(e);if(Nu(e))return _P(e);if(Fu(e))return OP(e)}throw _u(e)}function AP(e){return new Fe(function(t){var r=e[Yo]();if(ge(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function IP(e){return new Fe(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function MP(e){return new Fe(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Tu)})}function _P(e){return new Fe(function(t){var r,n;try{for(var o=At(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 Mw(e){return new Fe(function(t){NP(e,t).catch(function(r){return t.error(r)})})}function OP(e){return Mw(Pu(e))}function NP(e,t){var r,n,o,i;return Sh(this,void 0,void 0,function(){var s,a;return Ia(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=Th(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 jt(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 rs(e,t){return t===void 0&&(t=0),ze(function(r,n){r.subscribe(He(n,function(o){return jt(n,e,function(){return n.next(o)},t)},function(){return jt(n,e,function(){return n.complete()},t)},function(o){return jt(n,e,function(){return n.error(o)},t)}))})}function ns(e,t){return t===void 0&&(t=0),ze(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function _w(e,t){return ut(e).pipe(ns(t),rs(t))}function Ow(e,t){return ut(e).pipe(ns(t),rs(t))}function Nw(e,t){return new Fe(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})})}function Pw(e,t){return new Fe(function(r){var n;return jt(r,t,function(){n=e[Ou](),jt(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 ge(n?.return)&&n.return()}})}function Lu(e,t){if(!e)throw new Error("Iterable cannot be null");return new Fe(function(r){jt(r,t,function(){var n=e[Symbol.asyncIterator]();jt(r,t,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Fw(e,t){return Lu(Pu(e),t)}function Rh(e,t){if(e!=null){if(Iu(e))return _w(e,t);if(ts(e))return Nw(e,t);if(Au(e))return Ow(e,t);if(Mu(e))return Lu(e,t);if(Nu(e))return Pw(e,t);if(Fu(e))return Fw(e,t)}throw _u(e)}function Vo(e,t){return t?Rh(e,t):ut(e)}function Bh(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=qn(e);return Vo(e,r)}function Lw(e){return e instanceof Date&&!isNaN(e)}function Yn(e,t){return ze(function(r,n){var o=0;r.subscribe(He(n,function(i){n.next(e.call(t,i,o++))}))})}var PP=Array.isArray;function FP(e,t){return PP(t)?e.apply(void 0,xr([],Ut(t))):e(t)}function Rw(e){return Yn(function(t){return FP(e,t)})}function Bw(e,t,r,n,o,i,s,a){var l=[],u=0,c=0,f=!1,p=function(){f&&!l.length&&!u&&t.complete()},m=function(d){return u<n?h(d):l.push(d)},h=function(d){i&&t.next(d),u++;var g=!1;ut(r(d,c++)).subscribe(He(t,function(y){o?.(y),i?m(y):t.next(y)},function(){g=!0},void 0,function(){if(g)try{u--;for(var y=function(){var S=l.shift();s?jt(t,s,function(){return h(S)}):h(S)};l.length&&u<n;)y();p()}catch(S){t.error(S)}}))};return e.subscribe(He(t,m,function(){f=!0,p()})),function(){a?.()}}function Go(e,t,r){return r===void 0&&(r=1/0),ge(t)?Go(function(n,o){return Yn(function(i,s){return t(n,i,o,s)})(ut(e(n,o)))},r):(typeof t=="number"&&(r=t),ze(function(n,o){return Bw(n,o,e,r)}))}function Ru(e){return e===void 0&&(e=1/0),Go(Oa,e)}function Bu(){return Ru(1)}function $u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Bu()(Vo(e,qn(e)))}var LP=["addListener","removeListener"],RP=["addEventListener","removeEventListener"],BP=["on","off"];function Qo(e,t,r,n){if(ge(r)&&(n=r,r=void 0),n)return Qo(e,t,r).pipe(Rw(n));var o=Ut(HP(e)?RP.map(function(a){return function(l){return e[a](t,l,r)}}):$P(e)?LP.map($w(e,t)):zP(e)?BP.map($w(e,t)):[],2),i=o[0],s=o[1];if(!i&&ts(e))return Go(function(a){return Qo(a,t,r)})(ut(e));if(!i)throw new TypeError("Invalid event target");return new Fe(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 $w(e,t){return function(r){return function(n){return e[r](t,n)}}}function $P(e){return ge(e.addListener)&&ge(e.removeListener)}function zP(e){return ge(e.on)&&ge(e.off)}function HP(e){return ge(e.addEventListener)&&ge(e.removeEventListener)}function $h(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Fh);var n=-1;return t!=null&&(Du(t)?r=t:n=t),new Fe(function(o){var i=Lw(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 zu(e,t){return ze(function(r,n){var o=0;r.subscribe(He(n,function(i){return e.call(t,i,o++)&&n.next(i)}))})}function Hu(e){return ze(function(t,r){var n=[];return t.subscribe(He(r,function(o){return n.push(o)},function(){r.next(n),r.complete()})),ut(e).subscribe(He(r,function(){var o=n;n=[],r.next(o)},Xr)),function(){n=null}})}function Uu(e,t){return t===void 0&&(t=null),t=t??e,ze(function(r,n){var o=[],i=0;r.subscribe(He(n,function(s){var a,l,u,c,f=null;i++%t===0&&o.push([]);try{for(var p=At(o),m=p.next();!m.done;m=p.next()){var h=m.value;h.push(s),e<=h.length&&(f=f??[],f.push(h))}}catch(y){a={error:y}}finally{try{m&&!m.done&&(l=p.return)&&l.call(p)}finally{if(a)throw a.error}}if(f)try{for(var d=At(f),g=d.next();!g.done;g=d.next()){var h=g.value;_r(o,h),n.next(h)}}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=At(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 ju(e){for(var t,r,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var i=(t=qn(n))!==null&&t!==void 0?t:Wn,s=(r=n[0])!==null&&r!==void 0?r:null,a=n[1]||1/0;return ze(function(l,u){var c=[],f=!1,p=function(d){var g=d.buffer,y=d.subs;y.unsubscribe(),_r(c,d),u.next(g),f&&m()},m=function(){if(c){var d=new Kt;u.add(d);var g=[],y={buffer:g,subs:d};c.push(y),jt(d,i,function(){return p(y)},e)}};s!==null&&s>=0?jt(u,i,m,s,!0):f=!0,m();var h=He(u,function(d){var g,y,S=c.slice();try{for(var k=At(S),z=k.next();!z.done;z=k.next()){var R=z.value,T=R.buffer;T.push(d),a<=T.length&&p(R)}}catch($){g={error:$}}finally{try{z&&!z.done&&(y=k.return)&&y.call(k)}finally{if(g)throw g.error}}},function(){for(;c?.length;)u.next(c.shift().buffer);h?.unsubscribe(),u.complete(),u.unsubscribe()},void 0,function(){return c=null});l.subscribe(h)})}function Wu(e){return ze(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(He(r,function(a){i?.unsubscribe(),n=!0,o=a,i=He(r,s,Xr),ut(e(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function qu(e,t){return t===void 0&&(t=Wn),ze(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(He(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 Yu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=qn(e);return ze(function(n,o){(r?$u(e,n,r):$u(e,n)).subscribe(o)})}function Vu(e){return ze(function(t,r){ut(e).subscribe(He(r,function(){return r.complete()},Xr)),!r.closed&&t.subscribe(r)})}function Gu(e,t){return ze(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,m=function(){f?.unsubscribe(),f=null,l&&(g(),p&&n.complete())},h=function(){f=null,p&&n.complete()},d=function(y){return f=ut(e(y)).subscribe(He(n,m,h))},g=function(){if(u){u=!1;var y=c;c=null,n.next(y),!p&&d(y)}};r.subscribe(He(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 Qu(e,t,r){t===void 0&&(t=Wn);var n=$h(e,t);return Gu(function(){return n},r)}var T2={buffer:Hu,bufferCount:Uu,bufferTime:ju,debounce:Wu,debounceTime:qu,filter:zu,map:Yn,startWith:Yu,takeUntil:Vu,throttleTime:Qu};var zh=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=Qo(t,r),i=new Zr;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 Zr,eventRef:t,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var Hh=class{constructor(){this.observableFunctions={next:t=>{},complete:t=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new Fe(t=>{this.observableFunctions.next=(...r)=>t.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),t.complete())}),this.completedDeffered=J.defer(),this.completed=this.completedDeffered.promise}setObservable(t){this.observable=t}push(t){this.buffered?this.payloadBuffer.push(t):this.internalPush(t)}pushMany(t){for(let r of t)this.push(r)}setGenerator(t){this.generator=t}makeBuffered(){this.buffered=!0}subscribe(...t){return this.observable.subscribe(...t)}request(t){if(t!==0)for(let r=0;r!==t;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(t){this.observableFunctions.next(t)}};function E2(e){return new Fe(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 C2={attribute:!0,type:String,converter:Ji,reflect:!1,hasChanged:Ta},zw=(e=C2,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 ee(e){return(t,r)=>typeof r=="object"?zw(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 Ce={};le(Ce,{DomTools:()=>Er,TypedRequest:()=>fl,breakpoints:()=>yn,css:()=>Nm,elementBasic:()=>Io,plugins:()=>Pm});var Io={};le(Io,{setup:()=>jq,staticStyles:()=>Hq,styles:()=>Uq});var hl={};le(hl,{DeesComms:()=>ug});var pe={};le(pe,{Timeout:()=>Ju,delayFor:()=>Hw,delayForRandom:()=>D2});var Hw=async(e,t,r=!1)=>(await new Ju(e,null,r).promise,t),D2=async(e,t,r,n=!1)=>(await Hw(Math.random()*(t-e)+e,null,n),r),Ju=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=jn(),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 is={};var qt={};le(qt,{TypedHandler:()=>eg,TypedRequest:()=>fl,TypedResponseError:()=>An,TypedRouter:()=>fi,TypedTarget:()=>tg,VirtualStream:()=>ln});var dt={};le(dt,{AsyncExecutionStack:()=>fd,BackpressuredArray:()=>pd,FastMap:()=>Za,Interest:()=>Ka,InterestMap:()=>md,LimitedArray:()=>hd,LoopTracker:()=>dd,ObjectMap:()=>ii,Stringmap:()=>gd,TimedAggregtor:()=>xd,Tree:()=>yd,uni:()=>dk});var Tn={};le(Tn,{SmartMatch:()=>jh});var La={};le(La,{isMatch:()=>M2,matcher:()=>I2});function Jo(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Uh=new Map,Uw=(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})},A2=(e,t)=>{t={caseSensitive:!1,...t};let r=e+JSON.stringify(t);if(Uh.has(r))return Uh.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=Jo(e).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return o.negated=n,Uh.set(r,o),o},jw=(e,t,r,n)=>{if(e=Uw(e,"inputs"),t=Uw(t,"patterns"),t.length===0)return[];t=t.map(s=>A2(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 I2(e,t,r){return jw(e,t,r,!1)}function M2(e,t,r){return jw(e,t,r,!0).length>0}var jh=class{constructor(t){this.wildcard=t}match(t){return La.isMatch(t,this.wildcard)}};var Or={};le(Or,{CronJob:()=>Xa,CronManager:()=>od,ExtendedDate:()=>id,HrtMeasurement:()=>sd,Interval:()=>ad,TimeStamp:()=>Is,Timer:()=>ld,getMilliSecondsAsHumanReadableAgoTime:()=>aR,getMilliSecondsAsHumanReadableString:()=>nd,getMilliSecondsFromUnits:()=>rd,units:()=>io});var $a={};le($a,{Cron:()=>Gw,CronDate:()=>er,CronPattern:()=>Xu,scheduledJobs:()=>ss});function It(e,t,r,n,o,i,s,a){return It.fromTZ(It.tp(e,t,r,n,o,i,s),a)}It.fromTZISO=(e,t,r)=>It.fromTZ(O2(e,t),r),It.fromTZ=function(e,t){let r=new Date(Date.UTC(e.y,e.m-1,e.d,e.h,e.i,e.s)),n=Wh(e.tz,r),o=new Date(r.getTime()-n),i=Wh(e.tz,o);if(i-n===0)return o;{let s=new Date(r.getTime()-i),a=Wh(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}},It.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}},It.tp=(e,t,r,n,o,i,s)=>({y:e,m:t,d:r,h:n,i:o,s:i,tz:s});function Wh(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 O2(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("+")?It.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):It.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),t)}It.minitz=It;var qh=32,Ra=31|qh,Ww=[1,2,4,8,16],Xu=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 er(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,Ra),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]|qh;else if(t===Ra)this.dayOfWeek[e]=Ra;else if(t<6&&t>0)this.dayOfWeek[e]=this.dayOfWeek[e]|Ww[t-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${t}, Type: ${typeof t}`)}},qw=[31,28,31,30,31,30,31,31,30,31,30,31],En=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],er=class Vw{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 Vw)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&Ra&&Ww[s-1]&o)return!0;if(o&qh){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=It.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>qw[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=It.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(It.fromTZISO(t,this.tz))}findNext(t,r,n,o){let i=this[r],s;n.lastDayOfMonth&&(this.month!==1?s=qw[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&Ra)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,En[n][0],t,En[n][2]);if(o>1){let i=n+1;for(;i<En.length;)this[En[i][0]]=-En[i][2],i++;if(o===3)return this[En[n][1]]++,this[En[n][0]]=-En[n][2],this.apply(),this.recurse(t,r,0);if(this.apply())return this.recurse(t,r,n-1)}return n+=1,n>=En.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)):It.fromTZ(It.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function N2(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 er(e.startAt,e.timezone)),e.stopAt&&(e.stopAt=new er(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 Ba(e){return Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function}function P2(e){return Ba(e)}function F2(e){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(e):e&&typeof e.unref<"u"&&e.unref()}var Yw=30*1e3,ss=[],Gw=class{name;options;_states;fn;constructor(e,t,r){let n,o;if(Ba(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(Ba(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=N2(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 Xu("* * * * *")},e&&(e instanceof Date||typeof e=="string"&&e.indexOf(":")>0)?this._states.once=new er(e,this.options.timezone||this.options.utcOffset):this._states.pattern=new Xu(e,this.options.timezone),this.name){if(ss.find(i=>i.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");ss.push(this)}return o!==void 0&&P2(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){let t=this._next(e);return t?e instanceof er||e instanceof Date?t.getTime()-e.getTime():t.getTime()-new er(e).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let e=ss.indexOf(this);e>=0&&ss.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>Yw&&(t=Yw),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),t),this._states.currentTimeout&&this.options.unref&&F2(this._states.currentTimeout),this)}async _trigger(e){if(this._states.blocking=!0,this._states.currentRun=new er(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){Ba(this.options.catch)&&this.options.catch(t,this)}else this.fn!==void 0&&await this.fn(this,this.options.context);this._states.previousRun=new er(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&&Ba(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 er(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 er(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 er(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 er(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 Qa={};le(Qa,{add:()=>Gn,addBusinessDays:()=>ac,addDays:()=>ht,addHours:()=>lc,addISOWeekYears:()=>cc,addMilliseconds:()=>Qn,addMinutes:()=>cs,addMonths:()=>en,addQuarters:()=>fs,addSeconds:()=>fc,addWeeks:()=>Jn,addYears:()=>pc,areIntervalsOverlapping:()=>Kw,clamp:()=>ev,closestIndexTo:()=>dc,closestTo:()=>tv,compareAsc:()=>_t,compareDesc:()=>rv,constructFrom:()=>O,constructNow:()=>ye,daysToWeeks:()=>nv,differenceInBusinessDays:()=>ov,differenceInCalendarDays:()=>wt,differenceInCalendarISOWeekYears:()=>xc,differenceInCalendarISOWeeks:()=>iv,differenceInCalendarMonths:()=>Zo,differenceInCalendarQuarters:()=>ps,differenceInCalendarWeeks:()=>Ko,differenceInCalendarYears:()=>Xn,differenceInDays:()=>ms,differenceInHours:()=>ei,differenceInISOWeekYears:()=>av,differenceInMilliseconds:()=>hs,differenceInMinutes:()=>ti,differenceInMonths:()=>Zn,differenceInQuarters:()=>lv,differenceInSeconds:()=>on,differenceInWeeks:()=>uv,differenceInYears:()=>wc,eachDayOfInterval:()=>vc,eachHourOfInterval:()=>cv,eachMinuteOfInterval:()=>fv,eachMonthOfInterval:()=>pv,eachQuarterOfInterval:()=>mv,eachWeekOfInterval:()=>hv,eachWeekendOfInterval:()=>xs,eachWeekendOfMonth:()=>dv,eachWeekendOfYear:()=>gv,eachYearOfInterval:()=>xv,endOfDay:()=>ds,endOfDecade:()=>yv,endOfHour:()=>bv,endOfISOWeek:()=>wv,endOfISOWeekYear:()=>vv,endOfMinute:()=>Sv,endOfMonth:()=>gs,endOfQuarter:()=>kv,endOfSecond:()=>Tv,endOfToday:()=>Ev,endOfTomorrow:()=>Cv,endOfWeek:()=>kc,endOfYear:()=>Sc,endOfYesterday:()=>Dv,format:()=>Wa,formatDate:()=>Wa,formatDistance:()=>Ac,formatDistanceStrict:()=>Ic,formatDistanceToNow:()=>Bv,formatDistanceToNowStrict:()=>$v,formatDuration:()=>zv,formatISO:()=>Hv,formatISO9075:()=>Uv,formatISODuration:()=>jv,formatRFC3339:()=>Wv,formatRFC7231:()=>qv,formatRelative:()=>Yv,formatters:()=>Ua,fromUnixTime:()=>Vv,getDate:()=>Mc,getDay:()=>ro,getDayOfYear:()=>Ec,getDaysInMonth:()=>_c,getDaysInYear:()=>Gv,getDecade:()=>Qv,getDefaultOptions:()=>Nc,getHours:()=>Jv,getISODay:()=>Pc,getISOWeek:()=>vs,getISOWeekYear:()=>Wt,getISOWeeksInYear:()=>Xv,getMilliseconds:()=>Zv,getMinutes:()=>Kv,getMonth:()=>e1,getOverlappingDaysInIntervals:()=>t1,getQuarter:()=>Ha,getSeconds:()=>r1,getTime:()=>n1,getUnixTime:()=>o1,getWeek:()=>Ss,getWeekOfMonth:()=>i1,getWeekYear:()=>eo,getWeeksInMonth:()=>s1,getYear:()=>a1,hoursToMilliseconds:()=>l1,hoursToMinutes:()=>u1,hoursToSeconds:()=>c1,interval:()=>f1,intervalToDuration:()=>p1,intlFormat:()=>m1,intlFormatDistance:()=>h1,isAfter:()=>d1,isBefore:()=>g1,isDate:()=>gc,isEqual:()=>x1,isExists:()=>y1,isFirstDayOfMonth:()=>b1,isFriday:()=>w1,isFuture:()=>v1,isLastDayOfMonth:()=>bc,isLeapYear:()=>Oc,isMatch:()=>S1,isMonday:()=>k1,isPast:()=>T1,isSameDay:()=>nn,isSameHour:()=>Cf,isSameISOWeek:()=>Df,isSameISOWeekYear:()=>E1,isSameMinute:()=>Af,isSameMonth:()=>If,isSameQuarter:()=>Mf,isSameSecond:()=>_f,isSameWeek:()=>Cs,isSameYear:()=>Of,isSaturday:()=>ic,isSunday:()=>sc,isThisHour:()=>C1,isThisISOWeek:()=>D1,isThisMinute:()=>A1,isThisMonth:()=>I1,isThisQuarter:()=>M1,isThisSecond:()=>_1,isThisWeek:()=>O1,isThisYear:()=>N1,isThursday:()=>P1,isToday:()=>F1,isTomorrow:()=>L1,isTuesday:()=>R1,isValid:()=>Et,isWednesday:()=>B1,isWeekend:()=>tn,isWithinInterval:()=>$1,isYesterday:()=>z1,lastDayOfDecade:()=>H1,lastDayOfISOWeek:()=>U1,lastDayOfISOWeekYear:()=>j1,lastDayOfMonth:()=>Fc,lastDayOfQuarter:()=>W1,lastDayOfWeek:()=>Nf,lastDayOfYear:()=>q1,lightFormat:()=>Y1,lightFormatters:()=>ur,longFormatters:()=>to,max:()=>mc,milliseconds:()=>V1,millisecondsToHours:()=>G1,millisecondsToMinutes:()=>Q1,millisecondsToSeconds:()=>J1,min:()=>hc,minutesToHours:()=>X1,minutesToMilliseconds:()=>Z1,minutesToSeconds:()=>K1,monthsToQuarters:()=>eS,monthsToYears:()=>tS,nextDay:()=>Nt,nextFriday:()=>rS,nextMonday:()=>nS,nextSaturday:()=>oS,nextSunday:()=>iS,nextThursday:()=>sS,nextTuesday:()=>aS,nextWednesday:()=>lS,parse:()=>Ef,parseISO:()=>cS,parseJSON:()=>fS,parsers:()=>Tf,previousDay:()=>Pt,previousFriday:()=>pS,previousMonday:()=>mS,previousSaturday:()=>hS,previousSunday:()=>dS,previousThursday:()=>gS,previousTuesday:()=>xS,previousWednesday:()=>yS,quartersToMonths:()=>bS,quartersToYears:()=>wS,roundToNearestHours:()=>vS,roundToNearestMinutes:()=>SS,secondsToHours:()=>kS,secondsToMilliseconds:()=>TS,secondsToMinutes:()=>ES,set:()=>CS,setDate:()=>DS,setDay:()=>no,setDayOfYear:()=>AS,setDefaultOptions:()=>IS,setHours:()=>MS,setISODay:()=>lf,setISOWeek:()=>ef,setISOWeekYear:()=>uc,setMilliseconds:()=>_S,setMinutes:()=>OS,setMonth:()=>Ds,setQuarter:()=>NS,setSeconds:()=>PS,setWeek:()=>Zc,setWeekYear:()=>FS,setYear:()=>LS,startOfDay:()=>rn,startOfDecade:()=>RS,startOfHour:()=>qa,startOfISOWeek:()=>ct,startOfISOWeekYear:()=>lr,startOfMinute:()=>Ya,startOfMonth:()=>Kn,startOfQuarter:()=>sn,startOfSecond:()=>Va,startOfToday:()=>BS,startOfTomorrow:()=>$S,startOfWeek:()=>Re,startOfWeekYear:()=>ri,startOfYear:()=>ys,startOfYesterday:()=>zS,sub:()=>HS,subBusinessDays:()=>US,subDays:()=>oo,subHours:()=>jS,subISOWeekYears:()=>yc,subMilliseconds:()=>WS,subMinutes:()=>qS,subMonths:()=>Ff,subQuarters:()=>YS,subSeconds:()=>VS,subWeeks:()=>GS,subYears:()=>QS,toDate:()=>x,transpose:()=>Lc,weeksToDays:()=>JS,yearsToDays:()=>XS,yearsToMonths:()=>ZS,yearsToQuarters:()=>KS});var Ku=7,za=365.2425,L2=Math.pow(10,8)*24*60*60*1e3,hre=-L2,Kr=6048e5,ec=864e5,Mt=6e4,ar=36e5,as=1e3,Yh=525600,Vn=43200,ls=1440,tc=60,rc=3,nc=12,oc=4,Xo=3600,us=60,Zu=Xo*24,Qw=Zu*7,Vh=Zu*365.2425,Gh=Vh/12,Jw=Gh*3,Qh=Symbol.for("constructDateFrom");function O(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Qh in e?e[Qh](t):e instanceof Date?new e.constructor(t):new Date(t)}var xre=O;function x(e,t){return O(t||e,e)}var wre=x;function ht(e,t,r){let n=x(e,r?.in);return isNaN(t)?O(r?.in||e,NaN):(t&&n.setDate(n.getDate()+t),n)}var Tre=ht;function en(e,t,r){let n=x(e,r?.in);if(isNaN(t))return O(r?.in||e,NaN);if(!t)return n;let o=n.getDate(),i=O(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 Are=en;function Gn(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=x(e,r?.in),f=o||n?en(c,o+n*12):c,p=s||i?ht(f,s+i*7):f,m=l+a*60,d=(u+m*60)*1e3;return O(r?.in||e,+p+d)}var Pre=Gn;function ic(e,t){return x(e,t?.in).getDay()===6}var Rre=ic;function sc(e,t){return x(e,t?.in).getDay()===0}var zre=sc;function tn(e,t){let r=x(e,t?.in).getDay();return r===0||r===6}var jre=tn;function ac(e,t,r){let n=x(e,r?.in),o=tn(n,r);if(isNaN(t))return O(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),tn(n,r)||(l-=1);return o&&tn(n,r)&&t!==0&&(ic(n,r)&&n.setDate(n.getDate()+(s<0?2:-1)),sc(n,r)&&n.setDate(n.getDate()+(s<0?1:-2))),n.setHours(i),n}var Jre=ac;function Qn(e,t,r){return O(r?.in||e,+x(e)+t)}var ene=Qn;function lc(e,t,r){return Qn(e,t*ar,r)}var one=lc;var Xw={};function Me(){return Xw}function Zw(e){Xw=e}function Re(e,t){let r=Me(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=x(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 une=Re;function ct(e,t){return Re(e,{...t,weekStartsOn:1})}var pne=ct;function Wt(e,t){let r=x(e,t?.in),n=r.getFullYear(),o=O(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);let i=ct(o),s=O(r,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);let a=ct(s);return r.getTime()>=i.getTime()?n+1:r.getTime()>=a.getTime()?n:n-1}var xne=Wt;function Ze(e){let t=x(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=O.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function rn(e,t){let r=x(e,t?.in);return r.setHours(0,0,0,0),r}var Tne=rn;function wt(e,t,r){let[n,o]=ne(r?.in,e,t),i=rn(n),s=rn(o),a=+i-Ze(i),l=+s-Ze(s);return Math.round((a-l)/ec)}var Mne=wt;function lr(e,t){let r=Wt(e,t),n=O(t?.in||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),ct(n)}var Fne=lr;function uc(e,t,r){let n=x(e,r?.in),o=wt(n,lr(n,r)),i=O(r?.in||e,0);return i.setFullYear(t,0,4),i.setHours(0,0,0,0),n=lr(i),n.setDate(n.getDate()+o),n}var Hne=uc;function cc(e,t,r){return uc(e,Wt(e,r)+t,r)}var qne=cc;function cs(e,t,r){let n=x(e,r?.in);return n.setTime(n.getTime()+t*Mt),n}var Qne=cs;function fs(e,t,r){return en(e,t*3,r)}var Zne=fs;function fc(e,t,r){return Qn(e,t*1e3,r)}var toe=fc;function Jn(e,t,r){return ht(e,t*7,r)}var ooe=Jn;function pc(e,t,r){return en(e,t*12,r)}var aoe=pc;function Kw(e,t,r){let[n,o]=[+x(e.start,r?.in),+x(e.end,r?.in)].sort((a,l)=>a-l),[i,s]=[+x(t.start,r?.in),+x(t.end,r?.in)].sort((a,l)=>a-l);return r?.inclusive?n<=s&&i<=o:n<s&&i<o}var coe=Kw;function mc(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=O.bind(null,o));let i=x(o,n);(!r||r<i||isNaN(+i))&&(r=i)}),O(n,r||NaN)}var hoe=mc;function hc(e,t){let r,n=t?.in;return e.forEach(o=>{!n&&typeof o=="object"&&(n=O.bind(null,o));let i=x(o,n);(!r||r>i||isNaN(+i))&&(r=i)}),O(n,r||NaN)}var yoe=hc;function ev(e,t,r){let[n,o,i]=ne(r?.in,e,t.start,t.end);return hc([mc([n,o],r),i],r)}var koe=ev;function dc(e,t){let r=+x(e);if(isNaN(r))return NaN;let n,o;return t.forEach((i,s)=>{let a=x(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 Coe=dc;function tv(e,t,r){let[n,...o]=ne(r?.in,e,...t),i=dc(n,o);if(typeof i=="number"&&isNaN(i))return O(n,NaN);if(i!==void 0)return o[i]}var _oe=tv;function _t(e,t){let r=+x(e)-+x(t);return r<0?-1:r>0?1:r}var Poe=_t;function rv(e,t){let r=+x(e)-+x(t);return r>0?-1:r<0?1:r}var Roe=rv;function ye(e){return O(e,Date.now())}var zoe=ye;function nv(e){let t=Math.trunc(e/7);return t===0?0:t}var joe=nv;function nn(e,t,r){let[n,o]=ne(r?.in,e,t);return+rn(n)==+rn(o)}var Voe=nn;function gc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}var Qoe=gc;function Et(e){return!(!gc(e)&&typeof e!="number"||isNaN(+x(e)))}var Koe=Et;function ov(e,t,r){let[n,o]=ne(r?.in,e,t);if(!Et(n)||!Et(o))return NaN;let i=wt(n,o),s=i<0?-1:1,a=Math.trunc(i/7),l=a*5,u=ht(o,a*7);for(;!nn(n,u);)l+=tn(u,r)?0:s,u=ht(u,s);return l===0?0:l}var aie=ov;function xc(e,t,r){let[n,o]=ne(r?.in,e,t);return Wt(n,r)-Wt(o,r)}var fie=xc;function iv(e,t,r){let[n,o]=ne(r?.in,e,t),i=ct(n),s=ct(o),a=+i-Ze(i),l=+s-Ze(s);return Math.round((a-l)/Kr)}var xie=iv;function Zo(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 wie=Zo;function Ha(e,t){let r=x(e,t?.in);return Math.trunc(r.getMonth()/3)+1}var kie=Ha;function ps(e,t,r){let[n,o]=ne(r?.in,e,t),i=n.getFullYear()-o.getFullYear(),s=Ha(n)-Ha(o);return i*4+s}var Die=ps;function Ko(e,t,r){let[n,o]=ne(r?.in,e,t),i=Re(n,r),s=Re(o,r),a=+i-Ze(i),l=+s-Ze(s);return Math.round((a-l)/Kr)}var Nie=Ko;function Xn(e,t,r){let[n,o]=ne(r?.in,e,t);return n.getFullYear()-o.getFullYear()}var Lie=Xn;function ms(e,t,r){let[n,o]=ne(r?.in,e,t),i=sv(n,o),s=Math.abs(wt(n,o));n.setDate(n.getDate()-i*s);let a=+(sv(n,o)===-i),l=i*(s-a);return l===0?0:l}function sv(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 zie=ms;function Ot(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function ei(e,t,r){let[n,o]=ne(r?.in,e,t),i=(+n-+o)/ar;return Ot(r?.roundingMethod)(i)}var Yie=ei;function yc(e,t,r){return cc(e,-t,r)}var Qie=yc;function av(e,t,r){let[n,o]=ne(r?.in,e,t),i=_t(n,o),s=Math.abs(xc(n,o,r)),a=yc(n,i*s,r),l=+(_t(a,o)===-i),u=i*(s-l);return u===0?0:u}var tse=av;function hs(e,t){return+x(e)-+x(t)}var ose=hs;function ti(e,t,r){let n=hs(e,t)/Mt;return Ot(r?.roundingMethod)(n)}var use=ti;function ds(e,t){let r=x(e,t?.in);return r.setHours(23,59,59,999),r}var pse=ds;function gs(e,t){let r=x(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}var dse=gs;function bc(e,t){let r=x(e,t?.in);return+ds(r,t)==+gs(r,t)}var wse=bc;function Zn(e,t,r){let[n,o,i]=ne(r?.in,e,e,t),s=_t(o,i),a=Math.abs(Zo(o,i));if(a<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-s*a);let l=_t(o,i)===-s;bc(n)&&a===1&&_t(n,i)===1&&(l=!1);let u=s*(a-+l);return u===0?0:u}var Cse=Zn;function lv(e,t,r){let n=Zn(e,t,r)/3;return Ot(r?.roundingMethod)(n)}var Mse=lv;function on(e,t,r){let n=hs(e,t)/1e3;return Ot(r?.roundingMethod)(n)}var Pse=on;function uv(e,t,r){let n=ms(e,t,r)/7;return Ot(r?.roundingMethod)(n)}var Bse=uv;function wc(e,t,r){let[n,o]=ne(r?.in,e,t),i=_t(n,o),s=Math.abs(Xn(n,o));n.setFullYear(1584),o.setFullYear(1584);let a=_t(n,o)===-i,l=i*(s-+a);return l===0?0:l}var jse=wc;function vt(e,t){let[r,n]=ne(e,t.start,t.end);return{start:r,end:n}}function vc(e,t){let{start:r,end:n}=vt(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(O(r,s)),s.setDate(s.getDate()+a),s.setHours(0,0,0,0);return o?l.reverse():l}var Qse=vc;function cv(e,t){let{start:r,end:n}=vt(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(O(r,s)),s.setHours(s.getHours()+a);return o?l.reverse():l}var Kse=cv;function fv(e,t){let{start:r,end:n}=vt(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(O(r,s)),s=cs(s,a);return o?l.reverse():l}var oae=fv;function pv(e,t){let{start:r,end:n}=vt(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(O(r,s)),s.setMonth(s.getMonth()+a);return o?l.reverse():l}var lae=pv;function sn(e,t){let r=x(e,t?.in),n=r.getMonth(),o=n-n%3;return r.setMonth(o,1),r.setHours(0,0,0,0),r}var fae=sn;function mv(e,t){let{start:r,end:n}=vt(t?.in,e),o=+r>+n,i=o?+sn(r):+sn(n),s=o?sn(n):sn(r),a=t?.step??1;if(!a)return[];a<0&&(a=-a,o=!o);let l=[];for(;+s<=i;)l.push(O(r,s)),s=fs(s,a);return o?l.reverse():l}var xae=mv;function hv(e,t){let{start:r,end:n}=vt(t?.in,e),o=+r>+n,i=o?Re(n,t):Re(r,t),s=o?Re(r,t):Re(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(O(r,l)),l=Jn(l,u),l.setHours(15);return o?c.reverse():c}var kae=hv;function xs(e,t){let{start:r,end:n}=vt(t?.in,e),o=vc({start:r,end:n},t),i=[],s=0;for(;s<o.length;){let a=o[s++];tn(a)&&i.push(O(r,a))}return i}var Iae=xs;function Kn(e,t){let r=x(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}var Oae=Kn;function dv(e,t){let r=Kn(e,t),n=gs(e,t);return xs({start:r,end:n},t)}var Rae=dv;function Sc(e,t){let r=x(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}var zae=Sc;function ys(e,t){let r=x(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}var jae=ys;function gv(e,t){let r=ys(e,t),n=Sc(e,t);return xs({start:r,end:n},t)}var Gae=gv;function xv(e,t){let{start:r,end:n}=vt(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(O(r,s)),s.setFullYear(s.getFullYear()+a);return o?l.reverse():l}var Zae=xv;function yv(e,t){let r=x(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 tle=yv;function bv(e,t){let r=x(e,t?.in);return r.setMinutes(59,59,999),r}var ole=bv;function kc(e,t){let r=Me(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=x(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 lle=kc;function wv(e,t){return kc(e,{...t,weekStartsOn:1})}var fle=wv;function vv(e,t){let r=Wt(e,t),n=O(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=ct(n,t);return o.setMilliseconds(o.getMilliseconds()-1),o}var gle=vv;function Sv(e,t){let r=x(e,t?.in);return r.setSeconds(59,999),r}var ble=Sv;function kv(e,t){let r=x(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(23,59,59,999),r}var Sle=kv;function Tv(e,t){let r=x(e,t?.in);return r.setMilliseconds(999),r}var Ele=Tv;function Ev(e){return ds(Date.now(),e)}var Ale=Ev;function Cv(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 _le=Cv;function Dv(e){let t=ye(e?.in),r=O(e?.in,0);return r.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()-1),r.setHours(23,59,59,999),r}var Fle=Dv;var R2={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"}},Av=(e,t,r)=>{let n,o=R2[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 Tc(e){return(t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var B2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},z2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Iv={date:Tc({formats:B2,defaultWidth:"full"}),time:Tc({formats:$2,defaultWidth:"full"}),dateTime:Tc({formats:z2,defaultWidth:"full"})};var H2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Mv=(e,t,r,n)=>H2[e];function bs(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 U2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},j2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},W2={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"]},q2={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"]},Y2={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"}},V2={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"}},G2=(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"},_v={ordinalNumber:G2,era:bs({values:U2,defaultWidth:"wide"}),quarter:bs({values:j2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:bs({values:W2,defaultWidth:"wide"}),day:bs({values:q2,defaultWidth:"wide"}),dayPeriod:bs({values:Y2,defaultWidth:"wide",formattingValues:V2,defaultFormattingWidth:"wide"})};function ws(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)?J2(a,f=>f.test(s)):Q2(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 Q2(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function J2(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Ov(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 X2=/^(\d+)(th|st|nd|rd)?/i,Z2=/\d+/i,K2={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},eL={any:[/^b/i,/^(a|c)/i]},tL={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rL={any:[/1/i,/2/i,/3/i,/4/i]},nL={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},oL={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]},iL={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},sL={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]},aL={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},lL={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}},Nv={ordinalNumber:Ov({matchPattern:X2,parsePattern:Z2,valueCallback:e=>parseInt(e,10)}),era:ws({matchPatterns:K2,defaultMatchWidth:"wide",parsePatterns:eL,defaultParseWidth:"any"}),quarter:ws({matchPatterns:tL,defaultMatchWidth:"wide",parsePatterns:rL,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ws({matchPatterns:nL,defaultMatchWidth:"wide",parsePatterns:oL,defaultParseWidth:"any"}),day:ws({matchPatterns:iL,defaultMatchWidth:"wide",parsePatterns:sL,defaultParseWidth:"any"}),dayPeriod:ws({matchPatterns:aL,defaultMatchWidth:"any",parsePatterns:lL,defaultParseWidth:"any"})};var tr={code:"en-US",formatDistance:Av,formatLong:Iv,formatRelative:Mv,localize:_v,match:Nv,options:{weekStartsOn:0,firstWeekContainsDate:1}},tue=tr;function Ec(e,t){let r=x(e,t?.in);return wt(r,ys(r))+1}var lue=Ec;function vs(e,t){let r=x(e,t?.in),n=+ct(r)-+lr(r);return Math.round(n/Kr)+1}var hue=vs;function eo(e,t){let r=x(e,t?.in),n=r.getFullYear(),o=Me(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,s=O(t?.in||e,0);s.setFullYear(n+1,0,i),s.setHours(0,0,0,0);let a=Re(s,t),l=O(t?.in||e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);let u=Re(l,t);return+r>=+a?n+1:+r>=+u?n:n-1}var wue=eo;function ri(e,t){let r=Me(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=eo(e,t),i=O(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),Re(i,t)}var Cue=ri;function Ss(e,t){let r=x(e,t?.in),n=+Re(r,t)-+ri(r,t);return Math.round(n/Kr)+1}var Oue=Ss;function X(e,t){let r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}var ur={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return X(t==="yy"?n%100:n,t.length)},M(e,t){let r=e.getMonth();return t==="M"?String(r+1):X(r+1,2)},d(e,t){return X(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 X(e.getHours()%12||12,t.length)},H(e,t){return X(e.getHours(),t.length)},m(e,t){return X(e.getMinutes(),t.length)},s(e,t){return X(e.getSeconds(),t.length)},S(e,t){let r=t.length,n=e.getMilliseconds(),o=Math.trunc(n*Math.pow(10,r-3));return X(o,t.length)}};var ks={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ua={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 ur.y(e,t)},Y:function(e,t,r,n){let o=eo(e,n),i=o>0?o:1-o;if(t==="YY"){let s=i%100;return X(s,2)}return t==="Yo"?r.ordinalNumber(i,{unit:"year"}):X(i,t.length)},R:function(e,t){let r=Wt(e);return X(r,t.length)},u:function(e,t){let r=e.getFullYear();return X(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 X(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 X(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 ur.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 X(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=Ss(e,n);return t==="wo"?r.ordinalNumber(o,{unit:"week"}):X(o,t.length)},I:function(e,t,r){let n=vs(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):X(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):ur.d(e,t)},D:function(e,t,r){let n=Ec(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):X(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 X(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 X(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 X(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=ks.noon:n===0?o=ks.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=ks.evening:n>=12?o=ks.afternoon:n>=4?o=ks.morning:o=ks.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 ur.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):ur.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):X(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):X(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):ur.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):ur.s(e,t)},S:function(e,t){return ur.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Fv(n);case"XXXX":case"XX":return ni(n);case"XXXXX":case"XXX":default:return ni(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return Fv(n);case"xxxx":case"xx":return ni(n);case"xxxxx":case"xxx":default:return ni(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Pv(n,":");case"OOOO":default:return"GMT"+ni(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Pv(n,":");case"zzzz":default:return"GMT"+ni(n,":")}},t:function(e,t,r){let n=Math.trunc(+e/1e3);return X(n,t.length)},T:function(e,t,r){return X(+e,t.length)}};function Pv(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+X(i,2)}function Fv(e,t){return e%60===0?(e>0?"-":"+")+X(Math.abs(e)/60,2):ni(e,t)}function ni(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),o=X(Math.trunc(n/60),2),i=X(n%60,2);return r+o+t+i}var Lv=(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"})}},Rv=(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"})}},uL=(e,t)=>{let r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Lv(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}}",Lv(n,t)).replace("{{time}}",Rv(o,t))},to={p:Rv,P:uL};var cL=/^D+$/,fL=/^Y+$/,pL=["D","DD","YY","YYYY"];function Cc(e){return cL.test(e)}function Dc(e){return fL.test(e)}function ja(e,t,r){let n=mL(e,t,r);if(console.warn(n),pL.includes(e))throw new RangeError(n)}function mL(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 hL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gL=/^'([^]*?)'?$/,xL=/''/g,yL=/[a-zA-Z]/;function Wa(e,t,r){let n=Me(),o=r?.locale??n.locale??tr,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=x(e,r?.in);if(!Et(a))throw new RangeError("Invalid time value");let l=t.match(dL).map(c=>{let f=c[0];if(f==="p"||f==="P"){let p=to[f];return p(c,o.formatLong)}return c}).join("").match(hL).map(c=>{if(c==="''")return{isToken:!1,value:"'"};let f=c[0];if(f==="'")return{isToken:!1,value:bL(c)};if(Ua[f])return{isToken:!0,value:c};if(f.match(yL))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&&Dc(f)||!r?.useAdditionalDayOfYearTokens&&Cc(f))&&ja(f,t,String(e));let p=Ua[f[0]];return p(a,f,o.localize,u)}).join("")}function bL(e){let t=e.match(gL);return t?t[1].replace(xL,"'"):e}var ece=Wa;function Ac(e,t,r){let n=Me(),o=r?.locale??n.locale??tr,i=2520,s=_t(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=on(u,l),f=(Ze(u)-Ze(l))/1e3,p=Math.round((c-f)/60),m;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<ls){let h=Math.round(p/60);return o.formatDistance("aboutXHours",h,a)}else{if(p<i)return o.formatDistance("xDays",1,a);if(p<Vn){let h=Math.round(p/ls);return o.formatDistance("xDays",h,a)}else if(p<Vn*2)return m=Math.round(p/Vn),o.formatDistance("aboutXMonths",m,a)}if(m=Zn(u,l),m<12){let h=Math.round(p/Vn);return o.formatDistance("xMonths",h,a)}else{let h=m%12,d=Math.trunc(m/12);return h<3?o.formatDistance("aboutXYears",d,a):h<9?o.formatDistance("overXYears",d,a):o.formatDistance("almostXYears",d+1,a)}}var cce=Ac;function Ic(e,t,r){let n=Me(),o=r?.locale??n.locale??tr,i=_t(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=Ot(r?.roundingMethod??"round"),c=l.getTime()-a.getTime(),f=c/Mt,p=Ze(l)-Ze(a),m=(c-p)/Mt,h=r?.unit,d;if(h?d=h:f<1?d="second":f<60?d="minute":f<ls?d="hour":m<Vn?d="day":m<Yh?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(m/ls);return o.formatDistance("xDays",g,s)}else if(d==="month"){let g=u(m/Vn);return g===12&&h!=="month"?o.formatDistance("xYears",1,s):o.formatDistance("xMonths",g,s)}else{let g=u(m/Yh);return o.formatDistance("xYears",g,s)}}var bce=Ic;function Bv(e,t){return Ac(e,ye(e),t)}var kce=Bv;function $v(e,t){return Ic(e,ye(e),t)}var Dce=$v;var wL=["years","months","weeks","days","hours","minutes","seconds"];function zv(e,t){let r=Me(),n=t?.locale??r.locale??tr,o=t?.format??wL,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 _ce=zv;function Hv(e,t){let r=x(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=X(r.getDate(),2),c=X(r.getMonth()+1,2);i=`${X(r.getFullYear(),4)}${a}${c}${a}${u}`}if(o!=="date"){let u=r.getTimezoneOffset();if(u!==0){let d=Math.abs(u),g=X(Math.trunc(d/60),2),y=X(d%60,2);s=`${u<0?"+":"-"}${g}:${y}`}else s="Z";let c=X(r.getHours(),2),f=X(r.getMinutes(),2),p=X(r.getSeconds(),2),m=i===""?"":"T",h=[c,f,p].join(l);i=`${i}${m}${h}${s}`}return i}var Fce=Hv;function Uv(e,t){let r=x(e,t?.in);if(!Et(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=X(r.getDate(),2),u=X(r.getMonth()+1,2);i=`${X(r.getFullYear(),4)}${s}${u}${s}${l}`}if(o!=="date"){let l=X(r.getHours(),2),u=X(r.getMinutes(),2),c=X(r.getSeconds(),2);i=`${i}${i===""?"":" "}${l}${a}${u}${a}${c}`}return i}var zce=Uv;function jv(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 Uce=jv;function Wv(e,t){let r=x(e,t?.in);if(!Et(r))throw new RangeError("Invalid time value");let n=t?.fractionDigits??0,o=X(r.getDate(),2),i=X(r.getMonth()+1,2),s=r.getFullYear(),a=X(r.getHours(),2),l=X(r.getMinutes(),2),u=X(r.getSeconds(),2),c="";if(n>0){let m=r.getMilliseconds(),h=Math.trunc(m*Math.pow(10,n-3));c="."+X(h,n)}let f="",p=r.getTimezoneOffset();if(p!==0){let m=Math.abs(p),h=X(Math.trunc(m/60),2),d=X(m%60,2);f=`${p<0?"+":"-"}${h}:${d}`}else f="Z";return`${s}-${i}-${o}T${a}:${l}:${u}${c}${f}`}var Vce=Wv;var vL=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SL=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function qv(e){let t=x(e);if(!Et(t))throw new RangeError("Invalid time value");let r=vL[t.getUTCDay()],n=X(t.getUTCDate(),2),o=SL[t.getUTCMonth()],i=t.getUTCFullYear(),s=X(t.getUTCHours(),2),a=X(t.getUTCMinutes(),2),l=X(t.getUTCSeconds(),2);return`${r}, ${n} ${o} ${i} ${s}:${a}:${l} GMT`}var Zce=qv;function Yv(e,t,r){let[n,o]=ne(r?.in,e,t),i=Me(),s=r?.locale??i.locale??tr,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=wt(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 Wa(n,c,{locale:s,weekStartsOn:a})}var ife=Yv;function Vv(e,t){return x(e*1e3,t?.in)}var lfe=Vv;function Mc(e,t){return x(e,t?.in).getDate()}var ffe=Mc;function ro(e,t){return x(e,t?.in).getDay()}var hfe=ro;function _c(e,t){let r=x(e,t?.in),n=r.getFullYear(),o=r.getMonth(),i=O(r,0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}var yfe=_c;function Oc(e,t){let n=x(e,t?.in).getFullYear();return n%400===0||n%4===0&&n%100!==0}var vfe=Oc;function Gv(e,t){let r=x(e,t?.in);return Number.isNaN(+r)?NaN:Oc(r)?366:365}var Efe=Gv;function Qv(e,t){let n=x(e,t?.in).getFullYear();return Math.floor(n/10)*10}var Afe=Qv;function Nc(){return Object.assign({},Me())}var _fe=Nc;function Jv(e,t){return x(e,t?.in).getHours()}var Pfe=Jv;function Pc(e,t){let r=x(e,t?.in).getDay();return r===0?7:r}var Rfe=Pc;function Xv(e,t){let r=lr(e,t),o=+lr(Jn(r,60))-+r;return Math.round(o/Kr)}var Ufe=Xv;function Zv(e){return x(e).getMilliseconds()}var qfe=Zv;function Kv(e,t){return x(e,t?.in).getMinutes()}var Gfe=Kv;function e1(e,t){return x(e,t?.in).getMonth()}var Xfe=e1;function t1(e,t){let[r,n]=[+x(e.start),+x(e.end)].sort((f,p)=>f-p),[o,i]=[+x(t.start),+x(t.end)].sort((f,p)=>f-p);if(!(r<i&&o<n))return 0;let a=o<r?r:o,l=a-Ze(a),u=i>n?n:i,c=u-Ze(u);return Math.ceil((c-l)/ec)}var rpe=t1;function r1(e){return x(e).getSeconds()}var ipe=r1;function n1(e){return+x(e)}var lpe=n1;function o1(e){return Math.trunc(+x(e)/1e3)}var fpe=o1;function i1(e,t){let r=Me(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Mc(x(e,t?.in));if(isNaN(o))return NaN;let i=ro(Kn(e,t)),s=n-i;s<=0&&(s+=7);let a=o-s;return Math.ceil(a/7)+1}var ype=i1;function Fc(e,t){let r=x(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(0,0,0,0),x(r,t?.in)}var vpe=Fc;function s1(e,t){let r=x(e,t?.in);return Ko(Fc(r,t),Kn(r,t),t)+1}var Dpe=s1;function a1(e,t){return x(e,t?.in).getFullYear()}var Mpe=a1;function l1(e){return Math.trunc(e*ar)}var Npe=l1;function u1(e){return Math.trunc(e*tc)}var Lpe=u1;function c1(e){return Math.trunc(e*Xo)}var $pe=c1;function f1(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 Upe=f1;function p1(e,t){let{start:r,end:n}=vt(t?.in,e),o={},i=wc(n,r);i&&(o.years=i);let s=Gn(r,{years:o.years}),a=Zn(n,s);a&&(o.months=a);let l=Gn(s,{months:o.months}),u=ms(n,l);u&&(o.days=u);let c=Gn(l,{days:o.days}),f=ei(n,c);f&&(o.hours=f);let p=Gn(c,{hours:o.hours}),m=ti(n,p);m&&(o.minutes=m);let h=Gn(p,{minutes:o.minutes}),d=on(n,h);return d&&(o.seconds=d),o}var Zpe=p1;function m1(e,t,r){let n;return kL(t)?n=t:r=t,new Intl.DateTimeFormat(r?.locale,n).format(x(e))}function kL(e){return e!==void 0&&!("locale"in e)}var tme=m1;function h1(e,t,r){let n=0,o,[i,s]=ne(r?.in,e,t);if(r?.unit)o=r?.unit,o==="second"?n=on(i,s):o==="minute"?n=ti(i,s):o==="hour"?n=ei(i,s):o==="day"?n=wt(i,s):o==="week"?n=Ko(i,s):o==="month"?n=Zo(i,s):o==="quarter"?n=ps(i,s):o==="year"&&(n=Xn(i,s));else{let l=on(i,s);Math.abs(l)<us?(n=on(i,s),o="second"):Math.abs(l)<Xo?(n=ti(i,s),o="minute"):Math.abs(l)<Zu&&Math.abs(wt(i,s))<1?(n=ei(i,s),o="hour"):Math.abs(l)<Qw&&(n=wt(i,s))&&Math.abs(n)<7?o="day":Math.abs(l)<Gh?(n=Ko(i,s),o="week"):Math.abs(l)<Jw?(n=Zo(i,s),o="month"):Math.abs(l)<Vh?ps(i,s)<4?(n=ps(i,s),o="quarter"):(n=Xn(i,s),o="year"):(n=Xn(i,s),o="year")}return new Intl.RelativeTimeFormat(r?.locale,{numeric:"auto",...r}).format(n,o)}var mme=h1;function d1(e,t){return+x(e)>+x(t)}var gme=d1;function g1(e,t){return+x(e)<+x(t)}var bme=g1;function x1(e,t){return+x(e)==+x(t)}var Sme=x1;function y1(e,t,r){let n=new Date(e,t,r);return n.getFullYear()===e&&n.getMonth()===t&&n.getDate()===r}var Tme=y1;function b1(e,t){return x(e,t?.in).getDate()===1}var Dme=b1;function w1(e,t){return x(e,t?.in).getDay()===5}var Mme=w1;function v1(e){return+x(e)>Date.now()}var Nme=v1;function Lc(e,t){let r=TL(t)?new t(0):O(t,0);return r.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),r.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),r}function TL(e){return typeof e=="function"&&e.prototype?.constructor===e}var Lme=Lc;var EL=10,Rc=class{subPriority=0;validate(t,r){return!0}},Bc=class extends Rc{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)}},$c=class extends Rc{priority=EL;subPriority=-1;constructor(t,r){super(),this.context=t||(n=>O(r,n))}set(t,r){return r.timestampIsSet?t:O(t,Lc(t,this.context))}};var G=class{run(t,r,n,o){let i=this.parse(t,r,n,o);return i?{setter:new Bc(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,r,n){return!0}};var zc=class extends G{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}/},br={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Oe(e,t){return e&&{value:t(e.value),rest:e.rest}}function ke(e,t){let r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function wr(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*ar+i*Mt+s*as),rest:t.slice(r[0].length)}}function Hc(e){return ke(Te.anyDigitsSigned,e)}function xe(e,t){switch(e){case 1:return ke(Te.singleDigit,t);case 2:return ke(Te.twoDigits,t);case 3:return ke(Te.threeDigits,t);case 4:return ke(Te.fourDigits,t);default:return ke(new RegExp("^\\d{1,"+e+"}"),t)}}function Ts(e,t){switch(e){case 1:return ke(Te.singleDigitSigned,t);case 2:return ke(Te.twoDigitsSigned,t);case 3:return ke(Te.threeDigitsSigned,t);case 4:return ke(Te.fourDigitsSigned,t);default:return ke(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Es(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 Uc(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 jc(e){return e%400===0||e%4===0&&e%100!==0}var Wc=class extends G{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 Oe(xe(4,t),o);case"yo":return Oe(n.ordinalNumber(t,{unit:"year"}),o);default:return Oe(xe(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=Uc(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 qc=class extends G{priority=130;parse(t,r,n){let o=i=>({year:i,isTwoDigitYear:r==="YY"});switch(r){case"Y":return Oe(xe(4,t),o);case"Yo":return Oe(n.ordinalNumber(t,{unit:"year"}),o);default:return Oe(xe(r.length,t),o)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,n,o){let i=eo(t,o);if(n.isTwoDigitYear){let a=Uc(n.year,i);return t.setFullYear(a,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),Re(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),Re(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var Yc=class extends G{priority=130;parse(t,r){return r==="R"?Ts(4,t):Ts(r.length,t)}set(t,r,n){let o=O(t,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),ct(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var Vc=class extends G{priority=130;parse(t,r){return r==="u"?Ts(4,t):Ts(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 Gc=class extends G{priority=120;parse(t,r,n){switch(r){case"Q":case"QQ":return xe(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 Qc=class extends G{priority=120;parse(t,r,n){switch(r){case"q":case"qq":return xe(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 Jc=class extends G{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 Oe(ke(Te.month,t),o);case"MM":return Oe(xe(2,t),o);case"Mo":return Oe(n.ordinalNumber(t,{unit:"month"}),o);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});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 Xc=class extends G{priority=110;parse(t,r,n){let o=i=>i-1;switch(r){case"L":return Oe(ke(Te.month,t),o);case"LL":return Oe(xe(2,t),o);case"Lo":return Oe(n.ordinalNumber(t,{unit:"month"}),o);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});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 Zc(e,t,r){let n=x(e,r?.in),o=Ss(n,r)-t;return n.setDate(n.getDate()-o*7),x(n,r?.in)}var Dhe=Zc;var Kc=class extends G{priority=100;parse(t,r,n){switch(r){case"w":return ke(Te.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return xe(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n,o){return Re(Zc(t,n,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function ef(e,t,r){let n=x(e,r?.in),o=vs(n,r)-t;return n.setDate(n.getDate()-o*7),n}var Rhe=ef;var tf=class extends G{priority=100;parse(t,r,n){switch(r){case"I":return ke(Te.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return xe(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,n){return ct(ef(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var CL=[31,28,31,30,31,30,31,31,30,31,30,31],DL=[31,29,31,30,31,30,31,31,30,31,30,31],rf=class extends G{priority=90;subPriority=1;parse(t,r,n){switch(r){case"d":return ke(Te.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return xe(r.length,t)}}validate(t,r){let n=t.getFullYear(),o=jc(n),i=t.getMonth();return o?r>=1&&r<=DL[i]:r>=1&&r<=CL[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 nf=class extends G{priority=90;subpriority=1;parse(t,r,n){switch(r){case"D":case"DD":return ke(Te.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return xe(r.length,t)}}validate(t,r){let n=t.getFullYear();return jc(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 no(e,t,r){let n=Me(),o=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=x(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 ht(i,c,r)}var rde=no;var of=class extends G{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=no(t,n,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};var sf=class extends G{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 Oe(xe(r.length,t),i);case"eo":return Oe(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=no(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 af=class extends G{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 Oe(xe(r.length,t),i);case"co":return Oe(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=no(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 lf(e,t,r){let n=x(e,r?.in),o=Pc(n,r),i=t-o;return ht(n,i,r)}var yde=lf;var uf=class extends G{priority=90;parse(t,r,n){let o=i=>i===0?7:i;switch(r){case"i":case"ii":return xe(r.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return Oe(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return Oe(n.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return Oe(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o);case"iiii":default:return Oe(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,r){return r>=1&&r<=7}set(t,r,n){return t=lf(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 cf=class extends G{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(Es(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]};var ff=class extends G{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(Es(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]};var pf=class extends G{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(Es(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]};var mf=class extends G{priority=70;parse(t,r,n){switch(r){case"h":return ke(Te.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return xe(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 hf=class extends G{priority=70;parse(t,r,n){switch(r){case"H":return ke(Te.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return xe(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 df=class extends G{priority=70;parse(t,r,n){switch(r){case"K":return ke(Te.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return xe(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 gf=class extends G{priority=70;parse(t,r,n){switch(r){case"k":return ke(Te.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return xe(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 xf=class extends G{priority=60;parse(t,r,n){switch(r){case"m":return ke(Te.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return xe(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 yf=class extends G{priority=50;parse(t,r,n){switch(r){case"s":return ke(Te.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return xe(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 bf=class extends G{priority=30;parse(t,r){let n=o=>Math.trunc(o*Math.pow(10,-r.length+3));return Oe(xe(r.length,t),n)}set(t,r,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]};var wf=class extends G{priority=10;parse(t,r){switch(r){case"X":return wr(br.basicOptionalMinutes,t);case"XX":return wr(br.basic,t);case"XXXX":return wr(br.basicOptionalSeconds,t);case"XXXXX":return wr(br.extendedOptionalSeconds,t);case"XXX":default:return wr(br.extended,t)}}set(t,r,n){return r.timestampIsSet?t:O(t,t.getTime()-Ze(t)-n)}incompatibleTokens=["t","T","x"]};var vf=class extends G{priority=10;parse(t,r){switch(r){case"x":return wr(br.basicOptionalMinutes,t);case"xx":return wr(br.basic,t);case"xxxx":return wr(br.basicOptionalSeconds,t);case"xxxxx":return wr(br.extendedOptionalSeconds,t);case"xxx":default:return wr(br.extended,t)}}set(t,r,n){return r.timestampIsSet?t:O(t,t.getTime()-Ze(t)-n)}incompatibleTokens=["t","T","X"]};var Sf=class extends G{priority=40;parse(t){return Hc(t)}set(t,r,n){return[O(t,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var kf=class extends G{priority=20;parse(t){return Hc(t)}set(t,r,n){return[O(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"};var Tf={G:new zc,y:new Wc,Y:new qc,R:new Yc,u:new Vc,Q:new Gc,q:new Qc,M:new Jc,L:new Xc,w:new Kc,I:new tf,d:new rf,D:new nf,E:new of,e:new sf,c:new af,i:new uf,a:new cf,b:new ff,B:new pf,h:new mf,H:new hf,K:new df,k:new gf,m:new xf,s:new yf,S:new bf,X:new wf,x:new vf,t:new Sf,T:new kf};var AL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,IL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ML=/^'([^]*?)'?$/,_L=/''/g,OL=/\S/,NL=/[a-zA-Z]/;function Ef(e,t,r,n){let o=()=>O(n?.in||r,NaN),i=Nc(),s=n?.locale??i.locale??tr,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():x(r,n?.in);let u={firstWeekContainsDate:a,weekStartsOn:l,locale:s},c=[new $c(n?.in,r)],f=t.match(IL).map(g=>{let y=g[0];if(y in to){let S=to[y];return S(g,s.formatLong)}return g}).join("").match(AL),p=[];for(let g of f){!n?.useAdditionalWeekYearTokens&&Dc(g)&&ja(g,t,e),!n?.useAdditionalDayOfYearTokens&&Cc(g)&&ja(g,t,e);let y=g[0],S=Tf[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 z=S.run(e,g,s.match,u);if(!z)return o();c.push(z.setter),e=z.rest}else{if(y.match(NL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");if(g==="''"?g="'":y==="'"&&(g=PL(g)),e.indexOf(g)===0)e=e.slice(g.length);else return o()}}if(e.length>0&&OL.test(e))return o();let m=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]),h=x(r,n?.in);if(isNaN(+h))return o();let d={};for(let g of m){if(!g.validate(h,u))return o();let y=g.set(h,d,u);Array.isArray(y)?(h=y[0],Object.assign(d,y[1])):h=y}return h}function PL(e){return e.match(ML)[1].replace(_L,"'")}var pxe=Ef;function S1(e,t,r){return Et(Ef(e,t,new Date,r))}var gxe=S1;function k1(e,t){return x(e,t?.in).getDay()===1}var bxe=k1;function T1(e){return+x(e)<Date.now()}var Sxe=T1;function qa(e,t){let r=x(e,t?.in);return r.setMinutes(0,0,0),r}var Exe=qa;function Cf(e,t,r){let[n,o]=ne(r?.in,e,t);return+qa(n)==+qa(o)}var Ixe=Cf;function Cs(e,t,r){let[n,o]=ne(r?.in,e,t);return+Re(n,r)==+Re(o,r)}var Nxe=Cs;function Df(e,t,r){return Cs(e,t,{...r,weekStartsOn:1})}var Lxe=Df;function E1(e,t,r){let[n,o]=ne(r?.in,e,t);return+lr(n)==+lr(o)}var zxe=E1;function Ya(e,t){let r=x(e,t?.in);return r.setSeconds(0,0),r}var jxe=Ya;function Af(e,t){return+Ya(e)==+Ya(t)}var Yxe=Af;function If(e,t,r){let[n,o]=ne(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}var Qxe=If;function Mf(e,t,r){let[n,o]=ne(r?.in,e,t);return+sn(n)==+sn(o)}var Kxe=Mf;function Va(e,t){let r=x(e,t?.in);return r.setMilliseconds(0),r}var rye=Va;function _f(e,t){return+Va(e)==+Va(t)}var iye=_f;function Of(e,t,r){let[n,o]=ne(r?.in,e,t);return n.getFullYear()===o.getFullYear()}var lye=Of;function C1(e,t){return Cf(x(e,t?.in),ye(t?.in||e))}var mye=C1;function D1(e,t){return Df(O(t?.in||e,e),ye(t?.in||e))}var yye=D1;function A1(e){return Af(e,ye(e))}var Sye=A1;function I1(e,t){return If(O(t?.in||e,e),ye(t?.in||e))}var Dye=I1;function M1(e,t){return Mf(O(t?.in||e,e),ye(t?.in||e))}var Oye=M1;function _1(e){return _f(e,ye(e))}var Lye=_1;function O1(e,t){return Cs(O(t?.in||e,e),ye(t?.in||e),t)}var Hye=O1;function N1(e,t){return Of(O(t?.in||e,e),ye(t?.in||e))}var Yye=N1;function P1(e,t){return x(e,t?.in).getDay()===4}var Qye=P1;function F1(e,t){return nn(O(t?.in||e,e),ye(t?.in||e))}var ebe=F1;function L1(e,t){return nn(e,ht(ye(t?.in||e),1),t)}var ibe=L1;function R1(e,t){return x(e,t?.in).getDay()===2}var lbe=R1;function B1(e,t){return x(e,t?.in).getDay()===3}var fbe=B1;function $1(e,t,r){let n=+x(e,r?.in),[o,i]=[+x(t.start,r?.in),+x(t.end,r?.in)].sort((s,a)=>s-a);return n>=o&&n<=i}var hbe=$1;function oo(e,t,r){return ht(e,-t,r)}var xbe=oo;function z1(e,t){return nn(O(t?.in||e,e),oo(ye(t?.in||e),1))}var kbe=z1;function H1(e,t){let r=x(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),x(r,t?.in)}var Cbe=H1;function Nf(e,t){let r=Me(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=x(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 Mbe=Nf;function U1(e,t){return Nf(e,{...t,weekStartsOn:1})}var Nbe=U1;function j1(e,t){let r=Wt(e,t),n=O(t?.in||e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);let o=ct(n,t);return o.setDate(o.getDate()-1),o}var Bbe=j1;function W1(e,t){let r=x(e,t?.in),n=r.getMonth(),o=n-n%3+3;return r.setMonth(o,0),r.setHours(0,0,0,0),r}var Hbe=W1;function q1(e,t){let r=x(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(0,0,0,0),r}var Wbe=q1;var FL=/(\w)\1*|''|'(''|[^'])+('|$)|./g,LL=/^'([^]*?)'?$/,RL=/''/g,BL=/[a-zA-Z]/;function Y1(e,t){let r=x(e);if(!Et(r))throw new RangeError("Invalid time value");let n=t.match(FL);return n?n.map(i=>{if(i==="''")return"'";let s=i[0];if(s==="'")return $L(i);let a=ur[s];if(a)return a(r,i);if(s.match(BL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+s+"`");return i}).join(""):""}function $L(e){let t=e.match(LL);return t?t[1].replace(RL,"'"):e}var Qbe=Y1;function V1({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 Zbe=V1;function G1(e){let t=e/ar;return Math.trunc(t)}var t0e=G1;function Q1(e){let t=e/Mt;return Math.trunc(t)}var o0e=Q1;function J1(e){let t=e/as;return Math.trunc(t)}var a0e=J1;function X1(e){let t=e/tc;return Math.trunc(t)}var c0e=X1;function Z1(e){return Math.trunc(e*Mt)}var m0e=Z1;function K1(e){return Math.trunc(e*us)}var g0e=K1;function eS(e){let t=e/rc;return Math.trunc(t)}var b0e=eS;function tS(e){let t=e/nc;return Math.trunc(t)}var S0e=tS;function Nt(e,t,r){let n=t-ro(e,r);return n<=0&&(n+=7),ht(e,n,r)}var C0e=Nt;function rS(e,t){return Nt(e,5,t)}var I0e=rS;function nS(e,t){return Nt(e,1,t)}var O0e=nS;function oS(e,t){return Nt(e,6,t)}var F0e=oS;function iS(e,t){return Nt(e,0,t)}var B0e=iS;function sS(e,t){return Nt(e,4,t)}var H0e=sS;function aS(e,t){return Nt(e,2,t)}var W0e=aS;function lS(e,t){return Nt(e,3,t)}var V0e=lS;function cS(e,t){let r=()=>O(t?.in,NaN),n=t?.additionalDigits??2,o=jL(e),i;if(o.date){let u=WL(o.date,n);i=qL(u.restDateString,u.year)}if(!i||isNaN(+i))return r();let s=+i,a=0,l;if(o.time&&(a=YL(o.time),isNaN(a)))return r();if(o.timezone){if(l=VL(o.timezone),isNaN(l))return r()}else{let u=new Date(s+a),c=x(0,t?.in);return c.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),c.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),c}return x(s+a+l,t?.in)}var Pf={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zL=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,HL=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,UL=/^([+-])(\d{2})(?::?(\d{2}))?$/;function jL(e){let t={},r=e.split(Pf.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Pf.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Pf.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){let o=Pf.timezone.exec(n);o?(t.time=n.replace(o[1],""),t.timezone=o[1]):t.time=n}return t}function WL(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 qL(e,t){if(t===null)return new Date(NaN);let r=e.match(zL);if(!r)return new Date(NaN);let n=!!r[4],o=Ga(r[1]),i=Ga(r[2])-1,s=Ga(r[3]),a=Ga(r[4]),l=Ga(r[5])-1;if(n)return ZL(t,a,l)?GL(t,a,l):new Date(NaN);{let u=new Date(0);return!JL(t,i,s)||!XL(t,o)?new Date(NaN):(u.setUTCFullYear(t,i,Math.max(o,s)),u)}}function Ga(e){return e?parseInt(e):1}function YL(e){let t=e.match(HL);if(!t)return NaN;let r=Jh(t[1]),n=Jh(t[2]),o=Jh(t[3]);return KL(r,n,o)?r*ar+n*Mt+o*1e3:NaN}function Jh(e){return e&&parseFloat(e.replace(",","."))||0}function VL(e){if(e==="Z")return 0;let t=e.match(UL);if(!t)return 0;let r=t[1]==="+"?-1:1,n=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return eR(n,o)?r*(n*ar+o*Mt):NaN}function GL(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 QL=[31,null,31,30,31,30,31,31,30,31,30,31];function uS(e){return e%400===0||e%4===0&&e%100!==0}function JL(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(QL[t]||(uS(e)?29:28))}function XL(e,t){return t>=1&&t<=(uS(e)?366:365)}function ZL(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function KL(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function eR(e,t){return t>=0&&t<=59}var Z0e=cS;function fS(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?x(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):x(NaN,t?.in)}var twe=fS;function Pt(e,t,r){let n=ro(e,r)-t;return n<=0&&(n+=7),oo(e,n,r)}var iwe=Pt;function pS(e,t){return Pt(e,5,t)}var lwe=pS;function mS(e,t){return Pt(e,1,t)}var fwe=mS;function hS(e,t){return Pt(e,6,t)}var hwe=hS;function dS(e,t){return Pt(e,0,t)}var xwe=dS;function gS(e,t){return Pt(e,4,t)}var wwe=gS;function xS(e,t){return Pt(e,2,t)}var kwe=xS;function yS(e,t){return Pt(e,3,t)}var Cwe=yS;function bS(e){return Math.trunc(e*rc)}var Iwe=bS;function wS(e){let t=e/oc;return Math.trunc(t)}var Owe=wS;function vS(e,t){let r=t?.nearestTo??1;if(r<1||r>12)return O(t?.in||e,NaN);let n=x(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=Ot(l)(a/r)*r;return n.setHours(c,0,0,0),n}var Rwe=vS;function SS(e,t){let r=t?.nearestTo??1;if(r<1||r>30)return O(e,NaN);let n=x(e,t?.in),o=n.getSeconds()/60,i=n.getMilliseconds()/1e3/60,s=n.getMinutes()+o+i,a=t?.roundingMethod??"round",u=Ot(a)(s/r)*r;return n.setMinutes(u,0,0),n}var Uwe=SS;function kS(e){let t=e/Xo;return Math.trunc(t)}var qwe=kS;function TS(e){return e*as}var Gwe=TS;function ES(e){let t=e/us;return Math.trunc(t)}var Xwe=ES;function Ds(e,t,r){let n=x(e,r?.in),o=n.getFullYear(),i=n.getDate(),s=O(r?.in||e,0);s.setFullYear(o,t,15),s.setHours(0,0,0,0);let a=_c(s);return n.setMonth(t,Math.min(i,a)),n}var rve=Ds;function CS(e,t,r){let n=x(e,r?.in);return isNaN(+n)?O(r?.in||e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=Ds(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 ave=CS;function DS(e,t,r){let n=x(e,r?.in);return n.setDate(t),n}var cve=DS;function AS(e,t,r){let n=x(e,r?.in);return n.setMonth(0),n.setDate(t),n}var mve=AS;function IS(e){let t={},r=Me();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]);Zw(t)}var gve=IS;function MS(e,t,r){let n=x(e,r?.in);return n.setHours(t),n}var bve=MS;function _S(e,t,r){let n=x(e,r?.in);return n.setMilliseconds(t),n}var Sve=_S;function OS(e,t,r){let n=x(e,r?.in);return n.setMinutes(t),n}var Eve=OS;function NS(e,t,r){let n=x(e,r?.in),o=Math.trunc(n.getMonth()/3)+1,i=t-o;return Ds(n,n.getMonth()+i*3)}var Ive=NS;function PS(e,t,r){let n=x(e,r?.in);return n.setSeconds(t),n}var Ove=PS;function FS(e,t,r){let n=Me(),o=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=wt(x(e,r?.in),ri(e,r),r),s=O(r?.in||e,0);s.setFullYear(t,0,o),s.setHours(0,0,0,0);let a=ri(s,r);return a.setDate(a.getDate()+i),a}var $ve=FS;function LS(e,t,r){let n=x(e,r?.in);return isNaN(+n)?O(r?.in||e,NaN):(n.setFullYear(t),n)}var jve=LS;function RS(e,t){let r=x(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 Yve=RS;function BS(e){return rn(Date.now(),e)}var Qve=BS;function $S(e){let t=ye(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=O(e?.in,0);return i.setFullYear(r,n,o+1),i.setHours(0,0,0,0),i}var Kve=$S;function zS(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 r1e=zS;function Ff(e,t,r){return en(e,-t,r)}var i1e=Ff;function HS(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=Ff(e,o+n*12,r),f=oo(c,s+i*7,r),p=l+a*60,h=(u+p*60)*1e3;return O(r?.in||e,+f-h)}var c1e=HS;function US(e,t,r){return ac(e,-t,r)}var m1e=US;function jS(e,t,r){return lc(e,-t,r)}var g1e=jS;function WS(e,t,r){return Qn(e,-t,r)}var b1e=WS;function qS(e,t,r){return cs(e,-t,r)}var S1e=qS;function YS(e,t,r){return fs(e,-t,r)}var E1e=YS;function VS(e,t,r){return fc(e,-t,r)}var A1e=VS;function GS(e,t,r){return Jn(e,-t,r)}var _1e=GS;function QS(e,t,r){return pc(e,-t,r)}var P1e=QS;function JS(e){return Math.trunc(e*7)}var R1e=JS;function XS(e){return Math.trunc(e*365.2425)}var z1e=XS;function ZS(e){return Math.trunc(e*nc)}var j1e=ZS;function KS(e){return Math.trunc(e*oc)}var Y1e=KS;var rk=e=>Number.isFinite(e)?e:0;function tR(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(rk(e*1e3)%1e3),nanoseconds:Math.trunc(rk(e*1e6)%1e3)}}function rR(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 td(e){switch(typeof e){case"number":{if(Number.isFinite(e))return tR(e);break}case"bigint":return rR(e)}throw new TypeError("Expected a finite number or bigint")}var nR=e=>e===0||e===0n,oR=(e,t)=>t===1||t===1n?e:`${e}s`,iR=1e-7,sR=24n*60n*60n*1000n;function Ja(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+iR);return(Math.round(p)/10**f).toFixed(f)},s=(c,f,p,m)=>{if(!((o.length===0||!t.colonNotation)&&nR(c)&&!(t.colonNotation&&p==="m"))){if(m??=String(c),t.colonNotation){let h=m.includes(".")?m.split(".")[0].length:m.length,d=o.length>0?2:1;m="0".repeat(Math.max(0,d-h))+m}else m+=t.verbose?" "+oR(f,c):p;o.push(m)}},a=td(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&&!t.subSecondsAsDecimals){let c=Number(a.seconds),f=Number(a.milliseconds),p=Number(a.microseconds),m=Number(a.nanoseconds);if(s(c,"second","s"),t.formatSubMilliseconds)s(f,"millisecond","ms"),s(p,"microsecond","\xB5s"),s(m,"nanosecond","ns");else{let h=f+p/1e3+m/1e6,d=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,g=h>=1?Math.round(h):Math.ceil(h),y=d?h.toFixed(d):g;s(Number.parseFloat(y),"millisecond","ms",y)}}else{let c=(r?Number(e%sR):e)/1e3%60,f=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,p=i(c,f),m=t.keepDecimalsOnWholeSeconds?p:p.replace(/\.0+$/,"");s(Number.parseFloat(m),"second","s",m)}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 oi=bt(ek(),1),nk=bt(tk(),1);oi.default.extend(nk.default);var ok=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(),m=l.getMonth(),h=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&&(m=(m+1)%11);let k=m;k<m&&(h=h+1);let z=h;return new Date(z,k,S,y,g,d).getTime()-Date.now()}};var Xa=class{constructor(t,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=new $a.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 io={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},rd=e=>{let t=0,r=n=>{t=t+n};return e.years&&r(io.years(e.years)),e.months&&r(io.months(e.months)),e.weeks&&r(io.weeks(e.weeks)),e.days&&r(io.days(e.days)),e.hours&&r(io.hours(e.hours)),e.minutes&&r(io.minutes(e.minutes)),e.seconds&&r(io.seconds(e.seconds)),t},nd=e=>Ja(e),aR=e=>Qa.formatDistanceToNow(new Date(e));var od=class{constructor(){this.status="stopped",this.cronjobs=new dt.ObjectMap}addCronjob(t,r){let n=new Xa(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 pe.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 pe.Timeout(t.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${nd(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new pe.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 id=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=oi.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 oi.default(this.getTime()).format(t)}isToday(){return oi.default(this.getTime()).isToday()}lessTimePassedToNow(t){let r=rd(t);return Date.now()-this.getTime()<r}moreTimePassedToNow(t){return!this.lessTimePassedToNow(t)}};var sd=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 ad=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 pe.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 Is=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 ld=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(t){this.state="initiated",this.completedDeferred=J.defer(),this.timeInMilliseconds=t,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new Is;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Is.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 Rf=bt(cd(),1);var fd=class{constructor(){this.executionSlots=[],this.isProcessing=!1,this.nonExclusiveMaxConcurrency=1/0,this.nonExclusiveCurrentCount=0,this.nonExclusivePendingQueue=[]}async getExclusiveExecutionSlot(t,r){let n=J.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(t,r){let n=J.defer(),o={funcToExecute:t,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}setNonExclusiveMaxConcurrency(t){if(!Number.isFinite(t)||t<1)throw new Error("nonExclusiveMaxConcurrency must be a finite number >= 1");this.nonExclusiveMaxConcurrency=t}getNonExclusiveMaxConcurrency(){return this.nonExclusiveMaxConcurrency}getActiveNonExclusiveCount(){return this.nonExclusiveCurrentCount}getPendingNonExclusiveCount(){return this.nonExclusivePendingQueue.length}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let t=this.executionSlots[0];if(t.mode==="exclusive")await this.executeExclusiveSlot(t),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(t){try{if(t.timeout){let r=await Promise.race([t.funcToExecute(),pe.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(),pe.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 pd=class{constructor(t=16){this.hasSpace=new ve.rxjs.Subject,this.itemsAvailable=new ve.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 Za=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 dk=(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 Za,this.eventSubject=new ve.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=dk("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 Ka=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 Or.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new J.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&&pe.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 md=class{constructor(t,r={}){this.interestObjectMap=new ii,this.interestObservable=new ve.ObservableIntake,this.comparisonFunc=t,this.options=r}async addInterest(t,r){let n=this.comparisonFunc(t),o,i=new Ka(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 hd=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 dd=class{constructor(){this.referenceObjectMap=new ii}checkAndTrack(t){return this.referenceObjectMap.checkForObject(t)?!1:(this.referenceObjectMap.add(t),!0)}};var gd=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 Tn.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=J.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var xd=class{constructor(t){this.storageArray=[],this.options=t}checkAggregationStatus(){let t=()=>{this.aggregationTimer=new Or.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 yd=class{constructor(){this.symbolTree=new Rf.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 _s={};le(_s,{base64ToUint8Array:()=>OR,ensurePureUint8Array:()=>FR,isBufferLike:()=>PR,isUint8Array:()=>NR,uInt8ArrayExtras:()=>MR,uInt8ArrayToBase64:()=>_R});var co={};le(co,{areUint8ArraysEqual:()=>xR,assertUint8Array:()=>uo,assertUint8ArrayOrArrayBuffer:()=>wk,base64ToString:()=>kR,base64ToUint8Array:()=>Tk,compareUint8Arrays:()=>yR,concatUint8Arrays:()=>gR,getUintBE:()=>DR,hexToUint8Array:()=>CR,includes:()=>AR,indexOf:()=>Ek,isUint8Array:()=>bd,stringToBase64:()=>SR,stringToUint8Array:()=>Sk,toUint8Array:()=>dR,uint8ArrayToBase64:()=>kk,uint8ArrayToHex:()=>ER,uint8ArrayToString:()=>vk});var cR=Object.prototype.toString,fR="[object Uint8Array]",pR="[object ArrayBuffer]";function gk(e,t,r){return e?e.constructor===t?!0:cR.call(e)===r:!1}function bd(e){return gk(e,Uint8Array,fR)}function mR(e){return gk(e,ArrayBuffer,pR)}function hR(e){return bd(e)||mR(e)}function uo(e){if(!bd(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}function wk(e){if(!hR(e))throw new TypeError(`Expected \`Uint8Array\` or \`ArrayBuffer\`, got \`${typeof e}\``)}function dR(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 gR(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)uo(o),r.set(o,n),n+=o.length;return r}function xR(e,t){if(uo(e),uo(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 yR(e,t){uo(e),uo(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 xk={utf8:new globalThis.TextDecoder("utf8")};function vk(e,t="utf8"){return wk(e),xk[t]??=new globalThis.TextDecoder(t),xk[t].decode(e)}function el(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}var bR=new globalThis.TextEncoder;function Sk(e){return el(e),bR.encode(e)}function wR(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function vR(e){let t=e.replaceAll("-","+").replaceAll("_","/"),r=(4-t.length%4)%4;return t+"=".repeat(r)}var yk=65535;function kk(e,{urlSafe:t=!1}={}){uo(e);let r="";for(let n=0;n<e.length;n+=yk){let o=e.subarray(n,n+yk);r+=globalThis.btoa(String.fromCodePoint.apply(void 0,o))}return t?wR(r):r}function Tk(e){return el(e),Uint8Array.from(globalThis.atob(vR(e)),t=>t.codePointAt(0))}function SR(e,{urlSafe:t=!1}={}){return el(e),kk(Sk(e),{urlSafe:t})}function kR(e){return el(e),vk(Tk(e))}var TR=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ER(e){uo(e);let t="";for(let r=0;r<e.length;r++)t+=TR[e[r]];return t}var bk={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 CR(e){if(el(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=bk[e[n*2]],i=bk[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 DR(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 Ek(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 AR(e,t){return Ek(e,t)!==-1}var MR=co;function _R(e){return co.uint8ArrayToBase64(e)}function OR(e){return co.base64ToUint8Array(e)}var NR=e=>co.isUint8Array(e);function PR(e){return e&&typeof e.byteLength=="number"?!0:typeof Buffer<"u"&&Buffer.isBuffer?Buffer.isBuffer(e):!1}function FR(e){let t=new Uint8Array(e.length);return t.set(e),t}var ol={};le(ol,{Guard:()=>tl,GuardError:()=>rl,GuardSet:()=>nl,passGuardsOrReject:()=>LR});var tl=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 rl=class extends Error{constructor(t){super(t),this.name="GuardError"}};var nl=class extends tl{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 LR=async(e,t)=>{let r=new nl(t);if(!await r.allGuardsPass(e)){let o=await r.getFailedHint(e);throw new rl(`Guards failed:
42
+ ${o}
43
+ `)}};var ci={};le(ci,{WebRequest:()=>Kd});var Pr={};le(Pr,{Smartenv:()=>wd});var wd=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=J.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=t,document.head.appendChild(o)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var je={};le(je,{Smartjson:()=>qd,deepEqualJsonLStrings:()=>B$,deepEqualObjects:()=>wT,foldDec:()=>R$,parse:()=>np,parseBase64:()=>L$,parseJsonL:()=>Wd,stableOneWayStringify:()=>N$,stringify:()=>ui,stringifyBase64:()=>F$,stringifyJsonL:()=>O$,stringifyPretty:()=>P$});var Ft={};le(Ft,{Base64:()=>Uf,Domain:()=>Wf,GitRepo:()=>qf,base64:()=>Os,create:()=>Bf,docker:()=>$f,indent:()=>zf,normalize:()=>Hf,type:()=>jf});var Bf={};le(Bf,{createCryptoRandomString:()=>UR,createRandomString:()=>HR});var vd=bt(bu(),1);var $R=(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},zR=(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=$R(0,a.length);i+=a[l]}else i+=s;return i},HR=(e,t,r)=>zR(e,t,r),UR=()=>vd.uni();var $f={};le($f,{makeEnvObject:()=>jR});var jR=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 zf={};le(zf,{indent:()=>qR,indentWithPrefix:()=>YR,normalize:()=>VR});var Sd=e=>{let t=e.split(`
44
+ `);return WR(t)},kd=e=>{let t="";for(let r of e)t=t+r+`
45
+ `;return t},WR=e=>{let t=/^[\s]*$/;return t.test(e[0])&&e.shift(),t.test(e[e.length-1])&&e.pop(),e},qR=(e,t)=>{let r=Sd(e);for(let o of r)o=" ".repeat(t)+o;return kd(r)},YR=(e,t)=>{let r,n=Sd(e),o=[];for(let i of n)o.push(t+i);return r=kd(o),r},VR=e=>{let t,r=Sd(e),n,o=/^(\s*)/,i=/^(\s*)$/;for(let a of r){let l=o.exec(a)[1];(typeof n>"u"||l.length<n)&&!i.test(a)&&(n=l.length)}let s=[];for(let a of r)s.push(a.substr(n));return t=kd(s),t};var Hf={};le(Hf,{replaceAll:()=>Ck,standard:()=>QR});var Ck=(e,t,r)=>e.replace(new RegExp(t,"g"),r),GR=e=>{let t=e.split(`
46
+ `),r=1/0;for(let n of t)if(n.trim().length>0){let o=n.match(/^(\s*)/);o&&(r=Math.min(r,o[1].length))}return r===1/0||r===0?e:t.map(n=>n.length>=r?n.slice(r):n).join(`
47
+ `)},QR=(e,t)=>{let r=e;return(!t||t.stripIndent)&&(r=GR(r)),(!t||t.normalizeNewline)&&(r=r.replace(/\r\n/g,`
48
+ `)),(!t||t.replaceTabs)&&(r=Ck(r," /"," ")),(!t||t.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!t||t.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var jf={};le(jf,{isBase64:()=>XR,isUtf8:()=>JR});var Td={encode:e=>{if(typeof Buffer<"u")return Buffer.from(e,"utf8").toString("base64");if(typeof btoa<"u"){let t=new TextEncoder().encode(e),r=Array.from(t,n=>String.fromCharCode(n)).join("");return btoa(r)}else{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new TextEncoder().encode(e),n="",o=0;for(;o<r.length;){let i=r[o++],s=o<r.length?r[o++]:0,a=o<r.length?r[o++]:0,l=i<<16|s<<8|a;n+=t.charAt(l>>18&63),n+=t.charAt(l>>12&63),n+=o-2<r.length?t.charAt(l>>6&63):"=",n+=o-1<r.length?t.charAt(l&63):"="}return n}},decode:e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"=");if(typeof Buffer<"u")return Buffer.from(t,"base64").toString("utf8");if(typeof atob<"u"){let r=atob(t),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return new TextDecoder().decode(n)}else{let r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=[],o=0;for(;o<t.length;){let i=r.indexOf(t.charAt(o++)),s=r.indexOf(t.charAt(o++)),a=r.indexOf(t.charAt(o++)),l=r.indexOf(t.charAt(o++)),u=i<<18|s<<12|a<<6|l;n.push(u>>16&255),a!==64&&n.push(u>>8&255),l!==64&&n.push(u&255)}return new TextDecoder().decode(new Uint8Array(n))}}},Uf=class{constructor(t,r){switch(r){case"string":this.refString=t;break;case"base64":this.refString=Os.decode(t);break;case"base64uri":this.refString=Os.decode(t)}}get simpleString(){return this.refString}get base64String(){return Os.encode(this.refString)}get base64UriString(){return Os.encodeUri(this.refString)}},Os={encode:e=>Td.encode(e),encodeUri:e=>Td.encode(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),decode:e=>Td.decode(e),isBase64:e=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(e)};var JR=e=>{let r=new TextEncoder().encode(e),n=0;for(;n<r.length;){if(r[n]===9||r[n]===10||r[n]===13||32<=r[n]&&r[n]<=126){n+=1;continue}if(194<=r[n]&&r[n]<=223&&128<=r[n+1]&&r[n+1]<=191){n+=2;continue}if(r[n]===224&&160<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||(225<=r[n]&&r[n]<=236||r[n]===238||r[n]===239)&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||r[n]===237&&128<=r[n+1]&&r[n+1]<=159&&128<=r[n+2]&&r[n+2]<=191){n+=3;continue}if(r[n]===240&&144<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||241<=r[n]&&r[n]<=243&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||r[n]===244&&128<=r[n+1]&&r[n+1]<=143&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191){n+=4;continue}return!1}return!0},XR=e=>{let t=/[^A-Z0-9+\/=]/i,r=e.length;if(!r||r%4!==0||t.test(e))return!1;let n=e.indexOf("=");return n===-1||n===r-1||n===r-2&&e[r-1]==="="};var Wf=class{constructor(t){this.protocol=this._protocolRegex(t),this.protocol||(t=`https://${t}`),this.nodeParsedUrl=new URL(t),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(t.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let n=1;n<=5;n++)if(r[n-1]){let o=r[n-1];this["level"+n.toString()]=o,this.fullName===""?this.fullName=o:this.fullName=o+"."+this.fullName}else this["level"+n.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(t){let n=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(t);return n.reverse(),n.pop(),n.filter(function(i){return i!==""})}_protocolRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}_portRegex(t){let n=/^([a-zA-Z0-9]*):\/\//.exec(t);if(n)return n[1]}};var qf=class{constructor(t,r){let n=ZR(t);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=Dk(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=Dk(this.host,this.user,this.repo,this.accessToken,"https")}},ZR=function(e){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(e)},Dk=function(e,t,r,n="",o){let i;switch(n!==""&&(n=n+"@"),o){case"https":i="https://"+n+e+"/"+t+"/"+r+".git";break;case"ssh":i="git@"+e+":"+t+"/"+r+".git";break;default:console.error("Link Type "+o+" not known");break}return i};var ep=bt($d(),1),gT=bt(zd(),1),tp=gT.default;function D$(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(String.fromCharCode(...e))}function A$(e){if(typeof Buffer<"u"){let t=Buffer.from(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}function Ud(e,t){return JSON.stringify(e,rp,t)}function jd(e){return JSON.parse(e,xT)}var rp=(e,t)=>{if(M$(t)){let r;if("data"in t&&yT(t.data))r=new Uint8Array(t.data);else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+D$(r)}}return t},xT=(e,t)=>{if(I$(t)&&Hd(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return A$(r)}return t};function I$(e){return bT(e)&&e.type==="EncodedBuffer"&&Hd(e.data)}function M$(e){return bT(e)&&e.type==="Buffer"&&(yT(e.data)||Hd(e.data))||e instanceof Uint8Array}function yT(e){return Array.isArray(e)}function Hd(e){return typeof e=="string"}function bT(e){return typeof e=="object"&&e!==null}var np=jd,Wd=e=>e.split(`
49
+ `).reduce((n,o)=>{let i=o.trim();return i.length>0&&n.push(np(i)),n},[]),O$=e=>e.map(t=>ui(t)).join(`
50
+ `),N$=(e,t,r={})=>{let n=new WeakSet,o=a=>{if(a===null||typeof a!="object")return a;let l=rp("",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 tp(i,s)},ui=(e,t,r={})=>{let n=Ud(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 tp(e,o)},P$=e=>{let t=ui(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},F$=(...e)=>{let t=ui(...e);return Ft.base64.encodeUri(t)},L$=e=>{let t=Ft.base64,n=(t.decodeUri||t.decode)(e);return np(n)},qd=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=np(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)):ep.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)}},R$=()=>(e,t)=>{e.saveableProperties||(e.saveableProperties=[]),e.saveableProperties.push(t)},wT=(e,t)=>{let r=ui(e),n=ui(t);return r===n},B$=(e,t)=>{let r=Wd(e),n=Wd(t);return wT(r,n)};var Fr={};le(Fr,{TypedrequestCache:()=>Zd,WebStore:()=>cl});var ul={};le(ul,{deleteDB:()=>IT,openDB:()=>AT,unwrap:()=>ll,wrap:()=>an});var Yd=(e,t)=>t.some(r=>e instanceof r),vT,ST;function $$(){return vT||(vT=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function z$(){return ST||(ST=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Vd=new WeakMap,Gd=new WeakMap,op=new WeakMap;function H$(e){let t=new Promise((r,n)=>{let o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{r(an(e.result)),o()},s=()=>{n(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return op.set(t,e),t}function U$(e){if(Vd.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)});Vd.set(e,t)}var Qd={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return Vd.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return an(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 kT(e){Qd=e(Qd)}function j$(e){return z$().includes(e)?function(...t){return e.apply(ll(this),t),an(this.request)}:function(...t){return an(e.apply(ll(this),t))}}function W$(e){return typeof e=="function"?j$(e):(e instanceof IDBTransaction&&U$(e),Yd(e,$$())?new Proxy(e,Qd):e)}function an(e){if(e instanceof IDBRequest)return H$(e);if(Gd.has(e))return Gd.get(e);let t=W$(e);return t!==e&&(Gd.set(e,t),op.set(t,e)),t}var ll=e=>op.get(e);function AT(e,t,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){let s=indexedDB.open(e,t),a=an(s);return n&&s.addEventListener("upgradeneeded",l=>{n(an(s.result),l.oldVersion,l.newVersion,an(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 IT(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",n=>t(n.oldVersion,n)),an(r).then(()=>{})}var q$=["get","getKey","getAll","getAllKeys","count"],Y$=["put","add","delete","clear"],Jd=new Map;function TT(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Jd.get(t))return Jd.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,o=Y$.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||q$.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 Jd.set(t,i),i}kT(e=>({...e,get:(t,r,n)=>TT(t,r)||e.get(t,r,n),has:(t,r)=>!!TT(t,r)||e.has(t,r)}));var V$=["continue","continuePrimaryKey","advance"],ET={},Xd=new WeakMap,CT=new WeakMap,G$={get(e,t){if(!V$.includes(t))return e[t];let r=ET[t];return r||(r=ET[t]=function(...n){Xd.set(this,CT.get(this)[t](...n))}),r}};async function*Q$(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;let r=new Proxy(t,G$);for(CT.set(r,t),op.set(r,ll(t));t;)yield r,t=await(Xd.get(r)||t.continue()),Xd.delete(r)}function DT(e,t){return t===Symbol.asyncIterator&&Yd(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Yd(e,[IDBIndex,IDBObjectStore])}kT(e=>({...e,get(t,r,n){return DT(t,r)?Q$:e.get(t,r,n)},has(t,r){return DT(t,r)||e.has(t,r)}}));var cl=class{constructor(t){this.initCalled=!1,this.readyDeferred=J.defer(),this.options=t}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let t=new Pr.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 ul.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 Zd=class{constructor(t="default"){this.webstore=new cl({dbName:"trStore",storeName:`trStore-${t}`})}buildKey(t){return je.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 Kd=class{constructor(t={}){this.optionsArg=t,this.cacheStore=new Fr.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 je.parse(o)}async postJson(t,r,n=!1){let i=await(await this.request(t,{method:"POST",headers:{"Content-Type":"application/json"},body:je.stringify(r),useCache:n})).text();return je.parse(i)}async putJson(t,r,n=!1){let i=await(await this.request(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:je.stringify(r)})).text();return je.parse(i)}async deleteJson(t,r=!1){let o=await(await this.request(t,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return je.parse(o)}async request(t,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;pe.delayFor(r.timeoutMs).then(()=>{n.abort()});let o=J.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 pe.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 po=bt(bu(),1);var An=class{constructor(t,r){this.errorText=t,this.errorData=r}};var sp=class{constructor(){this.localData={}}async passGuards(t,r){let n=new ol.GuardSet(t);if(!await n.allGuardsPass(r)){let i=await n.getFailedHint(r);throw new An(`guard failed: ${i}`,{failedHint:i})}}};var eg=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 sp;t.localData&&(n.localData=t.localData);let o=await this.handlerFunction(t.request,n).catch(i=>{i instanceof An?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 fi=class e{constructor(){this.hooks={},this.routerMap=new dt.ObjectMap,this.handlerMap=new dt.ObjectMap,this.registeredVirtualStreams=new dt.ObjectMap,this.fireEventInterestMap=new dt.InterestMap(t=>t)}static get globalHooks(){return globalThis.__typedRouterGlobalHooks||(globalThis.__typedRouterGlobalHooks={}),globalThis.__typedRouterGlobalHooks}static set globalHooks(t){globalThis.__typedRouterGlobalHooks=t}static setGlobalHooks(t){let r=e.globalHooks;e.globalHooks={...r,...t}}static clearGlobalHooks(){globalThis.__typedRouterGlobalHooks={}}setHooks(t){this.hooks={...this.hooks,...t}}callHook(t,r){try{e.globalHooks[t]?.(r),this.hooks[t]?.(r)}catch(n){console.error(`TypedRouter hook error (${t}):`,n)}}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}static{this.defaultRouteOptions={localRequest:!1,skipHooks:!1}}async routeAndAddResponse(t,r={}){let n={...e.defaultRouteOptions,...r};if(t=ln.decodePayloadFromNetwork(t,{typedrouter:this}),t.localData=t.localData||{},t.localData.firstTypedrouter=this,t.method==="##VirtualStream##"){let o=await this.handleStreamTypedRequest(t);return o.localData=null,o}if(t?.correlation?.phase==="request"||n.localRequest){let o=Date.now();n.skipHooks||this.callHook("onIncomingRequest",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"incoming",phase:"request",timestamp:o,payload:t.request});let i=this.getTypedHandlerForMethod(t.method);return i?(t=await i.addResponse(t),t.localData=null,t=ln.encodePayloadForNetwork(t,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:t.response,error:t.error?.text}),t):(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=ln.encodePayloadForNetwork(t,{typedrouter:this}),n.skipHooks||this.callHook("onOutgoingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"outgoing",phase:"response",timestamp:Date.now(),durationMs:Date.now()-o,payload:t.response,error:t.error?.text}),t)}else return t?.correlation?.phase==="response"?(n.skipHooks||this.callHook("onIncomingResponse",{correlationId:t.correlation?.id||"unknown",method:t.method,direction:"incoming",phase:"response",timestamp:Date.now(),payload:t.response,error:t.error?.text}),this.fireEventInterestMap.findInterest(t.correlation.id)?.fullfillInterest(t),null):(console.log("received weirdly shaped request"),console.log(t),null)}async handleStreamTypedRequest(t){let r=await this.registeredVirtualStreams.find(async o=>o.streamId===t.request.streamId);if(r)console.log(`success: found relevant virtual stream with id ${t.request.streamId}`);else return console.log(`no relevant virtual stream found for stream with id ${t.request.streamId}`),console.log(this.registeredVirtualStreams.getArray()),t;return await r.handleStreamTr(t)}};var _T="#############CLOSING BIT#############",ln=class e{static encodePayloadForNetwork(t,r,n,o=[]){return!t||_s.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(_s.isBufferLike(t)||t instanceof fi)return t;if(t!==null&&typeof t=="object"){if(t instanceof Set||t instanceof Map||t instanceof Date||t instanceof RegExp||t instanceof Error||t instanceof Promise||typeof t.then=="function")return t;if(t._isVirtualStream){let n=new e;return n.streamId=t.streamId,!n.side&&r.sendMethod&&(n.side="requesting",n.sendMethod=r.sendMethod),!n.side&&r.typedrouter&&(n.side="responding",n.typedrouter=r.typedrouter,r.typedrouter.registeredVirtualStreams.add(n)),n.startKeepAliveLoop(),n}else if(Array.isArray(t)){let n=[];for(let o of t)n.push(e.decodePayloadFromNetwork(o,r));return n}else return Object.keys(t).reduce((n,o)=>(n[o]=e.decodePayloadFromNetwork(t[o],r),n),{})}else return t}constructor(){this.streamId=po.uni(),this.keepAlive=!0,this.sendBackpressuredArray=new dt.BackpressuredArray(16),this.receiveBackpressuredArray=new dt.BackpressuredArray(16)}async workOnQueue(){if(this.workingDeferred)return this.workingDeferred.promise;if(this.workingDeferred=J.defer(),this.side==="requesting"){let t=!this.receiveBackpressuredArray.checkSpaceAvailable(),r=!1,n=!1,o=async()=>{let i=await this.sendMethod({method:"##VirtualStream##",request:{streamId:this.streamId,cycleId:po.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 pe.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:po.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 pe.delayFor(0),console.log(`starting keepalive loop on side ${this.side}`);let t=0;for(;this.keepAlive;)await this.triggerKeepAlive(),await pe.delayFor(1e3);await pe.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:po.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===_T){r.releaseLock(),await t.close();break}await r.write(n)}}async close(t=!1){t&&this.sendData(_T),this.keepAlive=!1}};var tg=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 X$=new ci.WebRequest;function OT(e,t){try{fi.globalHooks[e]?.(t)}catch(r){console.error(`TypedRequest hook error (${e}):`,r)}}var fl=class{constructor(t,r){this.skipHooks=!1,typeof t=="string"?this.urlEndPoint=t:this.typedTarget=t,this.method=r}async fire(t,r=!1){let n=Date.now(),o={method:this.method,request:t,response:null,correlation:{id:po.uni(),phase:"request"}};o=ln.encodePayloadForNetwork(o,{sendMethod:s=>this.postTrObject(s)}),this.skipHooks||OT("onOutgoingRequest",{correlationId:o.correlation.id,method:this.method,direction:"outgoing",phase:"request",timestamp:n,payload:t});let i;return i=await this.postTrObject(o,r),i=ln.decodePayloadFromNetwork(i,{sendMethod:s=>this.postTrObject(s)}),this.skipHooks||OT("onIncomingResponse",{correlationId:o.correlation.id,method:this.method,direction:"incoming",phase:"response",timestamp:Date.now(),durationMs:Date.now()-n,payload:i?.response,error:i?.error?.text}),i.response}async postTrObject(t,r=!1){let n;if(this.urlEndPoint?n=await X$.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 An(n.error.text,n.error.data);return null}return n.retry&&(console.log(`server requested retry for the following reason: ${n.retry.reason}`),await pe.delayFor(n.retry.waitForMs),n=await this.postTrObject(t,r)),n}};function NT(e){return e&&typeof e.then=="function"}var PT=Promise.resolve(!1),JAe=Promise.resolve(!0),un=Promise.resolve();function ap(e,t){return e||(e=0),new Promise(function(r){return setTimeout(function(){return r(t)},e)})}function FT(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function pl(){return Math.random().toString(36).substring(2)}var rg=0;function In(){var e=Date.now()*1e3;return e<=rg&&(e=rg+1),rg=e,e}function XAe(){return typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function"}var Z$=In,K$="native";function e3(e){var t={time:In(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(r){t.messagesCallback&&t.messagesCallback(r.data)},t}function t3(e){e.bc.close(),e.subFns=[]}function r3(e,t){try{return e.bc.postMessage(t,!1),un}catch(r){return Promise.reject(r)}}function n3(e,t){e.messagesCallback=t}function o3(){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 i3(){return 150}var LT={create:e3,close:t3,onMessage:n3,postMessage:r3,canBeUsed:o3,type:K$,averageResponseTime:i3,microSeconds:Z$};var Rs=class{ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){let r=this.map.get(t);return typeof r>"u"?!1:r<ng()-this.ttl?(this.map.delete(t),!1):!0}add(t){this.map.delete(t),this.map.set(t,ng()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,s3(this)},0))}clear(){this.map.clear()}};function s3(e){let t=ng()-e.ttl,r=e.map[Symbol.iterator]();for(;;){let n=r.next().value;if(!n)break;let o=n[0];if(n[1]<t)e.map.delete(o);else break}}function ng(){return Date.now()}function pi(){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 a3=In,l3="pubkey.broadcast-channel-0-",Lr="messages",ml={durability:"relaxed"},u3="idb";function RT(){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 lp(e){e.commit&&e.commit()}function c3(e){var t=RT(),r=l3+e,n=t.open(r);return n.onupgradeneeded=function(o){var i=o.target.result;i.createObjectStore(Lr,{keyPath:"id",autoIncrement:!0})},new Promise(function(o,i){n.onerror=function(s){return i(s)},n.onsuccess=function(){o(n.result)}})}function f3(e,t,r){var n=Date.now(),o={uuid:t,time:n,data:r},i=e.transaction([Lr],"readwrite",ml);return new Promise(function(s,a){i.oncomplete=function(){return s()},i.onerror=function(u){return a(u)};var l=i.objectStore(Lr);l.add(o),lp(i)})}function sIe(e){var t=e.transaction(Lr,"readonly",ml),r=t.objectStore(Lr),n=[];return new Promise(function(o){r.openCursor().onsuccess=function(i){var s=i.target.result;s?(n.push(s.value),s.continue()):(lp(t),o(n))}})}function p3(e,t){var r=e.transaction(Lr,"readonly",ml),n=r.objectStore(Lr),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()):(lp(r),l(o))}})}function m3(e,t){if(e.closed)return Promise.resolve([]);var r=e.db.transaction(Lr,"readwrite",ml),n=r.objectStore(Lr);return Promise.all(t.map(function(o){var i=n.delete(o);return new Promise(function(s){i.onsuccess=function(){return s()}})}))}function h3(e,t){var r=Date.now()-t,n=e.transaction(Lr,"readonly",ml),o=n.objectStore(Lr),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()):(lp(n),s(i))}else s(i)}})}function d3(e){return h3(e.db,e.options.idb.ttl).then(function(t){return m3(e,t.map(function(r){return r.id}))})}function g3(e,t){return t=pi(t),c3(e).then(function(r){var n={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:pl(),eMIs:new Rs(t.idb.ttl*2),writeBlockPromise:un,messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,t.idb.onclose&&t.idb.onclose()},BT(n),n})}function BT(e){e.closed||$T(e).then(function(){return ap(e.options.idb.fallbackInterval)}).then(function(){return BT(e)})}function x3(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function $T(e){return e.closed?un:e.messagesCallback?p3(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 x3(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))}),un}):un}function y3(e){e.closed=!0,e.db.close()}function b3(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return f3(e.db,e.uuid,t)}).then(function(){FT(0,10)===0&&d3(e)}),e.writeBlockPromise}function w3(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t,$T(e)}function v3(){return!!RT()}function S3(e){return e.idb.fallbackInterval*2}var zT={create:g3,close:y3,onMessage:w3,postMessage:b3,canBeUsed:v3,type:u3,averageResponseTime:S3,microSeconds:a3};var k3=In,T3="pubkey.broadcastChannel-",E3="localstorage";function HT(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function UT(e){return T3+e}function C3(e,t){return new Promise(function(r){ap().then(function(){var n=UT(e.channelName),o={token:pl(),time:Date.now(),data:t,uuid:e.uuid},i=JSON.stringify(o);HT().setItem(n,i);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=i,window.dispatchEvent(s),r()})})}function D3(e,t){var r=UT(e),n=function(i){i.key===r&&t(JSON.parse(i.newValue))};return window.addEventListener("storage",n),n}function A3(e){window.removeEventListener("storage",e)}function I3(e,t){if(t=pi(t),!jT())throw new Error("BroadcastChannel: localstorage cannot be used");var r=pl(),n=new Rs(t.localstorage.removeTimeout),o={channelName:e,uuid:r,eMIs:n};return o.listener=D3(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 M3(e){A3(e.listener)}function _3(e,t,r){e.messagesCallbackTime=r,e.messagesCallback=t}function jT(){var e=HT();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function O3(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var WT={create:I3,close:M3,onMessage:_3,postMessage:C3,canBeUsed:jT,type:E3,averageResponseTime:O3,microSeconds:k3};var qT=In,N3="simulate",og=new Set;function P3(e){var t={time:qT(),name:e,messagesCallback:null};return og.add(t),t}function F3(e){og.delete(e)}var YT=5;function L3(e,t){return new Promise(function(r){return setTimeout(function(){var n=Array.from(og);n.forEach(function(o){o.name===e.name&&o!==e&&o.messagesCallback&&o.time<t.time&&o.messagesCallback(t)}),r()},YT)})}function R3(e,t){e.messagesCallback=t}function B3(){return!0}function $3(){return YT}var VT={create:P3,close:F3,onMessage:R3,postMessage:L3,canBeUsed:B3,type:N3,averageResponseTime:$3,microSeconds:qT};var GT=[LT,zT,WT];function ig(e){var t=[].concat(e.methods,GT).filter(Boolean);if(e.type){if(e.type==="simulate")return VT;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(GT.map(function(o){return o.type})))}var ag=new Set,z3=0,mi=function(t,r){this.id=z3++,ag.add(this),this.name=t,sg&&(r=sg),this.options=pi(r),this.method=ig(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,j3(this)};mi._pubkey=!0;function H3(e){e=pi(e);var t=ig(e);return t.type==="node"?t.clearNodeFolder().then(function(){return!0}):PT}var sg;function U3(e){sg=e}mi.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return QT(this,"message",t)},postInternal:function(t){return QT(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),r={time:t,fn:e};ZT(this,"message",this._onML),e&&typeof e=="function"?(this._onML=r,XT(this,"message",r)):this._onML=null},addEventListener:function(t,r){var n=this.method.microSeconds(),o={time:n,fn:r};XT(this,t,o)},removeEventListener:function(t,r){var n=this._addEL[t].find(function(o){return o.fn===r});ZT(this,t,n)},close:function(){var t=this;if(!this.closed){ag.delete(this),this.closed=!0;var r=this._prepP?this._prepP:un;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 QT(e,t,r){var n=e.method.microSeconds(),o={time:n,type:t,data:r},i=e._prepP?e._prepP:un;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 j3(e){var t=e.method.create(e.name,e.options);NT(t)?(e._prepP=t,t.then(function(r){e._state=r})):e._state=t}function JT(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function XT(e,t,r){e._addEL[t].push(r),W3(e)}function ZT(e,t,r){e._addEL[t]=e._addEL[t].filter(function(n){return n!==r}),q3(e)}function W3(e){if(!e._iL&&JT(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 q3(e){if(e._iL&&!JT(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}var lg=globalThis.BroadcastChannel;lg||(lg=mi);var ug=class{constructor(){this.broadcastChannel=new lg("dees-comms"),this.typedrouter=new qt.TypedRouter,this.typedtarget=new qt.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,{skipHooks:!0});n&&!n.error&&this.postMessage(n)}}createTypedRequest(t){return new qt.TypedRequest(this.typedtarget,t)}async postMessage(t){this.broadcastChannel.postMessage(t)}async createTypedHandler(t,r){this.typedrouter.addTypedHandler(new qt.TypedHandler(t,r))}};var ua={};le(ua,{SmartMarkdown:()=>Sy});function Sg(e){if(e)throw e}function vl(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 kg(){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?rD(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 rD(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 go(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?nD(e.position):"start"in e||"end"in e?nD(e):"line"in e||"column"in e?Tg(e):""}function Tg(e){return oD(e&&e.line)+":"+oD(e&&e.column)}function nD(e){return Tg(e&&e.start)+"-"+Tg(e&&e.end)}function oD(e){return e&&typeof e=="number"?e:1}var St=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=go(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=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};St.prototype.file="",St.prototype.name="",St.prototype.reason="",St.prototype.message="",St.prototype.stack="",St.prototype.column=void 0,St.prototype.line=void 0,St.prototype.ancestors=void 0,St.prototype.cause=void 0,St.prototype.fatal=void 0,St.prototype.place=void 0,St.prototype.ruleId=void 0,St.prototype.source=void 0;var Rr={basename:MH,dirname:_H,extname:OH,join:NH,sep:"/"};function MH(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Sl(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 _H(e){if(Sl(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 OH(e){Sl(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 NH(...e){let t=-1,r;for(;++t<e.length;)Sl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":PH(r)}function PH(e){Sl(e);let t=e.codePointAt(0)===47,r=FH(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function FH(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 Sl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var iD={cwd:LH};function LH(){return"/"}function qs(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function sD(e){if(typeof e=="string")e=new URL(e);else if(!qs(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 RH(e)}function RH(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 Eg=["history","path","basename","stem","extname","dirname"],kl=class{constructor(t){let r;t?qs(t)?r={path:t}:typeof t=="string"||BH(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":iD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Eg.length;){let i=Eg[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)Eg.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Rr.basename(this.path):void 0}set basename(t){Dg(t,"basename"),Cg(t,"basename"),this.path=Rr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Rr.dirname(this.path):void 0}set dirname(t){aD(this.basename,"dirname"),this.path=Rr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Rr.extname(this.path):void 0}set extname(t){if(Cg(t,"extname"),aD(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=Rr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){qs(t)&&(t=sD(t)),Dg(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Rr.basename(this.path,this.extname):void 0}set stem(t){Dg(t,"stem"),Cg(t,"stem"),this.path=Rr.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 St(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 Cg(e,t){if(e&&e.includes(Rr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Rr.sep+"`")}function Dg(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function aD(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function BH(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var lD=(function(e){let n=this.constructor.prototype,o=n[e],i=function(){return o.apply(i,arguments)};return Object.setPrototypeOf(i,n),i});var vp=bt(tD(),1),$H={}.hasOwnProperty,Ag=class e extends lD{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=kg()}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let n=this.attachers[r];t.use(...n)}return t.data((0,vp.default)(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(_g("data",this.frozen),this.namespace[t]=r,this):$H.call(this.namespace,t)&&this.namespace[t]||void 0:t?(_g("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=wp(t),n=this.parser||this.Parser;return Ig("parse",n),n(String(r),r)}process(t,r){let n=this;return this.freeze(),Ig("process",this.parser||this.Parser),Mg("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(i,s){let a=wp(t),l=n.parse(a);n.run(l,a,function(c,f,p){if(c||!f||!p)return u(c);let m=f,h=n.stringify(m,p);HH(h)?p.value=h:p.result=h,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(),Ig("processSync",this.parser||this.Parser),Mg("processSync",this.compiler||this.Compiler),this.process(t,o),cD("processSync","process",r),n;function o(i,s){r=!0,Sg(i),n=s}}run(t,r,n){uD(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=wp(r);o.run(t,l,u);function u(c,f,p){let m=f||t;c?a(c):s?s(m):n(void 0,m,p)}}}runSync(t,r){let n=!1,o;return this.run(t,r,i),cD("runSync","run",n),o;function i(s,a){Sg(s),o=a,n=!0}}stringify(t,r){this.freeze();let n=wp(r),o=this.compiler||this.Compiler;return Mg("stringify",o),uD(t),o(t,n)}use(t,...r){let n=this.attachers,o=this.namespace;if(_g("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,vp.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[m,...h]=c,d=n[p][1];vl(d)&&vl(m)&&(m=(0,vp.default)(!0,d,m)),n[p]=[u,m,...h]}}}},Tl=new Ag().freeze();function Ig(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Mg(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _g(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 uD(e){if(!vl(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function cD(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function wp(e){return zH(e)?e:new kl(e)}function zH(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function HH(e){return typeof e=="string"||UH(e)}function UH(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Vs(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 xt=xo(/[A-Za-z]/),et=xo(/[\dA-Za-z]/),fD=xo(/[#-'*+\--9=?A-Z^-~]/);function vi(e){return e!==null&&(e<32||e===127)}var El=xo(/\d/),pD=xo(/[\dA-Fa-f]/),mD=xo(/[!-/:-@[-`{-~]/);function W(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 Si=xo(/\p{P}|\p{S}/u),pn=xo(/\s/);function xo(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}var dD=(function(e,t,r,n,o){let i=_n(t);if(r!=null&&(typeof r!="number"||r<0||r===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(n!=null&&(!dD(n)||!n.children))throw new Error("Expected parent node");if(n==null!=(r==null))throw new Error("Expected both parent and index");return hD(e)?i.call(o,e,r,n):!1}),_n=(function(e){if(e==null)return YH;if(typeof e=="function")return Sp(e);if(typeof e=="object")return Array.isArray(e)?jH(e):WH(e);if(typeof e=="string")return qH(e);throw new Error("Expected function, string, or object as test")});function jH(e){let t=[],r=-1;for(;++r<e.length;)t[r]=_n(e[r]);return Sp(n);function n(...o){let i=-1;for(;++i<t.length;)if(t[i].apply(this,o))return!0;return!1}}function WH(e){let t=e;return Sp(r);function r(n){let o=n,i;for(i in e)if(o[i]!==t[i])return!1;return!0}}function qH(e){return Sp(t);function t(r){return r&&r.type===e}}function Sp(e){return t;function t(r,n,o){return!!(hD(r)&&e.call(this,r,typeof n=="number"?n:void 0,o||void 0))}}function YH(){return!0}function hD(e){return e!==null&&typeof e=="object"&&"type"in e}var gD=[],kp=!0,ki=!1,Tp="skip";function Cl(e,t,r,n){let o;typeof t=="function"&&typeof r!="function"?(n=r,r=t):o=t;let i=_n(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 m=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return p;function p(){let m=gD,h,d,g;if((!t||i(l,u,c[c.length-1]||void 0))&&(m=VH(r(l,c)),m[0]===ki))return m;if("children"in l&&l.children){let y=l;if(y.children&&m[0]!==Tp)for(d=(n?y.children.length:-1)+s,g=c.concat(y);d>-1&&d<y.children.length;){let S=y.children[d];if(h=a(S,d,g)(),h[0]===ki)return h;d=typeof h[1]=="number"?h[1]:d+s}}return m}}}function VH(e){return Array.isArray(e)?e:typeof e=="number"?[kp,e]:e==null?gD:[e]}function Og(e,t,r){let o=_n((r||{}).ignore||[]),i=GH(t),s=-1;for(;++s<i.length;)Cl(e,"text",a);function a(u,c){let f=-1,p;for(;++f<c.length;){let m=c[f],h=p?p.children:void 0;if(o(m,h?h.indexOf(m):void 0,p))return;p=m}if(p)return l(u,c)}function l(u,c){let f=c[c.length-1],p=i[s][0],m=i[s][1],h=0,g=f.children.indexOf(u),y=!1,S=[];p.lastIndex=0;let k=p.exec(u.value);for(;k;){let z=k.index,R={index:k.index,input:k.input,stack:[...c,u]},T=m(...k,R);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?p.lastIndex=z+1:(h!==z&&S.push({type:"text",value:u.value.slice(h,z)}),Array.isArray(T)?S.push(...T):T&&S.push(T),h=z+k[0].length,y=!0),!p.global)break;k=p.exec(u.value)}return y?(h<u.value.length&&S.push({type:"text",value:u.value.slice(h)}),f.children.splice(g,1,...S)):S=[u],g+S.length}}function GH(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([QH(o[0]),JH(o[1])])}return t}function QH(e){return typeof e=="string"?new RegExp(Jo(e),"g"):e}function JH(e){return typeof e=="function"?e:function(){return e}}var Ng="phrasing",Pg=["autolink","link","image","label"];function Lg(){return{transforms:[rU],enter:{literalAutolink:XH,literalAutolinkEmail:Fg,literalAutolinkHttp:Fg,literalAutolinkWww:Fg},exit:{literalAutolink:tU,literalAutolinkEmail:eU,literalAutolinkHttp:ZH,literalAutolinkWww:KH}}}function Rg(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ng,notInConstruct:Pg},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ng,notInConstruct:Pg},{character:":",before:"[ps]",after:"\\/",inConstruct:Ng,notInConstruct:Pg}]}}function XH(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Fg(e){this.config.enter.autolinkProtocol.call(this,e)}function ZH(e){this.config.exit.autolinkProtocol.call(this,e)}function KH(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 eU(e){this.config.exit.autolinkEmail.call(this,e)}function tU(e){this.exit(e)}function rU(e){Og(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,nU],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,oU]],{ignore:["link","linkReference"]})}function nU(e,t,r,n,o){let i="";if(!xD(o)||(/^w/i.test(t)&&(r=t+r,t="",i="http://"),!iU(r)))return!1;let s=sU(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 oU(e,t,r,n){return!xD(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function iU(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 sU(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=Vs(e,"("),i=Vs(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 xD(e,t){let r=e.input.charCodeAt(e.index-1);return(e.index===0||pn(r)||Si(r))&&(!t||r!==47)}function tt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}yD.peek=dU;function aU(){this.buffer()}function lU(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function uU(){this.buffer()}function cU(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function fU(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=tt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function pU(e){this.exit(e)}function mU(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=tt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function hU(e){this.exit(e)}function dU(){return"["}function yD(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),{after:"]",before:i})),a(),s(),i+=o.move("]"),i}function Bg(){return{enter:{gfmFootnoteCallString:aU,gfmFootnoteCall:lU,gfmFootnoteDefinitionLabelString:uU,gfmFootnoteDefinition:cU},exit:{gfmFootnoteCallString:fU,gfmFootnoteCall:pU,gfmFootnoteDefinitionLabelString:mU,gfmFootnoteDefinition:hU}}}function $g(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:yD},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,o,i,s){let a=i.createTracker(s),l=a.move("[^"),u=i.enter("footnoteDefinition"),c=i.enter("label");return l+=a.move(i.safe(i.associationId(n),{before:l,after:"]"})),c(),l+=a.move("]:"),n.children&&n.children.length>0&&(a.shift(4),l+=a.move((t?`
51
+ `:" ")+i.indentLines(i.containerFlow(n,a.current()),t?bD:gU))),u(),l}}function gU(e,t,r){return t===0?e:bD(e,t,r)}function bD(e,t,r){return(r?"":" ")+e}var xU=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wD.peek=wU;function zg(){return{canContainEols:["delete"],enter:{strikethrough:yU},exit:{strikethrough:bU}}}function Hg(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:xU}],handlers:{delete:wD}}}function yU(e){this.enter({type:"delete",children:[]},e)}function bU(e){this.exit(e)}function wD(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 wU(){return"~"}function vU(e){return e.length}function SD(e,t){let r=t||{},n=(r.align||[]).concat(),o=r.stringLength||vU,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=SU(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]=vD(n[f]);else{let d=vD(n);for(;++f<u;)i[f]=d}f=-1;let p=[],m=[];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),m[f]=S),p[f]=k}s.splice(1,0,p),a.splice(1,0,m),c=-1;let h=[];for(;++c<s.length;){let d=s[c],g=a[c];f=-1;let y=[];for(;++f<u;){let S=d[f]||"",k="",z="";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),z=" ".repeat(R/2-.5)):(k=" ".repeat(R/2),z=k):z=" ".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(z),r.padding!==!1&&y.push(" "),(r.delimiterEnd!==!1||f!==u-1)&&y.push("|")}h.push(r.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return h.join(`
52
+ `)}function SU(e){return e==null?"":String(e)}function vD(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var kD={}.hasOwnProperty;function Ep(e,t){let r=t||{};function n(o,...i){let s=n.invalid,a=n.handlers;if(o&&kD.call(o,e)){let l=String(o[e]);s=kD.call(a,l)?a[l]:n.unknown}if(s)return s.call(this,o,...i)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}var kU={}.hasOwnProperty;function Ug(e,t){let r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)Ug(e,t.extensions[r]);for(n in t)if(kU.call(t,n))switch(n){case"extensions":break;case"unsafe":{TD(e[n],t[n]);break}case"join":{TD(e[n],t[n]);break}case"handlers":{TU(e[n],t[n]);break}default:e.options[n]=t[n]}return e}function TD(e,t){t&&e.push(...t)}function TU(e,t){t&&Object.assign(e,t)}function ED(e,t,r,n){let o=r.enter("blockquote"),i=r.createTracker(n);i.move("> "),i.shift(2);let s=r.indentLines(r.containerFlow(e,i.current()),EU);return o(),s}function EU(e,t,r){return">"+(r?"":" ")+e}function Cp(e,t){return CD(e,t.inConstruct,!0)&&!CD(e,t.notInConstruct,!1)}function CD(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function jg(e,t,r,n){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
53
+ `&&Cp(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return`\\
54
+ `}function DD(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 Dl(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 AD(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 ID(e,t,r,n){let o=AD(r),i=e.value||"",s=o==="`"?"GraveAccent":"Tilde";if(Dl(e,r)){let f=r.enter("codeIndented"),p=r.indentLines(i,CU);return f(),p}let a=r.createTracker(n),l=o.repeat(Math.max(DD(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
55
  `,encode:["`"],...a.current()})),f()}return c+=a.move(`
58
- `),o&&(c+=a.move(o+`
59
- `)),c+=a.move(l),u(),c}function s2(e,t,r){return(r?"":" ")+e}function ro(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 LS(e,t,r,n){let i=ro(r),o=i==='"'?"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${o}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),s(),u}function BS(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 vt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Cr(e){if(e===null||fe(e)||Kt(e))return 1;if(Wn(e))return 2}function no(e,t,r){let n=Cr(e),i=Cr(t);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}wh.peek=a2;function wh(e,t,r,n){let i=BS(r),o=r.enter("emphasis"),s=r.createTracker(n),a=s.move(i),l=s.move(r.containerPhrasing(e,{after:i,before:a,...s.current()})),u=l.charCodeAt(0),c=no(n.before.charCodeAt(n.before.length-1),u,i);c.inside&&(l=vt(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=no(n.after.charCodeAt(0),f,i);p.inside&&(l=l.slice(0,-1)+vt(f));let h=s.move(i);return o(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+h}function a2(e,t,r){return r.options.emphasis||"*"}function Os(e,t,r,n){let i,o,s;typeof t=="function"&&typeof r!="function"?(o=void 0,s=t,i=r):(o=t,s=r,i=n),Is(e,o,a,i);function a(l,u){let c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}var l2={};function Gn(e,t){let r=t||l2,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return US(e,n,i)}function US(e,t,r){if(u2(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 $S(e.children,t,r)}return Array.isArray(e)?$S(e,t,r):""}function $S(e,t,r){let n=[],i=-1;for(;++i<e.length;)n[i]=US(e[i],t,r);return n.join("")}function u2(e){return!!(e&&typeof e=="object")}function ru(e,t){let r=!1;return Os(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Yn}),!!((!e.depth||e.depth<3)&&Gn(e)&&(t.options.setext||r))}function jS(e,t,r,n){let i=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(n);if(ru(e,r)){let c=r.enter("headingSetext"),f=r.enter("phrasing"),p=r.containerPhrasing(e,{...o.current(),before:`
56
+ `),i&&(c+=a.move(i+`
57
+ `)),c+=a.move(l),u(),c}function CU(e,t,r){return(r?"":" ")+e}function Gs(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 MD(e,t,r,n){let o=Gs(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?" ":`
58
+ `,...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 _D(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 cr(e){return"&#x"+e.toString(16).toUpperCase()+";"}function On(e){if(e===null||be(e)||pn(e))return 1;if(Si(e))return 2}function Qs(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}}Wg.peek=DU;function Wg(e,t,r,n){let o=_D(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=Qs(n.before.charCodeAt(n.before.length-1),u,o);c.inside&&(l=cr(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=Qs(n.after.charCodeAt(0),f,o);p.inside&&(l=l.slice(0,-1)+cr(f));let m=s.move(o);return i(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+m}function DU(e,t,r){return r.options.emphasis||"*"}function Al(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),Cl(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 AU={};function Ti(e,t){let r=t||AU,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return OD(e,n,o)}function OD(e,t,r){if(IU(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 ND(e.children,t,r)}return Array.isArray(e)?ND(e,t,r):""}function ND(e,t,r){let n=[],o=-1;for(;++o<e.length;)n[o]=OD(e[o],t,r);return n.join("")}function IU(e){return!!(e&&typeof e=="object")}function Dp(e,t){let r=!1;return Al(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,ki}),!!((!e.depth||e.depth<3)&&Ti(e)&&(t.options.setext||r))}function PD(e,t,r,n){let o=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(Dp(e,r)){let c=r.enter("headingSetext"),f=r.enter("phrasing"),p=r.containerPhrasing(e,{...i.current(),before:`
61
59
  `,after:`
62
60
  `});return f(),c(),p+`
63
- `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
64
- `))+1))}let s="#".repeat(i),a=r.enter("headingAtx"),l=r.enter("phrasing");o.move(s+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
65
- `,...o.current()});return/^[\t ]/.test(u)&&(u=vt(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),a(),u}vh.peek=c2;function vh(e){return e.value||""}function c2(){return"<"}Sh.peek=f2;function Sh(e,t,r,n){let i=ro(r),o=i==='"'?"Quote":"Apostrophe",s=r.enter("image"),a=r.enter("label"),l=r.createTracker(n),u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\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?" ":")",...l.current()}))),a(),e.title&&(a=r.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),s(),u}function f2(){return"!"}kh.peek=p2;function kh(e,t,r,n){let i=e.referenceType,o=r.enter("imageReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("!["),u=r.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function p2(){return"!"}Ah.peek=h2;function Ah(e,t,r){let n=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<r.unsafe.length;){let s=r.unsafe[o],a=r.compilePattern(s),l;if(s.atBreak)for(;l=a.exec(n);){let u=l.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(l.index+1)}}return i+n+i}function h2(){return"`"}function Ch(e,t){let r=Gn(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Th.peek=m2;function Th(e,t,r,n){let i=ro(r),o=i==='"'?"Quote":"Apostrophe",s=r.createTracker(n),a,l;if(Ch(e,r)){let c=r.stack;r.stack=[],a=r.enter("autolink");let f=s.move("<");return f+=s.move(r.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),a(),r.stack=c,f}a=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(r.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),a(),u}function m2(e,t,r){return Ch(e,r)?"<":"["}Eh.peek=d2;function Eh(e,t,r,n){let i=e.referenceType,o=r.enter("linkReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("["),u=r.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,o(),i==="full"||!u||u!==f?l+=a.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function d2(){return"["}function io(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function zS(e){let t=io(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function qS(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function nu(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function HS(e,t,r,n){let i=r.enter("list"),o=r.bulletCurrent,s=e.ordered?qS(r):io(r),a=e.ordered?s==="."?")":".":zS(r),l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.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&&(l=!0),nu(r)===s&&c){let f=-1;for(;++f<e.children.length;){let p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),r.bulletCurrent=s;let u=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=o,i(),u}function VS(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function WS(e,t,r,n){let i=VS(r),o=r.bulletCurrent||io(r);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);let a=r.createTracker(n);a.move(o+" ".repeat(s-o.length)),a.shift(s);let l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,a.current()),c);return l(),u;function c(f,p,h){return p?(h?"":" ".repeat(s))+f:(h?o:o+" ".repeat(s-o.length))+f}}function YS(e,t,r,n){let i=r.enter("paragraph"),o=r.enter("phrasing"),s=r.containerPhrasing(e,n);return o(),i(),s}var _h=Zr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function GS(e,t,r,n){return(e.children.some(function(s){return _h(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function JS(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ih.peek=g2;function Ih(e,t,r,n){let i=JS(r),o=r.enter("strong"),s=r.createTracker(n),a=s.move(i+i),l=s.move(r.containerPhrasing(e,{after:i,before:a,...s.current()})),u=l.charCodeAt(0),c=no(n.before.charCodeAt(n.before.length-1),u,i);c.inside&&(l=vt(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=no(n.after.charCodeAt(0),f,i);p.inside&&(l=l.slice(0,-1)+vt(f));let h=s.move(i+i);return o(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+h}function g2(e,t,r){return r.options.strong||"*"}function QS(e,t,r,n){return r.safe(e.value,n)}function ZS(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function XS(e,t,r){let n=(nu(r)+(r.options.ruleSpaces?" ":"")).repeat(ZS(r));return r.options.ruleSpaces?n.slice(0,-1):n}var Jn={blockquote:DS,break:bh,code:RS,definition:LS,emphasis:wh,hardBreak:bh,heading:jS,html:vh,image:Sh,imageReference:kh,inlineCode:Ah,link:Th,linkReference:Eh,list:HS,listItem:WS,paragraph:YS,root:GS,strong:Ih,text:QS,thematicBreak:XS};var KS=[y2];function y2(e,t,r,n){if(t.type==="code"&&Ps(t,n)&&(e.type==="list"||e.type===t.type&&Ps(e,n)))return!1;if("spread"in r&&typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&ru(t,n))?void 0:r.spread?1:0}var Qn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],e1=[{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:`
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:Qn},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
67
- ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Qn},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
68
- *])`},{character:"*",inConstruct:"phrasing",notInConstruct:Qn},{atBreak:!0,character:"+",after:`(?:[ \r
61
+ `+(o===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
62
+ `))+1))}let s="#".repeat(o),a=r.enter("headingAtx"),l=r.enter("phrasing");i.move(s+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
63
+ `,...i.current()});return/^[\t ]/.test(u)&&(u=cr(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),a(),u}qg.peek=MU;function qg(e){return e.value||""}function MU(){return"<"}Yg.peek=_U;function Yg(e,t,r,n){let o=Gs(r),i=o==='"'?"Quote":"Apostrophe",s=r.enter("image"),a=r.enter("label"),l=r.createTracker(n),u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\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?" ":")",...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()),u+=l.move(")"),s(),u}function _U(){return"!"}Vg.peek=OU;function Vg(e,t,r,n){let o=e.referenceType,i=r.enter("imageReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("!["),u=r.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,i(),o==="full"||!u||u!==f?l+=a.move(f+"]"):o==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function OU(){return"!"}Gg.peek=NU;function Gg(e,t,r){let n=e.value||"",o="`",i=-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+" ");++i<r.unsafe.length;){let s=r.unsafe[i],a=r.compilePattern(s),l;if(s.atBreak)for(;l=a.exec(n);){let u=l.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(l.index+1)}}return o+n+o}function NU(){return"`"}function Qg(e,t){let r=Ti(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Jg.peek=PU;function Jg(e,t,r,n){let o=Gs(r),i=o==='"'?"Quote":"Apostrophe",s=r.createTracker(n),a,l;if(Qg(e,r)){let c=r.stack;r.stack=[],a=r.enter("autolink");let f=s.move("<");return f+=s.move(r.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),a(),r.stack=c,f}a=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${i}`),u+=s.move(" "+o),u+=s.move(r.safe(e.title,{before:u,after:o,...s.current()})),u+=s.move(o),l()),u+=s.move(")"),a(),u}function PU(e,t,r){return Qg(e,r)?"<":"["}Xg.peek=FU;function Xg(e,t,r,n){let o=e.referenceType,i=r.enter("linkReference"),s=r.enter("label"),a=r.createTracker(n),l=a.move("["),u=r.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();let c=r.stack;r.stack=[],s=r.enter("reference");let f=r.safe(r.associationId(e),{before:l,after:"]",...a.current()});return s(),r.stack=c,i(),o==="full"||!u||u!==f?l+=a.move(f+"]"):o==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function FU(){return"["}function Js(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function FD(e){let t=Js(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function LD(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ap(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function RD(e,t,r,n){let o=r.enter("list"),i=r.bulletCurrent,s=e.ordered?LD(r):Js(r),a=e.ordered?s==="."?")":".":FD(r),l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.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&&(l=!0),Ap(r)===s&&c){let f=-1;for(;++f<e.children.length;){let p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),r.bulletCurrent=s;let u=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=i,o(),u}function BD(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function $D(e,t,r,n){let o=BD(r),i=r.bulletCurrent||Js(r);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);let a=r.createTracker(n);a.move(i+" ".repeat(s-i.length)),a.shift(s);let l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,a.current()),c);return l(),u;function c(f,p,m){return p?(m?"":" ".repeat(s))+f:(m?i:i+" ".repeat(s-i.length))+f}}function zD(e,t,r,n){let o=r.enter("paragraph"),i=r.enter("phrasing"),s=r.containerPhrasing(e,n);return i(),o(),s}var Zg=_n(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function HD(e,t,r,n){return(e.children.some(function(s){return Zg(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function UD(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Kg.peek=LU;function Kg(e,t,r,n){let o=UD(r),i=r.enter("strong"),s=r.createTracker(n),a=s.move(o+o),l=s.move(r.containerPhrasing(e,{after:o,before:a,...s.current()})),u=l.charCodeAt(0),c=Qs(n.before.charCodeAt(n.before.length-1),u,o);c.inside&&(l=cr(u)+l.slice(1));let f=l.charCodeAt(l.length-1),p=Qs(n.after.charCodeAt(0),f,o);p.inside&&(l=l.slice(0,-1)+cr(f));let m=s.move(o+o);return i(),r.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+m}function LU(e,t,r){return r.options.strong||"*"}function jD(e,t,r,n){return r.safe(e.value,n)}function WD(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function qD(e,t,r){let n=(Ap(r)+(r.options.ruleSpaces?" ":"")).repeat(WD(r));return r.options.ruleSpaces?n.slice(0,-1):n}var Ei={blockquote:ED,break:jg,code:ID,definition:MD,emphasis:Wg,hardBreak:jg,heading:PD,html:qg,image:Yg,imageReference:Vg,inlineCode:Gg,link:Jg,linkReference:Xg,list:RD,listItem:$D,paragraph:zD,root:HD,strong:Kg,text:jD,thematicBreak:qD};var YD=[RU];function RU(e,t,r,n){if(t.type==="code"&&Dl(t,n)&&(e.type==="list"||e.type===t.type&&Dl(e,n)))return!1;if("spread"in r&&typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&Dp(t,n))?void 0:r.spread?1:0}var Ci=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],VD=[{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:`
64
+ `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Ci},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
65
+ ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Ci},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
66
+ *])`},{character:"*",inConstruct:"phrasing",notInConstruct:Ci},{atBreak:!0,character:"+",after:`(?:[ \r
69
67
  ])`},{atBreak:!0,character:"-",after:`(?:[ \r
70
68
  -])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
71
- ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Qn},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Qn},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Qn},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Qn},{atBreak:!0,character:"~"}];var t1=document.createElement("i");function oo(e){let t="&"+e+";";t1.innerHTML=t;let r=t1.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function iu(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}var x2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ou(e){return e.replace(x2,b2)}function b2(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let i=r.charCodeAt(1),o=i===120||i===88;return iu(r.slice(o?2:1),o?16:10)}return oo(r)||e}function r1(e){return e.label||!e.identifier?e.label||"":ou(e.identifier)}function n1(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function i1(e,t,r){let n=t.indexStack,i=e.children||[],o=[],s=-1,a=r.before,l;n.push(-1);let u=t.createTracker(r);for(;++s<i.length;){let c=i[s],f;if(n[n.length-1]=s,s+1<i.length){let m=t.handle.handlers[i[s+1].type];m&&m.peek&&(m=m.peek),f=m?m(i[s+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else f=r.after;o.length>0&&(a==="\r"||a===`
72
- `)&&c.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",u=t.createTracker(r),u.move(o.join("")));let p=t.handle(c,e,t,{...u.current(),after:f,before:a});l&&l===p.slice(0,1)&&(p=vt(l.charCodeAt(0))+p.slice(1));let h=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,l=void 0,h&&(o.length>0&&h.before&&a===o[o.length-1].slice(-1)&&(o[o.length-1]=o[o.length-1].slice(0,-1)+vt(a.charCodeAt(0))),h.after&&(l=f)),u.move(p),o.push(p),a=p.slice(-1)}return n.pop(),o.join("")}function o1(e,t,r){let n=t.indexStack,i=e.children||[],o=t.createTracker(r),s=[],a=-1;for(n.push(-1);++a<i.length;){let l=i[a];n[n.length-1]=a,s.push(o.move(t.handle(l,e,t,{before:`
69
+ ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Ci},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Ci},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Ci},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Ci},{atBreak:!0,character:"~"}];var GD=document.createElement("i");function yo(e){let t="&"+e+";";GD.innerHTML=t;let r=GD.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Xs(e,t){let r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":String.fromCodePoint(r)}var BU=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ip(e){return e.replace(BU,$U)}function $U(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){let o=r.charCodeAt(1),i=o===120||o===88;return Xs(r.slice(i?2:1),i?16:10)}return yo(r)||e}function QD(e){return e.label||!e.identifier?e.label||"":Ip(e.identifier)}function JD(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function XD(e,t,r){let n=t.indexStack,o=e.children||[],i=[],s=-1,a=r.before,l;n.push(-1);let u=t.createTracker(r);for(;++s<o.length;){let c=o[s],f;if(n[n.length-1]=s,s+1<o.length){let h=t.handle.handlers[o[s+1].type];h&&h.peek&&(h=h.peek),f=h?h(o[s+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else f=r.after;i.length>0&&(a==="\r"||a===`
70
+ `)&&c.type==="html"&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),a=" ",u=t.createTracker(r),u.move(i.join("")));let p=t.handle(c,e,t,{...u.current(),after:f,before:a});l&&l===p.slice(0,1)&&(p=cr(l.charCodeAt(0))+p.slice(1));let m=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,l=void 0,m&&(i.length>0&&m.before&&a===i[i.length-1].slice(-1)&&(i[i.length-1]=i[i.length-1].slice(0,-1)+cr(a.charCodeAt(0))),m.after&&(l=f)),u.move(p),i.push(p),a=p.slice(-1)}return n.pop(),i.join("")}function ZD(e,t,r){let n=t.indexStack,o=e.children||[],i=t.createTracker(r),s=[],a=-1;for(n.push(-1);++a<o.length;){let l=o[a];n[n.length-1]=a,s.push(i.move(t.handle(l,e,t,{before:`
73
71
  `,after:`
74
- `,...o.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),a<i.length-1&&s.push(o.move(w2(l,i[a+1],e,t)))}return n.pop(),s.join("")}function w2(e,t,r,n){let i=n.join.length;for(;i--;){let o=n.join[i](e,t,r,n);if(o===!0||o===1)break;if(typeof o=="number")return`
75
- `.repeat(1+o);if(o===!1)return`
72
+ `,...i.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),a<o.length-1&&s.push(i.move(zU(l,o[a+1],e,t)))}return n.pop(),s.join("")}function zU(e,t,r,n){let o=n.join.length;for(;o--;){let i=n.join[o](e,t,r,n);if(i===!0||i===1)break;if(typeof i=="number")return`
73
+ `.repeat(1+i);if(i===!1)return`
76
74
 
77
75
  <!---->
78
76
 
79
77
  `}return`
80
78
 
81
- `}var v2=/\r?\n|\r/g;function s1(e,t){let r=[],n=0,i=0,o;for(;o=v2.exec(e);)s(e.slice(n,o.index)),r.push(o[0]),n=o.index+o[0].length,i++;return s(e.slice(n)),r.join("");function s(a){r.push(t(a,i,!a))}}function l1(e,t,r){let n=(r.before||"")+(t||"")+(r.after||""),i=[],o=[],s={},a=-1;for(;++a<e.unsafe.length;){let c=e.unsafe[a];if(!tu(e.stack,c))continue;let f=e.compilePattern(c),p;for(;p=f.exec(n);){let h="before"in c||!!c.atBreak,m="after"in c,x=p.index+(h?p[1].length:0);i.includes(x)?(s[x].before&&!h&&(s[x].before=!1),s[x].after&&!m&&(s[x].after=!1)):(i.push(x),s[x]={before:h,after:m})}}i.sort(S2);let l=r.before?r.before.length:0,u=n.length-(r.after?r.after.length:0);for(a=-1;++a<i.length;){let c=i[a];c<l||c>=u||c+1<u&&i[a+1]===c+1&&s[c].after&&!s[c+1].before&&!s[c+1].after||i[a-1]===c-1&&s[c].before&&!s[c-1].before&&!s[c-1].after||(l!==c&&o.push(a1(n.slice(l,c),"\\")),l=c,/[!-/:-@[-`{-~]/.test(n.charAt(c))&&(!r.encode||!r.encode.includes(n.charAt(c)))?o.push("\\"):(o.push(vt(n.charCodeAt(c))),l++))}return o.push(a1(n.slice(l,u),r.after)),o.join("")}function S2(e,t){return e-t}function a1(e,t){let r=/\\(?=[!-/:-@[-`{-~])/g,n=[],i=[],o=e+t,s=-1,a=0,l;for(;l=r.exec(o);)n.push(l.index);for(;++s<n.length;)a!==n[s]&&i.push(e.slice(a,n[s])),i.push("\\"),a=n[s];return i.push(e.slice(a)),i.join("")}function u1(e){let t=e||{},r=t.now||{},n=t.lineShift||0,i=r.line||1,o=r.column||1;return{move:l,current:s,shift:a};function s(){return{now:{line:i,column:o},lineShift:n}}function a(u){n+=u}function l(u){let c=u||"",f=c.split(/\r?\n|\r/g),p=f[f.length-1];return i+=f.length-1,o=f.length===1?o+p.length:1+p.length+n,c}}function Ph(e,t){let r=t||{},n={associationId:r1,containerPhrasing:T2,containerFlow:E2,createTracker:u1,compilePattern:n1,enter:o,handlers:{...Jn},handle:void 0,indentLines:s1,indexStack:[],join:[...KS],options:{},safe:_2,stack:[],unsafe:[...e1]};xh(n,r),n.options.tightDefinitions&&n.join.push(C2),n.handle=eu("type",{invalid:k2,unknown:A2,handlers:n.handlers});let i=n.handle(e,void 0,n,{before:`
79
+ `}var HU=/\r?\n|\r/g;function KD(e,t){let r=[],n=0,o=0,i;for(;i=HU.exec(e);)s(e.slice(n,i.index)),r.push(i[0]),n=i.index+i[0].length,o++;return s(e.slice(n)),r.join("");function s(a){r.push(t(a,o,!a))}}function tA(e,t,r){let n=(r.before||"")+(t||"")+(r.after||""),o=[],i=[],s={},a=-1;for(;++a<e.unsafe.length;){let c=e.unsafe[a];if(!Cp(e.stack,c))continue;let f=e.compilePattern(c),p;for(;p=f.exec(n);){let m="before"in c||!!c.atBreak,h="after"in c,d=p.index+(m?p[1].length:0);o.includes(d)?(s[d].before&&!m&&(s[d].before=!1),s[d].after&&!h&&(s[d].after=!1)):(o.push(d),s[d]={before:m,after:h})}}o.sort(UU);let l=r.before?r.before.length:0,u=n.length-(r.after?r.after.length:0);for(a=-1;++a<o.length;){let c=o[a];c<l||c>=u||c+1<u&&o[a+1]===c+1&&s[c].after&&!s[c+1].before&&!s[c+1].after||o[a-1]===c-1&&s[c].before&&!s[c-1].before&&!s[c-1].after||(l!==c&&i.push(eA(n.slice(l,c),"\\")),l=c,/[!-/:-@[-`{-~]/.test(n.charAt(c))&&(!r.encode||!r.encode.includes(n.charAt(c)))?i.push("\\"):(i.push(cr(n.charCodeAt(c))),l++))}return i.push(eA(n.slice(l,u),r.after)),i.join("")}function UU(e,t){return e-t}function eA(e,t){let r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],i=e+t,s=-1,a=0,l;for(;l=r.exec(i);)n.push(l.index);for(;++s<n.length;)a!==n[s]&&o.push(e.slice(a,n[s])),o.push("\\"),a=n[s];return o.push(e.slice(a)),o.join("")}function rA(e){let t=e||{},r=t.now||{},n=t.lineShift||0,o=r.line||1,i=r.column||1;return{move:l,current:s,shift:a};function s(){return{now:{line:o,column:i},lineShift:n}}function a(u){n+=u}function l(u){let c=u||"",f=c.split(/\r?\n|\r/g),p=f[f.length-1];return o+=f.length-1,i=f.length===1?i+p.length:1+p.length+n,c}}function ex(e,t){let r=t||{},n={associationId:QD,containerPhrasing:YU,containerFlow:VU,createTracker:rA,compilePattern:JD,enter:i,handlers:{...Ei},handle:void 0,indentLines:KD,indexStack:[],join:[...YD],options:{},safe:GU,stack:[],unsafe:[...VD]};Ug(n,r),n.options.tightDefinitions&&n.join.push(qU),n.handle=Ep("type",{invalid:jU,unknown:WU,handlers:n.handlers});let o=n.handle(e,void 0,n,{before:`
82
80
  `,after:`
83
- `,now:{line:1,column:1},lineShift:0});return i&&i.charCodeAt(i.length-1)!==10&&i.charCodeAt(i.length-1)!==13&&(i+=`
84
- `),i;function o(s){return n.stack.push(s),a;function a(){n.stack.pop()}}}function k2(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function A2(e){let t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function C2(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function T2(e,t){return i1(e,this,t)}function E2(e,t){return o1(e,this,t)}function _2(e,t){return l1(this,e,t)}function Dh(){return{enter:{table:I2,tableData:c1,tableHeader:c1,tableRow:O2},exit:{codeText:D2,table:P2,tableData:Oh,tableHeader:Oh,tableRow:Oh}}}function I2(e){let t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function P2(e){this.exit(e),this.data.inTable=void 0}function O2(e){this.enter({type:"tableRow",children:[]},e)}function Oh(e){this.exit(e)}function c1(e){this.enter({type:"tableCell",children:[]},e)}function D2(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,M2));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function M2(e,t){return t==="|"?t:e}function Mh(e){let t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
85
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:a}};function s(h,m,x,v){return u(c(h,x,v),h.align)}function a(h,m,x,v){let w=f(h,x,v),E=u([w]);return E.slice(0,E.indexOf(`
86
- `))}function l(h,m,x,v){let w=x.enter("tableCell"),E=x.enter("phrasing"),b=x.containerPhrasing(h,{...v,before:o,after:o});return E(),w(),b}function u(h,m){return IS(h,{align:m,alignDelimiters:n,padding:r,stringLength:i})}function c(h,m,x){let v=h.children,w=-1,E=[],b=m.enter("table");for(;++w<v.length;)E[w]=f(v[w],m,x);return b(),E}function f(h,m,x){let v=h.children,w=-1,E=[],b=m.enter("tableRow");for(;++w<v.length;)E[w]=l(v[w],h,m,x);return b(),E}function p(h,m,x){let v=Jn.inlineCode(h,m,x);return x.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function Nh(){return{exit:{taskListCheckValueChecked:f1,taskListCheckValueUnchecked:f1,paragraph:N2}}}function Fh(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:F2}}}function f1(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function N2(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 i=t.children,o=-1,s;for(;++o<i.length;){let a=i[o];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 F2(e,t,r,n){let i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=r.createTracker(n);o&&a.move(s);let l=Jn.listItem(e,t,r,{...n,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function Rh(){return[ph(),mh(),gh(),Dh(),Nh()]}function Lh(e){return{extensions:[hh(),dh(),yh(),Mh(e),Fh()]}}function Le(e,t,r,n){let i=e.length,o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i: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);o<n.length;)s=n.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function pt(e,t){return e.length>0?(Le(e,e.length,0,t),e):t}var p1={}.hasOwnProperty;function su(e){let t={},r=-1;for(;++r<e.length;)R2(t,e[r]);return t}function R2(e,t){let r;for(r in t){let i=(p1.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r],s;if(o)for(s in o){p1.call(i,s)||(i[s]=[]);let a=o[s];L2(i[s],Array.isArray(a)?a:a?[a]:[])}}}function L2(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Le(e,0,0,n)}var B2={tokenize:q2,partial:!0},h1={tokenize:H2,partial:!0},m1={tokenize:V2,partial:!0},d1={tokenize:W2,partial:!0},$2={tokenize:Y2,partial:!0},g1={name:"wwwAutolink",tokenize:j2,previous:x1},y1={name:"protocolAutolink",tokenize:z2,previous:b1},Tr={name:"emailAutolink",tokenize:U2,previous:w1},er={};function $h(){return{text:er}}var Zn=48;for(;Zn<123;)er[Zn]=Tr,Zn++,Zn===58?Zn=65:Zn===91&&(Zn=97);er[43]=Tr;er[45]=Tr;er[46]=Tr;er[95]=Tr;er[72]=[Tr,y1];er[104]=[Tr,y1];er[87]=[Tr,g1];er[119]=[Tr,g1];function U2(e,t,r){let n=this,i,o;return s;function s(f){return!Bh(f)||!w1.call(n,n.previous)||Uh(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return Bh(f)?(e.consume(f),a):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check($2,c,u)(f):f===45||f===95||Me(f)?(o=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),i=!0,l}function c(f){return o&&i&&Qe(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function j2(e,t,r){let n=this;return i;function i(s){return s!==87&&s!==119||!x1.call(n,n.previous)||Uh(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(B2,e.attempt(h1,e.attempt(m1,o),r),r)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function z2(e,t,r){let n=this,i="",o=!1;return s;function s(f){return(f===72||f===104)&&b1.call(n,n.previous)&&!Uh(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):r(f)}function a(f){if(Qe(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),a;if(f===58){let p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(f),l}return r(f)}function l(f){return f===47?(e.consume(f),o?u:(o=!0,l)):r(f)}function u(f){return f===null||Vn(f)||fe(f)||Kt(f)||Wn(f)?r(f):e.attempt(h1,e.attempt(m1,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function q2(e,t,r){let n=0;return i;function i(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),i):s===46&&n===3?(e.consume(s),o):r(s)}function o(s){return s===null?r(s):t(s)}}function H2(e,t,r){let n,i,o;return s;function s(u){return u===46||u===95?e.check(d1,l,a)(u):u===null||fe(u)||Kt(u)||u!==45&&Wn(u)?l(u):(o=!0,e.consume(u),s)}function a(u){return u===95?n=!0:(i=n,n=void 0),e.consume(u),s}function l(u){return i||n||!o?r(u):t(u)}}function V2(e,t){let r=0,n=0;return i;function i(s){return s===40?(r++,e.consume(s),i):s===41&&n<r?o(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(d1,t,o)(s):s===null||fe(s)||Kt(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&n++,e.consume(s),i}}function W2(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),o):a===93?(e.consume(a),i):a===60||a===null||fe(a)||Kt(a)?t(a):r(a)}function i(a){return a===null||a===40||a===91||fe(a)||Kt(a)?t(a):n(a)}function o(a){return Qe(a)?s(a):r(a)}function s(a){return a===59?(e.consume(a),n):Qe(a)?(e.consume(a),s):r(a)}}function Y2(e,t,r){return n;function n(o){return e.consume(o),i}function i(o){return Me(o)?r(o):t(o)}}function x1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||fe(e)}function b1(e){return!Qe(e)}function w1(e){return!(e===47||Bh(e))}function Bh(e){return e===43||e===45||e===46||e===95||Me(e)}function Uh(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}function Pt(e){let t=[],r=-1,n=0,i=0;for(;++r<e.length;){let o=e.charCodeAt(r),s="";if(o===37&&Me(e.charCodeAt(r+1))&&Me(e.charCodeAt(r+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){let a=e.charCodeAt(r+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="\uFFFD"}else s=String.fromCharCode(o);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function Xr(e,t,r){let n=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}var Ds={name:"attention",resolveAll:G2,tokenize:J2};function G2(e,t){let r=-1,n,i,o,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};v1(f,-l),v1(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},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={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=pt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=pt(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=pt(u,Xr(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=pt(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=pt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Le(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 J2(e,t){let r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Cr(n),o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;let u=e.exit("attentionSequence"),c=Cr(l),f=!c||c===2&&i||r.includes(l),p=!i||i===2&&c||r.includes(n);return u._open=!!(o===42?f:f&&(i||!p)),u._close=!!(o===42?p:p&&(c||!f)),t(l)}}function v1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var jh={name:"autolink",tokenize:Q2};function Q2(e,t,r){let n=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Qe(h)?(e.consume(h),s):h===64?r(h):u(h)}function s(h){return h===43||h===45||h===46||Me(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||Me(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||Vn(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):vS(h)?(e.consume(h),u):r(h)}function c(h){return Me(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||Me(h))&&n++<63){let m=h===45?p:f;return e.consume(h),m}return r(h)}}function Z(e,t,r,n){let i=n?n-1:Number.POSITIVE_INFINITY,o=0;return s;function s(l){return Q(l)?(e.enter(r),a(l)):t(l)}function a(l){return Q(l)&&o++<i?(e.consume(l),a):(e.exit(r),t(l))}}var tr={partial:!0,tokenize:Z2};function Z2(e,t,r){return n;function n(o){return Q(o)?Z(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||H(o)?t(o):r(o)}}var au={continuation:{tokenize:K2},exit:eL,name:"blockQuote",tokenize:X2};function X2(e,t,r){let n=this;return i;function i(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"),o}return r(s)}function o(s){return Q(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function K2(e,t,r){let n=this;return i;function i(s){return Q(s)?Z(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(au,t,r)(s)}}function eL(e){e.exit("blockQuote")}var lu={name:"characterEscape",tokenize:tL};function tL(e,t,r){return n;function n(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return kS(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}var uu={name:"characterReference",tokenize:rL};function rL(e,t,r){let n=this,i=0,o,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"),o=31,s=Me,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=SS,c):(e.enter("characterReferenceValue"),o=7,s=_s,c(f))}function c(f){if(f===59&&i){let p=e.exit("characterReferenceValue");return s===Me&&!oo(n.sliceSerialize(p))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<o?(e.consume(f),c):r(f)}}var S1={partial:!0,tokenize:iL},cu={concrete:!0,name:"codeFenced",tokenize:nL};function nL(e,t,r){let n=this,i={partial:!0,tokenize:q},o=0,s=0,a;return l;function l(A){return u(A)}function u(A){let R=n.events[n.events.length-1];return o=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===a?(s++,e.consume(A),c):s<3?r(A):(e.exit("codeFencedFenceSequence"),Q(A)?Z(e,f,"whitespace")(A):f(A))}function f(A){return A===null||H(A)?(e.exit("codeFencedFence"),n.interrupt?t(A):e.check(S1,x,z)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(A))}function p(A){return A===null||H(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(A)):Q(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Z(e,h,"whitespace")(A)):A===96&&A===a?r(A):(e.consume(A),p)}function h(A){return A===null||H(A)?f(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===null||H(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(A)):A===96&&A===a?r(A):(e.consume(A),m)}function x(A){return e.attempt(i,z,v)(A)}function v(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),w}function w(A){return o>0&&Q(A)?Z(e,E,"linePrefix",o+1)(A):E(A)}function E(A){return A===null||H(A)?e.check(S1,x,z)(A):(e.enter("codeFlowValue"),b(A))}function b(A){return A===null||H(A)?(e.exit("codeFlowValue"),E(A)):(e.consume(A),b)}function z(A){return e.exit("codeFenced"),t(A)}function q(A,R,V){let $=0;return C;function C(D){return A.enter("lineEnding"),A.consume(D),A.exit("lineEnding"),pe}function pe(D){return A.enter("codeFencedFence"),Q(D)?Z(A,B,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):B(D)}function B(D){return D===a?(A.enter("codeFencedFenceSequence"),_(D)):V(D)}function _(D){return D===a?($++,A.consume(D),_):$>=s?(A.exit("codeFencedFenceSequence"),Q(D)?Z(A,I,"whitespace")(D):I(D)):V(D)}function I(D){return D===null||H(D)?(A.exit("codeFencedFence"),R(D)):V(D)}}}function iL(e,t,r){let n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}var Ms={name:"codeIndented",tokenize:sL},oL={partial:!0,tokenize:aL};function sL(e,t,r){let n=this;return i;function i(u){return e.enter("codeIndented"),Z(e,o,"linePrefix",5)(u)}function o(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):H(u)?e.attempt(oL,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||H(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function aL(e,t,r){let n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):H(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Z(e,o,"linePrefix",5)(s)}function o(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):H(s)?i(s):r(s)}}var zh={name:"codeText",previous:uL,resolve:lL,tokenize:cL};function lL(e){let t=e.length-4,r=3,n,i;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;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function uL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function cL(e,t,r){let n=this,i=0,o,s;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),l(p)}function l(p){return p===96?(e.consume(p),i++,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"),o=0,f(p)):H(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||H(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),c)}function f(p){return p===96?(e.consume(p),o++,f):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(s.type="codeTextData",c(p))}}var fu=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 i=r||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&Ns(this.left,n),o.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),Ns(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ns(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);Ns(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ns(this.left,r.reverse())}}};function Ns(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 pu(e){let t={},r=-1,n,i,o,s,a,l,u,c=new fu(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,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,fL(c,r)),r=t[r],u=!0);else if(n[1]._container){for(o=r,i=void 0;o--&&(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);i&&(n[1].end={...c.get(i)[1].start},a=c.slice(i,r),a.unshift(n),c.splice(i,r-i+1,a))}}return Le(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function fL(e,t){let r=e.get(t)[1],n=e.get(t)[2],i=t-1,o=[],s=r._tokenizer||n.parser[r.contentType](r.start),a=s.events,l=[],u={},c,f,p=-1,h=r,m=0,x=0,v=[x];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),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&&(x=p+1,v.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):v.pop(),p=v.length;p--;){let w=a.slice(v[p],v[p+1]),E=o.pop();l.push([E,E+w.length-1]),e.splice(E,2,w)}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 qh={resolve:hL,tokenize:mL},pL={partial:!0,tokenize:dL};function hL(e){return pu(e),e}function mL(e,t){let r;return n;function n(a){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):H(a)?e.check(pL,s,o)(a):(e.consume(a),i)}function o(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,i}}function dL(e,t,r){let n=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Z(e,o,"linePrefix")}function o(s){if(s===null||H(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 hu(e,t,r,n,i,o,s,a,l){let u=l||Number.POSITIVE_INFINITY,c=0;return f;function f(w){return w===60?(e.enter(n),e.enter(i),e.enter(o),e.consume(w),e.exit(o),p):w===null||w===32||w===41||Vn(w)?r(w):(e.enter(n),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),x(w))}function p(w){return w===62?(e.enter(o),e.consume(w),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===62?(e.exit("chunkString"),e.exit(a),p(w)):w===null||w===60||H(w)?r(w):(e.consume(w),w===92?m:h)}function m(w){return w===60||w===62||w===92?(e.consume(w),h):h(w)}function x(w){return!c&&(w===null||w===41||fe(w))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(n),t(w)):c<u&&w===40?(e.consume(w),c++,x):w===41?(e.consume(w),c--,x):w===null||w===32||w===40||Vn(w)?r(w):(e.consume(w),w===92?v:x)}function v(w){return w===40||w===41||w===92?(e.consume(w),x):x(w)}}function mu(e,t,r,n,i,o){let s=this,a=0,l;return u;function u(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(o),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(o),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):H(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||H(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Q(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function du(e,t,r,n,i,o){let s;return a;function a(p){return p===34||p===39||p===40?(e.enter(n),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):r(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):(e.enter(o),u(p))}function u(p){return p===s?(e.exit(o),l(s)):p===null?r(p):H(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),Z(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||H(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 Xn(e,t){let r;return n;function n(i){return H(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):Q(i)?Z(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}var Hh={name:"definition",tokenize:yL},gL={partial:!0,tokenize:xL};function yL(e,t,r){let n=this,i;return o;function o(h){return e.enter("definition"),s(h)}function s(h){return mu.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=st(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 fe(h)?Xn(e,u)(h):u(h)}function u(h){return hu(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(gL,f,f)(h)}function f(h){return Q(h)?Z(e,p,"whitespace")(h):p(h)}function p(h){return h===null||H(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function xL(e,t,r){return n;function n(a){return fe(a)?Xn(e,i)(a):r(a)}function i(a){return du(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return Q(a)?Z(e,s,"whitespace")(a):s(a)}function s(a){return a===null||H(a)?t(a):r(a)}}var Vh={name:"hardBreakEscape",tokenize:bL};function bL(e,t,r){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return H(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}var Wh={name:"headingAtx",resolve:wL,tokenize:vL};function wL(e,t){let r=e.length-2,n=3,i,o;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&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},o={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Le(e,n,r-n+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function vL(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&n++<6?(e.consume(c),s):c===null||fe(c)?(e.exit("atxHeadingSequence"),a(c)):r(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||H(c)?(e.exit("atxHeading"),t(c)):Q(c)?Z(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||fe(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}var k1=["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"],Yh=["pre","script","style","textarea"];var Gh={concrete:!0,name:"htmlFlow",resolveTo:AL,tokenize:CL},SL={partial:!0,tokenize:EL},kL={partial:!0,tokenize:TL};function AL(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 CL(e,t,r){let n=this,i,o,s,a,l;return u;function u(y){return c(y)}function c(y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(y),f}function f(y){return y===33?(e.consume(y),p):y===47?(e.consume(y),o=!0,x):y===63?(e.consume(y),i=3,n.interrupt?t:d):Qe(y)?(e.consume(y),s=String.fromCharCode(y),v):r(y)}function p(y){return y===45?(e.consume(y),i=2,h):y===91?(e.consume(y),i=5,a=0,m):Qe(y)?(e.consume(y),i=4,n.interrupt?t:d):r(y)}function h(y){return y===45?(e.consume(y),n.interrupt?t:d):r(y)}function m(y){let se="CDATA[";return y===se.charCodeAt(a++)?(e.consume(y),a===se.length?n.interrupt?t:B:m):r(y)}function x(y){return Qe(y)?(e.consume(y),s=String.fromCharCode(y),v):r(y)}function v(y){if(y===null||y===47||y===62||fe(y)){let se=y===47,de=s.toLowerCase();return!se&&!o&&Yh.includes(de)?(i=1,n.interrupt?t(y):B(y)):k1.includes(s.toLowerCase())?(i=6,se?(e.consume(y),w):n.interrupt?t(y):B(y)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(y):o?E(y):b(y))}return y===45||Me(y)?(e.consume(y),s+=String.fromCharCode(y),v):r(y)}function w(y){return y===62?(e.consume(y),n.interrupt?t:B):r(y)}function E(y){return Q(y)?(e.consume(y),E):C(y)}function b(y){return y===47?(e.consume(y),C):y===58||y===95||Qe(y)?(e.consume(y),z):Q(y)?(e.consume(y),b):C(y)}function z(y){return y===45||y===46||y===58||y===95||Me(y)?(e.consume(y),z):q(y)}function q(y){return y===61?(e.consume(y),A):Q(y)?(e.consume(y),q):b(y)}function A(y){return y===null||y===60||y===61||y===62||y===96?r(y):y===34||y===39?(e.consume(y),l=y,R):Q(y)?(e.consume(y),A):V(y)}function R(y){return y===l?(e.consume(y),l=null,$):y===null||H(y)?r(y):(e.consume(y),R)}function V(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||fe(y)?q(y):(e.consume(y),V)}function $(y){return y===47||y===62||Q(y)?b(y):r(y)}function C(y){return y===62?(e.consume(y),pe):r(y)}function pe(y){return y===null||H(y)?B(y):Q(y)?(e.consume(y),pe):r(y)}function B(y){return y===45&&i===2?(e.consume(y),F):y===60&&i===1?(e.consume(y),W):y===62&&i===4?(e.consume(y),G):y===63&&i===3?(e.consume(y),d):y===93&&i===5?(e.consume(y),U):H(y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(SL,K,_)(y)):y===null||H(y)?(e.exit("htmlFlowData"),_(y)):(e.consume(y),B)}function _(y){return e.check(kL,I,K)(y)}function I(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),D}function D(y){return y===null||H(y)?_(y):(e.enter("htmlFlowData"),B(y))}function F(y){return y===45?(e.consume(y),d):B(y)}function W(y){return y===47?(e.consume(y),s="",M):B(y)}function M(y){if(y===62){let se=s.toLowerCase();return Yh.includes(se)?(e.consume(y),G):B(y)}return Qe(y)&&s.length<8?(e.consume(y),s+=String.fromCharCode(y),M):B(y)}function U(y){return y===93?(e.consume(y),d):B(y)}function d(y){return y===62?(e.consume(y),G):y===45&&i===2?(e.consume(y),d):B(y)}function G(y){return y===null||H(y)?(e.exit("htmlFlowData"),K(y)):(e.consume(y),G)}function K(y){return e.exit("htmlFlow"),t(y)}}function TL(e,t,r){let n=this;return i;function i(s){return H(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):r(s)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function EL(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(tr,t,r)}}var Jh={name:"htmlText",tokenize:_L};function _L(e,t,r){let n=this,i,o,s;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),l}function l(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),q):d===63?(e.consume(d),b):Qe(d)?(e.consume(d),V):r(d)}function u(d){return d===45?(e.consume(d),c):d===91?(e.consume(d),o=0,m):Qe(d)?(e.consume(d),E):r(d)}function c(d){return d===45?(e.consume(d),h):r(d)}function f(d){return d===null?r(d):d===45?(e.consume(d),p):H(d)?(s=f,W(d)):(e.consume(d),f)}function p(d){return d===45?(e.consume(d),h):f(d)}function h(d){return d===62?F(d):d===45?p(d):f(d)}function m(d){let G="CDATA[";return d===G.charCodeAt(o++)?(e.consume(d),o===G.length?x:m):r(d)}function x(d){return d===null?r(d):d===93?(e.consume(d),v):H(d)?(s=x,W(d)):(e.consume(d),x)}function v(d){return d===93?(e.consume(d),w):x(d)}function w(d){return d===62?F(d):d===93?(e.consume(d),w):x(d)}function E(d){return d===null||d===62?F(d):H(d)?(s=E,W(d)):(e.consume(d),E)}function b(d){return d===null?r(d):d===63?(e.consume(d),z):H(d)?(s=b,W(d)):(e.consume(d),b)}function z(d){return d===62?F(d):b(d)}function q(d){return Qe(d)?(e.consume(d),A):r(d)}function A(d){return d===45||Me(d)?(e.consume(d),A):R(d)}function R(d){return H(d)?(s=R,W(d)):Q(d)?(e.consume(d),R):F(d)}function V(d){return d===45||Me(d)?(e.consume(d),V):d===47||d===62||fe(d)?$(d):r(d)}function $(d){return d===47?(e.consume(d),F):d===58||d===95||Qe(d)?(e.consume(d),C):H(d)?(s=$,W(d)):Q(d)?(e.consume(d),$):F(d)}function C(d){return d===45||d===46||d===58||d===95||Me(d)?(e.consume(d),C):pe(d)}function pe(d){return d===61?(e.consume(d),B):H(d)?(s=pe,W(d)):Q(d)?(e.consume(d),pe):$(d)}function B(d){return d===null||d===60||d===61||d===62||d===96?r(d):d===34||d===39?(e.consume(d),i=d,_):H(d)?(s=B,W(d)):Q(d)?(e.consume(d),B):(e.consume(d),I)}function _(d){return d===i?(e.consume(d),i=void 0,D):d===null?r(d):H(d)?(s=_,W(d)):(e.consume(d),_)}function I(d){return d===null||d===34||d===39||d===60||d===61||d===96?r(d):d===47||d===62||fe(d)?$(d):(e.consume(d),I)}function D(d){return d===47||d===62||fe(d)?$(d):r(d)}function F(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),t):r(d)}function W(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),M}function M(d){return Q(d)?Z(e,U,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):U(d)}function U(d){return e.enter("htmlTextData"),s(d)}}var Kn={name:"labelEnd",resolveAll:DL,resolveTo:ML,tokenize:NL},IL={tokenize:FL},PL={tokenize:RL},OL={tokenize:LL};function DL(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 i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&Le(e,0,e.length,r),e}function ML(e,t){let r=e.length,n=0,i,o,s,a;for(;r--;)if(i=e[r][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);let l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+n+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=pt(a,e.slice(o+1,o+n+3)),a=pt(a,[["enter",c,t]]),a=pt(a,Xr(t.parser.constructs.insideSpan.null,e.slice(o+n+4,s-3),t)),a=pt(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=pt(a,e.slice(s+1)),a=pt(a,[["exit",l,t]]),Le(e,o,e.length,a),e}function NL(e,t,r){let n=this,i=n.events.length,o,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return a;function a(p){return o?o._inactive?f(p):(s=n.parser.defined.includes(st(n.sliceSerialize({start:o.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(IL,c,s?c:f)(p):p===91?e.attempt(PL,c,s?u:f)(p):s?c(p):f(p)}function u(p){return e.attempt(OL,c,f)(p)}function c(p){return t(p)}function f(p){return o._balanced=!0,r(p)}}function FL(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return fe(f)?Xn(e,o)(f):o(f)}function o(f){return f===41?c(f):hu(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return fe(f)?Xn(e,l)(f):c(f)}function a(f){return r(f)}function l(f){return f===34||f===39||f===40?du(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return fe(f)?Xn(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 RL(e,t,r){let n=this;return i;function i(a){return mu.call(n,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return n.parser.defined.includes(st(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(a):r(a)}function s(a){return r(a)}}function LL(e,t,r){return n;function n(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}var Qh={name:"labelStartImage",resolveAll:Kn.resolveAll,tokenize:BL};function BL(e,t,r){let n=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(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 Zh={name:"labelStartLink",resolveAll:Kn.resolveAll,tokenize:$L};function $L(e,t,r){let n=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}var Fs={name:"lineEnding",tokenize:UL};function UL(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Z(e,t,"linePrefix")}}var ei={name:"thematicBreak",tokenize:jL};function jL(e,t,r){let n=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||H(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),Q(u)?Z(e,a,"whitespace")(u):a(u))}}var at={continuation:{tokenize:VL},exit:YL,name:"list",tokenize:HL},zL={partial:!0,tokenize:GL},qL={partial:!0,tokenize:WL};function HL(e,t,r){let n=this,i=n.events[n.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[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:_s(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(ei,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 _s(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(tr,n.interrupt?r:c,e.attempt(zL,p,f))}function c(h){return n.containerState.initialBlankLine=!0,o++,p(h)}function f(h){return Q(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):r(h)}function p(h){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function VL(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(tr,i,o);function i(a){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Z(e,t,"listItemIndent",n.containerState.size+1)(a)}function o(a){return n.containerState.furtherBlankLines||!Q(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(qL,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,Z(e,e.attempt(at,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function WL(e,t,r){let n=this;return Z(e,i,"listItemIndent",n.containerState.size+1);function i(o){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(o):r(o)}}function YL(e){e.exit(this.containerState.type)}function GL(e,t,r){let n=this;return Z(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){let s=n.events[n.events.length-1];return!Q(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}var gu={name:"setextUnderline",resolveTo:JL,tokenize:QL};function JL(e,t){let r=e.length,n,i,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);let s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function QL(e,t,r){let n=this,i;return o;function o(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"),i=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),Q(u)?Z(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||H(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}var ZL={tokenize:iB,partial:!0};function Xh(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tB,continuation:{tokenize:rB},exit:nB}},text:{91:{name:"gfmFootnoteCall",tokenize:eB},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:XL,resolveTo:KL}}}}function XL(e,t,r){let n=this,i=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),s;for(;i--;){let l=n.events[i][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=st(n.sliceSerialize({start:s.end,end:n.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function KL(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 i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},o.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",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function eB(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=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(o>999||f===93&&!s||f===null||f===91||fe(f))return r(f);if(f===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(st(n.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return fe(f)||(s=!0),o++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),o++,u):u(f)}}function tB(e,t,r){let n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,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||fe(m))return r(m);if(m===93){e.exit("chunkString");let x=e.exit("gfmFootnoteDefinitionLabelString");return o=st(n.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return fe(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"),i.includes(o)||i.push(o),Z(e,h,"gfmFootnoteDefinitionWhitespace")):r(m)}function h(m){return t(m)}}function rB(e,t,r){return e.check(tr,t,e.attempt(ZL,t,r))}function nB(e){e.exit("gfmFootnoteDefinition")}function iB(e,t,r){let n=this;return Z(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){let s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):r(o)}}function Kh(e){let r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:o,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(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&&Le(p,p.length,0,Xr(h,s.slice(u+1,l),a)),Le(p,p.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),Le(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 o(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 x=Cr(u);if(m===126)return f>1?l(m):(s.consume(m),f++,h);if(f<2&&!r)return l(m);let v=s.exit("strikethroughSequenceTemporary"),w=Cr(m);return v._open=!w||w===2&&!!x,v._close=!x||x===2&&!!w,a(m)}}}var yu=class{constructor(){this.map=[]}add(t,r,n){oB(this,t,r,n)}consume(t){if(this.map.sort(function(o,s){return o[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 i=n.pop();for(;i;)t.push(...i),i=n.pop();this.map.length=0}};function oB(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}function A1(e,t){let r=!1,n=[];for(;t<e.length;){let i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function em(){return{flow:{null:{name:"table",tokenize:sB,resolveAll:aB}}}}function sB(e,t,r){let n=this,i=0,o=0,s;return a;function a(C){let pe=n.events.length-1;for(;pe>-1;){let I=n.events[pe][1].type;if(I==="lineEnding"||I==="linePrefix")pe--;else break}let B=pe>-1?n.events[pe][1].type:null,_=B==="tableHead"||B==="tableRow"?A:l;return _===A&&n.parser.lazy[n.now().line]?r(C):_(C)}function l(C){return e.enter("tableHead"),e.enter("tableRow"),u(C)}function u(C){return C===124||(s=!0,o+=1),c(C)}function c(C){return C===null?r(C):H(C)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),h):r(C):Q(C)?Z(e,c,"whitespace")(C):(o+=1,s&&(s=!1,i+=1),C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(C)))}function f(C){return C===null||C===124||fe(C)?(e.exit("data"),c(C)):(e.consume(C),C===92?p:f)}function p(C){return C===92||C===124?(e.consume(C),f):f(C)}function h(C){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(C):(e.enter("tableDelimiterRow"),s=!1,Q(C)?Z(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):m(C))}function m(C){return C===45||C===58?v(C):C===124?(s=!0,e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),x):q(C)}function x(C){return Q(C)?Z(e,v,"whitespace")(C):v(C)}function v(C){return C===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),w):C===45?(o+=1,w(C)):C===null||H(C)?z(C):q(C)}function w(C){return C===45?(e.enter("tableDelimiterFiller"),E(C)):q(C)}function E(C){return C===45?(e.consume(C),E):C===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(C),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(C))}function b(C){return Q(C)?Z(e,z,"whitespace")(C):z(C)}function z(C){return C===124?m(C):C===null||H(C)?!s||i!==o?q(C):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(C)):q(C)}function q(C){return r(C)}function A(C){return e.enter("tableRow"),R(C)}function R(C){return C===124?(e.enter("tableCellDivider"),e.consume(C),e.exit("tableCellDivider"),R):C===null||H(C)?(e.exit("tableRow"),t(C)):Q(C)?Z(e,R,"whitespace")(C):(e.enter("data"),V(C))}function V(C){return C===null||C===124||fe(C)?(e.exit("data"),R(C)):(e.consume(C),C===92?$:V)}function $(C){return C===92||C===124?(e.consume(C),V):V(C)}}function aB(e,t){let r=-1,n=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,c,f,p=new yu;for(;++r<e.length;){let h=e[r],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,l!==0&&(C1(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,o=[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]])),i=m.type==="tableDelimiterRow"?2:c?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],f=xu(p,t,o,i,void 0,f),o=[0,0,0,0]),s[2]=r)):m.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(s[0]=s[1],f=xu(p,t,o,i,void 0,f)),o=s,s=[o[1],r,0,0])):m.type==="tableHead"?(a=!0,l=r):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=r,o[1]!==0?(s[0]=s[1],f=xu(p,t,o,i,r,f)):s[1]!==0&&(f=xu(p,t,s,i,r,f)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&C1(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=A1(t.events,r))}return e}function xu(e,t,r,n,i,o){let s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",a="tableContent";r[0]!==0&&(o.end=Object.assign({},so(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));let l=so(t.events,r[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",o,t]]),r[2]!==0){let u=so(t.events,r[2]),c=so(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,x=r[3]-r[2]-1;e.add(m,x,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return i!==void 0&&(o.end=Object.assign({},so(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function C1(e,t,r,n,i){let o=[],s=so(t.events,r);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),n.end=Object.assign({},s),o.push(["exit",n,t]),e.add(r+1,0,o)}function so(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var lB={name:"tasklistCheck",tokenize:uB};function tm(){return{text:{91:lB}}}function uB(e,t,r){let n=this;return i;function i(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return fe(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 H(l)?t(l):Q(l)?e.check({tokenize:cB},t,r)(l):r(l)}}function cB(e,t,r){return Z(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function T1(e){return su([$h(),Xh(),Kh(e),em(),tm()])}var fB={};function Rs(e){let t=this,r=e||fB,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(T1(r)),o.push(Rh()),s.push(Lh(r))}var E1={tokenize:pB};function pB(e){let t=e.attempt(this.parser.constructs.contentInitial,n,i),r;return t;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Z(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(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 H(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}var I1={tokenize:hB},_1={tokenize:mB};function hB(e){let t=this,r=[],n=0,i,o,s;return a;function a(b){if(n<r.length){let z=r[n];return t.containerState=z[1],e.attempt(z[0].continuation,l,u)(b)}return u(b)}function l(b){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();let z=t.events.length,q=z,A;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){A=t.events[q][1].end;break}w(n);let R=z;for(;R<t.events.length;)t.events[R][1].end={...A},R++;return Le(t.events,q+1,0,t.events.slice(z)),t.events.length=R,u(b)}return a(b)}function u(b){if(n===r.length){if(!i)return p(b);if(i.currentConstruct&&i.currentConstruct.concrete)return m(b);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(_1,c,f)(b)}function c(b){return i&&E(),w(n),p(b)}function f(b){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,m(b)}function p(b){return t.containerState={},e.attempt(_1,h,m)(b)}function h(b){return n++,r.push([t.currentConstruct,t.containerState]),p(b)}function m(b){if(b===null){i&&E(),w(0),e.consume(b);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(b)}function x(b){if(b===null){v(e.exit("chunkFlow"),!0),w(0),e.consume(b);return}return H(b)?(e.consume(b),v(e.exit("chunkFlow")),n=0,t.interrupt=void 0,a):(e.consume(b),x)}function v(b,z){let q=t.sliceStream(b);if(z&&q.push(null),b.previous=o,o&&(o.next=b),o=b,i.defineSkip(b.start),i.write(q),t.parser.lazy[b.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<s&&(!i.events[A][1].end||i.events[A][1].end.offset>s))return;let R=t.events.length,V=R,$,C;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if($){C=t.events[V][1].end;break}$=!0}for(w(n),A=R;A<t.events.length;)t.events[A][1].end={...C},A++;Le(t.events,V+1,0,t.events.slice(R)),t.events.length=A}}function w(b){let z=r.length;for(;z-- >b;){let q=r[z];t.containerState=q[1],q[0].exit.call(t,e)}r.length=b}function E(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function mB(e,t,r){return Z(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var P1={tokenize:dB};function dB(e){let t=this,r=e.attempt(tr,n,e.attempt(this.parser.constructs.flowInitial,i,Z(e,e.attempt(this.parser.constructs.flow,i,e.attempt(qh,i)),"linePrefix")));return r;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}var O1={resolveAll:F1()},D1=N1("string"),M1=N1("text");function N1(e){return{resolveAll:F1(e==="text"?gB:void 0),tokenize:t};function t(r){let n=this,i=this.parser.constructs[e],o=r.attempt(i,s,a);return s;function s(c){return u(c)?o(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"),o(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;let f=i[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 F1(e){return t;function t(r,n){let i=-1,o;for(;++i<=r.length;)o===void 0?r[i]&&r[i][1].type==="data"&&(o=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==o+2&&(r[o][1].end=r[i-1][1].end,r.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(r,n):r}}function gB(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],i=t.sliceStream(n),o=i.length,s=-1,a=0,l;for(;o--;){let u=i[o];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){o++;break}}if(a){let u={type:r===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:n.start._bufferIndex+s,_index:n.start._index+o,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 rm={};ae(rm,{attentionMarkers:()=>AB,contentInitial:()=>xB,disable:()=>CB,document:()=>yB,flow:()=>wB,flowInitial:()=>bB,insideSpan:()=>kB,string:()=>vB,text:()=>SB});var yB={42:at,43:at,45:at,48:at,49:at,50:at,51:at,52:at,53:at,54:at,55:at,56:at,57:at,62:au},xB={91:Hh},bB={[-2]:Ms,[-1]:Ms,32:Ms},wB={35:Wh,42:ei,45:[gu,ei],60:Gh,61:gu,95:ei,96:cu,126:cu},vB={38:uu,92:lu},SB={[-5]:Fs,[-4]:Fs,[-3]:Fs,33:Qh,38:uu,42:Ds,60:[jh,Jh],91:Zh,92:[Vh,lu],93:Kn,95:Ds,96:zh},kB={null:[Ds,O1]},AB={null:[42,95]},CB={null:[]};function R1(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},i={},o=[],s=[],a=[],l=!0,u={attempt:$(R),check:$(V),consume:z,enter:q,exit:A,interrupt:$(V,{interrupt:!0})},c={code:null,containerState:{},defineSkip:w,events:[],now:v,parser:e,previous:null,sliceSerialize:m,sliceStream:x,write:h},f=t.tokenize.call(c,u),p;return t.resolveAll&&o.push(t),c;function h(_){return s=pt(s,_),E(),s[s.length-1]!==null?[]:(C(t,0),c.events=Xr(o,c.events,c),c.events)}function m(_,I){return EB(x(_),I)}function x(_){return TB(s,_)}function v(){let{_bufferIndex:_,_index:I,line:D,column:F,offset:W}=n;return{_bufferIndex:_,_index:I,line:D,column:F,offset:W}}function w(_){i[_.line]=_.column,B()}function E(){let _;for(;n._index<s.length;){let I=s[n._index];if(typeof I=="string")for(_=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===_&&n._bufferIndex<I.length;)b(I.charCodeAt(n._bufferIndex));else b(I)}}function b(_){l=void 0,p=_,f=f(_)}function z(_){H(_)?(n.line++,n.column=1,n.offset+=_===-3?2:1,B()):_!==-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=_,l=!0}function q(_,I){let D=I||{};return D.type=_,D.start=v(),c.events.push(["enter",D,c]),a.push(D),D}function A(_){let I=a.pop();return I.end=v(),c.events.push(["exit",I,c]),I}function R(_,I){C(_,I.from)}function V(_,I){I.restore()}function $(_,I){return D;function D(F,W,M){let U,d,G,K;return Array.isArray(F)?se(F):"tokenize"in F?se([F]):y(F);function y(g){return S;function S(T){let O=T!==null&&g[T],Y=T!==null&&g.null,ye=[...Array.isArray(O)?O:O?[O]:[],...Array.isArray(Y)?Y:Y?[Y]:[]];return se(ye)(T)}}function se(g){return U=g,d=0,g.length===0?M:de(g[d])}function de(g){return S;function S(T){return K=pe(),G=g,g.partial||(c.currentConstruct=g),g.name&&c.parser.constructs.disable.null.includes(g.name)?k(T):g.tokenize.call(I?Object.assign(Object.create(c),I):c,u,Ie,k)(T)}}function Ie(g){return l=!0,_(G,K),W}function k(g){return l=!0,K.restore(),++d<U.length?de(U[d]):M}}}function C(_,I){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&Le(c.events,I,c.events.length-I,_.resolve(c.events.slice(I),c)),_.resolveTo&&(c.events=_.resolveTo(c.events,c))}function pe(){let _=v(),I=c.previous,D=c.currentConstruct,F=c.events.length,W=Array.from(a);return{from:F,restore:M};function M(){n=_,c.previous=I,c.currentConstruct=D,c.events.length=F,a=W,B()}}function B(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function TB(e,t){let r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex,s;if(r===i)s=[e[r].slice(n,o)];else{if(s=e.slice(r,i),n>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(n):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function EB(e,t){let r=-1,n=[],i;for(;++r<e.length;){let o=e[r],s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
81
+ `,now:{line:1,column:1},lineShift:0});return o&&o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
82
+ `),o;function i(s){return n.stack.push(s),a;function a(){n.stack.pop()}}}function jU(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function WU(e){let t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function qU(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function YU(e,t){return XD(e,this,t)}function VU(e,t){return ZD(e,this,t)}function GU(e,t){return tA(this,e,t)}function rx(){return{enter:{table:QU,tableData:nA,tableHeader:nA,tableRow:XU},exit:{codeText:ZU,table:JU,tableData:tx,tableHeader:tx,tableRow:tx}}}function QU(e){let t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function JU(e){this.exit(e),this.data.inTable=void 0}function XU(e){this.enter({type:"tableRow",children:[]},e)}function tx(e){this.exit(e)}function nA(e){this.enter({type:"tableCell",children:[]},e)}function ZU(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,KU));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function KU(e,t){return t==="|"?t:e}function nx(e){let t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,i=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
83
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:a}};function s(m,h,d,g){return u(c(m,d,g),m.align)}function a(m,h,d,g){let y=f(m,d,g),S=u([y]);return S.slice(0,S.indexOf(`
84
+ `))}function l(m,h,d,g){let y=d.enter("tableCell"),S=d.enter("phrasing"),k=d.containerPhrasing(m,{...g,before:i,after:i});return S(),y(),k}function u(m,h){return SD(m,{align:h,alignDelimiters:n,padding:r,stringLength:o})}function c(m,h,d){let g=m.children,y=-1,S=[],k=h.enter("table");for(;++y<g.length;)S[y]=f(g[y],h,d);return k(),S}function f(m,h,d){let g=m.children,y=-1,S=[],k=h.enter("tableRow");for(;++y<g.length;)S[y]=l(g[y],m,h,d);return k(),S}function p(m,h,d){let g=Ei.inlineCode(m,h,d);return d.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function ox(){return{exit:{taskListCheckValueChecked:oA,taskListCheckValueUnchecked:oA,paragraph:e6}}}function ix(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:t6}}}function oA(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function e6(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 t6(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=Ei.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 sx(){return[Lg(),Bg(),zg(),rx(),ox()]}function ax(e){return{extensions:[Rg(),$g(e),Hg(),nx(e),ix()]}}function ot(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 pt(e,t){return e.length>0?(ot(e,e.length,0,t),e):t}var lx={}.hasOwnProperty;function Mp(e){let t={},r=-1;for(;++r<e.length;)r6(t,e[r]);return t}function r6(e,t){let r;for(r in t){let o=(lx.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r],s;if(i)for(s in i){lx.call(o,s)||(o[s]=[]);let a=i[s];n6(o[s],Array.isArray(a)?a:a?[a]:[])}}}function n6(e,t){let r=-1,n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);ot(e,0,0,n)}function _p(e){let t={},r=-1;for(;++r<e.length;)o6(t,e[r]);return t}function o6(e,t){let r;for(r in t){let o=(lx.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r],s;if(i)for(s in i)o[s]=i[s]}}var i6={tokenize:c6,partial:!0},iA={tokenize:f6,partial:!0},sA={tokenize:p6,partial:!0},aA={tokenize:m6,partial:!0},s6={tokenize:h6,partial:!0},lA={name:"wwwAutolink",tokenize:l6,previous:cA},uA={name:"protocolAutolink",tokenize:u6,previous:fA},Nn={name:"emailAutolink",tokenize:a6,previous:pA},mn={};function fx(){return{text:mn}}for(var Di=48;Di<123;)mn[Di]=Nn,Di++,Di===58?Di=65:Di===91&&(Di=97);mn[43]=Nn,mn[45]=Nn,mn[46]=Nn,mn[95]=Nn,mn[72]=[Nn,uA],mn[104]=[Nn,uA],mn[87]=[Nn,lA],mn[119]=[Nn,lA];function a6(e,t,r){let n=this,o,i;return s;function s(f){return!ux(f)||!pA.call(n,n.previous)||cx(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return ux(f)?(e.consume(f),a):f===64?(e.consume(f),l):r(f)}function l(f){return f===46?e.check(s6,c,u)(f):f===45||f===95||et(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&&xt(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function l6(e,t,r){let n=this;return o;function o(s){return s!==87&&s!==119||!cA.call(n,n.previous)||cx(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(i6,e.attempt(iA,e.attempt(sA,i),r),r)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function u6(e,t,r){let n=this,o="",i=!1;return s;function s(f){return(f===72||f===104)&&fA.call(n,n.previous)&&!cx(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(f),e.consume(f),a):r(f)}function a(f){if(xt(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||vi(f)||be(f)||pn(f)||Si(f)?r(f):e.attempt(iA,e.attempt(sA,c),r)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function c6(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 f6(e,t,r){let n,o,i;return s;function s(u){return u===46||u===95?e.check(aA,l,a)(u):u===null||be(u)||pn(u)||u!==45&&Si(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 p6(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(aA,t,i)(s):s===null||be(s)||pn(s)?t(s):(e.consume(s),o)}function i(s){return s===41&&n++,e.consume(s),o}}function m6(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)||pn(a)?t(a):r(a)}function o(a){return a===null||a===40||a===91||be(a)||pn(a)?t(a):n(a)}function i(a){return xt(a)?s(a):r(a)}function s(a){return a===59?(e.consume(a),n):xt(a)?(e.consume(a),s):r(a)}}function h6(e,t,r){return n;function n(i){return e.consume(i),o}function o(i){return et(i)?r(i):t(i)}}function cA(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||be(e)}function fA(e){return!xt(e)}function pA(e){return!(e===47||ux(e))}function ux(e){return e===43||e===45||e===46||e===95||et(e)}function cx(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 d6={'"':"quot","&":"amp","<":"lt",">":"gt"};function Op(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+d6[r]+";"}}function hn(e,t){let r=Op(fr(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 fr(e){let t=[],r=-1,n=0,o=0;for(;++r<e.length;){let i=e.charCodeAt(r),s="";if(i===37&&et(e.charCodeAt(r+1))&&et(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 mx(){return{exit:{literalAutolinkEmail:x6,literalAutolinkHttp:y6,literalAutolinkWww:g6}}}function g6(e){px.call(this,e,"http://")}function x6(e){px.call(this,e,"mailto:")}function y6(e){px.call(this,e)}function px(e,t){let r=this.sliceSerialize(e);this.tag('<a href="'+hn((t||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}function bo(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 Il={name:"attention",resolveAll:b6,tokenize:w6};function b6(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};mA(f,-l),mA(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=pt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=pt(u,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",i,t]]),u=pt(u,bo(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=pt(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=pt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,ot(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 w6(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 mA(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var hx={name:"autolink",tokenize:v6};function v6(e,t,r){let n=0;return o;function o(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(m){return xt(m)?(e.consume(m),s):m===64?r(m):u(m)}function s(m){return m===43||m===45||m===46||et(m)?(n=1,a(m)):u(m)}function a(m){return m===58?(e.consume(m),n=0,l):(m===43||m===45||m===46||et(m))&&n++<32?(e.consume(m),a):(n=0,u(m))}function l(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||vi(m)?r(m):(e.consume(m),l)}function u(m){return m===64?(e.consume(m),c):fD(m)?(e.consume(m),u):r(m)}function c(m){return et(m)?f(m):r(m)}function f(m){return m===46?(e.consume(m),n=0,c):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):p(m)}function p(m){if((m===45||et(m))&&n++<63){let h=m===45?p:f;return e.consume(m),h}return r(m)}}function se(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 dn={partial:!0,tokenize:S6};function S6(e,t,r){return n;function n(i){return re(i)?se(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||W(i)?t(i):r(i)}}var Np={continuation:{tokenize:T6},exit:E6,name:"blockQuote",tokenize:k6};function k6(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 T6(e,t,r){let n=this;return o;function o(s){return re(s)?se(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(Np,t,r)(s)}}function E6(e){e.exit("blockQuote")}var Pp={name:"characterEscape",tokenize:C6};function C6(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 mD(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}var Fp={name:"characterReference",tokenize:D6};function D6(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=et,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=pD,c):(e.enter("characterReferenceValue"),i=7,s=El,c(f))}function c(f){if(f===59&&o){let p=e.exit("characterReferenceValue");return s===et&&!yo(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 hA={partial:!0,tokenize:I6},Lp={concrete:!0,name:"codeFenced",tokenize:A6};function A6(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)?se(e,f,"whitespace")(T):f(T))}function f(T){return T===null||W(T)?(e.exit("codeFencedFence"),n.interrupt?t(T):e.check(hA,d,z)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(T))}function p(T){return T===null||W(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(T)):re(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),se(e,m,"whitespace")(T)):T===96&&T===a?r(T):(e.consume(T),p)}function m(T){return T===null||W(T)?f(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(T))}function h(T){return T===null||W(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(T)):T===96&&T===a?r(T):(e.consume(T),h)}function d(T){return e.attempt(o,z,g)(T)}function g(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),y}function y(T){return i>0&&re(T)?se(e,S,"linePrefix",i+1)(T):S(T)}function S(T){return T===null||W(T)?e.check(hA,d,z)(T):(e.enter("codeFlowValue"),k(T))}function k(T){return T===null||W(T)?(e.exit("codeFlowValue"),S(T)):(e.consume(T),k)}function z(T){return e.exit("codeFenced"),t(T)}function R(T,$,te){let Y=0;return A;function A(F){return T.enter("lineEnding"),T.consume(F),T.exit("lineEnding"),Pe}function Pe(F){return T.enter("codeFencedFence"),re(F)?se(T,j,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):j(F)}function j(F){return F===a?(T.enter("codeFencedFenceSequence"),I(F)):te(F)}function I(F){return F===a?(Y++,T.consume(F),I):Y>=s?(T.exit("codeFencedFenceSequence"),re(F)?se(T,_,"whitespace")(F):_(F)):te(F)}function _(F){return F===null||W(F)?(T.exit("codeFencedFence"),$(F)):te(F)}}}function I6(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 Ml={name:"codeIndented",tokenize:_6},M6={partial:!0,tokenize:O6};function _6(e,t,r){let n=this;return o;function o(u){return e.enter("codeIndented"),se(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):W(u)?e.attempt(M6,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||W(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function O6(e,t,r){let n=this;return o;function o(s){return n.parser.lazy[n.now().line]?r(s):W(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):se(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):W(s)?o(s):r(s)}}var dx={name:"codeText",previous:P6,resolve:N6,tokenize:F6};function N6(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 P6(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function F6(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)):W(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||W(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 Ol=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&&_l(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),_l(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),_l(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);_l(this.right,r.reverse())}else{let r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);_l(this.left,r.reverse())}}};function _l(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 Rp(e){let t={},r=-1,n,o,i,s,a,l,u,c=new Ol(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,L6(c,r)),r=t[r],u=!0);else if(n[1]._container){for(i=r,o=void 0;i--;)if(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);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;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 ot(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function L6(e,t){let r=e.get(t)[1],n=e.get(t)[2],o=t-1,i=[],s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let a=s.events,l=[],u={},c,f,p=-1,m=r,h=0,d=0,g=[d];for(;m;){for(;e.get(++o)[1]!==m;);i.push(o),m._tokenizer||(c=n.sliceStream(m),m.next||c.push(null),f&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=m,m=m.next}for(m=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),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.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[h+l[p][0]]=h+l[p][1],h+=l[p][1]-l[p][0]-1;return u}var gx={resolve:B6,tokenize:$6},R6={partial:!0,tokenize:z6};function B6(e){return Rp(e),e}function $6(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):W(a)?e.check(R6,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 z6(e,t,r){let n=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),se(e,i,"linePrefix")}function i(s){if(s===null||W(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 Bp(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||vi(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"}),m(y))}function m(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||W(y)?r(y):(e.consume(y),y===92?h:m)}function h(y){return y===60||y===62||y===92?(e.consume(y),m):m(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||vi(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 $p(e,t,r,n,o,i){let s=this,a=0,l;return u;function u(m){return e.enter(n),e.enter(o),e.consume(m),e.exit(o),e.enter(i),c}function c(m){return a>999||m===null||m===91||m===93&&!l||m===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?r(m):m===93?(e.exit(i),e.enter(o),e.consume(m),e.exit(o),e.exit(n),t):W(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===null||m===91||m===93||W(m)||a++>999?(e.exit("chunkString"),c(m)):(e.consume(m),l||(l=!re(m)),m===92?p:f)}function p(m){return m===91||m===92||m===93?(e.consume(m),a++,f):f(m)}}function zp(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):W(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),se(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||W(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 Ai(e,t){let r;return n;function n(o){return W(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n):re(o)?se(e,n,r?"linePrefix":"lineSuffix")(o):t(o)}}var xx={name:"definition",tokenize:U6},H6={partial:!0,tokenize:j6};function U6(e,t,r){let n=this,o;return i;function i(m){return e.enter("definition"),s(m)}function s(m){return $p.call(n,e,a,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function a(m){return o=tt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):r(m)}function l(m){return be(m)?Ai(e,u)(m):u(m)}function u(m){return Bp(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function c(m){return e.attempt(H6,f,f)(m)}function f(m){return re(m)?se(e,p,"whitespace")(m):p(m)}function p(m){return m===null||W(m)?(e.exit("definition"),n.parser.defined.push(o),t(m)):r(m)}}function j6(e,t,r){return n;function n(a){return be(a)?Ai(e,o)(a):r(a)}function o(a){return zp(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return re(a)?se(e,s,"whitespace")(a):s(a)}function s(a){return a===null||W(a)?t(a):r(a)}}var yx={name:"hardBreakEscape",tokenize:W6};function W6(e,t,r){return n;function n(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return W(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}var bx={name:"headingAtx",resolve:q6,tokenize:Y6};function q6(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"},ot(e,n,r-n+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function Y6(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||W(c)?(e.exit("atxHeading"),t(c)):re(c)?se(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 dA=["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"],wx=["pre","script","style","textarea"];var vx={concrete:!0,name:"htmlFlow",resolveTo:Q6,tokenize:J6},V6={partial:!0,tokenize:Z6},G6={partial:!0,tokenize:X6};function Q6(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 J6(e,t,r){let n=this,o,i,s,a,l;return u;function u(v){return c(v)}function c(v){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(v),f}function f(v){return v===33?(e.consume(v),p):v===47?(e.consume(v),i=!0,d):v===63?(e.consume(v),o=3,n.interrupt?t:b):xt(v)?(e.consume(v),s=String.fromCharCode(v),g):r(v)}function p(v){return v===45?(e.consume(v),o=2,m):v===91?(e.consume(v),o=5,a=0,h):xt(v)?(e.consume(v),o=4,n.interrupt?t:b):r(v)}function m(v){return v===45?(e.consume(v),n.interrupt?t:b):r(v)}function h(v){let qe="CDATA[";return v===qe.charCodeAt(a++)?(e.consume(v),a===qe.length?n.interrupt?t:j:h):r(v)}function d(v){return xt(v)?(e.consume(v),s=String.fromCharCode(v),g):r(v)}function g(v){if(v===null||v===47||v===62||be(v)){let qe=v===47,at=s.toLowerCase();return!qe&&!i&&wx.includes(at)?(o=1,n.interrupt?t(v):j(v)):dA.includes(s.toLowerCase())?(o=6,qe?(e.consume(v),y):n.interrupt?t(v):j(v)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(v):i?S(v):k(v))}return v===45||et(v)?(e.consume(v),s+=String.fromCharCode(v),g):r(v)}function y(v){return v===62?(e.consume(v),n.interrupt?t:j):r(v)}function S(v){return re(v)?(e.consume(v),S):A(v)}function k(v){return v===47?(e.consume(v),A):v===58||v===95||xt(v)?(e.consume(v),z):re(v)?(e.consume(v),k):A(v)}function z(v){return v===45||v===46||v===58||v===95||et(v)?(e.consume(v),z):R(v)}function R(v){return v===61?(e.consume(v),T):re(v)?(e.consume(v),R):k(v)}function T(v){return v===null||v===60||v===61||v===62||v===96?r(v):v===34||v===39?(e.consume(v),l=v,$):re(v)?(e.consume(v),T):te(v)}function $(v){return v===l?(e.consume(v),l=null,Y):v===null||W(v)?r(v):(e.consume(v),$)}function te(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||be(v)?R(v):(e.consume(v),te)}function Y(v){return v===47||v===62||re(v)?k(v):r(v)}function A(v){return v===62?(e.consume(v),Pe):r(v)}function Pe(v){return v===null||W(v)?j(v):re(v)?(e.consume(v),Pe):r(v)}function j(v){return v===45&&o===2?(e.consume(v),B):v===60&&o===1?(e.consume(v),V):v===62&&o===4?(e.consume(v),Se):v===63&&o===3?(e.consume(v),b):v===93&&o===5?(e.consume(v),he):W(v)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(V6,De,I)(v)):v===null||W(v)?(e.exit("htmlFlowData"),I(v)):(e.consume(v),j)}function I(v){return e.check(G6,_,De)(v)}function _(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),F}function F(v){return v===null||W(v)?I(v):(e.enter("htmlFlowData"),j(v))}function B(v){return v===45?(e.consume(v),b):j(v)}function V(v){return v===47?(e.consume(v),s="",K):j(v)}function K(v){if(v===62){let qe=s.toLowerCase();return wx.includes(qe)?(e.consume(v),Se):j(v)}return xt(v)&&s.length<8?(e.consume(v),s+=String.fromCharCode(v),K):j(v)}function he(v){return v===93?(e.consume(v),b):j(v)}function b(v){return v===62?(e.consume(v),Se):v===45&&o===2?(e.consume(v),b):j(v)}function Se(v){return v===null||W(v)?(e.exit("htmlFlowData"),De(v)):(e.consume(v),Se)}function De(v){return e.exit("htmlFlow"),t(v)}}function X6(e,t,r){let n=this;return o;function o(s){return W(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 Z6(e,t,r){return n;function n(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(dn,t,r)}}var Sx={name:"htmlText",tokenize:K6};function K6(e,t,r){let n=this,o,i,s;return a;function a(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),l}function l(b){return b===33?(e.consume(b),u):b===47?(e.consume(b),R):b===63?(e.consume(b),k):xt(b)?(e.consume(b),te):r(b)}function u(b){return b===45?(e.consume(b),c):b===91?(e.consume(b),i=0,h):xt(b)?(e.consume(b),S):r(b)}function c(b){return b===45?(e.consume(b),m):r(b)}function f(b){return b===null?r(b):b===45?(e.consume(b),p):W(b)?(s=f,V(b)):(e.consume(b),f)}function p(b){return b===45?(e.consume(b),m):f(b)}function m(b){return b===62?B(b):b===45?p(b):f(b)}function h(b){let Se="CDATA[";return b===Se.charCodeAt(i++)?(e.consume(b),i===Se.length?d:h):r(b)}function d(b){return b===null?r(b):b===93?(e.consume(b),g):W(b)?(s=d,V(b)):(e.consume(b),d)}function g(b){return b===93?(e.consume(b),y):d(b)}function y(b){return b===62?B(b):b===93?(e.consume(b),y):d(b)}function S(b){return b===null||b===62?B(b):W(b)?(s=S,V(b)):(e.consume(b),S)}function k(b){return b===null?r(b):b===63?(e.consume(b),z):W(b)?(s=k,V(b)):(e.consume(b),k)}function z(b){return b===62?B(b):k(b)}function R(b){return xt(b)?(e.consume(b),T):r(b)}function T(b){return b===45||et(b)?(e.consume(b),T):$(b)}function $(b){return W(b)?(s=$,V(b)):re(b)?(e.consume(b),$):B(b)}function te(b){return b===45||et(b)?(e.consume(b),te):b===47||b===62||be(b)?Y(b):r(b)}function Y(b){return b===47?(e.consume(b),B):b===58||b===95||xt(b)?(e.consume(b),A):W(b)?(s=Y,V(b)):re(b)?(e.consume(b),Y):B(b)}function A(b){return b===45||b===46||b===58||b===95||et(b)?(e.consume(b),A):Pe(b)}function Pe(b){return b===61?(e.consume(b),j):W(b)?(s=Pe,V(b)):re(b)?(e.consume(b),Pe):Y(b)}function j(b){return b===null||b===60||b===61||b===62||b===96?r(b):b===34||b===39?(e.consume(b),o=b,I):W(b)?(s=j,V(b)):re(b)?(e.consume(b),j):(e.consume(b),_)}function I(b){return b===o?(e.consume(b),o=void 0,F):b===null?r(b):W(b)?(s=I,V(b)):(e.consume(b),I)}function _(b){return b===null||b===34||b===39||b===60||b===61||b===96?r(b):b===47||b===62||be(b)?Y(b):(e.consume(b),_)}function F(b){return b===47||b===62||be(b)?Y(b):r(b)}function B(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):r(b)}function V(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),K}function K(b){return re(b)?se(e,he,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):he(b)}function he(b){return e.enter("htmlTextData"),s(b)}}var Ii={name:"labelEnd",resolveAll:nj,resolveTo:oj,tokenize:ij},ej={tokenize:sj},tj={tokenize:aj},rj={tokenize:lj};function nj(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&&ot(e,0,e.length,r),e}function oj(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=pt(a,e.slice(i+1,i+n+3)),a=pt(a,[["enter",c,t]]),a=pt(a,bo(t.parser.constructs.insideSpan.null,e.slice(i+n+4,s-3),t)),a=pt(a,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),a=pt(a,e.slice(s+1)),a=pt(a,[["exit",l,t]]),ot(e,i,e.length,a),e}function ij(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(tt(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(ej,c,s?c:f)(p):p===91?e.attempt(tj,c,s?u:f)(p):s?c(p):f(p)}function u(p){return e.attempt(rj,c,f)(p)}function c(p){return t(p)}function f(p){return i._balanced=!0,r(p)}}function sj(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)?Ai(e,i)(f):i(f)}function i(f){return f===41?c(f):Bp(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return be(f)?Ai(e,l)(f):c(f)}function a(f){return r(f)}function l(f){return f===34||f===39||f===40?zp(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return be(f)?Ai(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 aj(e,t,r){let n=this;return o;function o(a){return $p.call(n,e,i,s,"reference","referenceMarker","referenceString")(a)}function i(a){return n.parser.defined.includes(tt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(a):r(a)}function s(a){return r(a)}}function lj(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 kx={name:"labelStartImage",resolveAll:Ii.resolveAll,tokenize:uj};function uj(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 Tx={name:"labelStartLink",resolveAll:Ii.resolveAll,tokenize:cj};function cj(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 Nl={name:"lineEnding",tokenize:fj};function fj(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),se(e,t,"linePrefix")}}var Mi={name:"thematicBreak",tokenize:pj};function pj(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||W(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===o?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),re(u)?se(e,a,"whitespace")(u):a(u))}}var Rt={continuation:{tokenize:gj},exit:yj,name:"list",tokenize:dj},mj={partial:!0,tokenize:bj},hj={partial:!0,tokenize:xj};function dj(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(m){let h=n.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!n.containerState.marker||m===n.containerState.marker:El(m)){if(n.containerState.type||(n.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Mi,r,u)(m):u(m);if(!n.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return r(m)}function l(m){return El(m)&&++s<10?(e.consume(m),l):(!n.interrupt||s<2)&&(n.containerState.marker?m===n.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):r(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||m,e.check(dn,n.interrupt?r:c,e.attempt(mj,p,f))}function c(m){return n.containerState.initialBlankLine=!0,i++,p(m)}function f(m){return re(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),p):r(m)}function p(m){return n.containerState.size=i+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function gj(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(dn,o,i);function o(a){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,se(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(hj,t,s)(a))}function s(a){return n.containerState._closeFlow=!0,n.interrupt=void 0,se(e,e.attempt(Rt,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function xj(e,t,r){let n=this;return se(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 yj(e){e.exit(this.containerState.type)}function bj(e,t,r){let n=this;return se(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 Hp={name:"setextUnderline",resolveTo:wj,tokenize:vj};function wj(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[n][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 vj(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)?se(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||W(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}var Sj={tokenize:Ij,partial:!0};function Ex(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Cj,continuation:{tokenize:Dj},exit:Aj}},text:{91:{name:"gfmFootnoteCall",tokenize:Ej},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:kj,resolveTo:Tj}}}}function kj(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=tt(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 Tj(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 Ej(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(tt(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 Cj(e,t,r){let n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),i,s=0,a;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(h)}function c(h){if(s>999||h===93&&!a||h===null||h===91||be(h))return r(h);if(h===93){e.exit("chunkString");let d=e.exit("gfmFootnoteDefinitionLabelString");return i=tt(n.sliceSerialize(d)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return be(h)||(a=!0),s++,e.consume(h),h===92?f:c}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,c):c(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),o.includes(i)||o.push(i),se(e,m,"gfmFootnoteDefinitionWhitespace")):r(h)}function m(h){return t(h)}}function Dj(e,t,r){return e.check(dn,t,e.attempt(Sj,t,r))}function Aj(e){e.exit("gfmFootnoteDefinition")}function Ij(e,t,r){let n=this;return se(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 Mj={}.hasOwnProperty,_j={};function gA(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Cx(e){let t=e||_j,r=t.label||"Footnotes",n=t.labelTagName||"h2",o=t.labelAttributes===null||t.labelAttributes===void 0?'class="sr-only"':t.labelAttributes,i=t.backLabel||gA,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={}),Mj.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(tt(this.sliceSerialize(a))),this.resume(),this.buffer()},gfmFootnoteCallString(a){let l=this.getData("gfmFootnoteCallOrder"),u=this.getData("gfmFootnoteCallCounts"),c=tt(this.sliceSerialize(a)),f;this.resume(),l||this.setData("gfmFootnoteCallOrder",l=[]),u||this.setData("gfmFootnoteCallCounts",u={});let p=l.indexOf(c),m=hn(c.toLowerCase());p===-1?(l.push(c),u[c]=1,f=l.length):(u[c]++,f=p+1);let h=u[c];this.tag('<sup><a href="#'+s+"fn-"+m+'" id="'+s+"fnref-"+m+(h>1?"-"+h:"")+'" 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=hn(f.toLowerCase()),m=0,h=[];for(;++m<=l[f];)h.push('<a href="#'+s+"fnref-"+p+(m>1?"-"+m:"")+'" data-footnote-backref="" aria-label="'+this.encode(typeof i=="string"?i:i(c,m))+'" class="data-footnote-backref">\u21A9'+(m>1?"<sup>"+m+"</sup>":"")+"</a>");let d=h.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 Dx(){return{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}}}function Ax(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]],m=a.parser.constructs.insideSpan.null;m&&ot(p,p.length,0,bo(m,s.slice(u+1,l),a)),ot(p,p.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",c,a]]),ot(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(h){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(h):(s.enter("strikethroughSequenceTemporary"),m(h))}function m(h){let d=On(u);if(h===126)return f>1?l(h):(s.consume(h),f++,m);if(f<2&&!r)return l(h);let g=s.exit("strikethroughSequenceTemporary"),y=On(h);return g._open=!y||y===2&&!!d,g._close=!d||d===2&&!!y,a(h)}}}var Ix={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function Mx(){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=Ix[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=Ix[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,Oj)),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"+Ix[e[t]]+"></td>"),t++;this.setData("tableColumn",t),this.lineEndingIfNeeded(),this.tag("</tr>")}}}}function Oj(e,t){return t==="|"?t:e}var Up=class{constructor(){this.map=[]}add(t,r,n){Nj(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.slice()),t.length=0;let o=n.pop();for(;o;){for(let i of o)t.push(i);o=n.pop()}this.map.length=0}};function Nj(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 xA(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 _x(){return{flow:{null:{name:"table",tokenize:Pj,resolveAll:Fj}}}}function Pj(e,t,r){let n=this,o=0,i=0,s;return a;function a(A){let Pe=n.events.length-1;for(;Pe>-1;){let _=n.events[Pe][1].type;if(_==="lineEnding"||_==="linePrefix")Pe--;else break}let j=Pe>-1?n.events[Pe][1].type:null,I=j==="tableHead"||j==="tableRow"?T:l;return I===T&&n.parser.lazy[n.now().line]?r(A):I(A)}function l(A){return e.enter("tableHead"),e.enter("tableRow"),u(A)}function u(A){return A===124||(s=!0,i+=1),c(A)}function c(A){return A===null?r(A):W(A)?i>1?(i=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),m):r(A):re(A)?se(e,c,"whitespace")(A):(i+=1,s&&(s=!1,o+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(A)))}function f(A){return A===null||A===124||be(A)?(e.exit("data"),c(A)):(e.consume(A),A===92?p:f)}function p(A){return A===92||A===124?(e.consume(A),f):f(A)}function m(A){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(A):(e.enter("tableDelimiterRow"),s=!1,re(A)?se(e,h,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):h(A))}function h(A){return A===45||A===58?g(A):A===124?(s=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),d):R(A)}function d(A){return re(A)?se(e,g,"whitespace")(A):g(A)}function g(A){return A===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),y):A===45?(i+=1,y(A)):A===null||W(A)?z(A):R(A)}function y(A){return A===45?(e.enter("tableDelimiterFiller"),S(A)):R(A)}function S(A){return A===45?(e.consume(A),S):A===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(A))}function k(A){return re(A)?se(e,z,"whitespace")(A):z(A)}function z(A){return A===124?h(A):A===null||W(A)?!s||o!==i?R(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):R(A)}function R(A){return r(A)}function T(A){return e.enter("tableRow"),$(A)}function $(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),$):A===null||W(A)?(e.exit("tableRow"),t(A)):re(A)?se(e,$,"whitespace")(A):(e.enter("data"),te(A))}function te(A){return A===null||A===124||be(A)?(e.exit("data"),$(A)):(e.consume(A),A===92?Y:te)}function Y(A){return A===92||A===124?(e.consume(A),te):te(A)}}function Fj(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 Up;for(;++r<e.length;){let m=e[r],h=m[1];m[0]==="enter"?h.type==="tableHead"?(a=!1,l!==0&&(yA(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(r,0,[["enter",u,t]])):h.type==="tableRow"||h.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({},h.start),end:Object.assign({},h.end)},p.add(r,0,[["enter",c,t]])),o=h.type==="tableDelimiterRow"?2:c?3:1):o&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],f=jp(p,t,i,o,void 0,f),i=[0,0,0,0]),s[2]=r)):h.type==="tableCellDivider"&&(n?n=!1:(i[1]!==0&&(s[0]=s[1],f=jp(p,t,i,o,void 0,f)),i=s,s=[i[1],r,0,0])):h.type==="tableHead"?(a=!0,l=r):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=r,i[1]!==0?(s[0]=s[1],f=jp(p,t,i,o,r,f)):s[1]!==0&&(f=jp(p,t,s,o,r,f)),o=0):o&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&yA(p,t,l,u,c),p.consume(t.events),r=-1;++r<t.events.length;){let m=t.events[r];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=xA(t.events,r))}return e}function jp(e,t,r,n,o,i){let s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",a="tableContent";r[0]!==0&&(i.end=Object.assign({},Zs(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));let l=Zs(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=Zs(t.events,r[2]),c=Zs(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]],m=t.events[r[3]];if(p[1].end=Object.assign({},m[1].end),p[1].type="chunkText",p[1].contentType="text",r[3]>r[2]+1){let h=r[2]+1,d=r[3]-r[2]-1;e.add(h,d,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return o!==void 0&&(i.end=Object.assign({},Zs(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function yA(e,t,r,n,o){let i=[],s=Zs(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 Zs(e,t){let r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}var bA=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,Lj=new RegExp("^"+bA.source,"i");function Ox(){return{exit:{htmlFlowData(e){wA.call(this,e,bA)},htmlTextData(e){wA.call(this,e,Lj)}}}}function wA(e,t){let r=this.sliceSerialize(e);this.options.allowDangerousHtml&&(r=r.replace(t,"&lt;$1$2")),this.raw(this.encode(r))}function Nx(){return{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}var Rj={name:"tasklistCheck",tokenize:Bj};function Px(){return{text:{91:Rj}}}function Bj(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 W(l)?t(l):re(l)?e.check({tokenize:$j},t,r)(l):r(l)}}function $j(e,t,r){return se(e,n,"whitespace");function n(o){return o===null?r(o):t(o)}}function vA(e){return Mp([fx(),Ex(),Ax(e),_x(),Px()])}function jLe(e){return _p([mx(),Cx(e),Dx(),Mx(),Ox(),Nx()])}var zj={};function Ks(e){let t=this,r=e||zj,n=t.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(vA(r)),i.push(sx()),s.push(ax(r))}var SA={}.hasOwnProperty,kA=/^(https?|ircs?|mailto|xmpp)$/i,Hj=/^https?$/i;function Fx(e){let t=e||{},r=!0,n={},o=[[]],i=[],s=[],l=_p([{enter:{blockQuote:F,codeFenced:he,codeFencedFenceInfo:g,codeFencedFenceMeta:g,codeIndented:De,codeText:Ht,content:qr,definition:Le,definitionDestinationString:Xt,definitionLabelString:g,definitionTitleString:g,emphasis:Ro,htmlFlow:sr,htmlText:gr,image:qe,label:g,link:at,listItemMarker:Pe,listItemValue:A,listOrdered:te,listUnordered:Y,paragraph:V,reference:g,resource:C,resourceDestinationString:D,resourceTitleString:g,setextHeading:dr,strong:Bo},exit:{atxHeading:Je,atxHeadingSequence:ir,autolinkEmail:bN,autolinkProtocol:yN,blockQuote:B,characterEscapeValue:H,characterReferenceMarkerHexadecimal:X0,characterReferenceMarkerNumeric:X0,characterReferenceValue:xN,codeFenced:v,codeFencedFence:Se,codeFencedFenceInfo:b,codeFencedFenceMeta:$,codeFlowValue:de,codeIndented:v,codeText:Un,codeTextData:H,data:H,definition:Ar,definitionDestinationString:yt,definitionLabelString:Ae,definitionTitleString:zt,emphasis:Ir,hardBreakEscape:Ie,hardBreakTrailing:Ie,htmlFlow:Vr,htmlFlowData:H,htmlText:Vr,htmlTextData:H,image:$e,label:E,labelText:or,lineEnding:ue,link:$e,listOrdered:j,listUnordered:I,paragraph:K,reference:$,referenceString:w,resource:$,resourceDestinationString:N,resourceTitleString:oe,setextHeading:M,setextHeadingLineSequence:Yr,setextHeadingText:Zt,strong:dN,thematicBreak:gN}},...t.htmlExtensions||[]]),u={definitions:n,tightStack:s},c={buffer:g,encode:T,getData:d,lineEndingIfNeeded:R,options:t,raw:k,resume:y,setData:h,tag:S},f=t.defaultLineEnding;return p;function p(U){let ie=-1,Dt=0,Mr=[],Gr=[],wn=[];for(;++ie<U.length;)!f&&(U[ie][1].type==="lineEnding"||U[ie][1].type==="lineEndingBlank")&&(f=U[ie][2].sliceSerialize(U[ie][1])),(U[ie][1].type==="listOrdered"||U[ie][1].type==="listUnordered")&&(U[ie][0]==="enter"?Mr.push(ie):m(U.slice(Mr.pop(),ie))),U[ie][1].type==="definition"&&(U[ie][0]==="enter"?(wn=pt(wn,U.slice(Dt,ie)),Dt=ie):(Gr=pt(Gr,U.slice(Dt,ie+1)),Dt=ie+1));Gr=pt(Gr,wn),Gr=pt(Gr,U.slice(Dt)),ie=-1;let Qr=Gr;for(l.enter.null&&l.enter.null.call(c);++ie<U.length;){let Z0=l[Qr[ie][0]],K0=Qr[ie][1].type,ew=Z0[K0];SA.call(Z0,K0)&&ew&&ew.call({sliceSerialize:Qr[ie][2].sliceSerialize,...c},Qr[ie][1])}return l.exit.null&&l.exit.null.call(c),o[0].join("")}function m(U){let ie=U.length,Dt=0,Mr=0,Gr=!1,wn;for(;++Dt<ie;){let Qr=U[Dt];if(Qr[1]._container)wn=void 0,Qr[0]==="enter"?Mr++:Mr--;else switch(Qr[1].type){case"listItemPrefix":{Qr[0]==="exit"&&(wn=!0);break}case"linePrefix":break;case"lineEndingBlank":{Qr[0]==="enter"&&!Mr&&(wn?wn=void 0:Gr=!0);break}default:wn=void 0}}U[0][1]._loose=Gr}function h(U,ie){u[U]=ie}function d(U){return u[U]}function g(){o.push([])}function y(){return o.pop().join("")}function S(U){r&&(h("lastWasTag",!0),o[o.length-1].push(U))}function k(U){h("lastWasTag"),o[o.length-1].push(U)}function z(){k(f||`
85
+ `)}function R(){let U=o[o.length-1],ie=U[U.length-1],Dt=ie?ie.charCodeAt(ie.length-1):null;Dt===10||Dt===13||Dt===null||z()}function T(U){return d("ignoreEncode")?U:Op(U)}function $(){y()}function te(U){s.push(!U._loose),R(),S("<ol"),h("expectFirstItem",!0)}function Y(U){s.push(!U._loose),R(),S("<ul"),h("expectFirstItem",!0)}function A(U){if(d("expectFirstItem")){let ie=Number.parseInt(this.sliceSerialize(U),10);ie!==1&&S(' start="'+T(String(ie))+'"')}}function Pe(){d("expectFirstItem")?S(">"):_(),R(),S("<li>"),h("expectFirstItem"),h("lastWasTag")}function j(){_(),s.pop(),z(),S("</ol>")}function I(){_(),s.pop(),z(),S("</ul>")}function _(){d("lastWasTag")&&!d("slurpAllLineEndings")&&R(),S("</li>"),h("slurpAllLineEndings")}function F(){s.push(!1),R(),S("<blockquote>")}function B(){s.pop(),R(),S("</blockquote>"),h("slurpAllLineEndings")}function V(){s[s.length-1]||(R(),S("<p>")),h("slurpAllLineEndings")}function K(){s[s.length-1]?h("slurpAllLineEndings",!0):S("</p>")}function he(){R(),S("<pre><code"),h("fencesCount",0)}function b(){let U=y();S(' class="language-'+U+'"')}function Se(){let U=d("fencesCount")||0;U||(S(">"),h("slurpOneLineEnding",!0)),h("fencesCount",U+1)}function De(){R(),S("<pre><code>")}function v(){let U=d("fencesCount");U!==void 0&&U<2&&u.tightStack.length>0&&!d("lastWasTag")&&z(),d("flowCodeSeenData")&&R(),S("</code></pre>"),U!==void 0&&U<2&&R(),h("flowCodeSeenData"),h("fencesCount"),h("slurpOneLineEnding")}function qe(){i.push({image:!0}),r=void 0}function at(){i.push({})}function or(U){i[i.length-1].labelId=this.sliceSerialize(U)}function E(){i[i.length-1].label=y()}function w(U){i[i.length-1].referenceId=this.sliceSerialize(U)}function C(){g(),i[i.length-1].destination=""}function D(){g(),h("ignoreEncode",!0)}function N(){i[i.length-1].destination=y(),h("ignoreEncode")}function oe(){i[i.length-1].title=y()}function $e(){let U=i.length-1,ie=i[U],Dt=ie.referenceId||ie.labelId,Mr=ie.destination===void 0?n[tt(Dt)]:ie;for(r=!0;U--;)if(i[U].image){r=void 0;break}ie.image?(S('<img src="'+hn(Mr.destination,t.allowDangerousProtocol?void 0:Hj)+'" alt="'),k(ie.label),S('"')):S('<a href="'+hn(Mr.destination,t.allowDangerousProtocol?void 0:kA)+'"'),S(Mr.title?' title="'+Mr.title+'"':""),ie.image?S(" />"):(S(">"),k(ie.label),S("</a>")),i.pop()}function Le(){g(),i.push({})}function Ae(U){y(),i[i.length-1].labelId=this.sliceSerialize(U)}function Xt(){g(),h("ignoreEncode",!0)}function yt(){i[i.length-1].destination=y(),h("ignoreEncode")}function zt(){i[i.length-1].title=y()}function Ar(){let U=i[i.length-1],ie=tt(U.labelId);y(),SA.call(n,ie)||(n[ie]=i[i.length-1]),i.pop()}function qr(){h("slurpAllLineEndings",!0)}function ir(U){d("headingRank")||(h("headingRank",this.sliceSerialize(U).length),R(),S("<h"+d("headingRank")+">"))}function dr(){g(),h("slurpAllLineEndings")}function Zt(){h("slurpAllLineEndings",!0)}function Je(){S("</h"+d("headingRank")+">"),h("headingRank")}function Yr(U){h("headingRank",this.sliceSerialize(U).charCodeAt(0)===61?1:2)}function M(){let U=y();R(),S("<h"+d("headingRank")+">"),k(U),S("</h"+d("headingRank")+">"),h("slurpAllLineEndings"),h("headingRank")}function H(U){k(T(this.sliceSerialize(U)))}function ue(U){if(!d("slurpAllLineEndings")){if(d("slurpOneLineEnding")){h("slurpOneLineEnding");return}if(d("inCodeText")){k(" ");return}k(T(this.sliceSerialize(U)))}}function de(U){k(T(this.sliceSerialize(U))),h("flowCodeSeenData",!0)}function Ie(){S("<br />")}function sr(){R(),gr()}function Vr(){h("ignoreEncode")}function gr(){t.allowDangerousHtml&&h("ignoreEncode",!0)}function Ro(){S("<em>")}function Bo(){S("<strong>")}function Ht(){h("inCodeText",!0),S("<code>")}function Un(){h("inCodeText"),S("</code>")}function Ir(){S("</em>")}function dN(){S("</strong>")}function gN(){R(),S("<hr />")}function X0(U){h("characterReferenceType",U.type)}function xN(U){let ie=this.sliceSerialize(U),Dt=d("characterReferenceType")?Xs(ie,d("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):yo(ie);k(T(Dt)),h("characterReferenceType")}function yN(U){let ie=this.sliceSerialize(U);S('<a href="'+hn(ie,t.allowDangerousProtocol?void 0:kA)+'">'),k(T(ie)),S("</a>")}function bN(U){let ie=this.sliceSerialize(U);S('<a href="'+hn("mailto:"+ie)+'">'),k(T(ie)),S("</a>")}}var TA={tokenize:Uj};function Uj(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"),se(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 W(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),s)}}var CA={tokenize:jj},EA={tokenize:Wj};function jj(e){let t=this,r=[],n=0,o,i,s;return a;function a(k){if(n<r.length){let z=r[n];return t.containerState=z[1],e.attempt(z[0].continuation,l,u)(k)}return u(k)}function l(k){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&S();let z=t.events.length,R=z,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 $=z;for(;$<t.events.length;)t.events[$][1].end={...T},$++;return ot(t.events,R+1,0,t.events.slice(z)),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 h(k);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(EA,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,h(k)}function p(k){return t.containerState={},e.attempt(EA,m,h)(k)}function m(k){return n++,r.push([t.currentConstruct,t.containerState]),p(k)}function h(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 W(k)?(e.consume(k),g(e.exit("chunkFlow")),n=0,t.interrupt=void 0,a):(e.consume(k),d)}function g(k,z){let R=t.sliceStream(k);if(z&&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,te=$,Y,A;for(;te--;)if(t.events[te][0]==="exit"&&t.events[te][1].type==="chunkFlow"){if(Y){A=t.events[te][1].end;break}Y=!0}for(y(n),T=$;T<t.events.length;)t.events[T][1].end={...A},T++;ot(t.events,te+1,0,t.events.slice($)),t.events.length=T}}function y(k){let z=r.length;for(;z-- >k;){let R=r[z];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 Wj(e,t,r){return se(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}var DA={tokenize:qj};function qj(e){let t=this,r=e.attempt(dn,n,e.attempt(this.parser.constructs.flowInitial,o,se(e,e.attempt(this.parser.constructs.flow,o,e.attempt(gx,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 MA={resolveAll:IA()},_A=AA("string"),OA=AA("text");function AA(e){return{resolveAll:IA(e==="text"?Yj: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 m=f[p];if(!m.previous||m.previous.call(n,n.previous))return!0}return!1}}}function IA(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 Yj(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(t._contentTypeTextTrailing&&r===e.length&&(a=0),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 Lx={};le(Lx,{attentionMarkers:()=>e5,contentInitial:()=>Gj,disable:()=>t5,document:()=>Vj,flow:()=>Jj,flowInitial:()=>Qj,insideSpan:()=>Kj,string:()=>Xj,text:()=>Zj});var Vj={42:Rt,43:Rt,45:Rt,48:Rt,49:Rt,50:Rt,51:Rt,52:Rt,53:Rt,54:Rt,55:Rt,56:Rt,57:Rt,62:Np},Gj={91:xx},Qj={[-2]:Ml,[-1]:Ml,32:Ml},Jj={35:bx,42:Mi,45:[Hp,Mi],60:vx,61:Hp,95:Mi,96:Lp,126:Lp},Xj={38:Fp,92:Pp},Zj={[-5]:Nl,[-4]:Nl,[-3]:Nl,33:kx,38:Fp,42:Il,60:[hx,Sx],91:Tx,92:[yx,Pp],93:Ii,95:Il,96:dx},Kj={null:[Il,MA]},e5={null:[42,95]},t5={null:[]};function NA(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:Y($),check:Y(te),consume:z,enter:R,exit:T,interrupt:Y(te,{interrupt:!0})},c={code:null,containerState:{},defineSkip:y,events:[],now:g,parser:e,previous:null,sliceSerialize:h,sliceStream:d,write:m},f=t.tokenize.call(c,u),p;return t.resolveAll&&i.push(t),c;function m(I){return s=pt(s,I),S(),s[s.length-1]!==null?[]:(A(t,0),c.events=bo(i,c.events,c),c.events)}function h(I,_){return n5(d(I),_)}function d(I){return r5(s,I)}function g(){let{_bufferIndex:I,_index:_,line:F,column:B,offset:V}=n;return{_bufferIndex:I,_index:_,line:F,column:B,offset:V}}function y(I){o[I.line]=I.column,j()}function S(){let I;for(;n._index<s.length;){let _=s[n._index];if(typeof _=="string")for(I=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===I&&n._bufferIndex<_.length;)k(_.charCodeAt(n._bufferIndex));else k(_)}}function k(I){l=void 0,p=I,f=f(I)}function z(I){W(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===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=I,l=!0}function R(I,_){let F=_||{};return F.type=I,F.start=g(),c.events.push(["enter",F,c]),a.push(F),F}function T(I){let _=a.pop();return _.end=g(),c.events.push(["exit",_,c]),_}function $(I,_){A(I,_.from)}function te(I,_){_.restore()}function Y(I,_){return F;function F(B,V,K){let he,b,Se,De;return Array.isArray(B)?qe(B):"tokenize"in B?qe([B]):v(B);function v(w){return C;function C(D){let N=D!==null&&w[D],oe=D!==null&&w.null,$e=[...Array.isArray(N)?N:N?[N]:[],...Array.isArray(oe)?oe:oe?[oe]:[]];return qe($e)(D)}}function qe(w){return he=w,b=0,w.length===0?K:at(w[b])}function at(w){return C;function C(D){return De=Pe(),Se=w,w.partial||(c.currentConstruct=w),w.name&&c.parser.constructs.disable.null.includes(w.name)?E(D):w.tokenize.call(_?Object.assign(Object.create(c),_):c,u,or,E)(D)}}function or(w){return l=!0,I(Se,De),V}function E(w){return l=!0,De.restore(),++b<he.length?at(he[b]):K}}}function A(I,_){I.resolveAll&&!i.includes(I)&&i.push(I),I.resolve&&ot(c.events,_,c.events.length-_,I.resolve(c.events.slice(_),c)),I.resolveTo&&(c.events=I.resolveTo(c.events,c))}function Pe(){let I=g(),_=c.previous,F=c.currentConstruct,B=c.events.length,V=Array.from(a);return{from:B,restore:K};function K(){n=I,c.previous=_,c.currentConstruct=F,c.events.length=B,a=V,j()}}function j(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}}function r5(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 n5(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=`
87
86
  `;break}case-3:{s=`\r
88
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,n.push(s)}return n.join("")}function nm(e){let n={constructs:su([rm,...(e||{}).extensions||[]]),content:i(E1),defined:[],document:i(I1),flow:i(P1),lazy:{},string:i(D1),text:i(M1)};return n;function i(o){return s;function s(a){return R1(n,o,a)}}}function im(e){for(;!pu(e););return e}var L1=/[\0\t\n\r]/g;function om(){let e=1,t="",r=!0,n;return i;function i(o,s,a){let l=[],u,c,f,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,t="",r&&(o.charCodeAt(0)===65279&&f++,r=void 0);f<o.length;){if(L1.lastIndex=f,u=L1.exec(o),p=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(p),!u){t=o.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(o.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}}var $1={}.hasOwnProperty;function sm(e,t,r){return typeof t!="string"&&(r=t,t=void 0),_B(r)(im(nm(r).document().write(om()(e,t,!0))))}function _B(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ur),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(ve),blockQuote:o(T),characterEscape:$,characterReference:$,codeFenced:o(O),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(O,s),codeText:o(Y,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(ye),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(we),hardBreakEscape:o(kt),hardBreakTrailing:o(kt),htmlFlow:o(rt,s),htmlFlowData:$,htmlText:o(rt,s),htmlTextData:$,image:o(xt),label:s,link:o(ur),listItem:o(Ft),listItemValue:p,listOrdered:o(Nr,f),listUnordered:o(Nr),paragraph:o(qt),reference:y,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(ve),strong:o(At),thematicBreak:o(Fr)},exit:{atxHeading:l(),atxHeadingSequence:q,autolink:l(),autolinkEmail:S,autolinkProtocol:g,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:Ie,characterReference:k,codeFenced:l(v),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:C,codeIndented:l(w),codeText:l(D),codeTextData:C,data:C,definition:l(),definitionDestinationString:z,definitionLabelString:E,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(_),htmlFlowData:C,htmlText:l(I),htmlTextData:C,image:l(W),label:U,labelText:M,lineEnding:pe,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:se,resourceDestinationString:d,resourceTitleString:G,resource:K,setextHeading:l(V),setextHeadingLineSequence:R,setextHeadingText:A,strong:l(),thematicBreak:l()}};U1(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(P){let j={type:"root",children:[]},te={stack:[j],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:r},ue=[],ke=-1;for(;++ke<P.length;)if(P[ke][1].type==="listOrdered"||P[ke][1].type==="listUnordered")if(P[ke][0]==="enter")ue.push(ke);else{let Rt=ue.pop();ke=i(P,Rt,ke)}for(ke=-1;++ke<P.length;){let Rt=t[P[ke][0]];$1.call(Rt,P[ke][1].type)&&Rt[P[ke][1].type].call(Object.assign({sliceSerialize:P[ke][2].sliceSerialize},te),P[ke][1])}if(te.tokenStack.length>0){let Rt=te.tokenStack[te.tokenStack.length-1];(Rt[1]||B1).call(te,void 0,Rt[0])}for(j.position={start:Kr(P.length>0?P[0][1].start:{line:1,column:1,offset:0}),end:Kr(P.length>0?P[P.length-2][1].end:{line:1,column:1,offset:0})},ke=-1;++ke<t.transforms.length;)j=t.transforms[ke](j)||j;return j}function i(P,j,te){let ue=j-1,ke=-1,Rt=!1,fn,cr,Io,Po;for(;++ue<=te;){let bt=P[ue];switch(bt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{bt[0]==="enter"?ke++:ke--,Po=void 0;break}case"lineEndingBlank":{bt[0]==="enter"&&(fn&&!Po&&!ke&&!Io&&(Io=ue),Po=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Po=void 0}if(!ke&&bt[0]==="enter"&&bt[1].type==="listItemPrefix"||ke===-1&&bt[0]==="exit"&&(bt[1].type==="listUnordered"||bt[1].type==="listOrdered")){if(fn){let pi=ue;for(cr=void 0;pi--;){let fr=P[pi];if(fr[1].type==="lineEnding"||fr[1].type==="lineEndingBlank"){if(fr[0]==="exit")continue;cr&&(P[cr][1].type="lineEndingBlank",Rt=!0),fr[1].type="lineEnding",cr=pi}else if(!(fr[1].type==="linePrefix"||fr[1].type==="blockQuotePrefix"||fr[1].type==="blockQuotePrefixWhitespace"||fr[1].type==="blockQuoteMarker"||fr[1].type==="listItemIndent"))break}Io&&(!cr||Io<cr)&&(fn._spread=!0),fn.end=Object.assign({},cr?P[cr][1].start:bt[1].end),P.splice(cr||ue,0,["exit",fn,bt[2]]),ue++,te++}if(bt[1].type==="listItemPrefix"){let pi={type:"listItem",_spread:!1,start:Object.assign({},bt[1].start),end:void 0};fn=pi,P.splice(ue,0,["enter",pi,bt[2]]),ue++,te++,Io=void 0,Po=!0}}}return P[j][1]._spread=Rt,te}function o(P,j){return te;function te(ue){a.call(this,P(ue),ue),j&&j.call(this,ue)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(P,j,te){this.stack[this.stack.length-1].children.push(P),this.stack.push(P),this.tokenStack.push([j,te||void 0]),P.position={start:Kr(j.start),end:void 0}}function l(P){return j;function j(te){P&&P.call(this,te),u.call(this,te)}}function u(P,j){let te=this.stack.pop(),ue=this.tokenStack.pop();if(ue)ue[0].type!==P.type&&(j?j.call(this,P,ue[0]):(ue[1]||B1).call(this,P,ue[0]));else throw new Error("Cannot close `"+P.type+"` ("+Jr({start:P.start,end:P.end})+"): it\u2019s not open");te.position.end=Kr(P.end)}function c(){return Gn(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(P){if(this.data.expectingFirstListItemValue){let j=this.stack[this.stack.length-2];j.start=Number.parseInt(this.sliceSerialize(P),10),this.data.expectingFirstListItemValue=void 0}}function h(){let P=this.resume(),j=this.stack[this.stack.length-1];j.lang=P}function m(){let P=this.resume(),j=this.stack[this.stack.length-1];j.meta=P}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){let P=this.resume(),j=this.stack[this.stack.length-1];j.value=P.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){let P=this.resume(),j=this.stack[this.stack.length-1];j.value=P.replace(/(\r?\n|\r)$/g,"")}function E(P){let j=this.resume(),te=this.stack[this.stack.length-1];te.label=j,te.identifier=st(this.sliceSerialize(P)).toLowerCase()}function b(){let P=this.resume(),j=this.stack[this.stack.length-1];j.title=P}function z(){let P=this.resume(),j=this.stack[this.stack.length-1];j.url=P}function q(P){let j=this.stack[this.stack.length-1];if(!j.depth){let te=this.sliceSerialize(P).length;j.depth=te}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function R(P){let j=this.stack[this.stack.length-1];j.depth=this.sliceSerialize(P).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function $(P){let te=this.stack[this.stack.length-1].children,ue=te[te.length-1];(!ue||ue.type!=="text")&&(ue=$e(),ue.position={start:Kr(P.start),end:void 0},te.push(ue)),this.stack.push(ue)}function C(P){let j=this.stack.pop();j.value+=this.sliceSerialize(P),j.position.end=Kr(P.end)}function pe(P){let j=this.stack[this.stack.length-1];if(this.data.atHardBreak){let te=j.children[j.children.length-1];te.position.end=Kr(P.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(j.type)&&($.call(this,P),C.call(this,P))}function B(){this.data.atHardBreak=!0}function _(){let P=this.resume(),j=this.stack[this.stack.length-1];j.value=P}function I(){let P=this.resume(),j=this.stack[this.stack.length-1];j.value=P}function D(){let P=this.resume(),j=this.stack[this.stack.length-1];j.value=P}function F(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=j,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function W(){let P=this.stack[this.stack.length-1];if(this.data.inReference){let j=this.data.referenceType||"shortcut";P.type+="Reference",P.referenceType=j,delete P.url,delete P.title}else delete P.identifier,delete P.label;this.data.referenceType=void 0}function M(P){let j=this.sliceSerialize(P),te=this.stack[this.stack.length-2];te.label=ou(j),te.identifier=st(j).toLowerCase()}function U(){let P=this.stack[this.stack.length-1],j=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){let ue=P.children;te.children=ue}else te.alt=j}function d(){let P=this.resume(),j=this.stack[this.stack.length-1];j.url=P}function G(){let P=this.resume(),j=this.stack[this.stack.length-1];j.title=P}function K(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function se(P){let j=this.resume(),te=this.stack[this.stack.length-1];te.label=j,te.identifier=st(this.sliceSerialize(P)).toLowerCase(),this.data.referenceType="full"}function de(P){this.data.characterReferenceType=P.type}function Ie(P){let j=this.sliceSerialize(P),te=this.data.characterReferenceType,ue;te?(ue=iu(j,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ue=oo(j);let ke=this.stack[this.stack.length-1];ke.value+=ue}function k(P){let j=this.stack.pop();j.position.end=Kr(P.end)}function g(P){C.call(this,P);let j=this.stack[this.stack.length-1];j.url=this.sliceSerialize(P)}function S(P){C.call(this,P);let j=this.stack[this.stack.length-1];j.url="mailto:"+this.sliceSerialize(P)}function T(){return{type:"blockquote",children:[]}}function O(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function we(){return{type:"emphasis",children:[]}}function ve(){return{type:"heading",depth:0,children:[]}}function kt(){return{type:"break"}}function rt(){return{type:"html",value:""}}function xt(){return{type:"image",title:null,url:"",alt:null}}function ur(){return{type:"link",title:null,url:"",children:[]}}function Nr(P){return{type:"list",ordered:P.type==="listOrdered",start:null,spread:P._spread,children:[]}}function Ft(P){return{type:"listItem",spread:P._spread,checked:null,children:[]}}function qt(){return{type:"paragraph",children:[]}}function At(){return{type:"strong",children:[]}}function $e(){return{type:"text",value:""}}function Fr(){return{type:"thematicBreak"}}}function Kr(e){return{line:e.line,column:e.column,offset:e.offset}}function U1(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?U1(e,n):IB(e,n)}}function IB(e,t){let r;for(r in t)if($1.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 B1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Jr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Jr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Jr({start:t.start,end:t.end})+") is still open")}function Ls(e){let t=this;t.parser=r;function r(n){return sm(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var z1=Ue(j1(),1),Bs=Object.assign(ti(Error),{eval:ti(EvalError),range:ti(RangeError),reference:ti(ReferenceError),syntax:ti(SyntaxError),type:ti(TypeError),uri:ti(URIError)});function ti(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let i=r&&(0,z1.default)(r,...n);return new e(i)}}var bu={}.hasOwnProperty,q1={yaml:"-",toml:"+"};function ao(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=PB(n[r]);return t}function PB(e){let t=e;if(typeof t=="string"){if(!bu.call(q1,t))throw Bs("Missing matter definition for `%s`",t);t={type:t,marker:q1[t]}}else if(typeof t!="object")throw Bs("Expected matter to be an object, not `%j`",t);if(!bu.call(t,"type"))throw Bs("Missing `type` in matter `%j`",t);if(!bu.call(t,"fence")&&!bu.call(t,"marker"))throw Bs("Missing `marker` or `fence` in matter `%j`",t);return t}function um(e){let t=ao(e),r={},n=-1;for(;++n<t.length;){let i=t[n],o=lm(i,"open").charCodeAt(0),s=OB(i),a=r[o];Array.isArray(a)?a.push(s):r[o]=[s]}return{flow:r}}function OB(e){let t=e.anywhere,r=e.type,n=r+"Fence",i=n+"Sequence",o=r+"Value",s={tokenize:c,partial:!0},a,l=0;return{tokenize:u,concrete:!0};function u(f,p,h){let m=this;return x;function x(R){let V=m.now();return V.column===1&&(V.line===1||t)&&(a=lm(e,"open"),l=0,R===a.charCodeAt(l))?(f.enter(r),f.enter(n),f.enter(i),v(R)):h(R)}function v(R){return l===a.length?(f.exit(i),Q(R)?(f.enter("whitespace"),w(R)):E(R)):R===a.charCodeAt(l++)?(f.consume(R),v):h(R)}function w(R){return Q(R)?(f.consume(R),w):(f.exit("whitespace"),E(R))}function E(R){return H(R)?(f.exit(n),f.enter("lineEnding"),f.consume(R),f.exit("lineEnding"),a=lm(e,"close"),l=0,f.attempt(s,A,b)):h(R)}function b(R){return R===null||H(R)?q(R):(f.enter(o),z(R))}function z(R){return R===null||H(R)?(f.exit(o),q(R)):(f.consume(R),z)}function q(R){return R===null?h(R):(f.enter("lineEnding"),f.consume(R),f.exit("lineEnding"),f.attempt(s,A,b))}function A(R){return f.exit(r),p(R)}}function c(f,p,h){let m=0;return x;function x(b){return b===a.charCodeAt(m)?(f.enter(n),f.enter(i),v(b)):h(b)}function v(b){return m===a.length?(f.exit(i),Q(b)?(f.enter("whitespace"),w(b)):E(b)):b===a.charCodeAt(m++)?(f.consume(b),v):h(b)}function w(b){return Q(b)?(f.consume(b),w):(f.exit("whitespace"),E(b))}function E(b){return b===null||H(b)?(f.exit(n),p(b)):h(b)}}}function lm(e,t){return e.marker?H1(e.marker,t).repeat(3):H1(e.fence,t)}function H1(e,t){return typeof e=="string"?e:e[t]}function fm(e){let t=ao(e),r={},n={},i=-1;for(;++i<t.length;){let o=t[i];r[o.type]=DB(o),n[o.type]=MB,n[o.type+"Value"]=NB}return{enter:r,exit:n}}function DB(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function MB(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 NB(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function pm(e){let t=[],r={},n=ao(e),i=-1;for(;++i<n.length;){let o=n[i];r[o.type]=FB(o);let s=cm(o,"open");t.push({atBreak:!0,character:s.charAt(0),after:Cn(s.charAt(1))})}return{unsafe:t,handlers:r}}function FB(e){let t=cm(e,"open"),r=cm(e,"close");return n;function n(i){return t+(i.value?`
89
- `+i.value:"")+`
90
- `+r}}function cm(e,t){return e.marker?V1(e.marker,t).repeat(3):V1(e.fence,t)}function V1(e,t){return typeof e=="string"?e:e[t]}var RB="yaml";function $s(e){let t=this,r=e||RB,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(um(r)),o.push(fm(r)),s.push(pm(r))}var W1=typeof self=="object"?self:globalThis,LB=(e,t)=>{let r=(i,o)=>(e.set(o,i),i),n=i=>{if(e.has(i))return e.get(i);let[o,s]=t[i];switch(o){case 0:case-1:return r(s,i);case 1:{let a=r([],i);for(let l of s)a.push(n(l));return a}case 2:{let a=r({},i);for(let[l,u]of s)a[n(l)]=n(u);return a}case 3:return r(new Date(s),i);case 4:{let{source:a,flags:l}=s;return r(new RegExp(a,l),i)}case 5:{let a=r(new Map,i);for(let[l,u]of s)a.set(n(l),n(u));return a}case 6:{let a=r(new Set,i);for(let l of s)a.add(n(l));return a}case 7:{let{name:a,message:l}=s;return r(new W1[a](l),i)}case 8:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i)}return r(new W1[o](s),i)};return n},gm=e=>LB(new Map,e)(0);var lo="",{toString:BB}={},{keys:$B}=Object,qs=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let r=BB.call(e).slice(8,-1);switch(r){case"Array":return[1,lo];case"Object":return[2,lo];case"Date":return[3,lo];case"RegExp":return[4,lo];case"Map":return[5,lo];case"Set":return[6,lo]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Au=([e,t])=>e===0&&(t==="function"||t==="symbol"),UB=(e,t,r,n)=>{let i=(s,a)=>{let l=n.push(s)-1;return r.set(a,l),l},o=s=>{if(r.has(s))return r.get(s);let[a,l]=qs(s);switch(a){case 0:{let c=s;switch(l){case"bigint":a=8,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([-1],s)}return i([a,c],s)}case 1:{if(l)return i([l,[...s]],s);let c=[],f=i([a,c],s);for(let p of s)c.push(o(p));return f}case 2:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());let c=[],f=i([a,c],s);for(let p of $B(s))(e||!Au(qs(s[p])))&&c.push([o(p),o(s[p])]);return f}case 3:return i([a,s.toISOString()],s);case 4:{let{source:c,flags:f}=s;return i([a,{source:c,flags:f}],s)}case 5:{let c=[],f=i([a,c],s);for(let[p,h]of s)(e||!(Au(qs(p))||Au(qs(h))))&&c.push([o(p),o(h)]);return f}case 6:{let c=[],f=i([a,c],s);for(let p of s)(e||!Au(qs(p)))&&c.push(o(p));return f}}let{message:u}=s;return i([a,{name:l,message:u}],s)};return o},ym=(e,{json:t,lossy:r}={})=>{let n=[];return UB(!(t||r),!!t,new Map,n)(e),n};var en=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?gm(ym(e,t)):structuredClone(e):(e,t)=>gm(ym(e,t));var Cu=Y1("end"),Tu=Y1("start");function Y1(e){return t;function t(r){let n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Hs(e){let t=Tu(e),r=Cu(e);if(t&&r)return{start:t,end:r}}var ri=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],xm={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...ri,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...ri],h2:[["className","sr-only"]],img:[...ri,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...ri,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...ri],table:[...ri],ul:[...ri,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]};var tn={}.hasOwnProperty;function bm(e,t){let r={type:"root",children:[]},n={schema:t?{...xm,...t}:xm,stack:[]},i=Q1(n,e);return i&&(Array.isArray(i)?i.length===1?r=i[0]:r.children=i:r=i),r}function Q1(e,t){if(t&&typeof t=="object"){let r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return jB(e,r);case"doctype":return zB(e,r);case"element":return qB(e,r);case"root":return HB(e,r);case"text":return VB(e,r);default:}}}function jB(e,t){if(e.schema.allowComments){let r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),o={type:"comment",value:n<0?r:r.slice(0,n)};return Vs(o,t),o}}function zB(e,t){if(e.schema.allowDoctypes){let r={type:"doctype"};return Vs(r,t),r}}function qB(e,t){let r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);let n=Z1(e,t.children),i=WB(e,t.properties);e.stack.pop();let o=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(o=!0,e.schema.ancestors&&tn.call(e.schema.ancestors,r))){let a=e.schema.ancestors[r],l=-1;for(o=!1;++l<a.length;)e.stack.includes(a[l])&&(o=!0)}if(!o)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;let s={type:"element",tagName:r,properties:i,children:n};return Vs(s,t),s}function HB(e,t){let n={type:"root",children:Z1(e,t.children)};return Vs(n,t),n}function VB(e,t){let n={type:"text",value:typeof t.value=="string"?t.value:""};return Vs(n,t),n}function Z1(e,t){let r=[];if(Array.isArray(t)){let n=t,i=-1;for(;++i<n.length;){let o=Q1(e,n[i]);o&&(Array.isArray(o)?r.push(...o):r.push(o))}}return r}function WB(e,t){let r=e.stack[e.stack.length-1],n=e.schema.attributes,i=e.schema.required,o=n&&tn.call(n,r)?n[r]:void 0,s=n&&tn.call(n,"*")?n["*"]:void 0,a=t&&typeof t=="object"?t:{},l={},u;for(u in a)if(tn.call(a,u)){let c=a[u],f=G1(e,J1(o,u),u,c);f==null&&(f=G1(e,J1(s,u),u,c)),f!=null&&(l[u]=f)}if(i&&tn.call(i,r)){let c=i[r];for(u in c)tn.call(c,u)&&!tn.call(l,u)&&(l[u]=c[u])}return l}function G1(e,t,r,n){return t?Array.isArray(n)?YB(e,t,r,n):X1(e,t,r,n):void 0}function YB(e,t,r,n){let i=-1,o=[];for(;++i<n.length;){let s=X1(e,t,r,n[i]);(typeof s=="number"||typeof s=="string")&&o.push(s)}return o}function X1(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&GB(e,r,n)){if(typeof t=="object"&&t.length>1){let i=!1,o=0;for(;++o<t.length;){let s=t[o];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){i=!0;break}}else if(s===n){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function GB(e,t,r){let n=e.schema.protocols&&tn.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;let i=String(r),o=i.indexOf(":"),s=i.indexOf("?"),a=i.indexOf("#"),l=i.indexOf("/");if(o<0||l>-1&&o>l||s>-1&&o>s||a>-1&&o>a)return!0;let u=-1;for(;++u<n.length;){let c=n[u];if(o===c.length&&i.slice(0,c.length)===c)return!0}return!1}function Vs(e,t){let r=Hs(t);t.data&&(e.data=en(t.data)),r&&(e.position=r)}function J1(e,t){let r,n=-1;if(e)for(;++n<e.length;){let i=e[n],o=typeof i=="string"?i:i[0];if(o===t)return i;o==="data*"&&(r=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function K1(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function ek(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
91
- `}]}function tk(e,t){let r=t.value?t.value+`
92
- `:"",n={};t.lang&&(n.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function rk(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nk(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ik(e,t){let r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Pt(n.toLowerCase()),o=e.footnoteOrder.indexOf(n),s,a=e.footnoteCounts.get(n);a===void 0?(a=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(n,a);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function ok(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function sk(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Eu(e,t){let r=t.referenceType,n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function ak(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Eu(e,t);let i={src:Pt(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function lk(e,t){let r={src:Pt(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function uk(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function ck(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Eu(e,t);let i={href:Pt(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function fk(e,t){let r={href:Pt(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pk(e,t,r){let n=e.all(t),i=r?JB(r):hk(t),o={},s=[];if(typeof t.checked=="boolean"){let c=n[0],f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<n.length;){let c=n[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
93
- `}),c.type==="element"&&c.tagName==="p"&&!i?s.push(...c.children):s.push(c)}let l=n[n.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
94
- `});let u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function JB(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n<r.length;)t=hk(r[n])}return t}function hk(e){let t=e.spread;return t??e.children.length>1}function mk(e,t){let r={},n=e.all(t),i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){let s=n[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,o),e.applyData(t,o)}function dk(e,t){let r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function gk(e,t){let r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function yk(e,t){let r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xk(e,t){let r=e.all(t),n=r.shift(),i=[];if(n){let s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),i.push(s)}if(r.length>0){let s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},a=Tu(t.children[1]),l=Cu(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function bk(e,t,r){let n=r?r.children:void 0,o=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,a=s?s.length:t.children.length,l=-1,u=[];for(;++l<a;){let f=t.children[l],p={},h=s?s[l]:void 0;h&&(p.align=h);let m={type:"element",tagName:o,properties:p,children:[]};f&&(m.children=e.all(f),e.patch(f,m),m=e.applyData(f,m)),u.push(m)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function wk(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Sk(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),i=0,o=[];for(;n;)o.push(vk(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return o.push(vk(t.slice(i),i>0,!1)),o.join("")}function vk(e,t,r){let n=0,i=e.length;if(t){let o=e.codePointAt(n);for(;o===9||o===32;)n++,o=e.codePointAt(n)}if(r){let o=e.codePointAt(i-1);for(;o===9||o===32;)i--,o=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function kk(e,t){let r={type:"text",value:Sk(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Ak(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}var Ck={blockquote:K1,break:ek,code:tk,delete:rk,emphasis:nk,footnoteReference:ik,heading:ok,html:sk,imageReference:ak,image:lk,inlineCode:uk,linkReference:ck,link:fk,listItem:pk,list:mk,paragraph:dk,root:gk,strong:yk,table:xk,tableCell:wk,tableRow:bk,text:kk,thematicBreak:Ak,toml:_u,yaml:_u,definition:_u,footnoteDefinition:_u};function _u(){}function QB(e,t){let r=[{type:"text",value:"\u21A9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function ZB(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Tk(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||QB,n=e.options.footnoteBackLabel||ZB,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],l=-1;for(;++l<e.footnoteOrder.length;){let u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;let c=e.all(u),f=String(u.identifier).toUpperCase(),p=Pt(f.toLowerCase()),h=0,m=[],x=e.footnoteCounts.get(f);for(;x!==void 0&&++h<=x;){m.length>0&&m.push({type:"text",value:" "});let E=typeof r=="string"?r:r(l,h);typeof E=="string"&&(E={type:"text",value:E}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}let v=c[c.length-1];if(v&&v.type==="element"&&v.tagName==="p"){let E=v.children[v.children.length-1];E&&E.type==="text"?E.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...m)}else c.push(...m);let w={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,w),a.push(w)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...en(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
87
+ `;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 Pl(e){let n={constructs:Mp([Lx,...(e||{}).extensions||[]]),content:o(TA),defined:[],document:o(CA),flow:o(DA),lazy:{},string:o(_A),text:o(OA)};return n;function o(i){return s;function s(a){return NA(n,i,a)}}}function Fl(e){for(;!Rp(e););return e}var PA=/[\0\t\n\r]/g;function Ll(){let e=1,t="",r=!0,n;return o;function o(i,s,a){let l=[],u,c,f,p,m;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(PA.lastIndex=f,u=PA.exec(i),p=u&&u.index!==void 0?u.index:i.length,m=i.charCodeAt(p),!u){t=i.slice(f);break}if(m===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),m){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 RRe(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Fx(r)(Fl(Pl(r).document().write(Ll()(e,t,!0))))}var FA={}.hasOwnProperty;function Rx(e,t,r){return typeof t!="string"&&(r=t,t=void 0),o5(r)(Fl(Pl(r).document().write(Ll()(e,t,!0))))}function o5(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Ar),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:i(Ae),blockQuote:i(D),characterEscape:Y,characterReference:Y,codeFenced:i(N),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(N,s),codeText:i(oe,s),codeTextData:Y,data:Y,codeFlowValue:Y,definition:i($e),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Le),hardBreakEscape:i(Xt),hardBreakTrailing:i(Xt),htmlFlow:i(yt,s),htmlFlowData:Y,htmlText:i(yt,s),htmlTextData:Y,image:i(zt),label:s,link:i(Ar),listItem:i(ir),listItemValue:p,listOrdered:i(qr,f),listUnordered:i(qr),paragraph:i(dr),reference:v,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Ae),strong:i(Zt),thematicBreak:i(Yr)},exit:{atxHeading:l(),atxHeadingSequence:R,autolink:l(),autolinkEmail:C,autolinkProtocol:w,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:at,characterReferenceMarkerNumeric:at,characterReferenceValue:or,characterReference:E,codeFenced:l(g),codeFencedFence:d,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:A,codeIndented:l(y),codeText:l(F),codeTextData:A,data:A,definition:l(),definitionDestinationString:z,definitionLabelString:S,definitionTitleString:k,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(I),htmlFlowData:A,htmlText:l(_),htmlTextData:A,image:l(V),label:he,labelText:K,lineEnding:Pe,link:l(B),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:qe,resourceDestinationString:b,resourceTitleString:Se,resource:De,setextHeading:l(te),setextHeadingLineSequence:$,setextHeadingText:T,strong:l(),thematicBreak:l()}};LA(t,(e||{}).mdastExtensions||[]);let r={};return n;function n(M){let H={type:"root",children:[]},ue={stack:[H],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:c,data:r},de=[],Ie=-1;for(;++Ie<M.length;)if(M[Ie][1].type==="listOrdered"||M[Ie][1].type==="listUnordered")if(M[Ie][0]==="enter")de.push(Ie);else{let sr=de.pop();Ie=o(M,sr,Ie)}for(Ie=-1;++Ie<M.length;){let sr=t[M[Ie][0]];FA.call(sr,M[Ie][1].type)&&sr[M[Ie][1].type].call(Object.assign({sliceSerialize:M[Ie][2].sliceSerialize},ue),M[Ie][1])}if(ue.tokenStack.length>0){let sr=ue.tokenStack[ue.tokenStack.length-1];(sr[1]||RA).call(ue,void 0,sr[0])}for(H.position={start:wo(M.length>0?M[0][1].start:{line:1,column:1,offset:0}),end:wo(M.length>0?M[M.length-2][1].end:{line:1,column:1,offset:0})},Ie=-1;++Ie<t.transforms.length;)H=t.transforms[Ie](H)||H;return H}function o(M,H,ue){let de=H-1,Ie=-1,sr=!1,Vr,gr,Ro,Bo;for(;++de<=ue;){let Ht=M[de];switch(Ht[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ht[0]==="enter"?Ie++:Ie--,Bo=void 0;break}case"lineEndingBlank":{Ht[0]==="enter"&&(Vr&&!Bo&&!Ie&&!Ro&&(Ro=de),Bo=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bo=void 0}if(!Ie&&Ht[0]==="enter"&&Ht[1].type==="listItemPrefix"||Ie===-1&&Ht[0]==="exit"&&(Ht[1].type==="listUnordered"||Ht[1].type==="listOrdered")){if(Vr){let Un=de;for(gr=void 0;Un--;){let Ir=M[Un];if(Ir[1].type==="lineEnding"||Ir[1].type==="lineEndingBlank"){if(Ir[0]==="exit")continue;gr&&(M[gr][1].type="lineEndingBlank",sr=!0),Ir[1].type="lineEnding",gr=Un}else if(!(Ir[1].type==="linePrefix"||Ir[1].type==="blockQuotePrefix"||Ir[1].type==="blockQuotePrefixWhitespace"||Ir[1].type==="blockQuoteMarker"||Ir[1].type==="listItemIndent"))break}Ro&&(!gr||Ro<gr)&&(Vr._spread=!0),Vr.end=Object.assign({},gr?M[gr][1].start:Ht[1].end),M.splice(gr||de,0,["exit",Vr,Ht[2]]),de++,ue++}if(Ht[1].type==="listItemPrefix"){let Un={type:"listItem",_spread:!1,start:Object.assign({},Ht[1].start),end:void 0};Vr=Un,M.splice(de,0,["enter",Un,Ht[2]]),de++,ue++,Ro=void 0,Bo=!0}}}return M[H][1]._spread=sr,ue}function i(M,H){return ue;function ue(de){a.call(this,M(de),de),H&&H.call(this,de)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(M,H,ue){this.stack[this.stack.length-1].children.push(M),this.stack.push(M),this.tokenStack.push([H,ue||void 0]),M.position={start:wo(H.start),end:void 0}}function l(M){return H;function H(ue){M&&M.call(this,ue),u.call(this,ue)}}function u(M,H){let ue=this.stack.pop(),de=this.tokenStack.pop();if(de)de[0].type!==M.type&&(H?H.call(this,M,de[0]):(de[1]||RA).call(this,M,de[0]));else throw new Error("Cannot close `"+M.type+"` ("+go({start:M.start,end:M.end})+"): it\u2019s not open");ue.position.end=wo(M.end)}function c(){return Ti(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(M){if(this.data.expectingFirstListItemValue){let H=this.stack[this.stack.length-2];H.start=Number.parseInt(this.sliceSerialize(M),10),this.data.expectingFirstListItemValue=void 0}}function m(){let M=this.resume(),H=this.stack[this.stack.length-1];H.lang=M}function h(){let M=this.resume(),H=this.stack[this.stack.length-1];H.meta=M}function d(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let M=this.resume(),H=this.stack[this.stack.length-1];H.value=M.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){let M=this.resume(),H=this.stack[this.stack.length-1];H.value=M.replace(/(\r?\n|\r)$/g,"")}function S(M){let H=this.resume(),ue=this.stack[this.stack.length-1];ue.label=H,ue.identifier=tt(this.sliceSerialize(M)).toLowerCase()}function k(){let M=this.resume(),H=this.stack[this.stack.length-1];H.title=M}function z(){let M=this.resume(),H=this.stack[this.stack.length-1];H.url=M}function R(M){let H=this.stack[this.stack.length-1];if(!H.depth){let ue=this.sliceSerialize(M).length;H.depth=ue}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function $(M){let H=this.stack[this.stack.length-1];H.depth=this.sliceSerialize(M).codePointAt(0)===61?1:2}function te(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(M){let ue=this.stack[this.stack.length-1].children,de=ue[ue.length-1];(!de||de.type!=="text")&&(de=Je(),de.position={start:wo(M.start),end:void 0},ue.push(de)),this.stack.push(de)}function A(M){let H=this.stack.pop();H.value+=this.sliceSerialize(M),H.position.end=wo(M.end)}function Pe(M){let H=this.stack[this.stack.length-1];if(this.data.atHardBreak){let ue=H.children[H.children.length-1];ue.position.end=wo(M.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(H.type)&&(Y.call(this,M),A.call(this,M))}function j(){this.data.atHardBreak=!0}function I(){let M=this.resume(),H=this.stack[this.stack.length-1];H.value=M}function _(){let M=this.resume(),H=this.stack[this.stack.length-1];H.value=M}function F(){let M=this.resume(),H=this.stack[this.stack.length-1];H.value=M}function B(){let M=this.stack[this.stack.length-1];if(this.data.inReference){let H=this.data.referenceType||"shortcut";M.type+="Reference",M.referenceType=H,delete M.url,delete M.title}else delete M.identifier,delete M.label;this.data.referenceType=void 0}function V(){let M=this.stack[this.stack.length-1];if(this.data.inReference){let H=this.data.referenceType||"shortcut";M.type+="Reference",M.referenceType=H,delete M.url,delete M.title}else delete M.identifier,delete M.label;this.data.referenceType=void 0}function K(M){let H=this.sliceSerialize(M),ue=this.stack[this.stack.length-2];ue.label=Ip(H),ue.identifier=tt(H).toLowerCase()}function he(){let M=this.stack[this.stack.length-1],H=this.resume(),ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,ue.type==="link"){let de=M.children;ue.children=de}else ue.alt=H}function b(){let M=this.resume(),H=this.stack[this.stack.length-1];H.url=M}function Se(){let M=this.resume(),H=this.stack[this.stack.length-1];H.title=M}function De(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function qe(M){let H=this.resume(),ue=this.stack[this.stack.length-1];ue.label=H,ue.identifier=tt(this.sliceSerialize(M)).toLowerCase(),this.data.referenceType="full"}function at(M){this.data.characterReferenceType=M.type}function or(M){let H=this.sliceSerialize(M),ue=this.data.characterReferenceType,de;ue?(de=Xs(H,ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):de=yo(H);let Ie=this.stack[this.stack.length-1];Ie.value+=de}function E(M){let H=this.stack.pop();H.position.end=wo(M.end)}function w(M){A.call(this,M);let H=this.stack[this.stack.length-1];H.url=this.sliceSerialize(M)}function C(M){A.call(this,M);let H=this.stack[this.stack.length-1];H.url="mailto:"+this.sliceSerialize(M)}function D(){return{type:"blockquote",children:[]}}function N(){return{type:"code",lang:null,meta:null,value:""}}function oe(){return{type:"inlineCode",value:""}}function $e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Le(){return{type:"emphasis",children:[]}}function Ae(){return{type:"heading",depth:0,children:[]}}function Xt(){return{type:"break"}}function yt(){return{type:"html",value:""}}function zt(){return{type:"image",title:null,url:"",alt:null}}function Ar(){return{type:"link",title:null,url:"",children:[]}}function qr(M){return{type:"list",ordered:M.type==="listOrdered",start:null,spread:M._spread,children:[]}}function ir(M){return{type:"listItem",spread:M._spread,checked:null,children:[]}}function dr(){return{type:"paragraph",children:[]}}function Zt(){return{type:"strong",children:[]}}function Je(){return{type:"text",value:""}}function Yr(){return{type:"thematicBreak"}}}function wo(e){return{line:e.line,column:e.column,offset:e.offset}}function LA(e,t){let r=-1;for(;++r<t.length;){let n=t[r];Array.isArray(n)?LA(e,n):i5(e,n)}}function i5(e,t){let r;for(r in t)if(FA.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 RA(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+go({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+go({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+go({start:t.start,end:t.end})+") is still open")}function ea(e){let t=this;t.parser=r;function r(n){return Rx(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var $A=bt(BA(),1),Rl=Object.assign(_i(Error),{eval:_i(EvalError),range:_i(RangeError),reference:_i(ReferenceError),syntax:_i(SyntaxError),type:_i(TypeError),uri:_i(URIError)});function _i(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){let o=r&&(0,$A.default)(r,...n);return new e(o)}}var Wp={}.hasOwnProperty,zA={yaml:"-",toml:"+"};function ta(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=s5(n[r]);return t}function s5(e){let t=e;if(typeof t=="string"){if(!Wp.call(zA,t))throw Rl("Missing matter definition for `%s`",t);t={type:t,marker:zA[t]}}else if(typeof t!="object")throw Rl("Expected matter to be an object, not `%j`",t);if(!Wp.call(t,"type"))throw Rl("Missing `type` in matter `%j`",t);if(!Wp.call(t,"fence")&&!Wp.call(t,"marker"))throw Rl("Missing `marker` or `fence` in matter `%j`",t);return t}function zx(e){let t=ta(e),r={},n=-1;for(;++n<t.length;){let o=t[n],i=$x(o,"open").charCodeAt(0),s=a5(o),a=r[i];Array.isArray(a)?a.push(s):r[i]=[s]}return{flow:r}}function a5(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,m){let h=this;return d;function d($){let te=h.now();return te.column===1&&(te.line===1||t)&&(a=$x(e,"open"),l=0,$===a.charCodeAt(l))?(f.enter(r),f.enter(n),f.enter(o),g($)):m($)}function g($){return l===a.length?(f.exit(o),re($)?(f.enter("whitespace"),y($)):S($)):$===a.charCodeAt(l++)?(f.consume($),g):m($)}function y($){return re($)?(f.consume($),y):(f.exit("whitespace"),S($))}function S($){return W($)?(f.exit(n),f.enter("lineEnding"),f.consume($),f.exit("lineEnding"),a=$x(e,"close"),l=0,f.attempt(s,T,k)):m($)}function k($){return $===null||W($)?R($):(f.enter(i),z($))}function z($){return $===null||W($)?(f.exit(i),R($)):(f.consume($),z)}function R($){return $===null?m($):(f.enter("lineEnding"),f.consume($),f.exit("lineEnding"),f.attempt(s,T,k))}function T($){return f.exit(r),p($)}}function c(f,p,m){let h=0;return d;function d(k){return k===a.charCodeAt(h)?(f.enter(n),f.enter(o),g(k)):m(k)}function g(k){return h===a.length?(f.exit(o),re(k)?(f.enter("whitespace"),y(k)):S(k)):k===a.charCodeAt(h++)?(f.consume(k),g):m(k)}function y(k){return re(k)?(f.consume(k),y):(f.exit("whitespace"),S(k))}function S(k){return k===null||W(k)?(f.exit(n),p(k)):m(k)}}}function $x(e,t){return e.marker?HA(e.marker,t).repeat(3):HA(e.fence,t)}function HA(e,t){return typeof e=="string"?e:e[t]}function Ux(e){let t=ta(e),r={},n={},o=-1;for(;++o<t.length;){let i=t[o];r[i.type]=l5(i),n[i.type]=u5,n[i.type+"Value"]=c5}return{enter:r,exit:n}}function l5(e){return t;function t(r){this.enter({type:e.type,value:""},r),this.buffer()}}function u5(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 c5(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function jx(e){let t=[],r={},n=ta(e),o=-1;for(;++o<n.length;){let i=n[o];r[i.type]=f5(i);let s=Hx(i,"open");t.push({atBreak:!0,character:s.charAt(0),after:Jo(s.charAt(1))})}return{unsafe:t,handlers:r}}function f5(e){let t=Hx(e,"open"),r=Hx(e,"close");return n;function n(o){return t+(o.value?`
88
+ `+o.value:"")+`
89
+ `+r}}function Hx(e,t){return e.marker?UA(e.marker,t).repeat(3):UA(e.fence,t)}function UA(e,t){return typeof e=="string"?e:e[t]}var p5="yaml";function ra(e){let t=this,r=e||p5,n=t.data(),o=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);o.push(zx(r)),i.push(Ux(r)),s.push(jx(r))}var jA=typeof self=="object"?self:globalThis,m5=(e,t)=>{let r=(o,i)=>(e.set(i,o),o),n=o=>{if(e.has(o))return e.get(o);let[i,s]=t[o];switch(i){case 0:case-1:return r(s,o);case 1:{let a=r([],o);for(let l of s)a.push(n(l));return a}case 2:{let a=r({},o);for(let[l,u]of s)a[n(l)]=n(u);return a}case 3:return r(new Date(s),o);case 4:{let{source:a,flags:l}=s;return r(new RegExp(a,l),o)}case 5:{let a=r(new Map,o);for(let[l,u]of s)a.set(n(l),n(u));return a}case 6:{let a=r(new Set,o);for(let l of s)a.add(n(l));return a}case 7:{let{name:a,message:l}=s;return r(new jA[a](l),o)}case 8:return r(BigInt(s),o);case"BigInt":return r(Object(BigInt(s)),o);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{let{buffer:a}=new Uint8Array(s);return r(new DataView(a),s)}}return r(new jA[i](s),o)};return n},Qp=e=>m5(new Map,e)(0);var oa="",{toString:h5}={},{keys:d5}=Object,zl=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let r=h5.call(e).slice(8,-1);switch(r){case"Array":return[1,oa];case"Object":return[2,oa];case"Date":return[3,oa];case"RegExp":return[4,oa];case"Map":return[5,oa];case"Set":return[6,oa];case"DataView":return[1,r]}return r.includes("Array")?[1,r]:r.includes("Error")?[7,r]:[2,r]},Jp=([e,t])=>e===0&&(t==="function"||t==="symbol"),g5=(e,t,r,n)=>{let o=(s,a)=>{let l=n.push(s)-1;return r.set(a,l),l},i=s=>{if(r.has(s))return r.get(s);let[a,l]=zl(s);switch(a){case 0:{let c=s;switch(l){case"bigint":a=8,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return o([-1],s)}return o([a,c],s)}case 1:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),o([l,[...p]],s)}let c=[],f=o([a,c],s);for(let p of s)c.push(i(p));return f}case 2:{if(l)switch(l){case"BigInt":return o([l,s.toString()],s);case"Boolean":case"Number":case"String":return o([l,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());let c=[],f=o([a,c],s);for(let p of d5(s))(e||!Jp(zl(s[p])))&&c.push([i(p),i(s[p])]);return f}case 3:return o([a,s.toISOString()],s);case 4:{let{source:c,flags:f}=s;return o([a,{source:c,flags:f}],s)}case 5:{let c=[],f=o([a,c],s);for(let[p,m]of s)(e||!(Jp(zl(p))||Jp(zl(m))))&&c.push([i(p),i(m)]);return f}case 6:{let c=[],f=o([a,c],s);for(let p of s)(e||!Jp(zl(p)))&&c.push(i(p));return f}}let{message:u}=s;return o([a,{name:l,message:u}],s)};return i},Xp=(e,{json:t,lossy:r}={})=>{let n=[];return g5(!(t||r),!!t,new Map,n)(e),n};var vo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Qp(Xp(e,t)):structuredClone(e):(e,t)=>Qp(Xp(e,t));var Zp=WA("end"),Kp=WA("start");function WA(e){return t;function t(r){let n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Hl(e){let t=Kp(e),r=Zp(e);if(t&&r)return{start:t,end:r}}var Oi=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],em={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Oi,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Oi],h2:[["className","sr-only"]],img:[...Oi,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Oi,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Oi],table:[...Oi],ul:[...Oi,["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 So={}.hasOwnProperty;function Vx(e,t){let r={type:"root",children:[]},n={schema:t?{...em,...t}:em,stack:[]},o=qA(n,e);return o&&(Array.isArray(o)?o.length===1?r=o[0]:r.children=o:r=o),r}function qA(e,t){if(t&&typeof t=="object"){let r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return x5(e,r);case"doctype":return y5(e,r);case"element":return b5(e,r);case"root":return w5(e,r);case"text":return v5(e,r);default:}}}function x5(e,t){if(e.schema.allowComments){let r=typeof t.value=="string"?t.value:"",n=r.indexOf("-->"),i={type:"comment",value:n<0?r:r.slice(0,n)};return Ul(i,t),i}}function y5(e,t){if(e.schema.allowDoctypes){let r={type:"doctype"};return Ul(r,t),r}}function b5(e,t){let r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);let n=YA(e,t.children),o=S5(e,t.properties);e.stack.pop();let i=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(i=!0,e.schema.ancestors&&So.call(e.schema.ancestors,r))){let a=e.schema.ancestors[r],l=-1;for(i=!1;++l<a.length;)e.stack.includes(a[l])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(r)?n:void 0;let s={type:"element",tagName:r,properties:o,children:n};return Ul(s,t),s}function w5(e,t){let n={type:"root",children:YA(e,t.children)};return Ul(n,t),n}function v5(e,t){let n={type:"text",value:typeof t.value=="string"?t.value:""};return Ul(n,t),n}function YA(e,t){let r=[];if(Array.isArray(t)){let n=t,o=-1;for(;++o<n.length;){let i=qA(e,n[o]);i&&(Array.isArray(i)?r.push(...i):r.push(i))}}return r}function S5(e,t){let r=e.stack[e.stack.length-1],n=e.schema.attributes,o=e.schema.required,i=n&&So.call(n,r)?n[r]:void 0,s=n&&So.call(n,"*")?n["*"]:void 0,a=t&&typeof t=="object"?t:{},l={},u;for(u in a)if(So.call(a,u)){let c=a[u],f=VA(e,QA(i,u),u,c);f==null&&(f=VA(e,QA(s,u),u,c)),f!=null&&(l[u]=f)}if(o&&So.call(o,r)){let c=o[r];for(u in c)So.call(c,u)&&!So.call(l,u)&&(l[u]=c[u])}return l}function VA(e,t,r,n){return t?Array.isArray(n)?k5(e,t,r,n):GA(e,t,r,n):void 0}function k5(e,t,r,n){let o=-1,i=[];for(;++o<n.length;){let s=GA(e,t,r,n[o]);(typeof s=="number"||typeof s=="string")&&i.push(s)}return i}function GA(e,t,r,n){if(!(typeof n!="boolean"&&typeof n!="number"&&typeof n!="string")&&T5(e,r,n)){if(typeof t=="object"&&t.length>1){let o=!1,i=0;for(;++i<t.length;){let s=t[i];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(n))){o=!0;break}}else if(s===n){o=!0;break}}if(!o)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+n:n}}function T5(e,t,r){let n=e.schema.protocols&&So.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!n||n.length===0)return!0;let o=String(r),i=o.indexOf(":"),s=o.indexOf("?"),a=o.indexOf("#"),l=o.indexOf("/");if(i<0||l>-1&&i>l||s>-1&&i>s||a>-1&&i>a)return!0;let u=-1;for(;++u<n.length;){let c=n[u];if(i===c.length&&o.slice(0,c.length)===c)return!0}return!1}function Ul(e,t){let r=Hl(t);t.data&&(e.data=vo(t.data)),r&&(e.position=r)}function QA(e,t){let r,n=-1;if(e)for(;++n<e.length;){let o=e[n],i=typeof o=="string"?o:o[0];if(i===t)return o;i==="data*"&&(r=o)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function JA(e,t){let r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function XA(e,t){let r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
90
+ `}]}function ZA(e,t){let r=t.value?t.value+`
91
+ `:"",n={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(n.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function KA(e,t){let r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function eI(e,t){let r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function tI(e,t){let r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),o=fr(n.toLowerCase()),i=e.footnoteOrder.indexOf(n),s,a=e.footnoteCounts.get(n);a===void 0?(a=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=i+1,a+=1,e.footnoteCounts.set(n,a);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);let u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function rI(e,t){let r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nI(e,t){if(e.options.allowDangerousHtml){let r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function tm(e,t){let r=t.referenceType,n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});let s=o[o.length-1];return s&&s.type==="text"?s.value+=n:o.push({type:"text",value:n}),o}function oI(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return tm(e,t);let o={src:fr(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(o.title=n.title);let i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)}function iI(e,t){let r={src:fr(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function sI(e,t){let r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);let n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function aI(e,t){let r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return tm(e,t);let o={href:fr(n.url||"")};n.title!==null&&n.title!==void 0&&(o.title=n.title);let i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function lI(e,t){let r={href:fr(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);let n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cI(e,t,r){let n=e.all(t),o=r?E5(r):uI(t),i={},s=[];if(typeof t.checked=="boolean"){let c=n[0],f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<n.length;){let c=n[a];(o||a!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
92
+ `}),c.type==="element"&&c.tagName==="p"&&!o?s.push(...c.children):s.push(c)}let l=n[n.length-1];l&&(o||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
93
+ `});let u={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,u),e.applyData(t,u)}function E5(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let r=e.children,n=-1;for(;!t&&++n<r.length;)t=uI(r[n])}return t}function uI(e){let t=e.spread;return t??e.children.length>1}function fI(e,t){let r={},n=e.all(t),o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<n.length;){let s=n[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}let i={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,i),e.applyData(t,i)}function pI(e,t){let r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mI(e,t){let r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function hI(e,t){let r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dI(e,t){let r=e.all(t),n=r.shift(),o=[];if(n){let s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),o.push(s)}if(r.length>0){let s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},a=Kp(t.children[1]),l=Zp(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),o.push(s)}let i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)}function gI(e,t,r){let n=r?r.children:void 0,i=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,a=s?s.length:t.children.length,l=-1,u=[];for(;++l<a;){let f=t.children[l],p={},m=s?s[l]:void 0;m&&(p.align=m);let h={type:"element",tagName:i,properties:p,children:[]};f&&(h.children=e.all(f),e.patch(f,h),h=e.applyData(f,h)),u.push(h)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function xI(e,t){let r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}var w$e=9,v$e=32;function bI(e){let t=String(e),r=/\r?\n|\r/g,n=r.exec(t),o=0,i=[];for(;n;)i.push(yI(t.slice(o,n.index),o>0,!0),n[0]),o=n.index+n[0].length,n=r.exec(t);return i.push(yI(t.slice(o),o>0,!1)),i.join("")}function yI(e,t,r){let n=0,o=e.length;if(t){let i=e.codePointAt(n);for(;i===9||i===32;)n++,i=e.codePointAt(n)}if(r){let i=e.codePointAt(o-1);for(;i===9||i===32;)o--,i=e.codePointAt(o-1)}return o>n?e.slice(n,o):""}function wI(e,t){let r={type:"text",value:bI(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function vI(e,t){let r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}var Gx={blockquote:JA,break:XA,code:ZA,delete:KA,emphasis:eI,footnoteReference:tI,heading:rI,html:nI,imageReference:oI,image:iI,inlineCode:sI,linkReference:aI,link:lI,listItem:cI,list:fI,paragraph:pI,root:mI,strong:hI,table:dI,tableCell:xI,tableRow:gI,text:wI,thematicBreak:vI,toml:rm,yaml:rm,definition:rm,footnoteDefinition:rm};function rm(){}function SI(e,t){let r=[{type:"text",value:"\u21A9"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function kI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function TI(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||SI,n=e.options.footnoteBackLabel||kI,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],l=-1;for(;++l<e.footnoteOrder.length;){let u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;let c=e.all(u),f=String(u.identifier).toUpperCase(),p=fr(f.toLowerCase()),m=0,h=[],d=e.footnoteCounts.get(f);for(;d!==void 0&&++m<=d;){h.length>0&&h.push({type:"text",value:" "});let S=typeof r=="string"?r:r(l,m);typeof S=="string"&&(S={type:"text",value:S}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,m),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}let g=c[c.length-1];if(g&&g.type==="element"&&g.tagName==="p"){let S=g.children[g.children.length-1];S&&S.type==="text"?S.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...h)}else c.push(...h);let y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...vo(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
95
94
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
96
- `}]}}var wm={}.hasOwnProperty,XB={};function _k(e,t){let r=t||XB,n=new Map,i=new Map,o=new Map,s={...Ck,...r.handlers},a={all:u,applyData:e$,definitionById:n,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:r,patch:KB,wrap:r$};return Os(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){let f=c.type==="definition"?n:i,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),a;function l(c,f){let p=c.type,h=a.handlers[p];if(wm.call(a.handlers,p)&&h)return h(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in c){let{children:x,...v}=c,w=en(v);return w.children=a.all(c),w}return en(c)}return(a.options.unknownHandler||t$)(a,c,f)}function u(c){let f=[];if("children"in c){let p=c.children,h=-1;for(;++h<p.length;){let m=a.one(p[h],c);if(m){if(h&&p[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Ek(m.value)),!Array.isArray(m)&&m.type==="element")){let x=m.children[0];x&&x.type==="text"&&(x.value=Ek(x.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function KB(e,t){e.position&&(t.position=Hs(e))}function e$(e,t){let r=t;if(e&&e.data){let n=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{let s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&o&&Object.assign(r.properties,en(o)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function t$(e,t){let r=t.data||{},n="value"in t&&!(wm.call(r,"hProperties")||wm.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function r$(e,t){let r=[],n=-1;for(t&&r.push({type:"text",value:`
95
+ `}]}}var Qx={}.hasOwnProperty,C5={};function CI(e,t){let r=t||C5,n=new Map,o=new Map,i=new Map,s={...Gx,...r.handlers},a={all:u,applyData:A5,definitionById:n,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:s,one:l,options:r,patch:D5,wrap:M5};return Al(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){let f=c.type==="definition"?n:o,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),a;function l(c,f){let p=c.type,m=a.handlers[p];if(Qx.call(a.handlers,p)&&m)return m(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in c){let{children:d,...g}=c,y=vo(g);return y.children=a.all(c),y}return vo(c)}return(a.options.unknownHandler||I5)(a,c,f)}function u(c){let f=[];if("children"in c){let p=c.children,m=-1;for(;++m<p.length;){let h=a.one(p[m],c);if(h){if(m&&p[m-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=EI(h.value)),!Array.isArray(h)&&h.type==="element")){let d=h.children[0];d&&d.type==="text"&&(d.value=EI(d.value))}Array.isArray(h)?f.push(...h):f.push(h)}}}return f}}function D5(e,t){e.position&&(t.position=Hl(e))}function A5(e,t){let r=t;if(e&&e.data){let n=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{let s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&i&&Object.assign(r.properties,vo(i)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function I5(e,t){let r=t.data||{},n="value"in t&&!(Qx.call(r,"hProperties")||Qx.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function M5(e,t){let r=[],n=-1;for(t&&r.push({type:"text",value:`
97
96
  `});++n<e.length;)n&&r.push({type:"text",value:`
98
97
  `}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
99
- `}),r}function Ek(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function vm(e,t){let r=_k(e,t),n=r.one(e,void 0),i=Tk(r),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&("children"in o,o.children.push({type:"text",value:`
100
- `},i)),o}var Ik=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Er=class{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}};Er.prototype.property={};Er.prototype.normal={};Er.prototype.space=null;function Sm(e,t){let r={},n={},i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new Er(r,n,t)}function Ws(e){return e.toLowerCase()}var lt=class{constructor(t,r){this.property=t,this.attribute=r}};lt.prototype.space=null;lt.prototype.boolean=!1;lt.prototype.booleanish=!1;lt.prototype.overloadedBoolean=!1;lt.prototype.number=!1;lt.prototype.commaSeparated=!1;lt.prototype.spaceSeparated=!1;lt.prototype.commaOrSpaceSeparated=!1;lt.prototype.mustUseProperty=!1;lt.prototype.defined=!1;var Ys={};ae(Ys,{boolean:()=>ie,booleanish:()=>Ne,commaOrSpaceSeparated:()=>gt,commaSeparated:()=>rn,number:()=>L,overloadedBoolean:()=>km,spaceSeparated:()=>Se});var n$=0,ie=ni(),Ne=ni(),km=ni(),L=ni(),Se=ni(),rn=ni(),gt=ni();function ni(){return 2**++n$}var Am=Object.keys(Ys),ii=class extends lt{constructor(t,r,n,i){let o=-1;if(super(t,r),Pk(this,"space",i),typeof n=="number")for(;++o<Am.length;){let s=Am[o];Pk(this,Am[o],(n&Ys[s])===Ys[s])}}};ii.prototype.defined=!0;function Pk(e,t,r){r&&(e[t]=r)}var i$={}.hasOwnProperty;function Ot(e){let t={},r={},n;for(n in e.properties)if(i$.call(e.properties,n)){let i=e.properties[n],o=new ii(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[Ws(n)]=n,r[Ws(o.attribute)]=n}return new Er(t,r,e.space)}var Cm=Ot({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 Tm=Ot({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Iu(e,t){return t in e?e[t]:t}function Pu(e,t){return Iu(e,t.toLowerCase())}var Em=Ot({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Pu,properties:{xmlns:null,xmlnsXLink:null}});var _m=Ot({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ne,ariaAutoComplete:null,ariaBusy:Ne,ariaChecked:Ne,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:Ne,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:Ne,ariaFlowTo:Se,ariaGrabbed:Ne,ariaHasPopup:null,ariaHidden:Ne,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:L,ariaLive:null,ariaModal:Ne,ariaMultiLine:Ne,ariaMultiSelectable:Ne,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:Ne,ariaReadOnly:Ne,ariaRelevant:null,ariaRequired:Ne,ariaRoleDescription:Se,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:Ne,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null}});var Ok=Ot({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Pu,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rn,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:Se,autoFocus:ie,autoPlay:ie,blocking:Se,capture:null,charSet:null,checked:ie,cite:null,className:Se,cols:L,colSpan:null,content:null,contentEditable:Ne,controls:ie,controlsList:Se,coords:L|rn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:km,draggable:Ne,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:Se,height:L,hidden:ie,high:L,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:Se,itemRef:Se,itemScope:ie,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,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:ie,optimum:L,pattern:null,ping:Se,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:Se,required:ie,reversed:ie,rows:L,rowSpan:L,sandbox:Se,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:Ne,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Ne,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:Ne,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:L,security:null,unselectable:null}});var Dk=Ot({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:Iu,properties:{about:gt,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:Se,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:rn,g2:rn,glyphName:rn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:gt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:L,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:gt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:gt,rev:gt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:gt,requiredFeatures:gt,requiredFonts:gt,requiredFormats:gt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:gt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:gt,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:gt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var o$=/^data[-\w.:]+$/i,Mk=/-[a-z]/g,s$=/[A-Z]/g;function Im(e,t){let r=Ws(t),n=t,i=lt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&o$.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(Mk,l$);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!Mk.test(o)){let s=o.replace(s$,a$);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=ii}return new i(n,t)}function a$(e){return"-"+e.toLowerCase()}function l$(e){return e.charAt(1).toUpperCase()}var Nk=Sm([Tm,Cm,Em,_m,Ok],"html"),Ou=Sm([Tm,Cm,Em,_m,Dk],"svg");var u$=/["&'<>`]/g,c$=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f$=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,p$=/[|\\{}()[\]^$+*?.]/g,Fk=new WeakMap;function Rk(e,t){if(e=e.replace(t.subset?h$(t.subset):u$,n),t.subset||t.escapeOnly)return e;return e.replace(c$,r).replace(f$,n);function r(i,o,s){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function n(i,o,s){return t.format(i.charCodeAt(0),s.charCodeAt(o+1),t)}}function h$(e){let t=Fk.get(e);return t||(t=m$(e),Fk.set(e,t)),t}function m$(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(p$,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var d$=/[\dA-Fa-f]/;function Lk(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!d$.test(String.fromCharCode(t))?n:n+";"}var g$=/\d/;function Bk(e,t,r){let n="&#"+String(e);return r&&t&&!g$.test(String.fromCharCode(t))?n:n+";"}var $k=["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 Du={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 Uk=["cent","copy","divide","gt","lt","not","para","times"];var jk={}.hasOwnProperty,Pm={},Mu;for(Mu in Du)jk.call(Du,Mu)&&(Pm[Du[Mu]]=Mu);var y$=/[^\dA-Za-z]/;function zk(e,t,r,n){let i=String.fromCharCode(e);if(jk.call(Pm,i)){let o=Pm[i],s="&"+o;return r&&$k.includes(o)&&!Uk.includes(o)&&(!n||t&&t!==61&&y$.test(String.fromCharCode(t)))?s:s+";"}return""}function qk(e,t,r){let n=Lk(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=zk(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){let o=Bk(e,t,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function _r(e,t){return Rk(e,Object.assign({format:qk},t))}var x$=/^>|^->|<!--|-->|--!>|<!-$/g,b$=[">"],w$=["<",">"];function Hk(e,t,r,n){return n.settings.bogusComments?"<?"+_r(e.value,Object.assign({},n.settings.characterReferences,{subset:b$}))+">":"<!--"+e.value.replace(x$,i)+"-->";function i(o){return _r(o,Object.assign({},n.settings.characterReferences,{subset:w$}))}}function Vk(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Wk(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function Yk(e){return e.join(" ").trim()}var v$=/[ \t\n\f\r]/g;function oi(e){return typeof e=="object"?e.type==="text"?Gk(e.value):!1:Gk(e)}function Gk(e){return e.replace(v$,"")===""}var Be=Jk(1),Om=Jk(-1),S$=[];function Jk(e){return t;function t(r,n,i){let o=r?r.children:S$,s=(n||0)+e,a=o[s];if(!i)for(;a&&oi(a);)s+=e,a=o[s];return a}}var k$={}.hasOwnProperty;function Nu(e){return t;function t(r,n,i){return k$.call(e,r.tagName)&&e[r.tagName](r,n,i)}}var Gs=Nu({body:C$,caption:Dm,colgroup:Dm,dd:I$,dt:_$,head:Dm,html:A$,li:E$,optgroup:P$,option:O$,p:T$,rp:Qk,rt:Qk,tbody:M$,td:Zk,tfoot:N$,th:Zk,thead:D$,tr:F$});function Dm(e,t,r){let n=Be(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&oi(n.value.charAt(0)))}function A$(e,t,r){let n=Be(r,t);return!n||n.type!=="comment"}function C$(e,t,r){let n=Be(r,t);return!n||n.type!=="comment"}function T$(e,t,r){let n=Be(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 E$(e,t,r){let n=Be(r,t);return!n||n.type==="element"&&n.tagName==="li"}function _$(e,t,r){let n=Be(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function I$(e,t,r){let n=Be(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Qk(e,t,r){let n=Be(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function P$(e,t,r){let n=Be(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function O$(e,t,r){let n=Be(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function D$(e,t,r){let n=Be(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function M$(e,t,r){let n=Be(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function N$(e,t,r){return!Be(r,t)}function F$(e,t,r){let n=Be(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function Zk(e,t,r){let n=Be(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}var Xk=Nu({body:B$,colgroup:$$,head:L$,html:R$,tbody:U$});function R$(e){let t=Be(e,-1);return!t||t.type!=="comment"}function L$(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 B$(e){let t=Be(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&oi(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function $$(e,t,r){let n=Om(r,t),i=Be(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Gs(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function U$(e,t,r){let n=Om(r,t),i=Be(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Gs(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}var Fu={name:[[`
98
+ `}),r}function EI(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Jx(e,t){let r=CI(e,t),n=r.one(e,void 0),o=TI(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return o&&("children"in i,i.children.push({type:"text",value:`
99
+ `},o)),i}var DI=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var Pn=class{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}};Pn.prototype.normal={},Pn.prototype.property={},Pn.prototype.space=void 0;function Xx(e,t){let r={},n={};for(let o of e)Object.assign(r,o.property),Object.assign(n,o.normal);return new Pn(r,n,t)}function ia(e){return e.toLowerCase()}var kt=class{constructor(t,r){this.attribute=r,this.property=t}};kt.prototype.attribute="",kt.prototype.booleanish=!1,kt.prototype.boolean=!1,kt.prototype.commaOrSpaceSeparated=!1,kt.prototype.commaSeparated=!1,kt.prototype.defined=!1,kt.prototype.mustUseProperty=!1,kt.prototype.number=!1,kt.prototype.overloadedBoolean=!1,kt.prototype.property="",kt.prototype.spaceSeparated=!1,kt.prototype.space=void 0;var jl={};le(jl,{boolean:()=>me,booleanish:()=>rt,commaOrSpaceSeparated:()=>nr,commaSeparated:()=>ko,number:()=>L,overloadedBoolean:()=>nm,spaceSeparated:()=>Ne});var _5=0,me=Ni(),rt=Ni(),nm=Ni(),L=Ni(),Ne=Ni(),ko=Ni(),nr=Ni();function Ni(){return 2**++_5}var Zx=Object.keys(jl),Pi=class extends kt{constructor(t,r,n,o){let i=-1;if(super(t,r),AI(this,"space",o),typeof n=="number")for(;++i<Zx.length;){let s=Zx[i];AI(this,Zx[i],(n&jl[s])===jl[s])}}};Pi.prototype.defined=!0;function AI(e,t,r){r&&(e[t]=r)}function kr(e){let t={},r={};for(let[n,o]of Object.entries(e.properties)){let i=new Pi(n,e.transform(e.attributes||{},n),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[ia(n)]=n,r[ia(i.attribute)]=n}return new Pn(t,r,e.space)}var Kx=kr({properties:{ariaActiveDescendant:null,ariaAtomic:rt,ariaAutoComplete:null,ariaBusy:rt,ariaChecked:rt,ariaColCount:L,ariaColIndex:L,ariaColSpan:L,ariaControls:Ne,ariaCurrent:null,ariaDescribedBy:Ne,ariaDetails:null,ariaDisabled:rt,ariaDropEffect:Ne,ariaErrorMessage:null,ariaExpanded:rt,ariaFlowTo:Ne,ariaGrabbed:rt,ariaHasPopup:null,ariaHidden:rt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ne,ariaLevel:L,ariaLive:null,ariaModal:rt,ariaMultiLine:rt,ariaMultiSelectable:rt,ariaOrientation:null,ariaOwns:Ne,ariaPlaceholder:null,ariaPosInSet:L,ariaPressed:rt,ariaReadOnly:rt,ariaRelevant:null,ariaRequired:rt,ariaRoleDescription:Ne,ariaRowCount:L,ariaRowIndex:L,ariaRowSpan:L,ariaSelected:rt,ariaSetSize:L,ariaSort:null,ariaValueMax:L,ariaValueMin:L,ariaValueNow:L,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function om(e,t){return t in e?e[t]:t}function im(e,t){return om(e,t.toLowerCase())}var II=kr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ko,acceptCharset:Ne,accessKey:Ne,action:null,allow:null,allowFullScreen:me,allowPaymentRequest:me,allowUserMedia:me,alt:null,as:null,async:me,autoCapitalize:null,autoComplete:Ne,autoFocus:me,autoPlay:me,blocking:Ne,capture:null,charSet:null,checked:me,cite:null,className:Ne,cols:L,colSpan:null,content:null,contentEditable:rt,controls:me,controlsList:Ne,coords:L|ko,crossOrigin:null,data:null,dateTime:null,decoding:null,default:me,defer:me,dir:null,dirName:null,disabled:me,download:nm,draggable:rt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:me,formTarget:null,headers:Ne,height:L,hidden:nm,high:L,href:null,hrefLang:null,htmlFor:Ne,httpEquiv:Ne,id:null,imageSizes:null,imageSrcSet:null,inert:me,inputMode:null,integrity:null,is:null,isMap:me,itemId:null,itemProp:Ne,itemRef:Ne,itemScope:me,itemType:Ne,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:me,low:L,manifest:null,max:null,maxLength:L,media:null,method:null,min:null,minLength:L,multiple:me,muted:me,name:null,nonce:null,noModule:me,noValidate:me,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:me,optimum:L,pattern:null,ping:Ne,placeholder:null,playsInline:me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:me,referrerPolicy:null,rel:Ne,required:me,reversed:me,rows:L,rowSpan:L,sandbox:Ne,scope:null,scoped:me,seamless:me,selected:me,shadowRootClonable:me,shadowRootDelegatesFocus:me,shadowRootMode:null,shape:null,size:L,sizes:null,slot:null,span:L,spellCheck:rt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:L,step:null,style:null,tabIndex:L,target:null,title:null,translate:null,type:null,typeMustMatch:me,useMap:null,value:rt,width:L,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ne,axis:null,background:null,bgColor:null,border:L,borderColor:null,bottomMargin:L,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:me,declare:me,event:null,face:null,frame:null,frameBorder:null,hSpace:L,leftMargin:L,link:null,longDesc:null,lowSrc:null,marginHeight:L,marginWidth:L,noResize:me,noHref:me,noShade:me,noWrap:me,object:null,profile:null,prompt:null,rev:null,rightMargin:L,rules:null,scheme:null,scrolling:rt,standby:null,summary:null,text:null,topMargin:L,valueType:null,version:null,vAlign:null,vLink:null,vSpace:L,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:me,disableRemotePlayback:me,prefix:null,property:null,results:L,security:null,unselectable:null},space:"html",transform:im});var MI=kr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:nr,accentHeight:L,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:L,amplitude:L,arabicForm:null,ascent:L,attributeName:null,attributeType:null,azimuth:L,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:L,by:null,calcMode:null,capHeight:L,className:Ne,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:L,diffuseConstant:L,direction:null,display:null,dur:null,divisor:L,dominantBaseline:null,download:me,dx:null,dy:null,edgeMode:null,editable:null,elevation:L,enableBackground:null,end:null,event:null,exponent:L,externalResourcesRequired:null,fill:null,fillOpacity:L,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ko,g2:ko,glyphName:ko,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:L,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:L,horizOriginX:L,horizOriginY:L,id:null,ideographic:L,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:L,k:L,k1:L,k2:L,k3:L,k4:L,kernelMatrix:nr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:L,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:L,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:L,overlineThickness:L,paintOrder:null,panose1:null,path:null,pathLength:L,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ne,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:L,pointsAtY:L,pointsAtZ:L,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nr,rev:nr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nr,requiredFeatures:nr,requiredFonts:nr,requiredFormats:nr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:L,specularExponent:L,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:L,strikethroughThickness:L,string:null,stroke:null,strokeDashArray:nr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:L,strokeOpacity:L,strokeWidth:null,style:null,surfaceScale:L,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nr,tabIndex:L,tableValues:null,target:null,targetX:L,targetY:L,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:L,underlineThickness:L,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:L,values:null,vAlphabetic:L,vMathematical:L,vectorEffect:null,vHanging:L,vIdeographic:L,version:null,vertAdvY:L,vertOriginX:L,vertOriginY:L,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:L,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:om});var ey=kr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var ty=kr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:im});var ry=kr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var O5=/[A-Z]/g,_I=/-[a-z]/g,N5=/^data[-\w.:]+$/i;function ny(e,t){let r=ia(t),n=t,o=kt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&N5.test(t)){if(t.charAt(4)==="-"){let i=t.slice(5).replace(_I,F5);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{let i=t.slice(4);if(!_I.test(i)){let s=i.replace(O5,P5);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Pi}return new o(n,t)}function P5(e){return"-"+e.toLowerCase()}function F5(e){return e.charAt(1).toUpperCase()}var OI=Xx([Kx,II,ey,ty,ry],"html"),sm=Xx([Kx,MI,ey,ty,ry],"svg");var L5=/["&'<>`]/g,R5=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,B5=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,$5=/[|\\{}()[\]^$+*?.]/g,NI=new WeakMap;function oy(e,t){if(e=e.replace(t.subset?z5(t.subset):L5,n),t.subset||t.escapeOnly)return e;return e.replace(R5,r).replace(B5,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 z5(e){let t=NI.get(e);return t||(t=H5(e),NI.set(e,t)),t}function H5(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace($5,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var U5=/[\dA-Fa-f]/;function PI(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!U5.test(String.fromCharCode(t))?n:n+";"}var j5=/\d/;function FI(e,t,r){let n="&#"+String(e);return r&&t&&!j5.test(String.fromCharCode(t))?n:n+";"}var LI=["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 am={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 RI=["cent","copy","divide","gt","lt","not","para","times"];var BI={}.hasOwnProperty,iy={},lm;for(lm in am)BI.call(am,lm)&&(iy[am[lm]]=lm);var W5=/[^\dA-Za-z]/;function $I(e,t,r,n){let o=String.fromCharCode(e);if(BI.call(iy,o)){let i=iy[o],s="&"+i;return r&&LI.includes(i)&&!RI.includes(i)&&(!n||t&&t!==61&&W5.test(String.fromCharCode(t)))?s:s+";"}return""}function zI(e,t,r){let n=PI(e,t,r.omitOptionalSemicolons),o;if((r.useNamedReferences||r.useShortestReferences)&&(o=$I(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!o)&&r.useShortestReferences){let i=FI(e,t,r.omitOptionalSemicolons);i.length<n.length&&(n=i)}return o&&(!r.useShortestReferences||o.length<n.length)?o:n}function HI(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Fn(e,t){return oy(e,Object.assign({format:zI},t))}function E4e(e,t){return oy(e,Object.assign({format:HI},t))}var q5=/^>|^->|<!--|-->|--!>|<!-$/g,Y5=[">"],V5=["<",">"];function UI(e,t,r,n){return n.settings.bogusComments?"<?"+Fn(e.value,Object.assign({},n.settings.characterReferences,{subset:Y5}))+">":"<!--"+e.value.replace(q5,o)+"-->";function o(i){return Fn(i,Object.assign({},n.settings.characterReferences,{subset:V5}))}}function jI(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function M4e(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 WI(e,t){let r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function O4e(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function qI(e){return e.join(" ").trim()}var G5=/[ \t\n\f\r]/g;function Fi(e){return typeof e=="object"?e.type==="text"?YI(e.value):!1:YI(e)}function YI(e){return e.replace(G5,"")===""}var it=VI(1),sy=VI(-1),Q5=[];function VI(e){return t;function t(r,n,o){let i=r?r.children:Q5,s=(n||0)+e,a=i[s];if(!o)for(;a&&Fi(a);)s+=e,a=i[s];return a}}var J5={}.hasOwnProperty;function um(e){return t;function t(r,n,o){return J5.call(e,r.tagName)&&e[r.tagName](r,n,o)}}var Wl=um({body:Z5,caption:ay,colgroup:ay,dd:rW,dt:tW,head:ay,html:X5,li:eW,optgroup:nW,option:oW,p:K5,rp:GI,rt:GI,tbody:sW,td:QI,tfoot:aW,th:QI,thead:iW,tr:lW});function ay(e,t,r){let n=it(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Fi(n.value.charAt(0)))}function X5(e,t,r){let n=it(r,t);return!n||n.type!=="comment"}function Z5(e,t,r){let n=it(r,t);return!n||n.type!=="comment"}function K5(e,t,r){let n=it(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 eW(e,t,r){let n=it(r,t);return!n||n.type==="element"&&n.tagName==="li"}function tW(e,t,r){let n=it(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function rW(e,t,r){let n=it(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function GI(e,t,r){let n=it(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function nW(e,t,r){let n=it(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function oW(e,t,r){let n=it(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function iW(e,t,r){let n=it(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function sW(e,t,r){let n=it(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function aW(e,t,r){return!it(r,t)}function lW(e,t,r){let n=it(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function QI(e,t,r){let n=it(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}var JI=um({body:fW,colgroup:pW,head:cW,html:uW,tbody:mW});function uW(e){let t=it(e,-1);return!t||t.type!=="comment"}function cW(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 fW(e){let t=it(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Fi(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function pW(e,t,r){let n=sy(r,t),o=it(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Wl(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function mW(e,t,r){let n=sy(r,t),o=it(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Wl(n,r.children.indexOf(n),r)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}var cm={name:[[`
101
100
  \f\r &/=>`.split(""),`
102
101
  \f\r "&'/=>\``.split("")],[`\0
103
102
  \f\r "&'/<=>`.split(""),`\0
@@ -105,56 +104,56 @@ ${i}
105
104
  \f\r &>`.split(""),`\0
106
105
  \f\r "&'<=>\``.split("")],[`\0
107
106
  \f\r "&'<=>\``.split(""),`\0
108
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Kk(e,t,r,n){let i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags,s=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),a=[],l;i.space==="html"&&e.tagName==="svg"&&(n.schema=Ou);let u=j$(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(s=!1),(u||!o||!Xk(e,t,r))&&(a.push("<",e.tagName,u?" "+u:""),s&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(c),!s&&(!o||!Gs(e,t,r))&&a.push("</"+e.tagName+">"),a.join("")}function j$(e,t){let r=[],n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let o=z$(e,i,t[i]);o&&r.push(o)}}for(;++n<r.length;){let o=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&o!=='"'&&o!=="'"&&(r[n]+=" ")}return r.join("")}function z$(e,t,r){let n=Im(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1,s=e.quote,a;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean&&typeof r!="string")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let l=_r(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Fu.name[i][o]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?Wk:Yk)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(a=_r(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Fu.unquoted[i][o]}))),a!==r&&(e.settings.quoteSmart&&to(r,s)>to(r,e.alternative)&&(s=e.alternative),a=s+_r(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Fu.single:Fu.double)[i][o],attribute:!0}))+s),l+(a&&"="+a))}var q$=["<","&"];function Ru(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:_r(e.value,Object.assign({},n.settings.characterReferences,{subset:q$}))}function eA(e,t,r,n){return n.settings.allowDangerousHtml?e.value:Ru(e,t,r,n)}function tA(e,t,r,n){return n.all(e)}var rA=eu("type",{invalid:H$,unknown:V$,handlers:{comment:Hk,doctype:Vk,element:Kk,raw:eA,root:tA,text:Ru}});function H$(e){throw new Error("Expected node, not `"+e+"`")}function V$(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var W$={},Y$={},G$=[];function Mm(e,t){let r=t||W$,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:J$,all:Q$,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||Ik,characterReferences:r.characterReferences||Y$,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Ou:Nk,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function J$(e,t,r){return rA(e,t,r,this)}function Q$(e){let t=[],r=e&&e.children||G$,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}var Z$={};function Js(e){let t=this,{handlers:r,sanitize:n,...i}=e||Z$,o=!1,s;typeof n=="boolean"?o=!n:n&&(s=n),t.compiler=a;function a(l,u){let c=vm(l,{handlers:r,allowDangerousHtml:o}),f=o?c:bm(c,s),p=Mm(f,{...i,allowDangerousHtml:o});return u.extname&&(u.extname=".html"),l&&l.type==="root"&&p&&/[^\r\n]/.test(p.charAt(p.length-1))?p+`
109
- `:p}}function Qs(e){let t=this;t.compiler=r;function r(n){return Ph(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function X$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}function Lm(e,t){return Array(t+1).join(e)}function K$(e){return e.replace(/^\n*/,"")}function e3(e){for(var t=e.length;t>0&&e[t-1]===`
110
- `;)t--;return e.substring(0,t)}var t3=["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 Bm(e){return $m(e,t3)}var oA=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function sA(e){return $m(e,oA)}function r3(e){return lA(e,oA)}var aA=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function n3(e){return $m(e,aA)}function i3(e){return lA(e,aA)}function $m(e,t){return t.indexOf(e.nodeName)>=0}function lA(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var ut={};ut.paragraph={filter:"p",replacement:function(e){return`
107
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function XI(e,t,r,n){let o=n.schema,i=o.space==="svg"?!1:n.settings.omitOptionalTags,s=o.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),a=[],l;o.space==="html"&&e.tagName==="svg"&&(n.schema=sm);let u=hW(n,e.properties),c=n.all(o.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=o,c&&(s=!1),(u||!i||!JI(e,t,r))&&(a.push("<",e.tagName,u?" "+u:""),s&&(o.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(c),!s&&(!i||!Wl(e,t,r))&&a.push("</"+e.tagName+">"),a.join("")}function hW(e,t){let r=[],n=-1,o;if(t){for(o in t)if(t[o]!==null&&t[o]!==void 0){let i=dW(e,o,t[o]);i&&r.push(i)}}for(;++n<r.length;){let i=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&i!=='"'&&i!=="'"&&(r[n]+=" ")}return r.join("")}function dW(e,t,r){let n=ny(e.schema,t),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1,s=e.quote,a;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 l=Fn(n.attribute,Object.assign({},e.settings.characterReferences,{subset:cm.name[o][i]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?WI:qI)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(a=Fn(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:cm.unquoted[o][i]}))),a!==r&&(e.settings.quoteSmart&&Vs(r,s)>Vs(r,e.alternative)&&(s=e.alternative),a=s+Fn(r,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?cm.single:cm.double)[o][i],attribute:!0}))+s),l+(a&&"="+a))}var gW=["<","&"];function fm(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Fn(e.value,Object.assign({},n.settings.characterReferences,{subset:gW}))}function ZI(e,t,r,n){return n.settings.allowDangerousHtml?e.value:fm(e,t,r,n)}function KI(e,t,r,n){return n.all(e)}var eM=Ep("type",{invalid:xW,unknown:yW,handlers:{comment:UI,doctype:jI,element:XI,raw:ZI,root:KI,text:fm}});function xW(e){throw new Error("Expected node, not `"+e+"`")}function yW(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var bW={},wW={},vW=[];function ly(e,t){let r=t||bW,n=r.quote||'"',o=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:SW,all:kW,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||DI,characterReferences:r.characterReferences||wW,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?sm:OI,quote:n,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function SW(e,t,r){return eM(e,t,r,this)}function kW(e){let t=[],r=e&&e.children||vW,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}var TW={};function sa(e){let t=this,{handlers:r,sanitize:n,...o}=e||TW,i=!1,s;typeof n=="boolean"?i=!n:n&&(s=n),t.compiler=a;function a(l,u){let c=Jx(l,{handlers:r,allowDangerousHtml:i}),f=i?c:Vx(c,s),p=ly(f,{...o,allowDangerousHtml:i});return u.extname&&(u.extname=".html"),l&&l.type==="root"&&p&&/[^\r\n]/.test(p.charAt(p.length-1))?p+`
108
+ `:p}}function aa(e){let t=this;t.compiler=r;function r(n){return ex(n,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function EW(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}function uy(e,t){return Array(t+1).join(e)}function tM(e){return e.replace(/^\n*/,"")}function rM(e){for(var t=e.length;t>0&&e[t-1]===`
109
+ `;)t--;return e.substring(0,t)}function nM(e){return rM(tM(e))}var CW=["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 cy(e){return fy(e,CW)}var oM=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function iM(e){return fy(e,oM)}function DW(e){return aM(e,oM)}var sM=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function AW(e){return fy(e,sM)}function IW(e){return aM(e,sM)}function fy(e,t){return t.indexOf(e.nodeName)>=0}function aM(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var Bt={};Bt.paragraph={filter:"p",replacement:function(e){return`
111
110
 
112
111
  `+e+`
113
112
 
114
- `}};ut.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+`
115
- `}};ut.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var n=Number(t.nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var i=Lm(n===1?"=":"-",e.length);return`
113
+ `}},Bt.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+`
114
+ `}},Bt.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var n=Number(t.nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var o=uy(n===1?"=":"-",e.length);return`
116
115
 
117
116
  `+e+`
118
- `+i+`
117
+ `+o+`
119
118
 
120
119
  `}else return`
121
120
 
122
- `+Lm("#",n)+" "+e+`
121
+ `+uy("#",n)+" "+e+`
123
122
 
124
- `}};ut.blockquote={filter:"blockquote",replacement:function(e){return e=e.replace(/^\n+|\n+$/g,""),e=e.replace(/^/gm,"> "),`
123
+ `}},Bt.blockquote={filter:"blockquote",replacement:function(e){return e=nM(e).replace(/^/gm,"> "),`
125
124
 
126
125
  `+e+`
127
126
 
128
- `}};ut.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return r.nodeName==="LI"&&r.lastElementChild===t?`
127
+ `}},Bt.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return r.nodeName==="LI"&&r.lastElementChild===t?`
129
128
  `+e:`
130
129
 
131
130
  `+e+`
132
131
 
133
- `}};ut.listItem={filter:"li",replacement:function(e,t,r){e=e.replace(/^\n+/,"").replace(/\n+$/,`
134
- `).replace(/\n/gm,`
135
- `);var n=r.bulletListMarker+" ",i=t.parentNode;if(i.nodeName==="OL"){var o=i.getAttribute("start"),s=Array.prototype.indexOf.call(i.children,t);n=(o?Number(o)+s:s+1)+". "}return n+e+(t.nextSibling&&!/\n$/.test(e)?`
136
- `:"")}};ut.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){return`
132
+ `}},Bt.listItem={filter:"li",replacement:function(e,t,r){var n=r.bulletListMarker+" ",o=t.parentNode;if(o.nodeName==="OL"){var i=o.getAttribute("start"),s=Array.prototype.indexOf.call(o.children,t);n=(i?Number(i)+s:s+1)+". "}var a=/\n$/.test(e);return e=nM(e)+(a?`
133
+ `:""),e=e.replace(/\n/gm,`
134
+ `+" ".repeat(n.length)),n+e+(t.nextSibling?`
135
+ `:"")}},Bt.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){return`
137
136
 
138
137
  `+t.firstChild.textContent.replace(/\n/g,`
139
138
  `)+`
140
139
 
141
- `}};ut.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",i=(n.match(/language-(\S+)/)||[null,""])[1],o=t.firstChild.textContent,s=r.fence.charAt(0),a=3,l=new RegExp("^"+s+"{3,}","gm"),u;u=l.exec(o);)u[0].length>=a&&(a=u[0].length+1);var c=Lm(s,a);return`
140
+ `}},Bt.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",o=(n.match(/language-(\S+)/)||[null,""])[1],i=t.firstChild.textContent,s=r.fence.charAt(0),a=3,l=new RegExp("^"+s+"{3,}","gm"),u;u=l.exec(i);)u[0].length>=a&&(a=u[0].length+1);var c=uy(s,a);return`
142
141
 
143
- `+c+i+`
144
- `+o.replace(/\n$/,"")+`
142
+ `+c+o+`
143
+ `+i.replace(/\n$/,"")+`
145
144
  `+c+`
146
145
 
147
- `}};ut.horizontalRule={filter:"hr",replacement:function(e,t,r){return`
146
+ `}},Bt.horizontalRule={filter:"hr",replacement:function(e,t,r){return`
148
147
 
149
148
  `+r.hr+`
150
149
 
151
- `}};ut.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var r=t.getAttribute("href");r&&(r=r.replace(/([()])/g,"\\$1"));var n=Lu(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"}};ut.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,r){var n=t.getAttribute("href"),i=Lu(t.getAttribute("title"));i&&(i=' "'+i+'"');var o,s;switch(r.linkReferenceStyle){case"collapsed":o="["+e+"][]",s="["+e+"]: "+n+i;break;case"shortcut":o="["+e+"]",s="["+e+"]: "+n+i;break;default:var a=this.references.length+1;o="["+e+"]["+a+"]",s="["+a+"]: "+n+i}return this.references.push(s),o},references:[],append:function(e){var t="";return this.references.length&&(t=`
150
+ `}},Bt.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var r=t.getAttribute("href");r&&(r=r.replace(/([()])/g,"\\$1"));var n=pm(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"}},Bt.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,r){var n=t.getAttribute("href"),o=pm(t.getAttribute("title"));o&&(o=' "'+o+'"');var i,s;switch(r.linkReferenceStyle){case"collapsed":i="["+e+"][]",s="["+e+"]: "+n+o;break;case"shortcut":i="["+e+"]",s="["+e+"]: "+n+o;break;default:var a=this.references.length+1;i="["+e+"]["+a+"]",s="["+a+"]: "+n+o}return this.references.push(s),i},references:[],append:function(e){var t="";return this.references.length&&(t=`
152
151
 
153
152
  `+this.references.join(`
154
153
  `)+`
155
154
 
156
- `,this.references=[]),t}};ut.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}};ut.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}};ut.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r}};ut.image={filter:"img",replacement:function(e,t){var r=Lu(t.getAttribute("alt")),n=t.getAttribute("src")||"",i=Lu(t.getAttribute("title")),o=i?' "'+i+'"':"";return n?"!["+r+"]("+n+o+")":""}};function Lu(e){return e?e.replace(/(\n+\s*)+/g,`
157
- `):""}function uA(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}uA.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=Nm(this.array,e,this.options))||(t=Nm(this._keep,e,this.options))||(t=Nm(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function Nm(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];if(o3(i,t,r))return i}}function o3(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function s3(e){var t=e.element,r=e.isBlock,n=e.isVoid,i=e.isPre||function(f){return f.nodeName==="PRE"};if(!(!t.firstChild||i(t))){for(var o=null,s=!1,a=null,l=nA(a,t,i);l!==t;){if(l.nodeType===3||l.nodeType===4){var u=l.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!s&&u[0]===" "&&(u=u.substr(1)),!u){l=Fm(l);continue}l.data=u,o=l}else if(l.nodeType===1)r(l)||l.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,s=!1):n(l)||i(l)?(o=null,s=!0):o&&(s=!1);else{l=Fm(l);continue}var c=nA(a,l,i);a=l,l=c}o&&(o.data=o.data.replace(/ $/,""),o.data||Fm(o))}}function Fm(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function nA(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var Um=typeof window<"u"?window:{};function a3(){var e=Um.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function l3(){var e=function(){};return u3()?e.prototype.parseFromString=function(t){var r=new window.ActiveXObject("htmlfile");return r.designMode="on",r.open(),r.write(t),r.close(),r}:e.prototype.parseFromString=function(t){var r=document.implementation.createHTMLDocument("");return r.open(),r.write(t),r.close(),r},e}function u3(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch{Um.ActiveXObject&&(e=!0)}return e}var c3=a3()?Um.DOMParser:l3();function f3(e,t){var r;if(typeof e=="string"){var n=p3().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return s3({element:r,isBlock:Bm,isVoid:sA,isPre:t.preformattedCode?h3:null}),r}var Rm;function p3(){return Rm=Rm||new c3,Rm}function h3(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function m3(e,t){return e.isBlock=Bm(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=d3(e),e.flankingWhitespace=g3(e,t),e}function d3(e){return!sA(e)&&!n3(e)&&/^\s*$/i.test(e.textContent)&&!r3(e)&&!i3(e)}function g3(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=y3(e.textContent);return r.leadingAscii&&iA("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&iA("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function y3(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function iA(e,t,r){var n,i,o;return e==="left"?(n=t.previousSibling,i=/ $/):(n=t.nextSibling,i=/^ /),n&&(n.nodeType===3?o=i.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?o=!1:n.nodeType===1&&!Bm(n)&&(o=i.test(n.textContent))),o}var x3=Array.prototype.reduce,b3=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Bu(e){if(!(this instanceof Bu))return new Bu(e);var t={rules:ut,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
155
+ `,this.references=[]),t}},Bt.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}},Bt.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}},Bt.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r}},Bt.image={filter:"img",replacement:function(e,t){var r=pm(t.getAttribute("alt")),n=t.getAttribute("src")||"",o=pm(t.getAttribute("title")),i=o?' "'+o+'"':"";return n?"!["+r+"]("+n+i+")":""}};function pm(e){return e?e.replace(/(\n+\s*)+/g,`
156
+ `):""}function lM(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}lM.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=py(this.array,e,this.options))||(t=py(this._keep,e,this.options))||(t=py(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function py(e,t,r){for(var n=0;n<e.length;n++){var o=e[n];if(MW(o,t,r))return o}}function MW(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function _W(e){var t=e.element,r=e.isBlock,n=e.isVoid,o=e.isPre||function(f){return f.nodeName==="PRE"};if(!(!t.firstChild||o(t))){for(var i=null,s=!1,a=null,l=uM(a,t,o);l!==t;){if(l.nodeType===3||l.nodeType===4){var u=l.data.replace(/[ \r\n\t]+/g," ");if((!i||/ $/.test(i.data))&&!s&&u[0]===" "&&(u=u.substr(1)),!u){l=my(l);continue}l.data=u,i=l}else if(l.nodeType===1)r(l)||l.nodeName==="BR"?(i&&(i.data=i.data.replace(/ $/,"")),i=null,s=!1):n(l)||o(l)?(i=null,s=!0):i&&(s=!1);else{l=my(l);continue}var c=uM(a,l,o);a=l,l=c}i&&(i.data=i.data.replace(/ $/,""),i.data||my(i))}}function my(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function uM(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var hy=typeof window<"u"?window:{};function OW(){var e=hy.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function NW(){var e=function(){};return PW()?e.prototype.parseFromString=function(t){var r=new window.ActiveXObject("htmlfile");return r.designMode="on",r.open(),r.write(t),r.close(),r}:e.prototype.parseFromString=function(t){var r=document.implementation.createHTMLDocument("");return r.open(),r.write(t),r.close(),r},e}function PW(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch{hy.ActiveXObject&&(e=!0)}return e}var FW=OW()?hy.DOMParser:NW();function LW(e,t){var r;if(typeof e=="string"){var n=RW().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return _W({element:r,isBlock:cy,isVoid:iM,isPre:t.preformattedCode?BW:null}),r}var dy;function RW(){return dy=dy||new FW,dy}function BW(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function $W(e,t){return e.isBlock=cy(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=zW(e),e.flankingWhitespace=HW(e,t),e}function zW(e){return!iM(e)&&!AW(e)&&/^\s*$/i.test(e.textContent)&&!DW(e)&&!IW(e)}function HW(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=UW(e.textContent);return r.leadingAscii&&cM("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&cM("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function UW(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function cM(e,t,r){var n,o,i;return e==="left"?(n=t.previousSibling,o=/ $/):(n=t.nextSibling,o=/^ /),n&&(n.nodeType===3?i=o.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?i=!1:n.nodeType===1&&!cy(n)&&(i=o.test(n.textContent))),i}var jW=Array.prototype.reduce,WW=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function mm(e){if(!(this instanceof mm))return new mm(e);var t={rules:Bt,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
158
157
 
159
158
  `:""},keepReplacement:function(r,n){return n.isBlock?`
160
159
 
@@ -164,59 +163,59 @@ ${i}
164
163
 
165
164
  `+r+`
166
165
 
167
- `:r}};this.options=X$({},t,e),this.rules=new uA(this.options)}Bu.prototype={turndown:function(e){if(!S3(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=cA.call(this,new f3(e,this.options));return w3.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return b3.reduce(function(t,r){return t.replace(r[0],r[1])},e)}};function cA(e){var t=this;return x3.call(e.childNodes,function(r,n){n=new m3(n,t.options);var i="";return n.nodeType===3?i=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(i=v3.call(t,n)),fA(r,i)},"")}function w3(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=fA(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function v3(e){var t=this.rules.forNode(e),r=cA.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function fA(e,t){var r=e3(e),n=K$(t),i=Math.max(e.length-r.length,t.length-n.length),o=`
166
+ `:r}};this.options=EW({},t,e),this.rules=new lM(this.options)}mm.prototype={turndown:function(e){if(!VW(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=fM.call(this,new LW(e,this.options));return qW.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return WW.reduce(function(t,r){return t.replace(r[0],r[1])},e)}};function fM(e){var t=this;return jW.call(e.childNodes,function(r,n){n=new $W(n,t.options);var o="";return n.nodeType===3?o=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(o=YW.call(t,n)),pM(r,o)},"")}function qW(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=pM(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function YW(e){var t=this.rules.forNode(e),r=fM.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function pM(e,t){var r=rM(e),n=tM(t),o=Math.max(e.length-r.length,t.length-n.length),i=`
168
167
 
169
- `.substring(0,i);return r+o+n}function S3(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var jm=Bu;var $u={};ae($u,{gfm:()=>T3,highlightedCodeBlock:()=>hA,strikethrough:()=>mA,tables:()=>gA,taskListItems:()=>yA});var pA=/highlight-(?:text|source)-([a-z0-9]+)/;function hA(e){e.addRule("highlightedCodeBlock",{filter:function(t){var r=t.firstChild;return t.nodeName==="DIV"&&pA.test(t.className)&&r&&r.nodeName==="PRE"},replacement:function(t,r,n){var i=r.className||"",o=(i.match(pA)||[null,""])[1];return`
168
+ `.substring(0,o);return r+i+n}function VW(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}var hm=mm;var ql={};le(ql,{gfm:()=>dM,highlightedCodeBlock:()=>xy,strikethrough:()=>yy,tables:()=>by,taskListItems:()=>wy});var mM=/highlight-(?:text|source)-([a-z0-9]+)/;function xy(e){e.addRule("highlightedCodeBlock",{filter:function(t){var r=t.firstChild;return t.nodeName==="DIV"&&mM.test(t.className)&&r&&r.nodeName==="PRE"},replacement:function(t,r,n){var o=r.className||"",i=(o.match(mM)||[null,""])[1];return`
170
169
 
171
- `+n.fence+o+`
170
+ `+n.fence+i+`
172
171
  `+r.firstChild.textContent+`
173
172
  `+n.fence+`
174
173
 
175
- `}})}function mA(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return"~"+t+"~"}})}var k3=Array.prototype.indexOf,A3=Array.prototype.every,uo={};uo.tableCell={filter:["th","td"],replacement:function(e,t){return dA(e,t)}};uo.tableRow={filter:"tr",replacement:function(e,t){var r="",n={left:":--",right:"--:",center:":-:"};if(zm(t))for(var i=0;i<t.childNodes.length;i++){var o="---",s=(t.childNodes[i].getAttribute("align")||"").toLowerCase();s&&(o=n[s]||o),r+=dA(o,t.childNodes[i])}return`
174
+ `}})}function yy(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return"~"+t+"~"}})}var GW=Array.prototype.indexOf,QW=Array.prototype.every,la={};la.tableCell={filter:["th","td"],replacement:function(e,t){return hM(e,t)}},la.tableRow={filter:"tr",replacement:function(e,t){var r="",n={left:":--",right:"--:",center:":-:"};if(gy(t))for(var o=0;o<t.childNodes.length;o++){var i="---",s=(t.childNodes[o].getAttribute("align")||"").toLowerCase();s&&(i=n[s]||i),r+=hM(i,t.childNodes[o])}return`
176
175
  `+e+(r?`
177
- `+r:"")}};uo.table={filter:function(e){return e.nodeName==="TABLE"&&zm(e.rows[0])},replacement:function(e){return e=e.replace(`
176
+ `+r:"")}},la.table={filter:function(e){return e.nodeName==="TABLE"&&gy(e.rows[0])},replacement:function(e){return e=e.replace(`
178
177
 
179
178
  `,`
180
179
  `),`
181
180
 
182
181
  `+e+`
183
182
 
184
- `}};uo.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function zm(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||C3(t))&&A3.call(e.childNodes,function(r){return r.nodeName==="TH"})}function C3(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function dA(e,t){var r=k3.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}function gA(e){e.keep(function(r){return r.nodeName==="TABLE"&&!zm(r.rows[0])});for(var t in uo)e.addRule(t,uo[t])}function yA(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,r){return(r.checked?"[x]":"[ ]")+" "}})}function T3(e){e.use([hA,mA,gA,yA])}var Uu=class e{static async createFromMarkdownString(t){let r=new e;return await r.updateFromMarkdownString(t),r}async updateFromMarkdownString(t){let r,n=await Ql().use(Ls).use(Rs).use($s,["yaml","toml"]).use(Qs).use(Js).use(()=>i=>{console.dir(i);let o=i.children.find(s=>s.type==="yaml");o&&(r=o.value)}).process(t);this.html=n.toString(),r?this.frontmatterData=await xA.yamlStringToObject(r):this.frontmatterData={}}};var qm=class e{static async easyMarkdownToHtml(t){return(await new e().getMdParsedResultFromMarkdown(t)).html}constructor(){}async getMdParsedResultFromMarkdown(t){return await Uu.createFromMarkdownString(t)}htmlToMarkdown(t){let r=new jm({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use($u.gfm),r.turndown(t)}};var fo={};ae(fo,{SmartRouter:()=>Jm});var AA=Ue(kA(),1);var Hu=class{constructor(){}getAllAsObject(){let t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())}setQueryParam(t,r,n="replace"){var i=new URLSearchParams(window.location.search);i.set(t,r),n==="push"?history.pushState(null,null,"?"+i.toString()):history.replaceState(null,null,"?"+i.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 Jm=class e{constructor(t,r=""){this.options={debug:!1},this.queryParams=new Hu,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}`,i={matchFunction:AA.match(n),handler:r};return this.routes.push(i),()=>{this.routes.splice(this.routes.indexOf(i),1)}}async _handleRouteState(){let t=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(t));for(let n of r){let i=n.matchFunction(t);n.handler({...i.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}destroy(){window.removeEventListener("popstate",this.popstateListener),this.routes=[]}};var po={};ae(po,{Smartstate:()=>Zm,StateAction:()=>Zs,StatePart:()=>Xs});var Yu={};ae(Yu,{sha256FromString:()=>z3});var Wu={};ae(Wu,{Smartenv:()=>Qm});var TA=Ue(CA(),1);var Qm=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){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${t}`);return}return new Function(`return import('${t}')`)()}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=TA.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let i=document.createElement("script");i.onload=()=>{n.resolve()},i.src=t,document.head.appendChild(i)}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 j3=e=>{let t=[],r=new DataView(e);for(let n=0;n<r.byteLength;n+=4){let o=r.getUint32(n).toString(16),s="00000000",a=(s+o).slice(-s.length);t.push(a)}return t.join("")},z3=async e=>{let t=new Wu.Smartenv;if(t.isBrowser){let r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r);return j3(n)}else if(t.isNode)return await(await t.getSafeNodeModule("@pushrocks/smarthash")).sha256FromString(e)};var Zs=class{constructor(t,r){this.statePartRef=t,this.actionDef=r}trigger(t){this.statePartRef.dispatchAction(this,t)}};var Xs=class{constructor(t,r){this.state=new Ae.rxjs.Subject,this.cumulativeDeferred=ne.cumulativeDefer(),this.webStore=null,this.name=t,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Wr.WebStore(this.webStoreOptions),await this.webStore.init();let t=await this.webStore.get(String(this.name));t&&(this.stateStore=t,this.notifyChange())}}getState(){return this.stateStore}async setState(t){return this.stateStore=t,this.notifyChange(),this.webStore&&await this.webStore.set(String(this.name),t),this.stateStore}notifyChange(){let t=r=>Yu.sha256FromString(Oe.stringify(r));this.stateStore&&this.lastStateNotificationPayloadHash&&t(this.stateStore)===this.lastStateNotificationPayloadHash||(this.lastStateNotificationPayloadHash=this.stateStore,this.state.next(this.stateStore))}notifyChangeCumulative(){setTimeout(()=>this.state.next(this.stateStore),0)}select(t){return t||(t=n=>n),this.state.pipe(Ae.rxjs.ops.startWith(this.getState()),Ae.rxjs.ops.map(n=>{try{return t(n)}catch{}}))}createAction(t){return new Zs(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=ne.defer(),i=this.select(t).subscribe(async s=>{s&&r.resolve(s)}),o=await r.promise;return i.unsubscribe(),o}async stateSetup(t){let r=t(this);this.cumulativeDeferred.addPromise(r),this.setState(await r)}};var Zm=class{constructor(){this.statePartMap={}}async getStatePart(t,r,n){if(this.statePartMap[t]){if(r&&(!n||n!=="soft"))throw new Error(`${t} already exists, yet you try to set an initial state again`);return this.statePartMap[t]}else{if(!r)throw new Error(`${t} does not yet exist, yet you don't provide an initial state`);return this.createStatePart(t,r,n)}}async createStatePart(t,r,n){let i=new Xs(t,n==="persistent"?{dbName:"smartstate",storeName:t}:null);await i.init();let o=i.getState();return await i.setState({...r,...o}),this.statePartMap[t]=i,i}};var ho={};ae(ho,{Smarturl:()=>Xm});var Xm=class e{static createFromUrl(t,r){let n=new URL(t),i={},o=[];n.search&&n.search.replace("?","").split("&").map(u=>{o.push({key:u.split("=")[0],value:u.split("=")[1]})});for(let u of o)i[u.key]=u.value;if(r?.searchParams)for(let u of Object.keys(r.searchParams))i[u]=r.searchParams[u];let s=n.pathname||"";if(Object.keys(i).length>0){s+="?";let u=!0;for(let c of Object.keys(i))u?u=!1:s+="&",s+=`${c}=${i[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:i,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 go={};ae(go,{CumulativeDeferred:()=>Ju,Deferred:()=>Gu,cumulativeDefer:()=>H3,defer:()=>mo,getFirstTrueOrFalse:()=>J3,map:()=>Y3,rejectedPromise:()=>W3,resolvedPromise:()=>V3,timeoutAndContinue:()=>G3,timeoutWrap:()=>EA});var Gu=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"})}},mo=()=>new Gu;var Ju=class{constructor(){this.accumulatedPromises=[],this.deferred=mo(),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)}},H3=()=>new Ju;var V3=e=>Promise.resolve(e),W3=e=>Promise.reject(e),Y3=async(e,t)=>{let r=[],n=[];for(let i of e){let o=t(i);r.push(o),o.then(s=>{n.push(s)})}return await Promise.all(r),n},EA=async(e,t,r=!0)=>new Promise((n,i)=>{setTimeout(()=>{r?i(new Error("timeout")):n(null)},t),e.then(n,i)}),G3=async(e,t=6e4)=>EA(e,t,!1),J3=async e=>{let t=mo();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var nn=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 yo=class e extends nn{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 yt=class e extends nn{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 xo=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(yo.createCompanyJsonLd(t)),this.addTag(new yt("og:type","business.business")),this.addTag(new yt("og:title",t.name)),this.addTag(new yt("og:url",t.contact.website)),this.addTag(new yt("og:image",t.contact.logoUrl)),this.addTag(new yt("business:contact_data:street_address",`${t.contact.address.streetName} ${t.contact.address.houseNumber}`)),this.addTag(new yt("business:contact_data:locality",t.contact.address.postalCode)),this.addTag(new yt("business:contact_data:region",t.contact.address.city)),this.addTag(new yt("business:contact_data:postal_code",t.contact.address.postalCode)),this.addTag(new yt("business:contact_data:country_name",t.contact.address.country))}addNewsArticleInfo(t){this.addTag(yo.createNewsArticleJsonLd(t)),this.addTag(yt.createNewsArticleOgTags(t))}addProductInfo(t,r){this.addTag(yo.createProductJsonLd(t,r)),this.addTag(yt.createProductOgTags(t))}async enable(){this.title&&(document.title=this.title);for(let t of this.tags)t.appendToDom();this.state="enabled"}async disable(){for(let t of this.tags)t.removeFromDom();this.state="disabled"}};var zt=class extends nn{constructor(t,r){super();let n=document.createElement("meta");n.name=t,n.content=r,this.elementRef=n}};var Qu=class{constructor(){this.globalLevel=new xo(this,"global"),this.baseLevel=new xo(this,"base")}async setup(t){switch(this.globalLevel.addTag(new zt("google","notranslate")),this.globalLevel.addTag(new zt("revisit-after","1 days")),t.twitterHandle&&(this.globalLevel.addTag(new zt("twitter:card","summary_large_image")),this.globalLevel.addTag(new zt("twitter:site",t.twitterHandle)),this.globalLevel.addTag(new zt("twitter:creator",t.twitterHandle))),this.baseLevel.title=t.title,t.description&&this.baseLevel.addTag(new zt("description",t.description)),t.canonicalDomain&&this.baseLevel.addTag(new zt("canonical",t.canonicalDomain)),!0){case(t.ldCompany&&!t.ldProduct):this.baseLevel.addCompanyInfo(t.ldCompany);break;case!!t.ldProduct:this.baseLevel.addProductInfo(t.ldProduct,t.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(t){let r=new xo(this,"subpage");return r.title=t.title,t.description&&r.addTag(new zt("description",t.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var Zu=class{constructor(t){this.tagManager=new Qu,this.readyDeferred=go.defer(),this.readyForSmartssrDeferred=go.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 tU=Ue(lf(),1);var bo=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 rU=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),Xu=class e{constructor(){this.fastMap=new bo,this.eventSubject=new Ae.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=rU("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 Ku=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 Tn.SmartMatch(t),n=!1;for(let i of this._stringArray)r.match(i)&&(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=ne.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let i=t(this.getStringArray());return i===!0&&(r&&r(),n.resolve()),i}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var id=Ue(rd(),1);var nd={ObjectMap:Xu,Stringmap:Ku,FastMap:bo};var Pr={};ae(Pr,{cssForDesktop:()=>nU,cssForNotebook:()=>iU,cssForPhablet:()=>sU,cssForPhone:()=>aU,cssForTablet:()=>oU,desktop:()=>sd,notebook:()=>ad,phablet:()=>ud,phone:()=>cd,tablet:()=>ld});var sd=1600,ad=1240,ld=1024,ud=600,cd=400,nU=e=>le(`
185
- @container wccToolsViewport (min-width: ${sd}px) {
183
+ `}},la.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function gy(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||JW(t))&&QW.call(e.childNodes,function(r){return r.nodeName==="TH"})}function JW(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function hM(e,t){var r=GW.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}function by(e){e.keep(function(r){return r.nodeName==="TABLE"&&!gy(r.rows[0])});for(var t in la)e.addRule(t,la[t])}function wy(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,r){return(r.checked?"[x]":"[ ]")+" "}})}function dM(e){e.use([xy,yy,by,wy])}var vy=bt(YC(),1);var dm=class e{static async createFromMarkdownString(t){let r=new e;return await r.updateFromMarkdownString(t),r}async updateFromMarkdownString(t){let r,n=await Tl().use(ea).use(Ks).use(ra,["yaml","toml"]).use(aa).use(sa).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 vy.yamlStringToObject(r):this.frontmatterData={}}};var Sy=class e{static async easyMarkdownToHtml(t){return(await new e().getMdParsedResultFromMarkdown(t)).html}constructor(){}async getMdParsedResultFromMarkdown(t){return await dm.createFromMarkdownString(t)}htmlToMarkdown(t){let r=new hm({headingStyle:"atx",codeBlockStyle:"fenced"});return r.use(ql.gfm),r.turndown(t)}};var To={};le(To,{SmartRouter:()=>Ay});var Dy=bt(SM(),1);var ym=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 Yze=e=>{console.log(`%c[Router]%c ${e}`,"color: rgb(255, 105, 100);","color: inherit")},Ay=class e{constructor(t,r=""){this.options={debug:!1},this.queryParams=new ym,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:Dy.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 Eo={};le(Eo,{Smartstate:()=>My,StateAction:()=>Vl,StatePart:()=>Gl});var Yl={};le(Yl,{md5FromString:()=>xq,sha256FromBuffer:()=>mq,sha256FromFile:()=>gq,sha256FromStream:()=>dq,sha256FromString:()=>EM,sha256FromStringSync:()=>pq,sha265FromObject:()=>hq});var uq=[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],cq=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function xn(e,t){return e>>>t|e<<32-t}function fq(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=xn(e[c-15],7)^xn(e[c-15],18)^e[c-15]>>>3,S=xn(e[c-2],17)^xn(e[c-2],19)^e[c-2]>>>10;e[c]=e[c-16]+y+e[c-7]+S>>>0}let f=xn(s,6)^xn(s,11)^xn(s,25),p=s&a^~s&l,m=u+f+p+uq[c]+e[c]>>>0,h=xn(r,2)^xn(r,13)^xn(r,22),d=r&n^r&o^n&o,g=h+d>>>0;u=l,l=a,a=s,s=i+m>>>0,i=o,o=n,n=r,r=m+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 Iy(e){let t=[...cq],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);fq(u,t)}let a="";for(let l=0;l<8;l++)a+=t[l].toString(16).padStart(8,"0");return a}var kM=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("")},TM=()=>typeof crypto<"u"&&crypto.subtle!==void 0,EM=async e=>{let t=new TextEncoder().encode(e);if(TM()){let r=await crypto.subtle.digest("SHA-256",t);return kM(r)}else return Iy(t)},pq=e=>{throw console.warn("sha256FromStringSync is not truly synchronous in browser environment"),new Error("sha256FromStringSync is not supported in browser environment. Use sha256FromString instead.")},mq=async e=>{if(TM()){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 kM(r)}else{let t=e instanceof Uint8Array?e:new Uint8Array(e);return Iy(t)}},hq=async e=>{let t=je.stringify(e);return await EM(t)},dq=e=>{throw new Error("sha256FromStream is not supported in browser environment")},gq=async e=>{throw new Error("sha256FromFile is not supported in browser environment")},xq=async e=>{throw new Error("md5FromString is not supported in browser environment. Web Crypto API does not support MD5.")};var Vl=class{constructor(t,r){this.statePartRef=t,this.actionDef=r}trigger(t){return this.statePartRef.dispatchAction(this,t)}};var Gl=class{constructor(t,r){this.state=new ve.rxjs.Subject,this.cumulativeDeferred=J.cumulativeDefer(),this.webStore=null,this.name=t,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Fr.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 Yl.sha256FromString(je.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(ve.rxjs.ops.startWith(this.getState()),ve.rxjs.ops.filter(n=>n!==void 0),ve.rxjs.ops.map(n=>{try{return t(n)}catch{}}))}createAction(t){return new Vl(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=J.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 My=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 Gl(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 Co={};le(Co,{Smarturl:()=>_y});var _y=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 Yy={};le(Yy,{JsonLdTag:()=>$i,MetaTag:()=>Tr,OpengraphTag:()=>Yt,Title:()=>qy,WebSetup:()=>Ql});var Oy={};le(Oy,{Timeout:()=>vm,delayFor:()=>DM,delayForRandom:()=>Eq});var Bi={};le(Bi,{CumulativeDeferred:()=>wm,Deferred:()=>bm,cumulativeDefer:()=>bq,defer:()=>Ri,getFirstTrueOrFalse:()=>Tq,map:()=>Sq,rejectedPromise:()=>vq,resolvedPromise:()=>wq,timeoutAndContinue:()=>kq,timeoutWrap:()=>CM});var bm=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"})}},Ri=()=>new bm;var wm=class{constructor(){this.accumulatedPromises=[],this.deferred=Ri(),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)}},bq=()=>new wm;var wq=e=>Promise.resolve(e),vq=e=>Promise.reject(e),Sq=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},CM=async(e,t,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},t),e.then(n,o)}),kq=async(e,t=6e4)=>CM(e,t,!1),Tq=async e=>{let t=Ri();for(let r of e)r.then(n=>{n===!0&&t.resolve(!0)});return Promise.all(e).then(()=>{t.resolve(!1)}),t.promise};var DM=async(e,t,r=!1)=>(await new vm(e,null,r).promise,t),Eq=async(e,t,r,n=!1)=>(await DM(Math.random()*(t-e)+e,null,n),r),vm=class{constructor(t,r,n=!1){this._cancelled=!1,this.timeoutInMillis=t,this._deferred=Ri(),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 Wy={};le(Wy,{business:()=>Sm,code:()=>Ly,container:()=>Ry,content:()=>By,database:()=>Fy,finance:()=>Ny,general:()=>$y,network:()=>km,saas:()=>Hy,storage:()=>Uy,website:()=>jy});var Sm={};le(Sm,{IJob:()=>Py});var Ny={};var Py=class{};var Fy={};var Ly={};var Ry={};var By={};var $y={};var km={};le(km,{ICnameDescriptor:()=>zy});var zy=class{};var Hy={};var Uy={};var jy={};var Do=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 $i=class e extends Do{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 Yt=class e extends Do{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 ca=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($i.createCompanyJsonLd(t)),this.addTag(new Yt("og:type","business.business")),this.addTag(new Yt("og:title",t.name)),this.addTag(new Yt("og:url",t.contact.website)),this.addTag(new Yt("og:image",t.contact.logoUrl)),this.addTag(new Yt("business:contact_data:street_address",`${t.contact.address.streetName} ${t.contact.address.houseNumber}`)),this.addTag(new Yt("business:contact_data:locality",t.contact.address.postalCode)),this.addTag(new Yt("business:contact_data:region",t.contact.address.city)),this.addTag(new Yt("business:contact_data:postal_code",t.contact.address.postalCode)),this.addTag(new Yt("business:contact_data:country_name",t.contact.address.country))}addNewsArticleInfo(t){this.addTag($i.createNewsArticleJsonLd(t)),this.addTag(Yt.createNewsArticleOgTags(t))}addProductInfo(t,r){this.addTag($i.createProductJsonLd(t,r)),this.addTag(Yt.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 Tr=class extends Do{constructor(t,r){super();let n=document.createElement("meta");n.name=t,n.content=r,this.elementRef=n}};var Tm=class{constructor(){this.globalLevel=new ca(this,"global"),this.baseLevel=new ca(this,"base")}async setup(t){switch(this.globalLevel.addTag(new Tr("google","notranslate")),this.globalLevel.addTag(new Tr("revisit-after","1 days")),t.twitterHandle&&(this.globalLevel.addTag(new Tr("twitter:card","summary_large_image")),this.globalLevel.addTag(new Tr("twitter:site",t.twitterHandle)),this.globalLevel.addTag(new Tr("twitter:creator",t.twitterHandle))),this.baseLevel.title=t.title,t.description&&this.baseLevel.addTag(new Tr("description",t.description)),t.canonicalDomain&&this.baseLevel.addTag(new Tr("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 ca(this,"subpage");return r.title=t.title,t.description&&r.addTag(new Tr("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 Ql=class{constructor(t){this.tagManager=new Tm,this.readyDeferred=Bi.defer(),this.readyForSmartssrDeferred=Bi.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 qy=class{};var AM=bt(cd(),1);var fa=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 Dq=(e="uni")=>`${e}xxxxxxxxxxx`.replace(/[xy]/g,t=>{let r=Math.random()*16|0;return(t==="x"?r:r&3|8).toString(16)}),Em=class e{constructor(){this.fastMap=new fa,this.eventSubject=new ve.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=Dq("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 Cm=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 Tn.SmartMatch(t),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let t=[];for(let r of this._stringArray)t.push(r);return t}registerUntilTrue(t,r){let n=J.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=t(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let t=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=t}};var Aq="1.3.15";function MM(e,t,r){return Math.max(e,Math.min(t,r))}function Iq(e,t,r){return(1-r)*e+r*t}function Mq(e,t,r,n){return Iq(e,t,1-Math.exp(-r*n))}function _q(e,t){return(e%t+t)%t}var Oq=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=MM(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=Mq(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 Nq(e,t){let r;return function(...n){let o=this;clearTimeout(r),r=setTimeout(()=>{r=void 0,e.apply(o,n)},t)}}var Pq=class{constructor(e,t,{autoResize:r=!0,debounce:n=250}={}){this.wrapper=e,this.content=t,r&&(this.debouncedResize=Nq(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}}},_M=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={}}},OM=100/6,Ao={passive:!1},Fq=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 _M;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?OM:n===2?this.window.width:1,i=n===1?OM: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}}},NM=e=>Math.min(1,1.001-Math.pow(2,-10*e)),Jl=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 Oq;emitter=new _M;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:m=1,wheelMultiplier:h=1,autoResize:d=!0,prevent:g,virtualScroll:y,overscroll:S=!0,autoRaf:k=!1,anchors:z=!1,autoToggle:R=!1,allowNestedScroll:T=!1,__experimental__naiveDimensions:$=!1}={}){window.lenisVersion=Aq,(!e||e===document.documentElement)&&(e=window),typeof a=="number"&&typeof l!="function"?l=NM: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:m,wheelMultiplier:h,autoResize:d,prevent:g,virtualScroll:y,overscroll:S,autoRaf:k,anchors:z,autoToggle:R,allowNestedScroll:T,__experimental__naiveDimensions:$},this.dimensions=new Pq(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 Fq(r,{touchMultiplier:m,wheelMultiplier:h}),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 m=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,...m?{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 h=this.rootElement.getBoundingClientRect();t-=this.isHorizontal?h.left:h.top}let m=p.getBoundingClientRect();e=(this.isHorizontal?m.left:m.top)+this.animatedScroll}}if(typeof e=="number"){if(e+=t,e=Math.round(e),this.options.infinite){if(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=MM(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=NM: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,m)=>{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),m||this.emit(),m&&(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,m=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||m==="vertical"&&!s||m==="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||m==="vertical"&&(!s||!l)||m==="horizontal"&&(!i||!a))return!1;let h;if(m==="horizontal")h="x";else if(m==="vertical")h="y";else{let R=t!==0,T=r!==0;R&&i&&a&&(h="x"),T&&s&&l&&(h="y")}if(!h)return!1;let d,g,y,S,k;if(h==="x")d=e.scrollLeft,g=u-f,y=t,S=i,k=a;else if(h==="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?_q(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 Dm=bt(Qy(),1),Xl={ObjectMap:Em,Stringmap:Cm,FastMap:fa};var yn={};le(yn,{cssForDesktop:()=>Lq,cssForNotebook:()=>Rq,cssForPhablet:()=>$q,cssForPhone:()=>zq,cssForTablet:()=>Bq,desktop:()=>Jy,notebook:()=>Xy,phablet:()=>Ky,phone:()=>eb,tablet:()=>Zy});var Jy=1600,Xy=1240,Zy=1024,Ky=600,eb=400,Lq=e=>Ye(`
184
+ @container wccToolsViewport (min-width: ${Jy}px) {
186
185
  ${e.cssText}
187
186
  }
188
- @media (min-width: ${sd}px) {
187
+ @media (min-width: ${Jy}px) {
189
188
  ${e.cssText}
190
189
  }
191
- `),iU=e=>le(`
192
- @container wccToolsViewport (max-width: ${ad}px) {
190
+ `),Rq=e=>Ye(`
191
+ @container wccToolsViewport (max-width: ${Xy}px) {
193
192
  ${e.cssText}
194
193
  }
195
- @media (max-width: ${ad}px) {
194
+ @media (max-width: ${Xy}px) {
196
195
  ${e.cssText}
197
196
  }
198
- `),oU=e=>le(`
199
- @container wccToolsViewport (max-width: ${ld}px) {
197
+ `),Bq=e=>Ye(`
198
+ @container wccToolsViewport (max-width: ${Zy}px) {
200
199
  ${e.cssText}
201
200
  }
202
- @media (max-width: ${ld}px) {
201
+ @media (max-width: ${Zy}px) {
203
202
  ${e.cssText}
204
203
  }
205
- `),sU=e=>le(`
206
- @container wccToolsViewport (max-width: ${ud}px) {
204
+ `),$q=e=>Ye(`
205
+ @container wccToolsViewport (max-width: ${Ky}px) {
207
206
  ${e.cssText}
208
207
  }
209
- @media (max-width: ${ud}px) {
208
+ @media (max-width: ${Ky}px) {
210
209
  ${e.cssText}
211
210
  }
212
- `),aU=e=>le(`
213
- @container wccToolsViewport (max-width: ${cd}px) {
211
+ `),zq=e=>Ye(`
212
+ @container wccToolsViewport (max-width: ${eb}px) {
214
213
  ${e.cssText}
215
214
  }
216
- @media (max-width: ${cd}px) {
215
+ @media (max-width: ${eb}px) {
217
216
  ${e.cssText}
218
217
  }
219
- `);var ec=class{constructor(t){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new Ae.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 setGlobalStylesOnPurpose(){document.body&&document.body.style&&(document.body.style.background=this.goBrightBoolean?"#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 fd;(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"})(fd||(fd={}));var tc=class{constructor(t){this.domNode=t,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=fd,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 Ae.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 Dt=class e{static async setupDomTools(t={}){let r;if(!globalThis.deesDomTools&&!t.ignoreGlobal){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.domReady.resolve())};document.addEventListener("readystatechange",n),r.domToolsReady.resolve()}else t.ignoreGlobal?r=new e(t):r=globalThis.deesDomTools;return await r.domToolsReady.promise,r}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 Zu({metaObject:{title:"loading..."}}),this.smartstate=new po.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new fo.SmartRouter({debug:!1}),this.convenience={typedrequest:_t,smartdelay:me,smartjson:Oe,smarturl:ho},this.deesComms=new Rl.DeesComms,this.scroller=new id.default({}),this.themeManager=new ec(this),this.keyboard=new tc(document.body),this.domToolsReady=ne.defer(),this.domReady=ne.defer(),this.globalStylesReady=ne.defer(),this.runOnceTrackerStringMap=new nd.Stringmap,this.runOnceResultMap=new nd.FastMap}async runOnce(t,r){let n=`${t}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(t)){this.runOnceTrackerStringMap.addString(t),this.runOnceTrackerStringMap.addString(n);let i=await r();this.runOnceResultMap.addToMap(t,i),this.runOnceTrackerStringMap.removeString(n)}return await this.runOnceTrackerStringMap.registerUntilTrue(i=>!i.includes(n),()=>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=ne.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 rc=(()=>{let e=navigator.userAgent.indexOf("Mac OS X")===-1?xe``.cssText:"";return xe`
218
+ `);var Im=class{constructor(t){this.scrollCallbacks=[],this.lenisInstance=null,this.handleNativeScroll=r=>{this.executeScrollCallbacks()},this.handleLenisScroll=r=>{this.executeScrollCallbacks()},this.sweetScroller=new Dm.default({}),this.domtoolsInstance=t,this.attachNativeScrollListener()}async toElement(t,r){this.sweetScroller.toElement(t,r),await pe.delayFor(r.duration)}async detectNativeSmoothScroll(){let t=J.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 Jl({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 Mm=class{constructor(t){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new ve.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 tb;(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"})(tb||(tb={}));var _m=class{constructor(t){this.domNode=t,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=tb,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 ve.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 Er=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 _m(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 Ql({metaObject:{title:"loading..."}}),this.smartstate=new Eo.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new To.SmartRouter({debug:!1}),this.convenience={typedrequest:qt,smartdelay:pe,smartjson:je,smarturl:Co},this.deesComms=new hl.DeesComms,this.scroller=new Im(this),this.themeManager=new Mm(this),this.keyboard=null,this.domToolsReady=J.defer(),this.domReady=J.defer(),this.globalStylesReady=J.defer(),this.runOnceTrackerStringMap=new Xl.Stringmap,this.runOnceResultMap=new Xl.FastMap,this.runOnceErrorMap=new Xl.FastMap}async runOnce(t,r){let n=`${t}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(t)){this.runOnceTrackerStringMap.addString(t),this.runOnceTrackerStringMap.addString(n);try{let o=await r();this.runOnceResultMap.addToMap(t,o)}catch(o){this.runOnceErrorMap.addToMap(t,o)}finally{this.runOnceTrackerStringMap.removeString(n)}}return await this.runOnceTrackerStringMap.registerUntilTrue(o=>!o.includes(n),()=>{let o=this.runOnceErrorMap.getByKey(t);if(o)throw o;return this.runOnceResultMap.getByKey(t)})}async setGlobalStyles(t){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(t)),this.elements.headElement.appendChild(r)}async setExternalScript(t){await this.domReady.promise;let r=J.defer(),n=document.createElement("script");n.src=t,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(t){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=t,document.head.append(r)}async setWebsiteInfo(t){await this.websetup.setup(t),await this.websetup.readyPromise}};var Om=(()=>{let e=navigator.userAgent.indexOf("Mac OS X")===-1?Ee``.cssText:"";return Ee`
220
219
  /* width */
221
220
  ::-webkit-scrollbar {
222
221
  width: 0px;
@@ -224,7 +223,7 @@ ${i}
224
223
  body {
225
224
  scrollbar-width: none;
226
225
  }
227
- `.cssText})(),IA=xe`
226
+ `.cssText})(),PM=Ee`
228
227
  /*
229
228
  @font-face {
230
229
  font-family: 'Material Icons';
@@ -242,8 +241,8 @@ ${i}
242
241
  }
243
242
 
244
243
  /* scroll bar styles */
245
- ${le(rc)}
246
- `.cssText;var lU=xe`
244
+ ${Ye(Om)}
245
+ `.cssText;var Hq=Ee`
247
246
  * {
248
247
  transition: background 0.1s, color 0.1s;
249
248
  box-sizing: border-box;
@@ -254,8 +253,8 @@ ${i}
254
253
  font-family: 'Geist Sans', 'Inter', sans-serif;
255
254
  }
256
255
 
257
- ${le(rc)}
258
- `,uU=J`
256
+ ${Ye(Om)}
257
+ `,Uq=Z`
259
258
  <style>
260
259
  * {
261
260
  transition: background 0.1s, color 0.1s;
@@ -266,183 +265,164 @@ ${i}
266
265
  font-family: 'Geist Sans', 'Inter', sans-serif;
267
266
  }
268
267
 
269
- ${rc}
268
+ ${Om}
270
269
  </style>
271
- `,cU=async(e,t={})=>{let r=await Dt.setupDomTools(t);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(IA)}),r};var pd={};ae(pd,{cssGridColumns:()=>fU});var fU=(e,t)=>{let r="";for(let n=0;n<e;n++)r+=` calc((100%/${e}) - (${t*(e-1)}px/${e}))`;return r};var hd={};ae(hd,{SweetScroll:()=>PA.default,smartdelay:()=>me,smartmarkdown:()=>ju,smartpromise:()=>ne,smartrouter:()=>fo,smartrx:()=>Ae,smartstate:()=>po,smartstring:()=>Hr,smarturl:()=>ho,typedrequest:()=>_t});var PA=Ue(rd(),1);var ai={css:xe,unsafeCSS:le,LitElement:Rr,property:re};var nc=class{constructor(){this.domtoolsPromise=Dt.setupDomTools(),this.goBright=!1,this.bdVarTripletStore=[],this.cssGridColumns=(t,r)=>{let n="";for(let i=0;i<t;i++)n+=` calc((100%/${t}) - (${r*(t-1)}px/${t}))`;return ai.unsafeCSS(n)},this.domtoolsPromise.then(async t=>{t.themeManager.themeObservable.subscribe(async r=>{this.goBright=r,await t.domReady.promise;for(let n of this.bdVarTripletStore)document.body.style.setProperty(n.cssVarName,this.goBright?n.brightValue:n.darkValue)})})}get defaultStyles(){return si.staticStyles}cssForDesktop(t){return le(Pr.cssForDesktop(t))}cssForNotebook(t){return le(Pr.cssForNotebook(t))}cssForTablet(t){return le(Pr.cssForTablet(t))}cssForPhablet(t){return le(Pr.cssForPhablet(t))}cssForPhone(t){return le(Pr.cssForPhone(t))}bdTheme(t,r){let n,i;Dt.getGlobalDomToolsSync()?i=Dt.getGlobalDomToolsSync().themeManager.goBrightBoolean?t:r:i=r;let o=this.bdVarTripletStore.find(s=>s.darkValue===r&&s.brightValue===t);if(o)n=o.cssVarName;else{let s={cssVarName:`--${OA.uni()}`,brightValue:t,darkValue:r};this.bdVarTripletStore.push(s),this.domtoolsPromise.then(async a=>{await a.domReady.promise,document.body.style.setProperty(s.cssVarName,i)}),n=s.cssVarName}return ai.unsafeCSS(`var(${n}, ${i})`)}};var vo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},St=e=>(...t)=>({_$litDirective$:e,values:t}),wo=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 Ks=class extends wo{constructor(t){if(super(t),this.it=Re,t.type!==vo.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Re||t==null)return this._t=void 0,this.it=t;if(t===je)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:[]}}};Ks.directiveName="unsafeHTML",Ks.resultType=1;var pU=St(Ks);var Ze=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var{I:hU}=rg,NA=e=>e===null||typeof e!="object"&&typeof e!="function";var FA=e=>e.strings===void 0,MA=()=>document.createComment(""),RA=(e,t,r)=>{let n=e._$AA.parentNode,i=t===void 0?e._$AB:t._$AA;if(r===void 0){let o=n.insertBefore(MA(),i),s=n.insertBefore(MA(),i);r=new hU(o,s,e,e.options)}else{let o=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(o!==i||a){let l=r._$AA;for(;l!==o;){let u=l.nextSibling;n.insertBefore(l,i),l=u}}}return r},LA=(e,t,r=e)=>(e._$AI(t,r),e);var BA=e=>{e._$AR()};var ea=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),ea(n,t);return!0},oc=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},$A=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),gU(t)}};function mU(e){this._$AN!==void 0?(oc(this),this._$AM=e,$A(this)):this._$AM=e}function dU(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let o=r;o<n.length;o++)ea(n[o],!1),oc(n[o]);else n!=null&&(ea(n,!1),oc(n));else ea(this,e)}var gU=e=>{e.type==vo.CHILD&&(e._$AP??=dU,e._$AQ??=mU)},nr=class extends wo{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),$A(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(ea(this,t),oc(this))}setValue(t){if(FA(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 UA=async(e,t)=>{for await(let r of e)if(await t(r)===!1)return},So=class{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}},ko=class{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){this.Z??=new Promise(t=>this.q=t)}resume(){this.q?.(),this.Z=this.q=void 0}};var jA=e=>!NA(e)&&typeof e.then=="function",zA=1073741823,md=class extends nr{constructor(){super(...arguments),this._$Cwt=zA,this._$Cbt=[],this._$CK=new So(this),this._$CX=new ko}render(...t){return t.find(r=>!jA(r))??je}update(t,r){let n=this._$Cbt,i=n.length;this._$Cbt=r;let o=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(!jA(l))return this._$Cwt=a,l;a<i&&l===n[a]||(this._$Cwt=zA,i=0,Promise.resolve(l).then(async u=>{for(;s.get();)await s.get();let c=o.deref();if(c!==void 0){let f=c._$Cbt.indexOf(l);f>-1&&f<c._$Cwt&&(c._$Cwt=f,c.setValue(u))}}))}return je}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},yU=St(md);var ta=class extends nr{constructor(){super(...arguments),this._$CK=new So(this),this._$CX=new ko}render(t,r){return je}update(t,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CJ)return je;this._$CJ=r;let i=0,{_$CK:o,_$CX:s}=this;return UA(r,async a=>{for(;s.get();)await s.get();let l=o.deref();if(l!==void 0){if(l._$CJ!==r)return!1;n!==void 0&&(a=n(a,i)),l.commitValue(a,i),i++}return!0}),je}commitValue(t,r){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},yle=St(ta);var xU=St(class extends ta{constructor(e){if(super(e),e.type!==vo.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&&BA(this._$Ctt);let r=RA(this._$Ctt);LA(r,e)}});var qA=function(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,r,o):s(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o},HA=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Fe=class extends ai.LitElement{constructor(t={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=ge.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.startupFunctions=[],this.garbageFunctions=[],this.domtoolsPromise=ge.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.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"))}};qA([ai.property({type:Boolean}),HA("design:type",Boolean)],Fe.prototype,"goBright",void 0);qA([ai.property(),HA("design:type",ge.DomTools)],Fe.prototype,"domtools",void 0);var dd=class extends nr{constructor(){super(...arguments),this.sub=null}render(t){return this.observable!==t&&(this.sub?.unsubscribe(),this.observable=t,this.isConnected&&this.subscribe(t)),je}subscribe(t){this.sub=t.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},bU=St(dd);var gd=class extends nr{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(t){return this.promise!==t&&(this.promise=t,this.isConnected&&this.handlePromise(t)),je}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)}},wU=St(gd);var sc=new nc;var oe={};ae(oe,{a4Height:()=>AU,a4Width:()=>CU,demoDocumentSettings:()=>kU,demoLetter:()=>SU,interfaces:()=>QA,leftMargin:()=>EU,rightMargin:()=>TU,translation:()=>xd});var QA={};var xd={};ae(xd,{DE_translations:()=>VA,EN_translations:()=>yd,ES_translations:()=>WA,FR_translations:()=>YA,IT_translations:()=>GA,languageCodeMap:()=>JA,translate:()=>vU});var yd={address:"Address",bankConnection:"Bank Connection",contactInfo:"Contact Info",description:"Description",invoice:"Invoice",itemPos:"Item Pos.",quantity:"Quantity",registrationInfo:"Registration Info",reverseVatNote:"VAT arises on a reverse charge basis and is payable by the customer.",totalNetPrice:"Total Net Price",unitNetPrice:"Unit Net Price",unitType:"Unit Type",yourCustomerId:"Your Customer ID:",yourVatId:"Your vat id on file:",continuesOnPage:"Continues on page",finalPageStatement:"This is the final page of this document.",page:"Page",vatShort:"VAT"},VA={address:"Adresse",bankConnection:"Bankverbindung",contactInfo:"Kontaktinformationen",description:"Beschreibung",invoice:"Rechnung",itemPos:"Pos.",quantity:"Anzahl",registrationInfo:"HRA/HRB Info",reverseVatNote:"Umkehr der Umsatzsteuerpflicht: Der Rechnungsempf\xE4nger ist f\xFCr die korrekte Abrechnung der Umsatzsteuer zust\xE4ndig.",totalNetPrice:"Summe netto",unitNetPrice:"Einheit netto",unitType:"Einheit",yourCustomerId:"Ihre Kundennummer:",yourVatId:"Ihre Umsatzsteuer-ID:",continuesOnPage:"Fortsetzung auf Seite",finalPageStatement:"Dies ist die letzte Seite dieses Dokuments.",page:"Seite",vatShort:"USt"},WA={address:"Direcci\xF3n",bankConnection:"Conexi\xF3n bancaria",contactInfo:"Informaci\xF3n de contacto",description:"Descripci\xF3n",invoice:"Factura",itemPos:"Pos.",quantity:"Cantidad",registrationInfo:"Informaci\xF3n de registro",reverseVatNote:"El IVA se aplica por inversi\xF3n del sujeto pasivo y debe ser pagado por el cliente.",totalNetPrice:"Precio total neto",unitNetPrice:"Precio unitario neto",unitType:"Tipo de unidad",yourCustomerId:"Su n\xFAmero de cliente:",yourVatId:"Su ID de IVA:",continuesOnPage:"Contin\xFAa en la p\xE1gina",finalPageStatement:"Esta es la \xFAltima p\xE1gina de este documento.",page:"P\xE1gina",vatShort:"IVA"},YA={address:"Adresse",bankConnection:"Coordonn\xE9es bancaires",contactInfo:"Informations de contact",description:"Description",invoice:"Facture",itemPos:"Position",quantity:"Quantit\xE9",registrationInfo:"Informations d'enregistrement",reverseVatNote:"La TVA s'applique selon le m\xE9canisme d'autoliquidation et est \xE0 payer par le client.",totalNetPrice:"Prix net total",unitNetPrice:"Prix unitaire net",unitType:"Type d'unit\xE9",yourCustomerId:"Votre num\xE9ro de client :",yourVatId:"Votre num\xE9ro de TVA :",continuesOnPage:"Continue sur la page",finalPageStatement:"Ceci est la derni\xE8re page de ce document.",page:"Page",vatShort:"TVA"},GA={address:"Indirizzo",bankConnection:"Coordinate bancarie",contactInfo:"Informazioni di contatto",description:"Descrizione",invoice:"Fattura",itemPos:"Pos.",quantity:"Quantit\xE0",registrationInfo:"Informazioni di registrazione",reverseVatNote:"L'IVA \xE8 applicata con inversione contabile ed \xE8 a carico del cliente.",totalNetPrice:"Prezzo netto totale",unitNetPrice:"Prezzo netto unitario",unitType:"Tipo di unit\xE0",yourCustomerId:"Il tuo numero cliente:",yourVatId:"Il tuo numero di partita IVA:",continuesOnPage:"Continua alla pagina",finalPageStatement:"Questa \xE8 l'ultima pagina di questo documento.",page:"Pagina",vatShort:"IVA"},JA={EN:yd,DE:VA,ES:WA,FR:YA,IT:GA},vU=(e,t,r)=>(JA[e]||yd)[t]||r;var ZA={name:"Awesome From Company",type:"company",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},vatId:"DE12345678",sepaConnection:{bic:"BPOTBEB1",iban:"BE01234567891616"},email:"hello@awesome.company",phone:"+49 421 1234567",fax:"+49 421 1234568"},XA={name:"Awesome To GmbH",type:"company",customerNumber:"LL-CLIENT-123",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},vatId:"BE12345678"},SU={versionInfo:{type:"draft",version:"1.0.0"},accentColor:null,content:{textData:null,timesheetData:null,contractData:{contractDate:Date.now(),id:"someid"},invoiceData:{id:"LL-INV-48765",reverseCharge:!0,dueInDays:30,billedBy:ZA,billedTo:XA,status:null,deliveryDate:new Date().getTime(),periodOfPerformance:null,printResult:null,currency:"EUR",notes:[],type:"debitnote",items:[{name:"Item with 19% VAT",unitQuantity:2,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:0},{name:"Item with 7% VAT",unitQuantity:4,unitNetPrice:100,unitType:"hours",vatPercentage:7,position:1},{name:"Item with 7% VAT",unitQuantity:3,unitNetPrice:230,unitType:"hours",vatPercentage:7,position:2},{name:"Item with 21% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:21,position:3},{name:"Item with 0% VAT",unitQuantity:6,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:4},{name:"Item with 19% VAT",unitQuantity:8,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:5},{name:"Item with 7% VAT",unitQuantity:9,unitNetPrice:100,unitType:"hours",vatPercentage:7,position:6},{name:"Item with 7% VAT",unitQuantity:4,unitNetPrice:230,unitType:"hours",vatPercentage:7,position:8},{name:"Item with 21% VAT",unitQuantity:3,unitNetPrice:230,unitType:"hours",vatPercentage:21,position:9},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10}]}},date:Date.now(),type:"invoice",needsCoverSheet:!1,objectActions:[],pdf:null,from:ZA,to:XA,incidenceId:null,language:null,legalContact:null,logoUrl:null,pdfAttachments:null,subject:"Invoice: LL-INV-48765"},kU={enableTopDraftText:!0,enableDefaultHeader:!0,enableDefaultFooter:!0,languageCode:"DE"};var AU=1122,CU=794,TU=70,EU=90;var KC=Ue(XC(),1);var or=xe`
270
+ `,jq=async(e,t={})=>{let r=await Er.setupDomTools(t);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(PM)}),r};var Nm={};le(Nm,{cssGridColumns:()=>Wq});var Wq=(e,t)=>{let r="";for(let n=0;n<e;n++)r+=` calc((100%/${e}) - (${t*(e-1)}px/${e}))`;return r};var Pm={};le(Pm,{SweetScroll:()=>rb.default,smartdelay:()=>pe,smartmarkdown:()=>ua,smartpromise:()=>J,smartrouter:()=>To,smartrx:()=>ve,smartstate:()=>Eo,smartstring:()=>Ft,smarturl:()=>Co,typedrequest:()=>qt});var rb=bt(Qy(),1);var nb=bt(bu(),1),Mo={css:Ee,unsafeCSS:Ye,LitElement:Sn,property:ee};var Fm=class e{static{this.instance=null}static getSingleton(){return e.instance||(e.instance=new e),e.instance}constructor(){this.domtoolsPromise=Er.setupDomTools(),this.goBright=!1,this.bdVarTripletStore=[],this.cssGridColumns=(t,r)=>{let n="";for(let o=0;o<t;o++)n+=` calc((100%/${t}) - (${r*(t-1)}px/${t}))`;return Mo.unsafeCSS(n)},this.domtoolsPromise.then(async t=>{t.themeManager.themeObservable.subscribe(async r=>{this.goBright=r,await t.domReady.promise;for(let n of this.bdVarTripletStore)document.body.style.setProperty(n.cssVarName,this.goBright?n.brightValue:n.darkValue)})})}get defaultStyles(){return Io.staticStyles}cssForDesktop(t){return Ye(yn.cssForDesktop(t))}cssForNotebook(t){return Ye(yn.cssForNotebook(t))}cssForTablet(t){return Ye(yn.cssForTablet(t))}cssForPhablet(t){return Ye(yn.cssForPhablet(t))}cssForPhone(t){return Ye(yn.cssForPhone(t))}bdTheme(t,r){let n,o;Er.getGlobalDomToolsSync()?o=Er.getGlobalDomToolsSync().themeManager.goBrightBoolean?t:r:o=r;let i=this.bdVarTripletStore.find(s=>s.darkValue===r&&s.brightValue===t);if(i)n=i.cssVarName;else{let s={cssVarName:`--${nb.uni()}`,brightValue:t,darkValue:r};this.bdVarTripletStore.push(s),this.domtoolsPromise.then(async a=>{await a.domReady.promise,document.body.style.setProperty(s.cssVarName,o)}),n=s.cssVarName}return Mo.unsafeCSS(`var(${n}, ${o})`)}};var ob=Symbol.for(""),qq=e=>{if(e?.r===ob)return e?._$litStatic$},RM=e=>({_$litStatic$:e,r:ob}),Yq=(e,...t)=>({_$litStatic$:t.reduce(((r,n,o)=>r+(i=>{if(i._$litStatic$!==void 0)return i._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${i}. Use 'unsafeStatic' to pass non-literal values, but
271
+ take care to ensure page security.`)})(n)+e[o+1]),e[0]),r:ob}),LM=new Map,Lm=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=qq(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=LM.get(f))===void 0&&(s.raw=s,LM.set(f,t=s)),r=a}return e(t,...r)},BM=Lm(Z),Vq=Lm(hh),Gq=Lm(dh);var Oo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$t=e=>(...t)=>({_$litDirective$:e,values:t}),_o=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 pa=class extends _o{constructor(t){if(super(t),this.it=Xe,t.type!==Oo.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Xe||t==null)return this._t=void 0,this.it=t;if(t===Qe)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:[]}}};pa.directiveName="unsafeHTML",pa.resultType=1;var $M=$t(pa);var nt=e=>(t,r)=>{r!==void 0?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)};function zM(e){return ee({...e,state:!0,attribute:!1})}function Qq(e){return(t,r)=>{let n=typeof t=="function"?t:t[r];Object.assign(n,e)}}var Cr=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function Rm(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 Cr(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 Cr(r,n,{get(){return i(this)}})}}var Jq;function HM(e){return(t,r)=>Cr(t,r,{get(){return(this.renderRoot??(Jq??=document.createDocumentFragment())).querySelectorAll(e)}})}function UM(e){return(t,r)=>Cr(t,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(e)??null}})}function Xq(e){return(t,r)=>{let{slot:n,selector:o}=e??{},i="slot"+(n?`[name=${n}]`:":not([name])");return Cr(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 Zq(e){return(t,r)=>{let{slot:n}=e??{},o="slot"+(n?`[name=${n}]`:":not([name])");return Cr(t,r,{get(){return this.renderRoot?.querySelector(o)?.assignedNodes(e)??[]}})}}var jM=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},WM=function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},Ve=class extends Mo.LitElement{constructor(t={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=Ce.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.startupFunctions=[],this.garbageFunctions=[],this.domtoolsPromise=Ce.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"))}};jM([Mo.property({type:Boolean}),WM("design:type",Boolean)],Ve.prototype,"goBright",void 0),jM([Mo.property(),WM("design:type",Ce.DomTools)],Ve.prototype,"domtools",void 0);var gb={};le(gb,{asyncAppend:()=>db,resolve:()=>VM,resolveExec:()=>pY,subscribe:()=>mY,subscribeWithTemplate:()=>GM,until:()=>hb});var{I:Kq}=gh,ib=e=>e===null||typeof e!="object"&&typeof e!="function",eY={HTML:1,SVG:2,MATHML:3},tY=(e,t)=>t===void 0?e?._$litType$!==void 0:e?._$litType$===t,rY=e=>e?._$litType$?.h!=null,nY=e=>e?._$litDirective$!==void 0,oY=e=>e?._$litDirective$,sb=e=>e.strings===void 0,qM=()=>document.createComment(""),ab=(e,t,r)=>{let n=e._$AA.parentNode,o=t===void 0?e._$AB:t._$AA;if(r===void 0){let i=n.insertBefore(qM(),o),s=n.insertBefore(qM(),o);r=new Kq(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},lb=(e,t,r=e)=>(e._$AI(t,r),e),iY={},sY=(e,t=iY)=>e._$AH=t,aY=e=>e._$AH,lY=e=>{e._$AR(),e._$AA.remove()},ub=e=>{e._$AR()};var Zl=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),Zl(n,t);return!0},Bm=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},YM=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),fY(t)}};function uY(e){this._$AN!==void 0?(Bm(this),this._$AM=e,YM(this)):this._$AM=e}function cY(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++)Zl(n[i],!1),Bm(n[i]);else n!=null&&(Zl(n,!1),Bm(n));else Zl(this,e)}var fY=e=>{e.type==Oo.CHILD&&(e._$AP??=cY,e._$AQ??=uY)},pr=class extends _o{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),YM(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(Zl(this,t),Bm(this))}setValue(t){if(sb(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 cb=class extends pr{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(t){return this.promise!==t&&(this.promise=t,this.isConnected&&this.handlePromise(t)),Qe}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)}},VM=$t(cb),pY=e=>VM(e());var fb=class extends pr{constructor(){super(...arguments),this.sub=null}render(t){return this.observable!==t&&(this.sub?.unsubscribe(),this.observable=t,this.isConnected&&this.subscribe(t)),Qe}subscribe(t){this.sub=t.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},mY=$t(fb);var pb=class extends pr{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()),Qe}startSubscription(){this.sub=this.observable.subscribe(t=>{let r=this.templateFn(t);this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.startSubscription()}},GM=$t(pb);var mb=async(e,t)=>{for await(let r of e)if(await t(r)===!1)return},zi=class{constructor(t){this.G=t}disconnect(){this.G=void 0}reconnect(t){this.G=t}deref(){return this.G}},Hi=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 QM=e=>!ib(e)&&typeof e.then=="function",JM=1073741823,$m=class extends pr{constructor(){super(...arguments),this._$Cwt=JM,this._$Cbt=[],this._$CK=new zi(this),this._$CX=new Hi}render(...t){return t.find((r=>!QM(r)))??Qe}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(!QM(l))return this._$Cwt=a,l;a<o&&l===n[a]||(this._$Cwt=JM,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 Qe}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},hb=$t($m);var ma=class extends pr{constructor(){super(...arguments),this._$CK=new zi(this),this._$CX=new Hi}render(t,r){return Qe}update(t,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CJ)return Qe;this._$CJ=r;let o=0,{_$CK:i,_$CX:s}=this;return mb(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})),Qe}commitValue(t,r){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}},hY=$t(ma);var db=$t(class extends ma{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&&ub(this._$Ctt);let r=ab(this._$Ctt);lb(r,e)}});var zm=Fm.getSingleton();var fe={};le(fe,{A4_HEIGHT:()=>SY,A4_WIDTH:()=>kY,cmToPx:()=>Mb,demoDocumentSettings:()=>wY,demoLetter:()=>bY,interfaces:()=>xb,translation:()=>Um});var xb={};var Um={};le(Um,{DE_translations:()=>XM,EN_translations:()=>Hm,languageCodeMap:()=>ZM,translate:()=>gY});var Hm={address:"Address","bank.accountHolder":"beneficiary","bank.bic":"bic","bank.iban":"iban","bank.institution":"institution","bankConnection@@title":"Bank Connection","contact@@title":"Contact Info","customer.number":"Your Customer ID",description:"Description","empty.logo":"no logo provided","empty.number.customer":"not registered",empty:"not provided",fax:"Fax",introStatement:"We hereby invoice the following products and services","invoice.number":"Invoice number",invoice:"Invoice","item.position":"Pos.",mail:"Mail","overlay@@draft":"Draft","page.continueNext":"Continues on page","page.final":"This is the final page of this document.",page:"Page",pageOf:"of","payment.qr":"Pay via QR code","payment.qr.description":"Scan the QR code with you banking app","payment.terms":"Payment Terms","payment.terms.direct":"Without deduction until","periodOfPerformance.day":"Delivery Date","periodOfPerformance.range":"Delivery Period",phone:"Phone","price.total.net":"Total Net Price","price.unit.net":"Unit Net Price",price:"Price",quantity:"Quantity",referencedContract:"Referenced contract","referencedContract.text":"This invoice is adhering to agreements made by contract between the parties on","registration.label":"Registration Info",subject:"Subject",sum:"Sum",totalGross:"Total gross","unit.type":"Unit Type","vat.position":"on item positions","vat.reverseCharge.note":"VAT arises on a reverse charge basis and is payable by the customer.","vat.short":"VAT","vat.yourId":"Your vat id on file",vat:"Valued Added Tax"},XM={address:"Adresse","bank.accountHolder":"Kontoinhaber","bank.bic":"BIC","bank.iban":"IBAN","bank.institution":"Bankinstitut","bankConnection@@title":"Bankverbindung","contact@@title":"Kontaktinformationen","customer.number":"Ihre Kundennummer",description:"Beschreibung","empty.logo":"Kein Logo gesetzt","empty.number.customer":"nicht registriert",empty:"nicht angegeben",fax:"Fax",introStatement:"Wir stellen Ihnen hiermit folgende Produkte und Dienstleistungen in Rechnung","invoice.number":"Rechnungsnr.",invoice:"Rechnung","item.position":"Pos.",mail:"E-Mail","overlay@@draft":"Entwurf","page.continueNext":"Fortsetzung auf Seite","page.final":"Dies ist die letzte Seite dieses Dokuments.",page:"Seite",pageOf:"von","payment.qr":"\xDCberweisen per QR-Code","payment.qr.description":"Den QR-Code einfach mit der Banking-App einscannen","payment.terms":"Zahlungsbedingungen","payment.terms.direct":"Ohne Abzug bis zum","periodOfPerformance.day":"Lieferdatum","periodOfPerformance.range":"Lieferzeitraum",phone:"Telefon","price.total.net":"Gesamtpreis","price.unit.net":"St\xFCckpreis",price:"Preis",quantity:"Menge",referencedContract:"Referenzierter Vertrag","referencedContract.text":"Diese Rechnung bezieht sich auf die getroffenen Vertragsvereinbarungen vom","registration.label":"Registrierungsinfo",subject:"Betreff",sum:"Summe",totalGross:"Gesamtbetrag brutto","unit.type":"Einheit","vat.position":"auf Positionen","vat.reverseCharge.note":"Die Umsatzsteuer entsteht im Reverse-Charge-Verfahren und ist vom Kunden zu zahlen.","vat.short":"MwSt.","vat.yourId":"Ihre hinterlegte USt-Id",vat:"Umsatzsteuer"},ZM={EN:Hm,DE:XM};function*dY(e){yield e;let t=e.split("@@"),r=t[1];if(r?yield r:r=t[0],!r.includes("."))return;let n=r.split(".");for(let o=n.length-1;o>0;o--)yield n.slice(0,o).join(".")}var gY=(e,t)=>{let r=ZM[e]||Hm,n=dY(t),o;for(let i of n)if(o=r[i]||Hm[i],o)break;return o};var Kl={};le(Kl,{business:()=>wb,code:()=>vb,container:()=>Sb,content:()=>Tb,database:()=>yb,descriptors:()=>kb,finance:()=>bb,general:()=>Eb,network:()=>jm,saas:()=>Db,storage:()=>Ab,website:()=>Ib});var wb={};var yb={};var bb={};var vb={};var Sb={};var kb={};var Tb={};var Eb={};var jm={};le(jm,{ICnameDescriptor:()=>Cb});var Cb=class{};var Db={};var Ab={};var Ib={};var xY={name:"Awesome From Company",type:"company",status:"active",foundedDate:{day:1,month:1,year:2025},description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},sepaConnection:{bic:"BPOTBEB1",iban:"BE01234567891616"},email:"hello@awesome.company",phone:"+49 421 1234567",fax:"+49 421 1234568",registrationDetails:{registrationId:"HRB 35230 HB",registrationName:"Amtsgericht Bremen",vatId:"DE12345678"}},yY={name:"Awesome To GmbH",type:"company",status:"active",foundedDate:{day:1,month:1,year:2025},customerNumber:"LL-CLIENT-123",description:"a company that does stuff",address:{streetName:"Awesome Street",houseNumber:"5",city:"Bremen",country:"Germany",postalCode:"28359"},registrationDetails:{registrationId:"HRB 35230 HB",registrationName:"Amtsgericht Bremen",vatId:"DE12345678"}},bY={type:"accounting-doc",accountingDocType:"invoice",accountingDocId:"LL-INV-48765",accountingDocStatus:"draft",id:"LL-INV-48765",versionInfo:{version:"1.0.0",type:"draft"},language:"de",date:Date.now(),incidenceId:"LL-INV-48765",subject:"LL-INV-48765",reverseCharge:!0,dueInDays:30,from:xY,to:yY,status:null,deliveryDate:new Date().getTime(),periodOfPerformance:{from:+new Date().setDate(new Date().getDate()-7),to:+new Date},printResult:null,currency:"EUR",notes:[],items:[{name:"Item with 19% VAT",unitQuantity:2,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:0},{name:"Item with 7% VAT",unitQuantity:4,unitNetPrice:100,unitType:"hours",vatPercentage:7,position:1},{name:"Item with 7% VAT",unitQuantity:3,unitNetPrice:230,unitType:"hours",vatPercentage:7,position:2},{name:"Item with 21% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:21,position:3},{name:"Item with 0% VAT",unitQuantity:6,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:4},{name:"Item with 19% VAT",unitQuantity:8,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:5},{name:"Item with 7% VAT",unitQuantity:9,unitNetPrice:100,unitType:"hours",vatPercentage:7,position:6},{name:"Item with 7% VAT",unitQuantity:4,unitNetPrice:230,unitType:"hours",vatPercentage:7,position:8},{name:"Item with 21% VAT",unitQuantity:3,unitNetPrice:230,unitType:"hours",vatPercentage:21,position:9},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:10},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:11},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:12},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:13},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:14},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:15},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:16},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:17},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:18},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:19},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,position:20}]},wY={enableTopDraftText:!0,enableDefaultHeader:!0,enableDefaultFooter:!0,languageCode:"DE"};var vY=96/2.54,SY=Mb(29.7),kY=Mb(21);function Mb(e){return vY*e}var ha={};le(ha,{Smartjson:()=>Rb,deepEqualJsonLStrings:()=>RY,deepEqualObjects:()=>n_,foldDec:()=>LY,parse:()=>Vm,parseBase64:()=>FY,parseJsonL:()=>Lb,stableOneWayStringify:()=>OY,stringify:()=>Ui,stringifyBase64:()=>PY,stringifyJsonL:()=>_Y,stringifyPretty:()=>NY});var Ob={};le(Ob,{Smartenv:()=>_b});var _b=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&&!this.isDeno&&!this.isBun){console.error(`You tried to load a server module in a wrong context: ${t}. This does not throw.`);return}let n=await new Function(`return import('${t}')`)();return r&&await r(n),n}async getSafeWebModule(t,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(t))return r();this.loadedScripts.push(t);let n=J.defer();if(globalThis.importScripts)globalThis.importScripts(t),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=t,document.head.appendChild(o)}return await n.promise,r()}get runtimeEnv(){return typeof globalThis.Deno<"u"&&typeof globalThis.Deno?.version<"u"?"deno":typeof globalThis.Bun<"u"&&typeof globalThis.Bun?.version<"u"?"bun":typeof globalThis.process<"u"&&typeof globalThis.process?.versions?.node<"u"?"node":(typeof globalThis.window<"u"&&typeof globalThis.document<"u","browser")}get isBrowser(){return this.runtimeEnv==="browser"}get isNode(){return this.runtimeEnv==="node"}get isDeno(){return this.runtimeEnv==="deno"}get isBun(){return this.runtimeEnv==="bun"}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get nodeVersion(){return this.isNode?process.version:"undefined"}get denoVersion(){return this.isDeno?globalThis.Deno.version.deno:"undefined"}get bunVersion(){return this.isBun?globalThis.Bun.version:"undefined"}async getSafeModuleFor(t,r,n){let o;if(Array.isArray(t)?o=t.flatMap(i=>i==="server"?["node","deno","bun"]:[i]):t==="server"?o=["node","deno","bun"]:o=[t],!o.includes(this.runtimeEnv)){console.warn(`Module "${r}" requested for runtime(s) [${o.join(", ")}] but current runtime is "${this.runtimeEnv}". Skipping load.`);return}if(this.isNode||this.isDeno||this.isBun)return await this.getSafeNodeModule(r);if(this.isBrowser){if(!n){console.error(`Browser module load requires getFunction parameter for "${r}"`);return}return await this.getSafeWebModule(r,n)}}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):this.isDeno?(console.log("running on DENO"),console.log("deno version is "+this.denoVersion)):this.isBun?(console.log("running on BUN"),console.log("bun version is "+this.bunVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var Wm=bt($d(),1),KM=bt(zd(),1),qm=KM.default;function CY(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(String.fromCharCode(...e))}function DY(e){if(typeof Buffer<"u"){let t=Buffer.from(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}return new Uint8Array(Array.from(atob(e)).map(t=>t.charCodeAt(0)))}function Pb(e,t){return JSON.stringify(e,Ym,t)}function Fb(e){return JSON.parse(e,e_)}var Ym=(e,t)=>{if(IY(t)){let r;if("data"in t&&t_(t.data))r=new Uint8Array(t.data);else if(t instanceof Uint8Array)r=t;else return t;return{type:"EncodedBuffer",data:"base64:"+CY(r)}}return t},e_=(e,t)=>{if(AY(t)&&Nb(t.data)&&t.data.startsWith("base64:")){let r=t.data.slice(7);return DY(r)}return t};function AY(e){return r_(e)&&e.type==="EncodedBuffer"&&Nb(e.data)}function IY(e){return r_(e)&&e.type==="Buffer"&&(t_(e.data)||Nb(e.data))||e instanceof Uint8Array}function t_(e){return Array.isArray(e)}function Nb(e){return typeof e=="string"}function r_(e){return typeof e=="object"&&e!==null}var Vm=Fb,Lb=e=>e.split(`
272
+ `).reduce((n,o)=>{let i=o.trim();return i.length>0&&n.push(Vm(i)),n},[]),_Y=e=>e.map(t=>Ui(t)).join(`
273
+ `),OY=(e,t,r={})=>{let n=new WeakSet,o=a=>{if(a===null||typeof a!="object")return a;let l=Ym("",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 qm(i,s)},Ui=(e,t,r={})=>{let n=Pb(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 qm(e,o)},NY=e=>{let t=Ui(e),r=JSON.parse(t);return JSON.stringify(r,null,2)},PY=(...e)=>{let t=Ui(...e);return Ft.base64.encodeUri(t)},FY=e=>{let t=Ft.base64,n=(t.decodeUri||t.decode)(e);return Vm(n)},Rb=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=Vm(t);return this.enfoldFromObject(r)}saveableProperties;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)):Wm.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)}},LY=()=>(e,t)=>{let r=String(t.name);t.addInitializer(function(){this.saveableProperties||(this.saveableProperties=[]),this.saveableProperties.includes(r)||this.saveableProperties.push(r)})},n_=(e,t)=>{let r=Ui(e),n=Ui(t);return r===n},RY=(e,t)=>{let r=Lb(e),n=Lb(t);return n_(r,n)};var a0=bt(nO(),1);var bn=Ee`
272
274
  :host {
273
- font-family: 'Exo 2';
275
+ /* Primitive colors */
276
+ --color-light: #ffffff;
277
+ --color-dark: #333333;
278
+ --color-grey: #dddddd;
279
+ --color-grey-100: #dddddd;
280
+ --color-red: #e4002b;
281
+
282
+ /* Semantic colors */
283
+ --color-primary-fg: var(--theme-color-primary-fg, var(--color-dark));
284
+ --color-primary-bg: var(--theme-color-primary-bg, var(--color-light));
285
+ --color-accent-fg: var(--theme-color-accent-fg, var(--color-light));
286
+ --color-accent-bg: var(--theme-color-accent-bg, var(--color-red));
287
+
288
+ /* Functional colors */
289
+ --text-fg-color: var(--color-primary-fg);
290
+ --text-bg-color: var(--color-primary-bg);
291
+ --label-fg: var(--color-dark);
292
+ --label-bg: var(--color-grey);
293
+ --footer-separator-bg-color: var(--color-accent-bg);
294
+ --footer-separator-fg-color: var(--color-light);
295
+
296
+ /* Functional variables */
297
+ --DPI-FACTOR: ${fe.cmToPx(1)}px;
298
+ --RIGHT-MARGIN: ${fe.cmToPx(2)}px;
299
+ --LEFT-MARGIN: ${fe.cmToPx(2)}px;
300
+ --text-font-family: var(--theme-text-font-family, "Exo 2");
301
+ --text-font-size: var(--theme-text-font-size, 12px);
302
+
303
+ color: var(--text-fg-color);
304
+ font-family: var(--text-font-family);
305
+ font-size: var(--text-font-size);
274
306
  }
275
- `;var sr=class extends Fe{constructor(){super();this.getTotalNet=()=>{let r=0;if(!this.letterData)return r;for(let n of this.letterData.content.invoiceData.items)r+=n.unitNetPrice*n.unitQuantity;return r};this.getTotalGross=()=>{let r=0;if(!this.letterData)return r;for(let n of this.getVatGroups())r+=n.vatAmountSum;return this.getTotalNet()+r};this.getVatGroups=()=>{let r=[];if(!this.letterData)return r;let n=[];for(let i of this.letterData.content.invoiceData.items)n.includes(i.vatPercentage)||n.push(i.vatPercentage);for(let i of n){let o=this.letterData.content.invoiceData.items.filter(a=>a.vatPercentage===i),s=0;for(let a of o)s+=a.unitNetPrice*a.unitQuantity*(i/100);r.push({items:o,vatPercentage:i,vatAmountSum:Math.round(s*100)/100})}return r};ge.DomTools.setupDomTools()}render(){return J`
307
+ `;var oO,iO,sO,aO,Rn,l0,u0;aO=[nt("dedocument-contentinvoice")];var zr=class extends(sO=Ve,iO=[ee({type:Object,reflect:!0})],oO=[ee({type:Object,reflect:!0})],sO){constructor(){super();ae(this,l0,P(Rn,8,this)),P(Rn,11,this);ae(this,u0,P(Rn,12,this)),P(Rn,15,this);we(this,"getTotalNet",()=>{let r=0;if(!this.letterData)return r;for(let n of this.letterData.items)r+=n.unitNetPrice*n.unitQuantity;return r});we(this,"getTotalGross",()=>{let r=0;if(!this.letterData)return r;for(let n of this.getVatGroups())r+=n.vatAmountSum;return this.getTotalNet()+r});we(this,"getVatGroups",()=>{let r=[];if(!this.letterData)return r;let n=[];for(let o of this.letterData.items)n.includes(o.vatPercentage)||n.push(o.vatPercentage);for(let o of n){let i=this.letterData.items.filter(a=>a.vatPercentage===o),s=0;for(let a of i)s+=a.unitNetPrice*a.unitQuantity*(o/100);r.push({items:i,vatPercentage:o,vatAmountSum:Math.round(s*100)/100})}return r.sort((o,i)=>i.vatPercentage-o.vatPercentage)});Ce.DomTools.setupDomTools()}render(){return Z`
276
308
  <div class="trimmedContent"></div>
277
309
  <div class="repeatedContent"></div>
278
310
  <div class="currentContent"></div>
279
- `}async getContentNodes(){return await this.elementDomReady,{currentContent:this.shadowRoot.querySelector(".currentContent"),trimmedContent:this.shadowRoot.querySelector(".trimmedContent"),repeatedContent:this.shadowRoot.querySelector(".repeatedContent")}}async getContentLength(){return await this.elementDomReady,(await this.getContentNodes()).currentContent.children.length}async trimEndByOne(){await this.elementDomReady,this.shadowRoot.querySelector(".trimmedContent").append((await this.getContentNodes()).currentContent.children.item((await this.getContentNodes()).currentContent.children.length-1))}async trimStartToOffset(r){await this.elementDomReady;let n=(await this.getContentNodes()).currentContent.children.length;for(;(await this.getContentNodes()).currentContent.children.length!==n-r;)(await this.getContentNodes()).trimmedContent.append((await this.getContentNodes()).currentContent.children.item(0));if((await this.getContentNodes()).currentContent.children.item(0).classList.contains("needsDataHeader")){let i=(await this.getContentNodes()).trimmedContent,o=i.children.length;for(;o>0;){let s=i.children.item(o-1);if(s.classList.contains("dataHeader")){(await this.getContentNodes()).repeatedContent.append(s);break}o--}}}async firstUpdated(r){super.firstUpdated(r),this.attachInvoiceDom()}async attachInvoiceDom(){let r=await this.getContentNodes();Bo(J`
280
- <style>
281
- .grid {
282
- display: grid;
283
- grid-template-columns: 40px auto 60px 60px 84px 84px 46px;
284
- }
285
- .topLine {
286
- margin-top: 5px;
287
- background: #e7e7e7;
288
- font-weight: bold;
289
- }
290
- .lineItem {
291
- font-size: 12px;
292
- padding: 5px;
293
- border-right: 1px dashed #ccc;
294
- }
295
-
296
- .lineItem.rightAlign {
297
- text-align: right;
298
- }
299
-
300
- .invoiceLine {
301
- border-bottom: 1px dotted #ccc;
302
- }
303
-
304
- .sums {
305
- margin-top: 5px;
306
- font-size: 12px;
307
- padding-left: 50%;
308
- }
309
-
310
- .sums .sumline {
311
- margin-top: 3px;
312
- display: grid;
313
- grid-template-columns: auto 90px;
314
- }
315
-
316
- .sums .sumline .label {
317
- padding: 2px 5px;
318
- border-right: 1px solid #ccc;
319
- text-align: right;
320
- font-weight: bold;
321
- }
322
-
323
- .sums .sumline .value {
324
- padding: 2px 5px;
325
- font-weight: bold;
326
- }
327
-
328
- .divider {
329
- margin-top: 8px;
330
- border-top: 1px dotted #ccc;
331
- }
332
-
333
- .taxNote {
334
- font-size: 12px;
335
- padding: 4px;
336
- background: #eeeeeb;
337
- text-align: center;
338
- }
339
-
340
- .infoBox {
341
- border-radius: 7px;
342
- border: 1px solid #ddd;
343
- border-left: 3px solid #c5e1a5;
344
- padding: 8px;
345
- margin-top: 16px;
346
- line-height: 1.4em;
347
- font-size: 16px;
348
- }
349
-
350
- .infoBox .label {
351
- padding-bottom: 2px;
352
- font-size: 12px;
353
- font-weight: bold;
354
- }
355
-
356
- .paymentCode {
357
- text-align: center;
358
- border-left: 2px solid #666;
359
- }
360
- </style>
361
- <div>We hereby invoice products and services provided to you by Lossless GmbH:</div>
311
+ `}formatPrice(r,n="EUR",o="de-DE"){return new Intl.NumberFormat(o,{style:"currency",currency:n}).format(r)}async getContentNodes(){return await this.elementDomReady,{currentContent:this.shadowRoot.querySelector(".currentContent"),trimmedContent:this.shadowRoot.querySelector(".trimmedContent"),repeatedContent:this.shadowRoot.querySelector(".repeatedContent")}}async getContentLength(){return await this.elementDomReady,(await this.getContentNodes()).currentContent.children.length}async trimEndByOne(){await this.elementDomReady,this.shadowRoot.querySelector(".trimmedContent").append((await this.getContentNodes()).currentContent.children.item((await this.getContentNodes()).currentContent.children.length-1))}async trimStartToOffset(r){await this.elementDomReady;let n=(await this.getContentNodes()).currentContent.children.length;for(;(await this.getContentNodes()).currentContent.children.length!==n-r;)(await this.getContentNodes()).trimmedContent.append((await this.getContentNodes()).currentContent.children.item(0));if((await this.getContentNodes()).currentContent.children.item(0).classList.contains("needsDataHeader")){let o=(await this.getContentNodes()).trimmedContent,i=o.children.length;for(;i>0;){let s=o.children.item(i-1);if(s.classList.contains("dataHeader")){(await this.getContentNodes()).repeatedContent.append(s);break}i--}}}translateKey(r){return fe.translation.translate(this.documentSettings.languageCode,r)}async firstUpdated(r){super.firstUpdated(r),this.attachInvoiceDom()}renderPaymentTerms(){return Z`<div class="infoBox">
312
+ <div>
313
+ <div>
314
+ <div class="label">
315
+ ${this.translateKey("invoice@@payment.terms")}
316
+ </div>
317
+ <span>
318
+ ${this.translateKey("invoice@@payment.terms.direct")}
319
+ ${new Intl.DateTimeFormat(this.documentSettings.languageCode,{dateStyle:this.documentSettings.dateStyle}).format(new Date(this.letterData.date).setDate(new Date(this.letterData.date).getDate()+this.letterData?.dueInDays))}
320
+ </span>
321
+ </div>
322
+ </div>
323
+ </div>`}renderPaymentInfo(){let r=this.letterData?.from.sepaConnection.bic,n=this.letterData?.from.name,o=this.letterData?.from.sepaConnection.iban,i=this.letterData?.currency,s=this.getTotalGross(),a=this.letterData?.id;return Z`<div class="infoBox">
324
+ <div>
325
+ <div>
326
+ <div class="label">${this.translateKey("invoice@@payment.qr")}</div>
327
+ <span> ${this.translateKey("invoice@@payment.qr.description")} </span>
328
+ </div>
329
+ <dedocument-paymentcode
330
+ bic="${r}"
331
+ name="${n}"
332
+ iban="${o}"
333
+ currency="${i}"
334
+ totalGross="${s}"
335
+ reference="${a}"
336
+ />
337
+ </div>
338
+ </div>`}renderReferencedContract(){return null}async attachInvoiceDom(){let r=await this.getContentNodes();Zi(Z`
339
+ <div>${this.translateKey("invoice@@introStatement")}</div>
362
340
  <div class="grid topLine dataHeader">
363
- <div class="lineItem rightAlign">${oe.translation.translate(this.documentSettings.languageCode,"itemPos","Item Pos.")}</div>
364
- <div class="lineItem">${oe.translation.translate(this.documentSettings.languageCode,"description","Description")}</div>
365
- <div class="lineItem rightAlign">${oe.translation.translate(this.documentSettings.languageCode,"quantity","Quantity")}</div>
366
- <div class="lineItem">${oe.translation.translate(this.documentSettings.languageCode,"unitType","Unit Type")}</div>
367
- <div class="lineItem rightAlign">${oe.translation.translate(this.documentSettings.languageCode,"unitNetPrice","Unit Net Price")}</div>
368
- <div class="lineItem rightAlign">${oe.translation.translate(this.documentSettings.languageCode,"totalNetPrice","Total Net Price")}</div>
369
- <div class="lineItem rightAlign">${oe.translation.translate(this.documentSettings.languageCode,"vatShort","VAT")}</div>
341
+ <div class="lineItem rightAlign">
342
+ ${this.translateKey("invoice@@item.position")}
343
+ </div>
344
+ <div class="lineItem">
345
+ ${this.translateKey("invoice@@description")}
346
+ </div>
347
+ <div class="lineItem rightAlign">
348
+ ${this.translateKey("invoice@@quantity")}
349
+ </div>
350
+ <div class="lineItem">${this.translateKey("invoice@@unit.type")}</div>
351
+ <div class="lineItem rightAlign">
352
+ ${this.translateKey("invoice@@price.unit.net")}
353
+ </div>
354
+ <div class="lineItem rightAlign">
355
+ ${this.translateKey("invoice@@vat.short")}
356
+ </div>
357
+ <div class="lineItem rightAlign">
358
+ ${this.translateKey("invoice@@price.total.net")}
359
+ </div>
370
360
  </div>
371
- ${(()=>{let i=1;return this.letterData?.content.invoiceData?.items?.map(o=>J`
372
- <div class="grid invoiceLine needsDataHeader">
373
- <div class="lineItem rightAlign">${i++}</div>
374
- <div class="lineItem">${o.name}</div>
375
- <div class="lineItem rightAlign">${o.unitQuantity}</div>
376
- <div class="lineItem">${o.unitType}</div>
377
- <div class="lineItem rightAlign">${o.unitNetPrice} ${this.letterData?.content.invoiceData.currency}</div>
378
- <div class="lineItem rightAlign">
379
- ${o.unitQuantity*o.unitNetPrice} ${this.letterData?.content.invoiceData.currency}
380
- </div>
381
- <div class="lineItem rightAlign">
382
- ${o.vatPercentage}%
383
- </div>
361
+ ${this.letterData?.items?.map((n,o)=>Z`
362
+ <div class="grid needsDataHeader">
363
+ <div class="lineItem rightAlign">${o+1}</div>
364
+ <div class="lineItem">${n.name}</div>
365
+ <div class="lineItem rightAlign">${n.unitQuantity}</div>
366
+ <div class="lineItem">${n.unitType}</div>
367
+ <div class="lineItem rightAlign">
368
+ ${this.formatPrice(n.unitNetPrice)}
384
369
  </div>
385
- `)})()}
370
+ <div class="lineItem rightAlign">
371
+ ${n.vatPercentage}%
372
+ </div>
373
+ <div class="lineItem rightAlign">
374
+ ${this.formatPrice(n.unitQuantity*n.unitNetPrice)}
375
+ </div>
376
+ </div>
377
+ `)}
386
378
  <div class="sums">
387
379
  <div class="sumline">
388
- <div class="label">Total net</div>
389
- <div class="value">${this.getTotalNet()} EUR</div>
380
+ <div class="label">
381
+ ${this.translateKey("invoice@@sum.total.net")}
382
+ </div>
383
+ <div class="value value--total rightAlign">
384
+ ${this.formatPrice(this.getTotalNet())}
385
+ </div>
390
386
  </div>
391
- ${this.getVatGroups().map(i=>{let o="",s=!0;for(let a of i.items){let l=this.letterData.content.invoiceData.items.indexOf(a);o+=`${s?"":", "}${l+1}`,s=!1}return J`
387
+ ${this.getVatGroups().map(n=>{let o=n.items.map(i=>this.letterData.items.indexOf(i)+1).join(", ");return Z`
392
388
  <div class="sumline">
393
389
  <div class="label">
394
- Vat ${i.vatPercentage}%
395
- ${this.documentSettings.vatGroupPositions?J`
396
- <br /><span style="font-weight: normal">(on item positions: ${o})</span>
397
- `:J``}
390
+ ${this.translateKey("vat.short")}
391
+ ${n.vatPercentage}%
392
+ ${this.documentSettings.vatGroupPositions?Z`
393
+ <br /><span style="font-weight: normal"
394
+ >(${this.translateKey("invoice@@vat.position")}:
395
+ ${o})</span
396
+ >
397
+ `:Z``}
398
+ </div>
399
+ <div class="value rightAlign">
400
+ ${this.formatPrice(n.vatAmountSum)}
398
401
  </div>
399
- <div class="value">${i.vatAmountSum} EUR</div>
400
402
  </div>
401
403
  `})}
402
404
  <div class="sumline">
403
- <div class="label">Total gross</div>
404
- <div class="value">${this.getTotalGross()} EUR</div>
405
+ <div class="label">${this.translateKey("invoice@@totalGross")}</div>
406
+ <div class="value value--total rightAlign">
407
+ ${this.formatPrice(this.getTotalGross())}
408
+ </div>
405
409
  </div>
406
410
  </div>
407
411
  <div class="divider"></div>
408
- ${this.letterData?.content.invoiceData.reverseCharge?J`
409
- <div class="taxNote">
410
- ${oe.translation.translate(this.documentSettings.languageCode,"reverseVatNote","VAT arises on a reverse charge basis and is payable by the customer.")}
411
- </div>
412
- `:""}
413
- <div class="infoBox">
414
- <div class="label">Payment Terms:</div>
415
- Payment is due within 30 days starting from the reception of this invoice. Please use the
416
- following SEPA details:
417
- <br /><br />
418
- Beneficiary: ${this.letterData?.from.name}<br />
419
- IBAN: ${this.letterData?.from?.sepaConnection?.iban}<br />
420
- BIC: ${this.letterData?.from?.sepaConnection?.bic}<br />
421
- Description: ${this.letterData?.content.invoiceData?.id}<br />
422
- Amount: ${this.getTotalGross()} ${this.letterData?.content.invoiceData.currency}
423
- </div>
424
- ${this.letterData?.content?.contractData?.contractDate?J`
425
- <div class="infoBox">
426
- <div class="label">Referenced contract:</div>
427
- This invoice is adhering to agreements made by contract between the parties on
428
- ${Ht.ExtendedDate.fromMillis(this.letterData?.content.contractData.contractDate).format("MMMM D, YYYY")}.
429
- </div>
430
- `:J``}
431
- <div class="infoBox paymentCode">
432
- <div class="label">Sepa Payment Code:</div>
433
- </div>
434
- `,r.currentContent);let n=document.createElement("canvas");KC.toCanvas(n,`BCD
435
- 001
436
- 1
437
- SCT
438
- ${this.letterData.content.invoiceData.billedBy.sepaConnection.bic}
439
- ${this.letterData.content.invoiceData.billedBy.name}
440
- ${this.letterData.content.invoiceData.billedBy.sepaConnection.iban}
441
- EUR${this.getTotalGross()}
442
- CHAR
443
- ${this.letterData.content.invoiceData.id}
444
- ${this.letterData.content.invoiceData.id}
445
- EPC QR Code`,i=>{i&&console.error(i)}),r.currentContent.querySelector(".paymentCode").append(n)}};sr.demo=()=>J`
412
+
413
+ ${this.letterData?.reverseCharge?Z`<div class="taxNote">
414
+ ${this.translateKey("invoice@@vat.reverseCharge.note")}
415
+ </div>`:""}
416
+
417
+ <!-- REFERENCED CONTRACT -->
418
+ ${this.renderReferencedContract()}
419
+
420
+ <!-- PAYMENT TERMS -->
421
+ ${this.renderPaymentTerms()}
422
+
423
+ <!-- PAYMENT INFO -->
424
+ ${this.renderPaymentInfo()}
425
+ `,r.currentContent)}};Rn=lt(sO),l0=new WeakMap,u0=new WeakMap,Q(Rn,4,"letterData",iO,zr,l0),Q(Rn,4,"documentSettings",oO,zr,u0),zr=Q(Rn,0,"DeContentInvoice",aO,zr),we(zr,"demo",()=>Z`
446
426
  <style>
447
427
  .demoContainer {
448
428
  background: white;
@@ -452,37 +432,153 @@ EPC QR Code`,i=>{i&&console.error(i)}),r.currentContent.querySelector(".paymentC
452
432
  <div class="demoContainer">
453
433
  <dedocument-contentinvoice></dedocument-contentinvoice>
454
434
  </div>
455
- `,sr.styles=[ge.elementBasic.staticStyles,or,xe`
456
- :host {
457
- color: #333;
458
- }
459
-
435
+ `),we(zr,"styles",[Ce.elementBasic.staticStyles,bn,Ee`
460
436
  .trimmedContent {
461
437
  display: none;
462
438
  }
463
439
 
464
- .repeatedContent {
440
+ .grid {
441
+ display: grid;
442
+ grid-template-columns: 40px auto 50px 50px 100px 50px 100px;
443
+ }
444
+
445
+ .topLine {
446
+ margin-top: 5px;
447
+ background: #e7e7e7;
448
+ font-weight: bold;
449
+ }
450
+
451
+ .lineItem {
452
+ font-size: 12px;
453
+ padding: 5px;
454
+ border-right: 1px dashed #ccc;
455
+ white-space: nowrap;
456
+ }
457
+
458
+ .lineItem:last-child {
459
+ border-right: none;
460
+ }
461
+
462
+ .value.rightAlign,
463
+ .lineItem.rightAlign {
464
+ text-align: right;
465
+ }
466
+
467
+ .invoiceLine {
468
+ background: #ffffff00;
469
+ border-bottom: 1px dotted #ccc;
470
+ }
471
+
472
+ .invoiceLine.highlighted {
473
+ transition: background 0.2s;
474
+ background: #ffc18f;
475
+ border: 1px solid #ff9d4d;
476
+ box-sizing: content-box;
477
+ }
478
+
479
+ .sums {
480
+ margin-top: 5px;
481
+ font-size: 12px;
482
+ padding-left: 50%;
483
+ }
484
+
485
+ .sums .sumline {
486
+ margin-top: 3px;
487
+ display: grid;
488
+ grid-template-columns: auto 100px;
489
+ }
490
+
491
+ .sums .sumline .label {
492
+ padding: 2px 5px;
493
+ border-right: 1px solid #ccc;
494
+ text-align: right;
495
+ font-weight: bold;
496
+ }
497
+
498
+ .sums .sumline .value {
499
+ padding: 2px 5px;
500
+ }
501
+
502
+ .sums .sumline .value--total {
503
+ font-weight: bold;
504
+ }
505
+
506
+ .divider {
507
+ margin-top: 8px;
508
+ border-top: 1px dotted #ccc;
465
509
  }
466
- `],X([re({type:Object,reflect:!0})],sr.prototype,"letterData",2),X([re({type:Object,reflect:!0})],sr.prototype,"documentSettings",2),sr=X([Ze("dedocument-contentinvoice")],sr);var ct=class extends Fe{constructor(){super();this.viewWidth=null;this.viewHeight=null;this.format="a4";this.pageNumber=1;this.pageTotalNumber=1;this.letterData=null;this.printMode=!1;this.documentSettings=xc;ge.DomTools.setupDomTools()}render(){return J`
510
+
511
+ .taxNote {
512
+ font-size: 12px;
513
+ padding: 4px;
514
+ background: #eeeeeb;
515
+ text-align: center;
516
+ }
517
+
518
+ .infoBox {
519
+ margin-top: 22px;
520
+ line-height: 1.4em;
521
+ }
522
+
523
+ .infoBox .label {
524
+ padding-bottom: 2px;
525
+ font-weight: bold;
526
+ }
527
+ `]),P(Rn,1,zr);var lO,uO,cO,fO,pO,mO,hO,dO,gO,xO,Be,c0,f0,p0,m0,h0,d0,g0,x0;xO=[nt("dedocument-page")];var Ct=class extends(gO=Ve,dO=[ee({type:Number})],hO=[ee({type:Number})],mO=[ee({type:String})],pO=[ee({type:Number})],fO=[ee({type:Number})],cO=[ee({type:Object})],uO=[ee({type:Boolean,reflect:!0})],lO=[ee({type:Object,reflect:!0})],gO){constructor(){super();ae(this,c0,P(Be,8,this,null)),P(Be,11,this);ae(this,f0,P(Be,12,this,null)),P(Be,15,this);ae(this,p0,P(Be,16,this,"a4")),P(Be,19,this);ae(this,m0,P(Be,20,this,1)),P(Be,23,this);ae(this,h0,P(Be,24,this,1)),P(Be,27,this);ae(this,d0,P(Be,28,this,null)),P(Be,31,this);ae(this,g0,P(Be,32,this,!1)),P(Be,35,this);ae(this,x0,P(Be,36,this,ih)),P(Be,39,this);Ce.DomTools.setupDomTools()}render(){let r=this.documentSettings.theme;return Z`
528
+ <style>
529
+ :host {
530
+ ${r?.colorPrimaryForeground?`--theme-color-primary-fg: ${r.colorPrimaryForeground};`:""}
531
+ ${r?.colorPrimaryBackground?`--theme-color-primary-bg: ${r.colorPrimaryBackground};`:""}
532
+ ${r?.colorAccentForeground?`--theme-color-accent-fg: ${r.colorAccentForeground};`:""}
533
+ ${r?.colorAccentBackground?`--theme-color-accent-bg: ${r.colorAccentBackground};`:""}
534
+ }
535
+
536
+ .page {
537
+ background-size: contain;
538
+ height: 100%;
539
+ }
540
+
541
+ .page:not(.page--first) {
542
+ background-image: ${r?.pageBackground??"none"};
543
+ }
544
+
545
+ .page.page--first {
546
+ background-image: ${r?.coverPageBackground??r?.pageBackground??"none"};
547
+ }
548
+ </style>
467
549
  <div id="scaleWrapper">
468
550
  <dedocument-pagecontainer .printMode=${this.printMode}>
469
- ${this.letterData?J`
470
- ${this.documentSettings.enableDefaultHeader?J`
551
+ <div
552
+ class="page ${this.pageNumber===1?"page--first":""}"
553
+ ></div>
554
+ ${this.letterData?Z`
555
+ ${this.documentSettings.enableDefaultHeader?Z`
471
556
  <dedocument-pageheader
472
557
  .letterData=${this.letterData}
473
558
  .documentSettings=${this.documentSettings}
474
559
  .pageNumber="${this.pageNumber}"
475
560
  .pageTotalNumber="${this.pageTotalNumber}"
476
561
  ></dedocument-pageheader>
477
- `:""}
478
- ${this.pageNumber===1?J`
562
+ `:null}
563
+
564
+ <!-- FOLD MARKS -->
565
+ ${this.documentSettings.enableFoldMarks===!0?Z` <div class="foldMark__wrapper">
566
+ <span class="foldMark foldMark--start"></span>
567
+ <span class="foldMark foldMark--center"></span>
568
+ <span class="foldMark foldMark--end"></span>
569
+ </div>`:null}
570
+
571
+ <!-- LETTER HEADER -->
572
+ ${this.pageNumber===1?Z`
479
573
  <dedocument-letterheader
480
574
  .pageNumber="${this.pageNumber}"
481
575
  .letterData=${this.letterData}
482
576
  .documentSettings=${this.documentSettings}
483
577
  .pageTotalNumber="${this.pageTotalNumber}"
484
578
  ></dedocument-letterheader>
485
- `:J``}
579
+ `:null}
580
+
581
+ <!-- PAGE CONTENT -->
486
582
  <dedocument-pagecontent
487
583
  .letterData=${this.letterData}
488
584
  .documentSettings=${this.documentSettings}
@@ -490,30 +586,28 @@ EPC QR Code`,i=>{i&&console.error(i)}),r.currentContent.querySelector(".paymentC
490
586
  .pageTotalNumber="${this.pageTotalNumber}"
491
587
  ><slot></slot
492
588
  ></dedocument-pagecontent>
493
- ${this.documentSettings.enableDefaultFooter?J`
589
+
590
+ <!-- DEFAULT FOOTER -->
591
+ ${this.documentSettings.enableDefaultFooter===!0?Z`
494
592
  <dedocument-pagefooter
495
593
  .letterData=${this.letterData}
496
594
  .documentSettings=${this.documentSettings}
497
595
  .pageNumber="${this.pageNumber}"
498
596
  .pageTotalNumber="${this.pageTotalNumber}"
499
597
  ></dedocument-pagefooter>
500
- `:""}
598
+ `:null}
599
+
501
600
  <div class="versionOverlay">
502
- ${this.letterData.versionInfo.type==="draft"?J`
503
- ${this.documentSettings.enableTopDraftText?J`
504
- <div class="topInfo">
505
- Please note: THIS IS A DRAFT ONLY. NO RIGHTS CAN BE DERIVED FROM
506
- THIS.<br />
507
- -> Revision/Document version: ${this.letterData.versionInfo.version}
508
- </div>
509
- `:""}
510
- <div class="bigDraftText">DRAFT</div>
511
- `:J``}
601
+ ${this.letterData.versionInfo.type==="draft"?Z`
602
+ <div class="bigDraftText">
603
+ ${fe.translation.translate(this.documentSettings.languageCode,"overlay@@draft")}
604
+ </div>
605
+ `:null}
512
606
  </div>
513
- `:J` <slot></slot> `}
607
+ `:Z` <slot></slot> `}
514
608
  </dedocument-pagecontainer>
515
609
  </div>
516
- `}async checkOverflow(){return await this.elementDomReady,this.shadowRoot.querySelector("dedocument-pagecontent").checkOverflow()}updated(r){super.updated(r),(r.has("viewHeight")||r.has("viewWidth"))&&this.adjustScaling()}adjustScaling(){let r=this.shadowRoot.querySelector("#scaleWrapper");if(!r)return;let n=1;this.viewHeight?n=this.viewHeight/oe.a4Height:this.viewWidth&&(n=this.viewWidth/oe.a4Width),r.style.transform=`scale(${n})`,this.style.width=`${oe.a4Width*n}px`,this.style.height=`${oe.a4Height*n}px`}};ct.demo=()=>J` <dedocument-page .format="${"a4"}"></dedocument-page> `,ct.styles=[ge.elementBasic.staticStyles,xe`
610
+ `}async checkOverflow(){return await this.elementDomReady,this.shadowRoot.querySelector("dedocument-pagecontent").checkOverflow()}updated(r){super.updated(r),(r.has("viewHeight")||r.has("viewWidth"))&&this.adjustScaling()}adjustScaling(){let r=this.shadowRoot.querySelector("#scaleWrapper");if(!r)return;let n=1;this.viewHeight?n=this.viewHeight/fe.A4_HEIGHT:this.viewWidth&&(n=this.viewWidth/fe.A4_WIDTH),r.style.transform=`scale(${n})`,this.style.width=`${fe.A4_WIDTH*n}px`,this.style.height=`${fe.A4_HEIGHT*n}px`}};Be=lt(gO),c0=new WeakMap,f0=new WeakMap,p0=new WeakMap,m0=new WeakMap,h0=new WeakMap,d0=new WeakMap,g0=new WeakMap,x0=new WeakMap,Q(Be,4,"viewWidth",dO,Ct,c0),Q(Be,4,"viewHeight",hO,Ct,f0),Q(Be,4,"format",mO,Ct,p0),Q(Be,4,"pageNumber",pO,Ct,m0),Q(Be,4,"pageTotalNumber",fO,Ct,h0),Q(Be,4,"letterData",cO,Ct,d0),Q(Be,4,"printMode",uO,Ct,g0),Q(Be,4,"documentSettings",lO,Ct,x0),Ct=Q(Be,0,"DePage",xO,Ct),we(Ct,"demo",()=>Z` <dedocument-page .format="${"a4"}"></dedocument-page> `),we(Ct,"styles",[Ce.elementBasic.staticStyles,Ee`
517
611
  :host {
518
612
  display: block;
519
613
  overflow: hidden;
@@ -539,76 +633,122 @@ EPC QR Code`,i=>{i&&console.error(i)}),r.currentContent.querySelector(".paymentC
539
633
  align-items: center;
540
634
  }
541
635
 
542
- .topInfo {
543
- position: absolute;
544
- top: 60px;
545
- left: 40px;
546
- color: red;
547
- transform: rotate(-5deg);
548
- }
549
-
550
636
  .bigDraftText {
551
637
  transform: rotate(-45deg);
552
638
  font-size: 200px;
553
639
  opacity: 0.05;
554
640
  }
555
- `],X([re({type:Number})],ct.prototype,"viewWidth",2),X([re({type:Number})],ct.prototype,"viewHeight",2),X([re({type:String})],ct.prototype,"format",2),X([re({type:Number})],ct.prototype,"pageNumber",2),X([re({type:Number})],ct.prototype,"pageTotalNumber",2),X([re({type:Object})],ct.prototype,"letterData",2),X([re({type:Boolean,reflect:!0})],ct.prototype,"printMode",2),X([re({type:Object,reflect:!0})],ct.prototype,"documentSettings",2),ct=X([Ze("dedocument-page")],ct);var eT=()=>J`
556
- <dedocument-dedocument .format="${"a4"}" .letterData=${oe.demoLetter}></dedocument-dedocument>
557
- `;var xc={enableTopDraftText:!0,enableDefaultHeader:!0,enableDefaultFooter:!0,languageCode:"EN",vatGroupPositions:!0},Nt=class extends Fe{constructor(){super();this.format="a4";this.viewWidth=null;this.viewHeight=null;this.printMode=!1;this.documentSettings=xc;this.latestDocumentSettings=null;this.latestRenderedLetterData=null;this.cleanupStore=[];ge.DomTools.setupDomTools()}render(){return J`
558
- <div class="documentContainer"></div>
559
- `}async firstUpdated(r){ge.plugins.smartdelay.delayFor(0).then(async()=>{for(this.documentSettings={...xc,...this.documentSettings};!1;)await ge.plugins.smartdelay.delayFor(1e3),this.letterData={...this.letterData,content:{...this.letterData.content,invoiceData:{...this.letterData.content.invoiceData,items:[...this.letterData.content.invoiceData.items,{name:"Test Item",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:19,position:1}]}}}});let n=new ResizeObserver(i=>{for(let o of i){let s=o.contentRect.width,a=o.contentRect.height;this.adjustDePageScaling()}});n.observe(this),this.registerGarbageFunction(()=>{n.disconnect()})}async renderDocument(){this.latestDocumentSettings=this.documentSettings,this.latestRenderedLetterData=this.letterData;let r=[],n=[],i=await this.domtoolsPromise,o=document.createElement("div");r.push(o),document.body.appendChild(o);let s=[],a=0,l=!1,u=new sr;r.push(u),u.letterData=this.letterData,u.documentSettings=this.documentSettings,document.body.appendChild(u),await i.convenience.smartdelay.delayFor(0);let c=0,f,p;for(;!l;){a++;let m=u.cloneNode(!0);n.push(m);let x=new ct;x.printMode=this.printMode,x.letterData=this.letterData,x.documentSettings=this.documentSettings,s.push(x),x.pageNumber=a,x.append(m),x.pageTotalNumber=a,n.push(x),o.append(x),await m.elementDomReady,await m.trimStartToOffset(c);let v=await x.checkOverflow();for(p=0;v;)await m.trimEndByOne(),p++,v=await x.checkOverflow();f=await m.getContentLength(),c=c+f,p===0&&(l=!0)}for(let m of this.cleanupStore)m.remove();this.cleanupStore=n,r.forEach(m=>{m.remove()});let h=this.shadowRoot.querySelector(".documentContainer");h&&Array.from(h.children).forEach(x=>{h.removeChild(x),x.remove()});for(let m of s)if(m.pageTotalNumber=a,h.append(m),!this.printMode){let x=document.createElement("div");x.classList.add("betweenPagesSpacer"),h.appendChild(x)}this.adjustDePageScaling()}async updated(r){super.updated(r);let n=await this.domtoolsPromise;n.convenience.smartjson.deepEqualObjects(this.letterData,this.latestRenderedLetterData)&&n.convenience.smartjson.deepEqualObjects(this.documentSettings,this.latestDocumentSettings)||this.renderDocument(),(r.has("viewHeight")||r.has("viewWidth"))&&this.adjustDePageScaling()}adjustDePageScaling(){if(this.printMode)return;this.viewWidth=this.clientWidth,this.shadowRoot.querySelectorAll("dedocument-page").forEach(n=>{this.viewHeight&&(n.viewHeight=this.viewHeight),this.viewWidth&&(n.viewWidth=this.viewWidth)})}};Nt.demo=eT,Nt.styles=[ge.elementBasic.staticStyles,xe`
641
+
642
+ .foldMark__wrapper {
643
+ z-index: 0;
644
+ }
645
+
646
+ .foldMark {
647
+ position: absolute;
648
+ border-top: 1px solid #d3d3d3;
649
+ width: 10px;
650
+ left: 15px;
651
+ }
652
+
653
+ .foldMark--start {
654
+ top: calc(var(--DPI-FACTOR) * 8.7);
655
+ }
656
+
657
+ .foldMark--center {
658
+ top: calc(var(--DPI-FACTOR) * 14.85);
659
+ }
660
+
661
+ .foldMark--end {
662
+ top: calc(var(--DPI-FACTOR) * 19.2);
663
+ }
664
+ `]),P(Be,1,Ct);var yO=()=>Z`
665
+ <dedocument-dedocument
666
+ .format="${"a4"}"
667
+ .letterData=${fe.demoLetter}
668
+ ></dedocument-dedocument>
669
+ `;var bO,wO,vO,SO,kO,TO,EO,CO,st,y0,b0,w0,v0,S0,k0,ih={enableTopDraftText:!0,enableDefaultHeader:!0,enableDefaultFooter:!0,enableFoldMarks:!0,enableInvoiceContractRefSection:!0,languageCode:"EN",vatGroupPositions:!0,dateStyle:"short"};CO=[nt("dedocument-dedocument")];var mr=class extends(EO=Ve,TO=[ee({type:String,reflect:!0})],kO=[ee({type:Number,reflect:!0})],SO=[ee({type:Number,reflect:!0})],vO=[ee({type:Boolean,reflect:!0})],wO=[ee({type:Object,reflect:!0,converter:r=>typeof r=="string"?ha.parseBase64(r):r})],bO=[ee({type:Object,reflect:!0,converter:r=>typeof r=="string"?ha.parseBase64(r):r})],EO){constructor(){super();ae(this,y0,P(st,8,this,"a4")),P(st,11,this);ae(this,b0,P(st,12,this,null)),P(st,15,this);ae(this,w0,P(st,16,this,null)),P(st,19,this);ae(this,v0,P(st,20,this,!1)),P(st,23,this);ae(this,S0,P(st,24,this)),P(st,27,this);ae(this,k0,P(st,28,this,ih)),P(st,31,this);we(this,"latestDocumentSettings",null);we(this,"latestRenderedLetterData",null);we(this,"cleanupStore",[]);Ce.DomTools.setupDomTools()}render(){return Z` <div class="documentContainer"></div> `}async firstUpdated(r){Ce.plugins.smartdelay.delayFor(0).then(async()=>{this.documentSettings={...ih,...this.documentSettings}});let n=new ResizeObserver(o=>{for(let i of o){let s=i.contentRect.width,a=i.contentRect.height;this.adjustDePageScaling()}});n.observe(this),this.registerGarbageFunction(()=>{n.disconnect()})}async renderDocument(){this.latestDocumentSettings=this.documentSettings,this.latestRenderedLetterData=this.letterData;let r=[],n=[],o=await this.domtoolsPromise,i=document.createElement("div");r.push(i),document.body.appendChild(i);let s=[],a=0,l=!1,u=new zr;r.push(u),u.letterData=this.letterData,u.documentSettings=this.documentSettings,document.body.appendChild(u),await o.convenience.smartdelay.delayFor(0);let c=0,f,p;for(;!l;){a++;let h=u.cloneNode(!0);n.push(h);let d=new Ct;d.printMode=this.printMode,d.letterData=this.letterData,d.documentSettings=this.documentSettings,s.push(d),d.pageNumber=a,d.append(h),d.pageTotalNumber=a,n.push(d),i.append(d),await h.elementDomReady,await h.trimStartToOffset(c);let g=await d.checkOverflow();for(p=0;g;)await h.trimEndByOne(),p++,g=await d.checkOverflow();f=await h.getContentLength(),c=c+f,p===0&&(l=!0)}for(let h of this.cleanupStore)h.remove();this.cleanupStore=n,r.forEach(h=>{h.remove()});let m=this.shadowRoot.querySelector(".documentContainer");m&&Array.from(m.children).forEach(d=>{m.removeChild(d),d.remove()});for(let h of s)if(h.pageTotalNumber=a,m.append(h),!this.printMode){let d=document.createElement("div");d.classList.add("betweenPagesSpacer"),m.appendChild(d)}this.adjustDePageScaling()}async updated(r){super.updated(r);let n=await this.domtoolsPromise;n.convenience.smartjson.deepEqualObjects(this.letterData,this.latestRenderedLetterData)&&n.convenience.smartjson.deepEqualObjects(this.documentSettings,this.latestDocumentSettings)||this.renderDocument(),(r.has("viewHeight")||r.has("viewWidth"))&&this.adjustDePageScaling()}adjustDePageScaling(){if(this.printMode)return;this.viewWidth=this.clientWidth,this.shadowRoot.querySelectorAll("dedocument-page").forEach(n=>{this.viewHeight&&(n.viewHeight=this.viewHeight),this.viewWidth&&(n.viewWidth=this.viewWidth)})}};st=lt(EO),y0=new WeakMap,b0=new WeakMap,w0=new WeakMap,v0=new WeakMap,S0=new WeakMap,k0=new WeakMap,Q(st,4,"format",TO,mr,y0),Q(st,4,"viewWidth",kO,mr,b0),Q(st,4,"viewHeight",SO,mr,w0),Q(st,4,"printMode",vO,mr,v0),Q(st,4,"letterData",wO,mr,S0),Q(st,4,"documentSettings",bO,mr,k0),mr=Q(st,0,"DeDocument",CO,mr),we(mr,"demo",yO),we(mr,"styles",[Ce.elementBasic.staticStyles,Ee`
560
670
  :host {
561
671
  display: block;
562
- color: #333;
563
- padding: 0px;
564
- position: relative;
565
- font-family: 'Dees Sans', sans-serif;
566
672
  }
567
673
 
568
674
  .betweenPagesSpacer {
569
675
  height: 16px;
570
676
  }
571
- `],X([re({type:String,reflect:!0})],Nt.prototype,"format",2),X([re({type:Number,reflect:!0})],Nt.prototype,"viewWidth",2),X([re({type:Number,reflect:!0})],Nt.prototype,"viewHeight",2),X([re({type:Boolean,reflect:!0})],Nt.prototype,"printMode",2),X([re({type:Object,reflect:!0,converter:r=>typeof r=="string"?Oe.parseBase64(r):r})],Nt.prototype,"letterData",2),X([re({type:Object,reflect:!0,converter:r=>typeof r=="string"?Oe.parseBase64(r):r})],Nt.prototype,"documentSettings",2),Nt=X([Ze("dedocument-dedocument")],Nt);var Dr=class extends Fe{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;ge.DomTools.setupDomTools()}render(){return J`
677
+ `]),P(st,1,mr);var DO,AO,IO,MO,_O,OO,Vt,T0,E0,C0,D0;OO=[nt("dedocument-letterheader")];var Hr=class extends(_O=Ve,MO=[ee({type:Object,reflect:!0})],IO=[ee({type:Number,reflect:!0})],AO=[ee({type:Number,reflect:!0})],DO=[ee({type:Object,reflect:!0})],_O){constructor(){super();ae(this,T0,P(Vt,8,this)),P(Vt,11,this);ae(this,E0,P(Vt,12,this,1)),P(Vt,15,this);ae(this,C0,P(Vt,16,this,1)),P(Vt,19,this);ae(this,D0,P(Vt,20,this)),P(Vt,23,this);Ce.DomTools.setupDomTools()}renderDeliveryDate(r,n){if(this.letterData.accountingDocType!=="invoice")return null;let o=new Intl.DateTimeFormat(this.documentSettings.languageCode,{dateStyle:this.documentSettings.dateStyle}),i=r?o.format(r):null,s=n?o.format(n):null;return i===s?Z`<div class="label">
678
+ ${fe.translation.translate(this.documentSettings.languageCode,"letterhead@@periodOfPerformance.day")}
679
+ </div>
680
+ <span> ${i} </span>`:Z`<div class="label">
681
+ ${fe.translation.translate(this.documentSettings.languageCode,"letterhead@@periodOfPerformance.range")}
682
+ </div>
683
+ <span> ${i} - ${s}</span>`}render(){return Z`
572
684
  <div class="date">
573
- ${new Date(this.letterData.date).getDate()}. ${new Date(this.letterData.date).toLocaleString("default",{month:"long"})}
574
- ${new Date(this.letterData.date).getFullYear()}
685
+ ${new Intl.DateTimeFormat(this.documentSettings.languageCode,{dateStyle:"long"}).format(new Date(this.letterData.date))}
575
686
  </div>
576
687
  <div class="address">
577
688
  <div class="from">
578
- ${this.letterData.from.name}, ${this.letterData.from.address.streetName}
579
- ${this.letterData.from.address.houseNumber}, ${this.letterData.from.address.postalCode}
580
- ${this.letterData.from.address.city}, ${this.letterData.from.address.country}
689
+ ${this.letterData.from.name},
690
+ ${this.letterData.from.address.streetName}
691
+ ${this.letterData.from.address.houseNumber},
692
+ ${this.letterData.from.address.postalCode}
693
+ ${this.letterData.from.address.city},
694
+ ${this.letterData.from.address.country}
581
695
  </div>
582
696
  <div class="to">
583
697
  ${this.letterData.to.name}<br />
584
- ${this.letterData.to.address.streetName} ${this.letterData.to.address.houseNumber}<br />
585
- ${this.letterData.to.address.postalCode} ${this.letterData.to.address.city}<br />
698
+ ${this.letterData.to.address.streetName}
699
+ ${this.letterData.to.address.houseNumber}<br />
700
+ ${this.letterData.to.address.postalCode}
701
+ ${this.letterData.to.address.city}<br />
586
702
  ${this.letterData.from.address.country}
587
703
  </div>
588
704
  </div>
589
705
  <div class="recepientInfo">
590
- <div class="label">your customer id:</div>
706
+ <div class="label">
707
+ ${fe.translation.translate(this.documentSettings.languageCode,"letterhead@@customer.number")}
708
+ </div>
591
709
  ${this.letterData.to.customerNumber||"not registered"}
592
710
 
593
- <div class="label">your vat id on file:</div>
594
- ${this.letterData.to.vatId||"not provided"}
711
+ <div class="label">
712
+ ${fe.translation.translate(this.documentSettings.languageCode,"letterhead@@vat.yourId")}
713
+ </div>
714
+ ${this.letterData.to.registrationDetails.vatId||"not provided"}
715
+
716
+ <!-- TODO: Make use of components -->
717
+ ${this.letterData.accountingDocType==="invoice"?Z` <div class="label">
718
+ ${fe.translation.translate(this.documentSettings.languageCode,"letterhead@@invoice.number")}
719
+ </div>
720
+ ${this.letterData.id||"not registered"}`:null}
721
+ ${this.renderDeliveryDate(new Date(this.letterData.periodOfPerformance?.from),new Date(this.letterData.periodOfPerformance?.to))}
595
722
  </div>
596
- `}};Dr.demo=()=>J`
597
- <dedocument-letterheader .format="${"a4"}" .letterData=${oe.demoLetter}></dedocument-letterheader>
598
- `,Dr.styles=[ge.elementBasic.staticStyles,or,xe`
599
- :host {
600
- color: #333;
723
+ `}};Vt=lt(_O),T0=new WeakMap,E0=new WeakMap,C0=new WeakMap,D0=new WeakMap,Q(Vt,4,"letterData",MO,Hr,T0),Q(Vt,4,"pageNumber",IO,Hr,E0),Q(Vt,4,"pageTotalNumber",AO,Hr,C0),Q(Vt,4,"documentSettings",DO,Hr,D0),Hr=Q(Vt,0,"DeLetterHeader",OO,Hr),we(Hr,"demo",()=>Z`
724
+ <dedocument-letterheader
725
+ .format="${"a4"}"
726
+ .letterData=${fe.demoLetter}
727
+ ></dedocument-letterheader>
728
+ `),we(Hr,"styles",[Ce.elementBasic.staticStyles,bn,Ee`
729
+ .address {
730
+ position: absolute;
731
+ top: calc(var(--DPI-FACTOR) * 4.5);
732
+ left: var(--LEFT-MARGIN);
733
+ }
734
+
735
+ .date {
736
+ position: absolute;
737
+ top: calc(var(--DPI-FACTOR) * 4.5);
738
+ right: var(--RIGHT-MARGIN);
739
+ text-align: right;
601
740
  }
602
741
 
603
742
  .recepientInfo {
604
743
  position: absolute;
605
744
  display: block;
606
745
  overflow: hidden;
607
- top: 200px;
608
- right: ${le(oe.rightMargin+"px")};
746
+ top: calc(var(--DPI-FACTOR) * 5.5);
747
+ right: var(--RIGHT-MARGIN);
609
748
  width: 200px;
610
749
  text-align: right;
611
750
  }
751
+
612
752
  .recepientInfo .label {
613
753
  margin-top: 10px;
614
754
  margin-bottom: 3px;
@@ -616,19 +756,6 @@ EPC QR Code`,i=>{i&&console.error(i)}),r.currentContent.querySelector(".paymentC
616
756
  font-weight: bold;
617
757
  }
618
758
 
619
- .date {
620
- position: absolute;
621
- top: 180px;
622
- right: ${le(oe.rightMargin+"px")};
623
- text-align: right;
624
- }
625
-
626
- .address {
627
- position: absolute;
628
- top: 180px;
629
- left: ${le(oe.leftMargin+"px")};
630
- }
631
-
632
759
  .address .from {
633
760
  font-size: 10px;
634
761
  }
@@ -636,58 +763,51 @@ EPC QR Code`,i=>{i&&console.error(i)}),r.currentContent.querySelector(".paymentC
636
763
  .address .to {
637
764
  margin-top: 10px;
638
765
  }
639
- `],X([re({type:Object,reflect:!0})],Dr.prototype,"letterData",2),X([re({type:Number,reflect:!0})],Dr.prototype,"pageNumber",2),X([re({type:Number,reflect:!0})],Dr.prototype,"pageTotalNumber",2),Dr=X([Ze("dedocument-letterheader")],Dr);var un=class extends Fe{constructor(){super();this.format="a4";this.printMode=!1;Dt.setupDomTools()}render(){return J`
766
+ `]),P(Vt,1,Hr);var NO,PO,FO,LO,$n,A0,I0;LO=[nt("dedocument-pagecontainer")];var Bn=class extends(FO=Ve,PO=[ee({type:String})],NO=[ee({type:Boolean})],FO){constructor(){super();ae(this,A0,P($n,8,this,"a4")),P($n,11,this);ae(this,I0,P($n,12,this,!1)),P($n,15,this);Er.setupDomTools()}render(){return Z`
640
767
  <style>
641
768
  :host {
642
769
  box-shadow: ${this.printMode?"none":"0px 0px 10px rgba(0,0,0,0.3)"};
643
770
  }
644
771
  </style>
645
772
  <slot></slot>
646
- `}};un.demo=()=>J`
773
+ `}};$n=lt(FO),A0=new WeakMap,I0=new WeakMap,Q($n,4,"format",PO,Bn,A0),Q($n,4,"printMode",NO,Bn,I0),Bn=Q($n,0,"DePageContainer",LO,Bn),we(Bn,"demo",()=>Z`
647
774
  <dedocument-pagecontainer .format="${"a4"}"></dedocument-pagecontainer>
648
- `,un.styles=[si.staticStyles,xe`
775
+ `),we(Bn,"styles",[Io.staticStyles,Ee`
649
776
  :host {
650
777
  display: block;
651
- background: white;
652
- color: #333;
653
778
  padding: 0px;
654
- width: ${le(oe.a4Width+"px")};
655
- height: ${le(oe.a4Height+"px")};
779
+ width: ${Ye(fe.A4_WIDTH+"px")};
780
+ height: ${Ye(fe.A4_HEIGHT+"px")};
656
781
  position: relative;
657
782
  border-radius: 3px;
658
783
  overflow: hidden;
784
+ background: var(--text-bg-color, #ffffff);
659
785
  }
660
- `],X([re({type:String})],un.prototype,"format",2),X([re({type:Boolean})],un.prototype,"printMode",2),un=X([Ze("dedocument-pagecontainer")],un);var Mr=class extends Fe{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;ge.DomTools.setupDomTools()}render(){return J`
661
- <style>
662
- .content {
663
- top: ${this.pageNumber===1?le("450px"):le("200px")};
664
- }
665
- </style>
666
- <div class="content">
667
- ${this.pageNumber===1?J`<div class="subject">${this.letterData.subject}</div>`:J`
668
- <div class="subjectRepeated">
669
- ${this.letterData.subject} (Page ${this.pageNumber})
670
- </div>
671
- `}
786
+ `]),P($n,1,Bn);var RO,BO,$O,zO,HO,UO,Gt,M0,_0,O0,N0;UO=[nt("dedocument-pagecontent")];var Ur=class extends(HO=Ve,zO=[ee({type:Number})],$O=[ee({type:Number})],BO=[ee({type:Number})],RO=[ee({type:Object,reflect:!0})],HO){constructor(){super();ae(this,M0,P(Gt,8,this)),P(Gt,11,this);ae(this,_0,P(Gt,12,this,1)),P(Gt,15,this);ae(this,O0,P(Gt,16,this,1)),P(Gt,19,this);ae(this,N0,P(Gt,20,this)),P(Gt,23,this);Ce.DomTools.setupDomTools()}render(){let r=this.pageNumber===1;return Z`
787
+ <div class="content ${r?"page--first":"page--notFirst"}">
788
+ ${r?Z`<div class="subject">${this.letterData.subject}</div>`:null}
672
789
  <slot></slot>
673
- ${this.pageTotalNumber!==this.pageNumber?J`<div class="continuesOnNextPage">Continues on page ${this.pageNumber+1}</div>`:J`<div class="finalPage">This is the final page of this document.</div>`}
674
790
  </div>
675
- `}firstUpdated(r){super.firstUpdated(r),this.checkOverflow()}async checkOverflow(){await this.elementDomReady;let r=this.shadowRoot.querySelector(".content");return r.scrollHeight>r.clientHeight}};Mr.demo=()=>J`
791
+ `}firstUpdated(r){super.firstUpdated(r),this.checkOverflow()}async checkOverflow(){await this.elementDomReady;let r=this.shadowRoot.querySelector(".content");return r.scrollHeight>r.clientHeight}};Gt=lt(HO),M0=new WeakMap,_0=new WeakMap,O0=new WeakMap,N0=new WeakMap,Q(Gt,4,"letterData",zO,Ur,M0),Q(Gt,4,"pageNumber",$O,Ur,_0),Q(Gt,4,"pageTotalNumber",BO,Ur,O0),Q(Gt,4,"documentSettings",RO,Ur,N0),Ur=Q(Gt,0,"DePageContent",UO,Ur),we(Ur,"demo",()=>Z`
676
792
  <dedocument-pagecontent .format="${"a4"}"></dedocument-pagecontent>
677
- `,Mr.styles=[ge.elementBasic.staticStyles,or,xe`
678
- :host {
679
- color: #333;
680
- }
681
-
793
+ `),we(Ur,"styles",[Ce.elementBasic.staticStyles,bn,Ee`
682
794
  .content {
683
795
  position: absolute;
684
796
 
685
- left: ${le(oe.leftMargin+"px")};
686
- right: ${le(oe.rightMargin+"px")};
687
- bottom: 170px;
797
+ left: var(--LEFT-MARGIN);
798
+ right: var(--RIGHT-MARGIN);
799
+ bottom: calc(var(--DPI-FACTOR) * 4);
688
800
  overflow: visible;
689
801
  }
690
802
 
803
+ .content.page--first {
804
+ top: calc(var(--DPI-FACTOR) * 9.85);
805
+ }
806
+
807
+ .content.page--notFirst {
808
+ top: calc(var(--DPI-FACTOR) * 4.5);
809
+ }
810
+
691
811
  .content .subject {
692
812
  font-size: 18px;
693
813
  font-weight: bold;
@@ -709,60 +829,78 @@ EPC QR Code`,i=>{i&&console.error(i)}),r.currentContent.querySelector(".paymentC
709
829
  margin-bottom: 10px;
710
830
  font-size: 10px;
711
831
  }
712
-
713
- .continuesOnNextPage {
714
- display: inline-block;
715
- background: #eeeeee;
716
- color: #999;
717
- border-radius: 50px;
718
- padding: 5px 10px;
719
- margin-top: 8px;
720
- font-size: 10px;
721
- }
722
-
723
- .finalPage {
724
- display: inline-block;
725
- background: #29b000;
726
- color: #fff;
727
- border-radius: 50px;
728
- padding: 5px 10px;
729
- margin-top: 8px;
730
- font-size: 10px;
731
- }
732
- `],X([re({type:Number})],Mr.prototype,"letterData",2),X([re({type:Number})],Mr.prototype,"pageNumber",2),X([re({type:Number})],Mr.prototype,"pageTotalNumber",2),Mr=X([Ze("dedocument-pagecontent")],Mr);var ar=class extends Fe{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;ge.DomTools.setupDomTools()}render(){return J`
832
+ `]),P(Gt,1,Ur);var jO,WO,qO,YO,VO,GO,Qt,P0,F0,L0,R0;GO=[nt("dedocument-pagefooter")];var jr=class extends(VO=Ve,YO=[ee({type:Object})],qO=[ee({type:Object,reflect:!0})],WO=[ee({type:Number})],jO=[ee({type:Number})],VO){constructor(){super();ae(this,P0,P(Qt,8,this)),P(Qt,11,this);ae(this,F0,P(Qt,12,this)),P(Qt,15,this);ae(this,L0,P(Qt,16,this,1)),P(Qt,19,this);ae(this,R0,P(Qt,20,this,1)),P(Qt,23,this);Ce.DomTools.setupDomTools()}render(){return Z`
733
833
  <div class="bottomstripe">
734
834
  <div>
735
- <strong>${oe.translation.translate(this.documentSettings.languageCode,"address","Address")}:</strong><br />
835
+ <strong
836
+ >${fe.translation.translate(this.documentSettings.languageCode,"footer@@address")}:</strong
837
+ ><br />
736
838
  ${this.letterData.from.name}<br />
737
- ${this.letterData.from.address.streetName} ${this.letterData.from.address.houseNumber}<br />
738
- ${this.letterData.from.address.postalCode} ${this.letterData.from.address.city}<br />
839
+ ${this.letterData.from.address.streetName}
840
+ ${this.letterData.from.address.houseNumber}<br />
841
+ ${this.letterData.from.address.postalCode}
842
+ ${this.letterData.from.address.city}<br />
739
843
  ${this.letterData.from.address.country}
740
844
  </div>
845
+ ${this.letterData.from.registrationDetails?Z` <div>
846
+ <strong
847
+ >${fe.translation.translate(this.documentSettings.languageCode,"footer@@registration.label")}:</strong
848
+ ><br />
849
+ ${this.letterData.from.registrationDetails.registrationName}<br />
850
+ <i>reg-#:</i> ${this.letterData.from.registrationDetails.registrationId}<br />
851
+ <i>vat-id:</i> ${this.letterData.from.registrationDetails.vatId}
852
+ </div>`:null}
741
853
  <div>
742
- <strong>${oe.translation.translate(this.documentSettings.languageCode,"registrationInfo","Registration Info")}:</strong><br />
743
- Amtsgericht Bremen<br />
744
- <i>reg-#:</i> HRB 35230 HB<br />
745
- <i>vat-id:</i> ${this.letterData.from.vatId}
854
+ <strong
855
+ >${fe.translation.translate(this.documentSettings.languageCode,"contact@@title")}:</strong
856
+ ><br />
857
+ <i
858
+ >${fe.translation.translate(this.documentSettings.languageCode,"contact@@mail")}:</i
859
+ >
860
+ ${this.letterData.from.email}<br />
861
+ <i
862
+ >${fe.translation.translate(this.documentSettings.languageCode,"contact@@phone")}:</i
863
+ >
864
+ ${this.letterData.from.phone}<br />
865
+ <i
866
+ >${fe.translation.translate(this.documentSettings.languageCode,"contact@@fax")}:</i
867
+ >
868
+ ${this.letterData.from.fax}
746
869
  </div>
747
870
  <div>
748
- <strong>${oe.translation.translate(this.documentSettings.languageCode,"contactInfo","Contact Info")}:</strong><br />
749
- <i>email:</i> ${this.letterData.from.email}<br />
750
- <i>phone:</i> ${this.letterData.from.phone}<br />
751
- <i>fax:</i> ${this.letterData.from.fax}
871
+ <strong
872
+ >${fe.translation.translate(this.documentSettings.languageCode,"bankConnection@@title")}:</strong
873
+ ><br />
874
+ <i
875
+ >${fe.translation.translate(this.documentSettings.languageCode,"bankConnection@@bank.accountHolder")}:</i
876
+ >
877
+ ${this.letterData?.from?.name}<br />
878
+ <i
879
+ >${fe.translation.translate(this.documentSettings.languageCode,"bankConnection@@bank.institution")}:</i
880
+ >
881
+ ${this.letterData?.from?.sepaConnection?.institution}<br />
882
+ <i
883
+ >${fe.translation.translate(this.documentSettings.languageCode,"bankConnection@@bank.iban")}:</i
884
+ >
885
+ ${this.letterData?.from?.sepaConnection?.iban}<br />
886
+ <i
887
+ >${fe.translation.translate(this.documentSettings.languageCode,"bankConnection@@bank.bic")}:</i
888
+ >
889
+ ${this.letterData?.from?.sepaConnection?.bic}<br />
752
890
  </div>
753
- <div>
754
- <strong>${oe.translation.translate(this.documentSettings.languageCode,"bankConnection","Bank Connection")}:</strong><br />
755
- <i>beneficiary:</i> ${this.letterData?.from?.name}<br />
756
- <i>institution:</i> ${this.letterData?.from?.sepaConnection?.institution}<br />
757
- <i>iban:</i> ${this.letterData?.from?.sepaConnection?.iban}<br />
758
- <i>bic:</i> ${this.letterData?.from?.sepaConnection?.bic}<br />
891
+ <div class="documentTitle">
892
+ <b>${this.letterData?.subject}</b>
893
+ </div>
894
+ <div class="pageNumber">
895
+ ${fe.translation.translate(this.documentSettings.languageCode,"footer@@page")}
896
+ ${this.pageNumber}
897
+ ${fe.translation.translate(this.documentSettings.languageCode,"footer@@pageOf")}
898
+ ${this.pageTotalNumber}
759
899
  </div>
760
- <div class="documentTitle">Subject: <b>${this.letterData?.subject}</b>${(()=>{let r=J`/ Document-UID: <b>${J`<a href="https://uid.signature.digital/">https://uid.signature.digital/</a>`}</b>`;return""})()}</div>
761
- <div class="pageNumber">page ${this.pageNumber} of ${this.pageTotalNumber}</div>
762
900
  </div>
763
- `}};ar.demo=()=>J`
901
+ `}};Qt=lt(VO),P0=new WeakMap,F0=new WeakMap,L0=new WeakMap,R0=new WeakMap,Q(Qt,4,"letterData",YO,jr,P0),Q(Qt,4,"documentSettings",qO,jr,F0),Q(Qt,4,"pageNumber",WO,jr,L0),Q(Qt,4,"pageTotalNumber",jO,jr,R0),jr=Q(Qt,0,"DePageFooter",GO,jr),we(jr,"demo",()=>Z`
764
902
  <dedocument-pagefooter .format="${"a4"}"></dedocument-pagefooter>
765
- `,ar.styles=[ge.elementBasic.staticStyles,or,xe`
903
+ `),we(jr,"styles",[Ce.elementBasic.staticStyles,bn,Ee`
766
904
  :host {
767
905
  color: #333;
768
906
  }
@@ -775,45 +913,51 @@ EPC QR Code`,i=>{i&&console.error(i)}),r.currentContent.querySelector(".paymentC
775
913
  left: 0px;
776
914
  right: 0px;
777
915
  height: 130px;
778
- content: '';
779
- padding: 30px ${le(oe.rightMargin+"px")} 10px ${le(oe.leftMargin+"px")};
780
- grid-template-columns: calc(100% / 4) calc(100% / 4) calc(100% / 4) calc(100% / 4);
916
+ content: "";
917
+ padding: 30px var(--RIGHT-MARGIN) 10px var(--LEFT-MARGIN);
918
+ grid-template-columns: calc(100% / 4) calc(100% / 4) calc(100% / 4) calc(
919
+ 100% / 4
920
+ );
781
921
  grid-gap: 5px;
782
- border-top: 2px solid #e4002b;
922
+ border-top: 2px solid var(--footer-separator-bg-color, #e4002b);
783
923
  }
784
924
 
785
925
  .bottomstripe .pageNumber {
786
926
  position: absolute;
787
927
  top: 0px;
788
- right: ${le(oe.rightMargin+"px")};
789
- background: #e4002b;
928
+ right: var(--RIGHT-MARGIN);
929
+ color: var(--footer-separator-fg-color, #ffffff);
930
+ background: var(--footer-separator-bg-color, #e4002b);
790
931
  padding: 3px;
791
932
  font-size: 9px;
792
933
  color: #fff;
793
934
  border-bottom-left-radius: 3px;
794
935
  border-bottom-right-radius: 3px;
795
936
  }
937
+
796
938
  .bottomstripe .documentTitle {
797
939
  position: absolute;
798
- top: -18px;
799
- right: ${le(oe.rightMargin+"px")};
800
- background: #dddddd;
940
+ top: -19px;
941
+ right: var(--RIGHT-MARGIN);
942
+ color: var(--label-fg);
943
+ background: var(--label-bg);
801
944
  padding: 3px;
802
945
  font-size: 9px;
803
- color: #333;
804
946
  border-top-left-radius: 3px;
805
947
  border-top-right-radius: 3px;
806
948
  }
807
- `],X([re({type:Object})],ar.prototype,"letterData",2),X([re({type:Object,reflect:!0})],ar.prototype,"documentSettings",2),X([re({type:Number})],ar.prototype,"pageNumber",2),X([re({type:Number})],ar.prototype,"pageTotalNumber",2),ar=X([Ze("dedocument-pagefooter")],ar);var lr=class extends Fe{constructor(){super();this.letterData=null;this.pageNumber=1;this.pageTotalNumber=1;ge.DomTools.setupDomTools()}render(){return J`
949
+ `]),P(Qt,1,jr);var QO,JO,XO,ZO,KO,eN,Jt,B0,$0,z0,H0;eN=[nt("dedocument-pageheader")];var Wr=class extends(KO=Ve,ZO=[ee({type:Object})],XO=[ee({type:Object,reflect:!0})],JO=[ee({type:Number})],QO=[ee({type:Number})],KO){constructor(){super();ae(this,B0,P(Jt,8,this,null)),P(Jt,11,this);ae(this,$0,P(Jt,12,this)),P(Jt,15,this);ae(this,z0,P(Jt,16,this,1)),P(Jt,19,this);ae(this,H0,P(Jt,20,this,1)),P(Jt,23,this);Ce.DomTools.setupDomTools()}render(){return Z`
808
950
  <div class="topstripe">
809
951
  <div class="logo">
810
- No logo set!
952
+ ${fe.translation.translate(this.documentSettings.languageCode,"empty.logo")}
811
953
  </div>
812
954
  </div>
813
- <div class="topstripe2">${this.letterData?.from?.description||"[no letterData.from.description set]"}</div>
814
- `}};lr.demo=()=>J`
955
+ <div class="topstripe2">
956
+ ${this.letterData?.from?.description||"[no letterData.from.description set]"}
957
+ </div>
958
+ `}};Jt=lt(KO),B0=new WeakMap,$0=new WeakMap,z0=new WeakMap,H0=new WeakMap,Q(Jt,4,"letterData",ZO,Wr,B0),Q(Jt,4,"documentSettings",XO,Wr,$0),Q(Jt,4,"pageNumber",JO,Wr,z0),Q(Jt,4,"pageTotalNumber",QO,Wr,H0),Wr=Q(Jt,0,"DePageHeader",eN,Wr),we(Wr,"demo",()=>Z`
815
959
  <dedocument-pageheader .format="${"a4"}"></dedocument-pageheader>
816
- `,lr.styles=[ge.elementBasic.staticStyles,or,xe`
960
+ `),we(Wr,"styles",[Ce.elementBasic.staticStyles,bn,Ee`
817
961
  :host {
818
962
  color: #333;
819
963
  }
@@ -834,7 +978,7 @@ EPC QR Code`,i=>{i&&console.error(i)}),r.currentContent.querySelector(".paymentC
834
978
  overflow: hidden;
835
979
  top: 130px;
836
980
  left: auto;
837
- right: ${le(oe.rightMargin+"px")};
981
+ right: var(--RIGHT-MARGIN);
838
982
  height: 20px;
839
983
  line-height: 20px;
840
984
  color: #333;
@@ -845,28 +989,36 @@ EPC QR Code`,i=>{i&&console.error(i)}),r.currentContent.querySelector(".paymentC
845
989
  bottom: 10px;
846
990
  height: 25px;
847
991
  left: auto;
848
- right: ${le(oe.rightMargin+"px")};
849
- font-family: 'Courier New', Courier, monospace;
992
+ right: var(--RIGHT-MARGIN);
993
+ font-family: "Courier New", Courier, monospace;
850
994
  }
851
995
  .topstripe .logo img {
852
996
  position: relative;
853
997
  height: 25px;
854
998
  }
855
- `],X([re({type:Object})],lr.prototype,"letterData",2),X([re({type:Object,reflect:!0})],lr.prototype,"documentSettings",2),X([re({type:Number})],lr.prototype,"pageNumber",2),X([re({type:Number})],lr.prototype,"pageTotalNumber",2),lr=X([Ze("dedocument-pageheader")],lr);var tT=()=>J`
856
- <dedocument-viewer .letterData=${oe.demoLetter} .documentSettings=${oe.demoDocumentSettings}></dedocument-viewer>
857
- `;var cn=class extends Fe{constructor(){super(...arguments);this.letterData=null;this.render=()=>J`
999
+ `]),P(Jt,1,Wr);var tN=()=>Z`
1000
+ <dedocument-viewer
1001
+ .letterData=${fe.demoLetter}
1002
+ .documentSettings=${fe.demoDocumentSettings}
1003
+ ></dedocument-viewer>
1004
+ `;var rN,nN,oN,iN,Hn,U0,j0;iN=[nt("dedocument-viewer")];var zn=class extends(oN=Ve,nN=[ee({type:Object,reflect:!0})],rN=[ee({type:Object,reflect:!0})],oN){constructor(){super(...arguments);ae(this,U0,P(Hn,8,this,null)),P(Hn,11,this);ae(this,j0,P(Hn,12,this)),P(Hn,15,this);we(this,"render",()=>Z`
858
1005
  <div class="maincontainer">
859
1006
  <div class="viewport">
860
- ${this.letterData?J` <dedocument-dedocument .letterData=${this.letterData} .documentSettings=${this.documentSettings}></dedocument-dedocument> `:J``}
1007
+ ${this.letterData?Z`
1008
+ <dedocument-dedocument
1009
+ .letterData=${this.letterData}
1010
+ .documentSettings=${this.documentSettings}
1011
+ ></dedocument-dedocument>
1012
+ `:Z``}
861
1013
  </div>
862
1014
  <div class="controls"></div>
863
1015
  </div>
864
- `;this.updated=r=>{super.updated(r),r.has("letterData")}}};cn.demo=tT,cn.styles=[sc.defaultStyles,xe`
1016
+ `);we(this,"updated",r=>{super.updated(r),r.has("letterData")})}};Hn=lt(oN),U0=new WeakMap,j0=new WeakMap,Q(Hn,4,"letterData",nN,zn,U0),Q(Hn,4,"documentSettings",rN,zn,j0),zn=Q(Hn,0,"DeDocumentViewer",iN,zn),we(zn,"demo",tN),we(zn,"styles",[zm.defaultStyles,Ee`
865
1017
  .maincontainer {
866
1018
  position: relative;
867
1019
  height: 100%;
868
1020
  width: 100%;
869
- background: ${sc.bdTheme("#eeeeeb","#111")};
1021
+ background: ${zm.bdTheme("#eeeeeb","#111")};
870
1022
  }
871
1023
  .controls {
872
1024
  top: 0px;
@@ -875,7 +1027,7 @@ EPC QR Code`,i=>{i&&console.error(i)}),r.currentContent.querySelector(".paymentC
875
1027
  position: absolute;
876
1028
  height: 32px;
877
1029
  width: 100%;
878
- background: ${sc.bdTheme("#eeeeeb","#111111ee")};
1030
+ background: ${zm.bdTheme("#eeeeeb","#111111ee")};
879
1031
  box-shadow: 0px 2px 8px 0px #000000;
880
1032
  }
881
1033
  .controlsShadow {
@@ -901,27 +1053,28 @@ EPC QR Code`,i=>{i&&console.error(i)}),r.currentContent.querySelector(".paymentC
901
1053
  overflow-y: scroll;
902
1054
  overscroll-behavior: contain;
903
1055
  }
904
- `],X([re({type:Object,reflect:!0})],cn.prototype,"letterData",2),X([re({type:Object,reflect:!0})],cn.prototype,"documentSettings",2),cn=X([Ze("dedocument-viewer")],cn);export{sr as DeContentInvoice,Nt as DeDocument,cn as DeDocumentViewer,Dr as DeLetterHeader,ct as DePage,un as DePageContainer,Mr as DePageContent,ar as DePageFooter,lr as DePageHeader,xc as defaultDocumentSettings};
905
- /*! Bundled license information:
906
-
907
- punycode/punycode.js:
908
- (*! https://mths.be/punycode v1.4.1 by @mathias *)
909
-
910
- is-number/index.js:
911
- (*!
912
- * is-number <https://github.com/jonschlinkert/is-number>
913
- *
914
- * Copyright (c) 2014-2017, Jon Schlinkert.
915
- * Released under the MIT License.
916
- *)
1056
+ `]),P(Hn,1,zn);var sN,aN,lN,uN,cN,fN,pN,mN,hN,Ge,W0,q0,Y0,V0,G0,Q0,J0;hN=[nt("dedocument-paymentcode")];var hr=class extends(mN=Ve,pN=[Rm("canvas")],fN=[ee()],cN=[ee()],uN=[ee()],lN=[ee()],aN=[ee({type:Number})],sN=[ee()],mN){constructor(){super(...arguments);ae(this,W0,P(Ge,8,this)),P(Ge,11,this);ae(this,q0,P(Ge,12,this)),P(Ge,15,this);ae(this,Y0,P(Ge,16,this)),P(Ge,19,this);ae(this,V0,P(Ge,20,this)),P(Ge,23,this);ae(this,G0,P(Ge,24,this)),P(Ge,27,this);ae(this,Q0,P(Ge,28,this)),P(Ge,31,this);ae(this,J0,P(Ge,32,this)),P(Ge,35,this)}updateQRCode(){this.canvasEl&&a0.toCanvas(this.canvasEl,`BCD
1057
+ 001
1058
+ 1
1059
+ SCT
1060
+ ${this.bic}
1061
+ ${this.name}
1062
+ ${this.iban}
1063
+ ${this.currency}${this.totalGross?.toFixed?.(2)}
1064
+
1065
+ ${this.reference}`,r=>{r&&console.error(r)})}update(r){super.update(r),this.updateQRCode()}render(){return typeof this.bic=="string"&&typeof this.name=="string"&&typeof this.iban=="string"&&typeof this.currency=="string"&&typeof this.totalGross=="number"&&typeof this.reference=="string"?Z`<canvas></canvas>`:null}};Ge=lt(mN),W0=new WeakMap,q0=new WeakMap,Y0=new WeakMap,V0=new WeakMap,G0=new WeakMap,Q0=new WeakMap,J0=new WeakMap,Q(Ge,4,"canvasEl",pN,hr,W0),Q(Ge,4,"bic",fN,hr,q0),Q(Ge,4,"name",cN,hr,Y0),Q(Ge,4,"iban",uN,hr,V0),Q(Ge,4,"currency",lN,hr,G0),Q(Ge,4,"totalGross",aN,hr,Q0),Q(Ge,4,"reference",sN,hr,J0),hr=Q(Ge,0,"DedocumentPaymentCode",hN,hr),we(hr,"styles",[Ee`
1066
+ :host {
1067
+ text-align: center;
1068
+ width: 100px;
1069
+ height: 100px;
1070
+ }
917
1071
 
918
- randomatic/index.js:
919
- (*!
920
- * randomatic <https://github.com/jonschlinkert/randomatic>
921
- *
922
- * Copyright (c) 2014-2017, Jon Schlinkert.
923
- * Released under the MIT License.
924
- *)
1072
+ canvas {
1073
+ width: inherit !important;
1074
+ height: inherit !important;
1075
+ }
1076
+ `]),P(Ge,1,hr);export{zr as DeContentInvoice,mr as DeDocument,zn as DeDocumentViewer,Hr as DeLetterHeader,Ct as DePage,Bn as DePageContainer,Ur as DePageContent,jr as DePageFooter,Wr as DePageHeader,hr as DedocumentPaymentCode,ih as defaultDocumentSettings};
1077
+ /*! Bundled license information:
925
1078
 
926
1079
  sweet-scroll/sweet-scroll.js:
927
1080
  (*! @preserve sweet-scroll v4.0.0 - tsuyoshiwada | MIT License *)
@@ -948,117 +1101,37 @@ sweet-scroll/sweet-scroll.js:
948
1101
  *)
949
1102
 
950
1103
  @lit/reactive-element/reactive-element.js:
951
- (**
952
- * @license
953
- * Copyright 2017 Google LLC
954
- * SPDX-License-Identifier: BSD-3-Clause
955
- *)
956
-
957
1104
  lit-html/lit-html.js:
958
- (**
959
- * @license
960
- * Copyright 2017 Google LLC
961
- * SPDX-License-Identifier: BSD-3-Clause
962
- *)
963
-
964
1105
  lit-element/lit-element.js:
965
- (**
966
- * @license
967
- * Copyright 2017 Google LLC
968
- * SPDX-License-Identifier: BSD-3-Clause
969
- *)
970
-
971
- lit-html/is-server.js:
972
- (**
973
- * @license
974
- * Copyright 2022 Google LLC
975
- * SPDX-License-Identifier: BSD-3-Clause
976
- *)
977
-
978
1106
  @lit/reactive-element/decorators/property.js:
979
- (**
980
- * @license
981
- * Copyright 2017 Google LLC
982
- * SPDX-License-Identifier: BSD-3-Clause
983
- *)
984
-
985
1107
  lit-html/directive.js:
986
- (**
987
- * @license
988
- * Copyright 2017 Google LLC
989
- * SPDX-License-Identifier: BSD-3-Clause
990
- *)
991
-
992
1108
  lit-html/directives/unsafe-html.js:
993
- (**
994
- * @license
995
- * Copyright 2017 Google LLC
996
- * SPDX-License-Identifier: BSD-3-Clause
997
- *)
998
-
999
1109
  @lit/reactive-element/decorators/custom-element.js:
1000
- (**
1001
- * @license
1002
- * Copyright 2017 Google LLC
1003
- * SPDX-License-Identifier: BSD-3-Clause
1004
- *)
1005
-
1006
1110
  @lit/reactive-element/decorators/state.js:
1007
- (**
1008
- * @license
1009
- * Copyright 2017 Google LLC
1010
- * SPDX-License-Identifier: BSD-3-Clause
1011
- *)
1012
-
1013
1111
  @lit/reactive-element/decorators/event-options.js:
1014
- (**
1015
- * @license
1016
- * Copyright 2017 Google LLC
1017
- * SPDX-License-Identifier: BSD-3-Clause
1018
- *)
1019
-
1020
1112
  @lit/reactive-element/decorators/base.js:
1021
- (**
1022
- * @license
1023
- * Copyright 2017 Google LLC
1024
- * SPDX-License-Identifier: BSD-3-Clause
1025
- *)
1026
-
1027
1113
  @lit/reactive-element/decorators/query.js:
1028
- (**
1029
- * @license
1030
- * Copyright 2017 Google LLC
1031
- * SPDX-License-Identifier: BSD-3-Clause
1032
- *)
1033
-
1034
1114
  @lit/reactive-element/decorators/query-all.js:
1035
- (**
1036
- * @license
1037
- * Copyright 2017 Google LLC
1038
- * SPDX-License-Identifier: BSD-3-Clause
1039
- *)
1040
-
1041
1115
  @lit/reactive-element/decorators/query-async.js:
1116
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
1117
+ lit-html/async-directive.js:
1118
+ lit-html/directives/until.js:
1119
+ lit-html/directives/async-replace.js:
1120
+ lit-html/directives/async-append.js:
1042
1121
  (**
1043
1122
  * @license
1044
1123
  * Copyright 2017 Google LLC
1045
1124
  * SPDX-License-Identifier: BSD-3-Clause
1046
1125
  *)
1047
1126
 
1048
- @lit/reactive-element/decorators/query-assigned-elements.js:
1049
- (**
1050
- * @license
1051
- * Copyright 2021 Google LLC
1052
- * SPDX-License-Identifier: BSD-3-Clause
1053
- *)
1054
-
1055
- @lit/reactive-element/decorators/query-assigned-nodes.js:
1127
+ lit-html/is-server.js:
1056
1128
  (**
1057
1129
  * @license
1058
- * Copyright 2017 Google LLC
1130
+ * Copyright 2022 Google LLC
1059
1131
  * SPDX-License-Identifier: BSD-3-Clause
1060
1132
  *)
1061
1133
 
1134
+ lit-html/static.js:
1062
1135
  lit-html/directive-helpers.js:
1063
1136
  (**
1064
1137
  * @license
@@ -1066,39 +1139,12 @@ lit-html/directive-helpers.js:
1066
1139
  * SPDX-License-Identifier: BSD-3-Clause
1067
1140
  *)
1068
1141
 
1069
- lit-html/async-directive.js:
1070
- (**
1071
- * @license
1072
- * Copyright 2017 Google LLC
1073
- * SPDX-License-Identifier: BSD-3-Clause
1074
- *)
1075
-
1142
+ @lit/reactive-element/decorators/query-assigned-elements.js:
1076
1143
  lit-html/directives/private-async-helpers.js:
1077
1144
  (**
1078
1145
  * @license
1079
1146
  * Copyright 2021 Google LLC
1080
1147
  * SPDX-License-Identifier: BSD-3-Clause
1081
1148
  *)
1082
-
1083
- lit-html/directives/until.js:
1084
- (**
1085
- * @license
1086
- * Copyright 2017 Google LLC
1087
- * SPDX-License-Identifier: BSD-3-Clause
1088
- *)
1089
-
1090
- lit-html/directives/async-replace.js:
1091
- (**
1092
- * @license
1093
- * Copyright 2017 Google LLC
1094
- * SPDX-License-Identifier: BSD-3-Clause
1095
- *)
1096
-
1097
- lit-html/directives/async-append.js:
1098
- (**
1099
- * @license
1100
- * Copyright 2017 Google LLC
1101
- * SPDX-License-Identifier: BSD-3-Clause
1102
- *)
1103
1149
  */
1104
1150
  //# sourceMappingURL=bundle.js.map