"use strict";var __esbuild_esm_mermaid_nm;(__esbuild_esm_mermaid_nm||={})["mermaid-zenuml"]=(()=>{var Tr=Object.defineProperty;var aS=Object.getOwnPropertyDescriptor;var cS=Object.getOwnPropertyNames;var sS=Object.prototype.hasOwnProperty;var a=(t,e)=>Tr(t,"name",{value:e,configurable:!0});var V4=(t,e)=>()=>(t&&(e=t(t=0)),e);var Sb=(t,e)=>{for(var n in e)Tr(t,n,{get:e[n],enumerable:!0})},uS=(t,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of cS(e))!sS.call(t,i)&&i!==n&&Tr(t,i,{get:()=>e[i],enumerable:!(o=aS(e,i))||o.enumerable});return t};var dS=t=>uS(Tr({},"__esModule",{value:!0}),t);var go,C3,mS,w8,gS,fS,wb,k8=V4(()=>{"use strict";go=a(t=>{console.error("Log function was called before initialization",t)},"warning"),C3={trace:go,debug:go,info:go,warn:go,error:go,fatal:go},wb=a((t,e,n,o,i)=>{t.info("Mermaid utils injected"),C3.trace=t.trace,C3.debug=t.debug,C3.info=t.info,C3.warn=t.warn,C3.error=t.error,C3.fatal=t.fatal,mS=e,w8=n,gS=o,fS=i},"injectUtils")});var kb,Tb=V4(()=>{"use strict";kb={parse:a(()=>{},"parse")}});function pS(t,e){for(var n=0;no[i],"get")})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function j3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function CS(){if(Mb)return W4;Mb=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(o,i,s){var u=null;if(s!==void 0&&(u=""+s),i.key!==void 0&&(u=""+i.key),"key"in i){s={};for(var m in i)m!=="key"&&(s[m]=i[m])}else s=i;return i=s.ref,{$$typeof:t,type:o,key:u,ref:i!==void 0?i:null,props:s}}return a(n,"t"),W4.Fragment=e,W4.jsx=n,W4.jsxs=n,W4}function _S(){return Ab||(Ab=1,Rb.exports=CS()),Rb.exports}function hS(){if(Nb)return T8;Nb=1;function t(n){try{return JSON.stringify(n)}catch{return'"[Circular]"'}}a(t,"i"),T8=e;function e(n,o,i){var s=i&&i.stringify||t,u=1;if(typeof n=="object"&&n!==null){var m=o.length+u;if(m===1)return n;var g=new Array(m);g[0]=s(n);for(var b=1;b-1?h:0,n.charCodeAt(E+1)){case 100:case 102:if(C>=p||o[C]==null)break;h=p||o[C]==null)break;h=p||o[C]===void 0)break;h",h=E+2,E++;break}_+=s(o[C]),h=E+2,E++;break;case 115:if(C>=p)break;h{te[ge]=H[ge]?H[ge]:e[ge]||e[u[ge]||"log"]||J}),G[i]=te}a(g,"d");function b(G,M){return Array.isArray(G)?G.filter(function(H){return H!=="!stdSerializers.err"}):G===!0?Object.keys(M):!1}a(b,"_");function p(G){G=G||{},G.browser=G.browser||{};let M=G.browser.transmit;if(M&&typeof M.send!="function")throw Error("pino: transmit option must have a send function");let H=G.browser.write||e;G.browser.write&&(G.browser.asObject=!0);let te=G.serializers||{},ge=b(G.browser.serialize,te),A=G.browser.serialize;Array.isArray(G.browser.serialize)&&G.browser.serialize.indexOf("!stdSerializers.err")>-1&&(A=!1);let W=Object.keys(G.customLevels||{}),ce=["error","fatal","warn","info","debug","trace"].concat(W);typeof H=="function"&&ce.forEach(function(_1){H[_1]=H}),(G.enabled===!1||G.browser.disabled)&&(G.level="silent");let ne=G.level||"info",ie=Object.create(H);ie.log||(ie.log=J),g(ie,ce,H),m({},ie),Object.defineProperty(ie,"levelVal",{get:Ce}),Object.defineProperty(ie,"level",{get:qe,set:Qe});let Le={transmit:M,serialize:ge,asObject:G.browser.asObject,formatters:G.browser.formatters,levels:ce,timestamp:Z(G)};ie.levels=_(G),ie.level=ne,ie.setMaxListeners=ie.getMaxListeners=ie.emit=ie.addListener=ie.on=ie.prependListener=ie.once=ie.prependOnceListener=ie.removeListener=ie.removeAllListeners=ie.listeners=ie.listenerCount=ie.eventNames=ie.write=ie.flush=J,ie.serializers=te,ie._serialize=ge,ie._stdErrSerialize=A,ie.child=w1,M&&(ie._logEvent=F());function Ce(){return o(this.level,this)}a(Ce,"f2");function qe(){return this._level}a(qe,"V2");function Qe(_1){if(_1!=="silent"&&!this.levels.values[_1])throw Error("unknown level "+_1);this._level=_1,S(this,Le,ie,"error"),S(this,Le,ie,"fatal"),S(this,Le,ie,"warn"),S(this,Le,ie,"info"),S(this,Le,ie,"debug"),S(this,Le,ie,"trace"),W.forEach(P1=>{S(this,Le,ie,P1)})}a(Qe,"q2");function w1(_1,P1){if(!_1)throw new Error("missing bindings for child Pino");P1=P1||{},ge&&_1.serializers&&(P1.serializers=_1.serializers);let U1=P1.serializers;if(ge&&U1){var z2=Object.assign({},te,U1),u2=G.browser.serialize===!0?Object.keys(z2):ge;delete _1.serializers,R([_1],u2,z2,this._stdErrSerialize)}function d0(O1){this._childLevel=(O1._childLevel|0)+1,this.bindings=_1,z2&&(this.serializers=z2,this._serialize=u2),M&&(this._logEvent=F([].concat(O1._logEvent.bindings,_1)))}a(d0,"g3"),d0.prototype=this;let U2=new d0(this);return m(this,U2),U2.level=this.level,U2}return a(w1,"v1"),ie}a(p,"p");function _(G){let M=G.customLevels||{},H=Object.assign({},p.levels.values,M),te=Object.assign({},p.levels.labels,C(M));return{values:H,labels:te}}a(_,"m");function C(G){let M={};return Object.keys(G).forEach(function(H){M[G[H]]=H}),M}a(C,"f"),p.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},p.stdSerializers=n,p.stdTimeFunctions=Object.assign({},{nullTime:ee,epochTime:re,unixTime:le,isoTime:be});function h(G){let M=[];G.bindings&&M.push(G.bindings);let H=G[s];for(;H.parent;)H=H.parent,H.logger.bindings&&M.push(H.logger.bindings);return M.reverse()}a(h,"h");function S(G,M,H,te){if(Object.defineProperty(G,te,{value:o(G.level,H)>o(te,H)?J:H[i][te],writable:!0,enumerable:!0,configurable:!0}),!M.transmit&&G[te]===J)return;G[te]=T(G,M,H,te);let ge=h(G);ge.length!==0&&(G[te]=E(ge,G[te]))}a(S,"R");function E(G,M){return function(){return M.apply(this,[...G,...arguments])}}a(E,"b");function T(G,M,H,te){return function(ge){return function(){let A=M.timestamp(),W=new Array(arguments.length),ce=Object.getPrototypeOf&&Object.getPrototypeOf(this)===e?e:this;for(var ne=0;neG.levels.values[M],"y"),log:W=a(Ce=>Ce,"q")}=ge;G._serialize&&R(H,G._serialize,G.serializers,G._stdErrSerialize);let ce=H.slice(),ne=ce[0],ie={};te&&(ie.time=te),ie.level=A(M,G.levels.values[M]);let Le=(G._childLevel|0)+1;if(Le<1&&(Le=1),ne!==null&&typeof ne=="object"){for(;Le--&&typeof ce[0]=="object";)Object.assign(ie,ce.shift());ne=ce.length?t(ce.shift(),ce):void 0}else typeof ne=="string"&&(ne=t(ce.shift(),ce));return ne!==void 0&&(ie.msg=ne),W(ie)}a(k,"w");function R(G,M,H,te){for(let ge in G)if(te&&G[ge]instanceof Error)G[ge]=p.stdSerializers.err(G[ge]);else if(typeof G[ge]=="object"&&!Array.isArray(G[ge]))for(let A in G[ge])M&&M.indexOf(A)>-1&&A in H&&(G[ge][A]=H[A](G[ge][A]))}a(R,"O");function D(G,M,H){let te=M.send,ge=M.ts,A=M.methodLevel,W=M.methodValue,ce=M.val,ne=G._logEvent.bindings;R(H,G._serialize||Object.keys(G.serializers),G.serializers,G._stdErrSerialize===void 0?!0:G._stdErrSerialize),G._logEvent.ts=ge,G._logEvent.messages=H.filter(function(ie){return ne.indexOf(ie)===-1}),G._logEvent.level.label=A,G._logEvent.level.value=W,te(A,G._logEvent,ce),G._logEvent=F(ne)}a(D,"D");function F(G){return{ts:0,messages:[],bindings:G||[],level:{label:"",value:0}}}a(F,"N");function B(G){let M={type:G.constructor.name,msg:G.message,stack:G.stack};for(let H in G)M[H]===void 0&&(M[H]=G[H]);return M}a(B,"F");function Z(G){return typeof G.timestamp=="function"?G.timestamp:G.timestamp===!1?ee:re}a(Z,"U");function O(){return{}}a(O,"k");function oe(G){return G}a(oe,"n2");function J(){}a(J,"K");function ee(){return!1}a(ee,"X");function re(){return Date.now()}a(re,"r2");function le(){return Math.round(Date.now()/1e3)}a(le,"t2");function be(){return new Date(Date.now()).toISOString()}a(be,"g2");function ye(){function G(M){return typeof M<"u"&&M}a(G,"H");try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:a(function(){return delete Object.prototype.globalThis,this.globalThis=this},"get"),configurable:!0}),globalThis}catch{return G(self)||G(window)||G(this)||{}}}return a(ye,"R2"),q4.exports.default=p,q4.exports.pino=p,q4.exports}function yS(t,e){t[e]=(console[e]||console.log).bind(console)}function SS(t,e,n){t[e]=(console[e]||console.log).bind(console,n[0],n[1])}function wS(t){Ob.forEach(n=>yS(t,n));let e=t.child;return t.child=function(n){let o=e.call(t,n);return Ob.forEach(i=>SS(o,i,["%c"+n.name||"","color: #00f"])),o},t}function j1(t,e){let n=`atom${++IS}`,o={toString(){return(cd?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof t=="function"?o.read=t:(o.init=t,o.read=OS,o.write=DS),e&&(o.write=e),o}function OS(t){return t(this)}function DS(t,e,n){return e(this,typeof n=="function"?n(t(this)):n)}function sd(){return(cd?"production":void 0)!=="production"?PS():Cz()}function FS(){return j4||(j4=sd(),(cd?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=j4),globalThis.__JOTAI_DEFAULT_STORE__!==j4&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),j4}function ZS(){if(Hb)return Xe;Hb=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),_=Symbol.iterator;function C(A){return A===null||typeof A!="object"?null:(A=_&&A[_]||A["@@iterator"],typeof A=="function"?A:null)}a(C,"f");var h={isMounted:a(function(){return!1},"isMounted"),enqueueForceUpdate:a(function(){},"enqueueForceUpdate"),enqueueReplaceState:a(function(){},"enqueueReplaceState"),enqueueSetState:a(function(){},"enqueueSetState")},S=Object.assign,E={};function T(A,W,ce){this.props=A,this.context=W,this.refs=E,this.updater=ce||h}a(T,"M"),T.prototype.isReactComponent={},T.prototype.setState=function(A,W){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,W,"setState")},T.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function k(){}a(k,"w"),k.prototype=T.prototype;function R(A,W,ce){this.props=A,this.context=W,this.refs=E,this.updater=ce||h}a(R,"O");var D=R.prototype=new k;D.constructor=R,S(D,T.prototype),D.isPureReactComponent=!0;var F=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function O(A,W,ce,ne,ie,Le){return ce=Le.ref,{$$typeof:t,type:A,key:W,ref:ce!==void 0?ce:null,props:Le}}a(O,"k");function oe(A,W){return O(A.type,W,void 0,void 0,void 0,A.props)}a(oe,"n2");function J(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}a(J,"K");function ee(A){var W={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ce){return W[ce]})}a(ee,"X");var re=/\/+/g;function le(A,W){return typeof A=="object"&&A!==null&&A.key!=null?ee(""+A.key):W.toString(36)}a(le,"t2");function be(){}a(be,"g2");function ye(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(be,be):(A.status="pending",A.then(function(W){A.status==="pending"&&(A.status="fulfilled",A.value=W)},function(W){A.status==="pending"&&(A.status="rejected",A.reason=W)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}a(ye,"R2");function G(A,W,ce,ne,ie){var Le=typeof A;(Le==="undefined"||Le==="boolean")&&(A=null);var Ce=!1;if(A===null)Ce=!0;else switch(Le){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(A.$$typeof){case t:case e:Ce=!0;break;case p:return Ce=A._init,G(Ce(A._payload),W,ce,ne,ie)}}if(Ce)return ie=ie(A),Ce=ne===""?"."+le(A,0):ne,F(ie)?(ce="",Ce!=null&&(ce=Ce.replace(re,"$&/")+"/"),G(ie,W,ce,"",function(w1){return w1})):ie!=null&&(J(ie)&&(ie=oe(ie,ce+(ie.key==null||A&&A.key===ie.key?"":(""+ie.key).replace(re,"$&/")+"/")+Ce)),W.push(ie)),1;Ce=0;var qe=ne===""?".":ne+":";if(F(A))for(var Qe=0;Qe{let b=n.get(t);return Object.is(g[0],b)&&g[1]===n&&g[2]===t?g:[b,n,t]},void 0,()=>[n.get(t),n,t]),m=o;if((i!==n||s!==t)&&(u(),m=n.get(t)),y.useEffect(()=>{let g=n.sub(t,()=>{u()});return u(),g},[n,t,void 0]),y.useDebugValue(m),hz(m)){let g=YS(m,()=>n.get(t));return HS(g)}return m}function Yo(t,e){let n=dd();return y.useCallback((...o)=>{if((US?"production":void 0)!=="production"&&!("write"in t))throw new Error("not writable atom");return n.set(t,...o)},[n,t])}function n3(t,e){return[$e(t),Yo(t)]}function zo(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;ne.returnState&&(b[0]=e.returnState,b[1]=t.returnState);let p=[s,s],_=new x3(p,b);return o!==null&&o.set(t,e,_),_}let u=[t.returnState,e.returnState],m=[t.parentCtx,e.parentCtx];t.returnState>e.returnState&&(u[0]=e.returnState,u[1]=t.returnState,m=[e.parentCtx,t.parentCtx]);let g=new x3(m,u);return o!==null&&o.set(t,e,g),g}}function QS(t,e,n){if(n){if(t===o1.EMPTY||e===o1.EMPTY)return o1.EMPTY}else{if(t===o1.EMPTY&&e===o1.EMPTY)return o1.EMPTY;if(t===o1.EMPTY){let o=[e.returnState,o1.EMPTY_RETURN_STATE],i=[e.parentCtx,null];return new x3(i,o)}else if(e===o1.EMPTY){let o=[t.returnState,o1.EMPTY_RETURN_STATE],i=[t.parentCtx,null];return new x3(i,o)}}return null}function Nr(t,e){let n=[];return n[t-1]=e,n.map(function(o){return e})}function KS(t){return t.hashCodeForConfigSet()}function XS(t,e){return t===e?!0:t===null||e===null?!1:t.equalsForConfigSet(e)}function Wb(t){t.index=-1,t.line=0,t.column=-1,t.dfaState=null}function nw(t,e){return e!==null?e:"failed predicate: {"+t+"}?"}function Az(t){try{if(t==null)return!1;let e=this.start.start,n=this.Body().stop.stop+1;return t>=e&&t<=n}catch{return!1}}function vd(t){for(;t;){if(t instanceof Vo||t instanceof xd)return t.Owner();t=t.parentCtx}}function Gz(){if(Qb)return O8;Qb=1;function t(e,n){switch(e){case 0:return function(){return n.apply(this,arguments)};case 1:return function(o){return n.apply(this,arguments)};case 2:return function(o,i){return n.apply(this,arguments)};case 3:return function(o,i,s){return n.apply(this,arguments)};case 4:return function(o,i,s,u){return n.apply(this,arguments)};case 5:return function(o,i,s,u,m){return n.apply(this,arguments)};case 6:return function(o,i,s,u,m,g){return n.apply(this,arguments)};case 7:return function(o,i,s,u,m,g,b){return n.apply(this,arguments)};case 8:return function(o,i,s,u,m,g,b,p){return n.apply(this,arguments)};case 9:return function(o,i,s,u,m,g,b,p,_){return n.apply(this,arguments)};case 10:return function(o,i,s,u,m,g,b,p,_,C){return n.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}return a(t,"i"),O8=t,O8}function Dw(){if(Kb)return D8;Kb=1;function t(e,n){return function(){return n.call(this,e.apply(this,arguments))}}return a(t,"i"),D8=t,D8}function yd(){if(Xb)return P8;Xb=1;function t(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}return a(t,"i"),P8=t,P8}function li(){if(Jb)return F8;Jb=1;var t=yd();function e(n){return a(function o(i){return arguments.length===0||t(i)?o:n.apply(this,arguments)},"n")}return a(e,"e"),F8=e,F8}function Hz(){if(eL)return Z8;eL=1;var t=li(),e=yd();function n(o){return a(function i(s,u){switch(arguments.length){case 0:return i;case 1:return e(s)?i:t(function(m){return o(s,m)});default:return e(s)&&e(u)?i:e(s)?t(function(m){return o(m,u)}):e(u)?t(function(m){return o(s,m)}):o(s,u)}},"s")}return a(n,"t"),Z8=n,Z8}function Sd(){if(tL)return U8;tL=1;var t=li(),e=Hz(),n=yd();function o(i){return a(function s(u,m,g){switch(arguments.length){case 0:return s;case 1:return n(u)?s:e(function(b,p){return i(u,b,p)});case 2:return n(u)&&n(m)?s:n(u)?e(function(b,p){return i(b,m,p)}):n(m)?e(function(b,p){return i(u,b,p)}):t(function(b){return i(u,m,b)});default:return n(u)&&n(m)&&n(g)?s:n(u)&&n(m)?e(function(b,p){return i(b,p,g)}):n(u)&&n(g)?e(function(b,p){return i(b,m,p)}):n(m)&&n(g)?e(function(b,p){return i(u,b,p)}):n(u)?t(function(b){return i(b,m,g)}):n(m)?t(function(b){return i(u,b,g)}):n(g)?t(function(b){return i(u,m,b)}):i(u,m,g)}},"l")}return a(o,"n"),U8=o,U8}function Yz(){return oL||(oL=1,nL=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"}),nL}function Pw(){if(lL)return B8;lL=1;function t(e){return Object.prototype.toString.call(e)==="[object String]"}return a(t,"i"),B8=t,B8}function Fw(){if(rL)return G8;rL=1;var t=li(),e=Yz(),n=Pw(),o=t(function(i){return e(i)?!0:!i||typeof i!="object"||n(i)?!1:i.length===0?!0:i.length>0?i.hasOwnProperty(0)&&i.hasOwnProperty(i.length-1):!1});return G8=o,G8}function Zw(){if(iL)return H8;iL=1;var t=function(){function n(o){this.f=o}return a(n,"t"),n.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},n.prototype["@@transducer/result"]=function(o){return o},n.prototype["@@transducer/step"]=function(o,i){return this.f(o,i)},n}();function e(n){return new t(n)}return a(e,"e"),H8=e,H8}function Uw(){if(aL)return Y8;aL=1;var t=Gz(),e=Hz(),n=e(function(o,i){return t(o.length,function(){return o.apply(i,arguments)})});return Y8=n,Y8}function Bw(){if(cL)return V8;cL=1;var t=Fw(),e=Zw(),n=Uw();function o(g,b,p){for(var _=0,C=p.length;_!u.from);return(i||s)&&n.unshift([P2,{...Tz,name:P2,isStarter:!0}]),n.map((u,m,g)=>{let b=u[1],p=m>0?g[m-1][1].name:"";return new uk(b.name,p,b.label,b.type)})}function ii(t,e){return{position:t,velocity:e}}function CL(t,e){return ii(t.position+e.position,t.velocity+e.velocity)}function mk(t,e){let n=t.position-e.position;return n<-_L||Math.abs(n)<=_L&&t.velocity0&&n[o].push({i,length:ii(e[i][o],0)})}return n}function bk(t,e){let n=gk(),o=ii(0,0),i=[];for(let s=0;s0&&(o=CL(o,e[s-1]));for(let m of t[s]){let g=CL(i[m.i].maximum,m.length);n.dualLessThan(o,g)&&(u=m.i,o=g)}i.push({argument:u,maximum:o})}return[n.delta,i]}function Lk(t,e,n){let o=t.length-1;for(;o>0;){let i=t[o].argument;i!==null?o=i:(o--,n[o].velocity=0)}}function pk(t,e){for(let n=0;n0?Lk(s,n,o):pk(o,i)}}function xk(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;let n=document.implementation.createHTMLDocument(),o=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(o),n.body.appendChild(i),e&&(o.href=e),i.href=t,i.href}function At(t){let e=[];for(let n=0,o=t.length;nz0||t.height>z0)&&(t.width>z0&&t.height>z0?t.width>t.height?(t.height*=z0/t.width,t.width=z0):(t.width*=z0/t.height,t.height=z0):t.width>z0?(t.height*=z0/t.width,t.width=z0):(t.width*=z0/t.height,t.height=z0))}function kk(t,e={}){return t.toBlob?new Promise(n=>{t.toBlob(n,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(n=>{let o=window.atob(t.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),i=o.length,s=new Uint8Array(i);for(let u=0;u{let o=new Image;o.onload=()=>{o.decode().then(()=>{requestAnimationFrame(()=>e(o))})},o.onerror=n,o.crossOrigin="anonymous",o.decoding="async",o.src=t})}async function Tk(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function Rk(t,e,n){let o="http://www.w3.org/2000/svg",i=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${e} ${n}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),i.appendChild(s),s.appendChild(t),Tk(i)}function Mk(t){let e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function Ak(t,e){return rx(e).map(n=>{let o=t.getPropertyValue(n),i=t.getPropertyPriority(n);return`${n}: ${o}${i?" !important":""};`}).join(" ")}function Nk(t,e,n,o){let i=`.${t}:${e}`,s=n.cssText?Mk(n):Ak(n,o);return document.createTextNode(`${i}{${s}}`)}function xL(t,e,n,o){let i=window.getComputedStyle(t,n),s=i.getPropertyValue("content");if(s===""||s==="none")return;let u=vk();try{e.className=`${e.className} ${u}`}catch{return}let m=document.createElement("style");m.appendChild(Nk(u,n,i,o)),e.appendChild(m)}function Ik(t,e,n){xL(t,e,":before",n),xL(t,e,":after",n)}function Dk(t){let e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function Id(t){let e=Dk(t).toLowerCase();return Ok[e]||""}function Pk(t){return t.split(/,/)[1]}function Ou(t){return t.search(/^(data:)/)!==-1}function Fk(t,e){return`data:${e};base64,${t}`}async function ax(t,e,n){let o=await fetch(t,e);if(o.status===404)throw new Error(`Resource "${o.url}" not found`);let i=await o.blob();return new Promise((s,u)=>{let m=new FileReader;m.onerror=u,m.onloadend=()=>{try{s(n({res:o,result:m.result}))}catch(g){u(g)}},m.readAsDataURL(i)})}function Zk(t,e,n){let o=t.replace(/\?.*/,"");return n&&(o=t),/ttf|otf|eot|woff2?/i.test(o)&&(o=o.replace(/.*\//,"")),e?`[${e}]${o}`:o}async function Od(t,e,n){let o=Zk(t,e,n.includeQueryParams);if(X8[o]!=null)return X8[o];n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let i;try{let s=await ax(t,n.fetchRequestInit,({res:u,result:m})=>(e||(e=u.headers.get("Content-Type")||""),Pk(m)));i=Fk(s,e)}catch(s){i=n.imagePlaceholder||"";let u=`Failed to fetch resource: ${t}`;s&&(u=typeof s=="string"?s:s.message),u&&console.warn(u)}return X8[o]=i,i}async function Uk(t){let e=t.toDataURL();return e==="data:,"?t.cloneNode(!1):G9(e)}async function Bk(t,e){if(t.currentSrc){let s=document.createElement("canvas"),u=s.getContext("2d");s.width=t.clientWidth,s.height=t.clientHeight,u?.drawImage(t,0,0,s.width,s.height);let m=s.toDataURL();return G9(m)}let n=t.poster,o=Id(n),i=await Od(n,o,e);return G9(i)}async function Gk(t,e){var n;try{if(!((n=t?.contentDocument)===null||n===void 0)&&n.body)return await ci(t.contentDocument.body,e,!0)}catch{}return t.cloneNode(!1)}async function Hk(t,e){return s0(t,HTMLCanvasElement)?Uk(t):s0(t,HTMLVideoElement)?Bk(t,e):s0(t,HTMLIFrameElement)?Gk(t,e):t.cloneNode(cx(t))}async function Vk(t,e,n){var o,i;if(cx(e))return e;let s=[];return Yk(t)&&t.assignedNodes?s=At(t.assignedNodes()):s0(t,HTMLIFrameElement)&&!((o=t.contentDocument)===null||o===void 0)&&o.body?s=At(t.contentDocument.body.childNodes):s=At(((i=t.shadowRoot)!==null&&i!==void 0?i:t).childNodes),s.length===0||s0(t,HTMLVideoElement)||await s.reduce((u,m)=>u.then(()=>ci(m,n)).then(g=>{g&&e.appendChild(g)}),Promise.resolve()),e}function Wk(t,e,n){let o=e.style;if(!o)return;let i=window.getComputedStyle(t);i.cssText?(o.cssText=i.cssText,o.transformOrigin=i.transformOrigin):rx(n).forEach(s=>{let u=i.getPropertyValue(s);s==="font-size"&&u.endsWith("px")&&(u=`${Math.floor(parseFloat(u.substring(0,u.length-2)))-.1}px`),s0(t,HTMLIFrameElement)&&s==="display"&&u==="inline"&&(u="block"),s==="d"&&e.getAttribute("d")&&(u=`path(${e.getAttribute("d")})`),o.setProperty(s,u,i.getPropertyPriority(s))})}function qk(t,e){s0(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),s0(t,HTMLInputElement)&&e.setAttribute("value",t.value)}function jk(t,e){if(s0(t,HTMLSelectElement)){let n=e,o=Array.from(n.children).find(i=>t.value===i.getAttribute("value"));o&&o.setAttribute("selected","")}}function $k(t,e,n){return s0(e,Element)&&(Wk(t,e,n),Ik(t,e,n),qk(t,e),jk(t,e)),e}async function Qk(t,e){let n=t.querySelectorAll?t.querySelectorAll("use"):[];if(n.length===0)return t;let o={};for(let s=0;sHk(o,e)).then(o=>Vk(t,o,e)).then(o=>$k(t,o,e)).then(o=>Qk(o,e))}function Jk(t){let e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function eT(t){let e=[];return t.replace(sx,(n,o,i)=>(e.push(i),n)),e.filter(n=>!Ou(n))}async function tT(t,e,n,o,i){try{let s=n?xk(e,n):e,u=Id(e),m;return i||(m=await Od(s,u,o)),t.replace(Jk(e),`$1${m}$3`)}catch{}return t}function nT(t,{preferredFontFormat:e}){return e?t.replace(Xk,n=>{for(;;){let[o,,i]=Kk.exec(n)||[];if(!i)return"";if(i===e)return`src: ${o};`}}):t}function ux(t){return t.search(sx)!==-1}async function dx(t,e,n){if(!ux(t))return t;let o=nT(t,n);return eT(o).reduce((i,s)=>i.then(u=>tT(u,s,e,n)),Promise.resolve(o))}async function fo(t,e,n){var o;let i=(o=e.style)===null||o===void 0?void 0:o.getPropertyValue(t);if(i){let s=await dx(i,null,n);return e.style.setProperty(t,s,e.style.getPropertyPriority(t)),!0}return!1}async function oT(t,e){await fo("background",t,e)||await fo("background-image",t,e),await fo("mask",t,e)||await fo("-webkit-mask",t,e)||await fo("mask-image",t,e)||await fo("-webkit-mask-image",t,e)}async function lT(t,e){let n=s0(t,HTMLImageElement);if(!(n&&!Ou(t.src))&&!(s0(t,SVGImageElement)&&!Ou(t.href.baseVal)))return;let o=n?t.src:t.href.baseVal,i=await Od(o,Id(o),e);await new Promise((s,u)=>{t.onload=s,t.onerror=e.onImageErrorHandler?(...g)=>{try{s(e.onImageErrorHandler(...g))}catch(b){u(b)}}:u;let m=t;m.decode&&(m.decode=s),m.loading==="lazy"&&(m.loading="eager"),n?(t.srcset="",t.src=i):t.href.baseVal=i})}async function rT(t,e){let n=At(t.childNodes).map(o=>mx(o,e));await Promise.all(n).then(()=>t)}async function mx(t,e){s0(t,Element)&&(await oT(t,e),await lT(t,e),await rT(t,e))}function iT(t,e){let{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);let o=e.style;return o!=null&&Object.keys(o).forEach(i=>{n[i]=o[i]}),t}async function SL(t){let e=yL[t];if(e!=null)return e;let n=await(await fetch(t)).text();return e={url:t,cssText:n},yL[t]=e,e}async function wL(t,e){let n=t.cssText,o=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(async s=>{let u=s.replace(o,"$1");return u.startsWith("https://")||(u=new URL(u,t.url).href),ax(u,e.fetchRequestInit,({result:m})=>(n=n.replace(s,`url(${m})`),[s,m]))});return Promise.all(i).then(()=>n)}function kL(t){if(t==null)return[];let e=[],n=/(\/\*[\s\S]*?\*\/)/gi,o=t.replace(n,""),i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let g=i.exec(o);if(g===null)break;e.push(g[0])}o=o.replace(i,"");let s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,u="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",m=new RegExp(u,"gi");for(;;){let g=s.exec(o);if(g===null){if(g=m.exec(o),g===null)break;s.lastIndex=m.lastIndex}else m.lastIndex=s.lastIndex;e.push(g[0])}return e}async function aT(t,e){let n=[],o=[];return t.forEach(i=>{if("cssRules"in i)try{At(i.cssRules||[]).forEach((s,u)=>{if(s.type===CSSRule.IMPORT_RULE){let m=u+1,g=s.href,b=SL(g).then(p=>wL(p,e)).then(p=>kL(p).forEach(_=>{try{i.insertRule(_,_.startsWith("@import")?m+=1:i.cssRules.length)}catch(C){console.error("Error inserting rule from remote css",{rule:_,error:C})}})).catch(p=>{console.error("Error loading remote css",p.toString())});o.push(b)}})}catch(s){let u=t.find(m=>m.href==null)||document.styleSheets[0];i.href!=null&&o.push(SL(i.href).then(m=>wL(m,e)).then(m=>kL(m).forEach(g=>{u.insertRule(g,u.cssRules.length)})).catch(m=>{console.error("Error loading remote stylesheet",m)})),console.error("Error inlining remote css file",s)}}),Promise.all(o).then(()=>(t.forEach(i=>{if("cssRules"in i)try{At(i.cssRules||[]).forEach(s=>{n.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${i.href}`,s)}}),n))}function cT(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>ux(e.style.getPropertyValue("src")))}async function sT(t,e){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");let n=At(t.ownerDocument.styleSheets),o=await aT(n,e);return cT(o)}function gx(t){return t.trim().replace(/["']/g,"")}function uT(t){let e=new Set;function n(o){(o.style.fontFamily||getComputedStyle(o).fontFamily).split(",").forEach(i=>{e.add(gx(i))}),Array.from(o.children).forEach(i=>{i instanceof HTMLElement&&n(i)})}return a(n,"t"),n(t),e}async function dT(t,e){let n=await sT(t,e),o=uT(t);return(await Promise.all(n.filter(i=>o.has(gx(i.style.fontFamily))).map(i=>{let s=i.parentStyleSheet?i.parentStyleSheet.href:null;return dx(i.cssText,s,e)}))).join(` `)}async function mT(t,e){let n=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:await dT(t,e);if(n){let o=document.createElement("style"),i=document.createTextNode(n);o.appendChild(i),t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o)}}async function Dd(t,e={}){let{width:n,height:o}=ix(t,e),i=await ci(t,e,!0);return await mT(i,e),await mx(i,e),iT(i,e),await Rk(i,n,o)}async function Pd(t,e={}){let{width:n,height:o}=ix(t,e),i=await Dd(t,e),s=await G9(i),u=document.createElement("canvas"),m=u.getContext("2d"),g=e.pixelRatio||Sk(),b=e.canvasWidth||n,p=e.canvasHeight||o;return u.width=b*g,u.height=p*g,e.skipAutoScale||wk(u),u.style.width=`${b}`,u.style.height=`${p}`,e.backgroundColor&&(m.fillStyle=e.backgroundColor,m.fillRect(0,0,u.width,u.height)),m.drawImage(s,0,0,u.width,u.height),u}async function fx(t,e={}){return(await Pd(t,e)).toDataURL()}async function gT(t,e={}){return(await Pd(t,e)).toDataURL("image/jpeg",e.quality||1)}async function fT(t,e={}){let n=await Pd(t,e);return await kk(n)}function bx(t){var e,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e_(p),t());return n=yT(b),o=n.cache.get,i=n.cache.set,s=m,m(g)}a(u,"c");function m(g){let b=o(g);if(b)return b;let p=wT(g,n);return i(g,p),p}return a(m,"L"),function(){return s(kT.apply(null,arguments))}}function He(...t){return nR(bT(t))}function ZZ(t){let e=y.useRef(null);return Ex(()=>{e.current=t},[t]),y.useCallback((...n)=>{let o=e.current;return o?.(...n)},[])}function UZ(t){return t!==null&&typeof t=="object"&&"nodeType"in t&&typeof t.nodeType=="number"}function BZ(t){return UZ(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in t}function Ud(){return GZ}function yx(t,e){if(!Ud())return e&&t?t.contains(e):!1;if(!t||!e)return!1;let n=e;for(;n!==null;){if(n===t)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:BZ(n)?n=n.host:n=n.parentNode}return!1}function Sx(t){return Ud()&&t.target.shadowRoot&&t.composedPath?t.composedPath()[0]:t.target}function HZ(t){var e;return typeof window>"u"||window.navigator==null?!1:((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.brands.some(n=>t.test(n.brand)))||t.test(window.navigator.userAgent)}function YZ(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function wx(t){let e=null;return()=>(e==null&&(e=t()),e)}function kx(){let t=y.useRef(new Map),e=y.useCallback((i,s,u,m)=>{let g=m!=null&&m.once?(...b)=>{t.current.delete(u),u(...b)}:u;t.current.set(u,{type:s,eventTarget:i,fn:g,options:m}),i.addEventListener(s,g,m)},[]),n=y.useCallback((i,s,u,m)=>{var g;let b=((g=t.current.get(u))===null||g===void 0?void 0:g.fn)||u;i.removeEventListener(s,b,m),t.current.delete(u)},[]),o=y.useCallback(()=>{t.current.forEach((i,s)=>{n(i.eventTarget,i.type,s,i.options)})},[n]);return y.useEffect(()=>o,[o]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:o}}function qZ(t){return t.mozInputSource===0&&t.isTrusted?!0:WZ()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function jZ(){if(jL)return A2;jL=1;var t=ud();function e(g){var b="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return a(t,"i"),t(),na.exports=jZ(),na.exports}function Rx(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function $Z(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function Mx(t){let e=y.useRef({isFocused:!1,observer:null});Ex(()=>{let o=e.current;return()=>{o.observer&&(o.observer.disconnect(),o.observer=null)}},[]);let n=ZZ(o=>{t?.(o)});return y.useCallback(o=>{if(o.target instanceof HTMLButtonElement||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement||o.target instanceof HTMLSelectElement){e.current.isFocused=!0;let i=o.target,s=a(u=>{if(e.current.isFocused=!1,i.disabled){let m=Rx(u);n(m)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)},"l");i.addEventListener("focusout",s,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&i.disabled){var u;(u=e.current.observer)===null||u===void 0||u.disconnect();let m=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:m})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:m}))}}),e.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Gd(t,e){for(let n of Bu)n(t,e)}function XZ(t){return!(t.metaKey||!VZ()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function H9(t){yn=!0,XZ(t)&&(C5="keyboard",Gd("keyboard",t))}function _o(t){C5="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(yn=!0,Gd("pointer",t))}function Ax(t){qZ(t)&&(yn=!0,C5="virtual")}function Nx(t){t.target===window||t.target===document||QZ||!t.isTrusted||(!yn&&!Gu&&(C5="virtual",Gd("virtual",t)),yn=!1,Gu=!1)}function Ix(){yn=!1,Gu=!0}function Hu(t){if(typeof window>"u"||gl.get(dn(t)))return;let e=dn(t),n=Ft(t),o=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){yn=!0,o.apply(this,arguments)},n.addEventListener("keydown",H9,!0),n.addEventListener("keyup",H9,!0),n.addEventListener("click",Ax,!0),e.addEventListener("focus",Nx,!0),e.addEventListener("blur",Ix,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",_o,!0),n.addEventListener("pointermove",_o,!0),n.addEventListener("pointerup",_o,!0)),e.addEventListener("beforeunload",()=>{Ox(t)},{once:!0}),gl.set(e,{focus:o})}function JZ(t){let e=Ft(t),n;return e.readyState!=="loading"?Hu(t):(n=a(()=>{Hu(t)},"t"),e.addEventListener("DOMContentLoaded",n)),()=>Ox(t,n)}function Dx(){return C5!=="pointer"}function tU(t,e,n){let o=Ft(n?.target),i=typeof window<"u"?dn(n?.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?dn(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,u=typeof window<"u"?dn(n?.target).HTMLElement:HTMLElement,m=typeof window<"u"?dn(n?.target).KeyboardEvent:KeyboardEvent;return t=t||o.activeElement instanceof i&&!eU.has(o.activeElement.type)||o.activeElement instanceof s||o.activeElement instanceof u&&o.activeElement.isContentEditable,!(t&&e==="keyboard"&&n instanceof m&&!KZ[n.key])}function nU(t,e,n){Hu(),y.useEffect(()=>{let o=a((i,s)=>{tU(!!(n!=null&&n.isTextInput),i,s)&&t(Dx())},"n");return Bu.add(o),()=>{Bu.delete(o)}},e)}function oU(t){let{isDisabled:e,onFocus:n,onBlur:o,onFocusChange:i}=t,s=y.useCallback(g=>{if(g.target===g.currentTarget)return o&&o(g),i&&i(!1),!0},[o,i]),u=Mx(s),m=y.useCallback(g=>{let b=Ft(g.target),p=b?Uu(b):Uu();g.target===g.currentTarget&&p===Sx(g.nativeEvent)&&(n&&n(g),i&&i(!0),u(g))},[i,n,u]);return{focusProps:{onFocus:!e&&(n||i||o)?m:void 0,onBlur:!e&&(o||i)?s:void 0}}}function lU(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:i}=t,s=y.useRef({isFocusWithin:!1}),{addGlobalListener:u,removeAllGlobalListeners:m}=kx(),g=y.useCallback(_=>{_.currentTarget.contains(_.target)&&s.current.isFocusWithin&&!_.currentTarget.contains(_.relatedTarget)&&(s.current.isFocusWithin=!1,m(),n&&n(_),i&&i(!1))},[n,i,s,m]),b=Mx(g),p=y.useCallback(_=>{if(!_.currentTarget.contains(_.target))return;let C=Ft(_.target),h=Uu(C);if(!s.current.isFocusWithin&&h===Sx(_.nativeEvent)){o&&o(_),i&&i(!0),s.current.isFocusWithin=!0,b(_);let S=_.currentTarget;u(C,"focus",E=>{if(s.current.isFocusWithin&&!yx(S,E.target)){let T=new C.defaultView.FocusEvent("blur",{relatedTarget:E.target});$Z(T,S);let k=Rx(T);g(k)}},{capture:!0})}},[o,i,b,u,g]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:p,onBlur:g}}}function rU(){Yu=!0,setTimeout(()=>{Yu=!1},50)}function QL(t){t.pointerType==="touch"&&rU()}function iU(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",QL),oa++,()=>{oa--,!(oa>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",QL)}}function Px(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:o,isDisabled:i}=t,[s,u]=y.useState(!1),m=y.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;y.useEffect(iU,[]);let{addGlobalListener:g,removeAllGlobalListeners:b}=kx(),{hoverProps:p,triggerHoverEnd:_}=y.useMemo(()=>{let C=a((E,T)=>{if(m.pointerType=T,i||T==="touch"||m.isHovered||!E.currentTarget.contains(E.target))return;m.isHovered=!0;let k=E.currentTarget;m.target=k,g(Ft(E.target),"pointerover",R=>{m.isHovered&&m.target&&!yx(m.target,R.target)&&h(R,R.pointerType)},{capture:!0}),e&&e({type:"hoverstart",target:k,pointerType:T}),n&&n(!0),u(!0)},"f"),h=a((E,T)=>{let k=m.target;m.pointerType="",m.target=null,!(T==="touch"||!m.isHovered||!k)&&(m.isHovered=!1,b(),o&&o({type:"hoverend",target:k,pointerType:T}),n&&n(!1),u(!1))},"h"),S={};return typeof PointerEvent<"u"&&(S.onPointerEnter=E=>{Yu&&E.pointerType==="mouse"||C(E,E.pointerType)},S.onPointerLeave=E=>{!i&&E.currentTarget.contains(E.target)&&h(E,E.pointerType)}),{hoverProps:S,triggerHoverEnd:h}},[e,n,o,i,m,g,b]);return y.useEffect(()=>{i&&_({currentTarget:m.target},m.pointerType)},[i]),{hoverProps:p,isHovered:s}}function Fx(t={}){let{autoFocus:e=!1,isTextInput:n,within:o}=t,i=y.useRef({isFocused:!1,isFocusVisible:e||Dx()}),[s,u]=y.useState(!1),[m,g]=y.useState(()=>i.current.isFocused&&i.current.isFocusVisible),b=y.useCallback(()=>g(i.current.isFocused&&i.current.isFocusVisible),[]),p=y.useCallback(h=>{i.current.isFocused=h,u(h),b()},[b]);nU(h=>{i.current.isFocusVisible=h,b()},[],{isTextInput:n});let{focusProps:_}=oU({isDisabled:o,onFocusChange:p}),{focusWithinProps:C}=lU({isDisabled:!o,onFocusWithinChange:p});return{isFocused:s,isFocusVisible:m,focusProps:o?C:_}}function _5(t){var e,n;return fn.isServer?null:t?"ownerDocument"in t?t.ownerDocument:"current"in t?(n=(e=t.current)==null?void 0:e.ownerDocument)!=null?n:document:null:document}function si(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function Zt(){let t=[],e={addEventListener(n,o,i,s){return n.addEventListener(o,i,s),e.add(()=>n.removeEventListener(o,i,s))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return e.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return e.requestAnimationFrame(()=>e.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return e.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return si(()=>{o.current&&n[0]()}),e.add(()=>{o.current=!1})},style(n,o,i){let s=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:i}),this.add(()=>{Object.assign(n.style,{[o]:s})})},group(n){let o=Zt();return n(o),this.add(()=>o.dispose())},add(n){return t.includes(n)||t.push(n),()=>{let o=t.indexOf(n);if(o>=0)for(let i of t.splice(o,1))i()}},dispose(){for(let n of t.splice(0))n()}};return e}function ui(){let[t]=y.useState(Zt);return y.useEffect(()=>()=>t.dispose(),[t]),t}function Q3(t){let e=y.useRef(t);return _2(()=>{e.current=t},[t]),e}function di(){return y.useContext(uU)}function Vu(...t){return Array.from(new Set(t.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}function q3(t,e,...n){if(t in e){let i=e[t];return typeof i=="function"?i(...n):i}let o=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,q3),o}function Z2(){let t=mU();return y.useCallback(e=>dU({mergeRefs:t,...e}),[t])}function dU({ourProps:t,theirProps:e,slot:n,defaultTag:o,features:i,visible:s=!0,name:u,mergeRefs:m}){m=m??gU;let g=Zx(e,t);if(s)return Or(g,n,o,u,m);let b=i??0;if(b&2){let{static:p=!1,..._}=g;if(p)return Or(_,n,o,u,m)}if(b&1){let{unmount:p=!0,..._}=g;return q3(p?0:1,{0(){return null},1(){return Or({..._,hidden:!0,style:{display:"none"}},n,o,u,m)}})}return Or(g,n,o,u,m)}function Or(t,e={},n,o,i){let{as:s=n,children:u,refName:m="ref",...g}=ra(t,["unmount","static"]),b=t.ref!==void 0?{[m]:t.ref}:{},p=typeof u=="function"?u(e):u;"className"in g&&g.className&&typeof g.className=="function"&&(g.className=g.className(e)),g["aria-labelledby"]&&g["aria-labelledby"]===g.id&&(g["aria-labelledby"]=void 0);let _={};if(e){let C=!1,h=[];for(let[S,E]of Object.entries(e))typeof E=="boolean"&&(C=!0),E===!0&&h.push(S.replace(/([A-Z])/g,T=>`-${T.toLowerCase()}`));if(C){_["data-headlessui-state"]=h.join(" ");for(let S of h)_[`data-${S}`]=""}}if(s===y.Fragment&&(Object.keys(St(g)).length>0||Object.keys(St(_)).length>0))if(!y.isValidElement(p)||Array.isArray(p)&&p.length>1){if(Object.keys(St(g)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(St(g)).concat(Object.keys(St(_))).map(C=>` - ${C}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(C=>` - ${C}`).join(` `)].join(` `))}else{let C=p.props,h=C?.className,S=typeof h=="function"?(...k)=>Vu(h(...k),g.className):Vu(h,g.className),E=S?{className:S}:{},T=Zx(p.props,St(ra(g,["ref"])));for(let k in _)k in T&&delete _[k];return y.cloneElement(p,Object.assign({},T,_,b,{ref:i(fU(p),b.ref)},E))}return y.createElement(s,Object.assign({},ra(g,["ref"]),s!==y.Fragment&&b,s!==y.Fragment&&_),p)}function mU(){let t=y.useRef([]),e=y.useCallback(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)},[]);return(...n)=>{if(!n.every(o=>o==null))return t.current=n,e}}function gU(...t){return t.every(e=>e==null)?void 0:e=>{for(let n of t)n!=null&&(typeof n=="function"?n(e):n.current=e)}}function Zx(...t){if(t.length===0)return{};if(t.length===1)return t[0];let e={},n={};for(let o of t)for(let i in o)i.startsWith("on")&&typeof o[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(o[i])):e[i]=o[i];if(e.disabled||e["aria-disabled"])for(let o in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(o)&&(n[o]=[i=>{var s;return(s=i?.preventDefault)==null?void 0:s.call(i)}]);for(let o in n)Object.assign(e,{[o](i,...s){let u=n[o];for(let m of u){if((i instanceof Event||i?.nativeEvent instanceof Event)&&i.defaultPrevented)return;m(i,...s)}}});return e}function Ux(...t){if(t.length===0)return{};if(t.length===1)return t[0];let e={},n={};for(let o of t)for(let i in o)i.startsWith("on")&&typeof o[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(o[i])):e[i]=o[i];for(let o in n)Object.assign(e,{[o](...i){let s=n[o];for(let u of s)u?.(...i)}});return e}function h2(t){var e;return Object.assign(y.forwardRef(t),{displayName:(e=t.displayName)!=null?e:t.name})}function St(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function ra(t,e=[]){let n=Object.assign({},t);for(let o of e)o in n&&delete n[o];return n}function fU(t){return Ie.version.split(".")[0]>="19"?t.props.ref:t.ref}function bU(t,e,n){let[o,i]=y.useState(n),s=t!==void 0,u=y.useRef(s),m=y.useRef(!1),g=y.useRef(!1);return s&&!u.current&&!m.current?(m.current=!0,u.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!s&&u.current&&!g.current&&(g.current=!0,u.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[s?t:o,C1(b=>(s||i(b),e?.(b)))]}function LU(t){let[e]=y.useState(t);return e}function Bx(t={},e=null,n=[]){for(let[o,i]of Object.entries(t))Hx(n,Gx(e,o),i);return n}function Gx(t,e){return t?t+"["+e+"]":e}function Hx(t,e,n){if(Array.isArray(n))for(let[o,i]of n.entries())Hx(t,Gx(e,o.toString()),i);else n instanceof Date?t.push([e,n.toISOString()]):typeof n=="boolean"?t.push([e,n?"1":"0"]):typeof n=="string"?t.push([e,n]):typeof n=="number"?t.push([e,`${n}`]):n==null?t.push([e,""]):Bx(n,e,t)}function pU(t){var e,n;let o=(e=t?.form)!=null?e:t.closest("form");if(o){for(let i of o.elements)if(i!==t&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=o.requestSubmit)==null||n.call(o)}}function _U(t,e){var n;let{features:o=1,...i}=t,s={ref:e,"aria-hidden":(o&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(o&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(o&4)===4&&(o&2)!==2&&{display:"none"}}};return Z2()({ourProps:s,theirProps:i,slot:{},defaultTag:CU,name:"Hidden"})}function zU({children:t}){let e=y.useContext(hU);if(!e)return Ie.createElement(Ie.Fragment,null,t);let{target:n}=e;return n?Bd.createPortal(Ie.createElement(Ie.Fragment,null,t),n):null}function xU({data:t,form:e,disabled:n,onReset:o,overrides:i}){let[s,u]=y.useState(null),m=ui();return y.useEffect(()=>{if(o&&s)return m.addEventListener(s,"reset",o)},[s,e,o]),Ie.createElement(zU,null,Ie.createElement(vU,{setForm:u,formId:e}),Bx(t).map(([g,b])=>Ie.createElement(r5,{features:Zo.Hidden,...St({key:g,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:e,disabled:n,name:g,value:b,...i})})))}function vU({setForm:t,formId:e}){return y.useEffect(()=>{if(e){let n=document.getElementById(e);n&&t(n)}},[t,e]),e?null:Ie.createElement(r5,{features:Zo.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:a(n=>{if(!n)return;let o=n.closest("form");o&&t(o)},"ref")})}function Yx(){return y.useContext(EU)}function Vx(t){let e=t.parentElement,n=null;for(;e&&!(e instanceof HTMLFieldSetElement);)e instanceof HTMLLegendElement&&(n=e),e=e.parentElement;let o=e?.getAttribute("disabled")==="";return o&&yU(n)?!1:o}function yU(t){if(!t)return!1;let e=t.previousElementSibling;for(;e!==null;){if(e instanceof HTMLLegendElement)return!1;e=e.previousElementSibling}return!0}function SU(t,e=!0){return Object.assign(t,{[Wx]:e})}function u0(...t){let e=y.useRef(t);y.useEffect(()=>{e.current=t},[t]);let n=C1(o=>{for(let i of e.current)i!=null&&(typeof i=="function"?i(o):i.current=o)});return t.every(o=>o==null||o?.[Wx])?void 0:n}function qx(){let t=y.useContext(mi);if(t===null){let e=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,qx),e}return t}function wU(){var t,e;return(e=(t=y.useContext(mi))==null?void 0:t.value)!=null?e:void 0}function Hd(){let[t,e]=y.useState([]);return[t.length>0?t.join(" "):void 0,y.useMemo(()=>function(n){let o=C1(s=>(e(u=>[...u,s]),()=>e(u=>{let m=u.slice(),g=m.indexOf(s);return g!==-1&&m.splice(g,1),m}))),i=y.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props,value:n.value}),[o,n.slot,n.name,n.props,n.value]);return Ie.createElement(mi.Provider,{value:i},n.children)},[e])]}function TU(t,e){let n=y.useId(),o=di(),{id:i=`headlessui-description-${n}`,...s}=t,u=qx(),m=u0(e);_2(()=>u.register(i),[i,u.register]);let g=o||!1,b=y.useMemo(()=>({...u.slot,disabled:g}),[u.slot,g]),p={ref:m,...u.props,id:i};return Z2()({ourProps:p,theirProps:s,slot:b,defaultTag:kU,name:u.name||"Description"})}function $x(){let t=y.useContext(gi);if(t===null){let e=new Error("You used a