(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))d(p);new MutationObserver(p=>{for(const S of p)if(S.type==="childList")for(const b of S.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&d(b)}).observe(document,{childList:!0,subtree:!0});function f(p){const S={};return p.integrity&&(S.integrity=p.integrity),p.referrerPolicy&&(S.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?S.credentials="include":p.crossOrigin==="anonymous"?S.credentials="omit":S.credentials="same-origin",S}function d(p){if(p.ep)return;p.ep=!0;const S=f(p);fetch(p.href,S)}})();var Vh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yy(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Bg={exports:{}},hd={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var xp;function Xy(){if(xp)return hd;xp=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function f(d,p,S){var b=null;if(S!==void 0&&(b=""+S),p.key!==void 0&&(b=""+p.key),"key"in p){S={};for(var C in p)C!=="key"&&(S[C]=p[C])}else S=p;return p=S.ref,{$$typeof:i,type:d,key:b,ref:p!==void 0?p:null,props:S}}return hd.Fragment=s,hd.jsx=f,hd.jsxs=f,hd}var Tp;function Qy(){return Tp||(Tp=1,Bg.exports=Xy()),Bg.exports}var V=Qy(),Hg={exports:{}},Dt={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Op;function Zy(){if(Op)return Dt;Op=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),b=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),et=Symbol.iterator;function rt(T){return T===null||typeof T!="object"?null:(T=et&&T[et]||T["@@iterator"],typeof T=="function"?T:null)}var X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tt=Object.assign,k={};function dt(T,Q,lt){this.props=T,this.context=Q,this.refs=k,this.updater=lt||X}dt.prototype.isReactComponent={},dt.prototype.setState=function(T,Q){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,Q,"setState")},dt.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function xt(){}xt.prototype=dt.prototype;function ct(T,Q,lt){this.props=T,this.context=Q,this.refs=k,this.updater=lt||X}var pt=ct.prototype=new xt;pt.constructor=ct,tt(pt,dt.prototype),pt.isPureReactComponent=!0;var ut=Array.isArray;function vt(){}var P={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function xe(T,Q,lt){var it=lt.ref;return{$$typeof:i,type:T,key:Q,ref:it!==void 0?it:null,props:lt}}function bl(T,Q){return xe(T.type,Q,T.props)}function cn(T){return typeof T=="object"&&T!==null&&T.$$typeof===i}function Ce(T){var Q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(lt){return Q[lt]})}var fn=/\/+/g;function Me(T,Q){return typeof T=="object"&&T!==null&&T.key!=null?Ce(""+T.key):Q.toString(36)}function en(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(vt,vt):(T.status="pending",T.then(function(Q){T.status==="pending"&&(T.status="fulfilled",T.value=Q)},function(Q){T.status==="pending"&&(T.status="rejected",T.reason=Q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function Y(T,Q,lt,it,mt){var Tt=typeof T;(Tt==="undefined"||Tt==="boolean")&&(T=null);var Qt=!1;if(T===null)Qt=!0;else switch(Tt){case"bigint":case"string":case"number":Qt=!0;break;case"object":switch(T.$$typeof){case i:case s:Qt=!0;break;case M:return Qt=T._init,Y(Qt(T._payload),Q,lt,it,mt)}}if(Qt)return mt=mt(T),Qt=it===""?"."+Me(T,0):it,ut(mt)?(lt="",Qt!=null&&(lt=Qt.replace(fn,"$&/")+"/"),Y(mt,Q,lt,"",function(Il){return Il})):mt!=null&&(cn(mt)&&(mt=bl(mt,lt+(mt.key==null||T&&T.key===mt.key?"":(""+mt.key).replace(fn,"$&/")+"/")+Qt)),Q.push(mt)),1;Qt=0;var he=it===""?".":it+":";if(ut(T))for(var Jt=0;Jt>>1,Ht=Y[Nt];if(0>>1;Ntp(lt,st))itp(mt,lt)?(Y[Nt]=mt,Y[it]=st,Nt=it):(Y[Nt]=lt,Y[Q]=st,Nt=Q);else if(itp(mt,st))Y[Nt]=mt,Y[it]=st,Nt=it;else break t}}return nt}function p(Y,nt){var st=Y.sortIndex-nt.sortIndex;return st!==0?st:Y.id-nt.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;i.unstable_now=function(){return S.now()}}else{var b=Date,C=b.now();i.unstable_now=function(){return b.now()-C}}var R=[],A=[],M=1,B=null,et=3,rt=!1,X=!1,tt=!1,k=!1,dt=typeof setTimeout=="function"?setTimeout:null,xt=typeof clearTimeout=="function"?clearTimeout:null,ct=typeof setImmediate<"u"?setImmediate:null;function pt(Y){for(var nt=f(A);nt!==null;){if(nt.callback===null)d(A);else if(nt.startTime<=Y)d(A),nt.sortIndex=nt.expirationTime,s(R,nt);else break;nt=f(A)}}function ut(Y){if(tt=!1,pt(Y),!X)if(f(R)!==null)X=!0,vt||(vt=!0,Ce());else{var nt=f(A);nt!==null&&en(ut,nt.startTime-Y)}}var vt=!1,P=-1,ee=5,xe=-1;function bl(){return k?!0:!(i.unstable_now()-xeY&&bl());){var Nt=B.callback;if(typeof Nt=="function"){B.callback=null,et=B.priorityLevel;var Ht=Nt(B.expirationTime<=Y);if(Y=i.unstable_now(),typeof Ht=="function"){B.callback=Ht,pt(Y),nt=!0;break e}B===f(R)&&d(R),pt(Y)}else d(R);B=f(R)}if(B!==null)nt=!0;else{var T=f(A);T!==null&&en(ut,T.startTime-Y),nt=!1}}break t}finally{B=null,et=st,rt=!1}nt=void 0}}finally{nt?Ce():vt=!1}}}var Ce;if(typeof ct=="function")Ce=function(){ct(cn)};else if(typeof MessageChannel<"u"){var fn=new MessageChannel,Me=fn.port2;fn.port1.onmessage=cn,Ce=function(){Me.postMessage(null)}}else Ce=function(){dt(cn,0)};function en(Y,nt){P=dt(function(){Y(i.unstable_now())},nt)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(Y){Y.callback=null},i.unstable_forceFrameRate=function(Y){0>Y||125Nt?(Y.sortIndex=st,s(A,Y),f(R)===null&&Y===f(A)&&(tt?(xt(P),P=-1):tt=!0,en(ut,st-Nt))):(Y.sortIndex=Ht,s(R,Y),X||rt||(X=!0,vt||(vt=!0,Ce()))),Y},i.unstable_shouldYield=bl,i.unstable_wrapCallback=function(Y){var nt=et;return function(){var st=et;et=nt;try{return Y.apply(this,arguments)}finally{et=st}}}})(Gg)),Gg}var Cp;function Vy(){return Cp||(Cp=1,jg.exports=Ky()),jg.exports}var Yg={exports:{}},Nn={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var zp;function Jy(){if(zp)return Nn;zp=1;var i=dp();function s(R){var A="https://react.dev/errors/"+R;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),Yg.exports=Jy(),Yg.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Np;function Wy(){if(Np)return gd;Np=1;var i=Vy(),s=dp(),f=Fy();function d(t){var e="https://react.dev/errors/"+t;if(1Ht||(t.current=Nt[Ht],Nt[Ht]=null,Ht--)}function lt(t,e){Ht++,Nt[Ht]=t.current,t.current=e}var it=T(null),mt=T(null),Tt=T(null),Qt=T(null);function he(t,e){switch(lt(Tt,e),lt(mt,t),lt(it,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?$r(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=$r(e),t=zn(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(it),lt(it,t)}function Jt(){Q(it),Q(mt),Q(Tt)}function Il(t){t.memoizedState!==null&<(Qt,t);var e=it.current,n=zn(e,t.type);e!==n&&(lt(mt,t),lt(it,n))}function nl(t){mt.current===t&&(Q(it),Q(mt)),Qt.current===t&&(Q(Qt),Ni._currentValue=st)}var sn,is;function Fe(t){if(sn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);sn=e&&e[1]||"",is=-1)":-1r||x[u]!==L[r]){var K=` `+x[u].replace(" at new "," at ");return t.displayName&&K.includes("")&&(K=K.replace("",t.displayName)),K}while(1<=u&&0<=r);break}}}finally{aa=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Fe(n):""}function kl(t,e){switch(t.tag){case 26:case 27:case 5:return Fe(t.type);case 16:return Fe("Lazy");case 13:return t.child!==e&&e!==null?Fe("Suspense Fallback"):Fe("Suspense");case 19:return Fe("SuspenseList");case 0:case 15:return rs(t.type,!1);case 11:return rs(t.type.render,!1);case 1:return rs(t.type,!0);case 31:return Fe("Activity");default:return""}}function cs(t){try{var e="",n=null;do e+=kl(t,n),n=t,t=t.return;while(t);return e}catch(u){return` Error generating stack: `+u.message+` `+u.stack}}var fs=Object.prototype.hasOwnProperty,ia=i.unstable_scheduleCallback,Un=i.unstable_cancelCallback,Bi=i.unstable_shouldYield,cc=i.unstable_requestPaint,Ln=i.unstable_now,Hi=i.unstable_getCurrentPriorityLevel,wd=i.unstable_ImmediatePriority,qa=i.unstable_UserBlockingPriority,Pl=i.unstable_NormalPriority,ss=i.unstable_LowPriority,fc=i.unstable_IdlePriority,os=i.log,ds=i.unstable_setDisableYieldValue,ra=null,on=null;function jl(t){if(typeof os=="function"&&ds(t),on&&typeof on.setStrictMode=="function")try{on.setStrictMode(ra,t)}catch{}}var dn=Math.clz32?Math.clz32:R1,hs=Math.log,w1=Math.LN2;function R1(t){return t>>>=0,t===0?32:31-(hs(t)/w1|0)|0}var sc=256,qi=262144,ji=4194304;function ca(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function oc(t,e,n){var u=t.pendingLanes;if(u===0)return 0;var r=0,o=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var y=u&134217727;return y!==0?(u=y&~o,u!==0?r=ca(u):(g&=y,g!==0?r=ca(g):n||(n=y&~t,n!==0&&(r=ca(n))))):(y=u&~o,y!==0?r=ca(y):g!==0?r=ca(g):n||(n=u&~t,n!==0&&(r=ca(n)))),r===0?0:e!==0&&e!==r&&(e&o)===0&&(o=r&-r,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:r}function Gi(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function C1(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gs(){var t=ji;return ji<<=1,(ji&62914560)===0&&(ji=4194304),t}function ps(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Yi(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function z1(t,e,n,u,r,o){var g=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var y=t.entanglements,x=t.expirationTimes,L=t.hiddenUpdates;for(n=g&~n;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var L1=/[\n"\\]/g;function Hn(t){return t.replace(L1,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vc(t,e,n,u,r,o,g,y){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),e!=null?g==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Bn(e)):t.value!==""+Bn(e)&&(t.value=""+Bn(e)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),e!=null?Ss(t,g,Bn(e)):n!=null?Ss(t,g,Bn(n)):u!=null&&t.removeAttribute("value"),r==null&&o!=null&&(t.defaultChecked=!!o),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+Bn(y):t.removeAttribute("name")}function Sc(t,e,n,u,r,o,g,y){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null)){yc(t);return}n=n!=null?""+Bn(n):"",e=e!=null?""+Bn(e):n,y||e===t.value||(t.value=e),t.defaultValue=e}u=u??r,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=y?t.checked:!!u,t.defaultChecked=!!u,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g),yc(t)}function Ss(t,e,n){e==="number"&&Vi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function sa(t,e,n,u){if(t=t.options,e){e={};for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xs=!1;if(lu)try{var Fi={};Object.defineProperty(Fi,"passive",{get:function(){xs=!0}}),window.addEventListener("test",Fi,Fi),window.removeEventListener("test",Fi,Fi)}catch{xs=!1}var wu=null,Ts=null,ae=null;function se(){if(ae)return ae;var t,e=Ts,n=e.length,u,r="value"in wu?wu.value:wu.textContent,o=r.length;for(t=0;t=ga),Pd=" ",Dc=!1;function Nc(t,e){switch(t){case"keyup":return kd.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function t0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var pa=!1;function Gn(t,e){switch(t){case"compositionend":return t0(e);case"keypress":return e.which!==32?null:(Dc=!0,Pd);case"textInput":return t=e.data,t===Pd&&Dc?null:t;default:return null}}function zs(t,e){if(pa)return t==="compositionend"||!zc&&Nc(t,e)?(t=se(),ae=Ts=wu=null,pa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=u}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=n0(n)}}function u0(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?u0(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function a0(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Vi(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Vi(t.document)}return e}function Bs(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Va=lu&&"documentMode"in document&&11>=document.documentMode,z=null,Z=null,q=null,ft=!1;function Ot(t,e,n){var u=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ft||z==null||z!==Vi(u)||(u=z,"selectionStart"in u&&Bs(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),q&&Ka(q,u)||(q=u,u=Vr(Z,"onSelect"),0>=g,r-=g,Xl=1<<32-dn(e)+r|n<Mt?(Xt=ht,ht=null):Xt=ht.sibling;var $t=H(D,ht,U[Mt],J);if($t===null){ht===null&&(ht=Xt);break}t&&ht&&$t.alternate===null&&e(D,ht),w=o($t,w,Mt),Wt===null?yt=$t:Wt.sibling=$t,Wt=$t,ht=Xt}if(Mt===U.length)return n(D,ht),Zt&&Qn(D,Mt),yt;if(ht===null){for(;MtMt?(Xt=ht,ht=null):Xt=ht.sibling;var na=H(D,ht,$t.value,J);if(na===null){ht===null&&(ht=Xt);break}t&&ht&&na.alternate===null&&e(D,ht),w=o(na,w,Mt),Wt===null?yt=na:Wt.sibling=na,Wt=na,ht=Xt}if($t.done)return n(D,ht),Zt&&Qn(D,Mt),yt;if(ht===null){for(;!$t.done;Mt++,$t=U.next())$t=F(D,$t.value,J),$t!==null&&(w=o($t,w,Mt),Wt===null?yt=$t:Wt.sibling=$t,Wt=$t);return Zt&&Qn(D,Mt),yt}for(ht=u(ht);!$t.done;Mt++,$t=U.next())$t=G(ht,D,Mt,$t.value,J),$t!==null&&(t&&$t.alternate!==null&&ht.delete($t.key===null?Mt:$t.key),w=o($t,w,Mt),Wt===null?yt=$t:Wt.sibling=$t,Wt=$t);return t&&ht.forEach(function(Lg){return e(D,Lg)}),Zt&&Qn(D,Mt),yt}function ce(D,w,U,J){if(typeof U=="object"&&U!==null&&U.type===tt&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case rt:t:{for(var yt=U.key;w!==null;){if(w.key===yt){if(yt=U.type,yt===tt){if(w.tag===7){n(D,w.sibling),J=r(w,U.props.children),J.return=D,D=J;break t}}else if(w.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===ee&&Ol(yt)===w.type){n(D,w.sibling),J=r(w,U.props),wl(J,U),J.return=D,D=J;break t}n(D,w);break}else e(D,w);w=w.sibling}U.type===tt?(J=Sa(U.props.children,D.mode,J,U.key),J.return=D,D=J):(J=Xc(U.type,U.key,U.props,null,D.mode,J),wl(J,U),J.return=D,D=J)}return g(D);case X:t:{for(yt=U.key;w!==null;){if(w.key===yt)if(w.tag===4&&w.stateNode.containerInfo===U.containerInfo&&w.stateNode.implementation===U.implementation){n(D,w.sibling),J=r(w,U.children||[]),J.return=D,D=J;break t}else{n(D,w);break}else e(D,w);w=w.sibling}J=ur(U,D.mode,J),J.return=D,D=J}return g(D);case ee:return U=Ol(U),ce(D,w,U,J)}if(en(U))return ot(D,w,U,J);if(Ce(U)){if(yt=Ce(U),typeof yt!="function")throw Error(d(150));return U=yt.call(U),_t(D,w,U,J)}if(typeof U.then=="function")return ce(D,w,ii(U),J);if(U.$$typeof===ct)return ce(D,w,sl(D,U),J);hn(D,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,w!==null&&w.tag===6?(n(D,w.sibling),J=r(w,U),J.return=D,D=J):(n(D,w),J=$a(U,D.mode,J),J.return=D,D=J),g(D)):n(D,w)}return function(D,w,U,J){try{Zn=0;var yt=ce(D,w,U,J);return ai=null,yt}catch(ht){if(ht===ui||ht===cr)throw ht;var Wt=$e(29,ht,null,D.mode);return Wt.lanes=J,Wt.return=D,Wt}finally{}}}var Bu=m0(!0),Qs=m0(!1),dl=!1;function Zl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Hu(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Rl(t,e,n){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(It&2)!==0){var r=u.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),u.pending=e,e=nr(t),Hs(t,null,n),e}return va(t,u,e,n),nr(t)}function fr(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var u=e.lanes;u&=t.pendingLanes,n|=u,e.lanes=n,Rd(t,n)}}function $c(t,e){var n=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,n===u)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=g:o=o.next=g,n=n.next}while(n!==null);o===null?r=o=e:o=o.next=e}else r=o=e;n={baseState:u.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:u.shared,callbacks:u.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Ge=!1;function Ta(){if(Ge){var t=li;if(t!==null)throw t}}function ri(t,e,n,u){Ge=!1;var r=t.updateQueue;dl=!1;var o=r.firstBaseUpdate,g=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var x=y,L=x.next;x.next=null,g===null?o=L:g.next=L,g=x;var K=t.alternate;K!==null&&(K=K.updateQueue,y=K.lastBaseUpdate,y!==g&&(y===null?K.firstBaseUpdate=L:y.next=L,K.lastBaseUpdate=x))}if(o!==null){var F=r.baseState;g=0,K=L=x=null,y=o;do{var H=y.lane&-536870913,G=H!==y.lane;if(G?(Yt&H)===H:(u&H)===H){H!==0&&H===ni&&(Ge=!0),K!==null&&(K=K.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var ot=t,_t=y;H=e;var ce=n;switch(_t.tag){case 1:if(ot=_t.payload,typeof ot=="function"){F=ot.call(ce,F,H);break t}F=ot;break t;case 3:ot.flags=ot.flags&-65537|128;case 0:if(ot=_t.payload,H=typeof ot=="function"?ot.call(ce,F,H):ot,H==null)break t;F=B({},F,H);break t;case 2:dl=!0}}H=y.callback,H!==null&&(t.flags|=64,G&&(t.flags|=8192),G=r.callbacks,G===null?r.callbacks=[H]:G.push(H))}else G={lane:H,tag:y.tag,payload:y.payload,callback:y.callback,next:null},K===null?(L=K=G,x=F):K=K.next=G,g|=H;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;G=y,y=G.next,G.next=null,r.lastBaseUpdate=G,r.shared.pending=null}}while(!0);K===null&&(x=F),r.baseState=x,r.firstBaseUpdate=L,r.lastBaseUpdate=K,o===null&&(r.shared.lanes=0),Ku|=g,t.lanes=g,t.memoizedState=F}}function Cl(t,e){if(typeof t!="function")throw Error(d(191,t));t.call(e)}function Ic(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;to?o:8;var g=Y.T,y={};Y.T=y,mi(t,!1,e,n);try{var x=r(),L=Y.S;if(L!==null&&L(y,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var K=$1(x,u);pi(t,e,K,In(t))}else pi(t,e,u,In(t))}catch(F){pi(t,e,{then:function(){},status:"rejected",reason:F},In())}finally{nt.p=o,g!==null&&y.types!==null&&(g.types=y.types),Y.T=g}}function ff(){}function Gu(t,e,n,u){if(t.tag!==5)throw Error(d(476));var r=io(t).queue;w0(t,r,e,st,n===null?ff:function(){return ro(t),n(u)})}function io(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:st,baseState:st,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zl,lastRenderedState:st},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zl,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function ro(t){var e=io(t);e.next===null&&(e=t.alternate.memoizedState),pi(t,e.next.queue,{},In())}function co(){return Ie(Ni)}function fo(){return De().memoizedState}function wa(){return De().memoizedState}function vr(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=In();t=Hu(n);var u=Rl(e,t,n);u!==null&&(Rn(u,e,n),fr(u,e,n)),e={cache:Tl()},t.payload=e;return}e=e.return}}function tg(t,e,n){var u=In();n={lane:u,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Sr(t)?_r(e,n):(n=Yc(t,e,n,u),n!==null&&(Rn(n,t,u),sf(n,e,u)))}function so(t,e,n){var u=In();pi(t,e,n,u)}function pi(t,e,n,u){var r={lane:u,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sr(t))_r(e,r);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var g=e.lastRenderedState,y=o(g,n);if(r.hasEagerState=!0,r.eagerState=y,_e(y,g))return va(t,e,r,0),de===null&&xl(),!1}catch{}finally{}if(n=Yc(t,e,r,u),n!==null)return Rn(n,t,u),sf(n,e,u),!0}return!1}function mi(t,e,n,u){if(u={lane:2,revertLane:kn(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Sr(t)){if(e)throw Error(d(479))}else e=Yc(t,n,u,2),e!==null&&Rn(e,t,2)}function Sr(t){var e=t.alternate;return t===Ct||e!==null&&e===Ct}function _r(t,e){ci=dr=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function sf(t,e,n){if((n&4194048)!==0){var u=e.lanes;u&=t.pendingLanes,n|=u,e.lanes=n,Rd(t,n)}}var Yu={readContext:Ie,use:di,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useLayoutEffect:ve,useInsertionEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useSyncExternalStore:ve,useId:ve,useHostTransitionStatus:ve,useFormState:ve,useActionState:ve,useOptimistic:ve,useMemoCache:ve,useCacheRefresh:ve};Yu.useEffectEvent=ve;var R0={readContext:Ie,use:di,useCallback:function(t,e){return nn().memoizedState=[t,e===void 0?null:e],t},useContext:Ie,useEffect:no,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Dl(4194308,4,uo.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Dl(4194308,4,t,e)},useInsertionEffect:function(t,e){Dl(4,2,t,e)},useMemo:function(t,e){var n=nn();e=e===void 0?null:e;var u=t();if(Oa){jl(!0);try{t()}finally{jl(!1)}}return n.memoizedState=[u,e],u},useReducer:function(t,e,n){var u=nn();if(n!==void 0){var r=n(e);if(Oa){jl(!0);try{n(e)}finally{jl(!1)}}}else r=e;return u.memoizedState=u.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},u.queue=t,t=t.dispatch=tg.bind(null,Ct,t),[u.memoizedState,t]},useRef:function(t){var e=nn();return t={current:t},e.memoizedState=t},useState:function(t){t=gi(t);var e=t.queue,n=so.bind(null,Ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:cf,useDeferredValue:function(t,e){var n=nn();return pl(n,t,e)},useTransition:function(){var t=gi(!1);return t=w0.bind(null,Ct,t.queue,!0,!1),nn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var u=Ct,r=nn();if(Zt){if(n===void 0)throw Error(d(407));n=n()}else{if(n=e(),de===null)throw Error(d(349));(Yt&127)!==0||$s(u,e,n)}r.memoizedState=n;var o={value:n,getSnapshot:e};return r.queue=o,no(S0.bind(null,u,o,t),[t]),u.flags|=2048,Fn(9,{destroy:void 0},v0.bind(null,u,o,n,e),null),n},useId:function(){var t=nn(),e=de.identifierPrefix;if(Zt){var n=cl,u=Xl;n=(u&~(1<<32-dn(u)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Pc++,0<\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof u.is=="string"?g.createElement("select",{is:u.is}):g.createElement("select"),u.multiple?o.multiple=!0:u.size&&(o.size=u.size);break;default:o=typeof u.is=="string"?g.createElement(r,{is:u.is}):g.createElement(r)}}o[We]=e,o[vn]=u;t:for(g=e.child;g!==null;){if(g.tag===5||g.tag===6)o.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break t;for(;g.sibling===null;){if(g.return===null||g.return===e)break t;g=g.return}g.sibling.return=g.return,g=g.sibling}e.stateNode=o;t:switch(tn(o,r,u),r){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break t;case"img":u=!0;break t;default:u=!1}u&&hu(e)}}return oe(e),bo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==u&&hu(e);else{if(typeof u!="string"&&e.stateNode===null)throw Error(d(166));if(t=Tt.current,ba(e)){if(t=e.stateNode,n=e.memoizedProps,u=null,r=Le,r!==null)switch(r.tag){case 27:case 5:u=r.memoizedProps}t[We]=e,t=!!(t.nodeValue===n||u!==null&&u.suppressHydrationWarning===!0||yh(t.nodeValue,n)),t||Nu(e,!0)}else t=Wr(t).createTextNode(u),t[We]=e,e.stateNode=t}return oe(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(u=ba(e),n!==null){if(t===null){if(!u)throw Error(d(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(d(557));t[We]=e}else v(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;oe(e),t=!1}else n=Mu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(En(e),e):(En(e),null);if((e.flags&128)!==0)throw Error(d(558))}return oe(e),null;case 13:if(u=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=ba(e),u!==null&&u.dehydrated!==null){if(t===null){if(!r)throw Error(d(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(d(317));r[We]=e}else v(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;oe(e),r=!1}else r=Mu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(En(e),e):(En(e),null)}return En(e),(e.flags&128)!==0?(e.lanes=n,e):(n=u!==null,t=t!==null&&t.memoizedState!==null,n&&(u=e.child,r=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(r=u.alternate.memoizedState.cachePool.pool),o=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(o=u.memoizedState.cachePool.pool),o!==r&&(u.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),zr(e,e.updateQueue),oe(e),null);case 4:return Jt(),t===null&&$o(e.stateNode.containerInfo),oe(e),null;case 10:return fu(e.type),oe(e),null;case 19:if(Q(ze),u=e.memoizedState,u===null)return oe(e),null;if(r=(e.flags&128)!==0,o=u.rendering,o===null)if(r)Dr(u,!1);else{if(Ee!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(o=kc(t),o!==null){for(e.flags|=128,Dr(u,!1),t=o.updateQueue,e.updateQueue=t,zr(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)f0(n,t),n=n.sibling;return lt(ze,ze.current&1|2),Zt&&Qn(e,u.treeForkCount),e.child}t=t.sibling}u.tail!==null&&Ln()>za&&(e.flags|=128,r=!0,Dr(u,!1),e.lanes=4194304)}else{if(!r)if(t=kc(o),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,zr(e,t),Dr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!o.alternate&&!Zt)return oe(e),null}else 2*Ln()-u.renderingStartTime>za&&n!==536870912&&(e.flags|=128,r=!0,Dr(u,!1),e.lanes=4194304);u.isBackwards?(o.sibling=e.child,e.child=o):(t=u.last,t!==null?t.sibling=o:e.child=o,u.last=o)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Ln(),t.sibling=null,n=ze.current,lt(ze,r?n&1|2:n&1),Zt&&Qn(e,u.treeForkCount),t):(oe(e),null);case 22:case 23:return En(e),sr(),u=e.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(e.flags|=8192):u&&(e.flags|=8192),u?(n&536870912)!==0&&(e.flags&128)===0&&(oe(e),e.subtreeFlags&6&&(e.flags|=8192)):oe(e),n=e.updateQueue,n!==null&&zr(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),u=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(u=e.memoizedState.cachePool.pool),u!==n&&(e.flags|=2048),t!==null&&Q(xa),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),fu(Be),oe(e),null;case 25:return null;case 30:return null}throw Error(d(156,e.tag))}function Nr(t,e){switch(_a(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return fu(Be),Jt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return nl(e),null;case 31:if(e.memoizedState!==null){if(En(e),e.alternate===null)throw Error(d(340));v()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(En(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(d(340));v()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(ze),null;case 4:return Jt(),null;case 10:return fu(e.type),null;case 22:case 23:return En(e),sr(),t!==null&&Q(xa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return fu(Be),null;case 25:return null;default:return null}}function _f(t,e){switch(_a(e),e.tag){case 3:fu(Be),Jt();break;case 26:case 27:case 5:nl(e);break;case 4:Jt();break;case 31:e.memoizedState!==null&&En(e);break;case 13:En(e);break;case 19:Q(ze);break;case 10:fu(e.type);break;case 22:case 23:En(e),sr(),t!==null&&Q(xa);break;case 24:fu(Be)}}function vi(t,e){try{var n=e.updateQueue,u=n!==null?n.lastEffect:null;if(u!==null){var r=u.next;n=r;do{if((n.tag&t)===t){u=void 0;var o=n.create,g=n.inst;u=o(),g.destroy=u}n=n.next}while(n!==r)}}catch(y){ue(e,e.return,y)}}function gu(t,e,n){try{var u=e.updateQueue,r=u!==null?u.lastEffect:null;if(r!==null){var o=r.next;u=o;do{if((u.tag&t)===t){var g=u.inst,y=g.destroy;if(y!==void 0){g.destroy=void 0,r=e;var x=n,L=y;try{L()}catch(K){ue(r,x,K)}}}u=u.next}while(u!==o)}}catch(K){ue(e,e.return,K)}}function Mr(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Ic(e,n)}catch(u){ue(t,t.return,u)}}}function Ao(t,e,n){n.props=pn(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(u){ue(t,e,u)}}function xn(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var u=t.stateNode;break;case 30:u=t.stateNode;break;default:u=t.stateNode}typeof n=="function"?t.refCleanup=n(u):n.current=u}}catch(r){ue(t,e,r)}}function un(t,e){var n=t.ref,u=t.refCleanup;if(n!==null)if(typeof u=="function")try{u()}catch(r){ue(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){ue(t,e,r)}else n.current=null}function H0(t){var e=t.type,n=t.memoizedProps,u=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&u.focus();break t;case"img":n.src?u.src=n.src:n.srcSet&&(u.srcset=n.srcSet)}}catch(r){ue(t,t.return,r)}}function bf(t,e,n){try{var u=t.stateNode;pg(u,t.type,n,e),u[vn]=e}catch(r){ue(t,t.return,r)}}function q0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&bt(t.type)||t.tag===4}function xo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||q0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&bt(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function To(t,e,n){var u=t.tag;if(u===5||u===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=nu));else if(u!==4&&(u===27&&bt(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(To(t,e,n),t=t.sibling;t!==null;)To(t,e,n),t=t.sibling}function Ef(t,e,n){var u=t.tag;if(u===5||u===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(u!==4&&(u===27&&bt(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Ef(t,e,n),t=t.sibling;t!==null;)Ef(t,e,n),t=t.sibling}function j0(t){var e=t.stateNode,n=t.memoizedProps;try{for(var u=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);tn(e,u,n),e[We]=t,e[vn]=n}catch(o){ue(t,t.return,o)}}var pu=!1,He=!1,Oo=!1,G0=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function lg(t,e){if(t=t.containerInfo,Fr=Qf,t=a0(t),Bs(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var u=n.getSelection&&n.getSelection();if(u&&u.rangeCount!==0){n=u.anchorNode;var r=u.anchorOffset,o=u.focusNode;u=u.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var g=0,y=-1,x=-1,L=0,K=0,F=t,H=null;e:for(;;){for(var G;F!==n||r!==0&&F.nodeType!==3||(y=g+r),F!==o||u!==0&&F.nodeType!==3||(x=g+u),F.nodeType===3&&(g+=F.nodeValue.length),(G=F.firstChild)!==null;)H=F,F=G;for(;;){if(F===t)break e;if(H===n&&++L===r&&(y=g),H===o&&++K===u&&(x=g),(G=F.nextSibling)!==null)break;F=H,H=F.parentNode}F=G}n=y===-1||x===-1?null:{start:y,end:x}}else n=null}n=n||{start:0,end:0}}else n=null;for(td={focusedElem:t,selectionRange:n},Qf=!1,Ze=e;Ze!==null;)if(e=Ze,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ze=t;else for(;Ze!==null;){switch(e=Ze,o=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n title"))),tn(o,u,n),o[We]=t,Qe(o),u=o;break t;case"link":var g=zh("link","href",r).get(u+(n.href||""));if(g){for(var y=0;yce&&(g=ce,ce=_t,_t=g);var D=l0(y,_t),w=l0(y,ce);if(D&&w&&(G.rangeCount!==1||G.anchorNode!==D.node||G.anchorOffset!==D.offset||G.focusNode!==w.node||G.focusOffset!==w.offset)){var U=F.createRange();U.setStart(D.node,D.offset),G.removeAllRanges(),_t>ce?(G.addRange(U),G.extend(w.node,w.offset)):(U.setEnd(w.node,w.offset),G.addRange(U))}}}}for(F=[],G=y;G=G.parentNode;)G.nodeType===1&&F.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;yn?32:n,Y.T=null,n=Bo,Bo=null;var o=Ju,g=vu;if(Ye=0,Ei=Ju=null,vu=0,(It&6)!==0)throw Error(d(331));var y=It;if(It|=4,F0(o.current),K0(o,o.current,g,n),It=y,Zr(0,!1),on&&typeof on.onPostCommitFiberRoot=="function")try{on.onPostCommitFiberRoot(ra,o)}catch{}return!0}finally{nt.p=r,Y.T=u,Xo(t,e)}}function Zo(t,e,n){e=Xn(n,e),e=po(t.stateNode,e,2),t=Rl(t,e,2),t!==null&&(Yi(t,2),Wl(t))}function ue(t,e,n){if(t.tag===3)Zo(t,t,n);else for(;e!==null;){if(e.tag===3){Zo(e,t,n);break}else if(e.tag===1){var u=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Vu===null||!Vu.has(u))){t=Xn(n,t),n=Vl(2),u=Rl(e,n,2),u!==null&&(hf(n,u,e,t),Yi(u,2),Wl(u));break}}e=e.return}}function Ko(t,e,n){var u=t.pingCache;if(u===null){u=t.pingCache=new ig;var r=new Set;u.set(e,r)}else r=u.get(e),r===void 0&&(r=new Set,u.set(e,r));r.has(n)||(No=!0,r.add(n),t=sg.bind(null,t,e,n),e.then(t,t))}function sg(t,e,n){var u=t.pingCache;u!==null&&u.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,de===t&&(Yt&n)===n&&(Ee===4||Ee===3&&(Yt&62914560)===Yt&&300>Ln()-qr?(It&2)===0&&Ai(t,0):Mo|=n,bi===Yt&&(bi=0)),Wl(t)}function Qr(t,e){e===0&&(e=gs()),t=Yl(t,e),t!==null&&(Yi(t,e),Wl(t))}function zf(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Qr(t,n)}function og(t,e){var n=0;switch(t.tag){case 31:case 13:var u=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error(d(314))}u!==null&&u.delete(e),Qr(t,n)}function dg(t,e){return ia(t,e)}var Ti=null,Da=null,Vo=!1,Df=!1,Jo=!1,Fu=0;function Wl(t){t!==Da&&t.next===null&&(Da===null?Ti=Da=t:Da=Da.next=t),Df=!0,Vo||(Vo=!0,gg())}function Zr(t,e){if(!Jo&&Df){Jo=!0;do for(var n=!1,u=Ti;u!==null;){if(t!==0){var r=u.pendingLanes;if(r===0)var o=0;else{var g=u.suspendedLanes,y=u.pingedLanes;o=(1<<31-dn(42|t)+1)-1,o&=r&~(g&~y),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,oh(u,o))}else o=Yt,o=oc(u,u===de?o:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(o&3)===0||Gi(u,o)||(n=!0,oh(u,o));u=u.next}while(n);Jo=!1}}function hg(){ch()}function ch(){Df=Vo=!1;var t=0;Fu!==0&&mg()&&(t=Fu);for(var e=Ln(),n=null,u=Ti;u!==null;){var r=u.next,o=fh(u,e);o===0?(u.next=null,n===null?Ti=r:n.next=r,r===null&&(Da=n)):(n=u,(t!==0||(o&3)!==0)&&(Df=!0)),u=r}Ye!==0&&Ye!==5||Zr(t),Fu!==0&&(Fu=0)}function fh(t,e){for(var n=t.suspendedLanes,u=t.pingedLanes,r=t.expirationTimes,o=t.pendingLanes&-62914561;0y)break;var K=x.transferSize,F=x.initiatorType;K&&Po(F)&&(x=x.responseEnd,g+=K*(x"u"?null:document;function Oh(t,e,n){var u=Iu;if(u&&typeof e=="string"&&e){var r=Hn(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Th.has(r)||(Th.add(r),t={rel:t,crossOrigin:n,href:e},u.querySelector(r)===null&&(e=u.createElement("link"),tn(e,"link",t),Qe(e),u.head.appendChild(e)))}}function ud(t){bu.D(t),Oh("dns-prefetch",t,null)}function Eg(t,e){bu.C(t,e),Oh("preconnect",t,e)}function Ag(t,e,n){bu.L(t,e,n);var u=Iu;if(u&&t&&e){var r='link[rel="preload"][as="'+Hn(e)+'"]';e==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Hn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Hn(n.imageSizes)+'"]')):r+='[href="'+Hn(t)+'"]';var o=r;switch(e){case"style":o=wi(t);break;case"script":o=Ci(t)}yl.has(o)||(t=B({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),yl.set(o,t),u.querySelector(r)!==null||e==="style"&&u.querySelector(Ri(o))||e==="script"&&u.querySelector(zi(o))||(e=u.createElement("link"),tn(e,"link",t),Qe(e),u.head.appendChild(e)))}}function xg(t,e){bu.m(t,e);var n=Iu;if(n&&t){var u=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+Hn(u)+'"][href="'+Hn(t)+'"]',o=r;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Ci(t)}if(!yl.has(o)&&(t=B({rel:"modulepreload",href:t},e),yl.set(o,t),n.querySelector(r)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(zi(o)))return}u=n.createElement("link"),tn(u,"link",t),Qe(u),n.head.appendChild(u)}}}function Ke(t,e,n){bu.S(t,e,n);var u=Iu;if(u&&t){var r=eu(u).hoistableStyles,o=wi(t);e=e||"default";var g=r.get(o);if(!g){var y={loading:0,preload:null};if(g=u.querySelector(Ri(o)))y.loading=5;else{t=B({rel:"stylesheet",href:t,"data-precedence":e},n),(n=yl.get(o))&&ad(t,n);var x=g=u.createElement("link");Qe(x),tn(x,"link",t),x._p=new Promise(function(L,K){x.onload=L,x.onerror=K}),x.addEventListener("load",function(){y.loading|=1}),x.addEventListener("error",function(){y.loading|=2}),y.loading|=4,qf(g,e,u)}g={type:"stylesheet",instance:g,count:1,state:y},r.set(o,g)}}}function Dn(t,e){bu.X(t,e);var n=Iu;if(n&&t){var u=eu(n).hoistableScripts,r=Ci(t),o=u.get(r);o||(o=n.querySelector(zi(r)),o||(t=B({src:t,async:!0},e),(e=yl.get(r))&&jf(t,e),o=n.createElement("script"),Qe(o),tn(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},u.set(r,o))}}function Tg(t,e){bu.M(t,e);var n=Iu;if(n&&t){var u=eu(n).hoistableScripts,r=Ci(t),o=u.get(r);o||(o=n.querySelector(zi(r)),o||(t=B({src:t,async:!0,type:"module"},e),(e=yl.get(r))&&jf(t,e),o=n.createElement("script"),Qe(o),tn(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},u.set(r,o))}}function wh(t,e,n,u){var r=(r=Tt.current)?Hf(r):null;if(!r)throw Error(d(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=wi(n.href),n=eu(r).hoistableStyles,u=n.get(e),u||(u={type:"style",instance:null,count:0,state:null},n.set(e,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=wi(n.href);var o=eu(r).hoistableStyles,g=o.get(t);if(g||(r=r.ownerDocument||r,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,g),(o=r.querySelector(Ri(t)))&&!o._p&&(g.instance=o,g.state.loading=5),yl.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},yl.set(t,n),o||Og(r,t,n,g.state))),e&&u===null)throw Error(d(528,""));return g}if(e&&u!==null)throw Error(d(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ci(n),n=eu(r).hoistableScripts,u=n.get(e),u||(u={type:"script",instance:null,count:0,state:null},n.set(e,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(d(444,t))}}function wi(t){return'href="'+Hn(t)+'"'}function Ri(t){return'link[rel="stylesheet"]['+t+"]"}function Rh(t){return B({},t,{"data-precedence":t.precedence,precedence:null})}function Og(t,e,n,u){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?u.loading=1:(e=t.createElement("link"),u.preload=e,e.addEventListener("load",function(){return u.loading|=1}),e.addEventListener("error",function(){return u.loading|=2}),tn(e,"link",n),Qe(e),t.head.appendChild(e))}function Ci(t){return'[src="'+Hn(t)+'"]'}function zi(t){return"script[async]"+t}function Ch(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var u=t.querySelector('style[data-href~="'+Hn(n.href)+'"]');if(u)return e.instance=u,Qe(u),u;var r=B({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),Qe(u),tn(u,"style",r),qf(u,n.precedence,t),e.instance=u;case"stylesheet":r=wi(n.href);var o=t.querySelector(Ri(r));if(o)return e.state.loading|=4,e.instance=o,Qe(o),o;u=Rh(n),(r=yl.get(r))&&ad(u,r),o=(t.ownerDocument||t).createElement("link"),Qe(o);var g=o;return g._p=new Promise(function(y,x){g.onload=y,g.onerror=x}),tn(o,"link",u),e.state.loading|=4,qf(o,n.precedence,t),e.instance=o;case"script":return o=Ci(n.src),(r=t.querySelector(zi(o)))?(e.instance=r,Qe(r),r):(u=n,(r=yl.get(o))&&(u=B({},n),jf(u,r)),t=t.ownerDocument||t,r=t.createElement("script"),Qe(r),tn(r,"link",u),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(d(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(u=e.instance,e.state.loading|=4,qf(u,n.precedence,t));return e.instance}function qf(t,e,n){for(var u=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=u.length?u[u.length-1]:null,o=r,g=0;g title"):null)}function wg(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Nh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Di(t,e,n,u){if(n.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=wi(u.href),o=e.querySelector(Ri(r));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Gf.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,Qe(o);return}o=e.ownerDocument||e,u=Rh(u),(r=yl.get(r))&&ad(u,r),o=o.createElement("link"),Qe(o);var g=o;g._p=new Promise(function(y,x){g.onload=y,g.onerror=x}),tn(o,"link",u),n.instance=o}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Gf.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var id=0;function Rg(t,e){return t.stylesheets&&t.count===0&&Xf(t,t.stylesheets),0id?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(u),clearTimeout(r)}}:null}function Gf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Yf=null;function Xf(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Yf=new Map,e.forEach(Mh,t),Yf=null,Gf.call(t))}function Mh(t,e){if(!(e.state.loading&4)){var n=Yf.get(t);if(n)var u=n.get(null);else{n=new Map,Yf.set(t,n);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),qg.exports=Wy(),qg.exports}var Iy=$y();const bm="loadTrainSchedule",Em="loadTrainScheduleSuccess",Am="loadTrainScheduleError",xm="loadNews",Tm="loadNewsSuccess",Om="loadNewsError",wm="loadWeather",Rm="loadWeatherSuccess",Cm="loadWeatherError",zm="loadGiteaIssue",Dm="loadGiteaIssueSuccess",Pg="loadGiteaIssueError",Nm="setSelectedLocation",Mm="setConfig",Um="RssFeeds",Lm="RssFeedsSuccess",ky="RssFeedsError",rn={loadTrainSchedule:i=>({type:bm,...i}),loadTrainScheduleSuccess:i=>({type:Em,...i}),loadTrainScheduleError:i=>({type:Am,...i}),loadNews:i=>({type:xm,...i}),loadNewsSuccess:i=>({type:Tm,...i}),loadNewsError:i=>({type:Om,...i}),loadWeather:i=>({type:wm,...i}),loadWeatherSuccess:i=>({type:Rm,...i}),loadWeatherError:i=>({type:Cm,...i}),loadGiteaIssue:i=>({type:zm,...i}),loadGiteaIssueSuccess:i=>({type:Dm,...i}),loadGiteaIssueError:i=>({type:Pg,...i}),setSelectedLocation:i=>({type:Nm,...i}),setConfig:i=>({type:Mm,...i}),loadRSSFeeds:i=>({type:Um,...i}),loadRSSFeedsSuccess:i=>({type:Lm,...i}),loadRSSFeedsError:i=>({type:ky,...i})},Py={departures:void 0,trainScheduleError:void 0,trainScheduleLoading:!1,news:void 0,newsError:void 0,newsLoading:!1,weather:void 0,weatherError:void 0,weatherLoading:!1,issues:void 0,issuesError:void 0,issuesLoading:!1,stations:void 0,selectedLocation:"Nivelles",config:{rssFollow:"",trainCancelCompute:-180,trainDelayCompute:60,trainScheduleShow:120},rss:void 0,rssLoading:!1,rssError:void 0},tv=(i,s)=>s.type===bm?{...i,trainScheduleError:void 0,trainScheduleLoading:!0}:s.type===Em?{...i,departures:s.departures,stations:s.stations,trainScheduleLoading:!1}:s.type===Am?{...i,trainScheduleError:s.error,trainScheduleLoading:!1}:s.type===xm?{...i,newsError:void 0,newsLoading:!0}:s.type===Tm?{...i,news:s.news,newsLoading:!1}:s.type===Om?{...i,newsError:s.error,newsLoading:!1}:s.type===wm?{...i,weatherError:void 0,weatherLoading:!0}:s.type===Rm?{...i,weather:s.weather,weatherLoading:!1}:s.type===Cm?{...i,weatherError:s.error,weatherLoading:!1}:s.type===zm?{...i,issuesError:void 0,issuesLoading:!0}:s.type===Dm?{...i,issues:s.data,issuesLoading:!1}:s.type===Pg?{...i,issuesLoading:!1,issuesError:s.error}:s.type===Um?{...i,rssLoading:!0}:s.type===Lm?{...i,rss:s.feeds}:s.type===Pg?{...i,issuesLoading:!1,issuesError:s.error}:s.type===Nm?{...i,selectedLocation:s.location}:s.type===Mm?{...i,config:{...i.config,[s.setting]:s.value}}:i,ev=(i,s)=>{console.log(`TS - ${s.type}`),console.log({action:s}),console.log({state:i});const f=tv(i,s);return console.log({newState:f}),f};var yd={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */var nv=yd.exports,Up;function lv(){return Up||(Up=1,(function(i,s){(function(){var f,d="4.17.21",p=200,S="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",b="Expected a function",C="Invalid `variable` option passed into `_.template`",R="__lodash_hash_undefined__",A=500,M="__lodash_placeholder__",B=1,et=2,rt=4,X=1,tt=2,k=1,dt=2,xt=4,ct=8,pt=16,ut=32,vt=64,P=128,ee=256,xe=512,bl=30,cn="...",Ce=800,fn=16,Me=1,en=2,Y=3,nt=1/0,st=9007199254740991,Nt=17976931348623157e292,Ht=NaN,T=4294967295,Q=T-1,lt=T>>>1,it=[["ary",P],["bind",k],["bindKey",dt],["curry",ct],["curryRight",pt],["flip",xe],["partial",ut],["partialRight",vt],["rearg",ee]],mt="[object Arguments]",Tt="[object Array]",Qt="[object AsyncFunction]",he="[object Boolean]",Jt="[object Date]",Il="[object DOMException]",nl="[object Error]",sn="[object Function]",is="[object GeneratorFunction]",Fe="[object Map]",aa="[object Number]",rs="[object Null]",kl="[object Object]",cs="[object Promise]",fs="[object Proxy]",ia="[object RegExp]",Un="[object Set]",Bi="[object String]",cc="[object Symbol]",Ln="[object Undefined]",Hi="[object WeakMap]",wd="[object WeakSet]",qa="[object ArrayBuffer]",Pl="[object DataView]",ss="[object Float32Array]",fc="[object Float64Array]",os="[object Int8Array]",ds="[object Int16Array]",ra="[object Int32Array]",on="[object Uint8Array]",jl="[object Uint8ClampedArray]",dn="[object Uint16Array]",hs="[object Uint32Array]",w1=/\b__p \+= '';/g,R1=/\b(__p \+=) '' \+/g,sc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qi=/&(?:amp|lt|gt|quot|#39);/g,ji=/[&<>"']/g,ca=RegExp(qi.source),oc=RegExp(ji.source),Gi=/<%-([\s\S]+?)%>/g,C1=/<%([\s\S]+?)%>/g,gs=/<%=([\s\S]+?)%>/g,ps=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yi=/^\w*$/,z1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dc=/[\\^$.*+?()[\]{}|]/g,Rd=RegExp(dc.source),hc=/^\s+/,ms=/\s/,ys=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Cd=/\{\n\/\* \[wrapped with (.+)\] \*/,zd=/,? & /,Tu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,We=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,ja=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gc=/\w*$/,D1=/^[-+]0x[0-9a-f]+$/i,N1=/^0b[01]+$/i,Dd=/^\[object .+?Constructor\]$/,Xi=/^0o[0-7]+$/i,vs=/^(?:0|[1-9]\d*)$/,Ga=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tu=/($^)/,Qi=/['\n\r\u2028\u2029\\]/g,eu="\\ud800-\\udfff",Qe="\\u0300-\\u036f",Nd="\\ufe20-\\ufe2f",Md="\\u20d0-\\u20ff",Ou=Qe+Nd+Md,fa="\\u2700-\\u27bf",Ud="a-z\\xdf-\\xf6\\xf8-\\xff",Ld="\\xac\\xb1\\xd7\\xf7",Bd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",M1="\\u2000-\\u206f",pc=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Zi="A-Z\\xc0-\\xd6\\xd8-\\xde",Gl="\\ufe0e\\ufe0f",Bn=Ld+Bd+M1+pc,mc="['’]",U1="["+eu+"]",yc="["+Bn+"]",Ki="["+Ou+"]",Vi="\\d+",L1="["+fa+"]",Hn="["+Ud+"]",vc="[^"+eu+Bn+Vi+fa+Ud+Zi+"]",Sc="\\ud83c[\\udffb-\\udfff]",Ss="(?:"+Ki+"|"+Sc+")",sa="[^"+eu+"]",_c="(?:\\ud83c[\\udde6-\\uddff]){2}",bc="[\\ud800-\\udbff][\\udc00-\\udfff]",El="["+Zi+"]",Hd="\\u200d",_s="(?:"+Hn+"|"+vc+")",qd="(?:"+El+"|"+vc+")",Ec="(?:"+mc+"(?:d|ll|m|re|s|t|ve))?",jd="(?:"+mc+"(?:D|LL|M|RE|S|T|VE))?",Gd=Ss+"?",Ji="["+Gl+"]?",nu="(?:"+Hd+"(?:"+[sa,_c,bc].join("|")+")"+Ji+Gd+")*",bs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Es="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",oa=Ji+Gd+nu,Ya="(?:"+[L1,_c,bc].join("|")+")"+oa,Yd="(?:"+[sa+Ki+"?",Ki,_c,bc,U1].join("|")+")",As=RegExp(mc,"g"),Xd=RegExp(Ki,"g"),da=RegExp(Sc+"(?="+Sc+")|"+Yd+oa,"g"),lu=RegExp([El+"?"+Hn+"+"+Ec+"(?="+[yc,El,"$"].join("|")+")",qd+"+"+jd+"(?="+[yc,El+_s,"$"].join("|")+")",El+"?"+_s+"+"+Ec,El+"+"+jd,Es,bs,Vi,Ya].join("|"),"g"),xs=RegExp("["+Hd+eu+Ou+Gl+"]"),Fi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wu=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ts=-1,ae={};ae[ss]=ae[fc]=ae[os]=ae[ds]=ae[ra]=ae[on]=ae[jl]=ae[dn]=ae[hs]=!0,ae[mt]=ae[Tt]=ae[qa]=ae[he]=ae[Pl]=ae[Jt]=ae[nl]=ae[sn]=ae[Fe]=ae[aa]=ae[kl]=ae[ia]=ae[Un]=ae[Bi]=ae[Hi]=!1;var se={};se[mt]=se[Tt]=se[qa]=se[Pl]=se[he]=se[Jt]=se[ss]=se[fc]=se[os]=se[ds]=se[ra]=se[Fe]=se[aa]=se[kl]=se[ia]=se[Un]=se[Bi]=se[cc]=se[on]=se[jl]=se[dn]=se[hs]=!0,se[nl]=se[sn]=se[Hi]=!1;var Ac={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},xc={"&":"&","<":"<",">":">",'"':""","'":"'"},Qd={"&":"&","<":"<",">":">",""":'"',"'":"'"},Sn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ha=parseFloat,Tc=parseInt,Xa=typeof Vh=="object"&&Vh&&Vh.Object===Object&&Vh,B1=typeof self=="object"&&self&&self.Object===Object&&self,je=Xa||B1||Function("return this")(),Wi=s&&!s.nodeType&&s,Al=Wi&&!0&&i&&!i.nodeType&&i,$i=Al&&Al.exports===Wi,Oc=$i&&Xa.process,ll=(function(){try{var z=Al&&Al.require&&Al.require("util").types;return z||Oc&&Oc.binding&&Oc.binding("util")}catch{}})(),Zd=ll&&ll.isArrayBuffer,Kd=ll&&ll.isDate,wc=ll&&ll.isMap,Vd=ll&&ll.isRegExp,Jd=ll&&ll.isSet,Fd=ll&&ll.isTypedArray;function qn(z,Z,q){switch(q.length){case 0:return z.call(Z);case 1:return z.call(Z,q[0]);case 2:return z.call(Z,q[0],q[1]);case 3:return z.call(Z,q[0],q[1],q[2])}return z.apply(Z,q)}function H1(z,Z,q,ft){for(var Ot=-1,qt=z==null?0:z.length;++Ot-1}function Ii(z,Z,q){for(var ft=-1,Ot=z==null?0:z.length;++ft-1;);return q}function Ns(z,Z){for(var q=z.length;q--&&Qa(Z,z[q],0)>-1;);return q}function Pi(z,Z){for(var q=z.length,ft=0;q--;)z[q]===Z&&++ft;return ft}var tr=Rs(Ac),Q1=Rs(xc);function Mc(z){return"\\"+Sn[z]}function e0(z,Z){return z==null?f:z[Z]}function ma(z){return xs.test(z)}function Ms(z){return Fi.test(z)}function Us(z){for(var Z,q=[];!(Z=z.next()).done;)q.push(Z.value);return q}function Uc(z){var Z=-1,q=Array(z.size);return z.forEach(function(ft,Ot){q[++Z]=[Ot,ft]}),q}function Ls(z,Z){return function(q){return z(Z(q))}}function uu(z,Z){for(var q=-1,ft=z.length,Ot=0,qt=[];++q-1}function Be(l,a){var c=this.__data__,h=Ql(c,l);return h<0?(++this.size,c.push([l,a])):c[h][1]=a,this}sl.prototype.clear=o0,sl.prototype.delete=J1,sl.prototype.get=F1,sl.prototype.has=W1,sl.prototype.set=Be;function Tl(l){var a=-1,c=l==null?0:l.length;for(this.clear();++a=a?l:a)),l}function hn(l,a,c,h,m,_){var E,O=a&B,N=a&et,W=a&rt;if(c&&(E=m?c(l,h,m,_):c(l)),E!==f)return E;if(!Se(l))return l;var $=wt(l);if($){if(E=N0(l),!O)return gn(l,E)}else{var I=Pe(l),at=I==sn||I==is;if(Wu(l))return no(l,O);if(I==kl||I==mt||at&&!m){if(E=N||at?{}:yo(l),!O)return N?w0(l,ai(E,l)):O0(l,Xs(E,l))}else{if(!se[I])return m?l:{};E=M0(l,I,O)}}_||(_=new ol);var gt=_.get(l);if(gt)return gt;_.set(l,E),Wr(l)?l.forEach(function(At){E.add(hn(At,a,c,At,l,_))}):ph(l)&&l.forEach(function(At,Kt){E.set(Kt,hn(At,a,c,Kt,l,_))});var Et=W?N?mo:hf:N?Dn:Ke,Lt=$?f:Et(l);return jn(Lt||l,function(At,Kt){Lt&&(Kt=At,At=l[Kt]),Ol(E,Kt,hn(At,a,c,Kt,l,_))}),E}function m0(l){var a=Ke(l);return function(c){return Bu(c,l,a)}}function Bu(l,a,c){var h=c.length;if(l==null)return!h;for(l=ne(l);h--;){var m=c[h],_=a[m],E=l[m];if(E===f&&!(m in l)||!_(E))return!1}return!0}function Qs(l,a,c){if(typeof l!="function")throw new Yn(b);return Nr(function(){l.apply(f,c)},a)}function dl(l,a,c,h){var m=-1,_=Rc,E=!0,O=l.length,N=[],W=a.length;if(!O)return N;c&&(a=me(a,Gn(c))),h?(_=Ii,E=!1):a.length>=p&&(_=ki,E=!1,a=new Aa(a));t:for(;++mm?0:m+c),h=h===f||h>m?m:bt(h),h<0&&(h+=m),h=c>h?0:nd(h);c0&&c(O)?a>1?Ge(O,a-1,c,h,m):Cu(m,O):h||(m[m.length]=O)}return m}var Ta=ro(),ri=ro(!0);function Cl(l,a){return l&&Ta(l,a,Ke)}function Ic(l,a){return l&&ri(l,a,Ke)}function ou(l,a){return Ru(a,function(c){return Pn(l[c])})}function Kl(l,a){a=Fn(a,l);for(var c=0,h=a.length;l!=null&&ca}function Kn(l,a){return l!=null&&kt.call(l,a)}function hl(l,a){return l!=null&&a in ne(l)}function qu(l,a,c){return l>=Ue(a,c)&&l=120&&$.length>=120)?new Aa(E&&$):f}$=l[0];var I=-1,at=O[0];t:for(;++I-1;)O!==l&&au.call(O,N,1),au.call(l,N,1);return l}function oi(l,a){for(var c=l?a.length:0,h=c-1;c--;){var m=a[c];if(c==h||m!==_){var _=m;Nl(m)?au.call(l,m,1):gr(l,m)}}return l}function di(l,a){return l+lr(ru()*(a-l+1))}function Js(l,a,c,h){for(var m=-1,_=Te($a((a-l)/(c||1)),0),E=q(_);_--;)E[h?_:++m]=l,l+=c;return E}function zl(l,a){var c="";if(!l||a<1||a>st)return c;do a%2&&(c+=l),a=lr(a/2),a&&(l+=l);while(a);return c}function zt(l,a){return _f(Eo(l,a,mn),l+"")}function Fs(l){return cr(Di(l))}function Ws(l,a){var c=Di(l);return Mr(c,wl(a,0,c.length))}function hi(l,a,c,h){if(!Se(l))return l;a=Fn(a,l);for(var m=-1,_=a.length,E=_-1,O=l;O!=null&&++m<_;){var N=xn(a[m]),W=c;if(N==="__proto__"||N==="constructor"||N==="prototype")return l;if(m!=E){var $=O[N];W=h?h($,N,O):f,W===f&&(W=Se($)?$:Nl(a[m+1])?[]:{})}Ol(O,N,W),O=O[N]}return l}var $s=Le?function(l,a){return Le.set(l,a),l}:mn,v0=al?function(l,a){return al(l,"toString",{configurable:!0,enumerable:!1,value:Mi(a),writable:!0})}:mn;function S0(l){return Mr(Di(l))}function Jn(l,a,c){var h=-1,m=l.length;a<0&&(a=-a>m?0:m+a),c=c>m?m:c,c<0&&(c+=m),m=a>c?0:c-a>>>0,a>>>=0;for(var _=q(m);++h>>1,E=l[_];E!==null&&!zn(E)&&(c?E<=a:E=p){var W=a?null:C0(l);if(W)return Lc(W);E=!1,m=ki,N=new Aa}else N=a?[]:O;t:for(;++h<_;){var $=l[h],I=a?a($):$;if($=c||$!==0?$:0,E&&I===I){for(var at=N.length;at--;)if(N[at]===I)continue t;a&&N.push(I),O.push($)}else m(N,I,c)||(N!==O&&N.push(I),O.push($))}return O}function gr(l,a){return a=Fn(a,l),l=zr(l,a),l==null||delete l[xn(pe(a))]}function ks(l,a,c,h){return hi(l,a,c(Kl(l,a)),h)}function pr(l,a,c,h){for(var m=l.length,_=h?m:-1;(h?_--:++_=h?l:Jn(l,a,c)}var mr=f0||function(l){return je.clearTimeout(l)};function no(l,a){if(a)return l.slice();var c=l.length,h=Yc?Yc(c):new l.constructor(c);return l.copy(h),h}function yr(l){var a=new l.constructor(l.byteLength);return new va(a).set(new va(l)),a}function P1(l,a){var c=a?yr(l.buffer):l.buffer;return new l.constructor(c,l.byteOffset,l.byteLength)}function A0(l){var a=new l.constructor(l.source,gc.exec(l));return a.lastIndex=l.lastIndex,a}function x0(l){return ti?ne(ti.call(l)):{}}function lo(l,a){var c=a?yr(l.buffer):l.buffer;return new l.constructor(c,l.byteOffset,l.length)}function uo(l,a){if(l!==a){var c=l!==f,h=l===null,m=l===l,_=zn(l),E=a!==f,O=a===null,N=a===a,W=zn(a);if(!O&&!W&&!_&&l>a||_&&E&&N&&!O&&!W||h&&E&&N||!c&&N||!m)return 1;if(!h&&!_&&!W&&l=O)return N;var W=c[h];return N*(W=="desc"?-1:1)}}return l.index-a.index}function cf(l,a,c,h){for(var m=-1,_=l.length,E=c.length,O=-1,N=a.length,W=Te(_-E,0),$=q(N+W),I=!h;++O1?c[m-1]:f,E=m>2?c[2]:f;for(_=l.length>3&&typeof _=="function"?(m--,_):f,E&&ln(c[0],c[1],E)&&(_=m<3?f:_,m=1),a=ne(a);++h-1?m[_?a[E]:E]:f}}function pi(l){return Vl(function(a){var c=a.length,h=c,m=bn.prototype.thru;for(l&&a.reverse();h--;){var _=a[h];if(typeof _!="function")throw new Yn(b);if(m&&!E&&be(_)=="wrapper")var E=new bn([],!0)}for(h=E?h:c;++h1&&Ft.reverse(),$&&NO))return!1;var W=_.get(l),$=_.get(a);if(W&&$)return W==a&&$==l;var I=-1,at=!0,gt=c&tt?new Aa:f;for(_.set(l,a),_.set(a,l);++I1?"& ":"")+a[h],a=a.join(c>2?", ":" "),l.replace(ys,`{ /* [wrapped with `+a+`] */ `)}function So(l){return wt(l)||Na(l)||!!(c0&&l&&l[c0])}function Nl(l,a){var c=typeof l;return a=a??st,!!a&&(c=="number"||c!="symbol"&&vs.test(l))&&l>-1&&l%1==0&&l0){if(++a>=Ce)return arguments[0]}else a=0;return l.apply(f,arguments)}}function Mr(l,a){var c=-1,h=l.length,m=h-1;for(a=a===f?h:a;++c1?l[a-1]:f;return c=typeof c=="function"?(l.pop(),c):f,Ee(l,c)});function qr(l){var a=v(l);return a.__chain__=!0,a}function $0(l,a){return a(l),l}function za(l,a){return a(l)}var Tf=Vl(function(l){var a=l.length,c=a?l[0]:0,h=this.__wrapped__,m=function(_){return ii(_,l)};return a>1||this.__actions__.length||!(h instanceof Rt)||!Nl(c)?this.thru(m):(h=h.slice(c,+c+(a?1:0)),h.__actions__.push({func:za,args:[m],thisArg:f}),new bn(h,this.__chain__).thru(function(_){return a&&!_.length&&_.push(f),_}))});function Vu(){return qr(this)}function Ye(){return new bn(this.value(),this.__chain__)}function Ju(){this.__values__===f&&(this.__values__=_h(this.value()));var l=this.__index__>=this.__values__.length,a=l?f:this.__values__[this.__index__++];return{done:l,value:a}}function Ei(){return this}function vu(l){for(var a,c=this;c instanceof Uu;){var h=bf(c);h.__index__=0,h.__values__=f,a?m.__wrapped__=h:a=h;var m=h;c=c.__wrapped__}return m.__wrapped__=l,a}function Lo(){var l=this.__wrapped__;if(l instanceof Rt){var a=l;return this.__actions__.length&&(a=new Rt(this)),a=a.reverse(),a.__actions__.push({func:za,args:[Qu],thisArg:f}),new bn(a,this.__chain__)}return this.thru(Qu)}function Bo(){return Ps(this.__wrapped__,this.__actions__)}var I0=ff(function(l,a,c){kt.call(l,c)?++l[c]:Zn(l,c,1)});function jr(l,a,c){var h=wt(l)?Wd:Hu;return c&&ln(l,a,c)&&(a=f),h(l,St(a,3))}function Ho(l,a){var c=wt(l)?Ru:$c;return c(l,St(a,3))}var In=so(wo),k0=so(Ro);function Rn(l,a){return Ge(Gr(l,a),1)}function P0(l,a){return Ge(Gr(l,a),nt)}function th(l,a,c){return c=c===f?1:bt(c),Ge(Gr(l,a),c)}function eh(l,a){var c=wt(l)?jn:Zl;return c(l,St(a,3))}function Su(l,a){var c=wt(l)?q1:Wc;return c(l,St(a,3))}var Of=ff(function(l,a,c){kt.call(l,c)?l[c].push(a):Zn(l,c,[a])});function qo(l,a,c,h){l=Cn(l)?l:Di(l),c=c&&!h?bt(c):0;var m=l.length;return c<0&&(c=Te(m+c,0)),$r(l)?c<=m&&l.indexOf(a,c)>-1:!!m&&Qa(l,a,c)>-1}var Ai=zt(function(l,a,c){var h=-1,m=typeof a=="function",_=Cn(l)?q(l.length):[];return Zl(l,function(E){_[++h]=m?qn(a,E,c):gl(E,a,c)}),_}),nh=ff(function(l,a,c){Zn(l,c,a)});function Gr(l,a){var c=wt(l)?me:tf;return c(l,St(a,3))}function lh(l,a,c,h){return l==null?[]:(wt(a)||(a=a==null?[]:[a]),c=h?f:c,wt(c)||(c=c==null?[]:[c]),lf(l,a,c))}var uh=ff(function(l,a,c){l[c?0:1].push(a)},function(){return[[],[]]});function wf(l,a,c){var h=wt(l)?Os:Cs,m=arguments.length<3;return h(l,St(a,4),c,m,Zl)}function jo(l,a,c){var h=wt(l)?$d:Cs,m=arguments.length<3;return h(l,St(a,4),c,m,Wc)}function rg(l,a){var c=wt(l)?Ru:$c;return c(l,zf(St(a,3)))}function cg(l){var a=wt(l)?cr:Fs;return a(l)}function fg(l,a,c){(c?ln(l,a,c):a===f)?a=1:a=bt(a);var h=wt(l)?Jc:Ws;return h(l,a)}function ah(l){var a=wt(l)?g0:S0;return a(l)}function ih(l){if(l==null)return 0;if(Cn(l))return $r(l)?Za(l):l.length;var a=Pe(l);return a==Fe||a==Un?l.size:ju(l).length}function xi(l,a,c){var h=wt(l)?ws:_0;return c&&ln(l,a,c)&&(a=f),h(l,St(a,3))}var Rf=zt(function(l,a){if(l==null)return[];var c=a.length;return c>1&&ln(l,a[0],a[1])?a=[]:c>2&&ln(a[0],a[1],a[2])&&(a=[a[0]]),lf(l,Ge(a,1),[])}),Yr=Xc||function(){return je.Date.now()};function rh(l,a){if(typeof a!="function")throw new Yn(b);return l=bt(l),function(){if(--l<1)return a.apply(this,arguments)}}function Go(l,a,c){return a=c?f:a,a=l&&a==null?l.length:a,pn(l,P,f,f,f,f,a)}function Yo(l,a){var c;if(typeof a!="function")throw new Yn(b);return l=bt(l),function(){return--l>0&&(c=a.apply(this,arguments)),l<=1&&(a=f),c}}var Cf=zt(function(l,a,c){var h=k;if(c.length){var m=uu(c,we(Cf));h|=ut}return pn(l,h,a,c,m)}),Xo=zt(function(l,a,c){var h=k|dt;if(c.length){var m=uu(c,we(Xo));h|=ut}return pn(a,h,l,c,m)});function Xr(l,a,c){a=c?f:a;var h=pn(l,ct,f,f,f,f,f,a);return h.placeholder=Xr.placeholder,h}function Qo(l,a,c){a=c?f:a;var h=pn(l,pt,f,f,f,f,f,a);return h.placeholder=Qo.placeholder,h}function Zo(l,a,c){var h,m,_,E,O,N,W=0,$=!1,I=!1,at=!0;if(typeof l!="function")throw new Yn(b);a=tl(a)||0,Se(c)&&($=!!c.leading,I="maxWait"in c,_=I?Te(tl(c.maxWait)||0,a):_,at="trailing"in c?!!c.trailing:at);function gt(Xe){var Eu=h,Ua=m;return h=m=f,W=Xe,E=l.apply(Ua,Eu),E}function Et(Xe){return W=Xe,O=Nr(Kt,a),$?gt(Xe):E}function Lt(Xe){var Eu=Xe-N,Ua=Xe-W,Ap=a-Eu;return I?Ue(Ap,_-Ua):Ap}function At(Xe){var Eu=Xe-N,Ua=Xe-W;return N===f||Eu>=a||Eu<0||I&&Ua>=_}function Kt(){var Xe=Yr();if(At(Xe))return Ft(Xe);O=Nr(Kt,Lt(Xe))}function Ft(Xe){return O=f,at&&h?gt(Xe):(h=m=f,E)}function Bl(){O!==f&&mr(O),W=0,h=N=m=O=f}function el(){return O===f?E:Ft(Yr())}function Hl(){var Xe=Yr(),Eu=At(Xe);if(h=arguments,m=this,N=Xe,Eu){if(O===f)return Et(N);if(I)return mr(O),O=Nr(Kt,a),gt(N)}return O===f&&(O=Nr(Kt,a)),E}return Hl.cancel=Bl,Hl.flush=el,Hl}var ue=zt(function(l,a){return Qs(l,1,a)}),Ko=zt(function(l,a,c){return Qs(l,tl(a)||0,c)});function sg(l){return pn(l,xe)}function Qr(l,a){if(typeof l!="function"||a!=null&&typeof a!="function")throw new Yn(b);var c=function(){var h=arguments,m=a?a.apply(this,h):h[0],_=c.cache;if(_.has(m))return _.get(m);var E=l.apply(this,h);return c.cache=_.set(m,E)||_,E};return c.cache=new(Qr.Cache||Tl),c}Qr.Cache=Tl;function zf(l){if(typeof l!="function")throw new Yn(b);return function(){var a=arguments;switch(a.length){case 0:return!l.call(this);case 1:return!l.call(this,a[0]);case 2:return!l.call(this,a[0],a[1]);case 3:return!l.call(this,a[0],a[1],a[2])}return!l.apply(this,a)}}function og(l){return Yo(2,l)}var dg=E0(function(l,a){a=a.length==1&&wt(a[0])?me(a[0],Gn(St())):me(Ge(a,1),Gn(St()));var c=a.length;return zt(function(h){for(var m=-1,_=Ue(h.length,c);++m<_;)h[m]=a[m].call(this,h[m]);return qn(l,this,h)})}),Ti=zt(function(l,a){var c=uu(a,we(Ti));return pn(l,ut,f,a,c)}),Da=zt(function(l,a){var c=uu(a,we(Da));return pn(l,vt,f,a,c)}),Vo=Vl(function(l,a){return pn(l,ee,f,f,f,a)});function Df(l,a){if(typeof l!="function")throw new Yn(b);return a=a===f?a:bt(a),zt(l,a)}function Jo(l,a){if(typeof l!="function")throw new Yn(b);return a=a==null?0:Te(bt(a),0),zt(function(c){var h=c[a],m=Dl(c,0,a);return h&&Cu(m,h),qn(l,this,m)})}function Fu(l,a,c){var h=!0,m=!0;if(typeof l!="function")throw new Yn(b);return Se(c)&&(h="leading"in c?!!c.leading:h,m="trailing"in c?!!c.trailing:m),Zo(l,a,{leading:h,maxWait:a,trailing:m})}function Wl(l){return Go(l,1)}function Zr(l,a){return Ti(rf(a),l)}function hg(){if(!arguments.length)return[];var l=arguments[0];return wt(l)?l:[l]}function ch(l){return hn(l,rt)}function fh(l,a){return a=typeof a=="function"?a:f,hn(l,rt,a)}function sh(l){return hn(l,B|rt)}function oh(l,a){return a=typeof a=="function"?a:f,hn(l,B|rt,a)}function gg(l,a){return a==null||Bu(l,a,Ke(a))}function kn(l,a){return l===a||l!==l&&a!==a}var dh=br(sr),hh=br(function(l,a){return l>=a}),Na=En((function(){return arguments})())?En:function(l){return Re(l)&&kt.call(l,"callee")&&!nr.call(l,"callee")},wt=q.isArray,Fo=Zd?Gn(Zd):ze;function Cn(l){return l!=null&&Uf(l.length)&&!Pn(l)}function Ne(l){return Re(l)&&Cn(l)}function Kr(l){return l===!0||l===!1||Re(l)&&ke(l)==he}var Wu=s0||H,gh=Kd?Gn(Kd):kc;function Gt(l){return Re(l)&&l.nodeType===1&&!Jr(l)}function Wo(l){if(l==null)return!0;if(Cn(l)&&(wt(l)||typeof l=="string"||typeof l.splice=="function"||Wu(l)||$u(l)||Na(l)))return!l.length;var a=Pe(l);if(a==Fe||a==Un)return!l.size;if(yi(l))return!ju(l).length;for(var c in l)if(kt.call(l,c))return!1;return!0}function Nf(l,a){return Vn(l,a)}function $o(l,a,c){c=typeof c=="function"?c:f;var h=c?c(l,a):f;return h===f?Vn(l,a,f,c):!!h}function Mf(l){if(!Re(l))return!1;var a=ke(l);return a==nl||a==Il||typeof l.message=="string"&&typeof l.name=="string"&&!Jr(l)}function Io(l){return typeof l=="number"&&Xn(l)}function Pn(l){if(!Se(l))return!1;var a=ke(l);return a==sn||a==is||a==Qt||a==fs}function Vr(l){return typeof l=="number"&&l==bt(l)}function Uf(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=st}function Se(l){var a=typeof l;return l!=null&&(a=="object"||a=="function")}function Re(l){return l!=null&&typeof l=="object"}var ph=wc?Gn(wc):ie;function mh(l,a){return l===a||Oe(l,a,gf(a))}function yh(l,a,c){return c=typeof c=="function"?c:f,Oe(l,a,gf(a),c)}function re(l){return Po(l)&&l!=+l}function ko(l){if(_o(l))throw new Ot(S);return dr(l)}function tn(l){return l===null}function pg(l){return l==null}function Po(l){return typeof l=="number"||Re(l)&&ke(l)==aa}function Jr(l){if(!Re(l)||ke(l)!=kl)return!1;var a=Yl(l);if(a===null)return!0;var c=kt.call(a,"constructor")&&a.constructor;return typeof c=="function"&&c instanceof c&&qc.call(c)==Gc}var Fr=Vd?Gn(Vd):ci;function td(l){return Vr(l)&&l>=-st&&l<=st}var Wr=Jd?Gn(Jd):Oa;function $r(l){return typeof l=="string"||!wt(l)&&Re(l)&&ke(l)==Bi}function zn(l){return typeof l=="symbol"||Re(l)&&ke(l)==cc}var $u=Fd?Gn(Fd):Pc;function ed(l){return l===f}function mg(l){return Re(l)&&Pe(l)==Hi}function vh(l){return Re(l)&&ke(l)==wd}var yg=br(ve),Sh=br(function(l,a){return l<=a});function _h(l){if(!l)return[];if(Cn(l))return $r(l)?_e(l):gn(l);if($e&&l[$e])return Us(l[$e]());var a=Pe(l),c=a==Fe?Uc:a==Un?Lc:Di;return c(l)}function _u(l){if(!l)return l===0?l:0;if(l=tl(l),l===nt||l===-nt){var a=l<0?-1:1;return a*Nt}return l===l?l:0}function bt(l){var a=_u(l),c=a%1;return a===a?c?a-c:a:0}function nd(l){return l?wl(bt(l),0,T):0}function tl(l){if(typeof l=="number")return l;if(zn(l))return Ht;if(Se(l)){var a=typeof l.valueOf=="function"?l.valueOf():l;l=Se(a)?a+"":a}if(typeof l!="string")return l===0?l:+l;l=pa(l);var c=N1.test(l);return c||Xi.test(l)?Tc(l.slice(2),c?2:8):D1.test(l)?Ht:+l}function Lf(l){return pl(l,Dn(l))}function vg(l){return l?wl(bt(l),-st,st):l===0?l:0}function te(l){return l==null?"":An(l)}var bh=Gu(function(l,a){if(yi(a)||Cn(a)){pl(a,Ke(a),l);return}for(var c in a)kt.call(a,c)&&Ol(l,c,a[c])}),Bf=Gu(function(l,a){pl(a,Dn(a),l)}),Oi=Gu(function(l,a,c,h){pl(a,Dn(a),l,h)}),Sg=Gu(function(l,a,c,h){pl(a,Ke(a),l,h)}),ml=Vl(ii);function ld(l,a){var c=Mu(l);return a==null?c:Xs(c,a)}var Eh=zt(function(l,a){l=ne(l);var c=-1,h=a.length,m=h>2?a[2]:f;for(m&&ln(a[0],a[1],m)&&(h=1);++c1),_}),pl(l,mo(l),c),h&&(c=hn(c,B|et|rt,z0));for(var m=a.length;m--;)gr(c,a[m]);return c});function Og(l,a){return zi(l,zf(St(a)))}var Ci=Vl(function(l,a){return l==null?{}:Vs(l,a)});function zi(l,a){if(l==null)return{};var c=me(mo(l),function(h){return[h]});return a=St(a),nn(l,c,function(h,m){return a(h,m[0])})}function Ch(l,a,c){a=Fn(a,l);var h=-1,m=a.length;for(m||(m=1,l=f);++ha){var h=l;l=a,a=h}if(c||l%1||a%1){var m=ru();return Ue(l+m*(a-l+ha("1e-"+((m+"").length-1))),a)}return di(l,a)}var Xf=wa(function(l,a,c){return a=a.toLowerCase(),l+(c?Mh(a):a)});function Mh(l){return Ma(te(l).toLowerCase())}function Ni(l){return l=te(l),l&&l.replace(Ga,tr).replace(Xd,"")}function Cg(l,a,c){l=te(l),a=An(a);var h=l.length;c=c===f?h:wl(bt(c),0,h);var m=c;return c-=a.length,c>=0&&l.slice(c,m)==a}function Uh(l){return l=te(l),l&&oc.test(l)?l.replace(ji,Q1):l}function Lh(l){return l=te(l),l&&Rd.test(l)?l.replace(dc,"\\$&"):l}var Bh=wa(function(l,a,c){return l+(c?"-":"")+a.toLowerCase()}),Hh=wa(function(l,a,c){return l+(c?" ":"")+a.toLowerCase()}),rd=fo("toLowerCase");function qh(l,a,c){l=te(l),a=bt(a);var h=a?Za(l):0;if(!a||h>=a)return l;var m=(a-h)/2;return Yu(lr(m),c)+l+Yu($a(m),c)}function jh(l,a,c){l=te(l),a=bt(a);var h=a?Za(l):0;return a&&h>>0,c?(l=te(l),l&&(typeof a=="string"||a!=null&&!Fr(a))&&(a=An(a),!a&&ma(l))?Dl(_e(l),0,c):l.split(a,c)):[]}var sd=wa(function(l,a,c){return l+(c?" ":"")+Ma(a)});function Gh(l,a,c){return l=te(l),c=c==null?0:wl(bt(c),0,l.length),a=An(a),l.slice(c,c+a.length)==a}function od(l,a,c){var h=v.templateSettings;c&&ln(l,a,c)&&(a=f),l=te(l),a=Oi({},a,h,ho);var m=Oi({},a.imports,h.imports,ho),_=Ke(m),E=zs(m,_),O,N,W=0,$=a.interpolate||tu,I="__p += '",at=Bc((a.escape||tu).source+"|"+$.source+"|"+($===gs?ja:tu).source+"|"+(a.evaluate||tu).source+"|$","g"),gt="//# sourceURL="+(kt.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ts+"]")+` `;l.replace(at,function(At,Kt,Ft,Bl,el,Hl){return Ft||(Ft=Bl),I+=l.slice(W,Hl).replace(Qi,Mc),Kt&&(O=!0,I+=`' + __e(`+Kt+`) + '`),el&&(N=!0,I+=`'; `+el+`; __p += '`),Ft&&(I+=`' + ((__t = (`+Ft+`)) == null ? '' : __t) + '`),W=Hl+At.length,At}),I+=`'; `;var Et=kt.call(a,"variable")&&a.variable;if(!Et)I=`with (obj) { `+I+` } `;else if(We.test(Et))throw new Ot(C);I=(N?I.replace(w1,""):I).replace(R1,"$1").replace(sc,"$1;"),I="function("+(Et||"obj")+`) { `+(Et?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(O?", __e = _.escape":"")+(N?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+I+`return __p }`;var Lt=dd(function(){return qt(_,gt+"return "+I).apply(f,E)});if(Lt.source=I,Mf(Lt))throw Lt;return Lt}function ku(l){return te(l).toLowerCase()}function Pu(l){return te(l).toUpperCase()}function ta(l,a,c){if(l=te(l),l&&(c||a===f))return pa(l);if(!l||!(a=An(a)))return l;var h=_e(l),m=_e(a),_=Ds(h,m),E=Ns(h,m)+1;return Dl(h,_,E).join("")}function Pr(l,a,c){if(l=te(l),l&&(c||a===f))return l.slice(0,Ka(l)+1);if(!l||!(a=An(a)))return l;var h=_e(l),m=Ns(h,_e(a))+1;return Dl(h,0,m).join("")}function tc(l,a,c){if(l=te(l),l&&(c||a===f))return l.replace(hc,"");if(!l||!(a=An(a)))return l;var h=_e(l),m=Ds(h,_e(a));return Dl(h,m).join("")}function ea(l,a){var c=bl,h=cn;if(Se(a)){var m="separator"in a?a.separator:m;c="length"in a?bt(a.length):c,h="omission"in a?An(a.omission):h}l=te(l);var _=l.length;if(ma(l)){var E=_e(l);_=E.length}if(c>=_)return l;var O=c-Za(h);if(O<1)return h;var N=E?Dl(E,0,O).join(""):l.slice(0,O);if(m===f)return N+h;if(E&&(O+=N.length-O),Fr(m)){if(l.slice(O).search(m)){var W,$=N;for(m.global||(m=Bc(m.source,te(gc.exec(m))+"g")),m.lastIndex=0;W=m.exec($);)var I=W.index;N=N.slice(0,I===f?O:I)}}else if(l.indexOf(An(m),O)!=O){var at=N.lastIndexOf(m);at>-1&&(N=N.slice(0,at))}return N+h}function Ng(l){return l=te(l),l&&ca.test(l)?l.replace(qi,n0):l}var Yh=wa(function(l,a,c){return l+(c?" ":"")+a.toUpperCase()}),Ma=fo("toUpperCase");function Xh(l,a,c){return l=te(l),a=c?f:a,a===f?Ms(l)?a0(l):Y1(l):l.match(a)||[]}var dd=zt(function(l,a){try{return qn(l,f,a)}catch(c){return Mf(c)?c:new Ot(c)}}),Kf=Vl(function(l,a){return jn(a,function(c){c=xn(c),Zn(l,c,Cf(l[c],l))}),l});function Qh(l){var a=l==null?0:l.length,c=St();return l=a?me(l,function(h){if(typeof h[1]!="function")throw new Yn(b);return[c(h[0]),h[1]]}):[],zt(function(h){for(var m=-1;++mst)return[];var c=T,h=Ue(l,T);a=St(a),l-=T;for(var m=Nc(h,a);++c0||a<0)?new Rt(c):(l<0?c=c.takeRight(-l):l&&(c=c.drop(l)),a!==f&&(a=bt(a),c=a<0?c.dropRight(-a):c.take(a-l)),c)},Rt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Rt.prototype.toArray=function(){return this.take(T)},Cl(Rt.prototype,function(l,a){var c=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),m=v[h?"take"+(a=="last"?"Right":""):a],_=h||/^find/.test(a);m&&(v.prototype[a]=function(){var E=this.__wrapped__,O=h?[1]:arguments,N=E instanceof Rt,W=O[0],$=N||wt(E),I=function(Kt){var Ft=m.apply(v,Cu([Kt],O));return h&&at?Ft[0]:Ft};$&&c&&typeof W=="function"&&W.length!=1&&(N=$=!1);var at=this.__chain__,gt=!!this.__actions__.length,Et=_&&!at,Lt=N&&!gt;if(!_&&$){E=Lt?E:new Rt(this);var At=l.apply(E,O);return At.__actions__.push({func:za,args:[I],thisArg:f}),new bn(At,at)}return Et&&Lt?l.apply(this,O):(At=this.thru(I),Et?h?At.value()[0]:At.value():At)})}),jn(["pop","push","shift","sort","splice","unshift"],function(l){var a=er[l],c=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",h=/^(?:pop|shift)$/.test(l);v.prototype[l]=function(){var m=arguments;if(h&&!this.__chain__){var _=this.value();return a.apply(wt(_)?_:[],m)}return this[c](function(E){return a.apply(wt(E)?E:[],m)})}}),Cl(Rt.prototype,function(l,a){var c=v[a];if(c){var h=c.name+"";kt.call(Pt,h)||(Pt[h]=[]),Pt[h].push({name:a,func:c})}}),Pt[mi(f,dt).name]=[{name:"wrapper",func:f}],Rt.prototype.clone=cu,Rt.prototype.reverse=Lu,Rt.prototype.value=fu,v.prototype.at=Tf,v.prototype.chain=Vu,v.prototype.commit=Ye,v.prototype.next=Ju,v.prototype.plant=vu,v.prototype.reverse=Lo,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=Bo,v.prototype.first=v.prototype.head,$e&&(v.prototype[$e]=Ei),v}),Va=Bs();Al?((Al.exports=Va)._=Va,Wi._=Va):je._=Va}).call(nv)})(yd,yd.exports)),yd.exports}var _d=lv();function Bm(i,s){return function(){return i.apply(s,arguments)}}const{toString:uv}=Object.prototype,{getPrototypeOf:hp}=Object,{iterator:g1,toStringTag:Hm}=Symbol,p1=(i=>s=>{const f=uv.call(s);return i[f]||(i[f]=f.slice(8,-1).toLowerCase())})(Object.create(null)),xu=i=>(i=i.toLowerCase(),s=>p1(s)===i),m1=i=>s=>typeof s===i,{isArray:ls}=Array,If=m1("undefined");function Ed(i){return i!==null&&!If(i)&&i.constructor!==null&&!If(i.constructor)&&Sl(i.constructor.isBuffer)&&i.constructor.isBuffer(i)}const qm=xu("ArrayBuffer");function av(i){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(i):s=i&&i.buffer&&qm(i.buffer),s}const iv=m1("string"),Sl=m1("function"),jm=m1("number"),Ad=i=>i!==null&&typeof i=="object",rv=i=>i===!0||i===!1,Ph=i=>{if(p1(i)!=="object")return!1;const s=hp(i);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Hm in i)&&!(g1 in i)},cv=i=>{if(!Ad(i)||Ed(i))return!1;try{return Object.keys(i).length===0&&Object.getPrototypeOf(i)===Object.prototype}catch{return!1}},fv=xu("Date"),sv=xu("File"),ov=xu("Blob"),dv=xu("FileList"),hv=i=>Ad(i)&&Sl(i.pipe),gv=i=>{let s;return i&&(typeof FormData=="function"&&i instanceof FormData||Sl(i.append)&&((s=p1(i))==="formdata"||s==="object"&&Sl(i.toString)&&i.toString()==="[object FormData]"))},pv=xu("URLSearchParams"),[mv,yv,vv,Sv]=["ReadableStream","Request","Response","Headers"].map(xu),_v=i=>i.trim?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xd(i,s,{allOwnKeys:f=!1}={}){if(i===null||typeof i>"u")return;let d,p;if(typeof i!="object"&&(i=[i]),ls(i))for(d=0,p=i.length;d0;)if(p=f[d],s===p.toLowerCase())return p;return null}const nc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ym=i=>!If(i)&&i!==nc;function tp(){const{caseless:i,skipUndefined:s}=Ym(this)&&this||{},f={},d=(p,S)=>{const b=i&&Gm(f,S)||S;Ph(f[b])&&Ph(p)?f[b]=tp(f[b],p):Ph(p)?f[b]=tp({},p):ls(p)?f[b]=p.slice():(!s||!If(p))&&(f[b]=p)};for(let p=0,S=arguments.length;p(xd(s,(p,S)=>{f&&Sl(p)?i[S]=Bm(p,f):i[S]=p},{allOwnKeys:d}),i),Ev=i=>(i.charCodeAt(0)===65279&&(i=i.slice(1)),i),Av=(i,s,f,d)=>{i.prototype=Object.create(s.prototype,d),i.prototype.constructor=i,Object.defineProperty(i,"super",{value:s.prototype}),f&&Object.assign(i.prototype,f)},xv=(i,s,f,d)=>{let p,S,b;const C={};if(s=s||{},i==null)return s;do{for(p=Object.getOwnPropertyNames(i),S=p.length;S-- >0;)b=p[S],(!d||d(b,i,s))&&!C[b]&&(s[b]=i[b],C[b]=!0);i=f!==!1&&hp(i)}while(i&&(!f||f(i,s))&&i!==Object.prototype);return s},Tv=(i,s,f)=>{i=String(i),(f===void 0||f>i.length)&&(f=i.length),f-=s.length;const d=i.indexOf(s,f);return d!==-1&&d===f},Ov=i=>{if(!i)return null;if(ls(i))return i;let s=i.length;if(!jm(s))return null;const f=new Array(s);for(;s-- >0;)f[s]=i[s];return f},wv=(i=>s=>i&&s instanceof i)(typeof Uint8Array<"u"&&hp(Uint8Array)),Rv=(i,s)=>{const d=(i&&i[g1]).call(i);let p;for(;(p=d.next())&&!p.done;){const S=p.value;s.call(i,S[0],S[1])}},Cv=(i,s)=>{let f;const d=[];for(;(f=i.exec(s))!==null;)d.push(f);return d},zv=xu("HTMLFormElement"),Dv=i=>i.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(f,d,p){return d.toUpperCase()+p}),Lp=(({hasOwnProperty:i})=>(s,f)=>i.call(s,f))(Object.prototype),Nv=xu("RegExp"),Xm=(i,s)=>{const f=Object.getOwnPropertyDescriptors(i),d={};xd(f,(p,S)=>{let b;(b=s(p,S,i))!==!1&&(d[S]=b||p)}),Object.defineProperties(i,d)},Mv=i=>{Xm(i,(s,f)=>{if(Sl(i)&&["arguments","caller","callee"].indexOf(f)!==-1)return!1;const d=i[f];if(Sl(d)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+f+"'")})}})},Uv=(i,s)=>{const f={},d=p=>{p.forEach(S=>{f[S]=!0})};return ls(i)?d(i):d(String(i).split(s)),f},Lv=()=>{},Bv=(i,s)=>i!=null&&Number.isFinite(i=+i)?i:s;function Hv(i){return!!(i&&Sl(i.append)&&i[Hm]==="FormData"&&i[g1])}const qv=i=>{const s=new Array(10),f=(d,p)=>{if(Ad(d)){if(s.indexOf(d)>=0)return;if(Ed(d))return d;if(!("toJSON"in d)){s[p]=d;const S=ls(d)?[]:{};return xd(d,(b,C)=>{const R=f(b,p+1);!If(R)&&(S[C]=R)}),s[p]=void 0,S}}return d};return f(i,0)},jv=xu("AsyncFunction"),Gv=i=>i&&(Ad(i)||Sl(i))&&Sl(i.then)&&Sl(i.catch),Qm=((i,s)=>i?setImmediate:s?((f,d)=>(nc.addEventListener("message",({source:p,data:S})=>{p===nc&&S===f&&d.length&&d.shift()()},!1),p=>{d.push(p),nc.postMessage(f,"*")}))(`axios@${Math.random()}`,[]):f=>setTimeout(f))(typeof setImmediate=="function",Sl(nc.postMessage)),Yv=typeof queueMicrotask<"u"?queueMicrotask.bind(nc):typeof process<"u"&&process.nextTick||Qm,Xv=i=>i!=null&&Sl(i[g1]),j={isArray:ls,isArrayBuffer:qm,isBuffer:Ed,isFormData:gv,isArrayBufferView:av,isString:iv,isNumber:jm,isBoolean:rv,isObject:Ad,isPlainObject:Ph,isEmptyObject:cv,isReadableStream:mv,isRequest:yv,isResponse:vv,isHeaders:Sv,isUndefined:If,isDate:fv,isFile:sv,isBlob:ov,isRegExp:Nv,isFunction:Sl,isStream:hv,isURLSearchParams:pv,isTypedArray:wv,isFileList:dv,forEach:xd,merge:tp,extend:bv,trim:_v,stripBOM:Ev,inherits:Av,toFlatObject:xv,kindOf:p1,kindOfTest:xu,endsWith:Tv,toArray:Ov,forEachEntry:Rv,matchAll:Cv,isHTMLForm:zv,hasOwnProperty:Lp,hasOwnProp:Lp,reduceDescriptors:Xm,freezeMethods:Mv,toObjectSet:Uv,toCamelCase:Dv,noop:Lv,toFiniteNumber:Bv,findKey:Gm,global:nc,isContextDefined:Ym,isSpecCompliantForm:Hv,toJSONObject:qv,isAsyncFn:jv,isThenable:Gv,setImmediate:Qm,asap:Yv,isIterable:Xv};function Ut(i,s,f,d,p){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=i,this.name="AxiosError",s&&(this.code=s),f&&(this.config=f),d&&(this.request=d),p&&(this.response=p,this.status=p.status?p.status:null)}j.inherits(Ut,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.status}}});const Zm=Ut.prototype,Km={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(i=>{Km[i]={value:i}});Object.defineProperties(Ut,Km);Object.defineProperty(Zm,"isAxiosError",{value:!0});Ut.from=(i,s,f,d,p,S)=>{const b=Object.create(Zm);j.toFlatObject(i,b,function(M){return M!==Error.prototype},A=>A!=="isAxiosError");const C=i&&i.message?i.message:"Error",R=s==null&&i?i.code:s;return Ut.call(b,C,R,f,d,p),i&&b.cause==null&&Object.defineProperty(b,"cause",{value:i,configurable:!0}),b.name=i&&i.name||"Error",S&&Object.assign(b,S),b};const Qv=null;function ep(i){return j.isPlainObject(i)||j.isArray(i)}function Vm(i){return j.endsWith(i,"[]")?i.slice(0,-2):i}function Bp(i,s,f){return i?i.concat(s).map(function(p,S){return p=Vm(p),!f&&S?"["+p+"]":p}).join(f?".":""):s}function Zv(i){return j.isArray(i)&&!i.some(ep)}const Kv=j.toFlatObject(j,{},null,function(s){return/^is[A-Z]/.test(s)});function y1(i,s,f){if(!j.isObject(i))throw new TypeError("target must be an object");s=s||new FormData,f=j.toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,function(tt,k){return!j.isUndefined(k[tt])});const d=f.metaTokens,p=f.visitor||M,S=f.dots,b=f.indexes,R=(f.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(s);if(!j.isFunction(p))throw new TypeError("visitor must be a function");function A(X){if(X===null)return"";if(j.isDate(X))return X.toISOString();if(j.isBoolean(X))return X.toString();if(!R&&j.isBlob(X))throw new Ut("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(X)||j.isTypedArray(X)?R&&typeof Blob=="function"?new Blob([X]):Buffer.from(X):X}function M(X,tt,k){let dt=X;if(X&&!k&&typeof X=="object"){if(j.endsWith(tt,"{}"))tt=d?tt:tt.slice(0,-2),X=JSON.stringify(X);else if(j.isArray(X)&&Zv(X)||(j.isFileList(X)||j.endsWith(tt,"[]"))&&(dt=j.toArray(X)))return tt=Vm(tt),dt.forEach(function(ct,pt){!(j.isUndefined(ct)||ct===null)&&s.append(b===!0?Bp([tt],pt,S):b===null?tt:tt+"[]",A(ct))}),!1}return ep(X)?!0:(s.append(Bp(k,tt,S),A(X)),!1)}const B=[],et=Object.assign(Kv,{defaultVisitor:M,convertValue:A,isVisitable:ep});function rt(X,tt){if(!j.isUndefined(X)){if(B.indexOf(X)!==-1)throw Error("Circular reference detected in "+tt.join("."));B.push(X),j.forEach(X,function(dt,xt){(!(j.isUndefined(dt)||dt===null)&&p.call(s,dt,j.isString(xt)?xt.trim():xt,tt,et))===!0&&rt(dt,tt?tt.concat(xt):[xt])}),B.pop()}}if(!j.isObject(i))throw new TypeError("data must be an object");return rt(i),s}function Hp(i){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g,function(d){return s[d]})}function gp(i,s){this._pairs=[],i&&y1(i,this,s)}const Jm=gp.prototype;Jm.append=function(s,f){this._pairs.push([s,f])};Jm.toString=function(s){const f=s?function(d){return s.call(this,d,Hp)}:Hp;return this._pairs.map(function(p){return f(p[0])+"="+f(p[1])},"").join("&")};function Vv(i){return encodeURIComponent(i).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Fm(i,s,f){if(!s)return i;const d=f&&f.encode||Vv;j.isFunction(f)&&(f={serialize:f});const p=f&&f.serialize;let S;if(p?S=p(s,f):S=j.isURLSearchParams(s)?s.toString():new gp(s,f).toString(d),S){const b=i.indexOf("#");b!==-1&&(i=i.slice(0,b)),i+=(i.indexOf("?")===-1?"?":"&")+S}return i}class qp{constructor(){this.handlers=[]}use(s,f,d){return this.handlers.push({fulfilled:s,rejected:f,synchronous:d?d.synchronous:!1,runWhen:d?d.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){j.forEach(this.handlers,function(d){d!==null&&s(d)})}}const Wm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jv=typeof URLSearchParams<"u"?URLSearchParams:gp,Fv=typeof FormData<"u"?FormData:null,Wv=typeof Blob<"u"?Blob:null,$v={isBrowser:!0,classes:{URLSearchParams:Jv,FormData:Fv,Blob:Wv},protocols:["http","https","file","blob","url","data"]},pp=typeof window<"u"&&typeof document<"u",np=typeof navigator=="object"&&navigator||void 0,Iv=pp&&(!np||["ReactNative","NativeScript","NS"].indexOf(np.product)<0),kv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Pv=pp&&window.location.href||"http://localhost",tS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pp,hasStandardBrowserEnv:Iv,hasStandardBrowserWebWorkerEnv:kv,navigator:np,origin:Pv},Symbol.toStringTag,{value:"Module"})),Mn={...tS,...$v};function eS(i,s){return y1(i,new Mn.classes.URLSearchParams,{visitor:function(f,d,p,S){return Mn.isNode&&j.isBuffer(f)?(this.append(d,f.toString("base64")),!1):S.defaultVisitor.apply(this,arguments)},...s})}function nS(i){return j.matchAll(/\w+|\[(\w*)]/g,i).map(s=>s[0]==="[]"?"":s[1]||s[0])}function lS(i){const s={},f=Object.keys(i);let d;const p=f.length;let S;for(d=0;d=f.length;return b=!b&&j.isArray(p)?p.length:b,R?(j.hasOwnProp(p,b)?p[b]=[p[b],d]:p[b]=d,!C):((!p[b]||!j.isObject(p[b]))&&(p[b]=[]),s(f,d,p[b],S)&&j.isArray(p[b])&&(p[b]=lS(p[b])),!C)}if(j.isFormData(i)&&j.isFunction(i.entries)){const f={};return j.forEachEntry(i,(d,p)=>{s(nS(d),p,f,0)}),f}return null}function uS(i,s,f){if(j.isString(i))try{return(s||JSON.parse)(i),j.trim(i)}catch(d){if(d.name!=="SyntaxError")throw d}return(f||JSON.stringify)(i)}const Td={transitional:Wm,adapter:["xhr","http","fetch"],transformRequest:[function(s,f){const d=f.getContentType()||"",p=d.indexOf("application/json")>-1,S=j.isObject(s);if(S&&j.isHTMLForm(s)&&(s=new FormData(s)),j.isFormData(s))return p?JSON.stringify($m(s)):s;if(j.isArrayBuffer(s)||j.isBuffer(s)||j.isStream(s)||j.isFile(s)||j.isBlob(s)||j.isReadableStream(s))return s;if(j.isArrayBufferView(s))return s.buffer;if(j.isURLSearchParams(s))return f.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let C;if(S){if(d.indexOf("application/x-www-form-urlencoded")>-1)return eS(s,this.formSerializer).toString();if((C=j.isFileList(s))||d.indexOf("multipart/form-data")>-1){const R=this.env&&this.env.FormData;return y1(C?{"files[]":s}:s,R&&new R,this.formSerializer)}}return S||p?(f.setContentType("application/json",!1),uS(s)):s}],transformResponse:[function(s){const f=this.transitional||Td.transitional,d=f&&f.forcedJSONParsing,p=this.responseType==="json";if(j.isResponse(s)||j.isReadableStream(s))return s;if(s&&j.isString(s)&&(d&&!this.responseType||p)){const b=!(f&&f.silentJSONParsing)&&p;try{return JSON.parse(s,this.parseReviver)}catch(C){if(b)throw C.name==="SyntaxError"?Ut.from(C,Ut.ERR_BAD_RESPONSE,this,null,this.response):C}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Mn.classes.FormData,Blob:Mn.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],i=>{Td.headers[i]={}});const aS=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iS=i=>{const s={};let f,d,p;return i&&i.split(` `).forEach(function(b){p=b.indexOf(":"),f=b.substring(0,p).trim().toLowerCase(),d=b.substring(p+1).trim(),!(!f||s[f]&&aS[f])&&(f==="set-cookie"?s[f]?s[f].push(d):s[f]=[d]:s[f]=s[f]?s[f]+", "+d:d)}),s},jp=Symbol("internals");function pd(i){return i&&String(i).trim().toLowerCase()}function t1(i){return i===!1||i==null?i:j.isArray(i)?i.map(t1):String(i)}function rS(i){const s=Object.create(null),f=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let d;for(;d=f.exec(i);)s[d[1]]=d[2];return s}const cS=i=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());function Xg(i,s,f,d,p){if(j.isFunction(d))return d.call(this,s,f);if(p&&(s=f),!!j.isString(s)){if(j.isString(d))return s.indexOf(d)!==-1;if(j.isRegExp(d))return d.test(s)}}function fS(i){return i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,f,d)=>f.toUpperCase()+d)}function sS(i,s){const f=j.toCamelCase(" "+s);["get","set","has"].forEach(d=>{Object.defineProperty(i,d+f,{value:function(p,S,b){return this[d].call(this,s,p,S,b)},configurable:!0})})}let _l=class{constructor(s){s&&this.set(s)}set(s,f,d){const p=this;function S(C,R,A){const M=pd(R);if(!M)throw new Error("header name must be a non-empty string");const B=j.findKey(p,M);(!B||p[B]===void 0||A===!0||A===void 0&&p[B]!==!1)&&(p[B||R]=t1(C))}const b=(C,R)=>j.forEach(C,(A,M)=>S(A,M,R));if(j.isPlainObject(s)||s instanceof this.constructor)b(s,f);else if(j.isString(s)&&(s=s.trim())&&!cS(s))b(iS(s),f);else if(j.isObject(s)&&j.isIterable(s)){let C={},R,A;for(const M of s){if(!j.isArray(M))throw TypeError("Object iterator must return a key-value pair");C[A=M[0]]=(R=C[A])?j.isArray(R)?[...R,M[1]]:[R,M[1]]:M[1]}b(C,f)}else s!=null&&S(f,s,d);return this}get(s,f){if(s=pd(s),s){const d=j.findKey(this,s);if(d){const p=this[d];if(!f)return p;if(f===!0)return rS(p);if(j.isFunction(f))return f.call(this,p,d);if(j.isRegExp(f))return f.exec(p);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,f){if(s=pd(s),s){const d=j.findKey(this,s);return!!(d&&this[d]!==void 0&&(!f||Xg(this,this[d],d,f)))}return!1}delete(s,f){const d=this;let p=!1;function S(b){if(b=pd(b),b){const C=j.findKey(d,b);C&&(!f||Xg(d,d[C],C,f))&&(delete d[C],p=!0)}}return j.isArray(s)?s.forEach(S):S(s),p}clear(s){const f=Object.keys(this);let d=f.length,p=!1;for(;d--;){const S=f[d];(!s||Xg(this,this[S],S,s,!0))&&(delete this[S],p=!0)}return p}normalize(s){const f=this,d={};return j.forEach(this,(p,S)=>{const b=j.findKey(d,S);if(b){f[b]=t1(p),delete f[S];return}const C=s?fS(S):String(S).trim();C!==S&&delete f[S],f[C]=t1(p),d[C]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const f=Object.create(null);return j.forEach(this,(d,p)=>{d!=null&&d!==!1&&(f[p]=s&&j.isArray(d)?d.join(", "):d)}),f}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,f])=>s+": "+f).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...f){const d=new this(s);return f.forEach(p=>d.set(p)),d}static accessor(s){const d=(this[jp]=this[jp]={accessors:{}}).accessors,p=this.prototype;function S(b){const C=pd(b);d[C]||(sS(p,b),d[C]=!0)}return j.isArray(s)?s.forEach(S):S(s),this}};_l.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.reduceDescriptors(_l.prototype,({value:i},s)=>{let f=s[0].toUpperCase()+s.slice(1);return{get:()=>i,set(d){this[f]=d}}});j.freezeMethods(_l);function Qg(i,s){const f=this||Td,d=s||f,p=_l.from(d.headers);let S=d.data;return j.forEach(i,function(C){S=C.call(f,S,p.normalize(),s?s.status:void 0)}),p.normalize(),S}function Im(i){return!!(i&&i.__CANCEL__)}function us(i,s,f){Ut.call(this,i??"canceled",Ut.ERR_CANCELED,s,f),this.name="CanceledError"}j.inherits(us,Ut,{__CANCEL__:!0});function km(i,s,f){const d=f.config.validateStatus;!f.status||!d||d(f.status)?i(f):s(new Ut("Request failed with status code "+f.status,[Ut.ERR_BAD_REQUEST,Ut.ERR_BAD_RESPONSE][Math.floor(f.status/100)-4],f.config,f.request,f))}function oS(i){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(i);return s&&s[1]||""}function dS(i,s){i=i||10;const f=new Array(i),d=new Array(i);let p=0,S=0,b;return s=s!==void 0?s:1e3,function(R){const A=Date.now(),M=d[S];b||(b=A),f[p]=R,d[p]=A;let B=S,et=0;for(;B!==p;)et+=f[B++],B=B%i;if(p=(p+1)%i,p===S&&(S=(S+1)%i),A-b{f=M,p=null,S&&(clearTimeout(S),S=null),i(...A)};return[(...A)=>{const M=Date.now(),B=M-f;B>=d?b(A,M):(p=A,S||(S=setTimeout(()=>{S=null,b(p)},d-B)))},()=>p&&b(p)]}const r1=(i,s,f=3)=>{let d=0;const p=dS(50,250);return hS(S=>{const b=S.loaded,C=S.lengthComputable?S.total:void 0,R=b-d,A=p(R),M=b<=C;d=b;const B={loaded:b,total:C,progress:C?b/C:void 0,bytes:R,rate:A||void 0,estimated:A&&C&&M?(C-b)/A:void 0,event:S,lengthComputable:C!=null,[s?"download":"upload"]:!0};i(B)},f)},Gp=(i,s)=>{const f=i!=null;return[d=>s[0]({lengthComputable:f,total:i,loaded:d}),s[1]]},Yp=i=>(...s)=>j.asap(()=>i(...s)),gS=Mn.hasStandardBrowserEnv?((i,s)=>f=>(f=new URL(f,Mn.origin),i.protocol===f.protocol&&i.host===f.host&&(s||i.port===f.port)))(new URL(Mn.origin),Mn.navigator&&/(msie|trident)/i.test(Mn.navigator.userAgent)):()=>!0,pS=Mn.hasStandardBrowserEnv?{write(i,s,f,d,p,S,b){if(typeof document>"u")return;const C=[`${i}=${encodeURIComponent(s)}`];j.isNumber(f)&&C.push(`expires=${new Date(f).toUTCString()}`),j.isString(d)&&C.push(`path=${d}`),j.isString(p)&&C.push(`domain=${p}`),S===!0&&C.push("secure"),j.isString(b)&&C.push(`SameSite=${b}`),document.cookie=C.join("; ")},read(i){if(typeof document>"u")return null;const s=document.cookie.match(new RegExp("(?:^|; )"+i+"=([^;]*)"));return s?decodeURIComponent(s[1]):null},remove(i){this.write(i,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function mS(i){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)}function yS(i,s){return s?i.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):i}function Pm(i,s,f){let d=!mS(s);return i&&(d||f==!1)?yS(i,s):s}const Xp=i=>i instanceof _l?{...i}:i;function rc(i,s){s=s||{};const f={};function d(A,M,B,et){return j.isPlainObject(A)&&j.isPlainObject(M)?j.merge.call({caseless:et},A,M):j.isPlainObject(M)?j.merge({},M):j.isArray(M)?M.slice():M}function p(A,M,B,et){if(j.isUndefined(M)){if(!j.isUndefined(A))return d(void 0,A,B,et)}else return d(A,M,B,et)}function S(A,M){if(!j.isUndefined(M))return d(void 0,M)}function b(A,M){if(j.isUndefined(M)){if(!j.isUndefined(A))return d(void 0,A)}else return d(void 0,M)}function C(A,M,B){if(B in s)return d(A,M);if(B in i)return d(void 0,A)}const R={url:S,method:S,data:S,baseURL:b,transformRequest:b,transformResponse:b,paramsSerializer:b,timeout:b,timeoutMessage:b,withCredentials:b,withXSRFToken:b,adapter:b,responseType:b,xsrfCookieName:b,xsrfHeaderName:b,onUploadProgress:b,onDownloadProgress:b,decompress:b,maxContentLength:b,maxBodyLength:b,beforeRedirect:b,transport:b,httpAgent:b,httpsAgent:b,cancelToken:b,socketPath:b,responseEncoding:b,validateStatus:C,headers:(A,M,B)=>p(Xp(A),Xp(M),B,!0)};return j.forEach(Object.keys({...i,...s}),function(M){const B=R[M]||p,et=B(i[M],s[M],M);j.isUndefined(et)&&B!==C||(f[M]=et)}),f}const ty=i=>{const s=rc({},i);let{data:f,withXSRFToken:d,xsrfHeaderName:p,xsrfCookieName:S,headers:b,auth:C}=s;if(s.headers=b=_l.from(b),s.url=Fm(Pm(s.baseURL,s.url,s.allowAbsoluteUrls),i.params,i.paramsSerializer),C&&b.set("Authorization","Basic "+btoa((C.username||"")+":"+(C.password?unescape(encodeURIComponent(C.password)):""))),j.isFormData(f)){if(Mn.hasStandardBrowserEnv||Mn.hasStandardBrowserWebWorkerEnv)b.setContentType(void 0);else if(j.isFunction(f.getHeaders)){const R=f.getHeaders(),A=["content-type","content-length"];Object.entries(R).forEach(([M,B])=>{A.includes(M.toLowerCase())&&b.set(M,B)})}}if(Mn.hasStandardBrowserEnv&&(d&&j.isFunction(d)&&(d=d(s)),d||d!==!1&&gS(s.url))){const R=p&&S&&pS.read(S);R&&b.set(p,R)}return s},vS=typeof XMLHttpRequest<"u",SS=vS&&function(i){return new Promise(function(f,d){const p=ty(i);let S=p.data;const b=_l.from(p.headers).normalize();let{responseType:C,onUploadProgress:R,onDownloadProgress:A}=p,M,B,et,rt,X;function tt(){rt&&rt(),X&&X(),p.cancelToken&&p.cancelToken.unsubscribe(M),p.signal&&p.signal.removeEventListener("abort",M)}let k=new XMLHttpRequest;k.open(p.method.toUpperCase(),p.url,!0),k.timeout=p.timeout;function dt(){if(!k)return;const ct=_l.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),ut={data:!C||C==="text"||C==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:ct,config:i,request:k};km(function(P){f(P),tt()},function(P){d(P),tt()},ut),k=null}"onloadend"in k?k.onloadend=dt:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(dt)},k.onabort=function(){k&&(d(new Ut("Request aborted",Ut.ECONNABORTED,i,k)),k=null)},k.onerror=function(pt){const ut=pt&&pt.message?pt.message:"Network Error",vt=new Ut(ut,Ut.ERR_NETWORK,i,k);vt.event=pt||null,d(vt),k=null},k.ontimeout=function(){let pt=p.timeout?"timeout of "+p.timeout+"ms exceeded":"timeout exceeded";const ut=p.transitional||Wm;p.timeoutErrorMessage&&(pt=p.timeoutErrorMessage),d(new Ut(pt,ut.clarifyTimeoutError?Ut.ETIMEDOUT:Ut.ECONNABORTED,i,k)),k=null},S===void 0&&b.setContentType(null),"setRequestHeader"in k&&j.forEach(b.toJSON(),function(pt,ut){k.setRequestHeader(ut,pt)}),j.isUndefined(p.withCredentials)||(k.withCredentials=!!p.withCredentials),C&&C!=="json"&&(k.responseType=p.responseType),A&&([et,X]=r1(A,!0),k.addEventListener("progress",et)),R&&k.upload&&([B,rt]=r1(R),k.upload.addEventListener("progress",B),k.upload.addEventListener("loadend",rt)),(p.cancelToken||p.signal)&&(M=ct=>{k&&(d(!ct||ct.type?new us(null,i,k):ct),k.abort(),k=null)},p.cancelToken&&p.cancelToken.subscribe(M),p.signal&&(p.signal.aborted?M():p.signal.addEventListener("abort",M)));const xt=oS(p.url);if(xt&&Mn.protocols.indexOf(xt)===-1){d(new Ut("Unsupported protocol "+xt+":",Ut.ERR_BAD_REQUEST,i));return}k.send(S||null)})},_S=(i,s)=>{const{length:f}=i=i?i.filter(Boolean):[];if(s||f){let d=new AbortController,p;const S=function(A){if(!p){p=!0,C();const M=A instanceof Error?A:this.reason;d.abort(M instanceof Ut?M:new us(M instanceof Error?M.message:M))}};let b=s&&setTimeout(()=>{b=null,S(new Ut(`timeout ${s} of ms exceeded`,Ut.ETIMEDOUT))},s);const C=()=>{i&&(b&&clearTimeout(b),b=null,i.forEach(A=>{A.unsubscribe?A.unsubscribe(S):A.removeEventListener("abort",S)}),i=null)};i.forEach(A=>A.addEventListener("abort",S));const{signal:R}=d;return R.unsubscribe=()=>j.asap(C),R}},bS=function*(i,s){let f=i.byteLength;if(f{const p=ES(i,s);let S=0,b,C=R=>{b||(b=!0,d&&d(R))};return new ReadableStream({async pull(R){try{const{done:A,value:M}=await p.next();if(A){C(),R.close();return}let B=M.byteLength;if(f){let et=S+=B;f(et)}R.enqueue(new Uint8Array(M))}catch(A){throw C(A),A}},cancel(R){return C(R),p.return()}},{highWaterMark:2})},Zp=64*1024,{isFunction:Jh}=j,xS=(({Request:i,Response:s})=>({Request:i,Response:s}))(j.global),{ReadableStream:Kp,TextEncoder:Vp}=j.global,Jp=(i,...s)=>{try{return!!i(...s)}catch{return!1}},TS=i=>{i=j.merge.call({skipUndefined:!0},xS,i);const{fetch:s,Request:f,Response:d}=i,p=s?Jh(s):typeof fetch=="function",S=Jh(f),b=Jh(d);if(!p)return!1;const C=p&&Jh(Kp),R=p&&(typeof Vp=="function"?(X=>tt=>X.encode(tt))(new Vp):async X=>new Uint8Array(await new f(X).arrayBuffer())),A=S&&C&&Jp(()=>{let X=!1;const tt=new f(Mn.origin,{body:new Kp,method:"POST",get duplex(){return X=!0,"half"}}).headers.has("Content-Type");return X&&!tt}),M=b&&C&&Jp(()=>j.isReadableStream(new d("").body)),B={stream:M&&(X=>X.body)};p&&["text","arrayBuffer","blob","formData","stream"].forEach(X=>{!B[X]&&(B[X]=(tt,k)=>{let dt=tt&&tt[X];if(dt)return dt.call(tt);throw new Ut(`Response type '${X}' is not supported`,Ut.ERR_NOT_SUPPORT,k)})});const et=async X=>{if(X==null)return 0;if(j.isBlob(X))return X.size;if(j.isSpecCompliantForm(X))return(await new f(Mn.origin,{method:"POST",body:X}).arrayBuffer()).byteLength;if(j.isArrayBufferView(X)||j.isArrayBuffer(X))return X.byteLength;if(j.isURLSearchParams(X)&&(X=X+""),j.isString(X))return(await R(X)).byteLength},rt=async(X,tt)=>{const k=j.toFiniteNumber(X.getContentLength());return k??et(tt)};return async X=>{let{url:tt,method:k,data:dt,signal:xt,cancelToken:ct,timeout:pt,onDownloadProgress:ut,onUploadProgress:vt,responseType:P,headers:ee,withCredentials:xe="same-origin",fetchOptions:bl}=ty(X),cn=s||fetch;P=P?(P+"").toLowerCase():"text";let Ce=_S([xt,ct&&ct.toAbortSignal()],pt),fn=null;const Me=Ce&&Ce.unsubscribe&&(()=>{Ce.unsubscribe()});let en;try{if(vt&&A&&k!=="get"&&k!=="head"&&(en=await rt(ee,dt))!==0){let T=new f(tt,{method:"POST",body:dt,duplex:"half"}),Q;if(j.isFormData(dt)&&(Q=T.headers.get("content-type"))&&ee.setContentType(Q),T.body){const[lt,it]=Gp(en,r1(Yp(vt)));dt=Qp(T.body,Zp,lt,it)}}j.isString(xe)||(xe=xe?"include":"omit");const Y=S&&"credentials"in f.prototype,nt={...bl,signal:Ce,method:k.toUpperCase(),headers:ee.normalize().toJSON(),body:dt,duplex:"half",credentials:Y?xe:void 0};fn=S&&new f(tt,nt);let st=await(S?cn(fn,bl):cn(tt,nt));const Nt=M&&(P==="stream"||P==="response");if(M&&(ut||Nt&&Me)){const T={};["status","statusText","headers"].forEach(mt=>{T[mt]=st[mt]});const Q=j.toFiniteNumber(st.headers.get("content-length")),[lt,it]=ut&&Gp(Q,r1(Yp(ut),!0))||[];st=new d(Qp(st.body,Zp,lt,()=>{it&&it(),Me&&Me()}),T)}P=P||"text";let Ht=await B[j.findKey(B,P)||"text"](st,X);return!Nt&&Me&&Me(),await new Promise((T,Q)=>{km(T,Q,{data:Ht,headers:_l.from(st.headers),status:st.status,statusText:st.statusText,config:X,request:fn})})}catch(Y){throw Me&&Me(),Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)?Object.assign(new Ut("Network Error",Ut.ERR_NETWORK,X,fn),{cause:Y.cause||Y}):Ut.from(Y,Y&&Y.code,X,fn)}}},OS=new Map,ey=i=>{let s=i&&i.env||{};const{fetch:f,Request:d,Response:p}=s,S=[d,p,f];let b=S.length,C=b,R,A,M=OS;for(;C--;)R=S[C],A=M.get(R),A===void 0&&M.set(R,A=C?new Map:TS(s)),M=A;return A};ey();const mp={http:Qv,xhr:SS,fetch:{get:ey}};j.forEach(mp,(i,s)=>{if(i){try{Object.defineProperty(i,"name",{value:s})}catch{}Object.defineProperty(i,"adapterName",{value:s})}});const Fp=i=>`- ${i}`,wS=i=>j.isFunction(i)||i===null||i===!1;function RS(i,s){i=j.isArray(i)?i:[i];const{length:f}=i;let d,p;const S={};for(let b=0;b`adapter ${R} `+(A===!1?"is not supported by the environment":"is not available in the build"));let C=f?b.length>1?`since : `+b.map(Fp).join(` `):" "+Fp(b[0]):"as no adapter specified";throw new Ut("There is no suitable adapter to dispatch the request "+C,"ERR_NOT_SUPPORT")}return p}const ny={getAdapter:RS,adapters:mp};function Zg(i){if(i.cancelToken&&i.cancelToken.throwIfRequested(),i.signal&&i.signal.aborted)throw new us(null,i)}function Wp(i){return Zg(i),i.headers=_l.from(i.headers),i.data=Qg.call(i,i.transformRequest),["post","put","patch"].indexOf(i.method)!==-1&&i.headers.setContentType("application/x-www-form-urlencoded",!1),ny.getAdapter(i.adapter||Td.adapter,i)(i).then(function(d){return Zg(i),d.data=Qg.call(i,i.transformResponse,d),d.headers=_l.from(d.headers),d},function(d){return Im(d)||(Zg(i),d&&d.response&&(d.response.data=Qg.call(i,i.transformResponse,d.response),d.response.headers=_l.from(d.response.headers))),Promise.reject(d)})}const ly="1.13.1",v1={};["object","boolean","number","function","string","symbol"].forEach((i,s)=>{v1[i]=function(d){return typeof d===i||"a"+(s<1?"n ":" ")+i}});const $p={};v1.transitional=function(s,f,d){function p(S,b){return"[Axios v"+ly+"] Transitional option '"+S+"'"+b+(d?". "+d:"")}return(S,b,C)=>{if(s===!1)throw new Ut(p(b," has been removed"+(f?" in "+f:"")),Ut.ERR_DEPRECATED);return f&&!$p[b]&&($p[b]=!0,console.warn(p(b," has been deprecated since v"+f+" and will be removed in the near future"))),s?s(S,b,C):!0}};v1.spelling=function(s){return(f,d)=>(console.warn(`${d} is likely a misspelling of ${s}`),!0)};function CS(i,s,f){if(typeof i!="object")throw new Ut("options must be an object",Ut.ERR_BAD_OPTION_VALUE);const d=Object.keys(i);let p=d.length;for(;p-- >0;){const S=d[p],b=s[S];if(b){const C=i[S],R=C===void 0||b(C,S,i);if(R!==!0)throw new Ut("option "+S+" must be "+R,Ut.ERR_BAD_OPTION_VALUE);continue}if(f!==!0)throw new Ut("Unknown option "+S,Ut.ERR_BAD_OPTION)}}const e1={assertOptions:CS,validators:v1},la=e1.validators;let uc=class{constructor(s){this.defaults=s||{},this.interceptors={request:new qp,response:new qp}}async request(s,f){try{return await this._request(s,f)}catch(d){if(d instanceof Error){let p={};Error.captureStackTrace?Error.captureStackTrace(p):p=new Error;const S=p.stack?p.stack.replace(/^.+\n/,""):"";try{d.stack?S&&!String(d.stack).endsWith(S.replace(/^.+\n.+\n/,""))&&(d.stack+=` `+S):d.stack=S}catch{}}throw d}}_request(s,f){typeof s=="string"?(f=f||{},f.url=s):f=s||{},f=rc(this.defaults,f);const{transitional:d,paramsSerializer:p,headers:S}=f;d!==void 0&&e1.assertOptions(d,{silentJSONParsing:la.transitional(la.boolean),forcedJSONParsing:la.transitional(la.boolean),clarifyTimeoutError:la.transitional(la.boolean)},!1),p!=null&&(j.isFunction(p)?f.paramsSerializer={serialize:p}:e1.assertOptions(p,{encode:la.function,serialize:la.function},!0)),f.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?f.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:f.allowAbsoluteUrls=!0),e1.assertOptions(f,{baseUrl:la.spelling("baseURL"),withXsrfToken:la.spelling("withXSRFToken")},!0),f.method=(f.method||this.defaults.method||"get").toLowerCase();let b=S&&j.merge(S.common,S[f.method]);S&&j.forEach(["delete","get","head","post","put","patch","common"],X=>{delete S[X]}),f.headers=_l.concat(b,S);const C=[];let R=!0;this.interceptors.request.forEach(function(tt){typeof tt.runWhen=="function"&&tt.runWhen(f)===!1||(R=R&&tt.synchronous,C.unshift(tt.fulfilled,tt.rejected))});const A=[];this.interceptors.response.forEach(function(tt){A.push(tt.fulfilled,tt.rejected)});let M,B=0,et;if(!R){const X=[Wp.bind(this),void 0];for(X.unshift(...C),X.push(...A),et=X.length,M=Promise.resolve(f);B{if(!d._listeners)return;let S=d._listeners.length;for(;S-- >0;)d._listeners[S](p);d._listeners=null}),this.promise.then=p=>{let S;const b=new Promise(C=>{d.subscribe(C),S=C}).then(p);return b.cancel=function(){d.unsubscribe(S)},b},s(function(S,b,C){d.reason||(d.reason=new us(S,b,C),f(d.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const f=this._listeners.indexOf(s);f!==-1&&this._listeners.splice(f,1)}toAbortSignal(){const s=new AbortController,f=d=>{s.abort(d)};return this.subscribe(f),s.signal.unsubscribe=()=>this.unsubscribe(f),s.signal}static source(){let s;return{token:new uy(function(p){s=p}),cancel:s}}};function DS(i){return function(f){return i.apply(null,f)}}function NS(i){return j.isObject(i)&&i.isAxiosError===!0}const lp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(lp).forEach(([i,s])=>{lp[s]=i});function ay(i){const s=new uc(i),f=Bm(uc.prototype.request,s);return j.extend(f,uc.prototype,s,{allOwnKeys:!0}),j.extend(f,s,null,{allOwnKeys:!0}),f.create=function(p){return ay(rc(i,p))},f}const qe=ay(Td);qe.Axios=uc;qe.CanceledError=us;qe.CancelToken=zS;qe.isCancel=Im;qe.VERSION=ly;qe.toFormData=y1;qe.AxiosError=Ut;qe.Cancel=qe.CanceledError;qe.all=function(s){return Promise.all(s)};qe.spread=DS;qe.isAxiosError=NS;qe.mergeConfig=rc;qe.AxiosHeaders=_l;qe.formToJSON=i=>$m(j.isHTMLForm(i)?new FormData(i):i);qe.getAdapter=ny.getAdapter;qe.HttpStatusCode=lp;qe.default=qe;const{Axios:g2,AxiosError:p2,CanceledError:m2,isCancel:y2,CancelToken:v2,VERSION:S2,all:_2,Cancel:b2,isAxiosError:E2,spread:A2,toFormData:x2,AxiosHeaders:T2,HttpStatusCode:O2,formToJSON:w2,getAdapter:R2,mergeConfig:C2}=qe,Ip="https://api.irail.be",MS=3,US=(i,s)=>({reloadTrainSchedule:(async()=>{try{s(rn.loadTrainSchedule({}));const d=new Date,p=R=>R.toString().padStart(2,"0"),S=_d.flatten(await Promise.all(_d.range(0,MS).map(async R=>{const A=p(d.getDate()),M=p(d.getMonth()+1),B=d.getFullYear().toString().slice(-2),et=`${A}${M}${B}`,rt=p(d.getHours()+R),X=p(d.getMinutes()),tt=`${rt}${X}`;return(await qe.get(`${Ip}/liveboard?station=${i.selectedLocation}&date=${et}&time=${tt}&format=json&lang=en&alerts=true`)).data.departures.departure}))),C=(await qe.get(`${Ip}/stations?format=json&lang=en&alerts=true`)).data.station;s(rn.loadTrainScheduleSuccess({departures:S,stations:C}))}catch(d){s(rn.loadTrainScheduleError({error:d}))}})});function iy(i,s){window.dispatchEvent(new StorageEvent("storage",{key:i,newValue:s}))}const kp=(i,s)=>{const f=JSON.stringify(s);window.localStorage.setItem(i,f),iy(i,f)},LS=i=>{window.localStorage.removeItem(i),iy(i,null)},Pp=i=>window.localStorage.getItem(i),BS=i=>(window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)),HS=()=>{throw Error("useLocalStorage is a client-only hook")};function qS(i,s){const f=()=>Pp(i),d=Je.useSyncExternalStore(BS,f,HS),p=Je.useCallback(S=>{try{const b=typeof S=="function"?S(JSON.parse(d)):S;b==null?LS(i):kp(i,b)}catch(b){console.warn(b)}},[i,d]);return Je.useEffect(()=>{Pp(i)===null&&typeof s<"u"&&kp(i,s)},[i,s]),[d?JSON.parse(d):s,p]}var ry={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},tm=yn.createContext&&yn.createContext(ry),jS=["attr","size","title"];function GS(i,s){if(i==null)return{};var f=YS(i,s),d,p;if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(i);for(p=0;p=0)&&Object.prototype.propertyIsEnumerable.call(i,d)&&(f[d]=i[d])}return f}function YS(i,s){if(i==null)return{};var f={};for(var d in i)if(Object.prototype.hasOwnProperty.call(i,d)){if(s.indexOf(d)>=0)continue;f[d]=i[d]}return f}function c1(){return c1=Object.assign?Object.assign.bind():function(i){for(var s=1;syn.createElement(s.tag,f1({key:f},s.attr),cy(s.child)))}function S1(i){return s=>yn.createElement(KS,c1({attr:f1({},i.attr)},s),cy(i.child))}function KS(i){var s=f=>{var{attr:d,size:p,title:S}=i,b=GS(i,jS),C=p||f.size||"1em",R;return f.className&&(R=f.className),i.className&&(R=(R?R+" ":"")+i.className),yn.createElement("svg",c1({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},f.attr,d,b,{className:R,style:f1(f1({color:i.color||f.color},f.style),i.style),height:C,width:C,xmlns:"http://www.w3.org/2000/svg"}),S&&yn.createElement("title",null,S),i.children)};return tm!==void 0?yn.createElement(tm.Consumer,null,f=>s(f)):s(ry)}function VS(i){return S1({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 176a80 80 0 1 0 80 80 80.24 80.24 0 0 0-80-80zm172.72 80a165.53 165.53 0 0 1-1.64 22.34l48.69 38.12a11.59 11.59 0 0 1 2.63 14.78l-46.06 79.52a11.64 11.64 0 0 1-14.14 4.93l-57.25-23a176.56 176.56 0 0 1-38.82 22.67l-8.56 60.78a11.93 11.93 0 0 1-11.51 9.86h-92.12a12 12 0 0 1-11.51-9.53l-8.56-60.78A169.3 169.3 0 0 1 151.05 393L93.8 416a11.64 11.64 0 0 1-14.14-4.92L33.6 331.57a11.59 11.59 0 0 1 2.63-14.78l48.69-38.12A174.58 174.58 0 0 1 83.28 256a165.53 165.53 0 0 1 1.64-22.34l-48.69-38.12a11.59 11.59 0 0 1-2.63-14.78l46.06-79.52a11.64 11.64 0 0 1 14.14-4.93l57.25 23a176.56 176.56 0 0 1 38.82-22.67l8.56-60.78A11.93 11.93 0 0 1 209.94 26h92.12a12 12 0 0 1 11.51 9.53l8.56 60.78A169.3 169.3 0 0 1 361 119l57.2-23a11.64 11.64 0 0 1 14.14 4.92l46.06 79.52a11.59 11.59 0 0 1-2.63 14.78l-48.69 38.12a174.58 174.58 0 0 1 1.64 22.66z"},child:[]}]})(i)}var vl=function(){return vl=Object.assign||function(s){for(var f,d=1,p=arguments.length;d0?an(as,--$l):0,Pf--,Ve===10&&(Pf=1,b1--),Ve}function Au(){return Ve=$l2||ap(Ve)>3?"":" "}function n_(i,s){for(;--s&&Au()&&!(Ve<48||Ve>102||Ve>57&&Ve<65||Ve>70&&Ve<97););return A1(i,l1()+(s<6&&ac()==32&&Au()==32))}function ip(i){for(;Au();)switch(Ve){case i:return $l;case 34:case 39:i!==34&&i!==39&&ip(Ve);break;case 40:i===41&&ip(i);break;case 92:Au();break}return $l}function l_(i,s){for(;Au()&&i+Ve!==57;)if(i+Ve===84&&ac()===47)break;return"/*"+A1(s,$l-1)+"*"+vp(i===47?i:Au())}function u_(i){for(;!ap(ac());)Au();return A1(i,$l)}function a_(i){return t_(u1("",null,null,null,[""],i=PS(i),0,[0],i))}function u1(i,s,f,d,p,S,b,C,R){for(var A=0,M=0,B=b,et=0,rt=0,X=0,tt=1,k=1,dt=1,xt=0,ct="",pt=p,ut=S,vt=d,P=ct;k;)switch(X=xt,xt=Au()){case 40:if(X!=108&&an(P,B-1)==58){n1(P+=Bt(Kg(xt),"&","&\f"),"&\f",oy(A?C[A-1]:0))!=-1&&(dt=-1);break}case 34:case 39:case 91:P+=Kg(xt);break;case 9:case 10:case 13:case 32:P+=e_(X);break;case 92:P+=n_(l1()-1,7);continue;case 47:switch(ac()){case 42:case 47:vd(i_(l_(Au(),l1()),s,f,R),R);break;default:P+="/"}break;case 123*tt:C[A++]=ua(P)*dt;case 125*tt:case 59:case 0:switch(xt){case 0:case 125:k=0;case 59+M:dt==-1&&(P=Bt(P,/\f/g,"")),rt>0&&ua(P)-B&&vd(rt>32?um(P+";",d,f,B-1,R):um(Bt(P," ","")+";",d,f,B-2,R),R);break;case 59:P+=";";default:if(vd(vt=lm(P,s,f,A,M,p,C,ct,pt=[],ut=[],B,S),S),xt===123)if(M===0)u1(P,s,vt,vt,pt,S,B,C,ut);else switch(et===99&&an(P,3)===110?100:et){case 100:case 108:case 109:case 115:u1(i,vt,vt,d&&vd(lm(i,vt,vt,0,0,p,C,ct,p,pt=[],B,ut),ut),p,ut,B,C,d?pt:ut);break;default:u1(P,vt,vt,vt,[""],ut,0,C,ut)}}A=M=rt=0,tt=dt=1,ct=P="",B=b;break;case 58:B=1+ua(P),rt=X;default:if(tt<1){if(xt==123)--tt;else if(xt==125&&tt++==0&&kS()==125)continue}switch(P+=vp(xt),xt*tt){case 38:dt=M>0?1:(P+="\f",-1);break;case 44:C[A++]=(ua(P)-1)*dt,dt=1;break;case 64:ac()===45&&(P+=Kg(Au())),et=ac(),M=B=ua(ct=P+=u_(l1())),xt++;break;case 45:X===45&&ua(P)==2&&(tt=0)}}return S}function lm(i,s,f,d,p,S,b,C,R,A,M,B){for(var et=p-1,rt=p===0?S:[""],X=hy(rt),tt=0,k=0,dt=0;tt0?rt[xt]+" "+ct:Bt(ct,/&\f/g,rt[xt])))&&(R[dt++]=pt);return E1(i,s,f,p===0?_1:C,R,A,M,B)}function i_(i,s,f,d){return E1(i,s,f,fy,vp(IS()),kf(i,2,-2),0,d)}function um(i,s,f,d,p){return E1(i,s,f,yp,kf(i,0,d),kf(i,d+1,-1),d,p)}function py(i,s,f){switch(WS(i,s)){case 5103:return fe+"print-"+i+i;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return fe+i+i;case 4789:return Sd+i+i;case 5349:case 4246:case 4810:case 6968:case 2756:return fe+i+Sd+i+Ae+i+i;case 5936:switch(an(i,s+11)){case 114:return fe+i+Ae+Bt(i,/[svh]\w+-[tblr]{2}/,"tb")+i;case 108:return fe+i+Ae+Bt(i,/[svh]\w+-[tblr]{2}/,"tb-rl")+i;case 45:return fe+i+Ae+Bt(i,/[svh]\w+-[tblr]{2}/,"lr")+i}case 6828:case 4268:case 2903:return fe+i+Ae+i+i;case 6165:return fe+i+Ae+"flex-"+i+i;case 5187:return fe+i+Bt(i,/(\w+).+(:[^]+)/,fe+"box-$1$2"+Ae+"flex-$1$2")+i;case 5443:return fe+i+Ae+"flex-item-"+Bt(i,/flex-|-self/g,"")+(La(i,/flex-|baseline/)?"":Ae+"grid-row-"+Bt(i,/flex-|-self/g,""))+i;case 4675:return fe+i+Ae+"flex-line-pack"+Bt(i,/align-content|flex-|-self/g,"")+i;case 5548:return fe+i+Ae+Bt(i,"shrink","negative")+i;case 5292:return fe+i+Ae+Bt(i,"basis","preferred-size")+i;case 6060:return fe+"box-"+Bt(i,"-grow","")+fe+i+Ae+Bt(i,"grow","positive")+i;case 4554:return fe+Bt(i,/([^-])(transform)/g,"$1"+fe+"$2")+i;case 6187:return Bt(Bt(Bt(i,/(zoom-|grab)/,fe+"$1"),/(image-set)/,fe+"$1"),i,"")+i;case 5495:case 3959:return Bt(i,/(image-set\([^]*)/,fe+"$1$`$1");case 4968:return Bt(Bt(i,/(.+:)(flex-)?(.*)/,fe+"box-pack:$3"+Ae+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fe+i+i;case 4200:if(!La(i,/flex-|baseline/))return Ae+"grid-column-align"+kf(i,s)+i;break;case 2592:case 3360:return Ae+Bt(i,"template-","")+i;case 4384:case 3616:return f&&f.some(function(d,p){return s=p,La(d.props,/grid-\w+-end/)})?~n1(i+(f=f[s].value),"span",0)?i:Ae+Bt(i,"-start","")+i+Ae+"grid-row-span:"+(~n1(f,"span",0)?La(f,/\d+/):+La(f,/\d+/)-+La(i,/\d+/))+";":Ae+Bt(i,"-start","")+i;case 4896:case 4128:return f&&f.some(function(d){return La(d.props,/grid-\w+-start/)})?i:Ae+Bt(Bt(i,"-end","-span"),"span ","")+i;case 4095:case 3583:case 4068:case 2532:return Bt(i,/(.+)-inline(.+)/,fe+"$1$2")+i;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ua(i)-1-s>6)switch(an(i,s+1)){case 109:if(an(i,s+4)!==45)break;case 102:return Bt(i,/(.+:)(.+)-([^]+)/,"$1"+fe+"$2-$3$1"+Sd+(an(i,s+3)==108?"$3":"$2-$3"))+i;case 115:return~n1(i,"stretch",0)?py(Bt(i,"stretch","fill-available"),s,f)+i:i}break;case 5152:case 5920:return Bt(i,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(d,p,S,b,C,R,A){return Ae+p+":"+S+A+(b?Ae+p+"-span:"+(C?R:+R-+S)+A:"")+i});case 4949:if(an(i,s+6)===121)return Bt(i,":",":"+fe)+i;break;case 6444:switch(an(i,an(i,14)===45?18:11)){case 120:return Bt(i,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+fe+(an(i,14)===45?"inline-":"")+"box$3$1"+fe+"$2$3$1"+Ae+"$2box$3")+i;case 100:return Bt(i,":",":"+Ae)+i}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Bt(i,"scroll-","scroll-snap-")+i}return i}function o1(i,s){for(var f="",d=0;d-1&&!i.return)switch(i.type){case yp:i.return=py(i.value,i.length,f);return;case sy:return o1([Li(i,{value:Bt(i.value,"@","@"+fe)})],d);case _1:if(i.length)return $S(f=i.props,function(p){switch(La(p,d=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Wf(Li(i,{props:[Bt(p,/:(read-\w+)/,":"+Sd+"$1")]})),Wf(Li(i,{props:[p]})),up(i,{props:nm(f,d)});break;case"::placeholder":Wf(Li(i,{props:[Bt(p,/:(plac\w+)/,":"+fe+"input-$1")]})),Wf(Li(i,{props:[Bt(p,/:(plac\w+)/,":"+Sd+"$1")]})),Wf(Li(i,{props:[Bt(p,/:(plac\w+)/,Ae+"input-$1")]})),Wf(Li(i,{props:[p]})),up(i,{props:nm(f,d)});break}return""})}}var o_={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ql={},ts=typeof process<"u"&&ql!==void 0&&(ql.REACT_APP_SC_ATTR||ql.SC_ATTR)||"data-styled",my="active",yy="data-styled-version",x1="6.1.19",Sp=`/*!sc*/ `,d1=typeof window<"u"&&typeof document<"u",d_=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ql!==void 0&&ql.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ql.REACT_APP_SC_DISABLE_SPEEDY!==""?ql.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ql.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ql!==void 0&&ql.SC_DISABLE_SPEEDY!==void 0&&ql.SC_DISABLE_SPEEDY!==""&&ql.SC_DISABLE_SPEEDY!=="false"&&ql.SC_DISABLE_SPEEDY),T1=Object.freeze([]),es=Object.freeze({});function h_(i,s,f){return f===void 0&&(f=es),i.theme!==f.theme&&i.theme||s||f.theme}var vy=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),g_=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,p_=/(^-|-$)/g;function am(i){return i.replace(g_,"-").replace(p_,"")}var m_=/(a)(d)/gi,Fh=52,im=function(i){return String.fromCharCode(i+(i>25?39:97))};function rp(i){var s,f="";for(s=Math.abs(i);s>Fh;s=s/Fh|0)f=im(s%Fh)+f;return(im(s%Fh)+f).replace(m_,"$1-$2")}var Vg,Sy=5381,$f=function(i,s){for(var f=s.length;f;)i=33*i^s.charCodeAt(--f);return i},_y=function(i){return $f(Sy,i)};function y_(i){return rp(_y(i)>>>0)}function v_(i){return i.displayName||i.name||"Component"}function Jg(i){return typeof i=="string"&&!0}var by=typeof Symbol=="function"&&Symbol.for,Ey=by?Symbol.for("react.memo"):60115,S_=by?Symbol.for("react.forward_ref"):60112,__={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},b_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ay={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},E_=((Vg={})[S_]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Vg[Ey]=Ay,Vg);function rm(i){return("type"in(s=i)&&s.type.$$typeof)===Ey?Ay:"$$typeof"in i?E_[i.$$typeof]:__;var s}var A_=Object.defineProperty,x_=Object.getOwnPropertyNames,cm=Object.getOwnPropertySymbols,T_=Object.getOwnPropertyDescriptor,O_=Object.getPrototypeOf,fm=Object.prototype;function xy(i,s,f){if(typeof s!="string"){if(fm){var d=O_(s);d&&d!==fm&&xy(i,d,f)}var p=x_(s);cm&&(p=p.concat(cm(s)));for(var S=rm(i),b=rm(s),C=0;C0?" Args: ".concat(s.join(", ")):""))}var w_=(function(){function i(s){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=s}return i.prototype.indexOfGroup=function(s){for(var f=0,d=0;d=this.groupSizes.length){for(var d=this.groupSizes,p=d.length,S=p;s>=S;)if((S<<=1)<0)throw Od(16,"".concat(s));this.groupSizes=new Uint32Array(S),this.groupSizes.set(d),this.length=S;for(var b=p;b=this.length||this.groupSizes[s]===0)return f;for(var d=this.groupSizes[s],p=this.indexOfGroup(s),S=p+d,b=p;b=0){var d=document.createTextNode(f);return this.element.insertBefore(d,this.nodes[s]||null),this.length++,!0}return!1},i.prototype.deleteRule=function(s){this.element.removeChild(this.nodes[s]),this.length--},i.prototype.getRule=function(s){return s0&&(k+="".concat(dt,","))}),R+="".concat(X).concat(tt,'{content:"').concat(k,'"}').concat(Sp)},M=0;M0?".".concat(s):et},M=R.slice();M.push(function(et){et.type===_1&&et.value.includes("&")&&(et.props[0]=et.props[0].replace(q_,f).replace(d,A))}),b.prefix&&M.push(s_),M.push(r_);var B=function(et,rt,X,tt){rt===void 0&&(rt=""),X===void 0&&(X=""),tt===void 0&&(tt="&"),s=tt,f=rt,d=new RegExp("\\".concat(f,"\\b"),"g");var k=et.replace(j_,""),dt=a_(X||rt?"".concat(X," ").concat(rt," { ").concat(k," }"):k);b.namespace&&(dt=wy(dt,b.namespace));var xt=[];return o1(dt,c_(M.concat(f_(function(ct){return xt.push(ct)})))),xt};return B.hash=R.length?R.reduce(function(et,rt){return rt.name||Od(15),$f(et,rt.name)},Sy).toString():"",B}var Y_=new Oy,fp=G_(),Ry=yn.createContext({shouldForwardProp:void 0,styleSheet:Y_,stylis:fp});Ry.Consumer;yn.createContext(void 0);function hm(){return Je.useContext(Ry)}var X_=(function(){function i(s,f){var d=this;this.inject=function(p,S){S===void 0&&(S=fp);var b=d.name+S.hash;p.hasNameForId(d.id,b)||p.insertRules(d.id,b,S(d.rules,b,"@keyframes"))},this.name=s,this.id="sc-keyframes-".concat(s),this.rules=f,bp(this,function(){throw Od(12,String(d.name))})}return i.prototype.getName=function(s){return s===void 0&&(s=fp),this.name+s.hash},i})(),Q_=function(i){return i>="A"&&i<="Z"};function gm(i){for(var s="",f=0;f>>0);if(!f.hasNameForId(this.componentId,b)){var C=d(S,".".concat(b),void 0,this.componentId);f.insertRules(this.componentId,b,C)}p=lc(p,b),this.staticRulesId=b}else{for(var R=$f(this.baseHash,d.hash),A="",M=0;M>>0);f.hasNameForId(this.componentId,rt)||f.insertRules(this.componentId,rt,d(A,".".concat(rt),void 0,this.componentId)),p=lc(p,rt)}}return p},i})(),Dy=yn.createContext(void 0);Dy.Consumer;var Fg={};function J_(i,s,f){var d=_p(i),p=i,S=!Jg(i),b=s.attrs,C=b===void 0?T1:b,R=s.componentId,A=R===void 0?(function(pt,ut){var vt=typeof pt!="string"?"sc":am(pt);Fg[vt]=(Fg[vt]||0)+1;var P="".concat(vt,"-").concat(y_(x1+vt+Fg[vt]));return ut?"".concat(ut,"-").concat(P):P})(s.displayName,s.parentComponentId):R,M=s.displayName,B=M===void 0?(function(pt){return Jg(pt)?"styled.".concat(pt):"Styled(".concat(v_(pt),")")})(i):M,et=s.displayName&&s.componentId?"".concat(am(s.displayName),"-").concat(s.componentId):s.componentId||A,rt=d&&p.attrs?p.attrs.concat(C).filter(Boolean):C,X=s.shouldForwardProp;if(d&&p.shouldForwardProp){var tt=p.shouldForwardProp;if(s.shouldForwardProp){var k=s.shouldForwardProp;X=function(pt,ut){return tt(pt,ut)&&k(pt,ut)}}else X=tt}var dt=new V_(f,et,d?p.componentStyle:void 0);function xt(pt,ut){return(function(vt,P,ee){var xe=vt.attrs,bl=vt.componentStyle,cn=vt.defaultProps,Ce=vt.foldedComponentIds,fn=vt.styledComponentId,Me=vt.target,en=yn.useContext(Dy),Y=hm(),nt=vt.shouldForwardProp||Y.shouldForwardProp,st=h_(P,en,cn)||es,Nt=(function(mt,Tt,Qt){for(var he,Jt=vl(vl({},Tt),{className:void 0,theme:Qt}),Il=0;Il{const s=new Date(parseInt(i.time)*1e3),f=Math.round(parseInt(i.delay)/60),d=f>0?`+${f}`:"",p=b=>b<=9?`0${b}`:b,S=`${p(s.getHours())}:${p(s.getMinutes())}`;return V.jsxs(W_,{children:[V.jsx($_,{children:S}),V.jsx(k_,{children:i.station}),V.jsx(ym,{children:i.canceled==="1"?"CANCELED":""}),V.jsx(ym,{children:d}),V.jsx(I_,{children:i.left==="1"?"LEFT":""}),V.jsxs(P_,{children:["Platform: ",i.platform]})]})},Ha="#074c87",eb=Vt.div` display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; background: #0b0c10; color: #fff; padding: 1rem 1.5rem; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); font-family: "Inter", sans-serif; max-width: 600px; margin: 1rem auto; `,nb=Vt.div` display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; `,My=Vt.a` font-size: 1.25rem; font-weight: 700; color: ${Ha}; text-decoration: none; margin-right: 1rem; &:hover { text-decoration: underline; color: ${Ha}; } `,lb=Vt.span` font-size: 0.8rem; color: #c5c6c7; white-space: nowrap; `,ub=Vt.p` font-size: 1rem; color: #a7a7a7; line-height: 1.4; margin-bottom: 1rem; `,ab=Vt.div` display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; padding-top: 0.5rem; border-top: 1px solid #1f2833; `,ib=Vt.span` color: ${Ha}; strong { font-weight: 600; color: #fff; } `,rb=Vt.span` color: ${Ha}; font-style: italic; `,cb=({article:i})=>{if(!i)return null;const f=(p=>{try{return new Date(p).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return"Unknown Date"}})(i.pubDate),d=Array.isArray(i.keywords)?i.keywords.join(", "):i.keywords;return V.jsxs(eb,{children:[V.jsxs(nb,{children:[V.jsx(My,{href:i.link,target:"_blank",rel:"noopener noreferrer",children:i.title}),V.jsx(lb,{children:f})]}),V.jsx(ub,{children:i.description}),V.jsx("img",{src:i.image_url}),V.jsxs(ab,{children:[V.jsxs(ib,{children:["By: ",V.jsx("strong",{children:i.creator||"N/A"})," from ",V.jsx("strong",{children:i.source_name||"N/A"})]}),V.jsxs(rb,{children:["Tags: ",d||"none"]})]})]})},fb=Vt.div` display: flex; justify-content: space-between; align-items: stretch; background: #0b0c10; color: #fff; padding: 1rem 1.5rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); font-size: 4rem; font-weight: 200; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding-right: 1em; `,sb=()=>{const[i,s]=Je.useState(new Date().toLocaleTimeString("fr-FR"));return Je.useEffect(()=>{const f=setInterval(()=>{s(new Date().toLocaleTimeString("fr-FR"))},1e3);return()=>clearInterval(f)},[]),V.jsx(fb,{children:i})},ob=Vt.div` display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; `,db=({issue:i})=>V.jsx(ob,{children:V.jsx("a",{href:`https://git.boomjacky.art/boomjacky/trainhour/issues/${i.id}`,children:V.jsx(My,{children:i.title})})});var Ba=function(){return Ba=Object.assign||function(s){for(var f,d=1,p=arguments.length;d"u")){var d=document.head||document.getElementsByTagName("head")[0],p=document.createElement("style");p.type="text/css",f==="top"&&d.firstChild?d.insertBefore(p,d.firstChild):d.appendChild(p),p.styleSheet?p.styleSheet.cssText=i:p.appendChild(document.createTextNode(i))}}var yb="@keyframes spinners-react-diamond{25%{transform:translate(30px,-30px)}50%{transform:translate(60px)}75%{transform:translate(30px,30px)}}";mb(yb);var vm=[{x:3,y:48},{x:18,y:33},{x:18,y:48},{x:18,y:63},{x:33,y:48},{x:33,y:18},{x:33,y:33},{x:33,y:63},{x:33,y:78},{x:48,y:3},{x:48,y:18},{x:48,y:33},{x:48,y:48},{x:48,y:63},{x:48,y:78},{x:48,y:93},{x:63,y:18},{x:63,y:33},{x:63,y:48},{x:63,y:63},{x:63,y:78},{x:78,y:33},{x:78,y:48},{x:78,y:63},{x:93,y:48}];function vb(i){var s=i.secondaryColor,f=s===void 0?Ih.secondaryColor:s,d=i.speed,p=d===void 0?Ih.speed:d,S=i.still,b=S===void 0?Ih.still:S,C=i.thickness,R=C===void 0?Ih.thickness:C,A=Uy(i,["secondaryColor","speed","still","thickness"]),M={animation:"spinners-react-diamond ".concat(140/p,"s steps(2, end) infinite")};return b&&(M.animation="none"),yn.createElement("svg",Ba({fill:"currentColor"},A,{viewBox:"0 0 96 96"}),vm.map(function(B){return yn.createElement("circle",{key:"".concat(B.x,"-").concat(B.y),cx:B.x,cy:B.y,fill:f,r:2.5*(R/100)})}),yn.createElement("g",{style:M},vm.filter(function(B,et){return et<5}).map(function(B){return yn.createElement("circle",{key:"h-".concat(B.x,"-").concat(B.y),cx:B.x,cy:B.y,r:3.5*(R/100)})})))}var O1=gb(vb);/** * @license lucide-react v0.552.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sb=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_b=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,f,d)=>d?d.toUpperCase():f.toLowerCase()),Sm=i=>{const s=_b(i);return s.charAt(0).toUpperCase()+s.slice(1)},Ly=(...i)=>i.filter((s,f,d)=>!!s&&s.trim()!==""&&d.indexOf(s)===f).join(" ").trim(),bb=i=>{for(const s in i)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};/** * @license lucide-react v0.552.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Eb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.552.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ab=Je.forwardRef(({color:i="currentColor",size:s=24,strokeWidth:f=2,absoluteStrokeWidth:d,className:p="",children:S,iconNode:b,...C},R)=>Je.createElement("svg",{ref:R,...Eb,width:s,height:s,stroke:i,strokeWidth:d?Number(f)*24/Number(s):f,className:Ly("lucide",p),...!S&&!bb(C)&&{"aria-hidden":"true"},...C},[...b.map(([A,M])=>Je.createElement(A,M)),...Array.isArray(S)?S:[S]]));/** * @license lucide-react v0.552.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ep=(i,s)=>{const f=Je.forwardRef(({className:d,...p},S)=>Je.createElement(Ab,{ref:S,iconNode:s,className:Ly(`lucide-${Sb(Sm(i))}`,`lucide-${i}`,d),...p}));return f.displayName=Sm(i),f};/** * @license lucide-react v0.552.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Tb=Ep("circle-x",xb);/** * @license lucide-react v0.552.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ob=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],wb=Ep("clock",Ob);/** * @license lucide-react v0.552.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Rb=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Cb=Ep("triangle-alert",Rb),zb=Vt.div` display: flex; justify-content: space-around; align-items: center; background: #0b0c10; color: #fff; padding: 1.5rem 2rem; border-radius: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); font-family: 'Inter', sans-serif; `,Wg=Vt.div` display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; & svg { margin-bottom: 0.3em; color: ${Ha}; } .value { font-weight: 600; line-height: 1.1; } .label { font-size: 1em; opacity: 0.7; margin-top: 0.3em; } `,_m=i=>{if(i==null||isNaN(i))return"–";const s=Math.floor(i/60),f=Math.round(i%60);return`${s}m ${f}s`},Db=i=>i==null||isNaN(i)?"–":`${(i*100).toFixed(1)}%`,Nb=({state:i})=>{const s=i.departures?.filter(op(i.config.trainDelayCompute)),f=i.departures?.filter(op(0,i.config.trainCancelCompute)),d=_d.mean(s?.map(b=>parseInt(b.delay))),p=_d.mean(s?.filter(b=>parseInt(b.delay)!==0)?.map(b=>parseInt(b.delay))),S=(f?.filter(b=>b?.canceled==="1")?.length||0)/(f?.length||1);return V.jsxs(zb,{children:[V.jsxs(Wg,{children:[V.jsx(wb,{size:40}),V.jsx("div",{className:"value",children:_m(d)}),V.jsx("div",{className:"label",children:"Avg Delay (all)"})]}),V.jsxs(Wg,{children:[V.jsx(Cb,{size:40}),V.jsx("div",{className:"value",children:_m(p)}),V.jsx("div",{className:"label",children:"Avg Delay (delayed only)"})]}),V.jsxs(Wg,{children:[V.jsx(Tb,{size:40}),V.jsx("div",{className:"value",children:Db(S)}),V.jsx("div",{className:"label",children:"Cancelled"})]})]})},op=(i,s=0)=>f=>{const d=new Date(parseInt(f.time)*1e3),p=new Date,S=d.getHours(),b=d.getMinutes(),C=p.getHours()*60+p.getMinutes(),R=S*60+b;return C+i>R&&C+s{const s=i.departures?.filter(op(i.config.trainScheduleShow));return V.jsxs(V.Fragment,{children:[V.jsx(sb,{}),V.jsx(Nb,{state:i}),i.trainScheduleLoading?V.jsx(O1,{}):i.trainScheduleError?V.jsx("em",{children:i.trainScheduleError?.message}):i.departures?.length===0?V.jsx("em",{children:"No more trains for today."}):s?.map(f=>V.jsx(tb,{departure:f}))]})};function Ub(i){return S1({attr:{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 30 30",style:"enable-background:new 0 0 30 30;"},child:[{tag:"path",attr:{d:`M11.01,12.23c0-0.26,0.13-0.59,0.38-1.01c0.25-0.42,0.5-0.77,0.73-1.04c0.06-0.07,0.14-0.17,0.23-0.28s0.15-0.17,0.16-0.18 l0.37,0.43c0.28,0.31,0.53,0.66,0.76,1.07c0.23,0.41,0.35,0.74,0.35,1.01c0,0.41-0.14,0.77-0.43,1.06 c-0.28,0.29-0.63,0.44-1.05,0.44c-0.41,0-0.77-0.15-1.06-0.44C11.16,12.99,11.01,12.64,11.01,12.23z M14.13,16.38 c0-0.29,0.08-0.62,0.24-1.01c0.16-0.38,0.36-0.74,0.6-1.06c0.46-0.61,0.89-1.12,1.31-1.53c0.04-0.03,0.13-0.11,0.26-0.24l0.25,0.24 c0.39,0.37,0.83,0.88,1.32,1.52c0.26,0.34,0.46,0.7,0.62,1.08s0.24,0.71,0.24,1c0,0.69-0.23,1.26-0.7,1.73 c-0.47,0.47-1.05,0.7-1.73,0.7c-0.68,0-1.25-0.24-1.72-0.71S14.13,17.05,14.13,16.38z M15.65,9.48c0-0.43,0.33-1,1-1.7l0.25,0.28 c0.19,0.22,0.36,0.46,0.51,0.74c0.15,0.27,0.23,0.5,0.23,0.68c0,0.28-0.1,0.5-0.29,0.69c-0.19,0.18-0.42,0.28-0.7,0.28 c-0.29,0-0.53-0.09-0.72-0.28C15.75,9.98,15.65,9.75,15.65,9.48z`},child:[]}]})(i)}function Lb(i){return S1({attr:{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 30 30",style:"enable-background:new 0 0 30 30;"},child:[{tag:"path",attr:{d:`M3.1,16.97c0,0.24,0.09,0.45,0.28,0.62c0.16,0.19,0.37,0.28,0.63,0.28H18.7c0.29,0,0.53,0.1,0.73,0.3 c0.2,0.2,0.3,0.45,0.3,0.74c0,0.29-0.1,0.53-0.3,0.72c-0.2,0.19-0.44,0.29-0.74,0.29c-0.29,0-0.54-0.1-0.73-0.29 c-0.16-0.18-0.36-0.26-0.6-0.26c-0.25,0-0.46,0.09-0.64,0.26s-0.27,0.38-0.27,0.61c0,0.25,0.09,0.46,0.28,0.63 c0.56,0.55,1.22,0.83,1.96,0.83c0.78,0,1.45-0.27,2.01-0.81c0.56-0.54,0.83-1.19,0.83-1.97s-0.28-1.44-0.84-2 c-0.56-0.56-1.23-0.84-2-0.84H4.01c-0.25,0-0.46,0.09-0.64,0.26C3.19,16.51,3.1,16.72,3.1,16.97z M3.1,13.69 c0,0.23,0.09,0.43,0.28,0.61c0.17,0.18,0.38,0.26,0.63,0.26h20.04c0.78,0,1.45-0.27,2.01-0.82c0.56-0.54,0.84-1.2,0.84-1.97 c0-0.77-0.28-1.44-0.84-1.99s-1.23-0.83-2.01-0.83c-0.77,0-1.42,0.27-1.95,0.8c-0.18,0.16-0.27,0.38-0.27,0.67 c0,0.26,0.09,0.47,0.26,0.63c0.17,0.16,0.38,0.24,0.63,0.24c0.24,0,0.45-0.08,0.63-0.24c0.19-0.21,0.42-0.31,0.7-0.31 c0.29,0,0.53,0.1,0.73,0.3c0.2,0.2,0.3,0.44,0.3,0.73c0,0.29-0.1,0.53-0.3,0.72c-0.2,0.19-0.44,0.29-0.73,0.29H4.01 c-0.25,0-0.46,0.09-0.64,0.26C3.19,13.23,3.1,13.44,3.1,13.69z`},child:[]}]})(i)}function Bb(i){return S1({attr:{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 30 30",style:"enable-background:new 0 0 30 30;"},child:[{tag:"path",attr:{d:`M9.91,19.56c0-0.85,0.2-1.64,0.59-2.38s0.94-1.35,1.65-1.84V5.42c0-0.8,0.27-1.48,0.82-2.03S14.2,2.55,15,2.55 c0.81,0,1.49,0.28,2.04,0.83c0.55,0.56,0.83,1.23,0.83,2.03v9.92c0.71,0.49,1.25,1.11,1.64,1.84s0.58,1.53,0.58,2.38 c0,0.92-0.23,1.78-0.68,2.56s-1.07,1.4-1.85,1.85s-1.63,0.68-2.56,0.68c-0.92,0-1.77-0.23-2.55-0.68s-1.4-1.07-1.86-1.85 S9.91,20.48,9.91,19.56z M11.67,19.56c0,0.93,0.33,1.73,0.98,2.39c0.65,0.66,1.44,0.99,2.36,0.99c0.93,0,1.73-0.33,2.4-1 s1.01-1.46,1.01-2.37c0-0.62-0.16-1.2-0.48-1.73c-0.32-0.53-0.76-0.94-1.32-1.23l-0.28-0.14c-0.1-0.04-0.15-0.14-0.15-0.29V5.42 c0-0.32-0.11-0.59-0.34-0.81C15.62,4.4,15.34,4.29,15,4.29c-0.32,0-0.6,0.11-0.83,0.32c-0.23,0.21-0.34,0.48-0.34,0.81v10.74 c0,0.15-0.05,0.25-0.14,0.29l-0.27,0.14c-0.55,0.29-0.98,0.7-1.29,1.23C11.82,18.35,11.67,18.92,11.67,19.56z M12.45,19.56 c0,0.71,0.24,1.32,0.73,1.82s1.07,0.75,1.76,0.75s1.28-0.25,1.79-0.75c0.51-0.5,0.76-1.11,0.76-1.81c0-0.63-0.22-1.19-0.65-1.67 c-0.43-0.48-0.96-0.77-1.58-0.85V9.69c0-0.06-0.03-0.13-0.1-0.19c-0.07-0.07-0.14-0.1-0.22-0.1c-0.09,0-0.16,0.03-0.21,0.08 c-0.05,0.06-0.08,0.12-0.08,0.21v7.34c-0.61,0.09-1.13,0.37-1.56,0.85C12.66,18.37,12.45,18.92,12.45,19.56z`},child:[]}]})(i)}const Hb=Vt.div` display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; background: #0b0c10; color: #fff; padding: 1rem 1.5rem; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); font-family: "Inter", sans-serif; max-width: 600px; margin: 1rem auto; `,qb=Vt.div` display: flex; align-items: center; gap: 1rem; img { width: 64px; height: 64px; } h2 { font-size: 1.5rem; font-weight: 600; margin: 0; } `,jb=Vt.div` display: flex; justify-content: space-around; align-items: center; margin-top: 1rem; font-size: 4rm; .weather-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; font-size: 1rem; svg { font-size: 2rem; color: ${Ha}; } span { font-size: 0.9rem; opacity: 0.8; } } `,Gb=({state:i})=>{const s=i.weather?.current;return s?i.weatherLoading?V.jsx(O1,{}):i.weatherError?V.jsx("em",{children:i.weatherError?.message}):V.jsxs(Hb,{children:[V.jsxs(qb,{children:[V.jsx("img",{src:s.condition.icon,alt:s.condition.text}),V.jsx("h2",{children:s.condition.text})]}),V.jsxs(jb,{children:[V.jsxs("div",{className:"weather-item",children:[V.jsx(Bb,{}),V.jsxs("span",{children:[s.temp_c,"°C"]})]}),V.jsxs("div",{className:"weather-item",children:[V.jsx(Ub,{}),V.jsxs("span",{children:[s.precip_mm," mm"]})]}),V.jsxs("div",{className:"weather-item",children:[V.jsx(Lb,{}),V.jsxs("span",{children:[s.gust_kph," kph"]})]})]})]}):null},Yb=Vt.div` display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 0; `,Xb=Vt.button` width: 20px; height: 20px; padding: 0; margin: 0; border: none; border-radius: 50%; background-color: ${({$active:i})=>i?Ha:"#ccc"}; cursor: pointer; outline: none; box-sizing: border-box; display: block; transform: scale(${({$active:i})=>i?1.5:1}); transition: transform 0.3s ease, background-color 0.3s ease; &:hover { transform: scale(${({$active:i})=>i?1.6:1.3}); background-color: ${({$active:i})=>i?Ha:"#999"}; } `,Qb=({currentPage:i,total:s,onChange:f})=>V.jsx(Yb,{children:Array.from({length:s},(d,p)=>{const S=p+1,b=S===i;return V.jsx(Xb,{$active:b,onClick:()=>f(S),"aria-label":`Page ${S}`},S)})}),Zb=1e4,$g=2,Kb=({state:i})=>{const[s,f]=Je.useState(1),d=Math.floor((i.news?.length||1)/$g);return Je.useEffect(()=>{const p=setInterval(()=>{f(s===d?1:s+1)},Zb);return()=>clearInterval(p)},[s,i]),V.jsx("div",{children:i.newsLoading?V.jsx(O1,{}):i.newsError?V.jsx("em",{children:i.newsError?.message}):V.jsxs(V.Fragment,{children:[V.jsx(Qb,{currentPage:s,total:d,onChange:f}),i.news?.slice((s-1)*$g,s*$g).map(p=>V.jsx(cb,{article:p}))]})})},Vb="https://newsdata.io/api/1/latest?apikey=pub_26997f21bb174c7cbab59b3651533429&q=nivelle &country=be",Jb=({dispatch:i})=>({reloadNews:(async()=>{try{i(rn.loadNews({}));const f=await fetch(Vb),{results:d}=await f.json();i(rn.loadNewsSuccess({news:d}))}catch(f){i(rn.loadNewsError({error:f}))}})}),Fb=({dispatch:i,state:s})=>({reloadWeather:(async()=>{try{const d=`https://api.weatherapi.com/v1/current.json?key=176d6e98c8894466aa6205455253010&q=${s.selectedLocation}&aqi=no`;i(rn.loadWeather({}));const S=await(await fetch(d)).json();i(rn.loadWeatherSuccess({weather:S}))}catch(d){i(rn.loadWeatherError({error:d}))}})}),Wb="a70bbe6b9f70747278ba3ec7a701b2b279be2efc",$b=({dispatch:i})=>({reloadIssues:(async()=>{try{i(rn.loadGiteaIssue({}));const d=await(await fetch("https://git.boomjacky.art/api/v1/repos/boomjacky/trainhour/issues?state=all",{method:"GET",headers:{Authorization:`token ${Wb}`,Accept:"application/json"}})).json();i(rn.loadGiteaIssueSuccess({data:d}))}catch(f){i(rn.loadGiteaIssueError({error:f}))}})});async function Ib(i){const s=await fetch(`https://cors-anywhere.com/${i}`);if(!s.ok)throw new Error(`HTTP error! Status: ${s.status}`);const f=await s.text(),p=new DOMParser().parseFromString(f,"application/xml");if(p.getElementsByTagName("parsererror").length>0)throw new Error("Failed to parse XML content. Check for valid RSS/XML format.");const S=(R,A)=>A.querySelector(R)?.textContent?.trim()??"No Data",b=p.querySelectorAll("channel > item");if(b.length>0)return Array.from(b).map(R=>({title:S("title",R),link:S("link",R)}));const C=p.querySelectorAll("entry");return C.length>0?Array.from(C).map(R=>{const A=R.querySelector('link[rel="alternate"]')||R.querySelector("link");return{title:S("title",R),link:A?.getAttribute("href")??S("link",R)}}):[]}const kb=({state:i,dispatch:s})=>({reloadRssFeed:(async()=>{const d=await Promise.all(i.config.rssFollow.split("/n").map(S=>Ib(S))),p=_d.flatten(d);s(rn.loadRSSFeedsSuccess({feeds:p}))})}),Pb=Vt.div` display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; background: #0b0c10; color: #fff; padding: 1rem 1.5rem; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); font-family: "Inter", sans-serif; max-width: 600px; margin: 1rem auto; `,t2=({state:i})=>i.issuesLoading?V.jsx(O1,{}):i.issuesError?V.jsx("em",{children:i.issuesError?.message}):V.jsx(Pb,{children:i.issues?.slice(0,3)?.map(s=>V.jsx(db,{issue:s}))}),e2=Vt.div` display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; background: #0b0c10; color: #fff; padding: 1rem 1.5rem; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); font-family: "Inter", sans-serif; max-width: 600px; margin: 1rem auto; `,n2=Vt.div` display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; `;Vt.a` font-size: 1.25rem; font-weight: 700; color: ${Ha}; text-decoration: none; margin-right: 1rem; `;const l2=i=>V.jsxs(e2,{children:[V.jsx(n2,{children:i.title}),V.jsx("a",{href:i.link,children:"Read more"})]}),u2=({state:i})=>V.jsx(V.Fragment,{children:i.rss?.map(s=>V.jsx(l2,{...s}))}),a2=Vt.div` display: flex; height: 100vh; width: 100vw; gap: 2rem; `,Ig=Vt.div` max-width: 45vw; `,i2=Vt.div` display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; background: #1e1e2f; color: #f1f1f1; border-radius: 12px; font-family: 'Inter', sans-serif; `,kh=Vt.div` display: flex; align-items: center; justify-content: space-between; background: #2a2a40; padding: 0.75rem 1rem; border-radius: 8px; `,md=Vt.label` font-size: 0.95rem; color: #b0b0c0; `,r2=Vt.select` background: #3a3a55; color: #fff; border: none; padding: 0.5rem 0.75rem; border-radius: 6px; font-size: 0.95rem; outline: none; width: 60%; cursor: pointer; &:hover { background: #4a4a6a; } `,kg=Vt.input` background: #3a3a55; color: #fff; border: none; padding: 0.4rem 0.6rem; border-radius: 6px; width: 60px; text-align: center; outline: none; &:focus { background: #4a4a6a; } `,c2=Vt.textarea` background: #3a3a55; color: #fff; border: none; border-radius: 8px; padding: 0.75rem; width: calc(100% - 2em); height: 80px; resize: vertical; outline: none; &:focus { background: #4a4a6a; } `,f2=Vt.button` background: #4a4a6a; color: #fff; border: none; padding: 0.6rem 1.2rem; border-radius: 8px; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; font-family: 'Inter', sans-serif; &:hover { background: #5b5b7a; transform: translateY(-1px); } &:active { background: #3a3a55; transform: translateY(0); } &:disabled { background: #2a2a40; color: #999; cursor: not-allowed; } `,s2=()=>{const[i,s]=qS("state",Py),f=Je.useCallback((d,p)=>{const S=ev(d,p);return s(S),S},[s]);return Je.useReducer(f,i)};function o2(){const[i,s]=s2(),[f,d]=Je.useState(!1),{reloadTrainSchedule:p}=US(i,s),{reloadNews:S}=Jb({state:i,dispatch:s}),{reloadWeather:b}=Fb({state:i,dispatch:s}),{reloadIssues:C}=$b({state:i,dispatch:s}),{reloadRssFeed:R}=kb({state:i,dispatch:s}),{selectedLocation:A}=i,M=ut=>{s(rn.setSelectedLocation({location:ut}))};Je.useEffect(()=>{S(),b(),C(),p(),R()},[A,i.config]);const B=V.jsxs(V.Fragment,{children:[V.jsxs(Ig,{children:[V.jsxs("h2",{children:["Next trains in ",i.selectedLocation]}),V.jsx(Mb,{state:i,dispatch:s}),i.config.rssFollow.length>0?V.jsxs(V.Fragment,{children:[V.jsx("h2",{children:"RSS Feed"}),V.jsx(u2,{state:i,dispatch:s})]}):V.jsx(V.Fragment,{})]}),V.jsxs(Ig,{children:[V.jsx("h2",{children:"Weather"}),V.jsx(Gb,{state:i,dispatch:s}),V.jsx("h2",{children:"Issues"}),V.jsx(t2,{state:i,dispatch:s}),V.jsx("h2",{children:"News"}),V.jsx(Kb,{state:i,dispatch:s})]})]}),{trainScheduleShow:et,trainDelayCompute:rt,trainCancelCompute:X,rssFollow:tt}=i.config,k=ut=>s(rn.setConfig({setting:"trainScheduleShow",value:ut})),dt=ut=>s(rn.setConfig({setting:"trainDelayCompute",value:ut})),xt=ut=>s(rn.setConfig({setting:"trainCancelCompute",value:ut})),ct=ut=>s(rn.setConfig({setting:"rssFollow",value:ut})),pt=V.jsx(Ig,{children:V.jsxs(i2,{children:[V.jsxs(kh,{children:[V.jsx(md,{children:"Location"}),V.jsx(r2,{value:A,onChange:ut=>M(ut.target.value),children:i.stations?.map(ut=>V.jsx("option",{value:ut.name,children:ut.name},ut.name))})]}),V.jsxs(kh,{children:[V.jsx(md,{children:"Show Schedule"}),V.jsx(kg,{type:"number",value:et,onChange:ut=>k(parseInt(ut.target.value))}),"min"]}),V.jsxs(kh,{children:[V.jsx(md,{children:"Compute Delay"}),V.jsx(kg,{type:"number",value:rt,onChange:ut=>dt(parseInt(ut.target.value))}),"min"]}),V.jsxs(kh,{children:[V.jsx(md,{children:"Compute Cancellation"}),V.jsx(kg,{type:"number",value:X,onChange:ut=>xt(parseInt(ut.target.value))}),"min"]}),V.jsxs("div",{children:[V.jsx(md,{children:"RSS Feed"}),V.jsx(c2,{value:tt,onChange:ut=>ct(ut.target.value)})]}),V.jsx(f2,{onClick:()=>d(!1),children:"Close"})]})});return V.jsx(V.Fragment,{children:V.jsxs(a2,{children:[V.jsx("div",{onClick:()=>d(!f),children:V.jsx(VS,{size:40})}),f?pt:B]})})}Iy.createRoot(document.getElementById("root")).render(V.jsx(Je.StrictMode,{children:V.jsx(o2,{})}));