2023-12-29 17:55:28 +01:00
import { q as go , r as Ee , o as za , s as wo , v as va , x as ya , y as bo , f as Se , g as Ye , h as Z , z as $o , A as $a , B as Na , C as _o , u as Co , b as To , d as Po , e as ga , i as fe , t as gt , m as Ve , p as wa , D as So , k as Sa , l as Ea , E as Aa , F as Oa , G as Eo , H as Ao , n as ka , U as Da , I as ja } from "./app-7741c0f3.js" ; import { F as Oo } from "./Form-5d38519d.js" ; import { S as ko } from "./Spinner-1b0ef575.js" ; import { _ as Do } from "./QrContentDisplay-031be625.js" ; import { u as jo } from "./bus-7cf82b9d.js" ; /*! 2FAuth version 5.0.2 - Copyright (c) 2023 Bubka - https://github.com/Bubka/2FAuth */ var Ba = ( i , c , o ) => { if ( ! c . has ( i ) ) throw TypeError ( "Cannot " + o ) } , xa = ( i , c , o ) => ( Ba ( i , c , "read from private field" ) , o ? o . call ( i ) : c . get ( i ) ) , xo = ( i , c , o ) => { if ( c . has ( i ) ) throw TypeError ( "Cannot add the same private member more than once" ) ; c instanceof WeakSet ? c . add ( i ) : c . set ( i , o ) } , Mo = ( i , c , o , h ) => ( Ba ( i , c , "write to private field" ) , h ? h . call ( i , o ) : c . set ( i , o ) , o ) ; const Ma = [ "aztec" , "code_128" , "code_39" , "code_93" , "codabar" , "data_matrix" , "ean_13" , "ean_8" , "itf" , "pdf417" , "qr_code" , "upc_a" , "upc_e" , "unknown" ] ; function Ro ( i ) { if ( Ya ( i ) ) return { width : i . naturalWidth , height : i . naturalHeight } ; if ( Ga ( i ) ) return { width : i . width . baseVal . value , height : i . height . baseVal . value } ; if ( qa ( i ) ) return { width : i . videoWidth , height : i . videoHeight } ; if ( Xa ( i ) ) return { width : i . width , height : i . height } ; if ( Qa ( i ) ) return { width : i . displayWidth , height : i . displayHeight } ; if ( Ja ( i ) ) return { width : i . width , height : i . height } ; if ( Za ( i ) ) return { width : i . width , height : i . height } ; throw new TypeError ( "The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'." ) } function Ya ( i ) { try { return i instanceof HTMLImageElement } catch { return ! 1 } } function Ga ( i ) { try { return i instanceof SVGImageElement } catch { return ! 1 } } function qa ( i ) { try { return i instanceof HTMLVideoElement } catch { return ! 1 } } function Ja ( i ) { try { return i instanceof HTMLCanvasElement } catch { return ! 1 } } function Xa ( i ) { try { return i instanceof ImageBitmap } catch { return ! 1 } } function Za ( i ) { try { return i instanceof OffscreenCanvas } catch { return ! 1 } } function Qa ( i ) { try { return i instanceof VideoFrame } catch { return ! 1 } } function Ka ( i ) { try { return i instanceof Blob } catch { return ! 1 } } function Fo ( i ) { try { return i instanceof ImageData } catch { return ! 1 } } function Wo ( i , c ) { try { const o = new OffscreenCanvas ( i , c ) ; if ( o . getContext ( "2d" ) instanceof OffscreenCanvasRenderingContext2D ) return o ; throw void 0 } catch { const h = document . createElement ( "canvas" ) ; return h . width = i , h . height = c , h } } async function eo ( i ) { if ( Ya ( i ) && ! await Vo ( i ) ) throw new DOMException ( "Failed to load or decode HTMLImageElement." , "InvalidStateError" ) ; if ( Ga ( i ) && ! await Lo ( i ) ) throw new DOMException ( "Failed to load or decode SVGImageElement." , "InvalidStateError" ) ; if ( Qa ( i ) && zo ( i ) ) throw new DOMException ( "VideoFrame is closed." , "InvalidStateError" ) ; if ( qa ( i ) && ( i . readyState === 0 || i . readyState === 1 ) ) throw new DOMException ( "Invalid element or state." , "InvalidStateError" ) ; if ( Xa ( i ) && Bo ( i ) ) throw new DOMException ( "The image source is detached." , "InvalidStateError" ) ; const { width : c , height : o } = Ro ( i ) ; if ( c === 0 || o === 0 ) return null ; const h = Wo ( c , o ) . getContext ( "2d" ) ; h . drawImage ( i , 0 , 0 ) ; try { return h . getImageData ( 0 , 0 , c , o ) } catch { throw new DOMException ( "Source would taint origin." , "SecurityError" ) } } async function Io ( i ) { let c ; try { if ( createImageBitmap ) c = await createImageBitmap ( i ) ; else if ( Image ) { c = new Image ; let o = "" ; try { o = URL . createObjectURL ( i ) , c . src = o , await c . decode ( ) } finally { URL . revokeObjectURL ( o ) } } else return i } catch { throw new DOMException ( "Failed to load or decode Blob." , "InvalidStateError" ) } return await eo ( c ) } function Uo ( i ) { const { width : c , height : o } = i ; if ( c === 0 || o === 0 ) return null ; const h = i . getContext ( "2d" ) ; try { return h . getImageData ( 0 , 0 , c , o ) } catch { throw new DOMException ( "Source would taint origin." , "SecurityError" ) } } async function Ho ( i ) { if ( Ka ( i ) ) return await Io ( i ) ; if ( Fo ( i ) ) { if ( No ( i ) ) throw new DOMException ( "The image data has been detached." , "InvalidStateError" ) ; return i } return Ja ( i ) || Za ( i ) ? Uo ( i ) : await eo ( i ) } async function Vo ( i ) { try { return await i . decode ( ) , ! 0 } catch { return ! 1 } } async function Lo ( i ) { var c ; try { return await ( ( c = i . decode ) == nu
2023-12-21 08:54:46 +01:00
` +a.replace(/^Error(:[^ \n ]*)? \n /,""))});return t.prototype=Object.create(n.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name: ` $ { this . name } : $ { this . message } ` },t},Lt,zt=n=>{var e=tr(n),t=G(e);return ae(e),t},Ue=(n,e)=>{var t=[],r={};function a(s){if(!r[s]&&!le[s]){if(xe[s]){xe[s].forEach(a);return}t.push(s),r[s]=!0}}throw e.forEach(a),new Lt( ` $ { n } : ` +t.map(zt).join([", "]))},Xr=(n,e,t,r,a,s,u,l,d,f,m,w,C)=>{m=G(m),s=ee(a,s),l&&(l=ee(u,l)),f&&(f=ee(d,f)),C=ee(w,C);var S=Wt(m);ut(S,function(){Ue( ` Cannot construct $ { m } due to unbound types ` ,[r])}),de([n,e,t],r?[r]:[],function(j){j=j[0];var H,V;r?(H=j.registeredClass,V=H.instancePrototype):V=Fe.prototype;var L=st(S,function(){if(Object.getPrototypeOf(this)!==g)throw new ve("Use 'new' to construct "+m);if(p.constructor_body===void 0)throw new ve(m+" has no accessible constructor");var ge=p.constructor_body[arguments.length];if(ge===void 0)throw new ve( ` Tried to invoke ctor of $ { m } with invalid number of parameters ( $ { arguments . length } ) - expected ( $ { Object . keys ( p . constructor _body ) . toString ( ) } ) parameters instead ! ` );return ge.apply(this,arguments)}),g=Object.create(V,{constructor:{value:L}});L.prototype=g;var p=new Vr(m,L,g,C,H,s,l,f);p.baseClass&&(p.baseClass.__derivedClasses===void 0&&(p.baseClass.__derivedClasses=[]),p.baseClass.__derivedClasses.push(p));var T=new We(m,p,!0,!1,!1),z=new We(m+"*",p,!1,!1,!1),Q=new We(m+" const*",p,!1,!0,!1);return Ft[n]={pointerType:z,constPointerType:Q},Ht(S,L),[T,z,Q]})},lt=(n,e)=>{for(var t=[],r=0;r<n;r++)t.push(E[e+r*4>>2]);return t};function dt(n,e,t,r,a,s){var u=e.length;u<2&&k("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var l=e[1]!==null&&t!==null,d=!1,f=1;f<e.length;++f)if(e[f]!==null&&e[f].destructorFunction===void 0){d=!0;break}var m=e[0].name!=="void",w=u-2,C=new Array(w),S=[],j=[];return function(){arguments.length!==w&&k( ` function $ { n } called with $ { arguments . length } arguments , expected $ { w } ` ),j.length=0;var H;S.length=l?2:1,S[0]=a,l&&(H=e[1].toWireType(j,this),S[1]=H);for(var V=0;V<w;++V)C[V]=e[V+2].toWireType(j,arguments[V]),S.push(C[V]);var L=r.apply(null,S);function g(p){if(d)kt(j);else for(var T=l?1:2;T<e.length;T++){var z=T===1?H:C[T-2];e[T].destructorFunction!==null&&e[T].destructorFunction(z)}if(m)return e[0].fromWireType(p)}return g(L)}}var Zr=(n,e,t,r,a,s)=>{var u=lt(e,t);a=ee(r,a),de([],[n],function(l){l=l[0];var d= ` constructor $ { l . name } ` ;if(l.registeredClass.constructor_body===void 0&&(l.registeredClass.constructor_body=[]),l.registeredClass.constructor_body[e-1]!==void 0)throw new ve( ` Cannot register multiple constructors with identical number of parameters ( $ { e - 1 } ) for class '${l.name}' ! Overload resolution is currently only performed using the parameter count , not actual type info ! ` );return l.registeredClass.constructor_body[e-1]=()=>{Ue( ` Cannot construct $ { l . name } due to unbound types ` ,u)},de([],u,f=>(f.splice(1,0,null),l.registeredClass.constructor_body[e-1]=dt(d,f,null,a,s),[])),[]})},Nt=n=>{n=n.trim();const e=n.indexOf("(");return e!==-1?(oe(n[n.length-1]==")","Parentheses for argument names should match."),n.substr(0,e)):n},Qr=(n,e,t,r,a,s,u,l,d)=>{var f=lt(t,r);e=G(e),e=Nt(e),s=ee(a,s),de([],[n],function(m){m=m[0];var w= ` $ { m . name } . $ { e } ` ;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),l&&m.registeredClass.pureVirtualFunctions.push(e);function C(){Ue( ` Cannot call $ { w } due to unbound types ` ,f)}var S=m.registeredClass.instancePrototype,j=S[e];return j===void 0||j.overloadTable===void 0&&j.className!==m.name&&j.argCount===t-2?(C.argCount=t-2,C.className=m.name,S[e]=C):(It(S,e,w),S[e].overloadTable[t-2]=C),de([],f,function(H){var V=dt(w,H,m,s,u);return S[e].overloadTable===void 0?(V.argCount=t-2,S[e]=V):S[e].overloadTable[t-2]=V,[]}),[]})};function Kr(){Object.assign(Bt.prototype,{get(n){return this.allocated[n]},has(n){return this.allocated[n]!==void 0},allocate(n){var e=this.freelist.pop()||this.allocated.length;return this.allocated[e]=n,e},free(n){this.allocated[n]=void 0,this.freelist.push(n)}})}function Bt(){thi
` ,"%p":g=>g.tm_hour>=0&&g.tm_hour<12?"AM":"PM","%S":g=>C(g.tm_sec,2),"%t":()=>" ","%u":g=>g.tm_wday||7,"%U":g=>{var p=g.tm_yday+7-g.tm_wday;return C(Math.floor(p/7),2)},"%V":g=>{var p=Math.floor((g.tm_yday+7-(g.tm_wday+6)%7)/7);if((g.tm_wday+371-g.tm_yday-2)%7<=2&&p++,p){if(p==53){var T=(g.tm_wday+371-g.tm_yday)%7;T!=4&&(T!=3||!He(g.tm_year))&&(p=1)}}else{p=52;var z=(g.tm_wday+7-g.tm_yday-1)%7;(z==4||z==5&&He(g.tm_year%400-1))&&p++}return C(p,2)},"%w":g=>g.tm_wday,"%W":g=>{var p=g.tm_yday+7-(g.tm_wday+6)%7;return C(Math.floor(p/7),2)},"%y":g=>(g.tm_year+1900).toString().substring(2),"%Y":g=>g.tm_year+1900,"%z":g=>{var p=g.tm_gmtoff,T=p>=0;return p=Math.abs(p)/60,p=p/60*100+p%60,(T?"+":"-")+("0000"+p).slice(-4)},"%Z":g=>g.tm_zone,"%%":()=>"%"};u=u.replace(/%%/g," \0 \0 ");for(var d in V)u.includes(d)&&(u=u.replace(new RegExp(d,"g"),V[d](s)));u=u.replace(/ \0 \0 /g,"%");var L=Bn(u,!1);return L.length>e?0:(Yn(L,n),L.length-1)},qn=(n,e,t,r,a)=>Gn(n,e,t,r);Dt=o.InternalError=class extends Error{constructor(n){super(n),this.name="InternalError"}},Sr(),ve=o.BindingError=class extends Error{constructor(n){super(n),this.name="BindingError"}},Ir(),Mr(),Br(),Lt=o.UnboundTypeError=Jr(Error,"UnboundTypeError"),Kr(),tn();var Jn={s:mr,v:vr,b:gr,g:wr,q:br,I: $ r,f:_r,T:Cr,d:yr,ba:Tr,P:Pr,Y:Ar,aa:Xr, $ :Zr,w:Qr,X:rn,x:an,h:on,K:un,L:cn,t:dn,n:fn,J:mn,C:_n,A:Cn,ca:Tn,Z:Pn,ea:Yt,da:An,M:On,V:Dn,_:jn,B:xn,W:Mn,U:Wn,R:Hn,S:Vn,D:la,E:ca,m:da,a:Xn,e:ea,o:na,k:Kn,G:sa,u:oa,F:ua,z:ha,O:ma,l:ta,j:ra,c:Qn,p:Zn,H:ia,r:fa,i:aa,y:pa,N:Ln,Q:qn},F=pr(),ae=o._free=n=>(ae=o._free=F.ha)(n),vt=o._malloc=n=>(vt=o._malloc=F.ia)(n),tr=n=>(tr=F.ka)(n);o.__embind_initialize_bindings=()=>(o.__embind_initialize_bindings=F.la)();var M=(n,e)=>(M=F.ma)(n,e),Pe=n=>(Pe=F.na)(n),I=()=>(I=F.oa)(),U=n=>(U=F.pa)(n),rr=n=>(rr=F.qa)(n),nr=n=>(nr=F.ra)(n),ar=(n,e,t)=>(ar=F.sa)(n,e,t),or=n=>(or=F.ta)(n);o.dynCall_viijii=(n,e,t,r,a,s,u)=>(o.dynCall_viijii=F.ua)(n,e,t,r,a,s,u);var ir=o.dynCall_jiiii=(n,e,t,r,a)=>(ir=o.dynCall_jiiii=F.va)(n,e,t,r,a);o.dynCall_iiiiij=(n,e,t,r,a,s,u)=>(o.dynCall_iiiiij=F.wa)(n,e,t,r,a,s,u),o.dynCall_iiiiijj=(n,e,t,r,a,s,u,l,d)=>(o.dynCall_iiiiijj=F.xa)(n,e,t,r,a,s,u,l,d),o.dynCall_iiiiiijj=(n,e,t,r,a,s,u,l,d,f)=>(o.dynCall_iiiiiijj=F.ya)(n,e,t,r,a,s,u,l,d,f);function Xn(n,e){var t=I();try{return W(n)(e)}catch(r){if(U(t),r!==r+0)throw r;M(1,0)}}function Zn(n,e,t,r){var a=I();try{W(n)(e,t,r)}catch(s){if(U(a),s!==s+0)throw s;M(1,0)}}function Qn(n,e,t){var r=I();try{W(n)(e,t)}catch(a){if(U(r),a!==a+0)throw a;M(1,0)}}function Kn(n,e,t,r,a){var s=I();try{return W(n)(e,t,r,a)}catch(u){if(U(s),u!==u+0)throw u;M(1,0)}}function ea(n,e,t){var r=I();try{return W(n)(e,t)}catch(a){if(U(r),a!==a+0)throw a;M(1,0)}}function ta(n){var e=I();try{W(n)()}catch(t){if(U(e),t!==t+0)throw t;M(1,0)}}function ra(n,e){var t=I();try{W(n)(e)}catch(r){if(U(t),r!==r+0)throw r;M(1,0)}}function na(n,e,t,r){var a=I();try{return W(n)(e,t,r)}catch(s){if(U(a),s!==s+0)throw s;M(1,0)}}function aa(n,e,t,r,a,s,u,l,d,f,m){var w=I();try{W(n)(e,t,r,a,s,u,l,d,f,m)}catch(C){if(U(w),C!==C+0)throw C;M(1,0)}}function oa(n,e,t,r,a,s,u){var l=I();try{return W(n)(e,t,r,a,s,u)}catch(d){if(U(l),d!==d+0)throw d;M(1,0)}}function ia(n,e,t,r,a){var s=I();try{W(n)(e,t,r,a)}catch(u){if(U(s),u!==u+0)throw u;M(1,0)}}function sa(n,e,t,r,a,s){var u=I();try{return W(n)(e,t,r,a,s)}catch(l){if(U(u),l!==l+0)throw l;M(1,0)}}function ua(n,e,t,r,a,s,u,l){var d=I();try{return W(n)(e,t,r,a,s,u,l)}catch(f){if(U(d),f!==f+0)throw f;M(1,0)}}function ca(n,e,t,r){var a=I();try{return W(n)(e,t,r)}catch(s){if(U(a),s!==s+0)throw s;M(1,0)}}function la(n,e,t,r){var a=I();try{return W(n)(e,t,r)}catch(s){if(U(a),s!==s+0)throw s;M(1,0)}}function da(n){var e=I();try{return W(n)()}catch(t){if(U(e),t!==t+0)throw t;M(1,0)}}function fa(n,e,t,r,a,s,u,l){var d=I();try{W(n)(e,t,r,a,s,u,l)}catch(f){if(U(d),f!==f+0)throw f;M(1,0)}}function ha(n,e,t,r,a,s,u,l,d,f,m,w){var C=I();try{return W(n)(e,t,r,a,s,u,l,d,f,m,w)}catch(S){if(U(C),S!==S+0)throw S;M(1,0)}}function pa(n,e,t,r,a,s,u,l,d,f,m,w,C,S,j,H){var V=I();try{W(n)(e,t,r,a,s,u,l,d,f,m,w,C,S,j,H)}cat
` +s.replace(/^Error(:[^ \n ]*)? \n /,""))});return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return this.message===void 0?this.name: ` $ { this . name } : $ { this . message } ` },r},Lt,zt=e=>{var t=tr(e),r=G(t);return ae(t),r},Ue=(e,t)=>{var r=[],a={};function s(u){if(!a[u]&&!le[u]){if(xe[u]){xe[u].forEach(s);return}r.push(u),a[u]=!0}}throw t.forEach(s),new Lt( ` $ { e } : ` +r.map(zt).join([", "]))},Xr=(e,t,r,a,s,u,l,d,f,m,w,C,S)=>{w=G(w),u=ee(s,u),d&&(d=ee(l,d)),m&&(m=ee(f,m)),S=ee(C,S);var j=Wt(w);ut(j,function(){Ue( ` Cannot construct $ { w } due to unbound types ` ,[a])}),de([e,t,r],a?[a]:[],function(H){H=H[0];var V,L;a?(V=H.registeredClass,L=V.instancePrototype):L=Fe.prototype;var g=st(j,function(){if(Object.getPrototypeOf(this)!==p)throw new ve("Use 'new' to construct "+w);if(T.constructor_body===void 0)throw new ve(w+" has no accessible constructor");var ur=T.constructor_body[arguments.length];if(ur===void 0)throw new ve( ` Tried to invoke ctor of $ { w } with invalid number of parameters ( $ { arguments . length } ) - expected ( $ { Object . keys ( T . constructor _body ) . toString ( ) } ) parameters instead ! ` );return ur.apply(this,arguments)}),p=Object.create(L,{constructor:{value:g}});g.prototype=p;var T=new Vr(w,g,p,S,V,u,d,m);T.baseClass&&(T.baseClass.__derivedClasses===void 0&&(T.baseClass.__derivedClasses=[]),T.baseClass.__derivedClasses.push(T));var z=new We(w,T,!0,!1,!1),Q=new We(w+"*",T,!1,!1,!1),ge=new We(w+" const*",T,!1,!0,!1);return Ft[e]={pointerType:Q,constPointerType:ge},Ht(j,g),[z,Q,ge]})},lt=(e,t)=>{for(var r=[],a=0;a<e;a++)r.push(E[t+a*4>>2]);return r};function dt(e,t,r,a,s,u){var l=t.length;l<2&&k("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var d=t[1]!==null&&r!==null,f=!1,m=1;m<t.length;++m)if(t[m]!==null&&t[m].destructorFunction===void 0){f=!0;break}var w=t[0].name!=="void",C=l-2,S=new Array(C),j=[],H=[];return function(){arguments.length!==C&&k( ` function $ { e } called with $ { arguments . length } arguments , expected $ { C } ` ),H.length=0;var V;j.length=d?2:1,j[0]=s,d&&(V=t[1].toWireType(H,this),j[1]=V);for(var L=0;L<C;++L)S[L]=t[L+2].toWireType(H,arguments[L]),j.push(S[L]);var g=a.apply(null,j);function p(T){if(f)kt(H);else for(var z=d?1:2;z<t.length;z++){var Q=z===1?V:S[z-2];t[z].destructorFunction!==null&&t[z].destructorFunction(Q)}if(w)return t[0].fromWireType(T)}return p(g)}}var Zr=(e,t,r,a,s,u)=>{var l=lt(t,r);s=ee(a,s),de([],[e],function(d){d=d[0];var f= ` constructor $ { d . name } ` ;if(d.registeredClass.constructor_body===void 0&&(d.registeredClass.constructor_body=[]),d.registeredClass.constructor_body[t-1]!==void 0)throw new ve( ` Cannot register multiple constructors with identical number of parameters ( $ { t - 1 } ) for class '${d.name}' ! Overload resolution is currently only performed using the parameter count , not actual type info ! ` );return d.registeredClass.constructor_body[t-1]=()=>{Ue( ` Cannot construct $ { d . name } due to unbound types ` ,l)},de([],l,m=>(m.splice(1,0,null),d.registeredClass.constructor_body[t-1]=dt(f,m,null,s,u),[])),[]})},Nt=e=>{e=e.trim();const t=e.indexOf("(");return t!==-1?(oe(e[e.length-1]==")","Parentheses for argument names should match."),e.substr(0,t)):e},Qr=(e,t,r,a,s,u,l,d,f)=>{var m=lt(r,a);t=G(t),t=Nt(t),u=ee(s,u),de([],[e],function(w){w=w[0];var C= ` $ { w . name } . $ { t } ` ;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),d&&w.registeredClass.pureVirtualFunctions.push(t);function S(){Ue( ` Cannot call $ { C } due to unbound types ` ,m)}var j=w.registeredClass.instancePrototype,H=j[t];return H===void 0||H.overloadTable===void 0&&H.className!==w.name&&H.argCount===r-2?(S.argCount=r-2,S.className=w.name,j[t]=S):(It(j,t,C),j[t].overloadTable[r-2]=S),de([],m,function(V){var L=dt(C,V,w,u,l);return j[t].overloadTable===void 0?(L.argCount=r-2,j[t]=L):j[t].overloadTable[r-2]=L,[]}),[]})};function Kr(){Object.assign(Bt.prototype,{get(e){return this.allocated[e]},has(e){return this.allocated[e]!==void 0},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){this.allocated[e]=void 0,this.freelist.push(e)}})}function Bt(){
` ,"%p":p=>p.tm_hour>=0&&p.tm_hour<12?"AM":"PM","%S":p=>S(p.tm_sec,2),"%t":()=>" ","%u":p=>p.tm_wday||7,"%U":p=>{var T=p.tm_yday+7-p.tm_wday;return S(Math.floor(T/7),2)},"%V":p=>{var T=Math.floor((p.tm_yday+7-(p.tm_wday+6)%7)/7);if((p.tm_wday+371-p.tm_yday-2)%7<=2&&T++,T){if(T==53){var z=(p.tm_wday+371-p.tm_yday)%7;z!=4&&(z!=3||!He(p.tm_year))&&(T=1)}}else{T=52;var Q=(p.tm_wday+7-p.tm_yday-1)%7;(Q==4||Q==5&&He(p.tm_year%400-1))&&T++}return S(T,2)},"%w":p=>p.tm_wday,"%W":p=>{var T=p.tm_yday+7-(p.tm_wday+6)%7;return S(Math.floor(T/7),2)},"%y":p=>(p.tm_year+1900).toString().substring(2),"%Y":p=>p.tm_year+1900,"%z":p=>{var T=p.tm_gmtoff,z=T>=0;return T=Math.abs(T)/60,T=T/60*100+T%60,(z?"+":"-")+("0000"+T).slice(-4)},"%Z":p=>p.tm_zone,"%%":()=>"%"};l=l.replace(/%%/g," \0 \0 ");for(var f in L)l.includes(f)&&(l=l.replace(new RegExp(f,"g"),L[f](u)));l=l.replace(/ \0 \0 /g,"%");var g=Bn(l,!1);return g.length>t?0:(Yn(g,e),g.length-1)},qn=(e,t,r,a,s)=>Gn(e,t,r,a);Dt=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Sr(),ve=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Ir(),Mr(),Br(),Lt=o.UnboundTypeError=Jr(Error,"UnboundTypeError"),Kr(),tn();var Jn={s:mr,v:vr,b:gr,g:wr,m:br,K: $ r,e:_r,T:Cr,d:yr,ba:Tr,P:Pr,Y:Ar,aa:Xr, $ :Zr,x:Qr,X:rn,y:an,j:on,M:un,D:cn,t:dn,p:fn,L:mn,C:_n,w:Cn,ca:Tn,Z:Pn,fa:Yt,da:An,N:On,W:Dn,_:jn,B:xn,V:Mn,U:Wn,R:Hn,S:Vn,G:da,H:la,n:fa,a:Xn,f:ea,q:na,k:Kn,J:ua,u:sa,I:ca,A:pa,O:bt,l:ta,i:ra,c:Qn,o:Zn,E:oa,ea:aa,r:ha,h:ia,z:ma,F:Ln,Q:qn},F=pr(),ae=o._free=e=>(ae=o._free=F.ia)(e),vt=o._malloc=e=>(vt=o._malloc=F.ja)(e),tr=e=>(tr=F.la)(e);o.__embind_initialize_bindings=()=>(o.__embind_initialize_bindings=F.ma)();var M=(e,t)=>(M=F.na)(e,t),Pe=e=>(Pe=F.oa)(e),I=()=>(I=F.pa)(),U=e=>(U=F.qa)(e),rr=e=>(rr=F.ra)(e),nr=e=>(nr=F.sa)(e),ar=(e,t,r)=>(ar=F.ta)(e,t,r),or=e=>(or=F.ua)(e);o.dynCall_viijii=(e,t,r,a,s,u,l)=>(o.dynCall_viijii=F.va)(e,t,r,a,s,u,l);var ir=o.dynCall_jiiii=(e,t,r,a,s)=>(ir=o.dynCall_jiiii=F.wa)(e,t,r,a,s);o.dynCall_iiiiij=(e,t,r,a,s,u,l)=>(o.dynCall_iiiiij=F.xa)(e,t,r,a,s,u,l),o.dynCall_iiiiijj=(e,t,r,a,s,u,l,d,f)=>(o.dynCall_iiiiijj=F.ya)(e,t,r,a,s,u,l,d,f),o.dynCall_iiiiiijj=(e,t,r,a,s,u,l,d,f,m)=>(o.dynCall_iiiiiijj=F.za)(e,t,r,a,s,u,l,d,f,m);function Xn(e,t){var r=I();try{return W(e)(t)}catch(a){if(U(r),a!==a+0)throw a;M(1,0)}}function Zn(e,t,r,a){var s=I();try{W(e)(t,r,a)}catch(u){if(U(s),u!==u+0)throw u;M(1,0)}}function Qn(e,t,r){var a=I();try{W(e)(t,r)}catch(s){if(U(a),s!==s+0)throw s;M(1,0)}}function Kn(e,t,r,a,s){var u=I();try{return W(e)(t,r,a,s)}catch(l){if(U(u),l!==l+0)throw l;M(1,0)}}function ea(e,t,r){var a=I();try{return W(e)(t,r)}catch(s){if(U(a),s!==s+0)throw s;M(1,0)}}function ta(e){var t=I();try{W(e)()}catch(r){if(U(t),r!==r+0)throw r;M(1,0)}}function ra(e,t){var r=I();try{W(e)(t)}catch(a){if(U(r),a!==a+0)throw a;M(1,0)}}function na(e,t,r,a){var s=I();try{return W(e)(t,r,a)}catch(u){if(U(s),u!==u+0)throw u;M(1,0)}}function aa(e,t,r,a,s,u){var l=I();try{W(e)(t,r,a,s,u)}catch(d){if(U(l),d!==d+0)throw d;M(1,0)}}function oa(e,t,r,a,s){var u=I();try{W(e)(t,r,a,s)}catch(l){if(U(u),l!==l+0)throw l;M(1,0)}}function ia(e,t,r,a,s,u,l,d,f,m,w){var C=I();try{W(e)(t,r,a,s,u,l,d,f,m,w)}catch(S){if(U(C),S!==S+0)throw S;M(1,0)}}function sa(e,t,r,a,s,u,l){var d=I();try{return W(e)(t,r,a,s,u,l)}catch(f){if(U(d),f!==f+0)throw f;M(1,0)}}function ua(e,t,r,a,s,u){var l=I();try{return W(e)(t,r,a,s,u)}catch(d){if(U(l),d!==d+0)throw d;M(1,0)}}function ca(e,t,r,a,s,u,l,d){var f=I();try{return W(e)(t,r,a,s,u,l,d)}catch(m){if(U(f),m!==m+0)throw m;M(1,0)}}function la(e,t,r,a){var s=I();try{return W(e)(t,r,a)}catch(u){if(U(s),u!==u+0)throw u;M(1,0)}}function da(e,t,r,a){var s=I();try{return W(e)(t,r,a)}catch(u){if(U(s),u!==u+0)throw u;M(1,0)}}function fa(e){var t=I();try{return W(e)()}catch(r){if(U(t),r!==r+0)throw r;M(1,0)}}function ha(e,t,r,a,s,u,l,d){var f=I();try{W(e)(t,r,a,s,u,l,d)}catch(m){if(U(f),m!==m+0)throw m;M(1,0)}}function pa(e,t,r,a,s,u,l,d,f,m,w,C){var S=I();try{return W(e)(t,r,a,s,u,l,d,f,m,w,C)}catch(j){if(U(S),j!==j+0)throw j;M(1,