@design.estate/dees-document 1.0.96 → 1.0.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,59 +1,59 @@
1
- var cy=Object.create;var Vo=Object.defineProperty;var al=Object.getOwnPropertyDescriptor;var ly=Object.getOwnPropertyNames;var fy=Object.getPrototypeOf,py=Object.prototype.hasOwnProperty;var C=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),X=(t,e)=>{for(var r in e)Vo(t,r,{get:e[r],enumerable:!0})},hy=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ly(e))!py.call(t,o)&&o!==r&&Vo(t,o,{get:()=>e[o],enumerable:!(n=al(e,o))||n.enumerable});return t};var De=(t,e,r)=>(r=t!=null?cy(fy(t)):{},hy(e||!t||!t.__esModule?Vo(r,"default",{value:t,enumerable:!0}):r,t));var W=(t,e,r,n)=>{for(var o=n>1?void 0:n?al(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(n?s(e,r,o):s(o))||o);return n&&o&&Vo(e,r,o),o};var ii=C(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.uni=void 0;var _y=(t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}`;oi.uni=_y});var cf=C((ba,va)=>{(function(t,e){typeof ba=="object"&&typeof va<"u"?va.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(ba,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",a="day",u="week",c="month",l="quarter",f="year",h="date",y="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|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,O={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($){var S=["th","st","nd","rd"],E=$%100;return"["+$+(S[(E-20)%10]||S[E]||S[0])+"]"}},_=function($,S,E){var P=String($);return!P||P.length>=S?$:""+Array(S+1-P.length).join(E)+$},I={s:_,z:function($){var S=-$.utcOffset(),E=Math.abs(S),P=Math.floor(E/60),T=E%60;return(S<=0?"+":"-")+_(P,2,"0")+":"+_(T,2,"0")},m:function $(S,E){if(S.date()<E.date())return-$(E,S);var P=12*(E.year()-S.year())+(E.month()-S.month()),T=S.clone().add(P,c),j=E-T<0,v=S.clone().add(P+(j?-1:1),c);return+(-(P+(E-T)/(j?T-v:v-T))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:c,y:f,w:u,d:a,D:h,h:s,m:i,s:o,ms:n,Q:l}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},D="en",N={};N[D]=O;var q="$isDayjsObject",U=function($){return $ instanceof re||!(!$||!$[q])},Y=function $(S,E,P){var T;if(!S)return D;if(typeof S=="string"){var j=S.toLowerCase();N[j]&&(T=j),E&&(N[j]=E,T=j);var v=S.split("-");if(!T&&v.length>1)return $(v[0])}else{var M=S.name;N[M]=S,T=M}return!P&&T&&(D=T),T||!P&&D},F=function($,S){if(U($))return $.clone();var E=typeof S=="object"?S:{};return E.date=$,E.args=arguments,new re(E)},B=I;B.l=Y,B.i=U,B.w=function($,S){return F($,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var re=function(){function $(E){this.$L=Y(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[q]=!0}var S=$.prototype;return S.parse=function(E){this.$d=function(P){var T=P.date,j=P.utc;if(T===null)return new Date(NaN);if(B.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var v=T.match(w);if(v){var M=v[2]-1||0,R=(v[7]||"0").substring(0,3);return j?new Date(Date.UTC(v[1],M,v[3]||1,v[4]||0,v[5]||0,v[6]||0,R)):new Date(v[1],M,v[3]||1,v[4]||0,v[5]||0,v[6]||0,R)}}return new Date(T)}(E),this.init()},S.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},S.$utils=function(){return B},S.isValid=function(){return this.$d.toString()!==y},S.isSame=function(E,P){var T=F(E);return this.startOf(P)<=T&&T<=this.endOf(P)},S.isAfter=function(E,P){return F(E)<this.startOf(P)},S.isBefore=function(E,P){return this.endOf(P)<F(E)},S.$g=function(E,P,T){return B.u(E)?this[P]:this.set(T,E)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(E,P){var T=this,j=!!B.u(P)||P,v=B.p(E),M=function(m,p){var d=B.w(T.$u?Date.UTC(T.$y,p,m):new Date(T.$y,p,m),T);return j?d:d.endOf(a)},R=function(m,p){return B.w(T.toDate()[m].apply(T.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(p)),T)},H=this.$W,z=this.$M,K=this.$D,ne="set"+(this.$u?"UTC":"");switch(v){case f:return j?M(1,0):M(31,11);case c:return j?M(1,z):M(0,z+1);case u:var pe=this.$locale().weekStart||0,Se=(H<pe?H+7:H)-pe;return M(j?K-Se:K+(6-Se),z);case a:case h:return R(ne+"Hours",0);case s:return R(ne+"Minutes",1);case i:return R(ne+"Seconds",2);case o:return R(ne+"Milliseconds",3);default:return this.clone()}},S.endOf=function(E){return this.startOf(E,!1)},S.$set=function(E,P){var T,j=B.p(E),v="set"+(this.$u?"UTC":""),M=(T={},T[a]=v+"Date",T[h]=v+"Date",T[c]=v+"Month",T[f]=v+"FullYear",T[s]=v+"Hours",T[i]=v+"Minutes",T[o]=v+"Seconds",T[n]=v+"Milliseconds",T)[j],R=j===a?this.$D+(P-this.$W):P;if(j===c||j===f){var H=this.clone().set(h,1);H.$d[M](R),H.init(),this.$d=H.set(h,Math.min(this.$D,H.daysInMonth())).$d}else M&&this.$d[M](R);return this.init(),this},S.set=function(E,P){return this.clone().$set(E,P)},S.get=function(E){return this[B.p(E)]()},S.add=function(E,P){var T,j=this;E=Number(E);var v=B.p(P),M=function(z){var K=F(j);return B.w(K.date(K.date()+Math.round(z*E)),j)};if(v===c)return this.set(c,this.$M+E);if(v===f)return this.set(f,this.$y+E);if(v===a)return M(1);if(v===u)return M(7);var R=(T={},T[i]=e,T[s]=r,T[o]=t,T)[v]||1,H=this.$d.getTime()+E*R;return B.w(H,this)},S.subtract=function(E,P){return this.add(-1*E,P)},S.format=function(E){var P=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var j=E||"YYYY-MM-DDTHH:mm:ssZ",v=B.z(this),M=this.$H,R=this.$m,H=this.$M,z=T.weekdays,K=T.months,ne=T.meridiem,pe=function(p,d,g,b){return p&&(p[d]||p(P,j))||g[d].slice(0,b)},Se=function(p){return B.s(M%12||12,p,"0")},m=ne||function(p,d,g){var b=p<12?"AM":"PM";return g?b.toLowerCase():b};return j.replace(A,function(p,d){return d||function(g){switch(g){case"YY":return String(P.$y).slice(-2);case"YYYY":return B.s(P.$y,4,"0");case"M":return H+1;case"MM":return B.s(H+1,2,"0");case"MMM":return pe(T.monthsShort,H,K,3);case"MMMM":return pe(K,H);case"D":return P.$D;case"DD":return B.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return pe(T.weekdaysMin,P.$W,z,2);case"ddd":return pe(T.weekdaysShort,P.$W,z,3);case"dddd":return z[P.$W];case"H":return String(M);case"HH":return B.s(M,2,"0");case"h":return Se(1);case"hh":return Se(2);case"a":return m(M,R,!0);case"A":return m(M,R,!1);case"m":return String(R);case"mm":return B.s(R,2,"0");case"s":return String(P.$s);case"ss":return B.s(P.$s,2,"0");case"SSS":return B.s(P.$ms,3,"0");case"Z":return v}return null}(p)||v.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(E,P,T){var j,v=this,M=B.p(P),R=F(E),H=(R.utcOffset()-this.utcOffset())*e,z=this-R,K=function(){return B.m(v,R)};switch(M){case f:j=K()/12;break;case c:j=K();break;case l:j=K()/3;break;case u:j=(z-H)/6048e5;break;case a:j=(z-H)/864e5;break;case s:j=z/r;break;case i:j=z/e;break;case o:j=z/t;break;default:j=z}return T?j:B.a(j)},S.daysInMonth=function(){return this.endOf(c).$D},S.$locale=function(){return N[this.$L]},S.locale=function(E,P){if(!E)return this.$L;var T=this.clone(),j=Y(E,P,!0);return j&&(T.$L=j),T},S.clone=function(){return B.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},$}(),we=re.prototype;return F.prototype=we,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",c],["$y",f],["$D",h]].forEach(function($){we[$[1]]=function(S){return this.$g(S,$[0],$[1])}}),F.extend=function($,S){return $.$i||($(S,re,F),$.$i=!0),F},F.locale=Y,F.isDayjs=U,F.unix=function($){return F(1e3*$)},F.en=N[D],F.Ls=N,F.p={},F})});var lf=C((wa,Sa)=>{(function(t,e){typeof wa=="object"&&typeof Sa<"u"?Sa.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(wa,function(){"use strict";return function(t,e,r){e.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}})});var hf=C((Z2,pf)=>{"use strict";pf.exports=class{constructor(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.childrenVersion=0,this.childIndexCachedUpTo=null,this.cachedIndex=-1,this.cachedIndexVersion=NaN}get isAttached(){return!!(this.parent||this.previousSibling||this.nextSibling)}get hasChildren(){return!!this.firstChild}childrenChanged(){this.childrenVersion=this.childrenVersion+1&4294967295,this.childIndexCachedUpTo=null}getCachedIndex(e){return this.cachedIndexVersion!==e.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(e,r){this.cachedIndexVersion=e.childrenVersion,this.cachedIndex=r}}});var mf=C((X2,df)=>{"use strict";df.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var vf=C((K2,bf)=>{"use strict";var gf=Symbol(),yf=Symbol(),kt=Symbol(),xf=Symbol(),st=class{constructor(e,r,n,o){this[gf]=e,this[yf]=r,this[kt]=n,this[xf]=o}next(){let e=this[gf],r=this[xf],n=this[yf];if(!this[kt])return{done:!0,value:n};let o=this[kt];return r===1?this[kt]=e._node(o).previousSibling:r===2?this[kt]=e._node(o).nextSibling:r===3?this[kt]=e._node(o).parent:r===4?this[kt]=e.preceding(o,{root:n}):this[kt]=e.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(st.prototype,Symbol.iterator,{value:function(){return this},writable:!1});st.PREV=1;st.NEXT=2;st.PARENT=3;st.PRECEDING=4;st.FOLLOWING=5;Object.freeze(st);Object.freeze(st.prototype);bf.exports=st});var Sf=C((eM,wf)=>{"use strict";var y0=hf(),jt=mf(),Je=vf();function $a(){return!0}function zr(t,e){return t[t.length-1-e]}var Di=class{constructor(e){this.symbol=Symbol(e||"SymbolTree data")}initialize(e){return this._node(e),e}_node(e){if(!e)return null;let r=e[this.symbol];return r||(e[this.symbol]=new y0)}hasChildren(e){return this._node(e).hasChildren}firstChild(e){return this._node(e).firstChild}lastChild(e){return this._node(e).lastChild}previousSibling(e){return this._node(e).previousSibling}nextSibling(e){return this._node(e).nextSibling}parent(e){return this._node(e).parent}lastInclusiveDescendant(e){let r,n=e;for(;r=this._node(n).lastChild;)n=r;return n}preceding(e,r){let n=r&&r.root;if(e===n)return null;let o=this._node(e).previousSibling;return o?this.lastInclusiveDescendant(o):this._node(e).parent}following(e,r){let n=r&&r.root,i=!(r&&r.skipChildren)&&this._node(e).firstChild;if(i)return i;let s=e;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(e,r){let n=r&&r.array||[],o=r&&r.filter||$a,i=r&&r.thisArg||void 0,s=this._node(e),a=s.firstChild,u=0;for(;a;){let c=this._node(a);c.setCachedIndex(s,u),o.call(i,a)&&n.push(a),a=c.nextSibling,++u}return n}ancestorsToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||$a,i=r&&r.thisArg||void 0,s=e;for(;s;)o.call(i,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||$a,i=r&&r.thisArg||void 0,s=e;for(;s;)o.call(i,s)&&n.push(s),s=this.following(s,{root:e});return n}childrenIterator(e,r){let n=r&&r.reverse,o=this._node(e);return new Je(this,e,n?o.lastChild:o.firstChild,n?Je.PREV:Je.NEXT)}previousSiblingsIterator(e){return new Je(this,e,this._node(e).previousSibling,Je.PREV)}nextSiblingsIterator(e){return new Je(this,e,this._node(e).nextSibling,Je.NEXT)}ancestorsIterator(e){return new Je(this,e,e,Je.PARENT)}treeIterator(e,r){let n=r&&r.reverse;return new Je(this,e,n?this.lastInclusiveDescendant(e):e,n?Je.PRECEDING:Je.FOLLOWING)}index(e){let r=this._node(e),n=this._node(r.parent);if(!n)return-1;let o=r.getCachedIndex(n);if(o>=0)return o;o=0;let 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===e)break;++o,i=s.nextSibling}return n.childIndexCachedUpTo=e,o}childrenCount(e){let r=this._node(e);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(e,r){if(e===r)return 0;let n=[];{let l=e;for(;l;){if(l===r)return jt.CONTAINS|jt.PRECEDING;n.push(l),l=this.parent(l)}}let o=[];{let l=r;for(;l;){if(l===e)return jt.CONTAINED_BY|jt.FOLLOWING;o.push(l),l=this.parent(l)}}let i=zr(n,0);if(!i||i!==zr(o,0))return jt.DISCONNECTED;let s=0,a=Math.min(n.length,o.length);for(let l=0;l<a;++l){let f=zr(n,l),h=zr(o,l);if(f!==h)break;s=l}let u=this.index(zr(n,s+1));return this.index(zr(o,s+1))<u?jt.PRECEDING:jt.FOLLOWING}remove(e){let r=this._node(e),n=this._node(r.parent),o=this._node(r.previousSibling),i=this._node(r.nextSibling);return n&&(n.firstChild===e&&(n.firstChild=r.nextSibling),n.lastChild===e&&(n.lastChild=r.previousSibling)),o&&(o.nextSibling=r.nextSibling),i&&(i.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,n&&n.childrenChanged(),e}insertBefore(e,r){let n=this._node(e),o=this._node(n.previousSibling),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=e,n.previousSibling=r,o&&(o.nextSibling=r),s&&s.firstChild===e&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(e,r){let n=this._node(e),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=e,i.nextSibling=n.nextSibling,n.nextSibling=r,o&&(o.previousSibling=r),s&&s.lastChild===e&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(e,r){let n=this._node(e),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(o.parent=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(e,r){let n=this._node(e),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(o.parent=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};wf.exports=Di;Di.TreePosition=jt});var Cf=C(Bi=>{"use strict";Bi.byteLength=v0;Bi.toByteArray=S0;Bi.fromByteArray=_0;var lt=[],Ye=[],b0=typeof Uint8Array<"u"?Uint8Array:Array,La="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(xr=0,Tf=La.length;xr<Tf;++xr)lt[xr]=La[xr],Ye[La.charCodeAt(xr)]=xr;var xr,Tf;Ye["-".charCodeAt(0)]=62;Ye["_".charCodeAt(0)]=63;function _f(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function v0(t){var e=_f(t),r=e[0],n=e[1];return(r+n)*3/4-n}function w0(t,e,r){return(e+r)*3/4-r}function S0(t){var e,r=_f(t),n=r[0],o=r[1],i=new b0(w0(t,n,o)),s=0,a=o>0?n-4:n,u;for(u=0;u<a;u+=4)e=Ye[t.charCodeAt(u)]<<18|Ye[t.charCodeAt(u+1)]<<12|Ye[t.charCodeAt(u+2)]<<6|Ye[t.charCodeAt(u+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return o===2&&(e=Ye[t.charCodeAt(u)]<<2|Ye[t.charCodeAt(u+1)]>>4,i[s++]=e&255),o===1&&(e=Ye[t.charCodeAt(u)]<<10|Ye[t.charCodeAt(u+1)]<<4|Ye[t.charCodeAt(u+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function E0(t){return lt[t>>18&63]+lt[t>>12&63]+lt[t>>6&63]+lt[t&63]}function T0(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(E0(n));return o.join("")}function _0(t){for(var e,r=t.length,n=r%3,o=[],i=16383,s=0,a=r-n;s<a;s+=i)o.push(T0(t,s,s+i>a?a:s+i));return n===1?(e=t[r-1],o.push(lt[e>>2]+lt[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(lt[e>>10]+lt[e>>4&63]+lt[e<<2&63]+"=")),o.join("")}});var Af=C(ka=>{ka.read=function(t,e,r,n,o){var i,s,a=o*8-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?o-1:0,h=r?-1:1,y=t[e+f];for(f+=h,i=y&(1<<-l)-1,y>>=-l,l+=a;l>0;i=i*256+t[e+f],f+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=s*256+t[e+f],f+=h,l-=8);if(i===0)i=1-c;else{if(i===u)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-c}return(y?-1:1)*s*Math.pow(2,i-n)};ka.write=function(t,e,r,n,o,i){var s,a,u,c=i*8-o-1,l=(1<<c)-1,f=l>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:i-1,w=n?1:-1,A=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+f>=1?e+=h/u:e+=h*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,o),s=s+f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+y]=a&255,y+=w,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[r+y]=s&255,y+=w,s/=256,c-=8);t[r+y-w]|=A*128}});var Hf=C(Qr=>{"use strict";var ja=Cf(),Jr=Af(),If=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Qr.Buffer=x;Qr.SlowBuffer=$0;Qr.INSPECT_MAX_BYTES=50;var Ri=2147483647;Qr.kMaxLength=Ri;x.TYPED_ARRAY_SUPPORT=C0();!x.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function C0(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}});Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function _t(t){if(t>Ri)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,x.prototype),e}function x(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return za(t)}return Nf(t,e,r)}x.poolSize=8192;function Nf(t,e,r){if(typeof t=="string")return I0(t,e);if(ArrayBuffer.isView(t))return M0(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(ft(t,ArrayBuffer)||t&&ft(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ft(t,SharedArrayBuffer)||t&&ft(t.buffer,SharedArrayBuffer)))return Wa(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return x.from(n,e,r);let o=P0(t);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return x.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}x.from=function(t,e,r){return Nf(t,e,r)};Object.setPrototypeOf(x.prototype,Uint8Array.prototype);Object.setPrototypeOf(x,Uint8Array);function Of(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function A0(t,e,r){return Of(t),t<=0?_t(t):e!==void 0?typeof r=="string"?_t(t).fill(e,r):_t(t).fill(e):_t(t)}x.alloc=function(t,e,r){return A0(t,e,r)};function za(t){return Of(t),_t(t<0?0:Va(t)|0)}x.allocUnsafe=function(t){return za(t)};x.allocUnsafeSlow=function(t){return za(t)};function I0(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!x.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Df(t,e)|0,n=_t(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function qa(t){let e=t.length<0?0:Va(t.length)|0,r=_t(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function M0(t){if(ft(t,Uint8Array)){let e=new Uint8Array(t);return Wa(e.buffer,e.byteOffset,e.byteLength)}return qa(t)}function Wa(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,x.prototype),n}function P0(t){if(x.isBuffer(t)){let e=Va(t.length)|0,r=_t(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Ja(t.length)?_t(0):qa(t);if(t.type==="Buffer"&&Array.isArray(t.data))return qa(t.data)}function Va(t){if(t>=Ri)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ri.toString(16)+" bytes");return t|0}function $0(t){return+t!=t&&(t=0),x.alloc(+t)}x.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==x.prototype};x.compare=function(e,r){if(ft(e,Uint8Array)&&(e=x.from(e,e.offset,e.byteLength)),ft(r,Uint8Array)&&(r=x.from(r,r.offset,r.byteLength)),!x.isBuffer(e)||!x.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,o=r.length;for(let i=0,s=Math.min(n,o);i<s;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};x.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};x.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return x.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let o=x.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){let s=e[n];if(ft(s,Uint8Array))i+s.length>o.length?(x.isBuffer(s)||(s=x.from(s)),s.copy(o,i)):Uint8Array.prototype.set.call(o,s,i);else if(x.isBuffer(s))s.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return o};function Df(t,e){if(x.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||ft(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ha(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return Wf(t).length;default:if(o)return n?-1:Ha(t).length;e=(""+e).toLowerCase(),o=!0}}x.byteLength=Df;function N0(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return q0(this,e,r);case"utf8":case"utf-8":return Rf(this,e,r);case"ascii":return k0(this,e,r);case"latin1":case"binary":return j0(this,e,r);case"base64":return U0(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W0(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}x.prototype._isBuffer=!0;function br(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}x.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)br(this,r,r+1);return this};x.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)br(this,r,r+3),br(this,r+1,r+2);return this};x.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)br(this,r,r+7),br(this,r+1,r+6),br(this,r+2,r+5),br(this,r+3,r+4);return this};x.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Rf(this,0,e):N0.apply(this,arguments)};x.prototype.toLocaleString=x.prototype.toString;x.prototype.equals=function(e){if(!x.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:x.compare(this,e)===0};x.prototype.inspect=function(){let e="",r=Qr.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};If&&(x.prototype[If]=x.prototype.inspect);x.prototype.compare=function(e,r,n,o,i){if(ft(e,Uint8Array)&&(e=x.from(e,e.offset,e.byteLength)),!x.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;let s=i-o,a=n-r,u=Math.min(s,a),c=this.slice(o,i),l=e.slice(r,n);for(let f=0;f<u;++f)if(c[f]!==l[f]){s=c[f],a=l[f];break}return s<a?-1:a<s?1:0};function Bf(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ja(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=x.from(e,n)),x.isBuffer(e))return e.length===0?-1:Mf(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Mf(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function Mf(t,e,r,n,o){let i=1,s=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,s/=2,a/=2,r/=2}function u(l,f){return i===1?l[f]:l.readUInt16BE(f*i)}let c;if(o){let l=-1;for(c=r;c<s;c++)if(u(t,c)===u(e,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===a)return l*i}else l!==-1&&(c-=c-l),l=-1}else for(r+a>s&&(r=s-a),c=r;c>=0;c--){let l=!0;for(let f=0;f<a;f++)if(u(t,c+f)!==u(e,f)){l=!1;break}if(l)return c}return-1}x.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};x.prototype.indexOf=function(e,r,n){return Bf(this,e,r,n,!0)};x.prototype.lastIndexOf=function(e,r,n){return Bf(this,e,r,n,!1)};function O0(t,e,r,n){r=Number(r)||0;let o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;let i=e.length;n>i/2&&(n=i/2);let s;for(s=0;s<n;++s){let a=parseInt(e.substr(s*2,2),16);if(Ja(a))return s;t[r+s]=a}return s}function D0(t,e,r,n){return Fi(Ha(e,t.length-r),t,r,n)}function B0(t,e,r,n){return Fi(G0(e),t,r,n)}function R0(t,e,r,n){return Fi(Wf(e),t,r,n)}function F0(t,e,r,n){return Fi(J0(e,t.length-r),t,r,n)}x.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let s=!1;for(;;)switch(o){case"hex":return O0(this,e,r,n);case"utf8":case"utf-8":return D0(this,e,r,n);case"ascii":case"latin1":case"binary":return B0(this,e,r,n);case"base64":return R0(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F0(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}};x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U0(t,e,r){return e===0&&r===t.length?ja.fromByteArray(t):ja.fromByteArray(t.slice(e,r))}function Rf(t,e,r){r=Math.min(t.length,r);let n=[],o=e;for(;o<r;){let i=t[o],s=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=r){let u,c,l,f;switch(a){case 1:i<128&&(s=i);break;case 2:u=t[o+1],(u&192)===128&&(f=(i&31)<<6|u&63,f>127&&(s=f));break;case 3:u=t[o+1],c=t[o+2],(u&192)===128&&(c&192)===128&&(f=(i&15)<<12|(u&63)<<6|c&63,f>2047&&(f<55296||f>57343)&&(s=f));break;case 4:u=t[o+1],c=t[o+2],l=t[o+3],(u&192)===128&&(c&192)===128&&(l&192)===128&&(f=(i&15)<<18|(u&63)<<12|(c&63)<<6|l&63,f>65535&&f<1114112&&(s=f))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),o+=a}return L0(n)}var Pf=4096;function L0(t){let e=t.length;if(e<=Pf)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Pf));return r}function k0(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function j0(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function q0(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let o="";for(let i=e;i<r;++i)o+=Y0[t[i]];return o}function W0(t,e,r){let n=t.slice(e,r),o="";for(let i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}x.prototype.slice=function(e,r){let n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);let o=this.subarray(e,r);return Object.setPrototypeOf(o,x.prototype),o};function Pe(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Pe(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return o};x.prototype.readUintBE=x.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Pe(e,r,this.length);let o=this[e+--r],i=1;for(;r>0&&(i*=256);)o+=this[e+--r]*i;return o};x.prototype.readUint8=x.prototype.readUInt8=function(e,r){return e=e>>>0,r||Pe(e,1,this.length),this[e]};x.prototype.readUint16LE=x.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||Pe(e,2,this.length),this[e]|this[e+1]<<8};x.prototype.readUint16BE=x.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||Pe(e,2,this.length),this[e]<<8|this[e+1]};x.prototype.readUint32LE=x.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};x.prototype.readUint32BE=x.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};x.prototype.readBigUInt64LE=qt(function(e){e=e>>>0,Yr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&uo(e,this.length-8);let o=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))});x.prototype.readBigUInt64BE=qt(function(e){e=e>>>0,Yr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&uo(e,this.length-8);let o=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(i)});x.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Pe(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};x.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Pe(e,r,this.length);let o=r,i=1,s=this[e+--o];for(;o>0&&(i*=256);)s+=this[e+--o]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*r)),s};x.prototype.readInt8=function(e,r){return e=e>>>0,r||Pe(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};x.prototype.readInt16LE=function(e,r){e=e>>>0,r||Pe(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};x.prototype.readInt16BE=function(e,r){e=e>>>0,r||Pe(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};x.prototype.readInt32LE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};x.prototype.readInt32BE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};x.prototype.readBigInt64LE=qt(function(e){e=e>>>0,Yr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&uo(e,this.length-8);let o=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});x.prototype.readBigInt64BE=qt(function(e){e=e>>>0,Yr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&uo(e,this.length-8);let o=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});x.prototype.readFloatLE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),Jr.read(this,e,!0,23,4)};x.prototype.readFloatBE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),Jr.read(this,e,!1,23,4)};x.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||Pe(e,8,this.length),Jr.read(this,e,!0,52,8)};x.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||Pe(e,8,this.length),Jr.read(this,e,!1,52,8)};function qe(t,e,r,n,o,i){if(!x.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;qe(this,e,r,n,a,0)}let i=1,s=0;for(this[r]=e&255;++s<n&&(i*=256);)this[r+s]=e/i&255;return r+n};x.prototype.writeUintBE=x.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;qe(this,e,r,n,a,0)}let i=n-1,s=1;for(this[r+i]=e&255;--i>=0&&(s*=256);)this[r+i]=e/s&255;return r+n};x.prototype.writeUint8=x.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,1,255,0),this[r]=e&255,r+1};x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Ff(t,e,r,n,o){qf(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,r}function Uf(t,e,r,n,o){qf(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i=i>>8,t[r+6]=i,i=i>>8,t[r+5]=i,i=i>>8,t[r+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s=s>>8,t[r+2]=s,s=s>>8,t[r+1]=s,s=s>>8,t[r]=s,r+8}x.prototype.writeBigUInt64LE=qt(function(e,r=0){return Ff(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});x.prototype.writeBigUInt64BE=qt(function(e,r=0){return Uf(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});x.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let u=Math.pow(2,8*n-1);qe(this,e,r,n,u-1,-u)}let i=0,s=1,a=0;for(this[r]=e&255;++i<n&&(s*=256);)e<0&&a===0&&this[r+i-1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};x.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let u=Math.pow(2,8*n-1);qe(this,e,r,n,u-1,-u)}let i=n-1,s=1,a=0;for(this[r+i]=e&255;--i>=0&&(s*=256);)e<0&&a===0&&this[r+i+1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};x.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};x.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};x.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};x.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};x.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};x.prototype.writeBigInt64LE=qt(function(e,r=0){return Ff(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});x.prototype.writeBigInt64BE=qt(function(e,r=0){return Uf(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Lf(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function kf(t,e,r,n,o){return e=+e,r=r>>>0,o||Lf(t,e,r,4,34028234663852886e22,-34028234663852886e22),Jr.write(t,e,r,n,23,4),r+4}x.prototype.writeFloatLE=function(e,r,n){return kf(this,e,r,!0,n)};x.prototype.writeFloatBE=function(e,r,n){return kf(this,e,r,!1,n)};function jf(t,e,r,n,o){return e=+e,r=r>>>0,o||Lf(t,e,r,8,17976931348623157e292,-17976931348623157e292),Jr.write(t,e,r,n,52,8),r+8}x.prototype.writeDoubleLE=function(e,r,n){return jf(this,e,r,!0,n)};x.prototype.writeDoubleBE=function(e,r,n){return jf(this,e,r,!1,n)};x.prototype.copy=function(e,r,n,o){if(!x.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);let i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};x.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!x.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){let s=e.charCodeAt(0);(o==="utf8"&&s<128||o==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let i;if(typeof e=="number")for(i=r;i<n;++i)this[i]=e;else{let s=x.isBuffer(e)?e:x.from(e,o),a=s.length;if(a===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-r;++i)this[i+r]=s[i%a]}return this};var Gr={};function Ga(t,e,r){Gr[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Ga("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Ga("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);Ga("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=$f(String(r)):typeof r=="bigint"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=$f(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n},RangeError);function $f(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function H0(t,e,r){Yr(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&uo(e,t.length-(r+1))}function qf(t,e,r,n,o,i){if(t>r||t<e){let s=typeof e=="bigint"?"n":"",a;throw i>3?e===0||e===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(i+1)*8}${s}`:a=`>= -(2${s} ** ${(i+1)*8-1}${s}) and < 2 ** ${(i+1)*8-1}${s}`:a=`>= ${e}${s} and <= ${r}${s}`,new Gr.ERR_OUT_OF_RANGE("value",a,t)}H0(n,o,i)}function Yr(t,e){if(typeof t!="number")throw new Gr.ERR_INVALID_ARG_TYPE(e,"number",t)}function uo(t,e,r){throw Math.floor(t)!==t?(Yr(t,r),new Gr.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new Gr.ERR_BUFFER_OUT_OF_BOUNDS:new Gr.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var z0=/[^+/0-9A-Za-z-_]/g;function V0(t){if(t=t.split("=")[0],t=t.trim().replace(z0,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Ha(t,e){e=e||1/0;let r,n=t.length,o=null,i=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function G0(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function J0(t,e){let r,n,o,i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function Wf(t){return ja.toByteArray(V0(t))}function Fi(t,e,r,n){let o;for(o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function ft(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Ja(t){return t!==t}var Y0=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e}();function qt(t){return typeof BigInt>"u"?Q0:t}function Q0(){throw new Error("BigInt not supported")}});var zf=C((Zr,Xr)=>{(function(t){var e=typeof Zr=="object"&&Zr&&!Zr.nodeType&&Zr,r=typeof Xr=="object"&&Xr&&!Xr.nodeType&&Xr,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(t=n);var o,i=2147483647,s=36,a=1,u=26,c=38,l=700,f=72,h=128,y="-",w=/^xn--/,A=/[^\x20-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=s-a,D=Math.floor,N=String.fromCharCode,q;function U(v){throw new RangeError(_[v])}function Y(v,M){for(var R=v.length,H=[];R--;)H[R]=M(v[R]);return H}function F(v,M){var R=v.split("@"),H="";R.length>1&&(H=R[0]+"@",v=R[1]),v=v.replace(O,".");var z=v.split("."),K=Y(z,M).join(".");return H+K}function B(v){for(var M=[],R=0,H=v.length,z,K;R<H;)z=v.charCodeAt(R++),z>=55296&&z<=56319&&R<H?(K=v.charCodeAt(R++),(K&64512)==56320?M.push(((z&1023)<<10)+(K&1023)+65536):(M.push(z),R--)):M.push(z);return M}function re(v){return Y(v,function(M){var R="";return M>65535&&(M-=65536,R+=N(M>>>10&1023|55296),M=56320|M&1023),R+=N(M),R}).join("")}function we(v){return v-48<10?v-22:v-65<26?v-65:v-97<26?v-97:s}function $(v,M){return v+22+75*(v<26)-((M!=0)<<5)}function S(v,M,R){var H=0;for(v=R?D(v/l):v>>1,v+=D(v/M);v>I*u>>1;H+=s)v=D(v/I);return D(H+(I+1)*v/(v+c))}function E(v){var M=[],R=v.length,H,z=0,K=h,ne=f,pe,Se,m,p,d,g,b,L,oe;for(pe=v.lastIndexOf(y),pe<0&&(pe=0),Se=0;Se<pe;++Se)v.charCodeAt(Se)>=128&&U("not-basic"),M.push(v.charCodeAt(Se));for(m=pe>0?pe+1:0;m<R;){for(p=z,d=1,g=s;m>=R&&U("invalid-input"),b=we(v.charCodeAt(m++)),(b>=s||b>D((i-z)/d))&&U("overflow"),z+=b*d,L=g<=ne?a:g>=ne+u?u:g-ne,!(b<L);g+=s)oe=s-L,d>D(i/oe)&&U("overflow"),d*=oe;H=M.length+1,ne=S(z-p,H,p==0),D(z/H)>i-K&&U("overflow"),K+=D(z/H),z%=H,M.splice(z++,0,K)}return re(M)}function P(v){var M,R,H,z,K,ne,pe,Se,m,p,d,g=[],b,L,oe,ie;for(v=B(v),b=v.length,M=h,R=0,K=f,ne=0;ne<b;++ne)d=v[ne],d<128&&g.push(N(d));for(H=z=g.length,z&&g.push(y);H<b;){for(pe=i,ne=0;ne<b;++ne)d=v[ne],d>=M&&d<pe&&(pe=d);for(L=H+1,pe-M>D((i-R)/L)&&U("overflow"),R+=(pe-M)*L,M=pe,ne=0;ne<b;++ne)if(d=v[ne],d<M&&++R>i&&U("overflow"),d==M){for(Se=R,m=s;p=m<=K?a:m>=K+u?u:m-K,!(Se<p);m+=s)ie=Se-p,oe=s-p,g.push(N($(p+ie%oe,0))),Se=D(ie/oe);g.push(N($(Se,0))),K=S(R,L,H==z),R=0,++H}++R,++M}return g.join("")}function T(v){return F(v,function(M){return w.test(M)?E(M.slice(4).toLowerCase()):M})}function j(v){return F(v,function(M){return A.test(M)?"xn--"+P(M):M})}if(o={version:"1.4.1",ucs2:{decode:B,encode:re},decode:E,encode:P,toASCII:j,toUnicode:T},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return o});else if(e&&r)if(Xr.exports==e)r.exports=o;else for(q in o)o.hasOwnProperty(q)&&(e[q]=o[q]);else t.punycode=o})(Zr)});var Gf=C((FM,Vf)=>{"use strict";Vf.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}});var Qf=C((UM,Yf)=>{"use strict";var Jf=typeof Symbol<"u"&&Symbol,Z0=Gf();Yf.exports=function(){return typeof Jf!="function"||typeof Symbol!="function"||typeof Jf("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Z0()}});var Kf=C((LM,Xf)=>{"use strict";var Zf={foo:{}},X0=Object;Xf.exports=function(){return{__proto__:Zf}.foo===Zf.foo&&!({__proto__:null}instanceof X0)}});var rp=C((kM,tp)=>{"use strict";var K0="Function.prototype.bind called on incompatible ",ex=Object.prototype.toString,tx=Math.max,rx="[object Function]",ep=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},nx=function(e,r){for(var n=[],o=r||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},ox=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};tp.exports=function(e){var r=this;if(typeof r!="function"||ex.apply(r)!==rx)throw new TypeError(K0+r);for(var n=nx(arguments,1),o,i=function(){if(this instanceof o){var l=r.apply(this,ep(n,arguments));return Object(l)===l?l:this}return r.apply(e,ep(n,arguments))},s=tx(0,r.length-n.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(o=Function("binder","return function ("+ox(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}});var Ui=C((jM,np)=>{"use strict";var ix=rp();np.exports=Function.prototype.bind||ix});var ip=C((qM,op)=>{"use strict";var sx=Function.prototype.call,ax=Object.prototype.hasOwnProperty,ux=Ui();op.exports=ux.call(sx,ax)});var Wt=C((WM,lp)=>{"use strict";var Z,rn=SyntaxError,cp=Function,tn=TypeError,Ya=function(t){try{return cp('"use strict"; return ('+t+").constructor;")()}catch{}},vr=Object.getOwnPropertyDescriptor;if(vr)try{vr({},"")}catch{vr=null}var Qa=function(){throw new tn},cx=vr?function(){try{return arguments.callee,Qa}catch{try{return vr(arguments,"callee").get}catch{return Qa}}}():Qa,Kr=Qf()(),lx=Kf()(),$e=Object.getPrototypeOf||(lx?function(t){return t.__proto__}:null),en={},fx=typeof Uint8Array>"u"||!$e?Z:$e(Uint8Array),wr={"%AggregateError%":typeof AggregateError>"u"?Z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Z:ArrayBuffer,"%ArrayIteratorPrototype%":Kr&&$e?$e([][Symbol.iterator]()):Z,"%AsyncFromSyncIteratorPrototype%":Z,"%AsyncFunction%":en,"%AsyncGenerator%":en,"%AsyncGeneratorFunction%":en,"%AsyncIteratorPrototype%":en,"%Atomics%":typeof Atomics>"u"?Z:Atomics,"%BigInt%":typeof BigInt>"u"?Z:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Z:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Z:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Z:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Z:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Z:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Z:FinalizationRegistry,"%Function%":cp,"%GeneratorFunction%":en,"%Int8Array%":typeof Int8Array>"u"?Z:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Z:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Z:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Kr&&$e?$e($e([][Symbol.iterator]())):Z,"%JSON%":typeof JSON=="object"?JSON:Z,"%Map%":typeof Map>"u"?Z:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Kr||!$e?Z:$e(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Z:Promise,"%Proxy%":typeof Proxy>"u"?Z:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Z:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Z:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Kr||!$e?Z:$e(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Kr&&$e?$e(""[Symbol.iterator]()):Z,"%Symbol%":Kr?Symbol:Z,"%SyntaxError%":rn,"%ThrowTypeError%":cx,"%TypedArray%":fx,"%TypeError%":tn,"%Uint8Array%":typeof Uint8Array>"u"?Z:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Z:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Z:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Z:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Z:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Z:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Z:WeakSet};if($e)try{null.error}catch(t){sp=$e($e(t)),wr["%Error.prototype%"]=sp}var sp,px=function t(e){var r;if(e==="%AsyncFunction%")r=Ya("async function () {}");else if(e==="%GeneratorFunction%")r=Ya("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Ya("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&$e&&(r=$e(o.prototype))}return wr[e]=r,r},ap={"%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"]},co=Ui(),Li=ip(),hx=co.call(Function.call,Array.prototype.concat),dx=co.call(Function.apply,Array.prototype.splice),up=co.call(Function.call,String.prototype.replace),ki=co.call(Function.call,String.prototype.slice),mx=co.call(Function.call,RegExp.prototype.exec),gx=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yx=/\\(\\)?/g,xx=function(e){var r=ki(e,0,1),n=ki(e,-1);if(r==="%"&&n!=="%")throw new rn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new rn("invalid intrinsic syntax, expected opening `%`");var o=[];return up(e,gx,function(i,s,a,u){o[o.length]=a?up(u,yx,"$1"):s||i}),o},bx=function(e,r){var n=e,o;if(Li(ap,n)&&(o=ap[n],n="%"+o[0]+"%"),Li(wr,n)){var i=wr[n];if(i===en&&(i=px(n)),typeof i>"u"&&!r)throw new tn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new rn("intrinsic "+e+" does not exist!")};lp.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new tn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new tn('"allowMissing" argument must be a boolean');if(mx(/^%?[^%]*%?$/,e)===null)throw new rn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=xx(e),o=n.length>0?n[0]:"",i=bx("%"+o+"%",r),s=i.name,a=i.value,u=!1,c=i.alias;c&&(o=c[0],dx(n,hx([0,1],c)));for(var l=1,f=!0;l<n.length;l+=1){var h=n[l],y=ki(h,0,1),w=ki(h,-1);if((y==='"'||y==="'"||y==="`"||w==='"'||w==="'"||w==="`")&&y!==w)throw new rn("property names with quotes must have matching quotes");if((h==="constructor"||!f)&&(u=!0),o+="."+h,s="%"+o+"%",Li(wr,s))a=wr[s];else if(a!=null){if(!(h in a)){if(!r)throw new tn("base intrinsic for "+e+" exists, but the property is not available.");return}if(vr&&l+1>=n.length){var A=vr(a,h);f=!!A,f&&"get"in A&&!("originalValue"in A.get)?a=A.get:a=a[h]}else f=Li(a,h),a=a[h];f&&!u&&(wr[s]=a)}}return a}});var Ka=C((HM,fp)=>{"use strict";var vx=Wt(),Za=vx("%Object.defineProperty%",!0),Xa=function(){if(Za)try{return Za({},"a",{value:1}),!0}catch{return!1}return!1};Xa.hasArrayLengthDefineBug=function(){if(!Xa())return null;try{return Za([],"length",{value:1}).length!==1}catch{return!0}};fp.exports=Xa});var eu=C((zM,pp)=>{"use strict";var wx=Wt(),ji=wx("%Object.getOwnPropertyDescriptor%",!0);if(ji)try{ji([],"length")}catch{ji=null}pp.exports=ji});var mp=C((VM,dp)=>{"use strict";var Sx=Ka()(),tu=Wt(),lo=Sx&&tu("%Object.defineProperty%",!0);if(lo)try{lo({},"a",{value:1})}catch{lo=!1}var Ex=tu("%SyntaxError%"),nn=tu("%TypeError%"),hp=eu();dp.exports=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new nn("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new nn("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new nn("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new nn("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new nn("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new nn("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,u=!!hp&&hp(e,r);if(lo)lo(e,r,{configurable:s===null&&u?u.configurable:!s,enumerable:o===null&&u?u.enumerable:!o,value:n,writable:i===null&&u?u.writable:!i});else if(a||!o&&!i&&!s)e[r]=n;else throw new Ex("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var wp=C((GM,vp)=>{"use strict";var bp=Wt(),gp=mp(),Tx=Ka()(),yp=eu(),xp=bp("%TypeError%"),_x=bp("%Math.floor%");vp.exports=function(e,r){if(typeof e!="function")throw new xp("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||_x(r)!==r)throw new xp("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&yp){var s=yp(e,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!n)&&(Tx?gp(e,"length",r,!0,!0):gp(e,"length",r)),e}});var Cp=C((JM,qi)=>{"use strict";var ru=Ui(),on=Wt(),Cx=wp(),Ax=on("%TypeError%"),Ep=on("%Function.prototype.apply%"),Tp=on("%Function.prototype.call%"),_p=on("%Reflect.apply%",!0)||ru.call(Tp,Ep),fo=on("%Object.defineProperty%",!0),Ix=on("%Math.max%");if(fo)try{fo({},"a",{value:1})}catch{fo=null}qi.exports=function(e){if(typeof e!="function")throw new Ax("a function is required");var r=_p(ru,Tp,arguments);return Cx(r,1+Ix(0,e.length-(arguments.length-1)),!0)};var Sp=function(){return _p(ru,Ep,arguments)};fo?fo(qi.exports,"apply",{value:Sp}):qi.exports.apply=Sp});var Pp=C((YM,Mp)=>{"use strict";var Ap=Wt(),Ip=Cp(),Mx=Ip(Ap("String.prototype.indexOf"));Mp.exports=function(e,r){var n=Ap(e,!!r);return typeof n=="function"&&Mx(e,".prototype.")>-1?Ip(n):n}});var $p=C(()=>{});var Zp=C((XM,Qp)=>{var pu=typeof Map=="function"&&Map.prototype,nu=Object.getOwnPropertyDescriptor&&pu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Hi=pu&&nu&&typeof nu.get=="function"?nu.get:null,Np=pu&&Map.prototype.forEach,hu=typeof Set=="function"&&Set.prototype,ou=Object.getOwnPropertyDescriptor&&hu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,zi=hu&&ou&&typeof ou.get=="function"?ou.get:null,Op=hu&&Set.prototype.forEach,Px=typeof WeakMap=="function"&&WeakMap.prototype,ho=Px?WeakMap.prototype.has:null,$x=typeof WeakSet=="function"&&WeakSet.prototype,mo=$x?WeakSet.prototype.has:null,Nx=typeof WeakRef=="function"&&WeakRef.prototype,Dp=Nx?WeakRef.prototype.deref:null,Ox=Boolean.prototype.valueOf,Dx=Object.prototype.toString,Bx=Function.prototype.toString,Rx=String.prototype.match,du=String.prototype.slice,zt=String.prototype.replace,Fx=String.prototype.toUpperCase,Bp=String.prototype.toLowerCase,Hp=RegExp.prototype.test,Rp=Array.prototype.concat,pt=Array.prototype.join,Ux=Array.prototype.slice,Fp=Math.floor,au=typeof BigInt=="function"?BigInt.prototype.valueOf:null,iu=Object.getOwnPropertySymbols,uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,sn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Fe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===sn||"symbol")?Symbol.toStringTag:null,zp=Object.prototype.propertyIsEnumerable,Up=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Lp(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Hp.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Fp(-t):Fp(t);if(n!==t){var o=String(n),i=du.call(e,o.length+1);return zt.call(o,r,"$&_")+"."+zt.call(zt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return zt.call(e,r,"$&_")}var cu=$p(),kp=cu.custom,jp=Gp(kp)?kp:null;Qp.exports=function t(e,r,n,o){var i=r||{};if(Ht(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ht(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Ht(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ht(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ht(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Yp(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?Lp(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?Lp(e,c):c}var l=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=l&&l>0&&typeof e=="object")return lu(e)?"[Array]":"[Object]";var f=rb(i,n);if(typeof o>"u")o=[];else if(Jp(o,e)>=0)return"[Circular]";function h(S,E,P){if(E&&(o=Ux.call(o),o.push(E)),P){var T={depth:i.depth};return Ht(i,"quoteStyle")&&(T.quoteStyle=i.quoteStyle),t(S,T,n+1,o)}return t(S,i,n+1,o)}if(typeof e=="function"&&!qp(e)){var y=Gx(e),w=Wi(e,h);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(w.length>0?" { "+pt.call(w,", ")+" }":"")}if(Gp(e)){var A=sn?zt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):uu.call(e);return typeof e=="object"&&!sn?po(A):A}if(Kx(e)){for(var O="<"+Bp.call(String(e.nodeName)),_=e.attributes||[],I=0;I<_.length;I++)O+=" "+_[I].name+"="+Vp(Lx(_[I].value),"double",i);return O+=">",e.childNodes&&e.childNodes.length&&(O+="..."),O+="</"+Bp.call(String(e.nodeName))+">",O}if(lu(e)){if(e.length===0)return"[]";var D=Wi(e,h);return f&&!tb(D)?"["+fu(D,f)+"]":"[ "+pt.call(D,", ")+" ]"}if(jx(e)){var N=Wi(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!zp.call(e,"cause")?"{ ["+String(e)+"] "+pt.call(Rp.call("[cause]: "+h(e.cause),N),", ")+" }":N.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+pt.call(N,", ")+" }"}if(typeof e=="object"&&s){if(jp&&typeof e[jp]=="function"&&cu)return cu(e,{depth:l-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Jx(e)){var q=[];return Np&&Np.call(e,function(S,E){q.push(h(E,e,!0)+" => "+h(S,e))}),Wp("Map",Hi.call(e),q,f)}if(Zx(e)){var U=[];return Op&&Op.call(e,function(S){U.push(h(S,e))}),Wp("Set",zi.call(e),U,f)}if(Yx(e))return su("WeakMap");if(Xx(e))return su("WeakSet");if(Qx(e))return su("WeakRef");if(Wx(e))return po(h(Number(e)));if(zx(e))return po(h(au.call(e)));if(Hx(e))return po(Ox.call(e));if(qx(e))return po(h(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===global)return"{ [object globalThis] }";if(!kx(e)&&!qp(e)){var Y=Wi(e,h),F=Up?Up(e)===Object.prototype:e instanceof Object||e.constructor===Object,B=e instanceof Object?"":"null prototype",re=!F&&Fe&&Object(e)===e&&Fe in e?du.call(Vt(e),8,-1):B?"Object":"",we=F||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",$=we+(re||B?"["+pt.call(Rp.call([],re||[],B||[]),": ")+"] ":"");return Y.length===0?$+"{}":f?$+"{"+fu(Y,f)+"}":$+"{ "+pt.call(Y,", ")+" }"}return String(e)};function Vp(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Lx(t){return zt.call(String(t),/"/g,"&quot;")}function lu(t){return Vt(t)==="[object Array]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function kx(t){return Vt(t)==="[object Date]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function qp(t){return Vt(t)==="[object RegExp]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function jx(t){return Vt(t)==="[object Error]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function qx(t){return Vt(t)==="[object String]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Wx(t){return Vt(t)==="[object Number]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Hx(t){return Vt(t)==="[object Boolean]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Gp(t){if(sn)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!uu)return!1;try{return uu.call(t),!0}catch{}return!1}function zx(t){if(!t||typeof t!="object"||!au)return!1;try{return au.call(t),!0}catch{}return!1}var Vx=Object.prototype.hasOwnProperty||function(t){return t in this};function Ht(t,e){return Vx.call(t,e)}function Vt(t){return Dx.call(t)}function Gx(t){if(t.name)return t.name;var e=Rx.call(Bx.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Jp(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Jx(t){if(!Hi||!t||typeof t!="object")return!1;try{Hi.call(t);try{zi.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Yx(t){if(!ho||!t||typeof t!="object")return!1;try{ho.call(t,ho);try{mo.call(t,mo)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Qx(t){if(!Dp||!t||typeof t!="object")return!1;try{return Dp.call(t),!0}catch{}return!1}function Zx(t){if(!zi||!t||typeof t!="object")return!1;try{zi.call(t);try{Hi.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Xx(t){if(!mo||!t||typeof t!="object")return!1;try{mo.call(t,mo);try{ho.call(t,ho)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Kx(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Yp(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Yp(du.call(t,0,e.maxStringLength),e)+n}var o=zt.call(zt.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,eb);return Vp(o,"single",e)}function eb(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Fx.call(e.toString(16))}function po(t){return"Object("+t+")"}function su(t){return t+" { ? }"}function Wp(t,e,r,n){var o=n?fu(r,n):pt.call(r,", ");return t+" ("+e+") {"+o+"}"}function tb(t){for(var e=0;e<t.length;e++)if(Jp(t[e],`
2
- `)>=0)return!1;return!0}function rb(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=pt.call(Array(t.indent+1)," ");else return null;return{base:r,prev:pt.call(Array(e+1),r)}}function fu(t,e){if(t.length===0)return"";var r=`
1
+ var fy=Object.create;var Go=Object.defineProperty;var cl=Object.getOwnPropertyDescriptor;var py=Object.getOwnPropertyNames;var hy=Object.getPrototypeOf,dy=Object.prototype.hasOwnProperty;var C=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),X=(t,e)=>{for(var r in e)Go(t,r,{get:e[r],enumerable:!0})},my=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of py(e))!dy.call(t,o)&&o!==r&&Go(t,o,{get:()=>e[o],enumerable:!(n=cl(e,o))||n.enumerable});return t};var De=(t,e,r)=>(r=t!=null?fy(hy(t)):{},my(e||!t||!t.__esModule?Go(r,"default",{value:t,enumerable:!0}):r,t));var W=(t,e,r,n)=>{for(var o=n>1?void 0:n?cl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(o=(n?s(e,r,o):s(o))||o);return n&&o&&Go(e,r,o),o};var si=C(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.uni=void 0;var Ay=(t="uni")=>`${t}_${"xxxxxxxxxxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}`;ii.uni=Ay});var ff=C((va,wa)=>{(function(t,e){typeof va=="object"&&typeof wa<"u"?wa.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(va,function(){"use strict";var t=1e3,e=6e4,r=36e5,n="millisecond",o="second",i="minute",s="hour",a="day",u="week",c="month",l="quarter",f="year",h="date",y="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|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,O={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($){var S=["th","st","nd","rd"],E=$%100;return"["+$+(S[(E-20)%10]||S[E]||S[0])+"]"}},_=function($,S,E){var P=String($);return!P||P.length>=S?$:""+Array(S+1-P.length).join(E)+$},I={s:_,z:function($){var S=-$.utcOffset(),E=Math.abs(S),P=Math.floor(E/60),T=E%60;return(S<=0?"+":"-")+_(P,2,"0")+":"+_(T,2,"0")},m:function $(S,E){if(S.date()<E.date())return-$(E,S);var P=12*(E.year()-S.year())+(E.month()-S.month()),T=S.clone().add(P,c),j=E-T<0,v=S.clone().add(P+(j?-1:1),c);return+(-(P+(E-T)/(j?T-v:v-T))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:c,y:f,w:u,d:a,D:h,h:s,m:i,s:o,ms:n,Q:l}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},D="en",N={};N[D]=O;var q="$isDayjsObject",U=function($){return $ instanceof re||!(!$||!$[q])},Y=function $(S,E,P){var T;if(!S)return D;if(typeof S=="string"){var j=S.toLowerCase();N[j]&&(T=j),E&&(N[j]=E,T=j);var v=S.split("-");if(!T&&v.length>1)return $(v[0])}else{var M=S.name;N[M]=S,T=M}return!P&&T&&(D=T),T||!P&&D},F=function($,S){if(U($))return $.clone();var E=typeof S=="object"?S:{};return E.date=$,E.args=arguments,new re(E)},B=I;B.l=Y,B.i=U,B.w=function($,S){return F($,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var re=function(){function $(E){this.$L=Y(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[q]=!0}var S=$.prototype;return S.parse=function(E){this.$d=function(P){var T=P.date,j=P.utc;if(T===null)return new Date(NaN);if(B.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var v=T.match(w);if(v){var M=v[2]-1||0,R=(v[7]||"0").substring(0,3);return j?new Date(Date.UTC(v[1],M,v[3]||1,v[4]||0,v[5]||0,v[6]||0,R)):new Date(v[1],M,v[3]||1,v[4]||0,v[5]||0,v[6]||0,R)}}return new Date(T)}(E),this.init()},S.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},S.$utils=function(){return B},S.isValid=function(){return this.$d.toString()!==y},S.isSame=function(E,P){var T=F(E);return this.startOf(P)<=T&&T<=this.endOf(P)},S.isAfter=function(E,P){return F(E)<this.startOf(P)},S.isBefore=function(E,P){return this.endOf(P)<F(E)},S.$g=function(E,P,T){return B.u(E)?this[P]:this.set(T,E)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(E,P){var T=this,j=!!B.u(P)||P,v=B.p(E),M=function(m,p){var d=B.w(T.$u?Date.UTC(T.$y,p,m):new Date(T.$y,p,m),T);return j?d:d.endOf(a)},R=function(m,p){return B.w(T.toDate()[m].apply(T.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(p)),T)},H=this.$W,z=this.$M,K=this.$D,ne="set"+(this.$u?"UTC":"");switch(v){case f:return j?M(1,0):M(31,11);case c:return j?M(1,z):M(0,z+1);case u:var pe=this.$locale().weekStart||0,Ee=(H<pe?H+7:H)-pe;return M(j?K-Ee:K+(6-Ee),z);case a:case h:return R(ne+"Hours",0);case s:return R(ne+"Minutes",1);case i:return R(ne+"Seconds",2);case o:return R(ne+"Milliseconds",3);default:return this.clone()}},S.endOf=function(E){return this.startOf(E,!1)},S.$set=function(E,P){var T,j=B.p(E),v="set"+(this.$u?"UTC":""),M=(T={},T[a]=v+"Date",T[h]=v+"Date",T[c]=v+"Month",T[f]=v+"FullYear",T[s]=v+"Hours",T[i]=v+"Minutes",T[o]=v+"Seconds",T[n]=v+"Milliseconds",T)[j],R=j===a?this.$D+(P-this.$W):P;if(j===c||j===f){var H=this.clone().set(h,1);H.$d[M](R),H.init(),this.$d=H.set(h,Math.min(this.$D,H.daysInMonth())).$d}else M&&this.$d[M](R);return this.init(),this},S.set=function(E,P){return this.clone().$set(E,P)},S.get=function(E){return this[B.p(E)]()},S.add=function(E,P){var T,j=this;E=Number(E);var v=B.p(P),M=function(z){var K=F(j);return B.w(K.date(K.date()+Math.round(z*E)),j)};if(v===c)return this.set(c,this.$M+E);if(v===f)return this.set(f,this.$y+E);if(v===a)return M(1);if(v===u)return M(7);var R=(T={},T[i]=e,T[s]=r,T[o]=t,T)[v]||1,H=this.$d.getTime()+E*R;return B.w(H,this)},S.subtract=function(E,P){return this.add(-1*E,P)},S.format=function(E){var P=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var j=E||"YYYY-MM-DDTHH:mm:ssZ",v=B.z(this),M=this.$H,R=this.$m,H=this.$M,z=T.weekdays,K=T.months,ne=T.meridiem,pe=function(p,d,g,b){return p&&(p[d]||p(P,j))||g[d].slice(0,b)},Ee=function(p){return B.s(M%12||12,p,"0")},m=ne||function(p,d,g){var b=p<12?"AM":"PM";return g?b.toLowerCase():b};return j.replace(A,function(p,d){return d||function(g){switch(g){case"YY":return String(P.$y).slice(-2);case"YYYY":return B.s(P.$y,4,"0");case"M":return H+1;case"MM":return B.s(H+1,2,"0");case"MMM":return pe(T.monthsShort,H,K,3);case"MMMM":return pe(K,H);case"D":return P.$D;case"DD":return B.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return pe(T.weekdaysMin,P.$W,z,2);case"ddd":return pe(T.weekdaysShort,P.$W,z,3);case"dddd":return z[P.$W];case"H":return String(M);case"HH":return B.s(M,2,"0");case"h":return Ee(1);case"hh":return Ee(2);case"a":return m(M,R,!0);case"A":return m(M,R,!1);case"m":return String(R);case"mm":return B.s(R,2,"0");case"s":return String(P.$s);case"ss":return B.s(P.$s,2,"0");case"SSS":return B.s(P.$ms,3,"0");case"Z":return v}return null}(p)||v.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(E,P,T){var j,v=this,M=B.p(P),R=F(E),H=(R.utcOffset()-this.utcOffset())*e,z=this-R,K=function(){return B.m(v,R)};switch(M){case f:j=K()/12;break;case c:j=K();break;case l:j=K()/3;break;case u:j=(z-H)/6048e5;break;case a:j=(z-H)/864e5;break;case s:j=z/r;break;case i:j=z/e;break;case o:j=z/t;break;default:j=z}return T?j:B.a(j)},S.daysInMonth=function(){return this.endOf(c).$D},S.$locale=function(){return N[this.$L]},S.locale=function(E,P){if(!E)return this.$L;var T=this.clone(),j=Y(E,P,!0);return j&&(T.$L=j),T},S.clone=function(){return B.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},$}(),Se=re.prototype;return F.prototype=Se,[["$ms",n],["$s",o],["$m",i],["$H",s],["$W",a],["$M",c],["$y",f],["$D",h]].forEach(function($){Se[$[1]]=function(S){return this.$g(S,$[0],$[1])}}),F.extend=function($,S){return $.$i||($(S,re,F),$.$i=!0),F},F.locale=Y,F.isDayjs=U,F.unix=function($){return F(1e3*$)},F.en=N[D],F.Ls=N,F.p={},F})});var pf=C((Sa,Ea)=>{(function(t,e){typeof Sa=="object"&&typeof Ea<"u"?Ea.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs_plugin_isToday=e()})(Sa,function(){"use strict";return function(t,e,r){e.prototype.isToday=function(){var n="YYYY-MM-DD",o=r();return this.format(n)===o.format(n)}}})});var mf=C((nM,df)=>{"use strict";df.exports=class{constructor(){this.parent=null,this.previousSibling=null,this.nextSibling=null,this.firstChild=null,this.lastChild=null,this.childrenVersion=0,this.childIndexCachedUpTo=null,this.cachedIndex=-1,this.cachedIndexVersion=NaN}get isAttached(){return!!(this.parent||this.previousSibling||this.nextSibling)}get hasChildren(){return!!this.firstChild}childrenChanged(){this.childrenVersion=this.childrenVersion+1&4294967295,this.childIndexCachedUpTo=null}getCachedIndex(e){return this.cachedIndexVersion!==e.childrenVersion?(this.cachedIndexVersion=NaN,-1):this.cachedIndex}setCachedIndex(e,r){this.cachedIndexVersion=e.childrenVersion,this.cachedIndex=r}}});var yf=C((oM,gf)=>{"use strict";gf.exports=Object.freeze({DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16})});var Sf=C((iM,wf)=>{"use strict";var xf=Symbol(),bf=Symbol(),kt=Symbol(),vf=Symbol(),st=class{constructor(e,r,n,o){this[xf]=e,this[bf]=r,this[kt]=n,this[vf]=o}next(){let e=this[xf],r=this[vf],n=this[bf];if(!this[kt])return{done:!0,value:n};let o=this[kt];return r===1?this[kt]=e._node(o).previousSibling:r===2?this[kt]=e._node(o).nextSibling:r===3?this[kt]=e._node(o).parent:r===4?this[kt]=e.preceding(o,{root:n}):this[kt]=e.following(o,{root:n}),{done:!1,value:o}}};Object.defineProperty(st.prototype,Symbol.iterator,{value:function(){return this},writable:!1});st.PREV=1;st.NEXT=2;st.PARENT=3;st.PRECEDING=4;st.FOLLOWING=5;Object.freeze(st);Object.freeze(st.prototype);wf.exports=st});var Tf=C((sM,Ef)=>{"use strict";var b0=mf(),jt=yf(),Je=Sf();function Na(){return!0}function Vr(t,e){return t[t.length-1-e]}var Di=class{constructor(e){this.symbol=Symbol(e||"SymbolTree data")}initialize(e){return this._node(e),e}_node(e){if(!e)return null;let r=e[this.symbol];return r||(e[this.symbol]=new b0)}hasChildren(e){return this._node(e).hasChildren}firstChild(e){return this._node(e).firstChild}lastChild(e){return this._node(e).lastChild}previousSibling(e){return this._node(e).previousSibling}nextSibling(e){return this._node(e).nextSibling}parent(e){return this._node(e).parent}lastInclusiveDescendant(e){let r,n=e;for(;r=this._node(n).lastChild;)n=r;return n}preceding(e,r){let n=r&&r.root;if(e===n)return null;let o=this._node(e).previousSibling;return o?this.lastInclusiveDescendant(o):this._node(e).parent}following(e,r){let n=r&&r.root,i=!(r&&r.skipChildren)&&this._node(e).firstChild;if(i)return i;let s=e;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(e,r){let n=r&&r.array||[],o=r&&r.filter||Na,i=r&&r.thisArg||void 0,s=this._node(e),a=s.firstChild,u=0;for(;a;){let c=this._node(a);c.setCachedIndex(s,u),o.call(i,a)&&n.push(a),a=c.nextSibling,++u}return n}ancestorsToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||Na,i=r&&r.thisArg||void 0,s=e;for(;s;)o.call(i,s)&&n.push(s),s=this._node(s).parent;return n}treeToArray(e,r){let n=r&&r.array||[],o=r&&r.filter||Na,i=r&&r.thisArg||void 0,s=e;for(;s;)o.call(i,s)&&n.push(s),s=this.following(s,{root:e});return n}childrenIterator(e,r){let n=r&&r.reverse,o=this._node(e);return new Je(this,e,n?o.lastChild:o.firstChild,n?Je.PREV:Je.NEXT)}previousSiblingsIterator(e){return new Je(this,e,this._node(e).previousSibling,Je.PREV)}nextSiblingsIterator(e){return new Je(this,e,this._node(e).nextSibling,Je.NEXT)}ancestorsIterator(e){return new Je(this,e,e,Je.PARENT)}treeIterator(e,r){let n=r&&r.reverse;return new Je(this,e,n?this.lastInclusiveDescendant(e):e,n?Je.PRECEDING:Je.FOLLOWING)}index(e){let r=this._node(e),n=this._node(r.parent);if(!n)return-1;let o=r.getCachedIndex(n);if(o>=0)return o;o=0;let 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===e)break;++o,i=s.nextSibling}return n.childIndexCachedUpTo=e,o}childrenCount(e){let r=this._node(e);return r.lastChild?this.index(r.lastChild)+1:0}compareTreePosition(e,r){if(e===r)return 0;let n=[];{let l=e;for(;l;){if(l===r)return jt.CONTAINS|jt.PRECEDING;n.push(l),l=this.parent(l)}}let o=[];{let l=r;for(;l;){if(l===e)return jt.CONTAINED_BY|jt.FOLLOWING;o.push(l),l=this.parent(l)}}let i=Vr(n,0);if(!i||i!==Vr(o,0))return jt.DISCONNECTED;let s=0,a=Math.min(n.length,o.length);for(let l=0;l<a;++l){let f=Vr(n,l),h=Vr(o,l);if(f!==h)break;s=l}let u=this.index(Vr(n,s+1));return this.index(Vr(o,s+1))<u?jt.PRECEDING:jt.FOLLOWING}remove(e){let r=this._node(e),n=this._node(r.parent),o=this._node(r.previousSibling),i=this._node(r.nextSibling);return n&&(n.firstChild===e&&(n.firstChild=r.nextSibling),n.lastChild===e&&(n.lastChild=r.previousSibling)),o&&(o.nextSibling=r.nextSibling),i&&(i.previousSibling=r.previousSibling),r.parent=null,r.previousSibling=null,r.nextSibling=null,r.cachedIndex=-1,r.cachedIndexVersion=NaN,n&&n.childrenChanged(),e}insertBefore(e,r){let n=this._node(e),o=this._node(n.previousSibling),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=e,n.previousSibling=r,o&&(o.nextSibling=r),s&&s.firstChild===e&&(s.firstChild=r),s&&s.childrenChanged(),r}insertAfter(e,r){let n=this._node(e),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=e,i.nextSibling=n.nextSibling,n.nextSibling=r,o&&(o.previousSibling=r),s&&s.lastChild===e&&(s.lastChild=r),s&&s.childrenChanged(),r}prependChild(e,r){let n=this._node(e),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertBefore(n.firstChild,r):(o.parent=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}appendChild(e,r){let n=this._node(e),o=this._node(r);if(o.isAttached)throw Error("Given object is already present in this SymbolTree, remove it first");return n.hasChildren?this.insertAfter(n.lastChild,r):(o.parent=e,n.firstChild=r,n.lastChild=r,n.childrenChanged()),r}};Ef.exports=Di;Di.TreePosition=jt});var If=C(Bi=>{"use strict";Bi.byteLength=S0;Bi.toByteArray=T0;Bi.fromByteArray=A0;var lt=[],Ye=[],w0=typeof Uint8Array<"u"?Uint8Array:Array,ja="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(xr=0,Cf=ja.length;xr<Cf;++xr)lt[xr]=ja[xr],Ye[ja.charCodeAt(xr)]=xr;var xr,Cf;Ye[45]=62;Ye[95]=63;function Af(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function S0(t){var e=Af(t),r=e[0],n=e[1];return(r+n)*3/4-n}function E0(t,e,r){return(e+r)*3/4-r}function T0(t){var e,r=Af(t),n=r[0],o=r[1],i=new w0(E0(t,n,o)),s=0,a=o>0?n-4:n,u;for(u=0;u<a;u+=4)e=Ye[t.charCodeAt(u)]<<18|Ye[t.charCodeAt(u+1)]<<12|Ye[t.charCodeAt(u+2)]<<6|Ye[t.charCodeAt(u+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return o===2&&(e=Ye[t.charCodeAt(u)]<<2|Ye[t.charCodeAt(u+1)]>>4,i[s++]=e&255),o===1&&(e=Ye[t.charCodeAt(u)]<<10|Ye[t.charCodeAt(u+1)]<<4|Ye[t.charCodeAt(u+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function _0(t){return lt[t>>18&63]+lt[t>>12&63]+lt[t>>6&63]+lt[t&63]}function C0(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(_0(n));return o.join("")}function A0(t){for(var e,r=t.length,n=r%3,o=[],i=16383,s=0,a=r-n;s<a;s+=i)o.push(C0(t,s,s+i>a?a:s+i));return n===1?(e=t[r-1],o.push(lt[e>>2]+lt[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],o.push(lt[e>>10]+lt[e>>4&63]+lt[e<<2&63]+"=")),o.join("")}});var Mf=C(qa=>{qa.read=function(t,e,r,n,o){var i,s,a=o*8-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?o-1:0,h=r?-1:1,y=t[e+f];for(f+=h,i=y&(1<<-l)-1,y>>=-l,l+=a;l>0;i=i*256+t[e+f],f+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=s*256+t[e+f],f+=h,l-=8);if(i===0)i=1-c;else{if(i===u)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-c}return(y?-1:1)*s*Math.pow(2,i-n)};qa.write=function(t,e,r,n,o,i){var s,a,u,c=i*8-o-1,l=(1<<c)-1,f=l>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:i-1,w=n?1:-1,A=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+f>=1?e+=h/u:e+=h*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,o),s=s+f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+y]=a&255,y+=w,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;t[r+y]=s&255,y+=w,s/=256,c-=8);t[r+y-w]|=A*128}});var Vf=C(Zr=>{"use strict";var Wa=If(),Yr=Mf(),Pf=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Zr.Buffer=x;Zr.SlowBuffer=O0;Zr.INSPECT_MAX_BYTES=50;var Ri=2147483647;Zr.kMaxLength=Ri;x.TYPED_ARRAY_SUPPORT=I0();!x.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function I0(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),t.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}});Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function _t(t){if(t>Ri)throw new RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,x.prototype),e}function x(t,e,r){if(typeof t=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ga(t)}return Df(t,e,r)}x.poolSize=8192;function Df(t,e,r){if(typeof t=="string")return P0(t,e);if(ArrayBuffer.isView(t))return $0(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(ft(t,ArrayBuffer)||t&&ft(t.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ft(t,SharedArrayBuffer)||t&&ft(t.buffer,SharedArrayBuffer)))return za(t,e,r);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=t.valueOf&&t.valueOf();if(n!=null&&n!==t)return x.from(n,e,r);let o=N0(t);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return x.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}x.from=function(t,e,r){return Df(t,e,r)};Object.setPrototypeOf(x.prototype,Uint8Array.prototype);Object.setPrototypeOf(x,Uint8Array);function Bf(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function M0(t,e,r){return Bf(t),t<=0?_t(t):e!==void 0?typeof r=="string"?_t(t).fill(e,r):_t(t).fill(e):_t(t)}x.alloc=function(t,e,r){return M0(t,e,r)};function Ga(t){return Bf(t),_t(t<0?0:Ja(t)|0)}x.allocUnsafe=function(t){return Ga(t)};x.allocUnsafeSlow=function(t){return Ga(t)};function P0(t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!x.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=Rf(t,e)|0,n=_t(r),o=n.write(t,e);return o!==r&&(n=n.slice(0,o)),n}function Ha(t){let e=t.length<0?0:Ja(t.length)|0,r=_t(e);for(let n=0;n<e;n+=1)r[n]=t[n]&255;return r}function $0(t){if(ft(t,Uint8Array)){let e=new Uint8Array(t);return za(e.buffer,e.byteOffset,e.byteLength)}return Ha(t)}function za(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&r===void 0?n=new Uint8Array(t):r===void 0?n=new Uint8Array(t,e):n=new Uint8Array(t,e,r),Object.setPrototypeOf(n,x.prototype),n}function N0(t){if(x.isBuffer(t)){let e=Ja(t.length)|0,r=_t(e);return r.length===0||t.copy(r,0,0,e),r}if(t.length!==void 0)return typeof t.length!="number"||Qa(t.length)?_t(0):Ha(t);if(t.type==="Buffer"&&Array.isArray(t.data))return Ha(t.data)}function Ja(t){if(t>=Ri)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ri.toString(16)+" bytes");return t|0}function O0(t){return+t!=t&&(t=0),x.alloc(+t)}x.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==x.prototype};x.compare=function(e,r){if(ft(e,Uint8Array)&&(e=x.from(e,e.offset,e.byteLength)),ft(r,Uint8Array)&&(r=x.from(r,r.offset,r.byteLength)),!x.isBuffer(e)||!x.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let n=e.length,o=r.length;for(let i=0,s=Math.min(n,o);i<s;++i)if(e[i]!==r[i]){n=e[i],o=r[i];break}return n<o?-1:o<n?1:0};x.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};x.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return x.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<e.length;++n)r+=e[n].length;let o=x.allocUnsafe(r),i=0;for(n=0;n<e.length;++n){let s=e[n];if(ft(s,Uint8Array))i+s.length>o.length?(x.isBuffer(s)||(s=x.from(s)),s.copy(o,i)):Uint8Array.prototype.set.call(o,s,i);else if(x.isBuffer(s))s.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return o};function Rf(t,e){if(x.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||ft(t,ArrayBuffer))return t.byteLength;if(typeof t!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Va(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return zf(t).length;default:if(o)return n?-1:Va(t).length;e=(""+e).toLowerCase(),o=!0}}x.byteLength=Rf;function D0(t,e,r){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return H0(this,e,r);case"utf8":case"utf-8":return Uf(this,e,r);case"ascii":return q0(this,e,r);case"latin1":case"binary":return W0(this,e,r);case"base64":return k0(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z0(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}x.prototype._isBuffer=!0;function br(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}x.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)br(this,r,r+1);return this};x.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)br(this,r,r+3),br(this,r+1,r+2);return this};x.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)br(this,r,r+7),br(this,r+1,r+6),br(this,r+2,r+5),br(this,r+3,r+4);return this};x.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Uf(this,0,e):D0.apply(this,arguments)};x.prototype.toLocaleString=x.prototype.toString;x.prototype.equals=function(e){if(!x.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:x.compare(this,e)===0};x.prototype.inspect=function(){let e="",r=Zr.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"};Pf&&(x.prototype[Pf]=x.prototype.inspect);x.prototype.compare=function(e,r,n,o,i){if(ft(e,Uint8Array)&&(e=x.from(e,e.offset,e.byteLength)),!x.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),r<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&r>=n)return 0;if(o>=i)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;let s=i-o,a=n-r,u=Math.min(s,a),c=this.slice(o,i),l=e.slice(r,n);for(let f=0;f<u;++f)if(c[f]!==l[f]){s=c[f],a=l[f];break}return s<a?-1:a<s?1:0};function Ff(t,e,r,n,o){if(t.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Qa(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0)if(o)r=0;else return-1;if(typeof e=="string"&&(e=x.from(e,n)),x.isBuffer(e))return e.length===0?-1:$f(t,e,r,n,o);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):$f(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function $f(t,e,r,n,o){let i=1,s=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;i=2,s/=2,a/=2,r/=2}function u(l,f){return i===1?l[f]:l.readUInt16BE(f*i)}let c;if(o){let l=-1;for(c=r;c<s;c++)if(u(t,c)===u(e,l===-1?0:c-l)){if(l===-1&&(l=c),c-l+1===a)return l*i}else l!==-1&&(c-=c-l),l=-1}else for(r+a>s&&(r=s-a),c=r;c>=0;c--){let l=!0;for(let f=0;f<a;f++)if(u(t,c+f)!==u(e,f)){l=!1;break}if(l)return c}return-1}x.prototype.includes=function(e,r,n){return this.indexOf(e,r,n)!==-1};x.prototype.indexOf=function(e,r,n){return Ff(this,e,r,n,!0)};x.prototype.lastIndexOf=function(e,r,n){return Ff(this,e,r,n,!1)};function B0(t,e,r,n){r=Number(r)||0;let o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;let i=e.length;n>i/2&&(n=i/2);let s;for(s=0;s<n;++s){let a=parseInt(e.substr(s*2,2),16);if(Qa(a))return s;t[r+s]=a}return s}function R0(t,e,r,n){return Fi(Va(e,t.length-r),t,r,n)}function F0(t,e,r,n){return Fi(Y0(e),t,r,n)}function U0(t,e,r,n){return Fi(zf(e),t,r,n)}function L0(t,e,r,n){return Fi(Q0(e,t.length-r),t,r,n)}x.prototype.write=function(e,r,n,o){if(r===void 0)o="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")o=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let i=this.length-r;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let s=!1;for(;;)switch(o){case"hex":return B0(this,e,r,n);case"utf8":case"utf-8":return R0(this,e,r,n);case"ascii":case"latin1":case"binary":return F0(this,e,r,n);case"base64":return U0(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L0(this,e,r,n);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}};x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k0(t,e,r){return e===0&&r===t.length?Wa.fromByteArray(t):Wa.fromByteArray(t.slice(e,r))}function Uf(t,e,r){r=Math.min(t.length,r);let n=[],o=e;for(;o<r;){let i=t[o],s=null,a=i>239?4:i>223?3:i>191?2:1;if(o+a<=r){let u,c,l,f;switch(a){case 1:i<128&&(s=i);break;case 2:u=t[o+1],(u&192)===128&&(f=(i&31)<<6|u&63,f>127&&(s=f));break;case 3:u=t[o+1],c=t[o+2],(u&192)===128&&(c&192)===128&&(f=(i&15)<<12|(u&63)<<6|c&63,f>2047&&(f<55296||f>57343)&&(s=f));break;case 4:u=t[o+1],c=t[o+2],l=t[o+3],(u&192)===128&&(c&192)===128&&(l&192)===128&&(f=(i&15)<<18|(u&63)<<12|(c&63)<<6|l&63,f>65535&&f<1114112&&(s=f))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),o+=a}return j0(n)}var Nf=4096;function j0(t){let e=t.length;if(e<=Nf)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=Nf));return r}function q0(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]&127);return n}function W0(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function H0(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let o="";for(let i=e;i<r;++i)o+=Z0[t[i]];return o}function z0(t,e,r){let n=t.slice(e,r),o="";for(let i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+n[i+1]*256);return o}x.prototype.slice=function(e,r){let n=this.length;e=~~e,r=r===void 0?n:~~r,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<e&&(r=e);let o=this.subarray(e,r);return Object.setPrototypeOf(o,x.prototype),o};function Pe(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Pe(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return o};x.prototype.readUintBE=x.prototype.readUIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Pe(e,r,this.length);let o=this[e+--r],i=1;for(;r>0&&(i*=256);)o+=this[e+--r]*i;return o};x.prototype.readUint8=x.prototype.readUInt8=function(e,r){return e=e>>>0,r||Pe(e,1,this.length),this[e]};x.prototype.readUint16LE=x.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||Pe(e,2,this.length),this[e]|this[e+1]<<8};x.prototype.readUint16BE=x.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||Pe(e,2,this.length),this[e]<<8|this[e+1]};x.prototype.readUint32LE=x.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};x.prototype.readUint32BE=x.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};x.prototype.readBigUInt64LE=Wt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&co(e,this.length-8);let o=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(o)+(BigInt(i)<<BigInt(32))});x.prototype.readBigUInt64BE=Wt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&co(e,this.length-8);let o=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(o)<<BigInt(32))+BigInt(i)});x.prototype.readIntLE=function(e,r,n){e=e>>>0,r=r>>>0,n||Pe(e,r,this.length);let o=this[e],i=1,s=0;for(;++s<r&&(i*=256);)o+=this[e+s]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*r)),o};x.prototype.readIntBE=function(e,r,n){e=e>>>0,r=r>>>0,n||Pe(e,r,this.length);let o=r,i=1,s=this[e+--o];for(;o>0&&(i*=256);)s+=this[e+--o]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*r)),s};x.prototype.readInt8=function(e,r){return e=e>>>0,r||Pe(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};x.prototype.readInt16LE=function(e,r){e=e>>>0,r||Pe(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};x.prototype.readInt16BE=function(e,r){e=e>>>0,r||Pe(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};x.prototype.readInt32LE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};x.prototype.readInt32BE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};x.prototype.readBigInt64LE=Wt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&co(e,this.length-8);let o=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(o)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});x.prototype.readBigInt64BE=Wt(function(e){e=e>>>0,Qr(e,"offset");let r=this[e],n=this[e+7];(r===void 0||n===void 0)&&co(e,this.length-8);let o=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(o)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});x.prototype.readFloatLE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),Yr.read(this,e,!0,23,4)};x.prototype.readFloatBE=function(e,r){return e=e>>>0,r||Pe(e,4,this.length),Yr.read(this,e,!1,23,4)};x.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||Pe(e,8,this.length),Yr.read(this,e,!0,52,8)};x.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||Pe(e,8,this.length),Yr.read(this,e,!1,52,8)};function qe(t,e,r,n,o,i){if(!x.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;qe(this,e,r,n,a,0)}let i=1,s=0;for(this[r]=e&255;++s<n&&(i*=256);)this[r+s]=e/i&255;return r+n};x.prototype.writeUintBE=x.prototype.writeUIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,n=n>>>0,!o){let a=Math.pow(2,8*n)-1;qe(this,e,r,n,a,0)}let i=n-1,s=1;for(this[r+i]=e&255;--i>=0&&(s*=256);)this[r+i]=e/s&255;return r+n};x.prototype.writeUint8=x.prototype.writeUInt8=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,1,255,0),this[r]=e&255,r+1};x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2};x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2};x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4};x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Lf(t,e,r,n,o){Hf(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i,i=i>>8,t[r++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,s=s>>8,t[r++]=s,r}function kf(t,e,r,n,o){Hf(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i=i>>8,t[r+6]=i,i=i>>8,t[r+5]=i,i=i>>8,t[r+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s=s>>8,t[r+2]=s,s=s>>8,t[r+1]=s,s=s>>8,t[r]=s,r+8}x.prototype.writeBigUInt64LE=Wt(function(e,r=0){return Lf(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});x.prototype.writeBigUInt64BE=Wt(function(e,r=0){return kf(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))});x.prototype.writeIntLE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let u=Math.pow(2,8*n-1);qe(this,e,r,n,u-1,-u)}let i=0,s=1,a=0;for(this[r]=e&255;++i<n&&(s*=256);)e<0&&a===0&&this[r+i-1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};x.prototype.writeIntBE=function(e,r,n,o){if(e=+e,r=r>>>0,!o){let u=Math.pow(2,8*n-1);qe(this,e,r,n,u-1,-u)}let i=n-1,s=1,a=0;for(this[r+i]=e&255;--i>=0&&(s*=256);)e<0&&a===0&&this[r+i+1]!==0&&(a=1),this[r+i]=(e/s>>0)-a&255;return r+n};x.prototype.writeInt8=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1};x.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2};x.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2};x.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4};x.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r>>>0,n||qe(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};x.prototype.writeBigInt64LE=Wt(function(e,r=0){return Lf(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});x.prototype.writeBigInt64BE=Wt(function(e,r=0){return kf(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function jf(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function qf(t,e,r,n,o){return e=+e,r=r>>>0,o||jf(t,e,r,4,34028234663852886e22,-34028234663852886e22),Yr.write(t,e,r,n,23,4),r+4}x.prototype.writeFloatLE=function(e,r,n){return qf(this,e,r,!0,n)};x.prototype.writeFloatBE=function(e,r,n){return qf(this,e,r,!1,n)};function Wf(t,e,r,n,o){return e=+e,r=r>>>0,o||jf(t,e,r,8,17976931348623157e292,-17976931348623157e292),Yr.write(t,e,r,n,52,8),r+8}x.prototype.writeDoubleLE=function(e,r,n){return Wf(this,e,r,!0,n)};x.prototype.writeDoubleBE=function(e,r,n){return Wf(this,e,r,!1,n)};x.prototype.copy=function(e,r,n,o){if(!x.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),r>=e.length&&(r=e.length),r||(r=0),o>0&&o<n&&(o=n),o===n||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-r<o-n&&(o=e.length-r+n);let i=o-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,o):Uint8Array.prototype.set.call(e,this.subarray(n,o),r),i};x.prototype.fill=function(e,r,n,o){if(typeof e=="string"){if(typeof r=="string"?(o=r,r=0,n=this.length):typeof n=="string"&&(o=n,n=this.length),o!==void 0&&typeof o!="string")throw new TypeError("encoding must be a string");if(typeof o=="string"&&!x.isEncoding(o))throw new TypeError("Unknown encoding: "+o);if(e.length===1){let s=e.charCodeAt(0);(o==="utf8"&&s<128||o==="latin1")&&(e=s)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let i;if(typeof e=="number")for(i=r;i<n;++i)this[i]=e;else{let s=x.isBuffer(e)?e:x.from(e,o),a=s.length;if(a===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-r;++i)this[i+r]=s[i%a]}return this};var Jr={};function Ya(t,e,r){Jr[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(o){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:o,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}Ya("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);Ya("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError);Ya("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=Of(String(r)):typeof r=="bigint"&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=Of(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n},RangeError);function Of(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function V0(t,e,r){Qr(e,"offset"),(t[e]===void 0||t[e+r]===void 0)&&co(e,t.length-(r+1))}function Hf(t,e,r,n,o,i){if(t>r||t<e){let s=typeof e=="bigint"?"n":"",a;throw i>3?e===0||e===BigInt(0)?a=`>= 0${s} and < 2${s} ** ${(i+1)*8}${s}`:a=`>= -(2${s} ** ${(i+1)*8-1}${s}) and < 2 ** ${(i+1)*8-1}${s}`:a=`>= ${e}${s} and <= ${r}${s}`,new Jr.ERR_OUT_OF_RANGE("value",a,t)}V0(n,o,i)}function Qr(t,e){if(typeof t!="number")throw new Jr.ERR_INVALID_ARG_TYPE(e,"number",t)}function co(t,e,r){throw Math.floor(t)!==t?(Qr(t,r),new Jr.ERR_OUT_OF_RANGE(r||"offset","an integer",t)):e<0?new Jr.ERR_BUFFER_OUT_OF_BOUNDS:new Jr.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}var G0=/[^+/0-9A-Za-z-_]/g;function J0(t){if(t=t.split("=")[0],t=t.trim().replace(G0,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Va(t,e){e=e||1/0;let r,n=t.length,o=null,i=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return i}function Y0(t){let e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r)&255);return e}function Q0(t,e){let r,n,o,i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}function zf(t){return Wa.toByteArray(J0(t))}function Fi(t,e,r,n){let o;for(o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function ft(t,e){return t instanceof e||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===e.name}function Qa(t){return t!==t}var Z0=function(){let t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e}();function Wt(t){return typeof BigInt>"u"?X0:t}function X0(){throw new Error("BigInt not supported")}});var Gf=C((Xr,Kr)=>{(function(t){var e=typeof Xr=="object"&&Xr&&!Xr.nodeType&&Xr,r=typeof Kr=="object"&&Kr&&!Kr.nodeType&&Kr,n=typeof global=="object"&&global;(n.global===n||n.window===n||n.self===n)&&(t=n);var o,i=2147483647,s=36,a=1,u=26,c=38,l=700,f=72,h=128,y="-",w=/^xn--/,A=/[^\x20-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=s-a,D=Math.floor,N=String.fromCharCode,q;function U(v){throw new RangeError(_[v])}function Y(v,M){for(var R=v.length,H=[];R--;)H[R]=M(v[R]);return H}function F(v,M){var R=v.split("@"),H="";R.length>1&&(H=R[0]+"@",v=R[1]),v=v.replace(O,".");var z=v.split("."),K=Y(z,M).join(".");return H+K}function B(v){for(var M=[],R=0,H=v.length,z,K;R<H;)z=v.charCodeAt(R++),z>=55296&&z<=56319&&R<H?(K=v.charCodeAt(R++),(K&64512)==56320?M.push(((z&1023)<<10)+(K&1023)+65536):(M.push(z),R--)):M.push(z);return M}function re(v){return Y(v,function(M){var R="";return M>65535&&(M-=65536,R+=N(M>>>10&1023|55296),M=56320|M&1023),R+=N(M),R}).join("")}function Se(v){return v-48<10?v-22:v-65<26?v-65:v-97<26?v-97:s}function $(v,M){return v+22+75*(v<26)-((M!=0)<<5)}function S(v,M,R){var H=0;for(v=R?D(v/l):v>>1,v+=D(v/M);v>I*u>>1;H+=s)v=D(v/I);return D(H+(I+1)*v/(v+c))}function E(v){var M=[],R=v.length,H,z=0,K=h,ne=f,pe,Ee,m,p,d,g,b,L,oe;for(pe=v.lastIndexOf(y),pe<0&&(pe=0),Ee=0;Ee<pe;++Ee)v.charCodeAt(Ee)>=128&&U("not-basic"),M.push(v.charCodeAt(Ee));for(m=pe>0?pe+1:0;m<R;){for(p=z,d=1,g=s;m>=R&&U("invalid-input"),b=Se(v.charCodeAt(m++)),(b>=s||b>D((i-z)/d))&&U("overflow"),z+=b*d,L=g<=ne?a:g>=ne+u?u:g-ne,!(b<L);g+=s)oe=s-L,d>D(i/oe)&&U("overflow"),d*=oe;H=M.length+1,ne=S(z-p,H,p==0),D(z/H)>i-K&&U("overflow"),K+=D(z/H),z%=H,M.splice(z++,0,K)}return re(M)}function P(v){var M,R,H,z,K,ne,pe,Ee,m,p,d,g=[],b,L,oe,ie;for(v=B(v),b=v.length,M=h,R=0,K=f,ne=0;ne<b;++ne)d=v[ne],d<128&&g.push(N(d));for(H=z=g.length,z&&g.push(y);H<b;){for(pe=i,ne=0;ne<b;++ne)d=v[ne],d>=M&&d<pe&&(pe=d);for(L=H+1,pe-M>D((i-R)/L)&&U("overflow"),R+=(pe-M)*L,M=pe,ne=0;ne<b;++ne)if(d=v[ne],d<M&&++R>i&&U("overflow"),d==M){for(Ee=R,m=s;p=m<=K?a:m>=K+u?u:m-K,!(Ee<p);m+=s)ie=Ee-p,oe=s-p,g.push(N($(p+ie%oe,0))),Ee=D(ie/oe);g.push(N($(Ee,0))),K=S(R,L,H==z),R=0,++H}++R,++M}return g.join("")}function T(v){return F(v,function(M){return w.test(M)?E(M.slice(4).toLowerCase()):M})}function j(v){return F(v,function(M){return A.test(M)?"xn--"+P(M):M})}if(o={version:"1.4.1",ucs2:{decode:B,encode:re},decode:E,encode:P,toASCII:j,toUnicode:T},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return o});else if(e&&r)if(Kr.exports==e)r.exports=o;else for(q in o)o.hasOwnProperty(q)&&(e[q]=o[q]);else t.punycode=o})(Xr)});var Yf=C((VM,Jf)=>{"use strict";Jf.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0}});var Xf=C((GM,Zf)=>{"use strict";var Qf=typeof Symbol<"u"&&Symbol,K0=Yf();Zf.exports=function(){return typeof Qf!="function"||typeof Symbol!="function"||typeof Qf("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:K0()}});var tp=C((JM,ep)=>{"use strict";var Kf={foo:{}},ex=Object;ep.exports=function(){return{__proto__:Kf}.foo===Kf.foo&&!({__proto__:null}instanceof ex)}});var op=C((YM,np)=>{"use strict";var tx="Function.prototype.bind called on incompatible ",rx=Object.prototype.toString,nx=Math.max,ox="[object Function]",rp=function(e,r){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},ix=function(e,r){for(var n=[],o=r||0,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},sx=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r};np.exports=function(e){var r=this;if(typeof r!="function"||rx.apply(r)!==ox)throw new TypeError(tx+r);for(var n=ix(arguments,1),o,i=function(){if(this instanceof o){var l=r.apply(this,rp(n,arguments));return Object(l)===l?l:this}return r.apply(e,rp(n,arguments))},s=nx(0,r.length-n.length),a=[],u=0;u<s;u++)a[u]="$"+u;if(o=Function("binder","return function ("+sx(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}});var Ui=C((QM,ip)=>{"use strict";var ax=op();ip.exports=Function.prototype.bind||ax});var ap=C((ZM,sp)=>{"use strict";var ux=Function.prototype.call,cx=Object.prototype.hasOwnProperty,lx=Ui();sp.exports=lx.call(ux,cx)});var Ht=C((XM,pp)=>{"use strict";var Z,nn=SyntaxError,fp=Function,rn=TypeError,Za=function(t){try{return fp('"use strict"; return ('+t+").constructor;")()}catch{}},vr=Object.getOwnPropertyDescriptor;if(vr)try{vr({},"")}catch{vr=null}var Xa=function(){throw new rn},fx=vr?function(){try{return arguments.callee,Xa}catch{try{return vr(arguments,"callee").get}catch{return Xa}}}():Xa,en=Xf()(),px=tp()(),$e=Object.getPrototypeOf||(px?function(t){return t.__proto__}:null),tn={},hx=typeof Uint8Array>"u"||!$e?Z:$e(Uint8Array),wr={"%AggregateError%":typeof AggregateError>"u"?Z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Z:ArrayBuffer,"%ArrayIteratorPrototype%":en&&$e?$e([][Symbol.iterator]()):Z,"%AsyncFromSyncIteratorPrototype%":Z,"%AsyncFunction%":tn,"%AsyncGenerator%":tn,"%AsyncGeneratorFunction%":tn,"%AsyncIteratorPrototype%":tn,"%Atomics%":typeof Atomics>"u"?Z:Atomics,"%BigInt%":typeof BigInt>"u"?Z:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Z:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Z:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Z:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Z:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Z:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Z:FinalizationRegistry,"%Function%":fp,"%GeneratorFunction%":tn,"%Int8Array%":typeof Int8Array>"u"?Z:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Z:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Z:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":en&&$e?$e($e([][Symbol.iterator]())):Z,"%JSON%":typeof JSON=="object"?JSON:Z,"%Map%":typeof Map>"u"?Z:Map,"%MapIteratorPrototype%":typeof Map>"u"||!en||!$e?Z:$e(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Z:Promise,"%Proxy%":typeof Proxy>"u"?Z:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Z:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Z:Set,"%SetIteratorPrototype%":typeof Set>"u"||!en||!$e?Z:$e(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":en&&$e?$e(""[Symbol.iterator]()):Z,"%Symbol%":en?Symbol:Z,"%SyntaxError%":nn,"%ThrowTypeError%":fx,"%TypedArray%":hx,"%TypeError%":rn,"%Uint8Array%":typeof Uint8Array>"u"?Z:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Z:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Z:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Z:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Z:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Z:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Z:WeakSet};if($e)try{null.error}catch(t){up=$e($e(t)),wr["%Error.prototype%"]=up}var up,dx=function t(e){var r;if(e==="%AsyncFunction%")r=Za("async function () {}");else if(e==="%GeneratorFunction%")r=Za("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Za("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&$e&&(r=$e(o.prototype))}return wr[e]=r,r},cp={"%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"]},lo=Ui(),Li=ap(),mx=lo.call(Function.call,Array.prototype.concat),gx=lo.call(Function.apply,Array.prototype.splice),lp=lo.call(Function.call,String.prototype.replace),ki=lo.call(Function.call,String.prototype.slice),yx=lo.call(Function.call,RegExp.prototype.exec),xx=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bx=/\\(\\)?/g,vx=function(e){var r=ki(e,0,1),n=ki(e,-1);if(r==="%"&&n!=="%")throw new nn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new nn("invalid intrinsic syntax, expected opening `%`");var o=[];return lp(e,xx,function(i,s,a,u){o[o.length]=a?lp(u,bx,"$1"):s||i}),o},wx=function(e,r){var n=e,o;if(Li(cp,n)&&(o=cp[n],n="%"+o[0]+"%"),Li(wr,n)){var i=wr[n];if(i===tn&&(i=dx(n)),typeof i>"u"&&!r)throw new rn("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new nn("intrinsic "+e+" does not exist!")};pp.exports=function(e,r){if(typeof e!="string"||e.length===0)throw new rn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new rn('"allowMissing" argument must be a boolean');if(yx(/^%?[^%]*%?$/,e)===null)throw new nn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=vx(e),o=n.length>0?n[0]:"",i=wx("%"+o+"%",r),s=i.name,a=i.value,u=!1,c=i.alias;c&&(o=c[0],gx(n,mx([0,1],c)));for(var l=1,f=!0;l<n.length;l+=1){var h=n[l],y=ki(h,0,1),w=ki(h,-1);if((y==='"'||y==="'"||y==="`"||w==='"'||w==="'"||w==="`")&&y!==w)throw new nn("property names with quotes must have matching quotes");if((h==="constructor"||!f)&&(u=!0),o+="."+h,s="%"+o+"%",Li(wr,s))a=wr[s];else if(a!=null){if(!(h in a)){if(!r)throw new rn("base intrinsic for "+e+" exists, but the property is not available.");return}if(vr&&l+1>=n.length){var A=vr(a,h);f=!!A,f&&"get"in A&&!("originalValue"in A.get)?a=A.get:a=a[h]}else f=Li(a,h),a=a[h];f&&!u&&(wr[s]=a)}}return a}});var tu=C((KM,hp)=>{"use strict";var Sx=Ht(),Ka=Sx("%Object.defineProperty%",!0),eu=function(){if(Ka)try{return Ka({},"a",{value:1}),!0}catch{return!1}return!1};eu.hasArrayLengthDefineBug=function(){if(!eu())return null;try{return Ka([],"length",{value:1}).length!==1}catch{return!0}};hp.exports=eu});var ru=C((eP,dp)=>{"use strict";var Ex=Ht(),ji=Ex("%Object.getOwnPropertyDescriptor%",!0);if(ji)try{ji([],"length")}catch{ji=null}dp.exports=ji});var yp=C((tP,gp)=>{"use strict";var Tx=tu()(),nu=Ht(),fo=Tx&&nu("%Object.defineProperty%",!0);if(fo)try{fo({},"a",{value:1})}catch{fo=!1}var _x=nu("%SyntaxError%"),on=nu("%TypeError%"),mp=ru();gp.exports=function(e,r,n){if(!e||typeof e!="object"&&typeof e!="function")throw new on("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new on("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new on("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new on("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new on("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new on("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,u=!!mp&&mp(e,r);if(fo)fo(e,r,{configurable:s===null&&u?u.configurable:!s,enumerable:o===null&&u?u.enumerable:!o,value:n,writable:i===null&&u?u.writable:!i});else if(a||!o&&!i&&!s)e[r]=n;else throw new _x("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Ep=C((rP,Sp)=>{"use strict";var wp=Ht(),xp=yp(),Cx=tu()(),bp=ru(),vp=wp("%TypeError%"),Ax=wp("%Math.floor%");Sp.exports=function(e,r){if(typeof e!="function")throw new vp("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Ax(r)!==r)throw new vp("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&bp){var s=bp(e,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!n)&&(Cx?xp(e,"length",r,!0,!0):xp(e,"length",r)),e}});var Ip=C((nP,qi)=>{"use strict";var ou=Ui(),sn=Ht(),Ix=Ep(),Mx=sn("%TypeError%"),_p=sn("%Function.prototype.apply%"),Cp=sn("%Function.prototype.call%"),Ap=sn("%Reflect.apply%",!0)||ou.call(Cp,_p),po=sn("%Object.defineProperty%",!0),Px=sn("%Math.max%");if(po)try{po({},"a",{value:1})}catch{po=null}qi.exports=function(e){if(typeof e!="function")throw new Mx("a function is required");var r=Ap(ou,Cp,arguments);return Ix(r,1+Px(0,e.length-(arguments.length-1)),!0)};var Tp=function(){return Ap(ou,_p,arguments)};po?po(qi.exports,"apply",{value:Tp}):qi.exports.apply=Tp});var Np=C((oP,$p)=>{"use strict";var Mp=Ht(),Pp=Ip(),$x=Pp(Mp("String.prototype.indexOf"));$p.exports=function(e,r){var n=Mp(e,!!r);return typeof n=="function"&&$x(e,".prototype.")>-1?Pp(n):n}});var Op=C(()=>{});var Kp=C((aP,Xp)=>{var du=typeof Map=="function"&&Map.prototype,iu=Object.getOwnPropertyDescriptor&&du?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Hi=du&&iu&&typeof iu.get=="function"?iu.get:null,Dp=du&&Map.prototype.forEach,mu=typeof Set=="function"&&Set.prototype,su=Object.getOwnPropertyDescriptor&&mu?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,zi=mu&&su&&typeof su.get=="function"?su.get:null,Bp=mu&&Set.prototype.forEach,Nx=typeof WeakMap=="function"&&WeakMap.prototype,mo=Nx?WeakMap.prototype.has:null,Ox=typeof WeakSet=="function"&&WeakSet.prototype,go=Ox?WeakSet.prototype.has:null,Dx=typeof WeakRef=="function"&&WeakRef.prototype,Rp=Dx?WeakRef.prototype.deref:null,Bx=Boolean.prototype.valueOf,Rx=Object.prototype.toString,Fx=Function.prototype.toString,Ux=String.prototype.match,gu=String.prototype.slice,Vt=String.prototype.replace,Lx=String.prototype.toUpperCase,Fp=String.prototype.toLowerCase,Vp=RegExp.prototype.test,Up=Array.prototype.concat,pt=Array.prototype.join,kx=Array.prototype.slice,Lp=Math.floor,cu=typeof BigInt=="function"?BigInt.prototype.valueOf:null,au=Object.getOwnPropertySymbols,lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,an=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Fe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===an||!0)?Symbol.toStringTag:null,Gp=Object.prototype.propertyIsEnumerable,kp=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function jp(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Vp.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Lp(-t):Lp(t);if(n!==t){var o=String(n),i=gu.call(e,o.length+1);return Vt.call(o,r,"$&_")+"."+Vt.call(Vt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Vt.call(e,r,"$&_")}var fu=Op(),qp=fu.custom,Wp=Yp(qp)?qp:null;Xp.exports=function t(e,r,n,o){var i=r||{};if(zt(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(zt(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=zt(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(zt(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(zt(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Zp(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?jp(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?jp(e,c):c}var l=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=l&&l>0&&typeof e=="object")return pu(e)?"[Array]":"[Object]";var f=ob(i,n);if(typeof o>"u")o=[];else if(Qp(o,e)>=0)return"[Circular]";function h(S,E,P){if(E&&(o=kx.call(o),o.push(E)),P){var T={depth:i.depth};return zt(i,"quoteStyle")&&(T.quoteStyle=i.quoteStyle),t(S,T,n+1,o)}return t(S,i,n+1,o)}if(typeof e=="function"&&!Hp(e)){var y=Yx(e),w=Wi(e,h);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(w.length>0?" { "+pt.call(w,", ")+" }":"")}if(Yp(e)){var A=an?Vt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):lu.call(e);return typeof e=="object"&&!an?ho(A):A}if(tb(e)){for(var O="<"+Fp.call(String(e.nodeName)),_=e.attributes||[],I=0;I<_.length;I++)O+=" "+_[I].name+"="+Jp(jx(_[I].value),"double",i);return O+=">",e.childNodes&&e.childNodes.length&&(O+="..."),O+="</"+Fp.call(String(e.nodeName))+">",O}if(pu(e)){if(e.length===0)return"[]";var D=Wi(e,h);return f&&!nb(D)?"["+hu(D,f)+"]":"[ "+pt.call(D,", ")+" ]"}if(Wx(e)){var N=Wi(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!Gp.call(e,"cause")?"{ ["+String(e)+"] "+pt.call(Up.call("[cause]: "+h(e.cause),N),", ")+" }":N.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+pt.call(N,", ")+" }"}if(typeof e=="object"&&s){if(Wp&&typeof e[Wp]=="function"&&fu)return fu(e,{depth:l-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Qx(e)){var q=[];return Dp&&Dp.call(e,function(S,E){q.push(h(E,e,!0)+" => "+h(S,e))}),zp("Map",Hi.call(e),q,f)}if(Kx(e)){var U=[];return Bp&&Bp.call(e,function(S){U.push(h(S,e))}),zp("Set",zi.call(e),U,f)}if(Zx(e))return uu("WeakMap");if(eb(e))return uu("WeakSet");if(Xx(e))return uu("WeakRef");if(zx(e))return ho(h(Number(e)));if(Gx(e))return ho(h(cu.call(e)));if(Vx(e))return ho(Bx.call(e));if(Hx(e))return ho(h(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===global)return"{ [object globalThis] }";if(!qx(e)&&!Hp(e)){var Y=Wi(e,h),F=kp?kp(e)===Object.prototype:e instanceof Object||e.constructor===Object,B=e instanceof Object?"":"null prototype",re=!F&&Fe&&Object(e)===e&&Fe in e?gu.call(Gt(e),8,-1):B?"Object":"",Se=F||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",$=Se+(re||B?"["+pt.call(Up.call([],re||[],B||[]),": ")+"] ":"");return Y.length===0?$+"{}":f?$+"{"+hu(Y,f)+"}":$+"{ "+pt.call(Y,", ")+" }"}return String(e)};function Jp(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function jx(t){return Vt.call(String(t),/"/g,"&quot;")}function pu(t){return Gt(t)==="[object Array]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function qx(t){return Gt(t)==="[object Date]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Hp(t){return Gt(t)==="[object RegExp]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Wx(t){return Gt(t)==="[object Error]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Hx(t){return Gt(t)==="[object String]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function zx(t){return Gt(t)==="[object Number]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Vx(t){return Gt(t)==="[object Boolean]"&&(!Fe||!(typeof t=="object"&&Fe in t))}function Yp(t){if(an)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!lu)return!1;try{return lu.call(t),!0}catch{}return!1}function Gx(t){if(!t||typeof t!="object"||!cu)return!1;try{return cu.call(t),!0}catch{}return!1}var Jx=Object.prototype.hasOwnProperty||function(t){return t in this};function zt(t,e){return Jx.call(t,e)}function Gt(t){return Rx.call(t)}function Yx(t){if(t.name)return t.name;var e=Ux.call(Fx.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Qp(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Qx(t){if(!Hi||!t||typeof t!="object")return!1;try{Hi.call(t);try{zi.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Zx(t){if(!mo||!t||typeof t!="object")return!1;try{mo.call(t,mo);try{go.call(t,go)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Xx(t){if(!Rp||!t||typeof t!="object")return!1;try{return Rp.call(t),!0}catch{}return!1}function Kx(t){if(!zi||!t||typeof t!="object")return!1;try{zi.call(t);try{Hi.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function eb(t){if(!go||!t||typeof t!="object")return!1;try{go.call(t,go);try{mo.call(t,mo)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function tb(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Zp(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Zp(gu.call(t,0,e.maxStringLength),e)+n}var o=Vt.call(Vt.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,rb);return Jp(o,"single",e)}function rb(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+Lx.call(e.toString(16))}function ho(t){return"Object("+t+")"}function uu(t){return t+" { ? }"}function zp(t,e,r,n){var o=n?hu(r,n):pt.call(r,", ");return t+" ("+e+") {"+o+"}"}function nb(t){for(var e=0;e<t.length;e++)if(Qp(t[e],`
2
+ `)>=0)return!1;return!0}function ob(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=pt.call(Array(t.indent+1)," ");else return null;return{base:r,prev:pt.call(Array(e+1),r)}}function hu(t,e){if(t.length===0)return"";var r=`
3
3
  `+e.prev+e.base;return r+pt.call(t,","+r)+`
4
- `+e.prev}function Wi(t,e){var r=lu(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=Ht(t,o)?e(t[o],t):""}var i=typeof iu=="function"?iu(t):[],s;if(sn){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)Ht(t,u)&&(r&&String(Number(u))===u&&u<t.length||sn&&s["$"+u]instanceof Symbol||(Hp.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if(typeof iu=="function")for(var c=0;c<i.length;c++)zp.call(t,i[c])&&n.push("["+e(i[c])+"]: "+e(t[i[c]],t));return n}});var Kp=C((KM,Xp)=>{"use strict";var mu=Wt(),an=Pp(),nb=Zp(),ob=mu("%TypeError%"),Vi=mu("%WeakMap%",!0),Gi=mu("%Map%",!0),ib=an("WeakMap.prototype.get",!0),sb=an("WeakMap.prototype.set",!0),ab=an("WeakMap.prototype.has",!0),ub=an("Map.prototype.get",!0),cb=an("Map.prototype.set",!0),lb=an("Map.prototype.has",!0),gu=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},fb=function(t,e){var r=gu(t,e);return r&&r.value},pb=function(t,e,r){var n=gu(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},hb=function(t,e){return!!gu(t,e)};Xp.exports=function(){var e,r,n,o={assert:function(i){if(!o.has(i))throw new ob("Side channel does not contain "+nb(i))},get:function(i){if(Vi&&i&&(typeof i=="object"||typeof i=="function")){if(e)return ib(e,i)}else if(Gi){if(r)return ub(r,i)}else if(n)return fb(n,i)},has:function(i){if(Vi&&i&&(typeof i=="object"||typeof i=="function")){if(e)return ab(e,i)}else if(Gi){if(r)return lb(r,i)}else if(n)return hb(n,i);return!1},set:function(i,s){Vi&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Vi),sb(e,i,s)):Gi?(r||(r=new Gi),cb(r,i,s)):(n||(n={key:{},next:null}),pb(n,i,s))}};return o}});var Ji=C((eP,eh)=>{"use strict";var db=String.prototype.replace,mb=/%20/g,yu={RFC1738:"RFC1738",RFC3986:"RFC3986"};eh.exports={default:yu.RFC3986,formatters:{RFC1738:function(t){return db.call(t,mb,"+")},RFC3986:function(t){return String(t)}},RFC1738:yu.RFC1738,RFC3986:yu.RFC3986}});var bu=C((tP,rh)=>{"use strict";var gb=Ji(),xu=Object.prototype.hasOwnProperty,Sr=Array.isArray,ht=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),yb=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Sr(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},th=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},xb=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Sr(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!xu.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return Sr(e)&&!Sr(r)&&(o=th(e,n)),Sr(e)&&Sr(r)?(r.forEach(function(i,s){if(xu.call(e,s)){var a=e[s];a&&typeof a=="object"&&i&&typeof i=="object"?e[s]=t(a,i,n):e.push(i)}else e[s]=i}),e):Object.keys(r).reduce(function(i,s){var a=r[s];return xu.call(i,s)?i[s]=t(i[s],a,n):i[s]=a,i},o)},bb=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},vb=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},wb=function(e,r,n,o,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;++u){var c=s.charCodeAt(u);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===gb.RFC1738&&(c===40||c===41)){a+=s.charAt(u);continue}if(c<128){a=a+ht[c];continue}if(c<2048){a=a+(ht[192|c>>6]+ht[128|c&63]);continue}if(c<55296||c>=57344){a=a+(ht[224|c>>12]+ht[128|c>>6&63]+ht[128|c&63]);continue}u+=1,c=65536+((c&1023)<<10|s.charCodeAt(u)&1023),a+=ht[240|c>>18]+ht[128|c>>12&63]+ht[128|c>>6&63]+ht[128|c&63]}return a},Sb=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],l=s[c];typeof l=="object"&&l!==null&&n.indexOf(l)===-1&&(r.push({obj:s,prop:c}),n.push(l))}return yb(r),e},Eb=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Tb=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},_b=function(e,r){return[].concat(e,r)},Cb=function(e,r){if(Sr(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)};rh.exports={arrayToObject:th,assign:bb,combine:_b,compact:Sb,decode:vb,encode:wb,isBuffer:Tb,isRegExp:Eb,maybeMap:Cb,merge:xb}});var uh=C((rP,ah)=>{"use strict";var ih=Kp(),Yi=bu(),go=Ji(),Ab=Object.prototype.hasOwnProperty,nh={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Ct=Array.isArray,Ib=Array.prototype.push,sh=function(t,e){Ib.apply(t,Ct(e)?e:[e])},Mb=Date.prototype.toISOString,oh=go.default,Ue={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Yi.encode,encodeValuesOnly:!1,format:oh,formatter:go.formatters[oh],indices:!1,serializeDate:function(e){return Mb.call(e)},skipNulls:!1,strictNullHandling:!1},Pb=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},vu={},$b=function t(e,r,n,o,i,s,a,u,c,l,f,h,y,w,A,O){for(var _=e,I=O,D=0,N=!1;(I=I.get(vu))!==void 0&&!N;){var q=I.get(e);if(D+=1,typeof q<"u"){if(q===D)throw new RangeError("Cyclic object value");N=!0}typeof I.get(vu)>"u"&&(D=0)}if(typeof u=="function"?_=u(r,_):_ instanceof Date?_=f(_):n==="comma"&&Ct(_)&&(_=Yi.maybeMap(_,function(T){return T instanceof Date?f(T):T})),_===null){if(i)return a&&!w?a(r,Ue.encoder,A,"key",h):r;_=""}if(Pb(_)||Yi.isBuffer(_)){if(a){var U=w?r:a(r,Ue.encoder,A,"key",h);return[y(U)+"="+y(a(_,Ue.encoder,A,"value",h))]}return[y(r)+"="+y(String(_))]}var Y=[];if(typeof _>"u")return Y;var F;if(n==="comma"&&Ct(_))w&&a&&(_=Yi.maybeMap(_,a)),F=[{value:_.length>0?_.join(",")||null:void 0}];else if(Ct(u))F=u;else{var B=Object.keys(_);F=c?B.sort(c):B}for(var re=o&&Ct(_)&&_.length===1?r+"[]":r,we=0;we<F.length;++we){var $=F[we],S=typeof $=="object"&&typeof $.value<"u"?$.value:_[$];if(!(s&&S===null)){var E=Ct(_)?typeof n=="function"?n(re,$):re:re+(l?"."+$:"["+$+"]");O.set(e,D);var P=ih();P.set(vu,O),sh(Y,t(S,E,n,o,i,s,n==="comma"&&w&&Ct(_)?null:a,u,c,l,f,h,y,w,A,P))}}return Y},Nb=function(e){if(!e)return Ue;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||Ue.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=go.default;if(typeof e.format<"u"){if(!Ab.call(go.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=go.formatters[n],i=Ue.filter;return(typeof e.filter=="function"||Ct(e.filter))&&(i=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Ue.addQueryPrefix,allowDots:typeof e.allowDots>"u"?Ue.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ue.charsetSentinel,delimiter:typeof e.delimiter>"u"?Ue.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Ue.encode,encoder:typeof e.encoder=="function"?e.encoder:Ue.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Ue.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Ue.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Ue.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ue.strictNullHandling}};ah.exports=function(t,e){var r=t,n=Nb(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):Ct(n.filter)&&(i=n.filter,o=i);var s=[];if(typeof r!="object"||r===null)return"";var a;e&&e.arrayFormat in nh?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var u=nh[a];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=u==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var l=ih(),f=0;f<o.length;++f){var h=o[f];n.skipNulls&&r[h]===null||sh(s,$b(r[h],h,u,c,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,l))}var y=s.join(n.delimiter),w=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),y.length>0?w+y:""}});var fh=C((nP,lh)=>{"use strict";var un=bu(),wu=Object.prototype.hasOwnProperty,Ob=Array.isArray,Ne={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:un.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Db=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},ch=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Bb="utf8=%26%2310003%3B",Rb="utf8=%E2%9C%93",Fb=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=o.split(r.delimiter,i),a=-1,u,c=r.charset;if(r.charsetSentinel)for(u=0;u<s.length;++u)s[u].indexOf("utf8=")===0&&(s[u]===Rb?c="utf-8":s[u]===Bb&&(c="iso-8859-1"),a=u,u=s.length);for(u=0;u<s.length;++u)if(u!==a){var l=s[u],f=l.indexOf("]="),h=f===-1?l.indexOf("="):f+1,y,w;h===-1?(y=r.decoder(l,Ne.decoder,c,"key"),w=r.strictNullHandling?null:""):(y=r.decoder(l.slice(0,h),Ne.decoder,c,"key"),w=un.maybeMap(ch(l.slice(h+1),r),function(A){return r.decoder(A,Ne.decoder,c,"value")})),w&&r.interpretNumericEntities&&c==="iso-8859-1"&&(w=Db(w)),l.indexOf("[]=")>-1&&(w=Ob(w)?[w]:w),wu.call(n,y)?n[y]=un.combine(n[y],w):n[y]=w}return n},Ub=function(t,e,r,n){for(var o=n?e:ch(e,r),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&r.parseArrays)s=[].concat(o);else{s=r.plainObjects?Object.create(null):{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(u,10);!r.parseArrays&&u===""?s={0:o}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},Lb=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=n.depth>0&&s.exec(i),c=u?i.slice(0,u.index):i,l=[];if(c){if(!n.plainObjects&&wu.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var f=0;n.depth>0&&(u=a.exec(i))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&wu.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(u[1])}return u&&l.push("["+i.slice(u.index)+"]"),Ub(l,r,n,o)}},kb=function(e){if(!e)return Ne;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?Ne.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Ne.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ne.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ne.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ne.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ne.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ne.comma,decoder:typeof e.decoder=="function"?e.decoder:Ne.decoder,delimiter:typeof e.delimiter=="string"||un.isRegExp(e.delimiter)?e.delimiter:Ne.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ne.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ne.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ne.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ne.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ne.strictNullHandling}};lh.exports=function(t,e){var r=kb(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?Fb(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s<i.length;++s){var a=i[s],u=Lb(a,n[a],r,typeof t=="string");o=un.merge(o,u,r)}return r.allowSparse===!0?o:un.compact(o)}});var hh=C((oP,ph)=>{"use strict";var jb=uh(),qb=fh(),Wb=Ji();ph.exports={formats:Wb,parse:qb,stringify:jb}});var yh=C(ln=>{"use strict";var Hb=zf();function Qe(){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 zb=/^([a-z0-9.+-]+:)/i,Vb=/:[0-9]*$/,Gb=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,Jb=["<",">",'"',"`"," ","\r",`
5
- `," "],Yb=["{","}","|","\\","^","`"].concat(Jb),Su=["'"].concat(Yb),dh=["%","/","?",";","#"].concat(Su),mh=["/","?","#"],Qb=255,gh=/^[+a-z0-9A-Z_-]{0,63}$/,Zb=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Xb={javascript:!0,"javascript:":!0},Eu={javascript:!0,"javascript:":!0},cn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Tu=hh();function yo(t,e,r){if(t&&typeof t=="object"&&t instanceof Qe)return t;var n=new Qe;return n.parse(t,e,r),n}Qe.prototype.parse=function(t,e,r){if(typeof t!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=n!==-1&&n<t.indexOf("#")?"?":"#",i=t.split(o),s=/\\/g;i[0]=i[0].replace(s,"/"),t=i.join(o);var a=t;if(a=a.trim(),!r&&t.split("#").length===1){var u=Gb.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=Tu.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var c=zb.exec(a);if(c){c=c[0];var l=c.toLowerCase();this.protocol=l,a=a.substr(c.length)}if(r||c||a.match(/^\/\/[^@/]+@[^@/]+/)){var f=a.substr(0,2)==="//";f&&!(c&&Eu[c])&&(a=a.substr(2),this.slashes=!0)}if(!Eu[c]&&(f||c&&!cn[c])){for(var h=-1,y=0;y<mh.length;y++){var w=a.indexOf(mh[y]);w!==-1&&(h===-1||w<h)&&(h=w)}var A,O;h===-1?O=a.lastIndexOf("@"):O=a.lastIndexOf("@",h),O!==-1&&(A=a.slice(0,O),a=a.slice(O+1),this.auth=decodeURIComponent(A)),h=-1;for(var y=0;y<dh.length;y++){var w=a.indexOf(dh[y]);w!==-1&&(h===-1||w<h)&&(h=w)}h===-1&&(h=a.length),this.host=a.slice(0,h),a=a.slice(h),this.parseHost(),this.hostname=this.hostname||"";var _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_)for(var I=this.hostname.split(/\./),y=0,D=I.length;y<D;y++){var N=I[y];if(N&&!N.match(gh)){for(var q="",U=0,Y=N.length;U<Y;U++)N.charCodeAt(U)>127?q+="x":q+=N[U];if(!q.match(gh)){var F=I.slice(0,y),B=I.slice(y+1),re=N.match(Zb);re&&(F.push(re[1]),B.unshift(re[2])),B.length&&(a="/"+B.join(".")+a),this.hostname=F.join(".");break}}}this.hostname.length>Qb?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=Hb.toASCII(this.hostname));var we=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+we,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!Xb[l])for(var y=0,D=Su.length;y<D;y++){var S=Su[y];if(a.indexOf(S)!==-1){var E=encodeURIComponent(S);E===S&&(E=escape(S)),a=a.split(S).join(E)}}var P=a.indexOf("#");P!==-1&&(this.hash=a.substr(P),a=a.slice(0,P));var T=a.indexOf("?");if(T!==-1?(this.search=a.substr(T),this.query=a.substr(T+1),e&&(this.query=Tu.parse(this.query)),a=a.slice(0,T)):e&&(this.search="",this.query={}),a&&(this.pathname=a),cn[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var we=this.pathname||"",j=this.search||"";this.path=we+j}return this.href=this.format(),this};function Kb(t){return typeof t=="string"&&(t=yo(t)),t instanceof Qe?t.format():Qe.prototype.format.call(t)}Qe.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=Tu.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||cn[e])&&o!==!1?(o="//"+(o||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):o||(o=""),n&&n.charAt(0)!=="#"&&(n="#"+n),s&&s.charAt(0)!=="?"&&(s="?"+s),r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),e+o+r+s+n};function ev(t,e){return yo(t,!1,!0).resolve(e)}Qe.prototype.resolve=function(t){return this.resolveObject(yo(t,!1,!0)).format()};function tv(t,e){return t?yo(t,!1,!0).resolveObject(e):e}Qe.prototype.resolveObject=function(t){if(typeof t=="string"){var e=new Qe;e.parse(t,!1,!0),t=e}for(var r=new Qe,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=t.hash,t.href==="")return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a];u!=="protocol"&&(r[u]=t[u])}return cn[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!cn[t.protocol]){for(var c=Object.keys(t),l=0;l<c.length;l++){var f=c[l];r[f]=t[f]}return r.href=r.format(),r}if(r.protocol=t.protocol,!t.host&&!Eu[t.protocol]){for(var D=(t.pathname||"").split("/");D.length&&!(t.host=D.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),D[0]!==""&&D.unshift(""),D.length<2&&D.unshift(""),r.pathname=D.join("/")}else r.pathname=t.pathname;if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var h=r.pathname||"",y=r.search||"";r.path=h+y}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var w=r.pathname&&r.pathname.charAt(0)==="/",A=t.host||t.pathname&&t.pathname.charAt(0)==="/",O=A||w||r.host&&t.pathname,_=O,I=r.pathname&&r.pathname.split("/")||[],D=t.pathname&&t.pathname.split("/")||[],N=r.protocol&&!cn[r.protocol];if(N&&(r.hostname="",r.port=null,r.host&&(I[0]===""?I[0]=r.host:I.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(D[0]===""?D[0]=t.host:D.unshift(t.host)),t.host=null),O=O&&(D[0]===""||I[0]==="")),A)r.host=t.host||t.host===""?t.host:r.host,r.hostname=t.hostname||t.hostname===""?t.hostname:r.hostname,r.search=t.search,r.query=t.query,I=D;else if(D.length)I||(I=[]),I.pop(),I=I.concat(D),r.search=t.search,r.query=t.query;else if(t.search!=null){if(N){r.host=I.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=t.search,r.query=t.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!I.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var U=I.slice(-1)[0],Y=(r.host||t.host||I.length>1)&&(U==="."||U==="..")||U==="",F=0,B=I.length;B>=0;B--)U=I[B],U==="."?I.splice(B,1):U===".."?(I.splice(B,1),F++):F&&(I.splice(B,1),F--);if(!O&&!_)for(;F--;F)I.unshift("..");O&&I[0]!==""&&(!I[0]||I[0].charAt(0)!=="/")&&I.unshift(""),Y&&I.join("/").substr(-1)!=="/"&&I.push("");var re=I[0]===""||I[0]&&I[0].charAt(0)==="/";if(N){r.hostname=re?"":I.length?I.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 O=O||r.host&&I.length,O&&!re&&I.unshift(""),I.length>0?r.pathname=I.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r};Qe.prototype.parseHost=function(){var t=this.host,e=Vb.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};ln.parse=yo;ln.resolve=ev;ln.resolveObject=tv;ln.format=Kb;ln.Url=Qe});var Fh=C((aP,Rh)=>{"use strict";Rh.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var kh=C((cP,Lh)=>{"use strict";Lh.exports=(t,e,r,n)=>{if(!Buffer.isBuffer(t))throw new TypeError(`Expected a \`Buffer\`, got \`${typeof t}\``);if(!(typeof e=="string"&&e.length>0)||!(typeof r=="string"||typeof r=="function"))return t;n=Object.assign({fromIndex:0},n);let o=0,i=s=>{let a=o===0?n.fromIndex:0,u=s.indexOf(e,a);if(u===-1)return s;o++;let c=Buffer.from(typeof r=="string"?r:r(e,o,t)),l=Buffer.from(e),f=s.slice(0,u),h=i(s.slice(u+l.length)),y=u+c.length+h.length;return Buffer.concat([f,c,h],y)};return i(t)}});var Hh=C((fP,Wh)=>{"use strict";Wh.exports=function(e){var r=typeof e;if(r==="string"||e instanceof String){if(!e.trim())return!1}else if(r!=="number"&&!(e instanceof Number))return!1;return e-e+1>=0}});var Gh=C((pP,Vh)=>{var dv=Object.prototype.toString;Vh.exports=function(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return bv(e)?"generatorfunction":"function";if(mv(e))return"array";if(Sv(e))return"buffer";if(wv(e))return"arguments";if(yv(e))return"date";if(gv(e))return"error";if(xv(e))return"regexp";switch(zh(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(vv(e))return"generator";switch(r=dv.call(e),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function zh(t){return typeof t.constructor=="function"?t.constructor.name:null}function mv(t){return Array.isArray?Array.isArray(t):t instanceof Array}function gv(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function yv(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function xv(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function bv(t,e){return zh(t)==="GeneratorFunction"}function vv(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function wv(t){try{if(typeof t.length=="number"&&typeof t.callee=="function")return!0}catch(e){if(e.message.indexOf("callee")!==-1)return!0}return!1}function Sv(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var Yh=C((hP,Jh)=>{Jh.exports=function(t){var e="Uint32Array"in t,r=t.crypto||t.msCrypto,n=r&&typeof r.getRandomValues=="function",o=e&&n;if(!o)return Math.random;var i=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(i),i[0]/s}return a.cryptographic=!0,a}(typeof self<"u"?self:window)});var Xh=C((dP,Mu)=>{"use strict";var Ev=Hh(),Qh=Gh(),Zh=Yh();Mu.exports=Tv;Mu.exports.isCrypto=!!Zh.cryptographic;var dt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};dt.all=dt.lower+dt.upper+dt.number+dt.special;function Tv(t,e,r){if(typeof t>"u")throw new Error("randomatic expects a string or number.");var n=!1;arguments.length===1&&(typeof t=="string"?e=t.length:Ev(t)&&(r={},e=t,t="*")),Qh(e)==="object"&&e.hasOwnProperty("chars")&&(r=e,t=r.chars,e=t.length,n=!0);var o=r||{},i="",s="";if(t.indexOf("?")!==-1&&(i+=o.chars),t.indexOf("a")!==-1&&(i+=dt.lower),t.indexOf("A")!==-1&&(i+=dt.upper),t.indexOf("0")!==-1&&(i+=dt.number),t.indexOf("!")!==-1&&(i+=dt.special),t.indexOf("*")!==-1&&(i+=dt.all),n&&(i+=t),o.exclude){var a=Qh(o.exclude)==="string"?o.exclude:o.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),i=i.replace(new RegExp("["+a+"]+","g"),""),o.exclude.indexOf("]")!==-1&&(i=i.replace(new RegExp("[\\]]+","g"),""))}for(;e--;)s+=i.charAt(parseInt(Zh()*i.length,10));return s}});var zd=C((wo,dn)=>{var Fv=200,md="__lodash_hash_undefined__",gd=9007199254740991,zu="[object Arguments]",Uv="[object Array]",yd="[object Boolean]",xd="[object Date]",Lv="[object Error]",Vu="[object Function]",bd="[object GeneratorFunction]",os="[object Map]",vd="[object Number]",Gu="[object Object]",od="[object Promise]",wd="[object RegExp]",is="[object Set]",Sd="[object String]",Ed="[object Symbol]",Lu="[object WeakMap]",Td="[object ArrayBuffer]",ss="[object DataView]",_d="[object Float32Array]",Cd="[object Float64Array]",Ad="[object Int8Array]",Id="[object Int16Array]",Md="[object Int32Array]",Pd="[object Uint8Array]",$d="[object Uint8ClampedArray]",Nd="[object Uint16Array]",Od="[object Uint32Array]",kv=/[\\^$.*+?()[\]{}|]/g,jv=/\w*$/,qv=/^\[object .+?Constructor\]$/,Wv=/^(?:0|[1-9]\d*)$/,ue={};ue[zu]=ue[Uv]=ue[Td]=ue[ss]=ue[yd]=ue[xd]=ue[_d]=ue[Cd]=ue[Ad]=ue[Id]=ue[Md]=ue[os]=ue[vd]=ue[Gu]=ue[wd]=ue[is]=ue[Sd]=ue[Ed]=ue[Pd]=ue[$d]=ue[Nd]=ue[Od]=!0;ue[Lv]=ue[Vu]=ue[Lu]=!1;var Hv=typeof global=="object"&&global&&global.Object===Object&&global,zv=typeof self=="object"&&self&&self.Object===Object&&self,At=Hv||zv||Function("return this")(),Dd=typeof wo=="object"&&wo&&!wo.nodeType&&wo,id=Dd&&typeof dn=="object"&&dn&&!dn.nodeType&&dn,Vv=id&&id.exports===Dd;function Gv(t,e){return t.set(e[0],e[1]),t}function Jv(t,e){return t.add(e),t}function Yv(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}function Qv(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function Bd(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function Zv(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function Xv(t,e){return t?.[e]}function Rd(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function sd(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function Ju(t,e){return function(r){return t(e(r))}}function ad(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Kv=Array.prototype,ew=Function.prototype,as=Object.prototype,Uu=At["__core-js_shared__"],ud=function(){var t=/[^.]+$/.exec(Uu&&Uu.keys&&Uu.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Fd=ew.toString,Gt=as.hasOwnProperty,us=as.toString,tw=RegExp("^"+Fd.call(Gt).replace(kv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cd=Vv?At.Buffer:void 0,ld=At.Symbol,fd=At.Uint8Array,rw=Ju(Object.getPrototypeOf,Object),nw=Object.create,ow=as.propertyIsEnumerable,iw=Kv.splice,pd=Object.getOwnPropertySymbols,sw=cd?cd.isBuffer:void 0,aw=Ju(Object.keys,Object),ku=yn(At,"DataView"),So=yn(At,"Map"),ju=yn(At,"Promise"),qu=yn(At,"Set"),Wu=yn(At,"WeakMap"),Eo=yn(Object,"create"),uw=_r(ku),cw=_r(So),lw=_r(ju),fw=_r(qu),pw=_r(Wu),hd=ld?ld.prototype:void 0,dd=hd?hd.valueOf:void 0;function Tr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function hw(){this.__data__=Eo?Eo(null):{}}function dw(t){return this.has(t)&&delete this.__data__[t]}function mw(t){var e=this.__data__;if(Eo){var r=e[t];return r===md?void 0:r}return Gt.call(e,t)?e[t]:void 0}function gw(t){var e=this.__data__;return Eo?e[t]!==void 0:Gt.call(e,t)}function yw(t,e){var r=this.__data__;return r[t]=Eo&&e===void 0?md:e,this}Tr.prototype.clear=hw;Tr.prototype.delete=dw;Tr.prototype.get=mw;Tr.prototype.has=gw;Tr.prototype.set=yw;function It(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function xw(){this.__data__=[]}function bw(t){var e=this.__data__,r=cs(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():iw.call(e,r,1),!0}function vw(t){var e=this.__data__,r=cs(e,t);return r<0?void 0:e[r][1]}function ww(t){return cs(this.__data__,t)>-1}function Sw(t,e){var r=this.__data__,n=cs(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}It.prototype.clear=xw;It.prototype.delete=bw;It.prototype.get=vw;It.prototype.has=ww;It.prototype.set=Sw;function mn(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ew(){this.__data__={hash:new Tr,map:new(So||It),string:new Tr}}function Tw(t){return ls(this,t).delete(t)}function _w(t){return ls(this,t).get(t)}function Cw(t){return ls(this,t).has(t)}function Aw(t,e){return ls(this,t).set(t,e),this}mn.prototype.clear=Ew;mn.prototype.delete=Tw;mn.prototype.get=_w;mn.prototype.has=Cw;mn.prototype.set=Aw;function gn(t){this.__data__=new It(t)}function Iw(){this.__data__=new It}function Mw(t){return this.__data__.delete(t)}function Pw(t){return this.__data__.get(t)}function $w(t){return this.__data__.has(t)}function Nw(t,e){var r=this.__data__;if(r instanceof It){var n=r.__data__;if(!So||n.length<Fv-1)return n.push([t,e]),this;r=this.__data__=new mn(n)}return r.set(t,e),this}gn.prototype.clear=Iw;gn.prototype.delete=Mw;gn.prototype.get=Pw;gn.prototype.has=$w;gn.prototype.set=Nw;function Ow(t,e){var r=Qu(t)||n1(t)?Zv(t.length,String):[],n=r.length,o=!!n;for(var i in t)(e||Gt.call(t,i))&&!(o&&(i=="length"||Kw(i,n)))&&r.push(i);return r}function Ud(t,e,r){var n=t[e];(!(Gt.call(t,e)&&qd(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}function cs(t,e){for(var r=t.length;r--;)if(qd(t[r][0],e))return r;return-1}function Dw(t,e){return t&&Ld(e,Zu(e),t)}function Hu(t,e,r,n,o,i,s){var a;if(n&&(a=i?n(t,o,i,s):n(t)),a!==void 0)return a;if(!fs(t))return t;var u=Qu(t);if(u){if(a=Qw(t),!e)return Gw(t,a)}else{var c=Er(t),l=c==Vu||c==bd;if(i1(t))return kw(t,e);if(c==Gu||c==zu||l&&!i){if(Rd(t))return i?t:{};if(a=Zw(l?{}:t),!e)return Jw(t,Dw(a,t))}else{if(!ue[c])return i?t:{};a=Xw(t,c,Hu,e)}}s||(s=new gn);var f=s.get(t);if(f)return f;if(s.set(t,a),!u)var h=r?Yw(t):Zu(t);return Yv(h||t,function(y,w){h&&(w=y,y=t[w]),Ud(a,w,Hu(y,e,r,n,w,t,s))}),a}function Bw(t){return fs(t)?nw(t):{}}function Rw(t,e,r){var n=e(t);return Qu(t)?n:Qv(n,r(t))}function Fw(t){return us.call(t)}function Uw(t){if(!fs(t)||t1(t))return!1;var e=Hd(t)||Rd(t)?tw:qv;return e.test(_r(t))}function Lw(t){if(!jd(t))return aw(t);var e=[];for(var r in Object(t))Gt.call(t,r)&&r!="constructor"&&e.push(r);return e}function kw(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function Yu(t){var e=new t.constructor(t.byteLength);return new fd(e).set(new fd(t)),e}function jw(t,e){var r=e?Yu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function qw(t,e,r){var n=e?r(sd(t),!0):sd(t);return Bd(n,Gv,new t.constructor)}function Ww(t){var e=new t.constructor(t.source,jv.exec(t));return e.lastIndex=t.lastIndex,e}function Hw(t,e,r){var n=e?r(ad(t),!0):ad(t);return Bd(n,Jv,new t.constructor)}function zw(t){return dd?Object(dd.call(t)):{}}function Vw(t,e){var r=e?Yu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Gw(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function Ld(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var s=e[o],a=n?n(r[s],t[s],s,r,t):void 0;Ud(r,s,a===void 0?t[s]:a)}return r}function Jw(t,e){return Ld(t,kd(t),e)}function Yw(t){return Rw(t,Zu,kd)}function ls(t,e){var r=t.__data__;return e1(e)?r[typeof e=="string"?"string":"hash"]:r.map}function yn(t,e){var r=Xv(t,e);return Uw(r)?r:void 0}var kd=pd?Ju(pd,Object):u1,Er=Fw;(ku&&Er(new ku(new ArrayBuffer(1)))!=ss||So&&Er(new So)!=os||ju&&Er(ju.resolve())!=od||qu&&Er(new qu)!=is||Wu&&Er(new Wu)!=Lu)&&(Er=function(t){var e=us.call(t),r=e==Gu?t.constructor:void 0,n=r?_r(r):void 0;if(n)switch(n){case uw:return ss;case cw:return os;case lw:return od;case fw:return is;case pw:return Lu}return e});function Qw(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&Gt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function Zw(t){return typeof t.constructor=="function"&&!jd(t)?Bw(rw(t)):{}}function Xw(t,e,r,n){var o=t.constructor;switch(e){case Td:return Yu(t);case yd:case xd:return new o(+t);case ss:return jw(t,n);case _d:case Cd:case Ad:case Id:case Md:case Pd:case $d:case Nd:case Od:return Vw(t,n);case os:return qw(t,n,r);case vd:case Sd:return new o(t);case wd:return Ww(t);case is:return Hw(t,n,r);case Ed:return zw(t)}}function Kw(t,e){return e=e??gd,!!e&&(typeof t=="number"||Wv.test(t))&&t>-1&&t%1==0&&t<e}function e1(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function t1(t){return!!ud&&ud in t}function jd(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||as;return t===r}function _r(t){if(t!=null){try{return Fd.call(t)}catch{}try{return t+""}catch{}}return""}function r1(t){return Hu(t,!0,!0)}function qd(t,e){return t===e||t!==t&&e!==e}function n1(t){return o1(t)&&Gt.call(t,"callee")&&(!ow.call(t,"callee")||us.call(t)==zu)}var Qu=Array.isArray;function Wd(t){return t!=null&&s1(t.length)&&!Hd(t)}function o1(t){return a1(t)&&Wd(t)}var i1=sw||c1;function Hd(t){var e=fs(t)?us.call(t):"";return e==Vu||e==bd}function s1(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=gd}function fs(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function a1(t){return!!t&&typeof t=="object"}function Zu(t){return Wd(t)?Ow(t):Lw(t)}function u1(){return[]}function c1(){return!1}dn.exports=r1});var Gd=C((MP,Vd)=>{"use strict";Vd.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,n=e.cmp&&function(i){return function(s){return function(a,u){var c={key:a,value:s[a]},l={key:u,value:s[u]};return i(c,l)}}}(e.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,u;if(Array.isArray(s)){for(u="[",a=0;a<s.length;a++)a&&(u+=","),u+=i(s[a])||"null";return u+"]"}if(s===null)return"null";if(o.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=o.push(s)-1,l=Object.keys(s).sort(n&&n(s));for(u="",a=0;a<l.length;a++){var f=l[a],h=i(s[f]);h&&(u&&(u+=","),u+=JSON.stringify(f)+":"+h)}return o.splice(c,1),"{"+u+"}"}}(t)}});var Kd=C((PP,Xd)=>{function l1(t,e){return JSON.stringify(t,Jd,e)}function f1(t){return JSON.parse(t,Yd)}function Jd(t,e){return Qd(e)&&Xu(e.data)&&(e.data.length>0?e.data="base64:"+Buffer.from(e.data).toString("base64"):e.data=""),e}function Yd(t,e){if(Qd(e)){if(Xu(e.data))return Buffer.from(e.data);if(Zd(e.data))return e.data.startsWith("base64:")?Buffer.from(e.data.slice(7),"base64"):Buffer.from(e.data)}return e}function Qd(t){return p1(t)&&t.type==="Buffer"&&(Xu(t.data)||Zd(t.data))}function Xu(t){return Array.isArray(t)}function Zd(t){return typeof t=="string"}function p1(t){return typeof t=="object"&&t!==null}Xd.exports={stringify:l1,parse:f1,replacer:Jd,reviver:Yd}});var _m=C(()=>{});var Bm=C(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.getFirstTrueOrFalse=be.timeoutAndContinue=be.timeoutWrap=be.map=be.rejectedPromise=be.resolvedPromise=be.defer=be.Deferred=void 0;var vs=class{constructor(){this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}};be.Deferred=vs;be.defer=()=>new vs;be.resolvedPromise=t=>Promise.resolve(t);be.rejectedPromise=t=>Promise.reject(t);be.map=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n};be.timeoutWrap=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)});be.timeoutAndContinue=async(t,e=6e4)=>be.timeoutWrap(t,e,!1);be.getFirstTrueOrFalse=async t=>{let e=be.defer();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise}});var Lm=C((_c,Cc)=>{(function(t,e){typeof _c=="object"&&typeof Cc<"u"?Cc.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.SweetScroll=e())})(_c,function(){"use strict";var t=function(){return t=Object.assign||function(p){for(var d,g=1,b=arguments.length;g<b;g++){d=arguments[g];for(var L in d)Object.prototype.hasOwnProperty.call(d,L)&&(p[L]=d[L])}return p},t.apply(this,arguments)},e=!!(typeof window<"u"&&window.document&&window.document.createElement),r=e?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=function(){var m=!1;if(!e)return m;try{var p=window,d=Object.defineProperty({},"passive",{get:function(){m=!0}});p.addEventListener("test",null,d),p.removeEventListener("test",null,d)}catch{}return m}(),o=function(m){return typeof m=="string"},i=function(m){return typeof m=="function"},s=function(m){return Array.isArray(m)},a=function(m){return!s(m)&&m-parseFloat(m)+1>=0},u=function(m,p){return m&&m.hasOwnProperty(p)},c=e?window.requestAnimationFrame.bind(window):null,l=e?window.cancelAnimationFrame.bind(window):null,f=Math.cos,h=Math.sin,y=Math.pow,w=Math.sqrt,A=Math.PI,O={linear:function(m){return m},easeInQuad:function(m,p,d,g,b){return g*(p/=b)*p+d},easeOutQuad:function(m,p,d,g,b){return-g*(p/=b)*(p-2)+d},easeInOutQuad:function(m,p,d,g,b){return(p/=b/2)<1?g/2*p*p+d:-g/2*(--p*(p-2)-1)+d},easeInCubic:function(m,p,d,g,b){return g*(p/=b)*p*p+d},easeOutCubic:function(m,p,d,g,b){return g*((p=p/b-1)*p*p+1)+d},easeInOutCubic:function(m,p,d,g,b){return(p/=b/2)<1?g/2*p*p*p+d:g/2*((p-=2)*p*p+2)+d},easeInQuart:function(m,p,d,g,b){return g*(p/=b)*p*p*p+d},easeOutQuart:function(m,p,d,g,b){return-g*((p=p/b-1)*p*p*p-1)+d},easeInOutQuart:function(m,p,d,g,b){return(p/=b/2)<1?g/2*p*p*p*p+d:-g/2*((p-=2)*p*p*p-2)+d},easeInQuint:function(m,p,d,g,b){return g*(p/=b)*p*p*p*p+d},easeOutQuint:function(m,p,d,g,b){return g*((p=p/b-1)*p*p*p*p+1)+d},easeInOutQuint:function(m,p,d,g,b){return(p/=b/2)<1?g/2*p*p*p*p*p+d:g/2*((p-=2)*p*p*p*p+2)+d},easeInSine:function(m,p,d,g,b){return-g*f(p/b*(A/2))+g+d},easeOutSine:function(m,p,d,g,b){return g*h(p/b*(A/2))+d},easeInOutSine:function(m,p,d,g,b){return-g/2*(f(A*p/b)-1)+d},easeInExpo:function(m,p,d,g,b){return p===0?d:g*y(2,10*(p/b-1))+d},easeOutExpo:function(m,p,d,g,b){return p===b?d+g:g*(-y(2,-10*p/b)+1)+d},easeInOutExpo:function(m,p,d,g,b){return p===0?d:p===b?d+g:(p/=b/2)<1?g/2*y(2,10*(p-1))+d:g/2*(-y(2,-10*--p)+2)+d},easeInCirc:function(m,p,d,g,b){return-g*(w(1-(p/=b)*p)-1)+d},easeOutCirc:function(m,p,d,g,b){return g*w(1-(p=p/b-1)*p)+d},easeInOutCirc:function(m,p,d,g,b){return(p/=b/2)<1?-g/2*(w(1-p*p)-1)+d:g/2*(w(1-(p-=2)*p)+1)+d}},_=function(m){return Array.prototype.slice.call(m?document.querySelectorAll(m):[])},I=function(m){return _(m).shift()||null},D=function(m){return m instanceof Element},N=function(m){return m===window},q=function(m){return m===document.documentElement||m===document.body},U=function(m,p){if(D(p))return m===p;for(var d=_(p),g=d.length;--g>=0&&d[g]!==m;);return g>-1},Y=function(m){return Math.max(m.scrollHeight,m.clientHeight,m.offsetHeight)},F=function(m){return Math.max(m.scrollWidth,m.clientWidth,m.offsetWidth)},B=function(m){return{width:F(m),height:Y(m)}},re=function(m){var p=N(m)||q(m);return{viewport:{width:p?Math.min(window.innerWidth,document.documentElement.clientWidth):m.clientWidth,height:p?window.innerHeight:m.clientHeight},size:p?{width:Math.max(F(document.body),F(document.documentElement)),height:Math.max(Y(document.body),Y(document.documentElement))}:B(m)}},we={y:"scrollTop",x:"scrollLeft"},$={y:"pageYOffset",x:"pageXOffset"},S=function(m,p){return N(m)?m[$[p]]:m[we[p]]},E=function(m,p,d){if(N(m)){var g=d==="y";m.scrollTo(g?m.pageXOffset:p,g?p:m.pageYOffset)}else m[we[d]]=p},P=function(m,p){var d=m.getBoundingClientRect();if(d.width||d.height){var g={top:0,left:0},b=void 0;if(N(p)||q(p))b=document.documentElement,g.top=window[$.y],g.left=window[$.x];else{b=p;var L=b.getBoundingClientRect();g.top=L.top*-1+b[we.y],g.left=L.left*-1+b[we.x]}return{top:d.top+g.top-b.clientTop,left:d.left+g.left-b.clientLeft}}return d},T=function(){return e?"onwheel"in document?"wheel":"mousewheel":"wheel"}(),j=function(m){return m==="wheel"?T:m},v=function(m,p,d,g,b){d.split(" ").forEach(function(L){m[p](j(L),g,n?{passive:b}:!1)})},M=function(m,p,d,g){return v(m,"addEventListener",p,d,g)},R=function(m,p,d,g){return v(m,"removeEventListener",p,d,g)},H=/^(\+|-)=(\d+(?:\.\d+)?)$/,z=function(m,p){var d={top:0,left:0,relative:!1};if(u(m,"top")||u(m,"left"))d=t({},d,m);else if(s(m))if(m.length>1)d.top=m[0],d.left=m[1];else if(m.length===1)d.top=p?m[0]:0,d.left=p?0:m[0];else return null;else if(a(m))p?d.top=m:d.left=m;else if(o(m)){var g=m.trim().match(H);if(!g)return null;var b=g[1],L=parseInt(g[2],10);b==="+"?(d.top=p?L:0,d.left=p?0:L):(d.top=p?-L:0,d.left=p?0:-L),d.relative=!0}else return null;return d},K={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,easing:"easeOutQuint",offset:0,vertical:!0,horizontal:!1,cancellable:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,before:null,after:null,cancel:null,complete:null,step:null},ne="click",pe="wheel touchstart touchmove",Se=function(){function m(p,d){var g=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(L){var oe=g,ie=oe.$el,ae=oe.ctx;if(ae.start||(ae.start=L),!ae.progress||!ie){g.stop();return}var gt=ae.opts,He=ae.pos,rt=ae.start,Br=ae.startPos,Un=ae.easing,yt=gt.duration,Ft={top:"y",left:"x"},ut=L-rt,Ie=Math.min(1,Math.max(ut/yt,0));Object.keys(He).forEach(function(Rr){var Ho=He[Rr],Ln=Br[Rr],kn=Ho-Ln;if(kn!==0){var zo=Un(Ie,yt*Ie,0,1,yt);E(ie,Math.round(Ln+kn*zo),Ft[Rr])}}),ut<=yt?(g.hook(gt,"step",Ie),ae.id=m.raf(g.loop)):g.stop(!0)},this.handleClick=function(L){for(var oe=g.opts,ie=L.target;ie&&ie!==document;ie=ie.parentNode)if(U(ie,oe.trigger)){var ae=JSON.parse(ie.getAttribute("data-scroll-options")||"{}"),gt=ie.getAttribute("data-scroll"),He=gt||ie.getAttribute("href"),rt=t({},oe,ae),Br=rt.preventDefault,Un=rt.stopPropagation,yt=rt.vertical,Ft=rt.horizontal;Br&&L.preventDefault(),Un&&L.stopPropagation(),g.ctx.$trigger=ie,Ft&&yt?g.to(He,rt):yt?g.toTop(He,rt):Ft&&g.toLeft(He,rt);break}},this.handleStop=function(L){var oe=g.ctx,ie=oe.opts;ie&&ie.cancellable?(oe.cancel=!0,g.stop()):L.preventDefault()},this.opts=t({},K,p||{});var b=null;e&&(typeof d=="string"?b=I(d):d!=null?b=d:b=window),this.$el=b,b&&this.bind(!0,!1)}return m.create=function(p,d){return new m(p,d)},m.prototype.to=function(p,d){if(e){var g=this,b=g.$el,L=g.ctx,oe=g.opts,ie=L.$trigger,ae=t({},oe,d||{}),gt=ae.offset,He=ae.vertical,rt=ae.horizontal,Br=D(ae.header)?ae.header:I(ae.header),Un=/^#/,yt=o(p)&&Un.test(p)?p:null;if(L.opts=ae,L.cancel=!1,L.hash=yt,this.stop(),!!b){var Ft=z(gt,He),ut=z(p,He),Ie={top:0,left:0};if(ut)if(ut.relative){var Rr=S(b,He?"y":"x");Ie.top=He?Rr+ut.top:ut.top,Ie.left=He?ut.left:Rr+ut.left}else Ie=ut;else if(o(p)&&p!=="#"){var Ho=I(p);if(!Ho)return;Ie=P(Ho,b)}Ft&&(Ie.top+=Ft.top,Ie.left+=Ft.left),Br&&(Ie.top=Math.max(0,Ie.top-B(Br).height));var Ln=re(b),kn=Ln.viewport,zo=Ln.size;if(Ie.top=He?Math.max(0,Math.min(zo.height-kn.height,Ie.top)):S(b,"y"),Ie.left=rt?Math.max(0,Math.min(zo.width-kn.width,Ie.left)):S(b,"x"),this.hook(ae,"before",Ie,ie)===!1){L.opts=null;return}L.pos=Ie,this.start(ae),this.bind(!1,!0)}}},m.prototype.toTop=function(p,d){this.to(p,t({},d||{},{vertical:!0,horizontal:!1}))},m.prototype.toLeft=function(p,d){this.to(p,t({},d||{},{vertical:!1,horizontal:!0}))},m.prototype.toElement=function(p,d){var g=this.$el;!e||!g||this.to(P(p,g),d||{})},m.prototype.stop=function(p){p===void 0&&(p=!1);var d=this,g=d.$el,b=d.ctx,L=b.pos;!g||!b.progress||(m.caf(b.id),b.progress=!1,b.start=0,b.id=0,p&&L&&(E(g,L.left,"x"),E(g,L.top,"y")),this.complete())},m.prototype.update=function(p){if(this.$el){var d=t({},this.opts,p);this.stop(),this.unbind(!0,!0),this.opts=d,this.bind(!0,!1)}},m.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},m.prototype.onBefore=function(p,d){return!0},m.prototype.onStep=function(p){},m.prototype.onAfter=function(p,d){},m.prototype.onCancel=function(){},m.prototype.onComplete=function(p){},m.prototype.start=function(p){var d=this.ctx;d.opts=p,d.progress=!0,d.easing=i(p.easing)?p.easing:O[p.easing];var g=this.$el,b={top:S(g,"y"),left:S(g,"x")};d.startPos=b,d.id=m.raf(this.loop)},m.prototype.complete=function(){var p=this,d=p.$el,g=p.ctx,b=g.hash,L=g.cancel,oe=g.opts,ie=g.pos,ae=g.$trigger;if(!(!d||!oe)){if(b!=null&&b!==window.location.hash){var gt=oe.updateURL;e&&r&&gt!==!1&&window.history[gt==="replace"?"replaceState":"pushState"](null,"",b)}this.unbind(!1,!0),g.opts=null,g.$trigger=null,L?this.hook(oe,"cancel"):this.hook(oe,"after",ie,ae),this.hook(oe,"complete",L)}},m.prototype.hook=function(p,d){for(var g=[],b=2;b<arguments.length;b++)g[b-2]=arguments[b];var L,oe=p[d],ie,ae;return i(oe)&&(ie=oe.apply(this,g.concat([this]))),ae=(L=this)["on"+(d[0].toUpperCase()+d.slice(1))].apply(L,g),ie!==void 0?ie:ae},m.prototype.bind=function(p,d){var g=this,b=g.$el,L=g.ctx.opts;b&&(p&&M(b,ne,this.handleClick,!1),d&&M(b,pe,this.handleStop,L?L.cancellable:!0))},m.prototype.unbind=function(p,d){var g=this,b=g.$el,L=g.ctx.opts;b&&(p&&R(b,ne,this.handleClick,!1),d&&R(b,pe,this.handleStop,L?L.cancellable:!0))},m.raf=c,m.caf=l,m}();return Se})});var rg=C((YR,tg)=>{tg.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Zt=C(Pr=>{var Uc,dE=[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];Pr.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};Pr.getSymbolTotalCodewords=function(e){return dE[e]};Pr.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};Pr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Uc=e};Pr.isKanjiModeEnabled=function(){return typeof Uc<"u"};Pr.toSJIS=function(e){return Uc(e)}});var Bs=C(Ke=>{Ke.L={bit:1};Ke.M={bit:0};Ke.Q={bit:3};Ke.H={bit:2};function mE(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return Ke.L;case"m":case"medium":return Ke.M;case"q":case"quartile":return Ke.Q;case"h":case"high":return Ke.H;default:throw new Error("Unknown EC Level: "+t)}}Ke.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};Ke.from=function(e,r){if(Ke.isValid(e))return e;try{return mE(e)}catch{return r}}});var ig=C((XR,og)=>{function ng(){this.buffer=[],this.length=0}ng.prototype={get:function(t){let e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};og.exports=ng});var ag=C((KR,sg)=>{function Bo(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Bo.prototype.set=function(t,e,r,n){let o=t*this.size+e;this.data[o]=r,n&&(this.reservedBit[o]=!0)};Bo.prototype.get=function(t,e){return this.data[t*this.size+e]};Bo.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};Bo.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};sg.exports=Bo});var ug=C(Rs=>{var gE=Zt().getSymbolSize;Rs.getRowColCoords=function(e){if(e===1)return[];let r=Math.floor(e/7)+2,n=gE(e),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()};Rs.getPositions=function(e){let r=[],n=Rs.getRowColCoords(e),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 fg=C(lg=>{var yE=Zt().getSymbolSize,cg=7;lg.getPositions=function(e){let r=yE(e);return[[0,0],[r-cg,0],[0,r-cg]]}});var pg=C(ce=>{ce.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var $r={N1:3,N2:3,N3:40,N4:10};ce.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};ce.from=function(e){return ce.isValid(e)?parseInt(e,10):void 0};ce.getPenaltyN1=function(e){let r=e.size,n=0,o=0,i=0,s=null,a=null;for(let u=0;u<r;u++){o=i=0,s=a=null;for(let c=0;c<r;c++){let l=e.get(u,c);l===s?o++:(o>=5&&(n+=$r.N1+(o-5)),s=l,o=1),l=e.get(c,u),l===a?i++:(i>=5&&(n+=$r.N1+(i-5)),a=l,i=1)}o>=5&&(n+=$r.N1+(o-5)),i>=5&&(n+=$r.N1+(i-5))}return n};ce.getPenaltyN2=function(e){let r=e.size,n=0;for(let o=0;o<r-1;o++)for(let i=0;i<r-1;i++){let s=e.get(o,i)+e.get(o,i+1)+e.get(o+1,i)+e.get(o+1,i+1);(s===4||s===0)&&n++}return n*$r.N2};ce.getPenaltyN3=function(e){let r=e.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|e.get(s,a),a>=10&&(o===1488||o===93)&&n++,i=i<<1&2047|e.get(a,s),a>=10&&(i===1488||i===93)&&n++}return n*$r.N3};ce.getPenaltyN4=function(e){let r=0,n=e.data.length;for(let i=0;i<n;i++)r+=e.data[i];return Math.abs(Math.ceil(r*100/n/5)-10)*$r.N4};function xE(t,e,r){switch(t){case ce.Patterns.PATTERN000:return(e+r)%2===0;case ce.Patterns.PATTERN001:return e%2===0;case ce.Patterns.PATTERN010:return r%3===0;case ce.Patterns.PATTERN011:return(e+r)%3===0;case ce.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2===0;case ce.Patterns.PATTERN101:return e*r%2+e*r%3===0;case ce.Patterns.PATTERN110:return(e*r%2+e*r%3)%2===0;case ce.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}ce.applyMask=function(e,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,xE(e,i,o))};ce.getBestMask=function(e,r){let n=Object.keys(ce.Patterns).length,o=0,i=1/0;for(let s=0;s<n;s++){r(s),ce.applyMask(s,e);let a=ce.getPenaltyN1(e)+ce.getPenaltyN2(e)+ce.getPenaltyN3(e)+ce.getPenaltyN4(e);ce.applyMask(s,e),a<i&&(i=a,o=s)}return o}});var kc=C(Lc=>{var Xt=Bs(),Fs=[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],Us=[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];Lc.getBlocksCount=function(e,r){switch(r){case Xt.L:return Fs[(e-1)*4+0];case Xt.M:return Fs[(e-1)*4+1];case Xt.Q:return Fs[(e-1)*4+2];case Xt.H:return Fs[(e-1)*4+3];default:return}};Lc.getTotalCodewordsCount=function(e,r){switch(r){case Xt.L:return Us[(e-1)*4+0];case Xt.M:return Us[(e-1)*4+1];case Xt.Q:return Us[(e-1)*4+2];case Xt.H:return Us[(e-1)*4+3];default:return}}});var hg=C(ks=>{var Ro=new Uint8Array(512),Ls=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)Ro[r]=e,Ls[e]=r,e<<=1,e&256&&(e^=285);for(let r=255;r<512;r++)Ro[r]=Ro[r-255]})();ks.log=function(e){if(e<1)throw new Error("log("+e+")");return Ls[e]};ks.exp=function(e){return Ro[e]};ks.mul=function(e,r){return e===0||r===0?0:Ro[Ls[e]+Ls[r]]}});var dg=C(Fo=>{var jc=hg();Fo.mul=function(e,r){let n=new Uint8Array(e.length+r.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<r.length;i++)n[o+i]^=jc.mul(e[o],r[i]);return n};Fo.mod=function(e,r){let n=new Uint8Array(e);for(;n.length-r.length>=0;){let o=n[0];for(let s=0;s<r.length;s++)n[s]^=jc.mul(r[s],o);let i=0;for(;i<n.length&&n[i]===0;)i++;n=n.slice(i)}return n};Fo.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let n=0;n<e;n++)r=Fo.mul(r,new Uint8Array([1,jc.exp(n)]));return r}});var yg=C((sF,gg)=>{var mg=dg();function qc(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}qc.prototype.initialize=function(e){this.degree=e,this.genPoly=mg.generateECPolynomial(this.degree)};qc.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(e.length+this.degree);r.set(e);let n=mg.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};gg.exports=qc});var Wc=C(xg=>{xg.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var Hc=C(Nt=>{var bg="[0-9]+",bE="[A-Z $%*+\\-./:]+",Uo="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Uo=Uo.replace(/u/g,"\\u");var vE="(?:(?![A-Z0-9 $%*+\\-./:]|"+Uo+`)(?:.|[\r
6
- ]))+`;Nt.KANJI=new RegExp(Uo,"g");Nt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Nt.BYTE=new RegExp(vE,"g");Nt.NUMERIC=new RegExp(bg,"g");Nt.ALPHANUMERIC=new RegExp(bE,"g");var wE=new RegExp("^"+Uo+"$"),SE=new RegExp("^"+bg+"$"),EE=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Nt.testKanji=function(e){return wE.test(e)};Nt.testNumeric=function(e){return SE.test(e)};Nt.testAlphanumeric=function(e){return EE.test(e)}});var Kt=C(ve=>{var TE=Wc(),zc=Hc();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(e,r){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!TE.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?e.ccBits[0]:r<27?e.ccBits[1]:e.ccBits[2]};ve.getBestModeForData=function(e){return zc.testNumeric(e)?ve.NUMERIC:zc.testAlphanumeric(e)?ve.ALPHANUMERIC:zc.testKanji(e)?ve.KANJI:ve.BYTE};ve.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};ve.isValid=function(e){return e&&e.bit&&e.ccBits};function _E(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.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: "+t)}}ve.from=function(e,r){if(ve.isValid(e))return e;try{return _E(e)}catch{return r}}});var Tg=C(Nr=>{var js=Zt(),CE=kc(),vg=Bs(),er=Kt(),Vc=Wc(),Sg=7973,wg=js.getBCHDigit(Sg);function AE(t,e,r){for(let n=1;n<=40;n++)if(e<=Nr.getCapacity(n,r,t))return n}function Eg(t,e){return er.getCharCountIndicator(t,e)+4}function IE(t,e){let r=0;return t.forEach(function(n){let o=Eg(n.mode,e);r+=o+n.getBitsLength()}),r}function ME(t,e){for(let r=1;r<=40;r++)if(IE(t,r)<=Nr.getCapacity(r,e,er.MIXED))return r}Nr.from=function(e,r){return Vc.isValid(e)?parseInt(e,10):r};Nr.getCapacity=function(e,r,n){if(!Vc.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=er.BYTE);let o=js.getSymbolTotalCodewords(e),i=CE.getTotalCodewordsCount(e,r),s=(o-i)*8;if(n===er.MIXED)return s;let a=s-Eg(n,e);switch(n){case er.NUMERIC:return Math.floor(a/10*3);case er.ALPHANUMERIC:return Math.floor(a/11*2);case er.KANJI:return Math.floor(a/13);case er.BYTE:default:return Math.floor(a/8)}};Nr.getBestVersionForData=function(e,r){let n,o=vg.from(r,vg.M);if(Array.isArray(e)){if(e.length>1)return ME(e,o);if(e.length===0)return 1;n=e[0]}else n=e;return AE(n.mode,n.getLength(),o)};Nr.getEncodedBits=function(e){if(!Vc.isValid(e)||e<7)throw new Error("Invalid QR Code version");let r=e<<12;for(;js.getBCHDigit(r)-wg>=0;)r^=Sg<<js.getBCHDigit(r)-wg;return e<<12|r}});var Ig=C(Ag=>{var Gc=Zt(),Cg=1335,PE=21522,_g=Gc.getBCHDigit(Cg);Ag.getEncodedBits=function(e,r){let n=e.bit<<3|r,o=n<<10;for(;Gc.getBCHDigit(o)-_g>=0;)o^=Cg<<Gc.getBCHDigit(o)-_g;return(n<<10|o)^PE}});var Pg=C((pF,Mg)=>{var $E=Kt();function Pn(t){this.mode=$E.NUMERIC,this.data=t.toString()}Pn.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};Pn.prototype.getLength=function(){return this.data.length};Pn.prototype.getBitsLength=function(){return Pn.getBitsLength(this.data.length)};Pn.prototype.write=function(e){let r,n,o;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),o=parseInt(n,10),e.put(o,10);let i=this.data.length-r;i>0&&(n=this.data.substr(r),o=parseInt(n,10),e.put(o,i*3+1))};Mg.exports=Pn});var Ng=C((hF,$g)=>{var NE=Kt(),Jc=["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 $n(t){this.mode=NE.ALPHANUMERIC,this.data=t}$n.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};$n.prototype.getLength=function(){return this.data.length};$n.prototype.getBitsLength=function(){return $n.getBitsLength(this.data.length)};$n.prototype.write=function(e){let r;for(r=0;r+2<=this.data.length;r+=2){let n=Jc.indexOf(this.data[r])*45;n+=Jc.indexOf(this.data[r+1]),e.put(n,11)}this.data.length%2&&e.put(Jc.indexOf(this.data[r]),6)};$g.exports=$n});var Dg=C((dF,Og)=>{"use strict";Og.exports=function(e){for(var r=[],n=e.length,o=0;o<n;o++){var i=e.charCodeAt(o);if(i>=55296&&i<=56319&&n>o+1){var s=e.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer}});var Rg=C((mF,Bg)=>{var OE=Dg(),DE=Kt();function Nn(t){this.mode=DE.BYTE,typeof t=="string"&&(t=OE(t)),this.data=new Uint8Array(t)}Nn.getBitsLength=function(e){return e*8};Nn.prototype.getLength=function(){return this.data.length};Nn.prototype.getBitsLength=function(){return Nn.getBitsLength(this.data.length)};Nn.prototype.write=function(t){for(let e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};Bg.exports=Nn});var Ug=C((gF,Fg)=>{var BE=Kt(),RE=Zt();function On(t){this.mode=BE.KANJI,this.data=t}On.getBitsLength=function(e){return e*13};On.prototype.getLength=function(){return this.data.length};On.prototype.getBitsLength=function(){return On.getBitsLength(this.data.length)};On.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=RE.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
7
- Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),t.put(r,13)}};Fg.exports=On});var Lg=C((yF,Yc)=>{"use strict";var Lo={single_source_shortest_paths:function(t,e,r){var n={},o={};o[e]=0;var i=Lo.PriorityQueue.make();i.push(e,0);for(var s,a,u,c,l,f,h,y,w;!i.empty();){s=i.pop(),a=s.value,c=s.cost,l=t[a]||{};for(u in l)l.hasOwnProperty(u)&&(f=l[u],h=c+f,y=o[u],w=typeof o[u]>"u",(w||y>h)&&(o[u]=h,i.push(u,h),n[u]=a))}if(typeof r<"u"&&typeof o[r]>"u"){var A=["Could not find a path from ",e," to ",r,"."].join("");throw new Error(A)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e,o;n;)r.push(n),o=t[n],n=t[n];return r.reverse(),r},find_path:function(t,e,r){var n=Lo.single_source_shortest_paths(t,e,r);return Lo.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var e=Lo.PriorityQueue,r={},n;t=t||{};for(n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r.queue=[],r.sorter=t.sorter||e.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Yc<"u"&&(Yc.exports=Lo)});var Gg=C(Dn=>{var ee=Kt(),qg=Pg(),Wg=Ng(),Hg=Rg(),zg=Ug(),ko=Hc(),qs=Zt(),FE=Lg();function kg(t){return unescape(encodeURIComponent(t)).length}function jo(t,e,r){let n=[],o;for(;(o=t.exec(r))!==null;)n.push({data:o[0],index:o.index,mode:e,length:o[0].length});return n}function Vg(t){let e=jo(ko.NUMERIC,ee.NUMERIC,t),r=jo(ko.ALPHANUMERIC,ee.ALPHANUMERIC,t),n,o;return qs.isKanjiModeEnabled()?(n=jo(ko.BYTE,ee.BYTE,t),o=jo(ko.KANJI,ee.KANJI,t)):(n=jo(ko.BYTE_KANJI,ee.BYTE,t),o=[]),e.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 Qc(t,e){switch(e){case ee.NUMERIC:return qg.getBitsLength(t);case ee.ALPHANUMERIC:return Wg.getBitsLength(t);case ee.KANJI:return zg.getBitsLength(t);case ee.BYTE:return Hg.getBitsLength(t)}}function UE(t){return t.reduce(function(e,r){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===r.mode?(e[e.length-1].data+=r.data,e):(e.push(r),e)},[])}function LE(t){let e=[];for(let r=0;r<t.length;r++){let n=t[r];switch(n.mode){case ee.NUMERIC:e.push([n,{data:n.data,mode:ee.ALPHANUMERIC,length:n.length},{data:n.data,mode:ee.BYTE,length:n.length}]);break;case ee.ALPHANUMERIC:e.push([n,{data:n.data,mode:ee.BYTE,length:n.length}]);break;case ee.KANJI:e.push([n,{data:n.data,mode:ee.BYTE,length:kg(n.data)}]);break;case ee.BYTE:e.push([{data:n.data,mode:ee.BYTE,length:kg(n.data)}])}}return e}function kE(t,e){let r={},n={start:{}},o=["start"];for(let i=0;i<t.length;i++){let s=t[i],a=[];for(let u=0;u<s.length;u++){let c=s[u],l=""+i+u;a.push(l),r[l]={node:c,lastCount:0},n[l]={};for(let f=0;f<o.length;f++){let h=o[f];r[h]&&r[h].node.mode===c.mode?(n[h][l]=Qc(r[h].lastCount+c.length,c.mode)-Qc(r[h].lastCount,c.mode),r[h].lastCount+=c.length):(r[h]&&(r[h].lastCount=c.length),n[h][l]=Qc(c.length,c.mode)+4+ee.getCharCountIndicator(c.mode,e))}}o=a}for(let i=0;i<o.length;i++)n[o[i]].end=0;return{map:n,table:r}}function jg(t,e){let r,n=ee.getBestModeForData(t);if(r=ee.from(e,n),r!==ee.BYTE&&r.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+ee.toString(r)+`.
8
- Suggested mode is: `+ee.toString(n));switch(r===ee.KANJI&&!qs.isKanjiModeEnabled()&&(r=ee.BYTE),r){case ee.NUMERIC:return new qg(t);case ee.ALPHANUMERIC:return new Wg(t);case ee.KANJI:return new zg(t);case ee.BYTE:return new Hg(t)}}Dn.fromArray=function(e){return e.reduce(function(r,n){return typeof n=="string"?r.push(jg(n,null)):n.data&&r.push(jg(n.data,n.mode)),r},[])};Dn.fromString=function(e,r){let n=Vg(e,qs.isKanjiModeEnabled()),o=LE(n),i=kE(o,r),s=FE.find_path(i.map,"start","end"),a=[];for(let u=1;u<s.length-1;u++)a.push(i.table[s[u]].node);return Dn.fromArray(UE(a))};Dn.rawSplit=function(e){return Dn.fromArray(Vg(e,qs.isKanjiModeEnabled()))}});var Yg=C(Jg=>{var Hs=Zt(),Zc=Bs(),jE=ig(),qE=ag(),WE=ug(),HE=fg(),el=pg(),tl=kc(),zE=yg(),Ws=Tg(),VE=Ig(),GE=Kt(),Xc=Gg();function JE(t,e){let r=t.size,n=HE.getPositions(e);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 u=-1;u<=7;u++)s+u<=-1||r<=s+u||(a>=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?t.set(i+a,s+u,!0,!0):t.set(i+a,s+u,!1,!0))}}function YE(t){let e=t.size;for(let r=8;r<e-8;r++){let n=r%2===0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}function QE(t,e){let r=WE.getPositions(e);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?t.set(o+s,i+a,!0,!0):t.set(o+s,i+a,!1,!0)}}function ZE(t,e){let r=t.size,n=Ws.getEncodedBits(e),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,t.set(o,i,s,!0),t.set(i,o,s,!0)}function Kc(t,e,r){let n=t.size,o=VE.getEncodedBits(e,r),i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?t.set(i,8,s,!0):i<8?t.set(i+1,8,s,!0):t.set(n-15+i,8,s,!0),i<8?t.set(8,n-i-1,s,!0):i<9?t.set(8,15-i-1+1,s,!0):t.set(8,15-i-1,s,!0);t.set(n-8,8,1,!0)}function XE(t,e){let r=t.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 u=0;u<2;u++)if(!t.isReserved(o,a-u)){let c=!1;s<e.length&&(c=(e[s]>>>i&1)===1),t.set(o,a-u,c),i--,i===-1&&(s++,i=7)}if(o+=n,o<0||r<=o){o-=n,n=-n;break}}}function KE(t,e,r){let n=new jE;r.forEach(function(u){n.put(u.mode.bit,4),n.put(u.getLength(),GE.getCharCountIndicator(u.mode,t)),u.write(n)});let o=Hs.getSymbolTotalCodewords(t),i=tl.getTotalCodewordsCount(t,e),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 u=0;u<a;u++)n.put(u%2?17:236,8);return eT(n,t,e)}function eT(t,e,r){let n=Hs.getSymbolTotalCodewords(e),o=tl.getTotalCodewordsCount(e,r),i=n-o,s=tl.getBlocksCount(e,r),a=n%s,u=s-a,c=Math.floor(n/s),l=Math.floor(i/s),f=l+1,h=c-l,y=new zE(h),w=0,A=new Array(s),O=new Array(s),_=0,I=new Uint8Array(t.buffer);for(let Y=0;Y<s;Y++){let F=Y<u?l:f;A[Y]=I.slice(w,w+F),O[Y]=y.encode(A[Y]),w+=F,_=Math.max(_,F)}let D=new Uint8Array(n),N=0,q,U;for(q=0;q<_;q++)for(U=0;U<s;U++)q<A[U].length&&(D[N++]=A[U][q]);for(q=0;q<h;q++)for(U=0;U<s;U++)D[N++]=O[U][q];return D}function tT(t,e,r,n){let o;if(Array.isArray(t))o=Xc.fromArray(t);else if(typeof t=="string"){let c=e;if(!c){let l=Xc.rawSplit(t);c=Ws.getBestVersionForData(l,r)}o=Xc.fromString(t,c||40)}else throw new Error("Invalid data");let i=Ws.getBestVersionForData(o,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=i;else if(e<i)throw new Error(`
4
+ `+e.prev}function Wi(t,e){var r=pu(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=zt(t,o)?e(t[o],t):""}var i=typeof au=="function"?au(t):[],s;if(an){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in t)zt(t,u)&&(r&&String(Number(u))===u&&u<t.length||an&&s["$"+u]instanceof Symbol||(Vp.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if(typeof au=="function")for(var c=0;c<i.length;c++)Gp.call(t,i[c])&&n.push("["+e(i[c])+"]: "+e(t[i[c]],t));return n}});var th=C((uP,eh)=>{"use strict";var yu=Ht(),un=Np(),ib=Kp(),sb=yu("%TypeError%"),Vi=yu("%WeakMap%",!0),Gi=yu("%Map%",!0),ab=un("WeakMap.prototype.get",!0),ub=un("WeakMap.prototype.set",!0),cb=un("WeakMap.prototype.has",!0),lb=un("Map.prototype.get",!0),fb=un("Map.prototype.set",!0),pb=un("Map.prototype.has",!0),xu=function(t,e){for(var r=t,n;(n=r.next)!==null;r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},hb=function(t,e){var r=xu(t,e);return r&&r.value},db=function(t,e,r){var n=xu(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},mb=function(t,e){return!!xu(t,e)};eh.exports=function(){var e,r,n,o={assert:function(i){if(!o.has(i))throw new sb("Side channel does not contain "+ib(i))},get:function(i){if(Vi&&i&&(typeof i=="object"||typeof i=="function")){if(e)return ab(e,i)}else if(Gi){if(r)return lb(r,i)}else if(n)return hb(n,i)},has:function(i){if(Vi&&i&&(typeof i=="object"||typeof i=="function")){if(e)return cb(e,i)}else if(Gi){if(r)return pb(r,i)}else if(n)return mb(n,i);return!1},set:function(i,s){Vi&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Vi),ub(e,i,s)):Gi?(r||(r=new Gi),fb(r,i,s)):(n||(n={key:{},next:null}),db(n,i,s))}};return o}});var Ji=C((cP,rh)=>{"use strict";var gb=String.prototype.replace,yb=/%20/g,bu={RFC1738:"RFC1738",RFC3986:"RFC3986"};rh.exports={default:bu.RFC3986,formatters:{RFC1738:function(t){return gb.call(t,yb,"+")},RFC3986:function(t){return String(t)}},RFC1738:bu.RFC1738,RFC3986:bu.RFC3986}});var wu=C((lP,oh)=>{"use strict";var xb=Ji(),vu=Object.prototype.hasOwnProperty,Sr=Array.isArray,ht=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),bb=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(Sr(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);r.obj[r.prop]=o}}},nh=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},vb=function t(e,r,n){if(!r)return e;if(typeof r!="object"){if(Sr(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!vu.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var o=e;return Sr(e)&&!Sr(r)&&(o=nh(e,n)),Sr(e)&&Sr(r)?(r.forEach(function(i,s){if(vu.call(e,s)){var a=e[s];a&&typeof a=="object"&&i&&typeof i=="object"?e[s]=t(a,i,n):e.push(i)}else e[s]=i}),e):Object.keys(r).reduce(function(i,s){var a=r[s];return vu.call(i,s)?i[s]=t(i[s],a,n):i[s]=a,i},o)},wb=function(e,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},e)},Sb=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Eb=function(e,r,n,o,i){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;++u){var c=s.charCodeAt(u);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||i===xb.RFC1738&&(c===40||c===41)){a+=s.charAt(u);continue}if(c<128){a=a+ht[c];continue}if(c<2048){a=a+(ht[192|c>>6]+ht[128|c&63]);continue}if(c<55296||c>=57344){a=a+(ht[224|c>>12]+ht[128|c>>6&63]+ht[128|c&63]);continue}u+=1,c=65536+((c&1023)<<10|s.charCodeAt(u)&1023),a+=ht[240|c>>18]+ht[128|c>>12&63]+ht[128|c>>6&63]+ht[128|c&63]}return a},Tb=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o<r.length;++o)for(var i=r[o],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],l=s[c];typeof l=="object"&&l!==null&&n.indexOf(l)===-1&&(r.push({obj:s,prop:c}),n.push(l))}return bb(r),e},_b=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Cb=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Ab=function(e,r){return[].concat(e,r)},Ib=function(e,r){if(Sr(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(r(e[o]));return n}return r(e)};oh.exports={arrayToObject:nh,assign:wb,combine:Ab,compact:Tb,decode:Sb,encode:Eb,isBuffer:Cb,isRegExp:_b,maybeMap:Ib,merge:vb}});var lh=C((fP,ch)=>{"use strict";var ah=th(),Yi=wu(),yo=Ji(),Mb=Object.prototype.hasOwnProperty,ih={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Ct=Array.isArray,Pb=Array.prototype.push,uh=function(t,e){Pb.apply(t,Ct(e)?e:[e])},$b=Date.prototype.toISOString,sh=yo.default,Ue={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Yi.encode,encodeValuesOnly:!1,format:sh,formatter:yo.formatters[sh],indices:!1,serializeDate:function(e){return $b.call(e)},skipNulls:!1,strictNullHandling:!1},Nb=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Su={},Ob=function t(e,r,n,o,i,s,a,u,c,l,f,h,y,w,A,O){for(var _=e,I=O,D=0,N=!1;(I=I.get(Su))!==void 0&&!N;){var q=I.get(e);if(D+=1,typeof q<"u"){if(q===D)throw new RangeError("Cyclic object value");N=!0}typeof I.get(Su)>"u"&&(D=0)}if(typeof u=="function"?_=u(r,_):_ instanceof Date?_=f(_):n==="comma"&&Ct(_)&&(_=Yi.maybeMap(_,function(T){return T instanceof Date?f(T):T})),_===null){if(i)return a&&!w?a(r,Ue.encoder,A,"key",h):r;_=""}if(Nb(_)||Yi.isBuffer(_)){if(a){var U=w?r:a(r,Ue.encoder,A,"key",h);return[y(U)+"="+y(a(_,Ue.encoder,A,"value",h))]}return[y(r)+"="+y(String(_))]}var Y=[];if(typeof _>"u")return Y;var F;if(n==="comma"&&Ct(_))w&&a&&(_=Yi.maybeMap(_,a)),F=[{value:_.length>0?_.join(",")||null:void 0}];else if(Ct(u))F=u;else{var B=Object.keys(_);F=c?B.sort(c):B}for(var re=o&&Ct(_)&&_.length===1?r+"[]":r,Se=0;Se<F.length;++Se){var $=F[Se],S=typeof $=="object"&&typeof $.value<"u"?$.value:_[$];if(!(s&&S===null)){var E=Ct(_)?typeof n=="function"?n(re,$):re:re+(l?"."+$:"["+$+"]");O.set(e,D);var P=ah();P.set(Su,O),uh(Y,t(S,E,n,o,i,s,n==="comma"&&w&&Ct(_)?null:a,u,c,l,f,h,y,w,A,P))}}return Y},Db=function(e){if(!e)return Ue;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||Ue.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=yo.default;if(typeof e.format<"u"){if(!Mb.call(yo.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=yo.formatters[n],i=Ue.filter;return(typeof e.filter=="function"||Ct(e.filter))&&(i=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Ue.addQueryPrefix,allowDots:typeof e.allowDots>"u"?Ue.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ue.charsetSentinel,delimiter:typeof e.delimiter>"u"?Ue.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Ue.encode,encoder:typeof e.encoder=="function"?e.encoder:Ue.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Ue.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Ue.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Ue.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ue.strictNullHandling}};ch.exports=function(t,e){var r=t,n=Db(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):Ct(n.filter)&&(i=n.filter,o=i);var s=[];if(typeof r!="object"||r===null)return"";var a;e&&e.arrayFormat in ih?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var u=ih[a];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=u==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var l=ah(),f=0;f<o.length;++f){var h=o[f];n.skipNulls&&r[h]===null||uh(s,Ob(r[h],h,u,c,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,l))}var y=s.join(n.delimiter),w=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),y.length>0?w+y:""}});var hh=C((pP,ph)=>{"use strict";var cn=wu(),Eu=Object.prototype.hasOwnProperty,Bb=Array.isArray,Ne={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:cn.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Rb=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},fh=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Fb="utf8=%26%2310003%3B",Ub="utf8=%E2%9C%93",Lb=function(e,r){var n={__proto__:null},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=o.split(r.delimiter,i),a=-1,u,c=r.charset;if(r.charsetSentinel)for(u=0;u<s.length;++u)s[u].indexOf("utf8=")===0&&(s[u]===Ub?c="utf-8":s[u]===Fb&&(c="iso-8859-1"),a=u,u=s.length);for(u=0;u<s.length;++u)if(u!==a){var l=s[u],f=l.indexOf("]="),h=f===-1?l.indexOf("="):f+1,y,w;h===-1?(y=r.decoder(l,Ne.decoder,c,"key"),w=r.strictNullHandling?null:""):(y=r.decoder(l.slice(0,h),Ne.decoder,c,"key"),w=cn.maybeMap(fh(l.slice(h+1),r),function(A){return r.decoder(A,Ne.decoder,c,"value")})),w&&r.interpretNumericEntities&&c==="iso-8859-1"&&(w=Rb(w)),l.indexOf("[]=")>-1&&(w=Bb(w)?[w]:w),Eu.call(n,y)?n[y]=cn.combine(n[y],w):n[y]=w}return n},kb=function(t,e,r,n){for(var o=n?e:fh(e,r),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&r.parseArrays)s=[].concat(o);else{s=r.plainObjects?Object.create(null):{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,c=parseInt(u,10);!r.parseArrays&&u===""?s={0:o}:!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(s=[],s[c]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},jb=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=n.depth>0&&s.exec(i),c=u?i.slice(0,u.index):i,l=[];if(c){if(!n.plainObjects&&Eu.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var f=0;n.depth>0&&(u=a.exec(i))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&Eu.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(u[1])}return u&&l.push("["+i.slice(u.index)+"]"),kb(l,r,n,o)}},qb=function(e){if(!e)return Ne;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?Ne.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Ne.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Ne.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Ne.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Ne.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Ne.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Ne.comma,decoder:typeof e.decoder=="function"?e.decoder:Ne.decoder,delimiter:typeof e.delimiter=="string"||cn.isRegExp(e.delimiter)?e.delimiter:Ne.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Ne.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Ne.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Ne.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Ne.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Ne.strictNullHandling}};ph.exports=function(t,e){var r=qb(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?Lb(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s<i.length;++s){var a=i[s],u=jb(a,n[a],r,typeof t=="string");o=cn.merge(o,u,r)}return r.allowSparse===!0?o:cn.compact(o)}});var mh=C((hP,dh)=>{"use strict";var Wb=lh(),Hb=hh(),zb=Ji();dh.exports={formats:zb,parse:Hb,stringify:Wb}});var bh=C(fn=>{"use strict";var Vb=Gf();function Qe(){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 Gb=/^([a-z0-9.+-]+:)/i,Jb=/:[0-9]*$/,Yb=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,Qb=["<",">",'"',"`"," ","\r",`
5
+ `," "],Zb=["{","}","|","\\","^","`"].concat(Qb),Tu=["'"].concat(Zb),gh=["%","/","?",";","#"].concat(Tu),yh=["/","?","#"],Xb=255,xh=/^[+a-z0-9A-Z_-]{0,63}$/,Kb=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ev={javascript:!0,"javascript:":!0},_u={javascript:!0,"javascript:":!0},ln={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Cu=mh();function xo(t,e,r){if(t&&typeof t=="object"&&t instanceof Qe)return t;var n=new Qe;return n.parse(t,e,r),n}Qe.prototype.parse=function(t,e,r){if(typeof t!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),o=n!==-1&&n<t.indexOf("#")?"?":"#",i=t.split(o),s=/\\/g;i[0]=i[0].replace(s,"/"),t=i.join(o);var a=t;if(a=a.trim(),!r&&t.split("#").length===1){var u=Yb.exec(a);if(u)return this.path=a,this.href=a,this.pathname=u[1],u[2]?(this.search=u[2],e?this.query=Cu.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var c=Gb.exec(a);if(c){c=c[0];var l=c.toLowerCase();this.protocol=l,a=a.substr(c.length)}if(r||c||a.match(/^\/\/[^@/]+@[^@/]+/)){var f=a.substr(0,2)==="//";f&&!(c&&_u[c])&&(a=a.substr(2),this.slashes=!0)}if(!_u[c]&&(f||c&&!ln[c])){for(var h=-1,y=0;y<yh.length;y++){var w=a.indexOf(yh[y]);w!==-1&&(h===-1||w<h)&&(h=w)}var A,O;h===-1?O=a.lastIndexOf("@"):O=a.lastIndexOf("@",h),O!==-1&&(A=a.slice(0,O),a=a.slice(O+1),this.auth=decodeURIComponent(A)),h=-1;for(var y=0;y<gh.length;y++){var w=a.indexOf(gh[y]);w!==-1&&(h===-1||w<h)&&(h=w)}h===-1&&(h=a.length),this.host=a.slice(0,h),a=a.slice(h),this.parseHost(),this.hostname=this.hostname||"";var _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_)for(var I=this.hostname.split(/\./),y=0,D=I.length;y<D;y++){var N=I[y];if(N&&!N.match(xh)){for(var q="",U=0,Y=N.length;U<Y;U++)N.charCodeAt(U)>127?q+="x":q+=N[U];if(!q.match(xh)){var F=I.slice(0,y),B=I.slice(y+1),re=N.match(Kb);re&&(F.push(re[1]),B.unshift(re[2])),B.length&&(a="/"+B.join(".")+a),this.hostname=F.join(".");break}}}this.hostname.length>Xb?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=Vb.toASCII(this.hostname));var Se=this.port?":"+this.port:"",$=this.hostname||"";this.host=$+Se,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!ev[l])for(var y=0,D=Tu.length;y<D;y++){var S=Tu[y];if(a.indexOf(S)!==-1){var E=encodeURIComponent(S);E===S&&(E=escape(S)),a=a.split(S).join(E)}}var P=a.indexOf("#");P!==-1&&(this.hash=a.substr(P),a=a.slice(0,P));var T=a.indexOf("?");if(T!==-1?(this.search=a.substr(T),this.query=a.substr(T+1),e&&(this.query=Cu.parse(this.query)),a=a.slice(0,T)):e&&(this.search="",this.query={}),a&&(this.pathname=a),ln[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Se=this.pathname||"",j=this.search||"";this.path=Se+j}return this.href=this.format(),this};function tv(t){return typeof t=="string"&&(t=xo(t)),t instanceof Qe?t.format():Qe.prototype.format.call(t)}Qe.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=Cu.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||ln[e])&&o!==!1?(o="//"+(o||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):o||(o=""),n&&n.charAt(0)!=="#"&&(n="#"+n),s&&s.charAt(0)!=="?"&&(s="?"+s),r=r.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),e+o+r+s+n};function rv(t,e){return xo(t,!1,!0).resolve(e)}Qe.prototype.resolve=function(t){return this.resolveObject(xo(t,!1,!0)).format()};function nv(t,e){return t?xo(t,!1,!0).resolveObject(e):e}Qe.prototype.resolveObject=function(t){if(typeof t=="string"){var e=new Qe;e.parse(t,!1,!0),t=e}for(var r=new Qe,n=Object.keys(this),o=0;o<n.length;o++){var i=n[o];r[i]=this[i]}if(r.hash=t.hash,t.href==="")return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a];u!=="protocol"&&(r[u]=t[u])}return ln[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!ln[t.protocol]){for(var c=Object.keys(t),l=0;l<c.length;l++){var f=c[l];r[f]=t[f]}return r.href=r.format(),r}if(r.protocol=t.protocol,!t.host&&!_u[t.protocol]){for(var D=(t.pathname||"").split("/");D.length&&!(t.host=D.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),D[0]!==""&&D.unshift(""),D.length<2&&D.unshift(""),r.pathname=D.join("/")}else r.pathname=t.pathname;if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var h=r.pathname||"",y=r.search||"";r.path=h+y}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var w=r.pathname&&r.pathname.charAt(0)==="/",A=t.host||t.pathname&&t.pathname.charAt(0)==="/",O=A||w||r.host&&t.pathname,_=O,I=r.pathname&&r.pathname.split("/")||[],D=t.pathname&&t.pathname.split("/")||[],N=r.protocol&&!ln[r.protocol];if(N&&(r.hostname="",r.port=null,r.host&&(I[0]===""?I[0]=r.host:I.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(D[0]===""?D[0]=t.host:D.unshift(t.host)),t.host=null),O=O&&(D[0]===""||I[0]==="")),A)r.host=t.host||t.host===""?t.host:r.host,r.hostname=t.hostname||t.hostname===""?t.hostname:r.hostname,r.search=t.search,r.query=t.query,I=D;else if(D.length)I||(I=[]),I.pop(),I=I.concat(D),r.search=t.search,r.query=t.query;else if(t.search!=null){if(N){r.host=I.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=t.search,r.query=t.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!I.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var U=I.slice(-1)[0],Y=(r.host||t.host||I.length>1)&&(U==="."||U==="..")||U==="",F=0,B=I.length;B>=0;B--)U=I[B],U==="."?I.splice(B,1):U===".."?(I.splice(B,1),F++):F&&(I.splice(B,1),F--);if(!O&&!_)for(;F--;F)I.unshift("..");O&&I[0]!==""&&(!I[0]||I[0].charAt(0)!=="/")&&I.unshift(""),Y&&I.join("/").substr(-1)!=="/"&&I.push("");var re=I[0]===""||I[0]&&I[0].charAt(0)==="/";if(N){r.hostname=re?"":I.length?I.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 O=O||r.host&&I.length,O&&!re&&I.unshift(""),I.length>0?r.pathname=I.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r};Qe.prototype.parseHost=function(){var t=this.host,e=Jb.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};fn.parse=xo;fn.resolve=rv;fn.resolveObject=nv;fn.format=tv;fn.Url=Qe});var Lh=C((gP,Uh)=>{"use strict";Uh.exports=t=>{let e=t.match(/^[ \t]*(?=\S)/gm);return e?e.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var qh=C((xP,jh)=>{"use strict";jh.exports=(t,e,r,n)=>{if(!Buffer.isBuffer(t))throw new TypeError(`Expected a \`Buffer\`, got \`${typeof t}\``);if(!(typeof e=="string"&&e.length>0)||!(typeof r=="string"||typeof r=="function"))return t;n=Object.assign({fromIndex:0},n);let o=0,i=s=>{let a=o===0?n.fromIndex:0,u=s.indexOf(e,a);if(u===-1)return s;o++;let c=Buffer.from(typeof r=="string"?r:r(e,o,t)),l=Buffer.from(e),f=s.slice(0,u),h=i(s.slice(u+l.length)),y=u+c.length+h.length;return Buffer.concat([f,c,h],y)};return i(t)}});var Vh=C((vP,zh)=>{"use strict";zh.exports=function(e){var r=typeof e;if(r==="string"||e instanceof String){if(!e.trim())return!1}else if(r!=="number"&&!(e instanceof Number))return!1;return e-e+1>=0}});var Yh=C((wP,Jh)=>{var gv=Object.prototype.toString;Jh.exports=function(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function")return wv(e)?"generatorfunction":"function";if(yv(e))return"array";if(Tv(e))return"buffer";if(Ev(e))return"arguments";if(bv(e))return"date";if(xv(e))return"error";if(vv(e))return"regexp";switch(Gh(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(Sv(e))return"generator";switch(r=gv.call(e),r){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function Gh(t){return typeof t.constructor=="function"?t.constructor.name:null}function yv(t){return Array.isArray?Array.isArray(t):t instanceof Array}function xv(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function bv(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function vv(t){return t instanceof RegExp?!0:typeof t.flags=="string"&&typeof t.ignoreCase=="boolean"&&typeof t.multiline=="boolean"&&typeof t.global=="boolean"}function wv(t,e){return Gh(t)==="GeneratorFunction"}function Sv(t){return typeof t.throw=="function"&&typeof t.return=="function"&&typeof t.next=="function"}function Ev(t){try{if(typeof t.length=="number"&&typeof t.callee=="function")return!0}catch(e){if(e.message.indexOf("callee")!==-1)return!0}return!1}function Tv(t){return t.constructor&&typeof t.constructor.isBuffer=="function"?t.constructor.isBuffer(t):!1}});var Zh=C((SP,Qh)=>{Qh.exports=function(t){var e="Uint32Array"in t,r=t.crypto||t.msCrypto,n=r&&typeof r.getRandomValues=="function",o=e&&n;if(!o)return Math.random;var i=new Uint32Array(1),s=Math.pow(2,32);function a(){return r.getRandomValues(i),i[0]/s}return a.cryptographic=!0,a}(typeof self<"u"?self:window)});var ed=C((EP,$u)=>{"use strict";var _v=Vh(),Xh=Yh(),Kh=Zh();$u.exports=Cv;$u.exports.isCrypto=!!Kh.cryptographic;var dt={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};dt.all=dt.lower+dt.upper+dt.number+dt.special;function Cv(t,e,r){if(typeof t>"u")throw new Error("randomatic expects a string or number.");var n=!1;arguments.length===1&&(typeof t=="string"?e=t.length:_v(t)&&(r={},e=t,t="*")),Xh(e)==="object"&&e.hasOwnProperty("chars")&&(r=e,t=r.chars,e=t.length,n=!0);var o=r||{},i="",s="";if(t.indexOf("?")!==-1&&(i+=o.chars),t.indexOf("a")!==-1&&(i+=dt.lower),t.indexOf("A")!==-1&&(i+=dt.upper),t.indexOf("0")!==-1&&(i+=dt.number),t.indexOf("!")!==-1&&(i+=dt.special),t.indexOf("*")!==-1&&(i+=dt.all),n&&(i+=t),o.exclude){var a=Xh(o.exclude)==="string"?o.exclude:o.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),i=i.replace(new RegExp("["+a+"]+","g"),""),o.exclude.indexOf("]")!==-1&&(i=i.replace(new RegExp("[\\]]+","g"),""))}for(;e--;)s+=i.charAt(parseInt(Kh()*i.length,10));return s}});var Gd=C((So,mn)=>{var Lv=200,yd="__lodash_hash_undefined__",xd=9007199254740991,Gu="[object Arguments]",kv="[object Array]",bd="[object Boolean]",vd="[object Date]",jv="[object Error]",Ju="[object Function]",wd="[object GeneratorFunction]",os="[object Map]",Sd="[object Number]",Yu="[object Object]",sd="[object Promise]",Ed="[object RegExp]",is="[object Set]",Td="[object String]",_d="[object Symbol]",ju="[object WeakMap]",Cd="[object ArrayBuffer]",ss="[object DataView]",Ad="[object Float32Array]",Id="[object Float64Array]",Md="[object Int8Array]",Pd="[object Int16Array]",$d="[object Int32Array]",Nd="[object Uint8Array]",Od="[object Uint8ClampedArray]",Dd="[object Uint16Array]",Bd="[object Uint32Array]",qv=/[\\^$.*+?()[\]{}|]/g,Wv=/\w*$/,Hv=/^\[object .+?Constructor\]$/,zv=/^(?:0|[1-9]\d*)$/,ue={};ue[Gu]=ue[kv]=ue[Cd]=ue[ss]=ue[bd]=ue[vd]=ue[Ad]=ue[Id]=ue[Md]=ue[Pd]=ue[$d]=ue[os]=ue[Sd]=ue[Yu]=ue[Ed]=ue[is]=ue[Td]=ue[_d]=ue[Nd]=ue[Od]=ue[Dd]=ue[Bd]=!0;ue[jv]=ue[Ju]=ue[ju]=!1;var Vv=typeof global=="object"&&global&&global.Object===Object&&global,Gv=typeof self=="object"&&self&&self.Object===Object&&self,At=Vv||Gv||Function("return this")(),Rd=typeof So=="object"&&So&&!So.nodeType&&So,ad=Rd&&typeof mn=="object"&&mn&&!mn.nodeType&&mn,Jv=ad&&ad.exports===Rd;function Yv(t,e){return t.set(e[0],e[1]),t}function Qv(t,e){return t.add(e),t}function Zv(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}function Xv(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function Fd(t,e,r,n){var o=-1,i=t?t.length:0;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function Kv(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function ew(t,e){return t?.[e]}function Ud(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function ud(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function Qu(t,e){return function(r){return t(e(r))}}function cd(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var tw=Array.prototype,rw=Function.prototype,as=Object.prototype,ku=At["__core-js_shared__"],ld=function(){var t=/[^.]+$/.exec(ku&&ku.keys&&ku.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ld=rw.toString,Jt=as.hasOwnProperty,us=as.toString,nw=RegExp("^"+Ld.call(Jt).replace(qv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fd=Jv?At.Buffer:void 0,pd=At.Symbol,hd=At.Uint8Array,ow=Qu(Object.getPrototypeOf,Object),iw=Object.create,sw=as.propertyIsEnumerable,aw=tw.splice,dd=Object.getOwnPropertySymbols,uw=fd?fd.isBuffer:void 0,cw=Qu(Object.keys,Object),qu=xn(At,"DataView"),Eo=xn(At,"Map"),Wu=xn(At,"Promise"),Hu=xn(At,"Set"),zu=xn(At,"WeakMap"),To=xn(Object,"create"),lw=_r(qu),fw=_r(Eo),pw=_r(Wu),hw=_r(Hu),dw=_r(zu),md=pd?pd.prototype:void 0,gd=md?md.valueOf:void 0;function Tr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function mw(){this.__data__=To?To(null):{}}function gw(t){return this.has(t)&&delete this.__data__[t]}function yw(t){var e=this.__data__;if(To){var r=e[t];return r===yd?void 0:r}return Jt.call(e,t)?e[t]:void 0}function xw(t){var e=this.__data__;return To?e[t]!==void 0:Jt.call(e,t)}function bw(t,e){var r=this.__data__;return r[t]=To&&e===void 0?yd:e,this}Tr.prototype.clear=mw;Tr.prototype.delete=gw;Tr.prototype.get=yw;Tr.prototype.has=xw;Tr.prototype.set=bw;function It(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function vw(){this.__data__=[]}function ww(t){var e=this.__data__,r=cs(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():aw.call(e,r,1),!0}function Sw(t){var e=this.__data__,r=cs(e,t);return r<0?void 0:e[r][1]}function Ew(t){return cs(this.__data__,t)>-1}function Tw(t,e){var r=this.__data__,n=cs(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}It.prototype.clear=vw;It.prototype.delete=ww;It.prototype.get=Sw;It.prototype.has=Ew;It.prototype.set=Tw;function gn(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function _w(){this.__data__={hash:new Tr,map:new(Eo||It),string:new Tr}}function Cw(t){return ls(this,t).delete(t)}function Aw(t){return ls(this,t).get(t)}function Iw(t){return ls(this,t).has(t)}function Mw(t,e){return ls(this,t).set(t,e),this}gn.prototype.clear=_w;gn.prototype.delete=Cw;gn.prototype.get=Aw;gn.prototype.has=Iw;gn.prototype.set=Mw;function yn(t){this.__data__=new It(t)}function Pw(){this.__data__=new It}function $w(t){return this.__data__.delete(t)}function Nw(t){return this.__data__.get(t)}function Ow(t){return this.__data__.has(t)}function Dw(t,e){var r=this.__data__;if(r instanceof It){var n=r.__data__;if(!Eo||n.length<Lv-1)return n.push([t,e]),this;r=this.__data__=new gn(n)}return r.set(t,e),this}yn.prototype.clear=Pw;yn.prototype.delete=$w;yn.prototype.get=Nw;yn.prototype.has=Ow;yn.prototype.set=Dw;function Bw(t,e){var r=Xu(t)||i1(t)?Kv(t.length,String):[],n=r.length,o=!!n;for(var i in t)(e||Jt.call(t,i))&&!(o&&(i=="length"||t1(i,n)))&&r.push(i);return r}function kd(t,e,r){var n=t[e];(!(Jt.call(t,e)&&Hd(n,r))||r===void 0&&!(e in t))&&(t[e]=r)}function cs(t,e){for(var r=t.length;r--;)if(Hd(t[r][0],e))return r;return-1}function Rw(t,e){return t&&jd(e,Ku(e),t)}function Vu(t,e,r,n,o,i,s){var a;if(n&&(a=i?n(t,o,i,s):n(t)),a!==void 0)return a;if(!fs(t))return t;var u=Xu(t);if(u){if(a=Xw(t),!e)return Yw(t,a)}else{var c=Er(t),l=c==Ju||c==wd;if(a1(t))return qw(t,e);if(c==Yu||c==Gu||l&&!i){if(Ud(t))return i?t:{};if(a=Kw(l?{}:t),!e)return Qw(t,Rw(a,t))}else{if(!ue[c])return i?t:{};a=e1(t,c,Vu,e)}}s||(s=new yn);var f=s.get(t);if(f)return f;if(s.set(t,a),!u)var h=r?Zw(t):Ku(t);return Zv(h||t,function(y,w){h&&(w=y,y=t[w]),kd(a,w,Vu(y,e,r,n,w,t,s))}),a}function Fw(t){return fs(t)?iw(t):{}}function Uw(t,e,r){var n=e(t);return Xu(t)?n:Xv(n,r(t))}function Lw(t){return us.call(t)}function kw(t){if(!fs(t)||n1(t))return!1;var e=Vd(t)||Ud(t)?nw:Hv;return e.test(_r(t))}function jw(t){if(!Wd(t))return cw(t);var e=[];for(var r in Object(t))Jt.call(t,r)&&r!="constructor"&&e.push(r);return e}function qw(t,e){if(e)return t.slice();var r=new t.constructor(t.length);return t.copy(r),r}function Zu(t){var e=new t.constructor(t.byteLength);return new hd(e).set(new hd(t)),e}function Ww(t,e){var r=e?Zu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function Hw(t,e,r){var n=e?r(ud(t),!0):ud(t);return Fd(n,Yv,new t.constructor)}function zw(t){var e=new t.constructor(t.source,Wv.exec(t));return e.lastIndex=t.lastIndex,e}function Vw(t,e,r){var n=e?r(cd(t),!0):cd(t);return Fd(n,Qv,new t.constructor)}function Gw(t){return gd?Object(gd.call(t)):{}}function Jw(t,e){var r=e?Zu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Yw(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function jd(t,e,r,n){r||(r={});for(var o=-1,i=e.length;++o<i;){var s=e[o],a=n?n(r[s],t[s],s,r,t):void 0;kd(r,s,a===void 0?t[s]:a)}return r}function Qw(t,e){return jd(t,qd(t),e)}function Zw(t){return Uw(t,Ku,qd)}function ls(t,e){var r=t.__data__;return r1(e)?r[typeof e=="string"?"string":"hash"]:r.map}function xn(t,e){var r=ew(t,e);return kw(r)?r:void 0}var qd=dd?Qu(dd,Object):l1,Er=Lw;(qu&&Er(new qu(new ArrayBuffer(1)))!=ss||Eo&&Er(new Eo)!=os||Wu&&Er(Wu.resolve())!=sd||Hu&&Er(new Hu)!=is||zu&&Er(new zu)!=ju)&&(Er=function(t){var e=us.call(t),r=e==Yu?t.constructor:void 0,n=r?_r(r):void 0;if(n)switch(n){case lw:return ss;case fw:return os;case pw:return sd;case hw:return is;case dw:return ju}return e});function Xw(t){var e=t.length,r=t.constructor(e);return e&&typeof t[0]=="string"&&Jt.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function Kw(t){return typeof t.constructor=="function"&&!Wd(t)?Fw(ow(t)):{}}function e1(t,e,r,n){var o=t.constructor;switch(e){case Cd:return Zu(t);case bd:case vd:return new o(+t);case ss:return Ww(t,n);case Ad:case Id:case Md:case Pd:case $d:case Nd:case Od:case Dd:case Bd:return Jw(t,n);case os:return Hw(t,n,r);case Sd:case Td:return new o(t);case Ed:return zw(t);case is:return Vw(t,n,r);case _d:return Gw(t)}}function t1(t,e){return e=e??xd,!!e&&(typeof t=="number"||zv.test(t))&&t>-1&&t%1==0&&t<e}function r1(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function n1(t){return!!ld&&ld in t}function Wd(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||as;return t===r}function _r(t){if(t!=null){try{return Ld.call(t)}catch{}try{return t+""}catch{}}return""}function o1(t){return Vu(t,!0,!0)}function Hd(t,e){return t===e||t!==t&&e!==e}function i1(t){return s1(t)&&Jt.call(t,"callee")&&(!sw.call(t,"callee")||us.call(t)==Gu)}var Xu=Array.isArray;function zd(t){return t!=null&&u1(t.length)&&!Vd(t)}function s1(t){return c1(t)&&zd(t)}var a1=uw||f1;function Vd(t){var e=fs(t)?us.call(t):"";return e==Ju||e==wd}function u1(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=xd}function fs(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function c1(t){return!!t&&typeof t=="object"}function Ku(t){return zd(t)?Bw(t):jw(t)}function l1(){return[]}function f1(){return!1}mn.exports=o1});var Yd=C((UP,Jd)=>{"use strict";Jd.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,n=e.cmp&&function(i){return function(s){return function(a,u){var c={key:a,value:s[a]},l={key:u,value:s[u]};return i(c,l)}}}(e.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,u;if(Array.isArray(s)){for(u="[",a=0;a<s.length;a++)a&&(u+=","),u+=i(s[a])||"null";return u+"]"}if(s===null)return"null";if(o.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=o.push(s)-1,l=Object.keys(s).sort(n&&n(s));for(u="",a=0;a<l.length;a++){var f=l[a],h=i(s[f]);h&&(u&&(u+=","),u+=JSON.stringify(f)+":"+h)}return o.splice(c,1),"{"+u+"}"}}(t)}});var tm=C((LP,em)=>{function p1(t,e){return JSON.stringify(t,Qd,e)}function h1(t){return JSON.parse(t,Zd)}function Qd(t,e){return Xd(e)&&ec(e.data)&&(e.data.length>0?e.data="base64:"+Buffer.from(e.data).toString("base64"):e.data=""),e}function Zd(t,e){if(Xd(e)){if(ec(e.data))return Buffer.from(e.data);if(Kd(e.data))return e.data.startsWith("base64:")?Buffer.from(e.data.slice(7),"base64"):Buffer.from(e.data)}return e}function Xd(t){return d1(t)&&t.type==="Buffer"&&(ec(t.data)||Kd(t.data))}function ec(t){return Array.isArray(t)}function Kd(t){return typeof t=="string"}function d1(t){return typeof t=="object"&&t!==null}em.exports={stringify:p1,parse:h1,replacer:Qd,reviver:Zd}});var Am=C(()=>{});var Fm=C(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.getFirstTrueOrFalse=ve.timeoutAndContinue=ve.timeoutWrap=ve.map=ve.rejectedPromise=ve.resolvedPromise=ve.defer=ve.Deferred=void 0;var vs=class{constructor(){this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}};ve.Deferred=vs;ve.defer=()=>new vs;ve.resolvedPromise=t=>Promise.resolve(t);ve.rejectedPromise=t=>Promise.reject(t);ve.map=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n};ve.timeoutWrap=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)});ve.timeoutAndContinue=async(t,e=6e4)=>ve.timeoutWrap(t,e,!1);ve.getFirstTrueOrFalse=async t=>{let e=ve.defer();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise}});var jm=C((Ac,Ic)=>{(function(t,e){typeof Ac=="object"&&typeof Ic<"u"?Ic.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self,t.SweetScroll=e())})(Ac,function(){"use strict";var t=function(){return t=Object.assign||function(p){for(var d,g=1,b=arguments.length;g<b;g++){d=arguments[g];for(var L in d)Object.prototype.hasOwnProperty.call(d,L)&&(p[L]=d[L])}return p},t.apply(this,arguments)},e=!!(typeof window<"u"&&window.document&&window.document.createElement),r=e?window.history&&"pushState"in window.history&&window.location.protocol!=="file:":!1,n=function(){var m=!1;if(!e)return m;try{var p=window,d=Object.defineProperty({},"passive",{get:function(){m=!0}});p.addEventListener("test",null,d),p.removeEventListener("test",null,d)}catch{}return m}(),o=function(m){return typeof m=="string"},i=function(m){return typeof m=="function"},s=function(m){return Array.isArray(m)},a=function(m){return!s(m)&&m-parseFloat(m)+1>=0},u=function(m,p){return m&&m.hasOwnProperty(p)},c=e?window.requestAnimationFrame.bind(window):null,l=e?window.cancelAnimationFrame.bind(window):null,f=Math.cos,h=Math.sin,y=Math.pow,w=Math.sqrt,A=Math.PI,O={linear:function(m){return m},easeInQuad:function(m,p,d,g,b){return g*(p/=b)*p+d},easeOutQuad:function(m,p,d,g,b){return-g*(p/=b)*(p-2)+d},easeInOutQuad:function(m,p,d,g,b){return(p/=b/2)<1?g/2*p*p+d:-g/2*(--p*(p-2)-1)+d},easeInCubic:function(m,p,d,g,b){return g*(p/=b)*p*p+d},easeOutCubic:function(m,p,d,g,b){return g*((p=p/b-1)*p*p+1)+d},easeInOutCubic:function(m,p,d,g,b){return(p/=b/2)<1?g/2*p*p*p+d:g/2*((p-=2)*p*p+2)+d},easeInQuart:function(m,p,d,g,b){return g*(p/=b)*p*p*p+d},easeOutQuart:function(m,p,d,g,b){return-g*((p=p/b-1)*p*p*p-1)+d},easeInOutQuart:function(m,p,d,g,b){return(p/=b/2)<1?g/2*p*p*p*p+d:-g/2*((p-=2)*p*p*p-2)+d},easeInQuint:function(m,p,d,g,b){return g*(p/=b)*p*p*p*p+d},easeOutQuint:function(m,p,d,g,b){return g*((p=p/b-1)*p*p*p*p+1)+d},easeInOutQuint:function(m,p,d,g,b){return(p/=b/2)<1?g/2*p*p*p*p*p+d:g/2*((p-=2)*p*p*p*p+2)+d},easeInSine:function(m,p,d,g,b){return-g*f(p/b*(A/2))+g+d},easeOutSine:function(m,p,d,g,b){return g*h(p/b*(A/2))+d},easeInOutSine:function(m,p,d,g,b){return-g/2*(f(A*p/b)-1)+d},easeInExpo:function(m,p,d,g,b){return p===0?d:g*y(2,10*(p/b-1))+d},easeOutExpo:function(m,p,d,g,b){return p===b?d+g:g*(-y(2,-10*p/b)+1)+d},easeInOutExpo:function(m,p,d,g,b){return p===0?d:p===b?d+g:(p/=b/2)<1?g/2*y(2,10*(p-1))+d:g/2*(-y(2,-10*--p)+2)+d},easeInCirc:function(m,p,d,g,b){return-g*(w(1-(p/=b)*p)-1)+d},easeOutCirc:function(m,p,d,g,b){return g*w(1-(p=p/b-1)*p)+d},easeInOutCirc:function(m,p,d,g,b){return(p/=b/2)<1?-g/2*(w(1-p*p)-1)+d:g/2*(w(1-(p-=2)*p)+1)+d}},_=function(m){return Array.prototype.slice.call(m?document.querySelectorAll(m):[])},I=function(m){return _(m).shift()||null},D=function(m){return m instanceof Element},N=function(m){return m===window},q=function(m){return m===document.documentElement||m===document.body},U=function(m,p){if(D(p))return m===p;for(var d=_(p),g=d.length;--g>=0&&d[g]!==m;);return g>-1},Y=function(m){return Math.max(m.scrollHeight,m.clientHeight,m.offsetHeight)},F=function(m){return Math.max(m.scrollWidth,m.clientWidth,m.offsetWidth)},B=function(m){return{width:F(m),height:Y(m)}},re=function(m){var p=N(m)||q(m);return{viewport:{width:p?Math.min(window.innerWidth,document.documentElement.clientWidth):m.clientWidth,height:p?window.innerHeight:m.clientHeight},size:p?{width:Math.max(F(document.body),F(document.documentElement)),height:Math.max(Y(document.body),Y(document.documentElement))}:B(m)}},Se={y:"scrollTop",x:"scrollLeft"},$={y:"pageYOffset",x:"pageXOffset"},S=function(m,p){return N(m)?m[$[p]]:m[Se[p]]},E=function(m,p,d){if(N(m)){var g=d==="y";m.scrollTo(g?m.pageXOffset:p,g?p:m.pageYOffset)}else m[Se[d]]=p},P=function(m,p){var d=m.getBoundingClientRect();if(d.width||d.height){var g={top:0,left:0},b=void 0;if(N(p)||q(p))b=document.documentElement,g.top=window[$.y],g.left=window[$.x];else{b=p;var L=b.getBoundingClientRect();g.top=L.top*-1+b[Se.y],g.left=L.left*-1+b[Se.x]}return{top:d.top+g.top-b.clientTop,left:d.left+g.left-b.clientLeft}}return d},T=function(){return e?"onwheel"in document?"wheel":"mousewheel":"wheel"}(),j=function(m){return m==="wheel"?T:m},v=function(m,p,d,g,b){d.split(" ").forEach(function(L){m[p](j(L),g,n?{passive:b}:!1)})},M=function(m,p,d,g){return v(m,"addEventListener",p,d,g)},R=function(m,p,d,g){return v(m,"removeEventListener",p,d,g)},H=/^(\+|-)=(\d+(?:\.\d+)?)$/,z=function(m,p){var d={top:0,left:0,relative:!1};if(u(m,"top")||u(m,"left"))d=t({},d,m);else if(s(m))if(m.length>1)d.top=m[0],d.left=m[1];else if(m.length===1)d.top=p?m[0]:0,d.left=p?0:m[0];else return null;else if(a(m))p?d.top=m:d.left=m;else if(o(m)){var g=m.trim().match(H);if(!g)return null;var b=g[1],L=parseInt(g[2],10);b==="+"?(d.top=p?L:0,d.left=p?0:L):(d.top=p?-L:0,d.left=p?0:-L),d.relative=!0}else return null;return d},K={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,easing:"easeOutQuint",offset:0,vertical:!0,horizontal:!1,cancellable:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,before:null,after:null,cancel:null,complete:null,step:null},ne="click",pe="wheel touchstart touchmove",Ee=function(){function m(p,d){var g=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(L){var oe=g,ie=oe.$el,ae=oe.ctx;if(ae.start||(ae.start=L),!ae.progress||!ie){g.stop();return}var gt=ae.opts,He=ae.pos,rt=ae.start,Br=ae.startPos,kn=ae.easing,yt=gt.duration,Ft={top:"y",left:"x"},ut=L-rt,Ie=Math.min(1,Math.max(ut/yt,0));Object.keys(He).forEach(function(Rr){var zo=He[Rr],jn=Br[Rr],qn=zo-jn;if(qn!==0){var Vo=kn(Ie,yt*Ie,0,1,yt);E(ie,Math.round(jn+qn*Vo),Ft[Rr])}}),ut<=yt?(g.hook(gt,"step",Ie),ae.id=m.raf(g.loop)):g.stop(!0)},this.handleClick=function(L){for(var oe=g.opts,ie=L.target;ie&&ie!==document;ie=ie.parentNode)if(U(ie,oe.trigger)){var ae=JSON.parse(ie.getAttribute("data-scroll-options")||"{}"),gt=ie.getAttribute("data-scroll"),He=gt||ie.getAttribute("href"),rt=t({},oe,ae),Br=rt.preventDefault,kn=rt.stopPropagation,yt=rt.vertical,Ft=rt.horizontal;Br&&L.preventDefault(),kn&&L.stopPropagation(),g.ctx.$trigger=ie,Ft&&yt?g.to(He,rt):yt?g.toTop(He,rt):Ft&&g.toLeft(He,rt);break}},this.handleStop=function(L){var oe=g.ctx,ie=oe.opts;ie&&ie.cancellable?(oe.cancel=!0,g.stop()):L.preventDefault()},this.opts=t({},K,p||{});var b=null;e&&(typeof d=="string"?b=I(d):d!=null?b=d:b=window),this.$el=b,b&&this.bind(!0,!1)}return m.create=function(p,d){return new m(p,d)},m.prototype.to=function(p,d){if(e){var g=this,b=g.$el,L=g.ctx,oe=g.opts,ie=L.$trigger,ae=t({},oe,d||{}),gt=ae.offset,He=ae.vertical,rt=ae.horizontal,Br=D(ae.header)?ae.header:I(ae.header),kn=/^#/,yt=o(p)&&kn.test(p)?p:null;if(L.opts=ae,L.cancel=!1,L.hash=yt,this.stop(),!!b){var Ft=z(gt,He),ut=z(p,He),Ie={top:0,left:0};if(ut)if(ut.relative){var Rr=S(b,He?"y":"x");Ie.top=He?Rr+ut.top:ut.top,Ie.left=He?ut.left:Rr+ut.left}else Ie=ut;else if(o(p)&&p!=="#"){var zo=I(p);if(!zo)return;Ie=P(zo,b)}Ft&&(Ie.top+=Ft.top,Ie.left+=Ft.left),Br&&(Ie.top=Math.max(0,Ie.top-B(Br).height));var jn=re(b),qn=jn.viewport,Vo=jn.size;if(Ie.top=He?Math.max(0,Math.min(Vo.height-qn.height,Ie.top)):S(b,"y"),Ie.left=rt?Math.max(0,Math.min(Vo.width-qn.width,Ie.left)):S(b,"x"),this.hook(ae,"before",Ie,ie)===!1){L.opts=null;return}L.pos=Ie,this.start(ae),this.bind(!1,!0)}}},m.prototype.toTop=function(p,d){this.to(p,t({},d||{},{vertical:!0,horizontal:!1}))},m.prototype.toLeft=function(p,d){this.to(p,t({},d||{},{vertical:!1,horizontal:!0}))},m.prototype.toElement=function(p,d){var g=this.$el;!e||!g||this.to(P(p,g),d||{})},m.prototype.stop=function(p){p===void 0&&(p=!1);var d=this,g=d.$el,b=d.ctx,L=b.pos;!g||!b.progress||(m.caf(b.id),b.progress=!1,b.start=0,b.id=0,p&&L&&(E(g,L.left,"x"),E(g,L.top,"y")),this.complete())},m.prototype.update=function(p){if(this.$el){var d=t({},this.opts,p);this.stop(),this.unbind(!0,!0),this.opts=d,this.bind(!0,!1)}},m.prototype.destroy=function(){this.$el&&(this.stop(),this.unbind(!0,!0),this.$el=null)},m.prototype.onBefore=function(p,d){return!0},m.prototype.onStep=function(p){},m.prototype.onAfter=function(p,d){},m.prototype.onCancel=function(){},m.prototype.onComplete=function(p){},m.prototype.start=function(p){var d=this.ctx;d.opts=p,d.progress=!0,d.easing=i(p.easing)?p.easing:O[p.easing];var g=this.$el,b={top:S(g,"y"),left:S(g,"x")};d.startPos=b,d.id=m.raf(this.loop)},m.prototype.complete=function(){var p=this,d=p.$el,g=p.ctx,b=g.hash,L=g.cancel,oe=g.opts,ie=g.pos,ae=g.$trigger;if(!(!d||!oe)){if(b!=null&&b!==window.location.hash){var gt=oe.updateURL;e&&r&&gt!==!1&&window.history[gt==="replace"?"replaceState":"pushState"](null,"",b)}this.unbind(!1,!0),g.opts=null,g.$trigger=null,L?this.hook(oe,"cancel"):this.hook(oe,"after",ie,ae),this.hook(oe,"complete",L)}},m.prototype.hook=function(p,d){for(var g=[],b=2;b<arguments.length;b++)g[b-2]=arguments[b];var L,oe=p[d],ie,ae;return i(oe)&&(ie=oe.apply(this,g.concat([this]))),ae=(L=this)["on"+(d[0].toUpperCase()+d.slice(1))].apply(L,g),ie!==void 0?ie:ae},m.prototype.bind=function(p,d){var g=this,b=g.$el,L=g.ctx.opts;b&&(p&&M(b,ne,this.handleClick,!1),d&&M(b,pe,this.handleStop,L?L.cancellable:!0))},m.prototype.unbind=function(p,d){var g=this,b=g.$el,L=g.ctx.opts;b&&(p&&R(b,ne,this.handleClick,!1),d&&R(b,pe,this.handleStop,L?L.cancellable:!0))},m.raf=c,m.caf=l,m}();return Ee})});var og=C((oF,ng)=>{ng.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Xt=C(Pr=>{var kc,gE=[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];Pr.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};Pr.getSymbolTotalCodewords=function(e){return gE[e]};Pr.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};Pr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');kc=e};Pr.isKanjiModeEnabled=function(){return typeof kc<"u"};Pr.toSJIS=function(e){return kc(e)}});var Bs=C(Ke=>{Ke.L={bit:1};Ke.M={bit:0};Ke.Q={bit:3};Ke.H={bit:2};function yE(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return Ke.L;case"m":case"medium":return Ke.M;case"q":case"quartile":return Ke.Q;case"h":case"high":return Ke.H;default:throw new Error("Unknown EC Level: "+t)}}Ke.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};Ke.from=function(e,r){if(Ke.isValid(e))return e;try{return yE(e)}catch{return r}}});var ag=C((aF,sg)=>{function ig(){this.buffer=[],this.length=0}ig.prototype={get:function(t){let e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};sg.exports=ig});var cg=C((uF,ug)=>{function Ro(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}Ro.prototype.set=function(t,e,r,n){let o=t*this.size+e;this.data[o]=r,n&&(this.reservedBit[o]=!0)};Ro.prototype.get=function(t,e){return this.data[t*this.size+e]};Ro.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};Ro.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};ug.exports=Ro});var lg=C(Rs=>{var xE=Xt().getSymbolSize;Rs.getRowColCoords=function(e){if(e===1)return[];let r=Math.floor(e/7)+2,n=xE(e),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()};Rs.getPositions=function(e){let r=[],n=Rs.getRowColCoords(e),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 hg=C(pg=>{var bE=Xt().getSymbolSize,fg=7;pg.getPositions=function(e){let r=bE(e);return[[0,0],[r-fg,0],[0,r-fg]]}});var dg=C(ce=>{ce.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var $r={N1:3,N2:3,N3:40,N4:10};ce.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};ce.from=function(e){return ce.isValid(e)?parseInt(e,10):void 0};ce.getPenaltyN1=function(e){let r=e.size,n=0,o=0,i=0,s=null,a=null;for(let u=0;u<r;u++){o=i=0,s=a=null;for(let c=0;c<r;c++){let l=e.get(u,c);l===s?o++:(o>=5&&(n+=$r.N1+(o-5)),s=l,o=1),l=e.get(c,u),l===a?i++:(i>=5&&(n+=$r.N1+(i-5)),a=l,i=1)}o>=5&&(n+=$r.N1+(o-5)),i>=5&&(n+=$r.N1+(i-5))}return n};ce.getPenaltyN2=function(e){let r=e.size,n=0;for(let o=0;o<r-1;o++)for(let i=0;i<r-1;i++){let s=e.get(o,i)+e.get(o,i+1)+e.get(o+1,i)+e.get(o+1,i+1);(s===4||s===0)&&n++}return n*$r.N2};ce.getPenaltyN3=function(e){let r=e.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|e.get(s,a),a>=10&&(o===1488||o===93)&&n++,i=i<<1&2047|e.get(a,s),a>=10&&(i===1488||i===93)&&n++}return n*$r.N3};ce.getPenaltyN4=function(e){let r=0,n=e.data.length;for(let i=0;i<n;i++)r+=e.data[i];return Math.abs(Math.ceil(r*100/n/5)-10)*$r.N4};function vE(t,e,r){switch(t){case ce.Patterns.PATTERN000:return(e+r)%2===0;case ce.Patterns.PATTERN001:return e%2===0;case ce.Patterns.PATTERN010:return r%3===0;case ce.Patterns.PATTERN011:return(e+r)%3===0;case ce.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2===0;case ce.Patterns.PATTERN101:return e*r%2+e*r%3===0;case ce.Patterns.PATTERN110:return(e*r%2+e*r%3)%2===0;case ce.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}ce.applyMask=function(e,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,vE(e,i,o))};ce.getBestMask=function(e,r){let n=Object.keys(ce.Patterns).length,o=0,i=1/0;for(let s=0;s<n;s++){r(s),ce.applyMask(s,e);let a=ce.getPenaltyN1(e)+ce.getPenaltyN2(e)+ce.getPenaltyN3(e)+ce.getPenaltyN4(e);ce.applyMask(s,e),a<i&&(i=a,o=s)}return o}});var qc=C(jc=>{var Kt=Bs(),Fs=[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],Us=[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];jc.getBlocksCount=function(e,r){switch(r){case Kt.L:return Fs[(e-1)*4+0];case Kt.M:return Fs[(e-1)*4+1];case Kt.Q:return Fs[(e-1)*4+2];case Kt.H:return Fs[(e-1)*4+3];default:return}};jc.getTotalCodewordsCount=function(e,r){switch(r){case Kt.L:return Us[(e-1)*4+0];case Kt.M:return Us[(e-1)*4+1];case Kt.Q:return Us[(e-1)*4+2];case Kt.H:return Us[(e-1)*4+3];default:return}}});var mg=C(ks=>{var Fo=new Uint8Array(512),Ls=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)Fo[r]=e,Ls[e]=r,e<<=1,e&256&&(e^=285);for(let r=255;r<512;r++)Fo[r]=Fo[r-255]})();ks.log=function(e){if(e<1)throw new Error("log("+e+")");return Ls[e]};ks.exp=function(e){return Fo[e]};ks.mul=function(e,r){return e===0||r===0?0:Fo[Ls[e]+Ls[r]]}});var gg=C(Uo=>{var Wc=mg();Uo.mul=function(e,r){let n=new Uint8Array(e.length+r.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<r.length;i++)n[o+i]^=Wc.mul(e[o],r[i]);return n};Uo.mod=function(e,r){let n=new Uint8Array(e);for(;n.length-r.length>=0;){let o=n[0];for(let s=0;s<r.length;s++)n[s]^=Wc.mul(r[s],o);let i=0;for(;i<n.length&&n[i]===0;)i++;n=n.slice(i)}return n};Uo.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let n=0;n<e;n++)r=Uo.mul(r,new Uint8Array([1,Wc.exp(n)]));return r}});var bg=C((mF,xg)=>{var yg=gg();function Hc(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}Hc.prototype.initialize=function(e){this.degree=e,this.genPoly=yg.generateECPolynomial(this.degree)};Hc.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(e.length+this.degree);r.set(e);let n=yg.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};xg.exports=Hc});var zc=C(vg=>{vg.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var Vc=C(Nt=>{var wg="[0-9]+",wE="[A-Z $%*+\\-./:]+",Lo="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Lo=Lo.replace(/u/g,"\\u");var SE="(?:(?![A-Z0-9 $%*+\\-./:]|"+Lo+`)(?:.|[\r
6
+ ]))+`;Nt.KANJI=new RegExp(Lo,"g");Nt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Nt.BYTE=new RegExp(SE,"g");Nt.NUMERIC=new RegExp(wg,"g");Nt.ALPHANUMERIC=new RegExp(wE,"g");var EE=new RegExp("^"+Lo+"$"),TE=new RegExp("^"+wg+"$"),_E=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Nt.testKanji=function(e){return EE.test(e)};Nt.testNumeric=function(e){return TE.test(e)};Nt.testAlphanumeric=function(e){return _E.test(e)}});var er=C(we=>{var CE=zc(),Gc=Vc();we.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};we.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};we.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};we.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};we.MIXED={bit:-1};we.getCharCountIndicator=function(e,r){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!CE.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?e.ccBits[0]:r<27?e.ccBits[1]:e.ccBits[2]};we.getBestModeForData=function(e){return Gc.testNumeric(e)?we.NUMERIC:Gc.testAlphanumeric(e)?we.ALPHANUMERIC:Gc.testKanji(e)?we.KANJI:we.BYTE};we.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};we.isValid=function(e){return e&&e.bit&&e.ccBits};function AE(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return we.NUMERIC;case"alphanumeric":return we.ALPHANUMERIC;case"kanji":return we.KANJI;case"byte":return we.BYTE;default:throw new Error("Unknown mode: "+t)}}we.from=function(e,r){if(we.isValid(e))return e;try{return AE(e)}catch{return r}}});var Cg=C(Nr=>{var js=Xt(),IE=qc(),Sg=Bs(),tr=er(),Jc=zc(),Tg=7973,Eg=js.getBCHDigit(Tg);function ME(t,e,r){for(let n=1;n<=40;n++)if(e<=Nr.getCapacity(n,r,t))return n}function _g(t,e){return tr.getCharCountIndicator(t,e)+4}function PE(t,e){let r=0;return t.forEach(function(n){let o=_g(n.mode,e);r+=o+n.getBitsLength()}),r}function $E(t,e){for(let r=1;r<=40;r++)if(PE(t,r)<=Nr.getCapacity(r,e,tr.MIXED))return r}Nr.from=function(e,r){return Jc.isValid(e)?parseInt(e,10):r};Nr.getCapacity=function(e,r,n){if(!Jc.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=tr.BYTE);let o=js.getSymbolTotalCodewords(e),i=IE.getTotalCodewordsCount(e,r),s=(o-i)*8;if(n===tr.MIXED)return s;let a=s-_g(n,e);switch(n){case tr.NUMERIC:return Math.floor(a/10*3);case tr.ALPHANUMERIC:return Math.floor(a/11*2);case tr.KANJI:return Math.floor(a/13);case tr.BYTE:default:return Math.floor(a/8)}};Nr.getBestVersionForData=function(e,r){let n,o=Sg.from(r,Sg.M);if(Array.isArray(e)){if(e.length>1)return $E(e,o);if(e.length===0)return 1;n=e[0]}else n=e;return ME(n.mode,n.getLength(),o)};Nr.getEncodedBits=function(e){if(!Jc.isValid(e)||e<7)throw new Error("Invalid QR Code version");let r=e<<12;for(;js.getBCHDigit(r)-Eg>=0;)r^=Tg<<js.getBCHDigit(r)-Eg;return e<<12|r}});var Pg=C(Mg=>{var Yc=Xt(),Ig=1335,NE=21522,Ag=Yc.getBCHDigit(Ig);Mg.getEncodedBits=function(e,r){let n=e.bit<<3|r,o=n<<10;for(;Yc.getBCHDigit(o)-Ag>=0;)o^=Ig<<Yc.getBCHDigit(o)-Ag;return(n<<10|o)^NE}});var Ng=C((wF,$g)=>{var OE=er();function $n(t){this.mode=OE.NUMERIC,this.data=t.toString()}$n.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};$n.prototype.getLength=function(){return this.data.length};$n.prototype.getBitsLength=function(){return $n.getBitsLength(this.data.length)};$n.prototype.write=function(e){let r,n,o;for(r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),o=parseInt(n,10),e.put(o,10);let i=this.data.length-r;i>0&&(n=this.data.substr(r),o=parseInt(n,10),e.put(o,i*3+1))};$g.exports=$n});var Dg=C((SF,Og)=>{var DE=er(),Qc=["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 Nn(t){this.mode=DE.ALPHANUMERIC,this.data=t}Nn.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};Nn.prototype.getLength=function(){return this.data.length};Nn.prototype.getBitsLength=function(){return Nn.getBitsLength(this.data.length)};Nn.prototype.write=function(e){let r;for(r=0;r+2<=this.data.length;r+=2){let n=Qc.indexOf(this.data[r])*45;n+=Qc.indexOf(this.data[r+1]),e.put(n,11)}this.data.length%2&&e.put(Qc.indexOf(this.data[r]),6)};Og.exports=Nn});var Rg=C((EF,Bg)=>{"use strict";Bg.exports=function(e){for(var r=[],n=e.length,o=0;o<n;o++){var i=e.charCodeAt(o);if(i>=55296&&i<=56319&&n>o+1){var s=e.charCodeAt(o+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,o+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer}});var Ug=C((TF,Fg)=>{var BE=Rg(),RE=er();function On(t){this.mode=RE.BYTE,typeof t=="string"&&(t=BE(t)),this.data=new Uint8Array(t)}On.getBitsLength=function(e){return e*8};On.prototype.getLength=function(){return this.data.length};On.prototype.getBitsLength=function(){return On.getBitsLength(this.data.length)};On.prototype.write=function(t){for(let e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};Fg.exports=On});var kg=C((_F,Lg)=>{var FE=er(),UE=Xt();function Dn(t){this.mode=FE.KANJI,this.data=t}Dn.getBitsLength=function(e){return e*13};Dn.prototype.getLength=function(){return this.data.length};Dn.prototype.getBitsLength=function(){return Dn.getBitsLength(this.data.length)};Dn.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=UE.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
7
+ Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),t.put(r,13)}};Lg.exports=Dn});var jg=C((CF,Zc)=>{"use strict";var ko={single_source_shortest_paths:function(t,e,r){var n={},o={};o[e]=0;var i=ko.PriorityQueue.make();i.push(e,0);for(var s,a,u,c,l,f,h,y,w;!i.empty();){s=i.pop(),a=s.value,c=s.cost,l=t[a]||{};for(u in l)l.hasOwnProperty(u)&&(f=l[u],h=c+f,y=o[u],w=typeof o[u]>"u",(w||y>h)&&(o[u]=h,i.push(u,h),n[u]=a))}if(typeof r<"u"&&typeof o[r]>"u"){var A=["Could not find a path from ",e," to ",r,"."].join("");throw new Error(A)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e,o;n;)r.push(n),o=t[n],n=t[n];return r.reverse(),r},find_path:function(t,e,r){var n=ko.single_source_shortest_paths(t,e,r);return ko.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var e=ko.PriorityQueue,r={},n;t=t||{};for(n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r.queue=[],r.sorter=t.sorter||e.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Zc<"u"&&(Zc.exports=ko)});var Yg=C(Bn=>{var ee=er(),Hg=Ng(),zg=Dg(),Vg=Ug(),Gg=kg(),jo=Vc(),qs=Xt(),LE=jg();function qg(t){return unescape(encodeURIComponent(t)).length}function qo(t,e,r){let n=[],o;for(;(o=t.exec(r))!==null;)n.push({data:o[0],index:o.index,mode:e,length:o[0].length});return n}function Jg(t){let e=qo(jo.NUMERIC,ee.NUMERIC,t),r=qo(jo.ALPHANUMERIC,ee.ALPHANUMERIC,t),n,o;return qs.isKanjiModeEnabled()?(n=qo(jo.BYTE,ee.BYTE,t),o=qo(jo.KANJI,ee.KANJI,t)):(n=qo(jo.BYTE_KANJI,ee.BYTE,t),o=[]),e.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 Xc(t,e){switch(e){case ee.NUMERIC:return Hg.getBitsLength(t);case ee.ALPHANUMERIC:return zg.getBitsLength(t);case ee.KANJI:return Gg.getBitsLength(t);case ee.BYTE:return Vg.getBitsLength(t)}}function kE(t){return t.reduce(function(e,r){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===r.mode?(e[e.length-1].data+=r.data,e):(e.push(r),e)},[])}function jE(t){let e=[];for(let r=0;r<t.length;r++){let n=t[r];switch(n.mode){case ee.NUMERIC:e.push([n,{data:n.data,mode:ee.ALPHANUMERIC,length:n.length},{data:n.data,mode:ee.BYTE,length:n.length}]);break;case ee.ALPHANUMERIC:e.push([n,{data:n.data,mode:ee.BYTE,length:n.length}]);break;case ee.KANJI:e.push([n,{data:n.data,mode:ee.BYTE,length:qg(n.data)}]);break;case ee.BYTE:e.push([{data:n.data,mode:ee.BYTE,length:qg(n.data)}])}}return e}function qE(t,e){let r={},n={start:{}},o=["start"];for(let i=0;i<t.length;i++){let s=t[i],a=[];for(let u=0;u<s.length;u++){let c=s[u],l=""+i+u;a.push(l),r[l]={node:c,lastCount:0},n[l]={};for(let f=0;f<o.length;f++){let h=o[f];r[h]&&r[h].node.mode===c.mode?(n[h][l]=Xc(r[h].lastCount+c.length,c.mode)-Xc(r[h].lastCount,c.mode),r[h].lastCount+=c.length):(r[h]&&(r[h].lastCount=c.length),n[h][l]=Xc(c.length,c.mode)+4+ee.getCharCountIndicator(c.mode,e))}}o=a}for(let i=0;i<o.length;i++)n[o[i]].end=0;return{map:n,table:r}}function Wg(t,e){let r,n=ee.getBestModeForData(t);if(r=ee.from(e,n),r!==ee.BYTE&&r.bit<n.bit)throw new Error('"'+t+'" cannot be encoded with mode '+ee.toString(r)+`.
8
+ Suggested mode is: `+ee.toString(n));switch(r===ee.KANJI&&!qs.isKanjiModeEnabled()&&(r=ee.BYTE),r){case ee.NUMERIC:return new Hg(t);case ee.ALPHANUMERIC:return new zg(t);case ee.KANJI:return new Gg(t);case ee.BYTE:return new Vg(t)}}Bn.fromArray=function(e){return e.reduce(function(r,n){return typeof n=="string"?r.push(Wg(n,null)):n.data&&r.push(Wg(n.data,n.mode)),r},[])};Bn.fromString=function(e,r){let n=Jg(e,qs.isKanjiModeEnabled()),o=jE(n),i=qE(o,r),s=LE.find_path(i.map,"start","end"),a=[];for(let u=1;u<s.length-1;u++)a.push(i.table[s[u]].node);return Bn.fromArray(kE(a))};Bn.rawSplit=function(e){return Bn.fromArray(Jg(e,qs.isKanjiModeEnabled()))}});var Zg=C(Qg=>{var Hs=Xt(),Kc=Bs(),WE=ag(),HE=cg(),zE=lg(),VE=hg(),rl=dg(),nl=qc(),GE=bg(),Ws=Cg(),JE=Pg(),YE=er(),el=Yg();function QE(t,e){let r=t.size,n=VE.getPositions(e);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 u=-1;u<=7;u++)s+u<=-1||r<=s+u||(a>=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?t.set(i+a,s+u,!0,!0):t.set(i+a,s+u,!1,!0))}}function ZE(t){let e=t.size;for(let r=8;r<e-8;r++){let n=r%2===0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}function XE(t,e){let r=zE.getPositions(e);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?t.set(o+s,i+a,!0,!0):t.set(o+s,i+a,!1,!0)}}function KE(t,e){let r=t.size,n=Ws.getEncodedBits(e),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,t.set(o,i,s,!0),t.set(i,o,s,!0)}function tl(t,e,r){let n=t.size,o=JE.getEncodedBits(e,r),i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?t.set(i,8,s,!0):i<8?t.set(i+1,8,s,!0):t.set(n-15+i,8,s,!0),i<8?t.set(8,n-i-1,s,!0):i<9?t.set(8,15-i-1+1,s,!0):t.set(8,15-i-1,s,!0);t.set(n-8,8,1,!0)}function eT(t,e){let r=t.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 u=0;u<2;u++)if(!t.isReserved(o,a-u)){let c=!1;s<e.length&&(c=(e[s]>>>i&1)===1),t.set(o,a-u,c),i--,i===-1&&(s++,i=7)}if(o+=n,o<0||r<=o){o-=n,n=-n;break}}}function tT(t,e,r){let n=new WE;r.forEach(function(u){n.put(u.mode.bit,4),n.put(u.getLength(),YE.getCharCountIndicator(u.mode,t)),u.write(n)});let o=Hs.getSymbolTotalCodewords(t),i=nl.getTotalCodewordsCount(t,e),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 u=0;u<a;u++)n.put(u%2?17:236,8);return rT(n,t,e)}function rT(t,e,r){let n=Hs.getSymbolTotalCodewords(e),o=nl.getTotalCodewordsCount(e,r),i=n-o,s=nl.getBlocksCount(e,r),a=n%s,u=s-a,c=Math.floor(n/s),l=Math.floor(i/s),f=l+1,h=c-l,y=new GE(h),w=0,A=new Array(s),O=new Array(s),_=0,I=new Uint8Array(t.buffer);for(let Y=0;Y<s;Y++){let F=Y<u?l:f;A[Y]=I.slice(w,w+F),O[Y]=y.encode(A[Y]),w+=F,_=Math.max(_,F)}let D=new Uint8Array(n),N=0,q,U;for(q=0;q<_;q++)for(U=0;U<s;U++)q<A[U].length&&(D[N++]=A[U][q]);for(q=0;q<h;q++)for(U=0;U<s;U++)D[N++]=O[U][q];return D}function nT(t,e,r,n){let o;if(Array.isArray(t))o=el.fromArray(t);else if(typeof t=="string"){let c=e;if(!c){let l=el.rawSplit(t);c=Ws.getBestVersionForData(l,r)}o=el.fromString(t,c||40)}else throw new Error("Invalid data");let i=Ws.getBestVersionForData(o,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=i;else if(e<i)throw new Error(`
9
9
  The chosen QR Code version cannot contain this amount of data.
10
10
  Minimum version required to store current data is: `+i+`.
11
- `);let s=KE(e,r,o),a=Hs.getSymbolSize(e),u=new qE(a);return JE(u,e),YE(u),QE(u,e),Kc(u,r,0),e>=7&&ZE(u,e),XE(u,s),isNaN(n)&&(n=el.getBestMask(u,Kc.bind(null,u,r))),el.applyMask(n,u),Kc(u,r,n),{modules:u,version:e,errorCorrectionLevel:r,maskPattern:n,segments:o}}Jg.create=function(e,r){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Zc.M,o,i;return typeof r<"u"&&(n=Zc.from(r.errorCorrectionLevel,Zc.M),o=Ws.from(r.version),i=el.from(r.maskPattern),r.toSJISFunc&&Hs.setToSJISFunction(r.toSJISFunc)),tT(e,o,n,i)}});var rl=C(Or=>{function Qg(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+t);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+e.slice(0,6).join("")}}Or.getOptions=function(e){e||(e={}),e.color||(e.color={});let r=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:n,scale:n?4:o,margin:r,color:{dark:Qg(e.color.dark||"#000000ff"),light:Qg(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};Or.getScale=function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale};Or.getImageWidth=function(e,r){let n=Or.getScale(e,r);return Math.floor((e+r.margin*2)*n)};Or.qrToImageData=function(e,r,n){let o=r.modules.size,i=r.modules.data,s=Or.getScale(o,n),a=Math.floor((o+n.margin*2)*s),u=n.margin*s,c=[n.color.light,n.color.dark];for(let l=0;l<a;l++)for(let f=0;f<a;f++){let h=(l*a+f)*4,y=n.color.light;if(l>=u&&f>=u&&l<a-u&&f<a-u){let w=Math.floor((l-u)/s),A=Math.floor((f-u)/s);y=c[i[w*o+A]?1:0]}e[h++]=y.r,e[h++]=y.g,e[h++]=y.b,e[h]=y.a}}});var Zg=C(zs=>{var nl=rl();function rT(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}function nT(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}zs.render=function(e,r,n){let o=n,i=r;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),r||(i=nT()),o=nl.getOptions(o);let s=nl.getImageWidth(e.modules.size,o),a=i.getContext("2d"),u=a.createImageData(s,s);return nl.qrToImageData(u.data,e,o),rT(a,i,s),a.putImageData(u,0,0),i};zs.renderToDataURL=function(e,r,n){let o=n;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),o||(o={});let i=zs.render(e,r,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}});var ey=C(Kg=>{var oT=rl();function Xg(t,e){let r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function ol(t,e,r){let n=t+e;return typeof r<"u"&&(n+=" "+r),n}function iT(t,e,r){let n="",o=0,i=!1,s=0;for(let a=0;a<t.length;a++){let u=Math.floor(a%e),c=Math.floor(a/e);!u&&!i&&(i=!0),t[a]?(s++,a>0&&u>0&&t[a-1]||(n+=i?ol("M",u+r,.5+c+r):ol("m",o,0),o=0,i=!1),u+1<e&&t[a+1]||(n+=ol("h",s),s=0)):o++}return n}Kg.render=function(e,r,n){let o=oT.getOptions(r),i=e.modules.size,s=e.modules.data,a=i+o.margin*2,u=o.color.light.a?"<path "+Xg(o.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",c="<path "+Xg(o.color.dark,"stroke")+' d="'+iT(s,i,o.margin)+'"/>',l='viewBox="0 0 '+a+" "+a+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+l+' shape-rendering="crispEdges">'+u+c+`</svg>
12
- `;return typeof n=="function"&&n(null,h),h}});var ry=C(qo=>{var sT=rg(),il=Yg(),ty=Zg(),aT=ey();function sl(t,e,r,n,o){let i=[].slice.call(arguments,1),s=i.length,a=typeof i[s-1]=="function";if(!a&&!sT())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=e,e=n=void 0):s===3&&(e.getContext&&typeof o>"u"?(o=n,n=void 0):(o=n,n=r,r=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=e,e=n=void 0):s===2&&!e.getContext&&(n=r,r=e,e=void 0),new Promise(function(u,c){try{let l=il.create(r,n);u(t(l,e,n))}catch(l){c(l)}})}try{let u=il.create(r,n);o(null,t(u,e,n))}catch(u){o(u)}}qo.create=il.create;qo.toCanvas=sl.bind(null,ty.render);qo.toDataURL=sl.bind(null,ty.renderToDataURL);qo.toString=sl.bind(null,function(t,e,r){return aT.render(t,r)})});var Go=globalThis,Jo=Go.ShadowRoot&&(Go.ShadyCSS===void 0||Go.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vs=Symbol(),ul=new WeakMap,jn=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Vs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Jo&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=ul.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ul.set(r,e))}return e}toString(){return this.cssText}},V=t=>new jn(typeof t=="string"?t:t+"",void 0,Vs),te=(t,...e)=>{let r=t.length===1?t[0]:e.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)+t[i+1],t[0]);return new jn(r,t,Vs)},Gs=(t,e)=>{if(Jo)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),o=Go.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)}},Yo=Jo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return V(r)})(t):t;var{is:dy,defineProperty:my,getOwnPropertyDescriptor:gy,getOwnPropertyNames:yy,getOwnPropertySymbols:xy,getPrototypeOf:by}=Object,Qo=globalThis,cl=Qo.trustedTypes,vy=cl?cl.emptyScript:"",wy=Qo.reactiveElementPolyfillSupport,qn=(t,e)=>t,Wn={toAttribute(t,e){switch(e){case Boolean:t=t?vy:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Zo=(t,e)=>!dy(t,e),ll={attribute:!0,type:String,converter:Wn,reflect:!1,hasChanged:Zo};Symbol.metadata??=Symbol("metadata"),Qo.litPropertyMetadata??=new WeakMap;var xt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=ll){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(e,n,r);o!==void 0&&my(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){let{get:o,set:i}=gy(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return o?.call(this)},set(s){let a=o?.call(this);i.call(this,s),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ll}static _$Ei(){if(this.hasOwnProperty(qn("elementProperties")))return;let e=by(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(qn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(qn("properties"))){let r=this.properties,n=[...yy(r),...xy(r)];for(let o of n)this.createProperty(o,r[o])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let o of n)r.unshift(Yo(o))}else e!==void 0&&r.push(Yo(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$ES??=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$ES?.splice(this._$ES.indexOf(e)>>>0,1)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Gs(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$ES?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$ES?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r){let n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(o!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:Wn).toAttribute(r,n.type);this._$Em=e,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(e,r){let n=this.constructor,o=n._$Eh.get(e);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:Wn;this._$Em=o,this[o]=s.fromAttribute(r,i.type),this._$Em=null}}requestUpdate(e,r,n,o=!1,i){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??Zo)(o?i:this[e],r))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$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)i.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.C(o,this[o],i)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$ES?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$ES?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};xt.elementStyles=[],xt.shadowRootOptions={mode:"open"},xt[qn("elementProperties")]=new Map,xt[qn("finalized")]=new Map,wy?.({ReactiveElement:xt}),(Qo.reactiveElementVersions??=[]).push("2.0.0");var Ys=globalThis,Xo=Ys.trustedTypes,fl=Xo?Xo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Qs="$lit$",bt=`lit$${(Math.random()+"").slice(9)}$`,Zs="?"+bt,Sy=`<${Zs}>`,sr=document,zn=()=>sr.createComment(""),Vn=t=>t===null||typeof t!="object"&&typeof t!="function",yl=Array.isArray,xl=t=>yl(t)||typeof t?.[Symbol.iterator]=="function",Js=`[
13
- \f\r]`,Hn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pl=/-->/g,hl=/>/g,or=RegExp(`>|${Js}(?:([^\\s"'>=/]+)(${Js}*=${Js}*(?:[^
14
- \f\r"'\`<>=]|("|')|))|$)`,"g"),dl=/'/g,ml=/"/g,bl=/^(?:script|style|textarea|title)$/i,vl=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),k=vl(1),hT=vl(2),Ee=Symbol.for("lit-noChange"),me=Symbol.for("lit-nothing"),gl=new WeakMap,ir=sr.createTreeWalker(sr,129);function wl(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return fl!==void 0?fl.createHTML(e):e}var Sl=(t,e)=>{let r=t.length-1,n=[],o,i=e===2?"<svg>":"",s=Hn;for(let a=0;a<r;a++){let u=t[a],c,l,f=-1,h=0;for(;h<u.length&&(s.lastIndex=h,l=s.exec(u),l!==null);)h=s.lastIndex,s===Hn?l[1]==="!--"?s=pl:l[1]!==void 0?s=hl:l[2]!==void 0?(bl.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=or):l[3]!==void 0&&(s=or):s===or?l[0]===">"?(s=o??Hn,f=-1):l[1]===void 0?f=-2:(f=s.lastIndex-l[2].length,c=l[1],s=l[3]===void 0?or:l[3]==='"'?ml:dl):s===ml||s===dl?s=or:s===pl||s===hl?s=Hn:(s=or,o=void 0);let y=s===or&&t[a+1].startsWith("/>")?" ":"";i+=s===Hn?u+Sy:f>=0?(n.push(c),u.slice(0,f)+Qs+u.slice(f)+bt+y):u+bt+(f===-2?a:y)}return[wl(t,i+(t[r]||"<?>")+(e===2?"</svg>":"")),n]},Gn=class t{constructor({strings:e,_$litType$:r},n){let o;this.parts=[];let i=0,s=0,a=e.length-1,u=this.parts,[c,l]=Sl(e,r);if(this.el=t.createElement(c,n),ir.currentNode=this.el.content,r===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=ir.nextNode())!==null&&u.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let f of o.getAttributeNames())if(f.endsWith(Qs)){let h=l[s++],y=o.getAttribute(f).split(bt),w=/([.?@])?(.*)/.exec(h);u.push({type:1,index:i,name:w[2],strings:y,ctor:w[1]==="."?ei:w[1]==="?"?ti:w[1]==="@"?ri:ur}),o.removeAttribute(f)}else f.startsWith(bt)&&(u.push({type:6,index:i}),o.removeAttribute(f));if(bl.test(o.tagName)){let f=o.textContent.split(bt),h=f.length-1;if(h>0){o.textContent=Xo?Xo.emptyScript:"";for(let y=0;y<h;y++)o.append(f[y],zn()),ir.nextNode(),u.push({type:2,index:++i});o.append(f[h],zn())}}}else if(o.nodeType===8)if(o.data===Zs)u.push({type:2,index:i});else{let f=-1;for(;(f=o.data.indexOf(bt,f+1))!==-1;)u.push({type:7,index:i}),f+=bt.length-1}i++}}static createElement(e,r){let n=sr.createElement("template");return n.innerHTML=e,n}};function ar(t,e,r=t,n){if(e===Ee)return e;let o=n!==void 0?r._$Co?.[n]:r._$Cl,i=Vn(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(t),o._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(e=ar(t,o._$AS(t,e.values),o,n)),e}var Ko=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,o=(e?.creationScope??sr).importNode(r,!0);ir.currentNode=o;let i=ir.nextNode(),s=0,a=0,u=n[0];for(;u!==void 0;){if(s===u.index){let c;u.type===2?c=new Fr(i,i.nextSibling,this,e):u.type===1?c=new u.ctor(i,u.name,u.strings,this,e):u.type===6&&(c=new ni(i,this,e)),this._$AV.push(c),u=n[++a]}s!==u?.index&&(i=ir.nextNode(),s++)}return ir.currentNode=sr,o}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Fr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,o){this.type=2,this._$AH=me,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ar(this,e,r),Vn(e)?e===me||e==null||e===""?(this._$AH!==me&&this._$AR(),this._$AH=me):e!==this._$AH&&e!==Ee&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):xl(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==me&&Vn(this._$AH)?this._$AA.nextSibling.data=e:this.$(sr.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Gn.createElement(wl(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let i=new Ko(o,this),s=i.u(this.options);i.p(r),this.$(s),this._$AH=i}}_$AC(e){let r=gl.get(e.strings);return r===void 0&&gl.set(e.strings,r=new Gn(e)),r}T(e){yl(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,o=0;for(let i of e)o===r.length?r.push(n=new t(this.k(zn()),this.k(zn()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,o,i){this.type=1,this._$AH=me,this._$AN=void 0,this.element=e,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=me}_$AI(e,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)e=ar(this,e,r,0),s=!Vn(e)||e!==this._$AH&&e!==Ee,s&&(this._$AH=e);else{let a=e,u,c;for(e=i[0],u=0;u<i.length-1;u++)c=ar(this,a[n+u],r,u),c===Ee&&(c=this._$AH[u]),s||=!Vn(c)||c!==this._$AH[u],c===me?e=me:e!==me&&(e+=(c??"")+i[u+1]),this._$AH[u]=c}s&&!o&&this.j(e)}j(e){e===me?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ei=class extends ur{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===me?void 0:e}},ti=class extends ur{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==me)}},ri=class extends ur{constructor(e,r,n,o,i){super(e,r,n,o,i),this.type=5}_$AI(e,r=this){if((e=ar(this,e,r,0)??me)===Ee)return;let n=this._$AH,o=e===me&&n!==me||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==me&&(n===me||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ni=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ar(this,e)}},El={S:Qs,A:bt,P:Zs,C:1,M:Sl,L:Ko,R:xl,V:ar,D:Fr,I:ur,H:ti,N:ri,U:ei,B:ni},Ey=Ys.litHtmlPolyfillSupport;Ey?.(Gn,Fr),(Ys.litHtmlVersions??=[]).push("3.0.0");var Jn=(t,e,r)=>{let n=r?.renderBefore??e,o=n._$litPart$;if(o===void 0){let i=r?.renderBefore??null;n._$litPart$=o=new Fr(e.insertBefore(zn(),i),i,void 0,r??{})}return o._$AI(t),o};var Ut=class extends xt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Jn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};Ut._$litElement$=!0,Ut["finalized"]=!0,globalThis.litElementHydrateSupport?.({LitElement:Ut});var Ty=globalThis.litElementPolyfillSupport;Ty?.({LitElement:Ut});(globalThis.litElementVersions??=[]).push("4.0.0");var jm=De(ii(),1);var xe={};X(xe,{ObservableIntake:()=>ha,Observablemap:()=>pa,rxjs:()=>to});var Q={};X(Q,{CumulativeDeferred:()=>ai,Deferred:()=>si,cumulativeDefer:()=>Cy,defer:()=>cr,getFirstTrueOrFalse:()=>$y,map:()=>My,rejectedPromise:()=>Iy,resolvedPromise:()=>Ay,timeoutAndContinue:()=>Py,timeoutWrap:()=>Tl});var si=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},cr=()=>new si;var ai=class{constructor(){this.accumulatedPromises=[],this.deferred=cr(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(e){this.accumulatedPromises.push(e)}},Cy=()=>new ai;var Ay=t=>Promise.resolve(t),Iy=t=>Promise.reject(t),My=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},Tl=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),Py=async(t,e=6e4)=>Tl(t,e,!1),$y=async t=>{let e=cr();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise};var to={};X(to,{Observable:()=>le,ReplaySubject:()=>na,Subject:()=>wt,Subscription:()=>ot,from:()=>Kn,fromEvent:()=>mr,ops:()=>n0});var Xs=function(t,e){return Xs=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])},Xs(t,e)};function Re(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Xs(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function _l(t,e,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(l){try{c(n.next(l))}catch(f){s(f)}}function u(l){try{c(n.throw(l))}catch(f){s(f)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function ui(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(l){c=[6,l],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function vt(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ze(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >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 nt(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}function lr(t){return this instanceof lr?(this.v=t,this):new lr(t)}function Cl(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(h){n[h]&&(o[h]=function(y){return new Promise(function(w,A){i.push([h,y,w,A])>1||a(h,y)})})}function a(h,y){try{u(n[h](y))}catch(w){f(i[0][3],w)}}function u(h){h.value instanceof lr?Promise.resolve(h.value.v).then(c,l):f(i[0][2],h)}function c(h){a("next",h)}function l(h){a("throw",h)}function f(h,y){h(y),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Al(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof vt=="function"?vt(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,u){s=t[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}function G(t){return typeof t=="function"}function ci(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var li=ci(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
11
+ `);let s=tT(e,r,o),a=Hs.getSymbolSize(e),u=new HE(a);return QE(u,e),ZE(u),XE(u,e),tl(u,r,0),e>=7&&KE(u,e),eT(u,s),isNaN(n)&&(n=rl.getBestMask(u,tl.bind(null,u,r))),rl.applyMask(n,u),tl(u,r,n),{modules:u,version:e,errorCorrectionLevel:r,maskPattern:n,segments:o}}Qg.create=function(e,r){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Kc.M,o,i;return typeof r<"u"&&(n=Kc.from(r.errorCorrectionLevel,Kc.M),o=Ws.from(r.version),i=rl.from(r.maskPattern),r.toSJISFunc&&Hs.setToSJISFunction(r.toSJISFunc)),nT(e,o,n,i)}});var ol=C(Or=>{function Xg(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+t);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+e.slice(0,6).join("")}}Or.getOptions=function(e){e||(e={}),e.color||(e.color={});let r=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:n,scale:n?4:o,margin:r,color:{dark:Xg(e.color.dark||"#000000ff"),light:Xg(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};Or.getScale=function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale};Or.getImageWidth=function(e,r){let n=Or.getScale(e,r);return Math.floor((e+r.margin*2)*n)};Or.qrToImageData=function(e,r,n){let o=r.modules.size,i=r.modules.data,s=Or.getScale(o,n),a=Math.floor((o+n.margin*2)*s),u=n.margin*s,c=[n.color.light,n.color.dark];for(let l=0;l<a;l++)for(let f=0;f<a;f++){let h=(l*a+f)*4,y=n.color.light;if(l>=u&&f>=u&&l<a-u&&f<a-u){let w=Math.floor((l-u)/s),A=Math.floor((f-u)/s);y=c[i[w*o+A]?1:0]}e[h++]=y.r,e[h++]=y.g,e[h++]=y.b,e[h]=y.a}}});var Kg=C(zs=>{var il=ol();function oT(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}function iT(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}zs.render=function(e,r,n){let o=n,i=r;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),r||(i=iT()),o=il.getOptions(o);let s=il.getImageWidth(e.modules.size,o),a=i.getContext("2d"),u=a.createImageData(s,s);return il.qrToImageData(u.data,e,o),oT(a,i,s),a.putImageData(u,0,0),i};zs.renderToDataURL=function(e,r,n){let o=n;typeof o>"u"&&(!r||!r.getContext)&&(o=r,r=void 0),o||(o={});let i=zs.render(e,r,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}});var ry=C(ty=>{var sT=ol();function ey(t,e){let r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function sl(t,e,r){let n=t+e;return typeof r<"u"&&(n+=" "+r),n}function aT(t,e,r){let n="",o=0,i=!1,s=0;for(let a=0;a<t.length;a++){let u=Math.floor(a%e),c=Math.floor(a/e);!u&&!i&&(i=!0),t[a]?(s++,a>0&&u>0&&t[a-1]||(n+=i?sl("M",u+r,.5+c+r):sl("m",o,0),o=0,i=!1),u+1<e&&t[a+1]||(n+=sl("h",s),s=0)):o++}return n}ty.render=function(e,r,n){let o=sT.getOptions(r),i=e.modules.size,s=e.modules.data,a=i+o.margin*2,u=o.color.light.a?"<path "+ey(o.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",c="<path "+ey(o.color.dark,"stroke")+' d="'+aT(s,i,o.margin)+'"/>',l='viewBox="0 0 '+a+" "+a+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+l+' shape-rendering="crispEdges">'+u+c+`</svg>
12
+ `;return typeof n=="function"&&n(null,h),h}});var oy=C(Wo=>{var uT=og(),al=Zg(),ny=Kg(),cT=ry();function ul(t,e,r,n,o){let i=[].slice.call(arguments,1),s=i.length,a=typeof i[s-1]=="function";if(!a&&!uT())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=e,e=n=void 0):s===3&&(e.getContext&&typeof o>"u"?(o=n,n=void 0):(o=n,n=r,r=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=e,e=n=void 0):s===2&&!e.getContext&&(n=r,r=e,e=void 0),new Promise(function(u,c){try{let l=al.create(r,n);u(t(l,e,n))}catch(l){c(l)}})}try{let u=al.create(r,n);o(null,t(u,e,n))}catch(u){o(u)}}Wo.create=al.create;Wo.toCanvas=ul.bind(null,ny.render);Wo.toDataURL=ul.bind(null,ny.renderToDataURL);Wo.toString=ul.bind(null,function(t,e,r){return cT.render(t,r)})});var Jo=globalThis,Yo=Jo.ShadowRoot&&(Jo.ShadyCSS===void 0||Jo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vs=Symbol(),ll=new WeakMap,Wn=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Vs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Yo&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=ll.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ll.set(r,e))}return e}toString(){return this.cssText}},V=t=>new Wn(typeof t=="string"?t:t+"",void 0,Vs),te=(t,...e)=>{let r=t.length===1?t[0]:e.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)+t[i+1],t[0]);return new Wn(r,t,Vs)},Gs=(t,e)=>{if(Yo)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),o=Jo.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)}},Qo=Yo?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return V(r)})(t):t;var{is:gy,defineProperty:yy,getOwnPropertyDescriptor:xy,getOwnPropertyNames:by,getOwnPropertySymbols:vy,getPrototypeOf:wy}=Object,Zo=globalThis,fl=Zo.trustedTypes,Sy=fl?fl.emptyScript:"",Ey=Zo.reactiveElementPolyfillSupport,Hn=(t,e)=>t,zn={toAttribute(t,e){switch(e){case Boolean:t=t?Sy:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Xo=(t,e)=>!gy(t,e),pl={attribute:!0,type:String,converter:zn,reflect:!1,hasChanged:Xo};Symbol.metadata??=Symbol("metadata"),Zo.litPropertyMetadata??=new WeakMap;var xt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=pl){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),o=this.getPropertyDescriptor(e,n,r);o!==void 0&&yy(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){let{get:o,set:i}=xy(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return o?.call(this)},set(s){let a=o?.call(this);i.call(this,s),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??pl}static _$Ei(){if(this.hasOwnProperty(Hn("elementProperties")))return;let e=wy(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Hn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Hn("properties"))){let r=this.properties,n=[...by(r),...vy(r)];for(let o of n)this.createProperty(o,r[o])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,o]of r)this.elementProperties.set(n,o)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let o=this._$Eu(r,n);o!==void 0&&this._$Eh.set(o,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let o of n)r.unshift(Qo(o))}else e!==void 0&&r.push(Qo(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Gs(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r){let n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(o!==void 0&&n.reflect===!0){let i=(n.converter?.toAttribute!==void 0?n.converter:zn).toAttribute(r,n.type);this._$Em=e,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(e,r){let n=this.constructor,o=n._$Eh.get(e);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:zn;this._$Em=o,this[o]=s.fromAttribute(r,i.type),this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??Xo)(this[e],r))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$ET??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[o,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)i.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.C(o,this[o],i)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$Ej()}catch(n){throw e=!1,this._$Ej(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ej(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$ET&&=this._$ET.forEach(r=>this._$EO(r,this[r])),this._$Ej()}updated(e){}firstUpdated(e){}};xt.elementStyles=[],xt.shadowRootOptions={mode:"open"},xt[Hn("elementProperties")]=new Map,xt[Hn("finalized")]=new Map,Ey?.({ReactiveElement:xt}),(Zo.reactiveElementVersions??=[]).push("2.0.3");var Ys=globalThis,Ko=Ys.trustedTypes,hl=Ko?Ko.createPolicy("lit-html",{createHTML:t=>t}):void 0,Qs="$lit$",bt=`lit$${(Math.random()+"").slice(9)}$`,Zs="?"+bt,Ty=`<${Zs}>`,sr=document,Gn=()=>sr.createComment(""),Jn=t=>t===null||typeof t!="object"&&typeof t!="function",bl=Array.isArray,vl=t=>bl(t)||typeof t?.[Symbol.iterator]=="function",Js=`[
13
+ \f\r]`,Vn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dl=/-->/g,ml=/>/g,or=RegExp(`>|${Js}(?:([^\\s"'>=/]+)(${Js}*=${Js}*(?:[^
14
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),gl=/'/g,yl=/"/g,wl=/^(?:script|style|textarea|title)$/i,Sl=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),k=Sl(1),mT=Sl(2),xe=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),xl=new WeakMap,ir=sr.createTreeWalker(sr,129);function El(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return hl!==void 0?hl.createHTML(e):e}var Tl=(t,e)=>{let r=t.length-1,n=[],o,i=e===2?"<svg>":"",s=Vn;for(let a=0;a<r;a++){let u=t[a],c,l,f=-1,h=0;for(;h<u.length&&(s.lastIndex=h,l=s.exec(u),l!==null);)h=s.lastIndex,s===Vn?l[1]==="!--"?s=dl:l[1]!==void 0?s=ml:l[2]!==void 0?(wl.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=or):l[3]!==void 0&&(s=or):s===or?l[0]===">"?(s=o??Vn,f=-1):l[1]===void 0?f=-2:(f=s.lastIndex-l[2].length,c=l[1],s=l[3]===void 0?or:l[3]==='"'?yl:gl):s===yl||s===gl?s=or:s===dl||s===ml?s=Vn:(s=or,o=void 0);let y=s===or&&t[a+1].startsWith("/>")?" ":"";i+=s===Vn?u+Ty:f>=0?(n.push(c),u.slice(0,f)+Qs+u.slice(f)+bt+y):u+bt+(f===-2?a:y)}return[El(t,i+(t[r]||"<?>")+(e===2?"</svg>":"")),n]},Yn=class t{constructor({strings:e,_$litType$:r},n){let o;this.parts=[];let i=0,s=0,a=e.length-1,u=this.parts,[c,l]=Tl(e,r);if(this.el=t.createElement(c,n),ir.currentNode=this.el.content,r===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=ir.nextNode())!==null&&u.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let f of o.getAttributeNames())if(f.endsWith(Qs)){let h=l[s++],y=o.getAttribute(f).split(bt),w=/([.?@])?(.*)/.exec(h);u.push({type:1,index:i,name:w[2],strings:y,ctor:w[1]==="."?ti:w[1]==="?"?ri:w[1]==="@"?ni:ur}),o.removeAttribute(f)}else f.startsWith(bt)&&(u.push({type:6,index:i}),o.removeAttribute(f));if(wl.test(o.tagName)){let f=o.textContent.split(bt),h=f.length-1;if(h>0){o.textContent=Ko?Ko.emptyScript:"";for(let y=0;y<h;y++)o.append(f[y],Gn()),ir.nextNode(),u.push({type:2,index:++i});o.append(f[h],Gn())}}}else if(o.nodeType===8)if(o.data===Zs)u.push({type:2,index:i});else{let f=-1;for(;(f=o.data.indexOf(bt,f+1))!==-1;)u.push({type:7,index:i}),f+=bt.length-1}i++}}static createElement(e,r){let n=sr.createElement("template");return n.innerHTML=e,n}};function ar(t,e,r=t,n){if(e===xe)return e;let o=n!==void 0?r._$Co?.[n]:r._$Cl,i=Jn(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(t),o._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=o:r._$Cl=o),o!==void 0&&(e=ar(t,o._$AS(t,e.values),o,n)),e}var ei=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,o=(e?.creationScope??sr).importNode(r,!0);ir.currentNode=o;let i=ir.nextNode(),s=0,a=0,u=n[0];for(;u!==void 0;){if(s===u.index){let c;u.type===2?c=new Fr(i,i.nextSibling,this,e):u.type===1?c=new u.ctor(i,u.name,u.strings,this,e):u.type===6&&(c=new oi(i,this,e)),this._$AV.push(c),u=n[++a]}s!==u?.index&&(i=ir.nextNode(),s++)}return ir.currentNode=sr,o}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Fr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,o){this.type=2,this._$AH=ge,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ar(this,e,r),Jn(e)?e===ge||e==null||e===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):e!==this._$AH&&e!==xe&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):vl(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ge&&Jn(this._$AH)?this._$AA.nextSibling.data=e:this.$(sr.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Yn.createElement(El(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(r);else{let i=new ei(o,this),s=i.u(this.options);i.p(r),this.$(s),this._$AH=i}}_$AC(e){let r=xl.get(e.strings);return r===void 0&&xl.set(e.strings,r=new Yn(e)),r}T(e){bl(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,o=0;for(let i of e)o===r.length?r.push(n=new t(this.k(Gn()),this.k(Gn()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ur=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,o,i){this.type=1,this._$AH=ge,this._$AN=void 0,this.element=e,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=ge}_$AI(e,r=this,n,o){let i=this.strings,s=!1;if(i===void 0)e=ar(this,e,r,0),s=!Jn(e)||e!==this._$AH&&e!==xe,s&&(this._$AH=e);else{let a=e,u,c;for(e=i[0],u=0;u<i.length-1;u++)c=ar(this,a[n+u],r,u),c===xe&&(c=this._$AH[u]),s||=!Jn(c)||c!==this._$AH[u],c===ge?e=ge:e!==ge&&(e+=(c??"")+i[u+1]),this._$AH[u]=c}s&&!o&&this.O(e)}O(e){e===ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ti=class extends ur{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===ge?void 0:e}},ri=class extends ur{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==ge)}},ni=class extends ur{constructor(e,r,n,o,i){super(e,r,n,o,i),this.type=5}_$AI(e,r=this){if((e=ar(this,e,r,0)??ge)===xe)return;let n=this._$AH,o=e===ge&&n!==ge||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==ge&&(n===ge||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},oi=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ar(this,e)}},_l={j:Qs,P:bt,A:Zs,C:1,M:Tl,L:ei,R:vl,V:ar,D:Fr,I:ur,H:ri,N:ni,U:ti,B:oi},_y=Ys.litHtmlPolyfillSupport;_y?.(Yn,Fr),(Ys.litHtmlVersions??=[]).push("3.1.1");var Qn=(t,e,r)=>{let n=r?.renderBefore??e,o=n._$litPart$;if(o===void 0){let i=r?.renderBefore??null;n._$litPart$=o=new Fr(e.insertBefore(Gn(),i),i,void 0,r??{})}return o._$AI(t),o};var Ut=class extends xt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Qn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return xe}};Ut._$litElement$=!0,Ut.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ut});var Cy=globalThis.litElementPolyfillSupport;Cy?.({LitElement:Ut});(globalThis.litElementVersions??=[]).push("4.0.3");var Wm=De(si(),1);var de={};X(de,{ObservableIntake:()=>da,Observablemap:()=>ha,rxjs:()=>ro});var Q={};X(Q,{CumulativeDeferred:()=>ui,Deferred:()=>ai,cumulativeDefer:()=>Iy,defer:()=>cr,getFirstTrueOrFalse:()=>Oy,map:()=>$y,rejectedPromise:()=>Py,resolvedPromise:()=>My,timeoutAndContinue:()=>Ny,timeoutWrap:()=>Cl});var ai=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},cr=()=>new ai;var ui=class{constructor(){this.accumulatedPromises=[],this.deferred=cr(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(e){this.accumulatedPromises.push(e)}},Iy=()=>new ui;var My=t=>Promise.resolve(t),Py=t=>Promise.reject(t),$y=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},Cl=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),Ny=async(t,e=6e4)=>Cl(t,e,!1),Oy=async t=>{let e=cr();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise};var ro={};X(ro,{Observable:()=>le,ReplaySubject:()=>na,Subject:()=>wt,Subscription:()=>ot,from:()=>dr,fromEvent:()=>gr,of:()=>ia,ops:()=>i0});var Xs=function(t,e){return Xs=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])},Xs(t,e)};function Re(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Xs(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Al(t,e,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(l){try{c(n.next(l))}catch(f){s(f)}}function u(l){try{c(n.throw(l))}catch(f){s(f)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function ci(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(l){c=[6,l],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function vt(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ze(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{for(;(e===void 0||e-- >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 nt(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n<o;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}function lr(t){return this instanceof lr?(this.v=t,this):new lr(t)}function Il(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(h){n[h]&&(o[h]=function(y){return new Promise(function(w,A){i.push([h,y,w,A])>1||a(h,y)})})}function a(h,y){try{u(n[h](y))}catch(w){f(i[0][3],w)}}function u(h){h.value instanceof lr?Promise.resolve(h.value.v).then(c,l):f(i[0][2],h)}function c(h){a("next",h)}function l(h){a("throw",h)}function f(h,y){h(y),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Ml(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof vt=="function"?vt(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,u){s=t[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}function G(t){return typeof t=="function"}function li(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var fi=li(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
15
15
  `+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
16
- `):"",this.name="UnsubscriptionError",this.errors=r}});function fr(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ot=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,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=vt(s),u=a.next();!u.done;u=a.next()){var c=u.value;c.remove(this)}}catch(A){e={error:A}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else s.remove(this);var l=this.initialTeardown;if(G(l))try{l()}catch(A){i=A instanceof li?A.errors:[A]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var h=vt(f),y=h.next();!y.done;y=h.next()){var w=y.value;try{Il(w)}catch(A){i=i??[],A instanceof li?i=nt(nt([],ze(i)),ze(A.errors)):i.push(A)}}}catch(A){n={error:A}}finally{try{y&&!y.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new li(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Il(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&fr(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&fr(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}();var Ks=ot.EMPTY;function fi(t){return t instanceof ot||t&&"closed"in t&&G(t.remove)&&G(t.add)&&G(t.unsubscribe)}function Il(t){G(t)?t():t.unsubscribe()}var it={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ur={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Ur.delegate;return o?.setTimeout?o.setTimeout.apply(o,nt([t,e],ze(r))):setTimeout.apply(void 0,nt([t,e],ze(r)))},clearTimeout:function(t){var e=Ur.delegate;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function pi(t){Ur.setTimeout(function(){var e=it.onUnhandledError;if(e)e(t);else throw t})}function pr(){}var Ml=function(){return ea("C",void 0,void 0)}();function Pl(t){return ea("E",void 0,t)}function $l(t){return ea("N",t,void 0)}function ea(t,e,r){return{kind:t,value:e,error:r}}var hr=null;function Lr(t){if(it.useDeprecatedSynchronousErrorHandling){var e=!hr;if(e&&(hr={errorThrown:!1,error:null}),t(),e){var r=hr,n=r.errorThrown,o=r.error;if(hr=null,n)throw o}}else t()}function Nl(t){it.useDeprecatedSynchronousErrorHandling&&hr&&(hr.errorThrown=!0,hr.error=t)}var Yn=function(t){Re(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,fi(r)&&r.add(n)):n.destination=Ry,n}return e.create=function(r,n,o){return new di(r,n,o)},e.prototype.next=function(r){this.isStopped?ra($l(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?ra(Pl(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?ra(Ml,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(ot);var Oy=Function.prototype.bind;function ta(t,e){return Oy.call(t,e)}var Dy=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){hi(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){hi(n)}else hi(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){hi(r)}},t}(),di=function(t){Re(e,t);function e(r,n,o){var i=t.call(this)||this,s;if(G(r)||!r)s={next:r??void 0,error:n??void 0,complete:o??void 0};else{var a;i&&it.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&ta(r.next,a),error:r.error&&ta(r.error,a),complete:r.complete&&ta(r.complete,a)}):s=r}return i.destination=new Dy(s),i}return e}(Yn);function hi(t){it.useDeprecatedSynchronousErrorHandling?Nl(t):pi(t)}function By(t){throw t}function ra(t,e){var r=it.onStoppedNotification;r&&Ur.setTimeout(function(){return r(t,e)})}var Ry={closed:!0,next:pr,error:By,complete:pr};var kr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function mi(t){return t}function Ol(t){return t.length===0?mi:t.length===1?t[0]:function(r){return t.reduce(function(n,o){return o(n)},r)}}var le=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var o=this,i=Uy(e)?e:new di(e,r,n);return Lr(function(){var s=o,a=s.operator,u=s.source;i.add(a?a.call(i,u):u?o._subscribe(i):o._trySubscribe(i))}),i},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=Dl(r),new r(function(o,i){var s=new di({next:function(a){try{e(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[kr]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Ol(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Dl(e),new e(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},t.create=function(e){return new t(e)},t}();function Dl(t){var e;return(e=t??it.Promise)!==null&&e!==void 0?e:Promise}function Fy(t){return t&&G(t.next)&&G(t.error)&&G(t.complete)}function Uy(t){return t&&t instanceof Yn||Fy(t)&&fi(t)}function Ly(t){return G(t?.lift)}function ye(t){return function(e){if(Ly(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Te(t,e,r,n,o){return new ky(t,e,r,n,o)}var ky=function(t){Re(e,t);function e(r,n,o,i,s,a){var u=t.call(this,r)||this;return u.onFinalize=s,u.shouldUnsubscribe=a,u._next=n?function(c){try{n(c)}catch(l){r.error(l)}}:t.prototype._next,u._error=i?function(c){try{i(c)}catch(l){r.error(l)}finally{this.unsubscribe()}}:t.prototype._error,u._complete=o?function(){try{o()}catch(c){r.error(c)}finally{this.unsubscribe()}}:t.prototype._complete,u}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(Yn);var Bl=ci(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var wt=function(t){Re(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var n=new Rl(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new Bl},e.prototype.next=function(r){var n=this;Lr(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=vt(n.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},e.prototype.error=function(r){var n=this;Lr(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},e.prototype.complete=function(){var r=this;Lr(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Ks:(this.currentObservers=null,a.push(r),new ot(function(){n.currentObservers=null,fr(a,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},e.prototype.asObservable=function(){var r=new le;return r.source=this,r},e.create=function(r,n){return new Rl(r,n)},e}(le);var Rl=function(t){Re(e,t);function e(r,n){var o=t.call(this)||this;return o.destination=r,o.source=n,o}return e.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},e.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Ks},e}(wt);var Qn={now:function(){return(Qn.delegate||Date).now()},delegate:void 0};var na=function(t){Re(e,t);function e(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Qn);var i=t.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 e.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,u=n._windowTime;o||(i.push(r),!s&&i.push(a.now()+u)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),u=0;u<a.length&&!r.closed;u+=i?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),n},e.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 u=o.now(),c=0,l=1;l<i.length&&i[l]<=u;l+=2)c=l;c&&i.splice(0,c+1)}},e}(wt);var Fl=function(t){Re(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},e}(ot);var Zn={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Zn.delegate;return o?.setInterval?o.setInterval.apply(o,nt([t,e],ze(r))):setInterval.apply(void 0,nt([t,e],ze(r)))},clearInterval:function(t){var e=Zn.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Ul=function(t){Re(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return e.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},e.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Zn.setInterval(r.flush.bind(r,this),o)},e.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Zn.clearInterval(n)},e.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(s){o=!0,i=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},e.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,fr(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(Fl);var oa=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=Qn.now,t}();var Ll=function(t){Re(e,t);function e(r,n){n===void 0&&(n=oa.now);var o=t.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return e.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},e}(oa);var Xn=new Ll(Ul),kl=Xn;function gi(t){return t&&G(t.schedule)}function jy(t){return t[t.length-1]}function yi(t){return gi(jy(t))?t.pop():void 0}var jr=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function xi(t){return G(t?.then)}function bi(t){return G(t[kr])}function vi(t){return Symbol.asyncIterator&&G(t?.[Symbol.asyncIterator])}function wi(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function qy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Si=qy();function Ei(t){return G(t?.[Si])}function Ti(t){return Cl(this,arguments,function(){var r,n,o,i;return ui(this,function(s){switch(s.label){case 0:r=t.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,lr(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,lr(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,lr(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 _i(t){return G(t?.getReader)}function Me(t){if(t instanceof le)return t;if(t!=null){if(bi(t))return Wy(t);if(jr(t))return Hy(t);if(xi(t))return zy(t);if(vi(t))return jl(t);if(Ei(t))return Vy(t);if(_i(t))return Gy(t)}throw wi(t)}function Wy(t){return new le(function(e){var r=t[kr]();if(G(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Hy(t){return new le(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function zy(t){return new le(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,pi)})}function Vy(t){return new le(function(e){var r,n;try{for(var o=vt(t),i=o.next();!i.done;i=o.next()){var s=i.value;if(e.next(s),e.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.complete()})}function jl(t){return new le(function(e){Jy(t,e).catch(function(r){return e.error(r)})})}function Gy(t){return jl(Ti(t))}function Jy(t,e){var r,n,o,i;return _l(this,void 0,void 0,function(){var s,a;return ui(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=Al(t),u.label=1;case 1:return[4,r.next()];case 2:if(n=u.sent(),!!n.done)return[3,4];if(s=n.value,e.next(s),e.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=u.sent(),o={error:a},[3,11];case 6:return u.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function Ge(t,e,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function Ci(t,e){return e===void 0&&(e=0),ye(function(r,n){r.subscribe(Te(n,function(o){return Ge(n,t,function(){return n.next(o)},e)},function(){return Ge(n,t,function(){return n.complete()},e)},function(o){return Ge(n,t,function(){return n.error(o)},e)}))})}function Ai(t,e){return e===void 0&&(e=0),ye(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function ql(t,e){return Me(t).pipe(Ai(e),Ci(e))}function Wl(t,e){return Me(t).pipe(Ai(e),Ci(e))}function Hl(t,e){return new le(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function zl(t,e){return new le(function(r){var n;return Ge(r,e,function(){n=t[Si](),Ge(r,e,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 G(n?.return)&&n.return()}})}function Ii(t,e){if(!t)throw new Error("Iterable cannot be null");return new le(function(r){Ge(r,e,function(){var n=t[Symbol.asyncIterator]();Ge(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Vl(t,e){return Ii(Ti(t),e)}function Gl(t,e){if(t!=null){if(bi(t))return ql(t,e);if(jr(t))return Hl(t,e);if(xi(t))return Wl(t,e);if(vi(t))return Ii(t,e);if(Ei(t))return zl(t,e);if(_i(t))return Vl(t,e)}throw wi(t)}function Kn(t,e){return e?Gl(t,e):Me(t)}function Jl(t){return t instanceof Date&&!isNaN(t)}function dr(t,e){return ye(function(r,n){var o=0;r.subscribe(Te(n,function(i){n.next(t.call(e,i,o++))}))})}var Yy=Array.isArray;function Qy(t,e){return Yy(e)?t.apply(void 0,nt([],ze(e))):t(e)}function Yl(t){return dr(function(e){return Qy(t,e)})}function Ql(t,e,r,n,o,i,s,a){var u=[],c=0,l=0,f=!1,h=function(){f&&!u.length&&!c&&e.complete()},y=function(A){return c<n?w(A):u.push(A)},w=function(A){i&&e.next(A),c++;var O=!1;Me(r(A,l++)).subscribe(Te(e,function(_){o?.(_),i?y(_):e.next(_)},function(){O=!0},void 0,function(){if(O)try{c--;for(var _=function(){var I=u.shift();s?Ge(e,s,function(){return w(I)}):w(I)};u.length&&c<n;)_();h()}catch(I){e.error(I)}}))};return t.subscribe(Te(e,y,function(){f=!0,h()})),function(){a?.()}}function eo(t,e,r){return r===void 0&&(r=1/0),G(e)?eo(function(n,o){return dr(function(i,s){return e(n,i,o,s)})(Me(t(n,o)))},r):(typeof e=="number"&&(r=e),ye(function(n,o){return Ql(n,o,t,r)}))}function Zl(t){return t===void 0&&(t=1/0),eo(mi,t)}function Xl(){return Zl(1)}function ia(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Xl()(Kn(t,yi(t)))}var Zy=["addListener","removeListener"],Xy=["addEventListener","removeEventListener"],Ky=["on","off"];function mr(t,e,r,n){if(G(r)&&(n=r,r=void 0),n)return mr(t,e,r).pipe(Yl(n));var o=ze(r0(t)?Xy.map(function(a){return function(u){return t[a](e,u,r)}}):e0(t)?Zy.map(Kl(t,e)):t0(t)?Ky.map(Kl(t,e)):[],2),i=o[0],s=o[1];if(!i&&jr(t))return eo(function(a){return mr(a,e,r)})(Me(t));if(!i)throw new TypeError("Invalid event target");return new le(function(a){var u=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return a.next(1<c.length?c:c[0])};return i(u),function(){return s(u)}})}function Kl(t,e){return function(r){return function(n){return t[r](e,n)}}}function e0(t){return G(t.addListener)&&G(t.removeListener)}function t0(t){return G(t.on)&&G(t.off)}function r0(t){return G(t.addEventListener)&&G(t.removeEventListener)}function ef(t,e,r){t===void 0&&(t=0),r===void 0&&(r=kl);var n=-1;return e!=null&&(gi(e)?r=e:n=e),new le(function(o){var i=Jl(t)?+t-r.now():t;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 sa(t,e){return ye(function(r,n){var o=0;r.subscribe(Te(n,function(i){return t.call(e,i,o++)&&n.next(i)}))})}function aa(t){return ye(function(e,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)}};e.subscribe(Te(r,function(a){i?.unsubscribe(),n=!0,o=a,i=Te(r,s,pr),Me(t(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function ua(t,e){return e===void 0&&(e=Xn),ye(function(r,n){var o=null,i=null,s=null,a=function(){if(o){o.unsubscribe(),o=null;var c=i;i=null,n.next(c)}};function u(){var c=s+t,l=e.now();if(l<c){o=this.schedule(void 0,c-l),n.add(o);return}a()}r.subscribe(Te(n,function(c){i=c,s=e.now(),o||(o=e.schedule(u,t),n.add(o))},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function ca(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=yi(t);return ye(function(n,o){(r?ia(t,n,r):ia(t,n)).subscribe(o)})}function la(t){return ye(function(e,r){Me(t).subscribe(Te(r,function(){return r.complete()},pr)),!r.closed&&e.subscribe(r)})}function tf(t,e){return ye(function(r,n){var o=e??{},i=o.leading,s=i===void 0?!0:i,a=o.trailing,u=a===void 0?!1:a,c=!1,l=null,f=null,h=!1,y=function(){f?.unsubscribe(),f=null,u&&(O(),h&&n.complete())},w=function(){f=null,h&&n.complete()},A=function(_){return f=Me(t(_)).subscribe(Te(n,y,w))},O=function(){if(c){c=!1;var _=l;l=null,n.next(_),!h&&A(_)}};r.subscribe(Te(n,function(_){c=!0,l=_,!(f&&!f.closed)&&(s?O():A(_))},function(){h=!0,!(u&&c&&f&&!f.closed)&&n.complete()}))})}function fa(t,e,r){e===void 0&&(e=Xn);var n=ef(t,e);return tf(function(){return n},r)}var n0={debounce:aa,debounceTime:ua,map:dr,startWith:ca,takeUntil:la,throttleTime:fa,filter:sa};var pa=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let o=mr(e,r),i=new wt;o.subscribe(i);let s={subject:i,eventRef:e,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(e,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let i={subject:new wt,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var ha=class{constructor(){this.observableFunctions={next:e=>{},complete:e=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new le(e=>{this.observableFunctions.next=(...r)=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=Q.defer(),this.completed=this.completedDeffered.promise}setObservable(e){this.observable=e}push(e){this.buffered?this.payloadBuffer.push(e):this.internalPush(e)}pushMany(e){for(let r of e)this.push(r)}setGenerator(e){this.generator=e}makeBuffered(){this.buffered=!0}subscribe(...e){return this.observable.subscribe(...e)}request(e){if(e!==0)for(let r=0;r!==e;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}};var o0={attribute:!0,type:String,converter:Wn,reflect:!1,hasChanged:Zo},i0=(t=o0,e,r)=>{let{kind:n,metadata:o}=r,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),i.set(r.name,t),n==="accessor"){let{name:s}=r;return{set(a){let u=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,u,t)},init(a){return a!==void 0&&this.C(s,void 0,t),a}}}if(n==="setter"){let{name:s}=r;return function(a){let u=this[s];e.call(this,a),this.requestUpdate(s,u,t)}}throw Error("Unsupported decorator location: "+n)};function J(t){return(e,r)=>typeof r=="object"?i0(t,e,r):((n,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(o,i):void 0})(t,e,r)}var Oe={};X(Oe,{DomTools:()=>he,TypedRequest:()=>Ao,breakpoints:()=>$t,css:()=>Dc,elementBasic:()=>Ce,plugins:()=>oE});var Ce={};X(Ce,{setup:()=>rE,staticStyles:()=>eE,styles:()=>tE});var gs={};X(gs,{DeesComms:()=>yc});var se={};X(se,{Timeout:()=>Mi,delayFor:()=>rf,delayForRandom:()=>s0});var rf=async(t,e,r=!1)=>(await new Mi(t,null,r).promise,e),s0=async(t,e,r,n=!1)=>(await rf(Math.random()*(e-t)+t,null,n),r),Mi=class{constructor(e,r,n=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=cr(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},e),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}};var Xe={};X(Xe,{TypedHandler:()=>cc,TypedRequest:()=>Ao,TypedResponseError:()=>Cr,TypedRouter:()=>lc,TypedTarget:()=>fc});var cm=De(ii(),1);var ct={};X(ct,{AsyncExecutionStack:()=>Oa,FastMap:()=>yr,Interest:()=>io,InterestMap:()=>Da,LimitedArray:()=>Ba,LoopTracker:()=>Ra,ObjectMap:()=>Tt,Stringmap:()=>so,TimedAggregtor:()=>Fa,Tree:()=>Ua,uni:()=>Ef});var $i={};X($i,{SmartMatch:()=>ga});var Pi={};X(Pi,{isMatch:()=>c0,matcher:()=>u0});function da(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ma=new Map,nf=(t,e)=>{if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},a0=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(ma.has(r))return ma.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=da(t).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return o.negated=n,ma.set(r,o),o},of=(t,e,r,n)=>{if(t=nf(t,"inputs"),e=nf(e,"patterns"),e.length===0)return[];e=e.map(s=>a0(s,r));let{allPatterns:o}=r||{},i=[];for(let s of t){let a,u=[...e].fill(!1);for(let[c,l]of e.entries())if(l.test(s)&&(u[c]=!0,a=!l.negated,!a))break;if(!(a===!1||a===void 0&&e.some(c=>!c.negated)||o&&u.some((c,l)=>!c&&!e[l].negated))&&(i.push(s),n))break}return i};function u0(t,e,r){return of(t,e,r,!1)}function c0(t,e,r){return of(t,e,r,!0).length>0}var ga=class{constructor(e){this.wildcard=e}match(e){return Pi.isMatch(e,this.wildcard)}};var Et={};X(Et,{CronJob:()=>oo,CronManager:()=>Ca,ExtendedDate:()=>Aa,HrtMeasurement:()=>Ia,Interval:()=>Ma,TimeStamp:()=>Hr,Timer:()=>Pa,getMilliSecondsAsHumanReadableString:()=>_a,getMilliSecondsFromUnits:()=>Ta,units:()=>Lt});function ke(t,e,r,n,o,i,s,a){return ke.fromTZ(ke.tp(t,e,r,n,o,i,s),a)}ke.fromTZISO=(t,e,r)=>ke.fromTZ(f0(t,e),r);ke.fromTZ=function(t,e){let r=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),n=ya(t.tz,r),o=new Date(r.getTime()-n),i=ya(t.tz,o);if(i-n===0)return o;{let s=new Date(r.getTime()-i),a=ya(t.tz,s);if(a-i===0)return s;if(!e&&a-i>0)return s;if(e)throw new Error("Invalid date passed to fromTZ()");return o}};ke.toTZ=function(t,e){let r=t.toLocaleString("en-US",{timeZone:e}).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:e}};ke.tp=(t,e,r,n,o,i,s)=>({y:t,m:e,d:r,h:n,i:o,s:i,tz:s});function ya(t,e=new Date){let r=e.toLocaleString("en-US",{timeZone:t,timeZoneName:"short"}).split(" ").slice(-1)[0],n=e.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function f0(t,e){let r=new Date(Date.parse(t));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let n=t.substring(9);return t.includes("Z")||n.includes("-")||n.includes("+")?ke.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):ke.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}ke.minitz=ke;function p0(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode=t.legacyMode===void 0?!0:t.legacyMode,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval,10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset,10),t.unref=t.unref===void 0?!1:t.unref,t.startAt&&(t.startAt=new _e(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new _e(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return t}var xa=32,ro=31|xa,af=[1,2,4,16,16];function je(t,e){this.pattern=t,this.timezone=e,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}je.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 t=this.pattern.replace(/\s+/g," ").split(" ");if(t.length<5||t.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exacly five or six space separated parts required.");if(t.length===5&&t.unshift("0"),t[3].indexOf("L")>=0&&(t[3]=t[3].replace("L",""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.replaceAlphaDays(t[5])),t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let e=new _e(new Date,this.timezone).getDate(!0);t[0]=t[0].replace("?",e.getSeconds()),t[1]=t[1].replace("?",e.getMinutes()),t[2]=t[2].replace("?",e.getHours()),this.starDOM||(t[3]=t[3].replace("?",e.getDate())),t[4]=t[4].replace("?",e.getMonth()+1),this.starDOW||(t[5]=t[5].replace("?",e.getDay()))}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0,1),this.partToArray("minute",t[1],0,1),this.partToArray("hour",t[2],0,1),this.partToArray("day",t[3],-1,1),this.partToArray("month",t[4],-1,1),this.partToArray("dayOfWeek",t[5],0,ro),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])};je.prototype.partToArray=function(t,e,r,n){let o=this[t],i=t==="day"&&this.lastDayOfMonth;if(e===""&&!i)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return o.fill(n);let s=e.split(",");if(s.length>1)for(let a=0;a<s.length;a++)this.partToArray(t,s[a],r,n);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,r,n):e.indexOf("-")!==-1?this.handleRange(e,t,r,n):e.indexOf("/")!==-1?this.handleStepping(e,t,r,n):e!==""&&this.handleNumber(e,t,r,n)};je.prototype.throwAtIllegalCharacters=function(t){for(let e=0;e<t.length;e++)if((e===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")};je.prototype.handleNumber=function(t,e,r,n){let o=this.extractNth(t,e),i=parseInt(o[0],10)+r;if(isNaN(i))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,i,o[1]||n)};je.prototype.setPart=function(t,e,r){if(!Object.prototype.hasOwnProperty.call(this,t))throw new TypeError("CronPattern: Invalid part specified: "+t);if(t==="dayOfWeek"){if(e===7&&(e=0),(e<0||e>6)&&e!=="L")throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+e);this.setNthWeekdayOfMonth(e,r);return}if(t==="second"||t==="minute"){if(e<0||e>=60)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="hour"){if(e<0||e>=24)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="day"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"&&(e<0||e>=12))throw new RangeError("CronPattern: Invalid value for "+t+": "+e);this[t][e]=r};je.prototype.handleRangeWithStepping=function(t,e,r,n){let o=this.extractNth(t,e),i=o[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(i===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,s,a,u]=i;if(s=parseInt(s,10)+r,a=parseInt(a,10)+r,u=parseInt(u,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(u))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(u===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(u>this[e].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[e].length+")");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let c=s;c<=a;c+=u)this.setPart(e,c,o[1]||n)};je.prototype.extractNth=function(t,e){let r=t,n;if(r.includes("#")){if(e!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");n=r.split("#")[1],r=r.split("#")[0]}return[r,n]};je.prototype.handleRange=function(t,e,r,n){let o=this.extractNth(t,e),i=o[0].split("-");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let s=parseInt(i[0],10)+r,a=parseInt(i[1],10)+r;if(isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let u=s;u<=a;u++)this.setPart(e,u,o[1]||n)};je.prototype.handleStepping=function(t,e,r,n){let o=this.extractNth(t,e),i=o[0].split("/");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");let s=0;i[0]!=="*"&&(s=parseInt(i[0],10));let a=parseInt(i[1],10);if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(a===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(a>this[e].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[e].length+")");for(let u=s;u<this[e].length;u+=a)this.setPart(e,u,o[1]||n)};je.prototype.replaceAlphaDays=function(t){return t.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")};je.prototype.replaceAlphaMonths=function(t){return t.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")};je.prototype.handleNicknames=function(t){let e=t.trim().toLowerCase();return e==="@yearly"||e==="@annually"?"0 0 1 1 *":e==="@monthly"?"0 0 1 * *":e==="@weekly"?"0 0 * * 0":e==="@daily"?"0 0 * * *":e==="@hourly"?"0 * * * *":t};je.prototype.setNthWeekdayOfMonth=function(t,e){if(e==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|xa;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|af[e-1];else if(e===ro)this.dayOfWeek[t]=ro;else throw new TypeError(`CronPattern: nth weekday of of range, should be 1-5 or L. Value: ${e}`)};var uf=[31,28,31,30,31,30,31,31,30,31,30,31],St=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]];function _e(t,e){if(this.tz=e,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 _e)this.fromCronDate(t);else throw new TypeError("CronDate: Invalid type ("+typeof t+") passed to CronDate constructor")}_e.prototype.isNthWeekdayOfMonth=function(t,e,r,n){let i=new Date(Date.UTC(t,e,r)).getUTCDay(),s=0;for(let a=1;a<=r;a++)new Date(Date.UTC(t,e,a)).getUTCDay()===i&&s++;if(n&ro&&af[s-1]&n)return!0;if(n&xa){let a=new Date(Date.UTC(t,e+1,0)).getUTCDate();for(let u=r+1;u<=a;u++)if(new Date(Date.UTC(t,e,u)).getUTCDay()===i)return!1;return!0}return!1};_e.prototype.fromDate=function(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 e=ke.toTZ(t,this.tz);this.ms=t.getMilliseconds(),this.second=e.s,this.minute=e.i,this.hour=e.h,this.day=e.d,this.month=e.m-1,this.year=e.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()};_e.prototype.fromCronDate=function(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};_e.prototype.apply=function(){if(this.month>11||this.day>uf[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};_e.prototype.fromString=function(t){return this.fromDate(ke.fromTZISO(t,this.tz))};_e.prototype.findNext=function(t,e,r,n){let o=this[e],i;r.lastDayOfMonth&&(this.month!==1?i=uf[this.month]:i=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let s=!r.starDOW&&e=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let a=this[e]+n;a<r[e].length;a++){let u=r[e][a];if(e==="day"&&r.lastDayOfMonth&&a-n==i&&(u=!0),e==="day"&&!r.starDOW){let c=r.dayOfWeek[(s+(a-n-1))%7];if(c&&c&ro)c=this.isNthWeekdayOfMonth(this.year,this.month,a-n,c);else if(c)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${c}`);t.legacyMode&&!r.starDOM?u=u||c:u=u&&c}if(u)return this[e]=a-n,o!==this[e]?2:1}return 3};_e.prototype.recurse=function(t,e,r){let n=this.findNext(e,St[r][0],t,St[r][2]);if(n>1){let o=r+1;for(;o<St.length;)this[St[o][0]]=-St[o][2],o++;if(n===3)return this[St[r][1]]++,this[St[r][0]]=-St[r][2],this.apply(),this.recurse(t,e,0);if(this.apply())return this.recurse(t,e,r-1)}return r+=1,r>=St.length?this:this.year>=3e3?null:this.recurse(t,e,r)};_e.prototype.increment=function(t,e,r){return this.second+=e.interval>1&&r?e.interval:1,this.ms=0,this.apply(),this.recurse(t,e,0)};_e.prototype.getDate=function(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)):ke(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz)};_e.prototype.getTime=function(){return this.getDate().getTime()};function Ni(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function h0(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var sf=30*1e3,no=[];function fe(t,e,r){if(!(this instanceof fe))return new fe(t,e,r);let n,o;if(Ni(e))o=e;else if(typeof e=="object")n=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Ni(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?n.name:void 0,this.options=p0(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},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new _e(t,this.options.timezone||this.options.utcOffset):this._states.pattern=new je(t,this.options.timezone),this.name){if(no.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");no.push(this)}return o!==void 0&&(this.fn=o,this.schedule()),this}fe.prototype.nextRun=function(t){let e=this._next(t);return e?e.getDate():null};fe.prototype.nextRuns=function(t,e){t>this._states.maxRuns&&(t=this._states.maxRuns);let r=[],n=e||this._states.currentRun;for(;t--&&(n=this.nextRun(n));)r.push(n);return r};fe.prototype.getPattern=function(){return this._states.pattern?this._states.pattern.pattern:void 0};fe.prototype.isRunning=function(){let t=this.nextRun(this._states.currentRun),e=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return e&&r&&n&&t!==null};fe.prototype.isStopped=function(){return this._states.kill};fe.prototype.isBusy=function(){return this._states.blocking};fe.prototype.currentRun=function(){return this._states.currentRun?this._states.currentRun.getDate():null};fe.prototype.previousRun=function(){return this._states.previousRun?this._states.previousRun.getDate():null};fe.prototype.msToNext=function(t){t=t||new Date;let e=this._next(t);return e?e.getTime()-t.getTime():null};fe.prototype.stop=function(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=no.indexOf(this);t>=0&&no.splice(t,1)};fe.prototype.pause=function(){return this._states.paused=!0,!this._states.kill};fe.prototype.resume=function(){return this._states.paused=!1,!this._states.kill};fe.prototype.schedule=function(t){if(t&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");t&&(this.fn=t);let e=this.msToNext(),r=this.nextRun(this._states.currentRun);return e===null||r===null?this:(e>sf&&(e=sf),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&h0(this._states.currentTimeout),this)};fe.prototype._trigger=async function(t){if(this._states.blocking=!0,this._states.currentRun=new _e(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{await this.fn(this,this.options.context)}catch(e){Ni(this.options.catch)&&this.options.catch(e,this)}else await this.fn(this,this.options.context);this._states.previousRun=new _e(t,this.options.timezone||this.options.utcOffset),this._states.blocking=!1};fe.prototype.trigger=async function(){await this._trigger()};fe.prototype._checkTrigger=function(t){let e=new Date,r=!this._states.paused&&e.getTime()>=t,n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns--,this._trigger()):r&&n&&Ni(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()};fe.prototype._next=function(t){let e=!!(t||this._states.currentRun);t=new _e(t,this.options.timezone||this.options.utcOffset),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let r=this._states.once||new _e(t,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,e);return this._states.once&&this._states.once.getTime()<=t.getTime()||r===null||this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&r.getTime()>=this.options.stopAt.getTime()?null:r};fe.Cron=fe;fe.scheduledJobs=no;var qr=De(cf(),1),ff=De(lf(),1);function Ea(t){if(typeof t!="number")throw new TypeError("Expected a number");let e=t>0?Math.floor:Math.ceil;return{days:e(t/864e5),hours:e(t/36e5)%24,minutes:e(t/6e4)%60,seconds:e(t/1e3)%60,milliseconds:e(t)%1e3,microseconds:e(t*1e3)%1e3,nanoseconds:e(t*1e6)%1e3}}var d0=(t,e)=>e===1?t:`${t}s`,m0=1e-7;function Oi(t,e={}){if(!Number.isFinite(t))throw new TypeError("Expected a finite number");e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let r=[],n=(s,a)=>{let u=Math.floor(s*10**a+m0);return(Math.round(u)/10**a).toFixed(a)},o=(s,a,u,c)=>{if((r.length===0||!e.colonNotation)&&s===0&&!(e.colonNotation&&u==="m"))return;c=(c||s||"0").toString();let l,f;if(e.colonNotation){l=r.length>0?":":"",f="";let h=c.includes(".")?c.split(".")[0].length:c.length,y=r.length>0?2:1;c="0".repeat(Math.max(0,y-h))+c}else l="",f=e.verbose?" "+d0(a,s):u;r.push(l+c+f)},i=Ea(t);if(o(Math.trunc(i.days/365),"year","y"),o(i.days%365,"day","d"),o(i.hours,"hour","h"),o(i.minutes,"minute","m"),e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3)if(o(i.seconds,"second","s"),e.formatSubMilliseconds)o(i.milliseconds,"millisecond","ms"),o(i.microseconds,"microsecond","\xB5s"),o(i.nanoseconds,"nanosecond","ns");else{let s=i.milliseconds+i.microseconds/1e3+i.nanoseconds/1e6,a=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,u=s>=1?Math.round(s):Math.ceil(s),c=a?s.toFixed(a):u;o(Number.parseFloat(c),"millisecond","ms",c)}else{let s=t/1e3%60,a=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,u=n(s,a),c=e.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");o(Number.parseFloat(c),"second","s",c)}if(r.length===0)return"0"+(e.verbose?" milliseconds":"ms");if(e.compact)return r[0];if(typeof e.unitCount=="number"){let s=e.colonNotation?"":" ";return r.slice(0,Math.max(e.unitCount,1)).join(s)}return e.colonNotation?r.join(""):r.join(" ")}qr.default.extend(ff.default);var oo=class{constructor(e,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=fe(r)}checkExecution(){if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let e=this.jobFunction(this.nextExecutionUnix);e instanceof Promise&&e.catch(r=>console.log(r)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()}start(){this.status="started"}stop(){this.status="stopped"}};var Lt={years:(t=1)=>t*3154e7,months:(t=1)=>t*2628e6,weeks:(t=1)=>t*6048e5,days:(t=1)=>t*864e5,hours:(t=1)=>t*36e5,minutes:(t=1)=>t*6e4,seconds:(t=1)=>t*1e3},Ta=t=>{let e=0,r=n=>{e=e+n};return t.years&&r(Lt.years(t.years)),t.months&&r(Lt.months(t.months)),t.weeks&&r(Lt.weeks(t.weeks)),t.days&&r(Lt.days(t.days)),t.hours&&r(Lt.hours(t.hours)),t.minutes&&r(Lt.minutes(t.minutes)),t.seconds&&r(Lt.seconds(t.seconds)),e},_a=t=>Oi(t);var Ca=class{constructor(){this.status="stopped",this.cronjobs=new ct.ObjectMap}addCronjob(e,r){let n=new oo(this,e,r);return this.cronjobs.add(n),this.status==="started"&&n.start(),n}removeCronjob(e){e.stop(),this.cronjobs.remove(e)}start(){if(this.status!=="started"){this.status="started";for(let e of this.cronjobs.getArray())e.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new se.Timeout(0);do{let e;for(let r of this.cronjobs.getArray())r.checkExecution(),(!e||r.getTimeToNextExecution()<e.getTimeToNextExecution())&&(e=r);e?(this.executionTimeout=new se.Timeout(e.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${_a(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new se.Timeout(1e3),console.log("no cronjobs specified! Checking again in 1 second")),await this.executionTimeout.promise}while(this.status==="started")}stop(){this.status==="started"?(this.status="stopped",this.executionTimeout.cancel()):console.log("You tried to stop a CronManager that was not actually started.");for(let e of this.cronjobs.getArray())e.stop()}};var Aa=class t extends Date{static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let r=/(.*)\.(.*)\.(.*)/.exec(e),o=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new t(o)}static fromHyphedDate(e){let r=new Date(e).getTime();return new t(r)}static fromEuropeanDateAndTime(e,r="12:00:00",n="Europe/Berlin"){let o=/(.*)\.(.*)\.(.*)/.exec(e),i=c=>`0${c}`.slice(-2),s=`${o[3]}-${i(o[2])}-${i(o[1])}T${r}`,u=qr.default(s).toDate().getTime();return new t(u)}constructor(e=Date.now()){super(e)}exportToEuropeanDate(){let e=this.exportToUnits();return`${e.dayString}.${e.monthString}.${e.yearString}`}exportToHyphedSortableDate(){let e=this.exportToUnits();return`${e.yearString}-${e.monthString}-${e.dayString}`}exportToUnits(){let e=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return{year:this.getFullYear(),yearString:`${this.getFullYear()}`,month:this.getMonth()+1,monthString:("0"+(this.getMonth()+1)).slice(-2),monthName:e[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(e){return qr.default(this.getTime()).format(e)}isToday(){return qr.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=Ta(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Ia=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 Ma=class{constructor(e){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=e}start(){this.status="started";let e=new Date;this.statusAuthorization=e,(async()=>{for(;this.status==="started"&&this.statusAuthorization===e;)await se.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(e){this.intervalJobs.push(e)}executeIntervalJobs(){for(let e of this.intervalJobs)e()}};var Hr=class t{static fromMilliSeconds(e){return new t(e)}static fromTimeStamp(e){let r=new t;return r.change=r.milliSeconds-e.milliSeconds,r}constructor(e){this.change=null,e?typeof e=="number"&&(this.date=new Date(e)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,r=0){return this.milliSeconds<e.milliSeconds-r}isOlderThan(e,r=0){return this.milliSeconds+r<e.milliSeconds}isYoungerThanOtherTimeStamp(e,r=0){return this.milliSeconds>e.milliSeconds+r}isYoungerThanMilliSeconds(e){let n=new t().epochtime-e,o=new t(n);return this.isYoungerThanOtherTimeStamp(o)}};var Pa=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=Q.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new Hr;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=Hr.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 Na=De(Sf(),1);var Oa=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(e,r){let n=Q.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(e,r){let n=Q.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let e=this.executionSlots[0];if(e.mode==="exclusive")await this.executeExclusiveSlot(e),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(e){try{if(e.timeout){let r=await Promise.race([e.funcToExecute(),se.delayFor(e.timeout).then(()=>{throw new Error("Timeout reached")})]);e.executionDeferred.resolve(r)}else{let r=await e.funcToExecute();e.executionDeferred.resolve(r)}}catch(r){e.executionDeferred.reject(r)}}async executeNonExclusiveSlots(e){let r=e.map(async n=>{try{if(n.timeout){let o=await Promise.race([n.funcToExecute(),se.delayFor(n.timeout).then(()=>{throw new Error("Timeout reached")})]);n.executionDeferred.resolve(o)}else{let o=await n.funcToExecute();n.executionDeferred.resolve(o)}}catch(o){n.executionDeferred.reject(o)}});await Promise.all(r)}};var yr=class t{constructor(){this.mapObject={}}isUniqueKey(e){return!this.mapObject[e]}addToMap(e,r,n){return this.isUniqueKey(e)||n&&n.force?(this.mapObject[e]=r,!0):!1}getByKey(e){return this.mapObject[e]}removeFromMap(e){let r=this.getByKey(e);return delete this.mapObject[e],r}getKeys(){let e=[];for(let r in this.mapObject)this.mapObject[r]&&e.push(r);return e}clean(){this.mapObject={}}concat(e){let r=new t;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of e.getKeys())r.addToMap(n,e.getByKey(n),{force:!0});return r}addAllFromOther(e){for(let r of e.getKeys())this.addToMap(r,e.getByKey(r),{force:!0})}async find(e){for(let r of this.getKeys()){let n=this.getByKey(r);if(await e(n))return n}}};var Ef=(t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),Tt=class t{constructor(){this.fastMap=new yr,this.eventSubject=new xe.rxjs.Subject}addMappedUnique(e,r){this.fastMap.addToMap(e,r)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let r=this.getMappedUnique(e)}add(e){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===e)return n;let r=Ef("key");return this.addMappedUnique(r,e),this.eventSubject.next({operation:"add",payload:e}),r}addArray(e){for(let r of e)this.add(r)}checkForObject(e){return!!this.getKeyForObject(e)}getKeyForObject(e){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===e)r=n;else continue;return r}async find(e){return this.fastMap.find(e)}findSync(e){for(let r of this.fastMap.getKeys())if(e(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(e){let r=await this.find(e);return r&&this.remove(r),r}findOneAndRemoveSync(e){let r=this.findSync(e);return r&&this.remove(r),r}async forEach(e){for(let r of this.fastMap.getKeys())await e(this.fastMap.getByKey(r))}getOneAndRemove(){let e=this.fastMap.getKeys();if(e.length===0)return null;{let r=e[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let e=[];for(let r of this.fastMap.getKeys())e.push(this.fastMap.getByKey(r));return e}isEmpty(){return this.fastMap.getKeys().length===0}remove(e){if(this.checkForObject(e)){let r=this.getKeyForObject(e),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let e of this.fastMap.getKeys())this.fastMap.removeFromMap(e)}concat(e){let r=new t;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(e.fastMap),r}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap)}};var io=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e)}constructor(e,r,n,o){this.destructionTimer=new Et.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new Q.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=e,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&se.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 Da=class{constructor(e,r={}){this.interestObjectMap=new Tt,this.interestObservable=new xe.ObservableIntake,this.comparisonFunc=e,this.options=r}async addInterest(e,r){let n=this.comparisonFunc(e),o,i=new io(this,e,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===i.comparisonString&&(console.log("info",`interest already exists for ${i.comparisonString}`),s=!0,o=a,o.renew())}),o||(o=i,this.interestObjectMap.add(o)),this.interestObservable.push(o),o}removeInterest(e){let r=this.interestObjectMap.findOneAndRemoveSync(n=>e.comparisonString===n.comparisonString)}checkInterest(e){let r=this.comparisonFunc(e);return this.checkInterestByString(r)}checkInterestByString(e){return!!this.interestObjectMap.findSync(n=>n.comparisonString===e)}informLostInterest(e){let r=this.findInterest(e);r&&r.markLost()}findInterest(e){let r=this.comparisonFunc(e);return this.interestObjectMap.findSync(o=>o.comparisonString===r)}};var Ba=class{constructor(e){this.array=[],this.arrayLimit=e}addOne(e){this.array.unshift(e),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(e){for(let r of e)this.addOne(r)}setLimit(e){this.arrayLimit=e,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let e=0;for(let r of this.array)e=e+r;return e/this.array.length}else return null}};var Ra=class{constructor(){this.referenceObjectMap=new Tt}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var so=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(e){this._stringArray.push(e),this.notifyTrigger()}addStringArray(e){for(let r of e)this.addString(r)}removeString(e){for(let r in this._stringArray)this._stringArray[r]===e&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(e){return this._stringArray.indexOf(e)!==-1}checkMinimatch(e){let r=new $i.SmartMatch(e),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let e=[];for(let r of this._stringArray)e.push(r);return e}registerUntilTrue(e,r){let n=Q.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=e(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=e}};var Fa=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new Et.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],e(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||e()}add(e){this.storageArray.push(e),this.checkAggregationStatus()}};var Ua=class{constructor(){this.symbolTree=new Na.default}initialize(e){return this.symbolTree.initialize(e)}hasChildren(e){return this.symbolTree.hasChildren(e)}firstChild(e){return this.symbolTree.firstChild(e)}lastChild(e){return this.symbolTree.lastChild(e)}previousSibling(e){return this.symbolTree.previousSibling(e)}nextSibling(e){return this.symbolTree.nextSibling(e)}parent(e){return this.symbolTree.parent(e)}lastInclusiveDescendant(e){return this.symbolTree.lastInclusiveDescendant(e)}preceding(e,r){return this.symbolTree.preceding(e,r)}following(e,r){return this.symbolTree.following(e,r)}childrenToArray(e,r){return this.symbolTree.childrenToArray(e,r)}ancestorsToArray(e,r){return this.symbolTree.ancestorsToArray(e,r)}treeToArray(e,r){return this.symbolTree.treeToArray(e,r)}childrenIterator(e,r){return this.symbolTree.childrenIterator(e,r)}previousSiblingsIterator(e){return this.symbolTree.previousSiblingsIterator(e)}nextSiblingsIterator(e){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(e){this.symbolTree.ancestorsIterator()}treeIterator(e,r){return this.symbolTree.treeIterator(e)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,r){return this.compareTreePosition(e,r)}remove(e){return this.symbolTree.remove(e)}insertBefore(e,r){return this.symbolTree.insertBefore(e,r)}insertAfter(e,r){return this.symbolTree.insertAfter(e,r)}prependChild(e,r){return this.symbolTree.prependChild(e,r)}appendChild(e,r){return this.symbolTree.appendChild(e,r)}toJsonWithHierachy(e){let r=this.treeIterator(e,{});for(let n of r)console.log(n)}fromJsonWithHierachy(e){}};var Co={};X(Co,{WebRequest:()=>uc});var Vr={};X(Vr,{Smartenv:()=>ao});var ao=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}`);return}return new Function(`return import('${e}')`)()}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let n=Q.defer();if(globalThis.importScripts)globalThis.importScripts(e),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=e,document.head.appendChild(o)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var ge={};X(ge,{Smartjson:()=>ec,deepEqualObjects:()=>x1,foldDec:()=>y1,parse:()=>tc,parseBase64:()=>g1,stringify:()=>xn,stringifyBase64:()=>m1,stringifyPretty:()=>d1});var vo={};X(vo,{Base64:()=>ts,Domain:()=>rs,GitRepo:()=>ns,base64:()=>hn,create:()=>$u,docker:()=>Nu,indent:()=>Bu,normalize:()=>Ru,type:()=>Fu});var $u={};X($u,{createCryptoRandomString:()=>Av,createRandomString:()=>Cv});var Kh=De(ii(),1),ed=De(Hf(),1),td=De(yh(),1);var Eh="3.7.5",rv=Eh,nv=typeof atob=="function",ov=typeof btoa=="function",pn=typeof Buffer=="function",xh=typeof TextDecoder=="function"?new TextDecoder:void 0,bh=typeof TextEncoder=="function"?new TextEncoder:void 0,iv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",xo=Array.prototype.slice.call(iv),Qi=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(xo),sv=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Be=String.fromCharCode.bind(String),vh=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Th=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),_h=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Ch=t=>{let e,r,n,o,i="",s=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|o,i+=xo[e>>18&63]+xo[e>>12&63]+xo[e>>6&63]+xo[e&63]}return s?i.slice(0,s-3)+"===".substring(s):i},Au=ov?t=>btoa(t):pn?t=>Buffer.from(t,"binary").toString("base64"):Ch,_u=pn?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,o=t.length;n<o;n+=4096)r.push(Be.apply(null,t.subarray(n,n+4096)));return Au(r.join(""))},Zi=(t,e=!1)=>e?Th(_u(t)):_u(t),av=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Be(192|e>>>6)+Be(128|e&63):Be(224|e>>>12&15)+Be(128|e>>>6&63)+Be(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Be(240|e>>>18&7)+Be(128|e>>>12&63)+Be(128|e>>>6&63)+Be(128|e&63)}},uv=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Ah=t=>t.replace(uv,av),wh=pn?t=>Buffer.from(t,"utf8").toString("base64"):bh?t=>_u(bh.encode(t)):t=>Au(Ah(t)),fn=(t,e=!1)=>e?Th(wh(t)):wh(t),Sh=t=>fn(t,!0),cv=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,lv=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return Be((r>>>10)+55296)+Be((r&1023)+56320);case 3:return Be((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Be((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},Ih=t=>t.replace(cv,lv),Mh=t=>{if(t=t.replace(/\s+/g,""),!sv.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,o;for(let i=0;i<t.length;)e=Qi[t.charAt(i++)]<<18|Qi[t.charAt(i++)]<<12|(n=Qi[t.charAt(i++)])<<6|(o=Qi[t.charAt(i++)]),r+=n===64?Be(e>>16&255):o===64?Be(e>>16&255,e>>8&255):Be(e>>16&255,e>>8&255,e&255);return r},Iu=nv?t=>atob(_h(t)):pn?t=>Buffer.from(t,"base64").toString("binary"):Mh,Ph=pn?t=>vh(Buffer.from(t,"base64")):t=>vh(Iu(t).split("").map(e=>e.charCodeAt(0))),$h=t=>Ph(Nh(t)),fv=pn?t=>Buffer.from(t,"base64").toString("utf8"):xh?t=>xh.decode(Ph(t)):t=>Ih(Iu(t)),Nh=t=>_h(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),Cu=t=>fv(Nh(t)),pv=t=>{if(typeof t!="string")return!1;let e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},Oh=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Dh=function(){let t=(e,r)=>Object.defineProperty(String.prototype,e,Oh(r));t("fromBase64",function(){return Cu(this)}),t("toBase64",function(e){return fn(this,e)}),t("toBase64URI",function(){return fn(this,!0)}),t("toBase64URL",function(){return fn(this,!0)}),t("toUint8Array",function(){return $h(this)})},Bh=function(){let t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,Oh(r));t("toBase64",function(e){return Zi(this,e)}),t("toBase64URI",function(){return Zi(this,!0)}),t("toBase64URL",function(){return Zi(this,!0)})},hv=()=>{Dh(),Bh()},bo={version:Eh,VERSION:rv,atob:Iu,atobPolyfill:Mh,btoa:Au,btoaPolyfill:Ch,fromBase64:Cu,toBase64:fn,encode:fn,encodeURI:Sh,encodeURL:Sh,utob:Ah,btou:Ih,decode:Cu,isValid:pv,fromUint8Array:Zi,toUint8Array:$h,extendString:Dh,extendUint8Array:Bh,extendBuiltins:hv};var Uh=De(Fh(),1);function Xi(t){let e=(0,Uh.default)(t);if(e===0)return t;let r=new RegExp(`^[ \\t]{${e}}`,"gm");return t.replace(r,"")}var qh=De(kh(),1),jh=`\r
17
- `;function Ki(t){if(typeof t!="string"&&!Buffer.isBuffer(t))throw new TypeError(`Expected a \`string\` or a \`Buffer\`, got \`${typeof t}\``);return Buffer.isBuffer(t)?(0,qh.default)(t,jh,`
18
- `):t.replace(new RegExp(jh,"g"),`
19
- `)}var Pu=De(Xh(),1),_v=new ao;_v.isBrowser&&(globalThis.Buffer=ed.Buffer);var Cv=(t,e,r)=>Pu.default(t,e,r),Av=()=>Kh.uni();var Nu={};X(Nu,{makeEnvObject:()=>Iv});var Iv=function(t){let e={},r=/(.*)=(.*)/;if(typeof t<"u")for(let n in t){let o=r.exec(t[n]);e[o[1]]=o[2]}return e};var Bu={};X(Bu,{indent:()=>Pv,indentWithPrefix:()=>$v,normalize:()=>Nv});var Ou=t=>{let e=t.split(`
20
- `);return Mv(e)},Du=t=>{let e="";for(let r of t)e=e+r+`
21
- `;return e},Mv=t=>{let e=/^[\s]*$/;return e.test(t[0])&&t.shift(),e.test(t[t.length-1])&&t.pop(),t},Pv=(t,e)=>{let r=Ou(t);for(let o of r)o=" ".repeat(e)+o;return Du(r)},$v=(t,e)=>{let r,n=Ou(t),o=[];for(let i of n)o.push(e+i);return r=Du(o),r},Nv=t=>{let e,r=Ou(t),n,o=/^(\s*)/,i=/^(\s*)$/;for(let a of r){let u=o.exec(a)[1];(typeof n>"u"||u.length<n)&&!i.test(a)&&(n=u.length)}let s=[];for(let a of r)s.push(a.substr(n));return e=Du(s),e};var Ru={};X(Ru,{replaceAll:()=>rd,standard:()=>Ov});var rd=(t,e,r)=>t.replace(new RegExp(e,"g"),r),Ov=(t,e)=>{let r=t;return(!e||e.stripIndent)&&(r=Xi(r)),(!e||e.normalizeNewline)&&(r=Ki(r)),(!e||e.replaceTabs)&&(r=rd(r," /"," ")),(!e||e.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!e||e.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var Fu={};X(Fu,{isBase64:()=>Bv,isUtf8:()=>Dv});var ts=class{constructor(e,r){switch(r){case"string":this.refString=e;break;case"base64":this.refString=hn.decode(e);break;case"base64uri":this.refString=hn.decode(e)}}get simpleString(){return this.refString}get base64String(){return hn.encode(this.refString)}get base64UriString(){return hn.encodeUri(this.refString)}},hn={encode:t=>bo.encode(t),encodeUri:t=>bo.encodeURI(t),decode:t=>bo.decode(t),isBase64:t=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(t)};var Dv=t=>{let e=Buffer.from(t),r=0;for(;r<e.length;){if(e[r]===9||e[r]===10||e[r]===13||32<=e[r]&&e[r]<=126){r+=1;continue}if(194<=e[r]&&e[r]<=223&&128<=e[r+1]&&e[r+1]<=191){r+=2;continue}if(e[r]===224&&160<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191||(225<=e[r]&&e[r]<=236||e[r]===238||e[r]===239)&&128<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191||e[r]===237&&128<=e[r+1]&&e[r+1]<=159&&128<=e[r+2]&&e[r+2]<=191){r+=3;continue}if(e[r]===240&&144<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191||241<=e[r]&&e[r]<=243&&128<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191||e[r]===244&&128<=e[r+1]&&e[r+1]<=143&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191){r+=4;continue}return!1}return!0},Bv=t=>{let e=/[^A-Z0-9+\/=]/i,r=t.length;if(!r||r%4!==0||e.test(t))return!1;let n=t.indexOf("=");return n===-1||n===r-1||n===r-2&&t[r-1]==="="};var rs=class{constructor(e){this.protocol=this._protocolRegex(e),this.protocol||(e=`https://${e}`),this.nodeParsedUrl=td.parse(e),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(e.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let n=1;n<=5;n++)if(r[n-1]){let o=r[n-1];this["level"+n.toString()]=o,this.fullName===""?this.fullName=o:this.fullName=o+"."+this.fullName}else this["level"+n.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(e){let n=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(e);return n.reverse(),n.pop(),n.filter(function(i){return i!==""})}_protocolRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}_portRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}};var ns=class{constructor(e,r){let n=Rv(e);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=nd(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=nd(this.host,this.user,this.repo,this.accessToken,"https")}},Rv=function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},nd=function(t,e,r,n="",o){let i;switch(n!==""&&(n=n+"@"),o){case"https":i="https://"+n+t+"/"+e+"/"+r+".git";break;case"ssh":i="git@"+t+":"+e+"/"+r+".git";break;default:console.error("Link Type "+o+" not known");break}return i};var Ku=De(zd(),1),em=De(Gd(),1),ps=De(Kd(),1);var tm=em.default;var tc=ps.default.parse,xn=(t,e,r={})=>{let n=ps.default.stringify(t);return t=JSON.parse(n),tm(t,r)},d1=t=>{let e=xn(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},m1=(...t)=>{let e=xn(...t);return vo.base64.encodeUri(e)},g1=t=>{let e=vo.base64.decode(t);return tc(e)},ec=class t{static enfoldFromObject(e){let r=new this;for(let n in e)r.saveableProperties.indexOf(n)!==-1&&(r[n]=e[n]);return r}static enfoldFromJson(e){let r=tc(e);return this.enfoldFromObject(r)}foldToObject(){let e={},r=[];for(let n of this.saveableProperties){let o=this[n];if(o instanceof t){if(r.includes(o))throw new Error("cycle detected");r.push(o),o=o.foldToObject()}e[n]=Ku.default(o)}return e}foldToJson(){let e=this.foldToObject();return xn(e)}},y1=()=>(t,e)=>{t.saveableProperties||(t.saveableProperties=[]),t.saveableProperties.push(e)},x1=(t,e)=>{let r=xn(t),n=xn(e);return r===n};var Jt={};X(Jt,{TypedrequestCache:()=>ac,WebStore:()=>_o});var hs={};X(hs,{deleteDB:()=>A1,openDB:()=>C1,unwrap:()=>To,wrap:()=>Ze});var b1=(t,e)=>e.some(r=>t instanceof r),rm,nm;function v1(){return rm||(rm=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function w1(){return nm||(nm=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var om=new WeakMap,nc=new WeakMap,im=new WeakMap,rc=new WeakMap,ic=new WeakMap;function S1(t){let e=new Promise((r,n)=>{let o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(Ze(t.result)),o()},s=()=>{n(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",s)});return e.then(r=>{r instanceof IDBCursor&&om.set(r,t)}).catch(()=>{}),ic.set(e,t),e}function E1(t){if(nc.has(t))return;let e=new Promise((r,n)=>{let o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});nc.set(t,e)}var oc={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return nc.get(t);if(e==="objectStoreNames")return t.objectStoreNames||im.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Ze(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function sm(t){oc=t(oc)}function T1(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){let n=t.call(To(this),e,...r);return im.set(n,e.sort?e.sort():[e]),Ze(n)}:w1().includes(t)?function(...e){return t.apply(To(this),e),Ze(om.get(this))}:function(...e){return Ze(t.apply(To(this),e))}}function _1(t){return typeof t=="function"?T1(t):(t instanceof IDBTransaction&&E1(t),b1(t,v1())?new Proxy(t,oc):t)}function Ze(t){if(t instanceof IDBRequest)return S1(t);if(rc.has(t))return rc.get(t);let e=_1(t);return e!==t&&(rc.set(t,e),ic.set(e,t)),e}var To=t=>ic.get(t);function C1(t,e,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){let s=indexedDB.open(t,e),a=Ze(s);return n&&s.addEventListener("upgradeneeded",u=>{n(Ze(s.result),u.oldVersion,u.newVersion,Ze(s.transaction),u)}),r&&s.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),a.then(u=>{i&&u.addEventListener("close",()=>i()),o&&u.addEventListener("versionchange",c=>o(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}function A1(t,{blocked:e}={}){let r=indexedDB.deleteDatabase(t);return e&&r.addEventListener("blocked",n=>e(n.oldVersion,n)),Ze(r).then(()=>{})}var I1=["get","getKey","getAll","getAllKeys","count"],M1=["put","add","delete","clear"],sc=new Map;function am(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(sc.get(e))return sc.get(e);let r=e.replace(/FromIndex$/,""),n=e!==r,o=M1.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||I1.includes(r)))return;let i=async function(s,...a){let u=this.transaction(s,o?"readwrite":"readonly"),c=u.store;return n&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),o&&u.done]))[0]};return sc.set(e,i),i}sm(t=>({...t,get:(e,r,n)=>am(e,r)||t.get(e,r,n),has:(e,r)=>!!am(e,r)||t.has(e,r)}));var _o=class{constructor(e){this.initCalled=!1,this.readyDeferred=Q.defer(),this.options=e}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let e=new Vr.Smartenv;if(!e.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await e.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await e.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await hs.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(e){return await this.init(),this.db.get(this.options.storeName,e)}async check(e){return await this.init(),!!await this.get(e)}async set(e,r){return await this.init(),this.db.put(this.options.storeName,r,e)}async delete(e){return await this.init(),this.db.delete(this.options.storeName,e)}async clear(){return await this.init(),this.db.clear(this.options.storeName)}async keys(){return await this.init(),this.db.getAllKeys(this.options.storeName)}};var ac=class{constructor(e="default"){this.webstore=new _o({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return ge.stringify({method:e.method,request:e.request})}async setByRequest(e){if(!e.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(e),e)}async getByRequest(e){return await this.webstore.get(this.buildKey(e))}};var uc=class{constructor(e={}){this.optionsArg=e,this.cacheStore=new Jt.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...e}}async getJson(e,r=!1){let o=await(await this.request(e,{method:"GET",useCache:r})).text();return ge.parse(o)}async postJson(e,r,n=!1){let i=await(await this.request(e,{method:"POST",headers:{"Content-Type":"application/json"},body:ge.stringify(r),useCache:n})).text();return ge.parse(i)}async putJson(e,r,n=!1){let i=await(await this.request(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:ge.stringify(r)})).text();return ge.parse(i)}async deleteJson(e,r=!1){let o=await(await this.request(e,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return ge.parse(o)}async request(e,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;se.delayFor(r.timeoutMs).then(()=>{n.abort()});let o=Q.defer(),i=!1;if(r.useCache&&await this.cacheStore.check(e)){let a=await this.cacheStore.get(e);o.resolve(new Response(a,{}))}else o.resolve(null);let s=await fetch(e,{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(e,a)}return this.log(`${e} answers with status: ${s.status}`),s}async requestMultiEndpoint(e,r){let n,o=0;Array.isArray(e)?n=e:n=[e];let i=[],s=async c=>{i.push(c),c==="429"&&(console.log("got 429, so waiting a little bit."),await se.delayFor(Math.floor(Math.random()*(2e3-1e3+1))+1e3));let l=0;for(let f of i)f===c&&l++;l>2*n.length*o&&o++},a=async c=>{if(!c)throw new Error("request failed permanently");this.log(`Getting ${c} with method ${r.method}`);let l=await fetch(c,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${c} answers with status: ${l.status}`),l.status>=200&&l.status<300?l:(await s(l.status.toString()),await a(n[o]))};return await a(n[o])}log(e){this.options.logging&&console.log(e)}};var Cr=class{constructor(e,r){this.errorText=e,this.errorData=r}};var cc=class{constructor(e,r){this.method=e,this.handlerFunction=r}async addResponse(e){if(e.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,n=await this.handlerFunction(e.request).catch(o=>{o instanceof Cr?r=o:console.log(o)});return r&&(e.error={text:r.errorText,data:r.errorData}),n&&(e.response=n),e?.correlation?.phase&&(e.correlation.phase="response"),e}};var lc=class{constructor(){this.routerMap=new ct.ObjectMap,this.handlerMap=new ct.ObjectMap,this.fireEventInterestMap=new ct.InterestMap(e=>e)}addTypedHandler(e){if(this.getTypedHandlerForMethod(e.method))throw new Error(`a TypedHandler for ${e.method} alredy exists! Can't add another one.`);this.handlerMap.add(e)}addTypedRouter(e){this.routerMap.findSync(n=>n===e)||(this.routerMap.add(e),e.addTypedRouter(this))}checkForTypedHandler(e){return!!this.getTypedHandlerForMethod(e)}getTypedHandlerForMethod(e,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(o=>o.method===e),n||this.routerMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(e,r))}),n}async routeAndAddResponse(e,r=!1){if(e?.correlation?.phase==="request"||r){let n=this.getTypedHandlerForMethod(e.method);return n?(e=await n.addResponse(e),e):(console.log(`Cannot find handler for methodname ${e.method}`),e.error={text:"There is no available method for this call on the server side",data:{}},e.correlation.phase="response",e)}else return e?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(e.correlation.id)?.fullfillInterest(e),null):(console.log("received weirdly shaped request"),console.log(e),null)}};var fc=class{constructor(e){if(e.postMethodWithTypedRouter&&!e.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=e}async post(e){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(e.correlation.id,e));let o=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(e),i;return r?i=await r.interestFullfilled:o?i=o:i=e,i}};var N1=new Co.WebRequest,Ao=class{constructor(e,r){typeof e=="string"?this.urlEndPoint=e:this.typedTarget=e,this.method=r}async fire(e,r=!1){let n={method:this.method,request:e,response:null,correlation:{id:cm.uni(),phase:"request"}},o;if(this.urlEndPoint?o=await N1.postJson(this.urlEndPoint,n,r):o=await this.typedTarget.post(n),o.error){if(console.error(`Got an error ${o.error.text} with data ${JSON.stringify(o.error.data)}`),!o.retry)throw new Cr(o.error.text,o.error.data);return null}return o.retry?(console.log(`server requested retry for the following reason: ${o.retry.reason}`),await se.delayFor(o.retry.waitForMs),await this.fire(e)):o.response}};function pm(t){return!!(t&&typeof t.then=="function")}function ds(t){return t||(t=0),new Promise(function(e){return setTimeout(e,t)})}function hm(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function Io(){return Math.random().toString(36).substring(2)}var fm=0,pc=0;function Yt(){var t=new Date().getTime();return t===fm?(pc++,t*1e3+pc):(fm=t,pc=0,t*1e3)}var Mt=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]";var O1=Yt,D1="native";function B1(t){var e={messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(r){e.messagesCallback&&e.messagesCallback(r.data)},e}function R1(t){t.bc.close(),t.subFns=[]}function F1(t,e){try{return t.bc.postMessage(e,!1),Promise.resolve()}catch(r){return Promise.reject(r)}}function U1(t,e){t.messagesCallback=e}function L1(){if(Mt&&typeof window>"u")return!1;if(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 k1(){return 150}var dm={create:B1,close:R1,onMessage:U1,postMessage:F1,canBeUsed:L1,type:D1,averageResponseTime:k1,microSeconds:O1};var ms=function(){function t(e){this.ttl=e,this.set=new Set,this.timeMap=new Map}return t.prototype.has=function(e){return this.set.has(e)},t.prototype.add=function(e){var r=this;this.timeMap.set(e,mm()),this.set.add(e),setTimeout(function(){j1(r)},0)},t.prototype.clear=function(){this.set.clear(),this.timeMap.clear()},t}();function j1(t){for(var e=mm()-t.ttl,r=t.set[Symbol.iterator]();;){var n=r.next().value;if(!n)return;var o=t.timeMap.get(n);if(o<e)t.timeMap.delete(n),t.set.delete(n);else return}}function mm(){return new Date().getTime()}function bn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return typeof e.webWorkerSupport>"u"&&(e.webWorkerSupport=!0),e.idb||(e.idb={}),e.idb.ttl||(e.idb.ttl=1e3*45),e.idb.fallbackInterval||(e.idb.fallbackInterval=150),t.idb&&typeof t.idb.onclose=="function"&&(e.idb.onclose=t.idb.onclose),e.localstorage||(e.localstorage={}),e.localstorage.removeTimeout||(e.localstorage.removeTimeout=1e3*60),t.methods&&(e.methods=t.methods),e.node||(e.node={}),e.node.ttl||(e.node.ttl=1e3*60*2),typeof e.node.useFastPath>"u"&&(e.node.useFastPath=!0),e}var q1=Yt,W1="pubkey.broadcast-channel-0-",Pt="messages",H1="idb";function gm(){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 z1(t){var e=gm(),r=W1+t,n=e.open(r,1);n.onupgradeneeded=function(i){var s=i.target.result;s.createObjectStore(Pt,{keyPath:"id",autoIncrement:!0})};var o=new Promise(function(i,s){n.onerror=function(a){return s(a)},n.onsuccess=function(){i(n.result)}});return o}function V1(t,e,r){var n=new Date().getTime(),o={uuid:e,time:n,data:r},i=t.transaction([Pt],"readwrite");return new Promise(function(s,a){i.oncomplete=function(){return s()},i.onerror=function(c){return a(c)};var u=i.objectStore(Pt);u.add(o)})}function G1(t,e){var r=t.transaction(Pt).objectStore(Pt),n=[];function o(){try{var i=IDBKeyRange.bound(e+1,1/0);return r.openCursor(i)}catch{return r.openCursor()}}return new Promise(function(i){o().onsuccess=function(s){var a=s.target.result;a?a.value.id<e+1?a.continue(e+1):(n.push(a.value),a.continue()):i(n)}})}function J1(t,e){var r=t.transaction([Pt],"readwrite").objectStore(Pt).delete(e);return new Promise(function(n){r.onsuccess=function(){return n()}})}function Y1(t,e){var r=new Date().getTime()-e,n=t.transaction(Pt).objectStore(Pt),o=[];return new Promise(function(i){n.openCursor().onsuccess=function(s){var a=s.target.result;if(a){var u=a.value;if(u.time<r)o.push(u),a.continue();else{i(o);return}}else i(o)}})}function Q1(t,e){return Y1(t,e).then(function(r){return Promise.all(r.map(function(n){return J1(t,n.id)}))})}function Z1(t,e){return e=bn(e),z1(t).then(function(r){var n={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:Io(),eMIs:new ms(e.idb.ttl*2),writeBlockPromise:Promise.resolve(),messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,e.idb.onclose&&e.idb.onclose()},ym(n),n})}function ym(t){t.closed||xm(t).then(function(){return ds(t.options.idb.fallbackInterval)}).then(function(){return ym(t)})}function X1(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}function xm(t){return t.closed||!t.messagesCallback?Promise.resolve():G1(t.db,t.lastCursorId).then(function(e){var r=e.filter(function(n){return!!n}).map(function(n){return n.id>t.lastCursorId&&(t.lastCursorId=n.id),n}).filter(function(n){return X1(n,t)}).sort(function(n,o){return n.time-o.time});return r.forEach(function(n){t.messagesCallback&&(t.eMIs.add(n.id),t.messagesCallback(n.data))}),Promise.resolve()})}function K1(t){t.closed=!0,t.db.close()}function eS(t,e){return t.writeBlockPromise=t.writeBlockPromise.then(function(){return V1(t.db,t.uuid,e)}).then(function(){hm(0,10)===0&&Q1(t.db,t.options.idb.ttl)}),t.writeBlockPromise}function tS(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e,xm(t)}function rS(){if(Mt)return!1;var t=gm();return!!t}function nS(t){return t.idb.fallbackInterval*2}var bm={create:Z1,close:K1,onMessage:tS,postMessage:eS,canBeUsed:rS,type:H1,averageResponseTime:nS,microSeconds:q1};var oS=Yt,iS="pubkey.broadcastChannel-",sS="localstorage";function vm(){var t;if(typeof window>"u")return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return t}function wm(t){return iS+t}function aS(t,e){return new Promise(function(r){ds().then(function(){var n=wm(t.channelName),o={token:Io(),time:new Date().getTime(),data:e,uuid:t.uuid},i=JSON.stringify(o);vm().setItem(n,i);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=i,window.dispatchEvent(s),r()})})}function uS(t,e){var r=wm(t),n=function(i){i.key===r&&e(JSON.parse(i.newValue))};return window.addEventListener("storage",n),n}function cS(t){window.removeEventListener("storage",t)}function lS(t,e){if(e=bn(e),!Sm())throw new Error("BroadcastChannel: localstorage cannot be used");var r=Io(),n=new ms(e.localstorage.removeTimeout),o={channelName:t,uuid:r,eMIs:n};return o.listener=uS(t,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 fS(t){cS(t.listener)}function pS(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e}function Sm(){if(Mt)return!1;var t=vm();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch{return!1}return!0}function hS(){var t=120,e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?t*2:t}var Em={create:lS,close:fS,onMessage:pS,postMessage:aS,canBeUsed:Sm,type:sS,averageResponseTime:hS,microSeconds:oS};var dS=Yt,mS="simulate",hc=new Set;function gS(t){var e={name:t,messagesCallback:null};return hc.add(e),e}function yS(t){hc.delete(t)}function xS(t,e){return new Promise(function(r){return setTimeout(function(){var n=Array.from(hc);n.filter(function(o){return o.name===t.name}).filter(function(o){return o!==t}).filter(function(o){return!!o.messagesCallback}).forEach(function(o){return o.messagesCallback(e)}),r()},5)})}function bS(t,e){t.messagesCallback=e}function vS(){return!0}function wS(){return 5}var Tm={create:gS,close:yS,onMessage:bS,postMessage:xS,canBeUsed:vS,type:mS,averageResponseTime:wS,microSeconds:dS};var mc=[dm,bm,Em];Mt&&(dc=_m(),typeof dc.canBeUsed=="function"&&mc.push(dc));var dc;function Cm(t){var e=[].concat(t.methods,mc).filter(Boolean);if(t.type){if(t.type==="simulate")return Tm;var r=e.find(function(o){return o.type===t.type});if(r)return r;throw new Error("method-type "+t.type+" not found")}!t.webWorkerSupport&&!Mt&&(e=e.filter(function(o){return o.type!=="idb"}));var n=e.find(function(o){return o.canBeUsed()});if(n)return n;throw new Error("No useable methode found:"+JSON.stringify(mc.map(function(o){return o.type})))}var vn=function(e,r){this.name=e,Am&&(r=Am),this.options=bn(r),this.method=Cm(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,SS(this)};vn._pubkey=!0;var Am;vn.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed");return Im(this,"message",e)},postInternal:function(e){return Im(this,"internal",e)},set onmessage(t){var e=this.method.microSeconds(),r={time:e,fn:t};Pm(this,"message",this._onML),t&&typeof t=="function"?(this._onML=r,Mm(this,"message",r)):this._onML=null},addEventListener:function(e,r){var n=this.method.microSeconds(),o={time:n,fn:r};Mm(this,e,o)},removeEventListener:function(e,r){var n=this._addEL[e].find(function(o){return o.fn===r});Pm(this,e,n)},close:function(){var e=this;if(!this.closed){this.closed=!0;var r=this._prepP?this._prepP:Promise.resolve();return this._onML=null,this._addEL.message=[],r.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function Im(t,e,r){var n=t.method.microSeconds(),o={time:n,type:e,data:r},i=t._prepP?t._prepP:Promise.resolve();return i.then(function(){var s=t.method.postMessage(t._state,o);return t._uMP.add(s),s.catch().then(function(){return t._uMP.delete(s)}),s})}function SS(t){var e=t.method.create(t.name,t.options);pm(e)?(t._prepP=e,e.then(function(r){t._state=r})):t._state=e}function $m(t){return t._addEL.message.length>0||t._addEL.internal.length>0}function Mm(t,e,r){t._addEL[e].push(r),ES(t)}function Pm(t,e,r){t._addEL[e]=t._addEL[e].filter(function(n){return n!==r}),TS(t)}function ES(t){if(!t._iL&&$m(t)){var e=function(o){t._addEL[o.type].forEach(function(i){o.time>=i.time&&i.fn(o.data)})},r=t.method.microSeconds();t._prepP?t._prepP.then(function(){t._iL=!0,t.method.onMessage(t._state,e,r)}):(t._iL=!0,t.method.onMessage(t._state,e,r))}}function TS(t){if(t._iL&&!$m(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}var gc=globalThis.BroadcastChannel;gc||(gc=vn);var yc=class{constructor(){this.broadcastChannel=new gc("dees-comms"),this.typedrouter=new Xe.TypedRouter,this.typedtarget=new Xe.TypedTarget({postMethodWithTypedRouter:async e=>{this.postMessage(e)},typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async e=>{let r=e.method?e:e.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r);n&&!n.error&&this.postMessage(n)}}createTypedRequest(e){return new Xe.TypedRequest(this.typedtarget,e)}async postMessage(e){this.broadcastChannel.postMessage(e)}async createTypedHandler(e,r){this.typedrouter.addTypedHandler(new Xe.TypedHandler(e,r))}};var bs={};X(bs,{SmartRouter:()=>wc});var ys={};X(ys,{compile:()=>AS,match:()=>IS,parse:()=>xc,pathToRegexp:()=>vc,regexpToFunction:()=>Om,tokensToFunction:()=>Nm,tokensToRegexp:()=>Dm});function CS(t){for(var e=[],r=0;r<t.length;){var n=t[r];if(n==="*"||n==="+"||n==="?"){e.push({type:"MODIFIER",index:r,value:t[r++]});continue}if(n==="\\"){e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});continue}if(n==="{"){e.push({type:"OPEN",index:r,value:t[r++]});continue}if(n==="}"){e.push({type:"CLOSE",index:r,value:t[r++]});continue}if(n===":"){for(var o="",i=r+1;i<t.length;){var s=t.charCodeAt(i);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){o+=t[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(r));e.push({type:"NAME",index:r,value:o}),r=i;continue}if(n==="("){var a=1,u="",i=r+1;if(t[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<t.length;){if(t[i]==="\\"){u+=t[i++]+t[i++];continue}if(t[i]===")"){if(a--,a===0){i++;break}}else if(t[i]==="("&&(a++,t[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));u+=t[i++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!u)throw new TypeError("Missing pattern at ".concat(r));e.push({type:"PATTERN",index:r,value:u}),r=i;continue}e.push({type:"CHAR",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}function xc(t,e){e===void 0&&(e={});for(var r=CS(t),n=e.prefixes,o=n===void 0?"./":n,i="[^".concat(wn(e.delimiter||"/#?"),"]+?"),s=[],a=0,u=0,c="",l=function(U){if(u<r.length&&r[u].type===U)return r[u++].value},f=function(U){var Y=l(U);if(Y!==void 0)return Y;var F=r[u],B=F.type,re=F.index;throw new TypeError("Unexpected ".concat(B," at ").concat(re,", expected ").concat(U))},h=function(){for(var U="",Y;Y=l("CHAR")||l("ESCAPED_CHAR");)U+=Y;return U};u<r.length;){var y=l("CHAR"),w=l("NAME"),A=l("PATTERN");if(w||A){var O=y||"";o.indexOf(O)===-1&&(c+=O,O=""),c&&(s.push(c),c=""),s.push({name:w||a++,prefix:O,suffix:"",pattern:A||i,modifier:l("MODIFIER")||""});continue}var _=y||l("ESCAPED_CHAR");if(_){c+=_;continue}c&&(s.push(c),c="");var I=l("OPEN");if(I){var O=h(),D=l("NAME")||"",N=l("PATTERN")||"",q=h();f("CLOSE"),s.push({name:D||(N?a++:""),pattern:D&&!N?i:N,prefix:O,suffix:q,modifier:l("MODIFIER")||""});continue}f("END")}return s}function AS(t,e){return Nm(xc(t,e),e)}function Nm(t,e){e===void 0&&(e={});var r=bc(e),n=e.encode,o=n===void 0?function(u){return u}:n,i=e.validate,s=i===void 0?!0:i,a=t.map(function(u){if(typeof u=="object")return new RegExp("^(?:".concat(u.pattern,")$"),r)});return function(u){for(var c="",l=0;l<t.length;l++){var f=t[l];if(typeof f=="string"){c+=f;continue}var h=u?u[f.name]:void 0,y=f.modifier==="?"||f.modifier==="*",w=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!w)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(y)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var A=0;A<h.length;A++){var O=o(h[A],f);if(s&&!a[l].test(O))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(O,'"'));c+=f.prefix+O+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var O=o(String(h),f);if(s&&!a[l].test(O))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(O,'"'));c+=f.prefix+O+f.suffix;continue}if(!y){var _=w?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(_))}}return c}}function IS(t,e){var r=[],n=vc(t,r,e);return Om(n,r,e)}function Om(t,e,r){r===void 0&&(r={});var n=r.decode,o=n===void 0?function(i){return i}:n;return function(i){var s=t.exec(i);if(!s)return!1;for(var a=s[0],u=s.index,c=Object.create(null),l=function(h){if(s[h]===void 0)return"continue";var y=e[h-1];y.modifier==="*"||y.modifier==="+"?c[y.name]=s[h].split(y.prefix+y.suffix).map(function(w){return o(w,y)}):c[y.name]=o(s[h],y)},f=1;f<s.length;f++)l(f);return{path:a,index:u,params:c}}}function wn(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function bc(t){return t&&t.sensitive?"":"i"}function MS(t,e){if(!e)return t;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,o=r.exec(t.source);o;)e.push({name:o[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),o=r.exec(t.source);return t}function PS(t,e,r){var n=t.map(function(o){return vc(o,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),bc(r))}function $S(t,e,r){return Dm(xc(t,r),e,r)}function Dm(t,e,r){r===void 0&&(r={});for(var n=r.strict,o=n===void 0?!1:n,i=r.start,s=i===void 0?!0:i,a=r.end,u=a===void 0?!0:a,c=r.encode,l=c===void 0?function(re){return re}:c,f=r.delimiter,h=f===void 0?"/#?":f,y=r.endsWith,w=y===void 0?"":y,A="[".concat(wn(w),"]|$"),O="[".concat(wn(h),"]"),_=s?"^":"",I=0,D=t;I<D.length;I++){var N=D[I];if(typeof N=="string")_+=wn(l(N));else{var q=wn(l(N.prefix)),U=wn(l(N.suffix));if(N.pattern)if(e&&e.push(N),q||U)if(N.modifier==="+"||N.modifier==="*"){var Y=N.modifier==="*"?"?":"";_+="(?:".concat(q,"((?:").concat(N.pattern,")(?:").concat(U).concat(q,"(?:").concat(N.pattern,"))*)").concat(U,")").concat(Y)}else _+="(?:".concat(q,"(").concat(N.pattern,")").concat(U,")").concat(N.modifier);else N.modifier==="+"||N.modifier==="*"?_+="((?:".concat(N.pattern,")").concat(N.modifier,")"):_+="(".concat(N.pattern,")").concat(N.modifier);else _+="(?:".concat(q).concat(U,")").concat(N.modifier)}}if(u)o||(_+="".concat(O,"?")),_+=r.endsWith?"(?=".concat(A,")"):"$";else{var F=t[t.length-1],B=typeof F=="string"?O.indexOf(F[F.length-1])>-1:F===void 0;o||(_+="(?:".concat(O,"(?=").concat(A,"))?")),B||(_+="(?=".concat(O,"|").concat(A,")"))}return new RegExp(_,bc(r))}function vc(t,e,r){return t instanceof RegExp?MS(t,e):Array.isArray(t)?PS(t,e,r):$S(t,e,r)}var xs=class{constructor(){}getAllAsObject(){let e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())}setQueryParam(e,r,n="replace"){var o=new URLSearchParams(window.location.search);o.set(e,r),n==="push"?history.pushState(null,null,"?"+o.toString()):history.replaceState(null,null,"?"+o.toString())}deleteQueryParam(e,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(e),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(e){return this.getAllAsObject()[e]}};var wc=class{constructor(e){this.options={debug:!1},this.queryParams=new xs,this.routes=[],this.options={...this.options,...e},window.addEventListener("popstate",r=>{r.preventDefault(),this._handleRouteState()})}async pushUrl(e="/",r={}){e!==window.location.pathname?window.history.pushState(r,window.document.title,e):window.history.replaceState(r,window.document.title,e),await this._handleRouteState()}on(e,r){this.routes.push({matchFunction:ys.match(e),handler:r})}async _handleRouteState(){let e=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(e));for(let n of r){let o=n.matchFunction(e);n.handler({...o.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}};var Sn={};X(Sn,{Smartstate:()=>Ec,StateAction:()=>Mo,StatePart:()=>Po});var Ss={};X(Ss,{sha256FromString:()=>RS});var ws={};X(ws,{Smartenv:()=>Sc});var Rm=De(Bm(),1);var Sc=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}`);return}return new Function(`return import('${e}')`)()}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let n=Rm.defer();if(globalThis.importScripts)globalThis.importScripts(e),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=e,document.head.appendChild(o)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var BS=t=>{let e=[],r=new DataView(t);for(let n=0;n<r.byteLength;n+=4){let i=r.getUint32(n).toString(16),s="00000000",a=(s+i).slice(-s.length);e.push(a)}return e.join("")},RS=async t=>{let e=new ws.Smartenv;if(e.isBrowser){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return BS(n)}else if(e.isNode)return await(await e.getSafeNodeModule("@pushrocks/smarthash")).sha256FromString(t)};var Mo=class{constructor(e,r){this.statePartRef=e,this.actionDef=r}trigger(e){this.statePartRef.dispatchAction(this,e)}};var Po=class{constructor(e,r){this.state=new xe.rxjs.Subject,this.cumulativeDeferred=Q.cumulativeDefer(),this.webStore=null,this.name=e,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Jt.WebStore(this.webStoreOptions),await this.webStore.init();let e=await this.webStore.get(String(this.name));e&&(this.stateStore=e,this.notifyChange())}}getState(){return this.stateStore}async setState(e){return this.stateStore=e,this.notifyChange(),this.webStore&&await this.webStore.set(String(this.name),e),this.stateStore}notifyChange(){let e=r=>Ss.sha256FromString(ge.stringify(r));this.stateStore&&this.lastStateNotificationPayloadHash&&e(this.stateStore)===this.lastStateNotificationPayloadHash||(this.lastStateNotificationPayloadHash=this.stateStore,this.state.next(this.stateStore))}notifyChangeCumulative(){setTimeout(()=>this.state.next(this.stateStore),0)}select(e){return e||(e=n=>n),this.state.pipe(xe.rxjs.ops.startWith(this.getState()),xe.rxjs.ops.map(n=>{try{return e(n)}catch{}}))}createAction(e){return new Mo(this,e)}async dispatchAction(e,r){await this.cumulativeDeferred.promise;let n=await e.actionDef(this,r);return await this.setState(n),this.getState()}async waitUntilPresent(e){let r=Q.defer(),o=this.select(e).subscribe(async s=>{s&&r.resolve(s)}),i=await r.promise;return o.unsubscribe(),i}async stateSetup(e){let r=e(this);this.cumulativeDeferred.addPromise(r),this.setState(await r)}};var Ec=class{constructor(){this.statePartMap={}}async getStatePart(e,r,n){if(this.statePartMap[e]){if(r&&(!n||n!=="soft"))throw new Error(`${e} already exists, yet you try to set an initial state again`);return this.statePartMap[e]}else{if(!r)throw new Error(`${e} does not yet exist, yet you don't provide an initial state`);return this.createStatePart(e,r,n)}}async createStatePart(e,r,n){let o=new Po(e,n==="persistent"?{dbName:"smartstate",storeName:e}:null);await o.init();let i=o.getState();return await o.setState({...r,...i}),this.statePartMap[e]=o,o}};var En={};X(En,{Smarturl:()=>Tc});var Tc=class t{static createFromUrl(e,r){let n=new URL(e),o={},i=[];n.search&&n.search.replace("?","").split("&").map(c=>{i.push({key:c.split("=")[0],value:c.split("=")[1]})});for(let c of i)o[c.key]=c.value;if(r?.searchParams)for(let c of Object.keys(r.searchParams))o[c]=r.searchParams[c];let s=n.pathname||"";if(Object.keys(o).length>0){s+="?";let c=!0;for(let l of Object.keys(o))c?c=!1:s+="&",s+=`${l}=${o[l]}`}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 u=new t;return Object.assign(u,a),u}static createFromParsedUrl(e){let r=new t;return Object.assign(r,e),r}constructor(){this.searchParams={}}toString(){let e="";return this.username&&!this.password&&(e=`${this.username}@`),this.username&&this.password&&(e=`${this.username}:${this.password}@`),`${this.protocol}//${e}${this.hostname}:${this.port}${this.path}`}};var _n={};X(_n,{CumulativeDeferred:()=>Ts,Deferred:()=>Es,cumulativeDefer:()=>US,defer:()=>Tn,getFirstTrueOrFalse:()=>WS,map:()=>jS,rejectedPromise:()=>kS,resolvedPromise:()=>LS,timeoutAndContinue:()=>qS,timeoutWrap:()=>Fm});var Es=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},Tn=()=>new Es;var Ts=class{constructor(){this.accumulatedPromises=[],this.deferred=Tn(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(e){this.accumulatedPromises.push(e)}},US=()=>new Ts;var LS=t=>Promise.resolve(t),kS=t=>Promise.reject(t),jS=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},Fm=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),qS=async(t,e=6e4)=>Fm(t,e,!1),WS=async t=>{let e=Tn();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise};var Qt=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 Cn=class t extends Qt{static createCompanyJsonLd(e){let r={"@context":"https://schema.org","@type":"Corporation",name:e.name,alternateName:e.name.replace(" GmbH",""),url:e.contact.website,logo:e.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:e.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return e.contact.facebookUrl&&r.sameAs.push(e.contact.facebookUrl),e.contact.twitterUrl&&r.sameAs.push(e.contact.twitterUrl),new t(r)}static createNewsArticleJsonLd(e){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[e.featuredImageUrl],datePublished:new Date(e.timestamp).toISOString(),dateModified:new Date(e.timestamp).toISOString(),author:{"@type":"Person",name:`${e.author.firstName} ${e.author.surName}`},publisher:{"@type":"Organization",name:e.author.surName,logo:{"@type":"ImageObject",url:e.author.surName}},description:e.author.firstName};return new t(r)}static createProductJsonLd(e,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:e.name,description:e.description,operatingSystem:e.os,applicationCategory:e.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:this.createCompanyJsonLd(r).elementRef.textContent,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new t(n)}constructor(e){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(e),this.elementRef=r}};var We=class t extends Qt{static createNewsArticleOgTags(e){let r=[];return r.push(new t("og:url",e.url)),r.push(new t("og:title",e.title)),r.push(new t("og:description",e.content)),r.push(new t("og:image",e.featuredImageUrl)),r}static createProductOgTags(e){let r=[];return r.push(new t("og:url",globalThis.location.href)),r.push(new t("og:title",`${e.name} - ${e.slogan}`)),r.push(new t("og:site_name",e.name)),r.push(new t("og:description",e.description)),r.push(new t("og:image",e.logoLink)),r}constructor(e,r){super();let n=document.createElement("meta");n.setAttribute("property",e),n.content=r,this.elementRef=n}};var An=class{set title(e){this.titleStore=e,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(e,r){this.tags=[],this.state="disabled",this.tagManagerRef=e}addTag(e){if(e instanceof Array)for(let r of e)this.addTag(r);else this.tags.push(e),this.state==="enabled"&&e.appendToDom()}async addCompanyInfo(e){this.addTag(Cn.createCompanyJsonLd(e)),this.addTag(new We("og:type","business.business")),this.addTag(new We("og:title",e.name)),this.addTag(new We("og:url",e.contact.website)),this.addTag(new We("og:image",e.contact.logoUrl)),this.addTag(new We("business:contact_data:street_address",`${e.contact.address.streetName} ${e.contact.address.houseNumber}`)),this.addTag(new We("business:contact_data:locality",e.contact.address.postalCode)),this.addTag(new We("business:contact_data:region",e.contact.address.city)),this.addTag(new We("business:contact_data:postal_code",e.contact.address.postalCode)),this.addTag(new We("business:contact_data:country_name",e.contact.address.country))}addNewsArticleInfo(e){this.addTag(Cn.createNewsArticleJsonLd(e)),this.addTag(We.createNewsArticleOgTags(e))}addProductInfo(e,r){this.addTag(Cn.createProductJsonLd(e,r)),this.addTag(We.createProductOgTags(e))}async enable(){this.title&&(document.title=this.title);for(let e of this.tags)e.appendToDom();this.state="enabled"}async disable(){for(let e of this.tags)e.removeFromDom();this.state="disabled"}};var at=class extends Qt{constructor(e,r){super();let n=document.createElement("meta");n.name=e,n.content=r,this.elementRef=n}};var _s=class{constructor(){this.globalLevel=new An(this,"global"),this.baseLevel=new An(this,"base")}async setup(e){switch(this.globalLevel.addTag(new at("google","notranslate")),this.globalLevel.addTag(new at("revisit-after","1 days")),e.twitterHandle&&(this.globalLevel.addTag(new at("twitter:card","summary_large_image")),this.globalLevel.addTag(new at("twitter:site",e.twitterHandle)),this.globalLevel.addTag(new at("twitter:creator",e.twitterHandle))),this.baseLevel.title=e.title,e.description&&this.baseLevel.addTag(new at("description",e.description)),e.canonicalDomain&&this.baseLevel.addTag(new at("canonical",e.canonicalDomain)),!0){case(e.ldCompany&&!e.ldProduct):this.baseLevel.addCompanyInfo(e.ldCompany);break;case!!e.ldProduct:this.baseLevel.addProductInfo(e.ldProduct,e.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(e){let r=new An(this,"subpage");return r.title=e.title,e.description&&r.addTag(new at("description",e.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var Cs=class{constructor(e){this.tagManager=new _s,this.readyDeferred=_n.defer(),this.readyForSmartssrDeferred=_n.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=e,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(e){e&&(this.options=e),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(e){return await this.tagManager.setSubPageLevel(e)}flashTitle(e){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var $o=De(Lm(),1);var Ac={ObjectMap:Tt,Stringmap:so,FastMap:yr};var $t={};X($t,{cssForDesktop:()=>YS,cssForNotebook:()=>QS,cssForPhablet:()=>XS,cssForPhone:()=>KS,cssForTablet:()=>ZS,desktop:()=>Ic,notebook:()=>Mc,phablet:()=>$c,phone:()=>Nc,tablet:()=>Pc});var Ic=1600,Mc=1240,Pc=1024,$c=600,Nc=400,YS=t=>V(`
22
- @container wccToolsViewport (min-width: ${Ic}px) {
16
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function fr(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ot=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,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=vt(s),u=a.next();!u.done;u=a.next()){var c=u.value;c.remove(this)}}catch(A){e={error:A}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else s.remove(this);var l=this.initialTeardown;if(G(l))try{l()}catch(A){i=A instanceof fi?A.errors:[A]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var h=vt(f),y=h.next();!y.done;y=h.next()){var w=y.value;try{Pl(w)}catch(A){i=i??[],A instanceof fi?i=nt(nt([],ze(i)),ze(A.errors)):i.push(A)}}}catch(A){n={error:A}}finally{try{y&&!y.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new fi(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Pl(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&fr(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&fr(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}();var Ks=ot.EMPTY;function pi(t){return t instanceof ot||t&&"closed"in t&&G(t.remove)&&G(t.add)&&G(t.unsubscribe)}function Pl(t){G(t)?t():t.unsubscribe()}var it={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Ur={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Ur.delegate;return o?.setTimeout?o.setTimeout.apply(o,nt([t,e],ze(r))):setTimeout.apply(void 0,nt([t,e],ze(r)))},clearTimeout:function(t){var e=Ur.delegate;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function hi(t){Ur.setTimeout(function(){var e=it.onUnhandledError;if(e)e(t);else throw t})}function pr(){}var $l=function(){return ea("C",void 0,void 0)}();function Nl(t){return ea("E",void 0,t)}function Ol(t){return ea("N",t,void 0)}function ea(t,e,r){return{kind:t,value:e,error:r}}var hr=null;function Lr(t){if(it.useDeprecatedSynchronousErrorHandling){var e=!hr;if(e&&(hr={errorThrown:!1,error:null}),t(),e){var r=hr,n=r.errorThrown,o=r.error;if(hr=null,n)throw o}}else t()}function Dl(t){it.useDeprecatedSynchronousErrorHandling&&hr&&(hr.errorThrown=!0,hr.error=t)}var Zn=function(t){Re(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,pi(r)&&r.add(n)):n.destination=Uy,n}return e.create=function(r,n,o){return new mi(r,n,o)},e.prototype.next=function(r){this.isStopped?ra(Ol(r),this):this._next(r)},e.prototype.error=function(r){this.isStopped?ra(Nl(r),this):(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped?ra($l,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(ot);var By=Function.prototype.bind;function ta(t,e){return By.call(t,e)}var Ry=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){di(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){di(n)}else di(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){di(r)}},t}(),mi=function(t){Re(e,t);function e(r,n,o){var i=t.call(this)||this,s;if(G(r)||!r)s={next:r??void 0,error:n??void 0,complete:o??void 0};else{var a;i&&it.useDeprecatedNextContext?(a=Object.create(r),a.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&ta(r.next,a),error:r.error&&ta(r.error,a),complete:r.complete&&ta(r.complete,a)}):s=r}return i.destination=new Ry(s),i}return e}(Zn);function di(t){it.useDeprecatedSynchronousErrorHandling?Dl(t):hi(t)}function Fy(t){throw t}function ra(t,e){var r=it.onStoppedNotification;r&&Ur.setTimeout(function(){return r(t,e)})}var Uy={closed:!0,next:pr,error:Fy,complete:pr};var kr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function gi(t){return t}function Bl(t){return t.length===0?gi:t.length===1?t[0]:function(r){return t.reduce(function(n,o){return o(n)},r)}}var le=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var o=this,i=ky(e)?e:new mi(e,r,n);return Lr(function(){var s=o,a=s.operator,u=s.source;i.add(a?a.call(i,u):u?o._subscribe(i):o._trySubscribe(i))}),i},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=Rl(r),new r(function(o,i){var s=new mi({next:function(a){try{e(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[kr]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Bl(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Rl(e),new e(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},t.create=function(e){return new t(e)},t}();function Rl(t){var e;return(e=t??it.Promise)!==null&&e!==void 0?e:Promise}function Ly(t){return t&&G(t.next)&&G(t.error)&&G(t.complete)}function ky(t){return t&&t instanceof Zn||Ly(t)&&pi(t)}function jy(t){return G(t?.lift)}function be(t){return function(e){if(jy(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Te(t,e,r,n,o){return new qy(t,e,r,n,o)}var qy=function(t){Re(e,t);function e(r,n,o,i,s,a){var u=t.call(this,r)||this;return u.onFinalize=s,u.shouldUnsubscribe=a,u._next=n?function(c){try{n(c)}catch(l){r.error(l)}}:t.prototype._next,u._error=i?function(c){try{i(c)}catch(l){r.error(l)}finally{this.unsubscribe()}}:t.prototype._error,u._complete=o?function(){try{o()}catch(c){r.error(c)}finally{this.unsubscribe()}}:t.prototype._complete,u}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(Zn);var Fl=li(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var wt=function(t){Re(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var n=new Ul(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new Fl},e.prototype.next=function(r){var n=this;Lr(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=vt(n.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(r)}}catch(c){o={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},e.prototype.error=function(r){var n=this;Lr(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},e.prototype.complete=function(){var r=this;Lr(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?Ks:(this.currentObservers=null,a.push(r),new ot(function(){n.currentObservers=null,fr(a,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},e.prototype.asObservable=function(){var r=new le;return r.source=this,r},e.create=function(r,n){return new Ul(r,n)},e}(le);var Ul=function(t){Re(e,t);function e(r,n){var o=t.call(this)||this;return o.destination=r,o.source=n,o}return e.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},e.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Ks},e}(wt);var Xn={now:function(){return(Xn.delegate||Date).now()},delegate:void 0};var na=function(t){Re(e,t);function e(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Xn);var i=t.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 e.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,u=n._windowTime;o||(i.push(r),!s&&i.push(a.now()+u)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),u=0;u<a.length&&!r.closed;u+=i?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),n},e.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 u=o.now(),c=0,l=1;l<i.length&&i[l]<=u;l+=2)c=l;c&&i.splice(0,c+1)}},e}(wt);var Ll=function(t){Re(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return n===void 0&&(n=0),this},e}(ot);var Kn={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Kn.delegate;return o?.setInterval?o.setInterval.apply(o,nt([t,e],ze(r))):setInterval.apply(void 0,nt([t,e],ze(r)))},clearInterval:function(t){var e=Kn.delegate;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var kl=function(t){Re(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return e.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},e.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),Kn.setInterval(r.flush.bind(r,this),o)},e.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Kn.clearInterval(n)},e.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}catch(s){o=!0,i=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},e.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,fr(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(Ll);var oa=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=Xn.now,t}();var jl=function(t){Re(e,t);function e(r,n){n===void 0&&(n=oa.now);var o=t.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return e.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},e}(oa);var eo=new jl(kl),ql=eo;function yi(t){return t&&G(t.schedule)}function Wy(t){return t[t.length-1]}function jr(t){return yi(Wy(t))?t.pop():void 0}var qr=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function xi(t){return G(t?.then)}function bi(t){return G(t[kr])}function vi(t){return Symbol.asyncIterator&&G(t?.[Symbol.asyncIterator])}function wi(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Hy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Si=Hy();function Ei(t){return G(t?.[Si])}function Ti(t){return Il(this,arguments,function(){var r,n,o,i;return ci(this,function(s){switch(s.label){case 0:r=t.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,lr(r.read())];case 3:return n=s.sent(),o=n.value,i=n.done,i?[4,lr(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,lr(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 _i(t){return G(t?.getReader)}function Me(t){if(t instanceof le)return t;if(t!=null){if(bi(t))return zy(t);if(qr(t))return Vy(t);if(xi(t))return Gy(t);if(vi(t))return Wl(t);if(Ei(t))return Jy(t);if(_i(t))return Yy(t)}throw wi(t)}function zy(t){return new le(function(e){var r=t[kr]();if(G(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Vy(t){return new le(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function Gy(t){return new le(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,hi)})}function Jy(t){return new le(function(e){var r,n;try{for(var o=vt(t),i=o.next();!i.done;i=o.next()){var s=i.value;if(e.next(s),e.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.complete()})}function Wl(t){return new le(function(e){Qy(t,e).catch(function(r){return e.error(r)})})}function Yy(t){return Wl(Ti(t))}function Qy(t,e){var r,n,o,i;return Al(this,void 0,void 0,function(){var s,a;return ci(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=Ml(t),u.label=1;case 1:return[4,r.next()];case 2:if(n=u.sent(),!!n.done)return[3,4];if(s=n.value,e.next(s),e.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=u.sent(),o={error:a},[3,11];case 6:return u.trys.push([6,,9,10]),n&&!n.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function Ge(t,e,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function Ci(t,e){return e===void 0&&(e=0),be(function(r,n){r.subscribe(Te(n,function(o){return Ge(n,t,function(){return n.next(o)},e)},function(){return Ge(n,t,function(){return n.complete()},e)},function(o){return Ge(n,t,function(){return n.error(o)},e)}))})}function Ai(t,e){return e===void 0&&(e=0),be(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function Hl(t,e){return Me(t).pipe(Ai(e),Ci(e))}function zl(t,e){return Me(t).pipe(Ai(e),Ci(e))}function Vl(t,e){return new le(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Gl(t,e){return new le(function(r){var n;return Ge(r,e,function(){n=t[Si](),Ge(r,e,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 G(n?.return)&&n.return()}})}function Ii(t,e){if(!t)throw new Error("Iterable cannot be null");return new le(function(r){Ge(r,e,function(){var n=t[Symbol.asyncIterator]();Ge(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function Jl(t,e){return Ii(Ti(t),e)}function Yl(t,e){if(t!=null){if(bi(t))return Hl(t,e);if(qr(t))return Vl(t,e);if(xi(t))return zl(t,e);if(vi(t))return Ii(t,e);if(Ei(t))return Gl(t,e);if(_i(t))return Jl(t,e)}throw wi(t)}function dr(t,e){return e?Yl(t,e):Me(t)}function ia(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=jr(t);return dr(t,r)}function Ql(t){return t instanceof Date&&!isNaN(t)}function mr(t,e){return be(function(r,n){var o=0;r.subscribe(Te(n,function(i){n.next(t.call(e,i,o++))}))})}var Zy=Array.isArray;function Xy(t,e){return Zy(e)?t.apply(void 0,nt([],ze(e))):t(e)}function Zl(t){return mr(function(e){return Xy(t,e)})}function Xl(t,e,r,n,o,i,s,a){var u=[],c=0,l=0,f=!1,h=function(){f&&!u.length&&!c&&e.complete()},y=function(A){return c<n?w(A):u.push(A)},w=function(A){i&&e.next(A),c++;var O=!1;Me(r(A,l++)).subscribe(Te(e,function(_){o?.(_),i?y(_):e.next(_)},function(){O=!0},void 0,function(){if(O)try{c--;for(var _=function(){var I=u.shift();s?Ge(e,s,function(){return w(I)}):w(I)};u.length&&c<n;)_();h()}catch(I){e.error(I)}}))};return t.subscribe(Te(e,y,function(){f=!0,h()})),function(){a?.()}}function to(t,e,r){return r===void 0&&(r=1/0),G(e)?to(function(n,o){return mr(function(i,s){return e(n,i,o,s)})(Me(t(n,o)))},r):(typeof e=="number"&&(r=e),be(function(n,o){return Xl(n,o,t,r)}))}function Kl(t){return t===void 0&&(t=1/0),to(gi,t)}function ef(){return Kl(1)}function sa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ef()(dr(t,jr(t)))}var Ky=["addListener","removeListener"],e0=["addEventListener","removeEventListener"],t0=["on","off"];function gr(t,e,r,n){if(G(r)&&(n=r,r=void 0),n)return gr(t,e,r).pipe(Zl(n));var o=ze(o0(t)?e0.map(function(a){return function(u){return t[a](e,u,r)}}):r0(t)?Ky.map(tf(t,e)):n0(t)?t0.map(tf(t,e)):[],2),i=o[0],s=o[1];if(!i&&qr(t))return to(function(a){return gr(a,e,r)})(Me(t));if(!i)throw new TypeError("Invalid event target");return new le(function(a){var u=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return a.next(1<c.length?c:c[0])};return i(u),function(){return s(u)}})}function tf(t,e){return function(r){return function(n){return t[r](e,n)}}}function r0(t){return G(t.addListener)&&G(t.removeListener)}function n0(t){return G(t.on)&&G(t.off)}function o0(t){return G(t.addEventListener)&&G(t.removeEventListener)}function rf(t,e,r){t===void 0&&(t=0),r===void 0&&(r=ql);var n=-1;return e!=null&&(yi(e)?r=e:n=e),new le(function(o){var i=Ql(t)?+t-r.now():t;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 aa(t,e){return be(function(r,n){var o=0;r.subscribe(Te(n,function(i){return t.call(e,i,o++)&&n.next(i)}))})}function ua(t){return be(function(e,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)}};e.subscribe(Te(r,function(a){i?.unsubscribe(),n=!0,o=a,i=Te(r,s,pr),Me(t(a)).subscribe(i)},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function ca(t,e){return e===void 0&&(e=eo),be(function(r,n){var o=null,i=null,s=null,a=function(){if(o){o.unsubscribe(),o=null;var c=i;i=null,n.next(c)}};function u(){var c=s+t,l=e.now();if(l<c){o=this.schedule(void 0,c-l),n.add(o);return}a()}r.subscribe(Te(n,function(c){i=c,s=e.now(),o||(o=e.schedule(u,t),n.add(o))},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function la(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=jr(t);return be(function(n,o){(r?sa(t,n,r):sa(t,n)).subscribe(o)})}function fa(t){return be(function(e,r){Me(t).subscribe(Te(r,function(){return r.complete()},pr)),!r.closed&&e.subscribe(r)})}function nf(t,e){return be(function(r,n){var o=e??{},i=o.leading,s=i===void 0?!0:i,a=o.trailing,u=a===void 0?!1:a,c=!1,l=null,f=null,h=!1,y=function(){f?.unsubscribe(),f=null,u&&(O(),h&&n.complete())},w=function(){f=null,h&&n.complete()},A=function(_){return f=Me(t(_)).subscribe(Te(n,y,w))},O=function(){if(c){c=!1;var _=l;l=null,n.next(_),!h&&A(_)}};r.subscribe(Te(n,function(_){c=!0,l=_,!(f&&!f.closed)&&(s?O():A(_))},function(){h=!0,!(u&&c&&f&&!f.closed)&&n.complete()}))})}function pa(t,e,r){e===void 0&&(e=eo);var n=rf(t,e);return nf(function(){return n},r)}var i0={debounce:ua,debounceTime:ca,map:mr,startWith:la,takeUntil:fa,throttleTime:pa,filter:aa};var ha=class{constructor(){this.observableEventEmitterBundleArray=new Array,this.observableEventTargetBundleArray=new Array}getSubjectForEmitterEvent(e,r){let n=this.observableEventEmitterBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let o=gr(e,r),i=new wt;o.subscribe(i);let s={subject:i,eventRef:e,event:r};return this.observableEventEmitterBundleArray.push(s),s.subject}}getSubjectForEventTarget(e,r){let n=this.observableEventTargetBundleArray.find(o=>o.eventRef===e&&o.event===r);if(n)return n.subject;{let i={subject:new wt,eventRef:e,event:r};return this.observableEventTargetBundleArray.push(i),i.subject}}};var da=class{constructor(){this.observableFunctions={next:e=>{},complete:e=>{}},this.generator=null,this.buffered=!1,this.payloadBuffer=[],this.observable=new le(e=>{this.observableFunctions.next=(...r)=>e.next(r),this.observableFunctions.complete=()=>(this.completedDeffered.resolve(),e.complete())}),this.completedDeffered=Q.defer(),this.completed=this.completedDeffered.promise}setObservable(e){this.observable=e}push(e){this.buffered?this.payloadBuffer.push(e):this.internalPush(e)}pushMany(e){for(let r of e)this.push(r)}setGenerator(e){this.generator=e}makeBuffered(){this.buffered=!0}subscribe(...e){return this.observable.subscribe(...e)}request(e){if(e!==0)for(let r=0;r!==e;r++)if(this.payloadBuffer.length>0)this.internalPush(this.payloadBuffer.shift());else{let n=this.generator.next();this.internalPush(n.value)}}signalComplete(){this.observableFunctions.complete()}internalPush(e){this.observableFunctions.next(e)}};var s0={attribute:!0,type:String,converter:zn,reflect:!1,hasChanged:Xo},a0=(t=s0,e,r)=>{let{kind:n,metadata:o}=r,i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),i.set(r.name,t),n==="accessor"){let{name:s}=r;return{set(a){let u=e.get.call(this);e.set.call(this,a),this.requestUpdate(s,u,t)},init(a){return a!==void 0&&this.C(s,void 0,t),a}}}if(n==="setter"){let{name:s}=r;return function(a){let u=this[s];e.call(this,a),this.requestUpdate(s,u,t)}}throw Error("Unsupported decorator location: "+n)};function J(t){return(e,r)=>typeof r=="object"?a0(t,e,r):((n,o,i)=>{let s=o.hasOwnProperty(i);return o.constructor.createProperty(i,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(o,i):void 0})(t,e,r)}var Oe={};X(Oe,{DomTools:()=>he,TypedRequest:()=>Io,breakpoints:()=>$t,css:()=>Rc,elementBasic:()=>Ce,plugins:()=>sE});var Ce={};X(Ce,{setup:()=>oE,staticStyles:()=>rE,styles:()=>nE});var gs={};X(gs,{DeesComms:()=>bc});var se={};X(se,{Timeout:()=>Mi,delayFor:()=>of,delayForRandom:()=>u0});var of=async(t,e,r=!1)=>(await new Mi(t,null,r).promise,e),u0=async(t,e,r,n=!1)=>(await of(Math.random()*(e-t)+t,null,n),r),Mi=class{constructor(e,r,n=!1){this._cancelled=!1,this.timeoutInMillis=e,this._deferred=cr(),this.promise=this._deferred.promise,this._timeout=setTimeout(()=>{this._cancelled||this._deferred.resolve(r)},e),this.started=Date.now(),n&&this.makeUnrefed()}makeUnrefed(){this._timeout.unref()}cancel(){this._cancelled=!0,clearTimeout(this._timeout)}getTimeLeft(){let e=this.started+this.timeoutInMillis-Date.now();return e>0?e:0}};var Xe={};X(Xe,{TypedHandler:()=>fc,TypedRequest:()=>Io,TypedResponseError:()=>Cr,TypedRouter:()=>pc,TypedTarget:()=>hc});var fm=De(si(),1);var ct={};X(ct,{AsyncExecutionStack:()=>Da,BackpressuredArray:()=>Ba,FastMap:()=>yr,Interest:()=>so,InterestMap:()=>Ra,LimitedArray:()=>Fa,LoopTracker:()=>Ua,ObjectMap:()=>Tt,Stringmap:()=>ao,TimedAggregtor:()=>La,Tree:()=>ka,uni:()=>_f});var $i={};X($i,{SmartMatch:()=>ya});var Pi={};X(Pi,{isMatch:()=>f0,matcher:()=>l0});function ma(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var ga=new Map,sf=(t,e)=>{if(!Array.isArray(t))switch(typeof t){case"string":t=[t];break;case"undefined":t=[];break;default:throw new TypeError(`Expected '${e}' to be a string or an array, but got a type of '${typeof t}'`)}return t.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${e}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},c0=(t,e)=>{e={caseSensitive:!1,...e};let r=t+JSON.stringify(e);if(ga.has(r))return ga.get(r);let n=t[0]==="!";n&&(t=t.slice(1)),t=ma(t).replace(/\\\*/g,"[\\s\\S]*");let o=new RegExp(`^${t}$`,e.caseSensitive?"":"i");return o.negated=n,ga.set(r,o),o},af=(t,e,r,n)=>{if(t=sf(t,"inputs"),e=sf(e,"patterns"),e.length===0)return[];e=e.map(s=>c0(s,r));let{allPatterns:o}=r||{},i=[];for(let s of t){let a,u=[...e].fill(!1);for(let[c,l]of e.entries())if(l.test(s)&&(u[c]=!0,a=!l.negated,!a))break;if(!(a===!1||a===void 0&&e.some(c=>!c.negated)||o&&u.some((c,l)=>!c&&!e[l].negated))&&(i.push(s),n))break}return i};function l0(t,e,r){return af(t,e,r,!1)}function f0(t,e,r){return af(t,e,r,!0).length>0}var ya=class{constructor(e){this.wildcard=e}match(e){return Pi.isMatch(e,this.wildcard)}};var Et={};X(Et,{CronJob:()=>io,CronManager:()=>Aa,ExtendedDate:()=>Ia,HrtMeasurement:()=>Ma,Interval:()=>Pa,TimeStamp:()=>zr,Timer:()=>$a,getMilliSecondsAsHumanReadableString:()=>Ca,getMilliSecondsFromUnits:()=>_a,units:()=>Lt});function ke(t,e,r,n,o,i,s,a){return ke.fromTZ(ke.tp(t,e,r,n,o,i,s),a)}ke.fromTZISO=(t,e,r)=>ke.fromTZ(h0(t,e),r);ke.fromTZ=function(t,e){let r=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),n=xa(t.tz,r),o=new Date(r.getTime()-n),i=xa(t.tz,o);if(i-n===0)return o;{let s=new Date(r.getTime()-i),a=xa(t.tz,s);if(a-i===0)return s;if(!e&&a-i>0)return s;if(e)throw new Error("Invalid date passed to fromTZ()");return o}};ke.toTZ=function(t,e){let r=t.toLocaleString("en-US",{timeZone:e}).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:e}};ke.tp=(t,e,r,n,o,i,s)=>({y:t,m:e,d:r,h:n,i:o,s:i,tz:s});function xa(t,e=new Date){let r=e.toLocaleString("en-US",{timeZone:t,timeZoneName:"short"}).split(" ").slice(-1)[0],n=e.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${n} GMT`)-Date.parse(`${n} ${r}`)}function h0(t,e){let r=new Date(Date.parse(t));if(isNaN(r))throw new Error("minitz: Invalid ISO8601 passed to parser.");let n=t.substring(9);return t.includes("Z")||n.includes("-")||n.includes("+")?ke.tp(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),"Etc/UTC"):ke.tp(r.getFullYear(),r.getMonth()+1,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),e)}ke.minitz=ke;function d0(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode=t.legacyMode===void 0?!0:t.legacyMode,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval,10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset,10),t.unref=t.unref===void 0?!1:t.unref,t.startAt&&(t.startAt=new _e(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new _e(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return t}var ba=32,no=31|ba,cf=[1,2,4,16,16];function je(t,e){this.pattern=t,this.timezone=e,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}je.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 t=this.pattern.replace(/\s+/g," ").split(" ");if(t.length<5||t.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exacly five or six space separated parts required.");if(t.length===5&&t.unshift("0"),t[3].indexOf("L")>=0&&(t[3]=t[3].replace("L",""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.replaceAlphaDays(t[5])),t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let e=new _e(new Date,this.timezone).getDate(!0);t[0]=t[0].replace("?",e.getSeconds()),t[1]=t[1].replace("?",e.getMinutes()),t[2]=t[2].replace("?",e.getHours()),this.starDOM||(t[3]=t[3].replace("?",e.getDate())),t[4]=t[4].replace("?",e.getMonth()+1),this.starDOW||(t[5]=t[5].replace("?",e.getDay()))}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0,1),this.partToArray("minute",t[1],0,1),this.partToArray("hour",t[2],0,1),this.partToArray("day",t[3],-1,1),this.partToArray("month",t[4],-1,1),this.partToArray("dayOfWeek",t[5],0,no),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])};je.prototype.partToArray=function(t,e,r,n){let o=this[t],i=t==="day"&&this.lastDayOfMonth;if(e===""&&!i)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return o.fill(n);let s=e.split(",");if(s.length>1)for(let a=0;a<s.length;a++)this.partToArray(t,s[a],r,n);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,r,n):e.indexOf("-")!==-1?this.handleRange(e,t,r,n):e.indexOf("/")!==-1?this.handleStepping(e,t,r,n):e!==""&&this.handleNumber(e,t,r,n)};je.prototype.throwAtIllegalCharacters=function(t){for(let e=0;e<t.length;e++)if((e===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")};je.prototype.handleNumber=function(t,e,r,n){let o=this.extractNth(t,e),i=parseInt(o[0],10)+r;if(isNaN(i))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,i,o[1]||n)};je.prototype.setPart=function(t,e,r){if(!Object.prototype.hasOwnProperty.call(this,t))throw new TypeError("CronPattern: Invalid part specified: "+t);if(t==="dayOfWeek"){if(e===7&&(e=0),(e<0||e>6)&&e!=="L")throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+e);this.setNthWeekdayOfMonth(e,r);return}if(t==="second"||t==="minute"){if(e<0||e>=60)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="hour"){if(e<0||e>=24)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="day"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"&&(e<0||e>=12))throw new RangeError("CronPattern: Invalid value for "+t+": "+e);this[t][e]=r};je.prototype.handleRangeWithStepping=function(t,e,r,n){let o=this.extractNth(t,e),i=o[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(i===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,s,a,u]=i;if(s=parseInt(s,10)+r,a=parseInt(a,10)+r,u=parseInt(u,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(u))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(u===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(u>this[e].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[e].length+")");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let c=s;c<=a;c+=u)this.setPart(e,c,o[1]||n)};je.prototype.extractNth=function(t,e){let r=t,n;if(r.includes("#")){if(e!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");n=r.split("#")[1],r=r.split("#")[0]}return[r,n]};je.prototype.handleRange=function(t,e,r,n){let o=this.extractNth(t,e),i=o[0].split("-");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let s=parseInt(i[0],10)+r,a=parseInt(i[1],10)+r;if(isNaN(s))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(s>a)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let u=s;u<=a;u++)this.setPart(e,u,o[1]||n)};je.prototype.handleStepping=function(t,e,r,n){let o=this.extractNth(t,e),i=o[0].split("/");if(i.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");let s=0;i[0]!=="*"&&(s=parseInt(i[0],10)+r);let a=parseInt(i[1],10);if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(a===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(a>this[e].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[e].length+")");for(let u=s;u<this[e].length;u+=a)this.setPart(e,u,o[1]||n)};je.prototype.replaceAlphaDays=function(t){return t.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")};je.prototype.replaceAlphaMonths=function(t){return t.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")};je.prototype.handleNicknames=function(t){let e=t.trim().toLowerCase();return e==="@yearly"||e==="@annually"?"0 0 1 1 *":e==="@monthly"?"0 0 1 * *":e==="@weekly"?"0 0 * * 0":e==="@daily"?"0 0 * * *":e==="@hourly"?"0 * * * *":t};je.prototype.setNthWeekdayOfMonth=function(t,e){if(e==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|ba;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|cf[e-1];else if(e===no)this.dayOfWeek[t]=no;else throw new TypeError(`CronPattern: nth weekday of of range, should be 1-5 or L. Value: ${e}`)};var lf=[31,28,31,30,31,30,31,31,30,31,30,31],St=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]];function _e(t,e){if(this.tz=e,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 _e)this.fromCronDate(t);else throw new TypeError("CronDate: Invalid type ("+typeof t+") passed to CronDate constructor")}_e.prototype.isNthWeekdayOfMonth=function(t,e,r,n){let i=new Date(Date.UTC(t,e,r)).getUTCDay(),s=0;for(let a=1;a<=r;a++)new Date(Date.UTC(t,e,a)).getUTCDay()===i&&s++;if(n&no&&cf[s-1]&n)return!0;if(n&ba){let a=new Date(Date.UTC(t,e+1,0)).getUTCDate();for(let u=r+1;u<=a;u++)if(new Date(Date.UTC(t,e,u)).getUTCDay()===i)return!1;return!0}return!1};_e.prototype.fromDate=function(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 e=ke.toTZ(t,this.tz);this.ms=t.getMilliseconds(),this.second=e.s,this.minute=e.i,this.hour=e.h,this.day=e.d,this.month=e.m-1,this.year=e.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()};_e.prototype.fromCronDate=function(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};_e.prototype.apply=function(){if(this.month>11||this.day>lf[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};_e.prototype.fromString=function(t){return this.fromDate(ke.fromTZISO(t,this.tz))};_e.prototype.findNext=function(t,e,r,n){let o=this[e],i;r.lastDayOfMonth&&(this.month!==1?i=lf[this.month]:i=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let s=!r.starDOW&&e=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let a=this[e]+n;a<r[e].length;a++){let u=r[e][a];if(e==="day"&&r.lastDayOfMonth&&a-n==i&&(u=!0),e==="day"&&!r.starDOW){let c=r.dayOfWeek[(s+(a-n-1))%7];if(c&&c&no)c=this.isNthWeekdayOfMonth(this.year,this.month,a-n,c);else if(c)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${c}`);t.legacyMode&&!r.starDOM?u=u||c:u=u&&c}if(u)return this[e]=a-n,o!==this[e]?2:1}return 3};_e.prototype.recurse=function(t,e,r){let n=this.findNext(e,St[r][0],t,St[r][2]);if(n>1){let o=r+1;for(;o<St.length;)this[St[o][0]]=-St[o][2],o++;if(n===3)return this[St[r][1]]++,this[St[r][0]]=-St[r][2],this.apply(),this.recurse(t,e,0);if(this.apply())return this.recurse(t,e,r-1)}return r+=1,r>=St.length?this:this.year>=3e3?null:this.recurse(t,e,r)};_e.prototype.increment=function(t,e,r){return this.second+=e.interval>1&&r?e.interval:1,this.ms=0,this.apply(),this.recurse(t,e,0)};_e.prototype.getDate=function(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)):ke(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz)};_e.prototype.getTime=function(){return this.getDate().getTime()};function Ni(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function m0(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var uf=30*1e3,oo=[];function fe(t,e,r){if(!(this instanceof fe))return new fe(t,e,r);let n,o;if(Ni(e))o=e;else if(typeof e=="object")n=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(Ni(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?n.name:void 0,this.options=d0(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},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new _e(t,this.options.timezone||this.options.utcOffset):this._states.pattern=new je(t,this.options.timezone),this.name){if(oo.find(s=>s.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");oo.push(this)}return o!==void 0&&(this.fn=o,this.schedule()),this}fe.prototype.nextRun=function(t){let e=this._next(t);return e?e.getDate():null};fe.prototype.nextRuns=function(t,e){t>this._states.maxRuns&&(t=this._states.maxRuns);let r=[],n=e||this._states.currentRun;for(;t--&&(n=this.nextRun(n));)r.push(n);return r};fe.prototype.getPattern=function(){return this._states.pattern?this._states.pattern.pattern:void 0};fe.prototype.isRunning=function(){let t=this.nextRun(this._states.currentRun),e=!this._states.paused,r=this.fn!==void 0,n=!this._states.kill;return e&&r&&n&&t!==null};fe.prototype.isStopped=function(){return this._states.kill};fe.prototype.isBusy=function(){return this._states.blocking};fe.prototype.currentRun=function(){return this._states.currentRun?this._states.currentRun.getDate():null};fe.prototype.previousRun=function(){return this._states.previousRun?this._states.previousRun.getDate():null};fe.prototype.msToNext=function(t){t=t||new Date;let e=this._next(t);return e?e.getTime()-t.getTime():null};fe.prototype.stop=function(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=oo.indexOf(this);t>=0&&oo.splice(t,1)};fe.prototype.pause=function(){return this._states.paused=!0,!this._states.kill};fe.prototype.resume=function(){return this._states.paused=!1,!this._states.kill};fe.prototype.schedule=function(t){if(t&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");t&&(this.fn=t);let e=this.msToNext(),r=this.nextRun(this._states.currentRun);return e===null||r===null?this:(e>uf&&(e=uf),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(r),e),this._states.currentTimeout&&this.options.unref&&m0(this._states.currentTimeout),this)};fe.prototype._trigger=async function(t){if(this._states.blocking=!0,this._states.currentRun=new _e(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{await this.fn(this,this.options.context)}catch(e){Ni(this.options.catch)&&this.options.catch(e,this)}else await this.fn(this,this.options.context);this._states.previousRun=new _e(t,this.options.timezone||this.options.utcOffset),this._states.blocking=!1};fe.prototype.trigger=async function(){await this._trigger()};fe.prototype._checkTrigger=function(t){let e=new Date,r=!this._states.paused&&e.getTime()>=t,n=this._states.blocking&&this.options.protect;r&&!n?(this._states.maxRuns--,this._trigger()):r&&n&&Ni(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()};fe.prototype._next=function(t){let e=!!(t||this._states.currentRun);t=new _e(t,this.options.timezone||this.options.utcOffset),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let r=this._states.once||new _e(t,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,e);return this._states.once&&this._states.once.getTime()<=t.getTime()||r===null||this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&r.getTime()>=this.options.stopAt.getTime()?null:r};fe.Cron=fe;fe.scheduledJobs=oo;var Wr=De(ff(),1),hf=De(pf(),1);function Ta(t){if(typeof t!="number")throw new TypeError("Expected a number");let e=t>0?Math.floor:Math.ceil;return{days:e(t/864e5),hours:e(t/36e5)%24,minutes:e(t/6e4)%60,seconds:e(t/1e3)%60,milliseconds:e(t)%1e3,microseconds:e(t*1e3)%1e3,nanoseconds:e(t*1e6)%1e3}}var g0=(t,e)=>e===1?t:`${t}s`,y0=1e-7;function Oi(t,e={}){if(!Number.isFinite(t))throw new TypeError("Expected a finite number");e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);let r=[],n=(s,a)=>{let u=Math.floor(s*10**a+y0);return(Math.round(u)/10**a).toFixed(a)},o=(s,a,u,c)=>{if((r.length===0||!e.colonNotation)&&s===0&&!(e.colonNotation&&u==="m"))return;c=(c||s||"0").toString();let l,f;if(e.colonNotation){l=r.length>0?":":"",f="";let h=c.includes(".")?c.split(".")[0].length:c.length,y=r.length>0?2:1;c="0".repeat(Math.max(0,y-h))+c}else l="",f=e.verbose?" "+g0(a,s):u;r.push(l+c+f)},i=Ta(t);if(o(Math.trunc(i.days/365),"year","y"),o(i.days%365,"day","d"),o(i.hours,"hour","h"),o(i.minutes,"minute","m"),e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&t<1e3)if(o(i.seconds,"second","s"),e.formatSubMilliseconds)o(i.milliseconds,"millisecond","ms"),o(i.microseconds,"microsecond","\xB5s"),o(i.nanoseconds,"nanosecond","ns");else{let s=i.milliseconds+i.microseconds/1e3+i.nanoseconds/1e6,a=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,u=s>=1?Math.round(s):Math.ceil(s),c=a?s.toFixed(a):u;o(Number.parseFloat(c),"millisecond","ms",c)}else{let s=t/1e3%60,a=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,u=n(s,a),c=e.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");o(Number.parseFloat(c),"second","s",c)}if(r.length===0)return"0"+(e.verbose?" milliseconds":"ms");if(e.compact)return r[0];if(typeof e.unitCount=="number"){let s=e.colonNotation?"":" ";return r.slice(0,Math.max(e.unitCount,1)).join(s)}return e.colonNotation?r.join(""):r.join(" ")}Wr.default.extend(hf.default);var io=class{constructor(e,r,n){this.status="initial",this.nextExecutionUnix=0,this.cronExpression=r,this.jobFunction=n,this.cronParser=fe(r)}checkExecution(){if(this.nextExecutionUnix===0&&this.getNextExecutionTime(),Date.now()>this.nextExecutionUnix){let e=this.jobFunction(this.nextExecutionUnix);e instanceof Promise&&e.catch(r=>console.log(r)),this.nextExecutionUnix=this.getNextExecutionTime()}return this.nextExecutionUnix}getNextExecutionTime(){return this.nextExecutionUnix=Date.now()+this.getTimeToNextExecution()}getTimeToNextExecution(){return this.cronParser.msToNext()}start(){this.status="started"}stop(){this.status="stopped"}};var Lt={years:(t=1)=>t*3154e7,months:(t=1)=>t*2628e6,weeks:(t=1)=>t*6048e5,days:(t=1)=>t*864e5,hours:(t=1)=>t*36e5,minutes:(t=1)=>t*6e4,seconds:(t=1)=>t*1e3},_a=t=>{let e=0,r=n=>{e=e+n};return t.years&&r(Lt.years(t.years)),t.months&&r(Lt.months(t.months)),t.weeks&&r(Lt.weeks(t.weeks)),t.days&&r(Lt.days(t.days)),t.hours&&r(Lt.hours(t.hours)),t.minutes&&r(Lt.minutes(t.minutes)),t.seconds&&r(Lt.seconds(t.seconds)),e},Ca=t=>Oi(t);var Aa=class{constructor(){this.status="stopped",this.cronjobs=new ct.ObjectMap}addCronjob(e,r){let n=new io(this,e,r);return this.cronjobs.add(n),this.status==="started"&&n.start(),n}removeCronjob(e){e.stop(),this.cronjobs.remove(e)}start(){if(this.status!=="started"){this.status="started";for(let e of this.cronjobs.getArray())e.start();this.runCronCycle()}}async runCronCycle(){this.executionTimeout=new se.Timeout(0);do{let e;for(let r of this.cronjobs.getArray())r.checkExecution(),(!e||r.getTimeToNextExecution()<e.getTimeToNextExecution())&&(e=r);e?(this.executionTimeout=new se.Timeout(e.getTimeToNextExecution()),console.log(`Next CronJob scheduled in ${Ca(this.executionTimeout.getTimeLeft())}`)):(this.executionTimeout=new se.Timeout(1e3),console.log("no cronjobs specified! Checking again in 1 second")),await this.executionTimeout.promise}while(this.status==="started")}stop(){this.status==="started"?(this.status="stopped",this.executionTimeout.cancel()):console.log("You tried to stop a CronManager that was not actually started.");for(let e of this.cronjobs.getArray())e.stop()}};var Ia=class t extends Date{static fromMillis(e){return new t(e)}static fromDate(e){return new t(e.getTime())}static fromEuropeanDate(e){let r=/(.*)\.(.*)\.(.*)/.exec(e),o=new Date(parseFloat(r[3]),parseFloat(r[2])-1,parseFloat(r[1])).getTime();return new t(o)}static fromHyphedDate(e){let r=new Date(e).getTime();return new t(r)}static fromEuropeanDateAndTime(e,r="12:00:00",n="Europe/Berlin"){let o=/(.*)\.(.*)\.(.*)/.exec(e),i=c=>`0${c}`.slice(-2),s=`${o[3]}-${i(o[2])}-${i(o[1])}T${r}`,u=Wr.default(s).toDate().getTime();return new t(u)}constructor(e=Date.now()){super(e)}exportToEuropeanDate(){let e=this.exportToUnits();return`${e.dayString}.${e.monthString}.${e.yearString}`}exportToHyphedSortableDate(){let e=this.exportToUnits();return`${e.yearString}-${e.monthString}-${e.dayString}`}exportToUnits(){let e=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];return{year:this.getFullYear(),yearString:`${this.getFullYear()}`,month:this.getMonth()+1,monthString:("0"+(this.getMonth()+1)).slice(-2),monthName:e[this.getMonth()],day:this.getDate(),dayString:("0"+this.getDate()).slice(-2),dayOfTheWeek:this.getDay(),dayOfTheWeekName:r[this.getDay()]}}format(e){return Wr.default(this.getTime()).format(e)}isToday(){return Wr.default(this.getTime()).isToday()}lessTimePassedToNow(e){let r=_a(e);return Date.now()-this.getTime()<r}moreTimePassedToNow(e){return!this.lessTimePassedToNow(e)}};var Ma=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 Pa=class{constructor(e){this.status="initial",this.statusAuthorization=null,this.intervalJobs=[],this.intervalMilliseconds=e}start(){this.status="started";let e=new Date;this.statusAuthorization=e,(async()=>{for(;this.status==="started"&&this.statusAuthorization===e;)await se.delayFor(this.intervalMilliseconds),this.executeIntervalJobs()})()}stop(){this.status="stopped",this.statusAuthorization=null}addIntervalJob(e){this.intervalJobs.push(e)}executeIntervalJobs(){for(let e of this.intervalJobs)e()}};var zr=class t{static fromMilliSeconds(e){return new t(e)}static fromTimeStamp(e){let r=new t;return r.change=r.milliSeconds-e.milliSeconds,r}constructor(e){this.change=null,e?typeof e=="number"&&(this.date=new Date(e)):this.date=new Date,this.milliSeconds=this.date.getTime(),this.epochtime=Math.floor(this.milliSeconds/1e3)}isOlderThanOtherTimeStamp(e,r=0){return this.milliSeconds<e.milliSeconds-r}isOlderThan(e,r=0){return this.milliSeconds+r<e.milliSeconds}isYoungerThanOtherTimeStamp(e,r=0){return this.milliSeconds>e.milliSeconds+r}isYoungerThanMilliSeconds(e){let n=new t().epochtime-e,o=new t(n);return this.isYoungerThanOtherTimeStamp(o)}};var $a=class{get timeLeft(){return this.timeInMilliseconds-this.pausedAt.change}constructor(e){this.state="initiated",this.completedDeferred=Q.defer(),this.timeInMilliseconds=e,this.completed=this.completedDeferred.promise}start(){if(!this.startedAt)this.currentTimeout=setTimeout(()=>{this.completedDeferred.resolve()},this.timeInMilliseconds),this.startedAt=new zr;else throw new Error("timer has been started before. Please use resume instead")}pause(){this.startedAt&&(clearTimeout(this.currentTimeout),this.currentTimeout=null,this.pausedAt=zr.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 Oa=De(Tf(),1);var Da=class{constructor(){this.executionSlots=[],this.isProcessing=!1}async getExclusiveExecutionSlot(e,r){let n=Q.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"exclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async getNonExclusiveExecutionSlot(e,r){let n=Q.defer(),o={funcToExecute:e,executionDeferred:n,timeout:r,mode:"nonexclusive"};return this.executionSlots.push(o),this.processExecutionSlots(),n.promise}async processExecutionSlots(){if(!this.isProcessing){for(this.isProcessing=!0;this.executionSlots.length>0;){let e=this.executionSlots[0];if(e.mode==="exclusive")await this.executeExclusiveSlot(e),this.executionSlots.shift();else{let r=[];for(;this.executionSlots.length>0&&this.executionSlots[0].mode==="nonexclusive";)r.push(this.executionSlots.shift());await this.executeNonExclusiveSlots(r)}}this.isProcessing=!1}}async executeExclusiveSlot(e){try{if(e.timeout){let r=await Promise.race([e.funcToExecute(),se.delayFor(e.timeout).then(()=>{throw new Error("Timeout reached")})]);e.executionDeferred.resolve(r)}else{let r=await e.funcToExecute();e.executionDeferred.resolve(r)}}catch(r){e.executionDeferred.reject(r)}}async executeNonExclusiveSlots(e){let r=e.map(async n=>{try{if(n.timeout){let o=await Promise.race([n.funcToExecute(),se.delayFor(n.timeout).then(()=>{throw new Error("Timeout reached")})]);n.executionDeferred.resolve(o)}else{let o=await n.funcToExecute();n.executionDeferred.resolve(o)}}catch(o){n.executionDeferred.reject(o)}});await Promise.all(r)}};var Ba=class{constructor(e=16){this.hasSpace=new de.rxjs.Subject,this.itemsAvailable=new de.rxjs.Subject,this.data=[],this.highWaterMark=e}push(e){this.data.push(e),this.itemsAvailable.next("itemsAvailable");let r=this.checkSpaceAvailable();return r&&this.hasSpace.next("hasSpace"),r}shift(){let e=this.data.shift();return this.checkSpaceAvailable()&&this.hasSpace.next("hasSpace"),e}checkSpaceAvailable(){return this.data.length<this.highWaterMark}waitForSpace(){return new Promise(e=>{if(this.checkSpaceAvailable())e();else{let r=this.hasSpace.subscribe(()=>{r.unsubscribe(),e()})}})}waitForItems(){return new Promise(e=>{if(this.data.length>0)e();else{let r=this.itemsAvailable.subscribe(()=>{r.unsubscribe(),e()})}})}};var yr=class t{constructor(){this.mapObject={}}isUniqueKey(e){return!this.mapObject[e]}addToMap(e,r,n){return this.isUniqueKey(e)||n&&n.force?(this.mapObject[e]=r,!0):!1}getByKey(e){return this.mapObject[e]}removeFromMap(e){let r=this.getByKey(e);return delete this.mapObject[e],r}getKeys(){let e=[];for(let r in this.mapObject)this.mapObject[r]&&e.push(r);return e}clean(){this.mapObject={}}concat(e){let r=new t;for(let n of this.getKeys())r.addToMap(n,this.getByKey(n));for(let n of e.getKeys())r.addToMap(n,e.getByKey(n),{force:!0});return r}addAllFromOther(e){for(let r of e.getKeys())this.addToMap(r,e.getByKey(r),{force:!0})}async find(e){for(let r of this.getKeys()){let n=this.getByKey(r);if(await e(n))return n}}};var _f=(t="uni")=>`${t}xxxxxxxxxxx`.replace(/[xy]/g,e=>{let r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),Tt=class t{constructor(){this.fastMap=new yr,this.eventSubject=new de.rxjs.Subject}addMappedUnique(e,r){this.fastMap.addToMap(e,r)}getMappedUnique(e){return this.fastMap.getByKey(e)}removeMappedUnique(e){let r=this.getMappedUnique(e)}add(e){for(let n of this.fastMap.getKeys())if(this.fastMap.getByKey(n)===e)return n;let r=_f("key");return this.addMappedUnique(r,e),this.eventSubject.next({operation:"add",payload:e}),r}addArray(e){for(let r of e)this.add(r)}checkForObject(e){return!!this.getKeyForObject(e)}getKeyForObject(e){let r=null;for(let n of this.fastMap.getKeys())if(!r&&this.fastMap.getByKey(n)===e)r=n;else continue;return r}async find(e){return this.fastMap.find(e)}findSync(e){for(let r of this.fastMap.getKeys())if(e(this.fastMap.getByKey(r)))return this.getMappedUnique(r)}async findOneAndRemove(e){let r=await this.find(e);return r&&this.remove(r),r}findOneAndRemoveSync(e){let r=this.findSync(e);return r&&this.remove(r),r}async forEach(e){for(let r of this.fastMap.getKeys())await e(this.fastMap.getByKey(r))}getOneAndRemove(){let e=this.fastMap.getKeys();if(e.length===0)return null;{let r=e[0],n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}}getArray(){let e=[];for(let r of this.fastMap.getKeys())e.push(this.fastMap.getByKey(r));return e}isEmpty(){return this.fastMap.getKeys().length===0}remove(e){if(this.checkForObject(e)){let r=this.getKeyForObject(e),n=this.fastMap.removeFromMap(r);return this.eventSubject.next({operation:"remove",payload:n}),n}return null}wipe(){for(let e of this.fastMap.getKeys())this.fastMap.removeFromMap(e)}concat(e){let r=new t;return r.fastMap.addAllFromOther(this.fastMap),r.fastMap.addAllFromOther(e.fastMap),r}addAllFromOther(e){this.fastMap.addAllFromOther(e.fastMap)}};var so=class{get comparisonString(){return this.comparisonFunc(this.originalInterest)}fullfillInterest(e){this.isFullfilled=!0,this.fullfillmentStore=[],this.interestDeferred.resolve(e)}constructor(e,r,n,o){this.destructionTimer=new Et.Timer(1e4),this.isFullfilled=!1,this.fullfillmentStore=[],this.interestDeferred=new Q.Deferred,this.interestFullfilled=this.interestDeferred.promise,this.interestMapRef=e,this.originalInterest=r,this.comparisonFunc=n,this.options=o,this.destructionTimer.completed.then(()=>{this.destroy()}),this.options?.markLostAfterDefault&&se.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 Ra=class{constructor(e,r={}){this.interestObjectMap=new Tt,this.interestObservable=new de.ObservableIntake,this.comparisonFunc=e,this.options=r}async addInterest(e,r){let n=this.comparisonFunc(e),o,i=new so(this,e,this.comparisonFunc,{markLostAfterDefault:this.options.markLostAfterDefault,defaultFullfillment:r}),s=!1;return await this.interestObjectMap.forEach(a=>{!s&&a.comparisonString===i.comparisonString&&(console.log("info",`interest already exists for ${i.comparisonString}`),s=!0,o=a,o.renew())}),o||(o=i,this.interestObjectMap.add(o)),this.interestObservable.push(o),o}removeInterest(e){let r=this.interestObjectMap.findOneAndRemoveSync(n=>e.comparisonString===n.comparisonString)}checkInterest(e){let r=this.comparisonFunc(e);return this.checkInterestByString(r)}checkInterestByString(e){return!!this.interestObjectMap.findSync(n=>n.comparisonString===e)}informLostInterest(e){let r=this.findInterest(e);r&&r.markLost()}findInterest(e){let r=this.comparisonFunc(e);return this.interestObjectMap.findSync(o=>o.comparisonString===r)}};var Fa=class{constructor(e){this.array=[],this.arrayLimit=e}addOne(e){this.array.unshift(e),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(e){for(let r of e)this.addOne(r)}setLimit(e){this.arrayLimit=e,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(typeof this.array[0]=="number"){let e=0;for(let r of this.array)e=e+r;return e/this.array.length}else return null}};var Ua=class{constructor(){this.referenceObjectMap=new Tt}checkAndTrack(e){return this.referenceObjectMap.checkForObject(e)?!1:(this.referenceObjectMap.add(e),!0)}};var ao=class{constructor(){this._stringArray=[],this._triggerUntilTrueFunctionArray=[]}addString(e){this._stringArray.push(e),this.notifyTrigger()}addStringArray(e){for(let r of e)this.addString(r)}removeString(e){for(let r in this._stringArray)this._stringArray[r]===e&&this._stringArray.splice(parseInt(r),1);this.notifyTrigger()}wipe(){this._stringArray=[],this.notifyTrigger()}checkString(e){return this._stringArray.indexOf(e)!==-1}checkMinimatch(e){let r=new $i.SmartMatch(e),n=!1;for(let o of this._stringArray)r.match(o)&&(n=!0);return n}checkIsEmpty(){return this._stringArray.length===0}getStringArray(){let e=[];for(let r of this._stringArray)e.push(r);return e}registerUntilTrue(e,r){let n=Q.defer();return this._triggerUntilTrueFunctionArray.push(()=>{let o=e(this.getStringArray());return o===!0&&(r&&r(),n.resolve()),o}),this.notifyTrigger(),n.promise}notifyTrigger(){let e=this._triggerUntilTrueFunctionArray.filter(r=>!r());this._triggerUntilTrueFunctionArray=e}};var La=class{constructor(e){this.storageArray=[],this.options=e}checkAggregationStatus(){let e=()=>{this.aggregationTimer=new Et.Timer(this.options.aggregationIntervalInMillis),this.aggregationTimer.completed.then(()=>{let r=this.storageArray;if(r.length===0){this.aggregationTimer=null;return}this.storageArray=[],e(),this.options.functionForAggregation(r)}),this.aggregationTimer.start()};this.aggregationTimer||e()}add(e){this.storageArray.push(e),this.checkAggregationStatus()}};var ka=class{constructor(){this.symbolTree=new Oa.default}initialize(e){return this.symbolTree.initialize(e)}hasChildren(e){return this.symbolTree.hasChildren(e)}firstChild(e){return this.symbolTree.firstChild(e)}lastChild(e){return this.symbolTree.lastChild(e)}previousSibling(e){return this.symbolTree.previousSibling(e)}nextSibling(e){return this.symbolTree.nextSibling(e)}parent(e){return this.symbolTree.parent(e)}lastInclusiveDescendant(e){return this.symbolTree.lastInclusiveDescendant(e)}preceding(e,r){return this.symbolTree.preceding(e,r)}following(e,r){return this.symbolTree.following(e,r)}childrenToArray(e,r){return this.symbolTree.childrenToArray(e,r)}ancestorsToArray(e,r){return this.symbolTree.ancestorsToArray(e,r)}treeToArray(e,r){return this.symbolTree.treeToArray(e,r)}childrenIterator(e,r){return this.symbolTree.childrenIterator(e,r)}previousSiblingsIterator(e){return this.symbolTree.previousSiblingsIterator(e)}nextSiblingsIterator(e){return this.symbolTree.nextSiblingsIterator()}ancestorsIterator(e){this.symbolTree.ancestorsIterator()}treeIterator(e,r){return this.symbolTree.treeIterator(e)}index(e){return this.symbolTree.index(e)}childrenCount(e){return this.symbolTree.childrenCount(e)}compareTreePosition(e,r){return this.compareTreePosition(e,r)}remove(e){return this.symbolTree.remove(e)}insertBefore(e,r){return this.symbolTree.insertBefore(e,r)}insertAfter(e,r){return this.symbolTree.insertAfter(e,r)}prependChild(e,r){return this.symbolTree.prependChild(e,r)}appendChild(e,r){return this.symbolTree.appendChild(e,r)}toJsonWithHierachy(e){let r=this.treeIterator(e,{});for(let n of r)console.log(n)}fromJsonWithHierachy(e){}};var Ao={};X(Ao,{WebRequest:()=>lc});var Gr={};X(Gr,{Smartenv:()=>uo});var uo=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e,r){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}`);return}let n=await new Function(`return import('${e}')`)();return r&&await r(n),n}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let n=Q.defer();if(globalThis.importScripts)globalThis.importScripts(e),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=e,document.head.appendChild(o)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var ye={};X(ye,{Smartjson:()=>rc,deepEqualObjects:()=>v1,foldDec:()=>b1,parse:()=>nc,parseBase64:()=>x1,stringify:()=>bn,stringifyBase64:()=>y1,stringifyPretty:()=>g1});var wo={};X(wo,{Base64:()=>ts,Domain:()=>rs,GitRepo:()=>ns,base64:()=>dn,create:()=>Ou,docker:()=>Du,indent:()=>Fu,normalize:()=>Uu,type:()=>Lu});var Ou={};X(Ou,{createCryptoRandomString:()=>Mv,createRandomString:()=>Iv});var td=De(si(),1),rd=De(Vf(),1),nd=De(bh(),1);var _h="3.7.5",ov=_h,iv=typeof atob=="function",sv=typeof btoa=="function",hn=typeof Buffer=="function",vh=typeof TextDecoder=="function"?new TextDecoder:void 0,wh=typeof TextEncoder=="function"?new TextEncoder:void 0,av="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bo=Array.prototype.slice.call(av),Qi=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(bo),uv=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Be=String.fromCharCode.bind(String),Sh=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Ch=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Ah=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Ih=t=>{let e,r,n,o,i="",s=t.length%3;for(let a=0;a<t.length;){if((r=t.charCodeAt(a++))>255||(n=t.charCodeAt(a++))>255||(o=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|o,i+=bo[e>>18&63]+bo[e>>12&63]+bo[e>>6&63]+bo[e&63]}return s?i.slice(0,s-3)+"===".substring(s):i},Mu=sv?t=>btoa(t):hn?t=>Buffer.from(t,"binary").toString("base64"):Ih,Au=hn?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,o=t.length;n<o;n+=4096)r.push(Be.apply(null,t.subarray(n,n+4096)));return Mu(r.join(""))},Zi=(t,e=!1)=>e?Ch(Au(t)):Au(t),cv=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Be(192|e>>>6)+Be(128|e&63):Be(224|e>>>12&15)+Be(128|e>>>6&63)+Be(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Be(240|e>>>18&7)+Be(128|e>>>12&63)+Be(128|e>>>6&63)+Be(128|e&63)}},lv=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Mh=t=>t.replace(lv,cv),Eh=hn?t=>Buffer.from(t,"utf8").toString("base64"):wh?t=>Au(wh.encode(t)):t=>Mu(Mh(t)),pn=(t,e=!1)=>e?Ch(Eh(t)):Eh(t),Th=t=>pn(t,!0),fv=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,pv=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return Be((r>>>10)+55296)+Be((r&1023)+56320);case 3:return Be((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Be((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},Ph=t=>t.replace(fv,pv),$h=t=>{if(t=t.replace(/\s+/g,""),!uv.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,o;for(let i=0;i<t.length;)e=Qi[t.charAt(i++)]<<18|Qi[t.charAt(i++)]<<12|(n=Qi[t.charAt(i++)])<<6|(o=Qi[t.charAt(i++)]),r+=n===64?Be(e>>16&255):o===64?Be(e>>16&255,e>>8&255):Be(e>>16&255,e>>8&255,e&255);return r},Pu=iv?t=>atob(Ah(t)):hn?t=>Buffer.from(t,"base64").toString("binary"):$h,Nh=hn?t=>Sh(Buffer.from(t,"base64")):t=>Sh(Pu(t).split("").map(e=>e.charCodeAt(0))),Oh=t=>Nh(Dh(t)),hv=hn?t=>Buffer.from(t,"base64").toString("utf8"):vh?t=>vh.decode(Nh(t)):t=>Ph(Pu(t)),Dh=t=>Ah(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),Iu=t=>hv(Dh(t)),dv=t=>{if(typeof t!="string")return!1;let e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},Bh=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),Rh=function(){let t=(e,r)=>Object.defineProperty(String.prototype,e,Bh(r));t("fromBase64",function(){return Iu(this)}),t("toBase64",function(e){return pn(this,e)}),t("toBase64URI",function(){return pn(this,!0)}),t("toBase64URL",function(){return pn(this,!0)}),t("toUint8Array",function(){return Oh(this)})},Fh=function(){let t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,Bh(r));t("toBase64",function(e){return Zi(this,e)}),t("toBase64URI",function(){return Zi(this,!0)}),t("toBase64URL",function(){return Zi(this,!0)})},mv=()=>{Rh(),Fh()},vo={version:_h,VERSION:ov,atob:Pu,atobPolyfill:$h,btoa:Mu,btoaPolyfill:Ih,fromBase64:Iu,toBase64:pn,encode:pn,encodeURI:Th,encodeURL:Th,utob:Mh,btou:Ph,decode:Iu,isValid:dv,fromUint8Array:Zi,toUint8Array:Oh,extendString:Rh,extendUint8Array:Fh,extendBuiltins:mv};var kh=De(Lh(),1);function Xi(t){let e=(0,kh.default)(t);if(e===0)return t;let r=new RegExp(`^[ \\t]{${e}}`,"gm");return t.replace(r,"")}var Hh=De(qh(),1),Wh=`\r
17
+ `;function Ki(t){if(typeof t!="string"&&!Buffer.isBuffer(t))throw new TypeError(`Expected a \`string\` or a \`Buffer\`, got \`${typeof t}\``);return Buffer.isBuffer(t)?(0,Hh.default)(t,Wh,`
18
+ `):t.replace(new RegExp(Wh,"g"),`
19
+ `)}var Nu=De(ed(),1),Av=new uo;Av.isBrowser&&(globalThis.Buffer=rd.Buffer);var Iv=(t,e,r)=>Nu.default(t,e,r),Mv=()=>td.uni();var Du={};X(Du,{makeEnvObject:()=>Pv});var Pv=function(t){let e={},r=/(.*)=(.*)/;if(typeof t<"u")for(let n in t){let o=r.exec(t[n]);e[o[1]]=o[2]}return e};var Fu={};X(Fu,{indent:()=>Nv,indentWithPrefix:()=>Ov,normalize:()=>Dv});var Bu=t=>{let e=t.split(`
20
+ `);return $v(e)},Ru=t=>{let e="";for(let r of t)e=e+r+`
21
+ `;return e},$v=t=>{let e=/^[\s]*$/;return e.test(t[0])&&t.shift(),e.test(t[t.length-1])&&t.pop(),t},Nv=(t,e)=>{let r=Bu(t);for(let o of r)o=" ".repeat(e)+o;return Ru(r)},Ov=(t,e)=>{let r,n=Bu(t),o=[];for(let i of n)o.push(e+i);return r=Ru(o),r},Dv=t=>{let e,r=Bu(t),n,o=/^(\s*)/,i=/^(\s*)$/;for(let a of r){let u=o.exec(a)[1];(typeof n>"u"||u.length<n)&&!i.test(a)&&(n=u.length)}let s=[];for(let a of r)s.push(a.substr(n));return e=Ru(s),e};var Uu={};X(Uu,{replaceAll:()=>od,standard:()=>Bv});var od=(t,e,r)=>t.replace(new RegExp(e,"g"),r),Bv=(t,e)=>{let r=t;return(!e||e.stripIndent)&&(r=Xi(r)),(!e||e.normalizeNewline)&&(r=Ki(r)),(!e||e.replaceTabs)&&(r=od(r," /"," ")),(!e||e.stripLeadingTrailingEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"").replace(/\s*[\r\n]$/gm,"")),(!e||e.stripAllEmptyLines)&&(r=r.replace(/^\s*[\r\n]/gm,"")),r};var Lu={};X(Lu,{isBase64:()=>Fv,isUtf8:()=>Rv});var ts=class{constructor(e,r){switch(r){case"string":this.refString=e;break;case"base64":this.refString=dn.decode(e);break;case"base64uri":this.refString=dn.decode(e)}}get simpleString(){return this.refString}get base64String(){return dn.encode(this.refString)}get base64UriString(){return dn.encodeUri(this.refString)}},dn={encode:t=>vo.encode(t),encodeUri:t=>vo.encodeURI(t),decode:t=>vo.decode(t),isBase64:t=>/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(t)};var Rv=t=>{let e=Buffer.from(t),r=0;for(;r<e.length;){if(e[r]===9||e[r]===10||e[r]===13||32<=e[r]&&e[r]<=126){r+=1;continue}if(194<=e[r]&&e[r]<=223&&128<=e[r+1]&&e[r+1]<=191){r+=2;continue}if(e[r]===224&&160<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191||(225<=e[r]&&e[r]<=236||e[r]===238||e[r]===239)&&128<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191||e[r]===237&&128<=e[r+1]&&e[r+1]<=159&&128<=e[r+2]&&e[r+2]<=191){r+=3;continue}if(e[r]===240&&144<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191||241<=e[r]&&e[r]<=243&&128<=e[r+1]&&e[r+1]<=191&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191||e[r]===244&&128<=e[r+1]&&e[r+1]<=143&&128<=e[r+2]&&e[r+2]<=191&&128<=e[r+3]&&e[r+3]<=191){r+=4;continue}return!1}return!0},Fv=t=>{let e=/[^A-Z0-9+\/=]/i,r=t.length;if(!r||r%4!==0||e.test(t))return!1;let n=t.indexOf("=");return n===-1||n===r-1||n===r-2&&t[r-1]==="="};var rs=class{constructor(e){this.protocol=this._protocolRegex(e),this.protocol||(e=`https://${e}`),this.nodeParsedUrl=nd.parse(e),this.port=this.nodeParsedUrl.port;let r=this._domainRegex(e.replace(this.nodeParsedUrl.pathname,""));this.fullName="";for(let n=1;n<=5;n++)if(r[n-1]){let o=r[n-1];this["level"+n.toString()]=o,this.fullName===""?this.fullName=o:this.fullName=o+"."+this.fullName}else this["level"+n.toString()]=void 0;this.zoneName=this.level2+"."+this.level1,this.topLevel=this.level1,this.domainName=this.level2,this.subDomain=this.level3}_domainRegex(e){let n=/([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/.exec(e);return n.reverse(),n.pop(),n.filter(function(i){return i!==""})}_protocolRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}_portRegex(e){let n=/^([a-zA-Z0-9]*):\/\//.exec(e);if(n)return n[1]}};var ns=class{constructor(e,r){let n=Uv(e);this.host=n[1],this.user=n[2],this.repo=n[3],this.accessToken=r,this.sshUrl=id(this.host,this.user,this.repo,this.accessToken,"ssh"),this.httpsUrl=id(this.host,this.user,this.repo,this.accessToken,"https")}},Uv=function(t){return/([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/.exec(t)},id=function(t,e,r,n="",o){let i;switch(n!==""&&(n=n+"@"),o){case"https":i="https://"+n+t+"/"+e+"/"+r+".git";break;case"ssh":i="git@"+t+":"+e+"/"+r+".git";break;default:console.error("Link Type "+o+" not known");break}return i};var tc=De(Gd(),1),rm=De(Yd(),1),ps=De(tm(),1);var nm=rm.default;var nc=ps.default.parse,bn=(t,e,r={})=>{let n=ps.default.stringify(t);return t=JSON.parse(n),nm(t,r)},g1=t=>{let e=bn(t),r=JSON.parse(e);return JSON.stringify(r,null,2)},y1=(...t)=>{let e=bn(...t);return wo.base64.encodeUri(e)},x1=t=>{let e=wo.base64.decode(t);return nc(e)},rc=class t{static enfoldFromObject(e){let r=new this;for(let n in e)r.saveableProperties.indexOf(n)!==-1&&(r[n]=e[n]);return r}static enfoldFromJson(e){let r=nc(e);return this.enfoldFromObject(r)}foldToObject(){let e={},r=[];for(let n of this.saveableProperties){let o=this[n];if(o instanceof t){if(r.includes(o))throw new Error("cycle detected");r.push(o),o=o.foldToObject()}e[n]=tc.default(o)}return e}foldToJson(){let e=this.foldToObject();return bn(e)}},b1=()=>(t,e)=>{t.saveableProperties||(t.saveableProperties=[]),t.saveableProperties.push(e)},v1=(t,e)=>{let r=bn(t),n=bn(e);return r===n};var Yt={};X(Yt,{TypedrequestCache:()=>cc,WebStore:()=>Co});var hs={};X(hs,{deleteDB:()=>M1,openDB:()=>I1,unwrap:()=>_o,wrap:()=>Ze});var w1=(t,e)=>e.some(r=>t instanceof r),om,im;function S1(){return om||(om=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function E1(){return im||(im=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var sm=new WeakMap,ic=new WeakMap,am=new WeakMap,oc=new WeakMap,ac=new WeakMap;function T1(t){let e=new Promise((r,n)=>{let o=()=>{t.removeEventListener("success",i),t.removeEventListener("error",s)},i=()=>{r(Ze(t.result)),o()},s=()=>{n(t.error),o()};t.addEventListener("success",i),t.addEventListener("error",s)});return e.then(r=>{r instanceof IDBCursor&&sm.set(r,t)}).catch(()=>{}),ac.set(e,t),e}function _1(t){if(ic.has(t))return;let e=new Promise((r,n)=>{let o=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",s),t.removeEventListener("abort",s)},i=()=>{r(),o()},s=()=>{n(t.error||new DOMException("AbortError","AbortError")),o()};t.addEventListener("complete",i),t.addEventListener("error",s),t.addEventListener("abort",s)});ic.set(t,e)}var sc={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return ic.get(t);if(e==="objectStoreNames")return t.objectStoreNames||am.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Ze(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function um(t){sc=t(sc)}function C1(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){let n=t.call(_o(this),e,...r);return am.set(n,e.sort?e.sort():[e]),Ze(n)}:E1().includes(t)?function(...e){return t.apply(_o(this),e),Ze(sm.get(this))}:function(...e){return Ze(t.apply(_o(this),e))}}function A1(t){return typeof t=="function"?C1(t):(t instanceof IDBTransaction&&_1(t),w1(t,S1())?new Proxy(t,sc):t)}function Ze(t){if(t instanceof IDBRequest)return T1(t);if(oc.has(t))return oc.get(t);let e=A1(t);return e!==t&&(oc.set(t,e),ac.set(e,t)),e}var _o=t=>ac.get(t);function I1(t,e,{blocked:r,upgrade:n,blocking:o,terminated:i}={}){let s=indexedDB.open(t,e),a=Ze(s);return n&&s.addEventListener("upgradeneeded",u=>{n(Ze(s.result),u.oldVersion,u.newVersion,Ze(s.transaction),u)}),r&&s.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),a.then(u=>{i&&u.addEventListener("close",()=>i()),o&&u.addEventListener("versionchange",c=>o(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}function M1(t,{blocked:e}={}){let r=indexedDB.deleteDatabase(t);return e&&r.addEventListener("blocked",n=>e(n.oldVersion,n)),Ze(r).then(()=>{})}var P1=["get","getKey","getAll","getAllKeys","count"],$1=["put","add","delete","clear"],uc=new Map;function cm(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(uc.get(e))return uc.get(e);let r=e.replace(/FromIndex$/,""),n=e!==r,o=$1.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(o||P1.includes(r)))return;let i=async function(s,...a){let u=this.transaction(s,o?"readwrite":"readonly"),c=u.store;return n&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),o&&u.done]))[0]};return uc.set(e,i),i}um(t=>({...t,get:(e,r,n)=>cm(e,r)||t.get(e,r,n),has:(e,r)=>!!cm(e,r)||t.has(e,r)}));var Co=class{constructor(e){this.initCalled=!1,this.readyDeferred=Q.defer(),this.options=e}async init(){if(this.initCalled){await this.readyDeferred.promise;return}this.initCalled=!0;let e=new Gr.Smartenv;if(!e.isBrowser&&!globalThis.indexedDB&&(console.log("hey"),console.log(globalThis.indexedDB),await e.getSafeNodeModule("fake-indexeddb/auto"),!globalThis.indexedDB)){let r=await e.getSafeNodeModule("fake-indexeddb");globalThis.indexedDB=new r.IDBFactory}this.db=await hs.openDB(this.options.dbName,1,{upgrade:r=>{r.createObjectStore(this.options.storeName)}}),this.readyDeferred.resolve()}async get(e){return await this.init(),this.db.get(this.options.storeName,e)}async check(e){return await this.init(),!!await this.get(e)}async set(e,r){return await this.init(),this.db.put(this.options.storeName,r,e)}async delete(e){return await this.init(),this.db.delete(this.options.storeName,e)}async clear(){return await this.init(),this.db.clear(this.options.storeName)}async keys(){return await this.init(),this.db.getAllKeys(this.options.storeName)}};var cc=class{constructor(e="default"){this.webstore=new Co({dbName:"trStore",storeName:`trStore-${e}`})}buildKey(e){return ye.stringify({method:e.method,request:e.request})}async setByRequest(e){if(!e.response)throw new Error("You cannot store requests without a response present");await this.webstore.set(this.buildKey(e),e)}async getByRequest(e){return await this.webstore.get(this.buildKey(e))}};var lc=class{constructor(e={}){this.optionsArg=e,this.cacheStore=new Yt.WebStore({dbName:"webrequest",storeName:"webrequest"}),this.options={logging:!0,...e}}async getJson(e,r=!1){let o=await(await this.request(e,{method:"GET",useCache:r})).text();return ye.parse(o)}async postJson(e,r,n=!1){let i=await(await this.request(e,{method:"POST",headers:{"Content-Type":"application/json"},body:ye.stringify(r),useCache:n})).text();return ye.parse(i)}async putJson(e,r,n=!1){let i=await(await this.request(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:ye.stringify(r)})).text();return ye.parse(i)}async deleteJson(e,r=!1){let o=await(await this.request(e,{headers:{"Content-Type":"application/json"},method:"GET"})).text();return ye.parse(o)}async request(e,r){r={timeoutMs:6e4,useCache:!1,...r};let n=new AbortController;se.delayFor(r.timeoutMs).then(()=>{n.abort()});let o=Q.defer(),i=!1;if(r.useCache&&await this.cacheStore.check(e)){let a=await this.cacheStore.get(e);o.resolve(new Response(a,{}))}else o.resolve(null);let s=await fetch(e,{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(e,a)}return this.log(`${e} answers with status: ${s.status}`),s}async requestMultiEndpoint(e,r){let n,o=0;Array.isArray(e)?n=e:n=[e];let i=[],s=async c=>{i.push(c),c==="429"&&(console.log("got 429, so waiting a little bit."),await se.delayFor(Math.floor(Math.random()*1001)+1e3));let l=0;for(let f of i)f===c&&l++;l>2*n.length*o&&o++},a=async c=>{if(!c)throw new Error("request failed permanently");this.log(`Getting ${c} with method ${r.method}`);let l=await fetch(c,{method:r.method,headers:{"Content-Type":"application/json",...r.headers||{}},body:r.body});return this.log(`${c} answers with status: ${l.status}`),l.status>=200&&l.status<300?l:(await s(l.status.toString()),await a(n[o]))};return await a(n[o])}log(e){this.options.logging&&console.log(e)}};var Cr=class{constructor(e,r){this.errorText=e,this.errorData=r}};var fc=class{constructor(e,r){this.method=e,this.handlerFunction=r}async addResponse(e){if(e.method!==this.method)throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");let r,n=await this.handlerFunction(e.request).catch(o=>{o instanceof Cr?r=o:console.log(o)});return r&&(e.error={text:r.errorText,data:r.errorData}),n&&(e.response=n),e?.correlation?.phase&&(e.correlation.phase="response"),e}};var pc=class{constructor(){this.routerMap=new ct.ObjectMap,this.handlerMap=new ct.ObjectMap,this.fireEventInterestMap=new ct.InterestMap(e=>e)}addTypedHandler(e){if(this.getTypedHandlerForMethod(e.method))throw new Error(`a TypedHandler for ${e.method} alredy exists! Can't add another one.`);this.handlerMap.add(e)}addTypedRouter(e){this.routerMap.findSync(n=>n===e)||(this.routerMap.add(e),e.addTypedRouter(this))}checkForTypedHandler(e){return!!this.getTypedHandlerForMethod(e)}getTypedHandlerForMethod(e,r=[]){r.push(this);let n;return n=this.handlerMap.findSync(o=>o.method===e),n||this.routerMap.getArray().forEach(o=>{!n&&!r.includes(o)&&(n=o.getTypedHandlerForMethod(e,r))}),n}async routeAndAddResponse(e,r=!1){if(e?.correlation?.phase==="request"||r){let n=this.getTypedHandlerForMethod(e.method);return n?(e=await n.addResponse(e),e):(console.log(`Cannot find handler for methodname ${e.method}`),e.error={text:"There is no available method for this call on the server side",data:{}},e.correlation.phase="response",e)}else return e?.correlation?.phase==="response"?(this.fireEventInterestMap.findInterest(e.correlation.id)?.fullfillInterest(e),null):(console.log("received weirdly shaped request"),console.log(e),null)}};var hc=class{constructor(e){if(e.postMethodWithTypedRouter&&!e.typedRouterRef)throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");this.options=e}async post(e){let r;this.options.typedRouterRef&&(r=await this.options.typedRouterRef.fireEventInterestMap.addInterest(e.correlation.id,e));let o=await(this.options.postMethod||this.options.postMethodWithTypedRouter)(e),i;return r?i=await r.interestFullfilled:o?i=o:i=e,i}};var D1=new Ao.WebRequest,Io=class{constructor(e,r){typeof e=="string"?this.urlEndPoint=e:this.typedTarget=e,this.method=r}async fire(e,r=!1){let n={method:this.method,request:e,response:null,correlation:{id:fm.uni(),phase:"request"}},o;if(this.urlEndPoint?o=await D1.postJson(this.urlEndPoint,n,r):o=await this.typedTarget.post(n),o.error){if(console.error(`Got an error ${o.error.text} with data ${JSON.stringify(o.error.data)}`),!o.retry)throw new Cr(o.error.text,o.error.data);return null}return o.retry?(console.log(`server requested retry for the following reason: ${o.retry.reason}`),await se.delayFor(o.retry.waitForMs),await this.fire(e)):o.response}};function dm(t){return!!(t&&typeof t.then=="function")}function ds(t){return t||(t=0),new Promise(function(e){return setTimeout(e,t)})}function mm(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function Mo(){return Math.random().toString(36).substring(2)}var hm=0,dc=0;function Qt(){var t=new Date().getTime();return t===hm?(dc++,t*1e3+dc):(hm=t,dc=0,t*1e3)}var Mt=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]";var B1=Qt,R1="native";function F1(t){var e={messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(r){e.messagesCallback&&e.messagesCallback(r.data)},e}function U1(t){t.bc.close(),t.subFns=[]}function L1(t,e){try{return t.bc.postMessage(e,!1),Promise.resolve()}catch(r){return Promise.reject(r)}}function k1(t,e){t.messagesCallback=e}function j1(){if(Mt&&typeof window>"u")return!1;if(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 q1(){return 150}var gm={create:F1,close:U1,onMessage:k1,postMessage:L1,canBeUsed:j1,type:R1,averageResponseTime:q1,microSeconds:B1};var ms=function(){function t(e){this.ttl=e,this.set=new Set,this.timeMap=new Map}return t.prototype.has=function(e){return this.set.has(e)},t.prototype.add=function(e){var r=this;this.timeMap.set(e,ym()),this.set.add(e),setTimeout(function(){W1(r)},0)},t.prototype.clear=function(){this.set.clear(),this.timeMap.clear()},t}();function W1(t){for(var e=ym()-t.ttl,r=t.set[Symbol.iterator]();;){var n=r.next().value;if(!n)return;var o=t.timeMap.get(n);if(o<e)t.timeMap.delete(n),t.set.delete(n);else return}}function ym(){return new Date().getTime()}function vn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return typeof e.webWorkerSupport>"u"&&(e.webWorkerSupport=!0),e.idb||(e.idb={}),e.idb.ttl||(e.idb.ttl=1e3*45),e.idb.fallbackInterval||(e.idb.fallbackInterval=150),t.idb&&typeof t.idb.onclose=="function"&&(e.idb.onclose=t.idb.onclose),e.localstorage||(e.localstorage={}),e.localstorage.removeTimeout||(e.localstorage.removeTimeout=1e3*60),t.methods&&(e.methods=t.methods),e.node||(e.node={}),e.node.ttl||(e.node.ttl=1e3*60*2),typeof e.node.useFastPath>"u"&&(e.node.useFastPath=!0),e}var H1=Qt,z1="pubkey.broadcast-channel-0-",Pt="messages",V1="idb";function xm(){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 G1(t){var e=xm(),r=z1+t,n=e.open(r,1);n.onupgradeneeded=function(i){var s=i.target.result;s.createObjectStore(Pt,{keyPath:"id",autoIncrement:!0})};var o=new Promise(function(i,s){n.onerror=function(a){return s(a)},n.onsuccess=function(){i(n.result)}});return o}function J1(t,e,r){var n=new Date().getTime(),o={uuid:e,time:n,data:r},i=t.transaction([Pt],"readwrite");return new Promise(function(s,a){i.oncomplete=function(){return s()},i.onerror=function(c){return a(c)};var u=i.objectStore(Pt);u.add(o)})}function Y1(t,e){var r=t.transaction(Pt).objectStore(Pt),n=[];function o(){try{var i=IDBKeyRange.bound(e+1,1/0);return r.openCursor(i)}catch{return r.openCursor()}}return new Promise(function(i){o().onsuccess=function(s){var a=s.target.result;a?a.value.id<e+1?a.continue(e+1):(n.push(a.value),a.continue()):i(n)}})}function Q1(t,e){var r=t.transaction([Pt],"readwrite").objectStore(Pt).delete(e);return new Promise(function(n){r.onsuccess=function(){return n()}})}function Z1(t,e){var r=new Date().getTime()-e,n=t.transaction(Pt).objectStore(Pt),o=[];return new Promise(function(i){n.openCursor().onsuccess=function(s){var a=s.target.result;if(a){var u=a.value;if(u.time<r)o.push(u),a.continue();else{i(o);return}}else i(o)}})}function X1(t,e){return Z1(t,e).then(function(r){return Promise.all(r.map(function(n){return Q1(t,n.id)}))})}function K1(t,e){return e=vn(e),G1(t).then(function(r){var n={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:Mo(),eMIs:new ms(e.idb.ttl*2),writeBlockPromise:Promise.resolve(),messagesCallback:null,readQueuePromises:[],db:r};return r.onclose=function(){n.closed=!0,e.idb.onclose&&e.idb.onclose()},bm(n),n})}function bm(t){t.closed||vm(t).then(function(){return ds(t.options.idb.fallbackInterval)}).then(function(){return bm(t)})}function eS(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}function vm(t){return t.closed||!t.messagesCallback?Promise.resolve():Y1(t.db,t.lastCursorId).then(function(e){var r=e.filter(function(n){return!!n}).map(function(n){return n.id>t.lastCursorId&&(t.lastCursorId=n.id),n}).filter(function(n){return eS(n,t)}).sort(function(n,o){return n.time-o.time});return r.forEach(function(n){t.messagesCallback&&(t.eMIs.add(n.id),t.messagesCallback(n.data))}),Promise.resolve()})}function tS(t){t.closed=!0,t.db.close()}function rS(t,e){return t.writeBlockPromise=t.writeBlockPromise.then(function(){return J1(t.db,t.uuid,e)}).then(function(){mm(0,10)===0&&X1(t.db,t.options.idb.ttl)}),t.writeBlockPromise}function nS(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e,vm(t)}function oS(){if(Mt)return!1;var t=xm();return!!t}function iS(t){return t.idb.fallbackInterval*2}var wm={create:K1,close:tS,onMessage:nS,postMessage:rS,canBeUsed:oS,type:V1,averageResponseTime:iS,microSeconds:H1};var sS=Qt,aS="pubkey.broadcastChannel-",uS="localstorage";function Sm(){var t;if(typeof window>"u")return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return t}function Em(t){return aS+t}function cS(t,e){return new Promise(function(r){ds().then(function(){var n=Em(t.channelName),o={token:Mo(),time:new Date().getTime(),data:e,uuid:t.uuid},i=JSON.stringify(o);Sm().setItem(n,i);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=n,s.newValue=i,window.dispatchEvent(s),r()})})}function lS(t,e){var r=Em(t),n=function(i){i.key===r&&e(JSON.parse(i.newValue))};return window.addEventListener("storage",n),n}function fS(t){window.removeEventListener("storage",t)}function pS(t,e){if(e=vn(e),!Tm())throw new Error("BroadcastChannel: localstorage cannot be used");var r=Mo(),n=new ms(e.localstorage.removeTimeout),o={channelName:t,uuid:r,eMIs:n};return o.listener=lS(t,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 hS(t){fS(t.listener)}function dS(t,e,r){t.messagesCallbackTime=r,t.messagesCallback=e}function Tm(){if(Mt)return!1;var t=Sm();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch{return!1}return!0}function mS(){var t=120,e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?t*2:t}var _m={create:pS,close:hS,onMessage:dS,postMessage:cS,canBeUsed:Tm,type:uS,averageResponseTime:mS,microSeconds:sS};var gS=Qt,yS="simulate",mc=new Set;function xS(t){var e={name:t,messagesCallback:null};return mc.add(e),e}function bS(t){mc.delete(t)}function vS(t,e){return new Promise(function(r){return setTimeout(function(){var n=Array.from(mc);n.filter(function(o){return o.name===t.name}).filter(function(o){return o!==t}).filter(function(o){return!!o.messagesCallback}).forEach(function(o){return o.messagesCallback(e)}),r()},5)})}function wS(t,e){t.messagesCallback=e}function SS(){return!0}function ES(){return 5}var Cm={create:xS,close:bS,onMessage:wS,postMessage:vS,canBeUsed:SS,type:yS,averageResponseTime:ES,microSeconds:gS};var yc=[gm,wm,_m];Mt&&(gc=Am(),typeof gc.canBeUsed=="function"&&yc.push(gc));var gc;function Im(t){var e=[].concat(t.methods,yc).filter(Boolean);if(t.type){if(t.type==="simulate")return Cm;var r=e.find(function(o){return o.type===t.type});if(r)return r;throw new Error("method-type "+t.type+" not found")}!t.webWorkerSupport&&!Mt&&(e=e.filter(function(o){return o.type!=="idb"}));var n=e.find(function(o){return o.canBeUsed()});if(n)return n;throw new Error("No useable methode found:"+JSON.stringify(yc.map(function(o){return o.type})))}var wn=function(e,r){this.name=e,Mm&&(r=Mm),this.options=vn(r),this.method=Im(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,TS(this)};wn._pubkey=!0;var Mm;wn.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed");return Pm(this,"message",e)},postInternal:function(e){return Pm(this,"internal",e)},set onmessage(t){var e=this.method.microSeconds(),r={time:e,fn:t};Nm(this,"message",this._onML),t&&typeof t=="function"?(this._onML=r,$m(this,"message",r)):this._onML=null},addEventListener:function(e,r){var n=this.method.microSeconds(),o={time:n,fn:r};$m(this,e,o)},removeEventListener:function(e,r){var n=this._addEL[e].find(function(o){return o.fn===r});Nm(this,e,n)},close:function(){var e=this;if(!this.closed){this.closed=!0;var r=this._prepP?this._prepP:Promise.resolve();return this._onML=null,this._addEL.message=[],r.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(n){return n()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};function Pm(t,e,r){var n=t.method.microSeconds(),o={time:n,type:e,data:r},i=t._prepP?t._prepP:Promise.resolve();return i.then(function(){var s=t.method.postMessage(t._state,o);return t._uMP.add(s),s.catch().then(function(){return t._uMP.delete(s)}),s})}function TS(t){var e=t.method.create(t.name,t.options);dm(e)?(t._prepP=e,e.then(function(r){t._state=r})):t._state=e}function Om(t){return t._addEL.message.length>0||t._addEL.internal.length>0}function $m(t,e,r){t._addEL[e].push(r),_S(t)}function Nm(t,e,r){t._addEL[e]=t._addEL[e].filter(function(n){return n!==r}),CS(t)}function _S(t){if(!t._iL&&Om(t)){var e=function(o){t._addEL[o.type].forEach(function(i){o.time>=i.time&&i.fn(o.data)})},r=t.method.microSeconds();t._prepP?t._prepP.then(function(){t._iL=!0,t.method.onMessage(t._state,e,r)}):(t._iL=!0,t.method.onMessage(t._state,e,r))}}function CS(t){if(t._iL&&!Om(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}var xc=globalThis.BroadcastChannel;xc||(xc=wn);var bc=class{constructor(){this.broadcastChannel=new xc("dees-comms"),this.typedrouter=new Xe.TypedRouter,this.typedtarget=new Xe.TypedTarget({postMethodWithTypedRouter:async e=>{this.postMessage(e)},typedRouterRef:this.typedrouter}),this.broadcastChannel.onmessage=async e=>{let r=e.method?e:e.data;console.log(JSON.stringify(r));let n=await this.typedrouter.routeAndAddResponse(r);n&&!n.error&&this.postMessage(n)}}createTypedRequest(e){return new Xe.TypedRequest(this.typedtarget,e)}async postMessage(e){this.broadcastChannel.postMessage(e)}async createTypedHandler(e,r){this.typedrouter.addTypedHandler(new Xe.TypedHandler(e,r))}};var bs={};X(bs,{SmartRouter:()=>Ec});var ys={};X(ys,{compile:()=>MS,match:()=>PS,parse:()=>vc,pathToRegexp:()=>Sc,regexpToFunction:()=>Bm,tokensToFunction:()=>Dm,tokensToRegexp:()=>Rm});function IS(t){for(var e=[],r=0;r<t.length;){var n=t[r];if(n==="*"||n==="+"||n==="?"){e.push({type:"MODIFIER",index:r,value:t[r++]});continue}if(n==="\\"){e.push({type:"ESCAPED_CHAR",index:r++,value:t[r++]});continue}if(n==="{"){e.push({type:"OPEN",index:r,value:t[r++]});continue}if(n==="}"){e.push({type:"CLOSE",index:r,value:t[r++]});continue}if(n===":"){for(var o="",i=r+1;i<t.length;){var s=t.charCodeAt(i);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){o+=t[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(r));e.push({type:"NAME",index:r,value:o}),r=i;continue}if(n==="("){var a=1,u="",i=r+1;if(t[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<t.length;){if(t[i]==="\\"){u+=t[i++]+t[i++];continue}if(t[i]===")"){if(a--,a===0){i++;break}}else if(t[i]==="("&&(a++,t[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));u+=t[i++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!u)throw new TypeError("Missing pattern at ".concat(r));e.push({type:"PATTERN",index:r,value:u}),r=i;continue}e.push({type:"CHAR",index:r,value:t[r++]})}return e.push({type:"END",index:r,value:""}),e}function vc(t,e){e===void 0&&(e={});for(var r=IS(t),n=e.prefixes,o=n===void 0?"./":n,i="[^".concat(Sn(e.delimiter||"/#?"),"]+?"),s=[],a=0,u=0,c="",l=function(U){if(u<r.length&&r[u].type===U)return r[u++].value},f=function(U){var Y=l(U);if(Y!==void 0)return Y;var F=r[u],B=F.type,re=F.index;throw new TypeError("Unexpected ".concat(B," at ").concat(re,", expected ").concat(U))},h=function(){for(var U="",Y;Y=l("CHAR")||l("ESCAPED_CHAR");)U+=Y;return U};u<r.length;){var y=l("CHAR"),w=l("NAME"),A=l("PATTERN");if(w||A){var O=y||"";o.indexOf(O)===-1&&(c+=O,O=""),c&&(s.push(c),c=""),s.push({name:w||a++,prefix:O,suffix:"",pattern:A||i,modifier:l("MODIFIER")||""});continue}var _=y||l("ESCAPED_CHAR");if(_){c+=_;continue}c&&(s.push(c),c="");var I=l("OPEN");if(I){var O=h(),D=l("NAME")||"",N=l("PATTERN")||"",q=h();f("CLOSE"),s.push({name:D||(N?a++:""),pattern:D&&!N?i:N,prefix:O,suffix:q,modifier:l("MODIFIER")||""});continue}f("END")}return s}function MS(t,e){return Dm(vc(t,e),e)}function Dm(t,e){e===void 0&&(e={});var r=wc(e),n=e.encode,o=n===void 0?function(u){return u}:n,i=e.validate,s=i===void 0?!0:i,a=t.map(function(u){if(typeof u=="object")return new RegExp("^(?:".concat(u.pattern,")$"),r)});return function(u){for(var c="",l=0;l<t.length;l++){var f=t[l];if(typeof f=="string"){c+=f;continue}var h=u?u[f.name]:void 0,y=f.modifier==="?"||f.modifier==="*",w=f.modifier==="*"||f.modifier==="+";if(Array.isArray(h)){if(!w)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(h.length===0){if(y)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var A=0;A<h.length;A++){var O=o(h[A],f);if(s&&!a[l].test(O))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(O,'"'));c+=f.prefix+O+f.suffix}continue}if(typeof h=="string"||typeof h=="number"){var O=o(String(h),f);if(s&&!a[l].test(O))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(O,'"'));c+=f.prefix+O+f.suffix;continue}if(!y){var _=w?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(_))}}return c}}function PS(t,e){var r=[],n=Sc(t,r,e);return Bm(n,r,e)}function Bm(t,e,r){r===void 0&&(r={});var n=r.decode,o=n===void 0?function(i){return i}:n;return function(i){var s=t.exec(i);if(!s)return!1;for(var a=s[0],u=s.index,c=Object.create(null),l=function(h){if(s[h]===void 0)return"continue";var y=e[h-1];y.modifier==="*"||y.modifier==="+"?c[y.name]=s[h].split(y.prefix+y.suffix).map(function(w){return o(w,y)}):c[y.name]=o(s[h],y)},f=1;f<s.length;f++)l(f);return{path:a,index:u,params:c}}}function Sn(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function wc(t){return t&&t.sensitive?"":"i"}function $S(t,e){if(!e)return t;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,o=r.exec(t.source);o;)e.push({name:o[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),o=r.exec(t.source);return t}function NS(t,e,r){var n=t.map(function(o){return Sc(o,e,r).source});return new RegExp("(?:".concat(n.join("|"),")"),wc(r))}function OS(t,e,r){return Rm(vc(t,r),e,r)}function Rm(t,e,r){r===void 0&&(r={});for(var n=r.strict,o=n===void 0?!1:n,i=r.start,s=i===void 0?!0:i,a=r.end,u=a===void 0?!0:a,c=r.encode,l=c===void 0?function(re){return re}:c,f=r.delimiter,h=f===void 0?"/#?":f,y=r.endsWith,w=y===void 0?"":y,A="[".concat(Sn(w),"]|$"),O="[".concat(Sn(h),"]"),_=s?"^":"",I=0,D=t;I<D.length;I++){var N=D[I];if(typeof N=="string")_+=Sn(l(N));else{var q=Sn(l(N.prefix)),U=Sn(l(N.suffix));if(N.pattern)if(e&&e.push(N),q||U)if(N.modifier==="+"||N.modifier==="*"){var Y=N.modifier==="*"?"?":"";_+="(?:".concat(q,"((?:").concat(N.pattern,")(?:").concat(U).concat(q,"(?:").concat(N.pattern,"))*)").concat(U,")").concat(Y)}else _+="(?:".concat(q,"(").concat(N.pattern,")").concat(U,")").concat(N.modifier);else N.modifier==="+"||N.modifier==="*"?_+="((?:".concat(N.pattern,")").concat(N.modifier,")"):_+="(".concat(N.pattern,")").concat(N.modifier);else _+="(?:".concat(q).concat(U,")").concat(N.modifier)}}if(u)o||(_+="".concat(O,"?")),_+=r.endsWith?"(?=".concat(A,")"):"$";else{var F=t[t.length-1],B=typeof F=="string"?O.indexOf(F[F.length-1])>-1:F===void 0;o||(_+="(?:".concat(O,"(?=").concat(A,"))?")),B||(_+="(?=".concat(O,"|").concat(A,")"))}return new RegExp(_,wc(r))}function Sc(t,e,r){return t instanceof RegExp?$S(t,e):Array.isArray(t)?NS(t,e,r):OS(t,e,r)}var xs=class{constructor(){}getAllAsObject(){let e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())}setQueryParam(e,r,n="replace"){var o=new URLSearchParams(window.location.search);o.set(e,r),n==="push"?history.pushState(null,null,"?"+o.toString()):history.replaceState(null,null,"?"+o.toString())}deleteQueryParam(e,r="replace"){var n=new URLSearchParams(window.location.search);n.delete(e),r==="push"?history.pushState(null,null,"?"+n.toString()):history.replaceState(null,null,"?"+n.toString())}getQueryParam(e){return this.getAllAsObject()[e]}};var Ec=class{constructor(e){this.options={debug:!1},this.queryParams=new xs,this.routes=[],this.options={...this.options,...e},window.addEventListener("popstate",r=>{r.preventDefault(),this._handleRouteState()})}async pushUrl(e="/",r={}){e!==window.location.pathname?window.history.pushState(r,window.document.title,e):window.history.replaceState(r,window.document.title,e),await this._handleRouteState()}on(e,r){this.routes.push({matchFunction:ys.match(e),handler:r})}async _handleRouteState(){let e=window.location.pathname,r=this.routes.filter(n=>!!n.matchFunction(e));for(let n of r){let o=n.matchFunction(e);n.handler({...o.valueOf(),queryParams:this.queryParams.getAllAsObject()})}}};var En={};X(En,{Smartstate:()=>_c,StateAction:()=>Po,StatePart:()=>$o});var Ss={};X(Ss,{sha256FromString:()=>US});var ws={};X(ws,{Smartenv:()=>Tc});var Um=De(Fm(),1);var Tc=class{constructor(){this.loadedScripts=[]}async getEnvAwareModule(e){if(this.isNode)return await this.getSafeNodeModule(e.nodeModuleName);if(this.isBrowser)return await this.getSafeWebModule(e.webUrlArg,e.getFunction);console.error("platform for loading not supported by smartenv")}async getSafeNodeModule(e){if(!this.isNode){console.error(`You tried to load a node module in a wrong context: ${e}`);return}return new Function(`return import('${e}')`)()}async getSafeWebModule(e,r){if(!this.isBrowser){console.error("You tried to load a web module in a wrong context");return}if(this.loadedScripts.includes(e))return r();this.loadedScripts.push(e);let n=Um.defer();if(globalThis.importScripts)globalThis.importScripts(e),n.resolve();else{let o=document.createElement("script");o.onload=()=>{n.resolve()},o.src=e,document.head.appendChild(o)}return await n.promise,r()}get runtimeEnv(){return typeof process<"u"?"node":"browser"}get isBrowser(){return!this.isNode}get userAgent(){return this.isBrowser?navigator.userAgent:"undefined"}get isNode(){return this.runtimeEnv==="node"}get nodeVersion(){return process.version}get isCI(){return this.isNode?!!process.env.CI:!1}async isMacAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="darwin":!1}async isWindowsAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="win32":!1}async isLinuxAsync(){return this.isNode?(await this.getSafeNodeModule("os")).platform()==="linux":!1}async printEnv(){this.isNode?(console.log("running on NODE"),console.log("node version is "+this.nodeVersion)):(console.log("running on BROWSER"),console.log("browser is "+this.userAgent))}};var FS=t=>{let e=[],r=new DataView(t);for(let n=0;n<r.byteLength;n+=4){let i=r.getUint32(n).toString(16),s="00000000",a=(s+i).slice(-s.length);e.push(a)}return e.join("")},US=async t=>{let e=new ws.Smartenv;if(e.isBrowser){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return FS(n)}else if(e.isNode)return await(await e.getSafeNodeModule("@pushrocks/smarthash")).sha256FromString(t)};var Po=class{constructor(e,r){this.statePartRef=e,this.actionDef=r}trigger(e){this.statePartRef.dispatchAction(this,e)}};var $o=class{constructor(e,r){this.state=new de.rxjs.Subject,this.cumulativeDeferred=Q.cumulativeDefer(),this.webStore=null,this.name=e,r&&(this.webStoreOptions=r)}async init(){if(this.webStoreOptions){this.webStore=new Yt.WebStore(this.webStoreOptions),await this.webStore.init();let e=await this.webStore.get(String(this.name));e&&(this.stateStore=e,this.notifyChange())}}getState(){return this.stateStore}async setState(e){return this.stateStore=e,this.notifyChange(),this.webStore&&await this.webStore.set(String(this.name),e),this.stateStore}notifyChange(){let e=r=>Ss.sha256FromString(ye.stringify(r));this.stateStore&&this.lastStateNotificationPayloadHash&&e(this.stateStore)===this.lastStateNotificationPayloadHash||(this.lastStateNotificationPayloadHash=this.stateStore,this.state.next(this.stateStore))}notifyChangeCumulative(){setTimeout(()=>this.state.next(this.stateStore),0)}select(e){return e||(e=n=>n),this.state.pipe(de.rxjs.ops.startWith(this.getState()),de.rxjs.ops.map(n=>{try{return e(n)}catch{}}))}createAction(e){return new Po(this,e)}async dispatchAction(e,r){await this.cumulativeDeferred.promise;let n=await e.actionDef(this,r);return await this.setState(n),this.getState()}async waitUntilPresent(e){let r=Q.defer(),o=this.select(e).subscribe(async s=>{s&&r.resolve(s)}),i=await r.promise;return o.unsubscribe(),i}async stateSetup(e){let r=e(this);this.cumulativeDeferred.addPromise(r),this.setState(await r)}};var _c=class{constructor(){this.statePartMap={}}async getStatePart(e,r,n){if(this.statePartMap[e]){if(r&&(!n||n!=="soft"))throw new Error(`${e} already exists, yet you try to set an initial state again`);return this.statePartMap[e]}else{if(!r)throw new Error(`${e} does not yet exist, yet you don't provide an initial state`);return this.createStatePart(e,r,n)}}async createStatePart(e,r,n){let o=new $o(e,n==="persistent"?{dbName:"smartstate",storeName:e}:null);await o.init();let i=o.getState();return await o.setState({...r,...i}),this.statePartMap[e]=o,o}};var Tn={};X(Tn,{Smarturl:()=>Cc});var Cc=class t{static createFromUrl(e,r){let n=new URL(e),o={},i=[];n.search&&n.search.replace("?","").split("&").map(c=>{i.push({key:c.split("=")[0],value:c.split("=")[1]})});for(let c of i)o[c.key]=c.value;if(r?.searchParams)for(let c of Object.keys(r.searchParams))o[c]=r.searchParams[c];let s=n.pathname||"";if(Object.keys(o).length>0){s+="?";let c=!0;for(let l of Object.keys(o))c?c=!1:s+="&",s+=`${l}=${o[l]}`}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 u=new t;return Object.assign(u,a),u}static createFromParsedUrl(e){let r=new t;return Object.assign(r,e),r}constructor(){this.searchParams={}}toString(){let e="";return this.username&&!this.password&&(e=`${this.username}@`),this.username&&this.password&&(e=`${this.username}:${this.password}@`),`${this.protocol}//${e}${this.hostname}:${this.port}${this.path}`}};var Cn={};X(Cn,{CumulativeDeferred:()=>Ts,Deferred:()=>Es,cumulativeDefer:()=>kS,defer:()=>_n,getFirstTrueOrFalse:()=>zS,map:()=>WS,rejectedPromise:()=>qS,resolvedPromise:()=>jS,timeoutAndContinue:()=>HS,timeoutWrap:()=>Lm});var Es=class{claim(){if(this.claimed)throw new Error("Deferred already claimed");this.claimed=!0}get duration(){return this.stoppedAt?this.stoppedAt-this.startedAt:Date.now()-this.startedAt}constructor(){this.claimed=!1,this.promise=new Promise((e,r)=>{this.resolve=n=>{this.status="fulfilled",this.stoppedAt=Date.now(),e(n)},this.reject=n=>{this.status="rejected",this.stoppedAt=Date.now(),r(n)},this.startedAt=Date.now(),this.status="pending"})}},_n=()=>new Es;var Ts=class{constructor(){this.accumulatedPromises=[],this.deferred=_n(),this.promise=this.deferred.promise,setTimeout(async()=>{for(;this.accumulatedPromises.length>0;)await this.accumulatedPromises.shift();this.deferred.resolve()},0)}addPromise(e){this.accumulatedPromises.push(e)}},kS=()=>new Ts;var jS=t=>Promise.resolve(t),qS=t=>Promise.reject(t),WS=async(t,e)=>{let r=[],n=[];for(let o of t){let i=e(o);r.push(i),i.then(s=>{n.push(s)})}return await Promise.all(r),n},Lm=async(t,e,r=!0)=>new Promise((n,o)=>{setTimeout(()=>{r?o(new Error("timeout")):n(null)},e),t.then(n,o)}),HS=async(t,e=6e4)=>Lm(t,e,!1),zS=async t=>{let e=_n();for(let r of t)r.then(n=>{n===!0&&e.resolve(!0)});return Promise.all(t).then(()=>{e.resolve(!1)}),e.promise};var Zt=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 An=class t extends Zt{static createCompanyJsonLd(e){let r={"@context":"https://schema.org","@type":"Corporation",name:e.name,alternateName:e.name.replace(" GmbH",""),url:e.contact.website,logo:e.contact.logoUrl,contactPoint:{"@type":"ContactPoint",telephone:e.contact.phone,contactType:"customer service",areaServed:"DE",availableLanguage:["en","German"]},sameAs:[]};return e.contact.facebookUrl&&r.sameAs.push(e.contact.facebookUrl),e.contact.twitterUrl&&r.sameAs.push(e.contact.twitterUrl),new t(r)}static createNewsArticleJsonLd(e){let r={"@context":"https://schema.org","@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":window.location.href},headline:"Article headline",image:[e.featuredImageUrl],datePublished:new Date(e.timestamp).toISOString(),dateModified:new Date(e.timestamp).toISOString(),author:{"@type":"Person",name:`${e.author.firstName} ${e.author.surName}`},publisher:{"@type":"Organization",name:e.author.surName,logo:{"@type":"ImageObject",url:e.author.surName}},description:e.author.firstName};return new t(r)}static createProductJsonLd(e,r){let n={"@context":"https://schema.org","@type":"SoftwareApplication",name:e.name,description:e.description,operatingSystem:e.os,applicationCategory:e.category,offers:{"@type":"Offer",name:"User-based Plan",priceSpecification:{"@type":"PropertyValueSpecification",valueName:"Number of Users",valueRequired:!0,price:"4.99",priceCurrency:"EUR"}},publisher:this.createCompanyJsonLd(r).elementRef.textContent,screenshot:"https://www.social.io/screenshot.png",url:"https://www.social.io/"};return new t(n)}constructor(e){super();let r=document.createElement("script");r.type="application/ld+json",r.text=JSON.stringify(e),this.elementRef=r}};var We=class t extends Zt{static createNewsArticleOgTags(e){let r=[];return r.push(new t("og:url",e.url)),r.push(new t("og:title",e.title)),r.push(new t("og:description",e.content)),r.push(new t("og:image",e.featuredImageUrl)),r}static createProductOgTags(e){let r=[];return r.push(new t("og:url",globalThis.location.href)),r.push(new t("og:title",`${e.name} - ${e.slogan}`)),r.push(new t("og:site_name",e.name)),r.push(new t("og:description",e.description)),r.push(new t("og:image",e.logoLink)),r}constructor(e,r){super();let n=document.createElement("meta");n.setAttribute("property",e),n.content=r,this.elementRef=n}};var In=class{set title(e){this.titleStore=e,this.state==="enabled"&&(document.title=this.titleStore)}get title(){return this.titleStore}constructor(e,r){this.tags=[],this.state="disabled",this.tagManagerRef=e}addTag(e){if(e instanceof Array)for(let r of e)this.addTag(r);else this.tags.push(e),this.state==="enabled"&&e.appendToDom()}async addCompanyInfo(e){this.addTag(An.createCompanyJsonLd(e)),this.addTag(new We("og:type","business.business")),this.addTag(new We("og:title",e.name)),this.addTag(new We("og:url",e.contact.website)),this.addTag(new We("og:image",e.contact.logoUrl)),this.addTag(new We("business:contact_data:street_address",`${e.contact.address.streetName} ${e.contact.address.houseNumber}`)),this.addTag(new We("business:contact_data:locality",e.contact.address.postalCode)),this.addTag(new We("business:contact_data:region",e.contact.address.city)),this.addTag(new We("business:contact_data:postal_code",e.contact.address.postalCode)),this.addTag(new We("business:contact_data:country_name",e.contact.address.country))}addNewsArticleInfo(e){this.addTag(An.createNewsArticleJsonLd(e)),this.addTag(We.createNewsArticleOgTags(e))}addProductInfo(e,r){this.addTag(An.createProductJsonLd(e,r)),this.addTag(We.createProductOgTags(e))}async enable(){this.title&&(document.title=this.title);for(let e of this.tags)e.appendToDom();this.state="enabled"}async disable(){for(let e of this.tags)e.removeFromDom();this.state="disabled"}};var at=class extends Zt{constructor(e,r){super();let n=document.createElement("meta");n.name=e,n.content=r,this.elementRef=n}};var _s=class{constructor(){this.globalLevel=new In(this,"global"),this.baseLevel=new In(this,"base")}async setup(e){switch(this.globalLevel.addTag(new at("google","notranslate")),this.globalLevel.addTag(new at("revisit-after","1 days")),e.twitterHandle&&(this.globalLevel.addTag(new at("twitter:card","summary_large_image")),this.globalLevel.addTag(new at("twitter:site",e.twitterHandle)),this.globalLevel.addTag(new at("twitter:creator",e.twitterHandle))),this.baseLevel.title=e.title,e.description&&this.baseLevel.addTag(new at("description",e.description)),e.canonicalDomain&&this.baseLevel.addTag(new at("canonical",e.canonicalDomain)),!0){case(e.ldCompany&&!e.ldProduct):this.baseLevel.addCompanyInfo(e.ldCompany);break;case!!e.ldProduct:this.baseLevel.addProductInfo(e.ldProduct,e.ldCompany);break}await this.globalLevel.enable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable()}async setSubPageLevel(e){let r=new In(this,"subpage");return r.title=e.title,e.description&&r.addTag(new at("description",e.description)),await this.activeLevel.disable(),this.activeLevel=r,await this.activeLevel.enable(),r}async revertToBaseLevel(){this.activeLevel!==this.baseLevel&&(await this.activeLevel.disable(),this.activeLevel=this.baseLevel,await this.activeLevel.enable())}};var Cs=class{constructor(e){this.tagManager=new _s,this.readyDeferred=Cn.defer(),this.readyForSmartssrDeferred=Cn.defer(),this.readyPromise=this.readyDeferred.promise,this.readyForSmartssrPromise=this.readyForSmartssrDeferred.promise,this.options=e,this.setup().then(()=>{this.readyDeferred.resolve(),this.options.smartssrWaitForReadySignal||this.readyForSmartssrDeferred.resolve()})}async setup(e){e&&(this.options=e),await this.tagManager.setup(this.options.metaObject)}revertToBaseLevel(){this.tagManager.revertToBaseLevel()}async setSubLevel(e){return await this.tagManager.setSubPageLevel(e)}flashTitle(e){}informReadyForSmartssr(){this.options.smartssrWaitForReadySignal||console.error("You have not indicated that you inform smartssr by a dedicated signal! Please consider doing so!"),this.readyForSmartssrDeferred.resolve()}};var No=De(jm(),1);var Mc={ObjectMap:Tt,Stringmap:ao,FastMap:yr};var $t={};X($t,{cssForDesktop:()=>ZS,cssForNotebook:()=>XS,cssForPhablet:()=>eE,cssForPhone:()=>tE,cssForTablet:()=>KS,desktop:()=>Pc,notebook:()=>$c,phablet:()=>Oc,phone:()=>Dc,tablet:()=>Nc});var Pc=1600,$c=1240,Nc=1024,Oc=600,Dc=400,ZS=t=>V(`
22
+ @container wccToolsViewport (min-width: ${Pc}px) {
23
23
  ${t.cssText}
24
24
  }
25
- @media (min-width: ${Ic}px) {
25
+ @media (min-width: ${Pc}px) {
26
26
  ${t.cssText}
27
27
  }
28
- `),QS=t=>V(`
29
- @container wccToolsViewport (max-width: ${Mc}px) {
28
+ `),XS=t=>V(`
29
+ @container wccToolsViewport (max-width: ${$c}px) {
30
30
  ${t.cssText}
31
31
  }
32
- @media (max-width: ${Mc}px) {
32
+ @media (max-width: ${$c}px) {
33
33
  ${t.cssText}
34
34
  }
35
- `),ZS=t=>V(`
36
- @container wccToolsViewport (max-width: ${Pc}px) {
35
+ `),KS=t=>V(`
36
+ @container wccToolsViewport (max-width: ${Nc}px) {
37
37
  ${t.cssText}
38
38
  }
39
- @media (max-width: ${Pc}px) {
39
+ @media (max-width: ${Nc}px) {
40
40
  ${t.cssText}
41
41
  }
42
- `),XS=t=>V(`
43
- @container wccToolsViewport (max-width: ${$c}px) {
42
+ `),eE=t=>V(`
43
+ @container wccToolsViewport (max-width: ${Oc}px) {
44
44
  ${t.cssText}
45
45
  }
46
- @media (max-width: ${$c}px) {
46
+ @media (max-width: ${Oc}px) {
47
47
  ${t.cssText}
48
48
  }
49
- `),KS=t=>V(`
50
- @container wccToolsViewport (max-width: ${Nc}px) {
49
+ `),tE=t=>V(`
50
+ @container wccToolsViewport (max-width: ${Dc}px) {
51
51
  ${t.cssText}
52
52
  }
53
- @media (max-width: ${Nc}px) {
53
+ @media (max-width: ${Dc}px) {
54
54
  ${t.cssText}
55
55
  }
56
- `);var Is=class{constructor(e){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new xe.rxjs.ReplaySubject(1),this.domtoolsRef=e,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async updateAllConnectedElements(){document.body&&document.body.style&&(document.body.style.background=this.goBrightBoolean?"#fff":"#000"),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 Oc;(function(t){t[t.Backspace=8]="Backspace",t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Shift=16]="Shift",t[t.Ctrl=17]="Ctrl",t[t.Alt=18]="Alt",t[t.PauseBreak=19]="PauseBreak",t[t.CapsLock=20]="CapsLock",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.LeftArrow=37]="LeftArrow",t[t.UpArrow=38]="UpArrow",t[t.RightArrow=39]="RightArrow",t[t.DownArrow=40]="DownArrow",t[t.Insert=45]="Insert",t[t.Delete=46]="Delete",t[t.Zero=48]="Zero",t[t.ClosedParen=48]="ClosedParen",t[t.One=49]="One",t[t.ExclamationMark=49]="ExclamationMark",t[t.Two=50]="Two",t[t.AtSign=50]="AtSign",t[t.Three=51]="Three",t[t.PoundSign=51]="PoundSign",t[t.Hash=51]="Hash",t[t.Four=52]="Four",t[t.DollarSign=52]="DollarSign",t[t.Five=53]="Five",t[t.PercentSign=53]="PercentSign",t[t.Six=54]="Six",t[t.Caret=54]="Caret",t[t.Hat=54]="Hat",t[t.Seven=55]="Seven",t[t.Ampersand=55]="Ampersand",t[t.Eight=56]="Eight",t[t.Star=56]="Star",t[t.Asterik=56]="Asterik",t[t.Nine=57]="Nine",t[t.OpenParen=57]="OpenParen",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.LeftWindowKey=91]="LeftWindowKey",t[t.RightWindowKey=92]="RightWindowKey",t[t.SelectKey=93]="SelectKey",t[t.Numpad0=96]="Numpad0",t[t.Numpad1=97]="Numpad1",t[t.Numpad2=98]="Numpad2",t[t.Numpad3=99]="Numpad3",t[t.Numpad4=100]="Numpad4",t[t.Numpad5=101]="Numpad5",t[t.Numpad6=102]="Numpad6",t[t.Numpad7=103]="Numpad7",t[t.Numpad8=104]="Numpad8",t[t.Numpad9=105]="Numpad9",t[t.Multiply=106]="Multiply",t[t.Add=107]="Add",t[t.Subtract=109]="Subtract",t[t.DecimalPoint=110]="DecimalPoint",t[t.Divide=111]="Divide",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.NumLock=144]="NumLock",t[t.ScrollLock=145]="ScrollLock",t[t.SemiColon=186]="SemiColon",t[t.Equals=187]="Equals",t[t.Comma=188]="Comma",t[t.Dash=189]="Dash",t[t.Period=190]="Period",t[t.UnderScore=189]="UnderScore",t[t.PlusSign=187]="PlusSign",t[t.ForwardSlash=191]="ForwardSlash",t[t.Tilde=192]="Tilde",t[t.GraveAccent=192]="GraveAccent",t[t.OpenBracket=219]="OpenBracket",t[t.ClosedBracket=221]="ClosedBracket",t[t.Quote=222]="Quote"})(Oc||(Oc={}));var Ms=class{constructor(e){this.domNode=e,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=Oc,this.handleKeyDown=r=>{this.pressedKeys.add(r.keyCode),this.checkMatchingKeyboardSubjects(r)},this.handleKeyUp=r=>{this.pressedKeys.delete(r.keyCode)},this.startListening()}on(e){let r=new xe.rxjs.Subject;return this.registerKeys(e,r),r}triggerKeyPress(e){for(let r of e)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of e)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(e){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(e)})}areAllKeysPressed(e){let r=!0;return e.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(e,r){if(!this.mapCombosToHandlers.has(e))this.mapCombosToHandlers.set(e,r);else return this.mapCombosToHandlers.get(e)}};var he=class t{static async setupDomTools(e={}){let r;if(!globalThis.deesDomTools&&!e.ignoreGlobal){globalThis.deesDomTools=new t(e),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 e.ignoreGlobal?r=new t(e):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(e){this.elements={headElement:null,bodyElement:null},this.websetup=new Cs({metaObject:{title:"loading..."}}),this.smartstate=new Sn.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new bs.SmartRouter({debug:!1}),this.convenience={typedrequest:Xe,smartdelay:se,smartjson:ge,smarturl:En},this.deesComms=new gs.DeesComms,this.scroller=new $o.default({}),this.themeManager=new Is(this),this.keyboard=new Ms(document.body),this.domToolsReady=Q.defer(),this.domReady=Q.defer(),this.globalStylesReady=Q.defer(),this.runOnceTrackerStringMap=new Ac.Stringmap,this.runOnceResultMap=new Ac.FastMap}async runOnce(e,r){let n=`${e}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(e)){this.runOnceTrackerStringMap.addString(e),this.runOnceTrackerStringMap.addString(n);let o=await r();this.runOnceResultMap.addToMap(e,o),this.runOnceTrackerStringMap.removeString(n)}return await this.runOnceTrackerStringMap.registerUntilTrue(o=>!o.includes(n),()=>this.runOnceResultMap.getByKey(e))}async setGlobalStyles(e){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(e)),this.elements.headElement.appendChild(r)}async setExternalScript(e){await this.domReady.promise;let r=Q.defer(),n=document.createElement("script");n.src=e,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(e){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=e,document.head.append(r)}async setWebsiteInfo(e){await this.websetup.setup(e),await this.websetup.readyPromise}};var Ps=(()=>{let t=navigator.userAgent.indexOf("Mac OS X")===-1?te``.cssText:"";return te`
56
+ `);var Is=class{constructor(e){this.goBrightBoolean=!1,this.preferredColorSchemeMediaMatch=window.matchMedia("(prefers-color-scheme: light)"),this.themeObservable=new de.rxjs.ReplaySubject(1),this.domtoolsRef=e,this.goBrightBoolean=this.preferredColorSchemeMediaMatch.matches,this.preferredColorSchemeMediaMatch.addEventListener("change",r=>{this.goBrightBoolean=r.matches,this.updateAllConnectedElements()}),this.updateAllConnectedElements()}async updateAllConnectedElements(){document.body&&document.body.style&&(document.body.style.background=this.goBrightBoolean?"#fff":"#000"),this.themeObservable.next(this.goBrightBoolean)}goBright(){this.goBrightBoolean=!0,this.updateAllConnectedElements()}goDark(){this.goBrightBoolean=!1,this.updateAllConnectedElements()}toggleDarkBright(){this.goBrightBoolean=!this.goBrightBoolean,this.updateAllConnectedElements()}};var Bc;(function(t){t[t.Backspace=8]="Backspace",t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Shift=16]="Shift",t[t.Ctrl=17]="Ctrl",t[t.Alt=18]="Alt",t[t.PauseBreak=19]="PauseBreak",t[t.CapsLock=20]="CapsLock",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.LeftArrow=37]="LeftArrow",t[t.UpArrow=38]="UpArrow",t[t.RightArrow=39]="RightArrow",t[t.DownArrow=40]="DownArrow",t[t.Insert=45]="Insert",t[t.Delete=46]="Delete",t[t.Zero=48]="Zero",t[t.ClosedParen=48]="ClosedParen",t[t.One=49]="One",t[t.ExclamationMark=49]="ExclamationMark",t[t.Two=50]="Two",t[t.AtSign=50]="AtSign",t[t.Three=51]="Three",t[t.PoundSign=51]="PoundSign",t[t.Hash=51]="Hash",t[t.Four=52]="Four",t[t.DollarSign=52]="DollarSign",t[t.Five=53]="Five",t[t.PercentSign=53]="PercentSign",t[t.Six=54]="Six",t[t.Caret=54]="Caret",t[t.Hat=54]="Hat",t[t.Seven=55]="Seven",t[t.Ampersand=55]="Ampersand",t[t.Eight=56]="Eight",t[t.Star=56]="Star",t[t.Asterik=56]="Asterik",t[t.Nine=57]="Nine",t[t.OpenParen=57]="OpenParen",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.LeftWindowKey=91]="LeftWindowKey",t[t.RightWindowKey=92]="RightWindowKey",t[t.SelectKey=93]="SelectKey",t[t.Numpad0=96]="Numpad0",t[t.Numpad1=97]="Numpad1",t[t.Numpad2=98]="Numpad2",t[t.Numpad3=99]="Numpad3",t[t.Numpad4=100]="Numpad4",t[t.Numpad5=101]="Numpad5",t[t.Numpad6=102]="Numpad6",t[t.Numpad7=103]="Numpad7",t[t.Numpad8=104]="Numpad8",t[t.Numpad9=105]="Numpad9",t[t.Multiply=106]="Multiply",t[t.Add=107]="Add",t[t.Subtract=109]="Subtract",t[t.DecimalPoint=110]="DecimalPoint",t[t.Divide=111]="Divide",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.NumLock=144]="NumLock",t[t.ScrollLock=145]="ScrollLock",t[t.SemiColon=186]="SemiColon",t[t.Equals=187]="Equals",t[t.Comma=188]="Comma",t[t.Dash=189]="Dash",t[t.Period=190]="Period",t[t.UnderScore=189]="UnderScore",t[t.PlusSign=187]="PlusSign",t[t.ForwardSlash=191]="ForwardSlash",t[t.Tilde=192]="Tilde",t[t.GraveAccent=192]="GraveAccent",t[t.OpenBracket=219]="OpenBracket",t[t.ClosedBracket=221]="ClosedBracket",t[t.Quote=222]="Quote"})(Bc||(Bc={}));var Ms=class{constructor(e){this.domNode=e,this.mapCombosToHandlers=new Map,this.pressedKeys=new Set,this.keyEnum=Bc,this.handleKeyDown=r=>{this.pressedKeys.add(r.keyCode),this.checkMatchingKeyboardSubjects(r)},this.handleKeyUp=r=>{this.pressedKeys.delete(r.keyCode)},this.startListening()}on(e){let r=new de.rxjs.Subject;return this.registerKeys(e,r),r}triggerKeyPress(e){for(let r of e)this.pressedKeys.add(r);this.checkMatchingKeyboardSubjects();for(let r of e)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(e){this.mapCombosToHandlers.forEach((r,n)=>{this.areAllKeysPressed(n)&&r.next(e)})}areAllKeysPressed(e){let r=!0;return e.forEach(n=>{this.pressedKeys.has(n)||(r=!1)}),r}registerKeys(e,r){if(!this.mapCombosToHandlers.has(e))this.mapCombosToHandlers.set(e,r);else return this.mapCombosToHandlers.get(e)}};var he=class t{static async setupDomTools(e={}){let r;if(!globalThis.deesDomTools&&!e.ignoreGlobal){globalThis.deesDomTools=new t(e),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 e.ignoreGlobal?r=new t(e):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(e){this.elements={headElement:null,bodyElement:null},this.websetup=new Cs({metaObject:{title:"loading..."}}),this.smartstate=new En.Smartstate,this.domToolsStatePart=this.smartstate.getStatePart("domtools",{virtualViewport:"native",jwt:null}),this.router=new bs.SmartRouter({debug:!1}),this.convenience={typedrequest:Xe,smartdelay:se,smartjson:ye,smarturl:Tn},this.deesComms=new gs.DeesComms,this.scroller=new No.default({}),this.themeManager=new Is(this),this.keyboard=new Ms(document.body),this.domToolsReady=Q.defer(),this.domReady=Q.defer(),this.globalStylesReady=Q.defer(),this.runOnceTrackerStringMap=new Mc.Stringmap,this.runOnceResultMap=new Mc.FastMap}async runOnce(e,r){let n=`${e}+runningCheck`;if(!this.runOnceTrackerStringMap.checkString(e)){this.runOnceTrackerStringMap.addString(e),this.runOnceTrackerStringMap.addString(n);let o=await r();this.runOnceResultMap.addToMap(e,o),this.runOnceTrackerStringMap.removeString(n)}return await this.runOnceTrackerStringMap.registerUntilTrue(o=>!o.includes(n),()=>this.runOnceResultMap.getByKey(e))}async setGlobalStyles(e){await this.domReady.promise;let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(e)),this.elements.headElement.appendChild(r)}async setExternalScript(e){await this.domReady.promise;let r=Q.defer(),n=document.createElement("script");n.src=e,n.addEventListener("load",function(){r.resolve()}),(document.head||document.body).append(n),await r.promise}async setExternalCss(e){let r=document.createElement("link");r.rel="stylesheet",r.crossOrigin="anonymous",r.href=e,document.head.append(r)}async setWebsiteInfo(e){await this.websetup.setup(e),await this.websetup.readyPromise}};var Ps=(()=>{let t=navigator.userAgent.indexOf("Mac OS X")===-1?te``.cssText:"";return te`
57
57
  /* width */
58
58
  ::-webkit-scrollbar {
59
59
  width: 0px;
@@ -61,7 +61,7 @@ Minimum version required to store current data is: `+i+`.
61
61
  body {
62
62
  scrollbar-width: none;
63
63
  }
64
- `.cssText})(),km=te`
64
+ `.cssText})(),qm=te`
65
65
  /*
66
66
  @font-face {
67
67
  font-family: 'Material Icons';
@@ -80,7 +80,7 @@ Minimum version required to store current data is: `+i+`.
80
80
 
81
81
  /* scroll bar styles */
82
82
  ${V(Ps)}
83
- `.cssText;var eE=te`
83
+ `.cssText;var rE=te`
84
84
  * {
85
85
  transition: background 0.1s, color 0.1s;
86
86
  box-sizing: border-box;
@@ -92,7 +92,7 @@ Minimum version required to store current data is: `+i+`.
92
92
  }
93
93
 
94
94
  ${V(Ps)}
95
- `,tE=k`
95
+ `,nE=k`
96
96
  <style>
97
97
  * {
98
98
  transition: background 0.1s, color 0.1s;
@@ -105,11 +105,11 @@ Minimum version required to store current data is: `+i+`.
105
105
 
106
106
  ${Ps}
107
107
  </style>
108
- `,rE=async(t,e={})=>{let r=await he.setupDomTools(e);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(km)}),r};var Dc={};X(Dc,{cssGridColumns:()=>nE});var nE=(t,e)=>{let r="";for(let n=0;n<t;n++)r+=` calc((100%/${t}) - (${e*(t-1)}px/${t}))`;return r};var oE={smartdelay:se,smartpromise:Q,SweetScroll:$o.default,smartstate:Sn,smartrx:xe,smarturl:En,typedrequest:Xe};var Ar={css:te,unsafeCSS:V,LitElement:Ut,property:J};var $s=class{constructor(){this.domtoolsPromise=he.setupDomTools(),this.goBright=!1,this.bdVarTripletStore=[],this.cssGridColumns=(e,r)=>{let n="";for(let o=0;o<e;o++)n+=` calc((100%/${e}) - (${r*(e-1)}px/${e}))`;return Ar.unsafeCSS(n)},this.domtoolsPromise.then(async e=>{e.themeManager.themeObservable.subscribe(async r=>{this.goBright=r,await e.domReady.promise;for(let n of this.bdVarTripletStore)document.body.style.setProperty(n.cssVarName,this.goBright?n.brightValue:n.darkValue)})})}get defaultStyles(){return Ce.staticStyles}cssForDesktop(e){return V($t.cssForDesktop(e))}cssForNotebook(e){return V($t.cssForNotebook(e))}cssForTablet(e){return V($t.cssForTablet(e))}cssForPhablet(e){return V($t.cssForPhablet(e))}cssForPhone(e){return V($t.cssForPhone(e))}bdTheme(e,r){let n,o;he.getGlobalDomToolsSync()?o=he.getGlobalDomToolsSync().themeManager.goBrightBoolean?e:r:o=r;let i=this.bdVarTripletStore.find(s=>s.darkValue===r&&s.brightValue===e);if(i)n=i.cssVarName;else{let s={cssVarName:`--${jm.uni()}`,brightValue:e,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 Ar.unsafeCSS(`var(${n}, ${o})`)}};var Mr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ve=t=>(...e)=>({_$litDirective$:t,values:e}),Ir=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var No=class extends Ir{constructor(e){if(super(e),this.et=me,e.type!==Mr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===me||e==null)return this.vt=void 0,this.et=e;if(e===Ee)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let r=[e];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};No.directiveName="unsafeHTML",No.resultType=1;var iE=Ve(No);var Ae=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var{D:sE}=El,Hm=t=>t===null||typeof t!="object"&&typeof t!="function";var zm=t=>t.strings===void 0,Wm=()=>document.createComment(""),Vm=(t,e,r)=>{let n=t._$AA.parentNode,o=e===void 0?t._$AB:e._$AA;if(r===void 0){let i=n.insertBefore(Wm(),o),s=n.insertBefore(Wm(),o);r=new sE(i,s,t,t.options)}else{let i=r._$AB.nextSibling,s=r._$AM,a=s!==t;if(a){let u;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(u=t._$AU)!==s._$AU&&r._$AP(u)}if(i!==o||a){let u=r._$AA;for(;u!==i;){let c=u.nextSibling;n.insertBefore(u,o),u=c}}}return r},Gm=(t,e,r=t)=>(t._$AI(e,r),t);var Jm=t=>{t._$AR()};var Oo=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),Oo(n,e);return!0},Os=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Ym=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),cE(e)}};function aE(t){this._$AN!==void 0?(Os(this),this._$AM=t,Ym(this)):this._$AM=t}function uE(t,e=!1,r=0){let n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(n))for(let i=r;i<n.length;i++)Oo(n[i],!1),Os(n[i]);else n!=null&&(Oo(n,!1),Os(n));else Oo(this,t)}var cE=t=>{t.type==Mr.CHILD&&(t._$AP??=uE,t._$AQ??=aE)},mt=class extends Ir{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),Ym(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Oo(this,e),Os(this))}setValue(e){if(zm(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Qm=async(t,e)=>{for await(let r of t)if(await e(r)===!1)return},In=class{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}},Mn=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}};var Zm=t=>!Hm(t)&&typeof t.then=="function",Xm=1073741823,Bc=class extends mt{constructor(){super(...arguments),this._$C_t=Xm,this._$Cwt=[],this._$Cq=new In(this),this._$CK=new Mn}render(...e){return e.find(r=>!Zm(r))??Ee}update(e,r){let n=this._$Cwt,o=n.length;this._$Cwt=r;let i=this._$Cq,s=this._$CK;this.isConnected||this.disconnected();for(let a=0;a<r.length&&!(a>this._$C_t);a++){let u=r[a];if(!Zm(u))return this._$C_t=a,u;a<o&&u===n[a]||(this._$C_t=Xm,o=0,Promise.resolve(u).then(async c=>{for(;s.get();)await s.get();let l=i.deref();if(l!==void 0){let f=l._$Cwt.indexOf(u);f>-1&&f<l._$C_t&&(l._$C_t=f,l.setValue(c))}}))}return Ee}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}},lE=Ve(Bc);var Do=class extends mt{constructor(){super(...arguments),this._$Cq=new In(this),this._$CK=new Mn}render(e,r){return Ee}update(e,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CX)return;this._$CX=r;let o=0,{_$Cq:i,_$CK:s}=this;return Qm(r,async a=>{for(;s.get();)await s.get();let u=i.deref();if(u!==void 0){if(u._$CX!==r)return!1;n!==void 0&&(a=n(a,o)),u.commitValue(a,o),o++}return!0}),Ee}commitValue(e,r){this.setValue(e)}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}},pR=Ve(Do);var fE=Ve(class extends Do{constructor(t){if(super(t),t.type!==Mr.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$CJ=t,super.update(t,e)}commitValue(t,e){e===0&&Jm(this._$CJ);let r=Vm(this._$CJ);Gm(r,t)}});var Km=function(t,e,r,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(i=(o<3?s(i):o>3?s(e,r,i):s(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},eg=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)},de=class extends Ar.LitElement{constructor(e={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=Oe.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.garbageFunctions=[],this.domtoolsPromise=Oe.elementBasic.setup(this,e),this.domtoolsPromise.then(r=>{this.domtools=r})}async connectedCallback(){super.connectedCallback();let e=await this.domtoolsPromise;this.themeSubscription=e.themeManager.themeObservable.subscribe(r=>{this.goBright=r}),this.rxSubscriptions.push(this.themeSubscription),this.dispatchEvent(new CustomEvent("deesElementConnected"))}firstUpdated(e){super.firstUpdated(e),this.elementDomReadyDeferred.resolve()}registerGarbageFunction(e){this.garbageFunctions.push(e)}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let e of this.rxSubscriptions)e.unsubscribe();for(let e of this.garbageFunctions)e();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}};Km([Ar.property({type:Boolean}),eg("design:type",Boolean)],de.prototype,"goBright",void 0);Km([Ar.property(),eg("design:type",Oe.DomTools)],de.prototype,"domtools",void 0);var Rc=class extends mt{constructor(){super(...arguments),this.sub=null}render(e){return this.observable!==e&&(this.sub?.unsubscribe(),this.observable=e,this.isConnected&&this.subscribe(e)),Ee}subscribe(e){this.sub=e.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},pE=Ve(Rc);var Fc=class extends mt{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(e){return this.promise!==e&&(this.promise=e,this.isConnected&&this.handlePromise(e)),Ee}handlePromise(e){this.hasPromiseSettled=!1,e.then(r=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)}).catch(r=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)})}disconnected(){this.hasPromiseSettled=!0}reconnected(){this.hasPromiseSettled||this.handlePromise(this.promise)}},hE=Ve(Fc);var Ds=new $s;var ny=De(ry(),1);var iy={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"},sy={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"},tr={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:iy,billedTo:sy,status:null,deliveryDate:new Date().getTime(),periodOfPerformance:null,printResult:null,items:[{name:"Item with 19% VAT",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:19,currency:"EUR"},{name:"Item with 7% VAT",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:7,currency:"EUR"},{name:"Item with 7% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:7,currency:"EUR"},{name:"Item with 21% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:21,currency:"EUR"},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,currency:"EUR"}]}},date:Date.now(),type:"invoice",needsCoverSheet:!1,objectActions:[],pdf:null,from:iy,to:sy,incidenceId:null,language:null,legalContact:null,logoUrl:null,pdfAttachments:null,subject:"Invoice: LL-INV-48765"};var Bn=1122,Wo=794,et=70,Rn=90;var Dr=class extends de{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 o of this.letterData.content.invoiceData.items)n.includes(o.vatPercentage)||n.push(o.vatPercentage);for(let o of n){let i=this.letterData.content.invoiceData.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};he.setupDomTools()}render(){return k`
108
+ `,oE=async(t,e={})=>{let r=await he.setupDomTools(e);return r.runOnce("elementBasicSetup",async()=>{r.setGlobalStyles(qm)}),r};var Rc={};X(Rc,{cssGridColumns:()=>iE});var iE=(t,e)=>{let r="";for(let n=0;n<t;n++)r+=` calc((100%/${t}) - (${e*(t-1)}px/${t}))`;return r};var sE={smartdelay:se,smartpromise:Q,SweetScroll:No.default,smartstate:En,smartrx:de,smarturl:Tn,typedrequest:Xe};var Ar={css:te,unsafeCSS:V,LitElement:Ut,property:J};var $s=class{constructor(){this.domtoolsPromise=he.setupDomTools(),this.goBright=!1,this.bdVarTripletStore=[],this.cssGridColumns=(e,r)=>{let n="";for(let o=0;o<e;o++)n+=` calc((100%/${e}) - (${r*(e-1)}px/${e}))`;return Ar.unsafeCSS(n)},this.domtoolsPromise.then(async e=>{e.themeManager.themeObservable.subscribe(async r=>{this.goBright=r,await e.domReady.promise;for(let n of this.bdVarTripletStore)document.body.style.setProperty(n.cssVarName,this.goBright?n.brightValue:n.darkValue)})})}get defaultStyles(){return Ce.staticStyles}cssForDesktop(e){return V($t.cssForDesktop(e))}cssForNotebook(e){return V($t.cssForNotebook(e))}cssForTablet(e){return V($t.cssForTablet(e))}cssForPhablet(e){return V($t.cssForPhablet(e))}cssForPhone(e){return V($t.cssForPhone(e))}bdTheme(e,r){let n,o;he.getGlobalDomToolsSync()?o=he.getGlobalDomToolsSync().themeManager.goBrightBoolean?e:r:o=r;let i=this.bdVarTripletStore.find(s=>s.darkValue===r&&s.brightValue===e);if(i)n=i.cssVarName;else{let s={cssVarName:`--${Wm.uni()}`,brightValue:e,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 Ar.unsafeCSS(`var(${n}, ${o})`)}};var Mr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ve=t=>(...e)=>({_$litDirective$:t,values:e}),Ir=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var Oo=class extends Ir{constructor(e){if(super(e),this.et=ge,e.type!==Mr.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ge||e==null)return this.vt=void 0,this.et=e;if(e===xe)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let r=[e];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Oo.directiveName="unsafeHTML",Oo.resultType=1;var aE=Ve(Oo);var Ae=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var{D:uE}=_l,Vm=t=>t===null||typeof t!="object"&&typeof t!="function";var Gm=t=>t.strings===void 0,zm=()=>document.createComment(""),Jm=(t,e,r)=>{let n=t._$AA.parentNode,o=e===void 0?t._$AB:e._$AA;if(r===void 0){let i=n.insertBefore(zm(),o),s=n.insertBefore(zm(),o);r=new uE(i,s,t,t.options)}else{let i=r._$AB.nextSibling,s=r._$AM,a=s!==t;if(a){let u;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(u=t._$AU)!==s._$AU&&r._$AP(u)}if(i!==o||a){let u=r._$AA;for(;u!==i;){let c=u.nextSibling;n.insertBefore(u,o),u=c}}}return r},Ym=(t,e,r=t)=>(t._$AI(e,r),t);var Qm=t=>{t._$AR()};var Do=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),Do(n,e);return!0},Os=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},Zm=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),fE(e)}};function cE(t){this._$AN!==void 0?(Os(this),this._$AM=t,Zm(this)):this._$AM=t}function lE(t,e=!1,r=0){let n=this._$AH,o=this._$AN;if(o!==void 0&&o.size!==0)if(e)if(Array.isArray(n))for(let i=r;i<n.length;i++)Do(n[i],!1),Os(n[i]);else n!=null&&(Do(n,!1),Os(n));else Do(this,t)}var fE=t=>{t.type==Mr.CHILD&&(t._$AP??=lE,t._$AQ??=cE)},mt=class extends Ir{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),Zm(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(Do(this,e),Os(this))}setValue(e){if(Gm(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Xm=async(t,e)=>{for await(let r of t)if(await e(r)===!1)return},Mn=class{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}},Pn=class{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}};var Km=t=>!Vm(t)&&typeof t.then=="function",eg=1073741823,Fc=class extends mt{constructor(){super(...arguments),this._$C_t=eg,this._$Cwt=[],this._$Cq=new Mn(this),this._$CK=new Pn}render(...e){return e.find(r=>!Km(r))??xe}update(e,r){let n=this._$Cwt,o=n.length;this._$Cwt=r;let i=this._$Cq,s=this._$CK;this.isConnected||this.disconnected();for(let a=0;a<r.length&&!(a>this._$C_t);a++){let u=r[a];if(!Km(u))return this._$C_t=a,u;a<o&&u===n[a]||(this._$C_t=eg,o=0,Promise.resolve(u).then(async c=>{for(;s.get();)await s.get();let l=i.deref();if(l!==void 0){let f=l._$Cwt.indexOf(u);f>-1&&f<l._$C_t&&(l._$C_t=f,l.setValue(c))}}))}return xe}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}},pE=Ve(Fc);var Bo=class extends mt{constructor(){super(...arguments),this._$Cq=new Mn(this),this._$CK=new Pn}render(e,r){return xe}update(e,[r,n]){if(this.isConnected||this.disconnected(),r===this._$CX)return xe;this._$CX=r;let o=0,{_$Cq:i,_$CK:s}=this;return Xm(r,async a=>{for(;s.get();)await s.get();let u=i.deref();if(u!==void 0){if(u._$CX!==r)return!1;n!==void 0&&(a=n(a,o)),u.commitValue(a,o),o++}return!0}),xe}commitValue(e,r){this.setValue(e)}disconnected(){this._$Cq.disconnect(),this._$CK.pause()}reconnected(){this._$Cq.reconnect(this),this._$CK.resume()}},wR=Ve(Bo);var hE=Ve(class extends Bo{constructor(t){if(super(t),t.type!==Mr.CHILD)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$CJ=t,super.update(t,e)}commitValue(t,e){e===0&&Qm(this._$CJ);let r=Jm(this._$CJ);Ym(r,t)}});var tg=function(t,e,r,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(i=(o<3?s(i):o>3?s(e,r,i):s(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},rg=function(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)},me=class extends Ar.LitElement{constructor(e={}){super(),this.goBright=!1,this.rxSubscriptions=[],this.elementDomReadyDeferred=Oe.plugins.smartpromise.defer(),this.elementDomReady=this.elementDomReadyDeferred.promise,this.garbageFunctions=[],this.domtoolsPromise=Oe.elementBasic.setup(this,e),this.domtoolsPromise.then(r=>{this.domtools=r})}async connectedCallback(){super.connectedCallback();let e=await this.domtoolsPromise;this.themeSubscription=e.themeManager.themeObservable.subscribe(r=>{this.goBright=r}),this.rxSubscriptions.push(this.themeSubscription),this.dispatchEvent(new CustomEvent("deesElementConnected"))}firstUpdated(e){super.firstUpdated(e),this.elementDomReadyDeferred.resolve()}registerGarbageFunction(e){this.garbageFunctions.push(e)}async disconnectedCallback(){await this.domtoolsPromise,super.disconnectedCallback();for(let e of this.rxSubscriptions)e.unsubscribe();for(let e of this.garbageFunctions)e();this.dispatchEvent(new CustomEvent("deesElementDisconnected"))}};tg([Ar.property({type:Boolean}),rg("design:type",Boolean)],me.prototype,"goBright",void 0);tg([Ar.property(),rg("design:type",Oe.DomTools)],me.prototype,"domtools",void 0);var Uc=class extends mt{constructor(){super(...arguments),this.sub=null}render(e){return this.observable!==e&&(this.sub?.unsubscribe(),this.observable=e,this.isConnected&&this.subscribe(e)),xe}subscribe(e){this.sub=e.subscribe(r=>{this.setValue(r)})}disconnected(){this.sub?.unsubscribe()}reconnected(){this.subscribe(this.observable)}},dE=Ve(Uc);var Lc=class extends mt{constructor(){super(...arguments),this.hasPromiseSettled=!1}render(e){return this.promise!==e&&(this.promise=e,this.isConnected&&this.handlePromise(e)),xe}handlePromise(e){this.hasPromiseSettled=!1,e.then(r=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)}).catch(r=>{this.promise===e&&!this.hasPromiseSettled&&(this.setValue(r),this.hasPromiseSettled=!0)})}disconnected(){this.hasPromiseSettled=!0}reconnected(){this.hasPromiseSettled||this.handlePromise(this.promise)}},mE=Ve(Lc);var Ds=new $s;var iy=De(oy(),1);var ay={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"},uy={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"},Rn={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:ay,billedTo:uy,status:null,deliveryDate:new Date().getTime(),periodOfPerformance:null,printResult:null,items:[{name:"Item with 19% VAT",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:19,currency:"EUR"},{name:"Item with 7% VAT",unitQuantity:1,unitNetPrice:100,unitType:"hours",vatPercentage:7,currency:"EUR"},{name:"Item with 7% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:7,currency:"EUR"},{name:"Item with 21% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:21,currency:"EUR"},{name:"Item with 0% VAT",unitQuantity:1,unitNetPrice:230,unitType:"hours",vatPercentage:0,currency:"EUR"}]}},date:Date.now(),type:"invoice",needsCoverSheet:!1,objectActions:[],pdf:null,from:ay,to:uy,incidenceId:null,language:null,legalContact:null,logoUrl:null,pdfAttachments:null,subject:"Invoice: LL-INV-48765"};var Fn=1122,Ho=794,et=70,Un=90;var Dr=class extends me{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 o of this.letterData.content.invoiceData.items)n.includes(o.vatPercentage)||n.push(o.vatPercentage);for(let o of n){let i=this.letterData.content.invoiceData.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};he.setupDomTools()}render(){return k`
109
109
  <div class="trimmedContent"></div>
110
110
  <div class="repeatedContent"></div>
111
111
  <div class="currentContent"></div>
112
- `}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)),console.log("hey"+this.shadowRoot.children.length);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--}}}async firstUpdated(r){super.firstUpdated(r),this.attachInvoiceDom()}async attachInvoiceDom(){let r=await this.getContentNodes();Jn(k`
112
+ `}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)),console.log("hey"+this.shadowRoot.children.length);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--}}}async firstUpdated(r){super.firstUpdated(r),this.attachInvoiceDom()}async attachInvoiceDom(){let r=await this.getContentNodes();Qn(k`
113
113
  <style>
114
114
  .grid {
115
115
  display: grid;
@@ -253,7 +253,7 @@ Minimum version required to store current data is: `+i+`.
253
253
  <div class="infoBox paymentCode">
254
254
  <div class="label">Sepa Payment Code:</div>
255
255
  </div>
256
- `,r.currentContent);let n=document.createElement("canvas");ny.toCanvas(n,`BCD
256
+ `,r.currentContent);let n=document.createElement("canvas");iy.toCanvas(n,`BCD
257
257
  001
258
258
  1
259
259
  SCT
@@ -285,48 +285,52 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
285
285
 
286
286
  .repeatedContent {
287
287
  }
288
- `],W([J({type:Object,reflect:!0})],Dr.prototype,"letterData",2),Dr=W([Ae("dedocument-contentinvoice")],Dr);var Le=class extends de{constructor(){super();this.viewWidth=null;this.viewHeight=null;this.format="a4";this.pageNumber=1;this.pageTotalNumber=1;this.letterData=tr;this.printMode=!1;he.setupDomTools()}render(){return k`
288
+ `],W([J({type:Object,reflect:!0})],Dr.prototype,"letterData",2),Dr=W([Ae("dedocument-contentinvoice")],Dr);var Le=class extends me{constructor(){super();this.viewWidth=null;this.viewHeight=null;this.format="a4";this.pageNumber=1;this.pageTotalNumber=1;this.letterData=null;this.printMode=!1;he.setupDomTools()}render(){return k`
289
289
  <div id="scaleWrapper">
290
290
  <dedocument-pagecontainer .printMode=${this.printMode}>
291
- <dedocument-pageheader
292
- .letterData=${this.letterData}
293
- .pageNumber="${this.pageNumber}"
294
- .pageTotalNumber="${this.pageTotalNumber}"
295
- ></dedocument-pageheader>
296
- ${this.pageNumber===1?k`
297
- <dedocument-letterheader
291
+ ${this.letterData?k`
292
+ <dedocument-pageheader
293
+ .letterData=${this.letterData}
298
294
  .pageNumber="${this.pageNumber}"
295
+ .pageTotalNumber="${this.pageTotalNumber}"
296
+ ></dedocument-pageheader>
297
+ ${this.pageNumber===1?k`
298
+ <dedocument-letterheader
299
+ .pageNumber="${this.pageNumber}"
300
+ .letterData=${this.letterData}
301
+ .pageTotalNumber="${this.pageTotalNumber}"
302
+ ></dedocument-letterheader>
303
+ `:k``}
304
+ <dedocument-pagecontent
305
+ .pageNumber="${this.pageNumber}"
306
+ .pageTotalNumber="${this.pageTotalNumber}"
299
307
  .letterData=${this.letterData}
308
+ ><slot></slot
309
+ ></dedocument-pagecontent>
310
+ <dedocument-pagefooter
311
+ .letterData=${this.letterData}
312
+ .pageNumber="${this.pageNumber}"
300
313
  .pageTotalNumber="${this.pageTotalNumber}"
301
- ></dedocument-letterheader>
302
- `:k``}
303
- <dedocument-pagecontent
304
- .pageNumber="${this.pageNumber}"
305
- .pageTotalNumber="${this.pageTotalNumber}"
306
- .letterData=${this.letterData}
307
- ><slot></slot
308
- ></dedocument-pagecontent>
309
- <dedocument-pagefooter
310
- .letterData=${this.letterData}
311
- .pageNumber="${this.pageNumber}"
312
- .pageTotalNumber="${this.pageTotalNumber}"
313
- ></dedocument-pagefooter>
314
- <div class="versionOverlay">
315
- ${this.letterData.versionInfo.type==="draft"?k`
316
- <div class="topInfo">
317
- Please note: THIS IS A DRAFT ONLY. NO RIGHTS CAN BE DERIVED FROM THIS.<br />
318
- -> Revision/Document version: ${this.letterData.versionInfo.version}
319
- </div>
320
- <div class="bigDraftText">DRAFT</div>
321
- `:k``}
322
- </div>
314
+ ></dedocument-pagefooter>
315
+ <div class="versionOverlay">
316
+ ${this.letterData.versionInfo.type==="draft"?k`
317
+ <div class="topInfo">
318
+ Please note: THIS IS A DRAFT ONLY. NO RIGHTS CAN BE DERIVED FROM THIS.<br />
319
+ -> Revision/Document version: ${this.letterData.versionInfo.version}
320
+ </div>
321
+ <div class="bigDraftText">DRAFT</div>
322
+ `:k``}
323
+ </div>
324
+ `:k`
325
+ <slot></slot>
326
+ `}
323
327
  </dedocument-pagecontainer>
324
328
  </div>
325
- `}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(){console.log("page scale adjustment triggered.");let r=this.shadowRoot.querySelector("#scaleWrapper");if(!r)return;let n=1;this.viewHeight?n=this.viewHeight/Bn:this.viewWidth&&(n=this.viewWidth/Wo),console.log(`new scale is ${n}`),r.style.transform=`scale(${n})`,this.style.height=`${Bn*n}px`}};Le.demo=()=>k` <dedocument-page .format="${"a4"}"></dedocument-page> `,Le.styles=[Ce.staticStyles,te`
329
+ `}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(){console.log("page scale adjustment triggered.");let r=this.shadowRoot.querySelector("#scaleWrapper");if(!r)return;let n=1;this.viewHeight?n=this.viewHeight/Fn:this.viewWidth&&(n=this.viewWidth/Ho),console.log(`new scale is ${n}`),r.style.transform=`scale(${n})`,this.style.height=`${Fn*n}px`}};Le.demo=()=>k` <dedocument-page .format="${"a4"}"></dedocument-page> `,Le.styles=[Ce.staticStyles,te`
326
330
  :host {
327
331
  display: block;
328
- max-height: ${Bn}px;
329
- max-width: ${Wo}px;
332
+ max-height: ${Fn}px;
333
+ max-width: ${Ho}px;
330
334
  }
331
335
 
332
336
  #scaleWrapper {
@@ -362,11 +366,11 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
362
366
  font-size: 200px;
363
367
  opacity: 0.05;
364
368
  }
365
- `],W([J()],Le.prototype,"viewWidth",2),W([J()],Le.prototype,"viewHeight",2),W([J({type:String})],Le.prototype,"format",2),W([J({type:Number})],Le.prototype,"pageNumber",2),W([J({type:Number})],Le.prototype,"pageTotalNumber",2),W([J({type:Object})],Le.prototype,"letterData",2),W([J({type:Boolean,reflect:!0})],Le.prototype,"printMode",2),Le=W([Ae("dedocument-page")],Le);var ay=()=>k`
366
- <dedocument-dedocument .format="${"a4"}" .letterData=${tr}></dedocument-dedocument>
367
- `;var tt=class extends de{constructor(){super();this.format="a4";this.viewWidth=null;this.viewHeight=null;this.printMode=!1;Oe.DomTools.setupDomTools()}render(){return k`
369
+ `],W([J()],Le.prototype,"viewWidth",2),W([J()],Le.prototype,"viewHeight",2),W([J({type:String})],Le.prototype,"format",2),W([J({type:Number})],Le.prototype,"pageNumber",2),W([J({type:Number})],Le.prototype,"pageTotalNumber",2),W([J({type:Object})],Le.prototype,"letterData",2),W([J({type:Boolean,reflect:!0})],Le.prototype,"printMode",2),Le=W([Ae("dedocument-page")],Le);var cy=()=>k`
370
+ <dedocument-dedocument .format="${"a4"}" .letterData=${Rn}></dedocument-dedocument>
371
+ `;var tt=class extends me{constructor(){super();this.format="a4";this.viewWidth=null;this.viewHeight=null;this.printMode=!1;Oe.DomTools.setupDomTools()}render(){return k`
368
372
  <div class="documentContainer"></div>
369
- `}async firstUpdated(r){let n=new ResizeObserver(o=>{for(let i of o){let s=i.contentRect.width,a=i.contentRect.height;this.adjustDePageScaling()}});if(n.observe(this),this.registerGarbageFunction(()=>{n.disconnect()}),this.letterDataUrl){let o=await fetch(this.letterDataUrl);this.letterData=await o.json()}this.renderDocument()}async renderDocument(){let r=await this.domtoolsPromise,n=this.shadowRoot.querySelector(".documentContainer"),o=[],i=0,s=!1,a=document.createElement("dedocument-contentinvoice");a.letterData=this.letterData,document.body.appendChild(a),await r.convenience.smartdelay.delayFor(0);let u=0,c,l;for(;!s;){i++;let f=a.cloneNode(!0),h=new Le;if(h.printMode=this.printMode,h.letterData=this.letterData,o.push(h),h.pageNumber=i,h.append(f),h.pageTotalNumber=i,n.append(h),!this.printMode){let w=document.createElement("div");w.classList.add("betweenPagesSpacer"),n.append(w)}await f.elementDomReady,await f.trimStartToOffset(u);let y=await h.checkOverflow();for(l=0;y;)await f.trimEndByOne(),l++,y=await h.checkOverflow();c=await f.getContentLength(),u=u+c,l===0&&(s=!0),console.log(c)}document.body.removeChild(a);for(let f of o)f.pageTotalNumber=i;this.adjustDePageScaling()}updated(r){super.updated(r),(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,console.log("setting viewWidth: ",this.viewWidth))})}};tt.demo=ay,tt.styles=[Oe.elementBasic.staticStyles,te`
373
+ `}async firstUpdated(r){let n=new ResizeObserver(o=>{for(let i of o){let s=i.contentRect.width,a=i.contentRect.height;this.adjustDePageScaling()}});if(n.observe(this),this.registerGarbageFunction(()=>{n.disconnect()}),this.letterDataUrl){let o=await fetch(this.letterDataUrl);this.letterData=await o.json()}this.renderDocument()}async renderDocument(){let r=await this.domtoolsPromise,n=this.shadowRoot.querySelector(".documentContainer"),o=[],i=0,s=!1,a=document.createElement("dedocument-contentinvoice");a.letterData=this.letterData,document.body.appendChild(a),await r.convenience.smartdelay.delayFor(0);let u=0,c,l;for(;!s;){i++;let f=a.cloneNode(!0),h=new Le;if(h.printMode=this.printMode,h.letterData=this.letterData,o.push(h),h.pageNumber=i,h.append(f),h.pageTotalNumber=i,n.append(h),!this.printMode){let w=document.createElement("div");w.classList.add("betweenPagesSpacer"),n.append(w)}await f.elementDomReady,await f.trimStartToOffset(u);let y=await h.checkOverflow();for(l=0;y;)await f.trimEndByOne(),l++,y=await h.checkOverflow();c=await f.getContentLength(),u=u+c,l===0&&(s=!0),console.log(c)}document.body.removeChild(a);for(let f of o)f.pageTotalNumber=i;this.adjustDePageScaling()}updated(r){super.updated(r),(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,console.log("setting viewWidth: ",this.viewWidth))})}};tt.demo=cy,tt.styles=[Oe.elementBasic.staticStyles,te`
370
374
  :host {
371
375
  display: block;
372
376
  color: #333;
@@ -377,7 +381,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
377
381
  .betweenPagesSpacer {
378
382
  height: 16px;
379
383
  }
380
- `],W([J({type:String})],tt.prototype,"format",2),W([J({type:Number})],tt.prototype,"viewWidth",2),W([J({type:Number})],tt.prototype,"viewHeight",2),W([J({type:Boolean})],tt.prototype,"printMode",2),W([J({type:Object,reflect:!0,converter:t=>typeof t=="string"?ge.parseBase64(t):t})],tt.prototype,"letterData",2),W([J({type:String})],tt.prototype,"letterDataUrl",2),tt=W([Ae("dedocument-dedocument")],tt);var Ot=class extends de{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
384
+ `],W([J({type:String})],tt.prototype,"format",2),W([J({type:Number})],tt.prototype,"viewWidth",2),W([J({type:Number})],tt.prototype,"viewHeight",2),W([J({type:Boolean})],tt.prototype,"printMode",2),W([J({type:Object,reflect:!0,converter:r=>typeof r=="string"?ye.parseBase64(r):r})],tt.prototype,"letterData",2),W([J({type:String})],tt.prototype,"letterDataUrl",2),tt=W([Ae("dedocument-dedocument")],tt);var Ot=class extends me{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
381
385
  <div class="date">
382
386
  ${new Date(this.letterData.date).getDate()}. ${new Date(this.letterData.date).toLocaleString("default",{month:"long"})}
383
387
  ${new Date(this.letterData.date).getFullYear()}
@@ -403,7 +407,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
403
407
  ${this.letterData.to.vatId||"not provided"}
404
408
  </div>
405
409
  `}};Ot.demo=()=>k`
406
- <dedocument-letterheader .format="${"a4"}" .letterData=${tr}></dedocument-letterheader>
410
+ <dedocument-letterheader .format="${"a4"}" .letterData=${Rn}></dedocument-letterheader>
407
411
  `,Ot.styles=[Ce.staticStyles,te`
408
412
  :host {
409
413
  color: #333;
@@ -435,7 +439,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
435
439
  .address {
436
440
  position: absolute;
437
441
  top: 180px;
438
- left: ${V(Rn+"px")};
442
+ left: ${V(Un+"px")};
439
443
  }
440
444
 
441
445
  .address .from {
@@ -445,7 +449,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
445
449
  .address .to {
446
450
  margin-top: 10px;
447
451
  }
448
- `],W([J({type:Object,reflect:!0})],Ot.prototype,"letterData",2),W([J({type:Number,reflect:!0})],Ot.prototype,"pageNumber",2),W([J({type:Number,reflect:!0})],Ot.prototype,"pageTotalNumber",2),Ot=W([Ae("dedocument-letterheader")],Ot);var nr=class extends de{constructor(){super();this.format="a4";this.printMode=!1;he.setupDomTools()}render(){return k`
452
+ `],W([J({type:Object,reflect:!0})],Ot.prototype,"letterData",2),W([J({type:Number,reflect:!0})],Ot.prototype,"pageNumber",2),W([J({type:Number,reflect:!0})],Ot.prototype,"pageTotalNumber",2),Ot=W([Ae("dedocument-letterheader")],Ot);var nr=class extends me{constructor(){super();this.format="a4";this.printMode=!1;he.setupDomTools()}render(){return k`
449
453
  <style>
450
454
  :host {
451
455
  box-shadow: ${this.printMode?"none":"0px 0px 10px rgba(0,0,0,0.3)"};
@@ -460,13 +464,13 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
460
464
  background: white;
461
465
  color: #333;
462
466
  padding: 0px;
463
- width: ${V(Wo+"px")};
464
- height: ${V(Bn+"px")};
467
+ width: ${V(Ho+"px")};
468
+ height: ${V(Fn+"px")};
465
469
  position: relative;
466
470
  border-radius: 3px;
467
471
  overflow: hidden;
468
472
  }
469
- `],W([J({type:String})],nr.prototype,"format",2),W([J({type:Boolean})],nr.prototype,"printMode",2),nr=W([Ae("dedocument-pagecontainer")],nr);var Dt=class extends de{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
473
+ `],W([J({type:String})],nr.prototype,"format",2),W([J({type:Boolean})],nr.prototype,"printMode",2),nr=W([Ae("dedocument-pagecontainer")],nr);var Dt=class extends me{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
470
474
  <style>
471
475
  .content {
472
476
  top: ${this.pageNumber===1?V("450px"):V("200px")};
@@ -491,7 +495,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
491
495
  .content {
492
496
  position: absolute;
493
497
 
494
- left: ${V(Rn+"px")};
498
+ left: ${V(Un+"px")};
495
499
  right: ${V(et+"px")};
496
500
  bottom: 170px;
497
501
  overflow: visible;
@@ -538,7 +542,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
538
542
  margin-top: 8px;
539
543
  font-size: 10px;
540
544
  }
541
- `],W([J({type:Number})],Dt.prototype,"letterData",2),W([J({type:Number})],Dt.prototype,"pageNumber",2),W([J({type:Number})],Dt.prototype,"pageTotalNumber",2),Dt=W([Ae("dedocument-pagecontent")],Dt);var Bt=class extends de{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
545
+ `],W([J({type:Number})],Dt.prototype,"letterData",2),W([J({type:Number})],Dt.prototype,"pageNumber",2),W([J({type:Number})],Dt.prototype,"pageTotalNumber",2),Dt=W([Ae("dedocument-pagecontent")],Dt);var Bt=class extends me{constructor(){super();this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
542
546
  <div class="bottomstripe">
543
547
  <div>
544
548
  <strong>Address:</strong><br />
@@ -585,7 +589,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
585
589
  right: 0px;
586
590
  height: 130px;
587
591
  content: '';
588
- padding: 30px ${V(et+"px")} 10px ${V(Rn+"px")};
592
+ padding: 30px ${V(et+"px")} 10px ${V(Un+"px")};
589
593
  grid-template-columns: calc(100% / 4) calc(100% / 4) calc(100% / 4) calc(100% / 4);
590
594
  grid-gap: 5px;
591
595
  border-top: 2px solid #e4002b;
@@ -613,7 +617,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
613
617
  border-top-left-radius: 3px;
614
618
  border-top-right-radius: 3px;
615
619
  }
616
- `],W([J({type:Object})],Bt.prototype,"letterData",2),W([J({type:Number})],Bt.prototype,"pageNumber",2),W([J({type:Number})],Bt.prototype,"pageTotalNumber",2),Bt=W([Ae("dedocument-pagefooter")],Bt);var Rt=class extends de{constructor(){super();this.letterData=null;this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
620
+ `],W([J({type:Object})],Bt.prototype,"letterData",2),W([J({type:Number})],Bt.prototype,"pageNumber",2),W([J({type:Number})],Bt.prototype,"pageTotalNumber",2),Bt=W([Ae("dedocument-pagefooter")],Bt);var Rt=class extends me{constructor(){super();this.letterData=null;this.pageNumber=1;this.pageTotalNumber=1;he.setupDomTools()}render(){return k`
617
621
  <div class="topstripe">
618
622
  <img src="https://assetbroker.lossless.one/brandfiles/lossless/svg-minimal-bright.svg" />
619
623
  </div>
@@ -655,16 +659,16 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
655
659
  left: auto;
656
660
  right: ${V(et+"px")};
657
661
  }
658
- `],W([J({type:Object})],Rt.prototype,"letterData",2),W([J({type:Number})],Rt.prototype,"pageNumber",2),W([J({type:Number})],Rt.prototype,"pageTotalNumber",2),Rt=W([Ae("dedocument-pageheader")],Rt);var uy=()=>k`
659
- <dedocument-viewer .letterData=${tr}></dedocument-viewer>
660
- `;var Fn=class extends de{constructor(){super(...arguments);this.letterData=null;this.render=()=>k`
662
+ `],W([J({type:Object})],Rt.prototype,"letterData",2),W([J({type:Number})],Rt.prototype,"pageNumber",2),W([J({type:Number})],Rt.prototype,"pageTotalNumber",2),Rt=W([Ae("dedocument-pageheader")],Rt);var ly=()=>k`
663
+ <dedocument-viewer .letterData=${Rn}></dedocument-viewer>
664
+ `;var Ln=class extends me{constructor(){super(...arguments);this.letterData=null;this.render=()=>k`
661
665
  <div class="maincontainer">
662
666
  <div class="viewport">
663
667
  ${this.letterData?k` <dedocument-dedocument .letterData=${this.letterData}></dedocument-dedocument> `:k``}
664
668
  </div>
665
669
  <div class="controls"></div>
666
670
  </div>
667
- `;this.updated=r=>{super.updated(r),r.has("letterData")}}};Fn.demo=uy,Fn.styles=[Ds.defaultStyles,te`
671
+ `;this.updated=r=>{super.updated(r),r.has("letterData")}}};Ln.demo=ly,Ln.styles=[Ds.defaultStyles,te`
668
672
  .maincontainer {
669
673
  position: relative;
670
674
  height: 100%;
@@ -704,7 +708,7 @@ EPC QR Code`,o=>{o&&console.error(o),console.log("success!")}),r.currentContent.
704
708
  overflow-y: scroll;
705
709
  overscroll-behavior: contain;
706
710
  }
707
- `],Fn=W([Ae("dedocument-viewer")],Fn);export{Dr as DeContentInvoice,tt as DeDocument,Fn as DeDocumentViewer,Ot as DeLetterHeader,Le as DePage,nr as DePageContainer,Dt as DePageContent,Bt as DePageFooter,Rt as DePageHeader,Bn as a4Height,Wo as a4Width,tr as demoLetter,Rn as leftMargin,et as rightMargin};
711
+ `],Ln=W([Ae("dedocument-viewer")],Ln);export{Dr as DeContentInvoice,tt as DeDocument,Ln as DeDocumentViewer,Ot as DeLetterHeader,Le as DePage,nr as DePageContainer,Dt as DePageContent,Bt as DePageFooter,Rt as DePageHeader,Fn as a4Height,Ho as a4Width,Rn as demoLetter,Un as leftMargin,et as rightMargin};
708
712
  /*! Bundled license information:
709
713
 
710
714
  ieee754/index.js: